@luzmo/analytics-components-kit 1.0.1-alpha.85 → 1.0.1-alpha.86

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 (251) hide show
  1. package/angular/README.md +1 -0
  2. package/angular/components/ai-interaction-textarea.component.ts +2 -0
  3. package/angular/components/dataset-icon.component.ts +21 -0
  4. package/angular/components/dataset-selector-row.component.ts +2 -0
  5. package/angular/esm/components/ai-interaction-textarea.component.d.ts +2 -1
  6. package/angular/esm/components/ai-interaction-textarea.component.js +7 -2
  7. package/angular/esm/components/dataset-icon.component.d.ts +9 -0
  8. package/angular/esm/components/dataset-icon.component.js +36 -0
  9. package/angular/esm/components/dataset-selector-row.component.d.ts +2 -1
  10. package/angular/esm/components/dataset-selector-row.component.js +7 -2
  11. package/angular/esm/index.d.ts +3 -1
  12. package/angular/esm/index.js +3 -0
  13. package/angular/esm/types.d.ts +14 -0
  14. package/angular/index.ts +3 -0
  15. package/angular/types.ts +13 -0
  16. package/components/ai-chat-messages-container/index.cjs +1 -1
  17. package/components/ai-chat-messages-container/index.js +2 -2
  18. package/components/ai-interaction-textarea/ai-interaction-textarea.d.ts +7 -1
  19. package/components/ai-interaction-textarea/index.cjs +32 -28
  20. package/components/ai-interaction-textarea/index.js +62 -49
  21. package/components/area-chart-options.config-C7sMAHco.cjs +20 -0
  22. package/components/{area-chart-options.config-u8itidsi.js → area-chart-options.config-_J0sG4NF.js} +26 -14
  23. package/components/{bar-chart-options.config-DIirbAJ0.js → bar-chart-options.config-D1mb5TDl.js} +35 -21
  24. package/components/bar-chart-options.config-DcxEkOT5.cjs +20 -0
  25. package/components/box-plot-options.config-SrrbDEYW.cjs +20 -0
  26. package/components/{box-plot-options.config-BWROiguA.js → box-plot-options.config-xu_i6ms7.js} +88 -52
  27. package/components/{bubble-chart-options.config-4QD8VPhU.js → bubble-chart-options.config-BacgXkJ_.js} +18 -9
  28. package/components/bubble-chart-options.config-Ihn6eVQI.cjs +20 -0
  29. package/components/{bullet-chart-options.config-3bH7uekx.js → bullet-chart-options.config-CDPpX1yc.js} +1 -1
  30. package/components/{bullet-chart-options.config-tWb6Fio-.cjs → bullet-chart-options.config-DfS4Bwds.cjs} +1 -1
  31. package/components/calculate-data-item-icon-DZDqb3xu.js +139 -0
  32. package/components/{calculate-data-item-icon-CX4VW9Km.cjs → calculate-data-item-icon-DjW1_RI1.cjs} +1 -1
  33. package/components/{choropleth-map-options.config-CMxx3ORp.js → choropleth-map-options.config-B_W9-rhe.js} +84 -63
  34. package/components/choropleth-map-options.config-ZW8yoZH2.cjs +20 -0
  35. package/components/{circular-gauge-options.config-DhIKn44k.js → circular-gauge-options.config-DAIjz4Rl.js} +36 -23
  36. package/components/circular-gauge-options.config-msZ4mfpN.cjs +20 -0
  37. package/components/color-B6LaL8qz.cjs +20 -0
  38. package/components/{color-B7m0j8lX.js → color-DuJ4-73S.js} +950 -941
  39. package/components/{color-range-utils-BSfqtB3A.js → color-range-utils-Bvo9sm5A.js} +32 -31
  40. package/components/color-range-utils-C5yXW7ZC.cjs +20 -0
  41. package/components/{column-chart-options.config-D5-yR7iq.js → column-chart-options.config-B5SjBVdy.js} +37 -27
  42. package/components/column-chart-options.config-BjDvA7i9.cjs +20 -0
  43. package/components/{conditional-number-options.config-DPYsdML5.js → conditional-number-options.config-BCEpSK9J.js} +40 -24
  44. package/components/conditional-number-options.config-DgzUo0xi.cjs +20 -0
  45. package/components/dataset-icon/dataset-icon.d.ts +45 -0
  46. package/components/dataset-icon/index.cjs +60 -0
  47. package/components/dataset-icon/index.d.ts +7 -0
  48. package/components/dataset-icon/index.js +167 -0
  49. package/components/dataset-selector-list/dataset-selector-list.d.ts +1 -0
  50. package/components/dataset-selector-list/index.cjs +10 -8
  51. package/components/dataset-selector-list/index.js +68 -68
  52. package/components/dataset-selector-row/dataset-selector-row.d.ts +7 -0
  53. package/components/dataset-selector-row/index.cjs +21 -18
  54. package/components/dataset-selector-row/index.js +63 -57
  55. package/components/{date-comparison-filter-options.config-QaoWaFUn.cjs → date-comparison-filter-options.config-DAVncmi0.cjs} +1 -1
  56. package/components/{date-comparison-filter-options.config-CSwGyuBg.js → date-comparison-filter-options.config-JA_yYpJa.js} +6 -3
  57. package/components/{date-filter-options.config-n-zhWaYa.cjs → date-filter-options.config-CWPMtA18.cjs} +1 -1
  58. package/components/{date-filter-options.config-BTVyHRkp.js → date-filter-options.config-DBRxlTWy.js} +6 -3
  59. package/components/display-settings/index.cjs +1 -1
  60. package/components/display-settings/index.js +1 -1
  61. package/components/display-settings-binning/index.cjs +5 -5
  62. package/components/display-settings-binning/index.js +30 -29
  63. package/components/display-settings-datetime/index.cjs +29 -29
  64. package/components/display-settings-datetime/index.js +120 -112
  65. package/components/display-settings-grand-totals/index.cjs +4 -4
  66. package/components/display-settings-grand-totals/index.js +24 -23
  67. package/components/display-settings-numeric/index.cjs +48 -48
  68. package/components/display-settings-numeric/index.js +211 -194
  69. package/components/display-settings-period-over-period/index.cjs +16 -16
  70. package/components/display-settings-period-over-period/index.js +97 -91
  71. package/components/{donut-chart-options.config-3ZqX8Cbb.js → donut-chart-options.config-BulUEiaH.js} +37 -21
  72. package/components/donut-chart-options.config-tNpqBZfR.cjs +20 -0
  73. package/components/draggable-data-item/index.cjs +8 -8
  74. package/components/draggable-data-item/index.js +45 -44
  75. package/components/draggable-data-item-level/index.cjs +11 -11
  76. package/components/draggable-data-item-level/index.js +92 -89
  77. package/components/{dropdown-filter-options.config-CGJTtgAX.js → dropdown-filter-options.config-D9dvPypF.js} +10 -7
  78. package/components/{dropdown-filter-options.config-DJvfCTk7.cjs → dropdown-filter-options.config-DS-MORmq.cjs} +1 -1
  79. package/components/droppable-slot/index.cjs +20 -20
  80. package/components/droppable-slot/index.js +181 -167
  81. package/components/edit-item/index.cjs +9 -9
  82. package/components/edit-item/index.js +119 -116
  83. package/components/edit-option/index.cjs +1 -1
  84. package/components/edit-option/index.js +1 -1
  85. package/components/edit-option-action-button-group/index.cjs +8 -8
  86. package/components/edit-option-action-button-group/index.js +53 -52
  87. package/components/{edit-option-base-Bh29-Cak.js → edit-option-base-DIc7iC-b.js} +1 -1
  88. package/components/{edit-option-base-tFr8Qg2B.cjs → edit-option-base-VhTih9T1.cjs} +1 -1
  89. package/components/edit-option-color-palette-picker/index.cjs +1 -1
  90. package/components/edit-option-color-palette-picker/index.js +1 -1
  91. package/components/edit-option-color-picker/index.cjs +1 -1
  92. package/components/edit-option-color-picker/index.js +1 -1
  93. package/components/edit-option-color-range/index.cjs +19 -19
  94. package/components/edit-option-color-range/index.js +117 -106
  95. package/components/edit-option-multi-language-field/index.cjs +3 -3
  96. package/components/edit-option-multi-language-field/index.js +27 -26
  97. package/components/edit-option-number-field/index.cjs +1 -1
  98. package/components/edit-option-number-field/index.js +1 -1
  99. package/components/edit-option-picker/index.cjs +5 -5
  100. package/components/edit-option-picker/index.js +7 -7
  101. package/components/edit-option-position-picker/index.cjs +4 -4
  102. package/components/edit-option-position-picker/index.js +25 -21
  103. package/components/edit-option-positions-number-field/index.cjs +9 -9
  104. package/components/edit-option-positions-number-field/index.js +81 -76
  105. package/components/edit-option-radio-button-group/index.cjs +6 -6
  106. package/components/edit-option-radio-button-group/index.js +22 -21
  107. package/components/edit-option-slider/index.cjs +1 -1
  108. package/components/edit-option-slider/index.js +1 -1
  109. package/components/edit-option-switch/index.cjs +1 -1
  110. package/components/edit-option-switch/index.js +1 -1
  111. package/components/edit-option-text-field/index.cjs +2 -2
  112. package/components/edit-option-text-field/index.js +23 -22
  113. package/components/en-BKBhKBXY.cjs +20 -0
  114. package/components/en-BOTjhwEc.js +1488 -0
  115. package/components/{en-GB-CbNfyZMo.js → en-GB-CEHEs8F2.js} +1 -1
  116. package/components/{en-GB-CXVKFWyH.cjs → en-GB-DG6uS3sM.cjs} +1 -1
  117. package/components/{evolution-number-options.config-Bc9eKYnn.cjs → evolution-number-options.config-BgIZY4gQ.cjs} +1 -1
  118. package/components/{evolution-number-options.config-BIPO_4n3.js → evolution-number-options.config-DzkfeoIN.js} +14 -11
  119. package/components/{extrapolate-color-C0n1UDs-.cjs → extrapolate-color-0j_AeYkz.cjs} +1 -1
  120. package/components/{extrapolate-color-v1PimdQr.js → extrapolate-color-CC9CURf6.js} +1 -1
  121. package/components/filter-data-item-picker/index.cjs +7 -7
  122. package/components/filter-data-item-picker/index.js +86 -85
  123. package/components/filter-expression-picker/index.cjs +1 -1
  124. package/components/filter-expression-picker/index.js +1 -1
  125. package/components/filter-item/index.cjs +6 -6
  126. package/components/filter-item/index.js +119 -109
  127. package/components/filter-value-picker/index.cjs +2 -2
  128. package/components/filter-value-picker/index.js +36 -34
  129. package/components/filter-value-picker-datetime/index.cjs +8 -8
  130. package/components/filter-value-picker-datetime/index.js +71 -56
  131. package/components/filter-value-picker-hierarchy/index.cjs +12 -12
  132. package/components/filter-value-picker-hierarchy/index.js +124 -113
  133. package/components/filter-value-picker-numeric/index.cjs +8 -8
  134. package/components/filter-value-picker-numeric/index.js +110 -101
  135. package/components/focusable-B3E_hQmm.cjs +20 -0
  136. package/components/{focusable-BS2pbY7w.js → focusable-DCIFkpiW.js} +26 -24
  137. package/components/{funnel-chart-options.config-CrJy2U7_.js → funnel-chart-options.config-C_VjTOvD.js} +20 -5
  138. package/components/funnel-chart-options.config-D7H7gFcx.cjs +20 -0
  139. package/components/{get-css-variable-CuDaWSjr.cjs → get-css-variable-DLiZYZEi.cjs} +2 -2
  140. package/components/{get-css-variable-DEf4GhTH.js → get-css-variable-YlLiVgo8.js} +4 -4
  141. package/components/grid/index.cjs +46 -46
  142. package/components/grid/index.js +1873 -2612
  143. package/components/{heat-map-options.config-CmL87j1j.js → heat-map-options.config-BnLWe8jS.js} +41 -35
  144. package/components/heat-map-options.config-DVH-Bb5-.cjs +20 -0
  145. package/components/heat-table-options.config-B12JEYnp.cjs +20 -0
  146. package/components/{heat-table-options.config-BrCYAgYD.js → heat-table-options.config-CUsDdgUr.js} +88 -60
  147. package/components/helpers-DXQwEH1P.cjs +20 -0
  148. package/components/helpers-v1bPALRP.js +91 -0
  149. package/components/hexbin-map-options.config-DZERRhM8.cjs +20 -0
  150. package/components/{hexbin-map-options.config-BguV1w8q.js → hexbin-map-options.config-F-7uCqxb.js} +38 -20
  151. package/components/index-BPN3bG9X.js +1733 -0
  152. package/components/{index-BNAmjOkm.cjs → index-BPNsFiyq.cjs} +4 -4
  153. package/components/index-CQ9ck-BO.cjs +249 -0
  154. package/components/index-CXn67vdn.cjs +121 -0
  155. package/components/{index-haa7WNrl.js → index-CdIUfo-L.js} +481 -453
  156. package/components/{index-3WsfvkZF.js → index-Do7O9azB.js} +123 -112
  157. package/components/{index-BDFBUGBc.js → index-PMDgRSzR.js} +104 -94
  158. package/components/index-cfj52IbK.cjs +20 -0
  159. package/components/index.cjs +1 -1
  160. package/components/index.js +90 -88
  161. package/components/item-options-configs.cjs +1 -1
  162. package/components/item-options-configs.js +37 -37
  163. package/components/{line-chart-options.config-BhirTGqD.js → line-chart-options.config-DB3IsXXr.js} +28 -13
  164. package/components/line-chart-options.config-DSugoe0t.cjs +20 -0
  165. package/components/{localize-CcDpq940.js → localize-BX7q0S0M.js} +10 -10
  166. package/components/{localize-C4zNlrwK.cjs → localize-r7ALOUy_.cjs} +1 -1
  167. package/components/{marker-map-options.config-Bx17jmiq.js → marker-map-options.config-DPJ955tt.js} +1 -1
  168. package/components/{marker-map-options.config-CvhCylSC.cjs → marker-map-options.config-_FYZzRwA.cjs} +1 -1
  169. package/components/pivot-table-options.config-BiJXKSFR.cjs +20 -0
  170. package/components/{pivot-table-options.config-CFc7y0IT.js → pivot-table-options.config-DNK_AIG7.js} +24 -15
  171. package/components/pyramid-chart-options.config-C4zbFS26.cjs +20 -0
  172. package/components/{pyramid-chart-options.config-2Waxb11l.js → pyramid-chart-options.config-CcVMatYx.js} +43 -29
  173. package/components/{radar-chart-options.config-CPN5fOl8.js → radar-chart-options.config-CUZn_3Fd.js} +23 -11
  174. package/components/radar-chart-options.config-EqQu6PTh.cjs +20 -0
  175. package/components/{regular-table-options.config-CFKCJQK1.js → regular-table-options.config-BoLZsBry.js} +23 -17
  176. package/components/{regular-table-options.config-YRuoijIk.cjs → regular-table-options.config-DTx3RTnS.cjs} +1 -1
  177. package/components/{route-map-options.config-CyolTJfK.js → route-map-options.config-CN86T7c0.js} +109 -87
  178. package/components/route-map-options.config-D7NJePTu.cjs +20 -0
  179. package/components/{sankey-diagram-options.config-D7OSvSqm.cjs → sankey-diagram-options.config-RFB83YLZ.cjs} +1 -1
  180. package/components/{sankey-diagram-options.config-Ldjk84ro.js → sankey-diagram-options.config-tVLKy_Zn.js} +10 -7
  181. package/components/scatter-plot-options.config-CFfGJXsV.cjs +20 -0
  182. package/components/{scatter-plot-options.config-CfxEfkQ1.js → scatter-plot-options.config-Corlzno1.js} +86 -56
  183. package/components/{search-filter-options.config-Oqco9BKj.cjs → search-filter-options.config-BCaDlYqZ.cjs} +1 -1
  184. package/components/{search-filter-options.config-C0syQmP4.js → search-filter-options.config-BE3JhR-F.js} +6 -3
  185. package/components/{set-locale-nv7fWEtl.js → set-locale-B-Tz2sdI.js} +8 -1
  186. package/components/{slicer-filter-options.config-DmOe3440.js → slicer-filter-options.config-3JZZcw5C.js} +18 -9
  187. package/components/slicer-filter-options.config-DNI-XevE.cjs +20 -0
  188. package/components/{slider-filter-options.config-B1M8RcDs.js → slider-filter-options.config-DH4SS8wH.js} +1 -1
  189. package/components/{slider-filter-options.config-k45I-t6G.cjs → slider-filter-options.config-_8Z2zKmU.cjs} +1 -1
  190. package/components/slot-contents-picker/index.cjs +33 -33
  191. package/components/slot-contents-picker/index.js +205 -194
  192. package/components/slot-menu/index.cjs +12 -12
  193. package/components/slot-menu/index.js +184 -171
  194. package/components/slot-menu-list/index.cjs +3 -3
  195. package/components/slot-menu-list/index.js +103 -97
  196. package/components/speedometer-chart-options.config-BX9LTQBH.cjs +20 -0
  197. package/components/{speedometer-chart-options.config-CzOmuEF8.js → speedometer-chart-options.config-SL581yOa.js} +53 -31
  198. package/components/{spike-map-options.config-Cbt1YUw6.js → spike-map-options.config-C5KewecZ.js} +122 -91
  199. package/components/spike-map-options.config-DoBFXPmN.cjs +20 -0
  200. package/components/{sunburst-chart-options.config-Yrxc2i57.cjs → sunburst-chart-options.config-AbNjWS6t.cjs} +1 -1
  201. package/components/{sunburst-chart-options.config-_dyLQxPJ.js → sunburst-chart-options.config-CNauGQJv.js} +20 -9
  202. package/components/{symbol-map-options.config-BORL1NSU.js → symbol-map-options.config-DdDA4aa7.js} +20 -11
  203. package/components/symbol-map-options.config-m-lwLTtu.cjs +20 -0
  204. package/components/treemap-chart-options.config-C0Q9aQ1Z.cjs +20 -0
  205. package/components/{treemap-chart-options.config-B9i9qIm_.js → treemap-chart-options.config-D5AJaF_u.js} +37 -20
  206. package/components/utils.cjs +1 -1
  207. package/components/utils.js +65 -64
  208. package/components/{video-options.config-B0asgYt8.cjs → video-options.config-CGsDTwHc.cjs} +1 -1
  209. package/components/{video-options.config-UX-9MDfS.js → video-options.config-Dk36zJ1B.js} +10 -7
  210. package/components/{wordcloud-chart-options.config-BKtJT8Va.cjs → wordcloud-chart-options.config-vGfCW8kE.cjs} +1 -1
  211. package/components/{wordcloud-chart-options.config-BoB_KuhA.js → wordcloud-chart-options.config-w2NUIWVA.js} +7 -4
  212. package/custom-elements.json +154 -20
  213. package/index.d.ts +1 -0
  214. package/package.json +6 -1
  215. package/types.d.ts +14 -0
  216. package/components/area-chart-options.config-Bl8bhhOo.cjs +0 -20
  217. package/components/bar-chart-options.config-CePAqM83.cjs +0 -20
  218. package/components/box-plot-options.config-BVNrV2eD.cjs +0 -20
  219. package/components/bubble-chart-options.config-BDgOe3GQ.cjs +0 -20
  220. package/components/calculate-data-item-icon-C8CbsMQf.js +0 -139
  221. package/components/choropleth-map-options.config-CWJACFd0.cjs +0 -20
  222. package/components/circular-gauge-options.config-BMxgq3zH.cjs +0 -20
  223. package/components/color-Czp4Im5q.cjs +0 -20
  224. package/components/color-range-utils-DYYR-iwx.cjs +0 -20
  225. package/components/column-chart-options.config-BV9R3ssH.cjs +0 -20
  226. package/components/conditional-number-options.config-Co099Qfm.cjs +0 -20
  227. package/components/donut-chart-options.config-BQyPgnC9.cjs +0 -20
  228. package/components/en--a5SfjnM.cjs +0 -20
  229. package/components/en-CtCctD2c.js +0 -1483
  230. package/components/focusable-QLh-LlNt.cjs +0 -20
  231. package/components/funnel-chart-options.config-DrP4AFgk.cjs +0 -20
  232. package/components/heat-map-options.config-CIHnPdYE.cjs +0 -20
  233. package/components/heat-table-options.config-DTlZRc_i.cjs +0 -20
  234. package/components/helpers-9I0oLoUB.cjs +0 -20
  235. package/components/helpers-bR8Ibjqh.js +0 -79
  236. package/components/hexbin-map-options.config-CKnn3VAB.cjs +0 -20
  237. package/components/index-BGb_wRRW.js +0 -1766
  238. package/components/index-BUal0r_D.cjs +0 -121
  239. package/components/index-D1Y5TRsH.cjs +0 -20
  240. package/components/index-DvkzMbLt.cjs +0 -249
  241. package/components/line-chart-options.config-Cqwou5u6.cjs +0 -20
  242. package/components/pivot-table-options.config-uZDAertf.cjs +0 -20
  243. package/components/pyramid-chart-options.config-DoGfEvzU.cjs +0 -20
  244. package/components/radar-chart-options.config-CtNUMN1l.cjs +0 -20
  245. package/components/route-map-options.config-CVTk5RVL.cjs +0 -20
  246. package/components/scatter-plot-options.config-5gN7pMTm.cjs +0 -20
  247. package/components/slicer-filter-options.config-CrusP6a0.cjs +0 -20
  248. package/components/speedometer-chart-options.config-B4ceg_qI.cjs +0 -20
  249. package/components/spike-map-options.config-BkkDqb4g.cjs +0 -20
  250. package/components/symbol-map-options.config-NpBKm64d.cjs +0 -20
  251. package/components/treemap-chart-options.config-x4J54WSw.cjs +0 -20
@@ -25,15 +25,15 @@ import "@luzmo/lucero/icon";
25
25
  import "@luzmo/lucero/number-field";
26
26
  import "@luzmo/lucero/picker";
27
27
  import "@luzmo/lucero/progress-circle";
28
- import { unsafeCSS as b, html as a } from "lit";
29
- import { msg as i, localized as k } from "@lit/localize";
28
+ import { unsafeCSS as b, html as s } from "lit";
29
+ import { msg as l, localized as k } from "@lit/localize";
30
30
  import { luzmoCheckboxChecked as c, luzmoCheckbox as p } from "@luzmo/icons";
31
- import { a as S, S as f, f as _ } from "../en-CtCctD2c.js";
32
- import { a as F, b as z, W as g } from "../periods.const-CjHXYn-w.js";
33
- import { property as d, query as m } from "lit/decorators.js";
34
- import { L as w } from "../focusable-BS2pbY7w.js";
31
+ import { a as S, S as f, f as _ } from "../en-BOTjhwEc.js";
32
+ import { a as w, b as z, W as g } from "../periods.const-CjHXYn-w.js";
33
+ import { property as d, query as n } from "lit/decorators.js";
34
+ import { L as F } from "../focusable-DCIFkpiW.js";
35
35
  import { S as $, E as x } from "../sized-mixin-cJbo3PKR.js";
36
- import { g as A, t as L, s as D } from "../set-locale-nv7fWEtl.js";
36
+ import { g as A, t as L, s as D } from "../set-locale-B-Tz2sdI.js";
37
37
  (function() {
38
38
  if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
39
39
  const e = document.createElement("style");
@@ -41,17 +41,17 @@ import { g as A, t as L, s as D } from "../set-locale-nv7fWEtl.js";
41
41
  }
42
42
  })();
43
43
  const y = {
44
- "~": () => i("Auto", { desc: "Automatic setting of the option" }),
44
+ "~": () => l("Auto", { desc: "Automatic setting of the option" }),
45
45
  "/": () => "/",
46
46
  "-": () => "-",
47
47
  ".": () => "."
48
48
  }, E = ":host{font-family:var(--luzmo-display-settings-datetime-font-family, var(--luzmo-font-family))}:host .settings-container{display:flex;flex-direction:column;gap:var(--luzmo-display-settings-vertical-gap, var(--luzmo-spacing-2))}:host .settings-row{display:flex;justify-content:flex-start;align-items:center;gap:var(--luzmo-display-settings-datetime-gap, var(--display-settings-datetime-gap))}:host{--display-settings-datetime-example-font-size: var(--luzmo-font-size);--display-settings-datetime-example-color: var(--luzmo-font-color);--display-settings-datetime-example-label-font-weight: bold;--display-settings-datetime-example-label-color: var(--luzmo-primary);--display-settings-datetime-example-language-color: var(--luzmo-primary)}:host{--display-settings-datetime-gap: var(--luzmo-spacing-3);--display-settings-datetime-example-height: var(--luzmo-component-height);--display-settings-datetime-example-font-size: var(--luzmo-font-size-s)}:host([size=s]){--display-settings-datetime-gap: var(--luzmo-spacing-3);--display-settings-datetime-example-height: var(--luzmo-component-height-s);--display-settings-datetime-example-font-size: var(--luzmo-font-size-s)}:host([size=l]){--display-settings-datetime-gap: var(--luzmo-spacing-4);--display-settings-datetime-example-height: var(--luzmo-component-height-l);--display-settings-datetime-example-font-size: var(--luzmo-font-size)}:host([size=xl]){--display-settings-datetime-gap: var(--luzmo-spacing-5);--display-settings-datetime-example-height: var(--luzmo-component-height-xl);--display-settings-datetime-example-font-size: var(--luzmo-font-size-l)}";
49
- var M = Object.defineProperty, C = Object.getOwnPropertyDescriptor, l = (t, e, o, r) => {
50
- for (var n = r > 1 ? void 0 : r ? C(e, o) : e, h = t.length - 1, u; h >= 0; h--)
51
- (u = t[h]) && (n = (r ? u(e, o, n) : u(n)) || n);
52
- return r && n && M(e, o, n), n;
49
+ var M = Object.defineProperty, C = Object.getOwnPropertyDescriptor, m = (t, e, o, a) => {
50
+ for (var i = a > 1 ? void 0 : a ? C(e, o) : e, h = t.length - 1, u; h >= 0; h--)
51
+ (u = t[h]) && (i = (a ? u(e, o, i) : u(i)) || i);
52
+ return a && i && M(e, o, i), i;
53
53
  };
54
- let s = class extends $(w, {
54
+ let r = class extends $(F, {
55
55
  validSizes: Object.values(x)
56
56
  }) {
57
57
  constructor() {
@@ -62,9 +62,9 @@ let s = class extends $(w, {
62
62
  "../../utils/formatter/formats/cs.ts": () => import("../cs-DVZ0Tapy.js"),
63
63
  "../../utils/formatter/formats/da.ts": () => import("../da-DHy05oSR.js"),
64
64
  "../../utils/formatter/formats/de.ts": () => import("../de-iM39JlAt.js"),
65
- "../../utils/formatter/formats/en-GB.ts": () => import("../en-GB-CbNfyZMo.js"),
66
- "../../utils/formatter/formats/en-US.ts": () => import("../en-CtCctD2c.js").then((o) => o.e),
67
- "../../utils/formatter/formats/en.ts": () => import("../en-CtCctD2c.js").then((o) => o.b),
65
+ "../../utils/formatter/formats/en-GB.ts": () => import("../en-GB-CEHEs8F2.js"),
66
+ "../../utils/formatter/formats/en-US.ts": () => import("../en-BOTjhwEc.js").then((o) => o.e),
67
+ "../../utils/formatter/formats/en.ts": () => import("../en-BOTjhwEc.js").then((o) => o.b),
68
68
  "../../utils/formatter/formats/es.ts": () => import("../es-KhTq4jX8.js"),
69
69
  "../../utils/formatter/formats/fi.ts": () => import("../fi-Dh_ebgpe.js"),
70
70
  "../../utils/formatter/formats/fr.ts": () => import("../fr-CU727YF1.js"),
@@ -86,7 +86,7 @@ let s = class extends $(w, {
86
86
  });
87
87
  if (e[`../../utils/formatter/formats/${t}.ts`]) {
88
88
  const o = await e[`../../utils/formatter/formats/${t}.ts`]();
89
- this._localeFormats = o?.default ?? {};
89
+ this._localeFormats = (o == null ? void 0 : o.default) ?? {};
90
90
  }
91
91
  return this._contentLanguageLoaded = t, this._localeFormats;
92
92
  }
@@ -109,27 +109,30 @@ let s = class extends $(w, {
109
109
  return [b(E)];
110
110
  }
111
111
  _parseSlotContent() {
112
- this._dateLevel = this.slotContent?.level ?? this.slotContent?.lowestLevel ?? 5, this._displayAs = this.slotContent?.datetimeDisplayMode ?? "default", this._displayAs === "weekday_number" && (this._displayAs = "day_in_week", this._weekDayAndMonthInYearFormat = "number"), this._displayAs === "weekday_name" && (this._displayAs = "day_in_week"), this._displayAs === "month_number" && (this._displayAs = "month_in_year", this._weekDayAndMonthInYearFormat = "number"), this._displayAs === "month_name" && (this._displayAs = "month_in_year"), this._parseSavedFormat();
112
+ var t, e, o;
113
+ this._dateLevel = ((t = this.slotContent) == null ? void 0 : t.level) ?? ((e = this.slotContent) == null ? void 0 : e.lowestLevel) ?? 5, this._displayAs = ((o = this.slotContent) == null ? void 0 : o.datetimeDisplayMode) ?? "default", this._displayAs === "weekday_number" && (this._displayAs = "day_in_week", this._weekDayAndMonthInYearFormat = "number"), this._displayAs === "weekday_name" && (this._displayAs = "day_in_week"), this._displayAs === "month_number" && (this._displayAs = "month_in_year", this._weekDayAndMonthInYearFormat = "number"), this._displayAs === "month_name" && (this._displayAs = "month_in_year"), this._parseSavedFormat();
113
114
  }
114
115
  _parseSavedFormat() {
115
- const t = this.slotContent?.format ?? S, e = t.match(/[./-]/);
116
- if (this._dateSeparator = t.includes("~") ? "~" : e?.[0] ?? "~", t.includes("%amd"))
116
+ var o;
117
+ const t = ((o = this.slotContent) == null ? void 0 : o.format) ?? S, e = t.match(/[./-]/);
118
+ if (this._dateSeparator = t.includes("~") ? "~" : (e == null ? void 0 : e[0]) ?? "~", t.includes("%amd"))
117
119
  this._dateFormat = "auto";
118
120
  else {
119
- const o = t.indexOf("%d"), r = t.indexOf("%m");
120
- o !== -1 && r !== -1 && (this._dateFormat = o < r ? "ddmm" : "mmdd");
121
+ const a = t.indexOf("%d"), i = t.indexOf("%m");
122
+ a !== -1 && i !== -1 && (this._dateFormat = a < i ? "ddmm" : "mmdd");
121
123
  }
122
124
  this._24hFormat = t.includes("%H"), this._monthName = /%B|%b/.test(t), this._weekDay = /%a|%A/.test(t), this._monthName && (this._monthNameFormat = t.includes("%b") ? "short" : "long"), this._weekDay && (this._weekDayAndMonthInYearFormat = t.includes("%a") ? "short" : "long");
123
125
  }
124
126
  _calculateFormat() {
127
+ var o;
125
128
  let t;
126
- const e = this._localeFormats?.smartDateFormats ?? f;
129
+ const e = ((o = this._localeFormats) == null ? void 0 : o.smartDateFormats) ?? f;
127
130
  this._monthName ? (t = e.filter(
128
- (o) => o.monthType === "name" && o.longText === (this._monthNameFormat === "long") && o.weekday === this._weekDay
131
+ (a) => a.monthType === "name" && a.longText === (this._monthNameFormat === "long") && a.weekday === this._weekDay
129
132
  ), t.length > 0 ? this._format = t[0].key : (this._weekDayAndMonthInYearFormat = "short", this._weekDay = !0, this._format = "%a %e %B %Y")) : (t = this._dateLevel && this._dateLevel === 4 ? e.filter(
130
- (o) => o.monthType === "number" && o.mmdd === (this._weekFormat === "mmdd" ? !0 : this._weekFormat === "ddmm" ? !1 : null) && o.separator === this._dateSeparator
133
+ (a) => a.monthType === "number" && a.mmdd === (this._weekFormat === "mmdd" ? !0 : this._weekFormat === "ddmm" ? !1 : null) && a.separator === this._dateSeparator
131
134
  ) : e.filter(
132
- (o) => o.monthType === "number" && o.mmdd === (this._dateFormat === "mmdd" ? !0 : this._dateFormat === "ddmm" ? !1 : null) && o.separator === this._dateSeparator
135
+ (a) => a.monthType === "number" && a.mmdd === (this._dateFormat === "mmdd" ? !0 : this._dateFormat === "ddmm" ? !1 : null) && a.separator === this._dateSeparator
133
136
  ), this._dateFormat === "auto" && this._dateLevel && this._dateLevel !== 4 ? this._format = "%amd" + this._dateSeparator + "%Y" : t.length > 0 ? this._format = t[0].key : (this._dateFormat = "ddmm", this._dateSeparator = "/", this._format = "%d/%m/%Y")), this._dateLevel && this._dateLevel > 5 && (this._format += this._24hFormat ? " %H:%M:%S.%L" : " %I:%M:%S.%L %p");
134
137
  }
135
138
  _setWeekStartsOn() {
@@ -139,16 +142,19 @@ let s = class extends $(w, {
139
142
  this._displayAs = this._displayAsElement.value, this._sendEvent(), this.requestUpdate();
140
143
  }
141
144
  _setWeekdayAndMonthInYearFormat() {
142
- this._weekDayAndMonthInYearFormat = this._weekDayAndMonthInYearFormatElement.selected?.[0] ?? "long", this._sendEvent(), this.requestUpdate();
145
+ var t;
146
+ this._weekDayAndMonthInYearFormat = ((t = this._weekDayAndMonthInYearFormatElement.selected) == null ? void 0 : t[0]) ?? "long", this._sendEvent(), this.requestUpdate();
143
147
  }
144
148
  _setMonthNameFormat() {
145
- this._monthNameFormat = this._monthNameFormatElement.selected?.[0], this._sendEvent(), this.requestUpdate();
149
+ var t;
150
+ this._monthNameFormat = (t = this._monthNameFormatElement.selected) == null ? void 0 : t[0], this._sendEvent(), this.requestUpdate();
146
151
  }
147
152
  _setMonthName() {
148
153
  this._monthName = this._monthNameElement.selected, this._sendEvent(), this.requestUpdate();
149
154
  }
150
155
  _setWeekFormat() {
151
- this._weekFormat = this._weekFormatElement.selected?.[0], this._sendEvent(), this.requestUpdate();
156
+ var t;
157
+ this._weekFormat = (t = this._weekFormatElement.selected) == null ? void 0 : t[0], this._sendEvent(), this.requestUpdate();
152
158
  }
153
159
  _setDateFormat() {
154
160
  this._dateFormat = this._dateFormatElement.value, this._sendEvent(), this.requestUpdate();
@@ -169,14 +175,15 @@ let s = class extends $(w, {
169
175
  t.has("slotContent") && (this._parseSlotContent(), this._calculateSlotContent()), t.has("language") && this.language !== A() && ([...L].includes(this.language ?? "en") || this.language === "en") && D(this.language);
170
176
  }
171
177
  _renderDisplaySettings() {
172
- const t = F?.[`level${this._dateLevel ?? 0}`]?.map(
173
- (e) => a`<luzmo-menu-item value=${e.key}>
174
- ${e.i18n()}
178
+ var e, o;
179
+ const t = (o = (e = w) == null ? void 0 : e[`level${this._dateLevel ?? 0}`]) == null ? void 0 : o.map(
180
+ (a) => s`<luzmo-menu-item value=${a.key}>
181
+ ${a.i18n()}
175
182
  </luzmo-menu-item>`
176
183
  );
177
- return a`<div class="setting">
184
+ return s`<div class="setting">
178
185
  <luzmo-field-label for="display-as"
179
- >${i("Display", {
186
+ >${l("Display", {
180
187
  desc: "Label for display setting"
181
188
  })}</luzmo-field-label
182
189
  >
@@ -194,12 +201,12 @@ let s = class extends $(w, {
194
201
  _renderWeekDayAndMonthNameFormatSettings() {
195
202
  const t = Object.keys(
196
203
  z
197
- ).map((e) => a`<luzmo-action-button value=${e}>
204
+ ).map((e) => s`<luzmo-action-button value=${e}>
198
205
  ${z[e]()}
199
206
  </luzmo-action-button>`);
200
- return a` <div class="setting">
207
+ return s` <div class="setting">
201
208
  <luzmo-field-label for="weekday-and-month-in-year-format"
202
- >${i("Format", {
209
+ >${l("Format", {
203
210
  desc: "Label for format setting"
204
211
  })}</luzmo-field-label
205
212
  >
@@ -217,9 +224,9 @@ let s = class extends $(w, {
217
224
  </div>`;
218
225
  }
219
226
  _renderMonthNameFormatSettings() {
220
- return a` <div class="setting">
227
+ return s` <div class="setting">
221
228
  <luzmo-field-label for="month-name-format"
222
- >${i("Format", {
229
+ >${l("Format", {
223
230
  desc: "Label for format setting"
224
231
  })}</luzmo-field-label
225
232
  >
@@ -233,23 +240,24 @@ let s = class extends $(w, {
233
240
  @change=${this._setMonthNameFormat}
234
241
  >
235
242
  <luzmo-action-button value="short">
236
- ${i("Short", { desc: "Short format option" })}
243
+ ${l("Short", { desc: "Short format option" })}
237
244
  </luzmo-action-button>
238
245
  <luzmo-action-button value="long">
239
- ${i("Long", { desc: "Long format option" })}
246
+ ${l("Long", { desc: "Long format option" })}
240
247
  </luzmo-action-button>
241
248
  </luzmo-action-group>
242
249
  </div>`;
243
250
  }
244
251
  _renderWeekFormatSettings() {
245
- const t = this._localeFormats?.smartDateFormats ?? f, e = t.find(
246
- (r) => r.mmdd === !0 && r.separator === this._dateSeparator && r.monthType === "number"
252
+ var a;
253
+ const t = ((a = this._localeFormats) == null ? void 0 : a.smartDateFormats) ?? f, e = t.find(
254
+ (i) => i.mmdd === !0 && i.separator === this._dateSeparator && i.monthType === "number"
247
255
  ), o = t.find(
248
- (r) => r.mmdd === !1 && r.separator === this._dateSeparator && r.monthType === "number"
256
+ (i) => i.mmdd === !1 && i.separator === this._dateSeparator && i.monthType === "number"
249
257
  );
250
- return a` <div class="setting">
258
+ return s` <div class="setting">
251
259
  <luzmo-field-label for="week-format"
252
- >${i("Format", {
260
+ >${l("Format", {
253
261
  desc: "Label for format setting"
254
262
  })}</luzmo-field-label
255
263
  >
@@ -267,7 +275,7 @@ let s = class extends $(w, {
267
275
  {
268
276
  ...this._currentSlotContent,
269
277
  type: "datetime",
270
- format: o?.key
278
+ format: o == null ? void 0 : o.key
271
279
  },
272
280
  {
273
281
  localFormats: this._localeFormats,
@@ -280,7 +288,7 @@ let s = class extends $(w, {
280
288
  {
281
289
  ...this._currentSlotContent,
282
290
  type: "datetime",
283
- format: e?.key
291
+ format: e == null ? void 0 : e.key
284
292
  },
285
293
  {
286
294
  localFormats: this._localeFormats,
@@ -293,13 +301,13 @@ let s = class extends $(w, {
293
301
  }
294
302
  _renderWeekStartsOnSettings() {
295
303
  const t = Object.keys(g).map(
296
- (e) => a`<luzmo-menu-item value=${e}>
304
+ (e) => s`<luzmo-menu-item value=${e}>
297
305
  ${g[e]()}
298
306
  </luzmo-menu-item>`
299
307
  );
300
- return a`<div class="setting">
308
+ return s`<div class="setting">
301
309
  <luzmo-field-label for="week-start"
302
- >${i("Week starts on", {
310
+ >${l("Week starts on", {
303
311
  desc: "Label for week start setting"
304
312
  })}</luzmo-field-label
305
313
  >
@@ -315,9 +323,9 @@ let s = class extends $(w, {
315
323
  </div>`;
316
324
  }
317
325
  _renderMonthNameSettings() {
318
- return a`<div class="settings-">
326
+ return s`<div class="settings-">
319
327
  <luzmo-field-label for="month-name"
320
- >${i("Month", { desc: "Month format setting" })}</luzmo-field-label
328
+ >${l("Month", { desc: "Month format setting" })}</luzmo-field-label
321
329
  >
322
330
  <luzmo-action-button
323
331
  id="month-name"
@@ -332,15 +340,15 @@ let s = class extends $(w, {
332
340
  .size=${this.size}
333
341
  .icon=${this._monthName ? c : p}
334
342
  ></luzmo-icon>
335
- ${i("Name")}
343
+ ${l("Name")}
336
344
  </luzmo-action-button>
337
345
  </div>`;
338
346
  }
339
347
  _renderDateFormatSettings() {
340
348
  const t = this._dateSeparator === "~" ? "/" : this._dateSeparator;
341
- return a`<div class="setting">
349
+ return s`<div class="setting">
342
350
  <luzmo-field-label for="date-format"
343
- >${i("Format", {
351
+ >${l("Format", {
344
352
  desc: "Label for format setting"
345
353
  })}</luzmo-field-label
346
354
  >
@@ -352,7 +360,7 @@ let s = class extends $(w, {
352
360
  @change=${this._setDateFormat}
353
361
  >
354
362
  <luzmo-menu-item value="auto">
355
- ${i("Auto", { desc: "Automatic setting of the option" })}
363
+ ${l("Auto", { desc: "Automatic setting of the option" })}
356
364
  </luzmo-menu-item>
357
365
  <luzmo-menu-item value="mmdd">12${t}31</luzmo-menu-item>
358
366
  <luzmo-menu-item value="ddmm">31${t}12</luzmo-menu-item>
@@ -361,13 +369,13 @@ let s = class extends $(w, {
361
369
  }
362
370
  _renderSeparatorSettings() {
363
371
  const t = Object.keys(y).map(
364
- (e) => a`<luzmo-menu-item value=${e}>
372
+ (e) => s`<luzmo-menu-item value=${e}>
365
373
  ${y[e]()}
366
374
  </luzmo-menu-item>`
367
375
  );
368
- return a`<div class="setting">
376
+ return s`<div class="setting">
369
377
  <luzmo-field-label for="date-separator"
370
- >${i("Separator", {
378
+ >${l("Separator", {
371
379
  desc: "Label for date separator setting"
372
380
  })}</luzmo-field-label
373
381
  >
@@ -383,9 +391,9 @@ let s = class extends $(w, {
383
391
  </div>`;
384
392
  }
385
393
  _render24hFormatSettings() {
386
- return a`<div class="settings-">
394
+ return s`<div class="settings-">
387
395
  <luzmo-field-label for="format-24h"
388
- >${i("24h", {
396
+ >${l("24h", {
389
397
  desc: "Label for 24h format setting"
390
398
  })}</luzmo-field-label
391
399
  >
@@ -406,9 +414,9 @@ let s = class extends $(w, {
406
414
  </div>`;
407
415
  }
408
416
  _renderWeekdaySettings() {
409
- return a`<div class="settings-">
417
+ return s`<div class="settings-">
410
418
  <luzmo-field-label for="weekday"
411
- >${i("Weekday", {
419
+ >${l("Weekday", {
412
420
  desc: "Label for weekday setting"
413
421
  })}</luzmo-field-label
414
422
  >
@@ -425,20 +433,20 @@ let s = class extends $(w, {
425
433
  .size=${this.size}
426
434
  .icon=${this._weekDay ? c : p}
427
435
  ></luzmo-icon>
428
- ${i("Show")}
436
+ ${l("Show")}
429
437
  </luzmo-action-button>
430
438
  </div>`;
431
439
  }
432
440
  _renderAllSettings() {
433
- return a`<div class="settings-container">
434
- ${this._dateLevel && ![1, 9].includes(this._dateLevel) ? a` <div class="settings-row">
441
+ return s`<div class="settings-container">
442
+ ${this._dateLevel && ![1, 9].includes(this._dateLevel) ? s` <div class="settings-row">
435
443
  ${this._renderDisplaySettings()}
436
444
  ${this._dateLevel && this._dateLevel >= 5 && this._displayAs === "day_in_week" ? this._renderWeekStartsOnSettings() : ""}
437
445
  </div>` : ""}
438
- ${["month_in_year", "day_in_week"].includes(this._displayAs ?? "") ? a` <div class="settings-row">
446
+ ${["month_in_year", "day_in_week"].includes(this._displayAs ?? "") ? s` <div class="settings-row">
439
447
  ${this._renderWeekDayAndMonthNameFormatSettings()}
440
448
  </div>` : ""}
441
- ${this._dateLevel && this._dateLevel > 1 && this._displayAs === "default" ? a` <div class="settings-row">
449
+ ${this._dateLevel && this._dateLevel > 1 && this._displayAs === "default" ? s` <div class="settings-row">
442
450
  ${this._dateLevel && this._dateLevel !== 4 && this._dateLevel !== 2 ? this._renderMonthNameSettings() : ""}
443
451
  ${this._dateLevel && this._dateLevel !== 4 && this._dateLevel > 2 && this._monthName ? this._renderMonthNameFormatSettings() : ""}
444
452
  ${this._dateLevel && this._dateLevel === 4 && !this._monthName ? this._renderWeekFormatSettings() : ""}
@@ -451,7 +459,7 @@ let s = class extends $(w, {
451
459
  }
452
460
  render() {
453
461
  return this._loadLocaleFormatsConfig.render({
454
- pending: () => a`<luzmo-progress-circle
462
+ pending: () => s`<luzmo-progress-circle
455
463
  indeterminate
456
464
  .size=${this.size}
457
465
  ></luzmo-progress-circle>`,
@@ -460,55 +468,55 @@ let s = class extends $(w, {
460
468
  });
461
469
  }
462
470
  };
463
- l([
471
+ m([
464
472
  d({ type: String })
465
- ], s.prototype, "language", 2);
466
- l([
473
+ ], r.prototype, "language", 2);
474
+ m([
467
475
  d({ type: String })
468
- ], s.prototype, "contentLanguage", 2);
469
- l([
476
+ ], r.prototype, "contentLanguage", 2);
477
+ m([
470
478
  d({ type: String })
471
- ], s.prototype, "size", 2);
472
- l([
479
+ ], r.prototype, "size", 2);
480
+ m([
473
481
  d({ type: Object, reflect: !1 })
474
- ], s.prototype, "slotContent", 2);
475
- l([
476
- m("#display-as")
477
- ], s.prototype, "_displayAsElement", 2);
478
- l([
479
- m("#week-start")
480
- ], s.prototype, "_weekStartElement", 2);
481
- l([
482
- m("#weekday-and-month-in-year-format")
483
- ], s.prototype, "_weekDayAndMonthInYearFormatElement", 2);
484
- l([
485
- m("#month-name-format")
486
- ], s.prototype, "_monthNameFormatElement", 2);
487
- l([
488
- m("#month-name")
489
- ], s.prototype, "_monthNameElement", 2);
490
- l([
491
- m("#week-format")
492
- ], s.prototype, "_weekFormatElement", 2);
493
- l([
494
- m("#date-format")
495
- ], s.prototype, "_dateFormatElement", 2);
496
- l([
497
- m("#date-separator")
498
- ], s.prototype, "_dateSeparatorElement", 2);
499
- l([
500
- m("#weekday")
501
- ], s.prototype, "_weekDayElement", 2);
502
- l([
503
- m("#format-24h")
504
- ], s.prototype, "_format24hElement", 2);
505
- s = l([
482
+ ], r.prototype, "slotContent", 2);
483
+ m([
484
+ n("#display-as")
485
+ ], r.prototype, "_displayAsElement", 2);
486
+ m([
487
+ n("#week-start")
488
+ ], r.prototype, "_weekStartElement", 2);
489
+ m([
490
+ n("#weekday-and-month-in-year-format")
491
+ ], r.prototype, "_weekDayAndMonthInYearFormatElement", 2);
492
+ m([
493
+ n("#month-name-format")
494
+ ], r.prototype, "_monthNameFormatElement", 2);
495
+ m([
496
+ n("#month-name")
497
+ ], r.prototype, "_monthNameElement", 2);
498
+ m([
499
+ n("#week-format")
500
+ ], r.prototype, "_weekFormatElement", 2);
501
+ m([
502
+ n("#date-format")
503
+ ], r.prototype, "_dateFormatElement", 2);
504
+ m([
505
+ n("#date-separator")
506
+ ], r.prototype, "_dateSeparatorElement", 2);
507
+ m([
508
+ n("#weekday")
509
+ ], r.prototype, "_weekDayElement", 2);
510
+ m([
511
+ n("#format-24h")
512
+ ], r.prototype, "_format24hElement", 2);
513
+ r = m([
506
514
  k()
507
- ], s);
515
+ ], r);
508
516
  customElements.get("luzmo-display-settings-datetime") || customElements.define(
509
517
  "luzmo-display-settings-datetime",
510
- s
518
+ r
511
519
  );
512
520
  export {
513
- s as LuzmoDisplaySettingsDatetime
521
+ r as LuzmoDisplaySettingsDatetime
514
522
  };
@@ -17,11 +17,11 @@
17
17
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
18
  * SOFTWARE.
19
19
  * */
20
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("@luzmo/lucero/action-button");require("@luzmo/lucero/field-label");require("@luzmo/lucero/icon");const c=require("lit"),a=require("@lit/localize"),u=require("@luzmo/icons"),g=require("lit/decorators.js"),m=require("lit/directives/if-defined.js"),z=require("../focusable-QLh-LlNt.cjs"),p=require("../sized-mixin-DcvJLFeo.cjs"),d=require("../set-locale-BRRalqne.cjs"),h=":host .settings-container{display:flex;flex-direction:column;gap:var(--luzmo-display-settings-vertical-gap, var(--luzmo-spacing-2))}:host .settings-row{display:flex;justify-content:flex-start;align-items:center;gap:var(--luzmo-display-settings-grand-totals-gap, var(--display-settings-grand-totals-gap))}:host{--display-settings-grand-totals-gap: var(--luzmo-spacing-3)}:host([size=s]){--display-settings-grand-totals-gap: var(--luzmo-spacing-3)}:host([size=l]){--display-settings-grand-totals-gap: var(--luzmo-spacing-4)}:host([size=xl]){--display-settings-grand-totals-gap: var(--luzmo-spacing-5)}";var b=Object.defineProperty,v=Object.getOwnPropertyDescriptor,n=(l,t,i,s)=>{for(var e=s>1?void 0:s?v(t,i):t,o=l.length-1,r;o>=0;o--)(r=l[o])&&(e=(s?r(t,i,e):r(e))||e);return s&&e&&b(t,i,e),e};exports.LuzmoDisplaySettingsGrandTotals=class extends p.SizedMixin(z.LuzmoElement,{validSizes:Object.values(p.ElementSizes)}){constructor(){super(...arguments),this.language="en",this.slotContent={}}static get styles(){return[c.unsafeCSS(h)]}willUpdate(t){t.has("slotContent")&&(this._enabled=this.slotContent?.grandTotals?.enabled??!1),t.has("language")&&this.language!==d.getLocale()&&([...d.targetLocales].includes(this.language??"en")||this.language==="en")&&d.setLocale(this.language)}toggleGrandTotals(){this._enabled=!this._enabled,this.sendEvent()}sendEvent(){const t={enabled:!!this._enabled};this.dispatchEvent(new CustomEvent("slot-content-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContent:{...this.slotContent,grandTotals:t}}}))}render(){return c.html`<div class="settings-container">
20
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("@luzmo/lucero/action-button");require("@luzmo/lucero/field-label");require("@luzmo/lucero/icon");const c=require("lit"),n=require("@lit/localize"),u=require("@luzmo/icons"),g=require("lit/decorators.js"),m=require("lit/directives/if-defined.js"),z=require("../focusable-B3E_hQmm.cjs"),p=require("../sized-mixin-DcvJLFeo.cjs"),d=require("../set-locale-BRRalqne.cjs"),h=":host .settings-container{display:flex;flex-direction:column;gap:var(--luzmo-display-settings-vertical-gap, var(--luzmo-spacing-2))}:host .settings-row{display:flex;justify-content:flex-start;align-items:center;gap:var(--luzmo-display-settings-grand-totals-gap, var(--display-settings-grand-totals-gap))}:host{--display-settings-grand-totals-gap: var(--luzmo-spacing-3)}:host([size=s]){--display-settings-grand-totals-gap: var(--luzmo-spacing-3)}:host([size=l]){--display-settings-grand-totals-gap: var(--luzmo-spacing-4)}:host([size=xl]){--display-settings-grand-totals-gap: var(--luzmo-spacing-5)}";var b=Object.defineProperty,v=Object.getOwnPropertyDescriptor,l=(i,t,a,e)=>{for(var s=e>1?void 0:e?v(t,a):t,o=i.length-1,r;o>=0;o--)(r=i[o])&&(s=(e?r(t,a,s):r(s))||s);return e&&s&&b(t,a,s),s};exports.LuzmoDisplaySettingsGrandTotals=class extends p.SizedMixin(z.LuzmoElement,{validSizes:Object.values(p.ElementSizes)}){constructor(){super(...arguments),this.language="en",this.slotContent={}}static get styles(){return[c.unsafeCSS(h)]}willUpdate(t){var a,e;t.has("slotContent")&&(this._enabled=((e=(a=this.slotContent)==null?void 0:a.grandTotals)==null?void 0:e.enabled)??!1),t.has("language")&&this.language!==d.getLocale()&&([...d.targetLocales].includes(this.language??"en")||this.language==="en")&&d.setLocale(this.language)}toggleGrandTotals(){this._enabled=!this._enabled,this.sendEvent()}sendEvent(){const t={enabled:!!this._enabled};this.dispatchEvent(new CustomEvent("slot-content-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContent:{...this.slotContent,grandTotals:t}}}))}render(){return c.html`<div class="settings-container">
21
21
  <div class="settings-row">
22
22
  <div class="setting">
23
23
  <luzmo-field-label for="grand-totals"
24
- >${a.msg("Grand totals",{desc:"Label for grand totals setting in a table"})}</luzmo-field-label
24
+ >${n.msg("Grand totals",{desc:"Label for grand totals setting in a table"})}</luzmo-field-label
25
25
  >
26
26
  <luzmo-action-button
27
27
  id="grand-totals"
@@ -37,8 +37,8 @@
37
37
  .size=${this.size}
38
38
  .icon=${this._enabled?u.luzmoCheckboxChecked:u.luzmoCheckbox}
39
39
  ></luzmo-icon>
40
- ${this._enabled?a.msg("Enabled",{desc:"Option set to enabled"}):a.msg("Disabled",{desc:"Option set to disabled"})}
40
+ ${this._enabled?n.msg("Enabled",{desc:"Option set to enabled"}):n.msg("Disabled",{desc:"Option set to disabled"})}
41
41
  </luzmo-action-button>
42
42
  </div>
43
43
  </div>
44
- </div>`}};n([g.property({type:String,reflect:!0})],exports.LuzmoDisplaySettingsGrandTotals.prototype,"language",2);n([g.property()],exports.LuzmoDisplaySettingsGrandTotals.prototype,"slotContent",2);n([g.state()],exports.LuzmoDisplaySettingsGrandTotals.prototype,"_enabled",2);exports.LuzmoDisplaySettingsGrandTotals=n([a.localized()],exports.LuzmoDisplaySettingsGrandTotals);customElements.get("luzmo-display-settings-grand-totals")||customElements.define("luzmo-display-settings-grand-totals",exports.LuzmoDisplaySettingsGrandTotals);
44
+ </div>`}};l([g.property({type:String,reflect:!0})],exports.LuzmoDisplaySettingsGrandTotals.prototype,"language",2);l([g.property()],exports.LuzmoDisplaySettingsGrandTotals.prototype,"slotContent",2);l([g.state()],exports.LuzmoDisplaySettingsGrandTotals.prototype,"_enabled",2);exports.LuzmoDisplaySettingsGrandTotals=l([n.localized()],exports.LuzmoDisplaySettingsGrandTotals);customElements.get("luzmo-display-settings-grand-totals")||customElements.define("luzmo-display-settings-grand-totals",exports.LuzmoDisplaySettingsGrandTotals);
@@ -25,22 +25,22 @@ import { msg as u, localized as z } from "@lit/localize";
25
25
  import { luzmoCheckboxChecked as g, luzmoCheckbox as p } from "@luzmo/icons";
26
26
  import { property as m, state as b } from "lit/decorators.js";
27
27
  import { ifDefined as f } from "lit/directives/if-defined.js";
28
- import { L as h } from "../focusable-BS2pbY7w.js";
28
+ import { L as h } from "../focusable-DCIFkpiW.js";
29
29
  import { S as v, E as x } from "../sized-mixin-cJbo3PKR.js";
30
- import { g as y, t as w, s as C } from "../set-locale-nv7fWEtl.js";
30
+ import { g as y, t as w, s as C } from "../set-locale-B-Tz2sdI.js";
31
31
  (function() {
32
32
  if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
33
- const l = document.createElement("style");
34
- 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-background-color-alt-1: rgb(250, 250, 250);--luzmo-background-color-alt-2: rgb(239, 239, 239);--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-secondary-outline: rgba(255, 0, 255, 0.2);--luzmo-negative-color: #ca221c;--luzmo-negative-color-hover: #b3241f;--luzmo-negative-color-down: #9f231f;--luzmo-negative-color-focus: #b3241f;--luzmo-negative-color-rgb: 202, 34, 28;--luzmo-positive-color: rgb(20, 150, 101);--luzmo-positive-color-hover: rgb(17, 128, 86);--luzmo-positive-color-down: rgb(16, 105, 71);--luzmo-positive-color-focus: rgb(17, 128, 86);--luzmo-positive-color-rgb: 20, 150, 101;--luzmo-selected-color: rgb(110, 110, 110);--luzmo-selected-color-hover: rgb(70, 70, 70);--luzmo-selected-color-down: rgb(40, 40, 40);--luzmo-selected-color-focus: rgb(70, 70, 70);--luzmo-selected-color-hard: #1e1e1e;--luzmo-selected-color-hard-hover: rgb(0, 0, 0);--luzmo-selected-color-hard-down: rgb(0, 0, 0);--luzmo-selected-color-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);
33
+ const o = document.createElement("style");
34
+ o.setAttribute("data-luzmo-vars", ""), o.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-background-color-alt-1: rgb(250, 250, 250);--luzmo-background-color-alt-2: rgb(239, 239, 239);--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-secondary-outline: rgba(255, 0, 255, 0.2);--luzmo-negative-color: #ca221c;--luzmo-negative-color-hover: #b3241f;--luzmo-negative-color-down: #9f231f;--luzmo-negative-color-focus: #b3241f;--luzmo-negative-color-rgb: 202, 34, 28;--luzmo-positive-color: rgb(20, 150, 101);--luzmo-positive-color-hover: rgb(17, 128, 86);--luzmo-positive-color-down: rgb(16, 105, 71);--luzmo-positive-color-focus: rgb(17, 128, 86);--luzmo-positive-color-rgb: 20, 150, 101;--luzmo-selected-color: rgb(110, 110, 110);--luzmo-selected-color-hover: rgb(70, 70, 70);--luzmo-selected-color-down: rgb(40, 40, 40);--luzmo-selected-color-focus: rgb(70, 70, 70);--luzmo-selected-color-hard: #1e1e1e;--luzmo-selected-color-hard-hover: rgb(0, 0, 0);--luzmo-selected-color-hard-down: rgb(0, 0, 0);--luzmo-selected-color-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(o);
35
35
  }
36
36
  })();
37
37
  const _ = ":host .settings-container{display:flex;flex-direction:column;gap:var(--luzmo-display-settings-vertical-gap, var(--luzmo-spacing-2))}:host .settings-row{display:flex;justify-content:flex-start;align-items:center;gap:var(--luzmo-display-settings-grand-totals-gap, var(--display-settings-grand-totals-gap))}:host{--display-settings-grand-totals-gap: var(--luzmo-spacing-3)}:host([size=s]){--display-settings-grand-totals-gap: var(--luzmo-spacing-3)}:host([size=l]){--display-settings-grand-totals-gap: var(--luzmo-spacing-4)}:host([size=xl]){--display-settings-grand-totals-gap: var(--luzmo-spacing-5)}";
38
- var S = Object.defineProperty, k = Object.getOwnPropertyDescriptor, s = (o, l, a, r) => {
39
- for (var e = r > 1 ? void 0 : r ? k(l, a) : l, n = o.length - 1, i; n >= 0; n--)
40
- (i = o[n]) && (e = (r ? i(l, a, e) : i(e)) || e);
41
- return r && e && S(l, a, e), e;
38
+ var S = Object.defineProperty, k = Object.getOwnPropertyDescriptor, a = (l, o, t, s) => {
39
+ for (var e = s > 1 ? void 0 : s ? k(o, t) : o, n = l.length - 1, i; n >= 0; n--)
40
+ (i = l[n]) && (e = (s ? i(o, t, e) : i(e)) || e);
41
+ return s && e && S(o, t, e), e;
42
42
  };
43
- let t = class extends v(h, {
43
+ let r = class extends v(h, {
44
44
  validSizes: Object.values(x)
45
45
  }) {
46
46
  constructor() {
@@ -49,14 +49,15 @@ let t = class extends v(h, {
49
49
  static get styles() {
50
50
  return [c(_)];
51
51
  }
52
- willUpdate(o) {
53
- o.has("slotContent") && (this._enabled = this.slotContent?.grandTotals?.enabled ?? !1), o.has("language") && this.language !== y() && ([...w].includes(this.language ?? "en") || this.language === "en") && C(this.language);
52
+ willUpdate(l) {
53
+ var o, t;
54
+ l.has("slotContent") && (this._enabled = ((t = (o = this.slotContent) == null ? void 0 : o.grandTotals) == null ? void 0 : t.enabled) ?? !1), l.has("language") && this.language !== y() && ([...w].includes(this.language ?? "en") || this.language === "en") && C(this.language);
54
55
  }
55
56
  toggleGrandTotals() {
56
57
  this._enabled = !this._enabled, this.sendEvent();
57
58
  }
58
59
  sendEvent() {
59
- const o = {
60
+ const l = {
60
61
  enabled: !!this._enabled
61
62
  };
62
63
  this.dispatchEvent(
@@ -67,7 +68,7 @@ let t = class extends v(h, {
67
68
  detail: {
68
69
  slotContent: {
69
70
  ...this.slotContent,
70
- grandTotals: o
71
+ grandTotals: l
71
72
  }
72
73
  }
73
74
  })
@@ -103,22 +104,22 @@ let t = class extends v(h, {
103
104
  </div>`;
104
105
  }
105
106
  };
106
- s([
107
+ a([
107
108
  m({ type: String, reflect: !0 })
108
- ], t.prototype, "language", 2);
109
- s([
109
+ ], r.prototype, "language", 2);
110
+ a([
110
111
  m()
111
- ], t.prototype, "slotContent", 2);
112
- s([
112
+ ], r.prototype, "slotContent", 2);
113
+ a([
113
114
  b()
114
- ], t.prototype, "_enabled", 2);
115
- t = s([
115
+ ], r.prototype, "_enabled", 2);
116
+ r = a([
116
117
  z()
117
- ], t);
118
+ ], r);
118
119
  customElements.get("luzmo-display-settings-grand-totals") || customElements.define(
119
120
  "luzmo-display-settings-grand-totals",
120
- t
121
+ r
121
122
  );
122
123
  export {
123
- t as LuzmoDisplaySettingsGrandTotals
124
+ r as LuzmoDisplaySettingsGrandTotals
124
125
  };