godown 3.0.0-canary.1 → 3.0.0-canary.11
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/README.md +38 -9
- package/components/alert.d.ts +6 -3
- package/components/alert.d.ts.map +1 -1
- package/components/alert.js +22 -14
- package/components/alert.js.map +1 -1
- package/components/avatar.d.ts +7 -2
- package/components/avatar.d.ts.map +1 -1
- package/components/avatar.js +13 -6
- package/components/avatar.js.map +1 -1
- package/components/breath.d.ts +4 -2
- package/components/breath.d.ts.map +1 -1
- package/components/breath.js +8 -6
- package/components/breath.js.map +1 -1
- package/components/button.d.ts +20 -11
- package/components/button.d.ts.map +1 -1
- package/components/button.js +23 -20
- package/components/button.js.map +1 -1
- package/components/card.d.ts +2 -2
- package/components/card.d.ts.map +1 -1
- package/components/card.js +8 -13
- package/components/card.js.map +1 -1
- package/components/carousel.d.ts +8 -5
- package/components/carousel.d.ts.map +1 -1
- package/components/carousel.js +18 -11
- package/components/carousel.js.map +1 -1
- package/components/details.d.ts +7 -3
- package/components/details.d.ts.map +1 -1
- package/components/details.js +7 -3
- package/components/details.js.map +1 -1
- package/components/dialog.d.ts +9 -5
- package/components/dialog.d.ts.map +1 -1
- package/components/dialog.js +20 -14
- package/components/dialog.js.map +1 -1
- package/components/divider.d.ts +3 -4
- package/components/divider.d.ts.map +1 -1
- package/components/divider.js +6 -7
- package/components/divider.js.map +1 -1
- package/components/dragbox.d.ts +9 -8
- package/components/dragbox.d.ts.map +1 -1
- package/components/dragbox.js +3 -2
- package/components/dragbox.js.map +1 -1
- package/components/flex.d.ts +3 -1
- package/components/flex.d.ts.map +1 -1
- package/components/flex.js +13 -4
- package/components/flex.js.map +1 -1
- package/components/form.d.ts +2 -3
- package/components/form.d.ts.map +1 -1
- package/components/form.js +0 -2
- package/components/form.js.map +1 -1
- package/components/grid.d.ts +9 -3
- package/components/grid.d.ts.map +1 -1
- package/components/grid.js +6 -4
- package/components/grid.js.map +1 -1
- package/components/input.d.ts +4 -4
- package/components/input.d.ts.map +1 -1
- package/components/input.js +5 -7
- package/components/input.js.map +1 -1
- package/components/layout.d.ts +4 -6
- package/components/layout.d.ts.map +1 -1
- package/components/layout.js +23 -12
- package/components/layout.js.map +1 -1
- package/components/link.d.ts +3 -1
- package/components/link.d.ts.map +1 -1
- package/components/link.js +3 -1
- package/components/link.js.map +1 -1
- package/components/progress.d.ts +4 -12
- package/components/progress.d.ts.map +1 -1
- package/components/progress.js +9 -17
- package/components/progress.js.map +1 -1
- package/components/range.d.ts +45 -18
- package/components/range.d.ts.map +1 -1
- package/components/range.js +133 -62
- package/components/range.js.map +1 -1
- package/components/rotate.d.ts +3 -2
- package/components/rotate.d.ts.map +1 -1
- package/components/rotate.js +1 -1
- package/components/rotate.js.map +1 -1
- package/components/router.d.ts +15 -17
- package/components/router.d.ts.map +1 -1
- package/components/router.js +10 -10
- package/components/router.js.map +1 -1
- package/components/select.d.ts +6 -9
- package/components/select.d.ts.map +1 -1
- package/components/select.js +48 -43
- package/components/select.js.map +1 -1
- package/components/skeleton.d.ts +2 -1
- package/components/skeleton.d.ts.map +1 -1
- package/components/skeleton.js +5 -5
- package/components/skeleton.js.map +1 -1
- package/components/split.d.ts +20 -2
- package/components/split.d.ts.map +1 -1
- package/components/split.js +54 -20
- package/components/split.js.map +1 -1
- package/components/switch.d.ts +6 -5
- package/components/switch.d.ts.map +1 -1
- package/components/switch.js +7 -6
- package/components/switch.js.map +1 -1
- package/components/text.d.ts +2 -1
- package/components/text.d.ts.map +1 -1
- package/components/text.js +5 -6
- package/components/text.js.map +1 -1
- package/components/time.d.ts +6 -22
- package/components/time.d.ts.map +1 -1
- package/components/time.js +7 -67
- package/components/time.js.map +1 -1
- package/components/tooltip.d.ts +13 -2
- package/components/tooltip.d.ts.map +1 -1
- package/components/tooltip.js +24 -5
- package/components/tooltip.js.map +1 -1
- package/components/typewriter.d.ts +4 -4
- package/components/typewriter.d.ts.map +1 -1
- package/components/typewriter.js +4 -5
- package/components/typewriter.js.map +1 -1
- package/core/global-style.d.ts.map +1 -1
- package/core/global-style.js +9 -2
- package/core/global-style.js.map +1 -1
- package/core/super-anchor.d.ts +2 -1
- package/core/super-anchor.d.ts.map +1 -1
- package/core/super-anchor.js +4 -3
- package/core/super-anchor.js.map +1 -1
- package/core/super-input.d.ts +5 -5
- package/core/super-input.d.ts.map +1 -1
- package/core/super-input.js +3 -6
- package/core/super-input.js.map +1 -1
- package/core/super-openable.d.ts.map +1 -1
- package/core/super-openable.js +1 -1
- package/core/super-openable.js.map +1 -1
- package/custom-elements.json +1 -1
- package/dev/components/alert.d.ts +6 -3
- package/dev/components/alert.d.ts.map +1 -1
- package/dev/components/alert.js +38 -25
- package/dev/components/alert.js.map +1 -1
- package/dev/components/avatar.d.ts +7 -2
- package/dev/components/avatar.d.ts.map +1 -1
- package/dev/components/avatar.js +28 -13
- package/dev/components/avatar.js.map +1 -1
- package/dev/components/breath.d.ts +4 -2
- package/dev/components/breath.d.ts.map +1 -1
- package/dev/components/breath.js +20 -6
- package/dev/components/breath.js.map +1 -1
- package/dev/components/button.d.ts +20 -11
- package/dev/components/button.d.ts.map +1 -1
- package/dev/components/button.js +34 -25
- package/dev/components/button.js.map +1 -1
- package/dev/components/card.d.ts +2 -2
- package/dev/components/card.d.ts.map +1 -1
- package/dev/components/card.js +25 -30
- package/dev/components/card.js.map +1 -1
- package/dev/components/carousel.d.ts +8 -5
- package/dev/components/carousel.d.ts.map +1 -1
- package/dev/components/carousel.js +35 -20
- package/dev/components/carousel.js.map +1 -1
- package/dev/components/details.d.ts +7 -3
- package/dev/components/details.d.ts.map +1 -1
- package/dev/components/details.js +12 -4
- package/dev/components/details.js.map +1 -1
- package/dev/components/dialog.d.ts +9 -5
- package/dev/components/dialog.d.ts.map +1 -1
- package/dev/components/dialog.js +30 -24
- package/dev/components/dialog.js.map +1 -1
- package/dev/components/divider.d.ts +3 -4
- package/dev/components/divider.d.ts.map +1 -1
- package/dev/components/divider.js +20 -8
- package/dev/components/divider.js.map +1 -1
- package/dev/components/dragbox.d.ts +9 -8
- package/dev/components/dragbox.d.ts.map +1 -1
- package/dev/components/dragbox.js +8 -1
- package/dev/components/dragbox.js.map +1 -1
- package/dev/components/flex.d.ts +3 -1
- package/dev/components/flex.d.ts.map +1 -1
- package/dev/components/flex.js +24 -4
- package/dev/components/flex.js.map +1 -1
- package/dev/components/form.d.ts +2 -3
- package/dev/components/form.d.ts.map +1 -1
- package/dev/components/form.js +0 -2
- package/dev/components/form.js.map +1 -1
- package/dev/components/grid.d.ts +9 -3
- package/dev/components/grid.d.ts.map +1 -1
- package/dev/components/grid.js +17 -4
- package/dev/components/grid.js.map +1 -1
- package/dev/components/input.d.ts +4 -4
- package/dev/components/input.d.ts.map +1 -1
- package/dev/components/input.js +3 -21
- package/dev/components/input.js.map +1 -1
- package/dev/components/layout.d.ts +4 -6
- package/dev/components/layout.d.ts.map +1 -1
- package/dev/components/layout.js +33 -13
- package/dev/components/layout.js.map +1 -1
- package/dev/components/link.d.ts +3 -1
- package/dev/components/link.d.ts.map +1 -1
- package/dev/components/link.js +3 -1
- package/dev/components/link.js.map +1 -1
- package/dev/components/progress.d.ts +4 -12
- package/dev/components/progress.d.ts.map +1 -1
- package/dev/components/progress.js +14 -18
- package/dev/components/progress.js.map +1 -1
- package/dev/components/range.d.ts +45 -18
- package/dev/components/range.d.ts.map +1 -1
- package/dev/components/range.js +164 -109
- package/dev/components/range.js.map +1 -1
- package/dev/components/rotate.d.ts +3 -2
- package/dev/components/rotate.d.ts.map +1 -1
- package/dev/components/rotate.js +1 -1
- package/dev/components/rotate.js.map +1 -1
- package/dev/components/router.d.ts +15 -17
- package/dev/components/router.d.ts.map +1 -1
- package/dev/components/router.js +10 -10
- package/dev/components/router.js.map +1 -1
- package/dev/components/select.d.ts +6 -9
- package/dev/components/select.d.ts.map +1 -1
- package/dev/components/select.js +58 -45
- package/dev/components/select.js.map +1 -1
- package/dev/components/skeleton.d.ts +2 -1
- package/dev/components/skeleton.d.ts.map +1 -1
- package/dev/components/skeleton.js +6 -6
- package/dev/components/skeleton.js.map +1 -1
- package/dev/components/split.d.ts +20 -2
- package/dev/components/split.d.ts.map +1 -1
- package/dev/components/split.js +69 -32
- package/dev/components/split.js.map +1 -1
- package/dev/components/switch.d.ts +6 -5
- package/dev/components/switch.d.ts.map +1 -1
- package/dev/components/switch.js +23 -20
- package/dev/components/switch.js.map +1 -1
- package/dev/components/text.d.ts +2 -1
- package/dev/components/text.d.ts.map +1 -1
- package/dev/components/text.js +7 -7
- package/dev/components/text.js.map +1 -1
- package/dev/components/time.d.ts +6 -22
- package/dev/components/time.d.ts.map +1 -1
- package/dev/components/time.js +9 -67
- package/dev/components/time.js.map +1 -1
- package/dev/components/tooltip.d.ts +13 -2
- package/dev/components/tooltip.d.ts.map +1 -1
- package/dev/components/tooltip.js +55 -20
- package/dev/components/tooltip.js.map +1 -1
- package/dev/components/typewriter.d.ts +4 -4
- package/dev/components/typewriter.d.ts.map +1 -1
- package/dev/components/typewriter.js +11 -5
- package/dev/components/typewriter.js.map +1 -1
- package/dev/core/global-style.d.ts.map +1 -1
- package/dev/core/global-style.js +18 -10
- package/dev/core/global-style.js.map +1 -1
- package/dev/core/super-anchor.d.ts +2 -1
- package/dev/core/super-anchor.d.ts.map +1 -1
- package/dev/core/super-anchor.js +8 -5
- package/dev/core/super-anchor.js.map +1 -1
- package/dev/core/super-input.d.ts +5 -5
- package/dev/core/super-input.d.ts.map +1 -1
- package/dev/core/super-input.js +21 -20
- package/dev/core/super-input.js.map +1 -1
- package/dev/core/super-openable.d.ts.map +1 -1
- package/dev/core/super-openable.js +1 -1
- package/dev/core/super-openable.js.map +1 -1
- package/dev/range.d.ts +1 -1
- package/dev/range.d.ts.map +1 -1
- package/index.js +13 -13
- package/package.json +11 -8
- package/range.d.ts +1 -1
- package/range.d.ts.map +1 -1
- package/src/alert.ts +11 -0
- package/src/avatar.ts +11 -0
- package/src/breath.ts +13 -0
- package/src/button.ts +11 -0
- package/src/card.ts +11 -0
- package/src/carousel.ts +11 -0
- package/src/components/alert.ts +284 -0
- package/src/components/avatar.ts +109 -0
- package/src/components/breath.ts +165 -0
- package/src/components/button.ts +292 -0
- package/src/components/card.ts +83 -0
- package/src/components/carousel.ts +183 -0
- package/src/components/details.ts +121 -0
- package/src/components/dialog.ts +166 -0
- package/src/components/divider.ts +56 -0
- package/src/components/dragbox.ts +134 -0
- package/src/components/flex.ts +82 -0
- package/src/components/form.ts +82 -0
- package/src/components/grid.ts +87 -0
- package/src/components/input.ts +73 -0
- package/src/components/layout.ts +89 -0
- package/src/components/link.ts +38 -0
- package/src/components/progress.ts +100 -0
- package/src/components/range.ts +399 -0
- package/src/components/rotate.ts +95 -0
- package/src/components/router.ts +281 -0
- package/src/components/select.ts +281 -0
- package/src/components/skeleton.ts +119 -0
- package/src/components/split.ts +225 -0
- package/src/components/switch.ts +184 -0
- package/src/components/text.ts +93 -0
- package/src/components/time.ts +84 -0
- package/src/components/tooltip.ts +150 -0
- package/src/components/typewriter.ts +159 -0
- package/src/core/global-style.ts +105 -0
- package/src/core/super-anchor.ts +55 -0
- package/src/core/super-input.ts +230 -0
- package/src/core/super-openable.ts +51 -0
- package/src/details.ts +11 -0
- package/src/dialog.ts +11 -0
- package/src/divider.ts +11 -0
- package/src/dragbox.ts +11 -0
- package/src/flex.ts +11 -0
- package/src/form.ts +11 -0
- package/src/grid.ts +11 -0
- package/src/index.ts +28 -0
- package/src/input.ts +13 -0
- package/src/layout.ts +12 -0
- package/src/link.ts +13 -0
- package/src/progress.ts +12 -0
- package/src/range.ts +13 -0
- package/src/rotate.ts +13 -0
- package/src/router.ts +12 -0
- package/src/select.ts +13 -0
- package/src/skeleton.ts +13 -0
- package/src/split.ts +13 -0
- package/src/switch.ts +13 -0
- package/src/text.ts +13 -0
- package/src/time.ts +13 -0
- package/src/tooltip.ts +13 -0
- package/src/typewriter.ts +11 -0
- package/vscode.html-custom-data.json +1 -1
- package/web-types.json +1 -1
package/dev/components/button.js
CHANGED
@@ -1,26 +1,23 @@
|
|
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";
|
5
|
+
import { attr } from "@godown/element/directives/attr.js";
|
6
6
|
import { htmlSlot } from "@godown/element/directives/html-slot.js";
|
7
7
|
import { htmlStyle } from "@godown/element/directives/html-style.js";
|
8
|
-
import { constructCSSObject } from "@godown/element/tools/css.js";
|
9
|
-
import { css, html
|
8
|
+
import { constructCSSObject, toVar } from "@godown/element/tools/css.js";
|
9
|
+
import { css, html } from "lit";
|
10
10
|
import { property } from "lit/decorators.js";
|
11
11
|
import { cssGlobalVars, GlobalStyle, scopePrefix } from "../core/global-style.js";
|
12
12
|
const protoName = "button";
|
13
13
|
const cssScope = scopePrefix(protoName);
|
14
|
-
const whiteFont = cssGlobalVars.
|
15
|
-
const blackFont = cssGlobalVars.
|
16
|
-
const toVar = (s) => {
|
17
|
-
return unsafeCSS(`var(${s})`);
|
18
|
-
};
|
14
|
+
const whiteFont = cssGlobalVars.white;
|
15
|
+
const blackFont = cssGlobalVars.black;
|
19
16
|
const colors = constructCSSObject(["color", "background", "gradients"].map((k) => `${cssScope}--${k}`), {
|
20
17
|
black: [
|
21
18
|
whiteFont, // color
|
22
19
|
cssGlobalVars._colors.darkgray[7], // background
|
23
|
-
cssGlobalVars._colors.darkgray[
|
20
|
+
cssGlobalVars._colors.darkgray[5], // gradients
|
24
21
|
],
|
25
22
|
gray: [
|
26
23
|
whiteFont, // color
|
@@ -72,13 +69,21 @@ const colors = constructCSSObject(["color", "background", "gradients"].map((k) =
|
|
72
69
|
cssGlobalVars._colors.teal[6], // background
|
73
70
|
cssGlobalVars._colors.teal[4], // gradients
|
74
71
|
],
|
75
|
-
}, () => `:host`, toVar);
|
72
|
+
}, () => `:host`, (prop) => toVar(prop));
|
76
73
|
/**
|
77
|
-
* {@linkcode Button}.
|
74
|
+
* {@linkcode Button} renders a button.
|
75
|
+
*
|
76
|
+
* Create modal animation upon clicking.
|
77
|
+
*
|
78
|
+
* Available colors (background): none, black, gray, white, blue, green, red, orange, pink, purple, yellow, teal.
|
79
|
+
*
|
80
|
+
* Default color is `black`.
|
81
|
+
*
|
82
|
+
* Set the color to `none` to prevent applying styles.
|
78
83
|
*
|
79
84
|
* @category input
|
80
85
|
*/
|
81
|
-
let Button =
|
86
|
+
let Button = class Button extends GlobalStyle {
|
82
87
|
constructor() {
|
83
88
|
super(...arguments);
|
84
89
|
/**
|
@@ -88,22 +93,23 @@ let Button = Button_1 = class Button extends GlobalStyle {
|
|
88
93
|
}
|
89
94
|
render() {
|
90
95
|
const color = this.nextColor();
|
91
|
-
return
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
</div
|
96
|
-
|
97
|
-
];
|
96
|
+
return html `<div part="root" ${attr(this.observedRecord)}>
|
97
|
+
<span part="modal-root"></span>
|
98
|
+
<div part="content">
|
99
|
+
${[this.content || htmlSlot(), htmlStyle(colors[color])]}
|
100
|
+
</div>
|
101
|
+
</div>`;
|
98
102
|
}
|
99
103
|
focus() {
|
100
104
|
if (this.disabled) {
|
101
105
|
return;
|
102
106
|
}
|
103
107
|
this.active = true;
|
108
|
+
super.focus();
|
104
109
|
}
|
105
110
|
blur() {
|
106
111
|
this.active = false;
|
112
|
+
super.blur();
|
107
113
|
}
|
108
114
|
firstUpdated() {
|
109
115
|
this.events.add(this, "click", this._handelClick, true);
|
@@ -134,7 +140,6 @@ let Button = Button_1 = class Button extends GlobalStyle {
|
|
134
140
|
return this.color;
|
135
141
|
}
|
136
142
|
};
|
137
|
-
Button.colors = colors;
|
138
143
|
__decorate([
|
139
144
|
property({ type: Boolean, reflect: true })
|
140
145
|
], Button.prototype, "disabled", void 0);
|
@@ -152,14 +157,14 @@ __decorate([
|
|
152
157
|
], Button.prototype, "color", void 0);
|
153
158
|
__decorate([
|
154
159
|
property()
|
155
|
-
], Button.prototype, "
|
160
|
+
], Button.prototype, "content", void 0);
|
156
161
|
__decorate([
|
157
162
|
part("modal-root")
|
158
163
|
], Button.prototype, "_modalRoot", void 0);
|
159
164
|
__decorate([
|
160
165
|
part("root")
|
161
166
|
], Button.prototype, "_root", void 0);
|
162
|
-
Button =
|
167
|
+
Button = __decorate([
|
163
168
|
godown(protoName),
|
164
169
|
styles(css `
|
165
170
|
:host(:not([disabled]):active) {
|
@@ -209,7 +214,11 @@ Button = Button_1 = __decorate([
|
|
209
214
|
cursor: pointer;
|
210
215
|
}
|
211
216
|
|
212
|
-
[part=
|
217
|
+
:host([contents]) [part=root] {
|
218
|
+
width: fit-content;
|
219
|
+
}
|
220
|
+
|
221
|
+
[part=root] {
|
213
222
|
width: 100%;
|
214
223
|
height: 100%;
|
215
224
|
overflow: hidden;
|
@@ -220,7 +229,7 @@ Button = Button_1 = __decorate([
|
|
220
229
|
transition-duration: inherit;
|
221
230
|
}
|
222
231
|
|
223
|
-
[part=
|
232
|
+
[part=content] {
|
224
233
|
padding: var(${cssScope}--padding);
|
225
234
|
}
|
226
235
|
|
@@ -241,7 +250,7 @@ Button = Button_1 = __decorate([
|
|
241
250
|
@keyframes kf {
|
242
251
|
0% {
|
243
252
|
transform: scale(0) translate(-50%, -50%);
|
244
|
-
opacity: var(${cssScope}--modal-opacity, 0.
|
253
|
+
opacity: var(${cssScope}--modal-opacity, 0.1);
|
245
254
|
}
|
246
255
|
80% {
|
247
256
|
transform: scale(1) translate(-50%, -50%);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"button.js","sourceRoot":"","sources":["../../src/components/button.ts"],"names":[],"mappings":"
|
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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1,4 @@
|
|
1
|
+
import { type TemplateResult } from "lit";
|
1
2
|
import { GlobalStyle } from "../core/global-style.js";
|
2
3
|
/**
|
3
4
|
* {@linkcode Card} renders a card.
|
@@ -11,10 +12,9 @@ import { GlobalStyle } from "../core/global-style.js";
|
|
11
12
|
* @category display
|
12
13
|
*/
|
13
14
|
declare class Card extends GlobalStyle {
|
14
|
-
shadow: "none" | "always" | "hover";
|
15
15
|
footer: boolean;
|
16
16
|
header: boolean;
|
17
|
-
protected render():
|
17
|
+
protected render(): TemplateResult<1>;
|
18
18
|
}
|
19
19
|
export default Card;
|
20
20
|
//# sourceMappingURL=card.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../src/components/card.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../src/components/card.ts"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAGrD,OAAO,EAAiB,WAAW,EAAe,MAAM,yBAAyB,CAAC;AAOlF;;;;;;;;;;GAUG;AACH,cAuCM,IAAK,SAAQ,WAAW;IAE5B,MAAM,UAAS;IAGf,MAAM,UAAS;IAEf,SAAS,CAAC,MAAM,IAAI,cAAc,CAAC,CAAC,CAAC;CAStC;AAED,eAAe,IAAI,CAAC"}
|
package/dev/components/card.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { __decorate } from "tslib";
|
2
2
|
import { godown } from "@godown/element/decorators/godown.js";
|
3
3
|
import { styles } from "@godown/element/decorators/styles.js";
|
4
|
-
import {
|
4
|
+
import { attr } from "@godown/element/directives/attr.js";
|
5
5
|
import { htmlSlot } from "@godown/element/directives/html-slot.js";
|
6
6
|
import { css, html } from "lit";
|
7
7
|
import { property } from "lit/decorators.js";
|
@@ -22,22 +22,19 @@ const cssScope = scopePrefix(protoName);
|
|
22
22
|
let Card = class Card extends GlobalStyle {
|
23
23
|
constructor() {
|
24
24
|
super(...arguments);
|
25
|
-
this.shadow = "hover";
|
26
25
|
this.footer = false;
|
27
26
|
this.header = false;
|
28
27
|
}
|
29
28
|
render() {
|
30
|
-
|
31
|
-
|
32
|
-
|
29
|
+
return html `<div part="root" ${attr(this.observedRecord)}>
|
30
|
+
${[
|
31
|
+
this.header ? htmlSlot("header") : "",
|
33
32
|
htmlSlot(),
|
34
|
-
|
35
|
-
]
|
33
|
+
this.footer ? htmlSlot("footer") : "",
|
34
|
+
]}
|
35
|
+
</div>`;
|
36
36
|
}
|
37
37
|
};
|
38
|
-
__decorate([
|
39
|
-
property({ reflect: true })
|
40
|
-
], Card.prototype, "shadow", void 0);
|
41
38
|
__decorate([
|
42
39
|
property({ type: Boolean })
|
43
40
|
], Card.prototype, "footer", void 0);
|
@@ -48,41 +45,39 @@ Card = __decorate([
|
|
48
45
|
godown(protoName),
|
49
46
|
styles(css `
|
50
47
|
:host {
|
51
|
-
${cssScope}--shadow-width: .0375em;
|
52
|
-
${cssScope}--shadow-color: transparent;
|
53
48
|
${cssScope}--background: var(${cssGlobalVars.background});
|
54
|
-
${cssScope}--
|
55
|
-
${cssScope}--
|
56
|
-
${cssScope}--
|
49
|
+
${cssScope}--border-width: .0375em;
|
50
|
+
${cssScope}--border-color: transparent;
|
51
|
+
${cssScope}--border-background: var(${cssGlobalVars.passive});
|
57
52
|
${cssScope}--padding: .75em;
|
58
53
|
color: var(${cssGlobalVars.foreground});
|
59
54
|
background: var(${cssScope}--background);
|
55
|
+
border-width: var(${cssScope}--border-width);
|
60
56
|
display: block;
|
61
57
|
flex-shrink: 0;
|
62
58
|
position: relative;
|
63
59
|
overflow: hidden;
|
64
60
|
box-sizing: border-box;
|
65
|
-
border-radius: 0.25em;
|
66
|
-
transition: .15s ease-in-out;
|
67
|
-
}
|
68
|
-
|
69
|
-
:host([shadow="hover"]:hover),
|
70
|
-
:host([shadow="always"]) {
|
71
|
-
${cssScope}--shadow-color: var(${cssScope}--divider-background);
|
72
|
-
box-shadow: inset 0 0 0px var(${cssScope}--shadow-width) var(${cssScope}--shadow-color);
|
73
|
-
}
|
74
|
-
|
75
|
-
[part="divider"] {
|
76
|
-
margin: auto;
|
77
|
-
width: var(${cssScope}--divider-width);
|
78
|
-
height: var(${cssScope}--divider-height);
|
79
|
-
background: var(${cssScope}--divider-background);
|
80
61
|
}
|
81
62
|
|
82
63
|
slot {
|
83
64
|
display: block;
|
84
65
|
padding: var(${cssScope}--padding);
|
85
66
|
}
|
67
|
+
|
68
|
+
:host,
|
69
|
+
slot {
|
70
|
+
border-color: var(${cssScope}--border-background);
|
71
|
+
border-style: solid;
|
72
|
+
}
|
73
|
+
|
74
|
+
[name=footer] {
|
75
|
+
border-top-width: var(${cssScope}--border-width);
|
76
|
+
}
|
77
|
+
|
78
|
+
[name=header] {
|
79
|
+
border-bottom-width: var(${cssScope}--border-width);
|
80
|
+
}
|
86
81
|
`)
|
87
82
|
], Card);
|
88
83
|
export default Card;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"card.js","sourceRoot":"","sources":["../../src/components/card.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AAC9D,OAAO,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AAC9D,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"card.js","sourceRoot":"","sources":["../../src/components/card.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AAC9D,OAAO,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AAC9D,OAAO,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,yCAAyC,CAAC;AACnE,OAAO,EAAE,GAAG,EAAE,IAAI,EAAuB,MAAM,KAAK,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C,OAAO,EAAE,aAAa,EAAE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
|
3
4
|
* {@linkcode Carousel} make the content display as a carousel.
|
@@ -9,6 +10,7 @@ import { GlobalStyle } from "../core/global-style.js";
|
|
9
10
|
*
|
10
11
|
* If no width, it will be the width of the first element.
|
11
12
|
*
|
13
|
+
* @slot - Carousel items, should maintain the same size.
|
12
14
|
* @category display
|
13
15
|
*/
|
14
16
|
declare class Carousel extends GlobalStyle {
|
@@ -24,17 +26,18 @@ declare class Carousel extends GlobalStyle {
|
|
24
26
|
* Element width.
|
25
27
|
*/
|
26
28
|
width: string;
|
27
|
-
_moveRoot: HTMLElement;
|
28
|
-
intervalID: number;
|
29
|
-
_cloneFirst
|
30
|
-
_cloneLast
|
31
|
-
protected render():
|
29
|
+
protected _moveRoot: HTMLElement;
|
30
|
+
protected intervalID: number;
|
31
|
+
private _cloneFirst;
|
32
|
+
private _cloneLast;
|
33
|
+
protected render(): TemplateResult<1>;
|
32
34
|
protected firstUpdated(): Promise<void>;
|
33
35
|
disconnectedCallback(): void;
|
34
36
|
show(i: number): void;
|
35
37
|
next(): void;
|
36
38
|
prev(): void;
|
37
39
|
protected _doTranslateX(xValue: string, noTransition?: boolean): void;
|
40
|
+
checkInterval(): void;
|
38
41
|
}
|
39
42
|
export default Carousel;
|
40
43
|
//# sourceMappingURL=carousel.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"carousel.d.ts","sourceRoot":"","sources":["../../src/components/carousel.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"carousel.d.ts","sourceRoot":"","sources":["../../src/components/carousel.ts"],"names":[],"mappings":"AAQA,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAGrD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAItD;;;;;;;;;;;;GAYG;AACH,cA8CM,QAAS,SAAQ,WAAW;IAChC;;OAEG;IAEH,KAAK,SAAK;IAEV;;OAEG;IAEH,UAAU,SAAK;IAEf;;OAEG;IAEH,KAAK,EAAE,MAAM,CAAC;IAGd,SAAS,CAAC,SAAS,EAAE,WAAW,CAAC;IAEjC,SAAS,CAAC,UAAU,EAAE,MAAM,CAAC;IAE7B,OAAO,CAAC,WAAW,CAA0B;IAE7C,OAAO,CAAC,UAAU,CAA0B;IAE5C,SAAS,CAAC,MAAM,IAAI,cAAc,CAAC,CAAC,CAAC;cAerB,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;IAiB7C,oBAAoB,IAAI,IAAI;IAI5B,IAAI,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI;IAIrB,IAAI,IAAI,IAAI;IAUZ,IAAI,IAAI,IAAI;IAUZ,SAAS,CAAC,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,OAAO,GAAG,IAAI;IAQrE,aAAa,IAAI,IAAI;CAUtB;AAED,eAAe,QAAQ,CAAC"}
|
@@ -2,6 +2,7 @@ import { __decorate } from "tslib";
|
|
2
2
|
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
|
+
import { attr } from "@godown/element/directives/attr.js";
|
5
6
|
import { htmlSlot } from "@godown/element/directives/html-slot.js";
|
6
7
|
import { htmlStyle } from "@godown/element/directives/html-style.js";
|
7
8
|
import iconChevronLeft from "@godown/f7-icon/icons/chevron-left.js";
|
@@ -20,6 +21,7 @@ const protoName = "carousel";
|
|
20
21
|
*
|
21
22
|
* If no width, it will be the width of the first element.
|
22
23
|
*
|
24
|
+
* @slot - Carousel items, should maintain the same size.
|
23
25
|
* @category display
|
24
26
|
*/
|
25
27
|
let Carousel = class Carousel extends GlobalStyle {
|
@@ -35,14 +37,18 @@ let Carousel = class Carousel extends GlobalStyle {
|
|
35
37
|
this.autoChange = 0;
|
36
38
|
}
|
37
39
|
render() {
|
38
|
-
return
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
40
|
+
return html `<div part="root" ${attr(this.observedRecord)}>
|
41
|
+
<i part="prev" @click="${this.prev}">
|
42
|
+
${iconChevronLeft()}
|
43
|
+
</i>
|
44
|
+
<div part="move-root" style="transform:${`translateX(-${this.index + 1}00%)`}">
|
45
|
+
${htmlSlot()}
|
46
|
+
</div>
|
47
|
+
<i part="next" @click="${this.next}">
|
48
|
+
${iconChevronRight()}
|
49
|
+
</i>
|
50
|
+
${htmlStyle(`:host,:host([contents]) [part=root]{width:${this.width};}`)}
|
51
|
+
</div>`;
|
46
52
|
}
|
47
53
|
async firstUpdated() {
|
48
54
|
await this.updateComplete;
|
@@ -56,11 +62,7 @@ let Carousel = class Carousel extends GlobalStyle {
|
|
56
62
|
this.insertBefore(this._cloneFirst, this.firstElementChild);
|
57
63
|
this.show(this.index);
|
58
64
|
}
|
59
|
-
|
60
|
-
this.intervalID = window.setInterval(() => {
|
61
|
-
this.next();
|
62
|
-
}, this.autoChange);
|
63
|
-
}
|
65
|
+
this.checkInterval();
|
64
66
|
}
|
65
67
|
disconnectedCallback() {
|
66
68
|
clearInterval(this.intervalID);
|
@@ -76,6 +78,7 @@ let Carousel = class Carousel extends GlobalStyle {
|
|
76
78
|
else {
|
77
79
|
this.show(this.index + 1);
|
78
80
|
}
|
81
|
+
this.checkInterval();
|
79
82
|
}
|
80
83
|
prev() {
|
81
84
|
if (this.index === 0) {
|
@@ -85,6 +88,7 @@ let Carousel = class Carousel extends GlobalStyle {
|
|
85
88
|
else {
|
86
89
|
this.show(this.index - 1);
|
87
90
|
}
|
91
|
+
this.checkInterval();
|
88
92
|
}
|
89
93
|
_doTranslateX(xValue, noTransition) {
|
90
94
|
this._moveRoot.style.transform = `translateX(${xValue})`;
|
@@ -93,6 +97,16 @@ let Carousel = class Carousel extends GlobalStyle {
|
|
93
97
|
}
|
94
98
|
this._moveRoot.getBoundingClientRect();
|
95
99
|
}
|
100
|
+
checkInterval() {
|
101
|
+
if (this.autoChange) {
|
102
|
+
if (this.intervalID) {
|
103
|
+
clearInterval(this.intervalID);
|
104
|
+
}
|
105
|
+
this.intervalID = window.setInterval(() => {
|
106
|
+
this.next();
|
107
|
+
}, this.autoChange);
|
108
|
+
}
|
109
|
+
}
|
96
110
|
};
|
97
111
|
__decorate([
|
98
112
|
property({ type: Number })
|
@@ -114,20 +128,21 @@ Carousel = __decorate([
|
|
114
128
|
transition: .3s;
|
115
129
|
}
|
116
130
|
|
117
|
-
[part=
|
131
|
+
[part=root] {
|
118
132
|
overflow: hidden;
|
119
133
|
}
|
120
134
|
|
121
|
-
[part=
|
122
|
-
[part=
|
135
|
+
[part=root],
|
136
|
+
[part=move-root] {
|
137
|
+
height: 100%;
|
123
138
|
width: 100%;
|
124
139
|
display: flex;
|
125
140
|
position: relative;
|
126
141
|
transition: inherit;
|
127
142
|
}
|
128
143
|
|
129
|
-
[part=
|
130
|
-
[part=
|
144
|
+
[part=prev],
|
145
|
+
[part=next] {
|
131
146
|
height: 100%;
|
132
147
|
width: 1.5em;
|
133
148
|
z-index: 1;
|
@@ -138,11 +153,11 @@ Carousel = __decorate([
|
|
138
153
|
user-select: none;
|
139
154
|
}
|
140
155
|
|
141
|
-
[part=
|
156
|
+
[part=prev] {
|
142
157
|
left: 0;
|
143
158
|
}
|
144
159
|
|
145
|
-
[part=
|
160
|
+
[part=next] {
|
146
161
|
right: 0;
|
147
162
|
}
|
148
163
|
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"carousel.js","sourceRoot":"","sources":["../../src/components/carousel.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,MAAM,uCAAuC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;uCACG;AAGJ;IADT,IAAI,CAAC,WAAW,CAAC;2CACe;AApB7B,QAAQ;IA9Cb,MAAM,CAAC,SAAS,CAAC;IACjB,MAAM,CACL,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CF,CACF;GACK,QAAQ,CA0Gb;AAED,eAAe,QAAQ,CAAC"}
|
@@ -1,7 +1,11 @@
|
|
1
|
+
import { type TemplateResult } from "lit";
|
1
2
|
import SuperOpenable from "../core/super-openable.js";
|
2
3
|
/**
|
3
|
-
* {@linkcode Details} similar to
|
4
|
+
* {@linkcode Details} similar to `<details>`.
|
4
5
|
*
|
6
|
+
* @slot summary - Details summary if no `summary` is provided.
|
7
|
+
* @slot - Details content.
|
8
|
+
* @fires change - Fired when the details is toggled.
|
5
9
|
* @category display
|
6
10
|
*/
|
7
11
|
declare class Details extends SuperOpenable {
|
@@ -13,8 +17,8 @@ declare class Details extends SuperOpenable {
|
|
13
17
|
* Summary text.
|
14
18
|
*/
|
15
19
|
summary: string;
|
16
|
-
_dd: HTMLDataListElement;
|
17
|
-
protected render():
|
20
|
+
protected _dd: HTMLDataListElement;
|
21
|
+
protected render(): TemplateResult<1>;
|
18
22
|
}
|
19
23
|
export default Details;
|
20
24
|
//# sourceMappingURL=details.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"details.d.ts","sourceRoot":"","sources":["../../src/components/details.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"details.d.ts","sourceRoot":"","sources":["../../src/components/details.ts"],"names":[],"mappings":"AAKA,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAIrD,OAAO,aAAa,MAAM,2BAA2B,CAAC;AAMtD;;;;;;;GAOG;AACH,cAgEM,OAAQ,SAAQ,aAAa;IACjC;;OAEG;IAEH,IAAI,UAAS;IAEb;;OAEG;IAEH,OAAO,SAAM;IAGb,SAAS,CAAC,GAAG,EAAE,mBAAmB,CAAC;IAEnC,SAAS,CAAC,MAAM,IAAI,cAAc,CAAC,CAAC,CAAC;CAetC;AAED,eAAe,OAAO,CAAC"}
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { __decorate } from "tslib";
|
2
2
|
import { godown } from "@godown/element/decorators/godown.js";
|
3
3
|
import { styles } from "@godown/element/decorators/styles.js";
|
4
|
+
import { attr } from "@godown/element/directives/attr.js";
|
4
5
|
import { htmlSlot } from "@godown/element/directives/html-slot.js";
|
5
6
|
import svgCaretDown from "@godown/f7-icon/icons/chevron-down.js";
|
6
7
|
import { css, html } from "lit";
|
@@ -10,8 +11,11 @@ import SuperOpenable from "../core/super-openable.js";
|
|
10
11
|
const protoName = "details";
|
11
12
|
const cssScope = scopePrefix(protoName);
|
12
13
|
/**
|
13
|
-
* {@linkcode Details} similar to
|
14
|
+
* {@linkcode Details} similar to `<details>`.
|
14
15
|
*
|
16
|
+
* @slot summary - Details summary if no `summary` is provided.
|
17
|
+
* @slot - Details content.
|
18
|
+
* @fires change - Fired when the details is toggled.
|
15
19
|
* @category display
|
16
20
|
*/
|
17
21
|
let Details = class Details extends SuperOpenable {
|
@@ -27,10 +31,14 @@ let Details = class Details extends SuperOpenable {
|
|
27
31
|
this.summary = "";
|
28
32
|
}
|
29
33
|
render() {
|
30
|
-
return html `<dl part="root">
|
34
|
+
return html `<dl part="root" ${attr(this.observedRecord)}>
|
31
35
|
<dt part="title" @click="${this._handelClick}">
|
32
|
-
<span part="summary"
|
33
|
-
|
36
|
+
<span part="summary">
|
37
|
+
${this.summary || htmlSlot("summary")}
|
38
|
+
</span>
|
39
|
+
<span>
|
40
|
+
<i part="icon">${svgCaretDown()}</i>
|
41
|
+
</span>
|
34
42
|
</dt>
|
35
43
|
<dd part="details" @click=${this.fill ? () => this.toggle() : null}>
|
36
44
|
<div style="min-height: 0;">${htmlSlot()}</div>
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"details.js","sourceRoot":"","sources":["../../src/components/details.ts"],"names":[],"mappings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IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,IAAI;sCAClC,QAAQ,EAAE;;UAEtC,CAAC;IACT,CAAC;CACF,CAAA;AA1BC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;qCACf;AAMb;IADC,QAAQ,EAAE;wCACE;AAGH;IADT,KAAK,CAAC,IAAI,CAAC;oCACuB;AAd/B,OAAO;IAhEZ,MAAM,CAAC,SAAS,CAAC;IACjB,MAAM,CACL,GAAG,CAAA;;QAEG,QAAQ;QACR,QAAQ;QACR,QAAQ;QACR,QAAQ;QACR,QAAQ;QACR,QAAQ;;;wBAGQ,QAAQ;;;;;;;;;;;;;;;;4BAgBJ,QAAQ;;;;;;;wBAOZ,QAAQ;;;;;;;qBAOX,QAAQ;wBACL,QAAQ;8BACF,QAAQ;;;;;;;;;;;;;8BAaR,QAAQ;;;8BAGR,QAAQ;;GAEnC,CACF;GACK,OAAO,CA+BZ;AAED,eAAe,OAAO,CAAC"}
|
@@ -1,15 +1,19 @@
|
|
1
|
-
import { HandlerEvent } from "@godown/element";
|
1
|
+
import { type HandlerEvent } from "@godown/element";
|
2
|
+
import { type PropertyValues, type TemplateResult } from "lit";
|
2
3
|
import SuperOpenable, { type Direction9 } from "../core/super-openable.js";
|
3
4
|
/**
|
4
|
-
* {@linkcode Dialog} similar to
|
5
|
+
* {@linkcode Dialog} similar to `<dialog>`.
|
5
6
|
*
|
6
7
|
* Like dialog, it listens for submit events and closes itself when the target method is "dialog".
|
7
8
|
*
|
8
|
-
* It listens for the keydown event and also closes itself when the {@linkcode key} contained in the key is pressed
|
9
|
+
* It listens for the keydown event and also closes itself when the {@linkcode key} contained in the key is pressed.
|
9
10
|
*
|
10
11
|
* @category feedback
|
11
12
|
*/
|
12
13
|
declare class Dialog extends SuperOpenable {
|
14
|
+
/**
|
15
|
+
* Direction of the opening animation.
|
16
|
+
*/
|
13
17
|
direction: Direction9;
|
14
18
|
/**
|
15
19
|
* Enable modal, blocking event penetration.
|
@@ -20,11 +24,11 @@ declare class Dialog extends SuperOpenable {
|
|
20
24
|
*/
|
21
25
|
key: string;
|
22
26
|
private _modalInvoke;
|
23
|
-
protected render():
|
27
|
+
protected render(): TemplateResult<1>;
|
24
28
|
showModal(): void;
|
25
29
|
private _submitEvent;
|
26
30
|
private _keydownEvent;
|
27
|
-
protected updated(): void;
|
31
|
+
protected updated(changedProperties: PropertyValues): void;
|
28
32
|
protected _handleKeydown(e: KeyboardEvent): void;
|
29
33
|
protected _handelSubmit(e: HandlerEvent<HTMLFormElement>): void;
|
30
34
|
close(): void;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../src/components/dialog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;
|
1
|
+
{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../src/components/dialog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAKpD,OAAO,EAAa,KAAK,cAAc,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAI1E,OAAO,aAAa,EAAE,EAAE,KAAK,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAK3E;;;;;;;;GAQG;AACH,cAkEM,MAAO,SAAQ,aAAa;IAChC;;OAEG;IAEH,SAAS,EAAE,UAAU,CAAY;IAEjC;;OAEG;IAEH,KAAK,UAAS;IAEd;;OAEG;IAEH,GAAG,SAAY;IAEf,OAAO,CAAC,YAAY,CAAU;IAE9B,SAAS,CAAC,MAAM,IAAI,cAAc,CAAC,CAAC,CAAC;IAOrC,SAAS,IAAI,IAAI;IAQjB,OAAO,CAAC,YAAY,CAAqC;IACzD,OAAO,CAAC,aAAa,CAAqC;IAE1D,SAAS,CAAC,OAAO,CAAC,iBAAiB,EAAE,cAAc,GAAG,IAAI;IAc1D,SAAS,CAAC,cAAc,CAAC,CAAC,EAAE,aAAa,GAAG,IAAI;IAQhD,SAAS,CAAC,aAAa,CAAC,CAAC,EAAE,YAAY,CAAC,eAAe,CAAC,GAAG,IAAI;IAM/D,KAAK,IAAI,IAAI;CAOd;AAED,eAAe,MAAM,CAAC"}
|