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,115 @@
|
|
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 svgCaretDown from "@godown/f7-icon/icons/chevron-down.js";
|
6
|
+
import { css, html } from "lit";
|
7
|
+
import { property, query } from "lit/decorators.js";
|
8
|
+
import { scopePrefix } from "../core/global-style.js";
|
9
|
+
import SuperOpenable from "../core/super-openable.js";
|
10
|
+
const protoName = "details";
|
11
|
+
const cssScope = scopePrefix(protoName);
|
12
|
+
/**
|
13
|
+
* {@linkcode Details} similar to <details>.
|
14
|
+
*
|
15
|
+
* @category display
|
16
|
+
*/
|
17
|
+
let Details = class Details extends SuperOpenable {
|
18
|
+
constructor() {
|
19
|
+
super(...arguments);
|
20
|
+
/**
|
21
|
+
* If it is true, the summary event scope will fill the element.
|
22
|
+
*/
|
23
|
+
this.fill = false;
|
24
|
+
/**
|
25
|
+
* Summary text.
|
26
|
+
*/
|
27
|
+
this.summary = "";
|
28
|
+
}
|
29
|
+
render() {
|
30
|
+
return html `<dl part="root">
|
31
|
+
<dt part="title" @click="${this._handelClick}">
|
32
|
+
<span part="summary">${this.summary || htmlSlot("summary")} </span>
|
33
|
+
<span><i part="icon">${svgCaretDown()}</i></span>
|
34
|
+
</dt>
|
35
|
+
<dd part="details" @click=${this.fill ? () => this.toggle() : null}>
|
36
|
+
<div style="min-height: 0;">${htmlSlot()}</div>
|
37
|
+
</dd>
|
38
|
+
</dl>`;
|
39
|
+
}
|
40
|
+
};
|
41
|
+
__decorate([
|
42
|
+
property({ type: Boolean })
|
43
|
+
], Details.prototype, "fill", void 0);
|
44
|
+
__decorate([
|
45
|
+
property()
|
46
|
+
], Details.prototype, "summary", void 0);
|
47
|
+
__decorate([
|
48
|
+
query("dd")
|
49
|
+
], Details.prototype, "_dd", void 0);
|
50
|
+
Details = __decorate([
|
51
|
+
godown(protoName),
|
52
|
+
styles(css `
|
53
|
+
:host {
|
54
|
+
${cssScope}--icon-deg-open: 0deg;
|
55
|
+
${cssScope}--icon-deg-close: 90deg;
|
56
|
+
${cssScope}--icon-deg: 0deg;
|
57
|
+
${cssScope}--icon-space: 0.3em;
|
58
|
+
${cssScope}--summary-direction: row;
|
59
|
+
${cssScope}--transition: .3s;
|
60
|
+
height: fit-content;
|
61
|
+
display: block;
|
62
|
+
transition: var(${cssScope}--transition);
|
63
|
+
}
|
64
|
+
|
65
|
+
dl {
|
66
|
+
height: 100%;
|
67
|
+
position: relative;
|
68
|
+
overflow: hidden;
|
69
|
+
}
|
70
|
+
|
71
|
+
dt {
|
72
|
+
height: 100%;
|
73
|
+
display: flex;
|
74
|
+
flex-wrap: nowrap;
|
75
|
+
justify-content: space-between;
|
76
|
+
background: inherit;
|
77
|
+
align-items: center;
|
78
|
+
flex-direction: var(${cssScope}--summary-direction);
|
79
|
+
}
|
80
|
+
|
81
|
+
dd {
|
82
|
+
display: grid;
|
83
|
+
overflow: hidden;
|
84
|
+
grid-template-rows: 0fr;
|
85
|
+
transition: var(${cssScope}--transition);
|
86
|
+
transition-property: grid-template-rows;
|
87
|
+
}
|
88
|
+
|
89
|
+
i {
|
90
|
+
display: flex;
|
91
|
+
backface-visibility: hidden;
|
92
|
+
padding: var(${cssScope}--icon-space);
|
93
|
+
transition: var(${cssScope}--transition);
|
94
|
+
transform: rotate(var(${cssScope}--icon-deg));
|
95
|
+
}
|
96
|
+
|
97
|
+
:host([open]) dd {
|
98
|
+
grid-template-rows: 1fr;
|
99
|
+
}
|
100
|
+
|
101
|
+
:host([float]) dd {
|
102
|
+
top: 100%;
|
103
|
+
position: absolute;
|
104
|
+
}
|
105
|
+
|
106
|
+
i {
|
107
|
+
transform: rotate(var(${cssScope}--icon-deg-close));
|
108
|
+
}
|
109
|
+
:host([open]) i {
|
110
|
+
transform: rotate(var(${cssScope}--icon-deg-open));
|
111
|
+
}
|
112
|
+
`)
|
113
|
+
], Details);
|
114
|
+
export default Details;
|
115
|
+
//# sourceMappingURL=details.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"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CAAA;;QAEG,QAAQ;QACR,QAAQ;QACR,QAAQ;QACR,QAAQ;QACR,QAAQ;QACR,QAAQ;;;wBAGQ,QAAQ;;;;;;;;;;;;;;;;4BAgBJ,QAAQ;;;;;;;wBAOZ,QAAQ;;;;;;;qBAOX,QAAQ;wBACL,QAAQ;8BACF,QAAQ;;;;;;;;;;;;;8BAaR,QAAQ;;;8BAGR,QAAQ;;GAEnC,CACF;GACK,OAAO,CA0BZ;AAED,eAAe,OAAO,CAAC"}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
import { HandlerEvent } from "@godown/element";
|
2
|
+
import SuperOpenable, { type Direction9 } from "../core/super-openable.js";
|
3
|
+
/**
|
4
|
+
* {@linkcode Dialog} similar to <dialog>.
|
5
|
+
*
|
6
|
+
* Like dialog, it listens for submit events and closes itself when the target method is "dialog".
|
7
|
+
*
|
8
|
+
* It listens for the keydown event and also closes itself when the {@linkcode key} contained in the key is pressed
|
9
|
+
*
|
10
|
+
* @category feedback
|
11
|
+
*/
|
12
|
+
declare class Dialog extends SuperOpenable {
|
13
|
+
direction: Direction9;
|
14
|
+
/**
|
15
|
+
* Enable modal, blocking event penetration.
|
16
|
+
*/
|
17
|
+
modal: boolean;
|
18
|
+
/**
|
19
|
+
* Close key.
|
20
|
+
*/
|
21
|
+
key: string;
|
22
|
+
private _modalInvoke;
|
23
|
+
protected render(): import("lit").TemplateResult<1>;
|
24
|
+
showModal(): void;
|
25
|
+
private _submitEvent;
|
26
|
+
private _keydownEvent;
|
27
|
+
protected updated(): void;
|
28
|
+
protected _handleKeydown(e: KeyboardEvent): void;
|
29
|
+
protected _handelSubmit(e: HandlerEvent<HTMLFormElement>): void;
|
30
|
+
close(): void;
|
31
|
+
}
|
32
|
+
export default Dialog;
|
33
|
+
//# sourceMappingURL=dialog.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../src/components/dialog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAQ/C,OAAO,aAAa,EAAE,EAAE,KAAK,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAK3E;;;;;;;;GAQG;AACH,cAkEM,MAAO,SAAQ,aAAa;IAEhC,SAAS,EAAE,UAAU,CAAY;IACjC;;OAEG;IAEH,KAAK,UAAS;IACd;;OAEG;IAEH,GAAG,SAAY;IAEf,OAAO,CAAC,YAAY,CAAU;IAE9B,SAAS,CAAC,MAAM;IAOhB,SAAS;IAQT,OAAO,CAAC,YAAY,CAAiD;IACrE,OAAO,CAAC,aAAa,CAAiD;IAEtE,SAAS,CAAC,OAAO;IAYjB,SAAS,CAAC,cAAc,CAAC,CAAC,EAAE,aAAa;IAQzC,SAAS,CAAC,aAAa,CAAC,CAAC,EAAE,YAAY,CAAC,eAAe,CAAC;IAMxD,KAAK;CAON;AAED,eAAe,MAAM,CAAC"}
|
@@ -0,0 +1,154 @@
|
|
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 { cssGlobalVars, scopePrefix } from "../core/global-style.js";
|
8
|
+
import SuperOpenable from "../core/super-openable.js";
|
9
|
+
const protoName = "dialog";
|
10
|
+
const cssScope = scopePrefix(protoName);
|
11
|
+
/**
|
12
|
+
* {@linkcode Dialog} similar to <dialog>.
|
13
|
+
*
|
14
|
+
* Like dialog, it listens for submit events and closes itself when the target method is "dialog".
|
15
|
+
*
|
16
|
+
* It listens for the keydown event and also closes itself when the {@linkcode key} contained in the key is pressed
|
17
|
+
*
|
18
|
+
* @category feedback
|
19
|
+
*/
|
20
|
+
let Dialog = class Dialog extends SuperOpenable {
|
21
|
+
constructor() {
|
22
|
+
super(...arguments);
|
23
|
+
this.direction = "center";
|
24
|
+
/**
|
25
|
+
* Enable modal, blocking event penetration.
|
26
|
+
*/
|
27
|
+
this.modal = false;
|
28
|
+
/**
|
29
|
+
* Close key.
|
30
|
+
*/
|
31
|
+
this.key = "Escape";
|
32
|
+
}
|
33
|
+
render() {
|
34
|
+
return html `<div part="root">
|
35
|
+
<div part="modal"></div>
|
36
|
+
<div part="container" direction="${this.direction}">${htmlSlot()}</div>
|
37
|
+
</div>`;
|
38
|
+
}
|
39
|
+
showModal() {
|
40
|
+
if (!this.modal) {
|
41
|
+
this.modal = true;
|
42
|
+
this._modalInvoke = true;
|
43
|
+
}
|
44
|
+
this.show();
|
45
|
+
}
|
46
|
+
updated() {
|
47
|
+
if (this.open) {
|
48
|
+
this._submitEvent = this.events.add(this, "submit", this._handelSubmit);
|
49
|
+
if (this.key) {
|
50
|
+
this._keydownEvent = this.events.add(document, "keydown", this._handleKeydown.bind(this));
|
51
|
+
}
|
52
|
+
}
|
53
|
+
else {
|
54
|
+
this._submitEvent = this.events.remove(this, "submit", this._submitEvent);
|
55
|
+
this._keydownEvent = this.events.remove(document, "keydown", this._keydownEvent);
|
56
|
+
}
|
57
|
+
}
|
58
|
+
_handleKeydown(e) {
|
59
|
+
e.preventDefault();
|
60
|
+
const keys = this.key.split(/[\s,]/);
|
61
|
+
if (keys.includes(e.key) || keys.includes(e.code)) {
|
62
|
+
this.close();
|
63
|
+
}
|
64
|
+
}
|
65
|
+
_handelSubmit(e) {
|
66
|
+
if (e.target.method === "dialog") {
|
67
|
+
this.close();
|
68
|
+
}
|
69
|
+
}
|
70
|
+
close() {
|
71
|
+
if (this._modalInvoke) {
|
72
|
+
this.modal = false;
|
73
|
+
this._modalInvoke = false;
|
74
|
+
}
|
75
|
+
this.open = false;
|
76
|
+
}
|
77
|
+
};
|
78
|
+
__decorate([
|
79
|
+
property()
|
80
|
+
], Dialog.prototype, "direction", void 0);
|
81
|
+
__decorate([
|
82
|
+
property({ type: Boolean, reflect: true })
|
83
|
+
], Dialog.prototype, "modal", void 0);
|
84
|
+
__decorate([
|
85
|
+
property()
|
86
|
+
], Dialog.prototype, "key", void 0);
|
87
|
+
Dialog = __decorate([
|
88
|
+
godown(protoName),
|
89
|
+
styles(css `
|
90
|
+
:host {
|
91
|
+
${cssScope}--background: none;
|
92
|
+
${cssScope}--background-modal: var(${cssGlobalVars.background});
|
93
|
+
${cssScope}--opacity-modal: 0.2;
|
94
|
+
background: var(${cssScope}--background);
|
95
|
+
pointer-events: none;
|
96
|
+
visibility: hidden;
|
97
|
+
position: fixed;
|
98
|
+
z-index: 1;
|
99
|
+
inset:0;
|
100
|
+
}
|
101
|
+
|
102
|
+
:host([open]) {
|
103
|
+
visibility: visible;
|
104
|
+
}
|
105
|
+
|
106
|
+
:host([open][modal]) [part="modal"] {
|
107
|
+
pointer-events: all;
|
108
|
+
visibility: visible;
|
109
|
+
opacity: var(${cssScope}--opacity-modal);
|
110
|
+
|
111
|
+
}
|
112
|
+
|
113
|
+
[part="modal"] {
|
114
|
+
visibility: hidden;
|
115
|
+
opacity: 0;
|
116
|
+
width: 100%;
|
117
|
+
height: 100%;
|
118
|
+
position: absolute;
|
119
|
+
background: var(${cssScope}--background-modal);
|
120
|
+
}
|
121
|
+
|
122
|
+
[part="root"] {
|
123
|
+
width: 100%;
|
124
|
+
height: 100%;
|
125
|
+
display: flex;
|
126
|
+
position: relative;
|
127
|
+
align-items: center;
|
128
|
+
justify-content: center;
|
129
|
+
}
|
130
|
+
|
131
|
+
[direction] {
|
132
|
+
pointer-events: all;
|
133
|
+
position: absolute;
|
134
|
+
}
|
135
|
+
|
136
|
+
[direction^="top"] {
|
137
|
+
top: 0;
|
138
|
+
}
|
139
|
+
|
140
|
+
[direction^="bottom"] {
|
141
|
+
bottom: 0;
|
142
|
+
}
|
143
|
+
|
144
|
+
[direction$="right"] {
|
145
|
+
right: 0%;
|
146
|
+
}
|
147
|
+
|
148
|
+
[direction$="left"] {
|
149
|
+
left: 0%;
|
150
|
+
}
|
151
|
+
`)
|
152
|
+
], Dialog);
|
153
|
+
export default Dialog;
|
154
|
+
//# sourceMappingURL=dialog.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"dialog.js","sourceRoot":"","sources":["../../src/components/dialog.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AAC9D,OAAO,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,yCAAyC,CAAC;AACnE,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,aAAkC,MAAM,2BAA2B,CAAC;AAE3E,MAAM,SAAS,GAAG,QAAQ,CAAC;AAC3B,MAAM,QAAQ,GAAG,WAAW,CAAC,SAAS,CAAC,CAAC;AAExC;;;;;;;;GAQG;AAmEH,IAAM,MAAM,GAAZ,MAAM,MAAO,SAAQ,aAAa;IAAlC;;QAEE,cAAS,GAAe,QAAQ,CAAC;QACjC;;WAEG;QAEH,UAAK,GAAG,KAAK,CAAC;QACd;;WAEG;QAEH,QAAG,GAAG,QAAQ,CAAC;IAuDjB,CAAC;IAnDW,MAAM;QACd,OAAO,IAAI,CAAA;;yCAE0B,IAAI,CAAC,SAAS,KAAK,QAAQ,EAAE;WAC3D,CAAC;IACV,CAAC;IAED,SAAS;QACP,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;YAChB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;YAClB,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC;QAC3B,CAAC;QACD,IAAI,CAAC,IAAI,EAAE,CAAC;IACd,CAAC;IAKS,OAAO;QACf,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC;YACd,IAAI,CAAC,YAAY,GA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AAI,GAAG,KAAK,CAAC;IACpB,CAAC;CACF,CAAA;AAjEC;IADC,QAAQ,EAAE;yCACsB;AAKjC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;qCAC7B;AAKd;IADC,QAAQ,EAAE;mCACI;AAZX,MAAM;IAlEX,MAAM,CAAC,SAAS,CAAC;IACjB,MAAM,CACL,GAAG,CAAA;;QAEG,QAAQ;QACR,QAAQ,2BAA2B,aAAa,CAAC,UAAU;QAC3D,QAAQ;wBACQ,QAAQ;;;;;;;;;;;;;;;qBAeX,QAAQ;;;;;;;;;;wBAUL,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgC7B,CACF;GACK,MAAM,CAmEX;AAED,eAAe,MAAM,CAAC"}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { GlobalStyle } from "../core/global-style.js";
|
2
|
+
/**
|
3
|
+
* {@linkcode Divider} similar to <hr>.
|
4
|
+
*
|
5
|
+
* This component does not render content.
|
6
|
+
*
|
7
|
+
* @category layout
|
8
|
+
*/
|
9
|
+
declare class Divider extends GlobalStyle {
|
10
|
+
/**
|
11
|
+
* Vertical display.
|
12
|
+
*/
|
13
|
+
vertical: boolean;
|
14
|
+
connectedCallback(): void;
|
15
|
+
}
|
16
|
+
export default Divider;
|
17
|
+
//# sourceMappingURL=divider.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"divider.d.ts","sourceRoot":"","sources":["../../src/components/divider.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAItD;;;;;;GAMG;AACH,cAgBM,OAAQ,SAAQ,WAAW;IAC/B;;OAEG;IAEH,QAAQ,UAAS;IAEjB,iBAAiB;CAGlB;AAED,eAAe,OAAO,CAAC"}
|
@@ -0,0 +1,46 @@
|
|
1
|
+
import { __decorate } from "tslib";
|
2
|
+
import { godown, styles } from "@godown/element/decorators/index.js";
|
3
|
+
import { css } from "lit";
|
4
|
+
import { property } from "lit/decorators.js";
|
5
|
+
import { GlobalStyle } from "../core/global-style.js";
|
6
|
+
const protoName = "divider";
|
7
|
+
/**
|
8
|
+
* {@linkcode Divider} similar to <hr>.
|
9
|
+
*
|
10
|
+
* This component does not render content.
|
11
|
+
*
|
12
|
+
* @category layout
|
13
|
+
*/
|
14
|
+
let Divider = class Divider extends GlobalStyle {
|
15
|
+
constructor() {
|
16
|
+
super(...arguments);
|
17
|
+
/**
|
18
|
+
* Vertical display.
|
19
|
+
*/
|
20
|
+
this.vertical = false;
|
21
|
+
}
|
22
|
+
connectedCallback() {
|
23
|
+
this.createRenderRoot();
|
24
|
+
}
|
25
|
+
};
|
26
|
+
__decorate([
|
27
|
+
property({ type: Boolean, reflect: true })
|
28
|
+
], Divider.prototype, "vertical", void 0);
|
29
|
+
Divider = __decorate([
|
30
|
+
godown(protoName),
|
31
|
+
styles(css `
|
32
|
+
:host{
|
33
|
+
width: 100%;
|
34
|
+
height: .05em;
|
35
|
+
margin: auto;
|
36
|
+
display: block;
|
37
|
+
background: currentColor;
|
38
|
+
}
|
39
|
+
:host([vertical]) {
|
40
|
+
width: .05em;
|
41
|
+
height: max(1em, 100%);
|
42
|
+
}
|
43
|
+
`)
|
44
|
+
], Divider);
|
45
|
+
export default Divider;
|
46
|
+
//# sourceMappingURL=divider.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"divider.js","sourceRoot":"","sources":["../../src/components/divider.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,qCAAqC,CAAC;AACrE,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,MAAM,SAAS,GAAG,SAAS,CAAC;AAE5B;;;;;;GAMG;AAiBH,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,WAAW;IAAjC;;QACE;;WAEG;QAEH,aAAQ,GAAG,KAAK,CAAC;IAKnB,CAAC;IAHC,iBAAiB;QACf,IAAI,CAAC,gBAAgB,EAAE,CAAC;IAC1B,CAAC;CACF,CAAA;AALC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;yCAC1B;AALb,OAAO;IAhBZ,MAAM,CAAC,SAAS,CAAC;IACjB,MAAM,CACL,GAAG,CAAA;;;;;;;;;;;;GAYF,CACF;GACK,OAAO,CAUZ;AAED,eAAe,OAAO,CAAC"}
|
@@ -0,0 +1,40 @@
|
|
1
|
+
import { EventListenerFunc } from "@godown/element/tools/events.js";
|
2
|
+
import { GlobalStyle } from "../core/global-style.js";
|
3
|
+
/**
|
4
|
+
* {@linkcode Dragbox} does not extend beyond the range of {@linkcode Dragbox.offsetsWidth} and {@linkcode Dragbox.offsetsHeight}.
|
5
|
+
*
|
6
|
+
* @category wrapper
|
7
|
+
*/
|
8
|
+
declare class Dragbox extends GlobalStyle {
|
9
|
+
/**
|
10
|
+
* Width of (`this.offsetParent` or `document.body`).
|
11
|
+
*/
|
12
|
+
get offsetsWidth(): number;
|
13
|
+
/**
|
14
|
+
* Height of (`this.offsetParent` or `document.body`).
|
15
|
+
*/
|
16
|
+
get offsetsHeight(): number;
|
17
|
+
drag: boolean;
|
18
|
+
t: number;
|
19
|
+
l: number;
|
20
|
+
cx: number;
|
21
|
+
cy: number;
|
22
|
+
/**
|
23
|
+
* Position x.
|
24
|
+
*/
|
25
|
+
x: string;
|
26
|
+
/**
|
27
|
+
* Position y.
|
28
|
+
*/
|
29
|
+
y: string;
|
30
|
+
protected render(): import("lit").TemplateResult<1>;
|
31
|
+
protected firstUpdated(): void;
|
32
|
+
protected _handleDragStart(e: MouseEvent): void;
|
33
|
+
_handleMouseMove: EventListenerFunc;
|
34
|
+
_handleMouseLeave: EventListenerFunc;
|
35
|
+
protected _handleDragEnd(): void;
|
36
|
+
protected _handleDrag(e: MouseEvent): void;
|
37
|
+
reset(): void;
|
38
|
+
}
|
39
|
+
export default Dragbox;
|
40
|
+
//# sourceMappingURL=dragbox.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"dragbox.d.ts","sourceRoot":"","sources":["../../src/components/dragbox.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAIpE,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAItD;;;;GAIG;AACH,cAcM,OAAQ,SAAQ,WAAW;IAC/B;;OAEG;IACH,IAAI,YAAY,IAAI,MAAM,CAEzB;IAED;;OAEG;IACH,IAAI,aAAa,IAAI,MAAM,CAE1B;IAED,IAAI,EAAE,OAAO,CAAC;IACd,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IAEH,CAAC,SAAU;IACX;;OAEG;IAEH,CAAC,SAAU;IAEX,SAAS,CAAC,MAAM;IAIhB,SAAS,CAAC,YAAY;IAItB,SAAS,CAAC,gBAAgB,CAAC,CAAC,EAAE,UAAU;IAUxC,gBAAgB,EAAE,iBAAiB,CAAC;IACpC,iBAAiB,EAAE,iBAAiB,CAAC;IAErC,SAAS,CAAC,cAAc;IAMxB,SAAS,CAAC,WAAW,CAAC,CAAC,EAAE,UAAU;IAuBnC,KAAK;CAWN;AAED,eAAe,OAAO,CAAC"}
|
@@ -1,14 +1,17 @@
|
|
1
1
|
import { __decorate } from "tslib";
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
import
|
5
|
-
import {
|
6
|
-
import {
|
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 { GlobalStyle } from "../core/global-style.js";
|
7
8
|
const protoName = "dragbox";
|
8
9
|
/**
|
9
10
|
* {@linkcode Dragbox} does not extend beyond the range of {@linkcode Dragbox.offsetsWidth} and {@linkcode Dragbox.offsetsHeight}.
|
11
|
+
*
|
12
|
+
* @category wrapper
|
10
13
|
*/
|
11
|
-
let Dragbox = class Dragbox extends
|
14
|
+
let Dragbox = class Dragbox extends GlobalStyle {
|
12
15
|
constructor() {
|
13
16
|
super(...arguments);
|
14
17
|
/**
|
@@ -20,6 +23,18 @@ let Dragbox = class Dragbox extends GodownElement {
|
|
20
23
|
*/
|
21
24
|
this.y = "auto";
|
22
25
|
}
|
26
|
+
/**
|
27
|
+
* Width of (`this.offsetParent` or `document.body`).
|
28
|
+
*/
|
29
|
+
get offsetsWidth() {
|
30
|
+
return this.offsetParent?.clientWidth ?? document.body.offsetWidth;
|
31
|
+
}
|
32
|
+
/**
|
33
|
+
* Height of (`this.offsetParent` or `document.body`).
|
34
|
+
*/
|
35
|
+
get offsetsHeight() {
|
36
|
+
return this.offsetParent?.clientHeight ?? document.body.offsetHeight;
|
37
|
+
}
|
23
38
|
render() {
|
24
39
|
return html `<div @mousedown="${this._handleDragStart}" @mouseup="${this._handleDragEnd}">${htmlSlot()}</div>`;
|
25
40
|
}
|
@@ -32,13 +47,13 @@ let Dragbox = class Dragbox extends GodownElement {
|
|
32
47
|
this.t = this.offsetTop;
|
33
48
|
this.l = this.offsetLeft;
|
34
49
|
this.drag = true;
|
35
|
-
this.
|
36
|
-
this.
|
50
|
+
this._handleMouseMove = this.events.add(document, "mousemove", this._handleDrag.bind(this));
|
51
|
+
this._handleMouseLeave = this.events.add(document, "mouseleave", this._handleDragEnd.bind(this));
|
37
52
|
}
|
38
53
|
_handleDragEnd() {
|
39
54
|
this.drag = false;
|
40
|
-
this.
|
41
|
-
this.
|
55
|
+
this.events.remove(document, "mousemove", this._handleMouseMove);
|
56
|
+
this.events.remove(document, "mouseleave", this._handleMouseLeave);
|
42
57
|
}
|
43
58
|
_handleDrag(e) {
|
44
59
|
if (!this.drag) {
|
@@ -86,8 +101,7 @@ __decorate([
|
|
86
101
|
], Dragbox.prototype, "y", void 0);
|
87
102
|
Dragbox = __decorate([
|
88
103
|
godown(protoName),
|
89
|
-
styles(
|
90
|
-
css `
|
104
|
+
styles(css `
|
91
105
|
:host {
|
92
106
|
position: absolute;
|
93
107
|
display: block;
|
@@ -97,9 +111,7 @@ Dragbox = __decorate([
|
|
97
111
|
-webkit-user-select: none;
|
98
112
|
user-select: none;
|
99
113
|
}
|
100
|
-
|
101
|
-
])
|
114
|
+
`)
|
102
115
|
], Dragbox);
|
103
|
-
export { Dragbox };
|
104
116
|
export default Dragbox;
|
105
117
|
//# sourceMappingURL=dragbox.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"dragbox.js","sourceRoot":"","sources":["../../src/components/dragbox.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AAC9D,OAAO,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,yCAAyC,CAAC;AAEnE,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,MAAM,SAAS,GAAG,SAAS,CAAC;AAE5B;;;;GAIG;AAeH,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,WAAW;IAAjC;;QAqBE;;WAEG;QAEH,MAAC,GAAG,MAAM,CAAC;QACX;;WAEG;QAEH,MAAC,GAAG,MAAM,CAAC;IA+Db,CAAC;IA5FC;;OAEG;IACH,IAAI,YAAY;QACd,OAAO,IAAI,CAAC,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AAI,GAAG,CAAC,IAAI,GAAG,CAAC;QACtB,KAAK,CAAC,GAAG,GAAG,CAAC,IAAI,GAAG,CAAC;QACrB,IAAI,UAAU,GAAG,YAAY,GAAG,WAAW,EAAE,CAAC;YAC5C,KAAK,CAAC,IAAI,GAAG,GAAG,YAAY,GAAG,WAAW,IAAI,CAAC;QACjD,CAAC;QACD,IAAI,SAAS,GAAG,aAAa,GAAG,YAAY,EAAE,CAAC;YAC7C,KAAK,CAAC,GAAG,GAAG,GAAG,aAAa,GAAG,YAAY,IAAI,CAAC;QAClD,CAAC;IACH,CAAC;CACF,CAAA;AApEC;IADC,QAAQ,EAAE;kCACA;AAKX;IADC,QAAQ,EAAE;kCACA;AA9BP,OAAO;IAdZ,MAAM,CAAC,SAAS,CAAC;IACjB,MAAM,CACL,GAAG,CAAA;;;;;;;;;;GAUF,CACF;GACK,OAAO,CA6FZ;AAED,eAAe,OAAO,CAAC"}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
import { GlobalStyle } from "../core/global-style.js";
|
2
|
+
/**
|
3
|
+
* {@linkcode Flex} provides flex layout.
|
4
|
+
*
|
5
|
+
* @category layout
|
6
|
+
*/
|
7
|
+
declare class Flex extends GlobalStyle {
|
8
|
+
/**
|
9
|
+
* CSS property `flex-flow` (`flex-direction flex-wrap`).
|
10
|
+
*/
|
11
|
+
flexFlow: string;
|
12
|
+
/**
|
13
|
+
* CSS property `gap`.
|
14
|
+
*/
|
15
|
+
gap: string;
|
16
|
+
/**
|
17
|
+
* CSS property `justify-content`.
|
18
|
+
*/
|
19
|
+
content: string;
|
20
|
+
/**
|
21
|
+
* CSS property `align-items`.
|
22
|
+
*/
|
23
|
+
items: string;
|
24
|
+
/**
|
25
|
+
* If true, set flex-direction to "column".
|
26
|
+
*/
|
27
|
+
vertical: boolean;
|
28
|
+
protected render(): import("lit").TemplateResult<1>[];
|
29
|
+
}
|
30
|
+
export default Flex;
|
31
|
+
//# sourceMappingURL=flex.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"flex.d.ts","sourceRoot":"","sources":["../../src/components/flex.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAItD;;;;GAIG;AACH,cAEM,IAAK,SAAQ,WAAW;IAC5B;;OAEG;IAEH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IAEH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IAEH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IAEH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IAEH,QAAQ,EAAE,OAAO,CAAC;IAElB,SAAS,CAAC,MAAM;CAgBjB;AAED,eAAe,IAAI,CAAC"}
|
@@ -0,0 +1,52 @@
|
|
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 { htmlStyle } from "@godown/element/directives/html-style.js";
|
6
|
+
import { joinRules } from "@godown/element/tools/css.js";
|
7
|
+
import { css } from "lit";
|
8
|
+
import { property } from "lit/decorators.js";
|
9
|
+
import { GlobalStyle } from "../core/global-style.js";
|
10
|
+
const protoName = "flex";
|
11
|
+
/**
|
12
|
+
* {@linkcode Flex} provides flex layout.
|
13
|
+
*
|
14
|
+
* @category layout
|
15
|
+
*/
|
16
|
+
let Flex = class Flex extends GlobalStyle {
|
17
|
+
render() {
|
18
|
+
return [
|
19
|
+
htmlSlot(),
|
20
|
+
htmlStyle(joinRules({
|
21
|
+
":host": {
|
22
|
+
gap: this.gap,
|
23
|
+
"flex-flow": this.flexFlow,
|
24
|
+
"flex-direction": this.vertical && "column",
|
25
|
+
"align-items": this.items,
|
26
|
+
"justify-content": this.content,
|
27
|
+
},
|
28
|
+
})),
|
29
|
+
];
|
30
|
+
}
|
31
|
+
};
|
32
|
+
__decorate([
|
33
|
+
property({ attribute: "flex-flow" })
|
34
|
+
], Flex.prototype, "flexFlow", void 0);
|
35
|
+
__decorate([
|
36
|
+
property()
|
37
|
+
], Flex.prototype, "gap", void 0);
|
38
|
+
__decorate([
|
39
|
+
property()
|
40
|
+
], Flex.prototype, "content", void 0);
|
41
|
+
__decorate([
|
42
|
+
property()
|
43
|
+
], Flex.prototype, "items", void 0);
|
44
|
+
__decorate([
|
45
|
+
property({ type: Boolean })
|
46
|
+
], Flex.prototype, "vertical", void 0);
|
47
|
+
Flex = __decorate([
|
48
|
+
godown(protoName),
|
49
|
+
styles(css `:host {display:flex;}`)
|
50
|
+
], Flex);
|
51
|
+
export default Flex;
|
52
|
+
//# sourceMappingURL=flex.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"flex.js","sourceRoot":"","sources":["../../src/components/flex.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AAC9D,OAAO,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,yCAAyC,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,MAAM,SAAS,GAAG,MAAM,CAAC;AAEzB;;;;GAIG;AAGH,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,WAAW;IA2BlB,MAAM;QACd,OAAO;YACL,QAAQ,EAAE;YACV,SAAS,CACP,SAAS,CAAC;gBACR,OAAO,EAAE;oBACP,GAAG,EAAE,IAAI,CAAC,GAAG;oBACb,WAAW,EAAE,IAAI,CAAC,QAAQ;oBAC1B,gBAAgB,EAAE,IAAI,CAAC,QAAQ,IAAI,QAAQ;oBAC3C,aAAa,EAAE,IAAI,CAAC,KAAK;oBACzB,iBAAiB,EAAE,IAAI,CAAC,OAAO;iBAChC;aACF,CAAC,CACH;SACF,CAAC;IACJ,CAAC;CACF,CAAA;AAtCC;IADC,QAAQ,CAAC,EAAE,SAAS,EAAE,WAAW,EAAE,CAAC;sCACpB;AAKjB;IADC,QAAQ,EAAE;iCACC;AAKZ;IADC,QAAQ,EAAE;qCACK;AAKhB;IADC,QAAQ,EAAE;mCACG;AAKd;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;sCACV;AAzBd,IAAI;IAFT,MAAM,CAAC,SAAS,CAAC;IACjB,MAAM,CAAC,GAAG,CAAA,uBAAuB,CAAC;GAC7B,IAAI,CA2CT;AAED,eAAe,IAAI,CAAC"}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { GlobalStyle } from "../core/global-style.js";
|
2
|
+
/**
|
3
|
+
* {@linkcode Form} Gets child element key-value object,
|
4
|
+
* which will be nested if the child element is the same as this element.
|
5
|
+
*
|
6
|
+
* @slot - Child elements.
|
7
|
+
*
|
8
|
+
* @category form
|
9
|
+
*/
|
10
|
+
declare class Form<T = object> extends GlobalStyle {
|
11
|
+
name: string;
|
12
|
+
get value(): T;
|
13
|
+
nameValue: () => [string, T];
|
14
|
+
protected render(): import("lit").TemplateResult<1>;
|
15
|
+
reset(): void;
|
16
|
+
namevalue(): [string, T];
|
17
|
+
static buildValue(elements: (Element & {
|
18
|
+
name?: string;
|
19
|
+
value?: unknown;
|
20
|
+
namevalue?: () => [string, unknown];
|
21
|
+
})[]): Record<string, any>;
|
22
|
+
}
|
23
|
+
export default Form;
|
24
|
+
//# sourceMappingURL=form.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../src/components/form.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAItD;;;;;;;GAOG;AACH,cAQM,IAAI,CAAC,CAAC,GAAG,MAAM,CAAE,SAAQ,WAAW;IAExC,IAAI,SAAM;IACV,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"}
|