@sisense/sdk-ui 2.11.0 → 2.12.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/ai.cjs +19 -19
- package/dist/ai.js +563 -561
- package/dist/analytics-composer/node.cjs +1 -3
- package/dist/analytics-composer/node.js +2269 -653
- package/dist/analytics-composer.cjs +1 -1
- package/dist/analytics-composer.js +6 -6
- package/dist/{derive-chart-family-BhAFg8OE.js → derive-chart-family-YIDiS_iY.js} +11299 -11249
- package/dist/derive-chart-family-mugR7Ty1.cjs +170 -0
- package/dist/{dimensions-DCxjxuyH.cjs → dimensions-CyzZ0dbM.cjs} +1 -1
- package/dist/{dimensions-Bk74slQe.js → dimensions-DmRfLrT-.js} +1 -1
- package/dist/{execute-query-CxMSGp-J.js → execute-query-BCEeyd9s.js} +835 -807
- package/dist/execute-query-Xt9drS3G.cjs +1 -0
- package/dist/index.cjs +24 -20
- package/dist/index.js +24710 -24594
- package/dist/index.umd.js +437 -435
- package/dist/packages/sdk-ui/src/ai/api/chat-rest-api.d.ts +1 -1
- package/dist/packages/sdk-ui/src/ai/api/hooks.d.ts +1 -1
- package/dist/packages/sdk-ui/src/ai/chart/nlq-chart-widget.d.ts +1 -1
- package/dist/packages/sdk-ui/src/ai/chat-config.d.ts +1 -1
- package/dist/packages/sdk-ui/src/ai/chat-frame.d.ts +1 -1
- package/dist/packages/sdk-ui/src/ai/custom-ai-context-provider.d.ts +1 -1
- package/dist/packages/sdk-ui/src/ai/messages/text-message.d.ts +1 -1
- package/dist/packages/sdk-ui/src/ai/use-chat-session.d.ts +1 -1
- package/dist/packages/sdk-ui/src/ai/use-final-nlq-response.d.ts +1 -1
- package/dist/packages/sdk-ui/src/ai/use-get-nlq-result.d.ts +1 -1
- package/dist/packages/sdk-ui/src/ai/use-get-query-recommendations.d.ts +1 -1
- package/dist/packages/sdk-ui/src/ai/use-last-nlq-response-from-history.d.ts +1 -1
- package/dist/packages/sdk-ui/src/ai/use-last-nlq-response.d.ts +1 -1
- package/dist/packages/sdk-ui/src/analytics-composer/code/default-options/data-options.d.ts +4 -0
- package/dist/packages/sdk-ui/src/analytics-composer/code/default-options/style-options.d.ts +89 -0
- package/dist/packages/sdk-ui/src/analytics-composer/code/stringify-props.d.ts +5 -1
- package/dist/packages/sdk-ui/src/analytics-composer/common/utils.d.ts +2 -2
- package/dist/packages/sdk-ui/src/analytics-composer/execute-query/execute-query-composer.d.ts +1 -1
- package/dist/packages/sdk-ui/src/analytics-composer/execute-query/to-execute-query-code.d.ts +1 -1
- package/dist/packages/sdk-ui/src/analytics-composer/index-node.d.ts +1 -1
- package/dist/packages/sdk-ui/src/analytics-composer/index.d.ts +1 -1
- package/dist/packages/sdk-ui/src/analytics-composer/nlq-v3-translator/common.d.ts +49 -0
- package/dist/packages/sdk-ui/src/analytics-composer/nlq-v3-translator/index.d.ts +2 -0
- package/dist/packages/sdk-ui/src/analytics-composer/nlq-v3-translator/process-function/custom-formula/process-custom-formula.d.ts +14 -0
- package/dist/packages/sdk-ui/src/analytics-composer/nlq-v3-translator/process-function/custom-formula/validate-custom-formula.d.ts +54 -0
- package/dist/packages/sdk-ui/src/analytics-composer/nlq-v3-translator/process-function/execute-function.d.ts +5 -0
- package/dist/packages/sdk-ui/src/analytics-composer/nlq-v3-translator/process-function/factory-function-processors.d.ts +39 -0
- package/dist/packages/sdk-ui/src/analytics-composer/nlq-v3-translator/process-function/factory-function-schemas.d.ts +20 -0
- package/dist/packages/sdk-ui/src/analytics-composer/nlq-v3-translator/process-function/filter-processors.d.ts +37 -0
- package/dist/packages/sdk-ui/src/analytics-composer/nlq-v3-translator/process-function/process-arg.d.ts +8 -0
- package/dist/packages/sdk-ui/src/analytics-composer/nlq-v3-translator/process-function/process-node.d.ts +9 -0
- package/dist/packages/sdk-ui/src/analytics-composer/nlq-v3-translator/translate-dimensions.d.ts +10 -0
- package/dist/packages/sdk-ui/src/analytics-composer/{new-nlq-translator → nlq-v3-translator}/translate-filters.d.ts +19 -7
- package/dist/packages/sdk-ui/src/analytics-composer/{new-nlq-translator → nlq-v3-translator}/translate-measures.d.ts +13 -7
- package/dist/packages/sdk-ui/src/analytics-composer/{new-nlq-translator → nlq-v3-translator}/translate-query.d.ts +7 -9
- package/dist/packages/sdk-ui/src/analytics-composer/nlq-v3-translator/types.d.ts +46 -0
- package/dist/packages/sdk-ui/src/analytics-composer/query/query-translator.d.ts +2 -2
- package/dist/packages/sdk-ui/src/analytics-composer/types.d.ts +71 -10
- package/dist/packages/sdk-ui/src/analytics-composer/widget/chart-options/get-widget-options.d.ts +1 -1
- package/dist/packages/sdk-ui/src/analytics-composer/widget/to-widget-code.d.ts +3 -3
- package/dist/packages/sdk-ui/src/analytics-composer/widget/to-widget-props.d.ts +1 -1
- package/dist/packages/sdk-ui/src/api/rest-api.d.ts +9 -4
- package/dist/packages/sdk-ui/src/api/types/dashboard-dto.d.ts +2 -1
- package/dist/packages/sdk-ui/src/app/client-application.d.ts +4 -4
- package/dist/packages/sdk-ui/src/boxplot-utils.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart/helpers/get-load-data-function.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart/helpers/use-chart-renderer-props.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart/helpers/use-synced-data.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart/restructured-charts/areamap-chart/renderer/areamap.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart/restructured-charts/helpers/data-loading.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/constants.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/data-options/data-options.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/data.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/design-options.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/series-options/calendar-data-generator.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/tooltip-options.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/calendar-heatmap-charts-grid.d.ts +3 -3
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/calendar-heatmap.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/calendar-pagination/calendar-pagination.d.ts +5 -9
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/calendar-pagination/helpers.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/helpers/data-helpers.d.ts +0 -2
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/helpers/sizing-helpers.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/helpers/view-helpers.d.ts +21 -4
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/hooks/index.d.ts +1 -2
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/hooks/use-calendar-heatmap-chart-options.d.ts +8 -8
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/hooks/use-calendar-heatmap-pagination.d.ts +23 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/helpers/data-options.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/helpers/highchart-options/axis.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/helpers/highchart-options/tooltip.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/helpers/highchart-options/y-axis.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/funnel-chart/data/index.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/funnel-chart/design-options/index.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/funnel-chart/types.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/helpers/data-options.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/helpers/data.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/pie-chart/design-options/index.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/pie-chart/types.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/sunburst-chart/data/index.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/sunburst-chart/data-options/index.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/sunburst-chart/design-options/index.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/sunburst-chart/types.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/treemap-chart/data/index.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/treemap-chart/data-options/index.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/treemap-chart/design-options/index.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/treemap-chart/types.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/highcharts-based-chart-renderer/build-highchart-options.d.ts +4 -4
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/highcharts-based-chart-renderer/highcharts-based-chart-renderer.d.ts +4 -4
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/types.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart/restructured-charts/types.d.ts +6 -6
- package/dist/packages/sdk-ui/src/chart/restructured-charts/utils.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart/types.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-data/advanced-analytics-data.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-data/boxplot-data.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-data/cartesian-data.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart-data/indicator-data.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-data/range-data.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-data/scatter-data.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-data/table-data.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-data/types.d.ts +3 -3
- package/dist/packages/sdk-ui/src/chart-data-options/translate-boxplot-data-options.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-data-options/translate-data-options.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-data-options/types.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart-data-options/utils.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-data-options/validate-data-options/validate-data-options.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart-data-processor/row-comparator.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-options-processor/advanced-chart-options.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-options-processor/apply-event-handlers.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart-options-processor/boxplot-chart-options.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/cartesian-chart-options.d.ts +4 -4
- package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/utils/axis/axis-builders.d.ts +8 -8
- package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/utils/axis/axis-settings.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/utils/axis/axis-transformers.d.ts +5 -6
- package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/utils/chart-spacing-calculator.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/utils/series-processor.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart-options-processor/category-chart-options/category-chart-options.d.ts +4 -4
- package/dist/packages/sdk-ui/src/chart-options-processor/category-chart-options/funnel-chart-options.d.ts +3 -3
- package/dist/packages/sdk-ui/src/chart-options-processor/category-chart-options/pie-chart-options.d.ts +3 -3
- package/dist/packages/sdk-ui/src/chart-options-processor/category-chart-options/sunburst-chart-options.d.ts +4 -4
- package/dist/packages/sdk-ui/src/chart-options-processor/category-chart-options/treemap-chart-options.d.ts +4 -4
- package/dist/packages/sdk-ui/src/chart-options-processor/chart-options-service.d.ts +9 -9
- package/dist/packages/sdk-ui/src/chart-options-processor/data-points.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart-options-processor/defaults/cartesian.d.ts +3 -3
- package/dist/packages/sdk-ui/src/chart-options-processor/range-chart-options.d.ts +3 -3
- package/dist/packages/sdk-ui/src/chart-options-processor/scatter-chart-options.d.ts +3 -3
- package/dist/packages/sdk-ui/src/chart-options-processor/stack-labels.d.ts +25 -0
- package/dist/packages/sdk-ui/src/chart-options-processor/style-to-design-options-translator/translate-style-to-design-options.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart-options-processor/style-to-design-options-translator/translate-to-highcharts-options.d.ts +3 -3
- package/dist/packages/sdk-ui/src/chart-options-processor/subtype-to-design-options.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart-options-processor/tooltip.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/axis-section.d.ts +17 -7
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/base-design-options.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/boxplot/boxplot-axis.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/boxplot/boxplot-plot-options.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/boxplot/boxplot-series.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/design-options.d.ts +12 -7
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/funnel-plot-options.d.ts +3 -3
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/funnel-series.d.ts +3 -3
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/pie-plot-options.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/pie-series.d.ts +3 -3
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/range/tooltip-range.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/scatter-plot-options.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/scatter-series.d.ts +3 -3
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/scatter-tooltip.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/sunburst/sunburst-levels.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/sunburst/sunburst-options.d.ts +3 -3
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/sunburst/sunburst-series.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/tooltip-utils.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/tooltip.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/translations-to-highcharts.d.ts +7 -7
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/treemap/treemap-labels.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/treemap/treemap-options.d.ts +3 -3
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/treemap/treemap-series.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/treemap/treemap-tooltip.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/types.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/value-label-section.d.ts +9 -3
- package/dist/packages/sdk-ui/src/charts/indicator/chart/indicator.d.ts +4 -4
- package/dist/packages/sdk-ui/src/charts/indicator/indicator-legacy-chart-data-options.d.ts +1 -1
- package/dist/packages/sdk-ui/src/charts/indicator/indicator-legacy-chart-options/default-options.d.ts +1 -1
- package/dist/packages/sdk-ui/src/charts/indicator/indicator-legacy-chart-options/indicator-legacy-chart-options.d.ts +1 -1
- package/dist/packages/sdk-ui/src/charts/indicator/indicator-legacy-chart-options/override-with-value-color.d.ts +1 -1
- package/dist/packages/sdk-ui/src/charts/indicator/indicator-render-options.d.ts +1 -1
- package/dist/packages/sdk-ui/src/charts/map-charts/scattermap/hooks/use-tooltip-handler.d.ts +2 -2
- package/dist/packages/sdk-ui/src/charts/map-charts/scattermap/scattermap.d.ts +4 -4
- package/dist/packages/sdk-ui/src/charts/map-charts/scattermap/utils/location.d.ts +2 -2
- package/dist/packages/sdk-ui/src/charts/map-charts/scattermap/utils/map.d.ts +1 -1
- package/dist/packages/sdk-ui/src/charts/map-charts/scattermap/utils/tooltip.d.ts +1 -1
- package/dist/packages/sdk-ui/src/charts/table/types.d.ts +1 -1
- package/dist/packages/sdk-ui/src/common/components/grouped-items-browser/group-header.d.ts +1 -1
- package/dist/packages/sdk-ui/src/common/components/grouped-items-browser/group.d.ts +1 -1
- package/dist/packages/sdk-ui/src/common/components/menu/context-menu/menu.d.ts +1 -1
- package/dist/packages/sdk-ui/src/common/components/menu/types.d.ts +1 -1
- package/dist/packages/sdk-ui/src/common/hooks/decorators/with-lazy-loading/helpers/hooks/use-load-data-from-internal-hook.d.ts +1 -1
- package/dist/packages/sdk-ui/src/common/hooks/decorators/with-lazy-loading/with-lazy-loading.d.ts +1 -1
- package/dist/packages/sdk-ui/src/common/hooks/fusion-endpoints/use-get-data-source-fields.d.ts +1 -1
- package/dist/packages/sdk-ui/src/common/hooks/use-tracking.d.ts +1 -1
- package/dist/packages/sdk-ui/src/common/icons/arrow-collapse-icon.d.ts +5 -0
- package/dist/packages/sdk-ui/src/common/icons/double-arrow-end-icon.d.ts +1 -1
- package/dist/packages/sdk-ui/src/common-filters/common-filters-connector.d.ts +6 -4
- package/dist/packages/sdk-ui/src/common-filters/selection-utils.d.ts +2 -1
- package/dist/packages/sdk-ui/src/common-filters/use-common-filters.d.ts +3 -3
- package/dist/packages/sdk-ui/src/common-filters/utils.d.ts +1 -1
- package/dist/packages/sdk-ui/src/custom-widgets-provider/custom-widgets-provider-adapter.d.ts +1 -1
- package/dist/packages/sdk-ui/src/custom-widgets-provider/use-execute-custom-widget-query.d.ts +2 -2
- package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/components/draggable-line.d.ts +5 -1
- package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/components/draggable-widget-wrapper.d.ts +1 -1
- package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/components/resizable-columns.d.ts +5 -1
- package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/helpers.d.ts +2 -2
- package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/utils.d.ts +1 -1
- package/dist/packages/sdk-ui/src/dashboard/components/horizontal-collapse.d.ts +2 -1
- package/dist/packages/sdk-ui/src/dashboard/components/toolbar/filter-toggle.d.ts +16 -0
- package/dist/packages/sdk-ui/src/dashboard/dashboard-helpers.d.ts +1 -1
- package/dist/packages/sdk-ui/src/dashboard/dashboard.d.ts +1 -1
- package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-config-transformers.d.ts +3 -3
- package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-formatters.d.ts +1 -1
- package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-handlers.d.ts +2 -2
- package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-menu.d.ts +1 -1
- package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-types.d.ts +4 -4
- package/dist/packages/sdk-ui/src/dashboard/hooks/use-dashboard-header-toolbar.d.ts +2 -1
- package/dist/packages/sdk-ui/src/dashboard/hooks/use-jtd.d.ts +3 -2
- package/dist/packages/sdk-ui/src/dashboard/hooks/use-tabber.d.ts +2 -2
- package/dist/packages/sdk-ui/src/dashboard/index.d.ts +1 -1
- package/dist/packages/sdk-ui/src/dashboard/types.d.ts +13 -5
- package/dist/packages/sdk-ui/src/dashboard/use-composed-dashboard.d.ts +54 -11
- package/dist/packages/sdk-ui/src/decorators/component-decorators/with-tracking/error-tracker.d.ts +2 -2
- package/dist/packages/sdk-ui/src/filters/components/common/basic-input.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/common/date-range-field-button.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/criteria-filter-tile/criteria-filter-display.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/criteria-filter-tile/criteria-filter-menu.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/criteria-filter-tile/criteria-filter-operations.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/criteria-filter-tile/criteria-filter-tile.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/date-filter/date-range-filter-tile/date-range-filter-tile.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/date-filter/relative-date-filter-tile/relative-date-filter-display.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/date-filter/relative-date-filter-tile/relative-date-filter.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/base.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/calendar-select/utils.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/multi-select-item.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/searchable-multi-select.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/searchable-single-select.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/single-select-item.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/numeric-condition-section/utils.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/filter-tile-container.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/filters-panel/filter-relations-tile/filter-relations-tile.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/filters-panel/filter-relations-tile/filter-relations-tooltip.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/filters-panel/filter-relations-tile/tooltip-utils.d.ts +2 -2
- package/dist/packages/sdk-ui/src/filters/components/filters-panel/hooks/use-existing-filter-editing.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/filters-panel/hooks/use-new-filter-adding.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/icons/arrow-icon.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/icons/double-arrow-icon.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/member-filter-tile/member-filter-tile.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/unsupported-filter-tile.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/hooks/use-get-filter-members.d.ts +15 -2
- package/dist/packages/sdk-ui/src/formulas/fetch-formula.d.ts +1 -1
- package/dist/packages/sdk-ui/src/formulas/use-get-shared-formula.d.ts +2 -2
- package/dist/packages/sdk-ui/src/indicator-canvas.d.ts +2 -2
- package/dist/packages/sdk-ui/src/models/dashboard/dashboard-model-translator.d.ts +3 -3
- package/dist/packages/sdk-ui/src/models/dashboard/dashboard-model.d.ts +9 -3
- package/dist/packages/sdk-ui/src/models/dashboard/get-dashboard-model.d.ts +9 -1
- package/dist/packages/sdk-ui/src/models/dashboard/translate-dashboard-utils.d.ts +5 -5
- package/dist/packages/sdk-ui/src/models/dashboard/types.d.ts +6 -1
- package/dist/packages/sdk-ui/src/models/dashboard/use-dashboard-model/use-dasboard-model-utils.d.ts +2 -2
- package/dist/packages/sdk-ui/src/models/dashboard/use-dashboard-model/use-dashboard-model-reducer.d.ts +1 -1
- package/dist/packages/sdk-ui/src/models/dashboard/use-dashboard-model/use-dashboard-persistence.d.ts +1 -1
- package/dist/packages/sdk-ui/src/models/dashboard/use-get-dashboard-model.d.ts +1 -1
- package/dist/packages/sdk-ui/src/models/dashboard/use-get-dashboard-models.d.ts +1 -1
- package/dist/packages/sdk-ui/src/models/hierarchy/get-hierarchy-models.d.ts +1 -1
- package/dist/packages/sdk-ui/src/models/hierarchy/use-get-hierarchy-models.d.ts +1 -1
- package/dist/packages/sdk-ui/src/models/widget/get-widget-model.d.ts +2 -2
- package/dist/packages/sdk-ui/src/models/widget/widget-model-translator.d.ts +4 -4
- package/dist/packages/sdk-ui/src/models/widget/widget-model.d.ts +1 -1
- package/dist/packages/sdk-ui/src/no-results-overlay/images/index.d.ts +1 -1
- package/dist/packages/sdk-ui/src/pivot-table/formatters/data-cell-formatters/data-cell-color-formatter.d.ts +1 -1
- package/dist/packages/sdk-ui/src/pivot-table/formatters/formatter-utils.d.ts +1 -1
- package/dist/packages/sdk-ui/src/pivot-table/formatters/header-cell-formatters/header-cell-value-formatter.d.ts +1 -1
- package/dist/packages/sdk-ui/src/pivot-table/formatters/utils.d.ts +1 -1
- package/dist/packages/sdk-ui/src/pivot-table/hooks/use-apply-pivot-table-cell-events/use-apply-pivot-table-cell-events.d.ts +1 -1
- package/dist/packages/sdk-ui/src/pivot-table/hooks/use-get-pivot-table-query.d.ts +2 -2
- package/dist/packages/sdk-ui/src/pivot-table/hooks/use-render-pivot.d.ts +2 -2
- package/dist/packages/sdk-ui/src/pivot-table/sorting-utils.d.ts +1 -1
- package/dist/packages/sdk-ui/src/props.d.ts +9 -9
- package/dist/packages/sdk-ui/src/query/execute-query.d.ts +2 -2
- package/dist/packages/sdk-ui/src/query/query-result-date-formatting.d.ts +1 -1
- package/dist/packages/sdk-ui/src/query-execution/query-params-comparator.d.ts +1 -1
- package/dist/packages/sdk-ui/src/query-execution/use-execute-query-by-widget-id.d.ts +2 -2
- package/dist/packages/sdk-ui/src/sisense-chart/sisense-chart.d.ts +1 -1
- package/dist/packages/sdk-ui/src/sisense-context/custom-sisense-context-provider.d.ts +2 -2
- package/dist/packages/sdk-ui/src/sisense-context/sisense-context-provider.d.ts +1 -1
- package/dist/packages/sdk-ui/src/sisense-context/sisense-context.d.ts +1 -1
- package/dist/packages/sdk-ui/src/sisense-context/sisense-query-client-provider.d.ts +1 -1
- package/dist/packages/sdk-ui/src/table/translations/design-options.d.ts +1 -1
- package/dist/packages/sdk-ui/src/themes/legacy-design-settings.d.ts +1 -1
- package/dist/packages/sdk-ui/src/themes/theme-loader.d.ts +1 -1
- package/dist/packages/sdk-ui/src/translation/resources/en.d.ts +2 -0
- package/dist/packages/sdk-ui/src/translation/resources/index.d.ts +4 -0
- package/dist/packages/sdk-ui/src/types.d.ts +131 -21
- package/dist/packages/sdk-ui/src/widget-by-id/translate-dashboard-filters.d.ts +2 -2
- package/dist/packages/sdk-ui/src/widget-by-id/translate-panel-color-format.d.ts +1 -1
- package/dist/packages/sdk-ui/src/widget-by-id/translate-widget-data-options.d.ts +2 -2
- package/dist/packages/sdk-ui/src/widget-by-id/translate-widget-drilldown-options.d.ts +1 -1
- package/dist/packages/sdk-ui/src/widget-by-id/translate-widget-style-options.d.ts +2 -2
- package/dist/packages/sdk-ui/src/widget-by-id/types.d.ts +7 -3
- package/dist/packages/sdk-ui/src/widget-by-id/utils.d.ts +4 -4
- package/dist/packages/sdk-ui/src/widgets/common/drilldown-breadcrumbs/use-buttons.d.ts +1 -1
- package/dist/packages/sdk-ui/src/widgets/common/drilldown-utils.d.ts +1 -1
- package/dist/packages/sdk-ui/src/widgets/common/use-drilldown-core.d.ts +1 -1
- package/dist/packages/sdk-ui/src/widgets/hooks/use-drilldown.d.ts +3 -3
- package/dist/packages/sdk-ui/src/widgets/hooks/use-with-drilldown.d.ts +1 -1
- package/dist/{types-DhvOgfXa.cjs → types-CevYjGN4.cjs} +1 -1
- package/dist/{types-Dxieyr4A.js → types-DVAfvbpR.js} +1 -1
- package/dist/use-common-filters-BXdnB4GI.cjs +845 -0
- package/dist/{use-common-filters-DJyYvdev.js → use-common-filters-DIF4c8WP.js} +63679 -63533
- package/dist/widget-composer-BB5Jrgae.js +1430 -0
- package/dist/widget-composer-C0lZpwN6.cjs +428 -0
- package/package.json +9 -9
- package/dist/derive-chart-family-BauaWEEc.cjs +0 -170
- package/dist/execute-query-uQ2s1ZNz.cjs +0 -1
- package/dist/packages/sdk-ui/src/analytics-composer/new-nlq-translator/common.d.ts +0 -40
- package/dist/packages/sdk-ui/src/analytics-composer/new-nlq-translator/index.d.ts +0 -2
- package/dist/packages/sdk-ui/src/analytics-composer/new-nlq-translator/translate-dimensions.d.ts +0 -3
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/hooks/use-calendar-heatmap-navigation.d.ts +0 -33
- package/dist/packages/sdk-ui/src/index-typedoc.d.ts +0 -31
- package/dist/use-common-filters-Qj9249s0.cjs +0 -845
- package/dist/widget-composer-azihIMsw.js +0 -949
- package/dist/widget-composer-omIEhWNL.cjs +0 -428
- /package/dist/packages/sdk-ui/src/analytics-composer/{new-nlq-translator → nlq-v3-translator}/translate-query-to-jaql.d.ts +0 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { Filter, FilterRelations, JSONArray, JSONValue, Measure } from '@sisense/sdk-data';
|
|
2
|
+
import { DataSchemaContext, NlqTranslationInput } from '../types';
|
|
3
|
+
export declare const ATTRIBUTE_PREFIX = "DM.";
|
|
4
|
+
export type ArgType = 'string' | 'string[]' | 'number' | 'number[]' | 'boolean' | 'Attribute' | 'Attribute[]' | 'Measure' | 'BaseMeasure' | 'Measure[]' | 'Filter' | 'Filter[]' | 'FilterRelationsNode' | 'DateDimension' | 'LevelAttribute' | 'Measure | number' | 'Date | string' | 'string | number' | 'BaseFilterConfig' | 'MembersFilterConfig' | 'CustomFormulaContext' | 'any';
|
|
5
|
+
export interface ArgSchema {
|
|
6
|
+
type: ArgType;
|
|
7
|
+
required: boolean;
|
|
8
|
+
}
|
|
9
|
+
export type Arg = string | number | FunctionCall | string[];
|
|
10
|
+
export type ProcessedArg = unknown;
|
|
11
|
+
export type QueryElement = Filter | FilterRelations | Measure;
|
|
12
|
+
export type FactoryFunction = (...args: unknown[]) => QueryElement;
|
|
13
|
+
export type FunctionCall = {
|
|
14
|
+
function: string;
|
|
15
|
+
args: Arg[];
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Context object passed to all custom processors containing runtime information
|
|
19
|
+
* needed for processing.
|
|
20
|
+
*/
|
|
21
|
+
export interface FunctionContext extends DataSchemaContext {
|
|
22
|
+
/** Path prefix for error messages (e.g., 'args[0].function') */
|
|
23
|
+
pathPrefix: string;
|
|
24
|
+
}
|
|
25
|
+
export interface ArgContext extends FunctionContext {
|
|
26
|
+
argSchema: ArgSchema;
|
|
27
|
+
}
|
|
28
|
+
export type DimensionsInput = NlqTranslationInput<JSONArray, DataSchemaContext>;
|
|
29
|
+
export type MeasuresInput = NlqTranslationInput<JSONArray, DataSchemaContext>;
|
|
30
|
+
export type FiltersInput = NlqTranslationInput<JSONArray, DataSchemaContext>;
|
|
31
|
+
export type HighlightsInput = NlqTranslationInput<JSONArray, DataSchemaContext>;
|
|
32
|
+
export type MeasuresFunctionCallInput = NlqTranslationInput<FunctionCall[], DataSchemaContext>;
|
|
33
|
+
export type FiltersFunctionCallInput = NlqTranslationInput<FunctionCall[], DataSchemaContext>;
|
|
34
|
+
export type HighlightsFunctionCallInput = NlqTranslationInput<FunctionCall[], DataSchemaContext>;
|
|
35
|
+
export type NodeInput = NlqTranslationInput<FunctionCall, FunctionContext>;
|
|
36
|
+
export type ArgInput = NlqTranslationInput<Arg, ArgContext>;
|
|
37
|
+
/**
|
|
38
|
+
* Custom processor function signature.
|
|
39
|
+
*/
|
|
40
|
+
export type CustomFunctionProcessor = (processedArgs: ProcessedArg[], context: FunctionContext) => void;
|
|
41
|
+
export declare function isFunctionCall(value: JSONValue): value is FunctionCall;
|
|
42
|
+
export declare function isFunctionCallArray(value: JSONArray): value is FunctionCall[];
|
|
43
|
+
export declare function isFilterElement(arg: QueryElement): arg is Filter;
|
|
44
|
+
export declare function isFilterRelationsElement(arg: QueryElement): arg is FilterRelations;
|
|
45
|
+
export declare function isMeasureElement(arg: QueryElement): arg is Measure;
|
|
46
|
+
export declare function isStringArray(value: JSONArray): value is string[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { DataSourceField, MetadataItem, MetadataItemJaql } from '@sisense/sdk-data';
|
|
2
|
+
import { ChartRecommendations, ExpandedQueryModel, SimpleChartRecommendations, SimpleQueryModel } from '../types.js';
|
|
3
3
|
/**
|
|
4
4
|
* A class that translates ExpandedQueryModel (Raw JAQL+Chart Recommendations)
|
|
5
5
|
* to SimpleQueryModel (Simple JAQL+Simple Chart Options) and vice versa.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ChartDataOptions, ChartStyleOptions } from '../types';
|
|
3
|
-
import { ExecuteQueryParams, ExecutePivotQueryParams } from '../query-execution';
|
|
4
|
-
import { JSONArray, MetadataItem } from '@sisense/sdk-data';
|
|
5
|
-
import { DynamicChartType } from '../chart-options-processor/translations/types.js';
|
|
1
|
+
import { JaqlDataSourceForDto, JSONArray, JSONValue, MetadataItem } from '@sisense/sdk-data';
|
|
6
2
|
import { AnyColumn } from '../chart-data-options/types.js';
|
|
7
3
|
import { DashboardProps } from '../dashboard/types.js';
|
|
4
|
+
import { ChartWidgetProps, PivotTableWidgetProps, WidgetProps } from '../props';
|
|
5
|
+
import { ExecutePivotQueryParams, ExecuteQueryParams } from '../query-execution';
|
|
6
|
+
import { ChartDataOptions, ChartStyleOptions } from '../types';
|
|
7
|
+
import { DynamicChartType } from '../chart-options-processor/translations/types.js';
|
|
8
8
|
type Stringify<T> = {
|
|
9
9
|
[K in keyof T as `${K & string}String`]: string;
|
|
10
10
|
};
|
|
@@ -152,6 +152,7 @@ export type WidgetCodeConfig = BaseCodeConfig & {
|
|
|
152
152
|
*/
|
|
153
153
|
export type ClientSideWidgetCodeParams = BaseCodeConfig & {
|
|
154
154
|
widgetProps: WidgetProps;
|
|
155
|
+
removeDefaultProps?: boolean;
|
|
155
156
|
};
|
|
156
157
|
/**
|
|
157
158
|
* By ID Widget Code Params
|
|
@@ -305,6 +306,15 @@ export type NormalizedTable = {
|
|
|
305
306
|
name: string;
|
|
306
307
|
columns: NormalizedField[];
|
|
307
308
|
};
|
|
309
|
+
/**
|
|
310
|
+
* NLQ generic input with context for translation
|
|
311
|
+
*
|
|
312
|
+
* @internal
|
|
313
|
+
*/
|
|
314
|
+
export type NlqTranslationInput<DataType, ContextType> = {
|
|
315
|
+
data: DataType;
|
|
316
|
+
context: ContextType;
|
|
317
|
+
};
|
|
308
318
|
/**
|
|
309
319
|
* Response JSON generated by the new NLQ API.
|
|
310
320
|
*
|
|
@@ -317,15 +327,66 @@ export type NlqResponseJSON = {
|
|
|
317
327
|
highlights?: JSONArray;
|
|
318
328
|
};
|
|
319
329
|
/**
|
|
320
|
-
*
|
|
330
|
+
* Data schema context for translation
|
|
321
331
|
*
|
|
322
332
|
* @internal
|
|
323
333
|
*/
|
|
324
|
-
export
|
|
334
|
+
export interface DataSchemaContext {
|
|
335
|
+
/** The data source being used for the query */
|
|
336
|
+
dataSource: JaqlDataSourceForDto;
|
|
337
|
+
/** Available tables for attribute resolution */
|
|
338
|
+
tables: NormalizedTable[];
|
|
339
|
+
}
|
|
340
|
+
/**
|
|
341
|
+
* Query input for translation
|
|
342
|
+
*
|
|
343
|
+
* @internal
|
|
344
|
+
*/
|
|
345
|
+
export type QueryInput = NlqTranslationInput<NlqResponseJSON, DataSchemaContext>;
|
|
346
|
+
/**
|
|
347
|
+
* Context information for error generation
|
|
348
|
+
*
|
|
349
|
+
* @internal
|
|
350
|
+
*/
|
|
351
|
+
export type NlqTranslationErrorContext = {
|
|
352
|
+
/** The category of the query element that failed (dimensions, measures, filters, highlights) */
|
|
353
|
+
category: 'dimensions' | 'measures' | 'filters' | 'highlights';
|
|
354
|
+
/** The index of the element within its category array */
|
|
355
|
+
index: number;
|
|
356
|
+
/** The complete original input that caused the error */
|
|
357
|
+
input: JSONValue;
|
|
358
|
+
};
|
|
359
|
+
/**
|
|
360
|
+
* Structured error information for translation failures.
|
|
361
|
+
*
|
|
362
|
+
* @internal
|
|
363
|
+
*/
|
|
364
|
+
export type NlqTranslationError = NlqTranslationErrorContext & {
|
|
365
|
+
/** Human-readable error message describing what went wrong */
|
|
366
|
+
message: string;
|
|
367
|
+
};
|
|
368
|
+
/**
|
|
369
|
+
* Structured error response format for translation failures.
|
|
370
|
+
*
|
|
371
|
+
* @internal
|
|
372
|
+
*/
|
|
373
|
+
export type NlqTranslationErrorResult = {
|
|
374
|
+
success: false;
|
|
375
|
+
errors: NlqTranslationError[];
|
|
376
|
+
};
|
|
377
|
+
/**
|
|
378
|
+
* Success response format for translation operations.
|
|
379
|
+
*
|
|
380
|
+
* @internal
|
|
381
|
+
*/
|
|
382
|
+
export type NlqTranslationSuccessResult<T> = {
|
|
325
383
|
success: true;
|
|
326
384
|
data: T;
|
|
327
|
-
} | {
|
|
328
|
-
success: false;
|
|
329
|
-
errors: string[];
|
|
330
385
|
};
|
|
386
|
+
/**
|
|
387
|
+
* Represents the result of a translation operation that can either succeed with data or fail with errors.
|
|
388
|
+
*
|
|
389
|
+
* @internal
|
|
390
|
+
*/
|
|
391
|
+
export type NlqTranslationResult<T> = NlqTranslationSuccessResult<T> | NlqTranslationErrorResult;
|
|
331
392
|
export {};
|
package/dist/packages/sdk-ui/src/analytics-composer/widget/chart-options/get-widget-options.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ChartDataOptions, ChartType, ChartStyleOptions } from '../../../types';
|
|
2
1
|
import { MetadataItem } from '@sisense/sdk-data';
|
|
3
2
|
import { AxesMapping, ChartRecommendations, ExpandedQueryModel } from '../../../analytics-composer/types';
|
|
3
|
+
import { ChartDataOptions, ChartStyleOptions, ChartType } from '../../../types';
|
|
4
4
|
/**
|
|
5
5
|
* @internal
|
|
6
6
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WidgetProps } from '../../props';
|
|
2
|
-
import { ByIdWidgetCodeParams, ClientSideWidgetCodeParams,
|
|
2
|
+
import { ByIdWidgetCodeParams, ClientSideWidgetCodeParams, TemplateKeyMapByWidgetType, UiFramework } from '../types.js';
|
|
3
3
|
export declare const toWidgetCodeById: ({ dashboardOid, widgetOid, uiFramework, chartType, includeChart, }: ByIdWidgetCodeParams) => string;
|
|
4
|
-
export declare const getWidgetCode: (widgetProps: WidgetProps, uiFramework: UiFramework, templateKeyMap: TemplateKeyMapByWidgetType) => string;
|
|
5
|
-
export declare const toWidgetCodeClientSide: ({ widgetProps, uiFramework, }: ClientSideWidgetCodeParams) => string;
|
|
4
|
+
export declare const getWidgetCode: (widgetProps: WidgetProps, uiFramework: UiFramework, templateKeyMap: TemplateKeyMapByWidgetType, removeDefaultProps?: boolean) => string;
|
|
5
|
+
export declare const toWidgetCodeClientSide: ({ widgetProps, uiFramework, removeDefaultProps, }: ClientSideWidgetCodeParams) => string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { WidgetProps } from '../../
|
|
1
|
+
import { WidgetProps } from '../../props';
|
|
2
2
|
import { ExpandedQueryModel, WidgetPropsConfig } from '../types.js';
|
|
3
3
|
export declare const toWidgetPropsFromQuery: (queryModel: ExpandedQueryModel, config?: WidgetPropsConfig) => WidgetProps | undefined;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import { type DataSource, DataSourceField } from '@sisense/sdk-data';
|
|
1
2
|
import { HttpClient } from '@sisense/sdk-rest-client';
|
|
2
3
|
import { FeatureCollection as GeoJsonFeatureCollection } from 'geojson';
|
|
3
|
-
import { DataSourceField, type DataSource } from '@sisense/sdk-data';
|
|
4
|
-
import { HierarchyDto, SharedFormulaDto, WidgetDto } from '../widget-by-id/types';
|
|
5
|
-
import type { DashboardDto } from './types/dashboard-dto';
|
|
6
|
-
import { TranslatableError } from '../translation/translatable-error';
|
|
7
4
|
import { PaletteDto } from '../api/types/palette-dto';
|
|
8
5
|
import { GetHierarchiesOptions } from '../models/hierarchy/types';
|
|
6
|
+
import { TranslatableError } from '../translation/translatable-error';
|
|
7
|
+
import { HierarchyDto, SharedFormulaDto, WidgetDto } from '../widget-by-id/types';
|
|
8
|
+
import type { DashboardDto } from './types/dashboard-dto';
|
|
9
9
|
type GetDashboardsOptions = {
|
|
10
10
|
searchByTitle?: string;
|
|
11
11
|
fields?: string[];
|
|
@@ -35,11 +35,16 @@ export declare class RestApi {
|
|
|
35
35
|
layout?: import("./types/dashboard-dto").LayoutDto | undefined;
|
|
36
36
|
style?: import("./types/dashboard-dto").DashboardStyleDto | undefined;
|
|
37
37
|
settings?: import("./types/dashboard-dto").DashboardSettings | undefined;
|
|
38
|
+
userAuth?: import("../utils/utility-types").AnyObject | undefined;
|
|
38
39
|
} & import("../utils/utility-types").AnyObject)[]>;
|
|
39
40
|
/**
|
|
40
41
|
* Get a specific dashboard
|
|
41
42
|
*/
|
|
42
43
|
getDashboard: (dashboardOid: string, options?: GetDashboardOptions) => Promise<DashboardDto | undefined>;
|
|
44
|
+
/**
|
|
45
|
+
* Get a specific dashboard using the legacy API version
|
|
46
|
+
*/
|
|
47
|
+
getDashboardLegacy: (dashboardOid: string) => Promise<DashboardDto | undefined>;
|
|
43
48
|
/**
|
|
44
49
|
* Get all widgets of a specific dashboard
|
|
45
50
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { WidgetDto } from '../../widget-by-id/types';
|
|
2
1
|
import { FilterJaql, FilterRelationsModel, FilterRelationsModelNode, JaqlDataSource } from '@sisense/sdk-data';
|
|
3
2
|
import { AnyObject } from '../../utils/utility-types';
|
|
3
|
+
import { WidgetDto } from '../../widget-by-id/types';
|
|
4
4
|
/** @internal */
|
|
5
5
|
export type LayoutDto = {
|
|
6
6
|
columns?: {
|
|
@@ -67,5 +67,6 @@ export type DashboardDto = {
|
|
|
67
67
|
layout?: LayoutDto;
|
|
68
68
|
style?: DashboardStyleDto;
|
|
69
69
|
settings?: DashboardSettings;
|
|
70
|
+
userAuth?: AnyObject;
|
|
70
71
|
} & AnyObject;
|
|
71
72
|
export {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { HttpClient } from '@sisense/sdk-rest-client';
|
|
2
|
-
import { QueryClient } from '@sisense/sdk-query-client';
|
|
3
1
|
import { DataSource } from '@sisense/sdk-data';
|
|
4
2
|
import { PivotClient } from '@sisense/sdk-pivot-client';
|
|
3
|
+
import { QueryClient } from '@sisense/sdk-query-client';
|
|
4
|
+
import { HttpClient } from '@sisense/sdk-rest-client';
|
|
5
5
|
import { TrackingEventDetails } from '@sisense/sdk-tracking';
|
|
6
|
+
import { SisenseContextProviderProps } from '../props';
|
|
6
7
|
import { DateConfig } from '../query/date-formats';
|
|
8
|
+
import { LoadingIndicatorConfig, TranslationConfig } from '../types';
|
|
7
9
|
import { AppSettings } from './settings/settings';
|
|
8
|
-
import { TranslationConfig, LoadingIndicatorConfig } from '../types';
|
|
9
|
-
import { SisenseContextProviderProps } from '../props';
|
|
10
10
|
/**
|
|
11
11
|
* Application configuration
|
|
12
12
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Attribute,
|
|
1
|
+
import { Attribute, DataSource, Filter, FilterRelationsJaql, Measure, QueryResultData } from '@sisense/sdk-data';
|
|
2
2
|
import { ClientApplication } from './app/client-application.js';
|
|
3
|
-
import { executeQuery as executeQueryFunction } from './query/execute-query.js';
|
|
4
3
|
import { BoxplotChartCustomDataOptions, BoxplotChartDataOptionsInternal } from './chart-data-options/types.js';
|
|
4
|
+
import { executeQuery as executeQueryFunction } from './query/execute-query.js';
|
|
5
5
|
/**
|
|
6
6
|
* Processes box whisker data and outliers data to combine them into a single data set.
|
|
7
7
|
*
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { QueryResultData } from '@sisense/sdk-data';
|
|
2
|
+
import { QueryExecutionConfig } from '@sisense/sdk-query-client';
|
|
1
3
|
import { ClientApplication } from '../../app/client-application';
|
|
2
4
|
import { QueryDescription } from '../../query/execute-query';
|
|
3
5
|
import { ChartType } from '../../types';
|
|
4
|
-
import { QueryResultData } from '@sisense/sdk-data';
|
|
5
|
-
import { QueryExecutionConfig } from '@sisense/sdk-query-client';
|
|
6
6
|
import { ChartDataOptionsInternal } from '../../chart-data-options/types';
|
|
7
7
|
export type LoadDataFunction = (options: {
|
|
8
8
|
app: ClientApplication;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { Data, DataSource } from '@sisense/sdk-data';
|
|
1
2
|
import { ChartDataOptionsInternal } from '../../chart-data-options/types';
|
|
2
3
|
import { ChartData } from '../../chart-data/types';
|
|
3
4
|
import { DesignOptions } from '../../chart-options-processor/translations/types';
|
|
4
5
|
import { ChartProps } from '../../props';
|
|
5
6
|
import { ChartType } from '../../types';
|
|
6
|
-
import { Data, DataSource } from '@sisense/sdk-data';
|
|
7
7
|
import { ChartRendererProps } from '../types';
|
|
8
8
|
type UnpreparedInternalChartProps = {
|
|
9
9
|
dataSet?: DataSource | Data;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Attribute, Data, DataSource, Filter, FilterRelations, Measure } from '@sisense/sdk-data';
|
|
2
1
|
import { Dispatch, SetStateAction } from 'react';
|
|
2
|
+
import { Attribute, Data, DataSource, Filter, FilterRelations, Measure } from '@sisense/sdk-data';
|
|
3
3
|
import { ChartDataOptionsInternal } from '../../chart-data-options/types';
|
|
4
|
-
import { ChartType } from '../../types';
|
|
5
4
|
import { DataColumnNamesMapping } from '../../chart-data-options/validate-data-options';
|
|
5
|
+
import { ChartType } from '../../types';
|
|
6
6
|
import { LoadDataFunction } from './get-load-data-function';
|
|
7
7
|
type DataSet = DataSource | Data | undefined;
|
|
8
8
|
type UseSyncedDataProps = {
|
package/dist/packages/sdk-ui/src/chart/restructured-charts/areamap-chart/renderer/areamap.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { AreamapChartDataOptionsInternal } from '../../../../chart-data-options/types.js';
|
|
3
3
|
import { ChartData } from '../../../../chart-data/types.js';
|
|
4
|
-
import { AreamapDataPointEventHandler } from '../../../../props.js';
|
|
5
4
|
import { ChartRendererProps } from '../../../../chart/types.js';
|
|
5
|
+
import { AreamapDataPointEventHandler } from '../../../../props.js';
|
|
6
6
|
import { AreamapChartDesignOptions, AreamapData } from '../types.js';
|
|
7
7
|
export type AreamapProps = {
|
|
8
8
|
chartData: AreamapData;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ClientApplication } from '../../../app/client-application';
|
|
2
|
-
import { QueryDescription } from '../../../query/execute-query';
|
|
3
1
|
import { QueryResultData } from '@sisense/sdk-data';
|
|
4
2
|
import { QueryExecutionConfig } from '@sisense/sdk-query-client';
|
|
3
|
+
import { ClientApplication } from '../../../app/client-application';
|
|
4
|
+
import { QueryDescription } from '../../../query/execute-query';
|
|
5
5
|
/**
|
|
6
6
|
* Load data by a regular single query execution.
|
|
7
7
|
*/
|
|
@@ -39,6 +39,8 @@ export declare const CALENDAR_HEATMAP_DEFAULTS: {
|
|
|
39
39
|
readonly WEEKEND_HIDE_VALUES: true;
|
|
40
40
|
/** Default start of week */
|
|
41
41
|
readonly START_OF_WEEK: "sunday";
|
|
42
|
+
/** Show pagination controls by default */
|
|
43
|
+
readonly SHOW_PAGINATION: true;
|
|
42
44
|
};
|
|
43
45
|
/**
|
|
44
46
|
* Calendar heatmap color scheme configuration
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Attribute, Measure } from '@sisense/sdk-data';
|
|
2
2
|
import { CalendarHeatmapChartDataOptions, CalendarHeatmapChartDataOptionsInternal } from '../../../../../chart-data-options/types';
|
|
3
|
-
import { ChartDataOptions } from '../../../../../types';
|
|
4
3
|
import { ChartDataOptionsInternal } from '../../../../../chart-data-options/types';
|
|
4
|
+
import { ChartDataOptions } from '../../../../../types';
|
|
5
5
|
/**
|
|
6
6
|
* Translates calendar heatmap chart data options from user format to internal format
|
|
7
7
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DataTable } from '../../../../chart-data-processor/table-processor';
|
|
2
1
|
import { CalendarHeatmapChartDataOptionsInternal } from '../../../../chart-data-options/types';
|
|
2
|
+
import { DataTable } from '../../../../chart-data-processor/table-processor';
|
|
3
3
|
import { ChartData } from '../../../../chart-data/types';
|
|
4
4
|
export type CalendarHeatmapDataValue = {
|
|
5
5
|
date: Date;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CalendarHeatmapStyleOptions, ChartStyleOptions } from '../../../../types';
|
|
2
1
|
import { DesignOptions } from '../../../../chart-options-processor/translations/types';
|
|
2
|
+
import { CalendarHeatmapStyleOptions, ChartStyleOptions } from '../../../../types';
|
|
3
3
|
/**
|
|
4
4
|
* Translates calendar heatmap style options to design options
|
|
5
5
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CalendarHeatmapChartDesignOptions } from '../../../../../../../chart-options-processor/translations/design-options.js';
|
|
2
2
|
import { DateFormatter } from '../../../../../../../common/formatters/create-date-formatter.js';
|
|
3
|
+
import { CalendarHeatmapChartData } from '../../../data.js';
|
|
3
4
|
import { CalendarDayOfWeek } from '../../../utils/calendar-utils.js';
|
|
4
|
-
import { CalendarHeatmapChartDesignOptions } from '../../../../../../../chart-options-processor/translations/design-options.js';
|
|
5
5
|
/**
|
|
6
6
|
* Represents a calendar chart data point for Highcharts
|
|
7
7
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BuildContext } from '../../../types.js';
|
|
2
1
|
import { HighchartsOptionsInternal } from '../../../../../../chart-options-processor/chart-options-service.js';
|
|
2
|
+
import { BuildContext } from '../../../types.js';
|
|
3
3
|
/**
|
|
4
4
|
* Prepares the Highcharts's tooltip options for calendar heatmap
|
|
5
5
|
*
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { HighchartsOptionsInternal } from '../../../../../chart-options-processor/chart-options-service';
|
|
3
|
-
import { MonthInfo } from './helpers/view-helpers.js';
|
|
4
|
-
import { CalendarHeatmapViewType, TextStyle } from '../../../../../types';
|
|
5
3
|
import { ContainerSize } from '../../../../../dynamic-size-container/dynamic-size-container';
|
|
4
|
+
import { CalendarHeatmapViewType, TextStyle } from '../../../../../types';
|
|
5
|
+
import { MonthData, MonthInfo } from './helpers/view-helpers.js';
|
|
6
6
|
export declare const ChartsContainer: import("@emotion/styled").StyledComponent<{
|
|
7
7
|
theme?: import("@emotion/react").Theme | undefined;
|
|
8
8
|
as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
|
|
@@ -22,7 +22,7 @@ export declare const ChartTitle: import("@emotion/styled").StyledComponent<{
|
|
|
22
22
|
interface CalendarHeatmapChartsGridProps {
|
|
23
23
|
monthCharts: (HighchartsOptionsInternal | null)[];
|
|
24
24
|
availableMonths: MonthInfo[];
|
|
25
|
-
|
|
25
|
+
currentMonth: MonthData;
|
|
26
26
|
viewType: CalendarHeatmapViewType;
|
|
27
27
|
size: ContainerSize;
|
|
28
28
|
monthLabels?: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { HighchartsBasedChartRendererProps } from '../../highcharts-based-chart-renderer/highcharts-based-chart-renderer.js';
|
|
3
2
|
import { ChartRendererProps } from '../../../../../chart/types.js';
|
|
4
3
|
import { Themable } from '../../../../../theme-provider/types.js';
|
|
4
|
+
import { HighchartsBasedChartRendererProps } from '../../highcharts-based-chart-renderer/highcharts-based-chart-renderer.js';
|
|
5
5
|
export declare const ChartRootContainer: import("@emotion/styled").StyledComponent<{
|
|
6
6
|
theme?: import("@emotion/react").Theme | undefined;
|
|
7
7
|
as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { MonthInfo } from '../helpers/view-helpers.js';
|
|
3
|
-
import { CalendarHeatmapViewType } from '../../../../../../types.js';
|
|
4
2
|
import { Themable } from '../../../../../../theme-provider/types.js';
|
|
3
|
+
import { CalendarHeatmapViewType, TextStyle } from '../../../../../../types.js';
|
|
4
|
+
import { MonthData, MonthInfo } from '../helpers/view-helpers.js';
|
|
5
5
|
export declare const PaginationContainer: import("@emotion/styled").StyledComponent<{
|
|
6
6
|
theme?: import("@emotion/react").Theme | undefined;
|
|
7
7
|
as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
|
|
@@ -17,15 +17,11 @@ export declare const ViewDisplay: import("@emotion/styled").StyledComponent<{
|
|
|
17
17
|
as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
|
|
18
18
|
} & Themable, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
19
19
|
interface CalendarPaginationProps {
|
|
20
|
-
|
|
20
|
+
value: MonthData;
|
|
21
21
|
availableMonths: MonthInfo[];
|
|
22
22
|
viewType: CalendarHeatmapViewType;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
onGoToNext: () => void;
|
|
26
|
-
onGoToLast: () => void;
|
|
27
|
-
onGoToPreviousGroup?: () => void;
|
|
28
|
-
onGoToNextGroup?: () => void;
|
|
23
|
+
onChange: (month: MonthData) => void;
|
|
24
|
+
labelStyle?: TextStyle;
|
|
29
25
|
}
|
|
30
26
|
export declare const CalendarPagination: React.FC<CalendarPaginationProps>;
|
|
31
27
|
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { MonthInfo } from '../helpers/view-helpers.js';
|
|
2
1
|
import { CalendarHeatmapViewType } from '../../../../../../types.js';
|
|
3
|
-
|
|
2
|
+
import { MonthData, MonthInfo } from '../helpers/view-helpers.js';
|
|
3
|
+
export declare function formatViewTitle(availableMonths: MonthInfo[], currentMonth: MonthData, viewType: CalendarHeatmapViewType): string;
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import { MonthInfo } from './view-helpers.js';
|
|
2
1
|
import { CalendarHeatmapChartData } from '../../data.js';
|
|
3
2
|
export declare function filterChartDataForMonth(chartData: CalendarHeatmapChartData, targetYear: number, targetMonth: number): CalendarHeatmapChartData;
|
|
4
|
-
export declare function filterChartDataForMonths(chartData: CalendarHeatmapChartData, months: MonthInfo[]): CalendarHeatmapChartData;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CalendarHeatmapViewType } from '../../../../../../types.js';
|
|
2
1
|
import { ContainerSize } from '../../../../../../dynamic-size-container/dynamic-size-container';
|
|
2
|
+
import { CalendarHeatmapViewType } from '../../../../../../types.js';
|
|
3
3
|
export interface CalendarSize extends ContainerSize {
|
|
4
4
|
cellSize: number;
|
|
5
5
|
}
|
|
@@ -1,16 +1,33 @@
|
|
|
1
|
-
import { CalendarHeatmapChartData } from '../../data';
|
|
2
1
|
import { CalendarHeatmapViewType } from '../../../../../../types';
|
|
2
|
+
import { CalendarHeatmapChartData } from '../../data';
|
|
3
3
|
import { CalendarSize } from './sizing-helpers';
|
|
4
|
-
export interface
|
|
4
|
+
export interface MonthData {
|
|
5
5
|
year: number;
|
|
6
6
|
month: number;
|
|
7
|
+
}
|
|
8
|
+
export interface MonthInfo extends MonthData {
|
|
7
9
|
monthName: string;
|
|
8
10
|
}
|
|
11
|
+
/**
|
|
12
|
+
* Creates a Date from MonthData
|
|
13
|
+
*/
|
|
14
|
+
export declare function convertMonthDataToDate(monthData: MonthData): Date;
|
|
15
|
+
/**
|
|
16
|
+
* Creates a MonthData from a Date
|
|
17
|
+
*/
|
|
18
|
+
export declare function convertDateToMonthData(date: Date): MonthData;
|
|
19
|
+
/**
|
|
20
|
+
* Compares two MonthData objects chronologically
|
|
21
|
+
* @returns negative if a < b, positive if a > b, zero if equal
|
|
22
|
+
*/
|
|
23
|
+
export declare function compareMonthData(a: MonthData, b: MonthData): number;
|
|
9
24
|
export declare function shouldUseShortMonthNames(calendarSize: CalendarSize): boolean;
|
|
10
|
-
export declare function
|
|
25
|
+
export declare function generateAvailableMonthsFromData(chartData: CalendarHeatmapChartData, monthDateFormatter: (date: Date) => string): MonthInfo[];
|
|
26
|
+
export declare function getAvailableMonths(chartData: CalendarHeatmapChartData, dateFormatter: (date: Date, format: string) => string, useShortMonthNames?: boolean, initialMonth?: MonthData, viewType?: CalendarHeatmapViewType): MonthInfo[];
|
|
27
|
+
export declare function getInitialViewIndex(availableMonths: MonthInfo[], initialDate?: Date): number;
|
|
11
28
|
export declare function getMonthsPerView(viewType: CalendarHeatmapViewType): number;
|
|
12
29
|
export declare function getGridLayout(viewType: CalendarHeatmapViewType): {
|
|
13
30
|
columns: string;
|
|
14
31
|
rows: string;
|
|
15
32
|
};
|
|
16
|
-
export declare function getDisplayMonths(availableMonths: MonthInfo[],
|
|
33
|
+
export declare function getDisplayMonths(availableMonths: MonthInfo[], currentMonth: MonthData, viewType: CalendarHeatmapViewType): MonthInfo[];
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export { useCalendarHeatmapNavigation } from './use-calendar-heatmap-navigation.js';
|
|
2
1
|
export { useCalendarHeatmapChartOptions } from './use-calendar-heatmap-chart-options.js';
|
|
3
|
-
export
|
|
2
|
+
export { useCalendarHeatmapPagination } from './use-calendar-heatmap-pagination.js';
|
|
4
3
|
export type { UseCalendarHeatmapChartOptionsParams } from './use-calendar-heatmap-chart-options.js';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { CalendarHeatmapChartDataOptionsInternal } from '../../../../../../chart-data-options/types';
|
|
2
|
+
import { HighchartsOptionsInternal } from '../../../../../../chart-options-processor/chart-options-service';
|
|
2
3
|
import { CalendarHeatmapChartDesignOptions } from '../../../../../../chart-options-processor/translations/design-options';
|
|
3
4
|
import { BeforeRenderHandler } from '../../../../../../props';
|
|
4
|
-
import {
|
|
5
|
-
import { CalendarSize } from '../helpers/sizing-helpers.js';
|
|
5
|
+
import { CalendarHeatmapChartEventProps } from '../../../../../../props.jsx';
|
|
6
6
|
import { CalendarHeatmapViewType } from '../../../../../../types.js';
|
|
7
|
-
import { HighchartsOptionsInternal } from '../../../../../../chart-options-processor/chart-options-service';
|
|
8
7
|
import { CalendarHeatmapChartData } from '../../data.js';
|
|
9
|
-
import {
|
|
8
|
+
import { CalendarSize } from '../helpers/sizing-helpers.js';
|
|
9
|
+
import { MonthData, MonthInfo } from '../helpers/view-helpers.js';
|
|
10
10
|
export interface UseCalendarHeatmapChartOptionsParams {
|
|
11
11
|
chartData: CalendarHeatmapChartData;
|
|
12
12
|
dataOptions: CalendarHeatmapChartDataOptionsInternal;
|
|
13
13
|
designOptions: CalendarHeatmapChartDesignOptions;
|
|
14
14
|
availableMonths: MonthInfo[];
|
|
15
|
-
|
|
15
|
+
currentMonth: MonthData;
|
|
16
16
|
viewType: CalendarHeatmapViewType;
|
|
17
17
|
chartSize: CalendarSize;
|
|
18
18
|
eventHandlers: Pick<CalendarHeatmapChartEventProps, 'onDataPointClick' | 'onDataPointContextMenu' | 'onDataPointsSelected'>;
|
|
@@ -30,7 +30,7 @@ export interface UseCalendarHeatmapChartOptionsParams {
|
|
|
30
30
|
* @param params.dataOptions - Internal data options configuration
|
|
31
31
|
* @param params.designOptions - Design and styling options for the chart
|
|
32
32
|
* @param params.availableMonths - Array of all available months
|
|
33
|
-
* @param params.
|
|
33
|
+
* @param params.currentMonth - Current month
|
|
34
34
|
* @param params.viewType - View type that determines how many months to display
|
|
35
35
|
* @param params.chartSizes - Array of size configurations for each chart
|
|
36
36
|
* @param params.eventHandlers - Event handlers for data point interactions
|
|
@@ -44,7 +44,7 @@ export interface UseCalendarHeatmapChartOptionsParams {
|
|
|
44
44
|
* dataOptions,
|
|
45
45
|
* designOptions,
|
|
46
46
|
* availableMonths,
|
|
47
|
-
*
|
|
47
|
+
* currentMonth,
|
|
48
48
|
* viewType,
|
|
49
49
|
* chartSize,
|
|
50
50
|
* eventHandlers: { onDataPointClick: handleClick },
|
|
@@ -52,4 +52,4 @@ export interface UseCalendarHeatmapChartOptionsParams {
|
|
|
52
52
|
* });
|
|
53
53
|
* ```
|
|
54
54
|
*/
|
|
55
|
-
export declare function useCalendarHeatmapChartOptions({ chartData, dataOptions, designOptions, availableMonths,
|
|
55
|
+
export declare function useCalendarHeatmapChartOptions({ chartData, dataOptions, designOptions, availableMonths, currentMonth, viewType, chartSize, eventHandlers, onBeforeRender, }: UseCalendarHeatmapChartOptionsParams): HighchartsOptionsInternal[];
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { CalendarHeatmapChartData } from '../../data.js';
|
|
2
|
+
import { MonthData } from '../helpers/view-helpers.js';
|
|
3
|
+
type UseCalendarHeatmapPaginationParams = {
|
|
4
|
+
chartData: CalendarHeatmapChartData;
|
|
5
|
+
startMonth?: Date;
|
|
6
|
+
};
|
|
7
|
+
type UseCalendarHeatmapPaginationResult = {
|
|
8
|
+
currentMonth: MonthData;
|
|
9
|
+
setCurrentMonth: (month: MonthData) => void;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Custom hook for managing calendar pagination state and actions.
|
|
13
|
+
*
|
|
14
|
+
* Provides pagination functionality for calendar views including:
|
|
15
|
+
* - Current month management
|
|
16
|
+
*
|
|
17
|
+
* @param params - The parameters for the hook
|
|
18
|
+
* @param params.chartData - The calendar heatmap chart data
|
|
19
|
+
* @param params.startMonth - Optional start month to display initially
|
|
20
|
+
* @returns The result of the hook
|
|
21
|
+
*/
|
|
22
|
+
export declare const useCalendarHeatmapPagination: (params: UseCalendarHeatmapPaginationParams) => UseCalendarHeatmapPaginationResult;
|
|
23
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { Attribute, CalculatedMeasureColumn, Column, Measure, MeasureColumn } from '@sisense/sdk-data';
|
|
1
2
|
import { CartesianChartDataOptionsInternal, ChartDataOptions, ChartDataOptionsInternal } from '../../../../../chart-data-options/types';
|
|
2
3
|
import { CartesianChartDataOptions } from '../../../../../types';
|
|
3
|
-
import { Attribute, CalculatedMeasureColumn, Column, Measure, MeasureColumn } from '@sisense/sdk-data';
|
|
4
4
|
/**
|
|
5
5
|
* Translates the data options for cartesian charts to internal format.
|
|
6
6
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { XAxisOrientation } from '../../../../../../chart-options-processor/cartesian/utils/axis/axis-builders';
|
|
2
|
+
import { AxisSettings } from '../../../../../../chart-options-processor/translations/axis-section';
|
|
1
3
|
import { BuildContext } from '../../../types';
|
|
2
4
|
import { CartesianChartTypes } from '../../types';
|
|
3
|
-
import { AxisSettings } from '../../../../../../chart-options-processor/translations/axis-section';
|
|
4
|
-
import { XAxisOrientation } from '../../../../../../chart-options-processor/cartesian/utils/axis/axis-builders';
|
|
5
5
|
export declare const getCartesianXAxis: (ctx: BuildContext<CartesianChartTypes>, orientation: XAxisOrientation) => AxisSettings[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
+
import { TooltipSettings } from '../../../../../../chart-options-processor/translations/tooltip-utils';
|
|
1
2
|
import { BuildContext } from '../../../types';
|
|
2
3
|
import { CartesianChartTypes } from '../../types';
|
|
3
|
-
import { TooltipSettings } from '../../../../../../chart-options-processor/translations/tooltip-utils';
|
|
4
4
|
export declare const getBasicCartesianTooltip: (ctx: BuildContext<CartesianChartTypes>) => TooltipSettings;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { AxisSettings } from '../../../../../../chart-options-processor/translations/axis-section';
|
|
1
2
|
import { BuildContext } from '../../../types';
|
|
2
3
|
import { CartesianChartTypes } from '../../types';
|
|
3
|
-
import { AxisSettings } from '../../../../../../chart-options-processor/translations/axis-section';
|
|
4
4
|
/**
|
|
5
5
|
* Creates basic Y-axis settings for cartesian charts with data-driven min/max calculation.
|
|
6
6
|
* This function provides the foundation Y-axis configuration that can be enhanced
|