@sisense/sdk-ui 2.16.1 → 2.17.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 (60) hide show
  1. package/dist/ai.cjs +54 -54
  2. package/dist/ai.js +779 -741
  3. package/dist/analytics-composer/node.cjs +1 -1
  4. package/dist/analytics-composer/node.js +410 -379
  5. package/dist/analytics-composer.cjs +1 -1
  6. package/dist/analytics-composer.js +6 -6
  7. package/dist/{derive-chart-family-d7eaC45K.cjs → derive-chart-family-B_cR1yhw.cjs} +3 -3
  8. package/dist/{derive-chart-family-DLwnWblo.js → derive-chart-family-DkuTQGOE.js} +333 -333
  9. package/dist/{dimensions-BUWtZxix.cjs → dimensions-DI9h9IJH.cjs} +1 -1
  10. package/dist/{dimensions-DvDgZ8RW.js → dimensions-Gma5tFmd.js} +1 -1
  11. package/dist/execute-query-CdhSHTTA.cjs +1 -0
  12. package/dist/{execute-query-CFK2R_1S.js → execute-query-l7jejslh.js} +867 -865
  13. package/dist/index.cjs +970 -246
  14. package/dist/index.js +70584 -18085
  15. package/dist/index.umd.js +1269 -1267
  16. package/dist/packages/sdk-ui/src/ai/get-nlg-insights-from-widget.d.ts +46 -0
  17. package/dist/packages/sdk-ui/src/ai/index.d.ts +1 -0
  18. package/dist/packages/sdk-ui/src/analytics-composer/nlq-v3-translator/common.d.ts +2 -1
  19. package/dist/packages/sdk-ui/src/analytics-composer/nlq-v3-translator/process-function/filter-processors.d.ts +0 -9
  20. package/dist/packages/sdk-ui/src/analytics-composer/nlq-v3-translator/types.d.ts +1 -1
  21. package/dist/packages/sdk-ui/src/analytics-composer/types.d.ts +2 -2
  22. package/dist/packages/sdk-ui/src/api/rest-api.d.ts +1 -1
  23. package/dist/packages/sdk-ui/src/app/client-application.d.ts +5 -5
  24. package/dist/packages/sdk-ui/src/chart-options-processor/data-points.d.ts +3 -4
  25. package/dist/packages/sdk-ui/src/dashboard/hooks/use-jtd.d.ts +1 -2
  26. package/dist/packages/sdk-ui/src/data-source-dimensional-model/hooks/use-get-data-source-dimensions.d.ts +78 -0
  27. package/dist/packages/sdk-ui/src/data-source-dimensional-model/hooks/use-get-data-source-fields.d.ts +23 -0
  28. package/dist/packages/sdk-ui/src/data-source-dimensional-model/index.d.ts +2 -0
  29. package/dist/packages/sdk-ui/src/index.d.ts +1 -1
  30. package/dist/packages/sdk-ui/src/models/widget/widget-model-translator/widget-model-translator.d.ts +4 -1
  31. package/dist/packages/sdk-ui/src/pivot-table/formatters/data-cell-formatters/data-cell-color-formatter.d.ts +2 -1
  32. package/dist/packages/sdk-ui/src/pivot-table/formatters/formatter-utils.d.ts +2 -1
  33. package/dist/packages/sdk-ui/src/pivot-table/formatters/header-cell-formatters/header-cell-totals-formatter.d.ts +1 -1
  34. package/dist/packages/sdk-ui/src/pivot-table/formatters/types.d.ts +2 -1
  35. package/dist/packages/sdk-ui/src/pivot-table/hooks/use-apply-pivot-table-formatting.d.ts +1 -1
  36. package/dist/packages/sdk-ui/src/pivot-table/hooks/use-get-pivot-table-query.d.ts +1 -1
  37. package/dist/packages/sdk-ui/src/pivot-table/hooks/use-pivot-builder.d.ts +1 -1
  38. package/dist/packages/sdk-ui/src/pivot-table/hooks/use-pivot-client.d.ts +8 -0
  39. package/dist/packages/sdk-ui/src/pivot-table/hooks/use-pivot-data-loading.d.ts +2 -1
  40. package/dist/packages/sdk-ui/src/pivot-table/hooks/use-pivot-data-service.d.ts +2 -1
  41. package/dist/packages/sdk-ui/src/pivot-table/hooks/use-render-pivot.d.ts +1 -1
  42. package/dist/packages/sdk-ui/src/pivot-table/pivot-table.d.ts +32 -2
  43. package/dist/packages/sdk-ui/src/pivot-table/sorting-utils.d.ts +1 -1
  44. package/dist/packages/sdk-ui/src/props.d.ts +11 -0
  45. package/dist/packages/sdk-ui/src/query-execution/use-execute-pivot-query.d.ts +0 -1
  46. package/dist/packages/sdk-ui/src/translation/resources/en.d.ts +1 -1
  47. package/dist/packages/sdk-ui/src/translation/resources/index.d.ts +2 -2
  48. package/dist/packages/sdk-ui/src/types.d.ts +40 -25
  49. package/dist/packages/sdk-ui/src/widgets/pivot-table-widget.d.ts +19 -1
  50. package/dist/{types-Clbnx4mQ.cjs → types-Hki4GrUY.cjs} +1 -1
  51. package/dist/{types-D1mqt0Mg.js → types-ofTjqFFK.js} +1 -1
  52. package/dist/use-common-filters-Bh4KYWy_.cjs +604 -0
  53. package/dist/use-common-filters-D5yiZCTg.js +56547 -0
  54. package/dist/{widget-composer-Dhl_nmhq.js → widget-composer-By61s921.js} +3 -3
  55. package/dist/{widget-composer-BaOTPn5w.cjs → widget-composer-BzzTf8UH.cjs} +1 -1
  56. package/package.json +8 -7
  57. package/dist/execute-query-CB4XfUng.cjs +0 -1
  58. package/dist/packages/sdk-ui/src/common/hooks/fusion-endpoints/use-get-data-source-fields.d.ts +0 -17
  59. package/dist/use-common-filters-CCeRLdGB.js +0 -103405
  60. package/dist/use-common-filters-DOn2HdBv.cjs +0 -1325
@@ -998,6 +998,13 @@ export interface PivotTableStyleOptions {
998
998
  * @default false
999
999
  */
1000
1000
  alwaysShowResultsPerPage?: boolean;
1001
+ /**
1002
+ * Boolean flag whether to highlight clickable cells with a background color
1003
+ *
1004
+ * @default false
1005
+ * @internal
1006
+ */
1007
+ highlightClickableCells?: boolean;
1001
1008
  }
1002
1009
  /**
1003
1010
  * Common part of IndicatorStyleOptions for all types of indicator
@@ -2171,26 +2178,20 @@ export type DataPoint = {
2171
2178
  seriesValue?: string | number;
2172
2179
  /**
2173
2180
  * A collection of data point entries that represents values for all related `dataOptions`.
2174
- *
2175
- * @internal
2176
2181
  */
2177
2182
  entries?: {
2183
+ /** Data point entries for the `category` data options */
2178
2184
  category: DataPointEntry[];
2185
+ /** Data point entries for the `value` data options */
2179
2186
  value: DataPointEntry[];
2187
+ /** Data point entries for the `breakBy` data options */
2180
2188
  breakBy?: DataPointEntry[];
2181
2189
  };
2182
2190
  };
2183
2191
  /**
2184
2192
  * A data point entry that represents a single dimension within a multi-dimensional data point.
2185
- *
2186
- * @internal
2187
2193
  */
2188
2194
  export type DataPointEntry = {
2189
- /**
2190
- * The unique identifier of the data point entry.
2191
- * It represents the path within the `dataOptions` object that identifies the related option.
2192
- */
2193
- readonly id: string;
2194
2195
  /** The data option associated with this entry */
2195
2196
  dataOption: Column | StyledColumn | MeasureColumn | CalculatedMeasureColumn | StyledMeasureColumn;
2196
2197
  /** The attribute associated with this data point entry */
@@ -2198,27 +2199,35 @@ export type DataPointEntry = {
2198
2199
  /** The measure associated with this data point entry */
2199
2200
  measure?: Measure;
2200
2201
  /** The raw value of the data point */
2201
- value: string | number;
2202
- /** The formated value of the data point */
2202
+ value?: string | number;
2203
+ /** The formatted value of the data point */
2203
2204
  displayValue?: string;
2204
2205
  };
2205
2206
  /** Data point in a Scatter chart. */
2206
2207
  export type ScatterDataPoint = {
2208
+ /** Value of the x axis */
2207
2209
  x?: string | number;
2210
+ /** Value of the y axis */
2208
2211
  y?: string | number;
2212
+ /** Size of the data point */
2209
2213
  size?: number;
2214
+ /** Value of the break by point */
2210
2215
  breakByPoint?: string;
2216
+ /** Value of the break by color */
2211
2217
  breakByColor?: string;
2212
2218
  /**
2213
2219
  * A collection of data point entries that represents values for all related `dataOptions`.
2214
- *
2215
- * @internal
2216
2220
  */
2217
2221
  entries?: {
2222
+ /** Data point entry for the `x` data options */
2218
2223
  x?: DataPointEntry;
2224
+ /** Data point entry for the `y` data options */
2219
2225
  y?: DataPointEntry;
2226
+ /** Data point entry for the `size` data options */
2220
2227
  size?: DataPointEntry;
2228
+ /** Data point entry for the `breakByPoint` data options */
2221
2229
  breakByPoint?: DataPointEntry;
2230
+ /** Data point entry for the `breakByColor` data options */
2222
2231
  breakByColor?: DataPointEntry;
2223
2232
  };
2224
2233
  };
@@ -2242,12 +2251,13 @@ export type BoxplotDataPoint = {
2242
2251
  outlier?: number;
2243
2252
  /**
2244
2253
  * A collection of data point entries that represents values for all related `dataOptions`.
2245
- *
2246
- * @internal
2247
2254
  */
2248
2255
  entries?: {
2256
+ /** Data point entries for the `category` data options */
2249
2257
  category: DataPointEntry[];
2258
+ /** Data point entries for the `value` data options */
2250
2259
  value: DataPointEntry[];
2260
+ /** Data point entries for the `outliers` data options */
2251
2261
  outliers: DataPointEntry[];
2252
2262
  };
2253
2263
  };
@@ -2255,13 +2265,15 @@ export type BoxplotDataPoint = {
2255
2265
  export type IndicatorDataPoint = {
2256
2266
  /**
2257
2267
  * A collection of data point entries that represents values for all related `dataOptions`.
2258
- *
2259
- * @internal
2260
2268
  */
2261
2269
  entries?: {
2270
+ /** Data point entry for the `value` data options */
2262
2271
  value?: DataPointEntry;
2272
+ /** Data point entry for the `secondary` data options */
2263
2273
  secondary?: DataPointEntry;
2274
+ /** Data point entry for the `min` data options */
2264
2275
  min?: DataPointEntry;
2276
+ /** Data point entry for the `max` data options */
2265
2277
  max?: DataPointEntry;
2266
2278
  };
2267
2279
  };
@@ -2271,11 +2283,11 @@ export type IndicatorDataPoint = {
2271
2283
  export type CalendarHeatmapDataPoint = {
2272
2284
  /**
2273
2285
  * A collection of data point entries that represents values for all related `dataOptions`.
2274
- *
2275
- * @internal
2276
2286
  */
2277
2287
  entries?: {
2288
+ /** Data point entry for the `date` data options */
2278
2289
  date: DataPointEntry;
2290
+ /** Data point entry for the `value` data options */
2279
2291
  value?: DataPointEntry;
2280
2292
  };
2281
2293
  };
@@ -2310,12 +2322,13 @@ export type PivotTableDataPoint = {
2310
2322
  isTotalCell: boolean;
2311
2323
  /**
2312
2324
  * A collection of data point entries that represents values for all related `dataOptions`.
2313
- *
2314
- * @internal
2315
2325
  */
2316
2326
  entries: {
2327
+ /** Data point entries for the `rows` data options */
2317
2328
  rows?: DataPointEntry[];
2329
+ /** Data point entries for the `columns` data options */
2318
2330
  columns?: DataPointEntry[];
2331
+ /** Data point entries for the `values` data options */
2319
2332
  values?: DataPointEntry[];
2320
2333
  };
2321
2334
  };
@@ -2325,11 +2338,11 @@ export type PivotTableDataPoint = {
2325
2338
  export type AreamapDataPoint = GeoDataElement & {
2326
2339
  /**
2327
2340
  * A collection of data point entries that represents values for all related `dataOptions`.
2328
- *
2329
- * @internal
2330
2341
  */
2331
2342
  entries?: {
2343
+ /** Data point entries for the `geo` data options */
2332
2344
  geo: DataPointEntry[];
2345
+ /** Data point entries for the `color` data options */
2333
2346
  color: DataPointEntry[];
2334
2347
  };
2335
2348
  };
@@ -2347,13 +2360,15 @@ export type ScattermapDataPoint = {
2347
2360
  coordinates: Coordinates;
2348
2361
  /**
2349
2362
  * A collection of data point entries that represents values for all related `dataOptions`.
2350
- *
2351
- * @internal
2352
2363
  */
2353
2364
  entries?: {
2365
+ /** Data point entries for the `geo` data options */
2354
2366
  geo: DataPointEntry[];
2367
+ /** Data point entry for the `size` data options */
2355
2368
  size?: DataPointEntry;
2369
+ /** Data point entry for the `colorBy` data options */
2356
2370
  colorBy?: DataPointEntry;
2371
+ /** Data point entry for the `details` data options */
2357
2372
  details?: DataPointEntry;
2358
2373
  };
2359
2374
  };
@@ -13,11 +13,29 @@ import { PivotTableWidgetProps } from '../props';
13
13
  * rows: [DM.Category.Category],
14
14
  * values: [measureFactory.sum(DM.Commerce.Cost, 'Total Cost')]
15
15
  * }}
16
+ * title="Pivot Table Widget Example"
17
+ * styleOptions={{
18
+ * spaceAround: 'Medium',
19
+ * cornerRadius: 'Large',
20
+ * shadow: 'Light',
21
+ * border: true,
22
+ * borderColor: '#e0e0e0',
23
+ * backgroundColor: '#ffffff',
24
+ * header: {
25
+ * hidden: false,
26
+ * titleTextColor: '#333333',
27
+ * titleAlignment: 'Center',
28
+ * dividerLine: true,
29
+ * dividerLineColor: '#e0e0e0',
30
+ * backgroundColor: '#f5f5f5'
31
+ * }
32
+ * }}
16
33
  * />
17
34
  * ```
35
+ * <img src="media://pivot-widget-example.png" width="800px" />
36
+ *
18
37
  * @param props - Pivot Table Widget properties
19
38
  * @returns Widget component representing a pivot table
20
39
  * @group Dashboards
21
- * @beta
22
40
  */
23
41
  export declare const PivotTableWidget: FunctionComponent<PivotTableWidgetProps>;
@@ -1 +1 @@
1
- "use strict";const a=require("./execute-query-CB4XfUng.cjs");class s extends a.DimensionalElement{constructor(e,r){var i;super((i=e.jaql.title)!==null&&i!==void 0?i:"",r),this.__serializable="JaqlElement",this.expression=e.jaql.dim||e.jaql.formula,this.metadataItem=e,e.jaql.agg?this.aggregation=e.jaql.agg:delete this.aggregation,e.jaql.formula?this.formula=e.jaql.formula:delete this.formula,e.jaql.sort?this.sortType=a.getSortType(e.jaql.sort):delete this.sortType,this.skipValidation=!0}get id(){return this.expression}jaql(e){return e===!0?this.metadataItem.jaql:this.metadataItem}serialize(){const e=super.serialize();return e.metadataItem=this.metadataItem,e.type=this.type,e}}const l={text:a.MetadataTypes.TextAttribute,numeric:a.MetadataTypes.NumericAttribute,datetime:a.MetadataTypes.DateLevel},d=t=>t&&t.__serializable==="JaqlElement";function n(t){var e;return new s(t,(e=l[t.jaql.datatype])!==null&&e!==void 0?e:"numeric")}function o(t){const{jaql:e}=t;if(e.formula)return a.createCalculatedMeasureHelper(e);const r=a.getGranularityFromJaql(e);return"agg"in e&&e.dim&&e.datatype?a.createMeasureHelper({expression:e.dim,dataType:e.datatype,agg:e.agg||"",granularity:r,format:void 0,sort:e.sort,title:e.title,dataSource:e.datasource}):e.dim&&e.datatype?a.createAttributeHelper({expression:e.dim,dataType:e.datatype,granularity:r,sort:e.sort,title:e.title,panel:t.panel,dataSource:e.datasource}):n(t)}const u={jaql:{datasource:{title:"",type:"elasticube"},metadata:[]},queryTitle:"",chartRecommendations:{}},m={model:"",metadata:[],chart:{},queryTitle:""},c=t=>"widgetProps"in t,p=t=>"dashboardOid"in t&&"widgetOid"in t,g=t=>"dashboardProps"in t,y=t=>"dashboardOid"in t;exports.EMPTY_EXPANDED_QUERY_MODEL=u;exports.EMPTY_SIMPLE_QUERY_MODEL=m;exports.JaqlElement=s;exports.createDimensionalElementFromMetadataItem=o;exports.isByIdDashboardCodeParams=y;exports.isByIdWidgetCodeParams=p;exports.isClientSideDashboardCodeParams=g;exports.isClientSideWidgetCodeParams=c;exports.isJaqlElement=d;
1
+ "use strict";const a=require("./execute-query-CdhSHTTA.cjs");class s extends a.DimensionalElement{constructor(e,r){var i;super((i=e.jaql.title)!==null&&i!==void 0?i:"",r),this.__serializable="JaqlElement",this.expression=e.jaql.dim||e.jaql.formula,this.metadataItem=e,e.jaql.agg?this.aggregation=e.jaql.agg:delete this.aggregation,e.jaql.formula?this.formula=e.jaql.formula:delete this.formula,e.jaql.sort?this.sortType=a.getSortType(e.jaql.sort):delete this.sortType,this.skipValidation=!0}get id(){return this.expression}jaql(e){return e===!0?this.metadataItem.jaql:this.metadataItem}serialize(){const e=super.serialize();return e.metadataItem=this.metadataItem,e.type=this.type,e}}const l={text:a.MetadataTypes.TextAttribute,numeric:a.MetadataTypes.NumericAttribute,datetime:a.MetadataTypes.DateLevel},d=t=>t&&t.__serializable==="JaqlElement";function n(t){var e;return new s(t,(e=l[t.jaql.datatype])!==null&&e!==void 0?e:"numeric")}function o(t){const{jaql:e}=t;if(e.formula)return a.createCalculatedMeasureHelper(e);const r=a.getGranularityFromJaql(e);return"agg"in e&&e.dim&&e.datatype?a.createMeasureHelper({expression:e.dim,dataType:e.datatype,agg:e.agg||"",granularity:r,format:void 0,sort:e.sort,title:e.title,dataSource:e.datasource}):e.dim&&e.datatype?a.createAttributeHelper({expression:e.dim,dataType:e.datatype,granularity:r,sort:e.sort,title:e.title,panel:t.panel,dataSource:e.datasource}):n(t)}const u={jaql:{datasource:{title:"",type:"elasticube"},metadata:[]},queryTitle:"",chartRecommendations:{}},m={model:"",metadata:[],chart:{},queryTitle:""},c=t=>"widgetProps"in t,p=t=>"dashboardOid"in t&&"widgetOid"in t,g=t=>"dashboardProps"in t,y=t=>"dashboardOid"in t;exports.EMPTY_EXPANDED_QUERY_MODEL=u;exports.EMPTY_SIMPLE_QUERY_MODEL=m;exports.JaqlElement=s;exports.createDimensionalElementFromMetadataItem=o;exports.isByIdDashboardCodeParams=y;exports.isByIdWidgetCodeParams=p;exports.isClientSideDashboardCodeParams=g;exports.isClientSideWidgetCodeParams=c;exports.isJaqlElement=d;
@@ -1,4 +1,4 @@
1
- import { f as i, g as l, h as n, i as o, D as d, k as u, M as s } from "./execute-query-CFK2R_1S.js";
1
+ import { f as i, g as l, h as n, i as o, D as d, k as u, M as s } from "./execute-query-l7jejslh.js";
2
2
  class m extends d {
3
3
  constructor(e, t) {
4
4
  var r;