@carto/ps-react-ui 4.4.0-chat-ui.6 → 4.4.0-chat-ui.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/category-DwaeYjpX.js +656 -0
- package/dist/category-DwaeYjpX.js.map +1 -0
- package/dist/change-column-Cidl_M-4.js +1110 -0
- package/dist/change-column-Cidl_M-4.js.map +1 -0
- package/dist/chat.js +621 -672
- package/dist/chat.js.map +1 -1
- package/dist/components.js.map +1 -1
- package/dist/data-zoom-layout-DVYB8mIx.js +29 -0
- package/dist/data-zoom-layout-DVYB8mIx.js.map +1 -0
- package/dist/download-config-C7hf33ip.js +58 -0
- package/dist/download-config-C7hf33ip.js.map +1 -0
- package/dist/echart-CU0KmClP.js +176 -0
- package/dist/echart-CU0KmClP.js.map +1 -0
- package/dist/exports-Cr43OCul.js.map +1 -1
- package/dist/exports-Cx-f6m6U.js +63 -0
- package/dist/exports-Cx-f6m6U.js.map +1 -0
- package/dist/formatter-B9Bxn1k7.js +6 -0
- package/dist/formatter-B9Bxn1k7.js.map +1 -0
- package/dist/formula-DuC0NQLH.js +79 -0
- package/dist/formula-DuC0NQLH.js.map +1 -0
- package/dist/lasso-tool-BYbxrJ-7.js.map +1 -1
- package/dist/markdown-BD1jcknS.js +8326 -0
- package/dist/markdown-BD1jcknS.js.map +1 -0
- package/dist/option-builders-F-c9ELi1.js +122 -0
- package/dist/option-builders-F-c9ELi1.js.map +1 -0
- package/dist/options-CthfUJDz.js +46 -0
- package/dist/options-CthfUJDz.js.map +1 -0
- package/dist/png-item-CS4z1iSH.js +45 -0
- package/dist/png-item-CS4z1iSH.js.map +1 -0
- package/dist/range-l4fNHLEg.js +213 -0
- package/dist/range-l4fNHLEg.js.map +1 -0
- package/dist/resolve-theme-color-BdojIw0K.js +47 -0
- package/dist/resolve-theme-color-BdojIw0K.js.map +1 -0
- package/dist/row-DZSP99LW.js +34 -0
- package/dist/row-DZSP99LW.js.map +1 -0
- package/dist/series-DLNHDWs0.js +90 -0
- package/dist/series-DLNHDWs0.js.map +1 -0
- package/dist/shared-resize-observer-98b1SK1e.js +17 -0
- package/dist/shared-resize-observer-98b1SK1e.js.map +1 -0
- package/dist/smart-tooltip-D4vwQpFf.js.map +1 -1
- package/dist/spread-CngWB5KF.js +68 -0
- package/dist/spread-CngWB5KF.js.map +1 -0
- package/dist/style-DVnT6HC1.js +131 -0
- package/dist/style-DVnT6HC1.js.map +1 -0
- package/dist/styles-cohnxh9F.js +23 -0
- package/dist/styles-cohnxh9F.js.map +1 -0
- package/dist/table-CQCAnDLb.js +388 -0
- package/dist/table-CQCAnDLb.js.map +1 -0
- package/dist/tooltip-BDnrRKrp.js.map +1 -1
- package/dist/transforms-Cdx4fkU5.js +106 -0
- package/dist/transforms-Cdx4fkU5.js.map +1 -0
- package/dist/types/chat/containers/chat-content.d.ts +2 -2
- package/dist/types/chat/containers/styles.d.ts +9 -26
- package/dist/types/chat/feedback/chat-tool-code-area.d.ts +1 -3
- package/dist/types/chat/index.d.ts +1 -1
- package/dist/types/chat/types.d.ts +35 -3
- package/dist/types/components/basemaps/basemaps.d.ts +20 -0
- package/dist/types/components/geolocation-controls/geolocation-controls.d.ts +11 -0
- package/dist/types/components/lasso-tool/lasso-tool-inline.d.ts +17 -0
- package/dist/types/components/lasso-tool/lasso-tool.d.ts +21 -0
- package/dist/types/components/list-data/list-data.d.ts +16 -0
- package/dist/types/components/measurement-tools/measurement-tools.d.ts +20 -0
- package/dist/types/components/smart-tooltip/smart-tooltip.d.ts +17 -0
- package/dist/types/components/tooltip/tooltip.d.ts +13 -0
- package/dist/types/components/zoom-controls/zoom-controls.d.ts +16 -0
- package/dist/types/hooks/index.d.ts +0 -1
- package/dist/types/hooks/use-widget-ref.d.ts +9 -6
- package/dist/types/widgets/actions/brush-toggle/brush-overlay.d.ts +24 -0
- package/dist/types/widgets/actions/brush-toggle/brush-toggle.d.ts +29 -0
- package/dist/types/widgets/actions/brush-toggle/hit-test.d.ts +19 -0
- package/dist/types/widgets/actions/brush-toggle/hit-test.test.d.ts +1 -0
- package/dist/types/widgets/actions/brush-toggle/style.d.ts +21 -0
- package/dist/types/widgets/actions/brush-toggle/types.d.ts +73 -0
- package/dist/types/widgets/actions/download/download.d.ts +11 -0
- package/dist/types/widgets/actions/download/exports.d.ts +15 -0
- package/dist/types/widgets/actions/fullscreen/fullscreen.d.ts +13 -0
- package/dist/types/widgets/actions/index.d.ts +7 -5
- package/dist/types/widgets/actions/lock-selection/types.d.ts +2 -0
- package/dist/types/widgets/actions/relative-data/relative-data.d.ts +8 -2
- package/dist/types/widgets/actions/relative-data/types.d.ts +2 -0
- package/dist/types/widgets/actions/zoom-toggle/zoom-toggle.d.ts +4 -0
- package/dist/types/widgets/bar/config.d.ts +8 -4
- package/dist/types/widgets/category/category-ui.d.ts +3 -0
- package/dist/types/widgets/category/components/category-bar.d.ts +3 -0
- package/dist/types/widgets/category/components/category-legend.d.ts +3 -0
- package/dist/types/widgets/category/components/category-row-multi.d.ts +5 -1
- package/dist/types/widgets/category/components/category-row-other.d.ts +3 -0
- package/dist/types/widgets/category/components/category-row-single.d.ts +5 -1
- package/dist/types/widgets/category/config.d.ts +11 -0
- package/dist/types/widgets/category/index.d.ts +10 -2
- package/dist/types/widgets/category/style.d.ts +1 -0
- package/dist/types/widgets/category/types.d.ts +1 -0
- package/dist/types/widgets/echart/echart-ui.d.ts +7 -0
- package/dist/types/widgets/echart/echart.d.ts +6 -0
- package/dist/types/widgets/echart/options.d.ts +7 -0
- package/dist/types/widgets/echart/shared-resize-observer.d.ts +12 -0
- package/dist/types/widgets/echart/types.d.ts +5 -1
- package/dist/types/widgets/echart/utils.d.ts +54 -7
- package/dist/types/widgets/echart/utils.test.d.ts +1 -0
- package/dist/types/widgets/error/error.d.ts +10 -0
- package/dist/types/widgets/formula/components/item.d.ts +3 -0
- package/dist/types/widgets/formula/components/prefix.d.ts +3 -0
- package/dist/types/widgets/formula/components/row.d.ts +3 -0
- package/dist/types/widgets/formula/components/series.d.ts +3 -0
- package/dist/types/widgets/formula/components/suffix.d.ts +3 -0
- package/dist/types/widgets/formula/components/value.d.ts +3 -0
- package/dist/types/widgets/formula/config.d.ts +11 -0
- package/dist/types/widgets/formula/config.test.d.ts +1 -0
- package/dist/types/widgets/formula/formula-ui.d.ts +3 -0
- package/dist/types/widgets/histogram/config.d.ts +18 -2
- package/dist/types/widgets/histogram/index.d.ts +2 -1
- package/dist/types/widgets/histogram/types.d.ts +6 -3
- package/dist/types/widgets/loader/loader.d.ts +22 -0
- package/dist/types/widgets/loader/utils.d.ts +26 -3
- package/dist/types/widgets/markdown/config.d.ts +10 -0
- package/dist/types/widgets/markdown/markdown-ui.d.ts +7 -0
- package/dist/types/widgets/markdown/markdown.d.ts +3 -0
- package/dist/types/widgets/no-data/no-data.d.ts +3 -2
- package/dist/types/widgets/no-data/types.d.ts +5 -1
- package/dist/types/widgets/note/note.d.ts +10 -0
- package/dist/types/widgets/pie/config.d.ts +8 -4
- package/dist/types/widgets/range/components/range-item.d.ts +3 -0
- package/dist/types/widgets/range/config.d.ts +5 -0
- package/dist/types/widgets/range/range-ui.d.ts +3 -0
- package/dist/types/widgets/scatterplot/config.d.ts +7 -3
- package/dist/types/widgets/selection-summary/selection-summary.d.ts +11 -0
- package/dist/types/widgets/skeleton-loader/skeleton-loader.d.ts +10 -0
- package/dist/types/widgets/spread/components/max-value.d.ts +3 -0
- package/dist/types/widgets/spread/components/min-value.d.ts +3 -0
- package/dist/types/widgets/spread/components/separator.d.ts +3 -0
- package/dist/types/widgets/spread/config.d.ts +11 -0
- package/dist/types/widgets/spread/spread-ui.d.ts +3 -0
- package/dist/types/widgets/stores/index.d.ts +3 -2
- package/dist/types/widgets/stores/types.d.ts +12 -10
- package/dist/types/widgets/stores/use-widget-selector.d.ts +35 -0
- package/dist/types/widgets/stores/widget-store-branches.test.d.ts +1 -0
- package/dist/types/widgets/stores/widget-store-performance.test.d.ts +1 -0
- package/dist/types/widgets/stores/widget-store.d.ts +48 -27
- package/dist/types/widgets/subheader/subheader.d.ts +11 -0
- package/dist/types/widgets/table/config.d.ts +8 -3
- package/dist/types/widgets/table/config.test.d.ts +1 -0
- package/dist/types/widgets/table/hooks/use-pagination.d.ts +11 -3
- package/dist/types/widgets/table/hooks/use-selection.d.ts +11 -2
- package/dist/types/widgets/table/hooks/use-sort.d.ts +11 -3
- package/dist/types/widgets/table/index.d.ts +6 -2
- package/dist/types/widgets/table/types.d.ts +1 -1
- package/dist/types/widgets/timeseries/config.d.ts +8 -4
- package/dist/types/widgets/utils/chart-config/download-config.d.ts +3 -0
- package/dist/types/widgets/{_shared → utils}/chart-config/index.d.ts +3 -1
- package/dist/types/widgets/{_shared → utils}/chart-config/option-builders.d.ts +41 -9
- package/dist/types/widgets/utils/chart-config/option-builders.test.d.ts +1 -0
- package/dist/types/widgets/utils/formatter.d.ts +2 -0
- package/dist/types/widgets/utils/index.d.ts +7 -0
- package/dist/types/widgets/wrapper/components/actions.d.ts +3 -0
- package/dist/types/widgets/wrapper/components/options.d.ts +3 -0
- package/dist/types/widgets/wrapper/components/title.d.ts +3 -0
- package/dist/types/widgets/wrapper/wrapper-ui.d.ts +14 -0
- package/dist/types/widgets/wrapper/wrapper.d.ts +14 -0
- package/dist/types/widgets-v2/actions/brush-toggle/brush-toggle.d.ts +56 -0
- package/dist/types/widgets-v2/actions/brush-toggle/index.d.ts +3 -0
- package/dist/types/widgets-v2/actions/brush-toggle/labels.d.ts +5 -0
- package/dist/types/widgets-v2/actions/brush-toggle/style.d.ts +12 -0
- package/dist/types/widgets-v2/actions/brush-toggle/transforms.d.ts +11 -0
- package/dist/types/widgets-v2/actions/change-column/change-column-icon.d.ts +2 -0
- package/dist/types/widgets-v2/actions/change-column/change-column.d.ts +29 -0
- package/dist/types/widgets-v2/actions/change-column/index.d.ts +3 -0
- package/dist/types/widgets-v2/actions/change-column/labels.d.ts +5 -0
- package/dist/types/widgets-v2/actions/change-column/sortable-column-item.d.ts +14 -0
- package/dist/types/widgets-v2/actions/change-column/style.d.ts +33 -0
- package/dist/types/widgets-v2/actions/change-column/types.d.ts +10 -0
- package/dist/types/widgets-v2/actions/download/download.d.ts +18 -0
- package/dist/types/widgets-v2/actions/download/exports.d.ts +37 -0
- package/dist/types/widgets-v2/actions/download/icons.d.ts +12 -0
- package/dist/types/widgets-v2/actions/download/index.d.ts +6 -0
- package/dist/types/widgets-v2/actions/download/labels.d.ts +11 -0
- package/dist/types/widgets-v2/actions/download/png-item.d.ts +24 -0
- package/dist/types/widgets-v2/actions/download/style.d.ts +1 -0
- package/dist/types/widgets-v2/actions/download/types.d.ts +35 -0
- package/dist/types/widgets-v2/actions/fullscreen/fullscreen.d.ts +59 -0
- package/dist/types/widgets-v2/actions/fullscreen/index.d.ts +3 -0
- package/dist/types/widgets-v2/actions/fullscreen/labels.d.ts +5 -0
- package/dist/types/widgets-v2/actions/fullscreen/style.d.ts +48 -0
- package/dist/types/widgets-v2/actions/fullscreen/types.d.ts +14 -0
- package/dist/types/widgets-v2/actions/index.d.ts +9 -0
- package/dist/types/widgets-v2/actions/lock-selection/index.d.ts +3 -0
- package/dist/types/widgets-v2/actions/lock-selection/labels.d.ts +6 -0
- package/dist/types/widgets-v2/actions/lock-selection/lock-selection.d.ts +36 -0
- package/dist/types/widgets-v2/actions/lock-selection/style.d.ts +12 -0
- package/dist/types/widgets-v2/actions/lock-selection/transforms.d.ts +6 -0
- package/dist/types/widgets-v2/actions/relative-data/index.d.ts +3 -0
- package/dist/types/widgets-v2/actions/relative-data/labels.d.ts +5 -0
- package/dist/types/widgets-v2/actions/relative-data/relative-data.d.ts +39 -0
- package/dist/types/widgets-v2/actions/relative-data/style.d.ts +12 -0
- package/dist/types/widgets-v2/actions/relative-data/transforms.d.ts +30 -0
- package/dist/types/widgets-v2/actions/relative-data/transforms.test.d.ts +1 -0
- package/dist/types/widgets-v2/actions/searcher/filter.d.ts +6 -0
- package/dist/types/widgets-v2/actions/searcher/index.d.ts +4 -0
- package/dist/types/widgets-v2/actions/searcher/labels.d.ts +7 -0
- package/dist/types/widgets-v2/actions/searcher/searcher-toggle.d.ts +23 -0
- package/dist/types/widgets-v2/actions/searcher/searcher.d.ts +11 -0
- package/dist/types/widgets-v2/actions/searcher/style.d.ts +16 -0
- package/dist/types/widgets-v2/actions/stack-toggle/index.d.ts +3 -0
- package/dist/types/widgets-v2/actions/stack-toggle/labels.d.ts +5 -0
- package/dist/types/widgets-v2/actions/stack-toggle/stack-toggle.d.ts +10 -0
- package/dist/types/widgets-v2/actions/stack-toggle/style.d.ts +12 -0
- package/dist/types/widgets-v2/actions/stack-toggle/transforms.d.ts +13 -0
- package/dist/types/widgets-v2/actions/stack-toggle/transforms.test.d.ts +1 -0
- package/dist/types/widgets-v2/actions/zoom-toggle/index.d.ts +3 -0
- package/dist/types/widgets-v2/actions/zoom-toggle/labels.d.ts +5 -0
- package/dist/types/widgets-v2/actions/zoom-toggle/style.d.ts +12 -0
- package/dist/types/widgets-v2/actions/zoom-toggle/transforms.d.ts +51 -0
- package/dist/types/widgets-v2/actions/zoom-toggle/transforms.test.d.ts +1 -0
- package/dist/types/widgets-v2/actions/zoom-toggle/zoom-toggle.d.ts +35 -0
- package/dist/types/widgets-v2/bar/download.d.ts +24 -0
- package/dist/types/widgets-v2/bar/index.d.ts +4 -0
- package/dist/types/widgets-v2/bar/options.d.ts +43 -0
- package/dist/types/widgets-v2/bar/options.test.d.ts +1 -0
- package/dist/types/widgets-v2/bar/skeleton.d.ts +6 -0
- package/dist/types/widgets-v2/bar/types.d.ts +46 -0
- package/dist/types/widgets-v2/category/category-ui.d.ts +81 -0
- package/dist/types/widgets-v2/category/category.d.ts +48 -0
- package/dist/types/widgets-v2/category/components/category-bar-stacked.d.ts +28 -0
- package/dist/types/widgets-v2/category/components/category-bar.d.ts +23 -0
- package/dist/types/widgets-v2/category/components/category-legend.d.ts +18 -0
- package/dist/types/widgets-v2/category/components/category-row-multi.d.ts +31 -0
- package/dist/types/widgets-v2/category/components/category-row-other.d.ts +13 -0
- package/dist/types/widgets-v2/category/components/category-row-single.d.ts +28 -0
- package/dist/types/widgets-v2/category/components/category-row-stacked.d.ts +38 -0
- package/dist/types/widgets-v2/category/download.d.ts +16 -0
- package/dist/types/widgets-v2/category/download.test.d.ts +1 -0
- package/dist/types/widgets-v2/category/index.d.ts +10 -0
- package/dist/types/widgets-v2/category/skeleton.d.ts +11 -0
- package/dist/types/widgets-v2/category/style.d.ts +166 -0
- package/dist/types/widgets-v2/category/types.d.ts +53 -0
- package/dist/types/widgets-v2/echart/echart-ui.d.ts +44 -0
- package/dist/types/widgets-v2/echart/echart.d.ts +75 -0
- package/dist/types/widgets-v2/echart/index.d.ts +4 -0
- package/dist/types/widgets-v2/echart/shared-resize-observer.d.ts +5 -0
- package/dist/types/widgets-v2/echart/shared-resize-observer.test.d.ts +1 -0
- package/dist/types/widgets-v2/echart/style.d.ts +6 -0
- package/dist/types/widgets-v2/echart/use-chart-selection.d.ts +51 -0
- package/dist/types/widgets-v2/formula/delta.d.ts +22 -0
- package/dist/types/widgets-v2/formula/download.d.ts +20 -0
- package/dist/types/widgets-v2/formula/formula-ui.d.ts +20 -0
- package/dist/types/widgets-v2/formula/formula.d.ts +8 -0
- package/dist/types/widgets-v2/formula/index.d.ts +11 -0
- package/dist/types/widgets-v2/formula/note.d.ts +11 -0
- package/dist/types/widgets-v2/formula/prefix.d.ts +12 -0
- package/dist/types/widgets-v2/formula/series.d.ts +16 -0
- package/dist/types/widgets-v2/formula/skeleton.d.ts +4 -0
- package/dist/types/widgets-v2/formula/style.d.ts +29 -0
- package/dist/types/widgets-v2/formula/suffix.d.ts +12 -0
- package/dist/types/widgets-v2/formula/types.d.ts +43 -0
- package/dist/types/widgets-v2/formula/value.d.ts +14 -0
- package/dist/types/widgets-v2/histogram/download.d.ts +17 -0
- package/dist/types/widgets-v2/histogram/download.test.d.ts +1 -0
- package/dist/types/widgets-v2/histogram/index.d.ts +5 -0
- package/dist/types/widgets-v2/histogram/options.d.ts +42 -0
- package/dist/types/widgets-v2/histogram/options.test.d.ts +1 -0
- package/dist/types/widgets-v2/histogram/skeleton.d.ts +9 -0
- package/dist/types/widgets-v2/histogram/transforms.d.ts +17 -0
- package/dist/types/widgets-v2/histogram/transforms.test.d.ts +1 -0
- package/dist/types/widgets-v2/histogram/types.d.ts +51 -0
- package/dist/types/widgets-v2/index.d.ts +108 -0
- package/dist/types/widgets-v2/markdown/download.d.ts +16 -0
- package/dist/types/widgets-v2/markdown/download.test.d.ts +1 -0
- package/dist/types/widgets-v2/markdown/index.d.ts +6 -0
- package/dist/types/widgets-v2/markdown/markdown-content.d.ts +34 -0
- package/dist/types/widgets-v2/markdown/markdown-ui.d.ts +12 -0
- package/dist/types/widgets-v2/markdown/markdown.d.ts +6 -0
- package/dist/types/widgets-v2/markdown/skeleton.d.ts +4 -0
- package/dist/types/widgets-v2/markdown/style.d.ts +61 -0
- package/dist/types/widgets-v2/markdown/types.d.ts +4 -0
- package/dist/types/widgets-v2/note/labels.d.ts +5 -0
- package/dist/types/widgets-v2/note/style.d.ts +26 -0
- package/dist/types/widgets-v2/note/widget-note.d.ts +46 -0
- package/dist/types/widgets-v2/pie/download.d.ts +17 -0
- package/dist/types/widgets-v2/pie/download.test.d.ts +1 -0
- package/dist/types/widgets-v2/pie/index.d.ts +4 -0
- package/dist/types/widgets-v2/pie/options.d.ts +35 -0
- package/dist/types/widgets-v2/pie/options.test.d.ts +1 -0
- package/dist/types/widgets-v2/pie/skeleton.d.ts +4 -0
- package/dist/types/widgets-v2/pie/types.d.ts +57 -0
- package/dist/types/widgets-v2/provider/widget-provider.d.ts +32 -0
- package/dist/types/widgets-v2/range/index.d.ts +4 -0
- package/dist/types/widgets-v2/range/range-ui.d.ts +27 -0
- package/dist/types/widgets-v2/range/range.d.ts +24 -0
- package/dist/types/widgets-v2/range/skeleton.d.ts +9 -0
- package/dist/types/widgets-v2/range/style.d.ts +40 -0
- package/dist/types/widgets-v2/range/types.d.ts +37 -0
- package/dist/types/widgets-v2/scatterplot/download.d.ts +16 -0
- package/dist/types/widgets-v2/scatterplot/download.test.d.ts +1 -0
- package/dist/types/widgets-v2/scatterplot/index.d.ts +5 -0
- package/dist/types/widgets-v2/scatterplot/options.d.ts +42 -0
- package/dist/types/widgets-v2/scatterplot/options.test.d.ts +1 -0
- package/dist/types/widgets-v2/scatterplot/skeleton.d.ts +12 -0
- package/dist/types/widgets-v2/scatterplot/transforms.d.ts +17 -0
- package/dist/types/widgets-v2/scatterplot/transforms.test.d.ts +1 -0
- package/dist/types/widgets-v2/scatterplot/types.d.ts +54 -0
- package/dist/types/widgets-v2/selection-summary/labels.d.ts +6 -0
- package/dist/types/widgets-v2/selection-summary/selection-summary.d.ts +22 -0
- package/dist/types/widgets-v2/selection-summary/style.d.ts +23 -0
- package/dist/types/widgets-v2/spread/download.d.ts +15 -0
- package/dist/types/widgets-v2/spread/download.test.d.ts +1 -0
- package/dist/types/widgets-v2/spread/index.d.ts +6 -0
- package/dist/types/widgets-v2/spread/separator.d.ts +7 -0
- package/dist/types/widgets-v2/spread/skeleton.d.ts +9 -0
- package/dist/types/widgets-v2/spread/spread-ui.d.ts +18 -0
- package/dist/types/widgets-v2/spread/spread.d.ts +5 -0
- package/dist/types/widgets-v2/spread/types.d.ts +25 -0
- package/dist/types/widgets-v2/state/labels.d.ts +7 -0
- package/dist/types/widgets-v2/state/labels.test.d.ts +1 -0
- package/dist/types/widgets-v2/state/style.d.ts +19 -0
- package/dist/types/widgets-v2/state/widget-state.d.ts +19 -0
- package/dist/types/widgets-v2/stores/index.d.ts +8 -0
- package/dist/types/widgets-v2/stores/pipeline-middleware.d.ts +5 -0
- package/dist/types/widgets-v2/stores/pipeline-middleware.test.d.ts +1 -0
- package/dist/types/widgets-v2/stores/transforms.d.ts +4 -0
- package/dist/types/widgets-v2/stores/transforms.test.d.ts +1 -0
- package/dist/types/widgets-v2/stores/types.d.ts +55 -0
- package/dist/types/widgets-v2/stores/use-echart-instance.d.ts +15 -0
- package/dist/types/widgets-v2/stores/use-transform-enabled.d.ts +17 -0
- package/dist/types/widgets-v2/stores/use-transform.d.ts +12 -0
- package/dist/types/widgets-v2/stores/widget-context.d.ts +2 -0
- package/dist/types/widgets-v2/stores/widget-store-registry.d.ts +74 -0
- package/dist/types/widgets-v2/stores/widget-store-registry.test.d.ts +1 -0
- package/dist/types/widgets-v2/subheader/style.d.ts +10 -0
- package/dist/types/widgets-v2/subheader/subheader.d.ts +11 -0
- package/dist/types/widgets-v2/table/download.d.ts +18 -0
- package/dist/types/widgets-v2/table/download.test.d.ts +1 -0
- package/dist/types/widgets-v2/table/helpers.d.ts +32 -0
- package/dist/types/widgets-v2/table/helpers.test.d.ts +1 -0
- package/dist/types/widgets-v2/table/index.d.ts +7 -0
- package/dist/types/widgets-v2/table/labels.d.ts +22 -0
- package/dist/types/widgets-v2/table/skeleton.d.ts +22 -0
- package/dist/types/widgets-v2/table/style.d.ts +40 -0
- package/dist/types/widgets-v2/table/table-ui.d.ts +44 -0
- package/dist/types/widgets-v2/table/table.d.ts +50 -0
- package/dist/types/widgets-v2/table/types.d.ts +48 -0
- package/dist/types/widgets-v2/test-utils.d.ts +52 -0
- package/dist/types/widgets-v2/timeseries/download.d.ts +17 -0
- package/dist/types/widgets-v2/timeseries/download.test.d.ts +1 -0
- package/dist/types/widgets-v2/timeseries/index.d.ts +4 -0
- package/dist/types/widgets-v2/timeseries/options.d.ts +39 -0
- package/dist/types/widgets-v2/timeseries/options.test.d.ts +1 -0
- package/dist/types/widgets-v2/timeseries/skeleton.d.ts +8 -0
- package/dist/types/widgets-v2/timeseries/types.d.ts +60 -0
- package/dist/types/widgets-v2/toolbox/labels.d.ts +5 -0
- package/dist/types/widgets-v2/toolbox/style.d.ts +30 -0
- package/dist/types/widgets-v2/toolbox/toolbox.d.ts +49 -0
- package/dist/types/widgets-v2/types.d.ts +25 -0
- package/dist/types/widgets-v2/utils/data-zoom-layout.d.ts +11 -0
- package/dist/types/widgets-v2/utils/index.d.ts +3 -0
- package/dist/types/widgets-v2/utils/merge-options.d.ts +12 -0
- package/dist/types/widgets-v2/utils/merge-options.test.d.ts +1 -0
- package/dist/types/widgets-v2/utils/resolve-theme-color.d.ts +18 -0
- package/dist/types/widgets-v2/utils/resolve-theme-color.test.d.ts +1 -0
- package/dist/types/widgets-v2/wrapper/index.d.ts +4 -0
- package/dist/types/widgets-v2/wrapper/labels.d.ts +6 -0
- package/dist/types/widgets-v2/wrapper/style.d.ts +111 -0
- package/dist/types/widgets-v2/wrapper/widget-actions.d.ts +22 -0
- package/dist/types/widgets-v2/wrapper/widget-content.d.ts +12 -0
- package/dist/types/widgets-v2/wrapper/widget-wrapper.d.ts +51 -0
- package/dist/use-transform-DXPN3nY7.js +110 -0
- package/dist/use-transform-DXPN3nY7.js.map +1 -0
- package/dist/use-widget-ref-Ddr_SlJJ.js +22 -0
- package/dist/use-widget-ref-Ddr_SlJJ.js.map +1 -0
- package/dist/use-widget-selector-DFl2hW0R.js +12 -0
- package/dist/use-widget-selector-DFl2hW0R.js.map +1 -0
- package/dist/{utils-idmvq0Oa.js → utils-BOhInag6.js} +95 -70
- package/dist/utils-BOhInag6.js.map +1 -0
- package/dist/widget-context-DTGO0Yta.js +13 -0
- package/dist/widget-context-DTGO0Yta.js.map +1 -0
- package/dist/widget-store-Bw5zRUGg.js +261 -0
- package/dist/widget-store-Bw5zRUGg.js.map +1 -0
- package/dist/widget-store-registry-_W4Z4xp-.js +178 -0
- package/dist/widget-store-registry-_W4Z4xp-.js.map +1 -0
- package/dist/widgets/actions.js +1120 -760
- package/dist/widgets/actions.js.map +1 -1
- package/dist/widgets/bar.js +87 -97
- package/dist/widgets/bar.js.map +1 -1
- package/dist/widgets/category.js +247 -236
- package/dist/widgets/category.js.map +1 -1
- package/dist/widgets/echart.js +100 -99
- package/dist/widgets/echart.js.map +1 -1
- package/dist/widgets/error.js +37 -2
- package/dist/widgets/error.js.map +1 -1
- package/dist/widgets/formula.js +78 -67
- package/dist/widgets/formula.js.map +1 -1
- package/dist/widgets/histogram.js +116 -92
- package/dist/widgets/histogram.js.map +1 -1
- package/dist/widgets/loader.js +53 -60
- package/dist/widgets/loader.js.map +1 -1
- package/dist/widgets/markdown.js +55 -53
- package/dist/widgets/markdown.js.map +1 -1
- package/dist/widgets/no-data.js +58 -2
- package/dist/widgets/no-data.js.map +1 -1
- package/dist/widgets/note.js +121 -2
- package/dist/widgets/note.js.map +1 -1
- package/dist/widgets/pie.js +148 -112
- package/dist/widgets/pie.js.map +1 -1
- package/dist/widgets/range.js +147 -144
- package/dist/widgets/range.js.map +1 -1
- package/dist/widgets/scatterplot.js +52 -65
- package/dist/widgets/scatterplot.js.map +1 -1
- package/dist/widgets/selection-summary.js.map +1 -1
- package/dist/widgets/skeleton-loader.js +18 -17
- package/dist/widgets/skeleton-loader.js.map +1 -1
- package/dist/widgets/spread.js +108 -90
- package/dist/widgets/spread.js.map +1 -1
- package/dist/widgets/stores.js +5 -2
- package/dist/widgets/stores.js.map +1 -1
- package/dist/widgets/subheader.js +29 -29
- package/dist/widgets/subheader.js.map +1 -1
- package/dist/widgets/table.js +429 -440
- package/dist/widgets/table.js.map +1 -1
- package/dist/widgets/timeseries.js +56 -69
- package/dist/widgets/timeseries.js.map +1 -1
- package/dist/widgets/toolbar-actions.js +50 -50
- package/dist/widgets/utils.js +34 -0
- package/dist/widgets/utils.js.map +1 -0
- package/dist/widgets/wrapper.js +156 -158
- package/dist/widgets/wrapper.js.map +1 -1
- package/dist/widgets-v2/actions.js +43 -0
- package/dist/widgets-v2/actions.js.map +1 -0
- package/dist/widgets-v2/bar.js +331 -0
- package/dist/widgets-v2/bar.js.map +1 -0
- package/dist/widgets-v2/category.js +105 -0
- package/dist/widgets-v2/category.js.map +1 -0
- package/dist/widgets-v2/echart.js +57 -0
- package/dist/widgets-v2/echart.js.map +1 -0
- package/dist/widgets-v2/formula.js +75 -0
- package/dist/widgets-v2/formula.js.map +1 -0
- package/dist/widgets-v2/histogram.js +354 -0
- package/dist/widgets-v2/histogram.js.map +1 -0
- package/dist/widgets-v2/markdown.js +69 -0
- package/dist/widgets-v2/markdown.js.map +1 -0
- package/dist/widgets-v2/pie.js +388 -0
- package/dist/widgets-v2/pie.js.map +1 -0
- package/dist/widgets-v2/range.js +52 -0
- package/dist/widgets-v2/range.js.map +1 -0
- package/dist/widgets-v2/scatterplot.js +412 -0
- package/dist/widgets-v2/scatterplot.js.map +1 -0
- package/dist/widgets-v2/spread.js +73 -0
- package/dist/widgets-v2/spread.js.map +1 -0
- package/dist/widgets-v2/stores.js +42 -0
- package/dist/widgets-v2/stores.js.map +1 -0
- package/dist/widgets-v2/table.js +79 -0
- package/dist/widgets-v2/table.js.map +1 -0
- package/dist/widgets-v2/timeseries.js +359 -0
- package/dist/widgets-v2/timeseries.js.map +1 -0
- package/dist/widgets-v2/utils.js +8 -0
- package/dist/widgets-v2/utils.js.map +1 -0
- package/dist/widgets-v2.js +954 -0
- package/dist/widgets-v2.js.map +1 -0
- package/package.json +82 -11
- package/src/chat/containers/chat-content.test.tsx +260 -6
- package/src/chat/containers/chat-content.tsx +137 -27
- package/src/chat/containers/chat-starter.tsx +2 -2
- package/src/chat/containers/styles.ts +9 -30
- package/src/chat/feedback/chat-tool-code-area.tsx +1 -1
- package/src/chat/feedback/chat-tool-group.tsx +1 -1
- package/src/chat/feedback/chat-tool-trace.tsx +6 -1
- package/src/chat/index.ts +1 -1
- package/src/chat/types.ts +36 -4
- package/src/components/basemaps/basemaps.tsx +20 -0
- package/src/components/geolocation-controls/geolocation-controls.tsx +11 -0
- package/src/components/lasso-tool/chip.test.tsx +176 -0
- package/src/components/lasso-tool/lasso-tool-inline.test.tsx +171 -0
- package/src/components/lasso-tool/lasso-tool-inline.tsx +17 -0
- package/src/components/lasso-tool/lasso-tool.test.tsx +198 -0
- package/src/components/lasso-tool/lasso-tool.tsx +21 -0
- package/src/components/list-data/list-data.test.tsx +73 -0
- package/src/components/list-data/list-data.tsx +16 -0
- package/src/components/measurement-tools/measurement-tools.tsx +20 -0
- package/src/components/no-data-alert/no-data-alert.test.tsx +38 -0
- package/src/components/responsive-drawer/responsive-drawer.test.tsx +68 -0
- package/src/components/smart-tooltip/smart-tooltip.tsx +17 -0
- package/src/components/tooltip/tooltip.tsx +13 -0
- package/src/components/zoom-controls/zoom-controls.tsx +16 -0
- package/src/hooks/index.ts +0 -1
- package/src/hooks/use-widget-ref.ts +10 -10
- package/src/widgets/README.md +13 -13
- package/src/widgets/actions/brush-toggle/brush-overlay.test.tsx +465 -0
- package/src/widgets/actions/brush-toggle/brush-overlay.tsx +408 -0
- package/src/widgets/actions/brush-toggle/brush-toggle.test.tsx +208 -0
- package/src/widgets/actions/brush-toggle/brush-toggle.tsx +133 -0
- package/src/widgets/actions/brush-toggle/hit-test.test.ts +65 -0
- package/src/widgets/actions/brush-toggle/hit-test.ts +45 -0
- package/src/widgets/actions/brush-toggle/style.ts +46 -0
- package/src/widgets/actions/brush-toggle/types.ts +78 -0
- package/src/widgets/actions/change-column/change-column-dnd.test.tsx +193 -0
- package/src/widgets/actions/change-column/change-column.test.tsx +1 -1
- package/src/widgets/actions/change-column/change-column.tsx +15 -15
- package/src/widgets/actions/change-column/sortable-column-item.test.tsx +124 -0
- package/src/widgets/actions/change-column/sortable-column-item.tsx +3 -1
- package/src/widgets/actions/download/download.test.tsx +1 -1
- package/src/widgets/actions/download/download.tsx +15 -3
- package/src/widgets/actions/download/exports.tsx +15 -0
- package/src/widgets/actions/fullscreen/fullscreen.tsx +20 -11
- package/src/widgets/actions/index.ts +21 -2
- package/src/widgets/actions/lock-selection/lock-selection.test.tsx +14 -0
- package/src/widgets/actions/lock-selection/lock-selection.tsx +26 -31
- package/src/widgets/actions/lock-selection/types.ts +2 -0
- package/src/widgets/actions/relative-data/relative-data.test.tsx +276 -1
- package/src/widgets/actions/relative-data/relative-data.tsx +113 -54
- package/src/widgets/actions/relative-data/types.ts +2 -0
- package/src/widgets/actions/searcher/searcher-toggle.tsx +11 -12
- package/src/widgets/actions/searcher/searcher.tsx +39 -42
- package/src/widgets/actions/stack-toggle/stack-toggle.test.tsx +4 -4
- package/src/widgets/actions/stack-toggle/stack-toggle.tsx +24 -32
- package/src/widgets/actions/zoom-toggle/zoom-toggle.test.tsx +322 -0
- package/src/widgets/actions/zoom-toggle/zoom-toggle.tsx +62 -80
- package/src/widgets/bar/config.ts +39 -34
- package/src/widgets/bar/style.ts +1 -1
- package/src/widgets/category/category-ui.tsx +41 -34
- package/src/widgets/category/components/category-bar.tsx +3 -0
- package/src/widgets/category/components/category-legend.tsx +3 -0
- package/src/widgets/category/components/category-row-multi.tsx +9 -2
- package/src/widgets/category/components/category-row-other.tsx +3 -0
- package/src/widgets/category/components/category-row-single.tsx +8 -1
- package/src/widgets/category/components/category-rows.test.tsx +213 -0
- package/src/widgets/category/config.ts +11 -0
- package/src/widgets/category/index.ts +13 -14
- package/src/widgets/category/style.ts +1 -0
- package/src/widgets/category/types.ts +1 -0
- package/src/widgets/echart/echart-ui.test.tsx +20 -16
- package/src/widgets/echart/echart-ui.tsx +18 -14
- package/src/widgets/echart/echart.tsx +19 -27
- package/src/widgets/echart/options.ts +8 -4
- package/src/widgets/echart/shared-resize-observer.ts +45 -0
- package/src/widgets/echart/types.ts +5 -1
- package/src/widgets/echart/utils.test.ts +277 -0
- package/src/widgets/echart/utils.ts +94 -21
- package/src/widgets/error/error.tsx +17 -9
- package/src/widgets/formula/components/item.tsx +3 -0
- package/src/widgets/formula/components/prefix.tsx +7 -6
- package/src/widgets/formula/components/row.tsx +7 -4
- package/src/widgets/formula/components/series.tsx +7 -6
- package/src/widgets/formula/components/suffix.tsx +7 -6
- package/src/widgets/formula/components/value.tsx +13 -18
- package/src/widgets/formula/config.test.ts +37 -0
- package/src/widgets/formula/config.ts +11 -0
- package/src/widgets/formula/formula-ui.tsx +4 -1
- package/src/widgets/histogram/config.ts +99 -24
- package/src/widgets/histogram/index.ts +6 -1
- package/src/widgets/histogram/style.ts +1 -1
- package/src/widgets/histogram/types.ts +9 -3
- package/src/widgets/loader/loader.tsx +53 -44
- package/src/widgets/loader/utils.ts +26 -3
- package/src/widgets/markdown/config.ts +10 -0
- package/src/widgets/markdown/markdown-ui.tsx +7 -0
- package/src/widgets/markdown/markdown.tsx +7 -7
- package/src/widgets/no-data/no-data.test.tsx +90 -40
- package/src/widgets/no-data/no-data.tsx +12 -13
- package/src/widgets/no-data/types.ts +5 -1
- package/src/widgets/note/note.tsx +10 -0
- package/src/widgets/pie/config.ts +102 -33
- package/src/widgets/pie/style.ts +1 -1
- package/src/widgets/range/components/range-item.test.tsx +243 -0
- package/src/widgets/range/components/range-item.tsx +25 -20
- package/src/widgets/range/config.ts +5 -0
- package/src/widgets/range/range-ui.tsx +3 -0
- package/src/widgets/scatterplot/config.ts +21 -23
- package/src/widgets/scatterplot/style.ts +1 -1
- package/src/widgets/selection-summary/selection-summary.tsx +11 -0
- package/src/widgets/skeleton-loader/skeleton-loader.tsx +12 -5
- package/src/widgets/spread/components/max-value.tsx +18 -18
- package/src/widgets/spread/components/min-value.tsx +18 -18
- package/src/widgets/spread/components/separator.tsx +3 -0
- package/src/widgets/spread/config.ts +11 -0
- package/src/widgets/spread/spread-ui.tsx +4 -1
- package/src/widgets/stores/index.ts +4 -1
- package/src/widgets/stores/types.ts +12 -18
- package/src/widgets/stores/use-widget-selector.ts +47 -0
- package/src/widgets/stores/widget-store-branches.test.ts +275 -0
- package/src/widgets/stores/widget-store-performance.test.ts +750 -0
- package/src/widgets/stores/widget-store.test.ts +213 -13
- package/src/widgets/stores/widget-store.ts +240 -65
- package/src/widgets/subheader/subheader.tsx +22 -3
- package/src/widgets/table/config.test.ts +65 -0
- package/src/widgets/table/config.ts +8 -4
- package/src/widgets/table/hooks/use-pagination.ts +39 -55
- package/src/widgets/table/hooks/use-selection.ts +31 -26
- package/src/widgets/table/hooks/use-sort.ts +33 -42
- package/src/widgets/table/index.ts +6 -4
- package/src/widgets/table/table-ui.tsx +1 -1
- package/src/widgets/table/types.ts +1 -1
- package/src/widgets/timeseries/config.ts +34 -33
- package/src/widgets/timeseries/style.ts +1 -1
- package/src/widgets/utils/chart-config/download-config.ts +22 -0
- package/src/widgets/{_shared → utils}/chart-config/index.ts +6 -0
- package/src/widgets/utils/chart-config/option-builders.test.ts +332 -0
- package/src/widgets/{_shared → utils}/chart-config/option-builders.ts +79 -13
- package/src/widgets/utils/formatter.ts +2 -0
- package/src/widgets/utils/index.ts +26 -0
- package/src/widgets/wrapper/components/actions.tsx +3 -0
- package/src/widgets/wrapper/components/options.tsx +3 -0
- package/src/widgets/wrapper/components/title.tsx +3 -0
- package/src/widgets/wrapper/wrapper-ui.tsx +26 -13
- package/src/widgets/wrapper/wrapper.tsx +18 -6
- package/src/widgets-v2/PERFORMANCE.md +189 -0
- package/src/widgets-v2/actions/brush-toggle/brush-toggle.test.tsx +180 -0
- package/src/widgets-v2/actions/brush-toggle/brush-toggle.tsx +154 -0
- package/src/widgets-v2/actions/brush-toggle/index.ts +3 -0
- package/src/widgets-v2/actions/brush-toggle/labels.ts +9 -0
- package/src/widgets-v2/actions/brush-toggle/style.ts +11 -0
- package/src/widgets-v2/actions/brush-toggle/transforms.test.ts +47 -0
- package/src/widgets-v2/actions/brush-toggle/transforms.ts +31 -0
- package/src/widgets-v2/actions/change-column/change-column-icon.tsx +14 -0
- package/src/widgets-v2/actions/change-column/change-column.test.tsx +59 -0
- package/src/widgets-v2/actions/change-column/change-column.tsx +180 -0
- package/src/widgets-v2/actions/change-column/index.ts +7 -0
- package/src/widgets-v2/actions/change-column/labels.ts +9 -0
- package/src/widgets-v2/actions/change-column/sortable-column-item.tsx +56 -0
- package/src/widgets-v2/actions/change-column/style.ts +32 -0
- package/src/widgets-v2/actions/change-column/types.ts +11 -0
- package/src/widgets-v2/actions/download/download.test.tsx +327 -0
- package/src/widgets-v2/actions/download/download.tsx +144 -0
- package/src/widgets-v2/actions/download/exports.test.tsx +198 -0
- package/src/widgets-v2/actions/download/exports.ts +115 -0
- package/src/widgets-v2/actions/download/icons.tsx +26 -0
- package/src/widgets-v2/actions/download/index.ts +13 -0
- package/src/widgets-v2/actions/download/labels.ts +16 -0
- package/src/widgets-v2/actions/download/png-item.test.tsx +72 -0
- package/src/widgets-v2/actions/download/png-item.tsx +52 -0
- package/src/widgets-v2/actions/download/style.ts +3 -0
- package/src/widgets-v2/actions/download/types.ts +32 -0
- package/src/widgets-v2/actions/fullscreen/fullscreen.test.tsx +150 -0
- package/src/widgets-v2/actions/fullscreen/fullscreen.tsx +230 -0
- package/src/widgets-v2/actions/fullscreen/index.ts +7 -0
- package/src/widgets-v2/actions/fullscreen/labels.ts +9 -0
- package/src/widgets-v2/actions/fullscreen/style.ts +59 -0
- package/src/widgets-v2/actions/fullscreen/types.ts +15 -0
- package/src/widgets-v2/actions/index.ts +82 -0
- package/src/widgets-v2/actions/lock-selection/index.ts +10 -0
- package/src/widgets-v2/actions/lock-selection/labels.ts +11 -0
- package/src/widgets-v2/actions/lock-selection/lock-selection.test.tsx +187 -0
- package/src/widgets-v2/actions/lock-selection/lock-selection.tsx +130 -0
- package/src/widgets-v2/actions/lock-selection/style.ts +11 -0
- package/src/widgets-v2/actions/lock-selection/transforms.ts +27 -0
- package/src/widgets-v2/actions/relative-data/index.ts +3 -0
- package/src/widgets-v2/actions/relative-data/labels.ts +9 -0
- package/src/widgets-v2/actions/relative-data/relative-data.test.tsx +71 -0
- package/src/widgets-v2/actions/relative-data/relative-data.tsx +107 -0
- package/src/widgets-v2/actions/relative-data/style.ts +11 -0
- package/src/widgets-v2/actions/relative-data/transforms.test.ts +151 -0
- package/src/widgets-v2/actions/relative-data/transforms.ts +70 -0
- package/src/widgets-v2/actions/searcher/filter.ts +28 -0
- package/src/widgets-v2/actions/searcher/index.ts +8 -0
- package/src/widgets-v2/actions/searcher/labels.ts +13 -0
- package/src/widgets-v2/actions/searcher/searcher-toggle.tsx +91 -0
- package/src/widgets-v2/actions/searcher/searcher.test.tsx +92 -0
- package/src/widgets-v2/actions/searcher/searcher.tsx +112 -0
- package/src/widgets-v2/actions/searcher/style.ts +15 -0
- package/src/widgets-v2/actions/stack-toggle/index.ts +3 -0
- package/src/widgets-v2/actions/stack-toggle/labels.ts +9 -0
- package/src/widgets-v2/actions/stack-toggle/stack-toggle.test.tsx +61 -0
- package/src/widgets-v2/actions/stack-toggle/stack-toggle.tsx +54 -0
- package/src/widgets-v2/actions/stack-toggle/style.ts +11 -0
- package/src/widgets-v2/actions/stack-toggle/transforms.test.ts +43 -0
- package/src/widgets-v2/actions/stack-toggle/transforms.ts +25 -0
- package/src/widgets-v2/actions/zoom-toggle/index.ts +9 -0
- package/src/widgets-v2/actions/zoom-toggle/labels.ts +9 -0
- package/src/widgets-v2/actions/zoom-toggle/style.ts +11 -0
- package/src/widgets-v2/actions/zoom-toggle/transforms.test.ts +148 -0
- package/src/widgets-v2/actions/zoom-toggle/transforms.ts +171 -0
- package/src/widgets-v2/actions/zoom-toggle/zoom-toggle.test.tsx +107 -0
- package/src/widgets-v2/actions/zoom-toggle/zoom-toggle.tsx +106 -0
- package/src/widgets-v2/bar/download.test.tsx +91 -0
- package/src/widgets-v2/bar/download.tsx +66 -0
- package/src/widgets-v2/bar/index.ts +10 -0
- package/src/widgets-v2/bar/options.test.ts +334 -0
- package/src/widgets-v2/bar/options.ts +332 -0
- package/src/widgets-v2/bar/skeleton.test.tsx +19 -0
- package/src/widgets-v2/bar/skeleton.tsx +69 -0
- package/src/widgets-v2/bar/types.ts +51 -0
- package/src/widgets-v2/category/category-ui.test.tsx +746 -0
- package/src/widgets-v2/category/category-ui.tsx +389 -0
- package/src/widgets-v2/category/category.relative-data.test.tsx +107 -0
- package/src/widgets-v2/category/category.stack-toggle.test.tsx +85 -0
- package/src/widgets-v2/category/category.test.tsx +305 -0
- package/src/widgets-v2/category/category.tsx +121 -0
- package/src/widgets-v2/category/components/category-bar-stacked.test.tsx +121 -0
- package/src/widgets-v2/category/components/category-bar-stacked.tsx +73 -0
- package/src/widgets-v2/category/components/category-bar.test.tsx +64 -0
- package/src/widgets-v2/category/components/category-bar.tsx +49 -0
- package/src/widgets-v2/category/components/category-legend.test.tsx +51 -0
- package/src/widgets-v2/category/components/category-legend.tsx +39 -0
- package/src/widgets-v2/category/components/category-row-multi.tsx +86 -0
- package/src/widgets-v2/category/components/category-row-other.test.tsx +28 -0
- package/src/widgets-v2/category/components/category-row-other.tsx +33 -0
- package/src/widgets-v2/category/components/category-row-single.tsx +76 -0
- package/src/widgets-v2/category/components/category-row-stacked.test.tsx +244 -0
- package/src/widgets-v2/category/components/category-row-stacked.tsx +99 -0
- package/src/widgets-v2/category/download.test.ts +71 -0
- package/src/widgets-v2/category/download.ts +54 -0
- package/src/widgets-v2/category/index.ts +32 -0
- package/src/widgets-v2/category/skeleton.test.tsx +26 -0
- package/src/widgets-v2/category/skeleton.tsx +74 -0
- package/src/widgets-v2/category/style.ts +290 -0
- package/src/widgets-v2/category/types.ts +59 -0
- package/src/widgets-v2/echart/echart-ui.test.tsx +232 -0
- package/src/widgets-v2/echart/echart-ui.tsx +184 -0
- package/src/widgets-v2/echart/echart.test.tsx +229 -0
- package/src/widgets-v2/echart/echart.tsx +199 -0
- package/src/widgets-v2/echart/index.ts +22 -0
- package/src/widgets-v2/echart/shared-resize-observer.test.ts +91 -0
- package/src/widgets-v2/echart/shared-resize-observer.ts +56 -0
- package/src/widgets-v2/echart/style.ts +8 -0
- package/src/widgets-v2/echart/use-chart-selection.test.tsx +118 -0
- package/src/widgets-v2/echart/use-chart-selection.ts +115 -0
- package/src/widgets-v2/formula/delta.tsx +61 -0
- package/src/widgets-v2/formula/download.test.tsx +65 -0
- package/src/widgets-v2/formula/download.tsx +69 -0
- package/src/widgets-v2/formula/formula-ui.test.tsx +91 -0
- package/src/widgets-v2/formula/formula-ui.tsx +66 -0
- package/src/widgets-v2/formula/formula.test.tsx +50 -0
- package/src/widgets-v2/formula/formula.tsx +34 -0
- package/src/widgets-v2/formula/index.ts +17 -0
- package/src/widgets-v2/formula/note.tsx +25 -0
- package/src/widgets-v2/formula/prefix.tsx +25 -0
- package/src/widgets-v2/formula/series.tsx +67 -0
- package/src/widgets-v2/formula/skeleton.test.tsx +21 -0
- package/src/widgets-v2/formula/skeleton.tsx +27 -0
- package/src/widgets-v2/formula/style.ts +31 -0
- package/src/widgets-v2/formula/subcomponents.test.tsx +107 -0
- package/src/widgets-v2/formula/suffix.tsx +25 -0
- package/src/widgets-v2/formula/types.ts +48 -0
- package/src/widgets-v2/formula/value.tsx +31 -0
- package/src/widgets-v2/histogram/download.test.ts +94 -0
- package/src/widgets-v2/histogram/download.ts +60 -0
- package/src/widgets-v2/histogram/index.ts +10 -0
- package/src/widgets-v2/histogram/options.test.ts +318 -0
- package/src/widgets-v2/histogram/options.ts +338 -0
- package/src/widgets-v2/histogram/skeleton.test.tsx +16 -0
- package/src/widgets-v2/histogram/skeleton.tsx +70 -0
- package/src/widgets-v2/histogram/transforms.test.ts +46 -0
- package/src/widgets-v2/histogram/transforms.ts +30 -0
- package/src/widgets-v2/histogram/types.ts +55 -0
- package/src/widgets-v2/index.ts +204 -0
- package/src/widgets-v2/markdown/download.test.ts +66 -0
- package/src/widgets-v2/markdown/download.ts +53 -0
- package/src/widgets-v2/markdown/index.ts +6 -0
- package/src/widgets-v2/markdown/markdown-content.test.tsx +155 -0
- package/src/widgets-v2/markdown/markdown-content.tsx +72 -0
- package/src/widgets-v2/markdown/markdown-ui.test.tsx +75 -0
- package/src/widgets-v2/markdown/markdown-ui.tsx +55 -0
- package/src/widgets-v2/markdown/markdown.test.tsx +39 -0
- package/src/widgets-v2/markdown/markdown.tsx +17 -0
- package/src/widgets-v2/markdown/skeleton.test.tsx +15 -0
- package/src/widgets-v2/markdown/skeleton.tsx +32 -0
- package/src/widgets-v2/markdown/style.ts +53 -0
- package/src/widgets-v2/markdown/types.ts +4 -0
- package/src/widgets-v2/note/labels.ts +9 -0
- package/src/widgets-v2/note/style.ts +26 -0
- package/src/widgets-v2/note/widget-note.test.tsx +158 -0
- package/src/widgets-v2/note/widget-note.tsx +172 -0
- package/src/widgets-v2/pie/download.test.ts +78 -0
- package/src/widgets-v2/pie/download.ts +55 -0
- package/src/widgets-v2/pie/index.ts +10 -0
- package/src/widgets-v2/pie/options.test.ts +601 -0
- package/src/widgets-v2/pie/options.ts +513 -0
- package/src/widgets-v2/pie/skeleton.test.tsx +17 -0
- package/src/widgets-v2/pie/skeleton.tsx +32 -0
- package/src/widgets-v2/pie/types.ts +62 -0
- package/src/widgets-v2/provider/widget-provider.test.tsx +119 -0
- package/src/widgets-v2/provider/widget-provider.tsx +111 -0
- package/src/widgets-v2/range/index.ts +4 -0
- package/src/widgets-v2/range/range-ui.test.tsx +136 -0
- package/src/widgets-v2/range/range-ui.tsx +278 -0
- package/src/widgets-v2/range/range.test.tsx +68 -0
- package/src/widgets-v2/range/range.tsx +52 -0
- package/src/widgets-v2/range/skeleton.test.tsx +17 -0
- package/src/widgets-v2/range/skeleton.tsx +47 -0
- package/src/widgets-v2/range/style.ts +41 -0
- package/src/widgets-v2/range/types.ts +37 -0
- package/src/widgets-v2/scatterplot/download.test.ts +71 -0
- package/src/widgets-v2/scatterplot/download.ts +54 -0
- package/src/widgets-v2/scatterplot/index.ts +11 -0
- package/src/widgets-v2/scatterplot/options.test.ts +411 -0
- package/src/widgets-v2/scatterplot/options.ts +425 -0
- package/src/widgets-v2/scatterplot/skeleton.test.tsx +17 -0
- package/src/widgets-v2/scatterplot/skeleton.tsx +84 -0
- package/src/widgets-v2/scatterplot/transforms.test.ts +97 -0
- package/src/widgets-v2/scatterplot/transforms.ts +38 -0
- package/src/widgets-v2/scatterplot/types.ts +59 -0
- package/src/widgets-v2/selection-summary/labels.ts +11 -0
- package/src/widgets-v2/selection-summary/selection-summary.test.tsx +53 -0
- package/src/widgets-v2/selection-summary/selection-summary.tsx +62 -0
- package/src/widgets-v2/selection-summary/style.ts +23 -0
- package/src/widgets-v2/spread/download.test.ts +64 -0
- package/src/widgets-v2/spread/download.ts +59 -0
- package/src/widgets-v2/spread/index.ts +6 -0
- package/src/widgets-v2/spread/separator.tsx +11 -0
- package/src/widgets-v2/spread/skeleton.test.tsx +17 -0
- package/src/widgets-v2/spread/skeleton.tsx +38 -0
- package/src/widgets-v2/spread/spread-ui.test.tsx +108 -0
- package/src/widgets-v2/spread/spread-ui.tsx +52 -0
- package/src/widgets-v2/spread/spread.test.tsx +50 -0
- package/src/widgets-v2/spread/spread.tsx +31 -0
- package/src/widgets-v2/spread/types.ts +27 -0
- package/src/widgets-v2/state/labels.test.ts +33 -0
- package/src/widgets-v2/state/labels.ts +20 -0
- package/src/widgets-v2/state/style.ts +25 -0
- package/src/widgets-v2/state/widget-state.test.tsx +294 -0
- package/src/widgets-v2/state/widget-state.tsx +184 -0
- package/src/widgets-v2/stores/index.ts +49 -0
- package/src/widgets-v2/stores/pipeline-middleware.test.ts +187 -0
- package/src/widgets-v2/stores/pipeline-middleware.ts +91 -0
- package/src/widgets-v2/stores/transforms.test.ts +162 -0
- package/src/widgets-v2/stores/transforms.ts +70 -0
- package/src/widgets-v2/stores/types.ts +64 -0
- package/src/widgets-v2/stores/use-echart-instance.test.tsx +91 -0
- package/src/widgets-v2/stores/use-echart-instance.ts +29 -0
- package/src/widgets-v2/stores/use-transform-enabled.test.tsx +127 -0
- package/src/widgets-v2/stores/use-transform-enabled.ts +25 -0
- package/src/widgets-v2/stores/use-transform.test.tsx +262 -0
- package/src/widgets-v2/stores/use-transform.ts +158 -0
- package/src/widgets-v2/stores/widget-context.test.tsx +58 -0
- package/src/widgets-v2/stores/widget-context.ts +15 -0
- package/src/widgets-v2/stores/widget-store-registry.test.ts +292 -0
- package/src/widgets-v2/stores/widget-store-registry.ts +248 -0
- package/src/widgets-v2/subheader/style.ts +12 -0
- package/src/widgets-v2/subheader/subheader.test.tsx +30 -0
- package/src/widgets-v2/subheader/subheader.tsx +16 -0
- package/src/widgets-v2/table/download.test.ts +75 -0
- package/src/widgets-v2/table/download.ts +47 -0
- package/src/widgets-v2/table/helpers.test.ts +214 -0
- package/src/widgets-v2/table/helpers.ts +136 -0
- package/src/widgets-v2/table/index.ts +23 -0
- package/src/widgets-v2/table/labels.tsx +41 -0
- package/src/widgets-v2/table/skeleton.test.tsx +26 -0
- package/src/widgets-v2/table/skeleton.tsx +65 -0
- package/src/widgets-v2/table/style.ts +43 -0
- package/src/widgets-v2/table/table-ui.test.tsx +200 -0
- package/src/widgets-v2/table/table-ui.tsx +364 -0
- package/src/widgets-v2/table/table.test.tsx +119 -0
- package/src/widgets-v2/table/table.tsx +179 -0
- package/src/widgets-v2/table/types.ts +55 -0
- package/src/widgets-v2/test-utils.ts +107 -0
- package/src/widgets-v2/timeseries/download.test.ts +95 -0
- package/src/widgets-v2/timeseries/download.ts +86 -0
- package/src/widgets-v2/timeseries/index.ts +10 -0
- package/src/widgets-v2/timeseries/options.test.ts +394 -0
- package/src/widgets-v2/timeseries/options.ts +348 -0
- package/src/widgets-v2/timeseries/skeleton.test.tsx +13 -0
- package/src/widgets-v2/timeseries/skeleton.tsx +76 -0
- package/src/widgets-v2/timeseries/types.ts +65 -0
- package/src/widgets-v2/toolbox/labels.ts +9 -0
- package/src/widgets-v2/toolbox/style.ts +33 -0
- package/src/widgets-v2/toolbox/toolbox.test.tsx +200 -0
- package/src/widgets-v2/toolbox/toolbox.tsx +309 -0
- package/src/widgets-v2/types.ts +25 -0
- package/src/widgets-v2/utils/data-zoom-layout.ts +26 -0
- package/src/widgets-v2/utils/index.ts +3 -0
- package/src/widgets-v2/utils/merge-options.test.ts +52 -0
- package/src/widgets-v2/utils/merge-options.ts +50 -0
- package/src/widgets-v2/utils/resolve-theme-color.test.ts +43 -0
- package/src/widgets-v2/utils/resolve-theme-color.ts +34 -0
- package/src/widgets-v2/wrapper/index.ts +14 -0
- package/src/widgets-v2/wrapper/labels.ts +11 -0
- package/src/widgets-v2/wrapper/style.ts +134 -0
- package/src/widgets-v2/wrapper/widget-actions.test.tsx +52 -0
- package/src/widgets-v2/wrapper/widget-actions.tsx +43 -0
- package/src/widgets-v2/wrapper/widget-content.test.tsx +27 -0
- package/src/widgets-v2/wrapper/widget-content.tsx +29 -0
- package/src/widgets-v2/wrapper/widget-wrapper.test.tsx +159 -0
- package/src/widgets-v2/wrapper/widget-wrapper.tsx +178 -0
- package/dist/error-CEkRPccv.js +0 -39
- package/dist/error-CEkRPccv.js.map +0 -1
- package/dist/index-BnyeR7Qx.js +0 -6601
- package/dist/index-BnyeR7Qx.js.map +0 -1
- package/dist/no-data-hR3KcJ-_.js +0 -60
- package/dist/no-data-hR3KcJ-_.js.map +0 -1
- package/dist/note-t51drNe0.js +0 -124
- package/dist/note-t51drNe0.js.map +0 -1
- package/dist/options-D9wflre6.js +0 -49
- package/dist/options-D9wflre6.js.map +0 -1
- package/dist/row-DTCV0Ocm.js +0 -35
- package/dist/row-DTCV0Ocm.js.map +0 -1
- package/dist/series-CYNOu2Ju.js +0 -91
- package/dist/series-CYNOu2Ju.js.map +0 -1
- package/dist/styles-CAroD5Rc.js +0 -123
- package/dist/styles-CAroD5Rc.js.map +0 -1
- package/dist/types/hooks/use-debounce.d.ts +0 -19
- package/dist/types/widgets/category/components/index.d.ts +0 -10
- package/dist/types/widgets/index.d.ts +0 -9
- package/dist/types/widgets/table/hooks/index.d.ts +0 -6
- package/dist/use-widget-ref-P-2i0MJG.js +0 -19
- package/dist/use-widget-ref-P-2i0MJG.js.map +0 -1
- package/dist/utils-idmvq0Oa.js.map +0 -1
- package/dist/widget-store-CzDt8oSK.js +0 -163
- package/dist/widget-store-CzDt8oSK.js.map +0 -1
- package/dist/widgets.js +0 -13
- package/dist/widgets.js.map +0 -1
- package/src/hooks/use-debounce.ts +0 -55
- package/src/widgets/_shared/chart-config/option-builders.test.ts +0 -40
- package/src/widgets/category/components/index.ts +0 -14
- package/src/widgets/index.ts +0 -25
- package/src/widgets/table/hooks/index.ts +0 -7
- /package/dist/types/widgets/{_shared → utils}/chart-config/config-factory.d.ts +0 -0
- /package/dist/types/widgets/{_shared → utils}/chart-config/csv-modifiers.d.ts +0 -0
- /package/dist/types/widgets/{_shared → utils}/skeleton/index.d.ts +0 -0
- /package/dist/types/widgets/{_shared → utils}/skeleton/styles.d.ts +0 -0
- /package/dist/types/{widgets/_shared/chart-config/option-builders.test.d.ts → widgets-v2/actions/brush-toggle/transforms.test.d.ts} +0 -0
- /package/src/widgets/{_shared → utils}/chart-config/config-factory.ts +0 -0
- /package/src/widgets/{_shared → utils}/chart-config/csv-modifiers.ts +0 -0
- /package/src/widgets/{_shared → utils}/skeleton/index.ts +0 -0
- /package/src/widgets/{_shared → utils}/skeleton/styles.ts +0 -0
package/dist/widgets/actions.js
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { c as
|
|
3
|
-
import { IconButton as
|
|
4
|
-
import { u as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { useState as
|
|
8
|
-
import "
|
|
9
|
-
import { a as Bn, d as Mn } from "../exports-Cr43OCul.js";
|
|
1
|
+
import { jsx as x, jsxs as oe, Fragment as ue } from "react/jsx-runtime";
|
|
2
|
+
import { c as Q } from "react/compiler-runtime";
|
|
3
|
+
import { IconButton as ee, DialogContent as Ae, Dialog as Be, Typography as We, DialogTitle as Fe, CircularProgress as $e, MenuItem as we, ListItemIcon as Ne, ListItemText as Pe, Menu as Re, useTheme as Ge, Box as De, TextField as Ze, InputAdornment as xe, SvgIcon as Ve } from "@mui/material";
|
|
4
|
+
import { w as p, u as He } from "../widget-store-Bw5zRUGg.js";
|
|
5
|
+
import { u as ne } from "../use-widget-selector-DFl2hW0R.js";
|
|
6
|
+
import { FullscreenOutlined as je, Close as Ue, FileDownloadOutlined as Xe, PercentOutlined as Ye, SubdirectoryArrowLeftOutlined as Ke, ZoomInOutlined as qe, CheckBoxOutlined as Je, SearchOutlined as ze, ClearOutlined as Qe, HighlightAltOutlined as et } from "@mui/icons-material";
|
|
7
|
+
import { useState as ie, useRef as le, useEffect as H, useSyncExternalStore as ve } from "react";
|
|
8
|
+
import { a as Rn, d as Dn } from "../exports-Cr43OCul.js";
|
|
10
9
|
import "../lasso-tool-BYbxrJ-7.js";
|
|
11
10
|
import "../cjs-D4KH3azB.js";
|
|
12
|
-
import { T as
|
|
11
|
+
import { T as re } from "../tooltip-BDnrRKrp.js";
|
|
13
12
|
import "@carto/ps-utils";
|
|
14
|
-
import { b as
|
|
15
|
-
import { useSensors as
|
|
16
|
-
import { useSortable as
|
|
17
|
-
import { CSS as
|
|
18
|
-
|
|
13
|
+
import { b as tt, a as nt, D as ot } from "../utils-BOhInag6.js";
|
|
14
|
+
import { useSensors as lt, useSensor as ye, PointerSensor as rt, KeyboardSensor as it, DndContext as st, closestCenter as ct } from "@dnd-kit/core";
|
|
15
|
+
import { useSortable as at, sortableKeyboardCoordinates as dt, arrayMove as ut, SortableContext as ft, verticalListSortingStrategy as mt } from "@dnd-kit/sortable";
|
|
16
|
+
import { CSS as gt } from "@dnd-kit/utilities";
|
|
17
|
+
import { createPortal as ht } from "react-dom";
|
|
18
|
+
import { o as pt } from "../shared-resize-observer-98b1SK1e.js";
|
|
19
|
+
const Ie = {
|
|
19
20
|
title: {
|
|
20
21
|
container: {
|
|
21
22
|
display: "flex",
|
|
@@ -31,268 +32,302 @@ const Ce = {
|
|
|
31
32
|
spacing: n
|
|
32
33
|
}) => n(1)
|
|
33
34
|
}
|
|
34
|
-
},
|
|
35
|
-
function
|
|
36
|
-
const e =
|
|
35
|
+
}, bt = {};
|
|
36
|
+
function Sn(n) {
|
|
37
|
+
const e = Q(42), {
|
|
37
38
|
id: t,
|
|
38
|
-
labels:
|
|
39
|
-
children:
|
|
39
|
+
labels: r,
|
|
40
|
+
children: u,
|
|
40
41
|
Icon: c,
|
|
41
|
-
IconButtonProps:
|
|
42
|
-
DialogContentProps:
|
|
43
|
-
DialogProps:
|
|
44
|
-
} = n,
|
|
45
|
-
let
|
|
46
|
-
e[0] !==
|
|
47
|
-
sx:
|
|
48
|
-
...
|
|
49
|
-
} =
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
e[5] !== t ? (_ = (k) => k.getWidget(t)?.title, e[5] = t, e[6] = _) : _ = e[6];
|
|
55
|
-
const T = $(te(_)), o = $(gt);
|
|
56
|
-
let h;
|
|
57
|
-
e[7] !== t || e[8] !== o ? (h = (k) => {
|
|
58
|
-
o(t, {
|
|
59
|
-
isFullScreen: k.isFullScreen
|
|
60
|
-
});
|
|
61
|
-
}, e[7] = t, e[8] = o, e[9] = h) : h = e[9];
|
|
62
|
-
const i = h;
|
|
42
|
+
IconButtonProps: b,
|
|
43
|
+
DialogContentProps: C,
|
|
44
|
+
DialogProps: S
|
|
45
|
+
} = n, o = C === void 0 ? bt : C;
|
|
46
|
+
let i, l;
|
|
47
|
+
e[0] !== o ? ({
|
|
48
|
+
sx: l,
|
|
49
|
+
...i
|
|
50
|
+
} = o, e[0] = o, e[1] = i, e[2] = l) : (i = e[1], l = e[2]);
|
|
51
|
+
const {
|
|
52
|
+
isFullScreen: a,
|
|
53
|
+
title: d
|
|
54
|
+
} = ne(t, St);
|
|
63
55
|
let m;
|
|
64
|
-
e[
|
|
56
|
+
e[3] !== t ? (m = (M) => {
|
|
57
|
+
p.setWidget(t, {
|
|
58
|
+
isFullScreen: M.isFullScreen
|
|
59
|
+
});
|
|
60
|
+
}, e[3] = t, e[4] = m) : m = e[4];
|
|
61
|
+
const f = m;
|
|
62
|
+
let h;
|
|
63
|
+
e[5] !== f ? (h = () => f({
|
|
65
64
|
isFullScreen: !0
|
|
66
|
-
}), e[
|
|
67
|
-
let
|
|
68
|
-
e[
|
|
69
|
-
let
|
|
70
|
-
e[
|
|
71
|
-
const
|
|
72
|
-
let
|
|
73
|
-
e[
|
|
65
|
+
}), e[5] = f, e[6] = h) : h = e[6];
|
|
66
|
+
let g;
|
|
67
|
+
e[7] !== c ? (g = c ?? /* @__PURE__ */ x(je, {}), e[7] = c, e[8] = g) : g = e[8];
|
|
68
|
+
let I;
|
|
69
|
+
e[9] !== b || e[10] !== h || e[11] !== g ? (I = /* @__PURE__ */ x(ee, { ...b, onClick: h, children: g }), e[9] = b, e[10] = h, e[11] = g, e[12] = I) : I = e[12];
|
|
70
|
+
const s = !!a, w = r?.ariaLabel ?? `fullscreen-dialog-title-${t}`;
|
|
71
|
+
let L;
|
|
72
|
+
e[13] !== f ? (L = () => f({
|
|
74
73
|
isFullScreen: !1
|
|
75
|
-
}), e[
|
|
76
|
-
const
|
|
77
|
-
let w;
|
|
78
|
-
e[20] !== T ? (w = /* @__PURE__ */ g(Re, { variant: "subtitle1", component: "span", children: T }), e[20] = T, e[21] = w) : w = e[21];
|
|
74
|
+
}), e[13] = f, e[14] = L) : L = e[14];
|
|
75
|
+
const P = `fullscreen-dialog-title-${t}`;
|
|
79
76
|
let D;
|
|
80
|
-
e[
|
|
77
|
+
e[15] !== d ? (D = /* @__PURE__ */ x(We, { variant: "subtitle1", component: "span", children: d }), e[15] = d, e[16] = D) : D = e[16];
|
|
78
|
+
let O;
|
|
79
|
+
e[17] !== f ? (O = () => f({
|
|
81
80
|
isFullScreen: !1
|
|
82
|
-
}), e[
|
|
83
|
-
let
|
|
84
|
-
e[
|
|
85
|
-
let I;
|
|
86
|
-
e[25] !== D ? (I = /* @__PURE__ */ g(J, { onClick: D, children: L }), e[25] = D, e[26] = I) : I = e[26];
|
|
87
|
-
let W;
|
|
88
|
-
e[27] !== A || e[28] !== w || e[29] !== I ? (W = /* @__PURE__ */ re(Be, { id: A, sx: Ce.title.container, children: [
|
|
89
|
-
w,
|
|
90
|
-
I
|
|
91
|
-
] }), e[27] = A, e[28] = w, e[29] = I, e[30] = W) : W = e[30];
|
|
92
|
-
let z;
|
|
93
|
-
e[31] !== S ? (z = {
|
|
94
|
-
...Ce.content,
|
|
95
|
-
...S
|
|
96
|
-
}, e[31] = S, e[32] = z) : z = e[32];
|
|
81
|
+
}), e[17] = f, e[18] = O) : O = e[18];
|
|
82
|
+
let E;
|
|
83
|
+
e[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = /* @__PURE__ */ x(Ue, {}), e[19] = E) : E = e[19];
|
|
97
84
|
let R;
|
|
98
|
-
e[
|
|
99
|
-
let
|
|
100
|
-
e[
|
|
101
|
-
|
|
85
|
+
e[20] !== O ? (R = /* @__PURE__ */ x(ee, { onClick: O, children: E }), e[20] = O, e[21] = R) : R = e[21];
|
|
86
|
+
let k;
|
|
87
|
+
e[22] !== P || e[23] !== D || e[24] !== R ? (k = /* @__PURE__ */ oe(Fe, { id: P, sx: Ie.title.container, children: [
|
|
88
|
+
D,
|
|
102
89
|
R
|
|
103
|
-
] }), e[
|
|
104
|
-
let
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
90
|
+
] }), e[22] = P, e[23] = D, e[24] = R, e[25] = k) : k = e[25];
|
|
91
|
+
let v;
|
|
92
|
+
e[26] !== l ? (v = {
|
|
93
|
+
...Ie.content,
|
|
94
|
+
...l
|
|
95
|
+
}, e[26] = l, e[27] = v) : v = e[27];
|
|
96
|
+
let T;
|
|
97
|
+
e[28] !== i || e[29] !== u || e[30] !== v ? (T = /* @__PURE__ */ x(Ae, { sx: v, ...i, children: u }), e[28] = i, e[29] = u, e[30] = v, e[31] = T) : T = e[31];
|
|
98
|
+
let _;
|
|
99
|
+
e[32] !== S || e[33] !== k || e[34] !== T || e[35] !== s || e[36] !== w || e[37] !== L ? (_ = /* @__PURE__ */ oe(Be, { maxWidth: !1, open: s, keepMounted: !0, "aria-labelledby": w, ...S, onClose: L, children: [
|
|
100
|
+
k,
|
|
101
|
+
T
|
|
102
|
+
] }), e[32] = S, e[33] = k, e[34] = T, e[35] = s, e[36] = w, e[37] = L, e[38] = _) : _ = e[38];
|
|
103
|
+
let z;
|
|
104
|
+
return e[39] !== _ || e[40] !== I ? (z = /* @__PURE__ */ oe(ue, { children: [
|
|
105
|
+
I,
|
|
106
|
+
_
|
|
107
|
+
] }), e[39] = _, e[40] = I, e[41] = z) : z = e[41], z;
|
|
109
108
|
}
|
|
110
|
-
function
|
|
111
|
-
return
|
|
109
|
+
function St(n) {
|
|
110
|
+
return {
|
|
111
|
+
isFullScreen: n?.isFullScreen,
|
|
112
|
+
title: n?.title
|
|
113
|
+
};
|
|
112
114
|
}
|
|
113
|
-
const
|
|
115
|
+
const xt = {};
|
|
114
116
|
function xn(n) {
|
|
115
|
-
const e =
|
|
117
|
+
const e = Q(31), {
|
|
116
118
|
id: t,
|
|
117
|
-
items:
|
|
118
|
-
labels:
|
|
119
|
+
items: r,
|
|
120
|
+
labels: u,
|
|
119
121
|
Icon: c,
|
|
120
|
-
IconButtonProps:
|
|
121
|
-
} = n,
|
|
122
|
+
IconButtonProps: b
|
|
123
|
+
} = n, C = u === void 0 ? xt : u, {
|
|
124
|
+
data: S
|
|
125
|
+
} = ne(t, vt), [o, i] = ie(!1), [l, a] = ie(null);
|
|
126
|
+
let d;
|
|
127
|
+
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = (M) => {
|
|
128
|
+
M.stopPropagation(), a(M.currentTarget);
|
|
129
|
+
}, e[0] = d) : d = e[0];
|
|
130
|
+
const m = d;
|
|
122
131
|
let f;
|
|
123
|
-
e[
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
e[
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
}, e[3] = t, e[4] = o) : o = e[4];
|
|
135
|
-
const h = o;
|
|
136
|
-
let i;
|
|
137
|
-
e[5] !== b || e[6] !== h ? (i = async (C, x) => {
|
|
138
|
-
C.stopPropagation(), S(!0), s(null);
|
|
139
|
-
const k = await x.modifier(b);
|
|
140
|
-
if (!k) {
|
|
141
|
-
S(!1);
|
|
132
|
+
e[1] !== t ? (f = (M, A) => {
|
|
133
|
+
const W = document.createElement("a");
|
|
134
|
+
W.href = M, W.download = A.filename ?? t, W.style.display = "none", document.body.appendChild(W), W.click(), document.body.removeChild(W), A.callback?.(W.href);
|
|
135
|
+
}, e[1] = t, e[2] = f) : f = e[2];
|
|
136
|
+
const h = f;
|
|
137
|
+
let g;
|
|
138
|
+
e[3] !== S || e[4] !== h ? (g = async (M, A) => {
|
|
139
|
+
M.stopPropagation(), i(!0), a(null);
|
|
140
|
+
const W = await A.modifier(S);
|
|
141
|
+
if (!W) {
|
|
142
|
+
i(!1);
|
|
142
143
|
return;
|
|
143
144
|
}
|
|
144
|
-
h(
|
|
145
|
-
}, e[
|
|
146
|
-
const
|
|
145
|
+
h(W, A), i(!1);
|
|
146
|
+
}, e[3] = S, e[4] = h, e[5] = g) : g = e[5];
|
|
147
|
+
const I = g, s = C.ariaLabel ?? "download options", w = o || r.length === 0, L = o || l ? "active" : "";
|
|
147
148
|
let P;
|
|
148
|
-
e[
|
|
149
|
-
let
|
|
150
|
-
e[
|
|
151
|
-
let
|
|
152
|
-
e[
|
|
149
|
+
e[6] !== c || e[7] !== o ? (P = o ? /* @__PURE__ */ x($e, { size: 18, color: "inherit" }) : c ?? /* @__PURE__ */ x(Xe, {}), e[6] = c, e[7] = o, e[8] = P) : P = e[8];
|
|
150
|
+
let D;
|
|
151
|
+
e[9] !== b || e[10] !== s || e[11] !== w || e[12] !== L || e[13] !== P ? (D = /* @__PURE__ */ x(ee, { size: "small", "aria-label": s, "aria-controls": "options-menu", "aria-haspopup": "true", onClick: m, ...b, disabled: w, className: L, children: P }), e[9] = b, e[10] = s, e[11] = w, e[12] = L, e[13] = P, e[14] = D) : D = e[14];
|
|
152
|
+
let O, E;
|
|
153
|
+
e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (O = {
|
|
153
154
|
vertical: "bottom",
|
|
154
155
|
horizontal: "right"
|
|
155
|
-
},
|
|
156
|
+
}, E = {
|
|
156
157
|
vertical: "top",
|
|
157
158
|
horizontal: "right"
|
|
158
|
-
}, e[
|
|
159
|
-
const
|
|
160
|
-
let
|
|
161
|
-
e[
|
|
159
|
+
}, e[15] = O, e[16] = E) : (O = e[15], E = e[16]);
|
|
160
|
+
const R = !!l;
|
|
161
|
+
let k, v;
|
|
162
|
+
e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = () => a(null), v = {
|
|
162
163
|
sx: {
|
|
163
164
|
paddingBottom: 0
|
|
164
165
|
}
|
|
165
|
-
}, e[
|
|
166
|
-
let
|
|
167
|
-
if (e[
|
|
168
|
-
let
|
|
169
|
-
e[
|
|
170
|
-
|
|
166
|
+
}, e[17] = k, e[18] = v) : (k = e[17], v = e[18]);
|
|
167
|
+
let T;
|
|
168
|
+
if (e[19] !== I || e[20] !== r) {
|
|
169
|
+
let M;
|
|
170
|
+
e[22] !== I ? (M = (A) => /* @__PURE__ */ oe(we, { disabled: A.disabled, onClick: (W) => {
|
|
171
|
+
I(W, A);
|
|
171
172
|
}, children: [
|
|
172
|
-
|
|
173
|
+
A.icon && /* @__PURE__ */ x(Ne, { sx: {
|
|
173
174
|
color: "text.primary"
|
|
174
|
-
}, children:
|
|
175
|
-
/* @__PURE__ */
|
|
176
|
-
] },
|
|
175
|
+
}, children: A.icon }),
|
|
176
|
+
/* @__PURE__ */ x(Pe, { children: A.label })
|
|
177
|
+
] }, A.id), e[22] = I, e[23] = M) : M = e[23], T = r.map(M), e[19] = I, e[20] = r, e[21] = T;
|
|
177
178
|
} else
|
|
178
|
-
|
|
179
|
+
T = e[21];
|
|
180
|
+
let _;
|
|
181
|
+
e[24] !== l || e[25] !== R || e[26] !== T ? (_ = /* @__PURE__ */ x(Re, { variant: "menu", elevation: 8, anchorOrigin: O, transformOrigin: E, anchorEl: l, open: R, onClose: k, MenuListProps: v, children: T }), e[24] = l, e[25] = R, e[26] = T, e[27] = _) : _ = e[27];
|
|
179
182
|
let z;
|
|
180
|
-
e[
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
183
|
+
return e[28] !== _ || e[29] !== D ? (z = /* @__PURE__ */ oe(ue, { children: [
|
|
184
|
+
D,
|
|
185
|
+
_
|
|
186
|
+
] }), e[28] = _, e[29] = D, e[30] = z) : z = e[30], z;
|
|
187
|
+
}
|
|
188
|
+
function vt(n) {
|
|
189
|
+
return {
|
|
190
|
+
data: n?.data
|
|
191
|
+
};
|
|
186
192
|
}
|
|
187
|
-
const
|
|
193
|
+
const se = {
|
|
188
194
|
trigger: {
|
|
189
195
|
'&[data-active="true"]': {
|
|
190
196
|
background: (n) => n.palette.primary.relatedLight
|
|
191
197
|
}
|
|
192
198
|
}
|
|
193
199
|
};
|
|
194
|
-
function
|
|
195
|
-
return n.reduce((e, t) => t.reduce((
|
|
196
|
-
if (Array.isArray(
|
|
197
|
-
const c =
|
|
198
|
-
return typeof c == "number" ?
|
|
200
|
+
function yt(n) {
|
|
201
|
+
return n.reduce((e, t) => t.reduce((r, u) => {
|
|
202
|
+
if (Array.isArray(u)) {
|
|
203
|
+
const c = u.at(-1);
|
|
204
|
+
return typeof c == "number" ? r + c : r;
|
|
199
205
|
}
|
|
200
|
-
return Object.entries(
|
|
206
|
+
return Object.entries(u).reduce((c, [b, C]) => b === "name" ? c : typeof C == "number" ? c + C : c, r);
|
|
201
207
|
}, e), 0);
|
|
202
208
|
}
|
|
203
|
-
function
|
|
204
|
-
return e === 0 ? n : n.map((t) => t.map((
|
|
205
|
-
if (Array.isArray(
|
|
206
|
-
return
|
|
207
|
-
const
|
|
208
|
-
for (const [c,
|
|
209
|
+
function It(n, e) {
|
|
210
|
+
return e === 0 ? n : n.map((t) => t.map((r) => {
|
|
211
|
+
if (Array.isArray(r))
|
|
212
|
+
return r.map((c, b) => b === r.length - 1 && typeof c == "number" ? c / e * 100 : c);
|
|
213
|
+
const u = {};
|
|
214
|
+
for (const [c, b] of Object.entries(r)) {
|
|
209
215
|
if (c === "name") {
|
|
210
|
-
|
|
216
|
+
u[c] = b;
|
|
211
217
|
continue;
|
|
212
218
|
}
|
|
213
|
-
|
|
219
|
+
u[c] = typeof b == "number" ? b / e * 100 : b;
|
|
214
220
|
}
|
|
215
|
-
return
|
|
221
|
+
return u;
|
|
216
222
|
}));
|
|
217
223
|
}
|
|
218
|
-
const
|
|
219
|
-
function
|
|
220
|
-
const e =
|
|
224
|
+
const ge = "relative-data", Te = "relative-data-config";
|
|
225
|
+
function vn(n) {
|
|
226
|
+
const e = Q(36), {
|
|
221
227
|
id: t,
|
|
222
|
-
order:
|
|
223
|
-
defaultIsRelative:
|
|
228
|
+
order: r,
|
|
229
|
+
defaultIsRelative: u,
|
|
224
230
|
labels: c,
|
|
225
|
-
Icon:
|
|
226
|
-
IconButtonProps:
|
|
227
|
-
} = n,
|
|
228
|
-
let
|
|
229
|
-
e[0] !==
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
e[
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
231
|
+
Icon: b,
|
|
232
|
+
IconButtonProps: C
|
|
233
|
+
} = n, S = r === void 0 ? 10 : r, o = u === void 0 ? !1 : u, i = le(void 0);
|
|
234
|
+
let l;
|
|
235
|
+
e[0] !== o ? (l = (v) => ({
|
|
236
|
+
isRelative: v?.isRelative ?? o
|
|
237
|
+
}), e[0] = o, e[1] = l) : l = e[1];
|
|
238
|
+
const {
|
|
239
|
+
isRelative: a
|
|
240
|
+
} = ne(t, l);
|
|
241
|
+
let d, m;
|
|
242
|
+
e[2] !== o || e[3] !== t ? (d = () => {
|
|
243
|
+
const v = p.getWidget(t);
|
|
244
|
+
v?.isRelative === void 0 && (o ? p.setWidget(t, {
|
|
245
|
+
isRelative: !0,
|
|
246
|
+
originalFormatter: v?.formatter,
|
|
247
|
+
originalMax: v?.max
|
|
248
|
+
}) : p.setWidget(t, {
|
|
249
|
+
isRelative: o
|
|
250
|
+
}));
|
|
251
|
+
}, m = [t, o], e[2] = o, e[3] = t, e[4] = d, e[5] = m) : (d = e[4], m = e[5]), H(d, m);
|
|
252
|
+
let f, h;
|
|
253
|
+
e[6] !== o || e[7] !== t || e[8] !== S ? (f = () => (p.registerTool(t, {
|
|
254
|
+
id: ge,
|
|
255
|
+
order: S,
|
|
256
|
+
enabled: o,
|
|
257
|
+
fn: Tt
|
|
258
|
+
}), () => p.unregisterTool(t, ge)), h = [t, S, o], e[6] = o, e[7] = t, e[8] = S, e[9] = f, e[10] = h) : (f = e[9], h = e[10]), H(f, h);
|
|
259
|
+
let g, I;
|
|
260
|
+
e[11] !== t || e[12] !== a ? (g = () => {
|
|
261
|
+
p.setToolEnabled(t, ge, a);
|
|
262
|
+
}, I = [t, a], e[11] = t, e[12] = a, e[13] = g, e[14] = I) : (g = e[13], I = e[14]), H(g, I);
|
|
263
|
+
let s;
|
|
264
|
+
e[15] !== t || e[16] !== S ? (s = () => (p.registerTool(t, {
|
|
265
|
+
id: Te,
|
|
266
|
+
type: "config",
|
|
267
|
+
order: S,
|
|
268
|
+
enabled: !0,
|
|
269
|
+
fn: (v) => {
|
|
270
|
+
const T = v, _ = p.getWidget(t), z = _?.sourceData != null && !(Array.isArray(_.sourceData) && _.sourceData.length === 0);
|
|
271
|
+
if (_?.isRelative) {
|
|
272
|
+
if (!z)
|
|
273
|
+
return T;
|
|
274
|
+
if (!i.current) {
|
|
275
|
+
const M = _?.locale;
|
|
276
|
+
i.current = (A) => new Intl.NumberFormat(M, {
|
|
277
|
+
style: "percent",
|
|
278
|
+
minimumFractionDigits: 1,
|
|
279
|
+
maximumFractionDigits: 1
|
|
280
|
+
}).format(A / 100);
|
|
281
|
+
}
|
|
282
|
+
return {
|
|
283
|
+
...T,
|
|
284
|
+
formatter: i.current,
|
|
285
|
+
max: 100
|
|
286
|
+
};
|
|
287
|
+
}
|
|
288
|
+
return i.current = void 0, _ != null && "originalFormatter" in _ ? {
|
|
289
|
+
...T,
|
|
290
|
+
formatter: _.originalFormatter,
|
|
291
|
+
max: _.originalMax
|
|
292
|
+
} : T;
|
|
254
293
|
}
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
formatter:
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
}).format(C / 100);
|
|
265
|
-
} : S.current
|
|
266
|
-
});
|
|
267
|
-
}, e[15] = s, e[16] = t, e[17] = m, e[18] = o, e[19] = r, e[20] = y) : y = e[20];
|
|
268
|
-
const A = y, w = m ? c?.absolute ?? "Show absolute values" : c?.relative ?? "Show relative values", D = c?.ariaLabel ?? w;
|
|
294
|
+
}), () => {
|
|
295
|
+
const v = p.getWidget(t);
|
|
296
|
+
v?.isRelative && "originalFormatter" in v && p.setWidget(t, {
|
|
297
|
+
formatter: v.originalFormatter,
|
|
298
|
+
max: v.originalMax
|
|
299
|
+
}), i.current = void 0, p.unregisterTool(t, Te);
|
|
300
|
+
}), e[15] = t, e[16] = S, e[17] = s) : s = e[17];
|
|
301
|
+
let w;
|
|
302
|
+
e[18] !== o || e[19] !== t || e[20] !== S ? (w = [t, S, o], e[18] = o, e[19] = t, e[20] = S, e[21] = w) : w = e[21], H(s, w);
|
|
269
303
|
let L;
|
|
270
|
-
e[
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
304
|
+
e[22] !== t || e[23] !== a ? (L = () => {
|
|
305
|
+
const v = !a;
|
|
306
|
+
if (i.current = void 0, v) {
|
|
307
|
+
const T = p.getWidget(t);
|
|
308
|
+
p.setWidget(t, {
|
|
309
|
+
isRelative: !0,
|
|
310
|
+
originalFormatter: T?.formatter,
|
|
311
|
+
originalMax: T?.max
|
|
312
|
+
});
|
|
313
|
+
} else
|
|
314
|
+
p.setWidget(t, {
|
|
315
|
+
isRelative: !1
|
|
316
|
+
});
|
|
317
|
+
}, e[22] = t, e[23] = a, e[24] = L) : L = e[24];
|
|
318
|
+
const P = L, D = a ? c?.absolute ?? "Show absolute values" : c?.relative ?? "Show relative values", O = c?.ariaLabel ?? D;
|
|
319
|
+
let E;
|
|
320
|
+
e[25] !== b ? (E = b ?? /* @__PURE__ */ x(Ye, {}), e[25] = b, e[26] = E) : E = e[26];
|
|
321
|
+
let R;
|
|
322
|
+
e[27] !== C || e[28] !== P || e[29] !== a || e[30] !== O || e[31] !== E ? (R = /* @__PURE__ */ x(ee, { size: "small", "aria-label": O, onClick: P, sx: se.trigger, "data-active": a, ...C, children: E }), e[27] = C, e[28] = P, e[29] = a, e[30] = O, e[31] = E, e[32] = R) : R = e[32];
|
|
323
|
+
let k;
|
|
324
|
+
return e[33] !== R || e[34] !== D ? (k = /* @__PURE__ */ x(re, { title: D, children: R }), e[33] = R, e[34] = D, e[35] = k) : k = e[35], k;
|
|
279
325
|
}
|
|
280
326
|
function Tt(n) {
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
function _t(n) {
|
|
284
|
-
return n.unregisterTool;
|
|
285
|
-
}
|
|
286
|
-
function vt(n) {
|
|
287
|
-
return n.registerTool;
|
|
327
|
+
const e = n, t = yt(e);
|
|
328
|
+
return It(e, t);
|
|
288
329
|
}
|
|
289
|
-
|
|
290
|
-
return n.getWidget;
|
|
291
|
-
}
|
|
292
|
-
function Ct(n) {
|
|
293
|
-
return n.setWidget;
|
|
294
|
-
}
|
|
295
|
-
const ye = {
|
|
330
|
+
const _e = {
|
|
296
331
|
container: {
|
|
297
332
|
display: "flex",
|
|
298
333
|
alignItems: "center",
|
|
@@ -305,653 +340,978 @@ const ye = {
|
|
|
305
340
|
background: (n) => n.palette.primary.relatedLight
|
|
306
341
|
}
|
|
307
342
|
}
|
|
308
|
-
},
|
|
309
|
-
function
|
|
310
|
-
const e =
|
|
343
|
+
}, he = "zoom-toggle";
|
|
344
|
+
function yn(n) {
|
|
345
|
+
const e = Q(63), {
|
|
311
346
|
id: t,
|
|
312
|
-
defaultZoom:
|
|
313
|
-
defaultZoomStart:
|
|
347
|
+
defaultZoom: r,
|
|
348
|
+
defaultZoomStart: u,
|
|
314
349
|
defaultZoomEnd: c,
|
|
315
|
-
labels:
|
|
316
|
-
Icon:
|
|
317
|
-
ResetIcon:
|
|
318
|
-
IconButtonProps:
|
|
319
|
-
} = n,
|
|
350
|
+
labels: b,
|
|
351
|
+
Icon: C,
|
|
352
|
+
ResetIcon: S,
|
|
353
|
+
IconButtonProps: o
|
|
354
|
+
} = n, i = r === void 0 ? !1 : r, l = u === void 0 ? 0 : u, a = c === void 0 ? 100 : c, d = Ge();
|
|
320
355
|
let m;
|
|
321
|
-
e[0] !==
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
id: ee,
|
|
338
|
-
type: "config",
|
|
339
|
-
order: 20,
|
|
340
|
-
enabled: B,
|
|
341
|
-
fn: (ne, Y) => {
|
|
342
|
-
const Q = ne, se = Q.option, oe = Q.onEvents ?? {}, ce = Y?.enabled ?? !1, X = Y?.start ?? 0, le = Y?.end ?? 100, Se = se?.legend, Oe = Se?.show !== !1 && Se !== void 0, we = parseInt(s?.spacing?.(4) ?? "32"), De = Xe(ce, {
|
|
343
|
-
start: X,
|
|
344
|
-
end: le
|
|
345
|
-
}, {
|
|
346
|
-
inside: !0,
|
|
347
|
-
xSlider: !0,
|
|
348
|
-
ySlider: !1,
|
|
349
|
-
bottomOffset: Oe ? 28 : 0
|
|
350
|
-
}, s), fe = se?.grid, Te = typeof fe?.bottom == "number" ? fe.bottom : parseInt(fe?.bottom ?? "24"), We = ce ? Te + we + 8 : Te, _e = {
|
|
351
|
-
...oe
|
|
352
|
-
};
|
|
353
|
-
delete _e.dataZoom;
|
|
354
|
-
const ze = ce ? {
|
|
355
|
-
...oe,
|
|
356
|
-
dataZoom: A
|
|
357
|
-
} : _e;
|
|
358
|
-
return {
|
|
359
|
-
...Q,
|
|
360
|
-
option: {
|
|
361
|
-
...se,
|
|
362
|
-
...De,
|
|
363
|
-
grid: {
|
|
364
|
-
...fe,
|
|
365
|
-
bottom: We
|
|
366
|
-
}
|
|
367
|
-
},
|
|
368
|
-
onEvents: ze
|
|
369
|
-
};
|
|
370
|
-
},
|
|
371
|
-
config: {
|
|
372
|
-
enabled: B,
|
|
373
|
-
start: U,
|
|
374
|
-
end: H
|
|
375
|
-
}
|
|
376
|
-
}), () => o(t, ee);
|
|
377
|
-
}, D = [d, r, S, _, A, t, T, s, o], e[6] = d, e[7] = r, e[8] = S, e[9] = _, e[10] = A, e[11] = t, e[12] = T, e[13] = s, e[14] = o, e[15] = w, e[16] = D) : (w = e[15], D = e[16]), K(w, D);
|
|
378
|
-
let L;
|
|
379
|
-
e[17] !== t || e[18] !== h || e[19] !== i || e[20] !== l || e[21] !== P || e[22] !== O ? (L = () => {
|
|
380
|
-
const V = !l;
|
|
381
|
-
h(t, ee, V), i(t, ee, {
|
|
382
|
-
enabled: V,
|
|
383
|
-
start: V ? O : 0,
|
|
384
|
-
end: V ? P : 100
|
|
356
|
+
e[0] !== i || e[1] !== a || e[2] !== l ? (m = (y) => ({
|
|
357
|
+
zoom: y?.zoom ?? i,
|
|
358
|
+
zoomStart: y?.zoomStart ?? l,
|
|
359
|
+
zoomEnd: y?.zoomEnd ?? a
|
|
360
|
+
}), e[0] = i, e[1] = a, e[2] = l, e[3] = m) : m = e[3];
|
|
361
|
+
const {
|
|
362
|
+
zoom: f,
|
|
363
|
+
zoomStart: h,
|
|
364
|
+
zoomEnd: g
|
|
365
|
+
} = ne(t, m);
|
|
366
|
+
let I, s;
|
|
367
|
+
e[4] !== i || e[5] !== a || e[6] !== l || e[7] !== t ? (I = () => {
|
|
368
|
+
p.getWidget(t)?.zoom === void 0 && p.setWidget(t, {
|
|
369
|
+
zoom: i,
|
|
370
|
+
zoomStart: l,
|
|
371
|
+
zoomEnd: a
|
|
385
372
|
});
|
|
386
|
-
},
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
373
|
+
}, s = [t, i, l, a], e[4] = i, e[5] = a, e[6] = l, e[7] = t, e[8] = I, e[9] = s) : (I = e[8], s = e[9]), H(I, s);
|
|
374
|
+
let w;
|
|
375
|
+
e[10] !== t ? (w = (y) => {
|
|
376
|
+
const B = y, F = B.start ?? B.batch?.[0]?.start, V = B.end ?? B.batch?.[0]?.end;
|
|
377
|
+
F !== void 0 && V !== void 0 && p.setWidget(t, {
|
|
378
|
+
zoom: !0,
|
|
379
|
+
zoomStart: F,
|
|
380
|
+
zoomEnd: V
|
|
394
381
|
});
|
|
395
|
-
}, e[
|
|
396
|
-
const
|
|
382
|
+
}, e[10] = t, e[11] = w) : w = e[11];
|
|
383
|
+
const L = w;
|
|
384
|
+
let P;
|
|
385
|
+
e[12] !== i || e[13] !== L || e[14] !== t || e[15] !== d ? (P = () => (p.registerTool(t, {
|
|
386
|
+
id: he,
|
|
387
|
+
type: "config",
|
|
388
|
+
order: 20,
|
|
389
|
+
enabled: i,
|
|
390
|
+
fn: (y) => {
|
|
391
|
+
const B = y, F = B.option, V = B.onEvents ?? {}, X = p.getWidget(t), q = X?.zoomStart ?? 0, te = X?.zoomEnd ?? 100, Y = F?.legend, J = Y?.show !== !1 && Y !== void 0, ce = parseInt(d?.spacing?.(4) ?? "32"), me = tt({
|
|
392
|
+
start: q,
|
|
393
|
+
end: te
|
|
394
|
+
}, {
|
|
395
|
+
inside: !0,
|
|
396
|
+
xSlider: !0,
|
|
397
|
+
ySlider: !1,
|
|
398
|
+
bottomOffset: J ? 28 : 0
|
|
399
|
+
}, d), ae = F?.grid, Oe = (typeof ae?.bottom == "number" ? ae.bottom : parseInt(ae?.bottom ?? "24")) + ce + 8, Me = {
|
|
400
|
+
...V,
|
|
401
|
+
dataZoom: L
|
|
402
|
+
};
|
|
403
|
+
return {
|
|
404
|
+
...B,
|
|
405
|
+
option: {
|
|
406
|
+
...F,
|
|
407
|
+
...me,
|
|
408
|
+
grid: {
|
|
409
|
+
...ae,
|
|
410
|
+
bottom: Oe
|
|
411
|
+
}
|
|
412
|
+
},
|
|
413
|
+
onEvents: Me
|
|
414
|
+
};
|
|
415
|
+
}
|
|
416
|
+
}), () => p.unregisterTool(t, he)), e[12] = i, e[13] = L, e[14] = t, e[15] = d, e[16] = P) : P = e[16];
|
|
417
|
+
let D;
|
|
418
|
+
e[17] !== i || e[18] !== a || e[19] !== l || e[20] !== L || e[21] !== t || e[22] !== d ? (D = [t, d, L, i, l, a], e[17] = i, e[18] = a, e[19] = l, e[20] = L, e[21] = t, e[22] = d, e[23] = D) : D = e[23], H(P, D);
|
|
419
|
+
let O, E;
|
|
420
|
+
e[24] !== t || e[25] !== f ? (O = () => {
|
|
421
|
+
p.setToolEnabled(t, he, f);
|
|
422
|
+
}, E = [t, f], e[24] = t, e[25] = f, e[26] = O, e[27] = E) : (O = e[26], E = e[27]), H(O, E);
|
|
423
|
+
let R;
|
|
424
|
+
e[28] !== t ? (R = () => {
|
|
425
|
+
p.triggerToolPipeline(t);
|
|
426
|
+
}, e[28] = t, e[29] = R) : R = e[29];
|
|
427
|
+
let k;
|
|
428
|
+
e[30] !== t || e[31] !== g || e[32] !== h ? (k = [t, h, g], e[30] = t, e[31] = g, e[32] = h, e[33] = k) : k = e[33], H(R, k);
|
|
429
|
+
let v;
|
|
430
|
+
e[34] !== t || e[35] !== f || e[36] !== g || e[37] !== h ? (v = () => {
|
|
431
|
+
const y = !f;
|
|
432
|
+
p.setWidget(t, {
|
|
433
|
+
zoom: y,
|
|
434
|
+
zoomStart: y ? h : 0,
|
|
435
|
+
zoomEnd: y ? g : 100
|
|
436
|
+
});
|
|
437
|
+
}, e[34] = t, e[35] = f, e[36] = g, e[37] = h, e[38] = v) : v = e[38];
|
|
438
|
+
const T = v;
|
|
439
|
+
let _;
|
|
440
|
+
e[39] !== a || e[40] !== l || e[41] !== t ? (_ = () => {
|
|
441
|
+
p.setWidget(t, {
|
|
442
|
+
zoom: !0,
|
|
443
|
+
zoomStart: l,
|
|
444
|
+
zoomEnd: a
|
|
445
|
+
});
|
|
446
|
+
}, e[39] = a, e[40] = l, e[41] = t, e[42] = _) : _ = e[42];
|
|
447
|
+
const z = _, M = b?.enable ?? "Enable zoom", A = b?.disable ?? "Disable zoom", W = b?.reset ?? "Reset zoom", U = f ? A : M, j = b?.ariaLabel ?? U;
|
|
448
|
+
let $;
|
|
449
|
+
e[43] !== C ? ($ = C ?? /* @__PURE__ */ x(qe, {}), e[43] = C, e[44] = $) : $ = e[44];
|
|
397
450
|
let G;
|
|
398
|
-
e[
|
|
399
|
-
let F;
|
|
400
|
-
e[32] !== b || e[33] !== I || e[34] !== j || e[35] !== G || e[36] !== l ? (F = /* @__PURE__ */ g(J, { size: "small", "aria-label": j, onClick: I, sx: ye.trigger, "data-active": l, ...b, children: G }), e[32] = b, e[33] = I, e[34] = j, e[35] = G, e[36] = l, e[37] = F) : F = e[37];
|
|
451
|
+
e[45] !== o || e[46] !== T || e[47] !== j || e[48] !== $ || e[49] !== f ? (G = /* @__PURE__ */ x(ee, { size: "small", "aria-label": j, onClick: T, sx: _e.trigger, "data-active": f, ...o, children: $ }), e[45] = o, e[46] = T, e[47] = j, e[48] = $, e[49] = f, e[50] = G) : G = e[50];
|
|
401
452
|
let Z;
|
|
402
|
-
e[
|
|
403
|
-
let M;
|
|
404
|
-
e[41] !== b || e[42] !== f || e[43] !== z || e[44] !== x || e[45] !== l ? (M = l && /* @__PURE__ */ g(ie, { title: x, children: /* @__PURE__ */ g(J, { size: "small", "aria-label": x, onClick: z, ...b, children: f ?? /* @__PURE__ */ g(Ye, {}) }) }), e[41] = b, e[42] = f, e[43] = z, e[44] = x, e[45] = l, e[46] = M) : M = e[46];
|
|
453
|
+
e[51] !== G || e[52] !== U ? (Z = /* @__PURE__ */ x(re, { title: U, children: G }), e[51] = G, e[52] = U, e[53] = Z) : Z = e[53];
|
|
405
454
|
let N;
|
|
406
|
-
|
|
455
|
+
e[54] !== o || e[55] !== S || e[56] !== z || e[57] !== W || e[58] !== f ? (N = f && /* @__PURE__ */ x(re, { title: W, children: /* @__PURE__ */ x(ee, { size: "small", "aria-label": W, onClick: z, ...o, children: S ?? /* @__PURE__ */ x(Ke, {}) }) }), e[54] = o, e[55] = S, e[56] = z, e[57] = W, e[58] = f, e[59] = N) : N = e[59];
|
|
456
|
+
let K;
|
|
457
|
+
return e[60] !== Z || e[61] !== N ? (K = /* @__PURE__ */ oe(De, { sx: _e.container, children: [
|
|
407
458
|
Z,
|
|
408
|
-
|
|
409
|
-
] }), e[
|
|
410
|
-
}
|
|
411
|
-
function yt(n) {
|
|
412
|
-
return n.id === ee;
|
|
413
|
-
}
|
|
414
|
-
function kt(n) {
|
|
415
|
-
return n.id === ee;
|
|
416
|
-
}
|
|
417
|
-
function Et(n) {
|
|
418
|
-
return n.updateToolConfig;
|
|
419
|
-
}
|
|
420
|
-
function Lt(n) {
|
|
421
|
-
return n.setToolEnabled;
|
|
422
|
-
}
|
|
423
|
-
function xt(n) {
|
|
424
|
-
return n.unregisterTool;
|
|
425
|
-
}
|
|
426
|
-
function $t(n) {
|
|
427
|
-
return n.registerTool;
|
|
428
|
-
}
|
|
429
|
-
function Ot(n) {
|
|
430
|
-
return n.getWidget;
|
|
459
|
+
N
|
|
460
|
+
] }), e[60] = Z, e[61] = N, e[62] = K) : K = e[62], K;
|
|
431
461
|
}
|
|
432
|
-
const
|
|
433
|
-
const n =
|
|
462
|
+
const _t = () => {
|
|
463
|
+
const n = Q(1);
|
|
434
464
|
let e;
|
|
435
|
-
return n[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */
|
|
436
|
-
},
|
|
437
|
-
function
|
|
438
|
-
const e =
|
|
465
|
+
return n[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ x("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ x("path", { d: "M4 20V8H8V20H4ZM9 20V13H13V20H9ZM16 20V4H20V20H16Z", fill: "currentColor" }) }), n[0] = e) : e = n[0], e;
|
|
466
|
+
}, pe = "stack-toggle";
|
|
467
|
+
function In(n) {
|
|
468
|
+
const e = Q(35), {
|
|
439
469
|
id: t,
|
|
440
|
-
defaultIsStacked:
|
|
441
|
-
labels:
|
|
470
|
+
defaultIsStacked: r,
|
|
471
|
+
labels: u,
|
|
442
472
|
Icon: c,
|
|
443
|
-
IconButtonProps:
|
|
444
|
-
} = n,
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
let
|
|
449
|
-
e[2] !== t ? (T = (k) => k.getWidget(t)?.option, e[2] = t, e[3] = T) : T = e[3];
|
|
450
|
-
const o = $(te(T));
|
|
451
|
-
let h;
|
|
473
|
+
IconButtonProps: b
|
|
474
|
+
} = n, C = r === void 0 ? !1 : r, {
|
|
475
|
+
storeIsStacked: S,
|
|
476
|
+
option: o
|
|
477
|
+
} = ne(t, kt);
|
|
478
|
+
let i;
|
|
452
479
|
e: {
|
|
453
480
|
if (!o) {
|
|
454
|
-
let
|
|
455
|
-
e[
|
|
481
|
+
let A;
|
|
482
|
+
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = {
|
|
456
483
|
hasMultiSeries: !1,
|
|
457
484
|
hasStackInSeries: !1
|
|
458
|
-
}, e[
|
|
485
|
+
}, e[0] = A) : A = e[0], i = A;
|
|
459
486
|
break e;
|
|
460
487
|
}
|
|
461
|
-
let
|
|
462
|
-
e[
|
|
463
|
-
const
|
|
464
|
-
let
|
|
465
|
-
e[
|
|
466
|
-
let
|
|
467
|
-
e[
|
|
468
|
-
hasMultiSeries:
|
|
469
|
-
hasStackInSeries:
|
|
470
|
-
}, e[
|
|
488
|
+
let v;
|
|
489
|
+
e[1] !== o.series ? (v = Array.isArray(o.series) ? o.series : [o.series], e[1] = o.series, e[2] = v) : v = e[2];
|
|
490
|
+
const T = v, _ = T.length > 1;
|
|
491
|
+
let z;
|
|
492
|
+
e[3] !== T ? (z = T.some(Lt), e[3] = T, e[4] = z) : z = e[4];
|
|
493
|
+
let M;
|
|
494
|
+
e[5] !== _ || e[6] !== z ? (M = {
|
|
495
|
+
hasMultiSeries: _,
|
|
496
|
+
hasStackInSeries: z
|
|
497
|
+
}, e[5] = _, e[6] = z, e[7] = M) : M = e[7], i = M;
|
|
471
498
|
}
|
|
472
499
|
const {
|
|
473
|
-
hasMultiSeries:
|
|
474
|
-
hasStackInSeries:
|
|
475
|
-
} =
|
|
476
|
-
let
|
|
477
|
-
e[
|
|
478
|
-
id:
|
|
500
|
+
hasMultiSeries: l,
|
|
501
|
+
hasStackInSeries: a
|
|
502
|
+
} = i, d = a || C, m = S ?? d;
|
|
503
|
+
let f, h;
|
|
504
|
+
e[8] !== t ? (f = () => (p.registerTool(t, {
|
|
505
|
+
id: pe,
|
|
479
506
|
type: "config",
|
|
480
507
|
order: 10,
|
|
481
|
-
enabled:
|
|
482
|
-
fn:
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
508
|
+
enabled: !1,
|
|
509
|
+
fn: Et
|
|
510
|
+
}), () => p.unregisterTool(t, pe)), h = [t], e[8] = t, e[9] = f, e[10] = h) : (f = e[9], h = e[10]), H(f, h);
|
|
511
|
+
let g, I;
|
|
512
|
+
e[11] !== l || e[12] !== t || e[13] !== m ? (g = () => {
|
|
513
|
+
p.setToolEnabled(t, pe, m && l);
|
|
514
|
+
}, I = [t, m, l], e[11] = l, e[12] = t, e[13] = m, e[14] = g, e[15] = I) : (g = e[14], I = e[15]), H(g, I);
|
|
515
|
+
let s, w;
|
|
516
|
+
e[16] !== d || e[17] !== t || e[18] !== S ? (s = () => {
|
|
517
|
+
S === void 0 && p.setWidget(t, {
|
|
518
|
+
isStacked: d
|
|
491
519
|
});
|
|
492
|
-
},
|
|
493
|
-
let w, D;
|
|
494
|
-
e[26] !== v || e[27] !== t || e[28] !== f || e[29] !== _ ? (D = () => {
|
|
495
|
-
_ === void 0 && f(t, {
|
|
496
|
-
isStacked: v
|
|
497
|
-
});
|
|
498
|
-
}, w = [v, t, f, _], e[26] = v, e[27] = t, e[28] = f, e[29] = _, e[30] = w, e[31] = D) : (w = e[30], D = e[31]), K(D, w);
|
|
520
|
+
}, w = [d, t, S], e[16] = d, e[17] = t, e[18] = S, e[19] = s, e[20] = w) : (s = e[19], w = e[20]), H(s, w);
|
|
499
521
|
let L;
|
|
500
|
-
e[
|
|
501
|
-
|
|
502
|
-
isStacked: !
|
|
522
|
+
e[21] !== t || e[22] !== m ? (L = () => {
|
|
523
|
+
p.setWidget(t, {
|
|
524
|
+
isStacked: !m
|
|
503
525
|
});
|
|
504
|
-
}, e[
|
|
505
|
-
const
|
|
506
|
-
if (!
|
|
526
|
+
}, e[21] = t, e[22] = m, e[23] = L) : L = e[23];
|
|
527
|
+
const P = L, D = m ? u?.unstacked ?? "Disable stacking" : u?.stacked ?? "Enable stacking";
|
|
528
|
+
if (!l)
|
|
507
529
|
return null;
|
|
508
|
-
const
|
|
530
|
+
const O = u?.ariaLabel ?? D;
|
|
531
|
+
let E;
|
|
532
|
+
e[24] !== c ? (E = c ?? /* @__PURE__ */ x(_t, {}), e[24] = c, e[25] = E) : E = e[25];
|
|
509
533
|
let R;
|
|
510
|
-
e[
|
|
511
|
-
let
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
const t = n, a = t.option;
|
|
518
|
-
if (!a)
|
|
534
|
+
e[26] !== b || e[27] !== P || e[28] !== m || e[29] !== O || e[30] !== E ? (R = /* @__PURE__ */ x(ee, { size: "small", "aria-label": O, onClick: P, sx: se.trigger, "data-active": m, ...b, children: E }), e[26] = b, e[27] = P, e[28] = m, e[29] = O, e[30] = E, e[31] = R) : R = e[31];
|
|
535
|
+
let k;
|
|
536
|
+
return e[32] !== R || e[33] !== D ? (k = /* @__PURE__ */ x(re, { title: D, children: R }), e[32] = R, e[33] = D, e[34] = k) : k = e[34], k;
|
|
537
|
+
}
|
|
538
|
+
function Et(n) {
|
|
539
|
+
const e = n, t = e.option;
|
|
540
|
+
if (!t)
|
|
519
541
|
return n;
|
|
520
|
-
const
|
|
521
|
-
const f = E?.stack;
|
|
522
|
-
return {
|
|
523
|
-
...E,
|
|
524
|
-
...et(p, typeof f == "string" ? f : tt)
|
|
525
|
-
};
|
|
526
|
-
});
|
|
542
|
+
const u = (Array.isArray(t.series) ? t.series : [t.series]).map(Ct);
|
|
527
543
|
return {
|
|
528
|
-
...
|
|
544
|
+
...e,
|
|
529
545
|
option: {
|
|
530
|
-
...
|
|
546
|
+
...t,
|
|
531
547
|
series: u
|
|
532
548
|
}
|
|
533
549
|
};
|
|
534
550
|
}
|
|
535
|
-
function
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
}
|
|
541
|
-
function Pt(n) {
|
|
542
|
-
return n.setToolEnabled;
|
|
543
|
-
}
|
|
544
|
-
function At(n) {
|
|
545
|
-
return n.unregisterTool;
|
|
551
|
+
function Ct(n) {
|
|
552
|
+
const e = n?.stack;
|
|
553
|
+
return {
|
|
554
|
+
...n,
|
|
555
|
+
...nt(typeof e == "string" ? e : ot)
|
|
556
|
+
};
|
|
546
557
|
}
|
|
547
|
-
function
|
|
548
|
-
return n
|
|
558
|
+
function Lt(n) {
|
|
559
|
+
return n?.stack;
|
|
549
560
|
}
|
|
550
|
-
function
|
|
551
|
-
return
|
|
561
|
+
function kt(n) {
|
|
562
|
+
return {
|
|
563
|
+
storeIsStacked: n?.isStacked,
|
|
564
|
+
option: n?.option
|
|
565
|
+
};
|
|
552
566
|
}
|
|
553
|
-
const
|
|
554
|
-
function
|
|
555
|
-
const e =
|
|
567
|
+
const de = "lock-selection";
|
|
568
|
+
function Tn(n) {
|
|
569
|
+
const e = Q(24), {
|
|
556
570
|
id: t,
|
|
557
|
-
selectedItems:
|
|
558
|
-
order:
|
|
571
|
+
selectedItems: r,
|
|
572
|
+
order: u,
|
|
559
573
|
labels: c,
|
|
560
|
-
Icon:
|
|
561
|
-
IconButtonProps:
|
|
562
|
-
} = n,
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
enabled: o,
|
|
574
|
-
fn: Mt,
|
|
575
|
-
config: {
|
|
576
|
-
lockedItems: i
|
|
574
|
+
Icon: b,
|
|
575
|
+
IconButtonProps: C
|
|
576
|
+
} = n, S = u === void 0 ? 30 : u, {
|
|
577
|
+
storeIsLocked: o
|
|
578
|
+
} = ne(t, wt), i = o ?? !1;
|
|
579
|
+
let l, a;
|
|
580
|
+
e[0] !== t || e[1] !== S ? (l = () => (p.registerTool(t, {
|
|
581
|
+
id: de,
|
|
582
|
+
order: S,
|
|
583
|
+
enabled: !1,
|
|
584
|
+
fn: (P) => {
|
|
585
|
+
const O = p.getWidget(t)?.lockedItems ?? [];
|
|
586
|
+
return O.length === 0 ? P : Pt(P, O);
|
|
577
587
|
}
|
|
578
|
-
}), () =>
|
|
579
|
-
let
|
|
580
|
-
e[
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
+
}), () => p.unregisterTool(t, de)), a = [t, S], e[0] = t, e[1] = S, e[2] = l, e[3] = a) : (l = e[2], a = e[3]), H(l, a);
|
|
589
|
+
let d, m;
|
|
590
|
+
e[4] !== t || e[5] !== i || e[6] !== r.length ? (d = () => {
|
|
591
|
+
if (i && r.length === 0) {
|
|
592
|
+
p.setWidget(t, {
|
|
593
|
+
isLocked: !1,
|
|
594
|
+
lockedItems: []
|
|
595
|
+
});
|
|
596
|
+
return;
|
|
597
|
+
}
|
|
598
|
+
p.setToolEnabled(t, de, i);
|
|
599
|
+
}, m = [t, i, r.length], e[4] = t, e[5] = i, e[6] = r.length, e[7] = d, e[8] = m) : (d = e[7], m = e[8]), H(d, m);
|
|
600
|
+
let f;
|
|
601
|
+
e[9] !== t || e[10] !== i || e[11] !== r ? (f = () => {
|
|
602
|
+
i ? p.setWidget(t, {
|
|
588
603
|
isLocked: !1,
|
|
589
604
|
lockedItems: []
|
|
590
|
-
}) :
|
|
605
|
+
}) : p.setWidget(t, {
|
|
591
606
|
isLocked: !0,
|
|
592
|
-
lockedItems:
|
|
607
|
+
lockedItems: r
|
|
593
608
|
});
|
|
594
|
-
}, e[
|
|
595
|
-
const
|
|
596
|
-
if (
|
|
609
|
+
}, e[9] = t, e[10] = i, e[11] = r, e[12] = f) : f = e[12];
|
|
610
|
+
const h = f;
|
|
611
|
+
if (r.length === 0)
|
|
597
612
|
return null;
|
|
598
|
-
const
|
|
599
|
-
let
|
|
600
|
-
e[
|
|
613
|
+
const g = i ? c?.unlock ?? "Unlock selection" : c?.lock ?? "Lock selection", I = c?.ariaLabel ?? g;
|
|
614
|
+
let s;
|
|
615
|
+
e[13] !== b ? (s = b ?? /* @__PURE__ */ x(Je, { fontSize: "small" }), e[13] = b, e[14] = s) : s = e[14];
|
|
616
|
+
let w;
|
|
617
|
+
e[15] !== C || e[16] !== I || e[17] !== h || e[18] !== i || e[19] !== s ? (w = /* @__PURE__ */ x(ee, { size: "small", "aria-label": I, onClick: h, sx: se.trigger, "data-active": i, ...C, children: s }), e[15] = C, e[16] = I, e[17] = h, e[18] = i, e[19] = s, e[20] = w) : w = e[20];
|
|
601
618
|
let L;
|
|
602
|
-
|
|
603
|
-
let I;
|
|
604
|
-
return e[33] !== L || e[34] !== A ? (I = /* @__PURE__ */ g(ie, { title: A, children: L }), e[33] = L, e[34] = A, e[35] = I) : I = e[35], I;
|
|
605
|
-
}
|
|
606
|
-
function Mt(n, e) {
|
|
607
|
-
const t = e?.lockedItems || [];
|
|
608
|
-
return t.length === 0 ? n : Nt(n, t);
|
|
609
|
-
}
|
|
610
|
-
function Ft(n) {
|
|
611
|
-
return n.updateToolConfig;
|
|
612
|
-
}
|
|
613
|
-
function Zt(n) {
|
|
614
|
-
return n.setToolEnabled;
|
|
615
|
-
}
|
|
616
|
-
function Vt(n) {
|
|
617
|
-
return n.unregisterTool;
|
|
619
|
+
return e[21] !== w || e[22] !== g ? (L = /* @__PURE__ */ x(re, { title: g, children: w }), e[21] = w, e[22] = g, e[23] = L) : L = e[23], L;
|
|
618
620
|
}
|
|
619
|
-
function
|
|
620
|
-
return
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
return n.setWidget;
|
|
621
|
+
function wt(n) {
|
|
622
|
+
return {
|
|
623
|
+
storeIsLocked: n?.isLocked
|
|
624
|
+
};
|
|
624
625
|
}
|
|
625
|
-
function
|
|
626
|
-
return n.map((t) => t.filter((
|
|
627
|
-
const
|
|
628
|
-
return typeof
|
|
626
|
+
function Pt(n, e) {
|
|
627
|
+
return n.map((t) => t.filter((r) => {
|
|
628
|
+
const u = r.name;
|
|
629
|
+
return typeof u == "string" && e.includes(u);
|
|
629
630
|
}));
|
|
630
631
|
}
|
|
631
|
-
const
|
|
632
|
-
function
|
|
633
|
-
const e =
|
|
632
|
+
const be = "searcher", Rt = 300;
|
|
633
|
+
function _n(n) {
|
|
634
|
+
const e = Q(39), {
|
|
634
635
|
id: t,
|
|
635
|
-
filterFn:
|
|
636
|
-
order:
|
|
636
|
+
filterFn: r,
|
|
637
|
+
order: u,
|
|
637
638
|
labels: c,
|
|
638
|
-
TextFieldProps:
|
|
639
|
-
ClearIcon:
|
|
640
|
-
debounceDelay:
|
|
641
|
-
} = n,
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
let
|
|
646
|
-
e[
|
|
647
|
-
|
|
648
|
-
searchText:
|
|
639
|
+
TextFieldProps: b,
|
|
640
|
+
ClearIcon: C,
|
|
641
|
+
debounceDelay: S
|
|
642
|
+
} = n, o = u === void 0 ? 20 : u, i = S === void 0 ? Rt : S, l = le(null), a = le(null), {
|
|
643
|
+
enabled: d,
|
|
644
|
+
searchText: m
|
|
645
|
+
} = ne(t, Dt), f = le(d), h = r ?? zt;
|
|
646
|
+
let g;
|
|
647
|
+
e[0] !== t ? (g = (Z) => {
|
|
648
|
+
p.setWidget(t, {
|
|
649
|
+
searchText: Z
|
|
649
650
|
});
|
|
650
|
-
}, e[
|
|
651
|
-
const
|
|
652
|
-
let
|
|
653
|
-
e[
|
|
654
|
-
id:
|
|
655
|
-
order:
|
|
656
|
-
enabled:
|
|
657
|
-
fn: async (
|
|
658
|
-
const
|
|
659
|
-
return
|
|
660
|
-
},
|
|
661
|
-
config: {
|
|
662
|
-
searchText: o
|
|
651
|
+
}, e[0] = t, e[1] = g) : g = e[1];
|
|
652
|
+
const I = g;
|
|
653
|
+
let s, w;
|
|
654
|
+
e[2] !== h || e[3] !== t || e[4] !== o ? (s = () => (p.registerTool(t, {
|
|
655
|
+
id: be,
|
|
656
|
+
order: o,
|
|
657
|
+
enabled: !1,
|
|
658
|
+
fn: async (Z) => {
|
|
659
|
+
const K = p.getWidget(t)?.searchText ?? "";
|
|
660
|
+
return h(Z, K);
|
|
663
661
|
},
|
|
664
|
-
disables: [
|
|
665
|
-
}), () =>
|
|
662
|
+
disables: [de]
|
|
663
|
+
}), () => p.unregisterTool(t, be)), w = [t, o, h], e[2] = h, e[3] = t, e[4] = o, e[5] = s, e[6] = w) : (s = e[5], w = e[6]), H(s, w);
|
|
664
|
+
let L, P;
|
|
665
|
+
e[7] !== d || e[8] !== t ? (L = () => {
|
|
666
|
+
p.setToolEnabled(t, be, d);
|
|
667
|
+
}, P = [t, d], e[7] = d, e[8] = t, e[9] = L, e[10] = P) : (L = e[9], P = e[10]), H(L, P);
|
|
666
668
|
let D;
|
|
667
|
-
e[
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
e[
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
e[
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
e[
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
}), S.current && S.current.focus();
|
|
694
|
-
}, e[26] = t, e[27] = y, e[28] = O, e[29] = k) : k = e[29];
|
|
695
|
-
const j = k;
|
|
696
|
-
if (!T)
|
|
669
|
+
e[11] !== i || e[12] !== t ? (D = () => {
|
|
670
|
+
a.current && clearTimeout(a.current), a.current = setTimeout(() => {
|
|
671
|
+
p.triggerToolPipeline(t);
|
|
672
|
+
}, i);
|
|
673
|
+
}, e[11] = i, e[12] = t, e[13] = D) : D = e[13];
|
|
674
|
+
const O = D;
|
|
675
|
+
let E, R;
|
|
676
|
+
e[14] !== d ? (R = () => {
|
|
677
|
+
d && !f.current && l.current && l.current.focus(), f.current = d;
|
|
678
|
+
}, E = [d], e[14] = d, e[15] = E, e[16] = R) : (E = e[15], R = e[16]), H(R, E);
|
|
679
|
+
let k, v;
|
|
680
|
+
e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = () => () => {
|
|
681
|
+
a.current && clearTimeout(a.current);
|
|
682
|
+
}, v = [], e[17] = k, e[18] = v) : (k = e[17], v = e[18]), H(k, v);
|
|
683
|
+
let T;
|
|
684
|
+
e[19] !== O || e[20] !== I ? (T = (Z) => {
|
|
685
|
+
const N = Z.target.value;
|
|
686
|
+
I(N), O();
|
|
687
|
+
}, e[19] = O, e[20] = I, e[21] = T) : T = e[21];
|
|
688
|
+
const _ = T;
|
|
689
|
+
let z;
|
|
690
|
+
e[22] !== t || e[23] !== I ? (z = () => {
|
|
691
|
+
I(""), p.triggerToolPipeline(t), l.current && l.current.focus();
|
|
692
|
+
}, e[22] = t, e[23] = I, e[24] = z) : z = e[24];
|
|
693
|
+
const M = z;
|
|
694
|
+
if (!d)
|
|
697
695
|
return null;
|
|
698
|
-
const
|
|
699
|
-
let
|
|
700
|
-
e[
|
|
701
|
-
let
|
|
702
|
-
e[
|
|
703
|
-
let
|
|
704
|
-
e[
|
|
705
|
-
startAdornment:
|
|
706
|
-
endAdornment:
|
|
707
|
-
}, e[
|
|
708
|
-
let
|
|
709
|
-
return e[
|
|
710
|
-
}
|
|
711
|
-
function Ut(n) {
|
|
712
|
-
return n.updateToolConfig;
|
|
713
|
-
}
|
|
714
|
-
function Kt(n) {
|
|
715
|
-
return n.unregisterTool;
|
|
716
|
-
}
|
|
717
|
-
function Yt(n) {
|
|
718
|
-
return n.registerTool;
|
|
696
|
+
const A = c?.placeholder ?? "Search...", W = c?.clearAriaLabel ?? "Clear search";
|
|
697
|
+
let U;
|
|
698
|
+
e[25] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (U = /* @__PURE__ */ x(xe, { position: "start", children: /* @__PURE__ */ x(ze, {}) }), e[25] = U) : U = e[25];
|
|
699
|
+
let j;
|
|
700
|
+
e[26] !== C || e[27] !== W || e[28] !== M || e[29] !== m ? (j = m ? /* @__PURE__ */ x(xe, { position: "end", children: /* @__PURE__ */ x(ee, { size: "small", "aria-label": W, onClick: M, edge: "end", children: C ?? /* @__PURE__ */ x(Qe, { fontSize: "small" }) }) }) : null, e[26] = C, e[27] = W, e[28] = M, e[29] = m, e[30] = j) : j = e[30];
|
|
701
|
+
let $;
|
|
702
|
+
e[31] !== j ? ($ = {
|
|
703
|
+
startAdornment: U,
|
|
704
|
+
endAdornment: j
|
|
705
|
+
}, e[31] = j, e[32] = $) : $ = e[32];
|
|
706
|
+
let G;
|
|
707
|
+
return e[33] !== b || e[34] !== _ || e[35] !== A || e[36] !== m || e[37] !== $ ? (G = /* @__PURE__ */ x(Ze, { inputRef: l, size: "small", fullWidth: !0, variant: "filled", placeholder: A, value: m, onChange: _, InputProps: $, ...b }), e[33] = b, e[34] = _, e[35] = A, e[36] = m, e[37] = $, e[38] = G) : G = e[38], G;
|
|
719
708
|
}
|
|
720
|
-
function
|
|
721
|
-
return
|
|
709
|
+
function Dt(n) {
|
|
710
|
+
return {
|
|
711
|
+
enabled: n?.isSearchEnabled ?? !1,
|
|
712
|
+
searchText: n?.searchText ?? ""
|
|
713
|
+
};
|
|
722
714
|
}
|
|
723
|
-
const
|
|
715
|
+
const zt = (n, e) => {
|
|
724
716
|
if (!e.trim()) return Promise.resolve(n);
|
|
725
717
|
const t = e.toLowerCase();
|
|
726
|
-
return Promise.resolve(n.map((
|
|
718
|
+
return Promise.resolve(n.map((r) => r.filter((u) => Object.values(u).some((c) => String(c).toLowerCase().includes(t)))));
|
|
727
719
|
};
|
|
728
|
-
function
|
|
729
|
-
const e =
|
|
720
|
+
function En(n) {
|
|
721
|
+
const e = Q(18), {
|
|
730
722
|
id: t,
|
|
731
|
-
defaultEnabled:
|
|
732
|
-
labels:
|
|
723
|
+
defaultEnabled: r,
|
|
724
|
+
labels: u,
|
|
733
725
|
Icon: c,
|
|
734
|
-
IconButtonProps:
|
|
735
|
-
} = n,
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
isSearchEnabled: E
|
|
726
|
+
IconButtonProps: b
|
|
727
|
+
} = n, C = r === void 0 ? !1 : r, {
|
|
728
|
+
storeIsEnabled: S
|
|
729
|
+
} = ne(t, Ot), o = S ?? C;
|
|
730
|
+
let i, l;
|
|
731
|
+
e[0] !== C || e[1] !== t ? (i = () => {
|
|
732
|
+
p.getWidget(t)?.isSearchEnabled === void 0 && p.setWidget(t, {
|
|
733
|
+
isSearchEnabled: C
|
|
743
734
|
});
|
|
744
|
-
},
|
|
745
|
-
let
|
|
746
|
-
e[
|
|
747
|
-
|
|
748
|
-
isSearchEnabled: !
|
|
735
|
+
}, l = [C, t], e[0] = C, e[1] = t, e[2] = i, e[3] = l) : (i = e[2], l = e[3]), H(i, l);
|
|
736
|
+
let a;
|
|
737
|
+
e[4] !== t || e[5] !== o ? (a = () => {
|
|
738
|
+
p.setWidget(t, {
|
|
739
|
+
isSearchEnabled: !o
|
|
749
740
|
});
|
|
750
|
-
}, e[
|
|
751
|
-
const
|
|
752
|
-
let
|
|
753
|
-
e[
|
|
754
|
-
let
|
|
755
|
-
e[
|
|
756
|
-
let
|
|
757
|
-
return e[
|
|
758
|
-
}
|
|
759
|
-
function Qt(n) {
|
|
760
|
-
return n.getWidget;
|
|
741
|
+
}, e[4] = t, e[5] = o, e[6] = a) : a = e[6];
|
|
742
|
+
const d = a, m = o ? u?.disable ?? "Disable search" : u?.enable ?? "Enable search", f = u?.ariaLabel ?? m;
|
|
743
|
+
let h;
|
|
744
|
+
e[7] !== c ? (h = c ?? /* @__PURE__ */ x(ze, { fontSize: "small" }), e[7] = c, e[8] = h) : h = e[8];
|
|
745
|
+
let g;
|
|
746
|
+
e[9] !== b || e[10] !== f || e[11] !== d || e[12] !== o || e[13] !== h ? (g = /* @__PURE__ */ x(ee, { size: "small", "aria-label": f, onClick: d, sx: se.trigger, "data-active": o, ...b, children: h }), e[9] = b, e[10] = f, e[11] = d, e[12] = o, e[13] = h, e[14] = g) : g = e[14];
|
|
747
|
+
let I;
|
|
748
|
+
return e[15] !== g || e[16] !== m ? (I = /* @__PURE__ */ x(re, { title: m, children: g }), e[15] = g, e[16] = m, e[17] = I) : I = e[17], I;
|
|
761
749
|
}
|
|
762
|
-
function
|
|
763
|
-
return
|
|
750
|
+
function Ot(n) {
|
|
751
|
+
return {
|
|
752
|
+
storeIsEnabled: n?.isSearchEnabled
|
|
753
|
+
};
|
|
764
754
|
}
|
|
765
|
-
const
|
|
766
|
-
const n =
|
|
755
|
+
const Mt = () => {
|
|
756
|
+
const n = Q(1);
|
|
767
757
|
let e;
|
|
768
|
-
return n[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */
|
|
758
|
+
return n[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ x("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 18 18", children: /* @__PURE__ */ x("path", { fill: "currentColor", fillRule: "evenodd", d: "M14.25 2.25H3.75c-.825 0-1.5.675-1.5 1.5v10.5c0 .825.675 1.5 1.5 1.5h10.5c.825 0 1.5-.675 1.5-1.5V3.75c0-.825-.675-1.5-1.5-1.5m-3.75 12h-3V3.75h3zM3.75 3.75H6v10.5H3.75zM12 14.25V3.75h2.25v10.5z", clipRule: "evenodd" }) }), n[0] = e) : e = n[0], e;
|
|
769
759
|
};
|
|
770
|
-
function
|
|
771
|
-
const e =
|
|
760
|
+
function At(n) {
|
|
761
|
+
const e = Q(18), {
|
|
772
762
|
column: t
|
|
773
763
|
} = n;
|
|
774
|
-
let
|
|
775
|
-
e[0] !== t.id ? (
|
|
764
|
+
let r;
|
|
765
|
+
e[0] !== t.id ? (r = {
|
|
776
766
|
id: t.id
|
|
777
|
-
}, e[0] = t.id, e[1] =
|
|
767
|
+
}, e[0] = t.id, e[1] = r) : r = e[1];
|
|
778
768
|
const {
|
|
779
|
-
attributes:
|
|
769
|
+
attributes: u,
|
|
780
770
|
listeners: c,
|
|
781
|
-
setNodeRef:
|
|
782
|
-
transform:
|
|
783
|
-
transition:
|
|
784
|
-
isDragging:
|
|
785
|
-
} =
|
|
771
|
+
setNodeRef: b,
|
|
772
|
+
transform: C,
|
|
773
|
+
transition: S,
|
|
774
|
+
isDragging: o
|
|
775
|
+
} = at(r);
|
|
776
|
+
let i;
|
|
777
|
+
e[2] !== C ? (i = gt.Transform.toString(C ? {
|
|
778
|
+
...C,
|
|
779
|
+
x: 0
|
|
780
|
+
} : null), e[2] = C, e[3] = i) : i = e[3];
|
|
781
|
+
const l = o ? 0.5 : 1, a = o ? "grabbing" : "grab";
|
|
786
782
|
let d;
|
|
787
|
-
e[
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
const _ = s;
|
|
797
|
-
let T;
|
|
798
|
-
e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (T = {
|
|
783
|
+
e[4] !== i || e[5] !== l || e[6] !== a || e[7] !== S ? (d = {
|
|
784
|
+
transform: i,
|
|
785
|
+
transition: S,
|
|
786
|
+
opacity: l,
|
|
787
|
+
cursor: a
|
|
788
|
+
}, e[4] = i, e[5] = l, e[6] = a, e[7] = S, e[8] = d) : d = e[8];
|
|
789
|
+
const m = d;
|
|
790
|
+
let f;
|
|
791
|
+
e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = {
|
|
799
792
|
"&:focus-visible": {
|
|
800
|
-
outline:
|
|
793
|
+
outline: Bt,
|
|
801
794
|
outlineOffset: -2
|
|
802
795
|
}
|
|
803
|
-
}, e[9] =
|
|
804
|
-
let o;
|
|
805
|
-
e[10] !== t.label ? (o = /* @__PURE__ */ g(Le, { children: t.label }), e[10] = t.label, e[11] = o) : o = e[11];
|
|
796
|
+
}, e[9] = f) : f = e[9];
|
|
806
797
|
let h;
|
|
807
|
-
|
|
798
|
+
e[10] !== t.label ? (h = /* @__PURE__ */ x(Pe, { children: t.label }), e[10] = t.label, e[11] = h) : h = e[11];
|
|
799
|
+
let g;
|
|
800
|
+
return e[12] !== u || e[13] !== c || e[14] !== b || e[15] !== m || e[16] !== h ? (g = /* @__PURE__ */ x(we, { ref: b, style: m, ...u, ...c, role: "menuitem", tabIndex: 0, sx: f, children: h }), e[12] = u, e[13] = c, e[14] = b, e[15] = m, e[16] = h, e[17] = g) : g = e[17], g;
|
|
808
801
|
}
|
|
809
|
-
function
|
|
802
|
+
function Bt(n) {
|
|
810
803
|
return `2px solid ${n.palette.primary.main}`;
|
|
811
804
|
}
|
|
812
|
-
const
|
|
813
|
-
function
|
|
814
|
-
const e =
|
|
805
|
+
const Ee = "change-column";
|
|
806
|
+
function Cn(n) {
|
|
807
|
+
const e = Q(46), {
|
|
815
808
|
id: t,
|
|
816
|
-
labels:
|
|
817
|
-
Icon:
|
|
809
|
+
labels: r,
|
|
810
|
+
Icon: u,
|
|
818
811
|
IconButtonProps: c,
|
|
819
|
-
MenuProps:
|
|
820
|
-
} = n, [
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
const
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
le && (oe.push(le), se.delete(X.id));
|
|
812
|
+
MenuProps: b
|
|
813
|
+
} = n, [C, S] = ie(null), {
|
|
814
|
+
columns: o
|
|
815
|
+
} = ne(t, Nt);
|
|
816
|
+
let i;
|
|
817
|
+
e[0] !== t ? (i = (N) => {
|
|
818
|
+
const y = p.getWidget(t)?.columns;
|
|
819
|
+
if (!y || y.length === 0)
|
|
820
|
+
return N;
|
|
821
|
+
const B = N, F = B.columns;
|
|
822
|
+
if (!F || F.length === 0 || F.length === y.length && F.every((Y, J) => Y.id === y[J]?.id))
|
|
823
|
+
return N;
|
|
824
|
+
const X = new Map(F.map($t)), q = [];
|
|
825
|
+
for (const Y of y) {
|
|
826
|
+
const J = X.get(Y.id);
|
|
827
|
+
J && (q.push(J), X.delete(Y.id));
|
|
836
828
|
}
|
|
837
|
-
for (const
|
|
838
|
-
|
|
839
|
-
const
|
|
829
|
+
for (const Y of X.values())
|
|
830
|
+
q.push(Y);
|
|
831
|
+
const te = q.length === y.length && q.every((Y, J) => Y.id === y[J]?.id);
|
|
840
832
|
return {
|
|
841
|
-
...
|
|
842
|
-
columns:
|
|
833
|
+
...B,
|
|
834
|
+
columns: te ? y : q
|
|
843
835
|
};
|
|
844
|
-
}, e[
|
|
845
|
-
const
|
|
846
|
-
let
|
|
847
|
-
e[
|
|
848
|
-
coordinateGetter:
|
|
849
|
-
}, e[
|
|
850
|
-
const
|
|
851
|
-
let
|
|
852
|
-
e[
|
|
853
|
-
const
|
|
854
|
-
let
|
|
855
|
-
e[
|
|
856
|
-
id:
|
|
836
|
+
}, e[0] = t, e[1] = i) : i = e[1];
|
|
837
|
+
const l = i;
|
|
838
|
+
let a;
|
|
839
|
+
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = {
|
|
840
|
+
coordinateGetter: dt
|
|
841
|
+
}, e[2] = a) : a = e[2];
|
|
842
|
+
const d = lt(ye(rt), ye(it, a));
|
|
843
|
+
let m;
|
|
844
|
+
e[3] !== o ? (m = o?.map(Ft) ?? [], e[3] = o, e[4] = m) : m = e[4];
|
|
845
|
+
const f = m;
|
|
846
|
+
let h, g;
|
|
847
|
+
e[5] !== t || e[6] !== l ? (h = () => (p.registerTool(t, {
|
|
848
|
+
id: Ee,
|
|
857
849
|
type: "config",
|
|
858
850
|
order: 100,
|
|
859
851
|
enabled: !0,
|
|
860
|
-
fn:
|
|
861
|
-
}), () =>
|
|
862
|
-
let
|
|
863
|
-
e[
|
|
864
|
-
|
|
865
|
-
}, e[
|
|
866
|
-
const
|
|
867
|
-
let y;
|
|
868
|
-
e[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = () => {
|
|
869
|
-
f(null);
|
|
870
|
-
}, e[14] = y) : y = e[14];
|
|
871
|
-
const A = y;
|
|
852
|
+
fn: l
|
|
853
|
+
}), () => p.unregisterTool(t, Ee)), g = [t, l], e[5] = t, e[6] = l, e[7] = h, e[8] = g) : (h = e[7], g = e[8]), H(h, g);
|
|
854
|
+
let I;
|
|
855
|
+
e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = (N) => {
|
|
856
|
+
N.stopPropagation(), S(N.currentTarget);
|
|
857
|
+
}, e[9] = I) : I = e[9];
|
|
858
|
+
const s = I;
|
|
872
859
|
let w;
|
|
873
|
-
e[
|
|
860
|
+
e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = () => {
|
|
861
|
+
S(null);
|
|
862
|
+
}, e[10] = w) : w = e[10];
|
|
863
|
+
const L = w;
|
|
864
|
+
let P;
|
|
865
|
+
e[11] !== o || e[12] !== t ? (P = (N) => {
|
|
874
866
|
const {
|
|
875
|
-
active:
|
|
876
|
-
over:
|
|
877
|
-
} =
|
|
878
|
-
if (!
|
|
867
|
+
active: K,
|
|
868
|
+
over: y
|
|
869
|
+
} = N;
|
|
870
|
+
if (!y || K.id === y.id || !o)
|
|
879
871
|
return;
|
|
880
|
-
const
|
|
881
|
-
if (
|
|
882
|
-
const
|
|
883
|
-
|
|
884
|
-
columns:
|
|
872
|
+
const B = o.findIndex((V) => V.id === K.id), F = o.findIndex((V) => V.id === y.id);
|
|
873
|
+
if (B !== -1 && F !== -1) {
|
|
874
|
+
const V = ut(o, B, F);
|
|
875
|
+
p.setWidget(t, {
|
|
876
|
+
columns: V
|
|
885
877
|
});
|
|
886
878
|
}
|
|
887
|
-
}, e[
|
|
888
|
-
const D =
|
|
889
|
-
if (!
|
|
879
|
+
}, e[11] = o, e[12] = t, e[13] = P) : P = e[13];
|
|
880
|
+
const D = P;
|
|
881
|
+
if (!o || o.length < 2)
|
|
890
882
|
return null;
|
|
891
|
-
const
|
|
892
|
-
let
|
|
893
|
-
e[
|
|
894
|
-
let
|
|
895
|
-
e[
|
|
896
|
-
let
|
|
897
|
-
e[
|
|
898
|
-
let
|
|
899
|
-
e[
|
|
883
|
+
const O = r?.tooltip ?? "Change column", E = !!C, R = r?.ariaLabel ?? O, k = E ? "change-column-menu" : void 0, v = E ? "true" : void 0;
|
|
884
|
+
let T;
|
|
885
|
+
e[14] !== u ? (T = u ?? /* @__PURE__ */ x(Ve, { children: /* @__PURE__ */ x(Mt, {}) }), e[14] = u, e[15] = T) : T = e[15];
|
|
886
|
+
let _;
|
|
887
|
+
e[16] !== c || e[17] !== E || e[18] !== k || e[19] !== v || e[20] !== T || e[21] !== R ? (_ = /* @__PURE__ */ x(ee, { size: "small", "aria-label": R, "aria-controls": k, "aria-haspopup": "true", "aria-expanded": v, onClick: s, "data-active": E, sx: se.trigger, ...c, children: T }), e[16] = c, e[17] = E, e[18] = k, e[19] = v, e[20] = T, e[21] = R, e[22] = _) : _ = e[22];
|
|
888
|
+
let z;
|
|
889
|
+
e[23] !== _ || e[24] !== O ? (z = /* @__PURE__ */ x(re, { title: O, children: _ }), e[23] = _, e[24] = O, e[25] = z) : z = e[25];
|
|
890
|
+
let M, A, W;
|
|
891
|
+
e[26] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M = {
|
|
900
892
|
vertical: "bottom",
|
|
901
893
|
horizontal: "right"
|
|
902
|
-
},
|
|
894
|
+
}, A = {
|
|
903
895
|
vertical: "top",
|
|
904
896
|
horizontal: "right"
|
|
905
|
-
},
|
|
906
|
-
|
|
907
|
-
|
|
897
|
+
}, W = {
|
|
898
|
+
paper: {
|
|
899
|
+
sx: {
|
|
900
|
+
overflow: "hidden"
|
|
901
|
+
}
|
|
902
|
+
}
|
|
903
|
+
}, e[26] = M, e[27] = A, e[28] = W) : (M = e[26], A = e[27], W = e[28]);
|
|
904
|
+
let U;
|
|
905
|
+
e[29] !== o ? (U = o.map(Wt), e[29] = o, e[30] = U) : U = e[30];
|
|
906
|
+
let j;
|
|
907
|
+
e[31] !== f || e[32] !== U ? (j = /* @__PURE__ */ x(ft, { items: f, strategy: mt, children: U }), e[31] = f, e[32] = U, e[33] = j) : j = e[33];
|
|
908
|
+
let $;
|
|
909
|
+
e[34] !== b || e[35] !== C || e[36] !== E || e[37] !== j ? ($ = /* @__PURE__ */ x(Re, { id: "change-column-menu", anchorEl: C, open: E, onClose: L, anchorOrigin: M, transformOrigin: A, slotProps: W, ...b, children: j }), e[34] = b, e[35] = C, e[36] = E, e[37] = j, e[38] = $) : $ = e[38];
|
|
910
|
+
let G;
|
|
911
|
+
e[39] !== D || e[40] !== d || e[41] !== $ ? (G = /* @__PURE__ */ x(st, { sensors: d, collisionDetection: ct, onDragEnd: D, children: $ }), e[39] = D, e[40] = d, e[41] = $, e[42] = G) : G = e[42];
|
|
908
912
|
let Z;
|
|
909
|
-
e[
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
e[43] !== D || e[44] !== h || e[45] !== M ? (N = /* @__PURE__ */ g(st, { sensors: h, collisionDetection: rt, onDragEnd: D, children: M }), e[43] = D, e[44] = h, e[45] = M, e[46] = N) : N = e[46];
|
|
914
|
-
let V;
|
|
915
|
-
return e[47] !== k || e[48] !== N ? (V = /* @__PURE__ */ re(be, { children: [
|
|
916
|
-
k,
|
|
917
|
-
N
|
|
918
|
-
] }), e[47] = k, e[48] = N, e[49] = V) : V = e[49], V;
|
|
913
|
+
return e[43] !== z || e[44] !== G ? (Z = /* @__PURE__ */ oe(ue, { children: [
|
|
914
|
+
z,
|
|
915
|
+
G
|
|
916
|
+
] }), e[43] = z, e[44] = G, e[45] = Z) : Z = e[45], Z;
|
|
919
917
|
}
|
|
920
|
-
function
|
|
921
|
-
return /* @__PURE__ */
|
|
918
|
+
function Wt(n) {
|
|
919
|
+
return /* @__PURE__ */ x(At, { column: n }, n.id);
|
|
922
920
|
}
|
|
923
|
-
function
|
|
921
|
+
function Ft(n) {
|
|
924
922
|
return n.id;
|
|
925
923
|
}
|
|
926
|
-
function
|
|
924
|
+
function $t(n) {
|
|
927
925
|
return [n.id, n];
|
|
928
926
|
}
|
|
929
|
-
function
|
|
930
|
-
return
|
|
927
|
+
function Nt(n) {
|
|
928
|
+
return {
|
|
929
|
+
columns: n?.columns
|
|
930
|
+
};
|
|
931
|
+
}
|
|
932
|
+
const Ce = {
|
|
933
|
+
container: {
|
|
934
|
+
display: "flex",
|
|
935
|
+
alignItems: "center",
|
|
936
|
+
gap: ({
|
|
937
|
+
spacing: n
|
|
938
|
+
}) => n(0.25)
|
|
939
|
+
},
|
|
940
|
+
trigger: {
|
|
941
|
+
'&[data-active="true"]': {
|
|
942
|
+
background: (n) => n.palette.primary.relatedLight
|
|
943
|
+
}
|
|
944
|
+
}
|
|
945
|
+
}, Le = {
|
|
946
|
+
// `top` and `height` are filled in at render time from the chart's plot
|
|
947
|
+
// rect so rectangles don't bleed over the legend / axis labels.
|
|
948
|
+
//
|
|
949
|
+
// Colors track ECharts 6's `backgroundTint` token (used by the default
|
|
950
|
+
// brush) — a barely-visible pale blue-gray translucent fill that washes
|
|
951
|
+
// bars underneath rather than masking them. Border is a hairline dark
|
|
952
|
+
// alpha so the selection edges are just findable, not prominent.
|
|
953
|
+
rect: {
|
|
954
|
+
position: "absolute",
|
|
955
|
+
background: "rgba(234, 237, 245, 0.2)",
|
|
956
|
+
border: "1px dashed rgba(0, 0, 0, 0.15)",
|
|
957
|
+
pointerEvents: "none"
|
|
958
|
+
},
|
|
959
|
+
// Live drag preview — identical to committed rect (no "in-progress" vs
|
|
960
|
+
// "committed" visual distinction; the preview just disappears on
|
|
961
|
+
// `pointerup` as the rect takes its place).
|
|
962
|
+
rectPreview: {
|
|
963
|
+
position: "absolute",
|
|
964
|
+
background: "rgba(234, 237, 245, 0.6)",
|
|
965
|
+
border: "1px dashed rgba(0, 0, 0, 0.15)",
|
|
966
|
+
pointerEvents: "none"
|
|
967
|
+
}
|
|
968
|
+
};
|
|
969
|
+
function Gt(n, e, t) {
|
|
970
|
+
if (t <= 0) return [];
|
|
971
|
+
const [r, u] = n <= e ? [n, e] : [e, n], c = Math.max(0, Math.floor(r)), b = Math.min(t - 1, Math.ceil(u));
|
|
972
|
+
if (c > b) return [];
|
|
973
|
+
const C = [];
|
|
974
|
+
for (let S = c; S <= b; S += 1) C.push(S);
|
|
975
|
+
return C;
|
|
976
|
+
}
|
|
977
|
+
function Zt(n, e) {
|
|
978
|
+
if (n.length === 0) return [];
|
|
979
|
+
const t = /* @__PURE__ */ new Set();
|
|
980
|
+
for (const r of n)
|
|
981
|
+
for (const u of Gt(r.xStart, r.xEnd, e))
|
|
982
|
+
t.add(u);
|
|
983
|
+
return Array.from(t).sort((r, u) => r - u);
|
|
984
|
+
}
|
|
985
|
+
const Vt = 2, Ht = Object.freeze([]), ke = Object.freeze([]);
|
|
986
|
+
function jt(n) {
|
|
987
|
+
try {
|
|
988
|
+
const r = n.getModel().getComponent("grid", 0)?.coordinateSystem?.getRect();
|
|
989
|
+
return !r || !Number.isFinite(r.x) || !Number.isFinite(r.y) || !Number.isFinite(r.width) || !Number.isFinite(r.height) ? null : {
|
|
990
|
+
x: r.x,
|
|
991
|
+
y: r.y,
|
|
992
|
+
width: r.width,
|
|
993
|
+
height: r.height
|
|
994
|
+
};
|
|
995
|
+
} catch {
|
|
996
|
+
return null;
|
|
997
|
+
}
|
|
998
|
+
}
|
|
999
|
+
function Ut(n, e) {
|
|
1000
|
+
return n === e ? !0 : !n || !e ? !1 : n.x === e.x && n.y === e.y && n.width === e.width && n.height === e.height;
|
|
1001
|
+
}
|
|
1002
|
+
function Xt(n) {
|
|
1003
|
+
const e = Q(55), {
|
|
1004
|
+
id: t,
|
|
1005
|
+
multiBrush: r
|
|
1006
|
+
} = n, {
|
|
1007
|
+
enabled: u,
|
|
1008
|
+
rects: c,
|
|
1009
|
+
dataLength: b
|
|
1010
|
+
} = ne(t, Jt), C = qt;
|
|
1011
|
+
let S;
|
|
1012
|
+
e[0] !== t ? (S = () => p.getWidget(t)?.refUI?.current ?? null, e[0] = t, e[1] = S) : S = e[1];
|
|
1013
|
+
const o = ve(C, S, Kt);
|
|
1014
|
+
let i;
|
|
1015
|
+
e[2] !== t ? (i = () => p.getWidget(t)?.instance?.current ?? null, e[2] = t, e[3] = i) : i = e[3];
|
|
1016
|
+
const l = ve(C, i, Yt), a = le(null), d = le(null), m = le(null), [f, h] = ie(ke), [g, I] = ie(null), [s, w] = ie(null);
|
|
1017
|
+
let L, P;
|
|
1018
|
+
e[4] !== o || e[5] !== t ? (L = () => {
|
|
1019
|
+
if (!o)
|
|
1020
|
+
return;
|
|
1021
|
+
const y = document.getElementById(t);
|
|
1022
|
+
if (!y)
|
|
1023
|
+
return;
|
|
1024
|
+
const B = y.style.position;
|
|
1025
|
+
return B || (y.style.position = "relative"), () => {
|
|
1026
|
+
B || (y.style.position = "");
|
|
1027
|
+
};
|
|
1028
|
+
}, P = [t, o], e[4] = o, e[5] = t, e[6] = L, e[7] = P) : (L = e[6], P = e[7]), H(L, P);
|
|
1029
|
+
let D, O;
|
|
1030
|
+
e[8] !== o || e[9] !== l || e[10] !== c ? (D = () => {
|
|
1031
|
+
if (!l || !o)
|
|
1032
|
+
return;
|
|
1033
|
+
const y = () => {
|
|
1034
|
+
const F = jt(l);
|
|
1035
|
+
if (w((X) => Ut(X, F) ? X : F), !F)
|
|
1036
|
+
return;
|
|
1037
|
+
const V = [];
|
|
1038
|
+
for (const X of c) {
|
|
1039
|
+
const q = l.convertToPixel({
|
|
1040
|
+
xAxisIndex: 0
|
|
1041
|
+
}, X.xStart), te = l.convertToPixel({
|
|
1042
|
+
xAxisIndex: 0
|
|
1043
|
+
}, X.xEnd);
|
|
1044
|
+
if (typeof q != "number" || typeof te != "number" || !Number.isFinite(q) || !Number.isFinite(te))
|
|
1045
|
+
continue;
|
|
1046
|
+
const Y = Math.max(F.x, Math.min(q, te)), J = Math.min(F.x + F.width, Math.max(q, te));
|
|
1047
|
+
J <= Y || V.push({
|
|
1048
|
+
left: Y,
|
|
1049
|
+
right: J
|
|
1050
|
+
});
|
|
1051
|
+
}
|
|
1052
|
+
h(V.length === 0 ? ke : V);
|
|
1053
|
+
};
|
|
1054
|
+
y(), l.on("finished", y);
|
|
1055
|
+
const B = pt(o, y);
|
|
1056
|
+
return () => {
|
|
1057
|
+
l.off("finished", y), B();
|
|
1058
|
+
};
|
|
1059
|
+
}, O = [l, o, c], e[8] = o, e[9] = l, e[10] = c, e[11] = D, e[12] = O) : (D = e[11], O = e[12]), H(D, O);
|
|
1060
|
+
let E;
|
|
1061
|
+
e[13] !== o || e[14] !== u || e[15] !== l || e[16] !== s ? (E = (y) => {
|
|
1062
|
+
if (!u || !o || !s)
|
|
1063
|
+
return;
|
|
1064
|
+
const B = a.current;
|
|
1065
|
+
if (!B)
|
|
1066
|
+
return;
|
|
1067
|
+
y.preventDefault(), B.setPointerCapture(y.pointerId), m.current = y.pointerId, l?.dispatchAction({
|
|
1068
|
+
type: "hideTip"
|
|
1069
|
+
});
|
|
1070
|
+
const F = o.getBoundingClientRect(), V = Se(y.clientX - F.left, s);
|
|
1071
|
+
d.current = V, I({
|
|
1072
|
+
left: V,
|
|
1073
|
+
right: V
|
|
1074
|
+
});
|
|
1075
|
+
}, e[13] = o, e[14] = u, e[15] = l, e[16] = s, e[17] = E) : E = e[17];
|
|
1076
|
+
const R = E;
|
|
1077
|
+
let k;
|
|
1078
|
+
e[18] !== o || e[19] !== l || e[20] !== s ? (k = (y) => {
|
|
1079
|
+
if (m.current === null) {
|
|
1080
|
+
if (l && o) {
|
|
1081
|
+
const X = o.getBoundingClientRect();
|
|
1082
|
+
l.dispatchAction({
|
|
1083
|
+
type: "showTip",
|
|
1084
|
+
x: y.clientX - X.left,
|
|
1085
|
+
y: y.clientY - X.top
|
|
1086
|
+
});
|
|
1087
|
+
}
|
|
1088
|
+
return;
|
|
1089
|
+
}
|
|
1090
|
+
if (m.current !== y.pointerId)
|
|
1091
|
+
return;
|
|
1092
|
+
const B = d.current;
|
|
1093
|
+
if (B === null || !o || !s)
|
|
1094
|
+
return;
|
|
1095
|
+
const F = o.getBoundingClientRect(), V = Se(y.clientX - F.left, s);
|
|
1096
|
+
I({
|
|
1097
|
+
left: Math.min(B, V),
|
|
1098
|
+
right: Math.max(B, V)
|
|
1099
|
+
});
|
|
1100
|
+
}, e[18] = o, e[19] = l, e[20] = s, e[21] = k) : k = e[21];
|
|
1101
|
+
const v = k;
|
|
1102
|
+
let T;
|
|
1103
|
+
e[22] !== l ? (T = () => {
|
|
1104
|
+
m.current === null && l?.dispatchAction({
|
|
1105
|
+
type: "hideTip"
|
|
1106
|
+
});
|
|
1107
|
+
}, e[22] = l, e[23] = T) : T = e[23];
|
|
1108
|
+
const _ = T;
|
|
1109
|
+
let z;
|
|
1110
|
+
e[24] !== o || e[25] !== b || e[26] !== t || e[27] !== l || e[28] !== r || e[29] !== s || e[30] !== c ? (z = (y) => {
|
|
1111
|
+
if (m.current !== y.pointerId)
|
|
1112
|
+
return;
|
|
1113
|
+
const B = d.current, F = a.current;
|
|
1114
|
+
if (m.current = null, d.current = null, I(null), B === null || !F || !l || !o || !s)
|
|
1115
|
+
return;
|
|
1116
|
+
try {
|
|
1117
|
+
F.releasePointerCapture(y.pointerId);
|
|
1118
|
+
} catch {
|
|
1119
|
+
}
|
|
1120
|
+
const V = o.getBoundingClientRect(), X = Se(y.clientX - V.left, s), q = Math.min(B, X), te = Math.max(B, X);
|
|
1121
|
+
if (te - q < Vt)
|
|
1122
|
+
return;
|
|
1123
|
+
const Y = l.convertFromPixel({
|
|
1124
|
+
xAxisIndex: 0
|
|
1125
|
+
}, q), J = l.convertFromPixel({
|
|
1126
|
+
xAxisIndex: 0
|
|
1127
|
+
}, te);
|
|
1128
|
+
if (typeof Y != "number" || typeof J != "number" || !Number.isFinite(Y) || !Number.isFinite(J))
|
|
1129
|
+
return;
|
|
1130
|
+
const ce = {
|
|
1131
|
+
xStart: Y,
|
|
1132
|
+
xEnd: J
|
|
1133
|
+
}, fe = r ? [...c, ce] : [ce], me = {
|
|
1134
|
+
dataIndex: Zt(fe, b),
|
|
1135
|
+
seriesIndex: 0
|
|
1136
|
+
};
|
|
1137
|
+
p.setWidget(t, {
|
|
1138
|
+
brushRects: fe,
|
|
1139
|
+
brushSelection: me,
|
|
1140
|
+
...r ? {} : {
|
|
1141
|
+
brush: !1
|
|
1142
|
+
}
|
|
1143
|
+
});
|
|
1144
|
+
}, e[24] = o, e[25] = b, e[26] = t, e[27] = l, e[28] = r, e[29] = s, e[30] = c, e[31] = z) : z = e[31];
|
|
1145
|
+
const M = z;
|
|
1146
|
+
if (!o)
|
|
1147
|
+
return null;
|
|
1148
|
+
let A;
|
|
1149
|
+
e[32] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = {
|
|
1150
|
+
position: "absolute",
|
|
1151
|
+
inset: 0,
|
|
1152
|
+
pointerEvents: "none",
|
|
1153
|
+
zIndex: 1
|
|
1154
|
+
}, e[32] = A) : A = e[32];
|
|
1155
|
+
const W = A;
|
|
1156
|
+
let U;
|
|
1157
|
+
e[33] !== u || e[34] !== s ? (U = s ? {
|
|
1158
|
+
position: "absolute",
|
|
1159
|
+
left: s.x,
|
|
1160
|
+
top: s.y,
|
|
1161
|
+
width: s.width,
|
|
1162
|
+
height: s.height,
|
|
1163
|
+
pointerEvents: u ? "auto" : "none",
|
|
1164
|
+
cursor: u ? "crosshair" : "default",
|
|
1165
|
+
userSelect: "none",
|
|
1166
|
+
touchAction: "none"
|
|
1167
|
+
} : void 0, e[33] = u, e[34] = s, e[35] = U) : U = e[35];
|
|
1168
|
+
const j = U;
|
|
1169
|
+
let $;
|
|
1170
|
+
e[36] !== j || e[37] !== R || e[38] !== _ || e[39] !== v || e[40] !== M ? ($ = j && /* @__PURE__ */ x("div", { ref: a, style: j, onPointerDown: R, onPointerMove: v, onPointerUp: M, onPointerCancel: M, onPointerLeave: _ }), e[36] = j, e[37] = R, e[38] = _, e[39] = v, e[40] = M, e[41] = $) : $ = e[41];
|
|
1171
|
+
let G;
|
|
1172
|
+
e[42] !== s || e[43] !== f ? (G = s && f.map((y, B) => /* @__PURE__ */ x("div", { style: {
|
|
1173
|
+
...Le.rect,
|
|
1174
|
+
left: y.left,
|
|
1175
|
+
width: Math.max(0, y.right - y.left),
|
|
1176
|
+
top: s.y,
|
|
1177
|
+
height: s.height
|
|
1178
|
+
} }, `${y.left}-${y.right}-${B}`)), e[42] = s, e[43] = f, e[44] = G) : G = e[44];
|
|
1179
|
+
let Z;
|
|
1180
|
+
e[45] !== g || e[46] !== s ? (Z = s && g && /* @__PURE__ */ x("div", { style: {
|
|
1181
|
+
...Le.rectPreview,
|
|
1182
|
+
left: g.left,
|
|
1183
|
+
width: Math.max(0, g.right - g.left),
|
|
1184
|
+
top: s.y,
|
|
1185
|
+
height: s.height
|
|
1186
|
+
} }), e[45] = g, e[46] = s, e[47] = Z) : Z = e[47];
|
|
1187
|
+
let N;
|
|
1188
|
+
e[48] !== $ || e[49] !== G || e[50] !== Z ? (N = /* @__PURE__ */ oe("div", { style: W, children: [
|
|
1189
|
+
$,
|
|
1190
|
+
G,
|
|
1191
|
+
Z
|
|
1192
|
+
] }), e[48] = $, e[49] = G, e[50] = Z, e[51] = N) : N = e[51];
|
|
1193
|
+
let K;
|
|
1194
|
+
return e[52] !== o || e[53] !== N ? (K = ht(N, o), e[52] = o, e[53] = N, e[54] = K) : K = e[54], K;
|
|
1195
|
+
}
|
|
1196
|
+
function Yt() {
|
|
1197
|
+
return null;
|
|
1198
|
+
}
|
|
1199
|
+
function Kt() {
|
|
1200
|
+
return null;
|
|
1201
|
+
}
|
|
1202
|
+
function qt(n) {
|
|
1203
|
+
return He.subscribe(n);
|
|
1204
|
+
}
|
|
1205
|
+
function Jt(n) {
|
|
1206
|
+
const e = n, r = n?.data?.[0], u = Array.isArray(r) ? r.length : 0;
|
|
1207
|
+
return {
|
|
1208
|
+
enabled: e?.brush ?? !1,
|
|
1209
|
+
rects: e?.brushRects ?? Ht,
|
|
1210
|
+
dataLength: u
|
|
1211
|
+
};
|
|
931
1212
|
}
|
|
932
|
-
function
|
|
933
|
-
return n
|
|
1213
|
+
function Se(n, e) {
|
|
1214
|
+
return Math.max(e.x, Math.min(e.x + e.width, n));
|
|
934
1215
|
}
|
|
935
|
-
|
|
936
|
-
|
|
1216
|
+
const Ln = "brush-toggle";
|
|
1217
|
+
function kn(n) {
|
|
1218
|
+
const e = Q(35), {
|
|
1219
|
+
id: t,
|
|
1220
|
+
onBrushSelected: r,
|
|
1221
|
+
multiBrush: u,
|
|
1222
|
+
selections: c,
|
|
1223
|
+
defaultEnabled: b,
|
|
1224
|
+
labels: C,
|
|
1225
|
+
Icon: S,
|
|
1226
|
+
IconButtonProps: o
|
|
1227
|
+
} = n, i = b === void 0 ? !1 : b;
|
|
1228
|
+
let l;
|
|
1229
|
+
e[0] !== i ? (l = (M) => {
|
|
1230
|
+
const A = M;
|
|
1231
|
+
return {
|
|
1232
|
+
brush: A?.brush ?? i,
|
|
1233
|
+
selection: A?.brushSelection
|
|
1234
|
+
};
|
|
1235
|
+
}, e[0] = i, e[1] = l) : l = e[1];
|
|
1236
|
+
const {
|
|
1237
|
+
brush: a,
|
|
1238
|
+
selection: d
|
|
1239
|
+
} = ne(t, l);
|
|
1240
|
+
let m, f;
|
|
1241
|
+
e[2] !== i || e[3] !== t ? (m = () => {
|
|
1242
|
+
p.getWidget(t)?.brush === void 0 && p.setWidget(t, {
|
|
1243
|
+
brush: i
|
|
1244
|
+
});
|
|
1245
|
+
}, f = [t, i], e[2] = i, e[3] = t, e[4] = m, e[5] = f) : (m = e[4], f = e[5]), H(m, f);
|
|
1246
|
+
let h;
|
|
1247
|
+
e[6] !== a || e[7] !== t || e[8] !== r ? (h = () => {
|
|
1248
|
+
a ? p.setWidget(t, {
|
|
1249
|
+
brush: !1
|
|
1250
|
+
}) : (p.setWidget(t, {
|
|
1251
|
+
brush: !0,
|
|
1252
|
+
brushRects: [],
|
|
1253
|
+
brushSelection: {
|
|
1254
|
+
dataIndex: [],
|
|
1255
|
+
seriesIndex: 0
|
|
1256
|
+
}
|
|
1257
|
+
}), r?.({
|
|
1258
|
+
dataIndex: [],
|
|
1259
|
+
seriesIndex: 0
|
|
1260
|
+
}));
|
|
1261
|
+
}, e[6] = a, e[7] = t, e[8] = r, e[9] = h) : h = e[9];
|
|
1262
|
+
const g = h, I = le(void 0);
|
|
1263
|
+
let s, w;
|
|
1264
|
+
e[10] !== r || e[11] !== d ? (s = () => {
|
|
1265
|
+
d && I.current !== d && (I.current = d, r?.(d));
|
|
1266
|
+
}, w = [d, r], e[10] = r, e[11] = d, e[12] = s, e[13] = w) : (s = e[12], w = e[13]), H(s, w);
|
|
1267
|
+
let L, P;
|
|
1268
|
+
e[14] !== t || e[15] !== c ? (L = () => {
|
|
1269
|
+
if (c !== 0)
|
|
1270
|
+
return;
|
|
1271
|
+
const M = p.getWidget(t), A = (M?.brushRects?.length ?? 0) > 0, W = (M?.brushSelection?.dataIndex?.length ?? 0) > 0;
|
|
1272
|
+
!A && !W || p.setWidget(t, {
|
|
1273
|
+
brushRects: [],
|
|
1274
|
+
brushSelection: {
|
|
1275
|
+
dataIndex: [],
|
|
1276
|
+
seriesIndex: 0
|
|
1277
|
+
}
|
|
1278
|
+
});
|
|
1279
|
+
}, P = [c, t], e[14] = t, e[15] = c, e[16] = L, e[17] = P) : (L = e[16], P = e[17]), H(L, P);
|
|
1280
|
+
const D = C?.enable ?? "Enable brush selection", O = C?.disable ?? "Disable brush selection", E = a ? O : D, R = C?.ariaLabel ?? E;
|
|
1281
|
+
let k;
|
|
1282
|
+
e[18] !== S ? (k = S ?? /* @__PURE__ */ x(et, {}), e[18] = S, e[19] = k) : k = e[19];
|
|
1283
|
+
let v;
|
|
1284
|
+
e[20] !== o || e[21] !== a || e[22] !== g || e[23] !== R || e[24] !== k ? (v = /* @__PURE__ */ x(ee, { size: "small", "aria-label": R, onClick: g, sx: Ce.trigger, "data-active": a, ...o, children: k }), e[20] = o, e[21] = a, e[22] = g, e[23] = R, e[24] = k, e[25] = v) : v = e[25];
|
|
1285
|
+
let T;
|
|
1286
|
+
e[26] !== v || e[27] !== E ? (T = /* @__PURE__ */ x(De, { sx: Ce.container, children: /* @__PURE__ */ x(re, { title: E, children: v }) }), e[26] = v, e[27] = E, e[28] = T) : T = e[28];
|
|
1287
|
+
let _;
|
|
1288
|
+
e[29] !== t || e[30] !== u ? (_ = /* @__PURE__ */ x(Xt, { id: t, multiBrush: u }), e[29] = t, e[30] = u, e[31] = _) : _ = e[31];
|
|
1289
|
+
let z;
|
|
1290
|
+
return e[32] !== T || e[33] !== _ ? (z = /* @__PURE__ */ oe(ue, { children: [
|
|
1291
|
+
T,
|
|
1292
|
+
_
|
|
1293
|
+
] }), e[32] = T, e[33] = _, e[34] = z) : z = e[34], z;
|
|
937
1294
|
}
|
|
938
1295
|
export {
|
|
939
|
-
|
|
940
|
-
|
|
1296
|
+
Ln as BRUSH_TOGGLE_TOOL_ID,
|
|
1297
|
+
kn as BrushToggle,
|
|
1298
|
+
Ee as CHANGE_COLUMN_TOOL_ID,
|
|
1299
|
+
Cn as ChangeColumn,
|
|
941
1300
|
xn as Download,
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
1301
|
+
Sn as FullScreen,
|
|
1302
|
+
de as LOCK_SELECTION_TOOL_ID,
|
|
1303
|
+
Tn as LockSelection,
|
|
1304
|
+
Te as RELATIVE_DATA_CONFIG_TOOL_ID,
|
|
1305
|
+
ge as RELATIVE_DATA_TOOL_ID,
|
|
1306
|
+
vn as RelativeData,
|
|
1307
|
+
be as SEARCHER_TOOL_ID,
|
|
1308
|
+
pe as STACK_TOGGLE_TOOL_ID,
|
|
1309
|
+
_n as Searcher,
|
|
1310
|
+
En as SearcherToggle,
|
|
1311
|
+
In as StackToggle,
|
|
1312
|
+
he as ZOOM_TOGGLE_TOOL_ID,
|
|
1313
|
+
yn as ZoomToggle,
|
|
1314
|
+
Rn as downloadToCSV,
|
|
1315
|
+
Dn as downloadToPNG
|
|
956
1316
|
};
|
|
957
1317
|
//# sourceMappingURL=actions.js.map
|