@carto/ps-react-ui 4.20.2 → 4.21.1
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-Dy9JVr7F.js → actions-C7ZAO0FG.js} +4 -4
- package/dist/{actions-Dy9JVr7F.js.map → actions-C7ZAO0FG.js.map} +1 -1
- package/dist/{actions-DKX98LlI.js → actions-DZGaL_uT.js} +2 -2
- package/dist/{actions-DKX98LlI.js.map → actions-DZGaL_uT.js.map} +1 -1
- package/dist/{category-DHZscHaS.js → category-DZt6yiST.js} +3 -3
- package/dist/{category-DHZscHaS.js.map → category-DZt6yiST.js.map} +1 -1
- package/dist/{chart-config-BGt7wkK7.js → chart-config-BWxjodlt.js} +2 -2
- package/dist/chart-config-BWxjodlt.js.map +1 -0
- package/dist/chat.js.map +1 -1
- package/dist/{components-DDt4mOQn.js → components-DKjBezcJ.js} +73 -73
- package/dist/components-DKjBezcJ.js.map +1 -0
- package/dist/components.js +1 -1
- package/dist/{download-BT6qBamM.js → download-C7he8mSh.js} +2 -2
- package/dist/{download-BT6qBamM.js.map → download-C7he8mSh.js.map} +1 -1
- package/dist/{formula-Bk9CBzm2.js → formula-BNuRXsmh.js} +2 -2
- package/dist/{formula-Bk9CBzm2.js.map → formula-BNuRXsmh.js.map} +1 -1
- package/dist/{formula-Dsru_p-g.js → formula-Cqj84ZGX.js} +2 -2
- package/dist/{formula-Dsru_p-g.js.map → formula-Cqj84ZGX.js.map} +1 -1
- package/dist/legend.js +2 -0
- package/dist/legend.js.map +1 -1
- package/dist/{markdown-DnSJMPjQ.js → markdown-CV_KP-at.js} +2 -2
- package/dist/{markdown-DnSJMPjQ.js.map → markdown-CV_KP-at.js.map} +1 -1
- package/dist/{spread-Dy8pshpN.js → spread-C8T12Nfh.js} +3 -3
- package/dist/{spread-Dy8pshpN.js.map → spread-C8T12Nfh.js.map} +1 -1
- package/dist/{table-BfTG6rrs.js → table-CNQijNNB.js} +2 -2
- package/dist/{table-BfTG6rrs.js.map → table-CNQijNNB.js.map} +1 -1
- package/dist/types/chat/bubbles/chat-agent-message-markdown.d.ts +1 -1
- package/dist/types/chat/bubbles/chat-agent-message.d.ts +1 -1
- package/dist/types/chat/bubbles/chat-error-message.d.ts +1 -1
- package/dist/types/chat/bubbles/chat-suggestion-button.d.ts +1 -1
- package/dist/types/chat/bubbles/chat-user-message.d.ts +1 -1
- package/dist/types/chat/bubbles/index.d.ts +5 -5
- package/dist/types/chat/bubbles/styles.d.ts +88 -0
- package/dist/types/chat/containers/chat-content.d.ts +1 -1
- package/dist/types/chat/containers/chat-footer.d.ts +1 -1
- package/dist/types/chat/containers/chat-header.d.ts +1 -1
- package/dist/types/chat/containers/chat-starter.d.ts +1 -1
- package/dist/types/chat/containers/index.d.ts +4 -4
- package/dist/types/chat/feedback/chat-actions-container.d.ts +3 -0
- package/dist/types/chat/feedback/chat-loader.d.ts +1 -1
- package/dist/types/chat/feedback/chat-rating-action.d.ts +1 -1
- package/dist/types/chat/feedback/chat-thinking.d.ts +1 -1
- package/dist/types/chat/feedback/chat-tool-code-area.d.ts +1 -1
- package/dist/types/chat/feedback/chat-tool-full-view-dialog.d.ts +1 -1
- package/dist/types/chat/feedback/chat-tool-group.d.ts +1 -1
- package/dist/types/chat/feedback/chat-tool-trace.d.ts +1 -1
- package/dist/types/chat/feedback/get-tool-label.d.ts +1 -1
- package/dist/types/chat/feedback/index.d.ts +8 -8
- package/dist/types/chat/feedback/styles.d.ts +212 -0
- package/dist/types/chat/index.d.ts +21 -21
- package/dist/types/components/basemaps/basemaps.d.ts +1 -1
- package/dist/types/components/basemaps/const.d.ts +1 -1
- package/dist/types/components/basemaps/group.d.ts +1 -1
- package/dist/types/components/basemaps/header.d.ts +1 -1
- package/dist/types/components/copy-button/copy-button.d.ts +1 -1
- package/dist/types/components/geolocation-controls/geolocation-controls.d.ts +1 -1
- package/dist/types/components/index.d.ts +26 -26
- package/dist/types/components/lasso-tool/chip.d.ts +1 -1
- package/dist/types/components/lasso-tool/const.d.ts +2 -2
- package/dist/types/components/lasso-tool/geometry-toolbar.d.ts +1 -1
- package/dist/types/components/lasso-tool/lasso-tool-inline.d.ts +1 -1
- package/dist/types/components/lasso-tool/lasso-tool.d.ts +1 -1
- package/dist/types/components/lasso-tool/layer-filters.d.ts +1 -1
- package/dist/types/components/lasso-tool/message.d.ts +1 -1
- package/dist/types/components/lasso-tool/types.d.ts +1 -1
- package/dist/types/components/list-data/list-data.d.ts +1 -1
- package/dist/types/components/measurement-tools/const.d.ts +2 -2
- package/dist/types/components/measurement-tools/measurement-tools.d.ts +1 -1
- package/dist/types/components/measurement-tools/types.d.ts +1 -1
- package/dist/types/components/responsive-drawer/responsive-drawer.d.ts +10 -3
- package/dist/types/components/types.d.ts +1 -1
- package/dist/types/components/zoom-controls/zoom-controls.d.ts +1 -1
- package/dist/types/hooks/index.d.ts +1 -1
- package/dist/types/legend/components/icons.d.ts +1 -1
- package/dist/types/legend/components/index.d.ts +26 -26
- package/dist/types/legend/components/legend-category/legend-category-ui.d.ts +1 -1
- package/dist/types/legend/components/legend-icon/legend-icon-ui.d.ts +1 -1
- package/dist/types/legend/components/legend-item/legend-item-ui.d.ts +2 -2
- package/dist/types/legend/components/legend-proportion/legend-proportion-ui.d.ts +2 -2
- package/dist/types/legend/components/legend-ramp/legend-ramp-ui.d.ts +2 -2
- package/dist/types/legend/components/legend-sortable/sortable-entity.d.ts +1 -1
- package/dist/types/legend/components/legend-swatch/legend-swatch.d.ts +1 -1
- package/dist/types/legend/components/legend-visibility-toggle/legend-visibility-toggle.d.ts +2 -2
- package/dist/types/legend/components/run-async-menu-action.d.ts +1 -1
- package/dist/types/legend/index.d.ts +41 -41
- package/dist/types/legend/provider/index.d.ts +6 -6
- package/dist/types/legend/provider/legend-config-context.d.ts +1 -1
- package/dist/types/legend/provider/legend-provider.d.ts +2 -2
- package/dist/types/legend/stores/index.d.ts +5 -5
- package/dist/types/legend/stores/legend-store-registry.d.ts +1 -1
- package/dist/types/legend/stores/selectors.d.ts +1 -1
- package/dist/types/widgets/actions/brush-toggle/brush-toggle.d.ts +1 -1
- package/dist/types/widgets/actions/brush-toggle/hit-test.d.ts +1 -1
- package/dist/types/widgets/actions/brush-toggle/types.d.ts +1 -1
- package/dist/types/widgets/actions/change-column/change-column.d.ts +1 -1
- package/dist/types/widgets/actions/change-column/sortable-column-item.d.ts +1 -1
- package/dist/types/widgets/actions/download/download.d.ts +1 -1
- package/dist/types/widgets/actions/download/exports.d.ts +1 -1
- package/dist/types/widgets/actions/download/types.d.ts +1 -1
- package/dist/types/widgets/actions/fullscreen/fullscreen.d.ts +1 -1
- package/dist/types/widgets/actions/fullscreen/types.d.ts +1 -1
- package/dist/types/widgets/actions/index.d.ts +20 -20
- package/dist/types/widgets/actions/lock-selection/lock-selection.d.ts +1 -1
- package/dist/types/widgets/actions/lock-selection/types.d.ts +1 -1
- package/dist/types/widgets/actions/relative-data/relative-data.d.ts +1 -1
- package/dist/types/widgets/actions/relative-data/types.d.ts +1 -1
- package/dist/types/widgets/actions/relative-data/utils.d.ts +1 -1
- package/dist/types/widgets/actions/searcher/searcher-toggle.d.ts +1 -1
- package/dist/types/widgets/actions/searcher/searcher.d.ts +1 -1
- package/dist/types/widgets/actions/searcher/types.d.ts +2 -2
- package/dist/types/widgets/actions/stack-toggle/stack-toggle.d.ts +1 -1
- 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 +1 -1
- package/dist/types/widgets/bar/config.d.ts +2 -2
- package/dist/types/widgets/bar/index.d.ts +3 -3
- package/dist/types/widgets/bar/types.d.ts +3 -3
- package/dist/types/widgets/category/category-ui.d.ts +1 -1
- package/dist/types/widgets/category/components/category-legend.d.ts +1 -1
- package/dist/types/widgets/category/components/category-row-multi.d.ts +1 -1
- package/dist/types/widgets/category/components/category-row-single.d.ts +1 -1
- package/dist/types/widgets/category/config.d.ts +3 -3
- package/dist/types/widgets/category/index.d.ts +14 -14
- package/dist/types/widgets/category/types.d.ts +3 -3
- package/dist/types/widgets/echart/echart-ui.d.ts +1 -1
- package/dist/types/widgets/echart/echart.d.ts +1 -1
- package/dist/types/widgets/echart/index.d.ts +5 -5
- package/dist/types/widgets/echart/options.d.ts +1 -1
- package/dist/types/widgets/echart/types.d.ts +1 -1
- package/dist/types/widgets/echart/utils.d.ts +1 -1
- package/dist/types/widgets/error/error.d.ts +1 -1
- package/dist/types/widgets/error/index.d.ts +2 -2
- package/dist/types/widgets/error/types.d.ts +1 -1
- package/dist/types/widgets/formula/components/item.d.ts +1 -1
- package/dist/types/widgets/formula/components/prefix.d.ts +1 -1
- package/dist/types/widgets/formula/components/row.d.ts +1 -1
- package/dist/types/widgets/formula/components/series.d.ts +1 -1
- package/dist/types/widgets/formula/components/suffix.d.ts +1 -1
- package/dist/types/widgets/formula/components/value.d.ts +1 -1
- package/dist/types/widgets/formula/config.d.ts +2 -2
- package/dist/types/widgets/formula/formula-ui.d.ts +1 -1
- 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/types.d.ts +3 -3
- package/dist/types/widgets/histogram/config.d.ts +3 -3
- package/dist/types/widgets/histogram/index.d.ts +4 -4
- package/dist/types/widgets/histogram/types.d.ts +3 -3
- package/dist/types/widgets/loader/index.d.ts +3 -3
- package/dist/types/widgets/loader/loader.d.ts +1 -1
- package/dist/types/widgets/loader/types.d.ts +1 -1
- package/dist/types/widgets/markdown/config.d.ts +2 -2
- package/dist/types/widgets/markdown/index.d.ts +5 -5
- package/dist/types/widgets/markdown/markdown-ui.d.ts +1 -1
- package/dist/types/widgets/markdown/markdown.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 +1 -1
- package/dist/types/widgets/no-data/types.d.ts +1 -1
- package/dist/types/widgets/note/index.d.ts +2 -2
- package/dist/types/widgets/note/note.d.ts +1 -1
- package/dist/types/widgets/note/types.d.ts +1 -1
- package/dist/types/widgets/pie/config.d.ts +2 -2
- package/dist/types/widgets/pie/index.d.ts +3 -3
- package/dist/types/widgets/pie/types.d.ts +3 -3
- package/dist/types/widgets/range/components/range-item.d.ts +1 -1
- package/dist/types/widgets/range/config.d.ts +1 -1
- package/dist/types/widgets/range/index.d.ts +6 -6
- package/dist/types/widgets/range/range-ui.d.ts +1 -1
- package/dist/types/widgets/range/serializer.d.ts +1 -1
- package/dist/types/widgets/range/types.d.ts +3 -3
- package/dist/types/widgets/scatterplot/config.d.ts +2 -2
- package/dist/types/widgets/scatterplot/index.d.ts +3 -3
- 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 +1 -1
- package/dist/types/widgets/skeleton-loader/index.d.ts +2 -2
- package/dist/types/widgets/skeleton-loader/skeleton-loader.d.ts +1 -1
- package/dist/types/widgets/skeleton-loader/types.d.ts +1 -1
- package/dist/types/widgets/spread/components/max-value.d.ts +1 -1
- package/dist/types/widgets/spread/components/min-value.d.ts +1 -1
- package/dist/types/widgets/spread/components/separator.d.ts +1 -1
- package/dist/types/widgets/spread/config.d.ts +3 -3
- package/dist/types/widgets/spread/index.d.ts +9 -9
- package/dist/types/widgets/spread/spread-ui.d.ts +1 -1
- package/dist/types/widgets/spread/types.d.ts +4 -4
- package/dist/types/widgets/stores/index.d.ts +3 -3
- package/dist/types/widgets/stores/use-widget-selector.d.ts +1 -1
- package/dist/types/widgets/stores/widget-store.d.ts +2 -2
- package/dist/types/widgets/subheader/index.d.ts +2 -2
- package/dist/types/widgets/subheader/subheader.d.ts +1 -1
- package/dist/types/widgets/table/components/cell-header.d.ts +1 -1
- package/dist/types/widgets/table/components/cell.d.ts +1 -1
- package/dist/types/widgets/table/components/pagination-actions.d.ts +1 -1
- package/dist/types/widgets/table/components/pagination.d.ts +1 -1
- package/dist/types/widgets/table/components/row.d.ts +1 -1
- package/dist/types/widgets/table/config.d.ts +2 -2
- package/dist/types/widgets/table/hooks/use-pagination.d.ts +1 -1
- package/dist/types/widgets/table/hooks/use-selection.d.ts +1 -1
- package/dist/types/widgets/table/hooks/use-sort.d.ts +1 -1
- package/dist/types/widgets/table/index.d.ts +17 -17
- package/dist/types/widgets/table/serializer.d.ts +1 -1
- package/dist/types/widgets/table/table-ui.d.ts +8 -8
- package/dist/types/widgets/table/types.d.ts +3 -3
- package/dist/types/widgets/timeseries/config.d.ts +2 -2
- package/dist/types/widgets/timeseries/index.d.ts +3 -3
- 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 +1 -1
- package/dist/types/widgets/utils/chart-config/config-factory.d.ts +1 -1
- package/dist/types/widgets/utils/chart-config/download-config.d.ts +2 -2
- package/dist/types/widgets/utils/chart-config/index.d.ts +6 -6
- package/dist/types/widgets/utils/chart-config/option-builders.d.ts +142 -0
- package/dist/types/widgets/utils/index.d.ts +7 -7
- package/dist/types/widgets/utils/skeleton/index.d.ts +1 -1
- package/dist/types/widgets/wrapper/components/actions.d.ts +1 -1
- package/dist/types/widgets/wrapper/components/options.d.ts +1 -1
- package/dist/types/widgets/wrapper/components/title.d.ts +1 -1
- 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 +1 -1
- package/dist/types/widgets/wrapper/wrapper.d.ts +1 -1
- package/dist/types/widgets-v2/actions/brush-toggle/brush-toggle.d.ts +1 -1
- package/dist/types/widgets-v2/actions/brush-toggle/index.d.ts +3 -3
- package/dist/types/widgets-v2/actions/change-column/change-column.d.ts +1 -1
- package/dist/types/widgets-v2/actions/change-column/index.d.ts +3 -3
- package/dist/types/widgets-v2/actions/change-column/types.d.ts +1 -1
- package/dist/types/widgets-v2/actions/download/csv-item.d.ts +1 -1
- package/dist/types/widgets-v2/actions/download/download.d.ts +2 -2
- package/dist/types/widgets-v2/actions/download/index.d.ts +8 -8
- package/dist/types/widgets-v2/actions/download/png-item.d.ts +1 -1
- package/dist/types/widgets-v2/actions/fullscreen/fullscreen.d.ts +1 -1
- package/dist/types/widgets-v2/actions/fullscreen/index.d.ts +3 -3
- package/dist/types/widgets-v2/actions/fullscreen/types.d.ts +1 -1
- package/dist/types/widgets-v2/actions/index.d.ts +10 -10
- package/dist/types/widgets-v2/actions/lock-selection/index.d.ts +3 -3
- package/dist/types/widgets-v2/actions/lock-selection/lock-selection.d.ts +1 -1
- package/dist/types/widgets-v2/actions/relative-data/index.d.ts +3 -3
- package/dist/types/widgets-v2/actions/relative-data/relative-data.d.ts +1 -1
- package/dist/types/widgets-v2/actions/searcher/index.d.ts +4 -4
- package/dist/types/widgets-v2/actions/searcher/searcher-toggle.d.ts +1 -1
- package/dist/types/widgets-v2/actions/searcher/searcher.d.ts +1 -1
- package/dist/types/widgets-v2/actions/show-all/index.d.ts +2 -2
- package/dist/types/widgets-v2/actions/show-all/show-all.d.ts +1 -1
- package/dist/types/widgets-v2/actions/stack-toggle/index.d.ts +3 -3
- package/dist/types/widgets-v2/actions/stack-toggle/stack-toggle.d.ts +1 -1
- package/dist/types/widgets-v2/actions/zoom-toggle/index.d.ts +3 -3
- package/dist/types/widgets-v2/actions/zoom-toggle/zoom-toggle.d.ts +2 -2
- package/dist/types/widgets-v2/bar/download.d.ts +2 -2
- package/dist/types/widgets-v2/bar/index.d.ts +4 -4
- package/dist/types/widgets-v2/bar/options.d.ts +2 -2
- package/dist/types/widgets-v2/bar/types.d.ts +1 -1
- package/dist/types/widgets-v2/category/category-ui.d.ts +1 -1
- package/dist/types/widgets-v2/category/category.d.ts +1 -1
- package/dist/types/widgets-v2/category/components/category-bar-stacked.d.ts +1 -1
- package/dist/types/widgets-v2/category/components/category-bar.d.ts +1 -1
- package/dist/types/widgets-v2/category/components/category-legend.d.ts +1 -1
- package/dist/types/widgets-v2/category/components/category-row-multi.d.ts +1 -1
- package/dist/types/widgets-v2/category/components/category-row-single.d.ts +1 -1
- package/dist/types/widgets-v2/category/components/category-row-stacked.d.ts +1 -1
- package/dist/types/widgets-v2/category/download.d.ts +2 -2
- package/dist/types/widgets-v2/category/index.d.ts +10 -10
- package/dist/types/widgets-v2/category/skeleton.d.ts +1 -1
- package/dist/types/widgets-v2/category/style.d.ts +1 -1
- package/dist/types/widgets-v2/category/types.d.ts +1 -1
- package/dist/types/widgets-v2/echart/echart.d.ts +1 -1
- package/dist/types/widgets-v2/echart/index.d.ts +4 -4
- package/dist/types/widgets-v2/echart/use-chart-selection.d.ts +1 -1
- package/dist/types/widgets-v2/formula/delta.d.ts +1 -1
- package/dist/types/widgets-v2/formula/download.d.ts +2 -2
- package/dist/types/widgets-v2/formula/formula-ui.d.ts +1 -1
- package/dist/types/widgets-v2/formula/index.d.ts +11 -11
- package/dist/types/widgets-v2/formula/types.d.ts +1 -1
- package/dist/types/widgets-v2/histogram/download.d.ts +2 -2
- package/dist/types/widgets-v2/histogram/index.d.ts +5 -5
- package/dist/types/widgets-v2/histogram/options.d.ts +3 -3
- package/dist/types/widgets-v2/histogram/types.d.ts +1 -1
- package/dist/types/widgets-v2/index.d.ts +45 -45
- package/dist/types/widgets-v2/markdown/download.d.ts +2 -2
- package/dist/types/widgets-v2/markdown/index.d.ts +6 -6
- package/dist/types/widgets-v2/note/widget-note.d.ts +1 -1
- package/dist/types/widgets-v2/pie/download.d.ts +2 -2
- package/dist/types/widgets-v2/pie/index.d.ts +4 -4
- package/dist/types/widgets-v2/pie/options.d.ts +2 -2
- package/dist/types/widgets-v2/pie/types.d.ts +1 -1
- package/dist/types/widgets-v2/range/index.d.ts +4 -4
- package/dist/types/widgets-v2/range/range-ui.d.ts +1 -1
- package/dist/types/widgets-v2/range/range.d.ts +1 -1
- package/dist/types/widgets-v2/scatterplot/download.d.ts +2 -2
- package/dist/types/widgets-v2/scatterplot/index.d.ts +5 -5
- package/dist/types/widgets-v2/scatterplot/options.d.ts +2 -2
- package/dist/types/widgets-v2/scatterplot/types.d.ts +1 -1
- package/dist/types/widgets-v2/selection-summary/selection-summary.d.ts +1 -1
- package/dist/types/widgets-v2/spread/download.d.ts +2 -2
- package/dist/types/widgets-v2/spread/index.d.ts +7 -7
- package/dist/types/widgets-v2/spread/spread-ui.d.ts +1 -1
- package/dist/types/widgets-v2/spread/types.d.ts +1 -1
- package/dist/types/widgets-v2/state/widget-state.d.ts +1 -1
- package/dist/types/widgets-v2/stores/index.d.ts +8 -8
- package/dist/types/widgets-v2/stores/pipeline-middleware.d.ts +1 -1
- package/dist/types/widgets-v2/stores/transforms.d.ts +1 -1
- package/dist/types/widgets-v2/stores/use-transform.d.ts +1 -1
- package/dist/types/widgets-v2/stores/widget-store-registry.d.ts +1 -1
- package/dist/types/widgets-v2/table/download.d.ts +2 -2
- package/dist/types/widgets-v2/table/helpers.d.ts +1 -1
- package/dist/types/widgets-v2/table/index.d.ts +8 -8
- package/dist/types/widgets-v2/table/table-ui.d.ts +2 -2
- package/dist/types/widgets-v2/table/table.d.ts +2 -2
- package/dist/types/widgets-v2/table/types.d.ts +1 -1
- package/dist/types/widgets-v2/timeseries/download.d.ts +2 -2
- package/dist/types/widgets-v2/timeseries/index.d.ts +5 -5
- package/dist/types/widgets-v2/timeseries/options.d.ts +4 -4
- package/dist/types/widgets-v2/timeseries/types.d.ts +1 -1
- package/dist/types/widgets-v2/toolbox/toolbox.d.ts +1 -1
- package/dist/types/widgets-v2/utils/index.d.ts +3 -3
- package/dist/types/widgets-v2/wrapper/index.d.ts +4 -4
- package/dist/types/widgets-v2/wrapper/widget-wrapper.d.ts +1 -1
- package/dist/{utils-DtvTjjMq.js → utils-ClB6nn4w.js} +2 -2
- package/dist/{utils-DtvTjjMq.js.map → utils-ClB6nn4w.js.map} +1 -1
- package/dist/widgets/actions.js +1 -1
- package/dist/widgets/bar.js +1 -1
- package/dist/widgets/category.js +1 -1
- package/dist/widgets/formula.js +1 -1
- package/dist/widgets/histogram.js +2 -2
- package/dist/widgets/markdown.js +1 -1
- package/dist/widgets/pie.js +1 -1
- package/dist/widgets/scatterplot.js +1 -1
- package/dist/widgets/spread.js +2 -2
- package/dist/widgets/table.js +1 -1
- package/dist/widgets/timeseries.js +1 -1
- package/dist/widgets/utils.js +1 -1
- package/dist/widgets/wrapper.js +1 -1
- package/dist/widgets-v2/actions.js +3 -3
- package/dist/widgets-v2/bar.js +4 -4
- package/dist/widgets-v2/category.js +1 -1
- package/dist/widgets-v2/formula.js +1 -1
- package/dist/widgets-v2/histogram.js +4 -4
- package/dist/widgets-v2/markdown.js +1 -1
- package/dist/widgets-v2/pie.js +3 -3
- package/dist/widgets-v2/scatterplot.js +4 -4
- package/dist/widgets-v2/spread.js +1 -1
- package/dist/widgets-v2/table.js +1 -1
- package/dist/widgets-v2/timeseries.js +4 -4
- package/dist/widgets-v2/utils.js +1 -1
- package/dist/widgets-v2.js +9 -9
- package/dist/{zoom-toggle-CA0ifG23.js → zoom-toggle-KA63b6-J.js} +2 -2
- package/dist/{zoom-toggle-CA0ifG23.js.map → zoom-toggle-KA63b6-J.js.map} +1 -1
- package/package.json +5 -4
- package/src/chat/bubbles/styles.ts +27 -8
- package/src/chat/feedback/chat-actions-container.tsx +5 -2
- package/src/chat/feedback/styles.ts +8 -5
- package/src/components/basemaps/basemaps.tsx +4 -4
- package/src/components/responsive-drawer/responsive-drawer.test.tsx +37 -23
- package/src/components/responsive-drawer/responsive-drawer.tsx +15 -8
- package/src/legend/components/legend-row/legend-row.test.tsx +19 -0
- package/src/legend/components/legend-row/legend-row.tsx +15 -2
- package/src/widgets/utils/chart-config/option-builders.ts +5 -1
- package/dist/chart-config-BGt7wkK7.js.map +0 -1
- package/dist/components-DDt4mOQn.js.map +0 -1
- package/dist/types/legend/stores/legend-store.test.d.ts +0 -1
- package/dist/types/widgets/actions/brush-toggle/hit-test.test.d.ts +0 -1
- package/dist/types/widgets/actions/relative-data/utils.test.d.ts +0 -1
- package/dist/types/widgets/echart/utils.test.d.ts +0 -1
- package/dist/types/widgets/formula/config.test.d.ts +0 -1
- package/dist/types/widgets/loader/utils.test.d.ts +0 -1
- package/dist/types/widgets/range/serializer.test.d.ts +0 -1
- package/dist/types/widgets/stores/widget-store-branches.test.d.ts +0 -1
- package/dist/types/widgets/stores/widget-store-performance.test.d.ts +0 -1
- package/dist/types/widgets/stores/widget-store.test.d.ts +0 -1
- package/dist/types/widgets/table/config.test.d.ts +0 -1
- package/dist/types/widgets/table/helpers.test.d.ts +0 -1
- 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/types/widgets/utils/chart-config/option-builders.test.d.ts +0 -1
- package/dist/types/widgets-v2/actions/brush-toggle/transforms.test.d.ts +0 -1
- package/dist/types/widgets-v2/actions/relative-data/transforms.test.d.ts +0 -1
- package/dist/types/widgets-v2/actions/stack-toggle/transforms.test.d.ts +0 -1
- package/dist/types/widgets-v2/actions/zoom-toggle/transforms.test.d.ts +0 -1
- package/dist/types/widgets-v2/bar/options.test.d.ts +0 -1
- package/dist/types/widgets-v2/category/download.test.d.ts +0 -1
- package/dist/types/widgets-v2/echart/edge-label-clamp.test.d.ts +0 -1
- package/dist/types/widgets-v2/echart/shared-resize-observer.test.d.ts +0 -1
- package/dist/types/widgets-v2/histogram/download.test.d.ts +0 -1
- package/dist/types/widgets-v2/histogram/options.test.d.ts +0 -1
- package/dist/types/widgets-v2/histogram/transforms.test.d.ts +0 -1
- package/dist/types/widgets-v2/markdown/download.test.d.ts +0 -1
- package/dist/types/widgets-v2/pie/download.test.d.ts +0 -1
- package/dist/types/widgets-v2/pie/options.test.d.ts +0 -1
- package/dist/types/widgets-v2/scatterplot/download.test.d.ts +0 -1
- package/dist/types/widgets-v2/scatterplot/options.test.d.ts +0 -1
- package/dist/types/widgets-v2/scatterplot/transforms.test.d.ts +0 -1
- package/dist/types/widgets-v2/spread/band.test.d.ts +0 -1
- package/dist/types/widgets-v2/spread/download.test.d.ts +0 -1
- package/dist/types/widgets-v2/state/labels.test.d.ts +0 -1
- package/dist/types/widgets-v2/stores/pipeline-middleware.test.d.ts +0 -1
- package/dist/types/widgets-v2/stores/transforms.test.d.ts +0 -1
- package/dist/types/widgets-v2/stores/widget-store-registry.test.d.ts +0 -1
- package/dist/types/widgets-v2/table/download.test.d.ts +0 -1
- package/dist/types/widgets-v2/table/helpers.test.d.ts +0 -1
- package/dist/types/widgets-v2/table/transforms.test.d.ts +0 -1
- package/dist/types/widgets-v2/test-utils.d.ts +0 -52
- package/dist/types/widgets-v2/timeseries/download.test.d.ts +0 -1
- package/dist/types/widgets-v2/timeseries/options.test.d.ts +0 -1
- package/dist/types/widgets-v2/timeseries/transforms.test.d.ts +0 -1
- package/dist/types/widgets-v2/utils/merge-options.test.d.ts +0 -1
- package/dist/types/widgets-v2/utils/resolve-theme-color.test.d.ts +0 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { useWidgetStore, widgetStoreActions } from './widget-store';
|
|
2
|
-
export { useWidgetSelector } from './use-widget-selector';
|
|
3
|
-
export type { BaseWidgetState, ToolRegistration, ToolTransformFunction, ToolType, WidgetsStoreProps, WidgetState, WidgetStore, WidgetStoreActions, WidgetStoreState, } from './types';
|
|
1
|
+
export { useWidgetStore, widgetStoreActions } from './widget-store.js';
|
|
2
|
+
export { useWidgetSelector } from './use-widget-selector.js';
|
|
3
|
+
export type { BaseWidgetState, ToolRegistration, ToolTransformFunction, ToolType, WidgetsStoreProps, WidgetState, WidgetStore, WidgetStoreActions, WidgetStoreState, } from './types.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { WidgetStore, WidgetStoreActions } from './types';
|
|
1
|
+
import { WidgetStore, WidgetStoreActions } from './types.js';
|
|
2
2
|
/**
|
|
3
3
|
* Zustand store for managing widget state across the application.
|
|
4
4
|
*
|
|
@@ -37,7 +37,7 @@ import { WidgetStore, WidgetStoreActions } from './types';
|
|
|
37
37
|
* setWidget('my-widget', { type: 'formula', isLoading: false, data: { value: 1000 } })
|
|
38
38
|
* ```
|
|
39
39
|
*/
|
|
40
|
-
export declare const useWidgetStore: import('
|
|
40
|
+
export declare const useWidgetStore: import('zustand').UseBoundStore<import('zustand').StoreApi<WidgetStore>>;
|
|
41
41
|
/**
|
|
42
42
|
* Stable references to store actions, accessible without creating a subscription.
|
|
43
43
|
*
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { WidgetSubHeader } from './subheader';
|
|
2
|
-
export type { WidgetSubHeaderProps } from './types';
|
|
1
|
+
export { WidgetSubHeader } from './subheader.js';
|
|
2
|
+
export type { WidgetSubHeaderProps } from './types.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { WidgetSubHeaderProps } from './types';
|
|
1
|
+
import { WidgetSubHeaderProps } from './types.js';
|
|
2
2
|
/**
|
|
3
3
|
* Flexible two-slot layout for displaying supplementary widget information such as totals, timestamps, or controls. Uses flexbox with space-between justification.
|
|
4
4
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ConfigProps } from '../loader/types';
|
|
2
|
-
import { TableDownloadConfig, TableWidgetConfig, TableColumn, SortDirection } from './types';
|
|
1
|
+
import { ConfigProps } from '../loader/types.js';
|
|
2
|
+
import { TableDownloadConfig, TableWidgetConfig, TableColumn, SortDirection } from './types.js';
|
|
3
3
|
export declare const DEFAULT_PAGE = 0;
|
|
4
4
|
export declare const DEFAULT_ROWS_PER_PAGE = 10;
|
|
5
5
|
export declare const DEFAULT_ROWS_PER_PAGE_OPTIONS: number[];
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
export { CellHeader } from './components/cell-header';
|
|
2
|
-
export { Row } from './components/row';
|
|
3
|
-
export { Pagination } from './components/pagination';
|
|
4
|
-
export { PaginationActions } from './components/pagination-actions';
|
|
5
|
-
export { Table } from './table-ui';
|
|
6
|
-
export { usePagination } from './hooks/use-pagination';
|
|
7
|
-
export { useSort } from './hooks/use-sort';
|
|
8
|
-
export { useSelection } from './hooks/use-selection';
|
|
9
|
-
export { tableConfig, tableDownloadConfig } from './config';
|
|
10
|
-
export { TableSkeleton } from './skeleton';
|
|
11
|
-
export { sanitizeTableRow, sanitizeTableData } from './serializer';
|
|
12
|
-
export { getCellValue, compareValues, sortData, paginateData } from './helpers';
|
|
13
|
-
export { styles as tableStyles } from './style';
|
|
14
|
-
export type { TableUIProps, TableColumn, TableRow, TableWidgetData, TablePaginationState, SortDirection, SortState, Mode, TableWidgetConfig, TableWidgetState, TableDownloadConfig, TableProps, CellHeaderProps, RowProps, PaginationProps, PaginationActionsProps, } from './types';
|
|
15
|
-
export type { UsePaginationResult } from './hooks/use-pagination';
|
|
16
|
-
export type { UseSortResult } from './hooks/use-sort';
|
|
17
|
-
export type { UseSelectionOptions, UseSelectionResult, } from './hooks/use-selection';
|
|
1
|
+
export { CellHeader } from './components/cell-header.js';
|
|
2
|
+
export { Row } from './components/row.js';
|
|
3
|
+
export { Pagination } from './components/pagination.js';
|
|
4
|
+
export { PaginationActions } from './components/pagination-actions.js';
|
|
5
|
+
export { Table } from './table-ui.js';
|
|
6
|
+
export { usePagination } from './hooks/use-pagination.js';
|
|
7
|
+
export { useSort } from './hooks/use-sort.js';
|
|
8
|
+
export { useSelection } from './hooks/use-selection.js';
|
|
9
|
+
export { tableConfig, tableDownloadConfig } from './config.js';
|
|
10
|
+
export { TableSkeleton } from './skeleton.js';
|
|
11
|
+
export { sanitizeTableRow, sanitizeTableData } from './serializer.js';
|
|
12
|
+
export { getCellValue, compareValues, sortData, paginateData } from './helpers.js';
|
|
13
|
+
export { styles as tableStyles } from './style.js';
|
|
14
|
+
export type { TableUIProps, TableColumn, TableRow, TableWidgetData, TablePaginationState, SortDirection, SortState, Mode, TableWidgetConfig, TableWidgetState, TableDownloadConfig, TableProps, CellHeaderProps, RowProps, PaginationProps, PaginationActionsProps, } from './types.js';
|
|
15
|
+
export type { UsePaginationResult } from './hooks/use-pagination.js';
|
|
16
|
+
export type { UseSortResult } from './hooks/use-sort.js';
|
|
17
|
+
export type { UseSelectionOptions, UseSelectionResult, } from './hooks/use-selection.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TableCell, TableProps as MuiTableProps } from '@mui/material';
|
|
2
2
|
import { Ref } from 'react';
|
|
3
|
-
import { TableUIProps } from './types';
|
|
3
|
+
import { TableUIProps } from './types.js';
|
|
4
4
|
/**
|
|
5
5
|
* Props for the base Table component
|
|
6
6
|
*/
|
|
@@ -14,15 +14,15 @@ interface TableComponentProps extends MuiTableProps {
|
|
|
14
14
|
*/
|
|
15
15
|
declare function Table({ children, ref, stickyHeader, ...props }: TableComponentProps): import("react").JSX.Element;
|
|
16
16
|
declare namespace Table {
|
|
17
|
-
var Head: import("
|
|
18
|
-
var CellHeader: typeof import(".").CellHeader;
|
|
19
|
-
var Body: import("
|
|
20
|
-
var Row: typeof import(".").Row;
|
|
17
|
+
var Head: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").TableHeadTypeMap<{}, "thead">>;
|
|
18
|
+
var CellHeader: typeof import("./index.js").CellHeader;
|
|
19
|
+
var Body: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").TableBodyTypeMap<{}, "tbody">>;
|
|
20
|
+
var Row: typeof import("./index.js").Row;
|
|
21
21
|
var Cell: typeof TableCell;
|
|
22
22
|
var Container: typeof TableContainer;
|
|
23
|
-
var Paper: import("
|
|
24
|
-
var Pagination: typeof import(".").Pagination;
|
|
25
|
-
var PaginationActions: typeof import(".").PaginationActions;
|
|
23
|
+
var Paper: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").PaperTypeMap<{}, "div">>;
|
|
24
|
+
var Pagination: typeof import("./index.js").Pagination;
|
|
25
|
+
var PaginationActions: typeof import("./index.js").PaginationActions;
|
|
26
26
|
}
|
|
27
27
|
export { Table };
|
|
28
28
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ReactNode, Ref } from 'react';
|
|
2
2
|
import { TableProps as MuiTableProps } from '@mui/material';
|
|
3
|
-
import { BaseWidgetState, WidgetsStoreProps } from '../stores/types';
|
|
4
|
-
import { WrapperState } from '../wrapper/types';
|
|
5
|
-
import { DownloadItem } from '../actions/download/types';
|
|
3
|
+
import { BaseWidgetState, WidgetsStoreProps } from '../stores/types.js';
|
|
4
|
+
import { WrapperState } from '../wrapper/types.js';
|
|
5
|
+
import { DownloadItem } from '../actions/download/types.js';
|
|
6
6
|
/**
|
|
7
7
|
* Table UI component props
|
|
8
8
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TimeseriesConfig, TimeseriesWidgetConfig } from './types';
|
|
2
|
-
export declare const timeseriesDownloadConfig: ({ refUI }: import('../loader').ConfigProps) => import('../actions').DownloadItem<import('../echart').EchartWidgetData>[];
|
|
1
|
+
import { TimeseriesConfig, TimeseriesWidgetConfig } from './types.js';
|
|
2
|
+
export declare const timeseriesDownloadConfig: ({ refUI }: import('../loader/index.js').ConfigProps) => import('../actions/index.js').DownloadItem<import('../echart/index.js').EchartWidgetData>[];
|
|
3
3
|
/**
|
|
4
4
|
* Generates ECharts configuration for line and area chart widgets over time, with smooth curves, rotated axis labels, and CARTO qualitative color palette.
|
|
5
5
|
*
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export type { TimeseriesWidgetData, TimeseriesWidgetState, TimeseriesWidgetConfig, TimeseriesConfig, } from './types';
|
|
2
|
-
export { timeseriesConfig, timeseriesDownloadConfig } from './config';
|
|
3
|
-
export { TimeseriesSkeleton } from './skeleton';
|
|
1
|
+
export type { TimeseriesWidgetData, TimeseriesWidgetState, TimeseriesWidgetConfig, TimeseriesConfig, } from './types.js';
|
|
2
|
+
export { timeseriesConfig, timeseriesDownloadConfig } from './config.js';
|
|
3
|
+
export { TimeseriesSkeleton } from './skeleton.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { EchartWidgetData, EchartWidgetState } from '../echart';
|
|
2
|
-
import { EchartWidgetOptionProps, EchartWidgetProps } from '../echart/types';
|
|
3
|
-
import { ConfigProps } from '../loader';
|
|
1
|
+
import { EchartWidgetData, EchartWidgetState } from '../echart/index.js';
|
|
2
|
+
import { EchartWidgetOptionProps, EchartWidgetProps } from '../echart/types.js';
|
|
3
|
+
import { ConfigProps } from '../loader/index.js';
|
|
4
4
|
export type TimeseriesWidgetData = EchartWidgetData;
|
|
5
5
|
export type TimeseriesWidgetState = EchartWidgetState;
|
|
6
6
|
export type TimeseriesWidgetConfig = EchartWidgetProps & {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type { ToolbarAction, ToolbarActionsLabels, ToolbarActionsProps, } from './types';
|
|
2
|
-
export { ToolbarActions } from './toolbar-actions';
|
|
1
|
+
export type { ToolbarAction, ToolbarActionsLabels, ToolbarActionsProps, } from './types.js';
|
|
2
|
+
export { ToolbarActions } from './toolbar-actions.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JSX } from 'react';
|
|
2
|
-
import { ToolbarActionsProps } from './types';
|
|
2
|
+
import { ToolbarActionsProps } from './types.js';
|
|
3
3
|
/**
|
|
4
4
|
* A floating toolbar component that displays action buttons.
|
|
5
5
|
* Shows a trigger button when there are more visible actions than the visibleCount,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { DownloadItem } from '../../actions';
|
|
2
|
-
import { ConfigProps } from '../../loader/types';
|
|
1
|
+
import { DownloadItem } from '../../actions/index.js';
|
|
2
|
+
import { ConfigProps } from '../../loader/types.js';
|
|
3
3
|
export declare function createChartDownloadConfig<TData>(csvModifier: (data: TData) => string[][]): ({ refUI }: ConfigProps) => DownloadItem<TData>[];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Shared utilities for chart widget configuration
|
|
3
3
|
*/
|
|
4
|
-
export { defaultFormatter, defaultLabelFormatter } from '../formatter';
|
|
5
|
-
export { createChartWidgetConfig } from './config-factory';
|
|
6
|
-
export type { ChartWidgetBaseConfig, CreateChartWidgetConfigParams, } from './config-factory';
|
|
7
|
-
export { flattenObjectArrayToCSV, scatterplotDataToCSV } from './csv-modifiers';
|
|
8
|
-
export { buildLegendConfig, buildGridConfig, buildAxisLabelStyle, createTooltipPositioner, createAxisLabelFormatter, createTooltipFormatter, applyXAxisFormatter, applyYAxisFormatter, niceNum, buildSeriesLabelConfig, buildHistogramSeriesLabelConfig, } from './option-builders';
|
|
9
|
-
export { createChartDownloadConfig } from './download-config';
|
|
4
|
+
export { defaultFormatter, defaultLabelFormatter } from '../formatter.js';
|
|
5
|
+
export { createChartWidgetConfig } from './config-factory.js';
|
|
6
|
+
export type { ChartWidgetBaseConfig, CreateChartWidgetConfigParams, } from './config-factory.js';
|
|
7
|
+
export { flattenObjectArrayToCSV, scatterplotDataToCSV } from './csv-modifiers.js';
|
|
8
|
+
export { buildLegendConfig, buildGridConfig, buildAxisLabelStyle, createTooltipPositioner, createAxisLabelFormatter, createTooltipFormatter, applyXAxisFormatter, applyYAxisFormatter, niceNum, buildSeriesLabelConfig, buildHistogramSeriesLabelConfig, } from './option-builders.js';
|
|
9
|
+
export { createChartDownloadConfig } from './download-config.js';
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { Theme } from '@mui/material';
|
|
2
|
+
import { LegendComponentOption } from 'echarts';
|
|
3
|
+
import { CallbackDataParams, TopLevelFormatterParams } from 'echarts/types/dist/shared';
|
|
4
|
+
/**
|
|
5
|
+
* Shared EChart configuration builders for chart widgets
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Rounds a value up to the nearest "nice" number.
|
|
9
|
+
* A nice number is a multiple of 10^floor(log10(value)).
|
|
10
|
+
*
|
|
11
|
+
* Examples: 547 → 600, 200 → 200, 1200 → 2000, 18 → 20, 5 → 5, -547 → -500
|
|
12
|
+
*/
|
|
13
|
+
export declare function niceNum(value: number): number;
|
|
14
|
+
/**
|
|
15
|
+
* Builds standard legend configuration for chart widgets
|
|
16
|
+
*
|
|
17
|
+
* @param params - Legend configuration parameters
|
|
18
|
+
* @param params.hasLegend - Whether to show the legend
|
|
19
|
+
* @param params.labelFormatter - Optional formatter for legend item names
|
|
20
|
+
* @returns Legend configuration object
|
|
21
|
+
*/
|
|
22
|
+
export declare function buildLegendConfig({ hasLegend, labelFormatter, }: {
|
|
23
|
+
hasLegend: boolean;
|
|
24
|
+
labelFormatter?: (value: string | number) => string | number;
|
|
25
|
+
}): LegendComponentOption;
|
|
26
|
+
/**
|
|
27
|
+
* Builds standard grid configuration with legend-aware spacing
|
|
28
|
+
*
|
|
29
|
+
* @param hasLegend - Whether the chart has a legend
|
|
30
|
+
* @param theme - MUI theme for spacing
|
|
31
|
+
* @param additionalConfig - Additional grid configuration to merge
|
|
32
|
+
* @returns Grid configuration object
|
|
33
|
+
*/
|
|
34
|
+
export declare function buildGridConfig(hasLegend: boolean, theme: Theme): {
|
|
35
|
+
bottom?: number | undefined;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Builds the shared axis-label text style for chart widgets, matching the
|
|
39
|
+
* design's "Overline (Delicate)" token (Inter, 10px) in the secondary text
|
|
40
|
+
* colour (`rgba(44,48,50,0.6)`). Spread into an ECharts `axisLabel` for both
|
|
41
|
+
* x and y axes so every chart's labels stay consistent.
|
|
42
|
+
*
|
|
43
|
+
* Note: the token's `letterSpacing` and `textTransform: uppercase` are not
|
|
44
|
+
* representable in ECharts canvas text, so only font size/family/colour are
|
|
45
|
+
* applied.
|
|
46
|
+
*
|
|
47
|
+
* @param theme - MUI theme providing the typography token and palette
|
|
48
|
+
* @returns `{ fontSize, fontFamily, color }` for an ECharts `axisLabel`
|
|
49
|
+
*/
|
|
50
|
+
export declare function buildAxisLabelStyle(theme: Theme): {
|
|
51
|
+
fontSize: string | number | undefined;
|
|
52
|
+
fontFamily: string | undefined;
|
|
53
|
+
color: string;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* Creates a tooltip position calculator that handles overflow
|
|
57
|
+
* Used by bar, histogram, and scatterplot widgets
|
|
58
|
+
*
|
|
59
|
+
* @param theme - MUI theme for spacing
|
|
60
|
+
* @returns Tooltip position function
|
|
61
|
+
*/
|
|
62
|
+
export declare function createTooltipPositioner(theme: Theme): (point: [number, number], _params: unknown, _dom: unknown, _rect: unknown, size: {
|
|
63
|
+
contentSize: [number, number];
|
|
64
|
+
viewSize: [number, number];
|
|
65
|
+
}) => Record<string, number>;
|
|
66
|
+
/**
|
|
67
|
+
* Creates an axis label formatter for ECharts
|
|
68
|
+
* Used to format numeric axis labels with a widget formatter
|
|
69
|
+
*
|
|
70
|
+
* @param formatter - Optional formatter function from widget config
|
|
71
|
+
* @returns Axis label formatter function or undefined
|
|
72
|
+
*/
|
|
73
|
+
export declare function createAxisLabelFormatter(formatter?: (value: number) => string): ((value: number) => string) | undefined;
|
|
74
|
+
/**
|
|
75
|
+
* Applies labelFormatter to xAxis configuration
|
|
76
|
+
* Applies to any xAxis regardless of axis type (category, value, etc.)
|
|
77
|
+
*
|
|
78
|
+
* @param xAxis - Existing xAxis configuration
|
|
79
|
+
* @param labelFormatter - Optional labelFormatter function from widget config
|
|
80
|
+
* @returns Updated xAxis configuration
|
|
81
|
+
*/
|
|
82
|
+
export declare function applyXAxisFormatter(xAxis: unknown, formatter?: (value: string | number) => string | number): {
|
|
83
|
+
axisLabel: {
|
|
84
|
+
formatter: ((value: string | number) => string) | undefined;
|
|
85
|
+
};
|
|
86
|
+
type?: string;
|
|
87
|
+
};
|
|
88
|
+
/**
|
|
89
|
+
* Applies formatter to yAxis configuration
|
|
90
|
+
* Only applies to single axis objects (not arrays) with type 'value'
|
|
91
|
+
*
|
|
92
|
+
* @param yAxis - Existing yAxis configuration
|
|
93
|
+
* @param formatter - Optional formatter function from widget config
|
|
94
|
+
* @returns Updated yAxis configuration or undefined if no changes needed
|
|
95
|
+
*/
|
|
96
|
+
export declare function applyYAxisFormatter(yAxis: unknown, formatter?: (value: number) => string): {
|
|
97
|
+
axisLabel: {
|
|
98
|
+
formatter: ((value: number) => string) | undefined;
|
|
99
|
+
};
|
|
100
|
+
type?: string;
|
|
101
|
+
};
|
|
102
|
+
/**
|
|
103
|
+
* Creates a tooltip formatter for ECharts
|
|
104
|
+
* Formats numeric values in tooltip using widget formatter
|
|
105
|
+
* Handles both axis trigger (array) and item trigger (object) modes
|
|
106
|
+
*
|
|
107
|
+
* @param formatter - Optional formatter function from widget config
|
|
108
|
+
* @returns Tooltip formatter function or undefined
|
|
109
|
+
*/
|
|
110
|
+
export declare function createTooltipFormatter(callback: (item: CallbackDataParams, items: CallbackDataParams[]) => {
|
|
111
|
+
name: string;
|
|
112
|
+
seriesName: string;
|
|
113
|
+
marker: string;
|
|
114
|
+
value: string | number;
|
|
115
|
+
}): (params: TopLevelFormatterParams) => string;
|
|
116
|
+
/**
|
|
117
|
+
* Builds a series `label` config that applies formatter to the data value
|
|
118
|
+
* extracted from a dataset row using ECharts encode/dimensionNames.
|
|
119
|
+
*
|
|
120
|
+
* Does not set `show` — labels remain hidden by default per ECharts defaults.
|
|
121
|
+
*
|
|
122
|
+
* @param formatter - Optional numeric value formatter
|
|
123
|
+
* @param encodeKey - The encode dimension key to extract ('y' for vertical charts, 'x' for horizontal)
|
|
124
|
+
*/
|
|
125
|
+
export declare function buildSeriesLabelConfig(formatter?: (value: number) => string, encodeKey?: string): {
|
|
126
|
+
label: {
|
|
127
|
+
formatter: (params: CallbackDataParams) => string;
|
|
128
|
+
};
|
|
129
|
+
} | object;
|
|
130
|
+
/**
|
|
131
|
+
* Builds a series `label` config that applies formatter to a raw numeric value.
|
|
132
|
+
* Used by histogram where series data is number[] (not datasets).
|
|
133
|
+
*
|
|
134
|
+
* Does not set `show` — labels remain hidden by default per ECharts defaults.
|
|
135
|
+
*
|
|
136
|
+
* @param formatter - Optional numeric value formatter
|
|
137
|
+
*/
|
|
138
|
+
export declare function buildHistogramSeriesLabelConfig(formatter?: (value: number) => string): {
|
|
139
|
+
label: {
|
|
140
|
+
formatter: (params: CallbackDataParams) => string;
|
|
141
|
+
};
|
|
142
|
+
} | object;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { defaultFormatter, defaultLabelFormatter } from './formatter';
|
|
2
|
-
export { createChartWidgetConfig } from './chart-config';
|
|
3
|
-
export type { ChartWidgetBaseConfig, CreateChartWidgetConfigParams, } from './chart-config';
|
|
4
|
-
export { flattenObjectArrayToCSV, scatterplotDataToCSV } from './chart-config';
|
|
5
|
-
export { buildLegendConfig, buildGridConfig, createTooltipPositioner, createAxisLabelFormatter, createTooltipFormatter, applyXAxisFormatter, applyYAxisFormatter, niceNum, } from './chart-config';
|
|
6
|
-
export { baseSkeletonStyles } from './skeleton';
|
|
7
|
-
export { createChartDownloadConfig } from './chart-config';
|
|
1
|
+
export { defaultFormatter, defaultLabelFormatter } from './formatter.js';
|
|
2
|
+
export { createChartWidgetConfig } from './chart-config/index.js';
|
|
3
|
+
export type { ChartWidgetBaseConfig, CreateChartWidgetConfigParams, } from './chart-config/index.js';
|
|
4
|
+
export { flattenObjectArrayToCSV, scatterplotDataToCSV } from './chart-config/index.js';
|
|
5
|
+
export { buildLegendConfig, buildGridConfig, createTooltipPositioner, createAxisLabelFormatter, createTooltipFormatter, applyXAxisFormatter, applyYAxisFormatter, niceNum, } from './chart-config/index.js';
|
|
6
|
+
export { baseSkeletonStyles } from './skeleton/index.js';
|
|
7
|
+
export { createChartDownloadConfig } from './chart-config/index.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { Actions } from './components/actions';
|
|
2
|
-
export { Options } from './components/options';
|
|
3
|
-
export { Title } from './components/title';
|
|
4
|
-
export { WidgetWrapper } from './wrapper';
|
|
5
|
-
export { WrapperUI } from './wrapper-ui';
|
|
6
|
-
export type { WrapperActionsProps, WrapperOption, WrapperOptionsProps, WrapperProps, WrapperState, WrapperUIProps, } from './types';
|
|
1
|
+
export { Actions } from './components/actions.js';
|
|
2
|
+
export { Options } from './components/options.js';
|
|
3
|
+
export { Title } from './components/title.js';
|
|
4
|
+
export { WidgetWrapper } from './wrapper.js';
|
|
5
|
+
export { WrapperUI } from './wrapper-ui.js';
|
|
6
|
+
export type { WrapperActionsProps, WrapperOption, WrapperOptionsProps, WrapperProps, WrapperState, WrapperUIProps, } from './types.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactNode, SyntheticEvent } from 'react';
|
|
2
2
|
import { SxProps, Theme } from '@mui/material';
|
|
3
|
-
import { BaseWidgetState } from '../stores/types';
|
|
3
|
+
import { BaseWidgetState } from '../stores/types.js';
|
|
4
4
|
export interface WrapperProps extends Pick<WrapperUIProps, 'sx' | 'actions' | 'options' | 'labels' | 'children' | 'onChangeCollapsed'>, Pick<WrapperState, 'disabled' | 'title'> {
|
|
5
5
|
id: WrapperState['id'];
|
|
6
6
|
defaultCollapsed?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { WrapperUIProps } from './types';
|
|
1
|
+
import { WrapperUIProps } from './types.js';
|
|
2
2
|
/**
|
|
3
3
|
* Presentational wrapper component that renders the widget accordion UI with title, actions, options menu, and loading indicator. For uncontrolled usage without automatic widget store synchronization, use this instead of WidgetWrapper.
|
|
4
4
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { WrapperProps } from './types';
|
|
1
|
+
import { WrapperProps } from './types.js';
|
|
2
2
|
/**
|
|
3
3
|
* Container component providing a collapsible header with title, action buttons, and options menu for widgets. Syncs collapse, disabled, and title state with the widget store.
|
|
4
4
|
*
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { BrushToggle, type BrushToggleProps } from './brush-toggle';
|
|
2
|
-
export { addBrush } from './transforms';
|
|
3
|
-
export { DEFAULT_BRUSH_TOGGLE_LABELS, type BrushToggleLabels } from './labels';
|
|
1
|
+
export { BrushToggle, type BrushToggleProps } from './brush-toggle.js';
|
|
2
|
+
export { addBrush } from './transforms.js';
|
|
3
|
+
export { DEFAULT_BRUSH_TOGGLE_LABELS, type BrushToggleLabels } from './labels.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentType, ReactNode } from 'react';
|
|
2
2
|
import { SvgIconProps } from '@mui/material';
|
|
3
|
-
import { ChangeColumnLabels } from './labels';
|
|
3
|
+
import { ChangeColumnLabels } from './labels.js';
|
|
4
4
|
export interface ChangeColumnItem {
|
|
5
5
|
id: string;
|
|
6
6
|
label: ReactNode;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { ChangeColumn, type ChangeColumnProps, type ChangeColumnItem, } from './change-column';
|
|
2
|
-
export { DEFAULT_CHANGE_COLUMN_LABELS, type ChangeColumnLabels } from './labels';
|
|
3
|
-
export type { ChangeColumnWidgetState } from './types';
|
|
1
|
+
export { ChangeColumn, type ChangeColumnProps, type ChangeColumnItem, } from './change-column.js';
|
|
2
|
+
export { DEFAULT_CHANGE_COLUMN_LABELS, type ChangeColumnLabels } from './labels.js';
|
|
3
|
+
export type { ChangeColumnWidgetState } from './types.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentType } from 'react';
|
|
2
2
|
import { SvgIconProps } from '@mui/material';
|
|
3
|
-
import { DownloadItem } from './types';
|
|
4
|
-
import { DownloadLabels } from './labels';
|
|
3
|
+
import { DownloadItem } from './types.js';
|
|
4
|
+
import { DownloadLabels } from './labels.js';
|
|
5
5
|
export interface DownloadProps {
|
|
6
6
|
items: readonly DownloadItem[];
|
|
7
7
|
labels?: Partial<DownloadLabels>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { Download, type DownloadProps } from './download';
|
|
2
|
-
export { downloadToCSV, downloadDOMToPNG, toCsvString, triggerLinkDownload, type DownloadHandle, type DownloadDOMToPNGOptions, } from './exports';
|
|
3
|
-
export { CSVIcon, PNGIcon, MarkdownIcon } from './icons';
|
|
4
|
-
export { buildPngDownloadItem, type BuildPngDownloadItemArgs } from './png-item';
|
|
5
|
-
export { buildCsvDownloadItem, type BuildCsvDownloadItemArgs } from './csv-item';
|
|
6
|
-
export { DOWNLOAD_ITEM_IDS, type DownloadItemId } from './constants';
|
|
7
|
-
export type { DownloadItem } from './types';
|
|
8
|
-
export { DEFAULT_DOWNLOAD_LABELS, type DownloadLabels } from './labels';
|
|
1
|
+
export { Download, type DownloadProps } from './download.js';
|
|
2
|
+
export { downloadToCSV, downloadDOMToPNG, toCsvString, triggerLinkDownload, type DownloadHandle, type DownloadDOMToPNGOptions, } from './exports.js';
|
|
3
|
+
export { CSVIcon, PNGIcon, MarkdownIcon } from './icons.js';
|
|
4
|
+
export { buildPngDownloadItem, type BuildPngDownloadItemArgs } from './png-item.js';
|
|
5
|
+
export { buildCsvDownloadItem, type BuildCsvDownloadItemArgs } from './csv-item.js';
|
|
6
|
+
export { DOWNLOAD_ITEM_IDS, type DownloadItemId } from './constants.js';
|
|
7
|
+
export type { DownloadItem } from './types.js';
|
|
8
|
+
export { DEFAULT_DOWNLOAD_LABELS, type DownloadLabels } from './labels.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentType, ReactNode } from 'react';
|
|
2
2
|
import { SvgIconProps } from '@mui/material';
|
|
3
|
-
import { FullScreenLabels } from './labels';
|
|
3
|
+
import { FullScreenLabels } from './labels.js';
|
|
4
4
|
export interface FullScreenTriggerProps {
|
|
5
5
|
labels?: Partial<FullScreenLabels>;
|
|
6
6
|
enterIcon?: ComponentType<SvgIconProps>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { FullScreen, type FullScreenTriggerProps, type FullScreenSlotProps, } from './fullscreen';
|
|
2
|
-
export { DEFAULT_FULLSCREEN_LABELS, type FullScreenLabels } from './labels';
|
|
3
|
-
export type { FullScreenWidgetState } from './types';
|
|
1
|
+
export { FullScreen, type FullScreenTriggerProps, type FullScreenSlotProps, } from './fullscreen.js';
|
|
2
|
+
export { DEFAULT_FULLSCREEN_LABELS, type FullScreenLabels } from './labels.js';
|
|
3
|
+
export type { FullScreenWidgetState } from './types.js';
|