@sisense/sdk-ui 2.29.0 → 2.31.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 +57 -57
- package/dist/ai.js +767 -797
- package/dist/analytics-composer/node.cjs +1 -1
- package/dist/analytics-composer/node.js +1871 -1324
- package/dist/analytics-composer.cjs +2 -2
- package/dist/analytics-composer.js +8 -8
- package/dist/apply-styled-options-to-query-BddNnNsW.js +7028 -0
- package/dist/apply-styled-options-to-query-BrP6xVFh.cjs +1 -0
- package/dist/index-BcggtLDg.js +847 -0
- package/dist/{index-C77YCBVd.js → index-DCYw3JUB.js} +29 -7
- package/dist/index-DTvxJdqZ.cjs +1 -0
- package/dist/index-DhUTJSni.cjs +1 -0
- package/dist/index.cjs +614 -495
- package/dist/index.js +27269 -26507
- package/dist/index.umd.js +1035 -810
- package/dist/packages/sdk-ui/src/domains/dashboarding/common-filters/utils.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/components/dashboard-container.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/components/dashboard-header/constants.d.ts +16 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/components/dashboard-header/dashboard-header-config.d.ts +122 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/components/dashboard-header/dashboard-header-targets.d.ts +26 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/components/dashboard-header/dashboard-header-title.d.ts +20 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/components/dashboard-header/dashboard-header.d.ts +9 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/components/toolbar/edit-toggle.d.ts +5 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/components/toolbar/filter-toggle.d.ts +5 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/constants.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-helpers.d.ts +21 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/translate-dashboard-utils.d.ts +43 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/dashboard-model-reducer/persist-dashboard-model-middleware.d.ts +10 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/dashboard-model-reducer/types.d.ts +7 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/dashboard-model-reducer/utils.d.ts +2 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-module/dashboard-module.d.ts +34 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-module/types.d.ts +65 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard.d.ts +0 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/duplicate-widget/use-duplicate-widget-menu-item.d.ts +7 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/use-dashboard-header-menu-item.d.ts +9 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/use-edit-mode-with-history.d.ts +0 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/use-widget-updates-persistence.d.ts +2 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/persistence/types.d.ts +11 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/persistence/update-types.d.ts +4 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/types.d.ts +44 -16
- package/dist/packages/sdk-ui/src/domains/dashboarding/utils.d.ts +33 -1
- package/dist/packages/sdk-ui/src/domains/data-browser/add-measure-popover/add-measure-data-browser.d.ts +11 -0
- package/dist/packages/sdk-ui/src/domains/data-browser/add-measure-popover/add-measure-popover.d.ts +14 -0
- package/dist/packages/sdk-ui/src/domains/data-browser/add-measure-popover/measure-ranking-title.d.ts +21 -0
- package/dist/packages/sdk-ui/src/domains/data-browser/add-measure-popover/measures.d.ts +13 -0
- package/dist/packages/sdk-ui/src/domains/filters/components/criteria-filter-tile/criteria-filter-menu.d.ts +2 -1
- package/dist/packages/sdk-ui/src/domains/filters/components/criteria-filter-tile/criteria-filter-operations.d.ts +1 -0
- package/dist/packages/sdk-ui/src/domains/filters/components/filter-editor-popover/filter-editor-context.d.ts +1 -0
- package/dist/packages/sdk-ui/src/domains/filters/components/filter-editor-popover/filter-editor-popover.d.ts +2 -1
- package/dist/packages/sdk-ui/src/domains/filters/components/filter-editor-popover/filter-editor.d.ts +2 -1
- package/dist/packages/sdk-ui/src/domains/filters/components/filter-editor-popover/sections/numeric-condition-section/types.d.ts +5 -0
- package/dist/packages/sdk-ui/src/domains/filters/components/filter-editor-popover/sections/ranking-condition/index.d.ts +3 -0
- package/dist/packages/sdk-ui/src/domains/filters/components/filter-editor-popover/sections/ranking-condition/ranking-condition-controls.d.ts +33 -0
- package/dist/packages/sdk-ui/src/domains/filters/components/filter-editor-popover/sections/ranking-condition/ranking-condition-utils.d.ts +13 -0
- package/dist/packages/sdk-ui/src/domains/filters/components/filters-panel/filters-panel.d.ts +0 -1
- package/dist/packages/sdk-ui/src/domains/filters/components/filters-panel/hooks/use-existing-filter-editing.d.ts +2 -1
- package/dist/packages/sdk-ui/src/domains/narrative/components/narrative-collapsible.d.ts +22 -4
- package/dist/packages/sdk-ui/src/domains/narrative/components/narrative-top-slot-shell.d.ts +2 -0
- package/dist/packages/sdk-ui/src/domains/narrative/components/narrative-trigger-button.d.ts +17 -0
- package/dist/packages/sdk-ui/src/domains/narrative/components/widget-narrative-interactive.d.ts +20 -2
- package/dist/packages/sdk-ui/src/domains/narrative/components/widget-narrative.d.ts +11 -9
- package/dist/packages/sdk-ui/src/domains/narrative/core/build-narrative-request.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/narrative/core/get-narrative-dimensions-and-measures.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/narrative/core/get-widget-narrative-from-widget-props.d.ts +18 -0
- package/dist/packages/sdk-ui/src/domains/narrative/core/to-nlg-api-verbosity.d.ts +7 -0
- package/dist/packages/sdk-ui/src/domains/narrative/core/widget-narrative-config.d.ts +114 -0
- package/dist/packages/sdk-ui/src/domains/narrative/core/widget-props-to-narrative-params.d.ts +35 -32
- package/dist/packages/sdk-ui/src/domains/narrative/hooks/use-get-widget-narrative.d.ts +11 -22
- package/dist/packages/sdk-ui/src/domains/narrative/hooks/use-line-height.d.ts +10 -0
- package/dist/packages/sdk-ui/src/domains/narrative/hooks/use-widget-narrative-state.d.ts +8 -9
- package/dist/packages/sdk-ui/src/domains/query-execution/core/execute-query.d.ts +34 -1
- package/dist/packages/sdk-ui/src/domains/query-execution/hooks/use-execute-excel-query/excel-export/build-jaql-excel-export.d.ts +13 -5
- package/dist/packages/sdk-ui/src/domains/query-execution/hooks/use-execute-excel-query/excel-export/build-xlsx-export-payload.d.ts +5 -0
- package/dist/packages/sdk-ui/src/domains/query-execution/hooks/use-execute-query-by-widget-id/use-execute-query-by-widget-id.d.ts +2 -1
- package/dist/packages/sdk-ui/src/domains/query-execution/types.d.ts +55 -3
- package/dist/packages/sdk-ui/src/domains/shared/header/header-item-cell.d.ts +25 -0
- package/dist/packages/sdk-ui/src/domains/shared/header/header-item-size.d.ts +31 -0
- package/dist/packages/sdk-ui/src/domains/shared/header/header-items-renderer.d.ts +23 -0
- package/dist/packages/sdk-ui/src/domains/shared/header/header-spacer-item.d.ts +9 -0
- package/dist/packages/sdk-ui/src/domains/shared/header/index.d.ts +7 -0
- package/dist/packages/sdk-ui/src/domains/shared/header/resolve-header-items.d.ts +17 -0
- package/dist/packages/sdk-ui/src/domains/shared/header/types.d.ts +98 -0
- package/dist/packages/sdk-ui/src/domains/shared/header/use-resolved-header-items.d.ts +10 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/areamap-chart/data/areamap-data.d.ts +3 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/cartesians/helpers/data.d.ts +3 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/cartesians/stackable/streamgraph-chart/helpers/chart-data.d.ts +3 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/categoricals/helpers/data.d.ts +3 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/categoricals/sunburst-chart/data/index.d.ts +3 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/categoricals/treemap-chart/data/index.d.ts +3 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/highcharts-based-chart-renderer/build-highchart-options.d.ts +1 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/sankey-chart/alerts/index.d.ts +5 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/sankey-chart/data/index.d.ts +22 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/sankey-chart/data-options/index.d.ts +33 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/sankey-chart/design-options/index.d.ts +21 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/sankey-chart/highchart-options/highcharts-options-builder.d.ts +3 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/sankey-chart/sankey-chart-builder.d.ts +3 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/sankey-chart/sankey-node-colors.d.ts +10 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/sankey-chart/types.d.ts +38 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/types.d.ts +2 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/types.d.ts +12 -9
- package/dist/packages/sdk-ui/src/domains/visualizations/components/pivot-table/formatters/data-cell-formatters/data-cell-value-formatter.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/components/pivot-table/formatters/header-cell-formatters/header-cell-value-formatter.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/components/pivot-table/hooks/use-pivot-data-loading.d.ts +1 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/components/pivot-table/resolve-pivot-container-size.d.ts +28 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/components/sankey-chart.d.ts +30 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/components/table/pure-table/helpers/calc-column-widths.d.ts +19 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/components/table/pure-table/helpers/format-numbers.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/components/table/pure-table/styles/style-constants.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/components/table/pure-table/types.d.ts +5 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-data/cartesian-data.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-data/categorical-data.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-data/chart-data-service.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-data/scatter-data.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-data/types.d.ts +2 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-data-options/apply-styled-options-to-query.d.ts +4 -4
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-data-options/types.d.ts +46 -7
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/chart-options-service.d.ts +4 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/tooltip.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/design-options.d.ts +40 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/funnel-plot-options.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/number-format-config.d.ts +12 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/pie-plot-options.d.ts +2 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/sunburst/sunburst-levels.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/sunburst/sunburst-options.d.ts +3 -3
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/sunburst/sunburst-series.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/treemap/treemap-tooltip.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/types.d.ts +12 -3
- package/dist/packages/sdk-ui/src/domains/widgets/components/chart-widget/types.d.ts +1 -2
- package/dist/packages/sdk-ui/src/domains/widgets/components/chart-widget/use-chart-widget-excel-download.d.ts +2 -3
- package/dist/packages/sdk-ui/src/domains/widgets/components/chart-widget/use-chart-widget-narrative.d.ts +28 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/custom-widget/use-custom-widget-excel-download.d.ts +3 -3
- package/dist/packages/sdk-ui/src/domains/widgets/components/pivot-table-widget/pivot-table-widget.d.ts +4 -4
- package/dist/packages/sdk-ui/src/domains/widgets/components/pivot-table-widget/types.d.ts +1 -2
- package/dist/packages/sdk-ui/src/domains/widgets/components/pivot-table-widget/use-pivot-widget-excel-download.d.ts +2 -3
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget/types.d.ts +25 -9
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-dashboard-filters.d.ts +1 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-widget-style-options/categorical-labels-style.d.ts +94 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-widget-style-options/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-widget-style-options/series-label-affix-style.d.ts +59 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-widget-style-options/tabber.d.ts +17 -1
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-widget-style-options/to-widget-dto-style.d.ts +13 -1
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-widget-style-options/widget-narrative-style.d.ts +31 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/types.d.ts +102 -2
- package/dist/packages/sdk-ui/src/domains/widgets/helpers/excel-export-map-dimensions-measures.d.ts +17 -2
- package/dist/packages/sdk-ui/src/domains/widgets/helpers/number-format-config-to-numeric-mask.d.ts +5 -0
- package/dist/packages/sdk-ui/src/domains/widgets/shared/widget-container/widget-container.d.ts +7 -1
- package/dist/packages/sdk-ui/src/domains/widgets/widget-model/widget-model.d.ts +6 -2
- package/dist/packages/sdk-ui/src/infra/api/narrative/narrative-endpoints.d.ts +2 -2
- package/dist/packages/sdk-ui/src/infra/app/settings/settings.d.ts +11 -0
- package/dist/packages/sdk-ui/src/infra/app/settings/types/features.d.ts +1 -3
- package/dist/packages/sdk-ui/src/infra/app/types.d.ts +17 -0
- package/dist/packages/sdk-ui/src/infra/decorators/component-decorators/with-tracking/use-track-component-init.d.ts +8 -0
- package/dist/packages/sdk-ui/src/infra/modules/types.d.ts +24 -5
- package/dist/packages/sdk-ui/src/infra/plugins/types.d.ts +34 -6
- package/dist/packages/sdk-ui/src/infra/plugins/widget-plugins/types.d.ts +180 -54
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/de-de.d.ts +22 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/en-us.d.ts +22 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/es-ar.d.ts +22 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/es-es.d.ts +22 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/fr-fr.d.ts +22 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/it-it.d.ts +22 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/ja-jp.d.ts +22 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/ko-kr.d.ts +22 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/nl-nl.d.ts +22 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/pt-br.d.ts +22 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/ru-ru.d.ts +22 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/tr-tr.d.ts +22 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/zh-cn.d.ts +22 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/en.d.ts +22 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/index.d.ts +44 -0
- package/dist/packages/sdk-ui/src/modules/ai/common/collapsible.d.ts +38 -2
- package/dist/packages/sdk-ui/src/modules/ai/get-nlg-insights-from-widget.d.ts +4 -13
- package/dist/packages/sdk-ui/src/modules/ai/index.d.ts +1 -1
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/expression/custom-formula/validate-custom-formula.d.ts +11 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/expression/datetime-filter-processors.d.ts +6 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/expression/measure-processors.d.ts +16 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/expression/process-measured-value.d.ts +14 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/utils/schema-index.d.ts +4 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/validation/datetime-member-validation.d.ts +2 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/validation/datetime-range-validation.d.ts +2 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/validation/datetime-relative-validation.d.ts +1 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/validation/datetime-validation-utils.d.ts +40 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/validation/flatten-filters.d.ts +5 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/validation/normalize-member-for-granularity.d.ts +5 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/validation/query-datetime-validation.d.ts +7 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/types.d.ts +16 -1
- package/dist/packages/sdk-ui/src/modules/analytics-composer/widget/to-widget-code.d.ts +1 -1
- package/dist/packages/sdk-ui/src/props.d.ts +46 -3
- package/dist/packages/sdk-ui/src/public-api/alpha.d.ts +0 -2
- package/dist/packages/sdk-ui/src/public-api/beta.d.ts +8 -0
- package/dist/packages/sdk-ui/src/public-api/internal.d.ts +1 -1
- package/dist/packages/sdk-ui/src/public-api/public.d.ts +4 -1
- package/dist/packages/sdk-ui/src/public-api/sisense-internal.d.ts +4 -3
- package/dist/packages/sdk-ui/src/shared/components/alert/alert.d.ts +1 -50
- package/dist/packages/sdk-ui/src/shared/components/alert/index.d.ts +2 -2
- package/dist/packages/sdk-ui/src/shared/components/no-results-overlay/images/index.d.ts +1 -1
- package/dist/packages/sdk-ui/src/shared/components/quota-notification/quota-notification.d.ts +3 -10
- package/dist/packages/sdk-ui/src/shared/components/radio.d.ts +1 -0
- package/dist/packages/sdk-ui/src/shared/hooks/use-synced-state.d.ts +6 -7
- package/dist/packages/sdk-ui/src/shared/icons/warning-icon.d.ts +2 -3
- package/dist/packages/sdk-ui/src/shared/icons/x-circle-icon.d.ts +2 -3
- package/dist/packages/sdk-ui/src/shared/utils/color/color-interpolation.d.ts +1 -1
- package/dist/packages/sdk-ui/src/shared/utils/color/colorjs.d.ts +36 -0
- package/dist/packages/sdk-ui/src/shared/utils/gradient.d.ts +3 -2
- package/dist/packages/sdk-ui/src/types.d.ts +89 -6
- package/dist/{use-hover-Dju4Dcv3.js → quota-notification-BMxiL8zu.js} +23452 -22126
- package/dist/quota-notification-CsGmQ05h.cjs +750 -0
- package/dist/translations/de-de.cjs +1 -1
- package/dist/translations/de-de.js +27 -5
- package/dist/translations/en-us.cjs +1 -1
- package/dist/translations/en-us.js +1 -1
- package/dist/translations/es-ar.cjs +1 -1
- package/dist/translations/es-ar.js +27 -5
- package/dist/translations/es-es.cjs +1 -1
- package/dist/translations/es-es.js +27 -5
- package/dist/translations/fr-fr.cjs +1 -1
- package/dist/translations/fr-fr.js +27 -5
- package/dist/translations/it-it.cjs +1 -1
- package/dist/translations/it-it.js +29 -7
- package/dist/translations/ja-jp.cjs +1 -1
- package/dist/translations/ja-jp.js +27 -5
- package/dist/translations/ko-kr.cjs +1 -1
- package/dist/translations/ko-kr.js +27 -5
- package/dist/translations/nl-nl.cjs +1 -1
- package/dist/translations/nl-nl.js +29 -7
- package/dist/translations/pt-br.cjs +1 -1
- package/dist/translations/pt-br.js +27 -5
- package/dist/translations/ru-ru.cjs +1 -1
- package/dist/translations/ru-ru.js +27 -5
- package/dist/translations/tr-tr.cjs +1 -1
- package/dist/translations/tr-tr.js +27 -5
- package/dist/translations/zh-cn.cjs +1 -1
- package/dist/translations/zh-cn.js +27 -5
- package/dist/{types-7YG0uOzO.js → types-BB6n10Af.js} +1 -1
- package/dist/{types-DlYJ_DZ0.cjs → types-CMUXHDie.cjs} +1 -1
- package/dist/{utils-BKRpWUGm.js → utils-C39pRlFD.js} +14298 -13977
- package/dist/utils-CL2eytnK.cjs +180 -0
- package/dist/{widget-composer-BXEyx308.cjs → widget-composer-DDulWu8l.cjs} +85 -10
- package/dist/{widget-composer-DRDw1oBF.js → widget-composer-DrfnZQa0.js} +350 -259
- package/package.json +13 -16
- package/dist/apply-styled-options-to-query-CaP4IMrQ.js +0 -6379
- package/dist/apply-styled-options-to-query-D5D8pRl2.cjs +0 -1
- package/dist/index-C9G8giSk.cjs +0 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/components/dashboard-header.d.ts +0 -3
- package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/use-dashboard-header-toolbar.d.ts +0 -25
- package/dist/packages/sdk-ui/src/domains/narrative/core/widget-narrative-options.d.ts +0 -36
- package/dist/packages/sdk-ui/src/shared/hooks/use-quota-warning-dismissed.d.ts +0 -8
- package/dist/use-hover-CANskYrn.cjs +0 -720
- package/dist/utils-C4PIba42.cjs +0 -179
|
@@ -1,8 +1,17 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { WidgetPlugin } from './widget-plugins/types.js';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Defines base information shared by all plugin types.
|
|
4
4
|
*
|
|
5
|
-
* @
|
|
5
|
+
* @group Plugin System
|
|
6
|
+
* @example
|
|
7
|
+
* ```ts
|
|
8
|
+
* const info: BasePluginInfo = {
|
|
9
|
+
* name: 'my-widget-plugin',
|
|
10
|
+
* version: '1.0.0',
|
|
11
|
+
* requiredApiVersion: '^2.9.0',
|
|
12
|
+
* };
|
|
13
|
+
* ```
|
|
14
|
+
* @beta
|
|
6
15
|
*/
|
|
7
16
|
export interface BasePluginInfo {
|
|
8
17
|
/**
|
|
@@ -50,9 +59,28 @@ export interface PluginValidationResult {
|
|
|
50
59
|
reason?: string;
|
|
51
60
|
}
|
|
52
61
|
/**
|
|
53
|
-
*
|
|
62
|
+
* Declares a plugin for registration with the Compose SDK.
|
|
54
63
|
* Currently only widget plugins are supported.
|
|
55
64
|
*
|
|
56
|
-
* @
|
|
65
|
+
* @group Plugin System
|
|
66
|
+
* @example
|
|
67
|
+
* ```tsx
|
|
68
|
+
* import { SisenseContextProvider } from '@sisense/sdk-ui';
|
|
69
|
+
*
|
|
70
|
+
* const myPlugin: Plugin = {
|
|
71
|
+
* name: 'my-widget-plugin',
|
|
72
|
+
* version: '1.0.0',
|
|
73
|
+
* requiredApiVersion: '^2.9.0',
|
|
74
|
+
* pluginType: 'widget',
|
|
75
|
+
* customWidget: {
|
|
76
|
+
* name: 'my-widget',
|
|
77
|
+
* displayName: 'My Widget',
|
|
78
|
+
* visualization: { Component: MyVisualization },
|
|
79
|
+
* },
|
|
80
|
+
* };
|
|
81
|
+
*
|
|
82
|
+
* <SisenseContextProvider plugins={[myPlugin]} {...props} />
|
|
83
|
+
* ```
|
|
84
|
+
* @beta
|
|
57
85
|
*/
|
|
58
|
-
export type Plugin =
|
|
86
|
+
export type Plugin = WidgetPlugin<any>;
|
|
@@ -5,9 +5,32 @@ import { AnyObject } from '../../../shared/utils/utility-types';
|
|
|
5
5
|
import type { AbstractDataPointWithEntries, GenericDataOptions } from '../../../types';
|
|
6
6
|
import type { BasePluginInfo } from '../types';
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Declares a widget plugin for registration with the Compose SDK.
|
|
9
9
|
*
|
|
10
|
-
* @
|
|
10
|
+
* Pass an instance to the `plugins` prop on {@link SisenseContextProvider} to register a custom
|
|
11
|
+
* visualization that appears in the dashboard widget picker.
|
|
12
|
+
*
|
|
13
|
+
* @typeParam Props - Props type for the custom visualization component, extending {@link CustomVisualizationProps}.
|
|
14
|
+
* @group Plugin System
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* import { WidgetPlugin, CustomVisualization } from '@sisense/sdk-ui';
|
|
18
|
+
*
|
|
19
|
+
* const MyChart: CustomVisualization = ({ dataOptions }) => <div>{String(dataOptions)}</div>;
|
|
20
|
+
*
|
|
21
|
+
* const myPlugin: WidgetPlugin = {
|
|
22
|
+
* name: 'my-widget-plugin',
|
|
23
|
+
* version: '1.0.0',
|
|
24
|
+
* requiredApiVersion: '^2.9.0',
|
|
25
|
+
* pluginType: 'widget',
|
|
26
|
+
* customWidget: {
|
|
27
|
+
* name: 'my-widget',
|
|
28
|
+
* displayName: 'My Widget',
|
|
29
|
+
* visualization: { Component: MyChart },
|
|
30
|
+
* },
|
|
31
|
+
* };
|
|
32
|
+
* ```
|
|
33
|
+
* @beta
|
|
11
34
|
*/
|
|
12
35
|
export interface WidgetPlugin<Props extends CustomVisualizationProps<any, any, any, any> = CustomVisualizationProps> extends BasePluginInfo {
|
|
13
36
|
/**
|
|
@@ -147,38 +170,44 @@ export interface WidgetPlugin<Props extends CustomVisualizationProps<any, any, a
|
|
|
147
170
|
*/
|
|
148
171
|
export type AnyWidgetPlugin = WidgetPlugin<any>;
|
|
149
172
|
/**
|
|
150
|
-
*
|
|
151
|
-
*
|
|
152
|
-
* @typeParam DataOptions - The shape of data options for this custom visualization
|
|
153
|
-
* @typeParam StyleOptions - The shape of style options for this custom visualization
|
|
154
|
-
* @typeParam DataPoint - The shape of data points for event handlers
|
|
173
|
+
* Defines props passed to a user-defined custom visualization component.
|
|
155
174
|
*
|
|
175
|
+
* @typeParam DataOptions - The shape of data options for this custom visualization.
|
|
176
|
+
* @typeParam StyleOptions - The shape of style options for this custom visualization.
|
|
177
|
+
* @typeParam DataPoint - The shape of data points passed to event handlers.
|
|
178
|
+
* @typeParam CustomOptions - The shape of arbitrary plugin-specific state (not data- or style-related).
|
|
179
|
+
* @group Plugin System
|
|
156
180
|
* @example
|
|
157
181
|
* ```tsx
|
|
158
|
-
* import {
|
|
182
|
+
* import {
|
|
183
|
+
* CustomVisualization,
|
|
184
|
+
* CustomVisualizationProps,
|
|
185
|
+
* CustomVisualizationDataPoint,
|
|
186
|
+
* StyledColumn,
|
|
187
|
+
* StyledMeasureColumn,
|
|
188
|
+
* DataPointEntry,
|
|
189
|
+
* GenericDataOptions,
|
|
190
|
+
* } from '@sisense/sdk-ui';
|
|
159
191
|
*
|
|
160
192
|
* interface MyDataOptions extends GenericDataOptions {
|
|
161
193
|
* category: StyledColumn[];
|
|
162
194
|
* value: StyledMeasureColumn[];
|
|
163
195
|
* }
|
|
164
196
|
*
|
|
165
|
-
* interface MyDataPoint extends
|
|
197
|
+
* interface MyDataPoint extends CustomVisualizationDataPoint {
|
|
166
198
|
* entries: {
|
|
167
199
|
* category: DataPointEntry[];
|
|
168
200
|
* value: DataPointEntry[];
|
|
169
201
|
* };
|
|
170
202
|
* }
|
|
171
203
|
*
|
|
172
|
-
* type
|
|
204
|
+
* type MyChartProps = CustomVisualizationProps<MyDataOptions, {}, MyDataPoint>;
|
|
173
205
|
*
|
|
174
|
-
* const
|
|
175
|
-
*
|
|
176
|
-
* // ... implementation based on props
|
|
177
|
-
* return <div>My New Awesome Chart</div>;
|
|
206
|
+
* const MyChart: CustomVisualization<MyChartProps> = ({ dataOptions, onDataPointClick }) => {
|
|
207
|
+
* return <div>My Chart</div>;
|
|
178
208
|
* };
|
|
179
209
|
* ```
|
|
180
|
-
*
|
|
181
|
-
* @sisenseInternal
|
|
210
|
+
* @beta
|
|
182
211
|
*/
|
|
183
212
|
export interface CustomVisualizationProps<DataOptions = GenericDataOptions, StyleOptions = CustomVisualizationStyleOptions, DataPoint extends AbstractDataPointWithEntries = AbstractDataPointWithEntries, CustomOptions = Record<string, unknown>> extends CustomVisualizationEventProps<DataPoint> {
|
|
184
213
|
/** Data source for the custom visualization */
|
|
@@ -192,13 +221,16 @@ export interface CustomVisualizationProps<DataOptions = GenericDataOptions, Styl
|
|
|
192
221
|
/** Highlight filters for interactive highlighting */
|
|
193
222
|
highlights?: Filter[];
|
|
194
223
|
/**
|
|
195
|
-
* Arbitrary plugin-specific
|
|
224
|
+
* Arbitrary plugin-specific runtime state that is not data- or style-related
|
|
225
|
+
* (for example the current page of a table or a selected tab). Persisted back
|
|
226
|
+
* to the Sisense instance when the widget lives inside a Dashboard component,
|
|
227
|
+
* so it survives page reloads.
|
|
196
228
|
*
|
|
197
|
-
* @
|
|
229
|
+
* @beta
|
|
198
230
|
*/
|
|
199
231
|
customOptions?: CustomOptions;
|
|
200
232
|
/**
|
|
201
|
-
*
|
|
233
|
+
* Emits a partial state update to be persisted through the dashboard
|
|
202
234
|
* persistence layer. Injected by the dashboard when the widget lives inside a
|
|
203
235
|
* Dashboard component; `undefined` in standalone use or read-only mode — always
|
|
204
236
|
* call it with optional chaining.
|
|
@@ -208,7 +240,7 @@ export interface CustomVisualizationProps<DataOptions = GenericDataOptions, Styl
|
|
|
208
240
|
* onChange?.({ customOptions: { lastPage: 3 } });
|
|
209
241
|
* ```
|
|
210
242
|
*
|
|
211
|
-
* @
|
|
243
|
+
* @beta
|
|
212
244
|
*/
|
|
213
245
|
onChange?: (update: VisualizationStateUpdate<StyleOptions, CustomOptions>) => void;
|
|
214
246
|
}
|
|
@@ -225,25 +257,49 @@ export interface CustomVisualizationProps<DataOptions = GenericDataOptions, Styl
|
|
|
225
257
|
* replaced wholesale (last-write-wins). Keys cannot be deleted via merge —
|
|
226
258
|
* overwrite with an explicit value (e.g. `null`) instead.
|
|
227
259
|
*
|
|
228
|
-
* @
|
|
260
|
+
* @typeParam StyleOptions - The shape of style options for the custom visualization.
|
|
261
|
+
* @typeParam CustomOptions - The shape of arbitrary plugin-specific runtime state.
|
|
262
|
+
* @group Plugin System
|
|
263
|
+
* @beta
|
|
229
264
|
*/
|
|
230
265
|
export type VisualizationStateUpdate<StyleOptions = CustomVisualizationStyleOptions, CustomOptions = Record<string, unknown>> = {
|
|
231
266
|
styleOptions?: DeepPartial<StyleOptions>;
|
|
232
267
|
customOptions?: DeepPartial<CustomOptions>;
|
|
233
268
|
};
|
|
234
269
|
/**
|
|
235
|
-
*
|
|
270
|
+
* Defines style options for a custom visualization.
|
|
236
271
|
*
|
|
237
|
-
*
|
|
272
|
+
* Extend this interface to add plugin-specific style properties passed via `styleOptions`.
|
|
273
|
+
*
|
|
274
|
+
* @group Plugin System
|
|
275
|
+
* @example
|
|
276
|
+
* ```ts
|
|
277
|
+
* interface MyWidgetStyleOptions extends CustomVisualizationStyleOptions {
|
|
278
|
+
* backgroundColor?: string;
|
|
279
|
+
* fontSize?: number;
|
|
280
|
+
* }
|
|
281
|
+
* ```
|
|
282
|
+
* @beta
|
|
238
283
|
*/
|
|
239
284
|
export interface CustomVisualizationStyleOptions extends AnyObject {
|
|
240
285
|
}
|
|
241
286
|
/**
|
|
242
|
-
*
|
|
243
|
-
*
|
|
287
|
+
* Defines a user-defined custom visualization component.
|
|
288
|
+
* Can be any visual representation of data — chart, table, map, etc.
|
|
244
289
|
*
|
|
245
|
-
* @typeParam Props - The props type for the custom visualization component
|
|
246
|
-
* @
|
|
290
|
+
* @typeParam Props - The props type for the custom visualization component, extending {@link CustomVisualizationProps}.
|
|
291
|
+
* @param props - Props injected by the dashboard, including `dataOptions`, `styleOptions`, `filters`, and event handlers.
|
|
292
|
+
* @returns A React node representing the rendered visualization.
|
|
293
|
+
* @group Plugin System
|
|
294
|
+
* @example
|
|
295
|
+
* ```tsx
|
|
296
|
+
* import { CustomVisualization, CustomVisualizationProps } from '@sisense/sdk-ui';
|
|
297
|
+
*
|
|
298
|
+
* const MyChart: CustomVisualization<CustomVisualizationProps> = ({ dataOptions, styleOptions }) => {
|
|
299
|
+
* return <div className="my-chart">{JSON.stringify(dataOptions)}</div>;
|
|
300
|
+
* };
|
|
301
|
+
* ```
|
|
302
|
+
* @beta
|
|
247
303
|
*/
|
|
248
304
|
export type CustomVisualization<Props = CustomVisualizationProps> = (props: Props) => ReactNode;
|
|
249
305
|
/**
|
|
@@ -257,10 +313,19 @@ export type CustomVisualization<Props = CustomVisualizationProps> = (props: Prop
|
|
|
257
313
|
*/
|
|
258
314
|
export type AnyCustomVisualization = CustomVisualization<any>;
|
|
259
315
|
/**
|
|
260
|
-
*
|
|
316
|
+
* Defines event handler props for a custom visualization component.
|
|
261
317
|
*
|
|
262
|
-
*
|
|
263
|
-
*
|
|
318
|
+
* Included automatically via {@link CustomVisualizationProps}. Extend to add custom event props.
|
|
319
|
+
*
|
|
320
|
+
* @typeParam DataPoint - The shape of data points for this custom visualization.
|
|
321
|
+
* @group Plugin System
|
|
322
|
+
* @example
|
|
323
|
+
* ```tsx
|
|
324
|
+
* interface MyEventProps extends CustomVisualizationEventProps<MyDataPoint> {
|
|
325
|
+
* onCustomAction?: (id: string) => void;
|
|
326
|
+
* }
|
|
327
|
+
* ```
|
|
328
|
+
* @beta
|
|
264
329
|
*/
|
|
265
330
|
export interface CustomVisualizationEventProps<DataPoint extends AbstractDataPointWithEntries = AbstractDataPointWithEntries> {
|
|
266
331
|
/**
|
|
@@ -283,28 +348,35 @@ export interface CustomVisualizationEventProps<DataPoint extends AbstractDataPoi
|
|
|
283
348
|
onDataPointsSelected?: CustomVisualizationDataPointsEventHandler<DataPoint>;
|
|
284
349
|
}
|
|
285
350
|
/**
|
|
286
|
-
*
|
|
351
|
+
* Defines an event handler for a data point click in a custom visualization.
|
|
287
352
|
*
|
|
288
|
-
* @typeParam T - The shape of the data point
|
|
353
|
+
* @typeParam T - The shape of the data point.
|
|
354
|
+
* @group Plugin System
|
|
289
355
|
* @example
|
|
290
356
|
* ```tsx
|
|
291
357
|
* const handleClick: CustomVisualizationDataPointEventHandler<MyChartDataPoint> = (point, event) => {
|
|
292
|
-
* console.log('Clicked:', point.
|
|
358
|
+
* console.log('Clicked:', point.entries.category[0].value);
|
|
293
359
|
* };
|
|
294
360
|
* ```
|
|
295
|
-
*
|
|
296
|
-
* @sisenseInternal
|
|
361
|
+
* @beta
|
|
297
362
|
*/
|
|
298
|
-
export type CustomVisualizationDataPointEventHandler<T extends AbstractDataPointWithEntries = AbstractDataPointWithEntries> = (
|
|
363
|
+
export type CustomVisualizationDataPointEventHandler<T extends AbstractDataPointWithEntries = AbstractDataPointWithEntries> = (
|
|
364
|
+
/** Data point that was clicked. */
|
|
365
|
+
point: CustomVisualizationDataPoint<T>,
|
|
366
|
+
/** Native browser pointer or mouse event. */
|
|
367
|
+
nativeEvent: PointerEvent | MouseEvent) => void;
|
|
299
368
|
/**
|
|
300
369
|
* Represents a single data point in a custom visualization.
|
|
301
370
|
*
|
|
302
|
-
*
|
|
303
|
-
*
|
|
304
|
-
* specific entries for categories, values, or other dimensions used in the widget.
|
|
371
|
+
* Extend `AbstractDataPointWithEntries` to define typed entries for your widget's data options.
|
|
372
|
+
* Instances are passed to event handlers such as `onDataPointClick`.
|
|
305
373
|
*
|
|
374
|
+
* @typeParam T - The concrete data point shape, extending {@link AbstractDataPointWithEntries}.
|
|
375
|
+
* @group Plugin System
|
|
306
376
|
* @example
|
|
307
|
-
* ```
|
|
377
|
+
* ```ts
|
|
378
|
+
* import { CustomVisualizationDataPoint, DataPointEntry } from '@sisense/sdk-ui';
|
|
379
|
+
*
|
|
308
380
|
* interface MyChartDataPoint extends CustomVisualizationDataPoint {
|
|
309
381
|
* entries: {
|
|
310
382
|
* category: DataPointEntry[];
|
|
@@ -316,15 +388,25 @@ export type CustomVisualizationDataPointEventHandler<T extends AbstractDataPoint
|
|
|
316
388
|
* console.log('Clicked category:', point.entries.category[0].value);
|
|
317
389
|
* };
|
|
318
390
|
* ```
|
|
319
|
-
*
|
|
320
|
-
* @sisenseInternal
|
|
391
|
+
* @beta
|
|
321
392
|
*/
|
|
322
393
|
export type CustomVisualizationDataPoint<T extends AbstractDataPointWithEntries = AbstractDataPointWithEntries> = T;
|
|
323
394
|
/**
|
|
324
|
-
*
|
|
395
|
+
* Defines an event handler for a data point context-menu event in a custom visualization.
|
|
325
396
|
*
|
|
326
|
-
* @typeParam T - The shape of the data point
|
|
327
|
-
* @
|
|
397
|
+
* @typeParam T - The shape of the data point.
|
|
398
|
+
* @group Plugin System
|
|
399
|
+
* @example
|
|
400
|
+
* ```tsx
|
|
401
|
+
* const handleContextMenu: CustomVisualizationDataPointContextMenuHandler<MyChartDataPoint> = (
|
|
402
|
+
* point,
|
|
403
|
+
* event,
|
|
404
|
+
* ) => {
|
|
405
|
+
* event.preventDefault();
|
|
406
|
+
* showContextMenu({ x: event.clientX, y: event.clientY, point });
|
|
407
|
+
* };
|
|
408
|
+
* ```
|
|
409
|
+
* @beta
|
|
328
410
|
*/
|
|
329
411
|
export type CustomVisualizationDataPointContextMenuHandler<T extends AbstractDataPointWithEntries = AbstractDataPointWithEntries> = (
|
|
330
412
|
/** Data point that triggered the context menu */
|
|
@@ -332,17 +414,20 @@ point: CustomVisualizationDataPoint<T>,
|
|
|
332
414
|
/** Native browser event */
|
|
333
415
|
nativeEvent: MouseEvent) => void;
|
|
334
416
|
/**
|
|
335
|
-
*
|
|
417
|
+
* Defines an event handler for multi-point selection in a custom visualization.
|
|
336
418
|
*
|
|
337
|
-
* @typeParam T - The shape of the data point
|
|
419
|
+
* @typeParam T - The shape of the data point.
|
|
420
|
+
* @group Plugin System
|
|
338
421
|
* @example
|
|
339
422
|
* ```tsx
|
|
340
|
-
* const handleSelect: CustomVisualizationDataPointsEventHandler<MyChartDataPoint> = (
|
|
423
|
+
* const handleSelect: CustomVisualizationDataPointsEventHandler<MyChartDataPoint> = (
|
|
424
|
+
* points,
|
|
425
|
+
* event,
|
|
426
|
+
* ) => {
|
|
341
427
|
* console.log('Selected:', points.length, 'points');
|
|
342
428
|
* };
|
|
343
429
|
* ```
|
|
344
|
-
*
|
|
345
|
-
* @sisenseInternal
|
|
430
|
+
* @beta
|
|
346
431
|
*/
|
|
347
432
|
export type CustomVisualizationDataPointsEventHandler<T extends AbstractDataPointWithEntries = AbstractDataPointWithEntries> = (
|
|
348
433
|
/** Data points that were selected */
|
|
@@ -350,17 +435,58 @@ points: CustomVisualizationDataPoint<T>[],
|
|
|
350
435
|
/** Native browser event */
|
|
351
436
|
nativeEvent: MouseEvent) => void;
|
|
352
437
|
/**
|
|
353
|
-
*
|
|
438
|
+
* Defines props passed to a custom design panel component.
|
|
354
439
|
*
|
|
355
|
-
* @
|
|
440
|
+
* @typeParam StyleOptions - The shape of style options managed by this design panel, extending {@link CustomVisualizationStyleOptions}.
|
|
441
|
+
* @group Plugin System
|
|
442
|
+
* @example
|
|
443
|
+
* ```tsx
|
|
444
|
+
* import { DesignPanel, DesignPanelProps } from '@sisense/sdk-ui';
|
|
445
|
+
*
|
|
446
|
+
* interface MyStyleOptions extends CustomVisualizationStyleOptions {
|
|
447
|
+
* color?: string;
|
|
448
|
+
* }
|
|
449
|
+
*
|
|
450
|
+
* const MyDesignPanel: DesignPanel<MyStyleOptions> = ({ styleOptions, onChange }) => (
|
|
451
|
+
* <input
|
|
452
|
+
* type="color"
|
|
453
|
+
* value={styleOptions.color ?? '#000000'}
|
|
454
|
+
* onChange={(e) => onChange({ ...styleOptions, color: e.target.value })}
|
|
455
|
+
* />
|
|
456
|
+
* );
|
|
457
|
+
* ```
|
|
458
|
+
* @beta
|
|
356
459
|
*/
|
|
357
460
|
export interface DesignPanelProps<StyleOptions = CustomVisualizationStyleOptions> {
|
|
461
|
+
/** Current style options managed by the design panel. */
|
|
358
462
|
styleOptions: StyleOptions;
|
|
463
|
+
/** Callback invoked when the user changes a style option. */
|
|
359
464
|
onChange: (styleOptions: StyleOptions) => void;
|
|
360
465
|
}
|
|
361
466
|
/**
|
|
362
|
-
*
|
|
467
|
+
* Defines a design panel component for a custom widget.
|
|
363
468
|
*
|
|
364
|
-
*
|
|
469
|
+
* Renders inside the widget's style/design settings pane and receives the current
|
|
470
|
+
* `styleOptions` and an `onChange` callback to persist style changes.
|
|
471
|
+
*
|
|
472
|
+
* @typeParam StyleOptions - The shape of style options managed by this design panel, extending {@link CustomVisualizationStyleOptions}.
|
|
473
|
+
* @group Plugin System
|
|
474
|
+
* @example
|
|
475
|
+
* ```tsx
|
|
476
|
+
* import { DesignPanel, CustomVisualizationStyleOptions } from '@sisense/sdk-ui';
|
|
477
|
+
*
|
|
478
|
+
* interface MyStyleOptions extends CustomVisualizationStyleOptions {
|
|
479
|
+
* color?: string;
|
|
480
|
+
* }
|
|
481
|
+
*
|
|
482
|
+
* const MyDesignPanel: DesignPanel<MyStyleOptions> = ({ styleOptions, onChange }) => (
|
|
483
|
+
* <input
|
|
484
|
+
* type="color"
|
|
485
|
+
* value={styleOptions.color ?? '#000000'}
|
|
486
|
+
* onChange={(e) => onChange({ ...styleOptions, color: e.target.value })}
|
|
487
|
+
* />
|
|
488
|
+
* );
|
|
489
|
+
* ```
|
|
490
|
+
* @beta
|
|
365
491
|
*/
|
|
366
492
|
export type DesignPanel<StyleOptions = CustomVisualizationStyleOptions> = FunctionComponent<DesignPanelProps<StyleOptions>>;
|
|
@@ -256,6 +256,8 @@ declare const _default: {
|
|
|
256
256
|
yes: string;
|
|
257
257
|
no: string;
|
|
258
258
|
seeMore: string;
|
|
259
|
+
generateNarrative: string;
|
|
260
|
+
hideNarrative: string;
|
|
259
261
|
};
|
|
260
262
|
disclaimer: {
|
|
261
263
|
poweredByAi: string;
|
|
@@ -309,6 +311,8 @@ declare const _default: {
|
|
|
309
311
|
from: string;
|
|
310
312
|
to: string;
|
|
311
313
|
includeCurrent: string;
|
|
314
|
+
rankedBy: string;
|
|
315
|
+
selectField: string;
|
|
312
316
|
};
|
|
313
317
|
placeholders: {
|
|
314
318
|
selectFromList: string;
|
|
@@ -333,6 +337,8 @@ declare const _default: {
|
|
|
333
337
|
greaterThan: string;
|
|
334
338
|
greaterThanOrEqual: string;
|
|
335
339
|
isWithin: string;
|
|
340
|
+
top: string;
|
|
341
|
+
bottom: string;
|
|
336
342
|
};
|
|
337
343
|
validationErrors: {
|
|
338
344
|
invalidNumber: string;
|
|
@@ -427,6 +433,11 @@ declare const _default: {
|
|
|
427
433
|
table: {
|
|
428
434
|
label: string;
|
|
429
435
|
};
|
|
436
|
+
sankey: {
|
|
437
|
+
alerts: {
|
|
438
|
+
tooManyStages: string;
|
|
439
|
+
};
|
|
440
|
+
};
|
|
430
441
|
};
|
|
431
442
|
loadingOverlay: {
|
|
432
443
|
label: string;
|
|
@@ -452,6 +463,17 @@ declare const _default: {
|
|
|
452
463
|
median: string;
|
|
453
464
|
variance: string;
|
|
454
465
|
};
|
|
466
|
+
measuresAgg: {
|
|
467
|
+
countDistinct: string;
|
|
468
|
+
count: string;
|
|
469
|
+
sum: string;
|
|
470
|
+
average: string;
|
|
471
|
+
min: string;
|
|
472
|
+
max: string;
|
|
473
|
+
median: string;
|
|
474
|
+
variance: string;
|
|
475
|
+
stdev: string;
|
|
476
|
+
};
|
|
455
477
|
};
|
|
456
478
|
}[];
|
|
457
479
|
export default _default;
|
|
@@ -256,6 +256,8 @@ declare const _default: {
|
|
|
256
256
|
yes: string;
|
|
257
257
|
no: string;
|
|
258
258
|
seeMore: string;
|
|
259
|
+
generateNarrative: string;
|
|
260
|
+
hideNarrative: string;
|
|
259
261
|
};
|
|
260
262
|
disclaimer: {
|
|
261
263
|
poweredByAi: string;
|
|
@@ -309,6 +311,8 @@ declare const _default: {
|
|
|
309
311
|
from: string;
|
|
310
312
|
to: string;
|
|
311
313
|
includeCurrent: string;
|
|
314
|
+
rankedBy: string;
|
|
315
|
+
selectField: string;
|
|
312
316
|
};
|
|
313
317
|
placeholders: {
|
|
314
318
|
selectFromList: string;
|
|
@@ -333,6 +337,8 @@ declare const _default: {
|
|
|
333
337
|
greaterThan: string;
|
|
334
338
|
greaterThanOrEqual: string;
|
|
335
339
|
isWithin: string;
|
|
340
|
+
top: string;
|
|
341
|
+
bottom: string;
|
|
336
342
|
};
|
|
337
343
|
validationErrors: {
|
|
338
344
|
invalidNumber: string;
|
|
@@ -427,6 +433,11 @@ declare const _default: {
|
|
|
427
433
|
table: {
|
|
428
434
|
label: string;
|
|
429
435
|
};
|
|
436
|
+
sankey: {
|
|
437
|
+
alerts: {
|
|
438
|
+
tooManyStages: string;
|
|
439
|
+
};
|
|
440
|
+
};
|
|
430
441
|
};
|
|
431
442
|
loadingOverlay: {
|
|
432
443
|
label: string;
|
|
@@ -452,6 +463,17 @@ declare const _default: {
|
|
|
452
463
|
median: string;
|
|
453
464
|
variance: string;
|
|
454
465
|
};
|
|
466
|
+
measuresAgg: {
|
|
467
|
+
countDistinct: string;
|
|
468
|
+
count: string;
|
|
469
|
+
sum: string;
|
|
470
|
+
average: string;
|
|
471
|
+
min: string;
|
|
472
|
+
max: string;
|
|
473
|
+
median: string;
|
|
474
|
+
variance: string;
|
|
475
|
+
stdev: string;
|
|
476
|
+
};
|
|
455
477
|
};
|
|
456
478
|
}[];
|
|
457
479
|
export default _default;
|
|
@@ -256,6 +256,8 @@ declare const _default: {
|
|
|
256
256
|
yes: string;
|
|
257
257
|
no: string;
|
|
258
258
|
seeMore: string;
|
|
259
|
+
generateNarrative: string;
|
|
260
|
+
hideNarrative: string;
|
|
259
261
|
};
|
|
260
262
|
disclaimer: {
|
|
261
263
|
poweredByAi: string;
|
|
@@ -309,6 +311,8 @@ declare const _default: {
|
|
|
309
311
|
from: string;
|
|
310
312
|
to: string;
|
|
311
313
|
includeCurrent: string;
|
|
314
|
+
rankedBy: string;
|
|
315
|
+
selectField: string;
|
|
312
316
|
};
|
|
313
317
|
placeholders: {
|
|
314
318
|
selectFromList: string;
|
|
@@ -333,6 +337,8 @@ declare const _default: {
|
|
|
333
337
|
greaterThan: string;
|
|
334
338
|
greaterThanOrEqual: string;
|
|
335
339
|
isWithin: string;
|
|
340
|
+
top: string;
|
|
341
|
+
bottom: string;
|
|
336
342
|
};
|
|
337
343
|
validationErrors: {
|
|
338
344
|
invalidNumber: string;
|
|
@@ -427,6 +433,11 @@ declare const _default: {
|
|
|
427
433
|
table: {
|
|
428
434
|
label: string;
|
|
429
435
|
};
|
|
436
|
+
sankey: {
|
|
437
|
+
alerts: {
|
|
438
|
+
tooManyStages: string;
|
|
439
|
+
};
|
|
440
|
+
};
|
|
430
441
|
};
|
|
431
442
|
loadingOverlay: {
|
|
432
443
|
label: string;
|
|
@@ -452,6 +463,17 @@ declare const _default: {
|
|
|
452
463
|
median: string;
|
|
453
464
|
variance: string;
|
|
454
465
|
};
|
|
466
|
+
measuresAgg: {
|
|
467
|
+
countDistinct: string;
|
|
468
|
+
count: string;
|
|
469
|
+
sum: string;
|
|
470
|
+
average: string;
|
|
471
|
+
min: string;
|
|
472
|
+
max: string;
|
|
473
|
+
median: string;
|
|
474
|
+
variance: string;
|
|
475
|
+
stdev: string;
|
|
476
|
+
};
|
|
455
477
|
};
|
|
456
478
|
}[];
|
|
457
479
|
export default _default;
|
|
@@ -256,6 +256,8 @@ declare const _default: {
|
|
|
256
256
|
yes: string;
|
|
257
257
|
no: string;
|
|
258
258
|
seeMore: string;
|
|
259
|
+
generateNarrative: string;
|
|
260
|
+
hideNarrative: string;
|
|
259
261
|
};
|
|
260
262
|
disclaimer: {
|
|
261
263
|
poweredByAi: string;
|
|
@@ -309,6 +311,8 @@ declare const _default: {
|
|
|
309
311
|
from: string;
|
|
310
312
|
to: string;
|
|
311
313
|
includeCurrent: string;
|
|
314
|
+
rankedBy: string;
|
|
315
|
+
selectField: string;
|
|
312
316
|
};
|
|
313
317
|
placeholders: {
|
|
314
318
|
selectFromList: string;
|
|
@@ -333,6 +337,8 @@ declare const _default: {
|
|
|
333
337
|
greaterThan: string;
|
|
334
338
|
greaterThanOrEqual: string;
|
|
335
339
|
isWithin: string;
|
|
340
|
+
top: string;
|
|
341
|
+
bottom: string;
|
|
336
342
|
};
|
|
337
343
|
validationErrors: {
|
|
338
344
|
invalidNumber: string;
|
|
@@ -427,6 +433,11 @@ declare const _default: {
|
|
|
427
433
|
table: {
|
|
428
434
|
label: string;
|
|
429
435
|
};
|
|
436
|
+
sankey: {
|
|
437
|
+
alerts: {
|
|
438
|
+
tooManyStages: string;
|
|
439
|
+
};
|
|
440
|
+
};
|
|
430
441
|
};
|
|
431
442
|
loadingOverlay: {
|
|
432
443
|
label: string;
|
|
@@ -452,6 +463,17 @@ declare const _default: {
|
|
|
452
463
|
median: string;
|
|
453
464
|
variance: string;
|
|
454
465
|
};
|
|
466
|
+
measuresAgg: {
|
|
467
|
+
countDistinct: string;
|
|
468
|
+
count: string;
|
|
469
|
+
sum: string;
|
|
470
|
+
average: string;
|
|
471
|
+
min: string;
|
|
472
|
+
max: string;
|
|
473
|
+
median: string;
|
|
474
|
+
variance: string;
|
|
475
|
+
stdev: string;
|
|
476
|
+
};
|
|
455
477
|
};
|
|
456
478
|
}[];
|
|
457
479
|
export default _default;
|