godown 2.6.2 → 2.7.1

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 (461) hide show
  1. package/{deps.d.ts → .deps.d.ts} +1 -1
  2. package/.deps.d.ts.map +1 -0
  3. package/{deps.js → .deps.js} +1 -1
  4. package/.deps.js.map +1 -0
  5. package/README.md +166 -43
  6. package/a.d.ts +2 -0
  7. package/a.d.ts.map +1 -0
  8. package/a.js +2 -0
  9. package/a.js.map +1 -0
  10. package/alert.d.ts +2 -0
  11. package/alert.d.ts.map +1 -0
  12. package/alert.js +2 -0
  13. package/alert.js.map +1 -0
  14. package/avatar-group.js.map +1 -1
  15. package/avatar.d.ts +2 -0
  16. package/avatar.d.ts.map +1 -0
  17. package/avatar.js +2 -0
  18. package/avatar.js.map +1 -0
  19. package/button.d.ts +2 -0
  20. package/button.d.ts.map +1 -0
  21. package/button.js +2 -0
  22. package/button.js.map +1 -0
  23. package/card.d.ts +2 -0
  24. package/card.d.ts.map +1 -0
  25. package/card.js +2 -0
  26. package/card.js.map +1 -0
  27. package/carousel.d.ts +2 -0
  28. package/carousel.d.ts.map +1 -0
  29. package/carousel.js +2 -0
  30. package/carousel.js.map +1 -0
  31. package/clip.d.ts +2 -0
  32. package/clip.d.ts.map +1 -0
  33. package/clip.js +2 -0
  34. package/clip.js.map +1 -0
  35. package/conf.d.ts +23 -3
  36. package/conf.d.ts.map +1 -1
  37. package/conf.js +19 -16
  38. package/conf.js.map +1 -1
  39. package/decorators/define.d.ts +7 -0
  40. package/decorators/define.d.ts.map +1 -0
  41. package/decorators/define.js +11 -0
  42. package/decorators/define.js.map +1 -0
  43. package/details-group.js.map +1 -1
  44. package/details.d.ts +2 -0
  45. package/details.d.ts.map +1 -0
  46. package/details.js +2 -0
  47. package/details.js.map +1 -0
  48. package/dialog.d.ts +2 -0
  49. package/dialog.d.ts.map +1 -0
  50. package/dialog.js +2 -0
  51. package/dialog.js.map +1 -0
  52. package/divider.d.ts +2 -0
  53. package/divider.d.ts.map +1 -0
  54. package/divider.js +2 -0
  55. package/divider.js.map +1 -0
  56. package/dragbox.d.ts +2 -0
  57. package/dragbox.d.ts.map +1 -0
  58. package/dragbox.js +2 -0
  59. package/dragbox.js.map +1 -0
  60. package/flex-flow.js.map +1 -1
  61. package/form.d.ts +2 -0
  62. package/form.d.ts.map +1 -0
  63. package/form.js +2 -0
  64. package/form.js.map +1 -0
  65. package/godown-element.d.ts +1 -1
  66. package/godown-element.d.ts.map +1 -1
  67. package/godown-element.js +12 -4
  68. package/godown-element.js.map +1 -1
  69. package/input.d.ts +2 -0
  70. package/input.d.ts.map +1 -0
  71. package/input.js +2 -0
  72. package/input.js.map +1 -0
  73. package/label-input.js.map +1 -1
  74. package/lib/event-collection.d.ts +1 -1
  75. package/lib/event-collection.d.ts.map +1 -1
  76. package/lib/templates.d.ts +2 -0
  77. package/lib/templates.d.ts.map +1 -1
  78. package/lib/templates.js +4 -0
  79. package/lib/templates.js.map +1 -1
  80. package/lib/utils.d.ts +0 -1
  81. package/lib/utils.d.ts.map +1 -1
  82. package/lib/utils.js +0 -7
  83. package/lib/utils.js.map +1 -1
  84. package/naming.d.ts +91 -0
  85. package/naming.d.ts.map +1 -0
  86. package/naming.js +67 -0
  87. package/naming.js.map +1 -0
  88. package/nav-layout.js.map +1 -1
  89. package/open-offset.d.ts +1 -1
  90. package/open-offset.d.ts.map +1 -1
  91. package/open-offset.js +1 -1
  92. package/open-offset.js.map +1 -1
  93. package/overbreath.d.ts +2 -0
  94. package/overbreath.d.ts.map +1 -0
  95. package/overbreath.js +2 -0
  96. package/overbreath.js.map +1 -0
  97. package/package.json +29 -33
  98. package/progress.d.ts +2 -0
  99. package/progress.d.ts.map +1 -0
  100. package/progress.js +2 -0
  101. package/progress.js.map +1 -0
  102. package/react/index.d.ts +24 -25
  103. package/react/index.d.ts.map +1 -1
  104. package/react/index.js +52 -56
  105. package/react/index.js.map +1 -1
  106. package/router-a.d.ts +2 -0
  107. package/router-a.d.ts.map +1 -0
  108. package/router-a.js +2 -0
  109. package/router-a.js.map +1 -0
  110. package/router.d.ts +2 -0
  111. package/router.d.ts.map +1 -0
  112. package/router.js +2 -0
  113. package/router.js.map +1 -0
  114. package/search-input.js.map +1 -1
  115. package/select-input.js.map +1 -1
  116. package/skeleton.d.ts +2 -0
  117. package/skeleton.d.ts.map +1 -0
  118. package/skeleton.js +2 -0
  119. package/skeleton.js.map +1 -0
  120. package/split-input.js.map +1 -1
  121. package/supers/anchor.d.ts +26 -0
  122. package/supers/anchor.d.ts.map +1 -0
  123. package/{web-components/a/super-a.js → supers/anchor.js} +27 -22
  124. package/supers/anchor.js.map +1 -0
  125. package/supers/input.d.ts +28 -0
  126. package/supers/input.d.ts.map +1 -0
  127. package/supers/input.js +117 -0
  128. package/supers/input.js.map +1 -0
  129. package/{web-components/open/open.d.ts → supers/openable.d.ts} +6 -6
  130. package/supers/openable.d.ts.map +1 -0
  131. package/{web-components/open/open.js → supers/openable.js} +11 -11
  132. package/supers/openable.js.map +1 -0
  133. package/supers/root.d.ts +18 -0
  134. package/supers/root.d.ts.map +1 -0
  135. package/{root.js → supers/root.js} +3 -11
  136. package/supers/root.js.map +1 -0
  137. package/switch-input.js.map +1 -1
  138. package/tabs.d.ts +2 -0
  139. package/tabs.d.ts.map +1 -0
  140. package/tabs.js +2 -0
  141. package/tabs.js.map +1 -0
  142. package/time.d.ts +2 -0
  143. package/time.d.ts.map +1 -0
  144. package/time.js +2 -0
  145. package/time.js.map +1 -0
  146. package/tooltip.d.ts +2 -0
  147. package/tooltip.d.ts.map +1 -0
  148. package/tooltip.js +2 -0
  149. package/tooltip.js.map +1 -0
  150. package/typewriter.d.ts +2 -0
  151. package/typewriter.d.ts.map +1 -0
  152. package/typewriter.js +2 -0
  153. package/typewriter.js.map +1 -0
  154. package/web-components/a/a.d.ts +16 -0
  155. package/web-components/a/a.d.ts.map +1 -0
  156. package/web-components/a/a.js +17 -0
  157. package/web-components/a/a.js.map +1 -0
  158. package/web-components/{items/alert-item.d.ts → alert/alert.d.ts} +8 -7
  159. package/web-components/alert/alert.d.ts.map +1 -0
  160. package/web-components/{items/alert-item.js → alert/alert.js} +18 -17
  161. package/web-components/alert/alert.js.map +1 -0
  162. package/web-components/{a/avatar-a.d.ts → avatar/avatar.d.ts} +9 -8
  163. package/web-components/avatar/avatar.d.ts.map +1 -0
  164. package/web-components/{a/avatar-a.js → avatar/avatar.js} +20 -19
  165. package/web-components/avatar/avatar.js.map +1 -0
  166. package/web-components/button/{base-button.d.ts → button.d.ts} +7 -10
  167. package/web-components/button/button.d.ts.map +1 -0
  168. package/web-components/button/{base-button.js → button.js} +22 -46
  169. package/web-components/button/button.js.map +1 -0
  170. package/web-components/{items/card-item.d.ts → card/card.d.ts} +8 -7
  171. package/web-components/card/card.d.ts.map +1 -0
  172. package/web-components/{items/card-item.js → card/card.js} +15 -14
  173. package/web-components/card/card.js.map +1 -0
  174. package/web-components/carousel/{carousel-slider.d.ts → carousel.d.ts} +8 -6
  175. package/web-components/carousel/carousel.d.ts.map +1 -0
  176. package/web-components/carousel/{carousel-slider.js → carousel.js} +16 -16
  177. package/web-components/carousel/carousel.js.map +1 -0
  178. package/web-components/{open/open-details.d.ts → details/details.d.ts} +8 -7
  179. package/web-components/details/details.d.ts.map +1 -0
  180. package/web-components/{open/open-details.js → details/details.js} +17 -16
  181. package/web-components/details/details.js.map +1 -0
  182. package/web-components/{open/open-dialog.d.ts → dialog/dialog.d.ts} +9 -7
  183. package/web-components/dialog/dialog.d.ts.map +1 -0
  184. package/web-components/{open/open-dialog.js → dialog/dialog.js} +19 -18
  185. package/web-components/dialog/dialog.js.map +1 -0
  186. package/web-components/form/{base-form.d.ts → form.d.ts} +8 -7
  187. package/web-components/form/form.d.ts.map +1 -0
  188. package/web-components/form/{base-form.js → form.js} +16 -15
  189. package/web-components/form/form.js.map +1 -0
  190. package/web-components/group/avatar-group.d.ts +6 -5
  191. package/web-components/group/avatar-group.d.ts.map +1 -1
  192. package/web-components/group/avatar-group.js +8 -7
  193. package/web-components/group/avatar-group.js.map +1 -1
  194. package/web-components/group/details-group.d.ts +3 -2
  195. package/web-components/group/details-group.d.ts.map +1 -1
  196. package/web-components/group/details-group.js +4 -3
  197. package/web-components/group/details-group.js.map +1 -1
  198. package/web-components/index.d.ts +24 -25
  199. package/web-components/index.d.ts.map +1 -1
  200. package/web-components/index.js +24 -26
  201. package/web-components/index.js.map +1 -1
  202. package/web-components/input/input.d.ts +44 -22
  203. package/web-components/input/input.d.ts.map +1 -1
  204. package/web-components/input/input.js +210 -80
  205. package/web-components/input/input.js.map +1 -1
  206. package/web-components/input/label-input.d.ts +5 -4
  207. package/web-components/input/label-input.d.ts.map +1 -1
  208. package/web-components/input/label-input.js +7 -6
  209. package/web-components/input/label-input.js.map +1 -1
  210. package/web-components/input/search-input.d.ts +5 -4
  211. package/web-components/input/search-input.d.ts.map +1 -1
  212. package/web-components/input/search-input.js +7 -6
  213. package/web-components/input/search-input.js.map +1 -1
  214. package/web-components/input/select-input.d.ts +5 -4
  215. package/web-components/input/select-input.d.ts.map +1 -1
  216. package/web-components/input/select-input.js +7 -6
  217. package/web-components/input/select-input.js.map +1 -1
  218. package/web-components/input/split-input.d.ts +5 -4
  219. package/web-components/input/split-input.d.ts.map +1 -1
  220. package/web-components/input/split-input.js +7 -6
  221. package/web-components/input/split-input.js.map +1 -1
  222. package/web-components/input/switch-input.d.ts +5 -4
  223. package/web-components/input/switch-input.d.ts.map +1 -1
  224. package/web-components/input/switch-input.js +7 -6
  225. package/web-components/input/switch-input.js.map +1 -1
  226. package/web-components/layout/divider.d.ts +22 -0
  227. package/web-components/layout/divider.d.ts.map +1 -0
  228. package/web-components/layout/{divider-line.js → divider.js} +13 -12
  229. package/web-components/layout/divider.js.map +1 -0
  230. package/web-components/layout/flex-flow.d.ts +3 -2
  231. package/web-components/layout/flex-flow.d.ts.map +1 -1
  232. package/web-components/layout/flex-flow.js +4 -3
  233. package/web-components/layout/flex-flow.js.map +1 -1
  234. package/web-components/layout/nav-layout.d.ts +4 -3
  235. package/web-components/layout/nav-layout.d.ts.map +1 -1
  236. package/web-components/layout/nav-layout.js +4 -3
  237. package/web-components/layout/nav-layout.js.map +1 -1
  238. package/web-components/{open → offset}/open-offset.d.ts +5 -4
  239. package/web-components/offset/open-offset.d.ts.map +1 -0
  240. package/web-components/{open → offset}/open-offset.js +5 -5
  241. package/web-components/offset/open-offset.js.map +1 -0
  242. package/web-components/{loading/loading-progress.d.ts → progress/progress.d.ts} +9 -7
  243. package/web-components/progress/progress.d.ts.map +1 -0
  244. package/web-components/{loading/loading-progress.js → progress/progress.js} +15 -14
  245. package/web-components/progress/progress.js.map +1 -0
  246. package/web-components/router/router-a.d.ts +25 -0
  247. package/web-components/router/router-a.d.ts.map +1 -0
  248. package/web-components/router/router-a.js +70 -0
  249. package/web-components/router/router-a.js.map +1 -0
  250. package/web-components/{view/route-view.d.ts → router/router.d.ts} +10 -9
  251. package/web-components/router/router.d.ts.map +1 -0
  252. package/web-components/{view/route-view.js → router/router.js} +21 -21
  253. package/web-components/router/router.js.map +1 -0
  254. package/web-components/{loading/skeleton-screen.d.ts → skeleton/skeleton.d.ts} +8 -7
  255. package/web-components/skeleton/skeleton.d.ts.map +1 -0
  256. package/web-components/{loading/skeleton-screen.js → skeleton/skeleton.js} +15 -14
  257. package/web-components/skeleton/skeleton.js.map +1 -0
  258. package/web-components/{group/tab-group.d.ts → tabs/tabs.d.ts} +9 -8
  259. package/web-components/tabs/tabs.d.ts.map +1 -0
  260. package/web-components/{group/tab-group.js → tabs/tabs.js} +17 -16
  261. package/web-components/tabs/tabs.js.map +1 -0
  262. package/web-components/text/clip.d.ts +22 -0
  263. package/web-components/text/clip.d.ts.map +1 -0
  264. package/web-components/text/{clip-text.js → clip.js} +13 -12
  265. package/web-components/text/clip.js.map +1 -0
  266. package/web-components/text/{overbreath-text.d.ts → overbreath.d.ts} +8 -7
  267. package/web-components/text/overbreath.d.ts.map +1 -0
  268. package/web-components/text/{overbreath-text.js → overbreath.js} +15 -14
  269. package/web-components/text/overbreath.js.map +1 -0
  270. package/web-components/text/time.d.ts +60 -0
  271. package/web-components/text/time.d.ts.map +1 -0
  272. package/web-components/{items/time-bar.js → text/time.js} +53 -36
  273. package/web-components/text/time.js.map +1 -0
  274. package/web-components/text/{typewriter-text.d.ts → typewriter.d.ts} +10 -9
  275. package/web-components/text/typewriter.d.ts.map +1 -0
  276. package/web-components/text/{typewriter-text.js → typewriter.js} +23 -22
  277. package/web-components/text/typewriter.js.map +1 -0
  278. package/web-components/tooltip/tooltip.d.ts +26 -0
  279. package/web-components/tooltip/tooltip.d.ts.map +1 -0
  280. package/web-components/{open/open-tooltip.js → tooltip/tooltip.js} +15 -14
  281. package/web-components/tooltip/tooltip.js.map +1 -0
  282. package/web-components/{items/drag-box.d.ts → wrapper/dragbox.d.ts} +7 -6
  283. package/web-components/wrapper/dragbox.d.ts.map +1 -0
  284. package/web-components/{items/drag-box.js → wrapper/dragbox.js} +14 -13
  285. package/web-components/wrapper/dragbox.js.map +1 -0
  286. package/web-components/{view/wrap-view.d.ts → wrapper/wrapper.d.ts} +7 -5
  287. package/web-components/wrapper/wrapper.d.ts.map +1 -0
  288. package/web-components/{view/wrap-view.js → wrapper/wrapper.js} +13 -12
  289. package/web-components/wrapper/wrapper.js.map +1 -0
  290. package/wrapper.d.ts +2 -0
  291. package/wrapper.d.ts.map +1 -0
  292. package/wrapper.js +2 -0
  293. package/wrapper.js.map +1 -0
  294. package/alert-item.d.ts +0 -2
  295. package/alert-item.d.ts.map +0 -1
  296. package/alert-item.js +0 -2
  297. package/alert-item.js.map +0 -1
  298. package/avatar-a.d.ts +0 -2
  299. package/avatar-a.d.ts.map +0 -1
  300. package/avatar-a.js +0 -2
  301. package/avatar-a.js.map +0 -1
  302. package/base-button.d.ts +0 -2
  303. package/base-button.d.ts.map +0 -1
  304. package/base-button.js +0 -2
  305. package/base-button.js.map +0 -1
  306. package/base-form.d.ts +0 -2
  307. package/base-form.d.ts.map +0 -1
  308. package/base-form.js +0 -2
  309. package/base-form.js.map +0 -1
  310. package/base-input.d.ts +0 -2
  311. package/base-input.d.ts.map +0 -1
  312. package/base-input.js +0 -2
  313. package/base-input.js.map +0 -1
  314. package/card-item.d.ts +0 -2
  315. package/card-item.d.ts.map +0 -1
  316. package/card-item.js +0 -2
  317. package/card-item.js.map +0 -1
  318. package/carousel-slider.d.ts +0 -2
  319. package/carousel-slider.d.ts.map +0 -1
  320. package/carousel-slider.js +0 -2
  321. package/carousel-slider.js.map +0 -1
  322. package/clip-text.d.ts +0 -2
  323. package/clip-text.d.ts.map +0 -1
  324. package/clip-text.js +0 -2
  325. package/clip-text.js.map +0 -1
  326. package/deps.d.ts.map +0 -1
  327. package/deps.js.map +0 -1
  328. package/divider-line.d.ts +0 -2
  329. package/divider-line.d.ts.map +0 -1
  330. package/divider-line.js +0 -2
  331. package/divider-line.js.map +0 -1
  332. package/drag-box.d.ts +0 -2
  333. package/drag-box.d.ts.map +0 -1
  334. package/drag-box.js +0 -2
  335. package/drag-box.js.map +0 -1
  336. package/link-a.d.ts +0 -2
  337. package/link-a.d.ts.map +0 -1
  338. package/link-a.js +0 -2
  339. package/link-a.js.map +0 -1
  340. package/loading-progress.d.ts +0 -2
  341. package/loading-progress.d.ts.map +0 -1
  342. package/loading-progress.js +0 -2
  343. package/loading-progress.js.map +0 -1
  344. package/open-details.d.ts +0 -2
  345. package/open-details.d.ts.map +0 -1
  346. package/open-details.js +0 -2
  347. package/open-details.js.map +0 -1
  348. package/open-dialog.d.ts +0 -2
  349. package/open-dialog.d.ts.map +0 -1
  350. package/open-dialog.js +0 -2
  351. package/open-dialog.js.map +0 -1
  352. package/open-tooltip.d.ts +0 -2
  353. package/open-tooltip.d.ts.map +0 -1
  354. package/open-tooltip.js +0 -2
  355. package/open-tooltip.js.map +0 -1
  356. package/overbreath-text.d.ts +0 -2
  357. package/overbreath-text.d.ts.map +0 -1
  358. package/overbreath-text.js +0 -2
  359. package/overbreath-text.js.map +0 -1
  360. package/root.d.ts +0 -23
  361. package/root.d.ts.map +0 -1
  362. package/root.js.map +0 -1
  363. package/route-view.d.ts +0 -2
  364. package/route-view.d.ts.map +0 -1
  365. package/route-view.js +0 -2
  366. package/route-view.js.map +0 -1
  367. package/sign-form.d.ts +0 -2
  368. package/sign-form.d.ts.map +0 -1
  369. package/sign-form.js +0 -2
  370. package/sign-form.js.map +0 -1
  371. package/skeleton-screen.d.ts +0 -2
  372. package/skeleton-screen.d.ts.map +0 -1
  373. package/skeleton-screen.js +0 -2
  374. package/skeleton-screen.js.map +0 -1
  375. package/super-a.d.ts +0 -2
  376. package/super-a.d.ts.map +0 -1
  377. package/super-a.js +0 -2
  378. package/super-a.js.map +0 -1
  379. package/tab-group.d.ts +0 -2
  380. package/tab-group.d.ts.map +0 -1
  381. package/tab-group.js +0 -2
  382. package/tab-group.js.map +0 -1
  383. package/time-bar.d.ts +0 -2
  384. package/time-bar.d.ts.map +0 -1
  385. package/time-bar.js +0 -2
  386. package/time-bar.js.map +0 -1
  387. package/typewriter-text.d.ts +0 -2
  388. package/typewriter-text.d.ts.map +0 -1
  389. package/typewriter-text.js +0 -2
  390. package/typewriter-text.js.map +0 -1
  391. package/web-components/a/avatar-a.d.ts.map +0 -1
  392. package/web-components/a/avatar-a.js.map +0 -1
  393. package/web-components/a/link-a.d.ts +0 -33
  394. package/web-components/a/link-a.d.ts.map +0 -1
  395. package/web-components/a/link-a.js +0 -81
  396. package/web-components/a/link-a.js.map +0 -1
  397. package/web-components/a/super-a.d.ts +0 -31
  398. package/web-components/a/super-a.d.ts.map +0 -1
  399. package/web-components/a/super-a.js.map +0 -1
  400. package/web-components/button/base-button.d.ts.map +0 -1
  401. package/web-components/button/base-button.js.map +0 -1
  402. package/web-components/carousel/carousel-slider.d.ts.map +0 -1
  403. package/web-components/carousel/carousel-slider.js.map +0 -1
  404. package/web-components/form/base-form.d.ts.map +0 -1
  405. package/web-components/form/base-form.js.map +0 -1
  406. package/web-components/form/sign-form.d.ts +0 -19
  407. package/web-components/form/sign-form.d.ts.map +0 -1
  408. package/web-components/form/sign-form.js +0 -16
  409. package/web-components/form/sign-form.js.map +0 -1
  410. package/web-components/group/tab-group.d.ts.map +0 -1
  411. package/web-components/group/tab-group.js.map +0 -1
  412. package/web-components/input/base-input.d.ts +0 -49
  413. package/web-components/input/base-input.d.ts.map +0 -1
  414. package/web-components/input/base-input.js +0 -246
  415. package/web-components/input/base-input.js.map +0 -1
  416. package/web-components/items/alert-item.d.ts.map +0 -1
  417. package/web-components/items/alert-item.js.map +0 -1
  418. package/web-components/items/card-item.d.ts.map +0 -1
  419. package/web-components/items/card-item.js.map +0 -1
  420. package/web-components/items/drag-box.d.ts.map +0 -1
  421. package/web-components/items/drag-box.js.map +0 -1
  422. package/web-components/items/index.d.ts +0 -5
  423. package/web-components/items/index.d.ts.map +0 -1
  424. package/web-components/items/index.js +0 -6
  425. package/web-components/items/index.js.map +0 -1
  426. package/web-components/items/time-bar.d.ts +0 -54
  427. package/web-components/items/time-bar.d.ts.map +0 -1
  428. package/web-components/items/time-bar.js.map +0 -1
  429. package/web-components/layout/divider-line.d.ts +0 -20
  430. package/web-components/layout/divider-line.d.ts.map +0 -1
  431. package/web-components/layout/divider-line.js.map +0 -1
  432. package/web-components/loading/loading-progress.d.ts.map +0 -1
  433. package/web-components/loading/loading-progress.js.map +0 -1
  434. package/web-components/loading/skeleton-screen.d.ts.map +0 -1
  435. package/web-components/loading/skeleton-screen.js.map +0 -1
  436. package/web-components/open/open-details.d.ts.map +0 -1
  437. package/web-components/open/open-details.js.map +0 -1
  438. package/web-components/open/open-dialog.d.ts.map +0 -1
  439. package/web-components/open/open-dialog.js.map +0 -1
  440. package/web-components/open/open-offset.d.ts.map +0 -1
  441. package/web-components/open/open-offset.js.map +0 -1
  442. package/web-components/open/open-tooltip.d.ts +0 -24
  443. package/web-components/open/open-tooltip.d.ts.map +0 -1
  444. package/web-components/open/open-tooltip.js.map +0 -1
  445. package/web-components/open/open.d.ts.map +0 -1
  446. package/web-components/open/open.js.map +0 -1
  447. package/web-components/text/clip-text.d.ts +0 -21
  448. package/web-components/text/clip-text.d.ts.map +0 -1
  449. package/web-components/text/clip-text.js.map +0 -1
  450. package/web-components/text/overbreath-text.d.ts.map +0 -1
  451. package/web-components/text/overbreath-text.js.map +0 -1
  452. package/web-components/text/typewriter-text.d.ts.map +0 -1
  453. package/web-components/text/typewriter-text.js.map +0 -1
  454. package/web-components/view/route-view.d.ts.map +0 -1
  455. package/web-components/view/route-view.js.map +0 -1
  456. package/web-components/view/wrap-view.d.ts.map +0 -1
  457. package/web-components/view/wrap-view.js.map +0 -1
  458. package/wrap-view.d.ts +0 -2
  459. package/wrap-view.d.ts.map +0 -1
  460. package/wrap-view.js +0 -2
  461. package/wrap-view.js.map +0 -1
@@ -0,0 +1,28 @@
1
+ import { type CSSResultGroup } from "../.deps.js";
2
+ import { GodownElement } from "./root.js";
3
+ export type InputType = "hidden" | "text" | "search" | "tel" | "url" | "email" | "password" | "datetime" | "date" | "month" | "week" | "time" | "datetime-local" | "number" | "range" | "color" | "checkbox" | "radio" | "file" | "image";
4
+ export declare class GodownInput extends GodownElement {
5
+ type: InputType;
6
+ name: string;
7
+ value: string | any;
8
+ label: string;
9
+ def: string;
10
+ pla?: string;
11
+ autofocus: boolean;
12
+ _input: HTMLInputElement;
13
+ compositing: boolean;
14
+ static styles: CSSResultGroup;
15
+ namevalue(): [string, any];
16
+ nameValue: () => [string, any];
17
+ reset(): void;
18
+ protected _handleInput(e: any): void;
19
+ protected _handleChange(): void;
20
+ connectedCallback(): void;
21
+ protected _initName(): void;
22
+ protected _compositionCheck(): void;
23
+ protected _changeInputType(t: InputType): void;
24
+ focus(options?: FocusOptions): void;
25
+ protected firstUpdated(): void;
26
+ protected targetValue(e: Event): string | any;
27
+ }
28
+ //# sourceMappingURL=input.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"input.d.ts","sourceRoot":"https://github.com/startracex/godown/t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3
+ import { cssvarValues, GodownElement } from "./root.js";
4
+ export class GodownInput extends GodownElement {
5
+ constructor() {
6
+ super(...arguments);
7
+ this.type = "text";
8
+ this.name = undefined;
9
+ this.value = undefined;
10
+ this.label = "";
11
+ this.def = "";
12
+ this.pla = undefined;
13
+ this.autofocus = false;
14
+ this.nameValue = () => this.namevalue();
15
+ }
16
+ namevalue() {
17
+ return [this.name, this.value];
18
+ }
19
+ reset() {
20
+ this.value = this.def;
21
+ this._input.value = this.def;
22
+ }
23
+ _handleInput(e) {
24
+ e.stopPropagation();
25
+ this.value = e.target.value?.trim();
26
+ if (this.compositing) {
27
+ return;
28
+ }
29
+ this.dispatchEvent(new CustomEvent("input", { detail: this.value, bubbles: true, composed: true }));
30
+ this.dispatchEvent(new CustomEvent("change", { detail: this.value, composed: true }));
31
+ }
32
+ _handleChange() {
33
+ this.dispatchEvent(new CustomEvent("change", { detail: this.value, composed: true }));
34
+ }
35
+ connectedCallback() {
36
+ super.connectedCallback();
37
+ if (!this.def) {
38
+ this.def = this.value || "";
39
+ }
40
+ if (!this.value) {
41
+ this.value = this.def;
42
+ }
43
+ this._initName();
44
+ }
45
+ _initName() {
46
+ if (!this.name) {
47
+ if (this.label || this.type) {
48
+ this.name = this.label || this.type;
49
+ }
50
+ }
51
+ }
52
+ _compositionCheck() {
53
+ if (this._input) {
54
+ this.addEvent(this._input, "compositionstart", () => {
55
+ this.compositing = true;
56
+ });
57
+ this.addEvent(this._input, "compositionend", (e) => {
58
+ this.compositing = false;
59
+ this._handleInput(e);
60
+ });
61
+ }
62
+ }
63
+ _changeInputType(t) {
64
+ this._input.type = t;
65
+ }
66
+ focus(options) {
67
+ this._input?.focus(options);
68
+ }
69
+ firstUpdated() {
70
+ this._compositionCheck();
71
+ this.reset();
72
+ }
73
+ targetValue(e) {
74
+ const target = e.target;
75
+ if (target.value.trim) {
76
+ return target.value.trim();
77
+ }
78
+ return target.value;
79
+ }
80
+ }
81
+ GodownInput.styles = [
82
+ GodownElement.styles,
83
+ css `
84
+ :host {
85
+ display: flex;
86
+ }
87
+ ::-ms-reveal {
88
+ display: none;
89
+ }
90
+ ::-webkit-calendar-picker-indicator {
91
+ background-color: var(${cssvarValues.input}-true);
92
+ border-radius: 0.1rem;
93
+ }
94
+ `,
95
+ ];
96
+ __decorate([
97
+ property({ reflect: true })
98
+ ], GodownInput.prototype, "type", void 0);
99
+ __decorate([
100
+ property()
101
+ ], GodownInput.prototype, "name", void 0);
102
+ __decorate([
103
+ property()
104
+ ], GodownInput.prototype, "value", void 0);
105
+ __decorate([
106
+ property({ reflect: true })
107
+ ], GodownInput.prototype, "label", void 0);
108
+ __decorate([
109
+ property()
110
+ ], GodownInput.prototype, "def", void 0);
111
+ __decorate([
112
+ property({ reflect: true })
113
+ ], GodownInput.prototype, "pla", void 0);
114
+ __decorate([
115
+ property({ type: Boolean, reflect: true })
116
+ ], GodownInput.prototype, "autofocus", void 0);
117
+ //# sourceMappingURL=input.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"input.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["supers/input.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAuB,QAAQ,EAAE,MAAM,aAAa,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAIxD,MAAM,OAAO,WAAY,SAAQ,aAAa;IAA9C;;QAC+B,SAAI,GAAc,MAAM,CAAC;QAC1C,SAAI,GAAW,SAAS,CAAC;QACzB,UAAK,GAAiB,SAAS,CAAC;QACf,UAAK,GAAG,EAAE,CAAC;QAC5B,QAAG,GAAG,EAAE,CAAC;QACQ,QAAG,GAAY,SAAS,CAAC;QACV,cAAS,GAAG,KAAK,CAAC;QAyB9D,cAAS,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC;IAwErC,CAAC;IA5EC,SAAS;QACP,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK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IACpB,GAAG,CAAA;;;;;;;;gCAQyB,YAAY,CAAC,KAAK;;;KAG7C;CACgB,AAdN,CAcO;AAzBS;IAA5B,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;yCAA0B;AAC1C;IAAX,QAAQ,EAAE;yCAA0B;AACzB;IAAX,QAAQ,EAAE;0CAAiC;AACf;IAA5B,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;0CAAY;AAC5B;IAAX,QAAQ,EAAE;wCAAU;AACQ;IAA5B,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;wCAA0B;AACV;IAA3C,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;8CAAmB","sourcesContent":["import { css, type CSSResultGroup, property } from \"../.deps.js\";\nimport { cssvarValues, GodownElement } from \"./root.js\";\n\nexport type InputType = \"hidden\" | \"text\" | \"search\" | \"tel\" | \"url\" | \"email\" | \"password\" | \"datetime\" | \"date\" | \"month\" | \"week\" | \"time\" | \"datetime-local\" | \"number\" | \"range\" | \"color\" | \"checkbox\" | \"radio\" | \"file\" | \"image\";\n\nexport class GodownInput extends GodownElement {\n @property({ reflect: true }) type: InputType = \"text\";\n @property() name: string = undefined;\n @property() value: string | any = undefined;\n @property({ reflect: true }) label = \"\";\n @property() def = \"\";\n @property({ reflect: true }) pla?: string = undefined;\n @property({ type: Boolean, reflect: true }) autofocus = false;\n\n _input: HTMLInputElement;\n compositing: boolean;\n\n static styles = [\n GodownElement.styles,\n css`\n :host {\n display: flex;\n }\n ::-ms-reveal {\n display: none;\n }\n ::-webkit-calendar-picker-indicator {\n background-color: var(${cssvarValues.input}-true);\n border-radius: 0.1rem;\n }\n `,\n ] as CSSResultGroup;\n\n namevalue(): [string, any] {\n return [this.name, this.value];\n }\n\n nameValue = () => this.namevalue();\n\n reset() {\n this.value = this.def;\n this._input.value = this.def;\n }\n\n protected _handleInput(e: any) {\n e.stopPropagation();\n this.value = e.target.value?.trim();\n if (this.compositing) {\n return;\n }\n this.dispatchEvent(new CustomEvent(\"input\", { detail: this.value, bubbles: true, composed: true }));\n this.dispatchEvent(new CustomEvent(\"change\", { detail: this.value, composed: true }));\n }\n\n protected _handleChange() {\n this.dispatchEvent(new CustomEvent(\"change\", { detail: this.value, composed: true }));\n }\n\n connectedCallback() {\n super.connectedCallback();\n if (!this.def) {\n this.def = this.value || \"\";\n }\n if (!this.value) {\n this.value = this.def;\n }\n this._initName();\n }\n\n protected _initName() {\n if (!this.name) {\n if (this.label || this.type) {\n this.name = this.label || this.type;\n }\n }\n }\n\n protected _compositionCheck() {\n if (this._input) {\n this.addEvent(this._input, \"compositionstart\", () => {\n this.compositing = true;\n });\n this.addEvent(this._input, \"compositionend\", (e: MouseEvent) => {\n this.compositing = false;\n this._handleInput(e);\n });\n }\n }\n\n protected _changeInputType(t: InputType) {\n this._input.type = t;\n }\n\n focus(options?: FocusOptions) {\n this._input?.focus(options);\n }\n\n protected firstUpdated() {\n this._compositionCheck();\n this.reset();\n }\n\n protected targetValue(e: Event): string | any {\n const target = e.target as HTMLInputElement;\n if (target.value.trim) {\n return target.value.trim();\n }\n return target.value;\n }\n}\n"]}
@@ -1,12 +1,12 @@
1
- import { type CSSResultGroup, type PropertyValueMap } from "../../deps.js";
2
- import { type EventsNames } from "../../lib/event-collection.js";
3
- import { GodownElement } from "../../root.js";
1
+ import { type CSSResultGroup, type PropertyValueMap } from "../.deps.js";
2
+ import { type EventsNames } from "../lib/event-collection.js";
3
+ import { GodownElement } from "./root.js";
4
4
  export type Direction4 = "left" | "right" | "top" | "bottom";
5
5
  export type Direction5 = Direction4 | "center";
6
6
  export type Direction8 = Direction4 | "top-left" | "top-right" | "bottom-left" | "bottom-right";
7
7
  export type Direction9 = Direction8 | "center";
8
8
  export type OnEvents = EventsNames | "";
9
- export declare class OpenableElement extends GodownElement {
9
+ export declare class GodownOpenable extends GodownElement {
10
10
  /**
11
11
  * Summary text.
12
12
  */
@@ -34,5 +34,5 @@ export declare class OpenableElement extends GodownElement {
34
34
  protected updated(changedProperties: PropertyValueMap<this>): void;
35
35
  protected _handelClick(_: MouseEvent): void;
36
36
  }
37
- export default OpenableElement;
38
- //# sourceMappingURL=open.d.ts.map
37
+ export default GodownOpenable;
38
+ //# sourceMappingURL=openable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"openable.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["supers/openable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,cAAc,EAAY,KAAK,gBAAgB,EAAE,MAAM,aAAa,CAAC;AACxF,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE1C,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,CAAC;AAE7D,MAAM,MAAM,UAAU,GAAG,UAAU,GAAG,QAAQ,CAAC;AAE/C,MAAM,MAAM,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,WAAW,GAAG,aAAa,GAAG,cAAc,CAAC;AAEhG,MAAM,MAAM,UAAU,GAAG,UAAU,GAAG,QAAQ,CAAC;AAE/C,MAAM,MAAM,QAAQ,GAAG,WAAW,GAAG,EAAE,CAAC;AAExC,qBAAa,cAAe,SAAQ,aAAa;IAC/C;;OAEG;IACS,OAAO,SAAM;IACzB;;OAEG;IACyC,KAAK,UAAS;IAC1D;;OAEG;IACyC,IAAI,UAAS;IACzD;;OAEG;IACS,EAAE,EAAE,QAAQ,CAAM;IAC9B;;OAEG;IACS,SAAS,EAAE,UAAU,GAAG,EAAE,CAAM;IAE5C,MAAM,CAAC,MAAM,iBAYO;IAEpB,MAAM,CAAC,EAAE,UAAa;IAItB,KAAK;IAIL,IAAI;IAIJ,SAAS,CAAC,OAAO,CAAC,iBAAiB,EAAE,gBAAgB,CAAC,IAAI,CAAC;IAQ3D,SAAS,CAAC,YAAY,CAAC,CAAC,EAAE,UAAU;CAGrC;AAED,eAAe,cAAc,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { __decorate } from "tslib";
2
- import { css, property } from "../../deps.js";
3
- import { GodownElement } from "../../root.js";
4
- export class OpenableElement extends GodownElement {
2
+ import { css, property } from "../.deps.js";
3
+ import { GodownElement } from "./root.js";
4
+ export class GodownOpenable extends GodownElement {
5
5
  constructor() {
6
6
  super(...arguments);
7
7
  /**
@@ -45,7 +45,7 @@ export class OpenableElement extends GodownElement {
45
45
  this.toggle();
46
46
  }
47
47
  }
48
- OpenableElement.styles = [
48
+ GodownOpenable.styles = [
49
49
  GodownElement.styles,
50
50
  css `
51
51
  :host {
@@ -60,18 +60,18 @@ OpenableElement.styles = [
60
60
  ];
61
61
  __decorate([
62
62
  property()
63
- ], OpenableElement.prototype, "summary", void 0);
63
+ ], GodownOpenable.prototype, "summary", void 0);
64
64
  __decorate([
65
65
  property({ type: Boolean, reflect: true })
66
- ], OpenableElement.prototype, "float", void 0);
66
+ ], GodownOpenable.prototype, "float", void 0);
67
67
  __decorate([
68
68
  property({ type: Boolean, reflect: true })
69
- ], OpenableElement.prototype, "open", void 0);
69
+ ], GodownOpenable.prototype, "open", void 0);
70
70
  __decorate([
71
71
  property()
72
- ], OpenableElement.prototype, "on", void 0);
72
+ ], GodownOpenable.prototype, "on", void 0);
73
73
  __decorate([
74
74
  property()
75
- ], OpenableElement.prototype, "direction", void 0);
76
- export default OpenableElement;
77
- //# sourceMappingURL=open.js.map
75
+ ], GodownOpenable.prototype, "direction", void 0);
76
+ export default GodownOpenable;
77
+ //# sourceMappingURL=openable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"openable.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["supers/openable.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAuB,QAAQ,EAAyB,MAAM,aAAa,CAAC;AAExF,OAAO,EAAE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CAAC;4CAAc;AAI7C;IAAX,QAAQ,EAAE;0CAAmB;AAIlB;IAAX,QAAQ,EAAE;iDAAiC;AAyC9C,eAAe,cAAc,CAAC","sourcesContent":["import { css, type CSSResultGroup, property, type PropertyValueMap } from \"../.deps.js\";\nimport { type EventsNames } from \"../lib/event-collection.js\";\nimport { GodownElement } from \"./root.js\";\n\nexport type Direction4 = \"left\" | \"right\" | \"top\" | \"bottom\";\n\nexport type Direction5 = Direction4 | \"center\";\n\nexport type Direction8 = Direction4 | \"top-left\" | \"top-right\" | \"bottom-left\" | \"bottom-right\";\n\nexport type Direction9 = Direction8 | \"center\";\n\nexport type OnEvents = EventsNames | \"\";\n\nexport class GodownOpenable extends GodownElement {\n /**\n * Summary text.\n */\n @property() summary = \"\";\n /**\n * Make the content float.\n */\n @property({ type: Boolean, reflect: true }) float = false;\n /**\n * Open the content.\n */\n @property({ type: Boolean, reflect: true }) open = false;\n /**\n * Enable event mode.\n */\n @property() on: OnEvents = \"\";\n /**\n * Direction of appearance.\n */\n @property() direction: Direction9 | \"\" = \"\";\n\n static styles = [\n GodownElement.styles,\n css`\n :host {\n display: block;\n transition:\n all 0.3s ease-in-out,\n color 0s,\n background 0s;\n height: fit-content;\n }\n `,\n ] as CSSResultGroup;\n\n toggle(to = !this.open) {\n this.open = to;\n }\n\n close() {\n this.open = false;\n }\n\n show() {\n this.open = true;\n }\n\n protected updated(changedProperties: PropertyValueMap<this>) {\n const open = changedProperties.get(\"open\");\n if (typeof open === typeof !0) {\n this.dispatchEvent(new CustomEvent(\"change\", { detail: this.open }));\n }\n }\n\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n protected _handelClick(_: MouseEvent) {\n this.toggle();\n }\n}\n\nexport default GodownOpenable;\n"]}
@@ -0,0 +1,18 @@
1
+ import { type CSSResult } from "lit";
2
+ import GodownElement from "../godown-element.js";
3
+ /**
4
+ * Custom CSS variable prefix, join with "--".
5
+ */
6
+ export declare const cssvar: CSSResult;
7
+ export declare function createScope(scope: string): CSSResult;
8
+ export declare const cssvarValues: {
9
+ cssvar: CSSResult;
10
+ input: CSSResult;
11
+ main: CSSResult;
12
+ text: CSSResult;
13
+ mainRGB: CSSResult;
14
+ textRGB: CSSResult;
15
+ };
16
+ export { GodownElement };
17
+ export default GodownElement;
18
+ //# sourceMappingURL=root.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"root.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["supers/root.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,SAAS,EAAkC,MAAM,KAAK,CAAC;AAG1E,OAAO,aAAa,MAAM,sBAAsB,CAAC;AAIjD;;GAEG;AACH,eAAO,MAAM,MAAM,WAAuE,CAAC;AAE3F,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,CAEpD;AAMD,eAAO,MAAM,YAAY;;;;;;;CAOxB,CAAC;AAuDF,OAAO,EAAE,aAAa,EAAE,CAAC;AACzB,eAAe,aAAa,CAAC"}
@@ -1,14 +1,6 @@
1
1
  import { css, unsafeCSS } from "lit";
2
- import { conf } from "./conf.js";
3
- import GodownElement from "./godown-element.js";
4
- /**
5
- * {@linkcode conf.define} a custom element.
6
- * @param name Name for the new custom element. Must be a valid custom element name.
7
- * @param options Object that controls how the element is defined.
8
- */
9
- export const define = (name, options) => (constructor) => {
10
- conf.define(name, constructor, options);
11
- };
2
+ import { conf } from "../conf.js";
3
+ import GodownElement from "../godown-element.js";
12
4
  const scopeString = "--";
13
5
  /**
14
6
  * Custom CSS variable prefix, join with "--".
@@ -79,6 +71,6 @@ GodownElement.styles = [
79
71
  }
80
72
  `,
81
73
  ];
82
- GodownElement.disableWarning?.("change-in-update");
83
74
  export { GodownElement };
75
+ export default GodownElement;
84
76
  //# sourceMappingURL=root.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"root.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["supers/root.ts"],"names":[],"mappings":"AAAA,O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YAAY,CAAC,IAAI;QACxD,YAAY,CAAC,KAAK;QAClB,YAAY,CAAC,KAAK;QAClB,YAAY,CAAC,KAAK,iBAAiB,YAAY,CAAC,IAAI;QACpD,YAAY,CAAC,KAAK,uBAAuB,YAAY,CAAC,KAAK;QAC3D,YAAY,CAAC,KAAK,wBAAwB,MAAM;QAChD,YAAY,CAAC,KAAK;QAClB,YAAY,CAAC,KAAK;QAClB,YAAY,CAAC,KAAK,kBAAkB,YAAY,CAAC,KAAK,yBAAyB,YAAY,CAAC,KAAK,wBAAwB,YAAY,CAAC,KAAK;QAC3I,YAAY,CAAC,KAAK;;GAEvB;IACD,GAAG,CAAA;;;;;;;;;;;;;;QAcG,MAAM;QACN,MAAM;mBACK,MAAM;wBACD,MAAM;;GAE3B;CACgB,CAAC;AAEpB,OAAO,EAAE,aAAa,EAAE,CAAC;AACzB,eAAe,aAAa,CAAC","sourcesContent":["import { css, type CSSResult, type CSSResultGroup, unsafeCSS } from \"lit\";\n\nimport { conf } from \"../conf.js\";\nimport GodownElement from \"../godown-element.js\";\n\nconst scopeString = \"--\";\n\n/**\n * Custom CSS variable prefix, join with \"--\".\n */\nexport const cssvar = unsafeCSS(scopeString + conf.cssvar.replace(/[^a-zA-Z0-9\\\\-]/g, \"\"));\n\nexport function createScope(scope: string): CSSResult {\n return joinScope(conf.tag(scope));\n}\n\nfunction joinScope(s: string) {\n return unsafeCSS(cssvar + scopeString + s);\n}\n\nexport const cssvarValues = {\n cssvar,\n input: joinScope(\"input\"),\n main: joinScope(\"background\"),\n text: joinScope(\"foreground\"),\n mainRGB: joinScope(\"background-rgb\"),\n textRGB: joinScope(\"foreground-rgb\"),\n};\n\nGodownElement.conf = conf;\n\nGodownElement.styles = [\n css`\n :host {\n ${cssvar}--background-rgb: 12 12 12;\n ${cssvar}--background: rgb(var(${cssvarValues.mainRGB}));\n ${cssvar}--foreground-rgb: 240 240 240;\n ${cssvar}--foreground: rgb(var(${cssvarValues.textRGB}));\n ${cssvar}--clip-background:linear-gradient(180deg, var(${cssvarValues.text}), rgb(var(${cssvarValues.textRGB}) / 68%));\n ${cssvar}--size: 100%;\n ${cssvar}--accept: rgb(25 130 180);\n font-size: var(${cssvar}--size);\n }\n `,\n css`\n :host {\n ${cssvarValues.input}--width: 10em;\n ${cssvarValues.input}--height: 1.6em;\n ${cssvarValues.input}--background: var(${cssvarValues.main});\n ${cssvarValues.input}--true: rgb(48 132 240);\n ${cssvarValues.input}--false: rgb(198 198 198);\n ${cssvarValues.input}--control:var(${cssvarValues.text});\n ${cssvarValues.input}--control-edge: var(${cssvarValues.input}--true);\n ${cssvarValues.input}--outline-color: var(${cssvar}--accept);\n ${cssvarValues.input}--outline-width: .15em;\n ${cssvarValues.input}--outline-style: solid;\n ${cssvarValues.input}--outline: var(${cssvarValues.input}--outline-width) var(${cssvarValues.input}--outline-style) var(${cssvarValues.input}--outline-color);\n ${cssvarValues.input}--radius: 0.2em;\n }\n `,\n css`\n * {\n font-size: 100%;\n font-style: normal;\n color: inherit;\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n border: 0;\n outline: 0;\n text-decoration: none;\n }\n\n ::selection {\n ${cssvar}--text-selection--color: inherit;\n ${cssvar}--text-selection--background: none;\n color: var(${cssvar}--text-selection--color);\n background: var(${cssvar}--text-selection--background);\n }\n `,\n] as CSSResultGroup;\n\nexport { GodownElement };\nexport default GodownElement;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"switch-input.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["switch-input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,wCAAwC,CAAC","sourcesContent":["export { default } from \"./web-components/input/switch-input.js\";"]}
1
+ {"version":3,"file":"switch-input.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["switch-input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,wCAAwC,CAAC","sourcesContent":["export { default } from \"./web-components/input/switch-input.js\";\n"]}
package/tabs.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export { default } from "./web-components/tabs/tabs.js";
2
+ //# sourceMappingURL=tabs.d.ts.map
package/tabs.d.ts.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tabs.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["tabs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC"}
package/tabs.js ADDED
@@ -0,0 +1,2 @@
1
+ export { default } from "./web-components/tabs/tabs.js";
2
+ //# sourceMappingURL=tabs.js.map
package/tabs.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tabs.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["tabs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC","sourcesContent":["export { default } from \"./web-components/tabs/tabs.js\";\n"]}
package/time.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export { default } from "./web-components/text/time.js";
2
+ //# sourceMappingURL=time.d.ts.map
package/time.d.ts.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"time.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["time.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC"}
package/time.js ADDED
@@ -0,0 +1,2 @@
1
+ export { default } from "./web-components/text/time.js";
2
+ //# sourceMappingURL=time.js.map
package/time.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"time.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["time.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC","sourcesContent":["export { default } from \"./web-components/text/time.js\";\n"]}
package/tooltip.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export { default } from "./web-components/tooltip/tooltip.js";
2
+ //# sourceMappingURL=tooltip.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tooltip.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["tooltip.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qCAAqC,CAAC"}
package/tooltip.js ADDED
@@ -0,0 +1,2 @@
1
+ export { default } from "./web-components/tooltip/tooltip.js";
2
+ //# sourceMappingURL=tooltip.js.map
package/tooltip.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tooltip.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["tooltip.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qCAAqC,CAAC","sourcesContent":["export { default } from \"./web-components/tooltip/tooltip.js\";\n"]}
@@ -0,0 +1,2 @@
1
+ export { default } from "./web-components/text/typewriter.js";
2
+ //# sourceMappingURL=typewriter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typewriter.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["typewriter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qCAAqC,CAAC"}
package/typewriter.js ADDED
@@ -0,0 +1,2 @@
1
+ export { default } from "./web-components/text/typewriter.js";
2
+ //# sourceMappingURL=typewriter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typewriter.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["typewriter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qCAAqC,CAAC","sourcesContent":["export { default } from \"./web-components/text/typewriter.js\";\n"]}
@@ -0,0 +1,16 @@
1
+ import GodownAnchor from "../../supers/anchor.js";
2
+ /**
3
+ * {@linkcode A} similar to a.
4
+ *
5
+ * Has an optional arrow.
6
+ */
7
+ export declare class A extends GodownAnchor {
8
+ }
9
+ export default A;
10
+ declare global {
11
+ interface HTMLElementTagNameMap {
12
+ "super-a": A;
13
+ "g-a": A;
14
+ }
15
+ }
16
+ //# sourceMappingURL=a.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"a.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/a/a.ts"],"names":[],"mappings":"AACA,OAAO,YAAY,MAAM,wBAAwB,CAAC;AAIlD;;;;GAIG;AACH,qBACa,CAAE,SAAQ,YAAY;CAAG;AAEtC,eAAe,CAAC,CAAC;AAEjB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,SAAS,EAAE,CAAC,CAAC;QACb,KAAK,EAAE,CAAC,CAAC;KACV;CACF"}
@@ -0,0 +1,17 @@
1
+ import { __decorate } from "tslib";
2
+ import { define } from "../../decorators/define.js";
3
+ import GodownAnchor from "../../supers/anchor.js";
4
+ const defineName = "a";
5
+ /**
6
+ * {@linkcode A} similar to a.
7
+ *
8
+ * Has an optional arrow.
9
+ */
10
+ let A = class A extends GodownAnchor {
11
+ };
12
+ A = __decorate([
13
+ define(defineName)
14
+ ], A);
15
+ export { A };
16
+ export default A;
17
+ //# sourceMappingURL=a.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"a.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/a/a.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,YAAY,MAAM,wBAAwB,CAAC;AAElD,MAAM,UAAU,GAAG,GAAG,CAAC;AAEvB;;;;GAIG;AAEI,IAAM,CAAC,GAAP,MAAM,CAAE,SAAQ,YAAY;CAAG,CAAA;AAAzB,CAAC;IADb,MAAM,CAAC,UAAU,CAAC;GACN,CAAC,CAAwB;;AAEtC,eAAe,CAAC,CAAC","sourcesContent":["import { define } from \"../../decorators/define.js\";\nimport GodownAnchor from \"../../supers/anchor.js\";\n\nconst defineName = \"a\";\n\n/**\n * {@linkcode A} similar to a.\n *\n * Has an optional arrow.\n */\n@define(defineName)\nexport class A extends GodownAnchor {}\n\nexport default A;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"super-a\": A;\n \"g-a\": A;\n }\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  import { type HTMLTemplate } from "../../lib/templates.js";
2
- import { GodownElement } from "../../root.js";
2
+ import { GodownElement } from "../../supers/root.js";
3
3
  declare const colors: {
4
4
  success: string[];
5
5
  info: string[];
@@ -8,11 +8,11 @@ declare const colors: {
8
8
  inherit: string[];
9
9
  };
10
10
  /**
11
- * AlertItem renders a alert.
11
+ * {@linkcode Alert} renders a alert.
12
12
  *
13
13
  * Inspired by Ant-design.
14
14
  */
15
- export declare class AlertItem extends GodownElement {
15
+ export declare class Alert extends GodownElement {
16
16
  /**
17
17
  * Type of performance.
18
18
  */
@@ -32,12 +32,13 @@ export declare class AlertItem extends GodownElement {
32
32
  static styles: import("lit").CSSResult[];
33
33
  protected render(): HTMLTemplate;
34
34
  close(): void;
35
- static alert(root: HTMLElement, option: Partial<AlertItem>): AlertItem;
35
+ static alert(root: HTMLElement, option: Partial<Alert>): Alert;
36
36
  }
37
- export default AlertItem;
37
+ export default Alert;
38
38
  declare global {
39
39
  interface HTMLElementTagNameMap {
40
- "alert-item": AlertItem;
40
+ "alert-item": Alert;
41
+ "g-alert": Alert;
41
42
  }
42
43
  }
43
- //# sourceMappingURL=alert-item.d.ts.map
44
+ //# sourceMappingURL=alert.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alert.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/alert/alert.ts"],"names":[],"mappings":"AAEA,OAAO,EAAY,KAAK,YAAY,EAAQ,MAAM,wBAAwB,CAAC;AAE3E,OAAO,EAAe,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAQlE,QAAA,MAAM,MAAM;;;;;;CAMX,CAAC;AAEF;;;;GAIG;AACH,qBACa,KAAM,SAAQ,aAAa;IACtC;;OAEG;IACS,IAAI,EAAE,MAAM,OAAO,MAAM,GAAG,MAAM,CAAU;IACxD;;OAEG;IACyB,SAAS,SAAQ;IAC7C;;OAEG;IACS,KAAK,SAAM;IACvB;;OAEG;IACS,OAAO,SAAM;IAEzB,MAAM,CAAC,MAAM,4BA0EX;IAEF,SAAS,CAAC,MAAM,IAAI,YAAY;IAahC,KAAK;IAOL,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,KAAK,CAAC,GAAG,KAAK;CAM/D;AAED,eAAe,KAAK,CAAC;AAErB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,YAAY,EAAE,KAAK,CAAC;QACpB,SAAS,EAAE,KAAK,CAAC;KAClB;CACF"}
@@ -1,10 +1,11 @@
1
- var AlertItem_1;
1
+ var Alert_1;
2
2
  import { __decorate } from "tslib";
3
- import { css, html, property, unsafeCSS } from "../../deps.js";
3
+ import { css, html, property, unsafeCSS } from "../../.deps.js";
4
+ import { define } from "../../decorators/define.js";
4
5
  import { htmlSlot, svgX } from "../../lib/templates.js";
5
6
  import { constructCSS } from "../../lib/utils.js";
6
- import { createScope, define, GodownElement } from "../../root.js";
7
- const defineName = "alert-item";
7
+ import { createScope, GodownElement } from "../../supers/root.js";
8
+ const defineName = "alert";
8
9
  const cssvarScope = createScope(defineName);
9
10
  const currentColor = "currentColor";
10
11
  const vars = ["color", "background", "border", "super"].map((v) => `${cssvarScope}--${v}`);
@@ -16,11 +17,11 @@ const colors = {
16
17
  inherit: [currentColor, "inherit", currentColor, currentColor],
17
18
  };
18
19
  /**
19
- * AlertItem renders a alert.
20
+ * {@linkcode Alert} renders a alert.
20
21
  *
21
22
  * Inspired by Ant-design.
22
23
  */
23
- let AlertItem = AlertItem_1 = class AlertItem extends GodownElement {
24
+ let Alert = Alert_1 = class Alert extends GodownElement {
24
25
  constructor() {
25
26
  super(...arguments);
26
27
  /**
@@ -59,13 +60,13 @@ let AlertItem = AlertItem_1 = class AlertItem extends GodownElement {
59
60
  }, 250);
60
61
  }
61
62
  static alert(root, option) {
62
- const ai = new AlertItem_1();
63
+ const ai = new Alert_1();
63
64
  Object.assign(ai, option);
64
65
  root.appendChild(ai);
65
66
  return ai;
66
67
  }
67
68
  };
68
- AlertItem.styles = [
69
+ Alert.styles = [
69
70
  unsafeCSS(constructCSS(vars, colors, (raw) => {
70
71
  return `.${raw}`;
71
72
  })),
@@ -140,19 +141,19 @@ AlertItem.styles = [
140
141
  ];
141
142
  __decorate([
142
143
  property()
143
- ], AlertItem.prototype, "call", void 0);
144
+ ], Alert.prototype, "call", void 0);
144
145
  __decorate([
145
146
  property({ type: Number })
146
- ], AlertItem.prototype, "autoclose", void 0);
147
+ ], Alert.prototype, "autoclose", void 0);
147
148
  __decorate([
148
149
  property()
149
- ], AlertItem.prototype, "title", void 0);
150
+ ], Alert.prototype, "title", void 0);
150
151
  __decorate([
151
152
  property()
152
- ], AlertItem.prototype, "content", void 0);
153
- AlertItem = AlertItem_1 = __decorate([
153
+ ], Alert.prototype, "content", void 0);
154
+ Alert = Alert_1 = __decorate([
154
155
  define(defineName)
155
- ], AlertItem);
156
- export { AlertItem };
157
- export default AlertItem;
158
- //# sourceMappingURL=alert-item.js.map
156
+ ], Alert);
157
+ export { Alert };
158
+ export default Alert;
159
+ //# sourceMappingURL=alert.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alert.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/alert/alert.ts"],"names":[],"mappings":";;AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChE,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAqB,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,aAAa,EA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AK;IADjB,MAAM,CAAC,UAAU,CAAC;GACN,KAAK,CAwHjB;;AAED,eAAe,KAAK,CAAC","sourcesContent":["import { css, html, property, unsafeCSS } from \"../../.deps.js\";\nimport { define } from \"../../decorators/define.js\";\nimport { htmlSlot, type HTMLTemplate, svgX } from \"../../lib/templates.js\";\nimport { constructCSS } from \"../../lib/utils.js\";\nimport { createScope, GodownElement } from \"../../supers/root.js\";\n\nconst defineName = \"alert\";\nconst cssvarScope = createScope(defineName);\n\nconst currentColor = \"currentColor\";\n\nconst vars = [\"color\", \"background\", \"border\", \"super\"].map((v) => `${cssvarScope}--${v}`);\nconst colors = {\n success: [\"#3c763d\", \"#dff0d8\", \"#d6e9c6\", \"#2b542c\"],\n info: [\"#31708f\", \"#d9edf7\", \"#bce8f1\", \"#245269\"],\n warning: [\"#8a6d3b\", \"#fcf8e3\", \"#faebcc\", \"#66512c\"],\n danger: [\"#a94442\", \"#f2dede\", \"#ebccd1\", \"#843534\"],\n inherit: [currentColor, \"inherit\", currentColor, currentColor],\n};\n\n/**\n * {@linkcode Alert} renders a alert.\n *\n * Inspired by Ant-design.\n */\n@define(defineName)\nexport class Alert extends GodownElement {\n /**\n * Type of performance.\n */\n @property() call: keyof typeof colors | \"hide\" = \"info\";\n /**\n * Close delay.\n */\n @property({ type: Number }) autoclose = 3000;\n /**\n * Alert title.\n */\n @property() title = \"\";\n /**\n * Alert content.\n */\n @property() content = \"\";\n\n static styles = [\n unsafeCSS(\n constructCSS(vars, colors, (raw) => {\n return `.${raw}`;\n }),\n ),\n css`\n :host {\n ${cssvarScope}--padding: .05em .25em .05em .35em;\n ${cssvarScope}--border-width: 0.15em;\n ${cssvarScope}--border-radius: 0.4em;\n border-radius: var(${cssvarScope}--border-radius);\n margin: 0 auto;\n display: block;\n }\n\n .hide {\n opacity: 0;\n transform: translateY(-100%);\n }\n\n .alert {\n transition: 0.25s;\n display: flex;\n justify-content: space-between;\n padding: var(${cssvarScope}--padding);\n border-radius: inherit;\n border: var(${cssvarScope}--border-width) solid var(${cssvarScope}--border);\n color: var(${cssvarScope}--color);\n background: var(${cssvarScope}--background);\n animation: alert 0.25s ease-in-out;\n }\n\n @keyframes alert {\n 0% {\n opacity: 0;\n transform: translateY(-50%);\n }\n 100% {\n opacity: 1;\n transform: none;\n }\n }\n\n div {\n min-height: 1.5em;\n line-height: 1.5em;\n }\n\n .close {\n height: fit-content;\n width: fit-content;\n border-radius: 50%;\n transition: inherit;\n }\n\n .close:hover {\n backdrop-filter: contrast(115%);\n }\n\n svg {\n display: block;\n height: 1.6em;\n width: 1.6em;\n }\n\n .close:hover path {\n stroke: var(${cssvarScope}--super);\n }\n\n path {\n stroke: var(${cssvarScope}--color);\n }\n `,\n ];\n\n protected render(): HTMLTemplate {\n if (this.autoclose) {\n setTimeout(() => this.close(), this.autoclose);\n }\n return html`<main class=\"${this.call} alert\">\n <div>\n <strong> ${this.title || htmlSlot(\"title\")}</strong>\n ${this.content || htmlSlot()}\n </div>\n <aside class=\"close\" @click=\"${this.close}\">${htmlSlot(\"close\", svgX(), this)}</aside>\n </main>`;\n }\n\n close() {\n this.shadowRoot.querySelector(\".alert\").classList.add(\"hide\");\n setTimeout(() => {\n this.remove();\n }, 250);\n }\n\n static alert(root: HTMLElement, option: Partial<Alert>): Alert {\n const ai = new Alert();\n Object.assign(ai, option);\n root.appendChild(ai);\n return ai;\n }\n}\n\nexport default Alert;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"alert-item\": Alert;\n \"g-alert\": Alert;\n }\n}\n"]}
@@ -1,9 +1,9 @@
1
1
  import { type HTMLTemplate } from "../../lib/templates.js";
2
- import SuperA from "./super-a.js";
2
+ import GodownAnchor from "../../supers/anchor.js";
3
3
  /**
4
- * AvatarAnchor renders the avatar or name and has a href.
4
+ * {@linkcode Avatar} renders the avatar or name and has a href.
5
5
  */
6
- export declare class AvatarA extends SuperA {
6
+ export declare class Avatar extends GodownAnchor {
7
7
  /**
8
8
  * Image src.
9
9
  */
@@ -17,11 +17,11 @@ export declare class AvatarA extends SuperA {
17
17
  */
18
18
  href: any;
19
19
  /**
20
- * If the image is not available, the {@linkcode AvatarA.avaName} will be displayed.
20
+ * If the image is not available, the {@linkcode Avatar.avaName} will be displayed.
21
21
  */
22
22
  name: string;
23
23
  /**
24
- * If there is a value, the {@linkcode AvatarA.avaMore} will be displayed.
24
+ * If there is a value, the {@linkcode Avatar.avaMore} will be displayed.
25
25
  */
26
26
  more: number;
27
27
  static styles: import("lit").CSSResult[];
@@ -31,10 +31,11 @@ export declare class AvatarA extends SuperA {
31
31
  avaName(): string;
32
32
  imgOnError(e: ErrorEvent): void;
33
33
  }
34
- export default AvatarA;
34
+ export default Avatar;
35
35
  declare global {
36
36
  interface HTMLElementTagNameMap {
37
- "avatar-a": AvatarA;
37
+ "avatar-a": Avatar;
38
+ "g-avatar": Avatar;
38
39
  }
39
40
  }
40
- //# sourceMappingURL=avatar-a.d.ts.map
41
+ //# sourceMappingURL=avatar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"avatar.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/avatar/avatar.ts"],"names":[],"mappings":"AAEA,OAAO,EAAY,KAAK,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,YAAY,MAAM,wBAAwB,CAAC;AAMlD;;GAEG;AACH,qBACa,MAAO,SAAQ,YAAY;IACtC;;OAEG;IACS,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAAM;IAChD;;OAEG;IACS,GAAG,EAAE,MAAM,CAAa;IACpC;;OAEG;IACS,IAAI,MAAa;IAC7B;;OAEG;IACS,IAAI,SAAM;IACtB;;OAEG;IACyB,IAAI,SAAK;IAErC,MAAM,CAAC,MAAM,4BAyCX;IAEF,SAAS,CAAC,MAAM,IAAI,YAAY;IAOhC,OAAO,CAAC,SAAS;IAajB,OAAO,IAAI,MAAM,GAAG,MAAM;IAO1B,OAAO,IAAI,MAAM;IAKjB,UAAU,CAAC,CAAC,EAAE,UAAU;CAOzB;AAED,eAAe,MAAM,CAAC;AAEtB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,UAAU,EAAE,MAAM,CAAC;QACnB,UAAU,EAAE,MAAM,CAAC;KACpB;CACF"}