godown 3.0.0-canary.10 → 3.0.0-canary.12

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 (390) hide show
  1. package/README.md +3 -3
  2. package/alert.d.ts +1 -0
  3. package/alert.d.ts.map +1 -1
  4. package/avatar.d.ts +1 -0
  5. package/avatar.d.ts.map +1 -1
  6. package/button.d.ts +1 -0
  7. package/button.d.ts.map +1 -1
  8. package/card.d.ts +1 -0
  9. package/card.d.ts.map +1 -1
  10. package/carousel.d.ts +1 -0
  11. package/carousel.d.ts.map +1 -1
  12. package/components/alert.d.ts +2 -1
  13. package/components/alert.d.ts.map +1 -1
  14. package/components/alert.js +6 -8
  15. package/components/alert.js.map +1 -1
  16. package/components/avatar.d.ts +2 -1
  17. package/components/avatar.d.ts.map +1 -1
  18. package/components/avatar.js +8 -5
  19. package/components/avatar.js.map +1 -1
  20. package/components/breath.d.ts +3 -2
  21. package/components/breath.d.ts.map +1 -1
  22. package/components/breath.js +6 -5
  23. package/components/breath.js.map +1 -1
  24. package/components/button.d.ts +5 -3
  25. package/components/button.d.ts.map +1 -1
  26. package/components/button.js +20 -3
  27. package/components/button.js.map +1 -1
  28. package/components/card.d.ts +2 -1
  29. package/components/card.d.ts.map +1 -1
  30. package/components/card.js +5 -4
  31. package/components/card.js.map +1 -1
  32. package/components/carousel.d.ts +3 -1
  33. package/components/carousel.d.ts.map +1 -1
  34. package/components/carousel.js +17 -11
  35. package/components/carousel.js.map +1 -1
  36. package/components/details.d.ts +2 -1
  37. package/components/details.d.ts.map +1 -1
  38. package/components/details.js +3 -2
  39. package/components/details.js.map +1 -1
  40. package/components/dialog.d.ts +2 -2
  41. package/components/dialog.d.ts.map +1 -1
  42. package/components/dialog.js +5 -3
  43. package/components/dialog.js.map +1 -1
  44. package/components/divider.d.ts +2 -3
  45. package/components/divider.d.ts.map +1 -1
  46. package/components/divider.js +5 -6
  47. package/components/divider.js.map +1 -1
  48. package/components/dragbox.d.ts +2 -1
  49. package/components/dragbox.d.ts.map +1 -1
  50. package/components/dragbox.js +4 -2
  51. package/components/dragbox.js.map +1 -1
  52. package/components/flex.d.ts +2 -1
  53. package/components/flex.d.ts.map +1 -1
  54. package/components/flex.js +5 -4
  55. package/components/flex.js.map +1 -1
  56. package/components/form.d.ts +2 -1
  57. package/components/form.d.ts.map +1 -1
  58. package/components/form.js.map +1 -1
  59. package/components/grid.d.ts +2 -1
  60. package/components/grid.d.ts.map +1 -1
  61. package/components/grid.js +5 -4
  62. package/components/grid.js.map +1 -1
  63. package/components/input.d.ts +2 -1
  64. package/components/input.d.ts.map +1 -1
  65. package/components/input.js +3 -2
  66. package/components/input.js.map +1 -1
  67. package/components/layout.d.ts +2 -1
  68. package/components/layout.d.ts.map +1 -1
  69. package/components/layout.js +6 -6
  70. package/components/layout.js.map +1 -1
  71. package/components/link.d.ts +4 -0
  72. package/components/link.d.ts.map +1 -1
  73. package/components/link.js +10 -1
  74. package/components/link.js.map +1 -1
  75. package/components/progress.d.ts +2 -1
  76. package/components/progress.d.ts.map +1 -1
  77. package/components/progress.js +5 -4
  78. package/components/progress.js.map +1 -1
  79. package/components/range.d.ts +3 -2
  80. package/components/range.d.ts.map +1 -1
  81. package/components/range.js +8 -7
  82. package/components/range.js.map +1 -1
  83. package/components/rotate.d.ts +2 -1
  84. package/components/rotate.d.ts.map +1 -1
  85. package/components/rotate.js +1 -1
  86. package/components/rotate.js.map +1 -1
  87. package/components/router.d.ts +9 -9
  88. package/components/router.d.ts.map +1 -1
  89. package/components/router.js.map +1 -1
  90. package/components/select.d.ts +2 -1
  91. package/components/select.d.ts.map +1 -1
  92. package/components/select.js +11 -5
  93. package/components/select.js.map +1 -1
  94. package/components/skeleton.d.ts +2 -1
  95. package/components/skeleton.d.ts.map +1 -1
  96. package/components/skeleton.js +5 -4
  97. package/components/skeleton.js.map +1 -1
  98. package/components/split.d.ts +2 -1
  99. package/components/split.d.ts.map +1 -1
  100. package/components/split.js +4 -3
  101. package/components/split.js.map +1 -1
  102. package/components/switch.d.ts +2 -1
  103. package/components/switch.d.ts.map +1 -1
  104. package/components/switch.js +4 -3
  105. package/components/switch.js.map +1 -1
  106. package/components/text.d.ts +2 -1
  107. package/components/text.d.ts.map +1 -1
  108. package/components/text.js +9 -6
  109. package/components/text.js.map +1 -1
  110. package/components/time.d.ts +2 -2
  111. package/components/time.d.ts.map +1 -1
  112. package/components/time.js +3 -2
  113. package/components/time.js.map +1 -1
  114. package/components/tooltip.d.ts +2 -1
  115. package/components/tooltip.d.ts.map +1 -1
  116. package/components/tooltip.js +4 -3
  117. package/components/tooltip.js.map +1 -1
  118. package/components/typewriter.d.ts +2 -2
  119. package/components/typewriter.d.ts.map +1 -1
  120. package/components/typewriter.js +4 -5
  121. package/components/typewriter.js.map +1 -1
  122. package/core/global-style.d.ts.map +1 -1
  123. package/core/global-style.js +1 -1
  124. package/core/global-style.js.map +1 -1
  125. package/core/super-anchor.d.ts +2 -1
  126. package/core/super-anchor.d.ts.map +1 -1
  127. package/core/super-anchor.js +4 -3
  128. package/core/super-anchor.js.map +1 -1
  129. package/core/super-input.d.ts +3 -2
  130. package/core/super-input.d.ts.map +1 -1
  131. package/core/super-input.js +10 -4
  132. package/core/super-input.js.map +1 -1
  133. package/core/super-openable.d.ts.map +1 -1
  134. package/core/super-openable.js +1 -1
  135. package/core/super-openable.js.map +1 -1
  136. package/custom-elements.json +1 -1
  137. package/details.d.ts +1 -0
  138. package/details.d.ts.map +1 -1
  139. package/dev/alert.d.ts +1 -0
  140. package/dev/alert.d.ts.map +1 -1
  141. package/dev/alert.js +1 -0
  142. package/dev/alert.js.map +1 -1
  143. package/dev/avatar.d.ts +1 -0
  144. package/dev/avatar.d.ts.map +1 -1
  145. package/dev/avatar.js +1 -0
  146. package/dev/avatar.js.map +1 -1
  147. package/dev/button.d.ts +1 -0
  148. package/dev/button.d.ts.map +1 -1
  149. package/dev/button.js +1 -0
  150. package/dev/button.js.map +1 -1
  151. package/dev/card.d.ts +1 -0
  152. package/dev/card.d.ts.map +1 -1
  153. package/dev/card.js +1 -0
  154. package/dev/card.js.map +1 -1
  155. package/dev/carousel.d.ts +1 -0
  156. package/dev/carousel.d.ts.map +1 -1
  157. package/dev/carousel.js +1 -0
  158. package/dev/carousel.js.map +1 -1
  159. package/dev/components/alert.d.ts +2 -1
  160. package/dev/components/alert.d.ts.map +1 -1
  161. package/dev/components/alert.js +12 -10
  162. package/dev/components/alert.js.map +1 -1
  163. package/dev/components/avatar.d.ts +2 -1
  164. package/dev/components/avatar.d.ts.map +1 -1
  165. package/dev/components/avatar.js +21 -7
  166. package/dev/components/avatar.js.map +1 -1
  167. package/dev/components/breath.d.ts +3 -2
  168. package/dev/components/breath.d.ts.map +1 -1
  169. package/dev/components/breath.js +17 -5
  170. package/dev/components/breath.js.map +1 -1
  171. package/dev/components/button.d.ts +5 -3
  172. package/dev/components/button.d.ts.map +1 -1
  173. package/dev/components/button.js +23 -2
  174. package/dev/components/button.js.map +1 -1
  175. package/dev/components/card.d.ts +2 -1
  176. package/dev/components/card.d.ts.map +1 -1
  177. package/dev/components/card.js +8 -5
  178. package/dev/components/card.js.map +1 -1
  179. package/dev/components/carousel.d.ts +3 -1
  180. package/dev/components/carousel.d.ts.map +1 -1
  181. package/dev/components/carousel.js +27 -13
  182. package/dev/components/carousel.js.map +1 -1
  183. package/dev/components/details.d.ts +2 -1
  184. package/dev/components/details.d.ts.map +1 -1
  185. package/dev/components/details.js +8 -3
  186. package/dev/components/details.js.map +1 -1
  187. package/dev/components/dialog.d.ts +2 -2
  188. package/dev/components/dialog.d.ts.map +1 -1
  189. package/dev/components/dialog.js +12 -10
  190. package/dev/components/dialog.js.map +1 -1
  191. package/dev/components/divider.d.ts +2 -3
  192. package/dev/components/divider.d.ts.map +1 -1
  193. package/dev/components/divider.js +19 -7
  194. package/dev/components/divider.js.map +1 -1
  195. package/dev/components/dragbox.d.ts +2 -1
  196. package/dev/components/dragbox.d.ts.map +1 -1
  197. package/dev/components/dragbox.js +9 -1
  198. package/dev/components/dragbox.js.map +1 -1
  199. package/dev/components/flex.d.ts +2 -1
  200. package/dev/components/flex.d.ts.map +1 -1
  201. package/dev/components/flex.js +16 -4
  202. package/dev/components/flex.js.map +1 -1
  203. package/dev/components/form.d.ts +2 -1
  204. package/dev/components/form.d.ts.map +1 -1
  205. package/dev/components/form.js.map +1 -1
  206. package/dev/components/grid.d.ts +2 -1
  207. package/dev/components/grid.d.ts.map +1 -1
  208. package/dev/components/grid.js +16 -4
  209. package/dev/components/grid.js.map +1 -1
  210. package/dev/components/input.d.ts +2 -1
  211. package/dev/components/input.d.ts.map +1 -1
  212. package/dev/components/input.js +2 -1
  213. package/dev/components/input.js.map +1 -1
  214. package/dev/components/layout.d.ts +2 -1
  215. package/dev/components/layout.d.ts.map +1 -1
  216. package/dev/components/layout.js +13 -6
  217. package/dev/components/layout.js.map +1 -1
  218. package/dev/components/link.d.ts +4 -0
  219. package/dev/components/link.d.ts.map +1 -1
  220. package/dev/components/link.js +10 -1
  221. package/dev/components/link.js.map +1 -1
  222. package/dev/components/progress.d.ts +2 -1
  223. package/dev/components/progress.d.ts.map +1 -1
  224. package/dev/components/progress.js +7 -2
  225. package/dev/components/progress.js.map +1 -1
  226. package/dev/components/range.d.ts +3 -2
  227. package/dev/components/range.d.ts.map +1 -1
  228. package/dev/components/range.js +27 -22
  229. package/dev/components/range.js.map +1 -1
  230. package/dev/components/rotate.d.ts +2 -1
  231. package/dev/components/rotate.d.ts.map +1 -1
  232. package/dev/components/rotate.js +1 -1
  233. package/dev/components/rotate.js.map +1 -1
  234. package/dev/components/router.d.ts +9 -9
  235. package/dev/components/router.d.ts.map +1 -1
  236. package/dev/components/router.js.map +1 -1
  237. package/dev/components/select.d.ts +2 -1
  238. package/dev/components/select.d.ts.map +1 -1
  239. package/dev/components/select.js +18 -7
  240. package/dev/components/select.js.map +1 -1
  241. package/dev/components/skeleton.d.ts +2 -1
  242. package/dev/components/skeleton.d.ts.map +1 -1
  243. package/dev/components/skeleton.js +4 -3
  244. package/dev/components/skeleton.js.map +1 -1
  245. package/dev/components/split.d.ts +2 -1
  246. package/dev/components/split.d.ts.map +1 -1
  247. package/dev/components/split.js +15 -11
  248. package/dev/components/split.js.map +1 -1
  249. package/dev/components/switch.d.ts +2 -1
  250. package/dev/components/switch.d.ts.map +1 -1
  251. package/dev/components/switch.js +15 -14
  252. package/dev/components/switch.js.map +1 -1
  253. package/dev/components/text.d.ts +2 -1
  254. package/dev/components/text.d.ts.map +1 -1
  255. package/dev/components/text.js +8 -4
  256. package/dev/components/text.js.map +1 -1
  257. package/dev/components/time.d.ts +2 -2
  258. package/dev/components/time.d.ts.map +1 -1
  259. package/dev/components/time.js +5 -2
  260. package/dev/components/time.js.map +1 -1
  261. package/dev/components/tooltip.d.ts +2 -1
  262. package/dev/components/tooltip.d.ts.map +1 -1
  263. package/dev/components/tooltip.js +24 -12
  264. package/dev/components/tooltip.js.map +1 -1
  265. package/dev/components/typewriter.d.ts +2 -2
  266. package/dev/components/typewriter.d.ts.map +1 -1
  267. package/dev/components/typewriter.js +11 -4
  268. package/dev/components/typewriter.js.map +1 -1
  269. package/dev/core/global-style.d.ts.map +1 -1
  270. package/dev/core/global-style.js +10 -1
  271. package/dev/core/global-style.js.map +1 -1
  272. package/dev/core/super-anchor.d.ts +2 -1
  273. package/dev/core/super-anchor.d.ts.map +1 -1
  274. package/dev/core/super-anchor.js +8 -5
  275. package/dev/core/super-anchor.js.map +1 -1
  276. package/dev/core/super-input.d.ts +3 -2
  277. package/dev/core/super-input.d.ts.map +1 -1
  278. package/dev/core/super-input.js +13 -5
  279. package/dev/core/super-input.js.map +1 -1
  280. package/dev/core/super-openable.d.ts.map +1 -1
  281. package/dev/core/super-openable.js +1 -1
  282. package/dev/core/super-openable.js.map +1 -1
  283. package/dev/details.d.ts +1 -0
  284. package/dev/details.d.ts.map +1 -1
  285. package/dev/details.js +1 -0
  286. package/dev/details.js.map +1 -1
  287. package/dev/dialog.d.ts +1 -0
  288. package/dev/dialog.d.ts.map +1 -1
  289. package/dev/dialog.js +1 -0
  290. package/dev/dialog.js.map +1 -1
  291. package/dev/divider.d.ts +1 -0
  292. package/dev/divider.d.ts.map +1 -1
  293. package/dev/divider.js +1 -0
  294. package/dev/divider.js.map +1 -1
  295. package/dev/dragbox.d.ts +1 -0
  296. package/dev/dragbox.d.ts.map +1 -1
  297. package/dev/dragbox.js +1 -0
  298. package/dev/dragbox.js.map +1 -1
  299. package/dev/flex.d.ts +1 -0
  300. package/dev/flex.d.ts.map +1 -1
  301. package/dev/flex.js +1 -0
  302. package/dev/flex.js.map +1 -1
  303. package/dev/form.d.ts +1 -0
  304. package/dev/form.d.ts.map +1 -1
  305. package/dev/form.js +1 -0
  306. package/dev/form.js.map +1 -1
  307. package/dev/grid.d.ts +1 -0
  308. package/dev/grid.d.ts.map +1 -1
  309. package/dev/grid.js +1 -0
  310. package/dev/grid.js.map +1 -1
  311. package/dev/layout.d.ts.map +1 -1
  312. package/dev/progress.d.ts.map +1 -1
  313. package/dev/router.d.ts.map +1 -1
  314. package/dev/split.d.ts +1 -1
  315. package/dev/split.d.ts.map +1 -1
  316. package/dev/typewriter.d.ts +1 -0
  317. package/dev/typewriter.d.ts.map +1 -1
  318. package/dev/typewriter.js +1 -0
  319. package/dev/typewriter.js.map +1 -1
  320. package/dialog.d.ts +1 -0
  321. package/dialog.d.ts.map +1 -1
  322. package/divider.d.ts +1 -0
  323. package/divider.d.ts.map +1 -1
  324. package/dragbox.d.ts +1 -0
  325. package/dragbox.d.ts.map +1 -1
  326. package/flex.d.ts +1 -0
  327. package/flex.d.ts.map +1 -1
  328. package/form.d.ts +1 -0
  329. package/form.d.ts.map +1 -1
  330. package/grid.d.ts +1 -0
  331. package/grid.d.ts.map +1 -1
  332. package/layout.d.ts.map +1 -1
  333. package/package.json +9 -5
  334. package/progress.d.ts.map +1 -1
  335. package/router.d.ts.map +1 -1
  336. package/split.d.ts +1 -1
  337. package/split.d.ts.map +1 -1
  338. package/src/alert.ts +2 -0
  339. package/src/avatar.ts +2 -0
  340. package/src/button.ts +2 -0
  341. package/src/card.ts +2 -0
  342. package/src/carousel.ts +2 -0
  343. package/src/components/alert.ts +18 -16
  344. package/src/components/avatar.ts +25 -11
  345. package/src/components/breath.ts +22 -10
  346. package/src/components/button.ts +21 -15
  347. package/src/components/card.ts +9 -6
  348. package/src/components/carousel.ts +36 -21
  349. package/src/components/details.ts +10 -5
  350. package/src/components/dialog.ts +19 -18
  351. package/src/components/divider.ts +19 -7
  352. package/src/components/dragbox.ts +16 -9
  353. package/src/components/flex.ts +17 -5
  354. package/src/components/form.ts +4 -4
  355. package/src/components/grid.ts +17 -5
  356. package/src/components/input.ts +5 -4
  357. package/src/components/layout.ts +15 -8
  358. package/src/components/link.ts +10 -2
  359. package/src/components/progress.ts +9 -4
  360. package/src/components/range.ts +44 -45
  361. package/src/components/rotate.ts +9 -6
  362. package/src/components/router.ts +27 -19
  363. package/src/components/select.ts +31 -20
  364. package/src/components/skeleton.ts +6 -5
  365. package/src/components/split.ts +23 -19
  366. package/src/components/switch.ts +20 -19
  367. package/src/components/text.ts +7 -9
  368. package/src/components/time.ts +12 -9
  369. package/src/components/tooltip.ts +26 -14
  370. package/src/components/typewriter.ts +19 -14
  371. package/src/core/global-style.ts +23 -4
  372. package/src/core/super-anchor.ts +11 -8
  373. package/src/core/super-input.ts +23 -21
  374. package/src/core/super-openable.ts +5 -5
  375. package/src/details.ts +2 -0
  376. package/src/dialog.ts +2 -0
  377. package/src/divider.ts +2 -0
  378. package/src/dragbox.ts +2 -0
  379. package/src/flex.ts +2 -0
  380. package/src/form.ts +2 -0
  381. package/src/grid.ts +2 -0
  382. package/src/layout.ts +1 -0
  383. package/src/progress.ts +1 -0
  384. package/src/router.ts +1 -0
  385. package/src/split.ts +1 -1
  386. package/src/typewriter.ts +2 -0
  387. package/typewriter.d.ts +1 -0
  388. package/typewriter.d.ts.map +1 -1
  389. package/vscode.html-custom-data.json +1 -1
  390. package/web-types.json +1 -1
@@ -3,7 +3,7 @@ import { styles } from "@godown/element/decorators/styles.js";
3
3
  import { htmlSlot } from "@godown/element/directives/index.js";
4
4
  import { type HandlerEvent } from "@godown/element/element.js";
5
5
  import iconEyeSlashFill from "@godown/f7-icon/icons/eye-slash-fill.js";
6
- import { css, html } from "lit";
6
+ import { css, html, type TemplateResult } from "lit";
7
7
  import { property } from "lit/decorators.js";
8
8
 
9
9
  import { cssGlobalVars, GlobalStyle } from "./global-style.js";
@@ -22,6 +22,7 @@ const fieldStyle = css`
22
22
  height: 100%;
23
23
  width: 100%;
24
24
  color: inherit;
25
+ padding: 0 var(${cssGlobalVars.input}-space);
25
26
  }
26
27
 
27
28
  .input-field:focus-within,
@@ -41,8 +42,12 @@ const fieldStyle = css`
41
42
  display: flex;
42
43
  }
43
44
 
44
- .input-field [part=space]{
45
- width: var(${cssGlobalVars.input}-space);
45
+ .input-field [part=suffix] [part=icon] {
46
+ padding-inline-end: var(${cssGlobalVars.input}-space);
47
+ }
48
+
49
+ .input-field [part=prefix] [part=icon] {
50
+ padding-inline-start: var(${cssGlobalVars.input}-space);
46
51
  }
47
52
  `;
48
53
 
@@ -76,12 +81,12 @@ input::-ms-clear {
76
81
 
77
82
  @styles(fieldStyle, inputStyle)
78
83
  class SuperInput extends GlobalStyle {
79
- autofocus: boolean;
84
+ autofocus = false;
80
85
  @property()
81
86
  autocomplete: string | boolean;
82
87
 
83
88
  @property({ type: Boolean, reflect: true })
84
- disabled: boolean;
89
+ disabled = false;
85
90
 
86
91
  @property({ reflect: true })
87
92
  type: InputType;
@@ -107,7 +112,7 @@ class SuperInput extends GlobalStyle {
107
112
  /**
108
113
  * Returns true when the input is compositing.
109
114
  */
110
- compositing: boolean;
115
+ compositing = false;
111
116
 
112
117
  set defaultValue(value: typeof this.default) {
113
118
  this.default = value;
@@ -117,20 +122,20 @@ class SuperInput extends GlobalStyle {
117
122
  return this.default;
118
123
  }
119
124
 
120
- protected makeId = Math.random().toString(36).slice(1);
125
+ protected makeId: string = Math.random().toString(36).slice(1);
121
126
 
122
127
  namevalue(): [string, any] {
123
128
  return [this.name, this.value];
124
129
  }
125
130
 
126
- nameValue = this.namevalue;
131
+ nameValue: () => [string, any] = this.namevalue;
127
132
 
128
- reset() {
133
+ reset(): void {
129
134
  this.value = this.default;
130
135
  this._input.value = this.default;
131
136
  }
132
137
 
133
- protected _handleInput(e: HandlerEvent<HTMLInputElement>) {
138
+ protected _handleInput(e: HandlerEvent<HTMLInputElement>): void {
134
139
  e.stopPropagation();
135
140
  if (this.compositing) {
136
141
  return;
@@ -146,17 +151,17 @@ class SuperInput extends GlobalStyle {
146
151
  this.dispatchEvent(new CustomEvent("change", { detail: this.value, composed: true }));
147
152
  }
148
153
 
149
- connectedCallback() {
154
+ connectedCallback(): void {
150
155
  super.connectedCallback();
151
156
  this._connectedInit();
152
157
  }
153
158
 
154
- protected _connectedInit() {
159
+ protected _connectedInit(): void {
155
160
  this.default ??= this.value || "";
156
161
  this.value ??= this.default;
157
162
  }
158
163
 
159
- protected _compositionInit() {
164
+ protected _compositionInit(): void {
160
165
  if (this._input) {
161
166
  this.events.add(this._input, "compositionstart", () => this.compositing = true);
162
167
  this.events.add(this._input, "compositionend", (e: HandlerEvent<HTMLInputElement>) => {
@@ -166,32 +171,30 @@ class SuperInput extends GlobalStyle {
166
171
  }
167
172
  }
168
173
 
169
- protected _changeInputType(t: typeof this.type) {
174
+ protected _changeInputType(t: typeof this.type): void {
170
175
  if (this._input) {
171
176
  this._input.type = t;
172
177
  }
173
178
  }
174
179
 
175
- focus(options?: FocusOptions) {
180
+ focus(options?: FocusOptions): void {
176
181
  this._input?.focus(options);
177
182
  }
178
183
 
179
- protected firstUpdated() {
184
+ protected firstUpdated(): void {
180
185
  this._compositionInit();
181
186
  }
182
187
 
183
- protected _renderPrefix() {
188
+ protected _renderPrefix(): TemplateResult<1> {
184
189
  return html`<label for=${this.makeId} part="prefix">
185
- <i part="space"></i>
186
190
  ${htmlSlot("prefix")}</label>`;
187
191
  }
188
192
 
189
- protected _renderSuffix() {
193
+ protected _renderSuffix(): TemplateResult<1> {
190
194
  const PASSWORD = "password";
191
195
  return html`<label for=${this.makeId} part="suffix">${
192
196
  this.type === "password"
193
197
  ? html`
194
- <i part="space"></i>
195
198
  <i
196
199
  part="icon"
197
200
  @mousedown="${() => this._changeInputType("text")}"
@@ -200,7 +203,6 @@ class SuperInput extends GlobalStyle {
200
203
  >${iconEyeSlashFill()}</i>`
201
204
  : htmlSlot("suffix")
202
205
  }
203
- <i part="space"></i>
204
206
  </label>`;
205
207
  }
206
208
  }
@@ -10,19 +10,19 @@ class SuperOpenable extends GlobalStyle {
10
10
  @property({ type: Boolean, reflect: true })
11
11
  open = false;
12
12
 
13
- toggle(to = !this.open) {
13
+ toggle(to: boolean = (!this.open) satisfies boolean): void {
14
14
  this.open = to;
15
15
  }
16
16
 
17
- close() {
17
+ close(): void {
18
18
  this.open = false;
19
19
  }
20
20
 
21
- show() {
21
+ show(): void {
22
22
  this.open = true;
23
23
  }
24
24
 
25
- protected updated(changedProperties: PropertyValueMap<this>) {
25
+ protected updated(changedProperties: PropertyValueMap<this>): void {
26
26
  const open = changedProperties.get("open");
27
27
  if (open !== undefined) {
28
28
  this.dispatchEvent(new CustomEvent("change", { detail: this.open }));
@@ -30,7 +30,7 @@ class SuperOpenable extends GlobalStyle {
30
30
  }
31
31
 
32
32
  // eslint-disable-next-line
33
- protected _handelClick(_: MouseEvent) {
33
+ protected _handelClick(_: MouseEvent): void {
34
34
  this.toggle();
35
35
  }
36
36
  }
package/src/details.ts CHANGED
@@ -4,6 +4,8 @@ Details.define();
4
4
 
5
5
  export default Details;
6
6
 
7
+ export * from "./components/details.js";
8
+
7
9
  declare global {
8
10
  interface HTMLElementTagNameMap {
9
11
  "godown-details": Details;
package/src/dialog.ts CHANGED
@@ -4,6 +4,8 @@ Dialog.define();
4
4
 
5
5
  export default Dialog;
6
6
 
7
+ export * from "./components/dialog.js";
8
+
7
9
  declare global {
8
10
  interface HTMLElementTagNameMap {
9
11
  "godown-dialog": Dialog;
package/src/divider.ts CHANGED
@@ -4,6 +4,8 @@ Divider.define();
4
4
 
5
5
  export default Divider;
6
6
 
7
+ export * from "./components/divider.js";
8
+
7
9
  declare global {
8
10
  interface HTMLElementTagNameMap {
9
11
  "godown-divider": Divider;
package/src/dragbox.ts CHANGED
@@ -4,6 +4,8 @@ Dragbox.define();
4
4
 
5
5
  export default Dragbox;
6
6
 
7
+ export * from "./components/dragbox.js";
8
+
7
9
  declare global {
8
10
  interface HTMLElementTagNameMap {
9
11
  "godown-dragbox": Dragbox;
package/src/flex.ts CHANGED
@@ -4,6 +4,8 @@ Flex.define();
4
4
 
5
5
  export default Flex;
6
6
 
7
+ export * from "./components/flex.js";
8
+
7
9
  declare global {
8
10
  interface HTMLElementTagNameMap {
9
11
  "godown-flex": Flex;
package/src/form.ts CHANGED
@@ -4,6 +4,8 @@ Form.define();
4
4
 
5
5
  export default Form;
6
6
 
7
+ export * from "./components/form.js";
8
+
7
9
  declare global {
8
10
  interface HTMLElementTagNameMap {
9
11
  "godown-form": Form;
package/src/grid.ts CHANGED
@@ -4,6 +4,8 @@ Grid.define();
4
4
 
5
5
  export default Grid;
6
6
 
7
+ export * from "./components/grid.js";
8
+
7
9
  declare global {
8
10
  interface HTMLElementTagNameMap {
9
11
  "godown-grid": Grid;
package/src/layout.ts CHANGED
@@ -5,6 +5,7 @@ Layout.define();
5
5
  export default Layout;
6
6
 
7
7
  export * from "./components/layout.js";
8
+
8
9
  declare global {
9
10
  interface HTMLElementTagNameMap {
10
11
  "godown-layout": Layout;
package/src/progress.ts CHANGED
@@ -5,6 +5,7 @@ Progress.define();
5
5
  export default Progress;
6
6
 
7
7
  export * from "./components/progress.js";
8
+
8
9
  declare global {
9
10
  interface HTMLElementTagNameMap {
10
11
  "godown-progress": Progress;
package/src/router.ts CHANGED
@@ -5,6 +5,7 @@ Router.define();
5
5
  export default Router;
6
6
 
7
7
  export * from "./components/router.js";
8
+
8
9
  declare global {
9
10
  interface HTMLElementTagNameMap {
10
11
  "godown-router": Router;
package/src/split.ts CHANGED
@@ -8,6 +8,6 @@ export * from "./components/split.js";
8
8
 
9
9
  declare global {
10
10
  interface HTMLElementTagNameMap {
11
- "godown-split-input": Split;
11
+ "godown-split": Split;
12
12
  }
13
13
  }
package/src/typewriter.ts CHANGED
@@ -4,6 +4,8 @@ Typewriter.define();
4
4
 
5
5
  export default Typewriter;
6
6
 
7
+ export * from "./components/typewriter.js";
8
+
7
9
  declare global {
8
10
  interface HTMLElementTagNameMap {
9
11
  "godown-typewriter": Typewriter;
package/typewriter.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import Typewriter from "./components/typewriter.js";
2
2
  export default Typewriter;
3
+ export * from "./components/typewriter.js";
3
4
  declare global {
4
5
  interface HTMLElementTagNameMap {
5
6
  "godown-typewriter": Typewriter;
@@ -1 +1 @@
1
- {"version":3,"file":"typewriter.d.ts","sourceRoot":"","sources":["src/typewriter.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,4BAA4B,CAAC;AAIpD,eAAe,UAAU,CAAC;AAE1B,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,mBAAmB,EAAE,UAAU,CAAC;KACjC;CACF"}
1
+ {"version":3,"file":"typewriter.d.ts","sourceRoot":"","sources":["src/typewriter.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,4BAA4B,CAAC;AAIpD,eAAe,UAAU,CAAC;AAE1B,cAAc,4BAA4B,CAAC;AAE3C,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,mBAAmB,EAAE,UAAU,CAAC;KACjC;CACF"}
@@ -1 +1 @@
1
- {"version":1.1,"tags":[{"name":"godown-typewriter","description":"Typewriter renders a typewriter effect to text.\n---\n### **Events:**\n ","attributes":[{"name":"text","description":"Raw text.","values":[]},{"name":"stopped","description":"Start immediately after Typewriter.firstUpdated.","values":[]},{"name":"ended","description":"If true, hide the cursor","values":[]},{"name":"max","description":"Maximum random time.","values":[]},{"name":"min","description":"Minimum random time.","values":[]},{"name":"delay","description":"Fixed time.","values":[]},{"name":"index","description":"The index at the beginning.","values":[]}],"references":[]},{"name":"godown-tooltip","description":"Tooltip provide tooltip for slot elements.\nIf it has the tip property, ignore the slot tip.\n---\n### **Events:**\n - **change**\n### **Slots:**\n - **tip** - Tip element if no `tip` provided.\n- _default_ - Content.","attributes":[{"name":"tip","description":"Tip text, if there is a value, the slot will be ignored.","values":[]},{"name":"direction","description":"Direction of opening the tip.","values":[{"name":"Direction8"}]},{"name":"align","description":"Content alignment.","values":[{"name":"center"},{"name":"flex-start"},{"name":"flex-end"},{"name":"start"},{"name":"end"}]},{"name":"propagation","description":"If true, allow penetration of the tip.","values":[]},{"name":"type","description":"How can tips be triggered.\nIf `focus`, element will be focusable, open tip when focused.\nIf `hover`, element will open tip when hovered.","values":[{"name":"hover"},{"name":"focus"}]},{"name":"open","description":"Open the content.","values":[]}],"references":[]},{"name":"godown-time","description":"Time renders a formatting time.\n---\n","attributes":[{"name":"escape","description":"Escape symbol.","values":[]},{"name":"format","description":"Format strings.","values":[]},{"name":"time","description":"Time.","values":[]},{"name":"timeout","description":"If there is a value, update every gap or timeout.","values":[]},{"name":"gap","description":"The number of milliseconds that change with each update.","values":[]}],"references":[]},{"name":"godown-text","description":"Text renders nowrap text.\n---\n","attributes":[{"name":"underline","description":"Underline behavior.","values":[{"name":"none"},{"name":"hover"},{"name":"active"},{"name":"always"}]},{"name":"clip","description":"Set background-clip to text.","values":[]}],"references":[]},{"name":"godown-switch","description":"Switch renders a switch.\nThe switch is rectangular by default,\nset the round property to rounded switch.\n---\n### **Events:**\n - **input**\n- **change**","attributes":[{"name":"round","description":"Display rounded.","values":[]},{"name":"checked","description":"Whether this element is selected or not.","values":[]},{"name":"disabled","description":"Disable this element.","values":[]},{"name":"default","description":"Default checked state.","values":[]},{"name":"value","description":"Input value.","values":[]},{"name":"autocomplete","values":[]},{"name":"type","values":[{"name":"InputType"}]},{"name":"placeholder","values":[]},{"name":"name","values":[]}],"references":[]},{"name":"godown-split-input","description":"Split renders multiple input boxes.\nInput: will move the focus box backward until the complete input from start to end.\nDelete: will move the focus box forward until the first and no inputs for each.\n---\n### **Events:**\n - **input**\n- **change**\n### **Methods:**\n ","attributes":[{"name":"len","description":"The number of input boxes.","values":[]},{"name":"index","description":"Focus index.","values":[]},{"name":"autocomplete","values":[]},{"name":"disabled","values":[]},{"name":"type","values":[{"name":"InputType"}]},{"name":"placeholder","values":[]},{"name":"name","values":[]},{"name":"value","values":[]},{"name":"default","description":"default property records the default or initial value and is used to reset the input.","values":[]}],"references":[]},{"name":"godown-skeleton","description":"Skeleton renders a skeleton screen.\n---\n### **Slots:**\n - **loading** - The content if loading is true.\n- _default_ - The content if loading is false.","attributes":[{"name":"type","description":"If \"image\", render a image placeholder.","values":[{"name":"text"},{"name":"image"}]},{"name":"animation","description":"Animation type.\nopacity animation only effect on slotted element and image icon.","values":[{"name":"position"},{"name":"opacity"}]}],"references":[]},{"name":"godown-select","description":"Select is similar to `<select>`.\nElements with the value attribute/property can be used as options.\nThe checked attribute will be added to the selected element.\nMulti-selected state looks the same as single-selected.\nInput will filter the element.\n---\n### **Events:**\n - **change**\n- **input**\n### **Slots:**\n - _default_ - Options.","attributes":[{"name":"text","description":"Selected texts.","values":[]},{"name":"direction","values":[{"name":"top"},{"name":"bottom"}]},{"name":"multiple","values":[]},{"name":"visible","values":[]},{"name":"variant","description":"If outline, the outline is always present.","values":[{"name":"default"},{"name":"outline"}]},{"name":"autocomplete","values":[]},{"name":"disabled","values":[]},{"name":"type","values":[{"name":"InputType"}]},{"name":"placeholder","values":[]},{"name":"name","values":[]},{"name":"value","values":[]},{"name":"default","description":"default property records the default or initial value and is used to reset the input.","values":[]}],"references":[]},{"name":"godown-router","description":"Router has basic routing control.\nTo switch routes, use `router-link component`.\nIt has two methods to collect routes.\n1. From field `routes`, an array, each elements require \"path\" and \"component\".\n2. From child elements, which have the slot attribute for matching routes.\nIf only the method 1 is used, set `type` to `\"field\"`.\nIf only the method 2 is used, set `type` to `\"slotted\"`.\n`type` defaults to `\"united\"`, which will try method 1, then method 2.\nIf no routes are matched, the default value (no named slot) will be rendered.\n---\n### **Events:**\n - **change**\n### **Methods:**\n - **fieldComponent(query: _string_)** - Get component from routes by query.\n- **slottedComponent(usedRouteTemplate: _string_)** - Get component from slotted elements by query.\n- **collectSlottedRoutes()** - Reset the route tree, clear cache, collect routes from child elements.\n- **collectFieldRoutes(value: _typeof this.routes_)** - Reset the route tree, clear cache, collect routes from value.\n### **Slots:**\n - _default_ - Display slot when there is no match.\n- ***** - Matching slot will be displayed.","attributes":[{"name":"pathname","description":"Current pathname (equals to location.pathname).","values":[]},{"name":"baseURL","description":"Path prefix.","values":[]},{"name":"type","description":"The type of routing sources.\nIf field, it won't collect the slot attribute of the child elements.\nThis property should not be changed after the rendering is complete.","values":[{"name":"united"},{"name":"slotted"},{"name":"field"}]},{"name":"cache","description":"Cache accessed records.\nEmptied at each re-collection.","values":[]}],"references":[]},{"name":"godown-rotate","description":"Rotate Make child elements rotate.\n---\n### **Methods:**\n - **_computeOffset(e: _MouseEvent_): __** - Compute offset.\n```\n`rotateX(${rotateX}rad) rotateY(${rotateY}rad)`\n```","attributes":[],"references":[]},{"name":"godown-range","description":"Range is similar to `<input type=\"range\">`.\nValue accepts number, or array.\nNumber has 1 handle, the array has the number of its elements and the minimum is 2.\n---\n### **Events:**\n - **input**\n- **change**\n### **Methods:**\n \n","attributes":[{"name":"min","description":"Minimum value.","values":[]},{"name":"max","description":"Maximum value.","values":[]},{"name":"step","description":"Sliding step length.","values":[]},{"name":"vertical","description":"Display vertically.","values":[]},{"name":"value","description":"Value, or each of values, will render a handle.\nAccepts number or array of numbers.","values":[]},{"name":"default","description":"The default of `this.value`.","values":[]},{"name":"autocomplete","values":[]},{"name":"disabled","values":[]},{"name":"type","values":[{"name":"InputType"}]},{"name":"placeholder","values":[]},{"name":"name","values":[]}],"references":[]},{"name":"godown-progress","description":"Progress similar to `<progress>`.\n---\n### **Methods:**\n - **parsePercent(s: _string | number_): __** - Convert s to a percentage without a percent sign.","attributes":[{"name":"max","values":[]},{"name":"min","values":[]},{"name":"value","values":[]}],"references":[]},{"name":"godown-link","description":"Link is used for link jumping.\nSet `type` to `\"push\" `or `\"replace\"`,\nwill invoke the history api and trigger the Router.updateAll.\n---\n","attributes":[{"name":"type","description":"If \"push\", call `history.pushState`.\nIf \"replace\", call `history.replaceState`.\nIf \"normal\", behave like a normal anchor.","values":[{"name":"push"},{"name":"replace"},{"name":"normal"}]},{"name":"href","description":"A element href.","values":[]},{"name":"target","description":"A element target.","values":[{"name":"_blank"},{"name":"_self"},{"name":"_parent"},{"name":"_top"}]}],"references":[]},{"name":"godown-input","description":"Input renders a text input.\n---\n### **Events:**\n - **input**\n- **change**","attributes":[{"name":"variant","description":"If outline, the outline is always present.","values":[{"name":"default"},{"name":"outline"}]},{"name":"autocomplete","values":[]},{"name":"disabled","values":[]},{"name":"type","values":[{"name":"InputType"}]},{"name":"placeholder","values":[]},{"name":"name","values":[]},{"name":"value","values":[]},{"name":"default","description":"default property records the default or initial value and is used to reset the input.","values":[]}],"references":[]},{"name":"godown-grid","description":"Grid provides gird layout.\n---\n### **Slots:**\n - _default_ - Grid items.","attributes":[{"name":"gap","description":"CSS property `gap`.","values":[]},{"name":"columns","description":"CSS property `grid-template-columns`.\nIf columns is numerical, divide columns equally.","values":[]},{"name":"rows","description":"CSS property `grid-template-rows`.\nIf rows is numerical, divide rows equally.","values":[]},{"name":"content","description":"CSS property `place-content` (`align-content justify-content`).","values":[]},{"name":"items","description":"CSS property `place-items` (`align-items justify-items`).","values":[]}],"references":[]},{"name":"godown-form","description":"Form Gets child element key-value object,\nwhich will be nested if the child element is the same as this element.\n---\n","attributes":[{"name":"name","values":[]}],"references":[]},{"name":"godown-flex","description":"Flex provides flex layout.\n---\n### **Slots:**\n - _default_ - Flex items.","attributes":[{"name":"flex-flow","description":"CSS property `flex-flow` (`flex-direction flex-wrap`).","values":[]},{"name":"gap","description":"CSS property `gap`.","values":[]},{"name":"content","description":"CSS property `justify-content`.","values":[]},{"name":"items","description":"CSS property `align-items`.","values":[]},{"name":"vertical","description":"If true, set flex-direction to \"column\".","values":[]}],"references":[]},{"name":"godown-dragbox","description":"Dragbox does not extend beyond the range of Dragbox.offsetsWidth and Dragbox.offsetsHeight.\n---\n","attributes":[{"name":"x","description":"Position x.","values":[]},{"name":"y","description":"Position y.","values":[]}],"references":[]},{"name":"godown-divider","description":"Divider similar to `<hr>`.\nThis component does not render content.\n---\n","attributes":[{"name":"vertical","description":"Vertical display.","values":[]}],"references":[]},{"name":"godown-dialog","description":"Dialog similar to `<dialog>`.\nLike dialog, it listens for submit events and closes itself when the target method is \"dialog\".\nIt listens for the keydown event and also closes itself when the key contained in the key is pressed.\n---\n### **Events:**\n - **change**","attributes":[{"name":"direction","description":"Direction of the opening animation.","values":[{"name":"Direction9"}]},{"name":"modal","description":"Enable modal, blocking event penetration.","values":[]},{"name":"key","description":"Close key.","values":[]},{"name":"open","description":"Open the content.","values":[]}],"references":[]},{"name":"godown-details","description":"Details similar to `<details>`.\n---\n### **Events:**\n - **change** - Fired when the details is toggled.\n### **Slots:**\n - **summary** - Details summary if no `summary` is provided.\n- _default_ - Details content.","attributes":[{"name":"fill","description":"If it is true, the summary event scope will fill the element.","values":[]},{"name":"summary","description":"Summary text.","values":[]},{"name":"open","description":"Open the content.","values":[]}],"references":[]},{"name":"godown-carousel","description":"Carousel make the content display as a carousel.\nWhen this component is `firstUpdated`,\nclone the first and last element and make the matching element visible when switching index.\nChild elements should maintain the same size.\nIf no width, it will be the width of the first element.\n---\n### **Slots:**\n - _default_ - Carousel items, should maintain the same size.","attributes":[{"name":"index","description":"The index of the element is displayed for the first time.","values":[]},{"name":"autoChange","description":"If autoChange > 0, the rotation will be automated.","values":[]},{"name":"width","description":"Element width.","values":[]}],"references":[]},{"name":"godown-card","description":"Card renders a card.\nThis may be similar to Layout,\nbut it needs to be specified to enable header and footer.\n---\n### **Slots:**\n - _default_ - The main content of the card.\n- **header** - The header of the card.\n- **footer** - The footer of the card.","attributes":[{"name":"footer","values":[]},{"name":"header","values":[]}],"references":[]},{"name":"godown-button","description":"Button renders a button.\nCreate modal animation upon clicking.\nAvailable colors (background): none, black, gray, white, blue, green, red, orange, pink, purple, yellow, teal.\nDefault color is `black`.\nSet the color to `none` to prevent applying styles.\n---\n","attributes":[{"name":"disabled","description":"Whether to disable this element.","values":[]},{"name":"ghost","description":"Display ghost.","values":[]},{"name":"active","description":"Whether this element is active or not.","values":[]},{"name":"round","description":"Display rounded.","values":[]},{"name":"color","description":"The primary color.","values":[{"name":"none"},{"name":"keyof typeof colors"}]},{"name":"content","description":"Content text.","values":[]}],"references":[]},{"name":"godown-breath","description":"Breath render the text with a breathing effect.\nDynamically generate a breathing effect based on the length of the split text.\nIf there is not enough CSS variable, overrun elements will use the.\ngodown was a css library in its earliest days,\nand this is the component version of its first effect.\nInspired by Vercel home page (2023).\n---\n### **Slots:**\n - _default_ - Breathing parts.","attributes":[{"name":"text","description":"Strings or array of strings,\nif array, divided each element into chunks,\notherwise split strings by whitespace.","values":[{"name":"string[]"}]},{"name":"duration","description":"Effect duration, ending in s or ms.","values":[]}],"references":[]},{"name":"godown-avatar","description":"Avatar renders a avatar.\nRenders as an image if it has a src property,\notherwise falls back to name or nameless slot.\n---\n### **Slots:**\n - _default_ - Display content if no `src` or `name` provided.","attributes":[{"name":"src","description":"Image src.","values":[]},{"name":"name","description":"If the image is not available, display name (call Avatar.format).","values":[]},{"name":"round","description":"Display rounded.","values":[]}],"references":[]},{"name":"godown-alert","description":"Alert renders a alert.\nColor defaults to blue.\n---\n### **Events:**\n - **close**\n### **Slots:**\n - _default_ - Alert content.\n- **title** - Alert title.\n- **icon** - Alert icon.","attributes":[{"name":"call","description":"If it is a legal value, the icon and preset color will be rendered.","values":[{"name":"tip"},{"name":"success"},{"name":"info"},{"name":"warning"},{"name":"danger"},{"name":"error"},{"name":"help"},{"name":"deprecated"}]},{"name":"color","description":"The tone of the component.\nOverrides the color of the call.","values":[{"name":""},{"name":"white"},{"name":"black"},{"name":"gray"},{"name":"green"},{"name":"teal"},{"name":"blue"},{"name":"red"},{"name":"purple"},{"name":"orange"},{"name":"yellow"},{"name":"pink"},{"name":"none"}]},{"name":"autoclose","description":"Close delay, if 0, it will not be closed automatically.","values":[]},{"name":"title","description":"The title is bold and the icon height is the same as it.","values":[]},{"name":"content","description":"Content, if zero value, will be rendered as an unnamed slot.","values":[]},{"name":"hideClose","description":"Set true to hide the close button.\nThe behavior may change due to the variant property.","values":[]},{"name":"variant","description":"Alert variant, if set to `blockquote`, the alert will be rendered as a blockquote.\nIf variant is `\"blockquote\"`, hide the close button.","values":[{"name":"blockquote"},{"name":"dark"},{"name":"light"}]}],"references":[]}]}
1
+ {"version":1.1,"tags":[{"name":"godown-typewriter","description":"Typewriter renders a typewriter effect to text.\n---\n### **Events:**\n ","attributes":[{"name":"text","description":"Raw text.","values":[]},{"name":"stopped","description":"Start immediately after Typewriter.firstUpdated.","values":[]},{"name":"ended","description":"If true, hide the cursor","values":[]},{"name":"max","description":"Maximum random time.","values":[]},{"name":"min","description":"Minimum random time.","values":[]},{"name":"delay","description":"Fixed time.","values":[]},{"name":"index","description":"The index at the beginning.","values":[]}],"references":[]},{"name":"godown-tooltip","description":"Tooltip provide tooltip for slot elements.\nIf it has the tip property, ignore the slot tip.\n---\n### **Events:**\n - **change**\n### **Slots:**\n - **tip** - Tip element if no `tip` provided.\n- _default_ - Content.","attributes":[{"name":"tip","description":"Tip text, if there is a value, the slot will be ignored.","values":[]},{"name":"direction","description":"Direction of opening the tip.","values":[{"name":"Direction8"}]},{"name":"align","description":"Content alignment.","values":[{"name":"center"},{"name":"flex-start"},{"name":"flex-end"},{"name":"start"},{"name":"end"}]},{"name":"propagation","description":"If true, allow penetration of the tip.","values":[]},{"name":"type","description":"How can tips be triggered.\nIf `focus`, element will be focusable, open tip when focused.\nIf `hover`, element will open tip when hovered.","values":[{"name":"hover"},{"name":"focus"}]},{"name":"open","description":"Open the content.","values":[]}],"references":[]},{"name":"godown-time","description":"Time renders a formatting time.\n---\n","attributes":[{"name":"escape","description":"Escape symbol.","values":[]},{"name":"format","description":"Format strings.","values":[]},{"name":"time","description":"Time.","values":[{"name":"Date"}]},{"name":"timeout","description":"If there is a value, update every gap or timeout.","values":[]},{"name":"gap","description":"The number of milliseconds that change with each update.","values":[]}],"references":[]},{"name":"godown-text","description":"Text renders nowrap text.\n---\n","attributes":[{"name":"underline","description":"Underline behavior.","values":[{"name":"none"},{"name":"hover"},{"name":"active"},{"name":"always"}]},{"name":"clip","description":"Set background-clip to text.","values":[]}],"references":[]},{"name":"godown-switch","description":"Switch renders a switch.\nThe switch is rectangular by default,\nset the round property to rounded switch.\n---\n### **Events:**\n - **input**\n- **change**","attributes":[{"name":"round","description":"Display rounded.","values":[]},{"name":"checked","description":"Whether this element is selected or not.","values":[]},{"name":"disabled","description":"Disable this element.","values":[]},{"name":"default","description":"Default checked state.","values":[]},{"name":"value","description":"Input value.","values":[]},{"name":"autocomplete","values":[]},{"name":"type","values":[{"name":"InputType"}]},{"name":"placeholder","values":[]},{"name":"name","values":[]}],"references":[]},{"name":"godown-split","description":"Split renders multiple input boxes.\nInput: will move the focus box backward until the complete input from start to end.\nDelete: will move the focus box forward until the first and no inputs for each.\n---\n### **Events:**\n - **input**\n- **change**\n### **Methods:**\n ","attributes":[{"name":"len","description":"The number of input boxes.","values":[]},{"name":"index","description":"Focus index.","values":[]},{"name":"autocomplete","values":[]},{"name":"disabled","values":[]},{"name":"type","values":[{"name":"InputType"}]},{"name":"placeholder","values":[]},{"name":"name","values":[]},{"name":"value","values":[]},{"name":"default","description":"default property records the default or initial value and is used to reset the input.","values":[]}],"references":[]},{"name":"godown-skeleton","description":"Skeleton renders a skeleton screen.\n---\n### **Slots:**\n - **loading** - The content if loading is true.\n- _default_ - The content if loading is false.","attributes":[{"name":"type","description":"If \"image\", render a image placeholder.","values":[{"name":"text"},{"name":"image"}]},{"name":"animation","description":"Animation type.\nopacity animation only effect on slotted element and image icon.","values":[{"name":"position"},{"name":"opacity"}]}],"references":[]},{"name":"godown-select","description":"Select is similar to `<select>`.\nElements with the value attribute/property can be used as options.\nThe checked attribute will be added to the selected element.\nMulti-selected state looks the same as single-selected.\nInput will filter the element.\n---\n### **Events:**\n - **change**\n- **input**\n### **Slots:**\n - _default_ - Options.","attributes":[{"name":"text","description":"Selected texts.","values":[]},{"name":"direction","values":[{"name":"top"},{"name":"bottom"}]},{"name":"multiple","values":[]},{"name":"visible","values":[]},{"name":"variant","description":"If outline, the outline is always present.","values":[{"name":"default"},{"name":"outline"}]},{"name":"autocomplete","values":[]},{"name":"disabled","values":[]},{"name":"type","values":[{"name":"InputType"}]},{"name":"placeholder","values":[]},{"name":"name","values":[]},{"name":"value","values":[]},{"name":"default","description":"default property records the default or initial value and is used to reset the input.","values":[]}],"references":[]},{"name":"godown-router","description":"Router has basic routing control.\nTo switch routes, use `router-link component`.\nIt has two methods to collect routes.\n1. From field `routes`, an array, each elements require \"path\" and \"component\".\n2. From child elements, which have the slot attribute for matching routes.\nIf only the method 1 is used, set `type` to `\"field\"`.\nIf only the method 2 is used, set `type` to `\"slotted\"`.\n`type` defaults to `\"united\"`, which will try method 1, then method 2.\nIf no routes are matched, the default value (no named slot) will be rendered.\n---\n### **Events:**\n - **change**\n### **Methods:**\n - **fieldComponent(query: _string_): _unknown_** - Get component from routes by query.\n- **slottedComponent(usedRouteTemplate: _string_): _TemplateResult<1>_** - Get component from slotted elements by query.\n- **collectSlottedRoutes(): _void_** - Reset the route tree, clear cache, collect routes from child elements.\n- **collectFieldRoutes(value: _typeof this.routes_): _void_** - Reset the route tree, clear cache, collect routes from value.\n### **Slots:**\n - _default_ - Display slot when there is no match.\n- ***** - Matching slot will be displayed.","attributes":[{"name":"pathname","description":"Current pathname (equals to location.pathname).","values":[]},{"name":"baseURL","description":"Path prefix.","values":[]},{"name":"type","description":"The type of routing sources.\nIf field, it won't collect the slot attribute of the child elements.\nThis property should not be changed after the rendering is complete.","values":[{"name":"united"},{"name":"slotted"},{"name":"field"}]},{"name":"cache","description":"Cache accessed records.\nEmptied at each re-collection.","values":[]}],"references":[]},{"name":"godown-rotate","description":"Rotate Make child elements rotate.\n---\n### **Methods:**\n - **_computeOffset(e: _MouseEvent_): __** - Compute offset.\n```\n`rotateX(${rotateX}rad) rotateY(${rotateY}rad)`\n```","attributes":[],"references":[]},{"name":"godown-range","description":"Range is similar to `<input type=\"range\">`.\nValue accepts number, or array.\nNumber has 1 handle, the array has the number of its elements and the minimum is 2.\n---\n### **Events:**\n - **input**\n- **change**\n### **Methods:**\n \n","attributes":[{"name":"min","description":"Minimum value.","values":[]},{"name":"max","description":"Maximum value.","values":[]},{"name":"step","description":"Sliding step length.","values":[]},{"name":"vertical","description":"Display vertically.","values":[]},{"name":"value","description":"Value, or each of values, will render a handle.\nAccepts number or array of numbers.","values":[]},{"name":"default","description":"The default of `this.value`.","values":[]},{"name":"autocomplete","values":[]},{"name":"disabled","values":[]},{"name":"type","values":[{"name":"InputType"}]},{"name":"placeholder","values":[]},{"name":"name","values":[]}],"references":[]},{"name":"godown-progress","description":"Progress similar to `<progress>`.\n---\n### **Methods:**\n - **parsePercent(s: _string | number_): __** - Convert s to a percentage without a percent sign.","attributes":[{"name":"max","values":[]},{"name":"min","values":[]},{"name":"value","values":[]}],"references":[]},{"name":"godown-link","description":"Link is used for link jumping.\nSet `type` to `\"push\" `or `\"replace\"`,\nwill invoke the history api and trigger the Router.updateAll.\n---\n","attributes":[{"name":"type","description":"If \"push\", call `history.pushState`.\nIf \"replace\", call `history.replaceState`.\nIf \"normal\", behave like a normal anchor.","values":[{"name":"push"},{"name":"replace"},{"name":"normal"}]},{"name":"suppress","description":"Suppress the update of the Router.","values":[]},{"name":"href","description":"A element href.","values":[]},{"name":"target","description":"A element target.","values":[{"name":"_blank"},{"name":"_self"},{"name":"_parent"},{"name":"_top"}]}],"references":[]},{"name":"godown-input","description":"Input renders a text input.\n---\n### **Events:**\n - **input**\n- **change**","attributes":[{"name":"variant","description":"If outline, the outline is always present.","values":[{"name":"default"},{"name":"outline"}]},{"name":"autocomplete","values":[]},{"name":"disabled","values":[]},{"name":"type","values":[{"name":"InputType"}]},{"name":"placeholder","values":[]},{"name":"name","values":[]},{"name":"value","values":[]},{"name":"default","description":"default property records the default or initial value and is used to reset the input.","values":[]}],"references":[]},{"name":"godown-grid","description":"Grid provides gird layout.\n---\n### **Slots:**\n - _default_ - Grid items.","attributes":[{"name":"gap","description":"CSS property `gap`.","values":[]},{"name":"columns","description":"CSS property `grid-template-columns`.\nIf columns is numerical, divide columns equally.","values":[]},{"name":"rows","description":"CSS property `grid-template-rows`.\nIf rows is numerical, divide rows equally.","values":[]},{"name":"content","description":"CSS property `place-content` (`align-content justify-content`).","values":[]},{"name":"items","description":"CSS property `place-items` (`align-items justify-items`).","values":[]}],"references":[]},{"name":"godown-form","description":"Form Gets child element key-value object,\nwhich will be nested if the child element is the same as this element.\n---\n","attributes":[{"name":"name","values":[]}],"references":[]},{"name":"godown-flex","description":"Flex provides flex layout.\n---\n### **Slots:**\n - _default_ - Flex items.","attributes":[{"name":"flex-flow","description":"CSS property `flex-flow` (`flex-direction flex-wrap`).","values":[]},{"name":"gap","description":"CSS property `gap`.","values":[]},{"name":"content","description":"CSS property `justify-content`.","values":[]},{"name":"items","description":"CSS property `align-items`.","values":[]},{"name":"vertical","description":"If true, set flex-direction to \"column\".","values":[]}],"references":[]},{"name":"godown-dragbox","description":"Dragbox does not extend beyond the range of Dragbox.offsetsWidth and Dragbox.offsetsHeight.\n---\n","attributes":[{"name":"x","description":"Position x.","values":[]},{"name":"y","description":"Position y.","values":[]}],"references":[]},{"name":"godown-divider","description":"Divider similar to `<hr>`.\n---\n","attributes":[{"name":"vertical","description":"Vertical display.","values":[]}],"references":[]},{"name":"godown-dialog","description":"Dialog similar to `<dialog>`.\nLike dialog, it listens for submit events and closes itself when the target method is \"dialog\".\nIt listens for the keydown event and also closes itself when the key contained in the key is pressed.\n---\n### **Events:**\n - **change**","attributes":[{"name":"direction","description":"Direction of the opening animation.","values":[{"name":"Direction9"}]},{"name":"modal","description":"Enable modal, blocking event penetration.","values":[]},{"name":"key","description":"Close key.","values":[]},{"name":"open","description":"Open the content.","values":[]}],"references":[]},{"name":"godown-details","description":"Details similar to `<details>`.\n---\n### **Events:**\n - **change** - Fired when the details is toggled.\n### **Slots:**\n - **summary** - Details summary if no `summary` is provided.\n- _default_ - Details content.","attributes":[{"name":"fill","description":"If it is true, the summary event scope will fill the element.","values":[]},{"name":"summary","description":"Summary text.","values":[]},{"name":"open","description":"Open the content.","values":[]}],"references":[]},{"name":"godown-carousel","description":"Carousel make the content display as a carousel.\nWhen this component is `firstUpdated`,\nclone the first and last element and make the matching element visible when switching index.\nChild elements should maintain the same size.\nIf no width, it will be the width of the first element.\n---\n### **Slots:**\n - _default_ - Carousel items, should maintain the same size.","attributes":[{"name":"index","description":"The index of the element is displayed for the first time.","values":[]},{"name":"autoChange","description":"If autoChange > 0, the rotation will be automated.","values":[]},{"name":"width","description":"Element width.","values":[]}],"references":[]},{"name":"godown-card","description":"Card renders a card.\nThis may be similar to Layout,\nbut it needs to be specified to enable header and footer.\n---\n### **Slots:**\n - _default_ - The main content of the card.\n- **header** - The header of the card.\n- **footer** - The footer of the card.","attributes":[{"name":"footer","values":[]},{"name":"header","values":[]}],"references":[]},{"name":"godown-button","description":"Button renders a button.\nCreate modal animation upon clicking.\nAvailable colors (background): none, black, gray, white, blue, green, red, orange, pink, purple, yellow, teal.\nDefault color is `black`.\nSet the color to `none` to prevent applying styles.\n---\n","attributes":[{"name":"disabled","description":"Whether to disable this element.","values":[]},{"name":"ghost","description":"Display ghost.","values":[]},{"name":"active","description":"Whether this element is active or not.","values":[]},{"name":"round","description":"Display rounded.","values":[]},{"name":"color","description":"The primary color.","values":[{"name":"none"},{"name":"keyof typeof colors"}]},{"name":"content","description":"Content text.","values":[]}],"references":[]},{"name":"godown-breath","description":"Breath render the text with a breathing effect.\nDynamically generate a breathing effect based on the length of the split text.\nIf there is not enough CSS variable, overrun elements will use the.\ngodown was a css library in its earliest days,\nand this is the component version of its first effect.\nInspired by Vercel home page (2023).\n---\n### **Slots:**\n - _default_ - Breathing parts.","attributes":[{"name":"text","description":"Strings or array of strings,\nif array, divided each element into chunks,\notherwise split strings by whitespace.","values":[{"name":"string[]"}]},{"name":"duration","description":"Effect duration, ending in s or ms.","values":[]}],"references":[]},{"name":"godown-avatar","description":"Avatar renders a avatar.\nRenders as an image if it has a src property,\notherwise falls back to name or nameless slot.\n---\n### **Slots:**\n - _default_ - Display content if no `src` or `name` provided.","attributes":[{"name":"src","description":"Image src.","values":[]},{"name":"name","description":"If the image is not available, display name (call Avatar.format).","values":[]},{"name":"round","description":"Display rounded.","values":[]}],"references":[]},{"name":"godown-alert","description":"Alert renders a alert.\nColor defaults to blue.\n---\n### **Events:**\n - **close**\n### **Slots:**\n - _default_ - Alert content.\n- **title** - Alert title.\n- **icon** - Alert icon.","attributes":[{"name":"call","description":"If it is a legal value, the icon and preset color will be rendered.","values":[{"name":"tip"},{"name":"success"},{"name":"info"},{"name":"warning"},{"name":"danger"},{"name":"error"},{"name":"help"},{"name":"deprecated"}]},{"name":"color","description":"The tone of the component.\nOverrides the color of the call.","values":[{"name":""},{"name":"white"},{"name":"black"},{"name":"gray"},{"name":"green"},{"name":"teal"},{"name":"blue"},{"name":"red"},{"name":"purple"},{"name":"orange"},{"name":"yellow"},{"name":"pink"},{"name":"none"}]},{"name":"autoclose","description":"Close delay, if 0, it will not be closed automatically.","values":[]},{"name":"title","description":"The title is bold and the icon height is the same as it.","values":[]},{"name":"content","description":"Content, if zero value, will be rendered as an unnamed slot.","values":[]},{"name":"hideClose","description":"Set true to hide the close button.\nThe behavior may change due to the variant property.","values":[]},{"name":"variant","description":"Alert variant, if set to `blockquote`, the alert will be rendered as a blockquote.\nIf variant is `\"blockquote\"`, hide the close button.","values":[{"name":"blockquote"},{"name":"dark"},{"name":"light"}]}],"references":[]}]}