godown 3.0.0-canary.0 → 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/alert.d.ts +8 -0
- package/dev/alert.d.ts.map +1 -0
- package/dev/alert.js +4 -0
- package/dev/alert.js.map +1 -0
- package/dev/avatar.d.ts +8 -0
- package/dev/avatar.d.ts.map +1 -0
- package/dev/avatar.js +4 -0
- package/dev/avatar.js.map +1 -0
- package/dev/breath.d.ts +9 -0
- package/dev/breath.d.ts.map +1 -0
- package/dev/breath.js +5 -0
- package/dev/breath.js.map +1 -0
- package/dev/button.d.ts +8 -0
- package/dev/button.d.ts.map +1 -0
- package/dev/button.js +4 -0
- package/dev/button.js.map +1 -0
- package/dev/card.d.ts +8 -0
- package/dev/card.d.ts.map +1 -0
- package/dev/card.js +4 -0
- package/dev/card.js.map +1 -0
- package/dev/carousel.d.ts +8 -0
- package/dev/carousel.d.ts.map +1 -0
- package/dev/carousel.js +4 -0
- package/dev/carousel.js.map +1 -0
- package/dev/components/alert.d.ts +52 -0
- package/dev/components/alert.d.ts.map +1 -0
- package/dev/components/alert.js +245 -0
- package/dev/components/alert.js.map +1 -0
- package/dev/components/avatar.d.ts +30 -0
- package/dev/components/avatar.d.ts.map +1 -0
- package/dev/components/avatar.js +92 -0
- package/dev/components/avatar.js.map +1 -0
- package/dev/components/breath.d.ts +35 -0
- package/dev/components/breath.d.ts.map +1 -0
- package/dev/components/breath.js +135 -0
- package/dev/components/breath.js.map +1 -0
- package/dev/components/button.d.ts +52 -0
- package/dev/components/button.d.ts.map +1 -0
- package/dev/components/button.js +260 -0
- package/dev/components/button.js.map +1 -0
- package/dev/components/card.d.ts +19 -0
- package/dev/components/card.d.ts.map +1 -0
- package/dev/components/card.js +81 -0
- package/dev/components/card.js.map +1 -0
- package/dev/components/carousel.d.ts +41 -0
- package/dev/components/carousel.d.ts.map +1 -0
- package/dev/components/carousel.js +157 -0
- package/dev/components/carousel.js.map +1 -0
- package/dev/components/details.d.ts +23 -0
- package/dev/components/details.d.ts.map +1 -0
- package/dev/components/details.js +118 -0
- package/dev/components/details.js.map +1 -0
- package/dev/components/dialog.d.ts +37 -0
- package/dev/components/dialog.d.ts.map +1 -0
- package/dev/components/dialog.js +159 -0
- package/dev/components/dialog.js.map +1 -0
- package/dev/components/divider.d.ts +17 -0
- package/dev/components/divider.d.ts.map +1 -0
- package/dev/components/divider.js +46 -0
- package/dev/components/divider.js.map +1 -0
- package/dev/components/dragbox.d.ts +40 -0
- package/dev/components/dragbox.d.ts.map +1 -0
- package/dev/components/dragbox.js +117 -0
- package/dev/components/dragbox.js.map +1 -0
- package/dev/components/flex.d.ts +32 -0
- package/dev/components/flex.d.ts.map +1 -0
- package/dev/components/flex.js +60 -0
- package/dev/components/flex.js.map +1 -0
- package/dev/components/form.d.ts +22 -0
- package/dev/components/form.d.ts.map +1 -0
- package/dev/components/form.js +77 -0
- package/dev/components/form.js.map +1 -0
- package/dev/components/grid.d.ts +36 -0
- package/dev/components/grid.d.ts.map +1 -0
- package/dev/components/grid.js +54 -0
- package/dev/components/grid.js.map +1 -0
- package/dev/components/input.d.ts +19 -0
- package/dev/components/input.d.ts.map +1 -0
- package/dev/components/input.js +70 -0
- package/dev/components/input.js.map +1 -0
- package/dev/components/layout.d.ts +26 -0
- package/dev/components/layout.d.ts.map +1 -0
- package/dev/components/layout.js +82 -0
- package/dev/components/layout.js.map +1 -0
- package/dev/components/link.d.ts +22 -0
- package/dev/components/link.d.ts.map +1 -0
- package/dev/components/link.js +42 -0
- package/dev/components/link.js.map +1 -0
- package/dev/components/progress.d.ts +21 -0
- package/dev/components/progress.d.ts.map +1 -0
- package/dev/components/progress.js +99 -0
- package/dev/components/progress.js.map +1 -0
- package/dev/components/range.d.ts +86 -0
- package/dev/components/range.d.ts.map +1 -0
- package/dev/components/range.js +364 -0
- package/dev/components/range.js.map +1 -0
- package/dev/components/rotate.d.ts +26 -0
- package/dev/components/rotate.d.ts.map +1 -0
- package/dev/components/rotate.js +86 -0
- package/dev/components/rotate.js.map +1 -0
- package/dev/components/router.d.ts +119 -0
- package/dev/components/router.d.ts.map +1 -0
- package/dev/components/router.js +248 -0
- package/dev/components/router.js.map +1 -0
- package/dev/components/select.d.ts +46 -0
- package/dev/components/select.d.ts.map +1 -0
- package/dev/components/select.js +245 -0
- package/dev/components/select.js.map +1 -0
- package/dev/components/skeleton.d.ts +26 -0
- package/dev/components/skeleton.d.ts.map +1 -0
- package/dev/components/skeleton.js +118 -0
- package/dev/components/skeleton.js.map +1 -0
- package/dev/components/split.d.ts +49 -0
- package/dev/components/split.d.ts.map +1 -0
- package/dev/components/split.js +206 -0
- package/dev/components/split.js.map +1 -0
- package/dev/components/switch.d.ts +39 -0
- package/dev/components/switch.d.ts.map +1 -0
- package/dev/components/switch.js +182 -0
- package/dev/components/switch.js.map +1 -0
- package/dev/components/text.d.ts +19 -0
- package/dev/components/text.d.ts.map +1 -0
- package/dev/components/text.js +93 -0
- package/dev/components/text.js.map +1 -0
- package/dev/components/time.d.ts +37 -0
- package/dev/components/time.d.ts.map +1 -0
- package/dev/components/time.js +75 -0
- package/dev/components/time.js.map +1 -0
- package/dev/components/tooltip.d.ts +48 -0
- package/dev/components/tooltip.d.ts.map +1 -0
- package/dev/components/tooltip.js +137 -0
- package/dev/components/tooltip.js.map +1 -0
- package/dev/components/typewriter.d.ts +55 -0
- package/dev/components/typewriter.d.ts.map +1 -0
- package/dev/components/typewriter.js +155 -0
- package/dev/components/typewriter.js.map +1 -0
- package/dev/core/global-style.d.ts +21 -0
- package/dev/core/global-style.d.ts.map +1 -0
- package/dev/core/global-style.js +76 -0
- package/dev/core/global-style.js.map +1 -0
- package/dev/core/super-anchor.d.ts +15 -0
- package/dev/core/super-anchor.d.ts.map +1 -0
- package/dev/core/super-anchor.js +58 -0
- package/dev/core/super-anchor.js.map +1 -0
- package/dev/core/super-input.d.ts +38 -0
- package/dev/core/super-input.d.ts.map +1 -0
- package/dev/core/super-input.js +182 -0
- package/dev/core/super-input.js.map +1 -0
- package/dev/core/super-openable.d.ts +19 -0
- package/dev/core/super-openable.d.ts.map +1 -0
- package/dev/core/super-openable.js +36 -0
- package/dev/core/super-openable.js.map +1 -0
- package/dev/details.d.ts +8 -0
- package/dev/details.d.ts.map +1 -0
- package/dev/details.js +4 -0
- package/dev/details.js.map +1 -0
- package/dev/dialog.d.ts +8 -0
- package/dev/dialog.d.ts.map +1 -0
- package/dev/dialog.js +4 -0
- package/dev/dialog.js.map +1 -0
- package/dev/divider.d.ts +8 -0
- package/dev/divider.d.ts.map +1 -0
- package/dev/divider.js +4 -0
- package/dev/divider.js.map +1 -0
- package/dev/dragbox.d.ts +8 -0
- package/dev/dragbox.d.ts.map +1 -0
- package/dev/dragbox.js +4 -0
- package/dev/dragbox.js.map +1 -0
- package/dev/flex.d.ts +8 -0
- package/dev/flex.d.ts.map +1 -0
- package/dev/flex.js +4 -0
- package/dev/flex.js.map +1 -0
- package/dev/form.d.ts +8 -0
- package/dev/form.d.ts.map +1 -0
- package/dev/form.js +4 -0
- package/dev/form.js.map +1 -0
- package/dev/grid.d.ts +8 -0
- package/dev/grid.d.ts.map +1 -0
- package/dev/grid.js +4 -0
- package/dev/grid.js.map +1 -0
- package/dev/index.d.ts +29 -0
- package/dev/index.d.ts.map +1 -0
- package/dev/index.js +29 -0
- package/dev/index.js.map +1 -0
- package/dev/input.d.ts +9 -0
- package/dev/input.d.ts.map +1 -0
- package/dev/input.js +5 -0
- package/dev/input.js.map +1 -0
- package/dev/layout.d.ts +9 -0
- package/dev/layout.d.ts.map +1 -0
- package/dev/layout.js +5 -0
- package/dev/layout.js.map +1 -0
- package/dev/link.d.ts +9 -0
- package/dev/link.d.ts.map +1 -0
- package/dev/link.js +5 -0
- package/dev/link.js.map +1 -0
- package/dev/progress.d.ts +9 -0
- package/dev/progress.d.ts.map +1 -0
- package/dev/progress.js +5 -0
- package/dev/progress.js.map +1 -0
- package/dev/range.d.ts +9 -0
- package/dev/range.d.ts.map +1 -0
- package/dev/range.js +5 -0
- package/dev/range.js.map +1 -0
- package/dev/rotate.d.ts +9 -0
- package/dev/rotate.d.ts.map +1 -0
- package/dev/rotate.js +5 -0
- package/dev/rotate.js.map +1 -0
- package/dev/router.d.ts +9 -0
- package/dev/router.d.ts.map +1 -0
- package/dev/router.js +5 -0
- package/dev/router.js.map +1 -0
- package/dev/select.d.ts +9 -0
- package/dev/select.d.ts.map +1 -0
- package/dev/select.js +5 -0
- package/dev/select.js.map +1 -0
- package/dev/skeleton.d.ts +9 -0
- package/dev/skeleton.d.ts.map +1 -0
- package/dev/skeleton.js +5 -0
- package/dev/skeleton.js.map +1 -0
- package/dev/split.d.ts +9 -0
- package/dev/split.d.ts.map +1 -0
- package/dev/split.js +5 -0
- package/dev/split.js.map +1 -0
- package/dev/switch.d.ts +9 -0
- package/dev/switch.d.ts.map +1 -0
- package/dev/switch.js +5 -0
- package/dev/switch.js.map +1 -0
- package/dev/text.d.ts +9 -0
- package/dev/text.d.ts.map +1 -0
- package/dev/text.js +5 -0
- package/dev/text.js.map +1 -0
- package/dev/time.d.ts +9 -0
- package/dev/time.d.ts.map +1 -0
- package/dev/time.js +5 -0
- package/dev/time.js.map +1 -0
- package/dev/tooltip.d.ts +9 -0
- package/dev/tooltip.d.ts.map +1 -0
- package/dev/tooltip.js +5 -0
- package/dev/tooltip.js.map +1 -0
- package/dev/typewriter.d.ts +8 -0
- package/dev/typewriter.d.ts.map +1 -0
- package/dev/typewriter.js +4 -0
- package/dev/typewriter.js.map +1 -0
- package/index.js +13 -13
- package/package.json +10 -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 +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
package/components/grid.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"grid.js","sources":["../src/components/grid.ts"],"sourcesContent":null,"names":[],"mappings":";;;;;;;;;;;AAWA,MAAM,SAAS,GAAG,MAAM
|
1
|
+
{"version":3,"file":"grid.js","sources":["../src/components/grid.ts"],"sourcesContent":null,"names":[],"mappings":";;;;;;;;;;;AAWA,MAAM,SAAS,GAAG,MAAM;AAExB;;;;;AAKE;AAGF,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,WAAW,CAAA;IAmClB,MAAM,GAAA;QACd,OAAO;AACL,YAAA,QAAQ,EAAE;YACV,SAAS,CACP,SAAS,CAAC;AACR,gBAAA,OAAO,EAAE;oBACP,GAAG,EAAE,IAAI,CAAC,GAAG;oBACb,uBAAuB,EAAE,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,UAAU,IAAI,CAAC,OAAO,CAAO,KAAA,CAAA,GAAG,IAAI,CAAC,OAAO;oBACjG,oBAAoB,EAAE,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,UAAU,IAAI,CAAC,IAAI,CAAO,KAAA,CAAA,GAAG,IAAI,CAAC,IAAI;oBACrF,eAAe,EAAE,IAAI,CAAC,OAAO;oBAC7B,aAAa,EAAE,IAAI,CAAC,KAAK;AAC1B,iBAAA;AACF,aAAA,CAAC,CACH;SACF;;CAEL;AA9CE,UAAA,CAAA;AADC,IAAA,QAAQ;AACE,CAAA,EAAA,IAAA,CAAA,SAAA,EAAA,KAAA,EAAA,KAAA,CAAA,CAAA;AAQX,UAAA,CAAA;AADC,IAAA,QAAQ;AACe,CAAA,EAAA,IAAA,CAAA,SAAA,EAAA,SAAA,EAAA,KAAA,CAAA,CAAA;AAQxB,UAAA,CAAA;AADC,IAAA,QAAQ;AACY,CAAA,EAAA,IAAA,CAAA,SAAA,EAAA,MAAA,EAAA,KAAA,CAAA,CAAA;AAMrB,UAAA,CAAA;AADC,IAAA,QAAQ;AACM,CAAA,EAAA,IAAA,CAAA,SAAA,EAAA,SAAA,EAAA,KAAA,CAAA,CAAA;AAMf,UAAA,CAAA;AADC,IAAA,QAAQ;AACI,CAAA,EAAA,IAAA,CAAA,SAAA,EAAA,OAAA,EAAA,KAAA,CAAA,CAAA;AAjCT,IAAI,GAAA,UAAA,CAAA;IAFT,MAAM,CAAC,SAAS,CAAA;AAChB,IAAA,MAAM,CAAC,GAAG,CAAA,CAAA,mBAAA,CAAqB;AAC1B,CAAA,EAAA,IAAI,CAmDV;AAEA,aAAe,IAAI;;;;"}
|
package/components/input.d.ts
CHANGED
@@ -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,cAIM,KAAM,SAAQ,UAAU;IAC5B,IAAI,EAAE,MAAM,GAAG,QAAQ,GAAG,KAAK,GAAG,KAAK,GAAG,OAAO,GAAG,UAAU,CAAU;
|
1
|
+
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../src/components/input.ts"],"names":[],"mappings":"AAQA,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAIhD;;;;GAIG;AACH,cAIM,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;IAQhB,KAAK;CAIN;AAED,eAAe,KAAK,CAAC"}
|
package/components/input.js
CHANGED
@@ -3,14 +3,14 @@ import { godown } from '@godown/element/decorators/godown.js';
|
|
3
3
|
import { part } from '@godown/element/decorators/part.js';
|
4
4
|
import { styles } from '@godown/element/decorators/styles.js';
|
5
5
|
import { classList } from '@godown/element/directives/class-list.js';
|
6
|
-
import {
|
6
|
+
import { html, nothing, css } from 'lit';
|
7
7
|
import { property } from 'lit/decorators.js';
|
8
8
|
import { cssGlobalVars } from '../core/global-style.js';
|
9
9
|
import SuperInput from '../core/super-input.js';
|
10
10
|
|
11
11
|
const protoName = "input";
|
12
12
|
/**
|
13
|
-
* {@linkcode Input}
|
13
|
+
* {@linkcode Input} renders a text input.
|
14
14
|
*
|
15
15
|
* @category input
|
16
16
|
*/
|
@@ -38,15 +38,12 @@ let Input = class Input extends SuperInput {
|
|
38
38
|
__decorate([
|
39
39
|
property()
|
40
40
|
], Input.prototype, "variant", void 0);
|
41
|
-
__decorate([
|
42
|
-
property()
|
43
|
-
], Input.prototype, "accept", void 0);
|
44
41
|
__decorate([
|
45
42
|
part("input")
|
46
43
|
], Input.prototype, "_input", void 0);
|
47
44
|
Input = __decorate([
|
48
45
|
godown(protoName),
|
49
|
-
styles(css `:host{width:var(${cssGlobalVars.input}-width);height:var(${cssGlobalVars.input}-height);color:var(${cssGlobalVars.foreground});background:var(${cssGlobalVars.input}-background);border-radius:var(${cssGlobalVars.input}-radius);display:block}
|
46
|
+
styles(css `:host{width:var(${cssGlobalVars.input}-width);height:var(${cssGlobalVars.input}-height);color:var(${cssGlobalVars.foreground});background:var(${cssGlobalVars.input}-background);border-radius:var(${cssGlobalVars.input}-radius);display:block}`)
|
50
47
|
], Input);
|
51
48
|
var Input$1 = Input;
|
52
49
|
|
package/components/input.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"input.js","sources":["../src/components/input.ts"],"sourcesContent":null,"names":[],"mappings":";;;;;;;;;;AAUA,MAAM,SAAS,GAAG,OAAO
|
1
|
+
{"version":3,"file":"input.js","sources":["../src/components/input.ts"],"sourcesContent":null,"names":[],"mappings":";;;;;;;;;;AAUA,MAAM,SAAS,GAAG,OAAO;AAEzB;;;;AAIE;AAKF,IAAM,KAAK,GAAX,MAAM,KAAM,SAAQ,UAAU,CAAA;AAA9B,IAAA,WAAA,GAAA;;QACE,IAAI,CAAA,IAAA,GAA6D,MAAM;AAIvE;;AAEE;QAEF,IAAO,CAAA,OAAA,GAA0B,SAAS;;IAKhC,MAAM,GAAA;QACd,OAAO,IAAI,CAAA,CAAA,wBAAA,EAA2B,SAAS,CAAC,aAAa,EAAE,IAAI,CAAC,OAAO,CAAC,CAC1E,EAAA,EAAA;YACA,IAAI,CAAC,aAAa,EAAE;AACpB,YAAA,IAAI,CAAA,CAEM,0BAAA,EAAA,IAAI,CAAC,IAAI,CAAA,MAAA,EACX,IAAI,CAAC,MAAM,aACP,IAAI,CAAC,KAAK,CACL,eAAA,EAAA,IAAI,CAAC,WAAW,IAAI,OAAO,CAC5B,cAAA,EAAA,IAAI,CAAC,SAAS,CAAA,kBAAA,EACV,IAAI,CAAC,cAAc,IAAI,OAAO,CAAA,gBAAA,EAChC,IAAI,CAAC,YAAY,IAAI,OAAO,CAAA,aAAA,EAC/B,IAAI,CAAC,QAAQ,aAChB,IAAI,CAAC,YAAY,CAC3B,EAAA,CAAA;YACF,IAAI,CAAC,aAAa,EAAE;AACrB,SAAA,CAAA,MAAA,CACM;;IAGT,KAAK,GAAA;QACH,IAAI,CAAC,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC,OAAO;AAChC,QAAA,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,OAAO;;CAE7B;AA9BE,UAAA,CAAA;AADC,IAAA,QAAQ;AACiC,CAAA,EAAA,KAAA,CAAA,SAAA,EAAA,SAAA,EAAA,KAAA,CAAA,CAAA;AAGhC,UAAA,CAAA;IADT,IAAI,CAAC,OAAO;AACqB,CAAA,EAAA,KAAA,CAAA,SAAA,EAAA,QAAA,EAAA,KAAA,CAAA,CAAA;AAZ9B,KAAK,GAAA,UAAA,CAAA;IAJV,MAAM,CAAC,SAAS,CAAA;IAChB,MAAM,CACL,GAAG,CAAA,CAAmB,gBAAA,EAAA,aAAa,CAAC,KAAK,CAAA,mBAAA,EAAsB,aAAa,CAAC,KAAK,CAAA,mBAAA,EAAsB,aAAa,CAAC,UAAU,CAAoB,iBAAA,EAAA,aAAa,CAAC,KAAK,kCAAkC,aAAa,CAAC,KAAK,CAAA,uBAAA,CAAyB;AAEjP,CAAA,EAAA,KAAK,CAuCX;AAEA,cAAe,KAAK;;;;"}
|
package/components/layout.d.ts
CHANGED
@@ -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,cAIM,SAAU,SAAQ,WAAW;IACjC;;OAEG;IAEH,QAAQ,UAAS;IAEjB;;OAEG;IAEH,QAAQ,UAAS;IAEjB;;OAEG;IAEH,MAAM,UAAS;IAEf,SAAS,CAAC,MAAM;CAWjB;AAED,eAAe,SAAS,CAAC"}
|
package/components/layout.js
CHANGED
@@ -2,9 +2,8 @@ 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
|
-
import {
|
6
|
+
import { html, css } from 'lit';
|
8
7
|
import { property } from 'lit/decorators.js';
|
9
8
|
import { GlobalStyle } from '../core/global-style.js';
|
10
9
|
|
@@ -13,20 +12,32 @@ const protoName = "layout";
|
|
13
12
|
* {@linkcode NavLayout} renders slot and optional top header, bottom footer.
|
14
13
|
*
|
15
14
|
* @slot - The main content of the layout.
|
16
|
-
*
|
17
15
|
* @slot header - The header of the layout.
|
18
|
-
*
|
19
16
|
* @slot footer - The footer of the layout.
|
20
|
-
*
|
21
17
|
* @category layout
|
22
18
|
*/
|
23
19
|
let NavLayout = class NavLayout extends GlobalStyle {
|
20
|
+
constructor() {
|
21
|
+
super(...arguments);
|
22
|
+
/**
|
23
|
+
* If true, remove the header slot.
|
24
|
+
*/
|
25
|
+
this.noHeader = false;
|
26
|
+
/**
|
27
|
+
* If true, remove the footer slot.
|
28
|
+
*/
|
29
|
+
this.noFooter = false;
|
30
|
+
/**
|
31
|
+
* If true, header will sticky.
|
32
|
+
*/
|
33
|
+
this.sticky = false;
|
34
|
+
}
|
24
35
|
render() {
|
25
|
-
return
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
36
|
+
return html `${!this.noHeader
|
37
|
+
? html `<header part="header" class="${classList({ sticky: this.sticky })}">${htmlSlot("header")}</header>`
|
38
|
+
: ""}<main part="main">${htmlSlot()}</main>${!this.noFooter
|
39
|
+
? html `<footer part="footer">${htmlSlot("footer")}</footer>`
|
40
|
+
: ""}`;
|
30
41
|
}
|
31
42
|
};
|
32
43
|
__decorate([
|
package/components/layout.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"layout.js","sources":["../src/components/layout.ts"],"sourcesContent":null,"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"layout.js","sources":["../src/components/layout.ts"],"sourcesContent":null,"names":[],"mappings":";;;;;;;;;AASA,MAAM,SAAS,GAAG,QAAQ;AAE1B;;;;;;;AAOE;AAKF,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,WAAW,CAAA;AAAnC,IAAA,WAAA,GAAA;;AACE;;AAEE;QAEF,IAAQ,CAAA,QAAA,GAAG,KAAK;AAEhB;;AAEE;QAEF,IAAQ,CAAA,QAAA,GAAG,KAAK;AAEhB;;AAEE;QAEF,IAAM,CAAA,MAAA,GAAG,KAAK;;IAEJ,MAAM,GAAA;AACd,QAAA,OAAO,IAAI,CAAA,CAAA,EACT,CAAC,IAAI,CAAC;AACJ,cAAE,IAAI,CAAA,gCAAgC,SAAS,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,CAAA,EAAA,EAAK,QAAQ,CAAC,QAAQ,CAAC,CAAU,SAAA;cACvG,EACN,CACoB,kBAAA,EAAA,QAAQ,EAAE,CAE5B,OAAA,EAAA,CAAC,IAAI,CAAC;cACF,IAAI,CAAA,CAAA,sBAAA,EAAyB,QAAQ,CAAC,QAAQ,CAAC,CAAU,SAAA;cACzD,EACN,CAAA,CAAE;;CAEN;AA3BE,UAAA,CAAA;AADC,IAAA,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE;AACX,CAAA,EAAA,SAAA,CAAA,SAAA,EAAA,UAAA,EAAA,KAAA,CAAA,CAAA;AAMhB,UAAA,CAAA;AADC,IAAA,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE;AACX,CAAA,EAAA,SAAA,CAAA,SAAA,EAAA,UAAA,EAAA,KAAA,CAAA,CAAA;AAMhB,UAAA,CAAA;AADC,IAAA,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE;AACb,CAAA,EAAA,SAAA,CAAA,SAAA,EAAA,QAAA,EAAA,KAAA,CAAA,CAAA;AAjBV,SAAS,GAAA,UAAA,CAAA;IAJd,MAAM,CAAC,SAAS,CAAA;AAChB,IAAA,MAAM,CACL,GAAG,CAAA,CAAA,+KAAA,CAAiL;AAEhL,CAAA,EAAA,SAAS,CAgCf;AAEA,aAAe,SAAS;;;;"}
|
package/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;
|
package/components/link.d.ts.map
CHANGED
@@ -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/components/link.js
CHANGED
@@ -19,7 +19,9 @@ let Link = class Link extends SuperAnchor {
|
|
19
19
|
/**
|
20
20
|
* If "push", call `history.pushState`.
|
21
21
|
*
|
22
|
-
* If "replace", call `history.replaceState
|
22
|
+
* If "replace", call `history.replaceState`.
|
23
|
+
*
|
24
|
+
* If "normal", behave like a normal anchor.
|
23
25
|
*/
|
24
26
|
this.type = "normal";
|
25
27
|
}
|
package/components/link.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"link.js","sources":["../src/components/link.ts"],"sourcesContent":null,"names":[],"mappings":";;;;;;AAMA,MAAM,SAAS,GAAG,MAAM
|
1
|
+
{"version":3,"file":"link.js","sources":["../src/components/link.ts"],"sourcesContent":null,"names":[],"mappings":";;;;;;AAMA,MAAM,SAAS,GAAG,MAAM;AAExB;;;;;;;AAOE;AAEF,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,WAAW,CAAA;AAA9B,IAAA,WAAA,GAAA;;AACE;;;;;;AAME;QAEF,IAAI,CAAA,IAAA,GAAkC,QAAQ;;AAEpC,IAAA,YAAY,CAAC,CAAa,EAAA;AAClC,QAAA,IAAI,IAAI,CAAC,IAAI,KAAK,MAAM,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS,EAAE;YACnD,CAAC,CAAC,cAAc,EAAE;AAClB,YAAA,CAAC,OAAO,CAAC,CAAA,EAAG,IAAI,CAAC,IAAI,OAAO,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC;YACnD,MAAM,CAAC,SAAS,EAAE;;;CAGxB;AATE,UAAA,CAAA;AADC,IAAA,QAAQ;AACqC,CAAA,EAAA,IAAA,CAAA,SAAA,EAAA,MAAA,EAAA,KAAA,CAAA,CAAA;AAT1C,IAAI,GAAA,UAAA,CAAA;IADT,MAAM,CAAC,SAAS;AACX,CAAA,EAAA,IAAI,CAkBV;AAEA,aAAe,IAAI;;;;"}
|
package/components/progress.d.ts
CHANGED
@@ -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,cAEM,QAAS,SAAQ,WAAW;IAEhC,GAAG,SAAK;IAGR,GAAG,SAAK;IAGR,KAAK,EAAE,MAAM,CAAC;IAEd,SAAS,CAAC,MAAM;IAUhB;;;;;OAKG;IACH,YAAY,CAAC,CAAC,GAAE,MAAM,GAAG,MAAY,GAAG,MAAM;CAM/C;AAED,eAAe,QAAQ,CAAC"}
|
package/components/progress.js
CHANGED
@@ -1,36 +1,27 @@
|
|
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 { isNil } from '@godown/element/tools/lib.js';
|
5
|
+
import { html, css } from 'lit';
|
5
6
|
import { property } from 'lit/decorators.js';
|
6
|
-
import {
|
7
|
+
import { GlobalStyle, cssGlobalVars } from '../core/global-style.js';
|
7
8
|
|
8
9
|
const protoName = "progress";
|
9
10
|
/**
|
10
|
-
* {@linkcode Progress} similar to
|
11
|
+
* {@linkcode Progress} similar to `<progress>`.
|
11
12
|
*
|
12
13
|
* @category feedback
|
13
14
|
*/
|
14
15
|
let Progress = class Progress extends GlobalStyle {
|
15
16
|
constructor() {
|
16
17
|
super(...arguments);
|
17
|
-
/**
|
18
|
-
* Maximum.
|
19
|
-
*/
|
20
18
|
this.max = 1;
|
21
|
-
/**
|
22
|
-
* Minimum.
|
23
|
-
*/
|
24
19
|
this.min = 0;
|
25
|
-
/**
|
26
|
-
* Input value.
|
27
|
-
*/
|
28
|
-
this.value = null;
|
29
20
|
}
|
30
21
|
render() {
|
31
22
|
let width = 20;
|
32
23
|
let className;
|
33
|
-
if (this.value
|
24
|
+
if (!isNil(this.value)) {
|
34
25
|
width = this.parsePercent(this.value);
|
35
26
|
className = "static";
|
36
27
|
}
|
@@ -56,7 +47,7 @@ __decorate([
|
|
56
47
|
property({ type: Number })
|
57
48
|
], Progress.prototype, "min", void 0);
|
58
49
|
__decorate([
|
59
|
-
property({ type: Number
|
50
|
+
property({ type: Number })
|
60
51
|
], Progress.prototype, "value", void 0);
|
61
52
|
Progress = __decorate([
|
62
53
|
godown(protoName),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"progress.js","sources":["../src/components/progress.ts"],"sourcesContent":null,"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"progress.js","sources":["../src/components/progress.ts"],"sourcesContent":null,"names":[],"mappings":";;;;;;;;AAQA,MAAM,SAAS,GAAG,UAAU;AAE5B;;;;AAIE;AAGF,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,WAAW,CAAA;AAAlC,IAAA,WAAA,GAAA;;QAEE,IAAG,CAAA,GAAA,GAAG,CAAC;QAGP,IAAG,CAAA,GAAA,GAAG,CAAC;;IAKG,MAAM,GAAA;QACd,IAAI,KAAK,GAAG,EAAE;AACd,QAAA,IAAI,SAAiB;QACrB,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE;YACtB,KAAK,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC;YACrC,SAAS,GAAG,QAAQ;;AAEtB,QAAA,OAAO,IAAI,CAAA,CAAA,wBAAA,EAA2B,SAAS,CACd,+BAAA,EAAA,KAAK,cAC/B;;AAGT;;;;;AAKE;IACF,YAAY,CAAC,IAAqB,GAAG,EAAA;QACnC,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;AAC3B,YAAA,OAAO,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;;QAE9B,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,GAAG;;CAEhE;AAhCE,UAAA,CAAA;AADC,IAAA,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE;AACnB,CAAA,EAAA,QAAA,CAAA,SAAA,EAAA,KAAA,EAAA,KAAA,CAAA,CAAA;AAGP,UAAA,CAAA;AADC,IAAA,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE;AACnB,CAAA,EAAA,QAAA,CAAA,SAAA,EAAA,KAAA,EAAA,KAAA,CAAA,CAAA;AAGP,UAAA,CAAA;AADC,IAAA,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE;AACb,CAAA,EAAA,QAAA,CAAA,SAAA,EAAA,OAAA,EAAA,KAAA,CAAA,CAAA;AART,QAAQ,GAAA,UAAA,CAAA;IAFb,MAAM,CAAC,SAAS,CAAA;AAChB,IAAA,MAAM,CAAC,GAAG,CAAA,CAAA,qFAAA,EAA0F,aAAa,CAAC,OAAO,CAAA,YAAA,EAAe,aAAa,CAAC,MAAM,CAAA,0VAAA,CAA6V;AACpf,CAAA,EAAA,QAAQ,CAkCd;AAEA,iBAAe,QAAQ;;;;"}
|
package/components/range.d.ts
CHANGED
@@ -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,cAMM,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,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,SAAI,GAAG,MAAM,EAAE;IAS1C,SAAS,CAAC,MAAM;IAgChB,SAAS,CAAC,YAAY,CAAC,KAAK,EAAE,MAAM;IAQpC,OAAO,CAAC,aAAa,CAAqC;IAE1D,WAAW,CAAC,KAAK,EAAE,MAAM;IASzB,UAAU;IAKV,SAAS,CAAC,kBAAkB,CAAC,KAAK,EAAE,MAAM,OAI7B,aAAa;IAW1B,eAAe,CAAC,KAAK,EAAE,MAAM,OAChB,UAAU;IAMvB,SAAS,CAAC,mBAAmB,CAAC,CAAC,EAAE,UAAU;IAM3C,cAAc,CAAC,KAAK,EAAE,MAAM,sBACA,MAAM,GAAG,CAAC,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IAahE,MAAM,CAAC,KAAK,EAAE,MAAM;IAIpB;;OAEG;IACH,SAAS,CAAC,aAAa,CAAC,CAAC,EAAE,UAAU;IAOrC;;OAEG;IACH,SAAS,CAAC,cAAc,CAAC,KAAK,EAAE,MAAM;IAMtC,SAAS,CAAC,oBAAoB,CAAC,CAAC,EAAE,UAAU;IAgB5C,SAAS,CAAC,uBAAuB,CAAC,iBAAiB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,OAC9D,UAAU;IAavB,SAAS,CAAC,uBAAuB,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,OACrD,UAAU;IASvB,SAAS,CAAC,cAAc;IAaxB,KAAK;IAIL,IAAI;IAIJ,QAAQ;CAMT;AAED,eAAe,KAAK,CAAC"}
|