smoothly 1.0.0-alpha.13 → 1.0.0-alpha.130

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 (413) hide show
  1. package/dist/cjs/{Listenable-63ea2d90.js → Data-e345d3cd.js} +74 -4
  2. package/dist/cjs/Data-e345d3cd.js.map +1 -0
  3. package/dist/cjs/Observers-6450f075.js +25 -0
  4. package/dist/cjs/Observers-6450f075.js.map +1 -0
  5. package/dist/cjs/{getLanguage-430ecf04.js → getLanguage-28ce96e4.js} +1111 -890
  6. package/dist/cjs/getLanguage-28ce96e4.js.map +1 -0
  7. package/dist/cjs/{index-8352a4e0.js → index-43af753b.js} +9 -43
  8. package/dist/cjs/index-43af753b.js.map +1 -0
  9. package/dist/cjs/index.cjs.js +386 -22
  10. package/dist/cjs/index.cjs.js.map +1 -1
  11. package/dist/cjs/loader.cjs.js +4 -3
  12. package/dist/cjs/loader.cjs.js.map +1 -1
  13. package/dist/cjs/redirect-2e5d4524.js +104 -0
  14. package/dist/cjs/redirect-2e5d4524.js.map +1 -0
  15. package/dist/cjs/smoothly-accordion_70.cjs.entry.js +17206 -0
  16. package/dist/cjs/smoothly-accordion_70.cjs.entry.js.map +1 -0
  17. package/dist/cjs/smoothly-address-display.cjs.entry.js +1 -1
  18. package/dist/cjs/smoothly-address.cjs.entry.js +1 -1
  19. package/dist/cjs/smoothly-addresses.cjs.entry.js +1 -1
  20. package/dist/cjs/smoothly-color.cjs.entry.js +1 -1
  21. package/dist/cjs/smoothly-country.cjs.entry.js +9 -9
  22. package/dist/cjs/smoothly-country.cjs.entry.js.map +1 -1
  23. package/dist/cjs/smoothly-display-date-time.cjs.entry.js +26 -0
  24. package/dist/cjs/smoothly-display-date-time.cjs.entry.js.map +1 -0
  25. package/dist/cjs/smoothly-google-font.cjs.entry.js +1 -1
  26. package/dist/cjs/smoothly-radio-group.cjs.entry.js +1 -1
  27. package/dist/cjs/smoothly-reorder.cjs.entry.js +1 -1
  28. package/dist/cjs/smoothly-trigger-sink.cjs.entry.js +4 -4
  29. package/dist/cjs/smoothly-trigger-sink.cjs.entry.js.map +1 -1
  30. package/dist/cjs/smoothly-trigger-source.cjs.entry.js +6 -6
  31. package/dist/cjs/smoothly-trigger-source.cjs.entry.js.map +1 -1
  32. package/dist/cjs/smoothly.cjs.js +4 -3
  33. package/dist/cjs/smoothly.cjs.js.map +1 -1
  34. package/dist/collection/collection-manifest.json +23 -12
  35. package/dist/collection/components/Button.js +16 -2
  36. package/dist/collection/components/Button.js.map +1 -1
  37. package/dist/collection/components/accordion/index.js +32 -12
  38. package/dist/collection/components/accordion/index.js.map +1 -1
  39. package/dist/collection/components/accordion-item/index.js +18 -25
  40. package/dist/collection/components/accordion-item/index.js.map +1 -1
  41. package/dist/collection/components/app/index.js +147 -1
  42. package/dist/collection/components/app/index.js.map +1 -1
  43. package/dist/collection/components/app/room/index.js +240 -0
  44. package/dist/collection/components/app/room/index.js.map +1 -0
  45. package/dist/collection/components/app/room/style.css +55 -0
  46. package/dist/collection/components/app/style.css +89 -101
  47. package/dist/collection/components/app-demo/index.js +5 -19
  48. package/dist/collection/components/app-demo/index.js.map +1 -1
  49. package/dist/collection/components/backtotop/index.js +3 -3
  50. package/dist/collection/components/backtotop/index.js.map +1 -1
  51. package/dist/collection/components/burger/index.js +174 -0
  52. package/dist/collection/components/burger/index.js.map +1 -0
  53. package/dist/collection/components/burger/style.css +22 -0
  54. package/dist/collection/components/button/index.js +10 -23
  55. package/dist/collection/components/button/index.js.map +1 -1
  56. package/dist/collection/components/button/style.css +13 -17
  57. package/dist/collection/components/button-demo/index.js +6 -2
  58. package/dist/collection/components/button-demo/index.js.map +1 -1
  59. package/dist/collection/components/button-demo/style.css +1 -0
  60. package/dist/collection/components/calendar/generate.js +1 -1
  61. package/dist/collection/components/calendar/generate.js.map +1 -1
  62. package/dist/collection/components/checkbox/index.js +25 -3
  63. package/dist/collection/components/checkbox/index.js.map +1 -1
  64. package/dist/collection/components/country/index.js +1 -1
  65. package/dist/collection/components/display/index.js +24 -3
  66. package/dist/collection/components/display/index.js.map +1 -1
  67. package/dist/collection/components/display-amount/index.js +1 -1
  68. package/dist/collection/components/display-demo/index.js +1 -1
  69. package/dist/collection/components/display-demo/index.js.map +1 -1
  70. package/dist/collection/components/filter/index.js +1 -1
  71. package/dist/collection/components/filter/index.js.map +1 -1
  72. package/dist/collection/components/filter/input/index.js +16 -9
  73. package/dist/collection/components/filter/input/index.js.map +1 -1
  74. package/dist/collection/components/form/index.js +132 -9
  75. package/dist/collection/components/form/index.js.map +1 -1
  76. package/dist/collection/components/form/style.css +9 -16
  77. package/dist/collection/components/frame/index.js +1 -2
  78. package/dist/collection/components/frame/index.js.map +1 -1
  79. package/dist/collection/components/icon/index.js +28 -35
  80. package/dist/collection/components/icon/index.js.map +1 -1
  81. package/dist/collection/components/icon-demo/index.js.map +1 -1
  82. package/dist/collection/components/icon-demo/style.css +1 -0
  83. package/dist/collection/components/input/Changeable.js +8 -0
  84. package/dist/collection/components/input/Changeable.js.map +1 -0
  85. package/dist/collection/components/input/Clearable.js.map +1 -0
  86. package/dist/collection/components/input/Input.js +2 -0
  87. package/dist/collection/components/input/Input.js.map +1 -0
  88. package/dist/collection/components/input/Looks.js +2 -0
  89. package/dist/collection/components/input/Looks.js.map +1 -0
  90. package/dist/collection/components/input/Submittable.js +8 -0
  91. package/dist/collection/components/input/Submittable.js.map +1 -0
  92. package/dist/collection/components/input/clear/index.js +237 -0
  93. package/dist/collection/components/input/clear/index.js.map +1 -0
  94. package/dist/collection/components/input/clear/style.css +254 -0
  95. package/dist/collection/components/{input-date → input/date}/index.js +160 -3
  96. package/dist/collection/components/input/date/index.js.map +1 -0
  97. package/dist/collection/components/{input-date-range → input/date/range}/index.js +161 -23
  98. package/dist/collection/components/input/date/range/index.js.map +1 -0
  99. package/dist/collection/components/input/date/range/style.css +69 -0
  100. package/dist/collection/components/input/date/style.css +58 -0
  101. package/dist/collection/components/input/demo/index.js +95 -0
  102. package/dist/collection/components/input/demo/index.js.map +1 -0
  103. package/dist/collection/components/{input-demo → input/demo}/style.css +1 -0
  104. package/dist/collection/components/input/file/index.js +305 -0
  105. package/dist/collection/components/input/file/index.js.map +1 -0
  106. package/dist/collection/components/input/file/style.css +85 -0
  107. package/dist/collection/components/input/index.js +131 -8
  108. package/dist/collection/components/input/index.js.map +1 -1
  109. package/dist/collection/components/{input-month → input/month}/index.js +5 -5
  110. package/dist/collection/components/input/month/index.js.map +1 -0
  111. package/dist/collection/components/{selector → input/select}/index.js +176 -5
  112. package/dist/collection/components/input/select/index.js.map +1 -0
  113. package/dist/collection/components/input/select/style.css +80 -0
  114. package/dist/collection/components/input/style.css +23 -8
  115. package/dist/collection/components/notification/index.js +45 -8
  116. package/dist/collection/components/notification/index.js.map +1 -1
  117. package/dist/collection/components/notification/style.css +25 -1
  118. package/dist/collection/components/notifier/style.css +1 -3
  119. package/dist/collection/components/picker/demo/index.js +91 -0
  120. package/dist/collection/components/picker/demo/index.js.map +1 -0
  121. package/dist/collection/components/picker/demo/style.css +26 -0
  122. package/dist/collection/components/picker/index.js +197 -396
  123. package/dist/collection/components/picker/index.js.map +1 -1
  124. package/dist/collection/components/picker/menu/index.js +422 -0
  125. package/dist/collection/components/picker/menu/index.js.map +1 -0
  126. package/dist/collection/components/picker/menu/style.css +44 -0
  127. package/dist/collection/components/picker/option/index.js +298 -0
  128. package/dist/collection/components/picker/option/index.js.map +1 -0
  129. package/dist/collection/components/picker/option/style.css +30 -0
  130. package/dist/collection/components/picker/slot-elements/index.js +109 -0
  131. package/dist/collection/components/picker/slot-elements/index.js.map +1 -0
  132. package/dist/collection/components/picker/slot-elements/style.css +3 -0
  133. package/dist/collection/components/picker/slotted-elements/index.js +84 -0
  134. package/dist/collection/components/picker/slotted-elements/index.js.map +1 -0
  135. package/dist/collection/components/picker/slotted-elements/style.css +3 -0
  136. package/dist/collection/components/picker/style.css +60 -144
  137. package/dist/collection/components/radio/index.js +4 -4
  138. package/dist/collection/components/radio/index.js.map +1 -1
  139. package/dist/collection/components/radio-button/index.js +35 -10
  140. package/dist/collection/components/radio-button/index.js.map +1 -1
  141. package/dist/collection/components/select-demo/index.js +0 -87
  142. package/dist/collection/components/select-demo/index.js.map +1 -1
  143. package/dist/collection/components/spinner/style.css +1 -0
  144. package/dist/collection/components/submit/index.js +64 -5
  145. package/dist/collection/components/submit/index.js.map +1 -1
  146. package/dist/collection/components/submit/style.css +224 -0
  147. package/dist/collection/components/summary/index.js +44 -1
  148. package/dist/collection/components/summary/index.js.map +1 -1
  149. package/dist/collection/components/svg/style.css +2 -2
  150. package/dist/collection/components/table/cell/index.js +1 -1
  151. package/dist/collection/components/table/cell/index.js.map +1 -1
  152. package/dist/collection/components/table/cell/style.css +19 -10
  153. package/dist/collection/components/table/demo/filtered/index.js +4 -3
  154. package/dist/collection/components/table/demo/filtered/index.js.map +1 -1
  155. package/dist/collection/components/table/demo/index.js +8 -2
  156. package/dist/collection/components/table/demo/index.js.map +1 -1
  157. package/dist/collection/components/table/demo/style.css +2 -0
  158. package/dist/collection/components/table/expandable/cell/index.js +14 -14
  159. package/dist/collection/components/table/expandable/cell/index.js.map +1 -1
  160. package/dist/collection/components/table/expandable/cell/style.css +32 -22
  161. package/dist/collection/components/table/expandable/row/index.js +9 -32
  162. package/dist/collection/components/table/expandable/row/index.js.map +1 -1
  163. package/dist/collection/components/table/expandable/row/style.css +32 -29
  164. package/dist/collection/components/table/footer/index.js +19 -0
  165. package/dist/collection/components/table/footer/index.js.map +1 -0
  166. package/dist/collection/components/table/footer/style.css +13 -0
  167. package/dist/collection/components/table/header/style.css +2 -2
  168. package/dist/collection/components/table/index.js +55 -12
  169. package/dist/collection/components/table/index.js.map +1 -1
  170. package/dist/collection/components/table/row/index.js +37 -5
  171. package/dist/collection/components/table/row/index.js.map +1 -1
  172. package/dist/collection/components/table/row/style.css +4 -1
  173. package/dist/collection/components/table/style.css +0 -2
  174. package/dist/collection/components/table/testing/data.js +28 -0
  175. package/dist/collection/components/table/testing/data.js.map +1 -0
  176. package/dist/collection/components/table/testing/index.js +28 -0
  177. package/dist/collection/components/table/testing/index.js.map +1 -0
  178. package/dist/collection/components/table/testing/style.css +22 -0
  179. package/dist/collection/components/theme/color/index.js +48 -0
  180. package/dist/collection/components/theme/color/index.js.map +1 -0
  181. package/dist/collection/components/theme/color/style.css +8 -0
  182. package/dist/collection/components/theme/color/variant/index.js +66 -0
  183. package/dist/collection/components/theme/color/variant/index.js.map +1 -0
  184. package/dist/collection/components/theme/color/variant/style.css +18 -0
  185. package/dist/collection/components/theme/colors/index.js +30 -0
  186. package/dist/collection/components/theme/colors/index.js.map +1 -0
  187. package/dist/collection/components/theme/colors/style.css +7 -0
  188. package/dist/collection/components/toggle-switch/index.js +69 -17
  189. package/dist/collection/components/toggle-switch/index.js.map +1 -1
  190. package/dist/collection/components/toggle-switch/style.css +19 -12
  191. package/dist/collection/components/trigger-source/index.js +3 -3
  192. package/dist/collection/components/trigger-source/index.js.map +1 -1
  193. package/dist/collection/global/Observers.js +22 -0
  194. package/dist/collection/global/Observers.js.map +1 -0
  195. package/dist/collection/global/index.js +5 -0
  196. package/dist/collection/global/index.js.map +1 -0
  197. package/dist/collection/index.js +2 -3
  198. package/dist/collection/index.js.map +1 -1
  199. package/dist/collection/model/Data.js.map +1 -0
  200. package/dist/collection/model/Icon.js +23 -0
  201. package/dist/collection/model/Icon.js.map +1 -0
  202. package/dist/collection/model/Listenable.js +2 -2
  203. package/dist/collection/model/Listenable.js.map +1 -1
  204. package/dist/collection/model/Notice.js +1 -1
  205. package/dist/collection/model/Notice.js.map +1 -1
  206. package/dist/collection/model/Option.js.map +1 -1
  207. package/dist/collection/model/index.js +3 -0
  208. package/dist/collection/model/index.js.map +1 -1
  209. package/dist/collection/model/redirect.js +8 -0
  210. package/dist/collection/model/redirect.js.map +1 -0
  211. package/dist/collection/smoothly.js +3 -0
  212. package/dist/collection/smoothly.js.map +1 -0
  213. package/dist/custom-elements/index.d.ts +94 -34
  214. package/dist/custom-elements/index.js +5359 -16299
  215. package/dist/custom-elements/index.js.map +1 -1
  216. package/dist/esm/{Listenable-fb6f4723.js → Data-37e7c0b9.js} +75 -5
  217. package/dist/esm/Data-37e7c0b9.js.map +1 -0
  218. package/dist/esm/Observers-5f08e828.js +25 -0
  219. package/dist/esm/Observers-5f08e828.js.map +1 -0
  220. package/dist/esm/{getLanguage-cccb8418.js → getLanguage-5233a597.js} +1111 -890
  221. package/dist/esm/getLanguage-5233a597.js.map +1 -0
  222. package/dist/esm/{index-7b57a52c.js → index-258984d3.js} +10 -42
  223. package/dist/esm/index-258984d3.js.map +1 -0
  224. package/dist/esm/index.js +388 -6
  225. package/dist/esm/index.js.map +1 -1
  226. package/dist/esm/loader.js +5 -4
  227. package/dist/esm/loader.js.map +1 -1
  228. package/dist/esm/redirect-b0f87e88.js +101 -0
  229. package/dist/esm/redirect-b0f87e88.js.map +1 -0
  230. package/dist/esm/smoothly-accordion_70.entry.js +17133 -0
  231. package/dist/esm/smoothly-accordion_70.entry.js.map +1 -0
  232. package/dist/esm/smoothly-address-display.entry.js +1 -1
  233. package/dist/esm/smoothly-address.entry.js +1 -1
  234. package/dist/esm/smoothly-addresses.entry.js +1 -1
  235. package/dist/esm/smoothly-color.entry.js +1 -1
  236. package/dist/esm/smoothly-country.entry.js +9 -9
  237. package/dist/esm/smoothly-country.entry.js.map +1 -1
  238. package/dist/esm/smoothly-display-date-time.entry.js +22 -0
  239. package/dist/esm/smoothly-display-date-time.entry.js.map +1 -0
  240. package/dist/esm/smoothly-google-font.entry.js +1 -1
  241. package/dist/esm/smoothly-radio-group.entry.js +1 -1
  242. package/dist/esm/smoothly-reorder.entry.js +1 -1
  243. package/dist/esm/smoothly-trigger-sink.entry.js +2 -2
  244. package/dist/esm/smoothly-trigger-source.entry.js +4 -4
  245. package/dist/esm/smoothly-trigger-source.entry.js.map +1 -1
  246. package/dist/esm/smoothly.js +5 -4
  247. package/dist/esm/smoothly.js.map +1 -1
  248. package/dist/smoothly/index.esm.js +1 -1
  249. package/dist/smoothly/index.esm.js.map +1 -1
  250. package/dist/smoothly/{p-c49d2094.entry.js → p-12182a73.entry.js} +2 -2
  251. package/dist/smoothly/p-2a0c2387.js +2 -0
  252. package/dist/smoothly/p-2a0c2387.js.map +1 -0
  253. package/dist/smoothly/{p-940af6d3.entry.js → p-47151a53.entry.js} +2 -2
  254. package/dist/smoothly/{p-be2ff772.entry.js → p-4c1bb81e.entry.js} +2 -2
  255. package/dist/smoothly/p-5e387578.js +3 -0
  256. package/dist/smoothly/p-5e387578.js.map +1 -0
  257. package/dist/smoothly/{p-d4182274.entry.js → p-66e9a8b1.entry.js} +2 -2
  258. package/dist/smoothly/{p-79025273.entry.js → p-6aebb818.entry.js} +2 -2
  259. package/dist/smoothly/p-6fad95bf.entry.js +2 -0
  260. package/dist/smoothly/p-6fad95bf.entry.js.map +1 -0
  261. package/dist/smoothly/{p-e136b93e.entry.js → p-7bf147bf.entry.js} +2 -2
  262. package/dist/smoothly/{p-5b28795c.entry.js → p-b3eac6af.entry.js} +2 -2
  263. package/dist/smoothly/p-b9cb0514.js +2 -0
  264. package/dist/smoothly/p-b9cb0514.js.map +1 -0
  265. package/dist/smoothly/p-bf63d2e6.entry.js +2 -0
  266. package/dist/smoothly/p-bf63d2e6.entry.js.map +1 -0
  267. package/dist/smoothly/p-c833c402.js +2 -0
  268. package/dist/smoothly/p-c833c402.js.map +1 -0
  269. package/dist/smoothly/{p-712b362e.entry.js → p-cb493516.entry.js} +2 -2
  270. package/dist/smoothly/p-d6185f62.entry.js +2 -0
  271. package/dist/smoothly/p-d6185f62.entry.js.map +1 -0
  272. package/dist/smoothly/p-ede93d69.js +2 -0
  273. package/dist/smoothly/p-ede93d69.js.map +1 -0
  274. package/dist/smoothly/p-eef1c80b.entry.js +2 -0
  275. package/dist/smoothly/p-eef1c80b.entry.js.map +1 -0
  276. package/dist/smoothly/smoothly.esm.js +1 -1
  277. package/dist/smoothly/smoothly.esm.js.map +1 -1
  278. package/dist/types/components/Button.d.ts +1 -2
  279. package/dist/types/components/accordion/index.d.ts +1 -1
  280. package/dist/types/components/accordion-item/index.d.ts +5 -4
  281. package/dist/types/components/app/index.d.ts +25 -0
  282. package/dist/types/components/app/room/index.d.ts +25 -0
  283. package/dist/types/components/app-demo/index.d.ts +2 -0
  284. package/dist/types/components/backtotop/index.d.ts +1 -1
  285. package/dist/types/components/burger/index.d.ts +15 -0
  286. package/dist/types/components/button/index.d.ts +2 -2
  287. package/dist/types/components/checkbox/index.d.ts +4 -2
  288. package/dist/types/components/display/index.d.ts +1 -0
  289. package/dist/types/components/filter/input/index.d.ts +1 -1
  290. package/dist/types/components/form/index.d.ts +16 -3
  291. package/dist/types/components/frame/index.d.ts +1 -1
  292. package/dist/types/components/icon/index.d.ts +4 -9
  293. package/dist/types/components/input/Changeable.d.ts +7 -0
  294. package/dist/types/components/input/Input.d.ts +10 -0
  295. package/dist/types/components/input/Looks.d.ts +1 -0
  296. package/dist/types/components/input/Submittable.d.ts +6 -0
  297. package/dist/types/components/input/clear/index.d.ts +17 -0
  298. package/dist/types/components/input/date/index.d.ts +28 -0
  299. package/dist/types/components/input/date/range/index.d.ts +33 -0
  300. package/dist/types/components/input/demo/index.d.ts +8 -0
  301. package/dist/types/components/input/file/index.d.ts +24 -0
  302. package/dist/types/components/input/index.d.ts +17 -4
  303. package/dist/types/components/{input-month → input/month}/index.d.ts +1 -1
  304. package/dist/types/components/{selector → input/select}/index.d.ts +15 -3
  305. package/dist/types/components/notification/index.d.ts +3 -1
  306. package/dist/types/components/picker/demo/index.d.ts +18 -0
  307. package/dist/types/components/picker/index.d.ts +33 -45
  308. package/dist/types/components/picker/menu/index.d.ts +53 -0
  309. package/dist/types/components/picker/option/index.d.ts +23 -0
  310. package/dist/types/components/picker/slot-elements/index.d.ts +15 -0
  311. package/dist/types/components/picker/slotted-elements/index.d.ts +8 -0
  312. package/dist/types/components/radio/index.d.ts +1 -1
  313. package/dist/types/components/radio-button/index.d.ts +3 -5
  314. package/dist/types/components/select-demo/index.d.ts +0 -9
  315. package/dist/types/components/submit/index.d.ts +6 -1
  316. package/dist/types/components/summary/index.d.ts +4 -0
  317. package/dist/types/components/table/demo/filtered/index.d.ts +1 -1
  318. package/dist/types/components/table/expandable/cell/index.d.ts +4 -4
  319. package/dist/types/components/table/expandable/row/index.d.ts +3 -7
  320. package/dist/types/components/table/footer/index.d.ts +3 -0
  321. package/dist/types/components/table/index.d.ts +6 -3
  322. package/dist/types/components/table/row/index.d.ts +3 -1
  323. package/dist/types/components/table/testing/data.d.ts +5 -0
  324. package/dist/types/components/table/testing/index.d.ts +4 -0
  325. package/dist/types/components/theme/color/index.d.ts +5 -0
  326. package/dist/types/components/theme/color/variant/index.d.ts +6 -0
  327. package/dist/types/components/theme/colors/index.d.ts +3 -0
  328. package/dist/types/components/toggle-switch/index.d.ts +7 -2
  329. package/dist/types/components/trigger-source/index.d.ts +1 -1
  330. package/dist/types/components.d.ts +490 -226
  331. package/dist/types/global/Observers.d.ts +8 -0
  332. package/dist/types/global/index.d.ts +4 -0
  333. package/dist/types/index.d.ts +1 -4
  334. package/dist/types/model/Icon.d.ts +8 -0
  335. package/dist/types/model/Notice.d.ts +1 -1
  336. package/dist/types/model/Option.d.ts +24 -6
  337. package/dist/types/model/index.d.ts +4 -1
  338. package/dist/types/model/redirect.d.ts +1 -0
  339. package/dist/types/smoothly.d.ts +3 -0
  340. package/package.json +16 -16
  341. package/dist/cjs/Listenable-63ea2d90.js.map +0 -1
  342. package/dist/cjs/getLanguage-430ecf04.js.map +0 -1
  343. package/dist/cjs/index-8352a4e0.js.map +0 -1
  344. package/dist/cjs/index-b282ee83.js +0 -865
  345. package/dist/cjs/index-b282ee83.js.map +0 -1
  346. package/dist/cjs/smoothly-accordion_61.cjs.entry.js +0 -28113
  347. package/dist/cjs/smoothly-accordion_61.cjs.entry.js.map +0 -1
  348. package/dist/collection/components/App.js +0 -71
  349. package/dist/collection/components/App.js.map +0 -1
  350. package/dist/collection/components/form/Clearable.js.map +0 -1
  351. package/dist/collection/components/form/Data.js.map +0 -1
  352. package/dist/collection/components/input-date/index.js.map +0 -1
  353. package/dist/collection/components/input-date/style.css +0 -39
  354. package/dist/collection/components/input-date-range/index.js.map +0 -1
  355. package/dist/collection/components/input-date-range/style.css +0 -51
  356. package/dist/collection/components/input-demo/index.js +0 -45
  357. package/dist/collection/components/input-demo/index.js.map +0 -1
  358. package/dist/collection/components/input-month/index.js.map +0 -1
  359. package/dist/collection/components/menu-options/index.js +0 -413
  360. package/dist/collection/components/menu-options/index.js.map +0 -1
  361. package/dist/collection/components/menu-options/style.css +0 -18
  362. package/dist/collection/components/option/index.js +0 -270
  363. package/dist/collection/components/option/index.js.map +0 -1
  364. package/dist/collection/components/option/style.css +0 -42
  365. package/dist/collection/components/room/index.js +0 -90
  366. package/dist/collection/components/room/index.js.map +0 -1
  367. package/dist/collection/components/select/index.js +0 -108
  368. package/dist/collection/components/select/index.js.map +0 -1
  369. package/dist/collection/components/select/style.css +0 -20
  370. package/dist/collection/components/selector/index.js.map +0 -1
  371. package/dist/collection/components/selector/style.css +0 -46
  372. package/dist/esm/Listenable-fb6f4723.js.map +0 -1
  373. package/dist/esm/getLanguage-cccb8418.js.map +0 -1
  374. package/dist/esm/index-2e948fc3.js +0 -861
  375. package/dist/esm/index-2e948fc3.js.map +0 -1
  376. package/dist/esm/index-7b57a52c.js.map +0 -1
  377. package/dist/esm/smoothly-accordion_61.entry.js +0 -28049
  378. package/dist/esm/smoothly-accordion_61.entry.js.map +0 -1
  379. package/dist/smoothly/p-06337b89.js +0 -2
  380. package/dist/smoothly/p-06337b89.js.map +0 -1
  381. package/dist/smoothly/p-21341e18.entry.js +0 -2
  382. package/dist/smoothly/p-21341e18.entry.js.map +0 -1
  383. package/dist/smoothly/p-5b6351f6.js +0 -2
  384. package/dist/smoothly/p-5b6351f6.js.map +0 -1
  385. package/dist/smoothly/p-70280a11.js +0 -2
  386. package/dist/smoothly/p-70280a11.js.map +0 -1
  387. package/dist/smoothly/p-b49664d8.entry.js +0 -2
  388. package/dist/smoothly/p-b49664d8.entry.js.map +0 -1
  389. package/dist/smoothly/p-b82efb2e.entry.js +0 -2
  390. package/dist/smoothly/p-b82efb2e.entry.js.map +0 -1
  391. package/dist/smoothly/p-c88ae468.js +0 -3
  392. package/dist/smoothly/p-c88ae468.js.map +0 -1
  393. package/dist/types/components/App.d.ts +0 -5
  394. package/dist/types/components/input-date/index.d.ts +0 -14
  395. package/dist/types/components/input-date-range/index.d.ts +0 -23
  396. package/dist/types/components/input-demo/index.d.ts +0 -3
  397. package/dist/types/components/menu-options/index.d.ts +0 -35
  398. package/dist/types/components/option/index.d.ts +0 -32
  399. package/dist/types/components/room/index.d.ts +0 -7
  400. package/dist/types/components/select/index.d.ts +0 -14
  401. /package/dist/collection/components/{form → input}/Clearable.js +0 -0
  402. /package/dist/collection/components/{input-month → input/month}/style.css +0 -0
  403. /package/dist/collection/{components/form → model}/Data.js +0 -0
  404. /package/dist/smoothly/{p-c49d2094.entry.js.map → p-12182a73.entry.js.map} +0 -0
  405. /package/dist/smoothly/{p-940af6d3.entry.js.map → p-47151a53.entry.js.map} +0 -0
  406. /package/dist/smoothly/{p-be2ff772.entry.js.map → p-4c1bb81e.entry.js.map} +0 -0
  407. /package/dist/smoothly/{p-d4182274.entry.js.map → p-66e9a8b1.entry.js.map} +0 -0
  408. /package/dist/smoothly/{p-79025273.entry.js.map → p-6aebb818.entry.js.map} +0 -0
  409. /package/dist/smoothly/{p-e136b93e.entry.js.map → p-7bf147bf.entry.js.map} +0 -0
  410. /package/dist/smoothly/{p-5b28795c.entry.js.map → p-b3eac6af.entry.js.map} +0 -0
  411. /package/dist/smoothly/{p-712b362e.entry.js.map → p-cb493516.entry.js.map} +0 -0
  412. /package/dist/types/components/{form → input}/Clearable.d.ts +0 -0
  413. /package/dist/types/{components/form → model}/Data.d.ts +0 -0
@@ -1,865 +0,0 @@
1
- 'use strict';
2
-
3
- const index = require('./index-8352a4e0.js');
4
-
5
- const appendToMap = (map, propName, value) => {
6
- const items = map.get(propName);
7
- if (!items) {
8
- map.set(propName, [value]);
9
- }
10
- else if (!items.includes(value)) {
11
- items.push(value);
12
- }
13
- };
14
- const debounce = (fn, ms) => {
15
- let timeoutId;
16
- return (...args) => {
17
- if (timeoutId) {
18
- clearTimeout(timeoutId);
19
- }
20
- timeoutId = setTimeout(() => {
21
- timeoutId = 0;
22
- fn(...args);
23
- }, ms);
24
- };
25
- };
26
-
27
- /**
28
- * Check if a possible element isConnected.
29
- * The property might not be there, so we check for it.
30
- *
31
- * We want it to return true if isConnected is not a property,
32
- * otherwise we would remove these elements and would not update.
33
- *
34
- * Better leak in Edge than to be useless.
35
- */
36
- const isConnected = (maybeElement) => !('isConnected' in maybeElement) || maybeElement.isConnected;
37
- const cleanupElements = debounce((map) => {
38
- for (let key of map.keys()) {
39
- map.set(key, map.get(key).filter(isConnected));
40
- }
41
- }, 2000);
42
- const stencilSubscription = () => {
43
- if (typeof index.getRenderingRef !== 'function') {
44
- // If we are not in a stencil project, we do nothing.
45
- // This function is not really exported by @stencil/core.
46
- return {};
47
- }
48
- const elmsToUpdate = new Map();
49
- return {
50
- dispose: () => elmsToUpdate.clear(),
51
- get: (propName) => {
52
- const elm = index.getRenderingRef();
53
- if (elm) {
54
- appendToMap(elmsToUpdate, propName, elm);
55
- }
56
- },
57
- set: (propName) => {
58
- const elements = elmsToUpdate.get(propName);
59
- if (elements) {
60
- elmsToUpdate.set(propName, elements.filter(index.forceUpdate));
61
- }
62
- cleanupElements(elmsToUpdate);
63
- },
64
- reset: () => {
65
- elmsToUpdate.forEach((elms) => elms.forEach(index.forceUpdate));
66
- cleanupElements(elmsToUpdate);
67
- },
68
- };
69
- };
70
-
71
- const createObservableMap = (defaultState, shouldUpdate = (a, b) => a !== b) => {
72
- let states = new Map(Object.entries(defaultState !== null && defaultState !== void 0 ? defaultState : {}));
73
- const handlers = {
74
- dispose: [],
75
- get: [],
76
- set: [],
77
- reset: [],
78
- };
79
- const reset = () => {
80
- states = new Map(Object.entries(defaultState !== null && defaultState !== void 0 ? defaultState : {}));
81
- handlers.reset.forEach((cb) => cb());
82
- };
83
- const dispose = () => {
84
- // Call first dispose as resetting the state would
85
- // cause less updates ;)
86
- handlers.dispose.forEach((cb) => cb());
87
- reset();
88
- };
89
- const get = (propName) => {
90
- handlers.get.forEach((cb) => cb(propName));
91
- return states.get(propName);
92
- };
93
- const set = (propName, value) => {
94
- const oldValue = states.get(propName);
95
- if (shouldUpdate(value, oldValue, propName)) {
96
- states.set(propName, value);
97
- handlers.set.forEach((cb) => cb(propName, value, oldValue));
98
- }
99
- };
100
- const state = (typeof Proxy === 'undefined'
101
- ? {}
102
- : new Proxy(defaultState, {
103
- get(_, propName) {
104
- return get(propName);
105
- },
106
- ownKeys(_) {
107
- return Array.from(states.keys());
108
- },
109
- getOwnPropertyDescriptor() {
110
- return {
111
- enumerable: true,
112
- configurable: true,
113
- };
114
- },
115
- has(_, propName) {
116
- return states.has(propName);
117
- },
118
- set(_, propName, value) {
119
- set(propName, value);
120
- return true;
121
- },
122
- }));
123
- const on = (eventName, callback) => {
124
- handlers[eventName].push(callback);
125
- return () => {
126
- removeFromArray(handlers[eventName], callback);
127
- };
128
- };
129
- const onChange = (propName, cb) => {
130
- const unSet = on('set', (key, newValue) => {
131
- if (key === propName) {
132
- cb(newValue);
133
- }
134
- });
135
- const unReset = on('reset', () => cb(defaultState[propName]));
136
- return () => {
137
- unSet();
138
- unReset();
139
- };
140
- };
141
- const use = (...subscriptions) => {
142
- const unsubs = subscriptions.reduce((unsubs, subscription) => {
143
- if (subscription.set) {
144
- unsubs.push(on('set', subscription.set));
145
- }
146
- if (subscription.get) {
147
- unsubs.push(on('get', subscription.get));
148
- }
149
- if (subscription.reset) {
150
- unsubs.push(on('reset', subscription.reset));
151
- }
152
- if (subscription.dispose) {
153
- unsubs.push(on('dispose', subscription.dispose));
154
- }
155
- return unsubs;
156
- }, []);
157
- return () => unsubs.forEach((unsub) => unsub());
158
- };
159
- const forceUpdate = (key) => {
160
- const oldValue = states.get(key);
161
- handlers.set.forEach((cb) => cb(key, oldValue, oldValue));
162
- };
163
- return {
164
- state,
165
- get,
166
- set,
167
- on,
168
- onChange,
169
- use,
170
- dispose,
171
- reset,
172
- forceUpdate,
173
- };
174
- };
175
- const removeFromArray = (array, item) => {
176
- const index = array.indexOf(item);
177
- if (index >= 0) {
178
- array[index] = array[array.length - 1];
179
- array.length--;
180
- }
181
- };
182
-
183
- const createStore = (defaultState, shouldUpdate) => {
184
- const map = createObservableMap(defaultState, shouldUpdate);
185
- map.use(stencilSubscription());
186
- return map;
187
- };
188
-
189
- let defaultRouter;
190
- const createRouter = (opts) => {
191
- var _a;
192
- const win = window;
193
- const url = new URL(win.location.href);
194
- const parseURL = (_a = opts === null || opts === void 0 ? void 0 : opts.parseURL) !== null && _a !== void 0 ? _a : DEFAULT_PARSE_URL;
195
- const { state, onChange, dispose } = createStore({
196
- url,
197
- activePath: parseURL(url)
198
- }, (newV, oldV, prop) => {
199
- if (prop === 'url') {
200
- return newV.href !== oldV.href;
201
- }
202
- return newV !== oldV;
203
- });
204
- const push = (href) => {
205
- history.pushState(null, null, href);
206
- const url = new URL(href, document.baseURI);
207
- state.url = url;
208
- state.activePath = parseURL(url);
209
- };
210
- const match = (routes) => {
211
- const { activePath } = state;
212
- for (let route of routes) {
213
- const params = matchPath(activePath, route.path);
214
- if (params) {
215
- if (route.to != null) {
216
- const to = (typeof route.to === 'string')
217
- ? route.to
218
- : route.to(activePath);
219
- push(to);
220
- return match(routes);
221
- }
222
- else {
223
- return { params, route };
224
- }
225
- }
226
- }
227
- return undefined;
228
- };
229
- const navigationChanged = () => {
230
- const url = new URL(win.location.href);
231
- state.url = url;
232
- state.activePath = parseURL(url);
233
- };
234
- const Switch = (_, childrenRoutes) => {
235
- const result = match(childrenRoutes);
236
- if (result) {
237
- if (typeof result.route.jsx === 'function') {
238
- return result.route.jsx(result.params);
239
- }
240
- else {
241
- return result.route.jsx;
242
- }
243
- }
244
- };
245
- const disposeRouter = () => {
246
- defaultRouter = undefined;
247
- win.removeEventListener('popstate', navigationChanged);
248
- dispose();
249
- };
250
- const router = defaultRouter = {
251
- Switch,
252
- get url() {
253
- return state.url;
254
- },
255
- get activePath() {
256
- return state.activePath;
257
- },
258
- push,
259
- onChange: onChange,
260
- dispose: disposeRouter,
261
- };
262
- // Initial update
263
- navigationChanged();
264
- // Listen URL changes
265
- win.addEventListener('popstate', navigationChanged);
266
- return router;
267
- };
268
- const Route = (props, children) => {
269
- var _a;
270
- if ('to' in props) {
271
- return {
272
- path: props.path,
273
- to: props.to,
274
- };
275
- }
276
- return {
277
- path: props.path,
278
- id: props.id,
279
- jsx: (_a = props.render) !== null && _a !== void 0 ? _a : children,
280
- };
281
- };
282
- const href = (href, router = defaultRouter) => {
283
- return {
284
- href,
285
- onClick: (ev) => {
286
- if (ev.metaKey || ev.ctrlKey) {
287
- return;
288
- }
289
- if (ev.which == 2 || ev.button == 1) {
290
- return;
291
- }
292
- ev.preventDefault();
293
- router.push(href);
294
- },
295
- };
296
- };
297
- const matchPath = (pathname, path) => {
298
- if (typeof path === 'string') {
299
- if (path === pathname) {
300
- return {};
301
- }
302
- }
303
- else if (typeof path === 'function') {
304
- const params = path(pathname);
305
- if (params) {
306
- return params === true
307
- ? {}
308
- : { ...params };
309
- }
310
- }
311
- else {
312
- const results = path.exec(pathname);
313
- if (results) {
314
- path.lastIndex = 0;
315
- return { ...results };
316
- }
317
- }
318
- return undefined;
319
- };
320
- const DEFAULT_PARSE_URL = (url) => {
321
- return url.pathname.toLowerCase();
322
- };
323
-
324
- const Router = createRouter();
325
- function redirect(url) {
326
- const destination = resolve(url);
327
- destination ? Router.push(destination) : (window.location.href = url);
328
- }
329
- const App = (attributes, nodes, utils) => {
330
- var _a;
331
- const emptyNode = Object.entries(nodes[0]).reduce((r, entry) => {
332
- r[entry[0]] = null;
333
- return r;
334
- }, {});
335
- const emptyChild = nodeToChild(emptyNode);
336
- function nodeToChild(node) {
337
- let result;
338
- utils.forEach([node], child => (result = child));
339
- return result !== null && result !== void 0 ? result : emptyChild;
340
- }
341
- function childToNode(child) {
342
- return utils.map([emptyNode], c => (Object.assign(Object.assign({}, c), child)))[0];
343
- }
344
- const children = nodes.map(node => (Object.assign(Object.assign({}, nodeToChild(node)), { node })));
345
- return (index.h("smoothly-app", null,
346
- index.h("header", null,
347
- index.h("h1", null,
348
- index.h("a", Object.assign({}, href((_a = resolve("")) !== null && _a !== void 0 ? _a : "/")), attributes.label)),
349
- index.h("nav", null,
350
- index.h("ul", null, utils
351
- .map([
352
- ...children.filter(child => { var _a; return ((_a = child.vattrs) === null || _a === void 0 ? void 0 : _a.slot) == "nav-start"; }),
353
- ...children.filter(child => { var _a, _b, _c; return ((_a = child.vattrs) === null || _a === void 0 ? void 0 : _a.label) && ((_b = child.vattrs) === null || _b === void 0 ? void 0 : _b.path) && typeof ((_c = child.vattrs) === null || _c === void 0 ? void 0 : _c.path) == "string"; }),
354
- ...children.filter(child => { var _a; return ((_a = child.vattrs) === null || _a === void 0 ? void 0 : _a.slot) == "nav-end"; }),
355
- ].map(child => child.node), child => {
356
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
357
- if (((_a = child.vattrs) === null || _a === void 0 ? void 0 : _a.label) && ((_b = child.vattrs) === null || _b === void 0 ? void 0 : _b.path))
358
- child = Object.assign(Object.assign({}, emptyChild), { vtag: "a", vattrs: { href: (_c = child.vattrs) === null || _c === void 0 ? void 0 : _c.path }, vchildren: [
359
- ((_d = child.vattrs) === null || _d === void 0 ? void 0 : _d.icon)
360
- ? childToNode({
361
- vtag: "smoothly-icon",
362
- vattrs: {
363
- toolTip: (_e = child.vattrs) === null || _e === void 0 ? void 0 : _e.label,
364
- name: (_f = child.vattrs) === null || _f === void 0 ? void 0 : _f.icon,
365
- size: "medium",
366
- },
367
- })
368
- : childToNode({ vtext: (_g = child.vattrs) === null || _g === void 0 ? void 0 : _g.label }),
369
- ] });
370
- const url = resolve((_h = child.vattrs) === null || _h === void 0 ? void 0 : _h.href);
371
- return child.vtag != "a"
372
- ? child
373
- : url
374
- ? Object.assign(Object.assign({}, child), { vattrs: Object.assign(Object.assign({}, child.vattrs), { class: [(_j = child.vattrs) === null || _j === void 0 ? void 0 : _j.class, Router.activePath == url ? "active" : ""].join(" ") || undefined, href: url }) }) : Object.assign(Object.assign({}, child), { vattrs: Object.assign(Object.assign({}, child.vattrs), { target: "new" }) });
375
- })
376
- .map(node => {
377
- var _a, _b;
378
- const child = nodeToChild(node);
379
- return child.vtag == "a" && !((_a = child.vattrs) === null || _a === void 0 ? void 0 : _a.target) ? (index.h("a", Object.assign({}, child.vattrs, href((_b = child.vattrs) === null || _b === void 0 ? void 0 : _b.href)), child.vchildren)) : (node);
380
- })
381
- .map(child => (index.h("li", null, child))))),
382
- children.filter(child => { var _a; return ((_a = child.vattrs) === null || _a === void 0 ? void 0 : _a.slot) == "header"; }).map(child => child.node)),
383
- index.h("main", null,
384
- index.h(Router.Switch, null, children
385
- .filter(child => { var _a; return ((_a = child.vattrs) === null || _a === void 0 ? void 0 : _a.path) != undefined; })
386
- .map(child => {
387
- var _a, _b, _c, _d, _e;
388
- const path = typeof ((_a = child.vattrs) === null || _a === void 0 ? void 0 : _a.path) == "string" ? resolve((_b = child.vattrs) === null || _b === void 0 ? void 0 : _b.path) : (_c = child.vattrs) === null || _c === void 0 ? void 0 : _c.path;
389
- return ((_d = child.vattrs) === null || _d === void 0 ? void 0 : _d.to) ? (index.h(Route, { path: path, to: (_e = child.vattrs) === null || _e === void 0 ? void 0 : _e.to })) : (index.h(Route, { path: path }, child.node));
390
- })))));
391
- };
392
- function resolve(url) {
393
- const u = new URL(url, document.baseURI);
394
- return url == ""
395
- ? new URL(document.baseURI).pathname
396
- : u.toString().startsWith(document.baseURI)
397
- ? u.pathname
398
- : undefined;
399
- }
400
-
401
- class Notice {
402
- get state() {
403
- return this.stateValue;
404
- }
405
- set state(value) {
406
- if (this.stateValue != value) {
407
- this.stateValue = value;
408
- this.emit();
409
- }
410
- }
411
- get message() {
412
- return this.messageValue;
413
- }
414
- set message(value) {
415
- if (this.messageValue != value) {
416
- this.messageValue = value;
417
- this.emit();
418
- }
419
- }
420
- constructor(stateValue, messageValue, task) {
421
- this.stateValue = stateValue;
422
- this.messageValue = messageValue;
423
- this.task = task;
424
- this.listeners = [];
425
- switch (stateValue) {
426
- case "delayed":
427
- this.timer = window.setTimeout(() => this.execute(), 5000);
428
- break;
429
- case "executing":
430
- this.execute();
431
- break;
432
- case "success":
433
- case "warning":
434
- case "failed":
435
- this.startCloseTimer();
436
- break;
437
- }
438
- }
439
- listen(listener) {
440
- this.listeners.push(listener);
441
- }
442
- unlisten(listener) {
443
- this.listeners.filter(l => l != listener);
444
- }
445
- emit() {
446
- this.listeners.forEach(l => l(this));
447
- }
448
- execute() {
449
- this.clearTimer();
450
- if (this.task) {
451
- this.state = "executing";
452
- this.task(this).then(r => {
453
- this.messageValue = r[1];
454
- this.state = r[0] ? "success" : "failed";
455
- this.startCloseTimer();
456
- });
457
- }
458
- else
459
- this.state = "failed";
460
- }
461
- startCloseTimer() {
462
- this.timer = window.setTimeout(() => this.close(), 15000);
463
- }
464
- close() {
465
- this.clearTimer();
466
- this.state = "closed";
467
- }
468
- clearTimer() {
469
- if (this.timer) {
470
- window.clearTimeout(this.timer);
471
- this.timer = undefined;
472
- }
473
- }
474
- static delay(message, task) {
475
- return new Notice("delayed", message, task);
476
- }
477
- static execute(message, task) {
478
- return new Notice("executing", message, task);
479
- }
480
- static succeded(message) {
481
- return new Notice("success", message);
482
- }
483
- static failed(message) {
484
- return new Notice("failed", message);
485
- }
486
- static warn(message) {
487
- return new Notice("warning", message);
488
- }
489
- }
490
-
491
- var Hex;
492
- (function (Hex) {
493
- function is(value) {
494
- const matchArray = (typeof value == "string" && value.match(/[0-9a-fA-F]/g)) || undefined;
495
- return (typeof value == "string" &&
496
- value.length > 3 &&
497
- value[0] == "#" &&
498
- ((matchArray === null || matchArray === void 0 ? void 0 : matchArray.length) == 3 || (matchArray === null || matchArray === void 0 ? void 0 : matchArray.length) == 6));
499
- }
500
- Hex.is = is;
501
- })(Hex || (Hex = {}));
502
-
503
- var Hsl;
504
- (function (Hsl) {
505
- function is(value) {
506
- const values = typeof value == "string" && value.length > 11 ? value.substring(4, value.length - 1).split(",") : [];
507
- return (typeof value == "string" &&
508
- value.length > 11 &&
509
- value.substr(0, 4) == "hsl(" &&
510
- value.substr(value.length - 1, 1) == ")" &&
511
- values.length == 3 &&
512
- values.every((single, index) => {
513
- var _a, _b;
514
- let result = false;
515
- if (index == 0)
516
- result =
517
- !Number.isNaN(single) &&
518
- ((_a = single.match(/[0-9]/g)) === null || _a === void 0 ? void 0 : _a.length) == single.length &&
519
- Number(single) >= 0 &&
520
- Number(single) <= 360;
521
- else {
522
- const number = single.substr(0, single.length - 1);
523
- result =
524
- single[single.length - 1] == "%" &&
525
- !Number.isNaN(number) &&
526
- ((_b = number.match(/[0-9]/g)) === null || _b === void 0 ? void 0 : _b.length) == number.length &&
527
- Number(number) >= 0 &&
528
- Number(number) <= 100;
529
- }
530
- return result;
531
- }));
532
- }
533
- Hsl.is = is;
534
- })(Hsl || (Hsl = {}));
535
-
536
- const Names = {
537
- aliceblue: "#f0f8ff",
538
- antiquewhite: "#faebd7",
539
- aqua: "#00ffff",
540
- aquamarine: "#7fffd4",
541
- azure: "#f0ffff",
542
- beige: "#f5f5dc",
543
- bisque: "#ffe4c4",
544
- black: "#000000",
545
- blanchedalmond: "#ffebcd",
546
- blue: "#0000ff",
547
- blueviolet: "#8a2be2",
548
- brown: "#a52a2a",
549
- burlywood: "#deb887",
550
- cadetblue: "#5f9ea0",
551
- chartreuse: "#7fff00",
552
- chocolate: "#d2691e",
553
- coral: "#ff7f50",
554
- cornflowerblue: "#6495ed",
555
- cornsilk: "#fff8dc",
556
- crimson: "#dc143c",
557
- cyan: "#00ffff",
558
- darkblue: "#00008b",
559
- darkcyan: "#008b8b",
560
- darkgoldenrod: "#b8860b",
561
- darkgray: "#a9a9a9",
562
- darkgreen: "#006400",
563
- darkgrey: "#a9a9a9",
564
- darkkhaki: "#bdb76b",
565
- darkmagenta: "#8b008b",
566
- darkolivegreen: "#556b2f",
567
- darkorange: "#ff8c00",
568
- darkorchid: "#9932cc",
569
- darkred: "#8b0000",
570
- darksalmon: "#e9967a",
571
- darkseagreen: "#8fbc8f",
572
- darkslateblue: "#483d8b",
573
- darkslategray: "#2f4f4f",
574
- darkslategrey: "#2f4f4f",
575
- darkturquoise: "#00ced1",
576
- darkviolet: "#9400d3",
577
- deeppink: "#ff1493",
578
- deepskyblue: "#00bfff",
579
- dimgray: "#696969",
580
- dimgrey: "#696969",
581
- dodgerblue: "#1e90ff",
582
- firebrick: "#b22222",
583
- floralwhite: "#fffaf0",
584
- forestgreen: "#228b22",
585
- fuchsia: "#ff00ff",
586
- gainsboro: "#dcdcdc",
587
- ghostwhite: "#f8f8ff",
588
- goldenrod: "#daa520",
589
- gold: "#ffd700",
590
- gray: "#808080",
591
- green: "#008000",
592
- greenyellow: "#adff2f",
593
- grey: "#808080",
594
- honeydew: "#f0fff0",
595
- hotpink: "#ff69b4",
596
- indianred: "#cd5c5c",
597
- indigo: "#4b0082",
598
- ivory: "#fffff0",
599
- khaki: "#f0e68c",
600
- lavenderblush: "#fff0f5",
601
- lavender: "#e6e6fa",
602
- lawngreen: "#7cfc00",
603
- lemonchiffon: "#fffacd",
604
- lightblue: "#add8e6",
605
- lightcoral: "#f08080",
606
- lightcyan: "#e0ffff",
607
- lightgoldenrodyellow: "#fafad2",
608
- lightgray: "#d3d3d3",
609
- lightgreen: "#90ee90",
610
- lightgrey: "#d3d3d3",
611
- lightpink: "#ffb6c1",
612
- lightsalmon: "#ffa07a",
613
- lightseagreen: "#20b2aa",
614
- lightskyblue: "#87cefa",
615
- lightslategray: "#778899",
616
- lightslategrey: "#778899",
617
- lightsteelblue: "#b0c4de",
618
- lightyellow: "#ffffe0",
619
- lime: "#00ff00",
620
- limegreen: "#32cd32",
621
- linen: "#faf0e6",
622
- magenta: "#ff00ff",
623
- maroon: "#800000",
624
- mediumaquamarine: "#66cdaa",
625
- mediumblue: "#0000cd",
626
- mediumorchid: "#ba55d3",
627
- mediumpurple: "#9370db",
628
- mediumseagreen: "#3cb371",
629
- mediumslateblue: "#7b68ee",
630
- mediumspringgreen: "#00fa9a",
631
- mediumturquoise: "#48d1cc",
632
- mediumvioletred: "#c71585",
633
- midnightblue: "#191970",
634
- mintcream: "#f5fffa",
635
- mistyrose: "#ffe4e1",
636
- moccasin: "#ffe4b5",
637
- navajowhite: "#ffdead",
638
- navy: "#000080",
639
- oldlace: "#fdf5e6",
640
- olive: "#808000",
641
- olivedrab: "#6b8e23",
642
- orange: "#ffa500",
643
- orangered: "#ff4500",
644
- orchid: "#da70d6",
645
- palegoldenrod: "#eee8aa",
646
- palegreen: "#98fb98",
647
- paleturquoise: "#afeeee",
648
- palevioletred: "#db7093",
649
- papayawhip: "#ffefd5",
650
- peachpuff: "#ffdab9",
651
- peru: "#cd853f",
652
- pink: "#ffc0cb",
653
- plum: "#dda0dd",
654
- powderblue: "#b0e0e6",
655
- purple: "#800080",
656
- rebeccapurple: "#663399",
657
- red: "#ff0000",
658
- rosybrown: "#bc8f8f",
659
- royalblue: "#4169e1",
660
- saddlebrown: "#8b4513",
661
- salmon: "#fa8072",
662
- sandybrown: "#f4a460",
663
- seagreen: "#2e8b57",
664
- seashell: "#fff5ee",
665
- sienna: "#a0522d",
666
- silver: "#c0c0c0",
667
- skyblue: "#87ceeb",
668
- slateblue: "#6a5acd",
669
- slategray: "#708090",
670
- slategrey: "#708090",
671
- snow: "#fffafa",
672
- springgreen: "#00ff7f",
673
- steelblue: "#4682b4",
674
- tan: "#d2b48c",
675
- teal: "#008080",
676
- thistle: "#d8bfd8",
677
- tomato: "#ff6347",
678
- turquoise: "#40e0d0",
679
- violet: "#ee82ee",
680
- wheat: "#f5deb3",
681
- white: "#ffffff",
682
- whitesmoke: "#f5f5f5",
683
- yellow: "#ffff00",
684
- yellowgreen: "#9acd32",
685
- };
686
- var Name;
687
- (function (Name) {
688
- Name.types = () => Object.keys(Names);
689
- function is(value) {
690
- return typeof value == "string" && Name.types().includes(value.toLowerCase());
691
- }
692
- Name.is = is;
693
- })(Name || (Name = {}));
694
-
695
- var Rgb;
696
- (function (Rgb) {
697
- function is(value) {
698
- const values = typeof value == "string" && value.length > 9 ? value.substring(4, value.length - 1).split(",") : [];
699
- return (typeof value == "string" &&
700
- value.length > 9 &&
701
- value.substr(0, 4) == "rgb(" &&
702
- value.substr(value.length - 1, 1) == ")" &&
703
- values.length == 3 &&
704
- values.every((value) => {
705
- var _a;
706
- return !Number.isNaN(value) &&
707
- ((_a = value.match(/[0-9]/g)) === null || _a === void 0 ? void 0 : _a.length) == value.length &&
708
- Number(value) >= 0 &&
709
- Number(value) <= 255;
710
- }));
711
- }
712
- Rgb.is = is;
713
- })(Rgb || (Rgb = {}));
714
-
715
- var CommaRgb;
716
- (function (CommaRgb) {
717
- function is(value) {
718
- const values = typeof value == "string" ? value.split(",") : [];
719
- return (values.length == 3 &&
720
- values.every((value) => {
721
- var _a;
722
- return !Number.isNaN(value) &&
723
- ((_a = value.match(/[0-9]/g)) === null || _a === void 0 ? void 0 : _a.length) == value.length &&
724
- Number(value) >= 0 &&
725
- Number(value) <= 255;
726
- }));
727
- }
728
- CommaRgb.is = is;
729
- function from(color) {
730
- let result;
731
- const colorWithoutSpace = typeof color == "string" ? color.replace(/ /g, "").toLowerCase() : undefined;
732
- if (!colorWithoutSpace)
733
- result = undefined;
734
- else if (CommaRgb.is(colorWithoutSpace))
735
- result = colorWithoutSpace;
736
- else if (Hex.is(colorWithoutSpace))
737
- result = fromHex(colorWithoutSpace);
738
- else if (Rgb.is(colorWithoutSpace))
739
- result = fromRgb(colorWithoutSpace);
740
- else if (Name.is(colorWithoutSpace))
741
- result = fromHex(Names[colorWithoutSpace]);
742
- else if (Hsl.is(colorWithoutSpace))
743
- result = fromHsl(colorWithoutSpace);
744
- return result;
745
- }
746
- CommaRgb.from = from;
747
- function fromHex(hex) {
748
- let result = "0,0,0";
749
- if (hex.length == 7)
750
- result = `${parseInt(hex.substr(1, 2), 16)},${parseInt(hex.substr(3, 2), 16)},${parseInt(hex.substr(5, 2), 16)}`;
751
- else if (hex.length == 4)
752
- result = fromHex(`#${hex[1]}${hex[1]}${hex[2]}${hex[2]}${hex[3]}${hex[3]}`);
753
- return result;
754
- }
755
- CommaRgb.fromHex = fromHex;
756
- function fromRgb(rgb) {
757
- return rgb.substring(4, rgb.length - 1);
758
- }
759
- CommaRgb.fromRgb = fromRgb;
760
- function fromHsl(hsl) {
761
- let result = "";
762
- let h, s, l;
763
- let r, g, b;
764
- const HSL = hsl
765
- .substring(4, hsl.length - 1)
766
- .split(",")
767
- .map((value, index) => Number(index == 0 ? value : value.substr(0, value.length - 1)));
768
- if (HSL.length == 3) {
769
- h = HSL[0] / 360;
770
- s = HSL[1] / 100;
771
- l = HSL[2] / 100;
772
- if (s == 0)
773
- r = g = b = l;
774
- else {
775
- const q = l < 0.5 ? l * (1 + s) : l + s - l * s;
776
- const p = 2 * l - q;
777
- r = hue2rgb(p, q, h + 1 / 3);
778
- g = hue2rgb(p, q, h);
779
- b = hue2rgb(p, q, h - 1 / 3);
780
- }
781
- result = `${Math.round(255 * r)},${Math.round(255 * g)},${Math.round(255 * b)}`;
782
- }
783
- return result;
784
- }
785
- CommaRgb.fromHsl = fromHsl;
786
- function hue2rgb(p, q, t) {
787
- let result = p;
788
- if (t < 0)
789
- t += 1;
790
- if (t > 1)
791
- t -= 1;
792
- if (t < 1 / 6)
793
- result = p + (q - p) * 6 * t;
794
- else if (t < 1 / 2)
795
- result = q;
796
- else if (t < 2 / 3)
797
- result = p + (q - p) * (2 / 3 - t) * 6;
798
- return result;
799
- }
800
- })(CommaRgb || (CommaRgb = {}));
801
-
802
- var Color;
803
- (function (Color) {
804
- function is(value) {
805
- return (typeof value == "string" &&
806
- (CommaRgb.is(value) || Hex.is(value) || Hsl.is(value) || Name.is(value) || Rgb.is(value)));
807
- }
808
- Color.is = is;
809
- function from(value) {
810
- return is(value) ? value : undefined;
811
- }
812
- Color.from = from;
813
- Color.Names = Names;
814
- Color.Name = Name;
815
- Color.CommaRgb = CommaRgb;
816
- Color.Rgb = Rgb;
817
- Color.Hex = Hex;
818
- Color.Hsl = Hsl;
819
- })(Color || (Color = {}));
820
-
821
- function reduce(types, value) {
822
- return types.reduce((r, c) => typeof value == "object" && value != null && typeof value[c] == "string"
823
- ? Object.assign(Object.assign({}, r), { [c]: value[c] }) : r, {});
824
- }
825
- exports.Cosmetic = void 0;
826
- (function (Cosmetic) {
827
- Cosmetic.types = Cosmetic;
828
- function from(value) {
829
- let result = {};
830
- if (typeof value == "object" && value) {
831
- result = {
832
- text: reduce(["background", "color"], value.text),
833
- border: reduce(["background", "color", "style", "radius", "width"], value.border),
834
- gap: typeof value.gap == "string" ? value.gap : undefined,
835
- dangerColor: typeof value.dangerColor == "string"
836
- ? value.dangerColor
837
- : typeof value.danger_color == "string"
838
- ? value.danger_color
839
- : undefined,
840
- fontFamily: typeof value.fontFamily == "string"
841
- ? value.fontFamily
842
- : typeof value.font_family == "string"
843
- ? value.font_family
844
- : undefined,
845
- background: typeof value.background == "string" ? value.background : undefined,
846
- };
847
- Object.keys(result).forEach((key) => {
848
- var _a;
849
- if (result[key] == undefined ||
850
- (typeof result[key] == "object" && result[key] && Object.keys((_a = result[key]) !== null && _a !== void 0 ? _a : {}).length == 0)) {
851
- delete result[key];
852
- }
853
- });
854
- }
855
- return result;
856
- }
857
- Cosmetic.from = from;
858
- Cosmetic.Color = Color;
859
- })(exports.Cosmetic || (exports.Cosmetic = {}));
860
-
861
- exports.App = App;
862
- exports.Notice = Notice;
863
- exports.redirect = redirect;
864
-
865
- //# sourceMappingURL=index-b282ee83.js.map