@luzmo/analytics-components-kit 1.0.1-alpha.3 → 1.0.1-alpha.5

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 (349) hide show
  1. package/LICENSE +18 -0
  2. package/components/area-chart-slots.config-BLxiYX05.cjs +20 -0
  3. package/components/area-chart-slots.config-C0c2ZzBh.js +52 -0
  4. package/components/async-directive-FGzMycjH-Bgeca09f.js +152 -0
  5. package/components/async-directive-FGzMycjH-CeG35vZ3.cjs +56 -0
  6. package/components/bar-chart-slots.config-GSSL7XVA.js +47 -0
  7. package/components/bar-chart-slots.config-Jx1PveTM.cjs +20 -0
  8. package/components/bar-chart.config-B57geUzJ.cjs +20 -0
  9. package/components/bar-chart.config-CQ6HAvs2.js +153 -0
  10. package/components/bar-chart.en-BqYbiHO3.cjs +20 -0
  11. package/components/bar-chart.en-FwT00qdU.js +69 -0
  12. package/components/bar-chart.fr-DGx9smEh.cjs +20 -0
  13. package/components/bar-chart.fr-DbxKiM0j.js +44 -0
  14. package/components/bar-chart.nl-BYzVExsz.cjs +20 -0
  15. package/components/bar-chart.nl-ahX1ARpH.js +44 -0
  16. package/components/base-BjTwmyRF.cjs +24 -0
  17. package/components/base-D76d76ww-BiajPmzU.cjs +40 -0
  18. package/components/base-D76d76ww-gf0ESLsU.js +45 -0
  19. package/components/base-D76d76ww.js +28 -0
  20. package/components/button-base-CDLQV7Vk-BXgdcJZo.cjs +43 -0
  21. package/components/button-base-CDLQV7Vk-C_3zTrbV.js +161 -0
  22. package/components/checkbox-mixin-DXUIwtea-DNISZS47.cjs +45 -0
  23. package/components/checkbox-mixin-DXUIwtea-wiCZr_KI.js +88 -0
  24. package/components/column-chart.config-B57geUzJ.cjs +20 -0
  25. package/components/column-chart.config-C9hP0kX7.js +153 -0
  26. package/components/cs-DVZ0Tapy.js +89 -0
  27. package/components/cs-I9E81keK.cjs +20 -0
  28. package/components/da-DHy05oSR.js +97 -0
  29. package/components/da-QkdvupDg.cjs +20 -0
  30. package/components/de-Dn5mUzha.cjs +20 -0
  31. package/components/de-iM39JlAt.js +109 -0
  32. package/components/decompose-numeric-format-B3rVVHpO.cjs +20 -0
  33. package/components/decompose-numeric-format-BuZcjH2k.js +39 -0
  34. package/components/directive-helpers-BLDZnGQv-DYFfxaqA.cjs +80 -0
  35. package/components/directive-helpers-BLDZnGQv-oKMCBvb2.js +115 -0
  36. package/components/display-settings/display-settings.d.ts +70 -0
  37. package/components/display-settings/index.cjs +105 -0
  38. package/components/display-settings/index.d.ts +7 -0
  39. package/components/display-settings/index.js +238 -0
  40. package/components/display-settings-binning/display-settings-binning.d.ts +32 -0
  41. package/components/display-settings-binning/index.cjs +51 -0
  42. package/components/display-settings-binning/index.d.ts +7 -0
  43. package/components/display-settings-binning/index.js +137 -0
  44. package/components/display-settings-datetime/display-settings-datetime.d.ts +85 -0
  45. package/components/display-settings-datetime/index.cjs +20 -0
  46. package/components/display-settings-datetime/index.d.ts +7 -0
  47. package/components/display-settings-datetime/index.js +30 -0
  48. package/components/display-settings-grand-totals/display-settings-grand-totals.d.ts +30 -0
  49. package/components/display-settings-grand-totals/index.cjs +41 -0
  50. package/components/display-settings-grand-totals/index.d.ts +7 -0
  51. package/components/display-settings-grand-totals/index.js +115 -0
  52. package/components/display-settings-numeric/display-settings-numeric.d.ts +73 -0
  53. package/components/display-settings-numeric/helpers/constants.d.ts +17 -0
  54. package/components/display-settings-numeric/index.cjs +146 -0
  55. package/components/display-settings-numeric/index.d.ts +7 -0
  56. package/components/display-settings-numeric/index.js +452 -0
  57. package/components/display-settings-period-over-period/display-settings-period-over-period.d.ts +44 -0
  58. package/components/display-settings-period-over-period/helpers/constants.d.ts +33 -0
  59. package/components/display-settings-period-over-period/index.cjs +103 -0
  60. package/components/display-settings-period-over-period/index.d.ts +7 -0
  61. package/components/display-settings-period-over-period/index.js +308 -0
  62. package/components/divider.module-DwOuLGU3-B19eHVg2.js +40 -0
  63. package/components/divider.module-DwOuLGU3-Bg8RrFkc.cjs +36 -0
  64. package/components/donut-chart-slots.config-BEwhfq27.js +39 -0
  65. package/components/donut-chart-slots.config-DIp-24lO.cjs +20 -0
  66. package/components/donut-chart.config-3DhKiSSM.js +177 -0
  67. package/components/donut-chart.config-DLWJUlHx.cjs +20 -0
  68. package/components/donut-chart.en-Blb9oSdU.cjs +20 -0
  69. package/components/donut-chart.en-CzjT4-XN.js +85 -0
  70. package/components/donut-chart.fr-BeTVa2wh.cjs +20 -0
  71. package/components/donut-chart.fr-DftPrKbG.js +39 -0
  72. package/components/donut-chart.nl-D9YGbOce.cjs +20 -0
  73. package/components/donut-chart.nl-NMatXfhK.js +39 -0
  74. package/components/draggable-data-item/draggable-data-item.d.ts +25 -0
  75. package/components/draggable-data-item/index.cjs +55 -0
  76. package/components/draggable-data-item/index.d.ts +7 -0
  77. package/components/draggable-data-item/index.js +140 -0
  78. package/components/draggable-data-item-level/draggable-data-item-level.d.ts +29 -0
  79. package/components/draggable-data-item-level/helpers/calculate-type-icon.d.ts +2 -0
  80. package/components/draggable-data-item-level/helpers/generate-preview.d.ts +1 -0
  81. package/components/draggable-data-item-level/index.cjs +36 -0
  82. package/components/draggable-data-item-level/index.d.ts +7 -0
  83. package/components/draggable-data-item-level/index.js +293 -0
  84. package/components/droppable-slot/droppable-slot.d.ts +49 -0
  85. package/components/droppable-slot/index.cjs +69 -0
  86. package/components/droppable-slot/index.d.ts +7 -0
  87. package/components/droppable-slot/index.js +255 -0
  88. package/components/droppable-slot/item-slots-configs/area-chart-slots.config.d.ts +44 -0
  89. package/components/droppable-slot/item-slots-configs/bar-chart-slots.config.d.ts +24 -0
  90. package/components/droppable-slot/item-slots-configs/donut-chart-slots.config.d.ts +20 -0
  91. package/components/edit-item/edit-item.d.ts +50 -0
  92. package/components/edit-item/index.cjs +85 -0
  93. package/components/edit-item/index.d.ts +7 -0
  94. package/components/edit-item/index.js +333 -0
  95. package/components/edit-option/edit-option.d.ts +22 -0
  96. package/components/edit-option/helpers/control-markup.d.ts +14 -0
  97. package/components/edit-option/helpers/control-templates/action-button-group-template.d.ts +2 -0
  98. package/components/edit-option/helpers/control-templates/color-picker-template.d.ts +2 -0
  99. package/components/edit-option/helpers/control-templates/multi-language-field-template.d.ts +8 -0
  100. package/components/edit-option/helpers/control-templates/number-field-template.d.ts +2 -0
  101. package/components/edit-option/helpers/control-templates/picker-template.d.ts +2 -0
  102. package/components/edit-option/helpers/control-templates/positions-number-field-template.d.ts +2 -0
  103. package/components/edit-option/helpers/control-templates/radio-button-group.d.ts +2 -0
  104. package/components/edit-option/helpers/control-templates/slider-template.d.ts +2 -0
  105. package/components/edit-option/helpers/control-templates/switch-template.d.ts +2 -0
  106. package/components/edit-option/helpers/control-templates/text-field-template.d.ts +7 -0
  107. package/components/edit-option/helpers/generate-callback.d.ts +1 -0
  108. package/components/edit-option/helpers/get-control-by-key.d.ts +1 -0
  109. package/components/edit-option/helpers/get-extra-label-values.d.ts +7 -0
  110. package/components/edit-option/helpers/get-value-by-key.d.ts +1 -0
  111. package/components/edit-option/index.cjs +176 -0
  112. package/components/edit-option/index.d.ts +7 -0
  113. package/components/edit-option/index.js +507 -0
  114. package/components/edit-option/item-configs/bar-chart.config.d.ts +108 -0
  115. package/components/edit-option/item-configs/column-chart.config.d.ts +108 -0
  116. package/components/edit-option/item-configs/donut-chart.config.d.ts +102 -0
  117. package/components/edit-option/item-configs/imageobject.config.d.ts +128 -0
  118. package/components/edit-option/item-configs/line-chart.config.d.ts +96 -0
  119. package/components/edit-option/item-configs/textobject.config.d.ts +13 -0
  120. package/components/edit-option/item-translations/bar-chart.en.d.ts +48 -0
  121. package/components/edit-option/item-translations/bar-chart.fr.d.ts +23 -0
  122. package/components/edit-option/item-translations/bar-chart.nl.d.ts +23 -0
  123. package/components/edit-option/item-translations/donut-chart.en.d.ts +64 -0
  124. package/components/edit-option/item-translations/donut-chart.fr.d.ts +18 -0
  125. package/components/edit-option/item-translations/donut-chart.nl.d.ts +18 -0
  126. package/components/edit-option-action-button-group/edit-option-action-button-group.d.ts +27 -0
  127. package/components/edit-option-action-button-group/index.cjs +44 -0
  128. package/components/edit-option-action-button-group/index.d.ts +7 -0
  129. package/components/edit-option-action-button-group/index.js +144 -0
  130. package/components/edit-option-base/edit-option-base.d.ts +22 -0
  131. package/components/edit-option-base-DnrerC_T.cjs +53 -0
  132. package/components/edit-option-base-oIvlolV9.js +120 -0
  133. package/components/edit-option-color-picker/edit-option-color-picker.d.ts +23 -0
  134. package/components/edit-option-color-picker/index.cjs +472 -0
  135. package/components/edit-option-color-picker/index.d.ts +7 -0
  136. package/components/edit-option-color-picker/index.js +2553 -0
  137. package/components/edit-option-multi-language-field/edit-option-multi-language-field.d.ts +15 -0
  138. package/components/edit-option-multi-language-field/index.cjs +31 -0
  139. package/components/edit-option-multi-language-field/index.d.ts +7 -0
  140. package/components/edit-option-multi-language-field/index.js +102 -0
  141. package/components/edit-option-number-field/edit-option-number-field.d.ts +19 -0
  142. package/components/edit-option-number-field/index.cjs +32 -0
  143. package/components/edit-option-number-field/index.d.ts +7 -0
  144. package/components/edit-option-number-field/index.js +115 -0
  145. package/components/edit-option-picker/edit-option-picker.d.ts +22 -0
  146. package/components/edit-option-picker/index.cjs +35 -0
  147. package/components/edit-option-picker/index.d.ts +7 -0
  148. package/components/edit-option-picker/index.js +106 -0
  149. package/components/edit-option-positions-number-field/edit-option-positions-number-field.d.ts +28 -0
  150. package/components/edit-option-positions-number-field/index.cjs +42 -0
  151. package/components/edit-option-positions-number-field/index.d.ts +7 -0
  152. package/components/edit-option-positions-number-field/index.js +170 -0
  153. package/components/edit-option-radio-button-group/edit-option-radio-button-group.d.ts +18 -0
  154. package/components/edit-option-radio-button-group/index.cjs +36 -0
  155. package/components/edit-option-radio-button-group/index.d.ts +7 -0
  156. package/components/edit-option-radio-button-group/index.js +113 -0
  157. package/components/edit-option-slider/edit-option-slider.d.ts +15 -0
  158. package/components/edit-option-slider/index.cjs +48 -0
  159. package/components/edit-option-slider/index.d.ts +7 -0
  160. package/components/edit-option-slider/index.js +1253 -0
  161. package/components/edit-option-switch/edit-option-switch.d.ts +11 -0
  162. package/components/edit-option-switch/index.cjs +50 -0
  163. package/components/edit-option-switch/index.d.ts +7 -0
  164. package/components/edit-option-switch/index.js +171 -0
  165. package/components/edit-option-text-field/edit-option-text-field.d.ts +15 -0
  166. package/components/edit-option-text-field/index.cjs +31 -0
  167. package/components/edit-option-text-field/index.d.ts +7 -0
  168. package/components/edit-option-text-field/index.js +100 -0
  169. package/components/element-resolution-FCUT-wql--7ctE626.js +163 -0
  170. package/components/element-resolution-FCUT-wql-DSTvdyds.cjs +68 -0
  171. package/components/en-BsAhbMzm.js +1979 -0
  172. package/components/en-CdROUdjt.cjs +202 -0
  173. package/components/en-GB-g8rSQSba.cjs +20 -0
  174. package/components/en-GB-qub-Kemt.js +28 -0
  175. package/components/es-CwyPlN5d.cjs +20 -0
  176. package/components/es-KhTq4jX8.js +305 -0
  177. package/components/fi-Dh_ebgpe.js +97 -0
  178. package/components/fi-rijeZE5V.cjs +20 -0
  179. package/components/focus-group-DHeTq18L-C9l9oHwM.cjs +36 -0
  180. package/components/focus-group-DHeTq18L-rNUu13eb.js +237 -0
  181. package/components/fr-BcgE-6S_.cjs +20 -0
  182. package/components/fr-CU727YF1.js +305 -0
  183. package/components/get-css-variable-Bhbr-Kr1.js +1413 -0
  184. package/components/get-css-variable-DLiZYZEi.cjs +24 -0
  185. package/components/he-Au3xg6lR.js +89 -0
  186. package/components/he-O6Ih8Bqh.cjs +20 -0
  187. package/components/hu-BnZ8y3xQ.cjs +20 -0
  188. package/components/hu-DNJ-P_MW.js +97 -0
  189. package/components/if-defined-CYpcjGCb-Bzbg7zmM.cjs +60 -0
  190. package/components/if-defined-CYpcjGCb-tXzyj9Dq.js +95 -0
  191. package/components/if-defined-Ch2dtEOS.js +29 -0
  192. package/components/if-defined-DMSuo5Qx.cjs +24 -0
  193. package/components/imageobject.config-B7ld9bj3.cjs +20 -0
  194. package/components/imageobject.config-DZLp9Elq.js +127 -0
  195. package/components/index-3ewegRbb.cjs +67 -0
  196. package/components/index-B0cBkCaq.cjs +39 -0
  197. package/components/index-B2N_PZf3.js +164 -0
  198. package/components/index-B2z7i1-X.js +77 -0
  199. package/components/index-B5VaT0lQ.js +145 -0
  200. package/components/index-BC-nmKjU.js +104 -0
  201. package/components/index-BD3VxQBH.js +44 -0
  202. package/components/index-BGaxFTL4.js +299 -0
  203. package/components/index-BRk42NQn.js +3171 -0
  204. package/components/index-Bjs6Yqet.cjs +185 -0
  205. package/components/index-Bofs4Q2E.cjs +36 -0
  206. package/components/index-BqTdFs1o.js +77 -0
  207. package/components/index-C2qG2Sm8-BQUlk-w0.js +935 -0
  208. package/components/index-C2qG2Sm8-CbVWlbag.cjs +95 -0
  209. package/components/index-CTPox3yS.cjs +54 -0
  210. package/components/index-C_3Ak4MQ.cjs +59 -0
  211. package/components/index-CayjvyyX.cjs +95 -0
  212. package/components/index-CkDDDzuJ.js +744 -0
  213. package/components/index-Cp-lHUlX.js +137 -0
  214. package/components/index-CtHO6VyI.cjs +42 -0
  215. package/components/index-D4x-O9Uc.cjs +192 -0
  216. package/components/index-D9vzXhtJ.cjs +95 -0
  217. package/components/index-DQiQXn8N.cjs +36 -0
  218. package/components/index-DVaeDCbe.js +48 -0
  219. package/components/index-DskAouD-.js +317 -0
  220. package/components/index-DszPbTTD.js +810 -0
  221. package/components/index-EQldC-LR.js +175 -0
  222. package/components/index-ON4x-yZ7.cjs +36 -0
  223. package/components/index-gfU9TGd5.cjs +57 -0
  224. package/components/index-liTHhAef.cjs +36 -0
  225. package/components/index.cjs +20 -0
  226. package/components/index.js +74 -0
  227. package/components/it-Bh5U73z6.js +305 -0
  228. package/components/it-PshtLMkq.cjs +20 -0
  229. package/components/ja-CCcHUL61.js +89 -0
  230. package/components/ja-KIS2HdaG.cjs +20 -0
  231. package/components/ko--l4qmjLV.cjs +20 -0
  232. package/components/ko-DhapsZMM.js +89 -0
  233. package/components/language-resolution-8yZa5r_P-CTSmbE1U.js +161 -0
  234. package/components/language-resolution-8yZa5r_P-DQ3rZzW5.cjs +52 -0
  235. package/components/line-chart.config-BZcvfO2c.cjs +20 -0
  236. package/components/line-chart.config-CIVN6uLI.js +115 -0
  237. package/components/localize-B6AsX_Zv.js +52 -0
  238. package/components/localize-DbobqcKs.cjs +20 -0
  239. package/components/luzmo-icons-BrtBl3E5.cjs +31 -0
  240. package/components/luzmo-icons-CZEpXpvy.js +613 -0
  241. package/components/mk-B9HPSuKa.js +97 -0
  242. package/components/mk-DZlj-edb.cjs +20 -0
  243. package/components/nl-BKlDqOXb.cjs +20 -0
  244. package/components/nl-BwSt5Bf4.js +109 -0
  245. package/components/no-D-DofYnx.js +109 -0
  246. package/components/no-D_SzxhTu.cjs +20 -0
  247. package/components/observe-slot-text-BG0H7bQK-C0wmc4DO.js +221 -0
  248. package/components/observe-slot-text-BG0H7bQK-CrkAqUMj.cjs +86 -0
  249. package/components/pl-D_L_0Boq.js +97 -0
  250. package/components/pl-PIK23rK_.cjs +20 -0
  251. package/components/popover-bg0EQQ8p-D4-hrhIx.js +86 -0
  252. package/components/popover-bg0EQQ8p-Dha09dhV.cjs +48 -0
  253. package/components/property-CD3dwBJC.js +1447 -0
  254. package/components/property-Su1Q6aME.cjs +124 -0
  255. package/components/pt-B0BBS5VB.js +89 -0
  256. package/components/pt-Dqlu4MS5.cjs +20 -0
  257. package/components/query-D5qWDopr.cjs +24 -0
  258. package/components/query-Ddbd72Um.js +39 -0
  259. package/components/query-assigned-nodes-C76XVPWY-BcyGjObB.cjs +40 -0
  260. package/components/query-assigned-nodes-C76XVPWY-DPC6kOmH.js +55 -0
  261. package/components/roving-tabindex-DOg4z6ZU-DmyYPRYY.cjs +36 -0
  262. package/components/roving-tabindex-DOg4z6ZU-dufnVmvL.js +85 -0
  263. package/components/ru-Vo-m3O_2.js +108 -0
  264. package/components/ru-zyNDTB04.cjs +20 -0
  265. package/components/sized-mixin-PyCYpyQq-B40Ek2UB.js +82 -0
  266. package/components/sized-mixin-PyCYpyQq-sKzDjc75.cjs +36 -0
  267. package/components/slot-menu/index.cjs +55 -0
  268. package/components/slot-menu/index.d.ts +7 -0
  269. package/components/slot-menu/index.js +188 -0
  270. package/components/slot-menu/slot-menu.d.ts +66 -0
  271. package/components/slot-menu-list/index.cjs +39 -0
  272. package/components/slot-menu-list/index.d.ts +7 -0
  273. package/components/slot-menu-list/index.js +351 -0
  274. package/components/slot-menu-list/slot-menu-list.d.ts +33 -0
  275. package/components/state-B1a8XIDm.js +31 -0
  276. package/components/state-ByiKNRhp.cjs +24 -0
  277. package/components/sv-1DPTltNQ.cjs +20 -0
  278. package/components/sv-CiozMaev.js +89 -0
  279. package/components/task-BPD0PyaQ.js +120 -0
  280. package/components/task-HFsHfTra.cjs +24 -0
  281. package/components/text-field-7ITo3Lac-CKXsSqJP.cjs +131 -0
  282. package/components/text-field-7ITo3Lac-DqVO04kR.js +412 -0
  283. package/components/textobject.config-C8opcGG4.js +52 -0
  284. package/components/textobject.config-DbAajFz8.cjs +20 -0
  285. package/components/tr-BkmWvOG2.cjs +20 -0
  286. package/components/tr-D_D4i5iv.js +109 -0
  287. package/components/utils.cjs +20 -0
  288. package/components/utils.js +20 -0
  289. package/components/when-CDK1Tt5Y-BN3qcTK0.cjs +40 -0
  290. package/components/when-CDK1Tt5Y-C6ViXC43.js +47 -0
  291. package/components/zh-CN-DTZ4OmdP.cjs +20 -0
  292. package/components/zh-CN-wsl7eFSd.js +89 -0
  293. package/components/zh-TW-DTZ4OmdP.cjs +20 -0
  294. package/components/zh-TW-wsl7eFSd.js +89 -0
  295. package/custom-elements.json +4228 -0
  296. package/index.d.ts +23 -0
  297. package/package.json +133 -14
  298. package/utils/formatter/calculate-duration.d.ts +2 -0
  299. package/utils/formatter/decompose-numeric-format.d.ts +11 -0
  300. package/utils/formatter/default-local-formats.d.ts +20 -0
  301. package/utils/formatter/formats/cs.d.ts +20 -0
  302. package/utils/formatter/formats/da.d.ts +20 -0
  303. package/utils/formatter/formats/de.d.ts +21 -0
  304. package/utils/formatter/formats/en-GB.d.ts +21 -0
  305. package/utils/formatter/formats/en-US.d.ts +1 -0
  306. package/utils/formatter/formats/en.d.ts +1 -0
  307. package/utils/formatter/formats/es.d.ts +54 -0
  308. package/utils/formatter/formats/fi.d.ts +20 -0
  309. package/utils/formatter/formats/fr.d.ts +54 -0
  310. package/utils/formatter/formats/he.d.ts +20 -0
  311. package/utils/formatter/formats/hu.d.ts +20 -0
  312. package/utils/formatter/formats/it.d.ts +54 -0
  313. package/utils/formatter/formats/ja.d.ts +20 -0
  314. package/utils/formatter/formats/ko.d.ts +20 -0
  315. package/utils/formatter/formats/mk.d.ts +20 -0
  316. package/utils/formatter/formats/nl.d.ts +21 -0
  317. package/utils/formatter/formats/no.d.ts +21 -0
  318. package/utils/formatter/formats/pl.d.ts +20 -0
  319. package/utils/formatter/formats/pt.d.ts +20 -0
  320. package/utils/formatter/formats/ru.d.ts +20 -0
  321. package/utils/formatter/formats/sv.d.ts +20 -0
  322. package/utils/formatter/formats/tr.d.ts +21 -0
  323. package/utils/formatter/formats/zh-CN.d.ts +20 -0
  324. package/utils/formatter/formats/zh-TW.d.ts +20 -0
  325. package/utils/formatter/formatter.d.ts +9 -0
  326. package/utils/formatter/localize.d.ts +3 -0
  327. package/utils/formatter/smart-datetime-formats.const.d.ts +36 -0
  328. package/utils/get-css-variable.d.ts +1 -0
  329. package/utils/index.d.ts +1 -0
  330. package/utils/time/formats.const.d.ts +8 -0
  331. package/utils/time/periods.const.d.ts +29 -0
  332. package/utils/types/column.types.d.ts +56 -0
  333. package/utils/types/type-check.d.ts +7 -0
  334. package/lib/37.js +0 -1
  335. package/lib/729.js +0 -1
  336. package/lib/common-31743c5a.js +0 -13
  337. package/lib/common-b02547a0.js +0 -1
  338. package/lib/common-b49d9a9d.js +0 -1
  339. package/lib/common-b5232813.js +0 -56
  340. package/lib/common-cefd4f4c.js +0 -1
  341. package/lib/common-d6cb565f.js +0 -1
  342. package/lib/common-fd868059.js +0 -1
  343. package/lib/common-fedaf338.js +0 -32
  344. package/lib/edit-option-picker/index.js +0 -314
  345. package/lib/edit-option-slider/index.js +0 -102
  346. package/lib/edit-option-toggle/index.js +0 -114
  347. package/lib/index.js +0 -346
  348. package/lib/vendors-93cc3efa.js +0 -1
  349. package/lib/vendors-bb3d84b5.js +0 -1
@@ -0,0 +1,115 @@
1
+ /*! * A kit of modern Luzmo Web Components for analytics in your web application.
2
+ *
3
+ * Copyright © 2024 Luzmo
4
+ * All rights reserved.
5
+ * Luzmo web components (“Luzmo Web Components”)
6
+ * must be used according to the Luzmo Terms of Service.
7
+ * This license allows users with a current active Luzmo account
8
+ * to use the Luzmo Web Components. This license terminates
9
+ * automatically if a user no longer has an active Luzmo account.
10
+ * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
11
+ *
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
+ * SOFTWARE.
19
+ * */
20
+ import { H as i } from "./property-CD3dwBJC.js";
21
+ /*! * Lucero - The design system for Luzmo.
22
+ *
23
+ * Copyright © 2025 Luzmo
24
+ * All rights reserved.
25
+ * Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
26
+ * This license allows users with a current active Luzmo account to use Lucero.
27
+ * This license terminates automatically if a user no longer has an active Luzmo account.
28
+ * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
29
+ *
30
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
31
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
32
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
33
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
34
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
35
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
36
+ * SOFTWARE.
37
+ * */
38
+ /**
39
+ * @license
40
+ * Copyright 2017 Google LLC
41
+ * SPDX-License-Identifier: BSD-3-Clause
42
+ */
43
+ function $(r) {
44
+ return i({ ...r, state: !0, attribute: !1 });
45
+ }
46
+ /*! * Lucero - The design system for Luzmo.
47
+ *
48
+ * Copyright © 2025 Luzmo
49
+ * All rights reserved.
50
+ * Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
51
+ * This license allows users with a current active Luzmo account to use Lucero.
52
+ * This license terminates automatically if a user no longer has an active Luzmo account.
53
+ * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
54
+ *
55
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
56
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
57
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
58
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
59
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
60
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
61
+ * SOFTWARE.
62
+ * */
63
+ /**
64
+ * @license
65
+ * Copyright 2017 Google LLC
66
+ * SPDX-License-Identifier: BSD-3-Clause
67
+ */
68
+ const u = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4 }, A = (r) => (...t) => ({ _$litDirective$: r, values: t });
69
+ class o {
70
+ constructor(t) {
71
+ }
72
+ get _$AU() {
73
+ return this._$AM._$AU;
74
+ }
75
+ _$AT(t, e, s) {
76
+ this._$Ct = t, this._$AM = e, this._$Ci = s;
77
+ }
78
+ _$AS(t, e) {
79
+ return this.update(t, e);
80
+ }
81
+ update(t, e) {
82
+ return this.render(...e);
83
+ }
84
+ }
85
+ /*! * Lucero - The design system for Luzmo.
86
+ *
87
+ * Copyright © 2025 Luzmo
88
+ * All rights reserved.
89
+ * Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
90
+ * This license allows users with a current active Luzmo account to use Lucero.
91
+ * This license terminates automatically if a user no longer has an active Luzmo account.
92
+ * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
93
+ *
94
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
95
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
96
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
97
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
98
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
99
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
100
+ * SOFTWARE.
101
+ * */
102
+ /**
103
+ * @license
104
+ * Copyright 2020 Google LLC
105
+ * SPDX-License-Identifier: BSD-3-Clause
106
+ */
107
+ const T = (r) => r.strings === void 0, n = {}, a = (r, t = n) => r._$AH = t;
108
+ export {
109
+ o as $,
110
+ A as _,
111
+ a as f,
112
+ $ as n,
113
+ T as r,
114
+ u as s
115
+ };
@@ -0,0 +1,70 @@
1
+ import '@luzmo/lucero/divider';
2
+ import '@luzmo/lucero/field-label';
3
+ import '@luzmo/lucero/icon';
4
+ import '@luzmo/lucero/multi-language-field';
5
+ import '@luzmo/lucero/progress-circle';
6
+ import '@luzmo/lucero/text-field';
7
+ import { LuzmoElement } from '@luzmo/lucero/utils';
8
+ import { CSSResultArray, PropertyValues, TemplateResult } from 'lit';
9
+ declare const LuzmoDisplaySettings_base: typeof LuzmoElement & {
10
+ new (...args: any[]): import("@luzmo/lucero").SizedElementInterface;
11
+ prototype: import("@luzmo/lucero").SizedElementInterface;
12
+ };
13
+ /**
14
+ * @element luzmo-display-settings
15
+ * @fires slot-content-changed - Event that is fired when the slot content is changed
16
+ */
17
+ export declare class LuzmoDisplaySettings extends LuzmoDisplaySettings_base {
18
+ static get styles(): CSSResultArray;
19
+ private _loadDisplaySettings;
20
+ /**
21
+ * The language of the settings interface
22
+ */
23
+ language: string;
24
+ /**
25
+ * The language to use for locale-aware formatting and labels
26
+ */
27
+ contentLanguage: string;
28
+ /**
29
+ * Whether or not to show the displaySettings. Is used to hide display Settings in cases where there are multiple columns
30
+ */
31
+ hideDisplaySettings?: boolean;
32
+ /**
33
+ * Whether or not to show the binning in numeric
34
+ */
35
+ binningDisabled?: boolean;
36
+ /**
37
+ * Whether or not to show the grand totals
38
+ */
39
+ grandTotals?: boolean;
40
+ /**
41
+ * Whether or not to show the period-over-period in numeric
42
+ */
43
+ periodOverPeriod?: boolean;
44
+ /**
45
+ * Whether or not to show the trash button next to the label
46
+ */
47
+ showRemoveButton?: boolean;
48
+ /**
49
+ * The slot type
50
+ */
51
+ slotType?: string;
52
+ slotContent: any;
53
+ private _showIds;
54
+ /**
55
+ * The list of columns that can be used for the rate aggregation
56
+ */
57
+ measureColumns: any[];
58
+ private _multiLanguageFieldElement;
59
+ private _settingsTypeLoaded;
60
+ private _currentSlotContent;
61
+ protected willUpdate(changedProperties: PropertyValues): void;
62
+ private _onSlotContentChange;
63
+ private _onLabelChange;
64
+ private _sendEvent;
65
+ private _removeEvent;
66
+ private _toggleIds;
67
+ private _renderDisplaySettings;
68
+ protected render(): TemplateResult | TemplateResult<1> | undefined;
69
+ }
70
+ export {};
@@ -0,0 +1,105 @@
1
+ /*! * A kit of modern Luzmo Web Components for analytics in your web application.
2
+ *
3
+ * Copyright © 2024 Luzmo
4
+ * All rights reserved.
5
+ * Luzmo web components (“Luzmo Web Components”)
6
+ * must be used according to the Luzmo Terms of Service.
7
+ * This license allows users with a current active Luzmo account
8
+ * to use the Luzmo Web Components. This license terminates
9
+ * automatically if a user no longer has an active Luzmo account.
10
+ * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
11
+ *
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
+ * SOFTWARE.
19
+ * */
20
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("../task-HFsHfTra.cjs");require("../index-ON4x-yZ7.cjs");require("../index-C_3Ak4MQ.cjs");require("../index-liTHhAef.cjs");require("../index-gfU9TGd5.cjs");require("../index-3ewegRbb.cjs");require("../index-B0cBkCaq.cjs");const t=require("../property-Su1Q6aME.cjs"),g=require("../sized-mixin-PyCYpyQq-sKzDjc75.cjs"),c=require("../state-ByiKNRhp.cjs"),m=require("../query-D5qWDopr.cjs"),a=require("../luzmo-icons-BrtBl3E5.cjs"),v=":host{font-family:var(--luzmo-display-settings-font-family, var(--luzmo-font-family));font-size:var(--luzmo-display-settings-font-size, var(--display-settings-font-size));color:var(--luzmo-display-settings-font-color, var(--luzmo-font-color))}.settings-container{display:flex;flex-direction:column;gap:var(--luzmo-spacing-2)}.settings-row{display:flex;justify-content:flex-start;align-items:center;gap:var(--luzmo-display-settings-gap, var(--display-settings-gap))}luzmo-divider{margin:var(--luzmo-display-settings-ids-container-vertical-margin, var(--display-settings-ids-container-vertical-margin)) 0}.setting{display:flex;align-items:center}.label-action-container{display:flex;align-items:center;justify-content:space-between;gap:var(--luzmo-display-settings-info-to-remove-icon-gap, var(--display-settings-info-to-remove-icon-gap))}.id-button,.remove-button{outline:none;cursor:pointer;border:none;background:none;font-size:var(--luzmo-display-settings-font-size, var(--display-settings-font-size));color:var(--luzmo-display-settings-font-color, var(--luzmo-font-color))}.remove-button{display:block;width:var(--luzmo-display-settings-remove-button-size, var(--display-settings-remove-button-size));height:var(--luzmo-display-settings-remove-button-size, var(--display-settings-remove-button-size));border-radius:var(--luzmo-display-settings-remove-button-border-radius, 50%)}.remove-button:hover{background-color:var(--luzmo-display-settings-remove-button-background-color-hover, var(--luzmo-background-color-hover))}.remove-button:active,.remove-button:focus{background-color:var(--luzmo-display-settings-remove-button-background-color-down, var(--luzmo-background-color-down))}.remove-button:focus-visible{box-shadow:0 0 0 var(--luzmo-display-settings-remove-button-indicator-thickness, var(--display-settings-remove-button-indicator-thickness)) var(--highcontrast-remove-button-indicator-color, var(--luzmo-display-settings-remove-button-indicator-color, var(--display-settings-remove-button-indicator-color)))}.ids-container{display:flex;flex-direction:column;gap:var(--luzmo-display-settings-gap, var(--display-settings-gap));border-radius:50%}.id-label{text-transform:var(--luzmo-display-settings-id-label-text-transform, var(--display-settings-id-label-text-transform));font-size:var(--luzmo-display-settings-id-label-font-size, var(--display-settings-id-label-font-size));color:var(--luzmo-display-settings-id-label-color, var(--display-settings-id-label-color))}:host{--display-settings-font-family: var(--luzmo-font-family);--display-settings-id-label-text-transform: uppercase;--display-settings-id-label-color: var(--luzmo-secondary);--display-settings-remove-button-indicator-color: var(--luzmo-primary);--display-settings-remove-button-indicator-thickness: var( --luzmo-border-width )}:host{--display-settings-font-size: var(--luzmo-font-size);--display-settings-id-label-font-size: var(--luzmo-font-size-s);--display-settings-gap: var(--luzmo-spacing-3);--display-settings-ids-container-vertical-margin: var(--luzmo-spacing-4);--display-settings-info-to-remove-icon-gap: var(--luzmo-spacing-5);--display-settings-remove-button-size: var(--luzmo-component-height)}:host([size=s]){--display-settings-id-label-font-size: var(--luzmo-font-size-s);--display-settings-font-size: var(--luzmo-font-size-s);--display-settings-gap: var(--luzmo-spacing-3);--display-settings-ids-container-vertical-margin: var(--luzmo-spacing-3);--display-settings-info-to-remove-icon-gap: var(--luzmo-spacing-4);--display-settings-remove-button-size: var(--luzmo-component-height-s)}:host([size=l]){--display-settings-id-label-font-size: var(--luzmo-font-size);--display-settings-font-size: var(--luzmo-font-size-l);--display-settings-gap: var(--luzmo-spacing-4);--display-settings-ids-container-vertical-margin: var(--luzmo-spacing-5);--display-settings-info-to-remove-icon-gap: calc( var(--luzmo-spacing-5) + var(--luzmo-spacing-1) );--display-settings-remove-button-size: var(--luzmo-component-height-l)}:host([size=xl]){--display-settings-id-label-font-size: var(--luzmo-font-size-l);--display-settings-font-size: var(--luzmo-font-size-xl);--display-settings-gap: var(--luzmo-spacing-5);--display-settings-ids-container-vertical-margin: calc( var(--luzmo-spacing-5) + var(--luzmo-spacing-1) );--display-settings-info-to-remove-icon-gap: calc( var(--luzmo-spacing-5) + var(--luzmo-spacing-2) );--display-settings-remove-button-size: var(--luzmo-component-height-xl)}";var h=Object.defineProperty,n=(l,e,o,d)=>{for(var i=void 0,r=l.length-1,u;r>=0;r--)(u=l[r])&&(i=u(e,o,i)||i);return i&&h(e,o,i),i};class s extends g.m(t.I,{validSizes:Object.values(g.d)}){constructor(){super(...arguments),this._loadDisplaySettings=new p.h(this,{task:async([e,o,d])=>{const i=[];this.grandTotals&&i.push("grandTotals"),this.periodOverPeriod&&i.push("periodOverPeriod"),(o==="numeric"||o==="mixed"&&(e==null?void 0:e.type)==="numeric")&&i.push("numeric"),o!=="numeric"&&(e==null?void 0:e.type)==="datetime"&&i.push("datetime"),!["numeric","mixed"].includes(o??"")&&(e==null?void 0:e.type)==="numeric"&&!this.binningDisabled&&i.push("binning"),i.length>0&&!d&&(i.includes("numeric")&&!this._settingsTypeLoaded.numeric?(await Promise.resolve().then(()=>require("../display-settings-numeric/index.cjs")),this._settingsTypeLoaded.numeric=!0):i.includes("datetime")&&!this._settingsTypeLoaded.datetime?(await Promise.resolve().then(()=>require("../display-settings-datetime/index.cjs")),this._settingsTypeLoaded.periodOverPeriod=!0):i.includes("binning")&&!this._settingsTypeLoaded.binning?(await Promise.resolve().then(()=>require("../display-settings-binning/index.cjs")),this._settingsTypeLoaded.binning=!0):i.includes("grandTotals")&&!this._settingsTypeLoaded.grandTotals?(await Promise.resolve().then(()=>require("../display-settings-grand-totals/index.cjs")),this._settingsTypeLoaded.grandTotals=!0):i.includes("periodOverPeriod")&&!this._settingsTypeLoaded.periodOverPeriod&&(await Promise.resolve().then(()=>require("../display-settings-period-over-period/index.cjs")),this._settingsTypeLoaded.periodOverPeriod=!0))},args:()=>[this.slotContent,this.slotType,this.hideDisplaySettings]}),this.language="en",this.contentLanguage="en",this.slotType="numeric",this.slotContent={},this._showIds=!1,this.measureColumns=[],this._settingsTypeLoaded={binning:!1,datetime:!1,numeric:!1,grandTotals:!1,periodOverPeriod:!1,hierarchy:!0},this._currentSlotContent={}}static get styles(){return[t.r(v)]}willUpdate(e){e.has("slotContent")&&(this._currentSlotContent=structuredClone(this.slotContent))}_onSlotContentChange(e){e.stopPropagation(),e.preventDefault(),this._currentSlotContent=structuredClone(e.detail.slotContent),this._sendEvent()}_onLabelChange(){this._currentSlotContent=structuredClone(this._currentSlotContent),this._currentSlotContent.label=this._multiLanguageFieldElement.value||{},this._sendEvent()}_sendEvent(){this.dispatchEvent(new CustomEvent("slot-content-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContent:{...this._currentSlotContent}}}))}_removeEvent(){this.dispatchEvent(new CustomEvent("remove-slot-content",{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContent:this._currentSlotContent}}))}_toggleIds(){this._showIds=!this._showIds}_renderDisplaySettings(){return t.x`<div class="settings-container">
21
+ <div class="settings-row">
22
+ <div class="setting">
23
+ <div class="label-container">
24
+ <luzmo-field-label side-aligned="start" .size=${this.size}
25
+ >Label:</luzmo-field-label
26
+ >
27
+ <luzmo-multi-language-field
28
+ .language=${this.language}
29
+ .value=${this._currentSlotContent.label}
30
+ .size=${this.size}
31
+ debounce="200"
32
+ @change=${this._onLabelChange}
33
+ ></luzmo-multi-language-field>
34
+ </div>
35
+ <div class="label-action-container">
36
+ <button class="id-button" @click=${this._toggleIds}>
37
+ ${a.O2(a.p1)}
38
+ <luzmo-tooltip self-managed placement="top" size=${this.size}>
39
+ Show dataset and column id's
40
+ </luzmo-tooltip>
41
+ </button>
42
+ ${this.showRemoveButton?t.x`<button
43
+ class="remove-button"
44
+ @click=${this._removeEvent}
45
+ >
46
+ ${a.O2(a.v1)}
47
+ <luzmo-tooltip
48
+ self-managed
49
+ placement="top"
50
+ size=${this.size}
51
+ >
52
+ Remove
53
+ </luzmo-tooltip>
54
+ </button>`:""}
55
+ </div>
56
+ </div>
57
+ </div>
58
+ ${this.grandTotals?t.x`<luzmo-display-settings-grand-totals
59
+ .language=${this.language}
60
+ .slotContent=${this._currentSlotContent}
61
+ .size=${this.size}
62
+ @slot-content-changed=${this._onSlotContentChange}
63
+ ></luzmo-display-settings-grand-totals>`:""}
64
+ ${this.slotType==="numeric"||this.slotType==="mixed"&&this.slotContent.type==="numeric"?t.x`<luzmo-display-settings-numeric
65
+ .language=${this.language}
66
+ .slotContent=${this._currentSlotContent}
67
+ .size=${this.size}
68
+ .measureColumns=${this.measureColumns}
69
+ @slot-content-changed=${this._onSlotContentChange}
70
+ ></luzmo-display-settings-numeric>`:""}
71
+ ${this.slotType!=="numeric"&&this.slotContent.type==="datetime"?t.x`<luzmo-display-settings-datetime
72
+ .language=${this.language}
73
+ .contentLanguage=${this.contentLanguage}
74
+ .slotContent=${this._currentSlotContent}
75
+ .size=${this.size}
76
+ @slot-content-changed=${this._onSlotContentChange}
77
+ ></luzmo-display-settings-datetime>`:""}
78
+ ${!["numeric","mixed"].includes(this.slotType??"")&&this.slotContent.type==="numeric"&&!this.binningDisabled?t.x`<luzmo-display-settings-binning
79
+ .language=${this.language}
80
+ .slotContent=${this._currentSlotContent}
81
+ .size=${this.size}
82
+ @slot-content-changed=${this._onSlotContentChange}
83
+ ></luzmo-display-settings-binning>`:""}
84
+ ${this.periodOverPeriod?t.x`<luzmo-display-settings-period-over-period
85
+ .language=${this.language}
86
+ .slotContent=${this._currentSlotContent}
87
+ .size=${this.size}
88
+ @slot-content-changed=${this._onSlotContentChange}
89
+ ></luzmo-display-settings-period-over-period>`:""}
90
+ </div>
91
+ ${this._showIds?t.x` <luzmo-divider></luzmo-divider>
92
+ <div class="ids-container">
93
+ <div>
94
+ <span class="id-label">Column: </span>
95
+ ${this._currentSlotContent.columnId??this._currentSlotContent.column}
96
+ </div>
97
+ <div>
98
+ <span class="id-label">Dataset: </span>
99
+ ${this._currentSlotContent.datasetId??this._currentSlotContent.set}
100
+ </div>
101
+ <div></div>
102
+ </div>`:""}`}render(){return this._loadDisplaySettings.render({pending:()=>t.x`<luzmo-progress-circle
103
+ indeterminate
104
+ .size=${this.size}
105
+ ></luzmo-progress-circle>`,complete:()=>this._renderDisplaySettings(),error:()=>this._renderDisplaySettings()})}}n([t.n({type:String})],s.prototype,"language");n([t.n({type:String,attribute:"content-language"})],s.prototype,"contentLanguage");n([t.n({type:Boolean,attribute:"hide-display-settings"})],s.prototype,"hideDisplaySettings");n([t.n({type:Boolean,attribute:"binning-disabled"})],s.prototype,"binningDisabled");n([t.n({type:Boolean,attribute:"grand-totals"})],s.prototype,"grandTotals");n([t.n({type:Boolean,attribute:"period-over-period"})],s.prototype,"periodOverPeriod");n([t.n({type:Boolean,attribute:"show-remove-button"})],s.prototype,"showRemoveButton");n([t.n({type:String,attribute:"slot-type"})],s.prototype,"slotType");n([t.n()],s.prototype,"slotContent");n([c.r()],s.prototype,"_showIds");n([t.n({type:Array,reflect:!1})],s.prototype,"measureColumns");n([m.e("luzmo-multi-language-field")],s.prototype,"_multiLanguageFieldElement");customElements.get("luzmo-display-settings")||customElements.define("luzmo-display-settings",s);exports.LuzmoDisplaySettings=s;
@@ -0,0 +1,7 @@
1
+ import { LuzmoDisplaySettings } from './display-settings';
2
+ declare global {
3
+ interface HTMLElementTagNameMap {
4
+ 'luzmo-display-settings': LuzmoDisplaySettings;
5
+ }
6
+ }
7
+ export { LuzmoDisplaySettings } from './display-settings';
@@ -0,0 +1,238 @@
1
+ /*! * A kit of modern Luzmo Web Components for analytics in your web application.
2
+ *
3
+ * Copyright © 2024 Luzmo
4
+ * All rights reserved.
5
+ * Luzmo web components (“Luzmo Web Components”)
6
+ * must be used according to the Luzmo Terms of Service.
7
+ * This license allows users with a current active Luzmo account
8
+ * to use the Luzmo Web Components. This license terminates
9
+ * automatically if a user no longer has an active Luzmo account.
10
+ * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
11
+ *
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
+ * SOFTWARE.
19
+ * */
20
+ import { h as g } from "../task-BPD0PyaQ.js";
21
+ import "../index-BqTdFs1o.js";
22
+ import "../index-B5VaT0lQ.js";
23
+ import "../index-BC-nmKjU.js";
24
+ import "../index-B2N_PZf3.js";
25
+ import "../index-Cp-lHUlX.js";
26
+ import "../index-B2z7i1-X.js";
27
+ import { I as p, r as z, x as n, n as s } from "../property-CD3dwBJC.js";
28
+ import { m as h, d as v } from "../sized-mixin-PyCYpyQq-B40Ek2UB.js";
29
+ import { r as b } from "../state-B1a8XIDm.js";
30
+ import { e as f } from "../query-Ddbd72Um.js";
31
+ import { O as m, p as y, v as x } from "../luzmo-icons-CZEpXpvy.js";
32
+ const c = () => {
33
+ if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
34
+ const l = document.createElement("style");
35
+ l.setAttribute("data-luzmo-vars", ""), l.textContent = 'html{--luzmo-animation-duration: 0.15s;--luzmo-border-color: rgba(var(--luzmo-border-color-rgb), 0.1);--luzmo-border-color-hover: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-down: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-border-color-focus: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-rgb: 0, 0, 0;--luzmo-border-color-full: rgb(180, 180, 180);--luzmo-border-color-full-hover: rgb(140, 140, 140);--luzmo-border-color-full-down: rgb(110, 110, 110);--luzmo-border-color-full-focus: rgb(140, 140, 140);--luzmo-border-color-disabled: #dddddd;--luzmo-border-radius: 6px;--luzmo-border-radius-s: 4px;--luzmo-border-radius-l: 8px;--luzmo-border-radius-xl: 12px;--luzmo-border-radius-full: 999rem;--luzmo-background-color: #ffffff;--luzmo-background-color-rgb: 255, 255, 255;--luzmo-background-color-disabled: #eeeeee;--luzmo-background-color-hover: #f0f0fc;--luzmo-background-color-down: #f1f1ff;--luzmo-background-color-focus: #f0f0fc;--luzmo-background-color-highlight: rgb(240, 240, 240);--luzmo-background-color-highlight-disabled: rgb(245, 245, 245);--luzmo-background-color-highlight-hover: rgb(225, 225, 225);--luzmo-background-color-highlight-down: rgb(215, 215, 215);--luzmo-background-color-highlight-focus: rgb(225, 225, 225);--luzmo-border-width: 1px;--luzmo-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;--luzmo-font-size-xs: 10px;--luzmo-font-size-s: 12px;--luzmo-font-size-m: 14px;--luzmo-font-size: 14px;--luzmo-font-size-l: 16px;--luzmo-font-size-xl: 18px;--luzmo-font-size-xxl: 20px;--luzmo-font-style: normal;--luzmo-line-height: normal;--luzmo-font-weight: 400;--luzmo-font-weight-semibold: 500;--luzmo-font-weight-bold: 600;--luzmo-font-color: #333;--luzmo-font-color-hard: #000;--luzmo-font-color-disabled: var(--luzmo-color-disabled);--luzmo-font-color-extra-dimmed: #888;--luzmo-font-color-hover: #333;--luzmo-font-color-down: #111;--luzmo-font-color-focus: #333;--luzmo-primary: #4434ff;--luzmo-primary-hover: #4234e4;--luzmo-primary-down: #392cc7;--luzmo-primary-focus: #4234e4;--luzmo-primary-inverse-color: #ffffff;--luzmo-primary-rgb: 68, 52, 255;--luzmo-secondary: #ff00ff;--luzmo-secondary-hover: #e309e3;--luzmo-secondary-down: #c711c7;--luzmo-secondary-focus: #e309e3;--luzmo-secondary-inverse-color: #ffffff;--luzmo-secondary-rgb: 255, 0, 255;--luzmo-color-negative: #ca221c;--luzmo-color-negative-hover: #b3241f;--luzmo-color-negative-down: #9f231f;--luzmo-color-negative-focus: #b3241f;--luzmo-color-negative-rgb: 202, 34, 28;--luzmo-color-positive: rgb(20, 150, 101);--luzmo-color-positive-hover: rgb(17, 128, 86);--luzmo-color-positive-down: rgb(16, 105, 71);--luzmo-color-positive-focus: rgb(17, 128, 86);--luzmo-color-positive-rgb: 20, 150, 101;--luzmo-color-selected: rgb(110, 110, 110);--luzmo-color-selected-hover: rgb(70, 70, 70);--luzmo-color-selected-down: rgb(40, 40, 40);--luzmo-color-selected-focus: rgb(70, 70, 70);--luzmo-color-selected-hard: #1e1e1e;--luzmo-color-selected-hard-hover: rgb(0, 0, 0);--luzmo-color-selected-hard-down: rgb(0, 0, 0);--luzmo-color-selected-hard-focus: rgb(0, 0, 0);--luzmo-color-informative: #1a77e9;--luzmo-color-informative-rgb: 26, 119, 233;--luzmo-color-disabled: #aaaaaa;--luzmo-spacing-1: 2px;--luzmo-spacing-2: 4px;--luzmo-spacing-3: 8px;--luzmo-spacing-4: 12px;--luzmo-spacing-5: 16px;--luzmo-indicator-gap: 2px;--luzmo-indicator-width: 1px;--luzmo-indicator-color: var(--luzmo-primary);--luzmo-component-height-xxs: 20px;--luzmo-component-height-xs: 24px;--luzmo-component-height-s: 28px;--luzmo-component-height: 32px;--luzmo-component-height-l: 40px;--luzmo-component-height-xl: 48px;--luzmo-component-height-xxl: 64px;--luzmo-icon-size-xxs: 12px;--luzmo-icon-size-xs: 14px;--luzmo-icon-size-s: 16px;--luzmo-icon-size-m: 18px;--luzmo-icon-size-l: 20px;--luzmo-icon-size-xl: 22px;--luzmo-icon-size-xxl: 32px}', document.head.appendChild(l);
36
+ }
37
+ };
38
+ c();
39
+ const _ = ":host{font-family:var(--luzmo-display-settings-font-family, var(--luzmo-font-family));font-size:var(--luzmo-display-settings-font-size, var(--display-settings-font-size));color:var(--luzmo-display-settings-font-color, var(--luzmo-font-color))}.settings-container{display:flex;flex-direction:column;gap:var(--luzmo-spacing-2)}.settings-row{display:flex;justify-content:flex-start;align-items:center;gap:var(--luzmo-display-settings-gap, var(--display-settings-gap))}luzmo-divider{margin:var(--luzmo-display-settings-ids-container-vertical-margin, var(--display-settings-ids-container-vertical-margin)) 0}.setting{display:flex;align-items:center}.label-action-container{display:flex;align-items:center;justify-content:space-between;gap:var(--luzmo-display-settings-info-to-remove-icon-gap, var(--display-settings-info-to-remove-icon-gap))}.id-button,.remove-button{outline:none;cursor:pointer;border:none;background:none;font-size:var(--luzmo-display-settings-font-size, var(--display-settings-font-size));color:var(--luzmo-display-settings-font-color, var(--luzmo-font-color))}.remove-button{display:block;width:var(--luzmo-display-settings-remove-button-size, var(--display-settings-remove-button-size));height:var(--luzmo-display-settings-remove-button-size, var(--display-settings-remove-button-size));border-radius:var(--luzmo-display-settings-remove-button-border-radius, 50%)}.remove-button:hover{background-color:var(--luzmo-display-settings-remove-button-background-color-hover, var(--luzmo-background-color-hover))}.remove-button:active,.remove-button:focus{background-color:var(--luzmo-display-settings-remove-button-background-color-down, var(--luzmo-background-color-down))}.remove-button:focus-visible{box-shadow:0 0 0 var(--luzmo-display-settings-remove-button-indicator-thickness, var(--display-settings-remove-button-indicator-thickness)) var(--highcontrast-remove-button-indicator-color, var(--luzmo-display-settings-remove-button-indicator-color, var(--display-settings-remove-button-indicator-color)))}.ids-container{display:flex;flex-direction:column;gap:var(--luzmo-display-settings-gap, var(--display-settings-gap));border-radius:50%}.id-label{text-transform:var(--luzmo-display-settings-id-label-text-transform, var(--display-settings-id-label-text-transform));font-size:var(--luzmo-display-settings-id-label-font-size, var(--display-settings-id-label-font-size));color:var(--luzmo-display-settings-id-label-color, var(--display-settings-id-label-color))}:host{--display-settings-font-family: var(--luzmo-font-family);--display-settings-id-label-text-transform: uppercase;--display-settings-id-label-color: var(--luzmo-secondary);--display-settings-remove-button-indicator-color: var(--luzmo-primary);--display-settings-remove-button-indicator-thickness: var( --luzmo-border-width )}:host{--display-settings-font-size: var(--luzmo-font-size);--display-settings-id-label-font-size: var(--luzmo-font-size-s);--display-settings-gap: var(--luzmo-spacing-3);--display-settings-ids-container-vertical-margin: var(--luzmo-spacing-4);--display-settings-info-to-remove-icon-gap: var(--luzmo-spacing-5);--display-settings-remove-button-size: var(--luzmo-component-height)}:host([size=s]){--display-settings-id-label-font-size: var(--luzmo-font-size-s);--display-settings-font-size: var(--luzmo-font-size-s);--display-settings-gap: var(--luzmo-spacing-3);--display-settings-ids-container-vertical-margin: var(--luzmo-spacing-3);--display-settings-info-to-remove-icon-gap: var(--luzmo-spacing-4);--display-settings-remove-button-size: var(--luzmo-component-height-s)}:host([size=l]){--display-settings-id-label-font-size: var(--luzmo-font-size);--display-settings-font-size: var(--luzmo-font-size-l);--display-settings-gap: var(--luzmo-spacing-4);--display-settings-ids-container-vertical-margin: var(--luzmo-spacing-5);--display-settings-info-to-remove-icon-gap: calc( var(--luzmo-spacing-5) + var(--luzmo-spacing-1) );--display-settings-remove-button-size: var(--luzmo-component-height-l)}:host([size=xl]){--display-settings-id-label-font-size: var(--luzmo-font-size-l);--display-settings-font-size: var(--luzmo-font-size-xl);--display-settings-gap: var(--luzmo-spacing-5);--display-settings-ids-container-vertical-margin: calc( var(--luzmo-spacing-5) + var(--luzmo-spacing-1) );--display-settings-info-to-remove-icon-gap: calc( var(--luzmo-spacing-5) + var(--luzmo-spacing-2) );--display-settings-remove-button-size: var(--luzmo-component-height-xl)}";
40
+ var C = Object.defineProperty, i = (l, o, r, u) => {
41
+ for (var t = void 0, a = l.length - 1, d; a >= 0; a--)
42
+ (d = l[a]) && (t = d(o, r, t) || t);
43
+ return t && C(o, r, t), t;
44
+ };
45
+ class e extends h(p, {
46
+ validSizes: Object.values(v)
47
+ }) {
48
+ constructor() {
49
+ super(...arguments), this._loadDisplaySettings = new g(this, {
50
+ task: async ([o, r, u]) => {
51
+ const t = [];
52
+ this.grandTotals && t.push("grandTotals"), this.periodOverPeriod && t.push("periodOverPeriod"), (r === "numeric" || r === "mixed" && (o == null ? void 0 : o.type) === "numeric") && t.push("numeric"), r !== "numeric" && (o == null ? void 0 : o.type) === "datetime" && t.push("datetime"), !["numeric", "mixed"].includes(r ?? "") && (o == null ? void 0 : o.type) === "numeric" && !this.binningDisabled && t.push("binning"), t.length > 0 && !u && (t.includes("numeric") && !this._settingsTypeLoaded.numeric ? (await import("../display-settings-numeric/index.js"), this._settingsTypeLoaded.numeric = !0) : t.includes("datetime") && !this._settingsTypeLoaded.datetime ? (await import("../display-settings-datetime/index.js"), this._settingsTypeLoaded.periodOverPeriod = !0) : t.includes("binning") && !this._settingsTypeLoaded.binning ? (await import("../display-settings-binning/index.js"), this._settingsTypeLoaded.binning = !0) : t.includes("grandTotals") && !this._settingsTypeLoaded.grandTotals ? (await import("../display-settings-grand-totals/index.js"), this._settingsTypeLoaded.grandTotals = !0) : t.includes("periodOverPeriod") && !this._settingsTypeLoaded.periodOverPeriod && (await import("../display-settings-period-over-period/index.js"), this._settingsTypeLoaded.periodOverPeriod = !0));
53
+ },
54
+ args: () => [this.slotContent, this.slotType, this.hideDisplaySettings]
55
+ }), this.language = "en", this.contentLanguage = "en", this.slotType = "numeric", this.slotContent = {}, this._showIds = !1, this.measureColumns = [], this._settingsTypeLoaded = {
56
+ binning: !1,
57
+ datetime: !1,
58
+ numeric: !1,
59
+ grandTotals: !1,
60
+ periodOverPeriod: !1,
61
+ hierarchy: !0
62
+ }, this._currentSlotContent = {};
63
+ }
64
+ static get styles() {
65
+ return [z(_)];
66
+ }
67
+ willUpdate(o) {
68
+ o.has("slotContent") && (this._currentSlotContent = structuredClone(this.slotContent));
69
+ }
70
+ _onSlotContentChange(o) {
71
+ o.stopPropagation(), o.preventDefault(), this._currentSlotContent = structuredClone(o.detail.slotContent), this._sendEvent();
72
+ }
73
+ _onLabelChange() {
74
+ this._currentSlotContent = structuredClone(this._currentSlotContent), this._currentSlotContent.label = this._multiLanguageFieldElement.value || {}, this._sendEvent();
75
+ }
76
+ _sendEvent() {
77
+ this.dispatchEvent(
78
+ new CustomEvent("slot-content-changed", {
79
+ bubbles: !0,
80
+ composed: !0,
81
+ cancelable: !0,
82
+ detail: {
83
+ slotContent: { ...this._currentSlotContent }
84
+ }
85
+ })
86
+ );
87
+ }
88
+ _removeEvent() {
89
+ this.dispatchEvent(
90
+ new CustomEvent("remove-slot-content", {
91
+ bubbles: !0,
92
+ composed: !0,
93
+ cancelable: !0,
94
+ detail: {
95
+ slotContent: this._currentSlotContent
96
+ }
97
+ })
98
+ );
99
+ }
100
+ _toggleIds() {
101
+ this._showIds = !this._showIds;
102
+ }
103
+ _renderDisplaySettings() {
104
+ return n`<div class="settings-container">
105
+ <div class="settings-row">
106
+ <div class="setting">
107
+ <div class="label-container">
108
+ <luzmo-field-label side-aligned="start" .size=${this.size}
109
+ >Label:</luzmo-field-label
110
+ >
111
+ <luzmo-multi-language-field
112
+ .language=${this.language}
113
+ .value=${this._currentSlotContent.label}
114
+ .size=${this.size}
115
+ debounce="200"
116
+ @change=${this._onLabelChange}
117
+ ></luzmo-multi-language-field>
118
+ </div>
119
+ <div class="label-action-container">
120
+ <button class="id-button" @click=${this._toggleIds}>
121
+ ${m(y)}
122
+ <luzmo-tooltip self-managed placement="top" size=${this.size}>
123
+ Show dataset and column id's
124
+ </luzmo-tooltip>
125
+ </button>
126
+ ${this.showRemoveButton ? n`<button
127
+ class="remove-button"
128
+ @click=${this._removeEvent}
129
+ >
130
+ ${m(x)}
131
+ <luzmo-tooltip
132
+ self-managed
133
+ placement="top"
134
+ size=${this.size}
135
+ >
136
+ Remove
137
+ </luzmo-tooltip>
138
+ </button>` : ""}
139
+ </div>
140
+ </div>
141
+ </div>
142
+ ${this.grandTotals ? n`<luzmo-display-settings-grand-totals
143
+ .language=${this.language}
144
+ .slotContent=${this._currentSlotContent}
145
+ .size=${this.size}
146
+ @slot-content-changed=${this._onSlotContentChange}
147
+ ></luzmo-display-settings-grand-totals>` : ""}
148
+ ${this.slotType === "numeric" || this.slotType === "mixed" && this.slotContent.type === "numeric" ? n`<luzmo-display-settings-numeric
149
+ .language=${this.language}
150
+ .slotContent=${this._currentSlotContent}
151
+ .size=${this.size}
152
+ .measureColumns=${this.measureColumns}
153
+ @slot-content-changed=${this._onSlotContentChange}
154
+ ></luzmo-display-settings-numeric>` : ""}
155
+ ${this.slotType !== "numeric" && this.slotContent.type === "datetime" ? n`<luzmo-display-settings-datetime
156
+ .language=${this.language}
157
+ .contentLanguage=${this.contentLanguage}
158
+ .slotContent=${this._currentSlotContent}
159
+ .size=${this.size}
160
+ @slot-content-changed=${this._onSlotContentChange}
161
+ ></luzmo-display-settings-datetime>` : ""}
162
+ ${!["numeric", "mixed"].includes(this.slotType ?? "") && this.slotContent.type === "numeric" && !this.binningDisabled ? n`<luzmo-display-settings-binning
163
+ .language=${this.language}
164
+ .slotContent=${this._currentSlotContent}
165
+ .size=${this.size}
166
+ @slot-content-changed=${this._onSlotContentChange}
167
+ ></luzmo-display-settings-binning>` : ""}
168
+ ${this.periodOverPeriod ? n`<luzmo-display-settings-period-over-period
169
+ .language=${this.language}
170
+ .slotContent=${this._currentSlotContent}
171
+ .size=${this.size}
172
+ @slot-content-changed=${this._onSlotContentChange}
173
+ ></luzmo-display-settings-period-over-period>` : ""}
174
+ </div>
175
+ ${this._showIds ? n` <luzmo-divider></luzmo-divider>
176
+ <div class="ids-container">
177
+ <div>
178
+ <span class="id-label">Column: </span>
179
+ ${this._currentSlotContent.columnId ?? this._currentSlotContent.column}
180
+ </div>
181
+ <div>
182
+ <span class="id-label">Dataset: </span>
183
+ ${this._currentSlotContent.datasetId ?? this._currentSlotContent.set}
184
+ </div>
185
+ <div></div>
186
+ </div>` : ""}`;
187
+ }
188
+ render() {
189
+ return this._loadDisplaySettings.render({
190
+ pending: () => n`<luzmo-progress-circle
191
+ indeterminate
192
+ .size=${this.size}
193
+ ></luzmo-progress-circle>`,
194
+ complete: () => this._renderDisplaySettings(),
195
+ error: () => this._renderDisplaySettings()
196
+ });
197
+ }
198
+ }
199
+ i([
200
+ s({ type: String })
201
+ ], e.prototype, "language");
202
+ i([
203
+ s({ type: String, attribute: "content-language" })
204
+ ], e.prototype, "contentLanguage");
205
+ i([
206
+ s({ type: Boolean, attribute: "hide-display-settings" })
207
+ ], e.prototype, "hideDisplaySettings");
208
+ i([
209
+ s({ type: Boolean, attribute: "binning-disabled" })
210
+ ], e.prototype, "binningDisabled");
211
+ i([
212
+ s({ type: Boolean, attribute: "grand-totals" })
213
+ ], e.prototype, "grandTotals");
214
+ i([
215
+ s({ type: Boolean, attribute: "period-over-period" })
216
+ ], e.prototype, "periodOverPeriod");
217
+ i([
218
+ s({ type: Boolean, attribute: "show-remove-button" })
219
+ ], e.prototype, "showRemoveButton");
220
+ i([
221
+ s({ type: String, attribute: "slot-type" })
222
+ ], e.prototype, "slotType");
223
+ i([
224
+ s()
225
+ ], e.prototype, "slotContent");
226
+ i([
227
+ b()
228
+ ], e.prototype, "_showIds");
229
+ i([
230
+ s({ type: Array, reflect: !1 })
231
+ ], e.prototype, "measureColumns");
232
+ i([
233
+ f("luzmo-multi-language-field")
234
+ ], e.prototype, "_multiLanguageFieldElement");
235
+ customElements.get("luzmo-display-settings") || customElements.define("luzmo-display-settings", e);
236
+ export {
237
+ e as LuzmoDisplaySettings
238
+ };
@@ -0,0 +1,32 @@
1
+ import '@luzmo/lucero/action-button';
2
+ import '@luzmo/lucero/field-label';
3
+ import '@luzmo/lucero/icon';
4
+ import '@luzmo/lucero/number-field';
5
+ import { LuzmoElement } from '@luzmo/lucero/utils';
6
+ import { CSSResultArray, PropertyValues, TemplateResult } from 'lit';
7
+ declare const LuzmoDisplaySettingsBinning_base: typeof LuzmoElement & {
8
+ new (...args: any[]): import("@luzmo/lucero").SizedElementInterface;
9
+ prototype: import("@luzmo/lucero").SizedElementInterface;
10
+ };
11
+ /**
12
+ * @element luzmo-display-settings-binning
13
+ * @fires slot-content-changed - Event that is fired when the slot content is changed
14
+ */
15
+ export declare class LuzmoDisplaySettingsBinning extends LuzmoDisplaySettingsBinning_base {
16
+ static get styles(): CSSResultArray;
17
+ /**
18
+ * The language used in the settings
19
+ */
20
+ language?: string;
21
+ slotContent: any;
22
+ private _enabled?;
23
+ private _binWidth?;
24
+ private binWidthElement;
25
+ protected willUpdate(changedProperties: PropertyValues): void;
26
+ private toggleBinning;
27
+ private setBinning;
28
+ private sendEvent;
29
+ private renderBinWidth;
30
+ protected render(): TemplateResult;
31
+ }
32
+ export {};
@@ -0,0 +1,51 @@
1
+ /*! * A kit of modern Luzmo Web Components for analytics in your web application.
2
+ *
3
+ * Copyright © 2024 Luzmo
4
+ * All rights reserved.
5
+ * Luzmo web components (“Luzmo Web Components”)
6
+ * must be used according to the Luzmo Terms of Service.
7
+ * This license allows users with a current active Luzmo account
8
+ * to use the Luzmo Web Components. This license terminates
9
+ * automatically if a user no longer has an active Luzmo account.
10
+ * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
11
+ *
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
+ * SOFTWARE.
19
+ * */
20
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-CtHO6VyI.cjs");require("../index-C_3Ak4MQ.cjs");require("../index-liTHhAef.cjs");require("../index-D9vzXhtJ.cjs");const n=require("../property-Su1Q6aME.cjs"),g=require("../sized-mixin-PyCYpyQq-sKzDjc75.cjs"),u=require("../luzmo-icons-BrtBl3E5.cjs"),b=require("../state-ByiKNRhp.cjs"),c=require("../query-D5qWDopr.cjs"),h=require("../if-defined-DMSuo5Qx.cjs"),p=":host .settings-container{display:flex;flex-direction:column;gap:var(--luzmo-spacing-2)}:host .settings-row{display:flex;justify-content:flex-start;align-items:center;gap:var(--luzmo-display-settings-binning-gap, var(--display-settings-binning-gap))}:host{--display-settings-binning-gap: var(--luzmo-spacing-3)}:host([size=s]){--display-settings-binning-gap: var(--luzmo-spacing-3)}:host([size=l]){--display-settings-binning-gap: var(--luzmo-spacing-4)}:host([size=xl]){--display-settings-binning-gap: var(--luzmo-spacing-5)}";var m=Object.defineProperty,o=(a,i,l,r)=>{for(var e=void 0,t=a.length-1,d;t>=0;t--)(d=a[t])&&(e=d(i,l,e)||e);return e&&m(i,l,e),e};class s extends g.m(n.I,{validSizes:Object.values(g.d)}){constructor(){super(...arguments),this.slotContent={}}static get styles(){return[n.r(p)]}willUpdate(i){var l,r,e,t;i.has("slotContent")&&(this._enabled=((r=(l=this.slotContent)==null?void 0:l.bins)==null?void 0:r.enabled)??!1,this._binWidth=((t=(e=this.slotContent)==null?void 0:e.bins)==null?void 0:t.number)??10)}toggleBinning(){this._enabled=!this._enabled,this.sendEvent()}setBinning(){this._binWidth=this.binWidthElement.value,this.sendEvent()}sendEvent(){const i={enabled:!!this._enabled,number:this._binWidth??10};this.dispatchEvent(new CustomEvent("slot-content-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContent:{...this.slotContent,bins:i}}}))}renderBinWidth(){return n.x`<div class="setting">
21
+ <luzmo-field-label for="bin-width">Bin width</luzmo-field-label>
22
+ <luzmo-number-field
23
+ id="bin-width"
24
+ min="0"
25
+ value=${this._binWidth??10}
26
+ .size=${this.size}
27
+ @change=${this.setBinning}
28
+ ></luzmo-number-field>
29
+ </div>`}render(){return n.x`<div class="settings-container">
30
+ <div class="settings-row">
31
+ <div class="setting">
32
+ <luzmo-field-label for="binning">Binning</luzmo-field-label>
33
+ <luzmo-action-button
34
+ id="binning"
35
+ toggles
36
+ emphasized
37
+ .size=${this.size}
38
+ ?selected=${this._enabled}
39
+ class=${h.o(this._enabled?"active":"inactive")}
40
+ @click=${this.toggleBinning}
41
+ >
42
+ <luzmo-icon
43
+ slot="icon"
44
+ .icon=${this._enabled?u.C0:u.h0}
45
+ ></luzmo-icon>
46
+ ${this._enabled?"Enabled":"Disabled"}
47
+ </luzmo-action-button>
48
+ </div>
49
+ ${this._enabled?this.renderBinWidth():""}
50
+ </div>
51
+ </div>`}}o([n.n({type:String,reflect:!0})],s.prototype,"language");o([n.n()],s.prototype,"slotContent");o([b.r()],s.prototype,"_enabled");o([c.e("#bin-width")],s.prototype,"binWidthElement");customElements.get("luzmo-display-settings-binning")||customElements.define("luzmo-display-settings-binning",s);exports.LuzmoDisplaySettingsBinning=s;