smoothly 0.3.38 → 1.0.0-alpha.10

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 (392) hide show
  1. package/dist/cjs/GoogleFont-6c4f0da1.js +2 -0
  2. package/dist/cjs/GoogleFont-6c4f0da1.js.map +1 -0
  3. package/dist/cjs/Listenable-c8d2f8ef.js +2 -0
  4. package/dist/cjs/Listenable-c8d2f8ef.js.map +1 -0
  5. package/dist/cjs/getLanguage-430ecf04.js +2 -0
  6. package/dist/cjs/getLanguage-430ecf04.js.map +1 -0
  7. package/dist/cjs/{index-de46f836.js → index-8352a4e0.js} +106 -1
  8. package/dist/cjs/index-8352a4e0.js.map +1 -0
  9. package/dist/cjs/{index-879bbabb.js → index-b282ee83.js} +3 -1
  10. package/dist/cjs/index-b282ee83.js.map +1 -0
  11. package/dist/cjs/index.cjs.js +4 -2
  12. package/dist/cjs/index.cjs.js.map +1 -0
  13. package/dist/cjs/loader.cjs.js +6 -3
  14. package/dist/cjs/loader.cjs.js.map +1 -0
  15. package/dist/cjs/{smoothly-accordion_53.cjs.entry.js → smoothly-accordion_60.cjs.entry.js} +5430 -460
  16. package/dist/cjs/smoothly-accordion_60.cjs.entry.js.map +1 -0
  17. package/dist/cjs/smoothly-address-display.cjs.entry.js +32 -0
  18. package/dist/cjs/smoothly-address-display.cjs.entry.js.map +1 -0
  19. package/dist/cjs/smoothly-address.cjs.entry.js +23 -0
  20. package/dist/cjs/smoothly-address.cjs.entry.js.map +1 -0
  21. package/dist/cjs/smoothly-addresses.cjs.entry.js +23 -0
  22. package/dist/cjs/smoothly-addresses.cjs.entry.js.map +1 -0
  23. package/dist/cjs/smoothly-color.cjs.entry.js +22 -0
  24. package/dist/cjs/smoothly-color.cjs.entry.js.map +1 -0
  25. package/dist/cjs/smoothly-country.cjs.entry.js +3 -1
  26. package/dist/cjs/smoothly-country.cjs.entry.js.map +1 -0
  27. package/dist/cjs/smoothly-google-font.cjs.entry.js +3 -1
  28. package/dist/cjs/smoothly-google-font.cjs.entry.js.map +1 -0
  29. package/dist/cjs/smoothly-radio-group.cjs.entry.js +3 -1
  30. package/dist/cjs/smoothly-radio-group.cjs.entry.js.map +1 -0
  31. package/dist/cjs/smoothly-reorder.cjs.entry.js +3 -1
  32. package/dist/cjs/smoothly-reorder.cjs.entry.js.map +1 -0
  33. package/dist/cjs/smoothly-trigger-sink.cjs.entry.js +3 -1
  34. package/dist/cjs/smoothly-trigger-sink.cjs.entry.js.map +1 -0
  35. package/dist/cjs/smoothly-trigger-source.cjs.entry.js +3 -1
  36. package/dist/cjs/smoothly-trigger-source.cjs.entry.js.map +1 -0
  37. package/dist/cjs/smoothly.cjs.js +9 -3
  38. package/dist/cjs/smoothly.cjs.js.map +1 -0
  39. package/dist/collection/collection-manifest.json +12 -1
  40. package/dist/collection/components/App.js +1 -0
  41. package/dist/collection/components/App.js.map +1 -0
  42. package/dist/collection/components/Button.js +5 -0
  43. package/dist/collection/components/Button.js.map +1 -0
  44. package/dist/collection/components/accordion/index.js +1 -0
  45. package/dist/collection/components/accordion/index.js.map +1 -0
  46. package/dist/collection/components/accordion-item/index.js +1 -0
  47. package/dist/collection/components/accordion-item/index.js.map +1 -0
  48. package/dist/collection/components/address/index.js +65 -0
  49. package/dist/collection/components/address/index.js.map +1 -0
  50. package/dist/collection/components/address/style.css +4 -0
  51. package/dist/collection/components/address-display/index.js +72 -0
  52. package/dist/collection/components/address-display/index.js.map +1 -0
  53. package/dist/collection/components/address-display/style.css +4 -0
  54. package/dist/collection/components/addresses/index.js +62 -0
  55. package/dist/collection/components/addresses/index.js.map +1 -0
  56. package/dist/collection/components/addresses/style.css +4 -0
  57. package/dist/collection/components/app/index.js +1 -0
  58. package/dist/collection/components/app/index.js.map +1 -0
  59. package/dist/collection/components/app-demo/index.js +1 -0
  60. package/dist/collection/components/app-demo/index.js.map +1 -0
  61. package/dist/collection/components/backtotop/index.js +1 -0
  62. package/dist/collection/components/backtotop/index.js.map +1 -0
  63. package/dist/collection/components/button/index.js +50 -26
  64. package/dist/collection/components/button/index.js.map +1 -0
  65. package/dist/collection/components/button/style.css +184 -31
  66. package/dist/collection/components/calendar/generate.js +1 -0
  67. package/dist/collection/components/calendar/generate.js.map +1 -0
  68. package/dist/collection/components/calendar/index.js +25 -46
  69. package/dist/collection/components/calendar/index.js.map +1 -0
  70. package/dist/collection/components/calendar/style.css +8 -12
  71. package/dist/collection/components/checkbox/index.js +90 -41
  72. package/dist/collection/components/checkbox/index.js.map +1 -0
  73. package/dist/collection/components/checkbox/style.css +56 -9
  74. package/dist/collection/components/checkbox/translation/index.js +1 -0
  75. package/dist/collection/components/checkbox/translation/index.js.map +1 -0
  76. package/dist/collection/components/checkbox/translation/sv.js +1 -0
  77. package/dist/collection/components/checkbox/translation/sv.js.map +1 -0
  78. package/dist/collection/components/color/index.js +48 -0
  79. package/dist/collection/components/color/index.js.map +1 -0
  80. package/dist/collection/components/color/style.css +69 -0
  81. package/dist/collection/components/country/index.js +1 -0
  82. package/dist/collection/components/country/index.js.map +1 -0
  83. package/dist/collection/components/dialog/index.js +1 -0
  84. package/dist/collection/components/dialog/index.js.map +1 -0
  85. package/dist/collection/components/dialog-demo/index.js +1 -0
  86. package/dist/collection/components/dialog-demo/index.js.map +1 -0
  87. package/dist/collection/components/display/index.js +1 -0
  88. package/dist/collection/components/display/index.js.map +1 -0
  89. package/dist/collection/components/display-amount/index.js +1 -0
  90. package/dist/collection/components/display-amount/index.js.map +1 -0
  91. package/dist/collection/components/display-date-time/index.js +1 -0
  92. package/dist/collection/components/display-date-time/index.js.map +1 -0
  93. package/dist/collection/components/display-demo/index.js +2 -1
  94. package/dist/collection/components/display-demo/index.js.map +1 -0
  95. package/dist/collection/components/filter/Clearable.js +8 -0
  96. package/dist/collection/components/filter/Clearable.js.map +1 -0
  97. package/dist/collection/components/filter/index.js +186 -0
  98. package/dist/collection/components/filter/index.js.map +1 -0
  99. package/dist/collection/components/filter/input/index.js +376 -0
  100. package/dist/collection/components/filter/input/index.js.map +1 -0
  101. package/dist/collection/components/filter/input/style.css +5 -0
  102. package/dist/collection/components/filter/style.css +106 -0
  103. package/dist/collection/components/form/Clearable.js +8 -0
  104. package/dist/collection/components/form/Clearable.js.map +1 -0
  105. package/dist/collection/components/form/Data.js +15 -0
  106. package/dist/collection/components/form/Data.js.map +1 -0
  107. package/dist/collection/components/form/index.js +251 -0
  108. package/dist/collection/components/form/index.js.map +1 -0
  109. package/dist/collection/components/form/style.css +50 -0
  110. package/dist/collection/components/frame/index.js +13 -9
  111. package/dist/collection/components/frame/index.js.map +1 -0
  112. package/dist/collection/components/google-font/index.js +1 -0
  113. package/dist/collection/components/google-font/index.js.map +1 -0
  114. package/dist/collection/components/icon/index.js +7 -1
  115. package/dist/collection/components/icon/index.js.map +1 -0
  116. package/dist/collection/components/icon-demo/index.js +1 -0
  117. package/dist/collection/components/icon-demo/index.js.map +1 -0
  118. package/dist/collection/components/input/index.js +38 -10
  119. package/dist/collection/components/input/index.js.map +1 -0
  120. package/dist/collection/components/input/style.css +11 -6
  121. package/dist/collection/components/input-date/index.js +3 -26
  122. package/dist/collection/components/input-date/index.js.map +1 -0
  123. package/dist/collection/components/input-date/style.css +4 -4
  124. package/dist/collection/components/input-date-range/index.js +1 -0
  125. package/dist/collection/components/input-date-range/index.js.map +1 -0
  126. package/dist/collection/components/input-demo/index.js +38 -1
  127. package/dist/collection/components/input-demo/index.js.map +1 -0
  128. package/dist/collection/components/input-demo/style.css +4 -0
  129. package/dist/collection/components/input-month/index.js +1 -0
  130. package/dist/collection/components/input-month/index.js.map +1 -0
  131. package/dist/collection/components/item/index.js +1 -0
  132. package/dist/collection/components/item/index.js.map +1 -0
  133. package/dist/collection/components/menu-options/index.js +1 -0
  134. package/dist/collection/components/menu-options/index.js.map +1 -0
  135. package/dist/collection/components/notification/index.js +1 -0
  136. package/dist/collection/components/notification/index.js.map +1 -0
  137. package/dist/collection/components/notifier/index.js +1 -0
  138. package/dist/collection/components/notifier/index.js.map +1 -0
  139. package/dist/collection/components/option/index.js +1 -0
  140. package/dist/collection/components/option/index.js.map +1 -0
  141. package/dist/collection/components/picker/index.js +1 -0
  142. package/dist/collection/components/picker/index.js.map +1 -0
  143. package/dist/collection/components/popup/index.js +1 -0
  144. package/dist/collection/components/popup/index.js.map +1 -0
  145. package/dist/collection/components/quiet/index.js +1 -0
  146. package/dist/collection/components/quiet/index.js.map +1 -0
  147. package/dist/collection/components/radio/index.js +1 -0
  148. package/dist/collection/components/radio/index.js.map +1 -0
  149. package/dist/collection/components/radio/style.css +1 -1
  150. package/dist/collection/components/radio-button/Selected.js +1 -0
  151. package/dist/collection/components/radio-button/Selected.js.map +1 -0
  152. package/dist/collection/components/radio-button/index.js +1 -0
  153. package/dist/collection/components/radio-button/index.js.map +1 -0
  154. package/dist/collection/components/radio-button/item/index.js +6 -6
  155. package/dist/collection/components/radio-button/item/index.js.map +1 -0
  156. package/dist/collection/components/radio-button/item/style.css +4 -19
  157. package/dist/collection/components/radio-group/index.js +1 -0
  158. package/dist/collection/components/radio-group/index.js.map +1 -0
  159. package/dist/collection/components/reorder/Draggable.js +1 -0
  160. package/dist/collection/components/reorder/Draggable.js.map +1 -0
  161. package/dist/collection/components/reorder/Dragged.js +1 -0
  162. package/dist/collection/components/reorder/Dragged.js.map +1 -0
  163. package/dist/collection/components/reorder/index.js +1 -0
  164. package/dist/collection/components/reorder/index.js.map +1 -0
  165. package/dist/collection/components/room/index.js +1 -0
  166. package/dist/collection/components/room/index.js.map +1 -0
  167. package/dist/collection/components/select/index.js +1 -0
  168. package/dist/collection/components/select/index.js.map +1 -0
  169. package/dist/collection/components/select-demo/index.js +1 -1
  170. package/dist/collection/components/select-demo/index.js.map +1 -0
  171. package/dist/collection/components/selector/index.js +1 -0
  172. package/dist/collection/components/selector/index.js.map +1 -0
  173. package/dist/collection/components/skeleton/index.js +1 -0
  174. package/dist/collection/components/skeleton/index.js.map +1 -0
  175. package/dist/collection/components/spinner/index.js +1 -0
  176. package/dist/collection/components/spinner/index.js.map +1 -0
  177. package/dist/collection/components/submit/index.js +59 -116
  178. package/dist/collection/components/submit/index.js.map +1 -0
  179. package/dist/collection/components/summary/index.js +92 -0
  180. package/dist/collection/components/summary/index.js.map +1 -0
  181. package/dist/collection/components/summary/style.css +31 -0
  182. package/dist/collection/components/svg/index.js +1 -0
  183. package/dist/collection/components/svg/index.js.map +1 -0
  184. package/dist/collection/components/tab/index.js +1 -0
  185. package/dist/collection/components/tab/index.js.map +1 -0
  186. package/dist/collection/components/tab-switch/index.js +1 -0
  187. package/dist/collection/components/tab-switch/index.js.map +1 -0
  188. package/dist/collection/components/table/Selector.js +44 -0
  189. package/dist/collection/components/table/Selector.js.map +1 -0
  190. package/dist/collection/components/table/cell/index.js +1 -0
  191. package/dist/collection/components/table/cell/index.js.map +1 -0
  192. package/dist/collection/components/table/cell/style.css +10 -0
  193. package/dist/collection/components/table/demo/filtered/Root.js +2 -0
  194. package/dist/collection/components/table/demo/filtered/Root.js.map +1 -0
  195. package/dist/collection/components/table/demo/filtered/index.js +66 -0
  196. package/dist/collection/components/table/demo/filtered/index.js.map +1 -0
  197. package/dist/collection/components/table/demo/filtered/style.css +3 -0
  198. package/dist/collection/components/table/demo/index.js +4 -1
  199. package/dist/collection/components/table/demo/index.js.map +1 -0
  200. package/dist/collection/components/table/expandable/cell/index.js +1 -5
  201. package/dist/collection/components/table/expandable/cell/index.js.map +1 -0
  202. package/dist/collection/components/table/expandable/cell/style.css +10 -0
  203. package/dist/collection/components/table/expandable/row/index.js +1 -0
  204. package/dist/collection/components/table/expandable/row/index.js.map +1 -0
  205. package/dist/collection/components/table/header/index.js +1 -0
  206. package/dist/collection/components/table/header/index.js.map +1 -0
  207. package/dist/collection/components/table/header/style.css +11 -0
  208. package/dist/collection/components/table/index.js +20 -0
  209. package/dist/collection/components/table/index.js.map +1 -0
  210. package/dist/collection/components/table/row/index.js +1 -0
  211. package/dist/collection/components/table/row/index.js.map +1 -0
  212. package/dist/collection/components/toggle/style.css +36 -0
  213. package/dist/collection/components/toggle/toggle.js +129 -0
  214. package/dist/collection/components/toggle/toggle.js.map +1 -0
  215. package/dist/collection/components/toggle-switch/index.js +118 -0
  216. package/dist/collection/components/toggle-switch/index.js.map +1 -0
  217. package/dist/collection/components/toggle-switch/style.css +56 -0
  218. package/dist/collection/components/trigger/index.js +1 -23
  219. package/dist/collection/components/trigger/index.js.map +1 -0
  220. package/dist/collection/components/trigger/style.css +2 -2
  221. package/dist/collection/components/trigger-sink/index.js +1 -0
  222. package/dist/collection/components/trigger-sink/index.js.map +1 -0
  223. package/dist/collection/components/trigger-source/index.js +1 -0
  224. package/dist/collection/components/trigger-source/index.js.map +1 -0
  225. package/dist/collection/components/tuple/index.js +1 -0
  226. package/dist/collection/components/tuple/index.js.map +1 -0
  227. package/dist/collection/components/urlencoded/index.js +1 -0
  228. package/dist/collection/components/urlencoded/index.js.map +1 -0
  229. package/dist/collection/index.js +1 -0
  230. package/dist/collection/index.js.map +1 -0
  231. package/dist/collection/model/Autocomplete.js +1 -0
  232. package/dist/collection/model/Autocomplete.js.map +1 -0
  233. package/dist/collection/model/ClientIdentifier.js +1 -0
  234. package/dist/collection/model/ClientIdentifier.js.map +1 -0
  235. package/dist/collection/model/Color.js +1 -0
  236. package/dist/collection/model/Color.js.map +1 -0
  237. package/dist/collection/model/Fill.js +1 -0
  238. package/dist/collection/model/Fill.js.map +1 -0
  239. package/dist/collection/model/GoogleFont.js +1 -0
  240. package/dist/collection/model/GoogleFont.js.map +1 -0
  241. package/dist/collection/model/Listenable.js +1 -0
  242. package/dist/collection/model/Listenable.js.map +1 -0
  243. package/dist/collection/model/Message.js +1 -0
  244. package/dist/collection/model/Message.js.map +1 -0
  245. package/dist/collection/model/Notice.js +1 -0
  246. package/dist/collection/model/Notice.js.map +1 -0
  247. package/dist/collection/model/Option.js +1 -0
  248. package/dist/collection/model/Option.js.map +1 -0
  249. package/dist/collection/model/Trigger.js +1 -0
  250. package/dist/collection/model/Trigger.js.map +1 -0
  251. package/dist/collection/model/index.js +1 -0
  252. package/dist/collection/model/index.js.map +1 -0
  253. package/dist/collection/utilities/Cosmetic/Color/CommaRgb.js +1 -0
  254. package/dist/collection/utilities/Cosmetic/Color/CommaRgb.js.map +1 -0
  255. package/dist/collection/utilities/Cosmetic/Color/Hex.js +1 -0
  256. package/dist/collection/utilities/Cosmetic/Color/Hex.js.map +1 -0
  257. package/dist/collection/utilities/Cosmetic/Color/Hsl.js +1 -0
  258. package/dist/collection/utilities/Cosmetic/Color/Hsl.js.map +1 -0
  259. package/dist/collection/utilities/Cosmetic/Color/Name.js +1 -0
  260. package/dist/collection/utilities/Cosmetic/Color/Name.js.map +1 -0
  261. package/dist/collection/utilities/Cosmetic/Color/Rgb.js +1 -0
  262. package/dist/collection/utilities/Cosmetic/Color/Rgb.js.map +1 -0
  263. package/dist/collection/utilities/Cosmetic/Color/index.js +1 -0
  264. package/dist/collection/utilities/Cosmetic/Color/index.js.map +1 -0
  265. package/dist/collection/utilities/Cosmetic/index.js +1 -0
  266. package/dist/collection/utilities/Cosmetic/index.js.map +1 -0
  267. package/dist/collection/utilities/index.js +1 -0
  268. package/dist/collection/utilities/index.js.map +1 -0
  269. package/dist/custom-elements/index.d.ts +66 -0
  270. package/dist/custom-elements/index.js +5708 -644
  271. package/dist/custom-elements/index.js.map +1 -0
  272. package/dist/esm/GoogleFont-8474516b.js +2 -0
  273. package/dist/esm/GoogleFont-8474516b.js.map +1 -0
  274. package/dist/esm/Listenable-55a1f6af.js +2 -0
  275. package/dist/esm/Listenable-55a1f6af.js.map +1 -0
  276. package/dist/esm/getLanguage-cccb8418.js +2 -0
  277. package/dist/esm/getLanguage-cccb8418.js.map +1 -0
  278. package/dist/esm/{index-d7a4e405.js → index-2e948fc3.js} +3 -1
  279. package/dist/esm/index-2e948fc3.js.map +1 -0
  280. package/dist/esm/{index-d3421c35.js → index-7b57a52c.js} +106 -2
  281. package/dist/esm/index-7b57a52c.js.map +1 -0
  282. package/dist/esm/index.js +4 -2
  283. package/dist/esm/index.js.map +1 -0
  284. package/dist/esm/loader.js +6 -3
  285. package/dist/esm/loader.js.map +1 -0
  286. package/dist/esm/{smoothly-accordion_53.entry.js → smoothly-accordion_60.entry.js} +5423 -460
  287. package/dist/esm/smoothly-accordion_60.entry.js.map +1 -0
  288. package/dist/esm/smoothly-address-display.entry.js +28 -0
  289. package/dist/esm/smoothly-address-display.entry.js.map +1 -0
  290. package/dist/esm/smoothly-address.entry.js +19 -0
  291. package/dist/esm/smoothly-address.entry.js.map +1 -0
  292. package/dist/esm/smoothly-addresses.entry.js +19 -0
  293. package/dist/esm/smoothly-addresses.entry.js.map +1 -0
  294. package/dist/esm/smoothly-color.entry.js +18 -0
  295. package/dist/esm/smoothly-color.entry.js.map +1 -0
  296. package/dist/esm/smoothly-country.entry.js +3 -1
  297. package/dist/esm/smoothly-country.entry.js.map +1 -0
  298. package/dist/esm/smoothly-google-font.entry.js +3 -1
  299. package/dist/esm/smoothly-google-font.entry.js.map +1 -0
  300. package/dist/esm/smoothly-radio-group.entry.js +3 -1
  301. package/dist/esm/smoothly-radio-group.entry.js.map +1 -0
  302. package/dist/esm/smoothly-reorder.entry.js +3 -1
  303. package/dist/esm/smoothly-reorder.entry.js.map +1 -0
  304. package/dist/esm/smoothly-trigger-sink.entry.js +3 -1
  305. package/dist/esm/smoothly-trigger-sink.entry.js.map +1 -0
  306. package/dist/esm/smoothly-trigger-source.entry.js +3 -1
  307. package/dist/esm/smoothly-trigger-source.entry.js.map +1 -0
  308. package/dist/esm/smoothly.js +6 -3
  309. package/dist/esm/smoothly.js.map +1 -0
  310. package/dist/smoothly/index.esm.js +2 -1
  311. package/dist/smoothly/index.esm.js.map +1 -0
  312. package/dist/smoothly/p-156763cd.js +2 -1
  313. package/dist/smoothly/p-156763cd.js.map +1 -0
  314. package/dist/smoothly/p-5200d31c.entry.js +2 -0
  315. package/dist/smoothly/p-5200d31c.entry.js.map +1 -0
  316. package/dist/smoothly/p-5b28795c.entry.js +2 -0
  317. package/dist/smoothly/p-5b28795c.entry.js.map +1 -0
  318. package/dist/smoothly/p-5b6351f6.js +2 -1
  319. package/dist/smoothly/p-5b6351f6.js.map +1 -0
  320. package/dist/smoothly/p-70280a11.js +2 -0
  321. package/dist/smoothly/p-70280a11.js.map +1 -0
  322. package/dist/smoothly/p-712b362e.entry.js +2 -0
  323. package/dist/smoothly/p-712b362e.entry.js.map +1 -0
  324. package/dist/smoothly/p-79025273.entry.js +2 -0
  325. package/dist/smoothly/p-79025273.entry.js.map +1 -0
  326. package/dist/smoothly/p-940af6d3.entry.js +2 -0
  327. package/dist/smoothly/p-940af6d3.entry.js.map +1 -0
  328. package/dist/smoothly/{p-6630d923.entry.js → p-b49664d8.entry.js} +2 -1
  329. package/dist/smoothly/p-b49664d8.entry.js.map +1 -0
  330. package/dist/smoothly/p-bd478a53.js +2 -1
  331. package/dist/smoothly/p-bd478a53.js.map +1 -0
  332. package/dist/smoothly/p-c49d2094.entry.js +2 -0
  333. package/dist/smoothly/p-c49d2094.entry.js.map +1 -0
  334. package/dist/smoothly/p-c88ae468.js +3 -0
  335. package/dist/smoothly/p-c88ae468.js.map +1 -0
  336. package/dist/smoothly/p-c9a64fb5.entry.js +2 -0
  337. package/dist/smoothly/p-c9a64fb5.entry.js.map +1 -0
  338. package/dist/smoothly/p-d4182274.entry.js +2 -0
  339. package/dist/smoothly/p-d4182274.entry.js.map +1 -0
  340. package/dist/smoothly/p-d4d04558.entry.js +2 -0
  341. package/dist/smoothly/p-d4d04558.entry.js.map +1 -0
  342. package/dist/smoothly/p-e136b93e.entry.js +2 -0
  343. package/dist/smoothly/p-e136b93e.entry.js.map +1 -0
  344. package/dist/smoothly/smoothly.esm.js +2 -1
  345. package/dist/smoothly/smoothly.esm.js.map +1 -0
  346. package/dist/types/components/Button.d.ts +10 -0
  347. package/dist/types/components/address/index.d.ts +6 -0
  348. package/dist/types/components/address-display/index.d.ts +13 -0
  349. package/dist/types/components/addresses/index.d.ts +6 -0
  350. package/dist/types/components/button/index.d.ts +7 -5
  351. package/dist/types/components/calendar/index.d.ts +1 -3
  352. package/dist/types/components/checkbox/index.d.ts +6 -7
  353. package/dist/types/components/color/index.d.ts +5 -0
  354. package/dist/types/components/filter/Clearable.d.ts +6 -0
  355. package/dist/types/components/filter/index.d.ts +16 -0
  356. package/dist/types/components/filter/input/index.d.ts +25 -0
  357. package/dist/types/components/form/Clearable.d.ts +6 -0
  358. package/dist/types/components/form/Data.d.ts +9 -0
  359. package/dist/types/components/form/index.d.ts +20 -0
  360. package/dist/types/components/frame/index.d.ts +2 -2
  361. package/dist/types/components/input/index.d.ts +3 -8
  362. package/dist/types/components/input-date/index.d.ts +0 -2
  363. package/dist/types/components/radio-button/item/index.d.ts +1 -1
  364. package/dist/types/components/submit/index.d.ts +7 -11
  365. package/dist/types/components/summary/index.d.ts +7 -0
  366. package/dist/types/components/table/Selector.d.ts +10 -0
  367. package/dist/types/components/table/demo/filtered/Root.d.ts +27 -0
  368. package/dist/types/components/table/demo/filtered/index.d.ts +13 -0
  369. package/dist/types/components/table/expandable/cell/index.d.ts +0 -1
  370. package/dist/types/components/table/index.d.ts +1 -0
  371. package/dist/types/components/toggle/toggle.d.ts +9 -0
  372. package/dist/types/components/toggle-switch/index.d.ts +8 -0
  373. package/dist/types/components/trigger/index.d.ts +1 -2
  374. package/dist/types/components.d.ts +286 -31
  375. package/dist/types/index.d.ts +1 -1
  376. package/dist/types/model/index.d.ts +0 -1
  377. package/dist/types/stencil-public-runtime.d.ts +20 -0
  378. package/loader/index.d.ts +9 -0
  379. package/package.json +6 -3
  380. package/dist/collection/components/submit/Data.js +0 -12
  381. package/dist/collection/components/submit/style.css +0 -37
  382. package/dist/collection/model/Expand.js +0 -1
  383. package/dist/smoothly/p-4a0b35b7.js +0 -2
  384. package/dist/smoothly/p-4fecfc5d.entry.js +0 -1
  385. package/dist/smoothly/p-5d41e3ca.entry.js +0 -1
  386. package/dist/smoothly/p-7d95afef.entry.js +0 -1
  387. package/dist/smoothly/p-7db49a38.entry.js +0 -1
  388. package/dist/smoothly/p-94e08cee.js +0 -1
  389. package/dist/smoothly/p-96e8781a.entry.js +0 -1
  390. package/dist/smoothly/p-e0f4957d.entry.js +0 -1
  391. package/dist/types/components/submit/Data.d.ts +0 -7
  392. package/dist/types/model/Expand.d.ts +0 -1
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-de46f836.js');
5
+ const index = require('./index-8352a4e0.js');
6
6
  const GoogleFont = require('./GoogleFont-6c4f0da1.js');
7
7
 
8
8
  const SmoothlyGoogleFont = class {
@@ -16,3 +16,5 @@ const SmoothlyGoogleFont = class {
16
16
  };
17
17
 
18
18
  exports.smoothly_google_font = SmoothlyGoogleFont;
19
+
20
+ //# sourceMappingURL=smoothly-google-font.cjs.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"smoothly-google-font.entry.cjs.js","mappings":";;;;;;;MAOa,kBAAkB;;;;;EAG9B,MAAM;IACL,OAAOA,qBAAU,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,GAAGC,uBAAQD,qBAAU,CAAC,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAS,GAAG,EAAE,CAAA;GACjG;;;;;","names":["GoogleFont","h"],"sources":["./src/components/google-font/index.tsx"],"sourcesContent":["import { Component, h, Prop } from \"@stencil/core\"\nimport { GoogleFont } from \"../../model/GoogleFont\"\n\n@Component({\n\ttag: \"smoothly-google-font\",\n\tscoped: true,\n})\nexport class SmoothlyGoogleFont {\n\t@Prop() value?: GoogleFont\n\n\trender() {\n\t\treturn GoogleFont.is(this.value) ? <style>{GoogleFont.styleImportString(this.value)}</style> : \"\"\n\t}\n}\n"],"version":3}
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-de46f836.js');
5
+ const index = require('./index-8352a4e0.js');
6
6
 
7
7
  const styleCss = "smoothly-radio-group{display:flex;position:relative;color:none !important;background:none !important;margin:0.5em 0}smoothly-radio-group[hidden]{display:none}smoothly-radio-group[orientation=vertical] *:not(:first-of-type)>input[type=radio]~label{border-top:none}smoothly-radio-group:not([orientation=vertical]) *:not(:first-of-type)>input[type=radio]~label{border-left:none}smoothly-radio-group[orientation=vertical]{flex-direction:column}smoothly-radio-group[orientation=vertical] :first-of-type>input[type=radio]~label{border-radius:4px 4px 0 0}smoothly-radio-group[orientation=vertical] :last-of-type>input[type=radio]~label{border-radius:0 0 4px 4px}smoothly-radio-group:not([orientation=vertical]){flex-direction:row}smoothly-radio-group:not([orientation=vertical]) :first-of-type>input[type=radio]~label{border-radius:4px 0 0 4px}smoothly-radio-group:not([orientation=vertical]) :last-of-type>input[type=radio]~label{border-radius:0 4px 4px 0}";
8
8
 
@@ -18,3 +18,5 @@ const SmoothlyToggleGroup = class {
18
18
  SmoothlyToggleGroup.style = styleCss;
19
19
 
20
20
  exports.smoothly_radio_group = SmoothlyToggleGroup;
21
+
22
+ //# sourceMappingURL=smoothly-radio-group.cjs.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"smoothly-radio-group.entry.cjs.js","mappings":";;;;;;AAAA,MAAM,QAAQ,GAAG,w7BAAw7B;;MCM57B,mBAAmB;;;uBACoC,YAAY;;EAC/E,MAAM;IACL,OAAOA,qBAAa,CAAA;GACpB;;;;;;","names":["h"],"sources":["./src/components/radio-group/style.css?tag=smoothly-radio-group","./src/components/radio-group/index.tsx"],"sourcesContent":["smoothly-radio-group {\n\tdisplay: flex;\n\tposition: relative;\n\t/* stylelint-disable-next-line declaration-no-important */\n\tcolor: none !important;\n\t/* stylelint-disable-next-line declaration-no-important */\n\tbackground: none !important;\n\tmargin: 0.5em 0;\n}\nsmoothly-radio-group[hidden] {\n\tdisplay: none;\n}\nsmoothly-radio-group[orientation=vertical] *:not(:first-of-type) > input[type=radio] ~ label {\n\tborder-top: none;\n}\nsmoothly-radio-group:not([orientation=vertical]) *:not(:first-of-type) > input[type=radio] ~ label {\n\tborder-left: none;\n}\nsmoothly-radio-group[orientation=vertical] {\n\tflex-direction: column;\n}\nsmoothly-radio-group[orientation=vertical] :first-of-type > input[type=radio] ~ label {\n\tborder-radius: 4px 4px 0 0;\n}\nsmoothly-radio-group[orientation=vertical] :last-of-type > input[type=radio] ~ label {\n\tborder-radius: 0 0 4px 4px;\n}\nsmoothly-radio-group:not([orientation=vertical]) {\n\tflex-direction: row;\n}\nsmoothly-radio-group:not([orientation=vertical]) :first-of-type > input[type=radio] ~ label {\n\tborder-radius: 4px 0 0 4px;\n}\nsmoothly-radio-group:not([orientation=vertical]) :last-of-type > input[type=radio] ~ label {\n\tborder-radius: 0 4px 4px 0;\n}\n","import { Component, h, Prop } from \"@stencil/core\"\n\n@Component({\n\ttag: \"smoothly-radio-group\",\n\tstyleUrl: \"style.css\",\n})\nexport class SmoothlyToggleGroup {\n\t@Prop({ reflect: true }) orientation?: \"horizontal\" | \"vertical\" = \"horizontal\"\n\trender() {\n\t\treturn <slot></slot>\n\t}\n}\n"],"version":3}
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-de46f836.js');
5
+ const index = require('./index-8352a4e0.js');
6
6
 
7
7
  const styleCss = "smoothly-reorder>*{cursor:move;transition:transform 0.3s}smoothly-reorder>*.dragging{transition:none;box-shadow:0 0 10px rgba(var(--smoothly-dark-color));z-index:1;user-select:none}";
8
8
 
@@ -101,3 +101,5 @@ const SmoothlyReorder = class {
101
101
  SmoothlyReorder.style = styleCss;
102
102
 
103
103
  exports.smoothly_reorder = SmoothlyReorder;
104
+
105
+ //# sourceMappingURL=smoothly-reorder.cjs.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"smoothly-reorder.entry.cjs.js","mappings":";;;;;;AAAA,MAAM,QAAQ,GAAG,uLAAuL;;MCM3L,eAAe;;;;;EAK3B,IAAY,QAAQ;IACnB,IAAI,MAAM,G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reorder/style.css?tag=smoothly-reorder","./src/components/reorder/index.tsx"],"sourcesContent":["smoothly-reorder > * {\n\tcursor: move;\n\ttransition: transform 0.3s;\n}\nsmoothly-reorder > *.dragging {\n\ttransition: none;\n\tbox-shadow: 0 0 10px rgba(var(--smoothly-dark-color));\n\tz-index: 1;\n\tuser-select: none;\n}\n","import { Component, Element, Event, EventEmitter } from \"@stencil/core\"\n\n@Component({\n\ttag: \"smoothly-reorder\",\n\tstyleUrl: \"style.css\",\n})\nexport class SmoothlyReorder {\n\t@Event() reorder: EventEmitter<[number, number]>\n\t@Element() element: HTMLSmoothlyReorderElement\n\tprivate bounds?: DOMRect\n\tprivate childrenCache?: Draggable[]\n\tprivate get children(): Draggable[] {\n\t\tlet result: Draggable[] = []\n\t\tif (this.childrenCache)\n\t\t\tresult = this.childrenCache\n\t\telse {\n\t\t\tfor (let index = 0; index < this.element.children.length; index++) {\n\t\t\t\tconst element = this.element.children[index]\n\t\t\t\tif (element instanceof HTMLElement) {\n\t\t\t\t\tconst bounds = element.getBoundingClientRect()\n\t\t\t\t\tresult.push({\n\t\t\t\t\t\ttop: bounds.top,\n\t\t\t\t\t\tmiddle: bounds.top + bounds.height / 2,\n\t\t\t\t\t\tbottom: bounds.bottom,\n\t\t\t\t\t\telement: element,\n\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis.childrenCache = result\n\t\t}\n\t\treturn result\n\t}\n\tprivate dragged?: Dragged\n\tprivate move?: { from: number; to: number }\n\n\tprivate onMouseDown(event: MouseEvent) {\n\t\tif (!this.move && this.element.children.length > 1) {\n\t\t\tthis.bounds = this.element.getBoundingClientRect()\n\t\t\tthis.childrenCache = undefined\n\t\t\tconst index = this.getCurrentIndex(event.clientY)\n\t\t\tthis.dragged = {\n\t\t\t\t...this.children[index],\n\t\t\t\tstartY: event.clientY,\n\t\t\t\toffsetY: event.clientY - this.children[index].middle,\n\t\t\t\tindex,\n\t\t\t\theight:\n\t\t\t\t\tindex < this.children.length - 1\n\t\t\t\t\t\t? this.children[index + 1].top - this.children[index].top\n\t\t\t\t\t\t: this.children[index].bottom - this.children[index - 1].bottom,\n\t\t\t}\n\t\t\tthis.dragged.element.className += \" dragging\"\n\t\t}\n\t}\n\n\tprivate onMouseMove(event: MouseEvent) {\n\t\tif (this.dragged && this.bounds && event.clientY >= this.bounds.top && event.clientY <= this.bounds.bottom) {\n\t\t\tconst currentIndex = this.getCurrentIndex(event.clientY - this.dragged.offsetY)\n\t\t\tthis.translate(this.dragged.index, currentIndex, event.clientY - this.dragged.startY)\n\t\t}\n\t}\n\n\tprivate onMouseUp(event: MouseEvent) {\n\t\tif (this.dragged) {\n\t\t\tthis.dragged.element.className = this.dragged.element.className.replace(\" dragging\", \"\")\n\t\t\tconst index = this.getCurrentIndex(event.clientY - this.dragged.offsetY)\n\t\t\tthis.translate(this.dragged.index, index, this.children[index].top - this.dragged.top)\n\t\t\tthis.move = { from: this.dragged.index, to: index }\n\t\t\tthis.dragged = undefined\n\n\t\t\twindow.setTimeout(() => {\n\t\t\t\tif (this.move) {\n\t\t\t\t\tconst children = [...this.children.map(c => c.element)]\n\t\t\t\t\tconst e = children.splice(this.move.from, 1)\n\t\t\t\t\tchildren.splice(this.move.to, 0, ...e)\n\t\t\t\t\tchildren.forEach(child => this.element.removeChild(child))\n\t\t\t\t\tchildren.forEach(child => {\n\t\t\t\t\t\tchild.style.transform = \"\"\n\t\t\t\t\t\tthis.element.appendChild(child)\n\t\t\t\t\t})\n\t\t\t\t\tthis.reorder.emit([this.move.from, this.move.to])\n\t\t\t\t\tthis.move = undefined\n\t\t\t\t}\n\t\t\t}, 500)\n\t\t}\n\t}\n\n\tprivate translate(fromIndex: number, toIndex: number, y: number) {\n\t\tfor (let index = 0; index < this.children.length; index++) {\n\t\t\tlet value: number\n\t\t\tif (this.dragged) {\n\t\t\t\tif (fromIndex < toIndex && index > fromIndex && index <= toIndex)\n\t\t\t\t\tvalue = -this.dragged.height\n\t\t\t\telse if (fromIndex > toIndex && index < fromIndex && index >= toIndex)\n\t\t\t\t\tvalue = this.dragged.height\n\t\t\t\telse\n\t\t\t\t\tvalue = index == fromIndex ? y : 0\n\n\t\t\t\tthis.children[index].element.style.transform = `translateY(${value}px)`\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate getCurrentIndex(y: number): number {\n\t\treturn this.children.findIndex(c => y < c.bottom)\n\t}\n\n\tcomponentDidLoad() {\n\t\tthis.element.childNodes.forEach(child => {\n\t\t\tchild.addEventListener(\"mousedown\", (e: MouseEvent) => this.onMouseDown(e))\n\t\t\tchild.addEventListener(\"mousemove\", (e: MouseEvent) => this.onMouseMove(e))\n\t\t\tchild.addEventListener(\"mouseup\", (e: MouseEvent) => this.onMouseUp(e))\n\t\t})\n\t}\n}\n"],"version":3}
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-de46f836.js');
5
+ const index = require('./index-8352a4e0.js');
6
6
  const Listenable = require('./Listenable-c8d2f8ef.js');
7
7
  require('./GoogleFont-6c4f0da1.js');
8
8
 
@@ -34,3 +34,5 @@ const SmoothlyTriggerSink = class {
34
34
  SmoothlyTriggerSink.style = styleCss;
35
35
 
36
36
  exports.smoothly_trigger_sink = SmoothlyTriggerSink;
37
+
38
+ //# sourceMappingURL=smoothly-trigger-sink.cjs.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"smoothly-trigger-sink.entry.cjs.js","mappings":";;;;;;;;AAAA,MAAM,QAAQ,GAAG,6FAA6F;;MCQjG,mBAAmB;;;;;;;EAK/B,IAAI,OAAO;IACV,IAAI,CAAC,IAAI,CAAC,YAAY;MACrB,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,CAAA;IAC9D,OAAO,IAAI,CAAC,YAAY,CAAA;GACxB;EAED,eAAe,CAAC,KAA2B;IAC1C,IAAIA,kBAAO,CAAC,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE;MAC/EC,kBAAO,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,IAAI,MAAM,CAAC,CAAA;MACpE,KAAK,CAAC,cAAc,EAAE,CAAA;MACtB,KAAK,CAAC,eAAe,EAAE,CAAA;KACvB;GACD;EACD,MAAM;IACL,OAAOC,qBAAa,CAAA;GACpB;;;;;;","names":["Trigger","Message","h"],"sources":["./src/components/trigger-sink/style.css?tag=smoothly-trigger-sink&encapsulation=scoped","./src/components/trigger-sink/index.tsx"],"sourcesContent":[":host {\n\tdisplay: block;\n}\n:host[hidden] {\n\tdisplay: none;\n}\n","import { Component, h, Listen, Prop } from \"@stencil/core\"\nimport { Message, Trigger } from \"../../model\"\n\n@Component({\n\ttag: \"smoothly-trigger-sink\",\n\tstyleUrl: \"style.css\",\n\tscoped: true,\n})\nexport class SmoothlyTriggerSink {\n\t@Prop() context?: Window\n\t@Prop() destination: string\n\t@Prop() filter?: string\n\tfiltersValue?: string[]\n\tget filters(): string[] {\n\t\tif (!this.filtersValue)\n\t\t\tthis.filtersValue = this.filter ? this.filter.split(\" \") : []\n\t\treturn this.filtersValue\n\t}\n\t@Listen(\"trigger\")\n\tTriggerListener(event: CustomEvent<Trigger>) {\n\t\tif (Trigger.is(event.detail) && this.filters.some(f => f == event.detail.name)) {\n\t\t\tMessage.send(this.destination, event.detail, this.context || window)\n\t\t\tevent.preventDefault()\n\t\t\tevent.stopPropagation()\n\t\t}\n\t}\n\trender() {\n\t\treturn <slot></slot>\n\t}\n}\n"],"version":3}
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-de46f836.js');
5
+ const index = require('./index-8352a4e0.js');
6
6
  const Listenable = require('./Listenable-c8d2f8ef.js');
7
7
  require('./GoogleFont-6c4f0da1.js');
8
8
 
@@ -31,3 +31,5 @@ const SmoothlyTriggerSource = class {
31
31
  SmoothlyTriggerSource.style = styleCss;
32
32
 
33
33
  exports.smoothly_trigger_source = SmoothlyTriggerSource;
34
+
35
+ //# sourceMappingURL=smoothly-trigger-source.cjs.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"smoothly-trigger-source.entry.cjs.js","mappings":";;;;;;;;AAAA,MAAM,QAAQ,GAAG,iGAAiG;;MCQrG,qBAAqB;;;;;;;EAKjC,gBAAgB;IACfA,kBAAO,CAAC,MAAM,CACb,IAAI,CAAC,MAAM,EACX,CAAC,WAAW,EAAE,OAAO;MACpB,IAAIC,kBAAO,CAAC,EAAE,CAAC,OAAO,CAAC;QACtB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;;QAE1B,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC,CAAA;KAC5C,EACD,MAAM,CACN,CAAA;GACD;EACD,MAAM;IACL,OAAOC,qBAAa,CAAA;GACpB;;;;;;;","names":["Message","Trigger","h"],"sources":["./src/components/trigger-source/style.css?tag=smoothly-trigger-source&encapsulation=scoped","./src/components/trigger-source/index.tsx"],"sourcesContent":[":host {\n\tdisplay: block;\n}\n:host[hidden] {\n\tdisplay: none;\n}\n","import { Component, Element, Event, EventEmitter, h, Prop } from \"@stencil/core\"\nimport { Message, Trigger } from \"../../model\"\n\n@Component({\n\ttag: \"smoothly-trigger-source\",\n\tstyleUrl: \"style.css\",\n\tscoped: true,\n})\nexport class SmoothlyTriggerSource {\n\t@Prop() listen: string\n\t@Event() trigger: EventEmitter<Trigger>\n\t@Event() message: EventEmitter<Message<any>>\n\t@Element() element?: HTMLElement\n\tcomponentDidLoad() {\n\t\tMessage.listen(\n\t\t\tthis.listen,\n\t\t\t(destination, content) => {\n\t\t\t\tif (Trigger.is(content))\n\t\t\t\t\tthis.trigger.emit(content)\n\t\t\t\telse\n\t\t\t\t\tthis.message.emit({ destination, content })\n\t\t\t},\n\t\t\twindow\n\t\t)\n\t}\n\trender() {\n\t\treturn <slot></slot>\n\t}\n}\n"],"version":3}
@@ -1,9 +1,11 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-de46f836.js');
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-8352a4e0.js');
4
6
 
5
7
  /*
6
- Stencil Client Patch Browser v2.21.0 | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Patch Browser v2.22.2 | MIT Licensed | https://stenciljs.com
7
9
  */
8
10
  const patchBrowser = () => {
9
11
  const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('smoothly.cjs.js', document.baseURI).href));
@@ -15,5 +17,9 @@ const patchBrowser = () => {
15
17
  };
16
18
 
17
19
  patchBrowser().then(options => {
18
- return index.bootstrapLazy([["smoothly-country.cjs",[[2,"smoothly-country",{"value":[1],"text":[1],"language":[32]}]]],["smoothly-google-font.cjs",[[2,"smoothly-google-font",{"value":[1]}]]],["smoothly-radio-group.cjs",[[4,"smoothly-radio-group",{"orientation":[513]}]]],["smoothly-reorder.cjs",[[0,"smoothly-reorder"]]],["smoothly-trigger-sink.cjs",[[6,"smoothly-trigger-sink",{"context":[16],"destination":[1],"filter":[1]},[[0,"trigger","TriggerListener"]]]]],["smoothly-trigger-source.cjs",[[6,"smoothly-trigger-source",{"listen":[1]}]]],["smoothly-accordion_53.cjs",[[0,"smoothly-app-demo",{"baseUrl":[1,"base-url"]}],[0,"smoothly-input-demo"],[2,"smoothly-select-demo",null,[[0,"selectionChanged","handleSelectionChanged"]]],[0,"smoothly-display-demo"],[2,"smoothly-table-demo"],[4,"smoothly-app",{"color":[1]}],[0,"smoothly-dialog-demo"],[2,"smoothly-icon-demo"],[6,"smoothly-button",{"color":[513],"expand":[513],"fill":[513],"disabled":[516],"type":[513],"link":[1],"download":[4]}],[4,"smoothly-room",{"label":[1],"icon":[1],"path":[1],"to":[1]}],[2,"smoothly-input-date-range",{"value":[1025],"start":[1025],"end":[1025],"max":[1025],"min":[1025],"open":[1028],"showLabel":[516,"show-label"],"labelStart":[1,"label-start"],"labelEnd":[1,"label-end"]},[[0,"startChanged","onStartChanged"],[0,"endChanged","onEndChanged"],[0,"dateRangeSet","onDateRangeSet"]]],[1,"smoothly-picker",{"disabled":[516],"readonly":[516],"maxMenuHeight":[1,"max-menu-height"],"maxHeight":[1,"max-height"],"emptyMenuLabel":[1025,"empty-menu-label"],"multiple":[516],"mutable":[4],"optionStyle":[8,"option-style"],"options":[1040],"labelSetting":[513,"label-setting"],"label":[513],"selections":[1040],"selectNoneName":[1025,"select-none-name"],"selectAllName":[1025,"select-all-name"],"selectionName":[1025,"selection-name"],"newOptionLabel":[1025,"new-option-label"],"valueValidator":[16],"isOpen":[32],"empty":[32]},[[0,"optionSelect","optionSelectHandler"],[0,"optionUnselect","optionSelectHandler"],[0,"optionAdd","optionAddHandler"],[0,"menuEmpty","emptyHandler"]]],[6,"smoothly-notifier",{"notices":[32]},[[0,"notice","onNotice"],[0,"remove","onRemove"]]],[6,"smoothly-dialog",{"color":[513],"open":[1540],"closable":[516],"header":[513]},[[0,"trigger","TriggerListener"]]],[2,"smoothly-backtotop",{"opacity":[1],"bottom":[1],"right":[1],"visible":[32]}],[2,"smoothly-checkbox",{"selectAll":[4,"select-all"],"size":[1],"intermediate":[1540],"selected":[1540],"disabled":[1540],"t":[32]}],[6,"smoothly-radio-button-item",{"value":[8],"selected":[1540],"color":[513]}],[6,"smoothly-submit",{"processing":[1540],"color":[513],"expand":[513],"fill":[513],"disabled":[516],"prevent":[4],"submit":[64]},[[0,"click","handleSubmit"]]],[6,"smoothly-table-cell"],[6,"smoothly-table-expandable-cell",{"align":[1],"open":[1540],"allowSpotlight":[32],"spotlight":[32]},[[0,"click","onClick"],[0,"tableLoad","handleTableLoaded"]]],[0,"smoothly-urlencoded",{"data":[1]}],[6,"smoothly-accordion",{"value":[1025]},[[0,"smoothlyOpen","handleOpenClose"],[0,"smoothlyClose","handleOpenClose"],[0,"smoothlyAccordionItemDidLoad","onAccordionItemDidLoad"],[0,"smoothlyAccordionItemDidUnload","onAccordionItemDidUnload"]]],[6,"smoothly-accordion-item",{"name":[1],"brand":[1],"open":[1540]}],[2,"smoothly-display",{"type":[1],"value":[8],"currency":[1],"country":[1],"format":[16]}],[2,"smoothly-display-amount",{"amount":[8],"currency":[1],"toInteger":[4,"to-integer"]}],[2,"smoothly-display-date-time",{"datetime":[1]}],[2,"smoothly-frame",{"url":[1],"name":[1],"origin":[1],"send":[64]}],[6,"smoothly-popup",{"visible":[1540],"direction":[1537],"cssVariables":[32]}],[6,"smoothly-radio",{"name":[1],"value":[1],"checked":[1540],"tabIndex":[2,"tab-index"]}],[6,"smoothly-radio-button",{"name":[1],"value":[1032],"deselectable":[516],"decoration":[513]},[[2,"radioItemSelectInternal","radioSelectHandler"]]],[6,"smoothly-select",{"identifier":[1],"background":[513],"value":[1025]}],[2,"smoothly-skeleton",{"widths":[16],"width":[1025],"color":[1],"period":[2],"distance":[1],"align":[513]}],[2,"smoothly-svg",{"url":[513],"size":[513],"color":[1]}],[6,"smoothly-table",{"root":[1540]},[[0,"expandableLoad","handleExpandableLoaded"],[0,"expandableChange","handleExpandableState"],[0,"spotlightChange","handleSpotlightState"],[0,"smoothlyNestedTable","handleNestedTable"],[0,"expansionLoad","handleEvents"],[0,"expansionOpen","handleEvents"]]],[6,"smoothly-table-expandable-row",{"align":[1],"open":[1540],"allowSpotlight":[32],"spotlight":[32]},[[0,"click","onClick"],[0,"tableLoad","handleTableLoaded"]]],[6,"smoothly-table-header",{"name":[1]}],[6,"smoothly-table-row",null,[[0,"expansionLoad","onExpansionLoad"],[0,"expansionOpen","onExpansionOpen"]]],[6,"smoothly-input-date",{"name":[513],"value":[1025],"open":[1028],"max":[1025],"min":[1025],"disabled":[1028],"color":[1025]},[[0,"dateSet","dateSetHandler"]]],[1,"smoothly-menu-options",{"toggle":[4],"emptyMenuLabel":[1025,"empty-menu-label"],"newOptionLabel":[1,"new-option-label"],"maxMenuHeight":[1,"max-menu-height"],"order":[4],"optionStyle":[8,"option-style"],"options":[1040],"resetHighlightOnOptionsChange":[1028,"reset-highlight-on-options-change"],"mutable":[4],"filteredOptions":[32],"highlightIndex":[32],"keyword":[32],"moveHighlight":[64],"setHighlight":[64],"getHighlighted":[64],"filterOptions":[64]},[[0,"optionHover","optionHoverHandler"]]],[2,"smoothly-notification",{"notice":[16],"tick":[32]},[[0,"trigger","onTrigger"]]],[6,"smoothly-tab",{"label":[1],"open":[1540]},[[0,"click","onClick"]]],[6,"smoothly-tab-switch",{"selectedElement":[32]},[[0,"expansionOpen","openChanged"]]],[0,"smoothly-tuple",{"tuple":[16]}],[1,"smoothly-option",{"aliases":[513],"dataHighlight":[1540,"data-highlight"],"name":[1537],"value":[1537],"divider":[1540],"checkbox":[4],"new":[4],"toggle":[4],"checked":[1028]}],[2,"smoothly-spinner",{"active":[516],"size":[513]}],[2,"smoothly-calendar",{"month":[1025],"value":[1025],"start":[1025],"end":[1025],"max":[1025],"min":[1025],"doubleInput":[516,"double-input"],"color":[513],"firstSelected":[32]}],[6,"smoothly-input",{"name":[513],"value":[1032],"type":[513],"required":[1540],"minLength":[1026,"min-length"],"showLabel":[516,"show-label"],"maxLength":[1026,"max-length"],"autocomplete":[1028],"pattern":[1040],"placeholder":[1025],"disabled":[1028],"readonly":[1028],"currency":[513],"initialValue":[32],"getFormData":[64],"setKeepFocusOnReRender":[64],"setSelectionRange":[64]}],[2,"smoothly-input-month",{"value":[1025]}],[6,"smoothly-quiet",{"color":[1]}],[6,"smoothly-selector",{"initialPrompt":[1,"initial-prompt"],"opened":[32],"selectedElement":[32],"missing":[32],"filter":[32],"reset":[64]},[[0,"click","onClick"],[0,"itemSelected","onItemSelected"],[0,"keydown","onKeyDown"]]],[6,"smoothly-item",{"value":[8],"selected":[1540],"marked":[1540],"filter":[64]},[[0,"click","onClick"]]],[6,"smoothly-trigger",{"color":[513],"expand":[513],"fill":[513],"disabled":[516],"type":[513],"name":[1],"value":[8]},[[0,"click","onClick"]]],[2,"smoothly-icon",{"color":[513],"fill":[513],"name":[1],"size":[513],"toolTip":[1,"tool-tip"],"document":[32]}]]]], options);
20
+ return index.bootstrapLazy([["smoothly-accordion_60.cjs",[[0,"smoothly-app-demo",{"baseUrl":[1,"base-url"]}],[0,"smoothly-input-demo"],[2,"smoothly-table-demo"],[2,"smoothly-select-demo",null,[[0,"selectionChanged","handleSelectionChanged"]]],[0,"smoothly-display-demo"],[4,"smoothly-app",{"color":[1]}],[0,"smoothly-dialog-demo"],[2,"smoothly-icon-demo"],[4,"smoothly-room",{"label":[1],"icon":[1],"path":[1],"to":[1]}],[2,"smoothly-table-demo-filtered",{"criteria":[32],"data":[32],"selector":[32]},[[0,"filters","onFilterUpdate"],[2,"smoothlyChecked","smoothlyCheckedHandler"]]],[2,"smoothly-input-date-range",{"value":[1025],"start":[1025],"end":[1025],"max":[1025],"min":[1025],"open":[1028],"showLabel":[516,"show-label"],"labelStart":[1,"label-start"],"labelEnd":[1,"label-end"]},[[0,"startChanged","onStartChanged"],[0,"endChanged","onEndChanged"],[0,"dateRangeSet","onDateRangeSet"]]],[1,"smoothly-picker",{"disabled":[516],"readonly":[516],"maxMenuHeight":[1,"max-menu-height"],"maxHeight":[1,"max-height"],"emptyMenuLabel":[1025,"empty-menu-label"],"multiple":[516],"mutable":[4],"optionStyle":[8,"option-style"],"options":[1040],"labelSetting":[513,"label-setting"],"label":[513],"selections":[1040],"selectNoneName":[1025,"select-none-name"],"selectAllName":[1025,"select-all-name"],"selectionName":[1025,"selection-name"],"newOptionLabel":[1025,"new-option-label"],"valueValidator":[16],"isOpen":[32],"empty":[32]},[[0,"optionSelect","optionSelectHandler"],[0,"optionUnselect","optionSelectHandler"],[0,"optionAdd","optionAddHandler"],[0,"menuEmpty","emptyHandler"]]],[6,"smoothly-notifier",{"notices":[32]},[[0,"notice","onNotice"],[0,"remove","onRemove"]]],[6,"smoothly-dialog",{"color":[513],"open":[1540],"closable":[516],"header":[513]},[[0,"trigger","TriggerListener"]]],[2,"smoothly-backtotop",{"opacity":[1],"bottom":[1],"right":[1],"visible":[32]}],[6,"smoothly-checkbox",{"size":[1],"checked":[1540],"intermediate":[1540],"name":[1],"value":[8],"disabled":[516],"t":[32],"toggle":[64]}],[6,"smoothly-radio-button-item",{"value":[8],"selected":[1540],"color":[513]}],[6,"smoothly-summary",{"color":[1],"fill":[1],"size":[1]}],[1,"smoothly-toggle-switch",{"selected":[1540],"disabled":[516],"size":[513],"name":[1],"value":[8]}],[0,"smoothly-urlencoded",{"data":[1]}],[6,"smoothly-accordion",{"value":[1025]},[[0,"smoothlyOpen","handleOpenClose"],[0,"smoothlyClose","handleOpenClose"],[0,"smoothlyAccordionItemDidLoad","onAccordionItemDidLoad"],[0,"smoothlyAccordionItemDidUnload","onAccordionItemDidUnload"]]],[6,"smoothly-accordion-item",{"name":[1],"brand":[1],"open":[1540]}],[1,"smoothly-button",{"color":[513],"expand":[513],"fill":[513],"disabled":[516],"type":[513],"size":[513],"shape":[513],"link":[1],"download":[4]}],[2,"smoothly-display",{"type":[1],"value":[8],"currency":[1],"country":[1],"format":[16]}],[2,"smoothly-display-amount",{"amount":[8],"currency":[1],"toInteger":[4,"to-integer"]}],[2,"smoothly-display-date-time",{"datetime":[1]}],[2,"smoothly-frame",{"url":[1],"name":[1],"origin":[1],"send":[64]}],[6,"smoothly-popup",{"visible":[1540],"direction":[1537],"cssVariables":[32]}],[6,"smoothly-radio",{"name":[1],"value":[1],"checked":[1540],"tabIndex":[2,"tab-index"]}],[6,"smoothly-radio-button",{"name":[1],"value":[1032],"deselectable":[516],"decoration":[513]},[[2,"radioItemSelectInternal","radioSelectHandler"]]],[6,"smoothly-select",{"identifier":[1],"background":[513],"value":[1025]}],[2,"smoothly-skeleton",{"widths":[16],"width":[1025],"color":[1],"period":[2],"distance":[1],"align":[513]}],[6,"smoothly-submit",{"color":[513],"expand":[513],"fill":[513],"disabled":[516],"type":[513],"size":[513],"shape":[513]}],[2,"smoothly-svg",{"url":[513],"size":[513],"color":[1]}],[6,"smoothly-table-expandable-row",{"align":[1],"open":[1540],"allowSpotlight":[32],"spotlight":[32]},[[0,"click","onClick"],[0,"tableLoad","handleTableLoaded"]]],[6,"smoothly-toggle",{"selected":[1540],"shape":[513],"disabled":[516],"name":[1],"value":[8]},[[0,"click","onClick"]]],[1,"smoothly-filter",{"placeholder":[1025],"criteria":[1040],"inputValue":[1032,"input-value"],"expanded":[32],"freeSearchValue":[32],"clear":[64]},[[0,"filter","filterHandler"]]],[6,"smoothly-input-date",{"name":[513],"value":[1025],"open":[1028],"max":[1025],"min":[1025],"disabled":[1028]},[[0,"dateSet","dateSetHandler"]]],[1,"smoothly-menu-options",{"toggle":[4],"emptyMenuLabel":[1025,"empty-menu-label"],"newOptionLabel":[1,"new-option-label"],"maxMenuHeight":[1,"max-menu-height"],"order":[4],"optionStyle":[8,"option-style"],"options":[1040],"resetHighlightOnOptionsChange":[1028,"reset-highlight-on-options-change"],"mutable":[4],"filteredOptions":[32],"highlightIndex":[32],"keyword":[32],"moveHighlight":[64],"setHighlight":[64],"getHighlighted":[64],"filterOptions":[64]},[[0,"optionHover","optionHoverHandler"]]],[1,"smoothly-filter-input",{"name":[513],"value":[1032],"type":[513],"required":[1540],"minLength":[2,"min-length"],"showLabel":[516,"show-label"],"maxLength":[2,"max-length"],"autocomplete":[4],"pattern":[16],"placeholder":[1],"disabled":[4],"readonly":[4],"currency":[513],"comparison":[1],"criteria":[32],"clear":[64]}],[6,"smoothly-table-cell"],[6,"smoothly-table-expandable-cell",{"align":[1],"open":[1540],"allowSpotlight":[32],"spotlight":[32]},[[0,"click","onClick"],[0,"tableLoad","handleTableLoaded"]]],[6,"smoothly-tab",{"label":[1],"open":[1540]},[[0,"click","onClick"]]],[6,"smoothly-tab-switch",{"selectedElement":[32]},[[0,"expansionOpen","openChanged"]]],[6,"smoothly-table",{"root":[1540],"align":[513]},[[0,"expandableLoad","handleExpandableLoaded"],[0,"expandableChange","handleExpandableState"],[0,"spotlightChange","handleSpotlightState"],[0,"smoothlyNestedTable","handleNestedTable"],[0,"expansionLoad","handleEvents"],[0,"expansionOpen","handleEvents"]]],[6,"smoothly-table-header",{"name":[1]}],[6,"smoothly-table-row",null,[[0,"expansionLoad","onExpansionLoad"],[0,"expansionOpen","onExpansionOpen"]]],[0,"smoothly-tuple",{"tuple":[16]}],[1,"smoothly-option",{"aliases":[513],"dataHighlight":[1540,"data-highlight"],"name":[1537],"value":[1537],"divider":[1540],"checkbox":[4],"new":[4],"toggle":[4],"checked":[1028]}],[2,"smoothly-calendar",{"month":[1025],"value":[1025],"start":[1025],"end":[1025],"max":[1025],"min":[1025],"doubleInput":[516,"double-input"],"firstSelected":[32]}],[4,"smoothly-form",{"looks":[513],"name":[1],"method":[1],"action":[1],"processing":[1540],"notice":[32],"submit":[64],"clear":[64]},[[2,"smoothlyInput","smoothlyInputHandler"],[2,"smoothlySubmit","smoothlySubmitHandler"]]],[2,"smoothly-input-month",{"value":[1025]}],[6,"smoothly-quiet",{"color":[1]}],[6,"smoothly-selector",{"initialPrompt":[1,"initial-prompt"],"opened":[32],"selectedElement":[32],"missing":[32],"filter":[32],"reset":[64]},[[0,"click","onClick"],[0,"itemSelected","onItemSelected"],[0,"keydown","onKeyDown"]]],[6,"smoothly-item",{"value":[8],"selected":[1540],"marked":[1540],"filter":[64]},[[0,"click","onClick"]]],[2,"smoothly-spinner",{"active":[516],"size":[513]}],[2,"smoothly-notification",{"notice":[16],"tick":[32]},[[0,"trigger","onTrigger"]]],[6,"smoothly-trigger",{"color":[513],"fill":[513],"disabled":[516],"type":[513],"name":[1],"value":[8]},[[0,"click","onClick"]]],[6,"smoothly-input",{"name":[513],"value":[1032],"type":[513],"required":[1540],"minLength":[1026,"min-length"],"showLabel":[516,"show-label"],"maxLength":[1026,"max-length"],"autocomplete":[1028],"pattern":[1040],"placeholder":[1537],"disabled":[1028],"readonly":[1028],"currency":[513],"initialValue":[32],"clear":[64],"getFormData":[64],"setKeepFocusOnReRender":[64],"setSelectionRange":[64]}],[2,"smoothly-icon",{"color":[513],"fill":[513],"name":[1],"size":[513],"toolTip":[1,"tool-tip"],"document":[32]}]]],["smoothly-addresses.cjs",[[2,"smoothly-addresses",{"value":[16],"editable":[16]}]]],["smoothly-color.cjs",[[6,"smoothly-color",{"color":[513]}]]],["smoothly-country.cjs",[[2,"smoothly-country",{"value":[1],"text":[1],"language":[32]}]]],["smoothly-google-font.cjs",[[2,"smoothly-google-font",{"value":[1]}]]],["smoothly-radio-group.cjs",[[4,"smoothly-radio-group",{"orientation":[513]}]]],["smoothly-reorder.cjs",[[0,"smoothly-reorder"]]],["smoothly-trigger-sink.cjs",[[6,"smoothly-trigger-sink",{"context":[16],"destination":[1],"filter":[1]},[[0,"trigger","TriggerListener"]]]]],["smoothly-trigger-source.cjs",[[6,"smoothly-trigger-source",{"listen":[1]}]]],["smoothly-address-display.cjs",[[2,"smoothly-address-display",{"value":[16],"editable":[4]}]]],["smoothly-address.cjs",[[2,"smoothly-address",{"value":[16],"editable":[4]}]]]], options);
19
21
  });
22
+
23
+ exports.setNonce = index.setNonce;
24
+
25
+ //# sourceMappingURL=smoothly.cjs.js.map
@@ -0,0 +1 @@
1
+ {"file":"smoothly.cjs.js","mappings":";;;;;;AAAA;AACA;AACA;AAgBA,MAAM,YAAY,GAAG,MAAM;AA6B3B,IAAI,MAAM,UAAU,GAAG,0MAAe,CAAC;AACvC,IAAI,MAAM,IAAI,GAAyD,EAAE,CAAC;AAe1E,IAAI,IAAuB,UAAU,KAAK,EAAE,EAAE;AAC9C,QAAQ,IAAI,CAAC,YAAY,GAAG,IAAI,GAAG,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC,IAAI,CAAC;AAC1D,KAWK;AACL,IAAI,OAAOA,oBAAc,CAAC,IAAI,CAAC,CAAC;AAChC,CAAC;;AC1ED,YAAY,EAAE,CAAC,IAAI,CAAC,OAAO,IAAI;AAE/B,EAAE,OAAOC,mBAAa,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;AAC9D,CAAC,CAAC;;;;","names":["promiseResolve","bootstrapLazy"],"sources":["./node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v2.22.2 | MIT Licensed | https://stenciljs.com\n */\nimport { BUILD, NAMESPACE } from '@stencil/core/internal/app-data';\nimport { consoleDevInfo, plt, win, doc, promiseResolve, H } from '@stencil/core';\n/**\n * Helper method for querying a `meta` tag that contains a nonce value\n * out of a DOM's head.\n *\n * @param doc The DOM containing the `head` to query against\n * @returns The content of the meta tag representing the nonce value, or `undefined` if no tag\n * exists or the tag has no content.\n */\nfunction queryNonceMetaTagContent(doc) {\n var _a, _b, _c;\n return (_c = (_b = (_a = doc.head) === null || _a === void 0 ? void 0 : _a.querySelector('meta[name=\"csp-nonce\"]')) === null || _b === void 0 ? void 0 : _b.getAttribute('content')) !== null && _c !== void 0 ? _c : undefined;\n}\nconst getDynamicImportFunction = (namespace) => `__sc_import_${namespace.replace(/\\s|-/g, '_')}`;\nconst patchBrowser = () => {\n // NOTE!! This fn cannot use async/await!\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo('Running in development mode.');\n }\n if (BUILD.cssVarShim) {\n // shim css vars\n plt.$cssShim$ = win.__cssshim;\n }\n if (BUILD.cloneNodeFix) {\n // opted-in to polyfill cloneNode() for slot polyfilled components\n patchCloneNodeFix(H.prototype);\n }\n if (BUILD.profile && !performance.mark) {\n // not all browsers support performance.mark/measure (Safari 10)\n // because the mark/measure APIs are designed to write entries to a buffer in the browser that does not exist,\n // simply stub the implementations out.\n // TODO(STENCIL-323): Remove this patch when support for older browsers is removed (breaking)\n // @ts-ignore\n performance.mark = performance.measure = () => {\n /*noop*/\n };\n performance.getEntriesByName = () => [];\n }\n // @ts-ignore\n const scriptElm = BUILD.scriptDataOpts || BUILD.safari10 || BUILD.dynamicImportShim\n ? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\\/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) ||\n s.getAttribute('data-stencil-namespace') === NAMESPACE)\n : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? scriptElm['data-opts'] || {} : {};\n if (BUILD.safari10 && 'onbeforeload' in scriptElm && !history.scrollRestoration /* IS_ESM_BUILD */) {\n // Safari < v11 support: This IF is true if it's Safari below v11.\n // This fn cannot use async/await since Safari didn't support it until v11,\n // however, Safari 10 did support modules. Safari 10 also didn't support \"nomodule\",\n // so both the ESM file and nomodule file would get downloaded. Only Safari\n // has 'onbeforeload' in the script, and \"history.scrollRestoration\" was added\n // to Safari in v11. Return a noop then() so the async/await ESM code doesn't continue.\n // IS_ESM_BUILD is replaced at build time so this check doesn't happen in systemjs builds.\n return {\n then() {\n /* promise noop */\n },\n };\n }\n if (!BUILD.safari10 && importMeta !== '') {\n opts.resourcesUrl = new URL('.', importMeta).href;\n }\n else if (BUILD.dynamicImportShim || BUILD.safari10) {\n opts.resourcesUrl = new URL('.', new URL(scriptElm.getAttribute('data-resources-url') || scriptElm.src, win.location.href)).href;\n if (BUILD.dynamicImportShim) {\n patchDynamicImport(opts.resourcesUrl, scriptElm);\n }\n if (BUILD.dynamicImportShim && !win.customElements) {\n // module support, but no custom elements support (Old Edge)\n // @ts-ignore\n return import(/* webpackChunkName: \"polyfills-dom\" */ './dom.js').then(() => opts);\n }\n }\n return promiseResolve(opts);\n};\nconst patchDynamicImport = (base, orgScriptElm) => {\n const importFunctionName = getDynamicImportFunction(NAMESPACE);\n try {\n // test if this browser supports dynamic imports\n // There is a caching issue in V8, that breaks using import() in Function\n // By generating a random string, we can workaround it\n // Check https://bugs.chromium.org/p/chromium/issues/detail?id=990810 for more info\n win[importFunctionName] = new Function('w', `return import(w);//${Math.random()}`);\n }\n catch (e) {\n // this shim is specifically for browsers that do support \"esm\" imports\n // however, they do NOT support \"dynamic\" imports\n // basically this code is for old Edge, v18 and below\n const moduleMap = new Map();\n win[importFunctionName] = (src) => {\n var _a;\n const url = new URL(src, base).href;\n let mod = moduleMap.get(url);\n if (!mod) {\n const script = doc.createElement('script');\n script.type = 'module';\n script.crossOrigin = orgScriptElm.crossOrigin;\n script.src = URL.createObjectURL(new Blob([`import * as m from '${url}'; window.${importFunctionName}.m = m;`], {\n type: 'application/javascript',\n }));\n // Apply CSP nonce to the script tag if it exists\n const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);\n if (nonce != null) {\n script.setAttribute('nonce', nonce);\n }\n mod = new Promise((resolve) => {\n script.onload = () => {\n resolve(win[importFunctionName].m);\n script.remove();\n };\n });\n moduleMap.set(url, mod);\n doc.head.appendChild(script);\n }\n return mod;\n };\n }\n};\nconst patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function (deep) {\n if (this.nodeName === 'TEMPLATE') {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n // Node.ATTRIBUTE_NODE === 2, and checking because IE11\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport { patchBrowser };\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(options => {\n globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"version":3}
@@ -1,13 +1,17 @@
1
1
  {
2
2
  "entries": [
3
+ "./components/address-display/index.js",
3
4
  "./components/accordion/index.js",
4
5
  "./components/accordion-item/index.js",
6
+ "./components/address/index.js",
7
+ "./components/addresses/index.js",
5
8
  "./components/app/index.js",
6
9
  "./components/app-demo/index.js",
7
10
  "./components/backtotop/index.js",
8
11
  "./components/button/index.js",
9
12
  "./components/calendar/index.js",
10
13
  "./components/checkbox/index.js",
14
+ "./components/color/index.js",
11
15
  "./components/country/index.js",
12
16
  "./components/dialog/index.js",
13
17
  "./components/dialog-demo/index.js",
@@ -15,6 +19,9 @@
15
19
  "./components/display-amount/index.js",
16
20
  "./components/display-date-time/index.js",
17
21
  "./components/display-demo/index.js",
22
+ "./components/filter/index.js",
23
+ "./components/filter/input/index.js",
24
+ "./components/form/index.js",
18
25
  "./components/frame/index.js",
19
26
  "./components/google-font/index.js",
20
27
  "./components/icon/index.js",
@@ -44,16 +51,20 @@
44
51
  "./components/skeleton/index.js",
45
52
  "./components/spinner/index.js",
46
53
  "./components/submit/index.js",
54
+ "./components/summary/index.js",
47
55
  "./components/svg/index.js",
48
56
  "./components/tab/index.js",
49
57
  "./components/tab-switch/index.js",
50
58
  "./components/table/index.js",
51
59
  "./components/table/cell/index.js",
52
60
  "./components/table/demo/index.js",
61
+ "./components/table/demo/filtered/index.js",
53
62
  "./components/table/expandable/cell/index.js",
54
63
  "./components/table/expandable/row/index.js",
55
64
  "./components/table/header/index.js",
56
65
  "./components/table/row/index.js",
66
+ "./components/toggle/toggle.js",
67
+ "./components/toggle-switch/index.js",
57
68
  "./components/trigger/index.js",
58
69
  "./components/trigger-sink/index.js",
59
70
  "./components/trigger-source/index.js",
@@ -62,7 +73,7 @@
62
73
  ],
63
74
  "compiler": {
64
75
  "name": "@stencil/core",
65
- "version": "2.21.0",
76
+ "version": "2.22.2",
66
77
  "typescriptVersion": "4.9.4"
67
78
  },
68
79
  "collections": [],
@@ -68,3 +68,4 @@ function resolve(url) {
68
68
  ? u.pathname
69
69
  : undefined;
70
70
  }
71
+ //# sourceMappingURL=App.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"App.js","sourceRoot":"","sources":["../../src/components/App.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAkC,CAAC,EAAS,MAAM,eAAe,CAAA;AAExE,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAG7D,MAAM,MAAM,GAAG,YAAY,EAAE,CAAA;AAC7B,MAAM,UAAU,QAAQ,CAAC,GAAW;EACnC,MAAM,WAAW,GAAG,OAAO,CAAC,GAAG,CAAC,CAAA;EAChC,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,GAAG,GAAG,CAAC,CAAA;AACtE,CAAC;AACD,MAAM,CAAC,MAAM,GAAG,GAA2C,CAAC,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE;;EACvF,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAA8B,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE;IAC3F,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,CAAA;IAClB,OAAO,CAAC,CAAA;EACT,CAAC,EAAE,EAAE,CAAU,CAAA;EACf,MAAM,UAAU,GAAG,WAAW,CAAC,SAAS,CAAC,CAAA;EACzC,SAAS,WAAW,CAAC,IAAW;IAC/B,IAAI,MAA6B,CAAA;IACjC,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC,MAAM,GAAG,KAAK,CAAC,CAAC,CAAA;IAChD,OAAO,MAAM,aAAN,MAAM,cAAN,MAAM,GAAI,UAAU,CAAA;EAC5B,CAAC;EACD,SAAS,WAAW,CAA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,KAAK,CAAC,IAAI,CAAS,CACvC,CAAA;MACF,CAAC,CAAC,CACY,CACV,CACO,CACf,CAAA;AACF,CAAC,CAAA;AACD,SAAS,OAAO,CAAC,GAAW;EAC3B,MAAM,CAAC,GAAG,IAAI,GAAG,CAAC,GAAG,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAA;EACxC,OAAO,GAAG,IAAI,EAAE;IACf,CAAC,CAAC,IAAI,GAAG,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,QAAQ;IACpC,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,OAAO,CAAC;MAC3C,CAAC,CAAC,CAAC,CAAC,QAAQ;MACZ,CAAC,CAAC,SAAS,CAAA;AACb,CAAC","sourcesContent":["import { ChildNode, FunctionalComponent, h, VNode } from \"@stencil/core\"\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nimport { createRouter, href, Route } from \"stencil-router-v2\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nconst Router = createRouter()\nexport function redirect(url: string) {\n\tconst destination = resolve(url)\n\tdestination ? Router.push(destination) : (window.location.href = url)\n}\nexport const App: FunctionalComponent<{ label: string }> = (attributes, nodes, utils) => {\n\tconst emptyNode = Object.entries(nodes[0]).reduce<{ [property: string]: any }>((r, entry) => {\n\t\tr[entry[0]] = null\n\t\treturn r\n\t}, {}) as VNode\n\tconst emptyChild = nodeToChild(emptyNode)\n\tfunction nodeToChild(node: VNode): ChildNode {\n\t\tlet result: ChildNode | undefined\n\t\tutils.forEach([node], child => (result = child))\n\t\treturn result ?? emptyChild\n\t}\n\tfunction childToNode(child: ChildNode): VNode {\n\t\treturn utils.map([emptyNode], c => ({ ...c, ...child }))[0]\n\t}\n\tconst children = nodes.map(node => ({ ...nodeToChild(node), node }))\n\treturn (\n\t\t<smoothly-app>\n\t\t\t<header>\n\t\t\t\t<h1>\n\t\t\t\t\t<a {...href(resolve(\"\") ?? \"/\")}>{attributes.label}</a>\n\t\t\t\t</h1>\n\t\t\t\t<nav>\n\t\t\t\t\t<ul>\n\t\t\t\t\t\t{utils\n\t\t\t\t\t\t\t.map(\n\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t...children.filter(child => child.vattrs?.slot == \"nav-start\"),\n\t\t\t\t\t\t\t\t\t...children.filter(\n\t\t\t\t\t\t\t\t\t\tchild => child.vattrs?.label && child.vattrs?.path && typeof child.vattrs?.path == \"string\"\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t...children.filter(child => child.vattrs?.slot == \"nav-end\"),\n\t\t\t\t\t\t\t\t].map(child => child.node),\n\t\t\t\t\t\t\t\tchild => {\n\t\t\t\t\t\t\t\t\tif (child.vattrs?.label && child.vattrs?.path)\n\t\t\t\t\t\t\t\t\t\tchild = {\n\t\t\t\t\t\t\t\t\t\t\t...emptyChild,\n\t\t\t\t\t\t\t\t\t\t\tvtag: \"a\",\n\t\t\t\t\t\t\t\t\t\t\tvattrs: { href: child.vattrs?.path },\n\t\t\t\t\t\t\t\t\t\t\tvchildren: [\n\t\t\t\t\t\t\t\t\t\t\t\tchild.vattrs?.icon\n\t\t\t\t\t\t\t\t\t\t\t\t\t? childToNode({\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvtag: \"smoothly-icon\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvattrs: {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttoolTip: child.vattrs?.label,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tname: child.vattrs?.icon,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsize: \"medium\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t })\n\t\t\t\t\t\t\t\t\t\t\t\t\t: childToNode({ vtext: child.vattrs?.label }),\n\t\t\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tconst url = resolve(child.vattrs?.href)\n\t\t\t\t\t\t\t\t\treturn child.vtag != \"a\"\n\t\t\t\t\t\t\t\t\t\t? child\n\t\t\t\t\t\t\t\t\t\t: url\n\t\t\t\t\t\t\t\t\t\t? {\n\t\t\t\t\t\t\t\t\t\t\t\t...child,\n\t\t\t\t\t\t\t\t\t\t\t\tvattrs: {\n\t\t\t\t\t\t\t\t\t\t\t\t\t...child.vattrs,\n\t\t\t\t\t\t\t\t\t\t\t\t\tclass: [child.vattrs?.class, Router.activePath == url ? \"active\" : \"\"].join(\" \") || undefined,\n\t\t\t\t\t\t\t\t\t\t\t\t\thref: url,\n\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t\t: { ...child, vattrs: { ...child.vattrs, target: \"new\" } }\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t.map(node => {\n\t\t\t\t\t\t\t\tconst child = nodeToChild(node)\n\t\t\t\t\t\t\t\treturn child.vtag == \"a\" && !child.vattrs?.target ? (\n\t\t\t\t\t\t\t\t\t<a {...child.vattrs} {...href(child.vattrs?.href)}>\n\t\t\t\t\t\t\t\t\t\t{child.vchildren}\n\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t\tnode\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t.map(child => (\n\t\t\t\t\t\t\t\t<li>{child}</li>\n\t\t\t\t\t\t\t))}\n\t\t\t\t\t</ul>\n\t\t\t\t</nav>\n\t\t\t\t{children.filter(child => child.vattrs?.slot == \"header\").map(child => child.node)}\n\t\t\t</header>\n\t\t\t<main>\n\t\t\t\t<Router.Switch>\n\t\t\t\t\t{children\n\t\t\t\t\t\t.filter(child => child.vattrs?.path != undefined)\n\t\t\t\t\t\t.map(child => {\n\t\t\t\t\t\t\tconst path = typeof child.vattrs?.path == \"string\" ? resolve(child.vattrs?.path) : child.vattrs?.path\n\t\t\t\t\t\t\treturn child.vattrs?.to ? (\n\t\t\t\t\t\t\t\t<Route path={path} to={child.vattrs?.to}></Route>\n\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t<Route path={path}>{child.node}</Route>\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t})}\n\t\t\t\t</Router.Switch>\n\t\t\t</main>\n\t\t</smoothly-app>\n\t)\n}\nfunction resolve(url: string): string | undefined {\n\tconst u = new URL(url, document.baseURI)\n\treturn url == \"\"\n\t\t? new URL(document.baseURI).pathname\n\t\t: u.toString().startsWith(document.baseURI)\n\t\t? u.pathname\n\t\t: undefined\n}\n"]}
@@ -0,0 +1,5 @@
1
+ import { h } from "@stencil/core";
2
+ export const Button = ({ disabled, type, link, download }) => {
3
+ return disabled && (link || type == "link") ? (h("slot", null)) : link ? (h("a", { href: link, target: "_blank", download: download }, h("slot", { name: "start" }), h("slot", null), h("slot", { name: "end" }))) : type == "link" ? (h("a", { href: link }, h("slot", { name: "start" }), h("slot", null), h("slot", { name: "end" }))) : (h("button", { disabled: disabled }, h("slot", { name: "start" }), h("slot", null), h("slot", { name: "end" })));
4
+ };
5
+ //# sourceMappingURL=Button.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Button.js","sourceRoot":"","sources":["../../src/components/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,CAAC,EAAE,MAAM,eAAe,CAAA;AAEtD,MAAM,CAAC,MAAM,MAAM,GAA2C,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE;EACpG,OAAO,QAAQ,IAAI,CAAC,IAAI,IAAI,IAAI,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,CAC7C,eAAa,CACb,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CACV,SAAG,IAAI,EAAE,IAAI,EAAE,MAAM,EAAC,QAAQ,EAAC,QAAQ,EAAE,QAAQ;IAChD,YAAM,IAAI,EAAC,OAAO,GAAQ;IAC1B,eAAa;IACb,YAAM,IAAI,EAAC,KAAK,GAAQ,CACrB,CACJ,CAAC,CAAC,CAAC,IAAI,IAAI,MAAM,CAAC,CAAC,CAAC,CACpB,SAAG,IAAI,EAAE,IAAI;IACZ,YAAM,IAAI,EAAC,OAAO,GAAQ;IAC1B,eAAa;IACb,YAAM,IAAI,EAAC,KAAK,GAAQ,CACrB,CACJ,CAAC,CAAC,CAAC,CACH,cAAQ,QAAQ,EAAE,QAAQ;IACzB,YAAM,IAAI,EAAC,OAAO,GAAQ;IAC1B,eAAa;IACb,YAAM,IAAI,EAAC,KAAK,GAAQ,CAChB,CACT,CAAA;AACF,CAAC,CAAA","sourcesContent":["import { FunctionalComponent, h } from \"@stencil/core\"\n\nexport const Button: FunctionalComponent<Button.Properties> = ({ disabled, type, link, download }) => {\n\treturn disabled && (link || type == \"link\") ? (\n\t\t<slot></slot>\n\t) : link ? (\n\t\t<a href={link} target=\"_blank\" download={download}>\n\t\t\t<slot name=\"start\"></slot>\n\t\t\t<slot></slot>\n\t\t\t<slot name=\"end\"></slot>\n\t\t</a>\n\t) : type == \"link\" ? (\n\t\t<a href={link}>\n\t\t\t<slot name=\"start\"></slot>\n\t\t\t<slot></slot>\n\t\t\t<slot name=\"end\"></slot>\n\t\t</a>\n\t) : (\n\t\t<button disabled={disabled}>\n\t\t\t<slot name=\"start\"></slot>\n\t\t\t<slot></slot>\n\t\t\t<slot name=\"end\"></slot>\n\t\t</button>\n\t)\n}\nexport namespace Button {\n\texport interface Properties {\n\t\tdisabled: boolean\n\t\ttype: \"link\" | \"button\"\n\t\tlink?: string\n\t\tdownload?: boolean\n\t}\n}\n"]}
@@ -106,3 +106,4 @@ export class SmoothlyAccordion {
106
106
  }];
107
107
  }
108
108
  }
109
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":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AAC,KAAK;MAC5B,IAAI,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,KAAK,CAAC;QACvD,UAAU,GAAG,IAAI,CAAA;EACpB,CAAC;EAED,MAAM;IACL,OAAO,CAAC,eAAa,CAAC,CAAA;EACvB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, Element, h, Listen, Prop, Watch } from \"@stencil/core\"\n\n@Component({\n\ttag: \"smoothly-accordion\",\n\tstyleUrl: \"style.css\",\n\tscoped: true,\n})\nexport class SmoothlyAccordion {\n\tprivate items: HTMLSmoothlyAccordionItemElement[] = []\n\t@Element() me: HTMLElement\n\t@Prop({ mutable: true }) value?: string\n\t@Watch(\"value\")\n\tvalueChanged(value: string | undefined) {\n\t\tthis.updateItems()\n\t}\n\t@Listen(\"smoothlyOpen\")\n\t@Listen(\"smoothlyClose\")\n\thandleOpenClose(event: CustomEvent<{ name: string; open: boolean }>) {\n\t\tif (event.detail.open)\n\t\t\tthis.value = event.detail.name\n\t\telse if (this.value == event.detail.name)\n\t\t\tthis.value = undefined\n\t}\n\t@Listen(\"smoothlyAccordionItemDidLoad\")\n\tonAccordionItemDidLoad(ev: Event) {\n\t\tconst item = ev.target as HTMLSmoothlyAccordionItemElement\n\t\tthis.items.push(item)\n\t\tif (this.value == undefined && item.open)\n\t\t\tthis.value = item.name\n\t\telse\n\t\t\tthis.updateItems()\n\t}\n\t@Listen(\"smoothlyAccordionItemDidUnload\")\n\tonAccordionItemDidUnload(ev: Event) {\n\t\tconst index = this.items.indexOf(ev.target as HTMLSmoothlyAccordionItemElement)\n\t\tif (index > -1)\n\t\t\tthis.items.splice(index, 1)\n\t}\n\tcomponentDidLoad() {\n\t\tthis.updateItems()\n\t}\n\tprivate updateItems() {\n\t\tlet hasChecked = false\n\t\tfor (const item of this.items)\n\t\t\tif ((item.open = !hasChecked && item.name == this.value))\n\t\t\t\thasChecked = true\n\t}\n\n\trender() {\n\t\treturn [<slot></slot>]\n\t}\n}\n"]}
@@ -173,3 +173,4 @@ export class SmoothlyAccordionItem {
173
173
  }];
174
174
  }
175
175
  }
176
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/accordion-item/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AAOvF,MAAM,OAAO,qBAAqB;;;;;;EAUjC,WAAW,CAAC,SAAkB;IAC7B,IAAI,CAAC,IAAI,GAAG,SAAS,CAAA;IACrB,IAAI,SAAS,EAAE;MACd,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC;QACtB,IAAI,EAAE,IAAI;QACV,IAAI,EAAE,IAAI,CAAC,IAAI;OACf,CAAC,CAAA;KACF;EACF,CAAC;EACD,gBAAgB;IACf,MAAM,OAAO,GAAG,IAAI,CAAC,EAAE,CAAC,oBAAoB,CAAC,SAAS,CAAC,CAAA;IACvD,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE;MACvB,MAAM,OAAO,GAAG,CAAC,CAAU,EAAE,EAAE;QAC9B,IAAI,IAAI,CAAC,IAAI;UACZ,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,CAAA;;UAE7D,IAAI,CAAC,IAAI,GAAG,IAAI,CAAA;QACjB,CAAC,CAAC,cAAc,EAAE,CAAA;MACnB,CAAC,CAAA;MACD,OAAO,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAA;MAC7C,OAAO,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,OAAO,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;;;;;;;;;CACD","sourcesContent":["import { Component, Element, Event, EventEmitter, h, Prop, Watch } from \"@stencil/core\"\n\n@Component({\n\ttag: \"smoothly-accordion-item\",\n\tstyleUrl: \"style.css\",\n\tscoped: true,\n})\nexport class SmoothlyAccordionItem {\n\t@Prop() name: string\n\t@Prop() brand?: string | string[]\n\t@Prop({ mutable: true, reflect: true }) open?: boolean\n\t@Element() me: HTMLElement\n\t@Event() smoothlyAccordionItemDidLoad!: EventEmitter<void>\n\t@Event() smoothlyAccordionItemDidUnload!: EventEmitter<void>\n\t@Event() smoothlyOpen!: EventEmitter<{ name: string; open: boolean }>\n\t@Event() smoothlyClose!: EventEmitter<{ name: string; open: boolean }>\n\t@Watch(\"open\")\n\topenChanged(isChecked: boolean) {\n\t\tthis.open = isChecked\n\t\tif (isChecked) {\n\t\t\tthis.smoothlyOpen.emit({\n\t\t\t\topen: true,\n\t\t\t\tname: this.name,\n\t\t\t})\n\t\t}\n\t}\n\tcomponentDidLoad() {\n\t\tconst summary = this.me.getElementsByTagName(\"summary\")\n\t\tif (summary.length > 0) {\n\t\t\tconst onClick = (e: UIEvent) => {\n\t\t\t\tif (this.open)\n\t\t\t\t\tthis.smoothlyClose.emit({ open: this.open, name: this.name })\n\t\t\t\telse\n\t\t\t\t\tthis.open = true\n\t\t\t\te.preventDefault()\n\t\t\t}\n\t\t\tsummary[0].addEventListener(\"click\", onClick)\n\t\t\tsummary[0].addEventListener(\"touch\", onClick)\n\t\t}\n\t\tthis.smoothlyAccordionItemDidLoad.emit()\n\t}\n\tdisconnectedCallback() {\n\t\tthis.smoothlyAccordionItemDidUnload.emit()\n\t}\n\trender() {\n\t\treturn (\n\t\t\t<details open={this.open}>\n\t\t\t\t<summary>\n\t\t\t\t\t{this.open ? (\n\t\t\t\t\t\t<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\">\n\t\t\t\t\t\t\t<path d=\"M256 48C141.6 48 48 141.6 48 256s93.6 208 208 208 208-93.6 208-208S370.4 48 256 48zm-42.7 318.9L106.7 260.3l29.9-29.9 76.8 76.8 162.1-162.1 29.9 29.9-192.1 191.9z\" />\n\t\t\t\t\t\t</svg>\n\t\t\t\t\t) : (\n\t\t\t\t\t\t<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\">\n\t\t\t\t\t\t\t<path d=\"M256 48C141.601 48 48 141.601 48 256s93.601 208 208 208 208-93.601 208-208S370.399 48 256 48zm0 374.399c-91.518 0-166.399-74.882-166.399-166.399S164.482 89.6 256 89.6 422.4 164.482 422.4 256 347.518 422.399 256 422.399z\" />\n\t\t\t\t\t\t</svg>\n\t\t\t\t\t)}\n\t\t\t\t\t{this.name}\n\t\t\t\t\t{typeof this.brand == \"string\" ? (\n\t\t\t\t\t\t<span class={this.brand.toLowerCase()}>{this.brand}</span>\n\t\t\t\t\t) : Array.isArray(this.brand) ? (\n\t\t\t\t\t\tthis.brand.map(b => <span class={b.toLowerCase()}>{b}</span>)\n\t\t\t\t\t) : (\n\t\t\t\t\t\t[]\n\t\t\t\t\t)}\n\t\t\t\t</summary>\n\t\t\t\t<fieldset disabled={!this.open} name={this.name}>\n\t\t\t\t\t<slot />\n\t\t\t\t</fieldset>\n\t\t\t</details>\n\t\t)\n\t}\n}\n"]}
@@ -0,0 +1,65 @@
1
+ import { h } from "@stencil/core";
2
+ export class SmoothlyAddress {
3
+ constructor() {
4
+ this.value = undefined;
5
+ this.editable = false;
6
+ }
7
+ render() {
8
+ return h("smoothly-address-display", { value: this.value, editable: this.editable });
9
+ }
10
+ static get is() { return "smoothly-address"; }
11
+ static get encapsulation() { return "scoped"; }
12
+ static get originalStyleUrls() {
13
+ return {
14
+ "$": ["style.css"]
15
+ };
16
+ }
17
+ static get styleUrls() {
18
+ return {
19
+ "$": ["style.css"]
20
+ };
21
+ }
22
+ static get properties() {
23
+ return {
24
+ "value": {
25
+ "type": "unknown",
26
+ "mutable": false,
27
+ "complexType": {
28
+ "original": "address",
29
+ "resolved": "address",
30
+ "references": {
31
+ "address": {
32
+ "location": "import",
33
+ "path": "../address-display"
34
+ }
35
+ }
36
+ },
37
+ "required": false,
38
+ "optional": false,
39
+ "docs": {
40
+ "tags": [],
41
+ "text": ""
42
+ }
43
+ },
44
+ "editable": {
45
+ "type": "boolean",
46
+ "mutable": false,
47
+ "complexType": {
48
+ "original": "boolean",
49
+ "resolved": "boolean",
50
+ "references": {}
51
+ },
52
+ "required": false,
53
+ "optional": false,
54
+ "docs": {
55
+ "tags": [],
56
+ "text": ""
57
+ },
58
+ "attribute": "editable",
59
+ "reflect": false,
60
+ "defaultValue": "false"
61
+ }
62
+ };
63
+ }
64
+ }
65
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/address/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AAOlD,MAAM,OAAO,eAAe;;;oBAER,KAAK;;EACxB,MAAM;IACL,OAAO,gCAA0B,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,GAA6B,CAAA;EACzG,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, h, Prop } from \"@stencil/core\"\nimport { address } from \"../address-display\"\n@Component({\n\ttag: \"smoothly-address\",\n\tstyleUrl: \"style.css\",\n\tscoped: true,\n})\nexport class SmoothlyAddress {\n\t@Prop() value: address\n\t@Prop() editable = false\n\trender() {\n\t\treturn <smoothly-address-display value={this.value} editable={this.editable}></smoothly-address-display>\n\t}\n}\n"]}
@@ -0,0 +1,4 @@
1
+ :host {
2
+ display: flex;
3
+ justify-content: space-evenly;
4
+ }
@@ -0,0 +1,72 @@
1
+ import { h } from "@stencil/core";
2
+ export class SmoothlyAddressDisplay {
3
+ constructor() {
4
+ this.value = undefined;
5
+ this.editable = undefined;
6
+ }
7
+ render() {
8
+ if (this.editable) {
9
+ return [
10
+ h("div", null, h("h4", null, this.value.allowed, ":"), h("smoothly-input", { type: "text", name: "street", value: this.value.street }, "Street"), h("smoothly-input", { type: "postal-code", name: "zip", value: this.value.zipCode }, "ZipCode"), h("smoothly-input", { type: "text", name: "city", value: this.value.city }, "City"), h("smoothly-input", { type: "text", name: "countryCode", value: this.value.countryCode }, "CountryCode")),
11
+ ];
12
+ }
13
+ else {
14
+ return [
15
+ h("div", null, h("h4", null, this.value.allowed, ":"), h("p", null, this.value.street), h("p", null, this.value.zipCode), h("p", null, this.value.city), h("p", null, this.value.countryCode)),
16
+ ];
17
+ }
18
+ }
19
+ static get is() { return "smoothly-address-display"; }
20
+ static get encapsulation() { return "scoped"; }
21
+ static get originalStyleUrls() {
22
+ return {
23
+ "$": ["style.css"]
24
+ };
25
+ }
26
+ static get styleUrls() {
27
+ return {
28
+ "$": ["style.css"]
29
+ };
30
+ }
31
+ static get properties() {
32
+ return {
33
+ "value": {
34
+ "type": "unknown",
35
+ "mutable": false,
36
+ "complexType": {
37
+ "original": "address",
38
+ "resolved": "address",
39
+ "references": {
40
+ "address": {
41
+ "location": "local"
42
+ }
43
+ }
44
+ },
45
+ "required": false,
46
+ "optional": false,
47
+ "docs": {
48
+ "tags": [],
49
+ "text": ""
50
+ }
51
+ },
52
+ "editable": {
53
+ "type": "boolean",
54
+ "mutable": false,
55
+ "complexType": {
56
+ "original": "boolean",
57
+ "resolved": "boolean",
58
+ "references": {}
59
+ },
60
+ "required": false,
61
+ "optional": false,
62
+ "docs": {
63
+ "tags": [],
64
+ "text": ""
65
+ },
66
+ "attribute": "editable",
67
+ "reflect": false
68
+ }
69
+ };
70
+ }
71
+ }
72
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/address-display/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AAgBlD,MAAM,OAAO,sBAAsB;;;;;EAGlC,MAAM;IACL,IAAI,IAAI,CAAC,QAAQ,EAAE;MAClB,OAAO;QACN;UACC;YAAK,IAAI,CAAC,KAAK,CAAC,OAAO;gBAAO;UAC9B,sBAAgB,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,aAEjD;UACjB,sBAAgB,IAAI,EAAC,aAAa,EAAC,IAAI,EAAC,KAAK,EAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,OAAO,cAEtD;UACjB,sBAAgB,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,MAAM,EAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,WAE7C;UACjB,sBAAgB,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,aAAa,EAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,WAAW,kBAE3D,CACZ;OACN,CAAA;KACD;SAAM;MACN,OAAO;QACN;UACC;YAAK,IAAI,CAAC,KAAK,CAAC,OAAO;gBAAO;UAC9B,aAAI,IAAI,CAAC,KAAK,CAAC,MAAM,CAAK;UAC1B,aAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAK;UAC3B,aAAI,IAAI,CAAC,KAAK,CAAC,IAAI,CAAK;UACxB,aAAI,IAAI,CAAC,KAAK,CAAC,WAAW,CAAK,CAC1B;OACN,CAAA;KACD;EACF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, h, Prop } from \"@stencil/core\"\nimport * as isoly from \"isoly\"\n\nexport interface address {\n\tallowed?: string\n\tcountryCode: isoly.CountryCode.Alpha2\n\tstreet: string\n\tzipCode: string\n\tcity: string\n}\n\n@Component({\n\ttag: \"smoothly-address-display\",\n\tstyleUrl: \"style.css\",\n\tscoped: true,\n})\nexport class SmoothlyAddressDisplay {\n\t@Prop() value: address\n\t@Prop() editable: boolean\n\trender() {\n\t\tif (this.editable) {\n\t\t\treturn [\n\t\t\t\t<div>\n\t\t\t\t\t<h4>{this.value.allowed}:</h4>\n\t\t\t\t\t<smoothly-input type=\"text\" name=\"street\" value={this.value.street}>\n\t\t\t\t\t\tStreet\n\t\t\t\t\t</smoothly-input>\n\t\t\t\t\t<smoothly-input type=\"postal-code\" name=\"zip\" value={this.value.zipCode}>\n\t\t\t\t\t\tZipCode\n\t\t\t\t\t</smoothly-input>\n\t\t\t\t\t<smoothly-input type=\"text\" name=\"city\" value={this.value.city}>\n\t\t\t\t\t\tCity\n\t\t\t\t\t</smoothly-input>\n\t\t\t\t\t<smoothly-input type=\"text\" name=\"countryCode\" value={this.value.countryCode}>\n\t\t\t\t\t\tCountryCode\n\t\t\t\t\t</smoothly-input>\n\t\t\t\t</div>,\n\t\t\t]\n\t\t} else {\n\t\t\treturn [\n\t\t\t\t<div>\n\t\t\t\t\t<h4>{this.value.allowed}:</h4>\n\t\t\t\t\t<p>{this.value.street}</p>\n\t\t\t\t\t<p>{this.value.zipCode}</p>\n\t\t\t\t\t<p>{this.value.city}</p>\n\t\t\t\t\t<p>{this.value.countryCode}</p>\n\t\t\t\t</div>,\n\t\t\t]\n\t\t}\n\t}\n}\n"]}
@@ -0,0 +1,4 @@
1
+ :host {
2
+ display: block;
3
+ width: 30%;
4
+ }
@@ -0,0 +1,62 @@
1
+ import { h } from "@stencil/core";
2
+ export class SmoothlyAddresses {
3
+ constructor() {
4
+ this.value = undefined;
5
+ this.editable = undefined;
6
+ }
7
+ render() {
8
+ return [this.value.map(value => h("smoothly-address", { value: value }))];
9
+ }
10
+ static get is() { return "smoothly-addresses"; }
11
+ static get encapsulation() { return "scoped"; }
12
+ static get originalStyleUrls() {
13
+ return {
14
+ "$": ["style.css"]
15
+ };
16
+ }
17
+ static get styleUrls() {
18
+ return {
19
+ "$": ["style.css"]
20
+ };
21
+ }
22
+ static get properties() {
23
+ return {
24
+ "value": {
25
+ "type": "unknown",
26
+ "mutable": false,
27
+ "complexType": {
28
+ "original": "address[]",
29
+ "resolved": "address[]",
30
+ "references": {
31
+ "address": {
32
+ "location": "import",
33
+ "path": "../address-display"
34
+ }
35
+ }
36
+ },
37
+ "required": false,
38
+ "optional": false,
39
+ "docs": {
40
+ "tags": [],
41
+ "text": ""
42
+ }
43
+ },
44
+ "editable": {
45
+ "type": "unknown",
46
+ "mutable": false,
47
+ "complexType": {
48
+ "original": "boolean[]",
49
+ "resolved": "boolean[]",
50
+ "references": {}
51
+ },
52
+ "required": false,
53
+ "optional": false,
54
+ "docs": {
55
+ "tags": [],
56
+ "text": ""
57
+ }
58
+ }
59
+ };
60
+ }
61
+ }
62
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/addresses/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AAOlD,MAAM,OAAO,iBAAiB;;;;;EAG7B,MAAM;IACL,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,wBAAkB,KAAK,EAAE,KAAK,GAAqB,CAAC,CAAC,CAAA;EACtF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, h, Prop } from \"@stencil/core\"\nimport { address } from \"../address-display\"\n@Component({\n\ttag: \"smoothly-addresses\",\n\tstyleUrl: \"style.css\",\n\tscoped: true,\n})\nexport class SmoothlyAddresses {\n\t@Prop() value: address[]\n\t@Prop() editable: boolean[]\n\trender() {\n\t\treturn [this.value.map(value => <smoothly-address value={value}></smoothly-address>)]\n\t}\n}\n"]}
@@ -0,0 +1,4 @@
1
+ :host {
2
+ display: flex;
3
+ justify-content: space-around;
4
+ }
@@ -44,3 +44,4 @@ export class SmoothlyApp {
44
44
  };
45
45
  }
46
46
  }
47
+ //# sourceMappingURL=index.js.map