smoothly 1.0.0-alpha.99 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (456) hide show
  1. package/dist/cjs/Data-50d47740.js +589 -0
  2. package/dist/cjs/Data-50d47740.js.map +1 -0
  3. package/dist/cjs/Observers-6450f075.js +25 -0
  4. package/dist/cjs/Observers-6450f075.js.map +1 -0
  5. package/dist/cjs/TimeZone-016ac7b0.js +6181 -0
  6. package/dist/cjs/TimeZone-016ac7b0.js.map +1 -0
  7. package/dist/cjs/{getLanguage-7e53766b.js → getLanguage-49a534df.js} +1 -5993
  8. package/dist/cjs/getLanguage-49a534df.js.map +1 -0
  9. package/dist/cjs/{index-6ae370b4.js → index-43af753b.js} +1 -4
  10. package/dist/cjs/index-43af753b.js.map +1 -0
  11. package/dist/cjs/index.cjs.js +3 -14
  12. package/dist/cjs/index.cjs.js.map +1 -1
  13. package/dist/cjs/loader.cjs.js +4 -3
  14. package/dist/cjs/loader.cjs.js.map +1 -1
  15. package/dist/cjs/smoothly-accordion-item.cjs.entry.js +61 -0
  16. package/dist/cjs/smoothly-accordion-item.cjs.entry.js.map +1 -0
  17. package/dist/cjs/smoothly-accordion.cjs.entry.js +58 -0
  18. package/dist/cjs/smoothly-accordion.cjs.entry.js.map +1 -0
  19. package/dist/cjs/smoothly-address-display.cjs.entry.js +1 -1
  20. package/dist/cjs/smoothly-address.cjs.entry.js +1 -1
  21. package/dist/cjs/smoothly-addresses.cjs.entry.js +1 -1
  22. package/dist/cjs/smoothly-app_80.cjs.entry.js +11148 -0
  23. package/dist/cjs/smoothly-app_80.cjs.entry.js.map +1 -0
  24. package/dist/cjs/smoothly-checkbox.cjs.entry.js +102 -0
  25. package/dist/cjs/smoothly-checkbox.cjs.entry.js.map +1 -0
  26. package/dist/cjs/smoothly-color.cjs.entry.js +1 -1
  27. package/dist/cjs/smoothly-country.cjs.entry.js +56 -55
  28. package/dist/cjs/smoothly-country.cjs.entry.js.map +1 -1
  29. package/dist/cjs/smoothly-display-date-time.cjs.entry.js +1 -1
  30. package/dist/cjs/smoothly-google-font.cjs.entry.js +1 -1
  31. package/dist/cjs/smoothly-reorder.cjs.entry.js +4 -4
  32. package/dist/cjs/smoothly-reorder.cjs.entry.js.map +1 -1
  33. package/dist/cjs/smoothly-trigger-sink.cjs.entry.js +2 -2
  34. package/dist/cjs/smoothly-trigger-source.cjs.entry.js +2 -2
  35. package/dist/cjs/smoothly.cjs.js +4 -3
  36. package/dist/cjs/smoothly.cjs.js.map +1 -1
  37. package/dist/collection/collection-manifest.json +24 -7
  38. package/dist/collection/components/Button.js +16 -2
  39. package/dist/collection/components/Button.js.map +1 -1
  40. package/dist/collection/components/app/index.js +53 -1
  41. package/dist/collection/components/app/index.js.map +1 -1
  42. package/dist/collection/components/app/room/index.js +45 -2
  43. package/dist/collection/components/app/room/index.js.map +1 -1
  44. package/dist/collection/components/app/room/style.css +23 -9
  45. package/dist/collection/components/app/style.css +57 -32
  46. package/dist/collection/components/app-demo/index.js +1 -2
  47. package/dist/collection/components/app-demo/index.js.map +1 -1
  48. package/dist/collection/components/burger/index.js +9 -9
  49. package/dist/collection/components/burger/index.js.map +1 -1
  50. package/dist/collection/components/button/index.js +9 -22
  51. package/dist/collection/components/button/index.js.map +1 -1
  52. package/dist/collection/components/button/style.css +23 -20
  53. package/dist/collection/components/button-demo/index.js +3 -1
  54. package/dist/collection/components/button-demo/index.js.map +1 -1
  55. package/dist/collection/components/button-demo/style.css +1 -0
  56. package/dist/collection/components/calendar/generate.js +1 -1
  57. package/dist/collection/components/calendar/generate.js.map +1 -1
  58. package/dist/collection/components/calendar/index.js +16 -16
  59. package/dist/collection/components/calendar/index.js.map +1 -1
  60. package/dist/collection/components/checkbox/index.js +60 -29
  61. package/dist/collection/components/checkbox/index.js.map +1 -1
  62. package/dist/collection/components/checkbox/style.css +39 -42
  63. package/dist/collection/components/confirm/index.js +261 -0
  64. package/dist/collection/components/confirm/index.js.map +1 -0
  65. package/dist/collection/components/confirm/style.css +15 -0
  66. package/dist/collection/components/display/index.js +4 -1
  67. package/dist/collection/components/display/index.js.map +1 -1
  68. package/dist/collection/components/display-demo/index.js +16 -1
  69. package/dist/collection/components/display-demo/index.js.map +1 -1
  70. package/dist/collection/components/filter/Filter.js +17 -0
  71. package/dist/collection/components/filter/Filter.js.map +1 -0
  72. package/dist/collection/components/filter/field/index.js +105 -0
  73. package/dist/collection/components/filter/field/index.js.map +1 -0
  74. package/dist/collection/components/filter/field/style.css +4 -0
  75. package/dist/collection/components/filter/index.js +55 -132
  76. package/dist/collection/components/filter/index.js.map +1 -1
  77. package/dist/collection/components/filter/input/index.js +84 -301
  78. package/dist/collection/components/filter/input/index.js.map +1 -1
  79. package/dist/collection/components/filter/picker/index.js +229 -0
  80. package/dist/collection/components/filter/picker/index.js.map +1 -0
  81. package/dist/collection/components/filter/picker/style.css +8 -0
  82. package/dist/collection/components/filter/style.css +56 -71
  83. package/dist/collection/components/filter/toggle/index.js +248 -0
  84. package/dist/collection/components/filter/toggle/index.js.map +1 -0
  85. package/dist/collection/components/filter/toggle/style.css +8 -0
  86. package/dist/collection/components/form/index.js +234 -66
  87. package/dist/collection/components/form/index.js.map +1 -1
  88. package/dist/collection/components/form/style.css +3 -1
  89. package/dist/collection/components/icon/index.js +60 -32
  90. package/dist/collection/components/icon/index.js.map +1 -1
  91. package/dist/collection/components/icon/style.css +15 -0
  92. package/dist/collection/components/icon-demo/index.js +3 -1
  93. package/dist/collection/components/icon-demo/index.js.map +1 -1
  94. package/dist/collection/components/icon-demo/style.css +5 -6
  95. package/dist/collection/components/input/Editable.js +19 -0
  96. package/dist/collection/components/input/Editable.js.map +1 -0
  97. package/dist/collection/components/input/Input.js +22 -1
  98. package/dist/collection/components/input/Input.js.map +1 -1
  99. package/dist/collection/components/input/Looks.js +7 -1
  100. package/dist/collection/components/input/Looks.js.map +1 -1
  101. package/dist/collection/components/input/Submittable.js.map +1 -1
  102. package/dist/collection/components/input/checkbox/index.js +382 -0
  103. package/dist/collection/components/input/checkbox/index.js.map +1 -0
  104. package/dist/collection/components/input/checkbox/style.css +75 -0
  105. package/dist/collection/components/input/clear/index.js +12 -7
  106. package/dist/collection/components/input/clear/index.js.map +1 -1
  107. package/dist/collection/components/input/clear/style.css +23 -20
  108. package/dist/collection/components/input/color/index.js +226 -0
  109. package/dist/collection/components/input/color/index.js.map +1 -0
  110. package/dist/collection/components/input/color/style.css +15 -0
  111. package/dist/collection/components/input/date/index.js +8 -8
  112. package/dist/collection/components/input/date/index.js.map +1 -1
  113. package/dist/collection/components/input/date/range/index.js +13 -17
  114. package/dist/collection/components/input/date/range/index.js.map +1 -1
  115. package/dist/collection/components/input/date/range/style.css +25 -0
  116. package/dist/collection/components/input/date/style.css +25 -0
  117. package/dist/collection/components/input/demo/index.js +28 -72
  118. package/dist/collection/components/input/demo/index.js.map +1 -1
  119. package/dist/collection/components/input/demo/style.css +15 -0
  120. package/dist/collection/components/input/edit/index.js +249 -0
  121. package/dist/collection/components/input/edit/index.js.map +1 -0
  122. package/dist/collection/components/input/edit/style.css +238 -0
  123. package/dist/collection/components/input/file/index.js +3 -3
  124. package/dist/collection/components/input/file/index.js.map +1 -1
  125. package/dist/collection/components/input/file/style.css +22 -0
  126. package/dist/collection/components/input/index.js +245 -110
  127. package/dist/collection/components/input/index.js.map +1 -1
  128. package/dist/collection/components/input/month/index.js +5 -5
  129. package/dist/collection/components/input/month/index.js.map +1 -1
  130. package/dist/collection/components/input/radio/Selected.js +11 -0
  131. package/dist/collection/components/input/radio/Selected.js.map +1 -0
  132. package/dist/collection/components/input/radio/index.js +426 -0
  133. package/dist/collection/components/input/radio/index.js.map +1 -0
  134. package/dist/collection/components/{radio-button → input/radio/item}/index.js +60 -72
  135. package/dist/collection/components/input/radio/item/index.js.map +1 -0
  136. package/dist/collection/components/input/radio/item/style.css +28 -0
  137. package/dist/collection/components/input/radio/style.css +66 -0
  138. package/dist/collection/components/input/range/index.js +440 -0
  139. package/dist/collection/components/input/range/index.js.map +1 -0
  140. package/dist/collection/components/input/range/style.css +154 -0
  141. package/dist/collection/components/input/reset/index.js +260 -0
  142. package/dist/collection/components/input/reset/index.js.map +1 -0
  143. package/dist/collection/components/input/reset/style.css +255 -0
  144. package/dist/collection/components/input/select/index.js +443 -95
  145. package/dist/collection/components/input/select/index.js.map +1 -1
  146. package/dist/collection/components/input/select/style.css +111 -23
  147. package/dist/collection/components/input/style.css +24 -2
  148. package/dist/collection/components/input/submit/index.js +269 -0
  149. package/dist/collection/components/input/submit/index.js.map +1 -0
  150. package/dist/collection/components/input/submit/style.css +11 -0
  151. package/dist/collection/components/item/Item.js +11 -0
  152. package/dist/collection/components/item/Item.js.map +1 -0
  153. package/dist/collection/components/item/index.js +69 -29
  154. package/dist/collection/components/item/index.js.map +1 -1
  155. package/dist/collection/components/item/style.css +1 -3
  156. package/dist/collection/components/label/index.js +81 -0
  157. package/dist/collection/components/label/index.js.map +1 -0
  158. package/dist/collection/components/label/style.css +15 -0
  159. package/dist/collection/components/lazy/index.js +73 -0
  160. package/dist/collection/components/lazy/index.js.map +1 -0
  161. package/dist/collection/components/{radio → load-more}/index.js +35 -46
  162. package/dist/collection/components/load-more/index.js.map +1 -0
  163. package/dist/collection/components/load-more/style.css +5 -0
  164. package/dist/collection/components/notification/index.js.map +1 -1
  165. package/dist/collection/components/picker/demo/index.js +17 -15
  166. package/dist/collection/components/picker/demo/index.js.map +1 -1
  167. package/dist/collection/components/picker/demo/style.css +24 -1
  168. package/dist/collection/components/picker/index.js +172 -7
  169. package/dist/collection/components/picker/index.js.map +1 -1
  170. package/dist/collection/components/picker/menu/index.js +74 -3
  171. package/dist/collection/components/picker/menu/index.js.map +1 -1
  172. package/dist/collection/components/picker/menu/style.css +16 -6
  173. package/dist/collection/components/picker/option/index.js +51 -3
  174. package/dist/collection/components/picker/option/index.js.map +1 -1
  175. package/dist/collection/components/picker/option/style.css +9 -4
  176. package/dist/collection/components/picker/style.css +28 -3
  177. package/dist/collection/components/popup/index.js +5 -5
  178. package/dist/collection/components/popup/index.js.map +1 -1
  179. package/dist/collection/components/popup/style.css +4 -4
  180. package/dist/collection/components/submit/index.js +0 -15
  181. package/dist/collection/components/submit/index.js.map +1 -1
  182. package/dist/collection/components/submit/style.css +23 -20
  183. package/dist/collection/components/summary/index.js +2 -3
  184. package/dist/collection/components/summary/index.js.map +1 -1
  185. package/dist/collection/components/summary/style.css +25 -16
  186. package/dist/collection/components/table/cell/style.css +3 -3
  187. package/dist/collection/components/table/demo/filtered/Root.js.map +1 -1
  188. package/dist/collection/components/table/demo/filtered/index.js +30 -15
  189. package/dist/collection/components/table/demo/filtered/index.js.map +1 -1
  190. package/dist/collection/components/table/demo/filtered/style.css +9 -0
  191. package/dist/collection/components/table/demo/index.js +2 -14
  192. package/dist/collection/components/table/demo/index.js.map +1 -1
  193. package/dist/collection/components/table/demo/style.css +5 -0
  194. package/dist/collection/components/table/demo/testing/data.js.map +1 -0
  195. package/dist/collection/components/table/demo/testing/index.js +28 -0
  196. package/dist/collection/components/table/demo/testing/index.js.map +1 -0
  197. package/dist/collection/components/table/demo/testing/style.css +32 -0
  198. package/dist/collection/components/table/expandable/cell/index.js +1 -20
  199. package/dist/collection/components/table/expandable/cell/index.js.map +1 -1
  200. package/dist/collection/components/table/expandable/cell/style.css +13 -13
  201. package/dist/collection/components/table/expandable/row/index.js +1 -20
  202. package/dist/collection/components/table/expandable/row/index.js.map +1 -1
  203. package/dist/collection/components/table/expandable/row/style.css +11 -11
  204. package/dist/collection/components/table/footer/index.js +19 -0
  205. package/dist/collection/components/table/footer/index.js.map +1 -0
  206. package/dist/collection/components/table/footer/style.css +10 -0
  207. package/dist/collection/components/table/header/style.css +2 -3
  208. package/dist/collection/components/table/index.js +24 -1
  209. package/dist/collection/components/table/index.js.map +1 -1
  210. package/dist/collection/components/theme/color/index.js +48 -0
  211. package/dist/collection/components/theme/color/index.js.map +1 -0
  212. package/dist/collection/components/theme/color/style.css +8 -0
  213. package/dist/collection/components/theme/color/variant/index.js +66 -0
  214. package/dist/collection/components/theme/color/variant/index.js.map +1 -0
  215. package/dist/collection/components/theme/color/variant/style.css +18 -0
  216. package/dist/collection/components/theme/colors/index.js +30 -0
  217. package/dist/collection/components/theme/colors/index.js.map +1 -0
  218. package/dist/collection/components/theme/colors/style.css +7 -0
  219. package/dist/collection/components/theme/picker/index.js +48 -0
  220. package/dist/collection/components/theme/picker/index.js.map +1 -0
  221. package/dist/collection/components/theme/picker/style.css +0 -0
  222. package/dist/collection/components/toggle-switch/index.js +69 -17
  223. package/dist/collection/components/toggle-switch/index.js.map +1 -1
  224. package/dist/collection/components/toggle-switch/style.css +19 -12
  225. package/dist/collection/global/Observers.js +22 -0
  226. package/dist/collection/global/Observers.js.map +1 -0
  227. package/dist/collection/global/index.js +5 -0
  228. package/dist/collection/global/index.js.map +1 -0
  229. package/dist/collection/model/Color.js +18 -1
  230. package/dist/collection/model/Color.js.map +1 -1
  231. package/dist/collection/model/Data.js +8 -1
  232. package/dist/collection/model/Data.js.map +1 -1
  233. package/dist/collection/model/Icon.js +23 -0
  234. package/dist/collection/model/Icon.js.map +1 -0
  235. package/dist/collection/model/Listenable.js +16 -3
  236. package/dist/collection/model/Listenable.js.map +1 -1
  237. package/dist/collection/model/Option.js.map +1 -1
  238. package/dist/collection/model/index.js +2 -1
  239. package/dist/collection/model/index.js.map +1 -1
  240. package/dist/collection/smoothly.js +1 -1
  241. package/dist/collection/smoothly.js.map +1 -1
  242. package/dist/custom-elements/index.d.ts +120 -24
  243. package/dist/custom-elements/index.js +15445 -33845
  244. package/dist/custom-elements/index.js.map +1 -1
  245. package/dist/esm/Data-c8093b5a.js +579 -0
  246. package/dist/esm/Data-c8093b5a.js.map +1 -0
  247. package/dist/esm/Observers-5f08e828.js +25 -0
  248. package/dist/esm/Observers-5f08e828.js.map +1 -0
  249. package/dist/esm/TimeZone-c8df4905.js +6181 -0
  250. package/dist/esm/TimeZone-c8df4905.js.map +1 -0
  251. package/dist/esm/{getLanguage-9c833eef.js → getLanguage-1e9ec036.js} +2 -5994
  252. package/dist/esm/getLanguage-1e9ec036.js.map +1 -0
  253. package/dist/esm/{index-c196715a.js → index-258984d3.js} +2 -4
  254. package/dist/esm/index-258984d3.js.map +1 -0
  255. package/dist/esm/index.js +3 -14
  256. package/dist/esm/index.js.map +1 -1
  257. package/dist/esm/loader.js +5 -4
  258. package/dist/esm/loader.js.map +1 -1
  259. package/dist/esm/smoothly-accordion-item.entry.js +57 -0
  260. package/dist/esm/smoothly-accordion-item.entry.js.map +1 -0
  261. package/dist/esm/smoothly-accordion.entry.js +54 -0
  262. package/dist/esm/smoothly-accordion.entry.js.map +1 -0
  263. package/dist/esm/smoothly-address-display.entry.js +1 -1
  264. package/dist/esm/smoothly-address.entry.js +1 -1
  265. package/dist/esm/smoothly-addresses.entry.js +1 -1
  266. package/dist/esm/smoothly-app_80.entry.js +11065 -0
  267. package/dist/esm/smoothly-app_80.entry.js.map +1 -0
  268. package/dist/esm/smoothly-checkbox.entry.js +98 -0
  269. package/dist/esm/smoothly-checkbox.entry.js.map +1 -0
  270. package/dist/esm/smoothly-color.entry.js +1 -1
  271. package/dist/esm/smoothly-country.entry.js +10 -9
  272. package/dist/esm/smoothly-country.entry.js.map +1 -1
  273. package/dist/esm/smoothly-display-date-time.entry.js +1 -1
  274. package/dist/esm/smoothly-google-font.entry.js +1 -1
  275. package/dist/esm/smoothly-reorder.entry.js +2 -2
  276. package/dist/esm/smoothly-reorder.entry.js.map +1 -1
  277. package/dist/esm/smoothly-trigger-sink.entry.js +2 -2
  278. package/dist/esm/smoothly-trigger-source.entry.js +2 -2
  279. package/dist/esm/smoothly.js +5 -4
  280. package/dist/esm/smoothly.js.map +1 -1
  281. package/dist/smoothly/index.esm.js +1 -1
  282. package/dist/smoothly/index.esm.js.map +1 -1
  283. package/dist/smoothly/{p-663ccbd0.entry.js → p-12182a73.entry.js} +2 -2
  284. package/dist/smoothly/p-21905b32.entry.js +2 -0
  285. package/dist/smoothly/p-21905b32.entry.js.map +1 -0
  286. package/dist/smoothly/p-2e986022.js +2 -0
  287. package/dist/smoothly/p-2e986022.js.map +1 -0
  288. package/dist/smoothly/p-303520d1.entry.js +2 -0
  289. package/dist/smoothly/p-303520d1.entry.js.map +1 -0
  290. package/dist/smoothly/p-312ef066.js +2 -0
  291. package/dist/smoothly/p-312ef066.js.map +1 -0
  292. package/dist/smoothly/{p-9992c8c4.entry.js → p-47151a53.entry.js} +2 -2
  293. package/dist/smoothly/{p-d0b8061e.js → p-5e387578.js} +3 -3
  294. package/dist/smoothly/p-5e387578.js.map +1 -0
  295. package/dist/smoothly/{p-b82ef190.entry.js → p-635c813e.entry.js} +2 -2
  296. package/dist/smoothly/{p-dbd1afa9.entry.js → p-6aebb818.entry.js} +2 -2
  297. package/dist/smoothly/p-6e9aca2e.entry.js +2 -0
  298. package/dist/smoothly/p-6e9aca2e.entry.js.map +1 -0
  299. package/dist/smoothly/{p-c4ffc15d.entry.js → p-7a69b43f.entry.js} +2 -2
  300. package/dist/smoothly/{p-4d743f07.entry.js → p-7bf147bf.entry.js} +2 -2
  301. package/dist/smoothly/p-823e02b0.entry.js +2 -0
  302. package/dist/smoothly/p-823e02b0.entry.js.map +1 -0
  303. package/dist/smoothly/p-b3eac6af.entry.js +2 -0
  304. package/dist/smoothly/{p-4ff439dd.entry.js.map → p-b3eac6af.entry.js.map} +1 -1
  305. package/dist/smoothly/{p-f96e41aa.entry.js → p-cb493516.entry.js} +2 -2
  306. package/dist/smoothly/p-ede93d69.js +2 -0
  307. package/dist/smoothly/p-ede93d69.js.map +1 -0
  308. package/dist/smoothly/{p-ce4e6f44.entry.js → p-eef1c80b.entry.js} +2 -2
  309. package/dist/smoothly/p-f125610c.entry.js +2 -0
  310. package/dist/smoothly/p-f125610c.entry.js.map +1 -0
  311. package/dist/smoothly/p-fa664317.js +2 -0
  312. package/dist/smoothly/p-fa664317.js.map +1 -0
  313. package/dist/smoothly/smoothly.esm.js +1 -1
  314. package/dist/smoothly/smoothly.esm.js.map +1 -1
  315. package/dist/types/components/Button.d.ts +1 -2
  316. package/dist/types/components/app/index.d.ts +3 -0
  317. package/dist/types/components/app/room/index.d.ts +4 -2
  318. package/dist/types/components/app-demo/index.d.ts +1 -0
  319. package/dist/types/components/burger/index.d.ts +2 -2
  320. package/dist/types/components/button/index.d.ts +2 -2
  321. package/dist/types/components/calendar/index.d.ts +5 -5
  322. package/dist/types/components/checkbox/index.d.ts +4 -2
  323. package/dist/types/components/confirm/index.d.ts +19 -0
  324. package/dist/types/components/filter/Filter.d.ts +21 -0
  325. package/dist/types/components/filter/field/index.d.ts +10 -0
  326. package/dist/types/components/filter/index.d.ts +13 -12
  327. package/dist/types/components/filter/input/index.d.ts +17 -23
  328. package/dist/types/components/filter/picker/index.d.ts +25 -0
  329. package/dist/types/components/filter/toggle/index.d.ts +22 -0
  330. package/dist/types/components/form/index.d.ts +22 -15
  331. package/dist/types/components/icon/index.d.ts +4 -6
  332. package/dist/types/components/input/Editable.d.ts +21 -0
  333. package/dist/types/components/input/Input.d.ts +19 -7
  334. package/dist/types/components/input/Looks.d.ts +7 -1
  335. package/dist/types/components/input/Submittable.d.ts +1 -1
  336. package/dist/types/components/input/checkbox/index.d.ts +30 -0
  337. package/dist/types/components/input/color/index.d.ts +24 -0
  338. package/dist/types/components/input/date/index.d.ts +1 -1
  339. package/dist/types/components/input/date/range/index.d.ts +2 -2
  340. package/dist/types/components/input/demo/index.d.ts +3 -6
  341. package/dist/types/components/input/edit/index.d.ts +18 -0
  342. package/dist/types/components/input/index.d.ts +30 -21
  343. package/dist/types/components/input/month/index.d.ts +1 -1
  344. package/dist/types/components/input/radio/Selected.d.ts +10 -0
  345. package/dist/types/components/input/radio/index.d.ts +36 -0
  346. package/dist/types/components/input/radio/item/index.d.ts +15 -0
  347. package/dist/types/components/input/range/index.d.ts +33 -0
  348. package/dist/types/components/input/reset/index.d.ts +19 -0
  349. package/dist/types/components/input/select/index.d.ts +41 -18
  350. package/dist/types/components/input/submit/index.d.ts +19 -0
  351. package/dist/types/components/item/Item.d.ts +10 -0
  352. package/dist/types/components/item/index.d.ts +8 -5
  353. package/dist/types/components/label/index.d.ts +6 -0
  354. package/dist/types/components/lazy/index.d.ts +7 -0
  355. package/dist/types/components/load-more/index.d.ts +11 -0
  356. package/dist/types/components/picker/demo/index.d.ts +7 -2
  357. package/dist/types/components/picker/index.d.ts +20 -6
  358. package/dist/types/components/picker/menu/index.d.ts +8 -0
  359. package/dist/types/components/picker/option/index.d.ts +2 -0
  360. package/dist/types/components/popup/index.d.ts +1 -1
  361. package/dist/types/components/submit/index.d.ts +0 -1
  362. package/dist/types/components/table/demo/filtered/Root.d.ts +2 -0
  363. package/dist/types/components/table/demo/filtered/index.d.ts +6 -6
  364. package/dist/types/components/table/demo/index.d.ts +1 -1
  365. package/dist/types/components/table/expandable/cell/index.d.ts +0 -1
  366. package/dist/types/components/table/expandable/row/index.d.ts +0 -1
  367. package/dist/types/components/table/footer/index.d.ts +3 -0
  368. package/dist/types/components/table/index.d.ts +2 -0
  369. package/dist/types/components/theme/color/index.d.ts +5 -0
  370. package/dist/types/components/theme/color/variant/index.d.ts +6 -0
  371. package/dist/types/components/theme/colors/index.d.ts +3 -0
  372. package/dist/types/components/theme/picker/index.d.ts +4 -0
  373. package/dist/types/components/toggle-switch/index.d.ts +7 -2
  374. package/dist/types/components.d.ts +658 -182
  375. package/dist/types/global/Observers.d.ts +8 -0
  376. package/dist/types/global/index.d.ts +4 -0
  377. package/dist/types/model/Color.d.ts +7 -1
  378. package/dist/types/model/Data.d.ts +4 -0
  379. package/dist/types/model/Icon.d.ts +8 -0
  380. package/dist/types/model/Listenable.d.ts +10 -1
  381. package/dist/types/model/Option.d.ts +2 -0
  382. package/dist/types/model/index.d.ts +1 -1
  383. package/dist/types/smoothly.d.ts +1 -1
  384. package/package.json +7 -11
  385. package/dist/cjs/Data-afbe461d.js +0 -807
  386. package/dist/cjs/Data-afbe461d.js.map +0 -1
  387. package/dist/cjs/getLanguage-7e53766b.js.map +0 -1
  388. package/dist/cjs/index-6ae370b4.js.map +0 -1
  389. package/dist/cjs/smoothly-accordion_66.cjs.entry.js +0 -29732
  390. package/dist/cjs/smoothly-accordion_66.cjs.entry.js.map +0 -1
  391. package/dist/cjs/smoothly-radio-group.cjs.entry.js +0 -22
  392. package/dist/cjs/smoothly-radio-group.cjs.entry.js.map +0 -1
  393. package/dist/collection/components/filter/Clearable.js +0 -8
  394. package/dist/collection/components/filter/Clearable.js.map +0 -1
  395. package/dist/collection/components/icon/Icon.js +0 -2
  396. package/dist/collection/components/icon/Icon.js.map +0 -1
  397. package/dist/collection/components/input/Changeable.js +0 -8
  398. package/dist/collection/components/input/Changeable.js.map +0 -1
  399. package/dist/collection/components/radio/index.js.map +0 -1
  400. package/dist/collection/components/radio/style.css +0 -31
  401. package/dist/collection/components/radio-button/Selected.js +0 -2
  402. package/dist/collection/components/radio-button/Selected.js.map +0 -1
  403. package/dist/collection/components/radio-button/index.js.map +0 -1
  404. package/dist/collection/components/radio-button/item/index.js +0 -117
  405. package/dist/collection/components/radio-button/item/index.js.map +0 -1
  406. package/dist/collection/components/radio-button/item/style.css +0 -85
  407. package/dist/collection/components/radio-group/index.js +0 -43
  408. package/dist/collection/components/radio-group/index.js.map +0 -1
  409. package/dist/collection/components/radio-group/style.css +0 -36
  410. package/dist/collection/components/table/testing/data.js.map +0 -1
  411. package/dist/collection/components/table/testing/index.js +0 -28
  412. package/dist/collection/components/table/testing/index.js.map +0 -1
  413. package/dist/collection/components/table/testing/style.css +0 -8
  414. package/dist/collection/model/ClientIdentifier.js +0 -13
  415. package/dist/collection/model/ClientIdentifier.js.map +0 -1
  416. package/dist/esm/Data-77d2bdbe.js +0 -803
  417. package/dist/esm/Data-77d2bdbe.js.map +0 -1
  418. package/dist/esm/getLanguage-9c833eef.js.map +0 -1
  419. package/dist/esm/index-c196715a.js.map +0 -1
  420. package/dist/esm/smoothly-accordion_66.entry.js +0 -29663
  421. package/dist/esm/smoothly-accordion_66.entry.js.map +0 -1
  422. package/dist/esm/smoothly-radio-group.entry.js +0 -18
  423. package/dist/esm/smoothly-radio-group.entry.js.map +0 -1
  424. package/dist/smoothly/p-1b714a63.js +0 -2
  425. package/dist/smoothly/p-1b714a63.js.map +0 -1
  426. package/dist/smoothly/p-1efa3261.entry.js +0 -2
  427. package/dist/smoothly/p-1efa3261.entry.js.map +0 -1
  428. package/dist/smoothly/p-4ff439dd.entry.js +0 -2
  429. package/dist/smoothly/p-74a3586c.js +0 -2
  430. package/dist/smoothly/p-74a3586c.js.map +0 -1
  431. package/dist/smoothly/p-8a45ae84.entry.js +0 -2
  432. package/dist/smoothly/p-8a45ae84.entry.js.map +0 -1
  433. package/dist/smoothly/p-90b340b4.entry.js +0 -2
  434. package/dist/smoothly/p-90b340b4.entry.js.map +0 -1
  435. package/dist/smoothly/p-d0b8061e.js.map +0 -1
  436. package/dist/types/components/filter/Clearable.d.ts +0 -6
  437. package/dist/types/components/icon/Icon.d.ts +0 -4
  438. package/dist/types/components/input/Changeable.d.ts +0 -7
  439. package/dist/types/components/radio/index.d.ts +0 -13
  440. package/dist/types/components/radio-button/Selected.d.ts +0 -5
  441. package/dist/types/components/radio-button/index.d.ts +0 -13
  442. package/dist/types/components/radio-button/item/index.d.ts +0 -12
  443. package/dist/types/components/radio-group/index.d.ts +0 -4
  444. package/dist/types/model/ClientIdentifier.d.ts +0 -5
  445. /package/dist/collection/components/{radio-button → lazy}/style.css +0 -0
  446. /package/dist/collection/components/table/{testing → demo/testing}/data.js +0 -0
  447. /package/dist/smoothly/{p-663ccbd0.entry.js.map → p-12182a73.entry.js.map} +0 -0
  448. /package/dist/smoothly/{p-9992c8c4.entry.js.map → p-47151a53.entry.js.map} +0 -0
  449. /package/dist/smoothly/{p-b82ef190.entry.js.map → p-635c813e.entry.js.map} +0 -0
  450. /package/dist/smoothly/{p-dbd1afa9.entry.js.map → p-6aebb818.entry.js.map} +0 -0
  451. /package/dist/smoothly/{p-c4ffc15d.entry.js.map → p-7a69b43f.entry.js.map} +0 -0
  452. /package/dist/smoothly/{p-4d743f07.entry.js.map → p-7bf147bf.entry.js.map} +0 -0
  453. /package/dist/smoothly/{p-f96e41aa.entry.js.map → p-cb493516.entry.js.map} +0 -0
  454. /package/dist/smoothly/{p-ce4e6f44.entry.js.map → p-eef1c80b.entry.js.map} +0 -0
  455. /package/dist/types/components/table/{testing → demo/testing}/data.d.ts +0 -0
  456. /package/dist/types/components/table/{testing → demo/testing}/index.d.ts +0 -0
@@ -1,807 +0,0 @@
1
- 'use strict';
2
-
3
- class TextEncoder {
4
- constructor() {
5
- this.encoding = "utf-8";
6
- }
7
- encode(data) {
8
- return Uint8Array.from(unescape(encodeURIComponent(data)).split(""), c => c.charCodeAt(0));
9
- }
10
- }
11
-
12
- const tables = {
13
- standard: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",
14
- url: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",
15
- };
16
- function encode(value, standard = "standard", padding = "") {
17
- if (typeof value == "string")
18
- value = new TextEncoder().encode(value);
19
- const table = tables[standard];
20
- const result = [];
21
- for (let c = 0; c < value.length; c += 3) {
22
- const c0 = value[c];
23
- const c1 = c + 1 < value.length ? value[c + 1] : 0;
24
- const c2 = c + 2 < value.length ? value[c + 2] : 0;
25
- result.push(table[c0 >>> 2]);
26
- result.push(table[((c0 & 3) << 4) | (c1 >>> 4)]);
27
- result.push(table[((c1 & 15) << 2) | (c2 >>> 6)]);
28
- result.push(table[c2 & 63]);
29
- }
30
- const length = Math.ceil((value.length / 3) * 4);
31
- return result.join("").substr(0, length) + padding.repeat(result.length - length);
32
- }
33
- function decode(value, standard = "standard") {
34
- while (value.endsWith("=") && value.length > 0)
35
- value = value.substr(0, value.length - 1);
36
- const table = tables[standard];
37
- const data = value.split("").map(c => table.indexOf(c));
38
- const result = new Uint8Array(Math.floor((data.length / 4) * 3));
39
- for (let c = 0; c < result.length; c += 3) {
40
- const d0 = data.shift() || 0;
41
- const d1 = data.shift() || 0;
42
- const d2 = data.shift() || 0;
43
- const d3 = data.shift() || 0;
44
- result[c] = (d0 << 2) | (d1 >>> 4);
45
- result[c + 1] = ((d1 & 15) << 4) | (d2 >>> 2);
46
- result[c + 2] = ((d2 & 3) << 6) | d3;
47
- }
48
- return result;
49
- }
50
- function next(value, increment = 1, standard = "standard") {
51
- const table = tables[standard];
52
- const rest = value.length > 1 ? value.substring(0, value.length - 1) : increment > 0 ? "" : table[63];
53
- const number = (value.length == 0 ? 0 : table.indexOf(value[value.length - 1])) + increment;
54
- return ((number > 63 || number < 0 ? next(rest, Math.floor(number / 63), standard) : rest) + table[remainder(number, 64)]);
55
- }
56
- function remainder(left, right) {
57
- return left >= 0 ? left % right : remainder(left + right, right);
58
- }
59
-
60
- const crypto = typeof window != "undefined"
61
- ? window.crypto || window.msCrypto
62
- : self.crypto || self.msCrypto;
63
-
64
- var Algorithms;
65
- (function (Algorithms) {
66
- function create(create, current, ...secrets) {
67
- const [first, ...remainder] = isStringArray(secrets)
68
- ? secrets.map(part => Object.fromEntries(part.split(",").map(secret => secret.split(":", 2).map(item => item.trim()))))
69
- : secrets;
70
- const result = Object.assign({}, ...Object.entries(first)
71
- .map(([name, secret]) => [
72
- name,
73
- [secret, ...remainder.map(part => part[name]).filter(part => part)],
74
- ])
75
- .map(([name, secrets]) => ({
76
- get [name]() {
77
- return Object.assign(create(secrets), { name });
78
- },
79
- })));
80
- return { current: result[current], ...result };
81
- }
82
- Algorithms.create = create;
83
- })(Algorithms || (Algorithms = {}));
84
- function isStringArray(value) {
85
- return Array.isArray(value) && value.length > 0 && typeof value[0] == "string";
86
- }
87
-
88
- var Encrypted;
89
- (function (Encrypted) {
90
- function is(value) {
91
- return (typeof value == "object" &&
92
- (value.key == undefined || typeof value.key == "string") &&
93
- typeof value.value == "string" &&
94
- typeof value.salt == "string");
95
- }
96
- Encrypted.is = is;
97
- function stringify(encrypted) {
98
- encrypted.key = encrypted.key && encrypted.key.length != 4 ? encrypted.key.slice(-2) : encrypted.key;
99
- return [encrypted.key, encrypted.salt, encrypted.value].join(".");
100
- }
101
- Encrypted.stringify = stringify;
102
- function parse(encryptedString) {
103
- const splitted = encryptedString.split(".");
104
- const encrypted = { key: splitted[0], salt: splitted[1], value: splitted[2] };
105
- return Encrypted.is(encrypted) ? encrypted : undefined;
106
- }
107
- Encrypted.parse = parse;
108
- })(Encrypted || (Encrypted = {}));
109
-
110
- exports.Identifier = void 0;
111
- (function (Identifier) {
112
- function is(value, length) {
113
- return (typeof value == "string" &&
114
- (length == undefined || value.length == length) &&
115
- Array.from(value).every(c => (c >= "0" && c <= "9") || (c >= "A" && c <= "Z") || (c >= "a" && c <= "z") || c == "-" || c == "_"));
116
- }
117
- Identifier.is = is;
118
- function fromUint24(value) {
119
- return fromHexadecimal(value.toString(16).padStart(6, "0"));
120
- }
121
- Identifier.fromUint24 = fromUint24;
122
- function toUint24(identifier) {
123
- return Number.parseInt(toHexadecimal(identifier, 6), 16);
124
- }
125
- Identifier.toUint24 = toUint24;
126
- function fromUint48(value) {
127
- return fromHexadecimal(value.toString(16).padStart(12, "0"));
128
- }
129
- Identifier.fromUint48 = fromUint48;
130
- function toUint48(identifier) {
131
- return Number.parseInt(toHexadecimal(identifier, 12), 16);
132
- }
133
- Identifier.toUint48 = toUint48;
134
- function fromBinary(identifier) {
135
- return encode(identifier, "url");
136
- }
137
- Identifier.fromBinary = fromBinary;
138
- function toBinary(identifier) {
139
- return decode(identifier, "url");
140
- }
141
- Identifier.toBinary = toBinary;
142
- function generate(length) {
143
- return fromBinary(crypto.getRandomValues(new Uint8Array((length / 4) * 3)));
144
- }
145
- Identifier.generate = generate;
146
- function fromHexadecimal(identifier) {
147
- if (identifier.length % 2 == 1)
148
- identifier += "0";
149
- const result = new Uint8Array(identifier.length / 2);
150
- for (let index = 0; index < result.length; index++)
151
- result[index] = Number.parseInt(identifier[index * 2], 16) * 16 + Number.parseInt(identifier[index * 2 + 1], 16);
152
- return fromBinary(result);
153
- }
154
- Identifier.fromHexadecimal = fromHexadecimal;
155
- function toHexadecimal(identifier, length) {
156
- const data = decode(identifier, "url");
157
- let result = [];
158
- for (const d of data)
159
- result.push(Math.floor(d / 16).toString(16), (d % 16).toString(16));
160
- if (length)
161
- result = result.slice(0, length);
162
- return result.join("");
163
- }
164
- Identifier.toHexadecimal = toHexadecimal;
165
- function min(length) {
166
- return "".padStart(length, "A");
167
- }
168
- Identifier.min = min;
169
- function max(length) {
170
- return "".padStart(length, "_");
171
- }
172
- Identifier.max = max;
173
- function next$1(identifier, increment = 1) {
174
- const result = next(identifier, increment, "url");
175
- return result.length == identifier.length ? result : result.substring(result.length - identifier.length);
176
- }
177
- Identifier.next = next$1;
178
- function previous(identifier, decrement = 1) {
179
- return next$1(identifier, -decrement);
180
- }
181
- Identifier.previous = previous;
182
- Identifier.length = [
183
- 4, 8, 12, 16, 20, 24, 28, 32, 36, 40, 44, 48, 52, 56, 60, 64, 68, 72, 76, 80, 84, 88, 92, 96, 100, 104, 108, 112,
184
- 116, 120, 124, 128,
185
- ];
186
- (function (Length) {
187
- function is(value) {
188
- return typeof value == "number" && value >= 4 && value <= 128 && (value & 252) == value;
189
- }
190
- Length.is = is;
191
- })(Identifier.Length || (Identifier.Length = {}));
192
- })(exports.Identifier || (exports.Identifier = {}));
193
-
194
- var Password;
195
- (function (Password) {
196
- function is(value) {
197
- return (typeof value == "string" ||
198
- (typeof value == "object" && typeof value.hash == "string" && typeof value.salt == "string"));
199
- }
200
- Password.is = is;
201
- async function hash(algorithm, password, salt) {
202
- if (!salt)
203
- salt = encode(crypto.getRandomValues(new Uint8Array(64)));
204
- return {
205
- hash: await algorithm.sign(salt + password),
206
- salt,
207
- };
208
- }
209
- Password.hash = hash;
210
- async function verify(algorithm, hash, password) {
211
- return (await Password.hash(algorithm, password, hash.salt)).hash == hash.hash;
212
- }
213
- Password.verify = verify;
214
- (function (Hashed) {
215
- function is(value) {
216
- return typeof value == "object" && typeof value.hash == "string" && typeof value.salt == "string";
217
- }
218
- Hashed.is = is;
219
- })(Password.Hashed || (Password.Hashed = {}));
220
- })(Password || (Password = {}));
221
-
222
- var RandomValue;
223
- (function (RandomValue) {
224
- function generate(array) {
225
- return crypto.getRandomValues(array);
226
- }
227
- RandomValue.generate = generate;
228
- })(RandomValue || (RandomValue = {}));
229
-
230
- var Algorithm$1;
231
- (function (Algorithm) {
232
- function is(value) {
233
- return value == "HMAC" || value == "RSA" || value == "ECDSA" || value == "RSA-PSS";
234
- }
235
- Algorithm.is = is;
236
- })(Algorithm$1 || (Algorithm$1 = {}));
237
-
238
- class Base {
239
- async sign(data) {
240
- return typeof data == "string"
241
- ? encode(await this.signBinary(new TextEncoder().encode(data)), "url")
242
- : this.signBinary(data);
243
- }
244
- verify(data, signature) {
245
- if (typeof signature == "string")
246
- signature = decode(signature, "url");
247
- return typeof data == "string"
248
- ? this.verifyBinary(new TextEncoder().encode(data), signature)
249
- : this.verifyBinary(data, signature);
250
- }
251
- }
252
-
253
- class ECDSA extends Base {
254
- constructor(hash, publicKey, privateKey) {
255
- super();
256
- this.hash = hash;
257
- if (publicKey) {
258
- if (typeof publicKey == "string")
259
- publicKey = decode(publicKey);
260
- this.publicKey = crypto.subtle.importKey("spki", publicKey, { name: "ECDSA", namedCurve: hash.replace("SHA", "P") == "P-512" ? "P-521" : hash.replace("SHA", "P") }, false, ["verify"]);
261
- }
262
- if (privateKey) {
263
- if (typeof privateKey == "string")
264
- privateKey = decode(privateKey);
265
- this.privateKey = crypto.subtle.importKey("pkcs8", privateKey, { name: "ECDSA", namedCurve: hash.replace("SHA", "P") == "P-512" ? "P-521" : hash.replace("SHA", "P") }, true, ["sign", "verify"]);
266
- }
267
- }
268
- async signBinary(data) {
269
- return new Uint8Array(await crypto.subtle.sign({ name: "ECDSA", hash: { name: this.hash } }, await this.privateKey, data));
270
- }
271
- async verifyBinary(data, signature) {
272
- return crypto.subtle.verify({ name: "ECDSA", hash: { name: this.hash } }, await this.publicKey, signature, data);
273
- }
274
- }
275
-
276
- var Hash;
277
- (function (Hash) {
278
- function is(value) {
279
- return value == "SHA-1" || value == "SHA-256" || value == "SHA-384" || value == "SHA-512";
280
- }
281
- Hash.is = is;
282
- })(Hash || (Hash = {}));
283
-
284
- class Symmetric$1 extends Base {
285
- async verifyBinary(data, signature) {
286
- return encode(await this.signBinary(data), "url") == encode(signature, "url");
287
- }
288
- }
289
-
290
- class HMAC extends Symmetric$1 {
291
- constructor(hash, key) {
292
- super();
293
- this.hash = hash;
294
- if (typeof key == "string")
295
- key = decode(key, "url");
296
- this.key = crypto.subtle.importKey("raw", key, { name: "HMAC", hash: { name: hash } }, false, ["sign", "verify"]);
297
- }
298
- async signBinary(data) {
299
- return new Uint8Array(await crypto.subtle.sign("HMAC", await this.key, data));
300
- }
301
- }
302
-
303
- class None extends Symmetric$1 {
304
- signBinary(_) {
305
- return Promise.resolve(new Uint8Array(0));
306
- }
307
- }
308
-
309
- class Rsa extends Base {
310
- constructor(variant, publicKey, privateKey) {
311
- super();
312
- this.variant = variant;
313
- this.publicKey = publicKey;
314
- this.privateKey = privateKey;
315
- }
316
- get parameters() {
317
- return getParameters(this.variant);
318
- }
319
- async signBinary(data) {
320
- return this.privateKey
321
- ? new Uint8Array(await crypto.subtle.sign(this.parameters, await this.privateKey, data))
322
- : new Uint8Array(0);
323
- }
324
- async verifyBinary(data, signature) {
325
- return !!this.publicKey && crypto.subtle.verify(this.parameters, await this.publicKey, signature, data);
326
- }
327
- async export(type, format = "base64") {
328
- const key = await (type == "private" ? this.privateKey : this.publicKey);
329
- let result;
330
- if (key)
331
- switch (format) {
332
- case "jwk":
333
- result = await crypto.subtle.exportKey("jwk", key);
334
- break;
335
- case "buffer":
336
- result = await crypto.subtle.exportKey(type == "private" ? "pkcs8" : "spki", key);
337
- break;
338
- case "base64":
339
- {
340
- const data = await this.export(type, "buffer");
341
- result = data && encode(new Uint8Array(data), "standard", "=");
342
- }
343
- break;
344
- case "pem":
345
- {
346
- const data = await this.export(type, "base64");
347
- result =
348
- data &&
349
- [
350
- `-----BEGIN ${type.toUpperCase()} KEY-----`,
351
- ...slice(data, 64),
352
- `-----END ${type.toUpperCase()} KEY-----`,
353
- ].join("\n");
354
- }
355
- break;
356
- }
357
- return result;
358
- }
359
- static import(variant, hash, publicKey, privateKey) {
360
- return new Rsa(variant, Rsa.importHelper(variant, hash, "public", publicKey), Rsa.importHelper(variant, hash, "private", privateKey));
361
- }
362
- static importHelper(variant, hash, type, key) {
363
- if (typeof key == "string")
364
- key = decode(key);
365
- return (key &&
366
- crypto.subtle.importKey(type == "private" ? "pkcs8" : "spki", key, { name: getParameters(variant).name, hash: { name: hash } }, true, [type == "private" ? "sign" : "verify"]));
367
- }
368
- static generate(variant, hash, length) {
369
- const keyPair = crypto.subtle.generateKey({
370
- name: getParameters(variant).name,
371
- modulusLength: length,
372
- publicExponent: new Uint8Array([1, 0, 1]),
373
- hash,
374
- }, true, ["sign", "verify"]);
375
- return new Rsa(variant, keyPair.then(value => value.publicKey), keyPair.then(value => value.privateKey));
376
- }
377
- }
378
- function* slice(data, length) {
379
- let start = 0;
380
- while (start < data.length)
381
- yield data.slice(start, (start = start + length));
382
- }
383
- function getParameters(variant) {
384
- return variant == "PSS" ? { name: "RSA-PSS", saltLength: 128 } : { name: "RSASSA-PKCS1-v1_5" };
385
- }
386
-
387
- var Signer;
388
- (function (Signer) {
389
- (function (Algorithm) {
390
- Algorithm.is = Algorithm$1.is;
391
- })(Signer.Algorithm || (Signer.Algorithm = {}));
392
- (function (Hash$1) {
393
- Hash$1.is = Hash.is;
394
- })(Signer.Hash || (Signer.Hash = {}));
395
- function generate(algorithm, hash, length) {
396
- let result;
397
- switch (algorithm) {
398
- case "RSA":
399
- result = Rsa.generate("SSA", hash, length);
400
- break;
401
- case "RSA-PSS":
402
- result = Rsa.generate("PSS", hash, length);
403
- break;
404
- }
405
- return result;
406
- }
407
- Signer.generate = generate;
408
- function create(algorithm, hash, ...keys) {
409
- let result;
410
- if (hash != undefined)
411
- switch (algorithm) {
412
- case "HMAC":
413
- result = new HMAC(hash, keys[0]);
414
- break;
415
- case "RSA":
416
- result = Rsa.import("SSA", hash, keys[0], keys[1]);
417
- break;
418
- case "RSA-PSS":
419
- result = Rsa.import("PSS", hash, keys[0], keys[1]);
420
- break;
421
- case "ECDSA":
422
- result = new ECDSA(hash, keys[0], keys[1]);
423
- break;
424
- }
425
- else if (algorithm == "None")
426
- result = new None();
427
- return result;
428
- }
429
- Signer.create = create;
430
- })(Signer || (Signer = {}));
431
-
432
- if (!Uint8Array.__proto__.from) {
433
- (() => {
434
- Uint8Array.__proto__.from = function (object, theFunction, thisObject) {
435
- const typedArrayClass = Uint8Array.__proto__;
436
- if (typeof this !== "function") {
437
- throw new TypeError("# is not a constructor");
438
- }
439
- if (this.__proto__ !== typedArrayClass) {
440
- throw new TypeError("this is not a typed array.");
441
- }
442
- theFunction = theFunction || (element => element);
443
- if (typeof theFunction !== "function") {
444
- throw new TypeError("specified argument is not a function");
445
- }
446
- object = Object(object);
447
- if (!object.length) {
448
- return new this(0);
449
- }
450
- let copyData = [];
451
- for (const data of copyData) {
452
- copyData.push(data);
453
- }
454
- copyData = copyData.map(theFunction, thisObject);
455
- const typedArray = new this(copyData.length);
456
- for (let i = 0; i < typedArray.length; i++) {
457
- typedArray[i] = copyData[i];
458
- }
459
- return typedArray;
460
- };
461
- })();
462
- }
463
-
464
- var Converter;
465
- (function (Converter) {
466
- function is(value) {
467
- return (typeof value == "object" &&
468
- Object.values(value).every(v => v &&
469
- typeof v == "object" &&
470
- "forward" in v &&
471
- typeof v.forward == "function" &&
472
- "backward" in v &&
473
- typeof v.backward == "function"));
474
- }
475
- Converter.is = is;
476
- })(Converter || (Converter = {}));
477
-
478
- var Crypto;
479
- (function (Crypto) {
480
- function is(value) {
481
- return Array.isArray(value) && value.every(v => typeof v == "string");
482
- }
483
- Crypto.is = is;
484
- })(Crypto || (Crypto = {}));
485
-
486
- var Renamer;
487
- (function (Renamer) {
488
- function is(value) {
489
- return typeof value == "object" && Object.entries(value).every(thing => typeof thing[1] == "string");
490
- }
491
- Renamer.is = is;
492
- })(Renamer || (Renamer = {}));
493
-
494
- var Creatable;
495
- (function (Creatable) {
496
- function is(value) {
497
- return Crypto.is(value) || Converter.is(value) || Renamer.is(value);
498
- }
499
- Creatable.is = is;
500
- (function (Converter$1) {
501
- Converter$1.is = Converter.is;
502
- })(Creatable.Converter || (Creatable.Converter = {}));
503
- (function (Crypto$1) {
504
- Crypto$1.is = Crypto.is;
505
- })(Creatable.Crypto || (Creatable.Crypto = {}));
506
- (function (Renamer$1) {
507
- Renamer$1.is = Renamer.is;
508
- })(Creatable.Renamer || (Creatable.Renamer = {}));
509
- })(Creatable || (Creatable = {}));
510
-
511
- var Transformer;
512
- (function (Transformer) {
513
- function is(value) {
514
- return typeof value == "object" && typeof value.apply == "function" && typeof value.reverse == "function";
515
- }
516
- Transformer.is = is;
517
- function create(transformer) {
518
- return {
519
- apply: transformer.apply ? transformer.apply : (v) => v,
520
- reverse: transformer.reverse ? transformer.reverse : (v) => v,
521
- };
522
- }
523
- Transformer.create = create;
524
- })(Transformer || (Transformer = {}));
525
-
526
- var Asymmetric;
527
- (function (Asymmetric) {
528
- function is(value) {
529
- return (value == "RS256" ||
530
- value == "RS384" ||
531
- value == "RS512" ||
532
- value == "ES256" ||
533
- value == "ES384" ||
534
- value == "ES512" ||
535
- value == "PS256" ||
536
- value == "PS384" ||
537
- value == "PS512");
538
- }
539
- Asymmetric.is = is;
540
- })(Asymmetric || (Asymmetric = {}));
541
-
542
- var Symmetric;
543
- (function (Symmetric) {
544
- function is(value) {
545
- return value == "HS256" || value == "HS384" || value == "HS512";
546
- }
547
- Symmetric.is = is;
548
- })(Symmetric || (Symmetric = {}));
549
-
550
- var Name;
551
- (function (Name) {
552
- function is(value) {
553
- return value == "none" || Symmetric.is(value) || Asymmetric.is(value);
554
- }
555
- Name.is = is;
556
- (function (Symmetric$1) {
557
- Symmetric$1.is = Symmetric.is;
558
- })(Name.Symmetric || (Name.Symmetric = {}));
559
- (function (Asymmetric$1) {
560
- Asymmetric$1.is = Asymmetric.is;
561
- })(Name.Asymmetric || (Name.Asymmetric = {}));
562
- })(Name || (Name = {}));
563
-
564
- var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
565
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
566
- return new (P || (P = Promise))(function (resolve, reject) {
567
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
568
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
569
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
570
- step((generator = generator.apply(thisArg, _arguments || [])).next());
571
- });
572
- };
573
- class Algorithm {
574
- constructor(name, signer) {
575
- this.name = name;
576
- this.signer = signer;
577
- }
578
- sign(data) {
579
- return __awaiter(this, void 0, void 0, function* () {
580
- return typeof data == "string" ? this.signer.sign(data) : this.signer.sign(data);
581
- });
582
- }
583
- verify(data, signature) {
584
- return this.signer.verify(data, signature);
585
- }
586
- static create(name, ...keys) {
587
- let result;
588
- switch (name) {
589
- case "ES256":
590
- result = Signer.create("ECDSA", "SHA-256", keys[0], keys[1]);
591
- break;
592
- case "ES384":
593
- result = Signer.create("ECDSA", "SHA-384", keys[0], keys[1]);
594
- break;
595
- case "ES512":
596
- result = Signer.create("ECDSA", "SHA-512", keys[0], keys[1]);
597
- break;
598
- case "PS256":
599
- result = Signer.create("RSA-PSS", "SHA-256", keys[0], keys[1]);
600
- break;
601
- case "PS384":
602
- result = Signer.create("RSA-PSS", "SHA-384", keys[0], keys[1]);
603
- break;
604
- case "PS512":
605
- result = Signer.create("RSA-PSS", "SHA-512", keys[0], keys[1]);
606
- break;
607
- case "HS256":
608
- result = Signer.create("HMAC", "SHA-256", keys[0]);
609
- break;
610
- case "HS384":
611
- result = Signer.create("HMAC", "SHA-384", keys[0]);
612
- break;
613
- case "HS512":
614
- result = Signer.create("HMAC", "SHA-512", keys[0]);
615
- break;
616
- case "RS256":
617
- result = Signer.create("RSA", "SHA-256", keys[0], keys[1]);
618
- break;
619
- case "RS384":
620
- result = Signer.create("RSA", "SHA-384", keys[0], keys[1]);
621
- break;
622
- case "RS512":
623
- result = Signer.create("RSA", "SHA-512", keys[0], keys[1]);
624
- break;
625
- case "none":
626
- result = Signer.create("None");
627
- break;
628
- }
629
- return result && new Algorithm(name, result);
630
- }
631
- static none() {
632
- return Algorithm.create("none");
633
- }
634
- static HS256(key) {
635
- return Algorithm.create("HS256", key);
636
- }
637
- static HS384(key) {
638
- return Algorithm.create("HS384", key);
639
- }
640
- static HS512(key) {
641
- return Algorithm.create("HS512", key);
642
- }
643
- static RS256(publicKey, privateKey) {
644
- return Algorithm.create("RS256", publicKey, privateKey);
645
- }
646
- static RS384(publicKey, privateKey) {
647
- return Algorithm.create("RS384", publicKey, privateKey);
648
- }
649
- static RS512(publicKey, privateKey) {
650
- return Algorithm.create("RS512", publicKey, privateKey);
651
- }
652
- static ES256(publicKey, privateKey) {
653
- return Algorithm.create("ES256", publicKey, privateKey);
654
- }
655
- static ES384(publicKey, privateKey) {
656
- return Algorithm.create("ES384", publicKey, privateKey);
657
- }
658
- static ES512(publicKey, privateKey) {
659
- return Algorithm.create("ES512", publicKey, privateKey);
660
- }
661
- static PS256(publicKey, privateKey) {
662
- return Algorithm.create("PS256", publicKey, privateKey);
663
- }
664
- static PS384(publicKey, privateKey) {
665
- return Algorithm.create("PS384", publicKey, privateKey);
666
- }
667
- static PS512(publicKey, privateKey) {
668
- return Algorithm.create("PS512", publicKey, privateKey);
669
- }
670
- }
671
- (function (Algorithm) {
672
- (function (Name$1) {
673
- Name$1.is = Name.is;
674
- (function (Symmetric) {
675
- Symmetric.is = Name.Symmetric.is;
676
- })(Name$1.Symmetric || (Name$1.Symmetric = {}));
677
- (function (Asymmetric) {
678
- Asymmetric.is = Name.Asymmetric.is;
679
- })(Name$1.Asymmetric || (Name$1.Asymmetric = {}));
680
- })(Algorithm.Name || (Algorithm.Name = {}));
681
- })(Algorithm || (Algorithm = {}));
682
-
683
- var Token;
684
- (function (Token) {
685
- function is(value) {
686
- return typeof value == "string" && /^[A-Za-z0-9-_=]+\.[A-Za-z0-9-_=]+\.?[A-Za-z0-9-_.+/=]*$/.test(value);
687
- }
688
- Token.is = is;
689
- })(Token || (Token = {}));
690
-
691
- class Message {
692
- static is(value) {
693
- return typeof value == "object" && typeof value.destination == "string" && value.content != undefined;
694
- }
695
- static send(message, content, context) {
696
- if (Message.is(message) && context == undefined) {
697
- context = content;
698
- if (!context)
699
- context = window;
700
- const destination = message.destination.split("#", 2);
701
- message = { destination: destination[1], content: message.content };
702
- context.postMessage(message, destination[0]);
703
- }
704
- else if (typeof context != "string") {
705
- if (!context)
706
- context = window;
707
- if (typeof message == "string")
708
- Message.send({ destination: message, content }, context);
709
- }
710
- }
711
- static listen(origin, handle, context) {
712
- const splitted = origin.split("#", 2);
713
- let destination = "";
714
- if (splitted.length == 2) {
715
- origin = splitted[0];
716
- destination = splitted[1];
717
- }
718
- (context || window).addEventListener("message", (e) => {
719
- const message = e.data;
720
- if (Message.is(message) &&
721
- (origin == "*" || e.origin == origin) &&
722
- (destination == "" || message.destination == destination))
723
- handle(message.destination, message.content);
724
- });
725
- }
726
- }
727
-
728
- class Trigger {
729
- static is(value) {
730
- return typeof value == "object" && typeof value.name == "string";
731
- }
732
- }
733
-
734
- var __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
735
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
736
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
737
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
738
- };
739
- var _Listenable_listeners;
740
- class Listenable {
741
- constructor() {
742
- _Listenable_listeners.set(this, {});
743
- }
744
- listen(property, listener) {
745
- var _a, _b;
746
- (_b = (_a = __classPrivateFieldGet(this, _Listenable_listeners, "f")[property]) === null || _a === void 0 ? void 0 : _a.push(listener)) !== null && _b !== void 0 ? _b : (__classPrivateFieldGet(this, _Listenable_listeners, "f")[property] = [listener]);
747
- listener(this[property]);
748
- }
749
- unlisten(property, listener) {
750
- var _a, _b;
751
- const index = (_a = __classPrivateFieldGet(this, _Listenable_listeners, "f")[property]) === null || _a === void 0 ? void 0 : _a.indexOf(listener);
752
- index != undefined && index >= 0 && ((_b = __classPrivateFieldGet(this, _Listenable_listeners, "f")[property]) === null || _b === void 0 ? void 0 : _b.splice(index, 1));
753
- }
754
- static load(backend) {
755
- const result = backend.listenable;
756
- return Object.defineProperties(result, getProperties(backend));
757
- function getProperties(backend) {
758
- return Object.fromEntries(Object.entries(Object.assign(Object.assign({}, Object.getOwnPropertyDescriptors(backend)), Object.getOwnPropertyDescriptors(Object.getPrototypeOf(backend)))).map(([name, descriptor]) => [
759
- name,
760
- typeof descriptor.value == "function"
761
- ? {
762
- get() {
763
- return backend[name].bind(backend);
764
- },
765
- }
766
- : descriptor.writable || descriptor.set
767
- ? {
768
- get() {
769
- return backend[name];
770
- },
771
- set(value) {
772
- var _a;
773
- backend[name] = value;
774
- (_a = __classPrivateFieldGet(result, _Listenable_listeners, "f")[name]) === null || _a === void 0 ? void 0 : _a.forEach(listener => listener(value));
775
- },
776
- }
777
- : {
778
- get() {
779
- return backend[name];
780
- },
781
- },
782
- ]));
783
- }
784
- }
785
- }
786
- _Listenable_listeners = new WeakMap();
787
-
788
- exports.Data = void 0;
789
- (function (Data) {
790
- function set(data, [head, ...tail], value) {
791
- const current = data[head !== null && head !== void 0 ? head : ""];
792
- return Object.assign(Object.assign({}, data), { [head !== null && head !== void 0 ? head : ""]: !tail.length
793
- ? value
794
- : set(typeof current == "object" && !(current instanceof Blob) ? current : {}, tail, value) });
795
- }
796
- Data.set = set;
797
- function deepen(data) {
798
- return Object.entries(data).reduce((result, [name, value]) => set(result, name.split("."), value), {});
799
- }
800
- Data.deepen = deepen;
801
- })(exports.Data || (exports.Data = {}));
802
-
803
- exports.Listenable = Listenable;
804
- exports.Message = Message;
805
- exports.Trigger = Trigger;
806
-
807
- //# sourceMappingURL=Data-afbe461d.js.map