@luzmo/analytics-components-kit 1.0.1-alpha.142 → 1.0.1-alpha.143

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 (182) hide show
  1. package/components/ai-chat/ai-chat.d.ts +8 -1
  2. package/components/ai-chat/index.cjs +1 -1
  3. package/components/ai-chat/index.js +7 -7
  4. package/components/ai-chat-Boiu1Zce.cjs +89 -0
  5. package/components/{ai-chat-DlUYd_Cf.js → ai-chat-CvRO-iWK.js} +111 -73
  6. package/components/ai-interaction-textarea/index.cjs +1 -1
  7. package/components/ai-interaction-textarea/index.js +5 -5
  8. package/components/{ai-interaction-textarea-BGnQbDpJ.cjs → ai-interaction-textarea-CcgFeoIg.cjs} +4 -4
  9. package/components/data-fields-select/index.cjs +1 -1
  10. package/components/data-fields-select/index.js +3 -3
  11. package/components/{data-fields-select-DOFNOn2D.cjs → data-fields-select-BB9jMIZt.cjs} +3 -3
  12. package/components/{data-fields-select-0-QPdj3X.js → data-fields-select-Dc1pByjy.js} +2 -2
  13. package/components/dataset-icon/index.cjs +1 -1
  14. package/components/dataset-icon/index.js +1 -1
  15. package/components/{dataset-icon-BbNgugDA.cjs → dataset-icon-C0cID-ra.cjs} +11 -11
  16. package/components/{dataset-icon-x6Q8nhYc.js → dataset-icon-DhF21dXC.js} +6 -6
  17. package/components/dataset-selector-list/index.cjs +1 -1
  18. package/components/dataset-selector-list/index.js +3 -3
  19. package/components/{dataset-selector-list-BdeJlo0u.cjs → dataset-selector-list-CFdVv3iN.cjs} +1 -1
  20. package/components/{dataset-selector-list-DO_ExOrO.js → dataset-selector-list-DlXb_jK4.js} +1 -1
  21. package/components/dataset-selector-row/index.cjs +1 -1
  22. package/components/dataset-selector-row/index.js +4 -4
  23. package/components/{dataset-selector-row-CAlRVIk_.cjs → dataset-selector-row-Bsq7KGfS.cjs} +9 -9
  24. package/components/{dataset-selector-row-VsvdrVDf.js → dataset-selector-row-Bxu3lzqR.js} +2 -2
  25. package/components/de-D71oQ28U.cjs +20 -0
  26. package/components/{de-DEzbbWVL.js → de-DURun-dA.js} +5 -2
  27. package/components/display-settings/index.cjs +1 -1
  28. package/components/display-settings/index.js +3 -3
  29. package/components/{display-settings-BwRkE6i-.js → display-settings-C_ubOOoF.js} +14 -14
  30. package/components/{display-settings-rCBWD_I_.cjs → display-settings-Sh4LWJgN.cjs} +16 -16
  31. package/components/display-settings-binning/index.cjs +1 -1
  32. package/components/display-settings-binning/index.js +3 -3
  33. package/components/{display-settings-binning-C4V_P8mI.cjs → display-settings-binning-BkPQ6M08.cjs} +7 -7
  34. package/components/{display-settings-binning-BXlXiFNV.js → display-settings-binning-CJSWcOkS.js} +2 -2
  35. package/components/display-settings-datetime/index.cjs +1 -1
  36. package/components/display-settings-datetime/index.js +3 -3
  37. package/components/{display-settings-datetime-Db-0j9VZ.cjs → display-settings-datetime-HErjCVVJ.cjs} +38 -38
  38. package/components/{display-settings-datetime-LqM04khP.js → display-settings-datetime-iI-W9K_T.js} +2 -2
  39. package/components/display-settings-grand-totals/index.cjs +1 -1
  40. package/components/display-settings-grand-totals/index.js +3 -3
  41. package/components/{display-settings-grand-totals-0ihnPMfZ.cjs → display-settings-grand-totals-CeOhzDtp.cjs} +5 -5
  42. package/components/{display-settings-grand-totals-BDDMVFrg.js → display-settings-grand-totals-D-BMS_hC.js} +2 -2
  43. package/components/display-settings-numeric/index.cjs +1 -1
  44. package/components/display-settings-numeric/index.js +3 -3
  45. package/components/{display-settings-numeric-CfBT04A7.cjs → display-settings-numeric-D3cQ5CNK.cjs} +28 -28
  46. package/components/{display-settings-numeric-Cpp9mQCA.js → display-settings-numeric-pc4CUJWx.js} +3 -3
  47. package/components/display-settings-period-over-period/index.cjs +1 -1
  48. package/components/display-settings-period-over-period/index.js +3 -3
  49. package/components/{display-settings-period-over-period-pxCijPAW.js → display-settings-period-over-period-Cazylizf.js} +1 -1
  50. package/components/{display-settings-period-over-period-CWOpgJmd.cjs → display-settings-period-over-period-lYLbMfrq.cjs} +1 -1
  51. package/components/draggable-data-field/index.cjs +1 -1
  52. package/components/draggable-data-field/index.js +4 -4
  53. package/components/{draggable-data-field-C6ojUWMf.js → draggable-data-field-BAZsLoRm.js} +1 -1
  54. package/components/draggable-data-field-level/index.cjs +1 -1
  55. package/components/draggable-data-field-level/index.js +3 -3
  56. package/components/{draggable-data-field-level-CJ-vup34.cjs → draggable-data-field-level-CI1No5x8.cjs} +10 -10
  57. package/components/{draggable-data-field-BsvgQjQY.cjs → draggable-data-field-uCJzFo7I.cjs} +1 -1
  58. package/components/draggable-data-fields-panel/index.cjs +1 -1
  59. package/components/draggable-data-fields-panel/index.js +5 -5
  60. package/components/{draggable-data-fields-panel-oNEzkow0.cjs → draggable-data-fields-panel-Bu5H_7MY.cjs} +1 -1
  61. package/components/{draggable-data-fields-panel-DJPz42xa.js → draggable-data-fields-panel-C5NIJ12I.js} +1 -1
  62. package/components/droppable-slot/index.cjs +1 -1
  63. package/components/droppable-slot/index.js +6 -6
  64. package/components/{droppable-slot-DEpOqyps.js → droppable-slot-CMWxuHys.js} +4 -4
  65. package/components/{droppable-slot-C8rhDVI-.cjs → droppable-slot-Chxv3_Va.cjs} +10 -10
  66. package/components/edit-filters/index.cjs +1 -1
  67. package/components/edit-filters/index.js +10 -10
  68. package/components/{edit-filters-pq1q7Eff.cjs → edit-filters-lNJfW7v6.cjs} +24 -24
  69. package/components/{edit-filters-D2oZa0E_.js → edit-filters-wgGKeSp-.js} +7 -7
  70. package/components/edit-item/index.cjs +1 -1
  71. package/components/edit-item/index.js +2 -2
  72. package/components/edit-option/index.cjs +1 -1
  73. package/components/edit-option/index.js +2 -2
  74. package/components/edit-option-action-button-group/index.cjs +1 -1
  75. package/components/edit-option-action-button-group/index.js +3 -3
  76. package/components/{edit-option-action-button-group-DlJwTW3A.cjs → edit-option-action-button-group-W34osCsN.cjs} +5 -5
  77. package/components/edit-option-color-palette-picker/index.cjs +1 -1
  78. package/components/edit-option-color-palette-picker/index.js +2 -2
  79. package/components/edit-option-color-picker/index.cjs +1 -1
  80. package/components/edit-option-color-picker/index.js +2 -2
  81. package/components/edit-option-color-range/index.cjs +1 -1
  82. package/components/edit-option-color-range/index.js +3 -3
  83. package/components/{edit-option-color-range-BtahxHzd.js → edit-option-color-range-CmpvQTSG.js} +3 -3
  84. package/components/{edit-option-color-range-DhBp5wlk.cjs → edit-option-color-range-DVYMhG2R.cjs} +15 -15
  85. package/components/edit-option-multi-language-field/index.cjs +1 -1
  86. package/components/edit-option-multi-language-field/index.js +2 -2
  87. package/components/edit-option-number-field/index.cjs +1 -1
  88. package/components/edit-option-number-field/index.js +2 -2
  89. package/components/edit-option-picker/index.cjs +1 -1
  90. package/components/edit-option-picker/index.js +2 -2
  91. package/components/edit-option-position-picker/index.cjs +1 -1
  92. package/components/edit-option-position-picker/index.js +2 -2
  93. package/components/edit-option-positions-number-field/index.cjs +1 -1
  94. package/components/edit-option-positions-number-field/index.js +3 -3
  95. package/components/{edit-option-positions-number-field-DhnxicFl.cjs → edit-option-positions-number-field-CmK8_2ZQ.cjs} +8 -8
  96. package/components/edit-option-radio-button-group/index.cjs +1 -1
  97. package/components/edit-option-radio-button-group/index.js +2 -2
  98. package/components/edit-option-slider/index.cjs +1 -1
  99. package/components/edit-option-slider/index.js +2 -2
  100. package/components/edit-option-switch/index.cjs +1 -1
  101. package/components/edit-option-switch/index.js +2 -2
  102. package/components/edit-option-text-field/index.cjs +1 -1
  103. package/components/edit-option-text-field/index.js +2 -2
  104. package/components/es-BVpCQVYE.cjs +20 -0
  105. package/components/{es-DIIjhY-_.js → es-Dkzx8miN.js} +5 -2
  106. package/components/filter-expression-picker/index.cjs +1 -1
  107. package/components/filter-expression-picker/index.js +3 -3
  108. package/components/{filter-expression-picker-BKJXpOiw.js → filter-expression-picker-B4x6ubd5.js} +1 -1
  109. package/components/{filter-expression-picker-Jcv2KTB6.cjs → filter-expression-picker-BP78A8JD.cjs} +1 -1
  110. package/components/filter-item/index.cjs +1 -1
  111. package/components/filter-item/index.js +9 -9
  112. package/components/{filter-item-Bqhpikdf.cjs → filter-item-DCVew0eE.cjs} +1 -1
  113. package/components/{filter-item-RaC0VdlI.js → filter-item-fLvnKrE1.js} +2 -2
  114. package/components/filter-value-picker/index.cjs +1 -1
  115. package/components/filter-value-picker/index.js +6 -6
  116. package/components/{filter-value-picker-49_ZrLE2.cjs → filter-value-picker-BPC88xE_.cjs} +1 -1
  117. package/components/{filter-value-picker-C92yj41B.js → filter-value-picker-CLajA3W8.js} +1 -1
  118. package/components/filter-value-picker-datetime/index.cjs +1 -1
  119. package/components/filter-value-picker-datetime/index.js +3 -3
  120. package/components/{filter-value-picker-datetime-f3T5FuxN.cjs → filter-value-picker-datetime-C_tPd_73.cjs} +1 -1
  121. package/components/{filter-value-picker-datetime-CwrpeAdQ.js → filter-value-picker-datetime-DP4M57KA.js} +1 -1
  122. package/components/filter-value-picker-hierarchy/index.cjs +1 -1
  123. package/components/filter-value-picker-hierarchy/index.js +3 -3
  124. package/components/{filter-value-picker-hierarchy-D6FbH0gw.cjs → filter-value-picker-hierarchy-BRID5j_G.cjs} +1 -1
  125. package/components/{filter-value-picker-hierarchy-BjWbzo8J.js → filter-value-picker-hierarchy-CowyNbHg.js} +1 -1
  126. package/components/filter-value-picker-numeric/index.cjs +1 -1
  127. package/components/filter-value-picker-numeric/index.js +3 -3
  128. package/components/{filter-value-picker-numeric-BCfpod5c.cjs → filter-value-picker-numeric-BgMq1FT5.cjs} +1 -1
  129. package/components/{filter-value-picker-numeric-F1XJRVFa.js → filter-value-picker-numeric-D8MiGBfv.js} +1 -1
  130. package/components/{fr-D9ILwOuz.js → fr-BxxnKM9J.js} +5 -2
  131. package/components/fr-DW5eOlYL.cjs +20 -0
  132. package/components/grid/index.cjs +1 -1
  133. package/components/grid/index.js +3 -3
  134. package/components/{grid-BNbbl-9p.cjs → grid-1ZLTyUUM.cjs} +31 -31
  135. package/components/{grid-Ca-fxUK1.js → grid-Dka6HAFu.js} +20 -20
  136. package/components/index.cjs +1 -1
  137. package/components/index.js +35 -35
  138. package/components/item-data-drop-panel/index.cjs +1 -1
  139. package/components/item-data-drop-panel/index.js +7 -7
  140. package/components/{item-data-drop-panel-Bt8rKT6s.cjs → item-data-drop-panel-BNQmmouC.cjs} +1 -1
  141. package/components/{item-data-drop-panel-BMubV7pj.js → item-data-drop-panel-DCdT8u3S.js} +1 -1
  142. package/components/item-data-picker-panel/index.cjs +1 -1
  143. package/components/item-data-picker-panel/index.js +8 -8
  144. package/components/{item-data-picker-panel-DBK2fVsG.js → item-data-picker-panel-D8YWBbZZ.js} +1 -1
  145. package/components/{item-data-picker-panel-DZOIUxuS.cjs → item-data-picker-panel-DOsGE-Xc.cjs} +1 -1
  146. package/components/{localized-mixin-DTvVLuXW.cjs → localized-mixin-Cxbtsznk.cjs} +1 -1
  147. package/components/{localized-mixin-cLT0UbaF.js → localized-mixin-DluVAteK.js} +1 -1
  148. package/components/nl-CNyDzCqx.cjs +20 -0
  149. package/components/{nl-DhD5Rlf7.js → nl-DDQ-Saw3.js} +5 -2
  150. package/components/{set-locale-CKjJZRH6.cjs → set-locale-BbhzBfZV.cjs} +1 -1
  151. package/components/{set-locale-Uv6F4uSq.js → set-locale-DmVKN5NY.js} +4 -4
  152. package/components/slot-contents-picker/index.cjs +1 -1
  153. package/components/slot-contents-picker/index.js +7 -7
  154. package/components/{slot-contents-picker-Bw_G1BwZ.js → slot-contents-picker--QucgYkS.js} +4 -4
  155. package/components/{slot-contents-picker-BO5lSTDz.cjs → slot-contents-picker-CQQuh9fg.cjs} +21 -21
  156. package/components/slot-menu/index.cjs +1 -1
  157. package/components/slot-menu/index.js +5 -5
  158. package/components/{slot-menu-DxYruISb.js → slot-menu-B3L8YEnv.js} +2 -2
  159. package/components/{slot-menu-DyC8HQ5E.cjs → slot-menu-DIQ6h6Dz.cjs} +9 -9
  160. package/components/slot-menu-list/index.cjs +1 -1
  161. package/components/slot-menu-list/index.js +3 -3
  162. package/components/{slot-menu-list-Dmb6s6UK.cjs → slot-menu-list-CFCvrPVt.cjs} +3 -3
  163. package/components/utils/base.cjs +1 -1
  164. package/components/utils/base.js +2 -2
  165. package/components/utils.cjs +1 -1
  166. package/components/utils.js +1 -1
  167. package/components/viz-item-menu/index.cjs +1 -1
  168. package/components/viz-item-menu/index.js +3 -3
  169. package/components/{viz-item-menu-D18d77aP.cjs → viz-item-menu-BZp_MMRO.cjs} +6 -6
  170. package/components/{viz-item-menu-CjA1X_Vg.js → viz-item-menu-CO7XfqyI.js} +2 -2
  171. package/custom-elements.json +19 -0
  172. package/package.json +1 -1
  173. package/components/ai-chat-rok8ar11.cjs +0 -62
  174. package/components/de-nxCdeqFz.cjs +0 -20
  175. package/components/es-BEBp9Wdb.cjs +0 -20
  176. package/components/fr-BSmOmsww.cjs +0 -20
  177. package/components/nl-BiQ2EuE6.cjs +0 -20
  178. package/components/{ai-interaction-textarea-EdWcPK0w.js → ai-interaction-textarea-B5UE7CIq.js} +1 -1
  179. package/components/{draggable-data-field-level-BTUXWyDq.js → draggable-data-field-level-BQBMnApS.js} +1 -1
  180. package/components/{edit-option-action-button-group-CnsDFlK_.js → edit-option-action-button-group-DNrXatQR.js} +1 -1
  181. package/components/{edit-option-positions-number-field-BX1zqHcV.js → edit-option-positions-number-field-DZtxuvEY.js} +1 -1
  182. package/components/{slot-menu-list-DbZnXcMZ.js → slot-menu-list-BLJxoLeI.js} +1 -1
@@ -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
- const e=require(`./chunk-350yNsax.cjs`),t=require(`./base-C_azywlB.cjs`),n=require(`./decorate-Dq4-zbi1.cjs`),r=require(`./localized-mixin-DTvVLuXW.cjs`),i=require(`./formatter-CWhf4xbq.cjs`),a=require(`./periods.const-CX2ZWWrf.cjs`);let o=require(`lit`),s=require(`lit/decorators.js`),c=require(`@lit/localize`),l=require(`@luzmo/icons`),u=require(`@lit/task`);require(`@luzmo/lucero/field-label`),require(`@luzmo/lucero/icon`),require(`@luzmo/lucero/progress-circle`),require(`@luzmo/lucero/action-button`),require(`@luzmo/lucero/number-field`),require(`@luzmo/lucero/action-group`),require(`@luzmo/lucero/picker`);const d={"~":()=>(0,c.msg)(`Auto`,{desc:`Automatic setting of the option`}),"/":()=>`/`,"-":()=>`-`,".":()=>`.`};var f=`:host{font-family:var(--luzmo-display-settings-datetime-font-family,var(--luzmo-font-family))}:host .settings-container{gap:var(--luzmo-display-settings-vertical-gap,var(--luzmo-spacing-2));flex-direction:column;display:flex}:host .settings-row{justify-content:flex-start;align-items:center;gap:var(--luzmo-display-settings-datetime-gap,var(--display-settings-datetime-gap));display:flex}:host{--display-settings-datetime-example-font-size:var(--luzmo-font-size-s);--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);--display-settings-datetime-gap:var(--luzmo-spacing-3);--display-settings-datetime-example-height:var(--luzmo-component-height)}: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)}`,p=class extends r.t(t.n(t.i,{validSizes:Object.values(t.t)})){constructor(...e){super(...e),this._loadLocaleFormatsConfig=new u.Task(this,{task:async([e])=>{if(e&&e!==this._contentLanguageLoaded){let t=Object.assign({"../../utils/formatter/formats/cs.ts":()=>Promise.resolve().then(()=>require(`./cs-BAmKPXV0.cjs`)),"../../utils/formatter/formats/da.ts":()=>Promise.resolve().then(()=>require(`./da-DHl8PzfU.cjs`)),"../../utils/formatter/formats/de.ts":()=>Promise.resolve().then(()=>require(`./de-CQMDOcBQ.cjs`)),"../../utils/formatter/formats/en-GB.ts":()=>Promise.resolve().then(()=>require(`./en-GB-CLevdvMs.cjs`)),"../../utils/formatter/formats/en-US.ts":()=>Promise.resolve().then(()=>require(`./en-US-Hj9Lh0Yh.cjs`)),"../../utils/formatter/formats/en.ts":()=>Promise.resolve().then(()=>require(`./en-jIqxZyQr.cjs`)),"../../utils/formatter/formats/es.ts":()=>Promise.resolve().then(()=>require(`./es-DS-aph2K.cjs`)),"../../utils/formatter/formats/fi.ts":()=>Promise.resolve().then(()=>require(`./fi-DbXbnIlF.cjs`)),"../../utils/formatter/formats/fr.ts":()=>Promise.resolve().then(()=>require(`./fr-CUzKlf1c.cjs`)),"../../utils/formatter/formats/he.ts":()=>Promise.resolve().then(()=>require(`./he-Bxmbik6g.cjs`)),"../../utils/formatter/formats/hu.ts":()=>Promise.resolve().then(()=>require(`./hu-CCt14ec_.cjs`)),"../../utils/formatter/formats/it.ts":()=>Promise.resolve().then(()=>require(`./it-Czry5-br.cjs`)),"../../utils/formatter/formats/ja.ts":()=>Promise.resolve().then(()=>require(`./ja-DLYEeBwD.cjs`)),"../../utils/formatter/formats/ko.ts":()=>Promise.resolve().then(()=>require(`./ko-Cq3bNSoY.cjs`)),"../../utils/formatter/formats/mk.ts":()=>Promise.resolve().then(()=>require(`./mk-CX6tWFGL.cjs`)),"../../utils/formatter/formats/nl.ts":()=>Promise.resolve().then(()=>require(`./nl-CC5UMR5B.cjs`)),"../../utils/formatter/formats/no.ts":()=>Promise.resolve().then(()=>require(`./no-CRcBAcaW.cjs`)),"../../utils/formatter/formats/pl.ts":()=>Promise.resolve().then(()=>require(`./pl-Cy4MfWob.cjs`)),"../../utils/formatter/formats/pt.ts":()=>Promise.resolve().then(()=>require(`./pt-BmXZldF9.cjs`)),"../../utils/formatter/formats/ru.ts":()=>Promise.resolve().then(()=>require(`./ru-fWz2GIGG.cjs`)),"../../utils/formatter/formats/sv.ts":()=>Promise.resolve().then(()=>require(`./sv-BJHpfzAX.cjs`)),"../../utils/formatter/formats/tr.ts":()=>Promise.resolve().then(()=>require(`./tr-Ctcalxbu.cjs`)),"../../utils/formatter/formats/zh-CN.ts":()=>Promise.resolve().then(()=>require(`./zh-CN-B77UpR2K.cjs`)),"../../utils/formatter/formats/zh-TW.ts":()=>Promise.resolve().then(()=>require(`./zh-TW-BsHHLnIy.cjs`))});return t[`../../utils/formatter/formats/${e}.ts`]&&(this._localeFormats=(await t[`../../utils/formatter/formats/${e}.ts`]())?.default??{}),this._contentLanguageLoaded=e,this._localeFormats}},args:()=>[this.contentLanguage]}),this.contentLanguage=`en`,this.size=`m`,this.slotContent={},this._dateLevel=5,this._displayAs=`default`,this._weekStart=`monday`,this._weekDayAndMonthInYearFormat=`long`,this._dateFormat=`auto`,this._dateSeparator=`~`,this._sendEvent=()=>{this._calculateSlotContent(),this.dispatchEvent(new CustomEvent(`luzmo-slot-content-changed`,{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContent:this._currentSlotContent}}))}}static get styles(){return[(0,o.unsafeCSS)(f)]}_parseSlotContent(){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()}_parseSavedFormat(){let e=this.slotContent?.format??`%d-%m-%Y`,t=e.match(/[./-]/);if(this._dateSeparator=e.includes(`~`)?`~`:t?.[0]??`~`,e.includes(`%amd`))this._dateFormat=`auto`;else{let t=e.indexOf(`%d`),n=e.indexOf(`%m`);t!==-1&&n!==-1&&(this._dateFormat=t<n?`ddmm`:`mmdd`)}this._24hFormat=e.includes(`%H`),this._monthName=/%B|%b/.test(e),this._weekDay=/%a|%A/.test(e),this._monthName&&(this._monthNameFormat=e.includes(`%b`)?`short`:`long`),this._weekDay&&(this._weekDayAndMonthInYearFormat=e.includes(`%a`)?`short`:`long`);let n=this._dateLevel===5&&this.slotContent?.weekDayNameFormat||this._dateLevel===3&&this.slotContent?.monthNameFormat;n&&(this._weekDayAndMonthInYearFormat=n)}_calculateFormat(){let e,t=this._localeFormats?.smartDateFormats??i.r;this._monthName?(e=t.filter(e=>e.monthType===`name`&&e.longText===(this._monthNameFormat===`long`)&&e.weekday===this._weekDay),e.length>0?this._format=e[0].key:(this._weekDayAndMonthInYearFormat=`short`,this._weekDay=!0,this._format=`%a %e %B %Y`)):(e=this._dateLevel&&this._dateLevel===4?t.filter(e=>e.monthType===`number`&&e.mmdd===(this._weekFormat===`mmdd`?!0:this._weekFormat===`ddmm`?!1:null)&&e.separator===this._dateSeparator):t.filter(e=>e.monthType===`number`&&e.mmdd===(this._dateFormat===`mmdd`?!0:this._dateFormat===`ddmm`?!1:null)&&e.separator===this._dateSeparator),this._dateFormat===`auto`&&this._dateLevel&&this._dateLevel!==4?this._format=`%amd`+this._dateSeparator+`%Y`:e.length>0?this._format=e[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`)}_setWeekStartsOn(){this._weekStart=this._weekStartElement.value,this._sendEvent(),this.requestUpdate()}_setDisplayAs(){this._displayAs=this._displayAsElement.value,this._sendEvent(),this.requestUpdate()}_setWeekdayAndMonthInYearFormat(){this._weekDayAndMonthInYearFormat=this._weekDayAndMonthInYearFormatElement.selected?.[0]??`long`,this._sendEvent(),this.requestUpdate()}_setMonthNameFormat(){this._monthNameFormat=this._monthNameFormatElement.selected?.[0],this._sendEvent(),this.requestUpdate()}_setMonthName(){this._monthName=this._monthNameElement.selected,this._sendEvent(),this.requestUpdate()}_setWeekFormat(){this._weekFormat=this._weekFormatElement.selected?.[0],this._sendEvent(),this.requestUpdate()}_setDateFormat(){this._dateFormat=this._dateFormatElement.value,this._sendEvent(),this.requestUpdate()}_setDateSeparator(){this._dateSeparator=this._dateSeparatorElement.value,this._sendEvent(),this.requestUpdate()}_set24hFormat(){this._24hFormat=this._format24hElement.selected,this._sendEvent(),this.requestUpdate()}_setWeekday(){this._weekDay=this._weekDayElement.selected,this._sendEvent(),this.requestUpdate()}_calculateSlotContent(){this._currentSlotContent={...this.slotContent},this._calculateFormat(),this._currentSlotContent.format=this._format,this._displayAs===`default`?delete this._currentSlotContent.datetimeDisplayMode:(this._currentSlotContent.datetimeDisplayMode=this._displayAs,this._displayAs===`week_in_year`?this._currentSlotContent.datetimeDisplayMode=this._weekDayAndMonthInYearFormat===`number`?`week_number`:`week_name`:this._displayAs===`month_in_year`?this._currentSlotContent.datetimeDisplayMode=this._weekDayAndMonthInYearFormat===`number`?`month_number`:`month_name`:this._displayAs===`day_in_week`&&(this._currentSlotContent.datetimeDisplayMode=this._weekDayAndMonthInYearFormat===`number`?`weekday_number`:`weekday_name`,this._currentSlotContent.weekStart=this._weekStart),this._weekDayAndMonthInYearFormat&&(this._dateLevel===3?this._currentSlotContent.monthNameFormat=this._weekDayAndMonthInYearFormat:this._dateLevel===5&&(this._currentSlotContent.weekDayNameFormat=this._weekDayAndMonthInYearFormat)))}willUpdate(e){super.willUpdate(e),e.has(`slotContent`)&&(this._parseSlotContent(),this._calculateSlotContent())}_renderDisplaySettings(){let e=a.t?.[`level${this._dateLevel??0}`]?.map(e=>o.html`<luzmo-menu-item value=${e.key}>
20
+ const e=require(`./chunk-350yNsax.cjs`),t=require(`./base-C_azywlB.cjs`),n=require(`./decorate-Dq4-zbi1.cjs`),r=require(`./localized-mixin-Cxbtsznk.cjs`),i=require(`./formatter-CWhf4xbq.cjs`),a=require(`./periods.const-CX2ZWWrf.cjs`);let o=require(`@luzmo/icons`),s=require(`lit`),c=require(`lit/decorators.js`),l=require(`@lit/localize`),u=require(`@lit/task`);require(`@luzmo/lucero/field-label`),require(`@luzmo/lucero/icon`),require(`@luzmo/lucero/progress-circle`),require(`@luzmo/lucero/action-button`),require(`@luzmo/lucero/number-field`),require(`@luzmo/lucero/action-group`),require(`@luzmo/lucero/picker`);const d={"~":()=>(0,l.msg)(`Auto`,{desc:`Automatic setting of the option`}),"/":()=>`/`,"-":()=>`-`,".":()=>`.`};var f=`:host{font-family:var(--luzmo-display-settings-datetime-font-family,var(--luzmo-font-family))}:host .settings-container{gap:var(--luzmo-display-settings-vertical-gap,var(--luzmo-spacing-2));flex-direction:column;display:flex}:host .settings-row{justify-content:flex-start;align-items:center;gap:var(--luzmo-display-settings-datetime-gap,var(--display-settings-datetime-gap));display:flex}:host{--display-settings-datetime-example-font-size:var(--luzmo-font-size-s);--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);--display-settings-datetime-gap:var(--luzmo-spacing-3);--display-settings-datetime-example-height:var(--luzmo-component-height)}: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)}`,p=class extends r.t(t.n(t.i,{validSizes:Object.values(t.t)})){constructor(...e){super(...e),this._loadLocaleFormatsConfig=new u.Task(this,{task:async([e])=>{if(e&&e!==this._contentLanguageLoaded){let t=Object.assign({"../../utils/formatter/formats/cs.ts":()=>Promise.resolve().then(()=>require(`./cs-BAmKPXV0.cjs`)),"../../utils/formatter/formats/da.ts":()=>Promise.resolve().then(()=>require(`./da-DHl8PzfU.cjs`)),"../../utils/formatter/formats/de.ts":()=>Promise.resolve().then(()=>require(`./de-CQMDOcBQ.cjs`)),"../../utils/formatter/formats/en-GB.ts":()=>Promise.resolve().then(()=>require(`./en-GB-CLevdvMs.cjs`)),"../../utils/formatter/formats/en-US.ts":()=>Promise.resolve().then(()=>require(`./en-US-Hj9Lh0Yh.cjs`)),"../../utils/formatter/formats/en.ts":()=>Promise.resolve().then(()=>require(`./en-jIqxZyQr.cjs`)),"../../utils/formatter/formats/es.ts":()=>Promise.resolve().then(()=>require(`./es-DS-aph2K.cjs`)),"../../utils/formatter/formats/fi.ts":()=>Promise.resolve().then(()=>require(`./fi-DbXbnIlF.cjs`)),"../../utils/formatter/formats/fr.ts":()=>Promise.resolve().then(()=>require(`./fr-CUzKlf1c.cjs`)),"../../utils/formatter/formats/he.ts":()=>Promise.resolve().then(()=>require(`./he-Bxmbik6g.cjs`)),"../../utils/formatter/formats/hu.ts":()=>Promise.resolve().then(()=>require(`./hu-CCt14ec_.cjs`)),"../../utils/formatter/formats/it.ts":()=>Promise.resolve().then(()=>require(`./it-Czry5-br.cjs`)),"../../utils/formatter/formats/ja.ts":()=>Promise.resolve().then(()=>require(`./ja-DLYEeBwD.cjs`)),"../../utils/formatter/formats/ko.ts":()=>Promise.resolve().then(()=>require(`./ko-Cq3bNSoY.cjs`)),"../../utils/formatter/formats/mk.ts":()=>Promise.resolve().then(()=>require(`./mk-CX6tWFGL.cjs`)),"../../utils/formatter/formats/nl.ts":()=>Promise.resolve().then(()=>require(`./nl-CC5UMR5B.cjs`)),"../../utils/formatter/formats/no.ts":()=>Promise.resolve().then(()=>require(`./no-CRcBAcaW.cjs`)),"../../utils/formatter/formats/pl.ts":()=>Promise.resolve().then(()=>require(`./pl-Cy4MfWob.cjs`)),"../../utils/formatter/formats/pt.ts":()=>Promise.resolve().then(()=>require(`./pt-BmXZldF9.cjs`)),"../../utils/formatter/formats/ru.ts":()=>Promise.resolve().then(()=>require(`./ru-fWz2GIGG.cjs`)),"../../utils/formatter/formats/sv.ts":()=>Promise.resolve().then(()=>require(`./sv-BJHpfzAX.cjs`)),"../../utils/formatter/formats/tr.ts":()=>Promise.resolve().then(()=>require(`./tr-Ctcalxbu.cjs`)),"../../utils/formatter/formats/zh-CN.ts":()=>Promise.resolve().then(()=>require(`./zh-CN-B77UpR2K.cjs`)),"../../utils/formatter/formats/zh-TW.ts":()=>Promise.resolve().then(()=>require(`./zh-TW-BsHHLnIy.cjs`))});return t[`../../utils/formatter/formats/${e}.ts`]&&(this._localeFormats=(await t[`../../utils/formatter/formats/${e}.ts`]())?.default??{}),this._contentLanguageLoaded=e,this._localeFormats}},args:()=>[this.contentLanguage]}),this.contentLanguage=`en`,this.size=`m`,this.slotContent={},this._dateLevel=5,this._displayAs=`default`,this._weekStart=`monday`,this._weekDayAndMonthInYearFormat=`long`,this._dateFormat=`auto`,this._dateSeparator=`~`,this._sendEvent=()=>{this._calculateSlotContent(),this.dispatchEvent(new CustomEvent(`luzmo-slot-content-changed`,{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContent:this._currentSlotContent}}))}}static get styles(){return[(0,s.unsafeCSS)(f)]}_parseSlotContent(){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()}_parseSavedFormat(){let e=this.slotContent?.format??`%d-%m-%Y`,t=e.match(/[./-]/);if(this._dateSeparator=e.includes(`~`)?`~`:t?.[0]??`~`,e.includes(`%amd`))this._dateFormat=`auto`;else{let t=e.indexOf(`%d`),n=e.indexOf(`%m`);t!==-1&&n!==-1&&(this._dateFormat=t<n?`ddmm`:`mmdd`)}this._24hFormat=e.includes(`%H`),this._monthName=/%B|%b/.test(e),this._weekDay=/%a|%A/.test(e),this._monthName&&(this._monthNameFormat=e.includes(`%b`)?`short`:`long`),this._weekDay&&(this._weekDayAndMonthInYearFormat=e.includes(`%a`)?`short`:`long`);let n=this._dateLevel===5&&this.slotContent?.weekDayNameFormat||this._dateLevel===3&&this.slotContent?.monthNameFormat;n&&(this._weekDayAndMonthInYearFormat=n)}_calculateFormat(){let e,t=this._localeFormats?.smartDateFormats??i.r;this._monthName?(e=t.filter(e=>e.monthType===`name`&&e.longText===(this._monthNameFormat===`long`)&&e.weekday===this._weekDay),e.length>0?this._format=e[0].key:(this._weekDayAndMonthInYearFormat=`short`,this._weekDay=!0,this._format=`%a %e %B %Y`)):(e=this._dateLevel&&this._dateLevel===4?t.filter(e=>e.monthType===`number`&&e.mmdd===(this._weekFormat===`mmdd`?!0:this._weekFormat===`ddmm`?!1:null)&&e.separator===this._dateSeparator):t.filter(e=>e.monthType===`number`&&e.mmdd===(this._dateFormat===`mmdd`?!0:this._dateFormat===`ddmm`?!1:null)&&e.separator===this._dateSeparator),this._dateFormat===`auto`&&this._dateLevel&&this._dateLevel!==4?this._format=`%amd`+this._dateSeparator+`%Y`:e.length>0?this._format=e[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`)}_setWeekStartsOn(){this._weekStart=this._weekStartElement.value,this._sendEvent(),this.requestUpdate()}_setDisplayAs(){this._displayAs=this._displayAsElement.value,this._sendEvent(),this.requestUpdate()}_setWeekdayAndMonthInYearFormat(){this._weekDayAndMonthInYearFormat=this._weekDayAndMonthInYearFormatElement.selected?.[0]??`long`,this._sendEvent(),this.requestUpdate()}_setMonthNameFormat(){this._monthNameFormat=this._monthNameFormatElement.selected?.[0],this._sendEvent(),this.requestUpdate()}_setMonthName(){this._monthName=this._monthNameElement.selected,this._sendEvent(),this.requestUpdate()}_setWeekFormat(){this._weekFormat=this._weekFormatElement.selected?.[0],this._sendEvent(),this.requestUpdate()}_setDateFormat(){this._dateFormat=this._dateFormatElement.value,this._sendEvent(),this.requestUpdate()}_setDateSeparator(){this._dateSeparator=this._dateSeparatorElement.value,this._sendEvent(),this.requestUpdate()}_set24hFormat(){this._24hFormat=this._format24hElement.selected,this._sendEvent(),this.requestUpdate()}_setWeekday(){this._weekDay=this._weekDayElement.selected,this._sendEvent(),this.requestUpdate()}_calculateSlotContent(){this._currentSlotContent={...this.slotContent},this._calculateFormat(),this._currentSlotContent.format=this._format,this._displayAs===`default`?delete this._currentSlotContent.datetimeDisplayMode:(this._currentSlotContent.datetimeDisplayMode=this._displayAs,this._displayAs===`week_in_year`?this._currentSlotContent.datetimeDisplayMode=this._weekDayAndMonthInYearFormat===`number`?`week_number`:`week_name`:this._displayAs===`month_in_year`?this._currentSlotContent.datetimeDisplayMode=this._weekDayAndMonthInYearFormat===`number`?`month_number`:`month_name`:this._displayAs===`day_in_week`&&(this._currentSlotContent.datetimeDisplayMode=this._weekDayAndMonthInYearFormat===`number`?`weekday_number`:`weekday_name`,this._currentSlotContent.weekStart=this._weekStart),this._weekDayAndMonthInYearFormat&&(this._dateLevel===3?this._currentSlotContent.monthNameFormat=this._weekDayAndMonthInYearFormat:this._dateLevel===5&&(this._currentSlotContent.weekDayNameFormat=this._weekDayAndMonthInYearFormat)))}willUpdate(e){super.willUpdate(e),e.has(`slotContent`)&&(this._parseSlotContent(),this._calculateSlotContent())}_renderDisplaySettings(){let e=a.t?.[`level${this._dateLevel??0}`]?.map(e=>s.html`<luzmo-menu-item value=${e.key}>
21
21
  ${e.i18n()}
22
- </luzmo-menu-item>`);return o.html`<div class="setting">
22
+ </luzmo-menu-item>`);return s.html`<div class="setting">
23
23
  <luzmo-field-label for="display-as"
24
- >${(0,c.msg)(`Display`,{desc:`Label for display setting`})}</luzmo-field-label
24
+ >${(0,l.msg)(`Display`,{desc:`Label for display setting`})}</luzmo-field-label
25
25
  >
26
26
  <luzmo-picker
27
27
  id="display-as"
@@ -32,11 +32,11 @@ const e=require(`./chunk-350yNsax.cjs`),t=require(`./base-C_azywlB.cjs`),n=requi
32
32
  >
33
33
  ${e}
34
34
  </luzmo-picker>
35
- </div>`}_renderWeekDayAndMonthNameFormatSettings(){let e=Object.keys(a.r).map(e=>o.html`<luzmo-action-button value=${e}>
35
+ </div>`}_renderWeekDayAndMonthNameFormatSettings(){let e=Object.keys(a.r).map(e=>s.html`<luzmo-action-button value=${e}>
36
36
  ${a.r[e]()}
37
- </luzmo-action-button>`);return o.html` <div class="setting">
37
+ </luzmo-action-button>`);return s.html` <div class="setting">
38
38
  <luzmo-field-label for="weekday-and-month-in-year-format"
39
- >${(0,c.msg)(`Format`,{desc:`Label for format setting`})}</luzmo-field-label
39
+ >${(0,l.msg)(`Format`,{desc:`Label for format setting`})}</luzmo-field-label
40
40
  >
41
41
  <luzmo-action-group
42
42
  emphasized
@@ -49,9 +49,9 @@ const e=require(`./chunk-350yNsax.cjs`),t=require(`./base-C_azywlB.cjs`),n=requi
49
49
  >
50
50
  ${e}
51
51
  </luzmo-action-group>
52
- </div>`}_renderMonthNameFormatSettings(){return o.html` <div class="setting">
52
+ </div>`}_renderMonthNameFormatSettings(){return s.html` <div class="setting">
53
53
  <luzmo-field-label for="month-name-format"
54
- >${(0,c.msg)(`Format`,{desc:`Label for format setting`})}</luzmo-field-label
54
+ >${(0,l.msg)(`Format`,{desc:`Label for format setting`})}</luzmo-field-label
55
55
  >
56
56
  <luzmo-action-group
57
57
  emphasized
@@ -63,15 +63,15 @@ const e=require(`./chunk-350yNsax.cjs`),t=require(`./base-C_azywlB.cjs`),n=requi
63
63
  @change=${this._setMonthNameFormat}
64
64
  >
65
65
  <luzmo-action-button value="short">
66
- ${(0,c.msg)(`Short`,{desc:`Short format option`})}
66
+ ${(0,l.msg)(`Short`,{desc:`Short format option`})}
67
67
  </luzmo-action-button>
68
68
  <luzmo-action-button value="long">
69
- ${(0,c.msg)(`Long`,{desc:`Long format option`})}
69
+ ${(0,l.msg)(`Long`,{desc:`Long format option`})}
70
70
  </luzmo-action-button>
71
71
  </luzmo-action-group>
72
- </div>`}_renderWeekFormatSettings(){let e=this._localeFormats?.smartDateFormats??i.r,t=e.find(e=>e.mmdd===!0&&e.separator===this._dateSeparator&&e.monthType===`number`),n=e.find(e=>e.mmdd===!1&&e.separator===this._dateSeparator&&e.monthType===`number`);return o.html` <div class="setting">
72
+ </div>`}_renderWeekFormatSettings(){let e=this._localeFormats?.smartDateFormats??i.r,t=e.find(e=>e.mmdd===!0&&e.separator===this._dateSeparator&&e.monthType===`number`),n=e.find(e=>e.mmdd===!1&&e.separator===this._dateSeparator&&e.monthType===`number`);return s.html` <div class="setting">
73
73
  <luzmo-field-label for="week-format"
74
- >${(0,c.msg)(`Format`,{desc:`Label for format setting`})}</luzmo-field-label
74
+ >${(0,l.msg)(`Format`,{desc:`Label for format setting`})}</luzmo-field-label
75
75
  >
76
76
  <luzmo-action-group
77
77
  emphasized
@@ -89,11 +89,11 @@ const e=require(`./chunk-350yNsax.cjs`),t=require(`./base-C_azywlB.cjs`),n=requi
89
89
  >${i.t({...this._currentSlotContent,type:`datetime`,format:t?.key},{localFormats:this._localeFormats,level:this._dateLevel})(new Date)}</luzmo-action-button
90
90
  >
91
91
  </luzmo-action-group>
92
- </div>`}_renderWeekStartsOnSettings(){let e=Object.keys(a.i).map(e=>o.html`<luzmo-menu-item value=${e}>
92
+ </div>`}_renderWeekStartsOnSettings(){let e=Object.keys(a.i).map(e=>s.html`<luzmo-menu-item value=${e}>
93
93
  ${a.i[e]()}
94
- </luzmo-menu-item>`);return o.html`<div class="setting">
94
+ </luzmo-menu-item>`);return s.html`<div class="setting">
95
95
  <luzmo-field-label for="week-start"
96
- >${(0,c.msg)(`Week starts on`,{desc:`Label for week start setting`})}</luzmo-field-label
96
+ >${(0,l.msg)(`Week starts on`,{desc:`Label for week start setting`})}</luzmo-field-label
97
97
  >
98
98
  <luzmo-picker
99
99
  id="week-start"
@@ -104,9 +104,9 @@ const e=require(`./chunk-350yNsax.cjs`),t=require(`./base-C_azywlB.cjs`),n=requi
104
104
  >
105
105
  ${e}
106
106
  </luzmo-picker>
107
- </div>`}_renderMonthNameSettings(){return o.html`<div class="settings-">
107
+ </div>`}_renderMonthNameSettings(){return s.html`<div class="settings-">
108
108
  <luzmo-field-label for="month-name"
109
- >${(0,c.msg)(`Month`,{desc:`Month format setting`})}</luzmo-field-label
109
+ >${(0,l.msg)(`Month`,{desc:`Month format setting`})}</luzmo-field-label
110
110
  >
111
111
  <luzmo-action-button
112
112
  id="month-name"
@@ -119,13 +119,13 @@ const e=require(`./chunk-350yNsax.cjs`),t=require(`./base-C_azywlB.cjs`),n=requi
119
119
  <luzmo-icon
120
120
  slot="icon"
121
121
  .size=${this.size}
122
- .icon=${this._monthName?l.luzmoCheckboxChecked:l.luzmoCheckbox}
122
+ .icon=${this._monthName?o.luzmoCheckboxChecked:o.luzmoCheckbox}
123
123
  ></luzmo-icon>
124
- ${(0,c.msg)(`Name`)}
124
+ ${(0,l.msg)(`Name`)}
125
125
  </luzmo-action-button>
126
- </div>`}_renderDateFormatSettings(){let e=this._dateSeparator===`~`?`/`:this._dateSeparator;return o.html`<div class="setting">
126
+ </div>`}_renderDateFormatSettings(){let e=this._dateSeparator===`~`?`/`:this._dateSeparator;return s.html`<div class="setting">
127
127
  <luzmo-field-label for="date-format"
128
- >${(0,c.msg)(`Format`,{desc:`Label for format setting`})}</luzmo-field-label
128
+ >${(0,l.msg)(`Format`,{desc:`Label for format setting`})}</luzmo-field-label
129
129
  >
130
130
  <luzmo-picker
131
131
  id="date-format"
@@ -135,16 +135,16 @@ const e=require(`./chunk-350yNsax.cjs`),t=require(`./base-C_azywlB.cjs`),n=requi
135
135
  @change=${this._setDateFormat}
136
136
  >
137
137
  <luzmo-menu-item value="auto">
138
- ${(0,c.msg)(`Auto`,{desc:`Automatic setting of the option`})}
138
+ ${(0,l.msg)(`Auto`,{desc:`Automatic setting of the option`})}
139
139
  </luzmo-menu-item>
140
140
  <luzmo-menu-item value="mmdd">12${e}31</luzmo-menu-item>
141
141
  <luzmo-menu-item value="ddmm">31${e}12</luzmo-menu-item>
142
142
  </luzmo-picker>
143
- </div>`}_renderSeparatorSettings(){let e=Object.keys(d).map(e=>o.html`<luzmo-menu-item value=${e}>
143
+ </div>`}_renderSeparatorSettings(){let e=Object.keys(d).map(e=>s.html`<luzmo-menu-item value=${e}>
144
144
  ${d[e]()}
145
- </luzmo-menu-item>`);return o.html`<div class="setting">
145
+ </luzmo-menu-item>`);return s.html`<div class="setting">
146
146
  <luzmo-field-label for="date-separator"
147
- >${(0,c.msg)(`Separator`,{desc:`Label for date separator setting`})}</luzmo-field-label
147
+ >${(0,l.msg)(`Separator`,{desc:`Label for date separator setting`})}</luzmo-field-label
148
148
  >
149
149
  <luzmo-picker
150
150
  id="date-separator"
@@ -155,9 +155,9 @@ const e=require(`./chunk-350yNsax.cjs`),t=require(`./base-C_azywlB.cjs`),n=requi
155
155
  >
156
156
  ${e}
157
157
  </luzmo-picker>
158
- </div>`}_render24hFormatSettings(){return o.html`<div class="settings-">
158
+ </div>`}_render24hFormatSettings(){return s.html`<div class="settings-">
159
159
  <luzmo-field-label for="format-24h"
160
- >${(0,c.msg)(`24h`,{desc:`Label for 24h format setting`})}</luzmo-field-label
160
+ >${(0,l.msg)(`24h`,{desc:`Label for 24h format setting`})}</luzmo-field-label
161
161
  >
162
162
  <luzmo-action-button
163
163
  id="format-24h"
@@ -170,12 +170,12 @@ const e=require(`./chunk-350yNsax.cjs`),t=require(`./base-C_azywlB.cjs`),n=requi
170
170
  <luzmo-icon
171
171
  slot="icon"
172
172
  .size=${this.size}
173
- .icon=${this._24hFormat?l.luzmoCheckboxChecked:l.luzmoCheckbox}
173
+ .icon=${this._24hFormat?o.luzmoCheckboxChecked:o.luzmoCheckbox}
174
174
  ></luzmo-icon>
175
175
  </luzmo-action-button>
176
- </div>`}_renderWeekdaySettings(){return o.html`<div class="settings-">
176
+ </div>`}_renderWeekdaySettings(){return s.html`<div class="settings-">
177
177
  <luzmo-field-label for="weekday"
178
- >${(0,c.msg)(`Weekday`,{desc:`Label for weekday setting`})}</luzmo-field-label
178
+ >${(0,l.msg)(`Weekday`,{desc:`Label for weekday setting`})}</luzmo-field-label
179
179
  >
180
180
  <luzmo-action-button
181
181
  id="weekday"
@@ -188,19 +188,19 @@ const e=require(`./chunk-350yNsax.cjs`),t=require(`./base-C_azywlB.cjs`),n=requi
188
188
  <luzmo-icon
189
189
  slot="icon"
190
190
  .size=${this.size}
191
- .icon=${this._weekDay?l.luzmoCheckboxChecked:l.luzmoCheckbox}
191
+ .icon=${this._weekDay?o.luzmoCheckboxChecked:o.luzmoCheckbox}
192
192
  ></luzmo-icon>
193
- ${(0,c.msg)(`Show`)}
193
+ ${(0,l.msg)(`Show`)}
194
194
  </luzmo-action-button>
195
- </div>`}_renderAllSettings(){return o.html`<div class="settings-container">
196
- ${this._dateLevel&&![1,9].includes(this._dateLevel)?o.html` <div class="settings-row">
195
+ </div>`}_renderAllSettings(){return s.html`<div class="settings-container">
196
+ ${this._dateLevel&&![1,9].includes(this._dateLevel)?s.html` <div class="settings-row">
197
197
  ${this._renderDisplaySettings()}
198
198
  ${this._dateLevel&&this._dateLevel>=5&&this._displayAs===`day_in_week`?this._renderWeekStartsOnSettings():``}
199
199
  </div>`:``}
200
- ${[`month_in_year`,`day_in_week`].includes(this._displayAs??``)?o.html` <div class="settings-row">
200
+ ${[`month_in_year`,`day_in_week`].includes(this._displayAs??``)?s.html` <div class="settings-row">
201
201
  ${this._renderWeekDayAndMonthNameFormatSettings()}
202
202
  </div>`:``}
203
- ${this._dateLevel&&this._dateLevel>1&&this._displayAs===`default`?o.html` <div class="settings-row">
203
+ ${this._dateLevel&&this._dateLevel>1&&this._displayAs===`default`?s.html` <div class="settings-row">
204
204
  ${this._dateLevel&&this._dateLevel!==4&&this._dateLevel!==2?this._renderMonthNameSettings():``}
205
205
  ${this._dateLevel&&this._dateLevel!==4&&this._dateLevel>2&&this._monthName?this._renderMonthNameFormatSettings():``}
206
206
  ${this._dateLevel&&this._dateLevel===4&&!this._monthName?this._renderWeekFormatSettings():``}
@@ -209,7 +209,7 @@ const e=require(`./chunk-350yNsax.cjs`),t=require(`./base-C_azywlB.cjs`),n=requi
209
209
  ${this._dateLevel&&this._dateLevel>=5&&this._monthName?this._renderWeekdaySettings():``}
210
210
  ${this._dateLevel&&this._dateLevel>5?this._render24hFormatSettings():``}
211
211
  </div>`:``}
212
- </div>`}render(){return this._loadLocaleFormatsConfig.render({pending:()=>o.html`<luzmo-progress-circle
212
+ </div>`}render(){return this._loadLocaleFormatsConfig.render({pending:()=>s.html`<luzmo-progress-circle
213
213
  indeterminate
214
214
  .size=${this.size}
215
- ></luzmo-progress-circle>`,complete:()=>this._renderAllSettings(),error:()=>this._renderAllSettings()})}};n.t([(0,s.property)({type:String})],p.prototype,`contentLanguage`,void 0),n.t([(0,s.property)({type:String})],p.prototype,`size`,void 0),n.t([(0,s.property)({type:Object,reflect:!1})],p.prototype,`slotContent`,void 0),n.t([(0,s.query)(`#display-as`)],p.prototype,`_displayAsElement`,void 0),n.t([(0,s.query)(`#week-start`)],p.prototype,`_weekStartElement`,void 0),n.t([(0,s.query)(`#weekday-and-month-in-year-format`)],p.prototype,`_weekDayAndMonthInYearFormatElement`,void 0),n.t([(0,s.query)(`#month-name-format`)],p.prototype,`_monthNameFormatElement`,void 0),n.t([(0,s.query)(`#month-name`)],p.prototype,`_monthNameElement`,void 0),n.t([(0,s.query)(`#week-format`)],p.prototype,`_weekFormatElement`,void 0),n.t([(0,s.query)(`#date-format`)],p.prototype,`_dateFormatElement`,void 0),n.t([(0,s.query)(`#date-separator`)],p.prototype,`_dateSeparatorElement`,void 0),n.t([(0,s.query)(`#weekday`)],p.prototype,`_weekDayElement`,void 0),n.t([(0,s.query)(`#format-24h`)],p.prototype,`_format24hElement`,void 0),p=n.t([(0,c.localized)()],p),customElements.get(`luzmo-display-settings-datetime`)||customElements.define(`luzmo-display-settings-datetime`,p),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return p}});
215
+ ></luzmo-progress-circle>`,complete:()=>this._renderAllSettings(),error:()=>this._renderAllSettings()})}};n.t([(0,c.property)({type:String})],p.prototype,`contentLanguage`,void 0),n.t([(0,c.property)({type:String})],p.prototype,`size`,void 0),n.t([(0,c.property)({type:Object,reflect:!1})],p.prototype,`slotContent`,void 0),n.t([(0,c.query)(`#display-as`)],p.prototype,`_displayAsElement`,void 0),n.t([(0,c.query)(`#week-start`)],p.prototype,`_weekStartElement`,void 0),n.t([(0,c.query)(`#weekday-and-month-in-year-format`)],p.prototype,`_weekDayAndMonthInYearFormatElement`,void 0),n.t([(0,c.query)(`#month-name-format`)],p.prototype,`_monthNameFormatElement`,void 0),n.t([(0,c.query)(`#month-name`)],p.prototype,`_monthNameElement`,void 0),n.t([(0,c.query)(`#week-format`)],p.prototype,`_weekFormatElement`,void 0),n.t([(0,c.query)(`#date-format`)],p.prototype,`_dateFormatElement`,void 0),n.t([(0,c.query)(`#date-separator`)],p.prototype,`_dateSeparatorElement`,void 0),n.t([(0,c.query)(`#weekday`)],p.prototype,`_weekDayElement`,void 0),n.t([(0,c.query)(`#format-24h`)],p.prototype,`_format24hElement`,void 0),p=n.t([(0,l.localized)()],p),customElements.get(`luzmo-display-settings-datetime`)||customElements.define(`luzmo-display-settings-datetime`,p),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return p}});
@@ -19,13 +19,13 @@
19
19
  * */
20
20
  import { i as LuzmoElement, n as SizedMixin, t as ElementSizes } from "./base-rg2x95aL.js";
21
21
  import { t as __decorate } from "./decorate-Da6S_xrw.js";
22
- import { t as LocalizedMixin } from "./localized-mixin-cLT0UbaF.js";
22
+ import { t as LocalizedMixin } from "./localized-mixin-DluVAteK.js";
23
23
  import { n as DEFAULT_DATETIME_FORMAT, r as SMART_DATE_FORMATS, t as formatter } from "./formatter-B21Tb3sf.js";
24
24
  import { i as WEEK_STARTS_ON, r as DATETIME_WEEKDAY_AND_MONTH_STRING_FORMATS, t as DATETIME_AS_STRING_FORMATS_PER_LEVEL } from "./periods.const-Ch6SfeaG.js";
25
+ import { luzmoCheckbox, luzmoCheckboxChecked } from "@luzmo/icons";
25
26
  import { html, unsafeCSS } from "lit";
26
27
  import { property, query } from "lit/decorators.js";
27
28
  import { localized, msg } from "@lit/localize";
28
- import { luzmoCheckbox, luzmoCheckboxChecked } from "@luzmo/icons";
29
29
  import { Task } from "@lit/task";
30
30
  import "@luzmo/lucero/field-label";
31
31
  import "@luzmo/lucero/icon";
@@ -17,4 +17,4 @@
17
17
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
18
  * SOFTWARE.
19
19
  * */
20
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../base-C_azywlB.cjs`),require(`../focus-visible-3ACCHno4.cjs`),require(`../set-locale-CKjJZRH6.cjs`),require(`../localized-mixin-DTvVLuXW.cjs`);const e=require(`../display-settings-grand-totals-0ihnPMfZ.cjs`);Object.defineProperty(exports,`LuzmoDisplaySettingsGrandTotals`,{enumerable:!0,get:function(){return e.t}});
20
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../base-C_azywlB.cjs`),require(`../focus-visible-3ACCHno4.cjs`),require(`../set-locale-BbhzBfZV.cjs`),require(`../localized-mixin-Cxbtsznk.cjs`);const e=require(`../display-settings-grand-totals-CeOhzDtp.cjs`);Object.defineProperty(exports,`LuzmoDisplaySettingsGrandTotals`,{enumerable:!0,get:function(){return e.t}});
@@ -25,7 +25,7 @@
25
25
  })();
26
26
  import "../base-rg2x95aL.js";
27
27
  import "../focus-visible-D1pJhWEh.js";
28
- import "../set-locale-Uv6F4uSq.js";
29
- import "../localized-mixin-cLT0UbaF.js";
30
- import { t as LuzmoDisplaySettingsGrandTotals } from "../display-settings-grand-totals-BDDMVFrg.js";
28
+ import "../set-locale-DmVKN5NY.js";
29
+ import "../localized-mixin-DluVAteK.js";
30
+ import { t as LuzmoDisplaySettingsGrandTotals } from "../display-settings-grand-totals-D-BMS_hC.js";
31
31
  export { LuzmoDisplaySettingsGrandTotals };
@@ -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
- const e=require(`./chunk-350yNsax.cjs`),t=require(`./base-C_azywlB.cjs`),n=require(`./decorate-Dq4-zbi1.cjs`),r=require(`./localized-mixin-DTvVLuXW.cjs`);let i=require(`lit`),a=require(`lit/decorators.js`),o=require(`@lit/localize`),s=require(`@luzmo/icons`);require(`@luzmo/lucero/field-label`),require(`@luzmo/lucero/icon`),require(`@luzmo/lucero/action-button`);let c=require(`lit/directives/if-defined.js`);var l=`:host .settings-container{gap:var(--luzmo-display-settings-vertical-gap,var(--luzmo-spacing-2));flex-direction:column;display:flex}:host .settings-row{justify-content:flex-start;align-items:center;gap:var(--luzmo-display-settings-grand-totals-gap,var(--display-settings-grand-totals-gap));display:flex}:host,: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)}`,u=class extends r.t(t.n(t.i,{validSizes:Object.values(t.t)})){constructor(...e){super(...e),this.slotContent={}}static get styles(){return[(0,i.unsafeCSS)(l)]}willUpdate(e){super.willUpdate(e),e.has(`slotContent`)&&(this._enabled=this.slotContent?.grandTotals?.enabled??!1)}toggleGrandTotals(){this._enabled=!this._enabled,this.sendEvent()}sendEvent(){let e={enabled:!!this._enabled};this.dispatchEvent(new CustomEvent(`luzmo-slot-content-changed`,{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContent:{...this.slotContent,grandTotals:e}}}))}render(){return i.html`<div class="settings-container">
20
+ const e=require(`./chunk-350yNsax.cjs`),t=require(`./base-C_azywlB.cjs`),n=require(`./decorate-Dq4-zbi1.cjs`),r=require(`./localized-mixin-Cxbtsznk.cjs`);let i=require(`@luzmo/icons`),a=require(`lit`),o=require(`lit/decorators.js`),s=require(`@lit/localize`);require(`@luzmo/lucero/field-label`),require(`@luzmo/lucero/icon`),require(`@luzmo/lucero/action-button`);let c=require(`lit/directives/if-defined.js`);var l=`:host .settings-container{gap:var(--luzmo-display-settings-vertical-gap,var(--luzmo-spacing-2));flex-direction:column;display:flex}:host .settings-row{justify-content:flex-start;align-items:center;gap:var(--luzmo-display-settings-grand-totals-gap,var(--display-settings-grand-totals-gap));display:flex}:host,: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)}`,u=class extends r.t(t.n(t.i,{validSizes:Object.values(t.t)})){constructor(...e){super(...e),this.slotContent={}}static get styles(){return[(0,a.unsafeCSS)(l)]}willUpdate(e){super.willUpdate(e),e.has(`slotContent`)&&(this._enabled=this.slotContent?.grandTotals?.enabled??!1)}toggleGrandTotals(){this._enabled=!this._enabled,this.sendEvent()}sendEvent(){let e={enabled:!!this._enabled};this.dispatchEvent(new CustomEvent(`luzmo-slot-content-changed`,{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContent:{...this.slotContent,grandTotals:e}}}))}render(){return a.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
- >${(0,o.msg)(`Grand totals`,{desc:`Label for grand totals setting in a table`})}</luzmo-field-label
24
+ >${(0,s.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"
@@ -35,10 +35,10 @@ const e=require(`./chunk-350yNsax.cjs`),t=require(`./base-C_azywlB.cjs`),n=requi
35
35
  <luzmo-icon
36
36
  slot="icon"
37
37
  .size=${this.size}
38
- .icon=${this._enabled?s.luzmoCheckboxChecked:s.luzmoCheckbox}
38
+ .icon=${this._enabled?i.luzmoCheckboxChecked:i.luzmoCheckbox}
39
39
  ></luzmo-icon>
40
- ${this._enabled?(0,o.msg)(`Enabled`,{desc:`Option set to enabled`}):(0,o.msg)(`Disabled`,{desc:`Option set to disabled`})}
40
+ ${this._enabled?(0,s.msg)(`Enabled`,{desc:`Option set to enabled`}):(0,s.msg)(`Disabled`,{desc:`Option set to disabled`})}
41
41
  </luzmo-action-button>
42
42
  </div>
43
43
  </div>
44
- </div>`}};n.t([(0,a.property)()],u.prototype,`slotContent`,void 0),n.t([(0,a.state)()],u.prototype,`_enabled`,void 0),u=n.t([(0,o.localized)()],u),customElements.get(`luzmo-display-settings-grand-totals`)||customElements.define(`luzmo-display-settings-grand-totals`,u),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return u}});
44
+ </div>`}};n.t([(0,o.property)()],u.prototype,`slotContent`,void 0),n.t([(0,o.state)()],u.prototype,`_enabled`,void 0),u=n.t([(0,s.localized)()],u),customElements.get(`luzmo-display-settings-grand-totals`)||customElements.define(`luzmo-display-settings-grand-totals`,u),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return u}});
@@ -19,11 +19,11 @@
19
19
  * */
20
20
  import { i as LuzmoElement, n as SizedMixin, t as ElementSizes } from "./base-rg2x95aL.js";
21
21
  import { t as __decorate } from "./decorate-Da6S_xrw.js";
22
- import { t as LocalizedMixin } from "./localized-mixin-cLT0UbaF.js";
22
+ import { t as LocalizedMixin } from "./localized-mixin-DluVAteK.js";
23
+ import { luzmoCheckbox, luzmoCheckboxChecked } from "@luzmo/icons";
23
24
  import { html, unsafeCSS } from "lit";
24
25
  import { property, state } from "lit/decorators.js";
25
26
  import { localized, msg } from "@lit/localize";
26
- import { luzmoCheckbox, luzmoCheckboxChecked } from "@luzmo/icons";
27
27
  import "@luzmo/lucero/field-label";
28
28
  import "@luzmo/lucero/icon";
29
29
  import "@luzmo/lucero/action-button";
@@ -17,4 +17,4 @@
17
17
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
18
  * SOFTWARE.
19
19
  * */
20
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../base-C_azywlB.cjs`),require(`../focus-visible-3ACCHno4.cjs`),require(`../set-locale-CKjJZRH6.cjs`),require(`../localized-mixin-DTvVLuXW.cjs`),require(`../calculate-data-field-icon-BhiGlh0u.cjs`);const e=require(`../display-settings-numeric-CfBT04A7.cjs`);Object.defineProperty(exports,`LuzmoDisplaySettingsNumeric`,{enumerable:!0,get:function(){return e.t}});
20
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../base-C_azywlB.cjs`),require(`../focus-visible-3ACCHno4.cjs`),require(`../set-locale-BbhzBfZV.cjs`),require(`../localized-mixin-Cxbtsznk.cjs`),require(`../calculate-data-field-icon-BhiGlh0u.cjs`);const e=require(`../display-settings-numeric-D3cQ5CNK.cjs`);Object.defineProperty(exports,`LuzmoDisplaySettingsNumeric`,{enumerable:!0,get:function(){return e.t}});
@@ -25,8 +25,8 @@
25
25
  })();
26
26
  import "../base-rg2x95aL.js";
27
27
  import "../focus-visible-D1pJhWEh.js";
28
- import "../set-locale-Uv6F4uSq.js";
29
- import "../localized-mixin-cLT0UbaF.js";
28
+ import "../set-locale-DmVKN5NY.js";
29
+ import "../localized-mixin-DluVAteK.js";
30
30
  import "../calculate-data-field-icon-CY7Y6fn1.js";
31
- import { t as LuzmoDisplaySettingsNumeric } from "../display-settings-numeric-Cpp9mQCA.js";
31
+ import { t as LuzmoDisplaySettingsNumeric } from "../display-settings-numeric-pc4CUJWx.js";
32
32
  export { LuzmoDisplaySettingsNumeric };
@@ -17,21 +17,21 @@
17
17
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
18
  * SOFTWARE.
19
19
  * */
20
- const e=require(`./chunk-350yNsax.cjs`),t=require(`./base-C_azywlB.cjs`),n=require(`./decorate-Dq4-zbi1.cjs`),r=require(`./localized-mixin-DTvVLuXW.cjs`),i=require(`./localize-BBuZJf_h.cjs`),a=require(`./decompose-numeric-format-Bp_e62qP.cjs`),o=require(`./calculate-data-field-icon-BhiGlh0u.cjs`);let s=require(`lit`),c=require(`lit/decorators.js`),l=require(`@lit/localize`),u=require(`@luzmo/icons`),d=require(`@luzmo/lucero/overlay`);require(`@luzmo/lucero/popover`),require(`@luzmo/lucero/tooltip`),require(`@luzmo/lucero/field-label`),require(`@luzmo/lucero/action-button`),require(`@luzmo/lucero/number-field`),require(`@luzmo/lucero/action-group`),require(`@luzmo/lucero/picker`),require(`@luzmo/lucero/menu`);var f=`:host .settings-container{gap:var(--luzmo-display-settings-vertical-gap,var(--luzmo-spacing-2));flex-direction:column;display:flex}:host .settings-row{justify-content:flex-start;align-items:center;gap:var(--luzmo-display-settings-numeric-gap,var(--display-settings-numeric-gap));display:flex}.duration-angle-down-icon{margin-inline-start:var(--luzmo-numeric-duration-levels-dropdown-icon-margin-inline-start,var(--numeric-duration-levels-dropdown-icon-margin-inline-start))}.dataset-header{white-space:nowrap;text-overflow:ellipsis;text-transform:uppercase;max-width:100%;color:var(--luzmo-font-color);white-space:nowrap;cursor:default;margin:.5rem 1rem;font-weight:600;overflow:hidden}.no-weight-label{margin-left:1rem}.with-secondary-icon{clip-path:polygon(0 0,60% 0,65% 60%,100% 65%,100% 100%,0 100%)}.secondary-icon{width:auto;font-size:.75em;line-height:1;position:absolute;bottom:45%;left:60%}.data-icon-type{text-align:center;width:1.5rem;display:inline-block;position:relative}:host{--display-settings-numeric-gap:var(--luzmo-spacing-3);--numeric-duration-levels-dropdown-icon-margin-inline-start:var(--luzmo-spacing-2)}:host([size=s]){--display-settings-numeric-gap:var(--luzmo-spacing-3);--numeric-duration-levels-dropdown-icon-margin-inline-start:var(--luzmo-spacing-1)}:host([size=l]){--display-settings-numeric-gap:var(--luzmo-spacing-4);--numeric-duration-levels-dropdown-icon-margin-inline-start:var(--luzmo-spacing-3)}:host([size=xl]){--display-settings-numeric-gap:var(--luzmo-spacing-5);--numeric-duration-levels-dropdown-icon-margin-inline-start:var(--luzmo-spacing-4)}`;const p={sum:()=>(0,l.msg)(`Sum`,{desc:`Numeric Aggregation option`}),cumulativesum:()=>(0,l.msg)(`Cumulative sum`,{desc:`Numeric Aggregation option`}),average:()=>(0,l.msg)(`Average`,{desc:`Numeric Aggregation option`}),median:()=>(0,l.msg)(`Median`,{desc:`Numeric Aggregation option`}),count:()=>(0,l.msg)(`Count rows`,{desc:`Numeric Aggregation option`}),distinctcount:()=>(0,l.msg)(`Count distinct`,{desc:`Numeric Aggregation option`}),min:()=>(0,l.msg)(`Minimum`,{desc:`Numeric Aggregation option`}),max:()=>(0,l.msg)(`Maximum`,{desc:`Numeric Aggregation option`}),stddev:()=>(0,l.msg)(`Standard deviation`,{desc:`Numeric Aggregation option`}),rate:()=>(0,l.msg)(`Rate`,{desc:`Numeric Aggregation option`})},m={general:`123`,percentage:`%`,scientific:`SI`},h={time:()=>(0,l.msg)(`Time`,{desc:`Time format option`}),short:()=>(0,l.msg)(`Short`,{desc:`Short format option`}),long:()=>(0,l.msg)(`Long`,{desc:`Long format option`})},g={Auto:{auto:!0,label:()=>(0,l.msg)(`Auto`,{desc:`Automatic setting of the option`})},"1,000.00":{auto:!1,label:()=>`1,000.00`,thousandSeparator:`,`,decimalSeparator:`.`,hiddenFor:`scientific`},"1.000,00":{auto:!1,label:()=>`1.000,00`,thousandSeparator:`.`,decimalSeparator:`,`,hiddenFor:`scientific`},"1000.00":{auto:!1,label:()=>`1000.00`,decimalSeparator:`.`},"1000,00":{auto:!1,label:()=>`1000,00`,decimalSeparator:`,`}},_={levels:[{level:1,label:`years`},{level:2,label:`quarters`},{level:3,label:`months`},{level:4,label:`weeks`},{level:5,label:`days`},{level:6,label:`hours`},{level:7,label:`minutes`},{level:8,label:`seconds`},{level:9,label:`milliseconds`}]};var v=class extends r.t(t.n(t.i,{validSizes:Object.values(t.t)})){constructor(...e){super(...e),this.slotContent={},this.measureColumns=[],this._durationLevels=[],this._renderDurationLevelMenu=!1,this._handleSlottableRequest=e=>{this._renderDurationLevelMenu=e.data!==d.removeSlottableRequest},this._sendEvent=()=>{let e={...this.slotContent,format:this._format,aggregationFunc:this._aggregationFunc};this._aggregationWeightColumn?e.aggregationWeight={...this._aggregationWeightColumn}:delete e.aggregationWeight,this._displayMode===`duration`?(e.duration=e.duration??{},e.duration.format=this._durationFormat,e.duration.levels=this._durationLevels):delete e.duration,this.dispatchEvent(new CustomEvent(`luzmo-slot-content-changed`,{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContent:e}}))}}static get styles(){return[(0,s.unsafeCSS)(f)]}_parseSavedNumericFormatSettings(){if(this._displayMode=this.slotContent?.subtype===`duration`?`duration`:`numeric`,this._durationFormat=this.slotContent?.duration?.format??`short`,this._durationLevels=this.slotContent?.duration?.levels??[1],this._displayMode===`duration`)this._precision=2,this._commaDecimals=!1,this._thousandSeparator=!1;else{this._format=this.slotContent?.format??`.0f`;let e=a.t(this._format??`.0f`);this._isAuto=e.typeFormat?.includes(`a`)??!1,[`%`,`a%`,`y`,`ay`].includes(e.typeFormat)?this._displayAs=`percentage`:[`s`,`as`,`w`,`aw`].includes(e.typeFormat)?this._displayAs=`scientific`:this._displayAs=`general`,this._precision=e.precision?Number.parseInt(e.precision.replace(`.`,``),10):this._displayAs===`scientific`?1:0,this._commaDecimals=[`z`,`az`,`y`,`ay`,`w`,`aw`].includes(e.typeFormat),this._thousandSeparator=e.comma===`,`,this._isAuto?this._numericFormatGroup=`Auto`:this._commaDecimals&&this._thousandSeparator?this._numericFormatGroup=`1.000,00`:!this._commaDecimals&&this._thousandSeparator?this._numericFormatGroup=`1,000.00`:this._commaDecimals&&!this._thousandSeparator?this._numericFormatGroup=`1000,00`:!this._commaDecimals&&!this._thousandSeparator&&(this._numericFormatGroup=`1000.00`)}}_setNumericDisplayAs(){this._displayAs=this._displayAsElement?.selected?.[0]??`general`,this._displayAs===`scientific`&&(this._precision=Math.max(this._precision??0,1),this._thousandSeparator=!1),this._setNumericFormat(),this._sendEvent(),this.requestUpdate()}_setNumericSeparators(e){let t=g[e?.detail??`Auto`];this._thousandSeparator=[`,`,`.`].includes(t?.thousandSeparator??``),this._commaDecimals=t?.decimalSeparator===`,`,this._isAuto=t?.auto,this._setNumericFormat(),this._sendEvent()}_setPrecision(){this._precision=this._precisionElement.value,this._setNumericFormat(),this._sendEvent()}_setNumericFormat(){let e=`f`,t=this.slotContent.subtype===`duration`?this._durationLevels&&this._durationLevels?.length===1?`numeric`:`duration`:`numeric`;if(this._maxDurationLevel=Math.min(...this._durationLevels),t===`duration`)(![`time`,`short`,`long`].includes(this._durationFormat??``)||this._maxDurationLevel<6&&this._durationFormat===`time`)&&(this._durationFormat=`short`);else{let t=this._displayAs??`general`;t===`general`&&this._commaDecimals?e=`z`:t===`percentage`&&this._commaDecimals?e=`y`:t===`scientific`&&this._commaDecimals?e=`w`:t===`percentage`?e=`%`:t===`scientific`&&(e=`s`),this._format=(this._thousandSeparator||this._isAuto?`,`:``)+`.`+this._precision+(this._isAuto?`a`:``)+e}}_setAggregationFunc(){let e=this._aggregationElement.value,t=this._aggregationFunc,n=this.slotContent.format;if(e!==(t===`weightedaverage`?`average`:t)){if(this._aggregationFunc=e===`average`&&this._aggregationWeightColumn?.column?`weightedaverage`:e,t===`rate`){let e=a.t(n),t=[`%`,`y`,`a%`,`ay`].includes(e.typeFormat);this.slotContent.subtype===`currency`&&t&&this._setNumericDisplayAs()}this._sendEvent(),(this._aggregationFunc===`rate`||t===`rate`)&&this.requestUpdate()}}_setAggregationWeight(){let e=this._aggregationWeightElement.value,t=this._aggregationFunc;if(e===`none`)this._aggregationWeightColumn=void 0,this._aggregationFunc===`weightedaverage`&&(this._aggregationFunc=`average`);else{let t,n;for(let r of this.measureColumns??[]){let i=r.columns?.find(t=>t.id===e);if(i){t=i,n=r.datasetId;break}}t&&(this._aggregationWeightColumn={column:t.id,set:n,columnSubType:t.subtype}),this._aggregationFunc===`average`&&(this._aggregationFunc=`weightedaverage`)}this._sendEvent(),this.requestUpdate(),(t===`weightedaverage`&&this._aggregationFunc===`average`||t===`average`&&this._aggregationFunc===`weightedaverage`)&&this.requestUpdate()}_setDurationLevels(){let e=this._durationLevels,t=this._durationLevelsElement.value.split(`,`).filter(e=>e!==``).map(e=>Number.parseInt(e,10));this._durationLevels=(t?.length??0)>=1?t:e,this._maxDurationLevel=Math.min(...this._durationLevels),this._fillTimeDurationLevels(),this._setNumericFormat(),this._sendEvent(),this.requestUpdate()}_setDurationFormat(){this._durationFormat=this._durationFormatElement?.selected?.[0],this._fillTimeDurationLevels(),this._setNumericFormat(),this._sendEvent(),this.requestUpdate()}_fillTimeDurationLevels(){if(this._durationFormat===`time`){let e=this._durationLevels.sort().at(-1);if([7,8,9].includes(e)){for(let t of{lev7:[6],lev8:[6,7],lev9:[6,7,8]}[`lev`+e])this._durationLevels.includes(t)||this._durationLevels.push(t);this._durationLevels=[...this._durationLevels].sort()}}}willUpdate(e){super.willUpdate(e),e.has(`slotContent`)&&(this._parseSavedNumericFormatSettings(),this._aggregationFunc=this.slotContent?.aggregationFunc??(this.slotContent?.type===`numeric`?`sum`:`count`),this._aggregationWeightColumn=this.slotContent?.aggregationWeight,this._isFormula=this.slotContent?.formula||this.slotContent?.formulaId)}_renderDurationLevelsSettings(){let e=_.levels.map(e=>{let t=!1;return this._durationFormat===`time`&&e.level>=6&&this._durationLevels.includes(e.level)&&e.level!==Math.max(...this._durationLevels)&&(t=!0),this._durationLevels.length===1&&this._durationLevels.includes(e.level)&&(t=!0),s.html`<luzmo-menu-item
20
+ const e=require(`./chunk-350yNsax.cjs`),t=require(`./base-C_azywlB.cjs`),n=require(`./decorate-Dq4-zbi1.cjs`),r=require(`./localized-mixin-Cxbtsznk.cjs`),i=require(`./localize-BBuZJf_h.cjs`),a=require(`./decompose-numeric-format-Bp_e62qP.cjs`),o=require(`./calculate-data-field-icon-BhiGlh0u.cjs`);let s=require(`@luzmo/icons`),c=require(`lit`),l=require(`lit/decorators.js`),u=require(`@lit/localize`),d=require(`@luzmo/lucero/overlay`);require(`@luzmo/lucero/popover`),require(`@luzmo/lucero/tooltip`),require(`@luzmo/lucero/field-label`),require(`@luzmo/lucero/action-button`),require(`@luzmo/lucero/number-field`),require(`@luzmo/lucero/action-group`),require(`@luzmo/lucero/picker`),require(`@luzmo/lucero/menu`);var f=`:host .settings-container{gap:var(--luzmo-display-settings-vertical-gap,var(--luzmo-spacing-2));flex-direction:column;display:flex}:host .settings-row{justify-content:flex-start;align-items:center;gap:var(--luzmo-display-settings-numeric-gap,var(--display-settings-numeric-gap));display:flex}.duration-angle-down-icon{margin-inline-start:var(--luzmo-numeric-duration-levels-dropdown-icon-margin-inline-start,var(--numeric-duration-levels-dropdown-icon-margin-inline-start))}.dataset-header{white-space:nowrap;text-overflow:ellipsis;text-transform:uppercase;max-width:100%;color:var(--luzmo-font-color);white-space:nowrap;cursor:default;margin:.5rem 1rem;font-weight:600;overflow:hidden}.no-weight-label{margin-left:1rem}.with-secondary-icon{clip-path:polygon(0 0,60% 0,65% 60%,100% 65%,100% 100%,0 100%)}.secondary-icon{width:auto;font-size:.75em;line-height:1;position:absolute;bottom:45%;left:60%}.data-icon-type{text-align:center;width:1.5rem;display:inline-block;position:relative}:host{--display-settings-numeric-gap:var(--luzmo-spacing-3);--numeric-duration-levels-dropdown-icon-margin-inline-start:var(--luzmo-spacing-2)}:host([size=s]){--display-settings-numeric-gap:var(--luzmo-spacing-3);--numeric-duration-levels-dropdown-icon-margin-inline-start:var(--luzmo-spacing-1)}:host([size=l]){--display-settings-numeric-gap:var(--luzmo-spacing-4);--numeric-duration-levels-dropdown-icon-margin-inline-start:var(--luzmo-spacing-3)}:host([size=xl]){--display-settings-numeric-gap:var(--luzmo-spacing-5);--numeric-duration-levels-dropdown-icon-margin-inline-start:var(--luzmo-spacing-4)}`;const p={sum:()=>(0,u.msg)(`Sum`,{desc:`Numeric Aggregation option`}),cumulativesum:()=>(0,u.msg)(`Cumulative sum`,{desc:`Numeric Aggregation option`}),average:()=>(0,u.msg)(`Average`,{desc:`Numeric Aggregation option`}),median:()=>(0,u.msg)(`Median`,{desc:`Numeric Aggregation option`}),count:()=>(0,u.msg)(`Count rows`,{desc:`Numeric Aggregation option`}),distinctcount:()=>(0,u.msg)(`Count distinct`,{desc:`Numeric Aggregation option`}),min:()=>(0,u.msg)(`Minimum`,{desc:`Numeric Aggregation option`}),max:()=>(0,u.msg)(`Maximum`,{desc:`Numeric Aggregation option`}),stddev:()=>(0,u.msg)(`Standard deviation`,{desc:`Numeric Aggregation option`}),rate:()=>(0,u.msg)(`Rate`,{desc:`Numeric Aggregation option`})},m={general:`123`,percentage:`%`,scientific:`SI`},h={time:()=>(0,u.msg)(`Time`,{desc:`Time format option`}),short:()=>(0,u.msg)(`Short`,{desc:`Short format option`}),long:()=>(0,u.msg)(`Long`,{desc:`Long format option`})},g={Auto:{auto:!0,label:()=>(0,u.msg)(`Auto`,{desc:`Automatic setting of the option`})},"1,000.00":{auto:!1,label:()=>`1,000.00`,thousandSeparator:`,`,decimalSeparator:`.`,hiddenFor:`scientific`},"1.000,00":{auto:!1,label:()=>`1.000,00`,thousandSeparator:`.`,decimalSeparator:`,`,hiddenFor:`scientific`},"1000.00":{auto:!1,label:()=>`1000.00`,decimalSeparator:`.`},"1000,00":{auto:!1,label:()=>`1000,00`,decimalSeparator:`,`}},_={levels:[{level:1,label:`years`},{level:2,label:`quarters`},{level:3,label:`months`},{level:4,label:`weeks`},{level:5,label:`days`},{level:6,label:`hours`},{level:7,label:`minutes`},{level:8,label:`seconds`},{level:9,label:`milliseconds`}]};var v=class extends r.t(t.n(t.i,{validSizes:Object.values(t.t)})){constructor(...e){super(...e),this.slotContent={},this.measureColumns=[],this._durationLevels=[],this._renderDurationLevelMenu=!1,this._handleSlottableRequest=e=>{this._renderDurationLevelMenu=e.data!==d.removeSlottableRequest},this._sendEvent=()=>{let e={...this.slotContent,format:this._format,aggregationFunc:this._aggregationFunc};this._aggregationWeightColumn?e.aggregationWeight={...this._aggregationWeightColumn}:delete e.aggregationWeight,this._displayMode===`duration`?(e.duration=e.duration??{},e.duration.format=this._durationFormat,e.duration.levels=this._durationLevels):delete e.duration,this.dispatchEvent(new CustomEvent(`luzmo-slot-content-changed`,{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContent:e}}))}}static get styles(){return[(0,c.unsafeCSS)(f)]}_parseSavedNumericFormatSettings(){if(this._displayMode=this.slotContent?.subtype===`duration`?`duration`:`numeric`,this._durationFormat=this.slotContent?.duration?.format??`short`,this._durationLevels=this.slotContent?.duration?.levels??[1],this._displayMode===`duration`)this._precision=2,this._commaDecimals=!1,this._thousandSeparator=!1;else{this._format=this.slotContent?.format??`.0f`;let e=a.t(this._format??`.0f`);this._isAuto=e.typeFormat?.includes(`a`)??!1,[`%`,`a%`,`y`,`ay`].includes(e.typeFormat)?this._displayAs=`percentage`:[`s`,`as`,`w`,`aw`].includes(e.typeFormat)?this._displayAs=`scientific`:this._displayAs=`general`,this._precision=e.precision?Number.parseInt(e.precision.replace(`.`,``),10):this._displayAs===`scientific`?1:0,this._commaDecimals=[`z`,`az`,`y`,`ay`,`w`,`aw`].includes(e.typeFormat),this._thousandSeparator=e.comma===`,`,this._isAuto?this._numericFormatGroup=`Auto`:this._commaDecimals&&this._thousandSeparator?this._numericFormatGroup=`1.000,00`:!this._commaDecimals&&this._thousandSeparator?this._numericFormatGroup=`1,000.00`:this._commaDecimals&&!this._thousandSeparator?this._numericFormatGroup=`1000,00`:!this._commaDecimals&&!this._thousandSeparator&&(this._numericFormatGroup=`1000.00`)}}_setNumericDisplayAs(){this._displayAs=this._displayAsElement?.selected?.[0]??`general`,this._displayAs===`scientific`&&(this._precision=Math.max(this._precision??0,1),this._thousandSeparator=!1),this._setNumericFormat(),this._sendEvent(),this.requestUpdate()}_setNumericSeparators(e){let t=g[e?.detail??`Auto`];this._thousandSeparator=[`,`,`.`].includes(t?.thousandSeparator??``),this._commaDecimals=t?.decimalSeparator===`,`,this._isAuto=t?.auto,this._setNumericFormat(),this._sendEvent()}_setPrecision(){Number.isNaN(this._precisionElement.value)&&(this._precisionElement.value=this._displayAs===`scientific`?1:0),this._precision=this._precisionElement.value,this._setNumericFormat(),this._sendEvent()}_setNumericFormat(){let e=`f`,t=this.slotContent.subtype===`duration`?this._durationLevels&&this._durationLevels?.length===1?`numeric`:`duration`:`numeric`;if(this._maxDurationLevel=Math.min(...this._durationLevels),t===`duration`)(![`time`,`short`,`long`].includes(this._durationFormat??``)||this._maxDurationLevel<6&&this._durationFormat===`time`)&&(this._durationFormat=`short`);else{let t=this._displayAs??`general`;t===`general`&&this._commaDecimals?e=`z`:t===`percentage`&&this._commaDecimals?e=`y`:t===`scientific`&&this._commaDecimals?e=`w`:t===`percentage`?e=`%`:t===`scientific`&&(e=`s`),this._format=(this._thousandSeparator||this._isAuto?`,`:``)+`.`+this._precision+(this._isAuto?`a`:``)+e}}_setAggregationFunc(){let e=this._aggregationElement.value,t=this._aggregationFunc,n=this.slotContent.format;if(e!==(t===`weightedaverage`?`average`:t)){if(this._aggregationFunc=e===`average`&&this._aggregationWeightColumn?.column?`weightedaverage`:e,t===`rate`){let e=a.t(n),t=[`%`,`y`,`a%`,`ay`].includes(e.typeFormat);this.slotContent.subtype===`currency`&&t&&this._setNumericDisplayAs()}this._sendEvent(),(this._aggregationFunc===`rate`||t===`rate`)&&this.requestUpdate()}}_setAggregationWeight(){let e=this._aggregationWeightElement.value,t=this._aggregationFunc;if(e===`none`)this._aggregationWeightColumn=void 0,this._aggregationFunc===`weightedaverage`&&(this._aggregationFunc=`average`);else{let t,n;for(let r of this.measureColumns??[]){let i=r.columns?.find(t=>t.id===e);if(i){t=i,n=r.datasetId;break}}t&&(this._aggregationWeightColumn={column:t.id,set:n,columnSubType:t.subtype}),this._aggregationFunc===`average`&&(this._aggregationFunc=`weightedaverage`)}this._sendEvent(),this.requestUpdate(),(t===`weightedaverage`&&this._aggregationFunc===`average`||t===`average`&&this._aggregationFunc===`weightedaverage`)&&this.requestUpdate()}_setDurationLevels(){let e=this._durationLevels,t=this._durationLevelsElement.value.split(`,`).filter(e=>e!==``).map(e=>Number.parseInt(e,10));this._durationLevels=(t?.length??0)>=1?t:e,this._maxDurationLevel=Math.min(...this._durationLevels),this._fillTimeDurationLevels(),this._setNumericFormat(),this._sendEvent(),this.requestUpdate()}_setDurationFormat(){this._durationFormat=this._durationFormatElement?.selected?.[0],this._fillTimeDurationLevels(),this._setNumericFormat(),this._sendEvent(),this.requestUpdate()}_fillTimeDurationLevels(){if(this._durationFormat===`time`){let e=this._durationLevels.sort().at(-1);if([7,8,9].includes(e)){for(let t of{lev7:[6],lev8:[6,7],lev9:[6,7,8]}[`lev`+e])this._durationLevels.includes(t)||this._durationLevels.push(t);this._durationLevels=[...this._durationLevels].sort()}}}willUpdate(e){super.willUpdate(e),e.has(`slotContent`)&&(this._parseSavedNumericFormatSettings(),this._aggregationFunc=this.slotContent?.aggregationFunc??(this.slotContent?.type===`numeric`?`sum`:`count`),this._aggregationWeightColumn=this.slotContent?.aggregationWeight,this._isFormula=this.slotContent?.formula||this.slotContent?.formulaId)}_renderDurationLevelsSettings(){let e=_.levels.map(e=>{let t=!1;return this._durationFormat===`time`&&e.level>=6&&this._durationLevels.includes(e.level)&&e.level!==Math.max(...this._durationLevels)&&(t=!0),this._durationLevels.length===1&&this._durationLevels.includes(e.level)&&(t=!0),c.html`<luzmo-menu-item
21
21
  value=${e.level}
22
22
  ?selected=${this._durationLevels.includes(e.level)}
23
23
  ?disabled=${t}
24
24
  >
25
25
  ${e.label}
26
- </luzmo-menu-item>`});return s.html` <div class="setting">
26
+ </luzmo-menu-item>`});return c.html` <div class="setting">
27
27
  <luzmo-field-label for="duration-levels">
28
- ${(0,l.msg)(`Duration levels`,{desc:`Label for duration levels setting`})}
28
+ ${(0,u.msg)(`Duration levels`,{desc:`Label for duration levels setting`})}
29
29
  </luzmo-field-label>
30
30
  <luzmo-action-button id="duration-levels-trigger" size=${this.size}>
31
31
  ${this._durationLevels.length}
32
32
  ${this._durationLevels.length===1?`level`:`levels`} active
33
33
  <span class="duration-angle-down-icon">
34
- ${(0,u.luzmoIcon)(u.luzmoAngleDown)}
34
+ ${(0,s.luzmoIcon)(s.luzmoAngleDown)}
35
35
  </span>
36
36
  </luzmo-action-button>
37
37
  <luzmo-overlay
@@ -43,7 +43,7 @@ const e=require(`./chunk-350yNsax.cjs`),t=require(`./base-C_azywlB.cjs`),n=requi
43
43
  @slottable-request=${this._handleSlottableRequest}
44
44
  >
45
45
  <luzmo-popover style="position: relative">
46
- ${this._renderDurationLevelMenu?s.html` <luzmo-menu
46
+ ${this._renderDurationLevelMenu?c.html` <luzmo-menu
47
47
  id="duration-levels"
48
48
  size=${this.size}
49
49
  selects="multiple"
@@ -54,11 +54,11 @@ const e=require(`./chunk-350yNsax.cjs`),t=require(`./base-C_azywlB.cjs`),n=requi
54
54
  </luzmo-menu>`:``}
55
55
  </luzmo-popover>
56
56
  </luzmo-overlay>
57
- </div>`}_renderDurationFormatSettings(){let e=Object.keys(h).map(e=>e===`time`&&(this._maxDurationLevel??1)<6?``:s.html`<luzmo-action-button value=${e}>
57
+ </div>`}_renderDurationFormatSettings(){let e=Object.keys(h).map(e=>e===`time`&&(this._maxDurationLevel??1)<6?``:c.html`<luzmo-action-button value=${e}>
58
58
  ${h[e]()}
59
- </luzmo-action-button>`);return s.html` <div class="setting">
59
+ </luzmo-action-button>`);return c.html` <div class="setting">
60
60
  <luzmo-field-label for="duration-format">
61
- ${(0,l.msg)(`Format`,{desc:`Label for format setting`})}
61
+ ${(0,u.msg)(`Format`,{desc:`Label for format setting`})}
62
62
  </luzmo-field-label>
63
63
  <luzmo-action-group
64
64
  emphasized
@@ -71,11 +71,11 @@ const e=require(`./chunk-350yNsax.cjs`),t=require(`./base-C_azywlB.cjs`),n=requi
71
71
  >
72
72
  ${e}
73
73
  </luzmo-action-group>
74
- </div>`}_renderNumericDisplayAsSettings(){let e=Object.keys(m).filter(e=>e!==`percentage`||(this.slotContent.subtype!==`currency`||this.slotContent.aggregationFunc===`rate`)&&this.slotContent.periodOverPeriod?.type!==`percentageChange`).map(e=>s.html`<luzmo-action-button value=${e}
74
+ </div>`}_renderNumericDisplayAsSettings(){let e=Object.keys(m).filter(e=>e!==`percentage`||(this.slotContent.subtype!==`currency`||this.slotContent.aggregationFunc===`rate`)&&this.slotContent.periodOverPeriod?.type!==`percentageChange`).map(e=>c.html`<luzmo-action-button value=${e}
75
75
  >${m[e]}</luzmo-action-button
76
- >`);return s.html`<div class="setting">
76
+ >`);return c.html`<div class="setting">
77
77
  <luzmo-field-label for="display-as">
78
- ${(0,l.msg)(`Display as`,{desc:`Label for display as setting for the datetime field`})}
78
+ ${(0,u.msg)(`Display as`,{desc:`Label for display as setting for the datetime field`})}
79
79
  </luzmo-field-label>
80
80
  <luzmo-action-group
81
81
  emphasized
@@ -88,9 +88,9 @@ const e=require(`./chunk-350yNsax.cjs`),t=require(`./base-C_azywlB.cjs`),n=requi
88
88
  >
89
89
  ${e}
90
90
  </luzmo-action-group>
91
- </div>`}_renderNumericFormatSettings(){let e=Object.entries(g).filter(([,{hiddenFor:e}])=>!e||e!==this._displayAs).map(([e,{label:t}])=>s.html`<luzmo-menu-item value=${e}>${t()}</luzmo-menu-item>`);return s.html` <div class="setting">
91
+ </div>`}_renderNumericFormatSettings(){let e=Object.entries(g).filter(([,{hiddenFor:e}])=>!e||e!==this._displayAs).map(([e,{label:t}])=>c.html`<luzmo-menu-item value=${e}>${t()}</luzmo-menu-item>`);return c.html` <div class="setting">
92
92
  <luzmo-field-label for="format">
93
- ${(0,l.msg)(`Format`,{desc:`Label for format setting`})}
93
+ ${(0,u.msg)(`Format`,{desc:`Label for format setting`})}
94
94
  </luzmo-field-label>
95
95
  <luzmo-picker
96
96
  id="format"
@@ -104,7 +104,7 @@ const e=require(`./chunk-350yNsax.cjs`),t=require(`./base-C_azywlB.cjs`),n=requi
104
104
  </div>
105
105
  <div class="setting">
106
106
  <luzmo-field-label for="precision" id="precision-label">
107
- ${this._displayAs===`scientific`?(0,l.msg)(`Precision`,{desc:`Label for precision setting`}):(0,l.msg)(`Decimals`,{desc:`Label for decimals setting`})}
107
+ ${this._displayAs===`scientific`?(0,u.msg)(`Precision`,{desc:`Label for precision setting`}):(0,u.msg)(`Decimals`,{desc:`Label for decimals setting`})}
108
108
  </luzmo-field-label>
109
109
  <luzmo-number-field
110
110
  id="precision"
@@ -114,35 +114,35 @@ const e=require(`./chunk-350yNsax.cjs`),t=require(`./base-C_azywlB.cjs`),n=requi
114
114
  value=${this._precision??(this._displayAs===`scientific`?1:0)}
115
115
  @change=${this._setPrecision}
116
116
  ></luzmo-number-field>
117
- </div>`}_renderAggregationSettings(){let e=Object.entries(p).filter(([e])=>[`count`,`distinctcount`].includes(e)||this.slotContent?.type===`numeric`).filter(([e])=>e!==`cumulativesum`||this.isCumulativeSumEnabled).map(([e,t])=>s.html`<luzmo-menu-item value=${e}>${t()}</luzmo-menu-item>`),t=[s.html`
117
+ </div>`}_renderAggregationSettings(){let e=Object.entries(p).filter(([e])=>[`count`,`distinctcount`].includes(e)||this.slotContent?.type===`numeric`).filter(([e])=>e!==`cumulativesum`||this.isCumulativeSumEnabled).map(([e,t])=>c.html`<luzmo-menu-item value=${e}>${t()}</luzmo-menu-item>`),t=[c.html`
118
118
  <luzmo-menu-item
119
119
  value="none"
120
120
  class="no-weight"
121
121
  >
122
122
  <span class="no-weight-label">No weight</span>
123
123
  </luzmo-menu-item>
124
- `,...(this.measureColumns??[]).flatMap(e=>{let t=typeof e.datasetName==`object`?i.t(e.datasetName,this.language):e.datasetName;return[s.html`<div class="dataset-header">
124
+ `,...(this.measureColumns??[]).flatMap(e=>{let t=typeof e.datasetName==`object`?i.t(e.datasetName,this.language):e.datasetName;return[c.html`<div class="dataset-header">
125
125
  ${t}
126
126
  <luzmo-tooltip self-managed placement="right" size=${this.size}>
127
127
  ${t}
128
128
  </luzmo-tooltip>
129
- </div>`,...(e.columns??[]).map(e=>{let t=typeof e.name==`object`?i.t(e.name,this.language):e.name,n=(0,u.luzmoIcon)(o.t(e,`s`)),r=e.expression?u.luzmoTypeDerived12:void 0,a=!!r,c=a?s.html`<span class="secondary-icon"
130
- >${(0,u.luzmoIcon)(r)}</span
131
- >`:s.nothing;return s.html`<luzmo-menu-item value=${e.id}>
129
+ </div>`,...(e.columns??[]).map(e=>{let t=typeof e.name==`object`?i.t(e.name,this.language):e.name,n=(0,s.luzmoIcon)(o.t(e,`s`)),r=e.expression?s.luzmoTypeDerived12:void 0,a=!!r,l=a?c.html`<span class="secondary-icon"
130
+ >${(0,s.luzmoIcon)(r)}</span
131
+ >`:c.nothing;return c.html`<luzmo-menu-item value=${e.id}>
132
132
  <span class="data-icon-type" slot="icon">
133
133
  <span class=${a?`with-secondary-icon`:``}
134
134
  >${n}</span
135
135
  >
136
- ${c}
136
+ ${l}
137
137
  </span>
138
138
  <span class="column-label text-truncate">${t}</span>
139
139
  <luzmo-tooltip self-managed placement="right" size=${this.size}>
140
140
  ${t}
141
141
  </luzmo-tooltip>
142
- </luzmo-menu-item>`})]})];return s.html`<div class="settings-row">
142
+ </luzmo-menu-item>`})]})];return c.html`<div class="settings-row">
143
143
  <div class="setting">
144
144
  <luzmo-field-label for="aggregation">
145
- ${(0,l.msg)(`Aggregation`,{desc:`Label for aggregation setting`})}
145
+ ${(0,u.msg)(`Aggregation`,{desc:`Label for aggregation setting`})}
146
146
  </luzmo-field-label>
147
147
  <luzmo-picker
148
148
  id="aggregation"
@@ -154,11 +154,11 @@ const e=require(`./chunk-350yNsax.cjs`),t=require(`./base-C_azywlB.cjs`),n=requi
154
154
  ${e}
155
155
  </luzmo-picker>
156
156
  </div>
157
- ${[`rate`,`average`,`weightedaverage`].includes(this._aggregationFunc??``)?s.html`<div class="setting">
157
+ ${[`rate`,`average`,`weightedaverage`].includes(this._aggregationFunc??``)?c.html`<div class="setting">
158
158
  <luzmo-field-label for="weighting-column">
159
159
  ${this._aggregationFunc===`rate`?`Denominator`:`Weight`}
160
160
  </luzmo-field-label>
161
- ${this.measureColumns.length>0?s.html`
161
+ ${this.measureColumns.length>0?c.html`
162
162
  <luzmo-picker
163
163
  id="weighting-column"
164
164
  size=${this.size}
@@ -169,7 +169,7 @@ const e=require(`./chunk-350yNsax.cjs`),t=require(`./base-C_azywlB.cjs`),n=requi
169
169
  >
170
170
  ${t}
171
171
  </luzmo-picker>
172
- `:s.html`<luzmo-picker
172
+ `:c.html`<luzmo-picker
173
173
  id="weighting-column"
174
174
  size=${this.size}
175
175
  variant="highlight"
@@ -179,11 +179,11 @@ const e=require(`./chunk-350yNsax.cjs`),t=require(`./base-C_azywlB.cjs`),n=requi
179
179
  <luzmo-menu-item value="none">No weight</luzmo-menu-item>
180
180
  </luzmo-picker>`}
181
181
  </div>`:``}
182
- </div>`}render(){return s.html`<div class="settings-container">
182
+ </div>`}render(){return c.html`<div class="settings-container">
183
183
  <div class="settings-row">
184
184
  ${this._displayMode===`duration`?this._renderDurationLevelsSettings():this._renderNumericDisplayAsSettings()}
185
185
  ${this._durationLevels?.length>1?this._renderDurationFormatSettings():this._renderNumericFormatSettings()}
186
186
  </div>
187
- ${this._isFormula||this.isAggregationDisabled?s.nothing:this._renderAggregationSettings()}
187
+ ${this._isFormula||this.isAggregationDisabled?c.nothing:this._renderAggregationSettings()}
188
188
  </div>
189
- </div>`}};n.t([(0,c.property)({type:Object,attribute:!1})],v.prototype,`slotContent`,void 0),n.t([(0,c.property)({type:Array,reflect:!1})],v.prototype,`measureColumns`,void 0),n.t([(0,c.property)({type:Boolean})],v.prototype,`isAggregationDisabled`,void 0),n.t([(0,c.property)({type:Boolean})],v.prototype,`isCumulativeSumEnabled`,void 0),n.t([(0,c.query)(`#display-as`)],v.prototype,`_displayAsElement`,void 0),n.t([(0,c.query)(`#precision`)],v.prototype,`_precisionElement`,void 0),n.t([(0,c.query)(`#aggregation`)],v.prototype,`_aggregationElement`,void 0),n.t([(0,c.query)(`#weighting-column`)],v.prototype,`_aggregationWeightElement`,void 0),n.t([(0,c.query)(`#duration-levels`)],v.prototype,`_durationLevelsElement`,void 0),n.t([(0,c.query)(`#duration-format`)],v.prototype,`_durationFormatElement`,void 0),n.t([(0,c.state)()],v.prototype,`_renderDurationLevelMenu`,void 0),v=n.t([(0,l.localized)()],v),customElements.get(`luzmo-display-settings-numeric`)||customElements.define(`luzmo-display-settings-numeric`,v),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return v}});
189
+ </div>`}};n.t([(0,l.property)({type:Object,attribute:!1})],v.prototype,`slotContent`,void 0),n.t([(0,l.property)({type:Array,reflect:!1})],v.prototype,`measureColumns`,void 0),n.t([(0,l.property)({type:Boolean})],v.prototype,`isAggregationDisabled`,void 0),n.t([(0,l.property)({type:Boolean})],v.prototype,`isCumulativeSumEnabled`,void 0),n.t([(0,l.query)(`#display-as`)],v.prototype,`_displayAsElement`,void 0),n.t([(0,l.query)(`#precision`)],v.prototype,`_precisionElement`,void 0),n.t([(0,l.query)(`#aggregation`)],v.prototype,`_aggregationElement`,void 0),n.t([(0,l.query)(`#weighting-column`)],v.prototype,`_aggregationWeightElement`,void 0),n.t([(0,l.query)(`#duration-levels`)],v.prototype,`_durationLevelsElement`,void 0),n.t([(0,l.query)(`#duration-format`)],v.prototype,`_durationFormatElement`,void 0),n.t([(0,l.state)()],v.prototype,`_renderDurationLevelMenu`,void 0),v=n.t([(0,u.localized)()],v),customElements.get(`luzmo-display-settings-numeric`)||customElements.define(`luzmo-display-settings-numeric`,v),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return v}});
@@ -19,14 +19,14 @@
19
19
  * */
20
20
  import { i as LuzmoElement, n as SizedMixin, t as ElementSizes } from "./base-rg2x95aL.js";
21
21
  import { t as __decorate } from "./decorate-Da6S_xrw.js";
22
- import { t as LocalizedMixin } from "./localized-mixin-cLT0UbaF.js";
22
+ import { t as LocalizedMixin } from "./localized-mixin-DluVAteK.js";
23
23
  import { t as localize } from "./localize-Dlt3EN5i.js";
24
24
  import { t as decomposeNumericFormat } from "./decompose-numeric-format-zrP4WxE7.js";
25
25
  import { t as calculateDataFieldIcon } from "./calculate-data-field-icon-CY7Y6fn1.js";
26
+ import { luzmoAngleDown, luzmoIcon, luzmoTypeDerived12 } from "@luzmo/icons";
26
27
  import { html, nothing, unsafeCSS } from "lit";
27
28
  import { property, query, state } from "lit/decorators.js";
28
29
  import { localized, msg } from "@lit/localize";
29
- import { luzmoAngleDown, luzmoIcon, luzmoTypeDerived12 } from "@luzmo/icons";
30
30
  import { removeSlottableRequest } from "@luzmo/lucero/overlay";
31
31
  import "@luzmo/lucero/popover";
32
32
  import "@luzmo/lucero/tooltip";
@@ -177,7 +177,7 @@ var LuzmoDisplaySettingsNumeric = class extends LocalizedMixin(SizedMixin(LuzmoE
177
177
  this._thousandSeparator = [",", "."].includes(S?.thousandSeparator ?? ""), this._commaDecimals = S?.decimalSeparator === ",", this._isAuto = S?.auto, this._setNumericFormat(), this._sendEvent();
178
178
  }
179
179
  _setPrecision() {
180
- this._precision = this._precisionElement.value, this._setNumericFormat(), this._sendEvent();
180
+ Number.isNaN(this._precisionElement.value) && (this._precisionElement.value = this._displayAs === "scientific" ? 1 : 0), this._precision = this._precisionElement.value, this._setNumericFormat(), this._sendEvent();
181
181
  }
182
182
  _setNumericFormat() {
183
183
  let e = "f", S = this.slotContent.subtype === "duration" ? this._durationLevels && this._durationLevels?.length === 1 ? "numeric" : "duration" : "numeric";
@@ -17,4 +17,4 @@
17
17
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
18
  * SOFTWARE.
19
19
  * */
20
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../base-C_azywlB.cjs`),require(`../focus-visible-3ACCHno4.cjs`),require(`../set-locale-CKjJZRH6.cjs`),require(`../localized-mixin-DTvVLuXW.cjs`);const e=require(`../display-settings-period-over-period-CWOpgJmd.cjs`);Object.defineProperty(exports,`LuzmoDisplaySettingsPeriodOverPeriod`,{enumerable:!0,get:function(){return e.t}});
20
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../base-C_azywlB.cjs`),require(`../focus-visible-3ACCHno4.cjs`),require(`../set-locale-BbhzBfZV.cjs`),require(`../localized-mixin-Cxbtsznk.cjs`);const e=require(`../display-settings-period-over-period-lYLbMfrq.cjs`);Object.defineProperty(exports,`LuzmoDisplaySettingsPeriodOverPeriod`,{enumerable:!0,get:function(){return e.t}});