godown 2.7.7 → 3.0.0-canary.1
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 +44 -80
- package/alert.d.ts +2 -3
- package/alert.d.ts.map +1 -1
- package/alert.js +5 -4
- package/alert.js.map +1 -1
- package/avatar.d.ts +2 -3
- package/avatar.d.ts.map +1 -1
- package/avatar.js +5 -4
- package/avatar.js.map +1 -1
- package/breath.d.ts +9 -0
- package/breath.d.ts.map +1 -0
- package/breath.js +6 -0
- package/breath.js.map +1 -0
- package/button.d.ts +2 -3
- package/button.d.ts.map +1 -1
- package/button.js +5 -4
- package/button.js.map +1 -1
- package/card.d.ts +2 -3
- package/card.d.ts.map +1 -1
- package/card.js +5 -4
- package/card.js.map +1 -1
- package/carousel.d.ts +2 -3
- package/carousel.d.ts.map +1 -1
- package/carousel.js +5 -4
- package/carousel.js.map +1 -1
- package/components/alert.d.ts +50 -0
- package/components/alert.d.ts.map +1 -0
- package/components/alert.js +167 -0
- package/components/alert.js.map +1 -0
- package/components/avatar.d.ts +26 -0
- package/components/avatar.d.ts.map +1 -0
- package/components/avatar.js +62 -0
- package/components/avatar.js.map +1 -0
- package/components/breath.d.ts +34 -0
- package/components/breath.d.ts.map +1 -0
- package/components/breath.js +80 -0
- package/components/breath.js.map +1 -0
- package/{web-components/button → components}/button.d.ts +6 -5
- package/components/button.d.ts.map +1 -0
- package/components/button.js +167 -0
- package/components/button.js.map +1 -0
- package/components/card.d.ts +20 -0
- package/components/card.d.ts.map +1 -0
- package/components/card.js +55 -0
- package/components/card.js.map +1 -0
- package/components/carousel.d.ts +40 -0
- package/components/carousel.d.ts.map +1 -0
- package/components/carousel.js +113 -0
- package/components/carousel.js.map +1 -0
- package/{web-components/details → components}/details.d.ts +5 -3
- package/components/details.d.ts.map +1 -0
- package/components/details.js +50 -0
- package/components/details.js.map +1 -0
- package/components/dialog.d.ts +33 -0
- package/components/dialog.d.ts.map +1 -0
- package/components/dialog.js +92 -0
- package/components/dialog.js.map +1 -0
- package/components/divider.d.ts +17 -0
- package/components/divider.d.ts.map +1 -0
- package/components/divider.js +37 -0
- package/components/divider.js.map +1 -0
- package/{web-components/wrapper → components}/dragbox.d.ts +15 -5
- package/components/dragbox.d.ts.map +1 -0
- package/components/dragbox.js +110 -0
- package/components/dragbox.js.map +1 -0
- package/components/flex.d.ts +31 -0
- package/components/flex.d.ts.map +1 -0
- package/components/flex.js +55 -0
- package/components/flex.js.map +1 -0
- package/{web-components/form → components}/form.d.ts +4 -2
- package/components/form.d.ts.map +1 -0
- package/components/form.js +78 -0
- package/components/form.js.map +1 -0
- package/components/grid.d.ts +31 -0
- package/components/grid.d.ts.map +1 -0
- package/components/grid.js +56 -0
- package/components/grid.js.map +1 -0
- package/components/input.d.ts +20 -0
- package/components/input.d.ts.map +1 -0
- package/components/input.js +54 -0
- package/components/input.js.map +1 -0
- package/components/layout.d.ts +29 -0
- package/components/layout.d.ts.map +1 -0
- package/components/layout.js +48 -0
- package/components/layout.js.map +1 -0
- package/components/link.d.ts +20 -0
- package/components/link.d.ts.map +1 -0
- package/components/link.js +43 -0
- package/components/link.js.map +1 -0
- package/{web-components/progress → components}/progress.d.ts +5 -3
- package/components/progress.d.ts.map +1 -0
- package/components/progress.js +68 -0
- package/components/progress.js.map +1 -0
- package/components/range.d.ts +60 -0
- package/components/range.d.ts.map +1 -0
- package/components/range.js +193 -0
- package/components/range.js.map +1 -0
- package/{web-components/wrapper → components}/rotate.d.ts +4 -8
- package/components/rotate.d.ts.map +1 -0
- package/components/rotate.js +57 -0
- package/components/rotate.js.map +1 -0
- package/components/router.d.ts +121 -0
- package/components/router.d.ts.map +1 -0
- package/components/router.js +251 -0
- package/components/router.js.map +1 -0
- package/components/select.d.ts +50 -0
- package/components/select.d.ts.map +1 -0
- package/components/select.js +211 -0
- package/components/select.js.map +1 -0
- package/{web-components/skeleton → components}/skeleton.d.ts +6 -6
- package/components/skeleton.d.ts.map +1 -0
- package/components/skeleton.js +56 -0
- package/components/skeleton.js.map +1 -0
- package/components/split.d.ts +32 -0
- package/components/split.d.ts.map +1 -0
- package/components/split.js +121 -0
- package/components/split.js.map +1 -0
- package/{web-components/input/switch-input.d.ts → components/switch.d.ts} +9 -10
- package/components/switch.d.ts.map +1 -0
- package/components/switch.js +93 -0
- package/components/switch.js.map +1 -0
- package/{web-components/text → components}/text.d.ts +5 -3
- package/components/text.d.ts.map +1 -0
- package/components/text.js +44 -0
- package/components/text.js.map +1 -0
- package/{web-components/text → components}/time.d.ts +5 -3
- package/components/time.d.ts.map +1 -0
- package/components/time.js +139 -0
- package/components/time.js.map +1 -0
- package/components/tooltip.d.ts +38 -0
- package/components/tooltip.d.ts.map +1 -0
- package/components/tooltip.js +67 -0
- package/components/tooltip.js.map +1 -0
- package/{web-components/text → components}/typewriter.d.ts +5 -3
- package/components/typewriter.d.ts.map +1 -0
- package/components/typewriter.js +130 -0
- package/components/typewriter.js.map +1 -0
- package/core/global-style.d.ts +21 -0
- package/core/global-style.d.ts.map +1 -0
- package/core/global-style.js +46 -0
- package/core/global-style.js.map +1 -0
- package/core/super-anchor.d.ts +15 -0
- package/core/super-anchor.d.ts.map +1 -0
- package/core/super-anchor.js +39 -0
- package/core/super-anchor.js.map +1 -0
- package/core/super-input.d.ts +39 -0
- package/core/super-input.d.ts.map +1 -0
- package/core/super-input.js +115 -0
- package/core/super-input.js.map +1 -0
- package/{proto → core}/super-openable.d.ts +4 -8
- package/core/super-openable.d.ts.map +1 -0
- package/core/super-openable.js +38 -0
- package/core/super-openable.js.map +1 -0
- package/custom-elements.json +1 -0
- package/details.d.ts +2 -3
- package/details.d.ts.map +1 -1
- package/details.js +5 -4
- package/details.js.map +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 +50 -0
- package/dev/components/alert.d.ts.map +1 -0
- package/dev/components/alert.js +234 -0
- package/dev/components/alert.js.map +1 -0
- package/dev/components/avatar.d.ts +26 -0
- package/dev/components/avatar.d.ts.map +1 -0
- package/dev/components/avatar.js +91 -0
- package/dev/components/avatar.js.map +1 -0
- package/dev/components/breath.d.ts +34 -0
- package/dev/components/breath.d.ts.map +1 -0
- package/dev/components/breath.js +133 -0
- package/dev/components/breath.js.map +1 -0
- package/dev/components/button.d.ts +45 -0
- package/dev/components/button.d.ts.map +1 -0
- package/{web-components/button → dev/components}/button.js +76 -76
- package/dev/components/button.js.map +1 -0
- package/dev/components/card.d.ts +20 -0
- package/dev/components/card.d.ts.map +1 -0
- package/dev/components/card.js +89 -0
- package/dev/components/card.js.map +1 -0
- package/dev/components/carousel.d.ts +40 -0
- package/dev/components/carousel.d.ts.map +1 -0
- package/dev/components/carousel.js +155 -0
- package/dev/components/carousel.js.map +1 -0
- package/dev/components/details.d.ts +20 -0
- package/dev/components/details.d.ts.map +1 -0
- package/dev/components/details.js +115 -0
- package/dev/components/details.js.map +1 -0
- package/dev/components/dialog.d.ts +33 -0
- package/dev/components/dialog.d.ts.map +1 -0
- package/dev/components/dialog.js +154 -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/{web-components/wrapper → dev/components}/dragbox.js +27 -15
- package/dev/components/dragbox.js.map +1 -0
- package/dev/components/flex.d.ts +31 -0
- package/dev/components/flex.d.ts.map +1 -0
- package/dev/components/flex.js +52 -0
- package/dev/components/flex.js.map +1 -0
- package/dev/components/form.d.ts +24 -0
- package/dev/components/form.d.ts.map +1 -0
- package/{web-components/form → dev/components}/form.js +11 -11
- package/dev/components/form.js.map +1 -0
- package/dev/components/grid.d.ts +31 -0
- package/dev/components/grid.d.ts.map +1 -0
- package/dev/components/grid.js +53 -0
- package/dev/components/grid.js.map +1 -0
- package/dev/components/input.d.ts +20 -0
- package/dev/components/input.d.ts.map +1 -0
- package/dev/components/input.js +89 -0
- package/dev/components/input.js.map +1 -0
- package/dev/components/layout.d.ts +29 -0
- package/dev/components/layout.d.ts.map +1 -0
- package/dev/components/layout.js +69 -0
- package/dev/components/layout.js.map +1 -0
- package/dev/components/link.d.ts +20 -0
- package/dev/components/link.d.ts.map +1 -0
- package/dev/components/link.js +40 -0
- package/dev/components/link.js.map +1 -0
- package/dev/components/progress.d.ts +30 -0
- package/dev/components/progress.d.ts.map +1 -0
- package/{web-components/progress → dev/components}/progress.js +12 -11
- package/dev/components/progress.js.map +1 -0
- package/dev/components/range.d.ts +60 -0
- package/dev/components/range.d.ts.map +1 -0
- package/{web-components/input/range-input.js → dev/components/range.js} +82 -92
- 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/{web-components/wrapper → dev/components}/rotate.js +14 -20
- package/dev/components/rotate.js.map +1 -0
- package/dev/components/router.d.ts +121 -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 +50 -0
- package/dev/components/select.d.ts.map +1 -0
- package/dev/components/select.js +243 -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 +119 -0
- package/dev/components/skeleton.js.map +1 -0
- package/dev/components/split.d.ts +32 -0
- package/dev/components/split.d.ts.map +1 -0
- package/dev/components/split.js +173 -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/{web-components/input/switch-input.js → dev/components/switch.js} +53 -59
- 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/{web-components/text → dev/components}/text.js +22 -23
- package/dev/components/text.js.map +1 -0
- package/dev/components/time.d.ts +53 -0
- package/dev/components/time.d.ts.map +1 -0
- package/{web-components/text → dev/components}/time.js +12 -18
- package/dev/components/time.js.map +1 -0
- package/dev/components/tooltip.d.ts +38 -0
- package/dev/components/tooltip.d.ts.map +1 -0
- package/dev/components/tooltip.js +114 -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/{web-components/text → dev/components}/typewriter.js +21 -19
- 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 +77 -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 +39 -0
- package/dev/core/super-input.d.ts.map +1 -0
- package/dev/core/super-input.js +181 -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/{proto → dev/core}/super-openable.js +6 -13
- 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/dialog.d.ts +2 -3
- package/dialog.d.ts.map +1 -1
- package/dialog.js +5 -4
- package/dialog.js.map +1 -1
- package/divider.d.ts +2 -3
- package/divider.d.ts.map +1 -1
- package/divider.js +5 -4
- package/divider.js.map +1 -1
- package/dragbox.d.ts +2 -3
- package/dragbox.d.ts.map +1 -1
- package/dragbox.js +5 -4
- package/dragbox.js.map +1 -1
- package/flex.d.ts +8 -0
- package/flex.d.ts.map +1 -0
- package/flex.js +6 -0
- package/flex.js.map +1 -0
- package/form.d.ts +2 -3
- package/form.d.ts.map +1 -1
- package/form.js +5 -4
- package/form.js.map +1 -1
- package/grid.d.ts +8 -0
- package/grid.d.ts.map +1 -0
- package/grid.js +6 -0
- package/grid.js.map +1 -0
- package/index.d.ts +28 -32
- package/index.d.ts.map +1 -1
- package/index.js +57 -33
- package/index.js.map +1 -1
- package/input.d.ts +3 -3
- package/input.d.ts.map +1 -1
- package/input.js +5 -4
- package/input.js.map +1 -1
- package/layout.d.ts +3 -3
- package/layout.d.ts.map +1 -1
- package/layout.js +5 -4
- package/layout.js.map +1 -1
- package/link.d.ts +3 -3
- package/link.d.ts.map +1 -1
- package/link.js +5 -4
- package/link.js.map +1 -1
- package/package.json +42 -81
- package/progress.d.ts +3 -3
- package/progress.d.ts.map +1 -1
- package/progress.js +5 -4
- package/progress.js.map +1 -1
- package/range.d.ts +9 -0
- package/range.d.ts.map +1 -0
- package/range.js +6 -0
- package/range.js.map +1 -0
- package/rotate.d.ts +3 -3
- package/rotate.d.ts.map +1 -1
- package/rotate.js +5 -4
- package/rotate.js.map +1 -1
- package/router.d.ts +3 -3
- package/router.d.ts.map +1 -1
- package/router.js +5 -4
- package/router.js.map +1 -1
- package/select.d.ts +9 -0
- package/select.d.ts.map +1 -0
- package/select.js +6 -0
- package/select.js.map +1 -0
- package/skeleton.d.ts +3 -3
- package/skeleton.d.ts.map +1 -1
- package/skeleton.js +5 -4
- package/skeleton.js.map +1 -1
- package/split.d.ts +9 -0
- package/split.d.ts.map +1 -0
- package/split.js +6 -0
- package/split.js.map +1 -0
- package/switch.d.ts +9 -0
- package/switch.d.ts.map +1 -0
- package/switch.js +6 -0
- package/switch.js.map +1 -0
- package/text.d.ts +3 -3
- package/text.d.ts.map +1 -1
- package/text.js +5 -4
- package/text.js.map +1 -1
- package/time.d.ts +3 -3
- package/time.d.ts.map +1 -1
- package/time.js +5 -4
- package/time.js.map +1 -1
- package/tooltip.d.ts +3 -3
- package/tooltip.d.ts.map +1 -1
- package/tooltip.js +5 -4
- package/tooltip.js.map +1 -1
- package/typewriter.d.ts +2 -3
- package/typewriter.d.ts.map +1 -1
- package/typewriter.js +5 -4
- package/typewriter.js.map +1 -1
- package/vscode.css-custom-data.json +1 -0
- package/vscode.html-custom-data.json +1 -0
- package/web-types.json +1 -0
- package/_deps.d.ts +0 -4
- package/_deps.d.ts.map +0 -1
- package/_deps.js +0 -4
- package/_deps.js.map +0 -1
- package/avatar-group.d.ts +0 -9
- package/avatar-group.d.ts.map +0 -1
- package/avatar-group.js +0 -5
- package/avatar-group.js.map +0 -1
- package/components.json +0 -194
- package/conf.d.ts +0 -12
- package/conf.d.ts.map +0 -1
- package/conf.js +0 -24
- package/conf.js.map +0 -1
- package/decorators/godown.d.ts +0 -4
- package/decorators/godown.d.ts.map +0 -1
- package/decorators/godown.js +0 -9
- package/decorators/godown.js.map +0 -1
- package/decorators/part.d.ts +0 -7
- package/decorators/part.d.ts.map +0 -1
- package/decorators/part.js +0 -8
- package/decorators/part.js.map +0 -1
- package/decorators/styles.d.ts +0 -3
- package/decorators/styles.d.ts.map +0 -1
- package/decorators/styles.js +0 -8
- package/decorators/styles.js.map +0 -1
- package/flex-flow.d.ts +0 -9
- package/flex-flow.d.ts.map +0 -1
- package/flex-flow.js +0 -5
- package/flex-flow.js.map +0 -1
- package/grid-flow.d.ts +0 -9
- package/grid-flow.d.ts.map +0 -1
- package/grid-flow.js +0 -5
- package/grid-flow.js.map +0 -1
- package/label-input.d.ts +0 -9
- package/label-input.d.ts.map +0 -1
- package/label-input.js +0 -5
- package/label-input.js.map +0 -1
- package/lib/css.d.ts +0 -13
- package/lib/css.d.ts.map +0 -1
- package/lib/css.js +0 -29
- package/lib/css.js.map +0 -1
- package/lib/directives.d.ts +0 -25
- package/lib/directives.d.ts.map +0 -1
- package/lib/directives.js +0 -40
- package/lib/directives.js.map +0 -1
- package/lib/event-coll.d.ts +0 -13
- package/lib/event-coll.d.ts.map +0 -1
- package/lib/event-coll.js +0 -45
- package/lib/event-coll.js.map +0 -1
- package/lib/icons.d.ts +0 -25
- package/lib/icons.d.ts.map +0 -1
- package/lib/icons.js +0 -73
- package/lib/icons.js.map +0 -1
- package/lib/jsx.d.ts +0 -4
- package/lib/jsx.d.ts.map +0 -1
- package/lib/jsx.js +0 -52
- package/lib/jsx.js.map +0 -1
- package/lib/route-tree.d.ts +0 -28
- package/lib/route-tree.d.ts.map +0 -1
- package/lib/route-tree.js +0 -141
- package/lib/route-tree.js.map +0 -1
- package/lib/utils.d.ts +0 -10
- package/lib/utils.d.ts.map +0 -1
- package/lib/utils.js +0 -71
- package/lib/utils.js.map +0 -1
- package/overbreath.d.ts +0 -9
- package/overbreath.d.ts.map +0 -1
- package/overbreath.js +0 -5
- package/overbreath.js.map +0 -1
- package/proto/godown-config.d.ts +0 -41
- package/proto/godown-config.d.ts.map +0 -1
- package/proto/godown-config.js +0 -27
- package/proto/godown-config.js.map +0 -1
- package/proto/godown-element.d.ts +0 -125
- package/proto/godown-element.d.ts.map +0 -1
- package/proto/godown-element.js +0 -204
- package/proto/godown-element.js.map +0 -1
- package/proto/super-a.d.ts +0 -30
- package/proto/super-a.d.ts.map +0 -1
- package/proto/super-a.js +0 -141
- package/proto/super-a.js.map +0 -1
- package/proto/super-input.d.ts +0 -44
- package/proto/super-input.d.ts.map +0 -1
- package/proto/super-input.js +0 -119
- package/proto/super-input.js.map +0 -1
- package/proto/super-openable.d.ts.map +0 -1
- package/proto/super-openable.js.map +0 -1
- package/range-input.d.ts +0 -9
- package/range-input.d.ts.map +0 -1
- package/range-input.js +0 -5
- package/range-input.js.map +0 -1
- package/react/create.d.ts +0 -5
- package/react/create.d.ts.map +0 -1
- package/react/create.js +0 -16
- package/react/create.js.map +0 -1
- package/react/index.d.ts +0 -65
- package/react/index.d.ts.map +0 -1
- package/react/index.js +0 -132
- package/react/index.js.map +0 -1
- package/router-link.d.ts +0 -9
- package/router-link.d.ts.map +0 -1
- package/router-link.js +0 -5
- package/router-link.js.map +0 -1
- package/search-input.d.ts +0 -9
- package/search-input.d.ts.map +0 -1
- package/search-input.js +0 -5
- package/search-input.js.map +0 -1
- package/select-input.d.ts +0 -9
- package/select-input.d.ts.map +0 -1
- package/select-input.js +0 -5
- package/select-input.js.map +0 -1
- package/split-input.d.ts +0 -9
- package/split-input.d.ts.map +0 -1
- package/split-input.js +0 -5
- package/split-input.js.map +0 -1
- package/styles/colors/presets.d.ts +0 -13
- package/styles/colors/presets.d.ts.map +0 -1
- package/styles/colors/presets.js +0 -6
- package/styles/colors/presets.js.map +0 -1
- package/styles/colors/presetsRGB.d.ts +0 -16
- package/styles/colors/presetsRGB.d.ts.map +0 -1
- package/styles/colors/presetsRGB.js +0 -134
- package/styles/colors/presetsRGB.js.map +0 -1
- package/styles/global.d.ts +0 -18
- package/styles/global.d.ts.map +0 -1
- package/styles/global.js +0 -78
- package/styles/global.js.map +0 -1
- package/styles/inputStyle.d.ts +0 -3
- package/styles/inputStyle.d.ts.map +0 -1
- package/styles/inputStyle.js +0 -59
- package/styles/inputStyle.js.map +0 -1
- package/switch-input.d.ts +0 -9
- package/switch-input.d.ts.map +0 -1
- package/switch-input.js +0 -5
- package/switch-input.js.map +0 -1
- package/web-components/alert/alert.d.ts +0 -36
- package/web-components/alert/alert.d.ts.map +0 -1
- package/web-components/alert/alert.js +0 -161
- package/web-components/alert/alert.js.map +0 -1
- package/web-components/avatar/avatar-group.d.ts +0 -21
- package/web-components/avatar/avatar-group.d.ts.map +0 -1
- package/web-components/avatar/avatar-group.js +0 -86
- package/web-components/avatar/avatar-group.js.map +0 -1
- package/web-components/avatar/avatar.d.ts +0 -28
- package/web-components/avatar/avatar.d.ts.map +0 -1
- package/web-components/avatar/avatar.js +0 -120
- package/web-components/avatar/avatar.js.map +0 -1
- package/web-components/button/button.d.ts.map +0 -1
- package/web-components/button/button.js.map +0 -1
- package/web-components/card/card.d.ts +0 -9
- package/web-components/card/card.d.ts.map +0 -1
- package/web-components/card/card.js +0 -75
- package/web-components/card/card.js.map +0 -1
- package/web-components/carousel/carousel.d.ts +0 -29
- package/web-components/carousel/carousel.d.ts.map +0 -1
- package/web-components/carousel/carousel.js +0 -185
- package/web-components/carousel/carousel.js.map +0 -1
- package/web-components/details/details.d.ts.map +0 -1
- package/web-components/details/details.js +0 -124
- package/web-components/details/details.js.map +0 -1
- package/web-components/dialog/dialog.d.ts +0 -31
- package/web-components/dialog/dialog.d.ts.map +0 -1
- package/web-components/dialog/dialog.js +0 -143
- package/web-components/dialog/dialog.js.map +0 -1
- package/web-components/divider/divider.d.ts +0 -13
- package/web-components/divider/divider.d.ts.map +0 -1
- package/web-components/divider/divider.js +0 -95
- package/web-components/divider/divider.js.map +0 -1
- package/web-components/form/form.d.ts.map +0 -1
- package/web-components/form/form.js.map +0 -1
- package/web-components/input/input.d.ts +0 -37
- package/web-components/input/input.d.ts.map +0 -1
- package/web-components/input/input.js +0 -152
- package/web-components/input/input.js.map +0 -1
- package/web-components/input/label-input.d.ts +0 -15
- package/web-components/input/label-input.d.ts.map +0 -1
- package/web-components/input/label-input.js +0 -96
- package/web-components/input/label-input.js.map +0 -1
- package/web-components/input/range-input.d.ts +0 -53
- package/web-components/input/range-input.d.ts.map +0 -1
- package/web-components/input/range-input.js.map +0 -1
- package/web-components/input/search-input.d.ts +0 -42
- package/web-components/input/search-input.d.ts.map +0 -1
- package/web-components/input/search-input.js +0 -214
- package/web-components/input/search-input.js.map +0 -1
- package/web-components/input/select-input.d.ts +0 -36
- package/web-components/input/select-input.d.ts.map +0 -1
- package/web-components/input/select-input.js +0 -210
- package/web-components/input/select-input.js.map +0 -1
- package/web-components/input/split-input.d.ts +0 -29
- package/web-components/input/split-input.d.ts.map +0 -1
- package/web-components/input/split-input.js +0 -184
- package/web-components/input/split-input.js.map +0 -1
- package/web-components/input/switch-input.d.ts.map +0 -1
- package/web-components/input/switch-input.js.map +0 -1
- package/web-components/layout/flex-flow.d.ts +0 -17
- package/web-components/layout/flex-flow.d.ts.map +0 -1
- package/web-components/layout/flex-flow.js +0 -73
- package/web-components/layout/flex-flow.js.map +0 -1
- package/web-components/layout/grid-flow.d.ts +0 -14
- package/web-components/layout/grid-flow.d.ts.map +0 -1
- package/web-components/layout/grid-flow.js +0 -56
- package/web-components/layout/grid-flow.js.map +0 -1
- package/web-components/layout/layout.d.ts +0 -18
- package/web-components/layout/layout.d.ts.map +0 -1
- package/web-components/layout/layout.js +0 -76
- package/web-components/layout/layout.js.map +0 -1
- package/web-components/link/link.d.ts +0 -10
- package/web-components/link/link.d.ts.map +0 -1
- package/web-components/link/link.js +0 -17
- package/web-components/link/link.js.map +0 -1
- package/web-components/link/router-link.d.ts +0 -19
- package/web-components/link/router-link.d.ts.map +0 -1
- package/web-components/link/router-link.js +0 -60
- package/web-components/link/router-link.js.map +0 -1
- package/web-components/progress/progress.d.ts.map +0 -1
- package/web-components/progress/progress.js.map +0 -1
- package/web-components/router/router.d.ts +0 -86
- package/web-components/router/router.d.ts.map +0 -1
- package/web-components/router/router.js +0 -246
- package/web-components/router/router.js.map +0 -1
- package/web-components/skeleton/skeleton.d.ts.map +0 -1
- package/web-components/skeleton/skeleton.js +0 -130
- package/web-components/skeleton/skeleton.js.map +0 -1
- package/web-components/text/overbreath.d.ts +0 -22
- package/web-components/text/overbreath.d.ts.map +0 -1
- package/web-components/text/overbreath.js +0 -132
- package/web-components/text/overbreath.js.map +0 -1
- package/web-components/text/text.d.ts.map +0 -1
- package/web-components/text/text.js.map +0 -1
- package/web-components/text/time.d.ts.map +0 -1
- package/web-components/text/time.js.map +0 -1
- package/web-components/text/typewriter.d.ts.map +0 -1
- package/web-components/text/typewriter.js.map +0 -1
- package/web-components/tooltip/tooltip.d.ts +0 -30
- package/web-components/tooltip/tooltip.d.ts.map +0 -1
- package/web-components/tooltip/tooltip.js +0 -123
- package/web-components/tooltip/tooltip.js.map +0 -1
- package/web-components/wrapper/dragbox.d.ts.map +0 -1
- package/web-components/wrapper/dragbox.js.map +0 -1
- package/web-components/wrapper/rotate.d.ts.map +0 -1
- package/web-components/wrapper/rotate.js.map +0 -1
@@ -0,0 +1,119 @@
|
|
1
|
+
import { __decorate } from "tslib";
|
2
|
+
import { godown } from "@godown/element/decorators/godown.js";
|
3
|
+
import { styles } from "@godown/element/decorators/styles.js";
|
4
|
+
import { conditionIf } from "@godown/element/directives/condition-if.js";
|
5
|
+
import { htmlSlot } from "@godown/element/directives/html-slot.js";
|
6
|
+
import iconPhoto from "@godown/f7-icon/icons/photo.js";
|
7
|
+
import { css, html } from "lit";
|
8
|
+
import { property, state } from "lit/decorators.js";
|
9
|
+
import { cssGlobalVars, GlobalStyle, scopePrefix } from "../core/global-style.js";
|
10
|
+
const protoName = "skeleton";
|
11
|
+
const cssScope = scopePrefix(protoName);
|
12
|
+
/**
|
13
|
+
* {@linkcode Skeleton} renders a skeleton screen.
|
14
|
+
*
|
15
|
+
* @slot loading - The content if loading is true.
|
16
|
+
* @slot - The content if loading is false.
|
17
|
+
* @category feedback
|
18
|
+
*/
|
19
|
+
let Skeleton = class Skeleton extends GlobalStyle {
|
20
|
+
constructor() {
|
21
|
+
super(...arguments);
|
22
|
+
/**
|
23
|
+
* Animation type.
|
24
|
+
* opacity animation only effect on slotted element and image icon.
|
25
|
+
*/
|
26
|
+
this.animation = "position";
|
27
|
+
/**
|
28
|
+
* If false, render slot only.
|
29
|
+
*/
|
30
|
+
this.loading = true;
|
31
|
+
}
|
32
|
+
render() {
|
33
|
+
if (!this.loading) {
|
34
|
+
return htmlSlot();
|
35
|
+
}
|
36
|
+
return html `<div part="root" class="${this.animation}">
|
37
|
+
${conditionIf(this.type === "image", iconPhoto())}
|
38
|
+
${htmlSlot("loading")}</div>`;
|
39
|
+
}
|
40
|
+
};
|
41
|
+
__decorate([
|
42
|
+
property()
|
43
|
+
], Skeleton.prototype, "type", void 0);
|
44
|
+
__decorate([
|
45
|
+
property()
|
46
|
+
], Skeleton.prototype, "animation", void 0);
|
47
|
+
__decorate([
|
48
|
+
state()
|
49
|
+
], Skeleton.prototype, "loading", void 0);
|
50
|
+
Skeleton = __decorate([
|
51
|
+
godown(protoName),
|
52
|
+
styles(css `
|
53
|
+
:host {
|
54
|
+
${cssScope}--from: var(${cssGlobalVars._colors.darkgray[9]});
|
55
|
+
${cssScope}--to: var(${cssGlobalVars._colors.darkgray[7]});
|
56
|
+
${cssScope}--deg: 95deg;
|
57
|
+
${cssScope}--duration: 1.5s;
|
58
|
+
${cssScope}--icon-size: 5em;
|
59
|
+
${cssScope}--icon-margin: .25em;
|
60
|
+
color: var(${cssGlobalVars._colors.darkgray[5]});
|
61
|
+
background: var(${cssScope}--from);
|
62
|
+
min-height: 1.5em;
|
63
|
+
width: 100%;
|
64
|
+
flex-shrink: 0;
|
65
|
+
display: block;
|
66
|
+
overflow: hidden;
|
67
|
+
}
|
68
|
+
|
69
|
+
[part="root"] {
|
70
|
+
height: 100%;
|
71
|
+
min-height: inherit;
|
72
|
+
text-align: center;
|
73
|
+
animation: var(${cssScope}--duration) ease-in-out 0s infinite none running;
|
74
|
+
}
|
75
|
+
|
76
|
+
svg {
|
77
|
+
--size:var(${cssScope}--icon-size);
|
78
|
+
font-size: var(--size);
|
79
|
+
margin: calc(var(--size) * 0.05);
|
80
|
+
}
|
81
|
+
|
82
|
+
.position {
|
83
|
+
background-image: linear-gradient(
|
84
|
+
var(${cssScope}--deg),
|
85
|
+
var(${cssScope}--from) 36%,
|
86
|
+
var(${cssScope}--to) 50%,
|
87
|
+
var(${cssScope}--from) 64%
|
88
|
+
);
|
89
|
+
background-color: transparent;
|
90
|
+
background-size: 200% 100%;
|
91
|
+
animation-name: po;
|
92
|
+
}
|
93
|
+
|
94
|
+
@keyframes po {
|
95
|
+
from {
|
96
|
+
background-position: 150% center;
|
97
|
+
}
|
98
|
+
to {
|
99
|
+
background-position: -50% center;
|
100
|
+
}
|
101
|
+
}
|
102
|
+
|
103
|
+
.opacity {
|
104
|
+
animation-name: op;
|
105
|
+
animation-direction: alternate;
|
106
|
+
}
|
107
|
+
|
108
|
+
@keyframes op {
|
109
|
+
50% {
|
110
|
+
opacity: 0.25;
|
111
|
+
}
|
112
|
+
to {
|
113
|
+
opacity: 1;
|
114
|
+
}
|
115
|
+
}
|
116
|
+
`)
|
117
|
+
], Skeleton);
|
118
|
+
export default Skeleton;
|
119
|
+
//# sourceMappingURL=skeleton.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"skeleton.js","sourceRoot":"","sources":["../../src/components/skeleton.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AAC9D,OAAO,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AACzE,OAAO,EAAE,QAAQ,EAAE,MAAM,yCAAyC,CAAC;AACnE,OAAO,SAAS,MAAM,gCAAgC,CAAC;AACvD,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAEpD,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAElF,MAAM,SAAS,GAAG,UAAU,CAAC;AAC7B,MAAM,QAAQ,GAAG,WAAW,CAAC,SAAS,CAAC,CAAC;AAExC;;;;;;GAMG;AAqEH,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,WAAW;IAAlC;;QAME;;;WAGG;QAEH,cAAS,GAA2B,UAAU,CAAC;QAC/C;;WAEG;QAEH,YAAO,GAAG,IAAI,CAAC;IAUjB,CAAC;IARW,MAAM;QACd,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;YAClB,OAAO,QAAQ,EAAE,CAAC;QACpB,CAAC;QACD,OAAO,IAAI,CAAA,2BAA2B,IAAI,CAAC,SAAS;MAClD,WAAW,CAAC,IAAI,CAAC,IAAI,KAAK,OAAO,EAAE,SAAS,EAAE,CAAC;MAC/C,QAAQ,CAAC,SAAS,CAAC,QAAQ,CAAC;IAChC,CAAC;CACF,CAAA;AArBC;IADC,QAAQ,EAAE;sCACY;AAMvB;IADC,QAAQ,EAAE;2CACoC;AAK/C;IADC,KAAK,EAAE;yCACO;AAhBX,QAAQ;IApEb,MAAM,CAAC,SAAS,CAAC;IACjB,MAAM,CACL,GAAG,CAAA;;QAEG,QAAQ,eAAe,aAAa,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;QACxD,QAAQ,aAAa,aAAa,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;QACtD,QAAQ;QACR,QAAQ;QACR,QAAQ;QACR,QAAQ;mBACG,aAAa,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;wBAC5B,QAAQ;;;;;;;;;;;;uBAYT,QAAQ;;;;mBAIZ,QAAQ;;;;;;;cAOb,QAAQ;cACR,QAAQ;cACR,QAAQ;cACR,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BnB,CACF;GACK,QAAQ,CA0Bb;AAED,eAAe,QAAQ,CAAC"}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
import { type HandlerEvent } from "@godown/element/element.js";
|
2
|
+
import SuperInput from "../core/super-input.js";
|
3
|
+
/**
|
4
|
+
* {@linkcode Split} renders multiple input boxes.
|
5
|
+
*
|
6
|
+
* Input: will move the focus box backward until the complete input from start to end.
|
7
|
+
*
|
8
|
+
* Delete: will move the focus box forward until the first and no inputs for each.
|
9
|
+
*
|
10
|
+
* @category input
|
11
|
+
*/
|
12
|
+
declare class Split extends SuperInput {
|
13
|
+
/**
|
14
|
+
* The number of input boxes.
|
15
|
+
*/
|
16
|
+
len: number;
|
17
|
+
/**
|
18
|
+
* Focus index.
|
19
|
+
*/
|
20
|
+
index: number;
|
21
|
+
current: number;
|
22
|
+
currentValue: (string | null)[];
|
23
|
+
protected render(): import("lit").TemplateResult<1>;
|
24
|
+
connectedCallback(): void;
|
25
|
+
protected _handleInput(e: HandlerEvent<HTMLInputElement, InputEvent>): void;
|
26
|
+
focus(): void;
|
27
|
+
focusAt(i: number): void;
|
28
|
+
blur(): void;
|
29
|
+
reset(): void;
|
30
|
+
}
|
31
|
+
export default Split;
|
32
|
+
//# sourceMappingURL=split.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"split.d.ts","sourceRoot":"","sources":["../../src/components/split.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAK/D,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAKhD;;;;;;;;GAQG;AACH,cA6CM,KAAM,SAAQ,UAAU;IAC5B;;OAEG;IAEH,GAAG,SAAK;IACR;;OAEG;IAEH,KAAK,SAAM;IAGX,OAAO,SAAM;IAEb,YAAY,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,CAAM;IAErC,SAAS,CAAC,MAAM;IAyBhB,iBAAiB,IAAI,IAAI;IAKzB,SAAS,CAAC,YAAY,CAAC,CAAC,EAAE,YAAY,CAAC,gBAAgB,EAAE,UAAU,CAAC;IA2CpE,KAAK;IAIL,OAAO,CAAC,CAAC,EAAE,MAAM;IAKjB,IAAI;IAKJ,KAAK;CAQN;AAED,eAAe,KAAK,CAAC"}
|
@@ -0,0 +1,173 @@
|
|
1
|
+
import { __decorate } from "tslib";
|
2
|
+
import { godown } from "@godown/element/decorators/godown.js";
|
3
|
+
import { styles } from "@godown/element/decorators/styles.js";
|
4
|
+
import { classList } from "@godown/element/directives/class-list.js";
|
5
|
+
import { css, html, nothing } from "lit";
|
6
|
+
import { property, state } from "lit/decorators.js";
|
7
|
+
import { cssGlobalVars, scopePrefix } from "../core/global-style.js";
|
8
|
+
import SuperInput from "../core/super-input.js";
|
9
|
+
const protoName = "split";
|
10
|
+
const cssScope = scopePrefix(protoName);
|
11
|
+
/**
|
12
|
+
* {@linkcode Split} renders multiple input boxes.
|
13
|
+
*
|
14
|
+
* Input: will move the focus box backward until the complete input from start to end.
|
15
|
+
*
|
16
|
+
* Delete: will move the focus box forward until the first and no inputs for each.
|
17
|
+
*
|
18
|
+
* @category input
|
19
|
+
*/
|
20
|
+
let Split = class Split extends SuperInput {
|
21
|
+
constructor() {
|
22
|
+
super(...arguments);
|
23
|
+
/**
|
24
|
+
* The number of input boxes.
|
25
|
+
*/
|
26
|
+
this.len = 6;
|
27
|
+
/**
|
28
|
+
* Focus index.
|
29
|
+
*/
|
30
|
+
this.index = -1;
|
31
|
+
this.current = -1;
|
32
|
+
this.currentValue = [];
|
33
|
+
}
|
34
|
+
render() {
|
35
|
+
return html `
|
36
|
+
<div part="root">
|
37
|
+
${this.currentValue
|
38
|
+
.map((value, index) => html `<span part="input-box"
|
39
|
+
@click="${this.disabled ? null : () => this.focusAt(index)}"
|
40
|
+
class="${classList({ focus: this.current === index }) || nothing}"
|
41
|
+
>${value}</span>`)}
|
42
|
+
<input
|
43
|
+
part="input"
|
44
|
+
id="${this.makeId}"
|
45
|
+
@blur=${this.blur}
|
46
|
+
@input="${this._handleInput}"
|
47
|
+
.value="${
|
48
|
+
/* Ensure that input always has a value of length this.len */
|
49
|
+
this.value.padStart(this.len, " ")}"
|
50
|
+
>
|
51
|
+
</div>
|
52
|
+
`;
|
53
|
+
}
|
54
|
+
connectedCallback() {
|
55
|
+
super.connectedCallback();
|
56
|
+
this.reset();
|
57
|
+
}
|
58
|
+
_handleInput(e) {
|
59
|
+
e.stopPropagation();
|
60
|
+
if (this.compositing) {
|
61
|
+
return;
|
62
|
+
}
|
63
|
+
if (e.data === null) {
|
64
|
+
// delete
|
65
|
+
if (this.currentValue[this.current] !== null) {
|
66
|
+
// delete exist value
|
67
|
+
this.currentValue[this.current] = null;
|
68
|
+
}
|
69
|
+
else {
|
70
|
+
// go to before
|
71
|
+
this.currentValue[this.current - 1] = null;
|
72
|
+
const lastNotNull = this.currentValue.findLastIndex(a => a !== null);
|
73
|
+
this.current = this.current - 1 < 0 ? lastNotNull < 0 ? 0 : lastNotNull : this.current - 1;
|
74
|
+
}
|
75
|
+
}
|
76
|
+
else {
|
77
|
+
// input
|
78
|
+
this.currentValue[this.current] = e.data;
|
79
|
+
if (this.current + 1 >= this.len) {
|
80
|
+
// index overflow
|
81
|
+
this.current = this.currentValue.indexOf(null);
|
82
|
+
if (this.current === -1) {
|
83
|
+
this.blur();
|
84
|
+
}
|
85
|
+
}
|
86
|
+
else {
|
87
|
+
// go to after
|
88
|
+
this.current += 1;
|
89
|
+
}
|
90
|
+
}
|
91
|
+
this.value = this.currentValue.join("");
|
92
|
+
this.dispatchEvent(new CustomEvent("input", { detail: this.value, bubbles: true, composed: true }));
|
93
|
+
this.dispatchEvent(new CustomEvent("change", { detail: this.value, composed: true }));
|
94
|
+
}
|
95
|
+
focus() {
|
96
|
+
this.focusAt(this.current);
|
97
|
+
}
|
98
|
+
focusAt(i) {
|
99
|
+
this.current = i;
|
100
|
+
this._input.focus();
|
101
|
+
}
|
102
|
+
blur() {
|
103
|
+
this._input.blur();
|
104
|
+
this.current = -1;
|
105
|
+
}
|
106
|
+
reset() {
|
107
|
+
this.current = -1;
|
108
|
+
this.value = this.default;
|
109
|
+
this.currentValue = this.value.split("").concat(Array(this.len - this.value.length).fill(null));
|
110
|
+
if (this.index > -1) {
|
111
|
+
this.current = this.index;
|
112
|
+
}
|
113
|
+
}
|
114
|
+
};
|
115
|
+
__decorate([
|
116
|
+
property({ type: Number })
|
117
|
+
], Split.prototype, "len", void 0);
|
118
|
+
__decorate([
|
119
|
+
property({ type: Number })
|
120
|
+
], Split.prototype, "index", void 0);
|
121
|
+
__decorate([
|
122
|
+
state()
|
123
|
+
], Split.prototype, "current", void 0);
|
124
|
+
__decorate([
|
125
|
+
state()
|
126
|
+
], Split.prototype, "currentValue", void 0);
|
127
|
+
Split = __decorate([
|
128
|
+
godown(protoName),
|
129
|
+
styles(css `
|
130
|
+
:host {
|
131
|
+
color: var(${cssGlobalVars.foreground});
|
132
|
+
display: block;
|
133
|
+
border-radius: 1px;
|
134
|
+
width: fit-content;
|
135
|
+
${cssScope}--size: 1.45em;
|
136
|
+
${cssScope}--gap: .25em;
|
137
|
+
}
|
138
|
+
|
139
|
+
[part="root"] {
|
140
|
+
gap: var(${cssScope}--gap);
|
141
|
+
width: 100%;
|
142
|
+
position: relative;
|
143
|
+
vertical-align: top;
|
144
|
+
display: inline-flex;
|
145
|
+
justify-content: space-between;
|
146
|
+
border-radius: inherit;
|
147
|
+
}
|
148
|
+
|
149
|
+
[part="input-box"] {
|
150
|
+
width: var(${cssScope}--size);
|
151
|
+
height: var(${cssScope}--size);
|
152
|
+
vertical-align: top;
|
153
|
+
text-align: center;
|
154
|
+
background-color: var(${cssGlobalVars.input}-background);
|
155
|
+
border-radius: inherit;
|
156
|
+
}
|
157
|
+
|
158
|
+
[part="input"] {
|
159
|
+
width: 100%;
|
160
|
+
height: 100%;
|
161
|
+
opacity: 0;
|
162
|
+
background: none;
|
163
|
+
position: absolute;
|
164
|
+
z-index: -1;
|
165
|
+
}
|
166
|
+
|
167
|
+
.focus {
|
168
|
+
box-shadow: var(${cssGlobalVars.input}-box-shadow);
|
169
|
+
}
|
170
|
+
`)
|
171
|
+
], Split);
|
172
|
+
export default Split;
|
173
|
+
//# sourceMappingURL=split.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"split.js","sourceRoot":"","sources":["../../src/components/split.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AAC9D,OAAO,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAC;AAErE,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAEpD,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAEhD,MAAM,SAAS,GAAG,OAAO,CAAC;AAC1B,MAAM,QAAQ,GAAG,WAAW,CAAC,SAAS,CAAC,CAA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AAM,CAAC,SAAS,CAAC;IACjB,MAAM,CACL,GAAG,CAAA;;mBAEc,aAAa,CAAC,UAAU;;;;QAInC,QAAQ;QACR,QAAQ;;;;iBAIC,QAAQ;;;;;;;;;;mBAUN,QAAQ;oBACP,QAAQ;;;8BAGE,aAAa,CAAC,KAAK;;;;;;;;;;;;;;wBAczB,aAAa,CAAC,KAAK;;GAExC,CACF;GACK,KAAK,CAgHV;AAED,eAAe,KAAK,CAAC"}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
import SuperInput from "../core/super-input.js";
|
2
|
+
/**
|
3
|
+
* {@linkcode Switch} renders a switch.
|
4
|
+
*
|
5
|
+
* The switch is rectangular by default,
|
6
|
+
* set the round property to rounded switch.
|
7
|
+
*
|
8
|
+
* @category input
|
9
|
+
*/
|
10
|
+
declare class Switch extends SuperInput {
|
11
|
+
/**
|
12
|
+
* Border style.
|
13
|
+
*/
|
14
|
+
round: boolean;
|
15
|
+
/**
|
16
|
+
* Whether this element is selected or not.
|
17
|
+
*/
|
18
|
+
checked: boolean;
|
19
|
+
/**
|
20
|
+
* Whether this element is disabled or not.
|
21
|
+
*/
|
22
|
+
disabled: boolean;
|
23
|
+
/**
|
24
|
+
* Parsed by JSON.parse to checked.
|
25
|
+
*/
|
26
|
+
default: string;
|
27
|
+
/**
|
28
|
+
* Input value.
|
29
|
+
*/
|
30
|
+
value: string;
|
31
|
+
_input: HTMLInputElement;
|
32
|
+
protected render(): import("lit").TemplateResult<1>;
|
33
|
+
reset(): void;
|
34
|
+
connectedCallback(): void;
|
35
|
+
protected _handleChange(): void;
|
36
|
+
namevalue(): [string, boolean];
|
37
|
+
}
|
38
|
+
export default Switch;
|
39
|
+
//# sourceMappingURL=switch.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"switch.d.ts","sourceRoot":"","sources":["../../src/components/switch.ts"],"names":[],"mappings":"AAMA,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAKhD;;;;;;;GAOG;AACH,cAqFM,MAAO,SAAQ,UAAU;IAC7B;;OAEG;IAEH,KAAK,UAAS;IACd;;OAEG;IAEH,OAAO,UAAS;IAChB;;OAEG;IAEH,QAAQ,UAAS;IACjB;;OAEG;IAEH,OAAO,SAAW;IAClB;;OAEG;IAEH,KAAK,SAAQ;IAGb,MAAM,EAAE,gBAAgB,CAAC;IAEzB,SAAS,CAAC,MAAM;IAgBhB,KAAK;IAKL,iBAAiB;IAUjB,SAAS,CAAC,aAAa;IAMvB,SAAS,IAAI,CAAC,MAAM,EAAE,OAAO,CAAC;CAG/B;AAED,eAAe,MAAM,CAAC"}
|
@@ -1,23 +1,26 @@
|
|
1
1
|
import { __decorate } from "tslib";
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
import {
|
5
|
-
import
|
6
|
-
import { cssGlobalVars } from "
|
7
|
-
import
|
8
|
-
const protoName = "switch
|
2
|
+
import { godown } from "@godown/element/decorators/godown.js";
|
3
|
+
import { styles } from "@godown/element/decorators/styles.js";
|
4
|
+
import { css, html } from "lit";
|
5
|
+
import { property, query } from "lit/decorators.js";
|
6
|
+
import { cssGlobalVars, scopePrefix } from "../core/global-style.js";
|
7
|
+
import SuperInput from "../core/super-input.js";
|
8
|
+
const protoName = "switch";
|
9
|
+
const cssScope = scopePrefix(protoName);
|
9
10
|
/**
|
10
|
-
* {@linkcode
|
11
|
+
* {@linkcode Switch} renders a switch.
|
11
12
|
*
|
12
|
-
*
|
13
|
+
* The switch is rectangular by default,
|
14
|
+
* set the round property to rounded switch.
|
15
|
+
*
|
16
|
+
* @category input
|
13
17
|
*/
|
14
|
-
let
|
18
|
+
let Switch = class Switch extends SuperInput {
|
15
19
|
constructor() {
|
16
20
|
super(...arguments);
|
17
21
|
/**
|
18
22
|
* Border style.
|
19
23
|
*/
|
20
|
-
// @property() variant: "fat" | "rect" = "rect";
|
21
24
|
this.round = false;
|
22
25
|
/**
|
23
26
|
* Whether this element is selected or not.
|
@@ -46,9 +49,8 @@ let SwitchInput = class SwitchInput extends GodownInput {
|
|
46
49
|
name="${this.name}"
|
47
50
|
id="${this.makeId}"
|
48
51
|
type="checkbox"
|
49
|
-
|
50
|
-
<span>
|
51
|
-
<i class="${this.checked}"><i></i></i>
|
52
|
+
>
|
53
|
+
<span class="${this.checked}">
|
52
54
|
</span>
|
53
55
|
</div>`;
|
54
56
|
}
|
@@ -76,43 +78,41 @@ let SwitchInput = class SwitchInput extends GodownInput {
|
|
76
78
|
};
|
77
79
|
__decorate([
|
78
80
|
property({ type: Boolean, reflect: true })
|
79
|
-
],
|
81
|
+
], Switch.prototype, "round", void 0);
|
80
82
|
__decorate([
|
81
83
|
property({ type: Boolean, reflect: true })
|
82
|
-
],
|
84
|
+
], Switch.prototype, "checked", void 0);
|
83
85
|
__decorate([
|
84
86
|
property({ type: Boolean, reflect: true })
|
85
|
-
],
|
87
|
+
], Switch.prototype, "disabled", void 0);
|
86
88
|
__decorate([
|
87
89
|
property()
|
88
|
-
],
|
90
|
+
], Switch.prototype, "default", void 0);
|
89
91
|
__decorate([
|
90
92
|
property()
|
91
|
-
],
|
93
|
+
], Switch.prototype, "value", void 0);
|
92
94
|
__decorate([
|
93
95
|
query("input")
|
94
|
-
],
|
95
|
-
|
96
|
+
], Switch.prototype, "_input", void 0);
|
97
|
+
Switch = __decorate([
|
96
98
|
godown(protoName),
|
97
|
-
styles(
|
98
|
-
inputStyle,
|
99
|
-
css `
|
99
|
+
styles(css `
|
100
100
|
:host {
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
background: var(
|
106
|
-
width: var(
|
107
|
-
height: var(
|
101
|
+
${cssScope}-width: 3em;
|
102
|
+
${cssScope}-height: calc(var(${cssScope}-width) / 2);
|
103
|
+
${cssScope}-handle-size: 1.25em;
|
104
|
+
${cssScope}-transition: .2s ease-in-out;
|
105
|
+
background: var(${cssGlobalVars.input}-background);
|
106
|
+
width: var(${cssScope}-width);
|
107
|
+
height: var(${cssScope}-height);
|
108
108
|
display: inline-block;
|
109
109
|
vertical-align: bottom;
|
110
|
+
border-radius: 0;
|
110
111
|
}
|
111
112
|
|
112
113
|
[part="root"],
|
113
|
-
span
|
114
|
-
|
115
|
-
transition: var(--${cssGlobalVars.input}--transition);
|
114
|
+
span {
|
115
|
+
transition: var(${cssScope}-transition);
|
116
116
|
}
|
117
117
|
|
118
118
|
[part="root"] {
|
@@ -122,8 +122,7 @@ SwitchInput = __decorate([
|
|
122
122
|
}
|
123
123
|
|
124
124
|
[part="root"],
|
125
|
-
input
|
126
|
-
i {
|
125
|
+
input {
|
127
126
|
width: 100%;
|
128
127
|
}
|
129
128
|
|
@@ -132,13 +131,13 @@ SwitchInput = __decorate([
|
|
132
131
|
height: 100%;
|
133
132
|
outline: none;
|
134
133
|
appearance: none;
|
135
|
-
-webkit-appearance: none;
|
136
|
-
-moz-appearance: none;
|
137
134
|
}
|
138
135
|
|
139
136
|
span {
|
140
137
|
height: 100%;
|
141
138
|
display: inline-flex;
|
139
|
+
align-items: center;
|
140
|
+
justify-content: center;
|
142
141
|
position: absolute;
|
143
142
|
left: 0;
|
144
143
|
width: 50%;
|
@@ -147,43 +146,38 @@ SwitchInput = __decorate([
|
|
147
146
|
}
|
148
147
|
|
149
148
|
:host([round]) {
|
150
|
-
border-radius: calc(var(
|
149
|
+
border-radius: calc(var(${cssScope}-height) / 2);
|
151
150
|
}
|
152
151
|
|
153
152
|
:host([checked]) span {
|
154
153
|
transform: translateX(100%);
|
155
154
|
}
|
156
155
|
|
157
|
-
.rect * {
|
158
|
-
border-radius: inherit;
|
159
|
-
}
|
160
|
-
|
161
156
|
.rect .true {
|
162
|
-
background: var(
|
157
|
+
background: var(${cssGlobalVars.active});
|
163
158
|
}
|
164
159
|
|
165
160
|
.rect .false {
|
166
|
-
background: var(
|
161
|
+
background: var(${cssGlobalVars.passive});
|
167
162
|
}
|
168
163
|
|
169
|
-
.round
|
164
|
+
.round span::after{
|
165
|
+
--size: var(${cssScope}-handle-size);
|
166
|
+
content:"";
|
170
167
|
border-radius: 100%;
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
height: calc(var(--${cssGlobalVars.input}--height) - var(--${cssGlobalVars.input}--gap) * 2);
|
168
|
+
background: var(--godown--input-control);
|
169
|
+
width: var(--size);
|
170
|
+
height: var(--size);
|
175
171
|
}
|
176
172
|
|
177
173
|
.round {
|
178
|
-
background: var(
|
174
|
+
background: var(${cssGlobalVars.passive});
|
179
175
|
}
|
180
176
|
|
181
177
|
:host([checked]) .round {
|
182
|
-
background: var(
|
183
|
-
}
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
export default SwitchInput;
|
189
|
-
//# sourceMappingURL=switch-input.js.map
|
178
|
+
background: var(${cssGlobalVars.active});
|
179
|
+
}
|
180
|
+
`)
|
181
|
+
], Switch);
|
182
|
+
export default Switch;
|
183
|
+
//# sourceMappingURL=switch.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"switch.js","sourceRoot":"","sources":["../../src/components/switch.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,KAAK,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAEpD,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAEhD,MAAM,SAAS,GAAG,QAAQ,CAAC;AAC3B,MAAM,QAAQ,GAAG,WAAW,CAAC,SAAS,CAAC,CAAC;AAExC;;;;;;;GAOG;AAsFH,IAAM,MAAM,GAAZ,MAAM,MAAO,SAAQ,UAAU;IAA/B;;QACE;;WAEG;QAEH,UAAK,GAAG,KAAK,CAAC;QACd;;WAEG;QAEH,YAAO,GAAG,KAAK,CAAC;QAChB;;W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CAAC,CAAC;IAC1F,CAAC;IAED,SAAS;QACP,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;IACnC,CAAC;CACF,CAAA;AAjEC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;qCAC7B;AAKd;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;uCAC3B;AAKhB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;wCAC1B;AAKjB;IADC,QAAQ,EAAE;uCACO;AAKlB;IADC,QAAQ,EAAE;qCACE;AAGb;IADC,KAAK,CAAC,OAAO,CAAC;sCACU;AA5BrB,MAAM;IArFX,MAAM,CAAC,SAAS,CAAC;IACjB,MAAM,CACL,GAAG,CAAA;;QAEG,QAAQ;QACR,QAAQ,qBAAqB,QAAQ;QACrC,QAAQ;QACR,QAAQ;wBACQ,aAAa,CAAC,KAAK;mBACxB,QAAQ;oBACP,QAAQ;;;;;;;;wBAQJ,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAkCA,QAAQ;;;;;;;;wBAQhB,aAAa,CAAC,MAAM;;;;wBAIpB,aAAa,CAAC,OAAO;;;;oBAIzB,QAAQ;;;;;;;;;wBASJ,aAAa,CAAC,OAAO;;;;wBAIrB,aAAa,CAAC,MAAM;;GAEzC,CACF;GACK,MAAM,CAsEX;AAED,eAAe,MAAM,CAAC"}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { GlobalStyle } from "../core/global-style.js";
|
2
|
+
/**
|
3
|
+
* {@linkcode Text} renders nowrap text.
|
4
|
+
*
|
5
|
+
* @category display
|
6
|
+
*/
|
7
|
+
declare class Text extends GlobalStyle {
|
8
|
+
/**
|
9
|
+
* Underline behavior.
|
10
|
+
*/
|
11
|
+
underline: "none" | "hover" | "active" | "always";
|
12
|
+
/**
|
13
|
+
* Set background-clip to text.
|
14
|
+
*/
|
15
|
+
clip: boolean;
|
16
|
+
protected render(): import("lit").TemplateResult<1>;
|
17
|
+
}
|
18
|
+
export default Text;
|
19
|
+
//# sourceMappingURL=text.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../src/components/text.ts"],"names":[],"mappings":"AAOA,OAAO,EAAiB,WAAW,EAAe,MAAM,yBAAyB,CAAC;AAMlF;;;;GAIG;AACH,cAiDM,IAAK,SAAQ,WAAW;IAC5B;;OAEG;IAEH,SAAS,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAAU;IAE3D;;OAEG;IAEH,IAAI,EAAE,OAAO,CAAC;IAEd,SAAS,CAAC,MAAM;CAYjB;AAED,eAAe,IAAI,CAAC"}
|