godown 3.0.0-canary.5 → 3.0.0-canary.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/components/alert.d.ts +3 -2
  2. package/components/alert.d.ts.map +1 -1
  3. package/components/alert.js +16 -13
  4. package/components/alert.js.map +1 -1
  5. package/components/avatar.js.map +1 -1
  6. package/components/breath.d.ts +1 -1
  7. package/components/breath.js.map +1 -1
  8. package/components/button.d.ts +4 -3
  9. package/components/button.d.ts.map +1 -1
  10. package/components/button.js +9 -12
  11. package/components/button.js.map +1 -1
  12. package/components/card.js.map +1 -1
  13. package/components/carousel.d.ts +1 -1
  14. package/components/carousel.js.map +1 -1
  15. package/components/details.js.map +1 -1
  16. package/components/dialog.js.map +1 -1
  17. package/components/divider.js.map +1 -1
  18. package/components/dragbox.js.map +1 -1
  19. package/components/flex.d.ts +1 -1
  20. package/components/flex.js.map +1 -1
  21. package/components/form.js.map +1 -1
  22. package/components/grid.d.ts +1 -1
  23. package/components/grid.js.map +1 -1
  24. package/components/input.js.map +1 -1
  25. package/components/layout.js.map +1 -1
  26. package/components/link.js.map +1 -1
  27. package/components/progress.js.map +1 -1
  28. package/components/range.js.map +1 -1
  29. package/components/rotate.js.map +1 -1
  30. package/components/router.js.map +1 -1
  31. package/components/select.js.map +1 -1
  32. package/components/skeleton.js.map +1 -1
  33. package/components/split.js.map +1 -1
  34. package/components/switch.js.map +1 -1
  35. package/components/text.js.map +1 -1
  36. package/components/time.js.map +1 -1
  37. package/components/tooltip.js.map +1 -1
  38. package/components/typewriter.js.map +1 -1
  39. package/core/global-style.js.map +1 -1
  40. package/core/super-anchor.js.map +1 -1
  41. package/core/super-input.js.map +1 -1
  42. package/core/super-openable.js.map +1 -1
  43. package/custom-elements.json +1 -1
  44. package/dev/components/alert.d.ts +3 -2
  45. package/dev/components/alert.d.ts.map +1 -1
  46. package/dev/components/alert.js +18 -15
  47. package/dev/components/alert.js.map +1 -1
  48. package/dev/components/breath.d.ts +1 -1
  49. package/dev/components/button.d.ts +4 -3
  50. package/dev/components/button.d.ts.map +1 -1
  51. package/dev/components/button.js +9 -12
  52. package/dev/components/button.js.map +1 -1
  53. package/dev/components/carousel.d.ts +1 -1
  54. package/dev/components/flex.d.ts +1 -1
  55. package/dev/components/grid.d.ts +1 -1
  56. package/package.json +3 -3
  57. package/vscode.html-custom-data.json +1 -1
  58. package/web-types.json +1 -1
@@ -2,6 +2,8 @@ import { GlobalStyle } from "../core/global-style.js";
2
2
  /**
3
3
  * {@linkcode Alert} renders a alert.
4
4
  *
5
+ * Color defaults to blue.
6
+ *
5
7
  * @slot - Alert content.
6
8
  * @slot title - Alert title.
7
9
  * @slot icon - Alert icon.
@@ -17,7 +19,6 @@ declare class Alert extends GlobalStyle {
17
19
  * Overrides the color of the call.
18
20
  */
19
21
  color: "white" | "black" | "gray" | "green" | "teal" | "blue" | "red" | "purple" | "orange" | "yellow" | "pink";
20
- defaultColor: string;
21
22
  /**
22
23
  * Close delay, if 0, it will not be closed automatically.
23
24
  */
@@ -42,7 +43,7 @@ declare class Alert extends GlobalStyle {
42
43
  * If variant is `"blockquote"`, hide the close button.
43
44
  */
44
45
  variant: "blockquote" | "dark" | "light";
45
- protected render(): import("lit").TemplateResult<1>;
46
+ protected render(): (symbol | import("lit").TemplateResult<1>)[];
46
47
  close(): void;
47
48
  protected firstUpdated(): void;
48
49
  static alert(root: HTMLElement, option: Partial<Alert>): Alert;
@@ -1 +1 @@
1
- {"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../src/components/alert.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAiB,WAAW,EAAe,MAAM,yBAAyB,CAAC;AAwFlF;;;;;;;GAOG;AACH,cAsEM,KAAM,SAAQ,WAAW;IAC7B;;OAEG;IAEH,IAAI,EAAE,KAAK,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,YAAY,CA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,SAAS,UAAS;IAElB;;;;OAIG;IAEH,OAAO,EAAE,YAAY,GAAG,MAAM,GAAG,OAAO,CAAU;IAElD,SAAS,CAAC,MAAM;IAqBhB,KAAK;IAKL,SAAS,CAAC,YAAY;IAMtB,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,KAAK,CAAC,GAAG,KAAK;CAM/D;AAED,eAAe,KAAK,CAAC"}
@@ -3,7 +3,8 @@ import { godown } from "@godown/element/decorators/godown.js";
3
3
  import { styles } from "@godown/element/decorators/styles.js";
4
4
  import { conditionIf } from "@godown/element/directives/condition-if.js";
5
5
  import { htmlSlot } from "@godown/element/directives/html-slot.js";
6
- import { constructCSS } from "@godown/element/tools/css.js";
6
+ import { htmlStyle } from "@godown/element/directives/html-style.js";
7
+ import { constructCSSObject, toVar } from "@godown/element/tools/css.js";
7
8
  import iconCheckAltCircle from "@godown/f7-icon/icons/checkmark-alt-circle.js";
8
9
  import iconExclamationCircle from "@godown/f7-icon/icons/exclamationmark-circle.js";
9
10
  import iconInfoCircle from "@godown/f7-icon/icons/info-circle.js";
@@ -12,7 +13,7 @@ import iconQuestionCircle from "@godown/f7-icon/icons/question-circle.js";
12
13
  import iconSlashCircle from "@godown/f7-icon/icons/slash-circle.js";
13
14
  import iconXmark from "@godown/f7-icon/icons/xmark.js";
14
15
  import iconXmarkCircle from "@godown/f7-icon/icons/xmark-circle.js";
15
- import { css, html, unsafeCSS } from "lit";
16
+ import { css, html } from "lit";
16
17
  import { property } from "lit/decorators.js";
17
18
  import { cssGlobalVars, GlobalStyle, scopePrefix } from "../core/global-style.js";
18
19
  const protoName = "alert";
@@ -21,7 +22,7 @@ const vars = ["color", "background"].map((v) => `${cssScope}--${v}`);
21
22
  const genDark = (key) => {
22
23
  return [cssGlobalVars._colors[key][5], cssGlobalVars._colors[key][9]];
23
24
  };
24
- const darkStyles = constructCSS(vars, {
25
+ const darkStyles = constructCSSObject(vars, {
25
26
  green: genDark("green"),
26
27
  blue: genDark("blue"),
27
28
  orange: genDark("orange"),
@@ -33,11 +34,11 @@ const darkStyles = constructCSS(vars, {
33
34
  gray: [cssGlobalVars._colors.lightgray[5], cssGlobalVars._colors.darkgray[5]],
34
35
  white: [cssGlobalVars._colors.lightgray[2], cssGlobalVars._colors.darkgray[7]],
35
36
  black: [cssGlobalVars._colors.darkgray[8], cssGlobalVars._colors.lightgray[5]],
36
- }, (color) => `[color=${color}]`, (prop) => `var(${prop})`);
37
+ }, () => `:host`, (prop) => toVar(prop));
37
38
  const genLight = (key) => {
38
39
  return [cssGlobalVars._colors[key][6], cssGlobalVars._colors[key][0]];
39
40
  };
40
- const lightStyles = constructCSS(vars, {
41
+ const lightStyles = constructCSSObject(vars, {
41
42
  green: genLight("green"),
42
43
  blue: genLight("blue"),
43
44
  orange: genLight("orange"),
@@ -49,7 +50,7 @@ const lightStyles = constructCSS(vars, {
49
50
  gray: [cssGlobalVars._colors.darkgray[5], cssGlobalVars._colors.lightgray[7]],
50
51
  white: [cssGlobalVars._colors.lightgray[0], cssGlobalVars._colors.darkgray[0]],
51
52
  black: [cssGlobalVars._colors.darkgray[7], cssGlobalVars._colors.lightgray[3]],
52
- }, (color) => `[variant="light"][color=${color}]`, (prop) => `var(${prop})`);
53
+ }, () => `:host`, (prop) => toVar(prop));
53
54
  const calls = {
54
55
  tip: {
55
56
  color: "teal",
@@ -87,6 +88,8 @@ const calls = {
87
88
  /**
88
89
  * {@linkcode Alert} renders a alert.
89
90
  *
91
+ * Color defaults to blue.
92
+ *
90
93
  * @slot - Alert content.
91
94
  * @slot title - Alert title.
92
95
  * @slot icon - Alert icon.
@@ -95,7 +98,6 @@ const calls = {
95
98
  let Alert = class Alert extends GlobalStyle {
96
99
  constructor() {
97
100
  super(...arguments);
98
- this.defaultColor = "blue";
99
101
  /**
100
102
  * Close delay, if 0, it will not be closed automatically.
101
103
  */
@@ -114,16 +116,19 @@ let Alert = class Alert extends GlobalStyle {
114
116
  this.variant = "dark";
115
117
  }
116
118
  render() {
117
- const color = this.call ? this.color || calls[this.call].color : this.color || this.defaultColor;
119
+ const color = calls[this.call]?.color || this.color;
118
120
  const icon = this.call ? calls[this.call].icon() : htmlSlot("icon");
119
- return html `<div part="root" variant="${this.variant}" color="${color}">
121
+ return [
122
+ html `<div part="root" variant="${this.variant}">
120
123
  <div part="icon">${icon}</div>
121
124
  <div part="content">
122
125
  <strong part="title">${this.title || htmlSlot("title")}</strong>
123
126
  ${this.content || htmlSlot()}
124
127
  </div>
125
- ${conditionIf(!this.hideClose && this.variant !== "blockquote", html `<div part="close" @click="${this.close}">${iconXmark()}</div>`)}
126
- </div>`;
128
+ ${conditionIf(!this.hideClose && this.variant !== "blockquote", html `<div part="close" tabindex=0 @click="${this.close}">${iconXmark()}</div>`)}
129
+ </div>`,
130
+ htmlStyle(this.variant === "light" ? lightStyles[color] : darkStyles[color]),
131
+ ];
127
132
  }
128
133
  close() {
129
134
  this.remove();
@@ -157,16 +162,14 @@ __decorate([
157
162
  property()
158
163
  ], Alert.prototype, "content", void 0);
159
164
  __decorate([
160
- property({
161
- type: Boolean,
162
- })
165
+ property({ type: Boolean })
163
166
  ], Alert.prototype, "hideClose", void 0);
164
167
  __decorate([
165
168
  property()
166
169
  ], Alert.prototype, "variant", void 0);
167
170
  Alert = __decorate([
168
171
  godown(protoName),
169
- styles(unsafeCSS(darkStyles), unsafeCSS(lightStyles), css `
172
+ styles(css `
170
173
  :host {
171
174
  border-radius: var(${cssScope}--border-radius);
172
175
  ${cssScope}--border-radius: .25em;
@@ -1 +1 @@
1
- {"version":3,"file":"alert.js","sourceRoot":"","sources":["../../src/components/alert.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AAC9D,OAAO,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AACzE,OAAO,EAAE,QAAQ,EAAE,MAAM,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E,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;IAClF,CAAC;IAES,YAAY;QACpB,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;YACnB,UAAU,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,KAAK,EAAE,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;QACjD,CAAC;IACH,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,IAAiB,EAAE,MAAsB;QACpD,MAAM,EAAE,GAAG,IAAI,IAAI,EAAE,CAAC;QACtB,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;QAC1B,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;QACrB,OAAO,EAAE,CAAC;IACZ,CAAC;CACF,CAAA;AAjFC;IADC,QAAQ,EAAE;mCAC+E;AAO1F;IADC,QAAQ,EAAE;oCACqG;AAMhH;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;wCACb;AAMd;IADC,QAAQ,EAAE;oCACG;AAMd;IADC,QAAQ,EAAE;sCACK;AAQhB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;wCACV;AAQlB;IADC,QAAQ,EAAE;sCACuC;AA9C9C,KAAK;IApEV,MAAM,CAAC,SAAS,CAAC;IACjB,MAAM,CACL,GAAG,CAAA;;2BAEsB,QAAQ;QAC3B,QAAQ;QACR,QAAQ;QACR,QAAQ;QACR,QAAQ;;;;;;qBAMK,QAAQ;;;;;;qBAMR,QAAQ;;oBAET,QAAQ;wBACJ,QAAQ;;;;;yBAKP,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAsC5B,CACJ;GACK,KAAK,CAsFV;AAED,eAAe,KAAK,CAAC"}
@@ -24,7 +24,7 @@ declare class Breath extends GlobalStyle {
24
24
  * Effect duration, ending in s or ms.
25
25
  */
26
26
  duration: string;
27
- protected render(): (import("lit").TemplateResult<1> | import("lit").TemplateResult<1>[])[];
27
+ protected render(): (symbol | import("lit").TemplateResult<1> | import("lit").TemplateResult<1>[])[];
28
28
  protected renderText(text: string): import("lit").TemplateResult<1>;
29
29
  protected getTexts(): string[];
30
30
  protected computeStyle(len: number): string;
@@ -1,7 +1,9 @@
1
1
  import { GlobalStyle } from "../core/global-style.js";
2
2
  declare const colors: Record<"teal" | "blue" | "green" | "red" | "purple" | "orange" | "yellow" | "pink" | "gray" | "white" | "black", string>;
3
3
  /**
4
- * {@linkcode Button}.
4
+ * {@linkcode Button} renders a button.
5
+ *
6
+ * Color defaults to black.
5
7
  *
6
8
  * @category input
7
9
  */
@@ -32,8 +34,7 @@ declare class Button extends GlobalStyle {
32
34
  text: string;
33
35
  _modalRoot: HTMLElement;
34
36
  _root: HTMLElement;
35
- static colors: Record<"teal" | "blue" | "green" | "red" | "purple" | "orange" | "yellow" | "pink" | "gray" | "white" | "black", string>;
36
- protected render(): import("lit").TemplateResult<1>[];
37
+ protected render(): (symbol | import("lit").TemplateResult<1>)[];
37
38
  focus(): void;
38
39
  blur(): void;
39
40
  firstUpdated(): void;
@@ -1 +1 @@
1
- {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../src/components/button.ts"],"names":[],"mappings":"AASA,OAAO,EAAiB,WAAW,EAAe,MAAM,yBAAyB,CAAC;AAYlF,QAAA,MAAM,MAAM,0HA6DX,CAAC;AAEF;;;;GAIG;AACH,cA8FM,MAAO,SAAQ,WAAW;IAC9B;;OAEG;IAEH,QAAQ,EAAE,OAAO,CAAC;IAClB;;OAEG;IAEH,KAAK,EAAE,OAAO,CAAC;IACf;;OAEG;IAEH,MAAM,EAAE,OAAO,CAAC;IAChB;;OAEG;IAEH,KAAK,EAAE,OAAO,CAAC;IACf;;OAEG;IAEH,KAAK,EAAE,MAAM,GAAG,MAAM,OAAO,MAAM,CAAW;IAC9C;;OAEG;IAEH,IAAI,EAAE,MAAM,CAAC;IAGb,UAAU,EAAE,WAAW,CAAC;IAExB,KAAK,EAAE,WAAW,CAAC;IAEnB,MAAM,CAAC,MAAM,2HAAU;IAEvB,SAAS,CAAC,MAAM;IAWhB,KAAK;IAQL,IAAI;IAKJ,YAAY;IAIZ,SAAS,CAAC,YAAY,CAAC,CAAC,EAAE,UAAU;IASpC,SAAS,CAAC,YAAY,CAAC,CAAC,EAAE,UAAU;IAepC,SAAS;CAGV;AAED,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../src/components/button.ts"],"names":[],"mappings":"AASA,OAAO,EAAiB,WAAW,EAAe,MAAM,yBAAyB,CAAC;AAQlF,QAAA,MAAM,MAAM,0HA6DX,CAAC;AAEF;;;;;;GAMG;AACH,cA8FM,MAAO,SAAQ,WAAW;IAC9B;;OAEG;IAEH,QAAQ,EAAE,OAAO,CAAC;IAClB;;OAEG;IAEH,KAAK,EAAE,OAAO,CAAC;IACf;;OAEG;IAEH,MAAM,EAAE,OAAO,CAAC;IAChB;;OAEG;IAEH,KAAK,EAAE,OAAO,CAAC;IACf;;OAEG;IAEH,KAAK,EAAE,MAAM,GAAG,MAAM,OAAO,MAAM,CAAW;IAC9C;;OAEG;IAEH,IAAI,EAAE,MAAM,CAAC;IAGb,UAAU,EAAE,WAAW,CAAC;IAExB,KAAK,EAAE,WAAW,CAAC;IAEnB,SAAS,CAAC,MAAM;IAWhB,KAAK;IAQL,IAAI;IAKJ,YAAY;IAIZ,SAAS,CAAC,YAAY,CAAC,CAAC,EAAE,UAAU;IASpC,SAAS,CAAC,YAAY,CAAC,CAAC,EAAE,UAAU;IAepC,SAAS;CAGV;AAED,eAAe,MAAM,CAAC"}
@@ -1,21 +1,17 @@
1
- var Button_1;
2
1
  import { __decorate } from "tslib";
3
2
  import { godown } from "@godown/element/decorators/godown.js";
4
3
  import { part } from "@godown/element/decorators/part.js";
5
4
  import { styles } from "@godown/element/decorators/styles.js";
6
5
  import { htmlSlot } from "@godown/element/directives/html-slot.js";
7
6
  import { htmlStyle } from "@godown/element/directives/html-style.js";
8
- import { constructCSSObject } from "@godown/element/tools/css.js";
9
- import { css, html, unsafeCSS } from "lit";
7
+ import { constructCSSObject, toVar } from "@godown/element/tools/css.js";
8
+ import { css, html } from "lit";
10
9
  import { property } from "lit/decorators.js";
11
10
  import { cssGlobalVars, GlobalStyle, scopePrefix } from "../core/global-style.js";
12
11
  const protoName = "button";
13
12
  const cssScope = scopePrefix(protoName);
14
13
  const whiteFont = cssGlobalVars._colors.lightgray[0];
15
14
  const blackFont = cssGlobalVars._colors.darkgray[6];
16
- const toVar = (s) => {
17
- return unsafeCSS(`var(${s})`);
18
- };
19
15
  const colors = constructCSSObject(["color", "background", "gradients"].map((k) => `${cssScope}--${k}`), {
20
16
  black: [
21
17
  whiteFont, // color
@@ -72,13 +68,15 @@ const colors = constructCSSObject(["color", "background", "gradients"].map((k) =
72
68
  cssGlobalVars._colors.teal[6], // background
73
69
  cssGlobalVars._colors.teal[4], // gradients
74
70
  ],
75
- }, () => `:host`, toVar);
71
+ }, () => `:host`, (prop) => toVar(prop));
76
72
  /**
77
- * {@linkcode Button}.
73
+ * {@linkcode Button} renders a button.
74
+ *
75
+ * Color defaults to black.
78
76
  *
79
77
  * @category input
80
78
  */
81
- let Button = Button_1 = class Button extends GlobalStyle {
79
+ let Button = class Button extends GlobalStyle {
82
80
  constructor() {
83
81
  super(...arguments);
84
82
  /**
@@ -93,7 +91,7 @@ let Button = Button_1 = class Button extends GlobalStyle {
93
91
  <span part="modal-root"></span>
94
92
  <div part="slot">${this.text || htmlSlot()}</div>
95
93
  </div>`,
96
- htmlStyle(Button_1.colors[color]),
94
+ htmlStyle(colors[color]),
97
95
  ];
98
96
  }
99
97
  focus() {
@@ -136,7 +134,6 @@ let Button = Button_1 = class Button extends GlobalStyle {
136
134
  return this.color;
137
135
  }
138
136
  };
139
- Button.colors = colors;
140
137
  __decorate([
141
138
  property({ type: Boolean, reflect: true })
142
139
  ], Button.prototype, "disabled", void 0);
@@ -161,7 +158,7 @@ __decorate([
161
158
  __decorate([
162
159
  part("root")
163
160
  ], Button.prototype, "_root", void 0);
164
- Button = Button_1 = __decorate([
161
+ Button = __decorate([
165
162
  godown(protoName),
166
163
  styles(css `
167
164
  :host(:not([disabled]):active) {
@@ -1 +1 @@
1
- {"version":3,"file":"button.js","sourceRoot":"","sources":["../../src/components/button.ts"],"names":[],"mappings":";;AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AAC9D,OAAO,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,yCAAyC,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAC;AACrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAElF,MAAM,SAAS,GAAG,QAAQ,CAAC;AAC3B,MAAM,QAAQ,GAAG,WAAW,CAAC,SAAS,CAAC,CAAC;AAExC,MAAM,SAAS,GAAG,aAAa,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;AACrD,MAAM,SAAS,GAAG,aAAa,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;AAEpD,MAAM,KAAK,GAAG,CAAC,CAAC,EAAE,EAAE;IAClB,OAAO,SAAS,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;AAChC,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,kBAAkB,CAC/B,CAAC,OAAO,EAAE,YAAY,EAAE,WAAW,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EA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,2BAA2B,QAAQ;yCACV,QAAQ,sBAAsB,QAAQ;mBAC5D,QAAQ;;;GAGxB,EACD,GAAG,CAAA;;QAEG,QAAQ;QACR,QAAQ;QACR,QAAQ,kBAAkB,QAAQ,oBAAoB,QAAQ;QAC9D,QAAQ;QACR,QAAQ;QACR,QAAQ;QACR,QAAQ;QACR,QAAQ,qBAAqB,QAAQ;mBAC1B,QAAQ;;cAEb,QAAQ;cACR,QAAQ;cACR,QAAQ,oBAAoB,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;qBAyB7B,QAAQ;;;;;;;;;;;;;wBAaL,QAAQ;gCACA,QAAQ;;;;;;uBAMjB,QAAQ;;;;;;;;;GAS5B,CACF;GACK,MAAM,CA4FX;AAED,eAAe,MAAM,CAAC"}
@@ -28,7 +28,7 @@ declare class Carousel extends GlobalStyle {
28
28
  intervalID: number;
29
29
  _cloneFirst: HTMLElement | undefined;
30
30
  _cloneLast: HTMLElement | undefined;
31
- protected render(): import("lit").TemplateResult<1>[];
31
+ protected render(): (symbol | import("lit").TemplateResult<1>)[];
32
32
  protected firstUpdated(): Promise<void>;
33
33
  disconnectedCallback(): void;
34
34
  show(i: number): void;
@@ -25,7 +25,7 @@ declare class Flex extends GlobalStyle {
25
25
  * If true, set flex-direction to "column".
26
26
  */
27
27
  vertical: boolean;
28
- protected render(): import("lit").TemplateResult<1>[];
28
+ protected render(): (symbol | import("lit").TemplateResult<1>)[];
29
29
  }
30
30
  export default Flex;
31
31
  //# sourceMappingURL=flex.d.ts.map
@@ -25,7 +25,7 @@ declare class Grid extends GlobalStyle {
25
25
  * CSS property `place-items` (`align-items justify-items`).
26
26
  */
27
27
  items: string;
28
- protected render(): import("lit").TemplateResult<1>[];
28
+ protected render(): (symbol | import("lit").TemplateResult<1>)[];
29
29
  }
30
30
  export default Grid;
31
31
  //# sourceMappingURL=grid.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "godown",
3
- "version": "3.0.0-canary.5",
3
+ "version": "3.0.0-canary.6",
4
4
  "description": "Simple, stylized, semantic web components",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -27,8 +27,8 @@
27
27
  "lit": "^3.0.0",
28
28
  "tslib": "^2.7.0",
29
29
  "@godown/colors": "^0.0.0",
30
- "@godown/f7-icon": "^0.0.1",
31
- "@godown/element": "^0.0.1"
30
+ "@godown/element": "^0.0.2",
31
+ "@godown/f7-icon": "^0.0.2"
32
32
  },
33
33
  "publishConfig": {
34
34
  "access": "public"
@@ -1 +1 @@
1
- {"version":1.1,"tags":[{"name":"godown-alert","description":"Alert renders a alert.\n---\n\n\n### **Events:**\n - **close**\n\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":"white"},{"name":"black"},{"name":"gray"},{"name":"green"},{"name":"teal"},{"name":"blue"},{"name":"red"},{"name":"purple"},{"name":"orange"},{"name":"yellow"},{"name":"pink"}]},{"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.\n\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.\n\nIf variant is `\"blockquote\"`, hide the close button.","values":[{"name":"blockquote"},{"name":"dark"},{"name":"light"}]}],"references":[]},{"name":"godown-avatar","description":"Avatar renders a avatar.\n\nRenders as an image if it has a src property,\notherwise falls back to name or nameless slot.\n---\n","attributes":[{"name":"src","description":"Image src.","values":[]},{"name":"name","description":"If the image is not available, the Avatar.format will be displayed.","values":[]},{"name":"round","values":[]}],"references":[]},{"name":"godown-breath","description":"Breath render the text with a breathing effect.\n\nDynamically generate a breathing effect based on the length of the split text.\n\nIf there is not enough CSS variable, overrun elements will use the.\n\ngodown was a css library in its earliest days,\nand this is the component version of its first effect.\n\nInspired by Vercel home page (2023).\n---\n","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-button","description":"Button.\n---\n","attributes":[{"name":"disabled","description":"Whether to disable this element.","values":[]},{"name":"ghost","description":"Invert font and background color.","values":[]},{"name":"active","description":"Whether this element is active or not.","values":[]},{"name":"round","description":"Enables rounded corners to appear capsule shaped.","values":[]},{"name":"color","description":"The primary color.","values":[{"name":"none"},{"name":"keyof typeof colors"}]},{"name":"text","description":"Text inside.","values":[]}],"references":[]},{"name":"godown-card","description":"Card renders a card.\n\nThis may be similar to Layout,\nbut it needs to be specified to enable header and footer.\n---\n\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":"shadow","values":[{"name":"none"},{"name":"always"},{"name":"hover"}]},{"name":"footer","values":[]},{"name":"header","values":[]}],"references":[]},{"name":"godown-carousel","description":"Carousel make the content display as a carousel.\n\nWhen this component is `firstUpdated`,\nclone the first and last element and make the matching element visible when switching index.\n\nChild elements should maintain the same size.\n\nIf no width, it will be the width of the first element.\n---\n","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-details","description":"Details similar to <details>.\n---\n\n\n### **Events:**\n - **change**","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-dialog","description":"Dialog similar to <dialog>.\n\nLike dialog, it listens for submit events and closes itself when the target method is \"dialog\".\n\nIt listens for the keydown event and also closes itself when the key contained in the key is pressed\n---\n\n\n### **Events:**\n - **change**","attributes":[{"name":"direction","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-divider","description":"Divider similar to <hr>.\n\nThis component does not render content.\n---\n","attributes":[{"name":"vertical","description":"Vertical display.","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-flex","description":"Flex provides flex layout.\n---\n","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-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\n\n### **Slots:**\n - _default_ - Child elements.","attributes":[{"name":"name","values":[]}],"references":[]},{"name":"godown-grid","description":"Grid provides gird layout.\n---\n","attributes":[{"name":"gap","description":"CSS property `gap`.","values":[]},{"name":"columns","description":"CSS property `grid-template-columns`, if isNumerical divide equally.","values":[]},{"name":"rows","description":"CSS property `grid-template-rows`, if isNumerical divide 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-input","description":"Input used for text input.\n---\n\n\n### **Events:**\n - **input**\n- **change**","attributes":[{"name":"variant","description":"If outline, the outline is always present.","values":[{"name":"default"},{"name":"outline"}]},{"name":"accept","values":[]},{"name":"autocomplete","values":[]},{"name":"disabled","values":[]},{"name":"type","values":[{"name":"InputType"}]},{"name":"placeholder","values":[]},{"name":"label","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-link","description":"Link is used for link jumping.\n\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`.\n\nIf \"replace\", call `history.replaceState`","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-progress","description":"Progress similar to <progress>.\n---\n\n\n### **Methods:**\n - **parsePercent(s: _string | number_): __** - Convert s to a percentage without a percent sign.","attributes":[{"name":"max","description":"Maximum.","values":[]},{"name":"min","description":"Minimum.","values":[]},{"name":"value","description":"Input value.","values":[]}],"references":[]},{"name":"godown-range","description":"Range is similar to `<input type=\"range\">`.\n\nValue accepts number, or array.\n\nNumber has 1 handle, the array has the number of its elements and the minimum is 2.\n---\n\n\n### **Events:**\n - **input**\n- **change**\n\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":"When `this.range` is true, it should be [number, number], otherwise number.","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":"label","values":[]},{"name":"name","values":[]}],"references":[]},{"name":"godown-rotate","description":"Rotate Make child elements rotate.\n---\n\n\n### **Methods:**\n - **_computeOffset(e: _MouseEvent_): __** - Compute offset.\n```\n`rotateX(${rotateX}rad) rotateY(${rotateY}rad)`\n```","attributes":[],"references":[]},{"name":"godown-router","description":"Router has basic routing control.\n\nTo switch routes, use `router-link component`.\n\nIt has two methods to collect routes.\n\n1. From field `routes`, an array, each elements require \"path\" and \"component\".\n2. From child elements, which have the slot attribute for matching routes.\n\nIf only the method 1 is used, set `type` to `\"field\"`.\n\nIf only the method 2 is used, set `type` to `\"slotted\"`.\n\n`type` defaults to `\"united\"`, which will try method 1, then method 2.\n\nIf no routes are matched, the default value (no named slot) will be rendered.\n---\n\n\n### **Events:**\n - **change**\n\n### **Methods:**\n - **fieldComponent(query: _string_): __** - Find components from __fieldRouteTree matching query.\n- **slottedComponent(usedRouteTemplate: _string_, query): __** - Find components from __slottedRouteTree matching 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.","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.\n\nIf field, it won't collect the slot attribute of the child elements.\n\nThis property should not be changed after the rendering is complete.","values":[{"name":"united"},{"name":"slotted"},{"name":"field"}]},{"name":"cache","description":"Cache accessed records.\n\nEmptied at each re-collection.","values":[]}],"references":[]},{"name":"godown-select","description":"Select is similar to <select>.\n\nElements with the value attribute/property can be used as options.\n\nThe checked attribute will be added to the selected element.\n\nMulti-selected state looks the same as single-selected.\n\nInput will filter the element.\n---\n\n\n### **Events:**\n - **change**\n- **input**\n\n### **Slots:**\n - _default_ - Options.","attributes":[{"name":"open","description":"Open content.","values":[]},{"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":"accept","values":[]},{"name":"autocomplete","values":[]},{"name":"disabled","values":[]},{"name":"type","values":[{"name":"InputType"}]},{"name":"placeholder","values":[]},{"name":"label","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\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-split-input","description":"Split renders multiple input boxes.\n\nInput: will move the focus box backward until the complete input from start to end.\n\nDelete: will move the focus box forward until the first and no inputs for each.\n---\n\n\n### **Events:**\n - **input**\n- **change**","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":"label","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-switch","description":"Switch renders a switch.\n\nThe switch is rectangular by default,\nset the round property to rounded switch.\n---\n\n\n### **Events:**\n - **input**\n- **change**","attributes":[{"name":"round","description":"Border style.","values":[]},{"name":"checked","description":"Whether this element is selected or not.","values":[]},{"name":"disabled","description":"Whether this element is disabled or not.","values":[]},{"name":"default","description":"Parsed by JSON.parse to checked.","values":[]},{"name":"value","description":"Input value.","values":[]},{"name":"autocomplete","values":[]},{"name":"type","values":[{"name":"InputType"}]},{"name":"placeholder","values":[]},{"name":"label","values":[]},{"name":"name","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-time","description":"Time renders a formatting time.\n---\n\n\n### **Methods:**\n - **fmt(fm: _string_, tm: _Date_, em: _string_): __** - Y for year\\\nM for month\\\nD for day\\\nh for hour\\\nm for minute\\\ns for second\\\nS for milli second\\\nZ for time zone.","attributes":[{"name":"escape","description":"Cancels the next character formatting.","values":[]},{"name":"format","description":"Format strings.\nTime.fmt","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-tooltip","description":"Tooltip provide tooltip for slot elements.\n\nIf it has the tip property, ignore the slot tip.\n---\n\n\n### **Events:**\n - **change**\n\n### **Slots:**\n - **tip** - Tip element.\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":"open","description":"Open the content.","values":[]}],"references":[]},{"name":"godown-typewriter","description":"Typewriter renders a typewriter effect to text.\n---\n\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":[]}]}
1
+ {"version":1.1,"tags":[{"name":"godown-alert","description":"Alert renders a alert.\n\nColor defaults to blue.\n---\n\n\n### **Events:**\n - **close**\n\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":"white"},{"name":"black"},{"name":"gray"},{"name":"green"},{"name":"teal"},{"name":"blue"},{"name":"red"},{"name":"purple"},{"name":"orange"},{"name":"yellow"},{"name":"pink"}]},{"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.\n\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.\n\nIf variant is `\"blockquote\"`, hide the close button.","values":[{"name":"blockquote"},{"name":"dark"},{"name":"light"}]}],"references":[]},{"name":"godown-avatar","description":"Avatar renders a avatar.\n\nRenders as an image if it has a src property,\notherwise falls back to name or nameless slot.\n---\n","attributes":[{"name":"src","description":"Image src.","values":[]},{"name":"name","description":"If the image is not available, the Avatar.format will be displayed.","values":[]},{"name":"round","values":[]}],"references":[]},{"name":"godown-breath","description":"Breath render the text with a breathing effect.\n\nDynamically generate a breathing effect based on the length of the split text.\n\nIf there is not enough CSS variable, overrun elements will use the.\n\ngodown was a css library in its earliest days,\nand this is the component version of its first effect.\n\nInspired by Vercel home page (2023).\n---\n","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-button","description":"Button renders a button.\n\nColor defaults to black.\n---\n","attributes":[{"name":"disabled","description":"Whether to disable this element.","values":[]},{"name":"ghost","description":"Invert font and background color.","values":[]},{"name":"active","description":"Whether this element is active or not.","values":[]},{"name":"round","description":"Enables rounded corners to appear capsule shaped.","values":[]},{"name":"color","description":"The primary color.","values":[{"name":"none"},{"name":"keyof typeof colors"}]},{"name":"text","description":"Text inside.","values":[]}],"references":[]},{"name":"godown-card","description":"Card renders a card.\n\nThis may be similar to Layout,\nbut it needs to be specified to enable header and footer.\n---\n\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":"shadow","values":[{"name":"none"},{"name":"always"},{"name":"hover"}]},{"name":"footer","values":[]},{"name":"header","values":[]}],"references":[]},{"name":"godown-carousel","description":"Carousel make the content display as a carousel.\n\nWhen this component is `firstUpdated`,\nclone the first and last element and make the matching element visible when switching index.\n\nChild elements should maintain the same size.\n\nIf no width, it will be the width of the first element.\n---\n","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-details","description":"Details similar to <details>.\n---\n\n\n### **Events:**\n - **change**","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-dialog","description":"Dialog similar to <dialog>.\n\nLike dialog, it listens for submit events and closes itself when the target method is \"dialog\".\n\nIt listens for the keydown event and also closes itself when the key contained in the key is pressed\n---\n\n\n### **Events:**\n - **change**","attributes":[{"name":"direction","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-divider","description":"Divider similar to <hr>.\n\nThis component does not render content.\n---\n","attributes":[{"name":"vertical","description":"Vertical display.","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-flex","description":"Flex provides flex layout.\n---\n","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-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\n\n### **Slots:**\n - _default_ - Child elements.","attributes":[{"name":"name","values":[]}],"references":[]},{"name":"godown-grid","description":"Grid provides gird layout.\n---\n","attributes":[{"name":"gap","description":"CSS property `gap`.","values":[]},{"name":"columns","description":"CSS property `grid-template-columns`, if isNumerical divide equally.","values":[]},{"name":"rows","description":"CSS property `grid-template-rows`, if isNumerical divide 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-input","description":"Input used for text input.\n---\n\n\n### **Events:**\n - **input**\n- **change**","attributes":[{"name":"variant","description":"If outline, the outline is always present.","values":[{"name":"default"},{"name":"outline"}]},{"name":"accept","values":[]},{"name":"autocomplete","values":[]},{"name":"disabled","values":[]},{"name":"type","values":[{"name":"InputType"}]},{"name":"placeholder","values":[]},{"name":"label","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-link","description":"Link is used for link jumping.\n\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`.\n\nIf \"replace\", call `history.replaceState`","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-progress","description":"Progress similar to <progress>.\n---\n\n\n### **Methods:**\n - **parsePercent(s: _string | number_): __** - Convert s to a percentage without a percent sign.","attributes":[{"name":"max","description":"Maximum.","values":[]},{"name":"min","description":"Minimum.","values":[]},{"name":"value","description":"Input value.","values":[]}],"references":[]},{"name":"godown-range","description":"Range is similar to `<input type=\"range\">`.\n\nValue accepts number, or array.\n\nNumber has 1 handle, the array has the number of its elements and the minimum is 2.\n---\n\n\n### **Events:**\n - **input**\n- **change**\n\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":"When `this.range` is true, it should be [number, number], otherwise number.","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":"label","values":[]},{"name":"name","values":[]}],"references":[]},{"name":"godown-rotate","description":"Rotate Make child elements rotate.\n---\n\n\n### **Methods:**\n - **_computeOffset(e: _MouseEvent_): __** - Compute offset.\n```\n`rotateX(${rotateX}rad) rotateY(${rotateY}rad)`\n```","attributes":[],"references":[]},{"name":"godown-router","description":"Router has basic routing control.\n\nTo switch routes, use `router-link component`.\n\nIt has two methods to collect routes.\n\n1. From field `routes`, an array, each elements require \"path\" and \"component\".\n2. From child elements, which have the slot attribute for matching routes.\n\nIf only the method 1 is used, set `type` to `\"field\"`.\n\nIf only the method 2 is used, set `type` to `\"slotted\"`.\n\n`type` defaults to `\"united\"`, which will try method 1, then method 2.\n\nIf no routes are matched, the default value (no named slot) will be rendered.\n---\n\n\n### **Events:**\n - **change**\n\n### **Methods:**\n - **fieldComponent(query: _string_): __** - Find components from __fieldRouteTree matching query.\n- **slottedComponent(usedRouteTemplate: _string_, query): __** - Find components from __slottedRouteTree matching 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.","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.\n\nIf field, it won't collect the slot attribute of the child elements.\n\nThis property should not be changed after the rendering is complete.","values":[{"name":"united"},{"name":"slotted"},{"name":"field"}]},{"name":"cache","description":"Cache accessed records.\n\nEmptied at each re-collection.","values":[]}],"references":[]},{"name":"godown-select","description":"Select is similar to <select>.\n\nElements with the value attribute/property can be used as options.\n\nThe checked attribute will be added to the selected element.\n\nMulti-selected state looks the same as single-selected.\n\nInput will filter the element.\n---\n\n\n### **Events:**\n - **change**\n- **input**\n\n### **Slots:**\n - _default_ - Options.","attributes":[{"name":"open","description":"Open content.","values":[]},{"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":"accept","values":[]},{"name":"autocomplete","values":[]},{"name":"disabled","values":[]},{"name":"type","values":[{"name":"InputType"}]},{"name":"placeholder","values":[]},{"name":"label","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\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-split-input","description":"Split renders multiple input boxes.\n\nInput: will move the focus box backward until the complete input from start to end.\n\nDelete: will move the focus box forward until the first and no inputs for each.\n---\n\n\n### **Events:**\n - **input**\n- **change**","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":"label","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-switch","description":"Switch renders a switch.\n\nThe switch is rectangular by default,\nset the round property to rounded switch.\n---\n\n\n### **Events:**\n - **input**\n- **change**","attributes":[{"name":"round","description":"Border style.","values":[]},{"name":"checked","description":"Whether this element is selected or not.","values":[]},{"name":"disabled","description":"Whether this element is disabled or not.","values":[]},{"name":"default","description":"Parsed by JSON.parse to checked.","values":[]},{"name":"value","description":"Input value.","values":[]},{"name":"autocomplete","values":[]},{"name":"type","values":[{"name":"InputType"}]},{"name":"placeholder","values":[]},{"name":"label","values":[]},{"name":"name","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-time","description":"Time renders a formatting time.\n---\n\n\n### **Methods:**\n - **fmt(fm: _string_, tm: _Date_, em: _string_): __** - Y for year\\\nM for month\\\nD for day\\\nh for hour\\\nm for minute\\\ns for second\\\nS for milli second\\\nZ for time zone.","attributes":[{"name":"escape","description":"Cancels the next character formatting.","values":[]},{"name":"format","description":"Format strings.\nTime.fmt","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-tooltip","description":"Tooltip provide tooltip for slot elements.\n\nIf it has the tip property, ignore the slot tip.\n---\n\n\n### **Events:**\n - **change**\n\n### **Slots:**\n - **tip** - Tip element.\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":"open","description":"Open the content.","values":[]}],"references":[]},{"name":"godown-typewriter","description":"Typewriter renders a typewriter effect to text.\n---\n\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":[]}]}