@luzmo/analytics-components-kit 1.0.1-alpha.86 → 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 (383) 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/ai-chat-messages-container/index.cjs +1 -1
  125. package/components/ai-chat-messages-container/index.js +2 -2
  126. package/components/ai-interaction-textarea/index.cjs +1 -1
  127. package/components/ai-interaction-textarea/index.js +1 -2
  128. package/components/area-chart-options.config-Bl8bhhOo.cjs +20 -0
  129. package/components/{area-chart-options.config-_J0sG4NF.js → area-chart-options.config-u8itidsi.js} +14 -26
  130. package/components/bar-chart-options.config-CePAqM83.cjs +20 -0
  131. package/components/{bar-chart-options.config-D1mb5TDl.js → bar-chart-options.config-DIirbAJ0.js} +21 -35
  132. package/components/box-plot-options.config-BVNrV2eD.cjs +20 -0
  133. package/components/{box-plot-options.config-xu_i6ms7.js → box-plot-options.config-BWROiguA.js} +52 -88
  134. package/components/{bubble-chart-options.config-BacgXkJ_.js → bubble-chart-options.config-4QD8VPhU.js} +9 -18
  135. package/components/bubble-chart-options.config-BDgOe3GQ.cjs +20 -0
  136. package/components/{bullet-chart-options.config-CDPpX1yc.js → bullet-chart-options.config-3bH7uekx.js} +1 -1
  137. package/components/{bullet-chart-options.config-DfS4Bwds.cjs → bullet-chart-options.config-tWb6Fio-.cjs} +1 -1
  138. package/components/calculate-data-item-icon-DMDhKq_m.js +147 -0
  139. package/components/{calculate-data-item-icon-DjW1_RI1.cjs → calculate-data-item-icon-DtVGbet3.cjs} +1 -1
  140. package/components/{choropleth-map-options.config-B_W9-rhe.js → choropleth-map-options.config-CMxx3ORp.js} +63 -84
  141. package/components/choropleth-map-options.config-CWJACFd0.cjs +20 -0
  142. package/components/circular-gauge-options.config-BMxgq3zH.cjs +20 -0
  143. package/components/{circular-gauge-options.config-DAIjz4Rl.js → circular-gauge-options.config-DhIKn44k.js} +23 -36
  144. package/components/{color-DuJ4-73S.js → color-B7m0j8lX.js} +941 -950
  145. package/components/color-Czp4Im5q.cjs +20 -0
  146. package/components/{color-range-utils-Bvo9sm5A.js → color-range-utils-BSfqtB3A.js} +31 -32
  147. package/components/color-range-utils-DYYR-iwx.cjs +20 -0
  148. package/components/column-chart-options.config-BV9R3ssH.cjs +20 -0
  149. package/components/{column-chart-options.config-B5SjBVdy.js → column-chart-options.config-D5-yR7iq.js} +27 -37
  150. package/components/conditional-number-options.config-Co099Qfm.cjs +20 -0
  151. package/components/{conditional-number-options.config-BCEpSK9J.js → conditional-number-options.config-DPYsdML5.js} +24 -40
  152. package/components/dataset-icon/index.cjs +1 -1
  153. package/components/dataset-icon/index.js +1 -2
  154. package/components/dataset-selector-list/index.cjs +1 -1
  155. package/components/dataset-selector-list/index.js +32 -35
  156. package/components/dataset-selector-row/index.cjs +9 -9
  157. package/components/dataset-selector-row/index.js +51 -53
  158. package/components/{date-comparison-filter-options.config-JA_yYpJa.js → date-comparison-filter-options.config-CSwGyuBg.js} +3 -6
  159. package/components/{date-comparison-filter-options.config-DAVncmi0.cjs → date-comparison-filter-options.config-QaoWaFUn.cjs} +1 -1
  160. package/components/{date-filter-options.config-DBRxlTWy.js → date-filter-options.config-BTVyHRkp.js} +3 -6
  161. package/components/{date-filter-options.config-CWPMtA18.cjs → date-filter-options.config-n-zhWaYa.cjs} +1 -1
  162. package/components/display-settings/display-settings.d.ts +4 -2
  163. package/components/display-settings/index.cjs +1 -1
  164. package/components/display-settings/index.js +1 -1
  165. package/components/display-settings-binning/display-settings-binning.d.ts +2 -1
  166. package/components/display-settings-binning/index.cjs +5 -5
  167. package/components/display-settings-binning/index.js +29 -30
  168. package/components/display-settings-datetime/display-settings-datetime.d.ts +2 -1
  169. package/components/display-settings-datetime/index.cjs +29 -29
  170. package/components/display-settings-datetime/index.js +112 -120
  171. package/components/display-settings-grand-totals/display-settings-grand-totals.d.ts +2 -1
  172. package/components/display-settings-grand-totals/index.cjs +4 -4
  173. package/components/display-settings-grand-totals/index.js +23 -24
  174. package/components/display-settings-numeric/display-settings-numeric.d.ts +2 -1
  175. package/components/display-settings-numeric/index.cjs +48 -48
  176. package/components/display-settings-numeric/index.js +192 -209
  177. package/components/display-settings-period-over-period/index.cjs +16 -16
  178. package/components/display-settings-period-over-period/index.js +91 -97
  179. package/components/{donut-chart-options.config-BulUEiaH.js → donut-chart-options.config-3ZqX8Cbb.js} +21 -37
  180. package/components/donut-chart-options.config-BQyPgnC9.cjs +20 -0
  181. package/components/draggable-data-item/draggable-data-item.d.ts +5 -7
  182. package/components/draggable-data-item/index.cjs +16 -22
  183. package/components/draggable-data-item/index.d.ts +1 -0
  184. package/components/draggable-data-item/index.js +79 -87
  185. package/components/draggable-data-item/types.d.ts +22 -0
  186. package/components/draggable-data-item-level/draggable-data-item-level.d.ts +4 -6
  187. package/components/draggable-data-item-level/helpers/generate-preview.d.ts +9 -1
  188. package/components/draggable-data-item-level/index.cjs +13 -13
  189. package/components/draggable-data-item-level/index.js +85 -106
  190. package/components/draggable-data-item-level/types.d.ts +12 -0
  191. package/components/{dropdown-filter-options.config-D9dvPypF.js → dropdown-filter-options.config-CGJTtgAX.js} +7 -10
  192. package/components/{dropdown-filter-options.config-DS-MORmq.cjs → dropdown-filter-options.config-DJvfCTk7.cjs} +1 -1
  193. package/components/droppable-slot/droppable-slot.d.ts +4 -2
  194. package/components/droppable-slot/index.cjs +20 -20
  195. package/components/droppable-slot/index.d.ts +1 -0
  196. package/components/droppable-slot/index.js +239 -254
  197. package/components/droppable-slot/types.d.ts +9 -0
  198. package/components/edit-item/index.cjs +9 -9
  199. package/components/edit-item/index.js +116 -119
  200. package/components/edit-option/index.cjs +1 -1
  201. package/components/edit-option/index.js +1 -1
  202. package/components/edit-option-action-button-group/index.cjs +8 -8
  203. package/components/edit-option-action-button-group/index.js +52 -53
  204. package/components/{edit-option-base-DIc7iC-b.js → edit-option-base-Bh29-Cak.js} +1 -1
  205. package/components/{edit-option-base-VhTih9T1.cjs → edit-option-base-tFr8Qg2B.cjs} +1 -1
  206. package/components/edit-option-color-palette-picker/index.cjs +1 -1
  207. package/components/edit-option-color-palette-picker/index.js +1 -1
  208. package/components/edit-option-color-picker/index.cjs +1 -1
  209. package/components/edit-option-color-picker/index.js +1 -1
  210. package/components/edit-option-color-range/index.cjs +19 -19
  211. package/components/edit-option-color-range/index.js +106 -117
  212. package/components/edit-option-multi-language-field/index.cjs +3 -3
  213. package/components/edit-option-multi-language-field/index.js +26 -27
  214. package/components/edit-option-number-field/index.cjs +1 -1
  215. package/components/edit-option-number-field/index.js +1 -1
  216. package/components/edit-option-picker/index.cjs +5 -5
  217. package/components/edit-option-picker/index.js +7 -7
  218. package/components/edit-option-position-picker/index.cjs +4 -4
  219. package/components/edit-option-position-picker/index.js +21 -25
  220. package/components/edit-option-positions-number-field/index.cjs +9 -9
  221. package/components/edit-option-positions-number-field/index.js +76 -81
  222. package/components/edit-option-radio-button-group/index.cjs +6 -6
  223. package/components/edit-option-radio-button-group/index.js +21 -22
  224. package/components/edit-option-slider/index.cjs +1 -1
  225. package/components/edit-option-slider/index.js +1 -1
  226. package/components/edit-option-switch/index.cjs +1 -1
  227. package/components/edit-option-switch/index.js +1 -1
  228. package/components/edit-option-text-field/index.cjs +2 -2
  229. package/components/edit-option-text-field/index.js +22 -23
  230. package/components/en-D3ihEGXg.js +1483 -0
  231. package/components/en-DZcn_iz_.cjs +20 -0
  232. package/components/{en-GB-DG6uS3sM.cjs → en-GB-TqvgIw9B.cjs} +1 -1
  233. package/components/{en-GB-CEHEs8F2.js → en-GB-ialeqj_z.js} +1 -1
  234. package/components/{evolution-number-options.config-DzkfeoIN.js → evolution-number-options.config-BIPO_4n3.js} +11 -14
  235. package/components/{evolution-number-options.config-BgIZY4gQ.cjs → evolution-number-options.config-Bc9eKYnn.cjs} +1 -1
  236. package/components/{extrapolate-color-0j_AeYkz.cjs → extrapolate-color-C0n1UDs-.cjs} +1 -1
  237. package/components/{extrapolate-color-CC9CURf6.js → extrapolate-color-v1PimdQr.js} +1 -1
  238. package/components/filter-data-item-picker/index.cjs +7 -7
  239. package/components/filter-data-item-picker/index.js +85 -86
  240. package/components/filter-expression-picker/index.cjs +1 -1
  241. package/components/filter-expression-picker/index.js +1 -1
  242. package/components/filter-item/index.cjs +6 -6
  243. package/components/filter-item/index.js +109 -119
  244. package/components/filter-value-picker/index.cjs +2 -2
  245. package/components/filter-value-picker/index.js +34 -36
  246. package/components/filter-value-picker-datetime/index.cjs +8 -8
  247. package/components/filter-value-picker-datetime/index.js +56 -71
  248. package/components/filter-value-picker-hierarchy/index.cjs +12 -12
  249. package/components/filter-value-picker-hierarchy/index.js +113 -124
  250. package/components/filter-value-picker-numeric/index.cjs +8 -8
  251. package/components/filter-value-picker-numeric/index.js +101 -110
  252. package/components/{focusable-DCIFkpiW.js → focusable-BS2pbY7w.js} +24 -26
  253. package/components/focusable-QLh-LlNt.cjs +20 -0
  254. package/components/{funnel-chart-options.config-C_VjTOvD.js → funnel-chart-options.config-CrJy2U7_.js} +5 -20
  255. package/components/funnel-chart-options.config-DrP4AFgk.cjs +20 -0
  256. package/components/get-css-variable-COd1d84B.cjs +24 -0
  257. package/components/{get-css-variable-YlLiVgo8.js → get-css-variable-CdwF98oh.js} +35 -35
  258. package/components/grid/index.cjs +43 -49
  259. package/components/grid/index.js +2610 -1878
  260. package/components/heat-map-options.config-CIHnPdYE.cjs +20 -0
  261. package/components/{heat-map-options.config-BnLWe8jS.js → heat-map-options.config-CmL87j1j.js} +35 -41
  262. package/components/{heat-table-options.config-CUsDdgUr.js → heat-table-options.config-BrCYAgYD.js} +60 -88
  263. package/components/heat-table-options.config-DTlZRc_i.cjs +20 -0
  264. package/components/helpers-9I0oLoUB.cjs +20 -0
  265. package/components/helpers-bR8Ibjqh.js +79 -0
  266. package/components/{hexbin-map-options.config-F-7uCqxb.js → hexbin-map-options.config-BguV1w8q.js} +20 -38
  267. package/components/hexbin-map-options.config-CKnn3VAB.cjs +20 -0
  268. package/components/{index-BPNsFiyq.cjs → index-BNAmjOkm.cjs} +4 -4
  269. package/components/index-BekTY3Em.cjs +121 -0
  270. package/components/index-CFL6gmIu.cjs +20 -0
  271. package/components/{index-Do7O9azB.js → index-CqKpf0B8.js} +112 -123
  272. package/components/index-DNPULp4A.js +1755 -0
  273. package/components/{index-PMDgRSzR.js → index-DdyZ2g5L.js} +94 -104
  274. package/components/index-DvkzMbLt.cjs +249 -0
  275. package/components/{index-CdIUfo-L.js → index-haa7WNrl.js} +453 -481
  276. package/components/index.cjs +1 -1
  277. package/components/index.js +28 -26
  278. package/components/item-options-configs.cjs +1 -1
  279. package/components/item-options-configs.js +37 -37
  280. package/components/{line-chart-options.config-DB3IsXXr.js → line-chart-options.config-BhirTGqD.js} +13 -28
  281. package/components/line-chart-options.config-Cqwou5u6.cjs +20 -0
  282. package/components/{localize-r7ALOUy_.cjs → localize-C4zNlrwK.cjs} +1 -1
  283. package/components/{localize-BX7q0S0M.js → localize-CcDpq940.js} +10 -10
  284. package/components/{marker-map-options.config-DPJ955tt.js → marker-map-options.config-Bx17jmiq.js} +1 -1
  285. package/components/{marker-map-options.config-_FYZzRwA.cjs → marker-map-options.config-CvhCylSC.cjs} +1 -1
  286. package/components/{pivot-table-options.config-DNK_AIG7.js → pivot-table-options.config-CFc7y0IT.js} +15 -24
  287. package/components/pivot-table-options.config-uZDAertf.cjs +20 -0
  288. package/components/{pyramid-chart-options.config-CcVMatYx.js → pyramid-chart-options.config-2Waxb11l.js} +29 -43
  289. package/components/pyramid-chart-options.config-DoGfEvzU.cjs +20 -0
  290. package/components/{radar-chart-options.config-CUZn_3Fd.js → radar-chart-options.config-CPN5fOl8.js} +11 -23
  291. package/components/radar-chart-options.config-CtNUMN1l.cjs +20 -0
  292. package/components/{regular-table-options.config-BoLZsBry.js → regular-table-options.config-CFKCJQK1.js} +17 -23
  293. package/components/{regular-table-options.config-DTx3RTnS.cjs → regular-table-options.config-YRuoijIk.cjs} +1 -1
  294. package/components/route-map-options.config-CVTk5RVL.cjs +20 -0
  295. package/components/{route-map-options.config-CN86T7c0.js → route-map-options.config-CyolTJfK.js} +87 -109
  296. package/components/{sankey-diagram-options.config-RFB83YLZ.cjs → sankey-diagram-options.config-D7OSvSqm.cjs} +1 -1
  297. package/components/{sankey-diagram-options.config-tVLKy_Zn.js → sankey-diagram-options.config-Ldjk84ro.js} +7 -10
  298. package/components/scatter-plot-options.config-5gN7pMTm.cjs +20 -0
  299. package/components/{scatter-plot-options.config-Corlzno1.js → scatter-plot-options.config-CfxEfkQ1.js} +56 -86
  300. package/components/{search-filter-options.config-BE3JhR-F.js → search-filter-options.config-C0syQmP4.js} +3 -6
  301. package/components/{search-filter-options.config-BCaDlYqZ.cjs → search-filter-options.config-Oqco9BKj.cjs} +1 -1
  302. package/components/{set-locale-B-Tz2sdI.js → set-locale-hKTMz37h.js} +7 -9
  303. package/components/slicer-filter-options.config-CrusP6a0.cjs +20 -0
  304. package/components/{slicer-filter-options.config-3JZZcw5C.js → slicer-filter-options.config-DmOe3440.js} +9 -18
  305. package/components/{slider-filter-options.config-DH4SS8wH.js → slider-filter-options.config-B1M8RcDs.js} +1 -1
  306. package/components/{slider-filter-options.config-_8Z2zKmU.cjs → slider-filter-options.config-k45I-t6G.cjs} +1 -1
  307. package/components/slot-contents-picker/index.cjs +33 -33
  308. package/components/slot-contents-picker/index.js +194 -205
  309. package/components/slot-menu/index.cjs +12 -12
  310. package/components/slot-menu/index.d.ts +1 -0
  311. package/components/slot-menu/index.js +174 -192
  312. package/components/slot-menu/slot-menu.d.ts +7 -6
  313. package/components/slot-menu/types.d.ts +25 -0
  314. package/components/slot-menu-list/index.cjs +3 -3
  315. package/components/slot-menu-list/index.js +97 -103
  316. package/components/slot-menu-list/slot-menu-list.d.ts +2 -1
  317. package/components/speedometer-chart-options.config-B4ceg_qI.cjs +20 -0
  318. package/components/{speedometer-chart-options.config-SL581yOa.js → speedometer-chart-options.config-CzOmuEF8.js} +31 -53
  319. package/components/spike-map-options.config-BkkDqb4g.cjs +20 -0
  320. package/components/{spike-map-options.config-C5KewecZ.js → spike-map-options.config-Cbt1YUw6.js} +91 -122
  321. package/components/{sunburst-chart-options.config-AbNjWS6t.cjs → sunburst-chart-options.config-Yrxc2i57.cjs} +1 -1
  322. package/components/{sunburst-chart-options.config-CNauGQJv.js → sunburst-chart-options.config-_dyLQxPJ.js} +9 -20
  323. package/components/{symbol-map-options.config-DdDA4aa7.js → symbol-map-options.config-BORL1NSU.js} +11 -20
  324. package/components/symbol-map-options.config-NpBKm64d.cjs +20 -0
  325. package/components/{treemap-chart-options.config-D5AJaF_u.js → treemap-chart-options.config-B9i9qIm_.js} +20 -37
  326. package/components/treemap-chart-options.config-x4J54WSw.cjs +20 -0
  327. package/components/utils.cjs +1 -1
  328. package/components/utils.js +131 -65
  329. package/components/{video-options.config-CGsDTwHc.cjs → video-options.config-B0asgYt8.cjs} +1 -1
  330. package/components/{video-options.config-Dk36zJ1B.js → video-options.config-UX-9MDfS.js} +7 -10
  331. package/components/{wordcloud-chart-options.config-vGfCW8kE.cjs → wordcloud-chart-options.config-BKtJT8Va.cjs} +1 -1
  332. package/components/{wordcloud-chart-options.config-w2NUIWVA.js → wordcloud-chart-options.config-BoB_KuhA.js} +4 -7
  333. package/custom-elements.json +143 -126
  334. package/item-definitions/slicer-filter/slicer-filter-options.config.d.ts +1 -1
  335. package/package.json +3 -3
  336. package/types.d.ts +9 -3
  337. package/utils/data/load-draggable-items-for-datasets.d.ts +24 -0
  338. package/utils/data-broker/index.d.ts +69 -66
  339. package/utils/data-item-types/calculate-data-item-icon.d.ts +8 -2
  340. package/utils/data-item-types/tests/calculate-data-item-icon.test.d.ts +1 -0
  341. package/utils/index.d.ts +2 -0
  342. package/utils/transformations/convert-data-item-to-slot-content.d.ts +9 -0
  343. package/utils/transformations/convert-datasets-to-draggable-items.d.ts +17 -0
  344. package/utils/transformations/tests/convert-data-item-to-slot-content.test.d.ts +1 -0
  345. package/utils/transformations/tests/convert-datasets-to-draggable-items.test.d.ts +1 -0
  346. package/components/area-chart-options.config-C7sMAHco.cjs +0 -20
  347. package/components/bar-chart-options.config-DcxEkOT5.cjs +0 -20
  348. package/components/box-plot-options.config-SrrbDEYW.cjs +0 -20
  349. package/components/bubble-chart-options.config-Ihn6eVQI.cjs +0 -20
  350. package/components/calculate-data-item-icon-DZDqb3xu.js +0 -139
  351. package/components/choropleth-map-options.config-ZW8yoZH2.cjs +0 -20
  352. package/components/circular-gauge-options.config-msZ4mfpN.cjs +0 -20
  353. package/components/color-B6LaL8qz.cjs +0 -20
  354. package/components/color-range-utils-C5yXW7ZC.cjs +0 -20
  355. package/components/column-chart-options.config-BjDvA7i9.cjs +0 -20
  356. package/components/conditional-number-options.config-DgzUo0xi.cjs +0 -20
  357. package/components/donut-chart-options.config-tNpqBZfR.cjs +0 -20
  358. package/components/en-BKBhKBXY.cjs +0 -20
  359. package/components/en-BOTjhwEc.js +0 -1488
  360. package/components/focusable-B3E_hQmm.cjs +0 -20
  361. package/components/funnel-chart-options.config-D7H7gFcx.cjs +0 -20
  362. package/components/get-css-variable-DLiZYZEi.cjs +0 -24
  363. package/components/heat-map-options.config-DVH-Bb5-.cjs +0 -20
  364. package/components/heat-table-options.config-B12JEYnp.cjs +0 -20
  365. package/components/helpers-DXQwEH1P.cjs +0 -20
  366. package/components/helpers-v1bPALRP.js +0 -91
  367. package/components/hexbin-map-options.config-DZERRhM8.cjs +0 -20
  368. package/components/index-BPN3bG9X.js +0 -1733
  369. package/components/index-CQ9ck-BO.cjs +0 -249
  370. package/components/index-CXn67vdn.cjs +0 -121
  371. package/components/index-cfj52IbK.cjs +0 -20
  372. package/components/line-chart-options.config-DSugoe0t.cjs +0 -20
  373. package/components/pivot-table-options.config-BiJXKSFR.cjs +0 -20
  374. package/components/pyramid-chart-options.config-C4zbFS26.cjs +0 -20
  375. package/components/radar-chart-options.config-EqQu6PTh.cjs +0 -20
  376. package/components/route-map-options.config-D7NJePTu.cjs +0 -20
  377. package/components/scatter-plot-options.config-CFfGJXsV.cjs +0 -20
  378. package/components/slicer-filter-options.config-DNI-XevE.cjs +0 -20
  379. package/components/speedometer-chart-options.config-BX9LTQBH.cjs +0 -20
  380. package/components/spike-map-options.config-DoBFXPmN.cjs +0 -20
  381. package/components/symbol-map-options.config-m-lwLTtu.cjs +0 -20
  382. package/components/treemap-chart-options.config-C0Q9aQ1Z.cjs +0 -20
  383. package/utils/types/column.types.d.ts +0 -57
@@ -6,29 +6,23 @@ export class DraggableDataItemComponent {
6
6
  disabled;
7
7
  hideSublevels;
8
8
  hideTypeIcon;
9
- secondaryIconType;
10
- label;
11
- description;
12
9
  data;
13
10
  size;
14
11
  dataItemDropped = new EventEmitter();
15
12
  dataItemDragStarted = new EventEmitter();
16
13
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.3", ngImport: i0, type: DraggableDataItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
17
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.2.3", type: DraggableDataItemComponent, isStandalone: true, selector: "luzmo-draggable-data-item", inputs: { variant: "variant", language: "language", disabled: "disabled", hideSublevels: "hideSublevels", hideTypeIcon: "hideTypeIcon", secondaryIconType: "secondaryIconType", label: "label", description: "description", data: "data", size: "size" }, outputs: { dataItemDropped: "dataItemDropped", dataItemDragStarted: "dataItemDragStarted" }, ngImport: i0, template: `<luzmo-draggable-data-item
14
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.2.3", type: DraggableDataItemComponent, isStandalone: true, selector: "luzmo-draggable-data-item", inputs: { variant: "variant", language: "language", disabled: "disabled", hideSublevels: "hideSublevels", hideTypeIcon: "hideTypeIcon", data: "data", size: "size" }, outputs: { dataItemDropped: "dataItemDropped", dataItemDragStarted: "dataItemDragStarted" }, ngImport: i0, template: `<luzmo-draggable-data-item
18
15
  [attr.variant]="variant"
19
16
  [attr.language]="language"
20
17
  [attr.disabled]="disabled"
21
18
  [attr.hide-sublevels]="hideSublevels"
22
19
  [attr.hide-type-icon]="hideTypeIcon"
23
- [attr.secondary-icon-type]="secondaryIconType"
24
- [attr.label]="label"
25
- [attr.description]="description"
26
20
  [attr.data]="data"
27
21
  [attr.size]="size"
28
22
  (data-item-dropped)="dataItemDropped.emit($event)"
29
23
  (data-item-drag-started)="dataItemDragStarted.emit($event)">
30
24
  <ng-content></ng-content>
31
- </luzmo-draggable-data-item>`, isInline: true, dependencies: [{ kind: "component", type: DraggableDataItemComponent, selector: "luzmo-draggable-data-item", inputs: ["variant", "language", "disabled", "hideSublevels", "hideTypeIcon", "secondaryIconType", "label", "description", "data", "size"], outputs: ["dataItemDropped", "dataItemDragStarted"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
25
+ </luzmo-draggable-data-item>`, isInline: true, dependencies: [{ kind: "component", type: DraggableDataItemComponent, selector: "luzmo-draggable-data-item", inputs: ["variant", "language", "disabled", "hideSublevels", "hideTypeIcon", "data", "size"], outputs: ["dataItemDropped", "dataItemDragStarted"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
32
26
  }
33
27
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.3", ngImport: i0, type: DraggableDataItemComponent, decorators: [{
34
28
  type: Component,
@@ -42,9 +36,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.3", ngImpor
42
36
  [attr.disabled]="disabled"
43
37
  [attr.hide-sublevels]="hideSublevels"
44
38
  [attr.hide-type-icon]="hideTypeIcon"
45
- [attr.secondary-icon-type]="secondaryIconType"
46
- [attr.label]="label"
47
- [attr.description]="description"
48
39
  [attr.data]="data"
49
40
  [attr.size]="size"
50
41
  (data-item-dropped)="dataItemDropped.emit($event)"
@@ -62,12 +53,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.3", ngImpor
62
53
  type: Input
63
54
  }], hideTypeIcon: [{
64
55
  type: Input
65
- }], secondaryIconType: [{
66
- type: Input
67
- }], label: [{
68
- type: Input
69
- }], description: [{
70
- type: Input
71
56
  }], data: [{
72
57
  type: Input
73
58
  }], size: [{
@@ -0,0 +1 @@
1
+ export * from './types';
@@ -0,0 +1 @@
1
+ export * from './types';
@@ -0,0 +1,9 @@
1
+ import { ColumnType, FormulaType, GenericSlotContent, SlotConfig } from '@luzmo/dashboard-contents-types';
2
+ export type DroppableSlotConfiguration = Omit<SlotConfig, 'acceptableColumnTypes' | 'canAcceptMultipleColumns'> & {
3
+ acceptableDataItemTypes?: (ColumnType | FormulaType)[];
4
+ canAcceptMultipleDataItems?: boolean;
5
+ };
6
+ export interface SlotContentsChangedEventDetail {
7
+ slotContents: GenericSlotContent[];
8
+ linkedDatasetsIds: string[];
9
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -1,14 +1,15 @@
1
1
  import { EventEmitter } from '@angular/core';
2
- import type { VizItemType, SlotName, VizItemSlots, Placement } from '../types';
2
+ import type { VizItemType, SlotName, DroppableSlotConfiguration, VizItemSlots, Placement, SlotContentsChangedEventDetail } from '../types';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class DroppableSlotComponent {
5
5
  itemType?: VizItemType;
6
6
  slotName?: SlotName;
7
- slotConfiguration?: any;
7
+ slotConfiguration?: DroppableSlotConfiguration;
8
8
  slotsContents?: VizItemSlots;
9
9
  label?: string;
10
10
  language?: string;
11
11
  dragBoundary?: string;
12
+ rotate?: boolean;
12
13
  apiUrl?: string;
13
14
  authKey?: string;
14
15
  authToken?: string;
@@ -20,7 +21,7 @@ export declare class DroppableSlotComponent {
20
21
  slotMenuInactive: EventEmitter<CustomEvent<any>>;
21
22
  slotMenuActive: EventEmitter<CustomEvent<any>>;
22
23
  slotMenuHighlight: EventEmitter<CustomEvent<any>>;
23
- slotContentsChanged: EventEmitter<CustomEvent<any>>;
24
+ slotContentsChanged: EventEmitter<CustomEvent<SlotContentsChangedEventDetail>>;
24
25
  static ɵfac: i0.ɵɵFactoryDeclaration<DroppableSlotComponent, never>;
25
- static ɵcmp: i0.ɵɵComponentDeclaration<DroppableSlotComponent, "luzmo-droppable-slot", never, { "itemType": { "alias": "itemType"; "required": false; }; "slotName": { "alias": "slotName"; "required": false; }; "slotConfiguration": { "alias": "slotConfiguration"; "required": false; }; "slotsContents": { "alias": "slotsContents"; "required": false; }; "label": { "alias": "label"; "required": false; }; "language": { "alias": "language"; "required": false; }; "dragBoundary": { "alias": "dragBoundary"; "required": false; }; "apiUrl": { "alias": "apiUrl"; "required": false; }; "authKey": { "alias": "authKey"; "required": false; }; "authToken": { "alias": "authToken"; "required": false; }; "menu": { "alias": "menu"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "hideDelete": { "alias": "hideDelete"; "required": false; }; "hideConfiguration": { "alias": "hideConfiguration"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "slotMenuInactive": "slotMenuInactive"; "slotMenuActive": "slotMenuActive"; "slotMenuHighlight": "slotMenuHighlight"; "slotContentsChanged": "slotContentsChanged"; }, never, ["*"], true, never>;
26
+ static ɵcmp: i0.ɵɵComponentDeclaration<DroppableSlotComponent, "luzmo-droppable-slot", never, { "itemType": { "alias": "itemType"; "required": false; }; "slotName": { "alias": "slotName"; "required": false; }; "slotConfiguration": { "alias": "slotConfiguration"; "required": false; }; "slotsContents": { "alias": "slotsContents"; "required": false; }; "label": { "alias": "label"; "required": false; }; "language": { "alias": "language"; "required": false; }; "dragBoundary": { "alias": "dragBoundary"; "required": false; }; "rotate": { "alias": "rotate"; "required": false; }; "apiUrl": { "alias": "apiUrl"; "required": false; }; "authKey": { "alias": "authKey"; "required": false; }; "authToken": { "alias": "authToken"; "required": false; }; "menu": { "alias": "menu"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "hideDelete": { "alias": "hideDelete"; "required": false; }; "hideConfiguration": { "alias": "hideConfiguration"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "slotMenuInactive": "slotMenuInactive"; "slotMenuActive": "slotMenuActive"; "slotMenuHighlight": "slotMenuHighlight"; "slotContentsChanged": "slotContentsChanged"; }, never, ["*"], true, never>;
26
27
  }
@@ -8,6 +8,7 @@ export class DroppableSlotComponent {
8
8
  label;
9
9
  language;
10
10
  dragBoundary;
11
+ rotate;
11
12
  apiUrl;
12
13
  authKey;
13
14
  authToken;
@@ -21,7 +22,7 @@ export class DroppableSlotComponent {
21
22
  slotMenuHighlight = new EventEmitter();
22
23
  slotContentsChanged = new EventEmitter();
23
24
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.3", ngImport: i0, type: DroppableSlotComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
24
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.2.3", type: DroppableSlotComponent, isStandalone: true, selector: "luzmo-droppable-slot", inputs: { itemType: "itemType", slotName: "slotName", slotConfiguration: "slotConfiguration", slotsContents: "slotsContents", label: "label", language: "language", dragBoundary: "dragBoundary", apiUrl: "apiUrl", authKey: "authKey", authToken: "authToken", menu: "menu", placement: "placement", hideDelete: "hideDelete", hideConfiguration: "hideConfiguration", size: "size" }, outputs: { slotMenuInactive: "slotMenuInactive", slotMenuActive: "slotMenuActive", slotMenuHighlight: "slotMenuHighlight", slotContentsChanged: "slotContentsChanged" }, ngImport: i0, template: `<luzmo-droppable-slot
25
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.2.3", type: DroppableSlotComponent, isStandalone: true, selector: "luzmo-droppable-slot", inputs: { itemType: "itemType", slotName: "slotName", slotConfiguration: "slotConfiguration", slotsContents: "slotsContents", label: "label", language: "language", dragBoundary: "dragBoundary", rotate: "rotate", apiUrl: "apiUrl", authKey: "authKey", authToken: "authToken", menu: "menu", placement: "placement", hideDelete: "hideDelete", hideConfiguration: "hideConfiguration", size: "size" }, outputs: { slotMenuInactive: "slotMenuInactive", slotMenuActive: "slotMenuActive", slotMenuHighlight: "slotMenuHighlight", slotContentsChanged: "slotContentsChanged" }, ngImport: i0, template: `<luzmo-droppable-slot
25
26
  [attr.item-type]="itemType"
26
27
  [attr.slot-name]="slotName"
27
28
  [attr.slotConfiguration]="slotConfiguration"
@@ -29,6 +30,7 @@ export class DroppableSlotComponent {
29
30
  [attr.label]="label"
30
31
  [attr.language]="language"
31
32
  [attr.drag-boundary]="dragBoundary"
33
+ [attr.rotate]="rotate"
32
34
  [attr.api-url]="apiUrl"
33
35
  [attr.auth-key]="authKey"
34
36
  [attr.auth-token]="authToken"
@@ -42,7 +44,7 @@ export class DroppableSlotComponent {
42
44
  (slot-menu-highlight)="slotMenuHighlight.emit($event)"
43
45
  (slot-contents-changed)="slotContentsChanged.emit($event)">
44
46
  <ng-content></ng-content>
45
- </luzmo-droppable-slot>`, isInline: true, dependencies: [{ kind: "component", type: DroppableSlotComponent, selector: "luzmo-droppable-slot", inputs: ["itemType", "slotName", "slotConfiguration", "slotsContents", "label", "language", "dragBoundary", "apiUrl", "authKey", "authToken", "menu", "placement", "hideDelete", "hideConfiguration", "size"], outputs: ["slotMenuInactive", "slotMenuActive", "slotMenuHighlight", "slotContentsChanged"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
47
+ </luzmo-droppable-slot>`, isInline: true, dependencies: [{ kind: "component", type: DroppableSlotComponent, selector: "luzmo-droppable-slot", inputs: ["itemType", "slotName", "slotConfiguration", "slotsContents", "label", "language", "dragBoundary", "rotate", "apiUrl", "authKey", "authToken", "menu", "placement", "hideDelete", "hideConfiguration", "size"], outputs: ["slotMenuInactive", "slotMenuActive", "slotMenuHighlight", "slotContentsChanged"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
46
48
  }
47
49
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.3", ngImport: i0, type: DroppableSlotComponent, decorators: [{
48
50
  type: Component,
@@ -58,6 +60,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.3", ngImpor
58
60
  [attr.label]="label"
59
61
  [attr.language]="language"
60
62
  [attr.drag-boundary]="dragBoundary"
63
+ [attr.rotate]="rotate"
61
64
  [attr.api-url]="apiUrl"
62
65
  [attr.auth-key]="authKey"
63
66
  [attr.auth-token]="authToken"
@@ -87,6 +90,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.3", ngImpor
87
90
  type: Input
88
91
  }], dragBoundary: [{
89
92
  type: Input
93
+ }], rotate: [{
94
+ type: Input
90
95
  }], apiUrl: [{
91
96
  type: Input
92
97
  }], authKey: [{
@@ -0,0 +1 @@
1
+ export * from './types';
@@ -0,0 +1 @@
1
+ export * from './types';
@@ -0,0 +1,25 @@
1
+ import { GenericSlotContent } from '@luzmo/dashboard-contents-types';
2
+ import { DatasetColumnMetadata } from '@utils/data-broker';
3
+ import type { SlotContentsChangedEventDetail } from '../droppable-slot/types';
4
+ export type { SlotContentsChangedEventDetail } from '../droppable-slot/types';
5
+ export interface MeasureColumnsItem {
6
+ datasetId: string;
7
+ datasetName: Record<string, string>;
8
+ columns: DatasetColumnMetadata[];
9
+ }
10
+ export interface SlotMenuActiveEventDetail {
11
+ datasetId: string;
12
+ }
13
+ export interface SlotMenuHighlightEventDetail {
14
+ datasetId: string;
15
+ level: number;
16
+ columnId?: string;
17
+ formulaId?: string;
18
+ }
19
+ export interface SlotContentChangedEventDetail {
20
+ slotContent: SlotContentsChangedEventDetail['slotContents'][number];
21
+ }
22
+ export interface SlotListChangedEventDetail {
23
+ slotContents: GenericSlotContent[];
24
+ activeIndex: number;
25
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -1,8 +1,9 @@
1
+ import type { GenericSlotContent } from '../types';
1
2
  import * as i0 from "@angular/core";
2
3
  export declare class SlotMenuListComponent {
3
4
  language?: string;
4
5
  contentLanguage?: string;
5
- slotContents?: any;
6
+ slotContents?: GenericSlotContent[];
6
7
  activeIndex?: number;
7
8
  size?: any;
8
9
  static ɵfac: i0.ɵɵFactoryDeclaration<SlotMenuListComponent, never>;
@@ -1,12 +1,12 @@
1
1
  import { EventEmitter } from '@angular/core';
2
- import type { SlotName, GenericSlotContent } from '../types';
2
+ import type { SlotName, VizItemType, GenericSlotContent } from '../types';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class SlotMenuComponent {
5
5
  language?: string;
6
6
  contentLanguage?: string;
7
- slotType?: string;
7
+ slotType?: 'numeric' | 'categorical' | 'mixed';
8
8
  slotName?: SlotName;
9
- itemType?: string;
9
+ itemType?: VizItemType;
10
10
  noDrag?: boolean;
11
11
  noClose?: boolean;
12
12
  variant?: 'popup' | 'draggable' | 'default';
@@ -3,11 +3,14 @@
3
3
  * This file contains the types for all the lit components and functions.
4
4
  * This file should be comprehensive and should not be missing any types.
5
5
  */
6
- import { VizItemType } from '@luzmo/dashboard-contents-types';
7
- import { IconDefinition } from '@luzmo/icons';
8
- import { Placement } from '@luzmo/lucero';
6
+ import type { VizItemType } from '@luzmo/dashboard-contents-types';
7
+ import type { IconDefinition } from '@luzmo/icons';
8
+ import type { Placement } from '@luzmo/lucero';
9
9
  import { TemplateResult } from 'lit';
10
10
  export type { Column, ColumnSubtype, ColumnType, GenericSlotContent, SlotName, VizItemSlots, VizItemType } from '@luzmo/dashboard-contents-types';
11
+ export type { DraggableDataItemData } from './components/draggable-data-item';
12
+ export type { DroppableSlotConfiguration, SlotContentsChangedEventDetail } from './components/droppable-slot';
13
+ export type { MeasureColumnsItem, SlotContentChangedEventDetail, SlotListChangedEventDetail, SlotMenuActiveEventDetail, SlotMenuHighlightEventDetail } from './components/slot-menu';
11
14
  export declare enum PeriodOverPeriodCondition {
12
15
  HasDatetimeColumnAndNoComparisonFilters = "hasDatetimeColumnAndNoComparisonFilters",
13
16
  NoDatetimeColumnAndNoComparisonFilters = "noDatetimeColumnAndNoComparisonFilters",
@@ -79,6 +82,9 @@ export interface DatasetIcon {
79
82
  };
80
83
  }
81
84
  export type { ElementSize, Placement } from '@luzmo/lucero';
85
+ export type { DataBrokerConfig } from './utils/data-broker/index';
86
+ export type { DatasetMetadata } from './utils/data-broker/index';
87
+ export type { DatasetWithDraggableDataItems } from './utils/transformations/convert-datasets-to-draggable-items';
82
88
  export interface Dataset {
83
89
  id: string;
84
90
  name: string | {
@@ -19,6 +19,9 @@
19
19
  ],
20
20
  "@luzmo/analytics-components-kit": [
21
21
  "./luzmo-stub.d.ts"
22
+ ],
23
+ "@utils/*": [
24
+ "./utils/*"
22
25
  ]
23
26
  }
24
27
  },
package/angular/types.ts CHANGED
@@ -4,9 +4,9 @@
4
4
  * This file should be comprehensive and should not be missing any types.
5
5
  */
6
6
 
7
- import { VizItemType } from '@luzmo/dashboard-contents-types';
8
- import { IconDefinition } from '@luzmo/icons';
9
- import { Placement } from '@luzmo/lucero';
7
+ import type { VizItemType } from '@luzmo/dashboard-contents-types';
8
+ import type { IconDefinition } from '@luzmo/icons';
9
+ import type { Placement } from '@luzmo/lucero';
10
10
  import { TemplateResult } from 'lit';
11
11
 
12
12
  export type {
@@ -19,6 +19,21 @@ export type {
19
19
  VizItemType
20
20
  } from '@luzmo/dashboard-contents-types';
21
21
 
22
+ export type { DraggableDataItemData } from './components/draggable-data-item';
23
+
24
+ export type {
25
+ DroppableSlotConfiguration,
26
+ SlotContentsChangedEventDetail
27
+ } from './components/droppable-slot';
28
+
29
+ export type {
30
+ MeasureColumnsItem,
31
+ SlotContentChangedEventDetail,
32
+ SlotListChangedEventDetail,
33
+ SlotMenuActiveEventDetail,
34
+ SlotMenuHighlightEventDetail
35
+ } from './components/slot-menu';
36
+
22
37
  export enum PeriodOverPeriodCondition {
23
38
  HasDatetimeColumnAndNoComparisonFilters = 'hasDatetimeColumnAndNoComparisonFilters',
24
39
  NoDatetimeColumnAndNoComparisonFilters = 'noDatetimeColumnAndNoComparisonFilters',
@@ -106,6 +121,12 @@ export interface DatasetIcon {
106
121
 
107
122
  export type { ElementSize, Placement } from '@luzmo/lucero';
108
123
 
124
+ export type { DataBrokerConfig } from './utils/data-broker/index';
125
+
126
+ export type { DatasetMetadata } from './utils/data-broker/index';
127
+
128
+ export type { DatasetWithDraggableDataItems } from './utils/transformations/convert-datasets-to-draggable-items';
129
+
109
130
  // Dataset interface for dataset selector components
110
131
  export interface Dataset {
111
132
  id: string;
@@ -0,0 +1,16 @@
1
+ import { LitElement, ReactiveElement } from 'lit';
2
+ type Constructor<T = Record<string, unknown>> = {
3
+ new (...args: any[]): T;
4
+ prototype: T;
5
+ };
6
+ export interface LuzmoInterface {
7
+ shadowRoot: ShadowRoot;
8
+ isLTR: boolean;
9
+ hasVisibleFocusInTree(): boolean;
10
+ dir: 'ltr' | 'rtl';
11
+ }
12
+ export declare function LuzmoMixin<T extends Constructor<ReactiveElement>>(constructor: T): T & Constructor<LuzmoInterface>;
13
+ declare const LuzmoElement_base: typeof LitElement & Constructor<LuzmoInterface>;
14
+ export declare class LuzmoElement extends LuzmoElement_base {
15
+ }
16
+ export {};
@@ -0,0 +1,29 @@
1
+ declare global {
2
+ interface Window {
3
+ applyFocusVisiblePolyfill?: (scope: Document | ShadowRoot) => void;
4
+ }
5
+ }
6
+ type Constructor<T = Record<string, unknown>> = {
7
+ new (...args: any[]): T;
8
+ prototype: T;
9
+ };
10
+ interface OptionalLifecycleCallbacks {
11
+ connectedCallback?(): void;
12
+ disconnectedCallback?(): void;
13
+ manageAutoFocus?(): void;
14
+ }
15
+ type MixableBaseClass = HTMLElement & OptionalLifecycleCallbacks;
16
+ /**
17
+ * This mixin function is designed to be applied to a class that inherits
18
+ * from HTMLElement. It makes it easy for a custom element to coordinate with
19
+ * the :focus-visible polyfill.
20
+ *
21
+ * NOTE(cdata): The code here was adapted from an example proposed with the
22
+ * introduction of ShadowDOM support in the :focus-visible polyfill.
23
+ *
24
+ * @see https://github.com/WICG/focus-visible/pull/196
25
+ * @param SuperClass The base class implementation to decorate with
26
+ * implementation that coordinates with the :focus-visible polyfill
27
+ */
28
+ export declare const FocusVisiblePolyfillMixin: <T extends Constructor<MixableBaseClass>>(SuperClass: T) => T;
29
+ export {};
@@ -0,0 +1,58 @@
1
+ import { PropertyValues } from 'lit';
2
+ import { LuzmoElement } from './base';
3
+ type DisableableElement = HTMLElement & {
4
+ disabled?: boolean;
5
+ };
6
+ declare const Focusable_base: typeof LuzmoElement;
7
+ /**
8
+ * Focusable base class handles tabindex setting into shadowed elements automatically.
9
+ *
10
+ * This implementation is based heavily on the aybolit delegate-focus-mixin at
11
+ * https://github.com/web-padawan/aybolit/blob/master/packages/core/src/mixins/delegate-focus-mixin.js
12
+ */
13
+ export declare class Focusable extends Focusable_base {
14
+ /**
15
+ * Disable this control. It will not receive focus or events
16
+ */
17
+ disabled: boolean;
18
+ /**
19
+ * When this control is rendered, focus it automatically
20
+ *
21
+ * @private
22
+ */
23
+ autofocus: boolean;
24
+ /**
25
+ * The tab index to apply to this control. See general documentation about
26
+ * the tabindex HTML property
27
+ *
28
+ * @private
29
+ */
30
+ get tabIndex(): number;
31
+ set tabIndex(tabIndex: number);
32
+ private _tabIndex;
33
+ private onPointerdownManagementOfTabIndex;
34
+ private manageFocusElementTabindex;
35
+ private manipulatingTabindex;
36
+ /**
37
+ * @private
38
+ */
39
+ get focusElement(): DisableableElement;
40
+ /**
41
+ * @public
42
+ * @returns whether the component should manage its focusElement tab-index or not
43
+ * Needed for action-menu to be supported in action-group in an accessible way
44
+ */
45
+ get selfManageFocusElement(): boolean;
46
+ focus(options?: FocusOptions): void;
47
+ blur(): void;
48
+ click(): void;
49
+ protected manageAutoFocus(): void;
50
+ protected firstUpdated(changes: PropertyValues): void;
51
+ protected update(changedProperties: PropertyValues): void;
52
+ protected updated(changedProperties: PropertyValues): void;
53
+ private handleDisabledChanged;
54
+ protected getUpdateComplete(): Promise<boolean>;
55
+ private autofocusReady;
56
+ connectedCallback(): void;
57
+ }
58
+ export {};
@@ -0,0 +1,4 @@
1
+ export { LuzmoElement, LuzmoMixin } from './base';
2
+ export { Focusable } from './focusable';
3
+ export { ElementSizes, SizedMixin } from './sized-mixin';
4
+ export type { ElementSize } from './sized-mixin';
@@ -0,0 +1,17 @@
1
+ import { ReactiveElement } from 'lit';
2
+ type Constructor<T = Record<string, unknown>> = {
3
+ new (...args: any[]): T;
4
+ prototype: T;
5
+ };
6
+ export type ElementSize = 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl';
7
+ export declare const ElementSizes: Record<string, ElementSize>;
8
+ export type DefaultElementSize = Exclude<ElementSize, 'xxs' | 'xs' | 'xxl'>;
9
+ export interface SizedElementInterface {
10
+ size: ElementSize;
11
+ }
12
+ export declare function SizedMixin<T extends Constructor<ReactiveElement>>(constructor: T, { validSizes, noDefaultSize, defaultSize }?: {
13
+ validSizes?: ElementSize[];
14
+ noDefaultSize?: boolean;
15
+ defaultSize?: ElementSize;
16
+ }): T & Constructor<SizedElementInterface>;
17
+ export {};
@@ -0,0 +1,17 @@
1
+ export type ColorValue = {
2
+ colors3?: string[];
3
+ colors4?: string[];
4
+ colors5?: string[];
5
+ colors6?: string[];
6
+ colors7?: string[];
7
+ colors8?: string[];
8
+ colors9?: string[];
9
+ colors10?: string[];
10
+ colors11?: string[];
11
+ colors12?: string[];
12
+ type: 'divergent' | 'qualitative' | 'sequential' | 'heat';
13
+ };
14
+ export type ColorMap = Record<ColorsClassKey, ColorValue>;
15
+ export type ColorsClassKey = 'Spectral' | 'RdYlGn' | 'RdBu' | 'PiYG' | 'PRGn' | 'RdYlBu' | 'BrBG' | 'RdGy' | 'PuOr' | 'Paired' | 'Set1' | 'Set3' | 'OrRd' | 'PuBu' | 'BuPu' | 'Oranges' | 'BuGn' | 'GnBu' | 'YlOrBr' | 'YlGn' | 'Reds' | 'RdPu' | 'Greens' | 'YlGnBu' | 'Purples' | 'Greys' | 'YlOrRd' | 'PuRd' | 'Blues' | 'PuBuGn' | 'Spectrum' | 'BlueRed' | 'Plasma' | 'Viris' | 'Incan' | 'Fire' | 'Inferno' | 'Ocean' | 'Sunrise';
16
+ export declare function getColorMaps(): ColorMap;
17
+ export declare function getColorMapKeys(type?: 'divergent' | 'qualitative' | 'sequential' | 'heat'): string[];
@@ -0,0 +1 @@
1
+ export declare const extrapolateNewColor: (colorStrings: string[], percent?: number) => string;
@@ -0,0 +1,24 @@
1
+ import { type DataBrokerConfig } from '../data-broker/index';
2
+ import { DatasetWithDraggableDataItems } from '../transformations/convert-datasets-to-draggable-items';
3
+ export interface LoadDraggableItemsOptions {
4
+ dataBrokerConfig: Pick<DataBrokerConfig, 'apiUrl' | 'authKey' | 'authToken'>;
5
+ }
6
+ /**
7
+ * Convenience helper that configures the shared DataBroker instance,
8
+ * loads the requested datasets with their metadata, and converts them into
9
+ * draggable data items the UI components understand.
10
+ *
11
+ * @param datasetIds - Array of dataset IDs to fetch and convert
12
+ * @param options.dataBrokerConfig - Required DataBroker configuration
13
+ * @param options.dataBrokerConfig.apiUrl - Luzmo API endpoint URL
14
+ * @param options.dataBrokerConfig.authKey - Authentication key for Luzmo API access
15
+ * @param options.dataBrokerConfig.authToken - Authentication token for Luzmo API access
16
+ * @returns Promise that resolves to an array of datasets with their draggable data items
17
+ * @throws {Error} When datasetIds is empty or invalid
18
+ * @throws {Error} When dataBrokerConfig is missing
19
+ * @throws {Error} When required authentication credentials are missing
20
+ * @throws {Error} When apiUrl is missing or invalid
21
+ * @throws {Error} When API authentication fails
22
+ * @throws {Error} When dataset fetching fails
23
+ */
24
+ export declare const loadDraggableItemsForDatasets: (datasetIds: string[], options: LoadDraggableItemsOptions) => Promise<DatasetWithDraggableDataItems[]>;