@carto/ps-react-ui 4.7.1 → 4.9.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/{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-l4fNHLEg.js +213 -0
- package/dist/range-l4fNHLEg.js.map +1 -0
- package/dist/resolve-theme-color-BdojIw0K.js +47 -0
- package/dist/resolve-theme-color-BdojIw0K.js.map +1 -0
- package/dist/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-CQCAnDLb.js +388 -0
- package/dist/table-CQCAnDLb.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 +46 -0
- package/dist/types/widgets-v2/category/category-ui.d.ts +81 -0
- package/dist/types/widgets-v2/category/category.d.ts +48 -0
- package/dist/types/widgets-v2/category/components/category-bar-stacked.d.ts +28 -0
- package/dist/types/widgets-v2/category/components/category-bar.d.ts +23 -0
- package/dist/types/widgets-v2/category/components/category-legend.d.ts +18 -0
- package/dist/types/widgets-v2/category/components/category-row-multi.d.ts +31 -0
- package/dist/types/widgets-v2/category/components/category-row-other.d.ts +13 -0
- package/dist/types/widgets-v2/category/components/category-row-single.d.ts +28 -0
- package/dist/types/widgets-v2/category/components/category-row-stacked.d.ts +38 -0
- package/dist/types/widgets-v2/category/download.d.ts +16 -0
- package/dist/types/widgets-v2/category/download.test.d.ts +1 -0
- package/dist/types/widgets-v2/category/index.d.ts +10 -0
- package/dist/types/widgets-v2/category/skeleton.d.ts +11 -0
- package/dist/types/widgets-v2/category/style.d.ts +166 -0
- package/dist/types/widgets-v2/category/types.d.ts +53 -0
- package/dist/types/widgets-v2/echart/echart-ui.d.ts +44 -0
- package/dist/types/widgets-v2/echart/echart.d.ts +75 -0
- package/dist/types/widgets-v2/echart/index.d.ts +4 -0
- package/dist/types/widgets-v2/echart/shared-resize-observer.d.ts +5 -0
- package/dist/types/widgets-v2/echart/shared-resize-observer.test.d.ts +1 -0
- package/dist/types/widgets-v2/echart/style.d.ts +6 -0
- package/dist/types/widgets-v2/echart/use-chart-selection.d.ts +51 -0
- package/dist/types/widgets-v2/formula/delta.d.ts +22 -0
- package/dist/types/widgets-v2/formula/download.d.ts +20 -0
- package/dist/types/widgets-v2/formula/formula-ui.d.ts +20 -0
- package/dist/types/widgets-v2/formula/formula.d.ts +8 -0
- package/dist/types/widgets-v2/formula/index.d.ts +11 -0
- package/dist/types/widgets-v2/formula/note.d.ts +11 -0
- package/dist/types/widgets-v2/formula/prefix.d.ts +12 -0
- package/dist/types/widgets-v2/formula/series.d.ts +16 -0
- package/dist/types/widgets-v2/formula/skeleton.d.ts +4 -0
- package/dist/types/widgets-v2/formula/style.d.ts +29 -0
- package/dist/types/widgets-v2/formula/suffix.d.ts +12 -0
- package/dist/types/widgets-v2/formula/types.d.ts +43 -0
- package/dist/types/widgets-v2/formula/value.d.ts +14 -0
- package/dist/types/widgets-v2/histogram/download.d.ts +17 -0
- package/dist/types/widgets-v2/histogram/download.test.d.ts +1 -0
- package/dist/types/widgets-v2/histogram/index.d.ts +5 -0
- package/dist/types/widgets-v2/histogram/options.d.ts +42 -0
- package/dist/types/widgets-v2/histogram/options.test.d.ts +1 -0
- package/dist/types/widgets-v2/histogram/skeleton.d.ts +9 -0
- package/dist/types/widgets-v2/histogram/transforms.d.ts +17 -0
- package/dist/types/widgets-v2/histogram/transforms.test.d.ts +1 -0
- package/dist/types/widgets-v2/histogram/types.d.ts +51 -0
- package/dist/types/widgets-v2/index.d.ts +108 -0
- package/dist/types/widgets-v2/markdown/download.d.ts +16 -0
- package/dist/types/widgets-v2/markdown/download.test.d.ts +1 -0
- package/dist/types/widgets-v2/markdown/index.d.ts +6 -0
- package/dist/types/widgets-v2/markdown/markdown-content.d.ts +34 -0
- package/dist/types/widgets-v2/markdown/markdown-ui.d.ts +12 -0
- package/dist/types/widgets-v2/markdown/markdown.d.ts +6 -0
- package/dist/types/widgets-v2/markdown/skeleton.d.ts +4 -0
- package/dist/types/widgets-v2/markdown/style.d.ts +61 -0
- package/dist/types/widgets-v2/markdown/types.d.ts +4 -0
- package/dist/types/widgets-v2/note/labels.d.ts +5 -0
- package/dist/types/widgets-v2/note/style.d.ts +26 -0
- package/dist/types/widgets-v2/note/widget-note.d.ts +46 -0
- package/dist/types/widgets-v2/pie/download.d.ts +17 -0
- package/dist/types/widgets-v2/pie/download.test.d.ts +1 -0
- package/dist/types/widgets-v2/pie/index.d.ts +4 -0
- package/dist/types/widgets-v2/pie/options.d.ts +35 -0
- package/dist/types/widgets-v2/pie/options.test.d.ts +1 -0
- package/dist/types/widgets-v2/pie/skeleton.d.ts +4 -0
- package/dist/types/widgets-v2/pie/types.d.ts +57 -0
- package/dist/types/widgets-v2/provider/widget-provider.d.ts +32 -0
- package/dist/types/widgets-v2/range/index.d.ts +4 -0
- package/dist/types/widgets-v2/range/range-ui.d.ts +27 -0
- package/dist/types/widgets-v2/range/range.d.ts +24 -0
- package/dist/types/widgets-v2/range/skeleton.d.ts +9 -0
- package/dist/types/widgets-v2/range/style.d.ts +40 -0
- package/dist/types/widgets-v2/range/types.d.ts +37 -0
- package/dist/types/widgets-v2/scatterplot/download.d.ts +16 -0
- package/dist/types/widgets-v2/scatterplot/download.test.d.ts +1 -0
- package/dist/types/widgets-v2/scatterplot/index.d.ts +5 -0
- package/dist/types/widgets-v2/scatterplot/options.d.ts +42 -0
- package/dist/types/widgets-v2/scatterplot/options.test.d.ts +1 -0
- package/dist/types/widgets-v2/scatterplot/skeleton.d.ts +12 -0
- package/dist/types/widgets-v2/scatterplot/transforms.d.ts +17 -0
- package/dist/types/widgets-v2/scatterplot/transforms.test.d.ts +1 -0
- package/dist/types/widgets-v2/scatterplot/types.d.ts +54 -0
- package/dist/types/widgets-v2/selection-summary/labels.d.ts +6 -0
- package/dist/types/widgets-v2/selection-summary/selection-summary.d.ts +22 -0
- package/dist/types/widgets-v2/selection-summary/style.d.ts +23 -0
- package/dist/types/widgets-v2/spread/download.d.ts +15 -0
- package/dist/types/widgets-v2/spread/download.test.d.ts +1 -0
- package/dist/types/widgets-v2/spread/index.d.ts +6 -0
- package/dist/types/widgets-v2/spread/separator.d.ts +7 -0
- package/dist/types/widgets-v2/spread/skeleton.d.ts +9 -0
- package/dist/types/widgets-v2/spread/spread-ui.d.ts +18 -0
- package/dist/types/widgets-v2/spread/spread.d.ts +5 -0
- package/dist/types/widgets-v2/spread/types.d.ts +25 -0
- package/dist/types/widgets-v2/state/labels.d.ts +7 -0
- package/dist/types/widgets-v2/state/labels.test.d.ts +1 -0
- package/dist/types/widgets-v2/state/style.d.ts +19 -0
- package/dist/types/widgets-v2/state/widget-state.d.ts +19 -0
- package/dist/types/widgets-v2/stores/index.d.ts +8 -0
- package/dist/types/widgets-v2/stores/pipeline-middleware.d.ts +5 -0
- package/dist/types/widgets-v2/stores/pipeline-middleware.test.d.ts +1 -0
- package/dist/types/widgets-v2/stores/transforms.d.ts +4 -0
- package/dist/types/widgets-v2/stores/transforms.test.d.ts +1 -0
- package/dist/types/widgets-v2/stores/types.d.ts +55 -0
- package/dist/types/widgets-v2/stores/use-echart-instance.d.ts +15 -0
- package/dist/types/widgets-v2/stores/use-transform-enabled.d.ts +17 -0
- package/dist/types/widgets-v2/stores/use-transform.d.ts +12 -0
- package/dist/types/widgets-v2/stores/widget-context.d.ts +2 -0
- package/dist/types/widgets-v2/stores/widget-store-registry.d.ts +74 -0
- package/dist/types/widgets-v2/stores/widget-store-registry.test.d.ts +1 -0
- package/dist/types/widgets-v2/subheader/style.d.ts +10 -0
- package/dist/types/widgets-v2/subheader/subheader.d.ts +11 -0
- package/dist/types/widgets-v2/table/download.d.ts +18 -0
- package/dist/types/widgets-v2/table/download.test.d.ts +1 -0
- package/dist/types/widgets-v2/table/helpers.d.ts +32 -0
- package/dist/types/widgets-v2/table/helpers.test.d.ts +1 -0
- package/dist/types/widgets-v2/table/index.d.ts +7 -0
- package/dist/types/widgets-v2/table/labels.d.ts +22 -0
- package/dist/types/widgets-v2/table/skeleton.d.ts +22 -0
- package/dist/types/widgets-v2/table/style.d.ts +40 -0
- package/dist/types/widgets-v2/table/table-ui.d.ts +44 -0
- package/dist/types/widgets-v2/table/table.d.ts +50 -0
- package/dist/types/widgets-v2/table/types.d.ts +48 -0
- package/dist/types/widgets-v2/test-utils.d.ts +52 -0
- package/dist/types/widgets-v2/timeseries/download.d.ts +17 -0
- package/dist/types/widgets-v2/timeseries/download.test.d.ts +1 -0
- package/dist/types/widgets-v2/timeseries/index.d.ts +4 -0
- package/dist/types/widgets-v2/timeseries/options.d.ts +39 -0
- package/dist/types/widgets-v2/timeseries/options.test.d.ts +1 -0
- package/dist/types/widgets-v2/timeseries/skeleton.d.ts +8 -0
- package/dist/types/widgets-v2/timeseries/types.d.ts +60 -0
- package/dist/types/widgets-v2/toolbox/labels.d.ts +5 -0
- package/dist/types/widgets-v2/toolbox/style.d.ts +30 -0
- package/dist/types/widgets-v2/toolbox/toolbox.d.ts +49 -0
- package/dist/types/widgets-v2/types.d.ts +25 -0
- package/dist/types/widgets-v2/utils/data-zoom-layout.d.ts +11 -0
- package/dist/types/widgets-v2/utils/index.d.ts +3 -0
- package/dist/types/widgets-v2/utils/merge-options.d.ts +12 -0
- package/dist/types/widgets-v2/utils/merge-options.test.d.ts +1 -0
- package/dist/types/widgets-v2/utils/resolve-theme-color.d.ts +18 -0
- package/dist/types/widgets-v2/utils/resolve-theme-color.test.d.ts +1 -0
- package/dist/types/widgets-v2/wrapper/index.d.ts +4 -0
- package/dist/types/widgets-v2/wrapper/labels.d.ts +6 -0
- package/dist/types/widgets-v2/wrapper/style.d.ts +111 -0
- package/dist/types/widgets-v2/wrapper/widget-actions.d.ts +22 -0
- package/dist/types/widgets-v2/wrapper/widget-content.d.ts +12 -0
- package/dist/types/widgets-v2/wrapper/widget-wrapper.d.ts +51 -0
- package/dist/use-transform-DXPN3nY7.js +110 -0
- package/dist/use-transform-DXPN3nY7.js.map +1 -0
- package/dist/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/bar.js +14 -13
- package/dist/widgets/bar.js.map +1 -1
- package/dist/widgets/histogram.js +8 -7
- 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 +330 -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 +353 -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 +387 -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 +411 -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 +358 -0
- package/dist/widgets-v2/timeseries.js.map +1 -0
- package/dist/widgets-v2/utils.js +8 -0
- package/dist/widgets-v2/utils.js.map +1 -0
- package/dist/widgets-v2.js +953 -0
- package/dist/widgets-v2.js.map +1 -0
- package/package.json +71 -3
- 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-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/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 +334 -0
- package/src/widgets-v2/bar/options.ts +332 -0
- package/src/widgets-v2/bar/skeleton.test.tsx +19 -0
- package/src/widgets-v2/bar/skeleton.tsx +69 -0
- package/src/widgets-v2/bar/types.ts +51 -0
- package/src/widgets-v2/category/category-ui.test.tsx +746 -0
- package/src/widgets-v2/category/category-ui.tsx +389 -0
- package/src/widgets-v2/category/category.relative-data.test.tsx +107 -0
- package/src/widgets-v2/category/category.stack-toggle.test.tsx +85 -0
- package/src/widgets-v2/category/category.test.tsx +305 -0
- package/src/widgets-v2/category/category.tsx +121 -0
- package/src/widgets-v2/category/components/category-bar-stacked.test.tsx +121 -0
- package/src/widgets-v2/category/components/category-bar-stacked.tsx +73 -0
- package/src/widgets-v2/category/components/category-bar.test.tsx +64 -0
- package/src/widgets-v2/category/components/category-bar.tsx +49 -0
- package/src/widgets-v2/category/components/category-legend.test.tsx +51 -0
- package/src/widgets-v2/category/components/category-legend.tsx +39 -0
- package/src/widgets-v2/category/components/category-row-multi.tsx +86 -0
- package/src/widgets-v2/category/components/category-row-other.test.tsx +28 -0
- package/src/widgets-v2/category/components/category-row-other.tsx +33 -0
- package/src/widgets-v2/category/components/category-row-single.tsx +76 -0
- package/src/widgets-v2/category/components/category-row-stacked.test.tsx +244 -0
- package/src/widgets-v2/category/components/category-row-stacked.tsx +99 -0
- package/src/widgets-v2/category/download.test.ts +71 -0
- package/src/widgets-v2/category/download.ts +54 -0
- package/src/widgets-v2/category/index.ts +32 -0
- package/src/widgets-v2/category/skeleton.test.tsx +26 -0
- package/src/widgets-v2/category/skeleton.tsx +74 -0
- package/src/widgets-v2/category/style.ts +290 -0
- package/src/widgets-v2/category/types.ts +59 -0
- package/src/widgets-v2/echart/echart-ui.test.tsx +232 -0
- package/src/widgets-v2/echart/echart-ui.tsx +184 -0
- package/src/widgets-v2/echart/echart.test.tsx +229 -0
- package/src/widgets-v2/echart/echart.tsx +199 -0
- package/src/widgets-v2/echart/index.ts +22 -0
- package/src/widgets-v2/echart/shared-resize-observer.test.ts +91 -0
- package/src/widgets-v2/echart/shared-resize-observer.ts +56 -0
- package/src/widgets-v2/echart/style.ts +8 -0
- package/src/widgets-v2/echart/use-chart-selection.test.tsx +118 -0
- package/src/widgets-v2/echart/use-chart-selection.ts +115 -0
- package/src/widgets-v2/formula/delta.tsx +61 -0
- package/src/widgets-v2/formula/download.test.tsx +65 -0
- package/src/widgets-v2/formula/download.tsx +69 -0
- package/src/widgets-v2/formula/formula-ui.test.tsx +91 -0
- package/src/widgets-v2/formula/formula-ui.tsx +66 -0
- package/src/widgets-v2/formula/formula.test.tsx +50 -0
- package/src/widgets-v2/formula/formula.tsx +34 -0
- package/src/widgets-v2/formula/index.ts +17 -0
- package/src/widgets-v2/formula/note.tsx +25 -0
- package/src/widgets-v2/formula/prefix.tsx +25 -0
- package/src/widgets-v2/formula/series.tsx +67 -0
- package/src/widgets-v2/formula/skeleton.test.tsx +21 -0
- package/src/widgets-v2/formula/skeleton.tsx +27 -0
- package/src/widgets-v2/formula/style.ts +31 -0
- package/src/widgets-v2/formula/subcomponents.test.tsx +107 -0
- package/src/widgets-v2/formula/suffix.tsx +25 -0
- package/src/widgets-v2/formula/types.ts +48 -0
- package/src/widgets-v2/formula/value.tsx +31 -0
- package/src/widgets-v2/histogram/download.test.ts +94 -0
- package/src/widgets-v2/histogram/download.ts +60 -0
- package/src/widgets-v2/histogram/index.ts +10 -0
- package/src/widgets-v2/histogram/options.test.ts +318 -0
- package/src/widgets-v2/histogram/options.ts +338 -0
- package/src/widgets-v2/histogram/skeleton.test.tsx +16 -0
- package/src/widgets-v2/histogram/skeleton.tsx +70 -0
- package/src/widgets-v2/histogram/transforms.test.ts +46 -0
- package/src/widgets-v2/histogram/transforms.ts +30 -0
- package/src/widgets-v2/histogram/types.ts +55 -0
- package/src/widgets-v2/index.ts +204 -0
- package/src/widgets-v2/markdown/download.test.ts +66 -0
- package/src/widgets-v2/markdown/download.ts +53 -0
- package/src/widgets-v2/markdown/index.ts +6 -0
- package/src/widgets-v2/markdown/markdown-content.test.tsx +155 -0
- package/src/widgets-v2/markdown/markdown-content.tsx +72 -0
- package/src/widgets-v2/markdown/markdown-ui.test.tsx +75 -0
- package/src/widgets-v2/markdown/markdown-ui.tsx +55 -0
- package/src/widgets-v2/markdown/markdown.test.tsx +39 -0
- package/src/widgets-v2/markdown/markdown.tsx +17 -0
- package/src/widgets-v2/markdown/skeleton.test.tsx +15 -0
- package/src/widgets-v2/markdown/skeleton.tsx +32 -0
- package/src/widgets-v2/markdown/style.ts +53 -0
- package/src/widgets-v2/markdown/types.ts +4 -0
- package/src/widgets-v2/note/labels.ts +9 -0
- package/src/widgets-v2/note/style.ts +26 -0
- package/src/widgets-v2/note/widget-note.test.tsx +158 -0
- package/src/widgets-v2/note/widget-note.tsx +172 -0
- package/src/widgets-v2/pie/download.test.ts +78 -0
- package/src/widgets-v2/pie/download.ts +55 -0
- package/src/widgets-v2/pie/index.ts +10 -0
- package/src/widgets-v2/pie/options.test.ts +601 -0
- package/src/widgets-v2/pie/options.ts +513 -0
- package/src/widgets-v2/pie/skeleton.test.tsx +17 -0
- package/src/widgets-v2/pie/skeleton.tsx +32 -0
- package/src/widgets-v2/pie/types.ts +62 -0
- package/src/widgets-v2/provider/widget-provider.test.tsx +119 -0
- package/src/widgets-v2/provider/widget-provider.tsx +111 -0
- package/src/widgets-v2/range/index.ts +4 -0
- package/src/widgets-v2/range/range-ui.test.tsx +136 -0
- package/src/widgets-v2/range/range-ui.tsx +278 -0
- package/src/widgets-v2/range/range.test.tsx +68 -0
- package/src/widgets-v2/range/range.tsx +52 -0
- package/src/widgets-v2/range/skeleton.test.tsx +17 -0
- package/src/widgets-v2/range/skeleton.tsx +47 -0
- package/src/widgets-v2/range/style.ts +41 -0
- package/src/widgets-v2/range/types.ts +37 -0
- package/src/widgets-v2/scatterplot/download.test.ts +71 -0
- package/src/widgets-v2/scatterplot/download.ts +54 -0
- package/src/widgets-v2/scatterplot/index.ts +11 -0
- package/src/widgets-v2/scatterplot/options.test.ts +411 -0
- package/src/widgets-v2/scatterplot/options.ts +425 -0
- package/src/widgets-v2/scatterplot/skeleton.test.tsx +17 -0
- package/src/widgets-v2/scatterplot/skeleton.tsx +84 -0
- package/src/widgets-v2/scatterplot/transforms.test.ts +97 -0
- package/src/widgets-v2/scatterplot/transforms.ts +38 -0
- package/src/widgets-v2/scatterplot/types.ts +59 -0
- package/src/widgets-v2/selection-summary/labels.ts +11 -0
- package/src/widgets-v2/selection-summary/selection-summary.test.tsx +53 -0
- package/src/widgets-v2/selection-summary/selection-summary.tsx +62 -0
- package/src/widgets-v2/selection-summary/style.ts +23 -0
- package/src/widgets-v2/spread/download.test.ts +64 -0
- package/src/widgets-v2/spread/download.ts +59 -0
- package/src/widgets-v2/spread/index.ts +6 -0
- package/src/widgets-v2/spread/separator.tsx +11 -0
- package/src/widgets-v2/spread/skeleton.test.tsx +17 -0
- package/src/widgets-v2/spread/skeleton.tsx +38 -0
- package/src/widgets-v2/spread/spread-ui.test.tsx +108 -0
- package/src/widgets-v2/spread/spread-ui.tsx +52 -0
- package/src/widgets-v2/spread/spread.test.tsx +50 -0
- package/src/widgets-v2/spread/spread.tsx +31 -0
- package/src/widgets-v2/spread/types.ts +27 -0
- package/src/widgets-v2/state/labels.test.ts +33 -0
- package/src/widgets-v2/state/labels.ts +20 -0
- package/src/widgets-v2/state/style.ts +25 -0
- package/src/widgets-v2/state/widget-state.test.tsx +294 -0
- package/src/widgets-v2/state/widget-state.tsx +184 -0
- package/src/widgets-v2/stores/index.ts +49 -0
- package/src/widgets-v2/stores/pipeline-middleware.test.ts +187 -0
- package/src/widgets-v2/stores/pipeline-middleware.ts +91 -0
- package/src/widgets-v2/stores/transforms.test.ts +162 -0
- package/src/widgets-v2/stores/transforms.ts +70 -0
- package/src/widgets-v2/stores/types.ts +64 -0
- package/src/widgets-v2/stores/use-echart-instance.test.tsx +91 -0
- package/src/widgets-v2/stores/use-echart-instance.ts +29 -0
- package/src/widgets-v2/stores/use-transform-enabled.test.tsx +127 -0
- package/src/widgets-v2/stores/use-transform-enabled.ts +25 -0
- package/src/widgets-v2/stores/use-transform.test.tsx +262 -0
- package/src/widgets-v2/stores/use-transform.ts +158 -0
- package/src/widgets-v2/stores/widget-context.test.tsx +58 -0
- package/src/widgets-v2/stores/widget-context.ts +15 -0
- package/src/widgets-v2/stores/widget-store-registry.test.ts +292 -0
- package/src/widgets-v2/stores/widget-store-registry.ts +248 -0
- package/src/widgets-v2/subheader/style.ts +12 -0
- package/src/widgets-v2/subheader/subheader.test.tsx +30 -0
- package/src/widgets-v2/subheader/subheader.tsx +16 -0
- package/src/widgets-v2/table/download.test.ts +75 -0
- package/src/widgets-v2/table/download.ts +47 -0
- package/src/widgets-v2/table/helpers.test.ts +214 -0
- package/src/widgets-v2/table/helpers.ts +136 -0
- package/src/widgets-v2/table/index.ts +23 -0
- package/src/widgets-v2/table/labels.tsx +41 -0
- package/src/widgets-v2/table/skeleton.test.tsx +26 -0
- package/src/widgets-v2/table/skeleton.tsx +65 -0
- package/src/widgets-v2/table/style.ts +43 -0
- package/src/widgets-v2/table/table-ui.test.tsx +200 -0
- package/src/widgets-v2/table/table-ui.tsx +364 -0
- package/src/widgets-v2/table/table.test.tsx +119 -0
- package/src/widgets-v2/table/table.tsx +179 -0
- package/src/widgets-v2/table/types.ts +55 -0
- package/src/widgets-v2/test-utils.ts +107 -0
- package/src/widgets-v2/timeseries/download.test.ts +95 -0
- package/src/widgets-v2/timeseries/download.ts +86 -0
- package/src/widgets-v2/timeseries/index.ts +10 -0
- package/src/widgets-v2/timeseries/options.test.ts +394 -0
- package/src/widgets-v2/timeseries/options.ts +348 -0
- package/src/widgets-v2/timeseries/skeleton.test.tsx +13 -0
- package/src/widgets-v2/timeseries/skeleton.tsx +76 -0
- package/src/widgets-v2/timeseries/types.ts +65 -0
- package/src/widgets-v2/toolbox/labels.ts +9 -0
- package/src/widgets-v2/toolbox/style.ts +33 -0
- package/src/widgets-v2/toolbox/toolbox.test.tsx +200 -0
- package/src/widgets-v2/toolbox/toolbox.tsx +309 -0
- package/src/widgets-v2/types.ts +25 -0
- package/src/widgets-v2/utils/data-zoom-layout.ts +26 -0
- package/src/widgets-v2/utils/index.ts +3 -0
- package/src/widgets-v2/utils/merge-options.test.ts +52 -0
- package/src/widgets-v2/utils/merge-options.ts +50 -0
- package/src/widgets-v2/utils/resolve-theme-color.test.ts +43 -0
- package/src/widgets-v2/utils/resolve-theme-color.ts +34 -0
- package/src/widgets-v2/wrapper/index.ts +14 -0
- package/src/widgets-v2/wrapper/labels.ts +11 -0
- package/src/widgets-v2/wrapper/style.ts +134 -0
- package/src/widgets-v2/wrapper/widget-actions.test.tsx +52 -0
- package/src/widgets-v2/wrapper/widget-actions.tsx +43 -0
- package/src/widgets-v2/wrapper/widget-content.test.tsx +27 -0
- package/src/widgets-v2/wrapper/widget-content.tsx +29 -0
- package/src/widgets-v2/wrapper/widget-wrapper.test.tsx +159 -0
- package/src/widgets-v2/wrapper/widget-wrapper.tsx +178 -0
- package/dist/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":";;;AAYO,SAAAA,EAAAC,GAAA;AAAA,QAAAC,IAAAC,EAAA,CAAA,GAAc;AAAA,IAAAC,UAAAA;AAAAA,IAAAC,iBAAAA;AAAAA,EAAAA,IAAAJ;AAAwC,MAAAK;AAAA,EAAAJ,EAAA,CAAA,MAAAK,uBAAAC,IAAA,2BAAA,KAMnDF,IAAA;AAAA,IAAAG,GAAK;AAAA,EAAA,GAAGP,OAAAI,KAAAA,IAAAJ,EAAA,CAAA;AAAA,MAAAQ;AAAA,SAAAR,EAAA,CAAA,MAAAG,KAAAH,SAAAE,KAJdM,IAAA,gBAAAC,EAACC,GAAA,EACS,SAAA,WACE,WAAA,KACJ,OAAA,kBACF,IAAAN,GAAQ,GACRD,GAEHD,UAAAA,EAAAA,CACH,GAAaF,OAAAG,GAAAH,OAAAE,GAAAF,OAAAQ,KAAAA,IAAAR,EAAA,CAAA,GARbQ;AAQa;ACTV,SAAAG,EAAAZ,GAAA;AAAA,QAAAC,IAAAC,EAAA,CAAA,GAAgB;AAAA,IAAAC,UAAAA;AAAAA,IAAAC,iBAAAA;AAAAA,EAAAA,IAAAJ;AAA0C,MAAAK;AAAA,EAAAJ,EAAA,CAAA,MAAAK,uBAAAC,IAAA,2BAAA,KAKvDF,IAAA;AAAA,IAAAQ,YAAc;AAAA,IAAGC,OAAS;AAAA,IAAgBC,YAAc;AAAA,EAAA,GAAGd,OAAAI,KAAAA,IAAAJ,EAAA,CAAA;AAAA,MAAAQ;AAAA,SAAAR,EAAA,CAAA,MAAAG,KAAAH,SAAAE,KAHjEM,IAAA,gBAAAC,EAACC,GAAA,EACS,SAAA,MACE,WAAA,QACN,IAAAN,GAA2D,GAC3DD,GAEHD,UAAAA,EAAAA,CACH,GAAaF,OAAAG,GAAAH,OAAAE,GAAAF,OAAAQ,KAAAA,IAAAR,EAAA,CAAA,GAPbQ;AAOa;ACLV,SAAAO,EAAAhB,GAAA;AAAA,QAAAC,IAAAC,EAAA,EAAA,GAAgB;AAAA,IAAAe,MAAAA;AAAAA,IAAAH,OAAAA;AAAAA,IAAAI,MAAAb;AAAAA,IAAAc,aAAAC;AAAAA,EAAAA,IAAApB,GAGrBkB,IAAAb,MAAAgB,SAAA,KAAAhB;AAAS,MAAAI;AAAA,EAAAR,SAAAgB,KAGMR,IAAAQ,EAAIK,OAAQ,CAAC,EAACC,YAAAA,GAActB,OAAAgB,GAAAhB,OAAAQ,KAAAA,IAAAR,EAAA,CAAA;AAA3C,QAAAuB,IAAef,GAOCgB,IAAAP,IAAO,KAERQ,IAAAZ,KAAA;AAAoC,MAAAa;AAAA,EAAA1B,SAAAa,KACtCa,IAAAb,IAAAc,OAEDA,EAAKC,QAAQC,gBAAiBC,EAAWH,GAAOd,CAAK,CAAC,IAFrD,gBAGWb,OAAAa,GAAAb,OAAA0B,KAAAA,IAAA1B,EAAA,CAAA;AAAA,MAAA+B;AAAA,EAAA/B,EAAA,CAAA,MAAAiB,KAAAjB,EAAA,CAAA,MAAAwB,KAAAxB,EAAA,CAAA,MAAAyB,KAAAzB,SAAA0B,KAThBK,IAAA;AAAA,IAAAC,OACKf;AAAAA,IAAIgB,QACHhB;AAAAA,IAAIiB,UACFV;AAAAA,IAAUZ,YACR;AAAA,IAAGuB,SACNV;AAAAA,IAAoCZ,OACtCa;AAAAA,EAAAA,GAIR1B,OAAAiB,GAAAjB,OAAAwB,GAAAxB,OAAAyB,GAAAzB,OAAA0B,GAAA1B,OAAA+B,KAAAA,IAAA/B,EAAA,CAAA;AAAA,MAAAoC;AAAA,SAAApC,EAAA,CAAA,MAAAmB,KAAAnB,EAAA,EAAA,MAAAuB,KAAAvB,EAAA,EAAA,MAAAgB,KAAAhB,UAAA+B,KAZHK,IAAA,gBAAA3B,EAAC4B,KACarB,cAAAA,GACR,IAAAe,MAWAZ,gBAGN,GAASnB,OAAAmB,GAAAnB,QAAAuB,GAAAvB,QAAAgB,GAAAhB,QAAA+B,GAAA/B,QAAAoC,KAAAA,IAAApC,EAAA,EAAA,GAhBToC;AAgBS;AASb,SAASN,EAAWH,GAAcW,GAAuB;AACvD,MAAI,CAACA,EAAMC,SAAS,GAAG,EAAG,QAAOD;AACjC,QAAME,IAAQF,EAAMG,MAAM,GAAG;AAC7B,MAAIC,IAAef,EAAMC;AACzB,aAAWe,KAAKH;AACd,QACEE,KACA,OAAOA,KAAQ,YACfC,KAAMD;AAENA,MAAAA,IAAOA,EAAgCC,CAAC;AAAA;AAExC,aAAOL;AAGX,SAAO,OAAOI,KAAQ,WAAWA,IAAMJ;AACzC;ACrDO,SAAAM,EAAA7C,GAAA;AAAA,QAAAC,IAAAC,EAAA,CAAA,GAAgB;AAAA,IAAAC,UAAAA;AAAAA,IAAAC,iBAAAA;AAAAA,EAAAA,IAAAJ;AAA0C,MAAAK;AAAA,EAAAJ,EAAA,CAAA,MAAAK,uBAAAC,IAAA,2BAAA,KAKvDF,IAAA;AAAA,IAAAQ,YAAc;AAAA,IAAGC,OAAS;AAAA,IAAgBC,YAAc;AAAA,EAAA,GAAGd,OAAAI,KAAAA,IAAAJ,EAAA,CAAA;AAAA,MAAAQ;AAAA,SAAAR,EAAA,CAAA,MAAAG,KAAAH,SAAAE,KAHjEM,IAAA,gBAAAC,EAACC,GAAA,EACS,SAAA,MACE,WAAA,QACN,IAAAN,GAA2D,GAC3DD,GAEHD,UAAAA,EAAAA,CACH,GAAaF,OAAAG,GAAAH,OAAAE,GAAAF,OAAAQ,KAAAA,IAAAR,EAAA,CAAA,GAPbQ;AAOa;ACPV,SAAAqC,EAAA9C,GAAA;AAAA,QAAAC,IAAAC,EAAA,CAAA,GAAe;AAAA,IAAAC,UAAAA;AAAAA,IAAAW,OAAAA;AAAAA,IAAAV,iBAAAA;AAAAA,EAAAA,IAAAJ,GAOPK,IAAAS,KAAA;AAAuB,MAAAL;AAAA,EAAAR,SAAAI,KAF5BI,IAAA;AAAA,IAAAI,YACU;AAAA,IAAGC,OACRT;AAAAA,IAAuBU,YAClB;AAAA,EAAA,GACbd,OAAAI,GAAAJ,OAAAQ,KAAAA,IAAAR,EAAA,CAAA;AAAA,MAAAwB;AAAA,SAAAxB,EAAA,CAAA,MAAAG,KAAAH,SAAAE,KAAAF,EAAA,CAAA,MAAAQ,KAPHgB,IAAA,gBAAAf,EAACC,GAAA,EACS,SAAA,MACE,WAAA,QACN,IAAAF,GAIH,GACGL,GAEHD,UAAAA,EAAAA,CACH,GAAaF,OAAAG,GAAAH,OAAAE,GAAAF,OAAAQ,GAAAR,OAAAwB,KAAAA,IAAAxB,EAAA,CAAA,GAXbwB;AAWa;AC1BV,MAAMsB,IAAS;AAAA,EACpBC,MAAM;AAAA,IACJC,SAAS;AAAA,IACTC,eAAe;AAAA,IACfC,KAAK;AAAA,IACLC,YAAY;AAAA,EAAA;AAAA,EAEdC,KAAK;AAAA,IACHJ,SAAS;AAAA,IACTG,YAAY;AAAA,IACZD,KAAK;AAAA,EAAA;AAAA,EAEPG,MAAM;AAAA,IACJC,MAAM;AAAA,IACNC,UAAU;AAAA,IACVP,SAAS;AAAA,IACTC,eAAe;AAAA,IACfC,KAAK;AAAA,EAAA;AAAA,EAEPM,UAAU;AAAA,IACRR,SAAS;AAAA,IACTG,YAAY;AAAA,IACZD,KAAK;AAAA,EAAA;AAAA,EAEPO,OAAO;AAAA,IACLC,WAAW;AAAA,IACXC,YAAY;AAAA,EAAA;AAEhB;"}
|
|
@@ -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,388 @@
|
|
|
1
|
+
import { jsxs as ee, Fragment as Se, jsx as f } from "react/jsx-runtime";
|
|
2
|
+
import { c as me } from "react/compiler-runtime";
|
|
3
|
+
import "react";
|
|
4
|
+
import { u as be } from "./widget-context-DTGO0Yta.js";
|
|
5
|
+
import { v as ye, u as Ce, i as fe } from "./widget-store-registry-_W4Z4xp-.js";
|
|
6
|
+
import "zustand";
|
|
7
|
+
import { Box as pe, TableCell as ne, Checkbox as ue, TableRow as ge, TablePagination as Pe, TableSortLabel as we, TableHead as xe, TableBody as ze, TableContainer as Ae, Table as ke, IconButton as se } from "@mui/material";
|
|
8
|
+
import Te from "@mui/icons-material/FirstPage";
|
|
9
|
+
import Re from "@mui/icons-material/KeyboardArrowLeft";
|
|
10
|
+
import Ie from "@mui/icons-material/KeyboardArrowRight";
|
|
11
|
+
import Oe from "@mui/icons-material/LastPage";
|
|
12
|
+
const Ee = {
|
|
13
|
+
fontWeight: 600,
|
|
14
|
+
color: "text.primary"
|
|
15
|
+
}, ve = {
|
|
16
|
+
selectAll: "Select all rows",
|
|
17
|
+
selectRow: (t) => `Select row ${t}`,
|
|
18
|
+
rowsPerPage: "Rows per page:",
|
|
19
|
+
paginationOf: (t, e, i) => /* @__PURE__ */ ee(Se, { children: [
|
|
20
|
+
/* @__PURE__ */ f(pe, { component: "span", sx: Ee, children: `${t}–${e}` }),
|
|
21
|
+
` of ${i}`
|
|
22
|
+
] }),
|
|
23
|
+
firstPage: "First page",
|
|
24
|
+
previousPage: "Previous page",
|
|
25
|
+
nextPage: "Next page",
|
|
26
|
+
lastPage: "Last page"
|
|
27
|
+
}, Le = 10, $e = [10, 25, 50, 100], $ = {
|
|
28
|
+
container: {
|
|
29
|
+
width: "100%",
|
|
30
|
+
overflowX: "auto"
|
|
31
|
+
},
|
|
32
|
+
table: {
|
|
33
|
+
minWidth: 0
|
|
34
|
+
},
|
|
35
|
+
headerCell: {
|
|
36
|
+
fontWeight: 600,
|
|
37
|
+
backgroundColor: "background.paper"
|
|
38
|
+
},
|
|
39
|
+
/**
|
|
40
|
+
* Strip the bottom border from the last body row so the body flushes
|
|
41
|
+
* against the pagination border instead of doubling it up. Mirrors v1.
|
|
42
|
+
*/
|
|
43
|
+
row: {
|
|
44
|
+
"&:last-child td, &:last-child th": {
|
|
45
|
+
border: 0
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
rowClickable: {
|
|
49
|
+
cursor: "pointer"
|
|
50
|
+
},
|
|
51
|
+
pagination: {
|
|
52
|
+
borderTop: "1px solid",
|
|
53
|
+
borderColor: "divider"
|
|
54
|
+
},
|
|
55
|
+
paginationActions: {
|
|
56
|
+
display: "flex",
|
|
57
|
+
alignItems: "center",
|
|
58
|
+
gap: 0.25,
|
|
59
|
+
ml: 1
|
|
60
|
+
},
|
|
61
|
+
empty: {
|
|
62
|
+
textAlign: "center",
|
|
63
|
+
color: "text.secondary",
|
|
64
|
+
py: 3
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
function je(t) {
|
|
68
|
+
const e = me(82), {
|
|
69
|
+
columns: i,
|
|
70
|
+
rows: n,
|
|
71
|
+
total: c,
|
|
72
|
+
page: l,
|
|
73
|
+
pageSize: g,
|
|
74
|
+
pageSizeOptions: p,
|
|
75
|
+
sort: d,
|
|
76
|
+
keyColumn: M,
|
|
77
|
+
selection: u,
|
|
78
|
+
selectable: j,
|
|
79
|
+
onSortChange: b,
|
|
80
|
+
onPageChange: T,
|
|
81
|
+
onPageSizeChange: w,
|
|
82
|
+
onSelectionChange: C,
|
|
83
|
+
onRowClick: V,
|
|
84
|
+
onRowHover: m,
|
|
85
|
+
labels: R,
|
|
86
|
+
emptyContent: D,
|
|
87
|
+
size: a
|
|
88
|
+
} = t, O = p === void 0 ? $e : p, E = M === void 0 ? "id" : M, x = j === void 0 ? !1 : j;
|
|
89
|
+
process.env.NODE_ENV !== "production" && n.some((r) => r[E] == null) && console.error(`<TableUI>: rows are missing the identity column \`${E}\`. Set the \`keyColumn\` prop to a column present on every row, or add the column to the data.`);
|
|
90
|
+
let N;
|
|
91
|
+
e[0] !== R ? (N = {
|
|
92
|
+
...ve,
|
|
93
|
+
...R
|
|
94
|
+
}, e[0] = R, e[1] = N) : N = e[1];
|
|
95
|
+
const h = N, _ = Math.min(...O), H = c > _;
|
|
96
|
+
let v;
|
|
97
|
+
e[2] !== h ? (v = Ne(h), e[2] = h, e[3] = v) : v = e[3];
|
|
98
|
+
const U = v;
|
|
99
|
+
let z;
|
|
100
|
+
e[4] !== u ? (z = u ?? [], e[4] = u, e[5] = z) : z = e[5];
|
|
101
|
+
let B;
|
|
102
|
+
e[6] !== z ? (B = new Set(z), e[6] = z, e[7] = B) : B = e[7];
|
|
103
|
+
const y = B;
|
|
104
|
+
let s;
|
|
105
|
+
e[8] !== E ? (s = (o, r) => o[E] ?? r, e[8] = E, e[9] = s) : s = e[9];
|
|
106
|
+
const I = s;
|
|
107
|
+
let W;
|
|
108
|
+
e[10] !== I || e[11] !== n ? (W = n.map(I), e[10] = I, e[11] = n, e[12] = W) : W = e[12];
|
|
109
|
+
const S = W;
|
|
110
|
+
let A;
|
|
111
|
+
e[13] !== S || e[14] !== y ? (A = S.length > 0 && S.every((o) => y.has(o)), e[13] = S, e[14] = y, e[15] = A) : A = e[15];
|
|
112
|
+
const P = A;
|
|
113
|
+
let L;
|
|
114
|
+
e[16] !== P || e[17] !== S || e[18] !== y ? (L = !P && S.some((o) => y.has(o)), e[16] = P, e[17] = S, e[18] = y, e[19] = L) : L = e[19];
|
|
115
|
+
const ae = L;
|
|
116
|
+
let oe;
|
|
117
|
+
e[20] !== b || e[21] !== d?.columnId || e[22] !== d?.direction ? (oe = (o) => {
|
|
118
|
+
if (!b)
|
|
119
|
+
return;
|
|
120
|
+
const k = d?.columnId === o && d?.direction === "asc" ? "desc" : "asc";
|
|
121
|
+
b({
|
|
122
|
+
columnId: o,
|
|
123
|
+
direction: k
|
|
124
|
+
});
|
|
125
|
+
}, e[20] = b, e[21] = d?.columnId, e[22] = d?.direction, e[23] = oe) : oe = e[23];
|
|
126
|
+
const te = oe;
|
|
127
|
+
let ie;
|
|
128
|
+
e[24] !== P || e[25] !== C || e[26] !== S || e[27] !== u ? (ie = () => {
|
|
129
|
+
if (C)
|
|
130
|
+
if (P)
|
|
131
|
+
C((u ?? []).filter((o) => !S.includes(o)));
|
|
132
|
+
else {
|
|
133
|
+
const o = new Set(u ?? []);
|
|
134
|
+
for (const r of S)
|
|
135
|
+
o.add(r);
|
|
136
|
+
C([...o]);
|
|
137
|
+
}
|
|
138
|
+
}, e[24] = P, e[25] = C, e[26] = S, e[27] = u, e[28] = ie) : ie = e[28];
|
|
139
|
+
const ce = ie;
|
|
140
|
+
let re;
|
|
141
|
+
e[29] !== C || e[30] !== u ? (re = (o) => {
|
|
142
|
+
if (!C)
|
|
143
|
+
return;
|
|
144
|
+
const r = new Set(u ?? []);
|
|
145
|
+
r.has(o) ? r.delete(o) : r.add(o), C([...r]);
|
|
146
|
+
}, e[29] = C, e[30] = u, e[31] = re) : re = e[31];
|
|
147
|
+
const de = re;
|
|
148
|
+
let G;
|
|
149
|
+
e[32] !== h || e[33] !== P || e[34] !== ce || e[35] !== x || e[36] !== ae ? (G = x ? /* @__PURE__ */ f(ne, { padding: "checkbox", sx: $.headerCell, children: /* @__PURE__ */ f(ue, { checked: P, indeterminate: ae, onChange: ce, inputProps: {
|
|
150
|
+
"aria-label": h.selectAll
|
|
151
|
+
} }) }) : null, e[32] = h, e[33] = P, e[34] = ce, e[35] = x, e[36] = ae, e[37] = G) : G = e[37];
|
|
152
|
+
let K;
|
|
153
|
+
if (e[38] !== i || e[39] !== te || e[40] !== b || e[41] !== d?.columnId || e[42] !== d?.direction) {
|
|
154
|
+
let o;
|
|
155
|
+
e[44] !== te || e[45] !== b || e[46] !== d?.columnId || e[47] !== d?.direction ? (o = (r) => {
|
|
156
|
+
const k = d?.columnId === r.id, J = k ? d?.direction : void 0;
|
|
157
|
+
return /* @__PURE__ */ f(ne, { align: r.align, sortDirection: J, sx: $.headerCell, style: r.width != null ? {
|
|
158
|
+
width: r.width
|
|
159
|
+
} : void 0, children: r.sortable && b ? /* @__PURE__ */ f(we, { active: k, direction: J ?? "asc", onClick: () => te(r.id), children: r.label }) : r.label }, r.id);
|
|
160
|
+
}, e[44] = te, e[45] = b, e[46] = d?.columnId, e[47] = d?.direction, e[48] = o) : o = e[48], K = i.map(o), e[38] = i, e[39] = te, e[40] = b, e[41] = d?.columnId, e[42] = d?.direction, e[43] = K;
|
|
161
|
+
} else
|
|
162
|
+
K = e[43];
|
|
163
|
+
let Z;
|
|
164
|
+
e[49] !== G || e[50] !== K ? (Z = /* @__PURE__ */ f(xe, { children: /* @__PURE__ */ ee(ge, { children: [
|
|
165
|
+
G,
|
|
166
|
+
K
|
|
167
|
+
] }) }), e[49] = G, e[50] = K, e[51] = Z) : Z = e[51];
|
|
168
|
+
let X;
|
|
169
|
+
e[52] !== h || e[53] !== i || e[54] !== D || e[55] !== de || e[56] !== V || e[57] !== m || e[58] !== I || e[59] !== n || e[60] !== x || e[61] !== y ? (X = n.length === 0 ? /* @__PURE__ */ f(ge, { children: /* @__PURE__ */ f(ne, { colSpan: i.length + (x ? 1 : 0), sx: $.empty, children: D ?? null }) }) : n.map((o, r) => {
|
|
170
|
+
const k = I(o, r), J = y.has(k);
|
|
171
|
+
return /* @__PURE__ */ ee(ge, { hover: !0, selected: J, onClick: () => V?.(o), onMouseEnter: () => m?.(o), onMouseLeave: () => m?.(null), sx: {
|
|
172
|
+
...$.row,
|
|
173
|
+
...V ? $.rowClickable : null
|
|
174
|
+
}, children: [
|
|
175
|
+
x ? /* @__PURE__ */ f(ne, { padding: "checkbox", children: /* @__PURE__ */ f(ue, { checked: J, onClick: (F) => {
|
|
176
|
+
F.stopPropagation(), de(k);
|
|
177
|
+
}, inputProps: {
|
|
178
|
+
"aria-label": h.selectRow(k)
|
|
179
|
+
} }) }) : null,
|
|
180
|
+
i.map((F) => /* @__PURE__ */ f(ne, { align: F.align, children: F.formatter ? F.formatter(o[F.id], o) : De(o[F.id]) }, F.id))
|
|
181
|
+
] }, k);
|
|
182
|
+
}), e[52] = h, e[53] = i, e[54] = D, e[55] = de, e[56] = V, e[57] = m, e[58] = I, e[59] = n, e[60] = x, e[61] = y, e[62] = X) : X = e[62];
|
|
183
|
+
let q;
|
|
184
|
+
e[63] !== X ? (q = /* @__PURE__ */ f(ze, { children: X }), e[63] = X, e[64] = q) : q = e[64];
|
|
185
|
+
let Q;
|
|
186
|
+
e[65] !== a || e[66] !== Z || e[67] !== q ? (Q = /* @__PURE__ */ f(Ae, { children: /* @__PURE__ */ ee(ke, { stickyHeader: !0, size: a, sx: $.table, children: [
|
|
187
|
+
Z,
|
|
188
|
+
q
|
|
189
|
+
] }) }), e[65] = a, e[66] = Z, e[67] = q, e[68] = Q) : Q = e[68];
|
|
190
|
+
let Y;
|
|
191
|
+
e[69] !== U || e[70] !== h || e[71] !== T || e[72] !== w || e[73] !== l || e[74] !== g || e[75] !== O || e[76] !== H || e[77] !== c ? (Y = H ? /* @__PURE__ */ f(Pe, { component: "div", count: c, page: l, rowsPerPage: g, rowsPerPageOptions: [...O], onPageChange: (o, r) => T?.(r), onRowsPerPageChange: (o) => {
|
|
192
|
+
const r = parseInt(o.target.value, 10);
|
|
193
|
+
w?.(r);
|
|
194
|
+
}, labelRowsPerPage: h.rowsPerPage, labelDisplayedRows: (o) => {
|
|
195
|
+
const {
|
|
196
|
+
from: r,
|
|
197
|
+
to: k,
|
|
198
|
+
count: J
|
|
199
|
+
} = o;
|
|
200
|
+
return h.paginationOf(r, k, J);
|
|
201
|
+
}, ActionsComponent: U, sx: $.pagination }) : null, e[69] = U, e[70] = h, e[71] = T, e[72] = w, e[73] = l, e[74] = g, e[75] = O, e[76] = H, e[77] = c, e[78] = Y) : Y = e[78];
|
|
202
|
+
let le;
|
|
203
|
+
return e[79] !== Q || e[80] !== Y ? (le = /* @__PURE__ */ ee(pe, { sx: $.container, children: [
|
|
204
|
+
Q,
|
|
205
|
+
Y
|
|
206
|
+
] }), e[79] = Q, e[80] = Y, e[81] = le) : le = e[81], le;
|
|
207
|
+
}
|
|
208
|
+
function De(t) {
|
|
209
|
+
return t == null ? "" : typeof t == "string" || typeof t == "number" ? t : typeof t == "boolean" ? String(t) : Array.isArray(t) || typeof t == "object" ? JSON.stringify(t) : "";
|
|
210
|
+
}
|
|
211
|
+
function Ne(t) {
|
|
212
|
+
return function({
|
|
213
|
+
count: i,
|
|
214
|
+
page: n,
|
|
215
|
+
rowsPerPage: c,
|
|
216
|
+
onPageChange: l
|
|
217
|
+
}) {
|
|
218
|
+
const g = Math.max(0, Math.ceil(i / c) - 1);
|
|
219
|
+
return /* @__PURE__ */ ee(pe, { sx: $.paginationActions, children: [
|
|
220
|
+
/* @__PURE__ */ f(se, { size: "small", onClick: (p) => l(p, 0), disabled: n === 0, "aria-label": t.firstPage, children: /* @__PURE__ */ f(Te, { fontSize: "small" }) }),
|
|
221
|
+
/* @__PURE__ */ f(se, { size: "small", onClick: (p) => l(p, n - 1), disabled: n === 0, "aria-label": t.previousPage, children: /* @__PURE__ */ f(Re, { fontSize: "small" }) }),
|
|
222
|
+
/* @__PURE__ */ f(se, { size: "small", onClick: (p) => l(p, n + 1), disabled: n >= g, "aria-label": t.nextPage, children: /* @__PURE__ */ f(Ie, { fontSize: "small" }) }),
|
|
223
|
+
/* @__PURE__ */ f(se, { size: "small", onClick: (p) => l(p, g), disabled: n >= g, "aria-label": t.lastPage, children: /* @__PURE__ */ f(Oe, { fontSize: "small" }) })
|
|
224
|
+
] });
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
function Be(t, e, i) {
|
|
228
|
+
if (t == null && e == null) return 0;
|
|
229
|
+
if (t == null) return 1;
|
|
230
|
+
if (e == null) return -1;
|
|
231
|
+
let n = 0;
|
|
232
|
+
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;
|
|
233
|
+
}
|
|
234
|
+
function We(t, e, i) {
|
|
235
|
+
return [...t].sort((n, c) => Be(n[e], c[e], i));
|
|
236
|
+
}
|
|
237
|
+
function Fe(t, e, i) {
|
|
238
|
+
if (i <= 0) return t.slice();
|
|
239
|
+
const n = e * i;
|
|
240
|
+
return t.slice(n, n + i);
|
|
241
|
+
}
|
|
242
|
+
function Me(t, e) {
|
|
243
|
+
if (!e || e.length === 0) return t;
|
|
244
|
+
const i = new Map(t.map((l) => [l.id, l])), n = [], c = /* @__PURE__ */ new Set();
|
|
245
|
+
for (const l of e) {
|
|
246
|
+
const g = i.get(l);
|
|
247
|
+
g && !c.has(l) && (n.push(g), c.add(l));
|
|
248
|
+
}
|
|
249
|
+
for (const l of t)
|
|
250
|
+
c.has(l.id) || n.push(l);
|
|
251
|
+
return n;
|
|
252
|
+
}
|
|
253
|
+
function He(t, e) {
|
|
254
|
+
const i = e.sort?.columnId != null ? We(t, e.sort.columnId, e.sort.direction) : t, n = Fe(i, e.page, e.pageSize);
|
|
255
|
+
return {
|
|
256
|
+
sorted: i,
|
|
257
|
+
visible: n
|
|
258
|
+
};
|
|
259
|
+
}
|
|
260
|
+
function ot(t, e) {
|
|
261
|
+
const n = [e.map((c) => he(Ue(c.label))).join(",")];
|
|
262
|
+
for (const c of t) {
|
|
263
|
+
const l = e.map((g) => he(Je(c[g.id])));
|
|
264
|
+
n.push(l.join(","));
|
|
265
|
+
}
|
|
266
|
+
return n.join(`
|
|
267
|
+
`);
|
|
268
|
+
}
|
|
269
|
+
function he(t) {
|
|
270
|
+
return /[",\n\r]/.test(t) ? `"${t.replace(/"/g, '""')}"` : t;
|
|
271
|
+
}
|
|
272
|
+
function Ue(t) {
|
|
273
|
+
return typeof t == "string" ? t : typeof t == "number" || typeof t == "boolean" ? String(t) : "";
|
|
274
|
+
}
|
|
275
|
+
function Je(t) {
|
|
276
|
+
return t == null ? "" : typeof t == "string" ? t : typeof t == "number" || typeof t == "boolean" ? String(t) : Array.isArray(t) || typeof t == "object" ? JSON.stringify(t) : "";
|
|
277
|
+
}
|
|
278
|
+
function it(t) {
|
|
279
|
+
const e = me(57);
|
|
280
|
+
let i, n, c, l, g, p, d, M, u, j, b, T, w;
|
|
281
|
+
e[0] !== t ? ({
|
|
282
|
+
columns: i,
|
|
283
|
+
visibleColumns: w,
|
|
284
|
+
initialPageSize: j,
|
|
285
|
+
selection: u,
|
|
286
|
+
onSelectionChange: p,
|
|
287
|
+
onRowClick: l,
|
|
288
|
+
onRowHover: g,
|
|
289
|
+
remote: b,
|
|
290
|
+
total: M,
|
|
291
|
+
onSortChange: d,
|
|
292
|
+
onPageChange: n,
|
|
293
|
+
onPageSizeChange: c,
|
|
294
|
+
...T
|
|
295
|
+
} = t, e[0] = t, e[1] = i, e[2] = n, e[3] = c, e[4] = l, e[5] = g, e[6] = p, e[7] = d, e[8] = M, e[9] = u, e[10] = j, e[11] = b, e[12] = T, e[13] = w) : (i = e[1], n = e[2], c = e[3], l = e[4], g = e[5], p = e[6], d = e[7], M = e[8], u = e[9], j = e[10], b = e[11], T = e[12], w = e[13]);
|
|
296
|
+
const C = j === void 0 ? Le : j, V = b === void 0 ? !1 : b, m = be(), R = ye(m, Ve);
|
|
297
|
+
let D;
|
|
298
|
+
e[14] !== C ? (D = (s) => ({
|
|
299
|
+
sort: s.sort,
|
|
300
|
+
page: s.page ?? 0,
|
|
301
|
+
pageSize: s.pageSize ?? C,
|
|
302
|
+
columnOrder: s.columnOrder
|
|
303
|
+
}), e[14] = C, e[15] = D) : D = e[15];
|
|
304
|
+
const a = Ce(m, D);
|
|
305
|
+
let O;
|
|
306
|
+
if (e[16] !== i || e[17] !== a.columnOrder || e[18] !== w) {
|
|
307
|
+
const s = Me(i, a.columnOrder);
|
|
308
|
+
O = w == null ? s : s.slice(0, w), e[16] = i, e[17] = a.columnOrder, e[18] = w, e[19] = O;
|
|
309
|
+
} else
|
|
310
|
+
O = e[19];
|
|
311
|
+
const E = O;
|
|
312
|
+
let x;
|
|
313
|
+
e: {
|
|
314
|
+
if (V) {
|
|
315
|
+
let A;
|
|
316
|
+
e[20] !== R ? (A = R ?? [], e[20] = R, e[21] = A) : A = e[21];
|
|
317
|
+
const P = M ?? 0;
|
|
318
|
+
let L;
|
|
319
|
+
e[22] !== A || e[23] !== P ? (L = {
|
|
320
|
+
rows: A,
|
|
321
|
+
totalRows: P
|
|
322
|
+
}, e[22] = A, e[23] = P, e[24] = L) : L = e[24], x = L;
|
|
323
|
+
break e;
|
|
324
|
+
}
|
|
325
|
+
let s;
|
|
326
|
+
e[25] !== R || e[26] !== a.page || e[27] !== a.pageSize || e[28] !== a.sort ? (s = He(R ?? [], {
|
|
327
|
+
sort: a.sort,
|
|
328
|
+
page: a.page,
|
|
329
|
+
pageSize: a.pageSize
|
|
330
|
+
}), e[25] = R, e[26] = a.page, e[27] = a.pageSize, e[28] = a.sort, e[29] = s) : s = e[29];
|
|
331
|
+
const {
|
|
332
|
+
sorted: I,
|
|
333
|
+
visible: W
|
|
334
|
+
} = s;
|
|
335
|
+
let S;
|
|
336
|
+
e[30] !== I.length || e[31] !== W ? (S = {
|
|
337
|
+
rows: W,
|
|
338
|
+
totalRows: I.length
|
|
339
|
+
}, e[30] = I.length, e[31] = W, e[32] = S) : S = e[32], x = S;
|
|
340
|
+
}
|
|
341
|
+
const {
|
|
342
|
+
rows: N,
|
|
343
|
+
totalRows: h
|
|
344
|
+
} = x;
|
|
345
|
+
let _;
|
|
346
|
+
e[33] !== m || e[34] !== d ? (_ = (s) => {
|
|
347
|
+
fe(m).setState({
|
|
348
|
+
sort: s,
|
|
349
|
+
page: 0
|
|
350
|
+
}), d?.(s);
|
|
351
|
+
}, e[33] = m, e[34] = d, e[35] = _) : _ = e[35];
|
|
352
|
+
const H = _;
|
|
353
|
+
let v;
|
|
354
|
+
e[36] !== m || e[37] !== n ? (v = (s) => {
|
|
355
|
+
fe(m).setState({
|
|
356
|
+
page: s
|
|
357
|
+
}), n?.(s);
|
|
358
|
+
}, e[36] = m, e[37] = n, e[38] = v) : v = e[38];
|
|
359
|
+
const U = v;
|
|
360
|
+
let z;
|
|
361
|
+
e[39] !== m || e[40] !== c ? (z = (s) => {
|
|
362
|
+
fe(m).setState({
|
|
363
|
+
pageSize: s,
|
|
364
|
+
page: 0
|
|
365
|
+
}), c?.(s);
|
|
366
|
+
}, e[39] = m, e[40] = c, e[41] = z) : z = e[41];
|
|
367
|
+
const B = z;
|
|
368
|
+
let y;
|
|
369
|
+
return e[42] !== U || e[43] !== B || e[44] !== H || e[45] !== l || e[46] !== g || e[47] !== p || e[48] !== E || e[49] !== N || e[50] !== u || e[51] !== h || e[52] !== a.page || e[53] !== a.pageSize || e[54] !== a.sort || e[55] !== T ? (y = /* @__PURE__ */ f(je, { ...T, columns: E, rows: N, total: h, page: a.page, pageSize: a.pageSize, sort: a.sort, selection: u, onSortChange: H, onPageChange: U, onPageSizeChange: B, onSelectionChange: p, onRowClick: l, onRowHover: g }), e[42] = U, e[43] = B, e[44] = H, e[45] = l, e[46] = g, e[47] = p, e[48] = E, e[49] = N, e[50] = u, e[51] = h, e[52] = a.page, e[53] = a.pageSize, e[54] = a.sort, e[55] = T, e[56] = y) : y = e[56], y;
|
|
370
|
+
}
|
|
371
|
+
function Ve(t) {
|
|
372
|
+
return t.data;
|
|
373
|
+
}
|
|
374
|
+
export {
|
|
375
|
+
ve as D,
|
|
376
|
+
it as T,
|
|
377
|
+
Le as a,
|
|
378
|
+
$e as b,
|
|
379
|
+
je as c,
|
|
380
|
+
Be as d,
|
|
381
|
+
He as e,
|
|
382
|
+
We as f,
|
|
383
|
+
Fe as p,
|
|
384
|
+
Me as r,
|
|
385
|
+
$ as s,
|
|
386
|
+
ot as t
|
|
387
|
+
};
|
|
388
|
+
//# sourceMappingURL=table-CQCAnDLb.js.map
|