From 1db4557da158050f487de8ee8cb43af7f8b99903 Mon Sep 17 00:00:00 2001 From: Vadim Ogievetsky Date: Wed, 15 Jan 2025 00:09:10 -0800 Subject: [PATCH] Web console: Explore view improvements (#17627) * new Explore layout * fix feedback comments --- licenses.yaml | 37 +- web-console/package-lock.json | 319 +++++--- web-console/package.json | 17 +- .../clearable-input/clearable-input.spec.tsx | 2 +- .../clearable-input/clearable-input.tsx | 16 +- .../fancy-numeric-input.tsx | 4 +- .../form-group-with-info.tsx | 4 +- .../formatted-input/formatted-input.tsx | 4 +- .../__snapshots__/header-bar.spec.tsx.snap | 3 +- .../src/components/header-bar/header-bar.tsx | 2 +- .../portal-bubble/portal-bubble.scss | 1 + .../portal-bubble/portal-bubble.tsx | 17 +- .../segment-timeline/chart-axis.tsx | 37 - .../{common.ts => interval.ts} | 2 +- .../segment-bar-chart-render.scss | 7 +- .../segment-bar-chart-render.tsx | 421 +++++----- .../segment-timeline/segment-bar-chart.tsx | 9 +- .../segment-timeline/segment-timeline.tsx | 42 +- .../__snapshots__/show-log.spec.tsx.snap | 1 - .../__snapshots__/about-dialog.spec.tsx.snap | 1 - .../src/druid-models/segment/segment.ts | 4 +- web-console/src/hooks/index.ts | 2 +- ...use-hash-and-local-storage-hybrid-state.ts | 27 +- .../use-memo-with-previous.ts} | 40 +- web-console/src/hooks/use-resize-observer.ts | 80 -- .../auto-granularity.ts} | 72 +- web-console/src/utils/base64-url.spec.ts | 15 +- web-console/src/utils/base64-url.ts | 30 +- .../date-floor-shift-ceil-utc.spec.ts | 169 ---- .../date-floor-shift-ceil.spec.ts | 181 ----- .../date-floor-shift-ceil.ts | 296 ------- web-console/src/utils/date-format.ts | 72 ++ .../src/utils/duration/duration.spec.ts | 505 ------------ web-console/src/utils/duration/duration.ts | 388 --------- web-console/src/utils/general.tsx | 22 +- web-console/src/utils/index.tsx | 5 +- .../src/utils/mouse-tooltip/mouse-tooltip.ts | 33 +- web-console/src/utils/stage.ts | 15 + .../column-value/column-value.scss | 0 .../column-value/column-value.tsx | 6 + .../components/control-pane/control-pane.scss | 5 + .../components/control-pane/control-pane.tsx | 87 +- .../control-pane/named-expressions-input.tsx | 2 +- .../contains-filter-control.tsx | 9 +- .../filter-pane/filter-menu/filter-menu.tsx | 27 +- .../regexp-filter-control.tsx | 9 +- .../time-relative-filter-control.tsx | 13 +- .../values-filter-control.tsx | 13 +- .../components/filter-pane/filter-pane.tsx | 53 +- .../generic-output-table.tsx | 28 +- .../components/helper-table/helper-table.scss | 85 ++ .../components/helper-table/helper-table.tsx | 191 +++++ .../highlight-bubble/highlight-bubble.tsx | 80 -- .../views/explore-view/components/index.ts | 2 +- .../components/module-pane/module-pane.scss | 74 +- .../components/module-pane/module-pane.tsx | 266 +++++- .../module-picker/module-picker.tsx | 19 +- .../nested-column-dialog.scss | 1 + .../nested-column-dialog.tsx | 46 +- .../resource-pane/resource-pane.scss | 71 +- .../resource-pane/resource-pane.tsx | 389 ++++----- .../source-query-pane/source-query-pane.tsx | 2 +- .../src/views/explore-view/explore-state.ts | 237 ------ .../src/views/explore-view/explore-view.scss | 247 ++++-- .../src/views/explore-view/explore-view.tsx | 627 ++++++++------- .../highlight-store/highlight-store.ts | 64 -- .../explore-view/models/explore-state.ts | 316 ++++++++ .../explore-view/models/expression-meta.ts | 18 +- .../src/views/explore-view/models/index.ts | 2 + .../src/views/explore-view/models/measure.ts | 10 +- .../views/explore-view/models/module-state.ts | 173 ++++ .../views/explore-view/models/parameter.ts | 170 ++-- .../views/explore-view/models/query-source.ts | 56 +- .../module-repository/module-repository.ts | 4 +- .../bar-chart-module.tsx | 127 ++- .../grouping-table-module.scss | 0 .../grouping-table-module.tsx | 27 +- .../src/views/explore-view/modules/index.ts | 12 +- .../multi-axis-chart-module.tsx | 187 +++-- .../pie-chart-module.tsx | 92 ++- .../record-table-module.scss | 0 .../record-table-module.tsx | 12 +- .../modules/time-chart-module.tsx | 451 ----------- .../continuous-chart-render.scss | 131 +++ .../continuous-chart-render.tsx | 754 ++++++++++++++++++ .../time-chart-module/time-chart-module.tsx | 348 ++++++++ .../query-macros/max-data-time.ts | 25 +- .../views/explore-view/utils/date-format.ts | 28 - .../utils/filter-pattern-helpers.ts | 89 ++- .../src/views/explore-view/utils/index.ts | 2 - .../views/explore-view/utils/table-query.ts | 5 +- .../utils/time-manipulation.spec.ts | 51 +- .../explore-view/utils/time-manipulation.ts | 58 ++ .../views/load-data-view/load-data-view.tsx | 10 +- .../schema-step/schema-step.tsx | 2 +- .../time-menu-items/time-menu-items.tsx | 19 +- .../execution-details-pane.spec.tsx.snap | 4 - .../execution-summary-panel.tsx | 9 + .../timezone-menu-items.tsx | 3 +- web-console/tsconfig.json | 2 +- 100 files changed, 4680 insertions(+), 4072 deletions(-) delete mode 100644 web-console/src/components/segment-timeline/chart-axis.tsx rename web-console/src/components/segment-timeline/{common.ts => interval.ts} (98%) rename web-console/src/{views/explore-view/components/highlight-bubble/highlight-bubble.scss => hooks/use-memo-with-previous.ts} (52%) delete mode 100644 web-console/src/hooks/use-resize-observer.ts rename web-console/src/{views/explore-view/utils/get-auto-granularity.ts => utils/auto-granularity.ts} (55%) delete mode 100755 web-console/src/utils/date-floor-shift-ceil/date-floor-shift-ceil-utc.spec.ts delete mode 100755 web-console/src/utils/date-floor-shift-ceil/date-floor-shift-ceil.spec.ts delete mode 100755 web-console/src/utils/date-floor-shift-ceil/date-floor-shift-ceil.ts create mode 100644 web-console/src/utils/date-format.ts delete mode 100755 web-console/src/utils/duration/duration.spec.ts delete mode 100755 web-console/src/utils/duration/duration.ts rename web-console/src/views/explore-view/components/{filter-pane => }/column-value/column-value.scss (100%) rename web-console/src/views/explore-view/components/{filter-pane => }/column-value/column-value.tsx (84%) create mode 100644 web-console/src/views/explore-view/components/helper-table/helper-table.scss create mode 100644 web-console/src/views/explore-view/components/helper-table/helper-table.tsx delete mode 100644 web-console/src/views/explore-view/components/highlight-bubble/highlight-bubble.tsx delete mode 100644 web-console/src/views/explore-view/explore-state.ts delete mode 100644 web-console/src/views/explore-view/highlight-store/highlight-store.ts create mode 100644 web-console/src/views/explore-view/models/explore-state.ts create mode 100644 web-console/src/views/explore-view/models/module-state.ts rename web-console/src/views/explore-view/modules/{ => bar-chart-module}/bar-chart-module.tsx (60%) rename web-console/src/views/explore-view/modules/{ => grouping-table-module}/grouping-table-module.scss (100%) rename web-console/src/views/explore-view/modules/{ => grouping-table-module}/grouping-table-module.tsx (92%) rename web-console/src/views/explore-view/modules/{ => multi-axis-chart-module}/multi-axis-chart-module.tsx (70%) rename web-console/src/views/explore-view/modules/{ => pie-chart-module}/pie-chart-module.tsx (74%) rename web-console/src/views/explore-view/modules/{ => record-table-module}/record-table-module.scss (100%) rename web-console/src/views/explore-view/modules/{ => record-table-module}/record-table-module.tsx (91%) delete mode 100644 web-console/src/views/explore-view/modules/time-chart-module.tsx create mode 100644 web-console/src/views/explore-view/modules/time-chart-module/continuous-chart-render.scss create mode 100644 web-console/src/views/explore-view/modules/time-chart-module/continuous-chart-render.tsx create mode 100644 web-console/src/views/explore-view/modules/time-chart-module/time-chart-module.tsx delete mode 100644 web-console/src/views/explore-view/utils/date-format.ts diff --git a/licenses.yaml b/licenses.yaml index e3f822300cfb..8d7457ec1dc3 100644 --- a/licenses.yaml +++ b/licenses.yaml @@ -5072,7 +5072,7 @@ license_category: binary module: web-console license_name: Apache License version 2.0 copyright: Palantir Technologies -version: 5.1.2 +version: 5.1.4 --- @@ -5081,7 +5081,7 @@ license_category: binary module: web-console license_name: Apache License version 2.0 copyright: Palantir Technologies -version: 5.13.1 +version: 5.16.0 --- @@ -5090,7 +5090,7 @@ license_category: binary module: web-console license_name: Apache License version 2.0 copyright: Palantir Technologies -version: 2.3.11 +version: 2.3.17 --- @@ -5099,7 +5099,7 @@ license_category: binary module: web-console license_name: Apache License version 2.0 copyright: Palantir Technologies -version: 5.3.11 +version: 5.3.17 --- @@ -5108,7 +5108,7 @@ license_category: binary module: web-console license_name: Apache License version 2.0 copyright: Palantir Technologies -version: 5.13.0 +version: 5.15.0 --- @@ -5117,7 +5117,7 @@ license_category: binary module: web-console license_name: Apache License version 2.0 copyright: Palantir Technologies -version: 5.2.5 +version: 5.3.5 --- @@ -5419,6 +5419,15 @@ license_file_path: licenses/bin/change-case.MIT --- +name: "chronoshift" +license_category: binary +module: web-console +license_name: Apache License version 2.0 +copyright: Vadim Ogievetsky +version: 1.1.0 + +--- + name: "classnames" license_category: binary module: web-console @@ -5589,13 +5598,13 @@ license_file_path: licenses/bin/d3-interpolate.ISC --- -name: "d3-scale-chromatic" +name: "d3-path" license_category: binary module: web-console license_name: ISC License copyright: Mike Bostock version: 3.1.0 -license_file_path: licenses/bin/d3-scale-chromatic.ISC +license_file_path: licenses/bin/d3-path.ISC --- @@ -5619,6 +5628,16 @@ license_file_path: licenses/bin/d3-selection.ISC --- +name: "d3-shape" +license_category: binary +module: web-console +license_name: ISC License +copyright: Mike Bostock +version: 3.2.0 +license_file_path: licenses/bin/d3-shape.ISC + +--- + name: "d3-time-format" license_category: binary module: web-console @@ -5713,7 +5732,7 @@ license_category: binary module: web-console license_name: Apache License version 2.0 copyright: Imply Data -version: 1.0.0 +version: 1.0.2 --- diff --git a/web-console/package-lock.json b/web-console/package-lock.json index 27a3d463aad2..d07f6e31dbf1 100644 --- a/web-console/package-lock.json +++ b/web-console/package-lock.json @@ -9,26 +9,27 @@ "version": "32.0.0", "license": "Apache-2.0", "dependencies": { - "@blueprintjs/core": "^5.13.1", - "@blueprintjs/datetime": "^5.3.11", - "@blueprintjs/datetime2": "^2.3.11", - "@blueprintjs/icons": "^5.13.0", - "@blueprintjs/select": "^5.2.5", + "@blueprintjs/core": "^5.16.0", + "@blueprintjs/datetime": "^5.3.17", + "@blueprintjs/datetime2": "^2.3.17", + "@blueprintjs/icons": "^5.15.0", + "@blueprintjs/select": "^5.3.5", "@flatten-js/interval-tree": "^1.1.3", "@fontsource/open-sans": "^5.0.30", "@internationalized/date": "^3.5.6", "ace-builds": "~1.5.3", "axios": "^1.7.7", + "chronoshift": "^1.1.0", "classnames": "^2.2.6", "copy-to-clipboard": "^3.3.3", "d3-array": "^3.2.4", "d3-axis": "^3.0.0", "d3-dsv": "^3.0.1", "d3-scale": "^4.0.2", - "d3-scale-chromatic": "^3.1.0", "d3-selection": "^3.0.0", + "d3-shape": "^3.2.0", "date-fns": "^2.28.0", - "druid-query-toolkit": "^1.0.0", + "druid-query-toolkit": "^1.0.2", "echarts": "^5.5.1", "file-saver": "^2.0.5", "hjson": "^3.2.2", @@ -60,8 +61,8 @@ "@types/d3-axis": "^3.0.6", "@types/d3-dsv": "^3.0.7", "@types/d3-scale": "^4.0.8", - "@types/d3-scale-chromatic": "^3.0.3", "@types/d3-selection": "^3.0.11", + "@types/d3-shape": "^3.1.6", "@types/enzyme": "^3.10.18", "@types/enzyme-adapter-react-16": "^1.0.9", "@types/file-saver": "^2.0.7", @@ -785,9 +786,9 @@ "dev": true }, "node_modules/@blueprintjs/colors": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/@blueprintjs/colors/-/colors-5.1.2.tgz", - "integrity": "sha512-7CWwVsXK4YTN9Z/wkjnS3p7VE8YfIXXv2UaySAbtcw6rBkmoSHjLRtfohSA5yNy8xYTQ4KY2odKZSUW0W/Nltw==", + "version": "5.1.4", + "resolved": "https://registry.npmjs.org/@blueprintjs/colors/-/colors-5.1.4.tgz", + "integrity": "sha512-OBRswl1v/AQXtx8PLP6PhZX+xY+Q/LP/eQATQi/ZUCrNbE0ZkMXQRS9PK/7ZVllnQqcACkC4x/JVthkzkLoG2g==", "license": "Apache-2.0", "dependencies": { "tslib": "~2.6.2" @@ -800,13 +801,13 @@ "license": "0BSD" }, "node_modules/@blueprintjs/core": { - "version": "5.13.1", - "resolved": "https://registry.npmjs.org/@blueprintjs/core/-/core-5.13.1.tgz", - "integrity": "sha512-PDZ9X/xGBetwU2AqQuCDGVWZZMmt6+/BCnmoKXxsBBZIuWQuHDiKcwvb9rzup0htsA6P7KGl5aw7ocmDvZPpBw==", + "version": "5.16.0", + "resolved": "https://registry.npmjs.org/@blueprintjs/core/-/core-5.16.0.tgz", + "integrity": "sha512-umWvCL9iHP01AO11fILCLK8ZT8mkOouSC+MFwk4cVx8HElxLoUFCf64lUFSQpQMPyNKICYJ4qBrN/hKsez11lQ==", "license": "Apache-2.0", "dependencies": { - "@blueprintjs/colors": "^5.1.2", - "@blueprintjs/icons": "^5.13.0", + "@blueprintjs/colors": "^5.1.4", + "@blueprintjs/icons": "^5.15.0", "@popperjs/core": "^2.11.8", "classnames": "^2.3.1", "normalize.css": "^8.0.1", @@ -838,14 +839,14 @@ "license": "0BSD" }, "node_modules/@blueprintjs/datetime": { - "version": "5.3.11", - "resolved": "https://registry.npmjs.org/@blueprintjs/datetime/-/datetime-5.3.11.tgz", - "integrity": "sha512-6MMictO0OPc6gRoPt/gZ6V5tFTKj9d2M3Mpn4alNa74uZF/Y1FjBfOvSPOsV7JajBOVjqiaSEBRZIFHrhRr91Q==", + "version": "5.3.17", + "resolved": "https://registry.npmjs.org/@blueprintjs/datetime/-/datetime-5.3.17.tgz", + "integrity": "sha512-Y6F3Md3OrEIqv3iF10WXpYwSc6Nhuk4i4g7GWIny/kZajLmLysPHFuzmidZ9IKrBYYwPBObAyWQmy9n3qR6mFw==", "license": "Apache-2.0", "dependencies": { - "@blueprintjs/core": "^5.13.1", - "@blueprintjs/icons": "^5.13.0", - "@blueprintjs/select": "^5.2.5", + "@blueprintjs/core": "^5.16.0", + "@blueprintjs/icons": "^5.15.0", + "@blueprintjs/select": "^5.3.5", "classnames": "^2.3.1", "date-fns": "^2.28.0", "date-fns-tz": "^2.0.0", @@ -870,14 +871,14 @@ "license": "0BSD" }, "node_modules/@blueprintjs/datetime2": { - "version": "2.3.11", - "resolved": "https://registry.npmjs.org/@blueprintjs/datetime2/-/datetime2-2.3.11.tgz", - "integrity": "sha512-o9NYfUAb8xYiGZQ56tn6CXm8jDNxwSxJvZgrzs6EVYCuCFrsBr9WAjy0p768ZbZlzuWwClbEjslr8s+E6etU/w==", + "version": "2.3.17", + "resolved": "https://registry.npmjs.org/@blueprintjs/datetime2/-/datetime2-2.3.17.tgz", + "integrity": "sha512-HZNpQWCPTfTJfx8eZwZDnb/HoixyBqHPypWYs8DxWgfWIOVxpV0aaQUJl+Gni/wIgpf9g6qDs7x8WFdMt/G8Mg==", "license": "Apache-2.0", "dependencies": { - "@blueprintjs/core": "^5.13.1", - "@blueprintjs/datetime": "^5.3.11", - "@blueprintjs/icons": "^5.13.0", + "@blueprintjs/core": "^5.16.0", + "@blueprintjs/datetime": "^5.3.17", + "@blueprintjs/icons": "^5.15.0", "classnames": "^2.3.1", "date-fns": "^2.28.0", "react-day-picker": "^8.10.0", @@ -915,9 +916,9 @@ "license": "0BSD" }, "node_modules/@blueprintjs/icons": { - "version": "5.13.0", - "resolved": "https://registry.npmjs.org/@blueprintjs/icons/-/icons-5.13.0.tgz", - "integrity": "sha512-L096dBjzfnWW7fWXM311S2C/5Zn0EuEK9q6G84QvWP0BZJOTowU1EIWLj90IgGtNajld/3ZUAj6eJf+ryt/kjQ==", + "version": "5.15.0", + "resolved": "https://registry.npmjs.org/@blueprintjs/icons/-/icons-5.15.0.tgz", + "integrity": "sha512-5OiDY0hdQwfljfo9ynmmUBh3ibXTDuJ74WpwCakTr4hD9zGMhpzjnpEoZMfrMCsKZubGBiOFcT5riPljrDpdLw==", "license": "Apache-2.0", "dependencies": { "change-case": "^4.1.2", @@ -942,13 +943,13 @@ "license": "0BSD" }, "node_modules/@blueprintjs/select": { - "version": "5.2.5", - "resolved": "https://registry.npmjs.org/@blueprintjs/select/-/select-5.2.5.tgz", - "integrity": "sha512-mO9r5iQ4uxdgScTyNSNSLq3DUZgFtI3dAO1VRUNONBGPcSROVi+3ixYYynwcad18ftAZz/WuUD9ZHqVyDwXmbQ==", + "version": "5.3.5", + "resolved": "https://registry.npmjs.org/@blueprintjs/select/-/select-5.3.5.tgz", + "integrity": "sha512-oULOvtnFHiaXPWahyQg0XFc2YhZrY1FPOuHq3fDKyb1MukYEYshy+L4gHUA5gnVBxv6543Oi7m7ErxGE3bcJmQ==", "license": "Apache-2.0", "dependencies": { - "@blueprintjs/core": "^5.13.1", - "@blueprintjs/icons": "^5.13.0", + "@blueprintjs/core": "^5.16.0", + "@blueprintjs/icons": "^5.15.0", "classnames": "^2.3.1", "tslib": "~2.6.2" }, @@ -3771,6 +3772,13 @@ "dev": true, "license": "MIT" }, + "node_modules/@types/d3-path": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@types/d3-path/-/d3-path-3.1.0.tgz", + "integrity": "sha512-P2dlU/q51fkOc/Gfl3Ul9kicV7l+ra934qBFXCFhrZMOL6du1TM0pm1ThYvENukyOn5h9v+yMJ9Fn5JK4QozrQ==", + "dev": true, + "license": "MIT" + }, "node_modules/@types/d3-scale": { "version": "4.0.8", "resolved": "https://registry.npmjs.org/@types/d3-scale/-/d3-scale-4.0.8.tgz", @@ -3781,12 +3789,6 @@ "@types/d3-time": "*" } }, - "node_modules/@types/d3-scale-chromatic": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/@types/d3-scale-chromatic/-/d3-scale-chromatic-3.0.3.tgz", - "integrity": "sha512-laXM4+1o5ImZv3RpFAsTRn3TEkzqkytiOY0Dz0sq5cnd1dtNlk6sHLon4OvqaiJb28T0S/TdsBI3Sjsy+keJrw==", - "dev": true - }, "node_modules/@types/d3-selection": { "version": "3.0.11", "resolved": "https://registry.npmjs.org/@types/d3-selection/-/d3-selection-3.0.11.tgz", @@ -3794,6 +3796,16 @@ "dev": true, "license": "MIT" }, + "node_modules/@types/d3-shape": { + "version": "3.1.6", + "resolved": "https://registry.npmjs.org/@types/d3-shape/-/d3-shape-3.1.6.tgz", + "integrity": "sha512-5KKk5aKGu2I+O6SONMYSNflgiP0WfZIQvVUMan50wHsLG1G94JlxEVnCpQARfTtzytuY0p/9PXXZb3I7giofIA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/d3-path": "*" + } + }, "node_modules/@types/d3-time": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/@types/d3-time/-/d3-time-2.1.1.tgz", @@ -5818,6 +5830,16 @@ "node": ">=6.0" } }, + "node_modules/chronoshift": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/chronoshift/-/chronoshift-1.1.0.tgz", + "integrity": "sha512-Mq72wZIn3lF8yyHo2LjOnWir8CXVafHalOXvYN1qvpYAYX9yOyUnlxLtd6W6g74xYDv9lfc/3sNZfY3EmkUwUw==", + "license": "Apache-2.0", + "dependencies": { + "@internationalized/date": "^3.5.6", + "tslib": "^2.8.1" + } + }, "node_modules/ci-info": { "version": "3.3.0", "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.3.0.tgz", @@ -6575,6 +6597,15 @@ "node": ">=12" } }, + "node_modules/d3-path": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/d3-path/-/d3-path-3.1.0.tgz", + "integrity": "sha512-p3KP5HCf/bvjBSSKuXid6Zqijx7wIfNW+J/maPs+iwR35at5JCbLUT0LzF1cnjbCHWhqzQTIN2Jpe8pRebIEFQ==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, "node_modules/d3-scale": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/d3-scale/-/d3-scale-4.0.2.tgz", @@ -6591,18 +6622,6 @@ "node": ">=12" } }, - "node_modules/d3-scale-chromatic": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/d3-scale-chromatic/-/d3-scale-chromatic-3.1.0.tgz", - "integrity": "sha512-A3s5PWiZ9YCXFye1o246KoscMWqf8BsD9eRiJ3He7C9OBaxKhAd5TFCdEx/7VbKtxxTsu//1mMJFrEt572cEyQ==", - "dependencies": { - "d3-color": "1 - 3", - "d3-interpolate": "1 - 3" - }, - "engines": { - "node": ">=12" - } - }, "node_modules/d3-scale/node_modules/d3-array": { "version": "2.12.1", "resolved": "https://registry.npmjs.org/d3-array/-/d3-array-2.12.1.tgz", @@ -6629,6 +6648,18 @@ "node": ">=12" } }, + "node_modules/d3-shape": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/d3-shape/-/d3-shape-3.2.0.tgz", + "integrity": "sha512-SaLBuwGm3MOViRq2ABk3eLoxwZELpH6zhl3FbAoJ7Vm1gofKx6El1Ib5z23NUEhF9AsGl7y+dzLe5Cw2AArGTA==", + "license": "ISC", + "dependencies": { + "d3-path": "^3.1.0" + }, + "engines": { + "node": ">=12" + } + }, "node_modules/d3-time": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/d3-time/-/d3-time-1.1.0.tgz", @@ -7021,9 +7052,9 @@ } }, "node_modules/druid-query-toolkit": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/druid-query-toolkit/-/druid-query-toolkit-1.0.0.tgz", - "integrity": "sha512-yBQR4uDcks0lcsRSWoLQy16YQ4dx264m6i7TNQDFrACUKHlMtnw5l+4+UDZKbXbpUFLMLWCr/kLhmXzLJk50+Q==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/druid-query-toolkit/-/druid-query-toolkit-1.0.2.tgz", + "integrity": "sha512-TXu8io3oF04g0xhiGeXBB3xsGt2kJtp+95jrSja1a5Db8NFpkso6UPbfc6vlok24bky1aUKObTPJVVKOwSaBIw==", "license": "Apache-2.0", "dependencies": { "tslib": "^2.5.2" @@ -8193,9 +8224,9 @@ } }, "node_modules/express": { - "version": "4.21.1", - "resolved": "https://registry.npmjs.org/express/-/express-4.21.1.tgz", - "integrity": "sha512-YSFlK1Ee0/GC8QaO91tHcDxJiE/X4FbpAyQWkxAvG6AXCuR65YzK8ua6D9hvi/TzUfZMpc+BwuM1IPw8fmQBiQ==", + "version": "4.21.2", + "resolved": "https://registry.npmjs.org/express/-/express-4.21.2.tgz", + "integrity": "sha512-28HqgMZAmih1Czt9ny7qr6ek2qddF4FclbMzwhCREB6OFfH+rXAnuNCwo1/wFvrtbgsQDb4kSbX9de9lFbrXnA==", "dev": true, "license": "MIT", "dependencies": { @@ -8218,7 +8249,7 @@ "methods": "~1.1.2", "on-finished": "2.4.1", "parseurl": "~1.3.3", - "path-to-regexp": "0.1.10", + "path-to-regexp": "0.1.12", "proxy-addr": "~2.0.7", "qs": "6.13.0", "range-parser": "~1.2.1", @@ -8233,6 +8264,10 @@ }, "engines": { "node": ">= 0.10.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" } }, "node_modules/express/node_modules/array-flatten": { @@ -8260,10 +8295,11 @@ } }, "node_modules/express/node_modules/path-to-regexp": { - "version": "0.1.10", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.10.tgz", - "integrity": "sha512-7lf7qcQidTku0Gu3YDPc8DJ1q7OOucfa/BSsIwjuh56VU7katFvuM8hULfkwB3Fns/rsVF7PwPKVw1sl5KQS9w==", - "dev": true + "version": "0.1.12", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.12.tgz", + "integrity": "sha512-RA1GjUVMnvYFxuqovrEqZoxxW5NUZqbwKtYz/Tt7nXerk0LbLblQmrsgdeOxV5SFHf0UDggjS/bSeOZwt1pmEQ==", + "dev": true, + "license": "MIT" }, "node_modules/express/node_modules/safe-buffer": { "version": "5.2.1", @@ -12918,9 +12954,9 @@ } }, "node_modules/nanoid": { - "version": "3.3.7", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz", - "integrity": "sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==", + "version": "3.3.8", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.8.tgz", + "integrity": "sha512-WNLf5Sd8oZxOm+TzppcYk8gVOgP+l58xNy58D0nbUnOxOWRWvlcCV4kUF7ltmI6PsrLl/BgKEyS4mqsGChFN0w==", "dev": true, "funding": [ { @@ -12928,6 +12964,7 @@ "url": "https://github.com/sponsors/ai" } ], + "license": "MIT", "bin": { "nanoid": "bin/nanoid.cjs" }, @@ -17257,9 +17294,9 @@ } }, "node_modules/tslib": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.0.tgz", - "integrity": "sha512-jWVzBLplnCmoaTr13V9dYbiQ99wvZRd0vNWaDRg+aVYRcjDF3nDksxFDE/+fkXnKhpnUUkmx5pK/v8mCtLVqZA==", + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", + "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", "license": "0BSD" }, "node_modules/type-check": { @@ -19018,9 +19055,9 @@ "dev": true }, "@blueprintjs/colors": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/@blueprintjs/colors/-/colors-5.1.2.tgz", - "integrity": "sha512-7CWwVsXK4YTN9Z/wkjnS3p7VE8YfIXXv2UaySAbtcw6rBkmoSHjLRtfohSA5yNy8xYTQ4KY2odKZSUW0W/Nltw==", + "version": "5.1.4", + "resolved": "https://registry.npmjs.org/@blueprintjs/colors/-/colors-5.1.4.tgz", + "integrity": "sha512-OBRswl1v/AQXtx8PLP6PhZX+xY+Q/LP/eQATQi/ZUCrNbE0ZkMXQRS9PK/7ZVllnQqcACkC4x/JVthkzkLoG2g==", "requires": { "tslib": "~2.6.2" }, @@ -19033,12 +19070,12 @@ } }, "@blueprintjs/core": { - "version": "5.13.1", - "resolved": "https://registry.npmjs.org/@blueprintjs/core/-/core-5.13.1.tgz", - "integrity": "sha512-PDZ9X/xGBetwU2AqQuCDGVWZZMmt6+/BCnmoKXxsBBZIuWQuHDiKcwvb9rzup0htsA6P7KGl5aw7ocmDvZPpBw==", + "version": "5.16.0", + "resolved": "https://registry.npmjs.org/@blueprintjs/core/-/core-5.16.0.tgz", + "integrity": "sha512-umWvCL9iHP01AO11fILCLK8ZT8mkOouSC+MFwk4cVx8HElxLoUFCf64lUFSQpQMPyNKICYJ4qBrN/hKsez11lQ==", "requires": { - "@blueprintjs/colors": "^5.1.2", - "@blueprintjs/icons": "^5.13.0", + "@blueprintjs/colors": "^5.1.4", + "@blueprintjs/icons": "^5.15.0", "@popperjs/core": "^2.11.8", "classnames": "^2.3.1", "normalize.css": "^8.0.1", @@ -19057,13 +19094,13 @@ } }, "@blueprintjs/datetime": { - "version": "5.3.11", - "resolved": "https://registry.npmjs.org/@blueprintjs/datetime/-/datetime-5.3.11.tgz", - "integrity": "sha512-6MMictO0OPc6gRoPt/gZ6V5tFTKj9d2M3Mpn4alNa74uZF/Y1FjBfOvSPOsV7JajBOVjqiaSEBRZIFHrhRr91Q==", + "version": "5.3.17", + "resolved": "https://registry.npmjs.org/@blueprintjs/datetime/-/datetime-5.3.17.tgz", + "integrity": "sha512-Y6F3Md3OrEIqv3iF10WXpYwSc6Nhuk4i4g7GWIny/kZajLmLysPHFuzmidZ9IKrBYYwPBObAyWQmy9n3qR6mFw==", "requires": { - "@blueprintjs/core": "^5.13.1", - "@blueprintjs/icons": "^5.13.0", - "@blueprintjs/select": "^5.2.5", + "@blueprintjs/core": "^5.16.0", + "@blueprintjs/icons": "^5.15.0", + "@blueprintjs/select": "^5.3.5", "classnames": "^2.3.1", "date-fns": "^2.28.0", "date-fns-tz": "^2.0.0", @@ -19079,13 +19116,13 @@ } }, "@blueprintjs/datetime2": { - "version": "2.3.11", - "resolved": "https://registry.npmjs.org/@blueprintjs/datetime2/-/datetime2-2.3.11.tgz", - "integrity": "sha512-o9NYfUAb8xYiGZQ56tn6CXm8jDNxwSxJvZgrzs6EVYCuCFrsBr9WAjy0p768ZbZlzuWwClbEjslr8s+E6etU/w==", + "version": "2.3.17", + "resolved": "https://registry.npmjs.org/@blueprintjs/datetime2/-/datetime2-2.3.17.tgz", + "integrity": "sha512-HZNpQWCPTfTJfx8eZwZDnb/HoixyBqHPypWYs8DxWgfWIOVxpV0aaQUJl+Gni/wIgpf9g6qDs7x8WFdMt/G8Mg==", "requires": { - "@blueprintjs/core": "^5.13.1", - "@blueprintjs/datetime": "^5.3.11", - "@blueprintjs/icons": "^5.13.0", + "@blueprintjs/core": "^5.16.0", + "@blueprintjs/datetime": "^5.3.17", + "@blueprintjs/icons": "^5.15.0", "classnames": "^2.3.1", "date-fns": "^2.28.0", "react-day-picker": "^8.10.0", @@ -19106,9 +19143,9 @@ } }, "@blueprintjs/icons": { - "version": "5.13.0", - "resolved": "https://registry.npmjs.org/@blueprintjs/icons/-/icons-5.13.0.tgz", - "integrity": "sha512-L096dBjzfnWW7fWXM311S2C/5Zn0EuEK9q6G84QvWP0BZJOTowU1EIWLj90IgGtNajld/3ZUAj6eJf+ryt/kjQ==", + "version": "5.15.0", + "resolved": "https://registry.npmjs.org/@blueprintjs/icons/-/icons-5.15.0.tgz", + "integrity": "sha512-5OiDY0hdQwfljfo9ynmmUBh3ibXTDuJ74WpwCakTr4hD9zGMhpzjnpEoZMfrMCsKZubGBiOFcT5riPljrDpdLw==", "requires": { "change-case": "^4.1.2", "classnames": "^2.3.1", @@ -19123,12 +19160,12 @@ } }, "@blueprintjs/select": { - "version": "5.2.5", - "resolved": "https://registry.npmjs.org/@blueprintjs/select/-/select-5.2.5.tgz", - "integrity": "sha512-mO9r5iQ4uxdgScTyNSNSLq3DUZgFtI3dAO1VRUNONBGPcSROVi+3ixYYynwcad18ftAZz/WuUD9ZHqVyDwXmbQ==", + "version": "5.3.5", + "resolved": "https://registry.npmjs.org/@blueprintjs/select/-/select-5.3.5.tgz", + "integrity": "sha512-oULOvtnFHiaXPWahyQg0XFc2YhZrY1FPOuHq3fDKyb1MukYEYshy+L4gHUA5gnVBxv6543Oi7m7ErxGE3bcJmQ==", "requires": { - "@blueprintjs/core": "^5.13.1", - "@blueprintjs/icons": "^5.13.0", + "@blueprintjs/core": "^5.16.0", + "@blueprintjs/icons": "^5.15.0", "classnames": "^2.3.1", "tslib": "~2.6.2" }, @@ -20835,6 +20872,12 @@ "integrity": "sha512-n6QBF9/+XASqcKK6waudgL0pf/S5XHPPI8APyMLLUHd8NqouBGLsU8MgtO7NINGtPBtk9Kko/W4ea0oAspwh9g==", "dev": true }, + "@types/d3-path": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@types/d3-path/-/d3-path-3.1.0.tgz", + "integrity": "sha512-P2dlU/q51fkOc/Gfl3Ul9kicV7l+ra934qBFXCFhrZMOL6du1TM0pm1ThYvENukyOn5h9v+yMJ9Fn5JK4QozrQ==", + "dev": true + }, "@types/d3-scale": { "version": "4.0.8", "resolved": "https://registry.npmjs.org/@types/d3-scale/-/d3-scale-4.0.8.tgz", @@ -20844,18 +20887,21 @@ "@types/d3-time": "*" } }, - "@types/d3-scale-chromatic": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/@types/d3-scale-chromatic/-/d3-scale-chromatic-3.0.3.tgz", - "integrity": "sha512-laXM4+1o5ImZv3RpFAsTRn3TEkzqkytiOY0Dz0sq5cnd1dtNlk6sHLon4OvqaiJb28T0S/TdsBI3Sjsy+keJrw==", - "dev": true - }, "@types/d3-selection": { "version": "3.0.11", "resolved": "https://registry.npmjs.org/@types/d3-selection/-/d3-selection-3.0.11.tgz", "integrity": "sha512-bhAXu23DJWsrI45xafYpkQ4NtcKMwWnAC/vKrd2l+nxMFuvOT3XMYTIj2opv8vq8AO5Yh7Qac/nSeP/3zjTK0w==", "dev": true }, + "@types/d3-shape": { + "version": "3.1.6", + "resolved": "https://registry.npmjs.org/@types/d3-shape/-/d3-shape-3.1.6.tgz", + "integrity": "sha512-5KKk5aKGu2I+O6SONMYSNflgiP0WfZIQvVUMan50wHsLG1G94JlxEVnCpQARfTtzytuY0p/9PXXZb3I7giofIA==", + "dev": true, + "requires": { + "@types/d3-path": "*" + } + }, "@types/d3-time": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/@types/d3-time/-/d3-time-2.1.1.tgz", @@ -22405,6 +22451,15 @@ "integrity": "sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==", "dev": true }, + "chronoshift": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/chronoshift/-/chronoshift-1.1.0.tgz", + "integrity": "sha512-Mq72wZIn3lF8yyHo2LjOnWir8CXVafHalOXvYN1qvpYAYX9yOyUnlxLtd6W6g74xYDv9lfc/3sNZfY3EmkUwUw==", + "requires": { + "@internationalized/date": "^3.5.6", + "tslib": "^2.8.1" + } + }, "ci-info": { "version": "3.3.0", "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.3.0.tgz", @@ -22932,6 +22987,11 @@ "d3-color": "1 - 3" } }, + "d3-path": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/d3-path/-/d3-path-3.1.0.tgz", + "integrity": "sha512-p3KP5HCf/bvjBSSKuXid6Zqijx7wIfNW+J/maPs+iwR35at5JCbLUT0LzF1cnjbCHWhqzQTIN2Jpe8pRebIEFQ==" + }, "d3-scale": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/d3-scale/-/d3-scale-4.0.2.tgz", @@ -22962,20 +23022,19 @@ } } }, - "d3-scale-chromatic": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/d3-scale-chromatic/-/d3-scale-chromatic-3.1.0.tgz", - "integrity": "sha512-A3s5PWiZ9YCXFye1o246KoscMWqf8BsD9eRiJ3He7C9OBaxKhAd5TFCdEx/7VbKtxxTsu//1mMJFrEt572cEyQ==", - "requires": { - "d3-color": "1 - 3", - "d3-interpolate": "1 - 3" - } - }, "d3-selection": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/d3-selection/-/d3-selection-3.0.0.tgz", "integrity": "sha512-fmTRWbNMmsmWq6xJV8D19U/gw/bwrHfNXxrIN+HfZgnzqTHp9jOmKMhsTUjXOJnZOdZY9Q28y4yebKzqDKlxlQ==" }, + "d3-shape": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/d3-shape/-/d3-shape-3.2.0.tgz", + "integrity": "sha512-SaLBuwGm3MOViRq2ABk3eLoxwZELpH6zhl3FbAoJ7Vm1gofKx6El1Ib5z23NUEhF9AsGl7y+dzLe5Cw2AArGTA==", + "requires": { + "d3-path": "^3.1.0" + } + }, "d3-time": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/d3-time/-/d3-time-1.1.0.tgz", @@ -23261,9 +23320,9 @@ } }, "druid-query-toolkit": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/druid-query-toolkit/-/druid-query-toolkit-1.0.0.tgz", - "integrity": "sha512-yBQR4uDcks0lcsRSWoLQy16YQ4dx264m6i7TNQDFrACUKHlMtnw5l+4+UDZKbXbpUFLMLWCr/kLhmXzLJk50+Q==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/druid-query-toolkit/-/druid-query-toolkit-1.0.2.tgz", + "integrity": "sha512-TXu8io3oF04g0xhiGeXBB3xsGt2kJtp+95jrSja1a5Db8NFpkso6UPbfc6vlok24bky1aUKObTPJVVKOwSaBIw==", "requires": { "tslib": "^2.5.2" } @@ -24097,9 +24156,9 @@ } }, "express": { - "version": "4.21.1", - "resolved": "https://registry.npmjs.org/express/-/express-4.21.1.tgz", - "integrity": "sha512-YSFlK1Ee0/GC8QaO91tHcDxJiE/X4FbpAyQWkxAvG6AXCuR65YzK8ua6D9hvi/TzUfZMpc+BwuM1IPw8fmQBiQ==", + "version": "4.21.2", + "resolved": "https://registry.npmjs.org/express/-/express-4.21.2.tgz", + "integrity": "sha512-28HqgMZAmih1Czt9ny7qr6ek2qddF4FclbMzwhCREB6OFfH+rXAnuNCwo1/wFvrtbgsQDb4kSbX9de9lFbrXnA==", "dev": true, "requires": { "accepts": "~1.3.8", @@ -24121,7 +24180,7 @@ "methods": "~1.1.2", "on-finished": "2.4.1", "parseurl": "~1.3.3", - "path-to-regexp": "0.1.10", + "path-to-regexp": "0.1.12", "proxy-addr": "~2.0.7", "qs": "6.13.0", "range-parser": "~1.2.1", @@ -24157,9 +24216,9 @@ "dev": true }, "path-to-regexp": { - "version": "0.1.10", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.10.tgz", - "integrity": "sha512-7lf7qcQidTku0Gu3YDPc8DJ1q7OOucfa/BSsIwjuh56VU7katFvuM8hULfkwB3Fns/rsVF7PwPKVw1sl5KQS9w==", + "version": "0.1.12", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.12.tgz", + "integrity": "sha512-RA1GjUVMnvYFxuqovrEqZoxxW5NUZqbwKtYz/Tt7nXerk0LbLblQmrsgdeOxV5SFHf0UDggjS/bSeOZwt1pmEQ==", "dev": true }, "safe-buffer": { @@ -27558,9 +27617,9 @@ } }, "nanoid": { - "version": "3.3.7", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz", - "integrity": "sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==", + "version": "3.3.8", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.8.tgz", + "integrity": "sha512-WNLf5Sd8oZxOm+TzppcYk8gVOgP+l58xNy58D0nbUnOxOWRWvlcCV4kUF7ltmI6PsrLl/BgKEyS4mqsGChFN0w==", "dev": true }, "natural-compare": { @@ -30442,9 +30501,9 @@ } }, "tslib": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.0.tgz", - "integrity": "sha512-jWVzBLplnCmoaTr13V9dYbiQ99wvZRd0vNWaDRg+aVYRcjDF3nDksxFDE/+fkXnKhpnUUkmx5pK/v8mCtLVqZA==" + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", + "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==" }, "type-check": { "version": "0.4.0", diff --git a/web-console/package.json b/web-console/package.json index 39eae99e101b..1cb23e1b86ef 100644 --- a/web-console/package.json +++ b/web-console/package.json @@ -50,26 +50,27 @@ "not ie 11" ], "dependencies": { - "@blueprintjs/core": "^5.13.1", - "@blueprintjs/datetime": "^5.3.11", - "@blueprintjs/datetime2": "^2.3.11", - "@blueprintjs/icons": "^5.13.0", - "@blueprintjs/select": "^5.2.5", + "@blueprintjs/core": "^5.16.0", + "@blueprintjs/datetime": "^5.3.17", + "@blueprintjs/datetime2": "^2.3.17", + "@blueprintjs/icons": "^5.15.0", + "@blueprintjs/select": "^5.3.5", "@flatten-js/interval-tree": "^1.1.3", "@fontsource/open-sans": "^5.0.30", "@internationalized/date": "^3.5.6", "ace-builds": "~1.5.3", "axios": "^1.7.7", + "chronoshift": "^1.1.0", "classnames": "^2.2.6", "copy-to-clipboard": "^3.3.3", "d3-array": "^3.2.4", "d3-axis": "^3.0.0", "d3-dsv": "^3.0.1", "d3-scale": "^4.0.2", - "d3-scale-chromatic": "^3.1.0", "d3-selection": "^3.0.0", + "d3-shape": "^3.2.0", "date-fns": "^2.28.0", - "druid-query-toolkit": "^1.0.0", + "druid-query-toolkit": "^1.0.2", "echarts": "^5.5.1", "file-saver": "^2.0.5", "hjson": "^3.2.2", @@ -101,8 +102,8 @@ "@types/d3-axis": "^3.0.6", "@types/d3-dsv": "^3.0.7", "@types/d3-scale": "^4.0.8", - "@types/d3-scale-chromatic": "^3.0.3", "@types/d3-selection": "^3.0.11", + "@types/d3-shape": "^3.1.6", "@types/enzyme": "^3.10.18", "@types/enzyme-adapter-react-16": "^1.0.9", "@types/file-saver": "^2.0.7", diff --git a/web-console/src/components/clearable-input/clearable-input.spec.tsx b/web-console/src/components/clearable-input/clearable-input.spec.tsx index 3fcd0e0098f7..e209474d5213 100644 --- a/web-console/src/components/clearable-input/clearable-input.spec.tsx +++ b/web-console/src/components/clearable-input/clearable-input.spec.tsx @@ -27,7 +27,7 @@ describe('ClearableInput', () => { className="testClassName" value="testValue" placeholder="testPlaceholder" - onChange={() => {}} + onValueChange={() => {}} /> ); diff --git a/web-console/src/components/clearable-input/clearable-input.tsx b/web-console/src/components/clearable-input/clearable-input.tsx index 9ea33a1bef61..de75d7dbdca7 100644 --- a/web-console/src/components/clearable-input/clearable-input.tsx +++ b/web-console/src/components/clearable-input/clearable-input.tsx @@ -16,30 +16,32 @@ * limitations under the License. */ +import type { InputGroupProps } from '@blueprintjs/core'; import { Button, InputGroup } from '@blueprintjs/core'; import { IconNames } from '@blueprintjs/icons'; import classNames from 'classnames'; import React from 'react'; -export interface ClearableInputProps { +export interface ClearableInputProps extends InputGroupProps { className?: string; value: string; - onChange: (value: string) => void; - placeholder: string; + onValueChange: (value: string) => void; } export const ClearableInput = React.memo(function ClearableInput(props: ClearableInputProps) { - const { className, value, onChange, placeholder } = props; + const { className, value, onValueChange, ...otherProps } = props; return ( onChange(e.target.value)} + onChange={(e: any) => onValueChange(e.target.value)} rightElement={ - value ?