@sisense/sdk-ui 1.32.0 → 1.34.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 +10 -10
- package/dist/ai.js +565 -560
- package/dist/analytics-composer.cjs +1 -1
- package/dist/analytics-composer.js +38 -38
- package/dist/{derive-chart-family-CVwj-7u5.js → derive-chart-family-5CbFzbpu.js} +23428 -23324
- package/dist/{derive-chart-family-7Fxxf6Sy.cjs → derive-chart-family-C3FH49ux.cjs} +186 -186
- package/dist/index.cjs +29 -17
- package/dist/index.js +10583 -8088
- package/dist/packages/sdk-ui/src/ai/ai-context-provider.d.ts +3 -2
- package/dist/packages/sdk-ui/src/ai/api/types.d.ts +11 -3
- package/dist/packages/sdk-ui/src/ai/chart/nlq-chart-widget.d.ts +2 -2
- package/dist/packages/sdk-ui/src/ai/custom-ai-context-provider.d.ts +5 -7
- package/dist/packages/sdk-ui/src/ai/get-nlg-insights.d.ts +1 -0
- package/dist/packages/sdk-ui/src/ai/index.d.ts +2 -1
- package/dist/packages/sdk-ui/src/ai/use-final-nlq-response.d.ts +20 -0
- package/dist/packages/sdk-ui/src/ai/use-get-nlq-result.d.ts +1 -0
- package/dist/packages/sdk-ui/src/ai/use-get-query-recommendations.d.ts +1 -0
- package/dist/packages/sdk-ui/src/ai/use-last-nlq-response-from-history.d.ts +8 -0
- package/dist/packages/sdk-ui/src/ai/use-last-nlq-response.d.ts +1 -2
- package/dist/packages/sdk-ui/src/analytics-composer/index.d.ts +3 -0
- package/dist/packages/sdk-ui/src/analytics-composer/types.d.ts +17 -1
- package/dist/packages/sdk-ui/src/api/rest-api.d.ts +6 -2
- package/dist/packages/sdk-ui/src/area-chart.d.ts +2 -2
- package/dist/packages/sdk-ui/src/bar-chart.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart-data/table-data.d.ts +10 -0
- package/dist/packages/sdk-ui/src/column-chart.d.ts +2 -2
- package/dist/packages/sdk-ui/src/common/components/grouped-items-browser/group-header.d.ts +10 -0
- package/dist/packages/sdk-ui/src/common/components/grouped-items-browser/group.d.ts +10 -0
- package/dist/packages/sdk-ui/src/common/components/grouped-items-browser/grouped-items-browser.d.ts +6 -0
- package/dist/packages/sdk-ui/src/common/components/grouped-items-browser/item-row.d.ts +15 -0
- package/dist/packages/sdk-ui/src/common/components/grouped-items-browser/types.d.ts +42 -0
- package/dist/packages/sdk-ui/src/common/components/loading-dots.d.ts +1 -1
- package/dist/packages/sdk-ui/src/common/components/popover.d.ts +1 -0
- package/dist/packages/sdk-ui/src/common/components/radio.d.ts +1 -0
- package/dist/packages/sdk-ui/src/common/hooks/decorators/with-lazy-loading/helpers/hooks/index.d.ts +5 -0
- package/dist/packages/sdk-ui/src/common/hooks/decorators/with-lazy-loading/helpers/hooks/use-data-accumulation.d.ts +8 -0
- package/dist/packages/sdk-ui/src/common/hooks/decorators/with-lazy-loading/helpers/hooks/use-get-hook-state-result.d.ts +10 -0
- package/dist/packages/sdk-ui/src/common/hooks/decorators/with-lazy-loading/helpers/hooks/use-get-load-more-function.d.ts +4 -0
- package/dist/packages/sdk-ui/src/common/hooks/decorators/with-lazy-loading/helpers/hooks/use-load-data-from-internal-hook.d.ts +16 -0
- package/dist/packages/sdk-ui/src/common/hooks/decorators/with-lazy-loading/helpers/hooks/use-manage-slice-to-load.d.ts +10 -0
- package/dist/packages/sdk-ui/src/common/hooks/decorators/with-lazy-loading/helpers/utils/calculate-if-all-items-loaded.d.ts +2 -0
- package/dist/packages/sdk-ui/src/common/hooks/decorators/with-lazy-loading/helpers/utils/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/common/hooks/decorators/with-lazy-loading/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/common/hooks/decorators/with-lazy-loading/types.d.ts +27 -0
- package/dist/packages/sdk-ui/src/common/hooks/decorators/with-lazy-loading/with-lazy-loading.d.ts +7 -0
- package/dist/packages/sdk-ui/src/common/hooks/fusion-endpoints/use-get-data-source-fields.d.ts +3 -0
- package/dist/packages/sdk-ui/src/common/hooks/use-defaults.d.ts +10 -0
- package/dist/packages/sdk-ui/src/common/hooks/use-last-defined.d.ts +6 -0
- package/dist/packages/sdk-ui/src/common/icons/approval-icon.d.ts +1 -0
- package/dist/packages/sdk-ui/src/common/icons/arrow-icon.d.ts +3 -0
- package/dist/packages/sdk-ui/src/common/icons/breadcrumbs-arrows-arrow-icon.d.ts +3 -0
- package/dist/packages/sdk-ui/src/common/icons/close-icon.d.ts +1 -0
- package/dist/packages/sdk-ui/src/common/icons/date-attribute-icon.d.ts +1 -0
- package/dist/packages/sdk-ui/src/common/icons/elasticube-icon.d.ts +1 -0
- package/dist/packages/sdk-ui/src/common/icons/numeric-attribute-icon.d.ts +1 -0
- package/dist/packages/sdk-ui/src/common/icons/plus-icon.d.ts +1 -0
- package/dist/packages/sdk-ui/src/common/icons/table-icon.d.ts +1 -0
- package/dist/packages/sdk-ui/src/common/icons/text-attribute-icon.d.ts +1 -0
- package/dist/packages/sdk-ui/src/dashboard/components/content-panel.d.ts +9 -1
- package/dist/packages/sdk-ui/src/dashboard/components/dashboard-container.d.ts +1 -1
- package/dist/packages/sdk-ui/src/dashboard/constants.d.ts +4 -0
- package/dist/packages/sdk-ui/src/dashboard/dashboard-helpers.d.ts +6 -7
- package/dist/packages/sdk-ui/src/dashboard/index.d.ts +1 -1
- package/dist/packages/sdk-ui/src/dashboard/types.d.ts +64 -31
- package/dist/packages/sdk-ui/src/data-browser/add-filter-popover/add-filter-data-browser.d.ts +16 -0
- package/dist/packages/sdk-ui/src/data-browser/add-filter-popover/add-filter-popover.d.ts +19 -0
- package/dist/packages/sdk-ui/src/data-browser/add-filter-popover/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/data-browser/add-filter-popover/popover-header.d.ts +12 -0
- package/dist/packages/sdk-ui/src/data-browser/data-source-selector/data-source-selector.d.ts +7 -0
- package/dist/packages/sdk-ui/src/data-browser/data-source-selector/use-data-source-selection.d.ts +5 -0
- package/dist/packages/sdk-ui/src/data-browser/dimensions-browser/dimensions-browser.d.ts +6 -0
- package/dist/packages/sdk-ui/src/data-browser/dimensions-browser/types.d.ts +82 -0
- package/dist/packages/sdk-ui/src/data-browser/search-input/search-input.d.ts +5 -0
- package/dist/packages/sdk-ui/src/filters/components/cascading-filter-tile/cascading-filter-tile.d.ts +2 -0
- package/dist/packages/sdk-ui/src/filters/components/cascading-filter-tile/cascading-level-filter.d.ts +3 -1
- package/dist/packages/sdk-ui/src/filters/components/common/checkbox.d.ts +1 -0
- package/dist/packages/sdk-ui/src/filters/components/criteria-filter-tile/types.d.ts +1 -0
- package/dist/packages/sdk-ui/src/filters/components/date-filter/relative-date-filter-tile/relative-date-filter.d.ts +5 -1
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/input.d.ts +2 -1
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/base.d.ts +10 -6
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/calendar-select/calendar-select.d.ts +1 -4
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/searchable-multi-select.d.ts +1 -4
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/searchable-single-select.d.ts +4 -8
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/selectable-section.d.ts +2 -1
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/filter-editor-container.d.ts +2 -1
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/filter-editor-context.d.ts +15 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/filter-editor-datetime.d.ts +2 -1
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/filter-editor-numerical.d.ts +2 -1
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/filter-editor-popover.d.ts +7 -2
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/filter-editor-textual.d.ts +2 -1
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/filter-editor.d.ts +7 -2
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/hooks/use-get-attribute-stats.d.ts +4 -1
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/common/granularities.d.ts +36 -6
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/not-supported-section.d.ts +6 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/utils.d.ts +5 -2
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/types.d.ts +7 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/utils.d.ts +1 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-tile-container.d.ts +8 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-tile.d.ts +5 -3
- package/dist/packages/sdk-ui/src/filters/components/filters-panel/constants.d.ts +6 -0
- package/dist/packages/sdk-ui/src/filters/components/filters-panel/filters-panel-header.d.ts +6 -0
- package/dist/packages/sdk-ui/src/filters/components/filters-panel/filters-panel.d.ts +5 -2
- package/dist/packages/sdk-ui/src/filters/components/filters-panel/hooks/use-existing-filter-editing.d.ts +19 -0
- package/dist/packages/sdk-ui/src/filters/components/filters-panel/hooks/use-new-filter-adding.d.ts +21 -0
- package/dist/packages/sdk-ui/src/filters/components/filters-panel/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/filters/components/filters-panel/types.d.ts +60 -0
- package/dist/packages/sdk-ui/src/filters/components/icons/index.d.ts +0 -1
- package/dist/packages/sdk-ui/src/filters/hooks/use-get-filter-members.d.ts +3 -3
- package/dist/packages/sdk-ui/src/index.d.ts +1 -1
- package/dist/packages/sdk-ui/src/line-chart.d.ts +2 -2
- package/dist/packages/sdk-ui/src/models/dashboard/dashboard-model-translator.d.ts +0 -2
- package/dist/packages/sdk-ui/src/models/dashboard/translate-dashboard-dto-utils.d.ts +0 -1
- package/dist/packages/sdk-ui/src/models/dashboard/translate-dashboard-utils.d.ts +1 -0
- package/dist/packages/sdk-ui/src/models/dashboard/types.d.ts +1 -0
- package/dist/packages/sdk-ui/src/models/hierarchy/types.d.ts +0 -1
- package/dist/packages/sdk-ui/src/models/widget/use-get-widget-model.d.ts +1 -1
- package/dist/packages/sdk-ui/src/pie-chart.d.ts +2 -2
- package/dist/packages/sdk-ui/src/plugins-provider/custom-plugins-provider.d.ts +4 -9
- package/dist/packages/sdk-ui/src/polar-chart.d.ts +2 -2
- package/dist/packages/sdk-ui/src/props.d.ts +2 -0
- package/dist/packages/sdk-ui/src/query-execution/index.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.d.ts +1 -1
- package/dist/packages/sdk-ui/src/scatter-chart.d.ts +1 -1
- package/dist/packages/sdk-ui/src/sisense-context/custom-sisense-context-provider.d.ts +2 -4
- package/dist/packages/sdk-ui/src/theme-provider/custom-theme-provider.d.ts +5 -8
- package/dist/packages/sdk-ui/src/theme-provider/use-theme-settings.d.ts +1 -1
- package/dist/packages/sdk-ui/src/theme-provider/utils.d.ts +5 -0
- package/dist/packages/sdk-ui/src/translation/resources/en.d.ts +10 -0
- package/dist/packages/sdk-ui/src/translation/resources/index.d.ts +20 -0
- package/dist/packages/sdk-ui/src/types.d.ts +167 -3
- package/dist/packages/sdk-ui/src/utils/data-sources-utils.d.ts +8 -0
- package/dist/packages/sdk-ui/src/utils/utility-types.d.ts +6 -2
- package/dist/packages/sdk-ui/src/widget-by-id/translate-dashboard-filters.d.ts +7 -0
- package/dist/packages/sdk-ui/src/widget-by-id/use-get-dashboard-model-and-widget-model.d.ts +1 -0
- package/dist/packages/sdk-ui/src/widgets/drilldown-widget.d.ts +1 -1
- package/dist/packages/sdk-ui/src/widgets/tabber-widget.d.ts +5 -0
- package/dist/{use-common-filters-BanIIIUW.js → use-common-filters-Bw15BNGn.js} +5013 -4956
- package/dist/{use-common-filters-BeKQ1bKU.cjs → use-common-filters-CqGo6jp3.cjs} +55 -55
- package/dist/{widget-composer-4bEKHitq.js → widget-composer-C5_iIuZN.js} +26 -26
- package/dist/{widget-composer-NDI4zssI.cjs → widget-composer-D5_iKTui.cjs} +1 -1
- package/package.json +9 -8
- /package/dist/packages/sdk-ui/src/{filters/components → common}/icons/search-icon.d.ts +0 -0
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
-
import { CompleteThemeSettings } from '../types';
|
|
2
|
+
import { CompleteThemeSettings, CustomContextProviderProps } from '../types';
|
|
3
3
|
/** @internal */
|
|
4
|
-
export type CustomThemeProviderProps = {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
};
|
|
9
|
-
error?: Error;
|
|
10
|
-
};
|
|
4
|
+
export type CustomThemeProviderProps = CustomContextProviderProps<{
|
|
5
|
+
themeSettings: CompleteThemeSettings;
|
|
6
|
+
skipTracking?: boolean;
|
|
7
|
+
}>;
|
|
11
8
|
/**
|
|
12
9
|
* Custom Theme Provider component that allows passing external theme context.
|
|
13
10
|
*
|
|
@@ -82,6 +82,9 @@ export declare const translation: {
|
|
|
82
82
|
dimensionNotFound: string;
|
|
83
83
|
attributeNotFound: string;
|
|
84
84
|
};
|
|
85
|
+
addFilterPopover: {
|
|
86
|
+
noDataSources: string;
|
|
87
|
+
};
|
|
85
88
|
};
|
|
86
89
|
errorBoxText: string;
|
|
87
90
|
chartNoData: string;
|
|
@@ -337,6 +340,13 @@ export declare const translation: {
|
|
|
337
340
|
after: string;
|
|
338
341
|
};
|
|
339
342
|
};
|
|
343
|
+
dataBrowser: {
|
|
344
|
+
addFilter: string;
|
|
345
|
+
selectField: string;
|
|
346
|
+
configureFilter: string;
|
|
347
|
+
noResults: string;
|
|
348
|
+
searchPlaceholder: string;
|
|
349
|
+
};
|
|
340
350
|
pivotTable: {
|
|
341
351
|
grandTotal: string;
|
|
342
352
|
subTotal: string;
|
|
@@ -92,6 +92,9 @@ export declare const resources: {
|
|
|
92
92
|
dimensionNotFound: string;
|
|
93
93
|
attributeNotFound: string;
|
|
94
94
|
};
|
|
95
|
+
addFilterPopover: {
|
|
96
|
+
noDataSources: string;
|
|
97
|
+
};
|
|
95
98
|
};
|
|
96
99
|
errorBoxText: string;
|
|
97
100
|
chartNoData: string;
|
|
@@ -347,6 +350,13 @@ export declare const resources: {
|
|
|
347
350
|
after: string;
|
|
348
351
|
};
|
|
349
352
|
};
|
|
353
|
+
dataBrowser: {
|
|
354
|
+
addFilter: string;
|
|
355
|
+
selectField: string;
|
|
356
|
+
configureFilter: string;
|
|
357
|
+
noResults: string;
|
|
358
|
+
searchPlaceholder: string;
|
|
359
|
+
};
|
|
350
360
|
pivotTable: {
|
|
351
361
|
grandTotal: string;
|
|
352
362
|
subTotal: string;
|
|
@@ -436,6 +446,9 @@ export declare const resources: {
|
|
|
436
446
|
dimensionNotFound: string;
|
|
437
447
|
attributeNotFound: string;
|
|
438
448
|
};
|
|
449
|
+
addFilterPopover: {
|
|
450
|
+
noDataSources: string;
|
|
451
|
+
};
|
|
439
452
|
};
|
|
440
453
|
errorBoxText: string;
|
|
441
454
|
chartNoData: string;
|
|
@@ -691,6 +704,13 @@ export declare const resources: {
|
|
|
691
704
|
after: string;
|
|
692
705
|
};
|
|
693
706
|
};
|
|
707
|
+
dataBrowser: {
|
|
708
|
+
addFilter: string;
|
|
709
|
+
selectField: string;
|
|
710
|
+
configureFilter: string;
|
|
711
|
+
noResults: string;
|
|
712
|
+
searchPlaceholder: string;
|
|
713
|
+
};
|
|
694
714
|
pivotTable: {
|
|
695
715
|
grandTotal: string;
|
|
696
716
|
subTotal: string;
|
|
@@ -70,12 +70,12 @@ export type SeriesLabels = {
|
|
|
70
70
|
/**
|
|
71
71
|
* Boolean flag that defines if value should be shown in series labels
|
|
72
72
|
* (if not specified, value will be shown by default)
|
|
73
|
-
|
|
73
|
+
*/
|
|
74
74
|
showValue?: boolean;
|
|
75
75
|
/**
|
|
76
76
|
* Boolean flag that defines if percentage should be shown in series labels
|
|
77
77
|
* (only applicable for subtypes that support percentage, like "stacked100")
|
|
78
|
-
|
|
78
|
+
*/
|
|
79
79
|
showPercentage?: boolean;
|
|
80
80
|
};
|
|
81
81
|
/**
|
|
@@ -905,6 +905,18 @@ export interface GeneralThemeSettings {
|
|
|
905
905
|
primaryButtonTextColor?: string;
|
|
906
906
|
/** Hover color for primary buttons */
|
|
907
907
|
primaryButtonHoverColor?: string;
|
|
908
|
+
/**
|
|
909
|
+
* Theme settings for popover
|
|
910
|
+
*
|
|
911
|
+
* @internal
|
|
912
|
+
*/
|
|
913
|
+
popover?: PopoverThemeSettings;
|
|
914
|
+
/**
|
|
915
|
+
* Theme settings for buttons
|
|
916
|
+
*
|
|
917
|
+
* @internal
|
|
918
|
+
*/
|
|
919
|
+
buttons?: ButtonsThemeSettings;
|
|
908
920
|
}
|
|
909
921
|
/** Possible sizes for spacing. */
|
|
910
922
|
export type SpaceSizes = 'None' | 'Large' | 'Medium' | 'Small';
|
|
@@ -965,6 +977,145 @@ export type FilterThemeSettings = {
|
|
|
965
977
|
backgroundColor?: string;
|
|
966
978
|
};
|
|
967
979
|
};
|
|
980
|
+
/**
|
|
981
|
+
* @internal
|
|
982
|
+
*/
|
|
983
|
+
export declare enum ElementStates {
|
|
984
|
+
DEFAULT = "default",
|
|
985
|
+
HOVER = "hover",
|
|
986
|
+
FOCUS = "focus"
|
|
987
|
+
}
|
|
988
|
+
/**
|
|
989
|
+
* Represents state-based color settings for an element.
|
|
990
|
+
*
|
|
991
|
+
* @internal
|
|
992
|
+
*/
|
|
993
|
+
export type ElementStateColors = {
|
|
994
|
+
/** Default color */
|
|
995
|
+
default: string;
|
|
996
|
+
/** Hover state color */
|
|
997
|
+
hover?: string;
|
|
998
|
+
/** Focus state color */
|
|
999
|
+
focus?: string;
|
|
1000
|
+
};
|
|
1001
|
+
/**
|
|
1002
|
+
* Theme settings for input elements.
|
|
1003
|
+
*
|
|
1004
|
+
* @internal
|
|
1005
|
+
*/
|
|
1006
|
+
export type InputThemeSettings = {
|
|
1007
|
+
/** Background color */
|
|
1008
|
+
backgroundColor?: string;
|
|
1009
|
+
/** Text color */
|
|
1010
|
+
textColor?: string;
|
|
1011
|
+
/** Border color */
|
|
1012
|
+
borderColor?: string | ElementStateColors;
|
|
1013
|
+
/** Corner radius */
|
|
1014
|
+
cornerRadius?: number;
|
|
1015
|
+
/** Theme settings for dropdown list */
|
|
1016
|
+
dropdownList?: {
|
|
1017
|
+
/** Background color */
|
|
1018
|
+
backgroundColor?: string;
|
|
1019
|
+
/** Text color */
|
|
1020
|
+
textColor?: string;
|
|
1021
|
+
/** Border color */
|
|
1022
|
+
borderColor?: string;
|
|
1023
|
+
/** Corner radius */
|
|
1024
|
+
cornerRadius?: number;
|
|
1025
|
+
/** Shadow */
|
|
1026
|
+
shadow?: string;
|
|
1027
|
+
/** Theme settings for dropdown list item */
|
|
1028
|
+
item?: {
|
|
1029
|
+
/** Background color */
|
|
1030
|
+
backgroundColor?: string | ElementStateColors;
|
|
1031
|
+
/** Text color */
|
|
1032
|
+
textColor?: string;
|
|
1033
|
+
};
|
|
1034
|
+
};
|
|
1035
|
+
/** Theme settings for datepicker */
|
|
1036
|
+
datepicker?: {
|
|
1037
|
+
/** Background color */
|
|
1038
|
+
backgroundColor?: string;
|
|
1039
|
+
/** Text color */
|
|
1040
|
+
textColor?: string;
|
|
1041
|
+
/** Corner radius */
|
|
1042
|
+
cornerRadius?: number;
|
|
1043
|
+
/** Shadow */
|
|
1044
|
+
shadow?: string;
|
|
1045
|
+
/** Theme settings for datepicker day item */
|
|
1046
|
+
item?: {
|
|
1047
|
+
/** Background color */
|
|
1048
|
+
backgroundColor?: string | ElementStateColors;
|
|
1049
|
+
/** Text color */
|
|
1050
|
+
textColor?: string | ElementStateColors;
|
|
1051
|
+
};
|
|
1052
|
+
};
|
|
1053
|
+
};
|
|
1054
|
+
/**
|
|
1055
|
+
* Theme settings for popover
|
|
1056
|
+
*
|
|
1057
|
+
* @internal
|
|
1058
|
+
*/
|
|
1059
|
+
export type PopoverThemeSettings = {
|
|
1060
|
+
/** Corner radius */
|
|
1061
|
+
cornerRadius?: number;
|
|
1062
|
+
/** Shadow */
|
|
1063
|
+
shadow?: string;
|
|
1064
|
+
/** Theme settings for popover header */
|
|
1065
|
+
header?: {
|
|
1066
|
+
/** Background color */
|
|
1067
|
+
backgroundColor?: string;
|
|
1068
|
+
/** Text color */
|
|
1069
|
+
textColor?: string;
|
|
1070
|
+
};
|
|
1071
|
+
/** Theme settings for popover footer */
|
|
1072
|
+
footer?: {
|
|
1073
|
+
/** Background color */
|
|
1074
|
+
backgroundColor?: string;
|
|
1075
|
+
/** Text color */
|
|
1076
|
+
textColor?: string;
|
|
1077
|
+
};
|
|
1078
|
+
/** Theme settings for popover content */
|
|
1079
|
+
content?: {
|
|
1080
|
+
/** Background color */
|
|
1081
|
+
backgroundColor?: string;
|
|
1082
|
+
/** Text color */
|
|
1083
|
+
textColor?: string;
|
|
1084
|
+
/** Theme settings for clickable list */
|
|
1085
|
+
clickableList?: {
|
|
1086
|
+
/** Theme settings for clickable list item */
|
|
1087
|
+
item?: {
|
|
1088
|
+
/** Text color */
|
|
1089
|
+
textColor?: string;
|
|
1090
|
+
/** Background color */
|
|
1091
|
+
backgroundColor?: string;
|
|
1092
|
+
/** Setting to be applied on hover */
|
|
1093
|
+
hover?: {
|
|
1094
|
+
/** Text color */
|
|
1095
|
+
textColor?: string;
|
|
1096
|
+
/** Background color */
|
|
1097
|
+
backgroundColor?: string;
|
|
1098
|
+
};
|
|
1099
|
+
};
|
|
1100
|
+
};
|
|
1101
|
+
};
|
|
1102
|
+
/** Theme settings for popover input */
|
|
1103
|
+
input?: InputThemeSettings;
|
|
1104
|
+
};
|
|
1105
|
+
/**
|
|
1106
|
+
* Theme settings for buttons
|
|
1107
|
+
*
|
|
1108
|
+
* @internal
|
|
1109
|
+
*/
|
|
1110
|
+
export type ButtonsThemeSettings = {
|
|
1111
|
+
/** Theme settings for cancel button */
|
|
1112
|
+
cancel?: {
|
|
1113
|
+
/** Background color */
|
|
1114
|
+
backgroundColor?: string | ElementStateColors;
|
|
1115
|
+
/** Text color */
|
|
1116
|
+
textColor?: string;
|
|
1117
|
+
};
|
|
1118
|
+
};
|
|
968
1119
|
/** Theme settings defining the look and feel of components. */
|
|
969
1120
|
export interface ThemeSettings {
|
|
970
1121
|
/** Chart theme settings */
|
|
@@ -1050,7 +1201,7 @@ export interface WidgetContainerStyleOptions {
|
|
|
1050
1201
|
* Configuration options that define functional style of the various elements of the Nlq Chart Widget
|
|
1051
1202
|
*
|
|
1052
1203
|
* @internal
|
|
1053
|
-
|
|
1204
|
+
*/
|
|
1054
1205
|
export type NlqChartWidgetStyleOptions = {
|
|
1055
1206
|
header?: {
|
|
1056
1207
|
hidden?: boolean;
|
|
@@ -1504,6 +1655,7 @@ export type CustomTranslationObject = {
|
|
|
1504
1655
|
};
|
|
1505
1656
|
/**
|
|
1506
1657
|
* Single Tabber Widget tab object without styling
|
|
1658
|
+
*
|
|
1507
1659
|
* @internal
|
|
1508
1660
|
*/
|
|
1509
1661
|
export type TabberTab = {
|
|
@@ -1512,6 +1664,7 @@ export type TabberTab = {
|
|
|
1512
1664
|
};
|
|
1513
1665
|
/**
|
|
1514
1666
|
* Tabber widget DTO style property
|
|
1667
|
+
*
|
|
1515
1668
|
* @internal
|
|
1516
1669
|
*/
|
|
1517
1670
|
export type TabberDtoStyle = TabberStyleProps & {
|
|
@@ -1519,6 +1672,7 @@ export type TabberDtoStyle = TabberStyleProps & {
|
|
|
1519
1672
|
};
|
|
1520
1673
|
/**
|
|
1521
1674
|
* Configuration options that define style of the various elements of the Tabber component.
|
|
1675
|
+
*
|
|
1522
1676
|
* @internal
|
|
1523
1677
|
*/
|
|
1524
1678
|
export type TabberStyleOptions = {
|
|
@@ -1539,14 +1693,24 @@ export type TabberStyleOptions = {
|
|
|
1539
1693
|
};
|
|
1540
1694
|
/**
|
|
1541
1695
|
* Configuration options that defined tabber look and feel, including tabs and active tab.
|
|
1696
|
+
*
|
|
1542
1697
|
* @internal
|
|
1543
1698
|
*/
|
|
1544
1699
|
export type TabberStyleProps = TabberStyleOptions & TabberConfig;
|
|
1545
1700
|
/**
|
|
1546
1701
|
* Tabber business logic configuration
|
|
1702
|
+
*
|
|
1547
1703
|
* @internal
|
|
1548
1704
|
*/
|
|
1549
1705
|
export type TabberConfig = {
|
|
1550
1706
|
tabs: TabberTab[];
|
|
1551
1707
|
activeTab: number;
|
|
1552
1708
|
};
|
|
1709
|
+
/** @internal */
|
|
1710
|
+
export type CustomContextProviderProps<P> = {
|
|
1711
|
+
context: P;
|
|
1712
|
+
error?: undefined;
|
|
1713
|
+
} | {
|
|
1714
|
+
context?: undefined;
|
|
1715
|
+
error: Error;
|
|
1716
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DataSource } from '@sisense/sdk-data';
|
|
2
|
+
export type DataSourceObject = {
|
|
3
|
+
title: string;
|
|
4
|
+
id: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const toDataSourceObject: (dataSource: DataSource) => DataSourceObject;
|
|
7
|
+
export declare const getDataSourceId: (dataSource: DataSource) => string;
|
|
8
|
+
export declare const getDataSourceTitle: (dataSource: DataSource) => string;
|
|
@@ -44,6 +44,10 @@ export type AnyObject = Record<string, any>;
|
|
|
44
44
|
* Empty object with no properties
|
|
45
45
|
*/
|
|
46
46
|
export type EmptyObject = Record<string, never>;
|
|
47
|
+
/**
|
|
48
|
+
* Any array
|
|
49
|
+
*/
|
|
50
|
+
export type AnyArray = any[];
|
|
47
51
|
/**
|
|
48
52
|
* Allows you to make a property of an object required.
|
|
49
53
|
*
|
|
@@ -60,9 +64,9 @@ export type WithRequiredProp<T, K extends keyof T> = Omit<T, K> & Required<Pick<
|
|
|
60
64
|
/**
|
|
61
65
|
* Universal generic state for hooks that fetch data from the REST API.
|
|
62
66
|
*/
|
|
63
|
-
export type RestApiHookState<DataKey extends string, SuccessDataType extends AnyObject> = RestApiHookSuccessState<DataKey, SuccessDataType> | RestApiHookErrorState<DataKey> | RestApiHookLoadingState<DataKey>;
|
|
67
|
+
export type RestApiHookState<DataKey extends string, SuccessDataType extends AnyObject | AnyArray> = RestApiHookSuccessState<DataKey, SuccessDataType> | RestApiHookErrorState<DataKey> | RestApiHookLoadingState<DataKey>;
|
|
64
68
|
/** Success state of the REST API hook */
|
|
65
|
-
export type RestApiHookSuccessState<DataKey extends string, SuccessDataType extends AnyObject> = {
|
|
69
|
+
export type RestApiHookSuccessState<DataKey extends string, SuccessDataType extends AnyObject | AnyArray> = {
|
|
66
70
|
isLoading: false;
|
|
67
71
|
isError: false;
|
|
68
72
|
isSuccess: true;
|
|
@@ -4785,6 +4785,13 @@ export declare function getDashboardFilters(dashboardFilters: Array<FilterDto |
|
|
|
4785
4785
|
sort?: "desc" | "asc" | undefined;
|
|
4786
4786
|
in?: {
|
|
4787
4787
|
selected?: {
|
|
4788
|
+
/**
|
|
4789
|
+
* Checks if a highlight filter is applicable to a widget.
|
|
4790
|
+
*
|
|
4791
|
+
* @param {FilterDto} filter - The filter to be checked.
|
|
4792
|
+
* @param {WidgetDto} widget - The widget that filters are applied to.
|
|
4793
|
+
* @returns {boolean} `true` if the filter is applicable; otherwise, `false`.
|
|
4794
|
+
*/
|
|
4788
4795
|
jaql: import("@sisense/sdk-data").FilterJaql;
|
|
4789
4796
|
} | undefined;
|
|
4790
4797
|
} | undefined;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { DashboardModel, WidgetModel } from '../models';
|
|
2
2
|
/**
|
|
3
3
|
* Custom hook for fetching a dashboard model and a widget model.
|
|
4
|
+
*
|
|
4
5
|
* @returns
|
|
5
6
|
*/
|
|
6
7
|
export declare function useGetDashboardModelAndWidgetModel({ widgetOid, dashboardOid, shouldLoadFullDashboard, }: {
|
|
@@ -29,7 +29,7 @@ import { DrilldownWidgetProps } from '../props';
|
|
|
29
29
|
*
|
|
30
30
|
* Additional drilldown examples:
|
|
31
31
|
*
|
|
32
|
-
* - [Detached Breadcrumbs](https://www.sisense.com/
|
|
32
|
+
* - [Detached Breadcrumbs](https://www.sisense.com/developers/playground/?example=use-cases%2Fdrilldown-detached-breadcrumbs)
|
|
33
33
|
*
|
|
34
34
|
* @param props - DrilldownWidget properties
|
|
35
35
|
* @returns DrilldownWidget wrapper component
|
|
@@ -1,30 +1,35 @@
|
|
|
1
1
|
import { TabberWidgetProps } from '../props';
|
|
2
2
|
/**
|
|
3
3
|
* Tabber widget tab size
|
|
4
|
+
*
|
|
4
5
|
* @group TabberWidget
|
|
5
6
|
* @internal
|
|
6
7
|
*/
|
|
7
8
|
export type TabSize = 'SMALL' | 'MEDIUM' | 'LARGE';
|
|
8
9
|
/**
|
|
9
10
|
* Tabber widget tab interval
|
|
11
|
+
*
|
|
10
12
|
* @group TabberWidget
|
|
11
13
|
* @internal
|
|
12
14
|
*/
|
|
13
15
|
export type TabInterval = 'SMALL' | 'MEDIUM' | 'LARGE';
|
|
14
16
|
/**
|
|
15
17
|
* Tabber widget tab alignment
|
|
18
|
+
*
|
|
16
19
|
* @group TabberWidget
|
|
17
20
|
* @internal
|
|
18
21
|
*/
|
|
19
22
|
export type TabAlignment = 'LEFT' | 'CENTER' | 'RIGHT';
|
|
20
23
|
/**
|
|
21
24
|
* Tabber widget tab corner radius
|
|
25
|
+
*
|
|
22
26
|
* @group TabberWidget
|
|
23
27
|
* @internal
|
|
24
28
|
*/
|
|
25
29
|
export type TabCornerRadius = 'SMALL' | 'MEDIUM' | 'LARGE' | 'NONE';
|
|
26
30
|
/**
|
|
27
31
|
* Visual representation of a Fusion's tabber widget
|
|
32
|
+
*
|
|
28
33
|
* @param styleOptions
|
|
29
34
|
* @param description
|
|
30
35
|
* @param props
|