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
@@ -1,124 +0,0 @@
|
|
1
|
-
import { __decorate } from "tslib";
|
2
|
-
import { css, html, property, query } from "../../_deps.js";
|
3
|
-
import { godown } from "../../decorators/godown.js";
|
4
|
-
import { styles } from "../../decorators/styles.js";
|
5
|
-
import { htmlSlot } from "../../lib/directives.js";
|
6
|
-
import { svgDeltaSmooth } from "../../lib/icons.js";
|
7
|
-
import GodownOpenable from "../../proto/super-openable.js";
|
8
|
-
import { createScope } from "../../styles/global.js";
|
9
|
-
const protoName = "details";
|
10
|
-
const cssScope = createScope(protoName);
|
11
|
-
/**
|
12
|
-
* {@linkcode Details} similar to details.
|
13
|
-
*/
|
14
|
-
let Details = class Details extends GodownOpenable {
|
15
|
-
constructor() {
|
16
|
-
super(...arguments);
|
17
|
-
/**
|
18
|
-
* If it is true, the summary event scope will fill the element.
|
19
|
-
*/
|
20
|
-
this.fill = false;
|
21
|
-
/**
|
22
|
-
* Summary text.
|
23
|
-
*/
|
24
|
-
this.summary = "";
|
25
|
-
}
|
26
|
-
render() {
|
27
|
-
return html `<dl part="root">
|
28
|
-
<dt part="title" @click="${this._handelClick}">
|
29
|
-
<span part="summary"> ${this.summary || htmlSlot("summary")} </span>
|
30
|
-
<i part="open">${svgDeltaSmooth()}</i>
|
31
|
-
</dt>
|
32
|
-
<dd part="details" @click=${this.fill ? () => this.toggle() : null}>
|
33
|
-
<section part="slot">${htmlSlot()}</section>
|
34
|
-
</dd>
|
35
|
-
</dl>`;
|
36
|
-
}
|
37
|
-
};
|
38
|
-
__decorate([
|
39
|
-
property({ type: Boolean })
|
40
|
-
], Details.prototype, "fill", void 0);
|
41
|
-
__decorate([
|
42
|
-
property()
|
43
|
-
], Details.prototype, "summary", void 0);
|
44
|
-
__decorate([
|
45
|
-
query("dd")
|
46
|
-
], Details.prototype, "_dd", void 0);
|
47
|
-
Details = __decorate([
|
48
|
-
godown(protoName),
|
49
|
-
styles([
|
50
|
-
css `
|
51
|
-
:host {
|
52
|
-
--${cssScope}--icon-deg-open: -90deg;
|
53
|
-
--${cssScope}--icon-deg: 0deg;
|
54
|
-
--${cssScope}--summary-direction: row;
|
55
|
-
--${cssScope}--transition: .3s;
|
56
|
-
height: -moz-fit-content;
|
57
|
-
height: fit-content;
|
58
|
-
display: block;
|
59
|
-
transition: var(--${cssScope}--transition);
|
60
|
-
}
|
61
|
-
|
62
|
-
span {
|
63
|
-
display: inline-flex;
|
64
|
-
align-items: center;
|
65
|
-
white-space: nowrap;
|
66
|
-
}
|
67
|
-
|
68
|
-
dl {
|
69
|
-
height: 100%;
|
70
|
-
position: relative;
|
71
|
-
overflow: hidden;
|
72
|
-
}
|
73
|
-
|
74
|
-
dt {
|
75
|
-
height: 100%;
|
76
|
-
display: flex;
|
77
|
-
flex-wrap: nowrap;
|
78
|
-
justify-content: space-between;
|
79
|
-
background: inherit;
|
80
|
-
align-items: center;
|
81
|
-
flex-direction: var(--${cssScope}--summary-direction);
|
82
|
-
}
|
83
|
-
|
84
|
-
dd {
|
85
|
-
display: grid;
|
86
|
-
overflow: hidden;
|
87
|
-
grid-template-rows: 0fr;
|
88
|
-
transition: var(--${cssScope}--transition);
|
89
|
-
transition-property:grid-template-rows;
|
90
|
-
}
|
91
|
-
|
92
|
-
section {
|
93
|
-
min-height: 0;
|
94
|
-
overflow: hidden;
|
95
|
-
}
|
96
|
-
|
97
|
-
i {
|
98
|
-
height: 1em;
|
99
|
-
width: 1em;
|
100
|
-
display: flex;
|
101
|
-
-webkit-backface-visibility: hidden;
|
102
|
-
backface-visibility: hidden;
|
103
|
-
transform: rotate(var(--${cssScope}--icon-deg));
|
104
|
-
transition: var(--${cssScope}--transition);
|
105
|
-
}
|
106
|
-
|
107
|
-
:host([open]) dd {
|
108
|
-
grid-template-rows: 1fr;
|
109
|
-
}
|
110
|
-
|
111
|
-
:host([float]) dd {
|
112
|
-
top: 100%;
|
113
|
-
position: absolute;
|
114
|
-
}
|
115
|
-
|
116
|
-
:host([open]) i {
|
117
|
-
transform: rotate(var(--${cssScope}--icon-deg-open));
|
118
|
-
}
|
119
|
-
`,
|
120
|
-
])
|
121
|
-
], Details);
|
122
|
-
export { Details };
|
123
|
-
export default Details;
|
124
|
-
//# sourceMappingURL=details.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"details.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/details/details.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,cAAc,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAErD,MAAM,SAAS,GAAG,SAAS,CAAC;AAE5B,MAAM,QAAQ,GAAG,WAAW,CAAC,SAAS,CAAC,CAAC;AAExC;;GAEG;AA0EI,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,cAAc;IAApC;;QACL;;WAEG;QAC0B,SAAI,GAAG,KAAK,CAAC;QAC1C;;WAEG;QACS,YAAO,GAAG,EAAE,CAAC;IAe3B,CAAC;IAXW,MAAM;QACd,OAAO,IAAI,CAAA;iCACkB,IAAI,CAAC,YAAY;gCAClB,IAAI,CAAC,OAAO,IAAI,QAAQ,CAAC,SAAS,CAAC;yBAC1C,cAAc,EAAE;;kCAEP,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,IAAI;+BACzC,QAAQ,EAAE;;UAE/B,CAAC;IACT,CAAC;CACF,CAAA;AAnB8B;IAA5B,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;qCAAc;AAI9B;IAAX,QAAQ,EAAE;wCAAc;AAEZ;IAAZ,KAAK,CAAC,IAAI,CAAC;oCAA0B;AAV3B,OAAO;IAzEnB,MAAM,CAAC,SAAS,CAAC;IACjB,MAAM,CAAC;QACN,GAAG,CAAA;;UAEK,QAAQ;UACR,QAAQ;UACR,QAAQ;UACR,QAAQ;;;;0BAIQ,QAAQ;;;;;;;;;;;;;;;;;;;;;;8BAsBJ,QAAQ;;;;;;;0BAOZ,QAAQ;;;;;;;;;;;;;;;gCAeF,QAAQ;0BACd,QAAQ;;;;;;;;;;;;;gCAaF,QAAQ;;GAErC;KACF,CAAC;GACW,OAAO,CAuBnB;;AAED,eAAe,OAAO,CAAC","sourcesContent":["import { css, html, property, query } from \"../../_deps.js\";\nimport { godown } from \"../../decorators/godown.js\";\nimport { styles } from \"../../decorators/styles.js\";\nimport { htmlSlot } from \"../../lib/directives.js\";\nimport { svgDeltaSmooth } from \"../../lib/icons.js\";\nimport GodownOpenable from \"../../proto/super-openable.js\";\nimport { createScope } from \"../../styles/global.js\";\n\nconst protoName = \"details\";\n\nconst cssScope = createScope(protoName);\n\n/**\n * {@linkcode Details} similar to details.\n */\n@godown(protoName)\n@styles([\n css`\n :host {\n --${cssScope}--icon-deg-open: -90deg;\n --${cssScope}--icon-deg: 0deg;\n --${cssScope}--summary-direction: row;\n --${cssScope}--transition: .3s;\n height: -moz-fit-content;\n height: fit-content;\n display: block;\n transition: var(--${cssScope}--transition);\n }\n\n span {\n display: inline-flex;\n align-items: center;\n white-space: nowrap;\n }\n\n dl {\n height: 100%;\n position: relative;\n overflow: hidden;\n }\n\n dt {\n height: 100%;\n display: flex;\n flex-wrap: nowrap;\n justify-content: space-between;\n background: inherit;\n align-items: center;\n flex-direction: var(--${cssScope}--summary-direction);\n }\n\n dd {\n display: grid;\n overflow: hidden;\n grid-template-rows: 0fr;\n transition: var(--${cssScope}--transition);\n transition-property:grid-template-rows;\n }\n\n section {\n min-height: 0;\n overflow: hidden;\n }\n\n i {\n height: 1em;\n width: 1em;\n display: flex;\n -webkit-backface-visibility: hidden;\n backface-visibility: hidden;\n transform: rotate(var(--${cssScope}--icon-deg));\n transition: var(--${cssScope}--transition);\n }\n\n :host([open]) dd {\n grid-template-rows: 1fr;\n }\n\n :host([float]) dd {\n top: 100%;\n position: absolute;\n }\n\n :host([open]) i {\n transform: rotate(var(--${cssScope}--icon-deg-open));\n }\n `,\n])\nexport class Details extends GodownOpenable {\n /**\n * If it is true, the summary event scope will fill the element.\n */\n @property({ type: Boolean }) fill = false;\n /**\n * Summary text.\n */\n @property() summary = \"\";\n\n @query(\"dd\") _dd: HTMLDataListElement;\n\n protected render() {\n return html`<dl part=\"root\">\n <dt part=\"title\" @click=\"${this._handelClick}\">\n <span part=\"summary\"> ${this.summary || htmlSlot(\"summary\")} </span>\n <i part=\"open\">${svgDeltaSmooth()}</i>\n </dt>\n <dd part=\"details\" @click=${this.fill ? () => this.toggle() : null}>\n <section part=\"slot\">${htmlSlot()}</section>\n </dd>\n </dl>`;\n }\n}\n\nexport default Details;\n"]}
|
@@ -1,31 +0,0 @@
|
|
1
|
-
import GodownSuperOpenable, { type Direction9 } from "../../proto/super-openable.js";
|
2
|
-
/**
|
3
|
-
* {@linkcode Dialog} similar to dialog.
|
4
|
-
*/
|
5
|
-
export declare class Dialog extends GodownSuperOpenable {
|
6
|
-
direction: Direction9;
|
7
|
-
/**
|
8
|
-
* Enable modal.
|
9
|
-
*/
|
10
|
-
modal: boolean;
|
11
|
-
/**
|
12
|
-
* @deprecated
|
13
|
-
*/
|
14
|
-
scale: boolean;
|
15
|
-
/**
|
16
|
-
* @deprecated
|
17
|
-
*/
|
18
|
-
gap: number;
|
19
|
-
/**
|
20
|
-
* Exit key, which can be multiple.
|
21
|
-
*/
|
22
|
-
key: string;
|
23
|
-
protected render(): import("lit").TemplateResult<1>;
|
24
|
-
connectedCallback(): void;
|
25
|
-
showModal(): void;
|
26
|
-
protected _handelWheel(e: WheelEvent): void;
|
27
|
-
protected _handleKeydown(e: KeyboardEvent): void;
|
28
|
-
protected _handelSubmit(e: SubmitEvent): void;
|
29
|
-
}
|
30
|
-
export default Dialog;
|
31
|
-
//# sourceMappingURL=dialog.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"dialog.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/dialog/dialog.ts"],"names":[],"mappings":"AAIA,OAAO,mBAAmB,EAAE,EAAE,KAAK,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAMrF;;GAEG;AACH,qBA4Ea,MAAO,SAAQ,mBAAmB;IAC7C,SAAS,EAAE,UAAU,CAAY;IACjC;;OAEG;IACyC,KAAK,UAAS;IAC1D;;OAEG;IACH,KAAK,EAAE,OAAO,CAAC;IACf;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACyB,GAAG,SAAY;IAE3C,SAAS,CAAC,MAAM;IAIhB,iBAAiB;IAQjB,SAAS;IAKT,SAAS,CAAC,YAAY,CAAC,CAAC,EAAE,UAAU;IAMpC,SAAS,CAAC,cAAc,CAAC,CAAC,EAAE,aAAa;IAOzC,SAAS,CAAC,aAAa,CAAC,CAAC,EAAE,WAAW;CAKvC;AAED,eAAe,MAAM,CAAC"}
|
@@ -1,143 +0,0 @@
|
|
1
|
-
import { __decorate } from "tslib";
|
2
|
-
import { css, html, property } from "../../_deps.js";
|
3
|
-
import { godown } from "../../decorators/godown.js";
|
4
|
-
import { styles } from "../../decorators/styles.js";
|
5
|
-
import { htmlSlot } from "../../lib/directives.js";
|
6
|
-
import GodownSuperOpenable from "../../proto/super-openable.js";
|
7
|
-
import { createScope, cssGlobalVars } from "../../styles/global.js";
|
8
|
-
const protoName = "dialog";
|
9
|
-
const cssScope = createScope(protoName);
|
10
|
-
/**
|
11
|
-
* {@linkcode Dialog} similar to dialog.
|
12
|
-
*/
|
13
|
-
let Dialog = class Dialog extends GodownSuperOpenable {
|
14
|
-
constructor() {
|
15
|
-
super(...arguments);
|
16
|
-
this.direction = "center";
|
17
|
-
/**
|
18
|
-
* Enable modal.
|
19
|
-
*/
|
20
|
-
this.modal = false;
|
21
|
-
/**
|
22
|
-
* Exit key, which can be multiple.
|
23
|
-
*/
|
24
|
-
this.key = "Escape";
|
25
|
-
}
|
26
|
-
render() {
|
27
|
-
return html `<div part="root" class="${this.direction}">${htmlSlot()}</div>`;
|
28
|
-
}
|
29
|
-
connectedCallback() {
|
30
|
-
super.connectedCallback();
|
31
|
-
this.addEvent(this, "submit", this._handelSubmit);
|
32
|
-
if (this.key) {
|
33
|
-
this.addEvent(document, "keydown", this._handleKeydown.bind(this));
|
34
|
-
}
|
35
|
-
}
|
36
|
-
showModal() {
|
37
|
-
this.modal = true;
|
38
|
-
this.show();
|
39
|
-
}
|
40
|
-
_handelWheel(e) {
|
41
|
-
if (this.modal) {
|
42
|
-
e.preventDefault();
|
43
|
-
}
|
44
|
-
}
|
45
|
-
_handleKeydown(e) {
|
46
|
-
const keys = this.key.split(/[\s;]/);
|
47
|
-
if (keys.includes(e.key) || keys.includes(e.code)) {
|
48
|
-
this.close();
|
49
|
-
}
|
50
|
-
}
|
51
|
-
_handelSubmit(e) {
|
52
|
-
if (e.target.method === "dialog") {
|
53
|
-
this.close();
|
54
|
-
}
|
55
|
-
}
|
56
|
-
};
|
57
|
-
__decorate([
|
58
|
-
property({ type: Boolean, reflect: true })
|
59
|
-
], Dialog.prototype, "modal", void 0);
|
60
|
-
__decorate([
|
61
|
-
property({ type: String })
|
62
|
-
], Dialog.prototype, "key", void 0);
|
63
|
-
Dialog = __decorate([
|
64
|
-
godown(protoName),
|
65
|
-
styles([
|
66
|
-
css `
|
67
|
-
:host {
|
68
|
-
--${cssScope}--background: none;
|
69
|
-
--${cssScope}--background-modal: rgb(var(--${cssGlobalVars.backgroundRGB}) / 15%);
|
70
|
-
background: var(--${cssScope}--background);
|
71
|
-
height: 100%;
|
72
|
-
width: 100%;
|
73
|
-
position: fixed;
|
74
|
-
inset:0;
|
75
|
-
display: flex;
|
76
|
-
visibility: hidden;
|
77
|
-
transition: all 0.3s;
|
78
|
-
pointer-events: none;
|
79
|
-
}
|
80
|
-
|
81
|
-
:host([open]) {
|
82
|
-
visibility: visible;
|
83
|
-
}
|
84
|
-
|
85
|
-
:host([open][modal]) {
|
86
|
-
pointer-events: all;
|
87
|
-
background: var(--${cssScope}--background-modal);
|
88
|
-
}
|
89
|
-
|
90
|
-
:host([open]) div {
|
91
|
-
opacity: 1;
|
92
|
-
}
|
93
|
-
|
94
|
-
div {
|
95
|
-
height: 100%;
|
96
|
-
width: 100%;
|
97
|
-
display: flex;
|
98
|
-
opacity: 0;
|
99
|
-
position: relative;
|
100
|
-
}
|
101
|
-
|
102
|
-
slot {
|
103
|
-
display: block;
|
104
|
-
width: -moz-fit-content;
|
105
|
-
width: fit-content;
|
106
|
-
height: -moz-fit-content;
|
107
|
-
height: fit-content;
|
108
|
-
margin: auto;
|
109
|
-
transition: inherit;
|
110
|
-
pointer-events: all;
|
111
|
-
position: absolute;
|
112
|
-
}
|
113
|
-
|
114
|
-
[class^="top"] slot {
|
115
|
-
top: 0;
|
116
|
-
}
|
117
|
-
|
118
|
-
[class^="bottom"] slot {
|
119
|
-
bottom: 0;
|
120
|
-
}
|
121
|
-
|
122
|
-
[class$="right"] slot {
|
123
|
-
right: 0%;
|
124
|
-
}
|
125
|
-
|
126
|
-
[class$="left"] slot {
|
127
|
-
left: 0%;
|
128
|
-
}
|
129
|
-
|
130
|
-
div[class$="center"],
|
131
|
-
.top,
|
132
|
-
.left,
|
133
|
-
.right,
|
134
|
-
.bottom {
|
135
|
-
align-items: center;
|
136
|
-
justify-content: center;
|
137
|
-
}
|
138
|
-
`,
|
139
|
-
])
|
140
|
-
], Dialog);
|
141
|
-
export { Dialog };
|
142
|
-
export default Dialog;
|
143
|
-
//# sourceMappingURL=dialog.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"dialog.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/dialog/dialog.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,mBAAwC,MAAM,+BAA+B,CAAC;AACrF,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEpE,MAAM,SAAS,GAAG,QAAQ,CAAC;AAC3B,MAAM,QAAQ,GAAG,WAAW,CAAC,SAAS,CAAC,CAAC;AAExC;;GAEG;AA6EI,IAAM,MAAM,GAAZ,MAAM,MAAO,SAAQ,mBAAmB;IAAxC;;QACL,cAAS,GAAe,QAAQ,CAAC;QACjC;;WAEG;QACyC,UAAK,GAAG,KAAK,CAAC;QAS1D;;WAEG;QACyB,QAAG,GAAG,QAAQ,CAAC;IAqC7C,CAAC;IAnCW,MAAM;QACd,OAAO,IAAI,CAAA,2BAA2B,IAAI,CAAC,SAAS,KAAK,QAAQ,EAAE,QAAQ,CAAC;IAC9E,CAAC;IAED,iBAAiB;QACf,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAC1B,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC;QAClD,IAAI,IAAI,CAAC,GAAG,EAAE,CAAC;YACb,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,SAAS,EAAE,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;QACrE,CAAC;IACH,CAAC;IAED,SAAS;QACP,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QAClB,IAAI,CAAC,IAAI,EAAE,CAAC;IACd,CAAC;IAES,YAAY,CAAC,CAAa;QAClC,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;YACf,CAAC,CAAC,cAAc,EAAE,CAAC;QACrB,CAAC;IACH,CAAC;IAES,cAAc,CAAC,CAAgB;QACvC,MAAM,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACrC,IAAI,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC;YAClD,IAAI,CAAC,KAAK,EAAE,CAAC;QACf,CAAC;IACH,CAAC;IAES,aAAa,CAAC,CAAc;QACpC,IAAK,CAAC,CAAC,MAA0B,CAAC,MAAM,KAAK,QAAQ,EAAE,CAAC;YACtD,IAAI,CAAC,KAAK,EAAE,CAAC;QACf,CAAC;IACH,CAAC;CACF,CAAA;AAjD6C;IAA3C,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;qCAAe;AAY9B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;mCAAgB;AAjBhC,MAAM;IA5ElB,MAAM,CAAC,SAAS,CAAC;IACjB,MAAM,CAAC;QACN,GAAG,CAAA;;UAEK,QAAQ;UACR,QAAQ,iCAAiC,aAAa,CAAC,aAAa;0BACpD,QAAQ;;;;;;;;;;;;;;;;;0BAiBR,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmD/B;KACF,CAAC;GACW,MAAM,CAsDlB;;AAED,eAAe,MAAM,CAAC","sourcesContent":["import { css, html, property } from \"../../_deps.js\";\nimport { godown } from \"../../decorators/godown.js\";\nimport { styles } from \"../../decorators/styles.js\";\nimport { htmlSlot } from \"../../lib/directives.js\";\nimport GodownSuperOpenable, { type Direction9 } from \"../../proto/super-openable.js\";\nimport { createScope, cssGlobalVars } from \"../../styles/global.js\";\n\nconst protoName = \"dialog\";\nconst cssScope = createScope(protoName);\n\n/**\n * {@linkcode Dialog} similar to dialog.\n */\n@godown(protoName)\n@styles([\n css`\n :host {\n --${cssScope}--background: none;\n --${cssScope}--background-modal: rgb(var(--${cssGlobalVars.backgroundRGB}) / 15%);\n background: var(--${cssScope}--background);\n height: 100%;\n width: 100%;\n position: fixed;\n inset:0;\n display: flex;\n visibility: hidden;\n transition: all 0.3s;\n pointer-events: none;\n }\n\n :host([open]) {\n visibility: visible;\n }\n\n :host([open][modal]) {\n pointer-events: all;\n background: var(--${cssScope}--background-modal);\n }\n\n :host([open]) div {\n opacity: 1;\n }\n\n div {\n height: 100%;\n width: 100%;\n display: flex;\n opacity: 0;\n position: relative;\n }\n\n slot {\n display: block;\n width: -moz-fit-content;\n width: fit-content;\n height: -moz-fit-content;\n height: fit-content;\n margin: auto;\n transition: inherit;\n pointer-events: all;\n position: absolute;\n }\n\n [class^=\"top\"] slot {\n top: 0;\n }\n\n [class^=\"bottom\"] slot {\n bottom: 0;\n }\n\n [class$=\"right\"] slot {\n right: 0%;\n }\n\n [class$=\"left\"] slot {\n left: 0%;\n }\n\n div[class$=\"center\"],\n .top,\n .left,\n .right,\n .bottom {\n align-items: center;\n justify-content: center;\n }\n `,\n])\nexport class Dialog extends GodownSuperOpenable {\n direction: Direction9 = \"center\";\n /**\n * Enable modal.\n */\n @property({ type: Boolean, reflect: true }) modal = false;\n /**\n * @deprecated\n */\n scale: boolean;\n /**\n * @deprecated\n */\n gap: number;\n /**\n * Exit key, which can be multiple.\n */\n @property({ type: String }) key = \"Escape\";\n\n protected render() {\n return html`<div part=\"root\" class=\"${this.direction}\">${htmlSlot()}</div>`;\n }\n\n connectedCallback() {\n super.connectedCallback();\n this.addEvent(this, \"submit\", this._handelSubmit);\n if (this.key) {\n this.addEvent(document, \"keydown\", this._handleKeydown.bind(this));\n }\n }\n\n showModal() {\n this.modal = true;\n this.show();\n }\n\n protected _handelWheel(e: WheelEvent) {\n if (this.modal) {\n e.preventDefault();\n }\n }\n\n protected _handleKeydown(e: KeyboardEvent) {\n const keys = this.key.split(/[\\s;]/);\n if (keys.includes(e.key) || keys.includes(e.code)) {\n this.close();\n }\n }\n\n protected _handelSubmit(e: SubmitEvent) {\n if ((e.target as HTMLFormElement).method === \"dialog\") {\n this.close();\n }\n }\n}\n\nexport default Dialog;\n"]}
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import { GodownElement } from "../../proto/godown-element.js";
|
2
|
-
/**
|
3
|
-
* {@linkcode Divider} similar to hr.
|
4
|
-
*/
|
5
|
-
export declare class Divider extends GodownElement {
|
6
|
-
/**
|
7
|
-
* Enable vertical.
|
8
|
-
*/
|
9
|
-
vertical: boolean;
|
10
|
-
protected render(): import("lit").TemplateResult<1>;
|
11
|
-
}
|
12
|
-
export default Divider;
|
13
|
-
//# sourceMappingURL=divider.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"divider.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/divider/divider.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAM9D;;GAEG;AACH,qBAyDa,OAAQ,SAAQ,aAAa;IACxC;;OAEG;IACyC,QAAQ,UAAS;IAE7D,SAAS,CAAC,MAAM;CAYjB;AAED,eAAe,OAAO,CAAC"}
|
@@ -1,95 +0,0 @@
|
|
1
|
-
import { __decorate } from "tslib";
|
2
|
-
import { css, html, property } from "../../_deps.js";
|
3
|
-
import { godown } from "../../decorators/godown.js";
|
4
|
-
import { styles } from "../../decorators/styles.js";
|
5
|
-
import { ifValue } from "../../lib/directives.js";
|
6
|
-
import { htmlSlot } from "../../lib/directives.js";
|
7
|
-
import { GodownElement } from "../../proto/godown-element.js";
|
8
|
-
import { createScope } from "../../styles/global.js";
|
9
|
-
const protoName = "divider";
|
10
|
-
const cssScope = createScope(protoName);
|
11
|
-
/**
|
12
|
-
* {@linkcode Divider} similar to hr.
|
13
|
-
*/
|
14
|
-
let Divider = class Divider extends GodownElement {
|
15
|
-
constructor() {
|
16
|
-
super(...arguments);
|
17
|
-
/**
|
18
|
-
* Enable vertical.
|
19
|
-
*/
|
20
|
-
this.vertical = false;
|
21
|
-
}
|
22
|
-
render() {
|
23
|
-
const hasElement = this.childElementCount || this.textContent;
|
24
|
-
return html `<div part="root" class="${this.vertical ? "vertical" : "horizontal"}">
|
25
|
-
${ifValue(hasElement, html `<hr part="before" class="before" />
|
26
|
-
${htmlSlot()}
|
27
|
-
<hr part="after" class="after" />`, html `<hr part="cross" />`)}
|
28
|
-
</div>`;
|
29
|
-
}
|
30
|
-
};
|
31
|
-
__decorate([
|
32
|
-
property({ type: Boolean, reflect: true })
|
33
|
-
], Divider.prototype, "vertical", void 0);
|
34
|
-
Divider = __decorate([
|
35
|
-
godown(protoName),
|
36
|
-
styles(css `
|
37
|
-
:host {
|
38
|
-
--${cssScope}--before-length: auto;
|
39
|
-
--${cssScope}--after-length: auto;
|
40
|
-
--${cssScope}--breadth: .05em;
|
41
|
-
display: block;
|
42
|
-
background: none;
|
43
|
-
margin: auto;
|
44
|
-
}
|
45
|
-
:host([vertical]) {
|
46
|
-
width: -moz-fit-content;
|
47
|
-
width: fit-content;
|
48
|
-
height: 100%;
|
49
|
-
}
|
50
|
-
div {
|
51
|
-
display: flex;
|
52
|
-
align-items: center;
|
53
|
-
border-radius: inherit;
|
54
|
-
width: 100%;
|
55
|
-
}
|
56
|
-
|
57
|
-
hr {
|
58
|
-
border-radius: inherit;
|
59
|
-
margin: 0;
|
60
|
-
border: 0;
|
61
|
-
flex: 1;
|
62
|
-
background: currentColor;
|
63
|
-
}
|
64
|
-
.horizontal {
|
65
|
-
display: flex;
|
66
|
-
}
|
67
|
-
|
68
|
-
.vertical {
|
69
|
-
display: flex;
|
70
|
-
height: 100%;
|
71
|
-
flex-direction: column;
|
72
|
-
}
|
73
|
-
.horizontal hr {
|
74
|
-
height: var(--${cssScope}--breadth);
|
75
|
-
}
|
76
|
-
.horizontal .before {
|
77
|
-
max-width: var(--${cssScope}--before-length);
|
78
|
-
}
|
79
|
-
.horizontal .after {
|
80
|
-
max-width: var(--${cssScope}--after-length);
|
81
|
-
}
|
82
|
-
.vertical hr {
|
83
|
-
width: var(--${cssScope}--breadth);
|
84
|
-
}
|
85
|
-
.vertical .before {
|
86
|
-
max-height: var(--${cssScope}--before-length);
|
87
|
-
}
|
88
|
-
.vertical .after {
|
89
|
-
max-height: var(--${cssScope}--after-length);
|
90
|
-
}
|
91
|
-
`)
|
92
|
-
], Divider);
|
93
|
-
export { Divider };
|
94
|
-
export default Divider;
|
95
|
-
//# sourceMappingURL=divider.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"divider.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/divider/divider.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAErD,MAAM,SAAS,GAAG,SAAS,CAAC;AAC5B,MAAM,QAAQ,GAAG,WAAW,CAAC,SAAS,CAAC,CAAC;AAExC;;GAEG;AA0DI,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,aAAa;IAAnC;;QACL;;WAEG;QACyC,aAAQ,GAAG,KAAK,CAAC;IAc/D,CAAC;IAZW,MAAM;QACd,MAAM,UAAU,GAAG,IAAI,CAAC,iBAAiB,IAAI,IAAI,CAAC,WAAW,CAAC;QAC9D,OAAO,IAAI,CAAA,2BAA2B,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,YAAY;QAC3E,OAAO,CACP,UAAU,EACV,IAAI,CAAA;YACA,QAAQ,EAAE;4CACsB,EACpC,IAAI,CAAA,qBAAqB,CAC1B;WACI,CAAC;IACV,CAAC;CACF,CAAA;AAd6C;IAA3C,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;yCAAkB;AAJlD,OAAO;IAzDnB,MAAM,CAAC,SAAS,CAAC;IACjB,MAAM,CAAC,GAAG,CAAA;;QAEH,QAAQ;QACR,QAAQ;QACR,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAkCI,QAAQ;;;uBAGL,QAAQ;;;uBAGR,QAAQ;;;mBAGZ,QAAQ;;;wBAGH,QAAQ;;;wBAGR,QAAQ;;CAE/B,CAAC;GACW,OAAO,CAkBnB;;AAED,eAAe,OAAO,CAAC","sourcesContent":["import { css, html, property } from \"../../_deps.js\";\nimport { godown } from \"../../decorators/godown.js\";\nimport { styles } from \"../../decorators/styles.js\";\nimport { ifValue } from \"../../lib/directives.js\";\nimport { htmlSlot } from \"../../lib/directives.js\";\nimport { GodownElement } from \"../../proto/godown-element.js\";\nimport { createScope } from \"../../styles/global.js\";\n\nconst protoName = \"divider\";\nconst cssScope = createScope(protoName);\n\n/**\n * {@linkcode Divider} similar to hr.\n */\n@godown(protoName)\n@styles(css`\n :host {\n --${cssScope}--before-length: auto;\n --${cssScope}--after-length: auto;\n --${cssScope}--breadth: .05em;\n display: block;\n background: none;\n margin: auto;\n }\n :host([vertical]) {\n width: -moz-fit-content;\n width: fit-content;\n height: 100%;\n }\n div {\n display: flex;\n align-items: center;\n border-radius: inherit;\n width: 100%;\n }\n\n hr {\n border-radius: inherit;\n margin: 0;\n border: 0;\n flex: 1;\n background: currentColor;\n }\n .horizontal {\n display: flex;\n }\n\n .vertical {\n display: flex;\n height: 100%;\n flex-direction: column;\n }\n .horizontal hr {\n height: var(--${cssScope}--breadth);\n }\n .horizontal .before {\n max-width: var(--${cssScope}--before-length);\n }\n .horizontal .after {\n max-width: var(--${cssScope}--after-length);\n }\n .vertical hr {\n width: var(--${cssScope}--breadth);\n }\n .vertical .before {\n max-height: var(--${cssScope}--before-length);\n }\n .vertical .after {\n max-height: var(--${cssScope}--after-length);\n }\n`)\nexport class Divider extends GodownElement {\n /**\n * Enable vertical.\n */\n @property({ type: Boolean, reflect: true }) vertical = false;\n\n protected render() {\n const hasElement = this.childElementCount || this.textContent;\n return html`<div part=\"root\" class=\"${this.vertical ? \"vertical\" : \"horizontal\"}\">\n ${ifValue(\n hasElement,\n html`<hr part=\"before\" class=\"before\" />\n ${htmlSlot()}\n <hr part=\"after\" class=\"after\" />`,\n html`<hr part=\"cross\" />`,\n )}\n </div>`;\n }\n}\n\nexport default Divider;\n"]}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"form.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/form/form.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAG9D;;;;;GAKG;AACH,qBAQa,IAAI,CAAC,CAAC,GAAG,MAAM,CAAE,SAAQ,aAAa;IACrC,IAAI,SAAM;IACtB,IAAI,KAAK,IAAI,CAAC,CAEb;IAED,SAAS,QAiBI,CAAC,MAAM,EAAE,CAAC,CAAC,CAjBG;IAE3B,SAAS,CAAC,MAAM;IAIhB,KAAK;IAWL,SAAS,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;IAIxB,MAAM,CAAC,UAAU,CACf,QAAQ,EAAE,CAAC,OAAO,GAAG;QACnB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACrC,CAAC,EAAE,GACH,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;CAoBvB;AAED,eAAe,IAAI,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"form.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/form/form.ts"],"names":[],"mappings":";;AAAA,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAE9D,MAAM,SAAS,GAAG,MAAM,CAAC;AACzB;;;;;GAKG;AASI,IAAM,IAAI,YAAV,MAAM,IAAiB,SAAQ,aAAa;IAA5C;;QACO,SAAI,GAAG,EAAE,CAAC;QAKtB,cAAS,GAAG,IAAI,CAAC,SAAS,CAAC;IA+C7B,CAAC;IAnDC,IAAI,KAAK;QACP,OAAO,MAAI,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,gBAAgB,EAAE,CAAM,CAAC;IAC7D,CAAC;IAIS,MAAM;QACd,OAAO,QAAQ,EAAE,CAAC;IACpB,CAAC;IAED,KAAK;QACH,IAAI,CAAC,oBAAoB,CAAuC,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,EAAE,EAAE,EAAE;YAClF,IAAI,EAAE,CAAC,OAAO,KAAK,IAAI,CAAC,OAAO,EAAE,CAAC;gBAChC,OAAO;YACT,CAAC;YACD,IAAI,EAAE,CAAC,KAAK,EAAE,CAAC;gBACb,EAAE,CAAC,KAAK,EAAE,CAAC;YACb,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;IAED,SAAS;QACP,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;IACjC,CAAC;IAED,MAAM,CAAC,UAAU,CACf,QAII;QAEJ,MAAM,MAAM,GAAG,EAAE,CAAC;QAClB,KAAK,MAAM,EAAE,IAAI,QAAQ,EAAE,CAAC;YAC1B,IAAI,EAAE,CAAC,OAAO,KAAK,MAAM,EAAE,CAAC;gBAC1B,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,WAAW,CAAC,IAAI,QAAQ,CAAC,EAAqB,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;YAC3F,CAAC;iBAAM,IAAI,EAAE,CAAC,SAAS,EAAE,CAAC;gBACxB,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,GAAG,EAAE,CAAC,SAAS,EAAE,CAAC;gBACrC,IAAI,IAAI,EAAE,CAAC;oBACT,MAAM,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC;gBACvB,CAAC;YACH,CAAC;iBAAM,IAAI,EAAE,CAAC,IAAI,IAAI,EAAE,CAAC,KAAK,KAAK,SAAS,EAAE,CAAC;gBAC7C,MAAM,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC;YAC7B,CAAC;iBAAM,IAAI,EAAE,CAAC,UAAU,EAAE,CAAC;gBACzB,KAAK,MAAM,IAAI,IAAI,EAAE,CAAC,UAAU,CAAC,gBAAgB,CAAC,MAAM,CAAC,EAAE,CAAC;oBAC1D,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,gBAAgB,EAAE,CAAC,CAAC,CAAC;gBAClE,CAAC;YACH,CAAC;QACH,CAAC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;CACF,CAAA;AApDa;IAAX,QAAQ,EAAE;kCAAW;AADX,IAAI;IARhB,MAAM,CAAC,SAAS,CAAC;IACjB,MAAM,CAAC;QACN,GAAG,CAAA;;;;GAIF;KACF,CAAC;GACW,IAAI,CAqDhB;;AAED,eAAe,IAAI,CAAC","sourcesContent":["import { css, property } from \"../../_deps.js\";\nimport { godown } from \"../../decorators/godown.js\";\nimport { styles } from \"../../decorators/styles.js\";\nimport { htmlSlot } from \"../../lib/directives.js\";\nimport { GodownElement } from \"../../proto/godown-element.js\";\n\nconst protoName = \"form\";\n/**\n * {@linkcode Form} Gets child element key-value object,\n * which will be nested if the child element is the same as this element.\n *\n * @slot - Child elements.\n */\n@godown(protoName)\n@styles([\n css`\n :host {\n display: block;\n }\n `,\n])\nexport class Form<T = object> extends GodownElement {\n @property() name = \"\";\n get value(): T {\n return Form.buildValue(this._slot.assignedElements()) as T;\n }\n\n nameValue = this.namevalue;\n\n protected render() {\n return htmlSlot();\n }\n\n reset() {\n this.deepQuerySelectorAll<HTMLElement & { reset?: () => void }>(\"*\").forEach((el) => {\n if (el.tagName === this.tagName) {\n return;\n }\n if (el.reset) {\n el.reset();\n }\n });\n }\n\n namevalue(): [string, T] {\n return [this.name, this.value];\n }\n\n static buildValue(\n elements: (Element & {\n name?: string;\n value?: unknown;\n namevalue?: () => [string, unknown];\n })[],\n ): Record<string, any> {\n const result = {};\n for (const el of elements) {\n if (el.tagName === \"FORM\") {\n Object.assign(result, Object.fromEntries(new FormData(el as HTMLFormElement).entries()));\n } else if (el.namevalue) {\n const [name, value] = el.namevalue();\n if (name) {\n result[name] = value;\n }\n } else if (el.name && el.value !== undefined) {\n result[el.name] = el.value;\n } else if (el.shadowRoot) {\n for (const slot of el.shadowRoot.querySelectorAll(\"slot\")) {\n Object.assign(result, this.buildValue(slot.assignedElements()));\n }\n }\n }\n return result;\n }\n}\n\nexport default Form;\n"]}
|
@@ -1,37 +0,0 @@
|
|
1
|
-
import GodownInput from "../../proto/super-input.js";
|
2
|
-
/**
|
3
|
-
* {@linkcode Input }.
|
4
|
-
*/
|
5
|
-
export declare class Input extends GodownInput {
|
6
|
-
variant: "default" | "outline";
|
7
|
-
/**
|
8
|
-
* Input accept.
|
9
|
-
*/
|
10
|
-
accept: string;
|
11
|
-
/**
|
12
|
-
* Value.
|
13
|
-
*/
|
14
|
-
value: string | File | FileList;
|
15
|
-
/**
|
16
|
-
* Only single files are allowed to be selected.
|
17
|
-
*/
|
18
|
-
only: boolean;
|
19
|
-
/**
|
20
|
-
* Input min.
|
21
|
-
*/
|
22
|
-
min: number;
|
23
|
-
/**
|
24
|
-
* Input max.
|
25
|
-
*/
|
26
|
-
max: number;
|
27
|
-
/**
|
28
|
-
* Input step.
|
29
|
-
*/
|
30
|
-
step: number;
|
31
|
-
protected render(): import("lit").TemplateResult<1>;
|
32
|
-
connectedCallback(): void;
|
33
|
-
protected _handleFile(e: any | Event): void;
|
34
|
-
reset(): void;
|
35
|
-
}
|
36
|
-
export default Input;
|
37
|
-
//# sourceMappingURL=input.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"input.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/input/input.ts"],"names":[],"mappings":"AAIA,OAAO,WAAW,MAAM,4BAA4B,CAAC;AAMrD;;GAEG;AACH,qBAyCa,KAAM,SAAQ,WAAW;IACxB,OAAO,EAAE,SAAS,GAAG,SAAS,CAAa;IACvD;;OAEG;IACS,MAAM,EAAE,MAAM,CAAa;IACvC;;OAEG;IACS,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,QAAQ,CAAa;IACxD;;OAEG;IAC0B,IAAI,UAAS;IAC1C;;OAEG;IACyB,GAAG,SAAK;IACpC;;OAEG;IACyB,GAAG,SAAO;IACtC;;OAEG;IACyB,IAAI,SAAK;IAErC,SAAS,CAAC,MAAM;IAkBhB,iBAAiB;IAajB,SAAS,CAAC,WAAW,CAAC,CAAC,EAAE,GAAG,GAAG,KAAK;IAKpC,KAAK;CAQN;AAED,eAAe,KAAK,CAAC"}
|
@@ -1,152 +0,0 @@
|
|
1
|
-
import { __decorate } from "tslib";
|
2
|
-
import { css, html, property } from "../../_deps.js";
|
3
|
-
import { godown } from "../../decorators/godown.js";
|
4
|
-
import { styles } from "../../decorators/styles.js";
|
5
|
-
import { combine } from "../../lib/directives.js";
|
6
|
-
import GodownInput from "../../proto/super-input.js";
|
7
|
-
import { cssGlobalVars } from "../../styles/global.js";
|
8
|
-
import { fieldStyle, inputStyle } from "../../styles/inputStyle.js";
|
9
|
-
const protoName = "input";
|
10
|
-
/**
|
11
|
-
* {@linkcode Input }.
|
12
|
-
*/
|
13
|
-
let Input = class Input extends GodownInput {
|
14
|
-
constructor() {
|
15
|
-
super(...arguments);
|
16
|
-
this.variant = "default";
|
17
|
-
/**
|
18
|
-
* Input accept.
|
19
|
-
*/
|
20
|
-
this.accept = undefined;
|
21
|
-
/**
|
22
|
-
* Value.
|
23
|
-
*/
|
24
|
-
this.value = undefined;
|
25
|
-
/**
|
26
|
-
* Only single files are allowed to be selected.
|
27
|
-
*/
|
28
|
-
this.only = false;
|
29
|
-
/**
|
30
|
-
* Input min.
|
31
|
-
*/
|
32
|
-
this.min = 0;
|
33
|
-
/**
|
34
|
-
* Input max.
|
35
|
-
*/
|
36
|
-
this.max = 100;
|
37
|
-
/**
|
38
|
-
* Input step.
|
39
|
-
*/
|
40
|
-
this.step = 1;
|
41
|
-
}
|
42
|
-
render() {
|
43
|
-
return html `<div part="root" class="${combine({ "input-field": true, outline: this.variant === "outline" })}">
|
44
|
-
<input
|
45
|
-
part="input"
|
46
|
-
class="input"
|
47
|
-
id=${this.makeId}
|
48
|
-
.value="${this.value}"
|
49
|
-
?autofocus="${this.autofocus}"
|
50
|
-
type="${this.type}"
|
51
|
-
placeholder="${this.placeholder}"
|
52
|
-
min="${this.min}"
|
53
|
-
max="${this.max}"
|
54
|
-
@input="${this._handleInput}"
|
55
|
-
/>
|
56
|
-
${this._renderSuffix()}
|
57
|
-
</div>`;
|
58
|
-
}
|
59
|
-
connectedCallback() {
|
60
|
-
super.connectedCallback();
|
61
|
-
if (this.type === "file") {
|
62
|
-
this.value = null;
|
63
|
-
}
|
64
|
-
else {
|
65
|
-
if (!this.default) {
|
66
|
-
this.default = this.value || "";
|
67
|
-
}
|
68
|
-
if (!this.value) {
|
69
|
-
this.value = this.default;
|
70
|
-
}
|
71
|
-
}
|
72
|
-
}
|
73
|
-
_handleFile(e) {
|
74
|
-
this.value = !this.only ? e.target.files : e.target.files[0];
|
75
|
-
this.dispatchEvent(new CustomEvent("change", { detail: this.value }));
|
76
|
-
}
|
77
|
-
reset() {
|
78
|
-
if (this.type === "file") {
|
79
|
-
this.value = null;
|
80
|
-
return;
|
81
|
-
}
|
82
|
-
this._input.value = this.default.toString();
|
83
|
-
this.value = this.default;
|
84
|
-
}
|
85
|
-
};
|
86
|
-
__decorate([
|
87
|
-
property()
|
88
|
-
], Input.prototype, "variant", void 0);
|
89
|
-
__decorate([
|
90
|
-
property()
|
91
|
-
], Input.prototype, "accept", void 0);
|
92
|
-
__decorate([
|
93
|
-
property()
|
94
|
-
], Input.prototype, "value", void 0);
|
95
|
-
__decorate([
|
96
|
-
property({ type: Boolean })
|
97
|
-
], Input.prototype, "only", void 0);
|
98
|
-
__decorate([
|
99
|
-
property({ type: Number })
|
100
|
-
], Input.prototype, "min", void 0);
|
101
|
-
__decorate([
|
102
|
-
property({ type: Number })
|
103
|
-
], Input.prototype, "max", void 0);
|
104
|
-
__decorate([
|
105
|
-
property({ type: Number })
|
106
|
-
], Input.prototype, "step", void 0);
|
107
|
-
Input = __decorate([
|
108
|
-
godown(protoName),
|
109
|
-
styles([
|
110
|
-
inputStyle,
|
111
|
-
fieldStyle,
|
112
|
-
css `
|
113
|
-
:host {
|
114
|
-
width: var(--${cssGlobalVars.input}--width);
|
115
|
-
height: var(--${cssGlobalVars.input}--height);
|
116
|
-
color: var(--${cssGlobalVars.foreground});
|
117
|
-
background: var(--${cssGlobalVars.input}--background);
|
118
|
-
margin: var(--${cssGlobalVars.input}--outline-width);
|
119
|
-
border-radius: var(--${cssGlobalVars.input}--radius);
|
120
|
-
display: block;
|
121
|
-
}
|
122
|
-
|
123
|
-
input[type="file"] {
|
124
|
-
display: none;
|
125
|
-
}
|
126
|
-
|
127
|
-
[part="root"] {
|
128
|
-
width: 100%;
|
129
|
-
display: flex;
|
130
|
-
align-items: center;
|
131
|
-
}
|
132
|
-
|
133
|
-
* {
|
134
|
-
border-radius: inherit;
|
135
|
-
cursor: inherit;
|
136
|
-
}
|
137
|
-
|
138
|
-
input {
|
139
|
-
box-sizing: border-box;
|
140
|
-
height: 100%;
|
141
|
-
width: 100%;
|
142
|
-
margin: 0;
|
143
|
-
color: inherit;
|
144
|
-
background: transparent;
|
145
|
-
border-radius: 0.25em;
|
146
|
-
}
|
147
|
-
`,
|
148
|
-
])
|
149
|
-
], Input);
|
150
|
-
export { Input };
|
151
|
-
export default Input;
|
152
|
-
//# sourceMappingURL=input.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"input.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/input/input.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAClD,OAAO,WAAW,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAEpE,MAAM,SAAS,GAAG,OAAO,CAAC;AAE1B;;GAEG;AA0CI,IAAM,KAAK,GAAX,MAAM,KAAM,SAAQ,WAAW;IAA/B;;QACO,YAAO,GAA0B,SAAS,CAAC;QACvD;;WAEG;QACS,WAAM,GAAW,SAAS,CAAC;QACvC;;WAEG;QACS,UAAK,GAA6B,SAAS,CAAC;QACxD;;WAEG;QAC0B,SAAI,GAAG,KAAK,CAAC;QAC1C;;WAEG;QACyB,QAAG,GAAG,CAAC,CAAC;QACpC;;WAEG;QACyB,QAAG,GAAG,GAAG,CAAC;QACtC;;WAEG;QACyB,SAAI,GAAG,CAAC,CAAC;IA8CvC,CAAC;IA5CW,MAAM;QACd,OAAO,IAAI,CAAA,2BAA2B,OAAO,CAAC,EAAE,aAAa,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,KAAK,SAAS,EAAE,CAAC;;;;aAIlG,IAAI,CAAC,MAAM;kBACN,IAAI,CAAC,KAAe;sBAChB,IAAI,CAAC,SAAS;gBACpB,IAAI,CAAC,IAAI;uBACF,IAAI,CAAC,WAAW;eACxB,IAAI,CAAC,GAAG;eACR,IAAI,CAAC,GAAG;kBACL,IAAI,CAAC,YAAY;;QAE3B,IAAI,CAAC,aAAa,EAAE;WACjB,CAAC;IACV,CAAC;IAED,iBAAiB;QACf,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAC1B,IAAI,IAAI,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;YACzB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QACpB,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;gBAClB,IAAI,CAAC,OAAO,GAAI,IAAI,CAAC,KAAgB,IAAI,EAAE,CAAC;YAC9C,CAAC;YACD,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;gBAChB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC;YAC5B,CAAC;QACH,CAAC;IACH,CAAC;IACS,WAAW,CAAC,CAAc;QAClC,IAAI,CAAC,KAAK,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAC7D,IAAI,CAAC,aAAa,CAAC,IAAI,WAAW,CAAC,QAAQ,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;IACxE,CAAC;IAED,KAAK;QACH,IAAI,IAAI,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;YACzB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;YAClB,OAAO;QACT,CAAC;QACD,IAAI,CAAC,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC;QAC5C,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC;IAC5B,CAAC;CACF,CAAA;AAtEa;IAAX,QAAQ,EAAE;sCAA4C;AAI3C;IAAX,QAAQ,EAAE;qCAA4B;AAI3B;IAAX,QAAQ,EAAE;oCAA6C;AAI3B;IAA5B,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;mCAAc;AAId;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;kCAAS;AAIR;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;kCAAW;AAIV;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;mCAAU;AAzB1B,KAAK;IAzCjB,MAAM,CAAC,SAAS,CAAC;IACjB,MAAM,CAAC;QACN,UAAU;QACV,UAAU;QACV,GAAG,CAAA;;qBAEgB,aAAa,CAAC,KAAK;sBAClB,aAAa,CAAC,KAAK;qBACpB,aAAa,CAAC,UAAU;0BACnB,aAAa,CAAC,KAAK;sBACvB,aAAa,CAAC,KAAK;6BACZ,aAAa,CAAC,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4B7C;KACF,CAAC;GACW,KAAK,CAuEjB;;AAED,eAAe,KAAK,CAAC","sourcesContent":["import { css, html, property } from \"../../_deps.js\";\nimport { godown } from \"../../decorators/godown.js\";\nimport { styles } from \"../../decorators/styles.js\";\nimport { combine } from \"../../lib/directives.js\";\nimport GodownInput from \"../../proto/super-input.js\";\nimport { cssGlobalVars } from \"../../styles/global.js\";\nimport { fieldStyle, inputStyle } from \"../../styles/inputStyle.js\";\n\nconst protoName = \"input\";\n\n/**\n * {@linkcode Input }.\n */\n@godown(protoName)\n@styles([\n inputStyle,\n fieldStyle,\n css`\n :host {\n width: var(--${cssGlobalVars.input}--width);\n height: var(--${cssGlobalVars.input}--height);\n color: var(--${cssGlobalVars.foreground});\n background: var(--${cssGlobalVars.input}--background);\n margin: var(--${cssGlobalVars.input}--outline-width);\n border-radius: var(--${cssGlobalVars.input}--radius);\n display: block;\n }\n\n input[type=\"file\"] {\n display: none;\n }\n\n [part=\"root\"] {\n width: 100%;\n display: flex;\n align-items: center;\n }\n\n * {\n border-radius: inherit;\n cursor: inherit;\n }\n\n input {\n box-sizing: border-box;\n height: 100%;\n width: 100%;\n margin: 0;\n color: inherit;\n background: transparent;\n border-radius: 0.25em;\n }\n `,\n])\nexport class Input extends GodownInput {\n @property() variant: \"default\" | \"outline\" = \"default\";\n /**\n * Input accept.\n */\n @property() accept: string = undefined;\n /**\n * Value.\n */\n @property() value: string | File | FileList = undefined;\n /**\n * Only single files are allowed to be selected.\n */\n @property({ type: Boolean }) only = false;\n /**\n * Input min.\n */\n @property({ type: Number }) min = 0;\n /**\n * Input max.\n */\n @property({ type: Number }) max = 100;\n /**\n * Input step.\n */\n @property({ type: Number }) step = 1;\n\n protected render() {\n return html`<div part=\"root\" class=\"${combine({ \"input-field\": true, outline: this.variant === \"outline\" })}\">\n <input\n part=\"input\"\n class=\"input\"\n id=${this.makeId}\n .value=\"${this.value as string}\"\n ?autofocus=\"${this.autofocus}\"\n type=\"${this.type}\"\n placeholder=\"${this.placeholder}\"\n min=\"${this.min}\"\n max=\"${this.max}\"\n @input=\"${this._handleInput}\"\n />\n ${this._renderSuffix()}\n </div>`;\n }\n\n connectedCallback() {\n super.connectedCallback();\n if (this.type === \"file\") {\n this.value = null;\n } else {\n if (!this.default) {\n this.default = (this.value as string) || \"\";\n }\n if (!this.value) {\n this.value = this.default;\n }\n }\n }\n protected _handleFile(e: any | Event) {\n this.value = !this.only ? e.target.files : e.target.files[0];\n this.dispatchEvent(new CustomEvent(\"change\", { detail: this.value }));\n }\n\n reset() {\n if (this.type === \"file\") {\n this.value = null;\n return;\n }\n this._input.value = this.default.toString();\n this.value = this.default;\n }\n}\n\nexport default Input;\n"]}
|