godown 3.0.0-canary.8 → 3.0.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 (510) hide show
  1. package/README.md +38 -9
  2. package/alert.d.ts +1 -0
  3. package/alert.d.ts.map +1 -1
  4. package/alert.js +1 -5
  5. package/alert.js.map +1 -1
  6. package/avatar.d.ts +1 -0
  7. package/avatar.d.ts.map +1 -1
  8. package/avatar.js +1 -5
  9. package/avatar.js.map +1 -1
  10. package/badge.d.ts +9 -0
  11. package/badge.d.ts.map +1 -0
  12. package/badge.js +2 -0
  13. package/badge.js.map +1 -0
  14. package/breath.js +1 -5
  15. package/breath.js.map +1 -1
  16. package/build/godown+lit.iife.js +59 -0
  17. package/build/godown+lit.iife.js.map +1 -0
  18. package/build/godown+lit.js +59 -0
  19. package/build/godown+lit.js.map +1 -0
  20. package/build/godown+lit.umd.js +59 -0
  21. package/build/godown+lit.umd.js.map +1 -0
  22. package/build/godown.iife.js +47 -0
  23. package/build/godown.js +48 -0
  24. package/build/godown.js.map +1 -0
  25. package/build/godown.umd.js +48 -0
  26. package/build/godown.umd.js.map +1 -0
  27. package/button.d.ts +1 -0
  28. package/button.d.ts.map +1 -1
  29. package/button.js +1 -5
  30. package/button.js.map +1 -1
  31. package/card.d.ts +1 -0
  32. package/card.d.ts.map +1 -1
  33. package/card.js +1 -5
  34. package/card.js.map +1 -1
  35. package/carousel.d.ts +1 -0
  36. package/carousel.d.ts.map +1 -1
  37. package/carousel.js +1 -5
  38. package/carousel.js.map +1 -1
  39. package/components/alert.d.ts +4 -1
  40. package/components/alert.d.ts.map +1 -1
  41. package/components/alert.js +1 -176
  42. package/components/alert.js.map +1 -1
  43. package/components/avatar.d.ts +8 -2
  44. package/components/avatar.d.ts.map +1 -1
  45. package/components/avatar.js +1 -61
  46. package/components/avatar.js.map +1 -1
  47. package/components/badge.d.ts +23 -0
  48. package/components/badge.d.ts.map +1 -0
  49. package/components/badge.js +2 -0
  50. package/components/badge.js.map +1 -0
  51. package/components/breath.d.ts +7 -4
  52. package/components/breath.d.ts.map +1 -1
  53. package/components/breath.js +1 -79
  54. package/components/breath.js.map +1 -1
  55. package/components/button.d.ts +19 -10
  56. package/components/button.d.ts.map +1 -1
  57. package/components/button.js +1 -165
  58. package/components/button.js.map +1 -1
  59. package/components/card.d.ts +3 -2
  60. package/components/card.d.ts.map +1 -1
  61. package/components/card.js +1 -53
  62. package/components/card.js.map +1 -1
  63. package/components/carousel.d.ts +10 -5
  64. package/components/carousel.d.ts.map +1 -1
  65. package/components/carousel.js +1 -112
  66. package/components/carousel.js.map +1 -1
  67. package/components/details.d.ts +6 -2
  68. package/components/details.d.ts.map +1 -1
  69. package/components/details.js +1 -49
  70. package/components/details.js.map +1 -1
  71. package/components/dialog.d.ts +8 -3
  72. package/components/dialog.d.ts.map +1 -1
  73. package/components/dialog.js +1 -93
  74. package/components/dialog.js.map +1 -1
  75. package/components/divider.d.ts +3 -3
  76. package/components/divider.d.ts.map +1 -1
  77. package/components/divider.js +1 -36
  78. package/components/divider.js.map +1 -1
  79. package/components/dragbox.d.ts +11 -9
  80. package/components/dragbox.d.ts.map +1 -1
  81. package/components/dragbox.js +1 -109
  82. package/components/dragbox.js.map +1 -1
  83. package/components/flex.d.ts +4 -1
  84. package/components/flex.d.ts.map +1 -1
  85. package/components/flex.js +1 -54
  86. package/components/flex.js.map +1 -1
  87. package/components/form.d.ts +3 -3
  88. package/components/form.d.ts.map +1 -1
  89. package/components/form.js +1 -77
  90. package/components/form.js.map +1 -1
  91. package/components/grid.d.ts +10 -3
  92. package/components/grid.d.ts.map +1 -1
  93. package/components/grid.js +1 -55
  94. package/components/grid.js.map +1 -1
  95. package/components/heading.d.ts +29 -0
  96. package/components/heading.d.ts.map +1 -0
  97. package/components/heading.js +2 -0
  98. package/components/heading.js.map +1 -0
  99. package/components/input.d.ts +7 -3
  100. package/components/input.d.ts.map +1 -1
  101. package/components/input.js +1 -50
  102. package/components/input.js.map +1 -1
  103. package/components/layout.d.ts +8 -9
  104. package/components/layout.d.ts.map +1 -1
  105. package/components/layout.js +1 -46
  106. package/components/layout.js.map +1 -1
  107. package/components/link.d.ts +8 -1
  108. package/components/link.d.ts.map +1 -1
  109. package/components/link.js +1 -42
  110. package/components/link.js.map +1 -1
  111. package/components/progress.d.ts +4 -11
  112. package/components/progress.d.ts.map +1 -1
  113. package/components/progress.js +1 -67
  114. package/components/progress.js.map +1 -1
  115. package/components/range.d.ts +22 -15
  116. package/components/range.d.ts.map +1 -1
  117. package/components/range.js +1 -273
  118. package/components/range.js.map +1 -1
  119. package/components/rotate.d.ts +4 -2
  120. package/components/rotate.d.ts.map +1 -1
  121. package/components/rotate.js +1 -56
  122. package/components/rotate.js.map +1 -1
  123. package/components/router.d.ts +20 -24
  124. package/components/router.d.ts.map +1 -1
  125. package/components/router.js +1 -250
  126. package/components/router.js.map +1 -1
  127. package/components/select.d.ts +8 -4
  128. package/components/select.d.ts.map +1 -1
  129. package/components/select.js +1 -212
  130. package/components/select.js.map +1 -1
  131. package/components/skeleton.d.ts +3 -1
  132. package/components/skeleton.d.ts.map +1 -1
  133. package/components/skeleton.js +1 -54
  134. package/components/skeleton.js.map +1 -1
  135. package/components/split.d.ts +25 -2
  136. package/components/split.d.ts.map +1 -1
  137. package/components/split.js +1 -128
  138. package/components/split.js.map +1 -1
  139. package/components/switch.d.ts +8 -5
  140. package/components/switch.d.ts.map +1 -1
  141. package/components/switch.js +1 -92
  142. package/components/switch.js.map +1 -1
  143. package/components/text.d.ts +3 -1
  144. package/components/text.d.ts.map +1 -1
  145. package/components/text.js +1 -43
  146. package/components/text.js.map +1 -1
  147. package/components/time.d.ts +8 -6
  148. package/components/time.d.ts.map +1 -1
  149. package/components/time.js +1 -85
  150. package/components/time.js.map +1 -1
  151. package/components/tooltip.d.ts +14 -2
  152. package/components/tooltip.d.ts.map +1 -1
  153. package/components/tooltip.js +1 -66
  154. package/components/tooltip.js.map +1 -1
  155. package/components/typewriter.d.ts +8 -14
  156. package/components/typewriter.d.ts.map +1 -1
  157. package/components/typewriter.js +1 -129
  158. package/components/typewriter.js.map +1 -1
  159. package/core/global-style.d.ts +2 -2
  160. package/core/global-style.d.ts.map +1 -1
  161. package/core/global-style.js +1 -45
  162. package/core/global-style.js.map +1 -1
  163. package/core/super-anchor.d.ts +2 -1
  164. package/core/super-anchor.d.ts.map +1 -1
  165. package/core/super-anchor.js +1 -38
  166. package/core/super-anchor.js.map +1 -1
  167. package/core/super-input.d.ts +6 -5
  168. package/core/super-input.d.ts.map +1 -1
  169. package/core/super-input.js +1 -111
  170. package/core/super-input.js.map +1 -1
  171. package/core/super-openable.d.ts +1 -1
  172. package/core/super-openable.d.ts.map +1 -1
  173. package/core/super-openable.js +1 -37
  174. package/core/super-openable.js.map +1 -1
  175. package/custom-elements.json +1 -1
  176. package/details.d.ts +1 -0
  177. package/details.d.ts.map +1 -1
  178. package/details.js +1 -5
  179. package/details.js.map +1 -1
  180. package/dev/alert.d.ts +1 -0
  181. package/dev/alert.d.ts.map +1 -1
  182. package/dev/alert.js +1 -0
  183. package/dev/alert.js.map +1 -1
  184. package/dev/avatar.d.ts +1 -0
  185. package/dev/avatar.d.ts.map +1 -1
  186. package/dev/avatar.js +1 -0
  187. package/dev/avatar.js.map +1 -1
  188. package/dev/badge.d.ts +9 -0
  189. package/dev/badge.d.ts.map +1 -0
  190. package/dev/badge.js +5 -0
  191. package/dev/badge.js.map +1 -0
  192. package/dev/button.d.ts +1 -0
  193. package/dev/button.d.ts.map +1 -1
  194. package/dev/button.js +1 -0
  195. package/dev/button.js.map +1 -1
  196. package/dev/card.d.ts +1 -0
  197. package/dev/card.d.ts.map +1 -1
  198. package/dev/card.js +1 -0
  199. package/dev/card.js.map +1 -1
  200. package/dev/carousel.d.ts +1 -0
  201. package/dev/carousel.d.ts.map +1 -1
  202. package/dev/carousel.js +1 -0
  203. package/dev/carousel.js.map +1 -1
  204. package/dev/components/alert.d.ts +4 -1
  205. package/dev/components/alert.d.ts.map +1 -1
  206. package/dev/components/alert.js +20 -23
  207. package/dev/components/alert.js.map +1 -1
  208. package/dev/components/avatar.d.ts +8 -2
  209. package/dev/components/avatar.d.ts.map +1 -1
  210. package/dev/components/avatar.js +23 -13
  211. package/dev/components/avatar.js.map +1 -1
  212. package/dev/components/badge.d.ts +23 -0
  213. package/dev/components/badge.d.ts.map +1 -0
  214. package/dev/components/badge.js +107 -0
  215. package/dev/components/badge.js.map +1 -0
  216. package/dev/components/breath.d.ts +7 -4
  217. package/dev/components/breath.d.ts.map +1 -1
  218. package/dev/components/breath.js +30 -26
  219. package/dev/components/breath.js.map +1 -1
  220. package/dev/components/button.d.ts +19 -10
  221. package/dev/components/button.d.ts.map +1 -1
  222. package/dev/components/button.js +47 -28
  223. package/dev/components/button.js.map +1 -1
  224. package/dev/components/card.d.ts +3 -2
  225. package/dev/components/card.d.ts.map +1 -1
  226. package/dev/components/card.js +23 -33
  227. package/dev/components/card.js.map +1 -1
  228. package/dev/components/carousel.d.ts +10 -5
  229. package/dev/components/carousel.d.ts.map +1 -1
  230. package/dev/components/carousel.js +33 -26
  231. package/dev/components/carousel.js.map +1 -1
  232. package/dev/components/details.d.ts +6 -2
  233. package/dev/components/details.d.ts.map +1 -1
  234. package/dev/components/details.js +24 -26
  235. package/dev/components/details.js.map +1 -1
  236. package/dev/components/dialog.d.ts +8 -3
  237. package/dev/components/dialog.d.ts.map +1 -1
  238. package/dev/components/dialog.js +21 -17
  239. package/dev/components/dialog.js.map +1 -1
  240. package/dev/components/divider.d.ts +3 -3
  241. package/dev/components/divider.d.ts.map +1 -1
  242. package/dev/components/divider.js +29 -17
  243. package/dev/components/divider.js.map +1 -1
  244. package/dev/components/dragbox.d.ts +11 -9
  245. package/dev/components/dragbox.d.ts.map +1 -1
  246. package/dev/components/dragbox.js +11 -4
  247. package/dev/components/dragbox.js.map +1 -1
  248. package/dev/components/flex.d.ts +4 -1
  249. package/dev/components/flex.d.ts.map +1 -1
  250. package/dev/components/flex.js +25 -9
  251. package/dev/components/flex.js.map +1 -1
  252. package/dev/components/form.d.ts +3 -3
  253. package/dev/components/form.d.ts.map +1 -1
  254. package/dev/components/form.js +2 -5
  255. package/dev/components/form.js.map +1 -1
  256. package/dev/components/grid.d.ts +10 -3
  257. package/dev/components/grid.d.ts.map +1 -1
  258. package/dev/components/grid.js +18 -10
  259. package/dev/components/grid.js.map +1 -1
  260. package/dev/components/heading.d.ts +29 -0
  261. package/dev/components/heading.d.ts.map +1 -0
  262. package/dev/components/heading.js +103 -0
  263. package/dev/components/heading.js.map +1 -0
  264. package/dev/components/input.d.ts +7 -3
  265. package/dev/components/input.d.ts.map +1 -1
  266. package/dev/components/input.js +18 -18
  267. package/dev/components/input.js.map +1 -1
  268. package/dev/components/layout.d.ts +8 -9
  269. package/dev/components/layout.d.ts.map +1 -1
  270. package/dev/components/layout.js +38 -25
  271. package/dev/components/layout.js.map +1 -1
  272. package/dev/components/link.d.ts +8 -1
  273. package/dev/components/link.d.ts.map +1 -1
  274. package/dev/components/link.js +15 -3
  275. package/dev/components/link.js.map +1 -1
  276. package/dev/components/progress.d.ts +4 -11
  277. package/dev/components/progress.d.ts.map +1 -1
  278. package/dev/components/progress.js +43 -49
  279. package/dev/components/progress.js.map +1 -1
  280. package/dev/components/range.d.ts +22 -15
  281. package/dev/components/range.d.ts.map +1 -1
  282. package/dev/components/range.js +56 -61
  283. package/dev/components/range.js.map +1 -1
  284. package/dev/components/rotate.d.ts +4 -2
  285. package/dev/components/rotate.d.ts.map +1 -1
  286. package/dev/components/rotate.js +3 -5
  287. package/dev/components/rotate.js.map +1 -1
  288. package/dev/components/router.d.ts +20 -24
  289. package/dev/components/router.d.ts.map +1 -1
  290. package/dev/components/router.js +23 -36
  291. package/dev/components/router.js.map +1 -1
  292. package/dev/components/select.d.ts +8 -4
  293. package/dev/components/select.d.ts.map +1 -1
  294. package/dev/components/select.js +44 -32
  295. package/dev/components/select.js.map +1 -1
  296. package/dev/components/skeleton.d.ts +3 -1
  297. package/dev/components/skeleton.d.ts.map +1 -1
  298. package/dev/components/skeleton.js +9 -9
  299. package/dev/components/skeleton.js.map +1 -1
  300. package/dev/components/split.d.ts +25 -2
  301. package/dev/components/split.d.ts.map +1 -1
  302. package/dev/components/split.js +71 -38
  303. package/dev/components/split.js.map +1 -1
  304. package/dev/components/switch.d.ts +8 -5
  305. package/dev/components/switch.d.ts.map +1 -1
  306. package/dev/components/switch.js +28 -31
  307. package/dev/components/switch.js.map +1 -1
  308. package/dev/components/text.d.ts +3 -1
  309. package/dev/components/text.d.ts.map +1 -1
  310. package/dev/components/text.js +12 -15
  311. package/dev/components/text.js.map +1 -1
  312. package/dev/components/time.d.ts +8 -6
  313. package/dev/components/time.d.ts.map +1 -1
  314. package/dev/components/time.js +8 -14
  315. package/dev/components/time.js.map +1 -1
  316. package/dev/components/tooltip.d.ts +14 -2
  317. package/dev/components/tooltip.d.ts.map +1 -1
  318. package/dev/components/tooltip.js +54 -24
  319. package/dev/components/tooltip.js.map +1 -1
  320. package/dev/components/typewriter.d.ts +8 -14
  321. package/dev/components/typewriter.d.ts.map +1 -1
  322. package/dev/components/typewriter.js +22 -37
  323. package/dev/components/typewriter.js.map +1 -1
  324. package/dev/core/global-style.d.ts +2 -2
  325. package/dev/core/global-style.d.ts.map +1 -1
  326. package/dev/core/global-style.js +18 -14
  327. package/dev/core/global-style.js.map +1 -1
  328. package/dev/core/super-anchor.d.ts +2 -1
  329. package/dev/core/super-anchor.d.ts.map +1 -1
  330. package/dev/core/super-anchor.js +25 -23
  331. package/dev/core/super-anchor.js.map +1 -1
  332. package/dev/core/super-input.d.ts +6 -5
  333. package/dev/core/super-input.d.ts.map +1 -1
  334. package/dev/core/super-input.js +43 -36
  335. package/dev/core/super-input.js.map +1 -1
  336. package/dev/core/super-openable.d.ts +1 -1
  337. package/dev/core/super-openable.d.ts.map +1 -1
  338. package/dev/core/super-openable.js +2 -2
  339. package/dev/core/super-openable.js.map +1 -1
  340. package/dev/details.d.ts +1 -0
  341. package/dev/details.d.ts.map +1 -1
  342. package/dev/details.js +1 -0
  343. package/dev/details.js.map +1 -1
  344. package/dev/dialog.d.ts +1 -0
  345. package/dev/dialog.d.ts.map +1 -1
  346. package/dev/dialog.js +1 -0
  347. package/dev/dialog.js.map +1 -1
  348. package/dev/divider.d.ts +1 -0
  349. package/dev/divider.d.ts.map +1 -1
  350. package/dev/divider.js +1 -0
  351. package/dev/divider.js.map +1 -1
  352. package/dev/dragbox.d.ts +1 -0
  353. package/dev/dragbox.d.ts.map +1 -1
  354. package/dev/dragbox.js +1 -0
  355. package/dev/dragbox.js.map +1 -1
  356. package/dev/flex.d.ts +1 -0
  357. package/dev/flex.d.ts.map +1 -1
  358. package/dev/flex.js +1 -0
  359. package/dev/flex.js.map +1 -1
  360. package/dev/form.d.ts +1 -0
  361. package/dev/form.d.ts.map +1 -1
  362. package/dev/form.js +1 -0
  363. package/dev/form.js.map +1 -1
  364. package/dev/grid.d.ts +1 -0
  365. package/dev/grid.d.ts.map +1 -1
  366. package/dev/grid.js +1 -0
  367. package/dev/grid.js.map +1 -1
  368. package/dev/heading.d.ts +9 -0
  369. package/dev/heading.d.ts.map +1 -0
  370. package/dev/heading.js +5 -0
  371. package/dev/heading.js.map +1 -0
  372. package/dev/index.d.ts +2 -0
  373. package/dev/index.d.ts.map +1 -1
  374. package/dev/index.js +2 -0
  375. package/dev/index.js.map +1 -1
  376. package/dev/layout.d.ts.map +1 -1
  377. package/dev/progress.d.ts.map +1 -1
  378. package/dev/router.d.ts.map +1 -1
  379. package/dev/split.d.ts +1 -1
  380. package/dev/split.d.ts.map +1 -1
  381. package/dev/typewriter.d.ts +1 -0
  382. package/dev/typewriter.d.ts.map +1 -1
  383. package/dev/typewriter.js +1 -0
  384. package/dev/typewriter.js.map +1 -1
  385. package/dialog.d.ts +1 -0
  386. package/dialog.d.ts.map +1 -1
  387. package/dialog.js +1 -5
  388. package/dialog.js.map +1 -1
  389. package/divider.d.ts +1 -0
  390. package/divider.d.ts.map +1 -1
  391. package/divider.js +1 -5
  392. package/divider.js.map +1 -1
  393. package/dragbox.d.ts +1 -0
  394. package/dragbox.d.ts.map +1 -1
  395. package/dragbox.js +1 -5
  396. package/dragbox.js.map +1 -1
  397. package/flex.d.ts +1 -0
  398. package/flex.d.ts.map +1 -1
  399. package/flex.js +1 -5
  400. package/flex.js.map +1 -1
  401. package/form.d.ts +1 -0
  402. package/form.d.ts.map +1 -1
  403. package/form.js +1 -5
  404. package/form.js.map +1 -1
  405. package/grid.d.ts +1 -0
  406. package/grid.d.ts.map +1 -1
  407. package/grid.js +1 -5
  408. package/grid.js.map +1 -1
  409. package/heading.d.ts +9 -0
  410. package/heading.d.ts.map +1 -0
  411. package/heading.js +2 -0
  412. package/heading.js.map +1 -0
  413. package/index.d.ts +2 -0
  414. package/index.d.ts.map +1 -1
  415. package/index.js +1 -56
  416. package/index.js.map +1 -1
  417. package/input.js +1 -5
  418. package/input.js.map +1 -1
  419. package/layout.d.ts.map +1 -1
  420. package/layout.js +1 -5
  421. package/layout.js.map +1 -1
  422. package/link.js +1 -5
  423. package/link.js.map +1 -1
  424. package/package.json +11 -6
  425. package/progress.d.ts.map +1 -1
  426. package/progress.js +1 -5
  427. package/progress.js.map +1 -1
  428. package/range.js +1 -5
  429. package/range.js.map +1 -1
  430. package/rotate.js +1 -5
  431. package/rotate.js.map +1 -1
  432. package/router.d.ts.map +1 -1
  433. package/router.js +1 -5
  434. package/router.js.map +1 -1
  435. package/select.js +1 -5
  436. package/select.js.map +1 -1
  437. package/skeleton.js +1 -5
  438. package/skeleton.js.map +1 -1
  439. package/split.d.ts +1 -1
  440. package/split.d.ts.map +1 -1
  441. package/split.js +1 -5
  442. package/split.js.map +1 -1
  443. package/src/alert.ts +2 -0
  444. package/src/avatar.ts +2 -0
  445. package/src/badge.ts +13 -0
  446. package/src/button.ts +2 -0
  447. package/src/card.ts +2 -0
  448. package/src/carousel.ts +2 -0
  449. package/src/components/alert.ts +26 -29
  450. package/src/components/avatar.ts +28 -17
  451. package/src/components/badge.ts +107 -0
  452. package/src/components/breath.ts +38 -31
  453. package/src/components/button.ts +55 -46
  454. package/src/components/card.ts +26 -34
  455. package/src/components/carousel.ts +48 -38
  456. package/src/components/details.ts +27 -28
  457. package/src/components/dialog.ts +30 -26
  458. package/src/components/divider.ts +29 -17
  459. package/src/components/dragbox.ts +25 -19
  460. package/src/components/flex.ts +26 -11
  461. package/src/components/form.ts +7 -9
  462. package/src/components/grid.ts +31 -13
  463. package/src/components/heading.ts +105 -0
  464. package/src/components/input.ts +23 -22
  465. package/src/components/layout.ts +26 -31
  466. package/src/components/link.ts +15 -4
  467. package/src/components/progress.ts +51 -52
  468. package/src/components/range.ts +82 -94
  469. package/src/components/rotate.ts +12 -11
  470. package/src/components/router.ts +59 -48
  471. package/src/components/select.ts +59 -47
  472. package/src/components/skeleton.ts +13 -11
  473. package/src/components/split.ts +90 -49
  474. package/src/components/switch.ts +38 -37
  475. package/src/components/text.ts +14 -21
  476. package/src/components/time.ts +20 -14
  477. package/src/components/tooltip.ts +54 -29
  478. package/src/components/typewriter.ts +41 -47
  479. package/src/core/global-style.ts +33 -19
  480. package/src/core/super-anchor.ts +30 -26
  481. package/src/core/super-input.ts +54 -54
  482. package/src/core/super-openable.ts +7 -7
  483. package/src/details.ts +2 -0
  484. package/src/dialog.ts +2 -0
  485. package/src/divider.ts +2 -0
  486. package/src/dragbox.ts +2 -0
  487. package/src/flex.ts +2 -0
  488. package/src/form.ts +2 -0
  489. package/src/grid.ts +2 -0
  490. package/src/heading.ts +13 -0
  491. package/src/index.ts +2 -0
  492. package/src/layout.ts +1 -0
  493. package/src/progress.ts +1 -0
  494. package/src/router.ts +1 -0
  495. package/src/split.ts +1 -1
  496. package/src/typewriter.ts +2 -0
  497. package/switch.js +1 -5
  498. package/switch.js.map +1 -1
  499. package/text.js +1 -5
  500. package/text.js.map +1 -1
  501. package/time.js +1 -5
  502. package/time.js.map +1 -1
  503. package/tooltip.js +1 -5
  504. package/tooltip.js.map +1 -1
  505. package/typewriter.d.ts +1 -0
  506. package/typewriter.d.ts.map +1 -1
  507. package/typewriter.js +1 -5
  508. package/typewriter.js.map +1 -1
  509. package/vscode.html-custom-data.json +1 -1
  510. package/web-types.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"flex.js","sources":["../src/components/flex.ts"],"sourcesContent":null,"names":[],"mappings":";;;;;;;;;;AAUA,MAAM,SAAS,GAAG,MAAM;AAExB;;;;AAIE;AAGF,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,WAAW,CAAA;IA2BlB,MAAM,GAAA;QACd,OAAO;AACL,YAAA,QAAQ,EAAE;YACV,SAAS,CACP,SAAS,CAAC;AACR,gBAAA,OAAO,EAAE;oBACP,GAAG,EAAE,IAAI,CAAC,GAAG;oBACb,WAAW,EAAE,IAAI,CAAC,QAAQ;AAC1B,oBAAA,gBAAgB,EAAE,IAAI,CAAC,QAAQ,IAAI,QAAQ;oBAC3C,aAAa,EAAE,IAAI,CAAC,KAAK;oBACzB,iBAAiB,EAAE,IAAI,CAAC,OAAO;AAChC,iBAAA;AACF,aAAA,CAAC,CACH;SACF;;CAEL;AAtCE,UAAA,CAAA;AADC,IAAA,QAAQ,CAAC,EAAE,SAAS,EAAE,WAAW,EAAE;AACpB,CAAA,EAAA,IAAA,CAAA,SAAA,EAAA,UAAA,EAAA,KAAA,CAAA,CAAA;AAKhB,UAAA,CAAA;AADC,IAAA,QAAQ;AACE,CAAA,EAAA,IAAA,CAAA,SAAA,EAAA,KAAA,EAAA,KAAA,CAAA,CAAA;AAKX,UAAA,CAAA;AADC,IAAA,QAAQ;AACM,CAAA,EAAA,IAAA,CAAA,SAAA,EAAA,SAAA,EAAA,KAAA,CAAA,CAAA;AAKf,UAAA,CAAA;AADC,IAAA,QAAQ;AACI,CAAA,EAAA,IAAA,CAAA,SAAA,EAAA,OAAA,EAAA,KAAA,CAAA,CAAA;AAKb,UAAA,CAAA;AADC,IAAA,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE;AACV,CAAA,EAAA,IAAA,CAAA,SAAA,EAAA,UAAA,EAAA,KAAA,CAAA,CAAA;AAzBb,IAAI,GAAA,UAAA,CAAA;IAFT,MAAM,CAAC,SAAS,CAAA;AAChB,IAAA,MAAM,CAAC,GAAG,CAAA,CAAA,mBAAA,CAAqB;AAC1B,CAAA,EAAA,IAAI,CA2CV;AAEA,aAAe,IAAI;;;;"}
1
+ {"version":3,"file":"flex.js","sources":["../src/components/flex.ts"],"sourcesContent":null,"names":["Flex","GlobalStyle","constructor","this","vertical","render","html","attr","observedRecord","htmlSlot","htmlStyle","joinRules","gap","flexFlow","items","content","__decorate","property","attribute","prototype","type","Boolean","godown","styles","css","Flex$1"],"mappings":"qRAkBA,IAAMA,EAAN,MAAMA,aAAaC,EAAnB,WAAAC,uBA6BEC,KAAQC,UAAG,EAED,MAAAC,GACR,OAAOC,CAAI,oBAAoBC,EAAKJ,KAAKK,mBACvC,CACAC,IACAC,EACEC,EAAU,CACR,QAAS,CACPC,IAAKT,KAAKS,IACV,YAAaT,KAAKU,SAClB,iBAAkBV,KAAKC,UAAY,SACnC,cAAeD,KAAKW,MACpB,kBAAmBX,KAAKY,uBArClCC,EAAA,CADCC,EAAS,CAAEC,UAAW,eACPlB,EAAAmB,UAAA,gBAAA,GAMhBH,EAAA,CADCC,KACUjB,EAAAmB,UAAA,WAAA,GAMXH,EAAA,CADCC,KACcjB,EAAAmB,UAAA,eAAA,GAMfH,EAAA,CADCC,KACYjB,EAAAmB,UAAA,aAAA,GAMbH,EAAA,CADCC,EAAS,CAAEG,KAAMC,WACFrB,EAAAmB,UAAA,gBAAA,GA7BZnB,EAAIgB,EAAA,CAJTM,EARiB,QASjBC,EACCC,CAAG,mFAECxB,GAmDN,IAAAyB,EAAezB"}
@@ -1,17 +1,16 @@
1
+ import { type TemplateResult } from "lit";
1
2
  import { GlobalStyle } from "../core/global-style.js";
2
3
  /**
3
4
  * {@linkcode Form} Gets child element key-value object,
4
5
  * which will be nested if the child element is the same as this element.
5
6
  *
6
- * @slot - Child elements.
7
- *
8
7
  * @category form
9
8
  */
10
9
  declare class Form<T = object> extends GlobalStyle {
11
10
  name: string;
12
11
  get value(): T;
13
12
  nameValue: () => [string, T];
14
- protected render(): import("lit").TemplateResult<1>;
13
+ protected render(): TemplateResult<1>;
15
14
  reset(): void;
16
15
  namevalue(): [string, T];
17
16
  static buildValue(elements: (Element & {
@@ -21,4 +20,5 @@ declare class Form<T = object> extends GlobalStyle {
21
20
  })[]): Record<string, any>;
22
21
  }
23
22
  export default Form;
23
+ export { Form };
24
24
  //# sourceMappingURL=form.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../src/components/form.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAItD;;;;;;;GAOG;AACH,cAIM,IAAI,CAAC,CAAC,GAAG,MAAM,CAAE,SAAQ,WAAW;IAExC,IAAI,SAAM;IACV,IAAI,KAAK,IAAI,CAAC,CAEb;IAED,SAAS,QAiBI,CAAC,MAAM,EAAE,CAAC,CAAC,CAjBG;IAE3B,SAAS,CAAC,MAAM;IAIhB,KAAK;IAWL,SAAS,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;IAIxB,MAAM,CAAC,UAAU,CACf,QAAQ,EAAE,CAAC,OAAO,GAAG;QACnB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACrC,CAAC,EAAE,GACH,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;CAoBvB;AAED,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../src/components/form.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAG/C,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAItD;;;;;GAKG;AACH,cAIM,IAAI,CAAC,CAAC,GAAG,MAAM,CAAE,SAAQ,WAAW;IAExC,IAAI,SAAM;IAEV,IAAI,KAAK,IAAI,CAAC,CAEb;IAED,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,CAAkB;IAE9C,SAAS,CAAC,MAAM,IAAI,cAAc,CAAC,CAAC,CAAC;IAIrC,KAAK,IAAI,IAAI;IAWb,SAAS,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;IAIxB,MAAM,CAAC,UAAU,CACf,QAAQ,EAAE,CAAC,OAAO,GAAG;QACnB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACrC,CAAC,EAAE,GACH,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;CAoBvB;AAED,eAAe,IAAI,CAAC;AACpB,OAAO,EAAE,IAAI,EAAE,CAAC"}
@@ -1,78 +1,2 @@
1
- import { __decorate } from 'tslib';
2
- import { godown } from '@godown/element/decorators/godown.js';
3
- import { styles } from '@godown/element/decorators/styles.js';
4
- import { htmlSlot } from '@godown/element/directives/html-slot.js';
5
- import { css } from 'lit';
6
- import { property } from 'lit/decorators.js';
7
- import { GlobalStyle } from '../core/global-style.js';
8
-
9
- var Form_1;
10
- const protoName = "form";
11
- /**
12
- * {@linkcode Form} Gets child element key-value object,
13
- * which will be nested if the child element is the same as this element.
14
- *
15
- * @slot - Child elements.
16
- *
17
- * @category form
18
- */
19
- let Form = Form_1 = class Form extends GlobalStyle {
20
- constructor() {
21
- super(...arguments);
22
- this.name = "";
23
- this.nameValue = this.namevalue;
24
- }
25
- get value() {
26
- return Form_1.buildValue(this._slot.assignedElements());
27
- }
28
- render() {
29
- return htmlSlot();
30
- }
31
- reset() {
32
- this.deepQuerySelectorAll("*").forEach((el) => {
33
- if (el.tagName === this.tagName) {
34
- return;
35
- }
36
- if (el.reset) {
37
- el.reset();
38
- }
39
- });
40
- }
41
- namevalue() {
42
- return [this.name, this.value];
43
- }
44
- static buildValue(elements) {
45
- const result = {};
46
- for (const el of elements) {
47
- if (el.tagName === "FORM") {
48
- Object.assign(result, Object.fromEntries(new FormData(el).entries()));
49
- }
50
- else if (el.namevalue) {
51
- const [name, value] = el.namevalue();
52
- if (name) {
53
- result[name] = value;
54
- }
55
- }
56
- else if (el.name && el.value !== undefined) {
57
- result[el.name] = el.value;
58
- }
59
- else if (el.shadowRoot) {
60
- for (const slot of el.shadowRoot.querySelectorAll("slot")) {
61
- Object.assign(result, this.buildValue(slot.assignedElements()));
62
- }
63
- }
64
- }
65
- return result;
66
- }
67
- };
68
- __decorate([
69
- property()
70
- ], Form.prototype, "name", void 0);
71
- Form = Form_1 = __decorate([
72
- godown(protoName),
73
- styles(css `:host{display:block}`)
74
- ], Form);
75
- var Form$1 = Form;
76
-
77
- export { Form$1 as default };
1
+ import{__decorate as e}from"tslib";import{godown as t,styles as s,htmlSlot as o}from"@godown/element";import{css as a}from"lit";import{property as r}from"lit/decorators.js";import{GlobalStyle as l}from"../core/global-style.js";var i;let n=i=class Form extends l{constructor(){super(...arguments),this.name="",this.nameValue=this.namevalue}get value(){return i.buildValue(this._slot.assignedElements())}render(){return o()}reset(){this.deepQuerySelectorAll("*").forEach((e=>{e.tagName!==this.tagName&&e.reset&&e.reset()}))}namevalue(){return[this.name,this.value]}static buildValue(e){const t={};for(const s of e)if("FORM"===s.tagName)Object.assign(t,Object.fromEntries(new FormData(s).entries()));else if(s.namevalue){const[e,o]=s.namevalue();e&&(t[e]=o)}else if(s.name&&void 0!==s.value)t[s.name]=s.value;else if(s.shadowRoot)for(const e of s.shadowRoot.querySelectorAll("slot"))Object.assign(t,this.buildValue(e.assignedElements()));return t}};e([r()],n.prototype,"name",void 0),n=i=e([t("form"),s(a`:host{display:block}`)],n);var m=n;export{n as Form,m as default};
78
2
  //# sourceMappingURL=form.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"form.js","sources":["../src/components/form.ts"],"sourcesContent":null,"names":[],"mappings":";;;;;;;;;AAQA,MAAM,SAAS,GAAG,MAAM;AAExB;;;;;;;AAOE;AAKF,IAAM,IAAI,GAAA,MAAA,GAAV,MAAM,IAAiB,SAAQ,WAAW,CAAA;AAA1C,IAAA,WAAA,GAAA;;QAEE,IAAI,CAAA,IAAA,GAAG,EAAE;AAKT,QAAA,IAAA,CAAA,SAAS,GAAG,IAAI,CAAC,SAAS;;AAJ1B,IAAA,IAAI,KAAK,GAAA;QACP,OAAO,MAAI,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,gBAAgB,EAAE,CAAM;;IAKlD,MAAM,GAAA;QACd,OAAO,QAAQ,EAAE;;IAGnB,KAAK,GAAA;QACH,IAAI,CAAC,oBAAoB,CAAwC,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,EAAE,KAAI;YACnF,IAAI,EAAE,CAAC,OAAO,KAAK,IAAI,CAAC,OAAO,EAAE;gBAC/B;;AAEF,YAAA,IAAI,EAAE,CAAC,KAAK,EAAE;gBACZ,EAAE,CAAC,KAAK,EAAE;;AAEd,SAAC,CAAC;;IAGJ,SAAS,GAAA;QACP,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC;;IAGhC,OAAO,UAAU,CACf,QAII,EAAA;QAEJ,MAAM,MAAM,GAAG,EAAE;AACjB,QAAA,KAAK,MAAM,EAAE,IAAI,QAAQ,EAAE;AACzB,YAAA,IAAI,EAAE,CAAC,OAAO,KAAK,MAAM,EAAE;AACzB,gBAAA,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,WAAW,CAAC,IAAI,QAAQ,CAAC,EAAqB,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC;;AACnF,iBAAA,IAAI,EAAE,CAAC,SAAS,EAAE;gBACvB,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,GAAG,EAAE,CAAC,SAAS,EAAE;gBACpC,IAAI,IAAI,EAAE;AACR,oBAAA,MAAM,CAAC,IAAI,CAAC,GAAG,KAAK;;;iBAEjB,IAAI,EAAE,CAAC,IAAI,IAAI,EAAE,CAAC,KAAK,KAAK,SAAS,EAAE;gBAC5C,MAAM,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,KAAK;;AACrB,iBAAA,IAAI,EAAE,CAAC,UAAU,EAAE;AACxB,gBAAA,KAAK,MAAM,IAAI,IAAI,EAAE,CAAC,UAAU,CAAC,gBAAgB,CAAC,MAAM,CAAC,EAAE;AACzD,oBAAA,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,gBAAgB,EAAE,CAAC,CAAC;;;;AAIrE,QAAA,OAAO,MAAM;;CAEjB;AApDE,UAAA,CAAA;AADC,IAAA,QAAQ;AACA,CAAA,EAAA,IAAA,CAAA,SAAA,EAAA,MAAA,EAAA,KAAA,CAAA,CAAA;AAFL,IAAI,GAAA,MAAA,GAAA,UAAA,CAAA;IAJT,MAAM,CAAC,SAAS,CAAA;AAChB,IAAA,MAAM,CACL,GAAG,CAAA,CAAA,oBAAA,CAAsB;AAErB,CAAA,EAAA,IAAI,CAsDV;AAEA,aAAe,IAAI;;;;"}
1
+ {"version":3,"file":"form.js","sources":["../src/components/form.ts"],"sourcesContent":null,"names":["Form","Form_1","GlobalStyle","constructor","this","name","nameValue","namevalue","value","buildValue","_slot","assignedElements","render","htmlSlot","reset","deepQuerySelectorAll","forEach","el","tagName","elements","result","Object","assign","fromEntries","FormData","entries","undefined","shadowRoot","slot","querySelectorAll","__decorate","property","prototype","godown","styles","css","Form$1"],"mappings":"yOAkBA,IAAMA,EAAIC,EAAV,MAAMD,aAAyBE,EAA/B,WAAAC,uBAEEC,KAAIC,KAAG,GAMPD,KAAAE,UAA+BF,KAAKG,UAJpC,SAAIC,GACF,OAAOP,EAAKQ,WAAWL,KAAKM,MAAMC,oBAK1B,MAAAC,GACR,OAAOC,IAGT,KAAAC,GACEV,KAAKW,qBAA4D,KAAKC,SAASC,IACzEA,EAAGC,UAAYd,KAAKc,SAGpBD,EAAGH,OACLG,EAAGH,WAKT,SAAAP,GACE,MAAO,CAACH,KAAKC,KAAMD,KAAKI,OAG1B,iBAAOC,CACLU,GAMA,MAAMC,EAAS,CAAE,EACjB,IAAK,MAAMH,KAAME,EACf,GAAmB,SAAfF,EAAGC,QACLG,OAAOC,OAAOF,EAAQC,OAAOE,YAAY,IAAIC,SAASP,GAAuBQ,iBACxE,GAAIR,EAAGV,UAAW,CACvB,MAAOF,EAAMG,GAASS,EAAGV,YACrBF,IACFe,EAAOf,GAAQG,QAEZ,GAAIS,EAAGZ,WAAqBqB,IAAbT,EAAGT,MACvBY,EAAOH,EAAGZ,MAAQY,EAAGT,WAChB,GAAIS,EAAGU,WACZ,IAAK,MAAMC,KAAQX,EAAGU,WAAWE,iBAAiB,QAChDR,OAAOC,OAAOF,EAAQhB,KAAKK,WAAWmB,EAAKjB,qBAIjD,OAAOS,IAnDTU,EAAA,CADCC,KACQ/B,EAAAgC,UAAA,YAAA,GAFLhC,EAAIC,EAAA6B,EAAA,CAJTG,EARiB,QASjBC,EACCC,CAAG,yBAECnC,GAyDN,IAAAoC,EAAepC"}
@@ -1,7 +1,9 @@
1
+ import { type TemplateResult } from "lit";
1
2
  import { GlobalStyle } from "../core/global-style.js";
2
3
  /**
3
4
  * {@linkcode Grid} provides gird layout.
4
5
  *
6
+ * @slot - Grid items.
5
7
  * @category layout
6
8
  */
7
9
  declare class Grid extends GlobalStyle {
@@ -10,11 +12,15 @@ declare class Grid extends GlobalStyle {
10
12
  */
11
13
  gap: string;
12
14
  /**
13
- * CSS property `grid-template-columns`, if {@linkcode isNumerical} divide equally.
15
+ * CSS property `grid-template-columns`.
16
+ *
17
+ * If columns is numerical, divide columns equally.
14
18
  */
15
19
  columns: string | number;
16
20
  /**
17
- * CSS property `grid-template-rows`, if {@linkcode isNumerical} divide equally.
21
+ * CSS property `grid-template-rows`.
22
+ *
23
+ * If rows is numerical, divide rows equally.
18
24
  */
19
25
  rows: string | number;
20
26
  /**
@@ -25,7 +31,8 @@ declare class Grid extends GlobalStyle {
25
31
  * CSS property `place-items` (`align-items justify-items`).
26
32
  */
27
33
  items: string;
28
- protected render(): (symbol | import("lit").TemplateResult<1>)[];
34
+ protected render(): TemplateResult<1>;
29
35
  }
30
36
  export default Grid;
37
+ export { Grid };
31
38
  //# sourceMappingURL=grid.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"grid.d.ts","sourceRoot":"","sources":["../src/components/grid.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAItD;;;;GAIG;AACH,cAEM,IAAK,SAAQ,WAAW;IAC5B;;OAEG;IAEH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IAEH,OAAO,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB;;OAEG;IAEH,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;IACtB;;OAEG;IAEH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IAEH,KAAK,EAAE,MAAM,CAAC;IAEd,SAAS,CAAC,MAAM;CAgBjB;AAED,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"grid.d.ts","sourceRoot":"","sources":["../src/components/grid.ts"],"names":[],"mappings":"AACA,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAGrD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAItD;;;;;GAKG;AACH,cAIM,IAAK,SAAQ,WAAW;IAC5B;;OAEG;IAEH,GAAG,EAAE,MAAM,CAAC;IAEZ;;;;OAIG;IAEH,OAAO,EAAE,MAAM,GAAG,MAAM,CAAC;IAEzB;;;;OAIG;IAEH,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;IAEtB;;OAEG;IAEH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IAEH,KAAK,EAAE,MAAM,CAAC;IAEd,SAAS,CAAC,MAAM,IAAI,cAAc,CAAC,CAAC,CAAC;CAgBtC;AAED,eAAe,IAAI,CAAC;AACpB,OAAO,EAAE,IAAI,EAAE,CAAC"}
@@ -1,56 +1,2 @@
1
- import { __decorate } from 'tslib';
2
- import { godown } from '@godown/element/decorators/godown.js';
3
- import { styles } from '@godown/element/decorators/styles.js';
4
- import { htmlSlot } from '@godown/element/directives/html-slot.js';
5
- import { htmlStyle } from '@godown/element/directives/html-style.js';
6
- import { joinRules } from '@godown/element/tools/css.js';
7
- import { isNumerical } from '@godown/element/tools/lib.js';
8
- import { css } from 'lit';
9
- import { property } from 'lit/decorators.js';
10
- import { GlobalStyle } from '../core/global-style.js';
11
-
12
- const protoName = "grid";
13
- /**
14
- * {@linkcode Grid} provides gird layout.
15
- *
16
- * @category layout
17
- */
18
- let Grid = class Grid extends GlobalStyle {
19
- render() {
20
- return [
21
- htmlSlot(),
22
- htmlStyle(joinRules({
23
- ":host": {
24
- gap: this.gap,
25
- "grid-template-columns": isNumerical(this.columns) ? `repeat(${this.columns},1fr)` : this.columns,
26
- "grid-template-rows": isNumerical(this.rows) ? `repeat(${this.rows},1fr)` : this.rows,
27
- "place-content": this.content,
28
- "place-items": this.items,
29
- },
30
- })),
31
- ];
32
- }
33
- };
34
- __decorate([
35
- property()
36
- ], Grid.prototype, "gap", void 0);
37
- __decorate([
38
- property()
39
- ], Grid.prototype, "columns", void 0);
40
- __decorate([
41
- property()
42
- ], Grid.prototype, "rows", void 0);
43
- __decorate([
44
- property()
45
- ], Grid.prototype, "content", void 0);
46
- __decorate([
47
- property()
48
- ], Grid.prototype, "items", void 0);
49
- Grid = __decorate([
50
- godown(protoName),
51
- styles(css `:host{display:grid}`)
52
- ], Grid);
53
- var Grid$1 = Grid;
54
-
55
- export { Grid$1 as default };
1
+ import{__decorate as t}from"tslib";import{godown as o,styles as r,attr as e,htmlSlot as s,htmlStyle as i,joinRules as p,isNumerical as d}from"@godown/element";import{css as l,html as m}from"lit";import{property as a}from"lit/decorators.js";import{GlobalStyle as n}from"../core/global-style.js";let c=class Grid extends n{render(){return m`<div part="root" ${e(this.observedRecord)}>${[s(),i(p({":host":{gap:this.gap,"grid-template-columns":d(this.columns)?`repeat(${this.columns},1fr)`:this.columns,"grid-template-rows":d(this.rows)?`repeat(${this.rows},1fr)`:this.rows,"place-content":this.content,"place-items":this.items}}))]}</div>`}};t([a()],c.prototype,"gap",void 0),t([a()],c.prototype,"columns",void 0),t([a()],c.prototype,"rows",void 0),t([a()],c.prototype,"content",void 0),t([a()],c.prototype,"items",void 0),c=t([o("grid"),r(l`:host,:host([contents]) [part=root]{display:grid}[part=root]{display:contents}`)],c);var h=c;export{c as Grid,h as default};
56
2
  //# sourceMappingURL=grid.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"grid.js","sources":["../src/components/grid.ts"],"sourcesContent":null,"names":[],"mappings":";;;;;;;;;;;AAWA,MAAM,SAAS,GAAG,MAAM;AAExB;;;;AAIE;AAGF,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,WAAW,CAAA;IA2BlB,MAAM,GAAA;QACd,OAAO;AACL,YAAA,QAAQ,EAAE;YACV,SAAS,CACP,SAAS,CAAC;AACR,gBAAA,OAAO,EAAE;oBACP,GAAG,EAAE,IAAI,CAAC,GAAG;oBACb,uBAAuB,EAAE,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,UAAU,IAAI,CAAC,OAAO,CAAO,KAAA,CAAA,GAAG,IAAI,CAAC,OAAO;oBACjG,oBAAoB,EAAE,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,UAAU,IAAI,CAAC,IAAI,CAAO,KAAA,CAAA,GAAG,IAAI,CAAC,IAAI;oBACrF,eAAe,EAAE,IAAI,CAAC,OAAO;oBAC7B,aAAa,EAAE,IAAI,CAAC,KAAK;AAC1B,iBAAA;AACF,aAAA,CAAC,CACH;SACF;;CAEL;AAtCE,UAAA,CAAA;AADC,IAAA,QAAQ;AACE,CAAA,EAAA,IAAA,CAAA,SAAA,EAAA,KAAA,EAAA,KAAA,CAAA,CAAA;AAKX,UAAA,CAAA;AADC,IAAA,QAAQ;AACe,CAAA,EAAA,IAAA,CAAA,SAAA,EAAA,SAAA,EAAA,KAAA,CAAA,CAAA;AAKxB,UAAA,CAAA;AADC,IAAA,QAAQ;AACY,CAAA,EAAA,IAAA,CAAA,SAAA,EAAA,MAAA,EAAA,KAAA,CAAA,CAAA;AAKrB,UAAA,CAAA;AADC,IAAA,QAAQ;AACM,CAAA,EAAA,IAAA,CAAA,SAAA,EAAA,SAAA,EAAA,KAAA,CAAA,CAAA;AAKf,UAAA,CAAA;AADC,IAAA,QAAQ;AACI,CAAA,EAAA,IAAA,CAAA,SAAA,EAAA,OAAA,EAAA,KAAA,CAAA,CAAA;AAzBT,IAAI,GAAA,UAAA,CAAA;IAFT,MAAM,CAAC,SAAS,CAAA;AAChB,IAAA,MAAM,CAAC,GAAG,CAAA,CAAA,mBAAA,CAAqB;AAC1B,CAAA,EAAA,IAAI,CA2CV;AAEA,aAAe,IAAI;;;;"}
1
+ {"version":3,"file":"grid.js","sources":["../src/components/grid.ts"],"sourcesContent":null,"names":["Grid","GlobalStyle","render","html","attr","this","observedRecord","htmlSlot","htmlStyle","joinRules","gap","isNumerical","columns","rows","content","items","__decorate","property","prototype","godown","styles","css","Grid$1"],"mappings":"sSAkBA,IAAMA,EAAN,MAAMA,aAAaC,EAmCP,MAAAC,GACR,OAAOC,CAAI,oBAAoBC,EAAKC,KAAKC,mBACrC,CACFC,IACAC,EACEC,EAAU,CACR,QAAS,CACPC,IAAKL,KAAKK,IACV,wBAAyBC,EAAYN,KAAKO,SAAW,UAAUP,KAAKO,eAAiBP,KAAKO,QAC1F,qBAAsBD,EAAYN,KAAKQ,MAAQ,UAAUR,KAAKQ,YAAcR,KAAKQ,KACjF,gBAAiBR,KAAKS,QACtB,cAAeT,KAAKU,qBAzC9BC,EAAA,CADCC,KACUjB,EAAAkB,UAAA,WAAA,GAQXF,EAAA,CADCC,KACuBjB,EAAAkB,UAAA,eAAA,GAQxBF,EAAA,CADCC,KACoBjB,EAAAkB,UAAA,YAAA,GAMrBF,EAAA,CADCC,KACcjB,EAAAkB,UAAA,eAAA,GAMfF,EAAA,CADCC,KACYjB,EAAAkB,UAAA,aAAA,GAjCTlB,EAAIgB,EAAA,CAJTG,EARiB,QASjBC,EACCC,CAAG,mFAECrB,GAuDN,IAAAsB,EAAetB"}
@@ -0,0 +1,29 @@
1
+ import { type TemplateResult } from "lit";
2
+ import { GlobalStyle } from "../core/global-style.js";
3
+ /**
4
+ * {@linkcode Heading} renders a heading.
5
+ *
6
+ * If the id is provided, the anchor will be displayed.
7
+ *
8
+ * @slot - Heading content.
9
+ * @category layout
10
+ */
11
+ declare class Heading extends GlobalStyle {
12
+ /**
13
+ * The heading level.
14
+ */
15
+ as: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
16
+ /**
17
+ * The anchor prefix.
18
+ */
19
+ anchor: string;
20
+ /**
21
+ * The anchor side.
22
+ */
23
+ side: "left" | "right";
24
+ protected render(): TemplateResult<1>;
25
+ protected wrapHeading(...children: any[]): TemplateResult<1>;
26
+ }
27
+ export default Heading;
28
+ export { Heading };
29
+ //# sourceMappingURL=heading.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"heading.d.ts","sourceRoot":"","sources":["../src/components/heading.ts"],"names":[],"mappings":"AACA,OAAO,EAAsB,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAG9D,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAItD;;;;;;;GAOG;AACH,cAIM,OAAQ,SAAQ,WAAW;IAC/B;;OAEG;IAEH,EAAE,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAQ;IAEnD;;OAEG;IAEH,MAAM,SAAO;IAEb;;OAEG;IAEH,IAAI,EAAE,MAAM,GAAG,OAAO,CAAU;IAEhC,SAAS,CAAC,MAAM,IAAI,cAAc,CAAC,CAAC,CAAC;IASrC,SAAS,CAAC,WAAW,CAAC,GAAG,QAAQ,EAAE,GAAG,EAAE,GAAG,cAAc,CAAC,CAAC,CAAC;CAgB7D;AAED,eAAe,OAAO,CAAC;AACvB,OAAO,EAAE,OAAO,EAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+ import{__decorate as t}from"tslib";import{godown as r,styles as e,attr as i,htmlSlot as o}from"@godown/element";import{css as h,html as a,nothing as s}from"lit";import{property as n}from"lit/decorators.js";import{GlobalStyle as d}from"../core/global-style.js";let c=class Heading extends d{constructor(){super(...arguments),this.as="h1",this.anchor="#",this.side="left"}render(){return a`<a part="root" href="${this.id?"#"+this.id:s}" ${i(this.observedRecord)}>${this.wrapHeading(o(),this.id?a`<i part="anchor">${this.anchor}</i>`:"")}</a>`}wrapHeading(...t){switch(this.as){case"h2":return a`<h2>${t}</h2>`;case"h3":return a`<h3>${t}</h3>`;case"h4":return a`<h4>${t}</h4>`;case"h5":return a`<h5>${t}</h5>`;case"h6":return a`<h6>${t}</h6>`;default:return a`<h1>${t}</h1>`}}};t([n()],c.prototype,"as",void 0),t([n()],c.prototype,"anchor",void 0),t([n()],c.prototype,"side",void 0),c=t([r("heading"),e(h`:host{display:block;text-align:start}[part=anchor]{position:absolute;text-align:center;min-width:1.25em;right:100%}[side=left] [part=anchor]{right:100%}[side=right] [part=anchor]{left:100%}a{color:inherit}h1,h2,h3,h4,h5,h6{direction:ltr;font-size:revert;position:relative;width:-moz-fit-content;width:fit-content}`)],c);var p=c;export{c as Heading,p as default};
2
+ //# sourceMappingURL=heading.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"heading.js","sources":["../src/components/heading.ts"],"sourcesContent":null,"names":["Heading","GlobalStyle","constructor","this","as","anchor","side","render","html","id","nothing","attr","observedRecord","wrapHeading","htmlSlot","children","__decorate","property","prototype","godown","styles","css","Heading$1"],"mappings":"oQAoBA,IAAMA,EAAN,MAAMA,gBAAgBC,EAAtB,WAAAC,uBAKEC,KAAEC,GAA4C,KAM9CD,KAAME,OAAG,IAMTF,KAAIG,KAAqB,OAEf,MAAAC,GACR,OAAOC,CAAI,wBAAwBL,KAAKM,GAAK,IAAMN,KAAKM,GAAKC,MAAYC,EAAKR,KAAKS,mBAEjFT,KAAKU,YACHC,IACAX,KAAKM,GAAKD,CAAI,oBAAoBL,KAAKE,aAAe,UAMlD,WAAAQ,IAAeE,GACvB,OAAQZ,KAAKC,IACX,IAAK,KACH,OAAOI,CAAI,OAAOO,SACpB,IAAK,KACH,OAAOP,CAAI,OAAOO,SACpB,IAAK,KACH,OAAOP,CAAI,OAAOO,SACpB,IAAK,KACH,OAAOP,CAAI,OAAOO,SACpB,IAAK,KACH,OAAOP,CAAI,OAAOO,SACpB,QACE,OAAOP,CAAI,OAAOO,YAtCxBC,EAAA,CADCC,KACiDjB,EAAAkB,UAAA,UAAA,GAMlDF,EAAA,CADCC,KACWjB,EAAAkB,UAAA,cAAA,GAMZF,EAAA,CADCC,KAC8BjB,EAAAkB,UAAA,YAAA,GAjB3BlB,EAAOgB,EAAA,CAJZG,EAViB,WAWjBC,EACCC,CAAG,8TAECrB,GAgDN,IAAAsB,EAAetB"}
@@ -1,7 +1,10 @@
1
+ import { type TemplateResult } from "lit";
1
2
  import SuperInput from "../core/super-input.js";
2
3
  /**
3
- * {@linkcode Input} used for text input.
4
+ * {@linkcode Input} renders a text input.
4
5
  *
6
+ * @fires input - Fires when the input value changes.
7
+ * @fires change - Fires when the input value changes.
5
8
  * @category input
6
9
  */
7
10
  declare class Input extends SuperInput {
@@ -11,9 +14,10 @@ declare class Input extends SuperInput {
11
14
  * If outline, the outline is always present.
12
15
  */
13
16
  variant: "default" | "outline";
14
- _input: HTMLInputElement;
15
- protected render(): import("lit").TemplateResult<1>;
17
+ protected _input: HTMLInputElement;
18
+ protected render(): TemplateResult<1>;
16
19
  reset(): void;
17
20
  }
18
21
  export default Input;
22
+ export { Input };
19
23
  //# sourceMappingURL=input.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../src/components/input.ts"],"names":[],"mappings":"AAQA,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAIhD;;;;GAIG;AACH,cAIM,KAAM,SAAQ,UAAU;IAC5B,IAAI,EAAE,MAAM,GAAG,QAAQ,GAAG,KAAK,GAAG,KAAK,GAAG,OAAO,GAAG,UAAU,CAAU;IACxE,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IAEH,OAAO,EAAE,SAAS,GAAG,SAAS,CAAa;IAG3C,MAAM,EAAE,gBAAgB,CAAC;IAEzB,SAAS,CAAC,MAAM;IAQhB,KAAK;CAIN;AAED,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../src/components/input.ts"],"names":[],"mappings":"AACA,OAAO,EAAsB,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAI9D,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAIhD;;;;;;GAMG;AACH,cAIM,KAAM,SAAQ,UAAU;IAC5B,IAAI,EAAE,MAAM,GAAG,QAAQ,GAAG,KAAK,GAAG,KAAK,GAAG,OAAO,GAAG,UAAU,CAAU;IAExE,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IAEH,OAAO,EAAE,SAAS,GAAG,SAAS,CAAa;IAG3C,SAAS,CAAC,MAAM,EAAE,gBAAgB,CAAC;IAEnC,SAAS,CAAC,MAAM,IAAI,cAAc,CAAC,CAAC,CAAC;IAQrC,KAAK,IAAI,IAAI;CAId;AAED,eAAe,KAAK,CAAC;AACrB,OAAO,EAAE,KAAK,EAAE,CAAC"}
@@ -1,51 +1,2 @@
1
- import { __decorate } from 'tslib';
2
- import { godown } from '@godown/element/decorators/godown.js';
3
- import { part } from '@godown/element/decorators/part.js';
4
- import { styles } from '@godown/element/decorators/styles.js';
5
- import { classList } from '@godown/element/directives/class-list.js';
6
- import { css, html, nothing } from 'lit';
7
- import { property } from 'lit/decorators.js';
8
- import { cssGlobalVars } from '../core/global-style.js';
9
- import SuperInput from '../core/super-input.js';
10
-
11
- const protoName = "input";
12
- /**
13
- * {@linkcode Input} used for text input.
14
- *
15
- * @category input
16
- */
17
- let Input = class Input extends SuperInput {
18
- constructor() {
19
- super(...arguments);
20
- this.type = "text";
21
- /**
22
- * If outline, the outline is always present.
23
- */
24
- this.variant = "default";
25
- }
26
- render() {
27
- return html `<div part="root" class="${classList("input-field", this.variant)}">${[
28
- this._renderPrefix(),
29
- html `<input part="input" type="${this.type}" id="${this.makeId}" .value="${this.value}" placeholder="${this.placeholder || nothing}" ?autofocus="${this.autofocus}" autocapitalize="${this.autocapitalize || nothing}" autocomplete="${this.autocomplete || nothing}" ?disabled="${this.disabled}" @input="${this._handleInput}">`,
30
- this._renderSuffix(),
31
- ]}</div>`;
32
- }
33
- reset() {
34
- this._input.value = this.default;
35
- this.value = this.default;
36
- }
37
- };
38
- __decorate([
39
- property()
40
- ], Input.prototype, "variant", void 0);
41
- __decorate([
42
- part("input")
43
- ], Input.prototype, "_input", void 0);
44
- Input = __decorate([
45
- godown(protoName),
46
- styles(css `:host{width:var(${cssGlobalVars.input}-width);height:var(${cssGlobalVars.input}-height);color:var(${cssGlobalVars.foreground});background:var(${cssGlobalVars.input}-background);border-radius:var(${cssGlobalVars.input}-radius);display:block}`)
47
- ], Input);
48
- var Input$1 = Input;
49
-
50
- export { Input$1 as default };
1
+ import{__decorate as t}from"tslib";import{part as i,godown as e,styles as r,attr as o,classList as a}from"@godown/element";import{css as s,html as u,nothing as p}from"lit";import{property as d}from"lit/decorators.js";import{cssGlobalVars as l}from"../core/global-style.js";import n from"../core/super-input.js";let h=class Input extends n{constructor(){super(...arguments),this.type="text",this.variant="default"}render(){return u`<div part="root" ${o(this.observedRecord)} class="${a("input-field",this.variant)}">${[this._renderPrefix(),u`<input part="input" type="${this.type}" id="${this.makeId}" .value="${this.value}" placeholder="${this.placeholder||p}" ?autofocus="${this.autofocus}" autocapitalize="${this.autocapitalize||p}" autocomplete="${this.autocomplete||p}" ?disabled="${this.disabled}" @input="${this._handleInput}">`,this._renderSuffix()]}</div>`}reset(){this._input.value=this.default,this.value=this.default}};t([d()],h.prototype,"variant",void 0),t([i("input")],h.prototype,"_input",void 0),h=t([e("input"),r(s`:host{width:var(${l.input}-width);height:var(${l.input}-height);color:var(${l.foreground});background:var(${l.input}-background);border-radius:var(${l.input}-radius);display:block}`)],h);var c=h;export{h as Input,c as default};
51
2
  //# sourceMappingURL=input.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"input.js","sources":["../src/components/input.ts"],"sourcesContent":null,"names":[],"mappings":";;;;;;;;;;AAUA,MAAM,SAAS,GAAG,OAAO;AAEzB;;;;AAIE;AAKF,IAAM,KAAK,GAAX,MAAM,KAAM,SAAQ,UAAU,CAAA;AAA9B,IAAA,WAAA,GAAA;;QACE,IAAI,CAAA,IAAA,GAA6D,MAAM;AAGvE;;AAEE;QAEF,IAAO,CAAA,OAAA,GAA0B,SAAS;;IAKhC,MAAM,GAAA;QACd,OAAO,IAAI,CAAA,CAAA,wBAAA,EAA2B,SAAS,CAAC,aAAa,EAAE,IAAI,CAAC,OAAO,CAAC,CAC1E,EAAA,EAAA;YACA,IAAI,CAAC,aAAa,EAAE;AACpB,YAAA,IAAI,CAAA,CAEM,0BAAA,EAAA,IAAI,CAAC,IAAI,CAAA,MAAA,EACX,IAAI,CAAC,MAAM,aACP,IAAI,CAAC,KAAK,CACL,eAAA,EAAA,IAAI,CAAC,WAAW,IAAI,OAAO,CAC5B,cAAA,EAAA,IAAI,CAAC,SAAS,CAAA,kBAAA,EACV,IAAI,CAAC,cAAc,IAAI,OAAO,CAAA,gBAAA,EAChC,IAAI,CAAC,YAAY,IAAI,OAAO,CAAA,aAAA,EAC/B,IAAI,CAAC,QAAQ,aAChB,IAAI,CAAC,YAAY,CAC3B,EAAA,CAAA;YACF,IAAI,CAAC,aAAa,EAAE;AACrB,SAAA,CAAA,MAAA,CACM;;IAGT,KAAK,GAAA;QACH,IAAI,CAAC,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC,OAAO;AAChC,QAAA,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,OAAO;;CAE7B;AA9BE,UAAA,CAAA;AADC,IAAA,QAAQ;AACiC,CAAA,EAAA,KAAA,CAAA,SAAA,EAAA,SAAA,EAAA,KAAA,CAAA,CAAA;AAG1C,UAAA,CAAA;IADC,IAAI,CAAC,OAAO;AACW,CAAA,EAAA,KAAA,CAAA,SAAA,EAAA,QAAA,EAAA,KAAA,CAAA,CAAA;AAXpB,KAAK,GAAA,UAAA,CAAA;IAJV,MAAM,CAAC,SAAS,CAAA;IAChB,MAAM,CACL,GAAG,CAAA,CAAmB,gBAAA,EAAA,aAAa,CAAC,KAAK,CAAA,mBAAA,EAAsB,aAAa,CAAC,KAAK,CAAA,mBAAA,EAAsB,aAAa,CAAC,UAAU,CAAoB,iBAAA,EAAA,aAAa,CAAC,KAAK,kCAAkC,aAAa,CAAC,KAAK,CAAA,uBAAA,CAAyB;AAEjP,CAAA,EAAA,KAAK,CAsCX;AAEA,cAAe,KAAK;;;;"}
1
+ {"version":3,"file":"input.js","sources":["../src/components/input.ts"],"sourcesContent":null,"names":["Input","SuperInput","constructor","this","type","variant","render","html","attr","observedRecord","classList","_renderPrefix","makeId","value","placeholder","nothing","autofocus","autocapitalize","autocomplete","disabled","_handleInput","_renderSuffix","reset","_input","default","__decorate","property","prototype","part","godown","styles","css","cssGlobalVars","input","foreground","Input$1"],"mappings":"uTAoBA,IAAMA,EAAN,MAAMA,cAAcC,EAApB,WAAAC,uBACEC,KAAIC,KAA6D,OAQjED,KAAOE,QAA0B,UAKvB,MAAAC,GACR,OAAOC,CAAI,oBAAoBC,EAAKL,KAAKM,0BAA0BC,EAAU,cAAeP,KAAKE,aAC7F,CACFF,KAAKQ,gBACLJ,CAAI,6BAEQJ,KAAKC,aACPD,KAAKS,mBACDT,KAAKU,uBACAV,KAAKW,aAAeC,kBACrBZ,KAAKa,8BACDb,KAAKc,gBAAkBF,oBACzBZ,KAAKe,cAAgBH,iBACxBZ,KAAKgB,qBACRhB,KAAKiB,iBAEnBjB,KAAKkB,yBAKT,KAAAC,GACEnB,KAAKoB,OAAOV,MAAQV,KAAKqB,QACzBrB,KAAKU,MAAQV,KAAKqB,UA5BpBC,EAAA,CADCC,KACyC1B,EAAA2B,UAAA,eAAA,GAGhCF,EAAA,CADTG,EAAK,UAC4B5B,EAAA2B,UAAA,cAAA,GAZ9B3B,EAAKyB,EAAA,CAJVI,EATiB,SAUjBC,EACCC,CAAG,mBAAmBC,EAAcC,2BAA2BD,EAAcC,2BAA2BD,EAAcE,8BAA8BF,EAAcC,uCAAuCD,EAAcC,iCAEnNjC,GAyCN,IAAAmC,EAAenC"}
@@ -1,29 +1,28 @@
1
+ import { type TemplateResult } from "lit";
1
2
  import { GlobalStyle } from "../core/global-style.js";
2
3
  /**
3
- * {@linkcode NavLayout} renders slot and optional top header, bottom footer.
4
+ * {@linkcode Layout} renders slot and optional top header, bottom footer.
4
5
  *
5
6
  * @slot - The main content of the layout.
6
- *
7
7
  * @slot header - The header of the layout.
8
- *
9
8
  * @slot footer - The footer of the layout.
10
- *
11
9
  * @category layout
12
10
  */
13
- declare class NavLayout extends GlobalStyle {
11
+ declare class Layout extends GlobalStyle {
14
12
  /**
15
- * If true, hide the header slot.
13
+ * If true, remove the header slot.
16
14
  */
17
15
  noHeader: boolean;
18
16
  /**
19
- * If true, hide the footer slot.
17
+ * If true, remove the footer slot.
20
18
  */
21
19
  noFooter: boolean;
22
20
  /**
23
21
  * If true, header will sticky.
24
22
  */
25
23
  sticky: boolean;
26
- protected render(): import("lit").TemplateResult<1>;
24
+ protected render(): TemplateResult<1>;
27
25
  }
28
- export default NavLayout;
26
+ export default Layout;
27
+ export { Layout };
29
28
  //# sourceMappingURL=layout.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../src/components/layout.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAItD;;;;;;;;;;GAUG;AACH,cAIM,SAAU,SAAQ,WAAW;IACjC;;OAEG;IAEH,QAAQ,EAAE,OAAO,CAAC;IAClB;;OAEG;IAEH,QAAQ,EAAE,OAAO,CAAC;IAElB;;OAEG;IAEH,MAAM,EAAE,OAAO,CAAC;IAEhB,SAAS,CAAC,MAAM;CAWjB;AAED,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../src/components/layout.ts"],"names":[],"mappings":"AACA,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAGrD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAItD;;;;;;;GAOG;AACH,cAIM,MAAO,SAAQ,WAAW;IAC9B;;OAEG;IAEH,QAAQ,UAAS;IAEjB;;OAEG;IAEH,QAAQ,UAAS;IAEjB;;OAEG;IAEH,MAAM,UAAS;IAEf,SAAS,CAAC,MAAM,IAAI,cAAc,CAAC,CAAC,CAAC;CAGtC;AAED,eAAe,MAAM,CAAC;AACtB,OAAO,EAAE,MAAM,EAAE,CAAC"}
@@ -1,47 +1,2 @@
1
- import { __decorate } from 'tslib';
2
- import { godown } from '@godown/element/decorators/godown.js';
3
- import { styles } from '@godown/element/decorators/styles.js';
4
- import { classList } from '@godown/element/directives/class-list.js';
5
- import { htmlSlot } from '@godown/element/directives/html-slot.js';
6
- import { css, html } from 'lit';
7
- import { property } from 'lit/decorators.js';
8
- import { GlobalStyle } from '../core/global-style.js';
9
-
10
- const protoName = "layout";
11
- /**
12
- * {@linkcode NavLayout} renders slot and optional top header, bottom footer.
13
- *
14
- * @slot - The main content of the layout.
15
- *
16
- * @slot header - The header of the layout.
17
- *
18
- * @slot footer - The footer of the layout.
19
- *
20
- * @category layout
21
- */
22
- let NavLayout = class NavLayout extends GlobalStyle {
23
- render() {
24
- return html `${!this.noHeader
25
- ? html `<header part="header" class="${classList({ sticky: this.sticky })}">${htmlSlot("header")}</header>`
26
- : ""}<main part="main">${htmlSlot()}</main>${!this.noFooter
27
- ? html `<footer part="footer">${htmlSlot("footer")}</footer>`
28
- : ""}`;
29
- }
30
- };
31
- __decorate([
32
- property({ type: Boolean })
33
- ], NavLayout.prototype, "noHeader", void 0);
34
- __decorate([
35
- property({ type: Boolean })
36
- ], NavLayout.prototype, "noFooter", void 0);
37
- __decorate([
38
- property({ type: Boolean })
39
- ], NavLayout.prototype, "sticky", void 0);
40
- NavLayout = __decorate([
41
- godown(protoName),
42
- styles(css `:host{min-height:100%;display:flex;flex-direction:column}.sticky{position:sticky;top:0;z-index:1}[part=main]{position:relative;flex:1;width:100%}footer,header,main{width:100%}`)
43
- ], NavLayout);
44
- var Layout = NavLayout;
45
-
46
- export { Layout as default };
1
+ import{__decorate as o}from"tslib";import{godown as t,styles as e,attr as r,htmlSlot as i}from"@godown/element";import{css as a,html as n}from"lit";import{property as s}from"lit/decorators.js";import{GlobalStyle as p}from"../core/global-style.js";let d=class Layout extends p{constructor(){super(...arguments),this.noHeader=!1,this.noFooter=!1,this.sticky=!1}render(){return n`<div part="root" ${r(this.observedRecord)}>${this.noHeader?"":n`<header part="header">${i("header")}</header>`}<main part="main">${i()}</main>${this.noFooter?"":n`<footer part="footer">${i("footer")}</footer>`}</div>`}};o([s({type:Boolean})],d.prototype,"noHeader",void 0),o([s({type:Boolean})],d.prototype,"noFooter",void 0),o([s({type:Boolean})],d.prototype,"sticky",void 0),d=o([t("layout"),e(a`:host,:host([contents]) [part=root]{min-height:100%;display:flex;flex-direction:column}[part=root]{display:contents}[sticky] header{position:sticky;top:0;z-index:1}[part=main]{position:relative;flex:1;width:100%}footer,header,main{width:100%}`)],d);var l=d;export{d as Layout,l as default};
47
2
  //# sourceMappingURL=layout.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"layout.js","sources":["../src/components/layout.ts"],"sourcesContent":null,"names":[],"mappings":";;;;;;;;;AASA,MAAM,SAAS,GAAG,QAAQ;AAE1B;;;;;;;;;;AAUE;AAKF,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,WAAW,CAAA;IAkBvB,MAAM,GAAA;AACd,QAAA,OAAO,IAAI,CAAA,CAAA,EACT,CAAC,IAAI,CAAC;AACJ,cAAE,IAAI,CAAA,gCAAgC,SAAS,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,CAAA,EAAA,EAAK,QAAQ,CAAC,QAAQ,CAAC,CAAU,SAAA;cACvG,EACN,CACoB,kBAAA,EAAA,QAAQ,EAAE,CAE5B,OAAA,EAAA,CAAC,IAAI,CAAC;cACF,IAAI,CAAA,CAAA,sBAAA,EAAyB,QAAQ,CAAC,QAAQ,CAAC,CAAU,SAAA;cACzD,EACN,CAAA,CAAE;;CAEN;AA1BE,UAAA,CAAA;AADC,IAAA,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE;AACV,CAAA,EAAA,SAAA,CAAA,SAAA,EAAA,UAAA,EAAA,KAAA,CAAA,CAAA;AAKjB,UAAA,CAAA;AADC,IAAA,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE;AACV,CAAA,EAAA,SAAA,CAAA,SAAA,EAAA,UAAA,EAAA,KAAA,CAAA,CAAA;AAMjB,UAAA,CAAA;AADC,IAAA,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE;AACZ,CAAA,EAAA,SAAA,CAAA,SAAA,EAAA,QAAA,EAAA,KAAA,CAAA,CAAA;AAhBX,SAAS,GAAA,UAAA,CAAA;IAJd,MAAM,CAAC,SAAS,CAAA;AAChB,IAAA,MAAM,CACL,GAAG,CAAA,CAAA,+KAAA,CAAmL;AAElL,CAAA,EAAA,SAAS,CA+Bf;AAEA,aAAe,SAAS;;;;"}
1
+ {"version":3,"file":"layout.js","sources":["../src/components/layout.ts"],"sourcesContent":null,"names":["Layout","GlobalStyle","constructor","this","noHeader","noFooter","sticky","render","html","attr","observedRecord","htmlSlot","__decorate","property","type","Boolean","prototype","godown","styles","css","Layout$1"],"mappings":"uPAoBA,IAAMA,EAAN,MAAMA,eAAeC,EAArB,WAAAC,uBAKEC,KAAQC,UAAG,EAMXD,KAAQE,UAAG,EAMXF,KAAMG,QAAG,EAEC,MAAAC,GACR,OAAOC,CAAI,oBAAoBC,EAAKN,KAAKO,mBACpCP,KAAKC,SAAwE,GAA7DI,CAAI,yBAAyBG,EAAS,yCACrCA,aACjBR,KAAKE,SAAwE,GAA7DG,CAAI,yBAAyBG,EAAS,+BAlB7DC,EAAA,CADCC,EAAS,CAAEC,KAAMC,WACFf,EAAAgB,UAAA,gBAAA,GAMhBJ,EAAA,CADCC,EAAS,CAAEC,KAAMC,WACFf,EAAAgB,UAAA,gBAAA,GAMhBJ,EAAA,CADCC,EAAS,CAAEC,KAAMC,WACJf,EAAAgB,UAAA,cAAA,GAjBVhB,EAAMY,EAAA,CAJXK,EAViB,UAWjBC,EACCC,CAAG,uPAECnB,GA4BN,IAAAoB,EAAepB"}
@@ -11,10 +11,17 @@ declare class Link extends SuperAnchor {
11
11
  /**
12
12
  * If "push", call `history.pushState`.
13
13
  *
14
- * If "replace", call `history.replaceState`
14
+ * If "replace", call `history.replaceState`.
15
+ *
16
+ * If "normal", behave like a normal anchor.
15
17
  */
16
18
  type: "push" | "replace" | "normal";
19
+ /**
20
+ * Suppress the update of the {@linkcode Router}.
21
+ */
22
+ suppress: boolean;
17
23
  protected _handleClick(e: MouseEvent): void;
18
24
  }
19
25
  export default Link;
26
+ export { Link };
20
27
  //# sourceMappingURL=link.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../src/components/link.ts"],"names":[],"mappings":"AAGA,OAAO,WAAW,MAAM,yBAAyB,CAAC;AAKlD;;;;;;;GAOG;AACH,cACM,IAAK,SAAQ,WAAW;IAC5B;;;;OAIG;IAEH,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,QAAQ,CAAY;IAE/C,SAAS,CAAC,YAAY,CAAC,CAAC,EAAE,UAAU;CAOrC;AAED,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../src/components/link.ts"],"names":[],"mappings":"AAGA,OAAO,WAAW,MAAM,yBAAyB,CAAC;AAKlD;;;;;;;GAOG;AACH,cACM,IAAK,SAAQ,WAAW;IAC5B;;;;;;OAMG;IAEH,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,QAAQ,CAAY;IAE/C;;OAEG;IAEH,QAAQ,UAAS;IAEjB,SAAS,CAAC,YAAY,CAAC,CAAC,EAAE,UAAU,GAAG,IAAI;CAS5C;AAED,eAAe,IAAI,CAAC;AACpB,OAAO,EAAE,IAAI,EAAE,CAAC"}
@@ -1,43 +1,2 @@
1
- import { __decorate } from 'tslib';
2
- import { godown } from '@godown/element/decorators/godown.js';
3
- import { property } from 'lit/decorators.js';
4
- import SuperAnchor from '../core/super-anchor.js';
5
- import Router from './router.js';
6
-
7
- const protoName = "link";
8
- /**
9
- * {@linkcode Link} is used for link jumping.
10
- *
11
- * Set `type` to `"push" `or `"replace"`,
12
- * will invoke the history api and trigger the {@linkcode Router.updateAll}.
13
- *
14
- * @category navigation
15
- */
16
- let Link = class Link extends SuperAnchor {
17
- constructor() {
18
- super(...arguments);
19
- /**
20
- * If "push", call `history.pushState`.
21
- *
22
- * If "replace", call `history.replaceState`
23
- */
24
- this.type = "normal";
25
- }
26
- _handleClick(e) {
27
- if (this.type === "push" || this.type === "replace") {
28
- e.preventDefault();
29
- (history[`${this.type}State`])(null, "", this.href);
30
- Router.updateAll();
31
- }
32
- }
33
- };
34
- __decorate([
35
- property()
36
- ], Link.prototype, "type", void 0);
37
- Link = __decorate([
38
- godown(protoName)
39
- ], Link);
40
- var Link$1 = Link;
41
-
42
- export { Link$1 as default };
1
+ import{__decorate as t}from"tslib";import{godown as e}from"@godown/element";import{property as r}from"lit/decorators.js";import o from"../core/super-anchor.js";import s from"./router.js";let p=class Link extends o{constructor(){super(...arguments),this.type="normal",this.suppress=!1}_handleClick(t){"push"!==this.type&&"replace"!==this.type||(t.preventDefault(),history[`${this.type}State`](null,"",this.href),this.suppress||s.updateAll())}};t([r()],p.prototype,"type",void 0),t([r({type:Boolean})],p.prototype,"suppress",void 0),p=t([e("link")],p);var i=p;export{p as Link,i as default};
43
2
  //# sourceMappingURL=link.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"link.js","sources":["../src/components/link.ts"],"sourcesContent":null,"names":[],"mappings":";;;;;;AAMA,MAAM,SAAS,GAAG,MAAM;AAExB;;;;;;;AAOE;AAEF,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,WAAW,CAAA;AAA9B,IAAA,WAAA,GAAA;;AACE;;;;AAIE;QAEF,IAAI,CAAA,IAAA,GAAkC,QAAQ;;AAEpC,IAAA,YAAY,CAAC,CAAa,EAAA;AAClC,QAAA,IAAI,IAAI,CAAC,IAAI,KAAK,MAAM,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS,EAAE;YACnD,CAAC,CAAC,cAAc,EAAE;AAClB,YAAA,CAAC,OAAO,CAAC,CAAA,EAAG,IAAI,CAAC,IAAI,OAAO,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC;YACnD,MAAM,CAAC,SAAS,EAAE;;;CAGxB;AATE,UAAA,CAAA;AADC,IAAA,QAAQ;AACqC,CAAA,EAAA,IAAA,CAAA,SAAA,EAAA,MAAA,EAAA,KAAA,CAAA,CAAA;AAP1C,IAAI,GAAA,UAAA,CAAA;IADT,MAAM,CAAC,SAAS;AACX,CAAA,EAAA,IAAI,CAgBV;AAEA,aAAe,IAAI;;;;"}
1
+ {"version":3,"file":"link.js","sources":["../src/components/link.ts"],"sourcesContent":null,"names":["Link","SuperAnchor","constructor","this","type","suppress","_handleClick","e","preventDefault","history","href","Router","updateAll","__decorate","property","prototype","Boolean","godown","Link$1"],"mappings":"2LAiBA,IAAMA,EAAN,MAAMA,aAAaC,EAAnB,WAAAC,uBASEC,KAAIC,KAAkC,SAMtCD,KAAQE,UAAG,EAED,YAAAC,CAAaC,GACH,SAAdJ,KAAKC,MAAiC,YAAdD,KAAKC,OAC/BG,EAAEC,iBACDC,QAAQ,GAAGN,KAAKC,aAAc,KAAM,GAAID,KAAKO,MACzCP,KAAKE,UACRM,EAAOC,eAbbC,EAAA,CADCC,KAC6Cd,EAAAe,UAAA,YAAA,GAM9CF,EAAA,CADCC,EAAS,CAAEV,KAAMY,WACFhB,EAAAe,UAAA,gBAAA,GAfZf,EAAIa,EAAA,CADTI,EAViB,SAWZjB,GA4BN,IAAAkB,EAAelB"}