@luzmo/analytics-components-kit 1.0.1-alpha.23 → 1.0.1-alpha.25

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 (197) hide show
  1. package/components/{area-chart-options.config-B_RU34v5.js → area-chart-options.config-7NUkgEdr.js} +1 -1
  2. package/components/{area-chart-options.config-2BXQXewO.cjs → area-chart-options.config-HmuEMllK.cjs} +1 -1
  3. package/components/{bar-chart-options.config-CyLNzGX7.js → bar-chart-options.config-BdbbHUJZ.js} +1 -1
  4. package/components/{bar-chart-options.config-DlDSo8Dq.cjs → bar-chart-options.config-C9XGEujs.cjs} +1 -1
  5. package/components/box-plot-options.config-DJz_kt-M.cjs +20 -0
  6. package/components/{box-plot-options.config-Bx78e6xX.js → box-plot-options.config-vlz5qeNq.js} +7 -7
  7. package/components/{bubble-chart-options.config-DoLr3Twj.js → bubble-chart-options.config-BacgXkJ_.js} +1 -1
  8. package/components/{bubble-chart-options.config-B5uoD-UQ.cjs → bubble-chart-options.config-Ihn6eVQI.cjs} +1 -1
  9. package/components/{bullet-chart-options.config-WCpV0bmw.js → bullet-chart-options.config-Bsw7N7Wl.js} +1 -1
  10. package/components/{bullet-chart-options.config-Dqq2JsBH.cjs → bullet-chart-options.config-DfS4Bwds.cjs} +1 -1
  11. package/components/{choropleth-map-options.config-DHQu69ib.js → choropleth-map-options.config-CeKXtnYB.js} +2 -2
  12. package/components/{choropleth-map-options.config-BfiQod-y.cjs → choropleth-map-options.config-CxUOg3pw.cjs} +1 -1
  13. package/components/{circular-gauge-options.config-CfBX-BB2.cjs → circular-gauge-options.config-Cz2TGR6X.cjs} +1 -1
  14. package/components/{circular-gauge-options.config-DKERJQpZ.js → circular-gauge-options.config-Kd_WK_w-.js} +7 -7
  15. package/components/{column-chart-options.config-qM4Qo3NP.cjs → column-chart-options.config-Bi0RAzK-.cjs} +1 -1
  16. package/components/{column-chart-options.config-Car_euCH.js → column-chart-options.config-BqSQ1Sl9.js} +1 -1
  17. package/components/{conditional-number-options.config-CU9_onv1.cjs → conditional-number-options.config-BZfgdUGh.cjs} +1 -1
  18. package/components/{conditional-number-options.config-B5rpjedA.js → conditional-number-options.config-BzzAnCOB.js} +1 -1
  19. package/components/{date-filter-options.config-KiuizKhg.js → date-filter-options.config-DBRxlTWy.js} +2 -2
  20. package/components/{donut-chart-options.config-NPwNtLDW.js → donut-chart-options.config-BulUEiaH.js} +37 -18
  21. package/components/donut-chart-options.config-tNpqBZfR.cjs +20 -0
  22. package/components/edit-item/index.cjs +11 -3
  23. package/components/edit-item/index.js +89 -51
  24. package/components/edit-option/helpers/get-value-by-key.d.ts +1 -1
  25. package/components/edit-option/index.cjs +1 -1
  26. package/components/edit-option/index.js +1 -1
  27. package/components/edit-option-multi-language-field/edit-option-multi-language-field.d.ts +2 -2
  28. package/components/edit-option-multi-language-field/index.cjs +2 -2
  29. package/components/edit-option-multi-language-field/index.js +10 -10
  30. package/components/edit-option-number-field/edit-option-number-field.d.ts +2 -2
  31. package/components/edit-option-number-field/index.cjs +3 -3
  32. package/components/edit-option-number-field/index.js +10 -10
  33. package/components/edit-option-picker/edit-option-picker.d.ts +2 -2
  34. package/components/edit-option-picker/index.cjs +6 -6
  35. package/components/edit-option-picker/index.js +10 -10
  36. package/components/edit-option-radio-button-group/edit-option-radio-button-group.d.ts +2 -2
  37. package/components/edit-option-radio-button-group/index.cjs +3 -3
  38. package/components/edit-option-radio-button-group/index.js +16 -16
  39. package/components/edit-option-slider/edit-option-slider.d.ts +2 -2
  40. package/components/edit-option-slider/index.cjs +2 -2
  41. package/components/edit-option-slider/index.js +29 -29
  42. package/components/edit-option-switch/edit-option-switch.d.ts +2 -2
  43. package/components/edit-option-switch/index.cjs +2 -2
  44. package/components/edit-option-switch/index.js +10 -10
  45. package/components/{evolution-number-options.config-G8jViz8Z.cjs → evolution-number-options.config-BgIZY4gQ.cjs} +1 -1
  46. package/components/{evolution-number-options.config-DmzhEioN.js → evolution-number-options.config-DzkfeoIN.js} +3 -3
  47. package/components/{funnel-chart-options.config-CrlHKd36.js → funnel-chart-options.config-CIOrejfS.js} +23 -22
  48. package/components/funnel-chart-options.config-L_gqlFs2.cjs +20 -0
  49. package/components/{heat-map-options.config-B0FtmOXM.js → heat-map-options.config-BAuSJV3_.js} +4 -4
  50. package/components/{heat-map-options.config-CnBcz-lL.cjs → heat-map-options.config-DsUXxjN0.cjs} +1 -1
  51. package/components/heat-table-options.config-DSu_18VG.js +309 -0
  52. package/components/heat-table-options.config-DqPL2hIY.cjs +20 -0
  53. package/components/heat-table-options.de-BABkUn2Y.js +142 -0
  54. package/components/heat-table-options.de-aYfCrdCP.cjs +20 -0
  55. package/components/heat-table-options.en-BUBmMDZW.js +142 -0
  56. package/components/heat-table-options.en-CIdnDv3K.cjs +20 -0
  57. package/components/heat-table-options.es-DaK6qGQC.cjs +20 -0
  58. package/components/heat-table-options.es-Dl9D9rD_.js +142 -0
  59. package/components/heat-table-options.fr-BouHFs1P.cjs +20 -0
  60. package/components/heat-table-options.fr-DOShw8a1.js +142 -0
  61. package/components/heat-table-options.nl-8CXDqKzS.cjs +20 -0
  62. package/components/heat-table-options.nl-D6Fn7sgt.js +142 -0
  63. package/components/helpers-DXQwEH1P.cjs +20 -0
  64. package/components/helpers-v1bPALRP.js +91 -0
  65. package/components/{hexbin-map-options.config-BraDZx_s.cjs → hexbin-map-options.config-B_KAcDYq.cjs} +1 -1
  66. package/components/{hexbin-map-options.config-BJaPYxgd.js → hexbin-map-options.config-DaaC88d8.js} +2 -2
  67. package/components/{index-DGIXzqTS.js → index-Dn7LyFPv.js} +330 -290
  68. package/components/index-eEpFkbP8.cjs +195 -0
  69. package/components/index.cjs +1 -1
  70. package/components/index.js +1 -1
  71. package/components/{line-chart-options.config-vvO1O6jm.js → line-chart-options.config-DB3IsXXr.js} +1 -1
  72. package/components/{line-chart-options.config-DsskcFNR.cjs → line-chart-options.config-DSugoe0t.cjs} +1 -1
  73. package/components/{marker-map-options.config-DlJhJQFX.js → marker-map-options.config-CYoq89Oz.js} +6 -6
  74. package/components/{marker-map-options.config-DJrnM51M.cjs → marker-map-options.config-_XFv5XWK.cjs} +1 -1
  75. package/components/pivot-table-options.config-BiJXKSFR.cjs +20 -0
  76. package/components/pivot-table-options.config-DNK_AIG7.js +232 -0
  77. package/components/pivot-table-options.de-CEaD9SHr.cjs +20 -0
  78. package/components/pivot-table-options.de-Dfa6EWs8.js +97 -0
  79. package/components/pivot-table-options.en-B5sM2MbV.js +97 -0
  80. package/components/pivot-table-options.en-DC07VN7H.cjs +20 -0
  81. package/components/pivot-table-options.es-DRXomw6R.js +97 -0
  82. package/components/pivot-table-options.es-Xm6ENByP.cjs +20 -0
  83. package/components/pivot-table-options.fr-ClLROt4b.cjs +20 -0
  84. package/components/pivot-table-options.fr-DEm9IyRf.js +97 -0
  85. package/components/pivot-table-options.nl-C4c_dGos.js +97 -0
  86. package/components/pivot-table-options.nl-Dk2Oeu8i.cjs +20 -0
  87. package/components/pyramid-chart-options.config-C4zbFS26.cjs +20 -0
  88. package/components/pyramid-chart-options.config-CcVMatYx.js +285 -0
  89. package/components/pyramid-chart-options.de-CwVggi4v.js +109 -0
  90. package/components/pyramid-chart-options.de-DKas0NiC.cjs +20 -0
  91. package/components/pyramid-chart-options.en-L6DFdrRz.cjs +20 -0
  92. package/components/pyramid-chart-options.en-elRf98In.js +109 -0
  93. package/components/pyramid-chart-options.es-BBbeV0cJ.js +109 -0
  94. package/components/pyramid-chart-options.es-Cu0g6t6A.cjs +20 -0
  95. package/components/pyramid-chart-options.fr-C1NDQloJ.js +109 -0
  96. package/components/pyramid-chart-options.fr-CreHLwD_.cjs +20 -0
  97. package/components/pyramid-chart-options.nl-CRbkXz3i.cjs +20 -0
  98. package/components/pyramid-chart-options.nl-DBCQKS8l.js +109 -0
  99. package/components/{radar-chart-options.config-DBJ8brjT.js → radar-chart-options.config-CUZn_3Fd.js} +1 -1
  100. package/components/{radar-chart-options.config-DP8xDDs-.cjs → radar-chart-options.config-EqQu6PTh.cjs} +1 -1
  101. package/components/{regular-table-options.config-HkJRCsZu.js → regular-table-options.config-BoLZsBry.js} +17 -17
  102. package/components/regular-table-options.config-DTx3RTnS.cjs +20 -0
  103. package/components/{route-map-options.config-BOIdPHns.cjs → route-map-options.config-CcQXPmjN.cjs} +1 -1
  104. package/components/{route-map-options.config-CPM0TmlA.js → route-map-options.config-u0hQqmDh.js} +6 -6
  105. package/components/{sankey-diagram-options.config-BUSorI4e.cjs → sankey-diagram-options.config-RFB83YLZ.cjs} +1 -1
  106. package/components/{sankey-diagram-options.config-v0h4IkEH.js → sankey-diagram-options.config-tVLKy_Zn.js} +1 -1
  107. package/components/scatter-plot-options.config-DkJLutNb.cjs +20 -0
  108. package/components/scatter-plot-options.config-lrkd9qj4.js +321 -0
  109. package/components/scatter-plot-options.de-CNfyb-0y.js +134 -0
  110. package/components/scatter-plot-options.de-fSoIvHJy.cjs +20 -0
  111. package/components/scatter-plot-options.en-CGCdpOtQ.cjs +20 -0
  112. package/components/scatter-plot-options.en-DT_QitaD.js +134 -0
  113. package/components/scatter-plot-options.es-CLRJMSqn.cjs +20 -0
  114. package/components/scatter-plot-options.es-Cb_VrOKP.js +134 -0
  115. package/components/scatter-plot-options.fr-AUEQJHAt.js +134 -0
  116. package/components/scatter-plot-options.fr-Da2McGuN.cjs +20 -0
  117. package/components/scatter-plot-options.nl-C53CChoE.js +134 -0
  118. package/components/scatter-plot-options.nl-CRWq01rL.cjs +20 -0
  119. package/components/{slicer-filter-options.config-DnOP_foh.js → slicer-filter-options.config-3JZZcw5C.js} +5 -5
  120. package/components/slicer-filter-options.config-DNI-XevE.cjs +20 -0
  121. package/components/{slider-filter-options.config-BJZtYn5P.js → slider-filter-options.config-DH4SS8wH.js} +1 -1
  122. package/components/{slider-filter-options.config-DJ2XK2QN.cjs → slider-filter-options.config-_8Z2zKmU.cjs} +1 -1
  123. package/components/speedometer-chart-options.config-CVsSjLmh.cjs +20 -0
  124. package/components/speedometer-chart-options.config-Dt2feQYV.js +199 -0
  125. package/components/speedometer-chart-options.de-D5SIAUZA.cjs +20 -0
  126. package/components/speedometer-chart-options.de-Es9DDvRK.js +90 -0
  127. package/components/speedometer-chart-options.en-BUj6JXhT.cjs +20 -0
  128. package/components/speedometer-chart-options.en-ByIJm8EZ.js +90 -0
  129. package/components/speedometer-chart-options.es-CPKH0xpW.js +90 -0
  130. package/components/speedometer-chart-options.es-DalX0e7D.cjs +20 -0
  131. package/components/speedometer-chart-options.fr-BctlGfgX.js +90 -0
  132. package/components/speedometer-chart-options.fr-Dqn95u64.cjs +20 -0
  133. package/components/speedometer-chart-options.nl-Bo6cV2j0.cjs +20 -0
  134. package/components/speedometer-chart-options.nl-Ygle7DjX.js +90 -0
  135. package/components/{spike-map-options.config-D-TWp2W4.cjs → spike-map-options.config-PpPPrsR2.cjs} +1 -1
  136. package/components/{spike-map-options.config-wzGnfQRU.js → spike-map-options.config-pdbV_vwg.js} +3 -3
  137. package/components/{symbol-map-options.config-DlyBMq6R.js → symbol-map-options.config-Bj-UuL9m.js} +3 -3
  138. package/components/{symbol-map-options.config-FVRaZHKk.cjs → symbol-map-options.config-sdPlHspI.cjs} +1 -1
  139. package/components/{treemap-chart-options.config-QYXvOoni.cjs → treemap-chart-options.config-C0Q9aQ1Z.cjs} +1 -1
  140. package/components/{treemap-chart-options.config-COItww3I.js → treemap-chart-options.config-D5AJaF_u.js} +1 -1
  141. package/components/{wordcloud-chart-options.config-JBSwFHr2.cjs → wordcloud-chart-options.config-vGfCW8kE.cjs} +1 -1
  142. package/components/{wordcloud-chart-options.config-wNLESTnL.js → wordcloud-chart-options.config-w2NUIWVA.js} +1 -1
  143. package/custom-elements.json +25 -25
  144. package/item-definitions/box-plot/box-plot-options.config.d.ts +4 -4
  145. package/item-definitions/choropleth-map/choropleth-map-options.config.d.ts +6 -6
  146. package/item-definitions/circular-gauge/circular-gauge-options.config.d.ts +6 -6
  147. package/item-definitions/donut-chart/donut-chart-options.config.d.ts +35 -13
  148. package/item-definitions/evolution-number/evolution-number-options.config.d.ts +10 -10
  149. package/item-definitions/funnel-chart/funnel-chart-options.config.d.ts +24 -8
  150. package/item-definitions/heat-map/heat-map-options.config.d.ts +4 -4
  151. package/item-definitions/heat-table/heat-table-options.config.d.ts +179 -0
  152. package/item-definitions/heat-table/i18n/heat-table-options.de.d.ts +121 -0
  153. package/item-definitions/heat-table/i18n/heat-table-options.en.d.ts +121 -0
  154. package/item-definitions/heat-table/i18n/heat-table-options.es.d.ts +121 -0
  155. package/item-definitions/heat-table/i18n/heat-table-options.fr.d.ts +121 -0
  156. package/item-definitions/heat-table/i18n/heat-table-options.nl.d.ts +121 -0
  157. package/item-definitions/helpers.d.ts +7 -0
  158. package/item-definitions/hexbin-map/hexbin-map-options.config.d.ts +4 -4
  159. package/item-definitions/marker-map/marker-map-options.config.d.ts +6 -6
  160. package/item-definitions/pivot-table/i18n/pivot-table-options.de.d.ts +76 -0
  161. package/item-definitions/pivot-table/i18n/pivot-table-options.en.d.ts +76 -0
  162. package/item-definitions/pivot-table/i18n/pivot-table-options.es.d.ts +76 -0
  163. package/item-definitions/pivot-table/i18n/pivot-table-options.fr.d.ts +76 -0
  164. package/item-definitions/pivot-table/i18n/pivot-table-options.nl.d.ts +76 -0
  165. package/item-definitions/pivot-table/pivot-table-options.config.d.ts +157 -0
  166. package/item-definitions/pyramid-chart/i18n/pyramid-chart-options.de.d.ts +88 -0
  167. package/item-definitions/pyramid-chart/i18n/pyramid-chart-options.en.d.ts +88 -0
  168. package/item-definitions/pyramid-chart/i18n/pyramid-chart-options.es.d.ts +88 -0
  169. package/item-definitions/pyramid-chart/i18n/pyramid-chart-options.fr.d.ts +88 -0
  170. package/item-definitions/pyramid-chart/i18n/pyramid-chart-options.nl.d.ts +88 -0
  171. package/item-definitions/pyramid-chart/pyramid-chart-options.config.d.ts +113 -0
  172. package/item-definitions/regular-table/regular-table-options.config.d.ts +6 -6
  173. package/item-definitions/route-map/route-map-options.config.d.ts +6 -6
  174. package/item-definitions/scatter-plot/i18n/scatter-plot-options.de.d.ts +113 -0
  175. package/item-definitions/scatter-plot/i18n/scatter-plot-options.en.d.ts +113 -0
  176. package/item-definitions/scatter-plot/i18n/scatter-plot-options.es.d.ts +113 -0
  177. package/item-definitions/scatter-plot/i18n/scatter-plot-options.fr.d.ts +113 -0
  178. package/item-definitions/scatter-plot/i18n/scatter-plot-options.nl.d.ts +113 -0
  179. package/item-definitions/scatter-plot/scatter-plot-options.config.d.ts +160 -0
  180. package/item-definitions/slicer-filter/slicer-filter-options.config.d.ts +10 -10
  181. package/item-definitions/speedometer-chart/i18n/speedometer-chart-options.de.d.ts +69 -0
  182. package/item-definitions/speedometer-chart/i18n/speedometer-chart-options.en.d.ts +69 -0
  183. package/item-definitions/speedometer-chart/i18n/speedometer-chart-options.es.d.ts +69 -0
  184. package/item-definitions/speedometer-chart/i18n/speedometer-chart-options.fr.d.ts +69 -0
  185. package/item-definitions/speedometer-chart/i18n/speedometer-chart-options.nl.d.ts +69 -0
  186. package/item-definitions/speedometer-chart/speedometer-chart-options.config.d.ts +80 -0
  187. package/item-definitions/spike-map/spike-map-options.config.d.ts +6 -6
  188. package/item-definitions/symbol-map/symbol-map-options.config.d.ts +4 -4
  189. package/package.json +1 -1
  190. package/components/box-plot-options.config-VLu-MYZx.cjs +0 -20
  191. package/components/donut-chart-options.config-bqcKuyIu.cjs +0 -20
  192. package/components/funnel-chart-options.config-hw_GXs4s.cjs +0 -20
  193. package/components/helpers-2MlDBxn2.js +0 -74
  194. package/components/helpers-CK5Jy2Ta.cjs +0 -20
  195. package/components/index-4gddXWJC.cjs +0 -195
  196. package/components/regular-table-options.config-Bi84Hym7.cjs +0 -20
  197. package/components/slicer-filter-options.config-k8DoX77G.cjs +0 -20
@@ -17,7 +17,7 @@
17
17
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
18
  * SOFTWARE.
19
19
  * */
20
- "use strict";var d=Object.getPrototypeOf;var c=Reflect.get;var p=(a,t,n)=>c(d(a),n,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-86cIx1Ql.cjs");const l=require("../property-0L4eB11h.cjs"),h=require("../query-D5qWDopr.cjs"),m=require("../edit-option-base-Boz7TNRZ.cjs");var f=Object.defineProperty,i=(a,t,n,g)=>{for(var o=void 0,r=a.length-1,s;r>=0;r--)(s=a[r])&&(o=s(t,n,o)||o);return o&&f(t,n,o),o};const u=class u extends m.LuzmoEditOptionBase{constructor(){super(...arguments),this.value={},this.invalid=!1,this.readonly=!1,this.language="en",this.debounce=200}_handleEvent(){this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=setTimeout(()=>{var t,n;this.dispatchEvent(new CustomEvent("option-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:typeof this.toOptionValue=="function"?this.toOptionValue(((t=this.multiLangFieldElement)==null?void 0:t.value)??{},this.language??"en"):((n=this.multiLangFieldElement)==null?void 0:n.value)??{}}}))},this.debounce??200)}renderController(){const t=typeof this.fromOptionValue=="function"?this.fromOptionValue(this.value,this.language??"en"):this.value;return l.x`
20
+ "use strict";var d=Object.getPrototypeOf;var c=Reflect.get;var p=(o,t,n)=>c(d(o),n,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-86cIx1Ql.cjs");const l=require("../property-0L4eB11h.cjs"),h=require("../query-D5qWDopr.cjs"),g=require("../edit-option-base-Boz7TNRZ.cjs");var m=Object.defineProperty,i=(o,t,n,f)=>{for(var u=void 0,r=o.length-1,s;r>=0;r--)(s=o[r])&&(u=s(t,n,u)||u);return u&&m(t,n,u),u};const a=class a extends g.LuzmoEditOptionBase{constructor(){super(...arguments),this.value={},this.invalid=!1,this.readonly=!1,this.language="en",this.debounce=200}_handleEvent(){this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=setTimeout(()=>{var t,n;this.dispatchEvent(new CustomEvent("option-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:typeof this.toValue=="function"?this.toValue(((t=this.multiLangFieldElement)==null?void 0:t.value)??{},this.language??"en"):((n=this.multiLangFieldElement)==null?void 0:n.value)??{}}}))},this.debounce??200)}renderController(){const t=typeof this.parseValue=="function"?this.parseValue(this.value,this.language??"en"):this.value;return l.x`
21
21
  <luzmo-multi-language-field
22
22
  .value=${t}
23
23
  .language=${this.language??"en"}
@@ -28,4 +28,4 @@
28
28
  @change=${this._handleEvent}
29
29
  >
30
30
  </luzmo-multi-language-field>
31
- `}};u.styles=[p(u,u,"styles")];let e=u;i([l.n({type:Object,reflect:!0})],e.prototype,"value");i([l.n({type:Boolean,reflect:!0})],e.prototype,"invalid");i([l.n({type:Boolean,reflect:!0})],e.prototype,"readonly");i([l.n({type:String,reflect:!0})],e.prototype,"language");i([l.n({type:Object,reflect:!0})],e.prototype,"placeholder");i([l.n()],e.prototype,"fromOptionValue");i([l.n()],e.prototype,"toOptionValue");i([l.n({type:Number,reflect:!0})],e.prototype,"debounce");i([h.e("luzmo-multi-language-field")],e.prototype,"multiLangFieldElement");customElements.get("luzmo-edit-option-multi-language-field")||customElements.define("luzmo-edit-option-multi-language-field",e);exports.LuzmoEditOptionMultiLangField=e;
31
+ `}};a.styles=[p(a,a,"styles")];let e=a;i([l.n({type:Object,reflect:!0})],e.prototype,"value");i([l.n({type:Boolean,reflect:!0})],e.prototype,"invalid");i([l.n({type:Boolean,reflect:!0})],e.prototype,"readonly");i([l.n({type:String,reflect:!0})],e.prototype,"language");i([l.n({type:Object,reflect:!0})],e.prototype,"placeholder");i([l.n()],e.prototype,"parseValue");i([l.n()],e.prototype,"toValue");i([l.n({type:Number,reflect:!0})],e.prototype,"debounce");i([h.e("luzmo-multi-language-field")],e.prototype,"multiLangFieldElement");customElements.get("luzmo-edit-option-multi-language-field")||customElements.define("luzmo-edit-option-multi-language-field",e);exports.LuzmoEditOptionMultiLangField=e;
@@ -22,8 +22,8 @@ var d = Reflect.get;
22
22
  var c = (r, e, u) => d(s(r), u, e);
23
23
  import "../index-DVAsMiOm.js";
24
24
  import { x as f, n as t } from "../property-B2F7x7Cz.js";
25
- import { e as p } from "../query-Ddbd72Um.js";
26
- import { L as g } from "../edit-option-base-qePiIQWd.js";
25
+ import { e as g } from "../query-Ddbd72Um.js";
26
+ import { L as p } from "../edit-option-base-qePiIQWd.js";
27
27
  const z = () => {
28
28
  if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
29
29
  const r = document.createElement("style");
@@ -32,11 +32,11 @@ const z = () => {
32
32
  };
33
33
  z();
34
34
  var b = Object.defineProperty, l = (r, e, u, h) => {
35
- for (var i = void 0, n = r.length - 1, a; n >= 0; n--)
36
- (a = r[n]) && (i = a(e, u, i) || i);
35
+ for (var i = void 0, a = r.length - 1, n; a >= 0; a--)
36
+ (n = r[a]) && (i = n(e, u, i) || i);
37
37
  return i && b(e, u, i), i;
38
38
  };
39
- const m = class m extends g {
39
+ const m = class m extends p {
40
40
  constructor() {
41
41
  super(...arguments), this.value = {}, this.invalid = !1, this.readonly = !1, this.language = "en", this.debounce = 200;
42
42
  }
@@ -49,7 +49,7 @@ const m = class m extends g {
49
49
  composed: !0,
50
50
  cancelable: !0,
51
51
  detail: {
52
- value: typeof this.toOptionValue == "function" ? this.toOptionValue(
52
+ value: typeof this.toValue == "function" ? this.toValue(
53
53
  ((e = this.multiLangFieldElement) == null ? void 0 : e.value) ?? {},
54
54
  this.language ?? "en"
55
55
  ) : ((u = this.multiLangFieldElement) == null ? void 0 : u.value) ?? {}
@@ -59,7 +59,7 @@ const m = class m extends g {
59
59
  }, this.debounce ?? 200);
60
60
  }
61
61
  renderController() {
62
- const e = typeof this.fromOptionValue == "function" ? this.fromOptionValue(this.value, this.language ?? "en") : this.value;
62
+ const e = typeof this.parseValue == "function" ? this.parseValue(this.value, this.language ?? "en") : this.value;
63
63
  return f`
64
64
  <luzmo-multi-language-field
65
65
  .value=${e}
@@ -93,15 +93,15 @@ l([
93
93
  ], o.prototype, "placeholder");
94
94
  l([
95
95
  t()
96
- ], o.prototype, "fromOptionValue");
96
+ ], o.prototype, "parseValue");
97
97
  l([
98
98
  t()
99
- ], o.prototype, "toOptionValue");
99
+ ], o.prototype, "toValue");
100
100
  l([
101
101
  t({ type: Number, reflect: !0 })
102
102
  ], o.prototype, "debounce");
103
103
  l([
104
- p("luzmo-multi-language-field")
104
+ g("luzmo-multi-language-field")
105
105
  ], o.prototype, "multiLangFieldElement");
106
106
  customElements.get("luzmo-edit-option-multi-language-field") || customElements.define(
107
107
  "luzmo-edit-option-multi-language-field",
@@ -10,8 +10,8 @@ export declare class LuzmoEditOptionNumberField extends LuzmoEditOptionBase {
10
10
  step: number;
11
11
  unit: boolean;
12
12
  debounce: number;
13
- fromOptionValue?: (value?: string | number) => number;
14
- toOptionValue?: (value?: number) => string | number | any;
13
+ parseValue?: (value?: string | number) => number;
14
+ toValue?: (value?: number) => string | number | any;
15
15
  private numberField;
16
16
  debounceTimeout: any;
17
17
  private _handleEvent;
@@ -17,9 +17,9 @@
17
17
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
18
  * SOFTWARE.
19
19
  * */
20
- "use strict";var f=Object.getPrototypeOf;var d=Reflect.get;var a=(s,i,u)=>d(f(s),u,i);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-iYpAy-Kg.cjs");const t=require("../property-0L4eB11h.cjs"),m=require("../query-D5qWDopr.cjs"),c=require("../edit-option-base-Boz7TNRZ.cjs");var h=Object.defineProperty,o=(s,i,u,b)=>{for(var r=void 0,l=s.length-1,p;l>=0;l--)(p=s[l])&&(r=p(i,u,r)||r);return r&&h(i,u,r),r};const n=class n extends c.LuzmoEditOptionBase{constructor(){super(...arguments),this.disabled=!1,this.step=1,this.unit=!1,this.debounce=200}_handleEvent(){this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=setTimeout(()=>{this.dispatchEvent(new CustomEvent("option-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:typeof this.toOptionValue=="function"?this.toOptionValue(this.numberField.value):this.numberField.value}}))},this.debounce??200)}renderController(){const i=typeof this.fromOptionValue=="function"?this.fromOptionValue(this.value):this.value,u=typeof this.fromOptionValue=="function"?this.fromOptionValue(this.default):this.default;return t.x`
20
+ "use strict";var d=Object.getPrototypeOf;var c=Reflect.get;var p=(n,r,s)=>c(d(n),s,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-iYpAy-Kg.cjs");const t=require("../property-0L4eB11h.cjs"),h=require("../query-D5qWDopr.cjs"),f=require("../edit-option-base-Boz7TNRZ.cjs");var m=Object.defineProperty,u=(n,r,s,b)=>{for(var i=void 0,l=n.length-1,a;l>=0;l--)(a=n[l])&&(i=a(r,s,i)||i);return i&&m(r,s,i),i};const o=class o extends f.LuzmoEditOptionBase{constructor(){super(...arguments),this.disabled=!1,this.step=1,this.unit=!1,this.debounce=200}_handleEvent(){this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=setTimeout(()=>{this.dispatchEvent(new CustomEvent("option-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:typeof this.toValue=="function"?this.toValue(this.numberField.value):this.numberField.value}}))},this.debounce??200)}renderController(){const r=typeof this.parseValue=="function"?this.parseValue(this.value):this.value,s=typeof this.parseValue=="function"?this.parseValue(this.default):this.default;return t.x`
21
21
  <luzmo-number-field
22
- .value=${i??u??0}
22
+ .value=${r??s??0}
23
23
  .size=${this.size}
24
24
  .step=${this.step}
25
25
  .min=${this.min}
@@ -29,4 +29,4 @@
29
29
  @change=${this._handleEvent}
30
30
  >
31
31
  </luzmo-number-field>
32
- `}};n.styles=[a(n,n,"styles")];let e=n;o([t.n({type:Boolean,reflect:!0})],e.prototype,"disabled");o([t.n({type:Number,reflect:!0})],e.prototype,"min");o([t.n({type:Number,reflect:!0})],e.prototype,"max");o([t.n({type:Number,reflect:!0})],e.prototype,"default");o([t.n({type:Number,reflect:!0})],e.prototype,"value");o([t.n({type:Number,reflect:!0})],e.prototype,"step");o([t.n({type:String,reflect:!0})],e.prototype,"unit");o([t.n({type:Number,reflect:!0})],e.prototype,"debounce");o([t.n()],e.prototype,"fromOptionValue");o([t.n()],e.prototype,"toOptionValue");o([m.e("luzmo-number-field")],e.prototype,"numberField");customElements.get("luzmo-edit-option-number-field")||customElements.define("luzmo-edit-option-number-field",e);exports.LuzmoEditOptionNumberField=e;
32
+ `}};o.styles=[p(o,o,"styles")];let e=o;u([t.n({type:Boolean,reflect:!0})],e.prototype,"disabled");u([t.n({type:Number,reflect:!0})],e.prototype,"min");u([t.n({type:Number,reflect:!0})],e.prototype,"max");u([t.n({type:Number,reflect:!0})],e.prototype,"default");u([t.n({type:Number,reflect:!0})],e.prototype,"value");u([t.n({type:Number,reflect:!0})],e.prototype,"step");u([t.n({type:String,reflect:!0})],e.prototype,"unit");u([t.n({type:Number,reflect:!0})],e.prototype,"debounce");u([t.n()],e.prototype,"parseValue");u([t.n()],e.prototype,"toValue");u([h.e("luzmo-number-field")],e.prototype,"numberField");customElements.get("luzmo-edit-option-number-field")||customElements.define("luzmo-edit-option-number-field",e);exports.LuzmoEditOptionNumberField=e;
@@ -32,11 +32,11 @@ const z = () => {
32
32
  };
33
33
  z();
34
34
  var h = Object.defineProperty, e = (r, t, u, g) => {
35
- for (var i = void 0, n = r.length - 1, c; n >= 0; n--)
36
- (c = r[n]) && (i = c(t, u, i) || i);
37
- return i && h(t, u, i), i;
35
+ for (var m = void 0, n = r.length - 1, c; n >= 0; n--)
36
+ (c = r[n]) && (m = c(t, u, m) || m);
37
+ return m && h(t, u, m), m;
38
38
  };
39
- const m = class m extends b {
39
+ const i = class i extends b {
40
40
  constructor() {
41
41
  super(...arguments), this.disabled = !1, this.step = 1, this.unit = !1, this.debounce = 200;
42
42
  }
@@ -48,14 +48,14 @@ const m = class m extends b {
48
48
  composed: !0,
49
49
  cancelable: !0,
50
50
  detail: {
51
- value: typeof this.toOptionValue == "function" ? this.toOptionValue(this.numberField.value) : this.numberField.value
51
+ value: typeof this.toValue == "function" ? this.toValue(this.numberField.value) : this.numberField.value
52
52
  }
53
53
  })
54
54
  );
55
55
  }, this.debounce ?? 200);
56
56
  }
57
57
  renderController() {
58
- const t = typeof this.fromOptionValue == "function" ? this.fromOptionValue(this.value) : this.value, u = typeof this.fromOptionValue == "function" ? this.fromOptionValue(this.default) : this.default;
58
+ const t = typeof this.parseValue == "function" ? this.parseValue(this.value) : this.value, u = typeof this.parseValue == "function" ? this.parseValue(this.default) : this.default;
59
59
  return f`
60
60
  <luzmo-number-field
61
61
  .value=${t ?? u ?? 0}
@@ -71,8 +71,8 @@ const m = class m extends b {
71
71
  `;
72
72
  }
73
73
  };
74
- m.styles = [s(m, m, "styles")];
75
- let o = m;
74
+ i.styles = [s(i, i, "styles")];
75
+ let o = i;
76
76
  e([
77
77
  l({ type: Boolean, reflect: !0 })
78
78
  ], o.prototype, "disabled");
@@ -99,10 +99,10 @@ e([
99
99
  ], o.prototype, "debounce");
100
100
  e([
101
101
  l()
102
- ], o.prototype, "fromOptionValue");
102
+ ], o.prototype, "parseValue");
103
103
  e([
104
104
  l()
105
- ], o.prototype, "toOptionValue");
105
+ ], o.prototype, "toValue");
106
106
  e([
107
107
  p("luzmo-number-field")
108
108
  ], o.prototype, "numberField");
@@ -13,8 +13,8 @@ export declare class LuzmoEditOptionPicker extends LuzmoEditOptionBase {
13
13
  */
14
14
  placement: Placement;
15
15
  value?: string;
16
- fromOptionValue?: (value: string | number | any) => string;
17
- toOptionValue?: (value: string) => string | number | any;
16
+ parseValue?: (value: string | number | any) => string;
17
+ toValue?: (value: string) => string | number | any;
18
18
  default?: string;
19
19
  private _handleEvent;
20
20
  private generateMenuItems;
@@ -17,13 +17,13 @@
17
17
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
18
  * SOFTWARE.
19
19
  * */
20
- "use strict";var h=Object.getPrototypeOf;var c=Reflect.get;var p=(r,e,o)=>c(h(r),o,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-w3j1USKK.cjs");require("../index-DrLPC6eG.cjs");const n=require("../property-0L4eB11h.cjs"),d=require("../edit-option-base-Boz7TNRZ.cjs");var m=Object.defineProperty,i=(r,e,o,f)=>{for(var s=void 0,a=r.length-1,u;a>=0;a--)(u=r[a])&&(s=u(e,o,s)||s);return s&&m(e,o,s),s};const l=class l extends d.LuzmoEditOptionBase{constructor(){super(...arguments),this.values={},this.disabled=!1,this.placement="bottom-end"}_handleEvent(e){this.dispatchEvent(new CustomEvent("option-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:typeof this.toOptionValue=="function"?this.toOptionValue(e.detail):e.detail}}))}generateMenuItems(){return n.x`
21
- ${Object.entries(this.values).map(([e,o])=>n.x`
22
- <luzmo-menu-item value=${e}> ${o} </luzmo-menu-item>
20
+ "use strict";var h=Object.getPrototypeOf;var c=Reflect.get;var p=(i,e,l)=>c(h(i),l,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-w3j1USKK.cjs");require("../index-DrLPC6eG.cjs");const s=require("../property-0L4eB11h.cjs"),d=require("../edit-option-base-Boz7TNRZ.cjs");var m=Object.defineProperty,a=(i,e,l,f)=>{for(var n=void 0,u=i.length-1,o;u>=0;u--)(o=i[u])&&(n=o(e,l,n)||n);return n&&m(e,l,n),n};const r=class r extends d.LuzmoEditOptionBase{constructor(){super(...arguments),this.values={},this.disabled=!1,this.placement="bottom-end"}_handleEvent(e){this.dispatchEvent(new CustomEvent("option-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:typeof this.toValue=="function"?this.toValue(e.detail):e.detail}}))}generateMenuItems(){return s.x`
21
+ ${Object.entries(this.values).map(([e,l])=>s.x`
22
+ <luzmo-menu-item value=${e}> ${l} </luzmo-menu-item>
23
23
  `)}
24
- `}renderController(){const e=typeof this.fromOptionValue=="function"?this.fromOptionValue(this.value):this.value,o=typeof this.fromOptionValue=="function"?this.fromOptionValue(this.default):this.default;return n.x`
24
+ `}renderController(){const e=typeof this.parseValue=="function"?this.parseValue(this.value):this.value,l=typeof this.parseValue=="function"?this.parseValue(this.default):this.default;return s.x`
25
25
  <luzmo-picker
26
- .value=${e!=null&&e.length?e:o??""}
26
+ .value=${e!=null&&e.length?e:l??""}
27
27
  .size=${this.size}
28
28
  variant="highlight"
29
29
  .placement=${this.placement}
@@ -32,4 +32,4 @@
32
32
  >
33
33
  ${this.generateMenuItems()}
34
34
  </luzmo-picker>
35
- `}};l.styles=[p(l,l,"styles")];let t=l;i([n.n({type:Object})],t.prototype,"values");i([n.n({type:Boolean,reflect:!0})],t.prototype,"disabled");i([n.n()],t.prototype,"placement");i([n.n({type:String,reflect:!0})],t.prototype,"value");i([n.n()],t.prototype,"fromOptionValue");i([n.n()],t.prototype,"toOptionValue");i([n.n({type:String})],t.prototype,"default");customElements.get("luzmo-edit-option-picker")||customElements.define("luzmo-edit-option-picker",t);exports.LuzmoEditOptionPicker=t;
35
+ `}};r.styles=[p(r,r,"styles")];let t=r;a([s.n({type:Object})],t.prototype,"values");a([s.n({type:Boolean,reflect:!0})],t.prototype,"disabled");a([s.n()],t.prototype,"placement");a([s.n({type:String,reflect:!0})],t.prototype,"value");a([s.n()],t.prototype,"parseValue");a([s.n()],t.prototype,"toValue");a([s.n({type:String})],t.prototype,"default");customElements.get("luzmo-edit-option-picker")||customElements.define("luzmo-edit-option-picker",t);exports.LuzmoEditOptionPicker=t;
@@ -22,7 +22,7 @@ var d = Reflect.get;
22
22
  var s = (l, o, r) => d(z(l), r, o);
23
23
  import "../index-D5LI0odG.js";
24
24
  import "../index-DM_2d78G.js";
25
- import { x as c, n as t } from "../property-B2F7x7Cz.js";
25
+ import { x as n, n as t } from "../property-B2F7x7Cz.js";
26
26
  import { L as f } from "../edit-option-base-qePiIQWd.js";
27
27
  const p = () => {
28
28
  if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
@@ -32,8 +32,8 @@ const p = () => {
32
32
  };
33
33
  p();
34
34
  var b = Object.defineProperty, u = (l, o, r, g) => {
35
- for (var m = void 0, n = l.length - 1, a; n >= 0; n--)
36
- (a = l[n]) && (m = a(o, r, m) || m);
35
+ for (var m = void 0, a = l.length - 1, c; a >= 0; a--)
36
+ (c = l[a]) && (m = c(o, r, m) || m);
37
37
  return m && b(o, r, m), m;
38
38
  };
39
39
  const i = class i extends f {
@@ -47,23 +47,23 @@ const i = class i extends f {
47
47
  composed: !0,
48
48
  cancelable: !0,
49
49
  detail: {
50
- value: typeof this.toOptionValue == "function" ? this.toOptionValue(o.detail) : o.detail
50
+ value: typeof this.toValue == "function" ? this.toValue(o.detail) : o.detail
51
51
  }
52
52
  })
53
53
  );
54
54
  }
55
55
  generateMenuItems() {
56
- return c`
56
+ return n`
57
57
  ${Object.entries(this.values).map(
58
- ([o, r]) => c`
58
+ ([o, r]) => n`
59
59
  <luzmo-menu-item value=${o}> ${r} </luzmo-menu-item>
60
60
  `
61
61
  )}
62
62
  `;
63
63
  }
64
64
  renderController() {
65
- const o = typeof this.fromOptionValue == "function" ? this.fromOptionValue(this.value) : this.value, r = typeof this.fromOptionValue == "function" ? this.fromOptionValue(this.default) : this.default;
66
- return c`
65
+ const o = typeof this.parseValue == "function" ? this.parseValue(this.value) : this.value, r = typeof this.parseValue == "function" ? this.parseValue(this.default) : this.default;
66
+ return n`
67
67
  <luzmo-picker
68
68
  .value=${o != null && o.length ? o : r ?? ""}
69
69
  .size=${this.size}
@@ -93,10 +93,10 @@ u([
93
93
  ], e.prototype, "value");
94
94
  u([
95
95
  t()
96
- ], e.prototype, "fromOptionValue");
96
+ ], e.prototype, "parseValue");
97
97
  u([
98
98
  t()
99
- ], e.prototype, "toOptionValue");
99
+ ], e.prototype, "toValue");
100
100
  u([
101
101
  t({ type: String })
102
102
  ], e.prototype, "default");
@@ -8,8 +8,8 @@ export declare class LuzmoEditOptionRadioButtonGroup extends LuzmoEditOptionBase
8
8
  disabled: boolean;
9
9
  value: string;
10
10
  default: string;
11
- fromOptionValue?: (value?: string | number | any) => string;
12
- toOptionValue?: (value?: string) => string | number | any;
11
+ parseValue?: (value?: string | number | any) => string;
12
+ toValue?: (value?: string) => string | number | any;
13
13
  private actionGroup;
14
14
  debounceTimeout: any;
15
15
  private generateRadioButtons;
@@ -17,11 +17,11 @@
17
17
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
18
  * SOFTWARE.
19
19
  * */
20
- "use strict";var d=Object.getPrototypeOf;var h=Reflect.get;var c=(u,e,t)=>h(d(u),t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-zuArOtOt.cjs");require("../index-DUO13KGl.cjs");const i=require("../property-0L4eB11h.cjs"),f=require("../query-D5qWDopr.cjs"),v=require("../edit-option-base-Boz7TNRZ.cjs");var y=Object.defineProperty,n=(u,e,t,r)=>{for(var s=void 0,l=u.length-1,p;l>=0;l--)(p=u[l])&&(s=p(e,t,s)||s);return s&&y(e,t,s),s};const a=class a extends v.LuzmoEditOptionBase{constructor(){super(...arguments),this.values={},this.disabled=!1}generateRadioButtons(){const e=Object.entries(this.values).map(([t,r])=>i.x`
20
+ "use strict";var d=Object.getPrototypeOf;var h=Reflect.get;var c=(l,e,t)=>h(d(l),t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-zuArOtOt.cjs");require("../index-DUO13KGl.cjs");const a=require("../property-0L4eB11h.cjs"),v=require("../query-D5qWDopr.cjs"),y=require("../edit-option-base-Boz7TNRZ.cjs");var f=Object.defineProperty,i=(l,e,t,r)=>{for(var o=void 0,n=l.length-1,p;n>=0;n--)(p=l[n])&&(o=p(e,t,o)||o);return o&&f(e,t,o),o};const u=class u extends y.LuzmoEditOptionBase{constructor(){super(...arguments),this.values={},this.disabled=!1}generateRadioButtons(){const e=Object.entries(this.values).map(([t,r])=>a.x`
21
21
  <luzmo-action-button value=${t} ?disabled=${this.disabled}>
22
22
  ${r}
23
23
  </luzmo-action-button>
24
- `);return i.x` ${e} `}_handleEvent(){var e,t,r,s;this.dispatchEvent(new CustomEvent("option-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:typeof this.toOptionValue=="function"?this.toOptionValue((t=(e=this.actionGroup)==null?void 0:e.selected)==null?void 0:t[0]):(s=(r=this.actionGroup)==null?void 0:r.selected)==null?void 0:s[0]}}))}renderController(){const e=typeof this.fromOptionValue=="function"?this.fromOptionValue(this.value):this.value,t=typeof this.fromOptionValue=="function"?this.fromOptionValue(this.default):this.default;return i.x`
24
+ `);return a.x` ${e} `}_handleEvent(){var e,t,r,o;this.dispatchEvent(new CustomEvent("option-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:typeof this.toValue=="function"?this.toValue((t=(e=this.actionGroup)==null?void 0:e.selected)==null?void 0:t[0]):(o=(r=this.actionGroup)==null?void 0:r.selected)==null?void 0:o[0]}}))}renderController(){const e=typeof this.parseValue=="function"?this.parseValue(this.value):this.value,t=typeof this.parseValue=="function"?this.parseValue(this.default):this.default;return a.x`
25
25
  <luzmo-action-group
26
26
  compact
27
27
  selects="single"
@@ -33,4 +33,4 @@
33
33
  >
34
34
  ${this.generateRadioButtons()}
35
35
  </luzmo-action-group>
36
- `}};a.styles=[c(a,a,"styles")];let o=a;n([i.n({type:Array})],o.prototype,"values");n([i.n({type:Boolean,reflect:!0})],o.prototype,"disabled");n([i.n({type:String})],o.prototype,"value");n([i.n({type:String})],o.prototype,"default");n([i.n()],o.prototype,"fromOptionValue");n([i.n()],o.prototype,"toOptionValue");n([f.e("luzmo-action-group")],o.prototype,"actionGroup");customElements.get("luzmo-edit-option-radio-button-group")||customElements.define("luzmo-edit-option-radio-button-group",o);exports.LuzmoEditOptionRadioButtonGroup=o;
36
+ `}};u.styles=[c(u,u,"styles")];let s=u;i([a.n({type:Array})],s.prototype,"values");i([a.n({type:Boolean,reflect:!0})],s.prototype,"disabled");i([a.n({type:String})],s.prototype,"value");i([a.n({type:String})],s.prototype,"default");i([a.n()],s.prototype,"parseValue");i([a.n()],s.prototype,"toValue");i([v.e("luzmo-action-group")],s.prototype,"actionGroup");customElements.get("luzmo-edit-option-radio-button-group")||customElements.define("luzmo-edit-option-radio-button-group",s);exports.LuzmoEditOptionRadioButtonGroup=s;
@@ -22,7 +22,7 @@ var p = Reflect.get;
22
22
  var d = (t, o, e) => p(z(t), e, o);
23
23
  import "../index-CdCtJpK9.js";
24
24
  import "../index-Bee1uunR.js";
25
- import { x as s, n as i } from "../property-B2F7x7Cz.js";
25
+ import { x as m, n as i } from "../property-B2F7x7Cz.js";
26
26
  import { e as b } from "../query-Ddbd72Um.js";
27
27
  import { L as g } from "../edit-option-base-qePiIQWd.js";
28
28
  const f = () => {
@@ -32,41 +32,41 @@ const f = () => {
32
32
  }
33
33
  };
34
34
  f();
35
- var h = Object.defineProperty, u = (t, o, e, m) => {
36
- for (var r = void 0, c = t.length - 1, a; c >= 0; c--)
37
- (a = t[c]) && (r = a(o, e, r) || r);
35
+ var h = Object.defineProperty, u = (t, o, e, s) => {
36
+ for (var r = void 0, c = t.length - 1, n; c >= 0; c--)
37
+ (n = t[c]) && (r = n(o, e, r) || r);
38
38
  return r && h(o, e, r), r;
39
39
  };
40
- const n = class n extends g {
40
+ const a = class a extends g {
41
41
  constructor() {
42
42
  super(...arguments), this.values = {}, this.disabled = !1;
43
43
  }
44
44
  generateRadioButtons() {
45
45
  const o = Object.entries(this.values).map(
46
- ([e, m]) => s`
46
+ ([e, s]) => m`
47
47
  <luzmo-action-button value=${e} ?disabled=${this.disabled}>
48
- ${m}
48
+ ${s}
49
49
  </luzmo-action-button>
50
50
  `
51
51
  );
52
- return s` ${o} `;
52
+ return m` ${o} `;
53
53
  }
54
54
  _handleEvent() {
55
- var o, e, m, r;
55
+ var o, e, s, r;
56
56
  this.dispatchEvent(
57
57
  new CustomEvent("option-changed", {
58
58
  bubbles: !0,
59
59
  composed: !0,
60
60
  cancelable: !0,
61
61
  detail: {
62
- value: typeof this.toOptionValue == "function" ? this.toOptionValue((e = (o = this.actionGroup) == null ? void 0 : o.selected) == null ? void 0 : e[0]) : (r = (m = this.actionGroup) == null ? void 0 : m.selected) == null ? void 0 : r[0]
62
+ value: typeof this.toValue == "function" ? this.toValue((e = (o = this.actionGroup) == null ? void 0 : o.selected) == null ? void 0 : e[0]) : (r = (s = this.actionGroup) == null ? void 0 : s.selected) == null ? void 0 : r[0]
63
63
  }
64
64
  })
65
65
  );
66
66
  }
67
67
  renderController() {
68
- const o = typeof this.fromOptionValue == "function" ? this.fromOptionValue(this.value) : this.value, e = typeof this.fromOptionValue == "function" ? this.fromOptionValue(this.default) : this.default;
69
- return s`
68
+ const o = typeof this.parseValue == "function" ? this.parseValue(this.value) : this.value, e = typeof this.parseValue == "function" ? this.parseValue(this.default) : this.default;
69
+ return m`
70
70
  <luzmo-action-group
71
71
  compact
72
72
  selects="single"
@@ -81,8 +81,8 @@ const n = class n extends g {
81
81
  `;
82
82
  }
83
83
  };
84
- n.styles = [d(n, n, "styles")];
85
- let l = n;
84
+ a.styles = [d(a, a, "styles")];
85
+ let l = a;
86
86
  u([
87
87
  i({ type: Array })
88
88
  ], l.prototype, "values");
@@ -97,10 +97,10 @@ u([
97
97
  ], l.prototype, "default");
98
98
  u([
99
99
  i()
100
- ], l.prototype, "fromOptionValue");
100
+ ], l.prototype, "parseValue");
101
101
  u([
102
102
  i()
103
- ], l.prototype, "toOptionValue");
103
+ ], l.prototype, "toValue");
104
104
  u([
105
105
  b("luzmo-action-group")
106
106
  ], l.prototype, "actionGroup");
@@ -8,8 +8,8 @@ export declare class LuzmoEditOptionSlider extends LuzmoEditOptionBase {
8
8
  max: number;
9
9
  step: number;
10
10
  debounce: number;
11
- fromOptionValue?: (value?: string | number | any) => number;
12
- toOptionValue?: (value?: number) => string | number | any;
11
+ parseValue?: (value?: string | number | any) => number;
12
+ toValue?: (value?: number) => string | number | any;
13
13
  private _handleEvent;
14
14
  protected renderController(): import("lit-html").TemplateResult<1>;
15
15
  }