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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (349) hide show
  1. package/LICENSE +18 -0
  2. package/components/area-chart-slots.config-BLxiYX05.cjs +20 -0
  3. package/components/area-chart-slots.config-C0c2ZzBh.js +52 -0
  4. package/components/async-directive-FGzMycjH-Bgeca09f.js +152 -0
  5. package/components/async-directive-FGzMycjH-CeG35vZ3.cjs +56 -0
  6. package/components/bar-chart-slots.config-GSSL7XVA.js +47 -0
  7. package/components/bar-chart-slots.config-Jx1PveTM.cjs +20 -0
  8. package/components/bar-chart.config-B57geUzJ.cjs +20 -0
  9. package/components/bar-chart.config-CQ6HAvs2.js +153 -0
  10. package/components/bar-chart.en-BqYbiHO3.cjs +20 -0
  11. package/components/bar-chart.en-FwT00qdU.js +69 -0
  12. package/components/bar-chart.fr-DGx9smEh.cjs +20 -0
  13. package/components/bar-chart.fr-DbxKiM0j.js +44 -0
  14. package/components/bar-chart.nl-BYzVExsz.cjs +20 -0
  15. package/components/bar-chart.nl-ahX1ARpH.js +44 -0
  16. package/components/base-BjTwmyRF.cjs +24 -0
  17. package/components/base-D76d76ww-BiajPmzU.cjs +40 -0
  18. package/components/base-D76d76ww-gf0ESLsU.js +45 -0
  19. package/components/base-D76d76ww.js +28 -0
  20. package/components/button-base-CDLQV7Vk-BXgdcJZo.cjs +43 -0
  21. package/components/button-base-CDLQV7Vk-C_3zTrbV.js +161 -0
  22. package/components/checkbox-mixin-DXUIwtea-DNISZS47.cjs +45 -0
  23. package/components/checkbox-mixin-DXUIwtea-wiCZr_KI.js +88 -0
  24. package/components/column-chart.config-B57geUzJ.cjs +20 -0
  25. package/components/column-chart.config-C9hP0kX7.js +153 -0
  26. package/components/cs-DVZ0Tapy.js +89 -0
  27. package/components/cs-I9E81keK.cjs +20 -0
  28. package/components/da-DHy05oSR.js +97 -0
  29. package/components/da-QkdvupDg.cjs +20 -0
  30. package/components/de-Dn5mUzha.cjs +20 -0
  31. package/components/de-iM39JlAt.js +109 -0
  32. package/components/decompose-numeric-format-B3rVVHpO.cjs +20 -0
  33. package/components/decompose-numeric-format-BuZcjH2k.js +39 -0
  34. package/components/directive-helpers-BLDZnGQv-DYFfxaqA.cjs +80 -0
  35. package/components/directive-helpers-BLDZnGQv-oKMCBvb2.js +115 -0
  36. package/components/display-settings/display-settings.d.ts +70 -0
  37. package/components/display-settings/index.cjs +105 -0
  38. package/components/display-settings/index.d.ts +7 -0
  39. package/components/display-settings/index.js +238 -0
  40. package/components/display-settings-binning/display-settings-binning.d.ts +32 -0
  41. package/components/display-settings-binning/index.cjs +51 -0
  42. package/components/display-settings-binning/index.d.ts +7 -0
  43. package/components/display-settings-binning/index.js +137 -0
  44. package/components/display-settings-datetime/display-settings-datetime.d.ts +85 -0
  45. package/components/display-settings-datetime/index.cjs +20 -0
  46. package/components/display-settings-datetime/index.d.ts +7 -0
  47. package/components/display-settings-datetime/index.js +30 -0
  48. package/components/display-settings-grand-totals/display-settings-grand-totals.d.ts +30 -0
  49. package/components/display-settings-grand-totals/index.cjs +41 -0
  50. package/components/display-settings-grand-totals/index.d.ts +7 -0
  51. package/components/display-settings-grand-totals/index.js +115 -0
  52. package/components/display-settings-numeric/display-settings-numeric.d.ts +73 -0
  53. package/components/display-settings-numeric/helpers/constants.d.ts +17 -0
  54. package/components/display-settings-numeric/index.cjs +146 -0
  55. package/components/display-settings-numeric/index.d.ts +7 -0
  56. package/components/display-settings-numeric/index.js +452 -0
  57. package/components/display-settings-period-over-period/display-settings-period-over-period.d.ts +44 -0
  58. package/components/display-settings-period-over-period/helpers/constants.d.ts +33 -0
  59. package/components/display-settings-period-over-period/index.cjs +103 -0
  60. package/components/display-settings-period-over-period/index.d.ts +7 -0
  61. package/components/display-settings-period-over-period/index.js +308 -0
  62. package/components/divider.module-DwOuLGU3-B19eHVg2.js +40 -0
  63. package/components/divider.module-DwOuLGU3-Bg8RrFkc.cjs +36 -0
  64. package/components/donut-chart-slots.config-BEwhfq27.js +39 -0
  65. package/components/donut-chart-slots.config-DIp-24lO.cjs +20 -0
  66. package/components/donut-chart.config-3DhKiSSM.js +177 -0
  67. package/components/donut-chart.config-DLWJUlHx.cjs +20 -0
  68. package/components/donut-chart.en-Blb9oSdU.cjs +20 -0
  69. package/components/donut-chart.en-CzjT4-XN.js +85 -0
  70. package/components/donut-chart.fr-BeTVa2wh.cjs +20 -0
  71. package/components/donut-chart.fr-DftPrKbG.js +39 -0
  72. package/components/donut-chart.nl-D9YGbOce.cjs +20 -0
  73. package/components/donut-chart.nl-NMatXfhK.js +39 -0
  74. package/components/draggable-data-item/draggable-data-item.d.ts +25 -0
  75. package/components/draggable-data-item/index.cjs +55 -0
  76. package/components/draggable-data-item/index.d.ts +7 -0
  77. package/components/draggable-data-item/index.js +140 -0
  78. package/components/draggable-data-item-level/draggable-data-item-level.d.ts +29 -0
  79. package/components/draggable-data-item-level/helpers/calculate-type-icon.d.ts +2 -0
  80. package/components/draggable-data-item-level/helpers/generate-preview.d.ts +1 -0
  81. package/components/draggable-data-item-level/index.cjs +36 -0
  82. package/components/draggable-data-item-level/index.d.ts +7 -0
  83. package/components/draggable-data-item-level/index.js +293 -0
  84. package/components/droppable-slot/droppable-slot.d.ts +49 -0
  85. package/components/droppable-slot/index.cjs +69 -0
  86. package/components/droppable-slot/index.d.ts +7 -0
  87. package/components/droppable-slot/index.js +255 -0
  88. package/components/droppable-slot/item-slots-configs/area-chart-slots.config.d.ts +44 -0
  89. package/components/droppable-slot/item-slots-configs/bar-chart-slots.config.d.ts +24 -0
  90. package/components/droppable-slot/item-slots-configs/donut-chart-slots.config.d.ts +20 -0
  91. package/components/edit-item/edit-item.d.ts +50 -0
  92. package/components/edit-item/index.cjs +85 -0
  93. package/components/edit-item/index.d.ts +7 -0
  94. package/components/edit-item/index.js +333 -0
  95. package/components/edit-option/edit-option.d.ts +22 -0
  96. package/components/edit-option/helpers/control-markup.d.ts +14 -0
  97. package/components/edit-option/helpers/control-templates/action-button-group-template.d.ts +2 -0
  98. package/components/edit-option/helpers/control-templates/color-picker-template.d.ts +2 -0
  99. package/components/edit-option/helpers/control-templates/multi-language-field-template.d.ts +8 -0
  100. package/components/edit-option/helpers/control-templates/number-field-template.d.ts +2 -0
  101. package/components/edit-option/helpers/control-templates/picker-template.d.ts +2 -0
  102. package/components/edit-option/helpers/control-templates/positions-number-field-template.d.ts +2 -0
  103. package/components/edit-option/helpers/control-templates/radio-button-group.d.ts +2 -0
  104. package/components/edit-option/helpers/control-templates/slider-template.d.ts +2 -0
  105. package/components/edit-option/helpers/control-templates/switch-template.d.ts +2 -0
  106. package/components/edit-option/helpers/control-templates/text-field-template.d.ts +7 -0
  107. package/components/edit-option/helpers/generate-callback.d.ts +1 -0
  108. package/components/edit-option/helpers/get-control-by-key.d.ts +1 -0
  109. package/components/edit-option/helpers/get-extra-label-values.d.ts +7 -0
  110. package/components/edit-option/helpers/get-value-by-key.d.ts +1 -0
  111. package/components/edit-option/index.cjs +176 -0
  112. package/components/edit-option/index.d.ts +7 -0
  113. package/components/edit-option/index.js +507 -0
  114. package/components/edit-option/item-configs/bar-chart.config.d.ts +108 -0
  115. package/components/edit-option/item-configs/column-chart.config.d.ts +108 -0
  116. package/components/edit-option/item-configs/donut-chart.config.d.ts +102 -0
  117. package/components/edit-option/item-configs/imageobject.config.d.ts +128 -0
  118. package/components/edit-option/item-configs/line-chart.config.d.ts +96 -0
  119. package/components/edit-option/item-configs/textobject.config.d.ts +13 -0
  120. package/components/edit-option/item-translations/bar-chart.en.d.ts +48 -0
  121. package/components/edit-option/item-translations/bar-chart.fr.d.ts +23 -0
  122. package/components/edit-option/item-translations/bar-chart.nl.d.ts +23 -0
  123. package/components/edit-option/item-translations/donut-chart.en.d.ts +64 -0
  124. package/components/edit-option/item-translations/donut-chart.fr.d.ts +18 -0
  125. package/components/edit-option/item-translations/donut-chart.nl.d.ts +18 -0
  126. package/components/edit-option-action-button-group/edit-option-action-button-group.d.ts +27 -0
  127. package/components/edit-option-action-button-group/index.cjs +44 -0
  128. package/components/edit-option-action-button-group/index.d.ts +7 -0
  129. package/components/edit-option-action-button-group/index.js +144 -0
  130. package/components/edit-option-base/edit-option-base.d.ts +22 -0
  131. package/components/edit-option-base-DnrerC_T.cjs +53 -0
  132. package/components/edit-option-base-oIvlolV9.js +120 -0
  133. package/components/edit-option-color-picker/edit-option-color-picker.d.ts +23 -0
  134. package/components/edit-option-color-picker/index.cjs +472 -0
  135. package/components/edit-option-color-picker/index.d.ts +7 -0
  136. package/components/edit-option-color-picker/index.js +2553 -0
  137. package/components/edit-option-multi-language-field/edit-option-multi-language-field.d.ts +15 -0
  138. package/components/edit-option-multi-language-field/index.cjs +31 -0
  139. package/components/edit-option-multi-language-field/index.d.ts +7 -0
  140. package/components/edit-option-multi-language-field/index.js +102 -0
  141. package/components/edit-option-number-field/edit-option-number-field.d.ts +19 -0
  142. package/components/edit-option-number-field/index.cjs +32 -0
  143. package/components/edit-option-number-field/index.d.ts +7 -0
  144. package/components/edit-option-number-field/index.js +115 -0
  145. package/components/edit-option-picker/edit-option-picker.d.ts +22 -0
  146. package/components/edit-option-picker/index.cjs +35 -0
  147. package/components/edit-option-picker/index.d.ts +7 -0
  148. package/components/edit-option-picker/index.js +106 -0
  149. package/components/edit-option-positions-number-field/edit-option-positions-number-field.d.ts +28 -0
  150. package/components/edit-option-positions-number-field/index.cjs +42 -0
  151. package/components/edit-option-positions-number-field/index.d.ts +7 -0
  152. package/components/edit-option-positions-number-field/index.js +170 -0
  153. package/components/edit-option-radio-button-group/edit-option-radio-button-group.d.ts +18 -0
  154. package/components/edit-option-radio-button-group/index.cjs +36 -0
  155. package/components/edit-option-radio-button-group/index.d.ts +7 -0
  156. package/components/edit-option-radio-button-group/index.js +113 -0
  157. package/components/edit-option-slider/edit-option-slider.d.ts +15 -0
  158. package/components/edit-option-slider/index.cjs +48 -0
  159. package/components/edit-option-slider/index.d.ts +7 -0
  160. package/components/edit-option-slider/index.js +1253 -0
  161. package/components/edit-option-switch/edit-option-switch.d.ts +11 -0
  162. package/components/edit-option-switch/index.cjs +50 -0
  163. package/components/edit-option-switch/index.d.ts +7 -0
  164. package/components/edit-option-switch/index.js +171 -0
  165. package/components/edit-option-text-field/edit-option-text-field.d.ts +15 -0
  166. package/components/edit-option-text-field/index.cjs +31 -0
  167. package/components/edit-option-text-field/index.d.ts +7 -0
  168. package/components/edit-option-text-field/index.js +100 -0
  169. package/components/element-resolution-FCUT-wql--7ctE626.js +163 -0
  170. package/components/element-resolution-FCUT-wql-DSTvdyds.cjs +68 -0
  171. package/components/en-BsAhbMzm.js +1979 -0
  172. package/components/en-CdROUdjt.cjs +202 -0
  173. package/components/en-GB-g8rSQSba.cjs +20 -0
  174. package/components/en-GB-qub-Kemt.js +28 -0
  175. package/components/es-CwyPlN5d.cjs +20 -0
  176. package/components/es-KhTq4jX8.js +305 -0
  177. package/components/fi-Dh_ebgpe.js +97 -0
  178. package/components/fi-rijeZE5V.cjs +20 -0
  179. package/components/focus-group-DHeTq18L-C9l9oHwM.cjs +36 -0
  180. package/components/focus-group-DHeTq18L-rNUu13eb.js +237 -0
  181. package/components/fr-BcgE-6S_.cjs +20 -0
  182. package/components/fr-CU727YF1.js +305 -0
  183. package/components/get-css-variable-Bhbr-Kr1.js +1413 -0
  184. package/components/get-css-variable-DLiZYZEi.cjs +24 -0
  185. package/components/he-Au3xg6lR.js +89 -0
  186. package/components/he-O6Ih8Bqh.cjs +20 -0
  187. package/components/hu-BnZ8y3xQ.cjs +20 -0
  188. package/components/hu-DNJ-P_MW.js +97 -0
  189. package/components/if-defined-CYpcjGCb-Bzbg7zmM.cjs +60 -0
  190. package/components/if-defined-CYpcjGCb-tXzyj9Dq.js +95 -0
  191. package/components/if-defined-Ch2dtEOS.js +29 -0
  192. package/components/if-defined-DMSuo5Qx.cjs +24 -0
  193. package/components/imageobject.config-B7ld9bj3.cjs +20 -0
  194. package/components/imageobject.config-DZLp9Elq.js +127 -0
  195. package/components/index-3ewegRbb.cjs +67 -0
  196. package/components/index-B0cBkCaq.cjs +39 -0
  197. package/components/index-B2N_PZf3.js +164 -0
  198. package/components/index-B2z7i1-X.js +77 -0
  199. package/components/index-B5VaT0lQ.js +145 -0
  200. package/components/index-BC-nmKjU.js +104 -0
  201. package/components/index-BD3VxQBH.js +44 -0
  202. package/components/index-BGaxFTL4.js +299 -0
  203. package/components/index-BRk42NQn.js +3171 -0
  204. package/components/index-Bjs6Yqet.cjs +185 -0
  205. package/components/index-Bofs4Q2E.cjs +36 -0
  206. package/components/index-BqTdFs1o.js +77 -0
  207. package/components/index-C2qG2Sm8-BQUlk-w0.js +935 -0
  208. package/components/index-C2qG2Sm8-CbVWlbag.cjs +95 -0
  209. package/components/index-CTPox3yS.cjs +54 -0
  210. package/components/index-C_3Ak4MQ.cjs +59 -0
  211. package/components/index-CayjvyyX.cjs +95 -0
  212. package/components/index-CkDDDzuJ.js +744 -0
  213. package/components/index-Cp-lHUlX.js +137 -0
  214. package/components/index-CtHO6VyI.cjs +42 -0
  215. package/components/index-D4x-O9Uc.cjs +192 -0
  216. package/components/index-D9vzXhtJ.cjs +95 -0
  217. package/components/index-DQiQXn8N.cjs +36 -0
  218. package/components/index-DVaeDCbe.js +48 -0
  219. package/components/index-DskAouD-.js +317 -0
  220. package/components/index-DszPbTTD.js +810 -0
  221. package/components/index-EQldC-LR.js +175 -0
  222. package/components/index-ON4x-yZ7.cjs +36 -0
  223. package/components/index-gfU9TGd5.cjs +57 -0
  224. package/components/index-liTHhAef.cjs +36 -0
  225. package/components/index.cjs +20 -0
  226. package/components/index.js +74 -0
  227. package/components/it-Bh5U73z6.js +305 -0
  228. package/components/it-PshtLMkq.cjs +20 -0
  229. package/components/ja-CCcHUL61.js +89 -0
  230. package/components/ja-KIS2HdaG.cjs +20 -0
  231. package/components/ko--l4qmjLV.cjs +20 -0
  232. package/components/ko-DhapsZMM.js +89 -0
  233. package/components/language-resolution-8yZa5r_P-CTSmbE1U.js +161 -0
  234. package/components/language-resolution-8yZa5r_P-DQ3rZzW5.cjs +52 -0
  235. package/components/line-chart.config-BZcvfO2c.cjs +20 -0
  236. package/components/line-chart.config-CIVN6uLI.js +115 -0
  237. package/components/localize-B6AsX_Zv.js +52 -0
  238. package/components/localize-DbobqcKs.cjs +20 -0
  239. package/components/luzmo-icons-BrtBl3E5.cjs +31 -0
  240. package/components/luzmo-icons-CZEpXpvy.js +613 -0
  241. package/components/mk-B9HPSuKa.js +97 -0
  242. package/components/mk-DZlj-edb.cjs +20 -0
  243. package/components/nl-BKlDqOXb.cjs +20 -0
  244. package/components/nl-BwSt5Bf4.js +109 -0
  245. package/components/no-D-DofYnx.js +109 -0
  246. package/components/no-D_SzxhTu.cjs +20 -0
  247. package/components/observe-slot-text-BG0H7bQK-C0wmc4DO.js +221 -0
  248. package/components/observe-slot-text-BG0H7bQK-CrkAqUMj.cjs +86 -0
  249. package/components/pl-D_L_0Boq.js +97 -0
  250. package/components/pl-PIK23rK_.cjs +20 -0
  251. package/components/popover-bg0EQQ8p-D4-hrhIx.js +86 -0
  252. package/components/popover-bg0EQQ8p-Dha09dhV.cjs +48 -0
  253. package/components/property-CD3dwBJC.js +1447 -0
  254. package/components/property-Su1Q6aME.cjs +124 -0
  255. package/components/pt-B0BBS5VB.js +89 -0
  256. package/components/pt-Dqlu4MS5.cjs +20 -0
  257. package/components/query-D5qWDopr.cjs +24 -0
  258. package/components/query-Ddbd72Um.js +39 -0
  259. package/components/query-assigned-nodes-C76XVPWY-BcyGjObB.cjs +40 -0
  260. package/components/query-assigned-nodes-C76XVPWY-DPC6kOmH.js +55 -0
  261. package/components/roving-tabindex-DOg4z6ZU-DmyYPRYY.cjs +36 -0
  262. package/components/roving-tabindex-DOg4z6ZU-dufnVmvL.js +85 -0
  263. package/components/ru-Vo-m3O_2.js +108 -0
  264. package/components/ru-zyNDTB04.cjs +20 -0
  265. package/components/sized-mixin-PyCYpyQq-B40Ek2UB.js +82 -0
  266. package/components/sized-mixin-PyCYpyQq-sKzDjc75.cjs +36 -0
  267. package/components/slot-menu/index.cjs +55 -0
  268. package/components/slot-menu/index.d.ts +7 -0
  269. package/components/slot-menu/index.js +188 -0
  270. package/components/slot-menu/slot-menu.d.ts +66 -0
  271. package/components/slot-menu-list/index.cjs +39 -0
  272. package/components/slot-menu-list/index.d.ts +7 -0
  273. package/components/slot-menu-list/index.js +351 -0
  274. package/components/slot-menu-list/slot-menu-list.d.ts +33 -0
  275. package/components/state-B1a8XIDm.js +31 -0
  276. package/components/state-ByiKNRhp.cjs +24 -0
  277. package/components/sv-1DPTltNQ.cjs +20 -0
  278. package/components/sv-CiozMaev.js +89 -0
  279. package/components/task-BPD0PyaQ.js +120 -0
  280. package/components/task-HFsHfTra.cjs +24 -0
  281. package/components/text-field-7ITo3Lac-CKXsSqJP.cjs +131 -0
  282. package/components/text-field-7ITo3Lac-DqVO04kR.js +412 -0
  283. package/components/textobject.config-C8opcGG4.js +52 -0
  284. package/components/textobject.config-DbAajFz8.cjs +20 -0
  285. package/components/tr-BkmWvOG2.cjs +20 -0
  286. package/components/tr-D_D4i5iv.js +109 -0
  287. package/components/utils.cjs +20 -0
  288. package/components/utils.js +20 -0
  289. package/components/when-CDK1Tt5Y-BN3qcTK0.cjs +40 -0
  290. package/components/when-CDK1Tt5Y-C6ViXC43.js +47 -0
  291. package/components/zh-CN-DTZ4OmdP.cjs +20 -0
  292. package/components/zh-CN-wsl7eFSd.js +89 -0
  293. package/components/zh-TW-DTZ4OmdP.cjs +20 -0
  294. package/components/zh-TW-wsl7eFSd.js +89 -0
  295. package/custom-elements.json +4228 -0
  296. package/index.d.ts +23 -0
  297. package/package.json +133 -14
  298. package/utils/formatter/calculate-duration.d.ts +2 -0
  299. package/utils/formatter/decompose-numeric-format.d.ts +11 -0
  300. package/utils/formatter/default-local-formats.d.ts +20 -0
  301. package/utils/formatter/formats/cs.d.ts +20 -0
  302. package/utils/formatter/formats/da.d.ts +20 -0
  303. package/utils/formatter/formats/de.d.ts +21 -0
  304. package/utils/formatter/formats/en-GB.d.ts +21 -0
  305. package/utils/formatter/formats/en-US.d.ts +1 -0
  306. package/utils/formatter/formats/en.d.ts +1 -0
  307. package/utils/formatter/formats/es.d.ts +54 -0
  308. package/utils/formatter/formats/fi.d.ts +20 -0
  309. package/utils/formatter/formats/fr.d.ts +54 -0
  310. package/utils/formatter/formats/he.d.ts +20 -0
  311. package/utils/formatter/formats/hu.d.ts +20 -0
  312. package/utils/formatter/formats/it.d.ts +54 -0
  313. package/utils/formatter/formats/ja.d.ts +20 -0
  314. package/utils/formatter/formats/ko.d.ts +20 -0
  315. package/utils/formatter/formats/mk.d.ts +20 -0
  316. package/utils/formatter/formats/nl.d.ts +21 -0
  317. package/utils/formatter/formats/no.d.ts +21 -0
  318. package/utils/formatter/formats/pl.d.ts +20 -0
  319. package/utils/formatter/formats/pt.d.ts +20 -0
  320. package/utils/formatter/formats/ru.d.ts +20 -0
  321. package/utils/formatter/formats/sv.d.ts +20 -0
  322. package/utils/formatter/formats/tr.d.ts +21 -0
  323. package/utils/formatter/formats/zh-CN.d.ts +20 -0
  324. package/utils/formatter/formats/zh-TW.d.ts +20 -0
  325. package/utils/formatter/formatter.d.ts +9 -0
  326. package/utils/formatter/localize.d.ts +3 -0
  327. package/utils/formatter/smart-datetime-formats.const.d.ts +36 -0
  328. package/utils/get-css-variable.d.ts +1 -0
  329. package/utils/index.d.ts +1 -0
  330. package/utils/time/formats.const.d.ts +8 -0
  331. package/utils/time/periods.const.d.ts +29 -0
  332. package/utils/types/column.types.d.ts +56 -0
  333. package/utils/types/type-check.d.ts +7 -0
  334. package/lib/37.js +0 -1
  335. package/lib/729.js +0 -1
  336. package/lib/common-31743c5a.js +0 -13
  337. package/lib/common-b02547a0.js +0 -1
  338. package/lib/common-b49d9a9d.js +0 -1
  339. package/lib/common-b5232813.js +0 -56
  340. package/lib/common-cefd4f4c.js +0 -1
  341. package/lib/common-d6cb565f.js +0 -1
  342. package/lib/common-fd868059.js +0 -1
  343. package/lib/common-fedaf338.js +0 -32
  344. package/lib/edit-option-picker/index.js +0 -314
  345. package/lib/edit-option-slider/index.js +0 -102
  346. package/lib/edit-option-toggle/index.js +0 -114
  347. package/lib/index.js +0 -346
  348. package/lib/vendors-93cc3efa.js +0 -1
  349. package/lib/vendors-bb3d84b5.js +0 -1
@@ -0,0 +1,170 @@
1
+ /*! * A kit of modern Luzmo Web Components for analytics in your web application.
2
+ *
3
+ * Copyright © 2024 Luzmo
4
+ * All rights reserved.
5
+ * Luzmo web components (“Luzmo Web Components”)
6
+ * must be used according to the Luzmo Terms of Service.
7
+ * This license allows users with a current active Luzmo account
8
+ * to use the Luzmo Web Components. This license terminates
9
+ * automatically if a user no longer has an active Luzmo account.
10
+ * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
11
+ *
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
+ * SOFTWARE.
19
+ * */
20
+ import { O as g, $ as y } from "../luzmo-icons-CZEpXpvy.js";
21
+ import "../index-DszPbTTD.js";
22
+ import { r as v, x as m, n as u } from "../property-CD3dwBJC.js";
23
+ import { r as x } from "../state-B1a8XIDm.js";
24
+ import { L as w } from "../edit-option-base-oIvlolV9.js";
25
+ const b = () => {
26
+ if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
27
+ const c = document.createElement("style");
28
+ c.setAttribute("data-luzmo-vars", ""), c.textContent = 'html{--luzmo-animation-duration: 0.15s;--luzmo-border-color: rgba(var(--luzmo-border-color-rgb), 0.1);--luzmo-border-color-hover: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-down: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-border-color-focus: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-rgb: 0, 0, 0;--luzmo-border-color-full: rgb(180, 180, 180);--luzmo-border-color-full-hover: rgb(140, 140, 140);--luzmo-border-color-full-down: rgb(110, 110, 110);--luzmo-border-color-full-focus: rgb(140, 140, 140);--luzmo-border-color-disabled: #dddddd;--luzmo-border-radius: 6px;--luzmo-border-radius-s: 4px;--luzmo-border-radius-l: 8px;--luzmo-border-radius-xl: 12px;--luzmo-border-radius-full: 999rem;--luzmo-background-color: #ffffff;--luzmo-background-color-rgb: 255, 255, 255;--luzmo-background-color-disabled: #eeeeee;--luzmo-background-color-hover: #f0f0fc;--luzmo-background-color-down: #f1f1ff;--luzmo-background-color-focus: #f0f0fc;--luzmo-background-color-highlight: rgb(240, 240, 240);--luzmo-background-color-highlight-disabled: rgb(245, 245, 245);--luzmo-background-color-highlight-hover: rgb(225, 225, 225);--luzmo-background-color-highlight-down: rgb(215, 215, 215);--luzmo-background-color-highlight-focus: rgb(225, 225, 225);--luzmo-border-width: 1px;--luzmo-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;--luzmo-font-size-xs: 10px;--luzmo-font-size-s: 12px;--luzmo-font-size-m: 14px;--luzmo-font-size: 14px;--luzmo-font-size-l: 16px;--luzmo-font-size-xl: 18px;--luzmo-font-size-xxl: 20px;--luzmo-font-style: normal;--luzmo-line-height: normal;--luzmo-font-weight: 400;--luzmo-font-weight-semibold: 500;--luzmo-font-weight-bold: 600;--luzmo-font-color: #333;--luzmo-font-color-hard: #000;--luzmo-font-color-disabled: var(--luzmo-color-disabled);--luzmo-font-color-extra-dimmed: #888;--luzmo-font-color-hover: #333;--luzmo-font-color-down: #111;--luzmo-font-color-focus: #333;--luzmo-primary: #4434ff;--luzmo-primary-hover: #4234e4;--luzmo-primary-down: #392cc7;--luzmo-primary-focus: #4234e4;--luzmo-primary-inverse-color: #ffffff;--luzmo-primary-rgb: 68, 52, 255;--luzmo-secondary: #ff00ff;--luzmo-secondary-hover: #e309e3;--luzmo-secondary-down: #c711c7;--luzmo-secondary-focus: #e309e3;--luzmo-secondary-inverse-color: #ffffff;--luzmo-secondary-rgb: 255, 0, 255;--luzmo-color-negative: #ca221c;--luzmo-color-negative-hover: #b3241f;--luzmo-color-negative-down: #9f231f;--luzmo-color-negative-focus: #b3241f;--luzmo-color-negative-rgb: 202, 34, 28;--luzmo-color-positive: rgb(20, 150, 101);--luzmo-color-positive-hover: rgb(17, 128, 86);--luzmo-color-positive-down: rgb(16, 105, 71);--luzmo-color-positive-focus: rgb(17, 128, 86);--luzmo-color-positive-rgb: 20, 150, 101;--luzmo-color-selected: rgb(110, 110, 110);--luzmo-color-selected-hover: rgb(70, 70, 70);--luzmo-color-selected-down: rgb(40, 40, 40);--luzmo-color-selected-focus: rgb(70, 70, 70);--luzmo-color-selected-hard: #1e1e1e;--luzmo-color-selected-hard-hover: rgb(0, 0, 0);--luzmo-color-selected-hard-down: rgb(0, 0, 0);--luzmo-color-selected-hard-focus: rgb(0, 0, 0);--luzmo-color-informative: #1a77e9;--luzmo-color-informative-rgb: 26, 119, 233;--luzmo-color-disabled: #aaaaaa;--luzmo-spacing-1: 2px;--luzmo-spacing-2: 4px;--luzmo-spacing-3: 8px;--luzmo-spacing-4: 12px;--luzmo-spacing-5: 16px;--luzmo-indicator-gap: 2px;--luzmo-indicator-width: 1px;--luzmo-indicator-color: var(--luzmo-primary);--luzmo-component-height-xxs: 20px;--luzmo-component-height-xs: 24px;--luzmo-component-height-s: 28px;--luzmo-component-height: 32px;--luzmo-component-height-l: 40px;--luzmo-component-height-xl: 48px;--luzmo-component-height-xxl: 64px;--luzmo-icon-size-xxs: 12px;--luzmo-icon-size-xs: 14px;--luzmo-icon-size-s: 16px;--luzmo-icon-size-m: 18px;--luzmo-icon-size-l: 20px;--luzmo-icon-size-xl: 22px;--luzmo-icon-size-xxl: 32px}', document.head.appendChild(c);
29
+ }
30
+ };
31
+ b();
32
+ const k = ":host{--edit-option-positions-number-field-container-row-gap: var( --luzmo-spacing-2 );--edit-option-positions-number-field-container-column-gap: var( --luzmo-spacing-2 );--edit-option-positions-number-field-sync-height: calc( var(--luzmo-component-height) * 1.5 )}:host([size=s]){--edit-option-positions-number-field-sync-height: calc( var(--luzmo-component-height-s) * 1.5 )}:host([size=l]){--edit-option-positions-number-field-sync-height: calc( var(--luzmo-component-height-l) * 1.5 )}:host([size=xl]){--edit-option-positions-number-field-sync-height: calc( var(--luzmo-component-height-xl) * 1.5 )}:host{--var: test}.positions-container{max-width:var(--luzmo-edit-option-positions-number-field-container-max-width, var(--edit-option-positions-number-field-container-max-width));display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);row-gap:var(--luzmo-edit-option-positions-number-field-container-row-gap, var(--edit-option-positions-number-field-container-row-gap));column-gap:var(--luzmo-edit-option-positions-number-field-container-column-gap, var(--edit-option-positions-number-field-container-column-gap))}.position,.sync-button{display:flex;align-items:center;justify-content:center}.sync-button{cursor:pointer}.sync-button[position=center].sync{border:var(--luzmo-edit-option-positions-number-field-sync-border-width, var(--luzmo-border-width)) solid var(--luzmo-edit-option-positions-number-field-sync-border-color, var(--luzmo-primary));border-radius:var(--luzmo-edit-option-positions-number-field-sync-border-radius, var(--luzmo-border-radius));height:var(--luzmo-edit-option-positions-number-field-sync-height, var(--edit-option-positions-number-field-sync-height))}.no-sync-center{border:var(--luzmo-edit-option-positions-number-field-no-sync-center-border-width, var(--luzmo-border-width)) solid var(--luzmo-edit-option-positions-number-field-no-sync-center-border-color, var(--luzmo-border-color));border-radius:var(--luzmo-edit-option-positions-number-field-no-sync-center-border-radius, var(--luzmo-border-radius));height:var(--luzmo-edit-option-positions-number-field-sync-height, var(--edit-option-positions-number-field-sync-height));background-color:var(--luzmo-edit-option-positions-number-field-no-sync-center-background-color, var(--luzmo-background-color-highlight))}";
33
+ var $ = Object.defineProperty, s = (c, o, t, i) => {
34
+ for (var e = void 0, r = c.length - 1, l; r >= 0; r--)
35
+ (l = c[r]) && (e = l(o, t, e) || e);
36
+ return e && $(o, t, e), e;
37
+ };
38
+ class n extends w {
39
+ constructor() {
40
+ super(...arguments), this.positions = ["top", "right", "bottom", "left"], this.invalid = !1, this.readonly = !1, this.debounce = 200, this._positions = [
41
+ ["top-left", "top", "top-right"],
42
+ ["left", "center", "right"],
43
+ ["bottom-left", "bottom", "bottom-right"]
44
+ ];
45
+ }
46
+ static get styles() {
47
+ return [v(k)];
48
+ }
49
+ _calculateSyncedValue() {
50
+ var t;
51
+ let o;
52
+ return (t = this.positions) == null || t.forEach((i) => {
53
+ var e, r, l;
54
+ o = typeof o == "number" && ((e = this.values) != null && e[i]) ? Math.min(o, (r = this.values) == null ? void 0 : r[i]) : (l = this.values) == null ? void 0 : l[i];
55
+ }), o;
56
+ }
57
+ toggleSync() {
58
+ if (this.sync = !this.sync, this.sync && (this.syncedValue = this._calculateSyncedValue(), typeof this.syncedValue == "number")) {
59
+ this.values = { ...this.values };
60
+ for (const o of this.positions ?? [])
61
+ this.values[o] = this.syncedValue;
62
+ }
63
+ }
64
+ _handleEvent(o) {
65
+ const t = o.target.getAttribute("position"), i = o.target.value;
66
+ let e = {};
67
+ if (!(!t || typeof i != "number")) {
68
+ if (this.canSync && this.sync && t === "center") {
69
+ this.syncedValue = i;
70
+ for (const r of this.positions ?? [])
71
+ e[r] = i;
72
+ } else
73
+ e = {
74
+ ...this.values,
75
+ [t]: i
76
+ };
77
+ this.debounceTimeout && clearTimeout(this.debounceTimeout), this.debounceTimeout = setTimeout(() => {
78
+ var d;
79
+ const r = Object.keys(this.values ?? {}), l = Object.keys(e);
80
+ let a = !0;
81
+ r.length !== l.length && (a = !1);
82
+ for (const p of r)
83
+ ((d = this.values) == null ? void 0 : d[p]) !== e[p] && (a = !1);
84
+ a || (this.dispatchEvent(
85
+ new CustomEvent("option-changed", {
86
+ bubbles: !0,
87
+ composed: !0,
88
+ cancelable: !0,
89
+ detail: {
90
+ values: { ...e }
91
+ }
92
+ })
93
+ ), this.values = e);
94
+ }, this.debounce ?? 200);
95
+ }
96
+ }
97
+ _renderNumberField(o) {
98
+ var t, i, e, r, l, a, d, p, h, f, z;
99
+ return (t = this.positions) != null && t.includes(o) || o === "center" ? this.canSync && (this.sync && o !== "center" || !this.sync && o === "center") ? m`<div
100
+ class="sync-button ${this.sync ? "" : "sync"}"
101
+ position=${o}
102
+ @click=${this.toggleSync}
103
+ >
104
+ ${g(y)}
105
+ </div>` : !this.canSync && !((i = this.positions) != null && i.includes("center")) && o === "center" ? m`<div class="no-sync-center"></div>` : m`<div class="position">
106
+ <luzmo-number-field
107
+ position=${o}
108
+ .value=${this.sync && this.canSync ? this.syncedValue ?? 0 : ((e = this.values) == null ? void 0 : e[o]) ?? ((l = (r = this.positionConfiguration) == null ? void 0 : r[o]) == null ? void 0 : l.default) ?? 0}
109
+ .disabled=${this.disabled}
110
+ .size=${this.size}
111
+ .min=${((d = (a = this.positionConfiguration) == null ? void 0 : a[o]) == null ? void 0 : d.min) ?? 0}
112
+ .max=${((h = (p = this.positionConfiguration) == null ? void 0 : p[o]) == null ? void 0 : h.max) ?? 100}
113
+ .step=${((z = (f = this.positionConfiguration) == null ? void 0 : f[o]) == null ? void 0 : z.step) ?? 1}
114
+ .invalid=${this.invalid}
115
+ @change=${this._handleEvent}
116
+ @input=${this._handleEvent}
117
+ >
118
+ </luzmo-number-field>
119
+ </div>` : m`<div class="position"></div>`;
120
+ }
121
+ willUpdate() {
122
+ !this.canSync && this.sync && (this.sync = !1);
123
+ }
124
+ renderController() {
125
+ this._calculateSyncedValue();
126
+ const o = this._positions.map((t) => {
127
+ const i = t.map(
128
+ (e) => this._renderNumberField(e)
129
+ );
130
+ return m`${i}`;
131
+ });
132
+ return m`<div class="positions-container-wrapper">
133
+ <div class="positions-container">${o}</div>
134
+ </div>`;
135
+ }
136
+ }
137
+ s([
138
+ u({ type: Array, reflect: !0 })
139
+ ], n.prototype, "positions");
140
+ s([
141
+ u({ type: Object, reflect: !0 })
142
+ ], n.prototype, "values");
143
+ s([
144
+ u({ type: Boolean, reflect: !0, attribute: "can-sync" })
145
+ ], n.prototype, "canSync");
146
+ s([
147
+ u({ type: Boolean, reflect: !0 })
148
+ ], n.prototype, "sync");
149
+ s([
150
+ u({ type: Object })
151
+ ], n.prototype, "positionConfiguration");
152
+ s([
153
+ u({ type: Boolean, reflect: !0 })
154
+ ], n.prototype, "invalid");
155
+ s([
156
+ u({ type: Boolean, reflect: !0 })
157
+ ], n.prototype, "readonly");
158
+ s([
159
+ u({ type: Number, reflect: !0 })
160
+ ], n.prototype, "debounce");
161
+ s([
162
+ x()
163
+ ], n.prototype, "syncedValue");
164
+ customElements.get("luzmo-edit-option-positions-number-field") || customElements.define(
165
+ "luzmo-edit-option-positions-number-field",
166
+ n
167
+ );
168
+ export {
169
+ n as LuzmoEditOptionPositionsNumberField
170
+ };
@@ -0,0 +1,18 @@
1
+ import '@luzmo/lucero/action-button';
2
+ import '@luzmo/lucero/action-group';
3
+ import { TemplateResult } from 'lit';
4
+ import { LuzmoEditOptionBase } from '../edit-option-base/edit-option-base';
5
+ export declare class LuzmoEditOptionRadioButtonGroup extends LuzmoEditOptionBase {
6
+ static styles: import("lit").CSSResultArray[];
7
+ values: Record<string, string>;
8
+ disabled: boolean;
9
+ value: string;
10
+ default: string;
11
+ fromOptionValue?: (value?: string | number | any) => string;
12
+ toOptionValue?: (value?: string) => string | number | any;
13
+ private actionGroup;
14
+ debounceTimeout: any;
15
+ private generateRadioButtons;
16
+ private _handleEvent;
17
+ protected renderController(): TemplateResult<1>;
18
+ }
@@ -0,0 +1,36 @@
1
+ /*! * A kit of modern Luzmo Web Components for analytics in your web application.
2
+ *
3
+ * Copyright © 2024 Luzmo
4
+ * All rights reserved.
5
+ * Luzmo web components (“Luzmo Web Components”)
6
+ * must be used according to the Luzmo Terms of Service.
7
+ * This license allows users with a current active Luzmo account
8
+ * to use the Luzmo Web Components. This license terminates
9
+ * automatically if a user no longer has an active Luzmo account.
10
+ * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
11
+ *
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
+ * SOFTWARE.
19
+ * */
20
+ "use strict";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-CtHO6VyI.cjs");require("../index-CTPox3yS.cjs");const i=require("../property-Su1Q6aME.cjs"),f=require("../query-D5qWDopr.cjs"),v=require("../edit-option-base-DnrerC_T.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`
21
+ <luzmo-action-button value=${t} ?disabled=${this.disabled}>
22
+ ${r}
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`
25
+ <luzmo-action-group
26
+ compact
27
+ selects="single"
28
+ emphasized
29
+ @change=${this._handleEvent}
30
+ .size=${this.size}
31
+ .selected=${e&&this.values[e]?[e]:t&&this.values[t]?[t]:[Object.keys(this.values)[0]]}
32
+ ?disabled=${this.disabled}
33
+ >
34
+ ${this.generateRadioButtons()}
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;
@@ -0,0 +1,7 @@
1
+ import { LuzmoEditOptionRadioButtonGroup } from './edit-option-radio-button-group';
2
+ declare global {
3
+ interface HTMLElementTagNameMap {
4
+ 'luzmo-edit-option-radio-button-group': LuzmoEditOptionRadioButtonGroup;
5
+ }
6
+ }
7
+ export { LuzmoEditOptionRadioButtonGroup } from './edit-option-radio-button-group';
@@ -0,0 +1,113 @@
1
+ /*! * A kit of modern Luzmo Web Components for analytics in your web application.
2
+ *
3
+ * Copyright © 2024 Luzmo
4
+ * All rights reserved.
5
+ * Luzmo web components (“Luzmo Web Components”)
6
+ * must be used according to the Luzmo Terms of Service.
7
+ * This license allows users with a current active Luzmo account
8
+ * to use the Luzmo Web Components. This license terminates
9
+ * automatically if a user no longer has an active Luzmo account.
10
+ * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
11
+ *
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
+ * SOFTWARE.
19
+ * */
20
+ var z = Object.getPrototypeOf;
21
+ var p = Reflect.get;
22
+ var d = (t, o, e) => p(z(t), e, o);
23
+ import "../index-EQldC-LR.js";
24
+ import "../index-BGaxFTL4.js";
25
+ import { x as s, n as i } from "../property-CD3dwBJC.js";
26
+ import { e as b } from "../query-Ddbd72Um.js";
27
+ import { L as g } from "../edit-option-base-oIvlolV9.js";
28
+ const f = () => {
29
+ if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
30
+ const t = document.createElement("style");
31
+ t.setAttribute("data-luzmo-vars", ""), t.textContent = 'html{--luzmo-animation-duration: 0.15s;--luzmo-border-color: rgba(var(--luzmo-border-color-rgb), 0.1);--luzmo-border-color-hover: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-down: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-border-color-focus: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-rgb: 0, 0, 0;--luzmo-border-color-full: rgb(180, 180, 180);--luzmo-border-color-full-hover: rgb(140, 140, 140);--luzmo-border-color-full-down: rgb(110, 110, 110);--luzmo-border-color-full-focus: rgb(140, 140, 140);--luzmo-border-color-disabled: #dddddd;--luzmo-border-radius: 6px;--luzmo-border-radius-s: 4px;--luzmo-border-radius-l: 8px;--luzmo-border-radius-xl: 12px;--luzmo-border-radius-full: 999rem;--luzmo-background-color: #ffffff;--luzmo-background-color-rgb: 255, 255, 255;--luzmo-background-color-disabled: #eeeeee;--luzmo-background-color-hover: #f0f0fc;--luzmo-background-color-down: #f1f1ff;--luzmo-background-color-focus: #f0f0fc;--luzmo-background-color-highlight: rgb(240, 240, 240);--luzmo-background-color-highlight-disabled: rgb(245, 245, 245);--luzmo-background-color-highlight-hover: rgb(225, 225, 225);--luzmo-background-color-highlight-down: rgb(215, 215, 215);--luzmo-background-color-highlight-focus: rgb(225, 225, 225);--luzmo-border-width: 1px;--luzmo-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;--luzmo-font-size-xs: 10px;--luzmo-font-size-s: 12px;--luzmo-font-size-m: 14px;--luzmo-font-size: 14px;--luzmo-font-size-l: 16px;--luzmo-font-size-xl: 18px;--luzmo-font-size-xxl: 20px;--luzmo-font-style: normal;--luzmo-line-height: normal;--luzmo-font-weight: 400;--luzmo-font-weight-semibold: 500;--luzmo-font-weight-bold: 600;--luzmo-font-color: #333;--luzmo-font-color-hard: #000;--luzmo-font-color-disabled: var(--luzmo-color-disabled);--luzmo-font-color-extra-dimmed: #888;--luzmo-font-color-hover: #333;--luzmo-font-color-down: #111;--luzmo-font-color-focus: #333;--luzmo-primary: #4434ff;--luzmo-primary-hover: #4234e4;--luzmo-primary-down: #392cc7;--luzmo-primary-focus: #4234e4;--luzmo-primary-inverse-color: #ffffff;--luzmo-primary-rgb: 68, 52, 255;--luzmo-secondary: #ff00ff;--luzmo-secondary-hover: #e309e3;--luzmo-secondary-down: #c711c7;--luzmo-secondary-focus: #e309e3;--luzmo-secondary-inverse-color: #ffffff;--luzmo-secondary-rgb: 255, 0, 255;--luzmo-color-negative: #ca221c;--luzmo-color-negative-hover: #b3241f;--luzmo-color-negative-down: #9f231f;--luzmo-color-negative-focus: #b3241f;--luzmo-color-negative-rgb: 202, 34, 28;--luzmo-color-positive: rgb(20, 150, 101);--luzmo-color-positive-hover: rgb(17, 128, 86);--luzmo-color-positive-down: rgb(16, 105, 71);--luzmo-color-positive-focus: rgb(17, 128, 86);--luzmo-color-positive-rgb: 20, 150, 101;--luzmo-color-selected: rgb(110, 110, 110);--luzmo-color-selected-hover: rgb(70, 70, 70);--luzmo-color-selected-down: rgb(40, 40, 40);--luzmo-color-selected-focus: rgb(70, 70, 70);--luzmo-color-selected-hard: #1e1e1e;--luzmo-color-selected-hard-hover: rgb(0, 0, 0);--luzmo-color-selected-hard-down: rgb(0, 0, 0);--luzmo-color-selected-hard-focus: rgb(0, 0, 0);--luzmo-color-informative: #1a77e9;--luzmo-color-informative-rgb: 26, 119, 233;--luzmo-color-disabled: #aaaaaa;--luzmo-spacing-1: 2px;--luzmo-spacing-2: 4px;--luzmo-spacing-3: 8px;--luzmo-spacing-4: 12px;--luzmo-spacing-5: 16px;--luzmo-indicator-gap: 2px;--luzmo-indicator-width: 1px;--luzmo-indicator-color: var(--luzmo-primary);--luzmo-component-height-xxs: 20px;--luzmo-component-height-xs: 24px;--luzmo-component-height-s: 28px;--luzmo-component-height: 32px;--luzmo-component-height-l: 40px;--luzmo-component-height-xl: 48px;--luzmo-component-height-xxl: 64px;--luzmo-icon-size-xxs: 12px;--luzmo-icon-size-xs: 14px;--luzmo-icon-size-s: 16px;--luzmo-icon-size-m: 18px;--luzmo-icon-size-l: 20px;--luzmo-icon-size-xl: 22px;--luzmo-icon-size-xxl: 32px}', document.head.appendChild(t);
32
+ }
33
+ };
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);
38
+ return r && h(o, e, r), r;
39
+ };
40
+ const n = class n extends g {
41
+ constructor() {
42
+ super(...arguments), this.values = {}, this.disabled = !1;
43
+ }
44
+ generateRadioButtons() {
45
+ const o = Object.entries(this.values).map(
46
+ ([e, m]) => s`
47
+ <luzmo-action-button value=${e} ?disabled=${this.disabled}>
48
+ ${m}
49
+ </luzmo-action-button>
50
+ `
51
+ );
52
+ return s` ${o} `;
53
+ }
54
+ _handleEvent() {
55
+ var o, e, m, r;
56
+ this.dispatchEvent(
57
+ new CustomEvent("option-changed", {
58
+ bubbles: !0,
59
+ composed: !0,
60
+ cancelable: !0,
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]
63
+ }
64
+ })
65
+ );
66
+ }
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`
70
+ <luzmo-action-group
71
+ compact
72
+ selects="single"
73
+ emphasized
74
+ @change=${this._handleEvent}
75
+ .size=${this.size}
76
+ .selected=${o && this.values[o] ? [o] : e && this.values[e] ? [e] : [Object.keys(this.values)[0]]}
77
+ ?disabled=${this.disabled}
78
+ >
79
+ ${this.generateRadioButtons()}
80
+ </luzmo-action-group>
81
+ `;
82
+ }
83
+ };
84
+ n.styles = [d(n, n, "styles")];
85
+ let l = n;
86
+ u([
87
+ i({ type: Array })
88
+ ], l.prototype, "values");
89
+ u([
90
+ i({ type: Boolean, reflect: !0 })
91
+ ], l.prototype, "disabled");
92
+ u([
93
+ i({ type: String })
94
+ ], l.prototype, "value");
95
+ u([
96
+ i({ type: String })
97
+ ], l.prototype, "default");
98
+ u([
99
+ i()
100
+ ], l.prototype, "fromOptionValue");
101
+ u([
102
+ i()
103
+ ], l.prototype, "toOptionValue");
104
+ u([
105
+ b("luzmo-action-group")
106
+ ], l.prototype, "actionGroup");
107
+ customElements.get("luzmo-edit-option-radio-button-group") || customElements.define(
108
+ "luzmo-edit-option-radio-button-group",
109
+ l
110
+ );
111
+ export {
112
+ l as LuzmoEditOptionRadioButtonGroup
113
+ };
@@ -0,0 +1,15 @@
1
+ import '@luzmo/lucero/slider';
2
+ import { LuzmoEditOptionBase } from '../edit-option-base/edit-option-base';
3
+ export declare class LuzmoEditOptionSlider extends LuzmoEditOptionBase {
4
+ static styles: import("lit").CSSResultArray[];
5
+ value: number;
6
+ default: number;
7
+ min: number;
8
+ max: number;
9
+ step: number;
10
+ debounce: number;
11
+ fromOptionValue?: (value?: string | number | any) => number;
12
+ toOptionValue?: (value?: number) => string | number | any;
13
+ private _handleEvent;
14
+ protected renderController(): import("lit-html").TemplateResult<1>;
15
+ }
@@ -0,0 +1,48 @@
1
+ /*! * A kit of modern Luzmo Web Components for analytics in your web application.
2
+ *
3
+ * Copyright © 2024 Luzmo
4
+ * All rights reserved.
5
+ * Luzmo web components (“Luzmo Web Components”)
6
+ * must be used according to the Luzmo Terms of Service.
7
+ * This license allows users with a current active Luzmo account
8
+ * to use the Luzmo Web Components. This license terminates
9
+ * automatically if a user no longer has an active Luzmo account.
10
+ * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
11
+ *
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
+ * SOFTWARE.
19
+ * */
20
+ "use strict";var Ne=Object.getPrototypeOf;var Ve=Reflect.get;var qt=(o,t,i)=>Ve(Ne(o),i,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const N=require("../property-Su1Q6aME.cjs"),Pe=require("../sized-mixin-PyCYpyQq-sKzDjc75.cjs"),Ae=require("../edit-option-base-DnrerC_T.cjs");/*! * Lucero - The design system for Luzmo.
21
+ *
22
+ * Copyright © 2025 Luzmo
23
+ * All rights reserved.
24
+ * Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
25
+ * This license allows users with a current active Luzmo account to use Lucero.
26
+ * This license terminates automatically if a user no longer has an active Luzmo account.
27
+ * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
28
+ *
29
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
30
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
31
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
32
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
33
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
34
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
35
+ * SOFTWARE.
36
+ * */const Oe=()=>{if(typeof document<"u"&&!document.querySelector("style[data-luzmo-vars]")){const o=document.createElement("style");o.setAttribute("data-luzmo-vars",""),o.textContent='html{--luzmo-animation-duration: 0.15s;--luzmo-border-color: rgba(var(--luzmo-border-color-rgb), 0.1);--luzmo-border-color-hover: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-down: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-border-color-focus: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-rgb: 0, 0, 0;--luzmo-border-color-full: rgb(180, 180, 180);--luzmo-border-color-full-hover: rgb(140, 140, 140);--luzmo-border-color-full-down: rgb(110, 110, 110);--luzmo-border-color-full-focus: rgb(140, 140, 140);--luzmo-border-color-disabled: #dddddd;--luzmo-border-radius: 6px;--luzmo-border-radius-s: 4px;--luzmo-border-radius-l: 8px;--luzmo-border-radius-xl: 12px;--luzmo-border-radius-full: 999rem;--luzmo-background-color: #ffffff;--luzmo-background-color-rgb: 255, 255, 255;--luzmo-background-color-disabled: #eeeeee;--luzmo-background-color-hover: #f0f0fc;--luzmo-background-color-down: #f1f1ff;--luzmo-background-color-focus: #f0f0fc;--luzmo-background-color-highlight: rgb(240, 240, 240);--luzmo-background-color-highlight-disabled: rgb(245, 245, 245);--luzmo-background-color-highlight-hover: rgb(225, 225, 225);--luzmo-background-color-highlight-down: rgb(215, 215, 215);--luzmo-background-color-highlight-focus: rgb(225, 225, 225);--luzmo-border-width: 1px;--luzmo-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;--luzmo-font-size-xs: 10px;--luzmo-font-size-s: 12px;--luzmo-font-size-m: 14px;--luzmo-font-size: 14px;--luzmo-font-size-l: 16px;--luzmo-font-size-xl: 18px;--luzmo-font-size-xxl: 20px;--luzmo-font-style: normal;--luzmo-line-height: normal;--luzmo-font-weight: 400;--luzmo-font-weight-semibold: 500;--luzmo-font-weight-bold: 600;--luzmo-font-color: #333;--luzmo-font-color-hard: #000;--luzmo-font-color-disabled: var(--luzmo-color-disabled);--luzmo-font-color-extra-dimmed: #888;--luzmo-font-color-hover: #333;--luzmo-font-color-down: #111;--luzmo-font-color-focus: #333;--luzmo-primary: #4434ff;--luzmo-primary-hover: #4234e4;--luzmo-primary-down: #392cc7;--luzmo-primary-focus: #4234e4;--luzmo-primary-inverse-color: #ffffff;--luzmo-primary-rgb: 68, 52, 255;--luzmo-secondary: #ff00ff;--luzmo-secondary-hover: #e309e3;--luzmo-secondary-down: #c711c7;--luzmo-secondary-focus: #e309e3;--luzmo-secondary-inverse-color: #ffffff;--luzmo-secondary-rgb: 255, 0, 255;--luzmo-color-negative: #ca221c;--luzmo-color-negative-hover: #b3241f;--luzmo-color-negative-down: #9f231f;--luzmo-color-negative-focus: #b3241f;--luzmo-color-negative-rgb: 202, 34, 28;--luzmo-color-positive: rgb(20, 150, 101);--luzmo-color-positive-hover: rgb(17, 128, 86);--luzmo-color-positive-down: rgb(16, 105, 71);--luzmo-color-positive-focus: rgb(17, 128, 86);--luzmo-color-positive-rgb: 20, 150, 101;--luzmo-color-selected: rgb(110, 110, 110);--luzmo-color-selected-hover: rgb(70, 70, 70);--luzmo-color-selected-down: rgb(40, 40, 40);--luzmo-color-selected-focus: rgb(70, 70, 70);--luzmo-color-selected-hard: #1e1e1e;--luzmo-color-selected-hard-hover: rgb(0, 0, 0);--luzmo-color-selected-hard-down: rgb(0, 0, 0);--luzmo-color-selected-hard-focus: rgb(0, 0, 0);--luzmo-color-informative: #1a77e9;--luzmo-color-informative-rgb: 26, 119, 233;--luzmo-color-disabled: #aaaaaa;--luzmo-spacing-1: 2px;--luzmo-spacing-2: 4px;--luzmo-spacing-3: 8px;--luzmo-spacing-4: 12px;--luzmo-spacing-5: 16px;--luzmo-indicator-gap: 2px;--luzmo-indicator-width: 1px;--luzmo-indicator-color: var(--luzmo-primary);--luzmo-component-height-xxs: 20px;--luzmo-component-height-xs: 24px;--luzmo-component-height-s: 28px;--luzmo-component-height: 32px;--luzmo-component-height-l: 40px;--luzmo-component-height-xl: 48px;--luzmo-component-height-xxl: 64px;--luzmo-icon-size-xxs: 12px;--luzmo-icon-size-xs: 14px;--luzmo-icon-size-s: 16px;--luzmo-icon-size-m: 18px;--luzmo-icon-size-l: 20px;--luzmo-icon-size-xl: 22px;--luzmo-icon-size-xxl: 32px}',document.head.appendChild(o)}};Oe();var B;(function(o){o.Range="range",o.Steps="steps",o.Positions="positions",o.Count="count",o.Values="values"})(B||(B={}));var D;(function(o){o[o.None=-1]="None",o[o.NoValue=0]="NoValue",o[o.LargeValue=1]="LargeValue",o[o.SmallValue=2]="SmallValue"})(D||(D={}));function Me(o){return st(o)&&typeof o.from=="function"}function st(o){return typeof o=="object"&&typeof o.to=="function"}function Bt(o){o.parentElement.removeChild(o)}function St(o){return o!=null}function $t(o){o.preventDefault()}function De(o){return o.filter(function(t){return this[t]?!1:this[t]=!0},{})}function Le(o,t){return Math.round(o/t)*t}function He(o,t){var i=o.getBoundingClientRect(),c=o.ownerDocument,s=c.documentElement,h=Qt(c);return/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(h.x=0),t?i.top+h.y-s.clientTop:i.left+h.x-s.clientLeft}function j(o){return typeof o=="number"&&!isNaN(o)&&isFinite(o)}function Yt(o,t,i){i>0&&(M(o,t),setTimeout(function(){at(o,t)},i))}function Xt(o){return Math.max(Math.min(o,100),0)}function lt(o){return Array.isArray(o)?o:[o]}function je(o){o=String(o);var t=o.split(".");return t.length>1?t[1].length:0}function M(o,t){o.classList&&!/\s/.test(t)?o.classList.add(t):o.className+=" "+t}function at(o,t){o.classList&&!/\s/.test(t)?o.classList.remove(t):o.className=o.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," ")}function Fe(o,t){return o.classList?o.classList.contains(t):new RegExp("\\b"+t+"\\b").test(o.className)}function Qt(o){var t=window.pageXOffset!==void 0,i=(o.compatMode||"")==="CSS1Compat",c=t?window.pageXOffset:i?o.documentElement.scrollLeft:o.body.scrollLeft,s=t?window.pageYOffset:i?o.documentElement.scrollTop:o.body.scrollTop;return{x:c,y:s}}function Te(){return window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"}}function Re(){var o=!1;try{var t=Object.defineProperty({},"passive",{get:function(){o=!0}});window.addEventListener("test",null,t)}catch{}return o}function _e(){return window.CSS&&CSS.supports&&CSS.supports("touch-action","none")}function Et(o,t){return 100/(t-o)}function kt(o,t,i){return t*100/(o[i+1]-o[i])}function qe(o,t){return kt(o,o[0]<0?t+Math.abs(o[0]):t-o[0],0)}function Be(o,t){return t*(o[1]-o[0])/100+o[0]}function tt(o,t){for(var i=1;o>=t[i];)i+=1;return i}function $e(o,t,i){if(i>=o.slice(-1)[0])return 100;var c=tt(i,o),s=o[c-1],h=o[c],f=t[c-1],z=t[c];return f+qe([s,h],i)/Et(f,z)}function Ye(o,t,i){if(i>=100)return o.slice(-1)[0];var c=tt(i,t),s=o[c-1],h=o[c],f=t[c-1],z=t[c];return Be([s,h],(i-f)*Et(f,z))}function Xe(o,t,i,c){if(c===100)return c;var s=tt(c,o),h=o[s-1],f=o[s];return i?c-h>(f-h)/2?f:h:t[s-1]?o[s-1]+Le(c-o[s-1],t[s-1]):c}var Wt=function(){function o(t,i,c){this.xPct=[],this.xVal=[],this.xSteps=[],this.xNumSteps=[],this.xHighestCompleteStep=[],this.xSteps=[c||!1],this.xNumSteps=[!1],this.snap=i;var s,h=[];for(Object.keys(t).forEach(function(f){h.push([lt(t[f]),f])}),h.sort(function(f,z){return f[0][0]-z[0][0]}),s=0;s<h.length;s++)this.handleEntryPoint(h[s][1],h[s][0]);for(this.xNumSteps=this.xSteps.slice(0),s=0;s<this.xNumSteps.length;s++)this.handleStepPoint(s,this.xNumSteps[s])}return o.prototype.getDistance=function(t){for(var i=[],c=0;c<this.xNumSteps.length-1;c++)i[c]=kt(this.xVal,t,c);return i},o.prototype.getAbsoluteDistance=function(t,i,c){var s=0;if(t<this.xPct[this.xPct.length-1])for(;t>this.xPct[s+1];)s++;else t===this.xPct[this.xPct.length-1]&&(s=this.xPct.length-2);!c&&t===this.xPct[s+1]&&s++,i===null&&(i=[]);var h,f=1,z=i[s],y=0,m=0,V=0,A=0;for(c?h=(t-this.xPct[s])/(this.xPct[s+1]-this.xPct[s]):h=(this.xPct[s+1]-t)/(this.xPct[s+1]-this.xPct[s]);z>0;)y=this.xPct[s+1+A]-this.xPct[s+A],i[s+A]*f+100-h*100>100?(m=y*h,f=(z-100*h)/i[s+A],h=1):(m=i[s+A]*y/100*f,f=0),c?(V=V-m,this.xPct.length+A>=1&&A--):(V=V+m,this.xPct.length-A>=1&&A++),z=i[s+A]*f;return t+V},o.prototype.toStepping=function(t){return t=$e(this.xVal,this.xPct,t),t},o.prototype.fromStepping=function(t){return Ye(this.xVal,this.xPct,t)},o.prototype.getStep=function(t){return t=Xe(this.xPct,this.xSteps,this.snap,t),t},o.prototype.getDefaultStep=function(t,i,c){var s=tt(t,this.xPct);return(t===100||i&&t===this.xPct[s-1])&&(s=Math.max(s-1,1)),(this.xVal[s]-this.xVal[s-1])/c},o.prototype.getNearbySteps=function(t){var i=tt(t,this.xPct);return{stepBefore:{startValue:this.xVal[i-2],step:this.xNumSteps[i-2],highestStep:this.xHighestCompleteStep[i-2]},thisStep:{startValue:this.xVal[i-1],step:this.xNumSteps[i-1],highestStep:this.xHighestCompleteStep[i-1]},stepAfter:{startValue:this.xVal[i],step:this.xNumSteps[i],highestStep:this.xHighestCompleteStep[i]}}},o.prototype.countStepDecimals=function(){var t=this.xNumSteps.map(je);return Math.max.apply(null,t)},o.prototype.hasNoSize=function(){return this.xVal[0]===this.xVal[this.xVal.length-1]},o.prototype.convert=function(t){return this.getStep(this.toStepping(t))},o.prototype.handleEntryPoint=function(t,i){var c;if(t==="min"?c=0:t==="max"?c=100:c=parseFloat(t),!j(c)||!j(i[0]))throw new Error("noUiSlider: 'range' value isn't numeric.");this.xPct.push(c),this.xVal.push(i[0]);var s=Number(i[1]);c?this.xSteps.push(isNaN(s)?!1:s):isNaN(s)||(this.xSteps[0]=s),this.xHighestCompleteStep.push(0)},o.prototype.handleStepPoint=function(t,i){if(i){if(this.xVal[t]===this.xVal[t+1]){this.xSteps[t]=this.xHighestCompleteStep[t]=this.xVal[t];return}this.xSteps[t]=kt([this.xVal[t],this.xVal[t+1]],i,0)/Et(this.xPct[t],this.xPct[t+1]);var c=(this.xVal[t+1]-this.xVal[t])/this.xNumSteps[t],s=Math.ceil(Number(c.toFixed(3))-1),h=this.xVal[t]+this.xNumSteps[t]*s;this.xHighestCompleteStep[t]=h}},o}(),It={to:function(o){return o===void 0?"":o.toFixed(2)},from:Number},Gt={target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",touchArea:"touch-area",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",connects:"connects",ltr:"ltr",rtl:"rtl",textDirectionLtr:"txt-dir-ltr",textDirectionRtl:"txt-dir-rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"},q={tooltips:".__tooltips",aria:".__aria"};function Ie(o,t){if(!j(t))throw new Error("noUiSlider: 'step' is not numeric.");o.singleStep=t}function Qe(o,t){if(!j(t))throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric.");o.keyboardPageMultiplier=t}function We(o,t){if(!j(t))throw new Error("noUiSlider: 'keyboardMultiplier' is not numeric.");o.keyboardMultiplier=t}function Ge(o,t){if(!j(t))throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric.");o.keyboardDefaultStep=t}function Je(o,t){if(typeof t!="object"||Array.isArray(t))throw new Error("noUiSlider: 'range' is not an object.");if(t.min===void 0||t.max===void 0)throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'.");o.spectrum=new Wt(t,o.snap||!1,o.singleStep)}function Ke(o,t){if(t=lt(t),!Array.isArray(t)||!t.length)throw new Error("noUiSlider: 'start' option is incorrect.");o.handles=t.length,o.start=t}function Ze(o,t){if(typeof t!="boolean")throw new Error("noUiSlider: 'snap' option must be a boolean.");o.snap=t}function to(o,t){if(typeof t!="boolean")throw new Error("noUiSlider: 'animate' option must be a boolean.");o.animate=t}function eo(o,t){if(typeof t!="number")throw new Error("noUiSlider: 'animationDuration' option must be a number.");o.animationDuration=t}function Jt(o,t){var i=[!1],c;if(t==="lower"?t=[!0,!1]:t==="upper"&&(t=[!1,!0]),t===!0||t===!1){for(c=1;c<o.handles;c++)i.push(t);i.push(!1)}else{if(!Array.isArray(t)||!t.length||t.length!==o.handles+1)throw new Error("noUiSlider: 'connect' option doesn't match handle count.");i=t}o.connect=i}function oo(o,t){switch(t){case"horizontal":o.ort=0;break;case"vertical":o.ort=1;break;default:throw new Error("noUiSlider: 'orientation' option is invalid.")}}function Kt(o,t){if(!j(t))throw new Error("noUiSlider: 'margin' option must be numeric.");t!==0&&(o.margin=o.spectrum.getDistance(t))}function ro(o,t){if(!j(t))throw new Error("noUiSlider: 'limit' option must be numeric.");if(o.limit=o.spectrum.getDistance(t),!o.limit||o.handles<2)throw new Error("noUiSlider: 'limit' option is only supported on linear sliders with 2 or more handles.")}function no(o,t){var i;if(!j(t)&&!Array.isArray(t))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(Array.isArray(t)&&!(t.length===2||j(t[0])||j(t[1])))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(t!==0){for(Array.isArray(t)||(t=[t,t]),o.padding=[o.spectrum.getDistance(t[0]),o.spectrum.getDistance(t[1])],i=0;i<o.spectrum.xNumSteps.length-1;i++)if(o.padding[0][i]<0||o.padding[1][i]<0)throw new Error("noUiSlider: 'padding' option must be a positive number(s).");var c=t[0]+t[1],s=o.spectrum.xVal[0],h=o.spectrum.xVal[o.spectrum.xVal.length-1];if(c/(h-s)>1)throw new Error("noUiSlider: 'padding' option must not exceed 100% of the range.")}}function io(o,t){switch(t){case"ltr":o.dir=0;break;case"rtl":o.dir=1;break;default:throw new Error("noUiSlider: 'direction' option was not recognized.")}}function ao(o,t){if(typeof t!="string")throw new Error("noUiSlider: 'behaviour' must be a string containing options.");var i=t.indexOf("tap")>=0,c=t.indexOf("drag")>=0,s=t.indexOf("fixed")>=0,h=t.indexOf("snap")>=0,f=t.indexOf("hover")>=0,z=t.indexOf("unconstrained")>=0,y=t.indexOf("invert-connects")>=0,m=t.indexOf("drag-all")>=0,V=t.indexOf("smooth-steps")>=0;if(s){if(o.handles!==2)throw new Error("noUiSlider: 'fixed' behaviour must be used with 2 handles");Kt(o,o.start[1]-o.start[0])}if(y&&o.handles!==2)throw new Error("noUiSlider: 'invert-connects' behaviour must be used with 2 handles");if(z&&(o.margin||o.limit))throw new Error("noUiSlider: 'unconstrained' behaviour cannot be used with margin or limit");o.events={tap:i||h,drag:c,dragAll:m,smoothSteps:V,fixed:s,snap:h,hover:f,unconstrained:z,invertConnects:y}}function so(o,t){if(t!==!1)if(t===!0||st(t)){o.tooltips=[];for(var i=0;i<o.handles;i++)o.tooltips.push(t)}else{if(t=lt(t),t.length!==o.handles)throw new Error("noUiSlider: must pass a formatter for all handles.");t.forEach(function(c){if(typeof c!="boolean"&&!st(c))throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.")}),o.tooltips=t}}function lo(o,t){if(t.length!==o.handles)throw new Error("noUiSlider: must pass a attributes for all handles.");o.handleAttributes=t}function uo(o,t){if(!st(t))throw new Error("noUiSlider: 'ariaFormat' requires 'to' method.");o.ariaFormat=t}function co(o,t){if(!Me(t))throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.");o.format=t}function po(o,t){if(typeof t!="boolean")throw new Error("noUiSlider: 'keyboardSupport' option must be a boolean.");o.keyboardSupport=t}function fo(o,t){o.documentElement=t}function ho(o,t){if(typeof t!="string"&&t!==!1)throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.");o.cssPrefix=t}function mo(o,t){if(typeof t!="object")throw new Error("noUiSlider: 'cssClasses' must be an object.");typeof o.cssPrefix=="string"?(o.cssClasses={},Object.keys(t).forEach(function(i){o.cssClasses[i]=o.cssPrefix+t[i]})):o.cssClasses=t}function Zt(o){var t={margin:null,limit:null,padding:null,animate:!0,animationDuration:300,ariaFormat:It,format:It},i={step:{r:!1,t:Ie},keyboardPageMultiplier:{r:!1,t:Qe},keyboardMultiplier:{r:!1,t:We},keyboardDefaultStep:{r:!1,t:Ge},start:{r:!0,t:Ke},connect:{r:!0,t:Jt},direction:{r:!0,t:io},snap:{r:!1,t:Ze},animate:{r:!1,t:to},animationDuration:{r:!1,t:eo},range:{r:!0,t:Je},orientation:{r:!1,t:oo},margin:{r:!1,t:Kt},limit:{r:!1,t:ro},padding:{r:!1,t:no},behaviour:{r:!0,t:ao},ariaFormat:{r:!1,t:uo},format:{r:!1,t:co},tooltips:{r:!1,t:so},keyboardSupport:{r:!0,t:po},documentElement:{r:!1,t:fo},cssPrefix:{r:!0,t:ho},cssClasses:{r:!0,t:mo},handleAttributes:{r:!1,t:lo}},c={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",keyboardSupport:!0,cssPrefix:"noUi-",cssClasses:Gt,keyboardPageMultiplier:5,keyboardMultiplier:1,keyboardDefaultStep:10};o.format&&!o.ariaFormat&&(o.ariaFormat=o.format),Object.keys(i).forEach(function(y){if(!St(o[y])&&c[y]===void 0){if(i[y].r)throw new Error("noUiSlider: '"+y+"' is required.");return}i[y].t(t,St(o[y])?o[y]:c[y])}),t.pips=o.pips;var s=document.createElement("div"),h=s.style.msTransform!==void 0,f=s.style.transform!==void 0;t.transformRule=f?"transform":h?"msTransform":"webkitTransform";var z=[["left","top"],["right","bottom"]];return t.style=z[t.dir][t.ort],t}function go(o,t,i){var c=Te(),s=_e(),h=s&&Re(),f=o,z,y,m,V,A,_,g=t.spectrum,F=[],S=[],L=[],ut=0,T={},G=!1,Q=o.ownerDocument,et=t.documentElement||Q.documentElement,ot=Q.body,ee=Q.dir==="rtl"||t.ort===1?0:100;function R(e,r){var n=Q.createElement("div");return r&&M(n,r),e.appendChild(n),n}function oe(e,r){var n=R(e,t.cssClasses.origin),a=R(n,t.cssClasses.handle);if(R(a,t.cssClasses.touchArea),a.setAttribute("data-handle",String(r)),t.keyboardSupport&&(a.setAttribute("tabindex","0"),a.addEventListener("keydown",function(u){return ve(u,r)})),t.handleAttributes!==void 0){var l=t.handleAttributes[r];Object.keys(l).forEach(function(u){a.setAttribute(u,l[u])})}return a.setAttribute("role","slider"),a.setAttribute("aria-orientation",t.ort?"vertical":"horizontal"),r===0?M(a,t.cssClasses.handleLower):r===t.handles-1&&M(a,t.cssClasses.handleUpper),n.handle=a,n}function ct(e,r){return r?R(e,t.cssClasses.connect):!1}function re(e,r){y=R(r,t.cssClasses.connects),m=[],V=[],V.push(ct(y,e[0]));for(var n=0;n<t.handles;n++)m.push(oe(r,n)),L[n]=n,V.push(ct(y,e[n+1]))}function ne(e){M(e,t.cssClasses.target),t.dir===0?M(e,t.cssClasses.ltr):M(e,t.cssClasses.rtl),t.ort===0?M(e,t.cssClasses.horizontal):M(e,t.cssClasses.vertical);var r=getComputedStyle(e).direction;return r==="rtl"?M(e,t.cssClasses.textDirectionRtl):M(e,t.cssClasses.textDirectionLtr),R(e,t.cssClasses.base)}function ie(e,r){return!t.tooltips||!t.tooltips[r]?!1:R(e.firstChild,t.cssClasses.tooltip)}function Ct(){return f.hasAttribute("disabled")}function dt(e){var r=m[e];return r.hasAttribute("disabled")}function ae(e){e!=null?(m[e].setAttribute("disabled",""),m[e].handle.removeAttribute("tabindex")):(f.setAttribute("disabled",""),m.forEach(function(r){r.handle.removeAttribute("tabindex")}))}function se(e){e!=null?(m[e].removeAttribute("disabled"),m[e].handle.setAttribute("tabindex","0")):(f.removeAttribute("disabled"),m.forEach(function(r){r.removeAttribute("disabled"),r.handle.setAttribute("tabindex","0")}))}function pt(){_&&(J("update"+q.tooltips),_.forEach(function(e){e&&Bt(e)}),_=null)}function Nt(){pt(),_=m.map(ie),bt("update"+q.tooltips,function(e,r,n){if(!(!_||!t.tooltips)&&_[r]!==!1){var a=e[r];t.tooltips[r]!==!0&&(a=t.tooltips[r].to(n[r])),_[r].innerHTML=a}})}function le(){J("update"+q.aria),bt("update"+q.aria,function(e,r,n,a,l){L.forEach(function(u){var p=m[u],d=rt(S,u,0,!0,!0,!0),v=rt(S,u,100,!0,!0,!0),x=l[u],w=String(t.ariaFormat.to(n[u]));d=g.fromStepping(d).toFixed(1),v=g.fromStepping(v).toFixed(1),x=g.fromStepping(x).toFixed(1),p.children[0].setAttribute("aria-valuemin",d),p.children[0].setAttribute("aria-valuemax",v),p.children[0].setAttribute("aria-valuenow",x),p.children[0].setAttribute("aria-valuetext",w)})})}function ue(e){if(e.mode===B.Range||e.mode===B.Steps)return g.xVal;if(e.mode===B.Count){if(e.values<2)throw new Error("noUiSlider: 'values' (>= 2) required for mode 'count'.");for(var r=e.values-1,n=100/r,a=[];r--;)a[r]=r*n;return a.push(100),Vt(a,e.stepped)}return e.mode===B.Positions?Vt(e.values,e.stepped):e.mode===B.Values?e.stepped?e.values.map(function(l){return g.fromStepping(g.getStep(g.toStepping(l)))}):e.values:[]}function Vt(e,r){return e.map(function(n){return g.fromStepping(r?g.getStep(n):n)})}function ce(e){function r(x,w){return Number((x+w).toFixed(7))}var n=ue(e),a={},l=g.xVal[0],u=g.xVal[g.xVal.length-1],p=!1,d=!1,v=0;return n=De(n.slice().sort(function(x,w){return x-w})),n[0]!==l&&(n.unshift(l),p=!0),n[n.length-1]!==u&&(n.push(u),d=!0),n.forEach(function(x,w){var U,b,E,O=x,C=n[w+1],P,zt,yt,wt,Tt,Ut,Rt,_t=e.mode===B.Steps;for(_t&&(U=g.xNumSteps[w]),U||(U=C-O),C===void 0&&(C=O),U=Math.max(U,1e-7),b=O;b<=C;b=r(b,U)){for(P=g.toStepping(b),zt=P-v,Tt=zt/(e.density||1),Ut=Math.round(Tt),Rt=zt/Ut,E=1;E<=Ut;E+=1)yt=v+E*Rt,a[yt.toFixed(5)]=[g.fromStepping(yt),0];wt=n.indexOf(b)>-1?D.LargeValue:_t?D.SmallValue:D.NoValue,!w&&p&&b!==C&&(wt=0),b===C&&d||(a[P.toFixed(5)]=[b,wt]),v=P}}),a}function de(e,r,n){var a,l,u=Q.createElement("div"),p=(a={},a[D.None]="",a[D.NoValue]=t.cssClasses.valueNormal,a[D.LargeValue]=t.cssClasses.valueLarge,a[D.SmallValue]=t.cssClasses.valueSub,a),d=(l={},l[D.None]="",l[D.NoValue]=t.cssClasses.markerNormal,l[D.LargeValue]=t.cssClasses.markerLarge,l[D.SmallValue]=t.cssClasses.markerSub,l),v=[t.cssClasses.valueHorizontal,t.cssClasses.valueVertical],x=[t.cssClasses.markerHorizontal,t.cssClasses.markerVertical];M(u,t.cssClasses.pips),M(u,t.ort===0?t.cssClasses.pipsHorizontal:t.cssClasses.pipsVertical);function w(b,E){var O=E===t.cssClasses.value,C=O?v:x,P=O?p:d;return E+" "+C[t.ort]+" "+P[b]}function U(b,E,O){if(O=r?r(E,O):O,O!==D.None){var C=R(u,!1);C.className=w(O,t.cssClasses.marker),C.style[t.style]=b+"%",O>D.NoValue&&(C=R(u,!1),C.className=w(O,t.cssClasses.value),C.setAttribute("data-value",String(E)),C.style[t.style]=b+"%",C.innerHTML=String(n.to(E)))}}return Object.keys(e).forEach(function(b){U(b,e[b][0],e[b][1])}),u}function ft(){A&&(Bt(A),A=null)}function ht(e){ft();var r=ce(e),n=e.filter,a=e.format||{to:function(l){return String(Math.round(l))}};return A=f.appendChild(de(r,n,a)),A}function Pt(){var e=z.getBoundingClientRect(),r="offset"+["Width","Height"][t.ort];return t.ort===0?e.width||z[r]:e.height||z[r]}function Y(e,r,n,a){var l=function(p){var d=pe(p,a.pageOffset,a.target||r);if(!d||Ct()&&!a.doNotReject||Fe(f,t.cssClasses.tap)&&!a.doNotReject||e===c.start&&d.buttons!==void 0&&d.buttons>1||a.hover&&d.buttons)return!1;h||d.preventDefault(),d.calcPoint=d.points[t.ort],n(d,a)},u=[];return e.split(" ").forEach(function(p){r.addEventListener(p,l,h?{passive:!0}:!1),u.push([p,l])}),u}function pe(e,r,n){var a=e.type.indexOf("touch")===0,l=e.type.indexOf("mouse")===0,u=e.type.indexOf("pointer")===0,p=0,d=0;if(e.type.indexOf("MSPointer")===0&&(u=!0),e.type==="mousedown"&&!e.buttons&&!e.touches)return!1;if(a){var v=function(U){var b=U.target;return b===n||n.contains(b)||e.composed&&e.composedPath().shift()===n};if(e.type==="touchstart"){var x=Array.prototype.filter.call(e.touches,v);if(x.length>1)return!1;p=x[0].pageX,d=x[0].pageY}else{var w=Array.prototype.find.call(e.changedTouches,v);if(!w)return!1;p=w.pageX,d=w.pageY}}return r=r||Qt(Q),(l||u)&&(p=e.clientX+r.x,d=e.clientY+r.y),e.pageOffset=r,e.points=[p,d],e.cursor=l||u,e}function At(e){var r=e-He(z,t.ort),n=r*100/Pt();return n=Xt(n),t.dir?100-n:n}function fe(e){var r=100,n=!1;return m.forEach(function(a,l){if(!dt(l)){var u=S[l],p=Math.abs(u-e),d=p===100&&r===100,v=p<r,x=p<=r&&e>u;(v||x||d)&&(n=l,r=p)}}),n}function he(e,r){e.type==="mouseout"&&e.target.nodeName==="HTML"&&e.relatedTarget===null&&mt(e,r)}function me(e,r){if(navigator.appVersion.indexOf("MSIE 9")===-1&&e.buttons===0&&r.buttonsProperty!==0)return mt(e,r);var n=(t.dir?-1:1)*(e.calcPoint-r.startCalcPoint),a=n*100/r.baseSize;Mt(n>0,a,r.locations,r.handleNumbers,r.connect)}function mt(e,r){r.handle&&(at(r.handle,t.cssClasses.active),ut-=1),r.listeners.forEach(function(n){et.removeEventListener(n[0],n[1])}),ut===0&&(at(f,t.cssClasses.drag),xt(),e.cursor&&(ot.style.cursor="",ot.removeEventListener("selectstart",$t))),t.events.smoothSteps&&(r.handleNumbers.forEach(function(n){X(n,S[n],!0,!0,!1,!1)}),r.handleNumbers.forEach(function(n){k("update",n)})),r.handleNumbers.forEach(function(n){k("change",n),k("set",n),k("end",n)})}function gt(e,r){if(!r.handleNumbers.some(dt)){var n;if(r.handleNumbers.length===1){var a=m[r.handleNumbers[0]];n=a.children[0],ut+=1,M(n,t.cssClasses.active)}e.stopPropagation();var l=[],u=Y(c.move,et,me,{target:e.target,handle:n,connect:r.connect,listeners:l,startCalcPoint:e.calcPoint,baseSize:Pt(),pageOffset:e.pageOffset,handleNumbers:r.handleNumbers,buttonsProperty:e.buttons,locations:S.slice()}),p=Y(c.end,et,mt,{target:e.target,handle:n,listeners:l,doNotReject:!0,handleNumbers:r.handleNumbers}),d=Y("mouseout",et,he,{target:e.target,handle:n,listeners:l,doNotReject:!0,handleNumbers:r.handleNumbers});l.push.apply(l,u.concat(p,d)),e.cursor&&(ot.style.cursor=getComputedStyle(e.target).cursor,m.length>1&&M(f,t.cssClasses.drag),ot.addEventListener("selectstart",$t,!1)),r.handleNumbers.forEach(function(v){k("start",v)})}}function ge(e){e.stopPropagation();var r=At(e.calcPoint),n=fe(r);n!==!1&&(t.events.snap||Yt(f,t.cssClasses.tap,t.animationDuration),X(n,r,!0,!0),xt(),k("slide",n,!0),k("update",n,!0),t.events.snap?gt(e,{handleNumbers:[n]}):(k("change",n,!0),k("set",n,!0)))}function be(e){var r=At(e.calcPoint),n=g.getStep(r),a=g.fromStepping(n);Object.keys(T).forEach(function(l){l.split(".")[0]==="hover"&&T[l].forEach(function(u){u.call(it,a)})})}function ve(e,r){if(Ct()||dt(r))return!1;var n=["Left","Right"],a=["Down","Up"],l=["PageDown","PageUp"],u=["Home","End"];t.dir&&!t.ort?n.reverse():t.ort&&!t.dir&&(a.reverse(),l.reverse());var p=e.key.replace("Arrow",""),d=p===l[0],v=p===l[1],x=p===a[0]||p===n[0]||d,w=p===a[1]||p===n[1]||v,U=p===u[0],b=p===u[1];if(!x&&!w&&!U&&!b)return!0;e.preventDefault();var E;if(w||x){var O=x?0:1,C=jt(r),P=C[O];if(P===null)return!1;P===!1&&(P=g.getDefaultStep(S[r],x,t.keyboardDefaultStep)),v||d?P*=t.keyboardPageMultiplier:P*=t.keyboardMultiplier,P=Math.max(P,1e-7),P=(x?-1:1)*P,E=F[r]+P}else b?E=t.spectrum.xVal[t.spectrum.xVal.length-1]:E=t.spectrum.xVal[0];return X(r,g.toStepping(E),!0,!0),k("slide",r),k("update",r),k("change",r),k("set",r),!1}function Ot(e){e.fixed||m.forEach(function(r,n){Y(c.start,r.children[0],gt,{handleNumbers:[n]})}),e.tap&&Y(c.start,z,ge,{}),e.hover&&Y(c.move,z,be,{hover:!0}),e.drag&&V.forEach(function(r,n){if(!(r===!1||n===0||n===V.length-1)){var a=m[n-1],l=m[n],u=[r],p=[a,l],d=[n-1,n];M(r,t.cssClasses.draggable),e.fixed&&(u.push(a.children[0]),u.push(l.children[0])),e.dragAll&&(p=m,d=L),u.forEach(function(v){Y(c.start,v,gt,{handles:p,handleNumbers:d,connect:r})})}})}function bt(e,r){T[e]=T[e]||[],T[e].push(r),e.split(".")[0]==="update"&&m.forEach(function(n,a){k("update",a)})}function xe(e){return e===q.aria||e===q.tooltips}function J(e){var r=e&&e.split(".")[0],n=r?e.substring(r.length):e;Object.keys(T).forEach(function(a){var l=a.split(".")[0],u=a.substring(l.length);(!r||r===l)&&(!n||n===u)&&(!xe(u)||n===u)&&delete T[a]})}function k(e,r,n){Object.keys(T).forEach(function(a){var l=a.split(".")[0];e===l&&T[a].forEach(function(u){u.call(it,F.map(t.format.to),r,F.slice(),n||!1,S.slice(),it)})})}function rt(e,r,n,a,l,u,p){var d;return m.length>1&&!t.events.unconstrained&&(a&&r>0&&(d=g.getAbsoluteDistance(e[r-1],t.margin,!1),n=Math.max(n,d)),l&&r<m.length-1&&(d=g.getAbsoluteDistance(e[r+1],t.margin,!0),n=Math.min(n,d))),m.length>1&&t.limit&&(a&&r>0&&(d=g.getAbsoluteDistance(e[r-1],t.limit,!1),n=Math.min(n,d)),l&&r<m.length-1&&(d=g.getAbsoluteDistance(e[r+1],t.limit,!0),n=Math.max(n,d))),t.padding&&(r===0&&(d=g.getAbsoluteDistance(0,t.padding[0],!1),n=Math.max(n,d)),r===m.length-1&&(d=g.getAbsoluteDistance(100,t.padding[1],!0),n=Math.min(n,d))),p||(n=g.getStep(n)),n=Xt(n),n===e[r]&&!u?!1:n}function vt(e,r){var n=t.ort;return(n?r:e)+", "+(n?e:r)}function Mt(e,r,n,a,l){var u=n.slice(),p=a[0],d=t.events.smoothSteps,v=[!e,e],x=[e,!e];a=a.slice(),e&&a.reverse(),a.length>1?a.forEach(function(U,b){var E=rt(u,U,u[U]+r,v[b],x[b],!1,d);E===!1?r=0:(r=E-u[U],u[U]=E)}):v=x=[!0];var w=!1;a.forEach(function(U,b){w=X(U,n[U]+r,v[b],x[b],!1,d)||w}),w&&(a.forEach(function(U){k("update",U),k("slide",U)}),l!=null&&k("drag",p))}function Dt(e,r){return t.dir?100-e-r:e}function ze(e,r){S[e]=r,F[e]=g.fromStepping(r);var n=Dt(r,0)-ee,a="translate("+vt(n+"%","0")+")";if(m[e].style[t.transformRule]=a,t.events.invertConnects&&S.length>1){var l=S.every(function(u,p,d){return p===0||u>=d[p-1]});if(G!==!l){Ee();return}}K(e),K(e+1),G&&(K(e-1),K(e+2))}function xt(){L.forEach(function(e){var r=S[e]>50?-1:1,n=3+(m.length+r*e);m[e].style.zIndex=String(n)})}function X(e,r,n,a,l,u){return l||(r=rt(S,e,r,n,a,!1,u)),r===!1?!1:(ze(e,r),!0)}function K(e){if(V[e]){var r=S.slice();G&&r.sort(function(d,v){return d-v});var n=0,a=100;e!==0&&(n=r[e-1]),e!==V.length-1&&(a=r[e]);var l=a-n,u="translate("+vt(Dt(n,l)+"%","0")+")",p="scale("+vt(l/100,"1")+")";V[e].style[t.transformRule]=u+" "+p}}function Lt(e,r){return e===null||e===!1||e===void 0||(typeof e=="number"&&(e=String(e)),e=t.format.from(e),e!==!1&&(e=g.toStepping(e)),e===!1||isNaN(e))?S[r]:e}function nt(e,r,n){var a=lt(e),l=S[0]===void 0;r=r===void 0?!0:r,t.animate&&!l&&Yt(f,t.cssClasses.tap,t.animationDuration),L.forEach(function(d){X(d,Lt(a[d],d),!0,!1,n)});var u=L.length===1?0:1;if(l&&g.hasNoSize()&&(n=!0,S[0]=0,L.length>1)){var p=100/(L.length-1);L.forEach(function(d){S[d]=d*p})}for(;u<L.length;++u)L.forEach(function(d){X(d,S[d],!0,!0,n)});xt(),L.forEach(function(d){k("update",d),a[d]!==null&&r&&k("set",d)})}function ye(e){nt(t.start,e)}function we(e,r,n,a){if(e=Number(e),!(e>=0&&e<L.length))throw new Error("noUiSlider: invalid handle number, got: "+e);X(e,Lt(r,e),!0,!0,a),k("update",e),n&&k("set",e)}function Ht(e){if(e===void 0&&(e=!1),e)return F.length===1?F[0]:F.slice(0);var r=F.map(t.format.to);return r.length===1?r[0]:r}function Ue(){for(J(q.aria),J(q.tooltips),Object.keys(t.cssClasses).forEach(function(e){at(f,t.cssClasses[e])});f.firstChild;)f.removeChild(f.firstChild);delete f.noUiSlider}function jt(e){var r=S[e],n=g.getNearbySteps(r),a=F[e],l=n.thisStep.step,u=null;if(t.snap)return[a-n.stepBefore.startValue||null,n.stepAfter.startValue-a||null];l!==!1&&a+l>n.stepAfter.startValue&&(l=n.stepAfter.startValue-a),a>n.thisStep.startValue?u=n.thisStep.step:n.stepBefore.step===!1?u=!1:u=a-n.stepBefore.highestStep,r===100?l=null:r===0&&(u=null);var p=g.countStepDecimals();return l!==null&&l!==!1&&(l=Number(l.toFixed(p))),u!==null&&u!==!1&&(u=Number(u.toFixed(p))),[u,l]}function Se(){return L.map(jt)}function ke(e,r){var n=Ht(),a=["margin","limit","padding","range","animate","snap","step","format","pips","tooltips","connect"];a.forEach(function(u){e[u]!==void 0&&(i[u]=e[u])});var l=Zt(i);a.forEach(function(u){e[u]!==void 0&&(t[u]=l[u])}),g=l.spectrum,t.margin=l.margin,t.limit=l.limit,t.padding=l.padding,t.pips?ht(t.pips):ft(),t.tooltips?Nt():pt(),S=[],nt(St(e.start)?e.start:n,r),e.connect&&Ft()}function Ft(){for(;y.firstChild;)y.removeChild(y.firstChild);for(var e=0;e<=t.handles;e++)V[e]=ct(y,t.connect[e]),K(e);Ot({drag:t.events.drag,fixed:!0})}function Ee(){G=!G,Jt(t,t.connect.map(function(e){return!e})),Ft()}function Ce(){z=ne(f),re(t.connect,z),Ot(t.events),nt(t.start),t.pips&&ht(t.pips),t.tooltips&&Nt(),le()}Ce();var it={destroy:Ue,steps:Se,on:bt,off:J,get:Ht,set:nt,setHandle:we,reset:ye,disable:ae,enable:se,__moveHandles:function(e,r,n){Mt(e,r,S,n)},options:i,updateOptions:ke,target:f,removePips:ft,removeTooltips:pt,getPositions:function(){return S.slice()},getTooltips:function(){return _},getOrigins:function(){return m},pips:ht};return it}function bo(o,t){if(!o||!o.nodeName)throw new Error("noUiSlider: create requires a single element, got: "+o);if(o.noUiSlider)throw new Error("noUiSlider: Slider was already initialized.");var i=Zt(t),c=go(o,i,t);return o.noUiSlider=c,c}const vo={__spectrum:Wt,cssClasses:Gt,create:bo},xo='.noUi-target,.noUi-target *{-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;-ms-touch-action:none;touch-action:none;-ms-user-select:none;-moz-user-select:none;user-select:none;-moz-box-sizing:border-box;box-sizing:border-box}.noUi-target{position:relative}.noUi-base,.noUi-connects{width:100%;height:100%;position:relative;z-index:1}.noUi-connects{overflow:hidden;z-index:0}.noUi-connect,.noUi-origin{will-change:transform;position:absolute;z-index:1;top:0;right:0;height:100%;width:100%;-ms-transform-origin:0 0;-webkit-transform-origin:0 0;-webkit-transform-style:preserve-3d;transform-origin:0 0;transform-style:flat}.noUi-txt-dir-rtl.noUi-horizontal .noUi-origin{left:0;right:auto}.noUi-vertical .noUi-origin{top:-100%;width:0}.noUi-horizontal .noUi-origin{height:0}.noUi-handle{-webkit-backface-visibility:hidden;backface-visibility:hidden;position:absolute}.noUi-touch-area{height:100%;width:100%}.noUi-state-tap .noUi-connect,.noUi-state-tap .noUi-origin{-webkit-transition:transform .3s;transition:transform .3s}.noUi-state-drag *{cursor:inherit!important}.noUi-horizontal .noUi-handle{width:34px;height:28px;right:-17px;top:-6px}.noUi-vertical{width:18px}.noUi-vertical .noUi-handle{width:28px;height:34px;right:-6px;bottom:-17px}.noUi-txt-dir-rtl.noUi-horizontal .noUi-handle{left:-17px;right:auto}.noUi-target{background:#fafafa;border-radius:4px;border:1px solid #d3d3d3;box-shadow:inset 0 1px 1px #f0f0f0,0 3px 6px -5px #bbb}.noUi-connects{border-radius:3px}.noUi-connect{background:#3fb8af}.noUi-draggable{cursor:ew-resize}.noUi-vertical .noUi-draggable{cursor:ns-resize}.noUi-handle{border:1px solid #d9d9d9;border-radius:3px;background:#fff;cursor:default;box-shadow:inset 0 0 1px #fff,inset 0 1px 7px #ebebeb,0 3px 6px -3px #bbb}.noUi-active{box-shadow:inset 0 0 1px #fff,inset 0 1px 7px #ddd,0 3px 6px -3px #bbb}.noUi-handle:after,.noUi-handle:before{content:"";display:block;position:absolute;height:14px;width:1px;background:#e8e7e6;left:14px;top:6px}.noUi-handle:after{left:17px}.noUi-vertical .noUi-handle:after,.noUi-vertical .noUi-handle:before{width:14px;height:1px;left:6px;top:14px}.noUi-vertical .noUi-handle:after{top:17px}[disabled] .noUi-connect,.noUi-horizontal[disabled] .noUi-connects .noUi-connect{background:var(--luzmo-slider-background-color-disabled, var(--luzmo-disabled-color, #b8b8b8))}[disabled] .noUi-handle,[disabled].noUi-handle,[disabled].noUi-target{cursor:not-allowed!important}.noUi-pips,.noUi-pips *{-moz-box-sizing:border-box;box-sizing:border-box}.noUi-pips{position:absolute;color:#999}.noUi-value{position:absolute;white-space:nowrap;text-align:center}.noUi-value-sub{color:#ccc;font-size:10px}.noUi-marker{position:absolute;background:#ccc}.noUi-marker-sub,.noUi-marker-large{background:#aaa}.noUi-pips-horizontal{padding:10px 0;height:80px;top:100%;left:0;width:100%}.noUi-value-horizontal{-webkit-transform:translate(-50%,50%);transform:translate(-50%,50%)}.noUi-rtl .noUi-value-horizontal{-webkit-transform:translate(50%,50%);transform:translate(50%,50%)}.noUi-marker-horizontal.noUi-marker{margin-left:-1px;width:2px;height:5px}.noUi-marker-horizontal.noUi-marker-sub{height:10px}.noUi-marker-horizontal.noUi-marker-large{height:15px}.noUi-pips-vertical{padding:0 10px;height:100%;top:0;left:100%}.noUi-value-vertical{-webkit-transform:translate(0,-50%);transform:translateY(-50%);padding-left:25px}.noUi-rtl .noUi-value-vertical{-webkit-transform:translate(0,50%);transform:translateY(50%)}.noUi-marker-vertical.noUi-marker{width:5px;height:2px;margin-top:-1px}.noUi-marker-vertical.noUi-marker-sub{width:10px}.noUi-marker-vertical.noUi-marker-large{width:15px}.noUi-tooltip{display:block;position:absolute;border:1px solid #d9d9d9;border-radius:3px;background:#fff;color:#000;padding:5px;text-align:center;white-space:nowrap}.noUi-horizontal .noUi-tooltip{-webkit-transform:translate(-50%,0);transform:translate(-50%);left:50%;bottom:120%}.noUi-vertical .noUi-tooltip{-webkit-transform:translate(0,-50%);transform:translateY(-50%);top:50%;right:120%}.noUi-horizontal .noUi-origin>.noUi-tooltip{-webkit-transform:translate(50%,0);transform:translate(50%);left:auto;bottom:10px}.noUi-vertical .noUi-origin>.noUi-tooltip{-webkit-transform:translate(0,-18px);transform:translateY(-18px);top:auto;right:28px}.noUi-handle.noUi-handle-lower:focus-visible{outline:calc(var(--luzmo-border-width) / var(--luzmo-slider-handle-scale, var(--slider-handle-scale, .5))) solid var(--luzmo-primary)}:host{flex-grow:1;height:1rem}.luzmo-slider-container{width:100%}.noUi-horizontal{height:var(--luzmo-slider-track-height, var(--slider-track-height, 18px));top:var(--luzmo-slider-top-to-track, var(--slider-top-to-track, 0));border:none;box-shadow:none}.noUi-horizontal .noUi-base{background:var(--luzmo-background-color);cursor:pointer}.noUi-horizontal .noUi-connects{width:100%;left:0;background:var(--luzmo-border-color);border-radius:.625rem}.noUi-horizontal .noUi-connects .noUi-connect{background:var(--luzmo-primary)}.noUi-horizontal .noUi-origin .noUi-handle{transform:scale(var(--luzmo-slider-handle-scale, var(--slider-handle-scale, .5)));width:var(--luzmo-slider-handle-size, var(--slider-handle-size, 2rem));height:var(--luzmo-slider-handle-size, var(--slider-handle-size, 2rem));right:var(--luzmo-slider-edge-to-handle, var(--slider-edge-to-handle, 14px));top:var(--luzmo-slider-top-to-handle, var(--slider-top-to-handle, -.875rem));background:var(--luzmo-background-color);transition:background-color var(--luzmo-animation-duration);box-shadow:0 .125rem .25rem var(--luzmo-border-color),inset 0 0 0 .0625rem var(--luzmo-border-color);border-radius:50%;border:none;cursor:pointer}.noUi-horizontal .noUi-origin .noUi-handle:before,.noUi-horizontal .noUi-origin .noUi-handle:after{display:none}.noUi-horizontal .noUi-origin .noUi-handle:hover,.noUi-horizontal .noUi-origin .noUi-handle.noUi-active{background-color:var(--luzmo-slider-background-color-hover, var(--luzmo-background-color-hover))}.noUi-horizontal[disabled] .noUi-connects{background:var(--luzmo-slider-background-color-disabled, var(--luzmo-background-color-disabled))}.noUi-horizontal[disabled] .noUi-origin .noUi-handle:hover{background-color:var(--luzmo-slider-background-color-disabled-hover, var(--luzmo-background-color))}.noUi-tooltip{padding:.5rem;font-size:calc(var(--luzmo-slider-tooltip-font-size, var(--slider-tooltip-font-size)) / var(--luzmo-slider-handle-scale, var(--slider-handle-scale, .5)));background:var(--luzmo-background-color);color:var(--luzmo-font-color);display:none}.noUi-active .noUi-tooltip{display:block}:host{font-family:var(--luzmo-slider-font-family, var(--luzmo-font-family));min-block-size:var(--luzmo-slider-item-height, var(--slider-item-height));--slider-edge-to-handle: calc(-1 * var(--slider-handle-size) / 2);--slider-top-to-track: calc( ( var(--luzmo-slider-item-height, var(--slider-item-height)) - var(--luzmo-slider-track-height, var(--slider-track-height)) ) / 2 );--slider-top-to-handle: calc( ( ( (var(--luzmo-slider-track-height, var(--slider-track-height))) / 2 - var(--luzmo-slider-handle-size, var(--slider-handle-size)) * var(--luzmo-slider-handle-scale, var(--slider-handle-scale)) ) ) )}:host([size=s]){--slider-item-height: 24px;--slider-track-height: 3px;--slider-handle-scale: .5;--slider-handle-size: 32px;--slider-tooltip-font-size: var(--luzmo-font-size-xs)}:host{--slider-item-height: 32px;--slider-track-height: 4px;--slider-handle-scale: .5;--slider-handle-size: 36px;--slider-tooltip-font-size: var(--luzmo-font-size-s)}:host([size=l]){--slider-min-height: 40px;--slider-track-height: 6px;--slider-handle-scale: .5;--slider-handle-size: 40px;--slider-tooltip-font-size: var(--luzmo-font-size)}:host([size=xl]){--slider-min-height: 48px;--slider-track-height: 7px;--slider-handle-scale: .5;--slider-handle-size: 44px;--slider-tooltip-font-size: var(--luzmo-font-size)}';var zo=Object.defineProperty,W=(o,t,i,c)=>{for(var s=void 0,h=o.length-1,f;h>=0;h--)(f=o[h])&&(s=f(t,i,s)||s);return s&&zo(t,i,s),s};const te=class extends Pe.m(N.I){constructor(){super(...arguments),this.value=0,this.min=0,this.max=100,this.step=100,this.disabled=!1,this.debounce=200,this._doingUpdate=!1}get _slider(){return this.renderRoot.querySelector("div")}firstUpdated(){this.noUiSlider=vo.create(this.renderRoot.querySelector("div"),{start:this.value??0,connect:[!0,!1],step:this.step??1,range:{min:this.min??0,max:this.max??100},tooltips:!0}),this.noUiSlider.on("slide",(t,i,[c])=>{this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=setTimeout(()=>{this.setValue(c)},this.debounce??200)})}updated(t){const i=t.get("value"),c=t.get("min"),s=t.get("max"),h=t.get("step"),f=t.get("disabled");this.value!==void 0&&this.value!==i&&this.noUiSlider.set(this.value),(this.min!==void 0&&(s!==void 0||this.max!==void 0)&&this.min!==c||this.max!==void 0&&(c!==void 0||this.min!==void 0)&&this.max!==s)&&this.noUiSlider.updateOptions({range:{min:this.min??c,max:this.max??s}},!0),this.step!==void 0&&this.step!==h&&this.noUiSlider.updateOptions({step:this.step},!0),this.disabled!==void 0&&this.disabled!==f&&(this.disabled?this.noUiSlider.disable():this.noUiSlider.enable())}setValue(t){this.disabled||this.dispatchEvent(new CustomEvent("change",{detail:t,bubbles:!0,composed:!0}))}render(){return N.x`<div class="luzmo-slider-container"></div>`}};te.styles=[N.r(xo)];let I=te;W([N.H({type:Number,reflect:!0})],I.prototype,"value");W([N.H({type:Number,reflect:!0})],I.prototype,"min");W([N.H({type:Number,reflect:!0})],I.prototype,"max");W([N.H({type:Number,reflect:!0})],I.prototype,"step");W([N.H({type:Boolean,reflect:!0})],I.prototype,"disabled");W([N.H({type:Number,reflect:!0})],I.prototype,"debounce");customElements.get("luzmo-slider")||customElements.define("luzmo-slider",I);var yo=Object.defineProperty,$=(o,t,i,c)=>{for(var s=void 0,h=o.length-1,f;h>=0;h--)(f=o[h])&&(s=f(t,i,s)||s);return s&&yo(t,i,s),s};const Z=class Z extends Ae.LuzmoEditOptionBase{constructor(){super(...arguments),this.value=0,this.default=0,this.min=0,this.max=100,this.step=100,this.debounce=200}_handleEvent(t){this.dispatchEvent(new CustomEvent("option-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:typeof this.toOptionValue=="function"?this.toOptionValue(t.detail):t.detail}}))}renderController(){const t=typeof this.fromOptionValue=="function"?this.fromOptionValue(this.value):this.value,i=typeof this.fromOptionValue=="function"?this.fromOptionValue(this.default):this.default;return N.x`
37
+ <luzmo-slider
38
+ id="luzmo-edit-option-control"
39
+ .min=${this.min}
40
+ .max=${this.max}
41
+ .value=${t??i}
42
+ .step=${this.step}
43
+ .size=${this.size}
44
+ .debounce=${this.debounce}
45
+ .disabled=${this.disabled}
46
+ @change=${this._handleEvent}
47
+ ></luzmo-slider>
48
+ `}};Z.styles=[qt(Z,Z,"styles")];let H=Z;$([N.n({type:Number,reflect:!0})],H.prototype,"value");$([N.n({type:Number,reflect:!0})],H.prototype,"default");$([N.n({type:Number,reflect:!0})],H.prototype,"min");$([N.n({type:Number,reflect:!0})],H.prototype,"max");$([N.n({type:Number,reflect:!0})],H.prototype,"step");$([N.n({type:Number,reflect:!0})],H.prototype,"debounce");$([N.n()],H.prototype,"fromOptionValue");$([N.n()],H.prototype,"toOptionValue");customElements.get("luzmo-edit-option-slider")||customElements.define("luzmo-edit-option-slider",H);exports.LuzmoEditOptionSlider=H;
@@ -0,0 +1,7 @@
1
+ import { LuzmoEditOptionSlider } from './edit-option-slider';
2
+ declare global {
3
+ interface HTMLElementTagNameMap {
4
+ 'luzmo-edit-option-slider': LuzmoEditOptionSlider;
5
+ }
6
+ }
7
+ export { LuzmoEditOptionSlider } from './edit-option-slider';