@sisense/sdk-ui 1.20.0 → 1.22.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 +67 -67
- package/dist/ai.js +895 -950
- package/dist/analytics-composer.cjs +18 -18
- package/dist/analytics-composer.js +595 -595
- package/dist/{get-widget-options-B9VkQy30.js → get-widget-options-DTIulxC2.js} +12387 -12162
- package/dist/{get-widget-options-CQuHmkuX.cjs → get-widget-options-DixoCEhn.cjs} +92 -92
- package/dist/index.cjs +125 -66
- package/dist/index.js +6907 -6448
- package/dist/packages/sdk-ui/src/ai/chat-config.d.ts +1 -1
- package/dist/packages/sdk-ui/src/ai/use-get-nlg-query-result.d.ts +3 -1
- package/dist/packages/sdk-ui/src/ai/use-get-query-recommendations.d.ts +4 -1
- package/dist/packages/sdk-ui/src/api/rest-api.d.ts +4 -0
- package/dist/packages/sdk-ui/src/app/client-application.d.ts +57 -13
- package/dist/packages/sdk-ui/src/app/settings/settings.d.ts +5 -0
- package/dist/packages/sdk-ui/src/boxplot-utils.d.ts +6 -5
- package/dist/packages/sdk-ui/src/chart/chart.d.ts +1 -0
- package/dist/packages/sdk-ui/src/chart-data/advanced-analytics-data.d.ts +6 -42
- package/dist/packages/sdk-ui/src/chart-data/areamap-data.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-data/boxplot-data.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-data/cartesian-data.d.ts +3 -3
- package/dist/packages/sdk-ui/src/chart-data/categorical-data.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-data/filter-and-aggregate-chart-data.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart-data/indicator-data.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-data/range-data.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart-data/scatter-data.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart-data/scattermap-data.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-data/table-data.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart-data-options/translate-boxplot-data-options.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-data-options/types.d.ts +37 -60
- package/dist/packages/sdk-ui/src/chart-data-options/utils.d.ts +34 -19
- package/dist/packages/sdk-ui/src/chart-data-options/validate-data-options/validate-data-options.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart-options-processor/data-points.d.ts +5 -4
- package/dist/packages/sdk-ui/src/chart-options-processor/plot-bands.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/axis-section.d.ts +5 -5
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/boxplot/boxplot-axis.d.ts +3 -3
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/scatter-axis.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/tooltip-utils.d.ts +5 -5
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/translations-to-highcharts.d.ts +1 -1
- package/dist/packages/sdk-ui/src/charts/indicator/indicator-legacy-chart-data-options.d.ts +1 -1
- package/dist/packages/sdk-ui/src/common/hooks/use-fetch.d.ts +2 -5
- package/dist/packages/sdk-ui/src/common/hooks/use-synced-state.d.ts +19 -0
- package/dist/packages/sdk-ui/src/common-filters/selection-utils.d.ts +9 -1
- package/dist/packages/sdk-ui/src/common-filters/use-common-filters.d.ts +4 -2
- package/dist/packages/sdk-ui/src/dashboard/components/HorizontalCollapse.d.ts +5 -0
- package/dist/packages/sdk-ui/src/dashboard/components/dashboard-header.d.ts +1 -0
- package/dist/packages/sdk-ui/src/dashboard/dashboard-by-id.d.ts +4 -1
- package/dist/packages/sdk-ui/src/dashboard/dashboard-helpers.d.ts +91 -0
- package/dist/packages/sdk-ui/src/dashboard/dashboard.d.ts +13 -1
- package/dist/packages/sdk-ui/src/dashboard/index.d.ts +2 -0
- package/dist/packages/sdk-ui/src/dashboard/types.d.ts +18 -0
- package/dist/packages/sdk-ui/src/dashboard/use-composed-dashboard.d.ts +30 -0
- package/dist/packages/sdk-ui/src/dashboard/use-dashboard-theme.d.ts +40 -0
- package/dist/packages/sdk-ui/src/dashboard-widget/dashboard-widget.d.ts +2 -2
- package/dist/packages/sdk-ui/src/dashboard-widget/translate-widget-data-options.d.ts +13 -3
- package/dist/packages/sdk-ui/src/dashboard-widget/types.d.ts +1 -1
- package/dist/packages/sdk-ui/src/dashboard-widget/utils.d.ts +1 -0
- package/dist/packages/sdk-ui/src/decorators/hook-decorators/with-tracking.d.ts +3 -2
- package/dist/packages/sdk-ui/src/filters/components/criteria-filter-tile/criteria-filter-tile.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/date-filter/date-range-filter-tile/date-range-filter-display.d.ts +2 -1
- package/dist/packages/sdk-ui/src/filters/components/filters-panel/filters-panel.d.ts +2 -2
- package/dist/packages/sdk-ui/src/filters/components/filters-panel/index.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/unsupported-filter-tile.d.ts +12 -0
- package/dist/packages/sdk-ui/src/formulas/use-get-shared-formula.d.ts +3 -4
- package/dist/packages/sdk-ui/src/index.d.ts +16 -6
- package/dist/packages/sdk-ui/src/models/dashboard/dashboard-model-translator.d.ts +2 -2
- package/dist/packages/sdk-ui/src/models/dashboard/dashboard-model.d.ts +1 -1
- package/dist/packages/sdk-ui/src/models/dashboard/get-dashboard-model.d.ts +0 -2
- package/dist/packages/sdk-ui/src/models/dashboard/index.d.ts +2 -0
- package/dist/packages/sdk-ui/src/models/dashboard/translate-dashboard-dto-utils.d.ts +11 -0
- package/dist/packages/sdk-ui/src/models/dashboard/use-dashboard-model/use-dasboard-model-utils.d.ts +22 -0
- package/dist/packages/sdk-ui/src/models/dashboard/use-dashboard-model/use-dashboard-model-reducer.d.ts +63 -0
- package/dist/packages/sdk-ui/src/models/dashboard/use-dashboard-model/use-dashboard-model.d.ts +38 -0
- package/dist/packages/sdk-ui/src/models/dashboard/use-get-dashboard-model.d.ts +2 -2
- package/dist/packages/sdk-ui/src/models/dashboard/use-get-dashboard-models.d.ts +2 -2
- package/dist/packages/sdk-ui/src/models/hierarchy/use-get-hierarchy-models.d.ts +3 -3
- package/dist/packages/sdk-ui/src/models/widget/use-get-widget-model.d.ts +3 -3
- package/dist/packages/sdk-ui/src/models/widget/widget-model-translator.d.ts +18 -1
- package/dist/packages/sdk-ui/src/models/widget/widget-model.d.ts +1 -3
- package/dist/packages/sdk-ui/src/plugins-provider/types.d.ts +4 -4
- package/dist/packages/sdk-ui/src/plugins-provider/use-execute-plugin-query.d.ts +2 -2
- package/dist/packages/sdk-ui/src/props.d.ts +42 -23
- package/dist/packages/sdk-ui/src/query-execution/execute-query-by-widget-id.d.ts +1 -1
- package/dist/packages/sdk-ui/src/query-execution/use-execute-csv-query.d.ts +1 -1
- package/dist/packages/sdk-ui/src/query-execution/use-execute-pivot-query.d.ts +1 -1
- package/dist/packages/sdk-ui/src/query-execution/use-execute-query-by-widget-id.d.ts +2 -2
- package/dist/packages/sdk-ui/src/query-execution/use-execute-query.d.ts +1 -1
- package/dist/packages/sdk-ui/src/translation/custom-translations-loader.d.ts +10 -0
- package/dist/packages/sdk-ui/src/translation/resources/en.d.ts +98 -4
- package/dist/packages/sdk-ui/src/translation/resources/index.d.ts +196 -8
- package/dist/packages/sdk-ui/src/types.d.ts +24 -3
- package/dist/packages/sdk-ui/src/widgets/chart-widget.d.ts +1 -1
- package/dist/packages/sdk-ui/src/widgets/common/drilldown-utils.d.ts +7 -0
- package/dist/packages/sdk-ui/src/widgets/common/{use-drilldown.d.ts → use-drilldown-core.d.ts} +7 -8
- package/dist/packages/sdk-ui/src/widgets/common-widget.d.ts +1 -0
- package/dist/packages/sdk-ui/src/widgets/hooks/use-drilldown.d.ts +25 -0
- package/dist/packages/sdk-ui/src/widgets/hooks/use-with-drilldown.d.ts +12 -0
- package/dist/packages/sdk-ui/src/widgets/pivot-table-widget.d.ts +1 -1
- package/dist/packages/sdk-ui/src/widgets/widget.d.ts +9 -0
- package/dist/{table-widget-D9gDMRyX.js → table-widget-CLL1iN3H.js} +14844 -14659
- package/dist/{table-widget-DXNtx9V_.cjs → table-widget-CYCcYqzZ.cjs} +179 -179
- package/package.json +9 -9
- package/dist/packages/sdk-ui/src/ai/api/errors.d.ts +0 -4
- package/dist/packages/sdk-ui/src/widgets/common/drilldown-connector.d.ts +0 -19
|
@@ -14,7 +14,6 @@ import { ExecutePivotQueryParams, PivotQueryState } from './types';
|
|
|
14
14
|
* style='border:none;'
|
|
15
15
|
* />
|
|
16
16
|
*
|
|
17
|
-
* @param params - Parameters of the query
|
|
18
17
|
* @returns Query state that contains the status of the query execution, the result data, or the error if any occurred
|
|
19
18
|
* @group Queries
|
|
20
19
|
* @beta
|
|
@@ -23,6 +22,7 @@ export declare const useExecutePivotQuery: (params: ExecutePivotQueryParams) =>
|
|
|
23
22
|
/**
|
|
24
23
|
* {@link useExecutePivotQuery} without tracking to be used inside other hooks or components in Compose SDK.
|
|
25
24
|
*
|
|
25
|
+
* @param params - Parameters of the query
|
|
26
26
|
* @internal
|
|
27
27
|
*/
|
|
28
28
|
export declare function useExecutePivotQueryInternal(params: ExecutePivotQueryParams): PivotQueryState;
|
|
@@ -27,15 +27,15 @@ import { QueryResultData } from '@sisense/sdk-data';
|
|
|
27
27
|
return null;
|
|
28
28
|
```
|
|
29
29
|
* See also hook {@link useExecuteQuery}, which execute a query specified in code.
|
|
30
|
-
* @param params - Parameters to identify the target widget
|
|
31
30
|
* @returns Query state that contains the status of the query execution, the result data, the constructed query parameters, or the error if any occurred
|
|
32
|
-
* @group Fusion
|
|
31
|
+
* @group Fusion Assets
|
|
33
32
|
* @fusionEmbed
|
|
34
33
|
*/
|
|
35
34
|
export declare const useExecuteQueryByWidgetId: (params: ExecuteQueryByWidgetIdParams) => QueryByWidgetIdState;
|
|
36
35
|
/**
|
|
37
36
|
* {@link useExecuteQueryByWidgetId} without tracking to be used inside other hooks or components in Compose SDK.
|
|
38
37
|
*
|
|
38
|
+
* @param params - Parameters to identify the target widget
|
|
39
39
|
* @internal
|
|
40
40
|
*/
|
|
41
41
|
export declare function useExecuteQueryByWidgetIdInternal(params: ExecuteQueryByWidgetIdParams): QueryByWidgetIdState;
|
|
@@ -20,7 +20,6 @@ import { ExecuteQueryParams, ExecuteQueryResult } from './types';
|
|
|
20
20
|
* - [Query with Sorting](https://www.sisense.com/platform/compose-sdk/playground/?example=queries%2Fuse-execute-query-sorting)
|
|
21
21
|
* - [Take Control of Your Data Visualizations]( https://www.sisense.com/blog/take-control-of-your-data-visualizations/) blog post with examples of using the hook to fetch data to display in third-party charts.
|
|
22
22
|
*
|
|
23
|
-
* @param params - Parameters of the query
|
|
24
23
|
* @returns Query state that contains the status of the query execution, the result data, or the error if any occurred
|
|
25
24
|
* @group Queries
|
|
26
25
|
*/
|
|
@@ -28,6 +27,7 @@ export declare const useExecuteQuery: (params: ExecuteQueryParams) => ExecuteQue
|
|
|
28
27
|
/**
|
|
29
28
|
* {@link useExecuteQuery} without tracking to be used inside other hooks or components in Compose SDK.
|
|
30
29
|
*
|
|
30
|
+
* @param params - Parameters of the query
|
|
31
31
|
* @internal
|
|
32
32
|
*/
|
|
33
33
|
export declare function useExecuteQueryInternal(params: ExecuteQueryParams): ExecuteQueryResult;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CustomTranslationsLoaderProps } from '../props.js';
|
|
3
|
+
/**
|
|
4
|
+
* Utility wrapper component to load custom translations into the i18n instance.
|
|
5
|
+
*
|
|
6
|
+
* @internal
|
|
7
|
+
* @param customTranslations - array of custom translation objects to be loaded
|
|
8
|
+
* @returns CustomTranslationsLoader component
|
|
9
|
+
*/
|
|
10
|
+
export declare const CustomTranslationsLoader: React.FC<CustomTranslationsLoaderProps>;
|
|
@@ -41,9 +41,41 @@ export declare const translation: {
|
|
|
41
41
|
secondsDateTimeLevelSupportedOnlyForLive: string;
|
|
42
42
|
missingMenuRoot: string;
|
|
43
43
|
missingDataSource: string;
|
|
44
|
+
incorrectOnDataReadyHandler: string;
|
|
45
|
+
undefinedDataSource: string;
|
|
46
|
+
emptyModel: string;
|
|
47
|
+
missingMetadata: string;
|
|
48
|
+
missingModelTitle: string;
|
|
49
|
+
httpClientNotFound: string;
|
|
50
|
+
serverSettingsNotLoaded: string;
|
|
51
|
+
requiredColumnMissing: string;
|
|
52
|
+
unexpectedChartType: string;
|
|
53
|
+
noRowNumColumn: string;
|
|
54
|
+
ticIntervalCalculationFailed: string;
|
|
55
|
+
polarChartDesignOptionsExpected: string;
|
|
56
|
+
polarChartDesignOptionsNotExpected: string;
|
|
57
|
+
indicatorInvalidRelativeSize: string;
|
|
58
|
+
unsupportedMapType: string;
|
|
59
|
+
mapLoadingFailed: string;
|
|
60
|
+
cascadingFilterOriginalNotFound: string;
|
|
61
|
+
dashboardLoadFailed: string;
|
|
62
|
+
dashboardWithOidNotFound: string;
|
|
63
|
+
widgetWithOidNotFound: string;
|
|
64
|
+
widgetEmptyResponse: string;
|
|
65
|
+
dateFilterIncorrectOperator: string;
|
|
66
|
+
synchronizedFilterInvalidProps: string;
|
|
67
|
+
methodNotImplemented: string;
|
|
68
|
+
noPivotClient: string;
|
|
69
|
+
unexpectedCacheValue: string;
|
|
70
|
+
notAMembersFilter: string;
|
|
71
|
+
drilldownNoInitialDimension: string;
|
|
44
72
|
};
|
|
45
73
|
errorBoxText: string;
|
|
46
74
|
chartNoData: string;
|
|
75
|
+
filters: string;
|
|
76
|
+
widgetDetails: string;
|
|
77
|
+
cancel: string;
|
|
78
|
+
includeAll: string;
|
|
47
79
|
criteriaFilter: {
|
|
48
80
|
displayModePrefix: string;
|
|
49
81
|
equals: string;
|
|
@@ -72,7 +104,9 @@ export declare const translation: {
|
|
|
72
104
|
last: string;
|
|
73
105
|
next: string;
|
|
74
106
|
from: string;
|
|
107
|
+
to: string;
|
|
75
108
|
count: string;
|
|
109
|
+
select: string;
|
|
76
110
|
today: string;
|
|
77
111
|
days: string;
|
|
78
112
|
weeks: string;
|
|
@@ -82,6 +116,11 @@ export declare const translation: {
|
|
|
82
116
|
earliestDate: string;
|
|
83
117
|
latestDate: string;
|
|
84
118
|
todayOutOfRange: string;
|
|
119
|
+
dateRange: {
|
|
120
|
+
fromTo: string;
|
|
121
|
+
from: string;
|
|
122
|
+
to: string;
|
|
123
|
+
};
|
|
85
124
|
};
|
|
86
125
|
boxplot: {
|
|
87
126
|
tooltip: {
|
|
@@ -117,10 +156,8 @@ export declare const translation: {
|
|
|
117
156
|
max: string;
|
|
118
157
|
};
|
|
119
158
|
};
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
message: string;
|
|
123
|
-
};
|
|
159
|
+
unsupportedFilterMessage: string;
|
|
160
|
+
unsupportedFilter: string;
|
|
124
161
|
commonFilter: {
|
|
125
162
|
clearSelectionButton: string;
|
|
126
163
|
selectMenuItem: string;
|
|
@@ -130,6 +167,63 @@ export declare const translation: {
|
|
|
130
167
|
drilldown: {
|
|
131
168
|
drillMenuItem: string;
|
|
132
169
|
breadcrumbsAllSuffix: string;
|
|
170
|
+
breadcrumbsPrev: string;
|
|
171
|
+
breadcrumbsNext: string;
|
|
172
|
+
popover: {
|
|
173
|
+
members: string;
|
|
174
|
+
table: string;
|
|
175
|
+
column: string;
|
|
176
|
+
};
|
|
177
|
+
};
|
|
178
|
+
widgetHeader: {
|
|
179
|
+
info: {
|
|
180
|
+
details: string;
|
|
181
|
+
tooltip: string;
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
plugins: {
|
|
185
|
+
registerPrompt: string;
|
|
186
|
+
};
|
|
187
|
+
ai: {
|
|
188
|
+
analyticsChatbot: string;
|
|
189
|
+
dataTopics: string;
|
|
190
|
+
chatbotDescription: string;
|
|
191
|
+
topicSelectPrompt: string;
|
|
192
|
+
betaLabel: string;
|
|
193
|
+
preview: string;
|
|
194
|
+
clearHistoryPrompt: string;
|
|
195
|
+
config: {
|
|
196
|
+
inputPromptText: string;
|
|
197
|
+
welcomeText: string;
|
|
198
|
+
suggestionsWelcomeText: string;
|
|
199
|
+
};
|
|
200
|
+
buttons: {
|
|
201
|
+
insights: string;
|
|
202
|
+
correctResponse: string;
|
|
203
|
+
incorrectResponse: string;
|
|
204
|
+
clearChat: string;
|
|
205
|
+
refresh: string;
|
|
206
|
+
readMore: string;
|
|
207
|
+
collapse: string;
|
|
208
|
+
yes: string;
|
|
209
|
+
no: string;
|
|
210
|
+
seeMore: string;
|
|
211
|
+
};
|
|
212
|
+
disclaimer: {
|
|
213
|
+
poweredByAi: string;
|
|
214
|
+
rateRequest: string;
|
|
215
|
+
};
|
|
216
|
+
errors: {
|
|
217
|
+
chatUnavailable: string;
|
|
218
|
+
fetchHistory: string;
|
|
219
|
+
recommendationsNotAvailable: string;
|
|
220
|
+
insightsNotAvailable: string;
|
|
221
|
+
unexpectedChatResponse: string;
|
|
222
|
+
unexpected: string;
|
|
223
|
+
unknownResponse: string;
|
|
224
|
+
invalidInput: string;
|
|
225
|
+
noAvailableDataTopics: string;
|
|
226
|
+
};
|
|
133
227
|
};
|
|
134
228
|
};
|
|
135
229
|
export type TranslationDictionary = typeof translation;
|
|
@@ -45,9 +45,41 @@ export declare const resources: {
|
|
|
45
45
|
secondsDateTimeLevelSupportedOnlyForLive: string;
|
|
46
46
|
missingMenuRoot: string;
|
|
47
47
|
missingDataSource: string;
|
|
48
|
+
incorrectOnDataReadyHandler: string;
|
|
49
|
+
undefinedDataSource: string;
|
|
50
|
+
emptyModel: string;
|
|
51
|
+
missingMetadata: string;
|
|
52
|
+
missingModelTitle: string;
|
|
53
|
+
httpClientNotFound: string;
|
|
54
|
+
serverSettingsNotLoaded: string;
|
|
55
|
+
requiredColumnMissing: string;
|
|
56
|
+
unexpectedChartType: string;
|
|
57
|
+
noRowNumColumn: string;
|
|
58
|
+
ticIntervalCalculationFailed: string;
|
|
59
|
+
polarChartDesignOptionsExpected: string;
|
|
60
|
+
polarChartDesignOptionsNotExpected: string;
|
|
61
|
+
indicatorInvalidRelativeSize: string;
|
|
62
|
+
unsupportedMapType: string;
|
|
63
|
+
mapLoadingFailed: string;
|
|
64
|
+
cascadingFilterOriginalNotFound: string;
|
|
65
|
+
dashboardLoadFailed: string;
|
|
66
|
+
dashboardWithOidNotFound: string;
|
|
67
|
+
widgetWithOidNotFound: string;
|
|
68
|
+
widgetEmptyResponse: string;
|
|
69
|
+
dateFilterIncorrectOperator: string;
|
|
70
|
+
synchronizedFilterInvalidProps: string;
|
|
71
|
+
methodNotImplemented: string;
|
|
72
|
+
noPivotClient: string;
|
|
73
|
+
unexpectedCacheValue: string;
|
|
74
|
+
notAMembersFilter: string;
|
|
75
|
+
drilldownNoInitialDimension: string;
|
|
48
76
|
};
|
|
49
77
|
errorBoxText: string;
|
|
50
78
|
chartNoData: string;
|
|
79
|
+
filters: string;
|
|
80
|
+
widgetDetails: string;
|
|
81
|
+
cancel: string;
|
|
82
|
+
includeAll: string;
|
|
51
83
|
criteriaFilter: {
|
|
52
84
|
displayModePrefix: string;
|
|
53
85
|
equals: string;
|
|
@@ -76,7 +108,9 @@ export declare const resources: {
|
|
|
76
108
|
last: string;
|
|
77
109
|
next: string;
|
|
78
110
|
from: string;
|
|
111
|
+
to: string;
|
|
79
112
|
count: string;
|
|
113
|
+
select: string;
|
|
80
114
|
today: string;
|
|
81
115
|
days: string;
|
|
82
116
|
weeks: string;
|
|
@@ -86,6 +120,11 @@ export declare const resources: {
|
|
|
86
120
|
earliestDate: string;
|
|
87
121
|
latestDate: string;
|
|
88
122
|
todayOutOfRange: string;
|
|
123
|
+
dateRange: {
|
|
124
|
+
fromTo: string;
|
|
125
|
+
from: string;
|
|
126
|
+
to: string;
|
|
127
|
+
};
|
|
89
128
|
};
|
|
90
129
|
boxplot: {
|
|
91
130
|
tooltip: {
|
|
@@ -121,10 +160,8 @@ export declare const resources: {
|
|
|
121
160
|
max: string;
|
|
122
161
|
};
|
|
123
162
|
};
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
message: string;
|
|
127
|
-
};
|
|
163
|
+
unsupportedFilterMessage: string;
|
|
164
|
+
unsupportedFilter: string;
|
|
128
165
|
commonFilter: {
|
|
129
166
|
clearSelectionButton: string;
|
|
130
167
|
selectMenuItem: string;
|
|
@@ -134,6 +171,63 @@ export declare const resources: {
|
|
|
134
171
|
drilldown: {
|
|
135
172
|
drillMenuItem: string;
|
|
136
173
|
breadcrumbsAllSuffix: string;
|
|
174
|
+
breadcrumbsPrev: string;
|
|
175
|
+
breadcrumbsNext: string;
|
|
176
|
+
popover: {
|
|
177
|
+
members: string;
|
|
178
|
+
table: string;
|
|
179
|
+
column: string;
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
widgetHeader: {
|
|
183
|
+
info: {
|
|
184
|
+
details: string;
|
|
185
|
+
tooltip: string;
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
plugins: {
|
|
189
|
+
registerPrompt: string;
|
|
190
|
+
};
|
|
191
|
+
ai: {
|
|
192
|
+
analyticsChatbot: string;
|
|
193
|
+
dataTopics: string;
|
|
194
|
+
chatbotDescription: string;
|
|
195
|
+
topicSelectPrompt: string;
|
|
196
|
+
betaLabel: string;
|
|
197
|
+
preview: string;
|
|
198
|
+
clearHistoryPrompt: string;
|
|
199
|
+
config: {
|
|
200
|
+
inputPromptText: string;
|
|
201
|
+
welcomeText: string;
|
|
202
|
+
suggestionsWelcomeText: string;
|
|
203
|
+
};
|
|
204
|
+
buttons: {
|
|
205
|
+
insights: string;
|
|
206
|
+
correctResponse: string;
|
|
207
|
+
incorrectResponse: string;
|
|
208
|
+
clearChat: string;
|
|
209
|
+
refresh: string;
|
|
210
|
+
readMore: string;
|
|
211
|
+
collapse: string;
|
|
212
|
+
yes: string;
|
|
213
|
+
no: string;
|
|
214
|
+
seeMore: string;
|
|
215
|
+
};
|
|
216
|
+
disclaimer: {
|
|
217
|
+
poweredByAi: string;
|
|
218
|
+
rateRequest: string;
|
|
219
|
+
};
|
|
220
|
+
errors: {
|
|
221
|
+
chatUnavailable: string;
|
|
222
|
+
fetchHistory: string;
|
|
223
|
+
recommendationsNotAvailable: string;
|
|
224
|
+
insightsNotAvailable: string;
|
|
225
|
+
unexpectedChatResponse: string;
|
|
226
|
+
unexpected: string;
|
|
227
|
+
unknownResponse: string;
|
|
228
|
+
invalidInput: string;
|
|
229
|
+
noAvailableDataTopics: string;
|
|
230
|
+
};
|
|
137
231
|
};
|
|
138
232
|
};
|
|
139
233
|
uk: {
|
|
@@ -179,9 +273,41 @@ export declare const resources: {
|
|
|
179
273
|
secondsDateTimeLevelSupportedOnlyForLive: string;
|
|
180
274
|
missingMenuRoot: string;
|
|
181
275
|
missingDataSource: string;
|
|
276
|
+
incorrectOnDataReadyHandler: string;
|
|
277
|
+
undefinedDataSource: string;
|
|
278
|
+
emptyModel: string;
|
|
279
|
+
missingMetadata: string;
|
|
280
|
+
missingModelTitle: string;
|
|
281
|
+
httpClientNotFound: string;
|
|
282
|
+
serverSettingsNotLoaded: string;
|
|
283
|
+
requiredColumnMissing: string;
|
|
284
|
+
unexpectedChartType: string;
|
|
285
|
+
noRowNumColumn: string;
|
|
286
|
+
ticIntervalCalculationFailed: string;
|
|
287
|
+
polarChartDesignOptionsExpected: string;
|
|
288
|
+
polarChartDesignOptionsNotExpected: string;
|
|
289
|
+
indicatorInvalidRelativeSize: string;
|
|
290
|
+
unsupportedMapType: string;
|
|
291
|
+
mapLoadingFailed: string;
|
|
292
|
+
cascadingFilterOriginalNotFound: string;
|
|
293
|
+
dashboardLoadFailed: string;
|
|
294
|
+
dashboardWithOidNotFound: string;
|
|
295
|
+
widgetWithOidNotFound: string;
|
|
296
|
+
widgetEmptyResponse: string;
|
|
297
|
+
dateFilterIncorrectOperator: string;
|
|
298
|
+
synchronizedFilterInvalidProps: string;
|
|
299
|
+
methodNotImplemented: string;
|
|
300
|
+
noPivotClient: string;
|
|
301
|
+
unexpectedCacheValue: string;
|
|
302
|
+
notAMembersFilter: string;
|
|
303
|
+
drilldownNoInitialDimension: string;
|
|
182
304
|
};
|
|
183
305
|
errorBoxText: string;
|
|
184
306
|
chartNoData: string;
|
|
307
|
+
filters: string;
|
|
308
|
+
widgetDetails: string;
|
|
309
|
+
cancel: string;
|
|
310
|
+
includeAll: string;
|
|
185
311
|
criteriaFilter: {
|
|
186
312
|
displayModePrefix: string;
|
|
187
313
|
equals: string;
|
|
@@ -210,7 +336,9 @@ export declare const resources: {
|
|
|
210
336
|
last: string;
|
|
211
337
|
next: string;
|
|
212
338
|
from: string;
|
|
339
|
+
to: string;
|
|
213
340
|
count: string;
|
|
341
|
+
select: string;
|
|
214
342
|
today: string;
|
|
215
343
|
days: string;
|
|
216
344
|
weeks: string;
|
|
@@ -220,6 +348,11 @@ export declare const resources: {
|
|
|
220
348
|
earliestDate: string;
|
|
221
349
|
latestDate: string;
|
|
222
350
|
todayOutOfRange: string;
|
|
351
|
+
dateRange: {
|
|
352
|
+
fromTo: string;
|
|
353
|
+
from: string;
|
|
354
|
+
to: string;
|
|
355
|
+
};
|
|
223
356
|
};
|
|
224
357
|
boxplot: {
|
|
225
358
|
tooltip: {
|
|
@@ -255,10 +388,8 @@ export declare const resources: {
|
|
|
255
388
|
max: string;
|
|
256
389
|
};
|
|
257
390
|
};
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
message: string;
|
|
261
|
-
};
|
|
391
|
+
unsupportedFilterMessage: string;
|
|
392
|
+
unsupportedFilter: string;
|
|
262
393
|
commonFilter: {
|
|
263
394
|
clearSelectionButton: string;
|
|
264
395
|
selectMenuItem: string;
|
|
@@ -268,6 +399,63 @@ export declare const resources: {
|
|
|
268
399
|
drilldown: {
|
|
269
400
|
drillMenuItem: string;
|
|
270
401
|
breadcrumbsAllSuffix: string;
|
|
402
|
+
breadcrumbsPrev: string;
|
|
403
|
+
breadcrumbsNext: string;
|
|
404
|
+
popover: {
|
|
405
|
+
members: string;
|
|
406
|
+
table: string;
|
|
407
|
+
column: string;
|
|
408
|
+
};
|
|
409
|
+
};
|
|
410
|
+
widgetHeader: {
|
|
411
|
+
info: {
|
|
412
|
+
details: string;
|
|
413
|
+
tooltip: string;
|
|
414
|
+
};
|
|
415
|
+
};
|
|
416
|
+
plugins: {
|
|
417
|
+
registerPrompt: string;
|
|
418
|
+
};
|
|
419
|
+
ai: {
|
|
420
|
+
analyticsChatbot: string;
|
|
421
|
+
dataTopics: string;
|
|
422
|
+
chatbotDescription: string;
|
|
423
|
+
topicSelectPrompt: string;
|
|
424
|
+
betaLabel: string;
|
|
425
|
+
preview: string;
|
|
426
|
+
clearHistoryPrompt: string;
|
|
427
|
+
config: {
|
|
428
|
+
inputPromptText: string;
|
|
429
|
+
welcomeText: string;
|
|
430
|
+
suggestionsWelcomeText: string;
|
|
431
|
+
};
|
|
432
|
+
buttons: {
|
|
433
|
+
insights: string;
|
|
434
|
+
correctResponse: string;
|
|
435
|
+
incorrectResponse: string;
|
|
436
|
+
clearChat: string;
|
|
437
|
+
refresh: string;
|
|
438
|
+
readMore: string;
|
|
439
|
+
collapse: string;
|
|
440
|
+
yes: string;
|
|
441
|
+
no: string;
|
|
442
|
+
seeMore: string;
|
|
443
|
+
};
|
|
444
|
+
disclaimer: {
|
|
445
|
+
poweredByAi: string;
|
|
446
|
+
rateRequest: string;
|
|
447
|
+
};
|
|
448
|
+
errors: {
|
|
449
|
+
chatUnavailable: string;
|
|
450
|
+
fetchHistory: string;
|
|
451
|
+
recommendationsNotAvailable: string;
|
|
452
|
+
insightsNotAvailable: string;
|
|
453
|
+
unexpectedChatResponse: string;
|
|
454
|
+
unexpected: string;
|
|
455
|
+
unknownResponse: string;
|
|
456
|
+
invalidInput: string;
|
|
457
|
+
noAvailableDataTopics: string;
|
|
458
|
+
};
|
|
271
459
|
};
|
|
272
460
|
};
|
|
273
461
|
};
|
|
@@ -921,11 +921,8 @@ export type WidgetThemeSettings = {
|
|
|
921
921
|
* @internal
|
|
922
922
|
*/
|
|
923
923
|
export type DashboardThemeSettings = {
|
|
924
|
-
/** Background color */
|
|
925
924
|
backgroundColor?: string;
|
|
926
|
-
/** Width of the divider line between widgets */
|
|
927
925
|
dividerLineWidth?: number;
|
|
928
|
-
/** Divider line color */
|
|
929
926
|
dividerLineColor?: string;
|
|
930
927
|
};
|
|
931
928
|
/**
|
|
@@ -1435,3 +1432,27 @@ export type LoadingIndicatorConfig = {
|
|
|
1435
1432
|
* Data options with arbitrary keys. This is typically used in the context of a plugin widget.
|
|
1436
1433
|
*/
|
|
1437
1434
|
export type GenericDataOptions = Record<string, Array<StyledColumn | StyledMeasureColumn>>;
|
|
1435
|
+
/**
|
|
1436
|
+
* Translation resources with nested structure.
|
|
1437
|
+
*/
|
|
1438
|
+
export type NestedTranslationResources = {
|
|
1439
|
+
[key: string]: string | NestedTranslationResources;
|
|
1440
|
+
};
|
|
1441
|
+
/**
|
|
1442
|
+
* Custom translation object.
|
|
1443
|
+
*/
|
|
1444
|
+
export type CustomTranslationObject = {
|
|
1445
|
+
/**
|
|
1446
|
+
* The language code of the translations.
|
|
1447
|
+
*/
|
|
1448
|
+
language: string;
|
|
1449
|
+
/**
|
|
1450
|
+
* The translation resources.
|
|
1451
|
+
*/
|
|
1452
|
+
resources: NestedTranslationResources;
|
|
1453
|
+
/**
|
|
1454
|
+
* The package name of the translations.
|
|
1455
|
+
* Default value is `sdkUi`.
|
|
1456
|
+
*/
|
|
1457
|
+
packageName?: string;
|
|
1458
|
+
};
|
|
@@ -22,6 +22,6 @@ import { ChartWidgetProps } from '../props';
|
|
|
22
22
|
* <img src="media://chart-widget-with-drilldown-example-1.png" width="800px" />
|
|
23
23
|
* @param props - ChartWidget properties
|
|
24
24
|
* @returns ChartWidget component representing a chart type as specified in `ChartWidgetProps.`{@link ChartWidgetProps.chartType | chartType}
|
|
25
|
-
* @group
|
|
25
|
+
* @group Dashboards
|
|
26
26
|
*/
|
|
27
27
|
export declare const ChartWidget: FunctionComponent<ChartWidgetProps>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { DataPoint, ChartType, ChartDataOptions } from '../../types';
|
|
2
|
+
import { Attribute } from '@sisense/sdk-data';
|
|
3
|
+
import { ScatterDataPoint } from '../..';
|
|
4
|
+
export declare function getDrilldownInitialDimension(chartType: ChartType, dataOptions: ChartDataOptions): Attribute | undefined;
|
|
5
|
+
export declare function isDrilldownApplicableToChart(chartType: ChartType, dataOptions: ChartDataOptions): boolean;
|
|
6
|
+
export declare function applyDrilldownDimension(chartType: ChartType, dataOptions: ChartDataOptions, drilldownDimension: Attribute): ChartDataOptions;
|
|
7
|
+
export declare function prepareDrilldownSelectionPoints(points: (DataPoint | ScatterDataPoint)[], nativeEvent: MouseEvent, dataOptions: ChartDataOptions): DataPoint[];
|
package/dist/packages/sdk-ui/src/widgets/common/{use-drilldown.d.ts → use-drilldown-core.d.ts}
RENAMED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { type TFunction } from '@sisense/sdk-common';
|
|
2
2
|
import { Attribute, Column, MembersFilter } from '@sisense/sdk-data';
|
|
3
|
-
import { StyledColumn, DrilldownSelection, DataPoint, ChartDataPoint
|
|
3
|
+
import { StyledColumn, DrilldownSelection, DataPoint, ChartDataPoint } from '../../types.js';
|
|
4
4
|
import { Hierarchy } from '../../models';
|
|
5
|
-
type
|
|
6
|
-
drilldownPaths
|
|
5
|
+
type UseDrilldownCoreParams = {
|
|
6
|
+
drilldownPaths?: (Attribute | Hierarchy)[];
|
|
7
7
|
initialDimension: Column | StyledColumn;
|
|
8
8
|
drilldownSelections?: DrilldownSelection[];
|
|
9
9
|
onDrilldownSelectionsChange?: (selections: DrilldownSelection[]) => void;
|
|
10
10
|
};
|
|
11
|
-
export declare const
|
|
11
|
+
export declare const useDrilldownCore: (params: UseDrilldownCoreParams) => {
|
|
12
|
+
drilldownSelections: DrilldownSelection[];
|
|
13
|
+
availableDrilldownPaths: (Attribute | Hierarchy)[];
|
|
12
14
|
drilldownFilters: MembersFilter[];
|
|
13
15
|
drilldownFiltersDisplayValues: string[][];
|
|
14
16
|
drilldownDimension: Attribute;
|
|
15
17
|
selectDrilldown: (points: DataPoint[], nextDimension: Attribute, hierarchy?: Hierarchy) => void;
|
|
16
18
|
sliceDrilldownSelections: (i: number) => void;
|
|
17
19
|
clearDrilldownSelections: () => void;
|
|
18
|
-
drilldownSelections: DrilldownSelection[];
|
|
19
|
-
availableDrilldownPaths: (Attribute | Hierarchy)[];
|
|
20
20
|
};
|
|
21
21
|
/**
|
|
22
22
|
* @internal
|
|
@@ -26,7 +26,6 @@ export declare const processDrilldownSelections: (drilldownSelections: Drilldown
|
|
|
26
26
|
drilldownFiltersDisplayValues: string[][];
|
|
27
27
|
drilldownDimension: Attribute;
|
|
28
28
|
};
|
|
29
|
+
export declare function getDisplayMemberNameFromDataPoint(point: ChartDataPoint): string;
|
|
29
30
|
export declare function getMemberNameFromDataPoint(point: ChartDataPoint): string;
|
|
30
|
-
export declare function getSelectionTitleMenuItem(points: DataPoint[], drilldownDimension: Attribute): MenuItemSection;
|
|
31
|
-
export declare function getDrilldownMenuItems(availableDrilldownPaths: (Attribute | Hierarchy)[], drilldownDimension: Attribute, selectFn: (nextDimension: Attribute, hierarchy?: Hierarchy) => void, translate: TFunction): MenuItemSection;
|
|
32
31
|
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Attribute, Column } from '@sisense/sdk-data';
|
|
2
|
+
import { type TFunction } from '@sisense/sdk-common';
|
|
3
|
+
import { StyledColumn, DrilldownSelection, DataPoint, MenuPosition, MenuItemSection } from '../../types.js';
|
|
4
|
+
import { Hierarchy } from '../../models';
|
|
5
|
+
import { OpenMenuFn } from '../../common/components/menu/types.js';
|
|
6
|
+
type UseDrilldownParams = {
|
|
7
|
+
initialDimension: Column | StyledColumn;
|
|
8
|
+
drilldownPaths?: (Attribute | Hierarchy)[];
|
|
9
|
+
drilldownSelections?: DrilldownSelection[];
|
|
10
|
+
/**
|
|
11
|
+
* todo: make it optional when we will have a public `MenuProvider`.
|
|
12
|
+
* Without provided function, it should open internal menu with the help of `useMenu` hook
|
|
13
|
+
*/
|
|
14
|
+
openMenu: OpenMenuFn;
|
|
15
|
+
onDrilldownSelectionsChange?: (selections: DrilldownSelection[]) => void;
|
|
16
|
+
};
|
|
17
|
+
export declare const useDrilldown: ({ initialDimension, drilldownPaths, drilldownSelections, openMenu, onDrilldownSelectionsChange, }: UseDrilldownParams) => {
|
|
18
|
+
drilldownDimension: Attribute;
|
|
19
|
+
drilldownFilters: import("@sisense/sdk-data").MembersFilter[];
|
|
20
|
+
breadcrumbs: import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
openDrilldownMenu: (position: MenuPosition, points: DataPoint[]) => void;
|
|
22
|
+
};
|
|
23
|
+
export declare function getSelectionTitleMenuItem(points: DataPoint[], drilldownDimension: Attribute): MenuItemSection;
|
|
24
|
+
export declare function getDrilldownMenuItems(availableDrilldownPaths: (Attribute | Hierarchy)[], drilldownDimension: Attribute, selectFn: (nextDimension: Attribute, hierarchy?: Hierarchy) => void, translate: TFunction): MenuItemSection;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DrilldownSelection } from '../../types.js';
|
|
2
|
+
import { ChartWidgetProps } from '../../props.js';
|
|
3
|
+
type UseWithDrilldownParams = {
|
|
4
|
+
propsToExtend: ChartWidgetProps;
|
|
5
|
+
onDrilldownSelectionsChange?: (selections: DrilldownSelection[]) => void;
|
|
6
|
+
};
|
|
7
|
+
export declare const useWithDrilldown: ({ propsToExtend, onDrilldownSelectionsChange, }: UseWithDrilldownParams) => {
|
|
8
|
+
propsWithDrilldown: ChartWidgetProps;
|
|
9
|
+
isDrilldownEnabled: boolean | 0;
|
|
10
|
+
breadcrumbs: import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
};
|
|
12
|
+
export {};
|
|
@@ -17,7 +17,7 @@ import { PivotTableWidgetProps } from '../props';
|
|
|
17
17
|
* ```
|
|
18
18
|
* @param props - Pivot Table Widget properties
|
|
19
19
|
* @returns Widget component representing a pivot table
|
|
20
|
-
* @group
|
|
20
|
+
* @group Dashboards
|
|
21
21
|
* @beta
|
|
22
22
|
*/
|
|
23
23
|
export declare const PivotTableWidget: FunctionComponent<PivotTableWidgetProps>;
|