godown 3.0.0-canary.1 → 3.0.0-canary.10
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 +37 -8
- package/components/alert.d.ts +5 -3
- package/components/alert.d.ts.map +1 -1
- package/components/alert.js +24 -14
- package/components/alert.js.map +1 -1
- package/components/avatar.d.ts +5 -1
- package/components/avatar.d.ts.map +1 -1
- package/components/avatar.js +7 -3
- package/components/avatar.js.map +1 -1
- package/components/breath.d.ts +2 -1
- package/components/breath.d.ts.map +1 -1
- package/components/breath.js +5 -4
- package/components/breath.js.map +1 -1
- package/components/button.d.ts +16 -9
- package/components/button.d.ts.map +1 -1
- package/components/button.js +22 -20
- package/components/button.js.map +1 -1
- package/components/card.d.ts +1 -2
- package/components/card.d.ts.map +1 -1
- package/components/card.js +5 -11
- package/components/card.js.map +1 -1
- package/components/carousel.d.ts +6 -5
- package/components/carousel.d.ts.map +1 -1
- package/components/carousel.js +3 -2
- package/components/carousel.js.map +1 -1
- package/components/details.d.ts +5 -2
- package/components/details.d.ts.map +1 -1
- package/components/details.js +5 -2
- package/components/details.js.map +1 -1
- package/components/dialog.d.ts +8 -4
- package/components/dialog.d.ts.map +1 -1
- package/components/dialog.js +17 -12
- package/components/dialog.js.map +1 -1
- package/components/divider.d.ts +1 -1
- package/components/divider.js +1 -1
- package/components/divider.js.map +1 -1
- package/components/dragbox.d.ts +7 -7
- package/components/dragbox.d.ts.map +1 -1
- package/components/dragbox.js +1 -1
- package/components/dragbox.js.map +1 -1
- package/components/flex.d.ts +2 -1
- package/components/flex.d.ts.map +1 -1
- package/components/flex.js +8 -0
- package/components/flex.js.map +1 -1
- package/components/form.d.ts +0 -2
- 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 +8 -3
- package/components/grid.d.ts.map +1 -1
- package/components/grid.js +1 -0
- package/components/grid.js.map +1 -1
- package/components/input.d.ts +2 -3
- package/components/input.d.ts.map +1 -1
- package/components/input.js +3 -6
- package/components/input.js.map +1 -1
- package/components/layout.d.ts +3 -6
- package/components/layout.d.ts.map +1 -1
- package/components/layout.js +21 -10
- 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 +2 -11
- package/components/progress.d.ts.map +1 -1
- package/components/progress.js +6 -15
- package/components/progress.js.map +1 -1
- package/components/range.d.ts +43 -17
- package/components/range.d.ts.map +1 -1
- package/components/range.js +132 -58
- package/components/range.js.map +1 -1
- package/components/rotate.d.ts +1 -1
- 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 +6 -8
- 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 +4 -8
- package/components/select.d.ts.map +1 -1
- package/components/select.js +42 -41
- package/components/select.js.map +1 -1
- package/components/skeleton.d.ts.map +1 -1
- package/components/skeleton.js +3 -4
- package/components/skeleton.js.map +1 -1
- package/components/split.d.ts +18 -1
- package/components/split.d.ts.map +1 -1
- package/components/split.js +52 -19
- package/components/split.js.map +1 -1
- package/components/switch.d.ts +4 -4
- package/components/switch.d.ts.map +1 -1
- package/components/switch.js +6 -6
- package/components/switch.js.map +1 -1
- package/components/text.js +3 -3
- package/components/text.js.map +1 -1
- package/components/time.d.ts +4 -20
- package/components/time.d.ts.map +1 -1
- package/components/time.js +5 -66
- package/components/time.js.map +1 -1
- package/components/tooltip.d.ts +11 -1
- package/components/tooltip.d.ts.map +1 -1
- package/components/tooltip.js +23 -5
- package/components/tooltip.js.map +1 -1
- package/components/typewriter.d.ts +2 -2
- package/components/typewriter.d.ts.map +1 -1
- package/components/typewriter.js +2 -2
- package/components/typewriter.js.map +1 -1
- package/core/global-style.d.ts.map +1 -1
- package/core/global-style.js +8 -1
- package/core/global-style.js.map +1 -1
- package/core/super-anchor.js +1 -1
- package/core/super-anchor.js.map +1 -1
- package/core/super-input.d.ts +2 -3
- 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.js.map +1 -1
- package/custom-elements.json +1 -1
- package/dev/components/alert.d.ts +5 -3
- package/dev/components/alert.d.ts.map +1 -1
- package/dev/components/alert.js +35 -24
- package/dev/components/alert.js.map +1 -1
- package/dev/components/avatar.d.ts +5 -1
- package/dev/components/avatar.d.ts.map +1 -1
- package/dev/components/avatar.js +7 -6
- package/dev/components/avatar.js.map +1 -1
- package/dev/components/breath.d.ts +2 -1
- package/dev/components/breath.d.ts.map +1 -1
- package/dev/components/breath.js +3 -1
- package/dev/components/breath.js.map +1 -1
- package/dev/components/button.d.ts +16 -9
- package/dev/components/button.d.ts.map +1 -1
- package/dev/components/button.js +29 -25
- package/dev/components/button.js.map +1 -1
- package/dev/components/card.d.ts +1 -2
- package/dev/components/card.d.ts.map +1 -1
- package/dev/components/card.js +21 -29
- package/dev/components/card.js.map +1 -1
- package/dev/components/carousel.d.ts +6 -5
- package/dev/components/carousel.d.ts.map +1 -1
- package/dev/components/carousel.js +9 -7
- package/dev/components/carousel.js.map +1 -1
- package/dev/components/details.d.ts +5 -2
- package/dev/components/details.d.ts.map +1 -1
- package/dev/components/details.js +4 -1
- package/dev/components/details.js.map +1 -1
- package/dev/components/dialog.d.ts +8 -4
- package/dev/components/dialog.d.ts.map +1 -1
- package/dev/components/dialog.js +23 -18
- package/dev/components/dialog.js.map +1 -1
- package/dev/components/divider.d.ts +1 -1
- package/dev/components/divider.js +1 -1
- package/dev/components/dragbox.d.ts +7 -7
- package/dev/components/dragbox.d.ts.map +1 -1
- package/dev/components/dragbox.js.map +1 -1
- package/dev/components/flex.d.ts +2 -1
- package/dev/components/flex.d.ts.map +1 -1
- package/dev/components/flex.js +8 -0
- package/dev/components/flex.js.map +1 -1
- package/dev/components/form.d.ts +0 -2
- 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 +8 -3
- package/dev/components/grid.d.ts.map +1 -1
- package/dev/components/grid.js +1 -0
- package/dev/components/grid.js.map +1 -1
- package/dev/components/input.d.ts +2 -3
- package/dev/components/input.d.ts.map +1 -1
- package/dev/components/input.js +1 -20
- package/dev/components/input.js.map +1 -1
- package/dev/components/layout.d.ts +3 -6
- package/dev/components/layout.d.ts.map +1 -1
- package/dev/components/layout.js +23 -10
- 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 +2 -11
- package/dev/components/progress.d.ts.map +1 -1
- package/dev/components/progress.js +7 -16
- package/dev/components/progress.js.map +1 -1
- package/dev/components/range.d.ts +43 -17
- package/dev/components/range.d.ts.map +1 -1
- package/dev/components/range.js +157 -99
- package/dev/components/range.js.map +1 -1
- package/dev/components/rotate.d.ts +1 -1
- 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 +6 -8
- 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 +4 -8
- package/dev/components/select.d.ts.map +1 -1
- package/dev/components/select.js +46 -44
- package/dev/components/select.js.map +1 -1
- package/dev/components/skeleton.d.ts.map +1 -1
- package/dev/components/skeleton.js +2 -3
- package/dev/components/skeleton.js.map +1 -1
- package/dev/components/split.d.ts +18 -1
- package/dev/components/split.d.ts.map +1 -1
- package/dev/components/split.js +55 -22
- package/dev/components/split.js.map +1 -1
- package/dev/components/switch.d.ts +4 -4
- package/dev/components/switch.d.ts.map +1 -1
- package/dev/components/switch.js +12 -13
- package/dev/components/switch.js.map +1 -1
- package/dev/components/text.js +3 -3
- package/dev/components/time.d.ts +4 -20
- package/dev/components/time.d.ts.map +1 -1
- package/dev/components/time.js +5 -66
- package/dev/components/time.js.map +1 -1
- package/dev/components/tooltip.d.ts +11 -1
- package/dev/components/tooltip.d.ts.map +1 -1
- package/dev/components/tooltip.js +39 -16
- package/dev/components/tooltip.js.map +1 -1
- package/dev/components/typewriter.d.ts +2 -2
- package/dev/components/typewriter.d.ts.map +1 -1
- package/dev/components/typewriter.js +0 -1
- package/dev/components/typewriter.js.map +1 -1
- package/dev/core/global-style.d.ts.map +1 -1
- package/dev/core/global-style.js +8 -9
- package/dev/core/global-style.js.map +1 -1
- package/dev/core/super-input.d.ts +2 -3
- 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/range.d.ts +1 -1
- package/dev/range.d.ts.map +1 -1
- package/index.js +13 -13
- package/package.json +9 -7
- 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 +282 -0
- package/src/components/avatar.ts +95 -0
- package/src/components/breath.ts +153 -0
- package/src/components/button.ts +286 -0
- package/src/components/card.ts +80 -0
- package/src/components/carousel.ts +169 -0
- package/src/components/details.ts +116 -0
- package/src/components/dialog.ts +165 -0
- package/src/components/divider.ts +44 -0
- package/src/components/dragbox.ts +127 -0
- package/src/components/flex.ts +70 -0
- package/src/components/form.ts +82 -0
- package/src/components/grid.ts +75 -0
- package/src/components/input.ts +72 -0
- package/src/components/layout.ts +82 -0
- package/src/components/link.ts +38 -0
- package/src/components/progress.ts +95 -0
- package/src/components/range.ts +404 -0
- package/src/components/rotate.ts +92 -0
- package/src/components/router.ts +273 -0
- package/src/components/select.ts +268 -0
- package/src/components/skeleton.ts +118 -0
- package/src/components/split.ts +221 -0
- package/src/components/switch.ts +180 -0
- package/src/components/text.ts +95 -0
- package/src/components/time.ts +81 -0
- package/src/components/tooltip.ts +138 -0
- package/src/components/typewriter.ts +154 -0
- package/src/core/global-style.ts +86 -0
- package/src/core/super-anchor.ts +52 -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
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"grid.js","sourceRoot":"","sources":["../../src/components/grid.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AAC9D,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,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,MAAM,SAAS,GAA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AQZ;IADC,QAAQ,EAAE;qCACc;AAQzB;IADC,QAAQ,EAAE;kCACW;AAMtB;IADC,QAAQ,EAAE;qCACK;AAMhB;IADC,QAAQ,EAAE;mCACG;AAjCV,IAAI;IAFT,MAAM,CAAC,SAAS,CAAC;IACjB,MAAM,CAAC,GAAG,CAAA,sBAAsB,CAAC;GAC5B,IAAI,CAmDT;AAED,eAAe,IAAI,CAAC"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import SuperInput from "../core/super-input.js";
|
2
2
|
/**
|
3
|
-
* {@linkcode Input}
|
3
|
+
* {@linkcode Input} renders a text input.
|
4
4
|
*
|
5
5
|
* @category input
|
6
6
|
*/
|
@@ -11,8 +11,7 @@ declare class Input extends SuperInput {
|
|
11
11
|
* If outline, the outline is always present.
|
12
12
|
*/
|
13
13
|
variant: "default" | "outline";
|
14
|
-
|
15
|
-
_input: HTMLInputElement;
|
14
|
+
protected _input: HTMLInputElement;
|
16
15
|
protected render(): import("lit").TemplateResult<1>;
|
17
16
|
reset(): void;
|
18
17
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../src/components/input.ts"],"names":[],"mappings":"AAQA,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAIhD;;;;GAIG;AACH,
|
1
|
+
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../src/components/input.ts"],"names":[],"mappings":"AAQA,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAIhD;;;;GAIG;AACH,cAaM,KAAM,SAAQ,UAAU;IAC5B,IAAI,EAAE,MAAM,GAAG,QAAQ,GAAG,KAAK,GAAG,KAAK,GAAG,OAAO,GAAG,UAAU,CAAU;IAExE,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IAEH,OAAO,EAAE,SAAS,GAAG,SAAS,CAAa;IAG3C,SAAS,CAAC,MAAM,EAAE,gBAAgB,CAAC;IAEnC,SAAS,CAAC,MAAM;IAqBhB,KAAK;CAIN;AAED,eAAe,KAAK,CAAC"}
|
package/dev/components/input.js
CHANGED
@@ -9,7 +9,7 @@ import { cssGlobalVars } from "../core/global-style.js";
|
|
9
9
|
import SuperInput from "../core/super-input.js";
|
10
10
|
const protoName = "input";
|
11
11
|
/**
|
12
|
-
* {@linkcode Input}
|
12
|
+
* {@linkcode Input} renders a text input.
|
13
13
|
*
|
14
14
|
* @category input
|
15
15
|
*/
|
@@ -50,9 +50,6 @@ let Input = class Input extends SuperInput {
|
|
50
50
|
__decorate([
|
51
51
|
property()
|
52
52
|
], Input.prototype, "variant", void 0);
|
53
|
-
__decorate([
|
54
|
-
property()
|
55
|
-
], Input.prototype, "accept", void 0);
|
56
53
|
__decorate([
|
57
54
|
part("input")
|
58
55
|
], Input.prototype, "_input", void 0);
|
@@ -67,22 +64,6 @@ Input = __decorate([
|
|
67
64
|
border-radius: var(${cssGlobalVars.input}-radius);
|
68
65
|
display: block;
|
69
66
|
}
|
70
|
-
|
71
|
-
[part="root"] {
|
72
|
-
width: 100%;
|
73
|
-
display: flex;
|
74
|
-
align-items: center;
|
75
|
-
cursor: inherit;
|
76
|
-
}
|
77
|
-
|
78
|
-
input {
|
79
|
-
height: 100%;
|
80
|
-
width: 100%;
|
81
|
-
margin: 0;
|
82
|
-
color: inherit;
|
83
|
-
cursor: inherit;
|
84
|
-
border-radius: inherit;
|
85
|
-
}
|
86
67
|
`)
|
87
68
|
], Input);
|
88
69
|
export default Input;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"input.js","sourceRoot":"","sources":["../../src/components/input.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,GAAG,EAAE,IAAI,EAAE,O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AAO;wBAChC,IAAI,CAAC,YAAY,IAAI,OAAO;qBAC/B,IAAI,CAAC,QAAQ;kBAChB,IAAI,CAAC,YAAY;QAC3B;YACF,IAAI,CAAC,aAAa,EAAE;SACrB;WACM,CAAC;IACV,CAAC;IAED,KAAK;QACH,IAAI,CAAC,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC;QACjC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC;IAC5B,CAAC;CACF,CAAA;AA9BC;IADC,QAAQ,EAAE;sCACgC;AAGjC;IADT,IAAI,CAAC,OAAO,CAAC;qCACqB;AAZ/B,KAAK;IAbV,MAAM,CAAC,SAAS,CAAC;IACjB,MAAM,CACL,GAAG,CAAA;;mBAEc,aAAa,CAAC,KAAK;oBAClB,aAAa,CAAC,KAAK;mBACpB,aAAa,CAAC,UAAU;wBACnB,aAAa,CAAC,KAAK;2BAChB,aAAa,CAAC,KAAK;;;GAG3C,CACF;GACK,KAAK,CAuCV;AAED,eAAe,KAAK,CAAC"}
|
@@ -3,27 +3,24 @@ import { GlobalStyle } from "../core/global-style.js";
|
|
3
3
|
* {@linkcode NavLayout} renders slot and optional top header, bottom footer.
|
4
4
|
*
|
5
5
|
* @slot - The main content of the layout.
|
6
|
-
*
|
7
6
|
* @slot header - The header of the layout.
|
8
|
-
*
|
9
7
|
* @slot footer - The footer of the layout.
|
10
|
-
*
|
11
8
|
* @category layout
|
12
9
|
*/
|
13
10
|
declare class NavLayout extends GlobalStyle {
|
14
11
|
/**
|
15
|
-
* If true,
|
12
|
+
* If true, remove the header slot.
|
16
13
|
*/
|
17
14
|
noHeader: boolean;
|
18
15
|
/**
|
19
|
-
* If true,
|
16
|
+
* If true, remove the footer slot.
|
20
17
|
*/
|
21
18
|
noFooter: boolean;
|
22
19
|
/**
|
23
20
|
* If true, header will sticky.
|
24
21
|
*/
|
25
22
|
sticky: boolean;
|
26
|
-
protected render(): import("lit").TemplateResult<1
|
23
|
+
protected render(): import("lit").TemplateResult<1>;
|
27
24
|
}
|
28
25
|
export default NavLayout;
|
29
26
|
//# sourceMappingURL=layout.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../src/components/layout.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../src/components/layout.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAItD;;;;;;;GAOG;AACH,cA4BM,SAAU,SAAQ,WAAW;IACjC;;OAEG;IAEH,QAAQ,UAAS;IAEjB;;OAEG;IAEH,QAAQ,UAAS;IAEjB;;OAEG;IAEH,MAAM,UAAS;IAEf,SAAS,CAAC,MAAM;CAajB;AAED,eAAe,SAAS,CAAC"}
|
package/dev/components/layout.js
CHANGED
@@ -2,7 +2,6 @@ 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
4
|
import { classList } from "@godown/element/directives/class-list.js";
|
5
|
-
import { conditionIf } from "@godown/element/directives/condition-if.js";
|
6
5
|
import { htmlSlot } from "@godown/element/directives/html-slot.js";
|
7
6
|
import { css, html } from "lit";
|
8
7
|
import { property } from "lit/decorators.js";
|
@@ -12,20 +11,34 @@ const protoName = "layout";
|
|
12
11
|
* {@linkcode NavLayout} renders slot and optional top header, bottom footer.
|
13
12
|
*
|
14
13
|
* @slot - The main content of the layout.
|
15
|
-
*
|
16
14
|
* @slot header - The header of the layout.
|
17
|
-
*
|
18
15
|
* @slot footer - The footer of the layout.
|
19
|
-
*
|
20
16
|
* @category layout
|
21
17
|
*/
|
22
18
|
let NavLayout = class NavLayout extends GlobalStyle {
|
19
|
+
constructor() {
|
20
|
+
super(...arguments);
|
21
|
+
/**
|
22
|
+
* If true, remove the header slot.
|
23
|
+
*/
|
24
|
+
this.noHeader = false;
|
25
|
+
/**
|
26
|
+
* If true, remove the footer slot.
|
27
|
+
*/
|
28
|
+
this.noFooter = false;
|
29
|
+
/**
|
30
|
+
* If true, header will sticky.
|
31
|
+
*/
|
32
|
+
this.sticky = false;
|
33
|
+
}
|
23
34
|
render() {
|
24
|
-
return
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
35
|
+
return html `${!this.noHeader
|
36
|
+
? html `<header part="header" class="${classList({ sticky: this.sticky })}">${htmlSlot("header")}</header>`
|
37
|
+
: ""}
|
38
|
+
<main part="main">${htmlSlot()}</main>
|
39
|
+
${!this.noFooter
|
40
|
+
? html `<footer part="footer">${htmlSlot("footer")}</footer>`
|
41
|
+
: ""}`;
|
29
42
|
}
|
30
43
|
};
|
31
44
|
__decorate([
|
@@ -52,7 +65,7 @@ NavLayout = __decorate([
|
|
52
65
|
z-index: 1;
|
53
66
|
}
|
54
67
|
|
55
|
-
[part=
|
68
|
+
[part=main] {
|
56
69
|
position: relative;
|
57
70
|
flex: 1;
|
58
71
|
width: 100%;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"layout.js","sourceRoot":"","sources":["../../src/components/layout.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;AACrE,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"layout.js","sourceRoot":"","sources":["../../src/components/layout.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;AACrE,OAAO,EAAE,QAAQ,EAAE,MAAM,yCAAyC,CAAC;AACnE,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AACh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pushState`.
|
13
13
|
*
|
14
|
-
* If "replace", call `history.replaceState
|
14
|
+
* If "replace", call `history.replaceState`.
|
15
|
+
*
|
16
|
+
* If "normal", behave like a normal anchor.
|
15
17
|
*/
|
16
18
|
type: "push" | "replace" | "normal";
|
17
19
|
protected _handleClick(e: MouseEvent): void;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../src/components/link.ts"],"names":[],"mappings":"AAGA,OAAO,WAAW,MAAM,yBAAyB,CAAC;AAKlD;;;;;;;GAOG;AACH,cACM,IAAK,SAAQ,WAAW;IAC5B
|
1
|
+
{"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../src/components/link.ts"],"names":[],"mappings":"AAGA,OAAO,WAAW,MAAM,yBAAyB,CAAC;AAKlD;;;;;;;GAOG;AACH,cACM,IAAK,SAAQ,WAAW;IAC5B;;;;;;OAMG;IAEH,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,QAAQ,CAAY;IAE/C,SAAS,CAAC,YAAY,CAAC,CAAC,EAAE,UAAU;CAOrC;AAED,eAAe,IAAI,CAAC"}
|
package/dev/components/link.js
CHANGED
@@ -18,7 +18,9 @@ let Link = class Link extends SuperAnchor {
|
|
18
18
|
/**
|
19
19
|
* If "push", call `history.pushState`.
|
20
20
|
*
|
21
|
-
* If "replace", call `history.replaceState
|
21
|
+
* If "replace", call `history.replaceState`.
|
22
|
+
*
|
23
|
+
* If "normal", behave like a normal anchor.
|
22
24
|
*/
|
23
25
|
this.type = "normal";
|
24
26
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"link.js","sourceRoot":"","sources":["../../src/components/link.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C,OAAO,WAAW,MAAM,yBAAyB,CAAC;AAClD,OAAO,MAAM,MAAM,aAAa,CAAC;AAEjC,MAAM,SAAS,GAAG,MAAM,CAAC;AAEzB;;;;;;;GAOG;AAEH,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,WAAW;IAA9B;;QACE
|
1
|
+
{"version":3,"file":"link.js","sourceRoot":"","sources":["../../src/components/link.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C,OAAO,WAAW,MAAM,yBAAyB,CAAC;AAClD,OAAO,MAAM,MAAM,aAAa,CAAC;AAEjC,MAAM,SAAS,GAAG,MAAM,CAAC;AAEzB;;;;;;;GAOG;AAEH,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,WAAW;IAA9B;;QACE;;;;;;WAMG;QAEH,SAAI,GAAkC,QAAQ,CAAC;IASjD,CAAC;IAPW,YAAY,CAAC,CAAa;QAClC,IAAI,IAAI,CAAC,IAAI,KAAK,MAAM,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;YACpD,CAAC,CAAC,cAAc,EAAE,CAAC;YACnB,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,IAAI,OAAO,CAAC,CAAC,CAAC,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;YACpD,MAAM,CAAC,SAAS,EAAE,CAAC;QACrB,CAAC;IACH,CAAC;CACF,CAAA;AATC;IADC,QAAQ,EAAE;kCACoC;AAT3C,IAAI;IADT,MAAM,CAAC,SAAS,CAAC;GACZ,IAAI,CAkBT;AAED,eAAe,IAAI,CAAC"}
|
@@ -1,22 +1,13 @@
|
|
1
1
|
import { GlobalStyle } from "../core/global-style.js";
|
2
2
|
/**
|
3
|
-
* {@linkcode Progress} similar to
|
3
|
+
* {@linkcode Progress} similar to `<progress>`.
|
4
4
|
*
|
5
5
|
* @category feedback
|
6
6
|
*/
|
7
7
|
declare class Progress extends GlobalStyle {
|
8
|
-
/**
|
9
|
-
* Maximum.
|
10
|
-
*/
|
11
8
|
max: number;
|
12
|
-
/**
|
13
|
-
* Minimum.
|
14
|
-
*/
|
15
9
|
min: number;
|
16
|
-
|
17
|
-
* Input value.
|
18
|
-
*/
|
19
|
-
value: any;
|
10
|
+
value: number;
|
20
11
|
protected render(): import("lit").TemplateResult<1>;
|
21
12
|
/**
|
22
13
|
* Convert s to a percentage without a percent sign.
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../../src/components/progress.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../../src/components/progress.ts"],"names":[],"mappings":"AAMA,OAAO,EAAiB,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAIrE;;;;GAIG;AACH,cA2CM,QAAS,SAAQ,WAAW;IAEhC,GAAG,SAAK;IAGR,GAAG,SAAK;IAGR,KAAK,EAAE,MAAM,CAAC;IAEd,SAAS,CAAC,MAAM;IAYhB;;;;;OAKG;IACH,YAAY,CAAC,CAAC,GAAE,MAAM,GAAG,MAAY,GAAG,MAAM;CAM/C;AAED,eAAe,QAAQ,CAAC"}
|
@@ -1,35 +1,26 @@
|
|
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 { isNil } from "@godown/element/tools/lib.js";
|
4
5
|
import { css, html } from "lit";
|
5
6
|
import { property } from "lit/decorators.js";
|
6
7
|
import { cssGlobalVars, GlobalStyle } from "../core/global-style.js";
|
7
8
|
const protoName = "progress";
|
8
9
|
/**
|
9
|
-
* {@linkcode Progress} similar to
|
10
|
+
* {@linkcode Progress} similar to `<progress>`.
|
10
11
|
*
|
11
12
|
* @category feedback
|
12
13
|
*/
|
13
14
|
let Progress = class Progress extends GlobalStyle {
|
14
15
|
constructor() {
|
15
16
|
super(...arguments);
|
16
|
-
/**
|
17
|
-
* Maximum.
|
18
|
-
*/
|
19
17
|
this.max = 1;
|
20
|
-
/**
|
21
|
-
* Minimum.
|
22
|
-
*/
|
23
18
|
this.min = 0;
|
24
|
-
/**
|
25
|
-
* Input value.
|
26
|
-
*/
|
27
|
-
this.value = null;
|
28
19
|
}
|
29
20
|
render() {
|
30
21
|
let width = 20;
|
31
22
|
let className;
|
32
|
-
if (this.value
|
23
|
+
if (!isNil(this.value)) {
|
33
24
|
width = this.parsePercent(this.value);
|
34
25
|
className = "static";
|
35
26
|
}
|
@@ -57,7 +48,7 @@ __decorate([
|
|
57
48
|
property({ type: Number })
|
58
49
|
], Progress.prototype, "min", void 0);
|
59
50
|
__decorate([
|
60
|
-
property({ type: Number
|
51
|
+
property({ type: Number })
|
61
52
|
], Progress.prototype, "value", void 0);
|
62
53
|
Progress = __decorate([
|
63
54
|
godown(protoName),
|
@@ -71,14 +62,14 @@ Progress = __decorate([
|
|
71
62
|
color: var(${cssGlobalVars.active});
|
72
63
|
}
|
73
64
|
|
74
|
-
[part=
|
65
|
+
[part=root] {
|
75
66
|
height: inherit;
|
76
67
|
z-index: 1;
|
77
68
|
position: relative;
|
78
69
|
border-radius: inherit;
|
79
70
|
}
|
80
71
|
|
81
|
-
[part=
|
72
|
+
[part=value] {
|
82
73
|
position: absolute;
|
83
74
|
z-index: 2;
|
84
75
|
top: 0;
|
@@ -99,7 +90,7 @@ Progress = __decorate([
|
|
99
90
|
}
|
100
91
|
}
|
101
92
|
|
102
|
-
.static [part=
|
93
|
+
.static [part=value] {
|
103
94
|
animation: none;
|
104
95
|
}
|
105
96
|
`)
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"progress.js","sourceRoot":"","sources":["../../src/components/progress.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AAC9D,OAAO,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AAC9D,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KA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AAC,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;YAC5B,OAAO,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;QAC/B,CAAC;QACD,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC;IAC/D,CAAC;CACF,CAAA;AAhCC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;qCACnB;AAGR;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;qCACnB;AAGR;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;uCACb;AARV,QAAQ;IA3Cb,MAAM,CAAC,SAAS,CAAC;IACjB,MAAM,CAAC,GAAG,CAAA;;;;;;sBAMW,aAAa,CAAC,OAAO;iBAC1B,aAAa,CAAC,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkCpC,CAAC;GACI,QAAQ,CAkCb;AAED,eAAe,QAAQ,CAAC"}
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import SuperInput from "../core/super-input.js";
|
2
2
|
/**
|
3
|
-
* {@linkcode Range} is similar to
|
3
|
+
* {@linkcode Range} is similar to `<input type="range">`.
|
4
4
|
*
|
5
|
-
* Value accepts
|
5
|
+
* Value accepts number, or array.
|
6
6
|
*
|
7
|
-
* Number
|
7
|
+
* Number has 1 handle, the array has the number of its elements and the minimum is 2.
|
8
8
|
*
|
9
9
|
* @category input
|
10
10
|
*/
|
@@ -21,40 +21,66 @@ declare class Range extends SuperInput {
|
|
21
21
|
* Sliding step length.
|
22
22
|
*/
|
23
23
|
step: number;
|
24
|
+
/**
|
25
|
+
* Display vertically.
|
26
|
+
*/
|
24
27
|
vertical: boolean;
|
25
28
|
/**
|
26
|
-
*
|
29
|
+
* Value, or each of values, will render a handle.
|
30
|
+
*
|
31
|
+
* Accepts number or array of numbers.
|
27
32
|
*/
|
28
|
-
value: number | [
|
33
|
+
value: number | number[];
|
29
34
|
/**
|
30
|
-
* The default of `this.value`.
|
35
|
+
* The default of `{@linkcode this.value}`.
|
31
36
|
*/
|
32
|
-
default:
|
33
|
-
_root: HTMLElement;
|
34
|
-
|
37
|
+
default: typeof this.value;
|
38
|
+
protected _root: HTMLElement;
|
39
|
+
protected _handles: NodeListOf<HTMLElement>;
|
40
|
+
lastFocus?: number;
|
35
41
|
/**
|
36
|
-
* Returns true when the second number is greater than the first number
|
42
|
+
* Returns true when the second number is greater than the first number.
|
37
43
|
*/
|
38
44
|
get reverse(): boolean;
|
39
45
|
/**
|
40
|
-
*
|
46
|
+
* If value is array.
|
41
47
|
*/
|
42
48
|
get range(): boolean;
|
43
|
-
|
49
|
+
/**
|
50
|
+
* Return values in the form of an array.
|
51
|
+
*/
|
52
|
+
get rangeValue(): number[];
|
53
|
+
/**
|
54
|
+
* @param len Minimum result length.
|
55
|
+
* @param value Fill value.
|
56
|
+
* @returns Array with length of len.
|
57
|
+
*/
|
58
|
+
padValue(len: number, value?: number): number[];
|
44
59
|
protected render(): import("lit").TemplateResult<1>;
|
45
|
-
protected
|
60
|
+
protected renderHandle(index: number): import("lit").TemplateResult<1>;
|
61
|
+
private _keydownEvent;
|
62
|
+
focusHandle(index: number): void;
|
63
|
+
blurHandle(): void;
|
64
|
+
protected createKeydownEvent(index: number): (e: KeyboardEvent) => void;
|
65
|
+
createMouseDown(index: number): (e: MouseEvent) => void;
|
46
66
|
protected _handleMousedownEnd(e: MouseEvent): void;
|
47
|
-
|
67
|
+
createSetValue(index: number): (numberOrModifier: number | ((value: number) => number)) => void;
|
48
68
|
setEnd(value: number): void;
|
69
|
+
/**
|
70
|
+
* Compute value from event.
|
71
|
+
*/
|
49
72
|
protected _computeValue(e: MouseEvent): number;
|
73
|
+
/**
|
74
|
+
* Ensure that the values do not exceed the range of max and min.
|
75
|
+
*/
|
76
|
+
protected normalizeValue(value: number): number;
|
50
77
|
protected _handleMousedownRoot(e: MouseEvent): void;
|
51
78
|
protected createMousedownListener(mouseMoveCallback: (arg0: number) => void): (e: MouseEvent) => void;
|
52
79
|
protected createMousemoveListener(callback: (arg0: number) => void): (e: MouseEvent) => void;
|
53
80
|
protected _connectedInit(): void;
|
54
81
|
reset(): void;
|
55
|
-
|
56
|
-
|
57
|
-
toSorted(): number | [number, number];
|
82
|
+
sort(): number | number[];
|
83
|
+
toSorted(): number | number[];
|
58
84
|
}
|
59
85
|
export default Range;
|
60
86
|
//# sourceMappingURL=range.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"range.d.ts","sourceRoot":"","sources":["../../src/components/range.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"range.d.ts","sourceRoot":"","sources":["../../src/components/range.ts"],"names":[],"mappings":"AAUA,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAKhD;;;;;;;;GAQG;AACH,cA2FM,KAAM,SAAQ,UAAU;IAC5B;;OAEG;IAEH,GAAG,SAAK;IAER;;OAEG;IAEH,GAAG,SAAO;IAEV;;OAEG;IAEH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IAEH,QAAQ,EAAE,OAAO,CAAC;IAElB;;;;OAIG;IAEH,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAEzB;;OAEG;IAEH,OAAO,EAAE,OAAO,IAAI,CAAC,KAAK,CAAC;IAG3B,SAAS,CAAC,KAAK,EAAE,WAAW,CAAC;IAG7B,SAAS,CAAC,QAAQ,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC;IAG5C,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,IAAI,OAAO,YAEV;IAED;;OAEG;IACH,IAAI,KAAK,IAAI,OAAO,CAEnB;IAED;;OAEG;IACH,IAAI,UAAU,IAAI,MAAM,EAAE,CAEzB;IAED;;;;OAIG;IACH,QAAQ,C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