@sisense/sdk-ui 2.29.0 → 2.30.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 +57 -57
- package/dist/ai.js +767 -797
- package/dist/analytics-composer/node.cjs +1 -1
- package/dist/analytics-composer/node.js +723 -696
- package/dist/analytics-composer.cjs +1 -1
- package/dist/analytics-composer.js +6 -6
- package/dist/{apply-styled-options-to-query-CaP4IMrQ.js → apply-styled-options-to-query-BK1NnV4P.js} +1936 -1862
- package/dist/apply-styled-options-to-query-Dl8vVNxo.cjs +1 -0
- package/dist/{index-C77YCBVd.js → index-DCYw3JUB.js} +29 -7
- package/dist/index-DTvxJdqZ.cjs +1 -0
- package/dist/index.cjs +575 -482
- package/dist/index.js +26629 -25620
- package/dist/index.umd.js +925 -802
- package/dist/packages/sdk-ui/src/domains/dashboarding/common-filters/utils.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/components/dashboard-container.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/components/dashboard-header-config.d.ts +127 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/components/dashboard-header-targets.d.ts +30 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/components/dashboard-header-title.d.ts +20 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/components/dashboard-header.d.ts +10 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/constants.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-helpers.d.ts +21 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/translate-dashboard-utils.d.ts +43 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/dashboard-model-reducer/types.d.ts +7 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/dashboard-model-reducer/utils.d.ts +2 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-module/dashboard-module.d.ts +34 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-module/types.d.ts +58 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/duplicate-widget/use-duplicate-widget-menu-item.d.ts +7 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/use-dashboard-header-menu-item.d.ts +9 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/persistence/types.d.ts +11 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/types.d.ts +18 -7
- package/dist/packages/sdk-ui/src/domains/dashboarding/utils.d.ts +9 -0
- package/dist/packages/sdk-ui/src/domains/data-browser/add-measure-popover/add-measure-data-browser.d.ts +11 -0
- package/dist/packages/sdk-ui/src/domains/data-browser/add-measure-popover/add-measure-popover.d.ts +14 -0
- package/dist/packages/sdk-ui/src/domains/data-browser/add-measure-popover/measure-ranking-title.d.ts +21 -0
- package/dist/packages/sdk-ui/src/domains/data-browser/add-measure-popover/measures.d.ts +13 -0
- package/dist/packages/sdk-ui/src/domains/filters/components/criteria-filter-tile/criteria-filter-menu.d.ts +2 -1
- package/dist/packages/sdk-ui/src/domains/filters/components/criteria-filter-tile/criteria-filter-operations.d.ts +1 -0
- package/dist/packages/sdk-ui/src/domains/filters/components/filter-editor-popover/filter-editor-context.d.ts +1 -0
- package/dist/packages/sdk-ui/src/domains/filters/components/filter-editor-popover/filter-editor-popover.d.ts +2 -1
- package/dist/packages/sdk-ui/src/domains/filters/components/filter-editor-popover/filter-editor.d.ts +2 -1
- package/dist/packages/sdk-ui/src/domains/filters/components/filter-editor-popover/sections/numeric-condition-section/types.d.ts +5 -0
- package/dist/packages/sdk-ui/src/domains/filters/components/filter-editor-popover/sections/ranking-condition/index.d.ts +3 -0
- package/dist/packages/sdk-ui/src/domains/filters/components/filter-editor-popover/sections/ranking-condition/ranking-condition-controls.d.ts +33 -0
- package/dist/packages/sdk-ui/src/domains/filters/components/filter-editor-popover/sections/ranking-condition/ranking-condition-utils.d.ts +13 -0
- package/dist/packages/sdk-ui/src/domains/filters/components/filters-panel/hooks/use-existing-filter-editing.d.ts +2 -1
- package/dist/packages/sdk-ui/src/domains/narrative/components/narrative-collapsible.d.ts +22 -4
- package/dist/packages/sdk-ui/src/domains/narrative/components/narrative-top-slot-shell.d.ts +2 -0
- package/dist/packages/sdk-ui/src/domains/narrative/components/narrative-trigger-button.d.ts +17 -0
- package/dist/packages/sdk-ui/src/domains/narrative/components/widget-narrative-interactive.d.ts +20 -2
- package/dist/packages/sdk-ui/src/domains/narrative/components/widget-narrative.d.ts +11 -9
- package/dist/packages/sdk-ui/src/domains/narrative/core/build-narrative-request.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/narrative/core/get-narrative-dimensions-and-measures.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/narrative/core/get-widget-narrative-from-widget-props.d.ts +18 -0
- package/dist/packages/sdk-ui/src/domains/narrative/core/to-nlg-api-verbosity.d.ts +7 -0
- package/dist/packages/sdk-ui/src/domains/narrative/core/widget-narrative-options.d.ts +101 -23
- package/dist/packages/sdk-ui/src/domains/narrative/core/widget-props-to-narrative-params.d.ts +35 -32
- package/dist/packages/sdk-ui/src/domains/narrative/hooks/use-get-widget-narrative.d.ts +11 -22
- package/dist/packages/sdk-ui/src/domains/narrative/hooks/use-line-height.d.ts +10 -0
- package/dist/packages/sdk-ui/src/domains/narrative/hooks/use-widget-narrative-state.d.ts +8 -9
- package/dist/packages/sdk-ui/src/domains/query-execution/core/execute-query.d.ts +34 -1
- package/dist/packages/sdk-ui/src/domains/query-execution/hooks/use-execute-excel-query/excel-export/build-jaql-excel-export.d.ts +13 -5
- package/dist/packages/sdk-ui/src/domains/query-execution/hooks/use-execute-excel-query/excel-export/build-xlsx-export-payload.d.ts +5 -0
- package/dist/packages/sdk-ui/src/domains/query-execution/hooks/use-execute-query-by-widget-id/use-execute-query-by-widget-id.d.ts +2 -1
- package/dist/packages/sdk-ui/src/domains/query-execution/types.d.ts +55 -3
- package/dist/packages/sdk-ui/src/domains/shared/header/header-item-size.d.ts +30 -0
- package/dist/packages/sdk-ui/src/domains/shared/header/header-items-renderer.d.ts +19 -0
- package/dist/packages/sdk-ui/src/domains/shared/header/header-spacer-item.d.ts +9 -0
- package/dist/packages/sdk-ui/src/domains/shared/header/index.d.ts +6 -0
- package/dist/packages/sdk-ui/src/domains/shared/header/resolve-header-items.d.ts +17 -0
- package/dist/packages/sdk-ui/src/domains/shared/header/types.d.ts +98 -0
- package/dist/packages/sdk-ui/src/domains/shared/header/use-resolved-header-items.d.ts +10 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/areamap-chart/data/areamap-data.d.ts +3 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/cartesians/helpers/data.d.ts +3 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/cartesians/stackable/streamgraph-chart/helpers/chart-data.d.ts +3 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/categoricals/helpers/data.d.ts +3 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/categoricals/sunburst-chart/data/index.d.ts +3 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/categoricals/treemap-chart/data/index.d.ts +3 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/highcharts-based-chart-renderer/build-highchart-options.d.ts +1 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/sankey-chart/alerts/index.d.ts +5 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/sankey-chart/data/index.d.ts +22 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/sankey-chart/data-options/index.d.ts +33 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/sankey-chart/design-options/index.d.ts +21 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/sankey-chart/highchart-options/highcharts-options-builder.d.ts +3 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/sankey-chart/sankey-chart-builder.d.ts +3 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/sankey-chart/sankey-node-colors.d.ts +10 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/sankey-chart/types.d.ts +38 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/types.d.ts +2 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/types.d.ts +12 -9
- package/dist/packages/sdk-ui/src/domains/visualizations/components/pivot-table/formatters/data-cell-formatters/data-cell-value-formatter.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/components/pivot-table/formatters/header-cell-formatters/header-cell-value-formatter.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/components/pivot-table/hooks/use-pivot-data-loading.d.ts +1 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/components/pivot-table/resolve-pivot-container-size.d.ts +28 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/components/sankey-chart.d.ts +30 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/components/table/pure-table/helpers/format-numbers.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-data/cartesian-data.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-data/categorical-data.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-data/chart-data-service.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-data/scatter-data.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-data/types.d.ts +2 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-data-options/apply-styled-options-to-query.d.ts +4 -4
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-data-options/types.d.ts +47 -7
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/chart-options-service.d.ts +3 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/tooltip.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/design-options.d.ts +10 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/funnel-plot-options.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/number-format-config.d.ts +12 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/pie-plot-options.d.ts +2 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/sunburst/sunburst-levels.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/sunburst/sunburst-options.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/treemap/treemap-tooltip.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/types.d.ts +12 -3
- package/dist/packages/sdk-ui/src/domains/widgets/components/chart-widget/types.d.ts +8 -1
- package/dist/packages/sdk-ui/src/domains/widgets/components/chart-widget/use-chart-widget-excel-download.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/widgets/components/chart-widget/use-chart-widget-narrative.d.ts +28 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/custom-widget/use-custom-widget-excel-download.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/widgets/components/pivot-table-widget/pivot-table-widget.d.ts +4 -4
- package/dist/packages/sdk-ui/src/domains/widgets/components/pivot-table-widget/types.d.ts +7 -1
- package/dist/packages/sdk-ui/src/domains/widgets/components/pivot-table-widget/use-pivot-widget-excel-download.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/tabber.d.ts +17 -1
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-widget-style-options/widget-narrative-style.d.ts +31 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/types.d.ts +30 -1
- package/dist/packages/sdk-ui/src/domains/widgets/helpers/excel-export-map-dimensions-measures.d.ts +17 -2
- package/dist/packages/sdk-ui/src/domains/widgets/helpers/number-format-config-to-numeric-mask.d.ts +5 -0
- package/dist/packages/sdk-ui/src/domains/widgets/shared/widget-container/widget-container.d.ts +7 -1
- package/dist/packages/sdk-ui/src/domains/widgets/widget-model/widget-model.d.ts +6 -1
- package/dist/packages/sdk-ui/src/infra/api/narrative/narrative-endpoints.d.ts +2 -2
- package/dist/packages/sdk-ui/src/infra/app/types.d.ts +18 -0
- package/dist/packages/sdk-ui/src/infra/plugins/types.d.ts +34 -6
- package/dist/packages/sdk-ui/src/infra/plugins/widget-plugins/types.d.ts +169 -49
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/de-de.d.ts +22 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/en-us.d.ts +22 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/es-ar.d.ts +22 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/es-es.d.ts +22 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/fr-fr.d.ts +22 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/it-it.d.ts +22 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/ja-jp.d.ts +22 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/ko-kr.d.ts +22 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/nl-nl.d.ts +22 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/pt-br.d.ts +22 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/ru-ru.d.ts +22 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/tr-tr.d.ts +22 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/zh-cn.d.ts +22 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/en.d.ts +22 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/index.d.ts +44 -0
- package/dist/packages/sdk-ui/src/modules/ai/common/collapsible.d.ts +38 -2
- package/dist/packages/sdk-ui/src/modules/ai/get-nlg-insights-from-widget.d.ts +4 -13
- package/dist/packages/sdk-ui/src/modules/ai/index.d.ts +1 -1
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/expression/process-measured-value.d.ts +14 -0
- package/dist/packages/sdk-ui/src/props.d.ts +46 -2
- package/dist/packages/sdk-ui/src/public-api/alpha.d.ts +3 -1
- package/dist/packages/sdk-ui/src/public-api/beta.d.ts +6 -0
- package/dist/packages/sdk-ui/src/public-api/internal.d.ts +1 -1
- package/dist/packages/sdk-ui/src/public-api/sisense-internal.d.ts +5 -3
- package/dist/packages/sdk-ui/src/types.d.ts +78 -6
- package/dist/{use-hover-Dju4Dcv3.js → quota-notification-DqabeDbO.js} +23733 -22015
- package/dist/quota-notification-gYE6PTWA.cjs +750 -0
- package/dist/translations/de-de.cjs +1 -1
- package/dist/translations/de-de.js +27 -5
- 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 +27 -5
- package/dist/translations/es-es.cjs +1 -1
- package/dist/translations/es-es.js +27 -5
- package/dist/translations/fr-fr.cjs +1 -1
- package/dist/translations/fr-fr.js +27 -5
- package/dist/translations/it-it.cjs +1 -1
- package/dist/translations/it-it.js +29 -7
- package/dist/translations/ja-jp.cjs +1 -1
- package/dist/translations/ja-jp.js +27 -5
- package/dist/translations/ko-kr.cjs +1 -1
- package/dist/translations/ko-kr.js +27 -5
- package/dist/translations/nl-nl.cjs +1 -1
- package/dist/translations/nl-nl.js +29 -7
- package/dist/translations/pt-br.cjs +1 -1
- package/dist/translations/pt-br.js +27 -5
- package/dist/translations/ru-ru.cjs +1 -1
- package/dist/translations/ru-ru.js +27 -5
- package/dist/translations/tr-tr.cjs +1 -1
- package/dist/translations/tr-tr.js +27 -5
- package/dist/translations/zh-cn.cjs +1 -1
- package/dist/translations/zh-cn.js +27 -5
- package/dist/{types-DlYJ_DZ0.cjs → types-DSNnndG6.cjs} +1 -1
- package/dist/{types-7YG0uOzO.js → types-DecTaxy7.js} +1 -1
- package/dist/{utils-C4PIba42.cjs → utils-Cpeyj9TN.cjs} +52 -52
- package/dist/{utils-BKRpWUGm.js → utils-L-HO2pCd.js} +2518 -2469
- package/dist/{widget-composer-BXEyx308.cjs → widget-composer-CyWQaInf.cjs} +1 -1
- package/dist/{widget-composer-DRDw1oBF.js → widget-composer-u6NMLm1C.js} +3 -3
- package/package.json +8 -8
- package/dist/apply-styled-options-to-query-D5D8pRl2.cjs +0 -1
- package/dist/index-C9G8giSk.cjs +0 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/use-dashboard-header-toolbar.d.ts +0 -25
- package/dist/use-hover-CANskYrn.cjs +0 -720
|
@@ -256,6 +256,8 @@ declare const _default: {
|
|
|
256
256
|
yes: string;
|
|
257
257
|
no: string;
|
|
258
258
|
seeMore: string;
|
|
259
|
+
generateNarrative: string;
|
|
260
|
+
hideNarrative: string;
|
|
259
261
|
};
|
|
260
262
|
disclaimer: {
|
|
261
263
|
poweredByAi: string;
|
|
@@ -309,6 +311,8 @@ declare const _default: {
|
|
|
309
311
|
from: string;
|
|
310
312
|
to: string;
|
|
311
313
|
includeCurrent: string;
|
|
314
|
+
rankedBy: string;
|
|
315
|
+
selectField: string;
|
|
312
316
|
};
|
|
313
317
|
placeholders: {
|
|
314
318
|
selectFromList: string;
|
|
@@ -333,6 +337,8 @@ declare const _default: {
|
|
|
333
337
|
greaterThan: string;
|
|
334
338
|
greaterThanOrEqual: string;
|
|
335
339
|
isWithin: string;
|
|
340
|
+
top: string;
|
|
341
|
+
bottom: string;
|
|
336
342
|
};
|
|
337
343
|
validationErrors: {
|
|
338
344
|
invalidNumber: string;
|
|
@@ -427,6 +433,11 @@ declare const _default: {
|
|
|
427
433
|
table: {
|
|
428
434
|
label: string;
|
|
429
435
|
};
|
|
436
|
+
sankey: {
|
|
437
|
+
alerts: {
|
|
438
|
+
tooManyStages: string;
|
|
439
|
+
};
|
|
440
|
+
};
|
|
430
441
|
};
|
|
431
442
|
loadingOverlay: {
|
|
432
443
|
label: string;
|
|
@@ -452,6 +463,17 @@ declare const _default: {
|
|
|
452
463
|
median: string;
|
|
453
464
|
variance: string;
|
|
454
465
|
};
|
|
466
|
+
measuresAgg: {
|
|
467
|
+
countDistinct: string;
|
|
468
|
+
count: string;
|
|
469
|
+
sum: string;
|
|
470
|
+
average: string;
|
|
471
|
+
min: string;
|
|
472
|
+
max: string;
|
|
473
|
+
median: string;
|
|
474
|
+
variance: string;
|
|
475
|
+
stdev: string;
|
|
476
|
+
};
|
|
455
477
|
};
|
|
456
478
|
}[];
|
|
457
479
|
export default _default;
|
|
@@ -256,6 +256,8 @@ declare const _default: {
|
|
|
256
256
|
yes: string;
|
|
257
257
|
no: string;
|
|
258
258
|
seeMore: string;
|
|
259
|
+
generateNarrative: string;
|
|
260
|
+
hideNarrative: string;
|
|
259
261
|
};
|
|
260
262
|
disclaimer: {
|
|
261
263
|
poweredByAi: string;
|
|
@@ -309,6 +311,8 @@ declare const _default: {
|
|
|
309
311
|
from: string;
|
|
310
312
|
to: string;
|
|
311
313
|
includeCurrent: string;
|
|
314
|
+
rankedBy: string;
|
|
315
|
+
selectField: string;
|
|
312
316
|
};
|
|
313
317
|
placeholders: {
|
|
314
318
|
selectFromList: string;
|
|
@@ -333,6 +337,8 @@ declare const _default: {
|
|
|
333
337
|
greaterThan: string;
|
|
334
338
|
greaterThanOrEqual: string;
|
|
335
339
|
isWithin: string;
|
|
340
|
+
top: string;
|
|
341
|
+
bottom: string;
|
|
336
342
|
};
|
|
337
343
|
validationErrors: {
|
|
338
344
|
invalidNumber: string;
|
|
@@ -427,6 +433,11 @@ declare const _default: {
|
|
|
427
433
|
table: {
|
|
428
434
|
label: string;
|
|
429
435
|
};
|
|
436
|
+
sankey: {
|
|
437
|
+
alerts: {
|
|
438
|
+
tooManyStages: string;
|
|
439
|
+
};
|
|
440
|
+
};
|
|
430
441
|
};
|
|
431
442
|
loadingOverlay: {
|
|
432
443
|
label: string;
|
|
@@ -452,6 +463,17 @@ declare const _default: {
|
|
|
452
463
|
median: string;
|
|
453
464
|
variance: string;
|
|
454
465
|
};
|
|
466
|
+
measuresAgg: {
|
|
467
|
+
countDistinct: string;
|
|
468
|
+
count: string;
|
|
469
|
+
sum: string;
|
|
470
|
+
average: string;
|
|
471
|
+
min: string;
|
|
472
|
+
max: string;
|
|
473
|
+
median: string;
|
|
474
|
+
variance: string;
|
|
475
|
+
stdev: string;
|
|
476
|
+
};
|
|
455
477
|
};
|
|
456
478
|
}[];
|
|
457
479
|
export default _default;
|
|
@@ -256,6 +256,8 @@ declare const _default: {
|
|
|
256
256
|
yes: string;
|
|
257
257
|
no: string;
|
|
258
258
|
seeMore: string;
|
|
259
|
+
generateNarrative: string;
|
|
260
|
+
hideNarrative: string;
|
|
259
261
|
};
|
|
260
262
|
disclaimer: {
|
|
261
263
|
poweredByAi: string;
|
|
@@ -309,6 +311,8 @@ declare const _default: {
|
|
|
309
311
|
from: string;
|
|
310
312
|
to: string;
|
|
311
313
|
includeCurrent: string;
|
|
314
|
+
rankedBy: string;
|
|
315
|
+
selectField: string;
|
|
312
316
|
};
|
|
313
317
|
placeholders: {
|
|
314
318
|
selectFromList: string;
|
|
@@ -333,6 +337,8 @@ declare const _default: {
|
|
|
333
337
|
greaterThan: string;
|
|
334
338
|
greaterThanOrEqual: string;
|
|
335
339
|
isWithin: string;
|
|
340
|
+
top: string;
|
|
341
|
+
bottom: string;
|
|
336
342
|
};
|
|
337
343
|
validationErrors: {
|
|
338
344
|
invalidNumber: string;
|
|
@@ -427,6 +433,11 @@ declare const _default: {
|
|
|
427
433
|
table: {
|
|
428
434
|
label: string;
|
|
429
435
|
};
|
|
436
|
+
sankey: {
|
|
437
|
+
alerts: {
|
|
438
|
+
tooManyStages: string;
|
|
439
|
+
};
|
|
440
|
+
};
|
|
430
441
|
};
|
|
431
442
|
loadingOverlay: {
|
|
432
443
|
label: string;
|
|
@@ -452,6 +463,17 @@ declare const _default: {
|
|
|
452
463
|
median: string;
|
|
453
464
|
variance: string;
|
|
454
465
|
};
|
|
466
|
+
measuresAgg: {
|
|
467
|
+
countDistinct: string;
|
|
468
|
+
count: string;
|
|
469
|
+
sum: string;
|
|
470
|
+
average: string;
|
|
471
|
+
min: string;
|
|
472
|
+
max: string;
|
|
473
|
+
median: string;
|
|
474
|
+
variance: string;
|
|
475
|
+
stdev: string;
|
|
476
|
+
};
|
|
455
477
|
};
|
|
456
478
|
}[];
|
|
457
479
|
export default _default;
|
|
@@ -256,6 +256,8 @@ declare const _default: {
|
|
|
256
256
|
yes: string;
|
|
257
257
|
no: string;
|
|
258
258
|
seeMore: string;
|
|
259
|
+
generateNarrative: string;
|
|
260
|
+
hideNarrative: string;
|
|
259
261
|
};
|
|
260
262
|
disclaimer: {
|
|
261
263
|
poweredByAi: string;
|
|
@@ -309,6 +311,8 @@ declare const _default: {
|
|
|
309
311
|
from: string;
|
|
310
312
|
to: string;
|
|
311
313
|
includeCurrent: string;
|
|
314
|
+
rankedBy: string;
|
|
315
|
+
selectField: string;
|
|
312
316
|
};
|
|
313
317
|
placeholders: {
|
|
314
318
|
selectFromList: string;
|
|
@@ -333,6 +337,8 @@ declare const _default: {
|
|
|
333
337
|
greaterThan: string;
|
|
334
338
|
greaterThanOrEqual: string;
|
|
335
339
|
isWithin: string;
|
|
340
|
+
top: string;
|
|
341
|
+
bottom: string;
|
|
336
342
|
};
|
|
337
343
|
validationErrors: {
|
|
338
344
|
invalidNumber: string;
|
|
@@ -427,6 +433,11 @@ declare const _default: {
|
|
|
427
433
|
table: {
|
|
428
434
|
label: string;
|
|
429
435
|
};
|
|
436
|
+
sankey: {
|
|
437
|
+
alerts: {
|
|
438
|
+
tooManyStages: string;
|
|
439
|
+
};
|
|
440
|
+
};
|
|
430
441
|
};
|
|
431
442
|
loadingOverlay: {
|
|
432
443
|
label: string;
|
|
@@ -452,6 +463,17 @@ declare const _default: {
|
|
|
452
463
|
median: string;
|
|
453
464
|
variance: string;
|
|
454
465
|
};
|
|
466
|
+
measuresAgg: {
|
|
467
|
+
countDistinct: string;
|
|
468
|
+
count: string;
|
|
469
|
+
sum: string;
|
|
470
|
+
average: string;
|
|
471
|
+
min: string;
|
|
472
|
+
max: string;
|
|
473
|
+
median: string;
|
|
474
|
+
variance: string;
|
|
475
|
+
stdev: string;
|
|
476
|
+
};
|
|
455
477
|
};
|
|
456
478
|
}[];
|
|
457
479
|
export default _default;
|
|
@@ -256,6 +256,8 @@ declare const _default: {
|
|
|
256
256
|
yes: string;
|
|
257
257
|
no: string;
|
|
258
258
|
seeMore: string;
|
|
259
|
+
generateNarrative: string;
|
|
260
|
+
hideNarrative: string;
|
|
259
261
|
};
|
|
260
262
|
disclaimer: {
|
|
261
263
|
poweredByAi: string;
|
|
@@ -309,6 +311,8 @@ declare const _default: {
|
|
|
309
311
|
from: string;
|
|
310
312
|
to: string;
|
|
311
313
|
includeCurrent: string;
|
|
314
|
+
rankedBy: string;
|
|
315
|
+
selectField: string;
|
|
312
316
|
};
|
|
313
317
|
placeholders: {
|
|
314
318
|
selectFromList: string;
|
|
@@ -333,6 +337,8 @@ declare const _default: {
|
|
|
333
337
|
greaterThan: string;
|
|
334
338
|
greaterThanOrEqual: string;
|
|
335
339
|
isWithin: string;
|
|
340
|
+
top: string;
|
|
341
|
+
bottom: string;
|
|
336
342
|
};
|
|
337
343
|
validationErrors: {
|
|
338
344
|
invalidNumber: string;
|
|
@@ -427,6 +433,11 @@ declare const _default: {
|
|
|
427
433
|
table: {
|
|
428
434
|
label: string;
|
|
429
435
|
};
|
|
436
|
+
sankey: {
|
|
437
|
+
alerts: {
|
|
438
|
+
tooManyStages: string;
|
|
439
|
+
};
|
|
440
|
+
};
|
|
430
441
|
};
|
|
431
442
|
loadingOverlay: {
|
|
432
443
|
label: string;
|
|
@@ -452,6 +463,17 @@ declare const _default: {
|
|
|
452
463
|
median: string;
|
|
453
464
|
variance: string;
|
|
454
465
|
};
|
|
466
|
+
measuresAgg: {
|
|
467
|
+
countDistinct: string;
|
|
468
|
+
count: string;
|
|
469
|
+
sum: string;
|
|
470
|
+
average: string;
|
|
471
|
+
min: string;
|
|
472
|
+
max: string;
|
|
473
|
+
median: string;
|
|
474
|
+
variance: string;
|
|
475
|
+
stdev: string;
|
|
476
|
+
};
|
|
455
477
|
};
|
|
456
478
|
}[];
|
|
457
479
|
export default _default;
|
|
@@ -256,6 +256,8 @@ declare const _default: {
|
|
|
256
256
|
yes: string;
|
|
257
257
|
no: string;
|
|
258
258
|
seeMore: string;
|
|
259
|
+
generateNarrative: string;
|
|
260
|
+
hideNarrative: string;
|
|
259
261
|
};
|
|
260
262
|
disclaimer: {
|
|
261
263
|
poweredByAi: string;
|
|
@@ -309,6 +311,8 @@ declare const _default: {
|
|
|
309
311
|
from: string;
|
|
310
312
|
to: string;
|
|
311
313
|
includeCurrent: string;
|
|
314
|
+
rankedBy: string;
|
|
315
|
+
selectField: string;
|
|
312
316
|
};
|
|
313
317
|
placeholders: {
|
|
314
318
|
selectFromList: string;
|
|
@@ -333,6 +337,8 @@ declare const _default: {
|
|
|
333
337
|
greaterThan: string;
|
|
334
338
|
greaterThanOrEqual: string;
|
|
335
339
|
isWithin: string;
|
|
340
|
+
top: string;
|
|
341
|
+
bottom: string;
|
|
336
342
|
};
|
|
337
343
|
validationErrors: {
|
|
338
344
|
invalidNumber: string;
|
|
@@ -427,6 +433,11 @@ declare const _default: {
|
|
|
427
433
|
table: {
|
|
428
434
|
label: string;
|
|
429
435
|
};
|
|
436
|
+
sankey: {
|
|
437
|
+
alerts: {
|
|
438
|
+
tooManyStages: string;
|
|
439
|
+
};
|
|
440
|
+
};
|
|
430
441
|
};
|
|
431
442
|
loadingOverlay: {
|
|
432
443
|
label: string;
|
|
@@ -452,6 +463,17 @@ declare const _default: {
|
|
|
452
463
|
median: string;
|
|
453
464
|
variance: string;
|
|
454
465
|
};
|
|
466
|
+
measuresAgg: {
|
|
467
|
+
countDistinct: string;
|
|
468
|
+
count: string;
|
|
469
|
+
sum: string;
|
|
470
|
+
average: string;
|
|
471
|
+
min: string;
|
|
472
|
+
max: string;
|
|
473
|
+
median: string;
|
|
474
|
+
variance: string;
|
|
475
|
+
stdev: string;
|
|
476
|
+
};
|
|
455
477
|
};
|
|
456
478
|
}[];
|
|
457
479
|
export default _default;
|
|
@@ -256,6 +256,8 @@ declare const _default: {
|
|
|
256
256
|
yes: string;
|
|
257
257
|
no: string;
|
|
258
258
|
seeMore: string;
|
|
259
|
+
generateNarrative: string;
|
|
260
|
+
hideNarrative: string;
|
|
259
261
|
};
|
|
260
262
|
disclaimer: {
|
|
261
263
|
poweredByAi: string;
|
|
@@ -309,6 +311,8 @@ declare const _default: {
|
|
|
309
311
|
from: string;
|
|
310
312
|
to: string;
|
|
311
313
|
includeCurrent: string;
|
|
314
|
+
rankedBy: string;
|
|
315
|
+
selectField: string;
|
|
312
316
|
};
|
|
313
317
|
placeholders: {
|
|
314
318
|
selectFromList: string;
|
|
@@ -333,6 +337,8 @@ declare const _default: {
|
|
|
333
337
|
greaterThan: string;
|
|
334
338
|
greaterThanOrEqual: string;
|
|
335
339
|
isWithin: string;
|
|
340
|
+
top: string;
|
|
341
|
+
bottom: string;
|
|
336
342
|
};
|
|
337
343
|
validationErrors: {
|
|
338
344
|
invalidNumber: string;
|
|
@@ -427,6 +433,11 @@ declare const _default: {
|
|
|
427
433
|
table: {
|
|
428
434
|
label: string;
|
|
429
435
|
};
|
|
436
|
+
sankey: {
|
|
437
|
+
alerts: {
|
|
438
|
+
tooManyStages: string;
|
|
439
|
+
};
|
|
440
|
+
};
|
|
430
441
|
};
|
|
431
442
|
loadingOverlay: {
|
|
432
443
|
label: string;
|
|
@@ -452,6 +463,17 @@ declare const _default: {
|
|
|
452
463
|
median: string;
|
|
453
464
|
variance: string;
|
|
454
465
|
};
|
|
466
|
+
measuresAgg: {
|
|
467
|
+
countDistinct: string;
|
|
468
|
+
count: string;
|
|
469
|
+
sum: string;
|
|
470
|
+
average: string;
|
|
471
|
+
min: string;
|
|
472
|
+
max: string;
|
|
473
|
+
median: string;
|
|
474
|
+
variance: string;
|
|
475
|
+
stdev: string;
|
|
476
|
+
};
|
|
455
477
|
};
|
|
456
478
|
}[];
|
|
457
479
|
export default _default;
|
|
@@ -253,6 +253,8 @@ export declare const translation: {
|
|
|
253
253
|
yes: string;
|
|
254
254
|
no: string;
|
|
255
255
|
seeMore: string;
|
|
256
|
+
generateNarrative: string;
|
|
257
|
+
hideNarrative: string;
|
|
256
258
|
};
|
|
257
259
|
disclaimer: {
|
|
258
260
|
poweredByAi: string;
|
|
@@ -306,6 +308,8 @@ export declare const translation: {
|
|
|
306
308
|
from: string;
|
|
307
309
|
to: string;
|
|
308
310
|
includeCurrent: string;
|
|
311
|
+
rankedBy: string;
|
|
312
|
+
selectField: string;
|
|
309
313
|
};
|
|
310
314
|
placeholders: {
|
|
311
315
|
selectFromList: string;
|
|
@@ -330,6 +334,8 @@ export declare const translation: {
|
|
|
330
334
|
greaterThan: string;
|
|
331
335
|
greaterThanOrEqual: string;
|
|
332
336
|
isWithin: string;
|
|
337
|
+
top: string;
|
|
338
|
+
bottom: string;
|
|
333
339
|
};
|
|
334
340
|
validationErrors: {
|
|
335
341
|
invalidNumber: string;
|
|
@@ -424,6 +430,11 @@ export declare const translation: {
|
|
|
424
430
|
table: {
|
|
425
431
|
label: string;
|
|
426
432
|
};
|
|
433
|
+
sankey: {
|
|
434
|
+
alerts: {
|
|
435
|
+
tooManyStages: string;
|
|
436
|
+
};
|
|
437
|
+
};
|
|
427
438
|
};
|
|
428
439
|
loadingOverlay: {
|
|
429
440
|
label: string;
|
|
@@ -449,6 +460,17 @@ export declare const translation: {
|
|
|
449
460
|
median: string;
|
|
450
461
|
variance: string;
|
|
451
462
|
};
|
|
463
|
+
measuresAgg: {
|
|
464
|
+
countDistinct: string;
|
|
465
|
+
count: string;
|
|
466
|
+
sum: string;
|
|
467
|
+
average: string;
|
|
468
|
+
min: string;
|
|
469
|
+
max: string;
|
|
470
|
+
median: string;
|
|
471
|
+
variance: string;
|
|
472
|
+
stdev: string;
|
|
473
|
+
};
|
|
452
474
|
};
|
|
453
475
|
/**
|
|
454
476
|
* A reference type containing all currently used translation keys.
|
|
@@ -263,6 +263,8 @@ export declare const resources: {
|
|
|
263
263
|
yes: string;
|
|
264
264
|
no: string;
|
|
265
265
|
seeMore: string;
|
|
266
|
+
generateNarrative: string;
|
|
267
|
+
hideNarrative: string;
|
|
266
268
|
};
|
|
267
269
|
disclaimer: {
|
|
268
270
|
poweredByAi: string;
|
|
@@ -316,6 +318,8 @@ export declare const resources: {
|
|
|
316
318
|
from: string;
|
|
317
319
|
to: string;
|
|
318
320
|
includeCurrent: string;
|
|
321
|
+
rankedBy: string;
|
|
322
|
+
selectField: string;
|
|
319
323
|
};
|
|
320
324
|
placeholders: {
|
|
321
325
|
selectFromList: string;
|
|
@@ -340,6 +344,8 @@ export declare const resources: {
|
|
|
340
344
|
greaterThan: string;
|
|
341
345
|
greaterThanOrEqual: string;
|
|
342
346
|
isWithin: string;
|
|
347
|
+
top: string;
|
|
348
|
+
bottom: string;
|
|
343
349
|
};
|
|
344
350
|
validationErrors: {
|
|
345
351
|
invalidNumber: string;
|
|
@@ -434,6 +440,11 @@ export declare const resources: {
|
|
|
434
440
|
table: {
|
|
435
441
|
label: string;
|
|
436
442
|
};
|
|
443
|
+
sankey: {
|
|
444
|
+
alerts: {
|
|
445
|
+
tooManyStages: string;
|
|
446
|
+
};
|
|
447
|
+
};
|
|
437
448
|
};
|
|
438
449
|
loadingOverlay: {
|
|
439
450
|
label: string;
|
|
@@ -459,6 +470,17 @@ export declare const resources: {
|
|
|
459
470
|
median: string;
|
|
460
471
|
variance: string;
|
|
461
472
|
};
|
|
473
|
+
measuresAgg: {
|
|
474
|
+
countDistinct: string;
|
|
475
|
+
count: string;
|
|
476
|
+
sum: string;
|
|
477
|
+
average: string;
|
|
478
|
+
min: string;
|
|
479
|
+
max: string;
|
|
480
|
+
median: string;
|
|
481
|
+
variance: string;
|
|
482
|
+
stdev: string;
|
|
483
|
+
};
|
|
462
484
|
};
|
|
463
485
|
'en-US': {
|
|
464
486
|
errors: {
|
|
@@ -715,6 +737,8 @@ export declare const resources: {
|
|
|
715
737
|
yes: string;
|
|
716
738
|
no: string;
|
|
717
739
|
seeMore: string;
|
|
740
|
+
generateNarrative: string;
|
|
741
|
+
hideNarrative: string;
|
|
718
742
|
};
|
|
719
743
|
disclaimer: {
|
|
720
744
|
poweredByAi: string;
|
|
@@ -768,6 +792,8 @@ export declare const resources: {
|
|
|
768
792
|
from: string;
|
|
769
793
|
to: string;
|
|
770
794
|
includeCurrent: string;
|
|
795
|
+
rankedBy: string;
|
|
796
|
+
selectField: string;
|
|
771
797
|
};
|
|
772
798
|
placeholders: {
|
|
773
799
|
selectFromList: string;
|
|
@@ -792,6 +818,8 @@ export declare const resources: {
|
|
|
792
818
|
greaterThan: string;
|
|
793
819
|
greaterThanOrEqual: string;
|
|
794
820
|
isWithin: string;
|
|
821
|
+
top: string;
|
|
822
|
+
bottom: string;
|
|
795
823
|
};
|
|
796
824
|
validationErrors: {
|
|
797
825
|
invalidNumber: string;
|
|
@@ -886,6 +914,11 @@ export declare const resources: {
|
|
|
886
914
|
table: {
|
|
887
915
|
label: string;
|
|
888
916
|
};
|
|
917
|
+
sankey: {
|
|
918
|
+
alerts: {
|
|
919
|
+
tooManyStages: string;
|
|
920
|
+
};
|
|
921
|
+
};
|
|
889
922
|
};
|
|
890
923
|
loadingOverlay: {
|
|
891
924
|
label: string;
|
|
@@ -911,5 +944,16 @@ export declare const resources: {
|
|
|
911
944
|
median: string;
|
|
912
945
|
variance: string;
|
|
913
946
|
};
|
|
947
|
+
measuresAgg: {
|
|
948
|
+
countDistinct: string;
|
|
949
|
+
count: string;
|
|
950
|
+
sum: string;
|
|
951
|
+
average: string;
|
|
952
|
+
min: string;
|
|
953
|
+
max: string;
|
|
954
|
+
median: string;
|
|
955
|
+
variance: string;
|
|
956
|
+
stdev: string;
|
|
957
|
+
};
|
|
914
958
|
};
|
|
915
959
|
};
|
|
@@ -1,13 +1,49 @@
|
|
|
1
1
|
type CollapsibleProps = {
|
|
2
2
|
text: string;
|
|
3
|
+
/**
|
|
4
|
+
* Overrides default `Collapsed Lines` count with an explicit pixel value, snapped to whole text rows
|
|
5
|
+
* internally. Treated as a max-height cap unless `reserveCollapsedHeight` is true.
|
|
6
|
+
*/
|
|
7
|
+
maxCollapsedHeightPx?: number;
|
|
8
|
+
/**
|
|
9
|
+
* Maximum height of the expanded state in pixels.
|
|
10
|
+
* Content scrolls rather than exceeding this limit. No cap when omitted.
|
|
11
|
+
*/
|
|
12
|
+
maxExpandedHeightPx?: number;
|
|
13
|
+
/**
|
|
14
|
+
* When true the component always occupies exactly `collapsedHeight` pixels even when
|
|
15
|
+
* text is shorter — prevents widget layout shifts during data loads.
|
|
16
|
+
* Defaults to false (`max-height` behaviour, container shrinks to content).
|
|
17
|
+
*/
|
|
18
|
+
reserveCollapsedHeight?: boolean;
|
|
19
|
+
/** Disables collapsing entirely. */
|
|
20
|
+
noCollapse?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Shows a loading overlay at the settled collapsed height.
|
|
23
|
+
* Only renders `LoadingOverlay` (which requires SisenseContext) when this is `true`.
|
|
24
|
+
*/
|
|
25
|
+
isLoading?: boolean;
|
|
26
|
+
/** Shows an error state instead of content. */
|
|
27
|
+
isError?: boolean;
|
|
28
|
+
/** Fired when the collapsed state toggles. */
|
|
29
|
+
onCollapsedChange?: (isCollapsed: boolean) => void;
|
|
30
|
+
/** Additional CSS class applied to the text container. */
|
|
31
|
+
textClassName?: string;
|
|
32
|
+
/**
|
|
33
|
+
* When true, renders an AI disclaimer line below the narrative text.
|
|
34
|
+
* The disclaimer is always visible (not clipped when collapsed) but its height is
|
|
35
|
+
* subtracted from the available text area so the total component height stays within
|
|
36
|
+
* the configured limit. Defaults to false.
|
|
37
|
+
*/
|
|
38
|
+
showDisclaimer?: boolean;
|
|
3
39
|
};
|
|
4
40
|
/**
|
|
5
|
-
* Text container with an expand/collapse button for text
|
|
41
|
+
* Text container with an expand/collapse button for text that overflows the collapsed height.
|
|
6
42
|
*
|
|
7
43
|
* Uses `max-height` + `overflow: hidden` when collapsed (not `line-clamp`), because
|
|
8
44
|
* `white-space: pre-wrap` is incompatible with `-webkit-line-clamp` in browsers.
|
|
9
45
|
*
|
|
10
46
|
* @internal
|
|
11
47
|
*/
|
|
12
|
-
export default function Collapsible({ text }: CollapsibleProps): import("react/jsx-runtime").JSX.Element;
|
|
48
|
+
export default function Collapsible({ text, maxCollapsedHeightPx, maxExpandedHeightPx, reserveCollapsedHeight, noCollapse, isLoading, isError, onCollapsedChange, textClassName, showDisclaimer, }: CollapsibleProps): import("react/jsx-runtime").JSX.Element;
|
|
13
49
|
export {};
|
|
@@ -1,21 +1,14 @@
|
|
|
1
1
|
import { HttpClient } from '@sisense/sdk-rest-client';
|
|
2
|
-
import type { WidgetNarrativeNlgOptions } from '../../domains/narrative/core/widget-narrative-options.js';
|
|
3
2
|
import { WidgetProps } from '../../domains/widgets/components/widget/types';
|
|
4
|
-
/**
|
|
5
|
-
* Options for {@link getNlgInsightsFromWidget} function.
|
|
6
|
-
*
|
|
7
|
-
* @internal
|
|
8
|
-
*/
|
|
9
|
-
export type GetNlgInsightsFromWidgetOptions = WidgetNarrativeNlgOptions;
|
|
10
3
|
/**
|
|
11
4
|
* Pure function that fetches NLG insights from WidgetProps.
|
|
12
5
|
*
|
|
13
6
|
* This function converts WidgetProps to the required API format and makes an HTTP request
|
|
14
7
|
* to get natural language insights about the chart or pivot data.
|
|
15
8
|
*
|
|
16
|
-
* @param props - WidgetProps containing chart or pivot configuration
|
|
9
|
+
* @param props - WidgetProps containing chart or pivot configuration (`aiOptions.narrative`
|
|
10
|
+
* drives {@link WidgetNarrativeOptions})
|
|
17
11
|
* @param httpClient - HttpClient instance for making API requests
|
|
18
|
-
* @param options - Optional configuration including defaultDataSource and verbosity
|
|
19
12
|
* @returns Promise that resolves to the NLG insights answer string
|
|
20
13
|
* @throws Error if dataSource cannot be resolved or if API response is invalid
|
|
21
14
|
* @example
|
|
@@ -32,10 +25,8 @@ export type GetNlgInsightsFromWidgetOptions = WidgetNarrativeNlgOptions;
|
|
|
32
25
|
*
|
|
33
26
|
* const httpClient = new HttpClient(url, auth, env);
|
|
34
27
|
*
|
|
35
|
-
* const insights = await getNlgInsightsFromWidget(widgetProps, httpClient
|
|
36
|
-
* verbosity: 'High',
|
|
37
|
-
* });
|
|
28
|
+
* const insights = await getNlgInsightsFromWidget(widgetProps, httpClient);
|
|
38
29
|
* ```
|
|
39
30
|
* @internal
|
|
40
31
|
*/
|
|
41
|
-
export declare function getNlgInsightsFromWidget(props: WidgetProps, httpClient: HttpClient
|
|
32
|
+
export declare function getNlgInsightsFromWidget(props: WidgetProps, httpClient: HttpClient): Promise<string>;
|
|
@@ -15,5 +15,5 @@ export { ChatRestApi } from './api/chat-rest-api.js';
|
|
|
15
15
|
export type { GetNarrativeOptions } from '../../infra/api/narrative/narrative-endpoints.js';
|
|
16
16
|
export { CustomAiContextProvider, type CustomAiContext, type CustomAiContextProviderProps, } from './custom-ai-context-provider.js';
|
|
17
17
|
export { prepareGetNlgInsightsPayload } from '../../domains/narrative/core/build-narrative-request.js';
|
|
18
|
-
export { getNlgInsightsFromWidget
|
|
18
|
+
export { getNlgInsightsFromWidget } from './get-nlg-insights-from-widget.js';
|
|
19
19
|
export { widgetComposer } from '../../modules/analytics-composer';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FunctionContext, ProcessedArg } from '../../types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Validates measuredValue filters: only plain Filter instances are allowed.
|
|
4
|
+
* FilterRelations (logic.or / logic.and) are rejected because the JAQL engine
|
|
5
|
+
* does not support them inside measured-value formulas.
|
|
6
|
+
*
|
|
7
|
+
* @param processedArgs - [measure, filters, name?, format?]
|
|
8
|
+
* @param context - Processing context with error prefix
|
|
9
|
+
* @returns Same `processedArgs` when validation succeeds
|
|
10
|
+
* @throws Error when any filter entry is a FilterRelations object
|
|
11
|
+
*
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
14
|
+
export declare function processMeasuredValue(processedArgs: ProcessedArg[], context: FunctionContext): ProcessedArg[];
|