@sisense/sdk-ui 2.23.0 → 2.25.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 +59 -59
- package/dist/ai.js +919 -980
- package/dist/analytics-composer/node.cjs +1 -1
- package/dist/analytics-composer/node.js +1232 -1220
- package/dist/analytics-composer.cjs +1 -1
- package/dist/analytics-composer.js +6 -6
- package/dist/{execute-query-CHYTupEo.js → apply-styled-options-to-query-BsBTwL6W.js} +1522 -1447
- package/dist/apply-styled-options-to-query-mFJvsssw.cjs +1 -0
- package/dist/{index-Dx6wvLd3.cjs → index-BX9p-XrU.cjs} +1 -1
- package/dist/{index-DCAC0mJe.js → index-D7mHzfx0.js} +30 -1
- package/dist/index.cjs +731 -712
- package/dist/index.js +26018 -33110
- package/dist/index.umd.js +985 -958
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/types.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/dashboard-model-reducer/persist-dashboard-model-middleware.d.ts +17 -5
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/dashboard-model-reducer/types.d.ts +4 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/duplicate-widget/use-duplicate-widget-menu-item.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/rename-widget/use-widget-renaming.d.ts +1 -1
- 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/index.d.ts +2 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/persistence/persistence-manager.d.ts +11 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/persistence/types.d.ts +52 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/types.d.ts +25 -28
- package/dist/packages/sdk-ui/src/domains/dashboarding/use-composed-dashboard.d.ts +4 -2
- package/dist/packages/sdk-ui/src/domains/narrative/components/narrative-collapsible.d.ts +13 -0
- package/dist/packages/sdk-ui/src/domains/narrative/components/narrative-top-slot-shell.d.ts +21 -0
- package/dist/packages/sdk-ui/src/domains/narrative/components/widget-narrative-interactive.d.ts +11 -0
- package/dist/packages/sdk-ui/src/domains/narrative/components/widget-narrative.d.ts +40 -0
- package/dist/packages/sdk-ui/src/domains/narrative/core/build-narrative-request.d.ts +36 -0
- package/dist/packages/sdk-ui/src/domains/narrative/core/get-narrative-dimensions-and-measures.d.ts +22 -0
- package/dist/packages/sdk-ui/src/domains/narrative/core/widget-narrative-options.d.ts +28 -0
- package/dist/packages/sdk-ui/src/domains/narrative/core/widget-props-to-narrative-params.d.ts +36 -0
- package/dist/packages/sdk-ui/src/domains/narrative/hooks/use-get-widget-narrative.d.ts +62 -0
- package/dist/packages/sdk-ui/src/domains/narrative/hooks/use-widget-narrative-state.d.ts +39 -0
- 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/core/chart-data-options/apply-styled-options-to-query.d.ts +87 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-data-options/translate-data-options.d.ts +13 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/core/query-definition/compose-code-to-readable.d.ts +12 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/core/query-definition/index.d.ts +6 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/core/query-definition/query-definition.d.ts +26 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/core/query-definition/query-params-to-view-model.d.ts +12 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/core/query-definition/query-pill-bubble-tooltip.d.ts +12 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/core/query-definition/query-pill.d.ts +13 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/core/query-definition/types.d.ts +51 -0
- 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/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-widget-style-options/to-widget-dto-style.d.ts +59 -2
- 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-with-csv-download-menu-item.d.ts +22 -0
- package/dist/packages/sdk-ui/src/domains/widgets/shared/widget-header/widget-menu-button.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/widgets/widget-model/widget-model-translator/utils.d.ts +9 -0
- package/dist/packages/sdk-ui/src/domains/widgets/widget-model/widget-model-translator/widget-model-translator.d.ts +5 -2
- package/dist/packages/sdk-ui/src/infra/api/narrative/narrative-api-types.d.ts +32 -0
- package/dist/packages/sdk-ui/src/infra/api/narrative/narrative-constants.d.ts +6 -0
- package/dist/packages/sdk-ui/src/{modules/ai/api/narration-endpoints.d.ts → infra/api/narrative/narrative-endpoints.d.ts} +8 -7
- package/dist/packages/sdk-ui/src/infra/api/narrative/send-ai-feedback.d.ts +8 -0
- package/dist/packages/sdk-ui/src/infra/app/client-application.d.ts +2 -2
- 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/emotion-cache-provider/emotion-cache-provider.d.ts +31 -3
- package/dist/packages/sdk-ui/src/infra/contexts/emotion-cache-provider/stylis-plugins/css-selector-prefix-plugin.d.ts +18 -0
- 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 +29 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/en-us.d.ts +29 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/es-ar.d.ts +29 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/es-es.d.ts +29 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/fr-fr.d.ts +29 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/it-it.d.ts +29 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/ja-jp.d.ts +29 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/ko-kr.d.ts +29 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/nl-nl.d.ts +29 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/pt-br.d.ts +29 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/ru-ru.d.ts +29 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/tr-tr.d.ts +29 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/zh-cn.d.ts +29 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/en.d.ts +29 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/index.d.ts +58 -0
- package/dist/packages/sdk-ui/src/modules/ai/api/chat-rest-api.d.ts +1 -1
- package/dist/packages/sdk-ui/src/modules/ai/api/types.d.ts +5 -18
- package/dist/packages/sdk-ui/src/modules/ai/chart/nlq-chart-widget.d.ts +2 -0
- package/dist/packages/sdk-ui/src/modules/ai/common/collapsible.d.ts +3 -0
- package/dist/packages/sdk-ui/src/modules/ai/get-nlg-insights-from-widget.d.ts +5 -13
- package/dist/packages/sdk-ui/src/modules/ai/index.d.ts +1 -1
- package/dist/packages/sdk-ui/src/modules/ai/use-get-nlg-insights.d.ts +4 -26
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/expression/custom-formula/validate-custom-formula.d.ts +15 -3
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/expression/formula-function-schemas.d.ts +22 -6
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/utils/schema-index.d.ts +5 -2
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/types.d.ts +3 -7
- package/dist/packages/sdk-ui/src/props.d.ts +20 -2
- package/dist/packages/sdk-ui/src/public-api/internal.d.ts +2 -0
- package/dist/packages/sdk-ui/src/public-api/public.d.ts +1 -1
- package/dist/packages/sdk-ui/src/public-api/sisense-internal.d.ts +9 -1
- package/dist/packages/sdk-ui/src/shared/const.d.ts +5 -0
- 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 +1 -1
- package/dist/parse-compose-code-DfZskSng.js +352 -0
- package/dist/parse-compose-code-v4J9BrUg.cjs +1 -0
- package/dist/translations/de-de.cjs +1 -1
- package/dist/translations/de-de.js +31 -2
- package/dist/translations/en-us.cjs +1 -1
- package/dist/translations/en-us.js +1 -1
- package/dist/translations/es-ar.cjs +1 -1
- package/dist/translations/es-ar.js +31 -2
- package/dist/translations/es-es.cjs +1 -1
- package/dist/translations/es-es.js +31 -2
- package/dist/translations/fr-fr.cjs +1 -1
- package/dist/translations/fr-fr.js +31 -2
- package/dist/translations/it-it.cjs +1 -1
- package/dist/translations/it-it.js +31 -2
- package/dist/translations/ja-jp.cjs +1 -1
- package/dist/translations/ja-jp.js +31 -2
- package/dist/translations/ko-kr.cjs +1 -1
- package/dist/translations/ko-kr.js +31 -2
- package/dist/translations/nl-nl.cjs +1 -1
- package/dist/translations/nl-nl.js +31 -2
- package/dist/translations/pt-br.cjs +1 -1
- package/dist/translations/pt-br.js +31 -2
- package/dist/translations/ru-ru.cjs +1 -1
- package/dist/translations/ru-ru.js +31 -2
- package/dist/translations/tr-tr.cjs +1 -1
- package/dist/translations/tr-tr.js +31 -2
- package/dist/translations/zh-cn.cjs +1 -1
- package/dist/translations/zh-cn.js +31 -2
- package/dist/{types-B96nVbgX.js → types-BBp2sp_s.js} +1 -1
- package/dist/types-GFLaiax5.cjs +1 -0
- package/dist/use-hover-DsnmY-p_.cjs +721 -0
- package/dist/{quota-notification-CVl0isIV.js → use-hover-mptQLQ4S.js} +27865 -19277
- package/dist/{utils-CgV-jWWQ.cjs → utils-BlNqPAG8.cjs} +45 -45
- package/dist/{utils-ChqSLRbz.js → utils-DTUC-wtI.js} +7729 -7513
- package/dist/{widget-composer-Blul90Zb.cjs → widget-composer-CDb2iOoS.cjs} +1 -1
- package/dist/{widget-composer-Cf_CN3Ux.js → widget-composer-D0BZrLna.js} +3 -3
- package/package.json +11 -10
- package/dist/dimensions-2t18RSZC.cjs +0 -1
- package/dist/dimensions-C0BmtTH2.js +0 -204
- package/dist/execute-query-DmAyVFF5.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/infra/styled/index.d.ts +0 -4
- package/dist/packages/sdk-ui/src/infra/styled/with-css-selector-prefix.d.ts +0 -2
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/query/constants.d.ts +0 -8
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/utils/parse-compose-code.d.ts +0 -15
- package/dist/quota-notification-RAaHp-eO.cjs +0 -713
- package/dist/types-DZ4vWh8j.cjs +0 -1
|
@@ -223,6 +223,8 @@ declare const _default: {
|
|
|
223
223
|
deleteWidget: string;
|
|
224
224
|
renameWidget: string;
|
|
225
225
|
distributeEqualWidth: string;
|
|
226
|
+
download: string;
|
|
227
|
+
csvFile: string;
|
|
226
228
|
};
|
|
227
229
|
};
|
|
228
230
|
customWidgets: {
|
|
@@ -407,6 +409,33 @@ declare const _default: {
|
|
|
407
409
|
lockGroup: string;
|
|
408
410
|
unlockGroup: string;
|
|
409
411
|
};
|
|
412
|
+
toggleSwitch: string;
|
|
413
|
+
};
|
|
414
|
+
chart: {
|
|
415
|
+
indicator: {
|
|
416
|
+
label: string;
|
|
417
|
+
};
|
|
418
|
+
visualization: {
|
|
419
|
+
label: string;
|
|
420
|
+
};
|
|
421
|
+
pivotTable: {
|
|
422
|
+
label: string;
|
|
423
|
+
};
|
|
424
|
+
table: {
|
|
425
|
+
label: string;
|
|
426
|
+
};
|
|
427
|
+
};
|
|
428
|
+
loadingOverlay: {
|
|
429
|
+
label: string;
|
|
430
|
+
};
|
|
431
|
+
queryDefinition: {
|
|
432
|
+
showMorePills: string;
|
|
433
|
+
showLess: string;
|
|
434
|
+
connectorBy: string;
|
|
435
|
+
connectorWhere: string;
|
|
436
|
+
tooltipType: string;
|
|
437
|
+
tooltipColumn: string;
|
|
438
|
+
tooltipFormula: string;
|
|
410
439
|
};
|
|
411
440
|
measures: {
|
|
412
441
|
countShort: string;
|
|
@@ -223,6 +223,8 @@ declare const _default: {
|
|
|
223
223
|
deleteWidget: string;
|
|
224
224
|
renameWidget: string;
|
|
225
225
|
distributeEqualWidth: string;
|
|
226
|
+
download: string;
|
|
227
|
+
csvFile: string;
|
|
226
228
|
};
|
|
227
229
|
};
|
|
228
230
|
customWidgets: {
|
|
@@ -407,6 +409,33 @@ declare const _default: {
|
|
|
407
409
|
lockGroup: string;
|
|
408
410
|
unlockGroup: string;
|
|
409
411
|
};
|
|
412
|
+
toggleSwitch: string;
|
|
413
|
+
};
|
|
414
|
+
chart: {
|
|
415
|
+
indicator: {
|
|
416
|
+
label: string;
|
|
417
|
+
};
|
|
418
|
+
visualization: {
|
|
419
|
+
label: string;
|
|
420
|
+
};
|
|
421
|
+
pivotTable: {
|
|
422
|
+
label: string;
|
|
423
|
+
};
|
|
424
|
+
table: {
|
|
425
|
+
label: string;
|
|
426
|
+
};
|
|
427
|
+
};
|
|
428
|
+
loadingOverlay: {
|
|
429
|
+
label: string;
|
|
430
|
+
};
|
|
431
|
+
queryDefinition: {
|
|
432
|
+
showMorePills: string;
|
|
433
|
+
showLess: string;
|
|
434
|
+
connectorBy: string;
|
|
435
|
+
connectorWhere: string;
|
|
436
|
+
tooltipType: string;
|
|
437
|
+
tooltipColumn: string;
|
|
438
|
+
tooltipFormula: string;
|
|
410
439
|
};
|
|
411
440
|
measures: {
|
|
412
441
|
countShort: string;
|
|
@@ -223,6 +223,8 @@ declare const _default: {
|
|
|
223
223
|
deleteWidget: string;
|
|
224
224
|
renameWidget: string;
|
|
225
225
|
distributeEqualWidth: string;
|
|
226
|
+
download: string;
|
|
227
|
+
csvFile: string;
|
|
226
228
|
};
|
|
227
229
|
};
|
|
228
230
|
customWidgets: {
|
|
@@ -407,6 +409,33 @@ declare const _default: {
|
|
|
407
409
|
lockGroup: string;
|
|
408
410
|
unlockGroup: string;
|
|
409
411
|
};
|
|
412
|
+
toggleSwitch: string;
|
|
413
|
+
};
|
|
414
|
+
chart: {
|
|
415
|
+
indicator: {
|
|
416
|
+
label: string;
|
|
417
|
+
};
|
|
418
|
+
visualization: {
|
|
419
|
+
label: string;
|
|
420
|
+
};
|
|
421
|
+
pivotTable: {
|
|
422
|
+
label: string;
|
|
423
|
+
};
|
|
424
|
+
table: {
|
|
425
|
+
label: string;
|
|
426
|
+
};
|
|
427
|
+
};
|
|
428
|
+
loadingOverlay: {
|
|
429
|
+
label: string;
|
|
430
|
+
};
|
|
431
|
+
queryDefinition: {
|
|
432
|
+
showMorePills: string;
|
|
433
|
+
showLess: string;
|
|
434
|
+
connectorBy: string;
|
|
435
|
+
connectorWhere: string;
|
|
436
|
+
tooltipType: string;
|
|
437
|
+
tooltipColumn: string;
|
|
438
|
+
tooltipFormula: string;
|
|
410
439
|
};
|
|
411
440
|
measures: {
|
|
412
441
|
countShort: string;
|
|
@@ -223,6 +223,8 @@ declare const _default: {
|
|
|
223
223
|
deleteWidget: string;
|
|
224
224
|
renameWidget: string;
|
|
225
225
|
distributeEqualWidth: string;
|
|
226
|
+
download: string;
|
|
227
|
+
csvFile: string;
|
|
226
228
|
};
|
|
227
229
|
};
|
|
228
230
|
customWidgets: {
|
|
@@ -407,6 +409,33 @@ declare const _default: {
|
|
|
407
409
|
lockGroup: string;
|
|
408
410
|
unlockGroup: string;
|
|
409
411
|
};
|
|
412
|
+
toggleSwitch: string;
|
|
413
|
+
};
|
|
414
|
+
chart: {
|
|
415
|
+
indicator: {
|
|
416
|
+
label: string;
|
|
417
|
+
};
|
|
418
|
+
visualization: {
|
|
419
|
+
label: string;
|
|
420
|
+
};
|
|
421
|
+
pivotTable: {
|
|
422
|
+
label: string;
|
|
423
|
+
};
|
|
424
|
+
table: {
|
|
425
|
+
label: string;
|
|
426
|
+
};
|
|
427
|
+
};
|
|
428
|
+
loadingOverlay: {
|
|
429
|
+
label: string;
|
|
430
|
+
};
|
|
431
|
+
queryDefinition: {
|
|
432
|
+
showMorePills: string;
|
|
433
|
+
showLess: string;
|
|
434
|
+
connectorBy: string;
|
|
435
|
+
connectorWhere: string;
|
|
436
|
+
tooltipType: string;
|
|
437
|
+
tooltipColumn: string;
|
|
438
|
+
tooltipFormula: string;
|
|
410
439
|
};
|
|
411
440
|
measures: {
|
|
412
441
|
countShort: string;
|
|
@@ -223,6 +223,8 @@ declare const _default: {
|
|
|
223
223
|
deleteWidget: string;
|
|
224
224
|
renameWidget: string;
|
|
225
225
|
distributeEqualWidth: string;
|
|
226
|
+
download: string;
|
|
227
|
+
csvFile: string;
|
|
226
228
|
};
|
|
227
229
|
};
|
|
228
230
|
customWidgets: {
|
|
@@ -407,6 +409,33 @@ declare const _default: {
|
|
|
407
409
|
lockGroup: string;
|
|
408
410
|
unlockGroup: string;
|
|
409
411
|
};
|
|
412
|
+
toggleSwitch: string;
|
|
413
|
+
};
|
|
414
|
+
chart: {
|
|
415
|
+
indicator: {
|
|
416
|
+
label: string;
|
|
417
|
+
};
|
|
418
|
+
visualization: {
|
|
419
|
+
label: string;
|
|
420
|
+
};
|
|
421
|
+
pivotTable: {
|
|
422
|
+
label: string;
|
|
423
|
+
};
|
|
424
|
+
table: {
|
|
425
|
+
label: string;
|
|
426
|
+
};
|
|
427
|
+
};
|
|
428
|
+
loadingOverlay: {
|
|
429
|
+
label: string;
|
|
430
|
+
};
|
|
431
|
+
queryDefinition: {
|
|
432
|
+
showMorePills: string;
|
|
433
|
+
showLess: string;
|
|
434
|
+
connectorBy: string;
|
|
435
|
+
connectorWhere: string;
|
|
436
|
+
tooltipType: string;
|
|
437
|
+
tooltipColumn: string;
|
|
438
|
+
tooltipFormula: string;
|
|
410
439
|
};
|
|
411
440
|
measures: {
|
|
412
441
|
countShort: string;
|
|
@@ -223,6 +223,8 @@ declare const _default: {
|
|
|
223
223
|
deleteWidget: string;
|
|
224
224
|
renameWidget: string;
|
|
225
225
|
distributeEqualWidth: string;
|
|
226
|
+
download: string;
|
|
227
|
+
csvFile: string;
|
|
226
228
|
};
|
|
227
229
|
};
|
|
228
230
|
customWidgets: {
|
|
@@ -407,6 +409,33 @@ declare const _default: {
|
|
|
407
409
|
lockGroup: string;
|
|
408
410
|
unlockGroup: string;
|
|
409
411
|
};
|
|
412
|
+
toggleSwitch: string;
|
|
413
|
+
};
|
|
414
|
+
chart: {
|
|
415
|
+
indicator: {
|
|
416
|
+
label: string;
|
|
417
|
+
};
|
|
418
|
+
visualization: {
|
|
419
|
+
label: string;
|
|
420
|
+
};
|
|
421
|
+
pivotTable: {
|
|
422
|
+
label: string;
|
|
423
|
+
};
|
|
424
|
+
table: {
|
|
425
|
+
label: string;
|
|
426
|
+
};
|
|
427
|
+
};
|
|
428
|
+
loadingOverlay: {
|
|
429
|
+
label: string;
|
|
430
|
+
};
|
|
431
|
+
queryDefinition: {
|
|
432
|
+
showMorePills: string;
|
|
433
|
+
showLess: string;
|
|
434
|
+
connectorBy: string;
|
|
435
|
+
connectorWhere: string;
|
|
436
|
+
tooltipType: string;
|
|
437
|
+
tooltipColumn: string;
|
|
438
|
+
tooltipFormula: string;
|
|
410
439
|
};
|
|
411
440
|
measures: {
|
|
412
441
|
countShort: string;
|
|
@@ -223,6 +223,8 @@ declare const _default: {
|
|
|
223
223
|
deleteWidget: string;
|
|
224
224
|
renameWidget: string;
|
|
225
225
|
distributeEqualWidth: string;
|
|
226
|
+
download: string;
|
|
227
|
+
csvFile: string;
|
|
226
228
|
};
|
|
227
229
|
};
|
|
228
230
|
customWidgets: {
|
|
@@ -407,6 +409,33 @@ declare const _default: {
|
|
|
407
409
|
lockGroup: string;
|
|
408
410
|
unlockGroup: string;
|
|
409
411
|
};
|
|
412
|
+
toggleSwitch: string;
|
|
413
|
+
};
|
|
414
|
+
chart: {
|
|
415
|
+
indicator: {
|
|
416
|
+
label: string;
|
|
417
|
+
};
|
|
418
|
+
visualization: {
|
|
419
|
+
label: string;
|
|
420
|
+
};
|
|
421
|
+
pivotTable: {
|
|
422
|
+
label: string;
|
|
423
|
+
};
|
|
424
|
+
table: {
|
|
425
|
+
label: string;
|
|
426
|
+
};
|
|
427
|
+
};
|
|
428
|
+
loadingOverlay: {
|
|
429
|
+
label: string;
|
|
430
|
+
};
|
|
431
|
+
queryDefinition: {
|
|
432
|
+
showMorePills: string;
|
|
433
|
+
showLess: string;
|
|
434
|
+
connectorBy: string;
|
|
435
|
+
connectorWhere: string;
|
|
436
|
+
tooltipType: string;
|
|
437
|
+
tooltipColumn: string;
|
|
438
|
+
tooltipFormula: string;
|
|
410
439
|
};
|
|
411
440
|
measures: {
|
|
412
441
|
countShort: string;
|
|
@@ -223,6 +223,8 @@ declare const _default: {
|
|
|
223
223
|
deleteWidget: string;
|
|
224
224
|
renameWidget: string;
|
|
225
225
|
distributeEqualWidth: string;
|
|
226
|
+
download: string;
|
|
227
|
+
csvFile: string;
|
|
226
228
|
};
|
|
227
229
|
};
|
|
228
230
|
customWidgets: {
|
|
@@ -407,6 +409,33 @@ declare const _default: {
|
|
|
407
409
|
lockGroup: string;
|
|
408
410
|
unlockGroup: string;
|
|
409
411
|
};
|
|
412
|
+
toggleSwitch: string;
|
|
413
|
+
};
|
|
414
|
+
chart: {
|
|
415
|
+
indicator: {
|
|
416
|
+
label: string;
|
|
417
|
+
};
|
|
418
|
+
visualization: {
|
|
419
|
+
label: string;
|
|
420
|
+
};
|
|
421
|
+
pivotTable: {
|
|
422
|
+
label: string;
|
|
423
|
+
};
|
|
424
|
+
table: {
|
|
425
|
+
label: string;
|
|
426
|
+
};
|
|
427
|
+
};
|
|
428
|
+
loadingOverlay: {
|
|
429
|
+
label: string;
|
|
430
|
+
};
|
|
431
|
+
queryDefinition: {
|
|
432
|
+
showMorePills: string;
|
|
433
|
+
showLess: string;
|
|
434
|
+
connectorBy: string;
|
|
435
|
+
connectorWhere: string;
|
|
436
|
+
tooltipType: string;
|
|
437
|
+
tooltipColumn: string;
|
|
438
|
+
tooltipFormula: string;
|
|
410
439
|
};
|
|
411
440
|
measures: {
|
|
412
441
|
countShort: string;
|
|
@@ -223,6 +223,8 @@ declare const _default: {
|
|
|
223
223
|
deleteWidget: string;
|
|
224
224
|
renameWidget: string;
|
|
225
225
|
distributeEqualWidth: string;
|
|
226
|
+
download: string;
|
|
227
|
+
csvFile: string;
|
|
226
228
|
};
|
|
227
229
|
};
|
|
228
230
|
customWidgets: {
|
|
@@ -407,6 +409,33 @@ declare const _default: {
|
|
|
407
409
|
lockGroup: string;
|
|
408
410
|
unlockGroup: string;
|
|
409
411
|
};
|
|
412
|
+
toggleSwitch: string;
|
|
413
|
+
};
|
|
414
|
+
chart: {
|
|
415
|
+
indicator: {
|
|
416
|
+
label: string;
|
|
417
|
+
};
|
|
418
|
+
visualization: {
|
|
419
|
+
label: string;
|
|
420
|
+
};
|
|
421
|
+
pivotTable: {
|
|
422
|
+
label: string;
|
|
423
|
+
};
|
|
424
|
+
table: {
|
|
425
|
+
label: string;
|
|
426
|
+
};
|
|
427
|
+
};
|
|
428
|
+
loadingOverlay: {
|
|
429
|
+
label: string;
|
|
430
|
+
};
|
|
431
|
+
queryDefinition: {
|
|
432
|
+
showMorePills: string;
|
|
433
|
+
showLess: string;
|
|
434
|
+
connectorBy: string;
|
|
435
|
+
connectorWhere: string;
|
|
436
|
+
tooltipType: string;
|
|
437
|
+
tooltipColumn: string;
|
|
438
|
+
tooltipFormula: string;
|
|
410
439
|
};
|
|
411
440
|
measures: {
|
|
412
441
|
countShort: string;
|
|
@@ -223,6 +223,8 @@ declare const _default: {
|
|
|
223
223
|
deleteWidget: string;
|
|
224
224
|
renameWidget: string;
|
|
225
225
|
distributeEqualWidth: string;
|
|
226
|
+
download: string;
|
|
227
|
+
csvFile: string;
|
|
226
228
|
};
|
|
227
229
|
};
|
|
228
230
|
customWidgets: {
|
|
@@ -407,6 +409,33 @@ declare const _default: {
|
|
|
407
409
|
lockGroup: string;
|
|
408
410
|
unlockGroup: string;
|
|
409
411
|
};
|
|
412
|
+
toggleSwitch: string;
|
|
413
|
+
};
|
|
414
|
+
chart: {
|
|
415
|
+
indicator: {
|
|
416
|
+
label: string;
|
|
417
|
+
};
|
|
418
|
+
visualization: {
|
|
419
|
+
label: string;
|
|
420
|
+
};
|
|
421
|
+
pivotTable: {
|
|
422
|
+
label: string;
|
|
423
|
+
};
|
|
424
|
+
table: {
|
|
425
|
+
label: string;
|
|
426
|
+
};
|
|
427
|
+
};
|
|
428
|
+
loadingOverlay: {
|
|
429
|
+
label: string;
|
|
430
|
+
};
|
|
431
|
+
queryDefinition: {
|
|
432
|
+
showMorePills: string;
|
|
433
|
+
showLess: string;
|
|
434
|
+
connectorBy: string;
|
|
435
|
+
connectorWhere: string;
|
|
436
|
+
tooltipType: string;
|
|
437
|
+
tooltipColumn: string;
|
|
438
|
+
tooltipFormula: string;
|
|
410
439
|
};
|
|
411
440
|
measures: {
|
|
412
441
|
countShort: string;
|
|
@@ -220,6 +220,8 @@ export declare const translation: {
|
|
|
220
220
|
deleteWidget: string;
|
|
221
221
|
renameWidget: string;
|
|
222
222
|
distributeEqualWidth: string;
|
|
223
|
+
download: string;
|
|
224
|
+
csvFile: string;
|
|
223
225
|
};
|
|
224
226
|
};
|
|
225
227
|
customWidgets: {
|
|
@@ -404,6 +406,33 @@ export declare const translation: {
|
|
|
404
406
|
lockGroup: string;
|
|
405
407
|
unlockGroup: string;
|
|
406
408
|
};
|
|
409
|
+
toggleSwitch: string;
|
|
410
|
+
};
|
|
411
|
+
chart: {
|
|
412
|
+
indicator: {
|
|
413
|
+
label: string;
|
|
414
|
+
};
|
|
415
|
+
visualization: {
|
|
416
|
+
label: string;
|
|
417
|
+
};
|
|
418
|
+
pivotTable: {
|
|
419
|
+
label: string;
|
|
420
|
+
};
|
|
421
|
+
table: {
|
|
422
|
+
label: string;
|
|
423
|
+
};
|
|
424
|
+
};
|
|
425
|
+
loadingOverlay: {
|
|
426
|
+
label: string;
|
|
427
|
+
};
|
|
428
|
+
queryDefinition: {
|
|
429
|
+
showMorePills: string;
|
|
430
|
+
showLess: string;
|
|
431
|
+
connectorBy: string;
|
|
432
|
+
connectorWhere: string;
|
|
433
|
+
tooltipType: string;
|
|
434
|
+
tooltipColumn: string;
|
|
435
|
+
tooltipFormula: string;
|
|
407
436
|
};
|
|
408
437
|
measures: {
|
|
409
438
|
countShort: string;
|
|
@@ -230,6 +230,8 @@ export declare const resources: {
|
|
|
230
230
|
deleteWidget: string;
|
|
231
231
|
renameWidget: string;
|
|
232
232
|
distributeEqualWidth: string;
|
|
233
|
+
download: string;
|
|
234
|
+
csvFile: string;
|
|
233
235
|
};
|
|
234
236
|
};
|
|
235
237
|
customWidgets: {
|
|
@@ -414,6 +416,33 @@ export declare const resources: {
|
|
|
414
416
|
lockGroup: string;
|
|
415
417
|
unlockGroup: string;
|
|
416
418
|
};
|
|
419
|
+
toggleSwitch: string;
|
|
420
|
+
};
|
|
421
|
+
chart: {
|
|
422
|
+
indicator: {
|
|
423
|
+
label: string;
|
|
424
|
+
};
|
|
425
|
+
visualization: {
|
|
426
|
+
label: string;
|
|
427
|
+
};
|
|
428
|
+
pivotTable: {
|
|
429
|
+
label: string;
|
|
430
|
+
};
|
|
431
|
+
table: {
|
|
432
|
+
label: string;
|
|
433
|
+
};
|
|
434
|
+
};
|
|
435
|
+
loadingOverlay: {
|
|
436
|
+
label: string;
|
|
437
|
+
};
|
|
438
|
+
queryDefinition: {
|
|
439
|
+
showMorePills: string;
|
|
440
|
+
showLess: string;
|
|
441
|
+
connectorBy: string;
|
|
442
|
+
connectorWhere: string;
|
|
443
|
+
tooltipType: string;
|
|
444
|
+
tooltipColumn: string;
|
|
445
|
+
tooltipFormula: string;
|
|
417
446
|
};
|
|
418
447
|
measures: {
|
|
419
448
|
countShort: string;
|
|
@@ -650,6 +679,8 @@ export declare const resources: {
|
|
|
650
679
|
deleteWidget: string;
|
|
651
680
|
renameWidget: string;
|
|
652
681
|
distributeEqualWidth: string;
|
|
682
|
+
download: string;
|
|
683
|
+
csvFile: string;
|
|
653
684
|
};
|
|
654
685
|
};
|
|
655
686
|
customWidgets: {
|
|
@@ -834,6 +865,33 @@ export declare const resources: {
|
|
|
834
865
|
lockGroup: string;
|
|
835
866
|
unlockGroup: string;
|
|
836
867
|
};
|
|
868
|
+
toggleSwitch: string;
|
|
869
|
+
};
|
|
870
|
+
chart: {
|
|
871
|
+
indicator: {
|
|
872
|
+
label: string;
|
|
873
|
+
};
|
|
874
|
+
visualization: {
|
|
875
|
+
label: string;
|
|
876
|
+
};
|
|
877
|
+
pivotTable: {
|
|
878
|
+
label: string;
|
|
879
|
+
};
|
|
880
|
+
table: {
|
|
881
|
+
label: string;
|
|
882
|
+
};
|
|
883
|
+
};
|
|
884
|
+
loadingOverlay: {
|
|
885
|
+
label: string;
|
|
886
|
+
};
|
|
887
|
+
queryDefinition: {
|
|
888
|
+
showMorePills: string;
|
|
889
|
+
showLess: string;
|
|
890
|
+
connectorBy: string;
|
|
891
|
+
connectorWhere: string;
|
|
892
|
+
tooltipType: string;
|
|
893
|
+
tooltipColumn: string;
|
|
894
|
+
tooltipFormula: string;
|
|
837
895
|
};
|
|
838
896
|
measures: {
|
|
839
897
|
countShort: string;
|
|
@@ -20,7 +20,7 @@ export declare class ChatRestApi {
|
|
|
20
20
|
private deleteChatHistory;
|
|
21
21
|
private sendFeedback;
|
|
22
22
|
ai: {
|
|
23
|
-
getNlgInsights: (request: GetNlgInsightsRequest) => Promise<import(
|
|
23
|
+
getNlgInsights: (request: GetNlgInsightsRequest) => Promise<import("../../../infra/api/narrative/narrative-api-types").NarrativeResponse>;
|
|
24
24
|
getNlqResult: (contextTitle: string, request: GetNlqResultRequest) => Promise<NlqResult | undefined>;
|
|
25
25
|
getQueryRecommendations: (contextTitle: string, config: QueryRecommendationConfig) => Promise<QueryRecommendationResponse | undefined>;
|
|
26
26
|
setLlmConfig: (config: LlmConfig) => Promise<unknown>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { JaqlQueryPayload } from '@sisense/sdk-query-client';
|
|
2
1
|
import { WidgetProps } from '../../../domains/widgets/components/widget/types';
|
|
2
|
+
import type { GetNlgInsightsResponse as GetNlgInsightsResponseInfra, SendAiFeedbackRequest } from '../../../infra/api/narrative/narrative-api-types.js';
|
|
3
3
|
import { ExpandedQueryModel } from '../../../modules/analytics-composer';
|
|
4
4
|
export interface ChatContext {
|
|
5
5
|
title: string;
|
|
@@ -102,17 +102,9 @@ export type NlqResult = Omit<NlqResponseData, 'followupQuestions'>;
|
|
|
102
102
|
export interface QueryRecommendation extends Omit<NlqResponseData, 'followupQuestions'> {
|
|
103
103
|
}
|
|
104
104
|
export type QueryRecommendationResponse = QueryRecommendation[];
|
|
105
|
-
export
|
|
106
|
-
jaql: Pick<JaqlQueryPayload, 'datasource' | 'metadata' | 'filterRelations'>;
|
|
107
|
-
verbosity?: 'Low' | 'High';
|
|
108
|
-
}
|
|
105
|
+
export type { GetNlgInsightsRequest } from '../../../infra/api/narrative/narrative-api-types.js';
|
|
109
106
|
/** @internal */
|
|
110
|
-
export
|
|
111
|
-
data?: {
|
|
112
|
-
answer: string;
|
|
113
|
-
};
|
|
114
|
-
responseType: 'Text';
|
|
115
|
-
}
|
|
107
|
+
export type GetNlgInsightsResponse = GetNlgInsightsResponseInfra;
|
|
116
108
|
/** @internal */
|
|
117
109
|
export declare const NLQ_RESULT_CHART_TYPES: readonly ["indicator", "column", "line", "table", "pie", "bar"];
|
|
118
110
|
/** NLQ result chart types @expandType */
|
|
@@ -122,12 +114,8 @@ export interface GetNlqResultRequest {
|
|
|
122
114
|
timezone?: string;
|
|
123
115
|
chartTypes: NlqResultChartType[];
|
|
124
116
|
}
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
data: object;
|
|
128
|
-
sourceId: string;
|
|
129
|
-
rating: -1 | 1;
|
|
130
|
-
}
|
|
117
|
+
/** @internal */
|
|
118
|
+
export type SendFeedbackRequest = SendAiFeedbackRequest;
|
|
131
119
|
/**
|
|
132
120
|
* The chat mode to use for a chat session
|
|
133
121
|
*
|
|
@@ -135,4 +123,3 @@ export interface SendFeedbackRequest {
|
|
|
135
123
|
* develop: Enable developers to build queries and charts for embedded analytics
|
|
136
124
|
*/
|
|
137
125
|
export type ChatMode = 'analyze' | 'develop';
|
|
138
|
-
export {};
|
|
@@ -40,6 +40,8 @@ export interface NlqChartWidgetProps {
|
|
|
40
40
|
/**
|
|
41
41
|
* React component that renders a chart widget based on NLQ response data.
|
|
42
42
|
*
|
|
43
|
+
* @deprecated Prefer composing `ChartWidget` with `WidgetNarrative` when using `WidgetProps` for new embeds.
|
|
44
|
+
*
|
|
43
45
|
* @example
|
|
44
46
|
* ```tsx
|
|
45
47
|
* import { NlqChartWidget, NlqResponseData } from '@sisense/sdk-ui/ai';
|
|
@@ -4,6 +4,9 @@ type CollapsibleProps = {
|
|
|
4
4
|
/**
|
|
5
5
|
* Text container with an expand/collapse button for text over the character limit.
|
|
6
6
|
*
|
|
7
|
+
* Uses `max-height` + `overflow: hidden` when collapsed (not `line-clamp`), because
|
|
8
|
+
* `white-space: pre-wrap` is incompatible with `-webkit-line-clamp` in browsers.
|
|
9
|
+
*
|
|
7
10
|
* @internal
|
|
8
11
|
*/
|
|
9
12
|
export default function Collapsible({ text }: CollapsibleProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,31 +1,23 @@
|
|
|
1
|
-
import { DataSource } from '@sisense/sdk-data';
|
|
2
1
|
import { HttpClient } from '@sisense/sdk-rest-client';
|
|
2
|
+
import type { WidgetNarrativeNlgOptions } from '../../domains/narrative/core/widget-narrative-options.js';
|
|
3
3
|
import { WidgetProps } from '../../domains/widgets/components/widget/types';
|
|
4
4
|
/**
|
|
5
5
|
* Options for {@link getNlgInsightsFromWidget} function.
|
|
6
|
+
*
|
|
6
7
|
* @internal
|
|
7
8
|
*/
|
|
8
|
-
export
|
|
9
|
-
/** Optional default data source to use if WidgetProps.dataSource is undefined */
|
|
10
|
-
defaultDataSource?: DataSource;
|
|
11
|
-
/** The verbosity of the NLG summarization */
|
|
12
|
-
verbosity?: 'Low' | 'High';
|
|
13
|
-
/** When false, legacy narration endpoint only; when true or undefined, try unified then fallback. From props.isUnifiedNarrationEnabled. */
|
|
14
|
-
isUnifiedNarrationEnabled?: boolean;
|
|
15
|
-
isSisenseAiEnabled?: boolean;
|
|
16
|
-
}
|
|
9
|
+
export type GetNlgInsightsFromWidgetOptions = WidgetNarrativeNlgOptions;
|
|
17
10
|
/**
|
|
18
11
|
* Pure function that fetches NLG insights from WidgetProps.
|
|
19
12
|
*
|
|
20
13
|
* This function converts WidgetProps to the required API format and makes an HTTP request
|
|
21
|
-
* to get natural language insights about the chart data.
|
|
14
|
+
* to get natural language insights about the chart or pivot data.
|
|
22
15
|
*
|
|
23
|
-
* @param props - WidgetProps containing chart configuration
|
|
16
|
+
* @param props - WidgetProps containing chart or pivot configuration
|
|
24
17
|
* @param httpClient - HttpClient instance for making API requests
|
|
25
18
|
* @param options - Optional configuration including defaultDataSource and verbosity
|
|
26
19
|
* @returns Promise that resolves to the NLG insights answer string
|
|
27
20
|
* @throws Error if dataSource cannot be resolved or if API response is invalid
|
|
28
|
-
*
|
|
29
21
|
* @example
|
|
30
22
|
* ```typescript
|
|
31
23
|
* import { getNlgInsightsFromWidget } from '@sisense/sdk-ui/ai';
|
|
@@ -13,6 +13,6 @@ export { default as GetNlgInsights, type GetNlgInsightsProps } from './get-nlg-i
|
|
|
13
13
|
export { NlqChartWidget, type NlqChartWidgetProps } from './chart/nlq-chart-widget.js';
|
|
14
14
|
export { ChatRestApi } from './api/chat-rest-api.js';
|
|
15
15
|
export { CustomAiContextProvider, type CustomAiContext, type CustomAiContextProviderProps, } from './custom-ai-context-provider.js';
|
|
16
|
-
export { prepareGetNlgInsightsPayload } from '
|
|
16
|
+
export { prepareGetNlgInsightsPayload } from '../../domains/narrative/core/build-narrative-request.js';
|
|
17
17
|
export { getNlgInsightsFromWidget, type GetNlgInsightsFromWidgetOptions, } from './get-nlg-insights-from-widget.js';
|
|
18
18
|
export { widgetComposer } from '../../modules/analytics-composer';
|