smoothly 1.113.0 → 1.115.0

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 (378) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/smoothly-app_98.cjs.entry.js +126 -101
  3. package/dist/cjs/smoothly-app_98.cjs.entry.js.map +1 -1
  4. package/dist/cjs/smoothly-input-checkbox-demo.cjs.entry.js +1 -1
  5. package/dist/cjs/smoothly-submit.cjs.entry.js +1 -1
  6. package/dist/cjs/smoothly-trigger-sink.cjs.entry.js +1 -1
  7. package/dist/cjs/smoothly-trigger-source.cjs.entry.js +1 -1
  8. package/dist/cjs/smoothly.cjs.js +1 -1
  9. package/dist/collection/components/app/index.js +2 -2
  10. package/dist/collection/components/app/index.js.map +1 -1
  11. package/dist/collection/components/app/room/index.js +12 -8
  12. package/dist/collection/components/app/room/index.js.map +1 -1
  13. package/dist/collection/components/icon/demo/index.js +25 -3
  14. package/dist/collection/components/icon/demo/index.js.map +1 -1
  15. package/dist/collection/components/input/checkbox/demo/index.js +1 -1
  16. package/dist/collection/components/input/checkbox/index.js +2 -2
  17. package/dist/collection/components/input/clear/index.js +1 -1
  18. package/dist/collection/components/input/color/demo/index.js +1 -1
  19. package/dist/collection/components/input/color/index.js +2 -2
  20. package/dist/collection/components/input/date/index.js +1 -1
  21. package/dist/collection/components/input/date/range/index.js +3 -3
  22. package/dist/collection/components/input/date/text/index.js +1 -1
  23. package/dist/collection/components/input/date/time/index.js +5 -5
  24. package/dist/collection/components/input/demo/date/index.js +1 -1
  25. package/dist/collection/components/input/demo/index.js +4 -4
  26. package/dist/collection/components/input/demo/price/index.js +1 -1
  27. package/dist/collection/components/input/demo/radio/index.js +1 -1
  28. package/dist/collection/components/input/demo/standard/index.js +1 -1
  29. package/dist/collection/components/input/demo/user-input/index.js +3 -3
  30. package/dist/collection/components/input/edit/index.js +1 -1
  31. package/dist/collection/components/input/file/index.js +1 -1
  32. package/dist/collection/components/input/index.js +2 -2
  33. package/dist/collection/components/input/month/index.js +4 -4
  34. package/dist/collection/components/input/radio/item/index.js +1 -1
  35. package/dist/collection/components/input/range/demo/index.js +1 -1
  36. package/dist/collection/components/input/range/index.js +4 -4
  37. package/dist/collection/components/input/reset/index.js +1 -1
  38. package/dist/collection/components/input/select/index.js +2 -2
  39. package/dist/collection/components/input/submit/index.js +1 -1
  40. package/dist/collection/components/item/index.js +1 -1
  41. package/dist/collection/components/label/index.js +2 -2
  42. package/dist/collection/components/lazy/index.js +1 -1
  43. package/dist/collection/components/load-more/index.js +1 -1
  44. package/dist/collection/components/modal/index.js +2 -2
  45. package/dist/collection/components/notification/index.js +1 -1
  46. package/dist/collection/components/notifier/index.js +1 -1
  47. package/dist/collection/components/spinner/index.js +2 -2
  48. package/dist/collection/components/submit/index.js +1 -1
  49. package/dist/collection/components/summary/index.js +1 -1
  50. package/dist/collection/components/table/body/index.js +1 -1
  51. package/dist/collection/components/table/cell/index.js +1 -1
  52. package/dist/collection/components/table/demo/colspan/index.js +1 -1
  53. package/dist/collection/components/table/demo/filler-row/index.js +1 -1
  54. package/dist/collection/components/table/demo/group/index.js +1 -1
  55. package/dist/collection/components/table/demo/index.js +1 -1
  56. package/dist/collection/components/table/demo/nested-no-cell/index.js +2 -2
  57. package/dist/collection/components/table/demo/nested-no-cell/inner/index.js +1 -1
  58. package/dist/collection/components/table/demo/simple/simple.js +1 -1
  59. package/dist/collection/components/table/expandable/cell/index.js +1 -1
  60. package/dist/collection/components/table/expandable/row/index.js +1 -1
  61. package/dist/collection/components/table/filler-row/index.js +1 -1
  62. package/dist/collection/components/table/foot/index.js +1 -1
  63. package/dist/collection/components/table/group/index.js +1 -1
  64. package/dist/collection/components/table/head/index.js +2 -2
  65. package/dist/collection/components/table/index.js +1 -1
  66. package/dist/collection/components/table/row/index.js +1 -1
  67. package/dist/collection/components/tabs/demo/index.js +1 -1
  68. package/dist/collection/components/tabs/tab/index.js +1 -1
  69. package/dist/collection/components/theme/color/index.js +1 -1
  70. package/dist/collection/components/theme/demo/index.js +1 -1
  71. package/dist/collection/components/theme/guide/index.js +8 -8
  72. package/dist/collection/components/theme/picker/index.js +2 -2
  73. package/dist/collection/components/toggle-switch/demo/index.js +1 -1
  74. package/dist/collection/components/toggle-switch/index.js +1 -1
  75. package/dist/collection/components/trigger/index.js +1 -1
  76. package/dist/collection/components/trigger/sink/index.js +1 -1
  77. package/dist/collection/components/trigger/source/index.js +1 -1
  78. package/dist/components/{p-DdXfvS4U.js → p-1j2KmcfQ.js} +2 -2
  79. package/dist/components/{p-C519IJGa.js → p-4pGbxojU.js} +2 -2
  80. package/dist/components/{p-WzQNLGYx.js → p-67RlLkJb.js} +2 -2
  81. package/dist/components/{p-BDW8BGmy.js → p-6PsJb2Ez.js} +2 -2
  82. package/dist/components/{p-B8ljN4o0.js → p-AX8gOGUr.js} +2 -2
  83. package/dist/components/p-B0kZrKne.js +2 -0
  84. package/dist/components/p-B2MMqcTF.js +2 -0
  85. package/dist/components/{p-CDetFhB9.js → p-B6sHuEsq.js} +2 -2
  86. package/dist/components/{p-Bh2x2l2j.js → p-BEHgXDtQ.js} +2 -2
  87. package/dist/components/{p-Qf8o2d67.js → p-BFJL6rrU.js} +2 -2
  88. package/dist/components/p-BGBbdXaw.js +2 -0
  89. package/dist/components/{p-9Fc5vWzs.js → p-BGzrO9CQ.js} +2 -2
  90. package/dist/components/{p-CjAkXCwI.js → p-BHcHgI_e.js} +2 -2
  91. package/dist/components/{p-CLN-EYZz.js → p-BHsrC9Oh.js} +2 -2
  92. package/dist/components/{p-CjknknP6.js → p-BRoShuOu.js} +2 -2
  93. package/dist/components/{p-CGg8GrGq.js → p-BUa0wBSK.js} +2 -2
  94. package/dist/components/p-BXoBluZQ.js +2 -0
  95. package/dist/components/{p-jlska1pM.js → p-B_z5-Hf8.js} +2 -2
  96. package/dist/components/p-BanWK6rV.js +2 -0
  97. package/dist/components/p-Bes8H54c.js +2 -0
  98. package/dist/components/{p-JLn3QBuQ.js.map → p-Bes8H54c.js.map} +1 -1
  99. package/dist/components/{p-BznhH5yZ.js → p-BfwEfI7H.js} +2 -2
  100. package/dist/components/{p-BrrLEO2B.js → p-Bn7CZqdz.js} +2 -2
  101. package/dist/components/{p-DvF8zgEi.js → p-BpV6GXd7.js} +2 -2
  102. package/dist/components/{p-BEQ2yAjW.js → p-Bpc6uh0M.js} +2 -2
  103. package/dist/components/p-Bq5YEPPT.js +2 -0
  104. package/dist/components/p-Bq5YEPPT.js.map +1 -0
  105. package/dist/components/{p-CuC7MNAM.js → p-BulPH2Jo.js} +2 -2
  106. package/dist/components/{p-CXEfxOpA.js → p-C-zr_dP8.js} +2 -2
  107. package/dist/components/{p-MCxlBxSA.js → p-C02MtoAQ.js} +2 -2
  108. package/dist/components/{p-DxVl-YSW.js → p-C2xjUTYO.js} +2 -2
  109. package/dist/components/{p-JdwWRJjd.js → p-C6T0ZB2C.js} +2 -2
  110. package/dist/components/{p-MNhi5te8.js → p-CAgJrhiy.js} +2 -2
  111. package/dist/components/p-CApTrLt_.js +2 -0
  112. package/dist/components/{p-B_Tu52N5.js → p-CCExK0R5.js} +2 -2
  113. package/dist/components/p-CCExK0R5.js.map +1 -0
  114. package/dist/components/{p-C5JaWzfu.js → p-CFgT9iMG.js} +2 -2
  115. package/dist/components/{p-OfpR2_fh.js → p-CJEV2v84.js} +2 -2
  116. package/dist/components/p-CKlr_F9h.js +2 -0
  117. package/dist/components/{p-Cct10sTX.js → p-CL7fW_Oh.js} +2 -2
  118. package/dist/components/{p-DTOzpQD8.js → p-COK__8-d.js} +2 -2
  119. package/dist/components/{p-uCXQl-5J.js → p-CPnXAdGI.js} +2 -2
  120. package/dist/components/p-CSXWpZjy.js +2 -0
  121. package/dist/components/{p-fjRiTKvl.js → p-CTdXhHGF.js} +2 -2
  122. package/dist/components/{p-0vl7fnbi.js → p-CUdZx76u.js} +2 -2
  123. package/dist/components/{p-C0XPq5lI.js → p-CVNSeOlg.js} +2 -2
  124. package/dist/components/{p-Dt4cCJEp.js → p-CcXqouEO.js} +2 -2
  125. package/dist/components/p-CgCEK6Lc.js +2 -0
  126. package/dist/components/{p-uWmGtcyP.js.map → p-CgCEK6Lc.js.map} +1 -1
  127. package/dist/components/{p-DRiOEv4L.js → p-CmPHR3tf.js} +2 -2
  128. package/dist/components/{p-C-dGqk3e.js → p-CoJyQegK.js} +2 -2
  129. package/dist/components/p-CooymHn6.js +2 -0
  130. package/dist/components/p-CqMnH54Q.js +2 -0
  131. package/dist/components/p-CqSiLhUe.js +2 -0
  132. package/dist/components/{p-CbWiiNJL.js → p-CqXSfYre.js} +2 -2
  133. package/dist/components/{p-xbCL6ChL.js → p-CqyGm3oe.js} +2 -2
  134. package/dist/components/{p-Q-gVll-_.js → p-CrKwvG9J.js} +2 -2
  135. package/dist/components/{p-BMHv8WTp.js → p-CrkBYYf-.js} +2 -2
  136. package/dist/components/{p-B6W5V130.js → p-CtuuZV3u.js} +2 -2
  137. package/dist/components/p-Cv-uvD7X.js +2 -0
  138. package/dist/components/{p-BZJNdp6g.js → p-Cw_sHLuu.js} +2 -2
  139. package/dist/components/{p-DbS9bWfm.js → p-D-mAUrbR.js} +2 -2
  140. package/dist/components/{p-gJF_-tuy.js → p-D5WTwmc6.js} +2 -2
  141. package/dist/components/{p-DGxkSNZ-.js → p-D5dkLuTD.js} +2 -2
  142. package/dist/components/p-DGa_QPb9.js +2 -0
  143. package/dist/components/{p-eptsxAXs.js.map → p-DGa_QPb9.js.map} +1 -1
  144. package/dist/components/{p-97N6vnZd.js → p-DHj4bfJ8.js} +2 -2
  145. package/dist/components/{p-97N6vnZd.js.map → p-DHj4bfJ8.js.map} +1 -1
  146. package/dist/components/{p-DVbSVIVZ.js → p-DIf6-Fvg.js} +2 -2
  147. package/dist/components/{p-BpBeeNcM.js → p-DIhqNc1G.js} +2 -2
  148. package/dist/components/{p-CsHiDnB-.js → p-DLBMEh0f.js} +2 -2
  149. package/dist/components/{p-pYGmgv_e.js → p-DM3PMEgb.js} +2 -2
  150. package/dist/components/{p-D4LmYvoM.js → p-DS66Mn9S.js} +2 -2
  151. package/dist/components/p-DYNjCosy.js +2 -0
  152. package/dist/components/{p-OV_wRej-.js → p-D_uKY0yY.js} +2 -2
  153. package/dist/components/p-DkhX1qsg.js +2 -0
  154. package/dist/components/{p-DkxTx6nY.js → p-Dz8Bblye.js} +2 -2
  155. package/dist/components/{p-BqODWrES.js → p-He4KDK9-.js} +2 -2
  156. package/dist/components/{p-W-kaGeCx.js → p-N-UYdc5h.js} +2 -2
  157. package/dist/components/{p-oWil-NTX.js → p-NFd9Dxr1.js} +2 -2
  158. package/dist/components/{p-DyL_ilIk.js → p-NGbZCAH9.js} +2 -2
  159. package/dist/components/{p-DtoC1d2_.js → p-Qv-IgIvL.js} +2 -2
  160. package/dist/components/{p-7ReeDB-R.js → p-Ww5QjB3D.js} +2 -2
  161. package/dist/components/{p-CCzyYE1m.js → p-_o_lUhve.js} +2 -2
  162. package/dist/components/{p-B11YJh32.js → p-d26Fb7IS.js} +2 -2
  163. package/dist/components/{p-D4PyTfe4.js → p-dBpTpVs8.js} +2 -2
  164. package/dist/components/{p-DKir2dIt.js → p-fnKrPnzp.js} +2 -2
  165. package/dist/components/{p-V6FzDWfL.js → p-nFLcvugJ.js} +2 -2
  166. package/dist/components/{p-B7ws0a8Z.js → p-xkRxEiC8.js} +2 -2
  167. package/dist/components/smoothly-app-demo.js +1 -1
  168. package/dist/components/smoothly-app-room.js +1 -1
  169. package/dist/components/smoothly-app.js +1 -1
  170. package/dist/components/smoothly-button-demo-standard.js +1 -1
  171. package/dist/components/smoothly-button-demo.js +1 -1
  172. package/dist/components/smoothly-calendar.js +1 -1
  173. package/dist/components/smoothly-date-text.js +1 -1
  174. package/dist/components/smoothly-dialog-demo.js +1 -1
  175. package/dist/components/smoothly-dialog.js +1 -1
  176. package/dist/components/smoothly-display-demo.js +1 -1
  177. package/dist/components/smoothly-form-demo-all.js +1 -1
  178. package/dist/components/smoothly-form-demo-card.js +1 -1
  179. package/dist/components/smoothly-form-demo-controlled.js +1 -1
  180. package/dist/components/smoothly-form-demo-date-range.js +1 -1
  181. package/dist/components/smoothly-form-demo-date.js +1 -1
  182. package/dist/components/smoothly-form-demo-login.js +1 -1
  183. package/dist/components/smoothly-form-demo-pet.js +1 -1
  184. package/dist/components/smoothly-form-demo-prices.js +1 -1
  185. package/dist/components/smoothly-form-demo-schedule.js +1 -1
  186. package/dist/components/smoothly-form-demo-transparent.js +1 -1
  187. package/dist/components/smoothly-form-demo-typed.js +1 -1
  188. package/dist/components/smoothly-form-demo.js +1 -1
  189. package/dist/components/smoothly-form.js +1 -1
  190. package/dist/components/smoothly-icon-demo.js +1 -1
  191. package/dist/components/smoothly-input-checkbox-demo.js +1 -1
  192. package/dist/components/smoothly-input-checkbox.js +1 -1
  193. package/dist/components/smoothly-input-clear.js +1 -1
  194. package/dist/components/smoothly-input-color-demo.js +1 -1
  195. package/dist/components/smoothly-input-color.js +1 -1
  196. package/dist/components/smoothly-input-date-demo.js +1 -1
  197. package/dist/components/smoothly-input-date-range.js +1 -1
  198. package/dist/components/smoothly-input-date-time.js +1 -1
  199. package/dist/components/smoothly-input-date.js +1 -1
  200. package/dist/components/smoothly-input-demo-radio.js +1 -1
  201. package/dist/components/smoothly-input-demo-standard.js +1 -1
  202. package/dist/components/smoothly-input-demo-user-input.js +1 -1
  203. package/dist/components/smoothly-input-demo.js +1 -1
  204. package/dist/components/smoothly-input-edit.js +1 -1
  205. package/dist/components/smoothly-input-file.js +1 -1
  206. package/dist/components/smoothly-input-month.js +1 -1
  207. package/dist/components/smoothly-input-price-demo.js +1 -1
  208. package/dist/components/smoothly-input-radio-item.js +1 -1
  209. package/dist/components/smoothly-input-radio.js +1 -1
  210. package/dist/components/smoothly-input-range-demo.js +1 -1
  211. package/dist/components/smoothly-input-range.js +1 -1
  212. package/dist/components/smoothly-input-reset.js +1 -1
  213. package/dist/components/smoothly-input-select.js +1 -1
  214. package/dist/components/smoothly-input-submit.js +1 -1
  215. package/dist/components/smoothly-input.js +1 -1
  216. package/dist/components/smoothly-item.js +1 -1
  217. package/dist/components/smoothly-label.js +1 -1
  218. package/dist/components/smoothly-lazy.js +1 -1
  219. package/dist/components/smoothly-load-more.js +1 -1
  220. package/dist/components/smoothly-modal.js +1 -1
  221. package/dist/components/smoothly-notification.js +1 -1
  222. package/dist/components/smoothly-notifier.js +1 -1
  223. package/dist/components/smoothly-spinner.js +1 -1
  224. package/dist/components/smoothly-submit.js +1 -1
  225. package/dist/components/smoothly-summary.js +1 -1
  226. package/dist/components/smoothly-tab.js +1 -1
  227. package/dist/components/smoothly-table-body.js +1 -1
  228. package/dist/components/smoothly-table-cell.js +1 -1
  229. package/dist/components/smoothly-table-demo-colspan.js +1 -1
  230. package/dist/components/smoothly-table-demo-filler-row.js +1 -1
  231. package/dist/components/smoothly-table-demo-group.js +1 -1
  232. package/dist/components/smoothly-table-demo-nested-no-cell-inner.js +1 -1
  233. package/dist/components/smoothly-table-demo-nested-no-cell.js +1 -1
  234. package/dist/components/smoothly-table-demo-simple.js +1 -1
  235. package/dist/components/smoothly-table-demo.js +1 -1
  236. package/dist/components/smoothly-table-expandable-cell.js +1 -1
  237. package/dist/components/smoothly-table-expandable-row.js +1 -1
  238. package/dist/components/smoothly-table-filler-row.js +1 -1
  239. package/dist/components/smoothly-table-foot.js +1 -1
  240. package/dist/components/smoothly-table-head.js +1 -1
  241. package/dist/components/smoothly-table-row-group.js +1 -1
  242. package/dist/components/smoothly-table-row.js +1 -1
  243. package/dist/components/smoothly-table.js +1 -1
  244. package/dist/components/smoothly-tabs-demo.js +1 -1
  245. package/dist/components/smoothly-theme-color.js +1 -1
  246. package/dist/components/smoothly-theme-colors.js +1 -1
  247. package/dist/components/smoothly-theme-demo.js +1 -1
  248. package/dist/components/smoothly-theme-guide.js +1 -1
  249. package/dist/components/smoothly-theme-picker.js +1 -1
  250. package/dist/components/smoothly-toggle-switch-demo.js +1 -1
  251. package/dist/components/smoothly-toggle-switch.js +1 -1
  252. package/dist/components/smoothly-trigger-sink.js +1 -1
  253. package/dist/components/smoothly-trigger-source.js +1 -1
  254. package/dist/components/smoothly-trigger.js +1 -1
  255. package/dist/esm/loader.js +1 -1
  256. package/dist/esm/smoothly-app_98.entry.js +126 -101
  257. package/dist/esm/smoothly-app_98.entry.js.map +1 -1
  258. package/dist/esm/smoothly-input-checkbox-demo.entry.js +1 -1
  259. package/dist/esm/smoothly-submit.entry.js +1 -1
  260. package/dist/esm/smoothly-trigger-sink.entry.js +1 -1
  261. package/dist/esm/smoothly-trigger-source.entry.js +1 -1
  262. package/dist/esm/smoothly.js +1 -1
  263. package/dist/smoothly/p-7d6c72eb.entry.js +2 -0
  264. package/dist/smoothly/{p-118fd1b8.entry.js → p-94d091cd.entry.js} +2 -2
  265. package/dist/smoothly/p-b7ac3c88.entry.js +2 -0
  266. package/dist/smoothly/p-b7ac3c88.entry.js.map +1 -0
  267. package/dist/smoothly/{p-2cd32901.entry.js → p-be43737e.entry.js} +2 -2
  268. package/dist/smoothly/{p-baabb62e.entry.js → p-d4dad5a8.entry.js} +2 -2
  269. package/dist/smoothly/smoothly.esm.js +1 -1
  270. package/dist/types/components/app/index.d.ts +1 -0
  271. package/dist/types/components/app/room/index.d.ts +3 -1
  272. package/dist/types/components/icon/demo/index.d.ts +2 -0
  273. package/dist/types/components.d.ts +5 -5
  274. package/package.json +1 -1
  275. package/dist/components/p-B_Tu52N5.js.map +0 -1
  276. package/dist/components/p-BdqxED0P.js +0 -2
  277. package/dist/components/p-BnKGlfV9.js +0 -2
  278. package/dist/components/p-Bufbdh4o.js +0 -2
  279. package/dist/components/p-Bufbdh4o.js.map +0 -1
  280. package/dist/components/p-BxsOj_LX.js +0 -2
  281. package/dist/components/p-CMEyMMZz.js +0 -2
  282. package/dist/components/p-COTO4dlW.js +0 -2
  283. package/dist/components/p-CZGfvbsC.js +0 -2
  284. package/dist/components/p-Cgowjgod.js +0 -2
  285. package/dist/components/p-Cw-_pWl-.js +0 -2
  286. package/dist/components/p-D4fagxgG.js +0 -2
  287. package/dist/components/p-D8jJZbTy.js +0 -2
  288. package/dist/components/p-JB57brc4.js +0 -2
  289. package/dist/components/p-JLn3QBuQ.js +0 -2
  290. package/dist/components/p-eptsxAXs.js +0 -2
  291. package/dist/components/p-h1R5xtdy.js +0 -2
  292. package/dist/components/p-hcVaU3nW.js +0 -2
  293. package/dist/components/p-rRkypR5s.js +0 -2
  294. package/dist/components/p-uWmGtcyP.js +0 -2
  295. package/dist/smoothly/p-2fbd48bb.entry.js +0 -2
  296. package/dist/smoothly/p-d2f00811.entry.js +0 -2
  297. package/dist/smoothly/p-d2f00811.entry.js.map +0 -1
  298. /package/dist/components/{p-DdXfvS4U.js.map → p-1j2KmcfQ.js.map} +0 -0
  299. /package/dist/components/{p-C519IJGa.js.map → p-4pGbxojU.js.map} +0 -0
  300. /package/dist/components/{p-WzQNLGYx.js.map → p-67RlLkJb.js.map} +0 -0
  301. /package/dist/components/{p-BDW8BGmy.js.map → p-6PsJb2Ez.js.map} +0 -0
  302. /package/dist/components/{p-B8ljN4o0.js.map → p-AX8gOGUr.js.map} +0 -0
  303. /package/dist/components/{p-JB57brc4.js.map → p-B0kZrKne.js.map} +0 -0
  304. /package/dist/components/{p-Cw-_pWl-.js.map → p-B2MMqcTF.js.map} +0 -0
  305. /package/dist/components/{p-CDetFhB9.js.map → p-B6sHuEsq.js.map} +0 -0
  306. /package/dist/components/{p-Bh2x2l2j.js.map → p-BEHgXDtQ.js.map} +0 -0
  307. /package/dist/components/{p-Qf8o2d67.js.map → p-BFJL6rrU.js.map} +0 -0
  308. /package/dist/components/{p-h1R5xtdy.js.map → p-BGBbdXaw.js.map} +0 -0
  309. /package/dist/components/{p-9Fc5vWzs.js.map → p-BGzrO9CQ.js.map} +0 -0
  310. /package/dist/components/{p-CjAkXCwI.js.map → p-BHcHgI_e.js.map} +0 -0
  311. /package/dist/components/{p-CLN-EYZz.js.map → p-BHsrC9Oh.js.map} +0 -0
  312. /package/dist/components/{p-CjknknP6.js.map → p-BRoShuOu.js.map} +0 -0
  313. /package/dist/components/{p-CGg8GrGq.js.map → p-BUa0wBSK.js.map} +0 -0
  314. /package/dist/components/{p-hcVaU3nW.js.map → p-BXoBluZQ.js.map} +0 -0
  315. /package/dist/components/{p-jlska1pM.js.map → p-B_z5-Hf8.js.map} +0 -0
  316. /package/dist/components/{p-BnKGlfV9.js.map → p-BanWK6rV.js.map} +0 -0
  317. /package/dist/components/{p-BznhH5yZ.js.map → p-BfwEfI7H.js.map} +0 -0
  318. /package/dist/components/{p-BrrLEO2B.js.map → p-Bn7CZqdz.js.map} +0 -0
  319. /package/dist/components/{p-DvF8zgEi.js.map → p-BpV6GXd7.js.map} +0 -0
  320. /package/dist/components/{p-BEQ2yAjW.js.map → p-Bpc6uh0M.js.map} +0 -0
  321. /package/dist/components/{p-CuC7MNAM.js.map → p-BulPH2Jo.js.map} +0 -0
  322. /package/dist/components/{p-CXEfxOpA.js.map → p-C-zr_dP8.js.map} +0 -0
  323. /package/dist/components/{p-MCxlBxSA.js.map → p-C02MtoAQ.js.map} +0 -0
  324. /package/dist/components/{p-DxVl-YSW.js.map → p-C2xjUTYO.js.map} +0 -0
  325. /package/dist/components/{p-JdwWRJjd.js.map → p-C6T0ZB2C.js.map} +0 -0
  326. /package/dist/components/{p-MNhi5te8.js.map → p-CAgJrhiy.js.map} +0 -0
  327. /package/dist/components/{p-BxsOj_LX.js.map → p-CApTrLt_.js.map} +0 -0
  328. /package/dist/components/{p-C5JaWzfu.js.map → p-CFgT9iMG.js.map} +0 -0
  329. /package/dist/components/{p-OfpR2_fh.js.map → p-CJEV2v84.js.map} +0 -0
  330. /package/dist/components/{p-COTO4dlW.js.map → p-CKlr_F9h.js.map} +0 -0
  331. /package/dist/components/{p-Cct10sTX.js.map → p-CL7fW_Oh.js.map} +0 -0
  332. /package/dist/components/{p-DTOzpQD8.js.map → p-COK__8-d.js.map} +0 -0
  333. /package/dist/components/{p-uCXQl-5J.js.map → p-CPnXAdGI.js.map} +0 -0
  334. /package/dist/components/{p-BdqxED0P.js.map → p-CSXWpZjy.js.map} +0 -0
  335. /package/dist/components/{p-fjRiTKvl.js.map → p-CTdXhHGF.js.map} +0 -0
  336. /package/dist/components/{p-0vl7fnbi.js.map → p-CUdZx76u.js.map} +0 -0
  337. /package/dist/components/{p-C0XPq5lI.js.map → p-CVNSeOlg.js.map} +0 -0
  338. /package/dist/components/{p-Dt4cCJEp.js.map → p-CcXqouEO.js.map} +0 -0
  339. /package/dist/components/{p-DRiOEv4L.js.map → p-CmPHR3tf.js.map} +0 -0
  340. /package/dist/components/{p-C-dGqk3e.js.map → p-CoJyQegK.js.map} +0 -0
  341. /package/dist/components/{p-Cgowjgod.js.map → p-CooymHn6.js.map} +0 -0
  342. /package/dist/components/{p-rRkypR5s.js.map → p-CqMnH54Q.js.map} +0 -0
  343. /package/dist/components/{p-D8jJZbTy.js.map → p-CqSiLhUe.js.map} +0 -0
  344. /package/dist/components/{p-CbWiiNJL.js.map → p-CqXSfYre.js.map} +0 -0
  345. /package/dist/components/{p-xbCL6ChL.js.map → p-CqyGm3oe.js.map} +0 -0
  346. /package/dist/components/{p-Q-gVll-_.js.map → p-CrKwvG9J.js.map} +0 -0
  347. /package/dist/components/{p-BMHv8WTp.js.map → p-CrkBYYf-.js.map} +0 -0
  348. /package/dist/components/{p-B6W5V130.js.map → p-CtuuZV3u.js.map} +0 -0
  349. /package/dist/components/{p-CZGfvbsC.js.map → p-Cv-uvD7X.js.map} +0 -0
  350. /package/dist/components/{p-BZJNdp6g.js.map → p-Cw_sHLuu.js.map} +0 -0
  351. /package/dist/components/{p-DbS9bWfm.js.map → p-D-mAUrbR.js.map} +0 -0
  352. /package/dist/components/{p-gJF_-tuy.js.map → p-D5WTwmc6.js.map} +0 -0
  353. /package/dist/components/{p-DGxkSNZ-.js.map → p-D5dkLuTD.js.map} +0 -0
  354. /package/dist/components/{p-DVbSVIVZ.js.map → p-DIf6-Fvg.js.map} +0 -0
  355. /package/dist/components/{p-BpBeeNcM.js.map → p-DIhqNc1G.js.map} +0 -0
  356. /package/dist/components/{p-CsHiDnB-.js.map → p-DLBMEh0f.js.map} +0 -0
  357. /package/dist/components/{p-pYGmgv_e.js.map → p-DM3PMEgb.js.map} +0 -0
  358. /package/dist/components/{p-D4LmYvoM.js.map → p-DS66Mn9S.js.map} +0 -0
  359. /package/dist/components/{p-CMEyMMZz.js.map → p-DYNjCosy.js.map} +0 -0
  360. /package/dist/components/{p-OV_wRej-.js.map → p-D_uKY0yY.js.map} +0 -0
  361. /package/dist/components/{p-D4fagxgG.js.map → p-DkhX1qsg.js.map} +0 -0
  362. /package/dist/components/{p-DkxTx6nY.js.map → p-Dz8Bblye.js.map} +0 -0
  363. /package/dist/components/{p-BqODWrES.js.map → p-He4KDK9-.js.map} +0 -0
  364. /package/dist/components/{p-W-kaGeCx.js.map → p-N-UYdc5h.js.map} +0 -0
  365. /package/dist/components/{p-oWil-NTX.js.map → p-NFd9Dxr1.js.map} +0 -0
  366. /package/dist/components/{p-DyL_ilIk.js.map → p-NGbZCAH9.js.map} +0 -0
  367. /package/dist/components/{p-DtoC1d2_.js.map → p-Qv-IgIvL.js.map} +0 -0
  368. /package/dist/components/{p-7ReeDB-R.js.map → p-Ww5QjB3D.js.map} +0 -0
  369. /package/dist/components/{p-CCzyYE1m.js.map → p-_o_lUhve.js.map} +0 -0
  370. /package/dist/components/{p-B11YJh32.js.map → p-d26Fb7IS.js.map} +0 -0
  371. /package/dist/components/{p-D4PyTfe4.js.map → p-dBpTpVs8.js.map} +0 -0
  372. /package/dist/components/{p-DKir2dIt.js.map → p-fnKrPnzp.js.map} +0 -0
  373. /package/dist/components/{p-V6FzDWfL.js.map → p-nFLcvugJ.js.map} +0 -0
  374. /package/dist/components/{p-B7ws0a8Z.js.map → p-xkRxEiC8.js.map} +0 -0
  375. /package/dist/smoothly/{p-2fbd48bb.entry.js.map → p-7d6c72eb.entry.js.map} +0 -0
  376. /package/dist/smoothly/{p-118fd1b8.entry.js.map → p-94d091cd.entry.js.map} +0 -0
  377. /package/dist/smoothly/{p-2cd32901.entry.js.map → p-be43737e.entry.js.map} +0 -0
  378. /package/dist/smoothly/{p-baabb62e.entry.js.map → p-d4dad5a8.entry.js.map} +0 -0
@@ -1,2 +1,2 @@
1
- import{p as o,H as t,c as s,h as i,d as l,t as n}from"./p-BsZrGTcp.js";import{T as m}from"./p-Dr7iZPxA.js";import{D as r}from"./p-CkXes5c-.js";import"./p-BVKhAhsB.js";import"./p-DoFURPl2.js";import{E as h}from"./p-DFXJvHuL.js";import{S as e}from"./p-ClBX6_1T.js";import{d as u}from"./p-BHEtq3Ue.js";import{d as a}from"./p-DX3KKRD9.js";import{d as c}from"./p-BiQsRsV4.js";const y=()=>`[color=default].sc-smoothly-input-submit{--smoothly-color:var(--smoothly-default-color);--smoothly-color-contrast:var(--smoothly-default-contrast);--smoothly-color-shade:var(--smoothly-default-shade);--smoothly-color-tint:var(--smoothly-default-tint)}[color=primary].sc-smoothly-input-submit{--smoothly-color:var(--smoothly-primary-color);--smoothly-color-contrast:var(--smoothly-primary-contrast);--smoothly-color-shade:var(--smoothly-primary-shade);--smoothly-color-tint:var(--smoothly-primary-tint)}[color=secondary].sc-smoothly-input-submit{--smoothly-color:var(--smoothly-secondary-color);--smoothly-color-contrast:var(--smoothly-secondary-contrast);--smoothly-color-shade:var(--smoothly-secondary-shade);--smoothly-color-tint:var(--smoothly-secondary-tint)}[color=tertiary].sc-smoothly-input-submit{--smoothly-color:var(--smoothly-tertiary-color);--smoothly-color-contrast:var(--smoothly-tertiary-contrast);--smoothly-color-shade:var(--smoothly-tertiary-shade);--smoothly-color-tint:var(--smoothly-tertiary-tint)}[color=success].sc-smoothly-input-submit{--smoothly-color:var(--smoothly-success-color);--smoothly-color-contrast:var(--smoothly-success-contrast);--smoothly-color-shade:var(--smoothly-success-shade);--smoothly-color-tint:var(--smoothly-success-tint)}[color=warning].sc-smoothly-input-submit{--smoothly-color:var(--smoothly-warning-color);--smoothly-color-contrast:var(--smoothly-warning-contrast);--smoothly-color-shade:var(--smoothly-warning-shade);--smoothly-color-tint:var(--smoothly-warning-tint)}[color=danger].sc-smoothly-input-submit{--smoothly-color:var(--smoothly-danger-color);--smoothly-color-contrast:var(--smoothly-danger-contrast);--smoothly-color-shade:var(--smoothly-danger-shade);--smoothly-color-tint:var(--smoothly-danger-tint)}[color=light].sc-smoothly-input-submit{--smoothly-color:var(--smoothly-light-color);--smoothly-color-contrast:var(--smoothly-light-contrast);--smoothly-color-shade:var(--smoothly-light-shade);--smoothly-color-tint:var(--smoothly-light-tint)}[color=medium].sc-smoothly-input-submit{--smoothly-color:var(--smoothly-medium-color);--smoothly-color-contrast:var(--smoothly-medium-contrast);--smoothly-color-shade:var(--smoothly-medium-shade);--smoothly-color-tint:var(--smoothly-medium-tint)}[color=dark].sc-smoothly-input-submit{--smoothly-color:var(--smoothly-dark-color);--smoothly-color-contrast:var(--smoothly-dark-contrast);--smoothly-color-shade:var(--smoothly-dark-shade);--smoothly-color-tint:var(--smoothly-dark-tint)}.sc-smoothly-input-submit-h{--smoothly-button-border-radius:0.5rem;display:inline-flex;box-sizing:border-box;border-radius:var(--smoothly-button-border-radius);font-size:var(--smoothly-button-font-size, 1rem);cursor:pointer;border:none;outline:none;position:relative}[shape=rounded].sc-smoothly-input-submit-h{--smoothly-button-border-radius:2rem}[type=link].sc-smoothly-input-submit-h{display:inline}[disabled].sc-smoothly-input-submit-h{opacity:0.5}.sc-smoothly-input-submit-h>a.sc-smoothly-input-submit{font-weight:400;background-color:transparent}.sc-smoothly-input-submit-h>a.sc-smoothly-input-submit,.sc-smoothly-input-submit-h>button.sc-smoothly-input-submit{font-size:var(--smoothly-button-font-size);border:1px solid transparent;outline:none;cursor:pointer;display:inline-flex;gap:0.5rem;box-sizing:border-box}.sc-smoothly-input-submit-h>button.sc-smoothly-input-submit{font-weight:bold;justify-content:center;width:100%;align-items:center;border-radius:var(--smoothly-button-border-radius);padding-inline:var(--smoothly-button-padding-inline, 1rem)}.sc-smoothly-input-submit-h{min-height:var(--smoothly-button-height, 2.5rem)}.sc-smoothly-input-submit-h:has(>a:empty),.sc-smoothly-input-submit-h:has(>button:empty),.sc-smoothly-input-submit-h>a.sc-smoothly-input-submit:empty,.sc-smoothly-input-submit-h>button.sc-smoothly-input-submit:empty{border-width:0;min-height:0;padding-inline:0}[size=small].sc-smoothly-input-submit-h{--smoothly-button-height:2rem;--smoothly-button-padding-inline:0.75rem;--smoothly-button-font-size:0.875rem;--smoothly-icon-size:1.4rem}[size=large].sc-smoothly-input-submit-h{--smoothly-button-height:3rem;--smoothly-button-padding-inline:1.25rem;--smoothly-button-font-size:1.125rem}.sc-smoothly-input-submit-h:not([size=icon]):not([size=flexible])>button.sc-smoothly-input-submit{min-width:8rem}[size=icon].sc-smoothly-input-submit-h{--smoothly-icon-size:1.4rem}[size=icon].sc-smoothly-input-submit-h>button.sc-smoothly-input-submit{min-height:var(--smoothly-button-height, 2.5rem);min-width:var(--smoothly-button-height, 2.5rem);padding:0}.sc-smoothly-input-submit-h:not([size=icon]){min-width:8em}[size=flexible].sc-smoothly-input-submit-h{min-width:unset;padding:0;margin:0;display:flex;justify-content:center}[size=flexible].sc-smoothly-input-submit-h>button.sc-smoothly-input-submit{min-width:unset;padding:0;margin:0}[expand].sc-smoothly-input-submit-h{width:100%}[expand=full].sc-smoothly-input-submit-h{border-left:none;border-right:none;--smoothly-button-border-radius:0}[fill=outline].sc-smoothly-input-submit-h>button.sc-smoothly-input-submit{background-color:transparent;color:rgb(var(--smoothly-button-foreground));fill:rgb(var(--smoothly-button-foreground));stroke:rgb(var(--smoothly-button-foreground));border-color:rgb(var(--smoothly-button-foreground))}.sc-smoothly-input-submit-h:not([fill=clear]):not([disabled])>button.sc-smoothly-input-submit:hover,.sc-smoothly-input-submit-h:not([disabled])>button.sc-smoothly-input-submit:focus-visible,[fill=outline].sc-smoothly-input-submit-h:not([disabled]):active>button.sc-smoothly-input-submit::before{border-color:rgb(var(--smoothly-button-focus-color))}[fill=outline].sc-smoothly-input-submit-h:not([disabled])>button.sc-smoothly-input-submit:hover::before,[fill=outline].sc-smoothly-input-submit-h:not([disabled])>button.sc-smoothly-input-submit:focus-within::before,[fill=outline].sc-smoothly-input-submit-h:not([disabled])>button.sc-smoothly-input-submit:active::before{content:"";position:absolute;border:2px solid rgb(var(--smoothly-button-focus-border));inset:-1px;border-radius:var(--smoothly-button-border-radius)}.sc-smoothly-input-submit-h:not([fill=clear]):not([fill=outline]):not([disabled])>button.sc-smoothly-input-submit:hover,.sc-smoothly-input-submit-h:not([fill=clear]):not([fill=outline]):not([disabled])>button.sc-smoothly-input-submit:focus-visible,.sc-smoothly-input-submit-h:not([fill=clear]):not([fill=outline]):not([disabled])>button.sc-smoothly-input-submit:active{background:rgb(var(--smoothly-button-hover-background))}.sc-smoothly-input-submit-h>button.sc-smoothly-input-submit,.sc-smoothly-input-submit-h.sc-smoothly-input-submit-s>smoothly-icon,.sc-smoothly-input-submit-h .sc-smoothly-input-submit-s>smoothly-icon{color:rgb(var(--smoothly-button-foreground));stroke:rgb(var(--smoothly-button-foreground));fill:rgb(var(--smoothly-button-foreground))}[hidden].sc-smoothly-input-submit-h{display:none}.sc-smoothly-input-submit-h{display:flex}.sc-smoothly-input-submit-h:not([display]){display:none}.sc-smoothly-input-submit-h.sc-smoothly-input-submit-s>smoothly-button button>*+smoothly-icon,.sc-smoothly-input-submit-h.sc-smoothly-input-submit-s>smoothly-button-confirm button>*+smoothly-icon{display:none}[disabled].sc-smoothly-input-submit-h{cursor:not-allowed}`;const b=o(class o extends t{constructor(o){super();if(o!==false){this.__registerHost()}this.smoothlyInputLoad=s(this,"smoothlyInputLoad");this.delete=false;this.icon="checkmark-outline";this.disabled=false;this.display=false;this.size="icon";this.tooltip=this.delete?"Remove":"Submit"}componentWillLoad(){this.smoothlyInputLoad.emit((o=>{if(e.is(o)&&h.type.is(o)){this.parent=o;o.listen((async o=>{this.display=!o.readonly}));if(typeof this.disabled!=="boolean"){o.listen((async o=>{var t;this.disabled=!this.delete&&(o.readonly||"validator"in o&&o.validator instanceof m&&!((t=o.validator)===null||t===void 0?void 0:t.is(r.convertArrays(o.value)))||!o.isDifferentFromInitial)}))}}}))}clickHandler(){var o;(o=this.parent)===null||o===void 0?void 0:o.submit(this.delete)}render(){var o,t;return i(l,{key:"0fed4a319580841ba1d3281fb084b91a4d7b5a68",title:this.tooltip},this.delete==true?i("smoothly-button-confirm",{size:this.size,shape:this.shape,expand:this.expand,color:(o=this.color)!==null&&o!==void 0?o:"danger",fill:this.fill,onSmoothlyConfirm:()=>this.clickHandler()},i("slot",null),i("smoothly-icon",{name:"trash-outline",fill:"solid",size:"tiny"})):i("smoothly-button",{disabled:this.disabled,size:this.size,type:"button",shape:this.shape,expand:this.expand,color:(t=this.color)!==null&&t!==void 0?t:"success",fill:this.fill,onClick:()=>this.clickHandler()},i("slot",null),this.icon&&i("smoothly-icon",{name:this.icon,fill:"solid",size:"tiny"})))}static get style(){return y()}},[262,"smoothly-input-submit",{delete:[516],color:[1],icon:[8],expand:[513],fill:[513],disabled:[1540],display:[1540],shape:[513],size:[513],tooltip:[1]}]);function d(){if(typeof customElements==="undefined"){return}const o=["smoothly-input-submit","smoothly-button","smoothly-button-confirm","smoothly-icon"];o.forEach((o=>{switch(o){case"smoothly-input-submit":if(!customElements.get(n(o))){customElements.define(n(o),b)}break;case"smoothly-button":if(!customElements.get(n(o))){u()}break;case"smoothly-button-confirm":if(!customElements.get(n(o))){a()}break;case"smoothly-icon":if(!customElements.get(n(o))){c()}break}}))}d();export{b as S,d};
2
- //# sourceMappingURL=p-xbCL6ChL.js.map
1
+ import{p as o,H as t,c as s,h as i,d as l,t as n}from"./p-BsZrGTcp.js";import{T as m}from"./p-Dr7iZPxA.js";import{D as r}from"./p-CkXes5c-.js";import"./p-BVKhAhsB.js";import"./p-DoFURPl2.js";import{E as h}from"./p-DFXJvHuL.js";import{S as e}from"./p-ClBX6_1T.js";import{d as u}from"./p-BHEtq3Ue.js";import{d as c}from"./p-DX3KKRD9.js";import{d as a}from"./p-BiQsRsV4.js";const y=()=>`[color=default].sc-smoothly-input-submit{--smoothly-color:var(--smoothly-default-color);--smoothly-color-contrast:var(--smoothly-default-contrast);--smoothly-color-shade:var(--smoothly-default-shade);--smoothly-color-tint:var(--smoothly-default-tint)}[color=primary].sc-smoothly-input-submit{--smoothly-color:var(--smoothly-primary-color);--smoothly-color-contrast:var(--smoothly-primary-contrast);--smoothly-color-shade:var(--smoothly-primary-shade);--smoothly-color-tint:var(--smoothly-primary-tint)}[color=secondary].sc-smoothly-input-submit{--smoothly-color:var(--smoothly-secondary-color);--smoothly-color-contrast:var(--smoothly-secondary-contrast);--smoothly-color-shade:var(--smoothly-secondary-shade);--smoothly-color-tint:var(--smoothly-secondary-tint)}[color=tertiary].sc-smoothly-input-submit{--smoothly-color:var(--smoothly-tertiary-color);--smoothly-color-contrast:var(--smoothly-tertiary-contrast);--smoothly-color-shade:var(--smoothly-tertiary-shade);--smoothly-color-tint:var(--smoothly-tertiary-tint)}[color=success].sc-smoothly-input-submit{--smoothly-color:var(--smoothly-success-color);--smoothly-color-contrast:var(--smoothly-success-contrast);--smoothly-color-shade:var(--smoothly-success-shade);--smoothly-color-tint:var(--smoothly-success-tint)}[color=warning].sc-smoothly-input-submit{--smoothly-color:var(--smoothly-warning-color);--smoothly-color-contrast:var(--smoothly-warning-contrast);--smoothly-color-shade:var(--smoothly-warning-shade);--smoothly-color-tint:var(--smoothly-warning-tint)}[color=danger].sc-smoothly-input-submit{--smoothly-color:var(--smoothly-danger-color);--smoothly-color-contrast:var(--smoothly-danger-contrast);--smoothly-color-shade:var(--smoothly-danger-shade);--smoothly-color-tint:var(--smoothly-danger-tint)}[color=light].sc-smoothly-input-submit{--smoothly-color:var(--smoothly-light-color);--smoothly-color-contrast:var(--smoothly-light-contrast);--smoothly-color-shade:var(--smoothly-light-shade);--smoothly-color-tint:var(--smoothly-light-tint)}[color=medium].sc-smoothly-input-submit{--smoothly-color:var(--smoothly-medium-color);--smoothly-color-contrast:var(--smoothly-medium-contrast);--smoothly-color-shade:var(--smoothly-medium-shade);--smoothly-color-tint:var(--smoothly-medium-tint)}[color=dark].sc-smoothly-input-submit{--smoothly-color:var(--smoothly-dark-color);--smoothly-color-contrast:var(--smoothly-dark-contrast);--smoothly-color-shade:var(--smoothly-dark-shade);--smoothly-color-tint:var(--smoothly-dark-tint)}.sc-smoothly-input-submit-h{--smoothly-button-border-radius:0.5rem;display:inline-flex;box-sizing:border-box;border-radius:var(--smoothly-button-border-radius);font-size:var(--smoothly-button-font-size, 1rem);cursor:pointer;border:none;outline:none;position:relative}[shape=rounded].sc-smoothly-input-submit-h{--smoothly-button-border-radius:2rem}[type=link].sc-smoothly-input-submit-h{display:inline}[disabled].sc-smoothly-input-submit-h{opacity:0.5}.sc-smoothly-input-submit-h>a.sc-smoothly-input-submit{font-weight:400;background-color:transparent}.sc-smoothly-input-submit-h>a.sc-smoothly-input-submit,.sc-smoothly-input-submit-h>button.sc-smoothly-input-submit{font-size:var(--smoothly-button-font-size);border:1px solid transparent;outline:none;cursor:pointer;display:inline-flex;gap:0.5rem;box-sizing:border-box}.sc-smoothly-input-submit-h>button.sc-smoothly-input-submit{font-weight:bold;justify-content:center;width:100%;align-items:center;border-radius:var(--smoothly-button-border-radius);padding-inline:var(--smoothly-button-padding-inline, 1rem)}.sc-smoothly-input-submit-h{min-height:var(--smoothly-button-height, 2.5rem)}.sc-smoothly-input-submit-h:has(>a:empty),.sc-smoothly-input-submit-h:has(>button:empty),.sc-smoothly-input-submit-h>a.sc-smoothly-input-submit:empty,.sc-smoothly-input-submit-h>button.sc-smoothly-input-submit:empty{border-width:0;min-height:0;padding-inline:0}[size=small].sc-smoothly-input-submit-h{--smoothly-button-height:2rem;--smoothly-button-padding-inline:0.75rem;--smoothly-button-font-size:0.875rem;--smoothly-icon-size:1.4rem}[size=large].sc-smoothly-input-submit-h{--smoothly-button-height:3rem;--smoothly-button-padding-inline:1.25rem;--smoothly-button-font-size:1.125rem}.sc-smoothly-input-submit-h:not([size=icon]):not([size=flexible])>button.sc-smoothly-input-submit{min-width:8rem}[size=icon].sc-smoothly-input-submit-h{--smoothly-icon-size:1.4rem}[size=icon].sc-smoothly-input-submit-h>button.sc-smoothly-input-submit{min-height:var(--smoothly-button-height, 2.5rem);min-width:var(--smoothly-button-height, 2.5rem);padding:0}.sc-smoothly-input-submit-h:not([size=icon]){min-width:8em}[size=flexible].sc-smoothly-input-submit-h{min-width:unset;padding:0;margin:0;display:flex;justify-content:center}[size=flexible].sc-smoothly-input-submit-h>button.sc-smoothly-input-submit{min-width:unset;padding:0;margin:0}[expand].sc-smoothly-input-submit-h{width:100%}[expand=full].sc-smoothly-input-submit-h{border-left:none;border-right:none;--smoothly-button-border-radius:0}[fill=outline].sc-smoothly-input-submit-h>button.sc-smoothly-input-submit{background-color:transparent;color:rgb(var(--smoothly-button-foreground));fill:rgb(var(--smoothly-button-foreground));stroke:rgb(var(--smoothly-button-foreground));border-color:rgb(var(--smoothly-button-foreground))}.sc-smoothly-input-submit-h:not([fill=clear]):not([disabled])>button.sc-smoothly-input-submit:hover,.sc-smoothly-input-submit-h:not([disabled])>button.sc-smoothly-input-submit:focus-visible,[fill=outline].sc-smoothly-input-submit-h:not([disabled]):active>button.sc-smoothly-input-submit::before{border-color:rgb(var(--smoothly-button-focus-color))}[fill=outline].sc-smoothly-input-submit-h:not([disabled])>button.sc-smoothly-input-submit:hover::before,[fill=outline].sc-smoothly-input-submit-h:not([disabled])>button.sc-smoothly-input-submit:focus-within::before,[fill=outline].sc-smoothly-input-submit-h:not([disabled])>button.sc-smoothly-input-submit:active::before{content:"";position:absolute;border:2px solid rgb(var(--smoothly-button-focus-border));inset:-1px;border-radius:var(--smoothly-button-border-radius)}.sc-smoothly-input-submit-h:not([fill=clear]):not([fill=outline]):not([disabled])>button.sc-smoothly-input-submit:hover,.sc-smoothly-input-submit-h:not([fill=clear]):not([fill=outline]):not([disabled])>button.sc-smoothly-input-submit:focus-visible,.sc-smoothly-input-submit-h:not([fill=clear]):not([fill=outline]):not([disabled])>button.sc-smoothly-input-submit:active{background:rgb(var(--smoothly-button-hover-background))}.sc-smoothly-input-submit-h>button.sc-smoothly-input-submit,.sc-smoothly-input-submit-h.sc-smoothly-input-submit-s>smoothly-icon,.sc-smoothly-input-submit-h .sc-smoothly-input-submit-s>smoothly-icon{color:rgb(var(--smoothly-button-foreground));stroke:rgb(var(--smoothly-button-foreground));fill:rgb(var(--smoothly-button-foreground))}[hidden].sc-smoothly-input-submit-h{display:none}.sc-smoothly-input-submit-h{display:flex}.sc-smoothly-input-submit-h:not([display]){display:none}.sc-smoothly-input-submit-h.sc-smoothly-input-submit-s>smoothly-button button>*+smoothly-icon,.sc-smoothly-input-submit-h.sc-smoothly-input-submit-s>smoothly-button-confirm button>*+smoothly-icon{display:none}[disabled].sc-smoothly-input-submit-h{cursor:not-allowed}`;const b=o(class o extends t{constructor(o){super();if(o!==false){this.__registerHost()}this.smoothlyInputLoad=s(this,"smoothlyInputLoad");this.delete=false;this.icon="checkmark-outline";this.disabled=false;this.display=false;this.size="icon";this.tooltip=this.delete?"Remove":"Submit"}componentWillLoad(){this.smoothlyInputLoad.emit((o=>{if(e.is(o)&&h.type.is(o)){this.parent=o;o.listen((async o=>{this.display=!o.readonly}));if(typeof this.disabled!=="boolean"){o.listen((async o=>{var t;this.disabled=!this.delete&&(o.readonly||"validator"in o&&o.validator instanceof m&&!((t=o.validator)===null||t===void 0?void 0:t.is(r.convertArrays(o.value)))||!o.isDifferentFromInitial)}))}}}))}clickHandler(){var o;(o=this.parent)===null||o===void 0?void 0:o.submit(this.delete)}render(){var o,t;return i(l,{key:"771dbd864209f2f419212813858c654de9352797",title:this.tooltip},this.delete==true?i("smoothly-button-confirm",{size:this.size,shape:this.shape,expand:this.expand,color:(o=this.color)!==null&&o!==void 0?o:"danger",fill:this.fill,onSmoothlyConfirm:()=>this.clickHandler()},i("slot",null),i("smoothly-icon",{name:"trash-outline",fill:"solid",size:"tiny"})):i("smoothly-button",{disabled:this.disabled,size:this.size,type:"button",shape:this.shape,expand:this.expand,color:(t=this.color)!==null&&t!==void 0?t:"success",fill:this.fill,onClick:()=>this.clickHandler()},i("slot",null),this.icon&&i("smoothly-icon",{name:this.icon,fill:"solid",size:"tiny"})))}static get style(){return y()}},[262,"smoothly-input-submit",{delete:[516],color:[1],icon:[8],expand:[513],fill:[513],disabled:[1540],display:[1540],shape:[513],size:[513],tooltip:[1]}]);function d(){if(typeof customElements==="undefined"){return}const o=["smoothly-input-submit","smoothly-button","smoothly-button-confirm","smoothly-icon"];o.forEach((o=>{switch(o){case"smoothly-input-submit":if(!customElements.get(n(o))){customElements.define(n(o),b)}break;case"smoothly-button":if(!customElements.get(n(o))){u()}break;case"smoothly-button-confirm":if(!customElements.get(n(o))){c()}break;case"smoothly-icon":if(!customElements.get(n(o))){a()}break}}))}d();export{b as S,d};
2
+ //# sourceMappingURL=p-CqyGm3oe.js.map
@@ -1,2 +1,2 @@
1
- import{p as o,H as t,c as s,h as e,d as h,t as c}from"./p-BsZrGTcp.js";import{E as n}from"./p-DFXJvHuL.js";import{I as l}from"./p-BpBeeNcM.js";import{d as i}from"./p-BiQsRsV4.js";const a=()=>`.sc-smoothly-input-checkbox-h{--input-padding-side:.5rem;--input-value-padding-top:1.25rem;--input-value-padding-bottom:.25rem;--input-min-height:3rem;min-height:var(--input-min-height);box-sizing:border-box;border-radius:var(--smoothly-input-border-radius)}[looks="border"].sc-smoothly-input-checkbox-h{border:rgb(var(--smoothly-input-border)) solid 1px}[looks="border"].sc-smoothly-input-checkbox-h:not([readonly]):not([disabled]):focus-within{outline:2px solid rgb(var(--smoothly-input-border-focus))}[looks="border"][readonly].sc-smoothly-input-checkbox-h{border:transparent solid 1px}[looks="line"].sc-smoothly-input-checkbox-h{border-bottom:rgb(var(--smoothly-input-border)) solid 1px;position:relative}[looks="line"][readonly].sc-smoothly-input-checkbox-h{border-bottom:transparent solid 1px}[looks="line"].sc-smoothly-input-checkbox-h:not([readonly]):not([disabled]):focus-within::before{content:"";position:absolute;inset:0;pointer-events:none;border-bottom:2px solid rgb(var(--smoothly-input-border-focus));z-index:10}[looks="grid"].sc-smoothly-input-checkbox-h{flex-grow:1;flex-basis:40%;box-shadow:0px 0px 0px 1px rgb(var(--smoothly-input-border));border:none}[looks="grid"][readonly].sc-smoothly-input-checkbox-h{box-shadow:0px 0px 0px 1px rgba(var(--smoothly-input-border-readonly))}[looks="grid"].sc-smoothly-input-checkbox-h:not([readonly]):not([disabled]):focus-within{position:relative;box-shadow:0px 0px 0px 2px rgb(var(--smoothly-input-border-focus));outline:none;z-index:10}[looks="transparent"].sc-smoothly-input-checkbox-h{border:none}[looks="transparent"][readonly].sc-smoothly-input-checkbox-h,[looks="transparent"].sc-smoothly-input-checkbox-h:not(:focus-within){background-color:transparent}[looks="transparent"][readonly].sc-smoothly-input-checkbox-h>input.sc-smoothly-input-checkbox,[looks="transparent"].sc-smoothly-input-checkbox-h:not(:focus-within)>input.sc-smoothly-input-checkbox{background-color:transparent}[looks="transparent"].sc-smoothly-input-checkbox-h:not([readonly]):focus-within{outline:1px solid rgb(var(--smoothly-input-border))}[disabled].sc-smoothly-input-checkbox-h{cursor:not-allowed;--smoothly-input-foreground:var(--smoothly-input-disabled-foreground);--smoothly-input-background:var(--smoothly-input-disabled-background);--smoothly-input-border:var(--smoothly-input-disabled-border)}.sc-smoothly-input-checkbox-h.sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h .sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h .label.sc-smoothly-input-checkbox{position:absolute;top:.6rem;opacity:0.8;user-select:none;cursor:inherit;transform-origin:top left;transition:transform 100ms ease}.sc-smoothly-input-checkbox-h.floating-label.sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h.floating-label .sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h.has-value.sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h.has-value .sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h[placeholder].sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h[placeholder] .sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h[readonly].sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h[readonly] .sc-smoothly-input-checkbox-s>[slot=label],.floating-label.sc-smoothly-input-checkbox-h .label.sc-smoothly-input-checkbox,.has-value.sc-smoothly-input-checkbox-h .label.sc-smoothly-input-checkbox,.has-text.sc-smoothly-input-checkbox-h .label.sc-smoothly-input-checkbox,[placeholder].sc-smoothly-input-checkbox-h .label.sc-smoothly-input-checkbox,[readonly].sc-smoothly-input-checkbox-h .label.sc-smoothly-input-checkbox,.sc-smoothly-input-checkbox-h:not([readonly]):focus-within .label.float-on-focus.sc-smoothly-input-checkbox{top:.2rem;transform:scale(0.8)}.sc-smoothly-input-checkbox-h:not([show-label]):not(.show-label) .label.sc-smoothly-input-checkbox{display:none}.sc-smoothly-input-checkbox-h smoothly-icon.smoothly-invalid.sc-smoothly-input-checkbox{fill:rgb(var(--smoothly-input-invalid-icon, var(--smoothly-danger-color)))}.sc-smoothly-input-checkbox-h{display:flex;align-items:center;flex-direction:row;position:relative;gap:.5rem;padding-inline:var(--input-padding-side);background-color:rgb(var(--smoothly-input-background));box-sizing:border-box;background-color:rgb(var(--smoothly-input-background));color:rgb(var(--smoothly-input-foreground))}.sc-smoothly-input-checkbox-h:has(>.smoothly-checkbox-end-slot:not(:empty)){padding-right:0}.sc-smoothly-input-checkbox-h>input.sc-smoothly-input-checkbox{-webkit-appearance:none;-moz-appearance:none;appearance:none;height:1.25rem;width:1.25rem;border-radius:0.25rem;border:1px solid rgb(var(--smoothly-input-foreground));color:rgb(var(--smoothly-input-foreground));display:block}[checked][looks=transparent].sc-smoothly-input-checkbox-h>input.sc-smoothly-input-checkbox,[checked].sc-smoothly-input-checkbox-h>input.sc-smoothly-input-checkbox{background-color:rgb(var(--smoothly-input-foreground))}.sc-smoothly-input-checkbox-h:not([readonly]):not([disabled])>input.sc-smoothly-input-checkbox,.sc-smoothly-input-checkbox-h:not([readonly]):not([disabled])>label.sc-smoothly-input-checkbox{cursor:pointer}.sc-smoothly-input-checkbox-h>label.sc-smoothly-input-checkbox:empty{display:none}[disabled].sc-smoothly-input-checkbox-h,[disabled].sc-smoothly-input-checkbox-h>*.sc-smoothly-input-checkbox{cursor:not-allowed}.sc-smoothly-input-checkbox-h>smoothly-icon.sc-smoothly-input-checkbox{position:absolute;z-index:1;pointer-events:none;--smoothly-color-contrast:var(--smoothly-input-background)}[looks="transparent"].sc-smoothly-input-checkbox-h{background-color:transparent}[looks="transparent"].sc-smoothly-input-checkbox-h:not([readonly]):focus-within{outline-color:transparent}.sc-smoothly-input-checkbox-h>.smoothly-checkbox-end-slot.sc-smoothly-input-checkbox{margin-left:auto}.sc-smoothly-input-checkbox-h>.smoothly-checkbox-end-slot.sc-smoothly-input-checkbox:empty{display:none}`;const r=o(class o extends t{constructor(o){super();if(o!==false){this.__registerHost()}this.smoothlyInputLooks=s(this,"smoothlyInputLooks");this.smoothlyInput=s(this,"smoothlyInput");this.smoothlyUserInput=s(this,"smoothlyUserInput");this.smoothlyInputLoad=s(this,"smoothlyInputLoad");this.smoothlyFormDisable=s(this,"smoothlyFormDisable");this.isDifferentFromInitial=false;this.observer=n.Observer.create(this);this.readonly=false;this.checked=false}componentWillLoad(){this.initialValue=this.checked;!this.readonly&&this.smoothlyFormDisable.emit((o=>this.readonly=o));this.smoothlyInputLooks.emit(((o,t)=>{var s;return this.looks=(s=this.looks)!==null&&s!==void 0?s:o,!this.color&&(this.color=t)}));this.smoothlyInputLoad.emit((o=>this.parent=o));this.observer.publish();this.id="id-"+Math.random().toString(36).substring(2,11)}async disconnectedCallback(){if(!this.element.isConnected){await this.unregister()}}async smoothlyInputLoadHandler(o){l.registerSubAction(this,o)}nameChange(o,t){l.formRename(this,t)}async register(){l.formAdd(this)}async unregister(){l.formRemove(this)}async getValue(){return this.value?this.value[`${!!this.checked}`]:this.checked}async clear(){!this.disabled&&!this.readonly&&(this.checked=false)}async listen(o){this.observer.subscribe(o)}async edit(o){this.readonly=!o}async reset(){this.checked=this.initialValue}async setInitialValue(){this.initialValue=this.checked;this.isDifferentFromInitial=false}async handleDisabledChange(){this.observer.publish()}async elementCheck(o,t){this.isDifferentFromInitial=!!this.initialValue!=!!this.checked;const s=!!this.checked!=!!t;if(s){this.smoothlyInput.emit({[this.name]:await this.getValue()});this.observer.publish()}}render(){return e(h,{key:"d3c69edab659c924b8bcdc9bd7f2c8f3bf3b6b6d"},e("input",{key:"a6ce7d4cc668104d71171e717efe6cbf24227d43",type:"checkbox",id:this.id,checked:this.checked,disabled:this.disabled||this.readonly,onChange:async o=>{this.checked=o.target.checked;this.smoothlyUserInput.emit({name:this.name,value:await this.getValue()})}}),this.checked&&e("smoothly-icon",{key:"1469bffde30e54f10340e7a6c4a22dac6d6b3755",name:"checkmark-sharp",size:"tiny"}),e("label",{key:"768ef233b6b58a99328caaeae28a30a3f0ee3c7e",htmlFor:this.id},e("slot",{key:"8d6cd0ff949cd3b444dad658a3ebe4a6c974ca42"})),e("span",{key:"e87b01790eb36fafdb0ef8ad4ef4cfefbc32bbde",class:"smoothly-checkbox-end-slot"},e("slot",{key:"3287f4a21799575093d3116708912944fb475576",name:"end"})))}get element(){return this}static get watchers(){return{name:[{nameChange:0}],disabled:[{handleDisabledChange:0}],readonly:[{handleDisabledChange:0}],checked:[{elementCheck:0}]}}static get style(){return a()}},[262,"smoothly-input-checkbox",{name:[513],readonly:[1540],disabled:[516],checked:[1540],value:[16],looks:[1537],color:[1537],register:[64],unregister:[64],getValue:[64],clear:[64],listen:[64],edit:[64],reset:[64],setInitialValue:[64]},[[0,"smoothlyInputLoad","smoothlyInputLoadHandler"]],{name:[{nameChange:0}],disabled:[{handleDisabledChange:0}],readonly:[{handleDisabledChange:0}],checked:[{elementCheck:0}]}]);function b(){if(typeof customElements==="undefined"){return}const o=["smoothly-input-checkbox","smoothly-icon"];o.forEach((o=>{switch(o){case"smoothly-input-checkbox":if(!customElements.get(c(o))){customElements.define(c(o),r)}break;case"smoothly-icon":if(!customElements.get(c(o))){i()}break}}))}b();export{r as S,b as d};
2
- //# sourceMappingURL=p-Q-gVll-_.js.map
1
+ import{p as o,H as t,c as s,h as e,d as h,t as n}from"./p-BsZrGTcp.js";import{E as c}from"./p-DFXJvHuL.js";import{I as l}from"./p-DIhqNc1G.js";import{d as i}from"./p-BiQsRsV4.js";const a=()=>`.sc-smoothly-input-checkbox-h{--input-padding-side:.5rem;--input-value-padding-top:1.25rem;--input-value-padding-bottom:.25rem;--input-min-height:3rem;min-height:var(--input-min-height);box-sizing:border-box;border-radius:var(--smoothly-input-border-radius)}[looks="border"].sc-smoothly-input-checkbox-h{border:rgb(var(--smoothly-input-border)) solid 1px}[looks="border"].sc-smoothly-input-checkbox-h:not([readonly]):not([disabled]):focus-within{outline:2px solid rgb(var(--smoothly-input-border-focus))}[looks="border"][readonly].sc-smoothly-input-checkbox-h{border:transparent solid 1px}[looks="line"].sc-smoothly-input-checkbox-h{border-bottom:rgb(var(--smoothly-input-border)) solid 1px;position:relative}[looks="line"][readonly].sc-smoothly-input-checkbox-h{border-bottom:transparent solid 1px}[looks="line"].sc-smoothly-input-checkbox-h:not([readonly]):not([disabled]):focus-within::before{content:"";position:absolute;inset:0;pointer-events:none;border-bottom:2px solid rgb(var(--smoothly-input-border-focus));z-index:10}[looks="grid"].sc-smoothly-input-checkbox-h{flex-grow:1;flex-basis:40%;box-shadow:0px 0px 0px 1px rgb(var(--smoothly-input-border));border:none}[looks="grid"][readonly].sc-smoothly-input-checkbox-h{box-shadow:0px 0px 0px 1px rgba(var(--smoothly-input-border-readonly))}[looks="grid"].sc-smoothly-input-checkbox-h:not([readonly]):not([disabled]):focus-within{position:relative;box-shadow:0px 0px 0px 2px rgb(var(--smoothly-input-border-focus));outline:none;z-index:10}[looks="transparent"].sc-smoothly-input-checkbox-h{border:none}[looks="transparent"][readonly].sc-smoothly-input-checkbox-h,[looks="transparent"].sc-smoothly-input-checkbox-h:not(:focus-within){background-color:transparent}[looks="transparent"][readonly].sc-smoothly-input-checkbox-h>input.sc-smoothly-input-checkbox,[looks="transparent"].sc-smoothly-input-checkbox-h:not(:focus-within)>input.sc-smoothly-input-checkbox{background-color:transparent}[looks="transparent"].sc-smoothly-input-checkbox-h:not([readonly]):focus-within{outline:1px solid rgb(var(--smoothly-input-border))}[disabled].sc-smoothly-input-checkbox-h{cursor:not-allowed;--smoothly-input-foreground:var(--smoothly-input-disabled-foreground);--smoothly-input-background:var(--smoothly-input-disabled-background);--smoothly-input-border:var(--smoothly-input-disabled-border)}.sc-smoothly-input-checkbox-h.sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h .sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h .label.sc-smoothly-input-checkbox{position:absolute;top:.6rem;opacity:0.8;user-select:none;cursor:inherit;transform-origin:top left;transition:transform 100ms ease}.sc-smoothly-input-checkbox-h.floating-label.sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h.floating-label .sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h.has-value.sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h.has-value .sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h[placeholder].sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h[placeholder] .sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h[readonly].sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h[readonly] .sc-smoothly-input-checkbox-s>[slot=label],.floating-label.sc-smoothly-input-checkbox-h .label.sc-smoothly-input-checkbox,.has-value.sc-smoothly-input-checkbox-h .label.sc-smoothly-input-checkbox,.has-text.sc-smoothly-input-checkbox-h .label.sc-smoothly-input-checkbox,[placeholder].sc-smoothly-input-checkbox-h .label.sc-smoothly-input-checkbox,[readonly].sc-smoothly-input-checkbox-h .label.sc-smoothly-input-checkbox,.sc-smoothly-input-checkbox-h:not([readonly]):focus-within .label.float-on-focus.sc-smoothly-input-checkbox{top:.2rem;transform:scale(0.8)}.sc-smoothly-input-checkbox-h:not([show-label]):not(.show-label) .label.sc-smoothly-input-checkbox{display:none}.sc-smoothly-input-checkbox-h smoothly-icon.smoothly-invalid.sc-smoothly-input-checkbox{fill:rgb(var(--smoothly-input-invalid-icon, var(--smoothly-danger-color)))}.sc-smoothly-input-checkbox-h{display:flex;align-items:center;flex-direction:row;position:relative;gap:.5rem;padding-inline:var(--input-padding-side);background-color:rgb(var(--smoothly-input-background));box-sizing:border-box;background-color:rgb(var(--smoothly-input-background));color:rgb(var(--smoothly-input-foreground))}.sc-smoothly-input-checkbox-h:has(>.smoothly-checkbox-end-slot:not(:empty)){padding-right:0}.sc-smoothly-input-checkbox-h>input.sc-smoothly-input-checkbox{-webkit-appearance:none;-moz-appearance:none;appearance:none;height:1.25rem;width:1.25rem;border-radius:0.25rem;border:1px solid rgb(var(--smoothly-input-foreground));color:rgb(var(--smoothly-input-foreground));display:block}[checked][looks=transparent].sc-smoothly-input-checkbox-h>input.sc-smoothly-input-checkbox,[checked].sc-smoothly-input-checkbox-h>input.sc-smoothly-input-checkbox{background-color:rgb(var(--smoothly-input-foreground))}.sc-smoothly-input-checkbox-h:not([readonly]):not([disabled])>input.sc-smoothly-input-checkbox,.sc-smoothly-input-checkbox-h:not([readonly]):not([disabled])>label.sc-smoothly-input-checkbox{cursor:pointer}.sc-smoothly-input-checkbox-h>label.sc-smoothly-input-checkbox:empty{display:none}[disabled].sc-smoothly-input-checkbox-h,[disabled].sc-smoothly-input-checkbox-h>*.sc-smoothly-input-checkbox{cursor:not-allowed}.sc-smoothly-input-checkbox-h>smoothly-icon.sc-smoothly-input-checkbox{position:absolute;z-index:1;pointer-events:none;--smoothly-color-contrast:var(--smoothly-input-background)}[looks="transparent"].sc-smoothly-input-checkbox-h{background-color:transparent}[looks="transparent"].sc-smoothly-input-checkbox-h:not([readonly]):focus-within{outline-color:transparent}.sc-smoothly-input-checkbox-h>.smoothly-checkbox-end-slot.sc-smoothly-input-checkbox{margin-left:auto}.sc-smoothly-input-checkbox-h>.smoothly-checkbox-end-slot.sc-smoothly-input-checkbox:empty{display:none}`;const r=o(class o extends t{constructor(o){super();if(o!==false){this.__registerHost()}this.smoothlyInputLooks=s(this,"smoothlyInputLooks");this.smoothlyInput=s(this,"smoothlyInput");this.smoothlyUserInput=s(this,"smoothlyUserInput");this.smoothlyInputLoad=s(this,"smoothlyInputLoad");this.smoothlyFormDisable=s(this,"smoothlyFormDisable");this.isDifferentFromInitial=false;this.observer=c.Observer.create(this);this.readonly=false;this.checked=false}componentWillLoad(){this.initialValue=this.checked;!this.readonly&&this.smoothlyFormDisable.emit((o=>this.readonly=o));this.smoothlyInputLooks.emit(((o,t)=>{var s;return this.looks=(s=this.looks)!==null&&s!==void 0?s:o,!this.color&&(this.color=t)}));this.smoothlyInputLoad.emit((o=>this.parent=o));this.observer.publish();this.id="id-"+Math.random().toString(36).substring(2,11)}async disconnectedCallback(){if(!this.element.isConnected){await this.unregister()}}async smoothlyInputLoadHandler(o){l.registerSubAction(this,o)}nameChange(o,t){l.formRename(this,t)}async register(){l.formAdd(this)}async unregister(){l.formRemove(this)}async getValue(){return this.value?this.value[`${!!this.checked}`]:this.checked}async clear(){!this.disabled&&!this.readonly&&(this.checked=false)}async listen(o){this.observer.subscribe(o)}async edit(o){this.readonly=!o}async reset(){this.checked=this.initialValue}async setInitialValue(){this.initialValue=this.checked;this.isDifferentFromInitial=false}async handleDisabledChange(){this.observer.publish()}async elementCheck(o,t){this.isDifferentFromInitial=!!this.initialValue!=!!this.checked;const s=!!this.checked!=!!t;if(s){this.smoothlyInput.emit({[this.name]:await this.getValue()});this.observer.publish()}}render(){return e(h,{key:"3d423adb72e619d4119435408a6b4ee9adbc2704"},e("input",{key:"489144f56039b3edf5dab1f7ffe9f37e2d0fcadd",type:"checkbox",id:this.id,checked:this.checked,disabled:this.disabled||this.readonly,onChange:async o=>{this.checked=o.target.checked;this.smoothlyUserInput.emit({name:this.name,value:await this.getValue()})}}),this.checked&&e("smoothly-icon",{key:"6f97dca6dbfedce3d06d4146269bb518016476a8",name:"checkmark-sharp",size:"tiny"}),e("label",{key:"63fc6b505b6d21a779e60ae9803b56134fd855e0",htmlFor:this.id},e("slot",{key:"88de07dc316049e436784b8ad1e7a3fe359363ff"})),e("span",{key:"dd9d9e7f30dd37550a089b65c62d26e38471d8bc",class:"smoothly-checkbox-end-slot"},e("slot",{key:"f74c25ab1f6765225044bfc21db40b51e47802aa",name:"end"})))}get element(){return this}static get watchers(){return{name:[{nameChange:0}],disabled:[{handleDisabledChange:0}],readonly:[{handleDisabledChange:0}],checked:[{elementCheck:0}]}}static get style(){return a()}},[262,"smoothly-input-checkbox",{name:[513],readonly:[1540],disabled:[516],checked:[1540],value:[16],looks:[1537],color:[1537],register:[64],unregister:[64],getValue:[64],clear:[64],listen:[64],edit:[64],reset:[64],setInitialValue:[64]},[[0,"smoothlyInputLoad","smoothlyInputLoadHandler"]],{name:[{nameChange:0}],disabled:[{handleDisabledChange:0}],readonly:[{handleDisabledChange:0}],checked:[{elementCheck:0}]}]);function b(){if(typeof customElements==="undefined"){return}const o=["smoothly-input-checkbox","smoothly-icon"];o.forEach((o=>{switch(o){case"smoothly-input-checkbox":if(!customElements.get(n(o))){customElements.define(n(o),r)}break;case"smoothly-icon":if(!customElements.get(n(o))){i()}break}}))}b();export{r as S,b as d};
2
+ //# sourceMappingURL=p-CrKwvG9J.js.map
@@ -1,2 +1,2 @@
1
- import{p as o,H as t,c as s,h as l,d as i,t as r}from"./p-BsZrGTcp.js";import{C as n}from"./p-CkXes5c-.js";import"./p-BVKhAhsB.js";import"./p-DoFURPl2.js";import{E as e}from"./p-DFXJvHuL.js";import{I as h}from"./p-BpBeeNcM.js";import{d as c}from"./p-DM5CKilY.js";import{d as a}from"./p-CR3Ni_o7.js";import{d as u}from"./p-B-l1S16Z.js";import{d}from"./p-Ud7Qhkgt.js";import{d as m}from"./p-C3FORjes.js";import{d as p}from"./p-BiQsRsV4.js";import{d as y}from"./p-7ReeDB-R.js";import{d as b}from"./p-fjRiTKvl.js";import{d as g}from"./p-D4PyTfe4.js";const v=()=>`.sc-smoothly-input-color-h{--input-padding-side:.5rem;--input-value-padding-top:1.25rem;--input-value-padding-bottom:.25rem;--input-min-height:3rem;min-height:var(--input-min-height);box-sizing:border-box;border-radius:var(--smoothly-input-border-radius)}[looks="border"].sc-smoothly-input-color-h{border:rgb(var(--smoothly-input-border)) solid 1px}[looks="border"].sc-smoothly-input-color-h:not([readonly]):not([disabled]):focus-within{outline:2px solid rgb(var(--smoothly-input-border-focus))}[looks="border"][readonly].sc-smoothly-input-color-h{border:transparent solid 1px}[looks="line"].sc-smoothly-input-color-h{border-bottom:rgb(var(--smoothly-input-border)) solid 1px;position:relative}[looks="line"][readonly].sc-smoothly-input-color-h{border-bottom:transparent solid 1px}[looks="line"].sc-smoothly-input-color-h:not([readonly]):not([disabled]):focus-within::before{content:"";position:absolute;inset:0;pointer-events:none;border-bottom:2px solid rgb(var(--smoothly-input-border-focus));z-index:10}[looks="grid"].sc-smoothly-input-color-h{flex-grow:1;flex-basis:40%;box-shadow:0px 0px 0px 1px rgb(var(--smoothly-input-border));border:none}[looks="grid"][readonly].sc-smoothly-input-color-h{box-shadow:0px 0px 0px 1px rgba(var(--smoothly-input-border-readonly))}[looks="grid"].sc-smoothly-input-color-h:not([readonly]):not([disabled]):focus-within{position:relative;box-shadow:0px 0px 0px 2px rgb(var(--smoothly-input-border-focus));outline:none;z-index:10}[looks="transparent"].sc-smoothly-input-color-h{border:none}[looks="transparent"][readonly].sc-smoothly-input-color-h,[looks="transparent"].sc-smoothly-input-color-h:not(:focus-within){background-color:transparent}[looks="transparent"][readonly].sc-smoothly-input-color-h>input.sc-smoothly-input-color,[looks="transparent"].sc-smoothly-input-color-h:not(:focus-within)>input.sc-smoothly-input-color{background-color:transparent}[looks="transparent"].sc-smoothly-input-color-h:not([readonly]):focus-within{outline:1px solid rgb(var(--smoothly-input-border))}[disabled].sc-smoothly-input-color-h{cursor:not-allowed;--smoothly-input-foreground:var(--smoothly-input-disabled-foreground);--smoothly-input-background:var(--smoothly-input-disabled-background);--smoothly-input-border:var(--smoothly-input-disabled-border)}.sc-smoothly-input-color-h.sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h .sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h .label.sc-smoothly-input-color{position:absolute;top:.6rem;opacity:0.8;user-select:none;cursor:inherit;transform-origin:top left;transition:transform 100ms ease}.sc-smoothly-input-color-h.floating-label.sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h.floating-label .sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h.has-value.sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h.has-value .sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h[placeholder].sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h[placeholder] .sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h[readonly].sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h[readonly] .sc-smoothly-input-color-s>[slot=label],.floating-label.sc-smoothly-input-color-h .label.sc-smoothly-input-color,.has-value.sc-smoothly-input-color-h .label.sc-smoothly-input-color,.has-text.sc-smoothly-input-color-h .label.sc-smoothly-input-color,[placeholder].sc-smoothly-input-color-h .label.sc-smoothly-input-color,[readonly].sc-smoothly-input-color-h .label.sc-smoothly-input-color,.sc-smoothly-input-color-h:not([readonly]):focus-within .label.float-on-focus.sc-smoothly-input-color{top:.2rem;transform:scale(0.8)}.sc-smoothly-input-color-h:not([show-label]):not(.show-label) .label.sc-smoothly-input-color{display:none}.sc-smoothly-input-color-h smoothly-icon.smoothly-invalid.sc-smoothly-input-color{fill:rgb(var(--smoothly-input-invalid-icon, var(--smoothly-danger-color)))}.sc-smoothly-input-color-h{display:flex;position:relative;background-color:rgb(var(--smoothly-input-background));align-items:center;justify-content:center}.sc-smoothly-input-color-h>smoothly-input.sc-smoothly-input-color{width:100%;--input-min-height:calc(var(--input-min-height) - 2px);--smoothly-input-border-focus:none}.sc-smoothly-input-color-h div.color-sample.sc-smoothly-input-color{height:2em;width:3em;margin-right:0.5rem;background-color:var(--hexCode);outline:1px solid rgb(var(--smoothly-input-border));border-radius:3px}.sc-smoothly-input-color-h smoothly-icon[name=options-outline].sc-smoothly-input-color{padding-right:var(--input-padding-side)}[readonly].sc-smoothly-input-color-h smoothly-icon[name=options-outline].sc-smoothly-input-color,[disabled].sc-smoothly-input-color-h smoothly-icon[name=options-outline].sc-smoothly-input-color{display:none}.sc-smoothly-input-color-h:not([readonly]):not([disabled]) smoothly-icon[name=options-outline].sc-smoothly-input-color{cursor:pointer}.sc-smoothly-input-color-h>div.rgb-sliders.sc-smoothly-input-color{background-color:rgb(var(--smoothly-input-background));position:absolute;padding:1em 1em 1em 0;top:calc(var(--element-height) + .8em);left:0;box-sizing:border-box;z-index:20;border:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-color-h>div.rgb-sliders.sc-smoothly-input-color::before{content:"";transform:translate(2em, -0.55em) rotate(45deg);width:1em;height:1em;background-color:rgb(var(--smoothly-input-background));border-top:1px solid rgb(var(--smoothly-input-border));border-left:1px solid rgb(var(--smoothly-input-border));position:absolute;z-index:100;top:0em}.sc-smoothly-input-color-h>div.rgb-sliders.sc-smoothly-input-color>smoothly-toggle-switch.sc-smoothly-input-color{margin-left:auto;margin-right:1em;margin-bottom:1em}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color{padding:.5em 0}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color label.sc-smoothly-input-color{width:4em}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=r].sc-smoothly-input-color::-webkit-slider-runnable-track{background:linear-gradient(to left, rgb(255, var(--rgb-g), var(--rgb-b)), rgb(0, var(--rgb-g), var(--rgb-b)))}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=r].sc-smoothly-input-color::-moz-range-track{background:linear-gradient(to left, rgb(255, var(--rgb-g), var(--rgb-b)), rgb(0, var(--rgb-g), var(--rgb-b)))}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=r].sc-smoothly-input-color::-moz-range-thumb{background-color:red}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=r].sc-smoothly-input-color::-webkit-slider-thumb{background-color:red}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=g].sc-smoothly-input-color::-webkit-slider-runnable-track{background:linear-gradient(to left, rgb(var(--rgb-r), 255, var(--rgb-b)), rgb(var(--rgb-r), 0, var(--rgb-b)))}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=g].sc-smoothly-input-color::-moz-range-track{background:linear-gradient(to left, rgb(var(--rgb-r), 255, var(--rgb-b)), rgb(var(--rgb-r), 0, var(--rgb-b)))}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=g].sc-smoothly-input-color::-moz-range-thumb{background-color:green}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=g].sc-smoothly-input-color::-webkit-slider-thumb{background-color:green}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=b].sc-smoothly-input-color::-webkit-slider-runnable-track{background:linear-gradient(to left, rgb(var(--rgb-r), var(--rgb-g), 255), rgb(var(--rgb-r), var(--rgb-g), 0))}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=b].sc-smoothly-input-color::-moz-range-track{background:linear-gradient(to left, rgb(var(--rgb-r), var(--rgb-g), 255), rgb(var(--rgb-r), var(--rgb-g), 0))}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=b].sc-smoothly-input-color::-moz-range-thumb{background-color:blue}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=b].sc-smoothly-input-color::-webkit-slider-thumb{background-color:blue}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=h].sc-smoothly-input-color::-webkit-slider-runnable-track{background:linear-gradient(to right in hsl longer hue, red, red)}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=h].sc-smoothly-input-color::-moz-range-track{background:linear-gradient(to right in hsl longer hue, red, red)}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=h].sc-smoothly-input-color::-webkit-slider-thumb{background-color:hsl(var(--hsl-h), 100%, 50%)}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=h].sc-smoothly-input-color::-moz-range-thumb{background-color:hsl(var(--hsl-h), 100%, 50%)}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=s].sc-smoothly-input-color::-webkit-slider-runnable-track{background:linear-gradient(to right, hsl(var(--hsl-h), 0%, 50%), hsl(var(--hsl-h), 100%, 50%))}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=s].sc-smoothly-input-color::-moz-range-track{background:linear-gradient(to right, hsl(var(--hsl-h), 0%, 50%), hsl(var(--hsl-h), 100%, 50%))}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=s].sc-smoothly-input-color::-moz-range-thumb{background-color:hsl(var(--hsl-h), var(--hsl-s), 50%)}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=s].sc-smoothly-input-color::-webkit-slider-thumb{background-color:hsl(var(--hsl-h), var(--hsl-s), 50%)}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=l].sc-smoothly-input-color::-moz-range-track{background:linear-gradient(to right, black, white)}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=l].sc-smoothly-input-color::-webkit-slider-runnable-track{background:linear-gradient(to right, black, white)}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=l].sc-smoothly-input-color::-moz-range-thumb{background-color:#777}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=l].sc-smoothly-input-color::-webkit-slider-thumb{background-color:#777}`;const f=o(class o extends t{constructor(o){super();if(o!==false){this.__registerHost()}this.smoothlyInputLooks=s(this,"smoothlyInputLooks");this.smoothlyInput=s(this,"smoothlyInput");this.smoothlyUserInput=s(this,"smoothlyUserInput");this.smoothlyInputLoad=s(this,"smoothlyInputLoad");this.smoothlyFormDisable=s(this,"smoothlyFormDisable");this.isDifferentFromInitial=false;this.observer=e.Observer.create(this);this.rgb={r:undefined,g:undefined,b:undefined};this.hsl={h:undefined,s:undefined,l:undefined};this.value=undefined;this.readonly=false;this.output="rgb";this.showLabel=true;this.open=false;this.sliderMode="rgb"}async componentWillLoad(){this.value&&this.setInitialValue();this.value&&(this.rgb=n.Hex.toRGB(this.value));this.smoothlyInputLooks.emit(((o,t)=>{var s;return this.looks=(s=this.looks)!==null&&s!==void 0?s:o,this.color=t}));this.smoothlyInput.emit({[this.name]:await this.getValue()});this.smoothlyInputLoad.emit((o=>this.parent=o));!this.readonly&&this.smoothlyFormDisable.emit((o=>this.readonly=o))}smoothlyInputLooksHandler(o){if(o.target!=this.element){o.stopPropagation()}}smoothlyInputLoadHandler(o){h.registerSubAction(this,o)}onWindowClick(o){!o.composedPath().includes(this.element)&&this.open&&(this.open=!this.open)}async disconnectedCallback(){if(!this.element.isConnected){await this.unregister()}}nameChange(o,t){h.formRename(this,t)}watchingReadonly(){this.observer.publish()}async register(){h.formAdd(this)}async unregister(){h.formRemove(this)}async getValue(){return this.output==="rgb"?{r:this.rgb.r===undefined?undefined:Math.round(this.rgb.r),g:this.rgb.g===undefined?undefined:Math.round(this.rgb.g),b:this.rgb.b===undefined?undefined:Math.round(this.rgb.b)}:this.value?this.value:undefined}async clear(){this.rgb={r:undefined,g:undefined,b:undefined};this.hsl={h:undefined,s:undefined,l:undefined};this.value=undefined}async listen(o){this.observer.subscribe(o)}async edit(o){this.readonly=!o;this.open=false}async reset(){this.value=this.initialValue;this.open=false}async setInitialValue(){this.initialValue=this.value;this.open=false}async valueChanged(){this.isDifferentFromInitial=this.initialValue!==this.value;this.smoothlyInput.emit({[this.name]:await this.getValue()});this.observer.publish()}handleSwitchMode(o){o.stopPropagation();this.sliderMode=o.detail?"hsl":"rgb";if(this.sliderMode==="rgb"){this.value&&(this.rgb=n.Hex.toRGB(this.value))}else{this.value&&(this.hsl=n.RGB.toHSL(n.Hex.toRGB(this.value)))}}async hexInputHandler(o){if(o!==this.value){if(o&&n.Hex.type.is(o)){if(this.sliderMode==="hsl"||this.rgb.r===undefined){this.rgb=n.Hex.toRGB(o)}if(this.sliderMode==="rgb"||this.hsl.h===undefined){this.hsl=n.RGB.toHSL(n.Hex.toRGB(o))}}else if(!o||!n.Hex.type.is(o)){this.rgb={r:undefined,g:undefined,b:undefined};this.hsl={h:undefined,s:undefined,l:undefined}}this.value=o;this.smoothlyUserInput.emit({name:this.name,value:await this.getValue()})}}sliderInputHandler(o){var t;o.stopPropagation();const s=Object.keys(o.detail)[0];let l=this.sliderMode==="rgb"?this.rgb:this.hsl;if(!(o.detail[s]===undefined)){for(const i of Object.keys(l)){if(i===s){l=Object.assign(Object.assign({},l),{[i]:i==="s"||i==="l"?+((t=o.detail[s])!==null&&t!==void 0?t:0)*100:o.detail[s]})}else if(l[i]===undefined){l=Object.assign(Object.assign({},l),{[i]:0})}}if(this.sliderMode==="rgb"){this.rgb=Object.assign({},l);this.hsl=n.RGB.toHSL(this.rgb);this.hexInputHandler(n.RGB.toHex(this.rgb))}else{this.hsl=Object.assign({},l);this.rgb=n.HSL.toRGB(this.hsl);this.hexInputHandler(n.RGB.toHex(n.HSL.toRGB(this.hsl)))}}}openDropdown(){this.open=!this.open}render(){var o,t,s,r,n,e;return l(i,{key:"c7ba977a7c84843fddd8c73600a8df00972e8917",style:{"--hexCode":this.value,"--rgb-r":`${Math.round((o=this.rgb.r)!==null&&o!==void 0?o:0)}`,"--rgb-g":`${Math.round((t=this.rgb.g)!==null&&t!==void 0?t:0)}`,"--rgb-b":`${Math.round((s=this.rgb.b)!==null&&s!==void 0?s:0)}`,"--hsl-h":`${Math.round((r=this.hsl.h)!==null&&r!==void 0?r:0)}`,"--hsl-s":`${Math.round((n=this.hsl.s)!==null&&n!==void 0?n:0)}%`,"--hsl-l":`${Math.round((e=this.hsl.l)!==null&&e!==void 0?e:0)}%`,"--element-height":`${this.element.clientHeight}px`}},l("smoothly-input",{key:"8d0493b28e48893024490160374153ad3e499ea4",value:this.value,color:this.color,looks:undefined,name:this.name,type:"hex-color",readonly:this.readonly,disabled:this.disabled,showLabel:this.showLabel,onSmoothlyInput:o=>(o===null||o===void 0?void 0:o.stopPropagation(),this.hexInputHandler(o.detail[this.name]))},l("slot",{key:"539224411d36af207f33f96d7da2b504f9eeaac4"})),l("div",{key:"1b84a1ff22dee501938548d73add98faffc4937f",class:"color-sample"}),l("smoothly-icon",{key:"cf4b1cce4a53443502a469a7804140855138a619",color:this.color,name:"options-outline",size:"small",onClick:()=>!this.readonly&&!this.disabled&&this.openDropdown()}),l("div",{key:"07c94343fd9ec8b583cf394e970b9b3ada13ee52"},l("slot",{key:"b9de4cc751ac02caf0c3a69f1f19453ed6ec0fac",name:"end"})),this.open&&!this.readonly&&!this.disabled&&l("div",{key:"805a0527d0fced3f71a7f132839122546760a889",class:"rgb-sliders"},l("smoothly-toggle-switch",{key:"5422c50441feafc90c407eed1773e96c6774c0eb",title:`${this.sliderMode==="rgb"?"To HSL":"To RGB"}`,onSmoothlyToggleSwitchChange:o=>this.handleSwitchMode(o),size:"tiny",checkmark:false,selected:this.sliderMode==="hsl"}),Object.entries(this.rgb).map((([o,t])=>l("smoothly-input-range",{style:this.sliderMode!="rgb"?{display:"none"}:{},name:o,min:0,max:255,color:undefined,type:"text",value:t,step:1,outputSide:"right",onSmoothlyInput:o=>this.sliderInputHandler(o),onSmoothlyUserInput:o=>o.stopPropagation(),label:o.toUpperCase()}))),Object.entries(this.hsl).map((([o,t])=>l("smoothly-input-range",{style:this.sliderMode!="hsl"?{display:"none"}:{},name:o,min:0,max:o==="h"?359:1,color:undefined,type:o==="s"||o==="l"?"percent":"text",value:(o==="s"||o==="l")&&t?t/100:t,step:o==="s"||o==="l"?.01:1,outputSide:"right",onSmoothlyInput:o=>this.sliderInputHandler(o),onSmoothlyUserInput:o=>o.stopPropagation(),label:o.toUpperCase()})))))}get element(){return this}static get watchers(){return{name:[{nameChange:0}],disabled:[{watchingReadonly:0}],readonly:[{watchingReadonly:0}],value:[{valueChanged:0}]}}static get style(){return v()}},[262,"smoothly-input-color",{value:[1025],looks:[1537],color:[1537],readonly:[1540],disabled:[516],output:[1],name:[513],showLabel:[516,"show-label"],open:[32],sliderMode:[32],register:[64],unregister:[64],getValue:[64],clear:[64],listen:[64],edit:[64],reset:[64],setInitialValue:[64]},[[0,"smoothlyInputLooks","smoothlyInputLooksHandler"],[0,"smoothlyInputLoad","smoothlyInputLoadHandler"],[8,"click","onWindowClick"]],{name:[{nameChange:0}],disabled:[{watchingReadonly:0}],readonly:[{watchingReadonly:0}],value:[{valueChanged:0}]}]);function k(){if(typeof customElements==="undefined"){return}const o=["smoothly-input-color","smoothly-display","smoothly-display-json","smoothly-display-json-object","smoothly-display-json-primitive","smoothly-display-json-record-key","smoothly-icon","smoothly-input","smoothly-input-range","smoothly-toggle-switch"];o.forEach((o=>{switch(o){case"smoothly-input-color":if(!customElements.get(r(o))){customElements.define(r(o),f)}break;case"smoothly-display":if(!customElements.get(r(o))){c()}break;case"smoothly-display-json":if(!customElements.get(r(o))){a()}break;case"smoothly-display-json-object":if(!customElements.get(r(o))){u()}break;case"smoothly-display-json-primitive":if(!customElements.get(r(o))){d()}break;case"smoothly-display-json-record-key":if(!customElements.get(r(o))){m()}break;case"smoothly-icon":if(!customElements.get(r(o))){p()}break;case"smoothly-input":if(!customElements.get(r(o))){y()}break;case"smoothly-input-range":if(!customElements.get(r(o))){b()}break;case"smoothly-toggle-switch":if(!customElements.get(r(o))){g()}break}}))}k();export{f as S,k as d};
2
- //# sourceMappingURL=p-BMHv8WTp.js.map
1
+ import{p as o,H as t,c as s,h as l,d as i,t as r}from"./p-BsZrGTcp.js";import{C as n}from"./p-CkXes5c-.js";import"./p-BVKhAhsB.js";import"./p-DoFURPl2.js";import{E as e}from"./p-DFXJvHuL.js";import{I as h}from"./p-DIhqNc1G.js";import{d as c}from"./p-DM5CKilY.js";import{d as a}from"./p-CR3Ni_o7.js";import{d as u}from"./p-B-l1S16Z.js";import{d}from"./p-Ud7Qhkgt.js";import{d as m}from"./p-C3FORjes.js";import{d as p}from"./p-BiQsRsV4.js";import{d as y}from"./p-Ww5QjB3D.js";import{d as b}from"./p-CTdXhHGF.js";import{d as g}from"./p-dBpTpVs8.js";const v=()=>`.sc-smoothly-input-color-h{--input-padding-side:.5rem;--input-value-padding-top:1.25rem;--input-value-padding-bottom:.25rem;--input-min-height:3rem;min-height:var(--input-min-height);box-sizing:border-box;border-radius:var(--smoothly-input-border-radius)}[looks="border"].sc-smoothly-input-color-h{border:rgb(var(--smoothly-input-border)) solid 1px}[looks="border"].sc-smoothly-input-color-h:not([readonly]):not([disabled]):focus-within{outline:2px solid rgb(var(--smoothly-input-border-focus))}[looks="border"][readonly].sc-smoothly-input-color-h{border:transparent solid 1px}[looks="line"].sc-smoothly-input-color-h{border-bottom:rgb(var(--smoothly-input-border)) solid 1px;position:relative}[looks="line"][readonly].sc-smoothly-input-color-h{border-bottom:transparent solid 1px}[looks="line"].sc-smoothly-input-color-h:not([readonly]):not([disabled]):focus-within::before{content:"";position:absolute;inset:0;pointer-events:none;border-bottom:2px solid rgb(var(--smoothly-input-border-focus));z-index:10}[looks="grid"].sc-smoothly-input-color-h{flex-grow:1;flex-basis:40%;box-shadow:0px 0px 0px 1px rgb(var(--smoothly-input-border));border:none}[looks="grid"][readonly].sc-smoothly-input-color-h{box-shadow:0px 0px 0px 1px rgba(var(--smoothly-input-border-readonly))}[looks="grid"].sc-smoothly-input-color-h:not([readonly]):not([disabled]):focus-within{position:relative;box-shadow:0px 0px 0px 2px rgb(var(--smoothly-input-border-focus));outline:none;z-index:10}[looks="transparent"].sc-smoothly-input-color-h{border:none}[looks="transparent"][readonly].sc-smoothly-input-color-h,[looks="transparent"].sc-smoothly-input-color-h:not(:focus-within){background-color:transparent}[looks="transparent"][readonly].sc-smoothly-input-color-h>input.sc-smoothly-input-color,[looks="transparent"].sc-smoothly-input-color-h:not(:focus-within)>input.sc-smoothly-input-color{background-color:transparent}[looks="transparent"].sc-smoothly-input-color-h:not([readonly]):focus-within{outline:1px solid rgb(var(--smoothly-input-border))}[disabled].sc-smoothly-input-color-h{cursor:not-allowed;--smoothly-input-foreground:var(--smoothly-input-disabled-foreground);--smoothly-input-background:var(--smoothly-input-disabled-background);--smoothly-input-border:var(--smoothly-input-disabled-border)}.sc-smoothly-input-color-h.sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h .sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h .label.sc-smoothly-input-color{position:absolute;top:.6rem;opacity:0.8;user-select:none;cursor:inherit;transform-origin:top left;transition:transform 100ms ease}.sc-smoothly-input-color-h.floating-label.sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h.floating-label .sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h.has-value.sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h.has-value .sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h[placeholder].sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h[placeholder] .sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h[readonly].sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h[readonly] .sc-smoothly-input-color-s>[slot=label],.floating-label.sc-smoothly-input-color-h .label.sc-smoothly-input-color,.has-value.sc-smoothly-input-color-h .label.sc-smoothly-input-color,.has-text.sc-smoothly-input-color-h .label.sc-smoothly-input-color,[placeholder].sc-smoothly-input-color-h .label.sc-smoothly-input-color,[readonly].sc-smoothly-input-color-h .label.sc-smoothly-input-color,.sc-smoothly-input-color-h:not([readonly]):focus-within .label.float-on-focus.sc-smoothly-input-color{top:.2rem;transform:scale(0.8)}.sc-smoothly-input-color-h:not([show-label]):not(.show-label) .label.sc-smoothly-input-color{display:none}.sc-smoothly-input-color-h smoothly-icon.smoothly-invalid.sc-smoothly-input-color{fill:rgb(var(--smoothly-input-invalid-icon, var(--smoothly-danger-color)))}.sc-smoothly-input-color-h{display:flex;position:relative;background-color:rgb(var(--smoothly-input-background));align-items:center;justify-content:center}.sc-smoothly-input-color-h>smoothly-input.sc-smoothly-input-color{width:100%;--input-min-height:calc(var(--input-min-height) - 2px);--smoothly-input-border-focus:none}.sc-smoothly-input-color-h div.color-sample.sc-smoothly-input-color{height:2em;width:3em;margin-right:0.5rem;background-color:var(--hexCode);outline:1px solid rgb(var(--smoothly-input-border));border-radius:3px}.sc-smoothly-input-color-h smoothly-icon[name=options-outline].sc-smoothly-input-color{padding-right:var(--input-padding-side)}[readonly].sc-smoothly-input-color-h smoothly-icon[name=options-outline].sc-smoothly-input-color,[disabled].sc-smoothly-input-color-h smoothly-icon[name=options-outline].sc-smoothly-input-color{display:none}.sc-smoothly-input-color-h:not([readonly]):not([disabled]) smoothly-icon[name=options-outline].sc-smoothly-input-color{cursor:pointer}.sc-smoothly-input-color-h>div.rgb-sliders.sc-smoothly-input-color{background-color:rgb(var(--smoothly-input-background));position:absolute;padding:1em 1em 1em 0;top:calc(var(--element-height) + .8em);left:0;box-sizing:border-box;z-index:20;border:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-color-h>div.rgb-sliders.sc-smoothly-input-color::before{content:"";transform:translate(2em, -0.55em) rotate(45deg);width:1em;height:1em;background-color:rgb(var(--smoothly-input-background));border-top:1px solid rgb(var(--smoothly-input-border));border-left:1px solid rgb(var(--smoothly-input-border));position:absolute;z-index:100;top:0em}.sc-smoothly-input-color-h>div.rgb-sliders.sc-smoothly-input-color>smoothly-toggle-switch.sc-smoothly-input-color{margin-left:auto;margin-right:1em;margin-bottom:1em}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color{padding:.5em 0}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color label.sc-smoothly-input-color{width:4em}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=r].sc-smoothly-input-color::-webkit-slider-runnable-track{background:linear-gradient(to left, rgb(255, var(--rgb-g), var(--rgb-b)), rgb(0, var(--rgb-g), var(--rgb-b)))}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=r].sc-smoothly-input-color::-moz-range-track{background:linear-gradient(to left, rgb(255, var(--rgb-g), var(--rgb-b)), rgb(0, var(--rgb-g), var(--rgb-b)))}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=r].sc-smoothly-input-color::-moz-range-thumb{background-color:red}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=r].sc-smoothly-input-color::-webkit-slider-thumb{background-color:red}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=g].sc-smoothly-input-color::-webkit-slider-runnable-track{background:linear-gradient(to left, rgb(var(--rgb-r), 255, var(--rgb-b)), rgb(var(--rgb-r), 0, var(--rgb-b)))}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=g].sc-smoothly-input-color::-moz-range-track{background:linear-gradient(to left, rgb(var(--rgb-r), 255, var(--rgb-b)), rgb(var(--rgb-r), 0, var(--rgb-b)))}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=g].sc-smoothly-input-color::-moz-range-thumb{background-color:green}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=g].sc-smoothly-input-color::-webkit-slider-thumb{background-color:green}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=b].sc-smoothly-input-color::-webkit-slider-runnable-track{background:linear-gradient(to left, rgb(var(--rgb-r), var(--rgb-g), 255), rgb(var(--rgb-r), var(--rgb-g), 0))}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=b].sc-smoothly-input-color::-moz-range-track{background:linear-gradient(to left, rgb(var(--rgb-r), var(--rgb-g), 255), rgb(var(--rgb-r), var(--rgb-g), 0))}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=b].sc-smoothly-input-color::-moz-range-thumb{background-color:blue}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=b].sc-smoothly-input-color::-webkit-slider-thumb{background-color:blue}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=h].sc-smoothly-input-color::-webkit-slider-runnable-track{background:linear-gradient(to right in hsl longer hue, red, red)}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=h].sc-smoothly-input-color::-moz-range-track{background:linear-gradient(to right in hsl longer hue, red, red)}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=h].sc-smoothly-input-color::-webkit-slider-thumb{background-color:hsl(var(--hsl-h), 100%, 50%)}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=h].sc-smoothly-input-color::-moz-range-thumb{background-color:hsl(var(--hsl-h), 100%, 50%)}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=s].sc-smoothly-input-color::-webkit-slider-runnable-track{background:linear-gradient(to right, hsl(var(--hsl-h), 0%, 50%), hsl(var(--hsl-h), 100%, 50%))}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=s].sc-smoothly-input-color::-moz-range-track{background:linear-gradient(to right, hsl(var(--hsl-h), 0%, 50%), hsl(var(--hsl-h), 100%, 50%))}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=s].sc-smoothly-input-color::-moz-range-thumb{background-color:hsl(var(--hsl-h), var(--hsl-s), 50%)}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=s].sc-smoothly-input-color::-webkit-slider-thumb{background-color:hsl(var(--hsl-h), var(--hsl-s), 50%)}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=l].sc-smoothly-input-color::-moz-range-track{background:linear-gradient(to right, black, white)}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=l].sc-smoothly-input-color::-webkit-slider-runnable-track{background:linear-gradient(to right, black, white)}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=l].sc-smoothly-input-color::-moz-range-thumb{background-color:#777}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=l].sc-smoothly-input-color::-webkit-slider-thumb{background-color:#777}`;const f=o(class o extends t{constructor(o){super();if(o!==false){this.__registerHost()}this.smoothlyInputLooks=s(this,"smoothlyInputLooks");this.smoothlyInput=s(this,"smoothlyInput");this.smoothlyUserInput=s(this,"smoothlyUserInput");this.smoothlyInputLoad=s(this,"smoothlyInputLoad");this.smoothlyFormDisable=s(this,"smoothlyFormDisable");this.isDifferentFromInitial=false;this.observer=e.Observer.create(this);this.rgb={r:undefined,g:undefined,b:undefined};this.hsl={h:undefined,s:undefined,l:undefined};this.value=undefined;this.readonly=false;this.output="rgb";this.showLabel=true;this.open=false;this.sliderMode="rgb"}async componentWillLoad(){this.value&&this.setInitialValue();this.value&&(this.rgb=n.Hex.toRGB(this.value));this.smoothlyInputLooks.emit(((o,t)=>{var s;return this.looks=(s=this.looks)!==null&&s!==void 0?s:o,this.color=t}));this.smoothlyInput.emit({[this.name]:await this.getValue()});this.smoothlyInputLoad.emit((o=>this.parent=o));!this.readonly&&this.smoothlyFormDisable.emit((o=>this.readonly=o))}smoothlyInputLooksHandler(o){if(o.target!=this.element){o.stopPropagation()}}smoothlyInputLoadHandler(o){h.registerSubAction(this,o)}onWindowClick(o){!o.composedPath().includes(this.element)&&this.open&&(this.open=!this.open)}async disconnectedCallback(){if(!this.element.isConnected){await this.unregister()}}nameChange(o,t){h.formRename(this,t)}watchingReadonly(){this.observer.publish()}async register(){h.formAdd(this)}async unregister(){h.formRemove(this)}async getValue(){return this.output==="rgb"?{r:this.rgb.r===undefined?undefined:Math.round(this.rgb.r),g:this.rgb.g===undefined?undefined:Math.round(this.rgb.g),b:this.rgb.b===undefined?undefined:Math.round(this.rgb.b)}:this.value?this.value:undefined}async clear(){this.rgb={r:undefined,g:undefined,b:undefined};this.hsl={h:undefined,s:undefined,l:undefined};this.value=undefined}async listen(o){this.observer.subscribe(o)}async edit(o){this.readonly=!o;this.open=false}async reset(){this.value=this.initialValue;this.open=false}async setInitialValue(){this.initialValue=this.value;this.open=false}async valueChanged(){this.isDifferentFromInitial=this.initialValue!==this.value;this.smoothlyInput.emit({[this.name]:await this.getValue()});this.observer.publish()}handleSwitchMode(o){o.stopPropagation();this.sliderMode=o.detail?"hsl":"rgb";if(this.sliderMode==="rgb"){this.value&&(this.rgb=n.Hex.toRGB(this.value))}else{this.value&&(this.hsl=n.RGB.toHSL(n.Hex.toRGB(this.value)))}}async hexInputHandler(o){if(o!==this.value){if(o&&n.Hex.type.is(o)){if(this.sliderMode==="hsl"||this.rgb.r===undefined){this.rgb=n.Hex.toRGB(o)}if(this.sliderMode==="rgb"||this.hsl.h===undefined){this.hsl=n.RGB.toHSL(n.Hex.toRGB(o))}}else if(!o||!n.Hex.type.is(o)){this.rgb={r:undefined,g:undefined,b:undefined};this.hsl={h:undefined,s:undefined,l:undefined}}this.value=o;this.smoothlyUserInput.emit({name:this.name,value:await this.getValue()})}}sliderInputHandler(o){var t;o.stopPropagation();const s=Object.keys(o.detail)[0];let l=this.sliderMode==="rgb"?this.rgb:this.hsl;if(!(o.detail[s]===undefined)){for(const i of Object.keys(l)){if(i===s){l=Object.assign(Object.assign({},l),{[i]:i==="s"||i==="l"?+((t=o.detail[s])!==null&&t!==void 0?t:0)*100:o.detail[s]})}else if(l[i]===undefined){l=Object.assign(Object.assign({},l),{[i]:0})}}if(this.sliderMode==="rgb"){this.rgb=Object.assign({},l);this.hsl=n.RGB.toHSL(this.rgb);this.hexInputHandler(n.RGB.toHex(this.rgb))}else{this.hsl=Object.assign({},l);this.rgb=n.HSL.toRGB(this.hsl);this.hexInputHandler(n.RGB.toHex(n.HSL.toRGB(this.hsl)))}}}openDropdown(){this.open=!this.open}render(){var o,t,s,r,n,e;return l(i,{key:"443b5ede9cb6485ed194f6c4bcd0dfa4d24fbf5f",style:{"--hexCode":this.value,"--rgb-r":`${Math.round((o=this.rgb.r)!==null&&o!==void 0?o:0)}`,"--rgb-g":`${Math.round((t=this.rgb.g)!==null&&t!==void 0?t:0)}`,"--rgb-b":`${Math.round((s=this.rgb.b)!==null&&s!==void 0?s:0)}`,"--hsl-h":`${Math.round((r=this.hsl.h)!==null&&r!==void 0?r:0)}`,"--hsl-s":`${Math.round((n=this.hsl.s)!==null&&n!==void 0?n:0)}%`,"--hsl-l":`${Math.round((e=this.hsl.l)!==null&&e!==void 0?e:0)}%`,"--element-height":`${this.element.clientHeight}px`}},l("smoothly-input",{key:"773d645e7cbe1dba29ed0faaf411873eff3850e4",value:this.value,color:this.color,looks:undefined,name:this.name,type:"hex-color",readonly:this.readonly,disabled:this.disabled,showLabel:this.showLabel,onSmoothlyInput:o=>(o===null||o===void 0?void 0:o.stopPropagation(),this.hexInputHandler(o.detail[this.name]))},l("slot",{key:"e0237c1fd28820b5827660cc3f343a0b0daad919"})),l("div",{key:"d4be603547b585719296c5fe4a129cffd7e5e904",class:"color-sample"}),l("smoothly-icon",{key:"17a5e51dba9a921faa53a42a2bd0b94cbdb8f490",color:this.color,name:"options-outline",size:"small",onClick:()=>!this.readonly&&!this.disabled&&this.openDropdown()}),l("div",{key:"30eaa873254116bfb5930a1da0f93924682d5810"},l("slot",{key:"65f98a331cb2b8cabbe58715c2cc496950e5a92c",name:"end"})),this.open&&!this.readonly&&!this.disabled&&l("div",{key:"972192b5efddbb9a173e2b50b35cfeebefb3a1f4",class:"rgb-sliders"},l("smoothly-toggle-switch",{key:"9ec21361f064f9fc889aa1c1b50f672982882cb3",title:`${this.sliderMode==="rgb"?"To HSL":"To RGB"}`,onSmoothlyToggleSwitchChange:o=>this.handleSwitchMode(o),size:"tiny",checkmark:false,selected:this.sliderMode==="hsl"}),Object.entries(this.rgb).map((([o,t])=>l("smoothly-input-range",{style:this.sliderMode!="rgb"?{display:"none"}:{},name:o,min:0,max:255,color:undefined,type:"text",value:t,step:1,outputSide:"right",onSmoothlyInput:o=>this.sliderInputHandler(o),onSmoothlyUserInput:o=>o.stopPropagation(),label:o.toUpperCase()}))),Object.entries(this.hsl).map((([o,t])=>l("smoothly-input-range",{style:this.sliderMode!="hsl"?{display:"none"}:{},name:o,min:0,max:o==="h"?359:1,color:undefined,type:o==="s"||o==="l"?"percent":"text",value:(o==="s"||o==="l")&&t?t/100:t,step:o==="s"||o==="l"?.01:1,outputSide:"right",onSmoothlyInput:o=>this.sliderInputHandler(o),onSmoothlyUserInput:o=>o.stopPropagation(),label:o.toUpperCase()})))))}get element(){return this}static get watchers(){return{name:[{nameChange:0}],disabled:[{watchingReadonly:0}],readonly:[{watchingReadonly:0}],value:[{valueChanged:0}]}}static get style(){return v()}},[262,"smoothly-input-color",{value:[1025],looks:[1537],color:[1537],readonly:[1540],disabled:[516],output:[1],name:[513],showLabel:[516,"show-label"],open:[32],sliderMode:[32],register:[64],unregister:[64],getValue:[64],clear:[64],listen:[64],edit:[64],reset:[64],setInitialValue:[64]},[[0,"smoothlyInputLooks","smoothlyInputLooksHandler"],[0,"smoothlyInputLoad","smoothlyInputLoadHandler"],[8,"click","onWindowClick"]],{name:[{nameChange:0}],disabled:[{watchingReadonly:0}],readonly:[{watchingReadonly:0}],value:[{valueChanged:0}]}]);function k(){if(typeof customElements==="undefined"){return}const o=["smoothly-input-color","smoothly-display","smoothly-display-json","smoothly-display-json-object","smoothly-display-json-primitive","smoothly-display-json-record-key","smoothly-icon","smoothly-input","smoothly-input-range","smoothly-toggle-switch"];o.forEach((o=>{switch(o){case"smoothly-input-color":if(!customElements.get(r(o))){customElements.define(r(o),f)}break;case"smoothly-display":if(!customElements.get(r(o))){c()}break;case"smoothly-display-json":if(!customElements.get(r(o))){a()}break;case"smoothly-display-json-object":if(!customElements.get(r(o))){u()}break;case"smoothly-display-json-primitive":if(!customElements.get(r(o))){d()}break;case"smoothly-display-json-record-key":if(!customElements.get(r(o))){m()}break;case"smoothly-icon":if(!customElements.get(r(o))){p()}break;case"smoothly-input":if(!customElements.get(r(o))){y()}break;case"smoothly-input-range":if(!customElements.get(r(o))){b()}break;case"smoothly-toggle-switch":if(!customElements.get(r(o))){g()}break}}))}k();export{f as S,k as d};
2
+ //# sourceMappingURL=p-CrkBYYf-.js.map
@@ -1,2 +1,2 @@
1
- import{p as t,H as s,c as o,h as e,d as i,t as n}from"./p-BsZrGTcp.js";import{i as l}from"./p-BVKhAhsB.js";import{E as h}from"./p-DFXJvHuL.js";import{I as a}from"./p-BpBeeNcM.js";import{d as r}from"./p-BiQsRsV4.js";import{d as c}from"./p-OfpR2_fh.js";import{d as m}from"./p-DKir2dIt.js";function u(t){const s=new Date(t);s.setDate(1);let o=-((s.getDay()+6)%7)+1;const e=[];for(let s=0;s<6;s++){const i=[];for(let s=0;s<7;s++){const s=new Date(t);s.setUTCDate(o++);i.push(l.Date.create(s))}if(s<5||l.Date.firstOfMonth(i[0])==l.Date.firstOfMonth(t)){e.push(i)}}return e}function d(){const t=new globalThis.Date;t.setDate(t.getDate()-t.getDay()+1);const s=[];for(let o=0;o<7;o++){s.push(t.toLocaleString(undefined,{weekday:"short"}));t.setDate(t.getDate()+1)}return s}function f(t){const s=new globalThis.Date(t);const o=[];for(let e=0;e<12;e++){s.setMonth(e,28);const i=l.Date.create(s);o.push({date:i,name:s.toLocaleString(undefined,{month:"long"}),selected:i.substr(0,7)==t.substr(0,7)})}return o}function y(t,s,o){const e=new globalThis.Date(t);const i=s?l.Date.getYear(s):(new Date).getFullYear()-50;const n=o?l.Date.getYear(o):(new Date).getFullYear()+50;const h=[];for(let s=i;s<=n;s++){e.setFullYear(s);const o=l.Date.create(e);h.push({date:o,name:e.toLocaleString(undefined,{year:"numeric"}),selected:o==t})}return h}const p=()=>`.sc-smoothly-input-month-h{display:flex;flex-direction:row;justify-content:space-between;background-color:rgb(var(--smoothly-input-background))}.sc-smoothly-input-month-h:not([in-calendar])>smoothly-input-select.sc-smoothly-input-month{display:flex;flex:1}[looks=line].sc-smoothly-input-month-h,[looks=border].sc-smoothly-input-month-h,[looks=transparent].sc-smoothly-input-month-h{gap:2em}.sc-smoothly-input-month-h:not([previous])>smoothly-icon.sc-smoothly-input-month:first-of-type,.sc-smoothly-input-month-h:not([next])>smoothly-icon.sc-smoothly-input-month:last-of-type{display:none}.sc-smoothly-input-month-h>smoothly-icon.sc-smoothly-input-month{display:flex;align-self:center;cursor:pointer}.sc-smoothly-input-month-h>smoothly-icon.disabled.sc-smoothly-input-month{opacity:0.5;cursor:not-allowed}`;const v=t(class t extends s{constructor(t){super();if(t!==false){this.__registerHost()}this.smoothlyInput=o(this,"smoothlyInput");this.smoothlyUserInput=o(this,"smoothlyUserInput");this.smoothlyInputLoad=o(this,"smoothlyInputLoad");this.smoothlyFormDisable=o(this,"smoothlyFormDisable");this.smoothlyInputLooks=o(this,"smoothlyInputLooks");this.value=l.Date.now();this.next=false;this.previous=false;this.inCalendar=false;this.showLabel=true;this.allowPreviousMonth=true;this.allowNextMonth=true;this.observer=h.Observer.create(this)}componentWillLoad(){this.smoothlyInputLooks.emit((t=>{var s;return this.looks=(s=this.looks)!==null&&s!==void 0?s:t}));this.smoothlyInputLoad.emit((t=>this.parent=t));!this.readonly&&this.smoothlyFormDisable.emit((t=>this.readonly=t));this.valueChanged()}valueChanged(){this.smoothlyInput.emit({[this.name]:this.value})}adjustMonth(t){var s;if(!this.readonly){const o=l.Date.parse((s=this.value)!==null&&s!==void 0?s:l.Date.now());o.setMonth(o.getMonth()+t);this.value=l.Date.create(o)}}async disconnectedCallback(){if(!this.element.isConnected){await this.unregister()}}setAllowPreviousMonth(){var t,s;const o=l.Date.previousMonth((t=this.value)!==null&&t!==void 0?t:l.Date.now()).substring(0,7);const e=(s=this.min)===null||s===void 0?void 0:s.substring(0,7);this.allowPreviousMonth=!e||o>=e}setAllowNextMonth(){var t,s;const o=l.Date.nextMonth((t=this.value)!==null&&t!==void 0?t:l.Date.now()).substring(0,7);const e=(s=this.max)===null||s===void 0?void 0:s.substring(0,7);this.allowNextMonth=!e||o<=e}nameChange(t,s){a.formRename(this,s)}async register(){a.formAdd(this)}async unregister(){a.formRemove(this)}async getValue(){return this.value}async clear(){var t,s;(t=this.year)===null||t===void 0?void 0:t.clear();(s=this.month)===null||s===void 0?void 0:s.clear()}async listen(t){this.observer.subscribe(t)}async edit(t){this.readonly=!t}async reset(){var t,s;(t=this.year)===null||t===void 0?void 0:t.reset();(s=this.month)===null||s===void 0?void 0:s.reset()}async setInitialValue(){var t,s;(t=this.year)===null||t===void 0?void 0:t.setInitialValue();(s=this.month)===null||s===void 0?void 0:s.setInitialValue()}inputHandler(t){if(t.target!=this.element){t.stopPropagation();const s=t.detail[`${this.name}-year`];const o=t.detail[`${this.name}-month`];if(o&&l.Date.is(o)){this.value=l.Date.firstOfMonth(o)}else if(s&&l.Date.is(s)){this.value=l.Date.firstOfMonth(s)}}}smoothlyInputLooksHandler(t){if(t.target!=this.element){t.stopPropagation();t.detail(this.looks,this.color)}}async smoothlyInputLoadHandler(t){if(t.target!=this.element){t.stopPropagation()}}render(){var t,s;return e(i,{key:"825ed9c377498394114231b5fba58e1cbd53c321"},e("smoothly-icon",{key:"b17668f6747bf7169a0bd6284fec3e414be2b78c",name:"caret-back-outline",size:"tiny",color:this.color,fill:"default",class:{disabled:this.readonly||!this.allowPreviousMonth},onClick:()=>this.allowPreviousMonth&&this.adjustMonth(-1)}),e("smoothly-input-select",{key:"ec12ff50447e0ae9c85b7eefe6abeaf350b3a155",ref:t=>this.year=t,name:`${this.name}-year`,readonly:this.readonly,menuHeight:"5.5items",required:true,ordered:true,inCalendar:this.inCalendar,showLabel:this.showLabel,onSmoothlyInput:t=>this.inputHandler(t),onSmoothlyUserInput:t=>{const s=t.detail.value;if(s&&l.Date.is(s)){const t=l.Date.firstOfMonth(s);this.smoothlyUserInput.emit({name:this.name,value:t})}},searchDisabled:true},e("div",{key:"03f9af108c9a82b265055a5922371524a9a1485f",slot:"label"},e("slot",{key:"e1b37f7f4db3f27951844f1cf0453bc3bc66e141",name:"year-label"})),y((t=this.value)!==null&&t!==void 0?t:l.Date.now(),this.min,this.max).map((t=>e("smoothly-item",{key:t.date,value:t.date,selected:t.selected||this.value==t.date},t.name)))),e("smoothly-input-select",{key:"4c57f95ca4288fbf6401acfe5f83a9e21a7ad5e7",ref:t=>this.month=t,name:`${this.name}-month`,readonly:this.readonly,color:this.color,looks:this.looks,menuHeight:"5.5items",required:true,ordered:true,inCalendar:this.inCalendar,showLabel:this.showLabel,onSmoothlyInput:t=>this.inputHandler(t),onSmoothlyUserInput:t=>{const s=t.detail.value;if(s&&l.Date.is(s)){const t=l.Date.firstOfMonth(s);this.smoothlyUserInput.emit({name:this.name,value:t})}},searchDisabled:true},e("div",{key:"4c864e162f8fd664bf64d213f044608df5c32052",slot:"label"},e("slot",{key:"8be0361eafcdda1fe0af35403fafe7268e0e1857",name:"month-label"})),f((s=this.value)!==null&&s!==void 0?s:l.Date.now()).map((t=>e("smoothly-item",{key:t.date,value:t.date,selected:t.selected||this.value==t.date},t.name)))),e("smoothly-icon",{key:"a00a80fa415529ddd7fb28b12394ffbc3895e3ca",name:"caret-forward-outline",size:"tiny",color:this.color,fill:"default",class:{disabled:this.readonly||!this.allowNextMonth},onClick:()=>this.allowNextMonth&&this.adjustMonth(1)}))}get element(){return this}static get watchers(){return{value:[{valueChanged:0},{setAllowPreviousMonth:0},{setAllowNextMonth:0}],min:[{setAllowPreviousMonth:0}],max:[{setAllowNextMonth:0}],name:[{nameChange:0}]}}static get style(){return p()}},[262,"smoothly-input-month",{readonly:[1540],color:[513],looks:[1537],name:[513],value:[1025],max:[1025],min:[1025],next:[516],previous:[516],inCalendar:[516,"in-calendar"],showLabel:[516,"show-label"],allowPreviousMonth:[32],allowNextMonth:[32],register:[64],unregister:[64],getValue:[64],clear:[64],listen:[64],edit:[64],reset:[64],setInitialValue:[64]},[[0,"smoothlyInputLooks","smoothlyInputLooksHandler"],[0,"smoothlyInputLoad","smoothlyInputLoadHandler"]],{value:[{valueChanged:0},{setAllowPreviousMonth:0},{setAllowNextMonth:0}],min:[{setAllowPreviousMonth:0}],max:[{setAllowNextMonth:0}],name:[{nameChange:0}]}]);function b(){if(typeof customElements==="undefined"){return}const t=["smoothly-input-month","smoothly-icon","smoothly-input-select","smoothly-item"];t.forEach((t=>{switch(t){case"smoothly-input-month":if(!customElements.get(n(t))){customElements.define(n(t),v)}break;case"smoothly-icon":if(!customElements.get(n(t))){r()}break;case"smoothly-input-select":if(!customElements.get(n(t))){c()}break;case"smoothly-item":if(!customElements.get(n(t))){m()}break}}))}b();export{v as S,b as d,u as m,d as w};
2
- //# sourceMappingURL=p-B6W5V130.js.map
1
+ import{p as t,H as s,c as o,h as e,d as n,t as i}from"./p-BsZrGTcp.js";import{i as l}from"./p-BVKhAhsB.js";import{E as h}from"./p-DFXJvHuL.js";import{I as a}from"./p-DIhqNc1G.js";import{d as r}from"./p-BiQsRsV4.js";import{d as c}from"./p-CJEV2v84.js";import{d as m}from"./p-fnKrPnzp.js";function u(t){const s=new Date(t);s.setDate(1);let o=-((s.getDay()+6)%7)+1;const e=[];for(let s=0;s<6;s++){const n=[];for(let s=0;s<7;s++){const s=new Date(t);s.setUTCDate(o++);n.push(l.Date.create(s))}if(s<5||l.Date.firstOfMonth(n[0])==l.Date.firstOfMonth(t)){e.push(n)}}return e}function d(){const t=new globalThis.Date;t.setDate(t.getDate()-t.getDay()+1);const s=[];for(let o=0;o<7;o++){s.push(t.toLocaleString(undefined,{weekday:"short"}));t.setDate(t.getDate()+1)}return s}function y(t){const s=new globalThis.Date(t);const o=[];for(let e=0;e<12;e++){s.setMonth(e,28);const n=l.Date.create(s);o.push({date:n,name:s.toLocaleString(undefined,{month:"long"}),selected:n.substr(0,7)==t.substr(0,7)})}return o}function f(t,s,o){const e=new globalThis.Date(t);const n=s?l.Date.getYear(s):(new Date).getFullYear()-50;const i=o?l.Date.getYear(o):(new Date).getFullYear()+50;const h=[];for(let s=n;s<=i;s++){e.setFullYear(s);const o=l.Date.create(e);h.push({date:o,name:e.toLocaleString(undefined,{year:"numeric"}),selected:o==t})}return h}const p=()=>`.sc-smoothly-input-month-h{display:flex;flex-direction:row;justify-content:space-between;background-color:rgb(var(--smoothly-input-background))}.sc-smoothly-input-month-h:not([in-calendar])>smoothly-input-select.sc-smoothly-input-month{display:flex;flex:1}[looks=line].sc-smoothly-input-month-h,[looks=border].sc-smoothly-input-month-h,[looks=transparent].sc-smoothly-input-month-h{gap:2em}.sc-smoothly-input-month-h:not([previous])>smoothly-icon.sc-smoothly-input-month:first-of-type,.sc-smoothly-input-month-h:not([next])>smoothly-icon.sc-smoothly-input-month:last-of-type{display:none}.sc-smoothly-input-month-h>smoothly-icon.sc-smoothly-input-month{display:flex;align-self:center;cursor:pointer}.sc-smoothly-input-month-h>smoothly-icon.disabled.sc-smoothly-input-month{opacity:0.5;cursor:not-allowed}`;const b=t(class t extends s{constructor(t){super();if(t!==false){this.__registerHost()}this.smoothlyInput=o(this,"smoothlyInput");this.smoothlyUserInput=o(this,"smoothlyUserInput");this.smoothlyInputLoad=o(this,"smoothlyInputLoad");this.smoothlyFormDisable=o(this,"smoothlyFormDisable");this.smoothlyInputLooks=o(this,"smoothlyInputLooks");this.value=l.Date.now();this.next=false;this.previous=false;this.inCalendar=false;this.showLabel=true;this.allowPreviousMonth=true;this.allowNextMonth=true;this.observer=h.Observer.create(this)}componentWillLoad(){this.smoothlyInputLooks.emit((t=>{var s;return this.looks=(s=this.looks)!==null&&s!==void 0?s:t}));this.smoothlyInputLoad.emit((t=>this.parent=t));!this.readonly&&this.smoothlyFormDisable.emit((t=>this.readonly=t));this.valueChanged()}valueChanged(){this.smoothlyInput.emit({[this.name]:this.value})}adjustMonth(t){var s;if(!this.readonly){const o=l.Date.parse((s=this.value)!==null&&s!==void 0?s:l.Date.now());o.setMonth(o.getMonth()+t);this.value=l.Date.create(o)}}async disconnectedCallback(){if(!this.element.isConnected){await this.unregister()}}setAllowPreviousMonth(){var t,s;const o=l.Date.previousMonth((t=this.value)!==null&&t!==void 0?t:l.Date.now()).substring(0,7);const e=(s=this.min)===null||s===void 0?void 0:s.substring(0,7);this.allowPreviousMonth=!e||o>=e}setAllowNextMonth(){var t,s;const o=l.Date.nextMonth((t=this.value)!==null&&t!==void 0?t:l.Date.now()).substring(0,7);const e=(s=this.max)===null||s===void 0?void 0:s.substring(0,7);this.allowNextMonth=!e||o<=e}nameChange(t,s){a.formRename(this,s)}async register(){a.formAdd(this)}async unregister(){a.formRemove(this)}async getValue(){return this.value}async clear(){var t,s;(t=this.year)===null||t===void 0?void 0:t.clear();(s=this.month)===null||s===void 0?void 0:s.clear()}async listen(t){this.observer.subscribe(t)}async edit(t){this.readonly=!t}async reset(){var t,s;(t=this.year)===null||t===void 0?void 0:t.reset();(s=this.month)===null||s===void 0?void 0:s.reset()}async setInitialValue(){var t,s;(t=this.year)===null||t===void 0?void 0:t.setInitialValue();(s=this.month)===null||s===void 0?void 0:s.setInitialValue()}inputHandler(t){if(t.target!=this.element){t.stopPropagation();const s=t.detail[`${this.name}-year`];const o=t.detail[`${this.name}-month`];if(o&&l.Date.is(o)){this.value=l.Date.firstOfMonth(o)}else if(s&&l.Date.is(s)){this.value=l.Date.firstOfMonth(s)}}}smoothlyInputLooksHandler(t){if(t.target!=this.element){t.stopPropagation();t.detail(this.looks,this.color)}}async smoothlyInputLoadHandler(t){if(t.target!=this.element){t.stopPropagation()}}render(){var t,s;return e(n,{key:"28204b265ebea6c0cbb757b8cc4a6a1e01e3b74c"},e("smoothly-icon",{key:"f4c14f7bf0825b0baede2c01ff097482ec9d75f5",name:"caret-back-outline",size:"tiny",color:this.color,fill:"default",class:{disabled:this.readonly||!this.allowPreviousMonth},onClick:()=>this.allowPreviousMonth&&this.adjustMonth(-1)}),e("smoothly-input-select",{key:"08a0e79d5558899bbc60d20b9a3e8b13bd736bed",ref:t=>this.year=t,name:`${this.name}-year`,readonly:this.readonly,menuHeight:"5.5items",required:true,ordered:true,inCalendar:this.inCalendar,showLabel:this.showLabel,onSmoothlyInput:t=>this.inputHandler(t),onSmoothlyUserInput:t=>{const s=t.detail.value;if(s&&l.Date.is(s)){const t=l.Date.firstOfMonth(s);this.smoothlyUserInput.emit({name:this.name,value:t})}},searchDisabled:true},e("div",{key:"fe85ea22cbf1dda9cbae9ba96b2d6e45343c9a31",slot:"label"},e("slot",{key:"1f0e5aef19949285791558528dac50ada4cb1f32",name:"year-label"})),f((t=this.value)!==null&&t!==void 0?t:l.Date.now(),this.min,this.max).map((t=>e("smoothly-item",{key:t.date,value:t.date,selected:t.selected||this.value==t.date},t.name)))),e("smoothly-input-select",{key:"a5718197e3389df6c5d175ecf362826e5a6dafad",ref:t=>this.month=t,name:`${this.name}-month`,readonly:this.readonly,color:this.color,looks:this.looks,menuHeight:"5.5items",required:true,ordered:true,inCalendar:this.inCalendar,showLabel:this.showLabel,onSmoothlyInput:t=>this.inputHandler(t),onSmoothlyUserInput:t=>{const s=t.detail.value;if(s&&l.Date.is(s)){const t=l.Date.firstOfMonth(s);this.smoothlyUserInput.emit({name:this.name,value:t})}},searchDisabled:true},e("div",{key:"d4d00cd1968bf5766fee52de789f9fe983730210",slot:"label"},e("slot",{key:"1b0a796b6cb66e6c549cd6eaef2f281ef519816a",name:"month-label"})),y((s=this.value)!==null&&s!==void 0?s:l.Date.now()).map((t=>e("smoothly-item",{key:t.date,value:t.date,selected:t.selected||this.value==t.date},t.name)))),e("smoothly-icon",{key:"dc499bc33e59e0f918194a7a4b3a61bcdd270600",name:"caret-forward-outline",size:"tiny",color:this.color,fill:"default",class:{disabled:this.readonly||!this.allowNextMonth},onClick:()=>this.allowNextMonth&&this.adjustMonth(1)}))}get element(){return this}static get watchers(){return{value:[{valueChanged:0},{setAllowPreviousMonth:0},{setAllowNextMonth:0}],min:[{setAllowPreviousMonth:0}],max:[{setAllowNextMonth:0}],name:[{nameChange:0}]}}static get style(){return p()}},[262,"smoothly-input-month",{readonly:[1540],color:[513],looks:[1537],name:[513],value:[1025],max:[1025],min:[1025],next:[516],previous:[516],inCalendar:[516,"in-calendar"],showLabel:[516,"show-label"],allowPreviousMonth:[32],allowNextMonth:[32],register:[64],unregister:[64],getValue:[64],clear:[64],listen:[64],edit:[64],reset:[64],setInitialValue:[64]},[[0,"smoothlyInputLooks","smoothlyInputLooksHandler"],[0,"smoothlyInputLoad","smoothlyInputLoadHandler"]],{value:[{valueChanged:0},{setAllowPreviousMonth:0},{setAllowNextMonth:0}],min:[{setAllowPreviousMonth:0}],max:[{setAllowNextMonth:0}],name:[{nameChange:0}]}]);function v(){if(typeof customElements==="undefined"){return}const t=["smoothly-input-month","smoothly-icon","smoothly-input-select","smoothly-item"];t.forEach((t=>{switch(t){case"smoothly-input-month":if(!customElements.get(i(t))){customElements.define(i(t),b)}break;case"smoothly-icon":if(!customElements.get(i(t))){r()}break;case"smoothly-input-select":if(!customElements.get(i(t))){c()}break;case"smoothly-item":if(!customElements.get(i(t))){m()}break}}))}v();export{b as S,v as d,u as m,d as w};
2
+ //# sourceMappingURL=p-CtuuZV3u.js.map
@@ -0,0 +1,2 @@
1
+ import{p as e,H as a,h as l,F as o,d as t,t as c}from"./p-BsZrGTcp.js";import{d}from"./p-DM5CKilY.js";import{d as b}from"./p-CR3Ni_o7.js";import{d as s}from"./p-B-l1S16Z.js";import{d as y}from"./p-Ud7Qhkgt.js";import{d as f}from"./p-C3FORjes.js";import{d as m}from"./p-CApTrLt_.js";import{d as p}from"./p-BEHgXDtQ.js";import{d as r}from"./p-Bes8H54c.js";import{d as h}from"./p-BGBbdXaw.js";import{d as i}from"./p-CPnXAdGI.js";import{d as n}from"./p-CL7fW_Oh.js";import{d as k}from"./p-CFgT9iMG.js";import{d as u}from"./p-D-mAUrbR.js";import{d as g}from"./p-C02MtoAQ.js";import{d as w}from"./p-BHcHgI_e.js";const v=()=>`.sc-smoothly-table-demo-group-h{display:block}.sc-smoothly-table-demo-group-h smoothly-display.sc-smoothly-table-demo-group{display:inline}.sc-smoothly-table-demo-group-h fake-cell-wrapper.span-2.sc-smoothly-table-demo-group{grid-column:span 2}.sc-smoothly-table-demo-group-h>smoothly-display.sc-smoothly-table-demo-group{display:inherit;font-size:2em}.sc-smoothly-table-demo-group-h>*.sc-smoothly-table-demo-group{margin-bottom:2rem}.sc-smoothly-table-demo-group-h fake-group-wrapper.sc-smoothly-table-demo-group,.sc-smoothly-table-demo-group-h fake-row-wrapper.sc-smoothly-table-demo-group,.sc-smoothly-table-demo-group-h fake-expandable-row-wrapper.sc-smoothly-table-demo-group{grid-column:1 / -1;display:grid;grid-template-columns:subgrid}.sc-smoothly-table-demo-group-h fake-cell-wrapper.sc-smoothly-table-demo-group{grid-column:span 1;display:block}.sc-smoothly-table-demo-group-h fake-expandable-cell-wrapper.sc-smoothly-table-demo-group{display:contents}`;const E=e(class e extends a{constructor(e){super();if(e!==false){this.__registerHost()}}render(){return l(t,{key:"13ca441187f66529344769d886b77d0c01cf0ec7"},l("smoothly-display",{key:"b2dbf9deacd800eb2bbcc303418a5f2ce6344399",type:"text",value:"Group"}),l("smoothly-table",{key:"8e80f2e26eda2a33c65d665d2d369b11a03f39b3",color:"primary",columns:2},l("smoothly-table-head",{key:"a80ad7e011c9432b00488a3dad6cc48d4cf56ffa"},l("smoothly-table-row",{key:"9d15a2c5ec712913ef7195f40eae2d7cc4328b43"},l("smoothly-table-cell",{key:"4658db6a627442459d39caf71d3053c0b0373153"},"Date"),l("smoothly-table-cell",{key:"62640f3c5426d8b1cbb7e5309b9a5eb8ae1fd244"},"Total"))),l("smoothly-table-body",{key:"30185fa157aeed1482eb4ed13e227e735450204f"},l("smoothly-table-row-group",{key:"2f88c12ff6aa6b59f6545f1939c0b390ff04fb9b",align:true},l("smoothly-display",{key:"504c5fd4776cf580054b1643d3cdf25746b0ef4d",slot:"start",type:"date",value:"2024-01-01"}),l("smoothly-display",{key:"abb7c187f97506286cce8fdb7cf9e44024cb1eee",slot:"end",type:"price",currency:"EUR",value:510}),l("smoothly-table-expandable-row",{key:"4c4ee8e36cdef0fa1c7dd5e088ba27b0470b94a0"},l("smoothly-table-cell",{key:"e78d6d08b6b141e5d37e309697ae71a5158aa83e"},l("smoothly-display",{key:"d4545cbccf585edd9a753216cd7eb065794cc61d",type:"date-time",value:"2024-01-01T01:37:00.000Z"})),l("smoothly-table-cell",{key:"2bfa64247f7bf2ccf879859f66de74904dd7438f"},l("smoothly-display",{key:"45bc665caae3e04dd8f4a94ab96d0e5f974c1b66",type:"price",currency:"EUR",value:250})),l("smoothly-lazy",{key:"60b37654b01d3c248d2c7339593990e5a04fb188",slot:"detail",content:l(o,null,"Details of 2024-01-01T01:37:00.000Z")})),l("smoothly-table-expandable-row",{key:"e18d58866e7e132073ccd951f114780566bc19d8"},l("smoothly-table-cell",{key:"9bce755fdb66c5a53be2a1a30b897c56cfd292e2"},l("smoothly-display",{key:"e93ddd23a90132c87a717651c39cd9b3e0ec76be",type:"date-time",value:"2024-01-01T13:37:00.000Z"})),l("smoothly-table-cell",{key:"25760dc3dc0c4db717a663849b0a5b4855d0fa49"},l("smoothly-display",{key:"6bddb16177d1b3aaba00f690e15830b4de4c560f",type:"price",currency:"EUR",value:260})),l("smoothly-lazy",{key:"b270f93a5b22cc963761b4ba3fac9831948eb229",slot:"detail",content:l(o,null,"Details of 2024-01-01T13:37:00.000Z")}))),l("smoothly-table-row",{key:"13eeb89739730d945227aff29d6ffb02405a7162"},l("smoothly-table-cell",{key:"f6ee0efe4aafe2b3bc46d1391addd0cdd0372643"},l("smoothly-display",{key:"fefcd6b25329f0acac11ce9b5f62936c250e4e13",type:"date",value:"2024-01-02"})),l("smoothly-table-cell",{key:"ef2d0fc611d84b2380f4cb3342e9a747ca7b0571"},l("smoothly-display",{key:"049dfb4f85369daf945b216256ced74597135572",type:"price",currency:"EUR",value:130}))),l("smoothly-table-row-group",{key:"0818d5289ddf639e1f41b8377eefda9a42e8a660"},l("smoothly-display",{key:"c313d4b6c8e1658c6a2bb9bda1b7aee77b5c4708",slot:"start",type:"date",value:"2024-01-03"}),l("smoothly-display",{key:"6e57124ffd9cb7a0737b49144fdae07c04e7ce54",slot:"end",type:"price",currency:"EUR",value:720}),l("smoothly-table-expandable-row",{key:"075bcd04dbac92bb2733eae3983e205c604c0897"},l("smoothly-table-cell",{key:"2da65d488c647c5952fd2f7b496ad477c78e43a0"},l("smoothly-display",{key:"268b41c5942180ff8cbf781c225569a464a98048",type:"date-time",value:"2024-01-03T01:37:00.000Z"})),l("smoothly-table-cell",{key:"bf8c3e7a40c471fc22de92ff894ab5145407949c"},l("smoothly-display",{key:"ee271b788d3bccfec5354a4e96b0a16a9faa224d",type:"price",currency:"EUR",value:320})),l("smoothly-lazy",{key:"684a6831e691a9dc67f81977c39f32cb74ca4796",slot:"detail",content:l(o,null,"Details of 2024-01-03T01:37:00.000Z")})),l("smoothly-table-expandable-row",{key:"82ca4163f480bb0f87f51d40680ee079dd615b11"},l("smoothly-table-cell",{key:"c7022929f9eee697165dabdf09f209f62cec9e20"},l("smoothly-display",{key:"f85ecb5f99a2f5f00b1d8946a33057b87691ebf2",type:"date-time",value:"2024-01-03T13:37:00.000Z"})),l("smoothly-table-cell",{key:"71a2d8a0b8426614bc5842b27e80957bc560066b"},l("smoothly-display",{key:"6e1fa476d41664ccd4f4475e3d78e6811181dc83",type:"price",currency:"EUR",value:400})),l("smoothly-lazy",{key:"3c21237b9ab3bcbad4ce8f71d590b62e92f425e4",slot:"detail",content:l(o,null,"Details of 2024-01-03T13:37:00.000Z")}))),l("smoothly-table-row-group",{key:"89f7bd195d9558793f2806d9331a4f60127a2288"},l("smoothly-display",{key:"9af59f5175f04af6c3c661efea33c884ef2443a4",slot:"start",type:"date",value:"2024-01-04"}),l("smoothly-table-expandable-row",{key:"cf98a3d3738cc247ddb748eb5d62103b5f4cb898"},l("smoothly-table-cell",{key:"fed5bcbfedb84593f7372d686ec367176e09f203"},l("smoothly-display",{key:"cbaf8f631003338f43637aca9af85e05ee61acb9",type:"date-time",value:"2024-01-04T01:37:00.000Z"})),l("smoothly-table-cell",{key:"01ca45bac88026b162678192a11a4f5dd3c068be"},l("smoothly-display",{key:"80a57b43c7a010aab88b2d16c7fbedaeb29568ce",type:"price",currency:"EUR",value:320})),l("smoothly-lazy",{key:"70d2c87d6db5d93807832babed5234fb464f74f4",slot:"detail",content:l(o,null,"Details of 2024-01-04T01:37:00.000Z")})),l("smoothly-table-expandable-row",{key:"20cb4d49bb58652118d26a85e3700303493c68c5"},l("smoothly-table-cell",{key:"825986c6db5f37ccc73569f6f1c2228a5974165a"},l("smoothly-display",{key:"21e131ad762de83ceb50ba3c73438b19726c38e2",type:"date-time",value:"2024-01-04T13:37:00.000Z"})),l("smoothly-table-cell",{key:"c5ee086388bcba90b3f2f8b8e87de8b640af19ae"},l("smoothly-display",{key:"0451e5542008991f62d5aed3be962be7ede89e92",type:"price",currency:"EUR",value:400})),l("smoothly-lazy",{key:"eff29a26691c08d70aa7cacad2a199dabc06f76c",slot:"detail",content:l(o,null,"Details of 2024-01-04T13:37:00.000Z")}))),l("smoothly-table-row-group",{key:"16aa704a00da4ee503ef5c8a66ce41cd2768d704"},l("smoothly-display",{key:"ebda8de8516871eaf501d00fe3c334dc229b8105",slot:"end",type:"price",currency:"EUR",value:720}),l("smoothly-table-expandable-row",{key:"dc912bef3657af1eadb481ecbaa1f71e061fd3ae"},l("smoothly-table-cell",{key:"7f3451e00998d997440f16b85fb53598778128c8"},l("smoothly-display",{key:"def111369e6fae7bcb7e5c6bdc3bfaaa9700b6fe",type:"date-time",value:"2024-01-05T01:37:00.000Z"})),l("smoothly-table-cell",{key:"cf70102ed28029c2eafbfa3c14f5f42bf185b4cf"},l("smoothly-display",{key:"567fe6aa345e74223a8332b93cc1b1b9cb288eba",type:"price",currency:"EUR",value:320})),l("smoothly-lazy",{key:"3ad490689fcafce374b5b02550d5e03962da7a75",slot:"detail",content:l(o,null,"Details of 2024-01-05T01:37:00.000Z")})),l("smoothly-table-expandable-row",{key:"0cfffb40fd9119c737384bdfcf4196252e2680ed"},l("smoothly-table-cell",{key:"17017970a2de014c63dc0c2f942e83a4ef9b322d"},l("smoothly-display",{key:"9f6d27350e38a66bab11ce29a331ccecee9335d0",type:"date-time",value:"2024-01-05T13:37:00.000Z"})),l("smoothly-table-cell",{key:"f1d2cc0caf106aaabb4d9262fb6f589924ded4cf"},l("smoothly-display",{key:"1ae2025a7b69811c991c4e50acd45be7f2af4820",type:"price",currency:"EUR",value:400})),l("smoothly-lazy",{key:"fd8db8bbca191d29614972042d49aabf04b00325",slot:"detail",content:l(o,null,"Details of 2024-01-05T13:37:00.000Z")}))),l("fake-group-wrapper",{key:"7ed94c5850dca92de109a72d543e7892a4ad1f27"},l("smoothly-table-row-group",{key:"fd411b94eb083f25414f29ee5f0c82fe10e336b2"},l("smoothly-display",{key:"c1eec946da5403fe5fb367f864de25a07d37bb45",slot:"start",type:"date",value:"2024-01-06"}),l("smoothly-display",{key:"b69b22be0181ebd04b4fb6c9934b76d41a8c92f6",slot:"end",type:"price",currency:"EUR",value:720}),l("fake-row-wrapper",{key:"39f7a1f520615967cc4972f7c2f2ffd6824c3fcc"},l("smoothly-table-row",{key:"a0edb450a28de03759ae4c2240a979f27704718b"},l("fake-cell-wrapper",{key:"9c2c3823f9e8771e15625a0353e7031be7ab862c"},l("smoothly-table-cell",{key:"b47064b530ce8ee1bb66350cc2bb4ac172bfbe99"},l("smoothly-display",{key:"23245c1af652033586ff8b001f406da931221ff7",type:"date",value:"2024-01-02"}))),l("fake-expandable-cell-wrapper",{key:"cecaf2863e686ddd4b7b6db5bf0ba39a6f77b70b"},l("smoothly-table-expandable-cell",{key:"b715899e9cc80dfded13610df5224069c9eebabe"},l("smoothly-display",{key:"3e261554b8e11c7388c5cf4057228575b87acd0e",type:"price",currency:"EUR",value:130}),l("smoothly-lazy",{key:"5844d701bc675abd246d2d18f7387edd9c9f7e7b",slot:"detail",content:l("span",null,l("smoothly-display",{type:"price",value:100,currency:"EUR"})," + ",l("smoothly-display",{type:"price",value:30,currency:"EUR"}))}))))),l("fake-expandable-row-wrapper",{key:"32bce4a1c74db7b752671e090eca7216dfeda5e4"},l("smoothly-table-expandable-row",{key:"76397c42828314da38f36ba8046227bce793f3b0"},l("fake-cell-wrapper",{key:"4707a608abe80f2fa745d0a669dd26d327ce3fa7",class:"span-2"},l("smoothly-table-cell",{key:"a4b2b9dba3fe2d95439f995c04d218729f6f7c05",span:2},l("smoothly-display",{key:"d3ab93ede3071809115eb9a392b29c97ada02788",type:"date",value:"2024-01-07"}))),l("smoothly-lazy",{key:"ab3787df579b0c266b5cc521e6c88b8976d7eeb4",slot:"detail",content:l("smoothly-display",{type:"date-time",value:"2024-01-07T13:37:00.000Z"})}))))),l("smoothly-table-row-group",{key:"31e0f780af3568f236e185c33beffd1fe131f15c"},l("smoothly-display",{key:"71f3de541c67562eed2c4138b3c487e13f45891a",slot:"start",type:"date",value:"2024-01-08"}),l("smoothly-display",{key:"56b9d221c55a67b758a529d3542819b8cc73a9d1",slot:"end",type:"price",currency:"EUR",value:720})))))}static get style(){return v()}},[2,"smoothly-table-demo-group"]);function j(){if(typeof customElements==="undefined"){return}const e=["smoothly-table-demo-group","smoothly-display","smoothly-display-json","smoothly-display-json-object","smoothly-display-json-primitive","smoothly-display-json-record-key","smoothly-lazy","smoothly-load-more","smoothly-table","smoothly-table-body","smoothly-table-cell","smoothly-table-expandable-cell","smoothly-table-expandable-row","smoothly-table-head","smoothly-table-row","smoothly-table-row-group"];e.forEach((e=>{switch(e){case"smoothly-table-demo-group":if(!customElements.get(c(e))){customElements.define(c(e),E)}break;case"smoothly-display":if(!customElements.get(c(e))){d()}break;case"smoothly-display-json":if(!customElements.get(c(e))){b()}break;case"smoothly-display-json-object":if(!customElements.get(c(e))){s()}break;case"smoothly-display-json-primitive":if(!customElements.get(c(e))){y()}break;case"smoothly-display-json-record-key":if(!customElements.get(c(e))){f()}break;case"smoothly-lazy":if(!customElements.get(c(e))){m()}break;case"smoothly-load-more":if(!customElements.get(c(e))){p()}break;case"smoothly-table":if(!customElements.get(c(e))){r()}break;case"smoothly-table-body":if(!customElements.get(c(e))){h()}break;case"smoothly-table-cell":if(!customElements.get(c(e))){i()}break;case"smoothly-table-expandable-cell":if(!customElements.get(c(e))){n()}break;case"smoothly-table-expandable-row":if(!customElements.get(c(e))){k()}break;case"smoothly-table-head":if(!customElements.get(c(e))){u()}break;case"smoothly-table-row":if(!customElements.get(c(e))){g()}break;case"smoothly-table-row-group":if(!customElements.get(c(e))){w()}break}}))}j();export{E as S,j as d};
2
+ //# sourceMappingURL=p-Cv-uvD7X.js.map
@@ -1,2 +1,2 @@
1
- import{p as o,H as s,h as t,d as e,t as m}from"./p-BsZrGTcp.js";import{d as l}from"./p-DM5CKilY.js";import{d as i}from"./p-CR3Ni_o7.js";import{d as r}from"./p-B-l1S16Z.js";import{d as a}from"./p-Ud7Qhkgt.js";import{d as c}from"./p-C3FORjes.js";import{d as p}from"./p-BiQsRsV4.js";import{d as n}from"./p-7ReeDB-R.js";import{d as y}from"./p-BMHv8WTp.js";import{d}from"./p-fjRiTKvl.js";import{d as f}from"./p-D4PyTfe4.js";const h=o(class o extends s{constructor(o){super();if(o!==false){this.__registerHost()}}render(){return t(e,{key:"f984ceaff90804fca1e618768ebadbd329c6b2e1"},t("h2",{key:"00d7865260450e2575681ca1650bab25b4d52508"},"Color"),t("smoothly-input-color",{key:"67d034749c8c4725dfc05e30a035755da7aa53f4",name:"color"},"Choose color"))}static get style(){return`style.css`}},[0,"smoothly-input-color-demo"]);function u(){if(typeof customElements==="undefined"){return}const o=["smoothly-input-color-demo","smoothly-display","smoothly-display-json","smoothly-display-json-object","smoothly-display-json-primitive","smoothly-display-json-record-key","smoothly-icon","smoothly-input","smoothly-input-color","smoothly-input-range","smoothly-toggle-switch"];o.forEach((o=>{switch(o){case"smoothly-input-color-demo":if(!customElements.get(m(o))){customElements.define(m(o),h)}break;case"smoothly-display":if(!customElements.get(m(o))){l()}break;case"smoothly-display-json":if(!customElements.get(m(o))){i()}break;case"smoothly-display-json-object":if(!customElements.get(m(o))){r()}break;case"smoothly-display-json-primitive":if(!customElements.get(m(o))){a()}break;case"smoothly-display-json-record-key":if(!customElements.get(m(o))){c()}break;case"smoothly-icon":if(!customElements.get(m(o))){p()}break;case"smoothly-input":if(!customElements.get(m(o))){n()}break;case"smoothly-input-color":if(!customElements.get(m(o))){y()}break;case"smoothly-input-range":if(!customElements.get(m(o))){d()}break;case"smoothly-toggle-switch":if(!customElements.get(m(o))){f()}break}}))}u();export{h as S,u as d};
2
- //# sourceMappingURL=p-BZJNdp6g.js.map
1
+ import{p as o,H as s,h as t,d as e,t as m}from"./p-BsZrGTcp.js";import{d as a}from"./p-DM5CKilY.js";import{d as l}from"./p-CR3Ni_o7.js";import{d as r}from"./p-B-l1S16Z.js";import{d as i}from"./p-Ud7Qhkgt.js";import{d as c}from"./p-C3FORjes.js";import{d as p}from"./p-BiQsRsV4.js";import{d}from"./p-Ww5QjB3D.js";import{d as n}from"./p-CrkBYYf-.js";import{d as y}from"./p-CTdXhHGF.js";import{d as f}from"./p-dBpTpVs8.js";const h=o(class o extends s{constructor(o){super();if(o!==false){this.__registerHost()}}render(){return t(e,{key:"a24614a0d013b44ad55334eba6849d7d4c2ebdc8"},t("h2",{key:"f003675167b0a648e3de7cd44a2a2c53a27c1e3a"},"Color"),t("smoothly-input-color",{key:"d562fdd31044939c84dd7bd6264adfe9ea4a8bfa",name:"color"},"Choose color"))}static get style(){return`style.css`}},[0,"smoothly-input-color-demo"]);function u(){if(typeof customElements==="undefined"){return}const o=["smoothly-input-color-demo","smoothly-display","smoothly-display-json","smoothly-display-json-object","smoothly-display-json-primitive","smoothly-display-json-record-key","smoothly-icon","smoothly-input","smoothly-input-color","smoothly-input-range","smoothly-toggle-switch"];o.forEach((o=>{switch(o){case"smoothly-input-color-demo":if(!customElements.get(m(o))){customElements.define(m(o),h)}break;case"smoothly-display":if(!customElements.get(m(o))){a()}break;case"smoothly-display-json":if(!customElements.get(m(o))){l()}break;case"smoothly-display-json-object":if(!customElements.get(m(o))){r()}break;case"smoothly-display-json-primitive":if(!customElements.get(m(o))){i()}break;case"smoothly-display-json-record-key":if(!customElements.get(m(o))){c()}break;case"smoothly-icon":if(!customElements.get(m(o))){p()}break;case"smoothly-input":if(!customElements.get(m(o))){d()}break;case"smoothly-input-color":if(!customElements.get(m(o))){n()}break;case"smoothly-input-range":if(!customElements.get(m(o))){y()}break;case"smoothly-toggle-switch":if(!customElements.get(m(o))){f()}break}}))}u();export{h as S,u as d};
2
+ //# sourceMappingURL=p-Cw_sHLuu.js.map
@@ -1,2 +1,2 @@
1
- import{p as t,H as o,h as e,d as s,t as l}from"./p-BsZrGTcp.js";import"./p-CkXes5c-.js";import"./p-BVKhAhsB.js";import{S as a}from"./p-DoFURPl2.js";const r=()=>`.sc-smoothly-table-head-h{grid-column:1 / -1;display:grid;grid-template-columns:subgrid;top:var(--top);position:sticky;z-index:var(--z-index);--smoothly-color:var(--smoothly-table-header-background);--smoothly-color-contrast:var(--smoothly-table-header-foreground);background-color:rgb(var(--smoothly-table-header-background));color:rgb(var(--smoothly-table-header-foreground));stroke:rgb(var(--smoothly-table-header-foreground));fill:rgb(var(--smoothly-table-header-foreground));font-weight:bold;transition:box-shadow 0.3s ease}.scrolled.sc-smoothly-table-head-h{box-shadow:var(--smoothly-table-header-shadow)}`;const h=t(class t extends o{constructor(t){super();if(t!==false){this.__registerHost()}this.depth=0;this.onScroll=t=>{if(t.target instanceof o){this.scrollParent=t.target;const o=this.scrollParent.getBoundingClientRect();const e=this.element.getBoundingClientRect();this.scrolled=o.top==e.top}}}getTopOffset(){let t=0;let o=this.element;while(o){if(o.tagName.toLowerCase()==="smoothly-table"){const e=o.querySelector("smoothly-table-head");if(e!==this.element){const o=Array.from(e.querySelectorAll(":scope > smoothly-table-row"));t+=o.length}}o=o.parentElement}this.depth=t}connectedCallback(){var t;this.scrollParent=a.findParent(this.element);(t=this.scrollParent)===null||t===void 0?void 0:t.addEventListener("scroll",this.onScroll);this.getTopOffset()}disconnectedCallback(){var t;(t=this.scrollParent)===null||t===void 0?void 0:t.removeEventListener("scroll",this.onScroll)}render(){return e(s,{key:"7649393821cbe7b9c336b9ae5d88e4a9edf8a409",class:{scrolled:!!this.scrolled},style:{"--top":`calc(${this.depth} * var(--smoothly-table-cell-min-height))`,"--z-index":`${10-this.depth}`}},e("slot",{key:"c20ebbb80c1d9b5e1210fd2c194a754f0e9e1755"}))}get element(){return this}static get style(){return r()}},[262,"smoothly-table-head",{scrolled:[32],depth:[32]}]);function i(){if(typeof customElements==="undefined"){return}const t=["smoothly-table-head"];t.forEach((t=>{switch(t){case"smoothly-table-head":if(!customElements.get(l(t))){customElements.define(l(t),h)}break}}))}i();export{h as S,i as d};
2
- //# sourceMappingURL=p-DbS9bWfm.js.map
1
+ import{p as t,H as o,h as s,d as e,t as l}from"./p-BsZrGTcp.js";import"./p-CkXes5c-.js";import"./p-BVKhAhsB.js";import{S as a}from"./p-DoFURPl2.js";const r=()=>`.sc-smoothly-table-head-h{grid-column:1 / -1;display:grid;grid-template-columns:subgrid;top:var(--top);position:sticky;z-index:var(--z-index);--smoothly-color:var(--smoothly-table-header-background);--smoothly-color-contrast:var(--smoothly-table-header-foreground);background-color:rgb(var(--smoothly-table-header-background));color:rgb(var(--smoothly-table-header-foreground));stroke:rgb(var(--smoothly-table-header-foreground));fill:rgb(var(--smoothly-table-header-foreground));font-weight:bold;transition:box-shadow 0.3s ease}.scrolled.sc-smoothly-table-head-h{box-shadow:var(--smoothly-table-header-shadow)}`;const h=t(class t extends o{constructor(t){super();if(t!==false){this.__registerHost()}this.depth=0;this.onScroll=t=>{if(t.target instanceof o){this.scrollParent=t.target;const o=this.scrollParent.getBoundingClientRect();const s=this.element.getBoundingClientRect();this.scrolled=o.top==s.top}}}getTopOffset(){let t=0;let o=this.element;while(o){if(o.tagName.toLowerCase()==="smoothly-table"){const s=o.querySelector("smoothly-table-head");if(s!==this.element){const o=Array.from(s.querySelectorAll(":scope > smoothly-table-row"));t+=o.length}}o=o.parentElement}this.depth=t}connectedCallback(){var t;this.scrollParent=a.findParent(this.element);(t=this.scrollParent)===null||t===void 0?void 0:t.addEventListener("scroll",this.onScroll);this.getTopOffset()}disconnectedCallback(){var t;(t=this.scrollParent)===null||t===void 0?void 0:t.removeEventListener("scroll",this.onScroll)}render(){return s(e,{key:"a892578836b416a7ca7dcecf5436988fcd9c33d1",class:{scrolled:!!this.scrolled},style:{"--top":`calc(${this.depth} * var(--smoothly-table-cell-min-height))`,"--z-index":`${10-this.depth}`}},s("slot",{key:"6905eb9cae9ac8411ff90d83de4ff7a2a5fd5f12"}))}get element(){return this}static get style(){return r()}},[262,"smoothly-table-head",{scrolled:[32],depth:[32]}]);function i(){if(typeof customElements==="undefined"){return}const t=["smoothly-table-head"];t.forEach((t=>{switch(t){case"smoothly-table-head":if(!customElements.get(l(t))){customElements.define(l(t),h)}break}}))}i();export{h as S,i as d};
2
+ //# sourceMappingURL=p-D-mAUrbR.js.map
@@ -1,2 +1,2 @@
1
- import{p as e,H as s,h as o,d as t,t as a}from"./p-BsZrGTcp.js";import{d as m}from"./p-BHEtq3Ue.js";import{d as c}from"./p-DM5CKilY.js";import{d as n}from"./p-CR3Ni_o7.js";import{d as r}from"./p-B-l1S16Z.js";import{d as l}from"./p-Ud7Qhkgt.js";import{d as i}from"./p-C3FORjes.js";import{d}from"./p-BiQsRsV4.js";import{d as p}from"./p-7ReeDB-R.js";import{d as f}from"./p-CCzyYE1m.js";import{d as y}from"./p-fjRiTKvl.js";const b=e(class e extends s{constructor(e){super();if(e!==false){this.__registerHost()}}render(){return o(t,{key:"513ed764bf3593102fe688e6929f2c3f19c0a1a9"},o("h2",{key:"25a0e8ad3ef9322ca03f6c64d812148022dc9688"},"Range"),o("h3",{key:"f14838850168a97050eab32a4eff767f17e0b3ef"},"Phone Number"),o("smoothly-input-range",{key:"8ad60bd62396e66ac1338c8937a432bc8580dc23",min:7e8,max:799999999,step:1,label:"Phone Number"}),o("h3",{key:"f766bb38a2ae9108ea03e03d02dc6cf5308f3139"},"Stars out of ten"),o("smoothly-input-range",{key:"67164065098d501e710abe48fa0e8411a56c15c0",max:10,step:1,label:"Stars"}),o("h3",{key:"73c4f2da26f0b6d61997b342ad6d4c0976ccc89e"},"Percent"),o("smoothly-input-range",{key:"9bd55d44e6611c0dfa3bd9e7c1b061d119437326",type:"percent",max:1,step:.01,label:"Percent"}),o("h3",{key:"49dc7f9db92e9fbecc53fd0bf1c8804a13febaa2"},"With icon at start and clear button"),o("smoothly-input-range",{key:"107e975039193ea8d1a9dca98d682c61d2c15096",step:1,name:"range2",label:"Select"},o("smoothly-icon",{key:"cf0e39c1484399a21532024399ef6b08374a87c6",name:"checkmark-circle",slot:"start"}),o("smoothly-input-clear",{key:"d1a3ab9ac2081a365a818d9ce2e453f03a21c049",size:"icon",slot:"end"})))}},[0,"smoothly-input-range-demo"]);function h(){if(typeof customElements==="undefined"){return}const e=["smoothly-input-range-demo","smoothly-button","smoothly-display","smoothly-display-json","smoothly-display-json-object","smoothly-display-json-primitive","smoothly-display-json-record-key","smoothly-icon","smoothly-input","smoothly-input-clear","smoothly-input-range"];e.forEach((e=>{switch(e){case"smoothly-input-range-demo":if(!customElements.get(a(e))){customElements.define(a(e),b)}break;case"smoothly-button":if(!customElements.get(a(e))){m()}break;case"smoothly-display":if(!customElements.get(a(e))){c()}break;case"smoothly-display-json":if(!customElements.get(a(e))){n()}break;case"smoothly-display-json-object":if(!customElements.get(a(e))){r()}break;case"smoothly-display-json-primitive":if(!customElements.get(a(e))){l()}break;case"smoothly-display-json-record-key":if(!customElements.get(a(e))){i()}break;case"smoothly-icon":if(!customElements.get(a(e))){d()}break;case"smoothly-input":if(!customElements.get(a(e))){p()}break;case"smoothly-input-clear":if(!customElements.get(a(e))){f()}break;case"smoothly-input-range":if(!customElements.get(a(e))){y()}break}}))}h();export{b as S,h as d};
2
- //# sourceMappingURL=p-gJF_-tuy.js.map
1
+ import{p as e,H as s,h as o,d as t,t as a}from"./p-BsZrGTcp.js";import{d as m}from"./p-BHEtq3Ue.js";import{d as c}from"./p-DM5CKilY.js";import{d as n}from"./p-CR3Ni_o7.js";import{d as r}from"./p-B-l1S16Z.js";import{d as l}from"./p-Ud7Qhkgt.js";import{d as i}from"./p-C3FORjes.js";import{d}from"./p-BiQsRsV4.js";import{d as f}from"./p-Ww5QjB3D.js";import{d as p}from"./p-_o_lUhve.js";import{d as y}from"./p-CTdXhHGF.js";const b=e(class e extends s{constructor(e){super();if(e!==false){this.__registerHost()}}render(){return o(t,{key:"93085adc52dbed67cd824108eaaf64b3bda0fb6e"},o("h2",{key:"a91437c641e21986ad592c73f92a14234eddb9b9"},"Range"),o("h3",{key:"5003225e9af30f278a7f37ccc1daab93df370e80"},"Phone Number"),o("smoothly-input-range",{key:"5c790737cea0d76367f27072088ee92dec80a662",min:7e8,max:799999999,step:1,label:"Phone Number"}),o("h3",{key:"6bff0c3ac7f529787a042a7b02256eae19ad5b4b"},"Stars out of ten"),o("smoothly-input-range",{key:"eaee03d21dc424fc65158b29a4a7d3b255209fd3",max:10,step:1,label:"Stars"}),o("h3",{key:"f2124aaca6dccfa59cf65efbb9dfbecebf575740"},"Percent"),o("smoothly-input-range",{key:"ce14e10e75cf3320b2699021f99c5757b6598bbe",type:"percent",max:1,step:.01,label:"Percent"}),o("h3",{key:"a12635fed326ae754cef8e15aa8f728c0bea9639"},"With icon at start and clear button"),o("smoothly-input-range",{key:"f8050fdae3ff4e0be8f00914e6580d69df51c18b",step:1,name:"range2",label:"Select"},o("smoothly-icon",{key:"438d15ceb8cd3360ebc6394ee7aee2b0131ac808",name:"checkmark-circle",slot:"start"}),o("smoothly-input-clear",{key:"98dd0d35d727339290b76dfcf4348a846db22396",size:"icon",slot:"end"})))}},[0,"smoothly-input-range-demo"]);function h(){if(typeof customElements==="undefined"){return}const e=["smoothly-input-range-demo","smoothly-button","smoothly-display","smoothly-display-json","smoothly-display-json-object","smoothly-display-json-primitive","smoothly-display-json-record-key","smoothly-icon","smoothly-input","smoothly-input-clear","smoothly-input-range"];e.forEach((e=>{switch(e){case"smoothly-input-range-demo":if(!customElements.get(a(e))){customElements.define(a(e),b)}break;case"smoothly-button":if(!customElements.get(a(e))){m()}break;case"smoothly-display":if(!customElements.get(a(e))){c()}break;case"smoothly-display-json":if(!customElements.get(a(e))){n()}break;case"smoothly-display-json-object":if(!customElements.get(a(e))){r()}break;case"smoothly-display-json-primitive":if(!customElements.get(a(e))){l()}break;case"smoothly-display-json-record-key":if(!customElements.get(a(e))){i()}break;case"smoothly-icon":if(!customElements.get(a(e))){d()}break;case"smoothly-input":if(!customElements.get(a(e))){f()}break;case"smoothly-input-clear":if(!customElements.get(a(e))){p()}break;case"smoothly-input-range":if(!customElements.get(a(e))){y()}break}}))}h();export{b as S,h as d};
2
+ //# sourceMappingURL=p-D5WTwmc6.js.map
@@ -1,2 +1,2 @@
1
- import{p as t,H as o,c as i,h as s,d as e,t as n}from"./p-BsZrGTcp.js";import{d as c}from"./p-BiQsRsV4.js";import{d as a}from"./p-DRiOEv4L.js";const l=()=>`.sc-smoothly-notification-h{display:block;position:relative;min-width:min(calc(100% - 1rem), 30rem);min-height:3rem;border-radius:5px;margin:0.5rem}.sc-smoothly-notification-h>span.icon.sc-smoothly-notification>smoothly-icon.sc-smoothly-notification,.sc-smoothly-notification-h>span.clean.sc-smoothly-notification{display:flex;justify-content:center;align-self:center}.sc-smoothly-notification-h>span.sc-smoothly-notification{margin-inline:1rem 2rem}.sc-smoothly-notification-h>span.icon.sc-smoothly-notification{display:flex;width:100%;justify-content:center}.sc-smoothly-notification-h>span.icon.sc-smoothly-notification>p.sc-smoothly-notification{padding-right:1em}.sc-smoothly-notification-h>span.sc-smoothly-notification>p.sc-smoothly-notification{text-align:left}[hidden].sc-smoothly-notification-h{display:none}.sc-smoothly-notification-h>span.icon.sc-smoothly-notification>smoothly-icon.sc-smoothly-notification{margin:0 0.5rem}.sc-smoothly-notification-h>smoothly-trigger.sc-smoothly-notification{--smoothly-icon-size:1.6rem;position:absolute;right:0}`;const r=t(class t extends o{constructor(t){super();if(t!==false){this.__registerHost()}this.remove=i(this,"remove");this.closable=true;this.tick={};this.listener=t=>{if(t.state=="closed"){this.remove.emit(t)}else{this.tick={}}}}get properties(){let t;switch(this.notice.state){case"delayed":case"warning":t=["warning","warning-outline"];break;case"success":t=["success","checkmark-circle"];break;case"executing":t=["light","hourglass-outline"];break;case"failed":t=["danger","alert-circle"];break;default:t=["light",undefined];break}return t}onTrigger(t){if(t.detail.name=="close"){t.stopPropagation();this.notice.close()}}onUpdatedNotice(t,o){if(o){o.unlisten(this.listener)}t.listen(this.listener)}componentDidLoad(){this.onUpdatedNotice(this.notice)}render(){return s(e,{key:"02ae0659b1c3c7e4e5e74ac356bb94cf91ef8835",color:this.properties[0],fill:"solid"},this.closable&&s("smoothly-trigger",{key:"4525814eb8b98479507575f107ea3f89f708bc56",fill:"clear",name:"close"},s("smoothly-icon",{key:"d611ae4917fa50ef7d0e397a96fec34aee39cb72",name:"close-circle-outline"})),s("span",{key:"30b99783d4c02842315a782a4029f97a450f5a2b",class:this.icon?"icon":"clean"},this.icon&&s("smoothly-icon",{key:"147a0858cc23b98e8aac82463ab19b1891896d1a",name:this.properties[1]}),s("p",{key:"45d9c9e89189a31941461500868439768c3199e6"},this.notice.message)))}static get watchers(){return{notice:[{onUpdatedNotice:0}]}}static get style(){return l()}},[2,"smoothly-notification",{notice:[16],closable:[4],icon:[4],tick:[32]},[[0,"trigger","onTrigger"]],{notice:[{onUpdatedNotice:0}]}]);function h(){if(typeof customElements==="undefined"){return}const t=["smoothly-notification","smoothly-icon","smoothly-trigger"];t.forEach((t=>{switch(t){case"smoothly-notification":if(!customElements.get(n(t))){customElements.define(n(t),r)}break;case"smoothly-icon":if(!customElements.get(n(t))){c()}break;case"smoothly-trigger":if(!customElements.get(n(t))){a()}break}}))}h();export{r as N,h as d};
2
- //# sourceMappingURL=p-DGxkSNZ-.js.map
1
+ import{p as t,H as o,c as i,h as s,d as e,t as c}from"./p-BsZrGTcp.js";import{d as n}from"./p-BiQsRsV4.js";import{d as a}from"./p-CmPHR3tf.js";const l=()=>`.sc-smoothly-notification-h{display:block;position:relative;min-width:min(calc(100% - 1rem), 30rem);min-height:3rem;border-radius:5px;margin:0.5rem}.sc-smoothly-notification-h>span.icon.sc-smoothly-notification>smoothly-icon.sc-smoothly-notification,.sc-smoothly-notification-h>span.clean.sc-smoothly-notification{display:flex;justify-content:center;align-self:center}.sc-smoothly-notification-h>span.sc-smoothly-notification{margin-inline:1rem 2rem}.sc-smoothly-notification-h>span.icon.sc-smoothly-notification{display:flex;width:100%;justify-content:center}.sc-smoothly-notification-h>span.icon.sc-smoothly-notification>p.sc-smoothly-notification{padding-right:1em}.sc-smoothly-notification-h>span.sc-smoothly-notification>p.sc-smoothly-notification{text-align:left}[hidden].sc-smoothly-notification-h{display:none}.sc-smoothly-notification-h>span.icon.sc-smoothly-notification>smoothly-icon.sc-smoothly-notification{margin:0 0.5rem}.sc-smoothly-notification-h>smoothly-trigger.sc-smoothly-notification{--smoothly-icon-size:1.6rem;position:absolute;right:0}`;const r=t(class t extends o{constructor(t){super();if(t!==false){this.__registerHost()}this.remove=i(this,"remove");this.closable=true;this.tick={};this.listener=t=>{if(t.state=="closed"){this.remove.emit(t)}else{this.tick={}}}}get properties(){let t;switch(this.notice.state){case"delayed":case"warning":t=["warning","warning-outline"];break;case"success":t=["success","checkmark-circle"];break;case"executing":t=["light","hourglass-outline"];break;case"failed":t=["danger","alert-circle"];break;default:t=["light",undefined];break}return t}onTrigger(t){if(t.detail.name=="close"){t.stopPropagation();this.notice.close()}}onUpdatedNotice(t,o){if(o){o.unlisten(this.listener)}t.listen(this.listener)}componentDidLoad(){this.onUpdatedNotice(this.notice)}render(){return s(e,{key:"6c91fd348be22152c98396a00e0f333901e7edb3",color:this.properties[0],fill:"solid"},this.closable&&s("smoothly-trigger",{key:"dfb962471e36cd4b2b063d81470dd2500c5f52ab",fill:"clear",name:"close"},s("smoothly-icon",{key:"0552e3732cdc2371b430c565b7bc243a6b855446",name:"close-circle-outline"})),s("span",{key:"c7df2fc46e03a56f937d3fcddce3ee9a9a199b88",class:this.icon?"icon":"clean"},this.icon&&s("smoothly-icon",{key:"8662182866050fc3aaeeb51b0d79529c0a57e10b",name:this.properties[1]}),s("p",{key:"0f539660c5267a748ba9fc514abdd33429b9042d"},this.notice.message)))}static get watchers(){return{notice:[{onUpdatedNotice:0}]}}static get style(){return l()}},[2,"smoothly-notification",{notice:[16],closable:[4],icon:[4],tick:[32]},[[0,"trigger","onTrigger"]],{notice:[{onUpdatedNotice:0}]}]);function h(){if(typeof customElements==="undefined"){return}const t=["smoothly-notification","smoothly-icon","smoothly-trigger"];t.forEach((t=>{switch(t){case"smoothly-notification":if(!customElements.get(c(t))){customElements.define(c(t),r)}break;case"smoothly-icon":if(!customElements.get(c(t))){n()}break;case"smoothly-trigger":if(!customElements.get(c(t))){a()}break}}))}h();export{r as N,h as d};
2
+ //# sourceMappingURL=p-D5dkLuTD.js.map
@@ -0,0 +1,2 @@
1
+ import{p as e,H as t,h as o,d as s,t as a}from"./p-BsZrGTcp.js";import{d as b}from"./p-BHEtq3Ue.js";import{d}from"./p-NGbZCAH9.js";import{d as l}from"./p-2Y5tLcQ1.js";const c=()=>`.sc-smoothly-tabs-demo-h{display:block}[hidden].sc-smoothly-tabs-demo-h{display:none}.sc-smoothly-tabs-demo-h>*.sc-smoothly-tabs-demo{margin:auto;max-width:1200px;width:100%;margin-block:5rem}.sc-smoothly-tabs-demo-h code.sc-smoothly-tabs-demo{color:rgb(var(--smoothly-medium-contrast));background-color:rgb(var(--smoothly-medium-color));padding-inline:0.25rem;border-radius:0.25rem}`;const m=e(class e extends t{constructor(e){super();if(e!==false){this.__registerHost()}}render(){return o(s,{key:"e5afcbf69dade2bfdfbccdb5ebef98067703e03e"},o("div",{key:"720708cebe6311006737245ba3bfd2ce495fddd4"},o("smoothly-button",{key:"9cc479c1ca7de47f611071bc020640509ec55f13",color:"primary",onClick:()=>this.extraTab1=!this.extraTab1},this.extraTab1?"Remove":"Add"," tab")),o("smoothly-tabs",{key:"5e91c482c3f8d282c48630216797762712fbd088",tabs:"multiple"},o("smoothly-tab",{key:"30fd2e83a0ad2e4ef4363b2471d5ef3a8f508e79",label:"Single Tab",open:true},o("strong",{key:"46b7eb4a05793c23e1235026732d599ad7cd8acf"},"Single Tab content here.")," If only one tab is available setting ",o("code",{key:"7f0e856a9e3b6f922c9a872e303f8ef2af92fe68"},"tabs")," to"," ",o("code",{key:"b8398697b2d6c2757cd0a9a6216b1ca9b1680053"},'"multiple"')," will hide the tab navigation and display the single tab's content directly."),this.extraTab1&&o("smoothly-tab",{key:"d52047652788873a578d9f071e07e7a0ade65ea9",label:"Extra tab"},"When there are more then one tab, the tab navigation will show.")),o("div",{key:"4ce9bdf4953f65e8296e45fc63ea4eef285010bd"},o("smoothly-button",{key:"68c65012a5382c124b140c26442bbbf00e09b94c",color:"primary",onClick:()=>this.extraTab2=!this.extraTab2},this.extraTab2?"Remove":"Add"," tab")),o("smoothly-tabs",{key:"7afa233b048274a8966859485ebbe28c76e6b87b"},o("smoothly-tab",{key:"390d8492e788d1f8748090a43e57b12f0ce88107",label:"Disabled tab",tooltip:"Tooltip for test3",disabled:true},"this is a test message again!"),o("smoothly-tab",{key:"f3e74d731d6b3fcd9d188a5653beaec79fc179ee",label:"test1",tooltip:"Tooltip for test1",open:true},"Hello world!"),o("smoothly-tab",{key:"6de96abf84eb6fb72065cdcc97691257cd0ced76",label:"test2"},"this is a test message!"),this.extraTab2&&o("smoothly-tab",{key:"01fba3e8e1ad1ed22b3458bd5240f4f4192f3145",label:"test-extra"},"this is a test message!")))}static get style(){return c()}},[2,"smoothly-tabs-demo",{extraTab1:[32],extraTab2:[32]}]);function i(){if(typeof customElements==="undefined"){return}const e=["smoothly-tabs-demo","smoothly-button","smoothly-tab","smoothly-tabs"];e.forEach((e=>{switch(e){case"smoothly-tabs-demo":if(!customElements.get(a(e))){customElements.define(a(e),m)}break;case"smoothly-button":if(!customElements.get(a(e))){b()}break;case"smoothly-tab":if(!customElements.get(a(e))){d()}break;case"smoothly-tabs":if(!customElements.get(a(e))){l()}break}}))}i();export{m as S,i as d};
2
+ //# sourceMappingURL=p-DGa_QPb9.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["styleCss","SmoothlyTabsDemo","__stencil_proxyCustomElement","HTMLElement","render","h","Host","key","color","onClick","this","extraTab1","tabs","label","open","extraTab2","tooltip","disabled"],"sources":["src/components/tabs/demo/style.css?tag=smoothly-tabs-demo&encapsulation=scoped","src/components/tabs/demo/index.tsx"],"sourcesContent":[":host {\n\tdisplay: block;\n}\n:host[hidden] {\n\tdisplay: none;\n}\n:host > * {\n\tmargin: auto;\n\tmax-width: 1200px;\n\twidth: 100%;\n\tmargin-block: 5rem;\n}\n:host code {\n\tcolor: rgb(var(--smoothly-medium-contrast));\n\tbackground-color: rgb(var(--smoothly-medium-color));\n\tpadding-inline: 0.25rem;\n\tborder-radius: 0.25rem;\n}\n","import { Component, h, Host, State } from \"@stencil/core\"\n\n@Component({\n\ttag: \"smoothly-tabs-demo\",\n\tstyleUrl: \"style.css\",\n\tscoped: true,\n})\nexport class SmoothlyTabsDemo {\n\t@State() extraTab1: boolean\n\t@State() extraTab2: boolean\n\n\trender() {\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t<div>\n\t\t\t\t\t<smoothly-button color=\"primary\" onClick={() => (this.extraTab1 = !this.extraTab1)}>\n\t\t\t\t\t\t{this.extraTab1 ? \"Remove\" : \"Add\"} tab\n\t\t\t\t\t</smoothly-button>\n\t\t\t\t</div>\n\t\t\t\t<smoothly-tabs tabs=\"multiple\">\n\t\t\t\t\t<smoothly-tab label=\"Single Tab\" open>\n\t\t\t\t\t\t<strong>Single Tab content here.</strong> If only one tab is available setting <code>tabs</code> to{\" \"}\n\t\t\t\t\t\t<code>\"multiple\"</code> will hide the tab navigation and display the single tab's content directly.\n\t\t\t\t\t</smoothly-tab>\n\t\t\t\t\t{this.extraTab1 && (\n\t\t\t\t\t\t<smoothly-tab label=\"Extra tab\">\n\t\t\t\t\t\t\tWhen there are more then one tab, the tab navigation will show.\n\t\t\t\t\t\t</smoothly-tab>\n\t\t\t\t\t)}\n\t\t\t\t</smoothly-tabs>\n\n\t\t\t\t<div>\n\t\t\t\t\t<smoothly-button color=\"primary\" onClick={() => (this.extraTab2 = !this.extraTab2)}>\n\t\t\t\t\t\t{this.extraTab2 ? \"Remove\" : \"Add\"} tab\n\t\t\t\t\t</smoothly-button>\n\t\t\t\t</div>\n\t\t\t\t<smoothly-tabs>\n\t\t\t\t\t<smoothly-tab label=\"Disabled tab\" tooltip=\"Tooltip for test3\" disabled>\n\t\t\t\t\t\tthis is a test message again!\n\t\t\t\t\t</smoothly-tab>\n\t\t\t\t\t<smoothly-tab label=\"test1\" tooltip=\"Tooltip for test1\" open>\n\t\t\t\t\t\tHello world!\n\t\t\t\t\t</smoothly-tab>\n\t\t\t\t\t<smoothly-tab label=\"test2\">this is a test message!</smoothly-tab>\n\t\t\t\t\t{this.extraTab2 && <smoothly-tab label=\"test-extra\">this is a test message!</smoothly-tab>}\n\t\t\t\t</smoothly-tabs>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"4KAAA,MAAMA,EAAW,IAAM,kY,MCOVC,EAAgBC,EAAA,MAAAD,UAAAE,E,4DAI5B,MAAAC,GACC,OACCC,EAACC,EAAI,CAAAC,IAAA,4CACJF,EAAA,OAAAE,IAAA,4CACCF,EAAA,mBAAAE,IAAA,2CAAiBC,MAAM,UAAUC,QAAS,IAAOC,KAAKC,WAAaD,KAAKC,WACtED,KAAKC,UAAY,SAAW,MAAK,SAGpCN,EAAA,iBAAAE,IAAA,2CAAeK,KAAK,YACnBP,EAAA,gBAAAE,IAAA,2CAAcM,MAAM,aAAaC,KAAI,MACpCT,EAAA,UAAAE,IAAA,wEAAyC,yCAAsCF,EAAA,QAAAE,IAAA,oDAAiB,MAAI,IACpGF,EAAA,QAAAE,IAAA,0DACc,gFACdG,KAAKC,WACLN,EAAA,gBAAAE,IAAA,2CAAcM,MAAM,aAAW,oEAMjCR,EAAA,OAAAE,IAAA,4CACCF,EAAA,mBAAAE,IAAA,2CAAiBC,MAAM,UAAUC,QAAS,IAAOC,KAAKK,WAAaL,KAAKK,WACtEL,KAAKK,UAAY,SAAW,MAAK,SAGpCV,EAAA,iBAAAE,IAAA,4CACCF,EAAA,gBAAAE,IAAA,2CAAcM,MAAM,eAAeG,QAAQ,oBAAoBC,SAAQ,uCAGvEZ,EAAA,gBAAAE,IAAA,2CAAcM,MAAM,QAAQG,QAAQ,oBAAoBF,KAAI,sBAG5DT,EAAA,gBAAAE,IAAA,2CAAcM,MAAM,SAAO,2BAC1BH,KAAKK,WAAaV,EAAA,gBAAAE,IAAA,2CAAcM,MAAM,cAAY,4B","ignoreList":[]}
1
+ {"version":3,"names":["styleCss","SmoothlyTabsDemo","__stencil_proxyCustomElement","HTMLElement","render","h","Host","key","color","onClick","this","extraTab1","tabs","label","open","extraTab2","tooltip","disabled"],"sources":["src/components/tabs/demo/style.css?tag=smoothly-tabs-demo&encapsulation=scoped","src/components/tabs/demo/index.tsx"],"sourcesContent":[":host {\n\tdisplay: block;\n}\n:host[hidden] {\n\tdisplay: none;\n}\n:host > * {\n\tmargin: auto;\n\tmax-width: 1200px;\n\twidth: 100%;\n\tmargin-block: 5rem;\n}\n:host code {\n\tcolor: rgb(var(--smoothly-medium-contrast));\n\tbackground-color: rgb(var(--smoothly-medium-color));\n\tpadding-inline: 0.25rem;\n\tborder-radius: 0.25rem;\n}\n","import { Component, h, Host, State } from \"@stencil/core\"\n\n@Component({\n\ttag: \"smoothly-tabs-demo\",\n\tstyleUrl: \"style.css\",\n\tscoped: true,\n})\nexport class SmoothlyTabsDemo {\n\t@State() extraTab1: boolean\n\t@State() extraTab2: boolean\n\n\trender() {\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t<div>\n\t\t\t\t\t<smoothly-button color=\"primary\" onClick={() => (this.extraTab1 = !this.extraTab1)}>\n\t\t\t\t\t\t{this.extraTab1 ? \"Remove\" : \"Add\"} tab\n\t\t\t\t\t</smoothly-button>\n\t\t\t\t</div>\n\t\t\t\t<smoothly-tabs tabs=\"multiple\">\n\t\t\t\t\t<smoothly-tab label=\"Single Tab\" open>\n\t\t\t\t\t\t<strong>Single Tab content here.</strong> If only one tab is available setting <code>tabs</code> to{\" \"}\n\t\t\t\t\t\t<code>\"multiple\"</code> will hide the tab navigation and display the single tab's content directly.\n\t\t\t\t\t</smoothly-tab>\n\t\t\t\t\t{this.extraTab1 && (\n\t\t\t\t\t\t<smoothly-tab label=\"Extra tab\">\n\t\t\t\t\t\t\tWhen there are more then one tab, the tab navigation will show.\n\t\t\t\t\t\t</smoothly-tab>\n\t\t\t\t\t)}\n\t\t\t\t</smoothly-tabs>\n\n\t\t\t\t<div>\n\t\t\t\t\t<smoothly-button color=\"primary\" onClick={() => (this.extraTab2 = !this.extraTab2)}>\n\t\t\t\t\t\t{this.extraTab2 ? \"Remove\" : \"Add\"} tab\n\t\t\t\t\t</smoothly-button>\n\t\t\t\t</div>\n\t\t\t\t<smoothly-tabs>\n\t\t\t\t\t<smoothly-tab label=\"Disabled tab\" tooltip=\"Tooltip for test3\" disabled>\n\t\t\t\t\t\tthis is a test message again!\n\t\t\t\t\t</smoothly-tab>\n\t\t\t\t\t<smoothly-tab label=\"test1\" tooltip=\"Tooltip for test1\" open>\n\t\t\t\t\t\tHello world!\n\t\t\t\t\t</smoothly-tab>\n\t\t\t\t\t<smoothly-tab label=\"test2\">this is a test message!</smoothly-tab>\n\t\t\t\t\t{this.extraTab2 && <smoothly-tab label=\"test-extra\">this is a test message!</smoothly-tab>}\n\t\t\t\t</smoothly-tabs>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"uKAAA,MAAMA,EAAW,IAAM,kY,MCOVC,EAAgBC,EAAA,MAAAD,UAAAE,E,4DAI5B,MAAAC,GACC,OACCC,EAACC,EAAI,CAAAC,IAAA,4CACJF,EAAA,OAAAE,IAAA,4CACCF,EAAA,mBAAAE,IAAA,2CAAiBC,MAAM,UAAUC,QAAS,IAAOC,KAAKC,WAAaD,KAAKC,WACtED,KAAKC,UAAY,SAAW,MAAK,SAGpCN,EAAA,iBAAAE,IAAA,2CAAeK,KAAK,YACnBP,EAAA,gBAAAE,IAAA,2CAAcM,MAAM,aAAaC,KAAI,MACpCT,EAAA,UAAAE,IAAA,wEAAyC,yCAAsCF,EAAA,QAAAE,IAAA,oDAAiB,MAAI,IACpGF,EAAA,QAAAE,IAAA,0DACc,gFACdG,KAAKC,WACLN,EAAA,gBAAAE,IAAA,2CAAcM,MAAM,aAAW,oEAMjCR,EAAA,OAAAE,IAAA,4CACCF,EAAA,mBAAAE,IAAA,2CAAiBC,MAAM,UAAUC,QAAS,IAAOC,KAAKK,WAAaL,KAAKK,WACtEL,KAAKK,UAAY,SAAW,MAAK,SAGpCV,EAAA,iBAAAE,IAAA,4CACCF,EAAA,gBAAAE,IAAA,2CAAcM,MAAM,eAAeG,QAAQ,oBAAoBC,SAAQ,uCAGvEZ,EAAA,gBAAAE,IAAA,2CAAcM,MAAM,QAAQG,QAAQ,oBAAoBF,KAAI,sBAG5DT,EAAA,gBAAAE,IAAA,2CAAcM,MAAM,SAAO,2BAC1BH,KAAKK,WAAaV,EAAA,gBAAAE,IAAA,2CAAcM,MAAM,cAAY,4B","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- import{p as o,H as e,c as t,h as i,d as s,t as a}from"./p-BsZrGTcp.js";import{d as l}from"./p-DIz1nEPY.js";import{d as n}from"./p-BiQsRsV4.js";import{d as h}from"./p-DGxkSNZ-.js";import{d as r}from"./p-BDW8BGmy.js";import{d as m}from"./p-DRiOEv4L.js";const d=()=>`smoothly-app{--header-height:5rem;display:block}smoothly-app>smoothly-notifier>main{height:calc(100dvh - var(--header-height))}smoothly-app[hidden]{display:none}smoothly-app>smoothly-notifier{height:100%;background:none}smoothly-app.smoothly-mobile-mode>smoothly-notifier>header:has(smoothly-burger)>nav>ul smoothly-app-room{width:100%;height:4em}smoothly-app>smoothly-notifier>header{position:sticky;top:0;z-index:20;width:100%;height:var(--header-height);display:flex;justify-content:space-between;box-sizing:border-box;align-items:center;box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade)) inset}smoothly-app>smoothly-notifier>header>nav{width:100%;flex-shrink:2;height:100%}smoothly-app>smoothly-notifier>header>nav,smoothly-app>smoothly-notifier>header>nav>ul{display:flex;margin:0}smoothly-app:not([label])>smoothly-notifier>header>h1{display:none}smoothly-app>smoothly-notifier>header>h1{margin-left:1rem;margin-bottom:0.8em;display:flex;height:100%}smoothly-app>smoothly-notifier>header>h1>a{display:inline-block;align-self:center;size:100%;background-position-y:center;text-decoration:none;white-space:nowrap}smoothly-app>smoothly-notifier>header>nav>ul{width:100%}smoothly-app>smoothly-notifier>header>nav>ul>div.nav-start-container{display:flex;align-items:center;height:100%}smoothly-app>smoothly-notifier>header>nav>ul>div.nav-end-container{display:flex;align-items:center;height:100%;margin-left:auto;margin-right:1rem}smoothly-app>smoothly-notifier>header>nav>ul>[slot="nav-end"]{width:fit-content;align-self:center;height:fit-content;margin-left:10rem}smoothly-app>smoothly-notifier>header>nav>ul li a{display:flex;height:2.3rem;text-decoration:none;align-items:center;align-self:center}smoothly-app.smoothly-mobile-mode:not([menu-open])>smoothly-notifier>header>nav{display:none}smoothly-app>smoothly-notifier>main>div{overflow-y:scroll;height:100%}smoothly-app.smoothly-mobile-mode>smoothly-notifier>header>nav{width:fit-content;max-width:100%;top:100%;position:absolute;max-height:calc(100dvh - var(--header-height));overflow-y:scroll;right:0;height:auto}smoothly-app.smoothly-mobile-mode>smoothly-notifier>header>nav,smoothly-app.smoothly-mobile-mode>smoothly-notifier>header>nav>ul{flex-direction:column;background-color:rgba(var(--smoothly-color))}smoothly-app.smoothly-mobile-mode>smoothly-notifier>header>nav>ul{padding:1.5rem;box-sizing:border-box}smoothly-app.smoothly-mobile-mode>smoothly-notifier>header>nav>ul li{margin-right:0;width:100%}smoothly-app:not(.smoothly-mobile-mode)>smoothly-notifier>header>smoothly-burger{display:none}smoothly-app.smoothly-mobile-mode>smoothly-notifier>header>smoothly-burger{position:absolute;top:0;right:0}smoothly-app.smoothly-mobile-mode>smoothly-notifier>header>nav>ul>[slot="nav-start"]{display:none}smoothly-app.smoothly-mobile-mode>smoothly-notifier>header>nav>ul>div.nav-start-container,smoothly-app.smoothly-mobile-mode>smoothly-notifier>header>nav>ul>div.nav-end-container{flex-direction:column;margin:0;align-items:start;justify-content:center}smoothly-app.smoothly-mobile-mode>smoothly-notifier>header>nav>ul>div.nav-start-container>*:last-child{margin-bottom:1em}`;const c=o(class o extends e{constructor(o){super();if(o!==false){this.__registerHost()}this.smoothlyUrlChange=t(this,"smoothlyUrlChange");this.menuOpen=false;this.navBreakpoint="48rem";this.mobileMode=false;this.rooms={}}componentWillLoad(){const o=window.matchMedia(`(max-width: ${this.navBreakpoint})`);this.mobileMode=o.matches;o.addEventListener("change",(o=>this.updateMobileMode(o.matches)))}componentDidLoad(){this.updateMobileMode(this.mobileMode)}updateMobileMode(o){this.mobileMode=o;Object.values(this.rooms).forEach((e=>e===null||e===void 0?void 0:e.element.setMobileMode(o)));if(!o){this.menuOpen=false}}async componentDidRender(){var o;if(!this.selected&&!window.location.search){(o=this.home&&this.rooms[this.home]?this.rooms[this.home]:Object.values(this.rooms).find((o=>!(o===null||o===void 0?void 0:o.element.disabled))))===null||o===void 0?void 0:o.element.setSelected(true)}}async selectRoom(o){var e;(e=this.rooms[o])===null||e===void 0?void 0:e.element.setSelected(true)}async selectedChanged(){var o;Object.values(this.rooms).forEach((o=>{var e;return(o===null||o===void 0?void 0:o.element.path)!=((e=this.selected)===null||e===void 0?void 0:e.element.path)&&(o===null||o===void 0?void 0:o.element.setSelected(false))}));const e=await((o=this.selected)===null||o===void 0?void 0:o.element.getContent());requestAnimationFrame((()=>{if(this.mainElement&&e){this.mainElement.replaceChildren(e)}}))}async locationChangeHandler(o){var e;(e=this.rooms[o.state.smoothlyPath])===null||e===void 0?void 0:e.element.setSelected(true,{history:true});this.smoothlyUrlChange.emit(window.location.href)}roomSelectedHandler(o){this.selected={element:o.target};if(this.mobileMode){this.menuOpen=false}if(!o.detail.history){const e=this.selected.element.path.toString();const t=new URL(window.location.pathname==e?window.location.href:window.location.origin);t.pathname=e;t.search=o.detail.query?`?${o.detail.query}`:"";window.history.pushState({smoothlyPath:e,smoothlyQuery:o.detail.query||""},"",t.href)}}roomLoadedHandler(o){const e=this.rooms[o.target.path.toString()]={element:o.target};if(e.element.selected){this.selected=e}}clickHandler(o){if(this.mobileMode&&!o.composedPath().some((o=>o==this.burgerElement||o==this.navElement))){this.menuOpen=false}}render(){return i(s,{key:"c0204db44c75c6235d5eb2adc776112372989a13",class:{"smoothly-mobile-mode":this.mobileMode}},i("smoothly-notifier",{key:"2c9ff0711219189499cbe1cb6f37e41715f4234a"},i("header",{key:"25b6ac0023b7ff634d315627297f1968fe78d199",color:this.color},i("h1",{key:"cb52ccc4d73bee709c95597b08c7260c28c116c0"},i("a",{key:"9db53cc3d88d3bb2c557dddc306adda2b9c1bb57",href:""},this.label)),i("slot",{key:"d8f71e17edf3b65d4579386004666b4b7d8655f7",name:"header"}),i("nav",{key:"71416658d3fd7578d1e9911355efe8250b7f1b73",ref:o=>this.navElement=o},i("ul",{key:"79dae2e8b641e4d4fcb13245fa647d3b4fcbdea7"},i("div",{key:"4f85e34495814cf144eb1b39b4b0f5a07807ee51",class:"nav-start-container"},i("slot",{key:"06f4ce02a90619d13ea21d6564f5434233346c06",name:"nav-start"})),i("slot",{key:"f261dcbcd2781b0c6d6f499bd559763bc7172742"}),i("div",{key:"ed668608a800ef08363b9ae239a392dfd515f49a",class:"nav-end-container"},i("slot",{key:"c5d11b8ac9b158ca030df27ff345c82979cb6ae5",name:"nav-end"})))),i("smoothly-burger",{key:"ce9f13229cc55cc95e5bc9bacc4c692febd15ec4",ref:o=>this.burgerElement=o,open:this.menuOpen,onSmoothlyNavStatus:o=>(o.stopPropagation(),this.menuOpen=o.detail)})),i("main",{key:"62e5ea6a00dbbc910f8c2682b55727487202b248",ref:o=>this.mainElement=o})))}static get watchers(){return{selected:[{selectedChanged:0}]}}static get style(){return d()}},[260,"smoothly-app",{label:[513],color:[1],home:[1],menuOpen:[1540,"menu-open"],navBreakpoint:[513,"nav-breakpoint"],mobileMode:[32],selected:[32],selectRoom:[64]},[[8,"popstate","locationChangeHandler"],[0,"smoothlyRoomSelect","roomSelectedHandler"],[0,"smoothlyRoomLoad","roomLoadedHandler"],[8,"click","clickHandler"]],{selected:[{selectedChanged:0}]}]);function y(){if(typeof customElements==="undefined"){return}const o=["smoothly-app","smoothly-burger","smoothly-icon","smoothly-notification","smoothly-notifier","smoothly-trigger"];o.forEach((o=>{switch(o){case"smoothly-app":if(!customElements.get(a(o))){customElements.define(a(o),c)}break;case"smoothly-burger":if(!customElements.get(a(o))){l()}break;case"smoothly-icon":if(!customElements.get(a(o))){n()}break;case"smoothly-notification":if(!customElements.get(a(o))){h()}break;case"smoothly-notifier":if(!customElements.get(a(o))){r()}break;case"smoothly-trigger":if(!customElements.get(a(o))){m()}break}}))}y();export{c as S,y as d};
2
- //# sourceMappingURL=p-97N6vnZd.js.map
1
+ import{p as o,H as e,c as t,h as i,d as a,t as s}from"./p-BsZrGTcp.js";import{d as l}from"./p-DIz1nEPY.js";import{d as n}from"./p-BiQsRsV4.js";import{d as h}from"./p-D5dkLuTD.js";import{d as r}from"./p-6PsJb2Ez.js";import{d as m}from"./p-CmPHR3tf.js";const d=()=>`smoothly-app{--header-height:5rem;display:block}smoothly-app>smoothly-notifier>main{height:calc(100dvh - var(--header-height))}smoothly-app[hidden]{display:none}smoothly-app>smoothly-notifier{height:100%;background:none}smoothly-app.smoothly-mobile-mode>smoothly-notifier>header:has(smoothly-burger)>nav>ul smoothly-app-room{width:100%;height:4em}smoothly-app>smoothly-notifier>header{position:sticky;top:0;z-index:20;width:100%;height:var(--header-height);display:flex;justify-content:space-between;box-sizing:border-box;align-items:center;box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade)) inset}smoothly-app>smoothly-notifier>header>nav{width:100%;flex-shrink:2;height:100%}smoothly-app>smoothly-notifier>header>nav,smoothly-app>smoothly-notifier>header>nav>ul{display:flex;margin:0}smoothly-app:not([label])>smoothly-notifier>header>h1{display:none}smoothly-app>smoothly-notifier>header>h1{margin-left:1rem;margin-bottom:0.8em;display:flex;height:100%}smoothly-app>smoothly-notifier>header>h1>a{display:inline-block;align-self:center;size:100%;background-position-y:center;text-decoration:none;white-space:nowrap}smoothly-app>smoothly-notifier>header>nav>ul{width:100%}smoothly-app>smoothly-notifier>header>nav>ul>div.nav-start-container{display:flex;align-items:center;height:100%}smoothly-app>smoothly-notifier>header>nav>ul>div.nav-end-container{display:flex;align-items:center;height:100%;margin-left:auto;margin-right:1rem}smoothly-app>smoothly-notifier>header>nav>ul>[slot="nav-end"]{width:fit-content;align-self:center;height:fit-content;margin-left:10rem}smoothly-app>smoothly-notifier>header>nav>ul li a{display:flex;height:2.3rem;text-decoration:none;align-items:center;align-self:center}smoothly-app.smoothly-mobile-mode:not([menu-open])>smoothly-notifier>header>nav{display:none}smoothly-app>smoothly-notifier>main>div{overflow-y:scroll;height:100%}smoothly-app.smoothly-mobile-mode>smoothly-notifier>header>nav{width:fit-content;max-width:100%;top:100%;position:absolute;max-height:calc(100dvh - var(--header-height));overflow-y:scroll;right:0;height:auto}smoothly-app.smoothly-mobile-mode>smoothly-notifier>header>nav,smoothly-app.smoothly-mobile-mode>smoothly-notifier>header>nav>ul{flex-direction:column;background-color:rgba(var(--smoothly-color))}smoothly-app.smoothly-mobile-mode>smoothly-notifier>header>nav>ul{padding:1.5rem;box-sizing:border-box}smoothly-app.smoothly-mobile-mode>smoothly-notifier>header>nav>ul li{margin-right:0;width:100%}smoothly-app:not(.smoothly-mobile-mode)>smoothly-notifier>header>smoothly-burger{display:none}smoothly-app.smoothly-mobile-mode>smoothly-notifier>header>smoothly-burger{position:absolute;top:0;right:0}smoothly-app.smoothly-mobile-mode>smoothly-notifier>header>nav>ul>[slot="nav-start"]{display:none}smoothly-app.smoothly-mobile-mode>smoothly-notifier>header>nav>ul>div.nav-start-container,smoothly-app.smoothly-mobile-mode>smoothly-notifier>header>nav>ul>div.nav-end-container{flex-direction:column;margin:0;align-items:start;justify-content:center}smoothly-app.smoothly-mobile-mode>smoothly-notifier>header>nav>ul>div.nav-start-container>*:last-child{margin-bottom:1em}`;const c=o(class o extends e{constructor(o){super();if(o!==false){this.__registerHost()}this.smoothlyUrlChange=t(this,"smoothlyUrlChange");this.menuOpen=false;this.navBreakpoint="48rem";this.mobileMode=false;this.rooms={}}componentWillLoad(){const o=window.matchMedia(`(max-width: ${this.navBreakpoint})`);this.mobileMode=o.matches;o.addEventListener("change",(o=>this.updateMobileMode(o.matches)))}componentDidLoad(){this.updateMobileMode(this.mobileMode)}updateMobileMode(o){this.mobileMode=o;Object.values(this.rooms).forEach((e=>e===null||e===void 0?void 0:e.element.setMobileMode(o)));if(!o){this.menuOpen=false}}async componentDidRender(){var o;if(!this.selected&&!window.location.search){(o=this.home&&this.rooms[this.home]?this.rooms[this.home]:Object.values(this.rooms).find((o=>!(o===null||o===void 0?void 0:o.element.disabled))))===null||o===void 0?void 0:o.element.setSelected(true)}}async selectRoom(o){var e;(e=this.rooms[o])===null||e===void 0?void 0:e.element.setSelected(true)}async selectedChanged(){var o;Object.values(this.rooms).forEach((o=>{var e;return(o===null||o===void 0?void 0:o.element.path)!=((e=this.selected)===null||e===void 0?void 0:e.element.path)&&(o===null||o===void 0?void 0:o.element.setSelected(false))}));const e=await((o=this.selected)===null||o===void 0?void 0:o.element.getContent());requestAnimationFrame((()=>{if(this.mainElement&&e){this.mainElement.replaceChildren(e)}}))}async locationChangeHandler(o){var e;(e=this.rooms[o.state.smoothlyPath])===null||e===void 0?void 0:e.element.setSelected(true,{history:true});this.smoothlyUrlChange.emit(window.location.href)}roomSelectedHandler(o){this.selected={element:o.target};if(this.mobileMode){this.menuOpen=false}if(!o.detail.history){const e=o.detail.path;const t=new URL(window.location.pathname==e?window.location.href:window.location.origin);t.pathname=e;t.search=o.detail.query?`?${o.detail.query}`:"";window.history.pushState({smoothlyPath:e,smoothlyQuery:o.detail.query||""},"",t.href)}}roomLoadedHandler(o){const e=this.rooms[o.target.path.toString()]={element:o.target};if(e.element.selected){this.selected=e}}clickHandler(o){if(this.mobileMode&&!o.composedPath().some((o=>o==this.burgerElement||o==this.navElement))){this.menuOpen=false}}render(){return i(a,{key:"746fa3adf359072b95f0b00ecea914189bdfead2",class:{"smoothly-mobile-mode":this.mobileMode}},i("smoothly-notifier",{key:"ddf542afef536ab6141394b658e82686bd414e69"},i("header",{key:"511a856fb813b5476a705c993734380ad94194cf",color:this.color},i("h1",{key:"9c3e79f9fcd3ef587183e3b83d646753a0f8dd7c"},i("a",{key:"9be4ba4d2ffaeaca1cb00752b5fcba0b1b64c261",href:""},this.label)),i("slot",{key:"92573b6cffad97e2afbfb6b6a7d5d1fb8f0ec59e",name:"header"}),i("nav",{key:"4a7c5cbbb39a82b845775d6dd0015a47ab72757d",ref:o=>this.navElement=o},i("ul",{key:"a8035a4e9143d4cd49ac4edfbb837785a8a58cd8"},i("div",{key:"2c4de281ad7f522c2c09acfcad890eadabc30c40",class:"nav-start-container"},i("slot",{key:"05e3f3a40f45d9505a463a29c90bbfcc2a3ff330",name:"nav-start"})),i("slot",{key:"695fd5bef476d1c00e5654803c03e94c8218943a"}),i("div",{key:"382c0271207f040374c3f69aa2946d0938bbb1c1",class:"nav-end-container"},i("slot",{key:"02fe44b3c557b7a930f24fdc465d8824eccbbbef",name:"nav-end"})))),i("smoothly-burger",{key:"fad0b5d8e2841ed284af04d9b0554e91ddf98575",ref:o=>this.burgerElement=o,open:this.menuOpen,onSmoothlyNavStatus:o=>(o.stopPropagation(),this.menuOpen=o.detail)})),i("main",{key:"5c6464b6db6e0eba2acbaf5efd549cebe08c1a95",ref:o=>this.mainElement=o})))}static get watchers(){return{selected:[{selectedChanged:0}]}}static get style(){return d()}},[260,"smoothly-app",{label:[513],color:[1],home:[1],menuOpen:[1540,"menu-open"],navBreakpoint:[513,"nav-breakpoint"],mobileMode:[32],selected:[32],selectRoom:[64]},[[8,"popstate","locationChangeHandler"],[0,"smoothlyRoomSelect","roomSelectedHandler"],[0,"smoothlyRoomLoad","roomLoadedHandler"],[8,"click","clickHandler"]],{selected:[{selectedChanged:0}]}]);function y(){if(typeof customElements==="undefined"){return}const o=["smoothly-app","smoothly-burger","smoothly-icon","smoothly-notification","smoothly-notifier","smoothly-trigger"];o.forEach((o=>{switch(o){case"smoothly-app":if(!customElements.get(s(o))){customElements.define(s(o),c)}break;case"smoothly-burger":if(!customElements.get(s(o))){l()}break;case"smoothly-icon":if(!customElements.get(s(o))){n()}break;case"smoothly-notification":if(!customElements.get(s(o))){h()}break;case"smoothly-notifier":if(!customElements.get(s(o))){r()}break;case"smoothly-trigger":if(!customElements.get(s(o))){m()}break}}))}y();export{c as S,y as d};
2
+ //# sourceMappingURL=p-DHj4bfJ8.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["styleCss","SmoothlyApp","__stencil_proxyCustomElement","HTMLElement","constructor","registerHost","this","menuOpen","navBreakpoint","mobileMode","rooms","componentWillLoad","mediaQuery","window","matchMedia","matches","addEventListener","e","updateMobileMode","componentDidLoad","Object","values","forEach","room","element","setMobileMode","componentDidRender","selected","location","search","_a","home","find","disabled","setSelected","selectRoom","path","selectedChanged","content","getContent","requestAnimationFrame","mainElement","replaceChildren","locationChangeHandler","event","state","smoothlyPath","history","smoothlyUrlChange","emit","href","roomSelectedHandler","target","detail","toString","URL","pathname","origin","query","pushState","smoothlyQuery","roomLoadedHandler","clickHandler","composedPath","some","burgerElement","navElement","render","h","Host","key","class","color","label","name","ref","open","onSmoothlyNavStatus","stopPropagation"],"sources":["src/components/app/style.css?tag=smoothly-app","src/components/app/index.tsx"],"sourcesContent":["smoothly-app {\n\t--header-height: 5rem;\n\tdisplay: block;\n}\n\nsmoothly-app>smoothly-notifier>main {\n\theight: calc(100dvh - var(--header-height));\n}\n\nsmoothly-app[hidden] {\n\tdisplay: none;\n}\n\nsmoothly-app>smoothly-notifier {\n\theight: 100%;\n\tbackground: none;\n}\n\nsmoothly-app.smoothly-mobile-mode>smoothly-notifier>header:has(smoothly-burger)>nav>ul smoothly-app-room {\n\twidth: 100%;\n\theight: 4em;\n}\n\nsmoothly-app>smoothly-notifier>header {\n\tposition: sticky;\n\ttop: 0;\n\tz-index: 20;\n\twidth: 100%;\n\theight: var(--header-height);\n\tdisplay: flex;\n\tjustify-content: space-between;\n\tbox-sizing: border-box;\n\talign-items: center;\n\tbox-shadow: 0 1px 0 0 rgb(var(--smoothly-color-shade)) inset;\n}\n\nsmoothly-app>smoothly-notifier>header>nav {\n\twidth: 100%;\n\tflex-shrink: 2;\n\theight: 100%;\n}\n\nsmoothly-app>smoothly-notifier>header>nav,\nsmoothly-app>smoothly-notifier>header>nav>ul {\n\tdisplay: flex;\n\tmargin: 0;\n}\n\nsmoothly-app:not([label])>smoothly-notifier>header>h1 {\n\tdisplay: none;\n}\nsmoothly-app>smoothly-notifier>header>h1 {\n\tmargin-left: 1rem;\n\tmargin-bottom: 0.8em;\n\tdisplay: flex;\n\theight: 100%;\n}\n\nsmoothly-app>smoothly-notifier>header>h1>a {\n\tdisplay: inline-block;\n\talign-self: center;\n\tsize: 100%;\n\tbackground-position-y: center;\n\ttext-decoration: none;\n\twhite-space: nowrap;\n}\n\nsmoothly-app>smoothly-notifier>header>nav>ul {\n\twidth: 100%;\n}\n\nsmoothly-app>smoothly-notifier>header>nav>ul>div.nav-start-container {\n\tdisplay: flex;\n\talign-items: center;\n\theight: 100%;\n}\n\nsmoothly-app>smoothly-notifier>header>nav>ul>div.nav-end-container {\n\tdisplay: flex;\n\talign-items: center;\n\theight: 100%;\n\tmargin-left: auto;\n\tmargin-right: 1rem;\n}\n\nsmoothly-app>smoothly-notifier>header>nav>ul>[slot=\"nav-end\"] {\n\twidth: fit-content;\n\talign-self: center;\n\theight: fit-content;\n\tmargin-left: 10rem;\n}\n\nsmoothly-app>smoothly-notifier>header>nav>ul li a {\n\tdisplay: flex;\n\theight: 2.3rem;\n\ttext-decoration: none;\n\talign-items: center;\n\talign-self: center;\n}\n\nsmoothly-app.smoothly-mobile-mode:not([menu-open])>smoothly-notifier>header>nav {\n\tdisplay: none;\n}\n\nsmoothly-app>smoothly-notifier>main>div {\n\toverflow-y: scroll;\n\theight: 100%;\n}\n\n/* Mobile mode */\nsmoothly-app.smoothly-mobile-mode>smoothly-notifier>header>nav {\n\twidth: fit-content;\n\tmax-width: 100%;\n\ttop: 100%;\n\tposition: absolute;\n\tmax-height: calc(100dvh - var(--header-height));\n\toverflow-y: scroll;\n\tright: 0;\n\theight: auto;\n}\n\nsmoothly-app.smoothly-mobile-mode>smoothly-notifier>header>nav,\nsmoothly-app.smoothly-mobile-mode>smoothly-notifier>header>nav>ul {\n\tflex-direction: column;\n\tbackground-color: rgba(var(--smoothly-color));\n}\n\nsmoothly-app.smoothly-mobile-mode>smoothly-notifier>header>nav>ul {\n\tpadding: 1.5rem;\n\tbox-sizing: border-box;\n}\n\nsmoothly-app.smoothly-mobile-mode>smoothly-notifier>header>nav>ul li {\n\tmargin-right: 0;\n\twidth: 100%;\n}\nsmoothly-app:not(.smoothly-mobile-mode)>smoothly-notifier>header>smoothly-burger {\n\tdisplay: none;\n}\nsmoothly-app.smoothly-mobile-mode>smoothly-notifier>header>smoothly-burger {\n\tposition: absolute;\n\ttop: 0;\n\tright: 0;\n}\n\nsmoothly-app.smoothly-mobile-mode>smoothly-notifier>header>nav>ul>[slot=\"nav-start\"] {\n\tdisplay: none;\n}\n\nsmoothly-app.smoothly-mobile-mode>smoothly-notifier>header>nav>ul>div.nav-start-container,\nsmoothly-app.smoothly-mobile-mode>smoothly-notifier>header>nav>ul>div.nav-end-container {\n\tflex-direction: column;\n\tmargin: 0;\n\talign-items: start;\n\tjustify-content: center;\n}\n\nsmoothly-app.smoothly-mobile-mode>smoothly-notifier>header>nav>ul>div.nav-start-container>*:last-child {\n\tmargin-bottom: 1em;\n}\n\n","import { Component, Event, EventEmitter, h, Host, Listen, Method, Prop, State, Watch } from \"@stencil/core\"\nimport { SmoothlyAppRoomCustomEvent } from \"../../components\"\nimport { Color } from \"../../model\"\n\ntype Room = {\n\telement: HTMLSmoothlyAppRoomElement\n}\n@Component({\n\ttag: \"smoothly-app\",\n\tstyleUrl: \"style.css\",\n\tscoped: false,\n})\nexport class SmoothlyApp {\n\t@Prop({ reflect: true }) label?: string\n\t@Prop() color: Color\n\t@Prop() home?: string\n\t@Prop({ mutable: true, reflect: true }) menuOpen = false\n\t@Prop({ reflect: true }) navBreakpoint: `${number}${\"px\" | \"em\" | \"rem\"}` = \"48rem\"\n\t@State() mobileMode = false\n\t@State() selected?: Room\n\t@Event() smoothlyUrlChange: EventEmitter<string>\n\tprivate burgerElement?: HTMLSmoothlyBurgerElement\n\tprivate navElement?: HTMLElement\n\tmainElement?: HTMLElement\n\trooms: Record<string, Room | undefined> = {}\n\n\tcomponentWillLoad() {\n\t\tconst mediaQuery = window.matchMedia(`(max-width: ${this.navBreakpoint})`)\n\t\tthis.mobileMode = mediaQuery.matches\n\t\tmediaQuery.addEventListener(\"change\", e => this.updateMobileMode(e.matches))\n\t}\n\tcomponentDidLoad() {\n\t\tthis.updateMobileMode(this.mobileMode)\n\t}\n\tupdateMobileMode(mobileMode: boolean) {\n\t\tthis.mobileMode = mobileMode\n\t\tObject.values(this.rooms).forEach(room => room?.element.setMobileMode(mobileMode))\n\t\tif (!mobileMode) {\n\t\t\tthis.menuOpen = false\n\t\t}\n\t}\n\n\tasync componentDidRender() {\n\t\tif (!this.selected && !window.location.search) {\n\t\t\t;(this.home && this.rooms[this.home]\n\t\t\t\t? this.rooms[this.home]\n\t\t\t\t: Object.values(this.rooms).find(room => !room?.element.disabled)\n\t\t\t)?.element.setSelected(true)\n\t\t}\n\t}\n\t@Method()\n\tasync selectRoom(path: string) {\n\t\tthis.rooms[path]?.element.setSelected(true)\n\t}\n\t@Watch(\"selected\")\n\tasync selectedChanged() {\n\t\tObject.values(this.rooms).forEach(\n\t\t\troom => room?.element.path != this.selected?.element.path && room?.element.setSelected(false)\n\t\t)\n\t\tconst content = await this.selected?.element.getContent()\n\t\trequestAnimationFrame(() => {\n\t\t\tif (this.mainElement && content) {\n\t\t\t\tthis.mainElement.replaceChildren(content)\n\t\t\t}\n\t\t})\n\t}\n\t@Listen(\"popstate\", { target: \"window\" })\n\tasync locationChangeHandler(event: PopStateEvent) {\n\t\tthis.rooms[event.state.smoothlyPath]?.element.setSelected(true, { history: true })\n\t\tthis.smoothlyUrlChange.emit(window.location.href)\n\t}\n\t@Listen(\"smoothlyRoomSelect\")\n\troomSelectedHandler(event: SmoothlyAppRoomCustomEvent<{ history: boolean; query?: string }>) {\n\t\tthis.selected = { element: event.target }\n\t\tif (this.mobileMode) {\n\t\t\tthis.menuOpen = false\n\t\t}\n\t\tif (!event.detail.history) {\n\t\t\tconst path = this.selected.element.path.toString()\n\t\t\tconst location = new URL(window.location.pathname == path ? window.location.href : window.location.origin)\n\t\t\tlocation.pathname = path\n\t\t\tlocation.search = event.detail.query ? `?${event.detail.query}` : \"\"\n\t\t\twindow.history.pushState({ smoothlyPath: path, smoothlyQuery: event.detail.query || \"\" }, \"\", location.href)\n\t\t}\n\t}\n\t@Listen(\"smoothlyRoomLoad\")\n\troomLoadedHandler(event: SmoothlyAppRoomCustomEvent<{ selected: boolean }>) {\n\t\tconst room = (this.rooms[event.target.path.toString()] = { element: event.target })\n\t\tif (room.element.selected) {\n\t\t\tthis.selected = room\n\t\t}\n\t}\n\t@Listen(\"click\", { target: \"window\" })\n\tclickHandler(event: MouseEvent) {\n\t\tif (this.mobileMode && !event.composedPath().some(e => e == this.burgerElement || e == this.navElement)) {\n\t\t\tthis.menuOpen = false\n\t\t}\n\t}\n\trender() {\n\t\treturn (\n\t\t\t<Host class={{ \"smoothly-mobile-mode\": this.mobileMode }}>\n\t\t\t\t<smoothly-notifier>\n\t\t\t\t\t<header color={this.color}>\n\t\t\t\t\t\t<h1>\n\t\t\t\t\t\t\t<a href={\"\"}>{this.label}</a>\n\t\t\t\t\t\t</h1>\n\t\t\t\t\t\t<slot name=\"header\" />\n\t\t\t\t\t\t<nav ref={e => (this.navElement = e)}>\n\t\t\t\t\t\t\t<ul>\n\t\t\t\t\t\t\t\t<div class={\"nav-start-container\"}>\n\t\t\t\t\t\t\t\t\t<slot name=\"nav-start\" />\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<slot />\n\t\t\t\t\t\t\t\t<div class={\"nav-end-container\"}>\n\t\t\t\t\t\t\t\t\t<slot name=\"nav-end\" />\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t</nav>\n\t\t\t\t\t\t<smoothly-burger\n\t\t\t\t\t\t\tref={e => (this.burgerElement = e)}\n\t\t\t\t\t\t\topen={this.menuOpen}\n\t\t\t\t\t\t\tonSmoothlyNavStatus={e => (e.stopPropagation(), (this.menuOpen = e.detail))}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</header>\n\t\t\t\t\t<main ref={e => (this.mainElement = e)} />\n\t\t\t\t</smoothly-notifier>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"2PAAA,MAAMA,EAAW,IAAM,ukG,MCYVC,EAAWC,EAAA,MAAAD,UAAAE,EALxB,WAAAC,CAAAC,G,+FASyCC,KAAAC,SAAW,MAC1BD,KAAAE,cAAmD,QACnEF,KAAAG,WAAa,MAMtBH,KAAAI,MAA0C,EAyG1C,CAvGA,iBAAAC,GACC,MAAMC,EAAaC,OAAOC,WAAW,eAAeR,KAAKE,kBACzDF,KAAKG,WAAaG,EAAWG,QAC7BH,EAAWI,iBAAiB,UAAUC,GAAKX,KAAKY,iBAAiBD,EAAEF,U,CAEpE,gBAAAI,GACCb,KAAKY,iBAAiBZ,KAAKG,W,CAE5B,gBAAAS,CAAiBT,GAChBH,KAAKG,WAAaA,EAClBW,OAAOC,OAAOf,KAAKI,OAAOY,SAAQC,GAAQA,IAAI,MAAJA,SAAI,SAAJA,EAAMC,QAAQC,cAAchB,KACtE,IAAKA,EAAY,CAChBH,KAAKC,SAAW,K,EAIlB,wBAAMmB,G,MACL,IAAKpB,KAAKqB,WAAad,OAAOe,SAASC,OAAQ,EAC7CC,EAACxB,KAAKyB,MAAQzB,KAAKI,MAAMJ,KAAKyB,MAC5BzB,KAAKI,MAAMJ,KAAKyB,MAChBX,OAAOC,OAAOf,KAAKI,OAAOsB,MAAKT,KAASA,IAAI,MAAJA,SAAI,SAAJA,EAAMC,QAAQS,eACxD,MAAAH,SAAA,SAAAA,EAAEN,QAAQU,YAAY,K,EAIzB,gBAAMC,CAAWC,G,OAChBN,EAAAxB,KAAKI,MAAM0B,MAAK,MAAAN,SAAA,SAAAA,EAAEN,QAAQU,YAAY,K,CAGvC,qBAAMG,G,MACLjB,OAAOC,OAAOf,KAAKI,OAAOY,SACzBC,IAAO,IAAAO,EAAC,OAAAP,IAAI,MAAJA,SAAI,SAAJA,EAAMC,QAAQY,SAAQN,EAAAxB,KAAKqB,YAAQ,MAAAG,SAAA,SAAAA,EAAEN,QAAQY,QAAQb,IAAI,MAAJA,SAAI,SAAJA,EAAMC,QAAQU,YAAY,OAAM,IAE9F,MAAMI,SAAgBR,EAAAxB,KAAKqB,YAAQ,MAAAG,SAAA,SAAAA,EAAEN,QAAQe,cAC7CC,uBAAsB,KACrB,GAAIlC,KAAKmC,aAAeH,EAAS,CAChChC,KAAKmC,YAAYC,gBAAgBJ,E,KAKpC,2BAAMK,CAAsBC,G,OAC3Bd,EAAAxB,KAAKI,MAAMkC,EAAMC,MAAMC,iBAAa,MAAAhB,SAAA,SAAAA,EAAEN,QAAQU,YAAY,KAAM,CAAEa,QAAS,OAC3EzC,KAAK0C,kBAAkBC,KAAKpC,OAAOe,SAASsB,K,CAG7C,mBAAAC,CAAoBP,GACnBtC,KAAKqB,SAAW,CAAEH,QAASoB,EAAMQ,QACjC,GAAI9C,KAAKG,WAAY,CACpBH,KAAKC,SAAW,K,CAEjB,IAAKqC,EAAMS,OAAON,QAAS,CAC1B,MAAMX,EAAO9B,KAAKqB,SAASH,QAAQY,KAAKkB,WACxC,MAAM1B,EAAW,IAAI2B,IAAI1C,OAAOe,SAAS4B,UAAYpB,EAAOvB,OAAOe,SAASsB,KAAOrC,OAAOe,SAAS6B,QACnG7B,EAAS4B,SAAWpB,EACpBR,EAASC,OAASe,EAAMS,OAAOK,MAAQ,IAAId,EAAMS,OAAOK,QAAU,GAClE7C,OAAOkC,QAAQY,UAAU,CAAEb,aAAcV,EAAMwB,cAAehB,EAAMS,OAAOK,OAAS,IAAM,GAAI9B,EAASsB,K,EAIzG,iBAAAW,CAAkBjB,GACjB,MAAMrB,EAAQjB,KAAKI,MAAMkC,EAAMQ,OAAOhB,KAAKkB,YAAc,CAAE9B,QAASoB,EAAMQ,QAC1E,GAAI7B,EAAKC,QAAQG,SAAU,CAC1BrB,KAAKqB,SAAWJ,C,EAIlB,YAAAuC,CAAalB,GACZ,GAAItC,KAAKG,aAAemC,EAAMmB,eAAeC,MAAK/C,GAAKA,GAAKX,KAAK2D,eAAiBhD,GAAKX,KAAK4D,aAAa,CACxG5D,KAAKC,SAAW,K,EAGlB,MAAA4D,GACC,OACCC,EAACC,EAAI,CAAAC,IAAA,2CAACC,MAAO,CAAE,uBAAwBjE,KAAKG,aAC3C2D,EAAA,qBAAAE,IAAA,4CACCF,EAAA,UAAAE,IAAA,2CAAQE,MAAOlE,KAAKkE,OACnBJ,EAAA,MAAAE,IAAA,4CACCF,EAAA,KAAAE,IAAA,2CAAGpB,KAAM,IAAK5C,KAAKmE,QAEpBL,EAAA,QAAAE,IAAA,2CAAMI,KAAK,WACXN,EAAA,OAAAE,IAAA,2CAAKK,IAAK1D,GAAMX,KAAK4D,WAAajD,GACjCmD,EAAA,MAAAE,IAAA,4CACCF,EAAA,OAAAE,IAAA,2CAAKC,MAAO,uBACXH,EAAA,QAAAE,IAAA,2CAAMI,KAAK,eAEZN,EAAA,QAAAE,IAAA,6CACAF,EAAA,OAAAE,IAAA,2CAAKC,MAAO,qBACXH,EAAA,QAAAE,IAAA,2CAAMI,KAAK,eAIdN,EAAA,mBAAAE,IAAA,2CACCK,IAAK1D,GAAMX,KAAK2D,cAAgBhD,EAChC2D,KAAMtE,KAAKC,SACXsE,oBAAqB5D,IAAMA,EAAE6D,kBAAoBxE,KAAKC,SAAWU,EAAEoC,WAGrEe,EAAA,QAAAE,IAAA,2CAAMK,IAAK1D,GAAMX,KAAKmC,YAAcxB,K","ignoreList":[]}
1
+ {"version":3,"names":["styleCss","SmoothlyApp","__stencil_proxyCustomElement","HTMLElement","constructor","registerHost","this","menuOpen","navBreakpoint","mobileMode","rooms","componentWillLoad","mediaQuery","window","matchMedia","matches","addEventListener","e","updateMobileMode","componentDidLoad","Object","values","forEach","room","element","setMobileMode","componentDidRender","selected","location","search","_a","home","find","disabled","setSelected","selectRoom","path","selectedChanged","content","getContent","requestAnimationFrame","mainElement","replaceChildren","locationChangeHandler","event","state","smoothlyPath","history","smoothlyUrlChange","emit","href","roomSelectedHandler","target","detail","URL","pathname","origin","query","pushState","smoothlyQuery","roomLoadedHandler","toString","clickHandler","composedPath","some","burgerElement","navElement","render","h","Host","key","class","color","label","name","ref","open","onSmoothlyNavStatus","stopPropagation"],"sources":["src/components/app/style.css?tag=smoothly-app","src/components/app/index.tsx"],"sourcesContent":["smoothly-app {\n\t--header-height: 5rem;\n\tdisplay: block;\n}\n\nsmoothly-app>smoothly-notifier>main {\n\theight: calc(100dvh - var(--header-height));\n}\n\nsmoothly-app[hidden] {\n\tdisplay: none;\n}\n\nsmoothly-app>smoothly-notifier {\n\theight: 100%;\n\tbackground: none;\n}\n\nsmoothly-app.smoothly-mobile-mode>smoothly-notifier>header:has(smoothly-burger)>nav>ul smoothly-app-room {\n\twidth: 100%;\n\theight: 4em;\n}\n\nsmoothly-app>smoothly-notifier>header {\n\tposition: sticky;\n\ttop: 0;\n\tz-index: 20;\n\twidth: 100%;\n\theight: var(--header-height);\n\tdisplay: flex;\n\tjustify-content: space-between;\n\tbox-sizing: border-box;\n\talign-items: center;\n\tbox-shadow: 0 1px 0 0 rgb(var(--smoothly-color-shade)) inset;\n}\n\nsmoothly-app>smoothly-notifier>header>nav {\n\twidth: 100%;\n\tflex-shrink: 2;\n\theight: 100%;\n}\n\nsmoothly-app>smoothly-notifier>header>nav,\nsmoothly-app>smoothly-notifier>header>nav>ul {\n\tdisplay: flex;\n\tmargin: 0;\n}\n\nsmoothly-app:not([label])>smoothly-notifier>header>h1 {\n\tdisplay: none;\n}\nsmoothly-app>smoothly-notifier>header>h1 {\n\tmargin-left: 1rem;\n\tmargin-bottom: 0.8em;\n\tdisplay: flex;\n\theight: 100%;\n}\n\nsmoothly-app>smoothly-notifier>header>h1>a {\n\tdisplay: inline-block;\n\talign-self: center;\n\tsize: 100%;\n\tbackground-position-y: center;\n\ttext-decoration: none;\n\twhite-space: nowrap;\n}\n\nsmoothly-app>smoothly-notifier>header>nav>ul {\n\twidth: 100%;\n}\n\nsmoothly-app>smoothly-notifier>header>nav>ul>div.nav-start-container {\n\tdisplay: flex;\n\talign-items: center;\n\theight: 100%;\n}\n\nsmoothly-app>smoothly-notifier>header>nav>ul>div.nav-end-container {\n\tdisplay: flex;\n\talign-items: center;\n\theight: 100%;\n\tmargin-left: auto;\n\tmargin-right: 1rem;\n}\n\nsmoothly-app>smoothly-notifier>header>nav>ul>[slot=\"nav-end\"] {\n\twidth: fit-content;\n\talign-self: center;\n\theight: fit-content;\n\tmargin-left: 10rem;\n}\n\nsmoothly-app>smoothly-notifier>header>nav>ul li a {\n\tdisplay: flex;\n\theight: 2.3rem;\n\ttext-decoration: none;\n\talign-items: center;\n\talign-self: center;\n}\n\nsmoothly-app.smoothly-mobile-mode:not([menu-open])>smoothly-notifier>header>nav {\n\tdisplay: none;\n}\n\nsmoothly-app>smoothly-notifier>main>div {\n\toverflow-y: scroll;\n\theight: 100%;\n}\n\n/* Mobile mode */\nsmoothly-app.smoothly-mobile-mode>smoothly-notifier>header>nav {\n\twidth: fit-content;\n\tmax-width: 100%;\n\ttop: 100%;\n\tposition: absolute;\n\tmax-height: calc(100dvh - var(--header-height));\n\toverflow-y: scroll;\n\tright: 0;\n\theight: auto;\n}\n\nsmoothly-app.smoothly-mobile-mode>smoothly-notifier>header>nav,\nsmoothly-app.smoothly-mobile-mode>smoothly-notifier>header>nav>ul {\n\tflex-direction: column;\n\tbackground-color: rgba(var(--smoothly-color));\n}\n\nsmoothly-app.smoothly-mobile-mode>smoothly-notifier>header>nav>ul {\n\tpadding: 1.5rem;\n\tbox-sizing: border-box;\n}\n\nsmoothly-app.smoothly-mobile-mode>smoothly-notifier>header>nav>ul li {\n\tmargin-right: 0;\n\twidth: 100%;\n}\nsmoothly-app:not(.smoothly-mobile-mode)>smoothly-notifier>header>smoothly-burger {\n\tdisplay: none;\n}\nsmoothly-app.smoothly-mobile-mode>smoothly-notifier>header>smoothly-burger {\n\tposition: absolute;\n\ttop: 0;\n\tright: 0;\n}\n\nsmoothly-app.smoothly-mobile-mode>smoothly-notifier>header>nav>ul>[slot=\"nav-start\"] {\n\tdisplay: none;\n}\n\nsmoothly-app.smoothly-mobile-mode>smoothly-notifier>header>nav>ul>div.nav-start-container,\nsmoothly-app.smoothly-mobile-mode>smoothly-notifier>header>nav>ul>div.nav-end-container {\n\tflex-direction: column;\n\tmargin: 0;\n\talign-items: start;\n\tjustify-content: center;\n}\n\nsmoothly-app.smoothly-mobile-mode>smoothly-notifier>header>nav>ul>div.nav-start-container>*:last-child {\n\tmargin-bottom: 1em;\n}\n\n","import { Component, Event, EventEmitter, h, Host, Listen, Method, Prop, State, Watch } from \"@stencil/core\"\nimport { SmoothlyAppRoomCustomEvent } from \"../../components\"\nimport { Color } from \"../../model\"\n\ntype Room = {\n\telement: HTMLSmoothlyAppRoomElement\n}\n@Component({\n\ttag: \"smoothly-app\",\n\tstyleUrl: \"style.css\",\n\tscoped: false,\n})\nexport class SmoothlyApp {\n\t@Prop({ reflect: true }) label?: string\n\t@Prop() color: Color\n\t@Prop() home?: string\n\t@Prop({ mutable: true, reflect: true }) menuOpen = false\n\t@Prop({ reflect: true }) navBreakpoint: `${number}${\"px\" | \"em\" | \"rem\"}` = \"48rem\"\n\t@State() mobileMode = false\n\t@State() selected?: Room\n\t@Event() smoothlyUrlChange: EventEmitter<string>\n\tprivate burgerElement?: HTMLSmoothlyBurgerElement\n\tprivate navElement?: HTMLElement\n\tmainElement?: HTMLElement\n\trooms: Record<string, Room | undefined> = {}\n\n\tcomponentWillLoad() {\n\t\tconst mediaQuery = window.matchMedia(`(max-width: ${this.navBreakpoint})`)\n\t\tthis.mobileMode = mediaQuery.matches\n\t\tmediaQuery.addEventListener(\"change\", e => this.updateMobileMode(e.matches))\n\t}\n\tcomponentDidLoad() {\n\t\tthis.updateMobileMode(this.mobileMode)\n\t}\n\tupdateMobileMode(mobileMode: boolean) {\n\t\tthis.mobileMode = mobileMode\n\t\tObject.values(this.rooms).forEach(room => room?.element.setMobileMode(mobileMode))\n\t\tif (!mobileMode) {\n\t\t\tthis.menuOpen = false\n\t\t}\n\t}\n\n\tasync componentDidRender() {\n\t\tif (!this.selected && !window.location.search) {\n\t\t\t;(this.home && this.rooms[this.home]\n\t\t\t\t? this.rooms[this.home]\n\t\t\t\t: Object.values(this.rooms).find(room => !room?.element.disabled)\n\t\t\t)?.element.setSelected(true)\n\t\t}\n\t}\n\t@Method()\n\tasync selectRoom(path: string) {\n\t\tthis.rooms[path]?.element.setSelected(true)\n\t}\n\t@Watch(\"selected\")\n\tasync selectedChanged() {\n\t\tObject.values(this.rooms).forEach(\n\t\t\troom => room?.element.path != this.selected?.element.path && room?.element.setSelected(false)\n\t\t)\n\t\tconst content = await this.selected?.element.getContent()\n\t\trequestAnimationFrame(() => {\n\t\t\tif (this.mainElement && content) {\n\t\t\t\tthis.mainElement.replaceChildren(content)\n\t\t\t}\n\t\t})\n\t}\n\t@Listen(\"popstate\", { target: \"window\" })\n\tasync locationChangeHandler(event: PopStateEvent) {\n\t\tthis.rooms[event.state.smoothlyPath]?.element.setSelected(true, { history: true })\n\t\tthis.smoothlyUrlChange.emit(window.location.href)\n\t}\n\t@Listen(\"smoothlyRoomSelect\")\n\troomSelectedHandler(event: SmoothlyAppRoomCustomEvent<{ history: boolean; path: string; query?: string }>) {\n\t\tthis.selected = { element: event.target }\n\t\tif (this.mobileMode) {\n\t\t\tthis.menuOpen = false\n\t\t}\n\t\tif (!event.detail.history) {\n\t\t\tconst path = event.detail.path\n\t\t\tconst location = new URL(window.location.pathname == path ? window.location.href : window.location.origin)\n\t\t\tlocation.pathname = path\n\t\t\tlocation.search = event.detail.query ? `?${event.detail.query}` : \"\"\n\t\t\twindow.history.pushState({ smoothlyPath: path, smoothlyQuery: event.detail.query || \"\" }, \"\", location.href)\n\t\t}\n\t}\n\t@Listen(\"smoothlyRoomLoad\")\n\troomLoadedHandler(event: SmoothlyAppRoomCustomEvent<{ selected: boolean }>) {\n\t\tconst room = (this.rooms[event.target.path.toString()] = { element: event.target })\n\t\tif (room.element.selected) {\n\t\t\tthis.selected = room\n\t\t}\n\t}\n\t@Listen(\"click\", { target: \"window\" })\n\tclickHandler(event: MouseEvent) {\n\t\tif (this.mobileMode && !event.composedPath().some(e => e == this.burgerElement || e == this.navElement)) {\n\t\t\tthis.menuOpen = false\n\t\t}\n\t}\n\trender() {\n\t\treturn (\n\t\t\t<Host class={{ \"smoothly-mobile-mode\": this.mobileMode }}>\n\t\t\t\t<smoothly-notifier>\n\t\t\t\t\t<header color={this.color}>\n\t\t\t\t\t\t<h1>\n\t\t\t\t\t\t\t<a href={\"\"}>{this.label}</a>\n\t\t\t\t\t\t</h1>\n\t\t\t\t\t\t<slot name=\"header\" />\n\t\t\t\t\t\t<nav ref={e => (this.navElement = e)}>\n\t\t\t\t\t\t\t<ul>\n\t\t\t\t\t\t\t\t<div class={\"nav-start-container\"}>\n\t\t\t\t\t\t\t\t\t<slot name=\"nav-start\" />\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<slot />\n\t\t\t\t\t\t\t\t<div class={\"nav-end-container\"}>\n\t\t\t\t\t\t\t\t\t<slot name=\"nav-end\" />\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t</nav>\n\t\t\t\t\t\t<smoothly-burger\n\t\t\t\t\t\t\tref={e => (this.burgerElement = e)}\n\t\t\t\t\t\t\topen={this.menuOpen}\n\t\t\t\t\t\t\tonSmoothlyNavStatus={e => (e.stopPropagation(), (this.menuOpen = e.detail))}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</header>\n\t\t\t\t\t<main ref={e => (this.mainElement = e)} />\n\t\t\t\t</smoothly-notifier>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"2PAAA,MAAMA,EAAW,IAAM,ukG,MCYVC,EAAWC,EAAA,MAAAD,UAAAE,EALxB,WAAAC,CAAAC,G,+FASyCC,KAAAC,SAAW,MAC1BD,KAAAE,cAAmD,QACnEF,KAAAG,WAAa,MAMtBH,KAAAI,MAA0C,EAyG1C,CAvGA,iBAAAC,GACC,MAAMC,EAAaC,OAAOC,WAAW,eAAeR,KAAKE,kBACzDF,KAAKG,WAAaG,EAAWG,QAC7BH,EAAWI,iBAAiB,UAAUC,GAAKX,KAAKY,iBAAiBD,EAAEF,U,CAEpE,gBAAAI,GACCb,KAAKY,iBAAiBZ,KAAKG,W,CAE5B,gBAAAS,CAAiBT,GAChBH,KAAKG,WAAaA,EAClBW,OAAOC,OAAOf,KAAKI,OAAOY,SAAQC,GAAQA,IAAI,MAAJA,SAAI,SAAJA,EAAMC,QAAQC,cAAchB,KACtE,IAAKA,EAAY,CAChBH,KAAKC,SAAW,K,EAIlB,wBAAMmB,G,MACL,IAAKpB,KAAKqB,WAAad,OAAOe,SAASC,OAAQ,EAC7CC,EAACxB,KAAKyB,MAAQzB,KAAKI,MAAMJ,KAAKyB,MAC5BzB,KAAKI,MAAMJ,KAAKyB,MAChBX,OAAOC,OAAOf,KAAKI,OAAOsB,MAAKT,KAASA,IAAI,MAAJA,SAAI,SAAJA,EAAMC,QAAQS,eACxD,MAAAH,SAAA,SAAAA,EAAEN,QAAQU,YAAY,K,EAIzB,gBAAMC,CAAWC,G,OAChBN,EAAAxB,KAAKI,MAAM0B,MAAK,MAAAN,SAAA,SAAAA,EAAEN,QAAQU,YAAY,K,CAGvC,qBAAMG,G,MACLjB,OAAOC,OAAOf,KAAKI,OAAOY,SACzBC,IAAO,IAAAO,EAAC,OAAAP,IAAI,MAAJA,SAAI,SAAJA,EAAMC,QAAQY,SAAQN,EAAAxB,KAAKqB,YAAQ,MAAAG,SAAA,SAAAA,EAAEN,QAAQY,QAAQb,IAAI,MAAJA,SAAI,SAAJA,EAAMC,QAAQU,YAAY,OAAM,IAE9F,MAAMI,SAAgBR,EAAAxB,KAAKqB,YAAQ,MAAAG,SAAA,SAAAA,EAAEN,QAAQe,cAC7CC,uBAAsB,KACrB,GAAIlC,KAAKmC,aAAeH,EAAS,CAChChC,KAAKmC,YAAYC,gBAAgBJ,E,KAKpC,2BAAMK,CAAsBC,G,OAC3Bd,EAAAxB,KAAKI,MAAMkC,EAAMC,MAAMC,iBAAa,MAAAhB,SAAA,SAAAA,EAAEN,QAAQU,YAAY,KAAM,CAAEa,QAAS,OAC3EzC,KAAK0C,kBAAkBC,KAAKpC,OAAOe,SAASsB,K,CAG7C,mBAAAC,CAAoBP,GACnBtC,KAAKqB,SAAW,CAAEH,QAASoB,EAAMQ,QACjC,GAAI9C,KAAKG,WAAY,CACpBH,KAAKC,SAAW,K,CAEjB,IAAKqC,EAAMS,OAAON,QAAS,CAC1B,MAAMX,EAAOQ,EAAMS,OAAOjB,KAC1B,MAAMR,EAAW,IAAI0B,IAAIzC,OAAOe,SAAS2B,UAAYnB,EAAOvB,OAAOe,SAASsB,KAAOrC,OAAOe,SAAS4B,QACnG5B,EAAS2B,SAAWnB,EACpBR,EAASC,OAASe,EAAMS,OAAOI,MAAQ,IAAIb,EAAMS,OAAOI,QAAU,GAClE5C,OAAOkC,QAAQW,UAAU,CAAEZ,aAAcV,EAAMuB,cAAef,EAAMS,OAAOI,OAAS,IAAM,GAAI7B,EAASsB,K,EAIzG,iBAAAU,CAAkBhB,GACjB,MAAMrB,EAAQjB,KAAKI,MAAMkC,EAAMQ,OAAOhB,KAAKyB,YAAc,CAAErC,QAASoB,EAAMQ,QAC1E,GAAI7B,EAAKC,QAAQG,SAAU,CAC1BrB,KAAKqB,SAAWJ,C,EAIlB,YAAAuC,CAAalB,GACZ,GAAItC,KAAKG,aAAemC,EAAMmB,eAAeC,MAAK/C,GAAKA,GAAKX,KAAK2D,eAAiBhD,GAAKX,KAAK4D,aAAa,CACxG5D,KAAKC,SAAW,K,EAGlB,MAAA4D,GACC,OACCC,EAACC,EAAI,CAAAC,IAAA,2CAACC,MAAO,CAAE,uBAAwBjE,KAAKG,aAC3C2D,EAAA,qBAAAE,IAAA,4CACCF,EAAA,UAAAE,IAAA,2CAAQE,MAAOlE,KAAKkE,OACnBJ,EAAA,MAAAE,IAAA,4CACCF,EAAA,KAAAE,IAAA,2CAAGpB,KAAM,IAAK5C,KAAKmE,QAEpBL,EAAA,QAAAE,IAAA,2CAAMI,KAAK,WACXN,EAAA,OAAAE,IAAA,2CAAKK,IAAK1D,GAAMX,KAAK4D,WAAajD,GACjCmD,EAAA,MAAAE,IAAA,4CACCF,EAAA,OAAAE,IAAA,2CAAKC,MAAO,uBACXH,EAAA,QAAAE,IAAA,2CAAMI,KAAK,eAEZN,EAAA,QAAAE,IAAA,6CACAF,EAAA,OAAAE,IAAA,2CAAKC,MAAO,qBACXH,EAAA,QAAAE,IAAA,2CAAMI,KAAK,eAIdN,EAAA,mBAAAE,IAAA,2CACCK,IAAK1D,GAAMX,KAAK2D,cAAgBhD,EAChC2D,KAAMtE,KAAKC,SACXsE,oBAAqB5D,IAAMA,EAAE6D,kBAAoBxE,KAAKC,SAAWU,EAAEoC,WAGrEe,EAAA,QAAAE,IAAA,2CAAMK,IAAK1D,GAAMX,KAAKmC,YAAcxB,K","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- import{p as t,H as e,h as o,F as s,d as m,t as a}from"./p-BsZrGTcp.js";import{i}from"./p-BVKhAhsB.js";import{d as n}from"./p-BHEtq3Ue.js";import{d as l}from"./p-DdXfvS4U.js";import{d as r}from"./p-B8ljN4o0.js";import{d}from"./p-BiQsRsV4.js";import{d as c}from"./p-Q-gVll-_.js";import{d as h}from"./p-CCzyYE1m.js";import{d as p}from"./p-B7ws0a8Z.js";import{d as u}from"./p-oWil-NTX.js";import{d as f}from"./p-B6W5V130.js";import{d as y}from"./p-OfpR2_fh.js";import{d as b}from"./p-DKir2dIt.js";const k=()=>`.sc-smoothly-input-date-demo-h{display:grid;grid-template-columns:repeat(auto-fit, minmax(20rem, 1fr));max-width:min(42rem, 100%);margin:auto;flex-direction:column;gap:0.5rem}.sc-smoothly-input-date-demo-h .sc-smoothly-input-date-demo:not(smoothly-input-date):not(smoothly-input-date-range){grid-column:1 / -1}`;const E=t(class t extends e{constructor(t){super();if(t!==false){this.__registerHost()}this.alwaysShowGuide=false}render(){return o(m,{key:"e33d9339ee4a2275ec14772535775d9dd9bf5f1f"},o("div",{key:"f10e1c4e913fd6dd05cd04030d3bd845fda0d263"},o("h2",{key:"ca6f4b48417c3d0b07f79194512e0f7648ab8939"},"Date input"),o("p",{key:"6c635b4fcd3276080055d2a12f4e70e609d30af4"},"Different locales formatting the same date"),o("smoothly-button",{key:"2b62d912d00ce8b225b085e5554b181f0a970bc5",color:"primary",onClick:()=>this.date=this.date?i.Date.next(this.date):i.Date.now()},"Set date"),o("smoothly-input-checkbox",{key:"fbf65e6cb24cdac58990b043c1879c7f192e25b5",looks:"transparent",onSmoothlyUserInput:t=>{this.alwaysShowGuide=t.detail.value;console.log(this.alwaysShowGuide)}},"Always Show Guide")),["en-US","en-GB","de-DE","se-SE"].map((t=>o(s,null,o("smoothly-input-date",{locale:t,name:t,looks:"border",value:this.date,alwaysShowGuide:this.alwaysShowGuide},t,o("smoothly-input-clear",{slot:"end"})),o("smoothly-input-date-range",{locale:t,name:t+"-range",looks:"border",start:this.date,end:this.date?i.Date.next(this.date):undefined,alwaysShowGuide:this.alwaysShowGuide},t," Range",o("smoothly-input-clear",{slot:"end"}))))))}static get style(){return k()}},[2,"smoothly-input-date-demo",{date:[32],alwaysShowGuide:[32]}]);function g(){if(typeof customElements==="undefined"){return}const t=["smoothly-input-date-demo","smoothly-button","smoothly-calendar","smoothly-date-text","smoothly-icon","smoothly-input-checkbox","smoothly-input-clear","smoothly-input-date","smoothly-input-date-range","smoothly-input-month","smoothly-input-select","smoothly-item"];t.forEach((t=>{switch(t){case"smoothly-input-date-demo":if(!customElements.get(a(t))){customElements.define(a(t),E)}break;case"smoothly-button":if(!customElements.get(a(t))){n()}break;case"smoothly-calendar":if(!customElements.get(a(t))){l()}break;case"smoothly-date-text":if(!customElements.get(a(t))){r()}break;case"smoothly-icon":if(!customElements.get(a(t))){d()}break;case"smoothly-input-checkbox":if(!customElements.get(a(t))){c()}break;case"smoothly-input-clear":if(!customElements.get(a(t))){h()}break;case"smoothly-input-date":if(!customElements.get(a(t))){p()}break;case"smoothly-input-date-range":if(!customElements.get(a(t))){u()}break;case"smoothly-input-month":if(!customElements.get(a(t))){f()}break;case"smoothly-input-select":if(!customElements.get(a(t))){y()}break;case"smoothly-item":if(!customElements.get(a(t))){b()}break}}))}g();export{E as S,g as d};
2
- //# sourceMappingURL=p-DVbSVIVZ.js.map
1
+ import{p as t,H as e,h as o,F as s,d as m,t as a}from"./p-BsZrGTcp.js";import{i}from"./p-BVKhAhsB.js";import{d as n}from"./p-BHEtq3Ue.js";import{d as l}from"./p-1j2KmcfQ.js";import{d as r}from"./p-AX8gOGUr.js";import{d}from"./p-BiQsRsV4.js";import{d as c}from"./p-CrKwvG9J.js";import{d as h}from"./p-_o_lUhve.js";import{d as p}from"./p-xkRxEiC8.js";import{d as u}from"./p-NFd9Dxr1.js";import{d as f}from"./p-CtuuZV3u.js";import{d as y}from"./p-CJEV2v84.js";import{d as b}from"./p-fnKrPnzp.js";const k=()=>`.sc-smoothly-input-date-demo-h{display:grid;grid-template-columns:repeat(auto-fit, minmax(20rem, 1fr));max-width:min(42rem, 100%);margin:auto;flex-direction:column;gap:0.5rem}.sc-smoothly-input-date-demo-h .sc-smoothly-input-date-demo:not(smoothly-input-date):not(smoothly-input-date-range){grid-column:1 / -1}`;const E=t(class t extends e{constructor(t){super();if(t!==false){this.__registerHost()}this.alwaysShowGuide=false}render(){return o(m,{key:"2eddf4f43fc88d4f0baee5472fb55f98be8464f2"},o("div",{key:"a505bd4d499e9fce35b50c88dbb3e3375fe7e36c"},o("h2",{key:"b79d4c949fec7c008314b3562ba56ddfe22a1202"},"Date input"),o("p",{key:"f76bb9f59b85781610474db18fe10891f1560330"},"Different locales formatting the same date"),o("smoothly-button",{key:"c8c39579e4ab97b4b455c88514b7b6d0b78ee781",color:"primary",onClick:()=>this.date=this.date?i.Date.next(this.date):i.Date.now()},"Set date"),o("smoothly-input-checkbox",{key:"9e921d7050071821148968680950fe00a0bdad8b",looks:"transparent",onSmoothlyUserInput:t=>{this.alwaysShowGuide=t.detail.value;console.log(this.alwaysShowGuide)}},"Always Show Guide")),["en-US","en-GB","de-DE","se-SE"].map((t=>o(s,null,o("smoothly-input-date",{locale:t,name:t,looks:"border",value:this.date,alwaysShowGuide:this.alwaysShowGuide},t,o("smoothly-input-clear",{slot:"end"})),o("smoothly-input-date-range",{locale:t,name:t+"-range",looks:"border",start:this.date,end:this.date?i.Date.next(this.date):undefined,alwaysShowGuide:this.alwaysShowGuide},t," Range",o("smoothly-input-clear",{slot:"end"}))))))}static get style(){return k()}},[2,"smoothly-input-date-demo",{date:[32],alwaysShowGuide:[32]}]);function g(){if(typeof customElements==="undefined"){return}const t=["smoothly-input-date-demo","smoothly-button","smoothly-calendar","smoothly-date-text","smoothly-icon","smoothly-input-checkbox","smoothly-input-clear","smoothly-input-date","smoothly-input-date-range","smoothly-input-month","smoothly-input-select","smoothly-item"];t.forEach((t=>{switch(t){case"smoothly-input-date-demo":if(!customElements.get(a(t))){customElements.define(a(t),E)}break;case"smoothly-button":if(!customElements.get(a(t))){n()}break;case"smoothly-calendar":if(!customElements.get(a(t))){l()}break;case"smoothly-date-text":if(!customElements.get(a(t))){r()}break;case"smoothly-icon":if(!customElements.get(a(t))){d()}break;case"smoothly-input-checkbox":if(!customElements.get(a(t))){c()}break;case"smoothly-input-clear":if(!customElements.get(a(t))){h()}break;case"smoothly-input-date":if(!customElements.get(a(t))){p()}break;case"smoothly-input-date-range":if(!customElements.get(a(t))){u()}break;case"smoothly-input-month":if(!customElements.get(a(t))){f()}break;case"smoothly-input-select":if(!customElements.get(a(t))){y()}break;case"smoothly-item":if(!customElements.get(a(t))){b()}break}}))}g();export{E as S,g as d};
2
+ //# sourceMappingURL=p-DIf6-Fvg.js.map