godown 3.0.0-canary.4 → 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.
- package/components/alert.d.ts +3 -2
- package/components/alert.d.ts.map +1 -1
- package/components/alert.js +16 -13
- package/components/alert.js.map +1 -1
- package/components/avatar.js.map +1 -1
- package/components/breath.d.ts +1 -1
- package/components/breath.js.map +1 -1
- package/components/button.d.ts +4 -3
- package/components/button.d.ts.map +1 -1
- package/components/button.js +11 -12
- package/components/button.js.map +1 -1
- package/components/card.js.map +1 -1
- package/components/carousel.d.ts +1 -1
- package/components/carousel.js.map +1 -1
- package/components/details.js.map +1 -1
- package/components/dialog.d.ts +2 -0
- package/components/dialog.d.ts.map +1 -1
- package/components/dialog.js +4 -6
- package/components/dialog.js.map +1 -1
- package/components/divider.js.map +1 -1
- package/components/dragbox.js.map +1 -1
- package/components/flex.d.ts +1 -1
- package/components/flex.js.map +1 -1
- package/components/form.js.map +1 -1
- package/components/grid.d.ts +1 -1
- package/components/grid.js.map +1 -1
- package/components/input.js.map +1 -1
- package/components/layout.js.map +1 -1
- package/components/link.js.map +1 -1
- package/components/progress.js.map +1 -1
- package/components/range.d.ts +36 -11
- package/components/range.d.ts.map +1 -1
- package/components/range.js +124 -43
- package/components/range.js.map +1 -1
- package/components/rotate.js.map +1 -1
- package/components/router.js.map +1 -1
- package/components/select.d.ts.map +1 -1
- package/components/select.js +1 -0
- package/components/select.js.map +1 -1
- package/components/skeleton.js.map +1 -1
- package/components/split.d.ts.map +1 -1
- package/components/split.js +2 -0
- package/components/split.js.map +1 -1
- package/components/switch.js.map +1 -1
- package/components/text.js.map +1 -1
- package/components/time.js.map +1 -1
- package/components/tooltip.js.map +1 -1
- package/components/typewriter.js.map +1 -1
- package/core/global-style.js.map +1 -1
- package/core/super-anchor.js.map +1 -1
- package/core/super-input.js.map +1 -1
- package/core/super-openable.js.map +1 -1
- package/custom-elements.json +1 -1
- package/dev/components/alert.d.ts +3 -2
- package/dev/components/alert.d.ts.map +1 -1
- package/dev/components/alert.js +18 -15
- package/dev/components/alert.js.map +1 -1
- package/dev/components/breath.d.ts +1 -1
- package/dev/components/button.d.ts +4 -3
- package/dev/components/button.d.ts.map +1 -1
- package/dev/components/button.js +11 -12
- package/dev/components/button.js.map +1 -1
- package/dev/components/carousel.d.ts +1 -1
- package/dev/components/dialog.d.ts +2 -0
- package/dev/components/dialog.d.ts.map +1 -1
- package/dev/components/dialog.js +4 -6
- package/dev/components/dialog.js.map +1 -1
- package/dev/components/flex.d.ts +1 -1
- package/dev/components/grid.d.ts +1 -1
- package/dev/components/range.d.ts +36 -11
- package/dev/components/range.d.ts.map +1 -1
- package/dev/components/range.js +146 -81
- package/dev/components/range.js.map +1 -1
- package/dev/components/select.d.ts.map +1 -1
- package/dev/components/select.js +1 -0
- package/dev/components/select.js.map +1 -1
- package/dev/components/split.d.ts.map +1 -1
- package/dev/components/split.js +2 -0
- package/dev/components/split.js.map +1 -1
- package/package.json +3 -3
- package/vscode.html-custom-data.json +1 -1
- package/web-types.json +1 -1
package/dev/components/range.js
CHANGED
@@ -3,22 +3,20 @@ import { godown } from "@godown/element/decorators/godown.js";
|
|
3
3
|
import { part } from "@godown/element/decorators/part.js";
|
4
4
|
import { styles } from "@godown/element/decorators/styles.js";
|
5
5
|
import { classList } from "@godown/element/directives/class-list.js";
|
6
|
-
import { conditionIf } from "@godown/element/directives/condition-if.js";
|
7
|
-
import { htmlSlot } from "@godown/element/directives/html-slot.js";
|
8
6
|
import { joinProperties } from "@godown/element/tools/css.js";
|
9
7
|
import { isNil } from "@godown/element/tools/lib.js";
|
10
8
|
import { css, html } from "lit";
|
11
|
-
import { property, state } from "lit/decorators.js";
|
9
|
+
import { property, queryAll, state } from "lit/decorators.js";
|
12
10
|
import { cssGlobalVars, scopePrefix } from "../core/global-style.js";
|
13
11
|
import SuperInput from "../core/super-input.js";
|
14
12
|
const protoName = "range";
|
15
13
|
const cssScope = scopePrefix(protoName);
|
16
14
|
/**
|
17
|
-
* {@linkcode Range} is similar to
|
15
|
+
* {@linkcode Range} is similar to `<input type="range">`.
|
18
16
|
*
|
19
|
-
* Value accepts
|
17
|
+
* Value accepts number, or array.
|
20
18
|
*
|
21
|
-
* Number
|
19
|
+
* Number has 1 handle, the array has the number of its elements and the minimum is 2.
|
22
20
|
*
|
23
21
|
* @category input
|
24
22
|
*/
|
@@ -33,10 +31,6 @@ let Range = class Range extends SuperInput {
|
|
33
31
|
* Maximum value.
|
34
32
|
*/
|
35
33
|
this.max = 100;
|
36
|
-
/**
|
37
|
-
* Sliding step length.
|
38
|
-
*/
|
39
|
-
this.step = 1;
|
40
34
|
}
|
41
35
|
/**
|
42
36
|
* Returns true when the second number is greater than the first number
|
@@ -45,16 +39,34 @@ let Range = class Range extends SuperInput {
|
|
45
39
|
return this.range ? this.value[0] > this.value[1] : false;
|
46
40
|
}
|
47
41
|
/**
|
48
|
-
*
|
42
|
+
* If value is array.
|
49
43
|
*/
|
50
44
|
get range() {
|
51
45
|
return Array.isArray(this.value);
|
52
46
|
}
|
47
|
+
/**
|
48
|
+
* Return values in the form of an array.
|
49
|
+
*/
|
53
50
|
get rangeValue() {
|
54
|
-
return (this.range ? this.value : [
|
51
|
+
return (this.range ? this.value : [this.value]);
|
52
|
+
}
|
53
|
+
/**
|
54
|
+
* @param len Minimum result length.
|
55
|
+
* @param value Fill value.
|
56
|
+
* @returns Array with length of len.
|
57
|
+
*/
|
58
|
+
padValue(len, value = 0) {
|
59
|
+
const { rangeValue } = this;
|
60
|
+
const miss = len - rangeValue.length;
|
61
|
+
if (miss > 0) {
|
62
|
+
return new Array(miss).fill(value).concat(rangeValue);
|
63
|
+
}
|
64
|
+
return rangeValue;
|
55
65
|
}
|
56
66
|
render() {
|
57
|
-
const
|
67
|
+
const rangeValue = this.padValue(2);
|
68
|
+
const from = Math.min(...rangeValue);
|
69
|
+
const to = Math.max(...rangeValue);
|
58
70
|
const gap = this.max - this.min;
|
59
71
|
return html `<div
|
60
72
|
part="root"
|
@@ -64,42 +76,104 @@ let Range = class Range extends SuperInput {
|
|
64
76
|
reverse: this.reverse,
|
65
77
|
})}"
|
66
78
|
@mousedown="${this.disabled ? null : this._handleMousedownRoot}"
|
67
|
-
style="${joinProperties({
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
part="
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
</i>
|
79
|
+
style="${joinProperties({
|
80
|
+
"--from": `${((from - this.min) / gap) * 100}%`,
|
81
|
+
"--to": `${((to - this.min) / gap) * 100}%`,
|
82
|
+
...(this.range
|
83
|
+
? Object.fromEntries(rangeValue.map((value, index) => [
|
84
|
+
`--handle-${index}`,
|
85
|
+
`${((value - this.min) / gap) * 100}%`,
|
86
|
+
]))
|
87
|
+
: {}),
|
88
|
+
})}"><div part="track"></div>
|
89
|
+
${this.range
|
90
|
+
? this.value.map((_, index) => this.renderHandle(index))
|
91
|
+
: this.renderHandle(0)}
|
81
92
|
</div>`;
|
82
93
|
}
|
83
|
-
|
84
|
-
|
85
|
-
this.
|
94
|
+
renderHandle(index) {
|
95
|
+
const { range } = this;
|
96
|
+
const end = !range || index === this.value.length - 1;
|
97
|
+
return html `<i
|
98
|
+
tabindex="0"
|
99
|
+
part="handle"
|
100
|
+
class="${classList({ "last-focus": this.lastFocus === index })}"
|
101
|
+
@mousedown="${this.disabled ? null : this.createMouseDown(index)}"
|
102
|
+
@focus="${this.disabled ? null : () => this.focusHandle(index)}"
|
103
|
+
@blur="${this.disabled ? null : this.blurHandle}"
|
104
|
+
style="--handle:var(--${
|
105
|
+
/* In single-handle mod or end, it is max value */
|
106
|
+
(!range && end) ? `to` : `handle-${index}`})"
|
107
|
+
></i>
|
108
|
+
`;
|
109
|
+
}
|
110
|
+
focusHandle(index) {
|
111
|
+
this.lastFocus = index;
|
112
|
+
const handleItem = this._handles.item(index);
|
113
|
+
handleItem?.focus();
|
114
|
+
if (!this._keydownEvent) {
|
115
|
+
this._keydownEvent = this.events.add(document, "keydown", this.createKeydownEvent(index));
|
116
|
+
}
|
117
|
+
}
|
118
|
+
blurHandle() {
|
119
|
+
this.lastFocus = undefined;
|
120
|
+
this._keydownEvent = this.events.remove(document, "keydown", this._keydownEvent);
|
121
|
+
}
|
122
|
+
createKeydownEvent(index) {
|
123
|
+
if (!this.range) {
|
124
|
+
index = 0;
|
125
|
+
}
|
126
|
+
return (e) => {
|
127
|
+
if (e.key === "ArrowLeft" || e.key === "ArrowDown") {
|
128
|
+
e.preventDefault();
|
129
|
+
this.createSetValue(index)(old => old - this.step);
|
130
|
+
}
|
131
|
+
else if (e.key === "ArrowRight" || e.key === "ArrowUp") {
|
132
|
+
e.preventDefault();
|
133
|
+
this.createSetValue(index)(old => old + this.step);
|
134
|
+
}
|
135
|
+
};
|
136
|
+
}
|
137
|
+
createMouseDown(index) {
|
138
|
+
return (e) => {
|
139
|
+
this.focusHandle(index);
|
140
|
+
this.createMousedownListener(this.createSetValue(index))(e);
|
141
|
+
};
|
86
142
|
}
|
87
143
|
_handleMousedownEnd(e) {
|
88
|
-
this.lastFocus =
|
144
|
+
this.lastFocus = 0;
|
89
145
|
this.createMousedownListener(this.setEnd)(e);
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
146
|
+
this.focusHandle(0);
|
147
|
+
}
|
148
|
+
createSetValue(index) {
|
149
|
+
return (numberOrModifier) => {
|
150
|
+
const number = typeof numberOrModifier === "number"
|
151
|
+
? this.normalizeValue(numberOrModifier)
|
152
|
+
: numberOrModifier(this.rangeValue[index]);
|
153
|
+
let newValue = number;
|
154
|
+
if (this.range) {
|
155
|
+
newValue = [...this.rangeValue];
|
156
|
+
newValue[index] = number;
|
157
|
+
}
|
158
|
+
this.value = newValue;
|
159
|
+
};
|
94
160
|
}
|
95
161
|
setEnd(value) {
|
96
|
-
|
97
|
-
this.value = this.range ? [i, value] : value;
|
162
|
+
this.createSetValue(this.value?.length - 1 || 0)(value);
|
98
163
|
}
|
164
|
+
/**
|
165
|
+
* Compute value from event.
|
166
|
+
*/
|
99
167
|
_computeValue(e) {
|
100
168
|
const rect = this._root.getBoundingClientRect();
|
101
169
|
const div = this.vertical ? (e.clientY - rect.top) / rect.height : (e.clientX - rect.left) / rect.width;
|
102
|
-
|
170
|
+
const value = Math.round((div * (this.max - this.min)) / this.step) * this.step;
|
171
|
+
return this.normalizeValue(value);
|
172
|
+
}
|
173
|
+
/**
|
174
|
+
* Ensure that the values do not exceed the range of max and min.
|
175
|
+
*/
|
176
|
+
normalizeValue(value) {
|
103
177
|
if (value > this.max) {
|
104
178
|
value -= this.step;
|
105
179
|
}
|
@@ -110,14 +184,17 @@ let Range = class Range extends SuperInput {
|
|
110
184
|
}
|
111
185
|
_handleMousedownRoot(e) {
|
112
186
|
const value = this._computeValue(e);
|
113
|
-
|
114
|
-
this.
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
187
|
+
const index = this.range
|
188
|
+
? this.rangeValue.reduce((acc, item, index) => {
|
189
|
+
const diff = Math.abs(value - item);
|
190
|
+
const prevDiff = Math.abs(value - this.rangeValue[acc]);
|
191
|
+
return diff < prevDiff ? index : acc;
|
192
|
+
}, 0)
|
193
|
+
: 0;
|
194
|
+
const set = this.createSetValue(index);
|
195
|
+
set(value);
|
196
|
+
this.createMousedownListener(set)(e);
|
197
|
+
this.focusHandle(index);
|
121
198
|
}
|
122
199
|
createMousedownListener(mouseMoveCallback) {
|
123
200
|
return (e) => {
|
@@ -144,17 +221,15 @@ let Range = class Range extends SuperInput {
|
|
144
221
|
_connectedInit() {
|
145
222
|
const gap = this.max - this.min;
|
146
223
|
this.step ||= gap / 100;
|
147
|
-
if (
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
const mid = Math.round(gap / 2 / this.step) * this.step;
|
155
|
-
this.default = this.range ? [0, mid] : mid;
|
156
|
-
this.value = this.default;
|
224
|
+
if (isNil(this.value)) {
|
225
|
+
if (!isNil(this.default)) {
|
226
|
+
this.value = this.default;
|
227
|
+
}
|
228
|
+
else {
|
229
|
+
this.value = Math.round(gap / 2 / this.step) * this.step;
|
230
|
+
}
|
157
231
|
}
|
232
|
+
this.default ??= this.value;
|
158
233
|
}
|
159
234
|
reset() {
|
160
235
|
this.value = this.default;
|
@@ -197,6 +272,9 @@ __decorate([
|
|
197
272
|
__decorate([
|
198
273
|
part("root")
|
199
274
|
], Range.prototype, "_root", void 0);
|
275
|
+
__decorate([
|
276
|
+
queryAll("[part=handle]")
|
277
|
+
], Range.prototype, "_handles", void 0);
|
200
278
|
__decorate([
|
201
279
|
state()
|
202
280
|
], Range.prototype, "lastFocus", void 0);
|
@@ -217,22 +295,19 @@ Range = __decorate([
|
|
217
295
|
width: fit-content;
|
218
296
|
}
|
219
297
|
|
220
|
-
|
298
|
+
:host(:not([disabled])) .last-focus {
|
299
|
+
z-index: 1;
|
221
300
|
${cssScope}-handle-scale:1.05;
|
222
301
|
background: var(${cssScope}-handle-active);
|
223
302
|
}
|
224
303
|
|
225
|
-
.last-focus {
|
226
|
-
z-index: 1;
|
227
|
-
}
|
228
|
-
|
229
304
|
[part="root"] {
|
230
305
|
min-height:inherit;
|
231
306
|
position: relative;
|
232
307
|
border-radius: inherit;
|
233
308
|
width: 100%;
|
234
|
-
--
|
235
|
-
--
|
309
|
+
--from: 0%;
|
310
|
+
--to: 50%;
|
236
311
|
height: var(${cssScope}-track-width);
|
237
312
|
}
|
238
313
|
|
@@ -244,9 +319,9 @@ Range = __decorate([
|
|
244
319
|
pointer-events: none;
|
245
320
|
border-radius: inherit;
|
246
321
|
justify-content: space-between;
|
247
|
-
left: min(var(--
|
322
|
+
left: min(var(--from), var(--to));
|
248
323
|
background: var(${cssGlobalVars.active});
|
249
|
-
width: max(calc(var(--
|
324
|
+
width: max(calc(var(--to) - var(--from)), calc(var(--from) - var(--to)));
|
250
325
|
}
|
251
326
|
|
252
327
|
[part="handle"] {
|
@@ -276,28 +351,18 @@ Range = __decorate([
|
|
276
351
|
|
277
352
|
.vertical [part="track"] {
|
278
353
|
width: 100%;
|
279
|
-
height: max(calc(var(--
|
280
|
-
top: min(var(--
|
354
|
+
height: max(calc(var(--to) - var(--from)), calc(var(--from) - var(--to)));
|
355
|
+
top: min(var(--from), var(--to));
|
281
356
|
left: 0;
|
282
357
|
}
|
283
358
|
`, css `
|
284
|
-
|
285
|
-
left: var(--
|
286
|
-
top: 0;
|
287
|
-
}
|
288
|
-
|
289
|
-
.end {
|
290
|
-
left: var(--end);
|
359
|
+
[part="handle"] {
|
360
|
+
left: var(--handle);
|
291
361
|
top: 0;
|
292
362
|
}
|
293
363
|
|
294
|
-
.vertical
|
295
|
-
top: var(--
|
296
|
-
left: 0;
|
297
|
-
}
|
298
|
-
|
299
|
-
.vertical .end {
|
300
|
-
top: var(--end);
|
364
|
+
.vertical [part="handle"] {
|
365
|
+
top: var(--handle);
|
301
366
|
left: 0;
|
302
367
|
}
|
303
368
|
`)
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"range.js","sourceRoot":"","sources":["../../src/components/range.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,SAAS,EAAE,MAAM,0CAA0C,CAAC;AACrE,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"range.js","sourceRoot":"","sources":["../../src/components/range.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,SAAS,EAAE,MAAM,0CAA0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IAAI,CAAC,SAAS,CAAC;wCACM;AAGtB;IADC,QAAQ,EAAE;yCAC6B;AAGxC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;wCACV;AAGlB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;uCACX;AAGP;IADT,KAAK,EAAE;6CAC6C;AA9BjD,MAAM;IArBX,MAAM,CAAC,SAAS,CAAC;IACjB,MAAM,CACL,GAAG,CAAA;;;;;;;;;;;;;;;;;GAiBF,CACF;GACK,MAAM,CAyMX;AAED,eAAe,MAAM,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"split.d.ts","sourceRoot":"","sources":["../../src/components/split.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAK/D,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAKhD;;;;;;;;GAQG;AACH,cA6CM,KAAM,SAAQ,UAAU;IAC5B;;OAEG;IAEH,GAAG,SAAK;IACR;;OAEG;IAEH,KAAK,SAAM;IAGX,OAAO,SAAM;IAEb,YAAY,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,CAAM;IAErC,SAAS,CAAC,MAAM;IAyBhB,iBAAiB,IAAI,IAAI;IAKzB,SAAS,CAAC,YAAY,CAAC,CAAC,EAAE,YAAY,CAAC,gBAAgB,EAAE,UAAU,CAAC;IA2CpE,KAAK;
|
1
|
+
{"version":3,"file":"split.d.ts","sourceRoot":"","sources":["../../src/components/split.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAK/D,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAKhD;;;;;;;;GAQG;AACH,cA6CM,KAAM,SAAQ,UAAU;IAC5B;;OAEG;IAEH,GAAG,SAAK;IACR;;OAEG;IAEH,KAAK,SAAM;IAGX,OAAO,SAAM;IAEb,YAAY,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,CAAM;IAErC,SAAS,CAAC,MAAM;IAyBhB,iBAAiB,IAAI,IAAI;IAKzB,SAAS,CAAC,YAAY,CAAC,CAAC,EAAE,YAAY,CAAC,gBAAgB,EAAE,UAAU,CAAC;IA2CpE,KAAK;IAKL,OAAO,CAAC,CAAC,EAAE,MAAM;IAKjB,IAAI;IAMJ,KAAK;CAQN;AAED,eAAe,KAAK,CAAC"}
|
package/dev/components/split.js
CHANGED
@@ -94,6 +94,7 @@ let Split = class Split extends SuperInput {
|
|
94
94
|
}
|
95
95
|
focus() {
|
96
96
|
this.focusAt(this.current);
|
97
|
+
super.focus();
|
97
98
|
}
|
98
99
|
focusAt(i) {
|
99
100
|
this.current = i;
|
@@ -102,6 +103,7 @@ let Split = class Split extends SuperInput {
|
|
102
103
|
blur() {
|
103
104
|
this._input.blur();
|
104
105
|
this.current = -1;
|
106
|
+
super.blur();
|
105
107
|
}
|
106
108
|
reset() {
|
107
109
|
this.current = -1;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"split.js","sourceRoot":"","sources":["../../src/components/split.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AAC9D,OAAO,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAC;AAErE,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAEpD,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAEhD,MAAM,SAAS,GAAG,OAAO,CAAC;AAC1B,MAAM,QAAQ,GAAG,WAAW,CAAC,SAAS,CAAC,CAAC;AAExC;;;;;;;;GAQG;AA8CH,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": "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/element": "^0.0.
|
31
|
-
"@godown/f7-icon": "^0.0.
|
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 a number, or an array of two numbers.\n\nNumber have one handle, array have two.\n---\n\n\n### **Events:**\n - **input**\n- **change**","attributes":[{"name":"min","description":"Minimum value.","values":[]},{"name":"max","description":"Maximum value.","values":[]},{"name":"step","description":"Sliding step length.","values":[]},{"name":"vertical","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":[]}]}
|