@sisense/sdk-ui 2.22.0 → 2.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai.cjs +19 -19
- package/dist/ai.js +59 -59
- package/dist/analytics-composer/node.cjs +1 -1
- package/dist/analytics-composer/node.js +2440 -1253
- package/dist/analytics-composer.cjs +47 -47
- package/dist/analytics-composer.js +135 -131
- package/dist/dimensions-C1R5YRt-.js +204 -0
- package/dist/dimensions-C7yXAoZs.cjs +1 -0
- package/dist/execute-query-0Y9Fn9Pf.cjs +1 -0
- package/dist/execute-query-b9oy2Egy.js +5869 -0
- package/dist/{index-NyouhE_A.cjs → index-Ck-0gJC9.cjs} +1 -1
- package/dist/{index-kxX21arA.js → index-r66Tjiqj.js} +39 -2
- package/dist/index.cjs +633 -616
- package/dist/index.js +18198 -17875
- package/dist/index.umd.js +1006 -949
- 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/use-dashboard-model/dashboard-model-reducer/types.d.ts +24 -2
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/dashboard-model-reducer/utils.d.ts +2 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/use-dashboard-persistence.d.ts +2 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/jtd/jtd-types.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/rename-widget/use-widget-renaming.d.ts +34 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/use-widget-csv-download.d.ts +24 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/types.d.ts +43 -1
- 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/formulas/fetch-formula.d.ts +1 -1
- 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/helpers/use-translated-data-options.d.ts +12 -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/chart-widget/use-chart-widget-csv-download.d.ts +18 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/custom-widget/use-custom-widget-csv-download.d.ts +15 -0
- 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/pivot-table-widget/use-pivot-widget-csv-download.d.ts +18 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/tabber-buttons-widget/types.d.ts +8 -8
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget/types.d.ts +21 -1
- 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/to-widget-dto-style.d.ts +11 -2
- 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 +1 -0
- package/dist/packages/sdk-ui/src/domains/widgets/hooks/use-csv-query-file-loader.d.ts +16 -0
- 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/hooks/use-with-csv-download-menu-item.d.ts +22 -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 +31 -0
- 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 +1 -1
- package/dist/packages/sdk-ui/src/infra/app/client-application.d.ts +5 -231
- 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 +1 -1
- package/dist/packages/sdk-ui/src/infra/app/settings/types/deployment-props.d.ts +3 -0
- package/dist/packages/sdk-ui/src/infra/app/settings/types/features.d.ts +2 -1
- package/dist/packages/sdk-ui/src/infra/app/types.d.ts +236 -0
- package/dist/packages/sdk-ui/src/infra/contexts/custom-widgets-provider/custom-widgets-provider-adapter.d.ts +2 -1
- package/dist/packages/sdk-ui/src/infra/contexts/custom-widgets-provider/use-custom-widgets.d.ts +11 -4
- 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/plugins/custom-plugin-context-provider.d.ts +18 -0
- package/dist/packages/sdk-ui/src/infra/plugins/plugin-context.d.ts +29 -0
- package/dist/packages/sdk-ui/src/infra/{contexts/plugin-provider → plugins}/plugin-provider.d.ts +4 -2
- package/dist/packages/sdk-ui/src/infra/{contexts/plugin-provider → plugins}/types.d.ts +12 -4
- package/dist/packages/sdk-ui/src/infra/plugins/use-widget-plugin-registry.d.ts +7 -0
- package/dist/packages/sdk-ui/src/infra/{contexts/plugin-provider → plugins}/validate-plugins.d.ts +1 -1
- package/dist/packages/sdk-ui/src/infra/plugins/widget-plugins/types.d.ts +302 -0
- package/dist/packages/sdk-ui/src/infra/plugins/widget-plugins/widget-plugin-registry.d.ts +33 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/de-de.d.ts +37 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/en-us.d.ts +37 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/es-ar.d.ts +37 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/es-es.d.ts +37 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/fr-fr.d.ts +37 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/it-it.d.ts +37 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/ja-jp.d.ts +37 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/ko-kr.d.ts +37 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/nl-nl.d.ts +37 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/pt-br.d.ts +37 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/ru-ru.d.ts +37 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/tr-tr.d.ts +37 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/zh-cn.d.ts +37 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/en.d.ts +37 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/index.d.ts +74 -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 +25 -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 +41 -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/shared/utils/parse-compose-code.d.ts +34 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/utils/schema-index.d.ts +52 -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 +20 -2
- 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 +10 -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 +14 -5
- 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/quota-notification/quota-notification.d.ts +2 -2
- package/dist/packages/sdk-ui/src/shared/const.d.ts +5 -0
- package/dist/packages/sdk-ui/src/shared/hooks/use-app-settings.d.ts +2 -1
- package/dist/packages/sdk-ui/src/shared/hooks/use-quota-notification.d.ts +4 -4
- 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/types/menu-item.d.ts +5 -1
- package/dist/packages/sdk-ui/src/shared/utils/menu-item-converters.d.ts +12 -0
- package/dist/packages/sdk-ui/src/types.d.ts +3 -3
- package/dist/quota-notification-BqRYSJ7r.cjs +713 -0
- package/dist/{quota-notification-D6oMJal8.js → quota-notification-CeKnEyQG.js} +18423 -17044
- package/dist/translations/de-de.cjs +1 -1
- package/dist/translations/de-de.js +40 -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 +40 -3
- package/dist/translations/es-es.cjs +1 -1
- package/dist/translations/es-es.js +40 -3
- package/dist/translations/fr-fr.cjs +1 -1
- package/dist/translations/fr-fr.js +40 -3
- package/dist/translations/it-it.cjs +1 -1
- package/dist/translations/it-it.js +42 -5
- package/dist/translations/ja-jp.cjs +1 -1
- package/dist/translations/ja-jp.js +42 -5
- package/dist/translations/ko-kr.cjs +1 -1
- package/dist/translations/ko-kr.js +42 -5
- package/dist/translations/nl-nl.cjs +1 -1
- package/dist/translations/nl-nl.js +42 -5
- package/dist/translations/pt-br.cjs +1 -1
- package/dist/translations/pt-br.js +40 -3
- package/dist/translations/ru-ru.cjs +1 -1
- package/dist/translations/ru-ru.js +42 -5
- package/dist/translations/tr-tr.cjs +1 -1
- package/dist/translations/tr-tr.js +40 -3
- package/dist/translations/zh-cn.cjs +1 -1
- package/dist/translations/zh-cn.js +42 -5
- package/dist/{types-CoY6F8Ma.cjs → types-C0QU2tsE.cjs} +1 -1
- package/dist/{types-ixSwJkxM.js → types-DJtC8_5_.js} +1 -1
- package/dist/{utils-BP-BglHE.js → utils-BCp2ISWh.js} +3745 -3773
- package/dist/{utils-C8YMrOdw.cjs → utils-D8O1_kl3.cjs} +33 -33
- package/dist/{widget-composer-DI4sHaNe.cjs → widget-composer-BkHZISs7.cjs} +1 -1
- package/dist/{widget-composer-CUUFoCb9.js → widget-composer-CDNL9_XF.js} +8 -8
- package/package.json +10 -8
- package/dist/dimensions-BiLyFpCg.js +0 -202
- package/dist/dimensions-X4_igtmO.cjs +0 -1
- package/dist/execute-query-BEeqqDl6.js +0 -5795
- package/dist/execute-query-DJDE0zRU.cjs +0 -1
- package/dist/packages/sdk-ui/src/infra/contexts/plugin-provider/index.d.ts +0 -5
- package/dist/packages/sdk-ui/src/infra/contexts/plugin-provider/plugin-context.d.ts +0 -15
- 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/parse-compose-code.d.ts +0 -15
- 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/quota-notification-z3dv2KoH.cjs +0 -672
|
@@ -137,7 +137,8 @@ type AiStudioFeature = Feature<'aiStudio', {
|
|
|
137
137
|
isUsageDisplayEnabled?: boolean;
|
|
138
138
|
}>;
|
|
139
139
|
type NewNavigationBetaFeature = Feature<'newNavigationBeta'>;
|
|
140
|
-
|
|
140
|
+
type ApiTelemetryFeature = Feature<'apiTelemetry'>;
|
|
141
|
+
export type Features = (AlertingFeature | LiveQueryFeature | NlqFeature | PivotFeature | CustomCodeFeature | CustomCodeTransformationFeature | BuildDestinationFeature | VersionHistoryFeature | EmbedCodeFeature | LiveCustomColumnFeature | ExportingEngineV2Feature | ExportingXlsxV2Feature | ExportingCsvFeature | ConnectionManagementFeature | SisenseLightFeature | WizardSqlEditorFeature | MultiTenancyFeature | BloxFeature | FunnelFeature | Cloud360Feature | BreakByToggleFeature | GitIntegrationFeature | InfusionFeature | InfusionWebClientFeature | NotebooksFeature | AdminWebClientFeature | DateTimeFiltersFeature | TextFiltersFeature | NumericFiltersFeature | FilterRelationsEnabledFeature | TimeLevelSupportEnabledFeature | SyncDashboardEventsFeature | UserProfileFeature | ScatterFeature | CustomFontsFeature | PreferWidgetImageServerExportFeature | NewAdminUIFeature | SharedFormulasFeature | SideBarFeature | InfusionTokenEndpointFeature | ExplanationsForIndicatorWidgetsFeature | ExplanationsForCategoricalWidgetsFeature | WidgetDesignStyleFeature | FiscalOnFeature | ReactAnalyticsWidgetEditorFeature | DynamicSQLFeature | NewCustomConnectorFeature | CrossTenantPerspectivesFeature | EnableDatamodelPerspectiveFeature | AlwaysDirectRelationsFeature | ModelStatisticsFeature | ExportingCsvFormattedFeature | FlexibleTooltipsFeature | DimensionalModelingFeature | CloudCDNFeature | OnboardingFeature | AiAssistantFeature | AiStudioFeature | NewNavigationBetaFeature | ApiTelemetryFeature)[];
|
|
141
142
|
export type FeatureByKey<K extends string> = Extract<Features[number], {
|
|
142
143
|
key: K;
|
|
143
144
|
}>;
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
import { DataSource } from '@sisense/sdk-data';
|
|
2
|
+
import { PivotQueryClient } from '@sisense/sdk-pivot-query-client';
|
|
3
|
+
import { QueryClient } from '@sisense/sdk-query-client';
|
|
4
|
+
import { HttpClient } from '@sisense/sdk-rest-client';
|
|
5
|
+
import { TrackingEventDetails } from '@sisense/sdk-tracking';
|
|
6
|
+
import { DateConfig, LoadingIndicatorConfig, TranslationConfig } from '../../types';
|
|
7
|
+
import { AppSettings } from './settings/settings';
|
|
8
|
+
/**
|
|
9
|
+
* Application configuration
|
|
10
|
+
*/
|
|
11
|
+
export type AppConfig = {
|
|
12
|
+
/**
|
|
13
|
+
* A [date-fns Locale](https://date-fns.org/v2.30.0/docs/Locale)
|
|
14
|
+
*/
|
|
15
|
+
locale?: Locale;
|
|
16
|
+
/**
|
|
17
|
+
* Translation Configuration
|
|
18
|
+
*/
|
|
19
|
+
translationConfig?: TranslationConfig;
|
|
20
|
+
/**
|
|
21
|
+
* Date Configurations
|
|
22
|
+
*/
|
|
23
|
+
dateConfig?: DateConfig;
|
|
24
|
+
/**
|
|
25
|
+
* Loading Indicator Configurations
|
|
26
|
+
*/
|
|
27
|
+
loadingIndicatorConfig?: LoadingIndicatorConfig;
|
|
28
|
+
/**
|
|
29
|
+
* Query Cache Configurations.
|
|
30
|
+
*
|
|
31
|
+
* See [Client query caching guide](/guides/sdk/guides/client-query-caching.html) for more details.
|
|
32
|
+
*
|
|
33
|
+
* @beta
|
|
34
|
+
*/
|
|
35
|
+
queryCacheConfig?: {
|
|
36
|
+
/**
|
|
37
|
+
* Whether to enable client-side query caching.
|
|
38
|
+
*
|
|
39
|
+
* If not specified, the default value is `false`
|
|
40
|
+
*/
|
|
41
|
+
enabled?: boolean;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* Query limit (max rows count that will be fetched in query)
|
|
45
|
+
*
|
|
46
|
+
* @default 20000
|
|
47
|
+
*/
|
|
48
|
+
queryLimit?: number;
|
|
49
|
+
/**
|
|
50
|
+
* Accessibility configuration. Set the `accessibilityConfig.enabled` property to `true` to enable accessibility features for charts built with Highcharts.
|
|
51
|
+
*
|
|
52
|
+
* 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).
|
|
53
|
+
*
|
|
54
|
+
* Note that enabling accessibility also causes markers to appear in charts even if they are disabled using the chart's `styleOptions`.
|
|
55
|
+
*
|
|
56
|
+
* This feature is in alpha.
|
|
57
|
+
*/
|
|
58
|
+
accessibilityConfig?: {
|
|
59
|
+
/**
|
|
60
|
+
* Whether to enable accessibility features
|
|
61
|
+
*
|
|
62
|
+
* If not specified, the default value is `false`
|
|
63
|
+
*/
|
|
64
|
+
enabled?: boolean;
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* Configuration of the tabber widgets feature
|
|
68
|
+
*
|
|
69
|
+
* Only tabber widgets that are configured using the Fusion UI as documented [here](https://docs.sisense.com/main/SisenseLinux/tabber.htm#Creating) are supported.
|
|
70
|
+
*/
|
|
71
|
+
tabberConfig?: {
|
|
72
|
+
/**
|
|
73
|
+
* Whether to enable tabber widget support
|
|
74
|
+
*
|
|
75
|
+
* If not specified, the default value is `true`
|
|
76
|
+
*
|
|
77
|
+
* @deprecated Tabber widgets are now supported by default and this property is no longer needed.
|
|
78
|
+
*/
|
|
79
|
+
enabled?: boolean;
|
|
80
|
+
};
|
|
81
|
+
/**
|
|
82
|
+
* Configuration of the component that is rendered in case of an error
|
|
83
|
+
*/
|
|
84
|
+
errorBoundaryConfig?: {
|
|
85
|
+
/**
|
|
86
|
+
* Whether to show error text without hovering over the error icon
|
|
87
|
+
*
|
|
88
|
+
* If not specified, the default value is `false`
|
|
89
|
+
*/
|
|
90
|
+
alwaysShowErrorText?: boolean;
|
|
91
|
+
};
|
|
92
|
+
/**
|
|
93
|
+
* API Telemetry headers to attach to every request made by the SDK.
|
|
94
|
+
* Attached only when the API Telemetry feature flag is enabled.
|
|
95
|
+
*
|
|
96
|
+
* Support only headers with the prefix 'x-sisense-'.
|
|
97
|
+
*
|
|
98
|
+
* @example
|
|
99
|
+
* ```tsx
|
|
100
|
+
* appConfig={{
|
|
101
|
+
* apiTelemetryHeaders: {
|
|
102
|
+
* 'x-sisense-embed': 'iframe',
|
|
103
|
+
* },
|
|
104
|
+
* }}
|
|
105
|
+
* ```
|
|
106
|
+
* @sisenseInternal
|
|
107
|
+
*/
|
|
108
|
+
apiTelemetryHeaders?: Record<string, string>;
|
|
109
|
+
/**
|
|
110
|
+
* Tracking configuration
|
|
111
|
+
*/
|
|
112
|
+
trackingConfig?: {
|
|
113
|
+
/**
|
|
114
|
+
* Whether to enable or disable tracking in development or test environment.
|
|
115
|
+
*
|
|
116
|
+
* If not specified, the default value is `true`
|
|
117
|
+
*
|
|
118
|
+
* In production, tracking is always enabled.
|
|
119
|
+
*
|
|
120
|
+
* @internal
|
|
121
|
+
*/
|
|
122
|
+
enabled?: boolean;
|
|
123
|
+
/**
|
|
124
|
+
* Callback to be invoked when tracking event occurs
|
|
125
|
+
*/
|
|
126
|
+
onTrackingEvent?: (payload: TrackingEventDetails) => void;
|
|
127
|
+
};
|
|
128
|
+
/**
|
|
129
|
+
* Configuration of the Jump To Dashboard feature
|
|
130
|
+
*
|
|
131
|
+
* This feature is currently in Beta.
|
|
132
|
+
*
|
|
133
|
+
* **Note:** Only widgets that are configured using the Fusion UI as documented
|
|
134
|
+
* [here](https://docs.sisense.com/main/SisenseLinux/jump-to-dashboard.htm?tocpath=Add-ons%7C_____2#ConfiguringJTDPerWidget)
|
|
135
|
+
* are supported in Compose SDK.
|
|
136
|
+
*
|
|
137
|
+
* Widgets that are configured using an older version of Jump To Dashboard, or via scripts, are not supported.
|
|
138
|
+
*
|
|
139
|
+
* Known limitations:
|
|
140
|
+
* - Jump To Dashboard is not currently supported for Pivot widgets.
|
|
141
|
+
* - Target dashboards are always opened in a popup window, options to open in new tab and new window are not supported.
|
|
142
|
+
* - Show 'Header' and 'Dashboards panel' options are not supported (only relevant to Fusion).
|
|
143
|
+
* - 'Reset filters after JTD' is not supported, since changes are never saved to the target dashboard using Compose SDK.
|
|
144
|
+
*
|
|
145
|
+
* The following Jump To Dashboard configuration is supported:
|
|
146
|
+
* - Target dashboard set by Id, with configurable display title
|
|
147
|
+
* - 'Popup window' display type ('Allow Resize' not supported)
|
|
148
|
+
* - Display filter panel on the target dashboard (true/false)
|
|
149
|
+
* - Navigation setting (Click / Right click)
|
|
150
|
+
* - Note: 'Keep changes made by user' is not supported, since changes are never saved to the target dashboard using Compose SDK.
|
|
151
|
+
* - Apply filters to the target dashboard (select)
|
|
152
|
+
* - Merge target dashboard filters (true/false)
|
|
153
|
+
*
|
|
154
|
+
*/
|
|
155
|
+
jumpToDashboardConfig?: {
|
|
156
|
+
/**
|
|
157
|
+
* Whether to enable or disable the Jump To Dashboard feature
|
|
158
|
+
*
|
|
159
|
+
* If not specified, the default value is `true`
|
|
160
|
+
*/
|
|
161
|
+
enabled?: boolean;
|
|
162
|
+
};
|
|
163
|
+
/**
|
|
164
|
+
* Global configuration for some specific aspects of data visualizations.
|
|
165
|
+
*/
|
|
166
|
+
chartConfig?: {
|
|
167
|
+
/** `Table` and `PivotTable` configuration */
|
|
168
|
+
tabular?: {
|
|
169
|
+
/** Configuration for HTML content in `Table` and `PivotTable` */
|
|
170
|
+
htmlContent?: {
|
|
171
|
+
/**
|
|
172
|
+
* If true, the contents of table and pivot table cells are rendered as HTML instead of text.
|
|
173
|
+
*
|
|
174
|
+
* **Note**: The {@link StyledColumn.isHtml} property of columns in `dataOptions` are of higher precedence, and will therefore override this setting.
|
|
175
|
+
* @default true
|
|
176
|
+
* */
|
|
177
|
+
enabled?: boolean;
|
|
178
|
+
/**
|
|
179
|
+
* Enables sanitization of HTML content before rendering to prevent XSS attacks.
|
|
180
|
+
* @default true
|
|
181
|
+
* */
|
|
182
|
+
sanitizeContents?: boolean;
|
|
183
|
+
};
|
|
184
|
+
/**
|
|
185
|
+
* Boolean flag whether to always show the results per page select
|
|
186
|
+
*
|
|
187
|
+
* If `true`, the results per page select will be shown even if there is only one page of results.
|
|
188
|
+
* Currently only supported for `PivotTable`.
|
|
189
|
+
*
|
|
190
|
+
* @default false
|
|
191
|
+
*/
|
|
192
|
+
alwaysShowResultsPerPage?: boolean;
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
/**
|
|
197
|
+
* Stands for a Sisense Client Application which connects to a Sisense Environment
|
|
198
|
+
*
|
|
199
|
+
* @internal
|
|
200
|
+
*/
|
|
201
|
+
export interface ClientApplication {
|
|
202
|
+
/**
|
|
203
|
+
* Gets the underlying HTTP Client
|
|
204
|
+
*/
|
|
205
|
+
readonly httpClient: HttpClient;
|
|
206
|
+
/**
|
|
207
|
+
* Gets the underlying Pivot Query Client
|
|
208
|
+
*/
|
|
209
|
+
readonly pivotQueryClient: PivotQueryClient;
|
|
210
|
+
/**
|
|
211
|
+
* Gets the underlying Query Client
|
|
212
|
+
*/
|
|
213
|
+
readonly queryClient: QueryClient;
|
|
214
|
+
/**
|
|
215
|
+
* Gets the default data source being used as default for child components with no explicitly defined data source
|
|
216
|
+
*/
|
|
217
|
+
readonly defaultDataSource?: DataSource;
|
|
218
|
+
/**
|
|
219
|
+
* Gets the application settings
|
|
220
|
+
*/
|
|
221
|
+
settings: AppSettings;
|
|
222
|
+
/**
|
|
223
|
+
* Gets the module to control query cache
|
|
224
|
+
*/
|
|
225
|
+
queryCache: {
|
|
226
|
+
/**
|
|
227
|
+
* Clears the query cache
|
|
228
|
+
*/
|
|
229
|
+
clear: () => void;
|
|
230
|
+
};
|
|
231
|
+
}
|
|
232
|
+
export type SystemSettings = {
|
|
233
|
+
tracking?: {
|
|
234
|
+
apiTelemetry?: boolean;
|
|
235
|
+
};
|
|
236
|
+
};
|
|
@@ -10,7 +10,8 @@ export type CustomWidgetsContextAdapter<T = CustomWidgetComponentProps> = {
|
|
|
10
10
|
/**
|
|
11
11
|
* Custom Widget Provider Adapter component that allows passing external custom widgets context.
|
|
12
12
|
*
|
|
13
|
-
*
|
|
13
|
+
* Bridges pre-initialized custom widget data from an external wrapper to child React components.
|
|
14
|
+
* Syncs the widget registry with customWidgetsMap on updates and cleans up on unmount.
|
|
14
15
|
*
|
|
15
16
|
* @internal
|
|
16
17
|
*/
|
package/dist/packages/sdk-ui/src/infra/contexts/custom-widgets-provider/use-custom-widgets.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CustomWidgetComponent } from './types';
|
|
1
|
+
import { CustomWidgetComponent, CustomWidgetComponentProps } from './types';
|
|
2
2
|
/**
|
|
3
3
|
* Hook that provides API for configuring custom widgets.
|
|
4
4
|
*
|
|
@@ -18,8 +18,15 @@ import { CustomWidgetComponent } from './types';
|
|
|
18
18
|
*
|
|
19
19
|
* @group Dashboards
|
|
20
20
|
*/
|
|
21
|
-
export declare const useCustomWidgets: () =>
|
|
22
|
-
|
|
21
|
+
export declare const useCustomWidgets: () => UseCustomWidgetsResult;
|
|
22
|
+
/**
|
|
23
|
+
* Result of the `useCustomWidgets` hook.
|
|
24
|
+
*/
|
|
25
|
+
export type UseCustomWidgetsResult = {
|
|
26
|
+
/** Registers a custom widget. */
|
|
27
|
+
registerCustomWidget: <T = CustomWidgetComponentProps>(customWidgetType: string, customWidget: CustomWidgetComponent<T>) => void;
|
|
28
|
+
/** Checks if a custom widget is registered. */
|
|
23
29
|
hasCustomWidget: (customWidgetType: string) => boolean;
|
|
24
|
-
|
|
30
|
+
/** Gets a custom widget. */
|
|
31
|
+
getCustomWidget: (customWidgetType: string) => CustomWidgetComponent | undefined;
|
|
25
32
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { TrackingEventDetails } from '@sisense/sdk-tracking';
|
|
3
3
|
import { SisenseContextProviderProps } from '../../..';
|
|
4
|
-
import { ClientApplication } from '../../app/
|
|
4
|
+
import { type ClientApplication } from '../../app/types';
|
|
5
5
|
export type SisenseContextPayload = {
|
|
6
6
|
isInitialized: boolean;
|
|
7
7
|
app?: ClientApplication;
|
|
@@ -8,7 +8,8 @@ export declare const ThemeContext: import("react").Context<{
|
|
|
8
8
|
* Hook to get the current theme settings.
|
|
9
9
|
*
|
|
10
10
|
* @returns The current theme settings
|
|
11
|
-
*
|
|
11
|
+
*
|
|
12
|
+
* @sisenseInternal
|
|
12
13
|
*/
|
|
13
14
|
export declare const useThemeContext: () => {
|
|
14
15
|
themeSettings: CompleteThemeSettings;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ClientApplication } from '../../app/
|
|
1
|
+
import { ClientApplication } from '../../app/types';
|
|
2
2
|
export type HookDecorator<DecoratorConfig> = (decoratorConfig: DecoratorConfig) => <HookArgs extends any[], HookResult>(hook: (...args: HookArgs) => HookResult) => (...args: HookArgs) => HookResult;
|
|
3
3
|
/**
|
|
4
4
|
* Tracks the hook event and sends it to the server.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type PropsWithChildren } from 'react';
|
|
2
|
+
import { CustomContextProviderProps } from '../../types';
|
|
3
|
+
import type { Plugin } from './types.js';
|
|
4
|
+
/** @internal */
|
|
5
|
+
export type CustomPluginContextProviderContext = {
|
|
6
|
+
plugins: Plugin[];
|
|
7
|
+
};
|
|
8
|
+
/** @internal */
|
|
9
|
+
export type CustomPluginContextProviderProps = CustomContextProviderProps<CustomPluginContextProviderContext>;
|
|
10
|
+
/**
|
|
11
|
+
* Custom Plugin Context Provider component that allows passing external plugin context.
|
|
12
|
+
*
|
|
13
|
+
* Specifically designed to serve as a bridge for passing plugin context between an
|
|
14
|
+
* external framework wrapper and child React components.
|
|
15
|
+
*
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
18
|
+
export declare const CustomPluginContextProvider: React.FC<PropsWithChildren<CustomPluginContextProviderProps>>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { WidgetPlugin } from './widget-plugins/types.js';
|
|
3
|
+
import type { WidgetPluginRegistry } from './widget-plugins/widget-plugin-registry.js';
|
|
4
|
+
/**
|
|
5
|
+
* Context for accessing registered plugins
|
|
6
|
+
*
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
export interface PluginContextValue {
|
|
10
|
+
/**
|
|
11
|
+
* Validated widget plugin declarations (metadata)
|
|
12
|
+
*/
|
|
13
|
+
widgetPlugins: readonly WidgetPlugin[];
|
|
14
|
+
/**
|
|
15
|
+
* Central widget component registry (used for lookup and legacy bridge)
|
|
16
|
+
*/
|
|
17
|
+
widgetRegistry: WidgetPluginRegistry;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Error message when a plugin hook/component is used outside PluginProvider.
|
|
21
|
+
* @internal
|
|
22
|
+
*/
|
|
23
|
+
export declare const PLUGIN_CONTEXT_MISSING_MESSAGE = "PluginContext is missing. Ensure PluginProvider (or a compatible provider) is an ancestor.";
|
|
24
|
+
/**
|
|
25
|
+
* React context for plugin management.
|
|
26
|
+
* Default is null to avoid a shared WidgetPluginRegistry at module load (cross-test/consumer pollution).
|
|
27
|
+
* PluginProvider supplies a real value; consumers must check for null and throw if missing.
|
|
28
|
+
*/
|
|
29
|
+
export declare const PluginContext: import("react").Context<PluginContextValue | null>;
|
package/dist/packages/sdk-ui/src/infra/{contexts/plugin-provider → plugins}/plugin-provider.d.ts
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
|
-
import { Plugin } from './types';
|
|
2
|
+
import { Plugin } from './types.js';
|
|
3
3
|
/**
|
|
4
4
|
* Props for PluginProvider component
|
|
5
5
|
*
|
|
6
|
-
* @
|
|
6
|
+
* @sisenseInternal
|
|
7
7
|
*/
|
|
8
8
|
export interface PluginProviderProps {
|
|
9
9
|
/**
|
|
@@ -17,5 +17,7 @@ export interface PluginProviderProps {
|
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
19
|
* Plugin Provider component that validates and provides access to plugins
|
|
20
|
+
*
|
|
21
|
+
* @sisenseInternal
|
|
20
22
|
*/
|
|
21
23
|
export declare const PluginProvider: React.FC<PluginProviderProps>;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import type { WidgetPlugin } from './widget-plugins/types.js';
|
|
1
2
|
/**
|
|
2
|
-
*
|
|
3
|
+
* Base plugin information
|
|
3
4
|
*
|
|
4
|
-
* @
|
|
5
|
+
* @sisenseInternal
|
|
5
6
|
*/
|
|
6
|
-
export interface
|
|
7
|
+
export interface BasePluginInfo {
|
|
7
8
|
/**
|
|
8
9
|
* Unique name identifier for the plugin
|
|
9
10
|
*/
|
|
@@ -32,7 +33,7 @@ export interface Plugin {
|
|
|
32
33
|
/**
|
|
33
34
|
* Result of plugin validation
|
|
34
35
|
*
|
|
35
|
-
* @
|
|
36
|
+
* @sisenseInternal
|
|
36
37
|
*/
|
|
37
38
|
export interface PluginValidationResult {
|
|
38
39
|
/**
|
|
@@ -48,3 +49,10 @@ export interface PluginValidationResult {
|
|
|
48
49
|
*/
|
|
49
50
|
reason?: string;
|
|
50
51
|
}
|
|
52
|
+
/**
|
|
53
|
+
* Plugin declaration.
|
|
54
|
+
* Currently only widget plugins are supported.
|
|
55
|
+
*
|
|
56
|
+
* @sisenseInternal
|
|
57
|
+
*/
|
|
58
|
+
export type Plugin = WidgetPlugin;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hook for accessing the widget plugin registry.
|
|
3
|
+
* Used internally by the CustomWidget renderer to look up components.
|
|
4
|
+
*
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export declare const useWidgetPluginRegistry: () => import("./widget-plugins/widget-plugin-registry.js").WidgetPluginRegistry;
|