smoothly 1.112.0 → 1.114.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 (389) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/smoothly-app_98.cjs.entry.js +293 -219
  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/icon/demo/index.js +25 -3
  10. package/dist/collection/components/icon/demo/index.js.map +1 -1
  11. package/dist/collection/components/input/checkbox/demo/index.js +1 -1
  12. package/dist/collection/components/input/checkbox/index.js +2 -2
  13. package/dist/collection/components/input/clear/index.js +1 -1
  14. package/dist/collection/components/input/color/demo/index.js +1 -1
  15. package/dist/collection/components/input/color/index.js +2 -2
  16. package/dist/collection/components/input/date/index.js +1 -1
  17. package/dist/collection/components/input/date/range/index.js +3 -3
  18. package/dist/collection/components/input/date/text/index.js +1 -1
  19. package/dist/collection/components/input/date/time/index.js +5 -5
  20. package/dist/collection/components/input/demo/date/index.js +1 -1
  21. package/dist/collection/components/input/demo/index.js +4 -4
  22. package/dist/collection/components/input/demo/price/index.js +1 -1
  23. package/dist/collection/components/input/demo/radio/index.js +1 -1
  24. package/dist/collection/components/input/demo/standard/index.js +1 -1
  25. package/dist/collection/components/input/demo/standard/index.js.map +1 -1
  26. package/dist/collection/components/input/demo/user-input/index.js +3 -3
  27. package/dist/collection/components/input/edit/index.js +1 -1
  28. package/dist/collection/components/input/file/index.js +1 -1
  29. package/dist/collection/components/input/index.js +2 -2
  30. package/dist/collection/components/input/month/index.js +4 -4
  31. package/dist/collection/components/input/radio/item/index.js +1 -1
  32. package/dist/collection/components/input/range/demo/index.js +1 -1
  33. package/dist/collection/components/input/range/index.js +4 -4
  34. package/dist/collection/components/input/reset/index.js +1 -1
  35. package/dist/collection/components/input/select/index.js +121 -133
  36. package/dist/collection/components/input/select/index.js.map +1 -1
  37. package/dist/collection/components/input/select/layout.js +21 -0
  38. package/dist/collection/components/input/select/layout.js.map +1 -0
  39. package/dist/collection/components/input/select/menu.js +33 -0
  40. package/dist/collection/components/input/select/menu.js.map +1 -0
  41. package/dist/collection/components/input/select/scroll.js +14 -0
  42. package/dist/collection/components/input/select/scroll.js.map +1 -0
  43. package/dist/collection/components/input/select/style.css +72 -64
  44. package/dist/collection/components/input/submit/index.js +1 -1
  45. package/dist/collection/components/item/index.js +1 -1
  46. package/dist/collection/components/label/index.js +2 -2
  47. package/dist/collection/components/lazy/index.js +1 -1
  48. package/dist/collection/components/load-more/index.js +1 -1
  49. package/dist/collection/components/modal/index.js +2 -2
  50. package/dist/collection/components/notification/index.js +1 -1
  51. package/dist/collection/components/notifier/index.js +1 -1
  52. package/dist/collection/components/spinner/index.js +2 -2
  53. package/dist/collection/components/submit/index.js +1 -1
  54. package/dist/collection/components/summary/index.js +1 -1
  55. package/dist/collection/components/table/body/index.js +1 -1
  56. package/dist/collection/components/table/cell/index.js +1 -1
  57. package/dist/collection/components/table/demo/colspan/index.js +1 -1
  58. package/dist/collection/components/table/demo/filler-row/index.js +1 -1
  59. package/dist/collection/components/table/demo/group/index.js +1 -1
  60. package/dist/collection/components/table/demo/index.js +1 -1
  61. package/dist/collection/components/table/demo/nested-no-cell/index.js +2 -2
  62. package/dist/collection/components/table/demo/nested-no-cell/inner/index.js +1 -1
  63. package/dist/collection/components/table/demo/simple/simple.js +1 -1
  64. package/dist/collection/components/table/expandable/cell/index.js +1 -1
  65. package/dist/collection/components/table/expandable/row/index.js +1 -1
  66. package/dist/collection/components/table/filler-row/index.js +1 -1
  67. package/dist/collection/components/table/foot/index.js +1 -1
  68. package/dist/collection/components/table/group/index.js +1 -1
  69. package/dist/collection/components/table/head/index.js +2 -2
  70. package/dist/collection/components/table/index.js +1 -1
  71. package/dist/collection/components/table/row/index.js +1 -1
  72. package/dist/collection/components/tabs/demo/index.js +1 -1
  73. package/dist/collection/components/tabs/tab/index.js +1 -1
  74. package/dist/collection/components/theme/color/index.js +1 -1
  75. package/dist/collection/components/theme/demo/index.js +1 -1
  76. package/dist/collection/components/theme/guide/index.js +8 -8
  77. package/dist/collection/components/theme/picker/index.js +2 -2
  78. package/dist/collection/components/toggle-switch/demo/index.js +1 -1
  79. package/dist/collection/components/toggle-switch/index.js +1 -1
  80. package/dist/collection/components/trigger/index.js +1 -1
  81. package/dist/collection/components/trigger/sink/index.js +1 -1
  82. package/dist/collection/components/trigger/source/index.js +1 -1
  83. package/dist/components/{p-BqAN7jax.js → p-1j2KmcfQ.js} +2 -2
  84. package/dist/components/{p-C519IJGa.js → p-4pGbxojU.js} +2 -2
  85. package/dist/components/{p-Bs8X_nDB.js → p-67RlLkJb.js} +2 -2
  86. package/dist/components/{p-Bm-gpoFa.js → p-6PsJb2Ez.js} +2 -2
  87. package/dist/components/{p-B8ljN4o0.js → p-AX8gOGUr.js} +2 -2
  88. package/dist/components/{p-Cvl7cLxT.js → p-B0kZrKne.js} +2 -2
  89. package/dist/components/{p-i8IFRTdL.js → p-B2MMqcTF.js} +2 -2
  90. package/dist/components/{p-jatJrx5f.js → p-B6sHuEsq.js} +2 -2
  91. package/dist/components/{p-DwYc62Ls.js → p-BEHgXDtQ.js} +2 -2
  92. package/dist/components/{p-CGG77xzV.js → p-BFJL6rrU.js} +2 -2
  93. package/dist/components/p-BGBbdXaw.js +2 -0
  94. package/dist/components/{p-BaGuG5hS.js → p-BGzrO9CQ.js} +2 -2
  95. package/dist/components/{p-DBuVH8IL.js → p-BHcHgI_e.js} +2 -2
  96. package/dist/components/p-BHsrC9Oh.js +2 -0
  97. package/dist/components/{p-CottiZWN.js.map → p-BHsrC9Oh.js.map} +1 -1
  98. package/dist/components/{p-CioJtwj-.js → p-BRoShuOu.js} +2 -2
  99. package/dist/components/{p-CKrPTQ_S.js → p-BUa0wBSK.js} +2 -2
  100. package/dist/components/p-BXoBluZQ.js +2 -0
  101. package/dist/components/{p-BRkEF66h.js → p-B_z5-Hf8.js} +2 -2
  102. package/dist/components/p-BanWK6rV.js +2 -0
  103. package/dist/components/{p-Dekg3IGr.js → p-Bes8H54c.js} +2 -2
  104. package/dist/components/{p-BDhPxj59.js → p-BfwEfI7H.js} +2 -2
  105. package/dist/components/{p-3dApo-uA.js → p-Bn7CZqdz.js} +2 -2
  106. package/dist/components/{p-BPh3sXo6.js → p-BpV6GXd7.js} +2 -2
  107. package/dist/components/{p-CsLlJDsh.js → p-Bpc6uh0M.js} +2 -2
  108. package/dist/components/p-Bq5YEPPT.js +2 -0
  109. package/dist/components/p-Bq5YEPPT.js.map +1 -0
  110. package/dist/components/{p-CVH3vlKv.js → p-BulPH2Jo.js} +2 -2
  111. package/dist/components/{p-CuMoDdaf.js → p-C-zr_dP8.js} +2 -2
  112. package/dist/components/{p-CTPT9Ngc.js → p-C02MtoAQ.js} +2 -2
  113. package/dist/components/{p-CR1YZ3na.js → p-C2xjUTYO.js} +2 -2
  114. package/dist/components/{p-Dx5PGIAk.js → p-C6T0ZB2C.js} +2 -2
  115. package/dist/components/{p-BiwhssQ8.js → p-CAgJrhiy.js} +2 -2
  116. package/dist/components/p-CApTrLt_.js +2 -0
  117. package/dist/components/{p-D1uYEo7L.js → p-CClpvMw2.js} +2 -2
  118. package/dist/components/{p-CG636AEF.js → p-CFgT9iMG.js} +2 -2
  119. package/dist/components/p-CJEV2v84.js +2 -0
  120. package/dist/components/p-CJEV2v84.js.map +1 -0
  121. package/dist/components/p-CKlr_F9h.js +2 -0
  122. package/dist/components/{p-DZ4ogW8V.js → p-CL7fW_Oh.js} +2 -2
  123. package/dist/components/{p-DVuQ4t_X.js → p-COK__8-d.js} +2 -2
  124. package/dist/components/{p-CRTkSTv3.js → p-CPnXAdGI.js} +2 -2
  125. package/dist/components/{p-CqSJ0pgl.js → p-CSXWpZjy.js} +2 -2
  126. package/dist/components/{p-D2FsRCII.js → p-CTdXhHGF.js} +2 -2
  127. package/dist/components/{p-iucZC6z5.js → p-CUdZx76u.js} +2 -2
  128. package/dist/components/{p-Bj9DsW03.js → p-CVNSeOlg.js} +2 -2
  129. package/dist/components/{p-BX6yRNGo.js → p-CcXqouEO.js} +2 -2
  130. package/dist/components/p-CgCEK6Lc.js +2 -0
  131. package/dist/components/{p-CUiFFtAw.js.map → p-CgCEK6Lc.js.map} +1 -1
  132. package/dist/components/{p-CF5IKGi5.js → p-CmPHR3tf.js} +2 -2
  133. package/dist/components/{p-BNnhxQyl.js → p-CoJyQegK.js} +2 -2
  134. package/dist/components/{p-BQSKXVmh.js → p-CooymHn6.js} +2 -2
  135. package/dist/components/{p-CMiST1Tm.js → p-CqMnH54Q.js} +2 -2
  136. package/dist/components/p-CqSiLhUe.js +2 -0
  137. package/dist/components/p-CqSiLhUe.js.map +1 -0
  138. package/dist/components/{p-BQIS-JBV.js → p-CqXSfYre.js} +2 -2
  139. package/dist/components/{p-D7cDUGTe.js → p-CqyGm3oe.js} +2 -2
  140. package/dist/components/{p-C_f8s6n5.js → p-CrKwvG9J.js} +2 -2
  141. package/dist/components/{p-nrkV1PqR.js → p-CrkBYYf-.js} +2 -2
  142. package/dist/components/{p-DTqtObrT.js → p-CtuuZV3u.js} +2 -2
  143. package/dist/components/p-Cv-uvD7X.js +2 -0
  144. package/dist/components/p-Cw_sHLuu.js +2 -0
  145. package/dist/components/{p-CjdBPauI.js → p-D-mAUrbR.js} +2 -2
  146. package/dist/components/{p-C3__jhwf.js → p-D5WTwmc6.js} +2 -2
  147. package/dist/components/{p-ByWVc-XC.js → p-D5dkLuTD.js} +2 -2
  148. package/dist/components/p-DGa_QPb9.js +2 -0
  149. package/dist/components/{p-1KOtWYkC.js.map → p-DGa_QPb9.js.map} +1 -1
  150. package/dist/components/p-DIf6-Fvg.js +2 -0
  151. package/dist/components/{p-DgaHxdNI.js → p-DIhqNc1G.js} +2 -2
  152. package/dist/components/p-DLBMEh0f.js +2 -0
  153. package/dist/components/{p-CrxXCTnH.js → p-DM3PMEgb.js} +2 -2
  154. package/dist/components/{p-DnLJBwZR.js → p-DS66Mn9S.js} +2 -2
  155. package/dist/components/p-DYNjCosy.js +2 -0
  156. package/dist/components/{p-CdgiqBtD.js.map → p-DYNjCosy.js.map} +1 -1
  157. package/dist/components/p-D_uKY0yY.js +2 -0
  158. package/dist/components/p-DkhX1qsg.js +2 -0
  159. package/dist/components/p-Dz8Bblye.js +2 -0
  160. package/dist/components/{p-t3cG0BK6.js.map → p-Dz8Bblye.js.map} +1 -1
  161. package/dist/components/p-He4KDK9-.js +2 -0
  162. package/dist/components/p-N-UYdc5h.js +2 -0
  163. package/dist/components/{p-Mk_F6MCP.js.map → p-N-UYdc5h.js.map} +1 -1
  164. package/dist/components/{p-DKggy9E3.js → p-NFd9Dxr1.js} +2 -2
  165. package/dist/components/{p-DSsOLbj6.js → p-NGbZCAH9.js} +2 -2
  166. package/dist/components/{p-Bp9BMsim.js → p-Qv-IgIvL.js} +2 -2
  167. package/dist/components/{p-R4uIvvER.js → p-Ww5QjB3D.js} +2 -2
  168. package/dist/components/{p-BaBGzDg_.js → p-_o_lUhve.js} +2 -2
  169. package/dist/components/{p-CtN3gqjJ.js → p-d26Fb7IS.js} +2 -2
  170. package/dist/components/{p-DMzn0Iz0.js → p-dBpTpVs8.js} +2 -2
  171. package/dist/components/{p-BS2SWUX6.js → p-fnKrPnzp.js} +2 -2
  172. package/dist/components/{p-DXHBXAV0.js → p-nFLcvugJ.js} +2 -2
  173. package/dist/components/{p-v06atw3t.js → p-qxJgmVrq.js} +2 -2
  174. package/dist/components/{p-C9zTTp-4.js → p-xkRxEiC8.js} +2 -2
  175. package/dist/components/smoothly-app-demo.js +1 -1
  176. package/dist/components/smoothly-app-room.js +1 -1
  177. package/dist/components/smoothly-app.js +1 -1
  178. package/dist/components/smoothly-button-demo-standard.js +1 -1
  179. package/dist/components/smoothly-button-demo.js +1 -1
  180. package/dist/components/smoothly-calendar.js +1 -1
  181. package/dist/components/smoothly-date-text.js +1 -1
  182. package/dist/components/smoothly-dialog-demo.js +1 -1
  183. package/dist/components/smoothly-dialog.js +1 -1
  184. package/dist/components/smoothly-display-demo.js +1 -1
  185. package/dist/components/smoothly-form-demo-all.js +1 -1
  186. package/dist/components/smoothly-form-demo-card.js +1 -1
  187. package/dist/components/smoothly-form-demo-controlled.js +1 -1
  188. package/dist/components/smoothly-form-demo-date-range.js +1 -1
  189. package/dist/components/smoothly-form-demo-date.js +1 -1
  190. package/dist/components/smoothly-form-demo-login.js +1 -1
  191. package/dist/components/smoothly-form-demo-pet.js +1 -1
  192. package/dist/components/smoothly-form-demo-prices.js +1 -1
  193. package/dist/components/smoothly-form-demo-schedule.js +1 -1
  194. package/dist/components/smoothly-form-demo-transparent.js +1 -1
  195. package/dist/components/smoothly-form-demo-typed.js +1 -1
  196. package/dist/components/smoothly-form-demo.js +1 -1
  197. package/dist/components/smoothly-form.js +1 -1
  198. package/dist/components/smoothly-icon-demo.js +1 -1
  199. package/dist/components/smoothly-input-checkbox-demo.js +1 -1
  200. package/dist/components/smoothly-input-checkbox.js +1 -1
  201. package/dist/components/smoothly-input-clear.js +1 -1
  202. package/dist/components/smoothly-input-color-demo.js +1 -1
  203. package/dist/components/smoothly-input-color.js +1 -1
  204. package/dist/components/smoothly-input-date-demo.js +1 -1
  205. package/dist/components/smoothly-input-date-range.js +1 -1
  206. package/dist/components/smoothly-input-date-time.js +1 -1
  207. package/dist/components/smoothly-input-date.js +1 -1
  208. package/dist/components/smoothly-input-demo-radio.js +1 -1
  209. package/dist/components/smoothly-input-demo-standard.js +1 -1
  210. package/dist/components/smoothly-input-demo-user-input.js +1 -1
  211. package/dist/components/smoothly-input-demo.js +1 -1
  212. package/dist/components/smoothly-input-edit.js +1 -1
  213. package/dist/components/smoothly-input-file.js +1 -1
  214. package/dist/components/smoothly-input-month.js +1 -1
  215. package/dist/components/smoothly-input-price-demo.js +1 -1
  216. package/dist/components/smoothly-input-radio-item.js +1 -1
  217. package/dist/components/smoothly-input-radio.js +1 -1
  218. package/dist/components/smoothly-input-range-demo.js +1 -1
  219. package/dist/components/smoothly-input-range.js +1 -1
  220. package/dist/components/smoothly-input-reset.js +1 -1
  221. package/dist/components/smoothly-input-select.js +1 -1
  222. package/dist/components/smoothly-input-submit.js +1 -1
  223. package/dist/components/smoothly-input.js +1 -1
  224. package/dist/components/smoothly-item.js +1 -1
  225. package/dist/components/smoothly-label.js +1 -1
  226. package/dist/components/smoothly-lazy.js +1 -1
  227. package/dist/components/smoothly-load-more.js +1 -1
  228. package/dist/components/smoothly-modal.js +1 -1
  229. package/dist/components/smoothly-notification.js +1 -1
  230. package/dist/components/smoothly-notifier.js +1 -1
  231. package/dist/components/smoothly-spinner.js +1 -1
  232. package/dist/components/smoothly-submit.js +1 -1
  233. package/dist/components/smoothly-summary.js +1 -1
  234. package/dist/components/smoothly-tab.js +1 -1
  235. package/dist/components/smoothly-table-body.js +1 -1
  236. package/dist/components/smoothly-table-cell.js +1 -1
  237. package/dist/components/smoothly-table-demo-colspan.js +1 -1
  238. package/dist/components/smoothly-table-demo-filler-row.js +1 -1
  239. package/dist/components/smoothly-table-demo-group.js +1 -1
  240. package/dist/components/smoothly-table-demo-nested-no-cell-inner.js +1 -1
  241. package/dist/components/smoothly-table-demo-nested-no-cell.js +1 -1
  242. package/dist/components/smoothly-table-demo-simple.js +1 -1
  243. package/dist/components/smoothly-table-demo.js +1 -1
  244. package/dist/components/smoothly-table-expandable-cell.js +1 -1
  245. package/dist/components/smoothly-table-expandable-row.js +1 -1
  246. package/dist/components/smoothly-table-filler-row.js +1 -1
  247. package/dist/components/smoothly-table-foot.js +1 -1
  248. package/dist/components/smoothly-table-head.js +1 -1
  249. package/dist/components/smoothly-table-row-group.js +1 -1
  250. package/dist/components/smoothly-table-row.js +1 -1
  251. package/dist/components/smoothly-table.js +1 -1
  252. package/dist/components/smoothly-tabs-demo.js +1 -1
  253. package/dist/components/smoothly-theme-color.js +1 -1
  254. package/dist/components/smoothly-theme-colors.js +1 -1
  255. package/dist/components/smoothly-theme-demo.js +1 -1
  256. package/dist/components/smoothly-theme-guide.js +1 -1
  257. package/dist/components/smoothly-theme-picker.js +1 -1
  258. package/dist/components/smoothly-toggle-switch-demo.js +1 -1
  259. package/dist/components/smoothly-toggle-switch.js +1 -1
  260. package/dist/components/smoothly-trigger-sink.js +1 -1
  261. package/dist/components/smoothly-trigger-source.js +1 -1
  262. package/dist/components/smoothly-trigger.js +1 -1
  263. package/dist/esm/loader.js +1 -1
  264. package/dist/esm/smoothly-app_98.entry.js +293 -219
  265. package/dist/esm/smoothly-app_98.entry.js.map +1 -1
  266. package/dist/esm/smoothly-input-checkbox-demo.entry.js +1 -1
  267. package/dist/esm/smoothly-submit.entry.js +1 -1
  268. package/dist/esm/smoothly-trigger-sink.entry.js +1 -1
  269. package/dist/esm/smoothly-trigger-source.entry.js +1 -1
  270. package/dist/esm/smoothly.js +1 -1
  271. package/dist/smoothly/p-7d6c72eb.entry.js +2 -0
  272. package/dist/smoothly/{p-5e123fe2.entry.js → p-94d091cd.entry.js} +2 -2
  273. package/dist/smoothly/{p-13d05a22.entry.js → p-be43737e.entry.js} +2 -2
  274. package/dist/smoothly/{p-7a59c6a9.entry.js → p-d4dad5a8.entry.js} +2 -2
  275. package/dist/smoothly/p-e7c5888e.entry.js +2 -0
  276. package/dist/smoothly/p-e7c5888e.entry.js.map +1 -0
  277. package/dist/smoothly/smoothly.esm.js +1 -1
  278. package/dist/types/components/icon/demo/index.d.ts +2 -0
  279. package/dist/types/components/input/select/index.d.ts +18 -9
  280. package/dist/types/components/input/select/layout.d.ts +6 -0
  281. package/dist/types/components/input/select/menu.d.ts +10 -0
  282. package/dist/types/components/input/select/scroll.d.ts +3 -0
  283. package/dist/types/components.d.ts +5 -3
  284. package/package.json +1 -1
  285. package/dist/components/p-1KOtWYkC.js +0 -2
  286. package/dist/components/p-4y8eF-fy.js +0 -2
  287. package/dist/components/p-B3OjIxsE.js +0 -2
  288. package/dist/components/p-BGKOGyFA.js +0 -2
  289. package/dist/components/p-CDQM-sOT.js +0 -2
  290. package/dist/components/p-CUiFFtAw.js +0 -2
  291. package/dist/components/p-CZ6kkjYF.js +0 -2
  292. package/dist/components/p-CdgiqBtD.js +0 -2
  293. package/dist/components/p-CottiZWN.js +0 -2
  294. package/dist/components/p-CqyInbXs.js +0 -2
  295. package/dist/components/p-CqyInbXs.js.map +0 -1
  296. package/dist/components/p-CrcmijCR.js +0 -2
  297. package/dist/components/p-D2cHi1Nb.js +0 -2
  298. package/dist/components/p-D58kSmOp.js +0 -2
  299. package/dist/components/p-D9qp7S6Q.js +0 -2
  300. package/dist/components/p-DbIjGsJb.js +0 -2
  301. package/dist/components/p-DbIjGsJb.js.map +0 -1
  302. package/dist/components/p-DdTTiJbE.js +0 -2
  303. package/dist/components/p-Mk_F6MCP.js +0 -2
  304. package/dist/components/p-RNCr3p17.js +0 -2
  305. package/dist/components/p-RNCr3p17.js.map +0 -1
  306. package/dist/components/p-nHKstm2X.js +0 -2
  307. package/dist/components/p-t3cG0BK6.js +0 -2
  308. package/dist/components/p-thKhutym.js +0 -2
  309. package/dist/smoothly/p-23badc13.entry.js +0 -2
  310. package/dist/smoothly/p-23badc13.entry.js.map +0 -1
  311. package/dist/smoothly/p-2fbd48bb.entry.js +0 -2
  312. /package/dist/components/{p-BqAN7jax.js.map → p-1j2KmcfQ.js.map} +0 -0
  313. /package/dist/components/{p-C519IJGa.js.map → p-4pGbxojU.js.map} +0 -0
  314. /package/dist/components/{p-Bs8X_nDB.js.map → p-67RlLkJb.js.map} +0 -0
  315. /package/dist/components/{p-Bm-gpoFa.js.map → p-6PsJb2Ez.js.map} +0 -0
  316. /package/dist/components/{p-B8ljN4o0.js.map → p-AX8gOGUr.js.map} +0 -0
  317. /package/dist/components/{p-Cvl7cLxT.js.map → p-B0kZrKne.js.map} +0 -0
  318. /package/dist/components/{p-i8IFRTdL.js.map → p-B2MMqcTF.js.map} +0 -0
  319. /package/dist/components/{p-jatJrx5f.js.map → p-B6sHuEsq.js.map} +0 -0
  320. /package/dist/components/{p-DwYc62Ls.js.map → p-BEHgXDtQ.js.map} +0 -0
  321. /package/dist/components/{p-CGG77xzV.js.map → p-BFJL6rrU.js.map} +0 -0
  322. /package/dist/components/{p-CrcmijCR.js.map → p-BGBbdXaw.js.map} +0 -0
  323. /package/dist/components/{p-BaGuG5hS.js.map → p-BGzrO9CQ.js.map} +0 -0
  324. /package/dist/components/{p-DBuVH8IL.js.map → p-BHcHgI_e.js.map} +0 -0
  325. /package/dist/components/{p-CioJtwj-.js.map → p-BRoShuOu.js.map} +0 -0
  326. /package/dist/components/{p-CKrPTQ_S.js.map → p-BUa0wBSK.js.map} +0 -0
  327. /package/dist/components/{p-BGKOGyFA.js.map → p-BXoBluZQ.js.map} +0 -0
  328. /package/dist/components/{p-BRkEF66h.js.map → p-B_z5-Hf8.js.map} +0 -0
  329. /package/dist/components/{p-D9qp7S6Q.js.map → p-BanWK6rV.js.map} +0 -0
  330. /package/dist/components/{p-Dekg3IGr.js.map → p-Bes8H54c.js.map} +0 -0
  331. /package/dist/components/{p-BDhPxj59.js.map → p-BfwEfI7H.js.map} +0 -0
  332. /package/dist/components/{p-3dApo-uA.js.map → p-Bn7CZqdz.js.map} +0 -0
  333. /package/dist/components/{p-BPh3sXo6.js.map → p-BpV6GXd7.js.map} +0 -0
  334. /package/dist/components/{p-CsLlJDsh.js.map → p-Bpc6uh0M.js.map} +0 -0
  335. /package/dist/components/{p-CVH3vlKv.js.map → p-BulPH2Jo.js.map} +0 -0
  336. /package/dist/components/{p-CuMoDdaf.js.map → p-C-zr_dP8.js.map} +0 -0
  337. /package/dist/components/{p-CTPT9Ngc.js.map → p-C02MtoAQ.js.map} +0 -0
  338. /package/dist/components/{p-CR1YZ3na.js.map → p-C2xjUTYO.js.map} +0 -0
  339. /package/dist/components/{p-Dx5PGIAk.js.map → p-C6T0ZB2C.js.map} +0 -0
  340. /package/dist/components/{p-BiwhssQ8.js.map → p-CAgJrhiy.js.map} +0 -0
  341. /package/dist/components/{p-CDQM-sOT.js.map → p-CApTrLt_.js.map} +0 -0
  342. /package/dist/components/{p-D1uYEo7L.js.map → p-CClpvMw2.js.map} +0 -0
  343. /package/dist/components/{p-CG636AEF.js.map → p-CFgT9iMG.js.map} +0 -0
  344. /package/dist/components/{p-nHKstm2X.js.map → p-CKlr_F9h.js.map} +0 -0
  345. /package/dist/components/{p-DZ4ogW8V.js.map → p-CL7fW_Oh.js.map} +0 -0
  346. /package/dist/components/{p-DVuQ4t_X.js.map → p-COK__8-d.js.map} +0 -0
  347. /package/dist/components/{p-CRTkSTv3.js.map → p-CPnXAdGI.js.map} +0 -0
  348. /package/dist/components/{p-CqSJ0pgl.js.map → p-CSXWpZjy.js.map} +0 -0
  349. /package/dist/components/{p-D2FsRCII.js.map → p-CTdXhHGF.js.map} +0 -0
  350. /package/dist/components/{p-iucZC6z5.js.map → p-CUdZx76u.js.map} +0 -0
  351. /package/dist/components/{p-Bj9DsW03.js.map → p-CVNSeOlg.js.map} +0 -0
  352. /package/dist/components/{p-BX6yRNGo.js.map → p-CcXqouEO.js.map} +0 -0
  353. /package/dist/components/{p-CF5IKGi5.js.map → p-CmPHR3tf.js.map} +0 -0
  354. /package/dist/components/{p-BNnhxQyl.js.map → p-CoJyQegK.js.map} +0 -0
  355. /package/dist/components/{p-BQSKXVmh.js.map → p-CooymHn6.js.map} +0 -0
  356. /package/dist/components/{p-CMiST1Tm.js.map → p-CqMnH54Q.js.map} +0 -0
  357. /package/dist/components/{p-BQIS-JBV.js.map → p-CqXSfYre.js.map} +0 -0
  358. /package/dist/components/{p-D7cDUGTe.js.map → p-CqyGm3oe.js.map} +0 -0
  359. /package/dist/components/{p-C_f8s6n5.js.map → p-CrKwvG9J.js.map} +0 -0
  360. /package/dist/components/{p-nrkV1PqR.js.map → p-CrkBYYf-.js.map} +0 -0
  361. /package/dist/components/{p-DTqtObrT.js.map → p-CtuuZV3u.js.map} +0 -0
  362. /package/dist/components/{p-4y8eF-fy.js.map → p-Cv-uvD7X.js.map} +0 -0
  363. /package/dist/components/{p-D58kSmOp.js.map → p-Cw_sHLuu.js.map} +0 -0
  364. /package/dist/components/{p-CjdBPauI.js.map → p-D-mAUrbR.js.map} +0 -0
  365. /package/dist/components/{p-C3__jhwf.js.map → p-D5WTwmc6.js.map} +0 -0
  366. /package/dist/components/{p-ByWVc-XC.js.map → p-D5dkLuTD.js.map} +0 -0
  367. /package/dist/components/{p-CZ6kkjYF.js.map → p-DIf6-Fvg.js.map} +0 -0
  368. /package/dist/components/{p-DgaHxdNI.js.map → p-DIhqNc1G.js.map} +0 -0
  369. /package/dist/components/{p-DdTTiJbE.js.map → p-DLBMEh0f.js.map} +0 -0
  370. /package/dist/components/{p-CrxXCTnH.js.map → p-DM3PMEgb.js.map} +0 -0
  371. /package/dist/components/{p-DnLJBwZR.js.map → p-DS66Mn9S.js.map} +0 -0
  372. /package/dist/components/{p-D2cHi1Nb.js.map → p-D_uKY0yY.js.map} +0 -0
  373. /package/dist/components/{p-thKhutym.js.map → p-DkhX1qsg.js.map} +0 -0
  374. /package/dist/components/{p-B3OjIxsE.js.map → p-He4KDK9-.js.map} +0 -0
  375. /package/dist/components/{p-DKggy9E3.js.map → p-NFd9Dxr1.js.map} +0 -0
  376. /package/dist/components/{p-DSsOLbj6.js.map → p-NGbZCAH9.js.map} +0 -0
  377. /package/dist/components/{p-Bp9BMsim.js.map → p-Qv-IgIvL.js.map} +0 -0
  378. /package/dist/components/{p-R4uIvvER.js.map → p-Ww5QjB3D.js.map} +0 -0
  379. /package/dist/components/{p-BaBGzDg_.js.map → p-_o_lUhve.js.map} +0 -0
  380. /package/dist/components/{p-CtN3gqjJ.js.map → p-d26Fb7IS.js.map} +0 -0
  381. /package/dist/components/{p-DMzn0Iz0.js.map → p-dBpTpVs8.js.map} +0 -0
  382. /package/dist/components/{p-BS2SWUX6.js.map → p-fnKrPnzp.js.map} +0 -0
  383. /package/dist/components/{p-DXHBXAV0.js.map → p-nFLcvugJ.js.map} +0 -0
  384. /package/dist/components/{p-v06atw3t.js.map → p-qxJgmVrq.js.map} +0 -0
  385. /package/dist/components/{p-C9zTTp-4.js.map → p-xkRxEiC8.js.map} +0 -0
  386. /package/dist/smoothly/{p-2fbd48bb.entry.js.map → p-7d6c72eb.entry.js.map} +0 -0
  387. /package/dist/smoothly/{p-5e123fe2.entry.js.map → p-94d091cd.entry.js.map} +0 -0
  388. /package/dist/smoothly/{p-13d05a22.entry.js.map → p-be43737e.entry.js.map} +0 -0
  389. /package/dist/smoothly/{p-7a59c6a9.entry.js.map → p-d4dad5a8.entry.js.map} +0 -0
@@ -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: 'abb4be407f4b7ed51d5f796bdfce3b2b56c468a4', name: "month", 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 }, this.options.showLabel && h("label", { key: '49f71dbb091094f79927778d18a0a58e70689f42', slot: "label" }, "Select"), h("smoothly-item", { key: '4b0e9cb4ce233c50a42fe249a3aef5648dc62558', value: "1" }, "January"), h("smoothly-item", { key: '38380b0f13ddeb83e2e19e0ac645dcdbacf6c4df', value: "2" }, "February"), h("smoothly-item", { key: '4f65be9a949261542191e3b484ad646e17f04987', value: "3" }, "March"), h("smoothly-item", { key: 'b6e9be5fbe31a12865717daddcd1a4039c942205', value: "4" }, "April"), h("smoothly-item", { key: '6c867101a115315e30bcf525d3fde4a8e49a5719', value: "5" }, "May"), h("smoothly-item", { key: 'ba4792a24e862aed054b356a444f9b791add16b1', value: "6" }, "June"), h("smoothly-item", { key: '9cc3a21ed384c2e2415311770925458dc13ac8d1', value: "7" }, "July"), h("smoothly-item", { key: '53cf8809b4dbc8256448b5c08a9d07f274e365a3', value: "8" }, "August"), h("smoothly-item", { key: '47a43966214064dab4d321cf9116b5cd87409dd3', value: "9" }, "September"), h("smoothly-item", { key: 'c71ceab27a3f86a5c2a27dc251b18f119f5ac623', value: "10" }, "October"), h("smoothly-item", { key: '7e824138f3b0b28a414465d69bb71c4d6786c3b5', value: "11" }, "November"), h("smoothly-item", { key: 'e7813efea82efe4cd4a8bfa54a7a55b21f53fa48', value: "12" }, "December"), h("smoothly-input-clear", { key: '7072ef8f9ac5b9a3028cbd2962560fc315f3d58b', slot: "end" })), h("div", { key: '3a1c4b4c2834bbb4921e330a77fe477c4741f181', class: "height" }), h("smoothly-input-checkbox", { key: '50499f2f1a4258a56caeb2266da17a9e881c7993', 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: '550d44f73f1ae07461d73f66febd5138867e8247', slot: "end" })), h("div", { key: 'acb1b0eaab732df76e2c586e8f56ee6c81fbdd87', class: "height" }), h("smoothly-input-radio", { key: 'ec7f8b66f806e63a09320e2ebfcda71be001cd3b', 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: '00de1fcac1f811970b3f1154d6286dc7bd6036d8', slot: "label" }, "Radio"), h("smoothly-input-radio-item", { key: '35ea9212aa0f8eec4a96dedc406b428f58b848e6', value: "first" }, "Label 1"), h("smoothly-input-radio-item", { key: 'db11c348c12a468a854c53c5f5f692ae7dcbaeb1', selected: true, value: "second" }, "Label 2"), h("smoothly-input-radio-item", { key: '65707145740b173f4379c6bf5706a962a91bb021', value: "third" }, "Label 3"), h("smoothly-input-clear", { key: '883be5fef36a7e6fb16c57b30fcad312f1f25a6b', slot: "end" })), h("div", { key: '2cd8b1bb4ac90fd34732d2bfc34116bcc8429045', class: "height" }), h("smoothly-input-file", { key: '87739b41a33b7be135c5b3ed02648e702ac386ca', 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: '0d10524c66e0625ec86431a8c19dcedf83f47eac', slot: "label" }, "File"), h("smoothly-input-clear", { key: 'a95f256a28cf294430040b6c6028921f0c620c8d', slot: "end" })), h("div", { key: '48650848e22a86ca8aa7501e09fbd8c5f0ce83ea', class: "height" }), h("smoothly-input-range", { key: 'b1e96735886d8e3e4b451ed17fa11ecada3e2302', 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: 'ab7f71a498ce9404aacc63f0273bd3b715ddf12c', slot: "end" })), h("div", { key: '0ff2870912f9ae2e2b41ba9d982c906124ef2641', class: "height" }), h("smoothly-input-color", { key: 'fa4d779da5bfaea1e9644e721d9f6c4249949407', 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: '63674017888873443dc7b744114dae7996e79c52' }, "Color"), h("smoothly-input-clear", { key: '6344ad242592e19365961e80cc0814023eaa7dc2', slot: "end" })), h("div", { key: '16e0b71b1b6b1ee68813e3827b96bffe5ec63ef7', class: "height" }), h("smoothly-input-date", { key: '85e2fc24713c7543766e5c88341de28bb235eec9', 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: '106776717336dc925ceef2fc726c2acbff48a060' }, "Date"), h("smoothly-input-clear", { key: 'dd31d582a9da8729177e44f0709e20dd22ad1ceb', slot: "end" })), h("div", { key: '7a3b4c683d4d6ba46a09890c3112126911376100', class: "height" }), h("smoothly-input-date-time", { key: '6826e6fad4f1bcb21a30188e489215a785bf9d92', 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: 'bfa1fd01c821d467bb322310b56353e8a21b37ed', slot: "end" })), h("div", { key: 'a9b5fac536b744270db8ee2c2e29c05f011a522a', class: "height" }), h("smoothly-input-date-range", { key: '437b2e44f71354330bded70e2ee61a1180b42215', 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: 'ce778323ca7e585f98cb5c6d029593e329eaa3f0' }, "Date Range"), h("smoothly-input-clear", { key: '96a689e9facde44dc827d19c9476fd7191a753ce', slot: "end" })), h("div", { key: '99a70bddd4168419ce44d234a84d5b234de4abcf', 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"; }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/input/demo/standard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AAElE,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AACzC,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AAoBnC,MAAM,OAAO,yBAAyB;IALtC;QAOU,aAAQ,GAAmB,EAAE,KAAK,EAAE,CAAC,EAAE,CAAA;QACvC,YAAO,GAAY,EAAE,CAAA;KAsO9B;IApOA,iBAAiB;QAChB,IAAI,CAAC,qBAAqB,EAAE,CAAA;IAC7B,CAAC;IACD,kBAAkB;QACjB,IAAI,CAAC,qBAAqB,EAAE,CAAA;IAC7B,CAAC;IAED,qBAAqB;QACpB,MAAM,YAAY,GAAG,MAAM,CAAC,gBAAgB,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,EA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BAEtB,iFACC,IAAI,EAAE,UAAU,EAChB,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,KAAK,EACzB,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,KAAK,EACzB,QAAQ,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,EAC/B,QAAQ,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,EAC/B,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO,EAC7B,YAAY,EAAE,IAAI,CAAC,OAAO,CAAC,YAAY,EACvC,SAAS,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS;;oBAIjC,6EAAsB,IAAI,EAAC,KAAK,GAAG,CACT;gBAC3B,4DAAK,KAAK,EAAC,QAAQ,GAAG;gBAEtB,kFACC,IAAI,EAAE,WAAW,EACjB,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,KAAK,EACzB,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,KAAK,EACzB,QAAQ,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,EAC/B,QAAQ,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,EAC/B,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO,EAC7B,YAAY,EAAE,IAAI,CAAC,OAAO,CAAC,YAAY,EACvC,WAAW,EAAE,IAAI,CAAC,OAAO,CAAC,WAAW,EACrC,eAAe,EAAE,IAAI,CAAC,OAAO,CAAC,eAAe,EAC7C,SAAS,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS;oBAChC,IAAI,CAAC,OAAO,CAAC,SAAS,IAAI,4EAAuB;oBAClD,6EAAsB,IAAI,EAAC,KAAK,GAAG,CACR;gBAC5B,4DAAK,KAAK,EAAC,QAAQ,GAAG,CACjB,CACA,CACP,CAAA;IACF,CAAC;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, Element, h, Host, State } from \"@stencil/core\"\nimport { isoly } from \"isoly\"\nimport { Color } from \"../../../../model\"\nimport { Looks } from \"../../Looks\"\n\ntype Options = {\n\tcolor?: Color\n\tlooks?: Looks\n\tborderRadius?: number\n\treadonly?: boolean\n\tdisabled?: boolean\n\tinvalid?: boolean\n\terrorMessage?: string\n\tshowLabel?: boolean\n\tplaceholder?: string\n\talwaysShowGuide?: boolean\n}\n\n@Component({\n\ttag: \"smoothly-input-demo-standard\",\n\tstyleUrl: \"style.css\",\n\tscoped: true,\n})\nexport class SmoothlyInputDemoStandard {\n\t@Element() element: HTMLElement\n\t@State() duration: isoly.TimeSpan = { hours: 8 }\n\t@State() options: Options = {}\n\n\tconnectedCallback() {\n\t\tthis.updateInputHeightText()\n\t}\n\tcomponentDidRender() {\n\t\tthis.updateInputHeightText()\n\t}\n\n\tupdateInputHeightText() {\n\t\tconst rootFontSize = Number(getComputedStyle(document.documentElement).fontSize.replace(\"px\", \"\"))\n\t\tthis.element.querySelectorAll(\".height\").forEach((el: HTMLDivElement) => {\n\t\t\tconst height = el.clientHeight\n\t\t\tel.innerHTML = `<b>${height / rootFontSize}rem</b> (${height}pixels)`\n\t\t})\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t<div class=\"description\">\n\t\t\t\t\t<h2>Input Standard</h2>\n\t\t\t\t\t<p>\n\t\t\t\t\t\tHeight of input should be <code>3rem</code> including border. This is should result in a 48 pixel height at\n\t\t\t\t\t\t100% zoom, assuming a root font-size of 16 pixels.\n\t\t\t\t\t</p>\n\t\t\t\t\t<smoothly-form looks={\"grid\"} onSmoothlyFormInput={(e: CustomEvent<Options>) => (this.options = e.detail)}>\n\t\t\t\t\t\t<smoothly-input-select name=\"color\">\n\t\t\t\t\t\t\t<span slot=\"label\">Color</span>\n\t\t\t\t\t\t\t{Color.values.map(c => (\n\t\t\t\t\t\t\t\t<smoothly-item value={c}>\n\t\t\t\t\t\t\t\t\t<span color={c}>{c}</span>\n\t\t\t\t\t\t\t\t</smoothly-item>\n\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t\t<smoothly-input-clear slot=\"end\" />\n\t\t\t\t\t\t</smoothly-input-select>\n\t\t\t\t\t\t<smoothly-input-select name=\"looks\">\n\t\t\t\t\t\t\t<span slot=\"label\">Looks</span>\n\t\t\t\t\t\t\t{Looks.values.map(l => (\n\t\t\t\t\t\t\t\t<smoothly-item value={l}>{l}</smoothly-item>\n\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t</smoothly-input-select>\n\t\t\t\t\t\t<smoothly-input-range label={\"Border Radius (rem)\"} name={\"borderRadius\"} min={0} max={2} step={0.25} />\n\t\t\t\t\t\t<smoothly-input-checkbox name=\"readonly\">Readonly</smoothly-input-checkbox>\n\t\t\t\t\t\t<smoothly-input-checkbox name=\"disabled\">Disabled</smoothly-input-checkbox>\n\t\t\t\t\t\t<smoothly-input-checkbox name=\"invalid\">Invalid</smoothly-input-checkbox>\n\t\t\t\t\t\t<smoothly-input name=\"errorMessage\" value=\"This is not a valid value\">\n\t\t\t\t\t\t\tError Message\n\t\t\t\t\t\t</smoothly-input>\n\t\t\t\t\t\t<smoothly-input-checkbox name=\"showLabel\" checked>\n\t\t\t\t\t\t\tShow Label\n\t\t\t\t\t\t</smoothly-input-checkbox>\n\t\t\t\t\t\t<smoothly-input name=\"placeholder\">Placeholder</smoothly-input>\n\t\t\t\t\t\t<smoothly-input-checkbox name=\"alwaysShowGuide\">\n\t\t\t\t\t\t\tAlways Show Guide (for date inputs)\n\t\t\t\t\t\t</smoothly-input-checkbox>\n\t\t\t\t\t</smoothly-form>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"input-wrapper\" style={{ \"--smoothly-input-border-radius\": `${this.options.borderRadius}rem` }}>\n\t\t\t\t\t<div class=\"width\">width: 100%</div>\n\t\t\t\t\t<div class=\"left-padding\">padding-left: 0.5rem</div>\n\t\t\t\t\t<smoothly-input\n\t\t\t\t\t\tname=\"text\"\n\t\t\t\t\t\tcolor={this.options.color}\n\t\t\t\t\t\tlooks={this.options.looks}\n\t\t\t\t\t\treadonly={this.options.readonly}\n\t\t\t\t\t\tdisabled={this.options.disabled}\n\t\t\t\t\t\tinvalid={this.options.invalid}\n\t\t\t\t\t\terrorMessage={this.options.errorMessage}\n\t\t\t\t\t\tshowLabel={this.options.showLabel}\n\t\t\t\t\t\tplaceholder={this.options.placeholder}>\n\t\t\t\t\t\t{this.options.showLabel && <span>Text</span>}\n\t\t\t\t\t\t<smoothly-input-clear slot=\"end\" />\n\t\t\t\t\t</smoothly-input>\n\t\t\t\t\t<div class=\"height\" />\n\n\t\t\t\t\t<smoothly-input-select\n\t\t\t\t\t\tname=\"month\"\n\t\t\t\t\t\tcolor={this.options.color}\n\t\t\t\t\t\tlooks={this.options.looks}\n\t\t\t\t\t\treadonly={this.options.readonly}\n\t\t\t\t\t\tdisabled={this.options.disabled}\n\t\t\t\t\t\tinvalid={this.options.invalid}\n\t\t\t\t\t\terrorMessage={this.options.errorMessage}\n\t\t\t\t\t\tplaceholder={this.options.placeholder}>\n\t\t\t\t\t\t{this.options.showLabel && <label slot=\"label\">Select</label>}\n\t\t\t\t\t\t<smoothly-item value=\"1\">January</smoothly-item>\n\t\t\t\t\t\t<smoothly-item value=\"2\">February</smoothly-item>\n\t\t\t\t\t\t<smoothly-item value=\"3\">March</smoothly-item>\n\t\t\t\t\t\t<smoothly-item value=\"4\">April</smoothly-item>\n\t\t\t\t\t\t<smoothly-item value=\"5\">May</smoothly-item>\n\t\t\t\t\t\t<smoothly-item value=\"6\">June</smoothly-item>\n\t\t\t\t\t\t<smoothly-item value=\"7\">July</smoothly-item>\n\t\t\t\t\t\t<smoothly-item value=\"8\">August</smoothly-item>\n\t\t\t\t\t\t<smoothly-item value=\"9\">September</smoothly-item>\n\t\t\t\t\t\t<smoothly-item value=\"10\">October</smoothly-item>\n\t\t\t\t\t\t<smoothly-item value=\"11\">November</smoothly-item>\n\t\t\t\t\t\t<smoothly-item value=\"12\">December</smoothly-item>\n\t\t\t\t\t\t<smoothly-input-clear slot=\"end\" />\n\t\t\t\t\t</smoothly-input-select>\n\t\t\t\t\t<div class=\"height\" />\n\n\t\t\t\t\t<smoothly-input-checkbox\n\t\t\t\t\t\tname={\"checkbox\"}\n\t\t\t\t\t\tchecked\n\t\t\t\t\t\tcolor={this.options.color}\n\t\t\t\t\t\tlooks={this.options.looks}\n\t\t\t\t\t\treadonly={this.options.readonly}\n\t\t\t\t\t\tdisabled={this.options.disabled}>\n\t\t\t\t\t\tCheck\n\t\t\t\t\t\t<smoothly-input-reset slot=\"end\" />\n\t\t\t\t\t</smoothly-input-checkbox>\n\t\t\t\t\t<div class=\"height\" />\n\n\t\t\t\t\t<smoothly-input-radio\n\t\t\t\t\t\tname={\"radio\"}\n\t\t\t\t\t\tclearable\n\t\t\t\t\t\tcolor={this.options.color}\n\t\t\t\t\t\tlooks={this.options.looks}\n\t\t\t\t\t\treadonly={this.options.readonly}\n\t\t\t\t\t\tdisabled={this.options.disabled}\n\t\t\t\t\t\tshowLabel={this.options.showLabel}>\n\t\t\t\t\t\t{this.options.showLabel && <label slot=\"label\">Radio</label>}\n\t\t\t\t\t\t<smoothly-input-radio-item value={\"first\"}>Label 1</smoothly-input-radio-item>\n\t\t\t\t\t\t<smoothly-input-radio-item selected value={\"second\"}>\n\t\t\t\t\t\t\tLabel 2\n\t\t\t\t\t\t</smoothly-input-radio-item>\n\t\t\t\t\t\t<smoothly-input-radio-item value={\"third\"}>Label 3</smoothly-input-radio-item>\n\t\t\t\t\t\t<smoothly-input-clear slot=\"end\" />\n\t\t\t\t\t</smoothly-input-radio>\n\t\t\t\t\t<div class=\"height\" />\n\n\t\t\t\t\t<smoothly-input-file\n\t\t\t\t\t\tname={\"file\"}\n\t\t\t\t\t\tcolor={this.options.color}\n\t\t\t\t\t\tlooks={this.options.looks}\n\t\t\t\t\t\treadonly={this.options.readonly}\n\t\t\t\t\t\tdisabled={this.options.disabled}\n\t\t\t\t\t\t// TODO - invalid\n\t\t\t\t\t\t// TODO - errorMessage\n\t\t\t\t\t\tshowLabel={this.options.showLabel}\n\t\t\t\t\t\tplaceholder={this.options.placeholder}>\n\t\t\t\t\t\t{this.options.showLabel && <span slot={\"label\"}>File</span>}\n\t\t\t\t\t\t<smoothly-input-clear slot=\"end\" />\n\t\t\t\t\t</smoothly-input-file>\n\t\t\t\t\t<div class=\"height\" />\n\n\t\t\t\t\t<smoothly-input-range\n\t\t\t\t\t\tname={\"range\"}\n\t\t\t\t\t\tcolor={this.options.color}\n\t\t\t\t\t\tlooks={this.options.looks}\n\t\t\t\t\t\treadonly={this.options.readonly}\n\t\t\t\t\t\tdisabled={this.options.disabled}\n\t\t\t\t\t\t// TODO - invalid\n\t\t\t\t\t\t// TODO - errorMessage\n\t\t\t\t\t\tlabel={this.options.showLabel ? \"Range\" : undefined}\n\t\t\t\t\t\t// TODO - disabled\n\t\t\t\t\t\t// TODO - placeholder\n\t\t\t\t\t>\n\t\t\t\t\t\t<smoothly-input-clear slot=\"end\" />\n\t\t\t\t\t</smoothly-input-range>\n\t\t\t\t\t<div class=\"height\" />\n\n\t\t\t\t\t<smoothly-input-color\n\t\t\t\t\t\tname={\"color\"}\n\t\t\t\t\t\tcolor={this.options.color}\n\t\t\t\t\t\tlooks={this.options.looks}\n\t\t\t\t\t\treadonly={this.options.readonly}\n\t\t\t\t\t\tdisabled={this.options.disabled}\n\t\t\t\t\t\t// TODO - invalid\n\t\t\t\t\t\t// TODO - errorMessage\n\t\t\t\t\t\tshowLabel={this.options.showLabel}\n\t\t\t\t\t\t// TODO - placeholder\n\t\t\t\t\t>\n\t\t\t\t\t\t{this.options.showLabel && <span>Color</span>}\n\t\t\t\t\t\t<smoothly-input-clear slot=\"end\" />\n\t\t\t\t\t</smoothly-input-color>\n\t\t\t\t\t<div class=\"height\" />\n\n\t\t\t\t\t<smoothly-input-date\n\t\t\t\t\t\tname={\"date\"}\n\t\t\t\t\t\tcolor={this.options.color}\n\t\t\t\t\t\tlooks={this.options.looks}\n\t\t\t\t\t\treadonly={this.options.readonly}\n\t\t\t\t\t\tdisabled={this.options.disabled}\n\t\t\t\t\t\tinvalid={this.options.invalid}\n\t\t\t\t\t\terrorMessage={this.options.errorMessage}\n\t\t\t\t\t\tshowLabel={this.options.showLabel}\n\t\t\t\t\t\tplaceholder={this.options.placeholder}\n\t\t\t\t\t\talwaysShowGuide={this.options.alwaysShowGuide}>\n\t\t\t\t\t\t{this.options.showLabel && <span>Date</span>}\n\t\t\t\t\t\t<smoothly-input-clear slot=\"end\" />\n\t\t\t\t\t</smoothly-input-date>\n\t\t\t\t\t<div class=\"height\" />\n\n\t\t\t\t\t<smoothly-input-date-time\n\t\t\t\t\t\tname={\"dateTime\"}\n\t\t\t\t\t\tcolor={this.options.color}\n\t\t\t\t\t\tlooks={this.options.looks}\n\t\t\t\t\t\treadonly={this.options.readonly}\n\t\t\t\t\t\tdisabled={this.options.disabled}\n\t\t\t\t\t\tinvalid={this.options.invalid}\n\t\t\t\t\t\terrorMessage={this.options.errorMessage}\n\t\t\t\t\t\tshowLabel={this.options.showLabel}\n\t\t\t\t\t\t// TODO - placeholder\n\t\t\t\t\t>\n\t\t\t\t\t\tDateTime\n\t\t\t\t\t\t<smoothly-input-clear slot=\"end\" />\n\t\t\t\t\t</smoothly-input-date-time>\n\t\t\t\t\t<div class=\"height\" />\n\n\t\t\t\t\t<smoothly-input-date-range\n\t\t\t\t\t\tname={\"dateRange\"}\n\t\t\t\t\t\tcolor={this.options.color}\n\t\t\t\t\t\tlooks={this.options.looks}\n\t\t\t\t\t\treadonly={this.options.readonly}\n\t\t\t\t\t\tdisabled={this.options.disabled}\n\t\t\t\t\t\tinvalid={this.options.invalid}\n\t\t\t\t\t\terrorMessage={this.options.errorMessage}\n\t\t\t\t\t\tplaceholder={this.options.placeholder}\n\t\t\t\t\t\talwaysShowGuide={this.options.alwaysShowGuide}\n\t\t\t\t\t\tshowLabel={this.options.showLabel}>\n\t\t\t\t\t\t{this.options.showLabel && <span>Date Range</span>}\n\t\t\t\t\t\t<smoothly-input-clear slot=\"end\" />\n\t\t\t\t\t</smoothly-input-date-range>\n\t\t\t\t\t<div class=\"height\" />\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/input/demo/standard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AAElE,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AACzC,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AAoBnC,MAAM,OAAO,yBAAyB;IALtC;QAOU,aAAQ,GAAmB,EAAE,KAAK,EAAE,CAAC,EAAE,CAAA;QACvC,YAAO,GAAY,EAAE,CAAA;KAuO9B;IArOA,iBAAiB;QAChB,IAAI,CAAC,qBAAqB,EAAE,CAAA;IAC7B,CAAC;IACD,kBAAkB;QACjB,IAAI,CAAC,qBAAqB,EAAE,CAAA;IAC7B,CAAC;IAED,qBAAqB;QACpB,MAAM,YAAY,GAAG,MAAM,CAAC,gBAAgB,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAA;QAClG,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,CAAC,EAAkB,EAAE,EAAE;YACvE,MAAM,MAAM,GAAG,EAAE,CAAC,YAAY,CAAA;YAC9B,EAAE,CAAC,SAAS,GAAG,MAAM,MAAM,GAAG,YAAY,YAAY,MAAM,SAAS,CAAA;QACtE,CAAC,CAAC,CAAA;IACH,CAAC;IAED,MAAM;QACL,OAAO,CACN,EAAC,IAAI;YACJ,4DAAK,KAAK,EAAC,aAAa;gBACvB,8EAAuB;gBACvB;;oBAC2B,sEAAiB;0IAExC;gBACJ,sEAAe,KAAK,EAAE,MAAM,EAAE,mBAAmB,EAAE,CAAC,CAAuB,EAAE,EAAE,CAA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BAEtB,kFACC,IAAI,EAAE,WAAW,EACjB,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,KAAK,EACzB,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,KAAK,EACzB,QAAQ,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,EAC/B,QAAQ,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,EAC/B,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO,EAC7B,YAAY,EAAE,IAAI,CAAC,OAAO,CAAC,YAAY,EACvC,WAAW,EAAE,IAAI,CAAC,OAAO,CAAC,WAAW,EACrC,eAAe,EAAE,IAAI,CAAC,OAAO,CAAC,eAAe,EAC7C,SAAS,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS;oBAChC,IAAI,CAAC,OAAO,CAAC,SAAS,IAAI,4EAAuB;oBAClD,6EAAsB,IAAI,EAAC,KAAK,GAAG,CACR;gBAC5B,4DAAK,KAAK,EAAC,QAAQ,GAAG,CACjB,CACA,CACP,CAAA;IACF,CAAC;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, Element, h, Host, State } from \"@stencil/core\"\nimport { isoly } from \"isoly\"\nimport { Color } from \"../../../../model\"\nimport { Looks } from \"../../Looks\"\n\ntype Options = {\n\tcolor?: Color\n\tlooks?: Looks\n\tborderRadius?: number\n\treadonly?: boolean\n\tdisabled?: boolean\n\tinvalid?: boolean\n\terrorMessage?: string\n\tshowLabel?: boolean\n\tplaceholder?: string\n\talwaysShowGuide?: boolean\n}\n\n@Component({\n\ttag: \"smoothly-input-demo-standard\",\n\tstyleUrl: \"style.css\",\n\tscoped: true,\n})\nexport class SmoothlyInputDemoStandard {\n\t@Element() element: HTMLElement\n\t@State() duration: isoly.TimeSpan = { hours: 8 }\n\t@State() options: Options = {}\n\n\tconnectedCallback() {\n\t\tthis.updateInputHeightText()\n\t}\n\tcomponentDidRender() {\n\t\tthis.updateInputHeightText()\n\t}\n\n\tupdateInputHeightText() {\n\t\tconst rootFontSize = Number(getComputedStyle(document.documentElement).fontSize.replace(\"px\", \"\"))\n\t\tthis.element.querySelectorAll(\".height\").forEach((el: HTMLDivElement) => {\n\t\t\tconst height = el.clientHeight\n\t\t\tel.innerHTML = `<b>${height / rootFontSize}rem</b> (${height}pixels)`\n\t\t})\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t<div class=\"description\">\n\t\t\t\t\t<h2>Input Standard</h2>\n\t\t\t\t\t<p>\n\t\t\t\t\t\tHeight of input should be <code>3rem</code> including border. This is should result in a 48 pixel height at\n\t\t\t\t\t\t100% zoom, assuming a root font-size of 16 pixels.\n\t\t\t\t\t</p>\n\t\t\t\t\t<smoothly-form looks={\"grid\"} onSmoothlyFormInput={(e: CustomEvent<Options>) => (this.options = e.detail)}>\n\t\t\t\t\t\t<smoothly-input-select name=\"color\">\n\t\t\t\t\t\t\t<span slot=\"label\">Color</span>\n\t\t\t\t\t\t\t{Color.values.map(c => (\n\t\t\t\t\t\t\t\t<smoothly-item value={c}>\n\t\t\t\t\t\t\t\t\t<span color={c}>{c}</span>\n\t\t\t\t\t\t\t\t</smoothly-item>\n\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t\t<smoothly-input-clear slot=\"end\" />\n\t\t\t\t\t\t</smoothly-input-select>\n\t\t\t\t\t\t<smoothly-input-select name=\"looks\">\n\t\t\t\t\t\t\t<span slot=\"label\">Looks</span>\n\t\t\t\t\t\t\t{Looks.values.map(l => (\n\t\t\t\t\t\t\t\t<smoothly-item value={l}>{l}</smoothly-item>\n\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t</smoothly-input-select>\n\t\t\t\t\t\t<smoothly-input-range label={\"Border Radius (rem)\"} name={\"borderRadius\"} min={0} max={2} step={0.25} />\n\t\t\t\t\t\t<smoothly-input-checkbox name=\"readonly\">Readonly</smoothly-input-checkbox>\n\t\t\t\t\t\t<smoothly-input-checkbox name=\"disabled\">Disabled</smoothly-input-checkbox>\n\t\t\t\t\t\t<smoothly-input-checkbox name=\"invalid\">Invalid</smoothly-input-checkbox>\n\t\t\t\t\t\t<smoothly-input name=\"errorMessage\" value=\"This is not a valid value\">\n\t\t\t\t\t\t\tError Message\n\t\t\t\t\t\t</smoothly-input>\n\t\t\t\t\t\t<smoothly-input-checkbox name=\"showLabel\" checked>\n\t\t\t\t\t\t\tShow Label\n\t\t\t\t\t\t</smoothly-input-checkbox>\n\t\t\t\t\t\t<smoothly-input name=\"placeholder\">Placeholder</smoothly-input>\n\t\t\t\t\t\t<smoothly-input-checkbox name=\"alwaysShowGuide\">\n\t\t\t\t\t\t\tAlways Show Guide (for date inputs)\n\t\t\t\t\t\t</smoothly-input-checkbox>\n\t\t\t\t\t</smoothly-form>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"input-wrapper\" style={{ \"--smoothly-input-border-radius\": `${this.options.borderRadius}rem` }}>\n\t\t\t\t\t<div class=\"width\">width: 100%</div>\n\t\t\t\t\t<div class=\"left-padding\">padding-left: 0.5rem</div>\n\t\t\t\t\t<smoothly-input\n\t\t\t\t\t\tname=\"text\"\n\t\t\t\t\t\tcolor={this.options.color}\n\t\t\t\t\t\tlooks={this.options.looks}\n\t\t\t\t\t\treadonly={this.options.readonly}\n\t\t\t\t\t\tdisabled={this.options.disabled}\n\t\t\t\t\t\tinvalid={this.options.invalid}\n\t\t\t\t\t\terrorMessage={this.options.errorMessage}\n\t\t\t\t\t\tshowLabel={this.options.showLabel}\n\t\t\t\t\t\tplaceholder={this.options.placeholder}>\n\t\t\t\t\t\t{this.options.showLabel && <span>Text</span>}\n\t\t\t\t\t\t<smoothly-input-clear slot=\"end\" />\n\t\t\t\t\t</smoothly-input>\n\t\t\t\t\t<div class=\"height\" />\n\n\t\t\t\t\t<smoothly-input-select\n\t\t\t\t\t\tname=\"month\"\n\t\t\t\t\t\tcolor={this.options.color}\n\t\t\t\t\t\tlooks={this.options.looks}\n\t\t\t\t\t\tmenuHeight=\"6.7items\"\n\t\t\t\t\t\treadonly={this.options.readonly}\n\t\t\t\t\t\tdisabled={this.options.disabled}\n\t\t\t\t\t\tinvalid={this.options.invalid}\n\t\t\t\t\t\terrorMessage={this.options.errorMessage}\n\t\t\t\t\t\tplaceholder={this.options.placeholder}>\n\t\t\t\t\t\t{this.options.showLabel && <label slot=\"label\">Select</label>}\n\t\t\t\t\t\t<smoothly-item value=\"1\">January</smoothly-item>\n\t\t\t\t\t\t<smoothly-item value=\"2\">February</smoothly-item>\n\t\t\t\t\t\t<smoothly-item value=\"3\">March</smoothly-item>\n\t\t\t\t\t\t<smoothly-item value=\"4\">April</smoothly-item>\n\t\t\t\t\t\t<smoothly-item value=\"5\">May</smoothly-item>\n\t\t\t\t\t\t<smoothly-item value=\"6\">June</smoothly-item>\n\t\t\t\t\t\t<smoothly-item value=\"7\">July</smoothly-item>\n\t\t\t\t\t\t<smoothly-item value=\"8\">August</smoothly-item>\n\t\t\t\t\t\t<smoothly-item value=\"9\">September</smoothly-item>\n\t\t\t\t\t\t<smoothly-item value=\"10\">October</smoothly-item>\n\t\t\t\t\t\t<smoothly-item value=\"11\">November</smoothly-item>\n\t\t\t\t\t\t<smoothly-item value=\"12\">December</smoothly-item>\n\t\t\t\t\t\t<smoothly-input-clear slot=\"end\" />\n\t\t\t\t\t</smoothly-input-select>\n\t\t\t\t\t<div class=\"height\" />\n\n\t\t\t\t\t<smoothly-input-checkbox\n\t\t\t\t\t\tname={\"checkbox\"}\n\t\t\t\t\t\tchecked\n\t\t\t\t\t\tcolor={this.options.color}\n\t\t\t\t\t\tlooks={this.options.looks}\n\t\t\t\t\t\treadonly={this.options.readonly}\n\t\t\t\t\t\tdisabled={this.options.disabled}>\n\t\t\t\t\t\tCheck\n\t\t\t\t\t\t<smoothly-input-reset slot=\"end\" />\n\t\t\t\t\t</smoothly-input-checkbox>\n\t\t\t\t\t<div class=\"height\" />\n\n\t\t\t\t\t<smoothly-input-radio\n\t\t\t\t\t\tname={\"radio\"}\n\t\t\t\t\t\tclearable\n\t\t\t\t\t\tcolor={this.options.color}\n\t\t\t\t\t\tlooks={this.options.looks}\n\t\t\t\t\t\treadonly={this.options.readonly}\n\t\t\t\t\t\tdisabled={this.options.disabled}\n\t\t\t\t\t\tshowLabel={this.options.showLabel}>\n\t\t\t\t\t\t{this.options.showLabel && <label slot=\"label\">Radio</label>}\n\t\t\t\t\t\t<smoothly-input-radio-item value={\"first\"}>Label 1</smoothly-input-radio-item>\n\t\t\t\t\t\t<smoothly-input-radio-item selected value={\"second\"}>\n\t\t\t\t\t\t\tLabel 2\n\t\t\t\t\t\t</smoothly-input-radio-item>\n\t\t\t\t\t\t<smoothly-input-radio-item value={\"third\"}>Label 3</smoothly-input-radio-item>\n\t\t\t\t\t\t<smoothly-input-clear slot=\"end\" />\n\t\t\t\t\t</smoothly-input-radio>\n\t\t\t\t\t<div class=\"height\" />\n\n\t\t\t\t\t<smoothly-input-file\n\t\t\t\t\t\tname={\"file\"}\n\t\t\t\t\t\tcolor={this.options.color}\n\t\t\t\t\t\tlooks={this.options.looks}\n\t\t\t\t\t\treadonly={this.options.readonly}\n\t\t\t\t\t\tdisabled={this.options.disabled}\n\t\t\t\t\t\t// TODO - invalid\n\t\t\t\t\t\t// TODO - errorMessage\n\t\t\t\t\t\tshowLabel={this.options.showLabel}\n\t\t\t\t\t\tplaceholder={this.options.placeholder}>\n\t\t\t\t\t\t{this.options.showLabel && <span slot={\"label\"}>File</span>}\n\t\t\t\t\t\t<smoothly-input-clear slot=\"end\" />\n\t\t\t\t\t</smoothly-input-file>\n\t\t\t\t\t<div class=\"height\" />\n\n\t\t\t\t\t<smoothly-input-range\n\t\t\t\t\t\tname={\"range\"}\n\t\t\t\t\t\tcolor={this.options.color}\n\t\t\t\t\t\tlooks={this.options.looks}\n\t\t\t\t\t\treadonly={this.options.readonly}\n\t\t\t\t\t\tdisabled={this.options.disabled}\n\t\t\t\t\t\t// TODO - invalid\n\t\t\t\t\t\t// TODO - errorMessage\n\t\t\t\t\t\tlabel={this.options.showLabel ? \"Range\" : undefined}\n\t\t\t\t\t\t// TODO - disabled\n\t\t\t\t\t\t// TODO - placeholder\n\t\t\t\t\t>\n\t\t\t\t\t\t<smoothly-input-clear slot=\"end\" />\n\t\t\t\t\t</smoothly-input-range>\n\t\t\t\t\t<div class=\"height\" />\n\n\t\t\t\t\t<smoothly-input-color\n\t\t\t\t\t\tname={\"color\"}\n\t\t\t\t\t\tcolor={this.options.color}\n\t\t\t\t\t\tlooks={this.options.looks}\n\t\t\t\t\t\treadonly={this.options.readonly}\n\t\t\t\t\t\tdisabled={this.options.disabled}\n\t\t\t\t\t\t// TODO - invalid\n\t\t\t\t\t\t// TODO - errorMessage\n\t\t\t\t\t\tshowLabel={this.options.showLabel}\n\t\t\t\t\t\t// TODO - placeholder\n\t\t\t\t\t>\n\t\t\t\t\t\t{this.options.showLabel && <span>Color</span>}\n\t\t\t\t\t\t<smoothly-input-clear slot=\"end\" />\n\t\t\t\t\t</smoothly-input-color>\n\t\t\t\t\t<div class=\"height\" />\n\n\t\t\t\t\t<smoothly-input-date\n\t\t\t\t\t\tname={\"date\"}\n\t\t\t\t\t\tcolor={this.options.color}\n\t\t\t\t\t\tlooks={this.options.looks}\n\t\t\t\t\t\treadonly={this.options.readonly}\n\t\t\t\t\t\tdisabled={this.options.disabled}\n\t\t\t\t\t\tinvalid={this.options.invalid}\n\t\t\t\t\t\terrorMessage={this.options.errorMessage}\n\t\t\t\t\t\tshowLabel={this.options.showLabel}\n\t\t\t\t\t\tplaceholder={this.options.placeholder}\n\t\t\t\t\t\talwaysShowGuide={this.options.alwaysShowGuide}>\n\t\t\t\t\t\t{this.options.showLabel && <span>Date</span>}\n\t\t\t\t\t\t<smoothly-input-clear slot=\"end\" />\n\t\t\t\t\t</smoothly-input-date>\n\t\t\t\t\t<div class=\"height\" />\n\n\t\t\t\t\t<smoothly-input-date-time\n\t\t\t\t\t\tname={\"dateTime\"}\n\t\t\t\t\t\tcolor={this.options.color}\n\t\t\t\t\t\tlooks={this.options.looks}\n\t\t\t\t\t\treadonly={this.options.readonly}\n\t\t\t\t\t\tdisabled={this.options.disabled}\n\t\t\t\t\t\tinvalid={this.options.invalid}\n\t\t\t\t\t\terrorMessage={this.options.errorMessage}\n\t\t\t\t\t\tshowLabel={this.options.showLabel}\n\t\t\t\t\t\t// TODO - placeholder\n\t\t\t\t\t>\n\t\t\t\t\t\tDateTime\n\t\t\t\t\t\t<smoothly-input-clear slot=\"end\" />\n\t\t\t\t\t</smoothly-input-date-time>\n\t\t\t\t\t<div class=\"height\" />\n\n\t\t\t\t\t<smoothly-input-date-range\n\t\t\t\t\t\tname={\"dateRange\"}\n\t\t\t\t\t\tcolor={this.options.color}\n\t\t\t\t\t\tlooks={this.options.looks}\n\t\t\t\t\t\treadonly={this.options.readonly}\n\t\t\t\t\t\tdisabled={this.options.disabled}\n\t\t\t\t\t\tinvalid={this.options.invalid}\n\t\t\t\t\t\terrorMessage={this.options.errorMessage}\n\t\t\t\t\t\tplaceholder={this.options.placeholder}\n\t\t\t\t\t\talwaysShowGuide={this.options.alwaysShowGuide}\n\t\t\t\t\t\tshowLabel={this.options.showLabel}>\n\t\t\t\t\t\t{this.options.showLabel && <span>Date Range</span>}\n\t\t\t\t\t\t<smoothly-input-clear slot=\"end\" />\n\t\t\t\t\t</smoothly-input-date-range>\n\t\t\t\t\t<div class=\"height\" />\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"]}
@@ -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
  }
@@ -96,18 +96,18 @@ export class SmoothlyInputRange {
96
96
  }
97
97
  render() {
98
98
  var _a, _b, _c;
99
- return (h(Host, { key: '8534047293e77d99f6c8a8e5d87659968516144c', class: {
99
+ return (h(Host, { key: 'db02e0bee4842a0dcce6ee6856758372481f2fb4', class: {
100
100
  "output-side-right": this.outputSide === "right",
101
101
  "show-label": this.outputSide === "left" && !!this.label,
102
- } }, h("slot", { key: '6b092b4a1e91bf15f714996ed01a801548a75655', name: "start" }), h("div", { key: 'ca7c4207e37dccd2fbc3b0edae03895a39ec96c8' }, h("label", { key: 'dc1b4d97e1256c4ee1b7f9daa91d25fe523ce418', htmlFor: this.name }, this.label), h("smoothly-input", { key: 'ec6dfec2d8a625897d3a9b6a7fafcd897be8ef1c', ref: e => (this.input = e), looks: undefined, color: this.color, name: this.name, showLabel: this.outputSide === "left" && !!this.label, type: this.type, onSmoothlyInputLoad: async (e) => (e.stopPropagation(),
102
+ } }, h("slot", { key: '5bcbb8d839800fef403fc14fc981182f6ed9ae30', name: "start" }), h("div", { key: '26827d93b47f12eef2709aea32588c1ec6786337' }, h("label", { key: '20c1213e52d592773db4c68b2bfcfb721d62d364', htmlFor: this.name }, this.label), h("smoothly-input", { key: '5e0bdd6c0467690f2d91cc33f24e7f3710f4b063', ref: e => (this.input = e), looks: undefined, color: this.color, name: this.name, showLabel: this.outputSide === "left" && !!this.label, type: this.type, onSmoothlyInputLoad: async (e) => (e.stopPropagation(),
103
103
  this.setValue(Input.Element.is(e.target) ? Number(await e.target.getValue()) : undefined)), onSmoothlyBlur: e => e.stopPropagation(), onSmoothlyInput: async (e) => {
104
104
  e.stopPropagation();
105
105
  this.setValue(Input.Element.is(e.target) ? Number(await e.target.getValue()) : undefined);
106
- }, value: this.type == "percent" ? this.value : (_a = this.value) === null || _a === void 0 ? void 0 : _a.toString(), placeholder: this.outputSide === "right" ? "-" : undefined, readonly: this.readonly, disabled: this.disabled }, this.label), h("smoothly-display", { key: '4e698362ae12d14f9bc217afe8e909b3b13a46bb', label: (this.type == "percent" ? this.min * 100 : this.min).toString() }), h("input", { key: 'a8f20e17b2910b97862b3490c1efd0dcb1aa89bf', name: this.name, part: "range", type: "range", min: this.min, max: this.max, step: (_b = this.step) !== null && _b !== void 0 ? _b : "any", disabled: this.readonly || this.disabled, onInput: event => {
106
+ }, value: this.type == "percent" ? this.value : (_a = this.value) === null || _a === void 0 ? void 0 : _a.toString(), placeholder: this.outputSide === "right" ? "-" : undefined, readonly: this.readonly, disabled: this.disabled }, this.label), h("smoothly-display", { key: 'a5502d4adaff32f798bc8e8b198d8f5258ab27e3', label: (this.type == "percent" ? this.min * 100 : this.min).toString() }), h("input", { key: 'e2afaea01a569f8cafcbfa09dab6ad6551e76f07', name: this.name, part: "range", type: "range", min: this.min, max: this.max, step: (_b = this.step) !== null && _b !== void 0 ? _b : "any", disabled: this.readonly || this.disabled, onInput: event => {
107
107
  event.stopPropagation();
108
108
  this.setValue(event.target.valueAsNumber);
109
109
  this.smoothlyUserInput.emit({ name: this.name, value: this.value });
110
- }, value: (_c = this.value) !== null && _c !== void 0 ? _c : this.min }), h("smoothly-display", { key: '46b26acc10c408177bf4b77af9c451ac5ec98360', label: (this.type == "percent" ? this.max * 100 : this.max).toString() })), h("slot", { key: '1ebbd0cc6dfbf6179f9dc50e1597944571e219c2', name: "end" })));
110
+ }, value: (_c = this.value) !== null && _c !== void 0 ? _c : this.min }), h("smoothly-display", { key: '92c309c4224fe86c16b22445f2ef1ba4168306e8', label: (this.type == "percent" ? this.max * 100 : this.max).toString() })), h("slot", { key: 'f9373a748b2d160781543f267373f12c43dfd46b', name: "end" })));
111
111
  }
112
112
  static get is() { return "smoothly-input-range"; }
113
113
  static get encapsulation() { return "scoped"; }
@@ -41,7 +41,7 @@ export class SmoothlyInputReset {
41
41
  }
42
42
  render() {
43
43
  var _a;
44
- return (h(Host, { key: '07fe387d6e31ee4b8733dd797ccbb6bc2a602450', title: this.tooltip }, h("smoothly-button", { key: 'db64da157afc163be326cc342d344881b0dd665c', 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), onClick: event => this.clickHandler(event) }, h("slot", { key: '6a6a1f5f60b8dee75d3adeba5a7dfd611a84d256' }), h("smoothly-icon", { key: '5d37c4a5f21cf620ab223979e1b0d0e589b97d73', flip: "x", name: "refresh-outline", size: "tiny" }))));
44
+ return (h(Host, { key: '8be31b0878733c9af02d47f85fb2ce160d66f064', title: this.tooltip }, h("smoothly-button", { key: 'ffacca4558cfe1b94c3399ecbb4384ca6730c208', 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), onClick: event => this.clickHandler(event) }, h("slot", { key: 'a0b3a925b4062d14975cb3479f4cee3f40de7af7' }), h("smoothly-icon", { key: '8ca0aa0f3a534558de7fcefafe9267a1992d9594', flip: "x", name: "refresh-outline", size: "tiny" }))));
45
45
  }
46
46
  static get is() { return "smoothly-input-reset"; }
47
47
  static get encapsulation() { return "scoped"; }