smoothly 1.0.0-alpha.13 → 1.0.0-alpha.131

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 (416) hide show
  1. package/dist/cjs/{Listenable-63ea2d90.js → Data-e345d3cd.js} +74 -4
  2. package/dist/cjs/Data-e345d3cd.js.map +1 -0
  3. package/dist/cjs/Observers-6450f075.js +25 -0
  4. package/dist/cjs/Observers-6450f075.js.map +1 -0
  5. package/dist/cjs/{getLanguage-430ecf04.js → getLanguage-28ce96e4.js} +1111 -890
  6. package/dist/cjs/getLanguage-28ce96e4.js.map +1 -0
  7. package/dist/cjs/{index-8352a4e0.js → index-6ae370b4.js} +12 -43
  8. package/dist/cjs/index-6ae370b4.js.map +1 -0
  9. package/dist/cjs/index.cjs.js +386 -22
  10. package/dist/cjs/index.cjs.js.map +1 -1
  11. package/dist/cjs/loader.cjs.js +4 -3
  12. package/dist/cjs/loader.cjs.js.map +1 -1
  13. package/dist/cjs/redirect-2e5d4524.js +104 -0
  14. package/dist/cjs/redirect-2e5d4524.js.map +1 -0
  15. package/dist/cjs/smoothly-accordion_70.cjs.entry.js +17204 -0
  16. package/dist/cjs/smoothly-accordion_70.cjs.entry.js.map +1 -0
  17. package/dist/cjs/smoothly-address-display.cjs.entry.js +1 -1
  18. package/dist/cjs/smoothly-address.cjs.entry.js +1 -1
  19. package/dist/cjs/smoothly-addresses.cjs.entry.js +1 -1
  20. package/dist/cjs/smoothly-color.cjs.entry.js +1 -1
  21. package/dist/cjs/smoothly-country.cjs.entry.js +9 -9
  22. package/dist/cjs/smoothly-country.cjs.entry.js.map +1 -1
  23. package/dist/cjs/smoothly-display-date-time.cjs.entry.js +26 -0
  24. package/dist/cjs/smoothly-display-date-time.cjs.entry.js.map +1 -0
  25. package/dist/cjs/smoothly-google-font.cjs.entry.js +1 -1
  26. package/dist/cjs/smoothly-radio-group.cjs.entry.js +1 -1
  27. package/dist/cjs/smoothly-reorder.cjs.entry.js +4 -4
  28. package/dist/cjs/smoothly-reorder.cjs.entry.js.map +1 -1
  29. package/dist/cjs/smoothly-trigger-sink.cjs.entry.js +4 -4
  30. package/dist/cjs/smoothly-trigger-sink.cjs.entry.js.map +1 -1
  31. package/dist/cjs/smoothly-trigger-source.cjs.entry.js +6 -6
  32. package/dist/cjs/smoothly-trigger-source.cjs.entry.js.map +1 -1
  33. package/dist/cjs/smoothly.cjs.js +4 -3
  34. package/dist/cjs/smoothly.cjs.js.map +1 -1
  35. package/dist/collection/collection-manifest.json +23 -12
  36. package/dist/collection/components/Button.js +16 -2
  37. package/dist/collection/components/Button.js.map +1 -1
  38. package/dist/collection/components/accordion/index.js +32 -12
  39. package/dist/collection/components/accordion/index.js.map +1 -1
  40. package/dist/collection/components/accordion-item/index.js +18 -25
  41. package/dist/collection/components/accordion-item/index.js.map +1 -1
  42. package/dist/collection/components/app/index.js +147 -1
  43. package/dist/collection/components/app/index.js.map +1 -1
  44. package/dist/collection/components/app/room/index.js +240 -0
  45. package/dist/collection/components/app/room/index.js.map +1 -0
  46. package/dist/collection/components/app/room/style.css +55 -0
  47. package/dist/collection/components/app/style.css +89 -101
  48. package/dist/collection/components/app-demo/index.js +5 -19
  49. package/dist/collection/components/app-demo/index.js.map +1 -1
  50. package/dist/collection/components/backtotop/index.js +3 -3
  51. package/dist/collection/components/backtotop/index.js.map +1 -1
  52. package/dist/collection/components/burger/index.js +174 -0
  53. package/dist/collection/components/burger/index.js.map +1 -0
  54. package/dist/collection/components/burger/style.css +22 -0
  55. package/dist/collection/components/button/index.js +10 -23
  56. package/dist/collection/components/button/index.js.map +1 -1
  57. package/dist/collection/components/button/style.css +13 -17
  58. package/dist/collection/components/button-demo/index.js +6 -2
  59. package/dist/collection/components/button-demo/index.js.map +1 -1
  60. package/dist/collection/components/button-demo/style.css +1 -0
  61. package/dist/collection/components/calendar/generate.js +1 -1
  62. package/dist/collection/components/calendar/generate.js.map +1 -1
  63. package/dist/collection/components/checkbox/index.js +25 -3
  64. package/dist/collection/components/checkbox/index.js.map +1 -1
  65. package/dist/collection/components/country/index.js +1 -1
  66. package/dist/collection/components/display/index.js +24 -3
  67. package/dist/collection/components/display/index.js.map +1 -1
  68. package/dist/collection/components/display-amount/index.js +1 -1
  69. package/dist/collection/components/display-demo/index.js +1 -1
  70. package/dist/collection/components/display-demo/index.js.map +1 -1
  71. package/dist/collection/components/filter/index.js +1 -1
  72. package/dist/collection/components/filter/index.js.map +1 -1
  73. package/dist/collection/components/filter/input/index.js +16 -9
  74. package/dist/collection/components/filter/input/index.js.map +1 -1
  75. package/dist/collection/components/form/index.js +132 -9
  76. package/dist/collection/components/form/index.js.map +1 -1
  77. package/dist/collection/components/form/style.css +9 -16
  78. package/dist/collection/components/frame/index.js +1 -2
  79. package/dist/collection/components/frame/index.js.map +1 -1
  80. package/dist/collection/components/icon/index.js +29 -38
  81. package/dist/collection/components/icon/index.js.map +1 -1
  82. package/dist/collection/components/icon-demo/index.js.map +1 -1
  83. package/dist/collection/components/icon-demo/style.css +1 -0
  84. package/dist/collection/components/input/Changeable.js +8 -0
  85. package/dist/collection/components/input/Changeable.js.map +1 -0
  86. package/dist/collection/components/input/Clearable.js.map +1 -0
  87. package/dist/collection/components/input/Input.js +2 -0
  88. package/dist/collection/components/input/Input.js.map +1 -0
  89. package/dist/collection/components/input/Looks.js +2 -0
  90. package/dist/collection/components/input/Looks.js.map +1 -0
  91. package/dist/collection/components/input/Submittable.js +8 -0
  92. package/dist/collection/components/input/Submittable.js.map +1 -0
  93. package/dist/collection/components/input/clear/index.js +237 -0
  94. package/dist/collection/components/input/clear/index.js.map +1 -0
  95. package/dist/collection/components/input/clear/style.css +254 -0
  96. package/dist/collection/components/{input-date → input/date}/index.js +160 -3
  97. package/dist/collection/components/input/date/index.js.map +1 -0
  98. package/dist/collection/components/{input-date-range → input/date/range}/index.js +161 -23
  99. package/dist/collection/components/input/date/range/index.js.map +1 -0
  100. package/dist/collection/components/input/date/range/style.css +69 -0
  101. package/dist/collection/components/input/date/style.css +58 -0
  102. package/dist/collection/components/input/demo/index.js +95 -0
  103. package/dist/collection/components/input/demo/index.js.map +1 -0
  104. package/dist/collection/components/{input-demo → input/demo}/style.css +1 -0
  105. package/dist/collection/components/input/file/index.js +305 -0
  106. package/dist/collection/components/input/file/index.js.map +1 -0
  107. package/dist/collection/components/input/file/style.css +85 -0
  108. package/dist/collection/components/input/index.js +131 -8
  109. package/dist/collection/components/input/index.js.map +1 -1
  110. package/dist/collection/components/{input-month → input/month}/index.js +5 -5
  111. package/dist/collection/components/input/month/index.js.map +1 -0
  112. package/dist/collection/components/{selector → input/select}/index.js +176 -5
  113. package/dist/collection/components/input/select/index.js.map +1 -0
  114. package/dist/collection/components/input/select/style.css +80 -0
  115. package/dist/collection/components/input/style.css +23 -8
  116. package/dist/collection/components/notification/index.js +45 -8
  117. package/dist/collection/components/notification/index.js.map +1 -1
  118. package/dist/collection/components/notification/style.css +25 -1
  119. package/dist/collection/components/notifier/style.css +1 -3
  120. package/dist/collection/components/picker/demo/index.js +91 -0
  121. package/dist/collection/components/picker/demo/index.js.map +1 -0
  122. package/dist/collection/components/picker/demo/style.css +26 -0
  123. package/dist/collection/components/picker/index.js +197 -396
  124. package/dist/collection/components/picker/index.js.map +1 -1
  125. package/dist/collection/components/picker/menu/index.js +422 -0
  126. package/dist/collection/components/picker/menu/index.js.map +1 -0
  127. package/dist/collection/components/picker/menu/style.css +44 -0
  128. package/dist/collection/components/picker/option/index.js +298 -0
  129. package/dist/collection/components/picker/option/index.js.map +1 -0
  130. package/dist/collection/components/picker/option/style.css +30 -0
  131. package/dist/collection/components/picker/slot-elements/index.js +109 -0
  132. package/dist/collection/components/picker/slot-elements/index.js.map +1 -0
  133. package/dist/collection/components/picker/slot-elements/style.css +3 -0
  134. package/dist/collection/components/picker/slotted-elements/index.js +84 -0
  135. package/dist/collection/components/picker/slotted-elements/index.js.map +1 -0
  136. package/dist/collection/components/picker/slotted-elements/style.css +3 -0
  137. package/dist/collection/components/picker/style.css +60 -144
  138. package/dist/collection/components/radio/index.js +4 -4
  139. package/dist/collection/components/radio/index.js.map +1 -1
  140. package/dist/collection/components/radio-button/index.js +35 -10
  141. package/dist/collection/components/radio-button/index.js.map +1 -1
  142. package/dist/collection/components/select-demo/index.js +0 -87
  143. package/dist/collection/components/select-demo/index.js.map +1 -1
  144. package/dist/collection/components/spinner/style.css +1 -0
  145. package/dist/collection/components/submit/index.js +64 -5
  146. package/dist/collection/components/submit/index.js.map +1 -1
  147. package/dist/collection/components/submit/style.css +224 -0
  148. package/dist/collection/components/summary/index.js +44 -1
  149. package/dist/collection/components/summary/index.js.map +1 -1
  150. package/dist/collection/components/svg/style.css +2 -2
  151. package/dist/collection/components/table/cell/index.js +1 -1
  152. package/dist/collection/components/table/cell/index.js.map +1 -1
  153. package/dist/collection/components/table/cell/style.css +19 -10
  154. package/dist/collection/components/table/demo/filtered/index.js +4 -3
  155. package/dist/collection/components/table/demo/filtered/index.js.map +1 -1
  156. package/dist/collection/components/table/demo/index.js +8 -2
  157. package/dist/collection/components/table/demo/index.js.map +1 -1
  158. package/dist/collection/components/table/demo/style.css +2 -0
  159. package/dist/collection/components/table/expandable/cell/index.js +14 -14
  160. package/dist/collection/components/table/expandable/cell/index.js.map +1 -1
  161. package/dist/collection/components/table/expandable/cell/style.css +32 -22
  162. package/dist/collection/components/table/expandable/row/index.js +9 -32
  163. package/dist/collection/components/table/expandable/row/index.js.map +1 -1
  164. package/dist/collection/components/table/expandable/row/style.css +32 -29
  165. package/dist/collection/components/table/footer/index.js +19 -0
  166. package/dist/collection/components/table/footer/index.js.map +1 -0
  167. package/dist/collection/components/table/footer/style.css +13 -0
  168. package/dist/collection/components/table/header/style.css +2 -2
  169. package/dist/collection/components/table/index.js +55 -12
  170. package/dist/collection/components/table/index.js.map +1 -1
  171. package/dist/collection/components/table/row/index.js +37 -5
  172. package/dist/collection/components/table/row/index.js.map +1 -1
  173. package/dist/collection/components/table/row/style.css +4 -1
  174. package/dist/collection/components/table/style.css +0 -2
  175. package/dist/collection/components/table/testing/data.js +28 -0
  176. package/dist/collection/components/table/testing/data.js.map +1 -0
  177. package/dist/collection/components/table/testing/index.js +28 -0
  178. package/dist/collection/components/table/testing/index.js.map +1 -0
  179. package/dist/collection/components/table/testing/style.css +22 -0
  180. package/dist/collection/components/theme/color/index.js +48 -0
  181. package/dist/collection/components/theme/color/index.js.map +1 -0
  182. package/dist/collection/components/theme/color/style.css +8 -0
  183. package/dist/collection/components/theme/color/variant/index.js +66 -0
  184. package/dist/collection/components/theme/color/variant/index.js.map +1 -0
  185. package/dist/collection/components/theme/color/variant/style.css +18 -0
  186. package/dist/collection/components/theme/colors/index.js +30 -0
  187. package/dist/collection/components/theme/colors/index.js.map +1 -0
  188. package/dist/collection/components/theme/colors/style.css +7 -0
  189. package/dist/collection/components/toggle-switch/index.js +69 -17
  190. package/dist/collection/components/toggle-switch/index.js.map +1 -1
  191. package/dist/collection/components/toggle-switch/style.css +19 -12
  192. package/dist/collection/components/trigger-source/index.js +3 -3
  193. package/dist/collection/components/trigger-source/index.js.map +1 -1
  194. package/dist/collection/global/Observers.js +22 -0
  195. package/dist/collection/global/Observers.js.map +1 -0
  196. package/dist/collection/global/index.js +5 -0
  197. package/dist/collection/global/index.js.map +1 -0
  198. package/dist/collection/index.js +2 -3
  199. package/dist/collection/index.js.map +1 -1
  200. package/dist/collection/model/Data.js.map +1 -0
  201. package/dist/collection/model/Icon.js +23 -0
  202. package/dist/collection/model/Icon.js.map +1 -0
  203. package/dist/collection/model/Listenable.js +2 -2
  204. package/dist/collection/model/Listenable.js.map +1 -1
  205. package/dist/collection/model/Notice.js +1 -1
  206. package/dist/collection/model/Notice.js.map +1 -1
  207. package/dist/collection/model/Option.js.map +1 -1
  208. package/dist/collection/model/index.js +3 -0
  209. package/dist/collection/model/index.js.map +1 -1
  210. package/dist/collection/model/redirect.js +8 -0
  211. package/dist/collection/model/redirect.js.map +1 -0
  212. package/dist/collection/smoothly.js +3 -0
  213. package/dist/collection/smoothly.js.map +1 -0
  214. package/dist/custom-elements/index.d.ts +94 -34
  215. package/dist/custom-elements/index.js +5360 -16302
  216. package/dist/custom-elements/index.js.map +1 -1
  217. package/dist/esm/{Listenable-fb6f4723.js → Data-37e7c0b9.js} +75 -5
  218. package/dist/esm/Data-37e7c0b9.js.map +1 -0
  219. package/dist/esm/Observers-5f08e828.js +25 -0
  220. package/dist/esm/Observers-5f08e828.js.map +1 -0
  221. package/dist/esm/{getLanguage-cccb8418.js → getLanguage-5233a597.js} +1111 -890
  222. package/dist/esm/getLanguage-5233a597.js.map +1 -0
  223. package/dist/esm/{index-7b57a52c.js → index-c196715a.js} +12 -42
  224. package/dist/esm/index-c196715a.js.map +1 -0
  225. package/dist/esm/index.js +388 -6
  226. package/dist/esm/index.js.map +1 -1
  227. package/dist/esm/loader.js +5 -4
  228. package/dist/esm/loader.js.map +1 -1
  229. package/dist/esm/redirect-b0f87e88.js +101 -0
  230. package/dist/esm/redirect-b0f87e88.js.map +1 -0
  231. package/dist/esm/smoothly-accordion_70.entry.js +17131 -0
  232. package/dist/esm/smoothly-accordion_70.entry.js.map +1 -0
  233. package/dist/esm/smoothly-address-display.entry.js +1 -1
  234. package/dist/esm/smoothly-address.entry.js +1 -1
  235. package/dist/esm/smoothly-addresses.entry.js +1 -1
  236. package/dist/esm/smoothly-color.entry.js +1 -1
  237. package/dist/esm/smoothly-country.entry.js +9 -9
  238. package/dist/esm/smoothly-country.entry.js.map +1 -1
  239. package/dist/esm/smoothly-display-date-time.entry.js +22 -0
  240. package/dist/esm/smoothly-display-date-time.entry.js.map +1 -0
  241. package/dist/esm/smoothly-google-font.entry.js +1 -1
  242. package/dist/esm/smoothly-radio-group.entry.js +1 -1
  243. package/dist/esm/smoothly-reorder.entry.js +2 -2
  244. package/dist/esm/smoothly-reorder.entry.js.map +1 -1
  245. package/dist/esm/smoothly-trigger-sink.entry.js +2 -2
  246. package/dist/esm/smoothly-trigger-source.entry.js +4 -4
  247. package/dist/esm/smoothly-trigger-source.entry.js.map +1 -1
  248. package/dist/esm/smoothly.js +5 -4
  249. package/dist/esm/smoothly.js.map +1 -1
  250. package/dist/smoothly/index.esm.js +1 -1
  251. package/dist/smoothly/index.esm.js.map +1 -1
  252. package/dist/smoothly/{p-d4182274.entry.js → p-1efa3261.entry.js} +2 -2
  253. package/dist/smoothly/p-2a0c2387.js +2 -0
  254. package/dist/smoothly/p-2a0c2387.js.map +1 -0
  255. package/dist/smoothly/{p-e136b93e.entry.js → p-4d743f07.entry.js} +2 -2
  256. package/dist/smoothly/p-4ff439dd.entry.js +2 -0
  257. package/dist/smoothly/{p-5b28795c.entry.js.map → p-4ff439dd.entry.js.map} +1 -1
  258. package/dist/smoothly/{p-be2ff772.entry.js → p-5edb65c6.entry.js} +2 -2
  259. package/dist/smoothly/{p-c49d2094.entry.js → p-663ccbd0.entry.js} +2 -2
  260. package/dist/smoothly/p-73442332.entry.js +2 -0
  261. package/dist/smoothly/p-73442332.entry.js.map +1 -0
  262. package/dist/smoothly/{p-940af6d3.entry.js → p-9992c8c4.entry.js} +2 -2
  263. package/dist/smoothly/p-a6c4c2d4.entry.js +2 -0
  264. package/dist/smoothly/p-a6c4c2d4.entry.js.map +1 -0
  265. package/dist/smoothly/p-b9cb0514.js +2 -0
  266. package/dist/smoothly/p-b9cb0514.js.map +1 -0
  267. package/dist/smoothly/p-c833c402.js +2 -0
  268. package/dist/smoothly/p-c833c402.js.map +1 -0
  269. package/dist/smoothly/p-ce4e6f44.entry.js +2 -0
  270. package/dist/smoothly/p-ce4e6f44.entry.js.map +1 -0
  271. package/dist/smoothly/p-d0b8061e.js +3 -0
  272. package/dist/smoothly/p-d0b8061e.js.map +1 -0
  273. package/dist/smoothly/{p-79025273.entry.js → p-dbd1afa9.entry.js} +2 -2
  274. package/dist/smoothly/p-ede93d69.js +2 -0
  275. package/dist/smoothly/p-ede93d69.js.map +1 -0
  276. package/dist/smoothly/{p-712b362e.entry.js → p-f96e41aa.entry.js} +2 -2
  277. package/dist/smoothly/p-ff8acb9b.entry.js +2 -0
  278. package/dist/smoothly/p-ff8acb9b.entry.js.map +1 -0
  279. package/dist/smoothly/smoothly.esm.js +1 -1
  280. package/dist/smoothly/smoothly.esm.js.map +1 -1
  281. package/dist/types/components/Button.d.ts +1 -2
  282. package/dist/types/components/accordion/index.d.ts +1 -1
  283. package/dist/types/components/accordion-item/index.d.ts +5 -4
  284. package/dist/types/components/app/index.d.ts +25 -0
  285. package/dist/types/components/app/room/index.d.ts +25 -0
  286. package/dist/types/components/app-demo/index.d.ts +2 -0
  287. package/dist/types/components/backtotop/index.d.ts +1 -1
  288. package/dist/types/components/burger/index.d.ts +15 -0
  289. package/dist/types/components/button/index.d.ts +2 -2
  290. package/dist/types/components/checkbox/index.d.ts +4 -2
  291. package/dist/types/components/display/index.d.ts +1 -0
  292. package/dist/types/components/filter/input/index.d.ts +1 -1
  293. package/dist/types/components/form/index.d.ts +16 -3
  294. package/dist/types/components/frame/index.d.ts +1 -1
  295. package/dist/types/components/icon/index.d.ts +3 -9
  296. package/dist/types/components/input/Changeable.d.ts +7 -0
  297. package/dist/types/components/input/Input.d.ts +10 -0
  298. package/dist/types/components/input/Looks.d.ts +1 -0
  299. package/dist/types/components/input/Submittable.d.ts +6 -0
  300. package/dist/types/components/input/clear/index.d.ts +17 -0
  301. package/dist/types/components/input/date/index.d.ts +28 -0
  302. package/dist/types/components/input/date/range/index.d.ts +33 -0
  303. package/dist/types/components/input/demo/index.d.ts +8 -0
  304. package/dist/types/components/input/file/index.d.ts +24 -0
  305. package/dist/types/components/input/index.d.ts +17 -4
  306. package/dist/types/components/{input-month → input/month}/index.d.ts +1 -1
  307. package/dist/types/components/{selector → input/select}/index.d.ts +15 -3
  308. package/dist/types/components/notification/index.d.ts +3 -1
  309. package/dist/types/components/picker/demo/index.d.ts +18 -0
  310. package/dist/types/components/picker/index.d.ts +33 -45
  311. package/dist/types/components/picker/menu/index.d.ts +53 -0
  312. package/dist/types/components/picker/option/index.d.ts +23 -0
  313. package/dist/types/components/picker/slot-elements/index.d.ts +15 -0
  314. package/dist/types/components/picker/slotted-elements/index.d.ts +8 -0
  315. package/dist/types/components/radio/index.d.ts +1 -1
  316. package/dist/types/components/radio-button/index.d.ts +3 -5
  317. package/dist/types/components/select-demo/index.d.ts +0 -9
  318. package/dist/types/components/submit/index.d.ts +6 -1
  319. package/dist/types/components/summary/index.d.ts +4 -0
  320. package/dist/types/components/table/demo/filtered/index.d.ts +1 -1
  321. package/dist/types/components/table/expandable/cell/index.d.ts +4 -4
  322. package/dist/types/components/table/expandable/row/index.d.ts +3 -7
  323. package/dist/types/components/table/footer/index.d.ts +3 -0
  324. package/dist/types/components/table/index.d.ts +6 -3
  325. package/dist/types/components/table/row/index.d.ts +3 -1
  326. package/dist/types/components/table/testing/data.d.ts +5 -0
  327. package/dist/types/components/table/testing/index.d.ts +4 -0
  328. package/dist/types/components/theme/color/index.d.ts +5 -0
  329. package/dist/types/components/theme/color/variant/index.d.ts +6 -0
  330. package/dist/types/components/theme/colors/index.d.ts +3 -0
  331. package/dist/types/components/toggle-switch/index.d.ts +7 -2
  332. package/dist/types/components/trigger-source/index.d.ts +1 -1
  333. package/dist/types/components.d.ts +490 -226
  334. package/dist/types/global/Observers.d.ts +8 -0
  335. package/dist/types/global/index.d.ts +4 -0
  336. package/dist/types/index.d.ts +1 -4
  337. package/dist/types/model/Icon.d.ts +8 -0
  338. package/dist/types/model/Notice.d.ts +1 -1
  339. package/dist/types/model/Option.d.ts +24 -6
  340. package/dist/types/model/index.d.ts +4 -1
  341. package/dist/types/model/redirect.d.ts +1 -0
  342. package/dist/types/smoothly.d.ts +3 -0
  343. package/package.json +16 -16
  344. package/dist/cjs/Listenable-63ea2d90.js.map +0 -1
  345. package/dist/cjs/getLanguage-430ecf04.js.map +0 -1
  346. package/dist/cjs/index-8352a4e0.js.map +0 -1
  347. package/dist/cjs/index-b282ee83.js +0 -865
  348. package/dist/cjs/index-b282ee83.js.map +0 -1
  349. package/dist/cjs/smoothly-accordion_61.cjs.entry.js +0 -28113
  350. package/dist/cjs/smoothly-accordion_61.cjs.entry.js.map +0 -1
  351. package/dist/collection/components/App.js +0 -71
  352. package/dist/collection/components/App.js.map +0 -1
  353. package/dist/collection/components/form/Clearable.js.map +0 -1
  354. package/dist/collection/components/form/Data.js.map +0 -1
  355. package/dist/collection/components/input-date/index.js.map +0 -1
  356. package/dist/collection/components/input-date/style.css +0 -39
  357. package/dist/collection/components/input-date-range/index.js.map +0 -1
  358. package/dist/collection/components/input-date-range/style.css +0 -51
  359. package/dist/collection/components/input-demo/index.js +0 -45
  360. package/dist/collection/components/input-demo/index.js.map +0 -1
  361. package/dist/collection/components/input-month/index.js.map +0 -1
  362. package/dist/collection/components/menu-options/index.js +0 -413
  363. package/dist/collection/components/menu-options/index.js.map +0 -1
  364. package/dist/collection/components/menu-options/style.css +0 -18
  365. package/dist/collection/components/option/index.js +0 -270
  366. package/dist/collection/components/option/index.js.map +0 -1
  367. package/dist/collection/components/option/style.css +0 -42
  368. package/dist/collection/components/room/index.js +0 -90
  369. package/dist/collection/components/room/index.js.map +0 -1
  370. package/dist/collection/components/select/index.js +0 -108
  371. package/dist/collection/components/select/index.js.map +0 -1
  372. package/dist/collection/components/select/style.css +0 -20
  373. package/dist/collection/components/selector/index.js.map +0 -1
  374. package/dist/collection/components/selector/style.css +0 -46
  375. package/dist/esm/Listenable-fb6f4723.js.map +0 -1
  376. package/dist/esm/getLanguage-cccb8418.js.map +0 -1
  377. package/dist/esm/index-2e948fc3.js +0 -861
  378. package/dist/esm/index-2e948fc3.js.map +0 -1
  379. package/dist/esm/index-7b57a52c.js.map +0 -1
  380. package/dist/esm/smoothly-accordion_61.entry.js +0 -28049
  381. package/dist/esm/smoothly-accordion_61.entry.js.map +0 -1
  382. package/dist/smoothly/p-06337b89.js +0 -2
  383. package/dist/smoothly/p-06337b89.js.map +0 -1
  384. package/dist/smoothly/p-21341e18.entry.js +0 -2
  385. package/dist/smoothly/p-21341e18.entry.js.map +0 -1
  386. package/dist/smoothly/p-5b28795c.entry.js +0 -2
  387. package/dist/smoothly/p-5b6351f6.js +0 -2
  388. package/dist/smoothly/p-5b6351f6.js.map +0 -1
  389. package/dist/smoothly/p-70280a11.js +0 -2
  390. package/dist/smoothly/p-70280a11.js.map +0 -1
  391. package/dist/smoothly/p-b49664d8.entry.js +0 -2
  392. package/dist/smoothly/p-b49664d8.entry.js.map +0 -1
  393. package/dist/smoothly/p-b82efb2e.entry.js +0 -2
  394. package/dist/smoothly/p-b82efb2e.entry.js.map +0 -1
  395. package/dist/smoothly/p-c88ae468.js +0 -3
  396. package/dist/smoothly/p-c88ae468.js.map +0 -1
  397. package/dist/types/components/App.d.ts +0 -5
  398. package/dist/types/components/input-date/index.d.ts +0 -14
  399. package/dist/types/components/input-date-range/index.d.ts +0 -23
  400. package/dist/types/components/input-demo/index.d.ts +0 -3
  401. package/dist/types/components/menu-options/index.d.ts +0 -35
  402. package/dist/types/components/option/index.d.ts +0 -32
  403. package/dist/types/components/room/index.d.ts +0 -7
  404. package/dist/types/components/select/index.d.ts +0 -14
  405. /package/dist/collection/components/{form → input}/Clearable.js +0 -0
  406. /package/dist/collection/components/{input-month → input/month}/style.css +0 -0
  407. /package/dist/collection/{components/form → model}/Data.js +0 -0
  408. /package/dist/smoothly/{p-d4182274.entry.js.map → p-1efa3261.entry.js.map} +0 -0
  409. /package/dist/smoothly/{p-e136b93e.entry.js.map → p-4d743f07.entry.js.map} +0 -0
  410. /package/dist/smoothly/{p-be2ff772.entry.js.map → p-5edb65c6.entry.js.map} +0 -0
  411. /package/dist/smoothly/{p-c49d2094.entry.js.map → p-663ccbd0.entry.js.map} +0 -0
  412. /package/dist/smoothly/{p-940af6d3.entry.js.map → p-9992c8c4.entry.js.map} +0 -0
  413. /package/dist/smoothly/{p-79025273.entry.js.map → p-dbd1afa9.entry.js.map} +0 -0
  414. /package/dist/smoothly/{p-712b362e.entry.js.map → p-f96e41aa.entry.js.map} +0 -0
  415. /package/dist/types/components/{form → input}/Clearable.d.ts +0 -0
  416. /package/dist/types/{components/form → model}/Data.d.ts +0 -0
@@ -0,0 +1,298 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s)
4
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5
+ t[p] = s[p];
6
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
7
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
9
+ t[p[i]] = s[p[i]];
10
+ }
11
+ return t;
12
+ };
13
+ import { h, Host } from "@stencil/core";
14
+ export class SmoothlyPickerOption {
15
+ constructor() {
16
+ this.selected = false;
17
+ this.visible = true;
18
+ this.value = undefined;
19
+ this.search = [];
20
+ this.position = -1;
21
+ this.required = false;
22
+ this.readonly = false;
23
+ this.slotted = [];
24
+ }
25
+ get option() {
26
+ var _a;
27
+ return {
28
+ element: this.element,
29
+ selected: this.selected,
30
+ readonly: this.readonly,
31
+ required: this.required,
32
+ visible: this.visible,
33
+ search: this.search,
34
+ value: this.value,
35
+ slotted: this.slotted,
36
+ position: this.position >= 0 || !((_a = this.element.parentElement) === null || _a === void 0 ? void 0 : _a.parentElement)
37
+ ? this.position
38
+ : Array.from(this.element.parentElement.parentElement.children).indexOf(this.element.parentElement),
39
+ set: {
40
+ selected: selected => (this.selected = selected),
41
+ readonly: readonly => (this.readonly = readonly),
42
+ visible: visible => (this.visible = visible),
43
+ search: search => (this.search = search),
44
+ value: value => (this.value = value),
45
+ },
46
+ };
47
+ }
48
+ emitChange() {
49
+ if (this.element.parentElement)
50
+ this.smoothlyPickerOptionChange.emit(this.option);
51
+ }
52
+ componentWillLoad() {
53
+ if (this.required)
54
+ this.selected = true;
55
+ this.smoothlyPickerOptionLoad.emit(((_a) => {
56
+ var { slotted } = _a, option = __rest(_a, ["slotted"]);
57
+ return option;
58
+ })(this.option));
59
+ }
60
+ componentDidLoad() {
61
+ this.smoothlyPickerOptionLoaded.emit(this.option);
62
+ }
63
+ slottedChangeHandler(event) {
64
+ event.stopPropagation();
65
+ this.slotted = event.detail;
66
+ }
67
+ async clickHandler() {
68
+ if (!this.readonly && !this.required)
69
+ this.selected = !this.selected;
70
+ }
71
+ render() {
72
+ return (h(Host, { class: { visible: this.visible }, onClick: () => this.clickHandler() }, h("div", { part: "display", class: "display" }, h("slot", { name: "display" })), h("div", { part: "content", class: "content" }, h("smoothly-slotted-elements", { onSmoothlySlottedChange: e => this.slottedChangeHandler(e), clone: true }, h("slot", null)), h("slot", { name: "label" })), h("button", { type: "button" }, h("smoothly-icon", { name: this.selected ? "checkbox-outline" : "square-outline" }))));
73
+ }
74
+ static get is() { return "smoothly-picker-option"; }
75
+ static get encapsulation() { return "shadow"; }
76
+ static get originalStyleUrls() {
77
+ return {
78
+ "$": ["style.css"]
79
+ };
80
+ }
81
+ static get styleUrls() {
82
+ return {
83
+ "$": ["style.css"]
84
+ };
85
+ }
86
+ static get properties() {
87
+ return {
88
+ "selected": {
89
+ "type": "boolean",
90
+ "mutable": true,
91
+ "complexType": {
92
+ "original": "boolean",
93
+ "resolved": "boolean",
94
+ "references": {}
95
+ },
96
+ "required": false,
97
+ "optional": false,
98
+ "docs": {
99
+ "tags": [],
100
+ "text": ""
101
+ },
102
+ "attribute": "selected",
103
+ "reflect": true,
104
+ "defaultValue": "false"
105
+ },
106
+ "visible": {
107
+ "type": "boolean",
108
+ "mutable": true,
109
+ "complexType": {
110
+ "original": "boolean",
111
+ "resolved": "boolean",
112
+ "references": {}
113
+ },
114
+ "required": false,
115
+ "optional": false,
116
+ "docs": {
117
+ "tags": [],
118
+ "text": ""
119
+ },
120
+ "attribute": "visible",
121
+ "reflect": true,
122
+ "defaultValue": "true"
123
+ },
124
+ "value": {
125
+ "type": "any",
126
+ "mutable": true,
127
+ "complexType": {
128
+ "original": "any",
129
+ "resolved": "any",
130
+ "references": {}
131
+ },
132
+ "required": false,
133
+ "optional": false,
134
+ "docs": {
135
+ "tags": [],
136
+ "text": ""
137
+ },
138
+ "attribute": "value",
139
+ "reflect": false
140
+ },
141
+ "search": {
142
+ "type": "unknown",
143
+ "mutable": true,
144
+ "complexType": {
145
+ "original": "string[]",
146
+ "resolved": "string[]",
147
+ "references": {}
148
+ },
149
+ "required": false,
150
+ "optional": false,
151
+ "docs": {
152
+ "tags": [],
153
+ "text": ""
154
+ },
155
+ "defaultValue": "[]"
156
+ },
157
+ "position": {
158
+ "type": "number",
159
+ "mutable": false,
160
+ "complexType": {
161
+ "original": "number",
162
+ "resolved": "number",
163
+ "references": {}
164
+ },
165
+ "required": false,
166
+ "optional": false,
167
+ "docs": {
168
+ "tags": [],
169
+ "text": ""
170
+ },
171
+ "attribute": "position",
172
+ "reflect": true,
173
+ "defaultValue": "-1"
174
+ },
175
+ "required": {
176
+ "type": "boolean",
177
+ "mutable": false,
178
+ "complexType": {
179
+ "original": "boolean",
180
+ "resolved": "boolean",
181
+ "references": {}
182
+ },
183
+ "required": false,
184
+ "optional": false,
185
+ "docs": {
186
+ "tags": [],
187
+ "text": ""
188
+ },
189
+ "attribute": "required",
190
+ "reflect": true,
191
+ "defaultValue": "false"
192
+ }
193
+ };
194
+ }
195
+ static get states() {
196
+ return {
197
+ "readonly": {},
198
+ "slotted": {}
199
+ };
200
+ }
201
+ static get events() {
202
+ return [{
203
+ "method": "smoothlyPickerOptionLoad",
204
+ "name": "smoothlyPickerOptionLoad",
205
+ "bubbles": true,
206
+ "cancelable": true,
207
+ "composed": true,
208
+ "docs": {
209
+ "tags": [],
210
+ "text": ""
211
+ },
212
+ "complexType": {
213
+ "original": "Option.Load",
214
+ "resolved": "{ value: any; selected: boolean; required: boolean; readonly: boolean; element: HTMLSmoothlyPickerOptionElement; search: string[]; visible: boolean; position: number; set: { selected: (selected: boolean) => void; visible: (visible: boolean) => void; readonly: (readonly: boolean) => void; search: (search: string[]) => void; value: (value: any) => void; }; }",
215
+ "references": {
216
+ "Option": {
217
+ "location": "import",
218
+ "path": "../../../model"
219
+ }
220
+ }
221
+ }
222
+ }, {
223
+ "method": "smoothlyPickerOptionLoaded",
224
+ "name": "smoothlyPickerOptionLoaded",
225
+ "bubbles": true,
226
+ "cancelable": true,
227
+ "composed": true,
228
+ "docs": {
229
+ "tags": [],
230
+ "text": ""
231
+ },
232
+ "complexType": {
233
+ "original": "Option",
234
+ "resolved": "Option",
235
+ "references": {
236
+ "Option": {
237
+ "location": "import",
238
+ "path": "../../../model"
239
+ }
240
+ }
241
+ }
242
+ }, {
243
+ "method": "smoothlyPickerOptionChange",
244
+ "name": "smoothlyPickerOptionChange",
245
+ "bubbles": true,
246
+ "cancelable": true,
247
+ "composed": true,
248
+ "docs": {
249
+ "tags": [],
250
+ "text": ""
251
+ },
252
+ "complexType": {
253
+ "original": "Option",
254
+ "resolved": "Option",
255
+ "references": {
256
+ "Option": {
257
+ "location": "import",
258
+ "path": "../../../model"
259
+ }
260
+ }
261
+ }
262
+ }];
263
+ }
264
+ static get methods() {
265
+ return {
266
+ "clickHandler": {
267
+ "complexType": {
268
+ "signature": "() => Promise<void>",
269
+ "parameters": [],
270
+ "references": {
271
+ "Promise": {
272
+ "location": "global"
273
+ }
274
+ },
275
+ "return": "Promise<void>"
276
+ },
277
+ "docs": {
278
+ "text": "",
279
+ "tags": []
280
+ }
281
+ }
282
+ };
283
+ }
284
+ static get elementRef() { return "element"; }
285
+ static get watchers() {
286
+ return [{
287
+ "propName": "position",
288
+ "methodName": "emitChange"
289
+ }, {
290
+ "propName": "selected",
291
+ "methodName": "emitChange"
292
+ }, {
293
+ "propName": "slotted",
294
+ "methodName": "emitChange"
295
+ }];
296
+ }
297
+ }
298
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/picker/option/index.tsx"],"names":[],"mappings":"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","sourcesContent":["import { Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch } from \"@stencil/core\"\nimport { Option } from \"../../../model\"\n@Component({\n\ttag: \"smoothly-picker-option\",\n\tstyleUrl: \"style.css\",\n\tshadow: true,\n})\nexport class SmoothlyPickerOption {\n\t@Element() element: HTMLSmoothlyPickerOptionElement\n\t@Prop({ mutable: true, reflect: true }) selected = false\n\t@Prop({ mutable: true, reflect: true }) visible = true\n\t@Prop({ mutable: true }) value: any\n\t@Prop({ mutable: true }) search: string[] = []\n\t@Prop({ reflect: true }) position = -1\n\t@Prop({ reflect: true }) required = false\n\t@State() readonly = false\n\t@State() slotted: Node[] = []\n\t@Event() smoothlyPickerOptionLoad: EventEmitter<Option.Load>\n\t@Event() smoothlyPickerOptionLoaded: EventEmitter<Option>\n\t@Event() smoothlyPickerOptionChange: EventEmitter<Option>\n\n\tget option(): Option {\n\t\treturn {\n\t\t\telement: this.element,\n\t\t\tselected: this.selected,\n\t\t\treadonly: this.readonly,\n\t\t\trequired: this.required,\n\t\t\tvisible: this.visible,\n\t\t\tsearch: this.search,\n\t\t\tvalue: this.value,\n\t\t\tslotted: this.slotted,\n\t\t\tposition:\n\t\t\t\tthis.position >= 0 || !this.element.parentElement?.parentElement\n\t\t\t\t\t? this.position\n\t\t\t\t\t: Array.from(this.element.parentElement.parentElement.children).indexOf(this.element.parentElement),\n\t\t\tset: {\n\t\t\t\tselected: selected => (this.selected = selected),\n\t\t\t\treadonly: readonly => (this.readonly = readonly),\n\t\t\t\tvisible: visible => (this.visible = visible),\n\t\t\t\tsearch: search => (this.search = search),\n\t\t\t\tvalue: value => (this.value = value),\n\t\t\t},\n\t\t}\n\t}\n\t@Watch(\"position\")\n\t@Watch(\"selected\")\n\t@Watch(\"slotted\")\n\temitChange() {\n\t\tif (this.element.parentElement)\n\t\t\tthis.smoothlyPickerOptionChange.emit(this.option)\n\t}\n\n\tcomponentWillLoad() {\n\t\tif (this.required)\n\t\t\tthis.selected = true\n\t\tthis.smoothlyPickerOptionLoad.emit((({ slotted, ...option }) => option)(this.option))\n\t}\n\tcomponentDidLoad() {\n\t\tthis.smoothlyPickerOptionLoaded.emit(this.option)\n\t}\n\tslottedChangeHandler(event: CustomEvent<Node[]>) {\n\t\tevent.stopPropagation()\n\t\tthis.slotted = event.detail\n\t}\n\t@Method()\n\tasync clickHandler() {\n\t\tif (!this.readonly && !this.required)\n\t\t\tthis.selected = !this.selected\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={{ visible: this.visible }} onClick={() => this.clickHandler()}>\n\t\t\t\t<div part=\"display\" class={\"display\"}>\n\t\t\t\t\t<slot name=\"display\" />\n\t\t\t\t</div>\n\t\t\t\t<div part=\"content\" class={\"content\"}>\n\t\t\t\t\t<smoothly-slotted-elements onSmoothlySlottedChange={e => this.slottedChangeHandler(e)} clone>\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</smoothly-slotted-elements>\n\t\t\t\t\t<slot name={\"label\"} />\n\t\t\t\t</div>\n\t\t\t\t<button type={\"button\"}>\n\t\t\t\t\t<smoothly-icon name={this.selected ? \"checkbox-outline\" : \"square-outline\"} />\n\t\t\t\t</button>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"]}
@@ -0,0 +1,30 @@
1
+ :host {
2
+ display: contents;
3
+ }
4
+ :host(:not([visible])) {
5
+ display: none;
6
+ }
7
+ :host > * {
8
+ cursor: pointer;
9
+ padding: 0.25ch 0.5rem
10
+ }
11
+ :host .display {
12
+ padding-left: 0;
13
+ }
14
+ :host button {
15
+ color: unset;
16
+ background-color: inherit;
17
+ border: none;
18
+ padding-right: 0;
19
+ }
20
+ :host .content {
21
+ display: flex;
22
+ column-gap: 1rem;
23
+ justify-content: space-between;
24
+ }
25
+ :host([required]) > * {
26
+ cursor: default;
27
+ }
28
+ :host([required]) button {
29
+ opacity: 0.65;
30
+ }
@@ -0,0 +1,109 @@
1
+ import { h, Host } from "@stencil/core";
2
+ export class SmoothlySlotElements {
3
+ constructor() {
4
+ this.clone = true;
5
+ this.nodes = undefined;
6
+ }
7
+ componentWillLoad() {
8
+ if (!this.nodes)
9
+ this.smoothlySlotEmpty.emit({
10
+ set: {
11
+ nodes: nodes => (this.nodes = nodes),
12
+ },
13
+ });
14
+ }
15
+ componentDidLoad() {
16
+ this.element.innerHTML = "";
17
+ if (this.nodes)
18
+ if (Array.isArray(this.nodes))
19
+ this.nodes.forEach(node => this.element.appendChild(this.clone ? node.cloneNode(true) : node));
20
+ else
21
+ this.element.appendChild(this.clone ? this.nodes.cloneNode(true) : this.nodes);
22
+ }
23
+ render() {
24
+ return (h(Host, null, h("slot", null)));
25
+ }
26
+ static get is() { return "smoothly-slot-elements"; }
27
+ static get encapsulation() { return "scoped"; }
28
+ static get originalStyleUrls() {
29
+ return {
30
+ "$": ["style.css"]
31
+ };
32
+ }
33
+ static get styleUrls() {
34
+ return {
35
+ "$": ["style.css"]
36
+ };
37
+ }
38
+ static get properties() {
39
+ return {
40
+ "clone": {
41
+ "type": "boolean",
42
+ "mutable": false,
43
+ "complexType": {
44
+ "original": "boolean",
45
+ "resolved": "boolean",
46
+ "references": {}
47
+ },
48
+ "required": false,
49
+ "optional": false,
50
+ "docs": {
51
+ "tags": [],
52
+ "text": ""
53
+ },
54
+ "attribute": "clone",
55
+ "reflect": false,
56
+ "defaultValue": "true"
57
+ },
58
+ "nodes": {
59
+ "type": "unknown",
60
+ "mutable": true,
61
+ "complexType": {
62
+ "original": "Node | Node[]",
63
+ "resolved": "Node | Node[] | undefined",
64
+ "references": {
65
+ "Node": {
66
+ "location": "global"
67
+ }
68
+ }
69
+ },
70
+ "required": false,
71
+ "optional": true,
72
+ "docs": {
73
+ "tags": [],
74
+ "text": ""
75
+ }
76
+ }
77
+ };
78
+ }
79
+ static get events() {
80
+ return [{
81
+ "method": "smoothlySlotEmpty",
82
+ "name": "smoothlySlotEmpty",
83
+ "bubbles": true,
84
+ "cancelable": true,
85
+ "composed": true,
86
+ "docs": {
87
+ "tags": [],
88
+ "text": ""
89
+ },
90
+ "complexType": {
91
+ "original": "Slot",
92
+ "resolved": "Slot",
93
+ "references": {
94
+ "Slot": {
95
+ "location": "local"
96
+ }
97
+ }
98
+ }
99
+ }];
100
+ }
101
+ static get elementRef() { return "element"; }
102
+ static get watchers() {
103
+ return [{
104
+ "propName": "nodes",
105
+ "methodName": "componentDidLoad"
106
+ }];
107
+ }
108
+ }
109
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/picker/slot-elements/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AAa7F,MAAM,OAAO,oBAAoB;;iBAEhB,IAAI;;;EAIpB,iBAAiB;IAChB,IAAI,CAAC,IAAI,CAAC,KAAK;MACd,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC;QAC3B,GAAG,EAAE;UACJ,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;SACpC;OACD,CAAC,CAAA;EACJ,CAAC;EAGD,gBAAgB;IACf,IAAI,CAAC,OAAO,CAAC,SAAS,GAAG,EAAE,CAAA;IAC3B,IAAI,IAAI,CAAC,KAAK;MACb,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC;QAC5B,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAA;;QAE9F,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;EACjF,CAAC;EACD,MAAM;IACL,OAAO,CACN,EAAC,IAAI;MACJ,eAAQ,CACF,CACP,CAAA;EACF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, Element, Event, EventEmitter, h, Host, Prop, Watch } from \"@stencil/core\"\n\nexport interface Slot {\n\tset: {\n\t\tnodes: (nodes: Node | Node[]) => void\n\t}\n}\n\n@Component({\n\ttag: \"smoothly-slot-elements\",\n\tstyleUrl: \"style.css\",\n\tscoped: true,\n})\nexport class SmoothlySlotElements {\n\t@Element() element: HTMLElement\n\t@Prop() clone = true\n\t@Prop({ mutable: true }) nodes?: Node | Node[]\n\t@Event() smoothlySlotEmpty: EventEmitter<Slot>\n\n\tcomponentWillLoad() {\n\t\tif (!this.nodes)\n\t\t\tthis.smoothlySlotEmpty.emit({\n\t\t\t\tset: {\n\t\t\t\t\tnodes: nodes => (this.nodes = nodes),\n\t\t\t\t},\n\t\t\t})\n\t}\n\n\t@Watch(\"nodes\")\n\tcomponentDidLoad() {\n\t\tthis.element.innerHTML = \"\"\n\t\tif (this.nodes)\n\t\t\tif (Array.isArray(this.nodes))\n\t\t\t\tthis.nodes.forEach(node => this.element.appendChild(this.clone ? node.cloneNode(true) : node))\n\t\t\telse\n\t\t\t\tthis.element.appendChild(this.clone ? this.nodes.cloneNode(true) : this.nodes)\n\t}\n\trender() {\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t<slot />\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"]}
@@ -0,0 +1,3 @@
1
+ :host {
2
+ display: contents;
3
+ }
@@ -0,0 +1,84 @@
1
+ import { h, Host } from "@stencil/core";
2
+ export class SmoothlySottedElement {
3
+ constructor() {
4
+ this.clone = true;
5
+ }
6
+ componentDidRender() {
7
+ const slotted = Array.from(this.element.childNodes, child => {
8
+ let result;
9
+ if (child instanceof HTMLSlotElement) {
10
+ const assigned = child.assignedNodes();
11
+ result = assigned.length
12
+ ? assigned.map(child => (this.clone ? child.cloneNode(true) : child))
13
+ : this.clone
14
+ ? child.cloneNode(true)
15
+ : child;
16
+ }
17
+ else
18
+ result = child;
19
+ return result;
20
+ }).flat();
21
+ this.smoothlySlottedChange.emit(Array.from(slotted, child => (this.clone ? child.cloneNode(true) : child)));
22
+ }
23
+ render() {
24
+ return (h(Host, null, h("slot", null)));
25
+ }
26
+ static get is() { return "smoothly-slotted-elements"; }
27
+ static get encapsulation() { return "scoped"; }
28
+ static get originalStyleUrls() {
29
+ return {
30
+ "$": ["style.css"]
31
+ };
32
+ }
33
+ static get styleUrls() {
34
+ return {
35
+ "$": ["style.css"]
36
+ };
37
+ }
38
+ static get properties() {
39
+ return {
40
+ "clone": {
41
+ "type": "boolean",
42
+ "mutable": false,
43
+ "complexType": {
44
+ "original": "boolean",
45
+ "resolved": "boolean",
46
+ "references": {}
47
+ },
48
+ "required": false,
49
+ "optional": false,
50
+ "docs": {
51
+ "tags": [],
52
+ "text": ""
53
+ },
54
+ "attribute": "clone",
55
+ "reflect": false,
56
+ "defaultValue": "true"
57
+ }
58
+ };
59
+ }
60
+ static get events() {
61
+ return [{
62
+ "method": "smoothlySlottedChange",
63
+ "name": "smoothlySlottedChange",
64
+ "bubbles": true,
65
+ "cancelable": true,
66
+ "composed": true,
67
+ "docs": {
68
+ "tags": [],
69
+ "text": ""
70
+ },
71
+ "complexType": {
72
+ "original": "Node[]",
73
+ "resolved": "Node[]",
74
+ "references": {
75
+ "Node": {
76
+ "location": "global"
77
+ }
78
+ }
79
+ }
80
+ }];
81
+ }
82
+ static get elementRef() { return "element"; }
83
+ }
84
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/picker/slotted-elements/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AAOtF,MAAM,OAAO,qBAAqB;;iBAEjB,IAAI;;EAGpB,kBAAkB;IACjB,MAAM,OAAO,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,KAAK,CAAC,EAAE;MAC3D,IAAI,MAAqB,CAAA;MACzB,IAAI,KAAK,YAAY,eAAe,EAAE;QACrC,MAAM,QAAQ,GAAG,KAAK,CAAC,aAAa,EAAE,CAAA;QACtC,MAAM,GAAG,QAAQ,CAAC,MAAM;UACvB,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;UACrE,CAAC,CAAC,IAAI,CAAC,KAAK;YACZ,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC;YACvB,CAAC,CAAC,KAAK,CAAA;OACR;;QACA,MAAM,GAAG,KAAK,CAAA;MACf,OAAO,MAAM,CAAA;IACd,CAAC,CAAC,CAAC,IAAI,EAAE,CAAA;IACT,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;EAC5G,CAAC;EACD,MAAM;IACL,OAAO,CACN,EAAC,IAAI;MACJ,eAAQ,CACF,CACP,CAAA;EACF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, Element, Event, EventEmitter, h, Host, Prop } from \"@stencil/core\"\n\n@Component({\n\ttag: \"smoothly-slotted-elements\",\n\tstyleUrl: \"style.css\",\n\tscoped: true,\n})\nexport class SmoothlySottedElement {\n\t@Element() element: HTMLElement\n\t@Prop() clone = true\n\t@Event() smoothlySlottedChange: EventEmitter<Node[]>\n\n\tcomponentDidRender() {\n\t\tconst slotted = Array.from(this.element.childNodes, child => {\n\t\t\tlet result: Node | Node[]\n\t\t\tif (child instanceof HTMLSlotElement) {\n\t\t\t\tconst assigned = child.assignedNodes()\n\t\t\t\tresult = assigned.length\n\t\t\t\t\t? assigned.map(child => (this.clone ? child.cloneNode(true) : child))\n\t\t\t\t\t: this.clone\n\t\t\t\t\t? child.cloneNode(true)\n\t\t\t\t\t: child\n\t\t\t} else\n\t\t\t\tresult = child\n\t\t\treturn result\n\t\t}).flat()\n\t\tthis.smoothlySlottedChange.emit(Array.from(slotted, child => (this.clone ? child.cloneNode(true) : child)))\n\t}\n\trender() {\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t<slot />\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"]}
@@ -0,0 +1,3 @@
1
+ :host {
2
+ display: contents;
3
+ }