mirror of https://github.com/apache/druid.git
Switch to @blueprint/datetime2 (#14371)
* Bump blueprint packages * Switch to datetime2 components * Update licenses * Update snapshots
This commit is contained in:
parent
a0d49baad6
commit
cfc2a8d286
|
@ -5221,7 +5221,7 @@ license_category: binary
|
||||||
module: web-console
|
module: web-console
|
||||||
license_name: Apache License version 2.0
|
license_name: Apache License version 2.0
|
||||||
copyright: Palantir Technologies
|
copyright: Palantir Technologies
|
||||||
version: 4.1.19
|
version: 4.2.1
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -5230,7 +5230,16 @@ license_category: binary
|
||||||
module: web-console
|
module: web-console
|
||||||
license_name: Apache License version 2.0
|
license_name: Apache License version 2.0
|
||||||
copyright: Palantir Technologies
|
copyright: Palantir Technologies
|
||||||
version: 4.17.6
|
version: 4.20.1
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
name: "@blueprintjs/datetime2"
|
||||||
|
license_category: binary
|
||||||
|
module: web-console
|
||||||
|
license_name: Apache License version 2.0
|
||||||
|
copyright: Palantir Technologies
|
||||||
|
version: 0.9.35
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -5239,7 +5248,7 @@ license_category: binary
|
||||||
module: web-console
|
module: web-console
|
||||||
license_name: Apache License version 2.0
|
license_name: Apache License version 2.0
|
||||||
copyright: Palantir Technologies
|
copyright: Palantir Technologies
|
||||||
version: 4.4.25
|
version: 4.4.36
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -5248,7 +5257,7 @@ license_category: binary
|
||||||
module: web-console
|
module: web-console
|
||||||
license_name: Apache License version 2.0
|
license_name: Apache License version 2.0
|
||||||
copyright: Palantir Technologies
|
copyright: Palantir Technologies
|
||||||
version: 4.14.3
|
version: 4.16.0
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -5257,7 +5266,16 @@ license_category: binary
|
||||||
module: web-console
|
module: web-console
|
||||||
license_name: Apache License version 2.0
|
license_name: Apache License version 2.0
|
||||||
copyright: Palantir Technologies
|
copyright: Palantir Technologies
|
||||||
version: 1.13.10
|
version: 1.14.9
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
name: "@blueprintjs/select"
|
||||||
|
license_category: binary
|
||||||
|
module: web-console
|
||||||
|
license_name: Apache License version 2.0
|
||||||
|
copyright: Palantir Technologies
|
||||||
|
version: 4.9.22
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -5375,7 +5393,7 @@ license_category: binary
|
||||||
module: web-console
|
module: web-console
|
||||||
license_name: MIT License
|
license_name: MIT License
|
||||||
copyright: Federico Zivolo
|
copyright: Federico Zivolo
|
||||||
version: 2.11.6
|
version: 2.11.8
|
||||||
license_file_path: licenses/bin/@popperjs-core.MIT
|
license_file_path: licenses/bin/@popperjs-core.MIT
|
||||||
|
|
||||||
---
|
---
|
||||||
|
@ -5740,6 +5758,26 @@ license_file_path: licenses/bin/d3-time.BSD3
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
name: "date-fns-tz"
|
||||||
|
license_category: binary
|
||||||
|
module: web-console
|
||||||
|
license_name: MIT License
|
||||||
|
copyright: Marnus Weststrate
|
||||||
|
version: 1.3.8
|
||||||
|
license_file_path: licenses/bin/date-fns-tz.MIT
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
name: "date-fns"
|
||||||
|
license_category: binary
|
||||||
|
module: web-console
|
||||||
|
license_name: MIT License
|
||||||
|
copyright: Sasha Koss and Lesha Koss https://kossnocorp.mit-license.org
|
||||||
|
version: 2.30.0
|
||||||
|
license_file_path: licenses/bin/date-fns.MIT
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
name: "deep-equal"
|
name: "deep-equal"
|
||||||
license_category: binary
|
license_category: binary
|
||||||
module: web-console
|
module: web-console
|
||||||
|
@ -6188,6 +6226,16 @@ license_file_path: licenses/bin/lodash.isequal.MIT
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
name: "lodash"
|
||||||
|
license_category: binary
|
||||||
|
module: web-console
|
||||||
|
license_name: MIT License
|
||||||
|
copyright: John-David Dalton
|
||||||
|
version: 4.17.21
|
||||||
|
license_file_path: licenses/bin/lodash.MIT
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
name: "loose-envify"
|
name: "loose-envify"
|
||||||
license_category: binary
|
license_category: binary
|
||||||
module: web-console
|
module: web-console
|
||||||
|
@ -6692,7 +6740,7 @@ license_category: binary
|
||||||
module: web-console
|
module: web-console
|
||||||
license_name: Zero-Clause BSD
|
license_name: Zero-Clause BSD
|
||||||
copyright: Microsoft Corp.
|
copyright: Microsoft Corp.
|
||||||
version: 2.3.1
|
version: 2.5.3
|
||||||
license_file_path: licenses/bin/tslib.0BSD
|
license_file_path: licenses/bin/tslib.0BSD
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
|
@ -0,0 +1,21 @@
|
||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright © 2018 Marnus Weststrate
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the “Software”), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||||
|
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
|
DEALINGS IN THE SOFTWARE.
|
|
@ -0,0 +1,21 @@
|
||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2021 Sasha Koss and Lesha Koss https://kossnocorp.mit-license.org
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
|
@ -0,0 +1,47 @@
|
||||||
|
Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
||||||
|
|
||||||
|
Based on Underscore.js, copyright Jeremy Ashkenas,
|
||||||
|
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
||||||
|
|
||||||
|
This software consists of voluntary contributions made by many
|
||||||
|
individuals. For exact contribution history, see the revision history
|
||||||
|
available at https://github.com/lodash/lodash
|
||||||
|
|
||||||
|
The following license applies to all parts of this software except as
|
||||||
|
documented below:
|
||||||
|
|
||||||
|
====
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
|
a copy of this software and associated documentation files (the
|
||||||
|
"Software"), to deal in the Software without restriction, including
|
||||||
|
without limitation the rights to use, copy, modify, merge, publish,
|
||||||
|
distribute, sublicense, and/or sell copies of the Software, and to
|
||||||
|
permit persons to whom the Software is furnished to do so, subject to
|
||||||
|
the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be
|
||||||
|
included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||||
|
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||||
|
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||||
|
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||||
|
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
|
====
|
||||||
|
|
||||||
|
Copyright and related rights for sample code are waived via CC0. Sample
|
||||||
|
code is defined as all source code displayed within the prose of the
|
||||||
|
documentation.
|
||||||
|
|
||||||
|
CC0: http://creativecommons.org/publicdomain/zero/1.0/
|
||||||
|
|
||||||
|
====
|
||||||
|
|
||||||
|
Files located in the node_modules and vendor directories are externally
|
||||||
|
maintained libraries used by this software which have their own
|
||||||
|
licenses; we recommend you read them, as their terms may differ from the
|
||||||
|
terms above.
|
|
@ -9,10 +9,10 @@
|
||||||
"version": "27.0.0",
|
"version": "27.0.0",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@blueprintjs/core": "^4.17.6",
|
"@blueprintjs/core": "^4.20.1",
|
||||||
"@blueprintjs/datetime": "^4.4.25",
|
"@blueprintjs/datetime2": "^0.9.35",
|
||||||
"@blueprintjs/icons": "^4.14.3",
|
"@blueprintjs/icons": "^4.16.0",
|
||||||
"@blueprintjs/popover2": "^1.13.10",
|
"@blueprintjs/popover2": "^1.14.9",
|
||||||
"ace-builds": "^1.4.13",
|
"ace-builds": "^1.4.13",
|
||||||
"axios": "^0.26.1",
|
"axios": "^0.26.1",
|
||||||
"classnames": "^2.2.6",
|
"classnames": "^2.2.6",
|
||||||
|
@ -2389,17 +2389,20 @@
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/@blueprintjs/colors": {
|
"node_modules/@blueprintjs/colors": {
|
||||||
"version": "4.1.19",
|
"version": "4.2.1",
|
||||||
"resolved": "https://registry.npmjs.org/@blueprintjs/colors/-/colors-4.1.19.tgz",
|
"resolved": "https://registry.npmjs.org/@blueprintjs/colors/-/colors-4.2.1.tgz",
|
||||||
"integrity": "sha512-x5mDo4Ue9rAdbMHvOm0dNru9MSZqgs9Dd/l/2rgjzottthjsq1XjkiVae6evX4EGNM0I/bZKjTT8ccvqCqn4yw=="
|
"integrity": "sha512-Cx7J2YnUuxn+fi+y5XtXnBB7+cFHN4xBrRkaAetp78i3VTCXjUk+d1omrOr8TqbRucUXTdrhbZOUHpzRLFcJpQ==",
|
||||||
|
"dependencies": {
|
||||||
|
"tslib": "~2.5.0"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@blueprintjs/core": {
|
"node_modules/@blueprintjs/core": {
|
||||||
"version": "4.17.6",
|
"version": "4.20.1",
|
||||||
"resolved": "https://registry.npmjs.org/@blueprintjs/core/-/core-4.17.6.tgz",
|
"resolved": "https://registry.npmjs.org/@blueprintjs/core/-/core-4.20.1.tgz",
|
||||||
"integrity": "sha512-hZBIYfOUsgeeKeFeYCW6qcCTOxwA6EJTXJyjTv+QK34245Lms/rW4sKn+t8Z3z/b0AK5cTH0/S3a1umjshDhLA==",
|
"integrity": "sha512-nKFXfWj8PQrkweLrCr6VazYd4JJHCwiAxcgT9zzoxbEs0mSJF4yI7Qjoh5QkomtWugXrVLCDSzs4uJdaO1reAA==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@blueprintjs/colors": "^4.1.19",
|
"@blueprintjs/colors": "^4.2.1",
|
||||||
"@blueprintjs/icons": "^4.14.3",
|
"@blueprintjs/icons": "^4.16.0",
|
||||||
"@juggle/resize-observer": "^3.4.0",
|
"@juggle/resize-observer": "^3.4.0",
|
||||||
"@types/dom4": "^2.0.2",
|
"@types/dom4": "^2.0.2",
|
||||||
"classnames": "^2.3.1",
|
"classnames": "^2.3.1",
|
||||||
|
@ -2408,7 +2411,7 @@
|
||||||
"popper.js": "^1.16.1",
|
"popper.js": "^1.16.1",
|
||||||
"react-popper": "^1.3.11",
|
"react-popper": "^1.3.11",
|
||||||
"react-transition-group": "^4.4.5",
|
"react-transition-group": "^4.4.5",
|
||||||
"tslib": "~2.3.1"
|
"tslib": "~2.5.0"
|
||||||
},
|
},
|
||||||
"bin": {
|
"bin": {
|
||||||
"upgrade-blueprint-2.0.0-rename": "scripts/upgrade-blueprint-2.0.0-rename.sh",
|
"upgrade-blueprint-2.0.0-rename": "scripts/upgrade-blueprint-2.0.0-rename.sh",
|
||||||
|
@ -2426,14 +2429,40 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@blueprintjs/datetime": {
|
"node_modules/@blueprintjs/datetime": {
|
||||||
"version": "4.4.25",
|
"version": "4.4.36",
|
||||||
"resolved": "https://registry.npmjs.org/@blueprintjs/datetime/-/datetime-4.4.25.tgz",
|
"resolved": "https://registry.npmjs.org/@blueprintjs/datetime/-/datetime-4.4.36.tgz",
|
||||||
"integrity": "sha512-2Q818yMKqfUbU53fxh1XmkDLP9DMGDxe7t4LrrdKZBPM/m3qs2pyI5ficwDak1Rr9cHbe7Bq8ICwieCrudBeYw==",
|
"integrity": "sha512-+0zMGorGNjR/5lEB2t7sjVX0jWPVgmFkHTIezhAIQgJAj0upcxF3SuvnrpVjJKA3Ug6/0wZ+76eLPbpNz9CVzA==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@blueprintjs/core": "^4.17.6",
|
"@blueprintjs/core": "^4.20.1",
|
||||||
"classnames": "^2.3.1",
|
"classnames": "^2.3.1",
|
||||||
"react-day-picker": "7.4.9",
|
"react-day-picker": "7.4.9",
|
||||||
"tslib": "~2.3.1"
|
"tslib": "~2.5.0"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"@types/react": "^16.14.32 || 17",
|
||||||
|
"react": "^16.8 || 17",
|
||||||
|
"react-dom": "^16.8 || 17"
|
||||||
|
},
|
||||||
|
"peerDependenciesMeta": {
|
||||||
|
"@types/react": {
|
||||||
|
"optional": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@blueprintjs/datetime2": {
|
||||||
|
"version": "0.9.35",
|
||||||
|
"resolved": "https://registry.npmjs.org/@blueprintjs/datetime2/-/datetime2-0.9.35.tgz",
|
||||||
|
"integrity": "sha512-9vuhKtVj8GwtB3fx4xnzQWc1g4kH6NB3QqotDI1azJrzTOVVEqzYs+RVGwLw60/WAR2PD+L/WJkthRIS6/wKAw==",
|
||||||
|
"dependencies": {
|
||||||
|
"@blueprintjs/core": "^4.20.1",
|
||||||
|
"@blueprintjs/datetime": "^4.4.36",
|
||||||
|
"@blueprintjs/popover2": "^1.14.9",
|
||||||
|
"@blueprintjs/select": "^4.9.22",
|
||||||
|
"classnames": "^2.3.1",
|
||||||
|
"date-fns": "^2.28.0",
|
||||||
|
"date-fns-tz": "^1.3.7",
|
||||||
|
"lodash": "^4.17.21",
|
||||||
|
"tslib": "~2.5.0"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@types/react": "^16.14.32 || 17",
|
"@types/react": "^16.14.32 || 17",
|
||||||
|
@ -2447,27 +2476,27 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@blueprintjs/icons": {
|
"node_modules/@blueprintjs/icons": {
|
||||||
"version": "4.14.3",
|
"version": "4.16.0",
|
||||||
"resolved": "https://registry.npmjs.org/@blueprintjs/icons/-/icons-4.14.3.tgz",
|
"resolved": "https://registry.npmjs.org/@blueprintjs/icons/-/icons-4.16.0.tgz",
|
||||||
"integrity": "sha512-2X5VXYCfybcax+tPVFl6WDngdxEk6AS7gflRjI9iuiJvkgjnkYeHBXZGRMhCzZb/B6+cBuMyvvAxmD2WVtlQsg==",
|
"integrity": "sha512-cyfgjUZcZCtQrXWUV8FwqYTFEzduV4a0N7yhOU38jY+cBRCLu/sDrD0Osvfk4DGRvNe4YjY7pohVLFSxpg68Uw==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"change-case": "^4.1.2",
|
"change-case": "^4.1.2",
|
||||||
"classnames": "^2.3.1",
|
"classnames": "^2.3.1",
|
||||||
"tslib": "~2.3.1"
|
"tslib": "~2.5.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@blueprintjs/popover2": {
|
"node_modules/@blueprintjs/popover2": {
|
||||||
"version": "1.13.10",
|
"version": "1.14.9",
|
||||||
"resolved": "https://registry.npmjs.org/@blueprintjs/popover2/-/popover2-1.13.10.tgz",
|
"resolved": "https://registry.npmjs.org/@blueprintjs/popover2/-/popover2-1.14.9.tgz",
|
||||||
"integrity": "sha512-ohdO3F9MUZXDaBNYFi+xrlhDWl6GWg9/zl8VQTzhk5ny5kuGJsU7cPAeTGNyrXkR8PMRbTWKfFFc/R/H4qUo/g==",
|
"integrity": "sha512-46gesoxeEbp1owKDGz7JwurXmVqSLq9ALes5etHqtjwdCpenBQc7GM+sFuJoLlEU7twcIlzwE6xaSU2+vnYVCQ==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@blueprintjs/core": "^4.17.6",
|
"@blueprintjs/core": "^4.20.1",
|
||||||
"@juggle/resize-observer": "^3.4.0",
|
"@juggle/resize-observer": "^3.4.0",
|
||||||
"@popperjs/core": "^2.11.6",
|
"@popperjs/core": "^2.11.7",
|
||||||
"classnames": "^2.3.1",
|
"classnames": "^2.3.1",
|
||||||
"dom4": "^2.1.5",
|
"dom4": "^2.1.5",
|
||||||
"react-popper": "^2.3.0",
|
"react-popper": "^2.3.0",
|
||||||
"tslib": "~2.3.1"
|
"tslib": "~2.5.0"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@types/react": "^16.14.32 || 17 || 18",
|
"@types/react": "^16.14.32 || 17 || 18",
|
||||||
|
@ -2494,6 +2523,27 @@
|
||||||
"react-dom": "^16.8.0 || ^17 || ^18"
|
"react-dom": "^16.8.0 || ^17 || ^18"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/@blueprintjs/select": {
|
||||||
|
"version": "4.9.22",
|
||||||
|
"resolved": "https://registry.npmjs.org/@blueprintjs/select/-/select-4.9.22.tgz",
|
||||||
|
"integrity": "sha512-T5ofz571kPfycbxAuXlTrE7ndXIiHPCDMjADYJpb5HVOk0SYwwzDvnWjsYbyAj1SONbxOAKh4/wmFTDjZv7G2g==",
|
||||||
|
"dependencies": {
|
||||||
|
"@blueprintjs/core": "^4.20.1",
|
||||||
|
"@blueprintjs/popover2": "^1.14.9",
|
||||||
|
"classnames": "^2.3.1",
|
||||||
|
"tslib": "~2.5.0"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"@types/react": "^16.14.32 || 17 || 18",
|
||||||
|
"react": "^16.8 || 17 || 18",
|
||||||
|
"react-dom": "^16.8 || 17 || 18"
|
||||||
|
},
|
||||||
|
"peerDependenciesMeta": {
|
||||||
|
"@types/react": {
|
||||||
|
"optional": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/@bufbuild/protobuf": {
|
"node_modules/@bufbuild/protobuf": {
|
||||||
"version": "1.1.1",
|
"version": "1.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/@bufbuild/protobuf/-/protobuf-1.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/@bufbuild/protobuf/-/protobuf-1.1.1.tgz",
|
||||||
|
@ -4263,9 +4313,9 @@
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/@popperjs/core": {
|
"node_modules/@popperjs/core": {
|
||||||
"version": "2.11.6",
|
"version": "2.11.8",
|
||||||
"resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.6.tgz",
|
"resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.8.tgz",
|
||||||
"integrity": "sha512-50/17A98tWUfQ176raKiOGXuYpLyyVMkxxG6oylzL3BPOlA6ADGdK7EYunSa4I064xerltq9TGXs8HmOk5E+vw==",
|
"integrity": "sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==",
|
||||||
"funding": {
|
"funding": {
|
||||||
"type": "opencollective",
|
"type": "opencollective",
|
||||||
"url": "https://opencollective.com/popperjs"
|
"url": "https://opencollective.com/popperjs"
|
||||||
|
@ -7814,6 +7864,29 @@
|
||||||
"node": ">=10"
|
"node": ">=10"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/date-fns": {
|
||||||
|
"version": "2.30.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/date-fns/-/date-fns-2.30.0.tgz",
|
||||||
|
"integrity": "sha512-fnULvOpxnC5/Vg3NCiWelDsLiUc9bRwAPs/+LfTLNvetFCtCTN+yQz15C/fs4AwX1R9K5GLtLfn8QW+dWisaAw==",
|
||||||
|
"dependencies": {
|
||||||
|
"@babel/runtime": "^7.21.0"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=0.11"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"type": "opencollective",
|
||||||
|
"url": "https://opencollective.com/date-fns"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/date-fns-tz": {
|
||||||
|
"version": "1.3.8",
|
||||||
|
"resolved": "https://registry.npmjs.org/date-fns-tz/-/date-fns-tz-1.3.8.tgz",
|
||||||
|
"integrity": "sha512-qwNXUFtMHTTU6CFSFjoJ80W8Fzzp24LntbjFFBgL/faqds4e5mo9mftoRLgr3Vi1trISsg4awSpYVsOQCRnapQ==",
|
||||||
|
"peerDependencies": {
|
||||||
|
"date-fns": ">=2.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/debug": {
|
"node_modules/debug": {
|
||||||
"version": "3.1.0",
|
"version": "3.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz",
|
||||||
|
@ -16484,8 +16557,7 @@
|
||||||
"node_modules/lodash": {
|
"node_modules/lodash": {
|
||||||
"version": "4.17.21",
|
"version": "4.17.21",
|
||||||
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
|
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
|
||||||
"integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==",
|
"integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg=="
|
||||||
"dev": true
|
|
||||||
},
|
},
|
||||||
"node_modules/lodash._reinterpolate": {
|
"node_modules/lodash._reinterpolate": {
|
||||||
"version": "3.0.0",
|
"version": "3.0.0",
|
||||||
|
@ -24230,9 +24302,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/tslib": {
|
"node_modules/tslib": {
|
||||||
"version": "2.3.1",
|
"version": "2.5.3",
|
||||||
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz",
|
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.3.tgz",
|
||||||
"integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw=="
|
"integrity": "sha512-mSxlJJwl3BMEQCUNnxXBU9jP4JBktcEGhURcPR6VQVlnP0FdDEsIaz0C35dXNGLyRfrATNofF0F5p2KPxQgB+w=="
|
||||||
},
|
},
|
||||||
"node_modules/tsutils": {
|
"node_modules/tsutils": {
|
||||||
"version": "3.21.0",
|
"version": "3.21.0",
|
||||||
|
@ -27984,17 +28056,20 @@
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"@blueprintjs/colors": {
|
"@blueprintjs/colors": {
|
||||||
"version": "4.1.19",
|
"version": "4.2.1",
|
||||||
"resolved": "https://registry.npmjs.org/@blueprintjs/colors/-/colors-4.1.19.tgz",
|
"resolved": "https://registry.npmjs.org/@blueprintjs/colors/-/colors-4.2.1.tgz",
|
||||||
"integrity": "sha512-x5mDo4Ue9rAdbMHvOm0dNru9MSZqgs9Dd/l/2rgjzottthjsq1XjkiVae6evX4EGNM0I/bZKjTT8ccvqCqn4yw=="
|
"integrity": "sha512-Cx7J2YnUuxn+fi+y5XtXnBB7+cFHN4xBrRkaAetp78i3VTCXjUk+d1omrOr8TqbRucUXTdrhbZOUHpzRLFcJpQ==",
|
||||||
|
"requires": {
|
||||||
|
"tslib": "~2.5.0"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"@blueprintjs/core": {
|
"@blueprintjs/core": {
|
||||||
"version": "4.17.6",
|
"version": "4.20.1",
|
||||||
"resolved": "https://registry.npmjs.org/@blueprintjs/core/-/core-4.17.6.tgz",
|
"resolved": "https://registry.npmjs.org/@blueprintjs/core/-/core-4.20.1.tgz",
|
||||||
"integrity": "sha512-hZBIYfOUsgeeKeFeYCW6qcCTOxwA6EJTXJyjTv+QK34245Lms/rW4sKn+t8Z3z/b0AK5cTH0/S3a1umjshDhLA==",
|
"integrity": "sha512-nKFXfWj8PQrkweLrCr6VazYd4JJHCwiAxcgT9zzoxbEs0mSJF4yI7Qjoh5QkomtWugXrVLCDSzs4uJdaO1reAA==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@blueprintjs/colors": "^4.1.19",
|
"@blueprintjs/colors": "^4.2.1",
|
||||||
"@blueprintjs/icons": "^4.14.3",
|
"@blueprintjs/icons": "^4.16.0",
|
||||||
"@juggle/resize-observer": "^3.4.0",
|
"@juggle/resize-observer": "^3.4.0",
|
||||||
"@types/dom4": "^2.0.2",
|
"@types/dom4": "^2.0.2",
|
||||||
"classnames": "^2.3.1",
|
"classnames": "^2.3.1",
|
||||||
|
@ -28003,42 +28078,58 @@
|
||||||
"popper.js": "^1.16.1",
|
"popper.js": "^1.16.1",
|
||||||
"react-popper": "^1.3.11",
|
"react-popper": "^1.3.11",
|
||||||
"react-transition-group": "^4.4.5",
|
"react-transition-group": "^4.4.5",
|
||||||
"tslib": "~2.3.1"
|
"tslib": "~2.5.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@blueprintjs/datetime": {
|
"@blueprintjs/datetime": {
|
||||||
"version": "4.4.25",
|
"version": "4.4.36",
|
||||||
"resolved": "https://registry.npmjs.org/@blueprintjs/datetime/-/datetime-4.4.25.tgz",
|
"resolved": "https://registry.npmjs.org/@blueprintjs/datetime/-/datetime-4.4.36.tgz",
|
||||||
"integrity": "sha512-2Q818yMKqfUbU53fxh1XmkDLP9DMGDxe7t4LrrdKZBPM/m3qs2pyI5ficwDak1Rr9cHbe7Bq8ICwieCrudBeYw==",
|
"integrity": "sha512-+0zMGorGNjR/5lEB2t7sjVX0jWPVgmFkHTIezhAIQgJAj0upcxF3SuvnrpVjJKA3Ug6/0wZ+76eLPbpNz9CVzA==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@blueprintjs/core": "^4.17.6",
|
"@blueprintjs/core": "^4.20.1",
|
||||||
"classnames": "^2.3.1",
|
"classnames": "^2.3.1",
|
||||||
"react-day-picker": "7.4.9",
|
"react-day-picker": "7.4.9",
|
||||||
"tslib": "~2.3.1"
|
"tslib": "~2.5.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@blueprintjs/datetime2": {
|
||||||
|
"version": "0.9.35",
|
||||||
|
"resolved": "https://registry.npmjs.org/@blueprintjs/datetime2/-/datetime2-0.9.35.tgz",
|
||||||
|
"integrity": "sha512-9vuhKtVj8GwtB3fx4xnzQWc1g4kH6NB3QqotDI1azJrzTOVVEqzYs+RVGwLw60/WAR2PD+L/WJkthRIS6/wKAw==",
|
||||||
|
"requires": {
|
||||||
|
"@blueprintjs/core": "^4.20.1",
|
||||||
|
"@blueprintjs/datetime": "^4.4.36",
|
||||||
|
"@blueprintjs/popover2": "^1.14.9",
|
||||||
|
"@blueprintjs/select": "^4.9.22",
|
||||||
|
"classnames": "^2.3.1",
|
||||||
|
"date-fns": "^2.28.0",
|
||||||
|
"date-fns-tz": "^1.3.7",
|
||||||
|
"lodash": "^4.17.21",
|
||||||
|
"tslib": "~2.5.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@blueprintjs/icons": {
|
"@blueprintjs/icons": {
|
||||||
"version": "4.14.3",
|
"version": "4.16.0",
|
||||||
"resolved": "https://registry.npmjs.org/@blueprintjs/icons/-/icons-4.14.3.tgz",
|
"resolved": "https://registry.npmjs.org/@blueprintjs/icons/-/icons-4.16.0.tgz",
|
||||||
"integrity": "sha512-2X5VXYCfybcax+tPVFl6WDngdxEk6AS7gflRjI9iuiJvkgjnkYeHBXZGRMhCzZb/B6+cBuMyvvAxmD2WVtlQsg==",
|
"integrity": "sha512-cyfgjUZcZCtQrXWUV8FwqYTFEzduV4a0N7yhOU38jY+cBRCLu/sDrD0Osvfk4DGRvNe4YjY7pohVLFSxpg68Uw==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"change-case": "^4.1.2",
|
"change-case": "^4.1.2",
|
||||||
"classnames": "^2.3.1",
|
"classnames": "^2.3.1",
|
||||||
"tslib": "~2.3.1"
|
"tslib": "~2.5.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@blueprintjs/popover2": {
|
"@blueprintjs/popover2": {
|
||||||
"version": "1.13.10",
|
"version": "1.14.9",
|
||||||
"resolved": "https://registry.npmjs.org/@blueprintjs/popover2/-/popover2-1.13.10.tgz",
|
"resolved": "https://registry.npmjs.org/@blueprintjs/popover2/-/popover2-1.14.9.tgz",
|
||||||
"integrity": "sha512-ohdO3F9MUZXDaBNYFi+xrlhDWl6GWg9/zl8VQTzhk5ny5kuGJsU7cPAeTGNyrXkR8PMRbTWKfFFc/R/H4qUo/g==",
|
"integrity": "sha512-46gesoxeEbp1owKDGz7JwurXmVqSLq9ALes5etHqtjwdCpenBQc7GM+sFuJoLlEU7twcIlzwE6xaSU2+vnYVCQ==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@blueprintjs/core": "^4.17.6",
|
"@blueprintjs/core": "^4.20.1",
|
||||||
"@juggle/resize-observer": "^3.4.0",
|
"@juggle/resize-observer": "^3.4.0",
|
||||||
"@popperjs/core": "^2.11.6",
|
"@popperjs/core": "^2.11.7",
|
||||||
"classnames": "^2.3.1",
|
"classnames": "^2.3.1",
|
||||||
"dom4": "^2.1.5",
|
"dom4": "^2.1.5",
|
||||||
"react-popper": "^2.3.0",
|
"react-popper": "^2.3.0",
|
||||||
"tslib": "~2.3.1"
|
"tslib": "~2.5.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"react-popper": {
|
"react-popper": {
|
||||||
|
@ -28052,6 +28143,17 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"@blueprintjs/select": {
|
||||||
|
"version": "4.9.22",
|
||||||
|
"resolved": "https://registry.npmjs.org/@blueprintjs/select/-/select-4.9.22.tgz",
|
||||||
|
"integrity": "sha512-T5ofz571kPfycbxAuXlTrE7ndXIiHPCDMjADYJpb5HVOk0SYwwzDvnWjsYbyAj1SONbxOAKh4/wmFTDjZv7G2g==",
|
||||||
|
"requires": {
|
||||||
|
"@blueprintjs/core": "^4.20.1",
|
||||||
|
"@blueprintjs/popover2": "^1.14.9",
|
||||||
|
"classnames": "^2.3.1",
|
||||||
|
"tslib": "~2.5.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"@bufbuild/protobuf": {
|
"@bufbuild/protobuf": {
|
||||||
"version": "1.1.1",
|
"version": "1.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/@bufbuild/protobuf/-/protobuf-1.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/@bufbuild/protobuf/-/protobuf-1.1.1.tgz",
|
||||||
|
@ -29434,9 +29536,9 @@
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"@popperjs/core": {
|
"@popperjs/core": {
|
||||||
"version": "2.11.6",
|
"version": "2.11.8",
|
||||||
"resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.6.tgz",
|
"resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.8.tgz",
|
||||||
"integrity": "sha512-50/17A98tWUfQ176raKiOGXuYpLyyVMkxxG6oylzL3BPOlA6ADGdK7EYunSa4I064xerltq9TGXs8HmOk5E+vw=="
|
"integrity": "sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A=="
|
||||||
},
|
},
|
||||||
"@sheerun/mutationobserver-shim": {
|
"@sheerun/mutationobserver-shim": {
|
||||||
"version": "0.3.2",
|
"version": "0.3.2",
|
||||||
|
@ -32293,6 +32395,20 @@
|
||||||
"whatwg-url": "^8.0.0"
|
"whatwg-url": "^8.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"date-fns": {
|
||||||
|
"version": "2.30.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/date-fns/-/date-fns-2.30.0.tgz",
|
||||||
|
"integrity": "sha512-fnULvOpxnC5/Vg3NCiWelDsLiUc9bRwAPs/+LfTLNvetFCtCTN+yQz15C/fs4AwX1R9K5GLtLfn8QW+dWisaAw==",
|
||||||
|
"requires": {
|
||||||
|
"@babel/runtime": "^7.21.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"date-fns-tz": {
|
||||||
|
"version": "1.3.8",
|
||||||
|
"resolved": "https://registry.npmjs.org/date-fns-tz/-/date-fns-tz-1.3.8.tgz",
|
||||||
|
"integrity": "sha512-qwNXUFtMHTTU6CFSFjoJ80W8Fzzp24LntbjFFBgL/faqds4e5mo9mftoRLgr3Vi1trISsg4awSpYVsOQCRnapQ==",
|
||||||
|
"requires": {}
|
||||||
|
},
|
||||||
"debug": {
|
"debug": {
|
||||||
"version": "3.1.0",
|
"version": "3.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz",
|
||||||
|
@ -38981,8 +39097,7 @@
|
||||||
"lodash": {
|
"lodash": {
|
||||||
"version": "4.17.21",
|
"version": "4.17.21",
|
||||||
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
|
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
|
||||||
"integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==",
|
"integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg=="
|
||||||
"dev": true
|
|
||||||
},
|
},
|
||||||
"lodash._reinterpolate": {
|
"lodash._reinterpolate": {
|
||||||
"version": "3.0.0",
|
"version": "3.0.0",
|
||||||
|
@ -44836,9 +44951,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"tslib": {
|
"tslib": {
|
||||||
"version": "2.3.1",
|
"version": "2.5.3",
|
||||||
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz",
|
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.3.tgz",
|
||||||
"integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw=="
|
"integrity": "sha512-mSxlJJwl3BMEQCUNnxXBU9jP4JBktcEGhURcPR6VQVlnP0FdDEsIaz0C35dXNGLyRfrATNofF0F5p2KPxQgB+w=="
|
||||||
},
|
},
|
||||||
"tsutils": {
|
"tsutils": {
|
||||||
"version": "3.21.0",
|
"version": "3.21.0",
|
||||||
|
|
|
@ -63,10 +63,10 @@
|
||||||
"not ie 11"
|
"not ie 11"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@blueprintjs/core": "^4.17.6",
|
"@blueprintjs/core": "^4.20.1",
|
||||||
"@blueprintjs/datetime": "^4.4.25",
|
"@blueprintjs/datetime2": "^0.9.35",
|
||||||
"@blueprintjs/icons": "^4.14.3",
|
"@blueprintjs/icons": "^4.16.0",
|
||||||
"@blueprintjs/popover2": "^1.13.10",
|
"@blueprintjs/popover2": "^1.14.9",
|
||||||
"ace-builds": "^1.4.13",
|
"ace-builds": "^1.4.13",
|
||||||
"axios": "^0.26.1",
|
"axios": "^0.26.1",
|
||||||
"classnames": "^2.2.6",
|
"classnames": "^2.2.6",
|
||||||
|
|
|
@ -34,6 +34,7 @@ exports[`AutoForm matches snapshot 1`] = `
|
||||||
onValueChange={[Function]}
|
onValueChange={[Function]}
|
||||||
selectAllOnFocus={false}
|
selectAllOnFocus={false}
|
||||||
selectAllOnIncrement={false}
|
selectAllOnIncrement={false}
|
||||||
|
small={false}
|
||||||
stepSize={1000}
|
stepSize={1000}
|
||||||
/>
|
/>
|
||||||
</Memo(FormGroupWithInfo)>
|
</Memo(FormGroupWithInfo)>
|
||||||
|
|
|
@ -16,16 +16,19 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { Button, InputGroup, Popover, Position } from '@blueprintjs/core';
|
import { Button, InputGroup, Position } from '@blueprintjs/core';
|
||||||
import type { DateRange } from '@blueprintjs/datetime';
|
import type { DateRange } from '@blueprintjs/datetime2';
|
||||||
import { DateRangePicker } from '@blueprintjs/datetime';
|
import { DateRangeInput2 } from '@blueprintjs/datetime2';
|
||||||
import { IconNames } from '@blueprintjs/icons';
|
import { IconNames } from '@blueprintjs/icons';
|
||||||
|
import { Popover2 } from '@blueprintjs/popover2';
|
||||||
import React, { useState } from 'react';
|
import React, { useState } from 'react';
|
||||||
|
|
||||||
import { dateToIsoDateString, localToUtcDate, utcToLocalDate } from '../../utils';
|
import { dateToIsoDateString, localToUtcDate, utcToLocalDate } from '../../utils';
|
||||||
|
|
||||||
import './date-range-selector.scss';
|
import './date-range-selector.scss';
|
||||||
|
|
||||||
|
const BASIC_DATE_PARSER = (str: string) => new Date(str);
|
||||||
|
|
||||||
interface DateRangeSelectorProps {
|
interface DateRangeSelectorProps {
|
||||||
startDate: Date;
|
startDate: Date;
|
||||||
endDate: Date;
|
endDate: Date;
|
||||||
|
@ -39,10 +42,12 @@ export const DateRangeSelector = React.memo(function DateRangeSelector(
|
||||||
const [intermediateDateRange, setIntermediateDateRange] = useState<DateRange | undefined>();
|
const [intermediateDateRange, setIntermediateDateRange] = useState<DateRange | undefined>();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Popover
|
<Popover2
|
||||||
className="date-range-selector"
|
className="date-range-selector"
|
||||||
content={
|
content={
|
||||||
<DateRangePicker
|
<DateRangeInput2
|
||||||
|
formatDate={dateToIsoDateString}
|
||||||
|
parseDate={BASIC_DATE_PARSER}
|
||||||
value={intermediateDateRange || [utcToLocalDate(startDate), utcToLocalDate(endDate)]}
|
value={intermediateDateRange || [utcToLocalDate(startDate), utcToLocalDate(endDate)]}
|
||||||
contiguousCalendarMonths={false}
|
contiguousCalendarMonths={false}
|
||||||
reverseMonthAndYearMenus
|
reverseMonthAndYearMenus
|
||||||
|
@ -64,6 +69,6 @@ export const DateRangeSelector = React.memo(function DateRangeSelector(
|
||||||
readOnly
|
readOnly
|
||||||
rightElement={<Button rightIcon={IconNames.CALENDAR} minimal />}
|
rightElement={<Button rightIcon={IconNames.CALENDAR} minimal />}
|
||||||
/>
|
/>
|
||||||
</Popover>
|
</Popover2>
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
|
@ -18,13 +18,19 @@
|
||||||
|
|
||||||
import type { Intent } from '@blueprintjs/core';
|
import type { Intent } from '@blueprintjs/core';
|
||||||
import { Button, InputGroup, Position } from '@blueprintjs/core';
|
import { Button, InputGroup, Position } from '@blueprintjs/core';
|
||||||
import type { DateRange } from '@blueprintjs/datetime';
|
import type { DateRange } from '@blueprintjs/datetime2';
|
||||||
import { DateRangePicker, TimePrecision } from '@blueprintjs/datetime';
|
import { DateRangeInput2 } from '@blueprintjs/datetime2';
|
||||||
import { IconNames } from '@blueprintjs/icons';
|
import { IconNames } from '@blueprintjs/icons';
|
||||||
import { Popover2 } from '@blueprintjs/popover2';
|
import { Popover2 } from '@blueprintjs/popover2';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
import { intervalToLocalDateRange, localDateRangeToInterval } from '../../utils';
|
import {
|
||||||
|
dateToIsoDateString,
|
||||||
|
intervalToLocalDateRange,
|
||||||
|
localDateRangeToInterval,
|
||||||
|
} from '../../utils';
|
||||||
|
|
||||||
|
const BASIC_DATE_PARSER = (str: string) => new Date(str);
|
||||||
|
|
||||||
export interface IntervalInputProps {
|
export interface IntervalInputProps {
|
||||||
interval: string;
|
interval: string;
|
||||||
|
@ -45,14 +51,16 @@ export const IntervalInput = React.memo(function IntervalInput(props: IntervalIn
|
||||||
<Popover2
|
<Popover2
|
||||||
popoverClassName="calendar"
|
popoverClassName="calendar"
|
||||||
content={
|
content={
|
||||||
<DateRangePicker
|
<DateRangeInput2
|
||||||
timePrecision={TimePrecision.SECOND}
|
timePrecision="second"
|
||||||
value={intervalToLocalDateRange(interval)}
|
value={intervalToLocalDateRange(interval)}
|
||||||
contiguousCalendarMonths={false}
|
contiguousCalendarMonths={false}
|
||||||
reverseMonthAndYearMenus
|
reverseMonthAndYearMenus
|
||||||
onChange={(selectedRange: DateRange) => {
|
onChange={(selectedRange: DateRange) => {
|
||||||
onValueChange(localDateRangeToInterval(selectedRange));
|
onValueChange(localDateRangeToInterval(selectedRange));
|
||||||
}}
|
}}
|
||||||
|
formatDate={dateToIsoDateString}
|
||||||
|
parseDate={BASIC_DATE_PARSER}
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
position={Position.BOTTOM_RIGHT}
|
position={Position.BOTTOM_RIGHT}
|
||||||
|
|
|
@ -11,12 +11,14 @@ exports[`MenuTristate matches snapshot false 1`] = `
|
||||||
<span
|
<span
|
||||||
aria-haspopup="true"
|
aria-haspopup="true"
|
||||||
class="bp4-popover-target"
|
class="bp4-popover-target"
|
||||||
|
role="menuitem"
|
||||||
|
tabindex="0"
|
||||||
>
|
>
|
||||||
<a
|
<a
|
||||||
class="bp4-menu-item menu-tristate"
|
class="bp4-menu-item menu-tristate"
|
||||||
label="false"
|
label="false"
|
||||||
role="menuitem"
|
role="none"
|
||||||
tabindex="0"
|
tabindex="-1"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="bp4-fill bp4-text-overflow-ellipsis"
|
class="bp4-fill bp4-text-overflow-ellipsis"
|
||||||
|
@ -63,12 +65,14 @@ exports[`MenuTristate matches snapshot undefined 1`] = `
|
||||||
<span
|
<span
|
||||||
aria-haspopup="true"
|
aria-haspopup="true"
|
||||||
class="bp4-popover-target"
|
class="bp4-popover-target"
|
||||||
|
role="menuitem"
|
||||||
|
tabindex="0"
|
||||||
>
|
>
|
||||||
<a
|
<a
|
||||||
class="bp4-menu-item menu-tristate"
|
class="bp4-menu-item menu-tristate"
|
||||||
label="auto (true)"
|
label="auto (true)"
|
||||||
role="menuitem"
|
role="none"
|
||||||
tabindex="0"
|
tabindex="-1"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="bp4-fill bp4-text-overflow-ellipsis"
|
class="bp4-fill bp4-text-overflow-ellipsis"
|
||||||
|
|
|
@ -13,6 +13,7 @@ exports[`NumericInputWithDefault matches snapshot 1`] = `
|
||||||
onValueChange={[Function]}
|
onValueChange={[Function]}
|
||||||
selectAllOnFocus={false}
|
selectAllOnFocus={false}
|
||||||
selectAllOnIncrement={false}
|
selectAllOnIncrement={false}
|
||||||
|
small={false}
|
||||||
stepSize={1}
|
stepSize={1}
|
||||||
value={5}
|
value={5}
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -144,13 +144,10 @@ exports[`SegmentTimeline matches snapshot 1`] = `
|
||||||
</label>
|
</label>
|
||||||
<div
|
<div
|
||||||
class="bp4-form-content"
|
class="bp4-form-content"
|
||||||
>
|
|
||||||
<span
|
|
||||||
class="bp4-popover-wrapper date-range-selector"
|
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
aria-haspopup="true"
|
aria-haspopup="true"
|
||||||
class="bp4-popover-target"
|
class="date-range-selector bp4-popover2-target"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="bp4-input-group bp4-read-only"
|
class="bp4-input-group bp4-read-only"
|
||||||
|
@ -191,7 +188,6 @@ exports[`SegmentTimeline matches snapshot 1`] = `
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</span>
|
</span>
|
||||||
</span>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -63,11 +63,13 @@ exports[`SuggestionMenu matches snapshot 1`] = `
|
||||||
<span
|
<span
|
||||||
aria-haspopup="true"
|
aria-haspopup="true"
|
||||||
class="bp4-popover-target"
|
class="bp4-popover-target"
|
||||||
|
role="menuitem"
|
||||||
|
tabindex="0"
|
||||||
>
|
>
|
||||||
<a
|
<a
|
||||||
class="bp4-menu-item"
|
class="bp4-menu-item"
|
||||||
role="menuitem"
|
role="none"
|
||||||
tabindex="0"
|
tabindex="-1"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="bp4-fill bp4-text-overflow-ellipsis"
|
class="bp4-fill bp4-text-overflow-ellipsis"
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
@import '@blueprintjs/core/src/blueprint';
|
@import '@blueprintjs/core/src/blueprint';
|
||||||
@import '@blueprintjs/datetime/src/blueprint-datetime';
|
@import '@blueprintjs/datetime/src/blueprint-datetime';
|
||||||
@import '@blueprintjs/popover2/src/blueprint-popover2';
|
@import '@blueprintjs/popover2/src/blueprint-popover2';
|
||||||
|
@import '@blueprintjs/select/src/blueprint-select';
|
||||||
@import 'react-splitter-layout/lib/index';
|
@import 'react-splitter-layout/lib/index';
|
||||||
@import './react-table/react-table-base-styles';
|
@import './react-table/react-table-base-styles';
|
||||||
@import './react-table/react-table-extra';
|
@import './react-table/react-table-extra';
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type { DateRange } from '@blueprintjs/datetime';
|
import type { DateRange } from '@blueprintjs/datetime2';
|
||||||
|
|
||||||
const CURRENT_YEAR = new Date().getUTCFullYear();
|
const CURRENT_YEAR = new Date().getUTCFullYear();
|
||||||
|
|
||||||
|
|
|
@ -12,11 +12,13 @@ exports[`NumberMenuItems matches snapshot when menu is opened for column inside
|
||||||
<span
|
<span
|
||||||
aria-haspopup="true"
|
aria-haspopup="true"
|
||||||
class="bp4-popover-target"
|
class="bp4-popover-target"
|
||||||
|
role="menuitem"
|
||||||
|
tabindex="0"
|
||||||
>
|
>
|
||||||
<a
|
<a
|
||||||
class="bp4-menu-item"
|
class="bp4-menu-item"
|
||||||
role="menuitem"
|
role="none"
|
||||||
tabindex="0"
|
tabindex="-1"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
class="bp4-menu-item-icon"
|
class="bp4-menu-item-icon"
|
||||||
|
@ -78,11 +80,13 @@ exports[`NumberMenuItems matches snapshot when menu is opened for column inside
|
||||||
<span
|
<span
|
||||||
aria-haspopup="true"
|
aria-haspopup="true"
|
||||||
class="bp4-popover-target"
|
class="bp4-popover-target"
|
||||||
|
role="menuitem"
|
||||||
|
tabindex="0"
|
||||||
>
|
>
|
||||||
<a
|
<a
|
||||||
class="bp4-menu-item"
|
class="bp4-menu-item"
|
||||||
role="menuitem"
|
role="none"
|
||||||
tabindex="0"
|
tabindex="-1"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
class="bp4-menu-item-icon"
|
class="bp4-menu-item-icon"
|
||||||
|
@ -183,11 +187,13 @@ exports[`NumberMenuItems matches snapshot when menu is opened for column inside
|
||||||
<span
|
<span
|
||||||
aria-haspopup="true"
|
aria-haspopup="true"
|
||||||
class="bp4-popover-target"
|
class="bp4-popover-target"
|
||||||
|
role="menuitem"
|
||||||
|
tabindex="0"
|
||||||
>
|
>
|
||||||
<a
|
<a
|
||||||
class="bp4-menu-item"
|
class="bp4-menu-item"
|
||||||
role="menuitem"
|
role="none"
|
||||||
tabindex="0"
|
tabindex="-1"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
class="bp4-menu-item-icon"
|
class="bp4-menu-item-icon"
|
||||||
|
@ -254,11 +260,13 @@ exports[`NumberMenuItems matches snapshot when menu is opened for column not ins
|
||||||
<span
|
<span
|
||||||
aria-haspopup="true"
|
aria-haspopup="true"
|
||||||
class="bp4-popover-target"
|
class="bp4-popover-target"
|
||||||
|
role="menuitem"
|
||||||
|
tabindex="0"
|
||||||
>
|
>
|
||||||
<a
|
<a
|
||||||
class="bp4-menu-item"
|
class="bp4-menu-item"
|
||||||
role="menuitem"
|
role="none"
|
||||||
tabindex="0"
|
tabindex="-1"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
class="bp4-menu-item-icon"
|
class="bp4-menu-item-icon"
|
||||||
|
@ -320,11 +328,13 @@ exports[`NumberMenuItems matches snapshot when menu is opened for column not ins
|
||||||
<span
|
<span
|
||||||
aria-haspopup="true"
|
aria-haspopup="true"
|
||||||
class="bp4-popover-target"
|
class="bp4-popover-target"
|
||||||
|
role="menuitem"
|
||||||
|
tabindex="0"
|
||||||
>
|
>
|
||||||
<a
|
<a
|
||||||
class="bp4-menu-item"
|
class="bp4-menu-item"
|
||||||
role="menuitem"
|
role="none"
|
||||||
tabindex="0"
|
tabindex="-1"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
class="bp4-menu-item-icon"
|
class="bp4-menu-item-icon"
|
||||||
|
@ -386,11 +396,13 @@ exports[`NumberMenuItems matches snapshot when menu is opened for column not ins
|
||||||
<span
|
<span
|
||||||
aria-haspopup="true"
|
aria-haspopup="true"
|
||||||
class="bp4-popover-target"
|
class="bp4-popover-target"
|
||||||
|
role="menuitem"
|
||||||
|
tabindex="0"
|
||||||
>
|
>
|
||||||
<a
|
<a
|
||||||
class="bp4-menu-item"
|
class="bp4-menu-item"
|
||||||
role="menuitem"
|
role="none"
|
||||||
tabindex="0"
|
tabindex="-1"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
class="bp4-menu-item-icon"
|
class="bp4-menu-item-icon"
|
||||||
|
|
|
@ -12,11 +12,13 @@ exports[`StringMenuItems matches snapshot when menu is opened for column inside
|
||||||
<span
|
<span
|
||||||
aria-haspopup="true"
|
aria-haspopup="true"
|
||||||
class="bp4-popover-target"
|
class="bp4-popover-target"
|
||||||
|
role="menuitem"
|
||||||
|
tabindex="0"
|
||||||
>
|
>
|
||||||
<a
|
<a
|
||||||
class="bp4-menu-item"
|
class="bp4-menu-item"
|
||||||
role="menuitem"
|
role="none"
|
||||||
tabindex="0"
|
tabindex="-1"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
class="bp4-menu-item-icon"
|
class="bp4-menu-item-icon"
|
||||||
|
@ -78,11 +80,13 @@ exports[`StringMenuItems matches snapshot when menu is opened for column inside
|
||||||
<span
|
<span
|
||||||
aria-haspopup="true"
|
aria-haspopup="true"
|
||||||
class="bp4-popover-target"
|
class="bp4-popover-target"
|
||||||
|
role="menuitem"
|
||||||
|
tabindex="0"
|
||||||
>
|
>
|
||||||
<a
|
<a
|
||||||
class="bp4-menu-item"
|
class="bp4-menu-item"
|
||||||
role="menuitem"
|
role="none"
|
||||||
tabindex="0"
|
tabindex="-1"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
class="bp4-menu-item-icon"
|
class="bp4-menu-item-icon"
|
||||||
|
@ -183,11 +187,13 @@ exports[`StringMenuItems matches snapshot when menu is opened for column inside
|
||||||
<span
|
<span
|
||||||
aria-haspopup="true"
|
aria-haspopup="true"
|
||||||
class="bp4-popover-target"
|
class="bp4-popover-target"
|
||||||
|
role="menuitem"
|
||||||
|
tabindex="0"
|
||||||
>
|
>
|
||||||
<a
|
<a
|
||||||
class="bp4-menu-item"
|
class="bp4-menu-item"
|
||||||
role="menuitem"
|
role="none"
|
||||||
tabindex="0"
|
tabindex="-1"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
class="bp4-menu-item-icon"
|
class="bp4-menu-item-icon"
|
||||||
|
@ -254,11 +260,13 @@ exports[`StringMenuItems matches snapshot when menu is opened for column not ins
|
||||||
<span
|
<span
|
||||||
aria-haspopup="true"
|
aria-haspopup="true"
|
||||||
class="bp4-popover-target"
|
class="bp4-popover-target"
|
||||||
|
role="menuitem"
|
||||||
|
tabindex="0"
|
||||||
>
|
>
|
||||||
<a
|
<a
|
||||||
class="bp4-menu-item"
|
class="bp4-menu-item"
|
||||||
role="menuitem"
|
role="none"
|
||||||
tabindex="0"
|
tabindex="-1"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
class="bp4-menu-item-icon"
|
class="bp4-menu-item-icon"
|
||||||
|
@ -320,11 +328,13 @@ exports[`StringMenuItems matches snapshot when menu is opened for column not ins
|
||||||
<span
|
<span
|
||||||
aria-haspopup="true"
|
aria-haspopup="true"
|
||||||
class="bp4-popover-target"
|
class="bp4-popover-target"
|
||||||
|
role="menuitem"
|
||||||
|
tabindex="0"
|
||||||
>
|
>
|
||||||
<a
|
<a
|
||||||
class="bp4-menu-item"
|
class="bp4-menu-item"
|
||||||
role="menuitem"
|
role="none"
|
||||||
tabindex="0"
|
tabindex="-1"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
class="bp4-menu-item-icon"
|
class="bp4-menu-item-icon"
|
||||||
|
@ -386,11 +396,13 @@ exports[`StringMenuItems matches snapshot when menu is opened for column not ins
|
||||||
<span
|
<span
|
||||||
aria-haspopup="true"
|
aria-haspopup="true"
|
||||||
class="bp4-popover-target"
|
class="bp4-popover-target"
|
||||||
|
role="menuitem"
|
||||||
|
tabindex="0"
|
||||||
>
|
>
|
||||||
<a
|
<a
|
||||||
class="bp4-menu-item"
|
class="bp4-menu-item"
|
||||||
role="menuitem"
|
role="none"
|
||||||
tabindex="0"
|
tabindex="-1"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
class="bp4-menu-item-icon"
|
class="bp4-menu-item-icon"
|
||||||
|
|
|
@ -12,11 +12,13 @@ exports[`TimeMenuItems matches snapshot when menu is opened for column inside gr
|
||||||
<span
|
<span
|
||||||
aria-haspopup="true"
|
aria-haspopup="true"
|
||||||
class="bp4-popover-target"
|
class="bp4-popover-target"
|
||||||
|
role="menuitem"
|
||||||
|
tabindex="0"
|
||||||
>
|
>
|
||||||
<a
|
<a
|
||||||
class="bp4-menu-item"
|
class="bp4-menu-item"
|
||||||
role="menuitem"
|
role="none"
|
||||||
tabindex="0"
|
tabindex="-1"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
class="bp4-menu-item-icon"
|
class="bp4-menu-item-icon"
|
||||||
|
@ -78,11 +80,13 @@ exports[`TimeMenuItems matches snapshot when menu is opened for column inside gr
|
||||||
<span
|
<span
|
||||||
aria-haspopup="true"
|
aria-haspopup="true"
|
||||||
class="bp4-popover-target"
|
class="bp4-popover-target"
|
||||||
|
role="menuitem"
|
||||||
|
tabindex="0"
|
||||||
>
|
>
|
||||||
<a
|
<a
|
||||||
class="bp4-menu-item"
|
class="bp4-menu-item"
|
||||||
role="menuitem"
|
role="none"
|
||||||
tabindex="0"
|
tabindex="-1"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
class="bp4-menu-item-icon"
|
class="bp4-menu-item-icon"
|
||||||
|
@ -183,11 +187,13 @@ exports[`TimeMenuItems matches snapshot when menu is opened for column inside gr
|
||||||
<span
|
<span
|
||||||
aria-haspopup="true"
|
aria-haspopup="true"
|
||||||
class="bp4-popover-target"
|
class="bp4-popover-target"
|
||||||
|
role="menuitem"
|
||||||
|
tabindex="0"
|
||||||
>
|
>
|
||||||
<a
|
<a
|
||||||
class="bp4-menu-item"
|
class="bp4-menu-item"
|
||||||
role="menuitem"
|
role="none"
|
||||||
tabindex="0"
|
tabindex="-1"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
class="bp4-menu-item-icon"
|
class="bp4-menu-item-icon"
|
||||||
|
@ -254,11 +260,13 @@ exports[`TimeMenuItems matches snapshot when menu is opened for column not insid
|
||||||
<span
|
<span
|
||||||
aria-haspopup="true"
|
aria-haspopup="true"
|
||||||
class="bp4-popover-target"
|
class="bp4-popover-target"
|
||||||
|
role="menuitem"
|
||||||
|
tabindex="0"
|
||||||
>
|
>
|
||||||
<a
|
<a
|
||||||
class="bp4-menu-item"
|
class="bp4-menu-item"
|
||||||
role="menuitem"
|
role="none"
|
||||||
tabindex="0"
|
tabindex="-1"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
class="bp4-menu-item-icon"
|
class="bp4-menu-item-icon"
|
||||||
|
@ -320,11 +328,13 @@ exports[`TimeMenuItems matches snapshot when menu is opened for column not insid
|
||||||
<span
|
<span
|
||||||
aria-haspopup="true"
|
aria-haspopup="true"
|
||||||
class="bp4-popover-target"
|
class="bp4-popover-target"
|
||||||
|
role="menuitem"
|
||||||
|
tabindex="0"
|
||||||
>
|
>
|
||||||
<a
|
<a
|
||||||
class="bp4-menu-item"
|
class="bp4-menu-item"
|
||||||
role="menuitem"
|
role="none"
|
||||||
tabindex="0"
|
tabindex="-1"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
class="bp4-menu-item-icon"
|
class="bp4-menu-item-icon"
|
||||||
|
@ -386,11 +396,13 @@ exports[`TimeMenuItems matches snapshot when menu is opened for column not insid
|
||||||
<span
|
<span
|
||||||
aria-haspopup="true"
|
aria-haspopup="true"
|
||||||
class="bp4-popover-target"
|
class="bp4-popover-target"
|
||||||
|
role="menuitem"
|
||||||
|
tabindex="0"
|
||||||
>
|
>
|
||||||
<a
|
<a
|
||||||
class="bp4-menu-item"
|
class="bp4-menu-item"
|
||||||
role="menuitem"
|
role="none"
|
||||||
tabindex="0"
|
tabindex="-1"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
class="bp4-menu-item-icon"
|
class="bp4-menu-item-icon"
|
||||||
|
|
Loading…
Reference in New Issue