godown 2.5.1 → 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 (497) 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.map +1 -1
  39. package/conf.js.map +1 -1
  40. package/deps.d.ts +4 -3
  41. package/deps.d.ts.map +1 -1
  42. package/deps.js +4 -3
  43. package/deps.js.map +1 -1
  44. package/details-group.d.ts +2 -0
  45. package/details-group.d.ts.map +1 -0
  46. package/details-group.js +2 -0
  47. package/details-group.js.map +1 -0
  48. package/divider-line.d.ts +2 -0
  49. package/divider-line.d.ts.map +1 -0
  50. package/divider-line.js +2 -0
  51. package/divider-line.js.map +1 -0
  52. package/drag-box.d.ts +2 -0
  53. package/drag-box.d.ts.map +1 -0
  54. package/drag-box.js +2 -0
  55. package/drag-box.js.map +1 -0
  56. package/flex-flow.d.ts +2 -0
  57. package/flex-flow.d.ts.map +1 -0
  58. package/flex-flow.js +2 -0
  59. package/flex-flow.js.map +1 -0
  60. package/godown-element.d.ts +2 -2
  61. package/godown-element.d.ts.map +1 -1
  62. package/godown-element.js +1 -1
  63. package/godown-element.js.map +1 -1
  64. package/index.d.ts +2 -6
  65. package/index.d.ts.map +1 -1
  66. package/index.js +2 -6
  67. package/index.js.map +1 -1
  68. package/label-input.d.ts +2 -0
  69. package/label-input.d.ts.map +1 -0
  70. package/label-input.js +2 -0
  71. package/label-input.js.map +1 -0
  72. package/lib/directives.d.ts.map +1 -1
  73. package/lib/directives.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/event-collection.js.map +1 -1
  77. package/lib/route-tree.d.ts.map +1 -1
  78. package/lib/route-tree.js.map +1 -1
  79. package/lib/templates.d.ts.map +1 -1
  80. package/lib/templates.js.map +1 -1
  81. package/lib/utils.d.ts.map +1 -1
  82. package/lib/utils.js.map +1 -1
  83. package/link-a.d.ts +2 -0
  84. package/link-a.d.ts.map +1 -0
  85. package/link-a.js +2 -0
  86. package/link-a.js.map +1 -0
  87. package/loading-progress.d.ts +2 -0
  88. package/loading-progress.d.ts.map +1 -0
  89. package/loading-progress.js +2 -0
  90. package/loading-progress.js.map +1 -0
  91. package/nav-aside.d.ts +2 -0
  92. package/nav-aside.d.ts.map +1 -0
  93. package/nav-aside.js +2 -0
  94. package/nav-aside.js.map +1 -0
  95. package/nav-layout.d.ts +2 -0
  96. package/nav-layout.d.ts.map +1 -0
  97. package/nav-layout.js +2 -0
  98. package/nav-layout.js.map +1 -0
  99. package/open-details.d.ts +2 -0
  100. package/open-details.d.ts.map +1 -0
  101. package/open-details.js +2 -0
  102. package/open-details.js.map +1 -0
  103. package/open-dialog.d.ts +2 -0
  104. package/open-dialog.d.ts.map +1 -0
  105. package/open-dialog.js +2 -0
  106. package/open-dialog.js.map +1 -0
  107. package/open-list.d.ts +2 -0
  108. package/open-list.d.ts.map +1 -0
  109. package/open-list.js +2 -0
  110. package/open-list.js.map +1 -0
  111. package/open-offset.d.ts +2 -0
  112. package/open-offset.d.ts.map +1 -0
  113. package/open-offset.js +2 -0
  114. package/open-offset.js.map +1 -0
  115. package/open-tooltip.d.ts +2 -0
  116. package/open-tooltip.d.ts.map +1 -0
  117. package/open-tooltip.js +2 -0
  118. package/open-tooltip.js.map +1 -0
  119. package/overbreath-text.d.ts +2 -0
  120. package/overbreath-text.d.ts.map +1 -0
  121. package/overbreath-text.js +2 -0
  122. package/overbreath-text.js.map +1 -0
  123. package/package.json +57 -10
  124. package/react/create.d.ts.map +1 -1
  125. package/react/create.js.map +1 -1
  126. package/react/index.d.ts +37 -7
  127. package/react/index.d.ts.map +1 -1
  128. package/react/index.js +114 -7
  129. package/react/index.js.map +1 -1
  130. package/root.d.ts.map +1 -1
  131. package/root.js +3 -2
  132. package/root.js.map +1 -1
  133. package/route-view.d.ts +2 -0
  134. package/route-view.d.ts.map +1 -0
  135. package/route-view.js +2 -0
  136. package/route-view.js.map +1 -0
  137. package/scroll-x.d.ts +2 -0
  138. package/scroll-x.d.ts.map +1 -0
  139. package/scroll-x.js +2 -0
  140. package/scroll-x.js.map +1 -0
  141. package/search-input.d.ts +2 -0
  142. package/search-input.d.ts.map +1 -0
  143. package/search-input.js +2 -0
  144. package/search-input.js.map +1 -0
  145. package/select-input.d.ts +2 -0
  146. package/select-input.d.ts.map +1 -0
  147. package/select-input.js +2 -0
  148. package/select-input.js.map +1 -0
  149. package/sign-form.d.ts +2 -0
  150. package/sign-form.d.ts.map +1 -0
  151. package/sign-form.js +2 -0
  152. package/sign-form.js.map +1 -0
  153. package/skeleton-screen.d.ts +2 -0
  154. package/skeleton-screen.d.ts.map +1 -0
  155. package/skeleton-screen.js +2 -0
  156. package/skeleton-screen.js.map +1 -0
  157. package/split-input.d.ts +2 -0
  158. package/split-input.d.ts.map +1 -0
  159. package/split-input.js +2 -0
  160. package/split-input.js.map +1 -0
  161. package/super-a.d.ts +2 -0
  162. package/super-a.d.ts.map +1 -0
  163. package/super-a.js +2 -0
  164. package/super-a.js.map +1 -0
  165. package/switch-input.d.ts +2 -0
  166. package/switch-input.d.ts.map +1 -0
  167. package/switch-input.js +2 -0
  168. package/switch-input.js.map +1 -0
  169. package/tab-group.d.ts +2 -0
  170. package/tab-group.d.ts.map +1 -0
  171. package/tab-group.js +2 -0
  172. package/tab-group.js.map +1 -0
  173. package/time-bar.d.ts +2 -0
  174. package/time-bar.d.ts.map +1 -0
  175. package/time-bar.js +2 -0
  176. package/time-bar.js.map +1 -0
  177. package/typewriter-text.d.ts +2 -0
  178. package/typewriter-text.d.ts.map +1 -0
  179. package/typewriter-text.js +2 -0
  180. package/typewriter-text.js.map +1 -0
  181. package/{items → web-components/a}/avatar-a.d.ts +7 -7
  182. package/web-components/a/avatar-a.d.ts.map +1 -0
  183. package/{items → web-components/a}/avatar-a.js +57 -62
  184. package/web-components/a/avatar-a.js.map +1 -0
  185. package/{items → web-components/a}/link-a.d.ts +6 -6
  186. package/web-components/a/link-a.d.ts.map +1 -0
  187. package/{items → web-components/a}/link-a.js +16 -21
  188. package/web-components/a/link-a.js.map +1 -0
  189. package/{items → web-components/a}/super-a.d.ts +5 -5
  190. package/web-components/a/super-a.d.ts.map +1 -0
  191. package/{items → web-components/a}/super-a.js +34 -40
  192. package/web-components/a/super-a.js.map +1 -0
  193. package/{items → web-components/button}/base-button.d.ts +3 -3
  194. package/web-components/button/base-button.d.ts.map +1 -0
  195. package/{items → web-components/button}/base-button.js +99 -105
  196. package/web-components/button/base-button.js.map +1 -0
  197. package/{view/rotation-pool.d.ts → web-components/carousel/carousel-slider.d.ts} +7 -7
  198. package/web-components/carousel/carousel-slider.d.ts.map +1 -0
  199. package/{view/rotation-pool.js → web-components/carousel/carousel-slider.js} +87 -92
  200. package/web-components/carousel/carousel-slider.js.map +1 -0
  201. package/{input-form/sign-form.d.ts → web-components/form/base-form.d.ts} +9 -18
  202. package/web-components/form/base-form.d.ts.map +1 -0
  203. package/{input-form/sign-form.js → web-components/form/base-form.js} +32 -40
  204. package/web-components/form/base-form.js.map +1 -0
  205. package/web-components/form/sign-form.d.ts +19 -0
  206. package/web-components/form/sign-form.d.ts.map +1 -0
  207. package/web-components/form/sign-form.js +16 -0
  208. package/web-components/form/sign-form.js.map +1 -0
  209. package/{group → web-components/group}/avatar-group.d.ts +6 -6
  210. package/web-components/group/avatar-group.d.ts.map +1 -0
  211. package/{group → web-components/group}/avatar-group.js +24 -30
  212. package/web-components/group/avatar-group.js.map +1 -0
  213. package/{group → web-components/group}/details-group.d.ts +3 -3
  214. package/web-components/group/details-group.d.ts.map +1 -0
  215. package/{group → web-components/group}/details-group.js +12 -18
  216. package/web-components/group/details-group.js.map +1 -0
  217. package/{group → web-components/group}/tab-group.d.ts +4 -4
  218. package/web-components/group/tab-group.d.ts.map +1 -0
  219. package/{group → web-components/group}/tab-group.js +50 -56
  220. package/web-components/group/tab-group.js.map +1 -0
  221. package/web-components/index.d.ts +38 -0
  222. package/web-components/index.d.ts.map +1 -0
  223. package/web-components/index.js +39 -0
  224. package/web-components/index.js.map +1 -0
  225. package/{input-form → web-components/input}/base-input.d.ts +4 -4
  226. package/web-components/input/base-input.d.ts.map +1 -0
  227. package/{input-form → web-components/input}/base-input.js +79 -84
  228. package/web-components/input/base-input.js.map +1 -0
  229. package/{input-form/std.d.ts → web-components/input/input.d.ts} +4 -16
  230. package/web-components/input/input.d.ts.map +1 -0
  231. package/{input-form/std.js → web-components/input/input.js} +27 -54
  232. package/web-components/input/input.js.map +1 -0
  233. package/{input-form → web-components/input}/label-input.d.ts +4 -4
  234. package/web-components/input/label-input.d.ts.map +1 -0
  235. package/{input-form → web-components/input}/label-input.js +55 -60
  236. package/web-components/input/label-input.js.map +1 -0
  237. package/{input-form → web-components/input}/search-input.d.ts +4 -4
  238. package/web-components/input/search-input.d.ts.map +1 -0
  239. package/{input-form → web-components/input}/search-input.js +59 -64
  240. package/web-components/input/search-input.js.map +1 -0
  241. package/{input-form → web-components/input}/select-input.d.ts +4 -4
  242. package/web-components/input/select-input.d.ts.map +1 -0
  243. package/{input-form → web-components/input}/select-input.js +95 -100
  244. package/web-components/input/select-input.js.map +1 -0
  245. package/{input-form → web-components/input}/split-input.d.ts +4 -4
  246. package/web-components/input/split-input.d.ts.map +1 -0
  247. package/{input-form → web-components/input}/split-input.js +56 -61
  248. package/web-components/input/split-input.js.map +1 -0
  249. package/{input-form → web-components/input}/switch-input.d.ts +4 -4
  250. package/web-components/input/switch-input.d.ts.map +1 -0
  251. package/{input-form → web-components/input}/switch-input.js +42 -47
  252. package/web-components/input/switch-input.js.map +1 -0
  253. package/{items → web-components/items}/alert-item.d.ts +3 -3
  254. package/web-components/items/alert-item.d.ts.map +1 -0
  255. package/{items → web-components/items}/alert-item.js +38 -43
  256. package/web-components/items/alert-item.js.map +1 -0
  257. package/{items → web-components/items}/card-item.d.ts +4 -4
  258. package/web-components/items/card-item.d.ts.map +1 -0
  259. package/{items → web-components/items}/card-item.js +57 -63
  260. package/web-components/items/card-item.js.map +1 -0
  261. package/{layout → web-components/items}/drag-box.d.ts +3 -3
  262. package/web-components/items/drag-box.d.ts.map +1 -0
  263. package/{layout → web-components/items}/drag-box.js +13 -19
  264. package/web-components/items/drag-box.js.map +1 -0
  265. package/web-components/items/index.d.ts +5 -0
  266. package/web-components/items/index.d.ts.map +1 -0
  267. package/web-components/items/index.js +6 -0
  268. package/web-components/items/index.js.map +1 -0
  269. package/{items → web-components/items}/time-bar.d.ts +3 -3
  270. package/web-components/items/time-bar.d.ts.map +1 -0
  271. package/{items → web-components/items}/time-bar.js +12 -17
  272. package/web-components/items/time-bar.js.map +1 -0
  273. package/web-components/layout/divider-line.d.ts +20 -0
  274. package/web-components/layout/divider-line.d.ts.map +1 -0
  275. package/{layout/div-line.js → web-components/layout/divider-line.js} +24 -30
  276. package/web-components/layout/divider-line.js.map +1 -0
  277. package/{layout → web-components/layout}/flex-flow.d.ts +3 -3
  278. package/web-components/layout/flex-flow.d.ts.map +1 -0
  279. package/{layout → web-components/layout}/flex-flow.js +12 -18
  280. package/web-components/layout/flex-flow.js.map +1 -0
  281. package/web-components/layout/index.d.ts +5 -0
  282. package/web-components/layout/index.d.ts.map +1 -0
  283. package/web-components/layout/index.js +6 -0
  284. package/web-components/layout/index.js.map +1 -0
  285. package/{layout → web-components/layout}/nav-aside.d.ts +4 -4
  286. package/web-components/layout/nav-aside.d.ts.map +1 -0
  287. package/{layout → web-components/layout}/nav-aside.js +19 -25
  288. package/web-components/layout/nav-aside.js.map +1 -0
  289. package/{layout → web-components/layout}/nav-layout.d.ts +4 -4
  290. package/web-components/layout/nav-layout.d.ts.map +1 -0
  291. package/{layout → web-components/layout}/nav-layout.js +31 -37
  292. package/web-components/layout/nav-layout.js.map +1 -0
  293. package/{items/load-progress.d.ts → web-components/loading/loading-progress.d.ts} +7 -7
  294. package/web-components/loading/loading-progress.d.ts.map +1 -0
  295. package/{items/load-progress.js → web-components/loading/loading-progress.js} +41 -47
  296. package/web-components/loading/loading-progress.js.map +1 -0
  297. package/{layout → web-components/loading}/skeleton-screen.d.ts +4 -4
  298. package/web-components/loading/skeleton-screen.d.ts.map +1 -0
  299. package/{layout → web-components/loading}/skeleton-screen.js +24 -30
  300. package/web-components/loading/skeleton-screen.js.map +1 -0
  301. package/{view/details-expand.d.ts → web-components/open/open-details.d.ts} +8 -8
  302. package/web-components/open/open-details.d.ts.map +1 -0
  303. package/{view/details-expand.js → web-components/open/open-details.js} +35 -40
  304. package/web-components/open/open-details.js.map +1 -0
  305. package/{items/dialog-item.d.ts → web-components/open/open-dialog.d.ts} +8 -8
  306. package/web-components/open/open-dialog.d.ts.map +1 -0
  307. package/{items/dialog-item.js → web-components/open/open-dialog.js} +83 -89
  308. package/web-components/open/open-dialog.js.map +1 -0
  309. package/web-components/open/open-list.d.ts +20 -0
  310. package/web-components/open/open-list.d.ts.map +1 -0
  311. package/web-components/open/open-list.js +71 -0
  312. package/web-components/open/open-list.js.map +1 -0
  313. package/{view/offset-expand.d.ts → web-components/open/open-offset.d.ts} +8 -8
  314. package/web-components/open/open-offset.d.ts.map +1 -0
  315. package/{view/offset-expand.js → web-components/open/open-offset.js} +66 -71
  316. package/web-components/open/open-offset.js.map +1 -0
  317. package/web-components/open/open-tooltip.d.ts +24 -0
  318. package/web-components/open/open-tooltip.d.ts.map +1 -0
  319. package/{view/tool-tip.js → web-components/open/open-tooltip.js} +28 -33
  320. package/web-components/open/open-tooltip.js.map +1 -0
  321. package/{view/std.d.ts → web-components/open/open.d.ts} +6 -6
  322. package/web-components/open/open.d.ts.map +1 -0
  323. package/{view/std.js → web-components/open/open.js} +35 -40
  324. package/web-components/open/open.js.map +1 -0
  325. package/{effect → web-components/text}/clip-text.d.ts +4 -4
  326. package/web-components/text/clip-text.d.ts.map +1 -0
  327. package/web-components/text/clip-text.js +44 -0
  328. package/web-components/text/clip-text.js.map +1 -0
  329. package/{effect → web-components/text}/overbreath-text.d.ts +4 -4
  330. package/web-components/text/overbreath-text.d.ts.map +1 -0
  331. package/{effect → web-components/text}/overbreath-text.js +21 -27
  332. package/web-components/text/overbreath-text.js.map +1 -0
  333. package/{effect → web-components/text}/typewriter-text.d.ts +4 -4
  334. package/web-components/text/typewriter-text.d.ts.map +1 -0
  335. package/{effect → web-components/text}/typewriter-text.js +38 -44
  336. package/web-components/text/typewriter-text.js.map +1 -0
  337. package/{view → web-components/view}/route-view.d.ts +4 -4
  338. package/web-components/view/route-view.d.ts.map +1 -0
  339. package/{view → web-components/view}/route-view.js +15 -20
  340. package/web-components/view/route-view.js.map +1 -0
  341. package/{view → web-components/view}/scroll-x.d.ts +2 -2
  342. package/web-components/view/scroll-x.d.ts.map +1 -0
  343. package/{view → web-components/view}/scroll-x.js +35 -40
  344. package/web-components/view/scroll-x.js.map +1 -0
  345. package/{view/with-wrap.d.ts → web-components/view/wrap-view.d.ts} +7 -7
  346. package/web-components/view/wrap-view.d.ts.map +1 -0
  347. package/{view/with-wrap.js → web-components/view/wrap-view.js} +29 -34
  348. package/web-components/view/wrap-view.js.map +1 -0
  349. package/wrap-view.d.ts +2 -0
  350. package/wrap-view.d.ts.map +1 -0
  351. package/wrap-view.js +2 -0
  352. package/wrap-view.js.map +1 -0
  353. package/effect/clip-text.d.ts.map +0 -1
  354. package/effect/clip-text.js +0 -50
  355. package/effect/clip-text.js.map +0 -1
  356. package/effect/index.d.ts +0 -4
  357. package/effect/index.d.ts.map +0 -1
  358. package/effect/index.js +0 -4
  359. package/effect/index.js.map +0 -1
  360. package/effect/overbreath-text.d.ts.map +0 -1
  361. package/effect/overbreath-text.js.map +0 -1
  362. package/effect/std.d.ts +0 -4
  363. package/effect/std.d.ts.map +0 -1
  364. package/effect/std.js +0 -4
  365. package/effect/std.js.map +0 -1
  366. package/effect/typewriter-text.d.ts.map +0 -1
  367. package/effect/typewriter-text.js.map +0 -1
  368. package/group/avatar-group.d.ts.map +0 -1
  369. package/group/avatar-group.js.map +0 -1
  370. package/group/details-group.d.ts.map +0 -1
  371. package/group/details-group.js.map +0 -1
  372. package/group/index.d.ts +0 -4
  373. package/group/index.d.ts.map +0 -1
  374. package/group/index.js +0 -4
  375. package/group/index.js.map +0 -1
  376. package/group/std.d.ts +0 -4
  377. package/group/std.d.ts.map +0 -1
  378. package/group/std.js +0 -4
  379. package/group/std.js.map +0 -1
  380. package/group/tab-group.d.ts.map +0 -1
  381. package/group/tab-group.js.map +0 -1
  382. package/input-form/base-input.d.ts.map +0 -1
  383. package/input-form/base-input.js.map +0 -1
  384. package/input-form/index.d.ts +0 -8
  385. package/input-form/index.d.ts.map +0 -1
  386. package/input-form/index.js +0 -8
  387. package/input-form/index.js.map +0 -1
  388. package/input-form/label-input.d.ts.map +0 -1
  389. package/input-form/label-input.js.map +0 -1
  390. package/input-form/search-input.d.ts.map +0 -1
  391. package/input-form/search-input.js.map +0 -1
  392. package/input-form/select-input.d.ts.map +0 -1
  393. package/input-form/select-input.js.map +0 -1
  394. package/input-form/sign-form.d.ts.map +0 -1
  395. package/input-form/sign-form.js.map +0 -1
  396. package/input-form/split-input.d.ts.map +0 -1
  397. package/input-form/split-input.js.map +0 -1
  398. package/input-form/std.d.ts.map +0 -1
  399. package/input-form/std.js.map +0 -1
  400. package/input-form/switch-input.d.ts.map +0 -1
  401. package/input-form/switch-input.js.map +0 -1
  402. package/items/alert-item.d.ts.map +0 -1
  403. package/items/alert-item.js.map +0 -1
  404. package/items/avatar-a.d.ts.map +0 -1
  405. package/items/avatar-a.js.map +0 -1
  406. package/items/base-button.d.ts.map +0 -1
  407. package/items/base-button.js.map +0 -1
  408. package/items/card-item.d.ts.map +0 -1
  409. package/items/card-item.js.map +0 -1
  410. package/items/dialog-item.d.ts.map +0 -1
  411. package/items/dialog-item.js.map +0 -1
  412. package/items/index.d.ts +0 -10
  413. package/items/index.d.ts.map +0 -1
  414. package/items/index.js +0 -10
  415. package/items/index.js.map +0 -1
  416. package/items/link-a.d.ts.map +0 -1
  417. package/items/link-a.js.map +0 -1
  418. package/items/load-progress.d.ts.map +0 -1
  419. package/items/load-progress.js.map +0 -1
  420. package/items/std.d.ts +0 -4
  421. package/items/std.d.ts.map +0 -1
  422. package/items/std.js +0 -4
  423. package/items/std.js.map +0 -1
  424. package/items/super-a.d.ts.map +0 -1
  425. package/items/super-a.js.map +0 -1
  426. package/items/time-bar.d.ts.map +0 -1
  427. package/items/time-bar.js.map +0 -1
  428. package/layout/div-line.d.ts +0 -20
  429. package/layout/div-line.d.ts.map +0 -1
  430. package/layout/div-line.js.map +0 -1
  431. package/layout/drag-box.d.ts.map +0 -1
  432. package/layout/drag-box.js.map +0 -1
  433. package/layout/flex-flow.d.ts.map +0 -1
  434. package/layout/flex-flow.js.map +0 -1
  435. package/layout/index.d.ts +0 -7
  436. package/layout/index.d.ts.map +0 -1
  437. package/layout/index.js +0 -7
  438. package/layout/index.js.map +0 -1
  439. package/layout/nav-aside.d.ts.map +0 -1
  440. package/layout/nav-aside.js.map +0 -1
  441. package/layout/nav-layout.d.ts.map +0 -1
  442. package/layout/nav-layout.js.map +0 -1
  443. package/layout/skeleton-screen.d.ts.map +0 -1
  444. package/layout/skeleton-screen.js.map +0 -1
  445. package/layout/std.d.ts +0 -4
  446. package/layout/std.d.ts.map +0 -1
  447. package/layout/std.js +0 -4
  448. package/layout/std.js.map +0 -1
  449. package/react/effect.d.ts +0 -5
  450. package/react/effect.d.ts.map +0 -1
  451. package/react/effect.js +0 -13
  452. package/react/effect.js.map +0 -1
  453. package/react/group.d.ts +0 -5
  454. package/react/group.d.ts.map +0 -1
  455. package/react/group.js +0 -13
  456. package/react/group.js.map +0 -1
  457. package/react/input-form.d.ts +0 -28
  458. package/react/input-form.d.ts.map +0 -1
  459. package/react/input-form.js +0 -38
  460. package/react/input-form.js.map +0 -1
  461. package/react/items.d.ts +0 -11
  462. package/react/items.d.ts.map +0 -1
  463. package/react/items.js +0 -31
  464. package/react/items.js.map +0 -1
  465. package/react/layout.d.ts +0 -8
  466. package/react/layout.d.ts.map +0 -1
  467. package/react/layout.js +0 -22
  468. package/react/layout.js.map +0 -1
  469. package/react/view.d.ts +0 -10
  470. package/react/view.d.ts.map +0 -1
  471. package/react/view.js +0 -28
  472. package/react/view.js.map +0 -1
  473. package/view/details-expand.d.ts.map +0 -1
  474. package/view/details-expand.js.map +0 -1
  475. package/view/index.d.ts +0 -9
  476. package/view/index.d.ts.map +0 -1
  477. package/view/index.js +0 -9
  478. package/view/index.js.map +0 -1
  479. package/view/menu-list.d.ts +0 -20
  480. package/view/menu-list.d.ts.map +0 -1
  481. package/view/menu-list.js +0 -76
  482. package/view/menu-list.js.map +0 -1
  483. package/view/offset-expand.d.ts.map +0 -1
  484. package/view/offset-expand.js.map +0 -1
  485. package/view/rotation-pool.d.ts.map +0 -1
  486. package/view/rotation-pool.js.map +0 -1
  487. package/view/route-view.d.ts.map +0 -1
  488. package/view/route-view.js.map +0 -1
  489. package/view/scroll-x.d.ts.map +0 -1
  490. package/view/scroll-x.js.map +0 -1
  491. package/view/std.d.ts.map +0 -1
  492. package/view/std.js.map +0 -1
  493. package/view/tool-tip.d.ts +0 -24
  494. package/view/tool-tip.d.ts.map +0 -1
  495. package/view/tool-tip.js.map +0 -1
  496. package/view/with-wrap.d.ts.map +0 -1
  497. package/view/with-wrap.js.map +0 -1
package/scroll-x.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export { default } from "./web-components/view/scroll-x.js";
2
+ //# sourceMappingURL=scroll-x.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scroll-x.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["scroll-x.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mCAAmC,CAAC"}
package/scroll-x.js ADDED
@@ -0,0 +1,2 @@
1
+ export { default } from "./web-components/view/scroll-x.js";
2
+ //# sourceMappingURL=scroll-x.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scroll-x.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["scroll-x.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mCAAmC,CAAC","sourcesContent":["export { default } from \"./web-components/view/scroll-x.js\";"]}
@@ -0,0 +1,2 @@
1
+ export { default } from "./web-components/input/search-input.js";
2
+ //# sourceMappingURL=search-input.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search-input.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["search-input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,wCAAwC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { default } from "./web-components/input/search-input.js";
2
+ //# sourceMappingURL=search-input.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search-input.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["search-input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,wCAAwC,CAAC","sourcesContent":["export { default } from \"./web-components/input/search-input.js\";"]}
@@ -0,0 +1,2 @@
1
+ export { default } from "./web-components/input/select-input.js";
2
+ //# sourceMappingURL=select-input.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"select-input.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["select-input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,wCAAwC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { default } from "./web-components/input/select-input.js";
2
+ //# sourceMappingURL=select-input.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"select-input.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["select-input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,wCAAwC,CAAC","sourcesContent":["export { default } from \"./web-components/input/select-input.js\";"]}
package/sign-form.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export { default } from "./web-components/form/sign-form.js";
2
+ //# 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":["sign-form.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAC"}
package/sign-form.js ADDED
@@ -0,0 +1,2 @@
1
+ export { default } from "./web-components/form/sign-form.js";
2
+ //# 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":["sign-form.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAC","sourcesContent":["export { default } from \"./web-components/form/sign-form.js\";"]}
@@ -0,0 +1,2 @@
1
+ export { default } from "./web-components/loading/skeleton-screen.js";
2
+ //# sourceMappingURL=skeleton-screen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skeleton-screen.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["skeleton-screen.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,6CAA6C,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { default } from "./web-components/loading/skeleton-screen.js";
2
+ //# sourceMappingURL=skeleton-screen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skeleton-screen.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["skeleton-screen.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,6CAA6C,CAAC","sourcesContent":["export { default } from \"./web-components/loading/skeleton-screen.js\";"]}
@@ -0,0 +1,2 @@
1
+ export { default } from "./web-components/input/split-input.js";
2
+ //# sourceMappingURL=split-input.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"split-input.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["split-input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC"}
package/split-input.js ADDED
@@ -0,0 +1,2 @@
1
+ export { default } from "./web-components/input/split-input.js";
2
+ //# sourceMappingURL=split-input.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"split-input.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["split-input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC","sourcesContent":["export { default } from \"./web-components/input/split-input.js\";"]}
package/super-a.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export { default } from "./web-components/a/super-a.js";
2
+ //# sourceMappingURL=super-a.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"super-a.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["super-a.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC"}
package/super-a.js ADDED
@@ -0,0 +1,2 @@
1
+ export { default } from "./web-components/a/super-a.js";
2
+ //# sourceMappingURL=super-a.js.map
package/super-a.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"super-a.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["super-a.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC","sourcesContent":["export { default } from \"./web-components/a/super-a.js\";"]}
@@ -0,0 +1,2 @@
1
+ export { default } from "./web-components/input/switch-input.js";
2
+ //# sourceMappingURL=switch-input.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"switch-input.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["switch-input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,wCAAwC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { default } from "./web-components/input/switch-input.js";
2
+ //# sourceMappingURL=switch-input.js.map
@@ -0,0 +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\";"]}
package/tab-group.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export { default } from "./web-components/group/tab-group.js";
2
+ //# sourceMappingURL=tab-group.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tab-group.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["tab-group.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qCAAqC,CAAC"}
package/tab-group.js ADDED
@@ -0,0 +1,2 @@
1
+ export { default } from "./web-components/group/tab-group.js";
2
+ //# sourceMappingURL=tab-group.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tab-group.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["tab-group.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qCAAqC,CAAC","sourcesContent":["export { default } from \"./web-components/group/tab-group.js\";"]}
package/time-bar.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export { default } from "./web-components/items/time-bar.js";
2
+ //# sourceMappingURL=time-bar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"time-bar.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["time-bar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAC"}
package/time-bar.js ADDED
@@ -0,0 +1,2 @@
1
+ export { default } from "./web-components/items/time-bar.js";
2
+ //# sourceMappingURL=time-bar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"time-bar.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["time-bar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAC","sourcesContent":["export { default } from \"./web-components/items/time-bar.js\";"]}
@@ -0,0 +1,2 @@
1
+ export { default } from "./web-components/text/typewriter-text.js";
2
+ //# sourceMappingURL=typewriter-text.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typewriter-text.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["typewriter-text.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,0CAA0C,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { default } from "./web-components/text/typewriter-text.js";
2
+ //# sourceMappingURL=typewriter-text.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typewriter-text.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["typewriter-text.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,0CAA0C,CAAC","sourcesContent":["export { default } from \"./web-components/text/typewriter-text.js\";"]}
@@ -1,9 +1,9 @@
1
- import { type HTMLTemplate } from "../lib/templates.js";
2
- import ItemsSTD from "./std.js";
1
+ import { type HTMLTemplate } from "../../lib/templates.js";
2
+ import SuperA from "./super-a.js";
3
3
  /**
4
4
  * AvatarAnchor renders the avatar or name and has a href.
5
5
  */
6
- export declare class AvatarAnchor extends ItemsSTD {
6
+ export declare class AvatarA extends SuperA {
7
7
  /**
8
8
  * Image src.
9
9
  */
@@ -17,11 +17,11 @@ export declare class AvatarAnchor extends ItemsSTD {
17
17
  */
18
18
  href: any;
19
19
  /**
20
- * If the image is not available, the {@linkcode AvatarAnchor.avaName} will be displayed.
20
+ * If the image is not available, the {@linkcode AvatarA.avaName} will be displayed.
21
21
  */
22
22
  name: string;
23
23
  /**
24
- * If there is a value, the {@linkcode AvatarAnchor.avaMore} will be displayed.
24
+ * If there is a value, the {@linkcode AvatarA.avaMore} will be displayed.
25
25
  */
26
26
  more: number;
27
27
  static styles: import("lit").CSSResult[];
@@ -31,10 +31,10 @@ export declare class AvatarAnchor extends ItemsSTD {
31
31
  avaName(): string;
32
32
  imgOnError(e: ErrorEvent): void;
33
33
  }
34
- export default AvatarAnchor;
34
+ export default AvatarA;
35
35
  declare global {
36
36
  interface HTMLElementTagNameMap {
37
- "avatar-a": AvatarAnchor;
37
+ "avatar-a": AvatarA;
38
38
  }
39
39
  }
40
40
  //# sourceMappingURL=avatar-a.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"avatar-a.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/a/avatar-a.ts"],"names":[],"mappings":"AACA,OAAO,EAAY,KAAK,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAErE,OAAO,MAAM,MAAM,cAAc,CAAC;AAKlC;;GAEG;AACH,qBACa,OAAQ,SAAQ,MAAM;IACjC;;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,OAAO,CAAC;AAEvB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,UAAU,EAAE,OAAO,CAAC;KACrB;CACF"}
@@ -1,19 +1,14 @@
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 { createScope, define } from "../root.js";
8
- import { css, html, ifDefined, property } from "../deps.js";
9
- import { htmlSlot } from "../lib/templates.js";
10
- import ItemsSTD from "./std.js";
1
+ import { __decorate } from "tslib";
2
+ import { css, html, ifDefined, property } from "../../deps.js";
3
+ import { htmlSlot } from "../../lib/templates.js";
4
+ import { createScope, define } from "../../root.js";
5
+ import SuperA from "./super-a.js";
11
6
  const defineName = "avatar-a";
12
7
  const cssvarScope = createScope(defineName);
13
8
  /**
14
9
  * AvatarAnchor renders the avatar or name and has a href.
15
10
  */
16
- let AvatarAnchor = class AvatarAnchor extends ItemsSTD {
11
+ let AvatarA = class AvatarA extends SuperA {
17
12
  constructor() {
18
13
  super(...arguments);
19
14
  /**
@@ -29,53 +24,16 @@ let AvatarAnchor = class AvatarAnchor extends ItemsSTD {
29
24
  */
30
25
  this.href = undefined;
31
26
  /**
32
- * If the image is not available, the {@linkcode AvatarAnchor.avaName} will be displayed.
27
+ * If the image is not available, the {@linkcode AvatarA.avaName} will be displayed.
33
28
  */
34
29
  this.name = "";
35
30
  /**
36
- * If there is a value, the {@linkcode AvatarAnchor.avaMore} will be displayed.
31
+ * If there is a value, the {@linkcode AvatarA.avaMore} will be displayed.
37
32
  */
38
33
  this.more = 0;
39
34
  }
40
- render() {
41
- return html `
42
- <a href="${ifDefined(this.href)}"> ${this.renderAva()} ${htmlSlot("mask")} </a>
43
- ${htmlSlot()}
44
- `;
45
- }
46
- renderAva() {
47
- if (this.more) {
48
- return html `<span>${this.avaMore()}</span>`;
49
- }
50
- if (this.src) {
51
- return html `<img src="${this.src}" @error=${this.imgOnError} alt="" />`;
52
- }
53
- if (this.name) {
54
- return html `<span>${this.avaName()}</span>`;
55
- }
56
- return htmlSlot("avatar");
57
- }
58
- avaMore() {
59
- if (this.more < 0) {
60
- return "+";
61
- }
62
- return (this.more > 99 ? "99" : this.more) + "+";
63
- }
64
- avaName() {
65
- const name = this.name.slice(0, 2);
66
- return name[0].toUpperCase() + name.slice(1);
67
- }
68
- imgOnError(e) {
69
- if (this.def) {
70
- e.target.src = this.def;
71
- }
72
- else {
73
- this.src = undefined;
74
- }
75
- }
76
- };
77
- AvatarAnchor.styles = [
78
- css `
35
+ static { this.styles = [
36
+ css `
79
37
  :host {
80
38
  ${cssvarScope}--ava: 1.5em;
81
39
  display: inline-flex;
@@ -115,25 +73,62 @@ AvatarAnchor.styles = [
115
73
  justify-content: center;
116
74
  }
117
75
  `,
118
- ];
76
+ ]; }
77
+ render() {
78
+ return html `
79
+ <a href="${ifDefined(this.href)}"> ${this.renderAva()} ${htmlSlot("mask")} </a>
80
+ ${htmlSlot()}
81
+ `;
82
+ }
83
+ renderAva() {
84
+ if (this.more) {
85
+ return html `<span>${this.avaMore()}</span>`;
86
+ }
87
+ if (this.src) {
88
+ return html `<img src="${this.src}" @error=${this.imgOnError} alt="" />`;
89
+ }
90
+ if (this.name) {
91
+ return html `<span>${this.avaName()}</span>`;
92
+ }
93
+ return htmlSlot("avatar");
94
+ }
95
+ avaMore() {
96
+ if (this.more < 0) {
97
+ return "+";
98
+ }
99
+ return (this.more > 99 ? "99" : this.more) + "+";
100
+ }
101
+ avaName() {
102
+ const name = this.name.slice(0, 2);
103
+ return name[0].toUpperCase() + name.slice(1);
104
+ }
105
+ imgOnError(e) {
106
+ if (this.def) {
107
+ e.target.src = this.def;
108
+ }
109
+ else {
110
+ this.src = undefined;
111
+ }
112
+ }
113
+ };
119
114
  __decorate([
120
115
  property()
121
- ], AvatarAnchor.prototype, "src", void 0);
116
+ ], AvatarA.prototype, "src", void 0);
122
117
  __decorate([
123
118
  property()
124
- ], AvatarAnchor.prototype, "def", void 0);
119
+ ], AvatarA.prototype, "def", void 0);
125
120
  __decorate([
126
121
  property()
127
- ], AvatarAnchor.prototype, "href", void 0);
122
+ ], AvatarA.prototype, "href", void 0);
128
123
  __decorate([
129
124
  property()
130
- ], AvatarAnchor.prototype, "name", void 0);
125
+ ], AvatarA.prototype, "name", void 0);
131
126
  __decorate([
132
127
  property({ type: Number })
133
- ], AvatarAnchor.prototype, "more", void 0);
134
- AvatarAnchor = __decorate([
128
+ ], AvatarA.prototype, "more", void 0);
129
+ AvatarA = __decorate([
135
130
  define(defineName)
136
- ], AvatarAnchor);
137
- export { AvatarAnchor };
138
- export default AvatarAnchor;
131
+ ], AvatarA);
132
+ export { AvatarA };
133
+ export default AvatarA;
139
134
  //# sourceMappingURL=avatar-a.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"avatar-a.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources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TMLTemplate } from \"../../lib/templates.js\";\nimport { createScope, define } from \"../../root.js\";\nimport SuperA from \"./super-a.js\";\n\nconst defineName = \"avatar-a\";\nconst cssvarScope = createScope(defineName);\n\n/**\n * AvatarAnchor renders the avatar or name and has a href.\n */\n@define(defineName)\nexport class AvatarA extends SuperA {\n /**\n * Image src.\n */\n @property() src: string | undefined | null = \"\";\n /**\n * Default image src.\n */\n @property() def: string = undefined;\n /**\n * Link href.\n */\n @property() href = undefined;\n /**\n * If the image is not available, the {@linkcode AvatarA.avaName} will be displayed.\n */\n @property() name = \"\";\n /**\n * If there is a value, the {@linkcode AvatarA.avaMore} will be displayed.\n */\n @property({ type: Number }) more = 0;\n\n static styles = [\n css`\n :host {\n ${cssvarScope}--ava: 1.5em;\n display: inline-flex;\n align-items: center;\n }\n\n * {\n border-radius: inherit;\n }\n\n img {\n width: 100%;\n height: 100%;\n }\n\n a {\n height: var(${cssvarScope}--ava);\n width: var(${cssvarScope}--ava);\n color: inherit;\n display: flex;\n position: relative;\n align-items: inherit;\n }\n\n span {\n position: absolute;\n width: 100%;\n text-align: center;\n }\n\n slot[name=\"mask\"] {\n position: absolute;\n display: flex;\n width: 100%;\n height: 100%;\n align-items: center;\n justify-content: center;\n }\n `,\n ];\n\n protected render(): HTMLTemplate {\n return html`\n <a href=\"${ifDefined(this.href)}\"> ${this.renderAva()} ${htmlSlot(\"mask\")} </a>\n ${htmlSlot()}\n `;\n }\n\n private renderAva(): HTMLTemplate {\n if (this.more) {\n return html`<span>${this.avaMore()}</span>`;\n }\n if (this.src) {\n return html`<img src=\"${this.src}\" @error=${this.imgOnError} alt=\"\" />`;\n }\n if (this.name) {\n return html`<span>${this.avaName()}</span>`;\n }\n return htmlSlot(\"avatar\");\n }\n\n avaMore(): string | number {\n if (this.more < 0) {\n return \"+\";\n }\n return (this.more > 99 ? \"99\" : this.more) + \"+\";\n }\n\n avaName(): string {\n const name = this.name.slice(0, 2);\n return name[0].toUpperCase() + name.slice(1);\n }\n\n imgOnError(e: ErrorEvent) {\n if (this.def) {\n (e.target as HTMLImageElement).src = this.def;\n } else {\n this.src = undefined;\n }\n }\n}\n\nexport default AvatarA;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"avatar-a\": AvatarA;\n }\n}\n"]}
@@ -1,10 +1,10 @@
1
- import { SuperAnchor } from "./super-a.js";
1
+ import { SuperA } from "./super-a.js";
2
2
  /**
3
3
  * LinkAnchor works with {@linkcode RouteView}.
4
4
  *
5
- * @extends SuperAnchor
5
+ * @extends SuperA
6
6
  */
7
- export declare class LinkAnchor extends SuperAnchor {
7
+ export declare class LinkA extends SuperA {
8
8
  /**
9
9
  * True when the href is in the same pathname as the location.
10
10
  */
@@ -15,7 +15,7 @@ export declare class LinkAnchor extends SuperAnchor {
15
15
  replace: boolean;
16
16
  connectedCallback(): void;
17
17
  /**
18
- * Set active to true when the {@linkcode LinkAnchor.href} is in the same pathname as the location.
18
+ * Set active to true when the {@linkcode LinkA.href} is in the same pathname as the location.
19
19
  */
20
20
  useActive(): void;
21
21
  protected _handleClick(e: MouseEvent): void;
@@ -24,10 +24,10 @@ export declare class LinkAnchor extends SuperAnchor {
24
24
  static pushState(data: any, unused: string, url?: string): void;
25
25
  static replaceState(data: any, unused: string, url?: string): void;
26
26
  }
27
- export default LinkAnchor;
27
+ export default LinkA;
28
28
  declare global {
29
29
  interface HTMLElementTagNameMap {
30
- "link-a": LinkAnchor;
30
+ "link-a": LinkA;
31
31
  }
32
32
  }
33
33
  //# sourceMappingURL=link-a.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"link-a.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/a/link-a.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAItC;;;;GAIG;AACH,qBACa,KAAM,SAAQ,MAAM;IAC/B;;OAEG;IACyC,MAAM,UAAS;IAC3D;;OAEG;IAC0B,OAAO,UAAS;IAE7C,iBAAiB;IAOjB;;OAEG;IACH,SAAS;IAOT,SAAS,CAAC,YAAY,CAAC,CAAC,EAAE,UAAU;IAapC,SAAS,CAAC,GAAG,SAAY,EAAE,IAAI,MAAO;IAKtC,YAAY,CAAC,GAAG,SAAY,EAAE,IAAI,MAAO;IAKzC,MAAM,CAAC,SAAS,CAAC,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM;IAKxD,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM;CAI5D;AAED,eAAe,KAAK,CAAC;AAErB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,QAAQ,EAAE,KAAK,CAAC;KACjB;CACF"}
@@ -1,21 +1,16 @@
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
- var LinkAnchor_1;
8
- import { define } from "../root.js";
9
- import { property } from "../deps.js";
1
+ var LinkA_1;
2
+ import { __decorate } from "tslib";
3
+ import { property } from "../../deps.js";
4
+ import { define } from "../../root.js";
10
5
  import { RouteView } from "../view/route-view.js";
11
- import { SuperAnchor } from "./super-a.js";
6
+ import { SuperA } from "./super-a.js";
12
7
  const defineName = "link-a";
13
8
  /**
14
9
  * LinkAnchor works with {@linkcode RouteView}.
15
10
  *
16
- * @extends SuperAnchor
11
+ * @extends SuperA
17
12
  */
18
- let LinkAnchor = LinkAnchor_1 = class LinkAnchor extends SuperAnchor {
13
+ let LinkA = LinkA_1 = class LinkA extends SuperA {
19
14
  constructor() {
20
15
  super(...arguments);
21
16
  /**
@@ -34,7 +29,7 @@ let LinkAnchor = LinkAnchor_1 = class LinkAnchor extends SuperAnchor {
34
29
  this.useActive();
35
30
  }
36
31
  /**
37
- * Set active to true when the {@linkcode LinkAnchor.href} is in the same pathname as the location.
32
+ * Set active to true when the {@linkcode LinkA.href} is in the same pathname as the location.
38
33
  */
39
34
  useActive() {
40
35
  const url = new URL(this.href, location.href);
@@ -56,11 +51,11 @@ let LinkAnchor = LinkAnchor_1 = class LinkAnchor extends SuperAnchor {
56
51
  }
57
52
  }
58
53
  pushState(url = this.href, data = null) {
59
- LinkAnchor_1.pushState(data, "", url);
54
+ LinkA_1.pushState(data, "", url);
60
55
  this.useActive();
61
56
  }
62
57
  replaceState(url = this.href, data = null) {
63
- LinkAnchor_1.replaceState(data, "", url);
58
+ LinkA_1.replaceState(data, "", url);
64
59
  this.useActive();
65
60
  }
66
61
  static pushState(data, unused, url) {
@@ -74,13 +69,13 @@ let LinkAnchor = LinkAnchor_1 = class LinkAnchor extends SuperAnchor {
74
69
  };
75
70
  __decorate([
76
71
  property({ type: Boolean, reflect: true })
77
- ], LinkAnchor.prototype, "active", void 0);
72
+ ], LinkA.prototype, "active", void 0);
78
73
  __decorate([
79
74
  property({ type: Boolean })
80
- ], LinkAnchor.prototype, "replace", void 0);
81
- LinkAnchor = LinkAnchor_1 = __decorate([
75
+ ], LinkA.prototype, "replace", void 0);
76
+ LinkA = LinkA_1 = __decorate([
82
77
  define(defineName)
83
- ], LinkAnchor);
84
- export { LinkAnchor };
85
- export default LinkAnchor;
78
+ ], LinkA);
79
+ export { LinkA };
80
+ export default LinkA;
86
81
  //# sourceMappingURL=link-a.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"link-a.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/a/link-a.ts"],"names":[],"mappings":";;AAAA,OAAO,EAAE,QAAQ,EAAE,MAA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U,CAAC;GACN,KAAK,CA2DjB;;AAED,eAAe,KAAK,CAAC","sourcesContent":["import { property } from \"../../deps.js\";\nimport { define } from \"../../root.js\";\nimport { RouteView } from \"../view/route-view.js\";\nimport { SuperA } from \"./super-a.js\";\n\nconst defineName = \"link-a\";\n\n/**\n * LinkAnchor works with {@linkcode RouteView}.\n *\n * @extends SuperA\n */\n@define(defineName)\nexport class LinkA extends SuperA {\n /**\n * True when the href is in the same pathname as the location.\n */\n @property({ type: Boolean, reflect: true }) active = false;\n /**\n * If true, replaceState, or pushState.\n */\n @property({ type: Boolean }) replace = false;\n\n connectedCallback() {\n super.connectedCallback();\n this.addEvent(this, \"click\", this._handleClick);\n this.addEvent(window, \"popstate\", this.useActive.bind(this));\n this.useActive();\n }\n\n /**\n * Set active to true when the {@linkcode LinkA.href} is in the same pathname as the location.\n */\n useActive() {\n const url = new URL(this.href, location.href);\n if (url.origin === location.origin) {\n this.active = url.pathname === location.pathname;\n }\n }\n\n protected _handleClick(e: MouseEvent) {\n const href = this.href ?? this.querySelector(\"[href]\")?.getAttribute(\"href\");\n const url = new URL(href, location.href);\n if (url.origin === location.origin) {\n e.preventDefault();\n if (this.replace) {\n this.replaceState(href);\n } else {\n this.pushState(href);\n }\n }\n }\n\n pushState(url = this.href, data = null) {\n LinkA.pushState(data, \"\", url);\n this.useActive();\n }\n\n replaceState(url = this.href, data = null) {\n LinkA.replaceState(data, \"\", url);\n this.useActive();\n }\n\n static pushState(data: any, unused: string, url?: string) {\n history.pushState(data, unused, url);\n RouteView.updateAll();\n }\n\n static replaceState(data: any, unused: string, url?: string) {\n history.replaceState(data, unused, url);\n RouteView.updateAll();\n }\n}\n\nexport default LinkA;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"link-a\": LinkA;\n }\n}\n"]}
@@ -1,11 +1,11 @@
1
- import { type HTMLTemplate } from "../lib/templates.js";
2
- import ItemsSTD from "./std.js";
1
+ import { type HTMLTemplate } from "../../lib/templates.js";
2
+ import { GodownElement } from "../../root.js";
3
3
  /**
4
4
  * SuperAnchor similar to a.
5
5
  *
6
6
  * Has an optional arrow.
7
7
  */
8
- export declare class SuperAnchor extends ItemsSTD {
8
+ export declare class SuperA extends GodownElement {
9
9
  /**
10
10
  * Href for a element.
11
11
  */
@@ -22,10 +22,10 @@ export declare class SuperAnchor extends ItemsSTD {
22
22
  protected render(): HTMLTemplate;
23
23
  private _arrowSwitcher;
24
24
  }
25
- export default SuperAnchor;
25
+ export default SuperA;
26
26
  declare global {
27
27
  interface HTMLElementTagNameMap {
28
- "super-a": SuperAnchor;
28
+ "super-a": SuperA;
29
29
  }
30
30
  }
31
31
  //# sourceMappingURL=super-a.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"super-a.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/a/super-a.ts"],"names":[],"mappings":"AACA,OAAO,EAAY,KAAK,YAAY,EAAsB,MAAM,wBAAwB,CAAC;AACzF,OAAO,EAAU,aAAa,EAAE,MAAM,eAAe,CAAC;AAItD;;;;GAIG;AACH,qBACa,MAAO,SAAQ,aAAa;IACvC;;OAEG;IACS,IAAI,EAAE,MAAM,CAAa;IACrC;;OAEG;IACS,MAAM,SAAW;IAC7B;;OAEG;IACS,KAAK,EAAE,EAAE,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,CAAM;IAEzD,MAAM,CAAC,MAAM,4BA0DX;IAEF,SAAS,CAAC,MAAM,IAAI,YAAY;IAOhC,OAAO,CAAC,cAAc;CAYvB;AAED,eAAe,MAAM,CAAC;AAEtB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,SAAS,EAAE,MAAM,CAAC;KACnB;CACF"}