@sisense/sdk-ui 2.12.0 → 2.13.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 +18 -18
- package/dist/ai.js +622 -612
- package/dist/analytics-composer/node.cjs +1 -1
- package/dist/analytics-composer/node.js +252 -217
- package/dist/analytics-composer.cjs +18 -18
- package/dist/analytics-composer.js +18 -9
- package/dist/{derive-chart-family-YIDiS_iY.js → derive-chart-family-BcASqlOf.js} +7537 -7379
- package/dist/{derive-chart-family-mugR7Ty1.cjs → derive-chart-family-Ca1NT5US.cjs} +49 -53
- package/dist/{dimensions-CyzZ0dbM.cjs → dimensions-DCT9XInO.cjs} +1 -1
- package/dist/{dimensions-DmRfLrT-.js → dimensions-DOxD1XtL.js} +1 -1
- package/dist/execute-query-CvH_36GC.cjs +1 -0
- package/dist/{execute-query-BCEeyd9s.js → execute-query-JhI9RXe_.js} +1263 -1217
- package/dist/index.cjs +23 -23
- package/dist/index.js +6431 -6208
- package/dist/index.umd.js +263 -271
- package/dist/packages/sdk-ui/src/ai/index.d.ts +1 -1
- package/dist/packages/sdk-ui/src/ai/use-get-nlq-result.d.ts +22 -1
- package/dist/packages/sdk-ui/src/app/client-application.d.ts +3 -2
- package/dist/packages/sdk-ui/src/app/settings/settings.d.ts +49 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/pie-chart/design-options/index.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/types.d.ts +4 -0
- package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/utils/series-processor.d.ts +14 -14
- package/dist/packages/sdk-ui/src/chart-options-processor/series-labels.d.ts +20 -17
- package/dist/packages/sdk-ui/src/chart-options-processor/stack-labels.d.ts +18 -22
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/axis-section.d.ts +3 -2
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/design-options.d.ts +3 -3
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/legend-section.d.ts +3 -2
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/pie-plot-options.d.ts +3 -3
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/value-label-section.d.ts +3 -2
- package/dist/packages/sdk-ui/src/dashboard/components/toolbar/edit-toggle.d.ts +25 -0
- package/dist/packages/sdk-ui/src/dashboard/constants.d.ts +2 -2
- package/dist/packages/sdk-ui/src/dashboard/hooks/use-tabber.d.ts +25 -10
- package/dist/packages/sdk-ui/src/dashboard/index.d.ts +1 -1
- package/dist/packages/sdk-ui/src/dashboard/types.d.ts +7 -7
- package/dist/packages/sdk-ui/src/dashboard/use-composed-dashboard.d.ts +1 -1
- package/dist/packages/sdk-ui/src/index.d.ts +2 -0
- package/dist/packages/sdk-ui/src/models/dashboard/dashboard-model.d.ts +15 -3
- package/dist/packages/sdk-ui/src/models/dashboard/translate-dashboard-utils.d.ts +3 -2
- package/dist/packages/sdk-ui/src/models/dashboard/types.d.ts +1 -10
- package/dist/packages/sdk-ui/src/models/widget/widget-model-translator/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/models/widget/widget-model-translator/tabber.d.ts +21 -0
- package/dist/packages/sdk-ui/src/models/widget/{widget-model-translator.d.ts → widget-model-translator/widget-model-translator.d.ts} +15 -15
- package/dist/packages/sdk-ui/src/models/widget/widget-model.d.ts +6 -0
- package/dist/packages/sdk-ui/src/pivot-table/hooks/use-render-pivot.d.ts +5 -1
- package/dist/packages/sdk-ui/src/props.d.ts +8 -20
- package/dist/packages/sdk-ui/src/types.d.ts +57 -63
- package/dist/packages/sdk-ui/src/utils/gradient.d.ts +396 -0
- package/dist/packages/sdk-ui/src/utils/omit-undefined.d.ts +21 -0
- package/dist/packages/sdk-ui/src/widget-by-id/translate-widget-style-options/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/widget-by-id/translate-widget-style-options/tabber.d.ts +23 -0
- package/dist/packages/sdk-ui/src/widget-by-id/{translate-widget-style-options.d.ts → translate-widget-style-options/translate-widget-style-options.d.ts} +4 -4
- package/dist/packages/sdk-ui/src/widget-by-id/types.d.ts +38 -3
- package/dist/packages/sdk-ui/src/widget-by-id/utils.d.ts +30 -2
- package/dist/packages/sdk-ui/src/widgets/tabber/tabber-buttons-widget.d.ts +8 -0
- package/dist/packages/sdk-ui/src/widgets/tabber/types.d.ts +110 -0
- package/dist/{types-CevYjGN4.cjs → types-Cl0_Tfey.cjs} +1 -1
- package/dist/{types-DVAfvbpR.js → types-CnFd03Ga.js} +1 -1
- package/dist/{use-common-filters-BXdnB4GI.cjs → use-common-filters-WTVrWfsY.cjs} +174 -174
- package/dist/{use-common-filters-DIF4c8WP.js → use-common-filters-qFWk1Ia5.js} +11458 -11419
- package/dist/{widget-composer-C0lZpwN6.cjs → widget-composer-C7ZAcFHK.cjs} +2 -6
- package/dist/{widget-composer-BB5Jrgae.js → widget-composer-ovIwmgin.js} +4 -8
- package/package.json +7 -7
- package/dist/execute-query-Xt9drS3G.cjs +0 -1
- package/dist/packages/sdk-ui/src/widgets/tabber-widget.d.ts +0 -41
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { CustomWidgetProps } from '../../props';
|
|
2
|
+
/**
|
|
3
|
+
* Configuration options that define style of the various elements of the tabbers buttons widget.
|
|
4
|
+
*
|
|
5
|
+
*/
|
|
6
|
+
export type TabberButtonsWidgetStyleOptions = {
|
|
7
|
+
/**
|
|
8
|
+
* Color of the widget description text
|
|
9
|
+
*/
|
|
10
|
+
descriptionColor?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Background color of the selected tab
|
|
13
|
+
*/
|
|
14
|
+
selectedBackgroundColor?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Text color of the selected tab
|
|
17
|
+
*/
|
|
18
|
+
selectedColor?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Whether to display the widget description
|
|
21
|
+
*
|
|
22
|
+
* @defaultValue true
|
|
23
|
+
*/
|
|
24
|
+
showDescription?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Whether to show visual separators between tabs
|
|
27
|
+
*
|
|
28
|
+
* @defaultValue true
|
|
29
|
+
*/
|
|
30
|
+
showSeparators?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Corner radius style for tabs
|
|
33
|
+
*/
|
|
34
|
+
tabCornerRadius?: 'small' | 'medium' | 'large' | 'none';
|
|
35
|
+
/**
|
|
36
|
+
* Horizontal alignment of tabs within the widget
|
|
37
|
+
*/
|
|
38
|
+
tabsAlignment?: 'left' | 'center' | 'right';
|
|
39
|
+
/**
|
|
40
|
+
* Spacing interval between tabs
|
|
41
|
+
*/
|
|
42
|
+
tabsInterval?: 'small' | 'medium' | 'large';
|
|
43
|
+
/**
|
|
44
|
+
* Size of the tabs
|
|
45
|
+
*/
|
|
46
|
+
tabsSize?: 'small' | 'medium' | 'large';
|
|
47
|
+
/**
|
|
48
|
+
* Background color of unselected tabs
|
|
49
|
+
*/
|
|
50
|
+
unselectedBackgroundColor?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Text color of unselected tabs
|
|
53
|
+
*/
|
|
54
|
+
unselectedColor?: string;
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* Custom options for the tabber buttons widget
|
|
58
|
+
*/
|
|
59
|
+
export type TabberButtonsWidgetCustomOptions = {
|
|
60
|
+
/**
|
|
61
|
+
* Index of the currently active tab (zero-based)
|
|
62
|
+
*
|
|
63
|
+
* @defaultValue 0
|
|
64
|
+
*/
|
|
65
|
+
activeTab?: number;
|
|
66
|
+
/**
|
|
67
|
+
* Array of tab names to display in the tabber buttons widget
|
|
68
|
+
*/
|
|
69
|
+
tabNames: string[];
|
|
70
|
+
/**
|
|
71
|
+
* Callback function invoked when a tab is selected
|
|
72
|
+
*
|
|
73
|
+
* @param tab - Index of the selected tab
|
|
74
|
+
* @internal
|
|
75
|
+
*/
|
|
76
|
+
onTabSelected?: (tab: number) => void;
|
|
77
|
+
};
|
|
78
|
+
/**
|
|
79
|
+
* Props for tabbers buttons widget in a dashboard.
|
|
80
|
+
*/
|
|
81
|
+
export interface TabberButtonsWidgetProps extends CustomWidgetProps {
|
|
82
|
+
/**
|
|
83
|
+
* Unique identifier for the widget
|
|
84
|
+
*/
|
|
85
|
+
id: string;
|
|
86
|
+
/**
|
|
87
|
+
* Widget type identifier, always 'custom' for tabber widget
|
|
88
|
+
*/
|
|
89
|
+
widgetType: 'custom';
|
|
90
|
+
/**
|
|
91
|
+
* Custom widget type identifier, always 'tabber-buttons' for tabber widget
|
|
92
|
+
*/
|
|
93
|
+
customWidgetType: 'tabber-buttons';
|
|
94
|
+
/**
|
|
95
|
+
* Style configuration options for the tabber buttons widget
|
|
96
|
+
*/
|
|
97
|
+
styleOptions?: TabberButtonsWidgetStyleOptions;
|
|
98
|
+
/**
|
|
99
|
+
* Data options configuration (empty object for tabber widget as it doesn't require data)
|
|
100
|
+
*/
|
|
101
|
+
dataOptions: Record<string, never>;
|
|
102
|
+
/**
|
|
103
|
+
* Configuration for tabs including names and active tab index
|
|
104
|
+
*/
|
|
105
|
+
customOptions: TabberButtonsWidgetCustomOptions;
|
|
106
|
+
/**
|
|
107
|
+
* Description text displayed in the widget
|
|
108
|
+
*/
|
|
109
|
+
description?: string;
|
|
110
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const a=require("./execute-query-
|
|
1
|
+
"use strict";const a=require("./execute-query-CvH_36GC.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;
|