@sisense/sdk-ui 2.21.0 → 2.23.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 +58 -58
- package/dist/ai.js +861 -844
- package/dist/analytics-composer/node.cjs +1 -1
- package/dist/analytics-composer/node.js +2240 -1230
- package/dist/analytics-composer.cjs +47 -47
- package/dist/analytics-composer.js +135 -131
- package/dist/dimensions-2t18RSZC.cjs +1 -0
- package/dist/dimensions-C0BmtTH2.js +204 -0
- package/dist/execute-query-CHYTupEo.js +5866 -0
- package/dist/execute-query-DmAyVFF5.cjs +1 -0
- package/dist/{index-Ck90GjPy.js → index-DCAC0mJe.js} +33 -2
- package/dist/{index-0brX9D6q.cjs → index-Dx6wvLd3.cjs} +1 -1
- package/dist/index.cjs +423 -410
- package/dist/index.js +24905 -23677
- package/dist/index.umd.js +728 -675
- package/dist/packages/sdk-ui/src/domains/dashboarding/components/editable-layout/const.d.ts +1 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/components/editable-layout/smart-pointer-sensor.d.ts +17 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/get-dashboard-model.d.ts +2 -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} +43 -38
- 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 +29 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/use-dashboard-persistence.d.ts +6 -5
- 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-types.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/rename-widget/use-widget-renaming.d.ts +34 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/types.d.ts +65 -2
- package/dist/packages/sdk-ui/src/domains/dashboarding/use-composed-dashboard.d.ts +15 -3
- package/dist/packages/sdk-ui/src/domains/dashboarding/use-dashboard-theme.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/data-browser/add-filter-popover/add-filter-data-browser.d.ts +2 -1
- package/dist/packages/sdk-ui/src/domains/data-browser/data-schema-browser/data-schema-browser.d.ts +2 -1
- package/dist/packages/sdk-ui/src/domains/data-browser/dimensions-browser/types.d.ts +9 -1
- package/dist/packages/sdk-ui/src/domains/filters/components/cascading-filter-tile/cascading-filter-tile.d.ts +7 -0
- package/dist/packages/sdk-ui/src/domains/filters/components/cascading-filter-tile/cascading-level-filter.d.ts +4 -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/criteria-filter-tile/criteria-filter-tile.d.ts +7 -0
- package/dist/packages/sdk-ui/src/domains/filters/components/custom-filter-tile.d.ts +7 -0
- package/dist/packages/sdk-ui/src/domains/filters/components/date-filter/date-range-filter-tile/date-range-filter-tile.d.ts +7 -0
- package/dist/packages/sdk-ui/src/domains/filters/components/date-filter/relative-date-filter-tile/relative-date-filter-tile.d.ts +7 -0
- package/dist/packages/sdk-ui/src/domains/filters/components/{filter-tile.d.ts → filter-tile/filter-tile.d.ts} +7 -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 +6 -0
- package/dist/packages/sdk-ui/src/domains/filters/components/filters-panel/types.d.ts +13 -0
- 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 +7 -0
- package/dist/packages/sdk-ui/src/domains/filters/components/unsupported-filter-tile.d.ts +10 -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/fetch-formula.d.ts +1 -1
- 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/query-execution/core/execute-query.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/query-execution/hooks/use-execute-query-by-widget-id/use-execute-query-by-widget-id.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/query-execution/hooks/use-query-cache/use-query-cache.d.ts +2 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/components/boxplot-chart/boxplot-utils.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/helpers/get-load-data-function.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/helpers/data-loading.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/types.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/widgets/change-events.d.ts +73 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/chart-widget/types.d.ts +12 -2
- package/dist/packages/sdk-ui/src/domains/widgets/components/pivot-table-widget/types.d.ts +12 -2
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-dashboard-filters.d.ts +3 -1
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-widget-data-options.d.ts +1 -1
- 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/types.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/utils.d.ts +3 -2
- package/dist/packages/sdk-ui/src/domains/widgets/event-to-delta.d.ts +17 -0
- package/dist/packages/sdk-ui/src/domains/widgets/helpers/header-menu-utils.d.ts +14 -4
- package/dist/packages/sdk-ui/src/domains/widgets/helpers/index.d.ts +2 -1
- package/dist/packages/sdk-ui/src/domains/widgets/hooks/use-title-renaming.d.ts +27 -0
- package/dist/packages/sdk-ui/src/domains/widgets/hooks/use-widget-header-management.d.ts +28 -0
- package/dist/packages/sdk-ui/src/domains/widgets/shared/widget-container/widget-container.d.ts +3 -1
- package/dist/packages/sdk-ui/src/domains/widgets/shared/widget-header/types.d.ts +32 -17
- package/dist/packages/sdk-ui/src/domains/widgets/shared/widget-header/widget-header.d.ts +3 -1
- package/dist/packages/sdk-ui/src/domains/widgets/shared/widget-header/widget-menu-button.d.ts +1 -1
- package/dist/packages/sdk-ui/src/infra/api/rest-api.d.ts +4 -0
- package/dist/packages/sdk-ui/src/infra/api/types/dashboard-dto.d.ts +3 -2
- package/dist/packages/sdk-ui/src/infra/app/client-application.d.ts +6 -215
- package/dist/packages/sdk-ui/src/infra/app/helpers.d.ts +16 -0
- package/dist/packages/sdk-ui/src/infra/app/settings/settings.d.ts +3 -0
- package/dist/packages/sdk-ui/src/infra/app/settings/types/deployment-props.d.ts +4 -1
- package/dist/packages/sdk-ui/src/infra/app/settings/types/features.d.ts +19 -1
- package/dist/packages/sdk-ui/src/infra/app/types.d.ts +236 -0
- 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/contexts/sisense-context/sisense-context.d.ts +1 -1
- package/dist/packages/sdk-ui/src/infra/contexts/theme-provider/theme-context.d.ts +2 -1
- package/dist/packages/sdk-ui/src/infra/decorators/component-decorators/with-tracking/with-tracking.d.ts +1 -1
- package/dist/packages/sdk-ui/src/infra/decorators/hook-decorators/with-tracking.d.ts +1 -1
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/de-de.d.ts +31 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/en-us.d.ts +31 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/es-ar.d.ts +31 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/es-es.d.ts +31 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/fr-fr.d.ts +31 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/it-it.d.ts +31 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/ja-jp.d.ts +31 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/ko-kr.d.ts +31 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/nl-nl.d.ts +31 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/pt-br.d.ts +31 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/ru-ru.d.ts +31 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/tr-tr.d.ts +31 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/zh-cn.d.ts +31 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/en.d.ts +31 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/index.d.ts +62 -0
- package/dist/packages/sdk-ui/src/modules/ai/api/chat-rest-api.d.ts +2 -1
- package/dist/packages/sdk-ui/src/modules/ai/api/narration-endpoints.d.ts +2 -1
- package/dist/packages/sdk-ui/src/modules/ai/get-nlg-insights-from-widget.d.ts +1 -0
- package/dist/packages/sdk-ui/src/modules/ai/use-get-nlq-result.d.ts +1 -0
- package/dist/packages/sdk-ui/src/modules/ai/use-get-query-recommendations.d.ts +1 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/chart/helpers/axis-type-detection.d.ts +17 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/chart/helpers/chart-type-schemas.d.ts +37 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/chart/helpers/index.d.ts +9 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/chart/helpers/translate-data-options.d.ts +9 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/chart/helpers/validate-chart-json.d.ts +19 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/chart/translate-chart-from-json.d.ts +42 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/chart/translate-chart-to-json.d.ts +41 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/constructs/dimensions/translate-dimensions-from-json.d.ts +11 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/constructs/dimensions/translate-dimensions-to-json.d.ts +22 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{translate-filters-from-json.d.ts → constructs/filters/translate-filters-from-json.d.ts} +2 -2
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{translate-filters-to-json.d.ts → constructs/filters/translate-filters-to-json.d.ts} +1 -1
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{translate-measures-from-json.d.ts → constructs/measures/translate-measures-from-json.d.ts} +4 -4
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/constructs/measures/translate-measures-to-json.d.ts +22 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/index.d.ts +8 -3
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/pivot-table/helpers/index.d.ts +7 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/pivot-table/helpers/translate-data-options.d.ts +14 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/pivot-table/helpers/validate-pivot-table-json.d.ts +19 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/pivot-table/translate-pivot-table-from-json.d.ts +12 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/pivot-table/translate-pivot-table-to-json.d.ts +12 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/query/constants.d.ts +8 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{translate-query-from-json.d.ts → query/translate-query-from-json.d.ts} +3 -3
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{translate-query-to-jaql.d.ts → query/translate-query-to-jaql.d.ts} +1 -1
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{translate-query-to-json.d.ts → query/translate-query-to-json.d.ts} +2 -2
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/data-options/adapters.d.ts +19 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/data-options/index.d.ts +9 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/data-options/translate-axis-from-json.d.ts +24 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/data-options/translate-axis-to-json.d.ts +18 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{process-function → shared/expression}/custom-formula/process-custom-formula.d.ts +1 -1
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{process-function → shared/expression}/custom-formula/validate-custom-formula.d.ts +13 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{process-function → shared/expression}/execute-function.d.ts +1 -1
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{process-function → shared/expression}/factory-function-processors.d.ts +1 -1
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{process-function → shared/expression}/factory-function-schemas.d.ts +1 -1
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{process-function → shared/expression}/filter-processors.d.ts +1 -1
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/expression/formula-function-schemas.d.ts +25 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{process-function → shared/expression}/process-arg.d.ts +1 -1
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{process-function → shared/expression}/process-node.d.ts +1 -1
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/utils/attribute-helpers.d.ts +50 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/utils/fuzzy-match.d.ts +16 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{parse-compose-code.d.ts → shared/utils/parse-compose-code.d.ts} +1 -1
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/utils/schema-index.d.ts +49 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/utils/translation-helpers.d.ts +31 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/types.d.ts +115 -4
- package/dist/packages/sdk-ui/src/modules/analytics-composer/types.d.ts +6 -6
- package/dist/packages/sdk-ui/src/props.d.ts +14 -21
- package/dist/packages/sdk-ui/src/public-api/alpha.d.ts +1 -1
- package/dist/packages/sdk-ui/src/public-api/beta.d.ts +1 -1
- package/dist/packages/sdk-ui/src/public-api/internal.d.ts +9 -6
- package/dist/packages/sdk-ui/src/public-api/public.d.ts +2 -2
- package/dist/packages/sdk-ui/src/public-api/sisense-internal.d.ts +18 -5
- 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/grouped-items-browser/types.d.ts +7 -1
- package/dist/packages/sdk-ui/src/shared/components/inline-text-editor/inline-text-editor.d.ts +26 -0
- package/dist/packages/sdk-ui/src/shared/components/inline-text-editor/use-blur-on-pointer-down-outside.d.ts +11 -0
- package/dist/packages/sdk-ui/src/shared/components/loading-indicator.d.ts +2 -1
- 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 +12 -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/hooks/use-should-load.d.ts +1 -1
- package/dist/packages/sdk-ui/src/shared/hooks/use-with-change-detection.d.ts +5 -5
- 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 +3 -3
- package/dist/{use-common-filters-DBqRT0et.js → quota-notification-CVl0isIV.js} +18254 -16897
- package/dist/quota-notification-RAaHp-eO.cjs +713 -0
- package/dist/translations/de-de.cjs +1 -1
- package/dist/translations/de-de.js +34 -3
- 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 +34 -3
- package/dist/translations/es-es.cjs +1 -1
- package/dist/translations/es-es.js +34 -3
- package/dist/translations/fr-fr.cjs +1 -1
- package/dist/translations/fr-fr.js +34 -3
- package/dist/translations/it-it.cjs +1 -1
- package/dist/translations/it-it.js +34 -3
- package/dist/translations/ja-jp.cjs +1 -1
- package/dist/translations/ja-jp.js +34 -3
- package/dist/translations/ko-kr.cjs +1 -1
- package/dist/translations/ko-kr.js +34 -3
- package/dist/translations/nl-nl.cjs +1 -1
- package/dist/translations/nl-nl.js +34 -3
- package/dist/translations/pt-br.cjs +1 -1
- package/dist/translations/pt-br.js +34 -3
- package/dist/translations/ru-ru.cjs +1 -1
- package/dist/translations/ru-ru.js +34 -3
- package/dist/translations/tr-tr.cjs +1 -1
- package/dist/translations/tr-tr.js +34 -3
- package/dist/translations/zh-cn.cjs +1 -1
- package/dist/translations/zh-cn.js +34 -3
- package/dist/{types-Ockb-LJ0.js → types-B96nVbgX.js} +1 -1
- package/dist/{types-Ch9J6ycn.cjs → types-DZ4vWh8j.cjs} +1 -1
- package/dist/{utils-DH69_bUK.cjs → utils-CgV-jWWQ.cjs} +44 -44
- package/dist/{utils-BXDqo_yg.js → utils-ChqSLRbz.js} +2073 -2081
- package/dist/{widget-composer-DgCWcMJ1.cjs → widget-composer-Blul90Zb.cjs} +3 -3
- package/dist/{widget-composer-DfVCQL2G.js → widget-composer-Cf_CN3Ux.js} +8 -8
- package/package.json +12 -9
- package/dist/dimensions-DVGn8ORR.cjs +0 -1
- package/dist/dimensions-DuUqQgpi.js +0 -202
- package/dist/execute-query-B21bnb05.js +0 -5802
- package/dist/execute-query-BIkhszY1.cjs +0 -1
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/common.d.ts +0 -84
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/translate-dimensions-from-json.d.ts +0 -12
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/translate-dimensions-to-json.d.ts +0 -13
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/translate-measures-to-json.d.ts +0 -13
- package/dist/use-common-filters-CXJN3RSs.cjs +0 -672
- /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
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { DataSource, Filter } from '@sisense/sdk-data';
|
|
3
3
|
import { FilterVariant } from '../common/filter-utils.js';
|
|
4
|
+
import type { FilterTileConfig } from '../filter-tile/types.js';
|
|
4
5
|
/**
|
|
5
6
|
* Props for {@link CascadingFilterTile}
|
|
6
7
|
*
|
|
@@ -23,6 +24,12 @@ export interface CascadingFilterTileProps {
|
|
|
23
24
|
onDelete?: () => void;
|
|
24
25
|
/** Filter edit callback */
|
|
25
26
|
onEdit?: (levelIndex: number) => void;
|
|
27
|
+
/**
|
|
28
|
+
* Config for the filter tile
|
|
29
|
+
*
|
|
30
|
+
* @internal
|
|
31
|
+
*/
|
|
32
|
+
config?: FilterTileConfig;
|
|
26
33
|
/**
|
|
27
34
|
* Render header title (first cascading level filter only)
|
|
28
35
|
*
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { DataSource, Filter } from '@sisense/sdk-data';
|
|
3
|
+
import { MenuItem } from '../../../../shared/types/menu-item.js';
|
|
3
4
|
/**
|
|
4
5
|
* Props of the {@link CascadingLevelFilterTile} component
|
|
5
6
|
*
|
|
@@ -21,6 +22,8 @@ export type CascadingLevelFilterTileProps = {
|
|
|
21
22
|
onEdit?: () => void;
|
|
22
23
|
/** Whether the filter is the last in the list */
|
|
23
24
|
isLast?: boolean;
|
|
25
|
+
/** Menu items to be displayed in the cascading level filter header */
|
|
26
|
+
menuItems: MenuItem[];
|
|
24
27
|
/**
|
|
25
28
|
* Render header title
|
|
26
29
|
*
|
|
@@ -33,4 +36,4 @@ export type CascadingLevelFilterTileProps = {
|
|
|
33
36
|
*
|
|
34
37
|
* @internal
|
|
35
38
|
*/
|
|
36
|
-
export declare const CascadingLevelFilterTile: ({ filter, dataSource, parentFilters, onChange, isLast, onEdit, renderHeaderTitle, }: CascadingLevelFilterTileProps) => import("react/jsx-runtime").JSX.Element;
|
|
39
|
+
export declare const CascadingLevelFilterTile: ({ filter, dataSource, parentFilters, onChange, isLast, onEdit, menuItems, renderHeaderTitle, }: CascadingLevelFilterTileProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { MenuItem } from '../../../../../shared/types/menu-item';
|
|
2
|
+
/**
|
|
3
|
+
* Builds the lock menu item for the cascading filter tile.
|
|
4
|
+
*
|
|
5
|
+
* @param locked - Current lock state
|
|
6
|
+
* @param onLockToggle - Handler for lock toggle
|
|
7
|
+
* @returns Filter tile lock menu item
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
10
|
+
export declare function useCascadingFilterTileLockMenuItem({ locked, onLockToggle, }: {
|
|
11
|
+
locked: boolean;
|
|
12
|
+
onLockToggle: () => void;
|
|
13
|
+
}): MenuItem;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type CascadingFilter } from '@sisense/sdk-data';
|
|
2
|
+
import type { MenuItem } from '../../../../../shared/types/menu-item';
|
|
3
|
+
import type { FilterTileConfig } from '../../../components/filter-tile/types';
|
|
4
|
+
/**
|
|
5
|
+
* Builds the menu items list for a cascading filter tile,
|
|
6
|
+
* conditionally prepending them based on config.
|
|
7
|
+
*
|
|
8
|
+
* @param filter - The current filter
|
|
9
|
+
* @param config - Filter tile configuration
|
|
10
|
+
* @param onChange - Callback invoked when the filter changes (e.g., lock toggle)
|
|
11
|
+
* @returns Filter tile menu items
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
14
|
+
export declare function useCascadingFilterTileMenuItems(filter: CascadingFilter, config: FilterTileConfig | undefined, onChange: ((filter: CascadingFilter) => void) | undefined): MenuItem[];
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { Filter, Measure } from '@sisense/sdk-data';
|
|
3
3
|
import { FilterVariant } from '../common/filter-utils.js';
|
|
4
4
|
import { FilterTileDesignOptions } from '../filter-tile-container.js';
|
|
5
|
+
import type { FilterTileConfig } from '../filter-tile/types.js';
|
|
5
6
|
/**
|
|
6
7
|
* Props of the {@link CriteriaFilterTile} component.
|
|
7
8
|
*/
|
|
@@ -26,6 +27,12 @@ export interface CriteriaFilterTileProps {
|
|
|
26
27
|
* @internal
|
|
27
28
|
*/
|
|
28
29
|
tileDesignOptions?: FilterTileDesignOptions;
|
|
30
|
+
/**
|
|
31
|
+
* Config for the filter tile
|
|
32
|
+
*
|
|
33
|
+
* @internal
|
|
34
|
+
*/
|
|
35
|
+
config?: FilterTileConfig;
|
|
29
36
|
/**
|
|
30
37
|
* Render header title
|
|
31
38
|
*
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Filter } from '@sisense/sdk-data';
|
|
3
|
+
import type { FilterTileConfig } from '../../../domains/filters/components/filter-tile/types';
|
|
3
4
|
import { FilterTileDesignOptions } from './filter-tile-container';
|
|
4
5
|
/**
|
|
5
6
|
* Props for {@link CustomFilterTile}
|
|
@@ -21,6 +22,12 @@ export interface CustomFilterTileProps {
|
|
|
21
22
|
onEdit?: () => void;
|
|
22
23
|
/** Design options for the tile @internal */
|
|
23
24
|
tileDesignOptions?: FilterTileDesignOptions;
|
|
25
|
+
/**
|
|
26
|
+
* Config for the filter tile
|
|
27
|
+
*
|
|
28
|
+
* @internal
|
|
29
|
+
*/
|
|
30
|
+
config?: FilterTileConfig;
|
|
24
31
|
/**
|
|
25
32
|
* Render header title
|
|
26
33
|
*
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { DataSource, Filter, LevelAttribute } from '@sisense/sdk-data';
|
|
3
3
|
import { FilterTileDesignOptions } from '../../filter-tile-container';
|
|
4
|
+
import type { FilterTileConfig } from '../../filter-tile/types';
|
|
4
5
|
/**
|
|
5
6
|
* Props of the {@link DateRangeFilterTile} component.
|
|
6
7
|
*/
|
|
@@ -62,6 +63,12 @@ export interface DateRangeFilterTileProps {
|
|
|
62
63
|
* @internal
|
|
63
64
|
*/
|
|
64
65
|
tileDesignOptions?: FilterTileDesignOptions;
|
|
66
|
+
/**
|
|
67
|
+
* Config for the filter tile
|
|
68
|
+
*
|
|
69
|
+
* @internal
|
|
70
|
+
*/
|
|
71
|
+
config?: FilterTileConfig;
|
|
65
72
|
/**
|
|
66
73
|
* Render header title
|
|
67
74
|
*
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { Filter } from '@sisense/sdk-data';
|
|
3
3
|
import { FilterVariant } from '../../common/index.js';
|
|
4
4
|
import { FilterTileDesignOptions } from '../../filter-tile-container.js';
|
|
5
|
+
import type { FilterTileConfig } from '../../filter-tile/types.js';
|
|
5
6
|
/**
|
|
6
7
|
* Props of the {@link RelativeDateFilterTile} component.
|
|
7
8
|
*/
|
|
@@ -35,6 +36,12 @@ export interface RelativeDateFilterTileProps {
|
|
|
35
36
|
* @internal
|
|
36
37
|
*/
|
|
37
38
|
tileDesignOptions?: FilterTileDesignOptions;
|
|
39
|
+
/**
|
|
40
|
+
* Config for the filter tile
|
|
41
|
+
*
|
|
42
|
+
* @internal
|
|
43
|
+
*/
|
|
44
|
+
config?: FilterTileConfig;
|
|
38
45
|
/**
|
|
39
46
|
* Render header title
|
|
40
47
|
*
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { DataSource, Filter } from '@sisense/sdk-data';
|
|
3
|
+
import { FilterTileConfig } from './types.js';
|
|
3
4
|
/**
|
|
4
5
|
* Props of the {@link FilterTile} component
|
|
5
6
|
*
|
|
@@ -17,6 +18,12 @@ export interface FilterTileProps {
|
|
|
17
18
|
levelIndex?: number) => void;
|
|
18
19
|
/** Default data source used for filter tiles */
|
|
19
20
|
defaultDataSource?: DataSource;
|
|
21
|
+
/**
|
|
22
|
+
* Configurations for the filter tile
|
|
23
|
+
*
|
|
24
|
+
* @internal
|
|
25
|
+
*/
|
|
26
|
+
config?: FilterTileConfig;
|
|
20
27
|
/**
|
|
21
28
|
* Render header title
|
|
22
29
|
*
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { FilterTile, type FilterTileProps } from './filter-tile.js';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { MenuItem } from '../../../../shared/types/menu-item';
|
|
2
|
+
/**
|
|
3
|
+
* Configuration for the filter tile.
|
|
4
|
+
*/
|
|
5
|
+
export type FilterTileConfig = {
|
|
6
|
+
/**
|
|
7
|
+
* Configurations for the filter tile header.
|
|
8
|
+
*/
|
|
9
|
+
header?: {
|
|
10
|
+
/**
|
|
11
|
+
* Configurations for the filter tile header menu.
|
|
12
|
+
*/
|
|
13
|
+
menu?: {
|
|
14
|
+
/**
|
|
15
|
+
* List of menu items to be injected into the filter tile header.
|
|
16
|
+
*/
|
|
17
|
+
items?: MenuItem[];
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Configures the available actions within the filter tile.
|
|
22
|
+
*/
|
|
23
|
+
actions?: {
|
|
24
|
+
/**
|
|
25
|
+
* Configuration for locking a filter.
|
|
26
|
+
*/
|
|
27
|
+
lockFilter?: {
|
|
28
|
+
/**
|
|
29
|
+
* Determines whether the possibility to lock a filter is enabled.
|
|
30
|
+
*
|
|
31
|
+
* If not specified, the default value is `false`.
|
|
32
|
+
*/
|
|
33
|
+
enabled?: boolean;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { FunctionComponent, ReactNode } from 'react';
|
|
2
2
|
import { DeepRequired } from 'ts-essentials';
|
|
3
|
+
import type { MenuItem } from '../../../shared/types/menu-item';
|
|
3
4
|
import { FilterVariant } from './common/filter-utils';
|
|
4
5
|
declare const BaseContainer: import("@emotion/styled").StyledComponent<{
|
|
5
6
|
theme?: import("@emotion/react").Theme | undefined;
|
|
@@ -40,6 +41,11 @@ interface FilterTileContainerProps {
|
|
|
40
41
|
onDelete?: () => void;
|
|
41
42
|
onEdit?: () => void;
|
|
42
43
|
locked?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Header menu items.
|
|
46
|
+
* When provided, the menu button is shown with these items.
|
|
47
|
+
*/
|
|
48
|
+
menuItems?: MenuItem[];
|
|
43
49
|
/**
|
|
44
50
|
* Render header title
|
|
45
51
|
*
|
|
@@ -61,6 +61,19 @@ export interface FiltersPanelConfig {
|
|
|
61
61
|
*/
|
|
62
62
|
enabled?: boolean;
|
|
63
63
|
};
|
|
64
|
+
/**
|
|
65
|
+
* Configuration for locking a filter.
|
|
66
|
+
*
|
|
67
|
+
* @internal
|
|
68
|
+
*/
|
|
69
|
+
lockFilter?: {
|
|
70
|
+
/**
|
|
71
|
+
* Determines whether the possibility to lock a filter is enabled.
|
|
72
|
+
*
|
|
73
|
+
* If not specified, the default value is `false`.
|
|
74
|
+
*/
|
|
75
|
+
enabled?: boolean;
|
|
76
|
+
};
|
|
64
77
|
};
|
|
65
78
|
}
|
|
66
79
|
/** @internal */
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FunctionComponent } from 'react';
|
|
2
2
|
import { Attribute, DataSource, Filter } from '@sisense/sdk-data';
|
|
3
3
|
import { FilterTileDesignOptions } from '../filter-tile-container';
|
|
4
|
+
import { FilterTileConfig } from '../filter-tile/types';
|
|
4
5
|
/**
|
|
5
6
|
* Props of the {@link MemberFilterTile} component.
|
|
6
7
|
*/
|
|
@@ -27,6 +28,12 @@ export interface MemberFilterTileProps {
|
|
|
27
28
|
parentFilters?: Filter[];
|
|
28
29
|
/** Design options for the tile @internal */
|
|
29
30
|
tileDesignOptions?: FilterTileDesignOptions;
|
|
31
|
+
/**
|
|
32
|
+
* Config for the filter tile
|
|
33
|
+
*
|
|
34
|
+
* @internal
|
|
35
|
+
*/
|
|
36
|
+
config?: FilterTileConfig;
|
|
30
37
|
/**
|
|
31
38
|
* Render header title
|
|
32
39
|
*
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Filter } from '@sisense/sdk-data';
|
|
3
3
|
import { FilterTileDesignOptions } from '../../../domains/filters/components/filter-tile-container';
|
|
4
|
+
import type { FilterTileConfig } from '../../../domains/filters/components/filter-tile/types';
|
|
4
5
|
export type UnsupportedFilterTileProps = {
|
|
5
6
|
filter: Filter;
|
|
6
7
|
design?: FilterTileDesignOptions;
|
|
@@ -8,6 +9,14 @@ export type UnsupportedFilterTileProps = {
|
|
|
8
9
|
onDelete?: () => void;
|
|
9
10
|
/** Filter edit callback */
|
|
10
11
|
onEdit?: () => void;
|
|
12
|
+
/** Callback to handle filter change (used for lock toggle) */
|
|
13
|
+
onChange?: (filter: Filter) => void;
|
|
14
|
+
/**
|
|
15
|
+
* Config for the filter tile
|
|
16
|
+
*
|
|
17
|
+
* @internal
|
|
18
|
+
*/
|
|
19
|
+
config?: FilterTileConfig;
|
|
11
20
|
/**
|
|
12
21
|
* Render header title
|
|
13
22
|
*
|
|
@@ -20,4 +29,4 @@ export type UnsupportedFilterTileProps = {
|
|
|
20
29
|
*
|
|
21
30
|
* @internal
|
|
22
31
|
*/
|
|
23
|
-
export declare const UnsupportedFilterTile: ({ filter, design, onDelete, onEdit, renderHeaderTitle, }: UnsupportedFilterTileProps) => import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
export declare const UnsupportedFilterTile: ({ filter, design, onDelete, onEdit, onChange, config, renderHeaderTitle, }: UnsupportedFilterTileProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { MenuItem } from '../../../shared/types/menu-item.js';
|
|
2
|
+
export interface FilterTileMenuButtonProps {
|
|
3
|
+
/** Menu items to show. Prepared by the filter tile. */
|
|
4
|
+
menuItems: MenuItem[];
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Menu button that opens a context menu with externally provided items.
|
|
8
|
+
* Used by filter tiles; menu items are built and merged with config in each tile.
|
|
9
|
+
*/
|
|
10
|
+
export declare const FilterTileMenuButton: ({ menuItems }: FilterTileMenuButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { MenuItem } from '../../../../shared/types/menu-item';
|
|
2
|
+
/** Id for the lock/unlock menu item of the filter tile. */
|
|
3
|
+
export declare const FILTER_TILE_LOCK_MENU_ITEM_ID = "filter-tile-lock";
|
|
4
|
+
/**
|
|
5
|
+
* Builds the lock menu item for the filter tile.
|
|
6
|
+
*
|
|
7
|
+
* @param locked - Current lock state
|
|
8
|
+
* @param onLockToggle - Handler for lock toggle
|
|
9
|
+
* @returns Filter tile lock menu item
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
export declare function useFilterTileLockMenuItem({ locked, onLockToggle, }: {
|
|
13
|
+
locked: boolean;
|
|
14
|
+
onLockToggle: () => void;
|
|
15
|
+
}): MenuItem;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Filter } from '@sisense/sdk-data';
|
|
2
|
+
import type { MenuItem } from '../../../../shared/types/menu-item';
|
|
3
|
+
import type { FilterTileConfig } from '../../components/filter-tile/types';
|
|
4
|
+
/**
|
|
5
|
+
* Builds the complete menu items list for a filter tile,
|
|
6
|
+
* conditionally prepending them based on config.
|
|
7
|
+
*
|
|
8
|
+
* @param filter - The current filter
|
|
9
|
+
* @param config - Filter tile configuration
|
|
10
|
+
* @param onChange - Callback invoked when the filter changes (e.g., lock toggle)
|
|
11
|
+
* @returns Filter tile menu items
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
14
|
+
export declare function useFilterTileMenuItems<T extends Filter>(filter: T, config: FilterTileConfig | undefined, onChange: ((filter: T) => void) | undefined): MenuItem[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DataSource, DimensionalCalculatedMeasure } from '@sisense/sdk-data';
|
|
2
|
-
import { ClientApplication } from '../../infra/app/
|
|
2
|
+
import { type ClientApplication } from '../../infra/app/types';
|
|
3
3
|
/**
|
|
4
4
|
* Fetch a formula by oid from the default Sisense instance
|
|
5
5
|
*
|
|
@@ -1,7 +1,24 @@
|
|
|
1
|
-
import { CalculatedMeasure } from '@sisense/sdk-data';
|
|
2
|
-
import { UseGetSharedFormulaParams } from '../../props';
|
|
3
|
-
import { DataState } from '../../shared/hooks/data-load-state-reducer';
|
|
1
|
+
import { CalculatedMeasure, DataSource } from '@sisense/sdk-data';
|
|
4
2
|
import { HookEnableParam } from '../../shared/hooks/types';
|
|
3
|
+
/**
|
|
4
|
+
* Params of the {@link useGetSharedFormula} hook
|
|
5
|
+
*
|
|
6
|
+
* Can consist either of an oid or a name/dataSource pair
|
|
7
|
+
*/
|
|
8
|
+
export interface UseGetSharedFormulaParams extends HookEnableParam {
|
|
9
|
+
/**
|
|
10
|
+
* Formula identifier
|
|
11
|
+
*/
|
|
12
|
+
oid?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Formula name
|
|
15
|
+
*/
|
|
16
|
+
name?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Data source - e.g. `Sample ECommerce`
|
|
19
|
+
*/
|
|
20
|
+
dataSource?: DataSource;
|
|
21
|
+
}
|
|
5
22
|
/**
|
|
6
23
|
* Parameters for {@link useGetSharedFormula} hook.
|
|
7
24
|
*/
|
|
@@ -95,7 +112,3 @@ export declare const useGetSharedFormula: (params: UseGetSharedFormulaParams) =>
|
|
|
95
112
|
* @internal
|
|
96
113
|
*/
|
|
97
114
|
export declare function useGetSharedFormulaInternal(params: UseGetSharedFormulaParams): SharedFormulaState;
|
|
98
|
-
/**
|
|
99
|
-
* @internal
|
|
100
|
-
*/
|
|
101
|
-
export declare function translateToFormulaResponse(dataState: DataState<CalculatedMeasure | null>): SharedFormulaState;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Attribute, DataSource, Measure, PivotAttribute, PivotMeasure, PivotQueryResultData, QueryResultData } from '@sisense/sdk-data';
|
|
2
2
|
import type { PivotQueryDescription as InternalPivotQueryDescription, QueryDescription as InternalQueryDescription, QueryExecutionConfig } from '@sisense/sdk-query-client';
|
|
3
3
|
import { CreateCacheKeyFn } from '../../../shared/utils/create-cache';
|
|
4
|
-
import { ClientApplication } from '../../../infra/app/
|
|
4
|
+
import { type ClientApplication } from '../../../infra/app/types.js';
|
|
5
5
|
/**
|
|
6
6
|
* All the properties that fully describe a query you want to send.
|
|
7
7
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { QueryResultData } from '@sisense/sdk-data';
|
|
2
|
-
import { ClientApplication } from '../../../../infra/app/
|
|
2
|
+
import { type ClientApplication } from '../../../../infra/app/types';
|
|
3
3
|
import { ExecuteQueryByWidgetIdParams, QueryByWidgetIdQueryParams, QueryByWidgetIdState } from '../../types';
|
|
4
4
|
/**
|
|
5
5
|
* React hook that executes a data query extracted from an existing widget in the Sisense instance.
|
package/dist/packages/sdk-ui/src/domains/visualizations/components/boxplot-chart/boxplot-utils.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Attribute, DataSource, Filter, FilterRelationsJaql, Measure, QueryResultData } from '@sisense/sdk-data';
|
|
2
|
-
import { ClientApplication } from '../../../../infra/app/
|
|
2
|
+
import { type ClientApplication } from '../../../../infra/app/types.js';
|
|
3
3
|
import { executeQuery as executeQueryFunction } from '../../../query-execution/core/execute-query.js';
|
|
4
4
|
import { BoxplotChartCustomDataOptions, BoxplotChartDataOptionsInternal } from '../../core/chart-data-options/types.js';
|
|
5
5
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { QueryResultData } from '@sisense/sdk-data';
|
|
2
2
|
import { QueryExecutionConfig } from '@sisense/sdk-query-client';
|
|
3
3
|
import { QueryDescription } from '../../../../../domains/query-execution/core/execute-query';
|
|
4
|
-
import { ClientApplication } from '../../../../../infra/app/
|
|
4
|
+
import { type ClientApplication } from '../../../../../infra/app/types';
|
|
5
5
|
import { ChartType } from '../../../../../types';
|
|
6
6
|
import { ChartDataOptionsInternal } from '../../../core/chart-data-options/types';
|
|
7
7
|
export type LoadDataFunction = (options: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { QueryResultData } from '@sisense/sdk-data';
|
|
2
2
|
import { QueryExecutionConfig } from '@sisense/sdk-query-client';
|
|
3
3
|
import { QueryDescription } from '../../../../../../domains/query-execution/core/execute-query';
|
|
4
|
-
import { ClientApplication } from '../../../../../../infra/app/
|
|
4
|
+
import { type ClientApplication } from '../../../../../../infra/app/types.js';
|
|
5
5
|
/**
|
|
6
6
|
* Load data by a regular single query execution.
|
|
7
7
|
*/
|
|
@@ -10,7 +10,7 @@ import { AreamapChartDataOptions, AreamapChartDataOptionsInternal, CalendarHeatm
|
|
|
10
10
|
import { DataTable } from '../../../../../domains/visualizations/core/chart-data-processor/table-processor';
|
|
11
11
|
import type { CartesianChartData, CategoricalChartData, ScattermapChartData } from '../../../../../domains/visualizations/core/chart-data/types';
|
|
12
12
|
import { DesignOptions } from '../../../../../domains/visualizations/core/chart-options-processor/translations/types';
|
|
13
|
-
import { ClientApplication } from '../../../../../infra/app/
|
|
13
|
+
import { type ClientApplication } from '../../../../../infra/app/types';
|
|
14
14
|
import type { AreamapStyleOptions, AreaStyleOptions, CalendarHeatmapStyleOptions, ChartDataOptions, ChartStyleOptions, FunnelStyleOptions, LineStyleOptions, PieStyleOptions, PolarStyleOptions, ScattermapStyleOptions, StackableStyleOptions, StreamgraphStyleOptions, SunburstStyleOptions, TreemapStyleOptions } from '../../../../../types';
|
|
15
15
|
import { AreamapData } from './areamap-chart/types';
|
|
16
16
|
import { CalendarHeatmapChartData } from './highchart-based-charts/calendar-heatmap-chart/data';
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { Attribute } from '@sisense/sdk-data';
|
|
2
|
+
import { DataOptionLocation, DrilldownSelection } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* Event triggered when chart widget drilldown selections change.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```ts
|
|
8
|
+
* { type: 'drilldownSelections/changed', payload: [{ points: [...], nextDimension }] }
|
|
9
|
+
* ```
|
|
10
|
+
*/
|
|
11
|
+
export interface ChartWidgetDrilldownSelectionsChangedEvent {
|
|
12
|
+
/** Event type */
|
|
13
|
+
type: 'drilldownSelections/changed';
|
|
14
|
+
/** The new drilldown selections */
|
|
15
|
+
payload: DrilldownSelection[];
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Event triggered when widget title changes (e.g. inline rename).
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* { type: 'title/changed', payload: { title: 'New Title' } }
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
export interface WidgetTitleChangedEvent {
|
|
26
|
+
/** Event type */
|
|
27
|
+
type: 'title/changed';
|
|
28
|
+
/** The new title */
|
|
29
|
+
payload: {
|
|
30
|
+
title: string;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Events that can be triggered by the ChartWidget component.
|
|
35
|
+
*/
|
|
36
|
+
export type ChartWidgetChangeEvent = ChartWidgetDrilldownSelectionsChangedEvent | WidgetTitleChangedEvent;
|
|
37
|
+
/**
|
|
38
|
+
* Event triggered when pivot table widget drilldown selections change.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```ts
|
|
42
|
+
* { type: 'drilldownSelections/changed', payload: { target, selections } }
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
export interface PivotTableWidgetDrilldownSelectionsChangedEvent {
|
|
46
|
+
/** Event type */
|
|
47
|
+
type: 'drilldownSelections/changed';
|
|
48
|
+
/** The drilldown target and new selections */
|
|
49
|
+
payload: {
|
|
50
|
+
target: Attribute | DataOptionLocation;
|
|
51
|
+
selections: DrilldownSelection[];
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Events that can be triggered by the PivotTableWidget component.
|
|
56
|
+
*/
|
|
57
|
+
export type PivotTableWidgetChangeEvent = PivotTableWidgetDrilldownSelectionsChangedEvent | WidgetTitleChangedEvent;
|
|
58
|
+
/**
|
|
59
|
+
* Events that can be triggered by widget components.
|
|
60
|
+
*
|
|
61
|
+
* Union of all widget-specific change events. Extensible for TextWidget, CustomWidget future events.
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* ```ts
|
|
65
|
+
* ChartWidget onChange handler:
|
|
66
|
+
* onChange={(event) => {
|
|
67
|
+
* if (event.type === 'drilldownSelections/changed') {
|
|
68
|
+
* setDrilldownSelections(event.payload);
|
|
69
|
+
* }
|
|
70
|
+
* }}
|
|
71
|
+
* ```
|
|
72
|
+
*/
|
|
73
|
+
export type WidgetChangeEvent = ChartWidgetChangeEvent | PivotTableWidgetChangeEvent;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { DataSource, Filter, FilterRelations } from '@sisense/sdk-data';
|
|
3
|
+
import type { ChartWidgetChangeEvent, ChartWidgetDrilldownSelectionsChangedEvent } from '../../../../domains/widgets/change-events';
|
|
3
4
|
import type { ChartEventProps } from '../../../../props';
|
|
4
5
|
import { ChartDataOptions, ChartType, ChartWidgetStyleOptions, DrilldownOptions } from '../../../../types';
|
|
5
6
|
import { WidgetConfig } from '../widget/types';
|
|
7
|
+
export type { ChartWidgetChangeEvent, ChartWidgetDrilldownSelectionsChangedEvent };
|
|
6
8
|
/**
|
|
7
9
|
* Props for the {@link ChartWidget} component
|
|
8
10
|
*
|
|
@@ -95,6 +97,14 @@ export interface ChartWidgetProps extends ChartEventProps {
|
|
|
95
97
|
* @category Widget
|
|
96
98
|
*/
|
|
97
99
|
highlightSelectionDisabled?: boolean;
|
|
98
|
-
/**
|
|
99
|
-
|
|
100
|
+
/**
|
|
101
|
+
* Callback to receive widget change events.
|
|
102
|
+
*
|
|
103
|
+
* Invoked when the widget state changes (e.g. drilldown selections).
|
|
104
|
+
* See {@link ChartWidgetChangeEvent} for event types.
|
|
105
|
+
*
|
|
106
|
+
* @param event - The change event that occurred
|
|
107
|
+
* @internal
|
|
108
|
+
*/
|
|
109
|
+
onChange?: (event: ChartWidgetChangeEvent) => void;
|
|
100
110
|
}
|
|
@@ -2,9 +2,11 @@ import { ReactNode } from 'react';
|
|
|
2
2
|
import { DataSource, Filter, FilterRelations } from '@sisense/sdk-data';
|
|
3
3
|
import type { CustomDataCellFormatter, CustomHeaderCellFormatter } from '../../../../domains/visualizations/components/pivot-table/formatters/types';
|
|
4
4
|
import { PivotTableDataOptions } from '../../../../domains/visualizations/core/chart-data-options/types';
|
|
5
|
+
import type { PivotTableWidgetChangeEvent, PivotTableWidgetDrilldownSelectionsChangedEvent } from '../../../../domains/widgets/change-events';
|
|
5
6
|
import type { PivotTableDataPointEventHandler } from '../../../../props';
|
|
6
7
|
import { PivotTableDrilldownOptions, PivotTableWidgetStyleOptions } from '../../../../types';
|
|
7
8
|
import { WidgetConfig } from '../widget/types';
|
|
9
|
+
export type { PivotTableWidgetChangeEvent, PivotTableWidgetDrilldownSelectionsChangedEvent };
|
|
8
10
|
/**
|
|
9
11
|
* Props for the {@link PivotTableWidget} component
|
|
10
12
|
*/
|
|
@@ -136,6 +138,14 @@ export interface PivotTableWidgetProps {
|
|
|
136
138
|
* @internal
|
|
137
139
|
*/
|
|
138
140
|
onHeaderCellFormat?: CustomHeaderCellFormatter;
|
|
139
|
-
/**
|
|
140
|
-
|
|
141
|
+
/**
|
|
142
|
+
* Callback to receive widget change events.
|
|
143
|
+
*
|
|
144
|
+
* Invoked when the widget state changes (e.g. drilldown selections).
|
|
145
|
+
* See {@link PivotTableWidgetChangeEvent} for event types.
|
|
146
|
+
*
|
|
147
|
+
* @param event - The change event that occurred
|
|
148
|
+
* @internal
|
|
149
|
+
*/
|
|
150
|
+
onChange?: (event: PivotTableWidgetChangeEvent) => void;
|
|
141
151
|
}
|
|
@@ -8,7 +8,8 @@ import { FiltersIgnoringRules, WidgetDto } from './types.js';
|
|
|
8
8
|
* @param dashboard - The dashboard containing the filters.
|
|
9
9
|
* @param widget - The widget containing the filters.
|
|
10
10
|
* @returns An object containing an array of filters and an array of highlights.
|
|
11
|
-
*
|
|
11
|
+
*
|
|
12
|
+
* @sisenseInternal
|
|
12
13
|
*/
|
|
13
14
|
export declare function extractCombinedFilters(dashboard: DashboardDto, widget: WidgetDto): {
|
|
14
15
|
filters: import("@sisense/sdk-data").Filter[];
|
|
@@ -4788,6 +4789,7 @@ export declare function getDashboardFilters(dashboardFilters: Array<FilterDto |
|
|
|
4788
4789
|
jaql: import("@sisense/sdk-data").FilterJaql;
|
|
4789
4790
|
} | undefined;
|
|
4790
4791
|
} | undefined;
|
|
4792
|
+
indexed?: boolean | undefined;
|
|
4791
4793
|
merged?: boolean | undefined;
|
|
4792
4794
|
panel?: "rows" | "columns" | undefined;
|
|
4793
4795
|
};
|