@sisense/sdk-ui 0.14.0 → 0.15.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/api/chat-api-context.d.ts +12 -0
- package/dist/ai/api/chat-rest-api.d.ts +28 -0
- package/dist/ai/api/hooks.d.ts +74 -0
- package/dist/ai/api/types.d.ts +139 -0
- package/dist/ai/chat-box.d.ts +6 -0
- package/dist/ai/chat-frame.d.ts +8 -0
- package/dist/ai/chat-home.d.ts +2 -0
- package/dist/ai/chat-input.d.ts +7 -0
- package/dist/ai/chatbot-context.d.ts +11 -0
- package/dist/ai/chatbot.d.ts +27 -0
- package/dist/ai/data-topics/data-topic-item.d.ts +8 -0
- package/dist/ai/data-topics/data-topic-list.d.ts +10 -0
- package/dist/ai/data-topics/index.d.ts +2 -0
- package/dist/ai/icons/arrow-left-icon.d.ts +2 -0
- package/dist/ai/icons/clear-chat-icon.d.ts +2 -0
- package/dist/ai/icons/close-dialog-icon.d.ts +2 -0
- package/dist/ai/icons/expand-icon.d.ts +2 -0
- package/dist/ai/icons/info-icon.d.ts +2 -0
- package/dist/ai/icons/light-bulb-icon.d.ts +2 -0
- package/dist/ai/icons/loading-dots-icon.d.ts +2 -0
- package/dist/ai/icons/magic-wand-icon.d.ts +2 -0
- package/dist/ai/icons/message-icon.d.ts +2 -0
- package/dist/ai/icons/refresh-icon.d.ts +2 -0
- package/dist/ai/icons/sisense-logo.d.ts +2 -0
- package/dist/ai/icons/three-dots-icon.d.ts +2 -0
- package/dist/ai/index.d.ts +4 -0
- package/dist/ai/magic-wand-dropdown.d.ts +7 -0
- package/dist/ai/messages/chart-message-toolbar.d.ts +8 -0
- package/dist/ai/messages/chart-message.d.ts +8 -0
- package/dist/ai/messages/clear-history-message.d.ts +6 -0
- package/dist/ai/messages/get-widget-options.d.ts +13 -0
- package/dist/ai/messages/insights-message.d.ts +10 -0
- package/dist/ai/messages/jaql-element.d.ts +25 -0
- package/dist/ai/messages/message-list-resolver.d.ts +7 -0
- package/dist/ai/messages/message-resolver.d.ts +11 -0
- package/dist/ai/messages/text-message.d.ts +8 -0
- package/dist/ai/nav-back-button.d.ts +6 -0
- package/dist/ai/nlg-query-result.d.ts +20 -0
- package/dist/ai/suggestions/index.d.ts +4 -0
- package/dist/ai/suggestions/suggestion-dropdown-item.d.ts +7 -0
- package/dist/ai/suggestions/suggestion-dropdown-list.d.ts +7 -0
- package/dist/ai/suggestions/suggestion-item.d.ts +7 -0
- package/dist/ai/suggestions/suggestion-list-skeleton.d.ts +2 -0
- package/dist/ai/suggestions/suggestion-list.d.ts +7 -0
- package/dist/ai/suggestions/suggestions-with-intro.d.ts +8 -0
- package/dist/ai/toolbar.d.ts +8 -0
- package/dist/ai/use-chat-session.d.ts +22 -0
- package/dist/ai.d.ts +1 -0
- package/dist/ai.js +3390 -0
- package/dist/api/types/dashboard-dto.d.ts +2 -1
- package/dist/charts/indicator/chart/indicator.d.ts +1 -1
- package/dist/charts/indicator/chart/ticker.d.ts +2 -2
- package/dist/charts/indicator/indicator-legacy-chart-options/default-options.d.ts +2 -1
- package/dist/charts/indicator/types.d.ts +47 -6
- package/dist/common/components/loading-indicator.d.ts +33 -0
- package/dist/common/icons/loading-icon.d.ts +6 -0
- package/dist/dashboard-widget/translate-dashboard-filters.d.ts +2 -2
- package/dist/dashboard-widget/translate-widget-data-options.d.ts +2 -2
- package/dist/dashboard-widget/translate-widget-filters.d.ts +4 -16
- package/dist/dashboard-widget/types.d.ts +1 -54
- package/dist/dashboard-widget/utils.d.ts +2 -2
- package/dist/filters/components/common/index.d.ts +2 -0
- package/dist/filters/components/common/triangle-indicator.d.ts +2 -0
- package/dist/filters/components/criteria-filter-tile/criteria-filter-display.d.ts +25 -0
- package/dist/filters/components/criteria-filter-tile/criteria-filter-menu.d.ts +20 -0
- package/dist/filters/components/criteria-filter-tile/criteria-filter-operations.d.ts +62 -0
- package/dist/filters/components/criteria-filter-tile/criteria-filter-tile.d.ts +27 -0
- package/dist/filters/components/criteria-filter-tile/index.d.ts +2 -0
- package/dist/filters/components/date-filter/date-filter/date-filter.d.ts +4 -0
- package/dist/filters/components/date-filter/date-range-filter-tile/date-range-filter-tile.d.ts +11 -3
- package/dist/filters/components/date-filter/date-range-filter-tile/use-date-limits.d.ts +2 -2
- package/dist/filters/components/filter-tile.d.ts +3 -0
- package/dist/filters/components/member-filter-tile/basic-member-filter-tile.d.ts +2 -0
- package/dist/filters/components/member-filter-tile/member-filter-tile.d.ts +3 -1
- package/dist/filters/index.d.ts +1 -0
- package/dist/formulas/fetch-formula.d.ts +16 -0
- package/dist/formulas/index.d.ts +1 -0
- package/dist/formulas/use-get-shared-formula.d.ts +95 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +8180 -71481
- package/dist/models/dashboard/get-dashboard-models.d.ts +1 -1
- package/dist/models/dashboard/use-get-dashboard-model.d.ts +1 -1
- package/dist/props.d.ts +30 -11
- package/dist/table-widget-7b20ecf7.js +64167 -0
- package/dist/themes/colors.d.ts +86 -0
- package/dist/translation/resources/en.d.ts +25 -0
- package/dist/translation/resources/index.d.ts +50 -0
- package/dist/types.d.ts +6 -0
- package/dist/widgets/common/widget-header-info-button.d.ts +8 -0
- package/dist/widgets/common/widget-header.d.ts +1 -1
- package/package.json +18 -8
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
export declare const colors: {
|
|
2
|
+
row: {
|
|
3
|
+
hover: string;
|
|
4
|
+
};
|
|
5
|
+
secondary: {
|
|
6
|
+
default: string;
|
|
7
|
+
hover: string;
|
|
8
|
+
};
|
|
9
|
+
text: {
|
|
10
|
+
active: string;
|
|
11
|
+
content: string;
|
|
12
|
+
secondary: string;
|
|
13
|
+
disabled: string;
|
|
14
|
+
link: string;
|
|
15
|
+
accented: string;
|
|
16
|
+
linkButton: string;
|
|
17
|
+
primary: string;
|
|
18
|
+
};
|
|
19
|
+
UI: {
|
|
20
|
+
default: string;
|
|
21
|
+
additional: string;
|
|
22
|
+
guiding: string;
|
|
23
|
+
};
|
|
24
|
+
background: {
|
|
25
|
+
workspace: string;
|
|
26
|
+
supporting: string;
|
|
27
|
+
priority: string;
|
|
28
|
+
};
|
|
29
|
+
primary: {
|
|
30
|
+
primary: string;
|
|
31
|
+
default: string;
|
|
32
|
+
hover: string;
|
|
33
|
+
};
|
|
34
|
+
interaction: {
|
|
35
|
+
defaultHover: string;
|
|
36
|
+
guidingHover: string;
|
|
37
|
+
linkHovered: string;
|
|
38
|
+
primaryHovered: string;
|
|
39
|
+
};
|
|
40
|
+
semantic: {
|
|
41
|
+
info: string;
|
|
42
|
+
success: string;
|
|
43
|
+
warning: string;
|
|
44
|
+
error: string;
|
|
45
|
+
infoBG: string;
|
|
46
|
+
successBG: string;
|
|
47
|
+
warningBG: string;
|
|
48
|
+
errorBG: string;
|
|
49
|
+
};
|
|
50
|
+
sisenseDark: {
|
|
51
|
+
text: {
|
|
52
|
+
active: string;
|
|
53
|
+
content: string;
|
|
54
|
+
secondary: string;
|
|
55
|
+
disabled: string;
|
|
56
|
+
link: string;
|
|
57
|
+
accented: string;
|
|
58
|
+
};
|
|
59
|
+
ui: {
|
|
60
|
+
default: string;
|
|
61
|
+
additional: string;
|
|
62
|
+
guiding: string;
|
|
63
|
+
};
|
|
64
|
+
background: {
|
|
65
|
+
workspace: string;
|
|
66
|
+
supporting: string;
|
|
67
|
+
priority: string;
|
|
68
|
+
};
|
|
69
|
+
interaction: {
|
|
70
|
+
defaultHover: string;
|
|
71
|
+
guidingHover: string;
|
|
72
|
+
linkHovered: string;
|
|
73
|
+
primaryHovered: string;
|
|
74
|
+
};
|
|
75
|
+
semantic: {
|
|
76
|
+
info: string;
|
|
77
|
+
success: string;
|
|
78
|
+
warning: string;
|
|
79
|
+
error: string;
|
|
80
|
+
infoBG: string;
|
|
81
|
+
successBG: string;
|
|
82
|
+
warningBG: string;
|
|
83
|
+
errorBG: string;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
};
|
|
@@ -21,8 +21,33 @@ export declare const translation: {
|
|
|
21
21
|
unsupportedWidgetType: string;
|
|
22
22
|
sisenseContextNotFound: string;
|
|
23
23
|
dashboardInvalidIdentifier: string;
|
|
24
|
+
sharedFormula: {
|
|
25
|
+
identifierExpected: string;
|
|
26
|
+
failedToFetch: string;
|
|
27
|
+
};
|
|
24
28
|
};
|
|
25
29
|
errorBoxText: string;
|
|
26
30
|
chartNoData: string;
|
|
31
|
+
criteriaFilter: {
|
|
32
|
+
equals: string;
|
|
33
|
+
notEquals: string;
|
|
34
|
+
lessThan: string;
|
|
35
|
+
lessThanOrEqual: string;
|
|
36
|
+
greaterThan: string;
|
|
37
|
+
greaterThanOrEqual: string;
|
|
38
|
+
between: string;
|
|
39
|
+
notBetween: string;
|
|
40
|
+
top: string;
|
|
41
|
+
bottom: string;
|
|
42
|
+
is: string;
|
|
43
|
+
isNot: string;
|
|
44
|
+
contains: string;
|
|
45
|
+
notContains: string;
|
|
46
|
+
startsWith: string;
|
|
47
|
+
notStartsWith: string;
|
|
48
|
+
endsWith: string;
|
|
49
|
+
notEndsWith: string;
|
|
50
|
+
like: string;
|
|
51
|
+
};
|
|
27
52
|
};
|
|
28
53
|
export type TranslationDictionary = typeof translation;
|
|
@@ -25,9 +25,34 @@ export declare const resources: {
|
|
|
25
25
|
unsupportedWidgetType: string;
|
|
26
26
|
sisenseContextNotFound: string;
|
|
27
27
|
dashboardInvalidIdentifier: string;
|
|
28
|
+
sharedFormula: {
|
|
29
|
+
identifierExpected: string;
|
|
30
|
+
failedToFetch: string;
|
|
31
|
+
};
|
|
28
32
|
};
|
|
29
33
|
errorBoxText: string;
|
|
30
34
|
chartNoData: string;
|
|
35
|
+
criteriaFilter: {
|
|
36
|
+
equals: string;
|
|
37
|
+
notEquals: string;
|
|
38
|
+
lessThan: string;
|
|
39
|
+
lessThanOrEqual: string;
|
|
40
|
+
greaterThan: string;
|
|
41
|
+
greaterThanOrEqual: string;
|
|
42
|
+
between: string;
|
|
43
|
+
notBetween: string;
|
|
44
|
+
top: string;
|
|
45
|
+
bottom: string;
|
|
46
|
+
is: string;
|
|
47
|
+
isNot: string;
|
|
48
|
+
contains: string;
|
|
49
|
+
notContains: string;
|
|
50
|
+
startsWith: string;
|
|
51
|
+
notStartsWith: string;
|
|
52
|
+
endsWith: string;
|
|
53
|
+
notEndsWith: string;
|
|
54
|
+
like: string;
|
|
55
|
+
};
|
|
31
56
|
};
|
|
32
57
|
uk: {
|
|
33
58
|
errors: {
|
|
@@ -52,8 +77,33 @@ export declare const resources: {
|
|
|
52
77
|
unsupportedWidgetType: string;
|
|
53
78
|
sisenseContextNotFound: string;
|
|
54
79
|
dashboardInvalidIdentifier: string;
|
|
80
|
+
sharedFormula: {
|
|
81
|
+
identifierExpected: string;
|
|
82
|
+
failedToFetch: string;
|
|
83
|
+
};
|
|
55
84
|
};
|
|
56
85
|
errorBoxText: string;
|
|
57
86
|
chartNoData: string;
|
|
87
|
+
criteriaFilter: {
|
|
88
|
+
equals: string;
|
|
89
|
+
notEquals: string;
|
|
90
|
+
lessThan: string;
|
|
91
|
+
lessThanOrEqual: string;
|
|
92
|
+
greaterThan: string;
|
|
93
|
+
greaterThanOrEqual: string;
|
|
94
|
+
between: string;
|
|
95
|
+
notBetween: string;
|
|
96
|
+
top: string;
|
|
97
|
+
bottom: string;
|
|
98
|
+
is: string;
|
|
99
|
+
isNot: string;
|
|
100
|
+
contains: string;
|
|
101
|
+
notContains: string;
|
|
102
|
+
startsWith: string;
|
|
103
|
+
notStartsWith: string;
|
|
104
|
+
endsWith: string;
|
|
105
|
+
notEndsWith: string;
|
|
106
|
+
like: string;
|
|
107
|
+
};
|
|
58
108
|
};
|
|
59
109
|
};
|
package/dist/types.d.ts
CHANGED
|
@@ -526,6 +526,12 @@ export interface WidgetStyleOptions {
|
|
|
526
526
|
dividerLineColor?: string;
|
|
527
527
|
/** Header background color */
|
|
528
528
|
backgroundColor?: string;
|
|
529
|
+
/**
|
|
530
|
+
* Custom toolbar to render to the right of the title
|
|
531
|
+
*
|
|
532
|
+
* @internal
|
|
533
|
+
*/
|
|
534
|
+
renderToolbar?: (onRefresh: () => void) => JSX.Element;
|
|
529
535
|
};
|
|
530
536
|
}
|
|
531
537
|
/**
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { WidgetStyleOptions } from '../../types';
|
|
3
|
+
export default function WidgetHeaderInfoButton({ title, description, styleOptions, onRefresh, }: {
|
|
4
|
+
title?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
styleOptions?: WidgetStyleOptions['header'];
|
|
7
|
+
onRefresh: () => void;
|
|
8
|
+
}): JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sisense/sdk-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"exports":
|
|
5
|
+
"exports": {
|
|
6
|
+
".": {
|
|
7
|
+
"import": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts"
|
|
9
|
+
},
|
|
10
|
+
"./ai": {
|
|
11
|
+
"import": "./dist/ai.js",
|
|
12
|
+
"types": "./dist/ai.d.ts"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
6
15
|
"main": "./dist/index.js",
|
|
7
16
|
"module": "./dist/index.js",
|
|
8
17
|
"types": "./dist/index.d.ts",
|
|
@@ -12,12 +21,13 @@
|
|
|
12
21
|
"@emotion/react": "^11.10.5",
|
|
13
22
|
"@emotion/styled": "^11.10.5",
|
|
14
23
|
"@mui/material": "^5.11.6",
|
|
15
|
-
"@sisense/sdk-common": "^0.
|
|
16
|
-
"@sisense/sdk-data": "^0.
|
|
17
|
-
"@sisense/sdk-query-client": "^0.
|
|
18
|
-
"@sisense/sdk-rest-client": "^0.
|
|
19
|
-
"@sisense/sdk-tracking": "^0.
|
|
24
|
+
"@sisense/sdk-common": "^0.15.0",
|
|
25
|
+
"@sisense/sdk-data": "^0.15.0",
|
|
26
|
+
"@sisense/sdk-query-client": "^0.15.0",
|
|
27
|
+
"@sisense/sdk-rest-client": "^0.15.0",
|
|
28
|
+
"@sisense/sdk-tracking": "^0.15.0",
|
|
20
29
|
"@sisense/sisense-charts": "5.1.0-alpha-04052758.0",
|
|
30
|
+
"@tanstack/react-query": "4.36.1",
|
|
21
31
|
"classnames": "^2.3.2",
|
|
22
32
|
"colorjs.io": "^0.4.3",
|
|
23
33
|
"date-fns": "^2.29.3",
|
|
@@ -30,9 +40,9 @@
|
|
|
30
40
|
"lodash": "^4.17.21",
|
|
31
41
|
"merge-deep": "^3.0.3",
|
|
32
42
|
"react-datepicker": "^4.16.0",
|
|
43
|
+
"react-error-boundary": "^4.0.11",
|
|
33
44
|
"react-i18next": "^13.2.2",
|
|
34
45
|
"react-number-format": "^5.1.0",
|
|
35
|
-
"react-query": "^3.39.3",
|
|
36
46
|
"ts-deepmerge": "6.0.2",
|
|
37
47
|
"ts-essentials": "^9.3.0",
|
|
38
48
|
"whatwg-fetch": "^3.6.2"
|