godown 2.7.4 → 2.7.6

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 (463) hide show
  1. package/README.md +18 -45
  2. package/{.deps.d.ts → _deps.d.ts} +1 -2
  3. package/{.deps.d.ts.map → _deps.d.ts.map} +1 -1
  4. package/{.deps.js → _deps.js} +1 -2
  5. package/_deps.js.map +1 -0
  6. package/alert.d.ts +8 -1
  7. package/alert.d.ts.map +1 -1
  8. package/alert.js +4 -1
  9. package/alert.js.map +1 -1
  10. package/avatar-group.d.ts +8 -1
  11. package/avatar-group.d.ts.map +1 -1
  12. package/avatar-group.js +4 -1
  13. package/avatar-group.js.map +1 -1
  14. package/avatar.d.ts +8 -1
  15. package/avatar.d.ts.map +1 -1
  16. package/avatar.js +4 -1
  17. package/avatar.js.map +1 -1
  18. package/button.d.ts +8 -1
  19. package/button.d.ts.map +1 -1
  20. package/button.js +4 -1
  21. package/button.js.map +1 -1
  22. package/card.d.ts +8 -1
  23. package/card.d.ts.map +1 -1
  24. package/card.js +4 -1
  25. package/card.js.map +1 -1
  26. package/carousel.d.ts +8 -1
  27. package/carousel.d.ts.map +1 -1
  28. package/carousel.js +4 -1
  29. package/carousel.js.map +1 -1
  30. package/components.json +194 -0
  31. package/conf.d.ts +6 -75
  32. package/conf.d.ts.map +1 -1
  33. package/conf.js +8 -34
  34. package/conf.js.map +1 -1
  35. package/decorators/godown.d.ts +4 -0
  36. package/decorators/godown.d.ts.map +1 -0
  37. package/decorators/godown.js +9 -0
  38. package/decorators/godown.js.map +1 -0
  39. package/decorators/part.d.ts +7 -0
  40. package/decorators/part.d.ts.map +1 -0
  41. package/decorators/part.js +8 -0
  42. package/decorators/part.js.map +1 -0
  43. package/decorators/styles.d.ts +3 -0
  44. package/decorators/styles.d.ts.map +1 -0
  45. package/decorators/styles.js +8 -0
  46. package/decorators/styles.js.map +1 -0
  47. package/details.d.ts +8 -1
  48. package/details.d.ts.map +1 -1
  49. package/details.js +4 -1
  50. package/details.js.map +1 -1
  51. package/dialog.d.ts +8 -1
  52. package/dialog.d.ts.map +1 -1
  53. package/dialog.js +4 -1
  54. package/dialog.js.map +1 -1
  55. package/divider.d.ts +8 -1
  56. package/divider.d.ts.map +1 -1
  57. package/divider.js +4 -1
  58. package/divider.js.map +1 -1
  59. package/dragbox.d.ts +8 -1
  60. package/dragbox.d.ts.map +1 -1
  61. package/dragbox.js +4 -1
  62. package/dragbox.js.map +1 -1
  63. package/flex-flow.d.ts +8 -1
  64. package/flex-flow.d.ts.map +1 -1
  65. package/flex-flow.js +4 -1
  66. package/flex-flow.js.map +1 -1
  67. package/form.d.ts +8 -1
  68. package/form.d.ts.map +1 -1
  69. package/form.js +4 -1
  70. package/form.js.map +1 -1
  71. package/grid-flow.d.ts +9 -0
  72. package/grid-flow.d.ts.map +1 -0
  73. package/grid-flow.js +5 -0
  74. package/grid-flow.js.map +1 -0
  75. package/index.d.ts +32 -3
  76. package/index.d.ts.map +1 -1
  77. package/index.js +32 -3
  78. package/index.js.map +1 -1
  79. package/input.d.ts +8 -1
  80. package/input.d.ts.map +1 -1
  81. package/input.js +4 -1
  82. package/input.js.map +1 -1
  83. package/label-input.d.ts +8 -1
  84. package/label-input.d.ts.map +1 -1
  85. package/label-input.js +4 -1
  86. package/label-input.js.map +1 -1
  87. package/layout.d.ts +9 -0
  88. package/layout.d.ts.map +1 -0
  89. package/layout.js +5 -0
  90. package/layout.js.map +1 -0
  91. package/lib/css.d.ts +13 -0
  92. package/lib/css.d.ts.map +1 -0
  93. package/lib/css.js +29 -0
  94. package/lib/css.js.map +1 -0
  95. package/lib/directives.d.ts +16 -20
  96. package/lib/directives.d.ts.map +1 -1
  97. package/lib/directives.js +33 -31
  98. package/lib/directives.js.map +1 -1
  99. package/lib/event-coll.d.ts +13 -0
  100. package/lib/event-coll.d.ts.map +1 -0
  101. package/lib/event-coll.js +45 -0
  102. package/lib/event-coll.js.map +1 -0
  103. package/lib/{templates.d.ts → icons.d.ts} +1 -17
  104. package/lib/icons.d.ts.map +1 -0
  105. package/lib/icons.js +73 -0
  106. package/lib/icons.js.map +1 -0
  107. package/lib/jsx.d.ts +4 -0
  108. package/lib/jsx.d.ts.map +1 -0
  109. package/lib/jsx.js +52 -0
  110. package/lib/jsx.js.map +1 -0
  111. package/lib/route-tree.d.ts +5 -5
  112. package/lib/route-tree.js +5 -5
  113. package/lib/route-tree.js.map +1 -1
  114. package/lib/utils.d.ts +6 -46
  115. package/lib/utils.d.ts.map +1 -1
  116. package/lib/utils.js +25 -110
  117. package/lib/utils.js.map +1 -1
  118. package/link.d.ts +9 -0
  119. package/link.d.ts.map +1 -0
  120. package/link.js +5 -0
  121. package/link.js.map +1 -0
  122. package/overbreath.d.ts +8 -1
  123. package/overbreath.d.ts.map +1 -1
  124. package/overbreath.js +4 -1
  125. package/overbreath.js.map +1 -1
  126. package/package.json +20 -25
  127. package/progress.d.ts +8 -1
  128. package/progress.d.ts.map +1 -1
  129. package/progress.js +4 -1
  130. package/progress.js.map +1 -1
  131. package/proto/godown-config.d.ts +41 -0
  132. package/proto/godown-config.d.ts.map +1 -0
  133. package/proto/godown-config.js +27 -0
  134. package/proto/godown-config.js.map +1 -0
  135. package/{godown-element.d.ts → proto/godown-element.d.ts} +48 -16
  136. package/proto/godown-element.d.ts.map +1 -0
  137. package/{godown-element.js → proto/godown-element.js} +82 -26
  138. package/proto/godown-element.js.map +1 -0
  139. package/proto/super-a.d.ts +30 -0
  140. package/proto/super-a.d.ts.map +1 -0
  141. package/proto/super-a.js +141 -0
  142. package/proto/super-a.js.map +1 -0
  143. package/proto/super-input.d.ts +44 -0
  144. package/proto/super-input.d.ts.map +1 -0
  145. package/proto/super-input.js +119 -0
  146. package/proto/super-input.js.map +1 -0
  147. package/proto/super-openable.d.ts +23 -0
  148. package/proto/super-openable.d.ts.map +1 -0
  149. package/proto/super-openable.js +43 -0
  150. package/proto/super-openable.js.map +1 -0
  151. package/range-input.d.ts +9 -0
  152. package/range-input.d.ts.map +1 -0
  153. package/range-input.js +5 -0
  154. package/range-input.js.map +1 -0
  155. package/react/create.d.ts.map +1 -1
  156. package/react/create.js +4 -1
  157. package/react/create.js.map +1 -1
  158. package/react/index.d.ts +64 -34
  159. package/react/index.d.ts.map +1 -1
  160. package/react/index.js +78 -51
  161. package/react/index.js.map +1 -1
  162. package/rotate.d.ts +9 -0
  163. package/rotate.d.ts.map +1 -0
  164. package/rotate.js +5 -0
  165. package/rotate.js.map +1 -0
  166. package/router-link.d.ts +9 -0
  167. package/router-link.d.ts.map +1 -0
  168. package/router-link.js +5 -0
  169. package/router-link.js.map +1 -0
  170. package/router.d.ts +8 -1
  171. package/router.d.ts.map +1 -1
  172. package/router.js +4 -1
  173. package/router.js.map +1 -1
  174. package/search-input.d.ts +8 -1
  175. package/search-input.d.ts.map +1 -1
  176. package/search-input.js +4 -1
  177. package/search-input.js.map +1 -1
  178. package/select-input.d.ts +8 -1
  179. package/select-input.d.ts.map +1 -1
  180. package/select-input.js +4 -1
  181. package/select-input.js.map +1 -1
  182. package/skeleton.d.ts +8 -1
  183. package/skeleton.d.ts.map +1 -1
  184. package/skeleton.js +4 -1
  185. package/skeleton.js.map +1 -1
  186. package/split-input.d.ts +8 -1
  187. package/split-input.d.ts.map +1 -1
  188. package/split-input.js +4 -1
  189. package/split-input.js.map +1 -1
  190. package/styles/colors/presets.d.ts +13 -0
  191. package/styles/colors/presets.d.ts.map +1 -0
  192. package/styles/colors/presets.js +6 -0
  193. package/styles/colors/presets.js.map +1 -0
  194. package/styles/colors/presetsRGB.d.ts +16 -0
  195. package/styles/colors/presetsRGB.d.ts.map +1 -0
  196. package/styles/colors/presetsRGB.js +134 -0
  197. package/styles/colors/presetsRGB.js.map +1 -0
  198. package/styles/global.d.ts +18 -0
  199. package/styles/global.d.ts.map +1 -0
  200. package/styles/global.js +78 -0
  201. package/styles/global.js.map +1 -0
  202. package/styles/inputStyle.d.ts +3 -0
  203. package/styles/inputStyle.d.ts.map +1 -0
  204. package/styles/inputStyle.js +59 -0
  205. package/styles/inputStyle.js.map +1 -0
  206. package/switch-input.d.ts +8 -1
  207. package/switch-input.d.ts.map +1 -1
  208. package/switch-input.js +4 -1
  209. package/switch-input.js.map +1 -1
  210. package/text.d.ts +8 -1
  211. package/text.d.ts.map +1 -1
  212. package/text.js +4 -1
  213. package/text.js.map +1 -1
  214. package/time.d.ts +8 -1
  215. package/time.d.ts.map +1 -1
  216. package/time.js +4 -1
  217. package/time.js.map +1 -1
  218. package/tooltip.d.ts +8 -1
  219. package/tooltip.d.ts.map +1 -1
  220. package/tooltip.js +4 -1
  221. package/tooltip.js.map +1 -1
  222. package/typewriter.d.ts +8 -1
  223. package/typewriter.d.ts.map +1 -1
  224. package/typewriter.js +4 -1
  225. package/typewriter.js.map +1 -1
  226. package/web-components/alert/alert.d.ts +2 -10
  227. package/web-components/alert/alert.d.ts.map +1 -1
  228. package/web-components/alert/alert.js +93 -91
  229. package/web-components/alert/alert.js.map +1 -1
  230. package/web-components/avatar/avatar-group.d.ts +21 -0
  231. package/web-components/avatar/avatar-group.d.ts.map +1 -0
  232. package/web-components/avatar/avatar-group.js +86 -0
  233. package/web-components/avatar/avatar-group.js.map +1 -0
  234. package/web-components/avatar/avatar.d.ts +5 -18
  235. package/web-components/avatar/avatar.d.ts.map +1 -1
  236. package/web-components/avatar/avatar.js +70 -85
  237. package/web-components/avatar/avatar.js.map +1 -1
  238. package/web-components/button/button.d.ts +10 -43
  239. package/web-components/button/button.d.ts.map +1 -1
  240. package/web-components/button/button.js +183 -226
  241. package/web-components/button/button.js.map +1 -1
  242. package/web-components/card/card.d.ts +2 -27
  243. package/web-components/card/card.d.ts.map +1 -1
  244. package/web-components/card/card.js +57 -132
  245. package/web-components/card/card.js.map +1 -1
  246. package/web-components/carousel/carousel.d.ts +5 -16
  247. package/web-components/carousel/carousel.d.ts.map +1 -1
  248. package/web-components/carousel/carousel.js +102 -106
  249. package/web-components/carousel/carousel.js.map +1 -1
  250. package/web-components/details/details.d.ts +4 -15
  251. package/web-components/details/details.d.ts.map +1 -1
  252. package/web-components/details/details.js +91 -97
  253. package/web-components/details/details.js.map +1 -1
  254. package/web-components/dialog/dialog.d.ts +6 -17
  255. package/web-components/dialog/dialog.d.ts.map +1 -1
  256. package/web-components/dialog/dialog.js +87 -137
  257. package/web-components/dialog/dialog.js.map +1 -1
  258. package/web-components/divider/divider.d.ts +13 -0
  259. package/web-components/divider/divider.d.ts.map +1 -0
  260. package/web-components/divider/divider.js +95 -0
  261. package/web-components/divider/divider.js.map +1 -0
  262. package/web-components/form/form.d.ts +15 -22
  263. package/web-components/form/form.d.ts.map +1 -1
  264. package/web-components/form/form.js +47 -117
  265. package/web-components/form/form.js.map +1 -1
  266. package/web-components/input/input.d.ts +5 -18
  267. package/web-components/input/input.d.ts.map +1 -1
  268. package/web-components/input/input.js +74 -169
  269. package/web-components/input/input.js.map +1 -1
  270. package/web-components/input/label-input.d.ts +5 -19
  271. package/web-components/input/label-input.d.ts.map +1 -1
  272. package/web-components/input/label-input.js +74 -141
  273. package/web-components/input/label-input.js.map +1 -1
  274. package/web-components/input/range-input.d.ts +53 -0
  275. package/web-components/input/range-input.d.ts.map +1 -0
  276. package/web-components/input/range-input.js +316 -0
  277. package/web-components/input/range-input.js.map +1 -0
  278. package/web-components/input/search-input.d.ts +4 -12
  279. package/web-components/input/search-input.d.ts.map +1 -1
  280. package/web-components/input/search-input.js +118 -113
  281. package/web-components/input/search-input.js.map +1 -1
  282. package/web-components/input/select-input.d.ts +17 -32
  283. package/web-components/input/select-input.d.ts.map +1 -1
  284. package/web-components/input/select-input.js +154 -286
  285. package/web-components/input/select-input.js.map +1 -1
  286. package/web-components/input/split-input.d.ts +8 -15
  287. package/web-components/input/split-input.d.ts.map +1 -1
  288. package/web-components/input/split-input.js +82 -72
  289. package/web-components/input/split-input.js.map +1 -1
  290. package/web-components/input/switch-input.d.ts +8 -17
  291. package/web-components/input/switch-input.d.ts.map +1 -1
  292. package/web-components/input/switch-input.js +122 -158
  293. package/web-components/input/switch-input.js.map +1 -1
  294. package/web-components/layout/flex-flow.d.ts +11 -19
  295. package/web-components/layout/flex-flow.d.ts.map +1 -1
  296. package/web-components/layout/flex-flow.js +57 -35
  297. package/web-components/layout/flex-flow.js.map +1 -1
  298. package/web-components/layout/grid-flow.d.ts +14 -0
  299. package/web-components/layout/grid-flow.d.ts.map +1 -0
  300. package/web-components/layout/grid-flow.js +56 -0
  301. package/web-components/layout/grid-flow.js.map +1 -0
  302. package/web-components/layout/layout.d.ts +18 -0
  303. package/web-components/layout/layout.d.ts.map +1 -0
  304. package/web-components/layout/layout.js +76 -0
  305. package/web-components/layout/layout.js.map +1 -0
  306. package/web-components/link/link.d.ts +10 -0
  307. package/web-components/link/link.d.ts.map +1 -0
  308. package/web-components/link/link.js +17 -0
  309. package/web-components/link/link.js.map +1 -0
  310. package/web-components/link/router-link.d.ts +19 -0
  311. package/web-components/link/router-link.d.ts.map +1 -0
  312. package/web-components/link/router-link.js +60 -0
  313. package/web-components/link/router-link.js.map +1 -0
  314. package/web-components/progress/progress.d.ts +2 -12
  315. package/web-components/progress/progress.d.ts.map +1 -1
  316. package/web-components/progress/progress.js +52 -48
  317. package/web-components/progress/progress.js.map +1 -1
  318. package/web-components/router/router.d.ts +15 -21
  319. package/web-components/router/router.d.ts.map +1 -1
  320. package/web-components/router/router.js +35 -37
  321. package/web-components/router/router.js.map +1 -1
  322. package/web-components/skeleton/skeleton.d.ts +5 -12
  323. package/web-components/skeleton/skeleton.d.ts.map +1 -1
  324. package/web-components/skeleton/skeleton.js +90 -98
  325. package/web-components/skeleton/skeleton.js.map +1 -1
  326. package/web-components/text/overbreath.d.ts +15 -20
  327. package/web-components/text/overbreath.d.ts.map +1 -1
  328. package/web-components/text/overbreath.js +108 -202
  329. package/web-components/text/overbreath.js.map +1 -1
  330. package/web-components/text/text.d.ts +5 -18
  331. package/web-components/text/text.d.ts.map +1 -1
  332. package/web-components/text/text.js +70 -80
  333. package/web-components/text/text.js.map +1 -1
  334. package/web-components/text/time.d.ts +5 -14
  335. package/web-components/text/time.d.ts.map +1 -1
  336. package/web-components/text/time.js +32 -31
  337. package/web-components/text/time.js.map +1 -1
  338. package/web-components/text/typewriter.d.ts +3 -11
  339. package/web-components/text/typewriter.d.ts.map +1 -1
  340. package/web-components/text/typewriter.js +42 -40
  341. package/web-components/text/typewriter.js.map +1 -1
  342. package/web-components/tooltip/tooltip.d.ts +21 -17
  343. package/web-components/tooltip/tooltip.d.ts.map +1 -1
  344. package/web-components/tooltip/tooltip.js +98 -60
  345. package/web-components/tooltip/tooltip.js.map +1 -1
  346. package/web-components/wrapper/dragbox.d.ts +5 -10
  347. package/web-components/wrapper/dragbox.d.ts.map +1 -1
  348. package/web-components/wrapper/dragbox.js +40 -31
  349. package/web-components/wrapper/dragbox.js.map +1 -1
  350. package/web-components/wrapper/rotate.d.ts +30 -0
  351. package/web-components/wrapper/rotate.d.ts.map +1 -0
  352. package/web-components/wrapper/rotate.js +92 -0
  353. package/web-components/wrapper/rotate.js.map +1 -0
  354. package/.deps.js.map +0 -1
  355. package/a.d.ts +0 -2
  356. package/a.d.ts.map +0 -1
  357. package/a.js +0 -2
  358. package/a.js.map +0 -1
  359. package/clip.d.ts +0 -2
  360. package/clip.d.ts.map +0 -1
  361. package/clip.js +0 -2
  362. package/clip.js.map +0 -1
  363. package/decorators/define.d.ts +0 -7
  364. package/decorators/define.d.ts.map +0 -1
  365. package/decorators/define.js +0 -11
  366. package/decorators/define.js.map +0 -1
  367. package/details-group.d.ts +0 -2
  368. package/details-group.d.ts.map +0 -1
  369. package/details-group.js +0 -2
  370. package/details-group.js.map +0 -1
  371. package/godown-element.d.ts.map +0 -1
  372. package/godown-element.js.map +0 -1
  373. package/lib/event-collection.d.ts +0 -14
  374. package/lib/event-collection.d.ts.map +0 -1
  375. package/lib/event-collection.js +0 -71
  376. package/lib/event-collection.js.map +0 -1
  377. package/lib/templates.d.ts.map +0 -1
  378. package/lib/templates.js +0 -76
  379. package/lib/templates.js.map +0 -1
  380. package/naming.d.ts +0 -91
  381. package/naming.d.ts.map +0 -1
  382. package/naming.js +0 -67
  383. package/naming.js.map +0 -1
  384. package/nav-layout.d.ts +0 -2
  385. package/nav-layout.d.ts.map +0 -1
  386. package/nav-layout.js +0 -2
  387. package/nav-layout.js.map +0 -1
  388. package/open-offset.d.ts +0 -2
  389. package/open-offset.d.ts.map +0 -1
  390. package/open-offset.js +0 -2
  391. package/open-offset.js.map +0 -1
  392. package/router-a.d.ts +0 -2
  393. package/router-a.d.ts.map +0 -1
  394. package/router-a.js +0 -2
  395. package/router-a.js.map +0 -1
  396. package/supers/anchor.d.ts +0 -26
  397. package/supers/anchor.d.ts.map +0 -1
  398. package/supers/anchor.js +0 -124
  399. package/supers/anchor.js.map +0 -1
  400. package/supers/input.d.ts +0 -28
  401. package/supers/input.d.ts.map +0 -1
  402. package/supers/input.js +0 -117
  403. package/supers/input.js.map +0 -1
  404. package/supers/openable.d.ts +0 -38
  405. package/supers/openable.d.ts.map +0 -1
  406. package/supers/openable.js +0 -77
  407. package/supers/openable.js.map +0 -1
  408. package/supers/root.d.ts +0 -18
  409. package/supers/root.d.ts.map +0 -1
  410. package/supers/root.js +0 -76
  411. package/supers/root.js.map +0 -1
  412. package/tabs.d.ts +0 -2
  413. package/tabs.d.ts.map +0 -1
  414. package/tabs.js +0 -2
  415. package/tabs.js.map +0 -1
  416. package/web-components/a/a.d.ts +0 -16
  417. package/web-components/a/a.d.ts.map +0 -1
  418. package/web-components/a/a.js +0 -17
  419. package/web-components/a/a.js.map +0 -1
  420. package/web-components/group/avatar-group.d.ts +0 -29
  421. package/web-components/group/avatar-group.d.ts.map +0 -1
  422. package/web-components/group/avatar-group.js +0 -88
  423. package/web-components/group/avatar-group.js.map +0 -1
  424. package/web-components/group/details-group.d.ts +0 -28
  425. package/web-components/group/details-group.d.ts.map +0 -1
  426. package/web-components/group/details-group.js +0 -59
  427. package/web-components/group/details-group.js.map +0 -1
  428. package/web-components/index.d.ts +0 -35
  429. package/web-components/index.d.ts.map +0 -1
  430. package/web-components/index.js +0 -35
  431. package/web-components/index.js.map +0 -1
  432. package/web-components/layout/divider.d.ts +0 -22
  433. package/web-components/layout/divider.d.ts.map +0 -1
  434. package/web-components/layout/divider.js +0 -85
  435. package/web-components/layout/divider.js.map +0 -1
  436. package/web-components/layout/nav-layout.d.ts +0 -38
  437. package/web-components/layout/nav-layout.d.ts.map +0 -1
  438. package/web-components/layout/nav-layout.js +0 -69
  439. package/web-components/layout/nav-layout.js.map +0 -1
  440. package/web-components/offset/open-offset.d.ts +0 -27
  441. package/web-components/offset/open-offset.d.ts.map +0 -1
  442. package/web-components/offset/open-offset.js +0 -130
  443. package/web-components/offset/open-offset.js.map +0 -1
  444. package/web-components/router/router-a.d.ts +0 -25
  445. package/web-components/router/router-a.d.ts.map +0 -1
  446. package/web-components/router/router-a.js +0 -70
  447. package/web-components/router/router-a.js.map +0 -1
  448. package/web-components/tabs/tabs.d.ts +0 -52
  449. package/web-components/tabs/tabs.d.ts.map +0 -1
  450. package/web-components/tabs/tabs.js +0 -165
  451. package/web-components/tabs/tabs.js.map +0 -1
  452. package/web-components/text/clip.d.ts +0 -22
  453. package/web-components/text/clip.d.ts.map +0 -1
  454. package/web-components/text/clip.js +0 -45
  455. package/web-components/text/clip.js.map +0 -1
  456. package/web-components/wrapper/wrapper.d.ts +0 -27
  457. package/web-components/wrapper/wrapper.d.ts.map +0 -1
  458. package/web-components/wrapper/wrapper.js +0 -95
  459. package/web-components/wrapper/wrapper.js.map +0 -1
  460. package/wrapper.d.ts +0 -2
  461. package/wrapper.d.ts.map +0 -1
  462. package/wrapper.js +0 -2
  463. package/wrapper.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"switch-input.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/input/switch-input.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAuB,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,MA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AAX,QAAQ,EAAE;yCAAmB;AAIlB;IAAX,QAAQ,EAAE;0CAAc;AAET;IAAf,KAAK,CAAC,OAAO,CAAC;2CAA0B;AA1B9B,WAAW;IADvB,MAAM,CAAC,UAAU,CAAC;GACN,WAAW,CA4LvB;;AAED,eAAe,WAAW,CAAC","sourcesContent":["import { css, type CSSResultGroup, html, property, query } from \"../../.deps.js\";\nimport { define } from \"../../decorators/define.js\";\nimport { htmlSlot, type HTMLTemplate } from \"../../lib/templates.js\";\nimport { GodownInput } from \"../../supers/input.js\";\nimport { createScope, cssvarValues } from \"../../supers/root.js\";\n\nconst defineName = \"switch-input\";\n\nconst cssScope = createScope(defineName);\n\n/**\n * {@linkcode SwitchInput } renders a switch.\n *\n * Inspired by Steam.\n */\n@define(defineName)\nexport class SwitchInput extends GodownInput {\n /**\n * Border style.\n */\n @property() base: \"fat\" | \"rect\" = \"rect\";\n /**\n * Whether this element is selected or not.\n */\n @property({ type: Boolean }) checked = false;\n /**\n * Whether this element is disabled or not.\n */\n @property({ type: Boolean }) disabled = false;\n /**\n * Parsed by JSON.parse to checked.\n */\n @property() def = \"false\";\n /**\n * Input name.\n */\n @property() name = \"checkbox\";\n /**\n * Input value.\n */\n @property() value = \"on\";\n\n @query(\"input\") _input: HTMLInputElement;\n\n static styles = [\n GodownInput.styles,\n css`\n :host {\n ${cssScope}--width: 3em;\n ${cssScope}--height: calc(var(${cssScope}--width) / 2);\n width: var(${cssScope}--width);\n height: var(${cssScope}--height);\n }\n\n :host,\n span {\n display: inline-flex;\n font-size: inherit;\n position: relative;\n align-items: center;\n border-radius: inherit;\n }\n\n span {\n width: inherit;\n height: inherit;\n }\n\n input {\n width: inherit;\n height: inherit;\n margin: 0;\n outline: none;\n appearance: none;\n -webkit-appearance: none;\n -moz-appearance: none;\n position: relative;\n font-size: inherit;\n background: var(${cssvarValues.input}--false);\n border-radius: inherit;\n transition: all 0.3s;\n }\n\n aside {\n pointer-events: none;\n transition: 0.3s;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n position: absolute;\n font-size: inherit;\n overflow: hidden;\n border-radius: inherit;\n }\n\n aside div {\n height: 100%;\n }\n\n input[disabled] ~ aside {\n filter: brightness(0.87);\n }\n\n .rect div.always {\n display: none;\n }\n\n .always {\n position: absolute;\n }\n\n .rect aside {\n height: 100%;\n width: 100%;\n left: 0;\n }\n\n .rect .true,\n .rect .false {\n width: 50%;\n text-align: center;\n transition: all 0.3s;\n }\n\n .rect input:checked ~ aside div.true,\n .rect .false {\n background-color: var(${cssvarValues.input}--true);\n }\n\n .rect input:checked ~ aside div.false,\n .rect .true {\n background: var(${cssvarValues.input}--false);\n }\n\n .fat aside {\n width: 1.2em;\n height: 1.2em;\n border-radius: 50%;\n background: var(${cssvarValues.input}--control);\n transition: 0.3s;\n left: 0.15em;\n top: 0.15em;\n bottom: 0.15em;\n }\n\n .fat {\n border-radius: 0.75em;\n }\n\n .fat input:checked {\n background: var(${cssvarValues.input}--true);\n }\n\n .fat input:checked ~ aside {\n left: calc(100% - 0.15em - 1.2em);\n right: 0.15em;\n }\n\n .fat input:checked ~ aside div.true,\n .fat div.false {\n display: block;\n }\n\n .fat input:checked ~ aside div.false,\n .fat div.true {\n display: none;\n }\n `,\n ] as CSSResultGroup;\n\n protected render(): HTMLTemplate {\n return html`<span class=\"${this.base}\">\n <input @change=\"${this._handleChange}\" ?disabled=\"${this.disabled}\" ?checked=\"${this.checked}\" name=\"${this.name}\" type=\"checkbox\" />\n <aside>\n <div class=\"false\"><slot name=\"false\"></slot></div>\n <div class=\"always\">${htmlSlot()}<slot name=\"always\"></slot></div>\n <div class=\"true\"><slot name=\"true\"></slot></div>\n </aside>\n </span>`;\n }\n\n reset() {\n this.checked = this.def === \"true\";\n this._input.checked = this.checked;\n }\n\n connectedCallback() {\n super.connectedCallback();\n if (this.checked) {\n this.def = \"true\";\n } else if (this.def === \"true\") {\n this.checked = true;\n }\n }\n\n protected _handleChange() {\n this.checked = this._input.checked;\n this.dispatchEvent(new CustomEvent(\"input\", { detail: this.checked, bubbles: true, composed: true }));\n this.dispatchEvent(new CustomEvent(\"change\", { detail: this.checked, composed: true }));\n }\n\n namevalue(): [string, boolean] {\n return [this.name, this.checked];\n }\n}\n\nexport default SwitchInput;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"switch-input\": SwitchInput;\n \"g-switch-input\": SwitchInput;\n }\n}\n"]}
1
+ {"version":3,"file":"switch-input.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/input/switch-input.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,WAAW,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAExD,MAAM,SAAS,GAAG,cAAc,CAAC;AAEjC;;;;GAIG;AA2FI,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,WAAW;IAArC;;QAKL;;WAEG;QACH,gDAAgD;QACJ,UAAK,GAAG,KAAK,CAAC;QAC1D;;WAEG;QACyC,YAAO,GAAG,KAAK,CAAC;QAC5D;;WAEG;QACyC,aAAQ,GAAG,KAAK,CAAC;QAC7D;;WAEG;QACS,YAAO,GAAG,OAAO,CAAC;QAC9B;;WAEG;QACS,UAAK,GAAG,IAAI,CAAC;IA6C3B,CAAC;IAzCW,MAAM;QACd,OAAO,IAAI,CAAA,2BAA2B,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM;;;mBAGpD,IAAI,CAAC,aAAa;qBAChB,IAAI,CAAC,QAAQ;oBACd,IAAI,CAAC,OAAO;gBAChB,IAAI,CAA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C,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;6CAAkB;AAIjD;IAAX,QAAQ,EAAE;4CAAmB;AAIlB;IAAX,QAAQ,EAAE;0CAAc;AAET;IAAf,KAAK,CAAC,OAAO,CAAC;2CAA0B;AA3B9B,WAAW;IA1FvB,MAAM,CAAC,SAAS,CAAC;IACjB,MAAM,CAAC;QACN,UAAU;QACV,GAAG,CAAA;;UAEK,aAAa,CAAC,KAAK;UACnB,aAAa,CAAC,KAAK,wBAAwB,aAAa,CAAC,KAAK;UAC9D,aAAa,CAAC,KAAK,qBAAqB,aAAa,CAAC,KAAK;UAC3D,aAAa,CAAC,KAAK;0BACH,aAAa,CAAC,KAAK;qBACxB,aAAa,CAAC,KAAK;sBAClB,aAAa,CAAC,KAAK;;;;;;;;0BAQf,aAAa,CAAC,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAmCX,aAAa,CAAC,KAAK;;;;;;;;;;;;0BAY3B,aAAa,CAAC,KAAK;;;;0BAInB,aAAa,CAAC,KAAK;;;;;sBAKvB,aAAa,CAAC,KAAK;0BACf,aAAa,CAAC,KAAK;0BACnB,aAAa,CAAC,KAAK,qBAAqB,aAAa,CAAC,KAAK;2BAC1D,aAAa,CAAC,KAAK,qBAAqB,aAAa,CAAC,KAAK;;;;0BAI5D,aAAa,CAAC,KAAK;;;;0BAInB,aAAa,CAAC,KAAK;;GAE1C;KACF,CAAC;GACW,WAAW,CAsEvB;;AAED,eAAe,WAAW,CAAC","sourcesContent":["import { css, html, property, query } from \"../../_deps.js\";\nimport { godown } from \"../../decorators/godown.js\";\nimport { styles } from \"../../decorators/styles.js\";\nimport GodownInput from \"../../proto/super-input.js\";\nimport { cssGlobalVars } from \"../../styles/global.js\";\nimport { inputStyle } from \"../../styles/inputStyle.js\";\n\nconst protoName = \"switch-input\";\n\n/**\n * {@linkcode SwitchInput } renders a switch.\n *\n * Inspired by Steam.\n */\n@godown(protoName)\n@styles([\n inputStyle,\n css`\n :host {\n --${cssGlobalVars.input}--width: 3em;\n --${cssGlobalVars.input}--height: calc(var(--${cssGlobalVars.input}--width) / 2);\n --${cssGlobalVars.input}--gap: calc(var(--${cssGlobalVars.input}--width) / 25);\n --${cssGlobalVars.input}--transition: all .25s ease-in-out;\n background: var(--${cssGlobalVars.input}--background);\n width: var(--${cssGlobalVars.input}--width);\n height: var(--${cssGlobalVars.input}--height);\n display: inline-block;\n vertical-align: bottom;\n }\n\n [part=\"root\"],\n span,\n i {\n transition: var(--${cssGlobalVars.input}--transition);\n }\n\n [part=\"root\"] {\n border-radius: inherit;\n position: relative;\n height: inherit;\n }\n\n [part=\"root\"],\n input,\n i {\n width: 100%;\n }\n\n input {\n margin: 0;\n height: 100%;\n outline: none;\n appearance: none;\n -webkit-appearance: none;\n -moz-appearance: none;\n }\n\n span {\n height: 100%;\n display: inline-flex;\n position: absolute;\n left: 0;\n width: 50%;\n pointer-events: none;\n border-radius: inherit;\n }\n\n :host([round]) {\n border-radius: calc(var(--${cssGlobalVars.input}--height) / 2);\n }\n\n :host([checked]) span {\n transform: translateX(100%);\n }\n\n .rect * {\n border-radius: inherit;\n }\n\n .rect .true {\n background: var(--${cssGlobalVars.input}--true);\n }\n\n .rect .false {\n background: var(--${cssGlobalVars.input}--false);\n }\n\n .round i {\n border-radius: 100%;\n margin: var(--${cssGlobalVars.input}--gap);\n background: var(--${cssGlobalVars.input}--control);\n width: calc(var(--${cssGlobalVars.input}--height) - var(--${cssGlobalVars.input}--gap) * 2);\n height: calc(var(--${cssGlobalVars.input}--height) - var(--${cssGlobalVars.input}--gap) * 2);\n }\n\n .round {\n background: var(--${cssGlobalVars.input}--false);\n }\n\n :host([checked]) .round {\n background: var(--${cssGlobalVars.input}--true);\n }\n `,\n])\nexport class SwitchInput extends GodownInput {\n /**\n * @deprecated\n */\n base: \"fat\" | \"rect\";\n /**\n * Border style.\n */\n // @property() variant: \"fat\" | \"rect\" = \"rect\";\n @property({ type: Boolean, reflect: true }) round = false;\n /**\n * Whether this element is selected or not.\n */\n @property({ type: Boolean, reflect: true }) checked = false;\n /**\n * Whether this element is disabled or not.\n */\n @property({ type: Boolean, reflect: true }) disabled = false;\n /**\n * Parsed by JSON.parse to checked.\n */\n @property() default = \"false\";\n /**\n * Input value.\n */\n @property() value = \"on\";\n\n @query(\"input\") _input: HTMLInputElement;\n\n protected render() {\n return html`<div part=\"root\" class=\"${this.round ? \"round\" : \"rect\"}\">\n <input\n part=\"input\"\n @change=\"${this._handleChange}\"\n ?disabled=\"${this.disabled}\"\n ?checked=\"${this.checked}\"\n name=\"${this.name}\"\n id=\"${this.makeId}\"\n type=\"checkbox\"\n />\n <span>\n <i class=\"${this.checked}\"><i></i></i>\n </span>\n </div>`;\n }\n\n reset() {\n this.checked = this.default === \"true\";\n this._input.checked = this.checked;\n }\n\n connectedCallback() {\n super.connectedCallback();\n if (this.checked) {\n this.default = \"true\";\n }\n if (this.default === \"true\") {\n this.checked = true;\n }\n }\n\n protected _handleChange() {\n this.checked = this._input.checked;\n this.dispatchEvent(new CustomEvent(\"input\", { detail: this.checked, bubbles: true, composed: true }));\n this.dispatchEvent(new CustomEvent(\"change\", { detail: this.checked, composed: true }));\n }\n\n namevalue(): [string, boolean] {\n return [this.name, this.checked];\n }\n}\n\nexport default SwitchInput;\n"]}
@@ -1,25 +1,17 @@
1
- import { type HTMLTemplate } from "../../lib/templates.js";
2
- import { GodownElement } from "../../supers/root.js";
1
+ import { GodownElement } from "../../proto/godown-element.js";
3
2
  /**
4
- * {@linkcode FlexFlow} controls the flex layout based on the width of the screen.
3
+ * {@linkcode FlexFlow} provides flex layout.
5
4
  */
6
5
  export declare class FlexFlow extends GodownElement {
7
- /**
8
- * The flex-flow behavior.
9
- */
10
- flexflow: string;
11
- /**
12
- * The width of the screen for the position change.
13
- */
14
- mobile: string;
15
- static styles: import("lit").CSSResult[];
16
- protected render(): HTMLTemplate;
6
+ flexFlow: string;
7
+ direction: string;
8
+ gap: string;
9
+ flex: string;
10
+ justify: string;
11
+ align: string;
12
+ wrap: string;
13
+ vertical: boolean;
14
+ protected render(): import("lit").TemplateResult<1>[];
17
15
  }
18
16
  export default FlexFlow;
19
- declare global {
20
- interface HTMLElementTagNameMap {
21
- "flex-flow": FlexFlow;
22
- "g-flex-flow": FlexFlow;
23
- }
24
- }
25
17
  //# sourceMappingURL=flex-flow.d.ts.map
@@ -1 +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":"AAEA,OAAO,EAAuB,KAAK,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAChF,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAIrD;;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;QACtB,aAAa,EAAE,QAAQ,CAAC;KACzB;CACF"}
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":"AAMA,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAI9D;;GAEG;AACH,qBAYa,QAAS,SAAQ,aAAa;IAIzC,QAAQ,EAAE,MAAM,CAAC;IAEL,SAAS,EAAE,MAAM,CAAC;IAElB,GAAG,EAAE,MAAM,CAAC;IAEZ,IAAI,EAAE,MAAM,CAAC;IAEb,OAAO,EAAE,MAAM,CAAC;IAEhB,KAAK,EAAE,MAAM,CAAC;IAEd,IAAI,EAAE,MAAM,CAAC;IAEI,QAAQ,EAAE,OAAO,CAAC;IAE/C,SAAS,CAAC,MAAM;CAkBjB;AAED,eAAe,QAAQ,CAAC"}
@@ -1,50 +1,72 @@
1
1
  import { __decorate } from "tslib";
2
- import { css, html, property } from "../../.deps.js";
3
- import { define } from "../../decorators/define.js";
4
- import { htmlSlot, htmlStyle } from "../../lib/templates.js";
5
- import { GodownElement } from "../../supers/root.js";
6
- const defineName = "flex-flow";
2
+ import { css, property } from "../../_deps.js";
3
+ import { godown } from "../../decorators/godown.js";
4
+ import { styles } from "../../decorators/styles.js";
5
+ import { htmlSlot } from "../../lib/directives.js";
6
+ import { htmlStyle } from "../../lib/directives.js";
7
+ import { joinRules } from "../../lib/utils.js";
8
+ import { GodownElement } from "../../proto/godown-element.js";
9
+ const protoName = "flex-flow";
7
10
  /**
8
- * {@linkcode FlexFlow} controls the flex layout based on the width of the screen.
11
+ * {@linkcode FlexFlow} provides flex layout.
9
12
  */
10
13
  let FlexFlow = class FlexFlow extends GodownElement {
11
- constructor() {
12
- super(...arguments);
13
- /**
14
- * The flex-flow behavior.
15
- */
16
- this.flexflow = "row nowrap column nowrap";
17
- /**
18
- * The width of the screen for the position change.
19
- */
20
- this.mobile = "720px";
21
- }
22
14
  render() {
23
- const flexflow = this.flexflow.split(/\s+/);
24
- const flexDirection = flexflow[0] || "row";
25
- const flexWrap = flexflow[1] || "nowrap";
26
- const flexDirectionM = flexflow[2] || flexDirection || "column";
27
- const flexWrapM = flexflow[3] || flexWrap || "nowrap";
28
- const m = this.mobile || "720px";
29
- const style = `:host{flex-direction:${flexDirection};flex-wrap:${flexWrap};}@media(max-width: ${m}){:host{flex-direction:${flexDirectionM};flex-wrap:${flexWrapM}}`;
30
- return html `${htmlSlot()} ${htmlStyle(style)}`;
15
+ return [
16
+ htmlSlot(),
17
+ htmlStyle(joinRules({
18
+ ":host": {
19
+ "flex-direction": this.direction,
20
+ "flex-wrap": this.wrap,
21
+ gap: this.gap,
22
+ "align-items": this.align,
23
+ "justify-content": this.justify,
24
+ flex: this.flex,
25
+ "flex-flow": this.flexFlow,
26
+ },
27
+ })),
28
+ ];
31
29
  }
32
30
  };
33
- FlexFlow.styles = [
34
- css `
35
- :host {
36
- display: flex !important;
37
- }
38
- `,
39
- ];
31
+ __decorate([
32
+ property({
33
+ attribute: protoName,
34
+ })
35
+ ], FlexFlow.prototype, "flexFlow", void 0);
36
+ __decorate([
37
+ property()
38
+ ], FlexFlow.prototype, "direction", void 0);
40
39
  __decorate([
41
40
  property()
42
- ], FlexFlow.prototype, "flexflow", void 0);
41
+ ], FlexFlow.prototype, "gap", void 0);
43
42
  __decorate([
44
43
  property()
45
- ], FlexFlow.prototype, "mobile", void 0);
44
+ ], FlexFlow.prototype, "flex", void 0);
45
+ __decorate([
46
+ property()
47
+ ], FlexFlow.prototype, "justify", void 0);
48
+ __decorate([
49
+ property()
50
+ ], FlexFlow.prototype, "align", void 0);
51
+ __decorate([
52
+ property()
53
+ ], FlexFlow.prototype, "wrap", void 0);
54
+ __decorate([
55
+ property({ type: Boolean })
56
+ ], FlexFlow.prototype, "vertical", void 0);
46
57
  FlexFlow = __decorate([
47
- define(defineName)
58
+ godown(protoName),
59
+ styles([
60
+ css `
61
+ :host {
62
+ display: flex;
63
+ }
64
+
65
+ :host([vertical]) {
66
+ flex-direction: column;
67
+ }
68
+ `,
69
+ ])
48
70
  ], FlexFlow);
49
71
  export { FlexFlow };
50
72
  export default FlexFlow;
@@ -1 +1 @@
1
- {"version":3,"file":"flex-flow.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/layout/flex-flow.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAqB,MAAM,wBAAwB,CAAC;AAChF,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD,MAAM,UAAU,GAAG,WAAW,CAAC;AAE/B;;GAEG;AAEI,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,aAAa;IAApC;;QACL;;WAEG;QACS,aAAQ,GAAG,0BAA0B,CAAC;QAClD;;WAEG;QACS,WAAM,GAAG,OAAO,CAAC;IAoB/B,CAAC;IAVW,MAAM;QACd,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAC5C,MAAM,aAAa,GAAG,QAAQ,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC;QAC3C,MAAM,QAAQ,GAAG,QAAQ,CAAC,CAAC,CAAC,IAAI,QAAQ,CAAC;QACzC,MAAM,cAAc,GAAG,QAAQ,CAAC,CAAC,CAAC,IAAI,aAAa,IAAI,QAAQ,CAAC;QAChE,MAAM,SAAS,GAAG,QAAQ,CAAC,CAAC,CAAC,IAAI,QAAQ,IAAI,QAAQ,CAAC;QACtD,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,IAAI,OAAO,CAAC;QACjC,MAAM,KAAK,GAAG,wBAAwB,aAAa,cAAc,QAAQ,uBAAuB,CAAC,0BAA0B,cAAc,cAAc,SAAS,GAAG,CAAC;QACpK,OAAO,IAAI,CAAA,GAAG,QAAQ,EAAE,IAAI,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC;IACjD,CAAC;;AAjBM,eAAM,GAAG;IACd,GAAG,CAAA;;;;KAIF;CACF,AANY,CAMX;AAZU;IAAX,QAAQ,EAAE;0CAAuC;AAItC;IAAX,QAAQ,EAAE;wCAAkB;AARlB,QAAQ;IADpB,MAAM,CAAC,UAAU,CAAC;GACN,QAAQ,CA4BpB;;AAED,eAAe,QAAQ,CAAC","sourcesContent":["import { css, html, property } from \"../../.deps.js\";\nimport { define } from \"../../decorators/define.js\";\nimport { htmlSlot, htmlStyle, type HTMLTemplate } from \"../../lib/templates.js\";\nimport { GodownElement } from \"../../supers/root.js\";\n\nconst defineName = \"flex-flow\";\n\n/**\n * {@linkcode FlexFlow} controls the flex layout based on the width of the screen.\n */\n@define(defineName)\nexport class FlexFlow extends GodownElement {\n /**\n * The flex-flow behavior.\n */\n @property() flexflow = \"row nowrap column nowrap\";\n /**\n * The width of the screen for the position change.\n */\n @property() mobile = \"720px\";\n\n static styles = [\n css`\n :host {\n display: flex !important;\n }\n `,\n ];\n\n protected render(): HTMLTemplate {\n const flexflow = this.flexflow.split(/\\s+/);\n const flexDirection = flexflow[0] || \"row\";\n const flexWrap = flexflow[1] || \"nowrap\";\n const flexDirectionM = flexflow[2] || flexDirection || \"column\";\n const flexWrapM = flexflow[3] || flexWrap || \"nowrap\";\n const m = this.mobile || \"720px\";\n const style = `:host{flex-direction:${flexDirection};flex-wrap:${flexWrap};}@media(max-width: ${m}){:host{flex-direction:${flexDirectionM};flex-wrap:${flexWrapM}}`;\n return html`${htmlSlot()} ${htmlStyle(style)}`;\n }\n}\n\nexport default FlexFlow;\ndeclare global {\n interface HTMLElementTagNameMap {\n \"flex-flow\": FlexFlow;\n \"g-flex-flow\": FlexFlow;\n }\n}\n"]}
1
+ {"version":3,"file":"flex-flow.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/layout/flex-flow.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAE9D,MAAM,SAAS,GAAG,WAAW,CAAC;AAE9B;;GAEG;AAaI,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,aAAa;IAoB/B,MAAM;QACd,OAAO;YACL,QAAQ,EAAE;YACV,SAAS,CACP,SAAS,CAAC;gBACR,OAAO,EAAE;oBACP,gBAAgB,EAAE,IAAI,CAAC,SAAS;oBAChC,WAAW,EAAE,IAAI,CAAC,IAAI;oBACtB,GAAG,EAAE,IAAI,CAAC,GAAG;oBACb,aAAa,EAAE,IAAI,CAAC,KAAK;oBACzB,iBAAiB,EAAE,IAAI,CAAC,OAAO;oBAC/B,IAAI,EAAE,IAAI,CAAC,IAAI;oBACf,WAAW,EAAE,IAAI,CAAC,QAAQ;iBAC3B;aACF,CAAC,CACH;SACF,CAAC;IACJ,CAAC;CACF,CAAA;AAlCC;IAHC,QAAQ,CAAC;QACR,SAAS,EAAE,SAAS;KACrB,CAAC;0CACe;AAEL;IAAX,QAAQ,EAAE;2CAAmB;AAElB;IAAX,QAAQ,EAAE;qCAAa;AAEZ;IAAX,QAAQ,EAAE;sCAAc;AAEb;IAAX,QAAQ,EAAE;yCAAiB;AAEhB;IAAX,QAAQ,EAAE;uCAAe;AAEd;IAAX,QAAQ,EAAE;sCAAc;AAEI;IAA5B,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;0CAAmB;AAlBpC,QAAQ;IAZpB,MAAM,CAAC,SAAS,CAAC;IACjB,MAAM,CAAC;QACN,GAAG,CAAA;;;;;;;;GAQF;KACF,CAAC;GACW,QAAQ,CAsCpB;;AAED,eAAe,QAAQ,CAAC","sourcesContent":["import { css, property } from \"../../_deps.js\";\nimport { godown } from \"../../decorators/godown.js\";\nimport { styles } from \"../../decorators/styles.js\";\nimport { htmlSlot } from \"../../lib/directives.js\";\nimport { htmlStyle } from \"../../lib/directives.js\";\nimport { joinRules } from \"../../lib/utils.js\";\nimport { GodownElement } from \"../../proto/godown-element.js\";\n\nconst protoName = \"flex-flow\";\n\n/**\n * {@linkcode FlexFlow} provides flex layout.\n */\n@godown(protoName)\n@styles([\n css`\n :host {\n display: flex;\n }\n\n :host([vertical]) {\n flex-direction: column;\n }\n `,\n])\nexport class FlexFlow extends GodownElement {\n @property({\n attribute: protoName,\n })\n flexFlow: string;\n\n @property() direction: string;\n\n @property() gap: string;\n\n @property() flex: string;\n\n @property() justify: string;\n\n @property() align: string;\n\n @property() wrap: string;\n\n @property({ type: Boolean }) vertical: boolean;\n\n protected render() {\n return [\n htmlSlot(),\n htmlStyle(\n joinRules({\n \":host\": {\n \"flex-direction\": this.direction,\n \"flex-wrap\": this.wrap,\n gap: this.gap,\n \"align-items\": this.align,\n \"justify-content\": this.justify,\n flex: this.flex,\n \"flex-flow\": this.flexFlow,\n },\n }),\n ),\n ];\n }\n}\n\nexport default FlexFlow;\n"]}
@@ -0,0 +1,14 @@
1
+ import { GodownElement } from "../../proto/godown-element.js";
2
+ /**
3
+ * {@linkcode GridFlow} provides gird layout.
4
+ */
5
+ export declare class GridFlow extends GodownElement {
6
+ gap: string;
7
+ columns: string | number;
8
+ rows: string | number;
9
+ content: string;
10
+ items: string;
11
+ protected render(): import("lit").TemplateResult<1>[];
12
+ }
13
+ export default GridFlow;
14
+ //# sourceMappingURL=grid-flow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"grid-flow.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/layout/grid-flow.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAI9D;;GAEG;AACH,qBAQa,QAAS,SAAQ,aAAa;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IAE1B,SAAS,CAAC,MAAM;CAgBjB;AAED,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,56 @@
1
+ import { __decorate } from "tslib";
2
+ import { css, property } from "../../_deps.js";
3
+ import { godown } from "../../decorators/godown.js";
4
+ import { styles } from "../../decorators/styles.js";
5
+ import { htmlSlot } from "../../lib/directives.js";
6
+ import { htmlStyle } from "../../lib/directives.js";
7
+ import { joinRules, numerical } from "../../lib/utils.js";
8
+ import { GodownElement } from "../../proto/godown-element.js";
9
+ const protoName = "grid-flow";
10
+ /**
11
+ * {@linkcode GridFlow} provides gird layout.
12
+ */
13
+ let GridFlow = class GridFlow extends GodownElement {
14
+ render() {
15
+ return [
16
+ htmlSlot(),
17
+ htmlStyle(joinRules({
18
+ ":host": {
19
+ gap: this.gap,
20
+ "grid-template-columns": numerical(this.columns) ? `repeat(${this.columns},1fr)` : this.columns,
21
+ "grid-template-rows": numerical(this.rows) ? `repeat(${this.rows},1fr)` : this.rows,
22
+ "place-content": this.content,
23
+ "place-items": this.items,
24
+ },
25
+ })),
26
+ ];
27
+ }
28
+ };
29
+ __decorate([
30
+ property()
31
+ ], GridFlow.prototype, "gap", void 0);
32
+ __decorate([
33
+ property()
34
+ ], GridFlow.prototype, "columns", void 0);
35
+ __decorate([
36
+ property()
37
+ ], GridFlow.prototype, "rows", void 0);
38
+ __decorate([
39
+ property()
40
+ ], GridFlow.prototype, "content", void 0);
41
+ __decorate([
42
+ property()
43
+ ], GridFlow.prototype, "items", void 0);
44
+ GridFlow = __decorate([
45
+ godown(protoName),
46
+ styles([
47
+ css `
48
+ :host {
49
+ display: grid;
50
+ }
51
+ `,
52
+ ])
53
+ ], GridFlow);
54
+ export { GridFlow };
55
+ export default GridFlow;
56
+ //# sourceMappingURL=grid-flow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"grid-flow.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/layout/grid-flow.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAA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../_deps.js\";\nimport { godown } from \"../../decorators/godown.js\";\nimport { styles } from \"../../decorators/styles.js\";\nimport { htmlSlot } from \"../../lib/directives.js\";\nimport { htmlStyle } from \"../../lib/directives.js\";\nimport { joinRules, numerical } from \"../../lib/utils.js\";\nimport { GodownElement } from \"../../proto/godown-element.js\";\n\nconst protoName = \"grid-flow\";\n\n/**\n * {@linkcode GridFlow} provides gird layout.\n */\n@godown(protoName)\n@styles([\n css`\n :host {\n display: grid;\n }\n `,\n])\nexport class GridFlow extends GodownElement {\n @property() gap: string;\n @property() columns: string | number;\n @property() rows: string | number;\n @property() content: string;\n @property() items: string;\n\n protected render() {\n return [\n htmlSlot(),\n htmlStyle(\n joinRules({\n \":host\": {\n gap: this.gap,\n \"grid-template-columns\": numerical(this.columns) ? `repeat(${this.columns},1fr)` : this.columns,\n \"grid-template-rows\": numerical(this.rows) ? `repeat(${this.rows},1fr)` : this.rows,\n \"place-content\": this.content,\n \"place-items\": this.items,\n },\n }),\n ),\n ];\n }\n}\n\nexport default GridFlow;\n"]}
@@ -0,0 +1,18 @@
1
+ import { GodownElement } from "../../proto/godown-element.js";
2
+ /**
3
+ * {@linkcode NavLayout} renders a navigation, an optional top header, an optional bottom footer.
4
+ *
5
+ * @slot - The main content of the layout.
6
+ *
7
+ * @slot header - The header of the layout.
8
+ *
9
+ * @slot footer - The footer of the layout.
10
+ */
11
+ export declare class NavLayout extends GodownElement {
12
+ noHeader: boolean;
13
+ noFooter: boolean;
14
+ sticky: boolean;
15
+ protected render(): import("lit").TemplateResult<1>;
16
+ }
17
+ export default NavLayout;
18
+ //# sourceMappingURL=layout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layout.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/layout/layout.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAG9D;;;;;;;;GAQG;AACH,qBA0Ba,SAAU,SAAQ,aAAa;IAI1C,QAAQ,EAAE,OAAO,CAAC;IAIlB,QAAQ,EAAE,OAAO,CAAC;IAKlB,MAAM,EAAE,OAAO,CAAC;IAEhB,SAAS,CAAC,MAAM;CAejB;AAED,eAAe,SAAS,CAAC"}
@@ -0,0 +1,76 @@
1
+ import { __decorate } from "tslib";
2
+ import { css, html, property } from "../../_deps.js";
3
+ import { godown } from "../../decorators/godown.js";
4
+ import { styles } from "../../decorators/styles.js";
5
+ import { combine, htmlSlot, ifValue } from "../../lib/directives.js";
6
+ import { GodownElement } from "../../proto/godown-element.js";
7
+ const protoName = "layout";
8
+ /**
9
+ * {@linkcode NavLayout} renders a navigation, an optional top header, an optional bottom footer.
10
+ *
11
+ * @slot - The main content of the layout.
12
+ *
13
+ * @slot header - The header of the layout.
14
+ *
15
+ * @slot footer - The footer of the layout.
16
+ */
17
+ let NavLayout = class NavLayout extends GodownElement {
18
+ render() {
19
+ return html `${ifValue(!this.noHeader, html `<header
20
+ part="header"
21
+ class="${combine({
22
+ sticky: this.sticky,
23
+ })}"
24
+ >
25
+ ${htmlSlot("header")}
26
+ </header>`)}
27
+ <main part="main">${htmlSlot()}</main>
28
+ ${ifValue(!this.noFooter, html `<footer part="footer">${htmlSlot("footer")}</footer> `)}`;
29
+ }
30
+ };
31
+ __decorate([
32
+ property({
33
+ type: Boolean,
34
+ })
35
+ ], NavLayout.prototype, "noHeader", void 0);
36
+ __decorate([
37
+ property({
38
+ type: Boolean,
39
+ })
40
+ ], NavLayout.prototype, "noFooter", void 0);
41
+ __decorate([
42
+ property({
43
+ type: Boolean,
44
+ })
45
+ ], NavLayout.prototype, "sticky", void 0);
46
+ NavLayout = __decorate([
47
+ godown(protoName),
48
+ styles([
49
+ css `
50
+ :host {
51
+ min-height: 100%;
52
+ display: flex;
53
+ flex-direction: column;
54
+ }
55
+
56
+ .sticky {
57
+ position: sticky;
58
+ top: 0;
59
+ z-index: 1;
60
+ }
61
+
62
+ [part="main"] {
63
+ position: relative;
64
+ flex: 1;
65
+ width: 100%;
66
+ }
67
+
68
+ [part] {
69
+ width: 100%;
70
+ }
71
+ `,
72
+ ])
73
+ ], NavLayout);
74
+ export { NavLayout };
75
+ export default NavLayout;
76
+ //# sourceMappingURL=layout.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layout.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/layout/layout.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAE9D,MAAM,SAAS,GAAG,QAAQ,CAAC;AAC3B;;;;;;;;GAQG;AA2BI,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,aAAa;IAehC,MAAM;QACd,OAAO,IAAI,CAAA,GAAG,OAAO,CACjB,CAAC,IAAI,CAAC,QAAQ,EACd,IAAI,CAAA;;mBAEO,OAAO,CAAC;YACf,MAAM,EAAE,IAAI,CAAC,MAAM;SACpB,CAAC;;YAEA,QAAQ,CAAC,QAAQ,CAAC;kBACZ,CACX;0BACmB,QAAQ,EAAE;QAC5B,OAAO,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAA,yBAAyB,QAAQ,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,CAAC;IAC7F,CAAC;CACF,CAAA;AA1BC;IAHC,QAAQ,CAAC;QACR,IAAI,EAAE,OAAO;KACd,CAAC;2CACgB;AAIlB;IAHC,QAAQ,CAAC;QACR,IAAI,EAAE,OAAO;KACd,CAAC;2CACgB;AAKlB;IAHC,QAAQ,CAAC;QACR,IAAI,EAAE,OAAO;KACd,CAAC;yCACc;AAbL,SAAS;IA1BrB,MAAM,CAAC,SAAS,CAAC;IACjB,MAAM,CAAC;QACN,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;GAsBF;KACF,CAAC;GACW,SAAS,CA8BrB;;AAED,eAAe,SAAS,CAAC","sourcesContent":["import { css, html, property } from \"../../_deps.js\";\nimport { godown } from \"../../decorators/godown.js\";\nimport { styles } from \"../../decorators/styles.js\";\nimport { combine, htmlSlot, ifValue } from \"../../lib/directives.js\";\nimport { GodownElement } from \"../../proto/godown-element.js\";\n\nconst protoName = \"layout\";\n/**\n * {@linkcode NavLayout} renders a navigation, an optional top header, an optional bottom footer.\n *\n * @slot - The main content of the layout.\n *\n * @slot header - The header of the layout.\n *\n * @slot footer - The footer of the layout.\n */\n@godown(protoName)\n@styles([\n css`\n :host {\n min-height: 100%;\n display: flex;\n flex-direction: column;\n }\n\n .sticky {\n position: sticky;\n top: 0;\n z-index: 1;\n }\n\n [part=\"main\"] {\n position: relative;\n flex: 1;\n width: 100%;\n }\n\n [part] {\n width: 100%;\n }\n `,\n])\nexport class NavLayout extends GodownElement {\n @property({\n type: Boolean,\n })\n noHeader: boolean;\n @property({\n type: Boolean,\n })\n noFooter: boolean;\n\n @property({\n type: Boolean,\n })\n sticky: boolean;\n\n protected render() {\n return html`${ifValue(\n !this.noHeader,\n html`<header\n part=\"header\"\n class=\"${combine({\n sticky: this.sticky,\n })}\"\n >\n ${htmlSlot(\"header\")}\n </header>`,\n )}\n <main part=\"main\">${htmlSlot()}</main>\n ${ifValue(!this.noFooter, html`<footer part=\"footer\">${htmlSlot(\"footer\")}</footer> `)}`;\n }\n}\n\nexport default NavLayout;\n"]}
@@ -0,0 +1,10 @@
1
+ import GodownSuperA from "../../proto/super-a.js";
2
+ /**
3
+ * {@linkcode A} similar to a.
4
+ *
5
+ * Has an optional arrow.
6
+ */
7
+ export declare class A extends GodownSuperA {
8
+ }
9
+ export default A;
10
+ //# sourceMappingURL=link.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"link.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/link/link.ts"],"names":[],"mappings":"AACA,OAAO,YAAY,MAAM,wBAAwB,CAAC;AAIlD;;;;GAIG;AACH,qBACa,CAAE,SAAQ,YAAY;CAAG;AAEtC,eAAe,CAAC,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { __decorate } from "tslib";
2
+ import { godown } from "../../decorators/godown.js";
3
+ import GodownSuperA from "../../proto/super-a.js";
4
+ const protoName = "link";
5
+ /**
6
+ * {@linkcode A} similar to a.
7
+ *
8
+ * Has an optional arrow.
9
+ */
10
+ let A = class A extends GodownSuperA {
11
+ };
12
+ A = __decorate([
13
+ godown(protoName)
14
+ ], A);
15
+ export { A };
16
+ export default A;
17
+ //# sourceMappingURL=link.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"link.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/link/link.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,YAAY,MAAM,wBAAwB,CAAC;AAElD,MAAM,SAAS,GAAG,MAAM,CAAC;AAEzB;;;;GAIG;AAEI,IAAM,CAAC,GAAP,MAAM,CAAE,SAAQ,YAAY;CAAG,CAAA;AAAzB,CAAC;IADb,MAAM,CAAC,SAAS,CAAC;GACL,CAAC,CAAwB;;AAEtC,eAAe,CAAC,CAAC","sourcesContent":["import { godown } from \"../../decorators/godown.js\";\nimport GodownSuperA from \"../../proto/super-a.js\";\n\nconst protoName = \"link\";\n\n/**\n * {@linkcode A} similar to a.\n *\n * Has an optional arrow.\n */\n@godown(protoName)\nexport class A extends GodownSuperA {}\n\nexport default A;\n"]}
@@ -0,0 +1,19 @@
1
+ import GodownSuperA from "../../proto/super-a.js";
2
+ /**
3
+ * {@linkcode RouterLink} works with {@linkcode Router}.
4
+ *
5
+ * @extends A
6
+ */
7
+ export declare class RouterLink extends GodownSuperA {
8
+ /**
9
+ * If true, replaceState, or pushState.
10
+ */
11
+ replace: boolean;
12
+ connectedCallback(): void;
13
+ protected _handleClick(e: MouseEvent): void;
14
+ pushState(url?: string, data?: any): void;
15
+ replaceState(url?: string, data?: any): void;
16
+ updateRouter(): void;
17
+ }
18
+ export default RouterLink;
19
+ //# sourceMappingURL=router-link.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"router-link.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/link/router-link.ts"],"names":[],"mappings":"AAEA,OAAO,YAAY,MAAM,wBAAwB,CAAC;AAKlD;;;;GAIG;AACH,qBACa,UAAW,SAAQ,YAAY;IAC1C;;OAEG;IAC0B,OAAO,UAAS;IAE7C,iBAAiB;IAMjB,SAAS,CAAC,YAAY,CAAC,CAAC,EAAE,UAAU;IAYpC,SAAS,CAAC,GAAG,SAAY,EAAE,IAAI,MAAO;IAItC,YAAY,CAAC,GAAG,SAAY,EAAE,IAAI,MAAO;IAIzC,YAAY;CAQb;AAED,eAAe,UAAU,CAAC"}
@@ -0,0 +1,60 @@
1
+ import { __decorate } from "tslib";
2
+ import { property } from "../../_deps.js";
3
+ import { godown } from "../../decorators/godown.js";
4
+ import GodownSuperA from "../../proto/super-a.js";
5
+ import { Router } from "../router/router.js";
6
+ const protoName = "router-link";
7
+ /**
8
+ * {@linkcode RouterLink} works with {@linkcode Router}.
9
+ *
10
+ * @extends A
11
+ */
12
+ let RouterLink = class RouterLink extends GodownSuperA {
13
+ constructor() {
14
+ super(...arguments);
15
+ /**
16
+ * If true, replaceState, or pushState.
17
+ */
18
+ this.replace = false;
19
+ }
20
+ connectedCallback() {
21
+ super.connectedCallback();
22
+ this.addEvent(window, "popstate", this.useActive.bind(this));
23
+ this.useActive();
24
+ }
25
+ _handleClick(e) {
26
+ const { sameOrigin } = this.useActive();
27
+ if (sameOrigin) {
28
+ e.preventDefault();
29
+ if (this.replace) {
30
+ this.replaceState(this.href);
31
+ }
32
+ else {
33
+ this.pushState(this.href);
34
+ }
35
+ }
36
+ }
37
+ pushState(url = this.href, data = null) {
38
+ history.pushState(data, "", url);
39
+ }
40
+ replaceState(url = this.href, data = null) {
41
+ history.replaceState(data, "", url);
42
+ }
43
+ updateRouter() {
44
+ const routers = this.deepQuerySelectorAll(Router.elementTagName, document.body);
45
+ routers.forEach((router) => {
46
+ if (!router.override) {
47
+ router.pathname = window.location.pathname;
48
+ }
49
+ });
50
+ }
51
+ };
52
+ __decorate([
53
+ property({ type: Boolean })
54
+ ], RouterLink.prototype, "replace", void 0);
55
+ RouterLink = __decorate([
56
+ godown(protoName)
57
+ ], RouterLink);
58
+ export { RouterLink };
59
+ export default RouterLink;
60
+ //# sourceMappingURL=router-link.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"router-link.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/link/router-link.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,YAAY,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,MAAM,SAAS,GAAG,aAAa,CAAC;AAEhC;;;;GAIG;AAEI,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,YAAY;IAArC;;QACL;;WAEG;QAC0B,YAAO,GAAG,KAAK,CAAC;IAoC/C,CAAC;IAlCC,iBAAiB;QACf,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAC1B,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;QAC7D,IAAI,CAAC,SAAS,EAAE,CAAC;IACnB,CAAC;IAES,YAAY,CAAC,CAAa;QAClC,MAAM,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;QACxC,IAAI,UAAU,EAAE,CAAC;YACf,CAAC,CAAC,cAAc,EAAE,CAAC;YACnB,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;gBACjB,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAC/B,CAAC;iBAAM,CAAC;gBACN,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAC5B,CAAC;QACH,CAAC;IACH,CAAC;IAED,SAAS,CAAC,GAAG,GAAG,IAAI,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI;QACpC,OAAO,CAAC,SAAS,CAAC,IAAI,EAAE,EAAE,EAAE,GAAG,CAAC,CAAC;IACnC,CAAC;IAED,YAAY,CAAC,GAAG,GAAG,IAAI,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI;QACvC,OAAO,CAAC,YAAY,CAAC,IAAI,EAAE,EAAE,EAAE,GAAG,CAAC,CAAC;IACtC,CAAC;IAED,YAAY;QACV,MAAM,OAAO,GAAG,IAAI,CAAC,oBAAoB,CAAS,MAAM,CAAC,cAAc,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC;QACxF,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE;YACzB,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC;gBACrB,MAAM,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC;YAC7C,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;CACF,CAAA;AApC8B;IAA5B,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;2CAAiB;AAJlC,UAAU;IADtB,MAAM,CAAC,SAAS,CAAC;GACL,UAAU,CAwCtB;;AAED,eAAe,UAAU,CAAC","sourcesContent":["import { property } from \"../../_deps.js\";\nimport { godown } from \"../../decorators/godown.js\";\nimport GodownSuperA from \"../../proto/super-a.js\";\nimport { Router } from \"../router/router.js\";\n\nconst protoName = \"router-link\";\n\n/**\n * {@linkcode RouterLink} works with {@linkcode Router}.\n *\n * @extends A\n */\n@godown(protoName)\nexport class RouterLink extends GodownSuperA {\n /**\n * If true, replaceState, or pushState.\n */\n @property({ type: Boolean }) replace = false;\n\n connectedCallback() {\n super.connectedCallback();\n this.addEvent(window, \"popstate\", this.useActive.bind(this));\n this.useActive();\n }\n\n protected _handleClick(e: MouseEvent) {\n const { sameOrigin } = this.useActive();\n if (sameOrigin) {\n e.preventDefault();\n if (this.replace) {\n this.replaceState(this.href);\n } else {\n this.pushState(this.href);\n }\n }\n }\n\n pushState(url = this.href, data = null) {\n history.pushState(data, \"\", url);\n }\n\n replaceState(url = this.href, data = null) {\n history.replaceState(data, \"\", url);\n }\n\n updateRouter() {\n const routers = this.deepQuerySelectorAll<Router>(Router.elementTagName, document.body);\n routers.forEach((router) => {\n if (!router.override) {\n router.pathname = window.location.pathname;\n }\n });\n }\n}\n\nexport default RouterLink;\n"]}
@@ -1,6 +1,4 @@
1
- import { type CSSResultGroup } from "../../.deps.js";
2
- import { type HTMLTemplate } from "../../lib/templates.js";
3
- import { GodownElement } from "../../supers/root.js";
1
+ import { GodownElement } from "../../proto/godown-element.js";
4
2
  /**
5
3
  * {@linkcode Progress} similar to progress.
6
4
  */
@@ -17,8 +15,7 @@ export declare class Progress extends GodownElement {
17
15
  * Input value.
18
16
  */
19
17
  value: any;
20
- static styles: CSSResultGroup;
21
- protected render(): HTMLTemplate;
18
+ protected render(): import("lit").TemplateResult<1>;
22
19
  /**
23
20
  * Convert s to a percentage without a percent sign.
24
21
  *
@@ -28,11 +25,4 @@ export declare class Progress extends GodownElement {
28
25
  parsePercent(s?: string | number): number;
29
26
  }
30
27
  export default Progress;
31
- declare global {
32
- interface HTMLElementTagNameMap {
33
- "loading-progress": Progress;
34
- "load-track": Progress;
35
- "g-progress": Progress;
36
- }
37
- }
38
28
  //# sourceMappingURL=progress.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"progress.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/progress/progress.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,cAAc,EAAkB,MAAM,gBAAgB,CAAC;AAE1E,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAgB,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAInE;;GAEG;AACH,qBACa,QAAS,SAAQ,aAAa;IACzC;;OAEG;IACyB,GAAG,SAAK;IACpC;;OAEG;IACyB,GAAG,SAAK;IACpC;;OAEG;IACwC,KAAK,MAAQ;IAExD,MAAM,CAAC,MAAM,iBAuCO;IAEpB,SAAS,CAAC,MAAM,IAAI,YAAY;IAYhC;;;;;OAKG;IACH,YAAY,CAAC,CAAC,GAAE,MAAM,GAAG,MAAY,GAAG,MAAM;CAM/C;AAED,eAAe,QAAQ,CAAC;AAExB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,kBAAkB,EAAE,QAAQ,CAAC;QAC7B,YAAY,EAAE,QAAQ,CAAC;QACvB,YAAY,EAAE,QAAQ,CAAC;KACxB;CACF"}
1
+ {"version":3,"file":"progress.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/progress/progress.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAK9D;;GAEG;AACH,qBA2Ca,QAAS,SAAQ,aAAa;IACzC;;OAEG;IACyB,GAAG,SAAK;IACpC;;OAEG;IACyB,GAAG,SAAK;IACpC;;OAEG;IACwC,KAAK,MAAQ;IAExD,SAAS,CAAC,MAAM;IAYhB;;;;;OAKG;IACH,YAAY,CAAC,CAAC,GAAE,MAAM,GAAG,MAAY,GAAG,MAAM;CAM/C;AAED,eAAe,QAAQ,CAAC"}