@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
|
@@ -5,7 +5,7 @@ import { BoxplotWidgetStyle, FusionWidgetType, Panel, PanelItem, WidgetStyle } f
|
|
|
5
5
|
export declare function createDataColumn(item: PanelItem, customPaletteColors?: Color[]): StyledColumn | StyledMeasureColumn;
|
|
6
6
|
/** @internal */
|
|
7
7
|
export declare function createPanelItem(column: StyledColumn | StyledMeasureColumn): PanelItem;
|
|
8
|
-
/** @
|
|
8
|
+
/** @sisenseInternal */
|
|
9
9
|
export declare const createDataOptionsFromPanels: (panels: Panel[], variantColors: Color[]) => {
|
|
10
10
|
[key: string]: any[];
|
|
11
11
|
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import type { AxisLabel, DataLimits, LegendOptions, LineStyleOptions, LineWidth, Markers, Navigator, SeriesLabels } from '../../../../../types.js';
|
|
2
|
+
import type { AxisStyle, CartesianWidgetStyle } from '../types.js';
|
|
3
|
+
/**
|
|
4
|
+
* Maps SDK legend options to Fusion DTO legend style.
|
|
5
|
+
*
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
8
|
+
export declare function toLegendStyle(legend?: LegendOptions): CartesianWidgetStyle['legend'];
|
|
9
|
+
/**
|
|
10
|
+
* Maps SDK axis label options to Fusion DTO axis style.
|
|
11
|
+
* Fields not stored in SDK (ticks, inactive) use sensible defaults.
|
|
12
|
+
*
|
|
13
|
+
* @internal
|
|
14
|
+
*/
|
|
15
|
+
export declare function toAxisStyle(axisLabel?: AxisLabel): AxisStyle;
|
|
16
|
+
/**
|
|
17
|
+
* Maps SDK series labels to Fusion DTO labels style.
|
|
18
|
+
* For line charts (non-stacked), only enabled and rotation are restored.
|
|
19
|
+
*
|
|
20
|
+
* @internal
|
|
21
|
+
*/
|
|
22
|
+
export declare function toSeriesLabelsStyle(seriesLabels?: SeriesLabels): CartesianWidgetStyle['seriesLabels'];
|
|
23
|
+
/**
|
|
24
|
+
* Maps SDK navigator options to Fusion DTO navigator style.
|
|
25
|
+
* scrollerLocation is not written back (stored in widget.options).
|
|
26
|
+
*
|
|
27
|
+
* @internal
|
|
28
|
+
*/
|
|
29
|
+
export declare function toNavigatorStyle(navigator?: Navigator): CartesianWidgetStyle['navigator'];
|
|
30
|
+
/** Allowed line width tokens for CartesianWidgetStyle (thin=1, bold=3, thick=5). */
|
|
31
|
+
declare const LINE_WIDTH_TOKENS: readonly ["thin", "bold", "thick"];
|
|
32
|
+
export type LineWidthToken = (typeof LINE_WIDTH_TOKENS)[number];
|
|
33
|
+
/**
|
|
34
|
+
* Maps SDK line width options to Fusion DTO line width style.
|
|
35
|
+
* Validates string tokens and maps numeric widths to 'thin' | 'bold' | 'thick'.
|
|
36
|
+
*
|
|
37
|
+
* @internal
|
|
38
|
+
*/
|
|
39
|
+
export declare function toLineWidthStyle(lineWidth?: LineWidth | {
|
|
40
|
+
width?: string | number;
|
|
41
|
+
}): CartesianWidgetStyle['lineWidth'];
|
|
42
|
+
/**
|
|
43
|
+
* Maps SDK markers options to Fusion DTO markers style.
|
|
44
|
+
*
|
|
45
|
+
* @internal
|
|
46
|
+
*/
|
|
47
|
+
export declare function toMarkersStyle(markers?: Markers): CartesianWidgetStyle['markers'];
|
|
48
|
+
/**
|
|
49
|
+
* Maps SDK data limits to Fusion DTO data limits.
|
|
50
|
+
*
|
|
51
|
+
* @internal
|
|
52
|
+
*/
|
|
53
|
+
export declare function toDataLimitsStyle(dataLimits?: DataLimits): CartesianWidgetStyle['dataLimits'];
|
|
54
|
+
/**
|
|
55
|
+
* Maps SDK line chart style options to Fusion CartesianWidgetStyle (DTO).
|
|
56
|
+
* Used when serializing a line chart widget back to WidgetDto.
|
|
57
|
+
*
|
|
58
|
+
* @param styleOptions - Extracted line chart style options from WidgetModel.styleOptions
|
|
59
|
+
* @returns Fusion CartesianWidgetStyle for the widget DTO
|
|
60
|
+
* @internal
|
|
61
|
+
*/
|
|
62
|
+
export declare function toLineWidgetStyle(styleOptions: LineStyleOptions): CartesianWidgetStyle;
|
|
63
|
+
export {};
|
|
@@ -44,7 +44,7 @@ export declare enum WidgetDashboardFilterMode {
|
|
|
44
44
|
* This is the (not-comprehensive) structure of the response from the
|
|
45
45
|
* `/api/v1/dashboards/${dashboardOid}/widgets/${widgetOid}` endpoint.
|
|
46
46
|
*
|
|
47
|
-
* @
|
|
47
|
+
* @sisenseInternal
|
|
48
48
|
*/
|
|
49
49
|
export interface WidgetDto {
|
|
50
50
|
oid: string;
|
|
@@ -100,7 +100,8 @@ export declare function isTextWidgetProps(widgetProps: CommonWidgetProps): widge
|
|
|
100
100
|
*
|
|
101
101
|
* @param widgetProps - The widget props to check.
|
|
102
102
|
* @returns whether the widget props is for a pivot table widget
|
|
103
|
-
*
|
|
103
|
+
*
|
|
104
|
+
* @sisenseInternal
|
|
104
105
|
*/
|
|
105
106
|
export declare function isPivotTableWidgetProps(widgetProps: CommonWidgetProps): widgetProps is WithCommonWidgetProps<PivotTableWidgetProps, 'pivot'>;
|
|
106
107
|
/**
|
|
@@ -116,7 +117,7 @@ export declare function isCustomWidgetProps(widgetProps: CommonWidgetProps): wid
|
|
|
116
117
|
*
|
|
117
118
|
* @param widgetProps - The widget props to check.
|
|
118
119
|
* @returns whether the widget props is for a chart widget
|
|
119
|
-
* @
|
|
120
|
+
* @sisenseInternal
|
|
120
121
|
*/
|
|
121
122
|
export declare function isChartWidgetProps(widgetProps: CommonWidgetProps): widgetProps is WithCommonWidgetProps<ChartWidgetProps, 'chart'>;
|
|
122
123
|
export declare function getInternalWidgetType(widgetProps: CommonWidgetProps): WidgetTypeInternal;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { WidgetChangeEvent } from './change-events';
|
|
2
|
+
import type { WidgetProps } from './components/widget/types';
|
|
3
|
+
/**
|
|
4
|
+
* Reduces a WidgetChangeEvent to a Partial<WidgetProps> delta for state merge.
|
|
5
|
+
*
|
|
6
|
+
* Pure, allocation-only; no mutation. Used by the composition layer (e.g. useComposedDashboard)
|
|
7
|
+
* to translate atomic events into prop updates.
|
|
8
|
+
*
|
|
9
|
+
* Validates that the event payload structure matches the widget type before applying.
|
|
10
|
+
* Returns empty delta when payload structure is incompatible (e.g. chart array payload
|
|
11
|
+
* for a pivot widget), avoiding silent corruption.
|
|
12
|
+
*
|
|
13
|
+
* @param event - The widget change event
|
|
14
|
+
* @param currentWidget - The current widget state
|
|
15
|
+
* @returns A partial props object to merge into the widget
|
|
16
|
+
*/
|
|
17
|
+
export declare function widgetChangeEventToDelta(event: WidgetChangeEvent, currentWidget: WidgetProps): Partial<WidgetProps>;
|
|
@@ -1,9 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { MenuItem } from '../../../shared/types/menu-item';
|
|
2
|
+
import type { WidgetProps } from '../components/widget/types';
|
|
3
|
+
import type { WidgetHeaderConfig } from '../shared/widget-header/types';
|
|
3
4
|
/**
|
|
4
|
-
*
|
|
5
|
+
* Transformer: adds a menu item to a header config (pure, non-mutating).
|
|
6
|
+
*
|
|
7
|
+
* @param menuItem - The menu item to append to toolbar.menu.items.
|
|
8
|
+
* @returns A transformer that maps WidgetHeaderConfig to WidgetHeaderConfig with the menu item appended.
|
|
9
|
+
* @internal
|
|
10
|
+
*/
|
|
11
|
+
export declare function withMenuItemInHeaderConfig(menuItem: MenuItem): (headerConfig: WidgetHeaderConfig) => WidgetHeaderConfig;
|
|
12
|
+
/**
|
|
13
|
+
* Adds a menu item to the widget header (transforms full WidgetProps).
|
|
14
|
+
*
|
|
5
15
|
* @param menuItem - The menu item to add.
|
|
6
|
-
* @returns A
|
|
16
|
+
* @returns A transformer that maps WidgetProps to WidgetProps with the item in config.header.toolbar.menu.items.
|
|
7
17
|
* @internal
|
|
8
18
|
*/
|
|
9
19
|
export declare function withHeaderMenuItem(menuItem: MenuItem): (widget: WidgetProps) => WidgetProps;
|
|
@@ -3,5 +3,6 @@
|
|
|
3
3
|
* @internal
|
|
4
4
|
*/
|
|
5
5
|
export declare const widgetHelpers: {
|
|
6
|
-
|
|
6
|
+
withMenuItemInHeaderConfig(menuItem: import("../../../shared/types/menu-item").MenuItem): (headerConfig: import("../shared/widget-header/types").WidgetHeaderConfig) => import("../shared/widget-header/types").WidgetHeaderConfig;
|
|
7
|
+
withHeaderMenuItem(menuItem: import("../../../shared/types/menu-item").MenuItem): (widget: import("../components/widget").WidgetProps) => import("../components/widget").WidgetProps;
|
|
7
8
|
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { WidgetChangeEvent } from '../../../domains/widgets/change-events.js';
|
|
2
|
+
import type { TitleEditorConfig } from '../../../domains/widgets/shared/widget-header/types.js';
|
|
3
|
+
import type { MenuItem } from '../../../shared/types/menu-item.js';
|
|
4
|
+
/** Parameters for the title renaming hook. */
|
|
5
|
+
export type UseTitleRenamingParams = {
|
|
6
|
+
/** Whether inline title renaming is enabled. */
|
|
7
|
+
enabled: boolean;
|
|
8
|
+
/** Handler called when the user commits a new title. */
|
|
9
|
+
onChange?: (event: WidgetChangeEvent) => void;
|
|
10
|
+
};
|
|
11
|
+
/** Result of the title renaming hook. */
|
|
12
|
+
export type UseTitleRenamingResult = {
|
|
13
|
+
/** "Rename" menu item to inject into the header toolbar; undefined when not enabled. */
|
|
14
|
+
renameMenuItem: MenuItem | undefined;
|
|
15
|
+
/** Config for the inline title editor; undefined when not enabled. */
|
|
16
|
+
titleEditorConfig: TitleEditorConfig | undefined;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Hook that manages inline title renaming state: isEditing, start/cancel/commit
|
|
20
|
+
* callbacks, titleEditorConfig for the title editor, and a prepared "Rename" menu item.
|
|
21
|
+
* Emits title/changed on commit.
|
|
22
|
+
*
|
|
23
|
+
* @param params - Hook parameters
|
|
24
|
+
* @returns renameMenuItem and titleEditorConfig
|
|
25
|
+
* @internal
|
|
26
|
+
*/
|
|
27
|
+
export declare function useTitleRenaming(params: UseTitleRenamingParams): UseTitleRenamingResult;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { WidgetChangeEvent } from '../../../domains/widgets/change-events.js';
|
|
2
|
+
import type { TitleEditorConfig, WidgetHeaderConfig } from '../../../domains/widgets/shared/widget-header/types.js';
|
|
3
|
+
/** Parameters for the widget header management hook. */
|
|
4
|
+
export type UseWidgetHeaderManagementParams = {
|
|
5
|
+
/** Current title (from props). */
|
|
6
|
+
title?: string;
|
|
7
|
+
/** onChange handler (from props). */
|
|
8
|
+
onChange?: (event: WidgetChangeEvent) => void;
|
|
9
|
+
/** Merged config.header from props (may already have toolbar.menu.items). */
|
|
10
|
+
headerConfig?: WidgetHeaderConfig;
|
|
11
|
+
};
|
|
12
|
+
/** Result of the widget header management hook. */
|
|
13
|
+
export type UseWidgetHeaderManagementResult = {
|
|
14
|
+
/** Merged header config (e.g. rename menu in toolbar). */
|
|
15
|
+
headerConfig: WidgetHeaderConfig;
|
|
16
|
+
/** Inline title editor config when rename is enabled. Pass to WidgetContainer as separate prop. */
|
|
17
|
+
titleEditor?: TitleEditorConfig;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Hook that manages widget header UI for rename: adds "Rename" menu item
|
|
21
|
+
* and delegates inline title editing to useTitleRenaming.
|
|
22
|
+
* Used by ChartWidget and PivotTableWidget when config.header.title.editing.enabled is true.
|
|
23
|
+
*
|
|
24
|
+
* @param params - Hook parameters
|
|
25
|
+
* @returns Merged header config to pass to WidgetContainer
|
|
26
|
+
* @internal
|
|
27
|
+
*/
|
|
28
|
+
export declare function useWidgetHeaderManagement(params: UseWidgetHeaderManagementParams): UseWidgetHeaderManagementResult;
|
package/dist/packages/sdk-ui/src/domains/widgets/shared/widget-container/widget-container.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
2
|
import { WidgetContainerStyleOptions } from '../../../../types';
|
|
3
|
-
import { WidgetHeaderConfig } from '../widget-header/types.js';
|
|
3
|
+
import { TitleEditorConfig, WidgetHeaderConfig } from '../widget-header/types.js';
|
|
4
4
|
export interface WidgetContainerProps {
|
|
5
5
|
dataSetName?: string;
|
|
6
6
|
styleOptions?: WidgetContainerStyleOptions;
|
|
@@ -8,6 +8,8 @@ export interface WidgetContainerProps {
|
|
|
8
8
|
* Header configuration (e.g. toolbar menu items). Passed to {@link WidgetHeader} as `config`.
|
|
9
9
|
*/
|
|
10
10
|
headerConfig?: WidgetHeaderConfig;
|
|
11
|
+
/** Inline title editor config (when rename is enabled). Passed to {@link WidgetHeader}. */
|
|
12
|
+
titleEditor?: TitleEditorConfig;
|
|
11
13
|
title?: string;
|
|
12
14
|
description?: string;
|
|
13
15
|
topSlot?: ReactNode;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { MenuItem } from '../../../../shared/types/menu-item';
|
|
1
2
|
/**
|
|
2
3
|
* Config for the info button (data passed into the header/toolbar API)
|
|
3
4
|
*/
|
|
@@ -7,10 +8,41 @@ export type InfoButtonConfig = {
|
|
|
7
8
|
errorMessages?: string[];
|
|
8
9
|
warningMessages?: string[];
|
|
9
10
|
};
|
|
11
|
+
/**
|
|
12
|
+
* Configuration for inline title editing (e.g. rename widget).
|
|
13
|
+
*/
|
|
14
|
+
export type TitleEditorConfig = {
|
|
15
|
+
/** Whether the title is currently being edited */
|
|
16
|
+
isEditing: boolean;
|
|
17
|
+
/** Called when the user commits the new title (blur / Enter) */
|
|
18
|
+
onCommit: (newTitle: string) => void;
|
|
19
|
+
/** Called when the user cancels editing (Escape) */
|
|
20
|
+
onCancel: () => void;
|
|
21
|
+
/** Called to request entering/leaving edit mode */
|
|
22
|
+
onEditingChange: (editing: boolean) => void;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Configuration options for the widget title (e.g. editing enabled flag).
|
|
26
|
+
*/
|
|
27
|
+
export type WidgetHeaderTitleConfig = {
|
|
28
|
+
/**
|
|
29
|
+
* Configuration options for the widget title renaming
|
|
30
|
+
*/
|
|
31
|
+
editing?: {
|
|
32
|
+
/**
|
|
33
|
+
* Whether the widget title editing is enabled
|
|
34
|
+
*/
|
|
35
|
+
enabled?: boolean;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
10
38
|
/**
|
|
11
39
|
* Configuration options for the widget header
|
|
12
40
|
*/
|
|
13
41
|
export type WidgetHeaderConfig = {
|
|
42
|
+
/**
|
|
43
|
+
* Configuration options for the widget title (e.g. editing enabled).
|
|
44
|
+
*/
|
|
45
|
+
title?: WidgetHeaderTitleConfig;
|
|
14
46
|
/**
|
|
15
47
|
* Configuration options for the toolbar
|
|
16
48
|
*/
|
|
@@ -39,20 +71,3 @@ export type ToolbarMenuConfig = {
|
|
|
39
71
|
*/
|
|
40
72
|
items?: MenuItem[];
|
|
41
73
|
};
|
|
42
|
-
/**
|
|
43
|
-
* Menu item in the toolbar
|
|
44
|
-
*/
|
|
45
|
-
export type MenuItem = {
|
|
46
|
-
/**
|
|
47
|
-
* Unique identifier for the menu item
|
|
48
|
-
*/
|
|
49
|
-
id: string;
|
|
50
|
-
/**
|
|
51
|
-
* Handler function to be called when the menu item is clicked
|
|
52
|
-
*/
|
|
53
|
-
onClick: () => void;
|
|
54
|
-
/**
|
|
55
|
-
* Caption of the menu item
|
|
56
|
-
*/
|
|
57
|
-
caption: string;
|
|
58
|
-
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { WidgetContainerStyleOptions } from '../../../../types';
|
|
3
|
-
import { InfoButtonConfig, WidgetHeaderConfig } from './types.js';
|
|
3
|
+
import { InfoButtonConfig, TitleEditorConfig, WidgetHeaderConfig } from './types.js';
|
|
4
4
|
export interface WidgetHeaderProps {
|
|
5
5
|
onRefresh: () => void;
|
|
6
6
|
title?: string;
|
|
@@ -10,5 +10,7 @@ export interface WidgetHeaderProps {
|
|
|
10
10
|
styleOptions?: WidgetContainerStyleOptions['header'];
|
|
11
11
|
/** Header/toolbar configuration (e.g. toolbar menu). */
|
|
12
12
|
config?: WidgetHeaderConfig;
|
|
13
|
+
/** Inline title editor config (injected at runtime when rename is enabled). */
|
|
14
|
+
titleEditor?: TitleEditorConfig;
|
|
13
15
|
}
|
|
14
16
|
export declare const WidgetHeader: React.FC<WidgetHeaderProps>;
|
|
@@ -81,6 +81,10 @@ export declare class RestApi {
|
|
|
81
81
|
* Delete widget from a dashboard
|
|
82
82
|
*/
|
|
83
83
|
deleteWidgetFromDashboard: (dashboardOid: string, widgetOid: string, sharedMode?: boolean) => Promise<void | undefined>;
|
|
84
|
+
/**
|
|
85
|
+
* Partially update a widget in a dashboard.
|
|
86
|
+
*/
|
|
87
|
+
patchWidgetInDashboard: (dashboardOid: string, widgetOid: string, patch: Partial<Pick<WidgetDto, 'title'>>, sharedMode?: boolean) => Promise<WidgetDto | undefined>;
|
|
84
88
|
/**
|
|
85
89
|
* Get shared formulas by ids
|
|
86
90
|
*
|
|
@@ -7,7 +7,8 @@ export type LayoutDto = {
|
|
|
7
7
|
width: number;
|
|
8
8
|
cells?: {
|
|
9
9
|
subcells: {
|
|
10
|
-
|
|
10
|
+
/** Omitted by Fusion for single-widget layouts; defaults to 100 during translation. */
|
|
11
|
+
width?: number;
|
|
11
12
|
elements: {
|
|
12
13
|
height: number | string;
|
|
13
14
|
widgetid: string;
|
|
@@ -52,7 +53,7 @@ export type DashboardSettings = {
|
|
|
52
53
|
managedByTool?: string;
|
|
53
54
|
};
|
|
54
55
|
/**
|
|
55
|
-
* @
|
|
56
|
+
* @sisenseInternal
|
|
56
57
|
*/
|
|
57
58
|
export type DashboardDto = {
|
|
58
59
|
oid: string;
|
|
@@ -1,220 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
import { HttpClient } from '@sisense/sdk-rest-client';
|
|
5
|
-
import { TrackingEventDetails } from '@sisense/sdk-tracking';
|
|
6
|
-
import { SisenseContextProviderProps } from '../../props';
|
|
7
|
-
import { DateConfig } from '../../domains/query-execution/core/date-formats';
|
|
8
|
-
import { LoadingIndicatorConfig, TranslationConfig } from '../../types';
|
|
9
|
-
import { AppSettings } from './settings/settings';
|
|
10
|
-
/**
|
|
11
|
-
* Application configuration
|
|
12
|
-
*/
|
|
13
|
-
export type AppConfig = {
|
|
1
|
+
import { SisenseContextProviderProps } from '../../index';
|
|
2
|
+
import { type ClientApplication } from './types';
|
|
3
|
+
type ClientApplicationParams = Pick<SisenseContextProviderProps, 'appConfig' | 'defaultDataSource' | 'url' | 'token' | 'wat' | 'ssoEnabled' | 'enableSilentPreAuth' | 'useFusionAuth' | 'alternativeSsoHost' | 'disableFusionPalette'> & {
|
|
14
4
|
/**
|
|
15
|
-
*
|
|
5
|
+
* @internal
|
|
16
6
|
*/
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Translation Configuration
|
|
20
|
-
*/
|
|
21
|
-
translationConfig?: TranslationConfig;
|
|
22
|
-
/**
|
|
23
|
-
* Date Configurations
|
|
24
|
-
*/
|
|
25
|
-
dateConfig?: DateConfig;
|
|
26
|
-
/**
|
|
27
|
-
* Loading Indicator Configurations
|
|
28
|
-
*/
|
|
29
|
-
loadingIndicatorConfig?: LoadingIndicatorConfig;
|
|
30
|
-
/**
|
|
31
|
-
* Query Cache Configurations.
|
|
32
|
-
*
|
|
33
|
-
* See [Client query caching guide](/guides/sdk/guides/client-query-caching.html) for more details.
|
|
34
|
-
*
|
|
35
|
-
* @alpha
|
|
36
|
-
*/
|
|
37
|
-
queryCacheConfig?: {
|
|
38
|
-
/**
|
|
39
|
-
* Whether to enable client-side query caching.
|
|
40
|
-
*
|
|
41
|
-
* If not specified, the default value is `false`
|
|
42
|
-
*/
|
|
43
|
-
enabled?: boolean;
|
|
44
|
-
};
|
|
45
|
-
/**
|
|
46
|
-
* Query limit (max rows count that will be fetched in query)
|
|
47
|
-
*
|
|
48
|
-
* @default 20000
|
|
49
|
-
*/
|
|
50
|
-
queryLimit?: number;
|
|
51
|
-
/**
|
|
52
|
-
* Accessibility configuration. Set the `accessibilityConfig.enabled` property to `true` to enable accessibility features for charts built with Highcharts.
|
|
53
|
-
*
|
|
54
|
-
* Once the accessibility configuration in enabled, you can use the default descriptions or choose to create custom configurations for the descriptions of a chart, its axes, its series, and values description formatting. To create custom configurations, use the `highchartsOptions` object that is passed to the {@link BeforeRenderHandler} of the chart's `onBeforeRender` callback. Modify the object using the accessibility options as described in the [Accessibility module documentation](https://www.highcharts.com/docs/accessibility/accessibility-module).
|
|
55
|
-
*
|
|
56
|
-
* Note that enabling accessibility also causes markers to appear in charts even if they are disabled using the chart's `styleOptions`.
|
|
57
|
-
*
|
|
58
|
-
* This feature is in alpha.
|
|
59
|
-
*/
|
|
60
|
-
accessibilityConfig?: {
|
|
61
|
-
/**
|
|
62
|
-
* Whether to enable accessibility features
|
|
63
|
-
*
|
|
64
|
-
* If not specified, the default value is `false`
|
|
65
|
-
*/
|
|
66
|
-
enabled?: boolean;
|
|
67
|
-
};
|
|
68
|
-
/**
|
|
69
|
-
* Configuration of the tabber widgets feature
|
|
70
|
-
*
|
|
71
|
-
* Only tabber widgets that are configured using the Fusion UI as documented [here](https://docs.sisense.com/main/SisenseLinux/tabber.htm#Creating) are supported.
|
|
72
|
-
*/
|
|
73
|
-
tabberConfig?: {
|
|
74
|
-
/**
|
|
75
|
-
* Whether to enable tabber widget support
|
|
76
|
-
*
|
|
77
|
-
* If not specified, the default value is `true`
|
|
78
|
-
*
|
|
79
|
-
* @deprecated Tabber widgets are now supported by default and this property is no longer needed.
|
|
80
|
-
*/
|
|
81
|
-
enabled?: boolean;
|
|
82
|
-
};
|
|
83
|
-
/**
|
|
84
|
-
* Configuration of the component that is rendered in case of an error
|
|
85
|
-
*/
|
|
86
|
-
errorBoundaryConfig?: {
|
|
87
|
-
/**
|
|
88
|
-
* Whether to show error text without hovering over the error icon
|
|
89
|
-
*
|
|
90
|
-
* If not specified, the default value is `false`
|
|
91
|
-
*/
|
|
92
|
-
alwaysShowErrorText?: boolean;
|
|
93
|
-
};
|
|
94
|
-
/**
|
|
95
|
-
* Tracking configuration
|
|
96
|
-
*/
|
|
97
|
-
trackingConfig?: {
|
|
98
|
-
/**
|
|
99
|
-
* Whether to enable or disable tracking in development or test environment.
|
|
100
|
-
*
|
|
101
|
-
* If not specified, the default value is `true`
|
|
102
|
-
*
|
|
103
|
-
* In production, tracking is always enabled.
|
|
104
|
-
*
|
|
105
|
-
* @internal
|
|
106
|
-
*/
|
|
107
|
-
enabled?: boolean;
|
|
108
|
-
/**
|
|
109
|
-
* Callback to be invoked when tracking event occurs
|
|
110
|
-
*/
|
|
111
|
-
onTrackingEvent?: (payload: TrackingEventDetails) => void;
|
|
112
|
-
};
|
|
113
|
-
/**
|
|
114
|
-
* Configuration of the Jump To Dashboard feature
|
|
115
|
-
*
|
|
116
|
-
* This feature is currently in Beta.
|
|
117
|
-
*
|
|
118
|
-
* **Note:** Only widgets that are configured using the Fusion UI as documented
|
|
119
|
-
* [here](https://docs.sisense.com/main/SisenseLinux/jump-to-dashboard.htm?tocpath=Add-ons%7C_____2#ConfiguringJTDPerWidget)
|
|
120
|
-
* are supported in Compose SDK.
|
|
121
|
-
*
|
|
122
|
-
* Widgets that are configured using an older version of Jump To Dashboard, or via scripts, are not supported.
|
|
123
|
-
*
|
|
124
|
-
* Known limitations:
|
|
125
|
-
* - Jump To Dashboard is not currently supported for Pivot widgets.
|
|
126
|
-
* - Target dashboards are always opened in a popup window, options to open in new tab and new window are not supported.
|
|
127
|
-
* - Show 'Header' and 'Dashboards panel' options are not supported (only relevant to Fusion).
|
|
128
|
-
* - 'Reset filters after JTD' is not supported, since changes are never saved to the target dashboard using Compose SDK.
|
|
129
|
-
*
|
|
130
|
-
* The following Jump To Dashboard configuration is supported:
|
|
131
|
-
* - Target dashboard set by Id, with configurable display title
|
|
132
|
-
* - 'Popup window' display type ('Allow Resize' not supported)
|
|
133
|
-
* - Display filter panel on the target dashboard (true/false)
|
|
134
|
-
* - Navigation setting (Click / Right click)
|
|
135
|
-
* - Note: 'Keep changes made by user' is not supported, since changes are never saved to the target dashboard using Compose SDK.
|
|
136
|
-
* - Apply filters to the target dashboard (select)
|
|
137
|
-
* - Merge target dashboard filters (true/false)
|
|
138
|
-
*
|
|
139
|
-
*/
|
|
140
|
-
jumpToDashboardConfig?: {
|
|
141
|
-
/**
|
|
142
|
-
* Whether to enable or disable the Jump To Dashboard feature
|
|
143
|
-
*
|
|
144
|
-
* If not specified, the default value is `true`
|
|
145
|
-
*/
|
|
146
|
-
enabled?: boolean;
|
|
147
|
-
};
|
|
148
|
-
/**
|
|
149
|
-
* Global configuration for some specific aspects of data visualizations.
|
|
150
|
-
*/
|
|
151
|
-
chartConfig?: {
|
|
152
|
-
/** `Table` and `PivotTable` configuration */
|
|
153
|
-
tabular?: {
|
|
154
|
-
/** Configuration for HTML content in `Table` and `PivotTable` */
|
|
155
|
-
htmlContent?: {
|
|
156
|
-
/**
|
|
157
|
-
* If true, the contents of table and pivot table cells are rendered as HTML instead of text.
|
|
158
|
-
*
|
|
159
|
-
* **Note**: The {@link StyledColumn.isHtml} property of columns in `dataOptions` are of higher precedence, and will therefore override this setting.
|
|
160
|
-
* @default true
|
|
161
|
-
* */
|
|
162
|
-
enabled?: boolean;
|
|
163
|
-
/**
|
|
164
|
-
* Enables sanitization of HTML content before rendering to prevent XSS attacks.
|
|
165
|
-
* @default true
|
|
166
|
-
* */
|
|
167
|
-
sanitizeContents?: boolean;
|
|
168
|
-
};
|
|
169
|
-
/**
|
|
170
|
-
* Boolean flag whether to always show the results per page select
|
|
171
|
-
*
|
|
172
|
-
* If `true`, the results per page select will be shown even if there is only one page of results.
|
|
173
|
-
* Currently only supported for `PivotTable`.
|
|
174
|
-
*
|
|
175
|
-
* @default false
|
|
176
|
-
*/
|
|
177
|
-
alwaysShowResultsPerPage?: boolean;
|
|
178
|
-
};
|
|
179
|
-
};
|
|
7
|
+
packageName?: string;
|
|
180
8
|
};
|
|
181
|
-
/**
|
|
182
|
-
* Stands for a Sisense Client Application which connects to a Sisense Environment
|
|
183
|
-
*
|
|
184
|
-
* @internal
|
|
185
|
-
*/
|
|
186
|
-
export interface ClientApplication {
|
|
187
|
-
/**
|
|
188
|
-
* Gets the underlying HTTP Client
|
|
189
|
-
*/
|
|
190
|
-
readonly httpClient: HttpClient;
|
|
191
|
-
/**
|
|
192
|
-
* Gets the underlying Pivot Query Client
|
|
193
|
-
*/
|
|
194
|
-
readonly pivotQueryClient: PivotQueryClient;
|
|
195
|
-
/**
|
|
196
|
-
* Gets the underlying Query Client
|
|
197
|
-
*/
|
|
198
|
-
readonly queryClient: QueryClient;
|
|
199
|
-
/**
|
|
200
|
-
* Gets the default data source being used as default for child components with no explicitly defined data source
|
|
201
|
-
*/
|
|
202
|
-
readonly defaultDataSource?: DataSource;
|
|
203
|
-
/**
|
|
204
|
-
* Gets the application settings
|
|
205
|
-
*/
|
|
206
|
-
settings: AppSettings;
|
|
207
|
-
/**
|
|
208
|
-
* Gets the module to control query cache
|
|
209
|
-
*/
|
|
210
|
-
queryCache: {
|
|
211
|
-
/**
|
|
212
|
-
* Clears the query cache
|
|
213
|
-
*/
|
|
214
|
-
clear: () => void;
|
|
215
|
-
};
|
|
216
|
-
}
|
|
217
|
-
type ClientApplicationParams = Pick<SisenseContextProviderProps, 'appConfig' | 'defaultDataSource' | 'url' | 'token' | 'wat' | 'ssoEnabled' | 'enableSilentPreAuth' | 'useFusionAuth' | 'alternativeSsoHost' | 'disableFusionPalette'>;
|
|
218
9
|
/** @internal */
|
|
219
|
-
export declare const createClientApplication: ({ defaultDataSource, url: rawUrl, token, wat, ssoEnabled, appConfig, enableSilentPreAuth, useFusionAuth, alternativeSsoHost, disableFusionPalette, }: ClientApplicationParams) => Promise<ClientApplication>;
|
|
10
|
+
export declare const createClientApplication: ({ defaultDataSource, url: rawUrl, token, wat, ssoEnabled, appConfig, enableSilentPreAuth, useFusionAuth, alternativeSsoHost, disableFusionPalette, packageName, }: ClientApplicationParams) => Promise<ClientApplication>;
|
|
220
11
|
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AppConfig, SystemSettings } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Checks if the API Telemetry feature is enabled
|
|
4
|
+
*
|
|
5
|
+
* @param systemSettings - System settings
|
|
6
|
+
* @returns True if the API Telemetry feature is enabled, false otherwise
|
|
7
|
+
*/
|
|
8
|
+
export declare function isApiTelemetryEnabled(systemSettings?: SystemSettings): boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Prepares the API Telemetry headers
|
|
11
|
+
*
|
|
12
|
+
* @param appConfig - App config
|
|
13
|
+
* @param isFusionAuth - Whether the application is using Fusion authentication
|
|
14
|
+
* @returns The API Telemetry headers
|
|
15
|
+
*/
|
|
16
|
+
export declare function prepareApiTelemetryHeaders(packageName: string, appConfig?: AppConfig, isFusionAuth?: boolean): Record<string, string>;
|
|
@@ -3,6 +3,8 @@ import { AppConfig, ThemeSettings } from '../../../types';
|
|
|
3
3
|
import { FeatureMap } from './types/features.js';
|
|
4
4
|
/**
|
|
5
5
|
* Application settings
|
|
6
|
+
*
|
|
7
|
+
* @sisenseInternal
|
|
6
8
|
*/
|
|
7
9
|
export type AppSettings = Required<ConfigurableAppSettings> & ServerSettings;
|
|
8
10
|
/**
|
|
@@ -62,6 +64,7 @@ type ServerSettings = {
|
|
|
62
64
|
serverVersion: string;
|
|
63
65
|
serverFeatures: FeatureMap;
|
|
64
66
|
isUnifiedNarrationEnabled?: boolean;
|
|
67
|
+
isSisenseAiEnabled?: boolean;
|
|
65
68
|
user: {
|
|
66
69
|
tenant: {
|
|
67
70
|
name: string;
|
|
@@ -33,6 +33,9 @@ export type DeploymentProps = {
|
|
|
33
33
|
internalMonitoring: boolean;
|
|
34
34
|
isManagedService: boolean;
|
|
35
35
|
licenseState: 'valid';
|
|
36
|
-
narrationProvider: 'arria';
|
|
36
|
+
narrationProvider: 'arria' | 'sisenseAI';
|
|
37
|
+
aiNarrative?: boolean;
|
|
38
|
+
SisenseManagedLLM?: boolean;
|
|
39
|
+
llmBYOK?: boolean;
|
|
37
40
|
InfusionApps: boolean;
|
|
38
41
|
};
|