@carto/ps-react-ui 4.7.0 → 4.8.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/category-DwaeYjpX.js +656 -0
- package/dist/category-DwaeYjpX.js.map +1 -0
- package/dist/change-column-Cidl_M-4.js +1110 -0
- package/dist/change-column-Cidl_M-4.js.map +1 -0
- package/dist/data-zoom-layout-BH0LPwSy.js +28 -0
- package/dist/data-zoom-layout-BH0LPwSy.js.map +1 -0
- package/dist/echart-CU0KmClP.js +176 -0
- package/dist/echart-CU0KmClP.js.map +1 -0
- package/dist/exports-Cx-f6m6U.js +63 -0
- package/dist/exports-Cx-f6m6U.js.map +1 -0
- package/dist/formula-DuC0NQLH.js +79 -0
- package/dist/formula-DuC0NQLH.js.map +1 -0
- package/dist/markdown-BD1jcknS.js +8326 -0
- package/dist/markdown-BD1jcknS.js.map +1 -0
- package/dist/merge-options-DCkkHZIf.js +34 -0
- package/dist/merge-options-DCkkHZIf.js.map +1 -0
- package/dist/{styles-BYTyKQFP.js → option-builders-F-c9ELi1.js} +25 -45
- package/dist/option-builders-F-c9ELi1.js.map +1 -0
- package/dist/png-item-CS4z1iSH.js +45 -0
- package/dist/png-item-CS4z1iSH.js.map +1 -0
- package/dist/range-DsqTjSpg.js +186 -0
- package/dist/range-DsqTjSpg.js.map +1 -0
- package/dist/spread-CTuIXZSM.js +67 -0
- package/dist/spread-CTuIXZSM.js.map +1 -0
- package/dist/style-DVnT6HC1.js +131 -0
- package/dist/style-DVnT6HC1.js.map +1 -0
- package/dist/styles-cohnxh9F.js +23 -0
- package/dist/styles-cohnxh9F.js.map +1 -0
- package/dist/table-HIpXuq4G.js +390 -0
- package/dist/table-HIpXuq4G.js.map +1 -0
- package/dist/transforms-Cdx4fkU5.js +106 -0
- package/dist/transforms-Cdx4fkU5.js.map +1 -0
- package/dist/types/widgets/echart/utils.test.d.ts +1 -0
- package/dist/types/widgets/formula/config.test.d.ts +1 -0
- package/dist/types/widgets/stores/widget-store-branches.test.d.ts +1 -0
- package/dist/types/widgets/table/config.test.d.ts +1 -0
- package/dist/types/widgets-v2/actions/brush-toggle/brush-toggle.d.ts +56 -0
- package/dist/types/widgets-v2/actions/brush-toggle/index.d.ts +3 -0
- package/dist/types/widgets-v2/actions/brush-toggle/labels.d.ts +5 -0
- package/dist/types/widgets-v2/actions/brush-toggle/style.d.ts +12 -0
- package/dist/types/widgets-v2/actions/brush-toggle/transforms.d.ts +11 -0
- package/dist/types/widgets-v2/actions/brush-toggle/transforms.test.d.ts +1 -0
- package/dist/types/widgets-v2/actions/change-column/change-column-icon.d.ts +2 -0
- package/dist/types/widgets-v2/actions/change-column/change-column.d.ts +29 -0
- package/dist/types/widgets-v2/actions/change-column/index.d.ts +3 -0
- package/dist/types/widgets-v2/actions/change-column/labels.d.ts +5 -0
- package/dist/types/widgets-v2/actions/change-column/sortable-column-item.d.ts +14 -0
- package/dist/types/widgets-v2/actions/change-column/style.d.ts +33 -0
- package/dist/types/widgets-v2/actions/change-column/types.d.ts +10 -0
- package/dist/types/widgets-v2/actions/download/download.d.ts +18 -0
- package/dist/types/widgets-v2/actions/download/exports.d.ts +37 -0
- package/dist/types/widgets-v2/actions/download/icons.d.ts +12 -0
- package/dist/types/widgets-v2/actions/download/index.d.ts +6 -0
- package/dist/types/widgets-v2/actions/download/labels.d.ts +11 -0
- package/dist/types/widgets-v2/actions/download/png-item.d.ts +24 -0
- package/dist/types/widgets-v2/actions/download/style.d.ts +1 -0
- package/dist/types/widgets-v2/actions/download/types.d.ts +35 -0
- package/dist/types/widgets-v2/actions/fullscreen/fullscreen.d.ts +59 -0
- package/dist/types/widgets-v2/actions/fullscreen/index.d.ts +3 -0
- package/dist/types/widgets-v2/actions/fullscreen/labels.d.ts +5 -0
- package/dist/types/widgets-v2/actions/fullscreen/style.d.ts +48 -0
- package/dist/types/widgets-v2/actions/fullscreen/types.d.ts +14 -0
- package/dist/types/widgets-v2/actions/index.d.ts +9 -0
- package/dist/types/widgets-v2/actions/lock-selection/index.d.ts +3 -0
- package/dist/types/widgets-v2/actions/lock-selection/labels.d.ts +6 -0
- package/dist/types/widgets-v2/actions/lock-selection/lock-selection.d.ts +36 -0
- package/dist/types/widgets-v2/actions/lock-selection/style.d.ts +12 -0
- package/dist/types/widgets-v2/actions/lock-selection/transforms.d.ts +6 -0
- package/dist/types/widgets-v2/actions/relative-data/index.d.ts +3 -0
- package/dist/types/widgets-v2/actions/relative-data/labels.d.ts +5 -0
- package/dist/types/widgets-v2/actions/relative-data/relative-data.d.ts +39 -0
- package/dist/types/widgets-v2/actions/relative-data/style.d.ts +12 -0
- package/dist/types/widgets-v2/actions/relative-data/transforms.d.ts +30 -0
- package/dist/types/widgets-v2/actions/relative-data/transforms.test.d.ts +1 -0
- package/dist/types/widgets-v2/actions/searcher/filter.d.ts +6 -0
- package/dist/types/widgets-v2/actions/searcher/index.d.ts +4 -0
- package/dist/types/widgets-v2/actions/searcher/labels.d.ts +7 -0
- package/dist/types/widgets-v2/actions/searcher/searcher-toggle.d.ts +23 -0
- package/dist/types/widgets-v2/actions/searcher/searcher.d.ts +11 -0
- package/dist/types/widgets-v2/actions/searcher/style.d.ts +16 -0
- package/dist/types/widgets-v2/actions/stack-toggle/index.d.ts +3 -0
- package/dist/types/widgets-v2/actions/stack-toggle/labels.d.ts +5 -0
- package/dist/types/widgets-v2/actions/stack-toggle/stack-toggle.d.ts +10 -0
- package/dist/types/widgets-v2/actions/stack-toggle/style.d.ts +12 -0
- package/dist/types/widgets-v2/actions/stack-toggle/transforms.d.ts +13 -0
- package/dist/types/widgets-v2/actions/stack-toggle/transforms.test.d.ts +1 -0
- package/dist/types/widgets-v2/actions/zoom-toggle/index.d.ts +3 -0
- package/dist/types/widgets-v2/actions/zoom-toggle/labels.d.ts +5 -0
- package/dist/types/widgets-v2/actions/zoom-toggle/style.d.ts +12 -0
- package/dist/types/widgets-v2/actions/zoom-toggle/transforms.d.ts +51 -0
- package/dist/types/widgets-v2/actions/zoom-toggle/transforms.test.d.ts +1 -0
- package/dist/types/widgets-v2/actions/zoom-toggle/zoom-toggle.d.ts +35 -0
- package/dist/types/widgets-v2/bar/download.d.ts +24 -0
- package/dist/types/widgets-v2/bar/index.d.ts +4 -0
- package/dist/types/widgets-v2/bar/options.d.ts +43 -0
- package/dist/types/widgets-v2/bar/options.test.d.ts +1 -0
- package/dist/types/widgets-v2/bar/skeleton.d.ts +6 -0
- package/dist/types/widgets-v2/bar/types.d.ts +41 -0
- package/dist/types/widgets-v2/category/category-ui.d.ts +81 -0
- package/dist/types/widgets-v2/category/category.d.ts +48 -0
- package/dist/types/widgets-v2/category/components/category-bar-stacked.d.ts +28 -0
- package/dist/types/widgets-v2/category/components/category-bar.d.ts +23 -0
- package/dist/types/widgets-v2/category/components/category-legend.d.ts +18 -0
- package/dist/types/widgets-v2/category/components/category-row-multi.d.ts +31 -0
- package/dist/types/widgets-v2/category/components/category-row-other.d.ts +13 -0
- package/dist/types/widgets-v2/category/components/category-row-single.d.ts +28 -0
- package/dist/types/widgets-v2/category/components/category-row-stacked.d.ts +38 -0
- package/dist/types/widgets-v2/category/download.d.ts +16 -0
- package/dist/types/widgets-v2/category/download.test.d.ts +1 -0
- package/dist/types/widgets-v2/category/index.d.ts +10 -0
- package/dist/types/widgets-v2/category/skeleton.d.ts +11 -0
- package/dist/types/widgets-v2/category/style.d.ts +166 -0
- package/dist/types/widgets-v2/category/types.d.ts +49 -0
- package/dist/types/widgets-v2/echart/echart-ui.d.ts +44 -0
- package/dist/types/widgets-v2/echart/echart.d.ts +75 -0
- package/dist/types/widgets-v2/echart/index.d.ts +4 -0
- package/dist/types/widgets-v2/echart/shared-resize-observer.d.ts +5 -0
- package/dist/types/widgets-v2/echart/shared-resize-observer.test.d.ts +1 -0
- package/dist/types/widgets-v2/echart/style.d.ts +6 -0
- package/dist/types/widgets-v2/echart/use-chart-selection.d.ts +51 -0
- package/dist/types/widgets-v2/formula/delta.d.ts +22 -0
- package/dist/types/widgets-v2/formula/download.d.ts +20 -0
- package/dist/types/widgets-v2/formula/formula-ui.d.ts +20 -0
- package/dist/types/widgets-v2/formula/formula.d.ts +8 -0
- package/dist/types/widgets-v2/formula/index.d.ts +11 -0
- package/dist/types/widgets-v2/formula/note.d.ts +11 -0
- package/dist/types/widgets-v2/formula/prefix.d.ts +12 -0
- package/dist/types/widgets-v2/formula/series.d.ts +16 -0
- package/dist/types/widgets-v2/formula/skeleton.d.ts +4 -0
- package/dist/types/widgets-v2/formula/style.d.ts +29 -0
- package/dist/types/widgets-v2/formula/suffix.d.ts +12 -0
- package/dist/types/widgets-v2/formula/types.d.ts +40 -0
- package/dist/types/widgets-v2/formula/value.d.ts +14 -0
- package/dist/types/widgets-v2/histogram/download.d.ts +17 -0
- package/dist/types/widgets-v2/histogram/download.test.d.ts +1 -0
- package/dist/types/widgets-v2/histogram/index.d.ts +5 -0
- package/dist/types/widgets-v2/histogram/options.d.ts +42 -0
- package/dist/types/widgets-v2/histogram/options.test.d.ts +1 -0
- package/dist/types/widgets-v2/histogram/skeleton.d.ts +9 -0
- package/dist/types/widgets-v2/histogram/transforms.d.ts +17 -0
- package/dist/types/widgets-v2/histogram/transforms.test.d.ts +1 -0
- package/dist/types/widgets-v2/histogram/types.d.ts +47 -0
- package/dist/types/widgets-v2/index.d.ts +107 -0
- package/dist/types/widgets-v2/markdown/download.d.ts +16 -0
- package/dist/types/widgets-v2/markdown/download.test.d.ts +1 -0
- package/dist/types/widgets-v2/markdown/index.d.ts +6 -0
- package/dist/types/widgets-v2/markdown/markdown-content.d.ts +34 -0
- package/dist/types/widgets-v2/markdown/markdown-ui.d.ts +12 -0
- package/dist/types/widgets-v2/markdown/markdown.d.ts +6 -0
- package/dist/types/widgets-v2/markdown/skeleton.d.ts +4 -0
- package/dist/types/widgets-v2/markdown/style.d.ts +61 -0
- package/dist/types/widgets-v2/markdown/types.d.ts +4 -0
- package/dist/types/widgets-v2/note/labels.d.ts +5 -0
- package/dist/types/widgets-v2/note/style.d.ts +26 -0
- package/dist/types/widgets-v2/note/widget-note.d.ts +46 -0
- package/dist/types/widgets-v2/pie/download.d.ts +17 -0
- package/dist/types/widgets-v2/pie/download.test.d.ts +1 -0
- package/dist/types/widgets-v2/pie/index.d.ts +4 -0
- package/dist/types/widgets-v2/pie/options.d.ts +35 -0
- package/dist/types/widgets-v2/pie/options.test.d.ts +1 -0
- package/dist/types/widgets-v2/pie/skeleton.d.ts +4 -0
- package/dist/types/widgets-v2/pie/types.d.ts +50 -0
- package/dist/types/widgets-v2/provider/widget-provider.d.ts +32 -0
- package/dist/types/widgets-v2/range/index.d.ts +4 -0
- package/dist/types/widgets-v2/range/range-ui.d.ts +19 -0
- package/dist/types/widgets-v2/range/range.d.ts +19 -0
- package/dist/types/widgets-v2/range/skeleton.d.ts +9 -0
- package/dist/types/widgets-v2/range/style.d.ts +40 -0
- package/dist/types/widgets-v2/range/types.d.ts +37 -0
- package/dist/types/widgets-v2/scatterplot/download.d.ts +16 -0
- package/dist/types/widgets-v2/scatterplot/download.test.d.ts +1 -0
- package/dist/types/widgets-v2/scatterplot/index.d.ts +5 -0
- package/dist/types/widgets-v2/scatterplot/options.d.ts +42 -0
- package/dist/types/widgets-v2/scatterplot/options.test.d.ts +1 -0
- package/dist/types/widgets-v2/scatterplot/skeleton.d.ts +12 -0
- package/dist/types/widgets-v2/scatterplot/transforms.d.ts +17 -0
- package/dist/types/widgets-v2/scatterplot/transforms.test.d.ts +1 -0
- package/dist/types/widgets-v2/scatterplot/types.d.ts +50 -0
- package/dist/types/widgets-v2/selection-summary/labels.d.ts +6 -0
- package/dist/types/widgets-v2/selection-summary/selection-summary.d.ts +22 -0
- package/dist/types/widgets-v2/selection-summary/style.d.ts +23 -0
- package/dist/types/widgets-v2/spread/download.d.ts +15 -0
- package/dist/types/widgets-v2/spread/download.test.d.ts +1 -0
- package/dist/types/widgets-v2/spread/index.d.ts +6 -0
- package/dist/types/widgets-v2/spread/separator.d.ts +7 -0
- package/dist/types/widgets-v2/spread/skeleton.d.ts +9 -0
- package/dist/types/widgets-v2/spread/spread-ui.d.ts +18 -0
- package/dist/types/widgets-v2/spread/spread.d.ts +5 -0
- package/dist/types/widgets-v2/spread/types.d.ts +25 -0
- package/dist/types/widgets-v2/state/labels.d.ts +7 -0
- package/dist/types/widgets-v2/state/labels.test.d.ts +1 -0
- package/dist/types/widgets-v2/state/style.d.ts +19 -0
- package/dist/types/widgets-v2/state/widget-state.d.ts +19 -0
- package/dist/types/widgets-v2/stores/index.d.ts +8 -0
- package/dist/types/widgets-v2/stores/pipeline-middleware.d.ts +5 -0
- package/dist/types/widgets-v2/stores/pipeline-middleware.test.d.ts +1 -0
- package/dist/types/widgets-v2/stores/transforms.d.ts +4 -0
- package/dist/types/widgets-v2/stores/transforms.test.d.ts +1 -0
- package/dist/types/widgets-v2/stores/types.d.ts +55 -0
- package/dist/types/widgets-v2/stores/use-echart-instance.d.ts +15 -0
- package/dist/types/widgets-v2/stores/use-transform-enabled.d.ts +17 -0
- package/dist/types/widgets-v2/stores/use-transform.d.ts +12 -0
- package/dist/types/widgets-v2/stores/widget-context.d.ts +2 -0
- package/dist/types/widgets-v2/stores/widget-store-registry.d.ts +74 -0
- package/dist/types/widgets-v2/stores/widget-store-registry.test.d.ts +1 -0
- package/dist/types/widgets-v2/subheader/style.d.ts +10 -0
- package/dist/types/widgets-v2/subheader/subheader.d.ts +11 -0
- package/dist/types/widgets-v2/table/download.d.ts +18 -0
- package/dist/types/widgets-v2/table/download.test.d.ts +1 -0
- package/dist/types/widgets-v2/table/helpers.d.ts +32 -0
- package/dist/types/widgets-v2/table/helpers.test.d.ts +1 -0
- package/dist/types/widgets-v2/table/index.d.ts +7 -0
- package/dist/types/widgets-v2/table/labels.d.ts +22 -0
- package/dist/types/widgets-v2/table/skeleton.d.ts +22 -0
- package/dist/types/widgets-v2/table/style.d.ts +44 -0
- package/dist/types/widgets-v2/table/table-ui.d.ts +38 -0
- package/dist/types/widgets-v2/table/table.d.ts +50 -0
- package/dist/types/widgets-v2/table/types.d.ts +37 -0
- package/dist/types/widgets-v2/test-utils.d.ts +52 -0
- package/dist/types/widgets-v2/timeseries/download.d.ts +17 -0
- package/dist/types/widgets-v2/timeseries/download.test.d.ts +1 -0
- package/dist/types/widgets-v2/timeseries/index.d.ts +4 -0
- package/dist/types/widgets-v2/timeseries/options.d.ts +39 -0
- package/dist/types/widgets-v2/timeseries/options.test.d.ts +1 -0
- package/dist/types/widgets-v2/timeseries/skeleton.d.ts +8 -0
- package/dist/types/widgets-v2/timeseries/types.d.ts +56 -0
- package/dist/types/widgets-v2/toolbox/labels.d.ts +5 -0
- package/dist/types/widgets-v2/toolbox/style.d.ts +30 -0
- package/dist/types/widgets-v2/toolbox/toolbox.d.ts +49 -0
- package/dist/types/widgets-v2/utils/data-zoom-layout.d.ts +11 -0
- package/dist/types/widgets-v2/utils/index.d.ts +2 -0
- package/dist/types/widgets-v2/utils/merge-options.d.ts +12 -0
- package/dist/types/widgets-v2/utils/merge-options.test.d.ts +1 -0
- package/dist/types/widgets-v2/wrapper/index.d.ts +4 -0
- package/dist/types/widgets-v2/wrapper/labels.d.ts +6 -0
- package/dist/types/widgets-v2/wrapper/style.d.ts +111 -0
- package/dist/types/widgets-v2/wrapper/widget-actions.d.ts +22 -0
- package/dist/types/widgets-v2/wrapper/widget-content.d.ts +12 -0
- package/dist/types/widgets-v2/wrapper/widget-wrapper.d.ts +51 -0
- package/dist/use-transform-DXPN3nY7.js +110 -0
- package/dist/use-transform-DXPN3nY7.js.map +1 -0
- package/dist/widget-context-DTGO0Yta.js +13 -0
- package/dist/widget-context-DTGO0Yta.js.map +1 -0
- package/dist/widget-store-registry-_W4Z4xp-.js +178 -0
- package/dist/widget-store-registry-_W4Z4xp-.js.map +1 -0
- package/dist/widgets/actions.js +688 -668
- package/dist/widgets/actions.js.map +1 -1
- package/dist/widgets/bar.js +14 -13
- package/dist/widgets/bar.js.map +1 -1
- package/dist/widgets/histogram.js +38 -37
- package/dist/widgets/histogram.js.map +1 -1
- package/dist/widgets/pie.js +19 -18
- package/dist/widgets/pie.js.map +1 -1
- package/dist/widgets/scatterplot.js +8 -7
- package/dist/widgets/scatterplot.js.map +1 -1
- package/dist/widgets/timeseries.js +11 -10
- package/dist/widgets/timeseries.js.map +1 -1
- package/dist/widgets/utils.js +8 -7
- package/dist/widgets/utils.js.map +1 -1
- package/dist/widgets-v2/actions.js +43 -0
- package/dist/widgets-v2/actions.js.map +1 -0
- package/dist/widgets-v2/bar.js +327 -0
- package/dist/widgets-v2/bar.js.map +1 -0
- package/dist/widgets-v2/category.js +104 -0
- package/dist/widgets-v2/category.js.map +1 -0
- package/dist/widgets-v2/echart.js +57 -0
- package/dist/widgets-v2/echart.js.map +1 -0
- package/dist/widgets-v2/formula.js +74 -0
- package/dist/widgets-v2/formula.js.map +1 -0
- package/dist/widgets-v2/histogram.js +350 -0
- package/dist/widgets-v2/histogram.js.map +1 -0
- package/dist/widgets-v2/markdown.js +68 -0
- package/dist/widgets-v2/markdown.js.map +1 -0
- package/dist/widgets-v2/pie.js +381 -0
- package/dist/widgets-v2/pie.js.map +1 -0
- package/dist/widgets-v2/range.js +52 -0
- package/dist/widgets-v2/range.js.map +1 -0
- package/dist/widgets-v2/scatterplot.js +405 -0
- package/dist/widgets-v2/scatterplot.js.map +1 -0
- package/dist/widgets-v2/spread.js +72 -0
- package/dist/widgets-v2/spread.js.map +1 -0
- package/dist/widgets-v2/stores.js +42 -0
- package/dist/widgets-v2/stores.js.map +1 -0
- package/dist/widgets-v2/table.js +78 -0
- package/dist/widgets-v2/table.js.map +1 -0
- package/dist/widgets-v2/timeseries.js +352 -0
- package/dist/widgets-v2/timeseries.js.map +1 -0
- package/dist/widgets-v2/utils.js +7 -0
- package/dist/widgets-v2/utils.js.map +1 -0
- package/dist/widgets-v2.js +953 -0
- package/dist/widgets-v2.js.map +1 -0
- package/package.json +73 -5
- package/src/components/lasso-tool/chip.test.tsx +176 -0
- package/src/components/lasso-tool/lasso-tool-inline.test.tsx +171 -0
- package/src/components/lasso-tool/lasso-tool.test.tsx +198 -0
- package/src/components/list-data/list-data.test.tsx +73 -0
- package/src/components/no-data-alert/no-data-alert.test.tsx +38 -0
- package/src/components/responsive-drawer/responsive-drawer.test.tsx +68 -0
- package/src/widgets/actions/brush-toggle/brush-overlay.test.tsx +465 -0
- package/src/widgets/actions/brush-toggle/brush-overlay.tsx +24 -2
- package/src/widgets/actions/brush-toggle/brush-toggle.test.tsx +208 -0
- package/src/widgets/actions/change-column/change-column-dnd.test.tsx +193 -0
- package/src/widgets/actions/change-column/sortable-column-item.test.tsx +124 -0
- package/src/widgets/actions/zoom-toggle/zoom-toggle.test.tsx +322 -0
- package/src/widgets/category/components/category-rows.test.tsx +213 -0
- package/src/widgets/echart/utils.test.ts +277 -0
- package/src/widgets/formula/config.test.ts +37 -0
- package/src/widgets/histogram/config.ts +1 -3
- package/src/widgets/range/components/range-item.test.tsx +243 -0
- package/src/widgets/stores/widget-store-branches.test.ts +275 -0
- package/src/widgets/table/config.test.ts +65 -0
- package/src/widgets/utils/chart-config/option-builders.test.ts +188 -0
- package/src/widgets-v2/PERFORMANCE.md +189 -0
- package/src/widgets-v2/actions/brush-toggle/brush-toggle.test.tsx +180 -0
- package/src/widgets-v2/actions/brush-toggle/brush-toggle.tsx +154 -0
- package/src/widgets-v2/actions/brush-toggle/index.ts +3 -0
- package/src/widgets-v2/actions/brush-toggle/labels.ts +9 -0
- package/src/widgets-v2/actions/brush-toggle/style.ts +11 -0
- package/src/widgets-v2/actions/brush-toggle/transforms.test.ts +47 -0
- package/src/widgets-v2/actions/brush-toggle/transforms.ts +31 -0
- package/src/widgets-v2/actions/change-column/change-column-icon.tsx +14 -0
- package/src/widgets-v2/actions/change-column/change-column.test.tsx +59 -0
- package/src/widgets-v2/actions/change-column/change-column.tsx +180 -0
- package/src/widgets-v2/actions/change-column/index.ts +7 -0
- package/src/widgets-v2/actions/change-column/labels.ts +9 -0
- package/src/widgets-v2/actions/change-column/sortable-column-item.tsx +56 -0
- package/src/widgets-v2/actions/change-column/style.ts +32 -0
- package/src/widgets-v2/actions/change-column/types.ts +11 -0
- package/src/widgets-v2/actions/download/download.test.tsx +327 -0
- package/src/widgets-v2/actions/download/download.tsx +144 -0
- package/src/widgets-v2/actions/download/exports.test.tsx +198 -0
- package/src/widgets-v2/actions/download/exports.ts +115 -0
- package/src/widgets-v2/actions/download/icons.tsx +26 -0
- package/src/widgets-v2/actions/download/index.ts +13 -0
- package/src/widgets-v2/actions/download/labels.ts +16 -0
- package/src/widgets-v2/actions/download/png-item.test.tsx +72 -0
- package/src/widgets-v2/actions/download/png-item.tsx +52 -0
- package/src/widgets-v2/actions/download/style.ts +3 -0
- package/src/widgets-v2/actions/download/types.ts +32 -0
- package/src/widgets-v2/actions/fullscreen/fullscreen.test.tsx +150 -0
- package/src/widgets-v2/actions/fullscreen/fullscreen.tsx +230 -0
- package/src/widgets-v2/actions/fullscreen/index.ts +7 -0
- package/src/widgets-v2/actions/fullscreen/labels.ts +9 -0
- package/src/widgets-v2/actions/fullscreen/style.ts +59 -0
- package/src/widgets-v2/actions/fullscreen/types.ts +15 -0
- package/src/widgets-v2/actions/index.ts +82 -0
- package/src/widgets-v2/actions/lock-selection/index.ts +10 -0
- package/src/widgets-v2/actions/lock-selection/labels.ts +11 -0
- package/src/widgets-v2/actions/lock-selection/lock-selection.test.tsx +187 -0
- package/src/widgets-v2/actions/lock-selection/lock-selection.tsx +130 -0
- package/src/widgets-v2/actions/lock-selection/style.ts +11 -0
- package/src/widgets-v2/actions/lock-selection/transforms.ts +27 -0
- package/src/widgets-v2/actions/relative-data/index.ts +3 -0
- package/src/widgets-v2/actions/relative-data/labels.ts +9 -0
- package/src/widgets-v2/actions/relative-data/relative-data.test.tsx +71 -0
- package/src/widgets-v2/actions/relative-data/relative-data.tsx +107 -0
- package/src/widgets-v2/actions/relative-data/style.ts +11 -0
- package/src/widgets-v2/actions/relative-data/transforms.test.ts +151 -0
- package/src/widgets-v2/actions/relative-data/transforms.ts +70 -0
- package/src/widgets-v2/actions/searcher/filter.ts +28 -0
- package/src/widgets-v2/actions/searcher/index.ts +8 -0
- package/src/widgets-v2/actions/searcher/labels.ts +13 -0
- package/src/widgets-v2/actions/searcher/searcher-toggle.tsx +91 -0
- package/src/widgets-v2/actions/searcher/searcher.test.tsx +92 -0
- package/src/widgets-v2/actions/searcher/searcher.tsx +112 -0
- package/src/widgets-v2/actions/searcher/style.ts +15 -0
- package/src/widgets-v2/actions/stack-toggle/index.ts +3 -0
- package/src/widgets-v2/actions/stack-toggle/labels.ts +9 -0
- package/src/widgets-v2/actions/stack-toggle/stack-toggle.test.tsx +61 -0
- package/src/widgets-v2/actions/stack-toggle/stack-toggle.tsx +54 -0
- package/src/widgets-v2/actions/stack-toggle/style.ts +11 -0
- package/src/widgets-v2/actions/stack-toggle/transforms.test.ts +43 -0
- package/src/widgets-v2/actions/stack-toggle/transforms.ts +25 -0
- package/src/widgets-v2/actions/zoom-toggle/index.ts +9 -0
- package/src/widgets-v2/actions/zoom-toggle/labels.ts +9 -0
- package/src/widgets-v2/actions/zoom-toggle/style.ts +11 -0
- package/src/widgets-v2/actions/zoom-toggle/transforms.test.ts +148 -0
- package/src/widgets-v2/actions/zoom-toggle/transforms.ts +171 -0
- package/src/widgets-v2/actions/zoom-toggle/zoom-toggle.test.tsx +107 -0
- package/src/widgets-v2/actions/zoom-toggle/zoom-toggle.tsx +106 -0
- package/src/widgets-v2/bar/download.test.tsx +91 -0
- package/src/widgets-v2/bar/download.tsx +66 -0
- package/src/widgets-v2/bar/index.ts +10 -0
- package/src/widgets-v2/bar/options.test.ts +317 -0
- package/src/widgets-v2/bar/options.ts +326 -0
- package/src/widgets-v2/bar/skeleton.test.tsx +19 -0
- package/src/widgets-v2/bar/skeleton.tsx +69 -0
- package/src/widgets-v2/bar/types.ts +46 -0
- package/src/widgets-v2/category/category-ui.test.tsx +746 -0
- package/src/widgets-v2/category/category-ui.tsx +389 -0
- package/src/widgets-v2/category/category.relative-data.test.tsx +107 -0
- package/src/widgets-v2/category/category.stack-toggle.test.tsx +85 -0
- package/src/widgets-v2/category/category.test.tsx +305 -0
- package/src/widgets-v2/category/category.tsx +121 -0
- package/src/widgets-v2/category/components/category-bar-stacked.test.tsx +121 -0
- package/src/widgets-v2/category/components/category-bar-stacked.tsx +73 -0
- package/src/widgets-v2/category/components/category-bar.test.tsx +64 -0
- package/src/widgets-v2/category/components/category-bar.tsx +49 -0
- package/src/widgets-v2/category/components/category-legend.test.tsx +51 -0
- package/src/widgets-v2/category/components/category-legend.tsx +39 -0
- package/src/widgets-v2/category/components/category-row-multi.tsx +86 -0
- package/src/widgets-v2/category/components/category-row-other.test.tsx +28 -0
- package/src/widgets-v2/category/components/category-row-other.tsx +33 -0
- package/src/widgets-v2/category/components/category-row-single.tsx +76 -0
- package/src/widgets-v2/category/components/category-row-stacked.test.tsx +244 -0
- package/src/widgets-v2/category/components/category-row-stacked.tsx +99 -0
- package/src/widgets-v2/category/download.test.ts +71 -0
- package/src/widgets-v2/category/download.ts +54 -0
- package/src/widgets-v2/category/index.ts +32 -0
- package/src/widgets-v2/category/skeleton.test.tsx +26 -0
- package/src/widgets-v2/category/skeleton.tsx +74 -0
- package/src/widgets-v2/category/style.ts +290 -0
- package/src/widgets-v2/category/types.ts +54 -0
- package/src/widgets-v2/echart/echart-ui.test.tsx +232 -0
- package/src/widgets-v2/echart/echart-ui.tsx +184 -0
- package/src/widgets-v2/echart/echart.test.tsx +229 -0
- package/src/widgets-v2/echart/echart.tsx +199 -0
- package/src/widgets-v2/echart/index.ts +22 -0
- package/src/widgets-v2/echart/shared-resize-observer.test.ts +91 -0
- package/src/widgets-v2/echart/shared-resize-observer.ts +56 -0
- package/src/widgets-v2/echart/style.ts +8 -0
- package/src/widgets-v2/echart/use-chart-selection.test.tsx +118 -0
- package/src/widgets-v2/echart/use-chart-selection.ts +115 -0
- package/src/widgets-v2/formula/delta.tsx +61 -0
- package/src/widgets-v2/formula/download.test.tsx +65 -0
- package/src/widgets-v2/formula/download.tsx +69 -0
- package/src/widgets-v2/formula/formula-ui.test.tsx +91 -0
- package/src/widgets-v2/formula/formula-ui.tsx +66 -0
- package/src/widgets-v2/formula/formula.test.tsx +50 -0
- package/src/widgets-v2/formula/formula.tsx +34 -0
- package/src/widgets-v2/formula/index.ts +17 -0
- package/src/widgets-v2/formula/note.tsx +25 -0
- package/src/widgets-v2/formula/prefix.tsx +25 -0
- package/src/widgets-v2/formula/series.tsx +67 -0
- package/src/widgets-v2/formula/skeleton.test.tsx +21 -0
- package/src/widgets-v2/formula/skeleton.tsx +27 -0
- package/src/widgets-v2/formula/style.ts +31 -0
- package/src/widgets-v2/formula/subcomponents.test.tsx +107 -0
- package/src/widgets-v2/formula/suffix.tsx +25 -0
- package/src/widgets-v2/formula/types.ts +44 -0
- package/src/widgets-v2/formula/value.tsx +31 -0
- package/src/widgets-v2/histogram/download.test.ts +94 -0
- package/src/widgets-v2/histogram/download.ts +60 -0
- package/src/widgets-v2/histogram/index.ts +10 -0
- package/src/widgets-v2/histogram/options.test.ts +304 -0
- package/src/widgets-v2/histogram/options.ts +337 -0
- package/src/widgets-v2/histogram/skeleton.test.tsx +16 -0
- package/src/widgets-v2/histogram/skeleton.tsx +70 -0
- package/src/widgets-v2/histogram/transforms.test.ts +46 -0
- package/src/widgets-v2/histogram/transforms.ts +30 -0
- package/src/widgets-v2/histogram/types.ts +51 -0
- package/src/widgets-v2/index.ts +201 -0
- package/src/widgets-v2/markdown/download.test.ts +66 -0
- package/src/widgets-v2/markdown/download.ts +53 -0
- package/src/widgets-v2/markdown/index.ts +6 -0
- package/src/widgets-v2/markdown/markdown-content.test.tsx +155 -0
- package/src/widgets-v2/markdown/markdown-content.tsx +72 -0
- package/src/widgets-v2/markdown/markdown-ui.test.tsx +75 -0
- package/src/widgets-v2/markdown/markdown-ui.tsx +55 -0
- package/src/widgets-v2/markdown/markdown.test.tsx +39 -0
- package/src/widgets-v2/markdown/markdown.tsx +17 -0
- package/src/widgets-v2/markdown/skeleton.test.tsx +15 -0
- package/src/widgets-v2/markdown/skeleton.tsx +32 -0
- package/src/widgets-v2/markdown/style.ts +53 -0
- package/src/widgets-v2/markdown/types.ts +4 -0
- package/src/widgets-v2/note/labels.ts +9 -0
- package/src/widgets-v2/note/style.ts +26 -0
- package/src/widgets-v2/note/widget-note.test.tsx +158 -0
- package/src/widgets-v2/note/widget-note.tsx +172 -0
- package/src/widgets-v2/pie/download.test.ts +78 -0
- package/src/widgets-v2/pie/download.ts +55 -0
- package/src/widgets-v2/pie/index.ts +10 -0
- package/src/widgets-v2/pie/options.test.ts +585 -0
- package/src/widgets-v2/pie/options.ts +509 -0
- package/src/widgets-v2/pie/skeleton.test.tsx +17 -0
- package/src/widgets-v2/pie/skeleton.tsx +32 -0
- package/src/widgets-v2/pie/types.ts +55 -0
- package/src/widgets-v2/provider/widget-provider.test.tsx +119 -0
- package/src/widgets-v2/provider/widget-provider.tsx +111 -0
- package/src/widgets-v2/range/index.ts +4 -0
- package/src/widgets-v2/range/range-ui.test.tsx +130 -0
- package/src/widgets-v2/range/range-ui.tsx +211 -0
- package/src/widgets-v2/range/range.test.tsx +68 -0
- package/src/widgets-v2/range/range.tsx +46 -0
- package/src/widgets-v2/range/skeleton.test.tsx +17 -0
- package/src/widgets-v2/range/skeleton.tsx +47 -0
- package/src/widgets-v2/range/style.ts +41 -0
- package/src/widgets-v2/range/types.ts +37 -0
- package/src/widgets-v2/scatterplot/download.test.ts +71 -0
- package/src/widgets-v2/scatterplot/download.ts +54 -0
- package/src/widgets-v2/scatterplot/index.ts +11 -0
- package/src/widgets-v2/scatterplot/options.test.ts +399 -0
- package/src/widgets-v2/scatterplot/options.ts +421 -0
- package/src/widgets-v2/scatterplot/skeleton.test.tsx +17 -0
- package/src/widgets-v2/scatterplot/skeleton.tsx +84 -0
- package/src/widgets-v2/scatterplot/transforms.test.ts +97 -0
- package/src/widgets-v2/scatterplot/transforms.ts +38 -0
- package/src/widgets-v2/scatterplot/types.ts +55 -0
- package/src/widgets-v2/selection-summary/labels.ts +11 -0
- package/src/widgets-v2/selection-summary/selection-summary.test.tsx +53 -0
- package/src/widgets-v2/selection-summary/selection-summary.tsx +62 -0
- package/src/widgets-v2/selection-summary/style.ts +23 -0
- package/src/widgets-v2/spread/download.test.ts +64 -0
- package/src/widgets-v2/spread/download.ts +59 -0
- package/src/widgets-v2/spread/index.ts +6 -0
- package/src/widgets-v2/spread/separator.tsx +11 -0
- package/src/widgets-v2/spread/skeleton.test.tsx +17 -0
- package/src/widgets-v2/spread/skeleton.tsx +38 -0
- package/src/widgets-v2/spread/spread-ui.test.tsx +108 -0
- package/src/widgets-v2/spread/spread-ui.tsx +52 -0
- package/src/widgets-v2/spread/spread.test.tsx +50 -0
- package/src/widgets-v2/spread/spread.tsx +31 -0
- package/src/widgets-v2/spread/types.ts +27 -0
- package/src/widgets-v2/state/labels.test.ts +33 -0
- package/src/widgets-v2/state/labels.ts +20 -0
- package/src/widgets-v2/state/style.ts +25 -0
- package/src/widgets-v2/state/widget-state.test.tsx +294 -0
- package/src/widgets-v2/state/widget-state.tsx +184 -0
- package/src/widgets-v2/stores/index.ts +49 -0
- package/src/widgets-v2/stores/pipeline-middleware.test.ts +187 -0
- package/src/widgets-v2/stores/pipeline-middleware.ts +91 -0
- package/src/widgets-v2/stores/transforms.test.ts +162 -0
- package/src/widgets-v2/stores/transforms.ts +70 -0
- package/src/widgets-v2/stores/types.ts +64 -0
- package/src/widgets-v2/stores/use-echart-instance.test.tsx +91 -0
- package/src/widgets-v2/stores/use-echart-instance.ts +29 -0
- package/src/widgets-v2/stores/use-transform-enabled.test.tsx +127 -0
- package/src/widgets-v2/stores/use-transform-enabled.ts +25 -0
- package/src/widgets-v2/stores/use-transform.test.tsx +262 -0
- package/src/widgets-v2/stores/use-transform.ts +158 -0
- package/src/widgets-v2/stores/widget-context.test.tsx +58 -0
- package/src/widgets-v2/stores/widget-context.ts +15 -0
- package/src/widgets-v2/stores/widget-store-registry.test.ts +292 -0
- package/src/widgets-v2/stores/widget-store-registry.ts +248 -0
- package/src/widgets-v2/subheader/style.ts +12 -0
- package/src/widgets-v2/subheader/subheader.test.tsx +30 -0
- package/src/widgets-v2/subheader/subheader.tsx +16 -0
- package/src/widgets-v2/table/download.test.ts +75 -0
- package/src/widgets-v2/table/download.ts +47 -0
- package/src/widgets-v2/table/helpers.test.ts +214 -0
- package/src/widgets-v2/table/helpers.ts +136 -0
- package/src/widgets-v2/table/index.ts +23 -0
- package/src/widgets-v2/table/labels.tsx +41 -0
- package/src/widgets-v2/table/skeleton.test.tsx +26 -0
- package/src/widgets-v2/table/skeleton.tsx +65 -0
- package/src/widgets-v2/table/style.ts +46 -0
- package/src/widgets-v2/table/table-ui.test.tsx +200 -0
- package/src/widgets-v2/table/table-ui.tsx +331 -0
- package/src/widgets-v2/table/table.test.tsx +119 -0
- package/src/widgets-v2/table/table.tsx +174 -0
- package/src/widgets-v2/table/types.ts +44 -0
- package/src/widgets-v2/test-utils.ts +107 -0
- package/src/widgets-v2/timeseries/download.test.ts +95 -0
- package/src/widgets-v2/timeseries/download.ts +86 -0
- package/src/widgets-v2/timeseries/index.ts +10 -0
- package/src/widgets-v2/timeseries/options.test.ts +379 -0
- package/src/widgets-v2/timeseries/options.ts +341 -0
- package/src/widgets-v2/timeseries/skeleton.test.tsx +13 -0
- package/src/widgets-v2/timeseries/skeleton.tsx +76 -0
- package/src/widgets-v2/timeseries/types.ts +61 -0
- package/src/widgets-v2/toolbox/labels.ts +9 -0
- package/src/widgets-v2/toolbox/style.ts +33 -0
- package/src/widgets-v2/toolbox/toolbox.test.tsx +200 -0
- package/src/widgets-v2/toolbox/toolbox.tsx +309 -0
- package/src/widgets-v2/utils/data-zoom-layout.ts +26 -0
- package/src/widgets-v2/utils/index.ts +2 -0
- package/src/widgets-v2/utils/merge-options.test.ts +52 -0
- package/src/widgets-v2/utils/merge-options.ts +50 -0
- package/src/widgets-v2/wrapper/index.ts +14 -0
- package/src/widgets-v2/wrapper/labels.ts +11 -0
- package/src/widgets-v2/wrapper/style.ts +134 -0
- package/src/widgets-v2/wrapper/widget-actions.test.tsx +52 -0
- package/src/widgets-v2/wrapper/widget-actions.tsx +43 -0
- package/src/widgets-v2/wrapper/widget-content.test.tsx +27 -0
- package/src/widgets-v2/wrapper/widget-content.tsx +29 -0
- package/src/widgets-v2/wrapper/widget-wrapper.test.tsx +159 -0
- package/src/widgets-v2/wrapper/widget-wrapper.tsx +178 -0
- package/dist/styles-BYTyKQFP.js.map +0 -1
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { jsx as f } from "react/jsx-runtime";
|
|
2
|
+
import { c as p } from "react/compiler-runtime";
|
|
3
|
+
import { Typography as m, Avatar as u } from "@mui/material";
|
|
4
|
+
function _(i) {
|
|
5
|
+
const t = p(4), {
|
|
6
|
+
children: o,
|
|
7
|
+
TypographyProps: e
|
|
8
|
+
} = i;
|
|
9
|
+
let n;
|
|
10
|
+
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = {
|
|
11
|
+
m: 0
|
|
12
|
+
}, t[0] = n) : n = t[0];
|
|
13
|
+
let r;
|
|
14
|
+
return t[1] !== e || t[2] !== o ? (r = /* @__PURE__ */ f(m, { variant: "caption", component: "p", color: "text.secondary", sx: n, ...e, children: o }), t[1] = e, t[2] = o, t[3] = r) : r = t[3], r;
|
|
15
|
+
}
|
|
16
|
+
function v(i) {
|
|
17
|
+
const t = p(4), {
|
|
18
|
+
children: o,
|
|
19
|
+
TypographyProps: e
|
|
20
|
+
} = i;
|
|
21
|
+
let n;
|
|
22
|
+
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = {
|
|
23
|
+
fontWeight: 600,
|
|
24
|
+
color: "text.secondary",
|
|
25
|
+
lineHeight: 1
|
|
26
|
+
}, t[0] = n) : n = t[0];
|
|
27
|
+
let r;
|
|
28
|
+
return t[1] !== e || t[2] !== o ? (r = /* @__PURE__ */ f(m, { variant: "h5", component: "span", sx: n, ...e, children: o }), t[1] = e, t[2] = o, t[3] = r) : r = t[3], r;
|
|
29
|
+
}
|
|
30
|
+
function W(i) {
|
|
31
|
+
const t = p(14), {
|
|
32
|
+
name: o,
|
|
33
|
+
color: e,
|
|
34
|
+
size: n,
|
|
35
|
+
AvatarProps: r
|
|
36
|
+
} = i, s = n === void 0 ? 24 : n;
|
|
37
|
+
let l;
|
|
38
|
+
t[0] !== o ? (l = o.charAt(0).toUpperCase(), t[0] = o, t[1] = l) : l = t[1];
|
|
39
|
+
const y = l, g = s * 0.5, x = e ?? "action.disabledBackground";
|
|
40
|
+
let a;
|
|
41
|
+
t[2] !== e ? (a = e ? (d) => d.palette.getContrastText(b(d, e)) : "text.primary", t[2] = e, t[3] = a) : a = t[3];
|
|
42
|
+
let c;
|
|
43
|
+
t[4] !== s || t[5] !== g || t[6] !== x || t[7] !== a ? (c = {
|
|
44
|
+
width: s,
|
|
45
|
+
height: s,
|
|
46
|
+
fontSize: g,
|
|
47
|
+
fontWeight: 600,
|
|
48
|
+
bgcolor: x,
|
|
49
|
+
color: a
|
|
50
|
+
}, t[4] = s, t[5] = g, t[6] = x, t[7] = a, t[8] = c) : c = t[8];
|
|
51
|
+
let h;
|
|
52
|
+
return t[9] !== r || t[10] !== y || t[11] !== o || t[12] !== c ? (h = /* @__PURE__ */ f(u, { "aria-label": o, sx: c, ...r, children: y }), t[9] = r, t[10] = y, t[11] = o, t[12] = c, t[13] = h) : h = t[13], h;
|
|
53
|
+
}
|
|
54
|
+
function b(i, t) {
|
|
55
|
+
if (!t.includes(".")) return t;
|
|
56
|
+
const o = t.split(".");
|
|
57
|
+
let e = i.palette;
|
|
58
|
+
for (const n of o)
|
|
59
|
+
if (e && typeof e == "object" && n in e)
|
|
60
|
+
e = e[n];
|
|
61
|
+
else
|
|
62
|
+
return t;
|
|
63
|
+
return typeof e == "string" ? e : t;
|
|
64
|
+
}
|
|
65
|
+
function $(i) {
|
|
66
|
+
const t = p(4), {
|
|
67
|
+
children: o,
|
|
68
|
+
TypographyProps: e
|
|
69
|
+
} = i;
|
|
70
|
+
let n;
|
|
71
|
+
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = {
|
|
72
|
+
fontWeight: 600,
|
|
73
|
+
color: "text.secondary",
|
|
74
|
+
lineHeight: 1
|
|
75
|
+
}, t[0] = n) : n = t[0];
|
|
76
|
+
let r;
|
|
77
|
+
return t[1] !== e || t[2] !== o ? (r = /* @__PURE__ */ f(m, { variant: "h5", component: "span", sx: n, ...e, children: o }), t[1] = e, t[2] = o, t[3] = r) : r = t[3], r;
|
|
78
|
+
}
|
|
79
|
+
function C(i) {
|
|
80
|
+
const t = p(6), {
|
|
81
|
+
children: o,
|
|
82
|
+
color: e,
|
|
83
|
+
TypographyProps: n
|
|
84
|
+
} = i, r = e ?? "text.primary";
|
|
85
|
+
let s;
|
|
86
|
+
t[0] !== r ? (s = {
|
|
87
|
+
fontWeight: 600,
|
|
88
|
+
color: r,
|
|
89
|
+
lineHeight: 1
|
|
90
|
+
}, t[0] = r, t[1] = s) : s = t[1];
|
|
91
|
+
let l;
|
|
92
|
+
return t[2] !== n || t[3] !== o || t[4] !== s ? (l = /* @__PURE__ */ f(m, { variant: "h5", component: "span", sx: s, ...n, children: o }), t[2] = n, t[3] = o, t[4] = s, t[5] = l) : l = t[5], l;
|
|
93
|
+
}
|
|
94
|
+
const w = {
|
|
95
|
+
root: {
|
|
96
|
+
display: "flex",
|
|
97
|
+
flexDirection: "column",
|
|
98
|
+
gap: 2,
|
|
99
|
+
alignItems: "stretch"
|
|
100
|
+
},
|
|
101
|
+
row: {
|
|
102
|
+
display: "flex",
|
|
103
|
+
alignItems: "flex-start",
|
|
104
|
+
gap: 1.5
|
|
105
|
+
},
|
|
106
|
+
body: {
|
|
107
|
+
flex: 1,
|
|
108
|
+
minWidth: 0,
|
|
109
|
+
display: "flex",
|
|
110
|
+
flexDirection: "column",
|
|
111
|
+
gap: 0.25
|
|
112
|
+
},
|
|
113
|
+
valueRow: {
|
|
114
|
+
display: "inline-flex",
|
|
115
|
+
alignItems: "baseline",
|
|
116
|
+
gap: 0.25
|
|
117
|
+
},
|
|
118
|
+
delta: {
|
|
119
|
+
alignSelf: "center",
|
|
120
|
+
flexShrink: 0
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
export {
|
|
124
|
+
_ as N,
|
|
125
|
+
v as P,
|
|
126
|
+
W as S,
|
|
127
|
+
C as V,
|
|
128
|
+
$ as a,
|
|
129
|
+
w as s
|
|
130
|
+
};
|
|
131
|
+
//# sourceMappingURL=style-DVnT6HC1.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"style-DVnT6HC1.js","sources":["../src/widgets-v2/formula/note.tsx","../src/widgets-v2/formula/prefix.tsx","../src/widgets-v2/formula/series.tsx","../src/widgets-v2/formula/suffix.tsx","../src/widgets-v2/formula/value.tsx","../src/widgets-v2/formula/style.ts"],"sourcesContent":["import { Typography, type TypographyProps } from '@mui/material'\nimport type { ReactNode } from 'react'\n\nexport interface NoteProps {\n children: ReactNode\n TypographyProps?: TypographyProps\n}\n\n/**\n * Small subdued caption rendered below a Formula value. Use for short\n * descriptive text (e.g. \"Last 7 days\", \"Excludes refunds\").\n */\nexport function Note({ children, TypographyProps }: NoteProps) {\n return (\n <Typography\n variant='caption'\n component='p'\n color='text.secondary'\n sx={{ m: 0 }}\n {...TypographyProps}\n >\n {children}\n </Typography>\n )\n}\n","import { Typography, type TypographyProps } from '@mui/material'\nimport type { ReactNode } from 'react'\n\nexport interface PrefixProps {\n children: ReactNode\n TypographyProps?: TypographyProps\n}\n\n/**\n * Prefix slot for a Formula KPI — large, bold, muted (`text.secondary`).\n * Composable building block for custom formula layouts; the canonical\n * {@link FormulaUI} renders one of these per item when `prefix` is set.\n */\nexport function Prefix({ children, TypographyProps }: PrefixProps) {\n return (\n <Typography\n variant='h5'\n component='span'\n sx={{ fontWeight: 600, color: 'text.secondary', lineHeight: 1 }}\n {...TypographyProps}\n >\n {children}\n </Typography>\n )\n}\n","import { Avatar, type AvatarProps, type Theme } from '@mui/material'\n\nexport interface SeriesProps {\n /** Used for the avatar's first-letter glyph and as accessible label. */\n name: string\n /** Avatar background colour (any MUI palette path or CSS colour). */\n color?: string\n /** Diameter in px. Default `24`. */\n size?: number\n AvatarProps?: AvatarProps\n}\n\n/**\n * Series indicator — circular avatar showing the first letter of `name`.\n * Background colour is `color` (consumer-supplied) or a neutral disabled\n * colour, with text colour computed for contrast against it.\n */\nexport function Series({\n name,\n color,\n size = 24,\n AvatarProps: avatarProps,\n}: SeriesProps) {\n const letter = name.charAt(0).toUpperCase()\n return (\n <Avatar\n aria-label={name}\n sx={{\n width: size,\n height: size,\n fontSize: size * 0.5,\n fontWeight: 600,\n bgcolor: color ?? 'action.disabledBackground',\n color: color\n ? (theme: Theme) =>\n theme.palette.getContrastText(toCssColor(theme, color))\n : 'text.primary',\n }}\n {...avatarProps}\n >\n {letter}\n </Avatar>\n )\n}\n\n/**\n * Resolve a palette path (e.g. `\"primary.main\"`) to a hex/rgb string so that\n * `getContrastText` — which doesn't accept dotted paths — produces a sensible\n * text colour. Non-palette strings (raw `#hex`, `rgb(...)`) pass through.\n */\nfunction toCssColor(theme: Theme, value: string): string {\n if (!value.includes('.')) return value\n const parts = value.split('.')\n let cur: unknown = theme.palette\n for (const p of parts) {\n if (\n cur &&\n typeof cur === 'object' &&\n p in (cur as Record<string, unknown>)\n ) {\n cur = (cur as Record<string, unknown>)[p]\n } else {\n return value\n }\n }\n return typeof cur === 'string' ? cur : value\n}\n","import { Typography, type TypographyProps } from '@mui/material'\nimport type { ReactNode } from 'react'\n\nexport interface SuffixProps {\n children: ReactNode\n TypographyProps?: TypographyProps\n}\n\n/**\n * Suffix slot for a Formula KPI — large, bold, muted (`text.secondary`).\n * Composable building block for custom formula layouts; the canonical\n * {@link FormulaUI} renders one of these per item when `suffix` is set.\n */\nexport function Suffix({ children, TypographyProps }: SuffixProps) {\n return (\n <Typography\n variant='h5'\n component='span'\n sx={{ fontWeight: 600, color: 'text.secondary', lineHeight: 1 }}\n {...TypographyProps}\n >\n {children}\n </Typography>\n )\n}\n","import { Typography, type TypographyProps } from '@mui/material'\nimport type { ReactNode } from 'react'\n\nexport interface ValueProps {\n children: ReactNode\n /** Override the default `text.primary` color — useful for sparkline tints. */\n color?: string\n TypographyProps?: TypographyProps\n}\n\n/**\n * Value slot for a Formula KPI — large, bold, primary text color. Composable\n * building block for custom formula layouts; the canonical {@link FormulaUI}\n * renders one of these per item.\n */\nexport function Value({ children, color, TypographyProps }: ValueProps) {\n return (\n <Typography\n variant='h5'\n component='span'\n sx={{\n fontWeight: 600,\n color: color ?? 'text.primary',\n lineHeight: 1,\n }}\n {...TypographyProps}\n >\n {children}\n </Typography>\n )\n}\n","import type { SxProps, Theme } from '@mui/material'\n\nexport const styles = {\n root: {\n display: 'flex',\n flexDirection: 'column',\n gap: 2,\n alignItems: 'stretch',\n },\n row: {\n display: 'flex',\n alignItems: 'flex-start',\n gap: 1.5,\n },\n body: {\n flex: 1,\n minWidth: 0,\n display: 'flex',\n flexDirection: 'column',\n gap: 0.25,\n },\n valueRow: {\n display: 'inline-flex',\n alignItems: 'baseline',\n gap: 0.25,\n },\n delta: {\n alignSelf: 'center',\n flexShrink: 0,\n },\n} satisfies Record<string, SxProps<Theme>>\n"],"names":["Note","t0","$","_c","children","TypographyProps","t1","Symbol","for","m","t2","jsx","Typography","Prefix","fontWeight","color","lineHeight","Series","name","size","AvatarProps","avatarProps","undefined","charAt","toUpperCase","letter","t3","t4","t5","theme","palette","getContrastText","toCssColor","t6","width","height","fontSize","bgcolor","t7","Avatar","value","includes","parts","split","cur","p","Suffix","Value","styles","root","display","flexDirection","gap","alignItems","row","body","flex","minWidth","valueRow","delta","alignSelf","flexShrink"],"mappings":"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"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
const t = {
|
|
2
|
+
graph: {
|
|
3
|
+
/**
|
|
4
|
+
* Common container style for chart widget skeletons
|
|
5
|
+
*/
|
|
6
|
+
container: {
|
|
7
|
+
display: "flex",
|
|
8
|
+
alignItems: "center",
|
|
9
|
+
justifyContent: "space-between",
|
|
10
|
+
flexDirection: "column",
|
|
11
|
+
gap: ({
|
|
12
|
+
spacing: e
|
|
13
|
+
}) => e(1),
|
|
14
|
+
height: ({
|
|
15
|
+
spacing: e
|
|
16
|
+
}) => e(38)
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
t as b
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=styles-cohnxh9F.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles-cohnxh9F.js","sources":["../src/widgets/utils/skeleton/styles.ts"],"sourcesContent":["import type { Theme } from '@mui/material'\n\n/**\n * Base skeleton styles shared across all chart widgets\n */\nexport const baseSkeletonStyles = {\n graph: {\n /**\n * Common container style for chart widget skeletons\n */\n container: {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n flexDirection: 'column',\n gap: ({ spacing }: Theme) => spacing(1),\n height: ({ spacing }: Theme) => spacing(38),\n },\n },\n} as const\n"],"names":["baseSkeletonStyles","graph","container","display","alignItems","justifyContent","flexDirection","gap","spacing","height"],"mappings":"AAKO,MAAMA,IAAqB;AAAA,EAChCC,OAAO;AAAA;AAAA;AAAA;AAAA,IAILC,WAAW;AAAA,MACTC,SAAS;AAAA,MACTC,YAAY;AAAA,MACZC,gBAAgB;AAAA,MAChBC,eAAe;AAAA,MACfC,KAAKA,CAAC;AAAA,QAAEC,SAAAA;AAAAA,MAAAA,MAAqBA,EAAQ,CAAC;AAAA,MACtCC,QAAQA,CAAC;AAAA,QAAED,SAAAA;AAAAA,MAAAA,MAAqBA,EAAQ,EAAE;AAAA,IAAA;AAAA,EAC5C;AAEJ;"}
|
|
@@ -0,0 +1,390 @@
|
|
|
1
|
+
import { jsxs as q, Fragment as ge, jsx as f } from "react/jsx-runtime";
|
|
2
|
+
import { c as fe } from "react/compiler-runtime";
|
|
3
|
+
import "react";
|
|
4
|
+
import { u as pe } from "./widget-context-DTGO0Yta.js";
|
|
5
|
+
import { v as ue, u as he, i as le } from "./widget-store-registry-_W4Z4xp-.js";
|
|
6
|
+
import "zustand";
|
|
7
|
+
import { Box as ae, TableCell as Y, Checkbox as ce, TableRow as se, TablePagination as me, TableSortLabel as Se, TableHead as be, TableBody as Pe, TableContainer as ye, Table as Ce, IconButton as oe } from "@mui/material";
|
|
8
|
+
import we from "@mui/icons-material/FirstPage";
|
|
9
|
+
import xe from "@mui/icons-material/KeyboardArrowLeft";
|
|
10
|
+
import ze from "@mui/icons-material/KeyboardArrowRight";
|
|
11
|
+
import Ae from "@mui/icons-material/LastPage";
|
|
12
|
+
const Te = {
|
|
13
|
+
fontWeight: 600,
|
|
14
|
+
color: "text.primary"
|
|
15
|
+
}, ke = {
|
|
16
|
+
selectAll: "Select all rows",
|
|
17
|
+
selectRow: (t) => `Select row ${t}`,
|
|
18
|
+
rowsPerPage: "Rows per page:",
|
|
19
|
+
paginationOf: (t, e, i) => /* @__PURE__ */ q(ge, { children: [
|
|
20
|
+
/* @__PURE__ */ f(ae, { component: "span", sx: Te, children: `${t}–${e}` }),
|
|
21
|
+
` of ${i}`
|
|
22
|
+
] }),
|
|
23
|
+
firstPage: "First page",
|
|
24
|
+
previousPage: "Previous page",
|
|
25
|
+
nextPage: "Next page",
|
|
26
|
+
lastPage: "Last page"
|
|
27
|
+
}, Re = 10, Ie = [10, 25, 50, 100], $ = {
|
|
28
|
+
container: {
|
|
29
|
+
width: "100%",
|
|
30
|
+
overflowX: "auto"
|
|
31
|
+
},
|
|
32
|
+
/**
|
|
33
|
+
* Minimum table width so columns don't collapse to unreadable widths on
|
|
34
|
+
* narrow widget shells. Mirrors v1.
|
|
35
|
+
*/
|
|
36
|
+
table: {
|
|
37
|
+
minWidth: 650
|
|
38
|
+
},
|
|
39
|
+
headerCell: {
|
|
40
|
+
fontWeight: 600,
|
|
41
|
+
backgroundColor: "background.paper"
|
|
42
|
+
},
|
|
43
|
+
/**
|
|
44
|
+
* Strip the bottom border from the last body row so the body flushes
|
|
45
|
+
* against the pagination border instead of doubling it up. Mirrors v1.
|
|
46
|
+
*/
|
|
47
|
+
row: {
|
|
48
|
+
"&:last-child td, &:last-child th": {
|
|
49
|
+
border: 0
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
rowClickable: {
|
|
53
|
+
cursor: "pointer"
|
|
54
|
+
},
|
|
55
|
+
pagination: {
|
|
56
|
+
borderTop: "1px solid",
|
|
57
|
+
borderColor: "divider"
|
|
58
|
+
},
|
|
59
|
+
paginationActions: {
|
|
60
|
+
display: "flex",
|
|
61
|
+
alignItems: "center",
|
|
62
|
+
gap: 0.25,
|
|
63
|
+
ml: 1
|
|
64
|
+
},
|
|
65
|
+
empty: {
|
|
66
|
+
textAlign: "center",
|
|
67
|
+
color: "text.secondary",
|
|
68
|
+
py: 3
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
function Oe(t) {
|
|
72
|
+
const e = fe(78), {
|
|
73
|
+
columns: i,
|
|
74
|
+
rows: n,
|
|
75
|
+
total: c,
|
|
76
|
+
page: r,
|
|
77
|
+
pageSize: g,
|
|
78
|
+
pageSizeOptions: p,
|
|
79
|
+
sort: d,
|
|
80
|
+
selection: S,
|
|
81
|
+
selectable: R,
|
|
82
|
+
onSortChange: b,
|
|
83
|
+
onPageChange: I,
|
|
84
|
+
onPageSizeChange: T,
|
|
85
|
+
onSelectionChange: u,
|
|
86
|
+
onRowClick: j,
|
|
87
|
+
onRowHover: H,
|
|
88
|
+
labels: P,
|
|
89
|
+
emptyContent: k,
|
|
90
|
+
size: v
|
|
91
|
+
} = t, l = p === void 0 ? Ie : p, x = R === void 0 ? !1 : R;
|
|
92
|
+
let D;
|
|
93
|
+
e[0] !== P ? (D = {
|
|
94
|
+
...ke,
|
|
95
|
+
...P
|
|
96
|
+
}, e[0] = P, e[1] = D) : D = e[1];
|
|
97
|
+
const h = D, Q = Math.min(...l), M = c > Q;
|
|
98
|
+
let O;
|
|
99
|
+
e[2] !== h ? (O = $e(h), e[2] = h, e[3] = O) : O = e[3];
|
|
100
|
+
const N = O;
|
|
101
|
+
let z;
|
|
102
|
+
e[4] !== S ? (z = S ?? [], e[4] = S, e[5] = z) : z = e[5];
|
|
103
|
+
let B;
|
|
104
|
+
e[6] !== z ? (B = new Set(z), e[6] = z, e[7] = B) : B = e[7];
|
|
105
|
+
const C = B;
|
|
106
|
+
let W;
|
|
107
|
+
e[8] !== n ? (W = n.map(Ee), e[8] = n, e[9] = W) : W = e[9];
|
|
108
|
+
const m = W;
|
|
109
|
+
let s;
|
|
110
|
+
e[10] !== m || e[11] !== C ? (s = m.length > 0 && m.every((o) => C.has(o)), e[10] = m, e[11] = C, e[12] = s) : s = e[12];
|
|
111
|
+
const w = s;
|
|
112
|
+
let _;
|
|
113
|
+
e[13] !== w || e[14] !== m || e[15] !== C ? (_ = !w && m.some((o) => C.has(o)), e[13] = w, e[14] = m, e[15] = C, e[16] = _) : _ = e[16];
|
|
114
|
+
const F = _;
|
|
115
|
+
let A;
|
|
116
|
+
e[17] !== b || e[18] !== d?.columnId || e[19] !== d?.direction ? (A = (o) => {
|
|
117
|
+
if (!b)
|
|
118
|
+
return;
|
|
119
|
+
const y = d?.columnId === o && d?.direction === "asc" ? "desc" : "asc";
|
|
120
|
+
b({
|
|
121
|
+
columnId: o,
|
|
122
|
+
direction: y
|
|
123
|
+
});
|
|
124
|
+
}, e[17] = b, e[18] = d?.columnId, e[19] = d?.direction, e[20] = A) : A = e[20];
|
|
125
|
+
const E = A;
|
|
126
|
+
let L;
|
|
127
|
+
e[21] !== w || e[22] !== u || e[23] !== m || e[24] !== S ? (L = () => {
|
|
128
|
+
if (u)
|
|
129
|
+
if (w)
|
|
130
|
+
u((S ?? []).filter((o) => !m.includes(o)));
|
|
131
|
+
else {
|
|
132
|
+
const o = new Set(S ?? []);
|
|
133
|
+
for (const a of m)
|
|
134
|
+
o.add(a);
|
|
135
|
+
u([...o]);
|
|
136
|
+
}
|
|
137
|
+
}, e[21] = w, e[22] = u, e[23] = m, e[24] = S, e[25] = L) : L = e[25];
|
|
138
|
+
const ie = L;
|
|
139
|
+
let ee;
|
|
140
|
+
e[26] !== u || e[27] !== S ? (ee = (o) => {
|
|
141
|
+
if (!u)
|
|
142
|
+
return;
|
|
143
|
+
const a = new Set(S ?? []);
|
|
144
|
+
a.has(o) ? a.delete(o) : a.add(o), u([...a]);
|
|
145
|
+
}, e[26] = u, e[27] = S, e[28] = ee) : ee = e[28];
|
|
146
|
+
const re = ee;
|
|
147
|
+
let J;
|
|
148
|
+
e[29] !== h || e[30] !== w || e[31] !== ie || e[32] !== x || e[33] !== F ? (J = x ? /* @__PURE__ */ f(Y, { padding: "checkbox", sx: $.headerCell, children: /* @__PURE__ */ f(ce, { checked: w, indeterminate: F, onChange: ie, inputProps: {
|
|
149
|
+
"aria-label": h.selectAll
|
|
150
|
+
} }) }) : null, e[29] = h, e[30] = w, e[31] = ie, e[32] = x, e[33] = F, e[34] = J) : J = e[34];
|
|
151
|
+
let U;
|
|
152
|
+
if (e[35] !== i || e[36] !== E || e[37] !== b || e[38] !== d?.columnId || e[39] !== d?.direction) {
|
|
153
|
+
let o;
|
|
154
|
+
e[41] !== E || e[42] !== b || e[43] !== d?.columnId || e[44] !== d?.direction ? (o = (a) => {
|
|
155
|
+
const y = d?.columnId === a.id, ne = y ? d?.direction : void 0;
|
|
156
|
+
return /* @__PURE__ */ f(Y, { align: a.align, sortDirection: ne, sx: $.headerCell, style: a.width != null ? {
|
|
157
|
+
width: a.width
|
|
158
|
+
} : void 0, children: a.sortable && b ? /* @__PURE__ */ f(Se, { active: y, direction: ne ?? "asc", onClick: () => E(a.id), children: a.label }) : a.label }, a.id);
|
|
159
|
+
}, e[41] = E, e[42] = b, e[43] = d?.columnId, e[44] = d?.direction, e[45] = o) : o = e[45], U = i.map(o), e[35] = i, e[36] = E, e[37] = b, e[38] = d?.columnId, e[39] = d?.direction, e[40] = U;
|
|
160
|
+
} else
|
|
161
|
+
U = e[40];
|
|
162
|
+
let G;
|
|
163
|
+
e[46] !== J || e[47] !== U ? (G = /* @__PURE__ */ f(be, { children: /* @__PURE__ */ q(se, { children: [
|
|
164
|
+
J,
|
|
165
|
+
U
|
|
166
|
+
] }) }), e[46] = J, e[47] = U, e[48] = G) : G = e[48];
|
|
167
|
+
let K;
|
|
168
|
+
e[49] !== h || e[50] !== i || e[51] !== k || e[52] !== re || e[53] !== j || e[54] !== H || e[55] !== n || e[56] !== x || e[57] !== C ? (K = n.length === 0 ? /* @__PURE__ */ f(se, { children: /* @__PURE__ */ f(Y, { colSpan: i.length + (x ? 1 : 0), sx: $.empty, children: k ?? null }) }) : n.map((o) => {
|
|
169
|
+
const a = C.has(o.id);
|
|
170
|
+
return /* @__PURE__ */ q(se, { hover: !0, selected: a, onClick: () => j?.(o), onMouseEnter: () => H?.(o), onMouseLeave: () => H?.(null), sx: {
|
|
171
|
+
...$.row,
|
|
172
|
+
...j ? $.rowClickable : null
|
|
173
|
+
}, children: [
|
|
174
|
+
x ? /* @__PURE__ */ f(Y, { padding: "checkbox", children: /* @__PURE__ */ f(ce, { checked: a, onClick: (y) => {
|
|
175
|
+
y.stopPropagation(), re(o.id);
|
|
176
|
+
}, inputProps: {
|
|
177
|
+
"aria-label": h.selectRow(o.id)
|
|
178
|
+
} }) }) : null,
|
|
179
|
+
i.map((y) => /* @__PURE__ */ f(Y, { align: y.align, children: y.formatter ? y.formatter(o[y.id], o) : Le(o[y.id]) }, y.id))
|
|
180
|
+
] }, o.id);
|
|
181
|
+
}), e[49] = h, e[50] = i, e[51] = k, e[52] = re, e[53] = j, e[54] = H, e[55] = n, e[56] = x, e[57] = C, e[58] = K) : K = e[58];
|
|
182
|
+
let V;
|
|
183
|
+
e[59] !== K ? (V = /* @__PURE__ */ f(Pe, { children: K }), e[59] = K, e[60] = V) : V = e[60];
|
|
184
|
+
let Z;
|
|
185
|
+
e[61] !== v || e[62] !== G || e[63] !== V ? (Z = /* @__PURE__ */ f(ye, { children: /* @__PURE__ */ q(Ce, { stickyHeader: !0, size: v, sx: $.table, children: [
|
|
186
|
+
G,
|
|
187
|
+
V
|
|
188
|
+
] }) }), e[61] = v, e[62] = G, e[63] = V, e[64] = Z) : Z = e[64];
|
|
189
|
+
let X;
|
|
190
|
+
e[65] !== N || e[66] !== h || e[67] !== I || e[68] !== T || e[69] !== r || e[70] !== g || e[71] !== l || e[72] !== M || e[73] !== c ? (X = M ? /* @__PURE__ */ f(me, { component: "div", count: c, page: r, rowsPerPage: g, rowsPerPageOptions: [...l], onPageChange: (o, a) => I?.(a), onRowsPerPageChange: (o) => {
|
|
191
|
+
const a = parseInt(o.target.value, 10);
|
|
192
|
+
T?.(a);
|
|
193
|
+
}, labelRowsPerPage: h.rowsPerPage, labelDisplayedRows: (o) => {
|
|
194
|
+
const {
|
|
195
|
+
from: a,
|
|
196
|
+
to: y,
|
|
197
|
+
count: ne
|
|
198
|
+
} = o;
|
|
199
|
+
return h.paginationOf(a, y, ne);
|
|
200
|
+
}, ActionsComponent: N, sx: $.pagination }) : null, e[65] = N, e[66] = h, e[67] = I, e[68] = T, e[69] = r, e[70] = g, e[71] = l, e[72] = M, e[73] = c, e[74] = X) : X = e[74];
|
|
201
|
+
let te;
|
|
202
|
+
return e[75] !== Z || e[76] !== X ? (te = /* @__PURE__ */ q(ae, { sx: $.container, children: [
|
|
203
|
+
Z,
|
|
204
|
+
X
|
|
205
|
+
] }), e[75] = Z, e[76] = X, e[77] = te) : te = e[77], te;
|
|
206
|
+
}
|
|
207
|
+
function Ee(t) {
|
|
208
|
+
return t.id;
|
|
209
|
+
}
|
|
210
|
+
function Le(t) {
|
|
211
|
+
return t == null ? "" : typeof t == "string" || typeof t == "number" ? t : typeof t == "boolean" ? String(t) : Array.isArray(t) || typeof t == "object" ? JSON.stringify(t) : "";
|
|
212
|
+
}
|
|
213
|
+
function $e(t) {
|
|
214
|
+
return function({
|
|
215
|
+
count: i,
|
|
216
|
+
page: n,
|
|
217
|
+
rowsPerPage: c,
|
|
218
|
+
onPageChange: r
|
|
219
|
+
}) {
|
|
220
|
+
const g = Math.max(0, Math.ceil(i / c) - 1);
|
|
221
|
+
return /* @__PURE__ */ q(ae, { sx: $.paginationActions, children: [
|
|
222
|
+
/* @__PURE__ */ f(oe, { size: "small", onClick: (p) => r(p, 0), disabled: n === 0, "aria-label": t.firstPage, children: /* @__PURE__ */ f(we, { fontSize: "small" }) }),
|
|
223
|
+
/* @__PURE__ */ f(oe, { size: "small", onClick: (p) => r(p, n - 1), disabled: n === 0, "aria-label": t.previousPage, children: /* @__PURE__ */ f(xe, { fontSize: "small" }) }),
|
|
224
|
+
/* @__PURE__ */ f(oe, { size: "small", onClick: (p) => r(p, n + 1), disabled: n >= g, "aria-label": t.nextPage, children: /* @__PURE__ */ f(ze, { fontSize: "small" }) }),
|
|
225
|
+
/* @__PURE__ */ f(oe, { size: "small", onClick: (p) => r(p, g), disabled: n >= g, "aria-label": t.lastPage, children: /* @__PURE__ */ f(Ae, { fontSize: "small" }) })
|
|
226
|
+
] });
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
function je(t, e, i) {
|
|
230
|
+
if (t == null && e == null) return 0;
|
|
231
|
+
if (t == null) return 1;
|
|
232
|
+
if (e == null) return -1;
|
|
233
|
+
let n = 0;
|
|
234
|
+
return typeof t == "string" && typeof e == "string" ? n = t.localeCompare(e) : typeof t == "number" && typeof e == "number" ? n = t - e : typeof t == "boolean" && typeof e == "boolean" ? n = t === e ? 0 : t ? 1 : -1 : (typeof t == "object" || typeof e == "object") && (n = JSON.stringify(t).localeCompare(JSON.stringify(e))), i === "asc" ? n : -n;
|
|
235
|
+
}
|
|
236
|
+
function ve(t, e, i) {
|
|
237
|
+
return [...t].sort((n, c) => je(n[e], c[e], i));
|
|
238
|
+
}
|
|
239
|
+
function De(t, e, i) {
|
|
240
|
+
if (i <= 0) return t.slice();
|
|
241
|
+
const n = e * i;
|
|
242
|
+
return t.slice(n, n + i);
|
|
243
|
+
}
|
|
244
|
+
function Be(t, e) {
|
|
245
|
+
if (!e || e.length === 0) return t;
|
|
246
|
+
const i = new Map(t.map((r) => [r.id, r])), n = [], c = /* @__PURE__ */ new Set();
|
|
247
|
+
for (const r of e) {
|
|
248
|
+
const g = i.get(r);
|
|
249
|
+
g && !c.has(r) && (n.push(g), c.add(r));
|
|
250
|
+
}
|
|
251
|
+
for (const r of t)
|
|
252
|
+
c.has(r.id) || n.push(r);
|
|
253
|
+
return n;
|
|
254
|
+
}
|
|
255
|
+
function We(t, e) {
|
|
256
|
+
const i = e.sort?.columnId != null ? ve(t, e.sort.columnId, e.sort.direction) : t, n = De(i, e.page, e.pageSize);
|
|
257
|
+
return {
|
|
258
|
+
sorted: i,
|
|
259
|
+
visible: n
|
|
260
|
+
};
|
|
261
|
+
}
|
|
262
|
+
function Ye(t, e) {
|
|
263
|
+
const n = [e.map((c) => de(_e(c.label))).join(",")];
|
|
264
|
+
for (const c of t) {
|
|
265
|
+
const r = e.map((g) => de(Fe(c[g.id])));
|
|
266
|
+
n.push(r.join(","));
|
|
267
|
+
}
|
|
268
|
+
return n.join(`
|
|
269
|
+
`);
|
|
270
|
+
}
|
|
271
|
+
function de(t) {
|
|
272
|
+
return /[",\n\r]/.test(t) ? `"${t.replace(/"/g, '""')}"` : t;
|
|
273
|
+
}
|
|
274
|
+
function _e(t) {
|
|
275
|
+
return typeof t == "string" ? t : typeof t == "number" || typeof t == "boolean" ? String(t) : "";
|
|
276
|
+
}
|
|
277
|
+
function Fe(t) {
|
|
278
|
+
return t == null ? "" : typeof t == "string" ? t : typeof t == "number" || typeof t == "boolean" ? String(t) : Array.isArray(t) || typeof t == "object" ? JSON.stringify(t) : "";
|
|
279
|
+
}
|
|
280
|
+
function et(t) {
|
|
281
|
+
const e = fe(57);
|
|
282
|
+
let i, n, c, r, g, p, d, S, R, b, I, T, u;
|
|
283
|
+
e[0] !== t ? ({
|
|
284
|
+
columns: i,
|
|
285
|
+
visibleColumns: u,
|
|
286
|
+
initialPageSize: b,
|
|
287
|
+
selection: R,
|
|
288
|
+
onSelectionChange: p,
|
|
289
|
+
onRowClick: r,
|
|
290
|
+
onRowHover: g,
|
|
291
|
+
remote: I,
|
|
292
|
+
total: S,
|
|
293
|
+
onSortChange: d,
|
|
294
|
+
onPageChange: n,
|
|
295
|
+
onPageSizeChange: c,
|
|
296
|
+
...T
|
|
297
|
+
} = t, e[0] = t, e[1] = i, e[2] = n, e[3] = c, e[4] = r, e[5] = g, e[6] = p, e[7] = d, e[8] = S, e[9] = R, e[10] = b, e[11] = I, e[12] = T, e[13] = u) : (i = e[1], n = e[2], c = e[3], r = e[4], g = e[5], p = e[6], d = e[7], S = e[8], R = e[9], b = e[10], I = e[11], T = e[12], u = e[13]);
|
|
298
|
+
const j = b === void 0 ? Re : b, H = I === void 0 ? !1 : I, P = pe(), k = ue(P, Me);
|
|
299
|
+
let v;
|
|
300
|
+
e[14] !== j ? (v = (s) => ({
|
|
301
|
+
sort: s.sort,
|
|
302
|
+
page: s.page ?? 0,
|
|
303
|
+
pageSize: s.pageSize ?? j,
|
|
304
|
+
columnOrder: s.columnOrder
|
|
305
|
+
}), e[14] = j, e[15] = v) : v = e[15];
|
|
306
|
+
const l = he(P, v);
|
|
307
|
+
let x;
|
|
308
|
+
if (e[16] !== i || e[17] !== l.columnOrder || e[18] !== u) {
|
|
309
|
+
const s = Be(i, l.columnOrder);
|
|
310
|
+
x = u == null ? s : s.slice(0, u), e[16] = i, e[17] = l.columnOrder, e[18] = u, e[19] = x;
|
|
311
|
+
} else
|
|
312
|
+
x = e[19];
|
|
313
|
+
const D = x;
|
|
314
|
+
let h;
|
|
315
|
+
e: {
|
|
316
|
+
if (H) {
|
|
317
|
+
let A;
|
|
318
|
+
e[20] !== k ? (A = k ?? [], e[20] = k, e[21] = A) : A = e[21];
|
|
319
|
+
const E = S ?? 0;
|
|
320
|
+
let L;
|
|
321
|
+
e[22] !== A || e[23] !== E ? (L = {
|
|
322
|
+
rows: A,
|
|
323
|
+
totalRows: E
|
|
324
|
+
}, e[22] = A, e[23] = E, e[24] = L) : L = e[24], h = L;
|
|
325
|
+
break e;
|
|
326
|
+
}
|
|
327
|
+
let s;
|
|
328
|
+
e[25] !== k || e[26] !== l.page || e[27] !== l.pageSize || e[28] !== l.sort ? (s = We(k ?? [], {
|
|
329
|
+
sort: l.sort,
|
|
330
|
+
page: l.page,
|
|
331
|
+
pageSize: l.pageSize
|
|
332
|
+
}), e[25] = k, e[26] = l.page, e[27] = l.pageSize, e[28] = l.sort, e[29] = s) : s = e[29];
|
|
333
|
+
const {
|
|
334
|
+
sorted: w,
|
|
335
|
+
visible: _
|
|
336
|
+
} = s;
|
|
337
|
+
let F;
|
|
338
|
+
e[30] !== w.length || e[31] !== _ ? (F = {
|
|
339
|
+
rows: _,
|
|
340
|
+
totalRows: w.length
|
|
341
|
+
}, e[30] = w.length, e[31] = _, e[32] = F) : F = e[32], h = F;
|
|
342
|
+
}
|
|
343
|
+
const {
|
|
344
|
+
rows: Q,
|
|
345
|
+
totalRows: M
|
|
346
|
+
} = h;
|
|
347
|
+
let O;
|
|
348
|
+
e[33] !== P || e[34] !== d ? (O = (s) => {
|
|
349
|
+
le(P).setState({
|
|
350
|
+
sort: s,
|
|
351
|
+
page: 0
|
|
352
|
+
}), d?.(s);
|
|
353
|
+
}, e[33] = P, e[34] = d, e[35] = O) : O = e[35];
|
|
354
|
+
const N = O;
|
|
355
|
+
let z;
|
|
356
|
+
e[36] !== P || e[37] !== n ? (z = (s) => {
|
|
357
|
+
le(P).setState({
|
|
358
|
+
page: s
|
|
359
|
+
}), n?.(s);
|
|
360
|
+
}, e[36] = P, e[37] = n, e[38] = z) : z = e[38];
|
|
361
|
+
const B = z;
|
|
362
|
+
let C;
|
|
363
|
+
e[39] !== P || e[40] !== c ? (C = (s) => {
|
|
364
|
+
le(P).setState({
|
|
365
|
+
pageSize: s,
|
|
366
|
+
page: 0
|
|
367
|
+
}), c?.(s);
|
|
368
|
+
}, e[39] = P, e[40] = c, e[41] = C) : C = e[41];
|
|
369
|
+
const W = C;
|
|
370
|
+
let m;
|
|
371
|
+
return e[42] !== B || e[43] !== W || e[44] !== N || e[45] !== r || e[46] !== g || e[47] !== p || e[48] !== D || e[49] !== Q || e[50] !== R || e[51] !== M || e[52] !== l.page || e[53] !== l.pageSize || e[54] !== l.sort || e[55] !== T ? (m = /* @__PURE__ */ f(Oe, { ...T, columns: D, rows: Q, total: M, page: l.page, pageSize: l.pageSize, sort: l.sort, selection: R, onSortChange: N, onPageChange: B, onPageSizeChange: W, onSelectionChange: p, onRowClick: r, onRowHover: g }), e[42] = B, e[43] = W, e[44] = N, e[45] = r, e[46] = g, e[47] = p, e[48] = D, e[49] = Q, e[50] = R, e[51] = M, e[52] = l.page, e[53] = l.pageSize, e[54] = l.sort, e[55] = T, e[56] = m) : m = e[56], m;
|
|
372
|
+
}
|
|
373
|
+
function Me(t) {
|
|
374
|
+
return t.data;
|
|
375
|
+
}
|
|
376
|
+
export {
|
|
377
|
+
ke as D,
|
|
378
|
+
et as T,
|
|
379
|
+
Re as a,
|
|
380
|
+
Ie as b,
|
|
381
|
+
Oe as c,
|
|
382
|
+
je as d,
|
|
383
|
+
We as e,
|
|
384
|
+
ve as f,
|
|
385
|
+
De as p,
|
|
386
|
+
Be as r,
|
|
387
|
+
$ as s,
|
|
388
|
+
Ye as t
|
|
389
|
+
};
|
|
390
|
+
//# sourceMappingURL=table-HIpXuq4G.js.map
|