@sisense/sdk-ui 0.15.0 → 0.16.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.
Files changed (54) hide show
  1. package/dist/ai.js +2 -2
  2. package/dist/api/types/dashboard-dto.d.ts +3 -2
  3. package/dist/chart-data-options/coloring/consts.d.ts +3 -0
  4. package/dist/chart-data-options/coloring/utils.d.ts +6 -0
  5. package/dist/chart-data-options/get-translated-data-options.d.ts +6 -0
  6. package/dist/chart-options-processor/chart-options-service.d.ts +2 -74
  7. package/dist/chart-options-processor/translations/axis-section.d.ts +3 -1
  8. package/dist/chart-options-processor/translations/funnel-series.d.ts +1 -2
  9. package/dist/chart-options-processor/translations/legend-section.d.ts +2 -1
  10. package/dist/chart-options-processor/translations/pie-series.d.ts +1 -2
  11. package/dist/chart-options-processor/translations/translations-to-highcharts.d.ts +6 -2
  12. package/dist/dashboard-widget/translate-panel-color-format.d.ts +2 -2
  13. package/dist/dashboard-widget/translate-widget-data-options.d.ts +4 -4
  14. package/dist/dashboard-widget/translate-widget-style-options.d.ts +1 -1
  15. package/dist/dashboard-widget/types.d.ts +20 -17
  16. package/dist/dashboard-widget/use-fetch-widget-dto-model.d.ts +7 -1
  17. package/dist/dashboard-widget/utils.d.ts +1 -1
  18. package/dist/filters/components/common/dropdown.d.ts +8 -0
  19. package/dist/filters/components/common/index.d.ts +2 -1
  20. package/dist/filters/components/common/radio.d.ts +7 -0
  21. package/dist/filters/components/criteria-filter-tile/criteria-filter-display.d.ts +2 -2
  22. package/dist/filters/components/criteria-filter-tile/criteria-filter-menu.d.ts +5 -3
  23. package/dist/filters/components/criteria-filter-tile/criteria-filter-operations.d.ts +17 -3
  24. package/dist/filters/components/criteria-filter-tile/criteria-filter-tile.d.ts +20 -3
  25. package/dist/filters/components/member-filter-tile/basic-member-filter-tile.d.ts +2 -0
  26. package/dist/filters/components/member-filter-tile/members-reducer.d.ts +9 -1
  27. package/dist/filters/components/member-filter-tile/pill-section.d.ts +0 -1
  28. package/dist/highcharts-memorized.d.ts +4 -3
  29. package/dist/index.d.ts +2 -1
  30. package/dist/index.js +5375 -4600
  31. package/dist/models/dashboard/types.d.ts +1 -1
  32. package/dist/models/widget/get-widget-model.d.ts +4 -0
  33. package/dist/models/widget/index.d.ts +3 -1
  34. package/dist/models/widget/translate-widget.d.ts +1 -1
  35. package/dist/models/widget/use-get-widget-model.d.ts +102 -0
  36. package/dist/models/widget/widget-model.d.ts +122 -0
  37. package/dist/query/execute-query.d.ts +2 -0
  38. package/dist/query-execution/csv-query-state-reducer.d.ts +2 -0
  39. package/dist/query-execution/index.d.ts +4 -3
  40. package/dist/query-execution/query-state-reducer.d.ts +1 -58
  41. package/dist/query-execution/types.d.ts +190 -0
  42. package/dist/query-execution/use-execute-csv-query.d.ts +82 -0
  43. package/dist/query-execution/use-execute-query-by-widget-id.d.ts +2 -37
  44. package/dist/query-execution/use-execute-query.d.ts +8 -33
  45. package/dist/table/hooks/use-table-data.d.ts +5 -1
  46. package/dist/table/table.d.ts +3 -0
  47. package/dist/{table-widget-7b20ecf7.js → table-widget-5f3b1d03.js} +21968 -21679
  48. package/dist/translation/resources/en.d.ts +6 -0
  49. package/dist/translation/resources/index.d.ts +12 -0
  50. package/dist/utils/utility-types.d.ts +4 -0
  51. package/dist/widgets/common/drilldown-breadcrumbs/drilldown-breadcrumbs-navigation.d.ts +8 -0
  52. package/dist/widgets/common/drilldown-breadcrumbs/styled-buttons.d.ts +11 -0
  53. package/package.json +15 -6
  54. package/dist/models/widget/types.d.ts +0 -6
@@ -25,6 +25,10 @@ export declare const translation: {
25
25
  identifierExpected: string;
26
26
  failedToFetch: string;
27
27
  };
28
+ widgetModel: {
29
+ tabularWidgetNotSupported: string;
30
+ onlyTabularWidgetsSupported: string;
31
+ };
28
32
  };
29
33
  errorBoxText: string;
30
34
  chartNoData: string;
@@ -48,6 +52,8 @@ export declare const translation: {
48
52
  endsWith: string;
49
53
  notEndsWith: string;
50
54
  like: string;
55
+ byMeasure: string;
56
+ by: string;
51
57
  };
52
58
  };
53
59
  export type TranslationDictionary = typeof translation;
@@ -29,6 +29,10 @@ export declare const resources: {
29
29
  identifierExpected: string;
30
30
  failedToFetch: string;
31
31
  };
32
+ widgetModel: {
33
+ tabularWidgetNotSupported: string;
34
+ onlyTabularWidgetsSupported: string;
35
+ };
32
36
  };
33
37
  errorBoxText: string;
34
38
  chartNoData: string;
@@ -52,6 +56,8 @@ export declare const resources: {
52
56
  endsWith: string;
53
57
  notEndsWith: string;
54
58
  like: string;
59
+ byMeasure: string;
60
+ by: string;
55
61
  };
56
62
  };
57
63
  uk: {
@@ -81,6 +87,10 @@ export declare const resources: {
81
87
  identifierExpected: string;
82
88
  failedToFetch: string;
83
89
  };
90
+ widgetModel: {
91
+ tabularWidgetNotSupported: string;
92
+ onlyTabularWidgetsSupported: string;
93
+ };
84
94
  };
85
95
  errorBoxText: string;
86
96
  chartNoData: string;
@@ -104,6 +114,8 @@ export declare const resources: {
104
114
  endsWith: string;
105
115
  notEndsWith: string;
106
116
  like: string;
117
+ byMeasure: string;
118
+ by: string;
107
119
  };
108
120
  };
109
121
  };
@@ -36,4 +36,8 @@ type AllKeys<T> = T extends any ? keyof T : never;
36
36
  type NonCommonKeys<T extends object> = Subtract<AllKeys<T>, CommonKeys<T>>;
37
37
  type Subtract<A, C> = A extends C ? never : A;
38
38
  type PickTypeOf<T, K extends string | number | symbol> = K extends AllKeys<T> ? PickType<T, K> : never;
39
+ /**
40
+ * Abstract object with any unknown values
41
+ */
42
+ export type AnyObject = Record<string, any>;
39
43
  export {};
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { Attribute } from '@sisense/sdk-data';
3
+ interface DrilldownBreadcrumbsNavigationProps {
4
+ currentDimension: Attribute;
5
+ children: JSX.Element;
6
+ }
7
+ export declare const DrilldownBreadcrumbsNavigation: React.FC<DrilldownBreadcrumbsNavigationProps>;
8
+ export {};
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ export declare const StyledPrevButton: import("@emotion/styled").StyledComponent<import("@mui/material/IconButton").IconButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
3
+ ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
4
+ }, "style" | "children" | "size" | "disabled" | "className" | "tabIndex" | "color" | "classes" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge"> & {
5
+ theme?: import("@emotion/react").Theme | undefined;
6
+ }, {}, {}>;
7
+ export declare const StyledNextButton: import("@emotion/styled").StyledComponent<import("@mui/material/IconButton").IconButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
8
+ ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
9
+ }, "style" | "children" | "size" | "disabled" | "className" | "tabIndex" | "color" | "classes" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge"> & {
10
+ theme?: import("@emotion/react").Theme | undefined;
11
+ }, {}, {}>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sisense/sdk-ui",
3
- "version": "0.15.0",
3
+ "version": "0.16.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -15,17 +15,24 @@
15
15
  "main": "./dist/index.js",
16
16
  "module": "./dist/index.js",
17
17
  "types": "./dist/index.d.ts",
18
+ "typesVersions": {
19
+ "*": {
20
+ "ai": [
21
+ "./dist/ai.d.ts"
22
+ ]
23
+ }
24
+ },
18
25
  "author": "Sisense",
19
26
  "license": "SEE LICENSE IN LICENSE.md",
20
27
  "dependencies": {
21
28
  "@emotion/react": "^11.10.5",
22
29
  "@emotion/styled": "^11.10.5",
23
30
  "@mui/material": "^5.11.6",
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",
31
+ "@sisense/sdk-common": "^0.16.0",
32
+ "@sisense/sdk-data": "^0.16.0",
33
+ "@sisense/sdk-query-client": "^0.16.0",
34
+ "@sisense/sdk-rest-client": "^0.16.0",
35
+ "@sisense/sdk-tracking": "^0.16.0",
29
36
  "@sisense/sisense-charts": "5.1.0-alpha-04052758.0",
30
37
  "@tanstack/react-query": "4.36.1",
31
38
  "classnames": "^2.3.2",
@@ -93,6 +100,7 @@
93
100
  "@types/react-plotly.js": "^2.6.0",
94
101
  "@vitejs/plugin-react-swc": "^3.3.0",
95
102
  "autoprefixer": "^10.4.14",
103
+ "blob-polyfill": "^7.0.20220408",
96
104
  "canvas": "^2.11.2",
97
105
  "eslint": "^8.40.0",
98
106
  "jsdom": "^22.1.0",
@@ -101,6 +109,7 @@
101
109
  "prettier": "2.8.4",
102
110
  "react": "18.2.0",
103
111
  "react-dom": "^18.2.0",
112
+ "react-json-view": "^1.21.3",
104
113
  "react-plotly.js": "^2.6.0",
105
114
  "sass": "1.58.3",
106
115
  "storybook": "7.0.24",
@@ -1,6 +0,0 @@
1
- import { DataSource } from '@sisense/sdk-data';
2
- export type WidgetModel = {
3
- oid: string;
4
- title: string;
5
- dataSource: DataSource;
6
- };