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