@sisense/sdk-ui 1.28.0 → 1.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.
Files changed (92) hide show
  1. package/dist/ai.cjs +51 -51
  2. package/dist/ai.js +1177 -1122
  3. package/dist/analytics-composer.cjs +20 -20
  4. package/dist/analytics-composer.js +180 -182
  5. package/dist/{derive-chart-family-BYdyoe8O.js → derive-chart-family-B2J2kMs6.js} +15299 -15416
  6. package/dist/{derive-chart-family-BNu7PP-p.cjs → derive-chart-family-Bmg9hQGc.cjs} +102 -102
  7. package/dist/index.cjs +252 -121
  8. package/dist/index.js +12548 -10364
  9. package/dist/packages/sdk-ui/src/ai/ai-context-provider.d.ts +2 -1
  10. package/dist/packages/sdk-ui/src/ai/api/chat-api-provider.d.ts +2 -1
  11. package/dist/packages/sdk-ui/src/ai/api/chat-rest-api.d.ts +5 -3
  12. package/dist/packages/sdk-ui/src/ai/api/hooks.d.ts +4 -3
  13. package/dist/packages/sdk-ui/src/ai/api/types.d.ts +6 -1
  14. package/dist/packages/sdk-ui/src/ai/chart/nlq-chart-widget.d.ts +10 -1
  15. package/dist/packages/sdk-ui/src/ai/chat-box.d.ts +3 -1
  16. package/dist/packages/sdk-ui/src/ai/chat-config.d.ts +7 -1
  17. package/dist/packages/sdk-ui/src/ai/chat-id-storage-provider.d.ts +12 -0
  18. package/dist/packages/sdk-ui/src/ai/use-chat-session.d.ts +4 -3
  19. package/dist/packages/sdk-ui/src/ai/use-get-chat.d.ts +6 -0
  20. package/dist/packages/sdk-ui/src/ai/use-get-nlg-insights.d.ts +2 -0
  21. package/dist/packages/sdk-ui/src/ai/use-get-query-recommendations.d.ts +3 -2
  22. package/dist/packages/sdk-ui/src/ai/use-last-nlq-response.d.ts +4 -2
  23. package/dist/packages/sdk-ui/src/analytics-composer/common/utils.d.ts +0 -1
  24. package/dist/packages/sdk-ui/src/area-chart.d.ts +1 -1
  25. package/dist/packages/sdk-ui/src/areamap-chart.d.ts +1 -1
  26. package/dist/packages/sdk-ui/src/boxplot-utils.d.ts +3 -2
  27. package/dist/packages/sdk-ui/src/chart-data-options/coloring/range-coloring.d.ts +12 -0
  28. package/dist/packages/sdk-ui/src/chart-data-options/types.d.ts +6 -2
  29. package/dist/packages/sdk-ui/src/chart-options-processor/advanced-chart-options.d.ts +3 -4
  30. package/dist/packages/sdk-ui/src/chart-options-processor/subtype-to-design-options.d.ts +1 -1
  31. package/dist/packages/sdk-ui/src/chart-options-processor/translations/axis-section.d.ts +5 -2
  32. package/dist/packages/sdk-ui/src/chart-options-processor/translations/design-options.d.ts +1 -0
  33. package/dist/packages/sdk-ui/src/chart-options-processor/translations/value-label-section.d.ts +3 -1
  34. package/dist/packages/sdk-ui/src/common/components/button.d.ts +10 -0
  35. package/dist/packages/sdk-ui/src/common/components/popover.d.ts +23 -0
  36. package/dist/packages/sdk-ui/src/common/components/radio.d.ts +8 -0
  37. package/dist/packages/sdk-ui/src/common/hooks/use-combined-menu.d.ts +3 -4
  38. package/dist/packages/sdk-ui/src/common/hooks/use-debounced-value.d.ts +5 -0
  39. package/dist/packages/sdk-ui/src/const.d.ts +3 -0
  40. package/dist/packages/sdk-ui/src/dashboard/components/dashboard-container.d.ts +1 -1
  41. package/dist/packages/sdk-ui/src/dashboard/types.d.ts +6 -0
  42. package/dist/packages/sdk-ui/src/filters/components/criteria-filter-tile/criteria-filter-operations.d.ts +4 -4
  43. package/dist/packages/sdk-ui/src/filters/components/criteria-filter-tile/criteria-filter-tile.d.ts +4 -5
  44. package/dist/packages/sdk-ui/src/filters/components/criteria-filter-tile/index.d.ts +2 -1
  45. package/dist/packages/sdk-ui/src/filters/components/criteria-filter-tile/types.d.ts +7 -0
  46. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/index.d.ts +4 -0
  47. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/input.d.ts +5 -0
  48. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/search-input.d.ts +8 -0
  49. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/base.d.ts +17 -0
  50. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/index.d.ts +3 -0
  51. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/multi-select-item.d.ts +9 -0
  52. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/searchable-multi-select.d.ts +14 -0
  53. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/searchable-single-select.d.ts +14 -0
  54. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/single-select-item.d.ts +9 -0
  55. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/single-select.d.ts +14 -0
  56. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/types.d.ts +7 -0
  57. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/utils.d.ts +4 -0
  58. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/selectable-section.d.ts +10 -0
  59. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/filter-editor-popover.d.ts +12 -0
  60. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/filter-editor.d.ts +8 -0
  61. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/multi-select-control.d.ts +7 -0
  62. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/include-all-section.d.ts +9 -0
  63. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/members-section.d.ts +11 -0
  64. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/text-condition-section.d.ts +11 -0
  65. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/utils.d.ts +5 -0
  66. package/dist/packages/sdk-ui/src/filters/components/filters-panel/filters-panel.d.ts +2 -0
  67. package/dist/packages/sdk-ui/src/filters/components/icons/arrow-down-icon.d.ts +1 -1
  68. package/dist/packages/sdk-ui/src/filters/components/icons/check-icon.d.ts +2 -0
  69. package/dist/packages/sdk-ui/src/filters/components/icons/index.d.ts +1 -0
  70. package/dist/packages/sdk-ui/src/filters/components/icons/pencil-icon.d.ts +3 -1
  71. package/dist/packages/sdk-ui/src/filters/components/icons/search-icon.d.ts +1 -1
  72. package/dist/packages/sdk-ui/src/filters/components/member-filter-tile/member-filter-tile.d.ts +1 -1
  73. package/dist/packages/sdk-ui/src/filters/helpers.d.ts +1 -122
  74. package/dist/packages/sdk-ui/src/filters/index.d.ts +0 -1
  75. package/dist/packages/sdk-ui/src/pivot-table/formatters/data-cell-formatters/data-cell-color-formatter.d.ts +4 -0
  76. package/dist/packages/sdk-ui/src/pivot-table/formatters/header-cell-formatters/header-cell-totals-formatter.d.ts +4 -0
  77. package/dist/packages/sdk-ui/src/pivot-table/hooks/use-pivot-builder.d.ts +7 -0
  78. package/dist/packages/sdk-ui/src/props.d.ts +15 -15
  79. package/dist/packages/sdk-ui/src/translation/resources/en.d.ts +33 -0
  80. package/dist/packages/sdk-ui/src/translation/resources/index.d.ts +66 -0
  81. package/dist/packages/sdk-ui/src/types.d.ts +37 -2
  82. package/dist/packages/sdk-ui/src/utils/filter-relations.d.ts +30 -72
  83. package/dist/packages/sdk-ui/src/widget-by-id/dashboard-widget.d.ts +1 -1
  84. package/dist/packages/sdk-ui/src/widget-by-id/translate-widget-data-options.d.ts +1 -2
  85. package/dist/packages/sdk-ui/src/widget-by-id/types.d.ts +15 -0
  86. package/dist/packages/sdk-ui/src/widget-by-id/utils.d.ts +2 -57
  87. package/dist/{useQuery-CwqhrvKr.js → useQuery-1ixYW8qO.js} +27765 -27713
  88. package/dist/useQuery-Ctzmd-JM.cjs +916 -0
  89. package/dist/{widget-composer-BvJFwTM1.cjs → widget-composer-CdxKUwZf.cjs} +18 -10
  90. package/dist/{widget-composer-CAmaQCTo.js → widget-composer-Ch2kYMok.js} +115 -105
  91. package/package.json +7 -7
  92. package/dist/useQuery-7UcSPq8U.cjs +0 -915
@@ -254,6 +254,12 @@ export declare const resources: {
254
254
  fetchHistory: string;
255
255
  recommendationsNotAvailable: string;
256
256
  insightsNotAvailable: string;
257
+ VectorDBEmptyResponseError: string;
258
+ LlmBadConfigurationError: string;
259
+ ChartTypeUnsupportedError: string;
260
+ BlockedByLlmContentFiltering: string;
261
+ LlmContextLengthExceedsLimitError: string;
262
+ UserPromptExeedsLimitError: string;
257
263
  unexpectedChatResponse: string;
258
264
  unexpected: string;
259
265
  unknownResponse: string;
@@ -265,8 +271,35 @@ export declare const resources: {
265
271
  buttons: {
266
272
  apply: string;
267
273
  cancel: string;
274
+ selectAll: string;
275
+ clearAll: string;
276
+ };
277
+ labels: {
278
+ includeAll: string;
279
+ allowMultiSelection: string;
280
+ };
281
+ placeholders: {
282
+ selectFromList: string;
283
+ enterValue: string;
284
+ };
285
+ conditions: {
286
+ exclude: string;
287
+ contains: string;
288
+ notContain: string;
289
+ startsWith: string;
290
+ notStartsWith: string;
291
+ endsWith: string;
292
+ notEndsWith: string;
293
+ equals: string;
294
+ notEquals: string;
295
+ isEmpty: string;
296
+ isNotEmpty: string;
268
297
  };
269
298
  };
299
+ pivotTable: {
300
+ grandTotal: string;
301
+ subTotal: string;
302
+ };
270
303
  };
271
304
  uk: {
272
305
  errors: {
@@ -514,6 +547,12 @@ export declare const resources: {
514
547
  fetchHistory: string;
515
548
  recommendationsNotAvailable: string;
516
549
  insightsNotAvailable: string;
550
+ VectorDBEmptyResponseError: string;
551
+ LlmBadConfigurationError: string;
552
+ ChartTypeUnsupportedError: string;
553
+ BlockedByLlmContentFiltering: string;
554
+ LlmContextLengthExceedsLimitError: string;
555
+ UserPromptExeedsLimitError: string;
517
556
  unexpectedChatResponse: string;
518
557
  unexpected: string;
519
558
  unknownResponse: string;
@@ -525,7 +564,34 @@ export declare const resources: {
525
564
  buttons: {
526
565
  apply: string;
527
566
  cancel: string;
567
+ selectAll: string;
568
+ clearAll: string;
569
+ };
570
+ labels: {
571
+ includeAll: string;
572
+ allowMultiSelection: string;
573
+ };
574
+ placeholders: {
575
+ selectFromList: string;
576
+ enterValue: string;
577
+ };
578
+ conditions: {
579
+ exclude: string;
580
+ contains: string;
581
+ notContain: string;
582
+ startsWith: string;
583
+ notStartsWith: string;
584
+ endsWith: string;
585
+ notEndsWith: string;
586
+ equals: string;
587
+ notEquals: string;
588
+ isEmpty: string;
589
+ isNotEmpty: string;
528
590
  };
529
591
  };
592
+ pivotTable: {
593
+ grandTotal: string;
594
+ subTotal: string;
595
+ };
530
596
  };
531
597
  };
@@ -66,6 +66,25 @@ export type SeriesLabels = {
66
66
  enabled: boolean;
67
67
  /** Rotation of series labels (in degrees) */
68
68
  rotation?: number;
69
+ /**
70
+ * Boolean flag that defines if value should be shown in series labels
71
+ * (if not specified, value will be shown by default)
72
+ * */
73
+ showValue?: boolean;
74
+ /**
75
+ * Boolean flag that defines if percentage should be shown in series labels
76
+ * (only applicable for subtypes that support percentage, like "stacked100")
77
+ * */
78
+ showPercentage?: boolean;
79
+ };
80
+ /**
81
+ * @internal
82
+ */
83
+ export type TotalLabels = {
84
+ /** Boolean flag that defines if total labels should be shown on the chart */
85
+ enabled: boolean;
86
+ /** Rotation of total labels (in degrees) */
87
+ rotation?: number;
69
88
  };
70
89
  /** Options that define legend - a key that provides information about the data series or colors used in chart. */
71
90
  export type Legend = {
@@ -177,6 +196,12 @@ export interface BaseStyleOptions extends ReservedStyleOptions {
177
196
  * @internal
178
197
  */
179
198
  seriesLabels?: SeriesLabels;
199
+ /**
200
+ * Configuration for total labels
201
+ *
202
+ * @internal
203
+ */
204
+ totalLabels?: TotalLabels;
180
205
  /** Data limit for series or categories that will be plotted */
181
206
  dataLimits?: DataLimits;
182
207
  /**
@@ -1018,6 +1043,16 @@ export interface WidgetContainerStyleOptions {
1018
1043
  renderToolbar?: RenderToolbarHandler;
1019
1044
  };
1020
1045
  }
1046
+ /**
1047
+ * Configuration options that define functional style of the various elements of the Nlq Chart Widget
1048
+ *
1049
+ * @internal
1050
+ * */
1051
+ export type NlqChartWidgetStyleOptions = {
1052
+ header?: {
1053
+ hidden?: boolean;
1054
+ };
1055
+ };
1021
1056
  /** @internal */
1022
1057
  export type RenderToolbarHandler = (onRefresh: () => void, defaultToolbar: JSX.Element) => JSX.Element | null;
1023
1058
  /** Style settings defining the look and feel of the widget created in Fusion */
@@ -1362,7 +1397,7 @@ export type SeriesWithAlerts<T> = {
1362
1397
  };
1363
1398
  /**
1364
1399
  * Context menu position coordinates
1365
- * Used in {@link ContextMenuProps}
1400
+ * Used in {@link @sisense/sdk-ui!ContextMenuProps | `ContextMenuProps`}
1366
1401
  */
1367
1402
  export type MenuPosition = {
1368
1403
  /** Horizontal position */
@@ -1372,7 +1407,7 @@ export type MenuPosition = {
1372
1407
  };
1373
1408
  /**
1374
1409
  * Context menu section
1375
- * Used in {@link ContextMenuProps}
1410
+ * Used in {@link @sisense/sdk-ui!ContextMenuProps | `ContextMenuProps`}
1376
1411
  */
1377
1412
  export type MenuItemSection = {
1378
1413
  /** @internal */
@@ -1,85 +1,43 @@
1
- import { Filter, FilterRelations, FilterRelationsModel, FilterRelationsModelNode } from '@sisense/sdk-data';
1
+ import { Filter, FilterRelations, FilterRelationsDescription, FilterRelationsJaql, FilterRelationsRules } from '@sisense/sdk-data';
2
+ export { splitFiltersAndRelations, getFiltersArray, combineFiltersAndRelations, isTrivialSingleNodeRelations, calculateNewRelations, getRelationsWithReplacedFilter, convertFilterRelationsModelToRelationRules, filterRelationRulesToFilterRelationsModel, isOpenBracketDescriptionNode, isCloseBracketDescriptionNode, isAttributeDescriptionNode, isOperatorDescriptionNode, mergeFiltersOrFilterRelations, type FilterRelationsDescription, type FilterRelationsRules, } from '@sisense/sdk-data';
2
3
  /**
3
- * Rules of filter relations - logical operators of how filters are related to each other.
4
+ * @internal
4
5
  */
5
- export type FilterRelationsRules = FilterRelationsRule | FilterRelationsRuleNode | null;
6
- type FilterRelationsRule = {
7
- left: FilterRelationsRuleNode;
8
- right: FilterRelationsRuleNode;
9
- operator: 'AND' | 'OR';
10
- };
11
- type FilterRelationsRuleIdNode = {
12
- instanceid: string;
13
- };
14
- type FilterRelationsRuleNode = FilterRelationsRule | FilterRelationsRuleIdNode;
6
+ export declare enum FiltersMergeStrategyEnum {
7
+ WIDGET_FIRST = "widgetFirst",
8
+ CODE_FIRST = "codeFirst",
9
+ CODE_ONLY = "codeOnly"
10
+ }
11
+ export type FiltersMergeStrategy = `${FiltersMergeStrategyEnum}`;
15
12
  /**
16
- * Merges source filters with target filters and recalculates relations.
13
+ * Textual representation of filter relations for debugging purposes.
14
+ * Returns string like "(([Gender] AND [Country]) OR [Condition])".
17
15
  *
18
- * @param sourceFilters - The source filters or filter relations to merge.
19
- * @param targetFilters - The target filters or filter relations to merge with.
20
- * @returns Updated source filters merged with target filters. If the source filters are FilterRelations, the relations are recalculated.
21
- */
22
- export declare function mergeFiltersOrFilterRelations(sourceFilters: Filter[] | FilterRelations | undefined, targetFilters: Filter[] | FilterRelations | undefined): Filter[] | FilterRelations;
23
- /**
24
- * Splits filters or filter relations into filters and relations rules.
25
- */
26
- export declare function splitFiltersAndRelations(filtersOrFilterRelations: Filter[] | FilterRelations | undefined): {
27
- filters: Filter[];
28
- relations: FilterRelationsRules;
29
- };
30
- /**
31
- * Returns pure filters array from the given filters or filter relations.
32
- */
33
- export declare function getFiltersArray(filtersOrFilterRelations: Filter[] | FilterRelations | undefined): Filter[];
34
- /**
35
- * Combines filters and relations into a single FilterRelations object.
36
- * If the relations are empty or relations are trivial (single node), the filters are returned as is.
37
- */
38
- export declare function combineFiltersAndRelations(filters: Filter[], relations: FilterRelationsRules): Filter[] | FilterRelations;
39
- /** Type guard for checking if a node is a single relations node (trivial case when relations are needless). */
40
- export declare function isTrivialSingleNodeRelations(relations: FilterRelationsRules): relations is FilterRelationsRuleIdNode;
41
- /**
42
- * Calculates new relations based on the changes in filters.
43
- */
44
- export declare function calculateNewRelations(prevFilters: Filter[], prevRelations: FilterRelationsRules, newFilters: Filter[]): FilterRelationsRules;
45
- /**
46
- * Replaces a filter in the relations tree with a new filter.
16
+ * @internal
47
17
  */
48
- export declare function getRelationsWithReplacedFilter(relations: FilterRelationsRules, filterToReplace: Filter, newFilter: Filter): FilterRelationsRules;
18
+ export declare function getRelationsAsText(relations: FilterRelationsRules, filters: Filter[]): string;
49
19
  /**
50
- * Converts filter relations model from Fusion to internal CSDK filter relations rules.
20
+ * @internal
51
21
  */
52
- export declare function convertFilterRelationsModelToRelationRules(filterRelationsModel: FilterRelationsModel | FilterRelationsModelNode | undefined, filters: Filter[]): FilterRelationsRules;
22
+ export declare function getFilterRelationsDescription(relations: FilterRelationsRules, filters: Filter[]): FilterRelationsDescription;
53
23
  /**
54
- * Converts internal CSDK filter relations rules to filter relations model for Fusion.
24
+ * Merge two arrays of filters using the specified merge strategy.
25
+ *
26
+ * @param {Filter[]} widgetFilters - The filters from the widget.
27
+ * @param {Filter[]} codeFilters - The filters from the code.
28
+ * @param {FiltersMergeStrategy} [mergeStrategy] - The strategy to use for merging filters.
29
+ * @returns {Filter[]} The merged filters based on the selected strategy.
30
+ * @internal
55
31
  */
56
- export declare function filterRelationRulesToFilterRelationsModel(filterRelationRules: FilterRelationsRules, filters: Filter[]): FilterRelationsModel | FilterRelationsModelNode | undefined;
32
+ export declare function mergeFiltersByStrategy(widgetFilters?: Filter[] | FilterRelations, codeFilters?: Filter[] | FilterRelations, mergeStrategy?: FiltersMergeStrategy): Filter[] | FilterRelations;
57
33
  /**
58
- * Textual representation of filter relations for debugging purposes.
59
- * Returns string like "(([Gender] AND [Country]) OR [Condition])".
34
+ * Replaces filters for same dimensions in filter relations jaql.
35
+ * Widget filters have higher priority than dashboard filters.
60
36
  *
37
+ * @param widgetFilters - The filters from the widget.
38
+ * @param dashboardFilters - The filters from the dashboard.
39
+ * @param relations - The filter relations before replacement.
40
+ * @returns The filter relations after replacement.
61
41
  * @internal
62
42
  */
63
- export declare function getRelationsAsText(relations: FilterRelationsRules, filters: Filter[]): string;
64
- export declare function getFilterRelationsDescription(relations: FilterRelationsRules, filters: Filter[]): FilterRelationsDescription;
65
- export type FilterRelationsDescription = FilterRelationsDescriptionNode[];
66
- type FilterRelationsDescriptionNode = OpenBracketDescriptionNode | CloseBracketDescriptionNode | AttributeDescriptionNode | OperatorDescriptionNode;
67
- type OpenBracketDescriptionNode = {
68
- nodeType: 'openBracket';
69
- };
70
- export declare function isOpenBracketDescriptionNode(node: FilterRelationsDescriptionNode): node is OpenBracketDescriptionNode;
71
- type CloseBracketDescriptionNode = {
72
- nodeType: 'closeBracket';
73
- };
74
- export declare function isCloseBracketDescriptionNode(node: FilterRelationsDescriptionNode): node is CloseBracketDescriptionNode;
75
- type AttributeDescriptionNode = {
76
- nodeType: 'attribute';
77
- attribute: string;
78
- };
79
- export declare function isAttributeDescriptionNode(node: FilterRelationsDescriptionNode): node is AttributeDescriptionNode;
80
- type OperatorDescriptionNode = {
81
- nodeType: 'operator';
82
- operator: 'AND' | 'OR';
83
- };
84
- export declare function isOperatorDescriptionNode(node: FilterRelationsDescriptionNode): node is OperatorDescriptionNode;
85
- export {};
43
+ export declare function applyWidgetFiltersToRelations(widgetFilters: Filter[], dashboardFilters: Filter[], relations: FilterRelationsJaql | undefined): FilterRelationsJaql | undefined;
@@ -22,6 +22,6 @@ import { DashboardWidgetProps } from '../props.js';
22
22
  *
23
23
  * @group Fusion Assets
24
24
  * @fusionEmbed
25
- * @deprecated Use {@link WidgetById} instead.
25
+ * @deprecated Use {@link @sisense/sdk-ui!WidgetById | `WidgetById`} instead.
26
26
  */
27
27
  export declare const DashboardWidget: FunctionComponent<DashboardWidgetProps>;
@@ -1,8 +1,7 @@
1
- import { DimensionalBaseMeasure, DimensionalAttribute, DimensionalCalculatedMeasure, Jaql, JaqlDataSource } from '@sisense/sdk-data';
1
+ import { JaqlDataSource } from '@sisense/sdk-data';
2
2
  import { StyledMeasureColumn, StyledColumn, Color } from '../types.js';
3
3
  import { Panel, PanelItem, WidgetType, WidgetStyle, BoxplotWidgetStyle } from './types.js';
4
4
  import { WidgetDataOptions } from '../models/index.js';
5
- export declare function createDimensionalElementFromJaql(jaql: Jaql, format?: PanelItem['format']): import("@sisense/sdk-data").Filter | DimensionalAttribute | DimensionalCalculatedMeasure | DimensionalBaseMeasure;
6
5
  /** @internal */
7
6
  export declare function applyStatisticalModels(dataOption: StyledMeasureColumn, statisticalModels?: {
8
7
  forecast?: {
@@ -214,6 +214,7 @@ export type PanelItem = {
214
214
  instanceid?: string;
215
215
  format?: {
216
216
  color?: PanelColorFormat;
217
+ colorSecond?: PanelColorFormat;
217
218
  mask?: DatetimeMask | NumericMask;
218
219
  members?: PanelMembersFormat;
219
220
  subtotal?: boolean;
@@ -290,6 +291,20 @@ export type PanelColorFormatConditionOperator = '<' | '>' | '≤' | '<=' | '≥'
290
291
  type LabelsStyle = {
291
292
  enabled: boolean;
292
293
  rotation: number;
294
+ /**
295
+ * @internal
296
+ */
297
+ labels?: {
298
+ enabled?: boolean;
299
+ stacked?: boolean;
300
+ stackedPercentage?: boolean;
301
+ types?: {
302
+ count?: boolean;
303
+ percentage?: boolean;
304
+ relative?: boolean;
305
+ totals?: boolean;
306
+ };
307
+ };
293
308
  };
294
309
  type AxisTitleStyle = {
295
310
  enabled: boolean;
@@ -1,9 +1,9 @@
1
- import { type Filter, FilterRelations, FilterRelationsModelNode, FilterRelationsModel, FilterRelationsJaql } from '@sisense/sdk-data';
2
1
  import { ChartSubtype } from '../chart-options-processor/subtype-to-design-options.js';
3
2
  import { ChartType } from '../types.js';
4
- import { FiltersMergeStrategy, Panel, PanelItem, TextWidgetDtoStyle, WidgetStyle, WidgetSubtype, WidgetType } from './types.js';
3
+ import { Panel, PanelItem, TextWidgetDtoStyle, WidgetStyle, WidgetSubtype, WidgetType } from './types.js';
5
4
  import { ChartProps, ChartWidgetProps, PivotTableWidgetProps, PluginWidgetProps, RenderToolbarHandler, TextWidgetProps, CommonWidgetProps, WithWidgetType, WidgetProps } from '../index.js';
6
5
  import { WidgetTypeInternal } from '../models/widget/types';
6
+ export { mergeFilters, getFilterRelationsFromJaql, convertFilterRelationsModelToJaql, getFilterCompareId, } from '@sisense/sdk-data';
7
7
  /**
8
8
  * Returns the corresponding chart type for a given widget type
9
9
  *
@@ -79,58 +79,3 @@ export declare function registerDataPointsSelectedHandler(widgetProps: WidgetPro
79
79
  export declare function registerRenderToolbarHandler(widgetProps: WidgetProps, handler: RenderToolbarHandler): void;
80
80
  export declare function getEnabledPanelItems(panels: Panel[], panelName: string): PanelItem[];
81
81
  export declare function getRootPanelItem(item: PanelItem): PanelItem;
82
- /**
83
- * Gets a unique identifier for a filter, combining its attribute expression and granularity if available.
84
- *
85
- * @param {Filter} filter - The filter object to generate the unique identifier for.
86
- * @returns {string} - The unique identifier for the filter.
87
- * @internal
88
- */
89
- export declare function getFilterCompareId(filter: Filter): string;
90
- /**
91
- * Merges two arrays of filter objects, prioritizing 'targetFilters' over 'sourceFilters',
92
- * and removes duplicates based on filter compare id.
93
- *
94
- * Saves the 'sourceFilters' filters order, while adds new filters to the end of the array.
95
- *
96
- * @param {Filter[]} [sourceFilters=[]] - The source array of filter objects.
97
- * @param {Filter[]} [targetFilters=[]] - The target array of filter objects.
98
- * @returns {Filter[]} - The merged array of filter objects.
99
- */
100
- export declare function mergeFilters(sourceFilters?: Filter[], targetFilters?: Filter[]): Filter[];
101
- /**
102
- * Merge two arrays of filters using the specified merge strategy.
103
- *
104
- * @param {Filter[]} widgetFilters - The filters from the widget.
105
- * @param {Filter[]} codeFilters - The filters from the code.
106
- * @param {FiltersMergeStrategy} [mergeStrategy] - The strategy to use for merging filters.
107
- * @returns {Filter[]} The merged filters based on the selected strategy.
108
- */
109
- export declare function mergeFiltersByStrategy(widgetFilters?: Filter[] | FilterRelations, codeFilters?: Filter[] | FilterRelations, mergeStrategy?: FiltersMergeStrategy): Filter[] | FilterRelations;
110
- /**
111
- * Replaces nodes of filter reations tree with fetched filters by instance id.
112
- *
113
- * @param filters - The filters from the dashboard.
114
- * @param highlights - The highlights from the dashboard
115
- * @param filterRelations - Fetched filter relations.
116
- * @returns {FilterRelations} Filter relations with filters in nodes.
117
- */
118
- export declare function getFilterRelationsFromJaql(filters: Filter[], highlights: Filter[], filterRelations: FilterRelationsJaql | undefined): FilterRelations | Filter[];
119
- /**
120
- * Converts filter relations model to filter relations jaql.
121
- *
122
- * @param filterRelations - Filter relations model.
123
- * @returns {FilterRelationsJaql} Filter relations jaql.
124
- */
125
- export declare function convertFilterRelationsModelToJaql(filterRelations: FilterRelationsModel | FilterRelationsModelNode | undefined): FilterRelationsJaql | undefined;
126
- /**
127
- * Replaces filters for same dimensions in filter relations jaql.
128
- * Widget filters have higher priority than dashboard filters.
129
- *
130
- * @param widgetFilters - The filters from the widget.
131
- * @param dashboardFilters - The filters from the dashboard.
132
- * @param relations - The filter relations before replacement.
133
- * @returns {FilterRelationsJaql} The filter relations after replacement.
134
- */
135
- export declare function applyWidgetFiltersToRelations(widgetFilters: Filter[], dashboardFilters: Filter[], relations: FilterRelationsJaql | undefined): FilterRelationsJaql | undefined;
136
- export {};