@carto/ps-react-ui 5.0.0-widgets.9 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions-BjPfCLG9.js +1024 -0
- package/dist/actions-BjPfCLG9.js.map +1 -0
- package/dist/actions-CGJD6q0t.js +1318 -0
- package/dist/actions-CGJD6q0t.js.map +1 -0
- package/dist/category-DGUDabsi.js +829 -0
- package/dist/category-DGUDabsi.js.map +1 -0
- package/dist/chart-config-B_fdIcD3.js +108 -0
- package/dist/chart-config-B_fdIcD3.js.map +1 -0
- package/dist/chat.js +1642 -0
- package/dist/chat.js.map +1 -0
- package/dist/cjs-CBrZjPCj.js +75 -0
- package/dist/cjs-CBrZjPCj.js.map +1 -0
- package/dist/components-FED-ArwH.js +4053 -0
- package/dist/components-FED-ArwH.js.map +1 -0
- package/dist/components.js +5 -1351
- package/dist/copy-button-TTlZONkX.js +34 -0
- package/dist/copy-button-TTlZONkX.js.map +1 -0
- package/dist/csv-modifiers-D6HGC24b.js +26 -0
- package/dist/csv-modifiers-D6HGC24b.js.map +1 -0
- package/dist/download-DdaK3qgC.js +232 -0
- package/dist/download-DdaK3qgC.js.map +1 -0
- package/dist/echart-BkaV3V5G.js +133 -0
- package/dist/echart-BkaV3V5G.js.map +1 -0
- package/dist/echart-CRihbmRv.js +249 -0
- package/dist/echart-CRihbmRv.js.map +1 -0
- package/dist/formatter-wVO81tYk.js +6 -0
- package/dist/formatter-wVO81tYk.js.map +1 -0
- package/dist/formula-YfZmmuYX.js +190 -0
- package/dist/formula-YfZmmuYX.js.map +1 -0
- package/dist/formula-noJzQwKo.js +285 -0
- package/dist/formula-noJzQwKo.js.map +1 -0
- package/dist/hooks-zf5gKZYq.js +22 -0
- package/dist/hooks-zf5gKZYq.js.map +1 -0
- package/dist/legend/stores.js +2 -0
- package/dist/legend.js +2284 -0
- package/dist/legend.js.map +1 -0
- package/dist/markdown-2dfL6Cmb.js +165 -0
- package/dist/markdown-2dfL6Cmb.js.map +1 -0
- package/dist/markdown-content-BWUqwx9F.js +8776 -0
- package/dist/markdown-content-BWUqwx9F.js.map +1 -0
- package/dist/range-BCMAl5xf.js +277 -0
- package/dist/range-BCMAl5xf.js.map +1 -0
- package/dist/rolldown-runtime-B0aSnxlc.js +20 -0
- package/dist/row-CvVGBuy_.js +35 -0
- package/dist/row-CvVGBuy_.js.map +1 -0
- package/dist/shared-resize-observer-BEiP2rQt.js +157 -0
- package/dist/shared-resize-observer-BEiP2rQt.js.map +1 -0
- package/dist/smart-tooltip-CwGHCqab.js +34 -0
- package/dist/smart-tooltip-CwGHCqab.js.map +1 -0
- package/dist/spread-Ccpg9fi0.js +149 -0
- package/dist/spread-Ccpg9fi0.js.map +1 -0
- package/dist/stores-mad-9yFn.js +369 -0
- package/dist/stores-mad-9yFn.js.map +1 -0
- package/dist/stores-tiFePP0A.js +243 -0
- package/dist/stores-tiFePP0A.js.map +1 -0
- package/dist/styles-Y-qGBELO.js +13 -0
- package/dist/styles-Y-qGBELO.js.map +1 -0
- package/dist/table-Bx9Uj3U0.js +440 -0
- package/dist/table-Bx9Uj3U0.js.map +1 -0
- package/dist/tooltip-DJUGNZxY.js +23 -0
- package/dist/tooltip-DJUGNZxY.js.map +1 -0
- package/dist/types/chat/bubbles/chat-agent-message-markdown.d.ts +12 -0
- package/dist/types/chat/bubbles/chat-agent-message.d.ts +9 -0
- package/dist/types/chat/bubbles/chat-error-message.d.ts +2 -0
- package/dist/types/chat/bubbles/chat-suggestion-button.d.ts +2 -0
- package/dist/types/chat/bubbles/chat-user-message.d.ts +2 -0
- package/dist/types/chat/bubbles/index.d.ts +5 -0
- package/dist/types/chat/bubbles/styles.d.ts +88 -0
- package/dist/types/chat/const.d.ts +4 -0
- package/dist/types/chat/containers/chat-content.d.ts +2 -0
- package/dist/types/chat/containers/chat-footer.d.ts +2 -0
- package/dist/types/chat/containers/chat-header.d.ts +2 -0
- package/dist/types/chat/containers/chat-starter.d.ts +2 -0
- package/dist/types/chat/containers/index.d.ts +4 -0
- package/dist/types/chat/containers/styles.d.ts +160 -0
- package/dist/types/chat/feedback/chat-actions-container.d.ts +3 -0
- package/dist/types/chat/feedback/chat-loader.d.ts +2 -0
- package/dist/types/chat/feedback/chat-rating-action.d.ts +2 -0
- package/dist/types/chat/feedback/chat-thinking.d.ts +2 -0
- package/dist/types/chat/feedback/chat-tool-code-area.d.ts +2 -0
- package/dist/types/chat/feedback/chat-tool-full-view-dialog.d.ts +2 -0
- package/dist/types/chat/feedback/chat-tool-group.d.ts +2 -0
- package/dist/types/chat/feedback/chat-tool-trace.d.ts +3 -0
- package/dist/types/chat/feedback/get-tool-label.d.ts +2 -0
- package/dist/types/chat/feedback/index.d.ts +8 -0
- package/dist/types/chat/feedback/styles.d.ts +212 -0
- package/dist/types/chat/index.d.ts +21 -0
- package/dist/types/chat/types.d.ts +214 -0
- package/dist/types/chat/use-typewriter.d.ts +32 -0
- package/dist/types/components/basemaps/basemaps.d.ts +21 -1
- package/dist/types/components/basemaps/const.d.ts +1 -1
- package/dist/types/components/basemaps/group-wrapper.d.ts +1 -1
- package/dist/types/components/basemaps/group.d.ts +2 -2
- package/dist/types/components/basemaps/header.d.ts +2 -2
- package/dist/types/components/common-types.d.ts +49 -0
- package/dist/types/components/copy-button/copy-button.d.ts +2 -0
- package/dist/types/components/copy-button/types.d.ts +6 -0
- package/dist/types/components/geolocation-controls/geolocation-controls.d.ts +12 -1
- package/dist/types/components/index.d.ts +37 -20
- package/dist/types/components/lasso-tool/chip.d.ts +2 -2
- package/dist/types/components/lasso-tool/const.d.ts +2 -2
- package/dist/types/components/lasso-tool/edit-confirm-toolbar.d.ts +26 -0
- package/dist/types/components/lasso-tool/geometry-toolbar.d.ts +49 -0
- package/dist/types/components/lasso-tool/icons.d.ts +22 -5
- package/dist/types/components/lasso-tool/lasso-tool-inline.d.ts +36 -3
- package/dist/types/components/lasso-tool/lasso-tool.d.ts +34 -9
- package/dist/types/components/lasso-tool/layer-filters.d.ts +10 -0
- package/dist/types/components/lasso-tool/message.d.ts +7 -0
- package/dist/types/components/lasso-tool/options-sections.d.ts +28 -0
- package/dist/types/components/lasso-tool/styles.d.ts +24 -2
- package/dist/types/components/lasso-tool/toolbar/actions/accept-action.d.ts +13 -0
- package/dist/types/components/lasso-tool/toolbar/actions/action-menu.d.ts +28 -0
- package/dist/types/components/lasso-tool/toolbar/actions/cancel-action.d.ts +13 -0
- package/dist/types/components/lasso-tool/toolbar/actions/color-action.d.ts +44 -0
- package/dist/types/components/lasso-tool/toolbar/actions/delete-action.d.ts +11 -0
- package/dist/types/components/lasso-tool/toolbar/actions/duplicate-action.d.ts +11 -0
- package/dist/types/components/lasso-tool/toolbar/actions/edit-geometry-action.d.ts +13 -0
- package/dist/types/components/lasso-tool/toolbar/actions/edit-properties-action.d.ts +60 -0
- package/dist/types/components/lasso-tool/toolbar/actions/fill-action.d.ts +26 -0
- package/dist/types/components/lasso-tool/toolbar/actions/intersect-action.d.ts +14 -0
- package/dist/types/components/lasso-tool/toolbar/actions/label-action.d.ts +69 -0
- package/dist/types/components/lasso-tool/toolbar/actions/lock-action.d.ts +17 -0
- package/dist/types/components/lasso-tool/toolbar/actions/redo-action.d.ts +14 -0
- package/dist/types/components/lasso-tool/toolbar/actions/split-action.d.ts +14 -0
- package/dist/types/components/lasso-tool/toolbar/actions/stroke-action.d.ts +27 -0
- package/dist/types/components/lasso-tool/toolbar/actions/subtract-action.d.ts +14 -0
- package/dist/types/components/lasso-tool/toolbar/actions/toggle-type-action.d.ts +19 -0
- package/dist/types/components/lasso-tool/toolbar/actions/undo-action.d.ts +14 -0
- package/dist/types/components/lasso-tool/toolbar/actions/union-action.d.ts +14 -0
- package/dist/types/components/lasso-tool/toolbar/button.d.ts +24 -0
- package/dist/types/components/lasso-tool/toolbar/connected.d.ts +55 -0
- package/dist/types/components/lasso-tool/toolbar/context.d.ts +31 -0
- package/dist/types/components/lasso-tool/toolbar/index.d.ts +41 -0
- package/dist/types/components/lasso-tool/toolbar/styles.d.ts +26 -0
- package/dist/types/components/lasso-tool/toolbar/toolbar.d.ts +30 -0
- package/dist/types/components/lasso-tool/tools-context.d.ts +12 -0
- package/dist/types/components/lasso-tool/types.d.ts +284 -10
- package/dist/types/components/lasso-tool/undo-redo.d.ts +25 -0
- package/dist/types/components/list-data/list-data-skeleton.d.ts +1 -1
- package/dist/types/components/list-data/list-data.d.ts +17 -1
- package/dist/types/components/measurement-tools/const.d.ts +2 -2
- package/dist/types/components/measurement-tools/icons.d.ts +3 -3
- package/dist/types/components/measurement-tools/measurement-tools.d.ts +21 -1
- package/dist/types/components/measurement-tools/styles.d.ts +14 -4
- package/dist/types/components/measurement-tools/types.d.ts +1 -1
- package/dist/types/components/no-data-alert/no-data-alert.d.ts +1 -1
- package/dist/types/components/responsive-drawer/responsive-drawer.d.ts +38 -6
- package/dist/types/components/smart-tooltip/smart-tooltip.d.ts +18 -1
- package/dist/types/components/tooltip/tooltip.d.ts +14 -1
- package/dist/types/components/types.d.ts +1 -1
- package/dist/types/components/zoom-controls/zoom-controls.d.ts +17 -1
- package/dist/types/hooks/index.d.ts +1 -2
- package/dist/types/hooks/use-widget-ref.d.ts +10 -6
- package/dist/types/legend/components/a11y.d.ts +6 -0
- package/dist/types/legend/components/contexts.d.ts +38 -0
- package/dist/types/legend/components/icons.d.ts +12 -0
- package/dist/types/legend/components/index.d.ts +26 -0
- package/dist/types/legend/components/legend-actions/legend-actions.d.ts +25 -0
- package/dist/types/legend/components/legend-actions/styles.d.ts +7 -0
- package/dist/types/legend/components/legend-category/legend-category-ui.d.ts +13 -0
- package/dist/types/legend/components/legend-category/styles.d.ts +52 -0
- package/dist/types/legend/components/legend-config-select/legend-config-select.d.ts +14 -0
- package/dist/types/legend/components/legend-config-select/styles.d.ts +44 -0
- package/dist/types/legend/components/legend-group/legend-group.d.ts +12 -0
- package/dist/types/legend/components/legend-group/styles.d.ts +129 -0
- package/dist/types/legend/components/legend-group-menu/legend-group-menu-items.d.ts +28 -0
- package/dist/types/legend/components/legend-group-menu/legend-group-menu.d.ts +11 -0
- package/dist/types/legend/components/legend-icon/legend-icon-ui.d.ts +10 -0
- package/dist/types/legend/components/legend-icon/styles.d.ts +52 -0
- package/dist/types/legend/components/legend-item/legend-item-ui.d.ts +14 -0
- package/dist/types/legend/components/legend-item/legend-item.d.ts +10 -0
- package/dist/types/{widgets/root/style.d.ts → legend/components/legend-item/styles.d.ts} +2 -3
- package/dist/types/legend/components/legend-opacity/legend-opacity.d.ts +22 -0
- package/dist/types/legend/components/legend-opacity/styles.d.ts +28 -0
- package/dist/types/legend/components/legend-overflow-menu/legend-overflow-menu.d.ts +12 -0
- package/dist/types/legend/components/legend-panel-menu/legend-panel-menu.d.ts +11 -0
- package/dist/types/legend/components/legend-proportion/legend-proportion-ui.d.ts +16 -0
- package/dist/types/legend/components/legend-proportion/styles.d.ts +37 -0
- package/dist/types/legend/components/legend-ramp/legend-ramp-ui.d.ts +20 -0
- package/dist/types/legend/components/legend-ramp/styles.d.ts +53 -0
- package/dist/types/legend/components/legend-row/legend-row.d.ts +16 -0
- package/dist/types/legend/components/legend-row/styles.d.ts +149 -0
- package/dist/types/legend/components/legend-row-menu/legend-row-menu-items.d.ts +12 -0
- package/dist/types/legend/components/legend-row-menu/legend-row-menu.d.ts +12 -0
- package/dist/types/legend/components/legend-row-menu/legend-zoom-to.d.ts +10 -0
- package/dist/types/legend/components/legend-sortable/contexts.d.ts +7 -0
- package/dist/types/legend/components/legend-sortable/legend-sortable.d.ts +11 -0
- package/dist/types/legend/components/legend-sortable/sortable-entity.d.ts +27 -0
- package/dist/types/legend/components/legend-sortable/sortable-ids.d.ts +6 -0
- package/dist/types/legend/components/legend-sortable/styles.d.ts +55 -0
- package/dist/types/legend/components/legend-swatch/legend-swatch.d.ts +26 -0
- package/dist/types/legend/components/legend-visibility-toggle/legend-visibility-toggle.d.ts +35 -0
- package/dist/types/legend/components/legend-visible-layers/legend-visible-layers.d.ts +7 -0
- package/dist/types/legend/components/legend-visible-layers/styles.d.ts +48 -0
- package/dist/types/legend/components/run-async-menu-action.d.ts +7 -0
- package/dist/types/legend/index.d.ts +135 -0
- package/dist/types/legend/provider/index.d.ts +6 -0
- package/dist/types/legend/provider/labels.d.ts +48 -0
- package/dist/types/legend/provider/legend-config-context.d.ts +7 -0
- package/dist/types/legend/provider/legend-provider.d.ts +38 -0
- package/dist/types/legend/stores/index.d.ts +5 -0
- package/dist/types/legend/stores/legend-context.d.ts +4 -0
- package/dist/types/legend/stores/legend-store-registry.d.ts +39 -0
- package/dist/types/legend/stores/selectors.d.ts +64 -0
- package/dist/types/legend/stores/types.d.ts +294 -0
- package/dist/types/widgets/actions/brush-toggle/brush-overlay.d.ts +24 -0
- package/dist/types/widgets/actions/brush-toggle/brush-toggle.d.ts +29 -0
- package/dist/types/widgets/actions/brush-toggle/hit-test.d.ts +19 -0
- package/dist/types/widgets/actions/brush-toggle/style.d.ts +21 -0
- package/dist/types/widgets/actions/brush-toggle/types.d.ts +73 -0
- package/dist/types/widgets/actions/change-column/change-column-icon.d.ts +1 -1
- package/dist/types/widgets/actions/change-column/change-column.d.ts +6 -2
- package/dist/types/widgets/actions/change-column/sortable-column-item.d.ts +2 -2
- package/dist/types/widgets/actions/download/download.d.ts +13 -2
- package/dist/types/widgets/actions/download/exports.d.ts +16 -1
- package/dist/types/widgets/actions/download/types.d.ts +1 -1
- package/dist/types/widgets/actions/fullscreen/fullscreen.d.ts +15 -2
- package/dist/types/widgets/actions/fullscreen/types.d.ts +3 -2
- package/dist/types/widgets/actions/index.d.ts +20 -18
- package/dist/types/widgets/actions/lock-selection/lock-selection.d.ts +2 -2
- package/dist/types/widgets/actions/lock-selection/types.d.ts +10 -10
- package/dist/types/widgets/actions/relative-data/relative-data.d.ts +10 -4
- package/dist/types/widgets/actions/relative-data/types.d.ts +3 -1
- package/dist/types/widgets/actions/relative-data/utils.d.ts +1 -1
- package/dist/types/widgets/actions/searcher/searcher-toggle.d.ts +2 -2
- package/dist/types/widgets/actions/searcher/searcher.d.ts +2 -2
- package/dist/types/widgets/actions/searcher/types.d.ts +2 -2
- package/dist/types/widgets/actions/stack-toggle/grouped-bar-chart-icon.d.ts +1 -1
- package/dist/types/widgets/actions/stack-toggle/stack-toggle.d.ts +5 -4
- package/dist/types/widgets/actions/stack-toggle/types.d.ts +1 -1
- package/dist/types/widgets/actions/zoom-toggle/types.d.ts +1 -1
- package/dist/types/widgets/actions/zoom-toggle/zoom-toggle.d.ts +10 -2
- package/dist/types/widgets/bar/config.d.ts +8 -4
- package/dist/types/widgets/bar/index.d.ts +3 -3
- package/dist/types/widgets/bar/skeleton.d.ts +1 -1
- package/dist/types/widgets/bar/types.d.ts +3 -3
- package/dist/types/widgets/category/category-ui.d.ts +5 -2
- package/dist/types/widgets/category/components/category-bar.d.ts +4 -1
- package/dist/types/widgets/category/components/category-legend.d.ts +5 -2
- package/dist/types/widgets/category/components/category-row-multi.d.ts +6 -2
- package/dist/types/widgets/category/components/category-row-other.d.ts +4 -1
- package/dist/types/widgets/category/components/category-row-single.d.ts +6 -2
- package/dist/types/widgets/category/config.d.ts +16 -12
- package/dist/types/widgets/category/index.d.ts +14 -6
- package/dist/types/widgets/category/skeleton.d.ts +1 -1
- package/dist/types/widgets/category/style.d.ts +1 -1
- package/dist/types/widgets/category/types.d.ts +4 -3
- package/dist/types/widgets/echart/echart-ui.d.ts +9 -2
- package/dist/types/widgets/echart/echart.d.ts +8 -2
- package/dist/types/widgets/echart/index.d.ts +5 -5
- package/dist/types/widgets/echart/options.d.ts +8 -1
- package/dist/types/widgets/echart/shared-resize-observer.d.ts +12 -0
- package/dist/types/widgets/echart/types.d.ts +7 -2
- package/dist/types/widgets/echart/utils.d.ts +57 -9
- package/dist/types/widgets/error/error.d.ts +12 -2
- package/dist/types/widgets/error/index.d.ts +2 -2
- package/dist/types/widgets/error/types.d.ts +9 -1
- package/dist/types/widgets/formula/components/item.d.ts +5 -2
- package/dist/types/widgets/formula/components/prefix.d.ts +5 -2
- package/dist/types/widgets/formula/components/row.d.ts +5 -2
- package/dist/types/widgets/formula/components/series.d.ts +5 -2
- package/dist/types/widgets/formula/components/suffix.d.ts +5 -2
- package/dist/types/widgets/formula/components/value.d.ts +5 -2
- package/dist/types/widgets/formula/config.d.ts +13 -2
- package/dist/types/widgets/formula/formula-ui.d.ts +5 -2
- package/dist/types/widgets/formula/index.d.ts +11 -11
- package/dist/types/widgets/formula/serializer.d.ts +1 -1
- package/dist/types/widgets/formula/skeleton.d.ts +1 -1
- package/dist/types/widgets/formula/types.d.ts +3 -3
- package/dist/types/widgets/histogram/config.d.ts +20 -4
- package/dist/types/widgets/histogram/index.d.ts +4 -3
- package/dist/types/widgets/histogram/skeleton.d.ts +1 -1
- package/dist/types/widgets/histogram/types.d.ts +8 -5
- package/dist/types/widgets/loader/index.d.ts +3 -0
- package/dist/types/widgets/loader/loader.d.ts +24 -0
- package/dist/types/widgets/loader/types.d.ts +9 -0
- package/dist/types/widgets/loader/utils.d.ts +35 -0
- package/dist/types/widgets/markdown/config.d.ts +12 -2
- package/dist/types/widgets/markdown/index.d.ts +5 -5
- package/dist/types/widgets/markdown/markdown-ui.d.ts +9 -2
- package/dist/types/widgets/markdown/markdown.d.ts +5 -2
- package/dist/types/widgets/markdown/skeleton.d.ts +1 -1
- package/dist/types/widgets/markdown/types.d.ts +3 -3
- package/dist/types/widgets/no-data/index.d.ts +2 -2
- package/dist/types/widgets/no-data/no-data.d.ts +5 -4
- package/dist/types/widgets/no-data/types.d.ts +6 -2
- package/dist/types/widgets/note/index.d.ts +2 -2
- package/dist/types/widgets/note/note.d.ts +12 -2
- package/dist/types/widgets/note/types.d.ts +1 -1
- package/dist/types/widgets/pie/config.d.ts +8 -4
- package/dist/types/widgets/pie/index.d.ts +3 -3
- package/dist/types/widgets/pie/skeleton.d.ts +1 -1
- package/dist/types/widgets/pie/types.d.ts +3 -3
- package/dist/types/widgets/range/components/range-item.d.ts +5 -2
- package/dist/types/widgets/range/config.d.ts +6 -5
- package/dist/types/widgets/range/index.d.ts +6 -6
- package/dist/types/widgets/range/range-ui.d.ts +5 -2
- package/dist/types/widgets/range/serializer.d.ts +1 -1
- package/dist/types/widgets/range/skeleton.d.ts +1 -1
- package/dist/types/widgets/range/types.d.ts +3 -3
- package/dist/types/widgets/scatterplot/config.d.ts +8 -4
- package/dist/types/widgets/scatterplot/index.d.ts +3 -3
- package/dist/types/widgets/scatterplot/skeleton.d.ts +1 -1
- package/dist/types/widgets/scatterplot/types.d.ts +3 -3
- package/dist/types/widgets/selection-summary/index.d.ts +2 -2
- package/dist/types/widgets/selection-summary/selection-summary.d.ts +13 -2
- package/dist/types/widgets/skeleton-loader/index.d.ts +2 -2
- package/dist/types/widgets/skeleton-loader/skeleton-loader.d.ts +12 -2
- package/dist/types/widgets/skeleton-loader/types.d.ts +1 -1
- package/dist/types/widgets/spread/components/max-value.d.ts +5 -2
- package/dist/types/widgets/spread/components/min-value.d.ts +5 -2
- package/dist/types/widgets/spread/components/separator.d.ts +5 -2
- package/dist/types/widgets/spread/config.d.ts +14 -8
- package/dist/types/widgets/spread/index.d.ts +9 -9
- package/dist/types/widgets/spread/skeleton.d.ts +1 -1
- package/dist/types/widgets/spread/spread-ui.d.ts +5 -2
- package/dist/types/widgets/spread/types.d.ts +4 -4
- package/dist/types/widgets/stores/index.d.ts +3 -2
- package/dist/types/widgets/stores/types.d.ts +31 -10
- package/dist/types/widgets/stores/use-widget-selector.d.ts +35 -0
- package/dist/types/widgets/stores/widget-store.d.ts +48 -27
- package/dist/types/widgets/subheader/index.d.ts +2 -2
- package/dist/types/widgets/subheader/subheader.d.ts +13 -2
- package/dist/types/widgets/table/components/cell-header.d.ts +2 -2
- package/dist/types/widgets/table/components/cell.d.ts +4 -2
- package/dist/types/widgets/table/components/pagination-actions.d.ts +2 -2
- package/dist/types/widgets/table/components/pagination.d.ts +2 -2
- package/dist/types/widgets/table/components/row.d.ts +2 -2
- package/dist/types/widgets/table/config.d.ts +10 -6
- package/dist/types/widgets/table/hooks/use-pagination.d.ts +12 -4
- package/dist/types/widgets/table/hooks/use-selection.d.ts +12 -3
- package/dist/types/widgets/table/hooks/use-sort.d.ts +12 -4
- package/dist/types/widgets/table/index.d.ts +17 -13
- package/dist/types/widgets/table/serializer.d.ts +1 -1
- package/dist/types/widgets/table/skeleton.d.ts +1 -1
- package/dist/types/widgets/table/table-ui.d.ts +8 -8
- package/dist/types/widgets/table/types.d.ts +5 -5
- package/dist/types/widgets/timeseries/config.d.ts +8 -4
- package/dist/types/widgets/timeseries/index.d.ts +3 -3
- package/dist/types/widgets/timeseries/skeleton.d.ts +1 -1
- package/dist/types/widgets/timeseries/types.d.ts +3 -3
- package/dist/types/widgets/toolbar-actions/index.d.ts +2 -2
- package/dist/types/widgets/toolbar-actions/toolbar-actions.d.ts +13 -4
- package/dist/types/widgets/toolbar-actions/types.d.ts +10 -3
- package/dist/types/widgets/{_shared → utils}/chart-config/config-factory.d.ts +1 -1
- package/dist/types/widgets/utils/chart-config/download-config.d.ts +3 -0
- package/dist/types/widgets/utils/chart-config/index.d.ts +9 -0
- package/dist/types/widgets/utils/chart-config/option-builders.d.ts +142 -0
- package/dist/types/widgets/utils/formatter.d.ts +2 -0
- package/dist/types/widgets/utils/index.d.ts +7 -0
- package/dist/types/widgets/utils/skeleton/index.d.ts +4 -0
- package/dist/types/widgets/wrapper/components/actions.d.ts +5 -2
- package/dist/types/widgets/wrapper/components/options.d.ts +5 -2
- package/dist/types/widgets/wrapper/components/title.d.ts +5 -2
- package/dist/types/widgets/wrapper/index.d.ts +6 -6
- package/dist/types/widgets/wrapper/types.d.ts +1 -1
- package/dist/types/widgets/wrapper/wrapper-ui.d.ts +16 -2
- package/dist/types/widgets/wrapper/wrapper.d.ts +16 -2
- package/dist/types/widgets-v2/actions/brush-toggle/brush-toggle.d.ts +56 -0
- package/dist/types/widgets-v2/actions/brush-toggle/index.d.ts +3 -0
- package/dist/types/widgets-v2/actions/brush-toggle/labels.d.ts +5 -0
- package/dist/types/widgets-v2/actions/brush-toggle/style.d.ts +12 -0
- package/dist/types/widgets-v2/actions/brush-toggle/transforms.d.ts +11 -0
- package/dist/types/widgets-v2/actions/change-column/change-column-icon.d.ts +2 -0
- package/dist/types/widgets-v2/actions/change-column/change-column.d.ts +29 -0
- package/dist/types/widgets-v2/actions/change-column/index.d.ts +3 -0
- package/dist/types/widgets-v2/actions/change-column/labels.d.ts +6 -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 +59 -0
- package/dist/types/widgets-v2/actions/change-column/types.d.ts +10 -0
- package/dist/types/widgets-v2/actions/download/constants.d.ts +12 -0
- package/dist/types/widgets-v2/actions/download/csv-item.d.ts +38 -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 +18 -0
- package/dist/types/widgets-v2/actions/download/index.d.ts +8 -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 +78 -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 +57 -0
- package/dist/types/widgets-v2/actions/fullscreen/types.d.ts +14 -0
- package/dist/types/widgets-v2/actions/index.d.ts +10 -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 +57 -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/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/show-all/index.d.ts +2 -0
- package/dist/types/widgets-v2/actions/show-all/labels.d.ts +5 -0
- package/dist/types/widgets-v2/actions/show-all/show-all.d.ts +33 -0
- package/dist/types/widgets-v2/actions/show-all/style.d.ts +8 -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/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/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/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 +88 -0
- package/dist/types/widgets-v2/category/category.d.ts +55 -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 +34 -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 +26 -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 +43 -0
- package/dist/types/widgets-v2/category/download.d.ts +16 -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 +193 -0
- package/dist/types/widgets-v2/category/types.d.ts +55 -0
- package/dist/types/widgets-v2/echart/echart-ui.d.ts +44 -0
- package/dist/types/widgets-v2/echart/echart.d.ts +83 -0
- package/dist/types/widgets-v2/echart/edge-label-clamp.d.ts +57 -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/style.d.ts +7 -0
- package/dist/types/widgets-v2/echart/use-chart-selection.d.ts +57 -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/index.d.ts +5 -0
- package/dist/types/widgets-v2/histogram/options.d.ts +42 -0
- package/dist/types/widgets-v2/histogram/skeleton.d.ts +9 -0
- package/dist/types/widgets-v2/histogram/transforms.d.ts +28 -0
- package/dist/types/widgets-v2/histogram/types.d.ts +60 -0
- package/dist/types/widgets-v2/index.d.ts +109 -0
- package/dist/types/widgets-v2/markdown/download.d.ts +16 -0
- package/dist/types/widgets-v2/markdown/index.d.ts +6 -0
- package/dist/types/widgets-v2/markdown/markdown-content.d.ts +40 -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/index.d.ts +4 -0
- package/dist/types/widgets-v2/pie/options.d.ts +35 -0
- package/dist/types/widgets-v2/pie/skeleton.d.ts +13 -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/index.d.ts +5 -0
- package/dist/types/widgets-v2/scatterplot/options.d.ts +42 -0
- package/dist/types/widgets-v2/scatterplot/skeleton.d.ts +12 -0
- package/dist/types/widgets-v2/scatterplot/transforms.d.ts +26 -0
- package/dist/types/widgets-v2/scatterplot/types.d.ts +54 -0
- package/dist/types/widgets-v2/selection-summary/labels.d.ts +11 -0
- package/dist/types/widgets-v2/selection-summary/selection-summary.d.ts +29 -0
- package/dist/types/widgets-v2/selection-summary/style.d.ts +38 -0
- package/dist/types/widgets-v2/spread/band.d.ts +37 -0
- package/dist/types/widgets-v2/spread/download.d.ts +15 -0
- package/dist/types/widgets-v2/spread/index.d.ts +7 -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/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/transforms.d.ts +4 -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/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/helpers.d.ts +32 -0
- package/dist/types/widgets-v2/table/index.d.ts +8 -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/transforms.d.ts +15 -0
- package/dist/types/widgets-v2/table/types.d.ts +48 -0
- package/dist/types/widgets-v2/timeseries/download.d.ts +17 -0
- package/dist/types/widgets-v2/timeseries/index.d.ts +5 -0
- package/dist/types/widgets-v2/timeseries/options.d.ts +39 -0
- package/dist/types/widgets-v2/timeseries/skeleton.d.ts +8 -0
- package/dist/types/widgets-v2/timeseries/transforms.d.ts +10 -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/resolve-theme-color.d.ts +18 -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 +103 -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 +56 -0
- package/dist/use-widget-selector-VSPhfhNm.js +12 -0
- package/dist/use-widget-selector-VSPhfhNm.js.map +1 -0
- package/dist/utils-Dr6gf3vD.js +58 -0
- package/dist/utils-Dr6gf3vD.js.map +1 -0
- package/dist/widget-store-BFPKYm4R.js +187 -0
- package/dist/widget-store-BFPKYm4R.js.map +1 -0
- package/dist/widgets/actions.js +2 -837
- package/dist/widgets/bar.js +183 -186
- package/dist/widgets/bar.js.map +1 -1
- package/dist/widgets/category.js +438 -455
- package/dist/widgets/category.js.map +1 -1
- package/dist/widgets/echart.js +3 -123
- package/dist/widgets/error.js +30 -5
- package/dist/widgets/error.js.map +1 -1
- package/dist/widgets/formula.js +3 -125
- package/dist/widgets/histogram.js +185 -167
- package/dist/widgets/histogram.js.map +1 -1
- package/dist/widgets/loader.js +66 -0
- package/dist/widgets/loader.js.map +1 -0
- package/dist/widgets/markdown.js +142 -121
- package/dist/widgets/markdown.js.map +1 -1
- package/dist/widgets/no-data.js +55 -5
- package/dist/widgets/no-data.js.map +1 -1
- package/dist/widgets/note.js +126 -4
- package/dist/widgets/note.js.map +1 -1
- package/dist/widgets/pie.js +244 -208
- package/dist/widgets/pie.js.map +1 -1
- package/dist/widgets/range.js +226 -210
- package/dist/widgets/range.js.map +1 -1
- package/dist/widgets/scatterplot.js +219 -216
- package/dist/widgets/scatterplot.js.map +1 -1
- package/dist/widgets/selection-summary.js +39 -38
- package/dist/widgets/selection-summary.js.map +1 -1
- package/dist/widgets/skeleton-loader.js +23 -23
- package/dist/widgets/skeleton-loader.js.map +1 -1
- package/dist/widgets/spread.js +150 -159
- package/dist/widgets/spread.js.map +1 -1
- package/dist/widgets/stores.js +3 -5
- package/dist/widgets/subheader.js +49 -50
- package/dist/widgets/subheader.js.map +1 -1
- package/dist/widgets/table.js +573 -653
- package/dist/widgets/table.js.map +1 -1
- package/dist/widgets/timeseries.js +175 -170
- package/dist/widgets/timeseries.js.map +1 -1
- package/dist/widgets/toolbar-actions.js +144 -6105
- package/dist/widgets/toolbar-actions.js.map +1 -1
- package/dist/widgets/utils.js +18 -0
- package/dist/widgets/utils.js.map +1 -0
- package/dist/widgets/wrapper.js +265 -287
- package/dist/widgets/wrapper.js.map +1 -1
- package/dist/widgets-v2/actions.js +4 -0
- package/dist/widgets-v2/bar.js +260 -0
- package/dist/widgets-v2/bar.js.map +1 -0
- package/dist/widgets-v2/category.js +2 -0
- package/dist/widgets-v2/echart.js +2 -0
- package/dist/widgets-v2/formula.js +2 -0
- package/dist/widgets-v2/histogram.js +297 -0
- package/dist/widgets-v2/histogram.js.map +1 -0
- package/dist/widgets-v2/markdown.js +3 -0
- package/dist/widgets-v2/pie.js +373 -0
- package/dist/widgets-v2/pie.js.map +1 -0
- package/dist/widgets-v2/range.js +2 -0
- package/dist/widgets-v2/scatterplot.js +330 -0
- package/dist/widgets-v2/scatterplot.js.map +1 -0
- package/dist/widgets-v2/spread.js +2 -0
- package/dist/widgets-v2/stores.js +2 -0
- package/dist/widgets-v2/table.js +2 -0
- package/dist/widgets-v2/timeseries.js +294 -0
- package/dist/widgets-v2/timeseries.js.map +1 -0
- package/dist/widgets-v2/utils.js +2 -0
- package/dist/widgets-v2.js +964 -0
- package/dist/widgets-v2.js.map +1 -0
- package/dist/zoom-toggle-IsF8BnAp.js +163 -0
- package/dist/zoom-toggle-IsF8BnAp.js.map +1 -0
- package/package.json +109 -17
- package/src/chat/bubbles/chat-agent-message-markdown.test.tsx +38 -0
- package/src/chat/bubbles/chat-agent-message-markdown.tsx +34 -0
- package/src/chat/bubbles/chat-agent-message.test.tsx +42 -0
- package/src/chat/bubbles/chat-agent-message.tsx +31 -0
- package/src/chat/bubbles/chat-error-message.test.tsx +40 -0
- package/src/chat/bubbles/chat-error-message.tsx +47 -0
- package/src/chat/bubbles/chat-suggestion-button.test.tsx +24 -0
- package/src/chat/bubbles/chat-suggestion-button.tsx +27 -0
- package/src/chat/bubbles/chat-user-message.test.tsx +27 -0
- package/src/chat/bubbles/chat-user-message.tsx +27 -0
- package/src/chat/bubbles/index.ts +5 -0
- package/src/chat/bubbles/styles.ts +171 -0
- package/src/chat/const.ts +4 -0
- package/src/chat/containers/chat-content.test.tsx +269 -0
- package/src/chat/containers/chat-content.tsx +145 -0
- package/src/chat/containers/chat-footer.test.tsx +93 -0
- package/src/chat/containers/chat-footer.tsx +166 -0
- package/src/chat/containers/chat-header.test.tsx +28 -0
- package/src/chat/containers/chat-header.tsx +29 -0
- package/src/chat/containers/chat-starter.test.tsx +32 -0
- package/src/chat/containers/chat-starter.tsx +75 -0
- package/src/chat/containers/index.ts +4 -0
- package/src/chat/containers/styles.ts +187 -0
- package/src/chat/feedback/chat-actions-container.test.tsx +64 -0
- package/src/chat/feedback/chat-actions-container.tsx +10 -0
- package/src/chat/feedback/chat-loader.test.tsx +10 -0
- package/src/chat/feedback/chat-loader.tsx +31 -0
- package/src/chat/feedback/chat-rating-action.tsx +43 -0
- package/src/chat/feedback/chat-thinking.test.tsx +15 -0
- package/src/chat/feedback/chat-thinking.tsx +23 -0
- package/src/chat/feedback/chat-tool-code-area.test.tsx +23 -0
- package/src/chat/feedback/chat-tool-code-area.tsx +71 -0
- package/src/chat/feedback/chat-tool-full-view-dialog.test.tsx +39 -0
- package/src/chat/feedback/chat-tool-full-view-dialog.tsx +121 -0
- package/src/chat/feedback/chat-tool-group.test.tsx +84 -0
- package/src/chat/feedback/chat-tool-group.tsx +156 -0
- package/src/chat/feedback/chat-tool-trace.test.tsx +81 -0
- package/src/chat/feedback/chat-tool-trace.tsx +192 -0
- package/src/chat/feedback/get-tool-label.test.tsx +91 -0
- package/src/chat/feedback/get-tool-label.ts +13 -0
- package/src/chat/feedback/index.ts +8 -0
- package/src/chat/feedback/styles.ts +239 -0
- package/src/chat/index.ts +62 -0
- package/src/chat/types.ts +247 -0
- package/src/chat/use-typewriter.test.tsx +38 -0
- package/src/chat/use-typewriter.ts +90 -0
- package/src/components/basemaps/basemaps.test.tsx +196 -0
- package/src/components/basemaps/basemaps.tsx +150 -0
- package/src/components/basemaps/const.ts +13 -0
- package/src/components/basemaps/group-wrapper.test.tsx +38 -0
- package/src/components/basemaps/group-wrapper.tsx +28 -0
- package/src/components/basemaps/group.test.tsx +52 -0
- package/src/components/basemaps/group.tsx +42 -0
- package/src/components/basemaps/header.test.tsx +54 -0
- package/src/components/basemaps/header.tsx +36 -0
- package/src/components/basemaps/styles.ts +76 -0
- package/src/components/basemaps/types.ts +30 -0
- package/src/components/common-types.ts +1 -0
- package/src/components/copy-button/copy-button.test.tsx +41 -0
- package/src/components/copy-button/copy-button.tsx +31 -0
- package/src/components/copy-button/types.ts +10 -0
- package/src/components/geolocation-controls/const.ts +6 -0
- package/src/components/geolocation-controls/geolocation-controls.test.tsx +148 -0
- package/src/components/geolocation-controls/geolocation-controls.tsx +126 -0
- package/src/components/geolocation-controls/types.ts +17 -0
- package/src/components/index.ts +163 -0
- package/src/components/lasso-tool/chip.test.tsx +257 -0
- package/src/components/lasso-tool/chip.tsx +66 -0
- package/src/components/lasso-tool/const.tsx +94 -0
- package/src/components/lasso-tool/edit-confirm-toolbar.test.tsx +67 -0
- package/src/components/lasso-tool/edit-confirm-toolbar.tsx +48 -0
- package/src/components/lasso-tool/geometry-toolbar.test.tsx +804 -0
- package/src/components/lasso-tool/geometry-toolbar.tsx +158 -0
- package/src/components/lasso-tool/icons.tsx +193 -0
- package/src/components/lasso-tool/lasso-tool-inline.test.tsx +759 -0
- package/src/components/lasso-tool/lasso-tool-inline.tsx +508 -0
- package/src/components/lasso-tool/lasso-tool.test.tsx +700 -0
- package/src/components/lasso-tool/lasso-tool.tsx +673 -0
- package/src/components/lasso-tool/layer-filters.test.tsx +103 -0
- package/src/components/lasso-tool/layer-filters.tsx +242 -0
- package/src/components/lasso-tool/message.tsx +36 -0
- package/src/components/lasso-tool/options-sections.test.tsx +101 -0
- package/src/components/lasso-tool/options-sections.tsx +104 -0
- package/src/components/lasso-tool/styles.test.ts +26 -0
- package/src/components/lasso-tool/styles.ts +190 -0
- package/src/components/lasso-tool/toolbar/actions/accept-action.tsx +34 -0
- package/src/components/lasso-tool/toolbar/actions/action-menu.tsx +103 -0
- package/src/components/lasso-tool/toolbar/actions/cancel-action.tsx +34 -0
- package/src/components/lasso-tool/toolbar/actions/color-action.tsx +201 -0
- package/src/components/lasso-tool/toolbar/actions/delete-action.tsx +31 -0
- package/src/components/lasso-tool/toolbar/actions/duplicate-action.tsx +30 -0
- package/src/components/lasso-tool/toolbar/actions/edit-geometry-action.tsx +44 -0
- package/src/components/lasso-tool/toolbar/actions/edit-properties-action.tsx +487 -0
- package/src/components/lasso-tool/toolbar/actions/fill-action.tsx +55 -0
- package/src/components/lasso-tool/toolbar/actions/intersect-action.tsx +33 -0
- package/src/components/lasso-tool/toolbar/actions/label-action.tsx +292 -0
- package/src/components/lasso-tool/toolbar/actions/lock-action.tsx +40 -0
- package/src/components/lasso-tool/toolbar/actions/redo-action.tsx +35 -0
- package/src/components/lasso-tool/toolbar/actions/split-action.tsx +33 -0
- package/src/components/lasso-tool/toolbar/actions/stroke-action.tsx +57 -0
- package/src/components/lasso-tool/toolbar/actions/style-actions.test.tsx +212 -0
- package/src/components/lasso-tool/toolbar/actions/subtract-action.tsx +33 -0
- package/src/components/lasso-tool/toolbar/actions/toggle-type-action.tsx +50 -0
- package/src/components/lasso-tool/toolbar/actions/undo-action.tsx +35 -0
- package/src/components/lasso-tool/toolbar/actions/union-action.tsx +40 -0
- package/src/components/lasso-tool/toolbar/button.tsx +62 -0
- package/src/components/lasso-tool/toolbar/connected.tsx +383 -0
- package/src/components/lasso-tool/toolbar/context.tsx +65 -0
- package/src/components/lasso-tool/toolbar/index.ts +70 -0
- package/src/components/lasso-tool/toolbar/styles.ts +42 -0
- package/src/components/lasso-tool/toolbar/toolbar.test.tsx +77 -0
- package/src/components/lasso-tool/toolbar/toolbar.tsx +50 -0
- package/src/components/lasso-tool/tools-context.tsx +47 -0
- package/src/components/lasso-tool/types.ts +384 -0
- package/src/components/lasso-tool/undo-redo.test.tsx +162 -0
- package/src/components/lasso-tool/undo-redo.tsx +55 -0
- package/src/components/list-data/list-data-skeleton.test.tsx +10 -0
- package/src/components/list-data/list-data-skeleton.tsx +40 -0
- package/src/components/list-data/list-data.test.tsx +167 -0
- package/src/components/list-data/list-data.tsx +124 -0
- package/src/components/list-data/styles.ts +37 -0
- package/src/components/list-data/types.ts +25 -0
- package/src/components/measurement-tools/const.tsx +108 -0
- package/src/components/measurement-tools/icons.tsx +54 -0
- package/src/components/measurement-tools/measurement-tools.test.tsx +165 -0
- package/src/components/measurement-tools/measurement-tools.tsx +467 -0
- package/src/components/measurement-tools/styles.ts +92 -0
- package/src/components/measurement-tools/types.ts +77 -0
- package/src/components/no-data-alert/no-data-alert.test.tsx +69 -0
- package/src/components/no-data-alert/no-data-alert.tsx +59 -0
- package/src/components/responsive-drawer/responsive-drawer.test.tsx +415 -0
- package/src/components/responsive-drawer/responsive-drawer.tsx +219 -0
- package/src/components/smart-tooltip/smart-tooltip.test.tsx +168 -0
- package/src/components/smart-tooltip/smart-tooltip.tsx +74 -0
- package/src/components/tooltip/tooltip.test.tsx +86 -0
- package/src/components/tooltip/tooltip.tsx +43 -0
- package/src/components/types.ts +1 -0
- package/src/components/zoom-controls/styles.ts +27 -0
- package/src/components/zoom-controls/types.ts +19 -0
- package/src/components/zoom-controls/zoom-controls.test.tsx +101 -0
- package/src/components/zoom-controls/zoom-controls.tsx +130 -0
- package/src/hooks/index.ts +1 -0
- package/src/hooks/use-skeleton.test.tsx +32 -0
- package/src/hooks/use-skeleton.ts +19 -0
- package/src/hooks/use-widget-ref.ts +34 -0
- package/src/legend/components/a11y.ts +14 -0
- package/src/legend/components/contexts.ts +57 -0
- package/src/legend/components/icons.tsx +22 -0
- package/src/legend/components/index.ts +38 -0
- package/src/legend/components/legend-actions/legend-actions.tsx +58 -0
- package/src/legend/components/legend-actions/styles.ts +9 -0
- package/src/legend/components/legend-category/legend-category-ui.tsx +91 -0
- package/src/legend/components/legend-category/styles.ts +61 -0
- package/src/legend/components/legend-config-select/legend-config-select.tsx +96 -0
- package/src/legend/components/legend-config-select/styles.ts +48 -0
- package/src/legend/components/legend-group/legend-group.test.tsx +297 -0
- package/src/legend/components/legend-group/legend-group.tsx +126 -0
- package/src/legend/components/legend-group/styles.ts +184 -0
- package/src/legend/components/legend-group-menu/legend-group-menu-items.tsx +132 -0
- package/src/legend/components/legend-group-menu/legend-group-menu.tsx +25 -0
- package/src/legend/components/legend-icon/legend-icon-ui.tsx +56 -0
- package/src/legend/components/legend-icon/styles.ts +56 -0
- package/src/legend/components/legend-item/legend-item-ui.test.tsx +362 -0
- package/src/legend/components/legend-item/legend-item-ui.tsx +43 -0
- package/src/legend/components/legend-item/legend-item.tsx +34 -0
- package/src/legend/components/legend-item/styles.ts +11 -0
- package/src/legend/components/legend-opacity/legend-opacity.tsx +152 -0
- package/src/legend/components/legend-opacity/styles.ts +33 -0
- package/src/legend/components/legend-overflow-menu/legend-overflow-menu.tsx +84 -0
- package/src/legend/components/legend-panel-menu/legend-panel-menu.tsx +23 -0
- package/src/legend/components/legend-proportion/legend-proportion-ui.tsx +122 -0
- package/src/legend/components/legend-proportion/styles.ts +43 -0
- package/src/legend/components/legend-ramp/legend-ramp-ui.tsx +160 -0
- package/src/legend/components/legend-ramp/styles.ts +62 -0
- package/src/legend/components/legend-row/legend-row.test.tsx +736 -0
- package/src/legend/components/legend-row/legend-row.tsx +170 -0
- package/src/legend/components/legend-row/styles.ts +219 -0
- package/src/legend/components/legend-row-menu/legend-row-menu-items.tsx +57 -0
- package/src/legend/components/legend-row-menu/legend-row-menu.tsx +30 -0
- package/src/legend/components/legend-row-menu/legend-zoom-to.tsx +43 -0
- package/src/legend/components/legend-sortable/contexts.ts +12 -0
- package/src/legend/components/legend-sortable/legend-sortable.test.tsx +144 -0
- package/src/legend/components/legend-sortable/legend-sortable.tsx +195 -0
- package/src/legend/components/legend-sortable/sortable-entity.tsx +91 -0
- package/src/legend/components/legend-sortable/sortable-ids.ts +17 -0
- package/src/legend/components/legend-sortable/styles.ts +65 -0
- package/src/legend/components/legend-swatch/legend-swatch.test.tsx +109 -0
- package/src/legend/components/legend-swatch/legend-swatch.tsx +237 -0
- package/src/legend/components/legend-visibility-toggle/legend-visibility-toggle.tsx +133 -0
- package/src/legend/components/legend-visible-layers/legend-visible-layers.test.tsx +86 -0
- package/src/legend/components/legend-visible-layers/legend-visible-layers.tsx +135 -0
- package/src/legend/components/legend-visible-layers/styles.ts +60 -0
- package/src/legend/components/run-async-menu-action.ts +20 -0
- package/src/legend/index.ts +176 -0
- package/src/legend/provider/index.ts +6 -0
- package/src/legend/provider/labels.ts +101 -0
- package/src/legend/provider/legend-config-context.ts +15 -0
- package/src/legend/provider/legend-provider.tsx +102 -0
- package/src/legend/stores/index.ts +50 -0
- package/src/legend/stores/legend-context.ts +17 -0
- package/src/legend/stores/legend-store-registry.ts +745 -0
- package/src/legend/stores/legend-store.test.ts +701 -0
- package/src/legend/stores/selectors.ts +127 -0
- package/src/legend/stores/types.ts +359 -0
- package/src/widgets/README.md +277 -0
- package/src/widgets/actions/brush-toggle/brush-overlay.test.tsx +465 -0
- package/src/widgets/actions/brush-toggle/brush-overlay.tsx +408 -0
- package/src/widgets/actions/brush-toggle/brush-toggle.test.tsx +208 -0
- package/src/widgets/actions/brush-toggle/brush-toggle.tsx +133 -0
- package/src/widgets/actions/brush-toggle/hit-test.test.ts +65 -0
- package/src/widgets/actions/brush-toggle/hit-test.ts +45 -0
- package/src/widgets/actions/brush-toggle/style.ts +46 -0
- package/src/widgets/actions/brush-toggle/types.ts +78 -0
- package/src/widgets/actions/change-column/change-column-dnd.test.tsx +193 -0
- package/src/widgets/actions/change-column/change-column-icon.tsx +10 -0
- package/src/widgets/actions/change-column/change-column.test.tsx +290 -0
- package/src/widgets/actions/change-column/change-column.tsx +218 -0
- package/src/widgets/actions/change-column/sortable-column-item.test.tsx +124 -0
- package/src/widgets/actions/change-column/sortable-column-item.tsx +51 -0
- package/src/widgets/actions/change-column/types.ts +20 -0
- package/src/widgets/actions/download/download.test.tsx +326 -0
- package/src/widgets/actions/download/download.tsx +132 -0
- package/src/widgets/actions/download/exports.test.tsx +288 -0
- package/src/widgets/actions/download/exports.tsx +118 -0
- package/src/widgets/actions/download/types.ts +21 -0
- package/src/widgets/actions/fullscreen/fullscreen.test.tsx +269 -0
- package/src/widgets/actions/fullscreen/fullscreen.tsx +98 -0
- package/src/widgets/actions/fullscreen/styles.ts +17 -0
- package/src/widgets/actions/fullscreen/types.ts +32 -0
- package/src/widgets/actions/index.ts +73 -0
- package/src/widgets/actions/lock-selection/lock-selection.test.tsx +198 -0
- package/src/widgets/actions/lock-selection/lock-selection.tsx +128 -0
- package/src/widgets/actions/lock-selection/types.ts +43 -0
- package/src/widgets/actions/relative-data/relative-data.test.tsx +542 -0
- package/src/widgets/actions/relative-data/relative-data.tsx +188 -0
- package/src/widgets/actions/relative-data/types.ts +33 -0
- package/src/widgets/actions/relative-data/utils.test.ts +223 -0
- package/src/widgets/actions/relative-data/utils.ts +58 -0
- package/src/widgets/actions/searcher/searcher-toggle.test.tsx +354 -0
- package/src/widgets/actions/searcher/searcher-toggle.tsx +72 -0
- package/src/widgets/actions/searcher/searcher.tsx +196 -0
- package/src/widgets/actions/searcher/types.ts +72 -0
- package/src/widgets/actions/shared/styles.ts +12 -0
- package/src/widgets/actions/stack-toggle/grouped-bar-chart-icon.tsx +14 -0
- package/src/widgets/actions/stack-toggle/stack-toggle.test.tsx +414 -0
- package/src/widgets/actions/stack-toggle/stack-toggle.tsx +129 -0
- package/src/widgets/actions/stack-toggle/types.ts +29 -0
- package/src/widgets/actions/zoom-toggle/style.ts +14 -0
- package/src/widgets/actions/zoom-toggle/types.ts +44 -0
- package/src/widgets/actions/zoom-toggle/zoom-toggle.test.tsx +322 -0
- package/src/widgets/actions/zoom-toggle/zoom-toggle.tsx +218 -0
- package/src/widgets/bar/config.ts +140 -0
- package/src/widgets/bar/index.ts +9 -0
- package/src/widgets/bar/skeleton.tsx +60 -0
- package/src/widgets/bar/style.ts +33 -0
- package/src/widgets/bar/types.ts +16 -0
- package/src/widgets/category/category-ui.test.tsx +399 -0
- package/src/widgets/category/category-ui.tsx +166 -0
- package/src/widgets/category/components/category-bar.tsx +31 -0
- package/src/widgets/category/components/category-legend.tsx +33 -0
- package/src/widgets/category/components/category-row-multi.tsx +57 -0
- package/src/widgets/category/components/category-row-other.tsx +26 -0
- package/src/widgets/category/components/category-row-single.tsx +54 -0
- package/src/widgets/category/components/category-rows.test.tsx +213 -0
- package/src/widgets/category/config.ts +86 -0
- package/src/widgets/category/index.ts +29 -0
- package/src/widgets/category/skeleton.tsx +24 -0
- package/src/widgets/category/style.ts +134 -0
- package/src/widgets/category/types.ts +41 -0
- package/src/widgets/echart/const.ts +1 -0
- package/src/widgets/echart/echart-ui.test.tsx +526 -0
- package/src/widgets/echart/echart-ui.tsx +78 -0
- package/src/widgets/echart/echart.test.tsx +546 -0
- package/src/widgets/echart/echart.tsx +66 -0
- package/src/widgets/echart/index.ts +16 -0
- package/src/widgets/echart/options.ts +57 -0
- package/src/widgets/echart/shared-resize-observer.ts +45 -0
- package/src/widgets/echart/types.ts +45 -0
- package/src/widgets/echart/utils.test.ts +277 -0
- package/src/widgets/echart/utils.ts +244 -0
- package/src/widgets/error/error.test.tsx +331 -0
- package/src/widgets/error/error.tsx +51 -0
- package/src/widgets/error/index.ts +2 -0
- package/src/widgets/error/types.ts +24 -0
- package/src/widgets/formula/components/item.test.tsx +249 -0
- package/src/widgets/formula/components/item.tsx +21 -0
- package/src/widgets/formula/components/prefix.test.tsx +341 -0
- package/src/widgets/formula/components/prefix.tsx +19 -0
- package/src/widgets/formula/components/row.test.tsx +364 -0
- package/src/widgets/formula/components/row.tsx +24 -0
- package/src/widgets/formula/components/series.tsx +35 -0
- package/src/widgets/formula/components/suffix.test.tsx +383 -0
- package/src/widgets/formula/components/suffix.tsx +29 -0
- package/src/widgets/formula/components/value.test.tsx +329 -0
- package/src/widgets/formula/components/value.tsx +24 -0
- package/src/widgets/formula/config.test.ts +37 -0
- package/src/widgets/formula/config.ts +38 -0
- package/src/widgets/formula/formula-ui.test.tsx +399 -0
- package/src/widgets/formula/formula-ui.tsx +30 -0
- package/src/widgets/formula/index.ts +24 -0
- package/src/widgets/formula/serializer.test.tsx +144 -0
- package/src/widgets/formula/serializer.ts +28 -0
- package/src/widgets/formula/skeleton.tsx +10 -0
- package/src/widgets/formula/style.ts +23 -0
- package/src/widgets/formula/types.ts +50 -0
- package/src/widgets/histogram/config.ts +230 -0
- package/src/widgets/histogram/index.ts +13 -0
- package/src/widgets/histogram/skeleton.tsx +52 -0
- package/src/widgets/histogram/style.ts +8 -0
- package/src/widgets/histogram/types.ts +23 -0
- package/src/widgets/loader/index.ts +4 -0
- package/src/widgets/loader/loader.tsx +92 -0
- package/src/widgets/loader/types.ts +13 -0
- package/src/widgets/loader/utils.test.ts +112 -0
- package/src/widgets/loader/utils.ts +57 -0
- package/src/widgets/markdown/config.ts +28 -0
- package/src/widgets/markdown/index.ts +14 -0
- package/src/widgets/markdown/markdown-ui.test.tsx +341 -0
- package/src/widgets/markdown/markdown-ui.tsx +59 -0
- package/src/widgets/markdown/markdown.tsx +20 -0
- package/src/widgets/markdown/skeleton.tsx +12 -0
- package/src/widgets/markdown/style.ts +28 -0
- package/src/widgets/markdown/types.ts +28 -0
- package/src/widgets/no-data/index.ts +2 -0
- package/src/widgets/no-data/no-data.test.tsx +497 -0
- package/src/widgets/no-data/no-data.tsx +112 -0
- package/src/widgets/no-data/style.ts +18 -0
- package/src/widgets/no-data/types.ts +76 -0
- package/src/widgets/note/index.ts +2 -0
- package/src/widgets/note/note.test.tsx +391 -0
- package/src/widgets/note/note.tsx +124 -0
- package/src/widgets/note/style.ts +29 -0
- package/src/widgets/note/types.ts +9 -0
- package/src/widgets/pie/config.ts +245 -0
- package/src/widgets/pie/index.ts +8 -0
- package/src/widgets/pie/skeleton.tsx +70 -0
- package/src/widgets/pie/style.ts +8 -0
- package/src/widgets/pie/types.ts +16 -0
- package/src/widgets/range/components/range-item.test.tsx +243 -0
- package/src/widgets/range/components/range-item.tsx +214 -0
- package/src/widgets/range/config.ts +10 -0
- package/src/widgets/range/index.ts +16 -0
- package/src/widgets/range/range-ui.test.tsx +203 -0
- package/src/widgets/range/range-ui.tsx +14 -0
- package/src/widgets/range/serializer.test.ts +70 -0
- package/src/widgets/range/serializer.ts +27 -0
- package/src/widgets/range/skeleton.tsx +14 -0
- package/src/widgets/range/style.ts +37 -0
- package/src/widgets/range/types.ts +39 -0
- package/src/widgets/scatterplot/config.ts +136 -0
- package/src/widgets/scatterplot/index.ts +8 -0
- package/src/widgets/scatterplot/skeleton.tsx +59 -0
- package/src/widgets/scatterplot/style.ts +21 -0
- package/src/widgets/scatterplot/types.ts +17 -0
- package/src/widgets/selection-summary/index.ts +6 -0
- package/src/widgets/selection-summary/selection-summary.tsx +57 -0
- package/src/widgets/selection-summary/style.ts +10 -0
- package/src/widgets/selection-summary/types.ts +14 -0
- package/src/widgets/skeleton-loader/index.ts +2 -0
- package/src/widgets/skeleton-loader/skeleton-loader.test.tsx +139 -0
- package/src/widgets/skeleton-loader/skeleton-loader.tsx +35 -0
- package/src/widgets/skeleton-loader/types.ts +8 -0
- package/src/widgets/spread/components/max-value.tsx +29 -0
- package/src/widgets/spread/components/min-value.tsx +29 -0
- package/src/widgets/spread/components/separator.tsx +9 -0
- package/src/widgets/spread/config.ts +39 -0
- package/src/widgets/spread/index.ts +23 -0
- package/src/widgets/spread/skeleton.tsx +10 -0
- package/src/widgets/spread/spread-ui.test.tsx +368 -0
- package/src/widgets/spread/spread-ui.tsx +32 -0
- package/src/widgets/spread/style.ts +22 -0
- package/src/widgets/spread/types.ts +47 -0
- package/src/widgets/stores/index.ts +13 -0
- package/src/widgets/stores/types.ts +203 -0
- package/src/widgets/stores/use-widget-selector.ts +47 -0
- package/src/widgets/stores/widget-store-branches.test.ts +275 -0
- package/src/widgets/stores/widget-store-performance.test.ts +750 -0
- package/src/widgets/stores/widget-store.test.ts +942 -0
- package/src/widgets/stores/widget-store.ts +484 -0
- package/src/widgets/subheader/index.ts +3 -0
- package/src/widgets/subheader/style.ts +20 -0
- package/src/widgets/subheader/subheader.test.tsx +45 -0
- package/src/widgets/subheader/subheader.tsx +35 -0
- package/src/widgets/subheader/types.ts +11 -0
- package/src/widgets/table/components/cell-header.tsx +58 -0
- package/src/widgets/table/components/cell.tsx +82 -0
- package/src/widgets/table/components/pagination-actions.tsx +67 -0
- package/src/widgets/table/components/pagination.tsx +41 -0
- package/src/widgets/table/components/row.tsx +65 -0
- package/src/widgets/table/config.test.ts +65 -0
- package/src/widgets/table/config.ts +75 -0
- package/src/widgets/table/helpers.test.ts +244 -0
- package/src/widgets/table/helpers.ts +107 -0
- package/src/widgets/table/hooks/use-pagination.test.ts +294 -0
- package/src/widgets/table/hooks/use-pagination.ts +148 -0
- package/src/widgets/table/hooks/use-selection.test.ts +504 -0
- package/src/widgets/table/hooks/use-selection.ts +194 -0
- package/src/widgets/table/hooks/use-sort.test.ts +296 -0
- package/src/widgets/table/hooks/use-sort.ts +131 -0
- package/src/widgets/table/index.ts +55 -0
- package/src/widgets/table/serializer.ts +54 -0
- package/src/widgets/table/skeleton.tsx +48 -0
- package/src/widgets/table/style.ts +34 -0
- package/src/widgets/table/table-ui.tsx +64 -0
- package/src/widgets/table/types.ts +223 -0
- package/src/widgets/timeseries/config.ts +136 -0
- package/src/widgets/timeseries/index.ts +8 -0
- package/src/widgets/timeseries/skeleton.tsx +55 -0
- package/src/widgets/timeseries/style.ts +36 -0
- package/src/widgets/timeseries/types.ts +17 -0
- package/src/widgets/toolbar-actions/index.ts +6 -0
- package/src/widgets/toolbar-actions/styles.ts +38 -0
- package/src/widgets/toolbar-actions/toolbar-actions.test.tsx +691 -0
- package/src/widgets/toolbar-actions/toolbar-actions.tsx +145 -0
- package/src/widgets/toolbar-actions/types.ts +60 -0
- package/src/widgets/utils/chart-config/config-factory.ts +67 -0
- package/src/widgets/utils/chart-config/csv-modifiers.ts +56 -0
- package/src/widgets/utils/chart-config/download-config.ts +22 -0
- package/src/widgets/utils/chart-config/index.ts +29 -0
- package/src/widgets/utils/chart-config/option-builders.test.ts +366 -0
- package/src/widgets/utils/chart-config/option-builders.ts +308 -0
- package/src/widgets/utils/formatter.ts +2 -0
- package/src/widgets/utils/index.ts +26 -0
- package/{dist/types/widgets/_shared/skeleton/index.d.ts → src/widgets/utils/skeleton/index.ts} +2 -1
- package/src/widgets/utils/skeleton/styles.ts +20 -0
- package/src/widgets/wrapper/components/actions.test.tsx +105 -0
- package/src/widgets/wrapper/components/actions.tsx +35 -0
- package/src/widgets/wrapper/components/options.test.tsx +331 -0
- package/src/widgets/wrapper/components/options.tsx +81 -0
- package/src/widgets/wrapper/components/title.test.tsx +126 -0
- package/src/widgets/wrapper/components/title.tsx +35 -0
- package/src/widgets/wrapper/index.ts +16 -0
- package/src/widgets/wrapper/styles.ts +98 -0
- package/src/widgets/wrapper/types.ts +55 -0
- package/src/widgets/wrapper/wrapper-ui.test.tsx +232 -0
- package/src/widgets/wrapper/wrapper-ui.tsx +72 -0
- package/src/widgets/wrapper/wrapper.test.tsx +365 -0
- package/src/widgets/wrapper/wrapper.tsx +60 -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 +189 -0
- package/src/widgets-v2/actions/change-column/index.ts +7 -0
- package/src/widgets-v2/actions/change-column/labels.ts +11 -0
- package/src/widgets-v2/actions/change-column/sortable-column-item.tsx +63 -0
- package/src/widgets-v2/actions/change-column/style.ts +58 -0
- package/src/widgets-v2/actions/change-column/types.ts +11 -0
- package/src/widgets-v2/actions/download/constants.ts +14 -0
- package/src/widgets-v2/actions/download/csv-item.test.tsx +77 -0
- package/src/widgets-v2/actions/download/csv-item.tsx +71 -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 +35 -0
- package/src/widgets-v2/actions/download/index.ts +15 -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 +53 -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 +212 -0
- package/src/widgets-v2/actions/fullscreen/fullscreen.tsx +301 -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 +86 -0
- package/src/widgets-v2/actions/fullscreen/types.ts +15 -0
- package/src/widgets-v2/actions/index.ts +95 -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 +301 -0
- package/src/widgets-v2/actions/lock-selection/lock-selection.tsx +188 -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 +111 -0
- package/src/widgets-v2/actions/searcher/style.ts +15 -0
- package/src/widgets-v2/actions/show-all/index.ts +7 -0
- package/src/widgets-v2/actions/show-all/labels.ts +8 -0
- package/src/widgets-v2/actions/show-all/show-all.test.tsx +50 -0
- package/src/widgets-v2/actions/show-all/show-all.tsx +72 -0
- package/src/widgets-v2/actions/show-all/style.ts +8 -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 +60 -0
- package/src/widgets-v2/bar/index.ts +10 -0
- package/src/widgets-v2/bar/options.test.ts +361 -0
- package/src/widgets-v2/bar/options.ts +333 -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 +909 -0
- package/src/widgets-v2/category/category-ui.tsx +479 -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 +130 -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 +102 -0
- package/src/widgets-v2/category/components/category-legend.tsx +82 -0
- package/src/widgets-v2/category/components/category-row-multi.tsx +86 -0
- package/src/widgets-v2/category/components/category-row-other.test.tsx +57 -0
- package/src/widgets-v2/category/components/category-row-other.tsx +84 -0
- package/src/widgets-v2/category/components/category-row-single.tsx +76 -0
- package/src/widgets-v2/category/components/category-row-stacked.test.tsx +248 -0
- package/src/widgets-v2/category/components/category-row-stacked.tsx +104 -0
- package/src/widgets-v2/category/download.test.ts +80 -0
- package/src/widgets-v2/category/download.ts +50 -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 +329 -0
- package/src/widgets-v2/category/types.ts +61 -0
- package/src/widgets-v2/echart/echart-ui.test.tsx +330 -0
- package/src/widgets-v2/echart/echart-ui.tsx +236 -0
- package/src/widgets-v2/echart/echart.test.tsx +229 -0
- package/src/widgets-v2/echart/echart.tsx +209 -0
- package/src/widgets-v2/echart/edge-label-clamp.test.ts +198 -0
- package/src/widgets-v2/echart/edge-label-clamp.ts +217 -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 +17 -0
- package/src/widgets-v2/echart/use-chart-selection.test.tsx +120 -0
- package/src/widgets-v2/echart/use-chart-selection.ts +121 -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 +63 -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 +56 -0
- package/src/widgets-v2/histogram/index.ts +13 -0
- package/src/widgets-v2/histogram/options.test.ts +411 -0
- package/src/widgets-v2/histogram/options.ts +390 -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 +81 -0
- package/src/widgets-v2/histogram/transforms.ts +53 -0
- package/src/widgets-v2/histogram/types.ts +64 -0
- package/src/widgets-v2/index.ts +212 -0
- package/src/widgets-v2/markdown/download.test.ts +66 -0
- package/src/widgets-v2/markdown/download.tsx +56 -0
- package/src/widgets-v2/markdown/index.ts +6 -0
- package/src/widgets-v2/markdown/markdown-content.test.tsx +165 -0
- package/src/widgets-v2/markdown/markdown-content.tsx +81 -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 +51 -0
- package/src/widgets-v2/pie/index.ts +10 -0
- package/src/widgets-v2/pie/options.test.ts +938 -0
- package/src/widgets-v2/pie/options.ts +606 -0
- package/src/widgets-v2/pie/skeleton.test.tsx +20 -0
- package/src/widgets-v2/pie/skeleton.tsx +94 -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 +50 -0
- package/src/widgets-v2/scatterplot/index.ts +14 -0
- package/src/widgets-v2/scatterplot/options.test.ts +411 -0
- package/src/widgets-v2/scatterplot/options.ts +422 -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 +134 -0
- package/src/widgets-v2/scatterplot/transforms.ts +61 -0
- package/src/widgets-v2/scatterplot/types.ts +59 -0
- package/src/widgets-v2/selection-summary/labels.ts +15 -0
- package/src/widgets-v2/selection-summary/selection-summary.test.tsx +59 -0
- package/src/widgets-v2/selection-summary/selection-summary.tsx +82 -0
- package/src/widgets-v2/selection-summary/style.ts +38 -0
- package/src/widgets-v2/spread/band.test.ts +46 -0
- package/src/widgets-v2/spread/band.ts +47 -0
- package/src/widgets-v2/spread/download.test.ts +64 -0
- package/src/widgets-v2/spread/download.ts +55 -0
- package/src/widgets-v2/spread/index.ts +11 -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 +239 -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 +85 -0
- package/src/widgets-v2/table/download.ts +43 -0
- package/src/widgets-v2/table/helpers.test.ts +233 -0
- package/src/widgets-v2/table/helpers.ts +131 -0
- package/src/widgets-v2/table/index.ts +24 -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/transforms.test.ts +40 -0
- package/src/widgets-v2/table/transforms.ts +28 -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 +82 -0
- package/src/widgets-v2/timeseries/index.ts +11 -0
- package/src/widgets-v2/timeseries/options.test.ts +399 -0
- package/src/widgets-v2/timeseries/options.ts +342 -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/transforms.test.ts +49 -0
- package/src/widgets-v2/timeseries/transforms.ts +31 -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 +128 -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 +255 -0
- package/src/widgets-v2/wrapper/widget-wrapper.tsx +194 -0
- package/dist/cjs-D9ro6BXv.js +0 -85
- package/dist/cjs-D9ro6BXv.js.map +0 -1
- package/dist/components.js.map +0 -1
- package/dist/error-B2IJ9d2h.js +0 -38
- package/dist/error-B2IJ9d2h.js.map +0 -1
- package/dist/exports-Cr43OCul.js +0 -51
- package/dist/exports-Cr43OCul.js.map +0 -1
- package/dist/lasso-tool-CYn3ivf-.js +0 -534
- package/dist/lasso-tool-CYn3ivf-.js.map +0 -1
- package/dist/markdown-ui-CpNYUPqC.js +0 -68
- package/dist/markdown-ui-CpNYUPqC.js.map +0 -1
- package/dist/no-data-C54XJt13.js +0 -61
- package/dist/no-data-C54XJt13.js.map +0 -1
- package/dist/note-Clng2ej6.js +0 -124
- package/dist/note-Clng2ej6.js.map +0 -1
- package/dist/options-D9wflre6.js +0 -49
- package/dist/options-D9wflre6.js.map +0 -1
- package/dist/row-DLKZN5aF.js +0 -33
- package/dist/row-DLKZN5aF.js.map +0 -1
- package/dist/row-DrHwXNvF.js +0 -35
- package/dist/row-DrHwXNvF.js.map +0 -1
- package/dist/series-Cf1QPZHV.js +0 -83
- package/dist/series-Cf1QPZHV.js.map +0 -1
- package/dist/series-Do02NQUF.js +0 -91
- package/dist/series-Do02NQUF.js.map +0 -1
- package/dist/smart-tooltip-BEtBaIdz.js +0 -39
- package/dist/smart-tooltip-BEtBaIdz.js.map +0 -1
- package/dist/styles-CcC5L2cr.js +0 -77
- package/dist/styles-CcC5L2cr.js.map +0 -1
- package/dist/styles-dOu_pRNb.js +0 -77
- package/dist/styles-dOu_pRNb.js.map +0 -1
- package/dist/tooltip-BDnrRKrp.js +0 -25
- package/dist/tooltip-BDnrRKrp.js.map +0 -1
- package/dist/types/common/common.d.ts +0 -3
- package/dist/types/common/index.d.ts +0 -26
- package/dist/types/common/lasso-tools.d.ts +0 -36
- package/dist/types/common/measurement-tools.d.ts +0 -65
- package/dist/types/hooks/use-debounce.d.ts +0 -19
- package/dist/types/widgets/_shared/chart-config/index.d.ts +0 -7
- package/dist/types/widgets/_shared/chart-config/option-builders.d.ts +0 -34
- package/dist/types/widgets/actions/relative-data/style.d.ts +0 -8
- package/dist/types/widgets/actions/relative-data/utils.test.d.ts +0 -1
- package/dist/types/widgets/actions/zoom-toggle/index.d.ts +0 -2
- package/dist/types/widgets/category/components/index.d.ts +0 -10
- package/dist/types/widgets/index.d.ts +0 -8
- package/dist/types/widgets/range/serializer.test.d.ts +0 -1
- package/dist/types/widgets/root/index.d.ts +0 -3
- package/dist/types/widgets/root/root.d.ts +0 -2
- package/dist/types/widgets/root/types.d.ts +0 -9
- package/dist/types/widgets/root/utils.d.ts +0 -1
- package/dist/types/widgets/stores/widget-store.test.d.ts +0 -1
- package/dist/types/widgets/table/components/index.d.ts +0 -4
- package/dist/types/widgets/table/helpers.test.d.ts +0 -1
- package/dist/types/widgets/table/hooks/index.d.ts +0 -6
- package/dist/types/widgets/table/hooks/use-pagination.test.d.ts +0 -1
- package/dist/types/widgets/table/hooks/use-selection.test.d.ts +0 -1
- package/dist/types/widgets/table/hooks/use-sort.test.d.ts +0 -1
- package/dist/utils-DNtU8q7E.js +0 -144
- package/dist/utils-DNtU8q7E.js.map +0 -1
- package/dist/utils-Dv5Z47UQ.js +0 -144
- package/dist/utils-Dv5Z47UQ.js.map +0 -1
- package/dist/widget-store-CB6Trp_0.js +0 -131
- package/dist/widget-store-CB6Trp_0.js.map +0 -1
- package/dist/widget-store-yDO2ul8g.js +0 -44
- package/dist/widget-store-yDO2ul8g.js.map +0 -1
- package/dist/widgets/actions.js.map +0 -1
- package/dist/widgets/echart.js.map +0 -1
- package/dist/widgets/formula.js.map +0 -1
- package/dist/widgets/root.js +0 -68
- package/dist/widgets/root.js.map +0 -1
- package/dist/widgets/stores.js.map +0 -1
- package/dist/widgets.js +0 -11
- package/dist/widgets.js.map +0 -1
- /package/dist/types/widgets/{_shared → utils}/chart-config/csv-modifiers.d.ts +0 -0
- /package/dist/types/widgets/{_shared → utils}/skeleton/styles.d.ts +0 -0
|
@@ -0,0 +1,964 @@
|
|
|
1
|
+
import "./components-FED-ArwH.js";
|
|
2
|
+
import { t as e } from "./tooltip-DJUGNZxY.js";
|
|
3
|
+
import { t } from "./smart-tooltip-CwGHCqab.js";
|
|
4
|
+
import { C as n, S as r, T as i, _ as a, h as o, l as s, m as c, p as l, w as u, x as d, y as f } from "./stores-tiFePP0A.js";
|
|
5
|
+
import { i as p, n as m, o as h, r as g } from "./echart-CRihbmRv.js";
|
|
6
|
+
import { t as _ } from "./markdown-content-BWUqwx9F.js";
|
|
7
|
+
import { C as v, S as y, c as b, f as x, g as S, o as C, r as w, t as T, y as E } from "./actions-BjPfCLG9.js";
|
|
8
|
+
import { t as D } from "./zoom-toggle-IsF8BnAp.js";
|
|
9
|
+
import { s as O } from "./download-DdaK3qgC.js";
|
|
10
|
+
import { i as k, r as A } from "./formula-noJzQwKo.js";
|
|
11
|
+
import { i as j, r as M } from "./markdown-2dfL6Cmb.js";
|
|
12
|
+
import { a as N, i as P } from "./spread-Ccpg9fi0.js";
|
|
13
|
+
import { n as F, r as I } from "./range-BCMAl5xf.js";
|
|
14
|
+
import { i as L, r as R } from "./category-DGUDabsi.js";
|
|
15
|
+
import { d as z, i as B } from "./table-Bx9Uj3U0.js";
|
|
16
|
+
import { c as V } from "react/compiler-runtime";
|
|
17
|
+
import { Children as H, Component as U, isValidElement as W, useEffect as G, useLayoutEffect as K, useRef as q, useState as J } from "react";
|
|
18
|
+
import { Accordion as ee, AccordionDetails as te, AccordionSummary as ne, Alert as re, AlertTitle as ie, Box as Y, Button as ae, Divider as oe, Grow as se, IconButton as ce, LinearProgress as le, Link as ue, Paper as de, Popper as fe, Typography as X } from "@mui/material";
|
|
19
|
+
import { Fragment as pe, jsx as Z, jsxs as Q } from "react/jsx-runtime";
|
|
20
|
+
import { Close as me, ExpandMore as he } from "@mui/icons-material";
|
|
21
|
+
import { WidgetOptions as ge } from "@carto/meridian-ds/custom-icons";
|
|
22
|
+
import { createPortal as _e } from "react-dom";
|
|
23
|
+
//#region src/widgets-v2/provider/widget-provider.tsx
|
|
24
|
+
function ve(e) {
|
|
25
|
+
let t = V(31), { id: n, data: r, isLoading: i, isFetching: a, error: p, formatter: m, labelFormatter: h, keepAlive: g, children: _ } = e, v = g !== void 0 && g, y;
|
|
26
|
+
t[0] !== r || t[1] !== p || t[2] !== m || t[3] !== n || t[4] !== a || t[5] !== i || t[6] !== h ? (y = () => {
|
|
27
|
+
if (c(n)) return l(n);
|
|
28
|
+
let e = s(n, {
|
|
29
|
+
data: r,
|
|
30
|
+
isLoading: i,
|
|
31
|
+
isFetching: a,
|
|
32
|
+
error: p,
|
|
33
|
+
formatter: m,
|
|
34
|
+
labelFormatter: h
|
|
35
|
+
});
|
|
36
|
+
return f(n, e), e;
|
|
37
|
+
}, t[0] = r, t[1] = p, t[2] = m, t[3] = n, t[4] = a, t[5] = i, t[6] = h, t[7] = y) : y = t[7];
|
|
38
|
+
let [b] = J(y), x, S;
|
|
39
|
+
t[8] !== n || t[9] !== v || t[10] !== b ? (x = () => (o(n, b), () => {
|
|
40
|
+
d(n, { keepAlive: v });
|
|
41
|
+
}), S = [
|
|
42
|
+
n,
|
|
43
|
+
b,
|
|
44
|
+
v
|
|
45
|
+
], t[8] = n, t[9] = v, t[10] = b, t[11] = x, t[12] = S) : (x = t[11], S = t[12]), K(x, S);
|
|
46
|
+
let C, w;
|
|
47
|
+
t[13] !== r || t[14] !== b ? (C = () => {
|
|
48
|
+
b.setState({ rawData: r });
|
|
49
|
+
}, w = [b, r], t[13] = r, t[14] = b, t[15] = C, t[16] = w) : (C = t[15], w = t[16]), K(C, w);
|
|
50
|
+
let T, E;
|
|
51
|
+
t[17] !== p || t[18] !== a || t[19] !== i || t[20] !== b ? (T = () => {
|
|
52
|
+
b.setState({
|
|
53
|
+
isLoading: i ?? !1,
|
|
54
|
+
isFetching: a ?? !1,
|
|
55
|
+
error: p
|
|
56
|
+
});
|
|
57
|
+
}, E = [
|
|
58
|
+
b,
|
|
59
|
+
i,
|
|
60
|
+
a,
|
|
61
|
+
p
|
|
62
|
+
], t[17] = p, t[18] = a, t[19] = i, t[20] = b, t[21] = T, t[22] = E) : (T = t[21], E = t[22]), K(T, E);
|
|
63
|
+
let D, O;
|
|
64
|
+
t[23] !== m || t[24] !== h || t[25] !== b ? (O = () => {
|
|
65
|
+
b.setState({
|
|
66
|
+
rawFormatter: m,
|
|
67
|
+
formatter: m,
|
|
68
|
+
labelFormatter: h
|
|
69
|
+
});
|
|
70
|
+
}, D = [
|
|
71
|
+
b,
|
|
72
|
+
m,
|
|
73
|
+
h
|
|
74
|
+
], t[23] = m, t[24] = h, t[25] = b, t[26] = D, t[27] = O) : (D = t[26], O = t[27]), K(O, D);
|
|
75
|
+
let k;
|
|
76
|
+
return t[28] !== _ || t[29] !== n ? (k = /* @__PURE__ */ Z(u.Provider, {
|
|
77
|
+
value: n,
|
|
78
|
+
children: _
|
|
79
|
+
}), t[28] = _, t[29] = n, t[30] = k) : k = t[30], k;
|
|
80
|
+
}
|
|
81
|
+
//#endregion
|
|
82
|
+
//#region src/widgets-v2/wrapper/style.ts
|
|
83
|
+
var $ = {
|
|
84
|
+
root: {
|
|
85
|
+
position: "relative",
|
|
86
|
+
width: "100%",
|
|
87
|
+
minWidth: 0,
|
|
88
|
+
bgcolor: "background.paper",
|
|
89
|
+
borderRadius: 1,
|
|
90
|
+
overflow: "hidden",
|
|
91
|
+
boxShadow: "none",
|
|
92
|
+
"&::before": { display: "none" },
|
|
93
|
+
"& .widget-wrapper-actions > *": {
|
|
94
|
+
opacity: 1,
|
|
95
|
+
transition: ({ transitions: e }) => e.create("opacity", {
|
|
96
|
+
duration: e.duration.standard,
|
|
97
|
+
easing: e.easing.easeInOut
|
|
98
|
+
}),
|
|
99
|
+
"@media (hover: hover)": { opacity: 0 },
|
|
100
|
+
"&.active": { opacity: 1 }
|
|
101
|
+
},
|
|
102
|
+
"&:hover .widget-wrapper-actions > *": { opacity: 1 },
|
|
103
|
+
"&[data-collapsed=\"true\"] .widget-wrapper-actions > *": {
|
|
104
|
+
opacity: 0,
|
|
105
|
+
pointerEvents: "none",
|
|
106
|
+
"&.active": { opacity: 1 }
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
loading: {
|
|
110
|
+
position: "absolute",
|
|
111
|
+
top: 0,
|
|
112
|
+
left: 0,
|
|
113
|
+
width: "100%",
|
|
114
|
+
height: ({ spacing: e }) => e(.35),
|
|
115
|
+
zIndex: 1
|
|
116
|
+
},
|
|
117
|
+
summary: {
|
|
118
|
+
minHeight: ({ spacing: e }) => e(7),
|
|
119
|
+
"& .MuiAccordionSummary-content": {
|
|
120
|
+
gap: ({ spacing: e }) => e(.5),
|
|
121
|
+
paddingInlineEnd: ({ spacing: e }) => e(.75),
|
|
122
|
+
alignItems: "center"
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
summaryDisabled: { "&, &:hover:not(.Mui-disabled)": { cursor: "default" } },
|
|
126
|
+
titleCell: {
|
|
127
|
+
flexGrow: 1,
|
|
128
|
+
flexShrink: 1,
|
|
129
|
+
minWidth: 0,
|
|
130
|
+
display: "flex",
|
|
131
|
+
alignItems: "center",
|
|
132
|
+
minHeight: ({ spacing: e }) => e(3)
|
|
133
|
+
},
|
|
134
|
+
titleText: {
|
|
135
|
+
minWidth: 0,
|
|
136
|
+
wordBreak: "break-word",
|
|
137
|
+
overflow: "hidden",
|
|
138
|
+
display: "-webkit-box",
|
|
139
|
+
WebkitLineClamp: 2,
|
|
140
|
+
WebkitBoxOrient: "vertical"
|
|
141
|
+
},
|
|
142
|
+
actions: {
|
|
143
|
+
display: "flex",
|
|
144
|
+
alignItems: "center",
|
|
145
|
+
gap: .5,
|
|
146
|
+
justifyContent: "flex-end",
|
|
147
|
+
flexShrink: 0,
|
|
148
|
+
"& > *": { pointerEvents: "auto" }
|
|
149
|
+
},
|
|
150
|
+
options: {
|
|
151
|
+
display: "flex",
|
|
152
|
+
alignItems: "center",
|
|
153
|
+
gap: .5,
|
|
154
|
+
flexShrink: 0
|
|
155
|
+
},
|
|
156
|
+
detail: {
|
|
157
|
+
display: "flex",
|
|
158
|
+
flexDirection: "column",
|
|
159
|
+
gap: ({ spacing: e }) => e(1),
|
|
160
|
+
paddingTop: ({ spacing: e }) => e(.5)
|
|
161
|
+
},
|
|
162
|
+
content: {
|
|
163
|
+
minWidth: 0,
|
|
164
|
+
display: "flex",
|
|
165
|
+
flexDirection: "column",
|
|
166
|
+
gap: 1
|
|
167
|
+
},
|
|
168
|
+
footer: { pt: 1 }
|
|
169
|
+
};
|
|
170
|
+
//#endregion
|
|
171
|
+
//#region src/widgets-v2/wrapper/widget-actions.tsx
|
|
172
|
+
function ye(e) {
|
|
173
|
+
let t = V(5), { sx: n, children: r } = e, i;
|
|
174
|
+
t[0] === n ? i = t[1] : (i = {
|
|
175
|
+
...$.actions,
|
|
176
|
+
...n
|
|
177
|
+
}, t[0] = n, t[1] = i);
|
|
178
|
+
let a;
|
|
179
|
+
return t[2] !== r || t[3] !== i ? (a = /* @__PURE__ */ Z(Y, {
|
|
180
|
+
className: "widget-wrapper-actions",
|
|
181
|
+
onClick: be,
|
|
182
|
+
sx: i,
|
|
183
|
+
children: r
|
|
184
|
+
}), t[2] = r, t[3] = i, t[4] = a) : a = t[4], a;
|
|
185
|
+
}
|
|
186
|
+
function be(e) {
|
|
187
|
+
return e.stopPropagation();
|
|
188
|
+
}
|
|
189
|
+
function xe(e) {
|
|
190
|
+
let t = V(5), { sx: n, children: r } = e, i;
|
|
191
|
+
t[0] === n ? i = t[1] : (i = {
|
|
192
|
+
...$.options,
|
|
193
|
+
...n
|
|
194
|
+
}, t[0] = n, t[1] = i);
|
|
195
|
+
let a;
|
|
196
|
+
return t[2] !== r || t[3] !== i ? (a = /* @__PURE__ */ Z(Y, {
|
|
197
|
+
onClick: Se,
|
|
198
|
+
sx: i,
|
|
199
|
+
children: r
|
|
200
|
+
}), t[2] = r, t[3] = i, t[4] = a) : a = t[4], a;
|
|
201
|
+
}
|
|
202
|
+
function Se(e) {
|
|
203
|
+
return e.stopPropagation();
|
|
204
|
+
}
|
|
205
|
+
//#endregion
|
|
206
|
+
//#region src/widgets-v2/wrapper/labels.ts
|
|
207
|
+
var Ce = {
|
|
208
|
+
collapse: "Collapse",
|
|
209
|
+
expand: "Expand",
|
|
210
|
+
errorFallbackTitle: "Widget failed to render"
|
|
211
|
+
};
|
|
212
|
+
//#endregion
|
|
213
|
+
//#region src/widgets-v2/wrapper/widget-wrapper.tsx
|
|
214
|
+
function we(e) {
|
|
215
|
+
let n = V(40), { title: a, collapsed: o, onCollapseChange: s, defaultCollapsed: c, disabled: l, variant: u, labels: d, expandIcon: f, iconProps: p, sx: m, children: h } = e, g = c !== void 0 && c, _ = l !== void 0 && l, v = u === void 0 ? "elevation" : u, y = f === void 0 ? he : f, b = i(), x = r(b, Te), S = o !== void 0, [C, w] = J(g), T = S ? o : C, E;
|
|
216
|
+
n[0] !== _ || n[1] !== s ? (E = (e, t) => {
|
|
217
|
+
if (_) return;
|
|
218
|
+
let n = !t;
|
|
219
|
+
s?.(n), w(n);
|
|
220
|
+
}, n[0] = _, n[1] = s, n[2] = E) : E = n[2];
|
|
221
|
+
let D = E, O;
|
|
222
|
+
n[3] === d ? O = n[4] : (O = {
|
|
223
|
+
...Ce,
|
|
224
|
+
...d
|
|
225
|
+
}, n[3] = d, n[4] = O);
|
|
226
|
+
let k = O, A;
|
|
227
|
+
n[5] === h ? A = n[6] : (A = Ee(h), n[5] = h, n[6] = A);
|
|
228
|
+
let { summary: j, details: M } = A, N = T ? k.expand : k.collapse, P = T ? "true" : void 0, F = !T, I;
|
|
229
|
+
n[7] === m ? I = n[8] : (I = {
|
|
230
|
+
...$.root,
|
|
231
|
+
...m
|
|
232
|
+
}, n[7] = m, n[8] = I);
|
|
233
|
+
let L;
|
|
234
|
+
n[9] === x ? L = n[10] : (L = x ? /* @__PURE__ */ Z(le, {
|
|
235
|
+
sx: $.loading,
|
|
236
|
+
color: "primary"
|
|
237
|
+
}) : null, n[9] = x, n[10] = L);
|
|
238
|
+
let R;
|
|
239
|
+
n[11] !== y || n[12] !== _ || n[13] !== p ? (R = _ ? null : /* @__PURE__ */ Z(y, {
|
|
240
|
+
fontSize: "small",
|
|
241
|
+
...p
|
|
242
|
+
}), n[11] = y, n[12] = _, n[13] = p, n[14] = R) : R = n[14];
|
|
243
|
+
let z = _ || void 0, B = _ ? $.summaryDisabled : null, H;
|
|
244
|
+
n[15] === B ? H = n[16] : (H = {
|
|
245
|
+
...$.summary,
|
|
246
|
+
...B
|
|
247
|
+
}, n[15] = B, n[16] = H);
|
|
248
|
+
let U;
|
|
249
|
+
n[17] === a ? U = n[18] : (U = (e) => {
|
|
250
|
+
let { ref: t } = e;
|
|
251
|
+
return /* @__PURE__ */ Z(Y, {
|
|
252
|
+
sx: $.titleCell,
|
|
253
|
+
children: /* @__PURE__ */ Z(X, {
|
|
254
|
+
ref: t,
|
|
255
|
+
variant: "subtitle1",
|
|
256
|
+
sx: $.titleText,
|
|
257
|
+
textTransform: "none",
|
|
258
|
+
children: a
|
|
259
|
+
})
|
|
260
|
+
});
|
|
261
|
+
}, n[17] = a, n[18] = U);
|
|
262
|
+
let W;
|
|
263
|
+
n[19] !== U || n[20] !== a ? (W = /* @__PURE__ */ Z(t, {
|
|
264
|
+
title: a,
|
|
265
|
+
children: U
|
|
266
|
+
}), n[19] = U, n[20] = a, n[21] = W) : W = n[21];
|
|
267
|
+
let G;
|
|
268
|
+
n[22] !== N || n[23] !== j || n[24] !== R || n[25] !== z || n[26] !== H || n[27] !== W ? (G = /* @__PURE__ */ Q(ne, {
|
|
269
|
+
expandIcon: R,
|
|
270
|
+
"aria-label": N,
|
|
271
|
+
"aria-disabled": z,
|
|
272
|
+
sx: H,
|
|
273
|
+
children: [W, j]
|
|
274
|
+
}), n[22] = N, n[23] = j, n[24] = R, n[25] = z, n[26] = H, n[27] = W, n[28] = G) : G = n[28];
|
|
275
|
+
let K;
|
|
276
|
+
n[29] === M ? K = n[30] : (K = /* @__PURE__ */ Z(te, {
|
|
277
|
+
sx: $.detail,
|
|
278
|
+
children: M
|
|
279
|
+
}), n[29] = M, n[30] = K);
|
|
280
|
+
let q;
|
|
281
|
+
return n[31] !== D || n[32] !== I || n[33] !== L || n[34] !== G || n[35] !== K || n[36] !== P || n[37] !== F || n[38] !== v ? (q = /* @__PURE__ */ Q(ee, {
|
|
282
|
+
"data-collapsed": P,
|
|
283
|
+
expanded: F,
|
|
284
|
+
onChange: D,
|
|
285
|
+
disableGutters: !0,
|
|
286
|
+
elevation: 0,
|
|
287
|
+
variant: v,
|
|
288
|
+
square: !0,
|
|
289
|
+
sx: I,
|
|
290
|
+
children: [
|
|
291
|
+
L,
|
|
292
|
+
G,
|
|
293
|
+
K
|
|
294
|
+
]
|
|
295
|
+
}), n[31] = D, n[32] = I, n[33] = L, n[34] = G, n[35] = K, n[36] = P, n[37] = F, n[38] = v, n[39] = q) : q = n[39], q;
|
|
296
|
+
}
|
|
297
|
+
function Te(e) {
|
|
298
|
+
return e.isFetching;
|
|
299
|
+
}
|
|
300
|
+
function Ee(e) {
|
|
301
|
+
let t = [], n = [];
|
|
302
|
+
for (let r of H.toArray(e)) De(r, ye) || De(r, xe) ? t.push(r) : n.push(r);
|
|
303
|
+
return {
|
|
304
|
+
summary: t,
|
|
305
|
+
details: n
|
|
306
|
+
};
|
|
307
|
+
}
|
|
308
|
+
function De(e, t) {
|
|
309
|
+
return W(e) && e.type === t;
|
|
310
|
+
}
|
|
311
|
+
//#endregion
|
|
312
|
+
//#region src/widgets-v2/wrapper/widget-content.tsx
|
|
313
|
+
function Oe(e) {
|
|
314
|
+
let t = V(5), { sx: n, children: r } = e, i;
|
|
315
|
+
t[0] === n ? i = t[1] : (i = {
|
|
316
|
+
...$.content,
|
|
317
|
+
...n
|
|
318
|
+
}, t[0] = n, t[1] = i);
|
|
319
|
+
let a;
|
|
320
|
+
return t[2] !== r || t[3] !== i ? (a = /* @__PURE__ */ Z(Y, {
|
|
321
|
+
"data-slot": "content",
|
|
322
|
+
sx: i,
|
|
323
|
+
children: r
|
|
324
|
+
}), t[2] = r, t[3] = i, t[4] = a) : a = t[4], a;
|
|
325
|
+
}
|
|
326
|
+
function ke(e) {
|
|
327
|
+
let t = V(5), { sx: n, children: r } = e, i;
|
|
328
|
+
t[0] === n ? i = t[1] : (i = {
|
|
329
|
+
...$.footer,
|
|
330
|
+
...n
|
|
331
|
+
}, t[0] = n, t[1] = i);
|
|
332
|
+
let a;
|
|
333
|
+
return t[2] !== r || t[3] !== i ? (a = /* @__PURE__ */ Z(Y, {
|
|
334
|
+
"data-slot": "footer",
|
|
335
|
+
sx: i,
|
|
336
|
+
children: r
|
|
337
|
+
}), t[2] = r, t[3] = i, t[4] = a) : a = t[4], a;
|
|
338
|
+
}
|
|
339
|
+
//#endregion
|
|
340
|
+
//#region src/widgets-v2/subheader/style.ts
|
|
341
|
+
var Ae = { root: {
|
|
342
|
+
display: "grid",
|
|
343
|
+
gridTemplateColumns: "1fr auto",
|
|
344
|
+
alignItems: "center",
|
|
345
|
+
gap: 1,
|
|
346
|
+
minHeight: 32,
|
|
347
|
+
pb: 1
|
|
348
|
+
} };
|
|
349
|
+
//#endregion
|
|
350
|
+
//#region src/widgets-v2/subheader/subheader.tsx
|
|
351
|
+
function je(e) {
|
|
352
|
+
let t = V(5), { sx: n, children: r } = e, i;
|
|
353
|
+
t[0] === n ? i = t[1] : (i = {
|
|
354
|
+
...Ae.root,
|
|
355
|
+
...n
|
|
356
|
+
}, t[0] = n, t[1] = i);
|
|
357
|
+
let a;
|
|
358
|
+
return t[2] !== r || t[3] !== i ? (a = /* @__PURE__ */ Z(Y, {
|
|
359
|
+
sx: i,
|
|
360
|
+
children: r
|
|
361
|
+
}), t[2] = r, t[3] = i, t[4] = a) : a = t[4], a;
|
|
362
|
+
}
|
|
363
|
+
//#endregion
|
|
364
|
+
//#region src/widgets-v2/state/style.ts
|
|
365
|
+
var Me = {
|
|
366
|
+
emptyRoot: {
|
|
367
|
+
display: "flex",
|
|
368
|
+
flexDirection: "column",
|
|
369
|
+
gap: 1,
|
|
370
|
+
paddingTop: 1,
|
|
371
|
+
paddingBottom: 2,
|
|
372
|
+
paddingX: 2,
|
|
373
|
+
width: "100%",
|
|
374
|
+
minHeight: "100%"
|
|
375
|
+
},
|
|
376
|
+
captureBox: {
|
|
377
|
+
width: "100%",
|
|
378
|
+
minHeight: 0,
|
|
379
|
+
display: "flex",
|
|
380
|
+
flexDirection: "column",
|
|
381
|
+
flex: 1
|
|
382
|
+
}
|
|
383
|
+
}, Ne = {
|
|
384
|
+
errorTitle: "Something went wrong",
|
|
385
|
+
errorMessage: (e) => e instanceof Error ? e.message : typeof e == "string" ? e : e && typeof e == "object" && "message" in e ? String(e.message) : "Unknown error",
|
|
386
|
+
emptyTitle: "No data",
|
|
387
|
+
emptyDescription: "Try adjusting filters or wait for data to load."
|
|
388
|
+
}, Pe = (e) => ({
|
|
389
|
+
isLoading: e.isLoading,
|
|
390
|
+
isFetching: e.isFetching,
|
|
391
|
+
error: e.error,
|
|
392
|
+
rawData: e.rawData
|
|
393
|
+
});
|
|
394
|
+
function Fe(e) {
|
|
395
|
+
let t = V(17), { skeleton: r, children: a, isEmpty: o, fallback: s, labels: c } = e, l = o === void 0 ? Be : o, u = i(), d = n(u, Pe), f;
|
|
396
|
+
t[0] === c ? f = t[1] : (f = {
|
|
397
|
+
...Ne,
|
|
398
|
+
...c
|
|
399
|
+
}, t[0] = c, t[1] = f);
|
|
400
|
+
let p = f;
|
|
401
|
+
if (d.isLoading) {
|
|
402
|
+
let e;
|
|
403
|
+
return t[2] === r ? e = t[3] : (e = /* @__PURE__ */ Z(pe, { children: r }), t[2] = r, t[3] = e), e;
|
|
404
|
+
}
|
|
405
|
+
if (d.error !== void 0 && d.error !== null) {
|
|
406
|
+
let e;
|
|
407
|
+
if (t[4] !== p || t[5] !== s || t[6] !== d.error) {
|
|
408
|
+
let n = Ve(d.error);
|
|
409
|
+
e = s ? /* @__PURE__ */ Z(pe, { children: s(n) }) : /* @__PURE__ */ Z(Le, {
|
|
410
|
+
error: n,
|
|
411
|
+
labels: p
|
|
412
|
+
}), t[4] = p, t[5] = s, t[6] = d.error, t[7] = e;
|
|
413
|
+
} else e = t[7];
|
|
414
|
+
return e;
|
|
415
|
+
}
|
|
416
|
+
if (l(d.rawData)) {
|
|
417
|
+
let e;
|
|
418
|
+
return t[8] === p ? e = t[9] : (e = /* @__PURE__ */ Z(Re, { labels: p }), t[8] = p, t[9] = e), e;
|
|
419
|
+
}
|
|
420
|
+
let m;
|
|
421
|
+
t[10] !== a || t[11] !== u ? (m = /* @__PURE__ */ Z(Ie, {
|
|
422
|
+
id: u,
|
|
423
|
+
children: a
|
|
424
|
+
}), t[10] = a, t[11] = u, t[12] = m) : m = t[12];
|
|
425
|
+
let h;
|
|
426
|
+
return t[13] !== p || t[14] !== s || t[15] !== m ? (h = /* @__PURE__ */ Z(ze, {
|
|
427
|
+
fallback: s,
|
|
428
|
+
labels: p,
|
|
429
|
+
children: m
|
|
430
|
+
}), t[13] = p, t[14] = s, t[15] = m, t[16] = h) : h = t[16], h;
|
|
431
|
+
}
|
|
432
|
+
function Ie(e) {
|
|
433
|
+
let t = V(5), { id: n, children: r } = e, i;
|
|
434
|
+
t[0] === n ? i = t[1] : (i = (e) => a(n, e), t[0] = n, t[1] = i);
|
|
435
|
+
let o = i, s;
|
|
436
|
+
return t[2] !== r || t[3] !== o ? (s = /* @__PURE__ */ Z(Y, {
|
|
437
|
+
ref: o,
|
|
438
|
+
sx: Me.captureBox,
|
|
439
|
+
children: r
|
|
440
|
+
}), t[2] = r, t[3] = o, t[4] = s) : s = t[4], s;
|
|
441
|
+
}
|
|
442
|
+
function Le(e) {
|
|
443
|
+
let t = V(8), { error: n, labels: r } = e, i;
|
|
444
|
+
t[0] === r.errorTitle ? i = t[1] : (i = /* @__PURE__ */ Z(ie, { children: r.errorTitle }), t[0] = r.errorTitle, t[1] = i);
|
|
445
|
+
let a;
|
|
446
|
+
t[2] !== n || t[3] !== r ? (a = r.errorMessage(n), t[2] = n, t[3] = r, t[4] = a) : a = t[4];
|
|
447
|
+
let o;
|
|
448
|
+
return t[5] !== i || t[6] !== a ? (o = /* @__PURE__ */ Q(re, {
|
|
449
|
+
severity: "error",
|
|
450
|
+
children: [i, a]
|
|
451
|
+
}), t[5] = i, t[6] = a, t[7] = o) : o = t[7], o;
|
|
452
|
+
}
|
|
453
|
+
function Re(e) {
|
|
454
|
+
let t = V(7), { labels: n } = e, r;
|
|
455
|
+
t[0] === n.emptyTitle ? r = t[1] : (r = /* @__PURE__ */ Z(X, {
|
|
456
|
+
variant: "body2",
|
|
457
|
+
color: "text.primary",
|
|
458
|
+
children: n.emptyTitle
|
|
459
|
+
}), t[0] = n.emptyTitle, t[1] = r);
|
|
460
|
+
let i;
|
|
461
|
+
t[2] === n.emptyDescription ? i = t[3] : (i = /* @__PURE__ */ Z(X, {
|
|
462
|
+
variant: "caption",
|
|
463
|
+
color: "text.secondary",
|
|
464
|
+
children: n.emptyDescription
|
|
465
|
+
}), t[2] = n.emptyDescription, t[3] = i);
|
|
466
|
+
let a;
|
|
467
|
+
return t[4] !== r || t[5] !== i ? (a = /* @__PURE__ */ Q(Y, {
|
|
468
|
+
sx: Me.emptyRoot,
|
|
469
|
+
children: [r, i]
|
|
470
|
+
}), t[4] = r, t[5] = i, t[6] = a) : a = t[6], a;
|
|
471
|
+
}
|
|
472
|
+
var ze = class extends U {
|
|
473
|
+
state = { error: null };
|
|
474
|
+
static getDerivedStateFromError(e) {
|
|
475
|
+
return { error: e };
|
|
476
|
+
}
|
|
477
|
+
componentDidCatch(e) {
|
|
478
|
+
console.error("[widgets-v2] Render error in <Widget.State> child:", e);
|
|
479
|
+
}
|
|
480
|
+
render() {
|
|
481
|
+
let { error: e } = this.state;
|
|
482
|
+
if (e !== null) {
|
|
483
|
+
let { fallback: t, labels: n } = this.props;
|
|
484
|
+
return t ? t(e) : /* @__PURE__ */ Z(Le, {
|
|
485
|
+
error: e,
|
|
486
|
+
labels: n
|
|
487
|
+
});
|
|
488
|
+
}
|
|
489
|
+
return this.props.children;
|
|
490
|
+
}
|
|
491
|
+
};
|
|
492
|
+
function Be(e) {
|
|
493
|
+
return e == null ? !0 : Array.isArray(e) ? !!(e.length === 0 || e.every((e) => Array.isArray(e) && e.length === 0)) : typeof e == "object" && Object.keys(e).length === 0;
|
|
494
|
+
}
|
|
495
|
+
function Ve(e) {
|
|
496
|
+
return e instanceof Error ? e : typeof e == "string" ? Error(e) : e && typeof e == "object" && "message" in e ? Error(String(e.message)) : /* @__PURE__ */ Error("Unknown error");
|
|
497
|
+
}
|
|
498
|
+
//#endregion
|
|
499
|
+
//#region src/widgets-v2/selection-summary/labels.ts
|
|
500
|
+
var He = { clear: "Clear" }, Ue = {
|
|
501
|
+
root: {
|
|
502
|
+
display: "flex",
|
|
503
|
+
alignItems: "center",
|
|
504
|
+
gap: .5,
|
|
505
|
+
minHeight: 24
|
|
506
|
+
},
|
|
507
|
+
label: { color: "text.secondary" },
|
|
508
|
+
count: {
|
|
509
|
+
display: "inline-flex",
|
|
510
|
+
alignItems: "baseline",
|
|
511
|
+
gap: .5
|
|
512
|
+
},
|
|
513
|
+
selected: {
|
|
514
|
+
color: "text.primary",
|
|
515
|
+
fontWeight: 600
|
|
516
|
+
},
|
|
517
|
+
separator: { color: "text.secondary" },
|
|
518
|
+
total: { color: "text.secondary" },
|
|
519
|
+
clear: {
|
|
520
|
+
color: "primary.main",
|
|
521
|
+
cursor: "pointer",
|
|
522
|
+
fontWeight: 500,
|
|
523
|
+
"&:hover": { textDecoration: "underline" }
|
|
524
|
+
},
|
|
525
|
+
icon: {
|
|
526
|
+
fontSize: 16,
|
|
527
|
+
color: "text.secondary"
|
|
528
|
+
}
|
|
529
|
+
};
|
|
530
|
+
//#endregion
|
|
531
|
+
//#region src/widgets-v2/selection-summary/selection-summary.tsx
|
|
532
|
+
function We(e) {
|
|
533
|
+
let t = V(33), { count: n, total: r, onClear: i, labels: a, icon: o, iconProps: s } = e;
|
|
534
|
+
if (!r) return null;
|
|
535
|
+
let c, l, u, d, f, p, m, h, g;
|
|
536
|
+
if (t[0] !== o || t[1] !== n || t[2] !== s || t[3] !== a || t[4] !== r) {
|
|
537
|
+
u = {
|
|
538
|
+
...He,
|
|
539
|
+
...a
|
|
540
|
+
};
|
|
541
|
+
let e = n === 0 ? r : n;
|
|
542
|
+
l = Y, h = Ue.root, t[14] !== o || t[15] !== s ? (g = o ? /* @__PURE__ */ Z(o, {
|
|
543
|
+
fontSize: "small",
|
|
544
|
+
...s
|
|
545
|
+
}) : null, t[14] = o, t[15] = s, t[16] = g) : g = t[16], c = Y, d = "span", f = Ue.count, p = `${e} / ${r}`, m = u.summary ? u.summary(e, r) : /* @__PURE__ */ Q(pe, { children: [
|
|
546
|
+
/* @__PURE__ */ Z(X, {
|
|
547
|
+
component: "span",
|
|
548
|
+
variant: "caption",
|
|
549
|
+
sx: Ue.selected,
|
|
550
|
+
children: e
|
|
551
|
+
}),
|
|
552
|
+
/* @__PURE__ */ Z(X, {
|
|
553
|
+
component: "span",
|
|
554
|
+
variant: "caption",
|
|
555
|
+
sx: Ue.separator,
|
|
556
|
+
children: "/"
|
|
557
|
+
}),
|
|
558
|
+
/* @__PURE__ */ Z(X, {
|
|
559
|
+
component: "span",
|
|
560
|
+
variant: "caption",
|
|
561
|
+
sx: Ue.total,
|
|
562
|
+
children: r
|
|
563
|
+
})
|
|
564
|
+
] }), t[0] = o, t[1] = n, t[2] = s, t[3] = a, t[4] = r, t[5] = c, t[6] = l, t[7] = u, t[8] = d, t[9] = f, t[10] = p, t[11] = m, t[12] = h, t[13] = g;
|
|
565
|
+
} else c = t[5], l = t[6], u = t[7], d = t[8], f = t[9], p = t[10], m = t[11], h = t[12], g = t[13];
|
|
566
|
+
let _;
|
|
567
|
+
t[17] !== c || t[18] !== d || t[19] !== f || t[20] !== p || t[21] !== m ? (_ = /* @__PURE__ */ Z(c, {
|
|
568
|
+
component: d,
|
|
569
|
+
sx: f,
|
|
570
|
+
"aria-label": p,
|
|
571
|
+
children: m
|
|
572
|
+
}), t[17] = c, t[18] = d, t[19] = f, t[20] = p, t[21] = m, t[22] = _) : _ = t[22];
|
|
573
|
+
let v;
|
|
574
|
+
t[23] !== u || t[24] !== n || t[25] !== i ? (v = n > 0 && i && /* @__PURE__ */ Z(ae, {
|
|
575
|
+
size: "small",
|
|
576
|
+
variant: "text",
|
|
577
|
+
onClick: i,
|
|
578
|
+
children: u.clear
|
|
579
|
+
}), t[23] = u, t[24] = n, t[25] = i, t[26] = v) : v = t[26];
|
|
580
|
+
let y;
|
|
581
|
+
return t[27] !== l || t[28] !== h || t[29] !== g || t[30] !== _ || t[31] !== v ? (y = /* @__PURE__ */ Q(l, {
|
|
582
|
+
sx: h,
|
|
583
|
+
children: [
|
|
584
|
+
g,
|
|
585
|
+
_,
|
|
586
|
+
v
|
|
587
|
+
]
|
|
588
|
+
}), t[27] = l, t[28] = h, t[29] = g, t[30] = _, t[31] = v, t[32] = y) : y = t[32], y;
|
|
589
|
+
}
|
|
590
|
+
//#endregion
|
|
591
|
+
//#region src/widgets-v2/toolbox/labels.ts
|
|
592
|
+
var Ge = {
|
|
593
|
+
trigger: "More actions",
|
|
594
|
+
close: "Close"
|
|
595
|
+
}, Ke = {
|
|
596
|
+
root: {
|
|
597
|
+
display: "flex",
|
|
598
|
+
alignItems: "center",
|
|
599
|
+
gap: .25,
|
|
600
|
+
width: "fit-content",
|
|
601
|
+
borderRadius: .5,
|
|
602
|
+
gridColumn: 2,
|
|
603
|
+
height: "fit-content"
|
|
604
|
+
},
|
|
605
|
+
preview: {
|
|
606
|
+
display: "flex",
|
|
607
|
+
alignItems: "center",
|
|
608
|
+
gap: .25
|
|
609
|
+
},
|
|
610
|
+
triggerActive: { bgcolor: "primary.relatedLight" },
|
|
611
|
+
paper: {
|
|
612
|
+
display: "flex",
|
|
613
|
+
alignItems: "center",
|
|
614
|
+
gap: .25,
|
|
615
|
+
px: .25,
|
|
616
|
+
py: .25,
|
|
617
|
+
mx: .25,
|
|
618
|
+
mt: "0 !important",
|
|
619
|
+
bgcolor: "background.paper",
|
|
620
|
+
borderRadius: .5
|
|
621
|
+
}
|
|
622
|
+
};
|
|
623
|
+
//#endregion
|
|
624
|
+
//#region src/widgets-v2/toolbox/toolbox.tsx
|
|
625
|
+
function qe(t) {
|
|
626
|
+
let n = V(44), { visibleCount: r, labels: i, icon: a, iconProps: o, direction: s, sx: c, children: l } = t, u = a === void 0 ? ge : a, d = s === void 0 ? "right" : s, f;
|
|
627
|
+
n[0] === i ? f = n[1] : (f = {
|
|
628
|
+
...Ge,
|
|
629
|
+
...i
|
|
630
|
+
}, n[0] = i, n[1] = f);
|
|
631
|
+
let p = f, [m, h] = J(!1), [g, _] = J(null), [v, y] = J(null), [b, x] = J(null), S;
|
|
632
|
+
n[2] === Symbol.for("react.memo_cache_sentinel") ? (S = () => h(Ze), n[2] = S) : S = n[2];
|
|
633
|
+
let C = S, w;
|
|
634
|
+
n[3] === Symbol.for("react.memo_cache_sentinel") ? (w = (e) => {
|
|
635
|
+
_(e);
|
|
636
|
+
}, n[3] = w) : w = n[3];
|
|
637
|
+
let T = w, E, D;
|
|
638
|
+
n[4] === m ? (E = n[5], D = n[6]) : (E = () => {
|
|
639
|
+
if (!m) return;
|
|
640
|
+
let e = (e) => {
|
|
641
|
+
e.key === "Escape" && h(!1);
|
|
642
|
+
};
|
|
643
|
+
return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
|
|
644
|
+
}, D = [m], n[4] = m, n[5] = E, n[6] = D), G(E, D);
|
|
645
|
+
let [O] = J(Xe), k, A;
|
|
646
|
+
n[7] === l ? (k = n[8], A = n[9]) : (k = H.toArray(l).filter(Ye), A = k.reduce(Je, 0), n[7] = l, n[8] = k, n[9] = A);
|
|
647
|
+
let j = r !== void 0 && A > r, M;
|
|
648
|
+
bb0: {
|
|
649
|
+
if (!j || r === void 0) {
|
|
650
|
+
M = null;
|
|
651
|
+
break bb0;
|
|
652
|
+
}
|
|
653
|
+
let e;
|
|
654
|
+
n[10] !== k || n[11] !== r ? (e = $e(k, r), n[10] = k, n[11] = r, n[12] = e) : e = n[12], M = e;
|
|
655
|
+
}
|
|
656
|
+
let N = M;
|
|
657
|
+
!j && m && h(!1);
|
|
658
|
+
let P, F;
|
|
659
|
+
if (n[13] !== O || n[14] !== v || n[15] !== m || n[16] !== b ? (P = () => {
|
|
660
|
+
let e = m && b ? b : v;
|
|
661
|
+
O && e && O.parentNode !== e && e.appendChild(O);
|
|
662
|
+
}, F = [
|
|
663
|
+
m,
|
|
664
|
+
v,
|
|
665
|
+
b,
|
|
666
|
+
O
|
|
667
|
+
], n[13] = O, n[14] = v, n[15] = m, n[16] = b, n[17] = P, n[18] = F) : (P = n[17], F = n[18]), K(P, F), k.length === 0) return null;
|
|
668
|
+
let I = m ? p.close : p.trigger, L = d === "left" ? "row-reverse" : "row", R;
|
|
669
|
+
n[19] !== L || n[20] !== c ? (R = {
|
|
670
|
+
...Ke.root,
|
|
671
|
+
flexDirection: L,
|
|
672
|
+
...c
|
|
673
|
+
}, n[19] = L, n[20] = c, n[21] = R) : R = n[21];
|
|
674
|
+
let z;
|
|
675
|
+
n[22] !== u || n[23] !== o || n[24] !== m || n[25] !== j || n[26] !== I ? (z = j && /* @__PURE__ */ Q(pe, { children: [/* @__PURE__ */ Z(e, {
|
|
676
|
+
title: I,
|
|
677
|
+
children: /* @__PURE__ */ Z(ce, {
|
|
678
|
+
ref: T,
|
|
679
|
+
size: "small",
|
|
680
|
+
"aria-label": I,
|
|
681
|
+
"aria-pressed": m,
|
|
682
|
+
onClick: C,
|
|
683
|
+
className: m ? "active" : void 0,
|
|
684
|
+
sx: { ...m && Ke.triggerActive },
|
|
685
|
+
children: m ? /* @__PURE__ */ Z(me, { fontSize: "small" }) : /* @__PURE__ */ Z(u, {
|
|
686
|
+
fontSize: "small",
|
|
687
|
+
...o
|
|
688
|
+
})
|
|
689
|
+
})
|
|
690
|
+
}), /* @__PURE__ */ Z(oe, {
|
|
691
|
+
orientation: "vertical",
|
|
692
|
+
flexItem: !0,
|
|
693
|
+
sx: { mx: .5 }
|
|
694
|
+
})] }), n[22] = u, n[23] = o, n[24] = m, n[25] = j, n[26] = I, n[27] = z) : z = n[27];
|
|
695
|
+
let B;
|
|
696
|
+
n[28] === Symbol.for("react.memo_cache_sentinel") ? (B = /* @__PURE__ */ Z(Y, {
|
|
697
|
+
ref: y,
|
|
698
|
+
sx: Ke.preview
|
|
699
|
+
}), n[28] = B) : B = n[28];
|
|
700
|
+
let U;
|
|
701
|
+
n[29] !== g || n[30] !== d || n[31] !== m || n[32] !== j ? (U = j && /* @__PURE__ */ Z(fe, {
|
|
702
|
+
open: m,
|
|
703
|
+
anchorEl: g,
|
|
704
|
+
placement: d === "left" ? "left" : "right",
|
|
705
|
+
transition: !0,
|
|
706
|
+
modifiers: [{
|
|
707
|
+
name: "flip",
|
|
708
|
+
enabled: !1
|
|
709
|
+
}],
|
|
710
|
+
sx: {
|
|
711
|
+
zIndex: "tooltip",
|
|
712
|
+
mt: 0
|
|
713
|
+
},
|
|
714
|
+
children: (e) => {
|
|
715
|
+
let { TransitionProps: t } = e;
|
|
716
|
+
return /* @__PURE__ */ Z(se, {
|
|
717
|
+
...t,
|
|
718
|
+
style: { transformOrigin: d === "left" ? "right center" : "left center" },
|
|
719
|
+
children: /* @__PURE__ */ Z(de, {
|
|
720
|
+
ref: x,
|
|
721
|
+
sx: Ke.paper
|
|
722
|
+
})
|
|
723
|
+
});
|
|
724
|
+
}
|
|
725
|
+
}), n[29] = g, n[30] = d, n[31] = m, n[32] = j, n[33] = U) : U = n[33];
|
|
726
|
+
let W;
|
|
727
|
+
n[34] !== O || n[35] !== N || n[36] !== k || n[37] !== m ? (W = O ? _e(k.map((e, t) => {
|
|
728
|
+
let n = m || !N || N.has(t), r = e.key ?? t;
|
|
729
|
+
return /* @__PURE__ */ Z("div", {
|
|
730
|
+
"data-toolbox-item-visible": n ? "true" : "false",
|
|
731
|
+
style: { display: n ? "contents" : "none" },
|
|
732
|
+
children: e
|
|
733
|
+
}, r);
|
|
734
|
+
}), O) : null, n[34] = O, n[35] = N, n[36] = k, n[37] = m, n[38] = W) : W = n[38];
|
|
735
|
+
let q;
|
|
736
|
+
return n[39] !== R || n[40] !== z || n[41] !== U || n[42] !== W ? (q = /* @__PURE__ */ Q(Y, {
|
|
737
|
+
sx: R,
|
|
738
|
+
children: [
|
|
739
|
+
z,
|
|
740
|
+
B,
|
|
741
|
+
U,
|
|
742
|
+
W
|
|
743
|
+
]
|
|
744
|
+
}), n[39] = R, n[40] = z, n[41] = U, n[42] = W, n[43] = q) : q = n[43], q;
|
|
745
|
+
}
|
|
746
|
+
function Je(e, t) {
|
|
747
|
+
return e + +!Qe(t);
|
|
748
|
+
}
|
|
749
|
+
function Ye(e) {
|
|
750
|
+
return W(e);
|
|
751
|
+
}
|
|
752
|
+
function Xe() {
|
|
753
|
+
if (typeof document > "u") return null;
|
|
754
|
+
let e = document.createElement("div");
|
|
755
|
+
return e.style.display = "contents", e;
|
|
756
|
+
}
|
|
757
|
+
function Ze(e) {
|
|
758
|
+
return !e;
|
|
759
|
+
}
|
|
760
|
+
function Qe(e) {
|
|
761
|
+
return e.props["data-toolbar-hidden"] === !0;
|
|
762
|
+
}
|
|
763
|
+
function $e(e, t) {
|
|
764
|
+
let n = [], r = 0;
|
|
765
|
+
for (let i = 0; i < e.length && !(r >= t); i++) n.push(i), Qe(e[i]) || r++;
|
|
766
|
+
for (; n.length > 0 && Qe(e[n[n.length - 1]]);) n.pop();
|
|
767
|
+
return new Set(n);
|
|
768
|
+
}
|
|
769
|
+
//#endregion
|
|
770
|
+
//#region src/widgets-v2/note/labels.ts
|
|
771
|
+
var et = {
|
|
772
|
+
showMore: "Show more",
|
|
773
|
+
showLess: "Show less"
|
|
774
|
+
}, tt = {
|
|
775
|
+
root: {
|
|
776
|
+
display: "flex",
|
|
777
|
+
flexDirection: "column",
|
|
778
|
+
gap: .5
|
|
779
|
+
},
|
|
780
|
+
text: {
|
|
781
|
+
color: "text.secondary",
|
|
782
|
+
overflow: "hidden",
|
|
783
|
+
overflowWrap: "anywhere"
|
|
784
|
+
},
|
|
785
|
+
clamped: {
|
|
786
|
+
display: "-webkit-box",
|
|
787
|
+
WebkitBoxOrient: "vertical",
|
|
788
|
+
WebkitLineClamp: 3
|
|
789
|
+
},
|
|
790
|
+
toggle: {
|
|
791
|
+
alignSelf: "flex-start",
|
|
792
|
+
color: "primary.main",
|
|
793
|
+
fontWeight: 500,
|
|
794
|
+
cursor: "pointer",
|
|
795
|
+
"&:hover": { textDecoration: "underline" }
|
|
796
|
+
}
|
|
797
|
+
};
|
|
798
|
+
//#endregion
|
|
799
|
+
//#region src/widgets-v2/note/widget-note.tsx
|
|
800
|
+
function nt(e) {
|
|
801
|
+
let t = V(3), { children: n } = e, r;
|
|
802
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (r = { m: 0 }, t[0] = r) : r = t[0];
|
|
803
|
+
let i;
|
|
804
|
+
return t[1] === n ? i = t[2] : (i = /* @__PURE__ */ Z(X, {
|
|
805
|
+
variant: "caption",
|
|
806
|
+
component: "p",
|
|
807
|
+
color: "inherit",
|
|
808
|
+
sx: r,
|
|
809
|
+
children: n
|
|
810
|
+
}), t[1] = n, t[2] = i), i;
|
|
811
|
+
}
|
|
812
|
+
var rt = {
|
|
813
|
+
h1: nt,
|
|
814
|
+
h2: nt,
|
|
815
|
+
h3: nt,
|
|
816
|
+
h4: nt,
|
|
817
|
+
h5: nt,
|
|
818
|
+
h6: nt,
|
|
819
|
+
p: nt,
|
|
820
|
+
a: ({ children: e, href: t }) => /* @__PURE__ */ Z(ue, {
|
|
821
|
+
href: t,
|
|
822
|
+
target: "_blank",
|
|
823
|
+
rel: "noopener noreferrer",
|
|
824
|
+
color: "inherit",
|
|
825
|
+
underline: "always",
|
|
826
|
+
children: e
|
|
827
|
+
})
|
|
828
|
+
};
|
|
829
|
+
function it(e) {
|
|
830
|
+
let t = V(7), { lineClamp: n, labels: r, children: i } = e, a = n === void 0 ? 3 : n, o;
|
|
831
|
+
t[0] === i ? o = t[1] : (o = /* @__PURE__ */ Z(X, {
|
|
832
|
+
variant: "caption",
|
|
833
|
+
component: "div",
|
|
834
|
+
color: "inherit",
|
|
835
|
+
children: i
|
|
836
|
+
}), t[0] = i, t[1] = o);
|
|
837
|
+
let s;
|
|
838
|
+
return t[2] !== i || t[3] !== r || t[4] !== a || t[5] !== o ? (s = /* @__PURE__ */ Z(st, {
|
|
839
|
+
lineClamp: a,
|
|
840
|
+
labels: r,
|
|
841
|
+
dependency: i,
|
|
842
|
+
children: o
|
|
843
|
+
}), t[2] = i, t[3] = r, t[4] = a, t[5] = o, t[6] = s) : s = t[6], s;
|
|
844
|
+
}
|
|
845
|
+
function at(e) {
|
|
846
|
+
let t = V(7), { content: n, lineClamp: r, labels: i } = e, a = r === void 0 ? 3 : r, o;
|
|
847
|
+
t[0] === n ? o = t[1] : (o = /* @__PURE__ */ Z(_, {
|
|
848
|
+
content: n,
|
|
849
|
+
components: rt
|
|
850
|
+
}), t[0] = n, t[1] = o);
|
|
851
|
+
let s;
|
|
852
|
+
return t[2] !== n || t[3] !== i || t[4] !== a || t[5] !== o ? (s = /* @__PURE__ */ Z(st, {
|
|
853
|
+
lineClamp: a,
|
|
854
|
+
labels: i,
|
|
855
|
+
dependency: n,
|
|
856
|
+
children: o
|
|
857
|
+
}), t[2] = n, t[3] = i, t[4] = a, t[5] = o, t[6] = s) : s = t[6], s;
|
|
858
|
+
}
|
|
859
|
+
var ot = Object.assign(it, { Markdown: at });
|
|
860
|
+
function st(e) {
|
|
861
|
+
let t = V(27), { lineClamp: n, labels: r, dependency: i, children: a } = e, o;
|
|
862
|
+
t[0] === r ? o = t[1] : (o = {
|
|
863
|
+
...et,
|
|
864
|
+
...r
|
|
865
|
+
}, t[0] = r, t[1] = o);
|
|
866
|
+
let s = o, c = q(null), [l, u] = J(!1), [d, f] = J(!1), p = n <= 0, m;
|
|
867
|
+
t[2] === Symbol.for("react.memo_cache_sentinel") ? (m = () => {
|
|
868
|
+
let e = c.current;
|
|
869
|
+
e && u(e.scrollHeight > e.clientHeight + 1);
|
|
870
|
+
}, t[2] = m) : m = t[2];
|
|
871
|
+
let g = m, _;
|
|
872
|
+
t[3] === p ? _ = t[4] : (_ = () => {
|
|
873
|
+
if (p) return;
|
|
874
|
+
let e = c.current;
|
|
875
|
+
if (e) return g(), h(e, g);
|
|
876
|
+
}, t[3] = p, t[4] = _);
|
|
877
|
+
let v;
|
|
878
|
+
t[5] !== p || t[6] !== i ? (v = [
|
|
879
|
+
g,
|
|
880
|
+
i,
|
|
881
|
+
p
|
|
882
|
+
], t[5] = p, t[6] = i, t[7] = v) : v = t[7], G(_, v);
|
|
883
|
+
let y;
|
|
884
|
+
t[8] === Symbol.for("react.memo_cache_sentinel") ? (y = () => f(ct), t[8] = y) : y = t[8];
|
|
885
|
+
let b = y, x = !d && !p, S;
|
|
886
|
+
t[9] !== x || t[10] !== n ? (S = x ? {
|
|
887
|
+
...tt.clamped,
|
|
888
|
+
WebkitLineClamp: n
|
|
889
|
+
} : null, t[9] = x, t[10] = n, t[11] = S) : S = t[11];
|
|
890
|
+
let C = S, w;
|
|
891
|
+
t[12] === C ? w = t[13] : (w = C ?? {}, t[12] = C, t[13] = w);
|
|
892
|
+
let T;
|
|
893
|
+
t[14] === w ? T = t[15] : (T = {
|
|
894
|
+
...tt.text,
|
|
895
|
+
...w
|
|
896
|
+
}, t[14] = w, t[15] = T);
|
|
897
|
+
let E;
|
|
898
|
+
t[16] !== a || t[17] !== T ? (E = /* @__PURE__ */ Z(Y, {
|
|
899
|
+
ref: c,
|
|
900
|
+
sx: T,
|
|
901
|
+
children: a
|
|
902
|
+
}), t[16] = a, t[17] = T, t[18] = E) : E = t[18];
|
|
903
|
+
let D;
|
|
904
|
+
t[19] !== s || t[20] !== p || t[21] !== d || t[22] !== l ? (D = !p && (l || d) && /* @__PURE__ */ Z(ue, {
|
|
905
|
+
component: "button",
|
|
906
|
+
variant: "caption",
|
|
907
|
+
underline: "none",
|
|
908
|
+
onClick: b,
|
|
909
|
+
sx: tt.toggle,
|
|
910
|
+
children: d ? s.showLess : s.showMore
|
|
911
|
+
}), t[19] = s, t[20] = p, t[21] = d, t[22] = l, t[23] = D) : D = t[23];
|
|
912
|
+
let O;
|
|
913
|
+
return t[24] !== D || t[25] !== E ? (O = /* @__PURE__ */ Q(Y, {
|
|
914
|
+
sx: tt.root,
|
|
915
|
+
children: [E, D]
|
|
916
|
+
}), t[24] = D, t[25] = E, t[26] = O) : O = t[26], O;
|
|
917
|
+
}
|
|
918
|
+
function ct(e) {
|
|
919
|
+
return !e;
|
|
920
|
+
}
|
|
921
|
+
//#endregion
|
|
922
|
+
//#region src/widgets-v2/index.ts
|
|
923
|
+
var lt = {
|
|
924
|
+
Provider: ve,
|
|
925
|
+
Wrapper: we,
|
|
926
|
+
Actions: ye,
|
|
927
|
+
Options: xe,
|
|
928
|
+
Content: Oe,
|
|
929
|
+
Footer: ke,
|
|
930
|
+
Subheader: je,
|
|
931
|
+
State: Fe,
|
|
932
|
+
SelectionSummary: We,
|
|
933
|
+
Toolbox: qe,
|
|
934
|
+
Note: ot,
|
|
935
|
+
Echart: m,
|
|
936
|
+
EchartUI: p,
|
|
937
|
+
Searcher: y,
|
|
938
|
+
SearcherToggle: v,
|
|
939
|
+
StackToggle: E,
|
|
940
|
+
ShowAllToggle: S,
|
|
941
|
+
ZoomToggle: D,
|
|
942
|
+
BrushToggle: x,
|
|
943
|
+
RelativeData: b,
|
|
944
|
+
Download: O,
|
|
945
|
+
FullScreen: C,
|
|
946
|
+
LockSelection: w,
|
|
947
|
+
ChangeColumn: T,
|
|
948
|
+
Formula: A,
|
|
949
|
+
FormulaUI: k,
|
|
950
|
+
Markdown: M,
|
|
951
|
+
MarkdownUI: j,
|
|
952
|
+
Spread: P,
|
|
953
|
+
SpreadUI: N,
|
|
954
|
+
Range: F,
|
|
955
|
+
RangeUI: I,
|
|
956
|
+
Category: R,
|
|
957
|
+
CategoryUI: L,
|
|
958
|
+
Table: B,
|
|
959
|
+
TableUI: z
|
|
960
|
+
};
|
|
961
|
+
//#endregion
|
|
962
|
+
export { g as DEFAULT_INIT_OPTS, et as DEFAULT_NOTE_LABELS, He as DEFAULT_SELECTION_SUMMARY_LABELS, Ne as DEFAULT_STATE_LABELS, Ge as DEFAULT_TOOLBOX_LABELS, Ce as DEFAULT_WRAPPER_LABELS, lt as Widget };
|
|
963
|
+
|
|
964
|
+
//# sourceMappingURL=widgets-v2.js.map
|