smoothly 1.2.1-alpha.34 → 1.2.1-alpha.36

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 (467) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/smoothly-app_107.cjs.entry.js +147 -146
  3. package/dist/cjs/smoothly-app_107.cjs.entry.js.map +1 -1
  4. package/dist/cjs/smoothly-input-checkbox-demo.cjs.entry.js +1 -1
  5. package/dist/cjs/smoothly-trigger-sink.cjs.entry.js +1 -1
  6. package/dist/cjs/smoothly-trigger-source.cjs.entry.js +1 -1
  7. package/dist/cjs/smoothly.cjs.js +1 -1
  8. package/dist/collection/components/button/Button.js +1 -1
  9. package/dist/collection/components/button/Button.js.map +1 -1
  10. package/dist/collection/components/dialog/demo/index.js +1 -1
  11. package/dist/collection/components/dialog/demo/index.js.map +1 -1
  12. package/dist/collection/components/display/demo/index.js +10 -10
  13. package/dist/collection/components/display/demo/json/index.js +1 -1
  14. package/dist/collection/components/display/index.js +3 -3
  15. package/dist/collection/components/display/json/index.js +1 -1
  16. package/dist/collection/components/display/json/object/index.js +2 -2
  17. package/dist/collection/components/display/json/object/key/index.js +1 -1
  18. package/dist/collection/components/display/json/primitive/index.js +1 -1
  19. package/dist/collection/components/filter/field/index.js +1 -1
  20. package/dist/collection/components/filter/index.js +3 -3
  21. package/dist/collection/components/filter/input/index.js +1 -1
  22. package/dist/collection/components/filter/select/index.js +1 -1
  23. package/dist/collection/components/filter/toggle/index.js +1 -1
  24. package/dist/collection/components/form/demo/all/index.js +2 -2
  25. package/dist/collection/components/form/demo/card/index.js +1 -1
  26. package/dist/collection/components/form/demo/controlled/index.js +1 -1
  27. package/dist/collection/components/form/demo/date/index.js +1 -1
  28. package/dist/collection/components/form/demo/date-range/index.js +1 -1
  29. package/dist/collection/components/form/demo/index.js +1 -1
  30. package/dist/collection/components/form/demo/login/index.js +1 -1
  31. package/dist/collection/components/form/demo/pet/index.js +2 -2
  32. package/dist/collection/components/form/demo/prices/index.js +1 -1
  33. package/dist/collection/components/form/demo/transparent/index.js +1 -1
  34. package/dist/collection/components/form/demo/typed/index.js +1 -1
  35. package/dist/collection/components/form/index.js +1 -1
  36. package/dist/collection/components/icon/demo/index.js +1 -1
  37. package/dist/collection/components/icon/index.js +1 -1
  38. package/dist/collection/components/input/checkbox/demo/index.js +1 -1
  39. package/dist/collection/components/input/checkbox/index.js +1 -1
  40. package/dist/collection/components/input/clear/index.js +1 -1
  41. package/dist/collection/components/input/color/demo/index.js +1 -1
  42. package/dist/collection/components/input/color/index.js +2 -2
  43. package/dist/collection/components/input/date/index.js +3 -3
  44. package/dist/collection/components/input/date/range/index.js +2 -2
  45. package/dist/collection/components/input/demo/index.js +5 -5
  46. package/dist/collection/components/input/demo/price/index.js +1 -1
  47. package/dist/collection/components/input/demo/standard/index.js +1 -1
  48. package/dist/collection/components/input/edit/index.js +1 -1
  49. package/dist/collection/components/input/file/index.js +1 -1
  50. package/dist/collection/components/input/index.js +2 -2
  51. package/dist/collection/components/input/month/index.js +2 -2
  52. package/dist/collection/components/input/radio/index.js +1 -1
  53. package/dist/collection/components/input/radio/item/index.js +1 -1
  54. package/dist/collection/components/input/range/demo/index.js +1 -1
  55. package/dist/collection/components/input/range/index.js +4 -4
  56. package/dist/collection/components/input/reset/index.js +1 -1
  57. package/dist/collection/components/input/select/index.js +3 -3
  58. package/dist/collection/components/input/submit/index.js +1 -1
  59. package/dist/collection/components/item/index.js +1 -1
  60. package/dist/collection/components/label/index.js +2 -2
  61. package/dist/collection/components/lazy/index.js +1 -1
  62. package/dist/collection/components/load-more/index.js +1 -1
  63. package/dist/collection/components/modal/index.js +20 -1
  64. package/dist/collection/components/modal/index.js.map +1 -1
  65. package/dist/collection/components/modal/style.css +6 -1
  66. package/dist/collection/components/next/demo/colspan/index.js +1 -1
  67. package/dist/collection/components/next/demo/filtered/index.js +5 -5
  68. package/dist/collection/components/next/demo/group/index.js +1 -1
  69. package/dist/collection/components/next/demo/index.js +1 -1
  70. package/dist/collection/components/next/demo/nested/index.js +1 -1
  71. package/dist/collection/components/next/demo/nested/inner/index.js +1 -1
  72. package/dist/collection/components/next/demo/simple/simple.js +1 -1
  73. package/dist/collection/components/next/table/body/index.js +1 -1
  74. package/dist/collection/components/next/table/cell/index.js +1 -1
  75. package/dist/collection/components/next/table/expandable/cell/index.js +1 -1
  76. package/dist/collection/components/next/table/expandable/row/index.js +1 -1
  77. package/dist/collection/components/next/table/foot/index.js +1 -1
  78. package/dist/collection/components/next/table/group/index.js +1 -1
  79. package/dist/collection/components/next/table/head/index.js +1 -1
  80. package/dist/collection/components/next/table/index.js +1 -1
  81. package/dist/collection/components/next/table/row/index.js +1 -1
  82. package/dist/collection/components/notification/index.js +1 -1
  83. package/dist/collection/components/notifier/index.js +2 -2
  84. package/dist/collection/components/spinner/index.js +2 -2
  85. package/dist/collection/components/submit/index.js +1 -1
  86. package/dist/collection/components/summary/index.js +1 -1
  87. package/dist/collection/components/table/cell/index.js +1 -1
  88. package/dist/collection/components/table/demo/filtered/index.js +5 -5
  89. package/dist/collection/components/table/demo/index.js +1 -1
  90. package/dist/collection/components/table/demo/testing/index.js +1 -1
  91. package/dist/collection/components/table/expandable/cell/index.js +1 -1
  92. package/dist/collection/components/table/expandable/row/index.js +1 -1
  93. package/dist/collection/components/table/footer/index.js +1 -1
  94. package/dist/collection/components/table/header/index.js +1 -1
  95. package/dist/collection/components/table/index.js +1 -1
  96. package/dist/collection/components/table/row/index.js +1 -1
  97. package/dist/collection/components/tabs/demo/index.js +1 -1
  98. package/dist/collection/components/tabs/index.js +1 -1
  99. package/dist/collection/components/tabs/tab/index.js +1 -1
  100. package/dist/collection/components/theme/color/index.js +1 -1
  101. package/dist/collection/components/theme/demo/index.js +1 -1
  102. package/dist/collection/components/theme/guide/index.js +8 -8
  103. package/dist/collection/components/theme/picker/index.js +2 -2
  104. package/dist/collection/components/toggle/index.js +1 -1
  105. package/dist/collection/components/toggle/index.js.map +1 -1
  106. package/dist/collection/components/toggle-switch/demo/index.js +1 -1
  107. package/dist/collection/components/toggle-switch/index.js +1 -1
  108. package/dist/collection/components/toggle-switch/index.js.map +1 -1
  109. package/dist/collection/components/trigger/index.js +1 -1
  110. package/dist/collection/components/trigger/sink/index.js +1 -1
  111. package/dist/collection/components/trigger/source/index.js +1 -1
  112. package/dist/components/{p-ee00a65d.js → p-040802e2.js} +2 -2
  113. package/dist/components/{p-ee00a65d.js.map → p-040802e2.js.map} +1 -1
  114. package/dist/components/{p-478e2d25.js → p-04e1a322.js} +2 -2
  115. package/dist/components/{p-478e2d25.js.map → p-04e1a322.js.map} +1 -1
  116. package/dist/components/{p-b6dda896.js → p-05eefe3c.js} +28 -28
  117. package/dist/components/{p-b6dda896.js.map → p-05eefe3c.js.map} +1 -1
  118. package/dist/components/{p-d2d048b2.js → p-07ed0ebd.js} +2 -2
  119. package/dist/components/{p-d2d048b2.js.map → p-07ed0ebd.js.map} +1 -1
  120. package/dist/components/{p-86d3b8ad.js → p-08159d78.js} +2 -2
  121. package/dist/components/{p-86d3b8ad.js.map → p-08159d78.js.map} +1 -1
  122. package/dist/components/{p-f47eb337.js → p-083143a9.js} +7 -7
  123. package/dist/components/{p-f47eb337.js.map → p-083143a9.js.map} +1 -1
  124. package/dist/components/p-0960a2bb.js +207 -0
  125. package/dist/components/{p-a9586d11.js.map → p-0960a2bb.js.map} +1 -1
  126. package/dist/components/{p-7ee3f874.js → p-09934532.js} +5 -5
  127. package/dist/components/{p-7ee3f874.js.map → p-09934532.js.map} +1 -1
  128. package/dist/components/{p-51d51732.js → p-0b16cab5.js} +5 -5
  129. package/dist/components/{p-51d51732.js.map → p-0b16cab5.js.map} +1 -1
  130. package/dist/components/{p-17e815cf.js → p-13f400dc.js} +15 -15
  131. package/dist/components/{p-17e815cf.js.map → p-13f400dc.js.map} +1 -1
  132. package/dist/components/{p-6dfe2edb.js → p-1c62f140.js} +5 -5
  133. package/dist/components/{p-6dfe2edb.js.map → p-1c62f140.js.map} +1 -1
  134. package/dist/components/{p-ef26341d.js → p-214c06fa.js} +9 -9
  135. package/dist/components/{p-ef26341d.js.map → p-214c06fa.js.map} +1 -1
  136. package/dist/components/{p-4713a48e.js → p-2738b430.js} +5 -5
  137. package/dist/components/{p-4713a48e.js.map → p-2738b430.js.map} +1 -1
  138. package/dist/components/{p-cbd573e1.js → p-2951a47f.js} +2 -2
  139. package/dist/components/{p-cbd573e1.js.map → p-2951a47f.js.map} +1 -1
  140. package/dist/components/{p-ff7e1321.js → p-29f6edb8.js} +16 -16
  141. package/dist/components/{p-ff7e1321.js.map → p-29f6edb8.js.map} +1 -1
  142. package/dist/components/{p-0ddc42e8.js → p-2b111073.js} +13 -13
  143. package/dist/components/{p-0ddc42e8.js.map → p-2b111073.js.map} +1 -1
  144. package/dist/components/{p-42c6e01c.js → p-2c7d79f3.js} +8 -8
  145. package/dist/components/{p-42c6e01c.js.map → p-2c7d79f3.js.map} +1 -1
  146. package/dist/components/{p-be6d380e.js → p-306f9cb3.js} +2 -2
  147. package/dist/components/{p-be6d380e.js.map → p-306f9cb3.js.map} +1 -1
  148. package/dist/components/{p-f07d4901.js → p-35ddfe42.js} +28 -28
  149. package/dist/components/{p-f07d4901.js.map → p-35ddfe42.js.map} +1 -1
  150. package/dist/components/{p-541e1b43.js → p-3c7a0927.js} +2 -2
  151. package/dist/components/{p-541e1b43.js.map → p-3c7a0927.js.map} +1 -1
  152. package/dist/components/p-3dad2f38.js +175 -0
  153. package/dist/components/{p-e6d6fd25.js.map → p-3dad2f38.js.map} +1 -1
  154. package/dist/components/{p-a6c3baf1.js → p-3e30f0e3.js} +2 -2
  155. package/dist/components/{p-a6c3baf1.js.map → p-3e30f0e3.js.map} +1 -1
  156. package/dist/components/{p-f5e15f8c.js → p-405b7f06.js} +3 -3
  157. package/dist/components/{p-f5e15f8c.js.map → p-405b7f06.js.map} +1 -1
  158. package/dist/components/{p-ce772794.js → p-41d6da47.js} +2 -2
  159. package/dist/components/p-41d6da47.js.map +1 -0
  160. package/dist/components/{p-4d3cdc01.js → p-4338ac8d.js} +8 -8
  161. package/dist/components/{p-4d3cdc01.js.map → p-4338ac8d.js.map} +1 -1
  162. package/dist/components/{p-9bf13adb.js → p-43b737be.js} +3 -3
  163. package/dist/components/{p-9bf13adb.js.map → p-43b737be.js.map} +1 -1
  164. package/dist/components/{p-96491f9d.js → p-44a51525.js} +43 -43
  165. package/dist/components/{p-96491f9d.js.map → p-44a51525.js.map} +1 -1
  166. package/dist/components/{p-d92ee30a.js → p-45ff39e4.js} +3 -3
  167. package/dist/components/p-45ff39e4.js.map +1 -0
  168. package/dist/components/{p-fc0a36d9.js → p-462b875b.js} +4 -4
  169. package/dist/components/{p-fc0a36d9.js.map → p-462b875b.js.map} +1 -1
  170. package/dist/components/{p-872161d7.js → p-466856c4.js} +6 -6
  171. package/dist/components/{p-872161d7.js.map → p-466856c4.js.map} +1 -1
  172. package/dist/components/{p-330e3342.js → p-4854855c.js} +3 -3
  173. package/dist/components/{p-330e3342.js.map → p-4854855c.js.map} +1 -1
  174. package/dist/components/{p-be430d3b.js → p-498755ab.js} +5 -5
  175. package/dist/components/{p-be430d3b.js.map → p-498755ab.js.map} +1 -1
  176. package/dist/components/{p-b4bb3e74.js → p-4c6fe645.js} +2 -2
  177. package/dist/components/{p-b4bb3e74.js.map → p-4c6fe645.js.map} +1 -1
  178. package/dist/components/{p-0cd742cf.js → p-4c8ef04f.js} +13 -13
  179. package/dist/components/{p-0cd742cf.js.map → p-4c8ef04f.js.map} +1 -1
  180. package/dist/components/{p-531d9885.js → p-4d026008.js} +14 -14
  181. package/dist/components/{p-531d9885.js.map → p-4d026008.js.map} +1 -1
  182. package/dist/components/{p-d41d7830.js → p-4d44c37a.js} +2 -2
  183. package/dist/components/{p-d41d7830.js.map → p-4d44c37a.js.map} +1 -1
  184. package/dist/components/{p-f9770ff7.js → p-4f80c811.js} +8 -8
  185. package/dist/components/{p-f9770ff7.js.map → p-4f80c811.js.map} +1 -1
  186. package/dist/components/{p-e07ca0d2.js → p-550a71dc.js} +2 -2
  187. package/dist/components/{p-e07ca0d2.js.map → p-550a71dc.js.map} +1 -1
  188. package/dist/components/{p-bdfcae2a.js → p-5aa92290.js} +3 -3
  189. package/dist/components/{p-bdfcae2a.js.map → p-5aa92290.js.map} +1 -1
  190. package/dist/components/{p-76514c29.js → p-5b16ff97.js} +5 -5
  191. package/dist/components/{p-76514c29.js.map → p-5b16ff97.js.map} +1 -1
  192. package/dist/components/{p-4c690de1.js → p-5ec298f3.js} +3 -3
  193. package/dist/components/{p-4c690de1.js.map → p-5ec298f3.js.map} +1 -1
  194. package/dist/components/{p-f949a509.js → p-62b70c3f.js} +4 -4
  195. package/dist/components/{p-f949a509.js.map → p-62b70c3f.js.map} +1 -1
  196. package/dist/components/{p-9702b067.js → p-631148b4.js} +5 -5
  197. package/dist/components/{p-9702b067.js.map → p-631148b4.js.map} +1 -1
  198. package/dist/components/{p-ed03e56a.js → p-63db398c.js} +4 -4
  199. package/dist/components/{p-ed03e56a.js.map → p-63db398c.js.map} +1 -1
  200. package/dist/components/{p-db853fcf.js → p-681bfb09.js} +2 -2
  201. package/dist/components/{p-db853fcf.js.map → p-681bfb09.js.map} +1 -1
  202. package/dist/components/{p-e5bd19b5.js → p-686ec006.js} +3 -3
  203. package/dist/components/{p-e5bd19b5.js.map → p-686ec006.js.map} +1 -1
  204. package/dist/components/{p-9064ac46.js → p-6f1d2edf.js} +2 -2
  205. package/dist/components/{p-9064ac46.js.map → p-6f1d2edf.js.map} +1 -1
  206. package/dist/components/{p-1513aabc.js → p-702f01d3.js} +10 -10
  207. package/dist/components/{p-1513aabc.js.map → p-702f01d3.js.map} +1 -1
  208. package/dist/components/{p-f8e8e77c.js → p-72b742f3.js} +2 -2
  209. package/dist/components/{p-f8e8e77c.js.map → p-72b742f3.js.map} +1 -1
  210. package/dist/components/p-7514961a.js +45 -0
  211. package/dist/components/{p-e1bdb1d6.js.map → p-7514961a.js.map} +1 -1
  212. package/dist/components/{p-133d18ac.js → p-79474a9a.js} +3 -3
  213. package/dist/components/{p-133d18ac.js.map → p-79474a9a.js.map} +1 -1
  214. package/dist/components/{p-8ca594b3.js → p-7f8fcc19.js} +6 -6
  215. package/dist/components/{p-8ca594b3.js.map → p-7f8fcc19.js.map} +1 -1
  216. package/dist/components/{p-482b7713.js → p-8120c99f.js} +4 -4
  217. package/dist/components/{p-482b7713.js.map → p-8120c99f.js.map} +1 -1
  218. package/dist/components/p-82b00748.js +123 -0
  219. package/dist/components/{p-6bce4d32.js.map → p-82b00748.js.map} +1 -1
  220. package/dist/components/{p-6000a56c.js → p-878c6ba2.js} +15 -15
  221. package/dist/components/{p-6000a56c.js.map → p-878c6ba2.js.map} +1 -1
  222. package/dist/components/{p-5268264b.js → p-8ea7eab2.js} +19 -19
  223. package/dist/components/{p-5268264b.js.map → p-8ea7eab2.js.map} +1 -1
  224. package/dist/components/{p-91b783bd.js → p-90e9aa1f.js} +2 -2
  225. package/dist/components/{p-91b783bd.js.map → p-90e9aa1f.js.map} +1 -1
  226. package/dist/components/{p-516e62ab.js → p-93e899e7.js} +10 -10
  227. package/dist/components/{p-516e62ab.js.map → p-93e899e7.js.map} +1 -1
  228. package/dist/components/{p-ac7fb911.js → p-95404634.js} +26 -26
  229. package/dist/components/{p-ac7fb911.js.map → p-95404634.js.map} +1 -1
  230. package/dist/components/{p-d09d31f6.js → p-969f9875.js} +2 -2
  231. package/dist/components/{p-d09d31f6.js.map → p-969f9875.js.map} +1 -1
  232. package/dist/components/{p-6ead1a42.js → p-96acfe2c.js} +5 -5
  233. package/dist/components/{p-6ead1a42.js.map → p-96acfe2c.js.map} +1 -1
  234. package/dist/components/{p-4ee37617.js → p-97686228.js} +2 -2
  235. package/dist/components/{p-4ee37617.js.map → p-97686228.js.map} +1 -1
  236. package/dist/components/p-980ec6be.js +176 -0
  237. package/dist/components/{p-d03c0d34.js.map → p-980ec6be.js.map} +1 -1
  238. package/dist/components/{p-06e94eb0.js → p-991bc1b1.js} +7 -7
  239. package/dist/components/{p-06e94eb0.js.map → p-991bc1b1.js.map} +1 -1
  240. package/dist/components/{p-d14c101c.js → p-99eb5153.js} +15 -15
  241. package/dist/components/{p-d14c101c.js.map → p-99eb5153.js.map} +1 -1
  242. package/dist/components/{p-95d3df21.js → p-9a91c77c.js} +15 -15
  243. package/dist/components/{p-95d3df21.js.map → p-9a91c77c.js.map} +1 -1
  244. package/dist/components/{p-0c9d0809.js → p-9b4a2430.js} +10 -10
  245. package/dist/components/{p-0c9d0809.js.map → p-9b4a2430.js.map} +1 -1
  246. package/dist/components/{p-362e1809.js → p-9e0dd271.js} +2 -2
  247. package/dist/components/{p-362e1809.js.map → p-9e0dd271.js.map} +1 -1
  248. package/dist/components/{p-f14627ff.js → p-a071eaed.js} +3 -3
  249. package/dist/components/{p-f14627ff.js.map → p-a071eaed.js.map} +1 -1
  250. package/dist/components/{p-4bd5519b.js → p-a38dbdc4.js} +14 -14
  251. package/dist/components/{p-4bd5519b.js.map → p-a38dbdc4.js.map} +1 -1
  252. package/dist/components/{p-61a23ca0.js → p-a509a3b5.js} +14 -14
  253. package/dist/components/{p-61a23ca0.js.map → p-a509a3b5.js.map} +1 -1
  254. package/dist/components/{p-d35746af.js → p-a560de93.js} +2 -2
  255. package/dist/components/{p-d35746af.js.map → p-a560de93.js.map} +1 -1
  256. package/dist/components/p-a5ada613.js +55 -0
  257. package/dist/components/p-a5ada613.js.map +1 -0
  258. package/dist/components/{p-29c0438b.js → p-ab304bad.js} +3 -3
  259. package/dist/components/{p-29c0438b.js.map → p-ab304bad.js.map} +1 -1
  260. package/dist/components/{p-cc15c25a.js → p-ab4f6f94.js} +2 -2
  261. package/dist/components/{p-cc15c25a.js.map → p-ab4f6f94.js.map} +1 -1
  262. package/dist/components/p-acb7d70d.js +241 -0
  263. package/dist/components/{p-be89672b.js.map → p-acb7d70d.js.map} +1 -1
  264. package/dist/components/{p-7f313329.js → p-b1db8b28.js} +4 -4
  265. package/dist/components/{p-7f313329.js.map → p-b1db8b28.js.map} +1 -1
  266. package/dist/components/{p-4380feb9.js → p-b20e3206.js} +7 -7
  267. package/dist/components/{p-4380feb9.js.map → p-b20e3206.js.map} +1 -1
  268. package/dist/components/{p-a1f3fde9.js → p-bb959ca6.js} +16 -16
  269. package/dist/components/{p-a1f3fde9.js.map → p-bb959ca6.js.map} +1 -1
  270. package/dist/components/{p-9658ae2c.js → p-bfd34443.js} +2 -2
  271. package/dist/components/{p-9658ae2c.js.map → p-bfd34443.js.map} +1 -1
  272. package/dist/components/{p-b5bca419.js → p-c63db1c1.js} +2 -2
  273. package/dist/components/{p-b5bca419.js.map → p-c63db1c1.js.map} +1 -1
  274. package/dist/components/{p-0cfd31a4.js → p-c77944e7.js} +3 -3
  275. package/dist/components/{p-0cfd31a4.js.map → p-c77944e7.js.map} +1 -1
  276. package/dist/components/{p-061353e6.js → p-ca69a0ef.js} +3 -3
  277. package/dist/components/{p-061353e6.js.map → p-ca69a0ef.js.map} +1 -1
  278. package/dist/components/{p-300a9bbc.js → p-ca7d6987.js} +3 -3
  279. package/dist/components/{p-300a9bbc.js.map → p-ca7d6987.js.map} +1 -1
  280. package/dist/components/{p-d634bd29.js → p-cc863bad.js} +4 -4
  281. package/dist/components/{p-d634bd29.js.map → p-cc863bad.js.map} +1 -1
  282. package/dist/components/p-ccb21ce6.js +82 -0
  283. package/dist/components/p-ccb21ce6.js.map +1 -0
  284. package/dist/components/{p-0deda363.js → p-cd07fedf.js} +3 -3
  285. package/dist/components/{p-0deda363.js.map → p-cd07fedf.js.map} +1 -1
  286. package/dist/components/{p-2e8d8347.js → p-ce0f05d1.js} +14 -14
  287. package/dist/components/{p-2e8d8347.js.map → p-ce0f05d1.js.map} +1 -1
  288. package/dist/components/{p-7301def9.js → p-d1daa4a3.js} +12 -12
  289. package/dist/components/{p-7301def9.js.map → p-d1daa4a3.js.map} +1 -1
  290. package/dist/components/{p-8f3652f7.js → p-d2d74dcd.js} +7 -7
  291. package/dist/components/{p-8f3652f7.js.map → p-d2d74dcd.js.map} +1 -1
  292. package/dist/components/{p-ceaca6de.js → p-d30b90e7.js} +4 -4
  293. package/dist/components/{p-ceaca6de.js.map → p-d30b90e7.js.map} +1 -1
  294. package/dist/components/{p-c9c44bdd.js → p-d84d93f2.js} +6 -6
  295. package/dist/components/{p-c9c44bdd.js.map → p-d84d93f2.js.map} +1 -1
  296. package/dist/components/{p-6c22a95a.js → p-e29ce583.js} +35 -35
  297. package/dist/components/{p-6c22a95a.js.map → p-e29ce583.js.map} +1 -1
  298. package/dist/components/{p-afffe85e.js → p-e3d11a1b.js} +15 -15
  299. package/dist/components/{p-afffe85e.js.map → p-e3d11a1b.js.map} +1 -1
  300. package/dist/components/{p-60c0addf.js → p-e59eebf8.js} +12 -12
  301. package/dist/components/{p-60c0addf.js.map → p-e59eebf8.js.map} +1 -1
  302. package/dist/components/{p-125b5bb2.js → p-e73af3d4.js} +31 -31
  303. package/dist/components/{p-125b5bb2.js.map → p-e73af3d4.js.map} +1 -1
  304. package/dist/components/{p-fcc5ab02.js → p-e8d7c6da.js} +2 -2
  305. package/dist/components/{p-fcc5ab02.js.map → p-e8d7c6da.js.map} +1 -1
  306. package/dist/components/{p-5bbf4b7e.js → p-edcdcc51.js} +2 -2
  307. package/dist/components/{p-5bbf4b7e.js.map → p-edcdcc51.js.map} +1 -1
  308. package/dist/components/{p-441249ea.js → p-edf035be.js} +6 -6
  309. package/dist/components/{p-441249ea.js.map → p-edf035be.js.map} +1 -1
  310. package/dist/components/{p-bfb63e71.js → p-f2fc107c.js} +11 -11
  311. package/dist/components/{p-bfb63e71.js.map → p-f2fc107c.js.map} +1 -1
  312. package/dist/components/{p-2020cb82.js → p-f46dd8e4.js} +2 -2
  313. package/dist/components/{p-2020cb82.js.map → p-f46dd8e4.js.map} +1 -1
  314. package/dist/components/{p-53671a89.js → p-f4da0b35.js} +2 -2
  315. package/dist/components/p-f4da0b35.js.map +1 -0
  316. package/dist/components/{p-53ef7cd2.js → p-f6149a35.js} +4 -4
  317. package/dist/components/{p-53ef7cd2.js.map → p-f6149a35.js.map} +1 -1
  318. package/dist/components/{p-0168449e.js → p-f64b103b.js} +2 -2
  319. package/dist/components/{p-0168449e.js.map → p-f64b103b.js.map} +1 -1
  320. package/dist/components/{p-7c5243b2.js → p-f770567b.js} +5 -5
  321. package/dist/components/{p-7c5243b2.js.map → p-f770567b.js.map} +1 -1
  322. package/dist/components/smoothly-app-demo.js +104 -104
  323. package/dist/components/smoothly-app-room.js +1 -1
  324. package/dist/components/smoothly-app.js +1 -1
  325. package/dist/components/smoothly-back-to-top.js +1 -1
  326. package/dist/components/smoothly-burger.js +1 -1
  327. package/dist/components/smoothly-button-confirm.js +1 -1
  328. package/dist/components/smoothly-button-demo.js +1 -1
  329. package/dist/components/smoothly-button.js +1 -1
  330. package/dist/components/smoothly-calendar.js +1 -1
  331. package/dist/components/smoothly-checkbox.js +1 -1
  332. package/dist/components/smoothly-dialog-demo.js +1 -1
  333. package/dist/components/smoothly-dialog.js +1 -1
  334. package/dist/components/smoothly-display-demo-json.js +1 -1
  335. package/dist/components/smoothly-display-demo.js +1 -1
  336. package/dist/components/smoothly-display-json-object.js +1 -1
  337. package/dist/components/smoothly-display-json-primitive.js +1 -1
  338. package/dist/components/smoothly-display-json-record-key.js +1 -1
  339. package/dist/components/smoothly-display-json.js +1 -1
  340. package/dist/components/smoothly-display.js +1 -1
  341. package/dist/components/smoothly-filter-field.js +1 -1
  342. package/dist/components/smoothly-filter-input.js +1 -1
  343. package/dist/components/smoothly-filter-select.js +1 -1
  344. package/dist/components/smoothly-filter-toggle.js +1 -1
  345. package/dist/components/smoothly-filter.js +1 -1
  346. package/dist/components/smoothly-form-demo-all.js +1 -1
  347. package/dist/components/smoothly-form-demo-card.js +1 -1
  348. package/dist/components/smoothly-form-demo-controlled.js +1 -1
  349. package/dist/components/smoothly-form-demo-date-range.js +1 -1
  350. package/dist/components/smoothly-form-demo-date.js +1 -1
  351. package/dist/components/smoothly-form-demo-login.js +1 -1
  352. package/dist/components/smoothly-form-demo-pet.js +1 -1
  353. package/dist/components/smoothly-form-demo-prices.js +1 -1
  354. package/dist/components/smoothly-form-demo-transparent.js +1 -1
  355. package/dist/components/smoothly-form-demo-typed.js +1 -1
  356. package/dist/components/smoothly-form-demo.js +1 -1
  357. package/dist/components/smoothly-form.js +1 -1
  358. package/dist/components/smoothly-icon-demo.js +1 -1
  359. package/dist/components/smoothly-icon.js +1 -1
  360. package/dist/components/smoothly-input-checkbox-demo.js +29 -29
  361. package/dist/components/smoothly-input-checkbox.js +1 -1
  362. package/dist/components/smoothly-input-clear.js +1 -1
  363. package/dist/components/smoothly-input-color-demo.js +1 -1
  364. package/dist/components/smoothly-input-color.js +1 -1
  365. package/dist/components/smoothly-input-date-range.js +1 -1
  366. package/dist/components/smoothly-input-date.js +1 -1
  367. package/dist/components/smoothly-input-demo-standard.js +1 -1
  368. package/dist/components/smoothly-input-demo.js +1 -1
  369. package/dist/components/smoothly-input-edit.js +1 -1
  370. package/dist/components/smoothly-input-file.js +1 -1
  371. package/dist/components/smoothly-input-month.js +1 -1
  372. package/dist/components/smoothly-input-price-demo.js +1 -1
  373. package/dist/components/smoothly-input-radio-item.js +1 -1
  374. package/dist/components/smoothly-input-radio.js +1 -1
  375. package/dist/components/smoothly-input-range-demo.js +1 -1
  376. package/dist/components/smoothly-input-range.js +1 -1
  377. package/dist/components/smoothly-input-reset.js +1 -1
  378. package/dist/components/smoothly-input-select.js +1 -1
  379. package/dist/components/smoothly-input-submit.js +1 -1
  380. package/dist/components/smoothly-input.js +1 -1
  381. package/dist/components/smoothly-item.js +1 -1
  382. package/dist/components/smoothly-label.js +1 -1
  383. package/dist/components/smoothly-lazy.js +1 -1
  384. package/dist/components/smoothly-load-more.js +1 -1
  385. package/dist/components/smoothly-modal.js +1 -1
  386. package/dist/components/smoothly-next-demo-colspan.js +1 -1
  387. package/dist/components/smoothly-next-demo-group.js +1 -1
  388. package/dist/components/smoothly-next-demo-nested-inner.js +1 -1
  389. package/dist/components/smoothly-next-demo-nested.js +1 -1
  390. package/dist/components/smoothly-next-demo-simple.js +1 -1
  391. package/dist/components/smoothly-next-demo.js +1 -1
  392. package/dist/components/smoothly-next-table-body.js +1 -1
  393. package/dist/components/smoothly-next-table-cell.js +1 -1
  394. package/dist/components/smoothly-next-table-demo-filtered.js +1 -1
  395. package/dist/components/smoothly-next-table-expandable-cell.js +1 -1
  396. package/dist/components/smoothly-next-table-expandable-row.js +1 -1
  397. package/dist/components/smoothly-next-table-foot.js +1 -1
  398. package/dist/components/smoothly-next-table-head.js +1 -1
  399. package/dist/components/smoothly-next-table-row-group.js +1 -1
  400. package/dist/components/smoothly-next-table-row.js +1 -1
  401. package/dist/components/smoothly-next-table.js +1 -1
  402. package/dist/components/smoothly-notification.js +1 -1
  403. package/dist/components/smoothly-notifier.js +1 -1
  404. package/dist/components/smoothly-spinner.js +1 -1
  405. package/dist/components/smoothly-submit.js +1 -1
  406. package/dist/components/smoothly-summary.js +1 -1
  407. package/dist/components/smoothly-tab.js +1 -1
  408. package/dist/components/smoothly-table-cell.js +1 -1
  409. package/dist/components/smoothly-table-demo-filtered.js +1 -1
  410. package/dist/components/smoothly-table-demo.js +1 -1
  411. package/dist/components/smoothly-table-expandable-cell.js +1 -1
  412. package/dist/components/smoothly-table-expandable-row.js +1 -1
  413. package/dist/components/smoothly-table-footer.js +1 -1
  414. package/dist/components/smoothly-table-header.js +1 -1
  415. package/dist/components/smoothly-table-row.js +1 -1
  416. package/dist/components/smoothly-table-testing.js +1 -1
  417. package/dist/components/smoothly-table.js +1 -1
  418. package/dist/components/smoothly-tabs-demo.js +1 -1
  419. package/dist/components/smoothly-tabs.js +1 -1
  420. package/dist/components/smoothly-theme-color.js +1 -1
  421. package/dist/components/smoothly-theme-colors.js +1 -1
  422. package/dist/components/smoothly-theme-demo.js +1 -1
  423. package/dist/components/smoothly-theme-guide.js +1 -1
  424. package/dist/components/smoothly-theme-picker.js +1 -1
  425. package/dist/components/smoothly-toggle-switch-demo.js +1 -1
  426. package/dist/components/smoothly-toggle-switch.js +1 -1
  427. package/dist/components/smoothly-toggle.js +1 -1
  428. package/dist/components/smoothly-trigger-sink.js +1 -1
  429. package/dist/components/smoothly-trigger-source.js +1 -1
  430. package/dist/components/smoothly-trigger.js +1 -1
  431. package/dist/esm/loader.js +1 -1
  432. package/dist/esm/smoothly-app_107.entry.js +147 -146
  433. package/dist/esm/smoothly-app_107.entry.js.map +1 -1
  434. package/dist/esm/smoothly-input-checkbox-demo.entry.js +1 -1
  435. package/dist/esm/smoothly-trigger-sink.entry.js +1 -1
  436. package/dist/esm/smoothly-trigger-source.entry.js +1 -1
  437. package/dist/esm/smoothly.js +1 -1
  438. package/dist/smoothly/p-191595d1.entry.js +2 -0
  439. package/dist/smoothly/p-191595d1.entry.js.map +1 -0
  440. package/dist/smoothly/p-22f843be.entry.js +2 -0
  441. package/dist/smoothly/p-651dcac2.entry.js +2 -0
  442. package/dist/smoothly/{p-fcba77c0.entry.js → p-9f631b35.entry.js} +2 -2
  443. package/dist/smoothly/smoothly.esm.js +1 -1
  444. package/dist/smoothly/smoothly.esm.js.map +1 -1
  445. package/dist/types/components/modal/index.d.ts +1 -0
  446. package/dist/types/components.d.ts +2 -0
  447. package/package.json +1 -1
  448. package/dist/components/p-37d74e11.js +0 -76
  449. package/dist/components/p-37d74e11.js.map +0 -1
  450. package/dist/components/p-53671a89.js.map +0 -1
  451. package/dist/components/p-6bce4d32.js +0 -123
  452. package/dist/components/p-a9586d11.js +0 -207
  453. package/dist/components/p-be89672b.js +0 -241
  454. package/dist/components/p-c99a7044.js +0 -53
  455. package/dist/components/p-c99a7044.js.map +0 -1
  456. package/dist/components/p-ce772794.js.map +0 -1
  457. package/dist/components/p-d03c0d34.js +0 -176
  458. package/dist/components/p-d92ee30a.js.map +0 -1
  459. package/dist/components/p-e1bdb1d6.js +0 -45
  460. package/dist/components/p-e6d6fd25.js +0 -175
  461. package/dist/smoothly/p-0f87a1f6.entry.js +0 -2
  462. package/dist/smoothly/p-32aff682.entry.js +0 -2
  463. package/dist/smoothly/p-32aff682.entry.js.map +0 -1
  464. package/dist/smoothly/p-44d11e9d.entry.js +0 -2
  465. /package/dist/smoothly/{p-0f87a1f6.entry.js.map → p-22f843be.entry.js.map} +0 -0
  466. /package/dist/smoothly/{p-44d11e9d.entry.js.map → p-651dcac2.entry.js.map} +0 -0
  467. /package/dist/smoothly/{p-fcba77c0.entry.js.map → p-9f631b35.entry.js.map} +0 -0
@@ -0,0 +1,241 @@
1
+ import { p as proxyCustomElement, H, h, d as Host } from './p-f765921a.js';
2
+ import { D as Date } from './p-390767c7.js';
3
+ import { d as defineCustomElement$w } from './p-3c7a0927.js';
4
+ import { d as defineCustomElement$v } from './p-306f9cb3.js';
5
+ import { d as defineCustomElement$u } from './p-686ec006.js';
6
+ import { d as defineCustomElement$t } from './p-5b16ff97.js';
7
+ import { d as defineCustomElement$s } from './p-4f80c811.js';
8
+ import { d as defineCustomElement$r } from './p-f770567b.js';
9
+ import { d as defineCustomElement$q } from './p-96acfe2c.js';
10
+ import { d as defineCustomElement$p } from './p-f46dd8e4.js';
11
+ import { d as defineCustomElement$o } from './p-4c6fe645.js';
12
+ import { d as defineCustomElement$n } from './p-ca69a0ef.js';
13
+ import { d as defineCustomElement$m } from './p-c63db1c1.js';
14
+ import { d as defineCustomElement$l } from './p-0b16cab5.js';
15
+ import { d as defineCustomElement$k } from './p-b1db8b28.js';
16
+ import { d as defineCustomElement$j } from './p-09934532.js';
17
+ import { d as defineCustomElement$i } from './p-2b111073.js';
18
+ import { d as defineCustomElement$h } from './p-e59eebf8.js';
19
+ import { d as defineCustomElement$g } from './p-f2fc107c.js';
20
+ import { d as defineCustomElement$f } from './p-9b4a2430.js';
21
+ import { d as defineCustomElement$e } from './p-95404634.js';
22
+ import { d as defineCustomElement$d } from './p-498755ab.js';
23
+ import { d as defineCustomElement$c } from './p-b20e3206.js';
24
+ import { d as defineCustomElement$b } from './p-d84d93f2.js';
25
+ import { d as defineCustomElement$a } from './p-79474a9a.js';
26
+ import { d as defineCustomElement$9 } from './p-a071eaed.js';
27
+ import { d as defineCustomElement$8 } from './p-4c8ef04f.js';
28
+ import { d as defineCustomElement$7 } from './p-d1daa4a3.js';
29
+ import { d as defineCustomElement$6 } from './p-2738b430.js';
30
+ import { d as defineCustomElement$5 } from './p-083143a9.js';
31
+ import { d as defineCustomElement$4 } from './p-631148b4.js';
32
+ import { d as defineCustomElement$3 } from './p-edcdcc51.js';
33
+ import { d as defineCustomElement$2 } from './p-c77944e7.js';
34
+ import { d as defineCustomElement$1 } from './p-45ff39e4.js';
35
+
36
+ const styleCss = ".sc-smoothly-input-demo-h{display:flex;flex-direction:column;margin-top:2em;margin-bottom:10rem}smoothly-input-demo-standard.sc-smoothly-input-demo{margin-bottom:2rem}div.inputs.sc-smoothly-input-demo{margin:auto;width:50%}div.inputs.sc-smoothly-input-demo>h2.sc-smoothly-input-demo:not(:first-child){padding-top:3em;margin-top:3em;border-top:1px solid black}.checkbox-group.sc-smoothly-input-demo{display:flex;gap:1.5em;align-items:center;background-color:rgb(var(--smoothly-input-background))}.select-div.sc-smoothly-input-demo{display:flex;justify-content:space-between;gap:1em;flex-wrap:wrap}.select-div.sc-smoothly-input-demo>smoothly-color.sc-smoothly-input-demo>*.sc-smoothly-input-demo,.select-div.sc-smoothly-input-demo>*.sc-smoothly-input-demo{flex-basis:49%}";
37
+ const SmoothlyInputDemoStyle0 = styleCss;
38
+
39
+ const SmoothlyInputDemo = proxyCustomElement(class SmoothlyInputDemo extends H {
40
+ constructor() {
41
+ super();
42
+ this.__registerHost();
43
+ this.duration = { hours: 8 };
44
+ this.alphanumeric = "!@##";
45
+ }
46
+ render() {
47
+ return (h(Host, { key: '4d22468a080d1988e357ceb32b5df876a4c6db20' }, h("smoothly-input-demo-standard", { key: 'fc7fb5262f36fd7f953751fcca8b5056f08eb858' }), h("div", { key: 'e7b88f15dc9b8099bb60a9e336214e3b7b9f57db', class: "inputs" }, h("h2", { key: '38b73daf079236b55df1c6eb8a9e62039d636cd4' }, "Calendar"), h("smoothly-input-date", { key: 'd0515c4d2d38fb373c9df8ce388df33667b40846', name: "some-date" }, "Calendar"), h("h2", { key: 'c2cc92d5fa683da3ac36918b7089e4d562bc3236' }, "Date Range"), h("smoothly-input-date-range", { key: '01c970d18df033178939d14a7d690fc6eef35570', name: "testing", start: Date.now(), end: Date.nextMonth(Date.now()), min: "2021-10-01", max: "2025-01-31" }), h("smoothly-input-date-range", { key: '7470398fa98ccb00d749bcbc5f8370234f1d5ab7', name: "testing", start: Date.now(), end: Date.nextMonth(Date.now()), min: "2021-10-10", max: "2024-12-30" }, h("smoothly-input-reset", { key: 'ec7d4687d0e66aac5110a61f4db380f9aa677f30', slot: "end", size: "icon" })), h("smoothly-input-date-range", { key: '0c3d14c0cb2773bd20a8f894523a9f00b3da7d3d', looks: "grid", start: Date.now(), end: Date.nextMonth(Date.now()), min: "2021-10-10", max: "2025-12-30", showLabel: false, style: {
48
+ "--smoothly-input-border-radius": "0.5rem",
49
+ } }, h("smoothly-input-clear", { key: '03ea6127b0abe9f8a99e65c3e9c0aee7f57b35d9', slot: "end", size: "icon" })), h("h2", { key: 'd9f827401eac78533a5797f184971b0d9e45a1e7' }, "Date"), h("smoothly-input-date", { key: '8afba635563e6833d94a0085b1623aeeb9e1cf00' }, "Date"), h("smoothly-input-date", { key: '43084ccfa8d45e94e0b54d9bb18f9b3540c09a62', showLabel: false, value: "2021-10-28", max: "2021-12-30", min: "2021-10-10" }, "Date"), h("smoothly-input-date", { key: '884a35070dd150e600b40deeb611af0363f2b07a', value: "2021-10-28" }, "Date", h("smoothly-input-reset", { key: '09171749b51c63cc8b6c319114c0bd7d570af033', slot: "end", size: "icon" })), h("smoothly-input-date", { key: 'ee0f606241ecec42b70e4f92db3100acf8b1730d', value: "2021-10-28" }, "Date", h("smoothly-input-clear", { key: '976e9376f119bc3e8196ef32177ca898362c0c99', slot: "end", size: "icon" })), h("h2", { key: '055cd19bcf92b14d77818a25b07a737da282c85f' }, "Select"), h("div", { key: '7856e723310021883018078276ad28d38a76e900', class: "select-div" }, h("smoothly-input-select", { key: 'b147b8137ae583d9c3df8be484fcc5fa3034034a', name: "select-dessert", looks: "border" }, h("label", { key: 'cba34105b7c98d4956e4a9ec7931ae6bed50d0e7', slot: "label" }, "Select with clear button"), h("smoothly-item", { key: 'd085fb3d7667b8baf785660868e57e81603053b4', value: "1" }, "Ice cream"), h("smoothly-item", { key: 'cc9a94fcdd9270e89572a72f258ca1c70640c3a7', value: "2" }, "Sponge cake"), h("smoothly-item", { key: '624c9e9ef3f76ceddb3eb54348739304fc537297', value: "3" }, "Cookie"), h("smoothly-item", { key: 'bfc710e98f216544dc76a68e602f0c16be88a599', value: "4" }, "Croissant"), h("smoothly-item", { key: 'ffc432e8854cc83883e0169cadafd19aff635cb9', value: "5" }, "Chocolate fondue"), h("smoothly-input-clear", { key: '2c6ee00939da166c9ce3cb4c72f204e9c88a882a', size: "icon", slot: "end" })), h("smoothly-input-select", { key: '5592d116149f40ab8fc234276aef37d9e38e42a8', multiple: true, name: "select-dessert-multiple", looks: "border" }, h("label", { key: '784bf8122cdcc84641ab9424f7092ad9c6ee5eba', slot: "label" }, "Select multiple with reset button"), h("smoothly-item", { key: '4dc7f7b95a38860bad0888999f19ad38f66f414a', value: "ice cream" }, "Ice cream"), h("smoothly-item", { key: 'ad2b235845e8b1490fb2fb9b097e637724663fb4', value: "sponge cake" }, "Sponge cake"), h("smoothly-item", { key: 'aaf053c467477856fea93b48b61c899ad26b4a02', selected: true, value: "cookie" }, "Cookie"), h("smoothly-item", { key: '75977992ad2bb03d68b43bd72f387917391a4201', value: "croissant" }, "Croissant"), h("smoothly-item", { key: '26e4d2b1796807ebe3d68a39893096346669bd62', selected: true, value: "chocolate fondue" }, "Chocolate fondue"), h("smoothly-input-reset", { key: 'f3417f59ced46f59ac7262af4a8a065367732542', size: "icon", slot: "end" })), h("smoothly-input-select", { key: '906591c99263c695520f6f0c09d0d291e0a19bd4', name: "spirit-animals", looks: "border", mutable: true }, h("label", { key: '1f26bb3c7429fea49657d60502e5a75439cafea9', slot: "label" }, "Select or add new options"), h("smoothly-item", { key: '21698bc033c9cfa8059344213b1e714b949f2bc7', value: "manatee" }, "Manatee"), h("smoothly-item", { key: '2728237616137cacc93a23ffac8427ef5093dd06', selected: true, value: "cthulu" }, "Cthulu")), h("smoothly-input-select", { key: '512228c9a18f1b9f7acbad35db98eaadcc5a394e', name: "select-icon", clearable: false, showSelected: false }, h("smoothly-item", { key: 'b0305ab339117b64d8804b0e8c911b35c73daeb2', value: "folder", selected: true }, h("smoothly-icon", { key: '778c15a8e46b9f5970b64a26d11f376205294075', size: "small", name: "folder-outline" })), h("smoothly-item", { key: 'fec4a02325b69e05095690e9f058a011a056a643', value: "camera" }, h("smoothly-icon", { key: '306687342fe6eae48619bb38721dc9cbef1c3cf5', size: "small", name: "camera-outline" }))), h("smoothly-input-select", { key: '36b1d351540b475aa68d78e265cf0f2d7a190990', ordered: true, menuHeight: "7.5items", placeholder: "Select...", name: "select-month" }, h("label", { key: 'd9f0f8fc58fa3645267bb2c3299e28405e10f42e', slot: "label" }, "Alphabet ordered select"), Array.from({ length: 26 })
50
+ .map((_, i) => String.fromCharCode(i + 65))
51
+ .map(char => (h("smoothly-item", { value: char, selected: char == "H" }, char)))), h("smoothly-input-select", { key: '5020ba6265bc99779adc5650e96e9dabfc10e075', multiple: true, menuHeight: "7.5items", placeholder: "Select...", name: "select-month" }, h("label", { key: '24554f38718cf6d7004d259a3ba10ad4fb9f80d4', slot: "label" }, "Month multiple select"), h("smoothly-item", { key: 'b4963b60050f9efae657feac6e5b571705762ec8', value: "1" }, "January"), h("smoothly-item", { key: 'dd6e1ff7e14942c7b4ca1a64f338c9cf9c4e2fe1', value: "2" }, "February"), h("smoothly-item", { key: '900f59510c01bea81d6781422b168a94c4613982', value: "3" }, "March"), h("smoothly-item", { key: '1f2ff24ab65b57f691e84315294432ad50770ce4', value: "4" }, "April"), h("smoothly-item", { key: '5cb75032b63fc55fc67097658e4f69ad4136107b', value: "5" }, "May"), h("smoothly-item", { key: '9021507682e64aab64ab5de05fa4fce121111525', value: "6" }, "June"), h("smoothly-item", { key: 'a75a032f711d2ea85e201257dc31477687b71e83', value: "7" }, "July"), h("smoothly-item", { key: '3f1866f398b3dc53b922e6e5e04b9462ee915fd1', value: "8" }, "August"), h("smoothly-item", { key: 'a64b2ffece74644ca9a8f9250eb7a4d1d0b706b1', value: "9" }, "September"), h("smoothly-item", { key: '90c89adff7c4ff81e25420bea5f513b0f5f6af3f', value: "10" }, "October"), h("smoothly-item", { key: '7f62a1baccaa22c0d922b6efd66ac7cd3fecca62', value: "11" }, "November"), h("smoothly-item", { key: '653b0c116b9a5b27f1192ebe087acb130fe5f50b', value: "12" }, "December"))), h("h2", { key: 'f99e5afaa18b4c2369abf1d9a619b34ee805fc8d' }, "Duration"), h("smoothly-input", { key: '9e93a731fc53e4a69e5cd9a5c07041160e43516f', name: "duration", type: "duration", placeholder: "hh:mm", value: this.duration, onSmoothlyInput: e => {
52
+ const duration = e.detail.duration;
53
+ this.duration = duration;
54
+ } }, "Duration"), h("smoothly-input", { key: '8ef85b5978a8a326278a36a592a926f6eaab6281', name: "duration", type: "duration", value: this.duration, placeholder: "-hh:mm", onSmoothlyInput: e => {
55
+ const duration = e.detail.duration;
56
+ this.duration = duration;
57
+ } }, "Duration"), h("h2", { key: '8eb690e348aea96c400404e7992472edac18795a' }, "Invalid text with warning icon and tooltip"), h("smoothly-input", { key: '08b42135cc435ddbafb2131d9772accb42c5f4f1', 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: '87aad539e0890e9e5eed23d95358de520aff3317' }, "Identifiers"), h("smoothly-input", { key: '3a9e58436f5ab310fa00bea3aca46ecab5054025', type: "identifier-code" }, "Code"), h("smoothly-input", { key: '6ac9a05ecc748e2dbfbc59b4991d484447ef1eee', type: "identifier-attribute" }, "Attribute"), h("smoothly-input", { key: 'fbf58d1f86bf1b59a54dbae539d4b4ec7fcb5319', type: "identifier-snake" }, "Snake"), h("smoothly-input", { key: '284bd28fff1e622993e6c83065d08821676238e3', type: "identifier-pascal" }, "Pascal"), h("smoothly-input", { key: '198bb3b455345ef55300defa7411d96af5156985', type: "identifier-camel" }, "Camel"), h("h2", { key: '57326ca3da86d81501ba335b5b0e60ff8b322ef3' }, "Input Alternatives"), h("smoothly-input", { key: 'de23357ca03d0071ccfa4162bb460352c16c5960', type: "text", name: "name.last", onSmoothlyChange: e => console.log("smoothly change event") }, h("smoothly-icon", { key: 'ed79db703b001d8f00599e2798c9189aef87be86', name: "checkmark-circle", slot: "start" }), "First Name"), h("smoothly-input", { key: 'cebfd6b49ddd4dd79e0bc8126a77f1247ae4c88e', type: "text", name: "name.first", onSmoothlyChange: e => console.log("smoothly change event") }, "Last Name", h("smoothly-icon", { key: 'c5eeb09907182ee27f89b6f04ac085a63614fab2', name: "checkmark-circle", slot: "end" })), h("smoothly-input", { key: 'ab2ae9b2cea41d42bb7f07a22118ffcb6a1a0672', type: "text", name: "name.first", placeholder: "Smith", onSmoothlyChange: e => console.log("smoothly change event") }, "Last Name", h("smoothly-icon", { key: '6e4c13216c7b0e363f47ecccea6bd9f63a6340cc', name: "checkmark-circle", slot: "end" })), h("smoothly-input", { key: '3d284b7eb0bef9446f0c72a4a45fce496db0f398', placeholder: "test" }), h("smoothly-input-submit", { key: '1cc1c632686e13887b944ff8404c911ee1097062', slot: "submit", fill: "solid", onSubmit: (e) => alert(e), color: "success" }), h("h4", { key: '96f73750c93ebb6f4a50499207a3a1a0d9076073' }, "Smoothly checkboxes"), h("div", { key: 'aa4929a5917cea5bcf8961d5f313805fedd9e109', class: "checkbox-group" }, h("smoothly-input-checkbox", { key: '0f907e9eb97671d69efd0cadf0a4b1b002735b68', disabled: true, name: "first-checkbox" }, h("smoothly-icon", { key: '25f477455d12951d0033c06f28a811a6f3255973', name: "checkmark-circle", slot: "start", size: "tiny" }), "First"), h("smoothly-input-checkbox", { key: '962bc40f831ddcc142ca159b26a1e2fe555aab89', name: "second-checkbox", checked: true }, h("smoothly-icon", { key: 'c439fe413fb5341c670c3f7b76e7c2945d021f34', name: "checkmark-circle", slot: "start", size: "tiny" }), "second", h("smoothly-input-clear", { key: 'b858dec527a132f04e47468fd787757598978f53', size: "icon", slot: "end" })), h("smoothly-input-checkbox", { key: '38657e43d5d220e0bd839ab61bf3a1a0179f4df1', name: "third-checkbox" }, "3rd")), h("h4", { key: 'ec14c6fce7abdd68c29448feba56d19e64385ae0' }, "Smoothly Radio Buttons"), h("smoothly-input-radio", { key: '2e478fb1582c26ef129ff6828d61598195f1803d', clearable: true, name: "radioFirstInput" }, h("smoothly-icon", { key: 'c940cf5f00400fd7d44907ffa14e7ac37628c32f', name: "checkmark-circle", slot: "start" }), h("label", { key: 'fa0a5525d6c1bfff1eb43a4e9b05ead8560617a6', slot: "label" }, "Clearable"), h("smoothly-input-radio-item", { key: '61241218e980c5709132079759b1b84c27e2ae98', value: "first" }, "Label 1"), h("smoothly-input-radio-item", { key: '91e2ec2e00a856e63c3d39075751dea0347c1cd4', selected: true, value: "second" }, "Label 2"), h("smoothly-input-radio-item", { key: '65e6dc162f6c63e2b3c23b2be07a77f1c25854b3', value: "third" }, "Label 3"), h("smoothly-input-clear", { key: '394c9e6f5c267f756008170e51c66552632883aa', size: "icon", slot: "end" })), h("smoothly-input-radio", { key: '7a8ad22f29f4b8f835d5ac6579a053547e408102', name: "radioSecondInput" }, h("label", { key: '8ee8c01660d6cc0d29288b2eca40316fc6038d1a', slot: "label" }, "Not clearable"), h("smoothly-input-radio-item", { key: 'db0299fefc79b9467c2949c0a201dab87f08dbe9', value: "first" }, "Label 1"), h("smoothly-input-radio-item", { key: '11e05b7d42219a3053fa25521812244f2f0e7428', value: "second" }, "Label 2"), h("smoothly-input-radio-item", { key: 'f725a62deff05d78b6ca6cabefa4343193c7589f', value: "third" }, "Label 3"), h("smoothly-input-radio-item", { key: '85d184fca2e5f1283f0775ebb544060d3bc8b8d6', value: "fourth" }, "Label 4"), h("smoothly-input-radio-item", { key: '7d8aaafc412c456769667ed7174b86e025ce3ec0', value: "fifth" }, "Label 5"), h("smoothly-input-radio-item", { key: '5b22de409c7c057c6d2e3b4bc5ac20e5313ac3ea', value: "sixth" }, "Label 6")), h("smoothly-input-range-demo", { key: '8d51603cec738f75d64420c892d4f3ed70e56c0e' }), h("smoothly-input-color-demo", { key: 'e5b826ed6916c0b1ed09ed126aa0d22cedaa0c13' }), h("smoothly-input-price-demo", { key: '9471cc31ced0f7a56855e9f31467bbfae382590d' }), h("smoothly-back-to-top", { key: '0ac3807cb7f8e57a286b8ee4a0beedbd6a0e5704' }))));
58
+ }
59
+ static get style() { return SmoothlyInputDemoStyle0; }
60
+ }, [2, "smoothly-input-demo", {
61
+ "duration": [32],
62
+ "alphanumeric": [32]
63
+ }]);
64
+ function defineCustomElement() {
65
+ if (typeof customElements === "undefined") {
66
+ return;
67
+ }
68
+ const components = ["smoothly-input-demo", "smoothly-back-to-top", "smoothly-button", "smoothly-button-confirm", "smoothly-calendar", "smoothly-display", "smoothly-display-json", "smoothly-display-json-object", "smoothly-display-json-primitive", "smoothly-display-json-record-key", "smoothly-form", "smoothly-icon", "smoothly-input", "smoothly-input-checkbox", "smoothly-input-clear", "smoothly-input-color", "smoothly-input-color-demo", "smoothly-input-date", "smoothly-input-date-range", "smoothly-input-demo-standard", "smoothly-input-file", "smoothly-input-month", "smoothly-input-price-demo", "smoothly-input-radio", "smoothly-input-radio-item", "smoothly-input-range", "smoothly-input-range-demo", "smoothly-input-reset", "smoothly-input-select", "smoothly-input-submit", "smoothly-item", "smoothly-spinner", "smoothly-toggle-switch"];
69
+ components.forEach(tagName => { switch (tagName) {
70
+ case "smoothly-input-demo":
71
+ if (!customElements.get(tagName)) {
72
+ customElements.define(tagName, SmoothlyInputDemo);
73
+ }
74
+ break;
75
+ case "smoothly-back-to-top":
76
+ if (!customElements.get(tagName)) {
77
+ defineCustomElement$w();
78
+ }
79
+ break;
80
+ case "smoothly-button":
81
+ if (!customElements.get(tagName)) {
82
+ defineCustomElement$v();
83
+ }
84
+ break;
85
+ case "smoothly-button-confirm":
86
+ if (!customElements.get(tagName)) {
87
+ defineCustomElement$u();
88
+ }
89
+ break;
90
+ case "smoothly-calendar":
91
+ if (!customElements.get(tagName)) {
92
+ defineCustomElement$t();
93
+ }
94
+ break;
95
+ case "smoothly-display":
96
+ if (!customElements.get(tagName)) {
97
+ defineCustomElement$s();
98
+ }
99
+ break;
100
+ case "smoothly-display-json":
101
+ if (!customElements.get(tagName)) {
102
+ defineCustomElement$r();
103
+ }
104
+ break;
105
+ case "smoothly-display-json-object":
106
+ if (!customElements.get(tagName)) {
107
+ defineCustomElement$q();
108
+ }
109
+ break;
110
+ case "smoothly-display-json-primitive":
111
+ if (!customElements.get(tagName)) {
112
+ defineCustomElement$p();
113
+ }
114
+ break;
115
+ case "smoothly-display-json-record-key":
116
+ if (!customElements.get(tagName)) {
117
+ defineCustomElement$o();
118
+ }
119
+ break;
120
+ case "smoothly-form":
121
+ if (!customElements.get(tagName)) {
122
+ defineCustomElement$n();
123
+ }
124
+ break;
125
+ case "smoothly-icon":
126
+ if (!customElements.get(tagName)) {
127
+ defineCustomElement$m();
128
+ }
129
+ break;
130
+ case "smoothly-input":
131
+ if (!customElements.get(tagName)) {
132
+ defineCustomElement$l();
133
+ }
134
+ break;
135
+ case "smoothly-input-checkbox":
136
+ if (!customElements.get(tagName)) {
137
+ defineCustomElement$k();
138
+ }
139
+ break;
140
+ case "smoothly-input-clear":
141
+ if (!customElements.get(tagName)) {
142
+ defineCustomElement$j();
143
+ }
144
+ break;
145
+ case "smoothly-input-color":
146
+ if (!customElements.get(tagName)) {
147
+ defineCustomElement$i();
148
+ }
149
+ break;
150
+ case "smoothly-input-color-demo":
151
+ if (!customElements.get(tagName)) {
152
+ defineCustomElement$h();
153
+ }
154
+ break;
155
+ case "smoothly-input-date":
156
+ if (!customElements.get(tagName)) {
157
+ defineCustomElement$g();
158
+ }
159
+ break;
160
+ case "smoothly-input-date-range":
161
+ if (!customElements.get(tagName)) {
162
+ defineCustomElement$f();
163
+ }
164
+ break;
165
+ case "smoothly-input-demo-standard":
166
+ if (!customElements.get(tagName)) {
167
+ defineCustomElement$e();
168
+ }
169
+ break;
170
+ case "smoothly-input-file":
171
+ if (!customElements.get(tagName)) {
172
+ defineCustomElement$d();
173
+ }
174
+ break;
175
+ case "smoothly-input-month":
176
+ if (!customElements.get(tagName)) {
177
+ defineCustomElement$c();
178
+ }
179
+ break;
180
+ case "smoothly-input-price-demo":
181
+ if (!customElements.get(tagName)) {
182
+ defineCustomElement$b();
183
+ }
184
+ break;
185
+ case "smoothly-input-radio":
186
+ if (!customElements.get(tagName)) {
187
+ defineCustomElement$a();
188
+ }
189
+ break;
190
+ case "smoothly-input-radio-item":
191
+ if (!customElements.get(tagName)) {
192
+ defineCustomElement$9();
193
+ }
194
+ break;
195
+ case "smoothly-input-range":
196
+ if (!customElements.get(tagName)) {
197
+ defineCustomElement$8();
198
+ }
199
+ break;
200
+ case "smoothly-input-range-demo":
201
+ if (!customElements.get(tagName)) {
202
+ defineCustomElement$7();
203
+ }
204
+ break;
205
+ case "smoothly-input-reset":
206
+ if (!customElements.get(tagName)) {
207
+ defineCustomElement$6();
208
+ }
209
+ break;
210
+ case "smoothly-input-select":
211
+ if (!customElements.get(tagName)) {
212
+ defineCustomElement$5();
213
+ }
214
+ break;
215
+ case "smoothly-input-submit":
216
+ if (!customElements.get(tagName)) {
217
+ defineCustomElement$4();
218
+ }
219
+ break;
220
+ case "smoothly-item":
221
+ if (!customElements.get(tagName)) {
222
+ defineCustomElement$3();
223
+ }
224
+ break;
225
+ case "smoothly-spinner":
226
+ if (!customElements.get(tagName)) {
227
+ defineCustomElement$2();
228
+ }
229
+ break;
230
+ case "smoothly-toggle-switch":
231
+ if (!customElements.get(tagName)) {
232
+ defineCustomElement$1();
233
+ }
234
+ break;
235
+ } });
236
+ }
237
+ defineCustomElement();
238
+
239
+ export { SmoothlyInputDemo as S, defineCustomElement as d };
240
+
241
+ //# sourceMappingURL=p-acb7d70d.js.map
@@ -1 +1 @@
1
- {"file":"p-be89672b.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAM,QAAQ,GAAG,mwBAAmwB,CAAC;AACrxB,gCAAe,QAAQ;;MCOV,iBAAiB;;;;wBACO,EAAE,KAAK,EAAE,CAAC,EAAE;4BAChB,MAAM;;IAEtC,MAAM;QACL,QACC,EAAC,IAAI,uDACJ,sFAAgC,EAChC,4DAAK,KAAK,EAAC,QAAQ,IAClB,wEAAiB,EACjB,4EAAqB,IAAI,EAAC,WAAW,eAA+B,EACpE,0EAAmB,EACnB,kFACC,IAAI,EAAC,SAAS,EACd,KAAK,EAAEA,IAAU,CAAC,GAAG,EAAE,EACvB,GAAG,EAAEA,IAAU,CAAC,SAAS,CAACA,IAAU,CAAC,GAAG,EAAE,CAAC,EAC3C,GAAG,EAAC,YAAY,EAChB,GAAG,EAAC,YAAY,GAA6B,EAC9C,kFACC,IAAI,EAAC,SAAS,EACd,KAAK,EAAEA,IAAU,CAAC,GAAG,EAAE,EACvB,GAAG,EAAEA,IAAU,CAAC,SAAS,CAACA,IAAU,CAAC,GAAG,EAAE,CAAC,EAC3C,GAAG,EAAC,YAAY,EAChB,GAAG,EAAC,YAAY,IAChB,6EAAsB,IAAI,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,GAAwB,CACzC,EAC5B,kFACC,KAAK,EAAC,MAAM,EACZ,KAAK,EAAEA,IAAU,CAAC,GAAG,EAAE,EACvB,GAAG,EAAEA,IAAU,CAAC,SAAS,CAACA,IAAU,CAAC,GAAG,EAAE,CAAC,EAC3C,GAAG,EAAC,YAAY,EAChB,GAAG,EAAC,YAAY,EAChB,SAAS,EAAE,KAAK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;;;;;;;;;;;;;;;;;","names":["isoly.Date"],"sources":["src/components/input/demo/style.css?tag=smoothly-input-demo&encapsulation=scoped","src/components/input/demo/index.tsx"],"sourcesContent":[":host {\n\tdisplay: flex;\n\tflex-direction: column;\n\tmargin-top: 2em;\n\tmargin-bottom: 10rem;\n}\n\nsmoothly-input-demo-standard {\n\tmargin-bottom: 2rem;\n}\n\ndiv.inputs {\n\tmargin: auto;\n\twidth: 50%;\n}\n\ndiv.inputs>h2:not(:first-child) {\n\tpadding-top: 3em;\n\tmargin-top: 3em;\n\tborder-top: 1px solid black;\n}\n\n.checkbox-group {\n\tdisplay: flex;\n\tgap: 1.5em;\n\talign-items: center;\n\tbackground-color: rgb(var(--smoothly-input-background));\n}\n\n.select-div {\n\tdisplay: flex;\n\tjustify-content: space-between;\n\tgap: 1em;\n\tflex-wrap: wrap;\n}\n\n.select-div>smoothly-color>*,\n.select-div>* {\n\tflex-basis: 49%;\n}\n","import { Component, h, Host, State } from \"@stencil/core\"\nimport { isoly } from \"isoly\"\n\n@Component({\n\ttag: \"smoothly-input-demo\",\n\tstyleUrl: \"style.css\",\n\tscoped: true,\n})\nexport class SmoothlyInputDemo {\n\t@State() duration: isoly.TimeSpan = { hours: 8 }\n\t@State() alphanumeric: string = \"!@##\"\n\n\trender() {\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t<smoothly-input-demo-standard />\n\t\t\t\t<div class=\"inputs\">\n\t\t\t\t\t<h2>Calendar</h2>\n\t\t\t\t\t<smoothly-input-date name=\"some-date\">Calendar</smoothly-input-date>\n\t\t\t\t\t<h2>Date Range</h2>\n\t\t\t\t\t<smoothly-input-date-range\n\t\t\t\t\t\tname=\"testing\"\n\t\t\t\t\t\tstart={isoly.Date.now()}\n\t\t\t\t\t\tend={isoly.Date.nextMonth(isoly.Date.now())}\n\t\t\t\t\t\tmin=\"2021-10-01\"\n\t\t\t\t\t\tmax=\"2025-01-31\"></smoothly-input-date-range>\n\t\t\t\t\t<smoothly-input-date-range\n\t\t\t\t\t\tname=\"testing\"\n\t\t\t\t\t\tstart={isoly.Date.now()}\n\t\t\t\t\t\tend={isoly.Date.nextMonth(isoly.Date.now())}\n\t\t\t\t\t\tmin=\"2021-10-10\"\n\t\t\t\t\t\tmax=\"2024-12-30\">\n\t\t\t\t\t\t<smoothly-input-reset slot=\"end\" size=\"icon\"></smoothly-input-reset>\n\t\t\t\t\t</smoothly-input-date-range>\n\t\t\t\t\t<smoothly-input-date-range\n\t\t\t\t\t\tlooks=\"grid\"\n\t\t\t\t\t\tstart={isoly.Date.now()}\n\t\t\t\t\t\tend={isoly.Date.nextMonth(isoly.Date.now())}\n\t\t\t\t\t\tmin=\"2021-10-10\"\n\t\t\t\t\t\tmax=\"2025-12-30\"\n\t\t\t\t\t\tshowLabel={false}\n\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\t\"--smoothly-input-border-radius\": \"0.5rem\",\n\t\t\t\t\t\t}}>\n\t\t\t\t\t\t<smoothly-input-clear slot=\"end\" size=\"icon\"></smoothly-input-clear>\n\t\t\t\t\t</smoothly-input-date-range>\n\t\t\t\t\t<h2>Date</h2>\n\t\t\t\t\t<smoothly-input-date>Date</smoothly-input-date>\n\t\t\t\t\t<smoothly-input-date showLabel={false} value=\"2021-10-28\" max=\"2021-12-30\" min=\"2021-10-10\">\n\t\t\t\t\t\tDate\n\t\t\t\t\t</smoothly-input-date>\n\t\t\t\t\t<smoothly-input-date value=\"2021-10-28\">\n\t\t\t\t\t\tDate\n\t\t\t\t\t\t<smoothly-input-reset slot=\"end\" size=\"icon\"></smoothly-input-reset>\n\t\t\t\t\t</smoothly-input-date>\n\t\t\t\t\t<smoothly-input-date value=\"2021-10-28\">\n\t\t\t\t\t\tDate\n\t\t\t\t\t\t<smoothly-input-clear slot=\"end\" size=\"icon\"></smoothly-input-clear>\n\t\t\t\t\t</smoothly-input-date>\n\t\t\t\t\t<h2>Select</h2>\n\t\t\t\t\t<div class=\"select-div\">\n\t\t\t\t\t\t<smoothly-input-select name=\"select-dessert\" looks=\"border\">\n\t\t\t\t\t\t\t<label slot=\"label\">Select with clear button</label>\n\t\t\t\t\t\t\t<smoothly-item value=\"1\">Ice cream</smoothly-item>\n\t\t\t\t\t\t\t<smoothly-item value=\"2\">Sponge cake</smoothly-item>\n\t\t\t\t\t\t\t<smoothly-item value=\"3\">Cookie</smoothly-item>\n\t\t\t\t\t\t\t<smoothly-item value=\"4\">Croissant</smoothly-item>\n\t\t\t\t\t\t\t<smoothly-item value=\"5\">Chocolate fondue</smoothly-item>\n\t\t\t\t\t\t\t<smoothly-input-clear size=\"icon\" slot=\"end\"></smoothly-input-clear>\n\t\t\t\t\t\t</smoothly-input-select>\n\t\t\t\t\t\t<smoothly-input-select multiple name=\"select-dessert-multiple\" looks=\"border\">\n\t\t\t\t\t\t\t<label slot=\"label\">Select multiple with reset button</label>\n\t\t\t\t\t\t\t<smoothly-item value=\"ice cream\">Ice cream</smoothly-item>\n\t\t\t\t\t\t\t<smoothly-item value=\"sponge cake\">Sponge cake</smoothly-item>\n\t\t\t\t\t\t\t<smoothly-item selected value=\"cookie\">\n\t\t\t\t\t\t\t\tCookie\n\t\t\t\t\t\t\t</smoothly-item>\n\t\t\t\t\t\t\t<smoothly-item value=\"croissant\">Croissant</smoothly-item>\n\t\t\t\t\t\t\t<smoothly-item selected value=\"chocolate fondue\">\n\t\t\t\t\t\t\t\tChocolate fondue\n\t\t\t\t\t\t\t</smoothly-item>\n\t\t\t\t\t\t\t<smoothly-input-reset size=\"icon\" slot=\"end\"></smoothly-input-reset>\n\t\t\t\t\t\t</smoothly-input-select>\n\t\t\t\t\t\t<smoothly-input-select name=\"spirit-animals\" looks=\"border\" mutable>\n\t\t\t\t\t\t\t<label slot=\"label\">Select or add new options</label>\n\t\t\t\t\t\t\t<smoothly-item value=\"manatee\">Manatee</smoothly-item>\n\t\t\t\t\t\t\t<smoothly-item selected value=\"cthulu\">\n\t\t\t\t\t\t\t\tCthulu\n\t\t\t\t\t\t\t</smoothly-item>\n\t\t\t\t\t\t</smoothly-input-select>\n\t\t\t\t\t\t<smoothly-input-select name=\"select-icon\" clearable={false} showSelected={false}>\n\t\t\t\t\t\t\t<smoothly-item value=\"folder\" selected>\n\t\t\t\t\t\t\t\t<smoothly-icon size=\"small\" name=\"folder-outline\" />\n\t\t\t\t\t\t\t</smoothly-item>\n\t\t\t\t\t\t\t<smoothly-item value=\"camera\">\n\t\t\t\t\t\t\t\t<smoothly-icon size=\"small\" name=\"camera-outline\" />\n\t\t\t\t\t\t\t</smoothly-item>\n\t\t\t\t\t\t</smoothly-input-select>\n\t\t\t\t\t\t<smoothly-input-select ordered menuHeight=\"7.5items\" placeholder=\"Select...\" name=\"select-month\">\n\t\t\t\t\t\t\t<label slot=\"label\">Alphabet ordered select</label>\n\t\t\t\t\t\t\t{Array.from({ length: 26 })\n\t\t\t\t\t\t\t\t.map((_, i) => String.fromCharCode(i + 65))\n\t\t\t\t\t\t\t\t.map(char => (\n\t\t\t\t\t\t\t\t\t<smoothly-item value={char} selected={char == \"H\"}>\n\t\t\t\t\t\t\t\t\t\t{char}\n\t\t\t\t\t\t\t\t\t</smoothly-item>\n\t\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-select multiple menuHeight=\"7.5items\" placeholder=\"Select...\" name=\"select-month\">\n\t\t\t\t\t\t\t<label slot=\"label\">Month multiple select</label>\n\t\t\t\t\t\t\t<smoothly-item value=\"1\">January</smoothly-item>\n\t\t\t\t\t\t\t<smoothly-item value=\"2\">February</smoothly-item>\n\t\t\t\t\t\t\t<smoothly-item value=\"3\">March</smoothly-item>\n\t\t\t\t\t\t\t<smoothly-item value=\"4\">April</smoothly-item>\n\t\t\t\t\t\t\t<smoothly-item value=\"5\">May</smoothly-item>\n\t\t\t\t\t\t\t<smoothly-item value=\"6\">June</smoothly-item>\n\t\t\t\t\t\t\t<smoothly-item value=\"7\">July</smoothly-item>\n\t\t\t\t\t\t\t<smoothly-item value=\"8\">August</smoothly-item>\n\t\t\t\t\t\t\t<smoothly-item value=\"9\">September</smoothly-item>\n\t\t\t\t\t\t\t<smoothly-item value=\"10\">October</smoothly-item>\n\t\t\t\t\t\t\t<smoothly-item value=\"11\">November</smoothly-item>\n\t\t\t\t\t\t\t<smoothly-item value=\"12\">December</smoothly-item>\n\t\t\t\t\t\t</smoothly-input-select>\n\t\t\t\t\t</div>\n\t\t\t\t\t<h2>Duration</h2>\n\t\t\t\t\t<smoothly-input\n\t\t\t\t\t\tname=\"duration\"\n\t\t\t\t\t\ttype=\"duration\"\n\t\t\t\t\t\tplaceholder=\"hh:mm\"\n\t\t\t\t\t\tvalue={this.duration}\n\t\t\t\t\t\tonSmoothlyInput={e => {\n\t\t\t\t\t\t\tconst duration = e.detail.duration\n\t\t\t\t\t\t\tthis.duration = duration\n\t\t\t\t\t\t}}>\n\t\t\t\t\t\tDuration\n\t\t\t\t\t</smoothly-input>\n\t\t\t\t\t<smoothly-input\n\t\t\t\t\t\tname=\"duration\"\n\t\t\t\t\t\ttype=\"duration\"\n\t\t\t\t\t\tvalue={this.duration}\n\t\t\t\t\t\tplaceholder=\"-hh:mm\"\n\t\t\t\t\t\tonSmoothlyInput={e => {\n\t\t\t\t\t\t\tconst duration = e.detail.duration\n\t\t\t\t\t\t\tthis.duration = duration\n\t\t\t\t\t\t}}>\n\t\t\t\t\t\tDuration\n\t\t\t\t\t</smoothly-input>\n\t\t\t\t\t<h2>Invalid text with warning icon and tooltip</h2>\n\t\t\t\t\t<smoothly-input\n\t\t\t\t\t\tname=\"alphanumeric\"\n\t\t\t\t\t\tinvalid={!/^[a-zA-Z0-9]+$/.test(this.alphanumeric)}\n\t\t\t\t\t\terrorMessage={\"Only alphanumeric allowed\"}\n\t\t\t\t\t\tvalue={this.alphanumeric}\n\t\t\t\t\t\tonSmoothlyInput={e => (this.alphanumeric = e.detail.alphanumeric)}>\n\t\t\t\t\t\tAlphanumeric\n\t\t\t\t\t</smoothly-input>\n\t\t\t\t\t<h2>Identifiers</h2>\n\t\t\t\t\t<smoothly-input type=\"identifier-code\">Code</smoothly-input>\n\t\t\t\t\t<smoothly-input type=\"identifier-attribute\">Attribute</smoothly-input>\n\t\t\t\t\t<smoothly-input type=\"identifier-snake\">Snake</smoothly-input>\n\t\t\t\t\t<smoothly-input type=\"identifier-pascal\">Pascal</smoothly-input>\n\t\t\t\t\t<smoothly-input type=\"identifier-camel\">Camel</smoothly-input>\n\t\t\t\t\t<h2>Input Alternatives</h2>\n\t\t\t\t\t<smoothly-input type=\"text\" name=\"name.last\" onSmoothlyChange={e => console.log(\"smoothly change event\")}>\n\t\t\t\t\t\t<smoothly-icon name=\"checkmark-circle\" slot=\"start\"></smoothly-icon>\n\t\t\t\t\t\tFirst Name\n\t\t\t\t\t</smoothly-input>\n\t\t\t\t\t<smoothly-input type=\"text\" name=\"name.first\" onSmoothlyChange={e => console.log(\"smoothly change event\")}>\n\t\t\t\t\t\tLast Name\n\t\t\t\t\t\t<smoothly-icon name=\"checkmark-circle\" slot=\"end\"></smoothly-icon>\n\t\t\t\t\t</smoothly-input>\n\t\t\t\t\t<smoothly-input\n\t\t\t\t\t\ttype=\"text\"\n\t\t\t\t\t\tname=\"name.first\"\n\t\t\t\t\t\tplaceholder=\"Smith\"\n\t\t\t\t\t\tonSmoothlyChange={e => console.log(\"smoothly change event\")}>\n\t\t\t\t\t\tLast Name\n\t\t\t\t\t\t<smoothly-icon name=\"checkmark-circle\" slot=\"end\"></smoothly-icon>\n\t\t\t\t\t</smoothly-input>\n\t\t\t\t\t<smoothly-input placeholder=\"test\"></smoothly-input>\n\t\t\t\t\t<smoothly-input-submit\n\t\t\t\t\t\tslot=\"submit\"\n\t\t\t\t\t\tfill=\"solid\"\n\t\t\t\t\t\tonSubmit={(e: Event) => alert(e)}\n\t\t\t\t\t\tcolor=\"success\"></smoothly-input-submit>\n\t\t\t\t\t<h4>Smoothly checkboxes</h4>\n\t\t\t\t\t<div class=\"checkbox-group\">\n\t\t\t\t\t\t<smoothly-input-checkbox disabled name=\"first-checkbox\">\n\t\t\t\t\t\t\t<smoothly-icon name=\"checkmark-circle\" slot=\"start\" size=\"tiny\" />\n\t\t\t\t\t\t\tFirst\n\t\t\t\t\t\t</smoothly-input-checkbox>\n\t\t\t\t\t\t<smoothly-input-checkbox name=\"second-checkbox\" checked>\n\t\t\t\t\t\t\t<smoothly-icon name=\"checkmark-circle\" slot=\"start\" size=\"tiny\" />\n\t\t\t\t\t\t\tsecond\n\t\t\t\t\t\t\t<smoothly-input-clear size=\"icon\" slot=\"end\"></smoothly-input-clear>\n\t\t\t\t\t\t</smoothly-input-checkbox>\n\t\t\t\t\t\t<smoothly-input-checkbox name=\"third-checkbox\">3rd</smoothly-input-checkbox>\n\t\t\t\t\t</div>\n\t\t\t\t\t<h4>Smoothly Radio Buttons</h4>\n\t\t\t\t\t<smoothly-input-radio clearable name=\"radioFirstInput\">\n\t\t\t\t\t\t<smoothly-icon name=\"checkmark-circle\" slot=\"start\" />\n\t\t\t\t\t\t<label slot=\"label\">Clearable</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 size=\"icon\" slot=\"end\" />\n\t\t\t\t\t</smoothly-input-radio>\n\t\t\t\t\t<smoothly-input-radio name=\"radioSecondInput\">\n\t\t\t\t\t\t<label slot=\"label\">Not clearable</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 value={\"second\"}>Label 2</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-radio-item value={\"fourth\"}>Label 4</smoothly-input-radio-item>\n\t\t\t\t\t\t<smoothly-input-radio-item value={\"fifth\"}>Label 5</smoothly-input-radio-item>\n\t\t\t\t\t\t<smoothly-input-radio-item value={\"sixth\"}>Label 6</smoothly-input-radio-item>\n\t\t\t\t\t</smoothly-input-radio>\n\t\t\t\t\t<smoothly-input-range-demo />\n\t\t\t\t\t<smoothly-input-color-demo />\n\t\t\t\t\t<smoothly-input-price-demo />\n\t\t\t\t\t<smoothly-back-to-top />\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"version":3}
1
+ {"file":"p-acb7d70d.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAM,QAAQ,GAAG,mwBAAmwB,CAAC;AACrxB,gCAAe,QAAQ;;MCOV,iBAAiB;;;;wBACO,EAAE,KAAK,EAAE,CAAC,EAAE;4BAChB,MAAM;;IAEtC,MAAM;QACL,QACC,EAAC,IAAI,uDACJ,sFAAgC,EAChC,4DAAK,KAAK,EAAC,QAAQ,IAClB,wEAAiB,EACjB,4EAAqB,IAAI,EAAC,WAAW,eAA+B,EACpE,0EAAmB,EACnB,kFACC,IAAI,EAAC,SAAS,EACd,KAAK,EAAEA,IAAU,CAAC,GAAG,EAAE,EACvB,GAAG,EAAEA,IAAU,CAAC,SAAS,CAACA,IAAU,CAAC,GAAG,EAAE,CAAC,EAC3C,GAAG,EAAC,YAAY,EAChB,GAAG,EAAC,YAAY,GAA6B,EAC9C,kFACC,IAAI,EAAC,SAAS,EACd,KAAK,EAAEA,IAAU,CAAC,GAAG,EAAE,EACvB,GAAG,EAAEA,IAAU,CAAC,SAAS,CAACA,IAAU,CAAC,GAAG,EAAE,CAAC,EAC3C,GAAG,EAAC,YAAY,EAChB,GAAG,EAAC,YAAY,IAChB,6EAAsB,IAAI,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,GAAwB,CACzC,EAC5B,kFACC,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ACP;KACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["isoly.Date"],"sources":["src/components/input/demo/style.css?tag=smoothly-input-demo&encapsulation=scoped","src/components/input/demo/index.tsx"],"sourcesContent":[":host {\n\tdisplay: flex;\n\tflex-direction: column;\n\tmargin-top: 2em;\n\tmargin-bottom: 10rem;\n}\n\nsmoothly-input-demo-standard {\n\tmargin-bottom: 2rem;\n}\n\ndiv.inputs {\n\tmargin: auto;\n\twidth: 50%;\n}\n\ndiv.inputs>h2:not(:first-child) {\n\tpadding-top: 3em;\n\tmargin-top: 3em;\n\tborder-top: 1px solid black;\n}\n\n.checkbox-group {\n\tdisplay: flex;\n\tgap: 1.5em;\n\talign-items: center;\n\tbackground-color: rgb(var(--smoothly-input-background));\n}\n\n.select-div {\n\tdisplay: flex;\n\tjustify-content: space-between;\n\tgap: 1em;\n\tflex-wrap: wrap;\n}\n\n.select-div>smoothly-color>*,\n.select-div>* {\n\tflex-basis: 49%;\n}\n","import { Component, h, Host, State } from \"@stencil/core\"\nimport { isoly } from \"isoly\"\n\n@Component({\n\ttag: \"smoothly-input-demo\",\n\tstyleUrl: \"style.css\",\n\tscoped: true,\n})\nexport class SmoothlyInputDemo {\n\t@State() duration: isoly.TimeSpan = { hours: 8 }\n\t@State() alphanumeric: string = \"!@##\"\n\n\trender() {\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t<smoothly-input-demo-standard />\n\t\t\t\t<div class=\"inputs\">\n\t\t\t\t\t<h2>Calendar</h2>\n\t\t\t\t\t<smoothly-input-date name=\"some-date\">Calendar</smoothly-input-date>\n\t\t\t\t\t<h2>Date Range</h2>\n\t\t\t\t\t<smoothly-input-date-range\n\t\t\t\t\t\tname=\"testing\"\n\t\t\t\t\t\tstart={isoly.Date.now()}\n\t\t\t\t\t\tend={isoly.Date.nextMonth(isoly.Date.now())}\n\t\t\t\t\t\tmin=\"2021-10-01\"\n\t\t\t\t\t\tmax=\"2025-01-31\"></smoothly-input-date-range>\n\t\t\t\t\t<smoothly-input-date-range\n\t\t\t\t\t\tname=\"testing\"\n\t\t\t\t\t\tstart={isoly.Date.now()}\n\t\t\t\t\t\tend={isoly.Date.nextMonth(isoly.Date.now())}\n\t\t\t\t\t\tmin=\"2021-10-10\"\n\t\t\t\t\t\tmax=\"2024-12-30\">\n\t\t\t\t\t\t<smoothly-input-reset slot=\"end\" size=\"icon\"></smoothly-input-reset>\n\t\t\t\t\t</smoothly-input-date-range>\n\t\t\t\t\t<smoothly-input-date-range\n\t\t\t\t\t\tlooks=\"grid\"\n\t\t\t\t\t\tstart={isoly.Date.now()}\n\t\t\t\t\t\tend={isoly.Date.nextMonth(isoly.Date.now())}\n\t\t\t\t\t\tmin=\"2021-10-10\"\n\t\t\t\t\t\tmax=\"2025-12-30\"\n\t\t\t\t\t\tshowLabel={false}\n\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\t\"--smoothly-input-border-radius\": \"0.5rem\",\n\t\t\t\t\t\t}}>\n\t\t\t\t\t\t<smoothly-input-clear slot=\"end\" size=\"icon\"></smoothly-input-clear>\n\t\t\t\t\t</smoothly-input-date-range>\n\t\t\t\t\t<h2>Date</h2>\n\t\t\t\t\t<smoothly-input-date>Date</smoothly-input-date>\n\t\t\t\t\t<smoothly-input-date showLabel={false} value=\"2021-10-28\" max=\"2021-12-30\" min=\"2021-10-10\">\n\t\t\t\t\t\tDate\n\t\t\t\t\t</smoothly-input-date>\n\t\t\t\t\t<smoothly-input-date value=\"2021-10-28\">\n\t\t\t\t\t\tDate\n\t\t\t\t\t\t<smoothly-input-reset slot=\"end\" size=\"icon\"></smoothly-input-reset>\n\t\t\t\t\t</smoothly-input-date>\n\t\t\t\t\t<smoothly-input-date value=\"2021-10-28\">\n\t\t\t\t\t\tDate\n\t\t\t\t\t\t<smoothly-input-clear slot=\"end\" size=\"icon\"></smoothly-input-clear>\n\t\t\t\t\t</smoothly-input-date>\n\t\t\t\t\t<h2>Select</h2>\n\t\t\t\t\t<div class=\"select-div\">\n\t\t\t\t\t\t<smoothly-input-select name=\"select-dessert\" looks=\"border\">\n\t\t\t\t\t\t\t<label slot=\"label\">Select with clear button</label>\n\t\t\t\t\t\t\t<smoothly-item value=\"1\">Ice cream</smoothly-item>\n\t\t\t\t\t\t\t<smoothly-item value=\"2\">Sponge cake</smoothly-item>\n\t\t\t\t\t\t\t<smoothly-item value=\"3\">Cookie</smoothly-item>\n\t\t\t\t\t\t\t<smoothly-item value=\"4\">Croissant</smoothly-item>\n\t\t\t\t\t\t\t<smoothly-item value=\"5\">Chocolate fondue</smoothly-item>\n\t\t\t\t\t\t\t<smoothly-input-clear size=\"icon\" slot=\"end\"></smoothly-input-clear>\n\t\t\t\t\t\t</smoothly-input-select>\n\t\t\t\t\t\t<smoothly-input-select multiple name=\"select-dessert-multiple\" looks=\"border\">\n\t\t\t\t\t\t\t<label slot=\"label\">Select multiple with reset button</label>\n\t\t\t\t\t\t\t<smoothly-item value=\"ice cream\">Ice cream</smoothly-item>\n\t\t\t\t\t\t\t<smoothly-item value=\"sponge cake\">Sponge cake</smoothly-item>\n\t\t\t\t\t\t\t<smoothly-item selected value=\"cookie\">\n\t\t\t\t\t\t\t\tCookie\n\t\t\t\t\t\t\t</smoothly-item>\n\t\t\t\t\t\t\t<smoothly-item value=\"croissant\">Croissant</smoothly-item>\n\t\t\t\t\t\t\t<smoothly-item selected value=\"chocolate fondue\">\n\t\t\t\t\t\t\t\tChocolate fondue\n\t\t\t\t\t\t\t</smoothly-item>\n\t\t\t\t\t\t\t<smoothly-input-reset size=\"icon\" slot=\"end\"></smoothly-input-reset>\n\t\t\t\t\t\t</smoothly-input-select>\n\t\t\t\t\t\t<smoothly-input-select name=\"spirit-animals\" looks=\"border\" mutable>\n\t\t\t\t\t\t\t<label slot=\"label\">Select or add new options</label>\n\t\t\t\t\t\t\t<smoothly-item value=\"manatee\">Manatee</smoothly-item>\n\t\t\t\t\t\t\t<smoothly-item selected value=\"cthulu\">\n\t\t\t\t\t\t\t\tCthulu\n\t\t\t\t\t\t\t</smoothly-item>\n\t\t\t\t\t\t</smoothly-input-select>\n\t\t\t\t\t\t<smoothly-input-select name=\"select-icon\" clearable={false} showSelected={false}>\n\t\t\t\t\t\t\t<smoothly-item value=\"folder\" selected>\n\t\t\t\t\t\t\t\t<smoothly-icon size=\"small\" name=\"folder-outline\" />\n\t\t\t\t\t\t\t</smoothly-item>\n\t\t\t\t\t\t\t<smoothly-item value=\"camera\">\n\t\t\t\t\t\t\t\t<smoothly-icon size=\"small\" name=\"camera-outline\" />\n\t\t\t\t\t\t\t</smoothly-item>\n\t\t\t\t\t\t</smoothly-input-select>\n\t\t\t\t\t\t<smoothly-input-select ordered menuHeight=\"7.5items\" placeholder=\"Select...\" name=\"select-month\">\n\t\t\t\t\t\t\t<label slot=\"label\">Alphabet ordered select</label>\n\t\t\t\t\t\t\t{Array.from({ length: 26 })\n\t\t\t\t\t\t\t\t.map((_, i) => String.fromCharCode(i + 65))\n\t\t\t\t\t\t\t\t.map(char => (\n\t\t\t\t\t\t\t\t\t<smoothly-item value={char} selected={char == \"H\"}>\n\t\t\t\t\t\t\t\t\t\t{char}\n\t\t\t\t\t\t\t\t\t</smoothly-item>\n\t\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-select multiple menuHeight=\"7.5items\" placeholder=\"Select...\" name=\"select-month\">\n\t\t\t\t\t\t\t<label slot=\"label\">Month multiple select</label>\n\t\t\t\t\t\t\t<smoothly-item value=\"1\">January</smoothly-item>\n\t\t\t\t\t\t\t<smoothly-item value=\"2\">February</smoothly-item>\n\t\t\t\t\t\t\t<smoothly-item value=\"3\">March</smoothly-item>\n\t\t\t\t\t\t\t<smoothly-item value=\"4\">April</smoothly-item>\n\t\t\t\t\t\t\t<smoothly-item value=\"5\">May</smoothly-item>\n\t\t\t\t\t\t\t<smoothly-item value=\"6\">June</smoothly-item>\n\t\t\t\t\t\t\t<smoothly-item value=\"7\">July</smoothly-item>\n\t\t\t\t\t\t\t<smoothly-item value=\"8\">August</smoothly-item>\n\t\t\t\t\t\t\t<smoothly-item value=\"9\">September</smoothly-item>\n\t\t\t\t\t\t\t<smoothly-item value=\"10\">October</smoothly-item>\n\t\t\t\t\t\t\t<smoothly-item value=\"11\">November</smoothly-item>\n\t\t\t\t\t\t\t<smoothly-item value=\"12\">December</smoothly-item>\n\t\t\t\t\t\t</smoothly-input-select>\n\t\t\t\t\t</div>\n\t\t\t\t\t<h2>Duration</h2>\n\t\t\t\t\t<smoothly-input\n\t\t\t\t\t\tname=\"duration\"\n\t\t\t\t\t\ttype=\"duration\"\n\t\t\t\t\t\tplaceholder=\"hh:mm\"\n\t\t\t\t\t\tvalue={this.duration}\n\t\t\t\t\t\tonSmoothlyInput={e => {\n\t\t\t\t\t\t\tconst duration = e.detail.duration\n\t\t\t\t\t\t\tthis.duration = duration\n\t\t\t\t\t\t}}>\n\t\t\t\t\t\tDuration\n\t\t\t\t\t</smoothly-input>\n\t\t\t\t\t<smoothly-input\n\t\t\t\t\t\tname=\"duration\"\n\t\t\t\t\t\ttype=\"duration\"\n\t\t\t\t\t\tvalue={this.duration}\n\t\t\t\t\t\tplaceholder=\"-hh:mm\"\n\t\t\t\t\t\tonSmoothlyInput={e => {\n\t\t\t\t\t\t\tconst duration = e.detail.duration\n\t\t\t\t\t\t\tthis.duration = duration\n\t\t\t\t\t\t}}>\n\t\t\t\t\t\tDuration\n\t\t\t\t\t</smoothly-input>\n\t\t\t\t\t<h2>Invalid text with warning icon and tooltip</h2>\n\t\t\t\t\t<smoothly-input\n\t\t\t\t\t\tname=\"alphanumeric\"\n\t\t\t\t\t\tinvalid={!/^[a-zA-Z0-9]+$/.test(this.alphanumeric)}\n\t\t\t\t\t\terrorMessage={\"Only alphanumeric allowed\"}\n\t\t\t\t\t\tvalue={this.alphanumeric}\n\t\t\t\t\t\tonSmoothlyInput={e => (this.alphanumeric = e.detail.alphanumeric)}>\n\t\t\t\t\t\tAlphanumeric\n\t\t\t\t\t</smoothly-input>\n\t\t\t\t\t<h2>Identifiers</h2>\n\t\t\t\t\t<smoothly-input type=\"identifier-code\">Code</smoothly-input>\n\t\t\t\t\t<smoothly-input type=\"identifier-attribute\">Attribute</smoothly-input>\n\t\t\t\t\t<smoothly-input type=\"identifier-snake\">Snake</smoothly-input>\n\t\t\t\t\t<smoothly-input type=\"identifier-pascal\">Pascal</smoothly-input>\n\t\t\t\t\t<smoothly-input type=\"identifier-camel\">Camel</smoothly-input>\n\t\t\t\t\t<h2>Input Alternatives</h2>\n\t\t\t\t\t<smoothly-input type=\"text\" name=\"name.last\" onSmoothlyChange={e => console.log(\"smoothly change event\")}>\n\t\t\t\t\t\t<smoothly-icon name=\"checkmark-circle\" slot=\"start\"></smoothly-icon>\n\t\t\t\t\t\tFirst Name\n\t\t\t\t\t</smoothly-input>\n\t\t\t\t\t<smoothly-input type=\"text\" name=\"name.first\" onSmoothlyChange={e => console.log(\"smoothly change event\")}>\n\t\t\t\t\t\tLast Name\n\t\t\t\t\t\t<smoothly-icon name=\"checkmark-circle\" slot=\"end\"></smoothly-icon>\n\t\t\t\t\t</smoothly-input>\n\t\t\t\t\t<smoothly-input\n\t\t\t\t\t\ttype=\"text\"\n\t\t\t\t\t\tname=\"name.first\"\n\t\t\t\t\t\tplaceholder=\"Smith\"\n\t\t\t\t\t\tonSmoothlyChange={e => console.log(\"smoothly change event\")}>\n\t\t\t\t\t\tLast Name\n\t\t\t\t\t\t<smoothly-icon name=\"checkmark-circle\" slot=\"end\"></smoothly-icon>\n\t\t\t\t\t</smoothly-input>\n\t\t\t\t\t<smoothly-input placeholder=\"test\"></smoothly-input>\n\t\t\t\t\t<smoothly-input-submit\n\t\t\t\t\t\tslot=\"submit\"\n\t\t\t\t\t\tfill=\"solid\"\n\t\t\t\t\t\tonSubmit={(e: Event) => alert(e)}\n\t\t\t\t\t\tcolor=\"success\"></smoothly-input-submit>\n\t\t\t\t\t<h4>Smoothly checkboxes</h4>\n\t\t\t\t\t<div class=\"checkbox-group\">\n\t\t\t\t\t\t<smoothly-input-checkbox disabled name=\"first-checkbox\">\n\t\t\t\t\t\t\t<smoothly-icon name=\"checkmark-circle\" slot=\"start\" size=\"tiny\" />\n\t\t\t\t\t\t\tFirst\n\t\t\t\t\t\t</smoothly-input-checkbox>\n\t\t\t\t\t\t<smoothly-input-checkbox name=\"second-checkbox\" checked>\n\t\t\t\t\t\t\t<smoothly-icon name=\"checkmark-circle\" slot=\"start\" size=\"tiny\" />\n\t\t\t\t\t\t\tsecond\n\t\t\t\t\t\t\t<smoothly-input-clear size=\"icon\" slot=\"end\"></smoothly-input-clear>\n\t\t\t\t\t\t</smoothly-input-checkbox>\n\t\t\t\t\t\t<smoothly-input-checkbox name=\"third-checkbox\">3rd</smoothly-input-checkbox>\n\t\t\t\t\t</div>\n\t\t\t\t\t<h4>Smoothly Radio Buttons</h4>\n\t\t\t\t\t<smoothly-input-radio clearable name=\"radioFirstInput\">\n\t\t\t\t\t\t<smoothly-icon name=\"checkmark-circle\" slot=\"start\" />\n\t\t\t\t\t\t<label slot=\"label\">Clearable</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 size=\"icon\" slot=\"end\" />\n\t\t\t\t\t</smoothly-input-radio>\n\t\t\t\t\t<smoothly-input-radio name=\"radioSecondInput\">\n\t\t\t\t\t\t<label slot=\"label\">Not clearable</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 value={\"second\"}>Label 2</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-radio-item value={\"fourth\"}>Label 4</smoothly-input-radio-item>\n\t\t\t\t\t\t<smoothly-input-radio-item value={\"fifth\"}>Label 5</smoothly-input-radio-item>\n\t\t\t\t\t\t<smoothly-input-radio-item value={\"sixth\"}>Label 6</smoothly-input-radio-item>\n\t\t\t\t\t</smoothly-input-radio>\n\t\t\t\t\t<smoothly-input-range-demo />\n\t\t\t\t\t<smoothly-input-color-demo />\n\t\t\t\t\t<smoothly-input-price-demo />\n\t\t\t\t\t<smoothly-back-to-top />\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"version":3}
@@ -1,6 +1,6 @@
1
1
  import { p as proxyCustomElement, H, c as createEvent, h, d as Host } from './p-f765921a.js';
2
- import { I as Input } from './p-061353e6.js';
3
- import { d as defineCustomElement$1 } from './p-b5bca419.js';
2
+ import { I as Input } from './p-ca69a0ef.js';
3
+ import { d as defineCustomElement$1 } from './p-c63db1c1.js';
4
4
 
5
5
  const styleCss = ".sc-smoothly-input-checkbox-h{--input-padding-side:.5rem;--input-value-padding-top:1.25rem;--input-value-padding-bottom:.25rem;--input-min-height:3rem;min-height:var(--input-min-height);box-sizing:border-box;border-radius:var(--smoothly-input-border-radius)}.sc-smoothly-input-checkbox-h[looks=\"border\"].sc-smoothly-input-checkbox-s>smoothly-picker-menu smoothly-input,[looks=\"border\"].sc-smoothly-input-checkbox-h{border:rgb(var(--smoothly-input-border)) solid 1px}[looks=\"border\"][readonly].sc-smoothly-input-checkbox-h{border:transparent solid 1px}.sc-smoothly-input-checkbox-h[looks=\"line\"].sc-smoothly-input-checkbox-s>smoothly-picker-menu smoothly-input,[looks=\"line\"].sc-smoothly-input-checkbox-h{border-bottom:rgb(var(--smoothly-input-border)) solid 1px}[looks=\"line\"][readonly].sc-smoothly-input-checkbox-h{border-bottom:transparent solid 1px}[looks=\"grid\"].sc-smoothly-input-checkbox-h{flex-grow:1;flex-basis:40%;box-shadow:0px 0px 0px 1px rgb(var(--smoothly-input-border));border:none}[looks=\"grid\"][readonly].sc-smoothly-input-checkbox-h{box-shadow:0px 0px 0px 1px rgba(var(--smoothly-input-border-readonly))}[looks=\"transparent\"].sc-smoothly-input-checkbox-h{border:none}[looks=\"transparent\"][readonly].sc-smoothly-input-checkbox-h,[looks=\"transparent\"].sc-smoothly-input-checkbox-h:not(:focus-within){background-color:transparent}[looks=\"transparent\"][readonly].sc-smoothly-input-checkbox-h>input.sc-smoothly-input-checkbox,[looks=\"transparent\"].sc-smoothly-input-checkbox-h:not(:focus-within)>input.sc-smoothly-input-checkbox{background:transparent}[looks=\"transparent\"].sc-smoothly-input-checkbox-h:not([readonly]):focus-within{outline:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-checkbox-h.sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h .sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h .label.sc-smoothly-input-checkbox{position:absolute;top:.6rem;opacity:0.8;user-select:none;cursor:inherit;transform-origin:top left;transition:transform 100ms ease}.sc-smoothly-input-checkbox-h.floating-label.sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h.floating-label .sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h.has-value.sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h.has-value .sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h[placeholder].sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h[placeholder] .sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h[readonly].sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h[readonly] .sc-smoothly-input-checkbox-s>[slot=label],.has-value.sc-smoothly-input-checkbox-h .label.sc-smoothly-input-checkbox,[placeholder].sc-smoothly-input-checkbox-h .label.sc-smoothly-input-checkbox,[readonly].sc-smoothly-input-checkbox-h .label.sc-smoothly-input-checkbox,.sc-smoothly-input-checkbox-h:not([readonly]):focus-within .label.float-on-focus.sc-smoothly-input-checkbox{top:.2rem;transform:scale(0.8)}.sc-smoothly-input-checkbox-h:not([show-label]):not(.show-label) .label.sc-smoothly-input-checkbox{display:none}.sc-smoothly-input-checkbox-h{display:flex;align-items:center;flex-direction:row;position:relative;gap:.5rem;padding:0 var(--input-padding-side);background-color:rgb(var(--smoothly-input-background));box-sizing:border-box}.sc-smoothly-input-checkbox-h>smoothly-icon.sc-smoothly-input-checkbox{position:absolute;z-index:1}.sc-smoothly-input-checkbox-h>input.sc-smoothly-input-checkbox{-webkit-appearance:none;-moz-appearance:none;appearance:none;height:1.25rem;width:1.25rem;border:1px solid black;display:block}.sc-smoothly-input-checkbox-h:not([readonly]),.sc-smoothly-input-checkbox-h:not([readonly])>*.sc-smoothly-input-checkbox{cursor:pointer}[readonly].sc-smoothly-input-checkbox-h,[readonly].sc-smoothly-input-checkbox-h>*.sc-smoothly-input-checkbox{cursor:not-allowed}[disabled].sc-smoothly-input-checkbox-h>input.sc-smoothly-input-checkbox,[disabled].sc-smoothly-input-checkbox-h>smoothly-icon.sc-smoothly-input-checkbox{cursor:not-allowed;border-color:rgb(var(--smoothly-color-contrast), 0.3);color:rgb(var(--smoothly-color-contrast), 0.4)}[looks=\"transparent\"].sc-smoothly-input-checkbox-h{background-color:transparent}[looks=\"transparent\"].sc-smoothly-input-checkbox-h:not([readonly]):focus-within{outline-color:transparent}";
6
6
  const SmoothlyInputCheckboxStyle0 = styleCss;
@@ -71,7 +71,7 @@ const SmoothlyInputCheckbox = proxyCustomElement(class SmoothlyInputCheckbox ext
71
71
  !this.disabled && !this.readonly && (this.checked = !this.checked);
72
72
  }
73
73
  render() {
74
- return (h(Host, { key: 'faf6b5b6ab0bf4eec833ee7404b79a26b7f0d231', onMouseDown: (e) => (this.mouseDownPosition = { x: e.clientX, y: e.clientY }), onMouseUp: (e) => { var _a; return ((_a = this.mouseDownPosition) === null || _a === void 0 ? void 0 : _a.x) == e.clientX && this.mouseDownPosition.y == e.clientY && this.click(); } }, h("input", { key: '0f1c6fcb3a8b4cb8e7aaa90d3963cb7ca5c74ee4', type: "checkbox", checked: this.checked }), this.checked && h("smoothly-icon", { key: 'f66f42f169efd52552ce769d930e45c6b58d58e0', name: "checkmark-outline", size: "tiny" }), h("label", { key: '27242f86ab849777cd3bc31f70ed42d138c0ce5c' }, h("slot", { key: 'f7d4cce333e657972b7a0610b66d5980de00318a' }))));
74
+ return (h(Host, { key: '70df4c0650ffe6d9bce09712909a376247d038a0', onMouseDown: (e) => (this.mouseDownPosition = { x: e.clientX, y: e.clientY }), onMouseUp: (e) => { var _a; return ((_a = this.mouseDownPosition) === null || _a === void 0 ? void 0 : _a.x) == e.clientX && this.mouseDownPosition.y == e.clientY && this.click(); } }, h("input", { key: '092644e6b2fbf348f5dfc5cea42ab7874f90a1e9', type: "checkbox", checked: this.checked }), this.checked && h("smoothly-icon", { key: 'e3f90fee414b5c257f0ebf0f550817773ed02b0e', name: "checkmark-outline", size: "tiny" }), h("label", { key: '0073f250da12bd83b6daaefbca16a72101b74636' }, h("slot", { key: '5478e8791c8b957afa7a0935c38a08420634bab2' }))));
75
75
  }
76
76
  get element() { return this; }
77
77
  static get watchers() { return {
@@ -120,4 +120,4 @@ defineCustomElement();
120
120
 
121
121
  export { SmoothlyInputCheckbox as S, defineCustomElement as d };
122
122
 
123
- //# sourceMappingURL=p-7f313329.js.map
123
+ //# sourceMappingURL=p-b1db8b28.js.map
@@ -1 +1 @@
1
- {"file":"p-7f313329.js","mappings":";;;;AAAA,MAAM,QAAQ,GAAG,w2IAAw2I,CAAC;AAC13I,oCAAe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AC,OAAO,IAAI,IAAI,CAAC,KAAK,EAAE,CAAA,EAAA,IAEhG,8DAAO,IAAI,EAAC,UAAU,EAAC,OAAO,EAAE,IAAI,CAAC,OAAO,GAAI,EAC/C,IAAI,CAAC,OAAO,IAAI,sEAAe,IAAI,EAAC,mBAAmB,EAAC,IAAI,EAAC,MAAM,GAAG,EACvE,gEACC,8DAAQ,CACD,CACF,EACP;KACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/input/checkbox/style.css?tag=smoothly-input-checkbox&encapsulation=scoped","src/components/input/checkbox/index.tsx"],"sourcesContent":["@import \"../shared.css\";\n\n:host {\n\tdisplay: flex;\n\talign-items: center;\n\tflex-direction: row;\n\tposition: relative;\n\tgap: .5rem;\n\tpadding: 0 var(--input-padding-side);\n\tbackground-color: rgb(var(--smoothly-input-background));\n\tbox-sizing: border-box;\n}\n\n:host>smoothly-icon {\n\tposition: absolute;\n\tz-index: 1;\n}\n\n:host>input {\n\t-webkit-appearance: none;\n\t-moz-appearance: none;\n\tappearance: none;\n\theight: 1.25rem;\n\twidth: 1.25rem;\n\tborder: 1px solid black;\n\tdisplay: block;\n}\n\n:host:not([readonly]),\n:host:not([readonly])>* {\n\tcursor: pointer;\n}\n\n:host([readonly]),\n:host([readonly])>* {\n\tcursor: not-allowed;\n}\n\n\n:host[disabled]>input,\n:host[disabled]>smoothly-icon {\n\tcursor: not-allowed;\n\tborder-color: rgb(var(--smoothly-color-contrast), 0.3);\n\tcolor: rgb(var(--smoothly-color-contrast), 0.4);\n}\n\n:host[looks=\"transparent\"] {\n\tbackground-color: transparent;\n}\n/* overwrite shared.css styling */\n:host[looks=\"transparent\"]:not([readonly]):focus-within {\n\toutline-color: transparent;\n}\n","import { Component, ComponentWillLoad, Element, Event, EventEmitter, h, Host, Method, Prop, Watch } from \"@stencil/core\"\nimport { Color, Data } from \"../../../model\"\nimport { Clearable } from \"../Clearable\"\nimport { Editable } from \"../Editable\"\nimport { Input } from \"../Input\"\nimport { Looks } from \"../Looks\"\n\n@Component({\n\ttag: \"smoothly-input-checkbox\",\n\tstyleUrl: \"style.css\",\n\tscoped: true,\n})\nexport class SmoothlyInputCheckbox implements Input, Clearable, Editable, ComponentWillLoad {\n\t@Element() element: HTMLSmoothlyInputCheckboxElement\n\tparent: Editable | undefined\n\tprivate initialValue?: any\n\tprivate listener: { changed?: (parent: Editable) => Promise<void> } = {}\n\tprivate mouseDownPosition?: { x: number; y: number }\n\t@Prop({ reflect: true }) name: string\n\t@Prop({ mutable: true }) changed = false\n\t@Prop({ reflect: true, mutable: true }) readonly = false\n\t@Prop({ mutable: true }) checked = false\n\t@Prop() value = this.checked\n\t@Prop({ reflect: true, mutable: true }) looks?: Looks\n\t@Prop({ reflect: true, mutable: true }) color?: Color\n\t@Prop({ reflect: true }) disabled: boolean\n\t@Event() smoothlyInputLooks: EventEmitter<(looks?: Looks, color?: Color) => void>\n\t@Event() smoothlyInput: EventEmitter<Data>\n\t@Event() smoothlyInputLoad: EventEmitter<(parent: Editable) => void>\n\t@Event() smoothlyFormDisable: EventEmitter<(disabled: boolean) => void>\n\tcomponentWillLoad(): void | Promise<void> {\n\t\tthis.initialValue = this.checked\n\t\t!this.readonly && this.smoothlyFormDisable.emit(readonly => (this.readonly = readonly))\n\t\tthis.smoothlyInputLooks.emit(\n\t\t\t(looks, color) => ((this.looks = this.looks ?? looks), !this.color && (this.color = color))\n\t\t)\n\t\tthis.smoothlyInputLoad.emit(parent => (this.parent = parent))\n\t\tthis.listener.changed?.(this)\n\t}\n\tasync disconnectedCallback() {\n\t\tif (!this.element.isConnected)\n\t\t\tawait this.unregister()\n\t}\n\t@Method()\n\tasync register() {\n\t\tInput.formAdd(this)\n\t}\n\t@Method()\n\tasync unregister() {\n\t\tInput.formRemove(this)\n\t}\n\t@Method()\n\tasync getValue(): Promise<boolean> {\n\t\treturn this.checked\n\t}\n\t@Method()\n\tasync clear(): Promise<void> {\n\t\t!this.disabled && !this.readonly && (this.checked = false)\n\t}\n\t@Method()\n\tasync listen(property: \"changed\", listener: (parent: Editable) => Promise<void>): Promise<void> {\n\t\tthis.listener[property] = listener\n\t\tlistener(this)\n\t}\n\n\t@Method()\n\tasync edit(editable: boolean): Promise<void> {\n\t\tthis.readonly = !editable\n\t}\n\t@Method()\n\tasync reset(): Promise<void> {\n\t\tthis.checked = this.initialValue\n\t}\n\t@Method()\n\tasync setInitialValue(): Promise<void> {\n\t\tthis.initialValue = this.checked\n\t\tthis.changed = false\n\t}\n\t@Watch(\"checked\")\n\tasync elementCheck() {\n\t\tthis.changed = this.initialValue !== this.checked\n\t\tthis.smoothlyInput.emit({ [this.name]: await this.getValue() })\n\t\tthis.listener.changed?.(this)\n\t}\n\tclick() {\n\t\t!this.disabled && !this.readonly && (this.checked = !this.checked)\n\t}\n\trender() {\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tonMouseDown={(e: MouseEvent) => (this.mouseDownPosition = { x: e.clientX, y: e.clientY })}\n\t\t\t\tonMouseUp={(e: MouseEvent) =>\n\t\t\t\t\tthis.mouseDownPosition?.x == e.clientX && this.mouseDownPosition.y == e.clientY && this.click()\n\t\t\t\t}>\n\t\t\t\t<input type=\"checkbox\" checked={this.checked} />\n\t\t\t\t{this.checked && <smoothly-icon name=\"checkmark-outline\" size=\"tiny\" />}\n\t\t\t\t<label>\n\t\t\t\t\t<slot />\n\t\t\t\t</label>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"version":3}
1
+ {"file":"p-b1db8b28.js","mappings":";;;;AAAA,MAAM,QAAQ,GAAG,w2IAAw2I,CAAC;AAC13I,oCAAe,QAAQ;;MCWV,qBAAqB;;;;;;;;QAIzB,aAAQ,GAAsD,EAAE,CAAA;;uBAGrC,KAAK;wBACW,KAAK;uBACrB,KAAK;qBACxB,IAAI,CAAC,OAAO;;;;;IAQ5B,iBAAiB;;QAChB,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,OAAO,CAAA;QAChC,CA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vE,gEACC,8DAAQ,CACD,CACF,EACP;KACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/input/checkbox/style.css?tag=smoothly-input-checkbox&encapsulation=scoped","src/components/input/checkbox/index.tsx"],"sourcesContent":["@import \"../shared.css\";\n\n:host {\n\tdisplay: flex;\n\talign-items: center;\n\tflex-direction: row;\n\tposition: relative;\n\tgap: .5rem;\n\tpadding: 0 var(--input-padding-side);\n\tbackground-color: rgb(var(--smoothly-input-background));\n\tbox-sizing: border-box;\n}\n\n:host>smoothly-icon {\n\tposition: absolute;\n\tz-index: 1;\n}\n\n:host>input {\n\t-webkit-appearance: none;\n\t-moz-appearance: none;\n\tappearance: none;\n\theight: 1.25rem;\n\twidth: 1.25rem;\n\tborder: 1px solid black;\n\tdisplay: block;\n}\n\n:host:not([readonly]),\n:host:not([readonly])>* {\n\tcursor: pointer;\n}\n\n:host([readonly]),\n:host([readonly])>* {\n\tcursor: not-allowed;\n}\n\n\n:host[disabled]>input,\n:host[disabled]>smoothly-icon {\n\tcursor: not-allowed;\n\tborder-color: rgb(var(--smoothly-color-contrast), 0.3);\n\tcolor: rgb(var(--smoothly-color-contrast), 0.4);\n}\n\n:host[looks=\"transparent\"] {\n\tbackground-color: transparent;\n}\n/* overwrite shared.css styling */\n:host[looks=\"transparent\"]:not([readonly]):focus-within {\n\toutline-color: transparent;\n}\n","import { Component, ComponentWillLoad, Element, Event, EventEmitter, h, Host, Method, Prop, Watch } from \"@stencil/core\"\nimport { Color, Data } from \"../../../model\"\nimport { Clearable } from \"../Clearable\"\nimport { Editable } from \"../Editable\"\nimport { Input } from \"../Input\"\nimport { Looks } from \"../Looks\"\n\n@Component({\n\ttag: \"smoothly-input-checkbox\",\n\tstyleUrl: \"style.css\",\n\tscoped: true,\n})\nexport class SmoothlyInputCheckbox implements Input, Clearable, Editable, ComponentWillLoad {\n\t@Element() element: HTMLSmoothlyInputCheckboxElement\n\tparent: Editable | undefined\n\tprivate initialValue?: any\n\tprivate listener: { changed?: (parent: Editable) => Promise<void> } = {}\n\tprivate mouseDownPosition?: { x: number; y: number }\n\t@Prop({ reflect: true }) name: string\n\t@Prop({ mutable: true }) changed = false\n\t@Prop({ reflect: true, mutable: true }) readonly = false\n\t@Prop({ mutable: true }) checked = false\n\t@Prop() value = this.checked\n\t@Prop({ reflect: true, mutable: true }) looks?: Looks\n\t@Prop({ reflect: true, mutable: true }) color?: Color\n\t@Prop({ reflect: true }) disabled: boolean\n\t@Event() smoothlyInputLooks: EventEmitter<(looks?: Looks, color?: Color) => void>\n\t@Event() smoothlyInput: EventEmitter<Data>\n\t@Event() smoothlyInputLoad: EventEmitter<(parent: Editable) => void>\n\t@Event() smoothlyFormDisable: EventEmitter<(disabled: boolean) => void>\n\tcomponentWillLoad(): void | Promise<void> {\n\t\tthis.initialValue = this.checked\n\t\t!this.readonly && this.smoothlyFormDisable.emit(readonly => (this.readonly = readonly))\n\t\tthis.smoothlyInputLooks.emit(\n\t\t\t(looks, color) => ((this.looks = this.looks ?? looks), !this.color && (this.color = color))\n\t\t)\n\t\tthis.smoothlyInputLoad.emit(parent => (this.parent = parent))\n\t\tthis.listener.changed?.(this)\n\t}\n\tasync disconnectedCallback() {\n\t\tif (!this.element.isConnected)\n\t\t\tawait this.unregister()\n\t}\n\t@Method()\n\tasync register() {\n\t\tInput.formAdd(this)\n\t}\n\t@Method()\n\tasync unregister() {\n\t\tInput.formRemove(this)\n\t}\n\t@Method()\n\tasync getValue(): Promise<boolean> {\n\t\treturn this.checked\n\t}\n\t@Method()\n\tasync clear(): Promise<void> {\n\t\t!this.disabled && !this.readonly && (this.checked = false)\n\t}\n\t@Method()\n\tasync listen(property: \"changed\", listener: (parent: Editable) => Promise<void>): Promise<void> {\n\t\tthis.listener[property] = listener\n\t\tlistener(this)\n\t}\n\n\t@Method()\n\tasync edit(editable: boolean): Promise<void> {\n\t\tthis.readonly = !editable\n\t}\n\t@Method()\n\tasync reset(): Promise<void> {\n\t\tthis.checked = this.initialValue\n\t}\n\t@Method()\n\tasync setInitialValue(): Promise<void> {\n\t\tthis.initialValue = this.checked\n\t\tthis.changed = false\n\t}\n\t@Watch(\"checked\")\n\tasync elementCheck() {\n\t\tthis.changed = this.initialValue !== this.checked\n\t\tthis.smoothlyInput.emit({ [this.name]: await this.getValue() })\n\t\tthis.listener.changed?.(this)\n\t}\n\tclick() {\n\t\t!this.disabled && !this.readonly && (this.checked = !this.checked)\n\t}\n\trender() {\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tonMouseDown={(e: MouseEvent) => (this.mouseDownPosition = { x: e.clientX, y: e.clientY })}\n\t\t\t\tonMouseUp={(e: MouseEvent) =>\n\t\t\t\t\tthis.mouseDownPosition?.x == e.clientX && this.mouseDownPosition.y == e.clientY && this.click()\n\t\t\t\t}>\n\t\t\t\t<input type=\"checkbox\" checked={this.checked} />\n\t\t\t\t{this.checked && <smoothly-icon name=\"checkmark-outline\" size=\"tiny\" />}\n\t\t\t\t<label>\n\t\t\t\t\t<slot />\n\t\t\t\t</label>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"version":3}
@@ -1,9 +1,9 @@
1
1
  import { p as proxyCustomElement, H, c as createEvent, h, d as Host } from './p-f765921a.js';
2
2
  import { D as Date$1 } from './p-390767c7.js';
3
- import { I as Input } from './p-061353e6.js';
4
- import { d as defineCustomElement$3 } from './p-b5bca419.js';
5
- import { d as defineCustomElement$2 } from './p-f47eb337.js';
6
- import { d as defineCustomElement$1 } from './p-5bbf4b7e.js';
3
+ import { I as Input } from './p-ca69a0ef.js';
4
+ import { d as defineCustomElement$3 } from './p-c63db1c1.js';
5
+ import { d as defineCustomElement$2 } from './p-083143a9.js';
6
+ import { d as defineCustomElement$1 } from './p-edcdcc51.js';
7
7
 
8
8
  function month(date) {
9
9
  const d = new Date(date);
@@ -176,9 +176,9 @@ const SmoothlyInputMonth = proxyCustomElement(class SmoothlyInputMonth extends H
176
176
  }
177
177
  render() {
178
178
  var _a, _b;
179
- return (h(Host, { key: '7e05d80ebe8162924f86140f2335b7581c719a1b' }, h("smoothly-icon", { key: '2c74fc9ba9e3b9ae40d15f18ec1503270c153bfb', name: "caret-back-outline", size: "tiny", color: this.color, fill: "default", class: {
179
+ return (h(Host, { key: '8326dd10b2cb03a49c3df12c484d794ee42422e5' }, h("smoothly-icon", { key: '03d5ab4562e48c9d345dd28f8ba7260d8ca84534', name: "caret-back-outline", size: "tiny", color: this.color, fill: "default", class: {
180
180
  disabled: this.readonly || !this.allowPreviousMonth,
181
- }, onClick: () => this.allowPreviousMonth && this.adjustMonth(-1) }), h("smoothly-input-select", { key: '60babf60bf9354c30c4745750259f7b5bf6835f0', ref: e => (this.year = e), name: `${this.name}-year`, readonly: this.readonly, changed: this.changed, menuHeight: "5.5items", required: true, ordered: true, inCalendar: this.inCalendar, showLabel: this.showLabel, onSmoothlyInput: e => this.inputHandler(e), searchDisabled: true }, h("div", { key: '424585680e3e999dc2817dea33be756d350a2d02', slot: "label" }, h("slot", { key: 'b658f5a779d57cf7731ba90fea7bf1ae5407e107', name: "year-label" })), years((_a = this.value) !== null && _a !== void 0 ? _a : Date$1.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: '10a65c08cb5534b9aa34c4b22e933ec13c48c5ac', ref: e => (this.month = e), name: `${this.name}-month`, readonly: this.readonly, color: this.color, looks: this.looks, changed: this.changed, menuHeight: "5.5items", required: true, ordered: true, inCalendar: this.inCalendar, showLabel: this.showLabel, onSmoothlyInput: e => this.inputHandler(e), searchDisabled: true }, h("div", { key: 'd2d7f290030344d7ebc4ceed10492c9d4fdd45fa', slot: "label" }, h("slot", { key: '45b5a1a76f3e832f3455f717f57d09bdda313af4', name: "month-label" })), months((_b = this.value) !== null && _b !== void 0 ? _b : Date$1.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: '432fdd7e4c46f6694bb7e6461a634bc37053689b', name: "caret-forward-outline", size: "tiny", color: this.color, fill: "default", class: {
181
+ }, onClick: () => this.allowPreviousMonth && this.adjustMonth(-1) }), h("smoothly-input-select", { key: 'cd2085f09d9ccf1c49ab6e7716301b270449cb8c', ref: e => (this.year = e), name: `${this.name}-year`, readonly: this.readonly, changed: this.changed, menuHeight: "5.5items", required: true, ordered: true, inCalendar: this.inCalendar, showLabel: this.showLabel, onSmoothlyInput: e => this.inputHandler(e), searchDisabled: true }, h("div", { key: '026788ad6b0d4f12b71478b04fee7ab9ec5f705c', slot: "label" }, h("slot", { key: '911d041691ed519c2485ba979f50a9936bd76611', name: "year-label" })), years((_a = this.value) !== null && _a !== void 0 ? _a : Date$1.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: '08ada4e1dfd316a7c406e5e19f8c826f4e8a855e', ref: e => (this.month = e), name: `${this.name}-month`, readonly: this.readonly, color: this.color, looks: this.looks, changed: this.changed, menuHeight: "5.5items", required: true, ordered: true, inCalendar: this.inCalendar, showLabel: this.showLabel, onSmoothlyInput: e => this.inputHandler(e), searchDisabled: true }, h("div", { key: '8eff1f76b4388c488a773b234604794b83268bfa', slot: "label" }, h("slot", { key: 'c15e6145cb9bacc40843abdd1ad1a9cb7afe4baa', name: "month-label" })), months((_b = this.value) !== null && _b !== void 0 ? _b : Date$1.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: 'f5f0e3b60b17279611012998265600b1a59f54e5', name: "caret-forward-outline", size: "tiny", color: this.color, fill: "default", class: {
182
182
  disabled: this.readonly || !this.allowNextMonth,
183
183
  }, onClick: () => this.allowNextMonth && this.adjustMonth(1) })));
184
184
  }
@@ -248,4 +248,4 @@ defineCustomElement();
248
248
 
249
249
  export { SmoothlyInputMonth as S, defineCustomElement as d, month as m, weekdays as w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K,mCAAIF,MAAU,CAAC,GAAG,EAAE,CAAC,CAAC,GAAG,CAAC,KAAK,KACzD,qBAAe,GAAG,EAAE,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,KAAK,CAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,CAAC,QAAQ,IAAI,IAAI,CAAC,KAAK,IAAI,KAAK,CAAC,IAAI,IACrG,KAAK,CAAC,IAAI,CACI,CAChB,CAAC,CACqB,EACxB,sEACC,IAAI,EAAE,uBAAuB,EAC7B,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,IAAI,EAAE,SAAS,EACf,KAAK,EAAE;gBACN,QAAQ,EAAE,IAAI,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,cAAc;aAC/C,EACD,OAAO,EAAE,MAAM,IAAI,CAAC,cAAc,IAAI,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,GACxD,CACI,EACP;KACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["isoly.Date","generate.years","generate.months"],"sources":["src/components/calendar/generate.ts","src/components/input/month/style.css?tag=smoothly-input-month&encapsulation=scoped","src/components/input/month/index.tsx"],"sourcesContent":["import { isoly } from \"isoly\"\n\nexport function month(date: isoly.Date): isoly.Date[][] {\n\tconst d = new Date(date)\n\td.setDate(1)\n\tlet day = -((d.getDay() + 6) % 7) + 1\n\tconst result: string[][] = []\n\tfor (let row = 0; row < 6; row++) {\n\t\tconst r = []\n\t\tfor (let column = 0; column < 7; column++) {\n\t\t\tconst d = new Date(date)\n\t\t\td.setUTCDate(day++)\n\t\t\tr.push(isoly.Date.create(d))\n\t\t}\n\t\tif (row < 5 || isoly.Date.firstOfMonth(r[0]) == isoly.Date.firstOfMonth(date))\n\t\t\tresult.push(r)\n\t}\n\treturn result\n}\n\nexport function weekdays(): string[] {\n\tconst day = new globalThis.Date()\n\tday.setDate(day.getDate() - day.getDay() + 1)\n\tconst result: string[] = []\n\tfor (let i = 0; i < 7; i++) {\n\t\tresult.push(day.toLocaleString(undefined, { weekday: \"short\" }))\n\t\tday.setDate(day.getDate() + 1)\n\t}\n\treturn result\n}\n\nexport function months(current: isoly.Date): { date: isoly.Date; name: string; selected?: boolean }[] {\n\tconst day = new globalThis.Date(current)\n\tconst result: { date: isoly.Date; name: string; selected?: boolean }[] = []\n\tfor (let i = 0; i < 12; i++) {\n\t\tday.setMonth(i, 28)\n\t\tconst date = isoly.Date.create(day)\n\t\tresult.push({\n\t\t\tdate,\n\t\t\tname: day.toLocaleString(undefined, { month: \"long\" }),\n\t\t\tselected: date.substr(0, 7) == current.substr(0, 7),\n\t\t})\n\t}\n\treturn result\n}\nexport function years(\n\tcurrent: isoly.Date,\n\tmin?: isoly.Date,\n\tmax?: isoly.Date\n): { date: isoly.Date; name: string; selected?: boolean }[] {\n\tconst day = new globalThis.Date(current)\n\tconst start = min ? isoly.Date.getYear(min) : new Date().getFullYear() - 50\n\tconst end = max ? isoly.Date.getYear(max) : new Date().getFullYear() + 50\n\tconst result: { date: isoly.Date; name: string; selected?: boolean }[] = []\n\tfor (let i = start; i <= end; i++) {\n\t\tday.setFullYear(i)\n\t\tconst date = isoly.Date.create(day)\n\t\tresult.push({\n\t\t\tdate,\n\t\t\tname: day.toLocaleString(undefined, { year: \"numeric\" }),\n\t\t\tselected: date == current,\n\t\t})\n\t}\n\treturn result\n}\n",":host {\n\tdisplay: flex;\n\tflex-direction: row;\n\tjustify-content: space-between;\n\tbackground-color: rgb(var(--smoothly-input-background));\n}\n\n:host:not([in-calendar])>smoothly-input-select {\n\tdisplay: flex;\n\tflex: 1;\n}\n\n:host[looks=line],\n:host[looks=border],\n:host[looks=transparent] {\n\tgap: 2em;\n}\n\n:host:not([previous])>smoothly-icon:first-of-type,\n:host:not([next])>smoothly-icon:last-of-type {\n\tdisplay: none;\n}\n:host>smoothly-icon {\n\tdisplay: flex;\n\talign-self: center;\n\tcursor: pointer;\n}\n:host>smoothly-icon.disabled {\n\topacity: 0.5;\n\tcursor: not-allowed;\n}\n\n\n","import {\n\tComponent,\n\tComponentWillLoad,\n\tElement,\n\tEvent,\n\tEventEmitter,\n\th,\n\tHost,\n\tListen,\n\tMethod,\n\tProp,\n\tState,\n\tVNode,\n\tWatch,\n} from \"@stencil/core\"\nimport { isoly } from \"isoly\"\nimport { Data } from \"../../../model\"\nimport { Color } from \"../../../model\"\nimport * as generate from \"../../calendar/generate\"\nimport { Editable } from \"../Editable\"\nimport { Input } from \"../Input\"\nimport { Looks } from \"../Looks\"\n\n@Component({\n\ttag: \"smoothly-input-month\",\n\tstyleUrl: \"style.css\",\n\tscoped: true,\n})\nexport class SmoothlyInputMonth implements ComponentWillLoad, Input, Editable {\n\tchanged: boolean\n\tparent: Editable | undefined\n\t@Element() element: HTMLSmoothlyInputMonthElement\n\t@Prop({ reflect: true, mutable: true }) readonly: boolean\n\t@Prop({ reflect: true }) color?: Color\n\t@Prop({ reflect: true, mutable: true }) looks?: Looks\n\t@Prop({ reflect: true }) name: string\n\t@Prop({ mutable: true }) value?: isoly.Date = isoly.Date.now()\n\t@Prop({ mutable: true }) max?: isoly.Date\n\t@Prop({ mutable: true }) min?: isoly.Date\n\t@Prop({ reflect: true }) next = false\n\t@Prop({ reflect: true }) previous = false\n\t@Prop({ reflect: true }) inCalendar = false\n\t@Prop({ reflect: true }) showLabel = true\n\t@State() allowPreviousMonth = true\n\t@State() allowNextMonth = true\n\t@Event() smoothlyInput: EventEmitter<Data>\n\t@Event() smoothlyInputLoad: EventEmitter<(parent: Editable) => void>\n\t@Event() smoothlyFormDisable: EventEmitter<(disabled: boolean) => void>\n\t@Event() smoothlyInputLooks: EventEmitter<(looks?: Looks, color?: Color) => void>\n\tprivate year?: HTMLSmoothlyInputSelectElement\n\tprivate month?: HTMLSmoothlyInputSelectElement\n\tprivate listener: { changed?: (parent: Editable) => Promise<void> } = {}\n\n\tcomponentWillLoad(): void {\n\t\tthis.smoothlyInputLooks.emit(looks => (this.looks = this.looks ?? looks))\n\t\tthis.smoothlyInputLoad.emit(parent => (this.parent = parent))\n\t\t!this.readonly && this.smoothlyFormDisable.emit(readonly => (this.readonly = readonly))\n\t\tthis.valueChanged()\n\t}\n\t@Watch(\"value\")\n\tvalueChanged(): void {\n\t\tthis.smoothlyInput.emit({ [this.name]: this.value })\n\t}\n\tprivate adjustMonth(delta: number): void {\n\t\tif (!this.readonly) {\n\t\t\tconst date = isoly.Date.parse(this.value ?? isoly.Date.now())\n\t\t\tdate.setMonth(date.getMonth() + delta)\n\t\t\tthis.value = isoly.Date.create(date)\n\t\t}\n\t}\n\tasync disconnectedCallback() {\n\t\tif (!this.element.isConnected)\n\t\t\tawait this.unregister()\n\t}\n\t@Watch(\"value\")\n\t@Watch(\"min\")\n\tsetAllowPreviousMonth() {\n\t\tconst previousMonth = isoly.Date.previousMonth(this.value ?? isoly.Date.now()).substring(0, 7)\n\t\tconst minMonth = this.min?.substring(0, 7)\n\t\tthis.allowPreviousMonth = !minMonth || previousMonth >= minMonth\n\t}\n\t@Watch(\"value\")\n\t@Watch(\"max\")\n\tsetAllowNextMonth() {\n\t\tconst nextMonth = isoly.Date.nextMonth(this.value ?? isoly.Date.now()).substring(0, 7)\n\t\tconst maxMonth = this.max?.substring(0, 7)\n\t\tthis.allowNextMonth = !maxMonth || nextMonth <= maxMonth\n\t}\n\t@Method()\n\tasync register() {\n\t\tInput.formAdd(this)\n\t}\n\t@Method()\n\tasync unregister() {\n\t\tInput.formRemove(this)\n\t}\n\t@Method()\n\tasync getValue(): Promise<isoly.Date | undefined> {\n\t\treturn this.value\n\t}\n\t@Method()\n\tasync clear(): Promise<void> {\n\t\tthis.year?.clear()\n\t\tthis.month?.clear()\n\t}\n\t@Method()\n\tasync listen(property: \"changed\", listener: (parent: Editable) => Promise<void>): Promise<void> {\n\t\tthis.listener[property] = listener\n\t\tlistener(this)\n\t}\n\t@Method()\n\tasync edit(editable: boolean): Promise<void> {\n\t\tthis.readonly = !editable\n\t}\n\t@Method()\n\tasync reset(): Promise<void> {\n\t\tthis.year?.reset()\n\t\tthis.month?.reset()\n\t}\n\t@Method()\n\tasync setInitialValue(): Promise<void> {\n\t\tthis.year?.setInitialValue()\n\t\tthis.month?.setInitialValue()\n\t}\n\tinputHandler(event: CustomEvent<Record<string, any>>): void {\n\t\tif (event.target != this.element) {\n\t\t\tevent.stopPropagation()\n\t\t\tconst year = event.detail[`${this.name}-year`]\n\t\t\tconst month = event.detail[`${this.name}-month`]\n\t\t\tif (month && isoly.Date.is(month))\n\t\t\t\tthis.value = isoly.Date.firstOfMonth(month)\n\t\t\telse if (year && isoly.Date.is(year))\n\t\t\t\tthis.value = isoly.Date.firstOfMonth(year)\n\t\t}\n\t}\n\t@Listen(\"smoothlyInputLooks\")\n\tsmoothlyInputLooksHandler(event: CustomEvent<(looks?: Looks, color?: Color) => void>): void {\n\t\tif (event.target != this.element) {\n\t\t\tevent.stopPropagation()\n\t\t\tevent.detail(this.looks, this.color)\n\t\t}\n\t}\n\t@Listen(\"smoothlyInputLoad\")\n\tasync smoothlyInputLoadHandler(event: CustomEvent<(parent: Editable) => void>): Promise<void> {\n\t\tif (event.target != this.element)\n\t\t\tevent.stopPropagation()\n\t}\n\n\trender(): VNode | VNode[] {\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t<smoothly-icon\n\t\t\t\t\tname={\"caret-back-outline\"}\n\t\t\t\t\tsize={\"tiny\"}\n\t\t\t\t\tcolor={this.color}\n\t\t\t\t\tfill={\"default\"}\n\t\t\t\t\tclass={{\n\t\t\t\t\t\tdisabled: this.readonly || !this.allowPreviousMonth,\n\t\t\t\t\t}}\n\t\t\t\t\tonClick={() => this.allowPreviousMonth && this.adjustMonth(-1)}\n\t\t\t\t/>\n\t\t\t\t<smoothly-input-select\n\t\t\t\t\tref={e => (this.year = e)}\n\t\t\t\t\tname={`${this.name}-year`}\n\t\t\t\t\treadonly={this.readonly}\n\t\t\t\t\tchanged={this.changed}\n\t\t\t\t\tmenuHeight=\"5.5items\"\n\t\t\t\t\trequired\n\t\t\t\t\tordered\n\t\t\t\t\tinCalendar={this.inCalendar}\n\t\t\t\t\tshowLabel={this.showLabel}\n\t\t\t\t\tonSmoothlyInput={e => this.inputHandler(e)}\n\t\t\t\t\tsearchDisabled>\n\t\t\t\t\t<div slot={\"label\"}>\n\t\t\t\t\t\t<slot name={\"year-label\"} />\n\t\t\t\t\t</div>\n\t\t\t\t\t{generate.years(this.value ?? isoly.Date.now(), this.min, this.max).map(year => (\n\t\t\t\t\t\t<smoothly-item key={year.date} value={year.date} selected={year.selected || this.value == year.date}>\n\t\t\t\t\t\t\t{year.name}\n\t\t\t\t\t\t</smoothly-item>\n\t\t\t\t\t))}\n\t\t\t\t</smoothly-input-select>\n\t\t\t\t<smoothly-input-select\n\t\t\t\t\tref={e => (this.month = e)}\n\t\t\t\t\tname={`${this.name}-month`}\n\t\t\t\t\treadonly={this.readonly}\n\t\t\t\t\tcolor={this.color}\n\t\t\t\t\tlooks={this.looks}\n\t\t\t\t\tchanged={this.changed}\n\t\t\t\t\tmenuHeight=\"5.5items\"\n\t\t\t\t\trequired\n\t\t\t\t\tordered\n\t\t\t\t\tinCalendar={this.inCalendar}\n\t\t\t\t\tshowLabel={this.showLabel}\n\t\t\t\t\tonSmoothlyInput={e => this.inputHandler(e)}\n\t\t\t\t\tsearchDisabled>\n\t\t\t\t\t<div slot={\"label\"}>\n\t\t\t\t\t\t<slot name={\"month-label\"} />\n\t\t\t\t\t</div>\n\t\t\t\t\t{generate.months(this.value ?? isoly.Date.now()).map(month => (\n\t\t\t\t\t\t<smoothly-item key={month.date} value={month.date} selected={month.selected || this.value == month.date}>\n\t\t\t\t\t\t\t{month.name}\n\t\t\t\t\t\t</smoothly-item>\n\t\t\t\t\t))}\n\t\t\t\t</smoothly-input-select>\n\t\t\t\t<smoothly-icon\n\t\t\t\t\tname={\"caret-forward-outline\"}\n\t\t\t\t\tsize={\"tiny\"}\n\t\t\t\t\tcolor={this.color}\n\t\t\t\t\tfill={\"default\"}\n\t\t\t\t\tclass={{\n\t\t\t\t\t\tdisabled: this.readonly || !this.allowNextMonth,\n\t\t\t\t\t}}\n\t\t\t\t\tonClick={() => this.allowNextMonth && this.adjustMonth(1)}\n\t\t\t\t/>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"version":3}
1
+ {"file":"p-b20e3206.js","mappings":";;;;;;;SAEgB,KAAK,CAAC,IAAgB;IACrC,MAAM,CAAC,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,CAAA;IACxB,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAA;IACZ,IAAI,GAAG,GAAG,EAAE,CAAC,CAAC,CAAC,MAAM,EAAE,GAAG,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAA;IACrC,MAAM,MAAM,GAAe,EAAE,CAAA;IAC7B,KAAK,IAAI,GAAG,GAAG,CAAC,EAAE,GAAG,GAAG,CAAC,EAAE,GAAG,EAAE,EAAE;QACjC,MAAM,CAAC,GAAG,EAAE,CAAA;QACZ,KAAK,IAAI,MAAM,GAAG,CAAC,EAAE,MAAM,GAAG,CAAC,EAAE,MAAM,EAAE,EAAE;YAC1C,MAAM,CAAC,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,CAAA;YACxB,CAAC,CAAC,UAAU,CAAC,GAAG,EAAE,CAAC,CAAA;YACnB,CAAC,CAAC,IAAI,CAACA,MAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAA;SAC5B;QACD,IAAI,GAAG,GAAG,CAAC,IAAIA,MAAU,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAIA,MAAU,CAAC,YAAY,CAAC,IAAI,CAAC;YAC5E,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;KACf;IACD,OAAO,MAAM,CAAA;AACd,CAAC;SAEe,QAAQ;IACvB,MAAM,GAAG,GAAG,IAAI,UAAU,CAAC,IAAI,EAAE,C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,CAAC,EAC1C,cAAc,UACd,4DAAK,IAAI,EAAE,OAAO,IACjB,6DAAM,IAAI,EAAE,aAAa,GAAI,CACxB,EACLE,MAAe,CAAC,MAAA,IAAI,CAAC,KAAK,mCAAIF,MAAU,CAAC,GAAG,EAAE,CAAC,CAAC,GAAG,CAAC,KAAK,KACzD,qBAAe,GAAG,EAAE,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,KAAK,CAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,CAAC,QAAQ,IAAI,IAAI,CAAC,KAAK,IAAI,KAAK,CAAC,IAAI,IACrG,KAAK,CAAC,IAAI,CACI,CAChB,CAAC,CACqB,EACxB,sEACC,IAAI,EAAE,uBAAuB,EAC7B,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,IAAI,EAAE,SAAS,EACf,KAAK,EAAE;gBACN,QAAQ,EAAE,IAAI,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,cAAc;aAC/C,EACD,OAAO,EAAE,MAAM,IAAI,CAAC,cAAc,IAAI,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,GACxD,CACI,EACP;KACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["isoly.Date","generate.years","generate.months"],"sources":["src/components/calendar/generate.ts","src/components/input/month/style.css?tag=smoothly-input-month&encapsulation=scoped","src/components/input/month/index.tsx"],"sourcesContent":["import { isoly } from \"isoly\"\n\nexport function month(date: isoly.Date): isoly.Date[][] {\n\tconst d = new Date(date)\n\td.setDate(1)\n\tlet day = -((d.getDay() + 6) % 7) + 1\n\tconst result: string[][] = []\n\tfor (let row = 0; row < 6; row++) {\n\t\tconst r = []\n\t\tfor (let column = 0; column < 7; column++) {\n\t\t\tconst d = new Date(date)\n\t\t\td.setUTCDate(day++)\n\t\t\tr.push(isoly.Date.create(d))\n\t\t}\n\t\tif (row < 5 || isoly.Date.firstOfMonth(r[0]) == isoly.Date.firstOfMonth(date))\n\t\t\tresult.push(r)\n\t}\n\treturn result\n}\n\nexport function weekdays(): string[] {\n\tconst day = new globalThis.Date()\n\tday.setDate(day.getDate() - day.getDay() + 1)\n\tconst result: string[] = []\n\tfor (let i = 0; i < 7; i++) {\n\t\tresult.push(day.toLocaleString(undefined, { weekday: \"short\" }))\n\t\tday.setDate(day.getDate() + 1)\n\t}\n\treturn result\n}\n\nexport function months(current: isoly.Date): { date: isoly.Date; name: string; selected?: boolean }[] {\n\tconst day = new globalThis.Date(current)\n\tconst result: { date: isoly.Date; name: string; selected?: boolean }[] = []\n\tfor (let i = 0; i < 12; i++) {\n\t\tday.setMonth(i, 28)\n\t\tconst date = isoly.Date.create(day)\n\t\tresult.push({\n\t\t\tdate,\n\t\t\tname: day.toLocaleString(undefined, { month: \"long\" }),\n\t\t\tselected: date.substr(0, 7) == current.substr(0, 7),\n\t\t})\n\t}\n\treturn result\n}\nexport function years(\n\tcurrent: isoly.Date,\n\tmin?: isoly.Date,\n\tmax?: isoly.Date\n): { date: isoly.Date; name: string; selected?: boolean }[] {\n\tconst day = new globalThis.Date(current)\n\tconst start = min ? isoly.Date.getYear(min) : new Date().getFullYear() - 50\n\tconst end = max ? isoly.Date.getYear(max) : new Date().getFullYear() + 50\n\tconst result: { date: isoly.Date; name: string; selected?: boolean }[] = []\n\tfor (let i = start; i <= end; i++) {\n\t\tday.setFullYear(i)\n\t\tconst date = isoly.Date.create(day)\n\t\tresult.push({\n\t\t\tdate,\n\t\t\tname: day.toLocaleString(undefined, { year: \"numeric\" }),\n\t\t\tselected: date == current,\n\t\t})\n\t}\n\treturn result\n}\n",":host {\n\tdisplay: flex;\n\tflex-direction: row;\n\tjustify-content: space-between;\n\tbackground-color: rgb(var(--smoothly-input-background));\n}\n\n:host:not([in-calendar])>smoothly-input-select {\n\tdisplay: flex;\n\tflex: 1;\n}\n\n:host[looks=line],\n:host[looks=border],\n:host[looks=transparent] {\n\tgap: 2em;\n}\n\n:host:not([previous])>smoothly-icon:first-of-type,\n:host:not([next])>smoothly-icon:last-of-type {\n\tdisplay: none;\n}\n:host>smoothly-icon {\n\tdisplay: flex;\n\talign-self: center;\n\tcursor: pointer;\n}\n:host>smoothly-icon.disabled {\n\topacity: 0.5;\n\tcursor: not-allowed;\n}\n\n\n","import {\n\tComponent,\n\tComponentWillLoad,\n\tElement,\n\tEvent,\n\tEventEmitter,\n\th,\n\tHost,\n\tListen,\n\tMethod,\n\tProp,\n\tState,\n\tVNode,\n\tWatch,\n} from \"@stencil/core\"\nimport { isoly } from \"isoly\"\nimport { Data } from \"../../../model\"\nimport { Color } from \"../../../model\"\nimport * as generate from \"../../calendar/generate\"\nimport { Editable } from \"../Editable\"\nimport { Input } from \"../Input\"\nimport { Looks } from \"../Looks\"\n\n@Component({\n\ttag: \"smoothly-input-month\",\n\tstyleUrl: \"style.css\",\n\tscoped: true,\n})\nexport class SmoothlyInputMonth implements ComponentWillLoad, Input, Editable {\n\tchanged: boolean\n\tparent: Editable | undefined\n\t@Element() element: HTMLSmoothlyInputMonthElement\n\t@Prop({ reflect: true, mutable: true }) readonly: boolean\n\t@Prop({ reflect: true }) color?: Color\n\t@Prop({ reflect: true, mutable: true }) looks?: Looks\n\t@Prop({ reflect: true }) name: string\n\t@Prop({ mutable: true }) value?: isoly.Date = isoly.Date.now()\n\t@Prop({ mutable: true }) max?: isoly.Date\n\t@Prop({ mutable: true }) min?: isoly.Date\n\t@Prop({ reflect: true }) next = false\n\t@Prop({ reflect: true }) previous = false\n\t@Prop({ reflect: true }) inCalendar = false\n\t@Prop({ reflect: true }) showLabel = true\n\t@State() allowPreviousMonth = true\n\t@State() allowNextMonth = true\n\t@Event() smoothlyInput: EventEmitter<Data>\n\t@Event() smoothlyInputLoad: EventEmitter<(parent: Editable) => void>\n\t@Event() smoothlyFormDisable: EventEmitter<(disabled: boolean) => void>\n\t@Event() smoothlyInputLooks: EventEmitter<(looks?: Looks, color?: Color) => void>\n\tprivate year?: HTMLSmoothlyInputSelectElement\n\tprivate month?: HTMLSmoothlyInputSelectElement\n\tprivate listener: { changed?: (parent: Editable) => Promise<void> } = {}\n\n\tcomponentWillLoad(): void {\n\t\tthis.smoothlyInputLooks.emit(looks => (this.looks = this.looks ?? looks))\n\t\tthis.smoothlyInputLoad.emit(parent => (this.parent = parent))\n\t\t!this.readonly && this.smoothlyFormDisable.emit(readonly => (this.readonly = readonly))\n\t\tthis.valueChanged()\n\t}\n\t@Watch(\"value\")\n\tvalueChanged(): void {\n\t\tthis.smoothlyInput.emit({ [this.name]: this.value })\n\t}\n\tprivate adjustMonth(delta: number): void {\n\t\tif (!this.readonly) {\n\t\t\tconst date = isoly.Date.parse(this.value ?? isoly.Date.now())\n\t\t\tdate.setMonth(date.getMonth() + delta)\n\t\t\tthis.value = isoly.Date.create(date)\n\t\t}\n\t}\n\tasync disconnectedCallback() {\n\t\tif (!this.element.isConnected)\n\t\t\tawait this.unregister()\n\t}\n\t@Watch(\"value\")\n\t@Watch(\"min\")\n\tsetAllowPreviousMonth() {\n\t\tconst previousMonth = isoly.Date.previousMonth(this.value ?? isoly.Date.now()).substring(0, 7)\n\t\tconst minMonth = this.min?.substring(0, 7)\n\t\tthis.allowPreviousMonth = !minMonth || previousMonth >= minMonth\n\t}\n\t@Watch(\"value\")\n\t@Watch(\"max\")\n\tsetAllowNextMonth() {\n\t\tconst nextMonth = isoly.Date.nextMonth(this.value ?? isoly.Date.now()).substring(0, 7)\n\t\tconst maxMonth = this.max?.substring(0, 7)\n\t\tthis.allowNextMonth = !maxMonth || nextMonth <= maxMonth\n\t}\n\t@Method()\n\tasync register() {\n\t\tInput.formAdd(this)\n\t}\n\t@Method()\n\tasync unregister() {\n\t\tInput.formRemove(this)\n\t}\n\t@Method()\n\tasync getValue(): Promise<isoly.Date | undefined> {\n\t\treturn this.value\n\t}\n\t@Method()\n\tasync clear(): Promise<void> {\n\t\tthis.year?.clear()\n\t\tthis.month?.clear()\n\t}\n\t@Method()\n\tasync listen(property: \"changed\", listener: (parent: Editable) => Promise<void>): Promise<void> {\n\t\tthis.listener[property] = listener\n\t\tlistener(this)\n\t}\n\t@Method()\n\tasync edit(editable: boolean): Promise<void> {\n\t\tthis.readonly = !editable\n\t}\n\t@Method()\n\tasync reset(): Promise<void> {\n\t\tthis.year?.reset()\n\t\tthis.month?.reset()\n\t}\n\t@Method()\n\tasync setInitialValue(): Promise<void> {\n\t\tthis.year?.setInitialValue()\n\t\tthis.month?.setInitialValue()\n\t}\n\tinputHandler(event: CustomEvent<Record<string, any>>): void {\n\t\tif (event.target != this.element) {\n\t\t\tevent.stopPropagation()\n\t\t\tconst year = event.detail[`${this.name}-year`]\n\t\t\tconst month = event.detail[`${this.name}-month`]\n\t\t\tif (month && isoly.Date.is(month))\n\t\t\t\tthis.value = isoly.Date.firstOfMonth(month)\n\t\t\telse if (year && isoly.Date.is(year))\n\t\t\t\tthis.value = isoly.Date.firstOfMonth(year)\n\t\t}\n\t}\n\t@Listen(\"smoothlyInputLooks\")\n\tsmoothlyInputLooksHandler(event: CustomEvent<(looks?: Looks, color?: Color) => void>): void {\n\t\tif (event.target != this.element) {\n\t\t\tevent.stopPropagation()\n\t\t\tevent.detail(this.looks, this.color)\n\t\t}\n\t}\n\t@Listen(\"smoothlyInputLoad\")\n\tasync smoothlyInputLoadHandler(event: CustomEvent<(parent: Editable) => void>): Promise<void> {\n\t\tif (event.target != this.element)\n\t\t\tevent.stopPropagation()\n\t}\n\n\trender(): VNode | VNode[] {\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t<smoothly-icon\n\t\t\t\t\tname={\"caret-back-outline\"}\n\t\t\t\t\tsize={\"tiny\"}\n\t\t\t\t\tcolor={this.color}\n\t\t\t\t\tfill={\"default\"}\n\t\t\t\t\tclass={{\n\t\t\t\t\t\tdisabled: this.readonly || !this.allowPreviousMonth,\n\t\t\t\t\t}}\n\t\t\t\t\tonClick={() => this.allowPreviousMonth && this.adjustMonth(-1)}\n\t\t\t\t/>\n\t\t\t\t<smoothly-input-select\n\t\t\t\t\tref={e => (this.year = e)}\n\t\t\t\t\tname={`${this.name}-year`}\n\t\t\t\t\treadonly={this.readonly}\n\t\t\t\t\tchanged={this.changed}\n\t\t\t\t\tmenuHeight=\"5.5items\"\n\t\t\t\t\trequired\n\t\t\t\t\tordered\n\t\t\t\t\tinCalendar={this.inCalendar}\n\t\t\t\t\tshowLabel={this.showLabel}\n\t\t\t\t\tonSmoothlyInput={e => this.inputHandler(e)}\n\t\t\t\t\tsearchDisabled>\n\t\t\t\t\t<div slot={\"label\"}>\n\t\t\t\t\t\t<slot name={\"year-label\"} />\n\t\t\t\t\t</div>\n\t\t\t\t\t{generate.years(this.value ?? isoly.Date.now(), this.min, this.max).map(year => (\n\t\t\t\t\t\t<smoothly-item key={year.date} value={year.date} selected={year.selected || this.value == year.date}>\n\t\t\t\t\t\t\t{year.name}\n\t\t\t\t\t\t</smoothly-item>\n\t\t\t\t\t))}\n\t\t\t\t</smoothly-input-select>\n\t\t\t\t<smoothly-input-select\n\t\t\t\t\tref={e => (this.month = e)}\n\t\t\t\t\tname={`${this.name}-month`}\n\t\t\t\t\treadonly={this.readonly}\n\t\t\t\t\tcolor={this.color}\n\t\t\t\t\tlooks={this.looks}\n\t\t\t\t\tchanged={this.changed}\n\t\t\t\t\tmenuHeight=\"5.5items\"\n\t\t\t\t\trequired\n\t\t\t\t\tordered\n\t\t\t\t\tinCalendar={this.inCalendar}\n\t\t\t\t\tshowLabel={this.showLabel}\n\t\t\t\t\tonSmoothlyInput={e => this.inputHandler(e)}\n\t\t\t\t\tsearchDisabled>\n\t\t\t\t\t<div slot={\"label\"}>\n\t\t\t\t\t\t<slot name={\"month-label\"} />\n\t\t\t\t\t</div>\n\t\t\t\t\t{generate.months(this.value ?? isoly.Date.now()).map(month => (\n\t\t\t\t\t\t<smoothly-item key={month.date} value={month.date} selected={month.selected || this.value == month.date}>\n\t\t\t\t\t\t\t{month.name}\n\t\t\t\t\t\t</smoothly-item>\n\t\t\t\t\t))}\n\t\t\t\t</smoothly-input-select>\n\t\t\t\t<smoothly-icon\n\t\t\t\t\tname={\"caret-forward-outline\"}\n\t\t\t\t\tsize={\"tiny\"}\n\t\t\t\t\tcolor={this.color}\n\t\t\t\t\tfill={\"default\"}\n\t\t\t\t\tclass={{\n\t\t\t\t\t\tdisabled: this.readonly || !this.allowNextMonth,\n\t\t\t\t\t}}\n\t\t\t\t\tonClick={() => this.allowNextMonth && this.adjustMonth(1)}\n\t\t\t\t/>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"version":3}