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,93 @@
|
|
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 { css, html } from 'lit';
|
5
|
+
import { property, query } from 'lit/decorators.js';
|
6
|
+
import { scopePrefix, cssGlobalVars } from '../core/global-style.js';
|
7
|
+
import SuperInput from '../core/super-input.js';
|
8
|
+
|
9
|
+
const protoName = "switch";
|
10
|
+
const cssScope = scopePrefix(protoName);
|
11
|
+
/**
|
12
|
+
* {@linkcode Switch} renders a switch.
|
13
|
+
*
|
14
|
+
* The switch is rectangular by default,
|
15
|
+
* set the round property to rounded switch.
|
16
|
+
*
|
17
|
+
* @category input
|
18
|
+
*/
|
19
|
+
let Switch = class Switch extends SuperInput {
|
20
|
+
constructor() {
|
21
|
+
super(...arguments);
|
22
|
+
/**
|
23
|
+
* Border style.
|
24
|
+
*/
|
25
|
+
this.round = false;
|
26
|
+
/**
|
27
|
+
* Whether this element is selected or not.
|
28
|
+
*/
|
29
|
+
this.checked = false;
|
30
|
+
/**
|
31
|
+
* Whether this element is disabled or not.
|
32
|
+
*/
|
33
|
+
this.disabled = false;
|
34
|
+
/**
|
35
|
+
* Parsed by JSON.parse to checked.
|
36
|
+
*/
|
37
|
+
this.default = "false";
|
38
|
+
/**
|
39
|
+
* Input value.
|
40
|
+
*/
|
41
|
+
this.value = "on";
|
42
|
+
}
|
43
|
+
render() {
|
44
|
+
return html `<div part="root" class="${this.round ? "round" : "rect"}"><input part="input" @change="${this._handleChange}" ?disabled="${this.disabled}" ?checked="${this.checked}" name="${this.name}" id="${this.makeId}" type="checkbox"> <span class="${this.checked}"></span></div>`;
|
45
|
+
}
|
46
|
+
reset() {
|
47
|
+
this.checked = this.default === "true";
|
48
|
+
this._input.checked = this.checked;
|
49
|
+
}
|
50
|
+
connectedCallback() {
|
51
|
+
super.connectedCallback();
|
52
|
+
if (this.checked) {
|
53
|
+
this.default = "true";
|
54
|
+
}
|
55
|
+
if (this.default === "true") {
|
56
|
+
this.checked = true;
|
57
|
+
}
|
58
|
+
}
|
59
|
+
_handleChange() {
|
60
|
+
this.checked = this._input.checked;
|
61
|
+
this.dispatchEvent(new CustomEvent("input", { detail: this.checked, bubbles: true, composed: true }));
|
62
|
+
this.dispatchEvent(new CustomEvent("change", { detail: this.checked, composed: true }));
|
63
|
+
}
|
64
|
+
namevalue() {
|
65
|
+
return [this.name, this.checked];
|
66
|
+
}
|
67
|
+
};
|
68
|
+
__decorate([
|
69
|
+
property({ type: Boolean, reflect: true })
|
70
|
+
], Switch.prototype, "round", void 0);
|
71
|
+
__decorate([
|
72
|
+
property({ type: Boolean, reflect: true })
|
73
|
+
], Switch.prototype, "checked", void 0);
|
74
|
+
__decorate([
|
75
|
+
property({ type: Boolean, reflect: true })
|
76
|
+
], Switch.prototype, "disabled", void 0);
|
77
|
+
__decorate([
|
78
|
+
property()
|
79
|
+
], Switch.prototype, "default", void 0);
|
80
|
+
__decorate([
|
81
|
+
property()
|
82
|
+
], Switch.prototype, "value", void 0);
|
83
|
+
__decorate([
|
84
|
+
query("input")
|
85
|
+
], Switch.prototype, "_input", void 0);
|
86
|
+
Switch = __decorate([
|
87
|
+
godown(protoName),
|
88
|
+
styles(css `:host{${cssScope}-width:3em;${cssScope}-height:calc(var(${cssScope}-width)/ 2);${cssScope}-handle-size:1.25em;${cssScope}-transition:.2s ease-in-out;background:var(${cssGlobalVars.input}-background);width:var(${cssScope}-width);height:var(${cssScope}-height);display:inline-block;vertical-align:bottom;border-radius:0}[part=root],span{transition:var(${cssScope}-transition)}[part=root]{border-radius:inherit;position:relative;height:inherit}[part=root],input{width:100%}input{margin:0;height:100%;outline:0;-webkit-appearance:none;appearance:none}span{height:100%;display:inline-flex;align-items:center;justify-content:center;position:absolute;left:0;width:50%;pointer-events:none;border-radius:inherit}:host([round]){border-radius:calc(var(${cssScope}-height)/ 2)}:host([checked]) span{transform:translateX(100%)}.rect .true{background:var(${cssGlobalVars.active})}.rect .false{background:var(${cssGlobalVars.passive})}.round span::after{--size:var(${cssScope}-handle-size);content:"";border-radius:100%;background:var(--godown--input-control);width:var(--size);height:var(--size)}.round{background:var(${cssGlobalVars.passive})}:host([checked]) .round{background:var(${cssGlobalVars.active})}`)
|
89
|
+
], Switch);
|
90
|
+
var Switch$1 = Switch;
|
91
|
+
|
92
|
+
export { Switch$1 as default };
|
93
|
+
//# sourceMappingURL=switch.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"switch.js","sources":["../src/components/switch.ts"],"sourcesContent":null,"names":[],"mappings":";;;;;;;;AAQA,MAAM,SAAS,GAAG,QAAQ,CAAC;AAC3B,MAAM,QAAQ,GAAG,WAAW,CAAC,SAAS,CAAC,CAAC;AAExC;;;;;;;AAOG;AAKH,IAAM,MAAM,GAAZ,MAAM,MAAO,SAAQ,UAAU,CAAA;AAA/B,IAAA,WAAA,GAAA;;AACE;;AAEG;QAEH,IAAK,CAAA,KAAA,GAAG,KAAK,CAAC;AACd;;AAEG;QAEH,IAAO,CAAA,OAAA,GAAG,KAAK,CAAC;AAChB;;AAEG;QAEH,IAAQ,CAAA,QAAA,GAAG,KAAK,CAAC;AACjB;;AAEG;QAEH,IAAO,CAAA,OAAA,GAAG,OAAO,CAAC;AAClB;;AAEG;QAEH,IAAK,CAAA,KAAA,GAAG,IAAI,CAAC;KA6Cd;IAxCW,MAAM,GAAA;AACd,QAAA,OAAO,IAAI,CAAA,CAAA,wBAAA,EAA2B,IAAI,CAAC,KAAK,GAAG,OAAO,GAAG,MAAM,CAGpD,+BAAA,EAAA,IAAI,CAAC,aAAa,CAAA,aAAA,EAChB,IAAI,CAAC,QAAQ,CACd,YAAA,EAAA,IAAI,CAAC,OAAO,CAAA,QAAA,EAChB,IAAI,CAAC,IAAI,CACX,MAAA,EAAA,IAAI,CAAC,MAAM,CAAA,gCAAA,EAGJ,IAAI,CAAC,OAAO,iBAEtB,CAAC;KACT;IAED,KAAK,GAAA;QACH,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,KAAK,MAAM,CAAC;QACvC,IAAI,CAAC,MAAM,CAAC,OAAO,GAAG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/
|
5
|
-
|
7
|
+
declare class Text extends GlobalStyle {
|
6
8
|
/**
|
7
9
|
* Underline behavior.
|
8
10
|
*/
|
@@ -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,cAEM,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;CAOjB;AAED,eAAe,IAAI,CAAC"}
|
@@ -0,0 +1,44 @@
|
|
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 { htmlSlot } from '@godown/element/directives/html-slot.js';
|
6
|
+
import { css, html } from 'lit';
|
7
|
+
import { property } from 'lit/decorators.js';
|
8
|
+
import { scopePrefix, cssGlobalVars, GlobalStyle } from '../core/global-style.js';
|
9
|
+
|
10
|
+
const protoName = "text";
|
11
|
+
const cssScope = scopePrefix(protoName);
|
12
|
+
/**
|
13
|
+
* {@linkcode Text} renders nowrap text.
|
14
|
+
*
|
15
|
+
* @category display
|
16
|
+
*/
|
17
|
+
let Text = class Text extends GlobalStyle {
|
18
|
+
constructor() {
|
19
|
+
super(...arguments);
|
20
|
+
/**
|
21
|
+
* Underline behavior.
|
22
|
+
*/
|
23
|
+
this.underline = "none";
|
24
|
+
}
|
25
|
+
render() {
|
26
|
+
return html `<span part="root" class="${classList(this.underline, {
|
27
|
+
clip: this.clip,
|
28
|
+
})}">${htmlSlot()}</span>`;
|
29
|
+
}
|
30
|
+
};
|
31
|
+
__decorate([
|
32
|
+
property()
|
33
|
+
], Text.prototype, "underline", void 0);
|
34
|
+
__decorate([
|
35
|
+
property({ type: Boolean })
|
36
|
+
], Text.prototype, "clip", void 0);
|
37
|
+
Text = __decorate([
|
38
|
+
godown(protoName),
|
39
|
+
styles(css `:host{${cssScope}--color:currentColor;${cssScope}--color-hover:currentColor;${cssScope}--color-active:currentColor;display:inline-block;text-overflow:ellipsis;overflow-wrap:break-word}span{white-space:nowrap;width:100%;vertical-align:bottom;display:inline-block;text-overflow:inherit;overflow-wrap:inherit;overflow:hidden;color:var(${cssScope}--color)}span:hover{color:var(${cssScope}--color-hover,var(${cssScope}--color))}span:active{color:var(${cssScope}--color-active,var(${cssScope}--color))}.active:active,.always,.hover:hover{text-decoration:underline}.none{text-decoration:none}.clip{background:var(${cssGlobalVars.clipBackground});display:inline-block;color:transparent;-webkit-text-fill-color:transparent;background-clip:text;-webkit-background-clip:text}`)
|
40
|
+
], Text);
|
41
|
+
var Text$1 = Text;
|
42
|
+
|
43
|
+
export { Text$1 as default };
|
44
|
+
//# sourceMappingURL=text.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"text.js","sources":["../src/components/text.ts"],"sourcesContent":null,"names":[],"mappings":";;;;;;;;;AASA,MAAM,SAAS,GAAG,MAAM,CAAC;AAEzB,MAAM,QAAQ,GAAG,WAAW,CAAC,SAAS,CAAC,CAAC;AAExC;;;;AAIG;AAGH,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,WAAW,CAAA;AAA9B,IAAA,WAAA,GAAA;;AACE;;AAEG;QAEH,IAAS,CAAA,SAAA,GAA2C,MAAM,CAAC;KAoB5D;IAZW,MAAM,GAAA;QACd,OAAO,IAAI,CAAA,CAGT,yBAAA,EAAA,SAAS,CAAC,IAAI,CAAC,SAAS,EAAE;YACxB,IAAI,EAAE,IAAI,CAAC,IAAI;AAChB,SAAA,CACH,CAEI,EAAA,EAAA,QAAQ,EAAE,CAAA,OAAA,CACN,CAAC;KACV;CACF,CAAA;AApBC,UAAA,CAAA;AADC,IAAA,QAAQ,EAAE;AACgD,CAAA,EAAA,IAAA,CAAA,SAAA,EAAA,WAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAM3D,UAAA,CAAA;AADC,IAAA,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;AACd,CAAA,EAAA,IAAA,CAAA,SAAA,EAAA,MAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAXV,IAAI,GAAA,UAAA,CAAA;IAFT,MAAM,CAAC,SAAS,CAAC;IACjB,MAAM,CAAC,GAAG,CAAA,CAAS,MAAA,EAAA,QAAQ,wBAAwB,QAAQ,CAAA,2BAAA,EAA8B,QAAQ,CAAA,qPAAA,EAAwP,QAAQ,CAAA,8BAAA,EAAiC,QAAQ,CAAqB,kBAAA,EAAA,QAAQ,CAAmC,gCAAA,EAAA,QAAQ,CAAsB,mBAAA,EAAA,QAAQ,2HAA2H,aAAa,CAAC,cAAc,CAAA,+HAAA,CAAiI,CAAC;AACpwB,CAAA,EAAA,IAAI,CAyBT,CAAA;AAED,aAAe,IAAI;;;;"}
|
@@ -1,9 +1,11 @@
|
|
1
1
|
import { type PropertyValues } from "lit";
|
2
|
-
import {
|
2
|
+
import { GlobalStyle } from "../core/global-style.js";
|
3
3
|
/**
|
4
4
|
* {@linkcode Time} renders a formatting time.
|
5
|
+
*
|
6
|
+
* @category display
|
5
7
|
*/
|
6
|
-
|
8
|
+
declare class Time extends GlobalStyle {
|
7
9
|
/**
|
8
10
|
* Cancels the next character formatting.
|
9
11
|
*/
|
@@ -38,7 +40,7 @@ export declare class Time extends GodownElement {
|
|
38
40
|
* h for hour\
|
39
41
|
* m for minute\
|
40
42
|
* s for second\
|
41
|
-
* S for milli
|
43
|
+
* S for milli second\
|
42
44
|
* Z for time zone.
|
43
45
|
*
|
44
46
|
* @param fm Format string.
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"time.d.ts","sourceRoot":"","sources":["../src/components/time.ts"],"names":[],"mappings":"AAEA,OAAO,EAAO,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAG/C,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAItD;;;;GAIG;AACH,cAEM,IAAK,SAAQ,WAAW;IAC5B;;OAEG;IAEH,MAAM,SAAO;IACb;;;OAGG;IAEH,MAAM,SAA8B;IACpC;;OAEG;IAEH,IAAI,OAAc;IAClB;;OAEG;IAEH,OAAO,SAAK;IACZ;;OAEG;IAEH,GAAG,SAAK;IAER,SAAS,EAAE,MAAM,CAAC;IAElB,SAAS,CAAC,MAAM,IAAI,MAAM;IAI1B,SAAS,CAAC,YAAY;IAMtB,SAAS,CAAC,OAAO,CAAC,iBAAiB,EAAE,cAAc,GAAG,IAAI;IAS1D,oBAAoB;IAIpB,YAAY;IAMZ;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM;CAwCrD;AAED,eAAe,IAAI,CAAC"}
|
@@ -0,0 +1,139 @@
|
|
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 { css } from 'lit';
|
5
|
+
import { property } from 'lit/decorators.js';
|
6
|
+
import { GlobalStyle } from '../core/global-style.js';
|
7
|
+
|
8
|
+
var Time_1;
|
9
|
+
const protoName = "time";
|
10
|
+
/**
|
11
|
+
* {@linkcode Time} renders a formatting time.
|
12
|
+
*
|
13
|
+
* @category display
|
14
|
+
*/
|
15
|
+
let Time = Time_1 = class Time extends GlobalStyle {
|
16
|
+
constructor() {
|
17
|
+
super(...arguments);
|
18
|
+
/**
|
19
|
+
* Cancels the next character formatting.
|
20
|
+
*/
|
21
|
+
this.escape = "%";
|
22
|
+
/**
|
23
|
+
* Format strings.
|
24
|
+
* {@linkcode Time.fmt}
|
25
|
+
*/
|
26
|
+
this.format = "YYYY-MM-DD hh:mm:ss UTFZ";
|
27
|
+
/**
|
28
|
+
* Time.
|
29
|
+
*/
|
30
|
+
this.time = new Date();
|
31
|
+
/**
|
32
|
+
* If there is a value, update every gap or timeout.
|
33
|
+
*/
|
34
|
+
this.timeout = 0;
|
35
|
+
/**
|
36
|
+
* The number of milliseconds that change with each update.
|
37
|
+
*/
|
38
|
+
this.gap = 0;
|
39
|
+
}
|
40
|
+
render() {
|
41
|
+
return Time_1.fmt(this.format, this.time, this.escape);
|
42
|
+
}
|
43
|
+
firstUpdated() {
|
44
|
+
if (this.timeout) {
|
45
|
+
this.timeoutId = this.startTimeout();
|
46
|
+
}
|
47
|
+
}
|
48
|
+
updated(changedProperties) {
|
49
|
+
if (changedProperties.has("timeout")) {
|
50
|
+
clearInterval(this.timeoutId);
|
51
|
+
if (this.timeout) {
|
52
|
+
this.timeoutId = this.startTimeout();
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
56
|
+
disconnectedCallback() {
|
57
|
+
clearInterval(this.timeoutId);
|
58
|
+
}
|
59
|
+
startTimeout() {
|
60
|
+
return window.setInterval(() => {
|
61
|
+
this.time = new Date(this.time.getTime() + (this.gap || this.timeout));
|
62
|
+
}, Math.abs(this.timeout));
|
63
|
+
}
|
64
|
+
/**
|
65
|
+
* Y for year\
|
66
|
+
* M for month\
|
67
|
+
* D for day\
|
68
|
+
* h for hour\
|
69
|
+
* m for minute\
|
70
|
+
* s for second\
|
71
|
+
* S for milli second\
|
72
|
+
* Z for time zone.
|
73
|
+
*
|
74
|
+
* @param fm Format string.
|
75
|
+
* @param tm Time.
|
76
|
+
* @returns Format result
|
77
|
+
*/
|
78
|
+
static fmt(fm, tm, em) {
|
79
|
+
if (!fm) {
|
80
|
+
return fm;
|
81
|
+
}
|
82
|
+
tm = typeof tm === "string" ? new Date(tm) : tm;
|
83
|
+
if (isNaN(tm.getTime())) {
|
84
|
+
return fm;
|
85
|
+
}
|
86
|
+
const rest = [];
|
87
|
+
const replaced = `${em}${em}`;
|
88
|
+
fm = fm.replace(new RegExp(`${em}([ZYMDhmsS${em}])`, "g"), (_, p1) => {
|
89
|
+
rest.push(p1);
|
90
|
+
return replaced;
|
91
|
+
});
|
92
|
+
function formatNumber(n, max = 2) {
|
93
|
+
return n.toString().padStart(max, "0").split("");
|
94
|
+
}
|
95
|
+
const z = tm.getTimezoneOffset() / -60;
|
96
|
+
const switcher = {
|
97
|
+
Z: [z >= 0 ? "+" + z.toString() : z.toString()],
|
98
|
+
Y: tm.getFullYear().toString().split(""),
|
99
|
+
M: formatNumber(tm.getMonth() + 1),
|
100
|
+
D: formatNumber(tm.getDate()),
|
101
|
+
h: formatNumber(tm.getHours()),
|
102
|
+
m: formatNumber(tm.getMinutes()),
|
103
|
+
s: formatNumber(tm.getSeconds()),
|
104
|
+
S: formatNumber(tm.getMilliseconds(), 3),
|
105
|
+
};
|
106
|
+
const result = [];
|
107
|
+
for (const f of fm.split("").reverse()) {
|
108
|
+
const s = switcher[f]?.pop();
|
109
|
+
result.push(s ? s : f);
|
110
|
+
}
|
111
|
+
return result
|
112
|
+
.reverse()
|
113
|
+
.join("")
|
114
|
+
.replace(new RegExp(replaced, "g"), () => rest.shift());
|
115
|
+
}
|
116
|
+
};
|
117
|
+
__decorate([
|
118
|
+
property()
|
119
|
+
], Time.prototype, "escape", void 0);
|
120
|
+
__decorate([
|
121
|
+
property()
|
122
|
+
], Time.prototype, "format", void 0);
|
123
|
+
__decorate([
|
124
|
+
property({ type: Object })
|
125
|
+
], Time.prototype, "time", void 0);
|
126
|
+
__decorate([
|
127
|
+
property({ type: Number })
|
128
|
+
], Time.prototype, "timeout", void 0);
|
129
|
+
__decorate([
|
130
|
+
property({ type: Number })
|
131
|
+
], Time.prototype, "gap", void 0);
|
132
|
+
Time = Time_1 = __decorate([
|
133
|
+
godown(protoName),
|
134
|
+
styles(css `:host{text-align:center}`)
|
135
|
+
], Time);
|
136
|
+
var Time$1 = Time;
|
137
|
+
|
138
|
+
export { Time$1 as default };
|
139
|
+
//# sourceMappingURL=time.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"time.js","sources":["../src/components/time.ts"],"sourcesContent":null,"names":[],"mappings":";;;;;;;;AAOA,MAAM,SAAS,GAAG,MAAM,CAAC;AAEzB;;;;AAIG;AAGH,IAAM,IAAI,GAAA,MAAA,GAAV,MAAM,IAAK,SAAQ,WAAW,CAAA;AAA9B,IAAA,WAAA,GAAA;;AACE;;AAEG;QAEH,IAAM,CAAA,MAAA,GAAG,GAAG,CAAC;AACb;;;AAGG;QAEH,IAAM,CAAA,MAAA,GAAG,0BAA0B,CAAC;AACpC;;AAEG;AAEH,QAAA,IAAA,CAAA,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;AAClB;;AAEG;QAEH,IAAO,CAAA,OAAA,GAAG,CAAC,CAAC;AACZ;;AAEG;QAEH,IAAG,CAAA,GAAA,GAAG,CAAC,CAAC;KAuFT;IAnFW,MAAM,GAAA;AACd,QAAA,OAAO,MAAI,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;KACtD;IAES,YAAY,GAAA;AACpB,QAAA,IAAI,IAAI,CAAC,OAAO,EAAE;AAChB,YAAA,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;SACtC;KACF;AAES,IAAA,OAAO,CAAC,iBAAiC,EAAA;AACjD,QAAA,IAAI,iBAAiB,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE;AACpC,YAAA,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;AAC9B,YAAA,IAAI,IAAI,CAAC,OAAO,EAAE;AAChB,gBAAA,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;aACtC;SACF;KACF;IAED,oBAAoB,GAAA;AAClB,QAAA,aAAa,CAAC,IAAI,CAAC,SAAS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CAAC,KAAK,EAAE,CAAC,CAAC;KAC3D;CACF,CAAA;AA5GC,UAAA,CAAA;AADC,IAAA,QAAQ,EAAE;AACE,CAAA,EAAA,IAAA,CAAA,SAAA,EAAA,QAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAMb,UAAA,CAAA;AADC,IAAA,QAAQ,EAAE;AACyB,CAAA,EAAA,IAAA,CAAA,SAAA,EAAA,QAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAKpC,UAAA,CAAA;AADC,IAAA,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;AACT,CAAA,EAAA,IAAA,CAAA,SAAA,EAAA,MAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAKlB,UAAA,CAAA;AADC,IAAA,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;AACf,CAAA,EAAA,IAAA,CAAA,SAAA,EAAA,SAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAKZ,UAAA,CAAA;AADC,IAAA,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;AACnB,CAAA,EAAA,IAAA,CAAA,SAAA,EAAA,KAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AA1BJ,IAAI,GAAA,MAAA,GAAA,UAAA,CAAA;IAFT,MAAM,CAAC,SAAS,CAAC;AACjB,IAAA,MAAM,CAAC,GAAG,CAAA,CAAA,wBAAA,CAA0B,CAAC;AAChC,CAAA,EAAA,IAAI,CAiHT,CAAA;AAED,aAAe,IAAI;;;;"}
|
@@ -0,0 +1,38 @@
|
|
1
|
+
import SuperOpenable, { type Direction8 } from "../core/super-openable.js";
|
2
|
+
/**
|
3
|
+
* {@linkcode Tooltip} provide tooltip for slot elements.
|
4
|
+
*
|
5
|
+
* If it has the tip property, ignore the slot tip.
|
6
|
+
*
|
7
|
+
* @slot tip - Tip element.
|
8
|
+
* @slot - Content.
|
9
|
+
* @category feedback
|
10
|
+
*/
|
11
|
+
declare class Tooltip extends SuperOpenable {
|
12
|
+
/**
|
13
|
+
* Tip text, if there is a value, the slot will be ignored.
|
14
|
+
*/
|
15
|
+
tip: string;
|
16
|
+
/**
|
17
|
+
* Direction of opening the tip.
|
18
|
+
*/
|
19
|
+
direction: Direction8;
|
20
|
+
/**
|
21
|
+
* Content alignment.
|
22
|
+
*/
|
23
|
+
align: "center" | "flex-start" | "flex-end" | "start" | "end";
|
24
|
+
/**
|
25
|
+
* If true, allow penetration of the tip.
|
26
|
+
*/
|
27
|
+
propagation: boolean;
|
28
|
+
static aligns: {
|
29
|
+
start: string;
|
30
|
+
end: string;
|
31
|
+
center: string;
|
32
|
+
"flex-start": string;
|
33
|
+
"flex-end": string;
|
34
|
+
};
|
35
|
+
protected render(): import("lit").TemplateResult<1>;
|
36
|
+
}
|
37
|
+
export default Tooltip;
|
38
|
+
//# sourceMappingURL=tooltip.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../src/components/tooltip.ts"],"names":[],"mappings":"AAOA,OAAO,aAAa,EAAE,EAAE,KAAK,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAK3E;;;;;;;;GAQG;AACH,cAKM,OAAQ,SAAQ,aAAa;IACjC;;OAEG;IAEH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IAEH,SAAS,EAAE,UAAU,CAAS;IAC9B;;OAEG;IAEH,KAAK,EAAE,QAAQ,GAAG,YAAY,GAAG,UAAU,GAAG,OAAO,GAAG,KAAK,CAAY;IAEzE;;OAEG;IAEH,WAAW,EAAE,OAAO,CAAC;IAErB,MAAM,CAAC,MAAM;;;;;;MAMX;IAEF,SAAS,CAAC,MAAM;CAQjB;AAED,eAAe,OAAO,CAAC"}
|
@@ -0,0 +1,67 @@
|
|
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 { htmlSlot } from '@godown/element/directives/html-slot.js';
|
5
|
+
import { css, html } from 'lit';
|
6
|
+
import { property } from 'lit/decorators.js';
|
7
|
+
import { scopePrefix, cssGlobalVars } from '../core/global-style.js';
|
8
|
+
import SuperOpenable from '../core/super-openable.js';
|
9
|
+
|
10
|
+
var Tooltip_1;
|
11
|
+
const protoName = "tooltip";
|
12
|
+
const cssScope = scopePrefix(protoName);
|
13
|
+
/**
|
14
|
+
* {@linkcode Tooltip} provide tooltip for slot elements.
|
15
|
+
*
|
16
|
+
* If it has the tip property, ignore the slot tip.
|
17
|
+
*
|
18
|
+
* @slot tip - Tip element.
|
19
|
+
* @slot - Content.
|
20
|
+
* @category feedback
|
21
|
+
*/
|
22
|
+
let Tooltip = Tooltip_1 = class Tooltip extends SuperOpenable {
|
23
|
+
constructor() {
|
24
|
+
super(...arguments);
|
25
|
+
/**
|
26
|
+
* Direction of opening the tip.
|
27
|
+
*/
|
28
|
+
this.direction = "top";
|
29
|
+
/**
|
30
|
+
* Content alignment.
|
31
|
+
*/
|
32
|
+
this.align = "center";
|
33
|
+
}
|
34
|
+
render() {
|
35
|
+
const align = Tooltip_1.aligns[this.align] || "inherit";
|
36
|
+
return html `<div part="root" style="justify-content:${align};align-items:${align}">${htmlSlot()}<div part="tip" direction="${this.direction}" style="pointer-events:${this.propagation ? "none" : "all"}">${this.tip
|
37
|
+
? html `<span class="passive">${this.tip}</span>`
|
38
|
+
: htmlSlot("tip")}</div></div>`;
|
39
|
+
}
|
40
|
+
};
|
41
|
+
Tooltip.aligns = {
|
42
|
+
start: "flex-start",
|
43
|
+
end: "flex-end",
|
44
|
+
center: "center",
|
45
|
+
"flex-start": "flex-start",
|
46
|
+
"flex-end": "flex-end",
|
47
|
+
};
|
48
|
+
__decorate([
|
49
|
+
property()
|
50
|
+
], Tooltip.prototype, "tip", void 0);
|
51
|
+
__decorate([
|
52
|
+
property()
|
53
|
+
], Tooltip.prototype, "direction", void 0);
|
54
|
+
__decorate([
|
55
|
+
property()
|
56
|
+
], Tooltip.prototype, "align", void 0);
|
57
|
+
__decorate([
|
58
|
+
property({ type: Boolean })
|
59
|
+
], Tooltip.prototype, "propagation", void 0);
|
60
|
+
Tooltip = Tooltip_1 = __decorate([
|
61
|
+
godown(protoName),
|
62
|
+
styles(css `:host{${cssScope}--tip-background:var(${cssGlobalVars.background});display:inline-block;width:-moz-fit-content;width:fit-content}[part=root]{display:flex;position:relative;transition:inherit;border-radius:inherit}[part=tip]{width:-moz-fit-content;width:fit-content;height:-moz-fit-content;height:fit-content;position:absolute;visibility:hidden;transition:inherit;-webkit-user-select:none;user-select:none}:host(:hover) [part=tip],:host([open]) [part=tip],[part=tip]:hover{visibility:visible}.passive{background:var(${cssScope}--tip-background);padding:0 .5em}`, css `[direction^=top]{bottom:100%}[direction^=bottom]{top:100%}[direction$=right]{left:100%}[direction$=left]{right:100%}`)
|
63
|
+
], Tooltip);
|
64
|
+
var Tooltip$1 = Tooltip;
|
65
|
+
|
66
|
+
export { Tooltip$1 as default };
|
67
|
+
//# sourceMappingURL=tooltip.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"tooltip.js","sources":["../src/components/tooltip.ts"],"sourcesContent":null,"names":[],"mappings":";;;;;;;;;;AASA,MAAM,SAAS,GAAG,SAAS,CAAC;AAC5B,MAAM,QAAQ,GAAG,WAAW,CAAC,SAAS,CAAC,CAAC;AAExC;;;;;;;;AAQG;AAMH,IAAM,OAAO,GAAA,SAAA,GAAb,MAAM,OAAQ,SAAQ,aAAa,CAAA;AAAnC,IAAA,WAAA,GAAA;;AAME;;AAEG;QAEH,IAAS,CAAA,SAAA,GAAe,KAAK,CAAC;AAC9B;;AAEG;QAEH,IAAK,CAAA,KAAA,GAA2D,QAAQ,CAAC;KA4B1E;IAZW,MAAM,GAAA;AACd,QAAA,MAAM,KAAK,GAAG,SAAO,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,SAAS,CAAC;AACtD,QAAA,OAAO,IA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CAAA,kcAAA,EAA+c,QAAQ,CAAmC,iCAAA,CAAA,EAC9jB,GAAG,CAAA,sHAA8H,CAClI;AACK,CAAA,EAAA,OAAO,CA2CZ,CAAA;AAED,gBAAe,OAAO;;;;"}
|
@@ -1,9 +1,11 @@
|
|
1
|
-
import { type PropertyValueMap } from "
|
2
|
-
import {
|
1
|
+
import { type PropertyValueMap } from "lit";
|
2
|
+
import { GlobalStyle } from "../core/global-style.js";
|
3
3
|
/**
|
4
4
|
* {@linkcode Typewriter} renders a typewriter effect to text.
|
5
|
+
*
|
6
|
+
* @category effect
|
5
7
|
*/
|
6
|
-
|
8
|
+
declare class Typewriter extends GlobalStyle {
|
7
9
|
/**
|
8
10
|
* Raw text.
|
9
11
|
*/
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"typewriter.d.ts","sourceRoot":"","sources":["../src/components/typewriter.ts"],"names":[],"mappings":"AAKA,OAAO,EAAa,KAAK,gBAAgB,EAAE,MAAM,KAAK,CAAC;AAGvD,OAAO,EAAE,WAAW,EAAe,MAAM,yBAAyB,CAAC;AAKnE;;;;GAIG;AACH,cAEM,UAAW,SAAQ,WAAW;IAClC;;OAEG;IAEH,IAAI,SAAM;IACV;;OAEG;IAEH,OAAO,UAAS;IAChB;;OAEG;IAEH,KAAK,UAAS;IACd;;OAEG;IAEH,GAAG,SAAO;IACV;;OAEG;IAEH,GAAG,SAAM;IACT;;OAEG;IAEH,KAAK,SAAK;IACV;;OAEG;IAEH,KAAK,SAAK;IACV;;OAEG;IAEH,OAAO,SAAM;IAEb,SAAS,EAAE,MAAM,CAAC;IAElB,EAAE,EAAE,WAAW,CAAC;IAEhB;;OAEG;IACH,IAAI,GAAG,WAEN;IAED,SAAS,CAAC,MAAM;IAQhB,SAAS,CAAC,YAAY;IAStB,SAAS,CAAC,OAAO,CAAC,iBAAiB,EAAE,gBAAgB,CAAC,IAAI,CAAC;IAM3D,KAAK,CAAC,EAAE,SAAa;IAYrB,IAAI;IAIJ,GAAG;CAGJ;AAED,eAAe,UAAU,CAAC"}
|
@@ -0,0 +1,130 @@
|
|
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 { htmlSlot } from '@godown/element/directives/html-slot.js';
|
6
|
+
import { random } from '@godown/element/tools/lib.js';
|
7
|
+
import { css, html } from 'lit';
|
8
|
+
import { property, state, query } from 'lit/decorators.js';
|
9
|
+
import { scopePrefix, GlobalStyle } from '../core/global-style.js';
|
10
|
+
|
11
|
+
const protoName = "typewriter";
|
12
|
+
const cssScope = scopePrefix(protoName);
|
13
|
+
/**
|
14
|
+
* {@linkcode Typewriter} renders a typewriter effect to text.
|
15
|
+
*
|
16
|
+
* @category effect
|
17
|
+
*/
|
18
|
+
let Typewriter = class Typewriter extends GlobalStyle {
|
19
|
+
constructor() {
|
20
|
+
super(...arguments);
|
21
|
+
/**
|
22
|
+
* Raw text.
|
23
|
+
*/
|
24
|
+
this.text = "";
|
25
|
+
/**
|
26
|
+
* Start immediately after {@linkcode Typewriter.firstUpdated}.
|
27
|
+
*/
|
28
|
+
this.stopped = false;
|
29
|
+
/**
|
30
|
+
* If true, hide the cursor
|
31
|
+
*/
|
32
|
+
this.ended = false;
|
33
|
+
/**
|
34
|
+
* Maximum random time.
|
35
|
+
*/
|
36
|
+
this.max = 100;
|
37
|
+
/**
|
38
|
+
* Minimum random time.
|
39
|
+
*/
|
40
|
+
this.min = 50;
|
41
|
+
/**
|
42
|
+
* Fixed time.
|
43
|
+
*/
|
44
|
+
this.delay = 0;
|
45
|
+
/**
|
46
|
+
* The index at the beginning.
|
47
|
+
*/
|
48
|
+
this.index = 0;
|
49
|
+
/**
|
50
|
+
* Internal text.
|
51
|
+
*/
|
52
|
+
this.content = "";
|
53
|
+
}
|
54
|
+
/**
|
55
|
+
* {@linkcode Typewriter.text} length.
|
56
|
+
*/
|
57
|
+
get len() {
|
58
|
+
return this.text.length;
|
59
|
+
}
|
60
|
+
render() {
|
61
|
+
return html `${htmlSlot()}${this.content}<i part="cursor" class="${classList({
|
62
|
+
hidden: this.ended,
|
63
|
+
})}"></i>`;
|
64
|
+
}
|
65
|
+
firstUpdated() {
|
66
|
+
if (!this.text) {
|
67
|
+
this.text = this._slot?.assignedNodes()[0]?.textContent.trim() || "";
|
68
|
+
}
|
69
|
+
if (!this.stopped && this.len) {
|
70
|
+
this.write();
|
71
|
+
}
|
72
|
+
}
|
73
|
+
updated(changedProperties) {
|
74
|
+
if (changedProperties.has("index")) {
|
75
|
+
this.dispatchEvent(new CustomEvent(this.index === this.len ? "done" : "write", { detail: this.content }));
|
76
|
+
}
|
77
|
+
}
|
78
|
+
write(at = this.index) {
|
79
|
+
this.content = this.text.slice(0, at + 1);
|
80
|
+
const timeout = this.delay || random(this.max, this.min);
|
81
|
+
this.timeoutID = window.setTimeout(() => {
|
82
|
+
const nx = at + 1;
|
83
|
+
if (nx <= this.len) {
|
84
|
+
this.index = nx;
|
85
|
+
this.write();
|
86
|
+
}
|
87
|
+
}, timeout);
|
88
|
+
}
|
89
|
+
stop() {
|
90
|
+
clearTimeout(this.timeoutID);
|
91
|
+
}
|
92
|
+
end() {
|
93
|
+
this.ended = true;
|
94
|
+
}
|
95
|
+
};
|
96
|
+
__decorate([
|
97
|
+
property()
|
98
|
+
], Typewriter.prototype, "text", void 0);
|
99
|
+
__decorate([
|
100
|
+
property({ type: Boolean })
|
101
|
+
], Typewriter.prototype, "stopped", void 0);
|
102
|
+
__decorate([
|
103
|
+
property({ type: Boolean })
|
104
|
+
], Typewriter.prototype, "ended", void 0);
|
105
|
+
__decorate([
|
106
|
+
property({ type: Number })
|
107
|
+
], Typewriter.prototype, "max", void 0);
|
108
|
+
__decorate([
|
109
|
+
property({ type: Number })
|
110
|
+
], Typewriter.prototype, "min", void 0);
|
111
|
+
__decorate([
|
112
|
+
property({ type: Number })
|
113
|
+
], Typewriter.prototype, "delay", void 0);
|
114
|
+
__decorate([
|
115
|
+
property({ type: Number })
|
116
|
+
], Typewriter.prototype, "index", void 0);
|
117
|
+
__decorate([
|
118
|
+
state()
|
119
|
+
], Typewriter.prototype, "content", void 0);
|
120
|
+
__decorate([
|
121
|
+
query("i")
|
122
|
+
], Typewriter.prototype, "_i", void 0);
|
123
|
+
Typewriter = __decorate([
|
124
|
+
godown(protoName),
|
125
|
+
styles(css `:host{${cssScope}--cursor-width:.05em;font-family:monospace;white-space:nowrap}i{border-right:var(${cssScope}--cursor-width) solid;margin-left:.02em;animation:s 1.5s steps(1) infinite}@keyframes s{0%{border-color:currentColor}50%{border-color:transparent}}slot{display:none}.hidden{visibility:hidden}`)
|
126
|
+
], Typewriter);
|
127
|
+
var Typewriter$1 = Typewriter;
|
128
|
+
|
129
|
+
export { Typewriter$1 as default };
|
130
|
+
//# sourceMappingURL=typewriter.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"typewriter.js","sources":["../src/components/typewriter.ts"],"sourcesContent":null,"names":[],"mappings":";;;;;;;;;;AAUA,MAAM,SAAS,GAAG,YAAY,CAAC;AAC/B,MAAM,QAAQ,GAAG,WAAW,CAAC,SAAS,CAAC,CAAC;AAExC;;;;AAIG;AAGH,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,WAAW,CAAA;AAApC,IAAA,WAAA,GAAA;;AACE;;AAEG;QAEH,IAAI,CAAA,IAAA,GAAG,EAAE,CAAC;AACV;;AAEG;QAEH,IAAO,CAAA,OAAA,GAAG,KAAK,CAAC;AAChB;;AAEG;QAEH,IAAK,CAAA,KAAA,GAAG,KAAK,CAAC;AACd;;AAEG;QAEH,IAAG,CAAA,GAAA,GAAG,GAAG,CAAC;AACV;;AAEG;QAEH,IAAG,CAAA,GAAA,GAAG,EAAE,CAAC;AACT;;AAEG;QAEH,IAAK,CAAA,KAAA,GAAG,CAAC,CAAC;AACV;;AAEG;QAEH,IAAK,CAAA,KAAA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,KAAA,CAAA,CAAA,CAAA;AAKT,UAAA,CAAA;AADC,IAAA,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;AACjB,CAAA,EAAA,UAAA,CAAA,SAAA,EAAA,OAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAKV,UAAA,CAAA;AADC,IAAA,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;AACjB,CAAA,EAAA,UAAA,CAAA,SAAA,EAAA,OAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAKV,UAAA,CAAA;AADC,IAAA,KAAK,EAAE;AACK,CAAA,EAAA,UAAA,CAAA,SAAA,EAAA,SAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAIb,UAAA,CAAA;IADC,KAAK,CAAC,GAAG,CAAC;AACK,CAAA,EAAA,UAAA,CAAA,SAAA,EAAA,IAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AA5CZ,UAAU,GAAA,UAAA,CAAA;IAFf,MAAM,CAAC,SAAS,CAAC;IACjB,MAAM,CAAC,GAAG,CAAA,CAAA,MAAA,EAAS,QAAQ,CAAoF,iFAAA,EAAA,QAAQ,iMAAkM,CAAC;AACrT,CAAA,EAAA,UAAU,CA+Ff,CAAA;AAED,mBAAe,UAAU;;;;"}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import { type Gradients, presetsRGB } from "@godown/colors/presets-rgb.js";
|
2
|
+
import GodownElement from "@godown/element";
|
3
|
+
import { CSSResult } from "lit";
|
4
|
+
export declare class GlobalStyle extends GodownElement {
|
5
|
+
}
|
6
|
+
export declare function scopePrefix(scope: string, len?: number): CSSResult;
|
7
|
+
export declare function variablePrefix(variable: string): CSSResult;
|
8
|
+
export declare const cssGlobalVars: {
|
9
|
+
foreground: CSSResult;
|
10
|
+
background: CSSResult;
|
11
|
+
clipBackground: CSSResult;
|
12
|
+
active: CSSResult;
|
13
|
+
passive: CSSResult;
|
14
|
+
_colors: PresetsGradientsCSSResult;
|
15
|
+
input: CSSResult;
|
16
|
+
white: CSSResult;
|
17
|
+
black: CSSResult;
|
18
|
+
};
|
19
|
+
type PresetsGradientsCSSResult = Record<keyof typeof presetsRGB, Gradients<CSSResult>>;
|
20
|
+
export {};
|
21
|
+
//# sourceMappingURL=global-style.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"global-style.d.ts","sourceRoot":"","sources":["../src/core/global-style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAE3E,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAG5C,OAAO,EAAO,SAAS,EAAa,MAAM,KAAK,CAAC;AAIhD,qBAAa,WAAY,SAAQ,aAAa;CAC7C;AAID,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,SAAI,aAEjD;AAED,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,aAE9C;AAED,eAAO,MAAM,aAAa;;;;;;;;;;CAUzB,CAAC;AAEF,KAAK,yBAAyB,GAAG,MAAM,CAAC,MAAM,OAAO,UAAU,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC"}
|