@luzmo/analytics-components-kit 1.0.1-alpha.87 → 1.0.1-alpha.89

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 (203) hide show
  1. package/angular/components/display-settings-binning.component.ts +2 -2
  2. package/angular/components/display-settings-datetime.component.ts +2 -2
  3. package/angular/components/display-settings-grand-totals.component.ts +2 -2
  4. package/angular/components/display-settings-numeric.component.ts +2 -2
  5. package/angular/components/display-settings.component.ts +3 -3
  6. package/angular/components/draggable-data-item/index.ts +1 -0
  7. package/angular/components/draggable-data-item/types.ts +40 -0
  8. package/angular/components/draggable-data-item-level/index.ts +1 -0
  9. package/angular/components/draggable-data-item-level/types.ts +15 -0
  10. package/angular/components/draggable-data-item-level.component.ts +4 -10
  11. package/angular/components/draggable-data-item.component.ts +4 -10
  12. package/angular/components/droppable-slot/index.ts +1 -0
  13. package/angular/components/droppable-slot/types.ts +16 -0
  14. package/angular/components/droppable-slot.component.ts +5 -3
  15. package/angular/components/slot-menu/index.ts +1 -0
  16. package/angular/components/slot-menu/types.ts +31 -0
  17. package/angular/components/slot-menu-list.component.ts +2 -2
  18. package/angular/components/slot-menu.component.ts +3 -3
  19. package/angular/esm/components/display-settings-binning.component.d.ts +2 -1
  20. package/angular/esm/components/display-settings-datetime.component.d.ts +2 -2
  21. package/angular/esm/components/display-settings-grand-totals.component.d.ts +2 -1
  22. package/angular/esm/components/display-settings-numeric.component.d.ts +2 -1
  23. package/angular/esm/components/display-settings.component.d.ts +3 -3
  24. package/angular/esm/components/draggable-data-item/index.d.ts +1 -0
  25. package/angular/esm/components/draggable-data-item/index.js +1 -0
  26. package/angular/esm/components/draggable-data-item/types.d.ts +22 -0
  27. package/angular/esm/components/draggable-data-item/types.js +1 -0
  28. package/angular/esm/components/draggable-data-item-level/index.d.ts +1 -0
  29. package/angular/esm/components/draggable-data-item-level/index.js +1 -0
  30. package/angular/esm/components/draggable-data-item-level/types.d.ts +12 -0
  31. package/angular/esm/components/draggable-data-item-level/types.js +1 -0
  32. package/angular/esm/components/draggable-data-item-level.component.d.ts +9 -7
  33. package/angular/esm/components/draggable-data-item-level.component.js +2 -17
  34. package/angular/esm/components/draggable-data-item.component.d.ts +9 -7
  35. package/angular/esm/components/draggable-data-item.component.js +2 -17
  36. package/angular/esm/components/droppable-slot/index.d.ts +1 -0
  37. package/angular/esm/components/droppable-slot/index.js +1 -0
  38. package/angular/esm/components/droppable-slot/types.d.ts +9 -0
  39. package/angular/esm/components/droppable-slot/types.js +1 -0
  40. package/angular/esm/components/droppable-slot.component.d.ts +5 -4
  41. package/angular/esm/components/droppable-slot.component.js +7 -2
  42. package/angular/esm/components/slot-menu/index.d.ts +1 -0
  43. package/angular/esm/components/slot-menu/index.js +1 -0
  44. package/angular/esm/components/slot-menu/types.d.ts +25 -0
  45. package/angular/esm/components/slot-menu/types.js +1 -0
  46. package/angular/esm/components/slot-menu-list.component.d.ts +2 -1
  47. package/angular/esm/components/slot-menu.component.d.ts +3 -3
  48. package/angular/esm/types.d.ts +9 -3
  49. package/angular/tsconfig.json +3 -0
  50. package/angular/types.ts +24 -3
  51. package/angular/utils/base/base.d.ts +16 -0
  52. package/angular/utils/base/focus-visible.d.ts +29 -0
  53. package/angular/utils/base/focusable.d.ts +58 -0
  54. package/angular/utils/base/index.d.ts +4 -0
  55. package/angular/utils/base/sized-mixin.d.ts +17 -0
  56. package/angular/utils/color/color-palettes.d.ts +17 -0
  57. package/angular/utils/color/extrapolate-color.d.ts +1 -0
  58. package/angular/utils/data/load-draggable-items-for-datasets.d.ts +24 -0
  59. package/angular/utils/data-broker/index.d.ts +191 -0
  60. package/angular/utils/data-item-types/calculate-data-item-icon.d.ts +10 -0
  61. package/angular/utils/data-item-types/tests/calculate-data-item-icon.test.d.ts +1 -0
  62. package/angular/utils/drag/draggable.d.ts +13 -0
  63. package/angular/utils/filters/expressions.d.ts +15 -0
  64. package/angular/utils/filters/index.d.ts +1 -0
  65. package/angular/utils/formatter/calculate-duration.d.ts +2 -0
  66. package/angular/utils/formatter/decompose-numeric-format.d.ts +11 -0
  67. package/angular/utils/formatter/default-local-formats.d.ts +20 -0
  68. package/angular/utils/formatter/formats/cs.d.ts +20 -0
  69. package/angular/utils/formatter/formats/da.d.ts +20 -0
  70. package/angular/utils/formatter/formats/de.d.ts +21 -0
  71. package/angular/utils/formatter/formats/en-GB.d.ts +21 -0
  72. package/angular/utils/formatter/formats/en-US.d.ts +1 -0
  73. package/angular/utils/formatter/formats/en.d.ts +1 -0
  74. package/angular/utils/formatter/formats/es.d.ts +54 -0
  75. package/angular/utils/formatter/formats/fi.d.ts +20 -0
  76. package/angular/utils/formatter/formats/fr.d.ts +54 -0
  77. package/angular/utils/formatter/formats/he.d.ts +20 -0
  78. package/angular/utils/formatter/formats/hu.d.ts +20 -0
  79. package/angular/utils/formatter/formats/it.d.ts +54 -0
  80. package/angular/utils/formatter/formats/ja.d.ts +20 -0
  81. package/angular/utils/formatter/formats/ko.d.ts +20 -0
  82. package/angular/utils/formatter/formats/mk.d.ts +20 -0
  83. package/angular/utils/formatter/formats/nl.d.ts +21 -0
  84. package/angular/utils/formatter/formats/no.d.ts +21 -0
  85. package/angular/utils/formatter/formats/pl.d.ts +20 -0
  86. package/angular/utils/formatter/formats/pt.d.ts +20 -0
  87. package/angular/utils/formatter/formats/ru.d.ts +20 -0
  88. package/angular/utils/formatter/formats/sv.d.ts +20 -0
  89. package/angular/utils/formatter/formats/tr.d.ts +21 -0
  90. package/angular/utils/formatter/formats/zh-CN.d.ts +20 -0
  91. package/angular/utils/formatter/formats/zh-TW.d.ts +20 -0
  92. package/angular/utils/formatter/formatter.d.ts +9 -0
  93. package/angular/utils/formatter/localize.d.ts +3 -0
  94. package/angular/utils/formatter/smart-datetime-formats.const.d.ts +36 -0
  95. package/angular/utils/get-css-variable.d.ts +1 -0
  96. package/angular/utils/index.d.ts +7 -0
  97. package/angular/utils/localize/set-locale.d.ts +7 -0
  98. package/angular/utils/map-tile-providers/index.d.ts +93 -0
  99. package/angular/utils/store/slot-context.d.ts +4 -0
  100. package/angular/utils/store/slot-store.d.ts +39 -0
  101. package/angular/utils/switch-item/index.d.ts +14 -0
  102. package/angular/utils/themes/bliss.d.ts +43 -0
  103. package/angular/utils/themes/classic-dark.d.ts +34 -0
  104. package/angular/utils/themes/classic.d.ts +43 -0
  105. package/angular/utils/themes/default-dark.d.ts +46 -0
  106. package/angular/utils/themes/default.d.ts +46 -0
  107. package/angular/utils/themes/index.d.ts +3 -0
  108. package/angular/utils/themes/orion.d.ts +44 -0
  109. package/angular/utils/themes/pinky.d.ts +42 -0
  110. package/angular/utils/themes/radiant.d.ts +42 -0
  111. package/angular/utils/themes/royale.d.ts +36 -0
  112. package/angular/utils/themes/seasonal.d.ts +43 -0
  113. package/angular/utils/themes/urban.d.ts +44 -0
  114. package/angular/utils/themes/vivid.d.ts +42 -0
  115. package/angular/utils/time/formats.const.d.ts +4 -0
  116. package/angular/utils/time/periods.const.d.ts +15 -0
  117. package/angular/utils/transformations/convert-data-item-to-slot-content.d.ts +9 -0
  118. package/angular/utils/transformations/convert-datasets-to-draggable-items.d.ts +17 -0
  119. package/angular/utils/transformations/tests/convert-data-item-to-slot-content.test.d.ts +1 -0
  120. package/angular/utils/transformations/tests/convert-datasets-to-draggable-items.test.d.ts +1 -0
  121. package/angular/utils/types/type-check.d.ts +7 -0
  122. package/components/ai-chat-message-assistant/index.cjs +1 -1
  123. package/components/ai-chat-message-assistant/index.js +0 -1
  124. package/components/calculate-data-item-icon-DMDhKq_m.js +147 -0
  125. package/components/{calculate-data-item-icon-CX4VW9Km.cjs → calculate-data-item-icon-DtVGbet3.cjs} +1 -1
  126. package/components/dataset-selector-list/index.cjs +1 -1
  127. package/components/dataset-selector-list/index.js +1 -1
  128. package/components/display-settings/display-settings.d.ts +4 -2
  129. package/components/display-settings/index.cjs +1 -1
  130. package/components/display-settings/index.js +1 -1
  131. package/components/display-settings-binning/display-settings-binning.d.ts +2 -1
  132. package/components/display-settings-datetime/display-settings-datetime.d.ts +2 -1
  133. package/components/display-settings-datetime/index.cjs +1 -1
  134. package/components/display-settings-datetime/index.js +4 -4
  135. package/components/display-settings-grand-totals/display-settings-grand-totals.d.ts +2 -1
  136. package/components/display-settings-numeric/display-settings-numeric.d.ts +2 -1
  137. package/components/display-settings-numeric/index.cjs +10 -10
  138. package/components/display-settings-numeric/index.js +5 -5
  139. package/components/draggable-data-item/draggable-data-item.d.ts +5 -7
  140. package/components/draggable-data-item/index.cjs +16 -22
  141. package/components/draggable-data-item/index.d.ts +1 -0
  142. package/components/draggable-data-item/index.js +78 -85
  143. package/components/draggable-data-item/types.d.ts +22 -0
  144. package/components/draggable-data-item-level/draggable-data-item-level.d.ts +4 -6
  145. package/components/draggable-data-item-level/helpers/generate-preview.d.ts +9 -1
  146. package/components/draggable-data-item-level/index.cjs +13 -13
  147. package/components/draggable-data-item-level/index.js +84 -102
  148. package/components/draggable-data-item-level/types.d.ts +12 -0
  149. package/components/droppable-slot/droppable-slot.d.ts +4 -2
  150. package/components/droppable-slot/index.cjs +13 -13
  151. package/components/droppable-slot/index.d.ts +1 -0
  152. package/components/droppable-slot/index.js +198 -199
  153. package/components/droppable-slot/types.d.ts +9 -0
  154. package/components/{en-CtCctD2c.js → en-D3ihEGXg.js} +67 -67
  155. package/components/{en--a5SfjnM.cjs → en-DZcn_iz_.cjs} +1 -1
  156. package/components/{en-GB-CXVKFWyH.cjs → en-GB-TqvgIw9B.cjs} +1 -1
  157. package/components/{en-GB-CbNfyZMo.js → en-GB-ialeqj_z.js} +1 -1
  158. package/components/filter-data-item-picker/index.cjs +1 -1
  159. package/components/filter-data-item-picker/index.js +1 -1
  160. package/components/filter-item/index.cjs +1 -1
  161. package/components/filter-item/index.js +8 -8
  162. package/components/filter-value-picker-hierarchy/index.cjs +1 -1
  163. package/components/filter-value-picker-hierarchy/index.js +1 -1
  164. package/components/filter-value-picker-numeric/index.cjs +1 -1
  165. package/components/filter-value-picker-numeric/index.js +1 -1
  166. package/components/{get-css-variable-CuDaWSjr.cjs → get-css-variable-COd1d84B.cjs} +3 -3
  167. package/components/{get-css-variable-DEf4GhTH.js → get-css-variable-CdwF98oh.js} +31 -31
  168. package/components/grid/index.cjs +1 -7
  169. package/components/grid/index.js +0 -7
  170. package/components/{index-BUal0r_D.cjs → index-BekTY3Em.cjs} +1 -1
  171. package/components/index-CFL6gmIu.cjs +20 -0
  172. package/components/{index-3WsfvkZF.js → index-CqKpf0B8.js} +1 -1
  173. package/components/{index-BGb_wRRW.js → index-DNPULp4A.js} +177 -188
  174. package/components/index.cjs +1 -1
  175. package/components/index.js +26 -24
  176. package/components/slot-contents-picker/index.cjs +1 -1
  177. package/components/slot-contents-picker/index.js +2 -2
  178. package/components/slot-menu/index.cjs +1 -1
  179. package/components/slot-menu/index.d.ts +1 -0
  180. package/components/slot-menu/index.js +64 -69
  181. package/components/slot-menu/slot-menu.d.ts +7 -6
  182. package/components/slot-menu/types.d.ts +25 -0
  183. package/components/slot-menu-list/index.cjs +1 -1
  184. package/components/slot-menu-list/index.js +2 -2
  185. package/components/slot-menu-list/slot-menu-list.d.ts +2 -1
  186. package/components/utils.cjs +1 -1
  187. package/components/utils.js +129 -62
  188. package/custom-elements.json +123 -126
  189. package/item-definitions/slicer-filter/slicer-filter-options.config.d.ts +1 -1
  190. package/package.json +1 -1
  191. package/types.d.ts +9 -3
  192. package/utils/data/load-draggable-items-for-datasets.d.ts +24 -0
  193. package/utils/data-broker/index.d.ts +69 -66
  194. package/utils/data-item-types/calculate-data-item-icon.d.ts +8 -2
  195. package/utils/data-item-types/tests/calculate-data-item-icon.test.d.ts +1 -0
  196. package/utils/index.d.ts +2 -0
  197. package/utils/transformations/convert-data-item-to-slot-content.d.ts +9 -0
  198. package/utils/transformations/convert-datasets-to-draggable-items.d.ts +17 -0
  199. package/utils/transformations/tests/convert-data-item-to-slot-content.test.d.ts +1 -0
  200. package/utils/transformations/tests/convert-datasets-to-draggable-items.test.d.ts +1 -0
  201. package/components/calculate-data-item-icon-C8CbsMQf.js +0 -139
  202. package/components/index-D1Y5TRsH.cjs +0 -20
  203. package/utils/types/column.types.d.ts +0 -57
@@ -0,0 +1,21 @@
1
+ declare const _default: {
2
+ decimal: string;
3
+ thousands: string;
4
+ grouping: number[];
5
+ currency: string[];
6
+ dateTime: string;
7
+ date: string;
8
+ dateSeparator: string;
9
+ time: string;
10
+ periods: string[];
11
+ days: string[];
12
+ shortDays: string[];
13
+ months: string[];
14
+ shortMonths: string[];
15
+ levels: string[];
16
+ shortLevels: string[];
17
+ durationLongSuffix: string[];
18
+ durationShortSuffix: string[];
19
+ multi: string[];
20
+ };
21
+ export default _default;
@@ -0,0 +1,20 @@
1
+ declare const _default: {
2
+ decimal: string;
3
+ thousands: string;
4
+ grouping: number[];
5
+ currency: string[];
6
+ dateTime: string;
7
+ date: string;
8
+ dateSeparator: string;
9
+ time: string;
10
+ periods: string[];
11
+ days: string[];
12
+ shortDays: string[];
13
+ months: string[];
14
+ shortMonths: string[];
15
+ levels: string[];
16
+ durationLongSuffix: string[];
17
+ durationShortSuffix: string[];
18
+ multi: string[];
19
+ };
20
+ export default _default;
@@ -0,0 +1,20 @@
1
+ declare const _default: {
2
+ decimal: string;
3
+ thousands: string;
4
+ grouping: number[];
5
+ currency: string[];
6
+ dateTime: string;
7
+ date: string;
8
+ dateSeparator: string;
9
+ time: string;
10
+ periods: string[];
11
+ days: string[];
12
+ shortDays: string[];
13
+ months: string[];
14
+ shortMonths: string[];
15
+ levels: string[];
16
+ durationLongSuffix: string[];
17
+ durationShortSuffix: string[];
18
+ multi: string[];
19
+ };
20
+ export default _default;
@@ -0,0 +1,20 @@
1
+ declare const _default: {
2
+ decimal: string;
3
+ thousands: string;
4
+ grouping: number[];
5
+ currency: string[];
6
+ dateTime: string;
7
+ date: string;
8
+ dateSeparator: string;
9
+ time: string;
10
+ periods: string[];
11
+ days: string[];
12
+ shortDays: string[];
13
+ months: string[];
14
+ shortMonths: string[];
15
+ levels: string[];
16
+ durationLongSuffix: string[];
17
+ durationShortSuffix: string[];
18
+ multi: string[];
19
+ };
20
+ export default _default;
@@ -0,0 +1,20 @@
1
+ declare const _default: {
2
+ decimal: string;
3
+ thousands: string;
4
+ grouping: number[];
5
+ currency: string[];
6
+ dateTime: string;
7
+ date: string;
8
+ dateSeparator: string;
9
+ time: string;
10
+ periods: string[];
11
+ days: string[];
12
+ shortDays: string[];
13
+ months: string[];
14
+ shortMonths: string[];
15
+ levels: string[];
16
+ durationLongSuffix: string[];
17
+ durationShortSuffix: string[];
18
+ multi: string[];
19
+ };
20
+ export default _default;
@@ -0,0 +1,21 @@
1
+ declare const _default: {
2
+ decimal: string;
3
+ thousands: string;
4
+ grouping: number[];
5
+ currency: string[];
6
+ dateTime: string;
7
+ date: string;
8
+ dateSeparator: string;
9
+ time: string;
10
+ periods: string[];
11
+ days: string[];
12
+ shortDays: string[];
13
+ months: string[];
14
+ shortMonths: string[];
15
+ levels: string[];
16
+ shortLevels: string[];
17
+ durationLongSuffix: string[];
18
+ durationShortSuffix: string[];
19
+ multi: string[];
20
+ };
21
+ export default _default;
@@ -0,0 +1,20 @@
1
+ declare const _default: {
2
+ decimal: string;
3
+ thousands: string;
4
+ grouping: number[];
5
+ currency: string[];
6
+ dateTime: string;
7
+ date: string;
8
+ dateSeparator: string;
9
+ time: string;
10
+ periods: string[];
11
+ days: string[];
12
+ shortDays: string[];
13
+ months: string[];
14
+ shortMonths: string[];
15
+ levels: string[];
16
+ durationLongSuffix: string[];
17
+ durationShortSuffix: string[];
18
+ multi: string[];
19
+ };
20
+ export default _default;
@@ -0,0 +1,20 @@
1
+ declare const _default: {
2
+ decimal: string;
3
+ thousands: string;
4
+ grouping: number[];
5
+ currency: string[];
6
+ dateTime: string;
7
+ date: string;
8
+ dateSeparator: string;
9
+ time: string;
10
+ periods: string[];
11
+ days: string[];
12
+ shortDays: string[];
13
+ months: string[];
14
+ shortMonths: string[];
15
+ levels: string[];
16
+ durationLongSuffix: string[];
17
+ durationShortSuffix: string[];
18
+ multi: string[];
19
+ };
20
+ export default _default;
@@ -0,0 +1,9 @@
1
+ export declare function formatter(content: any, options?: {
2
+ level?: number;
3
+ locale?: string;
4
+ localFormats?: Record<string, any>;
5
+ multi?: boolean;
6
+ hideDuration?: boolean;
7
+ hideCurrency?: boolean;
8
+ trimZero?: boolean;
9
+ }): (value: number | string | Date) => string;
@@ -0,0 +1,3 @@
1
+ export declare function localize(item: Record<string, string> | string | number | boolean, locale?: string, options?: {
2
+ allowEmpty: boolean;
3
+ }): string;
@@ -0,0 +1,36 @@
1
+ import { FormatLocaleDefinition } from 'd3-format';
2
+ import { TimeLocaleDefinition } from 'd3-time-format';
3
+ export type DateFormat = {
4
+ key: string;
5
+ lev1: string;
6
+ lev2: string;
7
+ lev3: string;
8
+ lev4: string;
9
+ lev5: string;
10
+ monthType?: string;
11
+ longText?: boolean;
12
+ weekday?: boolean;
13
+ mmdd?: boolean | null;
14
+ separator?: '/' | '-' | '.' | '~';
15
+ };
16
+ export type TimeFormat = {
17
+ key: string;
18
+ ampm: boolean;
19
+ lev6: string;
20
+ lev7: string;
21
+ lev8: string;
22
+ lev9: string;
23
+ };
24
+ export declare const DEFAULT_DATETIME_FORMAT = "%d-%m-%Y";
25
+ export interface LocaleFormat extends TimeLocaleDefinition, FormatLocaleDefinition {
26
+ dateSeparator?: string;
27
+ durationLongSuffix?: string[];
28
+ durationShortSuffix?: string[];
29
+ levels?: string[];
30
+ multi?: string[];
31
+ shortLevels?: string[];
32
+ smartDateFormats?: DateFormat[];
33
+ smartTimeFormats?: TimeFormat[];
34
+ }
35
+ export declare const SMART_DATE_FORMATS: DateFormat[];
36
+ export declare const SMART_TIME_FORMATS: TimeFormat[];
@@ -0,0 +1 @@
1
+ export declare const getCssVariableValue: (element: HTMLElement, variable: string) => string;
@@ -0,0 +1,7 @@
1
+ export { loadDraggableItemsForDatasets } from './data/load-draggable-items-for-datasets';
2
+ export { decomposeNumericFormat } from './formatter/decompose-numeric-format';
3
+ export { formatter } from './formatter/formatter';
4
+ export { localize } from './formatter/localize';
5
+ export { switchItem } from './switch-item';
6
+ export * from './themes';
7
+ export { convertDatasetsToDraggableItems } from './transformations/convert-datasets-to-draggable-items';
@@ -0,0 +1,7 @@
1
+ declare const getLocale: (() => string) & {
2
+ _LIT_LOCALIZE_GET_LOCALE_?: never;
3
+ }, setLocale: ((newLocale: string) => Promise<void>) & {
4
+ _LIT_LOCALIZE_SET_LOCALE_?: never;
5
+ };
6
+ export { targetLocales } from './../../generated/locale-codes.js';
7
+ export { getLocale, setLocale };
@@ -0,0 +1,93 @@
1
+ export declare const mapVectorTileProviders: {
2
+ 'No Tiles': {
3
+ name: string;
4
+ id: string;
5
+ url: string;
6
+ attribution: string;
7
+ rasterName: string;
8
+ };
9
+ Basic: {
10
+ name: string;
11
+ id: string;
12
+ url: string;
13
+ attribution: string;
14
+ rasterName: string;
15
+ };
16
+ Bright: {
17
+ name: string;
18
+ id: string;
19
+ url: string;
20
+ attribution: string;
21
+ rasterName: string;
22
+ };
23
+ Dark: {
24
+ name: string;
25
+ id: string;
26
+ url: string;
27
+ attribution: string;
28
+ rasterName: string;
29
+ };
30
+ Fiord: {
31
+ name: string;
32
+ id: string;
33
+ url: string;
34
+ attribution: string;
35
+ rasterName: string;
36
+ };
37
+ Liberty: {
38
+ name: string;
39
+ id: string;
40
+ url: string;
41
+ attribution: string;
42
+ rasterName: string;
43
+ };
44
+ Pastel: {
45
+ name: string;
46
+ id: string;
47
+ url: string;
48
+ attribution: string;
49
+ rasterName: string;
50
+ };
51
+ Positron: {
52
+ name: string;
53
+ id: string;
54
+ url: string;
55
+ attribution: string;
56
+ rasterName: string;
57
+ };
58
+ Streets: {
59
+ name: string;
60
+ id: string;
61
+ url: string;
62
+ attribution: string;
63
+ rasterName: string;
64
+ };
65
+ Toner: {
66
+ name: string;
67
+ id: string;
68
+ url: string;
69
+ attribution: string;
70
+ rasterName: string;
71
+ };
72
+ Topographique: {
73
+ name: string;
74
+ id: string;
75
+ url: string;
76
+ attribution: string;
77
+ rasterName: string;
78
+ };
79
+ Voyager: {
80
+ name: string;
81
+ id: string;
82
+ url: string;
83
+ attribution: string;
84
+ rasterName: string;
85
+ };
86
+ '3D buildings': {
87
+ name: string;
88
+ id: string;
89
+ url: string;
90
+ attribution: string;
91
+ rasterName: string;
92
+ };
93
+ };
@@ -0,0 +1,4 @@
1
+ import type { SlotStore } from './slot-store';
2
+ export declare const slotContext: {
3
+ __context__: SlotStore;
4
+ };
@@ -0,0 +1,39 @@
1
+ import { GenericSlotContent, SlotName, VizItemSlots, VizItemType } from '@luzmo/dashboard-contents-types';
2
+ import { PeriodOverPeriodCondition } from '../../types';
3
+ export type SlotContent = GenericSlotContent;
4
+ export declare class SlotStore {
5
+ /**
6
+ * Holds all contents for this droppable slot.
7
+ */
8
+ readonly slotContents: import("signal-polyfill").Signal.State<GenericSlotContent[]>;
9
+ readonly slotsContents: import("signal-polyfill").Signal.State<VizItemSlots>;
10
+ readonly periodOverPeriodUiType: import("signal-polyfill").Signal.State<PeriodOverPeriodCondition | null>;
11
+ readonly linkedDataset: import("signal-polyfill").Signal.State<{
12
+ name: any;
13
+ id: string;
14
+ columns: any[];
15
+ }[]>;
16
+ private readonly _popEnabledChartTypes;
17
+ readonly activeSlotContents: import("signal-polyfill").Signal.Computed<GenericSlotContent>;
18
+ /**
19
+ * Index of the content currently selected / active in a slot menu.
20
+ */
21
+ readonly activeIndex: import("signal-polyfill").Signal.State<number>;
22
+ private isArrayColumnType;
23
+ setPeriodOverPeriodCondition(itemType: VizItemType, currentSlotContents: SlotContent): void;
24
+ private getUiConditionToApply;
25
+ private oldConditionalLogic;
26
+ /**
27
+ * Detects if there's a datetime column on Category or X-axis slots
28
+ */
29
+ private hasDatetimeColumnOnCategoryOrXAxis;
30
+ /** Replace the full list (e.g. after dropping or re-ordering). */
31
+ setContents(contents: SlotContent[], slotName?: SlotName): void;
32
+ setFullContents(fullSlotsContents: VizItemSlots): void;
33
+ /** Change which item is considered active (e.g. user clicked in list). */
34
+ updateActive(index: number): void;
35
+ /** Update / overwrite a single content entry. */
36
+ updateContent(content: SlotContent, index?: number): void;
37
+ /** Remove one content entry by index. */
38
+ removeContent(index: number): void;
39
+ }
@@ -0,0 +1,14 @@
1
+ export declare function switchItem(args: {
2
+ oldItemType: string;
3
+ newItemType: string;
4
+ slots?: any[];
5
+ options?: any;
6
+ customItemSlotsConfigs?: {
7
+ type: string;
8
+ slotsConfig: any;
9
+ }[];
10
+ }): {
11
+ type: string;
12
+ slots: any[];
13
+ options?: any;
14
+ };
@@ -0,0 +1,43 @@
1
+ export declare const blissTheme: {
2
+ type: string;
3
+ background: string;
4
+ itemsBackground: string;
5
+ boxShadow: {
6
+ size: string;
7
+ color: string;
8
+ };
9
+ title: {
10
+ align: string;
11
+ bold: boolean;
12
+ italic: boolean;
13
+ underline: boolean;
14
+ border: boolean;
15
+ };
16
+ font: {
17
+ fontFamily: string;
18
+ fontSize: number;
19
+ };
20
+ colors: string[];
21
+ borders: {
22
+ 'border-color': string;
23
+ 'border-style': string;
24
+ 'border-radius': string;
25
+ 'border-top-width': string;
26
+ 'border-left-width': string;
27
+ 'border-right-width': string;
28
+ 'border-bottom-width': string;
29
+ };
30
+ margins: number[];
31
+ mainColor: string;
32
+ axis: {};
33
+ legend: {
34
+ type: string;
35
+ };
36
+ tooltip: {};
37
+ itemSpecific: {
38
+ rounding: number;
39
+ padding: number;
40
+ };
41
+ name: string;
42
+ editModeBackground: string;
43
+ };
@@ -0,0 +1,34 @@
1
+ export declare const classicDarkTheme: {
2
+ type: string;
3
+ background: string;
4
+ itemsBackground: string;
5
+ boxShadow: {
6
+ size: string;
7
+ color: string;
8
+ };
9
+ title: {
10
+ align: string;
11
+ bold: boolean;
12
+ italic: boolean;
13
+ underline: boolean;
14
+ border: boolean;
15
+ };
16
+ font: {
17
+ fontFamily: string;
18
+ fontSize: number;
19
+ };
20
+ colors: string[];
21
+ borders: {};
22
+ margins: number[];
23
+ mainColor: string;
24
+ axis: {};
25
+ legend: {
26
+ type: string;
27
+ };
28
+ tooltip: {};
29
+ itemSpecific: {
30
+ rounding: number;
31
+ padding: number;
32
+ };
33
+ name: string;
34
+ };
@@ -0,0 +1,43 @@
1
+ export declare const classicTheme: {
2
+ type: string;
3
+ background: string;
4
+ itemsBackground: string;
5
+ boxShadow: {
6
+ size: string;
7
+ color: string;
8
+ };
9
+ title: {
10
+ align: string;
11
+ bold: boolean;
12
+ italic: boolean;
13
+ underline: boolean;
14
+ border: boolean;
15
+ };
16
+ font: {
17
+ fontFamily: string;
18
+ fontSize: number;
19
+ };
20
+ colors: string[];
21
+ borders: {
22
+ 'border-color': string;
23
+ 'border-style': string;
24
+ 'border-radius': string;
25
+ 'border-top-width': string;
26
+ 'border-left-width': string;
27
+ 'border-right-width': string;
28
+ 'border-bottom-width': string;
29
+ };
30
+ margins: number[];
31
+ mainColor: string;
32
+ axis: {};
33
+ legend: {
34
+ type: string;
35
+ };
36
+ tooltip: {};
37
+ itemSpecific: {
38
+ rounding: number;
39
+ padding: number;
40
+ };
41
+ name: string;
42
+ editModeBackground: string;
43
+ };
@@ -0,0 +1,46 @@
1
+ export declare const defaultDarkTheme: {
2
+ type: string;
3
+ background: string;
4
+ itemsBackground: string;
5
+ boxShadow: {
6
+ size: string;
7
+ color: string;
8
+ };
9
+ title: {
10
+ align: string;
11
+ bold: boolean;
12
+ italic: boolean;
13
+ underline: boolean;
14
+ border: boolean;
15
+ };
16
+ font: {
17
+ fontFamily: string;
18
+ 'font-style': string;
19
+ 'font-weight': number;
20
+ fontSize: number;
21
+ };
22
+ colors: string[];
23
+ borders: {
24
+ 'border-color': string;
25
+ 'border-style': string;
26
+ 'border-radius': string;
27
+ 'border-top-width': string;
28
+ 'border-left-width': string;
29
+ 'border-right-width': string;
30
+ 'border-bottom-width': string;
31
+ };
32
+ margins: number[];
33
+ mainColor: string;
34
+ axis: {};
35
+ legend: {
36
+ type: string;
37
+ };
38
+ tooltip: {
39
+ background: string;
40
+ };
41
+ itemSpecific: {
42
+ rounding: number;
43
+ padding: number;
44
+ };
45
+ name: string;
46
+ };
@@ -0,0 +1,46 @@
1
+ export declare const defaultTheme: {
2
+ type: string;
3
+ background: string;
4
+ itemsBackground: string;
5
+ boxShadow: {
6
+ size: string;
7
+ color: string;
8
+ };
9
+ title: {
10
+ align: string;
11
+ bold: boolean;
12
+ italic: boolean;
13
+ underline: boolean;
14
+ border: boolean;
15
+ };
16
+ font: {
17
+ fontFamily: string;
18
+ 'font-style': string;
19
+ 'font-weight': number;
20
+ fontSize: number;
21
+ };
22
+ colors: string[];
23
+ borders: {
24
+ 'border-color': string;
25
+ 'border-style': string;
26
+ 'border-radius': string;
27
+ 'border-top-width': string;
28
+ 'border-left-width': string;
29
+ 'border-right-width': string;
30
+ 'border-bottom-width': string;
31
+ };
32
+ margins: number[];
33
+ mainColor: string;
34
+ axis: {};
35
+ legend: {
36
+ type: string;
37
+ };
38
+ tooltip: {
39
+ background: string;
40
+ };
41
+ itemSpecific: {
42
+ rounding: number;
43
+ padding: number;
44
+ };
45
+ name: string;
46
+ };
@@ -0,0 +1,3 @@
1
+ export declare const systemThemeIds: string[];
2
+ export type SystemThemeId = 'default' | 'default_dark' | 'vivid' | 'seasonal' | 'orion' | 'royale' | 'urban' | 'pinky' | 'bliss' | 'radiant' | 'classic' | 'classic_dark';
3
+ export declare const getTheme: (themeId: SystemThemeId) => Promise<any>;
@@ -0,0 +1,44 @@
1
+ export declare const orionTheme: {
2
+ type: string;
3
+ background: string;
4
+ itemsBackground: string;
5
+ boxShadow: {
6
+ size: string;
7
+ color: string;
8
+ };
9
+ title: {
10
+ align: string;
11
+ bold: boolean;
12
+ italic: boolean;
13
+ underline: boolean;
14
+ border: boolean;
15
+ };
16
+ font: {
17
+ fontFamily: string;
18
+ fontSize: number;
19
+ };
20
+ colors: string[];
21
+ borders: {
22
+ 'border-color': string;
23
+ 'border-style': string;
24
+ 'border-radius': string;
25
+ 'border-top-width': string;
26
+ 'border-left-width': string;
27
+ 'border-right-width': string;
28
+ 'border-bottom-width': string;
29
+ };
30
+ margins: number[];
31
+ mainColor: string;
32
+ axis: {};
33
+ legend: {
34
+ type: string;
35
+ };
36
+ tooltip: {
37
+ background: string;
38
+ };
39
+ itemSpecific: {
40
+ rounding: number;
41
+ padding: number;
42
+ };
43
+ name: string;
44
+ };