@sisense/sdk-ui 2.20.0 → 2.22.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 +68 -68
- package/dist/ai.js +891 -845
- package/dist/analytics-composer/node.cjs +1 -1
- package/dist/analytics-composer/node.js +1002 -858
- package/dist/analytics-composer.cjs +23 -23
- package/dist/analytics-composer.js +8 -8
- package/dist/{dimensions-Blw0p98x.js → dimensions-BiLyFpCg.js} +1 -1
- package/dist/{dimensions-CgMckRe2.cjs → dimensions-X4_igtmO.cjs} +1 -1
- package/dist/{execute-query-VxgY3tbz.js → execute-query-BEeqqDl6.js} +1499 -1491
- package/dist/execute-query-DJDE0zRU.cjs +1 -0
- package/dist/{index-0brX9D6q.cjs → index-NyouhE_A.cjs} +1 -1
- package/dist/{index-Ck90GjPy.js → index-kxX21arA.js} +15 -1
- package/dist/index.cjs +451 -436
- package/dist/index.js +24710 -23005
- package/dist/index.umd.js +689 -624
- package/dist/packages/sdk-ui/src/domains/dashboarding/common-filters/common-filters-connector.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/common-filters/selection-utils.d.ts +4 -3
- package/dist/packages/sdk-ui/src/domains/dashboarding/common-filters/types.d.ts +10 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/common-filters/use-common-filters.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/common-filters/utils.d.ts +2 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/components/content-panel.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/components/editable-layout/components/editable-layout-row.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/components/editable-layout/editable-layout.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/components/editable-layout/helpers.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/index.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/translate-dashboard-utils.d.ts +8 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/types.d.ts +9 -2
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/dashboard-model-reducer/index.d.ts +4 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/dashboard-model-reducer/persist-dashboard-model-middleware.d.ts +13 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/{use-dashboard-model-reducer.d.ts → dashboard-model-reducer/types.d.ts} +19 -36
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/dashboard-model-reducer/use-dashboard-model-reducer.d.ts +9 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/dashboard-model-reducer/utils.d.ts +28 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/use-dashboard-persistence.d.ts +4 -4
- package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/duplicate-widget/duplicate-widget-utils.d.ts +34 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/duplicate-widget/index.d.ts +2 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/duplicate-widget/use-duplicate-widget-menu-item.d.ts +57 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/jtd/jtd-config-transformers.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/jtd/jtd-filters.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/jtd/jtd-handlers.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/jtd/jtd-types.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/jtd/jtd-widget-transforms.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/use-jtd-widget.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/use-jtd.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/use-tabber.d.ts +2 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/types.d.ts +44 -3
- package/dist/packages/sdk-ui/src/domains/dashboarding/use-composed-dashboard.d.ts +15 -3
- package/dist/packages/sdk-ui/src/domains/dashboarding/utils.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/filters/components/cascading-filter-tile/cascading-filter-tile.d.ts +13 -0
- package/dist/packages/sdk-ui/src/domains/filters/components/cascading-filter-tile/cascading-level-filter.d.ts +11 -1
- package/dist/packages/sdk-ui/src/domains/filters/components/cascading-filter-tile/use-cascadding-filter-tile-menu-items/use-cascadding-filter-tile-lock-menu-item.d.ts +13 -0
- package/dist/packages/sdk-ui/src/domains/filters/components/cascading-filter-tile/use-cascadding-filter-tile-menu-items/use-cascadding-filter-tile-menu-items.d.ts +14 -0
- package/dist/packages/sdk-ui/src/domains/filters/components/common/reorderable-list.d.ts +32 -0
- package/dist/packages/sdk-ui/src/domains/filters/components/criteria-filter-tile/criteria-filter-tile.d.ts +13 -0
- package/dist/packages/sdk-ui/src/domains/filters/components/custom-filter-tile.d.ts +13 -0
- package/dist/packages/sdk-ui/src/domains/filters/components/date-filter/date-range-filter-tile/date-range-filter-tile.d.ts +13 -0
- package/dist/packages/sdk-ui/src/domains/filters/components/date-filter/relative-date-filter-tile/relative-date-filter-tile.d.ts +13 -0
- package/dist/packages/sdk-ui/src/domains/filters/components/{filter-tile.d.ts → filter-tile/filter-tile.d.ts} +13 -0
- package/dist/packages/sdk-ui/src/domains/filters/components/filter-tile/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/domains/filters/components/filter-tile/types.d.ts +36 -0
- package/dist/packages/sdk-ui/src/domains/filters/components/filter-tile-container.d.ts +12 -0
- package/dist/packages/sdk-ui/src/domains/filters/components/filters-panel/types.d.ts +27 -1
- package/dist/packages/sdk-ui/src/domains/filters/components/index.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/filters/components/member-filter-tile/member-filter-tile.d.ts +13 -0
- package/dist/packages/sdk-ui/src/domains/filters/components/unsupported-filter-tile.d.ts +17 -1
- package/dist/packages/sdk-ui/src/domains/filters/shared/clone-filter-and-toggle-locked.d.ts +7 -0
- package/dist/packages/sdk-ui/src/domains/filters/shared/filter-tile-menu-button.d.ts +10 -0
- package/dist/packages/sdk-ui/src/domains/filters/shared/use-filter-tile-menu-items/use-filter-tile-lock-menu-item.d.ts +15 -0
- package/dist/packages/sdk-ui/src/domains/filters/shared/use-filter-tile-menu-items/use-filter-tile-menu-items.d.ts +14 -0
- package/dist/packages/sdk-ui/src/domains/formulas/index.d.ts +0 -1
- package/dist/packages/sdk-ui/src/domains/formulas/use-get-shared-formula.d.ts +20 -7
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-data-options/translate-boxplot-data-options.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/widgets/components/chart-widget/chart-widget.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/widgets/components/chart-widget/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/chart-widget/types.d.ts +100 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/chart-widget/use-with-chart-widget-drilldown.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/widgets/components/{common-widget.d.ts → common-widget/common-widget.d.ts} +1 -1
- package/dist/packages/sdk-ui/src/domains/widgets/components/common-widget/index.d.ts +2 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/common-widget/types.d.ts +8 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/{custom-widget.d.ts → custom-widget/custom-widget.d.ts} +1 -1
- package/dist/packages/sdk-ui/src/domains/widgets/components/custom-widget/index.d.ts +2 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/custom-widget/types.d.ts +71 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/pivot-table-widget/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/pivot-table-widget/pivot-table-widget.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/widgets/components/pivot-table-widget/types.d.ts +141 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/pivot-table-widget/use-with-pivot-table-widget-drilldown.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/widgets/components/tabber-buttons-widget/types.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/widgets/components/table-widget/index.d.ts +2 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/{table-widget.d.ts → table-widget/table-widget.d.ts} +1 -1
- package/dist/packages/sdk-ui/src/domains/widgets/components/table-widget/types.d.ts +61 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/text-widget/index.d.ts +2 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/{text-widget.d.ts → text-widget/text-widget.d.ts} +1 -1
- package/dist/packages/sdk-ui/src/domains/widgets/components/text-widget/types.d.ts +29 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget/index.d.ts +2 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget/types.d.ts +45 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/{widget.d.ts → widget/widget.d.ts} +1 -1
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-dashboard-filters.d.ts +425 -425
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-widget-filters.d.ts +34 -34
- 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/to-widget-dto-style.d.ts +63 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/utils.d.ts +11 -5
- package/dist/packages/sdk-ui/src/domains/widgets/helpers/header-menu-utils.d.ts +9 -0
- package/dist/packages/sdk-ui/src/domains/widgets/helpers/index.d.ts +7 -0
- package/dist/packages/sdk-ui/src/domains/widgets/shared/widget-container/index.d.ts +2 -0
- package/dist/packages/sdk-ui/src/domains/widgets/shared/{widget-container.d.ts → widget-container/widget-container.d.ts} +7 -3
- package/dist/packages/sdk-ui/src/domains/widgets/shared/widget-header/types.d.ts +42 -0
- package/dist/packages/sdk-ui/src/domains/widgets/shared/widget-header/widget-header-info-button.d.ts +13 -0
- package/dist/packages/sdk-ui/src/domains/widgets/shared/widget-header/widget-header-toolbar.d.ts +23 -0
- package/dist/packages/sdk-ui/src/domains/widgets/shared/widget-header/widget-header.d.ts +14 -0
- package/dist/packages/sdk-ui/src/domains/widgets/shared/widget-header/widget-menu-button.d.ts +5 -0
- package/dist/packages/sdk-ui/src/domains/widgets/widget-model/widget-model-translator/widget-model-translator.d.ts +8 -1
- package/dist/packages/sdk-ui/src/domains/widgets/widget-model/widget-model.d.ts +1 -1
- package/dist/packages/sdk-ui/src/infra/api/rest-api.d.ts +2 -1
- package/dist/packages/sdk-ui/src/infra/api/types/dashboard-dto.d.ts +2 -1
- package/dist/packages/sdk-ui/src/infra/app/client-application.d.ts +17 -0
- package/dist/packages/sdk-ui/src/infra/app/settings/settings.d.ts +4 -0
- package/dist/packages/sdk-ui/src/infra/app/settings/types/deployment-props.d.ts +2 -1
- package/dist/packages/sdk-ui/src/infra/app/settings/types/features.d.ts +18 -1
- package/dist/packages/sdk-ui/src/infra/contexts/custom-widgets-provider/types.d.ts +41 -12
- package/dist/packages/sdk-ui/src/infra/contexts/custom-widgets-provider/use-execute-custom-widget-query.d.ts +12 -3
- package/dist/packages/sdk-ui/src/infra/contexts/plugin-provider/index.d.ts +5 -0
- package/dist/packages/sdk-ui/src/infra/contexts/plugin-provider/plugin-context.d.ts +15 -0
- package/dist/packages/sdk-ui/src/infra/contexts/plugin-provider/plugin-provider.d.ts +21 -0
- package/dist/packages/sdk-ui/src/infra/contexts/plugin-provider/types.d.ts +50 -0
- package/dist/packages/sdk-ui/src/infra/contexts/plugin-provider/validate-plugins.d.ts +9 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/de-de.d.ts +14 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/en-us.d.ts +14 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/es-ar.d.ts +14 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/es-es.d.ts +14 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/fr-fr.d.ts +14 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/it-it.d.ts +14 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/ja-jp.d.ts +14 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/ko-kr.d.ts +14 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/nl-nl.d.ts +14 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/pt-br.d.ts +14 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/ru-ru.d.ts +14 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/tr-tr.d.ts +14 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/zh-cn.d.ts +14 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/en.d.ts +14 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/index.d.ts +28 -0
- package/dist/packages/sdk-ui/src/modules/ai/api/chat-rest-api.d.ts +5 -3
- package/dist/packages/sdk-ui/src/modules/ai/api/narration-endpoints.d.ts +25 -0
- package/dist/packages/sdk-ui/src/modules/ai/api/types.d.ts +1 -1
- package/dist/packages/sdk-ui/src/modules/ai/chart/nlq-chart-widget.d.ts +2 -2
- package/dist/packages/sdk-ui/src/modules/ai/get-nlg-insights-from-widget.d.ts +4 -1
- package/dist/packages/sdk-ui/src/modules/ai/use-get-nlq-result.d.ts +1 -1
- package/dist/packages/sdk-ui/src/modules/analytics-composer/common/utils.d.ts +2 -1
- package/dist/packages/sdk-ui/src/modules/analytics-composer/dashboard/stringify-widgets.d.ts +1 -1
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/translate-dimensions-from-json.d.ts +3 -2
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/translate-dimensions-to-json.d.ts +6 -6
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/translate-filters-to-json.d.ts +3 -4
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/translate-measures-from-json.d.ts +13 -28
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/translate-measures-to-json.d.ts +6 -7
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/types.d.ts +45 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/types.d.ts +3 -1
- package/dist/packages/sdk-ui/src/modules/analytics-composer/widget/to-widget-code.d.ts +1 -1
- package/dist/packages/sdk-ui/src/modules/analytics-composer/widget/to-widget-props.d.ts +1 -1
- package/dist/packages/sdk-ui/src/modules/analytics-composer/widget/widget-composer.d.ts +1 -1
- package/dist/packages/sdk-ui/src/props.d.ts +19 -427
- package/dist/packages/sdk-ui/src/public-api/internal.d.ts +4 -0
- package/dist/packages/sdk-ui/src/public-api/public.d.ts +7 -7
- package/dist/packages/sdk-ui/src/public-api/sisense-internal.d.ts +6 -0
- package/dist/packages/sdk-ui/src/shared/components/alert/alert.d.ts +91 -0
- package/dist/packages/sdk-ui/src/shared/components/alert/index.d.ts +2 -0
- package/dist/packages/sdk-ui/src/shared/components/dynamic-size-container/default-size.d.ts +6 -6
- package/dist/packages/sdk-ui/src/shared/components/menu/menu-button.d.ts +2 -1
- package/dist/packages/sdk-ui/src/shared/components/quota-notification/quota-notification.d.ts +32 -0
- package/dist/packages/sdk-ui/src/shared/hooks/use-app-settings.d.ts +11 -0
- package/dist/packages/sdk-ui/src/shared/hooks/use-quota-notification.d.ts +54 -0
- package/dist/packages/sdk-ui/src/shared/hooks/use-quota-warning-dismissed.d.ts +8 -0
- package/dist/packages/sdk-ui/src/shared/icons/warning-icon.d.ts +6 -0
- package/dist/packages/sdk-ui/src/shared/icons/x-circle-icon.d.ts +6 -0
- package/dist/packages/sdk-ui/src/shared/types/menu-item.d.ts +17 -0
- package/dist/packages/sdk-ui/src/types.d.ts +113 -6
- package/dist/{use-common-filters-B2wOzse2.js → quota-notification-D6oMJal8.js} +11177 -10827
- package/dist/{use-common-filters-BCebg2_K.cjs → quota-notification-z3dv2KoH.cjs} +164 -114
- package/dist/translations/de-de.cjs +1 -1
- package/dist/translations/de-de.js +16 -2
- 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 +16 -2
- package/dist/translations/es-es.cjs +1 -1
- package/dist/translations/es-es.js +16 -2
- package/dist/translations/fr-fr.cjs +1 -1
- package/dist/translations/fr-fr.js +16 -2
- package/dist/translations/it-it.cjs +1 -1
- package/dist/translations/it-it.js +16 -2
- package/dist/translations/ja-jp.cjs +1 -1
- package/dist/translations/ja-jp.js +16 -2
- package/dist/translations/ko-kr.cjs +1 -1
- package/dist/translations/ko-kr.js +16 -2
- package/dist/translations/nl-nl.cjs +1 -1
- package/dist/translations/nl-nl.js +16 -2
- package/dist/translations/pt-br.cjs +1 -1
- package/dist/translations/pt-br.js +16 -2
- package/dist/translations/ru-ru.cjs +1 -1
- package/dist/translations/ru-ru.js +16 -2
- package/dist/translations/tr-tr.cjs +1 -1
- package/dist/translations/tr-tr.js +16 -2
- package/dist/translations/zh-cn.cjs +1 -1
- package/dist/translations/zh-cn.js +16 -2
- package/dist/{types-YU936hyL.cjs → types-CoY6F8Ma.cjs} +1 -1
- package/dist/{types-tDJE6TNR.js → types-ixSwJkxM.js} +1 -1
- package/dist/{utils-BRCTwjTN.js → utils-BP-BglHE.js} +5797 -5781
- package/dist/{utils-pvzOGByh.cjs → utils-C8YMrOdw.cjs} +36 -36
- package/dist/{widget-composer-T6nvM6Xc.js → widget-composer-CUUFoCb9.js} +3 -3
- package/dist/{widget-composer-ChJ9V_fN.cjs → widget-composer-DI4sHaNe.cjs} +3 -3
- package/package.json +13 -10
- package/dist/execute-query-CgkFRn7s.cjs +0 -1
- package/dist/packages/sdk-ui/src/domains/widgets/shared/widget-header-info-button.d.ts +0 -9
- package/dist/packages/sdk-ui/src/domains/widgets/shared/widget-header.d.ts +0 -13
- /package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/{use-dasboard-model-utils.d.ts → use-dashboard-model-utils.d.ts} +0 -0
|
@@ -6,13 +6,13 @@ import { ExecuteQueryResult } from './domains/query-execution/types';
|
|
|
6
6
|
import { type CustomDataCellFormatter, type CustomHeaderCellFormatter } from './domains/visualizations/components/pivot-table/formatters/types';
|
|
7
7
|
import { AreamapChartDataOptions, BoxplotChartCustomDataOptions, BoxplotChartDataOptions, CalendarHeatmapChartDataOptions, IndicatorChartDataOptions, PivotTableDataOptions, RangeChartDataOptions, RegularChartDataOptions, ScatterChartDataOptions, ScattermapChartDataOptions, TableDataOptions, TabularChartDataOptions } from './domains/visualizations/core/chart-data-options/types';
|
|
8
8
|
import { HighchartsOptions } from './domains/visualizations/core/chart-options-processor/chart-options-service';
|
|
9
|
+
import type { ChartWidgetProps } from './domains/widgets/components/chart-widget/types';
|
|
9
10
|
import { FiltersMergeStrategy } from './domains/widgets/components/widget-by-id/types';
|
|
10
11
|
import { AppConfig } from './infra/app/client-application';
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { DistributiveOmit } from './shared/utils/utility-types/distributive-omit';
|
|
14
|
-
import { AreamapDataPoint, AreamapStyleOptions, AreaRangeStyleOptions, AreaStyleOptions, BoxplotDataPoint, BoxplotStyleOptions, CalendarHeatmapDataPoint, CalendarHeatmapStyleOptions, CartesianChartDataOptions, CategoricalChartDataOptions, ChartDataOptions, ChartDataPoints, ChartStyleOptions, ChartType, ChartWidgetStyleOptions, CustomDrilldownResult, CustomWidgetStyleOptions, DataPoint, DrilldownOptions, DrilldownSelection, FunnelStyleOptions, GenericDataOptions, IndicatorDataPoint, IndicatorRenderOptions, IndicatorStyleOptions, LineStyleOptions, MenuAlignment, MenuItemSection, MenuPosition, PieStyleOptions, PivotTableDataPoint, PivotTableDrilldownOptions, PivotTableStyleOptions, PivotTableWidgetStyleOptions, PolarStyleOptions, RegularChartStyleOptions, RegularChartType, ScatterDataPoint, ScattermapDataPoint, ScattermapStyleOptions, ScatterStyleOptions, StackableStyleOptions, StreamgraphStyleOptions, SunburstStyleOptions, TableStyleOptions, TableWidgetStyleOptions, TabularChartStyleOptions, TextWidgetDataPoint, TextWidgetStyleOptions, ThemeConfig, ThemeOid, ThemeSettings, TreemapStyleOptions, WidgetByIdStyleOptions } from './types';
|
|
12
|
+
import type { Plugin } from './infra/contexts/plugin-provider/types';
|
|
13
|
+
import { AreamapDataPoint, AreamapStyleOptions, AreaRangeStyleOptions, AreaStyleOptions, BoxplotDataPoint, BoxplotStyleOptions, CalendarHeatmapDataPoint, CalendarHeatmapStyleOptions, CartesianChartDataOptions, CategoricalChartDataOptions, ChartDataOptions, ChartDataPoints, ChartStyleOptions, ChartType, CustomDrilldownResult, DataPoint, DrilldownOptions, DrilldownSelection, FunnelStyleOptions, IndicatorDataPoint, IndicatorRenderOptions, IndicatorStyleOptions, LineStyleOptions, MenuAlignment, MenuItemSection, MenuPosition, PieStyleOptions, PivotTableDataPoint, PivotTableDrilldownOptions, PivotTableStyleOptions, PolarStyleOptions, RegularChartStyleOptions, RegularChartType, ScatterDataPoint, ScattermapDataPoint, ScattermapStyleOptions, ScatterStyleOptions, StackableStyleOptions, StreamgraphStyleOptions, SunburstStyleOptions, TableStyleOptions, TabularChartStyleOptions, TextWidgetDataPoint, ThemeConfig, ThemeOid, ThemeSettings, TreemapStyleOptions, WidgetByIdStyleOptions } from './types';
|
|
15
14
|
export type { TabberButtonsWidgetProps } from './domains/widgets/components/tabber-buttons-widget/types';
|
|
15
|
+
export type { WidgetProps, WidgetType, WithCommonWidgetProps, } from './domains/widgets/components/widget/types';
|
|
16
16
|
export type { MenuItemSection, HighchartsOptions };
|
|
17
17
|
/**
|
|
18
18
|
* Configurations and authentication for Sisense Context.
|
|
@@ -137,6 +137,18 @@ export interface SisenseContextProviderProps {
|
|
|
137
137
|
* @internal
|
|
138
138
|
*/
|
|
139
139
|
disableFusionPalette?: boolean;
|
|
140
|
+
/**
|
|
141
|
+
* Array of plugins to register.
|
|
142
|
+
*
|
|
143
|
+
* Plugins should satisfy the following conditions:
|
|
144
|
+
* - Name uniqueness (duplicates are skipped with a warning)
|
|
145
|
+
* - Version compatibility with the current SDK version
|
|
146
|
+
*
|
|
147
|
+
* @category Sisense App
|
|
148
|
+
*
|
|
149
|
+
* @internal
|
|
150
|
+
*/
|
|
151
|
+
plugins?: Plugin[];
|
|
140
152
|
}
|
|
141
153
|
/**
|
|
142
154
|
* Props for {@link ExecuteQuery} component.
|
|
@@ -364,7 +376,7 @@ interface HighchartsBasedChartEventProps {
|
|
|
364
376
|
interface BaseChartEventProps {
|
|
365
377
|
/**
|
|
366
378
|
* A callback that allows to modify data immediately after it has been retrieved.
|
|
367
|
-
*
|
|
379
|
+
* It can be used to inject modification of queried data.
|
|
368
380
|
*
|
|
369
381
|
* @category Callbacks
|
|
370
382
|
*/
|
|
@@ -615,7 +627,7 @@ export interface BaseChartProps extends BaseChartEventProps {
|
|
|
615
627
|
/**
|
|
616
628
|
* Chart props to be able to react on chart events.
|
|
617
629
|
*/
|
|
618
|
-
interface ChartEventProps extends BaseChartEventProps {
|
|
630
|
+
export interface ChartEventProps extends BaseChartEventProps {
|
|
619
631
|
/**
|
|
620
632
|
* Click handler callback for a data point
|
|
621
633
|
*
|
|
@@ -1104,414 +1116,13 @@ export interface WidgetByIdProps extends Omit<ChartWidgetProps, 'dataSource' | '
|
|
|
1104
1116
|
*/
|
|
1105
1117
|
styleOptions?: WidgetByIdStyleOptions;
|
|
1106
1118
|
/**
|
|
1107
|
-
*
|
|
1119
|
+
* Drilldown options for the widget
|
|
1108
1120
|
*
|
|
1109
1121
|
* @category Widget
|
|
1110
1122
|
* @internal
|
|
1111
1123
|
*/
|
|
1112
1124
|
drilldownOptions?: DrilldownOptions | PivotTableDrilldownOptions;
|
|
1113
1125
|
}
|
|
1114
|
-
/**
|
|
1115
|
-
* Props for the {@link ChartWidget} component
|
|
1116
|
-
*
|
|
1117
|
-
*/
|
|
1118
|
-
export interface ChartWidgetProps extends ChartEventProps {
|
|
1119
|
-
/**
|
|
1120
|
-
* Data source the query is run against - e.g. `Sample ECommerce`
|
|
1121
|
-
*
|
|
1122
|
-
* If not specified, the query will use the `defaultDataSource` specified in the parent Sisense Context.
|
|
1123
|
-
*
|
|
1124
|
-
* @category Data
|
|
1125
|
-
*/
|
|
1126
|
-
dataSource?: DataSource;
|
|
1127
|
-
/**
|
|
1128
|
-
* Filters that will slice query results
|
|
1129
|
-
*
|
|
1130
|
-
* @category Data
|
|
1131
|
-
*/
|
|
1132
|
-
filters?: Filter[] | FilterRelations;
|
|
1133
|
-
/**
|
|
1134
|
-
* Highlight filters that will highlight results that pass filter criteria
|
|
1135
|
-
*
|
|
1136
|
-
* @category Data
|
|
1137
|
-
*/
|
|
1138
|
-
highlights?: Filter[];
|
|
1139
|
-
/**
|
|
1140
|
-
* Default chart type of each series
|
|
1141
|
-
*
|
|
1142
|
-
* @category Chart
|
|
1143
|
-
*/
|
|
1144
|
-
chartType: ChartType;
|
|
1145
|
-
/**
|
|
1146
|
-
* Configurations for how to interpret and present the data passed to the chart
|
|
1147
|
-
*
|
|
1148
|
-
* @category Chart
|
|
1149
|
-
*/
|
|
1150
|
-
dataOptions: ChartDataOptions;
|
|
1151
|
-
/**
|
|
1152
|
-
* Style options for both the chart and widget including the widget header
|
|
1153
|
-
*
|
|
1154
|
-
* @category Widget
|
|
1155
|
-
*/
|
|
1156
|
-
styleOptions?: ChartWidgetStyleOptions;
|
|
1157
|
-
/**
|
|
1158
|
-
* List of categories to allow drilldowns on
|
|
1159
|
-
*
|
|
1160
|
-
* @category Widget
|
|
1161
|
-
*/
|
|
1162
|
-
drilldownOptions?: DrilldownOptions;
|
|
1163
|
-
/**
|
|
1164
|
-
* React nodes to be rendered at the top of component, before the chart
|
|
1165
|
-
*
|
|
1166
|
-
* @category Widget
|
|
1167
|
-
* @internal
|
|
1168
|
-
*/
|
|
1169
|
-
topSlot?: ReactNode;
|
|
1170
|
-
/**
|
|
1171
|
-
* React nodes to be rendered at the bottom of component, after the chart
|
|
1172
|
-
*
|
|
1173
|
-
* @category Widget
|
|
1174
|
-
* @internal
|
|
1175
|
-
*/
|
|
1176
|
-
bottomSlot?: ReactNode;
|
|
1177
|
-
/**
|
|
1178
|
-
* ContextMenu items for when data points are selected or right-clicked
|
|
1179
|
-
*
|
|
1180
|
-
* @category Widget
|
|
1181
|
-
* @internal
|
|
1182
|
-
*/
|
|
1183
|
-
contextMenuItems?: MenuItemSection[];
|
|
1184
|
-
/**
|
|
1185
|
-
* Callback for when context menu is closed
|
|
1186
|
-
*
|
|
1187
|
-
* @category Widget
|
|
1188
|
-
* @internal
|
|
1189
|
-
*/
|
|
1190
|
-
onContextMenuClose?: () => void;
|
|
1191
|
-
/**
|
|
1192
|
-
* Title of the widget
|
|
1193
|
-
*
|
|
1194
|
-
* @category Widget
|
|
1195
|
-
*/
|
|
1196
|
-
title?: string;
|
|
1197
|
-
/**
|
|
1198
|
-
* Description of the widget
|
|
1199
|
-
*
|
|
1200
|
-
* @category Widget
|
|
1201
|
-
*/
|
|
1202
|
-
description?: string;
|
|
1203
|
-
/**
|
|
1204
|
-
* Boolean flag whether selecting data points triggers highlight filter of the selected data
|
|
1205
|
-
*
|
|
1206
|
-
* Recommended to turn on when the Chart Widget component is enhanced with data drilldown by the Drilldown Widget component
|
|
1207
|
-
*
|
|
1208
|
-
* If not specified, the default value is `false`
|
|
1209
|
-
*
|
|
1210
|
-
* @category Widget
|
|
1211
|
-
*/
|
|
1212
|
-
highlightSelectionDisabled?: boolean;
|
|
1213
|
-
/** @internal */
|
|
1214
|
-
onChange?: (props: Partial<ChartWidgetProps>) => void;
|
|
1215
|
-
}
|
|
1216
|
-
/**
|
|
1217
|
-
* Props for the {@link TableWidget} component
|
|
1218
|
-
*
|
|
1219
|
-
* @internal
|
|
1220
|
-
*/
|
|
1221
|
-
export interface TableWidgetProps {
|
|
1222
|
-
/**
|
|
1223
|
-
* Data source the query is run against - e.g. `Sample ECommerce`
|
|
1224
|
-
*
|
|
1225
|
-
* If not specified, the query will use the `defaultDataSource` specified in the parent Sisense Context.
|
|
1226
|
-
*
|
|
1227
|
-
* @category Data
|
|
1228
|
-
*/
|
|
1229
|
-
dataSource?: DataSource;
|
|
1230
|
-
/**
|
|
1231
|
-
* Filters that will slice query results
|
|
1232
|
-
*
|
|
1233
|
-
* @category Data
|
|
1234
|
-
*/
|
|
1235
|
-
filters?: Filter[] | FilterRelations;
|
|
1236
|
-
/**
|
|
1237
|
-
* Configurations for how to interpret and present the data passed to the table
|
|
1238
|
-
*
|
|
1239
|
-
* @category Chart
|
|
1240
|
-
*/
|
|
1241
|
-
dataOptions: TableDataOptions;
|
|
1242
|
-
/**
|
|
1243
|
-
* Style options for both the table and widget including the widget header
|
|
1244
|
-
*
|
|
1245
|
-
* @category Widget
|
|
1246
|
-
*/
|
|
1247
|
-
styleOptions?: TableWidgetStyleOptions;
|
|
1248
|
-
/**
|
|
1249
|
-
* React nodes to be rendered at the top of component, before the table
|
|
1250
|
-
*
|
|
1251
|
-
* @category Widget
|
|
1252
|
-
*/
|
|
1253
|
-
topSlot?: ReactNode;
|
|
1254
|
-
/**
|
|
1255
|
-
* React nodes to be rendered at the bottom of component, after the table
|
|
1256
|
-
*
|
|
1257
|
-
* @category Widget
|
|
1258
|
-
*/
|
|
1259
|
-
bottomSlot?: ReactNode;
|
|
1260
|
-
/**
|
|
1261
|
-
* Title of the widget
|
|
1262
|
-
*
|
|
1263
|
-
* @category Widget
|
|
1264
|
-
*/
|
|
1265
|
-
title?: string;
|
|
1266
|
-
/**
|
|
1267
|
-
* Description of the widget
|
|
1268
|
-
*
|
|
1269
|
-
* @category Widget
|
|
1270
|
-
*/
|
|
1271
|
-
description?: string;
|
|
1272
|
-
}
|
|
1273
|
-
/**
|
|
1274
|
-
* Props for the {@link PivotTableWidget} component
|
|
1275
|
-
*/
|
|
1276
|
-
export interface PivotTableWidgetProps {
|
|
1277
|
-
/**
|
|
1278
|
-
* Data source the query is run against - e.g. `Sample ECommerce`
|
|
1279
|
-
*
|
|
1280
|
-
* If not specified, the query will use the `defaultDataSource` specified in the parent Sisense Context.
|
|
1281
|
-
*
|
|
1282
|
-
* @category Data
|
|
1283
|
-
*/
|
|
1284
|
-
dataSource?: DataSource;
|
|
1285
|
-
/**
|
|
1286
|
-
* Filters that will slice query results
|
|
1287
|
-
*
|
|
1288
|
-
* @category Data
|
|
1289
|
-
*/
|
|
1290
|
-
filters?: Filter[] | FilterRelations;
|
|
1291
|
-
/**
|
|
1292
|
-
* Filters that will highlight query results
|
|
1293
|
-
*
|
|
1294
|
-
* @category Data
|
|
1295
|
-
*/
|
|
1296
|
-
highlights?: Filter[];
|
|
1297
|
-
/**
|
|
1298
|
-
* Configurations for how to interpret and present the data passed to the table
|
|
1299
|
-
*
|
|
1300
|
-
* @category Chart
|
|
1301
|
-
*/
|
|
1302
|
-
dataOptions: PivotTableDataOptions;
|
|
1303
|
-
/**
|
|
1304
|
-
* Style options for both the table and widget including the widget header
|
|
1305
|
-
*
|
|
1306
|
-
* @category Widget
|
|
1307
|
-
*/
|
|
1308
|
-
styleOptions?: PivotTableWidgetStyleOptions;
|
|
1309
|
-
/**
|
|
1310
|
-
* React nodes to be rendered at the top of component, before the table
|
|
1311
|
-
*
|
|
1312
|
-
* @category Widget
|
|
1313
|
-
* @internal
|
|
1314
|
-
*/
|
|
1315
|
-
topSlot?: ReactNode;
|
|
1316
|
-
/**
|
|
1317
|
-
* React nodes to be rendered at the bottom of component, after the table
|
|
1318
|
-
*
|
|
1319
|
-
* @category Widget
|
|
1320
|
-
* @internal
|
|
1321
|
-
*/
|
|
1322
|
-
bottomSlot?: ReactNode;
|
|
1323
|
-
/**
|
|
1324
|
-
* Title of the widget
|
|
1325
|
-
*
|
|
1326
|
-
* @category Widget
|
|
1327
|
-
*/
|
|
1328
|
-
title?: string;
|
|
1329
|
-
/**
|
|
1330
|
-
* Description of the widget
|
|
1331
|
-
*
|
|
1332
|
-
* @category Widget
|
|
1333
|
-
*/
|
|
1334
|
-
description?: string;
|
|
1335
|
-
/**
|
|
1336
|
-
* Configuration for the pivot table drilldown
|
|
1337
|
-
*
|
|
1338
|
-
* @category Widget
|
|
1339
|
-
*/
|
|
1340
|
-
drilldownOptions?: PivotTableDrilldownOptions;
|
|
1341
|
-
/**
|
|
1342
|
-
* Callback function that is called when the pivot table cell is clicked
|
|
1343
|
-
*
|
|
1344
|
-
* @category Callbacks
|
|
1345
|
-
*/
|
|
1346
|
-
onDataPointClick?: PivotTableDataPointEventHandler;
|
|
1347
|
-
/**
|
|
1348
|
-
* Callback function that is called when the pivot table cell is right-clicked
|
|
1349
|
-
*
|
|
1350
|
-
* @category Callbacks
|
|
1351
|
-
*/
|
|
1352
|
-
onDataPointContextMenu?: PivotTableDataPointEventHandler;
|
|
1353
|
-
/**
|
|
1354
|
-
* Applies custom styling and behavior to pivot table data cells.
|
|
1355
|
-
*
|
|
1356
|
-
* This formatter function returns formatting objects instead of mutating parameters,
|
|
1357
|
-
* following functional programming principles. Use this single callback to combine
|
|
1358
|
-
* multiple handlers and control the call sequence from outside the pivot.
|
|
1359
|
-
*
|
|
1360
|
-
* @example
|
|
1361
|
-
* ```typescript
|
|
1362
|
-
* const customDataFormatter: CustomDataCellFormatter = (cell, jaqlPanelItem, dataOption, id) => {
|
|
1363
|
-
* if (cell.value > 1000) {
|
|
1364
|
-
* return {
|
|
1365
|
-
* style: { backgroundColor: 'lightgreen' },
|
|
1366
|
-
* content: `${cell.value} (High)`
|
|
1367
|
-
* };
|
|
1368
|
-
* }
|
|
1369
|
-
* };
|
|
1370
|
-
* ```
|
|
1371
|
-
*
|
|
1372
|
-
* @internal
|
|
1373
|
-
*/
|
|
1374
|
-
onDataCellFormat?: CustomDataCellFormatter;
|
|
1375
|
-
/**
|
|
1376
|
-
* Applies custom styling and behavior to pivot table row and column headers.
|
|
1377
|
-
*
|
|
1378
|
-
* This formatter function returns formatting objects instead of mutating parameters,
|
|
1379
|
-
* following functional programming principles. Use this single callback to combine
|
|
1380
|
-
* multiple handlers and control the call sequence from outside the pivot.
|
|
1381
|
-
*
|
|
1382
|
-
* @example
|
|
1383
|
-
* ```typescript
|
|
1384
|
-
* const customHeaderFormatter: CustomHeaderCellFormatter = (cell, jaqlPanelItem, dataOption, id) => {
|
|
1385
|
-
* if (cell.content === 'Total') {
|
|
1386
|
-
* return {
|
|
1387
|
-
* style: { fontWeight: 'bold', color: 'blue' },
|
|
1388
|
-
* className: 'total-header'
|
|
1389
|
-
* };
|
|
1390
|
-
* }
|
|
1391
|
-
* };
|
|
1392
|
-
* ```
|
|
1393
|
-
*
|
|
1394
|
-
* @internal
|
|
1395
|
-
*/
|
|
1396
|
-
onHeaderCellFormat?: CustomHeaderCellFormatter;
|
|
1397
|
-
/** @internal */
|
|
1398
|
-
onChange?: (props: Partial<PivotTableWidgetProps>) => void;
|
|
1399
|
-
}
|
|
1400
|
-
/**
|
|
1401
|
-
* Props for the `TextWidget` component.
|
|
1402
|
-
*/
|
|
1403
|
-
export interface TextWidgetProps {
|
|
1404
|
-
/**
|
|
1405
|
-
* Style options for the text widget.
|
|
1406
|
-
*
|
|
1407
|
-
* @category Widget
|
|
1408
|
-
*/
|
|
1409
|
-
styleOptions: TextWidgetStyleOptions;
|
|
1410
|
-
/**
|
|
1411
|
-
* A callback that allows you to customize what happens when a text widget is clicked.
|
|
1412
|
-
* Since TextWidget doesn't have specific data points, this fires when clicking anywhere on the widget.
|
|
1413
|
-
*
|
|
1414
|
-
* @category Callbacks
|
|
1415
|
-
* @internal
|
|
1416
|
-
*/
|
|
1417
|
-
onDataPointClick?: TextWidgetDataPointEventHandler;
|
|
1418
|
-
}
|
|
1419
|
-
/**
|
|
1420
|
-
* Props for the Custom Widget component
|
|
1421
|
-
*/
|
|
1422
|
-
export interface CustomWidgetProps {
|
|
1423
|
-
/**
|
|
1424
|
-
* Custom widget type. This is typically the name/ID of the custom widget.
|
|
1425
|
-
*
|
|
1426
|
-
* @category Widget
|
|
1427
|
-
*/
|
|
1428
|
-
customWidgetType: string;
|
|
1429
|
-
/**
|
|
1430
|
-
* Data source the query is run against - e.g. `Sample ECommerce`
|
|
1431
|
-
*
|
|
1432
|
-
* If not specified, the query will use the `defaultDataSource` specified in the parent Sisense Context.
|
|
1433
|
-
*
|
|
1434
|
-
* @category Data
|
|
1435
|
-
*/
|
|
1436
|
-
dataSource?: DataSource;
|
|
1437
|
-
/**
|
|
1438
|
-
* Filters that will slice query results
|
|
1439
|
-
*
|
|
1440
|
-
* @category Data
|
|
1441
|
-
*/
|
|
1442
|
-
filters?: Filter[] | FilterRelations;
|
|
1443
|
-
/**
|
|
1444
|
-
* Filters that will highlight query results
|
|
1445
|
-
*
|
|
1446
|
-
* @category Data
|
|
1447
|
-
*/
|
|
1448
|
-
highlights?: Filter[];
|
|
1449
|
-
/**
|
|
1450
|
-
* Configurations for how to interpret and present the data passed to the table
|
|
1451
|
-
*
|
|
1452
|
-
* @category Chart
|
|
1453
|
-
*/
|
|
1454
|
-
dataOptions: GenericDataOptions;
|
|
1455
|
-
/**
|
|
1456
|
-
* Style options for the custom widget.
|
|
1457
|
-
*
|
|
1458
|
-
* @category Widget
|
|
1459
|
-
*/
|
|
1460
|
-
styleOptions?: CustomWidgetStyleOptions;
|
|
1461
|
-
/**
|
|
1462
|
-
* Title of the widget
|
|
1463
|
-
*
|
|
1464
|
-
* @category Widget
|
|
1465
|
-
*/
|
|
1466
|
-
title?: string;
|
|
1467
|
-
/**
|
|
1468
|
-
* Description of the widget
|
|
1469
|
-
*
|
|
1470
|
-
* @category Widget
|
|
1471
|
-
*/
|
|
1472
|
-
description?: string;
|
|
1473
|
-
/**
|
|
1474
|
-
* Specific options for the custom widget.
|
|
1475
|
-
*
|
|
1476
|
-
* @category Widget
|
|
1477
|
-
*/
|
|
1478
|
-
customOptions?: Record<string, any>;
|
|
1479
|
-
}
|
|
1480
|
-
/**
|
|
1481
|
-
* A utility type that combines widget-specific properties (`BaseWidget`)
|
|
1482
|
-
* with a common widget props including corresponding widget type (`Type`).
|
|
1483
|
-
*/
|
|
1484
|
-
export type WithCommonWidgetProps<BaseWidget, Type extends WidgetType> = BaseWidget & {
|
|
1485
|
-
/**
|
|
1486
|
-
* Unique identifier of the widget within the container component (dashboard)
|
|
1487
|
-
*
|
|
1488
|
-
*/
|
|
1489
|
-
readonly id: string;
|
|
1490
|
-
/**
|
|
1491
|
-
* Widget type
|
|
1492
|
-
*/
|
|
1493
|
-
widgetType: Type;
|
|
1494
|
-
/**
|
|
1495
|
-
* Optional handler function to process menu options before opening the context menu.
|
|
1496
|
-
*
|
|
1497
|
-
* @internal
|
|
1498
|
-
*/
|
|
1499
|
-
onBeforeMenuOpen?: BeforeMenuOpenHandler;
|
|
1500
|
-
};
|
|
1501
|
-
/**
|
|
1502
|
-
* Type of the widget component.
|
|
1503
|
-
*/
|
|
1504
|
-
export type WidgetType = 'chart' | 'pivot' | 'text' | 'custom';
|
|
1505
|
-
/**
|
|
1506
|
-
* Props for the widget component within a container component like dashboard.
|
|
1507
|
-
*/
|
|
1508
|
-
export type WidgetProps = WithCommonWidgetProps<ChartWidgetProps, 'chart'> | WithCommonWidgetProps<PivotTableWidgetProps, 'pivot'> | WithCommonWidgetProps<TextWidgetProps, 'text'> | WithCommonWidgetProps<CustomWidgetProps, 'custom'>;
|
|
1509
|
-
/**
|
|
1510
|
-
* Props for the facade widget component.
|
|
1511
|
-
*
|
|
1512
|
-
* @internal
|
|
1513
|
-
*/
|
|
1514
|
-
export type CommonWidgetProps = DistributiveOmit<WidgetProps, 'id'>;
|
|
1515
1126
|
/**
|
|
1516
1127
|
* Props for {@link ExecuteQueryByWidgetId} component.
|
|
1517
1128
|
*
|
|
@@ -1778,25 +1389,6 @@ export interface DrilldownWidgetProps {
|
|
|
1778
1389
|
*/
|
|
1779
1390
|
children: (customDrilldownResult: CustomDrilldownResult) => ReactNode;
|
|
1780
1391
|
}
|
|
1781
|
-
/**
|
|
1782
|
-
* Params of the {@link useGetSharedFormula} hook
|
|
1783
|
-
*
|
|
1784
|
-
* Can consist either of an oid or a name/dataSource pair
|
|
1785
|
-
*/
|
|
1786
|
-
export interface UseGetSharedFormulaParams extends HookEnableParam {
|
|
1787
|
-
/**
|
|
1788
|
-
* Formula identifier
|
|
1789
|
-
*/
|
|
1790
|
-
oid?: string;
|
|
1791
|
-
/**
|
|
1792
|
-
* Formula name
|
|
1793
|
-
*/
|
|
1794
|
-
name?: string;
|
|
1795
|
-
/**
|
|
1796
|
-
* Data source - e.g. `Sample ECommerce`
|
|
1797
|
-
*/
|
|
1798
|
-
dataSource?: DataSource;
|
|
1799
|
-
}
|
|
1800
1392
|
/**
|
|
1801
1393
|
* Props of the {@link CalendarHeatmapChart} component.
|
|
1802
1394
|
*/
|
|
@@ -16,7 +16,10 @@ export { getDefaultThemeSettings } from '../infra/contexts/theme-provider/defaul
|
|
|
16
16
|
export { updateDrilldownSelections } from '../domains/drilldown/hooks/use-drilldown-core';
|
|
17
17
|
export { getSelectionTitleMenuItem, getDrilldownMenuItems, } from '../domains/drilldown/hooks/use-drilldown';
|
|
18
18
|
export { processDrilldownSelections } from '../domains/drilldown/hooks/use-drilldown-core';
|
|
19
|
+
export { CommonWidget, type CommonWidgetProps } from '../domains/widgets/components/common-widget';
|
|
20
|
+
export { TableWidget, type TableWidgetProps } from '../domains/widgets/components/table-widget';
|
|
19
21
|
export * from '../infra/contexts/custom-widgets-provider/custom-widgets-provider-adapter';
|
|
22
|
+
export { useGetSharedFormulaInternal } from '../domains/formulas/use-get-shared-formula';
|
|
20
23
|
export { translateColumnToAttribute } from '../domains/visualizations/core/chart-data-options/utils';
|
|
21
24
|
export { isSameAttribute } from '../shared/utils/filters';
|
|
22
25
|
export { isChartWidgetProps, isPivotTableWidgetProps, isTextWidgetProps, isCustomWidgetProps, } from '../domains/widgets/components/widget-by-id/utils';
|
|
@@ -24,3 +27,4 @@ export { getChartType } from '../domains/widgets/components/widget-by-id/utils';
|
|
|
24
27
|
export type { SoftUnion } from '../shared/utils/utility-types';
|
|
25
28
|
export type { BeforeMenuOpenHandler } from '../infra/contexts/menu-provider/types';
|
|
26
29
|
export * from '../shared/hooks/data-load-state-reducer';
|
|
30
|
+
export * from '../domains/widgets/helpers';
|
|
@@ -41,20 +41,20 @@ export { SisenseContextProvider } from '../infra/contexts/sisense-context/sisens
|
|
|
41
41
|
export * from '../infra/contexts/sisense-context/custom-sisense-context-provider';
|
|
42
42
|
export * from '../infra/contexts/theme-provider/custom-theme-provider';
|
|
43
43
|
export { DrilldownWidget } from '../domains/drilldown/components/drilldown-widget';
|
|
44
|
-
export { ChartWidget } from '../domains/widgets/components/chart-widget';
|
|
45
|
-
export {
|
|
46
|
-
export {
|
|
47
|
-
export {
|
|
48
|
-
export {
|
|
44
|
+
export { ChartWidget, type ChartWidgetProps } from '../domains/widgets/components/chart-widget';
|
|
45
|
+
export { PivotTableWidget, type PivotTableWidgetProps, } from '../domains/widgets/components/pivot-table-widget';
|
|
46
|
+
export { TextWidget, type TextWidgetProps } from '../domains/widgets/components/text-widget';
|
|
47
|
+
export { Widget, type WidgetProps, type WidgetType, type WithCommonWidgetProps, } from '../domains/widgets/components/widget';
|
|
48
|
+
export { type CustomWidgetProps } from '../domains/widgets/components/custom-widget';
|
|
49
49
|
export { TabberButtonsWidget } from '../domains/widgets/components/tabber-buttons-widget';
|
|
50
50
|
export { DrilldownBreadcrumbs } from '../domains/drilldown/components/drilldown-breadcrumbs';
|
|
51
51
|
export * from '../infra/contexts/custom-widgets-provider/types';
|
|
52
52
|
export { useCustomWidgets } from '../infra/contexts/custom-widgets-provider';
|
|
53
|
-
export { useGetDashboardModel, useGetDashboardModels, useDashboardModel, type DashboardModel, type GetDashboardModelParams, type GetDashboardModelsParams, type DashboardModelState, type DashboardModelLoadingState, type DashboardModelSuccessState, type DashboardModelErrorState, type DashboardModelsState, type DashboardModelsLoadingState, type DashboardModelsSuccessState, type DashboardModelsErrorState, type GetDashboardModelOptions, type GetDashboardModelsOptions, type WidgetsPanelColumnLayout, type WidgetsPanelLayout, type WidgetsPanelColumn, type WidgetsPanelRow, type WidgetsPanelCell, type WidgetId, type DashboardId, type WidgetsOptions, type CommonFiltersOptions, type CommonFiltersApplyMode, type FiltersIgnoringRules, UseDashboardModelActionType, } from '../domains/dashboarding/dashboard-model';
|
|
53
|
+
export { useGetDashboardModel, useGetDashboardModels, useDashboardModel, type DashboardModel, type GetDashboardModelParams, type GetDashboardModelsParams, type DashboardModelState, type DashboardModelLoadingState, type DashboardModelSuccessState, type DashboardModelErrorState, type DashboardModelsState, type DashboardModelsLoadingState, type DashboardModelsSuccessState, type DashboardModelsErrorState, type GetDashboardModelOptions, type GetDashboardModelsOptions, type WidgetsPanelColumnLayout, type WidgetsPanelLayout, type WidgetsPanelColumn, type WidgetsPanelRow, type WidgetsPanelCell, type WidgetId, type DashboardId, type WidgetsOptions, type SpecificWidgetOptions, type CommonFiltersOptions, type CommonFiltersApplyMode, type FiltersIgnoringRules, UseDashboardModelActionType, } from '../domains/dashboarding/dashboard-model';
|
|
54
54
|
export { useGetWidgetModel, type WidgetModel, type WidgetDataOptions, type WidgetModelState, type WidgetModelLoadingState, type WidgetModelErrorState, type WidgetModelSuccessState, type GetWidgetModelParams, } from '../domains/widgets/widget-model';
|
|
55
55
|
export { useGetHierarchyModels, type HierarchyModel, type Hierarchy, type HierarchyId, type GetHierarchyModelsParams, type HierarchyModelsState, type HierarchyModelsLoadingState, type HierarchyModelsErrorState, type HierarchyModelsSuccessState, } from '../domains/drilldown/hierarchy-model';
|
|
56
56
|
export * from '../domains/filters';
|
|
57
|
-
export
|
|
57
|
+
export { useGetSharedFormula, type GetSharedFormulaParams, type UseGetSharedFormulaParams, type SharedFormulaState, type SharedFormulaLoadingState, type SharedFormulaErrorState, type SharedFormulaSuccessState, } from '../domains/formulas';
|
|
58
58
|
export { DataSchemaBrowser } from '../domains/data-browser/data-schema-browser/data-schema-browser';
|
|
59
59
|
export { useGetDataSourceDimensions, useGetDataSourceFields, type GetDataSourceDimensionsParams, type DataSourceDimensionsState, type DataSourceDimensionsLoadingState, type DataSourceDimensionsErrorState, type DataSourceDimensionsSuccessState, } from '../domains/data-browser/data-source-dimensional-model';
|
|
60
60
|
export { ThemeProvider } from '../infra/contexts/theme-provider';
|
|
@@ -13,3 +13,9 @@ export { trackHook } from '../infra/decorators/hook-decorators';
|
|
|
13
13
|
export { useThemeContext } from '../infra/contexts/theme-provider';
|
|
14
14
|
export { type DashboardDto } from '../infra/api/types/dashboard-dto';
|
|
15
15
|
export { type WidgetDto } from '../domains/widgets/components/widget-by-id/types';
|
|
16
|
+
export { useAppSettings } from '../shared/hooks/use-app-settings';
|
|
17
|
+
export type { AppSettings } from '../infra/app/settings/settings';
|
|
18
|
+
export { QuotaNotification } from '../shared/components/quota-notification/quota-notification.js';
|
|
19
|
+
export type { QuotaNotificationProps } from '../shared/components/quota-notification/quota-notification.js';
|
|
20
|
+
export { useQuotaNotification } from '../shared/hooks/use-quota-notification.js';
|
|
21
|
+
export type { QuotaNotificationOptions, QuotaApiResponse, QuotaState, } from '../shared/hooks/use-quota-notification.js';
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Props for Alert component
|
|
4
|
+
*/
|
|
5
|
+
export interface AlertProps {
|
|
6
|
+
/**
|
|
7
|
+
* Variant of the alert
|
|
8
|
+
*/
|
|
9
|
+
variant?: 'error' | 'warning' | 'info';
|
|
10
|
+
/**
|
|
11
|
+
* Title text displayed in the alert
|
|
12
|
+
*/
|
|
13
|
+
title?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Description text displayed in the alert
|
|
16
|
+
*/
|
|
17
|
+
description?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Custom icon to display. If not provided, AlertIcon is used
|
|
20
|
+
*/
|
|
21
|
+
icon?: ReactNode;
|
|
22
|
+
/**
|
|
23
|
+
* Whether the alert can be dismissed
|
|
24
|
+
*/
|
|
25
|
+
dismissible?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Callback when alert is dismissed
|
|
28
|
+
*/
|
|
29
|
+
onDismiss?: () => void;
|
|
30
|
+
/**
|
|
31
|
+
* When true and dismissible, clicking anywhere on the alert (not just the close button)
|
|
32
|
+
* triggers onDismiss. Useful for banner-style alerts.
|
|
33
|
+
*
|
|
34
|
+
* @default false
|
|
35
|
+
*/
|
|
36
|
+
dismissOnClick?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Additional CSS class name
|
|
39
|
+
*/
|
|
40
|
+
className?: string;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Alert component for displaying warnings, errors, and informational messages
|
|
44
|
+
*
|
|
45
|
+
* @param props - Alert component props
|
|
46
|
+
* @returns Alert component
|
|
47
|
+
* @internal
|
|
48
|
+
*/
|
|
49
|
+
export declare const Alert: ({ variant, title, description, icon, dismissible, onDismiss, dismissOnClick, className, }: AlertProps) => import("react/jsx-runtime").JSX.Element;
|
|
50
|
+
/**
|
|
51
|
+
* Props for AlertTitle component
|
|
52
|
+
*/
|
|
53
|
+
export interface AlertTitleProps {
|
|
54
|
+
/**
|
|
55
|
+
* Content of the title
|
|
56
|
+
*/
|
|
57
|
+
children: ReactNode;
|
|
58
|
+
/**
|
|
59
|
+
* Additional CSS class name
|
|
60
|
+
*/
|
|
61
|
+
className?: string;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Alert title subcomponent
|
|
65
|
+
*
|
|
66
|
+
* @param props - AlertTitle props
|
|
67
|
+
* @returns AlertTitle component
|
|
68
|
+
* @internal
|
|
69
|
+
*/
|
|
70
|
+
export declare const AlertTitle: ({ children, className }: AlertTitleProps) => import("react/jsx-runtime").JSX.Element;
|
|
71
|
+
/**
|
|
72
|
+
* Props for AlertDescription component
|
|
73
|
+
*/
|
|
74
|
+
export interface AlertDescriptionProps {
|
|
75
|
+
/**
|
|
76
|
+
* Content of the description
|
|
77
|
+
*/
|
|
78
|
+
children: ReactNode;
|
|
79
|
+
/**
|
|
80
|
+
* Additional CSS class name
|
|
81
|
+
*/
|
|
82
|
+
className?: string;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Alert description subcomponent
|
|
86
|
+
*
|
|
87
|
+
* @param props - AlertDescription props
|
|
88
|
+
* @returns AlertDescription component
|
|
89
|
+
* @internal
|
|
90
|
+
*/
|
|
91
|
+
export declare const AlertDescription: ({ children, className }: AlertDescriptionProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -5,14 +5,14 @@ export declare const DEFAULT_PIVOT_TABLE_SIZE: {
|
|
|
5
5
|
readonly height: 500;
|
|
6
6
|
};
|
|
7
7
|
export declare const getChartDefaultSize: (chartType: ChartType | TableType) => {
|
|
8
|
+
readonly width: 400;
|
|
9
|
+
readonly height: 400;
|
|
10
|
+
} | {
|
|
8
11
|
readonly width: 400;
|
|
9
12
|
readonly height: 500;
|
|
10
13
|
} | {
|
|
11
14
|
readonly width: 200;
|
|
12
15
|
readonly height: 200;
|
|
13
|
-
} | {
|
|
14
|
-
readonly width: 400;
|
|
15
|
-
readonly height: 400;
|
|
16
16
|
};
|
|
17
17
|
type WidgetSizeOptions = {
|
|
18
18
|
hasHeader?: boolean;
|
|
@@ -20,12 +20,12 @@ type WidgetSizeOptions = {
|
|
|
20
20
|
export declare const getWidgetDefaultSize: (type: ChartType | TableType | 'pivot', { hasHeader }?: WidgetSizeOptions) => {
|
|
21
21
|
readonly width: 400;
|
|
22
22
|
readonly height: 500;
|
|
23
|
-
} | {
|
|
24
|
-
readonly width: 200;
|
|
25
|
-
readonly height: 200;
|
|
26
23
|
} | {
|
|
27
24
|
readonly width: 400;
|
|
28
25
|
readonly height: 400;
|
|
26
|
+
} | {
|
|
27
|
+
readonly width: 200;
|
|
28
|
+
readonly height: 200;
|
|
29
29
|
} | {
|
|
30
30
|
width: 400 | 200;
|
|
31
31
|
height: number;
|