godown 2.5.0 → 2.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (500) hide show
  1. package/README.md +1 -1
  2. package/alert-item.d.ts +2 -0
  3. package/alert-item.d.ts.map +1 -0
  4. package/alert-item.js +2 -0
  5. package/alert-item.js.map +1 -0
  6. package/avatar-a.d.ts +2 -0
  7. package/avatar-a.d.ts.map +1 -0
  8. package/avatar-a.js +2 -0
  9. package/avatar-a.js.map +1 -0
  10. package/avatar-group.d.ts +2 -0
  11. package/avatar-group.d.ts.map +1 -0
  12. package/avatar-group.js +2 -0
  13. package/avatar-group.js.map +1 -0
  14. package/base-button.d.ts +2 -0
  15. package/base-button.d.ts.map +1 -0
  16. package/base-button.js +2 -0
  17. package/base-button.js.map +1 -0
  18. package/base-form.d.ts +2 -0
  19. package/base-form.d.ts.map +1 -0
  20. package/base-form.js +2 -0
  21. package/base-form.js.map +1 -0
  22. package/base-input.d.ts +2 -0
  23. package/base-input.d.ts.map +1 -0
  24. package/base-input.js +2 -0
  25. package/base-input.js.map +1 -0
  26. package/card-item.d.ts +2 -0
  27. package/card-item.d.ts.map +1 -0
  28. package/card-item.js +2 -0
  29. package/card-item.js.map +1 -0
  30. package/carousel-slider.d.ts +2 -0
  31. package/carousel-slider.d.ts.map +1 -0
  32. package/carousel-slider.js +2 -0
  33. package/carousel-slider.js.map +1 -0
  34. package/clip-text.d.ts +2 -0
  35. package/clip-text.d.ts.map +1 -0
  36. package/clip-text.js +2 -0
  37. package/clip-text.js.map +1 -0
  38. package/conf.d.ts +43 -3
  39. package/conf.d.ts.map +1 -1
  40. package/conf.js +14 -11
  41. package/conf.js.map +1 -1
  42. package/deps.d.ts +4 -3
  43. package/deps.d.ts.map +1 -1
  44. package/deps.js +4 -3
  45. package/deps.js.map +1 -1
  46. package/details-group.d.ts +2 -0
  47. package/details-group.d.ts.map +1 -0
  48. package/details-group.js +2 -0
  49. package/details-group.js.map +1 -0
  50. package/divider-line.d.ts +2 -0
  51. package/divider-line.d.ts.map +1 -0
  52. package/divider-line.js +2 -0
  53. package/divider-line.js.map +1 -0
  54. package/drag-box.d.ts +2 -0
  55. package/drag-box.d.ts.map +1 -0
  56. package/drag-box.js +2 -0
  57. package/drag-box.js.map +1 -0
  58. package/flex-flow.d.ts +2 -0
  59. package/flex-flow.d.ts.map +1 -0
  60. package/flex-flow.js +2 -0
  61. package/flex-flow.js.map +1 -0
  62. package/godown-element.d.ts +2 -2
  63. package/godown-element.d.ts.map +1 -1
  64. package/godown-element.js +1 -1
  65. package/godown-element.js.map +1 -1
  66. package/index.d.ts +2 -6
  67. package/index.d.ts.map +1 -1
  68. package/index.js +2 -6
  69. package/index.js.map +1 -1
  70. package/label-input.d.ts +2 -0
  71. package/label-input.d.ts.map +1 -0
  72. package/label-input.js +2 -0
  73. package/label-input.js.map +1 -0
  74. package/lib/directives.d.ts.map +1 -1
  75. package/lib/directives.js.map +1 -1
  76. package/lib/event-collection.d.ts +1 -1
  77. package/lib/event-collection.d.ts.map +1 -1
  78. package/lib/event-collection.js.map +1 -1
  79. package/lib/route-tree.d.ts.map +1 -1
  80. package/lib/route-tree.js.map +1 -1
  81. package/lib/templates.d.ts.map +1 -1
  82. package/lib/templates.js.map +1 -1
  83. package/lib/utils.d.ts.map +1 -1
  84. package/lib/utils.js +2 -2
  85. package/lib/utils.js.map +1 -1
  86. package/link-a.d.ts +2 -0
  87. package/link-a.d.ts.map +1 -0
  88. package/link-a.js +2 -0
  89. package/link-a.js.map +1 -0
  90. package/loading-progress.d.ts +2 -0
  91. package/loading-progress.d.ts.map +1 -0
  92. package/loading-progress.js +2 -0
  93. package/loading-progress.js.map +1 -0
  94. package/nav-aside.d.ts +2 -0
  95. package/nav-aside.d.ts.map +1 -0
  96. package/nav-aside.js +2 -0
  97. package/nav-aside.js.map +1 -0
  98. package/nav-layout.d.ts +2 -0
  99. package/nav-layout.d.ts.map +1 -0
  100. package/nav-layout.js +2 -0
  101. package/nav-layout.js.map +1 -0
  102. package/open-details.d.ts +2 -0
  103. package/open-details.d.ts.map +1 -0
  104. package/open-details.js +2 -0
  105. package/open-details.js.map +1 -0
  106. package/open-dialog.d.ts +2 -0
  107. package/open-dialog.d.ts.map +1 -0
  108. package/open-dialog.js +2 -0
  109. package/open-dialog.js.map +1 -0
  110. package/open-list.d.ts +2 -0
  111. package/open-list.d.ts.map +1 -0
  112. package/open-list.js +2 -0
  113. package/open-list.js.map +1 -0
  114. package/open-offset.d.ts +2 -0
  115. package/open-offset.d.ts.map +1 -0
  116. package/open-offset.js +2 -0
  117. package/open-offset.js.map +1 -0
  118. package/open-tooltip.d.ts +2 -0
  119. package/open-tooltip.d.ts.map +1 -0
  120. package/open-tooltip.js +2 -0
  121. package/open-tooltip.js.map +1 -0
  122. package/overbreath-text.d.ts +2 -0
  123. package/overbreath-text.d.ts.map +1 -0
  124. package/overbreath-text.js +2 -0
  125. package/overbreath-text.js.map +1 -0
  126. package/package.json +57 -10
  127. package/react/create.d.ts.map +1 -1
  128. package/react/create.js.map +1 -1
  129. package/react/index.d.ts +37 -7
  130. package/react/index.d.ts.map +1 -1
  131. package/react/index.js +114 -7
  132. package/react/index.js.map +1 -1
  133. package/root.d.ts.map +1 -1
  134. package/root.js +3 -2
  135. package/root.js.map +1 -1
  136. package/route-view.d.ts +2 -0
  137. package/route-view.d.ts.map +1 -0
  138. package/route-view.js +2 -0
  139. package/route-view.js.map +1 -0
  140. package/scroll-x.d.ts +2 -0
  141. package/scroll-x.d.ts.map +1 -0
  142. package/scroll-x.js +2 -0
  143. package/scroll-x.js.map +1 -0
  144. package/search-input.d.ts +2 -0
  145. package/search-input.d.ts.map +1 -0
  146. package/search-input.js +2 -0
  147. package/search-input.js.map +1 -0
  148. package/select-input.d.ts +2 -0
  149. package/select-input.d.ts.map +1 -0
  150. package/select-input.js +2 -0
  151. package/select-input.js.map +1 -0
  152. package/sign-form.d.ts +2 -0
  153. package/sign-form.d.ts.map +1 -0
  154. package/sign-form.js +2 -0
  155. package/sign-form.js.map +1 -0
  156. package/skeleton-screen.d.ts +2 -0
  157. package/skeleton-screen.d.ts.map +1 -0
  158. package/skeleton-screen.js +2 -0
  159. package/skeleton-screen.js.map +1 -0
  160. package/split-input.d.ts +2 -0
  161. package/split-input.d.ts.map +1 -0
  162. package/split-input.js +2 -0
  163. package/split-input.js.map +1 -0
  164. package/super-a.d.ts +2 -0
  165. package/super-a.d.ts.map +1 -0
  166. package/super-a.js +2 -0
  167. package/super-a.js.map +1 -0
  168. package/switch-input.d.ts +2 -0
  169. package/switch-input.d.ts.map +1 -0
  170. package/switch-input.js +2 -0
  171. package/switch-input.js.map +1 -0
  172. package/tab-group.d.ts +2 -0
  173. package/tab-group.d.ts.map +1 -0
  174. package/tab-group.js +2 -0
  175. package/tab-group.js.map +1 -0
  176. package/time-bar.d.ts +2 -0
  177. package/time-bar.d.ts.map +1 -0
  178. package/time-bar.js +2 -0
  179. package/time-bar.js.map +1 -0
  180. package/typewriter-text.d.ts +2 -0
  181. package/typewriter-text.d.ts.map +1 -0
  182. package/typewriter-text.js +2 -0
  183. package/typewriter-text.js.map +1 -0
  184. package/{items → web-components/a}/avatar-a.d.ts +7 -7
  185. package/web-components/a/avatar-a.d.ts.map +1 -0
  186. package/{items → web-components/a}/avatar-a.js +57 -62
  187. package/web-components/a/avatar-a.js.map +1 -0
  188. package/{items → web-components/a}/link-a.d.ts +6 -6
  189. package/web-components/a/link-a.d.ts.map +1 -0
  190. package/{items → web-components/a}/link-a.js +16 -21
  191. package/web-components/a/link-a.js.map +1 -0
  192. package/{items → web-components/a}/super-a.d.ts +5 -5
  193. package/web-components/a/super-a.d.ts.map +1 -0
  194. package/{items → web-components/a}/super-a.js +34 -40
  195. package/web-components/a/super-a.js.map +1 -0
  196. package/{items → web-components/button}/base-button.d.ts +3 -3
  197. package/web-components/button/base-button.d.ts.map +1 -0
  198. package/{items → web-components/button}/base-button.js +100 -106
  199. package/web-components/button/base-button.js.map +1 -0
  200. package/{view/rotation-pool.d.ts → web-components/carousel/carousel-slider.d.ts} +7 -7
  201. package/web-components/carousel/carousel-slider.d.ts.map +1 -0
  202. package/{view/rotation-pool.js → web-components/carousel/carousel-slider.js} +87 -92
  203. package/web-components/carousel/carousel-slider.js.map +1 -0
  204. package/{input-form/sign-form.d.ts → web-components/form/base-form.d.ts} +9 -18
  205. package/web-components/form/base-form.d.ts.map +1 -0
  206. package/{input-form/sign-form.js → web-components/form/base-form.js} +32 -40
  207. package/web-components/form/base-form.js.map +1 -0
  208. package/web-components/form/sign-form.d.ts +19 -0
  209. package/web-components/form/sign-form.d.ts.map +1 -0
  210. package/web-components/form/sign-form.js +16 -0
  211. package/web-components/form/sign-form.js.map +1 -0
  212. package/{group → web-components/group}/avatar-group.d.ts +6 -6
  213. package/web-components/group/avatar-group.d.ts.map +1 -0
  214. package/{group → web-components/group}/avatar-group.js +24 -30
  215. package/web-components/group/avatar-group.js.map +1 -0
  216. package/{group → web-components/group}/details-group.d.ts +3 -3
  217. package/web-components/group/details-group.d.ts.map +1 -0
  218. package/{group → web-components/group}/details-group.js +12 -18
  219. package/web-components/group/details-group.js.map +1 -0
  220. package/{group → web-components/group}/tab-group.d.ts +4 -4
  221. package/web-components/group/tab-group.d.ts.map +1 -0
  222. package/{group → web-components/group}/tab-group.js +50 -56
  223. package/web-components/group/tab-group.js.map +1 -0
  224. package/web-components/index.d.ts +38 -0
  225. package/web-components/index.d.ts.map +1 -0
  226. package/web-components/index.js +39 -0
  227. package/web-components/index.js.map +1 -0
  228. package/{input-form → web-components/input}/base-input.d.ts +4 -4
  229. package/web-components/input/base-input.d.ts.map +1 -0
  230. package/{input-form → web-components/input}/base-input.js +80 -85
  231. package/web-components/input/base-input.js.map +1 -0
  232. package/{input-form/std.d.ts → web-components/input/input.d.ts} +4 -16
  233. package/web-components/input/input.d.ts.map +1 -0
  234. package/{input-form/std.js → web-components/input/input.js} +27 -54
  235. package/web-components/input/input.js.map +1 -0
  236. package/{input-form → web-components/input}/label-input.d.ts +4 -4
  237. package/web-components/input/label-input.d.ts.map +1 -0
  238. package/{input-form → web-components/input}/label-input.js +56 -61
  239. package/web-components/input/label-input.js.map +1 -0
  240. package/{input-form → web-components/input}/search-input.d.ts +4 -4
  241. package/web-components/input/search-input.d.ts.map +1 -0
  242. package/{input-form → web-components/input}/search-input.js +64 -69
  243. package/web-components/input/search-input.js.map +1 -0
  244. package/{input-form → web-components/input}/select-input.d.ts +4 -4
  245. package/web-components/input/select-input.d.ts.map +1 -0
  246. package/{input-form → web-components/input}/select-input.js +97 -101
  247. package/web-components/input/select-input.js.map +1 -0
  248. package/{input-form → web-components/input}/split-input.d.ts +4 -4
  249. package/web-components/input/split-input.d.ts.map +1 -0
  250. package/{input-form → web-components/input}/split-input.js +56 -61
  251. package/web-components/input/split-input.js.map +1 -0
  252. package/{input-form → web-components/input}/switch-input.d.ts +4 -4
  253. package/web-components/input/switch-input.d.ts.map +1 -0
  254. package/{input-form → web-components/input}/switch-input.js +42 -47
  255. package/web-components/input/switch-input.js.map +1 -0
  256. package/{items → web-components/items}/alert-item.d.ts +3 -3
  257. package/web-components/items/alert-item.d.ts.map +1 -0
  258. package/{items → web-components/items}/alert-item.js +38 -43
  259. package/web-components/items/alert-item.js.map +1 -0
  260. package/{items → web-components/items}/card-item.d.ts +4 -4
  261. package/web-components/items/card-item.d.ts.map +1 -0
  262. package/{items → web-components/items}/card-item.js +57 -63
  263. package/web-components/items/card-item.js.map +1 -0
  264. package/{layout → web-components/items}/drag-box.d.ts +3 -3
  265. package/web-components/items/drag-box.d.ts.map +1 -0
  266. package/{layout → web-components/items}/drag-box.js +13 -19
  267. package/web-components/items/drag-box.js.map +1 -0
  268. package/web-components/items/index.d.ts +5 -0
  269. package/web-components/items/index.d.ts.map +1 -0
  270. package/web-components/items/index.js +6 -0
  271. package/web-components/items/index.js.map +1 -0
  272. package/{items → web-components/items}/time-bar.d.ts +3 -3
  273. package/web-components/items/time-bar.d.ts.map +1 -0
  274. package/{items → web-components/items}/time-bar.js +12 -17
  275. package/web-components/items/time-bar.js.map +1 -0
  276. package/web-components/layout/divider-line.d.ts +20 -0
  277. package/web-components/layout/divider-line.d.ts.map +1 -0
  278. package/{layout/div-line.js → web-components/layout/divider-line.js} +24 -30
  279. package/web-components/layout/divider-line.js.map +1 -0
  280. package/{layout → web-components/layout}/flex-flow.d.ts +3 -3
  281. package/web-components/layout/flex-flow.d.ts.map +1 -0
  282. package/{layout → web-components/layout}/flex-flow.js +12 -18
  283. package/web-components/layout/flex-flow.js.map +1 -0
  284. package/web-components/layout/index.d.ts +5 -0
  285. package/web-components/layout/index.d.ts.map +1 -0
  286. package/web-components/layout/index.js +6 -0
  287. package/web-components/layout/index.js.map +1 -0
  288. package/{layout → web-components/layout}/nav-aside.d.ts +4 -4
  289. package/web-components/layout/nav-aside.d.ts.map +1 -0
  290. package/{layout → web-components/layout}/nav-aside.js +19 -25
  291. package/web-components/layout/nav-aside.js.map +1 -0
  292. package/{layout → web-components/layout}/nav-layout.d.ts +4 -4
  293. package/web-components/layout/nav-layout.d.ts.map +1 -0
  294. package/{layout → web-components/layout}/nav-layout.js +31 -37
  295. package/web-components/layout/nav-layout.js.map +1 -0
  296. package/{items/load-progress.d.ts → web-components/loading/loading-progress.d.ts} +7 -7
  297. package/web-components/loading/loading-progress.d.ts.map +1 -0
  298. package/{items/load-progress.js → web-components/loading/loading-progress.js} +41 -47
  299. package/web-components/loading/loading-progress.js.map +1 -0
  300. package/{layout → web-components/loading}/skeleton-screen.d.ts +4 -4
  301. package/web-components/loading/skeleton-screen.d.ts.map +1 -0
  302. package/{layout → web-components/loading}/skeleton-screen.js +24 -30
  303. package/web-components/loading/skeleton-screen.js.map +1 -0
  304. package/{view/details-expand.d.ts → web-components/open/open-details.d.ts} +8 -8
  305. package/web-components/open/open-details.d.ts.map +1 -0
  306. package/{view/details-expand.js → web-components/open/open-details.js} +35 -40
  307. package/web-components/open/open-details.js.map +1 -0
  308. package/{items/dialog-item.d.ts → web-components/open/open-dialog.d.ts} +8 -8
  309. package/web-components/open/open-dialog.d.ts.map +1 -0
  310. package/{items/dialog-item.js → web-components/open/open-dialog.js} +83 -89
  311. package/web-components/open/open-dialog.js.map +1 -0
  312. package/web-components/open/open-list.d.ts +20 -0
  313. package/web-components/open/open-list.d.ts.map +1 -0
  314. package/web-components/open/open-list.js +71 -0
  315. package/web-components/open/open-list.js.map +1 -0
  316. package/{view/offset-expand.d.ts → web-components/open/open-offset.d.ts} +8 -8
  317. package/web-components/open/open-offset.d.ts.map +1 -0
  318. package/{view/offset-expand.js → web-components/open/open-offset.js} +66 -71
  319. package/web-components/open/open-offset.js.map +1 -0
  320. package/web-components/open/open-tooltip.d.ts +24 -0
  321. package/web-components/open/open-tooltip.d.ts.map +1 -0
  322. package/{view/tool-tip.js → web-components/open/open-tooltip.js} +28 -33
  323. package/web-components/open/open-tooltip.js.map +1 -0
  324. package/{view/std.d.ts → web-components/open/open.d.ts} +6 -6
  325. package/web-components/open/open.d.ts.map +1 -0
  326. package/{view/std.js → web-components/open/open.js} +35 -40
  327. package/web-components/open/open.js.map +1 -0
  328. package/{effect → web-components/text}/clip-text.d.ts +4 -4
  329. package/web-components/text/clip-text.d.ts.map +1 -0
  330. package/web-components/text/clip-text.js +44 -0
  331. package/web-components/text/clip-text.js.map +1 -0
  332. package/{effect → web-components/text}/overbreath-text.d.ts +4 -4
  333. package/web-components/text/overbreath-text.d.ts.map +1 -0
  334. package/{effect → web-components/text}/overbreath-text.js +21 -27
  335. package/web-components/text/overbreath-text.js.map +1 -0
  336. package/{effect → web-components/text}/typewriter-text.d.ts +4 -4
  337. package/web-components/text/typewriter-text.d.ts.map +1 -0
  338. package/{effect → web-components/text}/typewriter-text.js +38 -44
  339. package/web-components/text/typewriter-text.js.map +1 -0
  340. package/{view → web-components/view}/route-view.d.ts +4 -4
  341. package/web-components/view/route-view.d.ts.map +1 -0
  342. package/{view → web-components/view}/route-view.js +16 -21
  343. package/web-components/view/route-view.js.map +1 -0
  344. package/{view → web-components/view}/scroll-x.d.ts +2 -2
  345. package/web-components/view/scroll-x.d.ts.map +1 -0
  346. package/{view → web-components/view}/scroll-x.js +35 -40
  347. package/web-components/view/scroll-x.js.map +1 -0
  348. package/{view/with-wrap.d.ts → web-components/view/wrap-view.d.ts} +7 -7
  349. package/web-components/view/wrap-view.d.ts.map +1 -0
  350. package/{view/with-wrap.js → web-components/view/wrap-view.js} +29 -34
  351. package/web-components/view/wrap-view.js.map +1 -0
  352. package/wrap-view.d.ts +2 -0
  353. package/wrap-view.d.ts.map +1 -0
  354. package/wrap-view.js +2 -0
  355. package/wrap-view.js.map +1 -0
  356. package/effect/clip-text.d.ts.map +0 -1
  357. package/effect/clip-text.js +0 -50
  358. package/effect/clip-text.js.map +0 -1
  359. package/effect/index.d.ts +0 -4
  360. package/effect/index.d.ts.map +0 -1
  361. package/effect/index.js +0 -4
  362. package/effect/index.js.map +0 -1
  363. package/effect/overbreath-text.d.ts.map +0 -1
  364. package/effect/overbreath-text.js.map +0 -1
  365. package/effect/std.d.ts +0 -4
  366. package/effect/std.d.ts.map +0 -1
  367. package/effect/std.js +0 -4
  368. package/effect/std.js.map +0 -1
  369. package/effect/typewriter-text.d.ts.map +0 -1
  370. package/effect/typewriter-text.js.map +0 -1
  371. package/group/avatar-group.d.ts.map +0 -1
  372. package/group/avatar-group.js.map +0 -1
  373. package/group/details-group.d.ts.map +0 -1
  374. package/group/details-group.js.map +0 -1
  375. package/group/index.d.ts +0 -4
  376. package/group/index.d.ts.map +0 -1
  377. package/group/index.js +0 -4
  378. package/group/index.js.map +0 -1
  379. package/group/std.d.ts +0 -4
  380. package/group/std.d.ts.map +0 -1
  381. package/group/std.js +0 -4
  382. package/group/std.js.map +0 -1
  383. package/group/tab-group.d.ts.map +0 -1
  384. package/group/tab-group.js.map +0 -1
  385. package/input-form/base-input.d.ts.map +0 -1
  386. package/input-form/base-input.js.map +0 -1
  387. package/input-form/index.d.ts +0 -8
  388. package/input-form/index.d.ts.map +0 -1
  389. package/input-form/index.js +0 -8
  390. package/input-form/index.js.map +0 -1
  391. package/input-form/label-input.d.ts.map +0 -1
  392. package/input-form/label-input.js.map +0 -1
  393. package/input-form/search-input.d.ts.map +0 -1
  394. package/input-form/search-input.js.map +0 -1
  395. package/input-form/select-input.d.ts.map +0 -1
  396. package/input-form/select-input.js.map +0 -1
  397. package/input-form/sign-form.d.ts.map +0 -1
  398. package/input-form/sign-form.js.map +0 -1
  399. package/input-form/split-input.d.ts.map +0 -1
  400. package/input-form/split-input.js.map +0 -1
  401. package/input-form/std.d.ts.map +0 -1
  402. package/input-form/std.js.map +0 -1
  403. package/input-form/switch-input.d.ts.map +0 -1
  404. package/input-form/switch-input.js.map +0 -1
  405. package/items/alert-item.d.ts.map +0 -1
  406. package/items/alert-item.js.map +0 -1
  407. package/items/avatar-a.d.ts.map +0 -1
  408. package/items/avatar-a.js.map +0 -1
  409. package/items/base-button.d.ts.map +0 -1
  410. package/items/base-button.js.map +0 -1
  411. package/items/card-item.d.ts.map +0 -1
  412. package/items/card-item.js.map +0 -1
  413. package/items/dialog-item.d.ts.map +0 -1
  414. package/items/dialog-item.js.map +0 -1
  415. package/items/index.d.ts +0 -10
  416. package/items/index.d.ts.map +0 -1
  417. package/items/index.js +0 -10
  418. package/items/index.js.map +0 -1
  419. package/items/link-a.d.ts.map +0 -1
  420. package/items/link-a.js.map +0 -1
  421. package/items/load-progress.d.ts.map +0 -1
  422. package/items/load-progress.js.map +0 -1
  423. package/items/std.d.ts +0 -4
  424. package/items/std.d.ts.map +0 -1
  425. package/items/std.js +0 -4
  426. package/items/std.js.map +0 -1
  427. package/items/super-a.d.ts.map +0 -1
  428. package/items/super-a.js.map +0 -1
  429. package/items/time-bar.d.ts.map +0 -1
  430. package/items/time-bar.js.map +0 -1
  431. package/layout/div-line.d.ts +0 -20
  432. package/layout/div-line.d.ts.map +0 -1
  433. package/layout/div-line.js.map +0 -1
  434. package/layout/drag-box.d.ts.map +0 -1
  435. package/layout/drag-box.js.map +0 -1
  436. package/layout/flex-flow.d.ts.map +0 -1
  437. package/layout/flex-flow.js.map +0 -1
  438. package/layout/index.d.ts +0 -7
  439. package/layout/index.d.ts.map +0 -1
  440. package/layout/index.js +0 -7
  441. package/layout/index.js.map +0 -1
  442. package/layout/nav-aside.d.ts.map +0 -1
  443. package/layout/nav-aside.js.map +0 -1
  444. package/layout/nav-layout.d.ts.map +0 -1
  445. package/layout/nav-layout.js.map +0 -1
  446. package/layout/skeleton-screen.d.ts.map +0 -1
  447. package/layout/skeleton-screen.js.map +0 -1
  448. package/layout/std.d.ts +0 -4
  449. package/layout/std.d.ts.map +0 -1
  450. package/layout/std.js +0 -4
  451. package/layout/std.js.map +0 -1
  452. package/react/effect.d.ts +0 -5
  453. package/react/effect.d.ts.map +0 -1
  454. package/react/effect.js +0 -13
  455. package/react/effect.js.map +0 -1
  456. package/react/group.d.ts +0 -5
  457. package/react/group.d.ts.map +0 -1
  458. package/react/group.js +0 -13
  459. package/react/group.js.map +0 -1
  460. package/react/input-form.d.ts +0 -28
  461. package/react/input-form.d.ts.map +0 -1
  462. package/react/input-form.js +0 -38
  463. package/react/input-form.js.map +0 -1
  464. package/react/items.d.ts +0 -11
  465. package/react/items.d.ts.map +0 -1
  466. package/react/items.js +0 -31
  467. package/react/items.js.map +0 -1
  468. package/react/layout.d.ts +0 -8
  469. package/react/layout.d.ts.map +0 -1
  470. package/react/layout.js +0 -22
  471. package/react/layout.js.map +0 -1
  472. package/react/view.d.ts +0 -10
  473. package/react/view.d.ts.map +0 -1
  474. package/react/view.js +0 -28
  475. package/react/view.js.map +0 -1
  476. package/view/details-expand.d.ts.map +0 -1
  477. package/view/details-expand.js.map +0 -1
  478. package/view/index.d.ts +0 -9
  479. package/view/index.d.ts.map +0 -1
  480. package/view/index.js +0 -9
  481. package/view/index.js.map +0 -1
  482. package/view/menu-list.d.ts +0 -20
  483. package/view/menu-list.d.ts.map +0 -1
  484. package/view/menu-list.js +0 -76
  485. package/view/menu-list.js.map +0 -1
  486. package/view/offset-expand.d.ts.map +0 -1
  487. package/view/offset-expand.js.map +0 -1
  488. package/view/rotation-pool.d.ts.map +0 -1
  489. package/view/rotation-pool.js.map +0 -1
  490. package/view/route-view.d.ts.map +0 -1
  491. package/view/route-view.js.map +0 -1
  492. package/view/scroll-x.d.ts.map +0 -1
  493. package/view/scroll-x.js.map +0 -1
  494. package/view/std.d.ts.map +0 -1
  495. package/view/std.js.map +0 -1
  496. package/view/tool-tip.d.ts +0 -24
  497. package/view/tool-tip.d.ts.map +0 -1
  498. package/view/tool-tip.js.map +0 -1
  499. package/view/with-wrap.d.ts.map +0 -1
  500. package/view/with-wrap.js.map +0 -1
@@ -1,18 +1,13 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- import { css, html, property, query } from "../deps.js";
8
- import { htmlSlot, htmlStyle, svgArrow } from "../lib/templates.js";
9
- import { define } from "../root.js";
10
- import { GodownElement } from "../root.js";
11
- const defineName = "rotation-pool";
1
+ import { __decorate } from "tslib";
2
+ import { css, html, property, query } from "../../deps.js";
3
+ import { htmlSlot, htmlStyle, svgArrow } from "../../lib/templates.js";
4
+ import { define } from "../../root.js";
5
+ import { GodownElement } from "../../root.js";
6
+ const defineName = "carousel-slider";
12
7
  /**
13
- * RotationPool rotates child elements.
8
+ * CarouselSlider rotates child elements.
14
9
  */
15
- let RotationPool = class RotationPool extends GodownElement {
10
+ let CarouselSlider = class CarouselSlider extends GodownElement {
16
11
  constructor() {
17
12
  super(...arguments);
18
13
  /**
@@ -29,6 +24,76 @@ let RotationPool = class RotationPool extends GodownElement {
29
24
  this.width = "";
30
25
  this._clone = [];
31
26
  }
27
+ static { this.styles = [
28
+ css `
29
+ :host {
30
+ display: block;
31
+ transition: all 0.2s;
32
+ }
33
+
34
+ div {
35
+ overflow: hidden;
36
+ }
37
+
38
+ div,
39
+ section {
40
+ width: 100%;
41
+ display: flex;
42
+ position: relative;
43
+ transition: inherit;
44
+ }
45
+
46
+ a {
47
+ position: absolute;
48
+ height: 100%;
49
+ width: fit-content;
50
+ z-index: 1;
51
+ display: flex;
52
+ align-items: center;
53
+ }
54
+
55
+ .prev {
56
+ left: 0;
57
+ }
58
+
59
+ .prev svg {
60
+ transform: rotate(180deg);
61
+ }
62
+
63
+ .next {
64
+ right: 0;
65
+ }
66
+
67
+ i {
68
+ position: relative;
69
+ display: flex;
70
+ align-items: center;
71
+ justify-content: center;
72
+ transition: 0.3s;
73
+ width: 2em;
74
+ height: 100%;
75
+ }
76
+
77
+ svg {
78
+ flex: 1;
79
+ max-height: 100%;
80
+ max-width: 100%;
81
+ }
82
+
83
+ a:hover i {
84
+ background-color: #0000001a;
85
+ width: 2.2em;
86
+ }
87
+
88
+ i svg path {
89
+ stroke-width: 4;
90
+ }
91
+
92
+ slot::slotted(*) {
93
+ flex-shrink: 0 !important;
94
+ }
95
+ `,
96
+ ]; }
32
97
  render() {
33
98
  const style = this.width && `:host{width:${this.width.split(";")[0]};}`;
34
99
  return html `<div>
@@ -104,91 +169,21 @@ let RotationPool = class RotationPool extends GodownElement {
104
169
  }
105
170
  }
106
171
  };
107
- RotationPool.styles = [
108
- css `
109
- :host {
110
- display: block;
111
- transition: all 0.2s;
112
- }
113
-
114
- div {
115
- overflow: hidden;
116
- }
117
-
118
- div,
119
- section {
120
- width: 100%;
121
- display: flex;
122
- position: relative;
123
- transition: inherit;
124
- }
125
-
126
- a {
127
- position: absolute;
128
- height: 100%;
129
- width: fit-content;
130
- z-index: 1;
131
- display: flex;
132
- align-items: center;
133
- }
134
-
135
- .prev {
136
- left: 0;
137
- }
138
-
139
- .prev svg {
140
- transform: rotate(180deg);
141
- }
142
-
143
- .next {
144
- right: 0;
145
- }
146
-
147
- i {
148
- position: relative;
149
- display: flex;
150
- align-items: center;
151
- justify-content: center;
152
- transition: 0.3s;
153
- width: 2em;
154
- height: 100%;
155
- }
156
-
157
- svg {
158
- flex: 1;
159
- max-height: 100%;
160
- max-width: 100%;
161
- }
162
-
163
- a:hover i {
164
- background-color: #0000001a;
165
- width: 2.2em;
166
- }
167
-
168
- i svg path {
169
- stroke-width: 4;
170
- }
171
-
172
- slot::slotted(*) {
173
- flex-shrink: 0 !important;
174
- }
175
- `,
176
- ];
177
172
  __decorate([
178
173
  property({ type: Number })
179
- ], RotationPool.prototype, "index", void 0);
174
+ ], CarouselSlider.prototype, "index", void 0);
180
175
  __decorate([
181
176
  property({ type: Number })
182
- ], RotationPool.prototype, "autochange", void 0);
177
+ ], CarouselSlider.prototype, "autochange", void 0);
183
178
  __decorate([
184
179
  property()
185
- ], RotationPool.prototype, "width", void 0);
180
+ ], CarouselSlider.prototype, "width", void 0);
186
181
  __decorate([
187
182
  query("section")
188
- ], RotationPool.prototype, "_section", void 0);
189
- RotationPool = __decorate([
183
+ ], CarouselSlider.prototype, "_section", void 0);
184
+ CarouselSlider = __decorate([
190
185
  define(defineName)
191
- ], RotationPool);
192
- export { RotationPool };
193
- export default RotationPool;
194
- //# sourceMappingURL=rotation-pool.js.map
186
+ ], CarouselSlider);
187
+ export { CarouselSlider };
188
+ export default CarouselSlider;
189
+ //# sourceMappingURL=carousel-slider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"carousel-slider.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/carousel/carousel-slider.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAqB,QAA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,CAAC;YACN,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC;QAC5B,CAAC;IACH,CAAC;;AAnK2B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;6CAAW;AAIV;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;kDAAgB;AAI/B;IAAX,QAAQ,EAAE;6CAAY;AAEL;IAAjB,KAAK,CAAC,SAAS,CAAC;gDAAuB;AAd7B,cAAc;IAD1B,MAAM,CAAC,UAAU,CAAC;GACN,cAAc,CAwK1B;;AAED,eAAe,cAAc,CAAC","sourcesContent":["import { css, html, property, query } from \"../../deps.js\";\nimport { htmlSlot, htmlStyle, type HTMLTemplate, svgArrow } from \"../../lib/templates.js\";\nimport { define } from \"../../root.js\";\nimport { GodownElement } from \"../../root.js\";\n\nconst defineName = \"carousel-slider\";\n\n/**\n * CarouselSlider rotates child elements.\n */\n@define(defineName)\nexport class CarouselSlider extends GodownElement {\n /**\n * The index of the element is displayed for the first time.\n */\n @property({ type: Number }) index = 0;\n /**\n * If autochangee > 0, the rotation will be automated.\n */\n @property({ type: Number }) autochange = 0;\n /**\n * Width.\n */\n @property() width = \"\";\n\n @query(\"section\") _section: HTMLElement;\n intervalID: number;\n _clone: HTMLElement[] = [];\n\n static styles = [\n css`\n :host {\n display: block;\n transition: all 0.2s;\n }\n\n div {\n overflow: hidden;\n }\n\n div,\n section {\n width: 100%;\n display: flex;\n position: relative;\n transition: inherit;\n }\n\n a {\n position: absolute;\n height: 100%;\n width: fit-content;\n z-index: 1;\n display: flex;\n align-items: center;\n }\n\n .prev {\n left: 0;\n }\n\n .prev svg {\n transform: rotate(180deg);\n }\n\n .next {\n right: 0;\n }\n\n i {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: 0.3s;\n width: 2em;\n height: 100%;\n }\n\n svg {\n flex: 1;\n max-height: 100%;\n max-width: 100%;\n }\n\n a:hover i {\n background-color: #0000001a;\n width: 2.2em;\n }\n\n i svg path {\n stroke-width: 4;\n }\n\n slot::slotted(*) {\n flex-shrink: 0 !important;\n }\n `,\n ];\n\n protected render(): HTMLTemplate {\n const style = this.width && `:host{width:${this.width.split(\";\")[0]};}`;\n return html`<div>\n <a class=\"prev\" @click=\"${this.prev}\">${this.renderA(\"pre\")}</a>\n <section>${htmlSlot()}</section>\n ${htmlStyle(style)}\n <a class=\"next\" @click=\"${this.next}\">${this.renderA(\"suf\")}</a>\n </div>`;\n }\n\n private renderA(slot: string): HTMLTemplate {\n if (this.querySelector(`[slot=${slot}]`)) {\n return htmlSlot(slot);\n }\n return html`<i>${svgArrow()}</i>`;\n }\n\n remount(index?: number) {\n super.remount(undefined);\n if (index !== undefined) {\n this.show(index);\n }\n }\n\n protected firstUpdated() {\n if (this.assigned.length) {\n if (!this.width) {\n this.width = `${this.assigned[0].offsetWidth}px`;\n }\n if (this._clone.length) {\n this._clone.forEach((element) => element.remove());\n this._clone = [];\n }\n const last = this.assigned[0].cloneNode(true) as HTMLElement;\n const first = this.assigned[this.assigned.length - 1].cloneNode(true) as HTMLElement;\n first.style.marginLeft = \"-100%\";\n this._clone.push(first, last);\n this.appendChild(last);\n this.insertBefore(first, this.firstElementChild);\n this.show(this.index);\n }\n if (this.autochange) {\n this.intervalID = setInterval(() => {\n this.next();\n }, this.autochange);\n }\n }\n\n disconnectedCallback() {\n clearInterval(this.intervalID);\n }\n\n show(i: number) {\n this.index = i;\n this._section.style.transform = `translateX(-${i}00%)`;\n this._section.style.transition = \"inherit\";\n }\n\n next() {\n if (this.index === this.assigned.length - 3) {\n this._section.style.transform = `translateX(100%)`;\n this._section.style.transition = \"none\";\n this._section.getBoundingClientRect();\n this.show(0);\n } else {\n this.show(this.index + 1);\n }\n }\n\n prev() {\n if (this.index === 0) {\n this._section.style.transform = `translateX(-${this.assigned.length - 2}00%)`;\n this._section.style.transition = `none`;\n this._section.getBoundingClientRect();\n this.show(this.assigned.length - 3);\n } else {\n this.show(this.index - 1);\n }\n }\n}\n\nexport default CarouselSlider;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"rotation-port\": CarouselSlider;\n }\n}\n"]}
@@ -1,10 +1,13 @@
1
- import { type CSSResultGroup } from "../deps.js";
2
- import { type HTMLTemplate } from "../lib/templates.js";
3
- import { FormSTD } from "./std.js";
1
+ import { type CSSResultGroup } from "../../deps.js";
2
+ import { type HTMLTemplate } from "../../lib/templates.js";
3
+ import { GodownElement } from "../../root.js";
4
4
  /**
5
5
  * BaseForm gets all the names and actual values of the child element.
6
6
  */
7
- export declare class BaseForm extends FormSTD {
7
+ export declare class BaseForm<T extends object = object> extends GodownElement {
8
+ name: string;
9
+ value: T;
10
+ nameValue: () => [string, Record<string, any>];
8
11
  /**
9
12
  * Form enctype.
10
13
  */
@@ -16,22 +19,10 @@ export declare class BaseForm extends FormSTD {
16
19
  namevalue(enctype?: "application/x-www-form-urlencoded" | "multipart/form-data" | "text/plain"): [string, Record<string, any>];
17
20
  FormData(): FormData;
18
21
  }
19
- /**
20
- * SignForm is now an alias for {@linkcode BaseForm}.
21
- *
22
- * @extends BaseForm
23
- */
24
- export declare class SignForm extends BaseForm {
25
- /**
26
- * @deprecated
27
- */
28
- set: 0 | 1 | 2;
29
- }
30
- export default SignForm;
22
+ export default BaseForm;
31
23
  declare global {
32
24
  interface HTMLElementTagNameMap {
33
- "sign-form": SignForm;
34
25
  "base-form": BaseForm;
35
26
  }
36
27
  }
37
- //# sourceMappingURL=sign-form.d.ts.map
28
+ //# sourceMappingURL=base-form.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base-form.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/form/base-form.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,cAAc,EAAyB,MAAM,eAAe,CAAC;AAChF,OAAO,EAAY,KAAK,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAErE,OAAO,EAAU,aAAa,EAAE,MAAM,eAAe,CAAC;AAEtD;;GAEG;AACH,qBACa,QAAQ,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,CAAE,SAAQ,aAAa;IACxD,IAAI,SAAM;IACM,KAAK,IAAW;IAE5C,SAAS,sCAA0B;IACnC;;OAEG;IACS,OAAO,EAAE,mCAAmC,GAAG,qBAAqB,GAAG,YAAY,CAAyB;IAEzG,KAAK,EAAE,eAAe,CAAC;IAEtC,MAAM,CAAC,MAAM,iBAcO;IAEpB,SAAS,CAAC,MAAM,IAAI,YAAY;IAQhC,KAAK;IA0BL,SAAS,CAAC,OAAO,6EAAe,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAgChE,QAAQ,IAAI,QAAQ;CA8BrB;AACD,eAAe,QAAQ,CAAC;AAExB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,WAAW,EAAE,QAAQ,CAAC;KACvB;CACF"}
@@ -1,25 +1,37 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- import { css, html, property, query } from "../deps.js";
8
- import { htmlSlot } from "../lib/templates.js";
9
- import { define } from "../root.js";
10
- import { each } from "../lib/utils.js";
11
- import { FormSTD } from "./std.js";
1
+ import { __decorate } from "tslib";
2
+ import { css, html, property, query } from "../../deps.js";
3
+ import { htmlSlot } from "../../lib/templates.js";
4
+ import { each } from "../../lib/utils.js";
5
+ import { define, GodownElement } from "../../root.js";
12
6
  /**
13
7
  * BaseForm gets all the names and actual values of the child element.
14
8
  */
15
- let BaseForm = class BaseForm extends FormSTD {
9
+ let BaseForm = class BaseForm extends GodownElement {
16
10
  constructor() {
17
11
  super(...arguments);
12
+ this.name = "";
13
+ this.value = {};
14
+ this.nameValue = () => this.namevalue();
18
15
  /**
19
16
  * Form enctype.
20
17
  */
21
18
  this.enctype = "multipart/form-data";
22
19
  }
20
+ static { this.styles = [
21
+ css `
22
+ form {
23
+ display: flex;
24
+ flex-direction: column;
25
+ align-items: center;
26
+ margin: 0;
27
+ }
28
+
29
+ main {
30
+ display: flex;
31
+ flex-direction: column;
32
+ }
33
+ `,
34
+ ]; }
23
35
  render() {
24
36
  return html `<form enctype="${this.enctype}">
25
37
  ${htmlSlot("pre")}
@@ -116,21 +128,12 @@ let BaseForm = class BaseForm extends FormSTD {
116
128
  return formData;
117
129
  }
118
130
  };
119
- BaseForm.styles = [
120
- css `
121
- form {
122
- display: flex;
123
- flex-direction: column;
124
- align-items: center;
125
- margin: 0;
126
- }
127
-
128
- main {
129
- display: flex;
130
- flex-direction: column;
131
- }
132
- `,
133
- ];
131
+ __decorate([
132
+ property()
133
+ ], BaseForm.prototype, "name", void 0);
134
+ __decorate([
135
+ property({ type: Object })
136
+ ], BaseForm.prototype, "value", void 0);
134
137
  __decorate([
135
138
  property()
136
139
  ], BaseForm.prototype, "enctype", void 0);
@@ -141,16 +144,5 @@ BaseForm = __decorate([
141
144
  define("base-form")
142
145
  ], BaseForm);
143
146
  export { BaseForm };
144
- /**
145
- * SignForm is now an alias for {@linkcode BaseForm}.
146
- *
147
- * @extends BaseForm
148
- */
149
- let SignForm = class SignForm extends BaseForm {
150
- };
151
- SignForm = __decorate([
152
- define("sign-form")
153
- ], SignForm);
154
- export { SignForm };
155
- export default SignForm;
156
- //# sourceMappingURL=sign-form.js.map
147
+ export default BaseForm;
148
+ //# sourceMappingURL=base-form.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base-form.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","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M,CAAC;oBACN,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC;gBAC1C,CAAC;YACH,CAAC;QACH,CAAC;QACD,MAAM,QAAQ,GAAG,IAAI,QAAQ,CAAC,QAAQ,CAAC,CAAC;QACxC,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,IAAS,EAAE,EAAE;YAC7B,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;gBACnB,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;gBACvC,IAAI,IAAI,EAAE,CAAC;oBACT,QAAQ,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;gBAC/B,CAAC;YACH,CAAC;QACH,CAAC,CAAC,CAAC;QACH,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;YACvB,QAAQ,CAAC,MAAM,CAAC,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;QAClC,CAAC;QACD,QAAQ,CAAC,MAAM,EAAE,CAAC;QAClB,OAAO,QAAQ,CAAC;IAClB,CAAC;;AA1HW;IAAX,QAAQ,EAAE;sCAAW;AACM;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;uCAAiB;AAMhC;IAAX,QAAQ,EAAE;yCAA6G;AAEzG;IAAd,KAAK,CAAC,MAAM,CAAC;uCAAwB;AAV3B,QAAQ;IADpB,MAAM,CAAC,WAAW,CAAC;GACP,QAAQ,CA4HpB;;AACD,eAAe,QAAQ,CAAC","sourcesContent":["import { css, type CSSResultGroup, html, property, query } from \"../../deps.js\";\nimport { htmlSlot, type HTMLTemplate } from \"../../lib/templates.js\";\nimport { each } from \"../../lib/utils.js\";\nimport { define, GodownElement } from \"../../root.js\";\n\n/**\n * BaseForm gets all the names and actual values of the child element.\n */\n@define(\"base-form\")\nexport class BaseForm<T extends object = object> extends GodownElement {\n @property() name = \"\";\n @property({ type: Object }) value = {} as T;\n\n nameValue = () => this.namevalue();\n /**\n * Form enctype.\n */\n @property() enctype: \"application/x-www-form-urlencoded\" | \"multipart/form-data\" | \"text/plain\" = \"multipart/form-data\";\n\n @query(\"form\") _form: HTMLFormElement;\n\n static styles = [\n css`\n form {\n display: flex;\n flex-direction: column;\n align-items: center;\n margin: 0;\n }\n\n main {\n display: flex;\n flex-direction: column;\n }\n `,\n ] as CSSResultGroup;\n\n protected render(): HTMLTemplate {\n return html`<form enctype=\"${this.enctype}\">\n ${htmlSlot(\"pre\")}\n <main>${htmlSlot()}</main>\n ${htmlSlot(\"suf\")}\n </form>`;\n }\n\n reset() {\n each(this._form, (node: HTMLFormElement | BaseForm) => {\n if (node.reset) {\n node.reset();\n }\n });\n const form: any = document.createElement(\"form\");\n for (const slot of this.shadowRoot.querySelectorAll(\"slot\")) {\n for (const i of slot.assignedNodes() as any) {\n if (i.reset) {\n i.reset();\n }\n form.appendChild(i.cloneNode(true));\n }\n }\n form.reset();\n for (const slot of this.shadowRoot.querySelectorAll(\"slot\")) {\n for (const i of slot.assignedNodes() as any) {\n if (i.name && form[i.name]) {\n i.value = form[i.name].value;\n }\n }\n }\n form.remove();\n }\n\n namevalue(enctype = this.enctype): [string, Record<string, any>] {\n const result = {};\n const tempForm = document.createElement(\"form\");\n tempForm.enctype = enctype;\n for (const slot of this.shadowRoot.querySelectorAll(\"slot\")) {\n for (const i of slot.assignedNodes() as any) {\n if (i.namevalue) {\n const [name, value] = i.namevalue();\n if (name) {\n result[name] = value;\n }\n } else {\n tempForm.appendChild(i.cloneNode(true));\n }\n }\n }\n const formData = new FormData(tempForm);\n for (const [key, value] of formData) {\n result[key] = value;\n }\n each(this._form, (node: any) => {\n if (node.namevalue) {\n const [name, value] = node.namevalue();\n if (name) {\n result[name] = value;\n }\n }\n });\n tempForm.remove();\n return [this.name, result];\n }\n\n FormData(): FormData {\n const temp = {};\n const tempForm = document.createElement(\"form\");\n tempForm.enctype = this.enctype;\n for (const slot of this._slots) {\n for (const i of slot.assignedNodes() as any) {\n if (i.FormData) {\n for (const [key, value] of i.FormData()) {\n temp[key] = value;\n }\n } else {\n tempForm.appendChild(i.cloneNode(true));\n }\n }\n }\n const formData = new FormData(tempForm);\n each(this._form, (node: any) => {\n if (node.namevalue) {\n const [name, value] = node.namevalue();\n if (name) {\n formData.append(name, value);\n }\n }\n });\n for (const key in temp) {\n formData.append(key, temp[key]);\n }\n tempForm.remove();\n return formData;\n }\n}\nexport default BaseForm;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"base-form\": BaseForm;\n }\n}\n"]}
@@ -0,0 +1,19 @@
1
+ import BaseForm from "./base-form.js";
2
+ /**
3
+ * SignForm is now an alias for {@linkcode BaseForm}.
4
+ *
5
+ * @extends BaseForm
6
+ */
7
+ export declare class SignForm extends BaseForm {
8
+ /**
9
+ * @deprecated
10
+ */
11
+ set: 0 | 1 | 2;
12
+ }
13
+ export default SignForm;
14
+ declare global {
15
+ interface HTMLElementTagNameMap {
16
+ "sign-form": SignForm;
17
+ }
18
+ }
19
+ //# sourceMappingURL=sign-form.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sign-form.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/form/sign-form.ts"],"names":[],"mappings":"AACA,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AAEtC;;;;GAIG;AACH,qBACa,QAAS,SAAQ,QAAQ;IACpC;;OAEG;IACH,GAAG,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;CAChB;AAED,eAAe,QAAQ,CAAC;AAExB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,WAAW,EAAE,QAAQ,CAAC;KACvB;CACF"}
@@ -0,0 +1,16 @@
1
+ import { __decorate } from "tslib";
2
+ import { define } from "../../root.js";
3
+ import BaseForm from "./base-form.js";
4
+ /**
5
+ * SignForm is now an alias for {@linkcode BaseForm}.
6
+ *
7
+ * @extends BaseForm
8
+ */
9
+ let SignForm = class SignForm extends BaseForm {
10
+ };
11
+ SignForm = __decorate([
12
+ define("sign-form")
13
+ ], SignForm);
14
+ export { SignForm };
15
+ export default SignForm;
16
+ //# sourceMappingURL=sign-form.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sign-form.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/form/sign-form.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AAEtC;;;;GAIG;AAEI,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,QAAQ;CAKrC,CAAA;AALY,QAAQ;IADpB,MAAM,CAAC,WAAW,CAAC;GACP,QAAQ,CAKpB;;AAED,eAAe,QAAQ,CAAC","sourcesContent":["import { define } from \"../../root.js\";\nimport BaseForm from \"./base-form.js\";\n\n/**\n * SignForm is now an alias for {@linkcode BaseForm}.\n *\n * @extends BaseForm\n */\n@define(\"sign-form\")\nexport class SignForm extends BaseForm {\n /**\n * @deprecated\n */\n set: 0 | 1 | 2;\n}\n\nexport default SignForm;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"sign-form\": SignForm;\n }\n}\n"]}
@@ -1,22 +1,22 @@
1
- import { type HTMLTemplate } from "../lib/templates.js";
2
- import AvatarAnchor from "../items/avatar-a.js";
3
- import GroupSTD from "./std.js";
1
+ import { type HTMLTemplate } from "../../lib/templates.js";
2
+ import { GodownElement } from "../../root.js";
3
+ import AvatarA from "../a/avatar-a.js";
4
4
  /**
5
5
  * AvatarGroup ensure that the display content does not exceed the maximum value, and display the excess quantity.
6
6
  */
7
- export declare class AvatarGroup extends GroupSTD {
7
+ export declare class AvatarGroup extends GodownElement {
8
8
  /**
9
9
  * The maximum number of elements that can be accepted for this element.
10
10
  */
11
11
  max: number;
12
12
  /**
13
- * When the content overflows, create an {@linkcode AvatarAnchor} with the same {@linkcode AvatarAnchor.more} attribute as more.
13
+ * When the content overflows, create an {@linkcode AvatarA} with the same {@linkcode AvatarA.more} attribute as more.
14
14
  */
15
15
  more: number;
16
16
  static styles: import("lit").CSSResult[];
17
17
  protected render(): HTMLTemplate;
18
18
  protected firstUpdated(): void;
19
- append(args?: AvatarAnchor): void;
19
+ append(args?: AvatarA): void;
20
20
  subtract(): void;
21
21
  }
22
22
  export default AvatarGroup;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"avatar-group.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/group/avatar-group.ts"],"names":[],"mappings":"AAEA,OAAO,EAAuB,KAAK,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAEhF,OAAO,EAAU,aAAa,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,OAAO,MAAM,kBAAkB,CAAC;AAIvC;;GAEG;AACH,qBACa,WAAY,SAAQ,aAAa;IAC5C;;OAEG;IACyB,GAAG,SAAM;IACrC;;OAEG;IACyB,IAAI,SAAK;IAErC,MAAM,CAAC,MAAM,4BAYX;IAEF,SAAS,CAAC,MAAM,IAAI,YAAY;IAKhC,SAAS,CAAC,YAAY;IAMtB,MAAM,CAAC,IAAI,UAAgB;IAe3B,QAAQ;CAYT;AAED,eAAe,WAAW,CAAC;AAE3B,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,WAAW,CAAC;KAC7B;CACF"}
@@ -1,21 +1,15 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- import { css, html, nothing, property } from "../deps.js";
8
- import { htmlSlot, htmlStyle } from "../lib/templates.js";
9
- import { append } from "../lib/utils.js";
10
- import AvatarAnchor from "../items/avatar-a.js";
11
- import { define } from "../root.js";
12
- import GroupSTD from "./std.js";
13
- import { ifValue } from "../lib/directives.js";
1
+ import { __decorate } from "tslib";
2
+ import { css, html, nothing, property } from "../../deps.js";
3
+ import { ifValue } from "../../lib/directives.js";
4
+ import { htmlSlot, htmlStyle } from "../../lib/templates.js";
5
+ import { append } from "../../lib/utils.js";
6
+ import { define, GodownElement } from "../../root.js";
7
+ import AvatarA from "../a/avatar-a.js";
14
8
  const defineName = "avatar-group";
15
9
  /**
16
10
  * AvatarGroup ensure that the display content does not exceed the maximum value, and display the excess quantity.
17
11
  */
18
- let AvatarGroup = class AvatarGroup extends GroupSTD {
12
+ let AvatarGroup = class AvatarGroup extends GodownElement {
19
13
  constructor() {
20
14
  super(...arguments);
21
15
  /**
@@ -23,20 +17,33 @@ let AvatarGroup = class AvatarGroup extends GroupSTD {
23
17
  */
24
18
  this.max = 99;
25
19
  /**
26
- * When the content overflows, create an {@linkcode AvatarAnchor} with the same {@linkcode AvatarAnchor.more} attribute as more.
20
+ * When the content overflows, create an {@linkcode AvatarA} with the same {@linkcode AvatarA.more} attribute as more.
27
21
  */
28
22
  this.more = 0;
29
23
  }
24
+ static { this.styles = [
25
+ css `
26
+ :host {
27
+ display: flex;
28
+ width: 100%;
29
+ height: 100%;
30
+ }
31
+
32
+ div {
33
+ display: contents;
34
+ }
35
+ `,
36
+ ]; }
30
37
  render() {
31
38
  const cssStr = `slot::slotted(:nth-of-type(n + ${(this.max || 0) + 1})) {display: none;}`;
32
- return html `${htmlSlot()} ${htmlStyle(cssStr)} ${ifValue(this.more > 0, new AvatarAnchor({ more: this.more }), nothing)}`;
39
+ return html `${htmlSlot()} ${htmlStyle(cssStr)} ${ifValue(this.more > 0, new AvatarA({ more: this.more }), nothing)}`;
33
40
  }
34
41
  firstUpdated() {
35
42
  if (!this.more && this.assigned.length > this.max) {
36
43
  this.more = this.assigned.length - this.max;
37
44
  }
38
45
  }
39
- append(args = new AvatarAnchor()) {
46
+ append(args = new AvatarA()) {
40
47
  if (this.max && this.assigned.length === this.max) {
41
48
  this.assigned.pop().style.display = "none";
42
49
  append(this, args);
@@ -66,19 +73,6 @@ let AvatarGroup = class AvatarGroup extends GroupSTD {
66
73
  }
67
74
  }
68
75
  };
69
- AvatarGroup.styles = [
70
- css `
71
- :host {
72
- display: flex;
73
- width: 100%;
74
- height: 100%;
75
- }
76
-
77
- div {
78
- display: contents;
79
- }
80
- `,
81
- ];
82
76
  __decorate([
83
77
  property({ type: Number })
84
78
  ], AvatarGroup.prototype, "max", void 0);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"avatar-group.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/group/avatar-group.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAqB,MAAM,wBAAwB,CAAC;AAChF,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,OAAO,MAAM,kBAAkB,CAAC;AAEvC,MAAM,UAAU,GAAG,cAAc,CAAC;AAElC;;GAEG;AAEI,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,aAAa;IAAvC;;QACL;;WAEG;QACyB,QAAG,GAAG,EAAE,CAAC;QACrC;;WAEG;QACyB,SAAI,GAAG,CAAC,CAAC;IAsDvC,CAAC;aApDQ,WAAM,GAAG;QACd,GAAG,CAAA;;;;;;;;;;KAUF;KACF,AAZY,CAYX;IAEQ,MAAM;QACd,MAAM,M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AAI,CAAC,IAAI,IAAI,CAAC,CAAC;QACjB,CAAC;aAAM,CAAC;YACN,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACrB,CAAC;IACH,CAAC;IAED,QAAQ;QACN,IAAI,IAAI,CAAC,IAAI,KAAK,CAAC,EAAE,CAAC;YACpB,IAAI,CAAC,QAAQ,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,OAAO,GAAG,EAAE,CAAC;YACvC,IAAI,CAAC,IAAI,GAAG,CAAC,CAAC;YACd,OAAO;QACT,CAAC;aAAM,IAAI,IAAI,CAAC,IAAI,GAAG,CAAC,EAAE,CAAC;YACzB,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC;QACjB,CAAC;QACD,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC;YACzB,IAAI,CAAC,QAAQ,CAAC,GAAG,EAAE,CAAC,MAAM,EAAE,CAAC;QAC/B,CAAC;IACH,CAAC;;AAzD2B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;wCAAU;AAIT;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;yCAAU;AAR1B,WAAW;IADvB,MAAM,CAAC,UAAU,CAAC;GACN,WAAW,CA8DvB;;AAED,eAAe,WAAW,CAAC","sourcesContent":["import { css, html, nothing, property } from \"../../deps.js\";\nimport { ifValue } from \"../../lib/directives.js\";\nimport { htmlSlot, htmlStyle, type HTMLTemplate } from \"../../lib/templates.js\";\nimport { append } from \"../../lib/utils.js\";\nimport { define, GodownElement } from \"../../root.js\";\nimport AvatarA from \"../a/avatar-a.js\";\n\nconst defineName = \"avatar-group\";\n\n/**\n * AvatarGroup ensure that the display content does not exceed the maximum value, and display the excess quantity.\n */\n@define(defineName)\nexport class AvatarGroup extends GodownElement {\n /**\n * The maximum number of elements that can be accepted for this element.\n */\n @property({ type: Number }) max = 99;\n /**\n * When the content overflows, create an {@linkcode AvatarA} with the same {@linkcode AvatarA.more} attribute as more.\n */\n @property({ type: Number }) more = 0;\n\n static styles = [\n css`\n :host {\n display: flex;\n width: 100%;\n height: 100%;\n }\n\n div {\n display: contents;\n }\n `,\n ];\n\n protected render(): HTMLTemplate {\n const cssStr = `slot::slotted(:nth-of-type(n + ${(this.max || 0) + 1})) {display: none;}`;\n return html`${htmlSlot()} ${htmlStyle(cssStr)} ${ifValue(this.more > 0, new AvatarA({ more: this.more }), nothing)}`;\n }\n\n protected firstUpdated() {\n if (!this.more && this.assigned.length > this.max) {\n this.more = this.assigned.length - this.max;\n }\n }\n\n append(args = new AvatarA()) {\n if (this.max && this.assigned.length === this.max) {\n this.assigned.pop().style.display = \"none\";\n append(this, args);\n this.assigned.pop().style.display = \"none\";\n this.more = 2;\n } else if (this.max && this.assigned.length > this.max) {\n append(this, args);\n this.assigned.pop().style.display = \"none\";\n this.more += 1;\n } else {\n append(this, args);\n }\n }\n\n subtract() {\n if (this.more === 2) {\n this.assigned.pop().style.display = \"\";\n this.more = 0;\n return;\n } else if (this.more > 0) {\n this.more -= 1;\n }\n if (this.assigned.length) {\n this.assigned.pop().remove();\n }\n }\n}\n\nexport default AvatarGroup;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"avatar-group\": AvatarGroup;\n }\n}\n"]}
@@ -1,9 +1,9 @@
1
- import { type HTMLTemplate } from "../lib/templates.js";
2
- import GroupSTD from "./std.js";
1
+ import { type HTMLTemplate } from "../../lib/templates.js";
2
+ import { GodownElement } from "../../root.js";
3
3
  /**
4
4
  * DetailsGroup used to support multiple details like.
5
5
  */
6
- export declare class DetailsGroup extends GroupSTD {
6
+ export declare class DetailsGroup extends GodownElement {
7
7
  /**
8
8
  * Default open element index.
9
9
  */
@@ -0,0 +1 @@
1
+ {"version":3,"file":"details-group.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/group/details-group.ts"],"names":[],"mappings":"AACA,OAAO,EAAY,KAAK,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,EAAU,aAAa,EAAE,MAAM,eAAe,CAAC;AAItD;;GAEG;AACH,qBACa,YAAa,SAAQ,aAAa;IAC7C;;OAEG;IACyB,KAAK,SAAM;IACvC;;OAEG;IAC0B,IAAI,UAAS;IAE1C,MAAM,CAAC,MAAM,4BAMX;IAEF,SAAS,CAAC,MAAM,IAAI,YAAY;IAIhC,iBAAiB;IAQjB,oBAAoB;IAKpB,SAAS,CAAC,YAAY,CAAC,CAAC,EAAE,UAAU;CAIrC;AAED,eAAe,YAAY,CAAC;AAE5B,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,eAAe,EAAE,YAAY,CAAC;KAC/B;CACF"}
@@ -1,18 +1,12 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- import { css, property } from "../deps.js";
8
- import { htmlSlot } from "../lib/templates.js";
9
- import { define } from "../root.js";
10
- import GroupSTD from "./std.js";
1
+ import { __decorate } from "tslib";
2
+ import { css, property } from "../../deps.js";
3
+ import { htmlSlot } from "../../lib/templates.js";
4
+ import { define, GodownElement } from "../../root.js";
11
5
  const defineName = "details-group";
12
6
  /**
13
7
  * DetailsGroup used to support multiple details like.
14
8
  */
15
- let DetailsGroup = class DetailsGroup extends GroupSTD {
9
+ let DetailsGroup = class DetailsGroup extends GodownElement {
16
10
  constructor() {
17
11
  super(...arguments);
18
12
  /**
@@ -24,6 +18,13 @@ let DetailsGroup = class DetailsGroup extends GroupSTD {
24
18
  */
25
19
  this.only = false;
26
20
  }
21
+ static { this.styles = [
22
+ css `
23
+ :host {
24
+ display: block;
25
+ }
26
+ `,
27
+ ]; }
27
28
  render() {
28
29
  return htmlSlot();
29
30
  }
@@ -43,13 +44,6 @@ let DetailsGroup = class DetailsGroup extends GroupSTD {
43
44
  this.index = this.assigned.indexOf(e.target);
44
45
  }
45
46
  };
46
- DetailsGroup.styles = [
47
- css `
48
- :host {
49
- display: block;
50
- }
51
- `,
52
- ];
53
47
  __decorate([
54
48
  property({ type: Number })
55
49
  ], DetailsGroup.prototype, "index", void 0);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"details-group.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/group/details-group.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAqB,MAAM,wBAAwB,CAAC;AACrE,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEtD,MAAM,UAAU,GAAG,eAAe,CAAC;AAEnC;;GAEG;AAEI,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,aAAa;IAAxC;;QACL;;WAEG;QACyB,UAAK,GAAG,CAAC,CAAC,CAAC;QACvC;;WAEG;QAC0B,SAAI,GAAG,KAAK,CAAC;IA+B5C,CAAC;aA7BQ,WAAM,GAAG;QACd,GAAG,CAAA;;;;KAIF;KACF,AANY,CAMX;IAEQ,MAAM;QACd,OAAO,QAAQ,EAAE,CAAC;IACpB,CAAC;IAED,iBAAiB;QACf,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAC1B,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC;YACd,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC;QAClD,CAAC;QACD,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,YAAY,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;IACtD,CAAC;IAED,oBAAoB;QAClB,KAAK,CAAC,oBAAoB,EAAE,CAAC;QAC7B,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC;IAClB,CAAC;IAES,YAAY,CAAC,CAAa;QAClC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;QACnD,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,MAAqB,CAAC,CAAC;IAC9D,CAAC;;AAlC2B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;2CAAY;AAIV;IAA5B,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;0CAAc;AAR/B,YAAY;IADxB,MAAM,CAAC,UAAU,CAAC;GACN,YAAY,CAuCxB;;AAED,eAAe,YAAY,CAAC","sourcesContent":["import { css, property } from \"../../deps.js\";\nimport { htmlSlot, type HTMLTemplate } from \"../../lib/templates.js\";\nimport { define, GodownElement } from \"../../root.js\";\n\nconst defineName = \"details-group\";\n\n/**\n * DetailsGroup used to support multiple details like.\n */\n@define(defineName)\nexport class DetailsGroup extends GodownElement {\n /**\n * Default open element index.\n */\n @property({ type: Number }) index = -1;\n /**\n * If true, close the previous element when switching index.\n */\n @property({ type: Boolean }) only = false;\n\n static styles = [\n css`\n :host {\n display: block;\n }\n `,\n ];\n\n protected render(): HTMLTemplate {\n return htmlSlot();\n }\n\n connectedCallback() {\n super.connectedCallback();\n if (this.only) {\n this.addEvent(this, \"click\", this._handleClick);\n }\n this.children[this.index]?.setAttribute(\"open\", \"\");\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this.index = -1;\n }\n\n protected _handleClick(e: MouseEvent) {\n this.children[this.index]?.removeAttribute(\"open\");\n this.index = this.assigned.indexOf(e.target as HTMLElement);\n }\n}\n\nexport default DetailsGroup;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"details-group\": DetailsGroup;\n }\n}\n"]}