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
@@ -42,7 +42,7 @@ export class SmoothlyInputClear {
42
42
  }
43
43
  render() {
44
44
  var _a;
45
- return (h(Host, { key: 'c3057c346978456fae66b50daa28779d57897fe4', title: this.tooltip }, h("smoothly-button", { key: 'ada585112d53669e71813f504c07f4ea51f8365a', disabled: this.disabled, size: this.size, type: "button", shape: this.shape, expand: this.expand, color: this.color, fill: (_a = this.fill) !== null && _a !== void 0 ? _a : (this.type == "input" ? "clear" : undefined) }, h("slot", { key: '5300d48ce3c05f9ba4e7492db5069e5252aba1c3' }), h("smoothly-icon", { key: '771161bfba19ad4f9f875481a75c5b7b65d3d143', name: "close", size: "tiny" }))));
45
+ return (h(Host, { key: '35dfd4b4b5b2aaac1457f14143591df8244e4e2f', title: this.tooltip }, h("smoothly-button", { key: '681e2d83c6fe6061919a06ece237673e0c68a159', disabled: this.disabled, size: this.size, type: "button", shape: this.shape, expand: this.expand, color: this.color, fill: (_a = this.fill) !== null && _a !== void 0 ? _a : (this.type == "input" ? "clear" : undefined) }, h("slot", { key: '31f3176ab610d6c1ce68055b6f0df55ba2303e29' }), h("smoothly-icon", { key: 'a454fc3409e50dd4a0fb7566460909645066b944', name: "close", size: "tiny" }))));
46
46
  }
47
47
  static get is() { return "smoothly-input-clear"; }
48
48
  static get encapsulation() { return "scoped"; }
@@ -1,7 +1,7 @@
1
1
  import { h, Host } from "@stencil/core";
2
2
  export class SmoothlyInputColorDemo {
3
3
  render() {
4
- return (h(Host, { key: 'f984ceaff90804fca1e618768ebadbd329c6b2e1' }, h("h2", { key: '00d7865260450e2575681ca1650bab25b4d52508' }, "Color"), h("smoothly-input-color", { key: '67d034749c8c4725dfc05e30a035755da7aa53f4', name: "color" }, "Choose color")));
4
+ return (h(Host, { key: 'a24614a0d013b44ad55334eba6849d7d4c2ebdc8' }, h("h2", { key: 'f003675167b0a648e3de7cd44a2a2c53a27c1e3a' }, "Color"), h("smoothly-input-color", { key: 'd562fdd31044939c84dd7bd6264adfe9ea4a8bfa', name: "color" }, "Choose color")));
5
5
  }
6
6
  static get is() { return "smoothly-input-color-demo"; }
7
7
  static get styles() { return "style.css"; }
@@ -146,7 +146,7 @@ export class SmoothlyInputColor {
146
146
  }
147
147
  render() {
148
148
  var _a, _b, _c, _d, _e, _f;
149
- return (h(Host, { key: 'c7ba977a7c84843fddd8c73600a8df00972e8917', style: {
149
+ return (h(Host, { key: '443b5ede9cb6485ed194f6c4bcd0dfa4d24fbf5f', style: {
150
150
  "--hexCode": this.value,
151
151
  "--rgb-r": `${Math.round((_a = this.rgb.r) !== null && _a !== void 0 ? _a : 0)}`,
152
152
  "--rgb-g": `${Math.round((_b = this.rgb.g) !== null && _b !== void 0 ? _b : 0)}`,
@@ -155,7 +155,7 @@ export class SmoothlyInputColor {
155
155
  "--hsl-s": `${Math.round((_e = this.hsl.s) !== null && _e !== void 0 ? _e : 0)}%`,
156
156
  "--hsl-l": `${Math.round((_f = this.hsl.l) !== null && _f !== void 0 ? _f : 0)}%`,
157
157
  "--element-height": `${this.element.clientHeight}px`,
158
- } }, h("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: event => (event === null || event === void 0 ? void 0 : event.stopPropagation(), this.hexInputHandler(event.detail[this.name])) }, h("slot", { key: '539224411d36af207f33f96d7da2b504f9eeaac4' })), h("div", { key: '1b84a1ff22dee501938548d73add98faffc4937f', class: "color-sample" }), h("smoothly-icon", { key: 'cf4b1cce4a53443502a469a7804140855138a619', color: this.color, name: "options-outline", size: "small", onClick: () => !this.readonly && !this.disabled && this.openDropdown() }), h("div", { key: '07c94343fd9ec8b583cf394e970b9b3ada13ee52' }, h("slot", { key: 'b9de4cc751ac02caf0c3a69f1f19453ed6ec0fac', name: "end" })), this.open && !this.readonly && !this.disabled && (h("div", { key: '805a0527d0fced3f71a7f132839122546760a889', class: "rgb-sliders" }, h("smoothly-toggle-switch", { key: '5422c50441feafc90c407eed1773e96c6774c0eb', title: `${this.sliderMode === "rgb" ? "To HSL" : "To RGB"}`, onSmoothlyToggleSwitchChange: event => this.handleSwitchMode(event), size: "tiny", checkmark: false, selected: this.sliderMode === "hsl" }), Object.entries(this.rgb).map(([key, value]) => (h("smoothly-input-range", { style: this.sliderMode != "rgb" ? { display: "none" } : {}, name: key, min: 0, max: 255, color: undefined, type: "text", value: value, step: 1, outputSide: "right", onSmoothlyInput: event => this.sliderInputHandler(event), onSmoothlyUserInput: event => event.stopPropagation(), label: key.toUpperCase() }))), Object.entries(this.hsl).map(([key, value]) => (h("smoothly-input-range", { style: this.sliderMode != "hsl" ? { display: "none" } : {}, name: key, min: 0, max: key === "h" ? 359 : 1, color: undefined, type: key === "s" || key === "l" ? "percent" : "text", value: (key === "s" || key === "l") && value ? value / 100 : value, step: key === "s" || key === "l" ? 0.01 : 1, outputSide: "right", onSmoothlyInput: event => this.sliderInputHandler(event), onSmoothlyUserInput: event => event.stopPropagation(), label: key.toUpperCase() })))))));
158
+ } }, h("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: event => (event === null || event === void 0 ? void 0 : event.stopPropagation(), this.hexInputHandler(event.detail[this.name])) }, h("slot", { key: 'e0237c1fd28820b5827660cc3f343a0b0daad919' })), h("div", { key: 'd4be603547b585719296c5fe4a129cffd7e5e904', class: "color-sample" }), h("smoothly-icon", { key: '17a5e51dba9a921faa53a42a2bd0b94cbdb8f490', color: this.color, name: "options-outline", size: "small", onClick: () => !this.readonly && !this.disabled && this.openDropdown() }), h("div", { key: '30eaa873254116bfb5930a1da0f93924682d5810' }, h("slot", { key: '65f98a331cb2b8cabbe58715c2cc496950e5a92c', name: "end" })), this.open && !this.readonly && !this.disabled && (h("div", { key: '972192b5efddbb9a173e2b50b35cfeebefb3a1f4', class: "rgb-sliders" }, h("smoothly-toggle-switch", { key: '9ec21361f064f9fc889aa1c1b50f672982882cb3', title: `${this.sliderMode === "rgb" ? "To HSL" : "To RGB"}`, onSmoothlyToggleSwitchChange: event => this.handleSwitchMode(event), size: "tiny", checkmark: false, selected: this.sliderMode === "hsl" }), Object.entries(this.rgb).map(([key, value]) => (h("smoothly-input-range", { style: this.sliderMode != "rgb" ? { display: "none" } : {}, name: key, min: 0, max: 255, color: undefined, type: "text", value: value, step: 1, outputSide: "right", onSmoothlyInput: event => this.sliderInputHandler(event), onSmoothlyUserInput: event => event.stopPropagation(), label: key.toUpperCase() }))), Object.entries(this.hsl).map(([key, value]) => (h("smoothly-input-range", { style: this.sliderMode != "hsl" ? { display: "none" } : {}, name: key, min: 0, max: key === "h" ? 359 : 1, color: undefined, type: key === "s" || key === "l" ? "percent" : "text", value: (key === "s" || key === "l") && value ? value / 100 : value, step: key === "s" || key === "l" ? 0.01 : 1, outputSide: "right", onSmoothlyInput: event => this.sliderInputHandler(event), onSmoothlyUserInput: event => event.stopPropagation(), label: key.toUpperCase() })))))));
159
159
  }
160
160
  static get is() { return "smoothly-input-color"; }
161
161
  static get encapsulation() { return "scoped"; }
@@ -108,7 +108,7 @@ export class SmoothlyInputDate {
108
108
  event.stopPropagation();
109
109
  }
110
110
  render() {
111
- return (h(Host, { key: 'daf9c45dec7dd26de2d6e0a6c4be1edb164c550a', tabindex: this.disabled ? undefined : 0, class: { "has-value": !!this.value, "has-text": this.hasText, "floating-label": this.alwaysShowGuide }, onClick: (e) => this.onClick(e) }, h("slot", { key: '7e4ded7f49badad87d40e7c72feea1f97c1b3696', name: "start" }), h("label", { key: 'adb59c083e4c8f8eff91c5ec551b80a8a8c6021c', class: "label float-on-focus" }, h("slot", { key: '5eb72d0fad4a9434e04ca26990f5814c3968816e' })), this.placeholder && h("span", { key: '2db6ea8a6aa504a88f0df85cb51d3b35f169f7e0', class: "smoothly-date-placeholder" }, this.placeholder), h("smoothly-date-text", { key: '579177b155b1ec9057ba5ef0caf6b200255739a8', ref: el => (this.dateTextElement = el), locale: this.locale, readonly: this.readonly, disabled: this.disabled, showLabel: this.showLabel, value: this.value, onSmoothlyDateTextHasText: e => (e.stopPropagation(), (this.hasText = e.detail)), onSmoothlyDateTextFocusChange: e => (e.stopPropagation(), (this.hasFocus = e.detail)), onSmoothlyDateHasPartialDate: e => { var _a; return (e.stopPropagation(), (_a = this.calendarElement) === null || _a === void 0 ? void 0 : _a.jumpTo(e.detail)); }, onSmoothlyDateTextChange: e => (e.stopPropagation(), this.onUserChangedValue(e)), onSmoothlyDateTextDone: e => { var _a; return (e.stopPropagation(), (this.open = false), (_a = this.dateTextElement) === null || _a === void 0 ? void 0 : _a.deselect()); } }), h("span", { key: '7793ab23717002dc3b48c395339ba1a52e4ff29b', class: "smoothly-icons", ref: el => (this.iconsElement = el) }, h("smoothly-icon", { key: '22fe16cd88fd192c18c03ecc6c7e7f68cd46f1dd', class: "smoothly-invalid", name: "alert-circle", size: "small", tooltip: this.errorMessage }), h("slot", { key: 'abdbafc201ee41a8bf6fd7814ffeb307dcd84c76', name: "end" })), this.open && !this.readonly && (h("smoothly-calendar", { key: '1dfeaaa136dae6ae0665e1c98183d5995d14e546', ref: el => (this.calendarElement = el), doubleInput: false, value: this.value, onSmoothlyDateSet: e => (e.stopPropagation(), this.onUserChangedValue(e)), max: this.max, min: this.min }, h("div", { key: '93bbc2286b76543c4412969f69aeec2713f60a3c', slot: "year-label" }, h("slot", { key: 'bcba612d6b9803c4cba33775c6a8f12e6dc69cd2', name: "year-label" })), h("div", { key: '83a50201b1f1700910012bf9476f3ca02f3a1f49', slot: "month-label" }, h("slot", { key: '92b1ee4b0d5bb6e0a36857063e9657b649d8a901', name: "month-label" }))))));
111
+ return (h(Host, { key: 'adce039516ed0f3009e61150455b2c51cc0ec899', tabindex: this.disabled ? undefined : 0, class: { "has-value": !!this.value, "has-text": this.hasText, "floating-label": this.alwaysShowGuide }, onClick: (e) => this.onClick(e) }, h("slot", { key: '9050a4383696852cac8b11bf7a426f41d592e3dc', name: "start" }), h("label", { key: '82204edd99bc733897ad6a05d79efc8dd74c83f6', class: "label float-on-focus" }, h("slot", { key: '6a479c63d63fdad7947cd25497f3dceba64574df' })), this.placeholder && h("span", { key: 'a905c85bffb75afa43cf2ea7effdf6a985ce64f8', class: "smoothly-date-placeholder" }, this.placeholder), h("smoothly-date-text", { key: '0e7c8d8a86189c99f83750435da80988153c6519', ref: el => (this.dateTextElement = el), locale: this.locale, readonly: this.readonly, disabled: this.disabled, showLabel: this.showLabel, value: this.value, onSmoothlyDateTextHasText: e => (e.stopPropagation(), (this.hasText = e.detail)), onSmoothlyDateTextFocusChange: e => (e.stopPropagation(), (this.hasFocus = e.detail)), onSmoothlyDateHasPartialDate: e => { var _a; return (e.stopPropagation(), (_a = this.calendarElement) === null || _a === void 0 ? void 0 : _a.jumpTo(e.detail)); }, onSmoothlyDateTextChange: e => (e.stopPropagation(), this.onUserChangedValue(e)), onSmoothlyDateTextDone: e => { var _a; return (e.stopPropagation(), (this.open = false), (_a = this.dateTextElement) === null || _a === void 0 ? void 0 : _a.deselect()); } }), h("span", { key: '6271a396fe0a9db78c65a3ceac415baa6993ce72', class: "smoothly-icons", ref: el => (this.iconsElement = el) }, h("smoothly-icon", { key: '67762b14cf3c1a8657441805585cc22920fcddf6', class: "smoothly-invalid", name: "alert-circle", size: "small", tooltip: this.errorMessage }), h("slot", { key: '88eaca53d97c64fcfa81e0f749b1e9ff3a0068c4', name: "end" })), this.open && !this.readonly && (h("smoothly-calendar", { key: 'ed5ff09959095128feac27c0c5c4b8ba8b51514f', ref: el => (this.calendarElement = el), doubleInput: false, value: this.value, onSmoothlyDateSet: e => (e.stopPropagation(), this.onUserChangedValue(e)), max: this.max, min: this.min }, h("div", { key: '7d482a7dac0561c9f339948ef22573c9f49ccc51', slot: "year-label" }, h("slot", { key: '6a55528882645e6cc6c5e14b3498b480b8c1d6fd', name: "year-label" })), h("div", { key: 'c310a5c99728b55d0b3f19cb494cc7fe20f12353', slot: "month-label" }, h("slot", { key: '3a4324a869730eb9acb114243a4feae03318b6d5', name: "month-label" }))))));
112
112
  }
113
113
  static get is() { return "smoothly-input-date"; }
114
114
  static get encapsulation() { return "scoped"; }
@@ -123,15 +123,15 @@ export class SmoothlyInputDateRange {
123
123
  this.smoothlyInput.emit({ [this.name]: undefined });
124
124
  }
125
125
  render() {
126
- return (h(Host, { key: 'd51c1a9eb67ac79c9f2197a1e33226a9b2548967', tabindex: this.disabled ? undefined : 0, class: {
126
+ return (h(Host, { key: '1f8b2d046cbb64b8df5343a945cb51563d721f27', tabindex: this.disabled ? undefined : 0, class: {
127
127
  "has-value": !!(this.start || this.end),
128
128
  "has-text": !!(this.startHasText || this.endHasText),
129
129
  "floating-label": this.alwaysShowGuide,
130
- } }, h("span", { key: 'e401f255c513c13acb60b56c3c5a5f4a0379e8b5', class: "smoothly-date-range-input-part", onClick: (e) => this.onClick(e) }, h("slot", { key: '5ecf9d540aebf83d21b58713d509a64755b1bdf7', name: "start" }), h("label", { key: '04fe956539cc96ad23058cf629785d0a39345652', class: "label float-on-focus" }, h("slot", { key: '852ab71bfc5c592ecdfa6eeba18e2a49ae3db91b' })), this.placeholder && h("span", { key: '1805d99e668be475cc77a724cd6da0b9f27bdc65', class: "smoothly-date-range-placeholder" }, this.placeholder), h("smoothly-date-text", { key: '65e91796cba51d73162c032ec14d002be778ac11', ref: el => (this.startTextElement = el), class: "start-date-text", locale: this.locale, onSmoothlyDateTextHasText: e => (e.stopPropagation(), (this.startHasText = e.detail)), onSmoothlyDateTextFocusChange: e => (e.stopPropagation(), (this.hasFocus = e.detail)), onSmoothlyDateHasPartialDate: e => { var _a; return (e.stopPropagation(), (_a = this.calendarElement) === null || _a === void 0 ? void 0 : _a.jumpTo(e.detail)); }, onSmoothlyDateTextChange: e => (e.stopPropagation(), this.onSmoothlyDateTextChange(e, "start")), onSmoothlyDateTextNext: e => { var _a; return (e.stopPropagation(), (_a = this.endTextElement) === null || _a === void 0 ? void 0 : _a.select()); }, onSmoothlyDateTextDone: e => {
130
+ } }, h("span", { key: 'abc0f86b086ba26c3b1d4951394d81da35f83e86', class: "smoothly-date-range-input-part", onClick: (e) => this.onClick(e) }, h("slot", { key: 'a06c2b9b096aca90e83f765b364dca7544ed99ca', name: "start" }), h("label", { key: '70d76e4a489a17cb028c4b8831d352171214d58f', class: "label float-on-focus" }, h("slot", { key: '929cd10cba08419fbfeb0e19e99d01ef52bfaf96' })), this.placeholder && h("span", { key: '8c91d08654b77a865869dca0633c04d1af54d57f', class: "smoothly-date-range-placeholder" }, this.placeholder), h("smoothly-date-text", { key: '5a37bda38fa94c90ee8e5440f085c9eac3b81648', ref: el => (this.startTextElement = el), class: "start-date-text", locale: this.locale, onSmoothlyDateTextHasText: e => (e.stopPropagation(), (this.startHasText = e.detail)), onSmoothlyDateTextFocusChange: e => (e.stopPropagation(), (this.hasFocus = e.detail)), onSmoothlyDateHasPartialDate: e => { var _a; return (e.stopPropagation(), (_a = this.calendarElement) === null || _a === void 0 ? void 0 : _a.jumpTo(e.detail)); }, onSmoothlyDateTextChange: e => (e.stopPropagation(), this.onSmoothlyDateTextChange(e, "start")), onSmoothlyDateTextNext: e => { var _a; return (e.stopPropagation(), (_a = this.endTextElement) === null || _a === void 0 ? void 0 : _a.select()); }, onSmoothlyDateTextDone: e => {
131
131
  var _a, _b;
132
132
  return (e.stopPropagation(),
133
133
  this.end ? ((_a = this.startTextElement) === null || _a === void 0 ? void 0 : _a.deselect(), (this.open = false)) : (_b = this.endTextElement) === null || _b === void 0 ? void 0 : _b.select());
134
- }, value: this.start, readonly: this.readonly, disabled: this.disabled, showLabel: this.showLabel }), h("span", { key: '3808540c3549d2c2806877f19e59a1d1a73e2cde', class: "smoothly-date-range-separator" }, " \u2013 "), h("smoothly-date-text", { key: '9a880b0c1d61415c832b33dd52374da6e73206bf', ref: el => (this.endTextElement = el), class: "end-date-text", locale: this.locale, onSmoothlyDateTextHasText: e => (e.stopPropagation(), (this.endHasText = e.detail)), onSmoothlyDateTextFocusChange: e => (e.stopPropagation(), (this.hasFocus = e.detail)), onSmoothlyDateHasPartialDate: e => { var _a; return (e.stopPropagation(), (_a = this.calendarElement) === null || _a === void 0 ? void 0 : _a.jumpTo(e.detail)); }, onSmoothlyDateTextChange: e => (e.stopPropagation(), this.onSmoothlyDateTextChange(e, "end")), onSmoothlyDateTextPrevious: e => { var _a; return (e.stopPropagation(), (_a = this.startTextElement) === null || _a === void 0 ? void 0 : _a.select("end")); }, onSmoothlyDateTextNext: e => e.stopPropagation(), onSmoothlyDateTextDone: e => { var _a; return (e.stopPropagation(), (_a = this.endTextElement) === null || _a === void 0 ? void 0 : _a.deselect(), (this.open = false)); }, value: this.end, readonly: this.readonly, disabled: this.disabled, showLabel: this.showLabel })), h("span", { key: '905c40c0e4493dcbf7f19b2b45dad7d3117d5c5e', class: "smoothly-icons" }, h("smoothly-icon", { key: 'cb3e61522d812b6756aa65873740753399cb9256', class: "smoothly-invalid", name: "alert-circle", size: "small", tooltip: this.errorMessage }), h("slot", { key: 'b2d0ed8714484497ba6c69e3b6617db20c720819', name: "end" })), this.open && (h("smoothly-calendar", { key: '4b62dde1ca06fca127562712a14a287861ca31f9', ref: el => (this.calendarElement = el), doubleInput: true, onSmoothlyDateSet: e => e.stopPropagation(), onSmoothlyDateRangeSet: e => {
134
+ }, value: this.start, readonly: this.readonly, disabled: this.disabled, showLabel: this.showLabel }), h("span", { key: '694bb773d16025b187d059c8b0cc7b36f94956d5', class: "smoothly-date-range-separator" }, " \u2013 "), h("smoothly-date-text", { key: '830739f213b8c3a27619d7f29667483f4317b612', ref: el => (this.endTextElement = el), class: "end-date-text", locale: this.locale, onSmoothlyDateTextHasText: e => (e.stopPropagation(), (this.endHasText = e.detail)), onSmoothlyDateTextFocusChange: e => (e.stopPropagation(), (this.hasFocus = e.detail)), onSmoothlyDateHasPartialDate: e => { var _a; return (e.stopPropagation(), (_a = this.calendarElement) === null || _a === void 0 ? void 0 : _a.jumpTo(e.detail)); }, onSmoothlyDateTextChange: e => (e.stopPropagation(), this.onSmoothlyDateTextChange(e, "end")), onSmoothlyDateTextPrevious: e => { var _a; return (e.stopPropagation(), (_a = this.startTextElement) === null || _a === void 0 ? void 0 : _a.select("end")); }, onSmoothlyDateTextNext: e => e.stopPropagation(), onSmoothlyDateTextDone: e => { var _a; return (e.stopPropagation(), (_a = this.endTextElement) === null || _a === void 0 ? void 0 : _a.deselect(), (this.open = false)); }, value: this.end, readonly: this.readonly, disabled: this.disabled, showLabel: this.showLabel })), h("span", { key: '90767c1048bbcc816563496f3d3afbea4970e953', class: "smoothly-icons" }, h("smoothly-icon", { key: '9f6ffbfa8e626160be54d8e82f8538d5a1e75c5f', class: "smoothly-invalid", name: "alert-circle", size: "small", tooltip: this.errorMessage }), h("slot", { key: '83aef1b1b1c8726f0a7b8b939fcf1d54b07a8389', name: "end" })), this.open && (h("smoothly-calendar", { key: '395c5ba753121d7a0eb1c2d1e986cfad58e98232', ref: el => (this.calendarElement = el), doubleInput: true, onSmoothlyDateSet: e => e.stopPropagation(), onSmoothlyDateRangeSet: e => {
135
135
  e.stopPropagation();
136
136
  this.open = false;
137
137
  this.start = e.detail.start;
@@ -182,7 +182,7 @@ export class SmoothlyInputDateRangeText {
182
182
  }
183
183
  }
184
184
  render() {
185
- return (h(Host, { key: '5a1a4cfeb67c96be31473ab847d84c93ff2b5459', class: { "has-text": Object.values(this.parts).some(part => !!part) } }, DateFormat.Order.toArray(this.order).map((part, index) => {
185
+ return (h(Host, { key: '29343df478fdb9a5805aef00432be4456d8e4d12', class: { "has-text": Object.values(this.parts).some(part => !!part) } }, DateFormat.Order.toArray(this.order).map((part, index) => {
186
186
  var _a;
187
187
  return (h("span", { onClick: () => !this.readonly && !this.disabled && this.setFocus(index) }, h("span", { class: {
188
188
  "smoothly-date-text-part": true,
@@ -97,30 +97,30 @@ export class SmoothlyInputDateTime {
97
97
  this.isDifferentFromInitial = false;
98
98
  }
99
99
  render() {
100
- return (h(Host, { key: 'e3026057b92f6fcf94e0abc163d179557991a56d' }, h("smoothly-input", { key: '899dce367576b7d7c9b71c98753579a08b85e4f2', color: this.color, looks: this.looks == "transparent" ? this.looks : undefined, name: "date", onFocus: () => !this.readonly && !this.disabled && (this.open = !this.open), onClick: () => !this.readonly && !this.disabled && (this.open = !this.open), readonly: this.readonly, disabled: this.disabled, type: "date", value: this.date, showLabel: this.showLabel, onSmoothlyInputLoad: e => e.stopPropagation(), onSmoothlyInput: async (e) => {
100
+ return (h(Host, { key: 'faf40611232f95c653ef583a7f0b7ed32ebb400d' }, h("smoothly-input", { key: 'e0761d639e8d0b3a4f305a05e70e5a6df241fd29', color: this.color, looks: this.looks == "transparent" ? this.looks : undefined, name: "date", onFocus: () => !this.readonly && !this.disabled && (this.open = !this.open), onClick: () => !this.readonly && !this.disabled && (this.open = !this.open), readonly: this.readonly, disabled: this.disabled, type: "date", value: this.date, showLabel: this.showLabel, onSmoothlyInputLoad: e => e.stopPropagation(), onSmoothlyInput: async (e) => {
101
101
  e.stopPropagation();
102
102
  this.date = e.detail.date;
103
103
  }, onSmoothlyUserInput: async (e) => {
104
104
  e.stopPropagation();
105
105
  this.smoothlyUserInput.emit({ name: this.name, value: await this.getValue() });
106
- } }, h("slot", { key: '8f35a2a863b7b7cf177f0ac69534f7ce77fe1f2c' })), h("smoothly-input", { key: '2eda68cc37c950ca7318d2f82989402890420b3b', name: "hour", type: "integer", max: 23, pad: 2, value: this.hour, readonly: this.readonly, disabled: this.disabled, placeholder: "hh", onSmoothlyInputLoad: e => e.stopPropagation(), onSmoothlyInput: async (e) => {
106
+ } }, h("slot", { key: '7fbe6ae1b6697d22ab4037bcf86ef6d27ce5f923' })), h("smoothly-input", { key: 'cd751c2a4dfe09b316772c07e126ad0c5b875eb4', name: "hour", type: "integer", max: 23, pad: 2, value: this.hour, readonly: this.readonly, disabled: this.disabled, placeholder: "hh", onSmoothlyInputLoad: e => e.stopPropagation(), onSmoothlyInput: async (e) => {
107
107
  e.stopPropagation();
108
108
  this.hour = e.detail.hour;
109
109
  }, onSmoothlyUserInput: async (e) => {
110
110
  e.stopPropagation();
111
111
  this.smoothlyUserInput.emit({ name: this.name, value: await this.getValue() });
112
- } }), h("span", { key: 'adadacca4988e986f1aa32c32f43c9e528b01c3c', class: "colon" }, ":"), h("smoothly-input", { key: '9dad75b858470dd4ba808aa89062eed852190cf9', name: "minute", type: "integer", max: 59, pad: 2, value: this.minute, readonly: this.readonly, disabled: this.disabled, placeholder: "mm", onSmoothlyInputLoad: e => e.stopPropagation(), onSmoothlyInput: async (e) => {
112
+ } }), h("span", { key: 'ff4cc79cf32d9cd9528010965e6bbb2c60026f57', class: "colon" }, ":"), h("smoothly-input", { key: 'd96351c5c25c042915f2ea78f94365648f620e35', name: "minute", type: "integer", max: 59, pad: 2, value: this.minute, readonly: this.readonly, disabled: this.disabled, placeholder: "mm", onSmoothlyInputLoad: e => e.stopPropagation(), onSmoothlyInput: async (e) => {
113
113
  e.stopPropagation();
114
114
  this.minute = e.detail.minute;
115
115
  }, onSmoothlyUserInput: async (e) => {
116
116
  e.stopPropagation();
117
117
  this.smoothlyUserInput.emit({ name: this.name, value: await this.getValue() });
118
- } }), h("span", { key: '71b671253a0616cc4858b3a6ee5e3466442491dd', class: "icons" }, h("smoothly-icon", { key: '42087cb059d241c89ba24bacf3515a3a02641ccf', class: "smoothly-invalid", name: "alert-circle", size: "small", tooltip: this.errorMessage }), h("slot", { key: '333c5b5cd559d2d1dd492e23cf68ace9bb77821a', name: "end" })), this.open && !this.readonly && (h("smoothly-calendar", { key: 'f51dffb8bfe1e12d9cbc020d5129a0fd27c170e0', doubleInput: false, value: this.value ? isoly.DateTime.getDate(this.value) : undefined, min: this.min ? isoly.DateTime.getDate(this.min) : undefined, max: this.max ? isoly.DateTime.getDate(this.max) : undefined, onSmoothlyDateSet: async (e) => {
118
+ } }), h("span", { key: '258c62771f84b3816025a7831756d52ddc3e61a3', class: "icons" }, h("smoothly-icon", { key: 'f10cdb5bd42fe2a1bc8e3c9eb41cd488957bb0bf', class: "smoothly-invalid", name: "alert-circle", size: "small", tooltip: this.errorMessage }), h("slot", { key: '867ca6ecbe958d5f97e126fc4df23c6fcef6e1fa', name: "end" })), this.open && !this.readonly && (h("smoothly-calendar", { key: 'd1c1ea3e905b5e677883c273231794de21777fc0', doubleInput: false, value: this.value ? isoly.DateTime.getDate(this.value) : undefined, min: this.min ? isoly.DateTime.getDate(this.min) : undefined, max: this.max ? isoly.DateTime.getDate(this.max) : undefined, onSmoothlyDateSet: async (e) => {
119
119
  e.stopPropagation();
120
120
  this.date = e.detail;
121
121
  this.smoothlyUserInput.emit({ name: this.name, value: await this.getValue() });
122
122
  this.open = false;
123
- } }, h("div", { key: 'e2cdfa2540db761e6cba45ea4526cd3b8678d5ec', slot: "year-label" }, h("slot", { key: '96fb5e705509cb97721f48066cbcceee91e4477d', name: "year-label" })), h("div", { key: '134921d0e28c76ba346231073135fab12acdfb17', slot: "month-label" }, h("slot", { key: '73aedfafe560f577e97f16730c0b295eeb8f172e', name: "month-label" }))))));
123
+ } }, h("div", { key: '0ab989467e67bc709d0c45285a7eba7743606171', slot: "year-label" }, h("slot", { key: 'ae14dc89cb7cfa3df3bd12ed531d9e4f71242c07', name: "year-label" })), h("div", { key: '9e226c95c5ae7ab3af1e09a93d290222827c5dab', slot: "month-label" }, h("slot", { key: 'c0f55782eece8e74881124284504a2ac9489ed63', name: "month-label" }))))));
124
124
  }
125
125
  static get is() { return "smoothly-input-date-time"; }
126
126
  static get encapsulation() { return "scoped"; }
@@ -5,7 +5,7 @@ export class SmoothlyInputDateDemo {
5
5
  this.alwaysShowGuide = false;
6
6
  }
7
7
  render() {
8
- return (h(Host, { key: 'e33d9339ee4a2275ec14772535775d9dd9bf5f1f' }, h("div", { key: 'f10e1c4e913fd6dd05cd04030d3bd845fda0d263' }, h("h2", { key: 'ca6f4b48417c3d0b07f79194512e0f7648ab8939' }, "Date input"), h("p", { key: '6c635b4fcd3276080055d2a12f4e70e609d30af4' }, "Different locales formatting the same date"), h("smoothly-button", { key: '2b62d912d00ce8b225b085e5554b181f0a970bc5', color: "primary", onClick: () => (this.date = this.date ? isoly.Date.next(this.date) : isoly.Date.now()) }, "Set date"), h("smoothly-input-checkbox", { key: 'fbf65e6cb24cdac58990b043c1879c7f192e25b5', looks: "transparent", onSmoothlyUserInput: e => {
8
+ return (h(Host, { key: '2eddf4f43fc88d4f0baee5472fb55f98be8464f2' }, h("div", { key: 'a505bd4d499e9fce35b50c88dbb3e3375fe7e36c' }, h("h2", { key: 'b79d4c949fec7c008314b3562ba56ddfe22a1202' }, "Date input"), h("p", { key: 'f76bb9f59b85781610474db18fe10891f1560330' }, "Different locales formatting the same date"), h("smoothly-button", { key: 'c8c39579e4ab97b4b455c88514b7b6d0b78ee781', color: "primary", onClick: () => (this.date = this.date ? isoly.Date.next(this.date) : isoly.Date.now()) }, "Set date"), h("smoothly-input-checkbox", { key: '9e921d7050071821148968680950fe00a0bdad8b', looks: "transparent", onSmoothlyUserInput: e => {
9
9
  this.alwaysShowGuide = e.detail.value;
10
10
  console.log(this.alwaysShowGuide);
11
11
  } }, "Always Show Guide")), ["en-US", "en-GB", "de-DE", "se-SE"].map(locale => (h(Fragment, null, h("smoothly-input-date", { locale: locale, name: locale, looks: "border", value: this.date, alwaysShowGuide: this.alwaysShowGuide }, locale, h("smoothly-input-clear", { slot: "end" })), h("smoothly-input-date-range", { locale: locale, name: locale + "-range", looks: "border", start: this.date, end: this.date ? isoly.Date.next(this.date) : undefined, alwaysShowGuide: this.alwaysShowGuide }, locale, " Range", h("smoothly-input-clear", { slot: "end" })))))));
@@ -7,14 +7,14 @@ export class SmoothlyInputDemo {
7
7
  this.numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9];
8
8
  }
9
9
  render() {
10
- return (h(Host, { key: '77487e04cd393519b5080f752b3cba328ae8bbd3' }, h("smoothly-input-demo-standard", { key: 'f9de577b637efcaffe3a92dc55bff25520e0384f' }), h("smoothly-input-date-demo", { key: 'cdb1c974c8cb5844cf800f8fc52c407479db307e' }), h("smoothly-input-demo-user-input", { key: '38bb2d03ef20e3e8e5737e423f4f54c9fad4f973' }), h("smoothly-input-demo-radio", { key: '999e3b97199fbcb547e83c589c1447e726f4754a' }), h("div", { key: 'ee8094197dd274791200a010baedd05db71b888a', class: "inputs" }, h("h2", { key: '5b65b420015ad7bb32ef059f6aee019400cdc6b3' }, "Calendar"), h("smoothly-input-date", { key: '375cad6d89a6f80cbe8e67cbeb1759e0cb28ab11', name: "some-date" }, "Calendar"), h("smoothly-input-date-time", { key: '797e6d6ccbbba14258926f21f202eacad2b85d76', name: "someDateTime", value: isoly.DateTime.now() }, "DateTime"), h("h2", { key: 'a49689e5821a93c721be25c6faa570f05402582b' }, "Date Range"), h("smoothly-input-date-range", { key: 'ab71a879e70b97431da2f0beacf54dc093ca0a7a', name: "testing", start: isoly.Date.now(), end: isoly.Date.nextMonth(isoly.Date.now()), min: "2021-10-01", max: "2025-01-31" }), h("smoothly-input-date-range", { key: '703952d0ba703d6a8cc26b4bef028d7a48c8c4f6', name: "testing", start: isoly.Date.now(), end: isoly.Date.nextMonth(isoly.Date.now()), min: "2021-10-10", max: "2024-12-30" }, h("smoothly-input-reset", { key: '5bd07b3504d054442cefb2ba9db61c4d83ed39c9', slot: "end", size: "icon" })), h("smoothly-input-date-range", { key: '39c7ae936d2a952626f20dcc19ae0a52885db2f5', looks: "grid", start: isoly.Date.now(), end: isoly.Date.nextMonth(isoly.Date.now()), min: "2021-10-10", max: "2025-12-30", showLabel: false, style: {
10
+ return (h(Host, { key: '0610dea0130909d255f6dcbf7f798521cb18fc4e' }, h("smoothly-input-demo-standard", { key: 'e74b371f701b9371972b5428efb0ea4edea9244c' }), h("smoothly-input-date-demo", { key: 'c989f6853579a9ba68c6f57e2e6381c121ff091c' }), h("smoothly-input-demo-user-input", { key: '67189969e7eeb85c53fa6485cc4bc1c6f8810d3c' }), h("smoothly-input-demo-radio", { key: 'd277353814df2808ab955df71df8dd79a14e3b09' }), h("div", { key: '69864f1761f23e2d9fe5003d1a28895195587f23', class: "inputs" }, h("h2", { key: '9e43ab4414d38f5e7d6ed559293a364700e4e3ff' }, "Calendar"), h("smoothly-input-date", { key: '3cc461eaf51348c11e76a541f4e89c7727d49006', name: "some-date" }, "Calendar"), h("smoothly-input-date-time", { key: '331225ff58737c6cd60986d47935cf906f143d02', name: "someDateTime", value: isoly.DateTime.now() }, "DateTime"), h("h2", { key: '7e7535017eb1d6a683df758a4d017dc7cb1fccc3' }, "Date Range"), h("smoothly-input-date-range", { key: 'fad6725321923c5821fe74add6cef73a560c2496', name: "testing", start: isoly.Date.now(), end: isoly.Date.nextMonth(isoly.Date.now()), min: "2021-10-01", max: "2025-01-31" }), h("smoothly-input-date-range", { key: '21d5f9edc259b904554d64c234e8268184db9c78', name: "testing", start: isoly.Date.now(), end: isoly.Date.nextMonth(isoly.Date.now()), min: "2021-10-10", max: "2024-12-30" }, h("smoothly-input-reset", { key: 'd08635584ffc2cf923f93304701d5ae0130dcd57', slot: "end", size: "icon" })), h("smoothly-input-date-range", { key: '46c5c5ca642f983a7d4956c83385ab25046044e7', looks: "grid", start: isoly.Date.now(), end: isoly.Date.nextMonth(isoly.Date.now()), min: "2021-10-10", max: "2025-12-30", showLabel: false, style: {
11
11
  "--smoothly-input-border-radius": "0.5rem",
12
- } }, h("smoothly-input-clear", { key: 'ef4179eba332c4aefcccec094f4cd75e0a724b3d', slot: "end", size: "icon" })), h("h2", { key: '8b97455a27099963ab131055f4d43f0e050f4cc7' }, "Date"), h("smoothly-input-date", { key: 'c167353ed6a2b37488e709929e8dd7691ff3b0b7' }, "Date"), h("smoothly-input-date", { key: 'f0cfeb105e03c511c2b2c4daa5cd618fb1bcbfb4', showLabel: false, value: "2021-10-28", max: "2021-12-30", min: "2021-10-10" }, "Date"), h("smoothly-input-date", { key: '771efe6acb85206eb87024409a78ed52d3907af0', value: "2021-10-28" }, "Date", h("smoothly-input-reset", { key: '8e009b6d59da638ada992b07ddb2c2d1c071be55', slot: "end", size: "icon" })), h("smoothly-input-date", { key: '936b5cdea71f19463922d25d2ed9468df89586ce', value: "2021-10-28" }, "Date", h("smoothly-input-clear", { key: 'ad177348cf1f5353d3a2b7c7317fbd71c3614f61', slot: "end", size: "icon" })), h("h2", { key: '475ca58552f978b55eba5222267d18a0d78938c5' }, "Select"), h("div", { key: '7eae0b4cee9e74e38e9e726934101066f870aeec', class: "select-div" }, h("smoothly-input-select", { key: '16d9addd365f75e1ff255d9cd94bb90b20901fd3', name: "select-dessert", looks: "border" }, h("label", { key: '7e7550a94183d31ae99bc7dd85eda059c755e3d0', slot: "label" }, "Select with clear button"), h("smoothly-item", { key: '62b741c6154152014d1206fd2481984aa3097d8f', value: "1" }, "Ice cream"), h("smoothly-item", { key: 'b45f30884b44e05528555295bd11b4e01fc5d3a4', value: "2" }, "Sponge cake"), h("smoothly-item", { key: '7b2c3712a21be6943acf8eb1557ddd9fa101320c', value: "3", disabled: true }, "Disabled Item"), h("smoothly-item", { key: '47bbd5ccbaaa9977688f2db60e3b01ee44c37806', value: "4" }, "Cookie"), h("smoothly-item", { key: '0965a9480aa7dfad59a07bc19d49ccf6a5a7d52d', value: "5" }, "Croissant"), h("smoothly-item", { key: '8298f1a72b728eeb490ba52d31f34e4a5d667da5', value: "6" }, "Chocolate fondue"), h("smoothly-input-clear", { key: '6a5b85b80fd07f85f8d7ca7704e3a80174bd6e6e', size: "icon", slot: "end" })), h("smoothly-input-select", { key: 'e5bc84b980a2bd6cca07a580f15817c3b7dc988b', multiple: true, name: "select-dessert-multiple", looks: "border" }, h("label", { key: 'f73a74a039e1b892a444591ba6c86ab184dbcbbb', slot: "label" }, "Select multiple with reset button"), h("smoothly-item", { key: 'a863ec926936998f9bbf571b0250ed0f6d0d0a9c', value: "ice cream" }, "Ice cream"), h("smoothly-item", { key: '7dc67e9285547dda4daad5136837e80450ac13ea', value: "sponge cake" }, "Sponge cake"), h("smoothly-item", { key: '55dd30ea0dabd3481795c13c350ee7052207aad6', selected: true, value: "cookie" }, "Cookie"), h("smoothly-item", { key: '213ff1fbc6a5c445bbbce07140dbd18ee162cb89', value: "croissant" }, "Croissant"), h("smoothly-item", { key: 'abc065dab103fdaeb511f56c8db239b82cc48577', selected: true, value: "chocolate fondue" }, "Chocolate fondue"), h("smoothly-input-reset", { key: '48922c5a07288a94407c4dc1f55305f567d45893', size: "icon", slot: "end" })), h("smoothly-input-select", { key: '3ebed3f650a369cfbd7850584efd9bcf79c6f846', name: "spirit-animals", looks: "border", mutable: true }, h("label", { key: '73f73f2bce086f81b7fcb46f4808bd5732783aef', slot: "label" }, "Select or add new options"), h("smoothly-item", { key: 'beb4a3b4c715c8b1f2bb5b765fb742da64363cb7', value: "manatee" }, "Manatee"), h("smoothly-item", { key: 'f5c8c7fccb97ac840b42220f8380035a7ac7088f', selected: true, value: "cthulu" }, "Cthulu")), h("smoothly-input-select", { key: '5163d4d246184319955f0c1cc756f9cee765847b', name: "select-icon", clearable: false, showSelected: false }, h("smoothly-item", { key: '2c7ab7ef09f08930f072f5e2e51677951c84ea50', value: "folder", selected: true }, h("smoothly-icon", { key: '86f4ed31d2e4ff382aece3cedf8f0d0265454b8a', size: "small", name: "folder-outline" })), h("smoothly-item", { key: 'afc8fbf7dba66206051d2ae4d7df8b16a0c3b2cf', value: "camera" }, h("smoothly-icon", { key: 'a9a115b3a8038393e75e72ef38742f3bb1b60339', size: "small", name: "camera-outline" }))), h("smoothly-input-select", { key: 'd7aac15a3ff5c7271fd22cab0621aa6d4f69cb99', ordered: true, menuHeight: "7.5items", placeholder: "Select...", name: "select-month" }, h("label", { key: 'db0eba7390d2b64d810f07898b7b646f0d6a360d', slot: "label" }, "Alphabet ordered select"), Array.from({ length: 26 })
12
+ } }, h("smoothly-input-clear", { key: '3465328594f446fbbe97cdb87adb806f057a4041', slot: "end", size: "icon" })), h("h2", { key: 'e2a08b76ba392d10beb4eb95d8363620f07b53e4' }, "Date"), h("smoothly-input-date", { key: 'fbc0b53f5e576341027a9d0199e0a369cab1ed15' }, "Date"), h("smoothly-input-date", { key: 'b5ead1c49120a42e63e310361c29d31eabbcff60', showLabel: false, value: "2021-10-28", max: "2021-12-30", min: "2021-10-10" }, "Date"), h("smoothly-input-date", { key: '18fab78a08e80b35d930d40be27c5f2863beaba1', value: "2021-10-28" }, "Date", h("smoothly-input-reset", { key: 'ab9470f9a44be6a115ff89db7c50f631362cecae', slot: "end", size: "icon" })), h("smoothly-input-date", { key: '61aa9be4f7193617ecc89d5250f9c97f30742c35', value: "2021-10-28" }, "Date", h("smoothly-input-clear", { key: '9ab5d2a554d2123360afdac3c266ac79c6035d36', slot: "end", size: "icon" })), h("h2", { key: 'ed8c37111142696858c0eac29661406ae2cd9f55' }, "Select"), h("div", { key: '9ae174d2d4a332de3ad770450464569378f05bdb', class: "select-div" }, h("smoothly-input-select", { key: '34f6a893981c3c8dc6703256a9f2c3089cf4ff25', name: "select-dessert", looks: "border" }, h("label", { key: '7198f30b4aa7cb91377cb72ef16cb7dca79d00ff', slot: "label" }, "Select with clear button"), h("smoothly-item", { key: 'b85cb7fb77fe50cd6a42d0a6c38020dcfb2166ed', value: "1" }, "Ice cream"), h("smoothly-item", { key: 'de464d05e6cdffe4b578e5708d1e9e33376a0521', value: "2" }, "Sponge cake"), h("smoothly-item", { key: '553b7ecd797f0e55def5b6c460440d8286755f4c', value: "3", disabled: true }, "Disabled Item"), h("smoothly-item", { key: '3b4349b0785cd4440611499c23f082961541a91a', value: "4" }, "Cookie"), h("smoothly-item", { key: 'a5638b6d6424c31cb1d26cecb42cfeb1004e7674', value: "5" }, "Croissant"), h("smoothly-item", { key: '015c157d486120f18de97fae45e36b9e0b0ef863', value: "6" }, "Chocolate fondue"), h("smoothly-input-clear", { key: 'b16c9fd651670b3808643e57043198550e3a1103', size: "icon", slot: "end" })), h("smoothly-input-select", { key: '277ad384d61f6a4ce7fb849d90a7e2437f105841', multiple: true, name: "select-dessert-multiple", looks: "border" }, h("label", { key: 'bcd5acb1903599e959821fc91f6aaf60ad0bb5b9', slot: "label" }, "Select multiple with reset button"), h("smoothly-item", { key: '3e5c1545a14684d153a252fba8060965f63b6c46', value: "ice cream" }, "Ice cream"), h("smoothly-item", { key: '155d20eda1c0ed2816a7bac67d54b2e55a7a101a', value: "sponge cake" }, "Sponge cake"), h("smoothly-item", { key: 'cdf81df5d54168f33c679918e7f3440f0f8d5da3', selected: true, value: "cookie" }, "Cookie"), h("smoothly-item", { key: 'ee8b1f2e292c76d0b5f1ea73501d56ed7c5c748c', value: "croissant" }, "Croissant"), h("smoothly-item", { key: 'ea635dbcfc236dec09da467db23e37b18fc8953a', selected: true, value: "chocolate fondue" }, "Chocolate fondue"), h("smoothly-input-reset", { key: 'de1bad5de86767304a5244812506166ac09ef395', size: "icon", slot: "end" })), h("smoothly-input-select", { key: 'a606780ffc3288ff2c3963c63d1e67922e27eb03', name: "spirit-animals", looks: "border", mutable: true }, h("label", { key: '12d7b79350e82d58eab979ae139ba1895e6d60e8', slot: "label" }, "Select or add new options"), h("smoothly-item", { key: 'b9c3dfe20a6df2409ef1e350bf6491284a583d5b', value: "manatee" }, "Manatee"), h("smoothly-item", { key: '609d4f74ac6f9b7b3de0d6cf8239e357e273be3f', selected: true, value: "cthulu" }, "Cthulu")), h("smoothly-input-select", { key: '02c55364f84130fbe531450518a9f14c01d093eb', name: "select-icon", clearable: false, showSelected: false }, h("smoothly-item", { key: '838cb077ef888a9474f387f3e103d1fe5a7446bf', value: "folder", selected: true }, h("smoothly-icon", { key: 'b25142bf3ef747ac3b0efce4e5b0570da8fe3fdf', size: "small", name: "folder-outline" })), h("smoothly-item", { key: '230ece62e3958643281636ba4185118102394ce8', value: "camera" }, h("smoothly-icon", { key: '2388323ed7eb30ca002c1fdb0a5b3c39e11b5da2', size: "small", name: "camera-outline" }))), h("smoothly-input-select", { key: '39a9cf873e9f7d93b05de669efa66d38f2f23ab6', ordered: true, menuHeight: "7.5items", placeholder: "Select...", name: "select-month" }, h("label", { key: '9789169a41dfb9e3162112e23caffbfe5b6daeea', slot: "label" }, "Alphabet ordered select"), Array.from({ length: 26 })
13
13
  .map((_, i) => String.fromCharCode(i + 65))
14
- .map(char => (h("smoothly-item", { value: char, selected: char == "H" }, char)))), h("smoothly-input-select", { key: 'c61728d55e5e96dc81d5df36c4fa38ed802f8b00', multiple: true, menuHeight: "7.5items", placeholder: "Select...", name: "select-month" }, h("label", { key: '5768a186da1bf2fa4fbc80fb91478af031981694', slot: "label" }, "Month multiple select"), h("smoothly-item", { key: '950676b7ffb90bc765f2a0c24cb40c631f64add8', value: "1" }, "January"), h("smoothly-item", { key: '57e77e1ca64869441e44e0c753a0c132e6c8a152', value: "2" }, "February"), h("smoothly-item", { key: '2ee03ce05d5dfa6ec01fc3cde97051a10d2215d9', value: "3" }, "March"), h("smoothly-item", { key: '9c9dfdf2dd5ebdfffdc92732b7dff4b770632775', value: "4" }, "April"), h("smoothly-item", { key: '35a1ce3376a84c830c00fba8080c093ef6f4830a', value: "5" }, "May"), h("smoothly-item", { key: 'cbf4b76e9f8324b29626555ec612f5ee5da8d47b', value: "6" }, "June"), h("smoothly-item", { key: '6f7bc0aaeb4ff6e5d0427ab5226924b625086419', value: "7" }, "July"), h("smoothly-item", { key: '72d72d65b42e1250b527023364c2bb0c79178a37', value: "8" }, "August"), h("smoothly-item", { key: '5d6f57f7ca75f90c30aef101bbbdbb9a26aafb69', value: "9" }, "September"), h("smoothly-item", { key: '08d57569eab4d0948f87eaeb8d5e1b936ee17839', value: "10" }, "October"), h("smoothly-item", { key: '99e91533b340a40db158f87ed28fb371ebd8eb08', value: "11" }, "November"), h("smoothly-item", { key: '4fd40ffef20baed8a6f5ca58768c78693b3a45a4', value: "12" }, "December")), h("div", { key: 'e1c03afba7cd1421976e4a4c59beac860dedf723', class: "select-div-row" }, h("smoothly-input-select", { key: '4067c5e666655fe1b474a73a58241373c826ab03', name: "select-icon", clearable: false, showSelected: false }, h("smoothly-item", { key: '0589c79c7fa7cf31dbad4ab0e8be68523e684299', value: "folder", selected: true }, h("smoothly-icon", { key: '56813db2ee593db9227920662d646f7493e0515a', size: "small", name: "folder-outline" })), h("smoothly-item", { key: '3937b7ebb395698a854b2eeb9aeed188fe8fd78d', value: "camera" }, h("smoothly-icon", { key: 'ce39494e071c12c23a475c31eb448512d2fa0f25', size: "small", name: "camera-outline" })), h("smoothly-item", { key: '9a65176e01981ccfd312fd4d3d4b255760891699', value: "boat" }, h("smoothly-icon", { key: 'e9e97ae824d225a6dc33fa997b5e46a8bc3c2812', size: "small", name: "boat-outline" }))), h("smoothly-input-select", { key: '1f21eb6eded9dffd449157755bad1b84f7a52981', name: "select-number", clearable: false }, this.numbers.map(number => (h("smoothly-item", { value: "number", selected: number === 3 }, number)))), h("smoothly-input", { key: 'f4afcff411357a29b89fe0a52239ba7c677cb490', name: "name", value: "Sten Qvist" }, "Name"))), h("h2", { key: '9883744d26d1eec36ed1082407e3656d4ea0d1f7' }, "Duration"), h("smoothly-input", { key: 'fa507aaa61557ca41837cf906a78fef5d16affc0', name: "duration", type: "duration", placeholder: "hh:mm", value: this.duration, onSmoothlyInput: e => (this.duration = e.detail.duration) }, "Duration"), h("smoothly-input", { key: 'f5c027a3ed22026819a2e88ddc5300afe7b8c900', name: "duration", type: "duration", value: this.duration, placeholder: "-hh:mm", onSmoothlyInput: e => {
14
+ .map(char => (h("smoothly-item", { value: char, selected: char == "H" }, char)))), h("smoothly-input-select", { key: 'f387c1c723590cc0af87d9a1fd57d459c1cc73f6', multiple: true, menuHeight: "7.5items", placeholder: "Select...", name: "select-month" }, h("label", { key: 'a5db731994586ad163c1077afe56a23f8645654a', slot: "label" }, "Month multiple select"), h("smoothly-item", { key: 'f1f9ee3d60d71883b4dd1b4aea488f2c22cde1d5', value: "1" }, "January"), h("smoothly-item", { key: 'a4432cbbf045646fdb7c5481edd5a4dc647e714e', value: "2" }, "February"), h("smoothly-item", { key: '5004b0e7acb2fca29c26f563933f66a141a87a21', value: "3" }, "March"), h("smoothly-item", { key: 'f9085fa0f5ac2bdc308a6e6eb5f76d060179adac', value: "4" }, "April"), h("smoothly-item", { key: '45c828dcd5f36bcb4624860f11ffe970ecfe3021', value: "5" }, "May"), h("smoothly-item", { key: '6dcc18a959124619842d5a7bd68b38b507ecbb80', value: "6" }, "June"), h("smoothly-item", { key: 'cd1b161f2f13dfe661b2d3363e3b20647c4ec3ca', value: "7" }, "July"), h("smoothly-item", { key: 'a5ae41fa7eed339f47f69aad3681eae4579e0efe', value: "8" }, "August"), h("smoothly-item", { key: '0016e486b487603da72487e53031739b85dc5318', value: "9" }, "September"), h("smoothly-item", { key: 'f1c6ed5593caa14259f74be4c8b3be20386e54cf', value: "10" }, "October"), h("smoothly-item", { key: 'f636538a7669567ff285e74a4c2de398546108ec', value: "11" }, "November"), h("smoothly-item", { key: '0a83028ce8f962d1b8d501041aad0a288a5829c5', value: "12" }, "December")), h("div", { key: 'e16c4ae44a81885c288ca235fc56e53d08b3253f', class: "select-div-row" }, h("smoothly-input-select", { key: 'a399d1152444fff42ea7b37ca41824a6ecf63d81', name: "select-icon", clearable: false, showSelected: false }, h("smoothly-item", { key: 'af648a4bb5f15488197c34a752e282bd60cf79a3', value: "folder", selected: true }, h("smoothly-icon", { key: '16d8cdf17dbf67544d10c06d8f599dd30b87cb61', size: "small", name: "folder-outline" })), h("smoothly-item", { key: '39012cd32fa3bcecb1cc012160048d6817a94c5c', value: "camera" }, h("smoothly-icon", { key: 'a51166743064c08c1e9509fea17b60fde3f39556', size: "small", name: "camera-outline" })), h("smoothly-item", { key: '5b13f14afbbf764ad387c34db65f48335c8e5ff8', value: "boat" }, h("smoothly-icon", { key: '855facc3a62046b5b3b4ff29f0d5226d2aff1c55', size: "small", name: "boat-outline" }))), h("smoothly-input-select", { key: 'cc1e08d1120f45c8143ae6f28cbdbad769785e58', name: "select-number", clearable: false }, this.numbers.map(number => (h("smoothly-item", { value: "number", selected: number === 3 }, number)))), h("smoothly-input", { key: 'f12155b6e15ef36745915628c1ffc34a2c277bcd', name: "name", value: "Sten Qvist" }, "Name"))), h("h2", { key: '32733265cff202c69112ac37afbbe51e9ee16b13' }, "Duration"), h("smoothly-input", { key: '1c359b65c54c00a291d4ab2fca662ae0823545be', name: "duration", type: "duration", placeholder: "hh:mm", value: this.duration, onSmoothlyInput: e => (this.duration = e.detail.duration) }, "Duration"), h("smoothly-input", { key: 'b50a7ea8c22c140a5d1b81eb197caa88d79ff4cc', name: "duration", type: "duration", value: this.duration, placeholder: "-hh:mm", onSmoothlyInput: e => {
15
15
  const duration = e.detail.duration;
16
16
  this.duration = duration;
17
- } }, "Duration"), h("h2", { key: 'f178f51facdeb434a16ecc35c0820ee5035f7d6c' }, "Integer with Min/Max"), h("smoothly-input", { key: 'acc0577e2f0679be92ef3ba362210cd1953a73ff', name: "days", type: "integer", min: 0, max: 365 }, "Days per year (0-365)"), h("smoothly-input", { key: '9a24258cbec32021cf1ec3506f7b4cadf2f459e5', name: "hour", type: "integer", min: 0, max: 23 }, "Hours per day (0-23)"), h("smoothly-input", { key: '95a122168d96126ef14f48810daf29867fba07b4', name: "minute", type: "integer", min: 0, max: 59 }, "Minutes per hour (0-59)"), h("smoothly-input", { key: '9631a9f894bbefd71bb298683f3333c4357db73b', name: "minute", type: "integer", min: 18, max: 120 }, "Age (18-120)"), h("h2", { key: 'c6f4545ede80c54a354bc0f01be6072b19ea2bb1' }, "Invalid text with warning icon and tooltip"), h("smoothly-input", { key: 'ae5cf8e08b0887db2752d0bf39a4c5a14cb1027c', copyable: true, name: "alphanumeric", invalid: !/^[a-zA-Z0-9]+$/.test(this.alphanumeric), errorMessage: "Only alphanumeric allowed", value: this.alphanumeric, onSmoothlyInput: e => (this.alphanumeric = e.detail.alphanumeric) }, "Alphanumeric"), h("h2", { key: '22724babf43bccb1d64e21646130dd8f58c9505c' }, "Identifiers"), h("smoothly-input", { key: 'c5a7f350b414fd154ab54c889aeab223cbe23d16', type: "identifier-code" }, "Code"), h("smoothly-input", { key: 'de0f4aaf40eca11ccb24293c3976ade34f91aaa5', type: "identifier-attribute" }, "Attribute"), h("smoothly-input", { key: 'fda65727abf9aa451b8b7f755f7bb92fa43afb93', type: "identifier-snake" }, "Snake"), h("smoothly-input", { key: '11de906823b2e325f3f9548b019aa8234722656a', type: "identifier-pascal" }, "Pascal"), h("smoothly-input", { key: 'ba3477e4964b1336e6198db348640d7144fbd06c', type: "identifier-camel" }, "Camel"), h("h2", { key: '059c263a0ec79a3986d4e57337a2949c755feb70' }, "Input Alternatives"), h("smoothly-input", { key: '8fbe4f80ac2d1d4bd1093a2b60103e248e4169f8', type: "text", name: "name.last" }, h("smoothly-icon", { key: 'cd0f121fd2ff7bbc8cdc9cfa9cf730cef08e8f11', name: "checkmark-circle", slot: "start" }), "First Name"), h("smoothly-input", { key: 'adf350f5ec052599e95fbf6dcc7c16fa64bcc277', type: "text", name: "name.first" }, "Last Name", h("smoothly-icon", { key: '4d0ca4a746cce893302008a8b66f07df9a96604c', name: "checkmark-circle", slot: "end" })), h("smoothly-input", { key: 'cfb36cd378ca610efbb3d6252e70391985f9b00f', type: "text", name: "name.first", placeholder: "Smith" }, "Last Name", h("smoothly-icon", { key: '9fbb53db768468228c7716881cc996d20b77fba3', name: "checkmark-circle", slot: "end" })), h("smoothly-input", { key: '1383590d66cba4e38a1beb82cfafb551ea1661fd', placeholder: "test" }), h("smoothly-input-submit", { key: '13cc6546a1eb274496d10c27c3c80a2bca7dca66', slot: "submit", fill: "solid", onSubmit: (e) => alert(e), color: "success" }), h("h4", { key: '53f6a46a5524668011994c2be07b47ab4d2fb1d0' }, "Smoothly checkboxes"), h("div", { key: 'cc5f357f8e9b673c95de607251ef97437f0f2afc', class: "checkbox-group" }, h("smoothly-input-checkbox", { key: 'b12ff9cf6d4c042dfc079dea8ed8f92d95a70c68', disabled: true, name: "first-checkbox" }, h("smoothly-icon", { key: '7daedabd25cb229c4512c017efb990cca3a08cc8', name: "checkmark-circle", slot: "start", size: "tiny" }), "First"), h("smoothly-input-checkbox", { key: '0836da075b7030bee160bb8931c54092a5b93ef8', name: "second-checkbox", checked: true }, h("smoothly-icon", { key: '4d94e2fe73e6580791da9d9a872cd8d4649df36f', name: "checkmark-circle", slot: "start", size: "tiny" }), "second", h("smoothly-input-clear", { key: '117ca8ae52817149a678b4a100a24c3a4829a9b3', size: "icon", slot: "end" })), h("smoothly-input-checkbox", { key: '6e99923c8c082c4727eea3c75b77b23d86eed801', name: "third-checkbox" }, "3rd")), h("h4", { key: '3a807db156e197c5192388886889988b874018d8' }, "Smoothly Radio Buttons"), h("smoothly-input-radio", { key: '85e1ce54231e39c9f248fe1c7829a2b9cc7775e3', clearable: true, name: "radioFirstInput" }, h("smoothly-icon", { key: '72e48b10d12022b72d30591bc74af1c4cb516bf7', name: "checkmark-circle", slot: "start" }), h("label", { key: '5b67d1eaaf73b84abb3a3e26ddd3fe27c9993e23', slot: "label" }, "Clearable"), h("smoothly-input-radio-item", { key: '06f796bdde5479565e1ee6258ad73f0b7c4327f5', value: "first" }, "Label 1"), h("smoothly-input-radio-item", { key: '14ab365a1da0fe3b94f1454549e3040df215d9c8', selected: true, value: "second" }, "Label 2"), h("smoothly-input-radio-item", { key: 'ccaf48dc6917aeb500653f637c4b30883814e61a', value: "third" }, "Label 3"), h("smoothly-input-clear", { key: '3cc0373ca5e87e2bb0916b2afed9e4cd70515866', size: "icon", slot: "end" })), h("smoothly-input-radio", { key: 'cdd729d929f57261d1422a45d83f6332912ae399', name: "radioSecondInput" }, h("label", { key: '95d8374b3914b2f88605e2e90cb607bb423fed2b', slot: "label" }, "Not clearable"), h("smoothly-input-radio-item", { key: 'b1cd33f88df8c1161b203675a4e02c8815954f96', value: "first" }, "Label 1"), h("smoothly-input-radio-item", { key: 'b797b785615fbfd4b881db249c99c39bf0fa6504', value: "second" }, "Label 2"), h("smoothly-input-radio-item", { key: '8557067758ca9f7acc6b35db56e9c6aee2c49f43', value: "third" }, "Label 3"), h("smoothly-input-radio-item", { key: 'bdbbcf1228089b03cae001cdb573b8c7f37f08df', value: "fourth" }, "Label 4"), h("smoothly-input-radio-item", { key: '414016c094bc15ceb37955e3adf1dc18db87e45c', value: "fifth" }, "Label 5"), h("smoothly-input-radio-item", { key: 'ba3a6a393f5f3af34eb12ec5391d0a6a1eb03e04', value: "sixth" }, "Label 6")), h("smoothly-input-range-demo", { key: '97406c6ddb794364f4a1b53c5e1ed551ed8a1ad6' }), h("smoothly-input-color-demo", { key: '0676c5e29637f2097dd0fb084d6507ec9c5c218c' }), h("smoothly-input-price-demo", { key: '80c25cdc1a8d1c2d88df5c680527d5638da91d65' }), h("smoothly-back-to-top", { key: '6aad374c875c762e4e4aff5567aae10300fbd7be' }))));
17
+ } }, "Duration"), h("h2", { key: '9bf848b3aeb2d99264b20270c030daf0a2e4538c' }, "Integer with Min/Max"), h("smoothly-input", { key: 'ef9a50d998c97e0ee62ce7521a47d9116596f594', name: "days", type: "integer", min: 0, max: 365 }, "Days per year (0-365)"), h("smoothly-input", { key: '3fc4295acaaabe23a12e6e9fd192371d137e2ebd', name: "hour", type: "integer", min: 0, max: 23 }, "Hours per day (0-23)"), h("smoothly-input", { key: 'e3e23c2ff05c311d1d62b86d9de0e333aaf38d16', name: "minute", type: "integer", min: 0, max: 59 }, "Minutes per hour (0-59)"), h("smoothly-input", { key: 'a92c74f2b45cc1df86589e62e97b87c8a7060351', name: "minute", type: "integer", min: 18, max: 120 }, "Age (18-120)"), h("h2", { key: '05151b343a921085863acb3cc263fb4775fc1326' }, "Invalid text with warning icon and tooltip"), h("smoothly-input", { key: '433ed8e5372266ef59393311c0dde265b79efb36', copyable: true, name: "alphanumeric", invalid: !/^[a-zA-Z0-9]+$/.test(this.alphanumeric), errorMessage: "Only alphanumeric allowed", value: this.alphanumeric, onSmoothlyInput: e => (this.alphanumeric = e.detail.alphanumeric) }, "Alphanumeric"), h("h2", { key: 'b5e460972d07d70a04099e129f4b11706ee6ea58' }, "Identifiers"), h("smoothly-input", { key: 'd059d3ecee65ec385e40d11bad328bde8be89246', type: "identifier-code" }, "Code"), h("smoothly-input", { key: '669bda44ce4115dc276335a9566cd433ccc992c4', type: "identifier-attribute" }, "Attribute"), h("smoothly-input", { key: 'a775035df9b192896c2ce7f1beebe6e904c1d42d', type: "identifier-snake" }, "Snake"), h("smoothly-input", { key: '359285e474ea704c36e73984c35e4ae245c47a00', type: "identifier-pascal" }, "Pascal"), h("smoothly-input", { key: 'f1a36423248b413cd20749f738fe12a8eeacae15', type: "identifier-camel" }, "Camel"), h("h2", { key: '2f6beac2f107dd3dc34a537e5b47f13d76206a07' }, "Input Alternatives"), h("smoothly-input", { key: '74cfbe969295b7cb9e02af90b126d9bdb60168cc', type: "text", name: "name.last" }, h("smoothly-icon", { key: '34e749e71f3d9976f2b71e57dd8644d53872aa35', name: "checkmark-circle", slot: "start" }), "First Name"), h("smoothly-input", { key: '61f44e09ab53cf0cf061007d3cf8426722e53312', type: "text", name: "name.first" }, "Last Name", h("smoothly-icon", { key: '55adb72f7485eb5f2235516c9d2839feae927ad7', name: "checkmark-circle", slot: "end" })), h("smoothly-input", { key: '642a573bebe0e805fd7d178dfc8befe7e77bba15', type: "text", name: "name.first", placeholder: "Smith" }, "Last Name", h("smoothly-icon", { key: '5bcfe9a74e7ec780fee1764933bd37f82b36495d', name: "checkmark-circle", slot: "end" })), h("smoothly-input", { key: 'cd5b1bbd73247cfb21b6ff99a56c0989ec7f3239', placeholder: "test" }), h("smoothly-input-submit", { key: '02c46969366444af0882851f2f3a0cd80f1b61c3', slot: "submit", fill: "solid", onSubmit: (e) => alert(e), color: "success" }), h("h4", { key: '3bc94eda5050b71ec193fda5600d76b5341b71d5' }, "Smoothly checkboxes"), h("div", { key: '165dd5a0d8e539c3d9fdbebf49ded093589acea7', class: "checkbox-group" }, h("smoothly-input-checkbox", { key: '17c781cdca9adf265d7418ca27ace984f0b70499', disabled: true, name: "first-checkbox" }, h("smoothly-icon", { key: '413a357d61374d72ae7be41bca5a7360b105e9e0', name: "checkmark-circle", slot: "start", size: "tiny" }), "First"), h("smoothly-input-checkbox", { key: '81ad9a572cb4e01b86ca1a189d4ce027c81d588b', name: "second-checkbox", checked: true }, h("smoothly-icon", { key: 'a34d9d7860461de0a508e8f36ab3e89627475777', name: "checkmark-circle", slot: "start", size: "tiny" }), "second", h("smoothly-input-clear", { key: 'fc64656864d9c68ef8f8ee42868af8f6d27ff217', size: "icon", slot: "end" })), h("smoothly-input-checkbox", { key: '8d1461bc9cc61eb79488162501232355e27bb992', name: "third-checkbox" }, "3rd")), h("h4", { key: '0eca64c7ae21e4f915e7f146d36662983f5c3759' }, "Smoothly Radio Buttons"), h("smoothly-input-radio", { key: '7677ce8ca260453a84a650fcced18a6592acc6a7', clearable: true, name: "radioFirstInput" }, h("smoothly-icon", { key: 'fd28ffad9dc1a32efb02131873f238c54fcb63e2', name: "checkmark-circle", slot: "start" }), h("label", { key: '63d92632a2ef4832fd863f55991480e1ec58fbae', slot: "label" }, "Clearable"), h("smoothly-input-radio-item", { key: 'a3e81d19c74fc5de2d25e44afb686793807025d5', value: "first" }, "Label 1"), h("smoothly-input-radio-item", { key: '5a4118fd0fb1b24e7a3e957c6186a94caf6c3160', selected: true, value: "second" }, "Label 2"), h("smoothly-input-radio-item", { key: 'beb9d9bfec1ebd2bd268b3c94fde2f23ee77b31b', value: "third" }, "Label 3"), h("smoothly-input-clear", { key: '91ff12f5c8d3911b662a4774e3d8887742de6b42', size: "icon", slot: "end" })), h("smoothly-input-radio", { key: '5e708295015296538d73936026d36e5badc6f805', name: "radioSecondInput" }, h("label", { key: '8ffb6b2f623f8e16a19d6b9d83b93b28d9fe2637', slot: "label" }, "Not clearable"), h("smoothly-input-radio-item", { key: 'a5cf624fceafa16030eab1e9050cd3cac2c985f1', value: "first" }, "Label 1"), h("smoothly-input-radio-item", { key: '66ab2a39eb130a221dea6cc77beecb0c221cecf5', value: "second" }, "Label 2"), h("smoothly-input-radio-item", { key: '44792e09a3cfff26ec11c364e842db24f1eb10f2', value: "third" }, "Label 3"), h("smoothly-input-radio-item", { key: '78b2689f9c52960b2901431b22c7f7faec8605ae', value: "fourth" }, "Label 4"), h("smoothly-input-radio-item", { key: 'fb6757b00011d410ffcf1cad4dcdfe1c586ca24a', value: "fifth" }, "Label 5"), h("smoothly-input-radio-item", { key: 'dcd365bfd3792cab31ede99aa43edf5d41d8af9e', value: "sixth" }, "Label 6")), h("smoothly-input-range-demo", { key: 'c231fb7b9c6d28546b4d13c87ef3a900b33191ca' }), h("smoothly-input-color-demo", { key: '540d7e3d4ec89f99ec6c67d725468e050ec0a183' }), h("smoothly-input-price-demo", { key: 'eb8164f02728a0ee68e10ecb949c6b7f45d2fff2' }), h("smoothly-back-to-top", { key: '98cd43c5de35cfeea70b77434dac7907648c1b6e' }))));
18
18
  }
19
19
  static get is() { return "smoothly-input-demo"; }
20
20
  static get encapsulation() { return "scoped"; }
@@ -6,7 +6,7 @@ export class SmoothlyInputPriceDemo {
6
6
  this.currency = "USD";
7
7
  }
8
8
  render() {
9
- return (h(Host, { key: '47fe9e7623e48def83512a77af0c7720b7d359e1' }, h("h2", { key: 'be944b8ee8341bfb659135ee049084cece6dd0da' }, "State demo on smoothly-input"), h("p", { key: '728077f668bbf069362b28336cfca6bfc3c9ef37' }, "This demo/test the internal state of the smoothly-input component."), h("p", { key: '64db9e66b2e50e69f65a234df4a4071221b8926d' }, "The currency of the price should update when switching between the currencies."), h("smoothly-input-radio", { key: 'f260f857923136f03db67981a71f03295014f407', name: "currency", onSmoothlyInput: e => (this.currency = isoly.Currency.is(e.detail.currency) ? e.detail.currency : undefined) }, this.currencies.map(currency => (h("smoothly-input-radio-item", { key: currency, selected: currency == this.currency, value: currency }, currency)))), h("smoothly-input", { key: 'a01183cf22a642906f22873c5dcc09367ca524ef', type: "price", currency: this.currency }, "price")));
9
+ return (h(Host, { key: '2d35ede0ba48999e163c9b401e822a703c049639' }, h("h2", { key: '6e3c78bd7a51616418555e74379ed81f4351688a' }, "State demo on smoothly-input"), h("p", { key: 'd43ad6219d21d065dc62197872e4cb689fececb5' }, "This demo/test the internal state of the smoothly-input component."), h("p", { key: 'e2a250b7bfb6433bc61fa3d740df11cae0713f85' }, "The currency of the price should update when switching between the currencies."), h("smoothly-input-radio", { key: '4d111e1bd9fbc0dcc57d3a842cfd0756a4807991', name: "currency", onSmoothlyInput: e => (this.currency = isoly.Currency.is(e.detail.currency) ? e.detail.currency : undefined) }, this.currencies.map(currency => (h("smoothly-input-radio-item", { key: currency, selected: currency == this.currency, value: currency }, currency)))), h("smoothly-input", { key: '4c81a6bf8c3d854f3443942a6c1fb64db9b67b54', type: "price", currency: this.currency }, "price")));
10
10
  }
11
11
  static get is() { return "smoothly-input-price-demo"; }
12
12
  static get encapsulation() { return "scoped"; }
@@ -4,7 +4,7 @@ export class SmoothlyInputDemoRadio {
4
4
  console.log("selected", this.selected);
5
5
  }
6
6
  render() {
7
- return (h(Host, { key: '52b576841887c998b76f78e137692aacbac7a2b6' }, h("h2", { key: '0c8d936766c24b6948c809e2f6e6468d2aa4420c' }, "radio input - column direction"), h("smoothly-input-radio", { key: '3f2d62940acfdf116a84afcdcab390d6cd2dd4b5', name: "radio", direction: "column", onSmoothlyInput: e => (this.selected = e.detail.radio) }, h("smoothly-input-radio-item", { key: '1bf763d55cb64ef808e4a756c42691b6fe17f5c0', value: "1" }, h("span", { key: '885acf73103c0329fdcf008205eb6af697ad3f7d' }, "Option 1"), h("span", { key: '8ffd5831c8ad3fd4ecf98c1947a9716eac3f68bd', slot: "detail" }, "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.")), h("smoothly-input-radio-item", { key: '1d1c4c16d909d34a46c710342c61e47c87a95f70', value: "2", selected: true }, h("span", { key: 'e82706946e78a02f91075a23546ca74a4a6efcba' }, "Option 2"), h("div", { key: '50bf73dc371ba8fa7b6f61dc4647614bc3de92c1', slot: "detail" }, h("smoothly-tabs", { key: 'af9ceaab9bd3a4beea42abc0d645fb55c8394d06' }, h("smoothly-tab", { key: 'db10107a17b64bc198da2aeb103baf88b1f52f28', label: "Dog", name: "dog", open: true }, "\uD83D\uDC15"), h("smoothly-tab", { key: '53da582a28e65a22c419c54203d2362f13d54076', label: "Cat", name: "cat" }, "\uD83D\uDC08"), h("smoothly-tab", { key: 'd142440607e5315288e1600a6538f835ed35837e', label: "Rat", name: "rat" }, "\uD83D\uDC00")))))));
7
+ return (h(Host, { key: '040a57805b385a247d202b5e955a7f8eba616010' }, h("h2", { key: 'f09dbab032e5a1236b6917adf732333decd4f304' }, "radio input - column direction"), h("smoothly-input-radio", { key: 'b433eda6893f6ace20301795321958f684f47d57', name: "radio", direction: "column", onSmoothlyInput: e => (this.selected = e.detail.radio) }, h("smoothly-input-radio-item", { key: '2d9b7a2edea9639f1edebc73c8caca090765ce61', value: "1" }, h("span", { key: 'e42fdc99169da6f957f0f7d701f07e28ec3b6f75' }, "Option 1"), h("span", { key: 'ffdf79cbc7f98435a01a3a1a6c30c307741a566c', slot: "detail" }, "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.")), h("smoothly-input-radio-item", { key: '0d9d95f1375bca503b1aade350a87119bb329c09', value: "2", selected: true }, h("span", { key: 'dc6d2e6888deb8bf32a626badc8a01d1daeb960d' }, "Option 2"), h("div", { key: '5ab436788acba5bcf290faf1551513a1f1b493b6', slot: "detail" }, h("smoothly-tabs", { key: '097716e9e682a11b5eff9880e94c036a01344de4' }, h("smoothly-tab", { key: '4b4117fbeb2aec641c279690438452f1e0ff15d6', label: "Dog", name: "dog", open: true }, "\uD83D\uDC15"), h("smoothly-tab", { key: '4cb637cfdb67a7721dc13348cfe830595d47027b', label: "Cat", name: "cat" }, "\uD83D\uDC08"), h("smoothly-tab", { key: '1c4873e9b744831a602192bb520236b440d8b547', label: "Rat", name: "rat" }, "\uD83D\uDC00")))))));
8
8
  }
9
9
  static get is() { return "smoothly-input-demo-radio"; }
10
10
  static get encapsulation() { return "scoped"; }
@@ -20,7 +20,7 @@ export class SmoothlyInputDemoStandard {
20
20
  });
21
21
  }
22
22
  render() {
23
- return (h(Host, { key: '0d47a2dd423a8bcdd889139f74ef2ec375d0ea97' }, h("div", { key: 'a884b4c59f663f8c47aa9e3736e6a82235e9d276', class: "description" }, h("h2", { key: '7c0b8da3728fd79d203de1895c6ae146e1eb8aef' }, "Input Standard"), h("p", { key: '10fe94edd162dd158388508c2470359447e6da57' }, "Height of input should be ", h("code", { key: 'dffd62a251af68595f7c5659a2251ada08999b63' }, "3rem"), " including border. This is should result in a 48 pixel height at 100% zoom, assuming a root font-size of 16 pixels."), h("smoothly-form", { key: '3f8c09fbdce4b808a430cf7266d40d25a596803d', looks: "grid", onSmoothlyFormInput: (e) => (this.options = e.detail) }, h("smoothly-input-select", { key: '563356600a698bf3c974a61b79520aa8f77c249f', name: "color" }, h("span", { key: 'e12af511b6921b2d9f7d50b45fdbe3d5b34f6817', slot: "label" }, "Color"), Color.values.map(c => (h("smoothly-item", { value: c }, h("span", { color: c }, c)))), h("smoothly-input-clear", { key: '23c642ae01bb6d0f7aaf653c027eb255ee38d90a', slot: "end" })), h("smoothly-input-select", { key: 'fa106dd22e247954860c217692ca37a24fe4f772', name: "looks" }, h("span", { key: 'c42065aac1f357b670cf2a99bb8be554fb314cd9', slot: "label" }, "Looks"), Looks.values.map(l => (h("smoothly-item", { value: l }, l)))), h("smoothly-input-range", { key: 'c3b585f898718c9f81ef15c1469eccf08988c00e', label: "Border Radius (rem)", name: "borderRadius", min: 0, max: 2, step: 0.25 }), h("smoothly-input-checkbox", { key: '8fab112575cb1c02c2019022cee83e5e5e65a9c6', name: "readonly" }, "Readonly"), h("smoothly-input-checkbox", { key: 'c34401c8b28faa79a139869c0766e8f8af357ca8', name: "disabled" }, "Disabled"), h("smoothly-input-checkbox", { key: '672b5bc96fa9e6886c90b5e8354d7dea8c916270', name: "invalid" }, "Invalid"), h("smoothly-input", { key: 'c395fd3b7ca8d1243cd9e9ea4e006f1fd7ef1a27', name: "errorMessage", value: "This is not a valid value" }, "Error Message"), h("smoothly-input-checkbox", { key: '121d1a50813987b2aeac50afe73e40c6a7c4fb8b', name: "showLabel", checked: true }, "Show Label"), h("smoothly-input", { key: '265ce4b0e44c8fda1b3188929eb5901e1658bfd5', name: "placeholder" }, "Placeholder"), h("smoothly-input-checkbox", { key: '1eafaaaa6696f9f1d696742869d10aba19c2f0c9', name: "alwaysShowGuide" }, "Always Show Guide (for date inputs)"))), h("div", { key: 'f6a5d34435c177c5dc64c31632dc7a1e65f3e270', class: "input-wrapper", style: { "--smoothly-input-border-radius": `${this.options.borderRadius}rem` } }, h("div", { key: 'c4d82ee52f0d44015df7eb734c98aa41f7c92827', class: "width" }, "width: 100%"), h("div", { key: '2ae68895caf503ba92049a32d0054439f069123b', class: "left-padding" }, "padding-left: 0.5rem"), h("smoothly-input", { key: 'f5f4ee65ccf3180d2f9181fbc258c79e916e14ee', name: "text", color: this.options.color, looks: this.options.looks, readonly: this.options.readonly, disabled: this.options.disabled, invalid: this.options.invalid, errorMessage: this.options.errorMessage, showLabel: this.options.showLabel, placeholder: this.options.placeholder }, this.options.showLabel && h("span", { key: 'bf32f13cfbfa88add92692bf9ee02b836eeea2be' }, "Text"), h("smoothly-input-clear", { key: '26639066ab906f755f7a42e154b1954f1f34f19d', slot: "end" })), h("div", { key: 'de01a46f39aa6f331c5edf54208a6f9f726337e3', class: "height" }), h("smoothly-input-select", { key: '510076d3203f1fb1e2e506832364710feb15f0c8', name: "month", color: this.options.color, looks: this.options.looks, menuHeight: "6.7items", readonly: this.options.readonly, disabled: this.options.disabled, invalid: this.options.invalid, errorMessage: this.options.errorMessage, placeholder: this.options.placeholder }, this.options.showLabel && h("label", { key: '9bf577f8339bb2c4edde779113b069eeb34ef748', slot: "label" }, "Select"), h("smoothly-item", { key: '60780147390d2cf0e8da424841a50e27417479e6', value: "1" }, "January"), h("smoothly-item", { key: '173c112cb747fe2b85a1633df99fbcb506f58d48', value: "2" }, "February"), h("smoothly-item", { key: 'a7ee7adea1ea9b92362737cc840aca34a6f8d436', value: "3" }, "March"), h("smoothly-item", { key: 'd9640cc6ffef2dd85241ca133b7a145624f4fc9a', value: "4" }, "April"), h("smoothly-item", { key: 'a8481666f7c15b3a0ff0f88602e9dbc4056c415b', value: "5" }, "May"), h("smoothly-item", { key: '0e5303b6e803afe7f7e09e4624319e4ff418a689', value: "6" }, "June"), h("smoothly-item", { key: 'b83eb587d51b7d9921f9d3abef167ff0d936c5ae', value: "7" }, "July"), h("smoothly-item", { key: '3d2b9def6e4a70238e61a0eb84328e90fec966ef', value: "8" }, "August"), h("smoothly-item", { key: '93a12ce1b0e1dd4c9178520a0ecb517df10087a2', value: "9" }, "September"), h("smoothly-item", { key: 'd33c600d87e72fa217a90c2d8ed45d2481cee72f', value: "10" }, "October"), h("smoothly-item", { key: 'fe604dc056ea4a597a8b6d7f1be09c89c879dbdf', value: "11" }, "November"), h("smoothly-item", { key: '51bcb469aa305b0ae7cacfdd875022ec39530e6c', value: "12" }, "December"), h("smoothly-input-clear", { key: '0833dfa02fbc7cff603e37644baed0a6b8c4e4d5', slot: "end" })), h("div", { key: '79f0f6f00a86ddcc2dfdb4a68b0ebe07bc689c00', class: "height" }), h("smoothly-input-checkbox", { key: 'be23f09cb9a5d45fa322399d9990665bb9a4bf34', name: "checkbox", checked: true, color: this.options.color, looks: this.options.looks, readonly: this.options.readonly, disabled: this.options.disabled }, "Check", h("smoothly-input-reset", { key: 'b017bae486a26d0987c569284dcb933c32128870', slot: "end" })), h("div", { key: 'cfcf1788ea24c44ebdc3b66918475fbeadbb7eb3', class: "height" }), h("smoothly-input-radio", { key: 'eb33d705570a661c8a6af35664274d15dadf8651', name: "radio", clearable: true, color: this.options.color, looks: this.options.looks, readonly: this.options.readonly, disabled: this.options.disabled, showLabel: this.options.showLabel }, this.options.showLabel && h("label", { key: '34e9e0a159e7b8132dcb8b83b23b71c7b3315950', slot: "label" }, "Radio"), h("smoothly-input-radio-item", { key: 'c3eeacc48f78063b3a22d3b8dcfd7e883254d3f1', value: "first" }, "Label 1"), h("smoothly-input-radio-item", { key: '7e268ae592952b97ac20e89519d778b2aadb8fcc', selected: true, value: "second" }, "Label 2"), h("smoothly-input-radio-item", { key: '79e5d297744e5478f49d68cae946c2ecef34eba6', value: "third" }, "Label 3"), h("smoothly-input-clear", { key: 'dff06e18033a50015e9108d368824f30b811c264', slot: "end" })), h("div", { key: '9d3c81366b646b71f06c601cf57653ff9c99cc0b', class: "height" }), h("smoothly-input-file", { key: 'b2c1b865f112c22559951812ad2de40d26290a0e', name: "file", color: this.options.color, looks: this.options.looks, readonly: this.options.readonly, disabled: this.options.disabled, showLabel: this.options.showLabel, placeholder: this.options.placeholder }, this.options.showLabel && h("span", { key: '4db9c0510129863aeeb39d8752554ae83c69ec5f', slot: "label" }, "File"), h("smoothly-input-clear", { key: '3f5ac4383708baf78c2f916a13c0583a315fcd4a', slot: "end" })), h("div", { key: 'fed8a7e19c81970c362b4795555e27691b04e7bc', class: "height" }), h("smoothly-input-range", { key: '471ff911649f0fff74d0a6a2f1f6ff9836be1e29', name: "range", color: this.options.color, looks: this.options.looks, readonly: this.options.readonly, disabled: this.options.disabled, label: this.options.showLabel ? "Range" : undefined }, h("smoothly-input-clear", { key: '95cd1bfffa55434df83458f93c72dc7628b9e26d', slot: "end" })), h("div", { key: '89529b1695656c2ddf4eb8ec68186200b0b4054a', class: "height" }), h("smoothly-input-color", { key: '22deff755c1da762df9d27dce227432862a4c3ef', name: "color", color: this.options.color, looks: this.options.looks, readonly: this.options.readonly, disabled: this.options.disabled, showLabel: this.options.showLabel }, this.options.showLabel && h("span", { key: '62579a646e0c4d6f4a267ab6aa22c1d3a0e24895' }, "Color"), h("smoothly-input-clear", { key: '1f3617c7f813399adcfafaa68e919cca440f2814', slot: "end" })), h("div", { key: 'a0f45e33d4328c5c534f92929617f6fb42577827', class: "height" }), h("smoothly-input-date", { key: 'b2217e88e18bbb4f4bb8ecc768fcd67a022ff05b', name: "date", color: this.options.color, looks: this.options.looks, readonly: this.options.readonly, disabled: this.options.disabled, invalid: this.options.invalid, errorMessage: this.options.errorMessage, showLabel: this.options.showLabel, placeholder: this.options.placeholder, alwaysShowGuide: this.options.alwaysShowGuide }, this.options.showLabel && h("span", { key: 'acc7706396f3923db94d65cc12e25df341052a3f' }, "Date"), h("smoothly-input-clear", { key: '962a1961612037e2171caa40a25397ff501de2fa', slot: "end" })), h("div", { key: 'c2b39662f59227a0feedd322db39055d52f4b3fc', class: "height" }), h("smoothly-input-date-time", { key: '9144e9af51bc9ec45f771eae3b1ab80cec7d3f67', name: "dateTime", color: this.options.color, looks: this.options.looks, readonly: this.options.readonly, disabled: this.options.disabled, invalid: this.options.invalid, errorMessage: this.options.errorMessage, showLabel: this.options.showLabel }, "DateTime", h("smoothly-input-clear", { key: 'b40b0db65ab9d9ef61527f14cd951d2e337b3a31', slot: "end" })), h("div", { key: '1e39a4410aae2f4b7bb6501fa7a436c46034028e', class: "height" }), h("smoothly-input-date-range", { key: '8be62583be2bc8955ac923b18155c60ebe7e216a', name: "dateRange", color: this.options.color, looks: this.options.looks, readonly: this.options.readonly, disabled: this.options.disabled, invalid: this.options.invalid, errorMessage: this.options.errorMessage, placeholder: this.options.placeholder, alwaysShowGuide: this.options.alwaysShowGuide, showLabel: this.options.showLabel }, this.options.showLabel && h("span", { key: 'a893c51241fd2935145f97dd68ff7fb7226ccdfc' }, "Date Range"), h("smoothly-input-clear", { key: 'de9180934a9b8396e54aaafb39d25a0777433c81', slot: "end" })), h("div", { key: 'a7493fe9750ab795e22aa3fc543405f5d627440a', class: "height" }))));
23
+ return (h(Host, { key: 'd2a4b3a8e5675b4fe394f551166318902c09ea84' }, h("div", { key: '67b40a89a1cbf17d511c56d966a9173e02a9c92e', class: "description" }, h("h2", { key: 'fdd28a17423a0da06745fc2aad06e1acbde54be4' }, "Input Standard"), h("p", { key: 'e9e84428aa2ebe4ea0b1d04410629ed85de1d329' }, "Height of input should be ", h("code", { key: 'faccb606910cbe8418c176efd45ff05eafd0ffc8' }, "3rem"), " including border. This is should result in a 48 pixel height at 100% zoom, assuming a root font-size of 16 pixels."), h("smoothly-form", { key: 'f8770ba1128622c8b40be48cd26214ed162035e3', looks: "grid", onSmoothlyFormInput: (e) => (this.options = e.detail) }, h("smoothly-input-select", { key: '82ce7ab02f341b560e6347164a19c9273580ed18', name: "color" }, h("span", { key: '4062538c8b4b25d9a1cc1f625df0313383990193', slot: "label" }, "Color"), Color.values.map(c => (h("smoothly-item", { value: c }, h("span", { color: c }, c)))), h("smoothly-input-clear", { key: '659e785d9f5e4043fcf15dc457dde4dc48676215', slot: "end" })), h("smoothly-input-select", { key: '656b68d41b449cde70e4d86b252dc70d994f63ce', name: "looks" }, h("span", { key: '39ef79d28d1dbec7a678b93fa031615457560351', slot: "label" }, "Looks"), Looks.values.map(l => (h("smoothly-item", { value: l }, l)))), h("smoothly-input-range", { key: '3ae946ee3c4cdcf5b698b0456499c4807e53b257', label: "Border Radius (rem)", name: "borderRadius", min: 0, max: 2, step: 0.25 }), h("smoothly-input-checkbox", { key: 'f73361b452096abbda4ebc6908371c397c0a9fd4', name: "readonly" }, "Readonly"), h("smoothly-input-checkbox", { key: '7a4762f9122be37ce57099515e0d9fac7c18df94', name: "disabled" }, "Disabled"), h("smoothly-input-checkbox", { key: '0ac401e2b9e2525dfc899eda4957a61b99947758', name: "invalid" }, "Invalid"), h("smoothly-input", { key: '2ba7f175d8aeef4301598f3c3da5d436a17c45c7', name: "errorMessage", value: "This is not a valid value" }, "Error Message"), h("smoothly-input-checkbox", { key: '5844e0ab1cc53ecd0691d585fa4461f89c9994bc', name: "showLabel", checked: true }, "Show Label"), h("smoothly-input", { key: '6d46add6231e87d95dd8aea7bd91181c47a56490', name: "placeholder" }, "Placeholder"), h("smoothly-input-checkbox", { key: '43af9a815da45bc2ce0e54e8442e3a8ab1bc534c', name: "alwaysShowGuide" }, "Always Show Guide (for date inputs)"))), h("div", { key: 'cf6750528c66ee0c0b9e97478de77514cbd39045', class: "input-wrapper", style: { "--smoothly-input-border-radius": `${this.options.borderRadius}rem` } }, h("div", { key: '4fbc0ba2b6b142f6c4ac8379157b2953d88cb062', class: "width" }, "width: 100%"), h("div", { key: '7fb5a3a68f6ed4d14bcab9758a8de0a95de7e80c', class: "left-padding" }, "padding-left: 0.5rem"), h("smoothly-input", { key: '3d379565ac3335e2ef39e7d616b082fd5247619e', name: "text", color: this.options.color, looks: this.options.looks, readonly: this.options.readonly, disabled: this.options.disabled, invalid: this.options.invalid, errorMessage: this.options.errorMessage, showLabel: this.options.showLabel, placeholder: this.options.placeholder }, this.options.showLabel && h("span", { key: '7d37fa391bb86cf43fe84db4826d8394c04d8af9' }, "Text"), h("smoothly-input-clear", { key: '5c5b48cd36f13a3b50fc49809edb17148993a004', slot: "end" })), h("div", { key: 'c666bcf200205fbe3d4e045ee69530b217d4845d', class: "height" }), h("smoothly-input-select", { key: '9a2bb30a995830fecbc0dc7f9df2895470ac8e3b', name: "month", color: this.options.color, looks: this.options.looks, menuHeight: "6.7items", readonly: this.options.readonly, disabled: this.options.disabled, invalid: this.options.invalid, errorMessage: this.options.errorMessage, placeholder: this.options.placeholder }, this.options.showLabel && h("label", { key: 'd91f28c2c80c6b95703b9476c8d07b64387f989a', slot: "label" }, "Select"), h("smoothly-item", { key: '61aeaf05ac730b30d7fb29b749dcf6ba59932c9c', value: "1" }, "January"), h("smoothly-item", { key: '131052c2a6ad24d5c93cda5352dd16873e81fc81', value: "2" }, "February"), h("smoothly-item", { key: '599a8b88c0abd24346856c8c653c1adc69d432e0', value: "3" }, "March"), h("smoothly-item", { key: 'e8933cb5d5af0fbb4d898a919a1d0ccc26584c11', value: "4" }, "April"), h("smoothly-item", { key: 'eb7b7c07dd9fcb31eba2b5a8da79da32e14f2c67', value: "5" }, "May"), h("smoothly-item", { key: '48e70f3d930689aed016ac28241e6f8d253f61db', value: "6" }, "June"), h("smoothly-item", { key: '738b7ad9d5286f6afc8ad033d9cbb9e066c4c861', value: "7" }, "July"), h("smoothly-item", { key: 'aad0e64de6bf35b315fb3472c8cad86e3fb195d9', value: "8" }, "August"), h("smoothly-item", { key: '81c533fd3eeaa48ae7917f6064a17724b101b650', value: "9" }, "September"), h("smoothly-item", { key: '69f567c427f80cee633f72ac4dd06a4d4b4a27c7', value: "10" }, "October"), h("smoothly-item", { key: '0d87e5fa94a04a60b527d7a5f1670b1788bd4339', value: "11" }, "November"), h("smoothly-item", { key: '34b1425da536971ffde20fbab5b96c9d23f71fe3', value: "12" }, "December"), h("smoothly-input-clear", { key: 'd16aad09e1f53274a0c6d23c071f2abe1157ce4f', slot: "end" })), h("div", { key: '51931a5ed8ec83b8937cd7899a303569cf8bf7cd', class: "height" }), h("smoothly-input-checkbox", { key: '20d5a02ab8d8f1f709b030a0258598de61250555', name: "checkbox", checked: true, color: this.options.color, looks: this.options.looks, readonly: this.options.readonly, disabled: this.options.disabled }, "Check", h("smoothly-input-reset", { key: 'd36312b0bb0393568cf05e51eea4cfa057dce607', slot: "end" })), h("div", { key: 'c1353494563098fc08fe2c93cceeb80d56a1aa51', class: "height" }), h("smoothly-input-radio", { key: '84976dd68dfe5534f28c02395d2476593bcb3bcd', name: "radio", clearable: true, color: this.options.color, looks: this.options.looks, readonly: this.options.readonly, disabled: this.options.disabled, showLabel: this.options.showLabel }, this.options.showLabel && h("label", { key: 'fd87d0cfc047bcaf959908191d798ea774daca25', slot: "label" }, "Radio"), h("smoothly-input-radio-item", { key: '4029068fb2fea98f2b5c19ec87e8dea13cf22365', value: "first" }, "Label 1"), h("smoothly-input-radio-item", { key: '1ab27866d3db524f52da4f76a3abb5eff1deeed3', selected: true, value: "second" }, "Label 2"), h("smoothly-input-radio-item", { key: '9415dd464250d9af68a54de51a9e6b15234f8faf', value: "third" }, "Label 3"), h("smoothly-input-clear", { key: '8ea8291c65ca421b0044fe3e0da4127f9fac0c40', slot: "end" })), h("div", { key: 'fa351e941ec780e05a037c2c1948dabd8ef371e8', class: "height" }), h("smoothly-input-file", { key: 'b45c3bf3c7b5e9e8408a6cecacdda30c7ce392df', name: "file", color: this.options.color, looks: this.options.looks, readonly: this.options.readonly, disabled: this.options.disabled, showLabel: this.options.showLabel, placeholder: this.options.placeholder }, this.options.showLabel && h("span", { key: '7e81668b6bf2a3f72238d18d02c21f19bf6c2756', slot: "label" }, "File"), h("smoothly-input-clear", { key: '4ead6310cb554351b45699cbbc6d84804d26611b', slot: "end" })), h("div", { key: '73cd3845233377057ff16a18b9ad85eb4e4be30f', class: "height" }), h("smoothly-input-range", { key: 'ec0f42a5ee5fddd52fb5c0d283f9add183e429fd', name: "range", color: this.options.color, looks: this.options.looks, readonly: this.options.readonly, disabled: this.options.disabled, label: this.options.showLabel ? "Range" : undefined }, h("smoothly-input-clear", { key: '49536b00574ad5e0cba72b9a8fdeee599435a886', slot: "end" })), h("div", { key: 'cc112e755aeb5724b6e4bc511ed1b4e32b394d08', class: "height" }), h("smoothly-input-color", { key: 'dbd6daa2196f6ba316721ed338c0638d6c713e00', name: "color", color: this.options.color, looks: this.options.looks, readonly: this.options.readonly, disabled: this.options.disabled, showLabel: this.options.showLabel }, this.options.showLabel && h("span", { key: '04197c11337298f86531d7ba52d67df221619051' }, "Color"), h("smoothly-input-clear", { key: '6489a29a796e8e443efdf27574df27e4e24111ee', slot: "end" })), h("div", { key: 'e48defb9f45eaa2f935b0108cf3ec6e331d4ecb2', class: "height" }), h("smoothly-input-date", { key: '0a5c51ecc51013f9572ed8cd8ef38f6d92bd4f5b', name: "date", color: this.options.color, looks: this.options.looks, readonly: this.options.readonly, disabled: this.options.disabled, invalid: this.options.invalid, errorMessage: this.options.errorMessage, showLabel: this.options.showLabel, placeholder: this.options.placeholder, alwaysShowGuide: this.options.alwaysShowGuide }, this.options.showLabel && h("span", { key: '21f21c543ff1df34c50333fba2d1ca8377ea4e37' }, "Date"), h("smoothly-input-clear", { key: 'f8226e817b97c90070b649935ac70d6ba11f7b30', slot: "end" })), h("div", { key: '8920789228e2911822a6b822d1c8c37537a225e4', class: "height" }), h("smoothly-input-date-time", { key: '2e58e0e5f6370f7a4d0dd7f17c56718038167e6a', name: "dateTime", color: this.options.color, looks: this.options.looks, readonly: this.options.readonly, disabled: this.options.disabled, invalid: this.options.invalid, errorMessage: this.options.errorMessage, showLabel: this.options.showLabel }, "DateTime", h("smoothly-input-clear", { key: '9ebc24b5b639628fd5f3d11a72500bcd6ae9ab0f', slot: "end" })), h("div", { key: 'dddb389df78c212ec451422436e3f0468f523065', class: "height" }), h("smoothly-input-date-range", { key: '76b7832bcf134165961c00e610180ee37b74968d', name: "dateRange", color: this.options.color, looks: this.options.looks, readonly: this.options.readonly, disabled: this.options.disabled, invalid: this.options.invalid, errorMessage: this.options.errorMessage, placeholder: this.options.placeholder, alwaysShowGuide: this.options.alwaysShowGuide, showLabel: this.options.showLabel }, this.options.showLabel && h("span", { key: '023a98551ba8d1b848665506fdad5282338a2d2e' }, "Date Range"), h("smoothly-input-clear", { key: '078a1ca386a3f814286b35fc0579573b8e4d64c3', slot: "end" })), h("div", { key: '32733c0b81a14c8a982c1607d5635d807894b2ae', class: "height" }))));
24
24
  }
25
25
  static get is() { return "smoothly-input-demo-standard"; }
26
26
  static get encapsulation() { return "scoped"; }
@@ -10,11 +10,11 @@ export class SmoothlyInputDemoUserInput {
10
10
  }
11
11
  render() {
12
12
  var _a, _b;
13
- return (h(Host, { key: 'e5373df530143e9be043fef3040f0c28e4e6befd' }, h("div", { key: 'e43682af956adff7d7717bc0460eed3b1bb95d84' }, h("h2", { key: '4332098a4a62650fee3ff36df29bbab86ece7e9d' }, "User Input Event"), h("p", { key: 'b20f95a50866658227c61b92cd110ec481da9aea' }, "These inputs demonstrate how user input is handled. The ", h("code", { key: 'd7966a4bf162c151d82b4202e72cd090eaf54ea0' }, "smoothlyUserInput"), " event fires only when the user interacts with an input, not when its value is changed programmatically (such as by clicking the buttons above).", h("br", { key: 'c491689d80addd8399ee02ab7cfc6c14f599bb85' }), "Check the console to see the details of each ", h("code", { key: '919ebbf26937841a5396d0d8b1f7d56a268ac292' }, "smoothlyUserInput"), " event.")), h("smoothly-button", { key: '241df770721275520a479cac831b972062cf0fce', color: "tertiary", onClick: () => (this.textIndex = this.increment(this.textIndex)) }, "Change text"), h("smoothly-input", { key: '1c8afb64233081bd049d91a0dd0e8071aad85856', looks: "border", name: "demo-user-input-text", value: this.textIndex === undefined ? "" : this.values[this.textIndex], onSmoothlyUserInput: e => console.debug(e.type, e.detail.name, e.detail.value) }, "Text input"), h("smoothly-button", { key: '5fe334fb6629980fec2ee42d22df173f86b9bec2', onClick: () => (this.selectIndex = this.increment(this.selectIndex)), color: "tertiary" }, "Next select item"), h("smoothly-input-select", { key: '0972c18426ec3adf17de6b187c582d875de17c75', looks: "border", name: "demo-user-input-select", onSmoothlyUserInput: e => console.debug(e.type, e.detail.name, e.detail.value) }, h("span", { key: '0e6d5f9596b71bae1f548aaf3cc830e9327dda05', slot: "label" }, "Select input"), this.values.map((value, index) => (h("smoothly-item", { value: index, selected: index == this.selectIndex }, value)))), h("smoothly-button", { key: '66f5d072734363f0457f38252105272c643354ce', color: "tertiary", onClick: () => (this.checkboxChecked = !this.checkboxChecked) }, "Toggle checkbox"), h("smoothly-input-checkbox", { key: '37bb578799dfb2de20c6ed9c26214acc5a4b3c0b', looks: "border", name: "demo-user-input-checkbox", checked: this.checkboxChecked, onSmoothlyUserInput: e => console.debug(e.type, e.detail.name, e.detail.value) }, "Checkbox input"), h("smoothly-button", { key: 'a70017b8ad95581ec4361d96350f809942b61d93', color: "tertiary", onClick: () => (this.radioIndex = this.increment(this.radioIndex)) }, "Next radio item"), h("smoothly-input-radio", { key: '07558d4cbc286b03af94f0cc93718f35a93a73f6', looks: "border", name: "demo-user-input-radio", onSmoothlyUserInput: e => console.debug(e.type, e.detail.name, e.detail.value) }, h("span", { key: '1e6fa16c98dbf64e75d4527a5619a37d30631801', slot: "label" }, "Radio input"), this.values.map((value, index) => (h("smoothly-input-radio-item", { value: value, selected: index == this.radioIndex }, value)))), h("smoothly-button", { key: 'd3d7581a7c25ce7a7add6cc0f318bb738fbfcf56', color: "tertiary", onClick: () => (this.rangeValue = this.increment(this.rangeValue)) }, "Next range value"), h("smoothly-input-range", { key: 'cf1ad804353d6cecc2a92f1c919f0814ddc90293', looks: "border", name: "demo-user-input-range", step: 1, min: 0, max: this.values.length, value: this.rangeValue, label: "Range Input", onSmoothlyUserInput: e => console.debug(e.type, e.detail.name, e.detail.value) }), h("smoothly-button", { key: 'ac4215b8764d794d7b2b502e8978eeb066bb482b', color: "tertiary", onClick: () => (this.colorIndex = this.increment(this.colorIndex)) }, "Next color"), h("smoothly-input-color", { key: 'b0f18cbf601c7a7e1b105b6ade6b7738e735c1af', looks: "border", name: "demo-user-input-color", value: typeof this.colorIndex == "number" ? this.colors[this.colorIndex] : undefined, onSmoothlyUserInput: e => console.debug(e.type, e.detail.name, e.detail.value) }, "Color input"), h("smoothly-button", { key: '353846f23973a62890ca228fce9434606c351eab', color: "tertiary", onClick: () => (this.dateValue = this.dateValue ? isoly.Date.next(this.dateValue) : isoly.Date.now()) }, "Next day"), h("smoothly-input-date", { key: 'e4e466950e474177dfd57b95741256ece59aeba7', looks: "border", name: "demo-user-input-date", value: this.dateValue, onSmoothlyUserInput: e => console.debug(e.type, e.detail.name, e.detail.value) }, "Date input"), h("smoothly-button", { key: 'e39a9742e3c896ed0b8083b0cb12694971c2f7b3', color: "tertiary", onClick: () => (this.datetimeValue = this.datetimeValue
13
+ return (h(Host, { key: 'eab36e7674fb973f979c4aaed34abadae7576fe0' }, h("div", { key: '8225faa4114dc00127534d7a4400b1d9b23f4ae7' }, h("h2", { key: 'a6e84f195de0a08ef8ea173615663417db7cb4fb' }, "User Input Event"), h("p", { key: 'e6aad349cb3b67654e5eb4499aa0088367862ceb' }, "These inputs demonstrate how user input is handled. The ", h("code", { key: 'ca92dbe2b5834d176ee33651b5d4287ece6d585c' }, "smoothlyUserInput"), " event fires only when the user interacts with an input, not when its value is changed programmatically (such as by clicking the buttons above).", h("br", { key: '96cfdda6ccf73450ce38e886fbb26681c17667ea' }), "Check the console to see the details of each ", h("code", { key: '13af94b46758e72141f7ba0da21f93f2ef70a052' }, "smoothlyUserInput"), " event.")), h("smoothly-button", { key: '5f3eadf13479a585b26f63bbd14d5a06d4efd82e', color: "tertiary", onClick: () => (this.textIndex = this.increment(this.textIndex)) }, "Change text"), h("smoothly-input", { key: '18606ed8401bc0a7a9146ab7b8da848b9f155971', looks: "border", name: "demo-user-input-text", value: this.textIndex === undefined ? "" : this.values[this.textIndex], onSmoothlyUserInput: e => console.debug(e.type, e.detail.name, e.detail.value) }, "Text input"), h("smoothly-button", { key: '89d848edf493f23af859f999c62788cd58f89b9e', onClick: () => (this.selectIndex = this.increment(this.selectIndex)), color: "tertiary" }, "Next select item"), h("smoothly-input-select", { key: '223ebf76fcfd12bb61cf78cdafb7cc2a6f9ab95a', looks: "border", name: "demo-user-input-select", onSmoothlyUserInput: e => console.debug(e.type, e.detail.name, e.detail.value) }, h("span", { key: '1bb540b065fdf0f3571482e0c8a3417a4d9be70a', slot: "label" }, "Select input"), this.values.map((value, index) => (h("smoothly-item", { value: index, selected: index == this.selectIndex }, value)))), h("smoothly-button", { key: 'c8759cf4029e8910db9eca83c856bbcd203721ae', color: "tertiary", onClick: () => (this.checkboxChecked = !this.checkboxChecked) }, "Toggle checkbox"), h("smoothly-input-checkbox", { key: 'a613696a09d76a9410d66e4fc51833db30a8acd6', looks: "border", name: "demo-user-input-checkbox", checked: this.checkboxChecked, onSmoothlyUserInput: e => console.debug(e.type, e.detail.name, e.detail.value) }, "Checkbox input"), h("smoothly-button", { key: '552e86df8bca79435198c9d18258d89471c17f2f', color: "tertiary", onClick: () => (this.radioIndex = this.increment(this.radioIndex)) }, "Next radio item"), h("smoothly-input-radio", { key: '83d0d370cfb15750bfec897741493bf51352409e', looks: "border", name: "demo-user-input-radio", onSmoothlyUserInput: e => console.debug(e.type, e.detail.name, e.detail.value) }, h("span", { key: '205e6dc2498d0ae6b95a119aba4d19c75cefabea', slot: "label" }, "Radio input"), this.values.map((value, index) => (h("smoothly-input-radio-item", { value: value, selected: index == this.radioIndex }, value)))), h("smoothly-button", { key: '13bc5121320b0982bdcf65c0ea5454841783ef24', color: "tertiary", onClick: () => (this.rangeValue = this.increment(this.rangeValue)) }, "Next range value"), h("smoothly-input-range", { key: 'c6097f9351a54aefda3b9f51694c71d4faa803a5', looks: "border", name: "demo-user-input-range", step: 1, min: 0, max: this.values.length, value: this.rangeValue, label: "Range Input", onSmoothlyUserInput: e => console.debug(e.type, e.detail.name, e.detail.value) }), h("smoothly-button", { key: '5356c9d3d1ebd1edc281d0802deee76cd098ed7d', color: "tertiary", onClick: () => (this.colorIndex = this.increment(this.colorIndex)) }, "Next color"), h("smoothly-input-color", { key: '18d6651482ef0254f9c1dd1cdefd2127c4d67dc1', looks: "border", name: "demo-user-input-color", value: typeof this.colorIndex == "number" ? this.colors[this.colorIndex] : undefined, onSmoothlyUserInput: e => console.debug(e.type, e.detail.name, e.detail.value) }, "Color input"), h("smoothly-button", { key: '3da5ff4f15a19d39a1537fc0f3f738bc840b17c4', color: "tertiary", onClick: () => (this.dateValue = this.dateValue ? isoly.Date.next(this.dateValue) : isoly.Date.now()) }, "Next day"), h("smoothly-input-date", { key: 'c20a4edf0546a89bcbd55a1f67840ffb6ca6a98a', looks: "border", name: "demo-user-input-date", value: this.dateValue, onSmoothlyUserInput: e => console.debug(e.type, e.detail.name, e.detail.value) }, "Date input"), h("smoothly-button", { key: '0ab185dd19fabc2ded8387b5d08b1580d47726c9', color: "tertiary", onClick: () => (this.datetimeValue = this.datetimeValue
14
14
  ? isoly.DateTime.nextDay(this.datetimeValue)
15
- : isoly.DateTime.now()) }, "Next date time"), h("smoothly-input-date-time", { key: '91d54581db356cfcfc093286eb125502398315bd', looks: "border", name: "demo-user-input-datetime", value: this.datetimeValue, onSmoothlyUserInput: e => console.debug(e.type, e.detail.name, e.detail.value) }, "Date time input"), h("smoothly-button", { key: '1bfc78adefad21783c035335cf764bdb92c537e4', color: "tertiary", onClick: () => (this.dateRangeValue = this.dateRangeValue
15
+ : isoly.DateTime.now()) }, "Next date time"), h("smoothly-input-date-time", { key: '402a80aa4b3b25a460d2acec85964446350501fa', looks: "border", name: "demo-user-input-datetime", value: this.datetimeValue, onSmoothlyUserInput: e => console.debug(e.type, e.detail.name, e.detail.value) }, "Date time input"), h("smoothly-button", { key: '89b12f184e5f3c2953b3882fca43dbea273f5178', color: "tertiary", onClick: () => (this.dateRangeValue = this.dateRangeValue
16
16
  ? { start: isoly.Date.next(this.dateRangeValue.start), end: isoly.Date.next(this.dateRangeValue.end) }
17
- : { start: isoly.Date.now(), end: isoly.Date.next(isoly.Date.now(), 10) }) }, "Next date range"), h("smoothly-input-date-range", { key: '78f36ca1d6a278db6d7bd4644689331be84c488a', looks: "border", name: "demo-user-input-daterange", start: (_a = this.dateRangeValue) === null || _a === void 0 ? void 0 : _a.start, end: (_b = this.dateRangeValue) === null || _b === void 0 ? void 0 : _b.end, onSmoothlyUserInput: e => console.debug(e.type, e.detail.name, e.detail.value) }, "Date range input")));
17
+ : { start: isoly.Date.now(), end: isoly.Date.next(isoly.Date.now(), 10) }) }, "Next date range"), h("smoothly-input-date-range", { key: '7c2c3867bb8465daf5da9496c70e717bdfd2616c', looks: "border", name: "demo-user-input-daterange", start: (_a = this.dateRangeValue) === null || _a === void 0 ? void 0 : _a.start, end: (_b = this.dateRangeValue) === null || _b === void 0 ? void 0 : _b.end, onSmoothlyUserInput: e => console.debug(e.type, e.detail.name, e.detail.value) }, "Date range input")));
18
18
  }
19
19
  static get is() { return "smoothly-input-demo-user-input"; }
20
20
  static get encapsulation() { return "scoped"; }
@@ -24,7 +24,7 @@ export class SmoothlyInputEdit {
24
24
  }
25
25
  render() {
26
26
  var _a;
27
- return (h(Host, { key: '9413c465eefd77797e42c791530e44dff3846f28', title: this.tooltip }, h("smoothly-button", { key: '6671fd2c91156be7d9a584e1a99f5b8b4f32eb1e', disabled: this.disabled, size: this.size, type: "button", shape: this.shape, expand: this.expand, color: this.color, fill: (_a = this.fill) !== null && _a !== void 0 ? _a : (this.type == "input" ? "clear" : undefined) }, h("slot", { key: 'acaa5562e2b97fb0bf0f774fda77efdb33ba66cc' }), h("smoothly-icon", { key: '8defa183091cea2766970860a93f9005085e7325', class: "default", name: "create-outline", size: "tiny" }))));
27
+ return (h(Host, { key: '3fa8bd92acf77d574acfe3bd36d305e043376237', title: this.tooltip }, h("smoothly-button", { key: '758777db051b7ed16e62e11c01c74d718cfefea7', disabled: this.disabled, size: this.size, type: "button", shape: this.shape, expand: this.expand, color: this.color, fill: (_a = this.fill) !== null && _a !== void 0 ? _a : (this.type == "input" ? "clear" : undefined) }, h("slot", { key: '15d7fef684aa41d04a1a5e11ffa18480ae6aeee8' }), h("smoothly-icon", { key: 'd47e6290709546c917d2b15ad60e30fa1df11410', class: "default", name: "create-outline", size: "tiny" }))));
28
28
  }
29
29
  static get is() { return "smoothly-input-edit"; }
30
30
  static get encapsulation() { return "scoped"; }
@@ -104,7 +104,7 @@ export class SmoothlyInputFile {
104
104
  }
105
105
  render() {
106
106
  var _a, _b, _c;
107
- return (h(Host, { key: 'a1e2fbf3bf30d1fd941de3bd207e16ef0e168407', class: { dragging: this.dragging, "has-value": !!this.value }, tabindex: this.disabled ? undefined : 0, onClick: (e) => this.clickHandler(e), onDragOver: (e) => this.dragOverHandler(e), onDragEnter: (e) => this.dragEnterHandler(e) }, h("label", { key: '1b2e27e123de65862e6535b4ee4e9760f1541129' }, h("slot", { key: 'aa0b28bb9a49649463084495e47d98d92729a57d', name: "label" })), h("div", { key: 'e7275addeb482256063dae4196f46ff8f45993c4', class: "input" }, h("smoothly-button", { key: 'efb739b21ac1af7cdec628fe67fdf8e38d576e74', disabled: this.disabled, type: "button", color: this.color, fill: "clear", size: "flexible" }, h("slot", { key: '131edbbc38611bdaf47024837c043d2f094104b0', name: "button" })), h("span", { key: 'dfd5aca4c0112a257fce52f7b2ecddf348b71870' }, (_b = (_a = this.value) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : this.placeholder), h("div", { key: 'b118ce04ee719798fe30fa562c77f60ce85945e6', class: "drag-overlay", onDrop: e => this.dropHandler(e), onDragLeave: e => this.dragLeaveHandler(e) }, h("smoothly-icon", { key: '94cd919ab0af8d448bf20fad13cb6a19579d26dc', name: "document-attach-outline" })), h("input", { key: '4f372d0ca5451932574973b4d0d556423acdf320', ref: element => (this.input = element), type: "file", disabled: this.disabled, capture: this.camera == "back" ? "environment" : "user", accept: (_c = this.accept) !== null && _c !== void 0 ? _c : (!this.camera ? undefined : "image/jpeg"), files: this.files, onInput: e => this.inputHandler(e) })), h("span", { key: '092975f9f5161227ee1907c12918e8256dc88d09', onClick: (e) => e.stopPropagation() }, h("slot", { key: '9039ae566f705c87e542ded409bba07358849829', name: "end" }))));
107
+ return (h(Host, { key: '92ab54c45c171373ca1202527ac452358b1c8de8', class: { dragging: this.dragging, "has-value": !!this.value }, tabindex: this.disabled ? undefined : 0, onClick: (e) => this.clickHandler(e), onDragOver: (e) => this.dragOverHandler(e), onDragEnter: (e) => this.dragEnterHandler(e) }, h("label", { key: 'e7865d1f743acdb3f262f812e47a7aa33e7f455b' }, h("slot", { key: 'ea009dfb71d55f4de0214c0188abdeca97cfb126', name: "label" })), h("div", { key: '9875aef8a3075c1c93450da31789c263279d2104', class: "input" }, h("smoothly-button", { key: '70c1985a28a92b0df083fcf89caa8bc6798f94ee', disabled: this.disabled, type: "button", color: this.color, fill: "clear", size: "flexible" }, h("slot", { key: '4b3eb404ef91e9ed042e2fd99b22e012a7f07780', name: "button" })), h("span", { key: 'e41716ae95c78739678c28d50d9ba65f830384fd' }, (_b = (_a = this.value) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : this.placeholder), h("div", { key: '89f1c26d6d4d7bb4cc52b8897ee30bd1b36717d8', class: "drag-overlay", onDrop: e => this.dropHandler(e), onDragLeave: e => this.dragLeaveHandler(e) }, h("smoothly-icon", { key: 'b88edd52dcbe45bc147a152cb8550de5487dfd70', name: "document-attach-outline" })), h("input", { key: '44aed5773dc5425b492ef090685df3575a1358e6', ref: element => (this.input = element), type: "file", disabled: this.disabled, capture: this.camera == "back" ? "environment" : "user", accept: (_c = this.accept) !== null && _c !== void 0 ? _c : (!this.camera ? undefined : "image/jpeg"), files: this.files, onInput: e => this.inputHandler(e) })), h("span", { key: '4a24ad4127a02b97b04369952822aa354509ca0d', onClick: (e) => e.stopPropagation() }, h("slot", { key: '70189241ca504152198d2c20c68bdfc0f31eb71b', name: "end" }))));
108
108
  }
109
109
  static get is() { return "smoothly-input-file"; }
110
110
  static get encapsulation() { return "scoped"; }
@@ -134,7 +134,7 @@ export class SmoothlyInput {
134
134
  }
135
135
  render() {
136
136
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
137
- return (h(Host, { key: '70b8f1998872650f29f9868082b967534f236f07', class: { "has-value": ((_a = this.state) === null || _a === void 0 ? void 0 : _a.value) != undefined && ((_b = this.state) === null || _b === void 0 ? void 0 : _b.value) != "" }, onclick: () => { var _a; return (_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.focus(); } }, h("slot", { key: 'ea9697662701929b3f97f939bcedf52264e499fa', name: "start" }), h("div", { key: '8438ab65ede2df7cecae8e333877f358a09dc8ba', class: "smoothly-input-container" }, h("div", { key: '498c91553b4672a7439e87ebe01b91fd78e38097', class: "guide" }, h("div", { key: 'a46dd14b4c9dba32d59a5d24067b10d0c89dc577', class: "value" }, (_c = this.state) === null || _c === void 0 ? void 0 : _c.value), h("div", { key: '9463bd116c7aa48d36a5f2109cd31fc2968922d2', class: "remainder" }, (_d = this.state) === null || _d === void 0 ? void 0 : _d.remainder)), h("input", { key: 'c82970753f25895533f6ed5564edf86578c8ad73', ref: (el) => (this.inputElement = el), color: this.color, name: this.name, type: (_e = this.state) === null || _e === void 0 ? void 0 : _e.type, inputmode: (_f = this.state) === null || _f === void 0 ? void 0 : _f.inputmode, placeholder: this.placeholder, required: this.required, autocomplete: (_g = this.autocomplete) !== null && _g !== void 0 ? _g : (_h = this.state) === null || _h === void 0 ? void 0 : _h.autocomplete, disabled: this.disabled, readOnly: this.readonly, pattern: ((_j = this.state) === null || _j === void 0 ? void 0 : _j.pattern) && ((_k = this.state) === null || _k === void 0 ? void 0 : _k.pattern.source), onKeyDown: async (event) => {
137
+ return (h(Host, { key: 'c5d524d1f3afd855836d16272830f435bbea828a', class: { "has-value": ((_a = this.state) === null || _a === void 0 ? void 0 : _a.value) != undefined && ((_b = this.state) === null || _b === void 0 ? void 0 : _b.value) != "" }, onclick: () => { var _a; return (_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.focus(); } }, h("slot", { key: '99bf0a11a07a3aa1622cacb8b16979a08f0ab4ec', name: "start" }), h("div", { key: '230008efd3abd69c42442777c0b2091b8499f42e', class: "smoothly-input-container" }, h("div", { key: '37fbfc2747d5c22d1345df109fa74438261f97d7', class: "guide" }, h("div", { key: 'ae7ef0e2563c7058305457d3b45ee54ad0d8f575', class: "value" }, (_c = this.state) === null || _c === void 0 ? void 0 : _c.value), h("div", { key: '3149dc1dc1104e1f7958d71660c634bc9d1532d0', class: "remainder" }, (_d = this.state) === null || _d === void 0 ? void 0 : _d.remainder)), h("input", { key: 'c4205c491d6482072762c8cac4f8b9eb06e8c09b', ref: (el) => (this.inputElement = el), color: this.color, name: this.name, type: (_e = this.state) === null || _e === void 0 ? void 0 : _e.type, inputmode: (_f = this.state) === null || _f === void 0 ? void 0 : _f.inputmode, placeholder: this.placeholder, required: this.required, autocomplete: (_g = this.autocomplete) !== null && _g !== void 0 ? _g : (_h = this.state) === null || _h === void 0 ? void 0 : _h.autocomplete, disabled: this.disabled, readOnly: this.readonly, pattern: ((_j = this.state) === null || _j === void 0 ? void 0 : _j.pattern) && ((_k = this.state) === null || _k === void 0 ? void 0 : _k.pattern.source), onKeyDown: async (event) => {
138
138
  this.state = this.stateHandler.onKeyDown(event, this.state);
139
139
  if (!this.readonly && !this.disabled) {
140
140
  this.smoothlyKeydown.emit(Key.create(this.name, event));
@@ -150,7 +150,7 @@ export class SmoothlyInput {
150
150
  this.smoothlyUserInput.emit({ name: this.name, value: this.stateHandler.getValue(this.state) });
151
151
  }
152
152
  }
153
- } }), h("label", { key: '963b63416e0c77ebc2cfcbcc088efd4728edcd7f', class: "label float-on-focus", htmlFor: this.name }, h("slot", { key: '49c41be3bf0bf77cd130830b8407c01b1143890f' }))), this.copyable && this.value && (h("span", { key: '3b042352ee3ce520adcdea4c627cddb19dc07d37', class: "copyable" }, h("small", { key: '30e1d95db69cceeef2bcd3a6baccbdd9f64dd57d' }, this.copied ? "Copied!" : "Copy"), h("smoothly-icon", { key: '7de8ce70f20a982f93ad1e33bb15f6d53854344e', name: "copy-outline", size: "small", onClick: () => this.copyText(this.value), onMouseLeave: () => (this.copied = false) }))), h("smoothly-icon", { key: '9f571de472ee768ad5e6c975378306515f1d252d', class: "smoothly-invalid", name: "alert-circle", size: "small", tooltip: this.errorMessage }), h("slot", { key: '75bf79f1aca5b93e984d6f731c0f28a768b6c537', name: "end" })));
153
+ } }), h("label", { key: '009823ce38acac92179f491d72cb504d70f09280', class: "label float-on-focus", htmlFor: this.name }, h("slot", { key: 'b1a6fee2719d4cf37fa73460a3ce42ca40e7ba4b' }))), this.copyable && this.value && (h("span", { key: '575ba5bf3d4fd4bfcc1766e8bed17fb918c15db1', class: "copyable" }, h("small", { key: 'cfcca12301172ebf57db536e4b82faa1f7d430c4' }, this.copied ? "Copied!" : "Copy"), h("smoothly-icon", { key: 'bc941fd7e23670f3232eb29f00124ce94ef201eb', name: "copy-outline", size: "small", onClick: () => this.copyText(this.value), onMouseLeave: () => (this.copied = false) }))), h("smoothly-icon", { key: '87bceaa7c79365c97b4757637dee596a3757e8b7', class: "smoothly-invalid", name: "alert-circle", size: "small", tooltip: this.errorMessage }), h("slot", { key: '39251aaac3bdd727fbfaf16eb79048d2a29231e6', name: "end" })));
154
154
  }
155
155
  static get is() { return "smoothly-input"; }
156
156
  static get encapsulation() { return "scoped"; }
@@ -107,21 +107,21 @@ export class SmoothlyInputMonth {
107
107
  }
108
108
  render() {
109
109
  var _a, _b;
110
- return (h(Host, { key: '825ed9c377498394114231b5fba58e1cbd53c321' }, h("smoothly-icon", { key: 'b17668f6747bf7169a0bd6284fec3e414be2b78c', name: "caret-back-outline", size: "tiny", color: this.color, fill: "default", class: {
110
+ return (h(Host, { key: '28204b265ebea6c0cbb757b8cc4a6a1e01e3b74c' }, h("smoothly-icon", { key: 'f4c14f7bf0825b0baede2c01ff097482ec9d75f5', name: "caret-back-outline", size: "tiny", color: this.color, fill: "default", class: {
111
111
  disabled: this.readonly || !this.allowPreviousMonth,
112
- }, onClick: () => this.allowPreviousMonth && this.adjustMonth(-1) }), h("smoothly-input-select", { key: 'ec12ff50447e0ae9c85b7eefe6abeaf350b3a155', ref: e => (this.year = e), name: `${this.name}-year`, readonly: this.readonly, menuHeight: "5.5items", required: true, ordered: true, inCalendar: this.inCalendar, showLabel: this.showLabel, onSmoothlyInput: e => this.inputHandler(e), onSmoothlyUserInput: e => {
112
+ }, onClick: () => this.allowPreviousMonth && this.adjustMonth(-1) }), h("smoothly-input-select", { key: '08a0e79d5558899bbc60d20b9a3e8b13bd736bed', ref: e => (this.year = e), name: `${this.name}-year`, readonly: this.readonly, menuHeight: "5.5items", required: true, ordered: true, inCalendar: this.inCalendar, showLabel: this.showLabel, onSmoothlyInput: e => this.inputHandler(e), onSmoothlyUserInput: e => {
113
113
  const month = e.detail.value;
114
114
  if (month && isoly.Date.is(month)) {
115
115
  const value = isoly.Date.firstOfMonth(month);
116
116
  this.smoothlyUserInput.emit({ name: this.name, value });
117
117
  }
118
- }, searchDisabled: true }, h("div", { key: '03f9af108c9a82b265055a5922371524a9a1485f', slot: "label" }, h("slot", { key: 'e1b37f7f4db3f27951844f1cf0453bc3bc66e141', name: "year-label" })), generate.years((_a = this.value) !== null && _a !== void 0 ? _a : isoly.Date.now(), this.min, this.max).map(year => (h("smoothly-item", { key: year.date, value: year.date, selected: year.selected || this.value == year.date }, year.name)))), h("smoothly-input-select", { key: '4c57f95ca4288fbf6401acfe5f83a9e21a7ad5e7', ref: e => (this.month = e), 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: e => this.inputHandler(e), onSmoothlyUserInput: e => {
118
+ }, searchDisabled: true }, h("div", { key: 'fe85ea22cbf1dda9cbae9ba96b2d6e45343c9a31', slot: "label" }, h("slot", { key: '1f0e5aef19949285791558528dac50ada4cb1f32', name: "year-label" })), generate.years((_a = this.value) !== null && _a !== void 0 ? _a : isoly.Date.now(), this.min, this.max).map(year => (h("smoothly-item", { key: year.date, value: year.date, selected: year.selected || this.value == year.date }, year.name)))), h("smoothly-input-select", { key: 'a5718197e3389df6c5d175ecf362826e5a6dafad', ref: e => (this.month = e), 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: e => this.inputHandler(e), onSmoothlyUserInput: e => {
119
119
  const year = e.detail.value;
120
120
  if (year && isoly.Date.is(year)) {
121
121
  const value = isoly.Date.firstOfMonth(year);
122
122
  this.smoothlyUserInput.emit({ name: this.name, value });
123
123
  }
124
- }, searchDisabled: true }, h("div", { key: '4c864e162f8fd664bf64d213f044608df5c32052', slot: "label" }, h("slot", { key: '8be0361eafcdda1fe0af35403fafe7268e0e1857', name: "month-label" })), generate.months((_b = this.value) !== null && _b !== void 0 ? _b : isoly.Date.now()).map(month => (h("smoothly-item", { key: month.date, value: month.date, selected: month.selected || this.value == month.date }, month.name)))), h("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) })));
124
+ }, searchDisabled: true }, h("div", { key: 'd4d00cd1968bf5766fee52de789f9fe983730210', slot: "label" }, h("slot", { key: '1b0a796b6cb66e6c549cd6eaef2f281ef519816a', name: "month-label" })), generate.months((_b = this.value) !== null && _b !== void 0 ? _b : isoly.Date.now()).map(month => (h("smoothly-item", { key: month.date, value: month.date, selected: month.selected || this.value == month.date }, month.name)))), h("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) })));
125
125
  }
126
126
  static get is() { return "smoothly-input-month"; }
127
127
  static get encapsulation() { return "scoped"; }
@@ -24,7 +24,7 @@ export class SmoothlyInputRadioItem {
24
24
  });
25
25
  }
26
26
  render() {
27
- return (h(Host, { key: '370000d169e3450e3646936321086771915d4fad', onClick: () => this.inputHandler(true) }, h("input", { key: 'b750a0accdbf51b07e2304cb90387110fd59b618', name: this.name, type: "radio", checked: this.selected, disabled: this.disabled }), h("smoothly-icon", { key: '98c9ceaa8bba2beff6477149fc393507da83d79d', name: this.selected ? "checkmark-circle" : "ellipse-outline", size: "small", tooltip: "Select" }), h("label", { key: 'f3fb78e097edde9b4a6ddfbd951e6614713374fc' }, h("slot", { key: '1f9e1d9419e874fe7dc9dd4696167449c34c14da' })), h("slot", { key: '0165c599564757d6b34944505fa296cd52fadc11', name: "detail" })));
27
+ return (h(Host, { key: '548451e8afccb134004214398c0b040031bc9592', onClick: () => this.inputHandler(true) }, h("input", { key: '75518c6651b452bce6ec4f805555871bb503d032', name: this.name, type: "radio", checked: this.selected, disabled: this.disabled }), h("smoothly-icon", { key: '0edda6108f36a759d2bab5e188c4c336daaa1756', name: this.selected ? "checkmark-circle" : "ellipse-outline", size: "small", tooltip: "Select" }), h("label", { key: '0e909f5c587e643e61fb99c3b5458009591ac813' }, h("slot", { key: '026b2f86ba15cbff2b7fc4e2514b82cdf0d7941a' })), h("slot", { key: 'cc688d36199d3de40150f38763035593d96a1799', name: "detail" })));
28
28
  }
29
29
  static get is() { return "smoothly-input-radio-item"; }
30
30
  static get encapsulation() { return "scoped"; }
@@ -1,7 +1,7 @@
1
1
  import { h, Host } from "@stencil/core";
2
2
  export class SmoothlyInputRangeDemo {
3
3
  render() {
4
- return (h(Host, { key: '513ed764bf3593102fe688e6929f2c3f19c0a1a9' }, h("h2", { key: '25a0e8ad3ef9322ca03f6c64d812148022dc9688' }, "Range"), h("h3", { key: 'f14838850168a97050eab32a4eff767f17e0b3ef' }, "Phone Number"), h("smoothly-input-range", { key: '8ad60bd62396e66ac1338c8937a432bc8580dc23', min: 700000000, max: 799999999, step: 1, label: "Phone Number" }), h("h3", { key: 'f766bb38a2ae9108ea03e03d02dc6cf5308f3139' }, "Stars out of ten"), h("smoothly-input-range", { key: '67164065098d501e710abe48fa0e8411a56c15c0', max: 10, step: 1, label: "Stars" }), h("h3", { key: '73c4f2da26f0b6d61997b342ad6d4c0976ccc89e' }, "Percent"), h("smoothly-input-range", { key: '9bd55d44e6611c0dfa3bd9e7c1b061d119437326', type: "percent", max: 1, step: 0.01, label: "Percent" }), h("h3", { key: '49dc7f9db92e9fbecc53fd0bf1c8804a13febaa2' }, "With icon at start and clear button"), h("smoothly-input-range", { key: '107e975039193ea8d1a9dca98d682c61d2c15096', step: 1, name: "range2", label: "Select" }, h("smoothly-icon", { key: 'cf0e39c1484399a21532024399ef6b08374a87c6', name: "checkmark-circle", slot: "start" }), h("smoothly-input-clear", { key: 'd1a3ab9ac2081a365a818d9ce2e453f03a21c049', size: "icon", slot: "end" }))));
4
+ return (h(Host, { key: '93085adc52dbed67cd824108eaaf64b3bda0fb6e' }, h("h2", { key: 'a91437c641e21986ad592c73f92a14234eddb9b9' }, "Range"), h("h3", { key: '5003225e9af30f278a7f37ccc1daab93df370e80' }, "Phone Number"), h("smoothly-input-range", { key: '5c790737cea0d76367f27072088ee92dec80a662', min: 700000000, max: 799999999, step: 1, label: "Phone Number" }), h("h3", { key: '6bff0c3ac7f529787a042a7b02256eae19ad5b4b' }, "Stars out of ten"), h("smoothly-input-range", { key: 'eaee03d21dc424fc65158b29a4a7d3b255209fd3', max: 10, step: 1, label: "Stars" }), h("h3", { key: 'f2124aaca6dccfa59cf65efbb9dfbecebf575740' }, "Percent"), h("smoothly-input-range", { key: 'ce14e10e75cf3320b2699021f99c5757b6598bbe', type: "percent", max: 1, step: 0.01, label: "Percent" }), h("h3", { key: 'a12635fed326ae754cef8e15aa8f728c0bea9639' }, "With icon at start and clear button"), h("smoothly-input-range", { key: 'f8050fdae3ff4e0be8f00914e6580d69df51c18b', step: 1, name: "range2", label: "Select" }, h("smoothly-icon", { key: '438d15ceb8cd3360ebc6394ee7aee2b0131ac808', name: "checkmark-circle", slot: "start" }), h("smoothly-input-clear", { key: '98dd0d35d727339290b76dfcf4348a846db22396', size: "icon", slot: "end" }))));
5
5
  }
6
6
  static get is() { return "smoothly-input-range-demo"; }
7
7
  }