godown 3.5.0 → 3.5.2

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 (312) hide show
  1. package/README.md +0 -4
  2. package/build/godown+lit.iife.js +2 -2
  3. package/build/godown+lit.iife.js.map +1 -1
  4. package/build/godown+lit.js +2 -2
  5. package/build/godown+lit.js.map +1 -1
  6. package/build/godown+lit.umd.js +2 -2
  7. package/build/godown+lit.umd.js.map +1 -1
  8. package/build/godown.iife.js +2 -2
  9. package/build/godown.js +2 -2
  10. package/build/godown.js.map +1 -1
  11. package/build/godown.umd.js +2 -2
  12. package/build/godown.umd.js.map +1 -1
  13. package/components/badge.js +1 -1
  14. package/components/badge.js.map +1 -1
  15. package/components/button.js +1 -1
  16. package/components/button.js.map +1 -1
  17. package/components/details.js +1 -1
  18. package/components/details.js.map +1 -1
  19. package/components/dialog.js +1 -1
  20. package/components/dialog.js.map +1 -1
  21. package/components/input.js +1 -1
  22. package/components/input.js.map +1 -1
  23. package/components/select.d.ts.map +1 -1
  24. package/components/select.js +1 -1
  25. package/components/select.js.map +1 -1
  26. package/core/super-input.d.ts +1 -0
  27. package/core/super-input.d.ts.map +1 -1
  28. package/core/super-input.js +1 -1
  29. package/core/super-input.js.map +1 -1
  30. package/core/super-openable.d.ts +0 -1
  31. package/core/super-openable.d.ts.map +1 -1
  32. package/core/super-openable.js +1 -1
  33. package/core/super-openable.js.map +1 -1
  34. package/custom-elements.json +1 -1
  35. package/package.json +6 -18
  36. package/src/components/button.ts +2 -3
  37. package/src/components/details.ts +1 -1
  38. package/src/components/dialog.ts +4 -6
  39. package/src/components/input.ts +1 -0
  40. package/src/components/select.ts +1 -1
  41. package/src/core/super-input.ts +6 -11
  42. package/src/core/super-openable.ts +0 -4
  43. package/tsconfig.json +33 -0
  44. package/web-types.json +1 -1
  45. package/dev/alert.d.ts +0 -9
  46. package/dev/alert.d.ts.map +0 -1
  47. package/dev/alert.js +0 -5
  48. package/dev/alert.js.map +0 -1
  49. package/dev/avatar.d.ts +0 -9
  50. package/dev/avatar.d.ts.map +0 -1
  51. package/dev/avatar.js +0 -5
  52. package/dev/avatar.js.map +0 -1
  53. package/dev/badge.d.ts +0 -9
  54. package/dev/badge.d.ts.map +0 -1
  55. package/dev/badge.js +0 -5
  56. package/dev/badge.js.map +0 -1
  57. package/dev/breath.d.ts +0 -9
  58. package/dev/breath.d.ts.map +0 -1
  59. package/dev/breath.js +0 -5
  60. package/dev/breath.js.map +0 -1
  61. package/dev/button.d.ts +0 -9
  62. package/dev/button.d.ts.map +0 -1
  63. package/dev/button.js +0 -5
  64. package/dev/button.js.map +0 -1
  65. package/dev/card.d.ts +0 -9
  66. package/dev/card.d.ts.map +0 -1
  67. package/dev/card.js +0 -5
  68. package/dev/card.js.map +0 -1
  69. package/dev/carousel.d.ts +0 -9
  70. package/dev/carousel.d.ts.map +0 -1
  71. package/dev/carousel.js +0 -5
  72. package/dev/carousel.js.map +0 -1
  73. package/dev/components/alert.d.ts +0 -55
  74. package/dev/components/alert.d.ts.map +0 -1
  75. package/dev/components/alert.js +0 -236
  76. package/dev/components/alert.js.map +0 -1
  77. package/dev/components/avatar.d.ts +0 -33
  78. package/dev/components/avatar.d.ts.map +0 -1
  79. package/dev/components/avatar.js +0 -119
  80. package/dev/components/avatar.js.map +0 -1
  81. package/dev/components/badge.d.ts +0 -31
  82. package/dev/components/badge.d.ts.map +0 -1
  83. package/dev/components/badge.js +0 -122
  84. package/dev/components/badge.js.map +0 -1
  85. package/dev/components/breath.d.ts +0 -36
  86. package/dev/components/breath.d.ts.map +0 -1
  87. package/dev/components/breath.js +0 -135
  88. package/dev/components/breath.js.map +0 -1
  89. package/dev/components/button.d.ts +0 -60
  90. package/dev/components/button.d.ts.map +0 -1
  91. package/dev/components/button.js +0 -288
  92. package/dev/components/button.js.map +0 -1
  93. package/dev/components/card.d.ts +0 -27
  94. package/dev/components/card.d.ts.map +0 -1
  95. package/dev/components/card.js +0 -87
  96. package/dev/components/card.js.map +0 -1
  97. package/dev/components/carousel.d.ts +0 -39
  98. package/dev/components/carousel.d.ts.map +0 -1
  99. package/dev/components/carousel.js +0 -184
  100. package/dev/components/carousel.js.map +0 -1
  101. package/dev/components/details.d.ts +0 -24
  102. package/dev/components/details.d.ts.map +0 -1
  103. package/dev/components/details.js +0 -124
  104. package/dev/components/details.js.map +0 -1
  105. package/dev/components/dialog.d.ts +0 -43
  106. package/dev/components/dialog.d.ts.map +0 -1
  107. package/dev/components/dialog.js +0 -154
  108. package/dev/components/dialog.js.map +0 -1
  109. package/dev/components/divider.d.ts +0 -17
  110. package/dev/components/divider.d.ts.map +0 -1
  111. package/dev/components/divider.js +0 -64
  112. package/dev/components/divider.js.map +0 -1
  113. package/dev/components/dragbox.d.ts +0 -42
  114. package/dev/components/dragbox.d.ts.map +0 -1
  115. package/dev/components/dragbox.js +0 -126
  116. package/dev/components/dragbox.js.map +0 -1
  117. package/dev/components/flex.d.ts +0 -34
  118. package/dev/components/flex.d.ts.map +0 -1
  119. package/dev/components/flex.js +0 -73
  120. package/dev/components/flex.js.map +0 -1
  121. package/dev/components/form.d.ts +0 -24
  122. package/dev/components/form.d.ts.map +0 -1
  123. package/dev/components/form.js +0 -76
  124. package/dev/components/form.js.map +0 -1
  125. package/dev/components/grid.d.ts +0 -38
  126. package/dev/components/grid.d.ts.map +0 -1
  127. package/dev/components/grid.js +0 -67
  128. package/dev/components/grid.js.map +0 -1
  129. package/dev/components/heading.d.ts +0 -31
  130. package/dev/components/heading.d.ts.map +0 -1
  131. package/dev/components/heading.js +0 -127
  132. package/dev/components/heading.js.map +0 -1
  133. package/dev/components/input.d.ts +0 -23
  134. package/dev/components/input.d.ts.map +0 -1
  135. package/dev/components/input.js +0 -99
  136. package/dev/components/input.js.map +0 -1
  137. package/dev/components/layout.d.ts +0 -28
  138. package/dev/components/layout.d.ts.map +0 -1
  139. package/dev/components/layout.js +0 -96
  140. package/dev/components/layout.js.map +0 -1
  141. package/dev/components/link.d.ts +0 -54
  142. package/dev/components/link.d.ts.map +0 -1
  143. package/dev/components/link.js +0 -110
  144. package/dev/components/link.js.map +0 -1
  145. package/dev/components/progress.d.ts +0 -16
  146. package/dev/components/progress.d.ts.map +0 -1
  147. package/dev/components/progress.js +0 -101
  148. package/dev/components/progress.js.map +0 -1
  149. package/dev/components/range.d.ts +0 -122
  150. package/dev/components/range.d.ts.map +0 -1
  151. package/dev/components/range.js +0 -391
  152. package/dev/components/range.js.map +0 -1
  153. package/dev/components/rotate.d.ts +0 -30
  154. package/dev/components/rotate.d.ts.map +0 -1
  155. package/dev/components/rotate.js +0 -93
  156. package/dev/components/rotate.js.map +0 -1
  157. package/dev/components/router.d.ts +0 -116
  158. package/dev/components/router.d.ts.map +0 -1
  159. package/dev/components/router.js +0 -240
  160. package/dev/components/router.js.map +0 -1
  161. package/dev/components/select.d.ts +0 -53
  162. package/dev/components/select.d.ts.map +0 -1
  163. package/dev/components/select.js +0 -269
  164. package/dev/components/select.js.map +0 -1
  165. package/dev/components/skeleton.d.ts +0 -28
  166. package/dev/components/skeleton.d.ts.map +0 -1
  167. package/dev/components/skeleton.js +0 -122
  168. package/dev/components/skeleton.js.map +0 -1
  169. package/dev/components/split.d.ts +0 -56
  170. package/dev/components/split.d.ts.map +0 -1
  171. package/dev/components/split.js +0 -220
  172. package/dev/components/split.js.map +0 -1
  173. package/dev/components/switch.d.ts +0 -32
  174. package/dev/components/switch.d.ts.map +0 -1
  175. package/dev/components/switch.js +0 -147
  176. package/dev/components/switch.js.map +0 -1
  177. package/dev/components/text.d.ts +0 -21
  178. package/dev/components/text.d.ts.map +0 -1
  179. package/dev/components/text.js +0 -96
  180. package/dev/components/text.js.map +0 -1
  181. package/dev/components/time.d.ts +0 -36
  182. package/dev/components/time.d.ts.map +0 -1
  183. package/dev/components/time.js +0 -75
  184. package/dev/components/time.js.map +0 -1
  185. package/dev/components/tooltip.d.ts +0 -51
  186. package/dev/components/tooltip.d.ts.map +0 -1
  187. package/dev/components/tooltip.js +0 -140
  188. package/dev/components/tooltip.js.map +0 -1
  189. package/dev/components/typewriter.d.ts +0 -49
  190. package/dev/components/typewriter.d.ts.map +0 -1
  191. package/dev/components/typewriter.js +0 -149
  192. package/dev/components/typewriter.js.map +0 -1
  193. package/dev/core/direction.d.ts +0 -27
  194. package/dev/core/direction.d.ts.map +0 -1
  195. package/dev/core/direction.js +0 -56
  196. package/dev/core/direction.js.map +0 -1
  197. package/dev/core/global-style.d.ts +0 -20
  198. package/dev/core/global-style.d.ts.map +0 -1
  199. package/dev/core/global-style.js +0 -82
  200. package/dev/core/global-style.js.map +0 -1
  201. package/dev/core/outline.d.ts +0 -20
  202. package/dev/core/outline.d.ts.map +0 -1
  203. package/dev/core/outline.js +0 -44
  204. package/dev/core/outline.js.map +0 -1
  205. package/dev/core/super-anchor.d.ts +0 -18
  206. package/dev/core/super-anchor.d.ts.map +0 -1
  207. package/dev/core/super-anchor.js +0 -60
  208. package/dev/core/super-anchor.js.map +0 -1
  209. package/dev/core/super-input.d.ts +0 -43
  210. package/dev/core/super-input.d.ts.map +0 -1
  211. package/dev/core/super-input.js +0 -203
  212. package/dev/core/super-input.js.map +0 -1
  213. package/dev/core/super-openable.d.ts +0 -16
  214. package/dev/core/super-openable.d.ts.map +0 -1
  215. package/dev/core/super-openable.js +0 -36
  216. package/dev/core/super-openable.js.map +0 -1
  217. package/dev/details.d.ts +0 -9
  218. package/dev/details.d.ts.map +0 -1
  219. package/dev/details.js +0 -5
  220. package/dev/details.js.map +0 -1
  221. package/dev/dialog.d.ts +0 -9
  222. package/dev/dialog.d.ts.map +0 -1
  223. package/dev/dialog.js +0 -5
  224. package/dev/dialog.js.map +0 -1
  225. package/dev/divider.d.ts +0 -9
  226. package/dev/divider.d.ts.map +0 -1
  227. package/dev/divider.js +0 -5
  228. package/dev/divider.js.map +0 -1
  229. package/dev/dragbox.d.ts +0 -9
  230. package/dev/dragbox.d.ts.map +0 -1
  231. package/dev/dragbox.js +0 -5
  232. package/dev/dragbox.js.map +0 -1
  233. package/dev/flex.d.ts +0 -9
  234. package/dev/flex.d.ts.map +0 -1
  235. package/dev/flex.js +0 -5
  236. package/dev/flex.js.map +0 -1
  237. package/dev/form.d.ts +0 -9
  238. package/dev/form.d.ts.map +0 -1
  239. package/dev/form.js +0 -5
  240. package/dev/form.js.map +0 -1
  241. package/dev/grid.d.ts +0 -9
  242. package/dev/grid.d.ts.map +0 -1
  243. package/dev/grid.js +0 -5
  244. package/dev/grid.js.map +0 -1
  245. package/dev/heading.d.ts +0 -9
  246. package/dev/heading.d.ts.map +0 -1
  247. package/dev/heading.js +0 -5
  248. package/dev/heading.js.map +0 -1
  249. package/dev/index.d.ts +0 -31
  250. package/dev/index.d.ts.map +0 -1
  251. package/dev/index.js +0 -31
  252. package/dev/index.js.map +0 -1
  253. package/dev/input.d.ts +0 -9
  254. package/dev/input.d.ts.map +0 -1
  255. package/dev/input.js +0 -5
  256. package/dev/input.js.map +0 -1
  257. package/dev/layout.d.ts +0 -9
  258. package/dev/layout.d.ts.map +0 -1
  259. package/dev/layout.js +0 -5
  260. package/dev/layout.js.map +0 -1
  261. package/dev/link.d.ts +0 -9
  262. package/dev/link.d.ts.map +0 -1
  263. package/dev/link.js +0 -5
  264. package/dev/link.js.map +0 -1
  265. package/dev/progress.d.ts +0 -9
  266. package/dev/progress.d.ts.map +0 -1
  267. package/dev/progress.js +0 -5
  268. package/dev/progress.js.map +0 -1
  269. package/dev/range.d.ts +0 -9
  270. package/dev/range.d.ts.map +0 -1
  271. package/dev/range.js +0 -5
  272. package/dev/range.js.map +0 -1
  273. package/dev/rotate.d.ts +0 -9
  274. package/dev/rotate.d.ts.map +0 -1
  275. package/dev/rotate.js +0 -5
  276. package/dev/rotate.js.map +0 -1
  277. package/dev/router.d.ts +0 -9
  278. package/dev/router.d.ts.map +0 -1
  279. package/dev/router.js +0 -5
  280. package/dev/router.js.map +0 -1
  281. package/dev/select.d.ts +0 -9
  282. package/dev/select.d.ts.map +0 -1
  283. package/dev/select.js +0 -5
  284. package/dev/select.js.map +0 -1
  285. package/dev/skeleton.d.ts +0 -9
  286. package/dev/skeleton.d.ts.map +0 -1
  287. package/dev/skeleton.js +0 -5
  288. package/dev/skeleton.js.map +0 -1
  289. package/dev/split.d.ts +0 -9
  290. package/dev/split.d.ts.map +0 -1
  291. package/dev/split.js +0 -5
  292. package/dev/split.js.map +0 -1
  293. package/dev/switch.d.ts +0 -9
  294. package/dev/switch.d.ts.map +0 -1
  295. package/dev/switch.js +0 -5
  296. package/dev/switch.js.map +0 -1
  297. package/dev/text.d.ts +0 -9
  298. package/dev/text.d.ts.map +0 -1
  299. package/dev/text.js +0 -5
  300. package/dev/text.js.map +0 -1
  301. package/dev/time.d.ts +0 -9
  302. package/dev/time.d.ts.map +0 -1
  303. package/dev/time.js +0 -5
  304. package/dev/time.js.map +0 -1
  305. package/dev/tooltip.d.ts +0 -9
  306. package/dev/tooltip.d.ts.map +0 -1
  307. package/dev/tooltip.js +0 -5
  308. package/dev/tooltip.js.map +0 -1
  309. package/dev/typewriter.d.ts +0 -9
  310. package/dev/typewriter.d.ts.map +0 -1
  311. package/dev/typewriter.js +0 -5
  312. package/dev/typewriter.js.map +0 -1
@@ -1,38 +0,0 @@
1
- import { type TemplateResult } from "lit";
2
- import { GlobalStyle } from "../core/global-style.js";
3
- /**
4
- * {@linkcode Grid} provides gird layout.
5
- *
6
- * @slot - Grid items.
7
- * @category layout
8
- */
9
- declare class Grid extends GlobalStyle {
10
- /**
11
- * CSS property `gap`.
12
- */
13
- gap: string;
14
- /**
15
- * CSS property `grid-template-columns`.
16
- *
17
- * If columns is numerical, divide columns equally.
18
- */
19
- columns: string | number;
20
- /**
21
- * CSS property `grid-template-rows`.
22
- *
23
- * If rows is numerical, divide rows equally.
24
- */
25
- rows: string | number;
26
- /**
27
- * CSS property `place-content` (`align-content justify-content`).
28
- */
29
- content: string;
30
- /**
31
- * CSS property `place-items` (`align-items justify-items`).
32
- */
33
- items: string;
34
- protected render(): TemplateResult<1>;
35
- }
36
- export default Grid;
37
- export { Grid };
38
- //# sourceMappingURL=grid.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"grid.d.ts","sourceRoot":"","sources":["../../src/components/grid.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,cAAc,EAAa,MAAM,KAAK,CAAC;AAGrD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAMtD;;;;;GAKG;AACH,cAWM,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;CAuBtC;AAED,eAAe,IAAI,CAAC;AACpB,OAAO,EAAE,IAAI,EAAE,CAAC"}
@@ -1,67 +0,0 @@
1
- import { __decorate } from "tslib";
2
- import { attr, godown, htmlSlot, htmlStyle, isNumerical, joinRules, styles } from "@godown/element";
3
- import { css, html } from "lit";
4
- import { property } from "lit/decorators.js";
5
- import { GlobalStyle } from "../core/global-style.js";
6
- const toTemplate = (s) => (isNumerical(s) ? `repeat(${s},1fr)` : s);
7
- const protoName = "grid";
8
- /**
9
- * {@linkcode Grid} provides gird layout.
10
- *
11
- * @slot - Grid items.
12
- * @category layout
13
- */
14
- let Grid = class Grid extends GlobalStyle {
15
- render() {
16
- return html `
17
- <div
18
- part="root"
19
- ${attr(this.observedRecord)}
20
- >
21
- ${[
22
- htmlSlot(),
23
- htmlStyle(joinRules({
24
- ":host": {
25
- gap: this.gap,
26
- "grid-template-columns": toTemplate(this.columns),
27
- "grid-template-rows": toTemplate(this.rows),
28
- "place-content": this.content,
29
- "place-items": this.items,
30
- },
31
- })),
32
- ]}
33
- </div>
34
- `;
35
- }
36
- };
37
- __decorate([
38
- property()
39
- ], Grid.prototype, "gap", void 0);
40
- __decorate([
41
- property()
42
- ], Grid.prototype, "columns", void 0);
43
- __decorate([
44
- property()
45
- ], Grid.prototype, "rows", void 0);
46
- __decorate([
47
- property()
48
- ], Grid.prototype, "content", void 0);
49
- __decorate([
50
- property()
51
- ], Grid.prototype, "items", void 0);
52
- Grid = __decorate([
53
- godown(protoName),
54
- styles(css `
55
- :host,
56
- :host([contents]) [part="root"] {
57
- display: grid;
58
- }
59
-
60
- [part="root"] {
61
- display: contents;
62
- }
63
- `)
64
- ], Grid);
65
- export default Grid;
66
- export { Grid };
67
- //# sourceMappingURL=grid.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"grid.js","sourceRoot":"","sources":["../../src/components/grid.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACpG,OAAO,EAAuB,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,MAAM,UAAU,GAAG,CAAC,CAAkB,EAAE,EAAE,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAErF,MAAM,SAAS,GAAG,MAAM,CAAC;AAEzB;;;;;GAKG;AAYH,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,WAAW;IAmClB,MAAM;QACd,OAAO,IAAI,CAAA;;;UAGL,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC;;UAEzB;YACA,QAAQ,EAAE;YACV,SAAS,CACP,SAAS,CAAC;gBACR,OAAO,EAAE;oBACP,GAAG,EAAE,IAAI,CAAC,GAAG;oBACb,uBAAuB,EAAE,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC;oBACjD,oBAAoB,EAAE,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC;oBAC3C,eAAe,EAAE,IAAI,CAAC,OAAO;oBAC7B,aAAa,EAAE,IAAI,CAAC,KAAK;iBAC1B;aACF,CAAC,CACH;SACF;;KAEJ,CAAC;IACJ,CAAC;CACF,CAAA;AArDC;IADC,QAAQ,EAAE;iCACC;AAQZ;IADC,QAAQ,EAAE;qCACc;AAQzB;IADC,QAAQ,EAAE;kCACW;AAMtB;IADC,QAAQ,EAAE;qCACK;AAMhB;IADC,QAAQ,EAAE;mCACG;AAjCV,IAAI;IAXT,MAAM,CAAC,SAAS,CAAC;IACjB,MAAM,CAAC,GAAG,CAAA;;;;;;;;;CASV,CAAC;GACI,IAAI,CA0DT;AAED,eAAe,IAAI,CAAC;AACpB,OAAO,EAAE,IAAI,EAAE,CAAC"}
@@ -1,31 +0,0 @@
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
- * Element must have an id to be displayed.
20
- */
21
- anchor: string;
22
- /**
23
- * The anchor side.
24
- */
25
- side: "left" | "right";
26
- protected render(): TemplateResult<1>;
27
- protected wrapHeading(...children: any[]): TemplateResult<1>;
28
- }
29
- export default Heading;
30
- export { Heading };
31
- //# sourceMappingURL=heading.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"heading.d.ts","sourceRoot":"","sources":["../../src/components/heading.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,cAAc,EAAsB,MAAM,KAAK,CAAC;AAG9D,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAItD;;;;;;;GAOG;AACH,cAqCM,OAAQ,SAAQ,WAAW;IAC/B;;OAEG;IAEH,EAAE,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAQ;IAEnD;;;;OAIG;IAEH,MAAM,SAAO;IAEb;;OAEG;IAEH,IAAI,EAAE,MAAM,GAAG,OAAO,CAAU;IAEhC,SAAS,CAAC,MAAM,IAAI,cAAc,CAAC,CAAC,CAAC;IAmBrC,SAAS,CAAC,WAAW,CAAC,GAAG,QAAQ,EAAE,GAAG,EAAE,GAAG,cAAc,CAAC,CAAC,CAAC;CA4B7D;AAED,eAAe,OAAO,CAAC;AACvB,OAAO,EAAE,OAAO,EAAE,CAAC"}
@@ -1,127 +0,0 @@
1
- import { __decorate } from "tslib";
2
- import { attr, godown, htmlSlot, styles } from "@godown/element";
3
- import { css, html, nothing } from "lit";
4
- import { property } from "lit/decorators.js";
5
- import { GlobalStyle } from "../core/global-style.js";
6
- const protoName = "heading";
7
- /**
8
- * {@linkcode Heading} renders a heading.
9
- *
10
- * If the id is provided, the anchor will be displayed.
11
- *
12
- * @slot - Heading content.
13
- * @category layout
14
- */
15
- let Heading = class Heading extends GlobalStyle {
16
- constructor() {
17
- super(...arguments);
18
- /**
19
- * The heading level.
20
- */
21
- this.as = "h1";
22
- /**
23
- * The anchor prefix.
24
- *
25
- * Element must have an id to be displayed.
26
- */
27
- this.anchor = "#";
28
- /**
29
- * The anchor side.
30
- */
31
- this.side = "left";
32
- }
33
- render() {
34
- return html `
35
- <a
36
- part="root"
37
- href="${this.id ? "#" + this.id : nothing}"
38
- ${attr(this.observedRecord)}
39
- >
40
- ${this.wrapHeading(htmlSlot(), this.id
41
- ? html `
42
- <i part="anchor">${this.anchor}</i>
43
- `
44
- : "")}
45
- </a>
46
- `;
47
- }
48
- wrapHeading(...children) {
49
- switch (this.as) {
50
- case "h2":
51
- return html `
52
- <h2>${children}</h2>
53
- `;
54
- case "h3":
55
- return html `
56
- <h3>${children}</h3>
57
- `;
58
- case "h4":
59
- return html `
60
- <h4>${children}</h4>
61
- `;
62
- case "h5":
63
- return html `
64
- <h5>${children}</h5>
65
- `;
66
- case "h6":
67
- return html `
68
- <h6>${children}</h6>
69
- `;
70
- default:
71
- return html `
72
- <h1>${children}</h1>
73
- `;
74
- }
75
- }
76
- };
77
- __decorate([
78
- property()
79
- ], Heading.prototype, "as", void 0);
80
- __decorate([
81
- property()
82
- ], Heading.prototype, "anchor", void 0);
83
- __decorate([
84
- property()
85
- ], Heading.prototype, "side", void 0);
86
- Heading = __decorate([
87
- godown(protoName),
88
- styles(css `
89
- :host {
90
- display: block;
91
- text-align: start;
92
- }
93
-
94
- [part="anchor"] {
95
- position: absolute;
96
- text-align: center;
97
- min-width: 1.25em;
98
- right: 100%;
99
- }
100
-
101
- [side="left"] [part="anchor"] {
102
- right: 100%;
103
- }
104
- [side="right"] [part="anchor"] {
105
- left: 100%;
106
- }
107
-
108
- a {
109
- color: inherit;
110
- }
111
-
112
- h1,
113
- h2,
114
- h3,
115
- h4,
116
- h5,
117
- h6 {
118
- direction: ltr;
119
- font-size: revert;
120
- position: relative;
121
- width: fit-content;
122
- }
123
- `)
124
- ], Heading);
125
- export default Heading;
126
- export { Heading };
127
- //# sourceMappingURL=heading.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"heading.js","sourceRoot":"","sources":["../../src/components/heading.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EAAuB,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,MAAM,SAAS,GAAG,SAAS,CAAC;AAE5B;;;;;;;GAOG;AAsCH,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,WAAW;IAAjC;;QACE;;WAEG;QAEH,OAAE,GAA4C,IAAI,CAAC;QAEnD;;;;WAIG;QAEH,WAAM,GAAG,GAAG,CAAC;QAEb;;WAEG;QAEH,SAAI,GAAqB,MAAM,CAAC;IAiDlC,CAAC;IA/CW,MAAM;QACd,OAAO,IAAI,CAAA;;;gBAGC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,GAAG,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO;UACvC,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC;;UAEzB,IAAI,CAAC,WAAW,CAChB,QAAQ,EAAE,EACV,IAAI,CAAC,EAAE;YACL,CAAC,CAAC,IAAI,CAAA;mCACiB,IAAI,CAAC,MAAM;eAC/B;YACH,CAAC,CAAC,EAAE,CACP;;KAEJ,CAAC;IACJ,CAAC;IAES,WAAW,CAAC,GAAG,QAAe;QACtC,QAAQ,IAAI,CAAC,EAAE,EAAE,CAAC;YAChB,KAAK,IAAI;gBACP,OAAO,IAAI,CAAA;gBACH,QAAQ;SACf,CAAC;YACJ,KAAK,IAAI;gBACP,OAAO,IAAI,CAAA;gBACH,QAAQ;SACf,CAAC;YACJ,KAAK,IAAI;gBACP,OAAO,IAAI,CAAA;gBACH,QAAQ;SACf,CAAC;YACJ,KAAK,IAAI;gBACP,OAAO,IAAI,CAAA;gBACH,QAAQ;SACf,CAAC;YACJ,KAAK,IAAI;gBACP,OAAO,IAAI,CAAA;gBACH,QAAQ;SACf,CAAC;YACJ;gBACE,OAAO,IAAI,CAAA;gBACH,QAAQ;SACf,CAAC;QACN,CAAC;IACH,CAAC;CACF,CAAA;AA/DC;IADC,QAAQ,EAAE;mCACwC;AAQnD;IADC,QAAQ,EAAE;uCACE;AAMb;IADC,QAAQ,EAAE;qCACqB;AAnB5B,OAAO;IArCZ,MAAM,CAAC,SAAS,CAAC;IACjB,MAAM,CAAC,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmCV,CAAC;GACI,OAAO,CAoEZ;AAED,eAAe,OAAO,CAAC;AACvB,OAAO,EAAE,OAAO,EAAE,CAAC"}
@@ -1,23 +0,0 @@
1
- import { type TemplateResult } from "lit";
2
- import { SuperInput } from "../core/super-input.js";
3
- /**
4
- * {@linkcode Input} renders a text input.
5
- *
6
- * @fires input - Fires when the input value changes.
7
- * @fires change - Fires when the input value changes.
8
- * @category input
9
- */
10
- declare class Input extends SuperInput {
11
- type: "text" | "search" | "tel" | "url" | "email" | "password";
12
- value: string;
13
- /**
14
- * If outline, the outline is always present.
15
- */
16
- variant: "default" | "outline";
17
- protected _input: HTMLInputElement;
18
- protected render(): TemplateResult<1>;
19
- protected _renderSuffix(): TemplateResult<1>;
20
- }
21
- export default Input;
22
- export { Input };
23
- //# sourceMappingURL=input.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../src/components/input.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAAsB,MAAM,KAAK,CAAC;AAI9D,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAIpD;;;;;;GAMG;AACH,cAaM,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;IA6BrC,SAAS,CAAC,aAAa,IAAI,cAAc,CAAC,CAAC,CAAC;CAsB7C;AAED,eAAe,KAAK,CAAC;AACrB,OAAO,EAAE,KAAK,EAAE,CAAC"}
@@ -1,99 +0,0 @@
1
- import { __decorate } from "tslib";
2
- import { attr, tokenList, godown, part, styles, htmlSlot } from "@godown/element";
3
- import iconEyeSlashFill from "@godown/f7-icon/icons/eye-slash-fill.js";
4
- import { css, html, nothing } from "lit";
5
- import { property } from "lit/decorators.js";
6
- import { cssGlobalVars } from "../core/global-style.js";
7
- import { SuperInput } from "../core/super-input.js";
8
- const protoName = "input";
9
- /**
10
- * {@linkcode Input} renders a text input.
11
- *
12
- * @fires input - Fires when the input value changes.
13
- * @fires change - Fires when the input value changes.
14
- * @category input
15
- */
16
- let Input = class Input extends SuperInput {
17
- constructor() {
18
- super(...arguments);
19
- this.type = "text";
20
- /**
21
- * If outline, the outline is always present.
22
- */
23
- this.variant = "default";
24
- }
25
- render() {
26
- return html `
27
- <div
28
- part="root"
29
- ${attr(this.observedRecord)}
30
- class="${tokenList("input-field", this.variant)}"
31
- >
32
- ${[
33
- this._renderPrefix(),
34
- html `
35
- <input
36
- part="input"
37
- type="${this.type}"
38
- .value="${this.value}"
39
- ?autofocus="${this.autofocus}"
40
- ?disabled="${this.disabled}"
41
- autocapitalize="${this.autocapitalize || nothing}"
42
- autocomplete="${this.autocomplete || nothing}"
43
- placeholder="${this.placeholder || nothing}"
44
- id="${this.makeId}"
45
- @input="${this._handleInput}"
46
- />
47
- `,
48
- this._renderSuffix(),
49
- ]}
50
- </div>
51
- `;
52
- }
53
- _renderSuffix() {
54
- const PASSWORD = "password";
55
- return html `
56
- <label
57
- for=${this.makeId}
58
- part="suffix"
59
- >
60
- ${this.type === PASSWORD
61
- ? html `
62
- <i
63
- part="icon"
64
- @mousedown="${() => this._changeInputType("text")}"
65
- @mouseup="${() => this._changeInputType(PASSWORD)}"
66
- @mouseleave="${() => this._changeInputType(PASSWORD)}"
67
- >
68
- ${iconEyeSlashFill()}
69
- </i>
70
- `
71
- : htmlSlot("suffix")}
72
- </label>
73
- `;
74
- }
75
- };
76
- __decorate([
77
- property()
78
- ], Input.prototype, "variant", void 0);
79
- __decorate([
80
- part("input")
81
- ], Input.prototype, "_input", void 0);
82
- Input = __decorate([
83
- godown(protoName),
84
- styles(css `
85
- :host {
86
- width: var(${cssGlobalVars.input}-width);
87
- height: var(${cssGlobalVars.input}-height);
88
- display: block;
89
- }
90
-
91
- :host(:focus-within),
92
- .outline {
93
- ${cssGlobalVars.input}-outline-color: var(${cssGlobalVars.active});
94
- }
95
- `)
96
- ], Input);
97
- export default Input;
98
- export { Input };
99
- //# sourceMappingURL=input.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"input.js","sourceRoot":"","sources":["../../src/components/input.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAClF,OAAO,gBAAgB,MAAM,yCAAyC,CAAC;AACvE,OAAO,EAAuB,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEpD,MAAM,SAAS,GAAG,OAAO,CAAC;AAE1B;;;;;;GAMG;AAcH,IAAM,KAAK,GAAX,MAAM,KAAM,SAAQ,UAAU;IAA9B;;QACE,SAAI,GAA6D,MAAM,CAAC;QAIxE;;WAEG;QAEH,YAAO,GAA0B,SAAS,CAAC;IAwD7C,CAAC;IAnDW,MAAM;QACd,OAAO,IAAI,CAAA;;;UAGL,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC;iBAClB,SAAS,CAAC,aAAa,EAAE,IAAI,CAAC,OAAO,CAAC;;UAE7C;YACA,IAAI,CAAC,aAAa,EAAE;YACpB,IAAI,CAAA;;;sBAGQ,IAAI,CAAC,IAAI;wBACP,IAAI,CAAC,KAAK;4BACN,IAAI,CAAC,SAAS;2BACf,IAAI,CAAC,QAAQ;gCACR,IAAI,CAAC,cAAc,IAAI,OAAO;8BAChC,IAAI,CAAC,YAAY,IAAI,OAAO;6BAC7B,IAAI,CAAC,WAAW,IAAI,OAAO;oBACpC,IAAI,CAAC,MAAM;wBACP,IAAI,CAAC,YAAY;;WAE9B;YACD,IAAI,CAAC,aAAa,EAAE;SACrB;;KAEJ,CAAC;IACJ,CAAC;IAES,aAAa;QACrB,MAAM,QAAQ,GAAG,UAAU,CAAC;QAC5B,OAAO,IAAI,CAAA;;cAED,IAAI,CAAC,MAAM;;;UAGf,IAAI,CAAC,IAAI,KAAK,QAAQ;YACtB,CAAC,CAAC,IAAI,CAAA;;;8BAGc,GAAG,EAAE,CAAC,IAAI,CAAC,gBAAgB,CAAC,MAAM,CAAC;4BACrC,GAAG,EAAE,CAAC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC;+BAClC,GAAG,EAAE,CAAC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC;;kBAElD,gBAAgB,EAAE;;aAEvB;YACH,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC;;KAEzB,CAAC;IACJ,CAAC;CACF,CAAA;AAxDC;IADC,QAAQ,EAAE;sCACgC;AAGjC;IADT,IAAI,CAAC,OAAO,CAAC;qCACqB;AAZ/B,KAAK;IAbV,MAAM,CAAC,SAAS,CAAC;IACjB,MAAM,CAAC,GAAG,CAAA;;iBAEM,aAAa,CAAC,KAAK;kBAClB,aAAa,CAAC,KAAK;;;;;;MAM/B,aAAa,CAAC,KAAK,uBAAuB,aAAa,CAAC,MAAM;;CAEnE,CAAC;GACI,KAAK,CAiEV;AAED,eAAe,KAAK,CAAC;AACrB,OAAO,EAAE,KAAK,EAAE,CAAC"}
@@ -1,28 +0,0 @@
1
- import { type TemplateResult } from "lit";
2
- import { GlobalStyle } from "../core/global-style.js";
3
- /**
4
- * {@linkcode Layout} renders slot and optional top header, bottom footer.
5
- *
6
- * @slot - The main content of the layout.
7
- * @slot header - The header of the layout.
8
- * @slot footer - The footer of the layout.
9
- * @category layout
10
- */
11
- declare class Layout extends GlobalStyle {
12
- /**
13
- * If true, remove the header slot.
14
- */
15
- noHeader: boolean;
16
- /**
17
- * If true, remove the footer slot.
18
- */
19
- noFooter: boolean;
20
- /**
21
- * If true, header will sticky.
22
- */
23
- sticky: boolean;
24
- protected render(): TemplateResult<1>;
25
- }
26
- export default Layout;
27
- export { Layout };
28
- //# sourceMappingURL=layout.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../src/components/layout.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,cAAc,EAAa,MAAM,KAAK,CAAC;AAGrD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAItD;;;;;;;GAOG;AACH,cA+BM,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;CAoBtC;AAED,eAAe,MAAM,CAAC;AACtB,OAAO,EAAE,MAAM,EAAE,CAAC"}
@@ -1,96 +0,0 @@
1
- import { __decorate } from "tslib";
2
- import { attr, godown, htmlSlot, styles } from "@godown/element";
3
- import { css, html } from "lit";
4
- import { property } from "lit/decorators.js";
5
- import { GlobalStyle } from "../core/global-style.js";
6
- const protoName = "layout";
7
- /**
8
- * {@linkcode Layout} renders slot and optional top header, bottom footer.
9
- *
10
- * @slot - The main content of the layout.
11
- * @slot header - The header of the layout.
12
- * @slot footer - The footer of the layout.
13
- * @category layout
14
- */
15
- let Layout = class Layout extends GlobalStyle {
16
- constructor() {
17
- super(...arguments);
18
- /**
19
- * If true, remove the header slot.
20
- */
21
- this.noHeader = false;
22
- /**
23
- * If true, remove the footer slot.
24
- */
25
- this.noFooter = false;
26
- /**
27
- * If true, header will sticky.
28
- */
29
- this.sticky = false;
30
- }
31
- render() {
32
- return html `
33
- <div
34
- part="root"
35
- ${attr(this.observedRecord)}
36
- >
37
- ${!this.noHeader
38
- ? html `
39
- <header part="header">${htmlSlot("header")}</header>
40
- `
41
- : ""}
42
- <main part="main">${htmlSlot()}</main>
43
- ${!this.noFooter
44
- ? html `
45
- <footer part="footer">${htmlSlot("footer")}</footer>
46
- `
47
- : ""}
48
- </div>
49
- `;
50
- }
51
- };
52
- __decorate([
53
- property({ type: Boolean })
54
- ], Layout.prototype, "noHeader", void 0);
55
- __decorate([
56
- property({ type: Boolean })
57
- ], Layout.prototype, "noFooter", void 0);
58
- __decorate([
59
- property({ type: Boolean })
60
- ], Layout.prototype, "sticky", void 0);
61
- Layout = __decorate([
62
- godown(protoName),
63
- styles(css `
64
- :host,
65
- :host([contents]) [part="root"] {
66
- min-height: 100%;
67
- display: flex;
68
- flex-direction: column;
69
- }
70
-
71
- [part="root"] {
72
- display: contents;
73
- }
74
-
75
- [sticky] header {
76
- position: sticky;
77
- top: 0;
78
- z-index: 1;
79
- }
80
-
81
- [part="main"] {
82
- position: relative;
83
- flex: 1;
84
- width: 100%;
85
- }
86
-
87
- header,
88
- main,
89
- footer {
90
- width: 100%;
91
- }
92
- `)
93
- ], Layout);
94
- export default Layout;
95
- export { Layout };
96
- //# sourceMappingURL=layout.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"layout.js","sourceRoot":"","sources":["../../src/components/layout.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EAAuB,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,MAAM,SAAS,GAAG,QAAQ,CAAC;AAE3B;;;;;;;GAOG;AAgCH,IAAM,MAAM,GAAZ,MAAM,MAAO,SAAQ,WAAW;IAAhC;;QACE;;WAEG;QAEH,aAAQ,GAAG,KAAK,CAAC;QAEjB;;WAEG;QAEH,aAAQ,GAAG,KAAK,CAAC;QAEjB;;WAEG;QAEH,WAAM,GAAG,KAAK,CAAC;IAsBjB,CAAC;IApBW,MAAM;QACd,OAAO,IAAI,CAAA;;;UAGL,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC;;UAEzB,CAAC,IAAI,CAAC,QAAQ;YACd,CAAC,CAAC,IAAI,CAAA;sCACsB,QAAQ,CAAC,QAAQ,CAAC;aAC3C;YACH,CAAC,CAAC,EAAE;4BACc,QAAQ,EAAE;UAC5B,CAAC,IAAI,CAAC,QAAQ;YACd,CAAC,CAAC,IAAI,CAAA;sCACsB,QAAQ,CAAC,QAAQ,CAAC;aAC3C;YACH,CAAC,CAAC,EAAE;;KAET,CAAC;IACJ,CAAC;CACF,CAAA;AAlCC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;wCACX;AAMjB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;wCACX;AAMjB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;sCACb;AAjBX,MAAM;IA/BX,MAAM,CAAC,SAAS,CAAC;IACjB,MAAM,CAAC,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BV,CAAC;GACI,MAAM,CAuCX;AAED,eAAe,MAAM,CAAC;AACtB,OAAO,EAAE,MAAM,EAAE,CAAC"}
@@ -1,54 +0,0 @@
1
- import { SuperAnchor } from "../core/super-anchor.js";
2
- declare const linkTypes: {
3
- readonly push: "push";
4
- readonly replace: "replace";
5
- readonly normal: "normal";
6
- readonly auto: "auto";
7
- };
8
- type LinkType = keyof typeof linkTypes;
9
- /**
10
- * {@linkcode Link} is used for link jumping, works standalone or in {@linkcode Router}.
11
- *
12
- * Set `type` to `"normal"`,
13
- * behave like a normal anchor.
14
- *
15
- * Set `type` to `"push" `or `"replace"`,
16
- * update history state by `history.pushState` or `history.replaceState`,
17
- * update all routers whether current pathname is registered or not.
18
- *
19
- * Set `type` to `"auto"`,
20
- * only update the routers if the current pathname is registered,
21
- * if not registered, behave like `"normal"`.
22
- *
23
- * `replace` property will enforce `history.replaceState`.
24
- *
25
- * @fires navigate - Fires when the link is clicked.
26
- * @category navigation
27
- */
28
- declare class Link extends SuperAnchor {
29
- /**
30
- * If `"normal"`, behave like a normal anchor.
31
- *
32
- * If `"auto"` or `"push"`, call `history.pushState` if `replace` is false,
33
- *
34
- * If `"replace"`, call `history.replaceState`.
35
- */
36
- type: LinkType;
37
- /**
38
- * If `true`, the {@linkcode Router} will not be updated.
39
- */
40
- suppress: boolean;
41
- /**
42
- * Use `replaceState` instead of `pushState`.
43
- */
44
- replace: boolean;
45
- /**
46
- * Location state object.
47
- */
48
- state: {};
49
- protected _handleClick(e: MouseEvent): void;
50
- handleState: () => void;
51
- }
52
- export default Link;
53
- export { Link };
54
- //# sourceMappingURL=link.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../src/components/link.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAKtD,QAAA,MAAM,SAAS;;;;;CAKL,CAAC;AAEX,KAAK,QAAQ,GAAG,MAAM,OAAO,SAAS,CAAC;AAEvC;;;;;;;;;;;;;;;;;;GAkBG;AACH,cACM,IAAK,SAAQ,WAAW;IAC5B;;;;;;OAMG;IAEH,IAAI,EAAE,QAAQ,CAAkB;IAEhC;;OAEG;IAEH,QAAQ,UAAS;IAEjB;;OAEG;IAEH,OAAO,UAAS;IAEhB;;OAEG;IACH,KAAK,KAAM;IAEX,SAAS,CAAC,YAAY,CAAC,CAAC,EAAE,UAAU,GAAG,IAAI;IA0B3C,WAAW,EAAE,MAAM,IAAI,CAcrB;CACH;AAED,eAAe,IAAI,CAAC;AACpB,OAAO,EAAE,IAAI,EAAE,CAAC"}