@sisense/sdk-ui 1.21.0 → 1.23.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 -49
- package/dist/ai.js +844 -744
- package/dist/analytics-composer.cjs +89 -148
- package/dist/analytics-composer.js +1198 -1481
- package/dist/{get-widget-options-NhNoIBS9.js → derive-chart-family-CTpRObm1.js} +11138 -11042
- package/dist/{get-widget-options-BmZF5Ztf.cjs → derive-chart-family-DcALKnKU.cjs} +100 -100
- package/dist/index.cjs +116 -116
- package/dist/index.js +9303 -8779
- package/dist/packages/sdk-ui/src/ai/api/chat-rest-api.d.ts +1 -1
- package/dist/packages/sdk-ui/src/ai/api/types.d.ts +3 -23
- package/dist/packages/sdk-ui/src/ai/chart/chart-insights.d.ts +5 -0
- package/dist/packages/sdk-ui/src/ai/chart/nlq-chart-widget.d.ts +41 -0
- package/dist/packages/sdk-ui/src/ai/chat-config.d.ts +1 -1
- package/dist/packages/sdk-ui/src/ai/icons/ai-icon.d.ts +2 -0
- package/dist/packages/sdk-ui/src/ai/index.d.ts +2 -3
- package/dist/packages/sdk-ui/src/ai/messages/chart-message.d.ts +1 -2
- package/dist/packages/sdk-ui/src/ai/use-get-data-source-fields.d.ts +1 -1
- package/dist/packages/sdk-ui/src/analytics-composer/{translators → code}/code-templates.d.ts +1 -1
- package/dist/packages/sdk-ui/src/analytics-composer/{translators → code}/generate-code.d.ts +3 -3
- package/dist/packages/sdk-ui/src/analytics-composer/{translators → common}/utils.d.ts +1 -1
- package/dist/packages/sdk-ui/src/analytics-composer/index.d.ts +12 -1
- package/dist/packages/sdk-ui/src/analytics-composer/query/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/analytics-composer/{translators → query}/query-translator.d.ts +2 -3
- package/dist/packages/sdk-ui/src/analytics-composer/types.d.ts +149 -0
- package/dist/packages/sdk-ui/src/{ai/messages → analytics-composer/widget/chart-options}/get-widget-options.d.ts +5 -14
- package/dist/packages/sdk-ui/src/analytics-composer/widget/stringify-filters.d.ts +2 -0
- package/dist/packages/sdk-ui/src/analytics-composer/widget/to-widget-code.d.ts +3 -0
- package/dist/packages/sdk-ui/src/analytics-composer/widget/to-widget-props.d.ts +3 -0
- package/dist/packages/sdk-ui/src/analytics-composer/widget/widget-composer.d.ts +15 -0
- package/dist/packages/sdk-ui/src/api/rest-api.d.ts +5 -1
- package/dist/packages/sdk-ui/src/api/types/dashboard-dto.d.ts +1 -1
- package/dist/packages/sdk-ui/src/app/client-application.d.ts +60 -16
- package/dist/packages/sdk-ui/src/app/settings/settings.d.ts +5 -0
- package/dist/packages/sdk-ui/src/app/settings/types/user.d.ts +0 -1
- package/dist/packages/sdk-ui/src/boxplot-utils.d.ts +5 -4
- package/dist/packages/sdk-ui/src/chart/chart.d.ts +1 -0
- package/dist/packages/sdk-ui/src/chart/helpers/derive-chart-family.d.ts +8 -0
- package/dist/packages/sdk-ui/src/chart-data-options/utils.d.ts +1 -0
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/translations-to-highcharts.d.ts +1 -1
- package/dist/packages/sdk-ui/src/common/components/menu/types.d.ts +1 -0
- package/dist/packages/sdk-ui/src/common/hooks/use-fetch.d.ts +1 -1
- 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/dashboard-by-id.d.ts +1 -2
- package/dist/packages/sdk-ui/src/dashboard/dashboard-helpers.d.ts +86 -9
- package/dist/packages/sdk-ui/src/dashboard/dashboard.d.ts +9 -1
- package/dist/packages/sdk-ui/src/dashboard/index.d.ts +2 -1
- 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/decorators/hook-decorators/with-tracking.d.ts +1 -0
- package/dist/packages/sdk-ui/src/filters/components/common/member-radio.d.ts +8 -0
- 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/member-filter-tile/member-list.d.ts +1 -0
- package/dist/packages/sdk-ui/src/formulas/use-get-shared-formula.d.ts +2 -2
- package/dist/packages/sdk-ui/src/index.d.ts +28 -13
- 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/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/translate-dashboard-utils.d.ts +1 -1
- 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 +3 -4
- package/dist/packages/sdk-ui/src/models/dashboard/use-get-dashboard-models.d.ts +1 -1
- package/dist/packages/sdk-ui/src/models/hierarchy/hierarchy-model-translator.d.ts +1 -1
- package/dist/packages/sdk-ui/src/models/hierarchy/use-get-hierarchy-models.d.ts +2 -2
- package/dist/packages/sdk-ui/src/models/widget/use-get-widget-model.d.ts +2 -2
- package/dist/packages/sdk-ui/src/models/widget/widget-model-translator.d.ts +19 -1
- package/dist/packages/sdk-ui/src/models/widget/widget-model.d.ts +2 -2
- package/dist/packages/sdk-ui/src/props.d.ts +47 -24
- 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/types.d.ts +1 -1
- package/dist/packages/sdk-ui/src/query-execution/use-execute-query-by-widget-id.d.ts +1 -1
- package/dist/packages/sdk-ui/src/sisense-context/custom-sisense-context-provider.d.ts +1 -3
- package/dist/packages/sdk-ui/src/sisense-context/sisense-context.d.ts +3 -0
- package/dist/packages/sdk-ui/src/translation/i18n-provider.d.ts +3 -1
- package/dist/packages/sdk-ui/src/translation/resources/en.d.ts +114 -2
- package/dist/packages/sdk-ui/src/translation/resources/index.d.ts +206 -4
- package/dist/packages/sdk-ui/src/types.d.ts +33 -5
- package/dist/packages/sdk-ui/src/utils/filters.d.ts +1 -0
- package/dist/packages/sdk-ui/src/{dashboard-widget → widget-by-id}/dashboard-widget.d.ts +4 -3
- package/dist/packages/sdk-ui/src/widget-by-id/translate-dashboard-filters.d.ts +4800 -0
- package/dist/packages/sdk-ui/src/{dashboard-widget → widget-by-id}/translate-panel-color-format.d.ts +3 -3
- package/dist/packages/sdk-ui/src/{dashboard-widget → widget-by-id}/translate-widget-data-options.d.ts +15 -5
- package/dist/packages/sdk-ui/src/{dashboard-widget → widget-by-id}/translate-widget-drilldown-options.d.ts +2 -2
- package/dist/packages/sdk-ui/src/{dashboard-widget → widget-by-id}/translate-widget-filters.d.ts +85 -83
- package/dist/packages/sdk-ui/src/{dashboard-widget → widget-by-id}/types.d.ts +1 -1
- package/dist/packages/sdk-ui/src/{dashboard-widget → widget-by-id}/use-fetch-widget-dto-model.d.ts +3 -3
- package/dist/packages/sdk-ui/src/{dashboard-widget → widget-by-id}/utils.d.ts +6 -13
- package/dist/packages/sdk-ui/src/widget-by-id/widget-by-id.d.ts +26 -0
- 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} +14 -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 +27 -0
- package/dist/packages/sdk-ui/src/widgets/hooks/use-with-drilldown.d.ts +12 -0
- package/dist/packages/sdk-ui/src/widgets/widget.d.ts +9 -0
- package/dist/{table-widget-BPmucihM.js → useQuery-1xZMqnAI.js} +40059 -39949
- package/dist/useQuery-D9rZ58KS.cjs +821 -0
- package/dist/widget-composer-B17DVa2A.cjs +101 -0
- package/dist/widget-composer-DqjH_6dw.js +448 -0
- package/package.json +9 -9
- package/dist/packages/sdk-ui/src/ai/api/errors.d.ts +0 -4
- package/dist/packages/sdk-ui/src/ai/messages/jaql-element.d.ts +0 -28
- package/dist/packages/sdk-ui/src/analytics-composer/translators/index.d.ts +0 -3
- package/dist/packages/sdk-ui/src/analytics-composer/translators/model-translator.d.ts +0 -48
- package/dist/packages/sdk-ui/src/analytics-composer/translators/translate-filters-to-code.d.ts +0 -2
- package/dist/packages/sdk-ui/src/analytics-composer/translators/types.d.ts +0 -95
- package/dist/packages/sdk-ui/src/dashboard-widget/translate-dashboard-filters.d.ts +0 -4798
- package/dist/packages/sdk-ui/src/widgets/common/drilldown-connector.d.ts +0 -19
- package/dist/table-widget-BikAZUJv.cjs +0 -821
- /package/dist/packages/sdk-ui/src/analytics-composer/{translators → query}/query-templates.d.ts +0 -0
- /package/dist/packages/sdk-ui/src/analytics-composer/{translators/translate-props-to-code.d.ts → widget/stringify-props.d.ts} +0 -0
- /package/dist/packages/sdk-ui/src/{dashboard-widget → widget-by-id}/translate-widget-style-options.d.ts +0 -0
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { TranslationDictionary } from './en.js';
|
|
2
2
|
export type { TranslationDictionary };
|
|
3
|
+
/**
|
|
4
|
+
* A reference to the namespace of the translation resources.
|
|
5
|
+
* This namespace is used to access the translation resources in the i18next instance.
|
|
6
|
+
*
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
3
9
|
export declare const PACKAGE_NAMESPACE: "sdkUi";
|
|
4
10
|
export declare const resources: {
|
|
5
11
|
en: {
|
|
@@ -8,8 +14,8 @@ export declare const resources: {
|
|
|
8
14
|
componentRenderError: string;
|
|
9
15
|
sisenseContextNoAuthentication: string;
|
|
10
16
|
chartNoSisenseContext: string;
|
|
11
|
-
|
|
12
|
-
|
|
17
|
+
widgetByIdNoSisenseContext: string;
|
|
18
|
+
widgetByIdInvalidIdentifier: string;
|
|
13
19
|
dashboardWidgetsInvalidIdentifiers: string;
|
|
14
20
|
executeQueryNoSisenseContext: string;
|
|
15
21
|
executeQueryNoDataSource: string;
|
|
@@ -45,9 +51,42 @@ export declare const resources: {
|
|
|
45
51
|
secondsDateTimeLevelSupportedOnlyForLive: string;
|
|
46
52
|
missingMenuRoot: string;
|
|
47
53
|
missingDataSource: string;
|
|
54
|
+
incorrectOnDataReadyHandler: string;
|
|
55
|
+
undefinedDataSource: string;
|
|
56
|
+
emptyModel: string;
|
|
57
|
+
missingMetadata: string;
|
|
58
|
+
missingModelTitle: string;
|
|
59
|
+
httpClientNotFound: string;
|
|
60
|
+
serverSettingsNotLoaded: string;
|
|
61
|
+
requiredColumnMissing: string;
|
|
62
|
+
unexpectedChartType: string;
|
|
63
|
+
noRowNumColumn: string;
|
|
64
|
+
ticIntervalCalculationFailed: string;
|
|
65
|
+
polarChartDesignOptionsExpected: string;
|
|
66
|
+
polarChartDesignOptionsNotExpected: string;
|
|
67
|
+
indicatorInvalidRelativeSize: string;
|
|
68
|
+
unsupportedMapType: string;
|
|
69
|
+
mapLoadingFailed: string;
|
|
70
|
+
cascadingFilterOriginalNotFound: string;
|
|
71
|
+
dashboardLoadFailed: string;
|
|
72
|
+
dashboardWithOidNotFound: string;
|
|
73
|
+
widgetWithOidNotFound: string;
|
|
74
|
+
widgetEmptyResponse: string;
|
|
75
|
+
dateFilterIncorrectOperator: string;
|
|
76
|
+
synchronizedFilterInvalidProps: string;
|
|
77
|
+
methodNotImplemented: string;
|
|
78
|
+
noPivotClient: string;
|
|
79
|
+
unexpectedCacheValue: string;
|
|
80
|
+
notAMembersFilter: string;
|
|
81
|
+
drilldownNoInitialDimension: string;
|
|
82
|
+
otherWidgetTypesNotSupported: string;
|
|
48
83
|
};
|
|
49
84
|
errorBoxText: string;
|
|
50
85
|
chartNoData: string;
|
|
86
|
+
filters: string;
|
|
87
|
+
widgetDetails: string;
|
|
88
|
+
cancel: string;
|
|
89
|
+
includeAll: string;
|
|
51
90
|
criteriaFilter: {
|
|
52
91
|
displayModePrefix: string;
|
|
53
92
|
equals: string;
|
|
@@ -76,7 +115,9 @@ export declare const resources: {
|
|
|
76
115
|
last: string;
|
|
77
116
|
next: string;
|
|
78
117
|
from: string;
|
|
118
|
+
to: string;
|
|
79
119
|
count: string;
|
|
120
|
+
select: string;
|
|
80
121
|
today: string;
|
|
81
122
|
days: string;
|
|
82
123
|
weeks: string;
|
|
@@ -86,6 +127,11 @@ export declare const resources: {
|
|
|
86
127
|
earliestDate: string;
|
|
87
128
|
latestDate: string;
|
|
88
129
|
todayOutOfRange: string;
|
|
130
|
+
dateRange: {
|
|
131
|
+
fromTo: string;
|
|
132
|
+
from: string;
|
|
133
|
+
to: string;
|
|
134
|
+
};
|
|
89
135
|
};
|
|
90
136
|
boxplot: {
|
|
91
137
|
tooltip: {
|
|
@@ -122,6 +168,7 @@ export declare const resources: {
|
|
|
122
168
|
};
|
|
123
169
|
};
|
|
124
170
|
unsupportedFilterMessage: string;
|
|
171
|
+
unsupportedFilter: string;
|
|
125
172
|
commonFilter: {
|
|
126
173
|
clearSelectionButton: string;
|
|
127
174
|
selectMenuItem: string;
|
|
@@ -131,6 +178,63 @@ export declare const resources: {
|
|
|
131
178
|
drilldown: {
|
|
132
179
|
drillMenuItem: string;
|
|
133
180
|
breadcrumbsAllSuffix: string;
|
|
181
|
+
breadcrumbsPrev: string;
|
|
182
|
+
breadcrumbsNext: string;
|
|
183
|
+
popover: {
|
|
184
|
+
members: string;
|
|
185
|
+
table: string;
|
|
186
|
+
column: string;
|
|
187
|
+
};
|
|
188
|
+
};
|
|
189
|
+
widgetHeader: {
|
|
190
|
+
info: {
|
|
191
|
+
details: string;
|
|
192
|
+
tooltip: string;
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
plugins: {
|
|
196
|
+
registerPrompt: string;
|
|
197
|
+
};
|
|
198
|
+
ai: {
|
|
199
|
+
analyticsChatbot: string;
|
|
200
|
+
dataTopics: string;
|
|
201
|
+
chatbotDescription: string;
|
|
202
|
+
topicSelectPrompt: string;
|
|
203
|
+
betaLabel: string;
|
|
204
|
+
preview: string;
|
|
205
|
+
clearHistoryPrompt: string;
|
|
206
|
+
config: {
|
|
207
|
+
inputPromptText: string;
|
|
208
|
+
welcomeText: string;
|
|
209
|
+
suggestionsWelcomeText: string;
|
|
210
|
+
};
|
|
211
|
+
buttons: {
|
|
212
|
+
insights: string;
|
|
213
|
+
correctResponse: string;
|
|
214
|
+
incorrectResponse: string;
|
|
215
|
+
clearChat: string;
|
|
216
|
+
refresh: string;
|
|
217
|
+
readMore: string;
|
|
218
|
+
collapse: string;
|
|
219
|
+
yes: string;
|
|
220
|
+
no: string;
|
|
221
|
+
seeMore: string;
|
|
222
|
+
};
|
|
223
|
+
disclaimer: {
|
|
224
|
+
poweredByAi: string;
|
|
225
|
+
rateRequest: string;
|
|
226
|
+
};
|
|
227
|
+
errors: {
|
|
228
|
+
chatUnavailable: string;
|
|
229
|
+
fetchHistory: string;
|
|
230
|
+
recommendationsNotAvailable: string;
|
|
231
|
+
insightsNotAvailable: string;
|
|
232
|
+
unexpectedChatResponse: string;
|
|
233
|
+
unexpected: string;
|
|
234
|
+
unknownResponse: string;
|
|
235
|
+
invalidInput: string;
|
|
236
|
+
noAvailableDataTopics: string;
|
|
237
|
+
};
|
|
134
238
|
};
|
|
135
239
|
};
|
|
136
240
|
uk: {
|
|
@@ -139,8 +243,8 @@ export declare const resources: {
|
|
|
139
243
|
componentRenderError: string;
|
|
140
244
|
sisenseContextNoAuthentication: string;
|
|
141
245
|
chartNoSisenseContext: string;
|
|
142
|
-
|
|
143
|
-
|
|
246
|
+
widgetByIdNoSisenseContext: string;
|
|
247
|
+
widgetByIdInvalidIdentifier: string;
|
|
144
248
|
dashboardWidgetsInvalidIdentifiers: string;
|
|
145
249
|
executeQueryNoSisenseContext: string;
|
|
146
250
|
executeQueryNoDataSource: string;
|
|
@@ -176,9 +280,42 @@ export declare const resources: {
|
|
|
176
280
|
secondsDateTimeLevelSupportedOnlyForLive: string;
|
|
177
281
|
missingMenuRoot: string;
|
|
178
282
|
missingDataSource: string;
|
|
283
|
+
incorrectOnDataReadyHandler: string;
|
|
284
|
+
undefinedDataSource: string;
|
|
285
|
+
emptyModel: string;
|
|
286
|
+
missingMetadata: string;
|
|
287
|
+
missingModelTitle: string;
|
|
288
|
+
httpClientNotFound: string;
|
|
289
|
+
serverSettingsNotLoaded: string;
|
|
290
|
+
requiredColumnMissing: string;
|
|
291
|
+
unexpectedChartType: string;
|
|
292
|
+
noRowNumColumn: string;
|
|
293
|
+
ticIntervalCalculationFailed: string;
|
|
294
|
+
polarChartDesignOptionsExpected: string;
|
|
295
|
+
polarChartDesignOptionsNotExpected: string;
|
|
296
|
+
indicatorInvalidRelativeSize: string;
|
|
297
|
+
unsupportedMapType: string;
|
|
298
|
+
mapLoadingFailed: string;
|
|
299
|
+
cascadingFilterOriginalNotFound: string;
|
|
300
|
+
dashboardLoadFailed: string;
|
|
301
|
+
dashboardWithOidNotFound: string;
|
|
302
|
+
widgetWithOidNotFound: string;
|
|
303
|
+
widgetEmptyResponse: string;
|
|
304
|
+
dateFilterIncorrectOperator: string;
|
|
305
|
+
synchronizedFilterInvalidProps: string;
|
|
306
|
+
methodNotImplemented: string;
|
|
307
|
+
noPivotClient: string;
|
|
308
|
+
unexpectedCacheValue: string;
|
|
309
|
+
notAMembersFilter: string;
|
|
310
|
+
drilldownNoInitialDimension: string;
|
|
311
|
+
otherWidgetTypesNotSupported: string;
|
|
179
312
|
};
|
|
180
313
|
errorBoxText: string;
|
|
181
314
|
chartNoData: string;
|
|
315
|
+
filters: string;
|
|
316
|
+
widgetDetails: string;
|
|
317
|
+
cancel: string;
|
|
318
|
+
includeAll: string;
|
|
182
319
|
criteriaFilter: {
|
|
183
320
|
displayModePrefix: string;
|
|
184
321
|
equals: string;
|
|
@@ -207,7 +344,9 @@ export declare const resources: {
|
|
|
207
344
|
last: string;
|
|
208
345
|
next: string;
|
|
209
346
|
from: string;
|
|
347
|
+
to: string;
|
|
210
348
|
count: string;
|
|
349
|
+
select: string;
|
|
211
350
|
today: string;
|
|
212
351
|
days: string;
|
|
213
352
|
weeks: string;
|
|
@@ -217,6 +356,11 @@ export declare const resources: {
|
|
|
217
356
|
earliestDate: string;
|
|
218
357
|
latestDate: string;
|
|
219
358
|
todayOutOfRange: string;
|
|
359
|
+
dateRange: {
|
|
360
|
+
fromTo: string;
|
|
361
|
+
from: string;
|
|
362
|
+
to: string;
|
|
363
|
+
};
|
|
220
364
|
};
|
|
221
365
|
boxplot: {
|
|
222
366
|
tooltip: {
|
|
@@ -253,6 +397,7 @@ export declare const resources: {
|
|
|
253
397
|
};
|
|
254
398
|
};
|
|
255
399
|
unsupportedFilterMessage: string;
|
|
400
|
+
unsupportedFilter: string;
|
|
256
401
|
commonFilter: {
|
|
257
402
|
clearSelectionButton: string;
|
|
258
403
|
selectMenuItem: string;
|
|
@@ -262,6 +407,63 @@ export declare const resources: {
|
|
|
262
407
|
drilldown: {
|
|
263
408
|
drillMenuItem: string;
|
|
264
409
|
breadcrumbsAllSuffix: string;
|
|
410
|
+
breadcrumbsPrev: string;
|
|
411
|
+
breadcrumbsNext: string;
|
|
412
|
+
popover: {
|
|
413
|
+
members: string;
|
|
414
|
+
table: string;
|
|
415
|
+
column: string;
|
|
416
|
+
};
|
|
417
|
+
};
|
|
418
|
+
widgetHeader: {
|
|
419
|
+
info: {
|
|
420
|
+
details: string;
|
|
421
|
+
tooltip: string;
|
|
422
|
+
};
|
|
423
|
+
};
|
|
424
|
+
plugins: {
|
|
425
|
+
registerPrompt: string;
|
|
426
|
+
};
|
|
427
|
+
ai: {
|
|
428
|
+
analyticsChatbot: string;
|
|
429
|
+
dataTopics: string;
|
|
430
|
+
chatbotDescription: string;
|
|
431
|
+
topicSelectPrompt: string;
|
|
432
|
+
betaLabel: string;
|
|
433
|
+
preview: string;
|
|
434
|
+
clearHistoryPrompt: string;
|
|
435
|
+
config: {
|
|
436
|
+
inputPromptText: string;
|
|
437
|
+
welcomeText: string;
|
|
438
|
+
suggestionsWelcomeText: string;
|
|
439
|
+
};
|
|
440
|
+
buttons: {
|
|
441
|
+
insights: string;
|
|
442
|
+
correctResponse: string;
|
|
443
|
+
incorrectResponse: string;
|
|
444
|
+
clearChat: string;
|
|
445
|
+
refresh: string;
|
|
446
|
+
readMore: string;
|
|
447
|
+
collapse: string;
|
|
448
|
+
yes: string;
|
|
449
|
+
no: string;
|
|
450
|
+
seeMore: string;
|
|
451
|
+
};
|
|
452
|
+
disclaimer: {
|
|
453
|
+
poweredByAi: string;
|
|
454
|
+
rateRequest: string;
|
|
455
|
+
};
|
|
456
|
+
errors: {
|
|
457
|
+
chatUnavailable: string;
|
|
458
|
+
fetchHistory: string;
|
|
459
|
+
recommendationsNotAvailable: string;
|
|
460
|
+
insightsNotAvailable: string;
|
|
461
|
+
unexpectedChatResponse: string;
|
|
462
|
+
unexpected: string;
|
|
463
|
+
unknownResponse: string;
|
|
464
|
+
invalidInput: string;
|
|
465
|
+
noAvailableDataTopics: string;
|
|
466
|
+
};
|
|
265
467
|
};
|
|
266
468
|
};
|
|
267
469
|
};
|
|
@@ -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
|
/**
|
|
@@ -1022,8 +1019,8 @@ export interface WidgetContainerStyleOptions {
|
|
|
1022
1019
|
}
|
|
1023
1020
|
/** @internal */
|
|
1024
1021
|
export type RenderToolbarHandler = (onRefresh: () => void, defaultToolbar: JSX.Element) => JSX.Element | null;
|
|
1025
|
-
/** Style settings defining the look and feel of
|
|
1026
|
-
export interface
|
|
1022
|
+
/** Style settings defining the look and feel of the widget created in Fusion */
|
|
1023
|
+
export interface WidgetByIdStyleOptions extends WidgetContainerStyleOptions {
|
|
1027
1024
|
/**
|
|
1028
1025
|
* Total width of the component, which is considered in the following order of priority:
|
|
1029
1026
|
*
|
|
@@ -1042,6 +1039,13 @@ export interface DashboardWidgetStyleOptions extends WidgetContainerStyleOptions
|
|
|
1042
1039
|
*/
|
|
1043
1040
|
height?: number;
|
|
1044
1041
|
}
|
|
1042
|
+
/**
|
|
1043
|
+
* Style settings defining the look and feel of DashboardWidget
|
|
1044
|
+
*
|
|
1045
|
+
* @deprecated Use {@link WidgetByIdStyleOptions} instead
|
|
1046
|
+
*/
|
|
1047
|
+
export interface DashboardWidgetStyleOptions extends WidgetByIdStyleOptions {
|
|
1048
|
+
}
|
|
1045
1049
|
/** Style settings defining the look and feel of ChartWidget */
|
|
1046
1050
|
export type ChartWidgetStyleOptions = ChartStyleOptions & WidgetContainerStyleOptions;
|
|
1047
1051
|
/**
|
|
@@ -1435,3 +1439,27 @@ export type LoadingIndicatorConfig = {
|
|
|
1435
1439
|
* Data options with arbitrary keys. This is typically used in the context of a plugin widget.
|
|
1436
1440
|
*/
|
|
1437
1441
|
export type GenericDataOptions = Record<string, Array<StyledColumn | StyledMeasureColumn>>;
|
|
1442
|
+
/**
|
|
1443
|
+
* Translation resources with nested structure.
|
|
1444
|
+
*/
|
|
1445
|
+
export type NestedTranslationResources = {
|
|
1446
|
+
[key: string]: string | NestedTranslationResources;
|
|
1447
|
+
};
|
|
1448
|
+
/**
|
|
1449
|
+
* Custom translation object.
|
|
1450
|
+
*/
|
|
1451
|
+
export type CustomTranslationObject = {
|
|
1452
|
+
/**
|
|
1453
|
+
* The language code of the translations.
|
|
1454
|
+
*/
|
|
1455
|
+
language: string;
|
|
1456
|
+
/**
|
|
1457
|
+
* The translation resources.
|
|
1458
|
+
*/
|
|
1459
|
+
resources: NestedTranslationResources;
|
|
1460
|
+
/**
|
|
1461
|
+
* The translation namespace (usually a package name in camelCase). It identifies the specific context in which the translation is being registered.
|
|
1462
|
+
* If not specified, the default value is `sdkUi`.
|
|
1463
|
+
*/
|
|
1464
|
+
namespace?: string;
|
|
1465
|
+
};
|
|
@@ -9,4 +9,5 @@ export declare const cloneFilter: <TFilter extends Filter>(filter: TFilter) => T
|
|
|
9
9
|
export declare function clearMembersFilter(filter: Filter): Filter;
|
|
10
10
|
export declare function isIncludeAllFilter(filter: Filter): boolean;
|
|
11
11
|
export declare function haveSameAttribute(filterA: Filter, filterB: Filter): boolean;
|
|
12
|
+
/** @internal */
|
|
12
13
|
export declare function isSameAttribute(attributeA: Attribute, attributeB: Attribute): boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type FunctionComponent } from 'react';
|
|
2
|
-
import { DashboardWidgetProps } from '../props';
|
|
2
|
+
import { DashboardWidgetProps } from '../props.js';
|
|
3
3
|
/**
|
|
4
4
|
* The Dashboard Widget component, which is a thin wrapper on the {@link ChartWidget} component,
|
|
5
5
|
* is used to render a widget created in a Sisense Fusion instance.
|
|
@@ -11,7 +11,7 @@ import { DashboardWidgetProps } from '../props';
|
|
|
11
11
|
*
|
|
12
12
|
* ## Example
|
|
13
13
|
*
|
|
14
|
-
* Display two dashboard widgets from a Fusion
|
|
14
|
+
* Display two dashboard widgets from a Fusion instance.
|
|
15
15
|
*
|
|
16
16
|
* <iframe
|
|
17
17
|
* src='https://csdk-playground.sisense.com/?example=fusion-assets%2Ffusion-widgets&mode=docs'
|
|
@@ -20,7 +20,8 @@ import { DashboardWidgetProps } from '../props';
|
|
|
20
20
|
* style='border:none;'
|
|
21
21
|
* />
|
|
22
22
|
*
|
|
23
|
-
* @group Fusion
|
|
23
|
+
* @group Fusion Assets
|
|
24
24
|
* @fusionEmbed
|
|
25
|
+
* @deprecated Use {@link WidgetById} instead.
|
|
25
26
|
*/
|
|
26
27
|
export declare const DashboardWidget: FunctionComponent<DashboardWidgetProps>;
|