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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAChD,OAAO,EAEN,gBAAgB,EAGhB,UAAU,EACV,OAAO,EACP,MAAM,EACN,OAAO,EAEP,UAAU,GACV,MAAM,SAAS,CAAA;AAChB,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA","sourcesContent":["export { Components, JSX } from \"./components\"\nexport { App, redirect } from \"./components/App\"\nexport {\n\tAutocomplete,\n\tClientIdentifier,\n\tColor,\n\tFill,\n\tGoogleFont,\n\tMessage,\n\tNotice,\n\tTrigger,\n\tOption,\n\tListenable,\n} from \"./model\"\nexport { Cosmetic } from \"./utilities\"\n"]}
@@ -1 +1,2 @@
1
1
  export {};
2
+ //# sourceMappingURL=Autocomplete.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Autocomplete.js","sourceRoot":"","sources":["../../src/model/Autocomplete.ts"],"names":[],"mappings":"","sourcesContent":["export type Autocomplete =\n\t| \"off\"\n\t| \"on\"\n\t| \"name\"\n\t| \"honorific-prefix\"\n\t| \"given-name\"\n\t| \"additional-name\"\n\t| \"family-name\"\n\t| \"honorific-suffix\"\n\t| \"nickname\"\n\t| \"email\"\n\t| \"username\"\n\t| \"new-password\"\n\t| \"current-password\"\n\t| \"organization-title\"\n\t| \"organization\"\n\t| \"street-address\"\n\t| \"address-line1\"\n\t| \"address-line2\"\n\t| \"address-line3\"\n\t| \"address-level4\"\n\t| \"address-level3\"\n\t| \"address-level2\"\n\t| \"address-level1\"\n\t| \"country\"\n\t| \"country-name\"\n\t| \"postal-code\"\n\t| \"cc-name\"\n\t| \"cc-given-name\"\n\t| \"cc-additional-name\"\n\t| \"cc-family-name\"\n\t| \"cc-number\"\n\t| \"cc-exp\"\n\t| \"cc-exp-month\"\n\t| \"cc-exp-year\"\n\t| \"cc-csc\"\n\t| \"cc-type\"\n\t| \"transaction-amount\"\n\t| \"language\"\n\t| \"bday\"\n\t| \"bday-day\"\n\t| \"bday-month\"\n\t| \"bday-year\"\n\t| \"sex\"\n\t| \"tel\"\n\t| \"tel-country-code\"\n\t| \"tel-national\"\n\t| \"tel-area-code\"\n\t| \"tel-local\"\n\t| \"tel-extension\"\n\t| \"impp\"\n\t| \"url\"\n\t| \"photo\"\n"]}
@@ -10,3 +10,4 @@ export class ClientIdentifier {
10
10
  return ClientIdentifier.valueCache;
11
11
  }
12
12
  }
13
+ //# sourceMappingURL=ClientIdentifier.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ClientIdentifier.js","sourceRoot":"","sources":["../../src/model/ClientIdentifier.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAEnC,MAAM,OAAgB,gBAAgB;EAErC,gBAAuB,CAAC;EAExB,MAAM,KAAK,KAAK;IACf,gBAAgB,CAAC,UAAU,GAAG,YAAY,CAAC,OAAO,CAAC,kBAAkB,CAAC,IAAI,SAAS,CAAA;IACnF,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE;MACjC,gBAAgB,CAAC,UAAU,GAAG,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAA;MACrD,YAAY,CAAC,OAAO,CAAC,kBAAkB,EAAE,gBAAgB,CAAC,UAAU,CAAC,CAAA;KACrE;IACD,OAAO,gBAAgB,CAAC,UAAU,CAAA;EACnC,CAAC;CACD","sourcesContent":["import { Identifier } from \"authly\"\n\nexport abstract class ClientIdentifier {\n\t// eslint-disable-next-line @typescript-eslint/no-empty-function\n\tprivate constructor() {}\n\tprivate static valueCache?: string\n\tstatic get value(): string {\n\t\tClientIdentifier.valueCache = localStorage.getItem(\"clientIdentifier\") || undefined\n\t\tif (!ClientIdentifier.valueCache) {\n\t\t\tClientIdentifier.valueCache = Identifier.generate(12)\n\t\t\tlocalStorage.setItem(\"clientIdentifier\", ClientIdentifier.valueCache)\n\t\t}\n\t\treturn ClientIdentifier.valueCache\n\t}\n}\n"]}
@@ -1 +1,2 @@
1
1
  export {};
2
+ //# sourceMappingURL=Color.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Color.js","sourceRoot":"","sources":["../../src/model/Color.ts"],"names":[],"mappings":"","sourcesContent":["export type Color =\n\t| \"default\"\n\t| \"primary\"\n\t| \"secondary\"\n\t| \"tertiary\"\n\t| \"success\"\n\t| \"warning\"\n\t| \"danger\"\n\t| \"light\"\n\t| \"medium\"\n\t| \"dark\"\n"]}
@@ -1 +1,2 @@
1
1
  export {};
2
+ //# sourceMappingURL=Fill.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Fill.js","sourceRoot":"","sources":["../../src/model/Fill.ts"],"names":[],"mappings":"","sourcesContent":["export type Fill = \"clear\" | \"default\" | \"outline\" | \"solid\"\n"]}
@@ -17,3 +17,4 @@ export var GoogleFont;
17
17
  }
18
18
  GoogleFont.styleImportString = styleImportString;
19
19
  })(GoogleFont || (GoogleFont = {}));
20
+ //# sourceMappingURL=GoogleFont.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GoogleFont.js","sourceRoot":"","sources":["../../src/model/GoogleFont.ts"],"names":[],"mappings":"AAEA,MAAM,KAAW,UAAU,CAgB1B;AAhBD,WAAiB,UAAU;EAC1B,SAAgB,EAAE,CAAC,KAAmB;IACrC,OAAO,CACN,OAAO,KAAK,IAAI,QAAQ;MACxB,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC;MACxB,mGAAmG,CAAC,IAAI,CAAC,KAAK,CAAC,CAC/G,CAAA;EACF,CAAC;EANe,aAAE,KAMjB,CAAA;EACD,SAAgB,OAAO,CAAC,KAAa;IACpC,OAAO,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAA;EACvE,CAAC;EAFe,kBAAO,UAEtB,CAAA;EACD,SAAgB,iBAAiB,CAAC,KAAa;IAC9C,OAAO,EAAE,CAAC,KAAK,CAAC;MACf,CAAC,CAAC,yDAAyD,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,eAAe;MAClG,CAAC,CAAC,SAAS,CAAA;EACb,CAAC;EAJe,4BAAiB,oBAIhC,CAAA;AACF,CAAC,EAhBgB,UAAU,KAAV,UAAU,QAgB1B","sourcesContent":["export type GoogleFont = string\n\nexport namespace GoogleFont {\n\texport function is(value: string | any): value is GoogleFont {\n\t\treturn (\n\t\t\ttypeof value == \"string\" &&\n\t\t\t!/[</>\"'`]/g.test(value) &&\n\t\t\t/^([a-zA-ZäöüåßÄÖÜÅ+ ])+(:(ital(,)?)?((wght@(([01],\\d{3})(;[01],\\d{3})*|((\\d{3})(;\\d{3})*))))?)?$/g.test(value)\n\t\t)\n\t}\n\texport function getFont(value: string): string | undefined {\n\t\treturn is(value) ? value.split(\":\")[0].replace(/\\+/g, \" \") : undefined\n\t}\n\texport function styleImportString(value: string): string | undefined {\n\t\treturn is(value)\n\t\t\t? `@import url('https://fonts.googleapis.com/css2?family=${value.replace(/ /g, \"+\")}&display=swap`\n\t\t\t: undefined\n\t}\n}\n"]}
@@ -53,3 +53,4 @@ export class Listenable {
53
53
  }
54
54
  }
55
55
  _Listenable_listeners = new WeakMap();
56
+ //# sourceMappingURL=Listenable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Listenable.js","sourceRoot":"","sources":["../../src/model/Listenable.ts"],"names":[],"mappings":";;;;;;AAAA,M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pC,CAAC,CAAC;YACA,GAAG;cACF,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;YACnC,CAAC;WACA;UACH,CAAC,CAAC,UAAU,CAAC,QAAQ,IAAI,UAAU,CAAC,GAAG;YACvC,CAAC,CAAC;cACA,GAAG;gBACF,OAAO,OAAO,CAAC,IAAI,CAAC,CAAA;cACrB,CAAC;cACD,GAAG,CAAC,KAAU;;gBACb,OAAO,CAAC,IAAI,CAAC,GAAG,KAAK,CAAA;gBACrB,MAAA,uBAAA,MAAM,6BAAW,CAAC,IAAI,CAAC,0CAAE,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAA;cAC9D,CAAC;aACA;YACH,CAAC,CAAC;cACA,GAAG;gBACF,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;cACnC,CAAC;aACA;OACJ,CAAC,CACF,CAAA;IACF,CAAC;EACF,CAAC;CACD","sourcesContent":["export class Listenable<T extends Record<string, any>> {\n\t#listeners: Listeners<ListenableProperties<T>> = {}\n\tlisten<K extends keyof ListenableProperties<T>>(\n\t\tthis: T & Listenable<T>,\n\t\tproperty: K,\n\t\tlistener: Listener<T[K]>\n\t): void {\n\t\tthis.#listeners[property]?.push(listener) ?? (this.#listeners[property] = [listener])\n\t\tlistener(this[property])\n\t}\n\tunlisten<K extends keyof ListenableProperties<T>>(property: K, listener: Listener<T[K]>): void {\n\t\tconst index = this.#listeners[property]?.indexOf(listener)\n\t\tindex != undefined && index >= 0 && this.#listeners[property]?.splice(index, 1)\n\t}\n\n\tstatic load<T extends Record<string, any>>(backend: T, listenable?: Listenable<T>): T & Listenable<T> {\n\t\tconst result = listenable ?? new Listenable()\n\n\t\treturn Object.defineProperties(result, getProperties(backend)) as T & Listenable<T>\n\n\t\tfunction getProperties(backend: any) {\n\t\t\treturn Object.fromEntries(\n\t\t\t\t(\n\t\t\t\t\tObject.entries({\n\t\t\t\t\t\t...Object.getOwnPropertyDescriptors(backend),\n\t\t\t\t\t\t...Object.getOwnPropertyDescriptors(Object.getPrototypeOf(backend)),\n\t\t\t\t\t}) as [keyof T, PropertyDescriptor][]\n\t\t\t\t).map(([name, descriptor]) => [\n\t\t\t\t\tname,\n\t\t\t\t\ttypeof descriptor.value == \"function\"\n\t\t\t\t\t\t? {\n\t\t\t\t\t\t\t\tget() {\n\t\t\t\t\t\t\t\t\treturn backend[name].bind(backend)\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t }\n\t\t\t\t\t\t: descriptor.writable || descriptor.set\n\t\t\t\t\t\t? {\n\t\t\t\t\t\t\t\tget() {\n\t\t\t\t\t\t\t\t\treturn backend[name]\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tset(value: any) {\n\t\t\t\t\t\t\t\t\tbackend[name] = value\n\t\t\t\t\t\t\t\t\tresult.#listeners[name]?.forEach(listener => listener(value))\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t }\n\t\t\t\t\t\t: {\n\t\t\t\t\t\t\t\tget() {\n\t\t\t\t\t\t\t\t\treturn backend[name].bind(backend)\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t },\n\t\t\t\t])\n\t\t\t)\n\t\t}\n\t}\n}\ntype ListenableProperties<T> = {\n\t// eslint-disable-next-line @typescript-eslint/ban-types\n\t[P in keyof T as T[P] extends Function ? never : P]: T[P]\n}\n\nexport type Listener<V> = (value: V) => void\nexport type Listeners<T> = {\n\t[K in keyof T]?: Listener<T[K]>[]\n}\n"]}
@@ -35,3 +35,4 @@ export class Message {
35
35
  });
36
36
  }
37
37
  }
38
+ //# sourceMappingURL=Message.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Message.js","sourceRoot":"","sources":["../../src/model/Message.ts"],"names":[],"mappings":"AAMA,MAAM,OAAO,OAAO;EACnB,MAAM,CAAC,EAAE,CAAC,KAAyB;IAClC,OAAO,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AC,OAAO,IAAI,MAAM,CAAC,CAAC,gBAAgB,CAAC,SAAS,EAAE,CAAC,CAAe,EAAE,EAAE;MACpE,MAAM,OAAO,GAAG,CAAC,CAAC,IAAI,CAAA;MACtB,IACC,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC;QACnB,CAAC,MAAM,IAAI,GAAG,IAAI,CAAC,CAAC,MAAM,IAAI,MAAM,CAAC;QACrC,CAAC,WAAW,IAAI,EAAE,IAAI,OAAO,CAAC,WAAW,IAAI,WAAW,CAAC;QAEzD,MAAM,CAAC,OAAO,CAAC,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,CAAA;IAC9C,CAAC,CAAC,CAAA;EACH,CAAC;CACD","sourcesContent":["export interface Message<T> {\n\tdestination: string\n\tcontent: T\n}\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport class Message<T> {\n\tstatic is(value: Message<any> | any): value is Message<any> {\n\t\treturn typeof value == \"object\" && typeof value.destination == \"string\" && value.content != undefined\n\t}\n\tstatic send(message: Message<any>, context?: Window): void\n\tstatic send(destination: string, content: any, context?: Window): void\n\tstatic send(message: string | Message<any>, content?: any | Window, context?: Window): void {\n\t\tif (Message.is(message) && context == undefined) {\n\t\t\tcontext = content as Window\n\t\t\tif (!context)\n\t\t\t\tcontext = window\n\t\t\tconst destination = message.destination.split(\"#\", 2)\n\t\t\tmessage = { destination: destination[1], content: message.content }\n\t\t\tcontext.postMessage(message, destination[0])\n\t\t} else if (typeof context != \"string\") {\n\t\t\tif (!context)\n\t\t\t\tcontext = window\n\t\t\tif (typeof message == \"string\")\n\t\t\t\tMessage.send({ destination: message, content }, context)\n\t\t}\n\t}\n\tstatic listen(origin: string, handle: (destination: string, content: any) => void, context?: Window): void {\n\t\tconst splitted = origin.split(\"#\", 2)\n\t\tlet destination = \"\"\n\t\tif (splitted.length == 2) {\n\t\t\torigin = splitted[0]\n\t\t\tdestination = splitted[1]\n\t\t}\n\t\t;(context || window).addEventListener(\"message\", (e: MessageEvent) => {\n\t\t\tconst message = e.data\n\t\t\tif (\n\t\t\t\tMessage.is(message) &&\n\t\t\t\t(origin == \"*\" || e.origin == origin) &&\n\t\t\t\t(destination == \"\" || message.destination == destination)\n\t\t\t)\n\t\t\t\thandle(message.destination, message.content)\n\t\t})\n\t}\n}\n"]}
@@ -89,3 +89,4 @@ export class Notice {
89
89
  return new Notice("warning", message);
90
90
  }
91
91
  }
92
+ //# sourceMappingURL=Notice.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Notice.js","sourceRoot":"","sources":["../../src/model/Notice.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,MAAM;EAElB,IAAI,KAAK;IACR,OAAO,IAAI,CAAC,UAAU,CAAA;EACvB,CAAC;EACD,IAAI,KAAK,CAAC,KAAmB;IAC5B,IAAI,IAAI,CAAC,UAAU,IAAI,KAAK,EAAE;MAC7B,IAAI,CAAC,UAAU,GAAG,KAAK,CAAA;MACvB,IAAI,CAAC,IAAI,EAAE,CAAA;KACX;EACF,CAAC;EAGD,IAAI,OAAO;IACV,OAAO,IAAI,CAAC,YAAY,CAAA;EACzB,CAAC;EACD,IAAI,OAAO,CAAC,KAAa;IACxB,IAAI,IAAI,CAAC,YAAY,IAAI,KAAK,EAAE;MAC/B,IAAI,CAAC,YAAY,GAAG,KAAK,CAAA;MACzB,IAAI,CAAC,IAAI,EAAE,CAAA;KACX;EACF,CAAC;EACD,YAA4B,UAAwB,EAAU,YAAoB,EAAU,IAAkB;IAAlF,eAAU,GAAV,UAAU,CAAc;IAAU,iBAAY,GAAZ,YAAY,CAAQ;IAAU,SAAI,GAAJ,IAAI,CAAc;IAVtG,cAAS,GAAsB,EAAE,CAAA;IAWxC,QAAQ,UAAU,EAAE;MACnB,KAAK,SAAS;QACb,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,IAAI,CAAC,CAAA;QAC1D,MAAK;MACN,KAAK,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AAA;IACjB,IAAI,CAAC,KAAK,GAAG,QAAQ,CAAA;EACtB,CAAC;EACO,UAAU;IACjB,IAAI,IAAI,CAAC,KAAK,EAAE;MACf,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;MAC/B,IAAI,CAAC,KAAK,GAAG,SAAS,CAAA;KACtB;EACF,CAAC;EAED,MAAM,CAAC,KAAK,CAAC,OAAe,EAAE,IAAiB;IAC9C,OAAO,IAAI,MAAM,CAAC,SAAS,EAAE,OAAO,EAAE,IAAI,CAAC,CAAA;EAC5C,CAAC;EACD,MAAM,CAAC,OAAO,CAAC,OAAe,EAAE,IAAiB;IAChD,OAAO,IAAI,MAAM,CAAC,WAAW,EAAE,OAAO,EAAE,IAAI,CAAC,CAAA;EAC9C,CAAC;EACD,MAAM,CAAC,QAAQ,CAAC,OAAe;IAC9B,OAAO,IAAI,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,CAAA;EACtC,CAAC;EACD,MAAM,CAAC,MAAM,CAAC,OAAe;IAC5B,OAAO,IAAI,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAA;EACrC,CAAC;EACD,MAAM,CAAC,IAAI,CAAC,OAAe;IAC1B,OAAO,IAAI,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,CAAA;EACtC,CAAC;CACD","sourcesContent":["export class Notice {\n\tprivate timer?: number\n\tget state(): Notice.State {\n\t\treturn this.stateValue\n\t}\n\tset state(value: Notice.State) {\n\t\tif (this.stateValue != value) {\n\t\t\tthis.stateValue = value\n\t\t\tthis.emit()\n\t\t}\n\t}\n\n\tprivate listeners: Notice.Listener[] = []\n\tget message(): string {\n\t\treturn this.messageValue\n\t}\n\tset message(value: string) {\n\t\tif (this.messageValue != value) {\n\t\t\tthis.messageValue = value\n\t\t\tthis.emit()\n\t\t}\n\t}\n\tprivate constructor(private stateValue: Notice.State, private messageValue: string, private task?: Notice.Task) {\n\t\tswitch (stateValue) {\n\t\t\tcase \"delayed\":\n\t\t\t\tthis.timer = window.setTimeout(() => this.execute(), 5000)\n\t\t\t\tbreak\n\t\t\tcase \"executing\":\n\t\t\t\tthis.execute()\n\t\t\t\tbreak\n\t\t\tcase \"success\":\n\t\t\tcase \"warning\":\n\t\t\tcase \"failed\":\n\t\t\t\tthis.startCloseTimer()\n\t\t\t\tbreak\n\t\t\tdefault:\n\t\t\t\tbreak\n\t\t}\n\t}\n\tlisten(listener: Notice.Listener) {\n\t\tthis.listeners.push(listener)\n\t}\n\tunlisten(listener: Notice.Listener) {\n\t\tthis.listeners.filter(l => l != listener)\n\t}\n\tprivate emit() {\n\t\tthis.listeners.forEach(l => l(this))\n\t}\n\tprivate execute() {\n\t\tthis.clearTimer()\n\t\tif (this.task) {\n\t\t\tthis.state = \"executing\"\n\t\t\tthis.task(this).then(r => {\n\t\t\t\tthis.messageValue = r[1] // emit is triggered by the state change below\n\t\t\t\tthis.state = r[0] ? \"success\" : \"failed\"\n\t\t\t\tthis.startCloseTimer()\n\t\t\t})\n\t\t} else\n\t\t\tthis.state = \"failed\"\n\t}\n\tprivate startCloseTimer() {\n\t\tthis.timer = window.setTimeout(() => this.close(), 15000)\n\t}\n\n\tclose() {\n\t\tthis.clearTimer()\n\t\tthis.state = \"closed\"\n\t}\n\tprivate clearTimer() {\n\t\tif (this.timer) {\n\t\t\twindow.clearTimeout(this.timer)\n\t\t\tthis.timer = undefined\n\t\t}\n\t}\n\n\tstatic delay(message: string, task: Notice.Task): Notice {\n\t\treturn new Notice(\"delayed\", message, task)\n\t}\n\tstatic execute(message: string, task: Notice.Task): Notice {\n\t\treturn new Notice(\"executing\", message, task)\n\t}\n\tstatic succeded(message: string): Notice {\n\t\treturn new Notice(\"success\", message)\n\t}\n\tstatic failed(message: string): Notice {\n\t\treturn new Notice(\"failed\", message)\n\t}\n\tstatic warn(message: string): Notice {\n\t\treturn new Notice(\"warning\", message)\n\t}\n}\nexport namespace Notice {\n\texport type State = \"delayed\" | \"executing\" | \"success\" | \"warning\" | \"failed\" | \"closed\"\n\texport type Listener = (notice: Notice) => void\n\texport type Task = (notice: Notice) => Promise<[boolean, string]>\n}\n"]}
@@ -1 +1,2 @@
1
1
  export {};
2
+ //# sourceMappingURL=Option.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Option.js","sourceRoot":"","sources":["../../src/model/Option.ts"],"names":[],"mappings":"","sourcesContent":["export type Option = {\n\tvalue: any\n\tname: string\n\thint?: string\n\taliases?: string[]\n\tdivider?: boolean\n}\n"]}
@@ -3,3 +3,4 @@ export class Trigger {
3
3
  return typeof value == "object" && typeof value.name == "string";
4
4
  }
5
5
  }
6
+ //# sourceMappingURL=Trigger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Trigger.js","sourceRoot":"","sources":["../../src/model/Trigger.ts"],"names":[],"mappings":"AAIA,MAAM,OAAO,OAAO;EACnB,MAAM,CAAC,EAAE,CAAC,KAAoB;IAC7B,OAAO,OAAO,KAAK,IAAI,QAAQ,IAAI,OAAO,KAAK,CAAC,IAAI,IAAI,QAAQ,CAAA;EACjE,CAAC;CACD","sourcesContent":["export interface Trigger {\n\tname: string\n\tvalue?: any\n}\nexport class Trigger {\n\tstatic is(value: Trigger | any): value is Trigger {\n\t\treturn typeof value == \"object\" && typeof value.name == \"string\"\n\t}\n}\n"]}
@@ -4,3 +4,4 @@ export { Message } from "./Message";
4
4
  export { Notice } from "./Notice";
5
5
  export { Trigger } from "./Trigger";
6
6
  export { Listenable } from "./Listenable";
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/model/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAGrD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEjC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA","sourcesContent":["export { Autocomplete } from \"./Autocomplete\"\nexport { ClientIdentifier } from \"./ClientIdentifier\"\nexport { Color } from \"./Color\"\nexport { Fill } from \"./Fill\"\nexport { GoogleFont } from \"./GoogleFont\"\nexport { Message } from \"./Message\"\nexport { Notice } from \"./Notice\"\nexport { Option } from \"./Option\"\nexport { Trigger } from \"./Trigger\"\nexport { Listenable } from \"./Listenable\"\n"]}
@@ -88,3 +88,4 @@ export var CommaRgb;
88
88
  return result;
89
89
  }
90
90
  })(CommaRgb || (CommaRgb = {}));
91
+ //# sourceMappingURL=CommaRgb.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CommaRgb.js","sourceRoot":"","sources":["../../../../src/utilities/Cosmetic/Color/CommaRgb.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAC3B,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAC3B,OAAO,EAAE,IAAI,IAAI,SAAS,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAA;AACjD,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAM3B,MAAM,KAAW,QAAQ,CAkFxB;AAlFD,WAAiB,QAAQ;EACxB,SAAgB,EAAE,CAAC,KAAqB;IACvC,MAAM,MAAM,GAAG,OAAO,KAAK,IAAI,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAA;IAC/D,OAAO,CACN,MAAM,CAAC,MAAM,IAAI,CAAC;MAClB,MAAM,CAAC,KAAK,CACX,CAAC,KAAa,EAAE,EAAE;;QACjB,OAAA,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC;UACpB,CAAA,MAAA,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAC,0CAAE,MAA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,CAAC,IAAI,CAAC,CAAA;IACP,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC;MACZ,MAAM,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;SACxB,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC;MACjB,MAAM,GAAG,CAAC,CAAA;SACN,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC;MACjB,MAAM,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAA;IACvC,OAAO,MAAM,CAAA;EACd,CAAC;AACF,CAAC,EAlFgB,QAAQ,KAAR,QAAQ,QAkFxB","sourcesContent":["import { Hex } from \"./Hex\"\nimport { Hsl } from \"./Hsl\"\nimport { Name as ColorName, Names } from \"./Name\"\nimport { Rgb } from \"./Rgb\"\n\n/**\n * Formated as \"r,g,b\", with no spaces included\n */\nexport type CommaRgb = string\nexport namespace CommaRgb {\n\texport function is(value: any | CommaRgb): value is CommaRgb {\n\t\tconst values = typeof value == \"string\" ? value.split(\",\") : []\n\t\treturn (\n\t\t\tvalues.length == 3 &&\n\t\t\tvalues.every(\n\t\t\t\t(value: string) =>\n\t\t\t\t\t!Number.isNaN(value) &&\n\t\t\t\t\tvalue.match(/[0-9]/g)?.length == value.length &&\n\t\t\t\t\tNumber(value) >= 0 &&\n\t\t\t\t\tNumber(value) <= 255\n\t\t\t)\n\t\t)\n\t}\n\texport function from(color: any): CommaRgb | undefined {\n\t\tlet result: CommaRgb | undefined\n\t\tconst colorWithoutSpace: CommaRgb | undefined =\n\t\t\ttypeof color == \"string\" ? color.replace(/ /g, \"\").toLowerCase() : undefined\n\t\tif (!colorWithoutSpace)\n\t\t\tresult = undefined\n\t\telse if (CommaRgb.is(colorWithoutSpace))\n\t\t\tresult = colorWithoutSpace\n\t\telse if (Hex.is(colorWithoutSpace))\n\t\t\tresult = fromHex(colorWithoutSpace)\n\t\telse if (Rgb.is(colorWithoutSpace))\n\t\t\tresult = fromRgb(colorWithoutSpace)\n\t\telse if (ColorName.is(colorWithoutSpace))\n\t\t\tresult = fromHex(Names[colorWithoutSpace])\n\t\telse if (Hsl.is(colorWithoutSpace))\n\t\t\tresult = fromHsl(colorWithoutSpace)\n\t\treturn result\n\t}\n\texport function fromHex(hex: Hex): CommaRgb {\n\t\tlet result: CommaRgb = \"0,0,0\"\n\t\tif (hex.length == 7)\n\t\t\tresult = `${parseInt(hex.substr(1, 2), 16)},${parseInt(hex.substr(3, 2), 16)},${parseInt(hex.substr(5, 2), 16)}`\n\t\telse if (hex.length == 4)\n\t\t\tresult = fromHex(`#${hex[1]}${hex[1]}${hex[2]}${hex[2]}${hex[3]}${hex[3]}`)\n\t\treturn result\n\t}\n\texport function fromRgb(rgb: Rgb): CommaRgb {\n\t\treturn rgb.substring(4, rgb.length - 1)\n\t}\n\texport function fromHsl(hsl: Hsl): CommaRgb {\n\t\tlet result: CommaRgb = \"\"\n\t\tlet h, s, l: number\n\t\tlet r, g, b: number\n\t\tconst HSL: number[] = hsl\n\t\t\t.substring(4, hsl.length - 1)\n\t\t\t.split(\",\")\n\t\t\t.map((value, index) => Number(index == 0 ? value : value.substr(0, value.length - 1)))\n\t\tif (HSL.length == 3) {\n\t\t\th = HSL[0] / 360\n\t\t\ts = HSL[1] / 100\n\t\t\tl = HSL[2] / 100\n\t\t\tif (s == 0)\n\t\t\t\tr = g = b = l\n\t\t\telse {\n\t\t\t\tconst q = l < 0.5 ? l * (1 + s) : l + s - l * s\n\t\t\t\tconst p = 2 * l - q\n\t\t\t\tr = hue2rgb(p, q, h + 1 / 3)\n\t\t\t\tg = hue2rgb(p, q, h)\n\t\t\t\tb = hue2rgb(p, q, h - 1 / 3)\n\t\t\t}\n\t\t\tresult = `${Math.round(255 * r)},${Math.round(255 * g)},${Math.round(255 * b)}`\n\t\t}\n\t\treturn result\n\t}\n\tfunction hue2rgb(p: number, q: number, t: number): number {\n\t\tlet result = p\n\t\tif (t < 0)\n\t\t\tt += 1\n\t\tif (t > 1)\n\t\t\tt -= 1\n\t\tif (t < 1 / 6)\n\t\t\tresult = p + (q - p) * 6 * t\n\t\telse if (t < 1 / 2)\n\t\t\tresult = q\n\t\telse if (t < 2 / 3)\n\t\t\tresult = p + (q - p) * (2 / 3 - t) * 6\n\t\treturn result\n\t}\n}\n"]}
@@ -9,3 +9,4 @@ export var Hex;
9
9
  }
10
10
  Hex.is = is;
11
11
  })(Hex || (Hex = {}));
12
+ //# sourceMappingURL=Hex.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Hex.js","sourceRoot":"","sources":["../../../../src/utilities/Cosmetic/Color/Hex.ts"],"names":[],"mappings":"AAIA,MAAM,KAAW,GAAG,CAUnB;AAVD,WAAiB,GAAG;EACnB,SAAgB,EAAE,CAAC,KAAgB;IAClC,MAAM,UAAU,GAAG,CAAC,OAAO,KAAK,IAAI,QAAQ,IAAI,KAAK,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,IAAI,SAAS,CAAA;IACzF,OAAO,CACN,OAAO,KAAK,IAAI,QAAQ;MACxB,KAAK,CAAC,MAAM,GAAG,CAAC;MAChB,KAAK,CAAC,CAAC,CAAC,IAAI,GAAG;MACf,CAAC,CAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,MAAM,KAAI,CAAC,IAAI,CAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,MAAM,KAAI,CAAC,CAAC,CACpD,CAAA;EACF,CAAC;EARe,MAAE,KAQjB,CAAA;AACF,CAAC,EAVgB,GAAG,KAAH,GAAG,QAUnB","sourcesContent":["/**\n * Hex formated as \"#xxxxxx\" or \"#xxx\" where x is 0-9, or a-f or A-F\n */\nexport type Hex = string\nexport namespace Hex {\n\texport function is(value: any | Hex): value is Hex {\n\t\tconst matchArray = (typeof value == \"string\" && value.match(/[0-9a-fA-F]/g)) || undefined\n\t\treturn (\n\t\t\ttypeof value == \"string\" &&\n\t\t\tvalue.length > 3 &&\n\t\t\tvalue[0] == \"#\" &&\n\t\t\t(matchArray?.length == 3 || matchArray?.length == 6)\n\t\t)\n\t}\n}\n"]}
@@ -30,3 +30,4 @@ export var Hsl;
30
30
  }
31
31
  Hsl.is = is;
32
32
  })(Hsl || (Hsl = {}));
33
+ //# sourceMappingURL=Hsl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Hsl.js","sourceRoot":"","sources":["../../../../src/utilities/Cosmetic/Color/Hsl.ts"],"names":[],"mappings":"AAMA,MAAM,KAAW,GAAG,CA8BnB;AA9BD,WAAiB,GAAG;EACnB,SAAgB,EAAE,CAAC,KAAgB;IAClC,MAAM,MAAM,GAAG,OAAO,KAAK,IAAI,QAAQ,IAAI,KAAK,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAA;IACnH,OAAO,CACN,OAAO,KAAK,IAAI,QAAQ;MACxB,KAAK,CAAC,MAAM,GAAG,EAAE;MACjB,KAAK,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,MAAM;MAC5B,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,CAAC,IAAI,GAAG;MACxC,MAAM,CAAC,MAAM,IAAI,CAAC;MAClB,MAAM,CAAC,KAAK,CAAC,CAAC,MAAc,EAAE,KAAa,EAAE,EAAE;;QAC9C,IAAI,MAAM,GAAG,KAAK,CAAA;QAClB,IAAI,KAAK,IAAI,CAAC;UACb,MAAM;YACL,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC;cACrB,CAAA,MAAA,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,0CAAE,MAAM,KAAI,MAAM,CAAC,MAAM;cAC/C,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC;cACnB,MAAM,CAAC,MAAM,CAAC,IAAI,GAAG,CAAA;aAClB;UACJ,MAAM,MAAM,GAAW,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAA;UAC1D,MAAM;YACL,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,IAAI,GAAG;cAChC,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC;cACrB,CAAA,MAAA,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,0CAAE,MAAM,KAAI,MAAM,CAAC,MAAM;cAC/C,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC;cACnB,MAAM,CAAC,MAAM,CAAC,IAAI,GAAG,CAAA;SACtB;QACD,OAAO,MAAM,CAAA;MACd,CAAC,CAAC,CACF,CAAA;EACF,CAAC;EA5Be,MAAE,KA4BjB,CAAA;AACF,CAAC,EA9BgB,GAAG,KAAH,GAAG,QA8BnB","sourcesContent":["/**\n * Hsl formated as \"hsl(H,S%,L%)\" with no spaces included\n * \t\twith limit: 0 <= H <= 360\n * \t\twith limit: 0 <= S,L <= 100\n */\nexport type Hsl = string\nexport namespace Hsl {\n\texport function is(value: any | Hsl): value is Hsl {\n\t\tconst values = typeof value == \"string\" && value.length > 11 ? value.substring(4, value.length - 1).split(\",\") : []\n\t\treturn (\n\t\t\ttypeof value == \"string\" &&\n\t\t\tvalue.length > 11 &&\n\t\t\tvalue.substr(0, 4) == \"hsl(\" &&\n\t\t\tvalue.substr(value.length - 1, 1) == \")\" &&\n\t\t\tvalues.length == 3 &&\n\t\t\tvalues.every((single: string, index: number) => {\n\t\t\t\tlet result = false\n\t\t\t\tif (index == 0)\n\t\t\t\t\tresult =\n\t\t\t\t\t\t!Number.isNaN(single) &&\n\t\t\t\t\t\tsingle.match(/[0-9]/g)?.length == single.length &&\n\t\t\t\t\t\tNumber(single) >= 0 &&\n\t\t\t\t\t\tNumber(single) <= 360\n\t\t\t\telse {\n\t\t\t\t\tconst number: string = single.substr(0, single.length - 1)\n\t\t\t\t\tresult =\n\t\t\t\t\t\tsingle[single.length - 1] == \"%\" &&\n\t\t\t\t\t\t!Number.isNaN(number) &&\n\t\t\t\t\t\tnumber.match(/[0-9]/g)?.length == number.length &&\n\t\t\t\t\t\tNumber(number) >= 0 &&\n\t\t\t\t\t\tNumber(number) <= 100\n\t\t\t\t}\n\t\t\t\treturn result\n\t\t\t})\n\t\t)\n\t}\n}\n"]}
@@ -156,3 +156,4 @@ export var Name;
156
156
  }
157
157
  Name.is = is;
158
158
  })(Name || (Name = {}));
159
+ //# sourceMappingURL=Name.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Name.js","sourceRoot":"","sources":["../../../../src/utilities/Cosmetic/Color/Name.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,KAAK,GAAU;EAC3B,SAAS,EAAE,SAAS;EACpB,YAAY,EAAE,SAAS;EACvB,IAAI,EAAE,SAAS;EACf,UAAU,EAAE,SAAS;EACrB,KAAK,EAAE,SAAS;EAChB,KAAK,EAAE,SAAS;EAChB,MAAM,EAAE,SAAS;EACjB,KAAK,EAAE,SAAS;EAChB,cAAc,EAAE,SAAS;EACzB,IAAI,EAAE,SAAS;EACf,UAAU,EAAE,SAAS;EACrB,KAAK,EAAE,SAAS;EAChB,SAAS,EAAE,SAAS;EACpB,SAAS,EAAE,SAAS;EACpB,UAAU,EAAE,SAAS;EACrB,SAAS,EAAE,SAAS;EACpB,KAAK,EAAE,SAAS;EAChB,cAAc,EAAE,SAAS;EACzB,QAAQ,EAAE,SAAS;EACnB,OAAO,EAAE,SAAS;EAClB,IAAI,EAAE,SAAS;EACf,QAAQ,EAAE,SAAS;EACnB,QAAQ,EAAE,SAAS;EACnB,aAAa,EAAE,SAAS;EACxB,QAAQ,EAAE,SAAS;EACnB,SAAS,EAAE,SAAS;EACpB,QAAQ,EAAE,SAAS;EACnB,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,MAAM,EAAE,SAAS;EACjB,OAAO,EAAE,SAAS;EAClB,SAAS,EAAE,SAAS;EACpB,SAAS,EAAE,SAAS;EACpB,SAAS,EAAE,SAAS;EACpB,IAAI,EAAE,SAAS;EACf,WAAW,EAAE,SAAS;EACtB,SAAS,EAAE,SAAS;EACpB,GAAG,EAAE,SAAS;EACd,IAAI,EAAE,SAAS;EACf,OAAO,EAAE,SAAS;EAClB,MAAM,EAAE,SAAS;EACjB,SAAS,EAAE,SAAS;EACpB,MAAM,EAAE,SAAS;EACjB,KAAK,EAAE,SAAS;EAChB,KAAK,EAAE,SAAS;EAChB,UAAU,EAAE,SAAS;EACrB,MAAM,EAAE,SAAS;EACjB,WAAW,EAAE,SAAS;CACtB,CAAA;AAED,MAAM,KAAW,IAAI,CAKpB;AALD,WAAiB,IAAI;EACP,UAAK,GAAG,GAAG,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;EAC7C,SAAgB,EAAE,CAAC,KAAiB;IACnC,OAAO,OAAO,KAAK,IAAI,QAAQ,IAAI,KAAA,KAAK,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC,CAAA;EACzE,CAAC;EAFe,OAAE,KAEjB,CAAA;AACF,CAAC,EALgB,IAAI,KAAJ,IAAI,QAKpB","sourcesContent":["export const Names = <const>{\n\taliceblue: \"#f0f8ff\",\n\tantiquewhite: \"#faebd7\",\n\taqua: \"#00ffff\",\n\taquamarine: \"#7fffd4\",\n\tazure: \"#f0ffff\",\n\tbeige: \"#f5f5dc\",\n\tbisque: \"#ffe4c4\",\n\tblack: \"#000000\",\n\tblanchedalmond: \"#ffebcd\",\n\tblue: \"#0000ff\",\n\tblueviolet: \"#8a2be2\",\n\tbrown: \"#a52a2a\",\n\tburlywood: \"#deb887\",\n\tcadetblue: \"#5f9ea0\",\n\tchartreuse: \"#7fff00\",\n\tchocolate: \"#d2691e\",\n\tcoral: \"#ff7f50\",\n\tcornflowerblue: \"#6495ed\",\n\tcornsilk: \"#fff8dc\",\n\tcrimson: \"#dc143c\",\n\tcyan: \"#00ffff\",\n\tdarkblue: \"#00008b\",\n\tdarkcyan: \"#008b8b\",\n\tdarkgoldenrod: \"#b8860b\",\n\tdarkgray: \"#a9a9a9\",\n\tdarkgreen: \"#006400\",\n\tdarkgrey: \"#a9a9a9\",\n\tdarkkhaki: \"#bdb76b\",\n\tdarkmagenta: \"#8b008b\",\n\tdarkolivegreen: \"#556b2f\",\n\tdarkorange: \"#ff8c00\",\n\tdarkorchid: \"#9932cc\",\n\tdarkred: \"#8b0000\",\n\tdarksalmon: \"#e9967a\",\n\tdarkseagreen: \"#8fbc8f\",\n\tdarkslateblue: \"#483d8b\",\n\tdarkslategray: \"#2f4f4f\",\n\tdarkslategrey: \"#2f4f4f\",\n\tdarkturquoise: \"#00ced1\",\n\tdarkviolet: \"#9400d3\",\n\tdeeppink: \"#ff1493\",\n\tdeepskyblue: \"#00bfff\",\n\tdimgray: \"#696969\",\n\tdimgrey: \"#696969\",\n\tdodgerblue: \"#1e90ff\",\n\tfirebrick: \"#b22222\",\n\tfloralwhite: \"#fffaf0\",\n\tforestgreen: \"#228b22\",\n\tfuchsia: \"#ff00ff\",\n\tgainsboro: \"#dcdcdc\",\n\tghostwhite: \"#f8f8ff\",\n\tgoldenrod: \"#daa520\",\n\tgold: \"#ffd700\",\n\tgray: \"#808080\",\n\tgreen: \"#008000\",\n\tgreenyellow: \"#adff2f\",\n\tgrey: \"#808080\",\n\thoneydew: \"#f0fff0\",\n\thotpink: \"#ff69b4\",\n\tindianred: \"#cd5c5c\",\n\tindigo: \"#4b0082\",\n\tivory: \"#fffff0\",\n\tkhaki: \"#f0e68c\",\n\tlavenderblush: \"#fff0f5\",\n\tlavender: \"#e6e6fa\",\n\tlawngreen: \"#7cfc00\",\n\tlemonchiffon: \"#fffacd\",\n\tlightblue: \"#add8e6\",\n\tlightcoral: \"#f08080\",\n\tlightcyan: \"#e0ffff\",\n\tlightgoldenrodyellow: \"#fafad2\",\n\tlightgray: \"#d3d3d3\",\n\tlightgreen: \"#90ee90\",\n\tlightgrey: \"#d3d3d3\",\n\tlightpink: \"#ffb6c1\",\n\tlightsalmon: \"#ffa07a\",\n\tlightseagreen: \"#20b2aa\",\n\tlightskyblue: \"#87cefa\",\n\tlightslategray: \"#778899\",\n\tlightslategrey: \"#778899\",\n\tlightsteelblue: \"#b0c4de\",\n\tlightyellow: \"#ffffe0\",\n\tlime: \"#00ff00\",\n\tlimegreen: \"#32cd32\",\n\tlinen: \"#faf0e6\",\n\tmagenta: \"#ff00ff\",\n\tmaroon: \"#800000\",\n\tmediumaquamarine: \"#66cdaa\",\n\tmediumblue: \"#0000cd\",\n\tmediumorchid: \"#ba55d3\",\n\tmediumpurple: \"#9370db\",\n\tmediumseagreen: \"#3cb371\",\n\tmediumslateblue: \"#7b68ee\",\n\tmediumspringgreen: \"#00fa9a\",\n\tmediumturquoise: \"#48d1cc\",\n\tmediumvioletred: \"#c71585\",\n\tmidnightblue: \"#191970\",\n\tmintcream: \"#f5fffa\",\n\tmistyrose: \"#ffe4e1\",\n\tmoccasin: \"#ffe4b5\",\n\tnavajowhite: \"#ffdead\",\n\tnavy: \"#000080\",\n\toldlace: \"#fdf5e6\",\n\tolive: \"#808000\",\n\tolivedrab: \"#6b8e23\",\n\torange: \"#ffa500\",\n\torangered: \"#ff4500\",\n\torchid: \"#da70d6\",\n\tpalegoldenrod: \"#eee8aa\",\n\tpalegreen: \"#98fb98\",\n\tpaleturquoise: \"#afeeee\",\n\tpalevioletred: \"#db7093\",\n\tpapayawhip: \"#ffefd5\",\n\tpeachpuff: \"#ffdab9\",\n\tperu: \"#cd853f\",\n\tpink: \"#ffc0cb\",\n\tplum: \"#dda0dd\",\n\tpowderblue: \"#b0e0e6\",\n\tpurple: \"#800080\",\n\trebeccapurple: \"#663399\",\n\tred: \"#ff0000\",\n\trosybrown: \"#bc8f8f\",\n\troyalblue: \"#4169e1\",\n\tsaddlebrown: \"#8b4513\",\n\tsalmon: \"#fa8072\",\n\tsandybrown: \"#f4a460\",\n\tseagreen: \"#2e8b57\",\n\tseashell: \"#fff5ee\",\n\tsienna: \"#a0522d\",\n\tsilver: \"#c0c0c0\",\n\tskyblue: \"#87ceeb\",\n\tslateblue: \"#6a5acd\",\n\tslategray: \"#708090\",\n\tslategrey: \"#708090\",\n\tsnow: \"#fffafa\",\n\tspringgreen: \"#00ff7f\",\n\tsteelblue: \"#4682b4\",\n\ttan: \"#d2b48c\",\n\tteal: \"#008080\",\n\tthistle: \"#d8bfd8\",\n\ttomato: \"#ff6347\",\n\tturquoise: \"#40e0d0\",\n\tviolet: \"#ee82ee\",\n\twheat: \"#f5deb3\",\n\twhite: \"#ffffff\",\n\twhitesmoke: \"#f5f5f5\",\n\tyellow: \"#ffff00\",\n\tyellowgreen: \"#9acd32\",\n}\nexport type Name = keyof typeof Names\nexport namespace Name {\n\texport const types = () => Object.keys(Names)\n\texport function is(value: any | Name): value is Name {\n\t\treturn typeof value == \"string\" && types().includes(value.toLowerCase())\n\t}\n}\n"]}
@@ -17,3 +17,4 @@ export var Rgb;
17
17
  }
18
18
  Rgb.is = is;
19
19
  })(Rgb || (Rgb = {}));
20
+ //# sourceMappingURL=Rgb.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Rgb.js","sourceRoot":"","sources":["../../../../src/utilities/Cosmetic/Color/Rgb.ts"],"names":[],"mappings":"AAIA,MAAM,KAAW,GAAG,CAkBnB;AAlBD,WAAiB,GAAG;EACnB,SAAgB,EAAE,CAAC,KAAgB;IAClC,MAAM,MAAM,GAAG,OAAO,KAAK,IAAI,QAAQ,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAA;IAClH,OAAO,CACN,OAAO,KAAK,IAAI,QAAQ;MACxB,KAAK,CAAC,MAAM,GAAG,CAAC;MAChB,KAAK,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,MAAM;MAC5B,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,CAAC,IAAI,GAAG;MACxC,MAAM,CAAC,MAAM,IAAI,CAAC;MAClB,MAAM,CAAC,KAAK,CACX,CAAC,KAAa,EAAE,EAAE;;QACjB,OAAA,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC;UACpB,CAAA,MAAA,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAC,0CAAE,MAAM,KAAI,KAAK,CAAC,MAAM;UAC7C,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC;UAClB,MAAM,CAAC,KAAK,CAAC,IAAI,GAAG,CAAA;OAAA,CACrB,CACD,CAAA;EACF,CAAC;EAhBe,MAAE,KAgBjB,CAAA;AACF,CAAC,EAlBgB,GAAG,KAAH,GAAG,QAkBnB","sourcesContent":["/**\n * Formated as \"rgb(r,g,b)\", with no spaces included\n */\nexport type Rgb = string\nexport namespace Rgb {\n\texport function is(value: any | Rgb): value is Rgb {\n\t\tconst values = typeof value == \"string\" && value.length > 9 ? value.substring(4, value.length - 1).split(\",\") : []\n\t\treturn (\n\t\t\ttypeof value == \"string\" &&\n\t\t\tvalue.length > 9 &&\n\t\t\tvalue.substr(0, 4) == \"rgb(\" &&\n\t\t\tvalue.substr(value.length - 1, 1) == \")\" &&\n\t\t\tvalues.length == 3 &&\n\t\t\tvalues.every(\n\t\t\t\t(value: string) =>\n\t\t\t\t\t!Number.isNaN(value) &&\n\t\t\t\t\tvalue.match(/[0-9]/g)?.length == value.length &&\n\t\t\t\t\tNumber(value) >= 0 &&\n\t\t\t\t\tNumber(value) <= 255\n\t\t\t)\n\t\t)\n\t}\n}\n"]}
@@ -21,3 +21,4 @@ export var Color;
21
21
  Color.Hex = ColorHex;
22
22
  Color.Hsl = ColorHsl;
23
23
  })(Color || (Color = {}));
24
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/utilities/Cosmetic/Color/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,aAAa,EAAE,MAAM,YAAY,CAAA;AACtD,OAAO,EAAE,GAAG,IAAI,QAAQ,EAAE,MAAM,OAAO,CAAA;AACvC,OAAO,EAAE,GAAG,IAAI,QAAQ,EAAE,MAAM,OAAO,CAAA;AACvC,OAAO,EAAE,IAAI,IAAI,SAAS,EAAE,KAAK,IAAI,UAAU,EAAE,MAAM,QAAQ,CAAA;AAC/D,OAAO,EAAE,GAAG,IAAI,QAAQ,EAAE,MAAM,OAAO,CAAA;AAGvC,MAAM,KAAW,KAAK,CAqBrB;AArBD,WAAiB,KAAK;EACrB,SAAgB,EAAE,CAAC,KAAkB;IACpC,OAAO,CACN,OAAO,KAAK,IAAI,QAAQ;MACxB,CAAC,aAAa,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,SAAS,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAClH,CAAA;EACF,CAAC;EALe,QAAE,KAKjB,CAAA;EACD,SAAgB,IAAI,CAAC,KAAkB;IACtC,OAAO,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAA;EACrC,CAAC;EAFe,UAAI,OAEnB,CAAA;EACY,WAAK,GAAG,UAAU,CAAA;EAElB,UAAI,GAAG,SAAS,CAAA;EAEhB,cAAQ,GAAG,aAAa,CAAA;EAExB,SAAG,GAAG,QAAQ,CAAA;EAEd,SAAG,GAAG,QAAQ,CAAA;EAEd,SAAG,GAAG,QAAQ,CAAA;AAC5B,CAAC,EArBgB,KAAK,KAAL,KAAK,QAqBrB","sourcesContent":["import { CommaRgb as ColorCommaRgb } from \"./CommaRgb\"\nimport { Hex as ColorHex } from \"./Hex\"\nimport { Hsl as ColorHsl } from \"./Hsl\"\nimport { Name as ColorName, Names as ColorNames } from \"./Name\"\nimport { Rgb as ColorRgb } from \"./Rgb\"\n\nexport type Color = ColorCommaRgb | ColorHex | ColorHsl | ColorName | ColorRgb\nexport namespace Color {\n\texport function is(value: any | Color): value is Color {\n\t\treturn (\n\t\t\ttypeof value == \"string\" &&\n\t\t\t(ColorCommaRgb.is(value) || ColorHex.is(value) || ColorHsl.is(value) || ColorName.is(value) || ColorRgb.is(value))\n\t\t)\n\t}\n\texport function from(value: any | Color): Color | undefined {\n\t\treturn is(value) ? value : undefined\n\t}\n\texport const Names = ColorNames\n\texport type Name = ColorName\n\texport const Name = ColorName\n\texport type CommaRgb = ColorCommaRgb\n\texport const CommaRgb = ColorCommaRgb\n\texport type Rgb = ColorRgb\n\texport const Rgb = ColorRgb\n\texport type Hex = ColorHex\n\texport const Hex = ColorHex\n\texport type Hsl = ColorHsl\n\texport const Hsl = ColorHsl\n}\n"]}
@@ -38,3 +38,4 @@ export var Cosmetic;
38
38
  Cosmetic.from = from;
39
39
  Cosmetic.Color = CosmeticColor;
40
40
  })(Cosmetic || (Cosmetic = {}));
41
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utilities/Cosmetic/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,aAAa,EAAE,MAAM,SAAS,CAAA;AAgBhD,SAAS,MAAM,CAAC,KAAe,EAAE,KAA6B;EAC7D,OAAO,KAAK,CAAC,MAAM,CAClB,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CACR,OAAO,KAAK,IAAI,QAAQ,IAAI,KAAK,IAAI,IAAI,IAAI,OAAO,KAAK,CAAC,CAAC,CAAC,I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C9E,CAAA;MACD,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,GAA4E,EAAE,EAAE;;QAC5G,IACC,MAAM,CAAC,GAAG,CAAC,IAAI,SAAS;UACxB,CAAC,OAAO,MAAM,CAAC,GAAG,CAAC,IAAI,QAAQ,IAAI,MAAM,CAAC,GAAG,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,MAAA,MAAM,CAAC,GAAG,CAAC,mCAAI,EAAE,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,EAC5F;UACD,OAAO,MAAM,CAAC,GAAG,CAAC,CAAA;SAClB;MACF,CAAC,CAAC,CAAA;KACF;IACD,OAAO,MAAM,CAAA;EACd,CAAC;EA/Be,aAAI,OA+BnB,CAAA;EAEY,cAAK,GAAG,aAAa,CAAA;AACnC,CAAC,EApCgB,QAAQ,KAAR,QAAQ,QAoCxB","sourcesContent":["import { Color as CosmeticColor } from \"./Color\"\n\nexport type Cosmetic = {\n\ttext?: { background?: string; color?: string }\n\tborder?: {\n\t\tcolor?: string\n\t\tstyle?: string\n\t\tradius?: string\n\t\twidth?: string\n\t}\n\tgap?: string\n\tdangerColor?: string\n\tfontFamily?: string\n\tbackground?: string\n}\n\nfunction reduce(types: string[], value: Record<string, string>) {\n\treturn types.reduce(\n\t\t(r, c) =>\n\t\t\ttypeof value == \"object\" && value != null && typeof value[c] == \"string\"\n\t\t\t\t? {\n\t\t\t\t\t\t...r,\n\t\t\t\t\t\t[c]: value[c],\n\t\t\t\t }\n\t\t\t\t: r,\n\t\t{}\n\t)\n}\nexport namespace Cosmetic {\n\texport const types = Cosmetic\n\texport function from(value: any | Cosmetic): Cosmetic {\n\t\tlet result: Cosmetic = {}\n\t\tif (typeof value == \"object\" && value) {\n\t\t\tresult = {\n\t\t\t\ttext: reduce([\"background\", \"color\"], value.text),\n\t\t\t\tborder: reduce([\"background\", \"color\", \"style\", \"radius\", \"width\"], value.border),\n\t\t\t\tgap: typeof value.gap == \"string\" ? value.gap : undefined,\n\t\t\t\tdangerColor:\n\t\t\t\t\ttypeof value.dangerColor == \"string\"\n\t\t\t\t\t\t? value.dangerColor\n\t\t\t\t\t\t: typeof value.danger_color == \"string\"\n\t\t\t\t\t\t? value.danger_color\n\t\t\t\t\t\t: undefined,\n\t\t\t\tfontFamily:\n\t\t\t\t\ttypeof value.fontFamily == \"string\"\n\t\t\t\t\t\t? value.fontFamily\n\t\t\t\t\t\t: typeof value.font_family == \"string\"\n\t\t\t\t\t\t? value.font_family\n\t\t\t\t\t\t: undefined,\n\t\t\t\tbackground: typeof value.background == \"string\" ? value.background : undefined,\n\t\t\t}\n\t\t\tObject.keys(result).forEach((key: \"text\" | \"border\" | \"gap\" | \"dangerColor\" | \"fontFamily\" | \"background\") => {\n\t\t\t\tif (\n\t\t\t\t\tresult[key] == undefined ||\n\t\t\t\t\t(typeof result[key] == \"object\" && result[key] && Object.keys(result[key] ?? {}).length == 0)\n\t\t\t\t) {\n\t\t\t\t\tdelete result[key]\n\t\t\t\t}\n\t\t\t})\n\t\t}\n\t\treturn result\n\t}\n\texport type Color = CosmeticColor\n\texport const Color = CosmeticColor\n}\n"]}
@@ -1 +1,2 @@
1
1
  export { Cosmetic } from "./Cosmetic";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utilities/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA","sourcesContent":["export { Cosmetic } from \"./Cosmetic\"\n"]}
@@ -14,6 +14,24 @@ export const SmoothlyAccordionItem: {
14
14
  new (): SmoothlyAccordionItem;
15
15
  };
16
16
 
17
+ interface SmoothlyAddress extends Components.SmoothlyAddress, HTMLElement {}
18
+ export const SmoothlyAddress: {
19
+ prototype: SmoothlyAddress;
20
+ new (): SmoothlyAddress;
21
+ };
22
+
23
+ interface SmoothlyAddressDisplay extends Components.SmoothlyAddressDisplay, HTMLElement {}
24
+ export const SmoothlyAddressDisplay: {
25
+ prototype: SmoothlyAddressDisplay;
26
+ new (): SmoothlyAddressDisplay;
27
+ };
28
+
29
+ interface SmoothlyAddresses extends Components.SmoothlyAddresses, HTMLElement {}
30
+ export const SmoothlyAddresses: {
31
+ prototype: SmoothlyAddresses;
32
+ new (): SmoothlyAddresses;
33
+ };
34
+
17
35
  interface SmoothlyApp extends Components.SmoothlyApp, HTMLElement {}
18
36
  export const SmoothlyApp: {
19
37
  prototype: SmoothlyApp;
@@ -50,6 +68,12 @@ export const SmoothlyCheckbox: {
50
68
  new (): SmoothlyCheckbox;
51
69
  };
52
70
 
71
+ interface SmoothlyColor extends Components.SmoothlyColor, HTMLElement {}
72
+ export const SmoothlyColor: {
73
+ prototype: SmoothlyColor;
74
+ new (): SmoothlyColor;
75
+ };
76
+
53
77
  interface SmoothlyCountry extends Components.SmoothlyCountry, HTMLElement {}
54
78
  export const SmoothlyCountry: {
55
79
  prototype: SmoothlyCountry;
@@ -92,6 +116,24 @@ export const SmoothlyDisplayDemo: {
92
116
  new (): SmoothlyDisplayDemo;
93
117
  };
94
118
 
119
+ interface SmoothlyFilter extends Components.SmoothlyFilter, HTMLElement {}
120
+ export const SmoothlyFilter: {
121
+ prototype: SmoothlyFilter;
122
+ new (): SmoothlyFilter;
123
+ };
124
+
125
+ interface SmoothlyFilterInput extends Components.SmoothlyFilterInput, HTMLElement {}
126
+ export const SmoothlyFilterInput: {
127
+ prototype: SmoothlyFilterInput;
128
+ new (): SmoothlyFilterInput;
129
+ };
130
+
131
+ interface SmoothlyForm extends Components.SmoothlyForm, HTMLElement {}
132
+ export const SmoothlyForm: {
133
+ prototype: SmoothlyForm;
134
+ new (): SmoothlyForm;
135
+ };
136
+
95
137
  interface SmoothlyFrame extends Components.SmoothlyFrame, HTMLElement {}
96
138
  export const SmoothlyFrame: {
97
139
  prototype: SmoothlyFrame;
@@ -266,6 +308,12 @@ export const SmoothlySubmit: {
266
308
  new (): SmoothlySubmit;
267
309
  };
268
310
 
311
+ interface SmoothlySummary extends Components.SmoothlySummary, HTMLElement {}
312
+ export const SmoothlySummary: {
313
+ prototype: SmoothlySummary;
314
+ new (): SmoothlySummary;
315
+ };
316
+
269
317
  interface SmoothlySvg extends Components.SmoothlySvg, HTMLElement {}
270
318
  export const SmoothlySvg: {
271
319
  prototype: SmoothlySvg;
@@ -302,6 +350,12 @@ export const SmoothlyTableDemo: {
302
350
  new (): SmoothlyTableDemo;
303
351
  };
304
352
 
353
+ interface SmoothlyTableDemoFiltered extends Components.SmoothlyTableDemoFiltered, HTMLElement {}
354
+ export const SmoothlyTableDemoFiltered: {
355
+ prototype: SmoothlyTableDemoFiltered;
356
+ new (): SmoothlyTableDemoFiltered;
357
+ };
358
+
305
359
  interface SmoothlyTableExpandableCell extends Components.SmoothlyTableExpandableCell, HTMLElement {}
306
360
  export const SmoothlyTableExpandableCell: {
307
361
  prototype: SmoothlyTableExpandableCell;
@@ -326,6 +380,18 @@ export const SmoothlyTableRow: {
326
380
  new (): SmoothlyTableRow;
327
381
  };
328
382
 
383
+ interface SmoothlyToggle extends Components.SmoothlyToggle, HTMLElement {}
384
+ export const SmoothlyToggle: {
385
+ prototype: SmoothlyToggle;
386
+ new (): SmoothlyToggle;
387
+ };
388
+
389
+ interface SmoothlyToggleSwitch extends Components.SmoothlyToggleSwitch, HTMLElement {}
390
+ export const SmoothlyToggleSwitch: {
391
+ prototype: SmoothlyToggleSwitch;
392
+ new (): SmoothlyToggleSwitch;
393
+ };
394
+
329
395
  interface SmoothlyTrigger extends Components.SmoothlyTrigger, HTMLElement {}
330
396
  export const SmoothlyTrigger: {
331
397
  prototype: SmoothlyTrigger;