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,15 +1,9 @@
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
1
  var AlertItem_1;
8
- import { createScope, define } from "../root.js";
9
- import { css, html, property, unsafeCSS } from "../deps.js";
10
- import { htmlSlot, svgX } from "../lib/templates.js";
11
- import { constructCSS } from "../lib/utils.js";
12
- import ItemsSTD from "./std.js";
2
+ import { __decorate } from "tslib";
3
+ import { css, html, property, unsafeCSS } from "../../deps.js";
4
+ import { htmlSlot, svgX } from "../../lib/templates.js";
5
+ import { constructCSS } from "../../lib/utils.js";
6
+ import { createScope, define, GodownElement } from "../../root.js";
13
7
  const defineName = "alert-item";
14
8
  const cssvarScope = createScope(defineName);
15
9
  const currentColor = "currentColor";
@@ -26,7 +20,7 @@ const colors = {
26
20
  *
27
21
  * Inspired by Ant-design.
28
22
  */
29
- let AlertItem = AlertItem_1 = class AlertItem extends ItemsSTD {
23
+ let AlertItem = class AlertItem extends GodownElement {
30
24
  constructor() {
31
25
  super(...arguments);
32
26
  /**
@@ -46,36 +40,12 @@ let AlertItem = AlertItem_1 = class AlertItem extends ItemsSTD {
46
40
  */
47
41
  this.content = "";
48
42
  }
49
- render() {
50
- if (this.autoclose) {
51
- setTimeout(() => this.close(), this.autoclose);
52
- }
53
- return html `<main class="${this.call} alert">
54
- <div>
55
- <strong> ${this.title || htmlSlot("title")}</strong>
56
- ${this.content || htmlSlot()}
57
- </div>
58
- <aside class="close" @click="${this.close}">${htmlSlot("close", svgX(), this)}</aside>
59
- </main>`;
60
- }
61
- close() {
62
- this.shadowRoot.querySelector(".alert").classList.add("hide");
63
- setTimeout(() => {
64
- this.remove();
65
- }, 250);
66
- }
67
- static alert(root, option) {
68
- const ai = new AlertItem_1();
69
- Object.assign(ai, option);
70
- root.appendChild(ai);
71
- return ai;
72
- }
73
- };
74
- AlertItem.styles = [
75
- unsafeCSS(constructCSS(vars, colors, (raw) => {
76
- return `.${raw}`;
77
- })),
78
- css `
43
+ static { AlertItem_1 = this; }
44
+ static { this.styles = [
45
+ unsafeCSS(constructCSS(vars, colors, (raw) => {
46
+ return `.${raw}`;
47
+ })),
48
+ css `
79
49
  :host {
80
50
  ${cssvarScope}--padding: .05em .25em .05em .35em;
81
51
  ${cssvarScope}--border-width: 0.15em;
@@ -143,7 +113,32 @@ AlertItem.styles = [
143
113
  stroke: var(${cssvarScope}--color);
144
114
  }
145
115
  `,
146
- ];
116
+ ]; }
117
+ render() {
118
+ if (this.autoclose) {
119
+ setTimeout(() => this.close(), this.autoclose);
120
+ }
121
+ return html `<main class="${this.call} alert">
122
+ <div>
123
+ <strong> ${this.title || htmlSlot("title")}</strong>
124
+ ${this.content || htmlSlot()}
125
+ </div>
126
+ <aside class="close" @click="${this.close}">${htmlSlot("close", svgX(), this)}</aside>
127
+ </main>`;
128
+ }
129
+ close() {
130
+ this.shadowRoot.querySelector(".alert").classList.add("hide");
131
+ setTimeout(() => {
132
+ this.remove();
133
+ }, 250);
134
+ }
135
+ static alert(root, option) {
136
+ const ai = new AlertItem_1();
137
+ Object.assign(ai, option);
138
+ root.appendChild(ai);
139
+ return ai;
140
+ }
141
+ };
147
142
  __decorate([
148
143
  property()
149
144
  ], AlertItem.prototype, "call", void 0);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alert-item.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/items/alert-item.ts"],"names":[],"mappings":";;AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAqB,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEnE,MAAM,UAAU,GAAG,YAAY,CAAC;AAChC,MAAM,WAAW,GAAG,WAAW,CAAC,UAAU,CAAC,CAAC;AAE5C,MAAM,YAAY,GAAG,cAAc,CAAC;AAEpC,MAAM,IAAI,GAAG,CAAC,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,WAAW,KAAK,CAAC,EAAE,CAAC,CAAC;AAC3F,MAAM,MAAM,GAAG;IACb,OAAO,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC;IACrD,IAAI,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC;IAClD,OAAO,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC;IACrD,MAAM,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC;IACpD,OAAO,EAAE,CAAC,YAAY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AAG,CAAC,MAAM,CAAC,CAAC;QAC9D,UAAU,CAAC,GAAG,EAAE;YACd,IAAI,CAAC,MAAM,EAAE,CAAC;QAChB,CAAC,EAAE,GAAG,CAAC,CAAC;IACV,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,IAAiB,EAAE,MAA0B;QACxD,MAAM,EAAE,GAAG,IAAI,WAAS,EAAE,CAAC;QAC3B,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;QAC1B,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;QACrB,OAAO,EAAE,CAAC;IACZ,CAAC;;AAnHW;IAAX,QAAQ,EAAE;uCAA6C;AAI5B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;4CAAkB;AAIjC;IAAX,QAAQ,EAAE;wCAAY;AAIX;IAAX,QAAQ,EAAE;0CAAc;AAhBd,SAAS;IADrB,MAAM,CAAC,UAAU,CAAC;GACN,SAAS,CAwHrB;;AAED,eAAe,SAAS,CAAC","sourcesContent":["import { css, html, property, unsafeCSS } from \"../../deps.js\";\nimport { htmlSlot, type HTMLTemplate, svgX } from \"../../lib/templates.js\";\nimport { constructCSS } from \"../../lib/utils.js\";\nimport { createScope, define, GodownElement } from \"../../root.js\";\n\nconst defineName = \"alert-item\";\nconst cssvarScope = createScope(defineName);\n\nconst currentColor = \"currentColor\";\n\nconst vars = [\"color\", \"background\", \"border\", \"super\"].map((v) => `${cssvarScope}--${v}`);\nconst colors = {\n success: [\"#3c763d\", \"#dff0d8\", \"#d6e9c6\", \"#2b542c\"],\n info: [\"#31708f\", \"#d9edf7\", \"#bce8f1\", \"#245269\"],\n warning: [\"#8a6d3b\", \"#fcf8e3\", \"#faebcc\", \"#66512c\"],\n danger: [\"#a94442\", \"#f2dede\", \"#ebccd1\", \"#843534\"],\n inherit: [currentColor, \"inherit\", currentColor, currentColor],\n};\n\n/**\n * AlertItem renders a alert.\n *\n * Inspired by Ant-design.\n */\n@define(defineName)\nexport class AlertItem extends GodownElement {\n /**\n * Type of performance.\n */\n @property() call: keyof typeof colors | \"hide\" = \"info\";\n /**\n * Close delay.\n */\n @property({ type: Number }) autoclose = 3000;\n /**\n * Alert title.\n */\n @property() title = \"\";\n /**\n * Alert content.\n */\n @property() content = \"\";\n\n static styles = [\n unsafeCSS(\n constructCSS(vars, colors, (raw) => {\n return `.${raw}`;\n }),\n ),\n css`\n :host {\n ${cssvarScope}--padding: .05em .25em .05em .35em;\n ${cssvarScope}--border-width: 0.15em;\n ${cssvarScope}--border-radius: 0.4em;\n border-radius: var(${cssvarScope}--border-radius);\n margin: 0 auto;\n display: block;\n }\n\n .hide {\n opacity: 0;\n transform: translateY(-100%);\n }\n\n .alert {\n transition: 0.25s;\n display: flex;\n justify-content: space-between;\n padding: var(${cssvarScope}--padding);\n border-radius: inherit;\n border: var(${cssvarScope}--border-width) solid var(${cssvarScope}--border);\n color: var(${cssvarScope}--color);\n background: var(${cssvarScope}--background);\n animation: alert 0.25s ease-in-out;\n }\n\n @keyframes alert {\n 0% {\n opacity: 0;\n transform: translateY(-50%);\n }\n 100% {\n opacity: 1;\n transform: none;\n }\n }\n\n div {\n min-height: 1.5em;\n line-height: 1.5em;\n }\n\n .close {\n height: fit-content;\n width: fit-content;\n border-radius: 50%;\n transition: inherit;\n }\n\n .close:hover {\n backdrop-filter: contrast(115%);\n }\n\n svg {\n display: block;\n height: 1.6em;\n width: 1.6em;\n }\n\n .close:hover path {\n stroke: var(${cssvarScope}--super);\n }\n\n path {\n stroke: var(${cssvarScope}--color);\n }\n `,\n ];\n\n protected render(): HTMLTemplate {\n if (this.autoclose) {\n setTimeout(() => this.close(), this.autoclose);\n }\n return html`<main class=\"${this.call} alert\">\n <div>\n <strong> ${this.title || htmlSlot(\"title\")}</strong>\n ${this.content || htmlSlot()}\n </div>\n <aside class=\"close\" @click=\"${this.close}\">${htmlSlot(\"close\", svgX(), this)}</aside>\n </main>`;\n }\n\n close() {\n this.shadowRoot.querySelector(\".alert\").classList.add(\"hide\");\n setTimeout(() => {\n this.remove();\n }, 250);\n }\n\n static alert(root: HTMLElement, option: Partial<AlertItem>): AlertItem {\n const ai = new AlertItem();\n Object.assign(ai, option);\n root.appendChild(ai);\n return ai;\n }\n}\n\nexport default AlertItem;\ndeclare global {\n interface HTMLElementTagNameMap {\n \"alert-item\": AlertItem;\n }\n}\n"]}
@@ -1,10 +1,10 @@
1
- import { type CSSResultGroup } from "../deps.js";
2
- import { type HTMLTemplate } from "../lib/templates.js";
3
- import ItemsSTD 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
  * CardItem renders a card.
6
6
  */
7
- export declare class CardItem extends ItemsSTD {
7
+ export declare class CardItem extends GodownElement {
8
8
  /**
9
9
  * Enable rotate.
10
10
  */
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card-item.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/items/card-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,cAAc,EAAyB,MAAM,eAAe,CAAC;AAEhF,OAAO,EAAY,KAAK,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,EAAqC,aAAa,EAAE,MAAM,eAAe,CAAC;AAKjF;;GAEG;AACH,qBACa,QAAS,SAAQ,aAAa;IACzC;;OAEG;IAC0B,MAAM,UAAS;IAE7B,SAAS,CAAC,KAAK,EAAG,WAAW,CAAC;IAC7B,SAAS,CAAC,MAAM,EAAG,WAAW,CAAC;IAE/C,MAAM,CAAC,MAAM,iBAoEO;IAEpB,SAAS,CAAC,MAAM,IAAI,YAAY;IAyBhC,SAAS,CAAC,YAAY;IAOtB;;OAEG;IACH,KAAK;IAKL;;;OAGG;IACH,SAAS,CAAC,WAAW,CAAC,CAAC,EAAE,UAAU;CAWpC;AAED,eAAe,QAAQ,CAAC;AAExB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,WAAW,EAAE,QAAQ,CAAC;KACvB;CACF"}
@@ -1,20 +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, cssvarValues, define } from "../root.js";
8
- import { css, html, property, query } from "../deps.js";
9
- import { htmlSlot } from "../lib/templates.js";
10
- import { ifValue } from "../lib/directives.js";
11
- import ItemsSTD from "./std.js";
1
+ import { __decorate } from "tslib";
2
+ import { css, html, property, query } from "../../deps.js";
3
+ import { ifValue } from "../../lib/directives.js";
4
+ import { htmlSlot } from "../../lib/templates.js";
5
+ import { createScope, cssvarValues, define, GodownElement } from "../../root.js";
12
6
  const defineName = "card-item";
13
7
  const cssvarScope = createScope(defineName);
14
8
  /**
15
9
  * CardItem renders a card.
16
10
  */
17
- let CardItem = class CardItem extends ItemsSTD {
11
+ let CardItem = class CardItem extends GodownElement {
18
12
  constructor() {
19
13
  super(...arguments);
20
14
  /**
@@ -22,56 +16,9 @@ let CardItem = class CardItem extends ItemsSTD {
22
16
  */
23
17
  this.rotate = false;
24
18
  }
25
- render() {
26
- const HEADER = "header";
27
- const FOOTER = "footer";
28
- return html `<div>
29
- <aside></aside>
30
- <main>
31
- ${ifValue(this.querySlot(HEADER), html `
32
- ${htmlSlot(HEADER)}
33
- <hr />
34
- `)}
35
- ${htmlSlot()}
36
- ${ifValue(this.querySlot(FOOTER), html `
37
- <hr />
38
- ${htmlSlot(FOOTER)}
39
- `)}
40
- </main>
41
- </div>`;
42
- }
43
- firstUpdated() {
44
- if (this.rotate) {
45
- this.addEvent(this._main, "mousemove", this._drawRotate.bind(this));
46
- this.addEvent(this._aside, "mouseleave", this.reset.bind(this));
47
- }
48
- }
49
- /**
50
- * Cancel the aside offset.
51
- */
52
- reset() {
53
- this._main.style.transition = ".5s";
54
- this._main.style.transform = "none";
55
- }
56
- /**
57
- * Offset aside.
58
- * @param e Mouse move event.
59
- */
60
- _drawRotate(e) {
61
- const { left, top, width, height } = this._main.getBoundingClientRect();
62
- const { clientX, clientY } = e;
63
- const offsetX = clientX - left;
64
- const offsetY = clientY - top;
65
- const rotate = 30;
66
- const rotateX = -(rotate * (offsetY - height / 2)) / height / 1.5;
67
- const rotateY = (rotate * (offsetX - width / 2)) / width / 1.5;
68
- this._main.style.transform = `rotateX(${rotateX}deg) rotateY(${rotateY}deg)`;
69
- this._main.style.transition = "none";
70
- }
71
- };
72
- CardItem.styles = [
73
- ItemsSTD.styles,
74
- css `
19
+ static { this.styles = [
20
+ GodownElement.styles,
21
+ css `
75
22
  :host {
76
23
  ${cssvarScope}--offset: .25em;
77
24
  ${cssvarScope}--background: var(${cssvarValues.main});
@@ -137,7 +84,54 @@ CardItem.styles = [
137
84
  padding: var(${cssvarScope}--padding);
138
85
  }
139
86
  `,
140
- ];
87
+ ]; }
88
+ render() {
89
+ const HEADER = "header";
90
+ const FOOTER = "footer";
91
+ return html `<div>
92
+ <aside></aside>
93
+ <main>
94
+ ${ifValue(this.querySlot(HEADER), html `
95
+ ${htmlSlot(HEADER)}
96
+ <hr />
97
+ `)}
98
+ ${htmlSlot()}
99
+ ${ifValue(this.querySlot(FOOTER), html `
100
+ <hr />
101
+ ${htmlSlot(FOOTER)}
102
+ `)}
103
+ </main>
104
+ </div>`;
105
+ }
106
+ firstUpdated() {
107
+ if (this.rotate) {
108
+ this.addEvent(this._main, "mousemove", this._drawRotate.bind(this));
109
+ this.addEvent(this._aside, "mouseleave", this.reset.bind(this));
110
+ }
111
+ }
112
+ /**
113
+ * Cancel the aside offset.
114
+ */
115
+ reset() {
116
+ this._main.style.transition = ".5s";
117
+ this._main.style.transform = "none";
118
+ }
119
+ /**
120
+ * Offset aside.
121
+ * @param e Mouse move event.
122
+ */
123
+ _drawRotate(e) {
124
+ const { left, top, width, height } = this._main.getBoundingClientRect();
125
+ const { clientX, clientY } = e;
126
+ const offsetX = clientX - left;
127
+ const offsetY = clientY - top;
128
+ const rotate = 30;
129
+ const rotateX = -(rotate * (offsetY - height / 2)) / height / 1.5;
130
+ const rotateY = (rotate * (offsetX - width / 2)) / width / 1.5;
131
+ this._main.style.transform = `rotateX(${rotateX}deg) rotateY(${rotateY}deg)`;
132
+ this._main.style.transition = "none";
133
+ }
134
+ };
141
135
  __decorate([
142
136
  property({ type: Boolean })
143
137
  ], CardItem.prototype, "rotate", void 0);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card-item.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/items/card-item.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAuB,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAChF,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAqB,MAAM,wBAAwB,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEjF,MAAM,UAAU,GAAG,WAAW,CAAC;AAC/B,MAAM,WAAW,GAAG,WAAW,CAAC,UAAU,CAAC,CAAC;AAE5C;;GAEG;AAEI,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,aAAa;IAApC;;QACL;;WAEG;QAC0B,WAAM,GAAG,KAAK,CAAC;IAkI9C,CAAC;aA7HQ,WAAM,GAAG;QACd,aAAa,CAAC,MAAM;QACpB,GAAG,CAAA;;UAEG,WAAW;UACX,WAAW,qBAAqB,YAAY,CAAC,IAAI;UACjD,WAAW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,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,qBAAqB,EAAE,CAAC;QACxE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,CAAC,CAAC;QAC/B,MAAM,OAAO,GAAG,OAAO,GAAG,IAAI,CAAC;QAC/B,MAAM,OAAO,GAAG,OAAO,GAAG,GAAG,CAAC;QAC9B,MAAM,MAAM,GAAG,EAAE,CAAC;QAClB,MAAM,OAAO,GAAG,CAAC,CAAC,MAAM,GAAG,CAAC,OAAO,GAAG,MAAM,GAAG,CAAC,CAAC,CAAC,GAAG,MAAM,GAAG,GAAG,CAAC;QAClE,MAAM,OAAO,GAAG,CAAC,MAAM,GAAG,CAAC,OAAO,GAAG,KAAK,GAAG,CAAC,CAAC,CAAC,GAAG,KAAK,GAAG,GAAG,CAAC;QAC/D,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,SAAS,GAAG,WAAW,OAAO,gBAAgB,OAAO,MAAM,CAAC;QAC7E,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,UAAU,GAAG,MAAM,CAAC;IACvC,CAAC;;AAjI4B;IAA5B,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;wCAAgB;AAEnB;IAAxB,KAAK,CAAC,MAAM,CAAC;uCAA+B;AACnB;IAAzB,KAAK,CAAC,OAAO,CAAC;wCAAgC;AAPpC,QAAQ;IADpB,MAAM,CAAC,UAAU,CAAC;GACN,QAAQ,CAsIpB;;AAED,eAAe,QAAQ,CAAC","sourcesContent":["import { css, type CSSResultGroup, html, property, query } from \"../../deps.js\";\nimport { ifValue } from \"../../lib/directives.js\";\nimport { htmlSlot, type HTMLTemplate } from \"../../lib/templates.js\";\nimport { createScope, cssvarValues, define, GodownElement } from \"../../root.js\";\n\nconst defineName = \"card-item\";\nconst cssvarScope = createScope(defineName);\n\n/**\n * CardItem renders a card.\n */\n@define(defineName)\nexport class CardItem extends GodownElement {\n /**\n * Enable rotate.\n */\n @property({ type: Boolean }) rotate = false;\n\n @query(\"main\") protected _main!: HTMLElement;\n @query(\"aside\") protected _aside!: HTMLElement;\n\n static styles = [\n GodownElement.styles,\n css`\n :host {\n ${cssvarScope}--offset: .25em;\n ${cssvarScope}--background: var(${cssvarValues.main});\n ${cssvarScope}--wapper-background: none;\n ${cssvarScope}--outline: 0;\n ${cssvarScope}--box-shadow: 0 .05em .4em 0 rgb(var(${cssvarValues.mainRGB}) / 60%);\n ${cssvarScope}--hr-width: 100%;\n ${cssvarScope}--hr-height: .05em;\n ${cssvarScope}--padding: .75em;\n margin: auto;\n display: block;\n width: fit-content;\n color: var(${cssvarValues.text});\n border-radius: 0.2em;\n }\n\n * {\n border-radius: inherit;\n min-height: inherit;\n min-width: inherit;\n }\n\n main {\n outline: var(${cssvarScope}--outline);\n box-shadow: var(${cssvarScope}--box-shadow);\n background: var(${cssvarScope}--background);\n z-index: 2;\n position: relative;\n }\n\n aside {\n box-sizing: content-box;\n z-index: 0;\n height: 100%;\n width: 100%;\n position: absolute;\n background: var(${cssvarScope}--wapper-background);\n filter: blur(1em);\n padding: var(${cssvarScope}--offset);\n margin: calc(-1 * var(${cssvarScope}--offset));\n }\n\n div {\n width: fit-content;\n position: relative;\n }\n\n i {\n position: absolute;\n }\n\n hr {\n width: var(${cssvarScope}--hr-width);\n height: var(${cssvarScope}--hr-height);\n margin: auto;\n display: block;\n background: currentColor;\n opacity: 0.5;\n }\n\n slot {\n display: block;\n padding: var(${cssvarScope}--padding);\n }\n `,\n ] as CSSResultGroup;\n\n protected render(): HTMLTemplate {\n const HEADER = \"header\";\n const FOOTER = \"footer\";\n return html`<div>\n <aside></aside>\n <main>\n ${ifValue(\n this.querySlot(HEADER) as unknown as boolean,\n html`\n ${htmlSlot(HEADER)}\n <hr />\n `,\n )}\n ${htmlSlot()}\n ${ifValue(\n this.querySlot(FOOTER) as unknown as boolean,\n html`\n <hr />\n ${htmlSlot(FOOTER)}\n `,\n )}\n </main>\n </div>`;\n }\n\n protected firstUpdated() {\n if (this.rotate) {\n this.addEvent(this._main, \"mousemove\", this._drawRotate.bind(this));\n this.addEvent(this._aside, \"mouseleave\", this.reset.bind(this));\n }\n }\n\n /**\n * Cancel the aside offset.\n */\n reset() {\n this._main.style.transition = \".5s\";\n this._main.style.transform = \"none\";\n }\n\n /**\n * Offset aside.\n * @param e Mouse move event.\n */\n protected _drawRotate(e: MouseEvent) {\n const { left, top, width, height } = this._main.getBoundingClientRect();\n const { clientX, clientY } = e;\n const offsetX = clientX - left;\n const offsetY = clientY - top;\n const rotate = 30;\n const rotateX = -(rotate * (offsetY - height / 2)) / height / 1.5;\n const rotateY = (rotate * (offsetX - width / 2)) / width / 1.5;\n this._main.style.transform = `rotateX(${rotateX}deg) rotateY(${rotateY}deg)`;\n this._main.style.transition = \"none\";\n }\n}\n\nexport default CardItem;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"card-item\": CardItem;\n }\n}\n"]}
@@ -1,9 +1,9 @@
1
- import { type HTMLTemplate } from "../lib/templates.js";
2
- import LayoutSTD from "./std.js";
1
+ import { type HTMLTemplate } from "../../lib/templates.js";
2
+ import { GodownElement } from "../../root.js";
3
3
  /**
4
4
  * The DragBox does not extend beyond the range of {@linkcode DragBox.offsetsWidth} and {@linkcode DragBox.offsetsHeight}.
5
5
  */
6
- export declare class DragBox extends LayoutSTD {
6
+ export declare class DragBox extends GodownElement {
7
7
  drag: boolean;
8
8
  t: number;
9
9
  l: number;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drag-box.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/items/drag-box.ts"],"names":[],"mappings":"AACA,OAAO,EAAY,KAAK,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,EAAU,aAAa,EAAE,MAAM,eAAe,CAAC;AAItD;;GAEG;AACH,qBACa,OAAQ,SAAQ,aAAa;IACxC,IAAI,EAAE,OAAO,CAAC;IACd,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACS,CAAC,SAAU;IACvB;;OAEG;IACS,CAAC,SAAU;IAEvB,MAAM,CAAC,MAAM,4BAOX;IAEF,SAAS,CAAC,MAAM,IAAI,YAAY;IAIhC,SAAS,CAAC,YAAY;IAKtB,SAAS,CAAC,gBAAgB,CAAC,CAAC,EAAE,UAAU;IASxC,SAAS,CAAC,cAAc;IAKxB,SAAS,CAAC,WAAW,CAAC,CAAC,EAAE,UAAU;IAsBnC,KAAK;CAUN;AAED,eAAe,OAAO,CAAC;AACvB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,UAAU,EAAE,OAAO,CAAC;KACrB;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, html, property } from "../deps.js";
8
- import { htmlSlot } from "../lib/templates.js";
9
- import { define } from "../root.js";
10
- import LayoutSTD from "./std.js";
1
+ import { __decorate } from "tslib";
2
+ import { css, html, property } from "../../deps.js";
3
+ import { htmlSlot } from "../../lib/templates.js";
4
+ import { define, GodownElement } from "../../root.js";
11
5
  const defineName = "drag-box";
12
6
  /**
13
7
  * The DragBox does not extend beyond the range of {@linkcode DragBox.offsetsWidth} and {@linkcode DragBox.offsetsHeight}.
14
8
  */
15
- let DragBox = class DragBox extends LayoutSTD {
9
+ let DragBox = class DragBox extends GodownElement {
16
10
  constructor() {
17
11
  super(...arguments);
18
12
  /**
@@ -24,6 +18,14 @@ let DragBox = class DragBox extends LayoutSTD {
24
18
  */
25
19
  this.y = "auto";
26
20
  }
21
+ static { this.styles = [
22
+ css `
23
+ :host {
24
+ position: relative;
25
+ display: inline-flex;
26
+ }
27
+ `,
28
+ ]; }
27
29
  render() {
28
30
  return html `<div @mousedown="${this._handleDragStart}" @mouseup="${this._handleDragEnd}">${htmlSlot()}</div>`;
29
31
  }
@@ -79,14 +81,6 @@ let DragBox = class DragBox extends LayoutSTD {
79
81
  }
80
82
  }
81
83
  };
82
- DragBox.styles = [
83
- css `
84
- :host {
85
- position: relative;
86
- display: inline-flex;
87
- }
88
- `,
89
- ];
90
84
  __decorate([
91
85
  property()
92
86
  ], DragBox.prototype, "x", void 0);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drag-box.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/items/drag-box.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAqB,MAAM,wBAAwB,CAAC;AACrE,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEtD,MAAM,UAAU,GAAG,UAAU,CAAC;AAE9B;;GAEG;AAEI,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,aAAa;IAAnC;;QAOL;;WAEG;QACS,MAAC,GAAG,MAAM,CAAC;QACvB;;WAEG;QACS,MAAC,GAAG,MAAM,CAAC;IAkEzB,CAAC;aAhEQ,WAAM,GAAG;QACd,GAAG,CAAA;;;;;KAKF;KACF,AAPY,CAOX;IAEQ,MAAM;QACd,OAAO,IAAI,CAAA,oBAAoB,IAAI,CAAC,gBAAgB,eAAe,IAAI,CAAC,cAAc,KAAK,QAAQ,EAAE,QAAQ,CAAC;IAChH,CAAC;IAES,YAAY;QACpB,IAA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QAAQ,EAAE;kCAAY;AAdZ,OAAO;IADnB,MAAM,CAAC,UAAU,CAAC;GACN,OAAO,CAgFnB;;AAED,eAAe,OAAO,CAAC","sourcesContent":["import { css, html, property } from \"../../deps.js\";\nimport { htmlSlot, type HTMLTemplate } from \"../../lib/templates.js\";\nimport { define, GodownElement } from \"../../root.js\";\n\nconst defineName = \"drag-box\";\n\n/**\n * The DragBox does not extend beyond the range of {@linkcode DragBox.offsetsWidth} and {@linkcode DragBox.offsetsHeight}.\n */\n@define(defineName)\nexport class DragBox extends GodownElement {\n drag: boolean;\n t: number;\n l: number;\n cx: number;\n cy: number;\n\n /**\n * Position x.\n */\n @property() x = \"auto\";\n /**\n * Position y.\n */\n @property() y = \"auto\";\n\n static styles = [\n css`\n :host {\n position: relative;\n display: inline-flex;\n }\n `,\n ];\n\n protected render(): HTMLTemplate {\n return html`<div @mousedown=\"${this._handleDragStart}\" @mouseup=\"${this._handleDragEnd}\">${htmlSlot()}</div>`;\n }\n\n protected firstUpdated() {\n this.reset();\n this.addEvent(document, \"mouseup\", this._handleDragEnd.bind(this));\n }\n\n protected _handleDragStart(e: MouseEvent) {\n this.cx = e.clientX;\n this.cy = e.clientY;\n this.t = this.offsetTop;\n this.l = this.offsetLeft;\n this.drag = true;\n this.addEvent(document, \"mousemove\", this._handleDrag.bind(this), undefined, \"0\");\n }\n\n protected _handleDragEnd() {\n this.drag = false;\n this.removeEvent(document, \"mousemove\", \"0\");\n }\n\n protected _handleDrag(e: MouseEvent) {\n if (!this.drag) {\n return;\n }\n const nl = e.clientX - (this.cx - this.l);\n const nt = e.clientY - (this.cy - this.t);\n if (nl < 0) {\n this.style.left = \"0\";\n } else if (nl < this.offsetsWidth - this.offsetWidth) {\n this.style.left = `${nl}px`;\n } else {\n this.style.left = `${this.offsetsWidth - this.offsetWidth}\"px\"`;\n }\n if (nt < 0) {\n this.style.top = \"0\";\n } else if (nt < this.offsetsHeight - this.offsetHeight) {\n this.style.top = `${nt}px`;\n } else {\n this.style.top = `${this.offsetsHeight - this.offsetHeight}px`;\n }\n }\n\n reset() {\n this.style.left = this.x || \"0\";\n this.style.top = this.y || \"0\";\n if (this.offsetLeft > this.offsetsWidth - this.offsetWidth) {\n this.style.left = `${this.offsetsWidth - this.offsetWidth}px`;\n }\n if (this.offsetTop > this.offsetsHeight - this.offsetHeight) {\n this.style.top = `${this.offsetsHeight - this.offsetHeight}px`;\n }\n }\n}\n\nexport default DragBox;\ndeclare global {\n interface HTMLElementTagNameMap {\n \"drag-box\": DragBox;\n }\n}\n"]}
@@ -0,0 +1,5 @@
1
+ export * from "./alert-item.js";
2
+ export * from "./card-item.js";
3
+ export * from "./drag-box.js";
4
+ export * from "./time-bar.js";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/items/index.ts"],"names":[],"mappings":"AACA,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC"}
@@ -0,0 +1,6 @@
1
+ /// script generated
2
+ export * from "./alert-item.js";
3
+ export * from "./card-item.js";
4
+ export * from "./drag-box.js";
5
+ export * from "./time-bar.js";
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/items/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC","sourcesContent":["/// script generated\nexport * from \"./alert-item.js\";\nexport * from \"./card-item.js\";\nexport * from \"./drag-box.js\";\nexport * from \"./time-bar.js\";\n"]}
@@ -1,9 +1,9 @@
1
- import { type CSSResultGroup } from "../deps.js";
2
- import ItemsSTD from "./std.js";
1
+ import { type CSSResultGroup } from "../../deps.js";
2
+ import { GodownElement } from "../../root.js";
3
3
  /**
4
4
  * TimeBar renders a formatting time.
5
5
  */
6
- export declare class TimeBar extends ItemsSTD {
6
+ export declare class TimeBar extends GodownElement {
7
7
  /**
8
8
  * Format strings.
9
9
  * {@linkcode TimeBar.fmt}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"time-bar.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/items/time-bar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,cAAc,EAAY,MAAM,eAAe,CAAC;AACnE,OAAO,EAAU,aAAa,EAAE,MAAM,eAAe,CAAC;AAItD;;GAEG;AACH,qBACa,OAAQ,SAAQ,aAAa;IACxC;;;OAGG;IACS,MAAM,SAA8B;IAChD;;OAEG;IACS,KAAK,SAAM;IACvB;;OAEG;IACyB,IAAI,OAAc;IAC9C;;OAEG;IACyB,OAAO,SAAK;IACxC;;OAEG;IACyB,GAAG,SAAK;IAEpC,UAAU,EAAE,MAAM,CAAC;IAEnB,MAAM,CAAC,MAAM,EAAE,cAAc,CAM3B;IAEF,SAAS,CAAC,MAAM,IAAI,MAAM;IAI1B,SAAS,CAAC,YAAY;IAQtB,oBAAoB;IAIpB;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,GAAG,MAAM;CAmCzC;AAED,eAAe,OAAO,CAAC;AAEvB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,UAAU,EAAE,OAAO,CAAC;KACrB;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
1
  var TimeBar_1;
8
- import { css, property } from "../deps.js";
9
- import { define } from "../root.js";
10
- import ItemsSTD from "./std.js";
2
+ import { __decorate } from "tslib";
3
+ import { css, property } from "../../deps.js";
4
+ import { define, GodownElement } from "../../root.js";
11
5
  const defineName = "time-bar";
12
6
  /**
13
7
  * TimeBar renders a formatting time.
14
8
  */
15
- let TimeBar = TimeBar_1 = class TimeBar extends ItemsSTD {
9
+ let TimeBar = class TimeBar extends GodownElement {
16
10
  constructor() {
17
11
  super(...arguments);
18
12
  /**
@@ -37,6 +31,14 @@ let TimeBar = TimeBar_1 = class TimeBar extends ItemsSTD {
37
31
  */
38
32
  this.gap = 0;
39
33
  }
34
+ static { TimeBar_1 = this; }
35
+ static { this.styles = [
36
+ css `
37
+ :host {
38
+ text-align: center;
39
+ }
40
+ `,
41
+ ]; }
40
42
  render() {
41
43
  return this.value || TimeBar_1.fmt(this.format, this.time);
42
44
  }
@@ -100,13 +102,6 @@ let TimeBar = TimeBar_1 = class TimeBar extends ItemsSTD {
100
102
  });
101
103
  }
102
104
  };
103
- TimeBar.styles = [
104
- css `
105
- :host {
106
- text-align: center;
107
- }
108
- `,
109
- ];
110
105
  __decorate([
111
106
  property()
112
107
  ], TimeBar.prototype, "format", void 0);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"time-bar.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/items/time-bar.ts"],"names":[],"mappings":";;AAAA,OAAO,EAAE,GAAG,EAAuB,QAAQ,EAAE,MAAM,eAAe,CAAC;AACnE,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEtD,MAAM,UAAU,GAAG,UAAU,CAAC;AAE9B;;GAEG;AAEI,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,aAAa;IAAnC;;Q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O,MAAM;aACV,OAAO,EAAE;aACT,IAAI,CAAC,EAAE,CAAC;aACR,OAAO,CAAC,KAAK,EAAE,GAAG,EAAE;YACnB,OAAO,IAAI,CAAC,KAAK,EAAE,CAAC;QACtB,CAAC,CAAC,CAAC;IACP,CAAC;;AA3FW;IAAX,QAAQ,EAAE;uCAAqC;AAIpC;IAAX,QAAQ,EAAE;sCAAY;AAIK;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;qCAAmB;AAIlB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;wCAAa;AAIZ;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;oCAAS;AArBzB,OAAO;IADnB,MAAM,CAAC,UAAU,CAAC;GACN,OAAO,CAiGnB;;AAED,eAAe,OAAO,CAAC","sourcesContent":["import { css, type CSSResultGroup, property } from \"../../deps.js\";\nimport { define, GodownElement } from \"../../root.js\";\n\nconst defineName = \"time-bar\";\n\n/**\n * TimeBar renders a formatting time.\n */\n@define(defineName)\nexport class TimeBar extends GodownElement {\n /**\n * Format strings.\n * {@linkcode TimeBar.fmt}\n */\n @property() format = \"YYYY-MM-DD hh:mm:ss UTFZ\";\n /**\n * Display content.\n */\n @property() value = \"\";\n /**\n * Time.\n */\n @property({ type: Object }) time = new Date();\n /**\n * If there is a value, update every gap or timeout.\n */\n @property({ type: Number }) timeout = 0;\n /**\n * The number of milliseconds that change with each update.\n */\n @property({ type: Number }) gap = 0;\n\n intervalID: number;\n\n static styles: CSSResultGroup = [\n css`\n :host {\n text-align: center;\n }\n `,\n ];\n\n protected render(): string {\n return this.value || TimeBar.fmt(this.format, this.time);\n }\n\n protected firstUpdated() {\n if (this.timeout) {\n this.intervalID = setInterval(() => {\n this.time = new Date(this.time.getTime() + (this.gap || this.timeout));\n }, Math.abs(this.timeout));\n }\n }\n\n disconnectedCallback() {\n clearInterval(this.intervalID);\n }\n\n /**\n * @param fm Format string.\n * @param tm Time.\n * @returns F.ormat result\\\n *\n * Y for years\\\n * M for months\\\n * D for days\\\n * h for hours\\\n * m for minutes\\\n * s for seconds\\\n * Z for time zones.\n */\n static fmt(fm: string, tm: Date): string {\n if (fm === \"\") {\n return fm;\n }\n const rest = [];\n fm = fm.replace(/%([ZYMDhms%])/g, (_, p1) => {\n rest.push(p1);\n return \"%%\";\n });\n const formatNumber = (date: number) => date.toString().padStart(2, \"0\").split(\"\");\n const z = tm.getTimezoneOffset() / -60;\n const switcher: Record<string, string[]> = {\n Z: [z >= 0 ? \"+\" + z.toString() : z.toString()],\n Y: tm.getFullYear().toString().split(\"\"),\n M: formatNumber(tm.getMonth() + 1),\n D: formatNumber(tm.getDate()),\n h: formatNumber(tm.getHours()),\n m: formatNumber(tm.getMinutes()),\n s: formatNumber(tm.getSeconds()),\n };\n const result: string[] = [];\n for (const f of fm.split(\"\").reverse()) {\n if (switcher[f]) {\n result.push(switcher[f]?.pop());\n } else {\n result.push(f);\n }\n }\n return result\n .reverse()\n .join(\"\")\n .replace(/%%/g, () => {\n return rest.shift();\n });\n }\n}\n\nexport default TimeBar;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"time-bar\": TimeBar;\n }\n}\n"]}
@@ -0,0 +1,20 @@
1
+ import { type HTMLTemplate } from "../../lib/templates.js";
2
+ import { GodownElement } from "../../root.js";
3
+ /**
4
+ * DividerLine similar to hr.
5
+ */
6
+ export declare class DividerLine extends GodownElement {
7
+ /**
8
+ * Enable vertical.
9
+ */
10
+ v: boolean;
11
+ static styles: import("lit").CSSResult[];
12
+ protected render(): HTMLTemplate;
13
+ }
14
+ export default DividerLine;
15
+ declare global {
16
+ interface HTMLElementTagNameMap {
17
+ "divider-line": DividerLine;
18
+ }
19
+ }
20
+ //# sourceMappingURL=divider-line.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"divider-line.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/layout/divider-line.ts"],"names":[],"mappings":"AACA,OAAO,EAAY,KAAK,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,EAAuB,aAAa,EAAE,MAAM,eAAe,CAAC;AAKnE;;GAEG;AACH,qBACa,WAAY,SAAQ,aAAa;IAC5C;;OAEG;IAC0B,CAAC,UAAS;IAEvC,MAAM,CAAC,MAAM,4BAiDX;IAEF,SAAS,CAAC,MAAM,IAAI,YAAY;CAOjC;AAED,eAAe,WAAW,CAAC;AAE3B,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,WAAW,CAAC;KAC7B;CACF"}
@@ -1,19 +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 { createScope, define } from "../root.js";
8
- import { css, html, property } from "../deps.js";
9
- import { htmlSlot } from "../lib/templates.js";
10
- import LayoutSTD from "./std.js";
11
- const defineName = "div-line";
1
+ import { __decorate } from "tslib";
2
+ import { css, html, property } from "../../deps.js";
3
+ import { htmlSlot } from "../../lib/templates.js";
4
+ import { createScope, define, GodownElement } from "../../root.js";
5
+ const defineName = "divider-line";
12
6
  const cssvarScope = createScope(defineName);
13
7
  /**
14
- * DivLine similar to hr.
8
+ * DividerLine similar to hr.
15
9
  */
16
- let DivLine = class DivLine extends LayoutSTD {
10
+ let DividerLine = class DividerLine extends GodownElement {
17
11
  constructor() {
18
12
  super(...arguments);
19
13
  /**
@@ -21,16 +15,8 @@ let DivLine = class DivLine extends LayoutSTD {
21
15
  */
22
16
  this.v = false;
23
17
  }
24
- render() {
25
- return html `<div class="${this.v ? "v" : ""}">
26
- <hr class="before" />
27
- ${htmlSlot()}
28
- <hr class="after" />
29
- </div>`;
30
- }
31
- };
32
- DivLine.styles = [
33
- css `
18
+ static { this.styles = [
19
+ css `
34
20
  :host {
35
21
  ${cssvarScope}--before-length: auto;
36
22
  ${cssvarScope}--after-length: auto;
@@ -78,13 +64,21 @@ DivLine.styles = [
78
64
  max-height: var(${cssvarScope}--after-length);
79
65
  }
80
66
  `,
81
- ];
67
+ ]; }
68
+ render() {
69
+ return html `<div class="${this.v ? "v" : ""}">
70
+ <hr class="before" />
71
+ ${htmlSlot()}
72
+ <hr class="after" />
73
+ </div>`;
74
+ }
75
+ };
82
76
  __decorate([
83
77
  property({ type: Boolean })
84
- ], DivLine.prototype, "v", void 0);
85
- DivLine = __decorate([
78
+ ], DividerLine.prototype, "v", void 0);
79
+ DividerLine = __decorate([
86
80
  define(defineName)
87
- ], DivLine);
88
- export { DivLine };
89
- export default DivLine;
90
- //# sourceMappingURL=div-line.js.map
81
+ ], DividerLine);
82
+ export { DividerLine };
83
+ export default DividerLine;
84
+ //# sourceMappingURL=divider-line.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"divider-line.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/layout/divider-line.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAqB,MAAM,wBAAwB,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEnE,MAAM,UAAU,GAAG,cAAc,CAAC;AAClC,MAAM,WAAW,GAAG,WAAW,CAAC,UAAU,CAAC,CAAC;AAE5C;;GAEG;AAEI,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,aAAa;IAAvC;;QACL;;WAEG;QAC0B,MAAC,GAAG,KAAK,CAAC;IA4DzC,CAAC;aA1DQ,WAAM,GAAG;QACd,GAAG,CAAA;;UAEG,WAAW;UACX,WAAW;UACX,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBA4BC,WAAW;yBACR,WAAW;;;sBAGd,WAAW;yBACR,WAAW;;;qBAGf,WAAW;0BACN,WAAW;;;qBAGhB,WAAW;0BACN,WAAW;;KAEhC;KACF,AAjDY,CAiDX;IAEQ,MAAM;QACd,OAAO,IAAI,CAAA,eAAe,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE;;QAEvC,QAAQ,EAAE;;WAEP,CAAC;IACV,CAAC;;AA3D4B;IAA5B,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;sCAAW;AAJ5B,WAAW;IADvB,MAAM,CAAC,UAAU,CAAC;GACN,WAAW,CAgEvB;;AAED,eAAe,WAAW,CAAC","sourcesContent":["import { css, html, property } from \"../../deps.js\";\nimport { htmlSlot, type HTMLTemplate } from \"../../lib/templates.js\";\nimport { createScope, define, GodownElement } from \"../../root.js\";\n\nconst defineName = \"divider-line\";\nconst cssvarScope = createScope(defineName);\n\n/**\n * DividerLine similar to hr.\n */\n@define(defineName)\nexport class DividerLine extends GodownElement {\n /**\n * Enable vertical.\n */\n @property({ type: Boolean }) v = false;\n\n static styles = [\n css`\n :host {\n ${cssvarScope}--before-length: auto;\n ${cssvarScope}--after-length: auto;\n ${cssvarScope}--breadth: .125em;\n display: block;\n color: currentColor;\n background: none;\n }\n\n div {\n display: flex;\n align-items: center;\n border-radius: inherit;\n width: 100%;\n }\n\n hr {\n border-radius: inherit;\n margin: 0;\n border: 0;\n flex: 1;\n background: currentColor;\n }\n\n .v {\n height: 100%;\n display: flex;\n flex-direction: column;\n }\n\n .before {\n height: var(${cssvarScope}--breadth);\n max-width: var(${cssvarScope}--before-length);\n }\n .after {\n height: var(${cssvarScope}--breadth);\n max-width: var(${cssvarScope}--after-length);\n }\n .v .before {\n width: var(${cssvarScope}--breadth);\n max-height: var(${cssvarScope}--before-length);\n }\n .v .after {\n width: var(${cssvarScope}--breadth);\n max-height: var(${cssvarScope}--after-length);\n }\n `,\n ];\n\n protected render(): HTMLTemplate {\n return html`<div class=\"${this.v ? \"v\" : \"\"}\">\n <hr class=\"before\" />\n ${htmlSlot()}\n <hr class=\"after\" />\n </div>`;\n }\n}\n\nexport default DividerLine;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"divider-line\": DividerLine;\n }\n}\n"]}
@@ -1,9 +1,9 @@
1
- import { type HTMLTemplate } from "../lib/templates.js";
2
- import LayoutSTD from "./std.js";
1
+ import { type HTMLTemplate } from "../../lib/templates.js";
2
+ import { GodownElement } from "../../root.js";
3
3
  /**
4
4
  * FlexFlow controls the flex layout based on the width of the screen.
5
5
  */
6
- export declare class FlexFlow extends LayoutSTD {
6
+ export declare class FlexFlow extends GodownElement {
7
7
  /**
8
8
  * The flex-flow behavior.
9
9
  */
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flex-flow.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/layout/flex-flow.ts"],"names":[],"mappings":"AACA,OAAO,EAAuB,KAAK,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAChF,OAAO,EAAU,aAAa,EAAE,MAAM,eAAe,CAAC;AAItD;;GAEG;AACH,qBACa,QAAS,SAAQ,aAAa;IACzC;;OAEG;IACS,QAAQ,SAA8B;IAClD;;OAEG;IACS,MAAM,SAAW;IAE7B,MAAM,CAAC,MAAM,4BAMX;IAEF,SAAS,CAAC,MAAM,IAAI,YAAY;CAUjC;AAED,eAAe,QAAQ,CAAC;AACxB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,WAAW,EAAE,QAAQ,CAAC;KACvB;CACF"}