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/input.js
CHANGED
@@ -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 { classList } from "@godown/element/directives/class-list.js";
|
6
7
|
import { css, html, nothing } from "lit";
|
7
8
|
import { property } from "lit/decorators.js";
|
@@ -9,7 +10,7 @@ import { cssGlobalVars } from "../core/global-style.js";
|
|
9
10
|
import SuperInput from "../core/super-input.js";
|
10
11
|
const protoName = "input";
|
11
12
|
/**
|
12
|
-
* {@linkcode Input}
|
13
|
+
* {@linkcode Input} renders a text input.
|
13
14
|
*
|
14
15
|
* @category input
|
15
16
|
*/
|
@@ -23,7 +24,7 @@ let Input = class Input extends SuperInput {
|
|
23
24
|
this.variant = "default";
|
24
25
|
}
|
25
26
|
render() {
|
26
|
-
return html `<div part="root" class="${classList("input-field", this.variant)}">
|
27
|
+
return html `<div part="root" ${attr(this.observedRecord)} class="${classList("input-field", this.variant)}">
|
27
28
|
${[
|
28
29
|
this._renderPrefix(),
|
29
30
|
html `<input
|
@@ -50,9 +51,6 @@ let Input = class Input extends SuperInput {
|
|
50
51
|
__decorate([
|
51
52
|
property()
|
52
53
|
], Input.prototype, "variant", void 0);
|
53
|
-
__decorate([
|
54
|
-
property()
|
55
|
-
], Input.prototype, "accept", void 0);
|
56
54
|
__decorate([
|
57
55
|
part("input")
|
58
56
|
], Input.prototype, "_input", void 0);
|
@@ -67,22 +65,6 @@ Input = __decorate([
|
|
67
65
|
border-radius: var(${cssGlobalVars.input}-radius);
|
68
66
|
display: block;
|
69
67
|
}
|
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
68
|
`)
|
87
69
|
], Input);
|
88
70
|
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,OAAO,
|
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,IAAI,EAAE,MAAM,oCAAoC,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAC;AACrE,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,OAAO,EAAuB,MAAM,KAAK,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAEhD,MAAM,SAAS,GAAG,OAAO,CAAC;AAE1B;;;;GAIG;AAcH,IAAM,KAAK,GAAX,MAAM,KAAM,SAAQ,UAAU;IAA9B;;QACE,SAAI,GAA6D,MAAM,CAAC;QAIxE;;WAEG;QAEH,YAAO,GAA0B,SAAS,CAAC;IA8B7C,CAAC;IAzBW,MAAM;QACd,OAAO,IAAI,CAAA,oBAAoB,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,WAAW,SAAS,CAAC,aAAa,EAAE,IAAI,CAAC,OAAO,CAAC;MACvG;YACA,IAAI,CAAC,aAAa,EAAE;YACpB,IAAI,CAAA;;gBAEM,IAAI,CAAC,IAAI;cACX,IAAI,CAAC,MAAM;kBACP,IAAI,CAAC,KAAK;uBACL,IAAI,CAAC,WAAW,IAAI,OAAO;sBAC5B,IAAI,CAAC,SAAS;0BACV,IAAI,CAAC,cAAc,IAAI,OAAO;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"}
|
@@ -1,29 +1,27 @@
|
|
1
|
+
import { type TemplateResult } from "lit";
|
1
2
|
import { GlobalStyle } from "../core/global-style.js";
|
2
3
|
/**
|
3
4
|
* {@linkcode NavLayout} renders slot and optional top header, bottom footer.
|
4
5
|
*
|
5
6
|
* @slot - The main content of the layout.
|
6
|
-
*
|
7
7
|
* @slot header - The header of the layout.
|
8
|
-
*
|
9
8
|
* @slot footer - The footer of the layout.
|
10
|
-
*
|
11
9
|
* @category layout
|
12
10
|
*/
|
13
11
|
declare class NavLayout extends GlobalStyle {
|
14
12
|
/**
|
15
|
-
* If true,
|
13
|
+
* If true, remove the header slot.
|
16
14
|
*/
|
17
15
|
noHeader: boolean;
|
18
16
|
/**
|
19
|
-
* If true,
|
17
|
+
* If true, remove the footer slot.
|
20
18
|
*/
|
21
19
|
noFooter: boolean;
|
22
20
|
/**
|
23
21
|
* If true, header will sticky.
|
24
22
|
*/
|
25
23
|
sticky: boolean;
|
26
|
-
protected render():
|
24
|
+
protected render(): TemplateResult<1>;
|
27
25
|
}
|
28
26
|
export default NavLayout;
|
29
27
|
//# 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":"AAIA,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAGrD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAItD;;;;;;;GAOG;AACH,cAiCM,SAAU,SAAQ,WAAW;IACjC;;OAEG;IAEH,QAAQ,UAAS;IAEjB;;OAEG;IAEH,QAAQ,UAAS;IAEjB;;OAEG;IAEH,MAAM,UAAS;IAEf,SAAS,CAAC,MAAM,IAAI,cAAc,CAAC,CAAC,CAAC;CAetC;AAED,eAAe,SAAS,CAAC"}
|
package/dev/components/layout.js
CHANGED
@@ -1,8 +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 {
|
5
|
-
import { conditionIf } from "@godown/element/directives/condition-if.js";
|
4
|
+
import { attr } from "@godown/element/directives/attr.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,36 @@ 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
|
-
html `<
|
27
|
-
|
28
|
-
|
35
|
+
return html `<div part="root" ${attr(this.observedRecord)}>
|
36
|
+
${!this.noHeader
|
37
|
+
? html `<header part="header">${htmlSlot("header")}</header>`
|
38
|
+
: ""}
|
39
|
+
<main part="main">${htmlSlot()}</main>
|
40
|
+
${!this.noFooter
|
41
|
+
? html `<footer part="footer">${htmlSlot("footer")}</footer>`
|
42
|
+
: ""}
|
43
|
+
</div>`;
|
29
44
|
}
|
30
45
|
};
|
31
46
|
__decorate([
|
@@ -40,19 +55,24 @@ __decorate([
|
|
40
55
|
NavLayout = __decorate([
|
41
56
|
godown(protoName),
|
42
57
|
styles(css `
|
43
|
-
:host
|
58
|
+
:host,
|
59
|
+
:host([contents]) [part=root] {
|
44
60
|
min-height: 100%;
|
45
61
|
display: flex;
|
46
62
|
flex-direction: column;
|
47
63
|
}
|
48
64
|
|
49
|
-
|
65
|
+
[part=root] {
|
66
|
+
display: contents;
|
67
|
+
}
|
68
|
+
|
69
|
+
[sticky] header {
|
50
70
|
position: sticky;
|
51
71
|
top: 0;
|
52
72
|
z-index: 1;
|
53
73
|
}
|
54
74
|
|
55
|
-
[part=
|
75
|
+
[part=main] {
|
56
76
|
position: relative;
|
57
77
|
flex: 1;
|
58
78
|
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,
|
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,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,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,MAAM,SAAS,GAAG,QAAQ,CAAC;AAE3B;;;;;;;GAOG;AAkCH,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,WAAW;IAAnC;;QACE;;WAEG;QAEH,aAAQ,GAAG,KAAK,CAAC;QAEjB;;WAEG;QAEH,aAAQ,GAAG,KAAK,CAAC;QAEjB;;WAEG;QAEH,WAAM,GAAG,KAAK,CAAC;IAiBjB,CAAC;IAfW,MAAM;QACd,OAAO,IAAI,CAAA,oBAAoB,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC;MAEtD,CAAC,IAAI,CAAC,QAAQ;YACZ,CAAC,CAAC,IAAI,CAAA,yBAAyB,QAAQ,CAAC,QAAQ,CAAC,WAAW;YAC5D,CAAC,CAAC,EACN;wBACoB,QAAQ,EAAE;MAE5B,CAAC,IAAI,CAAC,QAAQ;YACZ,CAAC,CAAC,IAAI,CAAA,yBAAyB,QAAQ,CAAC,QAAQ,CAAC,WAAW;YAC5D,CAAC,CAAC,EACN;WACO,CAAC;IACV,CAAC;CACF,CAAA;AA7BC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;2CACX;AAMjB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;2CACX;AAMjB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;yCACb;AAjBX,SAAS;IAjCd,MAAM,CAAC,SAAS,CAAC;IACjB,MAAM,CACL,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BF,CACF;GACK,SAAS,CAkCd;AAED,eAAe,SAAS,CAAC"}
|
package/dev/components/link.d.ts
CHANGED
@@ -11,7 +11,9 @@ declare class Link extends SuperAnchor {
|
|
11
11
|
/**
|
12
12
|
* If "push", call `history.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,GAAG,IAAI;CAO5C;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,23 +1,15 @@
|
|
1
|
+
import { type TemplateResult } from "lit";
|
1
2
|
import { GlobalStyle } from "../core/global-style.js";
|
2
3
|
/**
|
3
|
-
* {@linkcode Progress} similar to
|
4
|
+
* {@linkcode Progress} similar to `<progress>`.
|
4
5
|
*
|
5
6
|
* @category feedback
|
6
7
|
*/
|
7
8
|
declare class Progress extends GlobalStyle {
|
8
|
-
/**
|
9
|
-
* Maximum.
|
10
|
-
*/
|
11
9
|
max: number;
|
12
|
-
/**
|
13
|
-
* Minimum.
|
14
|
-
*/
|
15
10
|
min: number;
|
16
|
-
|
17
|
-
|
18
|
-
*/
|
19
|
-
value: any;
|
20
|
-
protected render(): import("lit").TemplateResult<1>;
|
11
|
+
value: number;
|
12
|
+
protected render(): TemplateResult<1>;
|
21
13
|
/**
|
22
14
|
* Convert s to a percentage without a percent sign.
|
23
15
|
*
|
@@ -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":"AAIA,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAGrD,OAAO,EAAiB,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAIrE;;;;GAIG;AACH,cA+CM,QAAS,SAAQ,WAAW;IAEhC,GAAG,SAAK;IAGR,GAAG,SAAK;IAGR,KAAK,EAAE,MAAM,CAAC;IAEd,SAAS,CAAC,MAAM,IAAI,cAAc,CAAC,CAAC,CAAC;IAYrC;;;;;OAKG;IACH,YAAY,CAAC,CAAC,GAAE,MAAM,GAAG,MAAY,GAAG,MAAM;CAM/C;AAED,eAAe,QAAQ,CAAC"}
|
@@ -1,39 +1,31 @@
|
|
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";
|
5
|
+
import { isNil } from "@godown/element/tools/lib.js";
|
4
6
|
import { css, html } from "lit";
|
5
7
|
import { property } from "lit/decorators.js";
|
6
8
|
import { cssGlobalVars, GlobalStyle } from "../core/global-style.js";
|
7
9
|
const protoName = "progress";
|
8
10
|
/**
|
9
|
-
* {@linkcode Progress} similar to
|
11
|
+
* {@linkcode Progress} similar to `<progress>`.
|
10
12
|
*
|
11
13
|
* @category feedback
|
12
14
|
*/
|
13
15
|
let Progress = class Progress extends GlobalStyle {
|
14
16
|
constructor() {
|
15
17
|
super(...arguments);
|
16
|
-
/**
|
17
|
-
* Maximum.
|
18
|
-
*/
|
19
18
|
this.max = 1;
|
20
|
-
/**
|
21
|
-
* Minimum.
|
22
|
-
*/
|
23
19
|
this.min = 0;
|
24
|
-
/**
|
25
|
-
* Input value.
|
26
|
-
*/
|
27
|
-
this.value = null;
|
28
20
|
}
|
29
21
|
render() {
|
30
22
|
let width = 20;
|
31
23
|
let className;
|
32
|
-
if (this.value
|
24
|
+
if (!isNil(this.value)) {
|
33
25
|
width = this.parsePercent(this.value);
|
34
26
|
className = "static";
|
35
27
|
}
|
36
|
-
return html `<div part="root" class="${className}">
|
28
|
+
return html `<div part="root" ${attr(this.observedRecord)} class="${className}">
|
37
29
|
<i part="value" style="width:${width}%;"></i>
|
38
30
|
</div>`;
|
39
31
|
}
|
@@ -57,7 +49,7 @@ __decorate([
|
|
57
49
|
property({ type: Number })
|
58
50
|
], Progress.prototype, "min", void 0);
|
59
51
|
__decorate([
|
60
|
-
property({ type: Number
|
52
|
+
property({ type: Number })
|
61
53
|
], Progress.prototype, "value", void 0);
|
62
54
|
Progress = __decorate([
|
63
55
|
godown(protoName),
|
@@ -65,20 +57,24 @@ Progress = __decorate([
|
|
65
57
|
:host {
|
66
58
|
width: 100%;
|
67
59
|
height: 0.5em;
|
68
|
-
display: inline-block;
|
69
60
|
border-radius: 0.25em;
|
70
61
|
background: var(${cssGlobalVars.passive});
|
71
62
|
color: var(${cssGlobalVars.active});
|
72
63
|
}
|
73
64
|
|
74
|
-
|
65
|
+
:host,
|
66
|
+
[part=root] {
|
67
|
+
display: block;
|
68
|
+
}
|
69
|
+
|
70
|
+
[part=root] {
|
75
71
|
height: inherit;
|
76
72
|
z-index: 1;
|
77
73
|
position: relative;
|
78
74
|
border-radius: inherit;
|
79
75
|
}
|
80
76
|
|
81
|
-
[part=
|
77
|
+
[part=value] {
|
82
78
|
position: absolute;
|
83
79
|
z-index: 2;
|
84
80
|
top: 0;
|
@@ -99,7 +95,7 @@ Progress = __decorate([
|
|
99
95
|
}
|
100
96
|
}
|
101
97
|
|
102
|
-
.static [part=
|
98
|
+
.static [part=value] {
|
103
99
|
animation: none;
|
104
100
|
}
|
105
101
|
`)
|
@@ -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,
|
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,IAAI,EAAE,MAAM,oCAAoC,CAAC;AAC1D,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AACrD,OAAO,EAAE,GAAG,EAAE,IAAI,EAAuB,MAAM,KAAK,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAErE,MAAM,SAAS,GAAG,UAAU,CAAC;AAE7B;;;;GAIG;AAgDH,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,WAAW;IAAlC;;QAEE,QAAG,GAAG,CAAC,CAAC;QAGR,QAAG,GAAG,CAAC,CAAC;IA6BV,CAAC;IAxBW,MAAM;QACd,IAAI,KAAK,GAAG,EAAE,CAAC;QACf,IAAI,SAAiB,CAAC;QACtB,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;YACvB,KAAK,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACtC,SAAS,GAAG,QAAQ,CAAC;QACvB,CAAC;QACD,OAAO,IAAI,CAAA,oBAAoB,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,WAAW,SAAS;qCAC3C,KAAK;WAC/B,CAAC;IACV,CAAC;IAED;;;;;OAKG;IACH,YAAY,CAAC,IAAqB,GAAG;QACnC,IAAI,MAAM,CAAC,CAAC,CAAC,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;IA/Cb,MAAM,CAAC,SAAS,CAAC;IACjB,MAAM,CAAC,GAAG,CAAA;;;;;sBAKW,aAAa,CAAC,OAAO;iBAC1B,aAAa,CAAC,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuCpC,CAAC;GACI,QAAQ,CAkCb;AAED,eAAe,QAAQ,CAAC"}
|
@@ -1,10 +1,11 @@
|
|
1
|
+
import { type TemplateResult } from "lit";
|
1
2
|
import SuperInput from "../core/super-input.js";
|
2
3
|
/**
|
3
|
-
* {@linkcode Range} is similar to
|
4
|
+
* {@linkcode Range} is similar to `<input type="range">`.
|
4
5
|
*
|
5
|
-
* Value accepts
|
6
|
+
* Value accepts number, or array.
|
6
7
|
*
|
7
|
-
* Number
|
8
|
+
* Number has 1 handle, the array has the number of its elements and the minimum is 2.
|
8
9
|
*
|
9
10
|
* @category input
|
10
11
|
*/
|
@@ -21,40 +22,66 @@ declare class Range extends SuperInput {
|
|
21
22
|
* Sliding step length.
|
22
23
|
*/
|
23
24
|
step: number;
|
25
|
+
/**
|
26
|
+
* Display vertically.
|
27
|
+
*/
|
24
28
|
vertical: boolean;
|
25
29
|
/**
|
26
|
-
*
|
30
|
+
* Value, or each of values, will render a handle.
|
31
|
+
*
|
32
|
+
* Accepts number or array of numbers.
|
27
33
|
*/
|
28
|
-
value: number | [
|
34
|
+
value: number | number[];
|
29
35
|
/**
|
30
|
-
* The default of `this.value`.
|
36
|
+
* The default of `{@linkcode this.value}`.
|
31
37
|
*/
|
32
|
-
default:
|
33
|
-
_root: HTMLElement;
|
34
|
-
|
38
|
+
default: typeof this.value;
|
39
|
+
protected _root: HTMLElement;
|
40
|
+
protected _handles: NodeListOf<HTMLElement>;
|
41
|
+
lastFocus?: number;
|
35
42
|
/**
|
36
|
-
* Returns true when the second number is greater than the first number
|
43
|
+
* Returns true when the second number is greater than the first number.
|
37
44
|
*/
|
38
45
|
get reverse(): boolean;
|
39
46
|
/**
|
40
|
-
*
|
47
|
+
* If value is array.
|
41
48
|
*/
|
42
49
|
get range(): boolean;
|
43
|
-
|
44
|
-
|
45
|
-
|
50
|
+
/**
|
51
|
+
* Return values in the form of an array.
|
52
|
+
*/
|
53
|
+
get rangeValue(): number[];
|
54
|
+
/**
|
55
|
+
* @param len Minimum result length.
|
56
|
+
* @param value Fill value.
|
57
|
+
* @returns Array with length of len.
|
58
|
+
*/
|
59
|
+
padValue(len: number, value?: number): number[];
|
60
|
+
protected render(): TemplateResult<1>;
|
61
|
+
protected renderHandle(index: number): TemplateResult<1>;
|
62
|
+
private _keydownEvent;
|
63
|
+
focusHandle(index: number): void;
|
64
|
+
blurHandle(): void;
|
65
|
+
protected createKeydownEvent(index: number): (e: KeyboardEvent) => void;
|
66
|
+
createMouseDown(index: number): (e: MouseEvent) => void;
|
46
67
|
protected _handleMousedownEnd(e: MouseEvent): void;
|
47
|
-
|
68
|
+
createSetValue(index: number): (numberOrModifier: number | ((value: number) => number)) => void;
|
48
69
|
setEnd(value: number): void;
|
70
|
+
/**
|
71
|
+
* Compute value from event.
|
72
|
+
*/
|
49
73
|
protected _computeValue(e: MouseEvent): number;
|
74
|
+
/**
|
75
|
+
* Ensure that the values do not exceed the range of max and min.
|
76
|
+
*/
|
77
|
+
protected normalizeValue(value: number): number;
|
50
78
|
protected _handleMousedownRoot(e: MouseEvent): void;
|
51
79
|
protected createMousedownListener(mouseMoveCallback: (arg0: number) => void): (e: MouseEvent) => void;
|
52
80
|
protected createMousemoveListener(callback: (arg0: number) => void): (e: MouseEvent) => void;
|
53
81
|
protected _connectedInit(): void;
|
54
82
|
reset(): void;
|
55
|
-
|
56
|
-
|
57
|
-
toSorted(): number | [number, number];
|
83
|
+
sort(): number | number[];
|
84
|
+
toSorted(): number | number[];
|
58
85
|
}
|
59
86
|
export default Range;
|
60
87
|
//# 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":"AAOA,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAIrD,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,IAAI,OAAO,CAErB;IAED;;OAEG;IACH,IAAI,KAAK,IAAI,OAAO,CAEnB;IAED;;OAEG;IACH,IAAI,UAAU,IAAI,MAAM,EAAE,CAEzB;IAED;;;;OAIG;IACH,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,SAAI,GAAG,MAAM,EAAE;IAS1C,SAAS,CAAC,MAAM,IAAI,cAAc,CAAC,CAAC,CAAC;IAgCrC,SAAS,CAAC,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,cAAc,CAAC,CAAC,CAAC;IAiBxD,OAAO,CAAC,aAAa,CAAqC;IAE1D,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAShC,UAAU,IAAI,IAAI;IAKlB,SAAS,CAAC,kBAAkB,CAAC,KAAK,EAAE,MAAM,OAI7B,aAAa,KAAG,IAAI;IAWjC,eAAe,CAAC,KAAK,EAAE,MAAM,OAChB,UAAU,KAAG,IAAI;IAM9B,SAAS,CAAC,mBAAmB,CAAC,CAAC,EAAE,UAAU,GAAG,IAAI;IAMlD,cAAc,CAAC,KAAK,EAAE,MAAM,sBACA,MAAM,GAAG,CAAC,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC,KAAG,IAAI;IAavE,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAI3B;;OAEG;IACH,SAAS,CAAC,aAAa,CAAC,CAAC,EAAE,UAAU,GAAG,MAAM;IAO9C;;OAEG;IACH,SAAS,CAAC,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAM/C,SAAS,CAAC,oBAAoB,CAAC,CAAC,EAAE,UAAU,GAAG,IAAI;IAgBnD,SAAS,CAAC,uBAAuB,CAAC,iBAAiB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,OAC9D,UAAU,KAAG,IAAI;IAa9B,SAAS,CAAC,uBAAuB,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,OACrD,UAAU,KAAG,IAAI;IAS9B,SAAS,CAAC,cAAc,IAAI,IAAI;IAahC,KAAK,IAAI,IAAI;IAIb,IAAI,IAAI,MAAM,GAAG,MAAM,EAAE;IAIzB,QAAQ,IAAI,MAAM,GAAG,MAAM,EAAE;CAM9B;AAED,eAAe,KAAK,CAAC"}
|