godown 3.0.0-canary.8 → 3.0.0
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 +38 -9
- package/alert.d.ts +1 -0
- package/alert.d.ts.map +1 -1
- package/alert.js +1 -5
- package/alert.js.map +1 -1
- package/avatar.d.ts +1 -0
- package/avatar.d.ts.map +1 -1
- package/avatar.js +1 -5
- package/avatar.js.map +1 -1
- package/badge.d.ts +9 -0
- package/badge.d.ts.map +1 -0
- package/badge.js +2 -0
- package/badge.js.map +1 -0
- package/breath.js +1 -5
- package/breath.js.map +1 -1
- package/build/godown+lit.iife.js +59 -0
- package/build/godown+lit.iife.js.map +1 -0
- package/build/godown+lit.js +59 -0
- package/build/godown+lit.js.map +1 -0
- package/build/godown+lit.umd.js +59 -0
- package/build/godown+lit.umd.js.map +1 -0
- package/build/godown.iife.js +47 -0
- package/build/godown.js +48 -0
- package/build/godown.js.map +1 -0
- package/build/godown.umd.js +48 -0
- package/build/godown.umd.js.map +1 -0
- package/button.d.ts +1 -0
- package/button.d.ts.map +1 -1
- package/button.js +1 -5
- package/button.js.map +1 -1
- package/card.d.ts +1 -0
- package/card.d.ts.map +1 -1
- package/card.js +1 -5
- package/card.js.map +1 -1
- package/carousel.d.ts +1 -0
- package/carousel.d.ts.map +1 -1
- package/carousel.js +1 -5
- package/carousel.js.map +1 -1
- package/components/alert.d.ts +4 -1
- package/components/alert.d.ts.map +1 -1
- package/components/alert.js +1 -176
- package/components/alert.js.map +1 -1
- package/components/avatar.d.ts +8 -2
- package/components/avatar.d.ts.map +1 -1
- package/components/avatar.js +1 -61
- package/components/avatar.js.map +1 -1
- package/components/badge.d.ts +23 -0
- package/components/badge.d.ts.map +1 -0
- package/components/badge.js +2 -0
- package/components/badge.js.map +1 -0
- package/components/breath.d.ts +7 -4
- package/components/breath.d.ts.map +1 -1
- package/components/breath.js +1 -79
- package/components/breath.js.map +1 -1
- package/components/button.d.ts +19 -10
- package/components/button.d.ts.map +1 -1
- package/components/button.js +1 -165
- package/components/button.js.map +1 -1
- package/components/card.d.ts +3 -2
- package/components/card.d.ts.map +1 -1
- package/components/card.js +1 -53
- package/components/card.js.map +1 -1
- package/components/carousel.d.ts +10 -5
- package/components/carousel.d.ts.map +1 -1
- package/components/carousel.js +1 -112
- package/components/carousel.js.map +1 -1
- package/components/details.d.ts +6 -2
- package/components/details.d.ts.map +1 -1
- package/components/details.js +1 -49
- package/components/details.js.map +1 -1
- package/components/dialog.d.ts +8 -3
- package/components/dialog.d.ts.map +1 -1
- package/components/dialog.js +1 -93
- package/components/dialog.js.map +1 -1
- package/components/divider.d.ts +3 -3
- package/components/divider.d.ts.map +1 -1
- package/components/divider.js +1 -36
- package/components/divider.js.map +1 -1
- package/components/dragbox.d.ts +11 -9
- package/components/dragbox.d.ts.map +1 -1
- package/components/dragbox.js +1 -109
- package/components/dragbox.js.map +1 -1
- package/components/flex.d.ts +4 -1
- package/components/flex.d.ts.map +1 -1
- package/components/flex.js +1 -54
- package/components/flex.js.map +1 -1
- package/components/form.d.ts +3 -3
- package/components/form.d.ts.map +1 -1
- package/components/form.js +1 -77
- package/components/form.js.map +1 -1
- package/components/grid.d.ts +10 -3
- package/components/grid.d.ts.map +1 -1
- package/components/grid.js +1 -55
- package/components/grid.js.map +1 -1
- package/components/heading.d.ts +29 -0
- package/components/heading.d.ts.map +1 -0
- package/components/heading.js +2 -0
- package/components/heading.js.map +1 -0
- package/components/input.d.ts +7 -3
- package/components/input.d.ts.map +1 -1
- package/components/input.js +1 -50
- package/components/input.js.map +1 -1
- package/components/layout.d.ts +8 -9
- package/components/layout.d.ts.map +1 -1
- package/components/layout.js +1 -46
- package/components/layout.js.map +1 -1
- package/components/link.d.ts +8 -1
- package/components/link.d.ts.map +1 -1
- package/components/link.js +1 -42
- package/components/link.js.map +1 -1
- package/components/progress.d.ts +4 -11
- package/components/progress.d.ts.map +1 -1
- package/components/progress.js +1 -67
- package/components/progress.js.map +1 -1
- package/components/range.d.ts +22 -15
- package/components/range.d.ts.map +1 -1
- package/components/range.js +1 -273
- package/components/range.js.map +1 -1
- package/components/rotate.d.ts +4 -2
- package/components/rotate.d.ts.map +1 -1
- package/components/rotate.js +1 -56
- package/components/rotate.js.map +1 -1
- package/components/router.d.ts +20 -24
- package/components/router.d.ts.map +1 -1
- package/components/router.js +1 -250
- package/components/router.js.map +1 -1
- package/components/select.d.ts +8 -4
- package/components/select.d.ts.map +1 -1
- package/components/select.js +1 -212
- package/components/select.js.map +1 -1
- package/components/skeleton.d.ts +3 -1
- package/components/skeleton.d.ts.map +1 -1
- package/components/skeleton.js +1 -54
- package/components/skeleton.js.map +1 -1
- package/components/split.d.ts +25 -2
- package/components/split.d.ts.map +1 -1
- package/components/split.js +1 -128
- package/components/split.js.map +1 -1
- package/components/switch.d.ts +8 -5
- package/components/switch.d.ts.map +1 -1
- package/components/switch.js +1 -92
- package/components/switch.js.map +1 -1
- package/components/text.d.ts +3 -1
- package/components/text.d.ts.map +1 -1
- package/components/text.js +1 -43
- package/components/text.js.map +1 -1
- package/components/time.d.ts +8 -6
- package/components/time.d.ts.map +1 -1
- package/components/time.js +1 -85
- package/components/time.js.map +1 -1
- package/components/tooltip.d.ts +14 -2
- package/components/tooltip.d.ts.map +1 -1
- package/components/tooltip.js +1 -66
- package/components/tooltip.js.map +1 -1
- package/components/typewriter.d.ts +8 -14
- package/components/typewriter.d.ts.map +1 -1
- package/components/typewriter.js +1 -129
- package/components/typewriter.js.map +1 -1
- package/core/global-style.d.ts +2 -2
- package/core/global-style.d.ts.map +1 -1
- package/core/global-style.js +1 -45
- package/core/global-style.js.map +1 -1
- package/core/super-anchor.d.ts +2 -1
- package/core/super-anchor.d.ts.map +1 -1
- package/core/super-anchor.js +1 -38
- package/core/super-anchor.js.map +1 -1
- package/core/super-input.d.ts +6 -5
- package/core/super-input.d.ts.map +1 -1
- package/core/super-input.js +1 -111
- package/core/super-input.js.map +1 -1
- package/core/super-openable.d.ts +1 -1
- package/core/super-openable.d.ts.map +1 -1
- package/core/super-openable.js +1 -37
- package/core/super-openable.js.map +1 -1
- package/custom-elements.json +1 -1
- package/details.d.ts +1 -0
- package/details.d.ts.map +1 -1
- package/details.js +1 -5
- package/details.js.map +1 -1
- package/dev/alert.d.ts +1 -0
- package/dev/alert.d.ts.map +1 -1
- package/dev/alert.js +1 -0
- package/dev/alert.js.map +1 -1
- package/dev/avatar.d.ts +1 -0
- package/dev/avatar.d.ts.map +1 -1
- package/dev/avatar.js +1 -0
- package/dev/avatar.js.map +1 -1
- package/dev/badge.d.ts +9 -0
- package/dev/badge.d.ts.map +1 -0
- package/dev/badge.js +5 -0
- package/dev/badge.js.map +1 -0
- package/dev/button.d.ts +1 -0
- package/dev/button.d.ts.map +1 -1
- package/dev/button.js +1 -0
- package/dev/button.js.map +1 -1
- package/dev/card.d.ts +1 -0
- package/dev/card.d.ts.map +1 -1
- package/dev/card.js +1 -0
- package/dev/card.js.map +1 -1
- package/dev/carousel.d.ts +1 -0
- package/dev/carousel.d.ts.map +1 -1
- package/dev/carousel.js +1 -0
- package/dev/carousel.js.map +1 -1
- package/dev/components/alert.d.ts +4 -1
- package/dev/components/alert.d.ts.map +1 -1
- package/dev/components/alert.js +20 -23
- package/dev/components/alert.js.map +1 -1
- package/dev/components/avatar.d.ts +8 -2
- package/dev/components/avatar.d.ts.map +1 -1
- package/dev/components/avatar.js +23 -13
- package/dev/components/avatar.js.map +1 -1
- package/dev/components/badge.d.ts +23 -0
- package/dev/components/badge.d.ts.map +1 -0
- package/dev/components/badge.js +107 -0
- package/dev/components/badge.js.map +1 -0
- package/dev/components/breath.d.ts +7 -4
- package/dev/components/breath.d.ts.map +1 -1
- package/dev/components/breath.js +30 -26
- package/dev/components/breath.js.map +1 -1
- package/dev/components/button.d.ts +19 -10
- package/dev/components/button.d.ts.map +1 -1
- package/dev/components/button.js +47 -28
- package/dev/components/button.js.map +1 -1
- package/dev/components/card.d.ts +3 -2
- package/dev/components/card.d.ts.map +1 -1
- package/dev/components/card.js +23 -33
- package/dev/components/card.js.map +1 -1
- package/dev/components/carousel.d.ts +10 -5
- package/dev/components/carousel.d.ts.map +1 -1
- package/dev/components/carousel.js +33 -26
- package/dev/components/carousel.js.map +1 -1
- package/dev/components/details.d.ts +6 -2
- package/dev/components/details.d.ts.map +1 -1
- package/dev/components/details.js +24 -26
- package/dev/components/details.js.map +1 -1
- package/dev/components/dialog.d.ts +8 -3
- package/dev/components/dialog.d.ts.map +1 -1
- package/dev/components/dialog.js +21 -17
- package/dev/components/dialog.js.map +1 -1
- package/dev/components/divider.d.ts +3 -3
- package/dev/components/divider.d.ts.map +1 -1
- package/dev/components/divider.js +29 -17
- package/dev/components/divider.js.map +1 -1
- package/dev/components/dragbox.d.ts +11 -9
- package/dev/components/dragbox.d.ts.map +1 -1
- package/dev/components/dragbox.js +11 -4
- package/dev/components/dragbox.js.map +1 -1
- package/dev/components/flex.d.ts +4 -1
- package/dev/components/flex.d.ts.map +1 -1
- package/dev/components/flex.js +25 -9
- package/dev/components/flex.js.map +1 -1
- package/dev/components/form.d.ts +3 -3
- package/dev/components/form.d.ts.map +1 -1
- package/dev/components/form.js +2 -5
- package/dev/components/form.js.map +1 -1
- package/dev/components/grid.d.ts +10 -3
- package/dev/components/grid.d.ts.map +1 -1
- package/dev/components/grid.js +18 -10
- package/dev/components/grid.js.map +1 -1
- package/dev/components/heading.d.ts +29 -0
- package/dev/components/heading.d.ts.map +1 -0
- package/dev/components/heading.js +103 -0
- package/dev/components/heading.js.map +1 -0
- package/dev/components/input.d.ts +7 -3
- package/dev/components/input.d.ts.map +1 -1
- package/dev/components/input.js +18 -18
- package/dev/components/input.js.map +1 -1
- package/dev/components/layout.d.ts +8 -9
- package/dev/components/layout.d.ts.map +1 -1
- package/dev/components/layout.js +38 -25
- package/dev/components/layout.js.map +1 -1
- package/dev/components/link.d.ts +8 -1
- package/dev/components/link.d.ts.map +1 -1
- package/dev/components/link.js +15 -3
- package/dev/components/link.js.map +1 -1
- package/dev/components/progress.d.ts +4 -11
- package/dev/components/progress.d.ts.map +1 -1
- package/dev/components/progress.js +43 -49
- package/dev/components/progress.js.map +1 -1
- package/dev/components/range.d.ts +22 -15
- package/dev/components/range.d.ts.map +1 -1
- package/dev/components/range.js +56 -61
- package/dev/components/range.js.map +1 -1
- package/dev/components/rotate.d.ts +4 -2
- package/dev/components/rotate.d.ts.map +1 -1
- package/dev/components/rotate.js +3 -5
- package/dev/components/rotate.js.map +1 -1
- package/dev/components/router.d.ts +20 -24
- package/dev/components/router.d.ts.map +1 -1
- package/dev/components/router.js +23 -36
- package/dev/components/router.js.map +1 -1
- package/dev/components/select.d.ts +8 -4
- package/dev/components/select.d.ts.map +1 -1
- package/dev/components/select.js +44 -32
- package/dev/components/select.js.map +1 -1
- package/dev/components/skeleton.d.ts +3 -1
- package/dev/components/skeleton.d.ts.map +1 -1
- package/dev/components/skeleton.js +9 -9
- package/dev/components/skeleton.js.map +1 -1
- package/dev/components/split.d.ts +25 -2
- package/dev/components/split.d.ts.map +1 -1
- package/dev/components/split.js +71 -38
- package/dev/components/split.js.map +1 -1
- package/dev/components/switch.d.ts +8 -5
- package/dev/components/switch.d.ts.map +1 -1
- package/dev/components/switch.js +28 -31
- package/dev/components/switch.js.map +1 -1
- package/dev/components/text.d.ts +3 -1
- package/dev/components/text.d.ts.map +1 -1
- package/dev/components/text.js +12 -15
- package/dev/components/text.js.map +1 -1
- package/dev/components/time.d.ts +8 -6
- package/dev/components/time.d.ts.map +1 -1
- package/dev/components/time.js +8 -14
- package/dev/components/time.js.map +1 -1
- package/dev/components/tooltip.d.ts +14 -2
- package/dev/components/tooltip.d.ts.map +1 -1
- package/dev/components/tooltip.js +54 -24
- package/dev/components/tooltip.js.map +1 -1
- package/dev/components/typewriter.d.ts +8 -14
- package/dev/components/typewriter.d.ts.map +1 -1
- package/dev/components/typewriter.js +22 -37
- package/dev/components/typewriter.js.map +1 -1
- package/dev/core/global-style.d.ts +2 -2
- package/dev/core/global-style.d.ts.map +1 -1
- package/dev/core/global-style.js +18 -14
- package/dev/core/global-style.js.map +1 -1
- package/dev/core/super-anchor.d.ts +2 -1
- package/dev/core/super-anchor.d.ts.map +1 -1
- package/dev/core/super-anchor.js +25 -23
- package/dev/core/super-anchor.js.map +1 -1
- package/dev/core/super-input.d.ts +6 -5
- package/dev/core/super-input.d.ts.map +1 -1
- package/dev/core/super-input.js +43 -36
- package/dev/core/super-input.js.map +1 -1
- package/dev/core/super-openable.d.ts +1 -1
- package/dev/core/super-openable.d.ts.map +1 -1
- package/dev/core/super-openable.js +2 -2
- package/dev/core/super-openable.js.map +1 -1
- package/dev/details.d.ts +1 -0
- package/dev/details.d.ts.map +1 -1
- package/dev/details.js +1 -0
- package/dev/details.js.map +1 -1
- package/dev/dialog.d.ts +1 -0
- package/dev/dialog.d.ts.map +1 -1
- package/dev/dialog.js +1 -0
- package/dev/dialog.js.map +1 -1
- package/dev/divider.d.ts +1 -0
- package/dev/divider.d.ts.map +1 -1
- package/dev/divider.js +1 -0
- package/dev/divider.js.map +1 -1
- package/dev/dragbox.d.ts +1 -0
- package/dev/dragbox.d.ts.map +1 -1
- package/dev/dragbox.js +1 -0
- package/dev/dragbox.js.map +1 -1
- package/dev/flex.d.ts +1 -0
- package/dev/flex.d.ts.map +1 -1
- package/dev/flex.js +1 -0
- package/dev/flex.js.map +1 -1
- package/dev/form.d.ts +1 -0
- package/dev/form.d.ts.map +1 -1
- package/dev/form.js +1 -0
- package/dev/form.js.map +1 -1
- package/dev/grid.d.ts +1 -0
- package/dev/grid.d.ts.map +1 -1
- package/dev/grid.js +1 -0
- package/dev/grid.js.map +1 -1
- package/dev/heading.d.ts +9 -0
- package/dev/heading.d.ts.map +1 -0
- package/dev/heading.js +5 -0
- package/dev/heading.js.map +1 -0
- package/dev/index.d.ts +2 -0
- package/dev/index.d.ts.map +1 -1
- package/dev/index.js +2 -0
- package/dev/index.js.map +1 -1
- package/dev/layout.d.ts.map +1 -1
- package/dev/progress.d.ts.map +1 -1
- package/dev/router.d.ts.map +1 -1
- package/dev/split.d.ts +1 -1
- package/dev/split.d.ts.map +1 -1
- package/dev/typewriter.d.ts +1 -0
- package/dev/typewriter.d.ts.map +1 -1
- package/dev/typewriter.js +1 -0
- package/dev/typewriter.js.map +1 -1
- package/dialog.d.ts +1 -0
- package/dialog.d.ts.map +1 -1
- package/dialog.js +1 -5
- package/dialog.js.map +1 -1
- package/divider.d.ts +1 -0
- package/divider.d.ts.map +1 -1
- package/divider.js +1 -5
- package/divider.js.map +1 -1
- package/dragbox.d.ts +1 -0
- package/dragbox.d.ts.map +1 -1
- package/dragbox.js +1 -5
- package/dragbox.js.map +1 -1
- package/flex.d.ts +1 -0
- package/flex.d.ts.map +1 -1
- package/flex.js +1 -5
- package/flex.js.map +1 -1
- package/form.d.ts +1 -0
- package/form.d.ts.map +1 -1
- package/form.js +1 -5
- package/form.js.map +1 -1
- package/grid.d.ts +1 -0
- package/grid.d.ts.map +1 -1
- package/grid.js +1 -5
- package/grid.js.map +1 -1
- package/heading.d.ts +9 -0
- package/heading.d.ts.map +1 -0
- package/heading.js +2 -0
- package/heading.js.map +1 -0
- package/index.d.ts +2 -0
- package/index.d.ts.map +1 -1
- package/index.js +1 -56
- package/index.js.map +1 -1
- package/input.js +1 -5
- package/input.js.map +1 -1
- package/layout.d.ts.map +1 -1
- package/layout.js +1 -5
- package/layout.js.map +1 -1
- package/link.js +1 -5
- package/link.js.map +1 -1
- package/package.json +11 -6
- package/progress.d.ts.map +1 -1
- package/progress.js +1 -5
- package/progress.js.map +1 -1
- package/range.js +1 -5
- package/range.js.map +1 -1
- package/rotate.js +1 -5
- package/rotate.js.map +1 -1
- package/router.d.ts.map +1 -1
- package/router.js +1 -5
- package/router.js.map +1 -1
- package/select.js +1 -5
- package/select.js.map +1 -1
- package/skeleton.js +1 -5
- package/skeleton.js.map +1 -1
- package/split.d.ts +1 -1
- package/split.d.ts.map +1 -1
- package/split.js +1 -5
- package/split.js.map +1 -1
- package/src/alert.ts +2 -0
- package/src/avatar.ts +2 -0
- package/src/badge.ts +13 -0
- package/src/button.ts +2 -0
- package/src/card.ts +2 -0
- package/src/carousel.ts +2 -0
- package/src/components/alert.ts +26 -29
- package/src/components/avatar.ts +28 -17
- package/src/components/badge.ts +107 -0
- package/src/components/breath.ts +38 -31
- package/src/components/button.ts +55 -46
- package/src/components/card.ts +26 -34
- package/src/components/carousel.ts +48 -38
- package/src/components/details.ts +27 -28
- package/src/components/dialog.ts +30 -26
- package/src/components/divider.ts +29 -17
- package/src/components/dragbox.ts +25 -19
- package/src/components/flex.ts +26 -11
- package/src/components/form.ts +7 -9
- package/src/components/grid.ts +31 -13
- package/src/components/heading.ts +105 -0
- package/src/components/input.ts +23 -22
- package/src/components/layout.ts +26 -31
- package/src/components/link.ts +15 -4
- package/src/components/progress.ts +51 -52
- package/src/components/range.ts +82 -94
- package/src/components/rotate.ts +12 -11
- package/src/components/router.ts +59 -48
- package/src/components/select.ts +59 -47
- package/src/components/skeleton.ts +13 -11
- package/src/components/split.ts +90 -49
- package/src/components/switch.ts +38 -37
- package/src/components/text.ts +14 -21
- package/src/components/time.ts +20 -14
- package/src/components/tooltip.ts +54 -29
- package/src/components/typewriter.ts +41 -47
- package/src/core/global-style.ts +33 -19
- package/src/core/super-anchor.ts +30 -26
- package/src/core/super-input.ts +54 -54
- package/src/core/super-openable.ts +7 -7
- package/src/details.ts +2 -0
- package/src/dialog.ts +2 -0
- package/src/divider.ts +2 -0
- package/src/dragbox.ts +2 -0
- package/src/flex.ts +2 -0
- package/src/form.ts +2 -0
- package/src/grid.ts +2 -0
- package/src/heading.ts +13 -0
- package/src/index.ts +2 -0
- package/src/layout.ts +1 -0
- package/src/progress.ts +1 -0
- package/src/router.ts +1 -0
- package/src/split.ts +1 -1
- package/src/typewriter.ts +2 -0
- package/switch.js +1 -5
- package/switch.js.map +1 -1
- package/text.js +1 -5
- package/text.js.map +1 -1
- package/time.js +1 -5
- package/time.js.map +1 -1
- package/tooltip.js +1 -5
- package/tooltip.js.map +1 -1
- package/typewriter.d.ts +1 -0
- package/typewriter.d.ts.map +1 -1
- package/typewriter.js +1 -5
- package/typewriter.js.map +1 -1
- package/vscode.html-custom-data.json +1 -1
- package/web-types.json +1 -1
package/components/flex.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"flex.js","sources":["../src/components/flex.ts"],"sourcesContent":null,"names":[
|
1
|
+
{"version":3,"file":"flex.js","sources":["../src/components/flex.ts"],"sourcesContent":null,"names":["Flex","GlobalStyle","constructor","this","vertical","render","html","attr","observedRecord","htmlSlot","htmlStyle","joinRules","gap","flexFlow","items","content","__decorate","property","attribute","prototype","type","Boolean","godown","styles","css","Flex$1"],"mappings":"qRAkBA,IAAMA,EAAN,MAAMA,aAAaC,EAAnB,WAAAC,uBA6BEC,KAAQC,UAAG,EAED,MAAAC,GACR,OAAOC,CAAI,oBAAoBC,EAAKJ,KAAKK,mBACvC,CACAC,IACAC,EACEC,EAAU,CACR,QAAS,CACPC,IAAKT,KAAKS,IACV,YAAaT,KAAKU,SAClB,iBAAkBV,KAAKC,UAAY,SACnC,cAAeD,KAAKW,MACpB,kBAAmBX,KAAKY,uBArClCC,EAAA,CADCC,EAAS,CAAEC,UAAW,eACPlB,EAAAmB,UAAA,gBAAA,GAMhBH,EAAA,CADCC,KACUjB,EAAAmB,UAAA,WAAA,GAMXH,EAAA,CADCC,KACcjB,EAAAmB,UAAA,eAAA,GAMfH,EAAA,CADCC,KACYjB,EAAAmB,UAAA,aAAA,GAMbH,EAAA,CADCC,EAAS,CAAEG,KAAMC,WACFrB,EAAAmB,UAAA,gBAAA,GA7BZnB,EAAIgB,EAAA,CAJTM,EARiB,QASjBC,EACCC,CAAG,mFAECxB,GAmDN,IAAAyB,EAAezB"}
|
package/components/form.d.ts
CHANGED
@@ -1,17 +1,16 @@
|
|
1
|
+
import { type TemplateResult } from "lit";
|
1
2
|
import { GlobalStyle } from "../core/global-style.js";
|
2
3
|
/**
|
3
4
|
* {@linkcode Form} Gets child element key-value object,
|
4
5
|
* which will be nested if the child element is the same as this element.
|
5
6
|
*
|
6
|
-
* @slot - Child elements.
|
7
|
-
*
|
8
7
|
* @category form
|
9
8
|
*/
|
10
9
|
declare class Form<T = object> extends GlobalStyle {
|
11
10
|
name: string;
|
12
11
|
get value(): T;
|
13
12
|
nameValue: () => [string, T];
|
14
|
-
protected render():
|
13
|
+
protected render(): TemplateResult<1>;
|
15
14
|
reset(): void;
|
16
15
|
namevalue(): [string, T];
|
17
16
|
static buildValue(elements: (Element & {
|
@@ -21,4 +20,5 @@ declare class Form<T = object> extends GlobalStyle {
|
|
21
20
|
})[]): Record<string, any>;
|
22
21
|
}
|
23
22
|
export default Form;
|
23
|
+
export { Form };
|
24
24
|
//# sourceMappingURL=form.d.ts.map
|
package/components/form.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../src/components/form.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../src/components/form.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAG/C,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAItD;;;;;GAKG;AACH,cAIM,IAAI,CAAC,CAAC,GAAG,MAAM,CAAE,SAAQ,WAAW;IAExC,IAAI,SAAM;IAEV,IAAI,KAAK,IAAI,CAAC,CAEb;IAED,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,CAAkB;IAE9C,SAAS,CAAC,MAAM,IAAI,cAAc,CAAC,CAAC,CAAC;IAIrC,KAAK,IAAI,IAAI;IAWb,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;AACpB,OAAO,EAAE,IAAI,EAAE,CAAC"}
|
package/components/form.js
CHANGED
@@ -1,78 +1,2 @@
|
|
1
|
-
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 } from 'lit';
|
6
|
-
import { property } from 'lit/decorators.js';
|
7
|
-
import { GlobalStyle } from '../core/global-style.js';
|
8
|
-
|
9
|
-
var Form_1;
|
10
|
-
const protoName = "form";
|
11
|
-
/**
|
12
|
-
* {@linkcode Form} Gets child element key-value object,
|
13
|
-
* which will be nested if the child element is the same as this element.
|
14
|
-
*
|
15
|
-
* @slot - Child elements.
|
16
|
-
*
|
17
|
-
* @category form
|
18
|
-
*/
|
19
|
-
let Form = Form_1 = class Form extends GlobalStyle {
|
20
|
-
constructor() {
|
21
|
-
super(...arguments);
|
22
|
-
this.name = "";
|
23
|
-
this.nameValue = this.namevalue;
|
24
|
-
}
|
25
|
-
get value() {
|
26
|
-
return Form_1.buildValue(this._slot.assignedElements());
|
27
|
-
}
|
28
|
-
render() {
|
29
|
-
return htmlSlot();
|
30
|
-
}
|
31
|
-
reset() {
|
32
|
-
this.deepQuerySelectorAll("*").forEach((el) => {
|
33
|
-
if (el.tagName === this.tagName) {
|
34
|
-
return;
|
35
|
-
}
|
36
|
-
if (el.reset) {
|
37
|
-
el.reset();
|
38
|
-
}
|
39
|
-
});
|
40
|
-
}
|
41
|
-
namevalue() {
|
42
|
-
return [this.name, this.value];
|
43
|
-
}
|
44
|
-
static buildValue(elements) {
|
45
|
-
const result = {};
|
46
|
-
for (const el of elements) {
|
47
|
-
if (el.tagName === "FORM") {
|
48
|
-
Object.assign(result, Object.fromEntries(new FormData(el).entries()));
|
49
|
-
}
|
50
|
-
else if (el.namevalue) {
|
51
|
-
const [name, value] = el.namevalue();
|
52
|
-
if (name) {
|
53
|
-
result[name] = value;
|
54
|
-
}
|
55
|
-
}
|
56
|
-
else if (el.name && el.value !== undefined) {
|
57
|
-
result[el.name] = el.value;
|
58
|
-
}
|
59
|
-
else if (el.shadowRoot) {
|
60
|
-
for (const slot of el.shadowRoot.querySelectorAll("slot")) {
|
61
|
-
Object.assign(result, this.buildValue(slot.assignedElements()));
|
62
|
-
}
|
63
|
-
}
|
64
|
-
}
|
65
|
-
return result;
|
66
|
-
}
|
67
|
-
};
|
68
|
-
__decorate([
|
69
|
-
property()
|
70
|
-
], Form.prototype, "name", void 0);
|
71
|
-
Form = Form_1 = __decorate([
|
72
|
-
godown(protoName),
|
73
|
-
styles(css `:host{display:block}`)
|
74
|
-
], Form);
|
75
|
-
var Form$1 = Form;
|
76
|
-
|
77
|
-
export { Form$1 as default };
|
1
|
+
import{__decorate as e}from"tslib";import{godown as t,styles as s,htmlSlot as o}from"@godown/element";import{css as a}from"lit";import{property as r}from"lit/decorators.js";import{GlobalStyle as l}from"../core/global-style.js";var i;let n=i=class Form extends l{constructor(){super(...arguments),this.name="",this.nameValue=this.namevalue}get value(){return i.buildValue(this._slot.assignedElements())}render(){return o()}reset(){this.deepQuerySelectorAll("*").forEach((e=>{e.tagName!==this.tagName&&e.reset&&e.reset()}))}namevalue(){return[this.name,this.value]}static buildValue(e){const t={};for(const s of e)if("FORM"===s.tagName)Object.assign(t,Object.fromEntries(new FormData(s).entries()));else if(s.namevalue){const[e,o]=s.namevalue();e&&(t[e]=o)}else if(s.name&&void 0!==s.value)t[s.name]=s.value;else if(s.shadowRoot)for(const e of s.shadowRoot.querySelectorAll("slot"))Object.assign(t,this.buildValue(e.assignedElements()));return t}};e([r()],n.prototype,"name",void 0),n=i=e([t("form"),s(a`:host{display:block}`)],n);var m=n;export{n as Form,m as default};
|
78
2
|
//# sourceMappingURL=form.js.map
|
package/components/form.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"form.js","sources":["../src/components/form.ts"],"sourcesContent":null,"names":[
|
1
|
+
{"version":3,"file":"form.js","sources":["../src/components/form.ts"],"sourcesContent":null,"names":["Form","Form_1","GlobalStyle","constructor","this","name","nameValue","namevalue","value","buildValue","_slot","assignedElements","render","htmlSlot","reset","deepQuerySelectorAll","forEach","el","tagName","elements","result","Object","assign","fromEntries","FormData","entries","undefined","shadowRoot","slot","querySelectorAll","__decorate","property","prototype","godown","styles","css","Form$1"],"mappings":"yOAkBA,IAAMA,EAAIC,EAAV,MAAMD,aAAyBE,EAA/B,WAAAC,uBAEEC,KAAIC,KAAG,GAMPD,KAAAE,UAA+BF,KAAKG,UAJpC,SAAIC,GACF,OAAOP,EAAKQ,WAAWL,KAAKM,MAAMC,oBAK1B,MAAAC,GACR,OAAOC,IAGT,KAAAC,GACEV,KAAKW,qBAA4D,KAAKC,SAASC,IACzEA,EAAGC,UAAYd,KAAKc,SAGpBD,EAAGH,OACLG,EAAGH,WAKT,SAAAP,GACE,MAAO,CAACH,KAAKC,KAAMD,KAAKI,OAG1B,iBAAOC,CACLU,GAMA,MAAMC,EAAS,CAAE,EACjB,IAAK,MAAMH,KAAME,EACf,GAAmB,SAAfF,EAAGC,QACLG,OAAOC,OAAOF,EAAQC,OAAOE,YAAY,IAAIC,SAASP,GAAuBQ,iBACxE,GAAIR,EAAGV,UAAW,CACvB,MAAOF,EAAMG,GAASS,EAAGV,YACrBF,IACFe,EAAOf,GAAQG,QAEZ,GAAIS,EAAGZ,WAAqBqB,IAAbT,EAAGT,MACvBY,EAAOH,EAAGZ,MAAQY,EAAGT,WAChB,GAAIS,EAAGU,WACZ,IAAK,MAAMC,KAAQX,EAAGU,WAAWE,iBAAiB,QAChDR,OAAOC,OAAOF,EAAQhB,KAAKK,WAAWmB,EAAKjB,qBAIjD,OAAOS,IAnDTU,EAAA,CADCC,KACQ/B,EAAAgC,UAAA,YAAA,GAFLhC,EAAIC,EAAA6B,EAAA,CAJTG,EARiB,QASjBC,EACCC,CAAG,yBAECnC,GAyDN,IAAAoC,EAAepC"}
|
package/components/grid.d.ts
CHANGED
@@ -1,7 +1,9 @@
|
|
1
|
+
import { type TemplateResult } from "lit";
|
1
2
|
import { GlobalStyle } from "../core/global-style.js";
|
2
3
|
/**
|
3
4
|
* {@linkcode Grid} provides gird layout.
|
4
5
|
*
|
6
|
+
* @slot - Grid items.
|
5
7
|
* @category layout
|
6
8
|
*/
|
7
9
|
declare class Grid extends GlobalStyle {
|
@@ -10,11 +12,15 @@ declare class Grid extends GlobalStyle {
|
|
10
12
|
*/
|
11
13
|
gap: string;
|
12
14
|
/**
|
13
|
-
* CSS property `grid-template-columns
|
15
|
+
* CSS property `grid-template-columns`.
|
16
|
+
*
|
17
|
+
* If columns is numerical, divide columns equally.
|
14
18
|
*/
|
15
19
|
columns: string | number;
|
16
20
|
/**
|
17
|
-
* CSS property `grid-template-rows
|
21
|
+
* CSS property `grid-template-rows`.
|
22
|
+
*
|
23
|
+
* If rows is numerical, divide rows equally.
|
18
24
|
*/
|
19
25
|
rows: string | number;
|
20
26
|
/**
|
@@ -25,7 +31,8 @@ declare class Grid extends GlobalStyle {
|
|
25
31
|
* CSS property `place-items` (`align-items justify-items`).
|
26
32
|
*/
|
27
33
|
items: string;
|
28
|
-
protected render():
|
34
|
+
protected render(): TemplateResult<1>;
|
29
35
|
}
|
30
36
|
export default Grid;
|
37
|
+
export { Grid };
|
31
38
|
//# sourceMappingURL=grid.d.ts.map
|
package/components/grid.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"grid.d.ts","sourceRoot":"","sources":["../src/components/grid.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"grid.d.ts","sourceRoot":"","sources":["../src/components/grid.ts"],"names":[],"mappings":"AACA,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAGrD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAItD;;;;;GAKG;AACH,cAIM,IAAK,SAAQ,WAAW;IAC5B;;OAEG;IAEH,GAAG,EAAE,MAAM,CAAC;IAEZ;;;;OAIG;IAEH,OAAO,EAAE,MAAM,GAAG,MAAM,CAAC;IAEzB;;;;OAIG;IAEH,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;IAEtB;;OAEG;IAEH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IAEH,KAAK,EAAE,MAAM,CAAC;IAEd,SAAS,CAAC,MAAM,IAAI,cAAc,CAAC,CAAC,CAAC;CAgBtC;AAED,eAAe,IAAI,CAAC;AACpB,OAAO,EAAE,IAAI,EAAE,CAAC"}
|
package/components/grid.js
CHANGED
@@ -1,56 +1,2 @@
|
|
1
|
-
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 { htmlStyle } from '@godown/element/directives/html-style.js';
|
6
|
-
import { joinRules } from '@godown/element/tools/css.js';
|
7
|
-
import { isNumerical } from '@godown/element/tools/lib.js';
|
8
|
-
import { css } from 'lit';
|
9
|
-
import { property } from 'lit/decorators.js';
|
10
|
-
import { GlobalStyle } from '../core/global-style.js';
|
11
|
-
|
12
|
-
const protoName = "grid";
|
13
|
-
/**
|
14
|
-
* {@linkcode Grid} provides gird layout.
|
15
|
-
*
|
16
|
-
* @category layout
|
17
|
-
*/
|
18
|
-
let Grid = class Grid extends GlobalStyle {
|
19
|
-
render() {
|
20
|
-
return [
|
21
|
-
htmlSlot(),
|
22
|
-
htmlStyle(joinRules({
|
23
|
-
":host": {
|
24
|
-
gap: this.gap,
|
25
|
-
"grid-template-columns": isNumerical(this.columns) ? `repeat(${this.columns},1fr)` : this.columns,
|
26
|
-
"grid-template-rows": isNumerical(this.rows) ? `repeat(${this.rows},1fr)` : this.rows,
|
27
|
-
"place-content": this.content,
|
28
|
-
"place-items": this.items,
|
29
|
-
},
|
30
|
-
})),
|
31
|
-
];
|
32
|
-
}
|
33
|
-
};
|
34
|
-
__decorate([
|
35
|
-
property()
|
36
|
-
], Grid.prototype, "gap", void 0);
|
37
|
-
__decorate([
|
38
|
-
property()
|
39
|
-
], Grid.prototype, "columns", void 0);
|
40
|
-
__decorate([
|
41
|
-
property()
|
42
|
-
], Grid.prototype, "rows", void 0);
|
43
|
-
__decorate([
|
44
|
-
property()
|
45
|
-
], Grid.prototype, "content", void 0);
|
46
|
-
__decorate([
|
47
|
-
property()
|
48
|
-
], Grid.prototype, "items", void 0);
|
49
|
-
Grid = __decorate([
|
50
|
-
godown(protoName),
|
51
|
-
styles(css `:host{display:grid}`)
|
52
|
-
], Grid);
|
53
|
-
var Grid$1 = Grid;
|
54
|
-
|
55
|
-
export { Grid$1 as default };
|
1
|
+
import{__decorate as t}from"tslib";import{godown as o,styles as r,attr as e,htmlSlot as s,htmlStyle as i,joinRules as p,isNumerical as d}from"@godown/element";import{css as l,html as m}from"lit";import{property as a}from"lit/decorators.js";import{GlobalStyle as n}from"../core/global-style.js";let c=class Grid extends n{render(){return m`<div part="root" ${e(this.observedRecord)}>${[s(),i(p({":host":{gap:this.gap,"grid-template-columns":d(this.columns)?`repeat(${this.columns},1fr)`:this.columns,"grid-template-rows":d(this.rows)?`repeat(${this.rows},1fr)`:this.rows,"place-content":this.content,"place-items":this.items}}))]}</div>`}};t([a()],c.prototype,"gap",void 0),t([a()],c.prototype,"columns",void 0),t([a()],c.prototype,"rows",void 0),t([a()],c.prototype,"content",void 0),t([a()],c.prototype,"items",void 0),c=t([o("grid"),r(l`:host,:host([contents]) [part=root]{display:grid}[part=root]{display:contents}`)],c);var h=c;export{c as Grid,h as default};
|
56
2
|
//# sourceMappingURL=grid.js.map
|
package/components/grid.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"grid.js","sources":["../src/components/grid.ts"],"sourcesContent":null,"names":[
|
1
|
+
{"version":3,"file":"grid.js","sources":["../src/components/grid.ts"],"sourcesContent":null,"names":["Grid","GlobalStyle","render","html","attr","this","observedRecord","htmlSlot","htmlStyle","joinRules","gap","isNumerical","columns","rows","content","items","__decorate","property","prototype","godown","styles","css","Grid$1"],"mappings":"sSAkBA,IAAMA,EAAN,MAAMA,aAAaC,EAmCP,MAAAC,GACR,OAAOC,CAAI,oBAAoBC,EAAKC,KAAKC,mBACrC,CACFC,IACAC,EACEC,EAAU,CACR,QAAS,CACPC,IAAKL,KAAKK,IACV,wBAAyBC,EAAYN,KAAKO,SAAW,UAAUP,KAAKO,eAAiBP,KAAKO,QAC1F,qBAAsBD,EAAYN,KAAKQ,MAAQ,UAAUR,KAAKQ,YAAcR,KAAKQ,KACjF,gBAAiBR,KAAKS,QACtB,cAAeT,KAAKU,qBAzC9BC,EAAA,CADCC,KACUjB,EAAAkB,UAAA,WAAA,GAQXF,EAAA,CADCC,KACuBjB,EAAAkB,UAAA,eAAA,GAQxBF,EAAA,CADCC,KACoBjB,EAAAkB,UAAA,YAAA,GAMrBF,EAAA,CADCC,KACcjB,EAAAkB,UAAA,eAAA,GAMfF,EAAA,CADCC,KACYjB,EAAAkB,UAAA,aAAA,GAjCTlB,EAAIgB,EAAA,CAJTG,EARiB,QASjBC,EACCC,CAAG,mFAECrB,GAuDN,IAAAsB,EAAetB"}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import { type TemplateResult } from "lit";
|
2
|
+
import { GlobalStyle } from "../core/global-style.js";
|
3
|
+
/**
|
4
|
+
* {@linkcode Heading} renders a heading.
|
5
|
+
*
|
6
|
+
* If the id is provided, the anchor will be displayed.
|
7
|
+
*
|
8
|
+
* @slot - Heading content.
|
9
|
+
* @category layout
|
10
|
+
*/
|
11
|
+
declare class Heading extends GlobalStyle {
|
12
|
+
/**
|
13
|
+
* The heading level.
|
14
|
+
*/
|
15
|
+
as: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
16
|
+
/**
|
17
|
+
* The anchor prefix.
|
18
|
+
*/
|
19
|
+
anchor: string;
|
20
|
+
/**
|
21
|
+
* The anchor side.
|
22
|
+
*/
|
23
|
+
side: "left" | "right";
|
24
|
+
protected render(): TemplateResult<1>;
|
25
|
+
protected wrapHeading(...children: any[]): TemplateResult<1>;
|
26
|
+
}
|
27
|
+
export default Heading;
|
28
|
+
export { Heading };
|
29
|
+
//# sourceMappingURL=heading.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"heading.d.ts","sourceRoot":"","sources":["../src/components/heading.ts"],"names":[],"mappings":"AACA,OAAO,EAAsB,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAG9D,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAItD;;;;;;;GAOG;AACH,cAIM,OAAQ,SAAQ,WAAW;IAC/B;;OAEG;IAEH,EAAE,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAQ;IAEnD;;OAEG;IAEH,MAAM,SAAO;IAEb;;OAEG;IAEH,IAAI,EAAE,MAAM,GAAG,OAAO,CAAU;IAEhC,SAAS,CAAC,MAAM,IAAI,cAAc,CAAC,CAAC,CAAC;IASrC,SAAS,CAAC,WAAW,CAAC,GAAG,QAAQ,EAAE,GAAG,EAAE,GAAG,cAAc,CAAC,CAAC,CAAC;CAgB7D;AAED,eAAe,OAAO,CAAC;AACvB,OAAO,EAAE,OAAO,EAAE,CAAC"}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import{__decorate as t}from"tslib";import{godown as r,styles as e,attr as i,htmlSlot as o}from"@godown/element";import{css as h,html as a,nothing as s}from"lit";import{property as n}from"lit/decorators.js";import{GlobalStyle as d}from"../core/global-style.js";let c=class Heading extends d{constructor(){super(...arguments),this.as="h1",this.anchor="#",this.side="left"}render(){return a`<a part="root" href="${this.id?"#"+this.id:s}" ${i(this.observedRecord)}>${this.wrapHeading(o(),this.id?a`<i part="anchor">${this.anchor}</i>`:"")}</a>`}wrapHeading(...t){switch(this.as){case"h2":return a`<h2>${t}</h2>`;case"h3":return a`<h3>${t}</h3>`;case"h4":return a`<h4>${t}</h4>`;case"h5":return a`<h5>${t}</h5>`;case"h6":return a`<h6>${t}</h6>`;default:return a`<h1>${t}</h1>`}}};t([n()],c.prototype,"as",void 0),t([n()],c.prototype,"anchor",void 0),t([n()],c.prototype,"side",void 0),c=t([r("heading"),e(h`:host{display:block;text-align:start}[part=anchor]{position:absolute;text-align:center;min-width:1.25em;right:100%}[side=left] [part=anchor]{right:100%}[side=right] [part=anchor]{left:100%}a{color:inherit}h1,h2,h3,h4,h5,h6{direction:ltr;font-size:revert;position:relative;width:-moz-fit-content;width:fit-content}`)],c);var p=c;export{c as Heading,p as default};
|
2
|
+
//# sourceMappingURL=heading.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"heading.js","sources":["../src/components/heading.ts"],"sourcesContent":null,"names":["Heading","GlobalStyle","constructor","this","as","anchor","side","render","html","id","nothing","attr","observedRecord","wrapHeading","htmlSlot","children","__decorate","property","prototype","godown","styles","css","Heading$1"],"mappings":"oQAoBA,IAAMA,EAAN,MAAMA,gBAAgBC,EAAtB,WAAAC,uBAKEC,KAAEC,GAA4C,KAM9CD,KAAME,OAAG,IAMTF,KAAIG,KAAqB,OAEf,MAAAC,GACR,OAAOC,CAAI,wBAAwBL,KAAKM,GAAK,IAAMN,KAAKM,GAAKC,MAAYC,EAAKR,KAAKS,mBAEjFT,KAAKU,YACHC,IACAX,KAAKM,GAAKD,CAAI,oBAAoBL,KAAKE,aAAe,UAMlD,WAAAQ,IAAeE,GACvB,OAAQZ,KAAKC,IACX,IAAK,KACH,OAAOI,CAAI,OAAOO,SACpB,IAAK,KACH,OAAOP,CAAI,OAAOO,SACpB,IAAK,KACH,OAAOP,CAAI,OAAOO,SACpB,IAAK,KACH,OAAOP,CAAI,OAAOO,SACpB,IAAK,KACH,OAAOP,CAAI,OAAOO,SACpB,QACE,OAAOP,CAAI,OAAOO,YAtCxBC,EAAA,CADCC,KACiDjB,EAAAkB,UAAA,UAAA,GAMlDF,EAAA,CADCC,KACWjB,EAAAkB,UAAA,cAAA,GAMZF,EAAA,CADCC,KAC8BjB,EAAAkB,UAAA,YAAA,GAjB3BlB,EAAOgB,EAAA,CAJZG,EAViB,WAWjBC,EACCC,CAAG,8TAECrB,GAgDN,IAAAsB,EAAetB"}
|
package/components/input.d.ts
CHANGED
@@ -1,7 +1,10 @@
|
|
1
|
+
import { type TemplateResult } from "lit";
|
1
2
|
import SuperInput from "../core/super-input.js";
|
2
3
|
/**
|
3
|
-
* {@linkcode Input}
|
4
|
+
* {@linkcode Input} renders a text input.
|
4
5
|
*
|
6
|
+
* @fires input - Fires when the input value changes.
|
7
|
+
* @fires change - Fires when the input value changes.
|
5
8
|
* @category input
|
6
9
|
*/
|
7
10
|
declare class Input extends SuperInput {
|
@@ -11,9 +14,10 @@ declare class Input extends SuperInput {
|
|
11
14
|
* If outline, the outline is always present.
|
12
15
|
*/
|
13
16
|
variant: "default" | "outline";
|
14
|
-
_input: HTMLInputElement;
|
15
|
-
protected render():
|
17
|
+
protected _input: HTMLInputElement;
|
18
|
+
protected render(): TemplateResult<1>;
|
16
19
|
reset(): void;
|
17
20
|
}
|
18
21
|
export default Input;
|
22
|
+
export { Input };
|
19
23
|
//# sourceMappingURL=input.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../src/components/input.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../src/components/input.ts"],"names":[],"mappings":"AACA,OAAO,EAAsB,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAI9D,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAIhD;;;;;;GAMG;AACH,cAIM,KAAM,SAAQ,UAAU;IAC5B,IAAI,EAAE,MAAM,GAAG,QAAQ,GAAG,KAAK,GAAG,KAAK,GAAG,OAAO,GAAG,UAAU,CAAU;IAExE,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IAEH,OAAO,EAAE,SAAS,GAAG,SAAS,CAAa;IAG3C,SAAS,CAAC,MAAM,EAAE,gBAAgB,CAAC;IAEnC,SAAS,CAAC,MAAM,IAAI,cAAc,CAAC,CAAC,CAAC;IAQrC,KAAK,IAAI,IAAI;CAId;AAED,eAAe,KAAK,CAAC;AACrB,OAAO,EAAE,KAAK,EAAE,CAAC"}
|
package/components/input.js
CHANGED
@@ -1,51 +1,2 @@
|
|
1
|
-
import {
|
2
|
-
import { godown } from '@godown/element/decorators/godown.js';
|
3
|
-
import { part } from '@godown/element/decorators/part.js';
|
4
|
-
import { styles } from '@godown/element/decorators/styles.js';
|
5
|
-
import { classList } from '@godown/element/directives/class-list.js';
|
6
|
-
import { css, html, nothing } from 'lit';
|
7
|
-
import { property } from 'lit/decorators.js';
|
8
|
-
import { cssGlobalVars } from '../core/global-style.js';
|
9
|
-
import SuperInput from '../core/super-input.js';
|
10
|
-
|
11
|
-
const protoName = "input";
|
12
|
-
/**
|
13
|
-
* {@linkcode Input} used for text input.
|
14
|
-
*
|
15
|
-
* @category input
|
16
|
-
*/
|
17
|
-
let Input = class Input extends SuperInput {
|
18
|
-
constructor() {
|
19
|
-
super(...arguments);
|
20
|
-
this.type = "text";
|
21
|
-
/**
|
22
|
-
* If outline, the outline is always present.
|
23
|
-
*/
|
24
|
-
this.variant = "default";
|
25
|
-
}
|
26
|
-
render() {
|
27
|
-
return html `<div part="root" class="${classList("input-field", this.variant)}">${[
|
28
|
-
this._renderPrefix(),
|
29
|
-
html `<input part="input" type="${this.type}" id="${this.makeId}" .value="${this.value}" placeholder="${this.placeholder || nothing}" ?autofocus="${this.autofocus}" autocapitalize="${this.autocapitalize || nothing}" autocomplete="${this.autocomplete || nothing}" ?disabled="${this.disabled}" @input="${this._handleInput}">`,
|
30
|
-
this._renderSuffix(),
|
31
|
-
]}</div>`;
|
32
|
-
}
|
33
|
-
reset() {
|
34
|
-
this._input.value = this.default;
|
35
|
-
this.value = this.default;
|
36
|
-
}
|
37
|
-
};
|
38
|
-
__decorate([
|
39
|
-
property()
|
40
|
-
], Input.prototype, "variant", void 0);
|
41
|
-
__decorate([
|
42
|
-
part("input")
|
43
|
-
], Input.prototype, "_input", void 0);
|
44
|
-
Input = __decorate([
|
45
|
-
godown(protoName),
|
46
|
-
styles(css `:host{width:var(${cssGlobalVars.input}-width);height:var(${cssGlobalVars.input}-height);color:var(${cssGlobalVars.foreground});background:var(${cssGlobalVars.input}-background);border-radius:var(${cssGlobalVars.input}-radius);display:block}`)
|
47
|
-
], Input);
|
48
|
-
var Input$1 = Input;
|
49
|
-
|
50
|
-
export { Input$1 as default };
|
1
|
+
import{__decorate as t}from"tslib";import{part as i,godown as e,styles as r,attr as o,classList as a}from"@godown/element";import{css as s,html as u,nothing as p}from"lit";import{property as d}from"lit/decorators.js";import{cssGlobalVars as l}from"../core/global-style.js";import n from"../core/super-input.js";let h=class Input extends n{constructor(){super(...arguments),this.type="text",this.variant="default"}render(){return u`<div part="root" ${o(this.observedRecord)} class="${a("input-field",this.variant)}">${[this._renderPrefix(),u`<input part="input" type="${this.type}" id="${this.makeId}" .value="${this.value}" placeholder="${this.placeholder||p}" ?autofocus="${this.autofocus}" autocapitalize="${this.autocapitalize||p}" autocomplete="${this.autocomplete||p}" ?disabled="${this.disabled}" @input="${this._handleInput}">`,this._renderSuffix()]}</div>`}reset(){this._input.value=this.default,this.value=this.default}};t([d()],h.prototype,"variant",void 0),t([i("input")],h.prototype,"_input",void 0),h=t([e("input"),r(s`:host{width:var(${l.input}-width);height:var(${l.input}-height);color:var(${l.foreground});background:var(${l.input}-background);border-radius:var(${l.input}-radius);display:block}`)],h);var c=h;export{h as Input,c as default};
|
51
2
|
//# sourceMappingURL=input.js.map
|
package/components/input.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"input.js","sources":["../src/components/input.ts"],"sourcesContent":null,"names":[
|
1
|
+
{"version":3,"file":"input.js","sources":["../src/components/input.ts"],"sourcesContent":null,"names":["Input","SuperInput","constructor","this","type","variant","render","html","attr","observedRecord","classList","_renderPrefix","makeId","value","placeholder","nothing","autofocus","autocapitalize","autocomplete","disabled","_handleInput","_renderSuffix","reset","_input","default","__decorate","property","prototype","part","godown","styles","css","cssGlobalVars","input","foreground","Input$1"],"mappings":"uTAoBA,IAAMA,EAAN,MAAMA,cAAcC,EAApB,WAAAC,uBACEC,KAAIC,KAA6D,OAQjED,KAAOE,QAA0B,UAKvB,MAAAC,GACR,OAAOC,CAAI,oBAAoBC,EAAKL,KAAKM,0BAA0BC,EAAU,cAAeP,KAAKE,aAC7F,CACFF,KAAKQ,gBACLJ,CAAI,6BAEQJ,KAAKC,aACPD,KAAKS,mBACDT,KAAKU,uBACAV,KAAKW,aAAeC,kBACrBZ,KAAKa,8BACDb,KAAKc,gBAAkBF,oBACzBZ,KAAKe,cAAgBH,iBACxBZ,KAAKgB,qBACRhB,KAAKiB,iBAEnBjB,KAAKkB,yBAKT,KAAAC,GACEnB,KAAKoB,OAAOV,MAAQV,KAAKqB,QACzBrB,KAAKU,MAAQV,KAAKqB,UA5BpBC,EAAA,CADCC,KACyC1B,EAAA2B,UAAA,eAAA,GAGhCF,EAAA,CADTG,EAAK,UAC4B5B,EAAA2B,UAAA,cAAA,GAZ9B3B,EAAKyB,EAAA,CAJVI,EATiB,SAUjBC,EACCC,CAAG,mBAAmBC,EAAcC,2BAA2BD,EAAcC,2BAA2BD,EAAcE,8BAA8BF,EAAcC,uCAAuCD,EAAcC,iCAEnNjC,GAyCN,IAAAmC,EAAenC"}
|
package/components/layout.d.ts
CHANGED
@@ -1,29 +1,28 @@
|
|
1
|
+
import { type TemplateResult } from "lit";
|
1
2
|
import { GlobalStyle } from "../core/global-style.js";
|
2
3
|
/**
|
3
|
-
* {@linkcode
|
4
|
+
* {@linkcode Layout} renders slot and optional top header, bottom footer.
|
4
5
|
*
|
5
6
|
* @slot - The main content of the layout.
|
6
|
-
*
|
7
7
|
* @slot header - The header of the layout.
|
8
|
-
*
|
9
8
|
* @slot footer - The footer of the layout.
|
10
|
-
*
|
11
9
|
* @category layout
|
12
10
|
*/
|
13
|
-
declare class
|
11
|
+
declare class Layout extends GlobalStyle {
|
14
12
|
/**
|
15
|
-
* If true,
|
13
|
+
* If true, remove the header slot.
|
16
14
|
*/
|
17
15
|
noHeader: boolean;
|
18
16
|
/**
|
19
|
-
* If true,
|
17
|
+
* If true, remove the footer slot.
|
20
18
|
*/
|
21
19
|
noFooter: boolean;
|
22
20
|
/**
|
23
21
|
* If true, header will sticky.
|
24
22
|
*/
|
25
23
|
sticky: boolean;
|
26
|
-
protected render():
|
24
|
+
protected render(): TemplateResult<1>;
|
27
25
|
}
|
28
|
-
export default
|
26
|
+
export default Layout;
|
27
|
+
export { Layout };
|
29
28
|
//# sourceMappingURL=layout.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../src/components/layout.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../src/components/layout.ts"],"names":[],"mappings":"AACA,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAGrD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAItD;;;;;;;GAOG;AACH,cAIM,MAAO,SAAQ,WAAW;IAC9B;;OAEG;IAEH,QAAQ,UAAS;IAEjB;;OAEG;IAEH,QAAQ,UAAS;IAEjB;;OAEG;IAEH,MAAM,UAAS;IAEf,SAAS,CAAC,MAAM,IAAI,cAAc,CAAC,CAAC,CAAC;CAGtC;AAED,eAAe,MAAM,CAAC;AACtB,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
package/components/layout.js
CHANGED
@@ -1,47 +1,2 @@
|
|
1
|
-
import {
|
2
|
-
import { godown } from '@godown/element/decorators/godown.js';
|
3
|
-
import { styles } from '@godown/element/decorators/styles.js';
|
4
|
-
import { classList } from '@godown/element/directives/class-list.js';
|
5
|
-
import { htmlSlot } from '@godown/element/directives/html-slot.js';
|
6
|
-
import { css, html } from 'lit';
|
7
|
-
import { property } from 'lit/decorators.js';
|
8
|
-
import { GlobalStyle } from '../core/global-style.js';
|
9
|
-
|
10
|
-
const protoName = "layout";
|
11
|
-
/**
|
12
|
-
* {@linkcode NavLayout} renders slot and optional top header, bottom footer.
|
13
|
-
*
|
14
|
-
* @slot - The main content of the layout.
|
15
|
-
*
|
16
|
-
* @slot header - The header of the layout.
|
17
|
-
*
|
18
|
-
* @slot footer - The footer of the layout.
|
19
|
-
*
|
20
|
-
* @category layout
|
21
|
-
*/
|
22
|
-
let NavLayout = class NavLayout extends GlobalStyle {
|
23
|
-
render() {
|
24
|
-
return html `${!this.noHeader
|
25
|
-
? html `<header part="header" class="${classList({ sticky: this.sticky })}">${htmlSlot("header")}</header>`
|
26
|
-
: ""}<main part="main">${htmlSlot()}</main>${!this.noFooter
|
27
|
-
? html `<footer part="footer">${htmlSlot("footer")}</footer>`
|
28
|
-
: ""}`;
|
29
|
-
}
|
30
|
-
};
|
31
|
-
__decorate([
|
32
|
-
property({ type: Boolean })
|
33
|
-
], NavLayout.prototype, "noHeader", void 0);
|
34
|
-
__decorate([
|
35
|
-
property({ type: Boolean })
|
36
|
-
], NavLayout.prototype, "noFooter", void 0);
|
37
|
-
__decorate([
|
38
|
-
property({ type: Boolean })
|
39
|
-
], NavLayout.prototype, "sticky", void 0);
|
40
|
-
NavLayout = __decorate([
|
41
|
-
godown(protoName),
|
42
|
-
styles(css `:host{min-height:100%;display:flex;flex-direction:column}.sticky{position:sticky;top:0;z-index:1}[part=main]{position:relative;flex:1;width:100%}footer,header,main{width:100%}`)
|
43
|
-
], NavLayout);
|
44
|
-
var Layout = NavLayout;
|
45
|
-
|
46
|
-
export { Layout as default };
|
1
|
+
import{__decorate as o}from"tslib";import{godown as t,styles as e,attr as r,htmlSlot as i}from"@godown/element";import{css as a,html as n}from"lit";import{property as s}from"lit/decorators.js";import{GlobalStyle as p}from"../core/global-style.js";let d=class Layout extends p{constructor(){super(...arguments),this.noHeader=!1,this.noFooter=!1,this.sticky=!1}render(){return n`<div part="root" ${r(this.observedRecord)}>${this.noHeader?"":n`<header part="header">${i("header")}</header>`}<main part="main">${i()}</main>${this.noFooter?"":n`<footer part="footer">${i("footer")}</footer>`}</div>`}};o([s({type:Boolean})],d.prototype,"noHeader",void 0),o([s({type:Boolean})],d.prototype,"noFooter",void 0),o([s({type:Boolean})],d.prototype,"sticky",void 0),d=o([t("layout"),e(a`:host,:host([contents]) [part=root]{min-height:100%;display:flex;flex-direction:column}[part=root]{display:contents}[sticky] header{position:sticky;top:0;z-index:1}[part=main]{position:relative;flex:1;width:100%}footer,header,main{width:100%}`)],d);var l=d;export{d as Layout,l as default};
|
47
2
|
//# sourceMappingURL=layout.js.map
|
package/components/layout.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"layout.js","sources":["../src/components/layout.ts"],"sourcesContent":null,"names":[
|
1
|
+
{"version":3,"file":"layout.js","sources":["../src/components/layout.ts"],"sourcesContent":null,"names":["Layout","GlobalStyle","constructor","this","noHeader","noFooter","sticky","render","html","attr","observedRecord","htmlSlot","__decorate","property","type","Boolean","prototype","godown","styles","css","Layout$1"],"mappings":"uPAoBA,IAAMA,EAAN,MAAMA,eAAeC,EAArB,WAAAC,uBAKEC,KAAQC,UAAG,EAMXD,KAAQE,UAAG,EAMXF,KAAMG,QAAG,EAEC,MAAAC,GACR,OAAOC,CAAI,oBAAoBC,EAAKN,KAAKO,mBACpCP,KAAKC,SAAwE,GAA7DI,CAAI,yBAAyBG,EAAS,yCACrCA,aACjBR,KAAKE,SAAwE,GAA7DG,CAAI,yBAAyBG,EAAS,+BAlB7DC,EAAA,CADCC,EAAS,CAAEC,KAAMC,WACFf,EAAAgB,UAAA,gBAAA,GAMhBJ,EAAA,CADCC,EAAS,CAAEC,KAAMC,WACFf,EAAAgB,UAAA,gBAAA,GAMhBJ,EAAA,CADCC,EAAS,CAAEC,KAAMC,WACJf,EAAAgB,UAAA,cAAA,GAjBVhB,EAAMY,EAAA,CAJXK,EAViB,UAWjBC,EACCC,CAAG,uPAECnB,GA4BN,IAAAoB,EAAepB"}
|
package/components/link.d.ts
CHANGED
@@ -11,10 +11,17 @@ declare class Link extends SuperAnchor {
|
|
11
11
|
/**
|
12
12
|
* If "push", call `history.pushState`.
|
13
13
|
*
|
14
|
-
* If "replace", call `history.replaceState
|
14
|
+
* If "replace", call `history.replaceState`.
|
15
|
+
*
|
16
|
+
* If "normal", behave like a normal anchor.
|
15
17
|
*/
|
16
18
|
type: "push" | "replace" | "normal";
|
19
|
+
/**
|
20
|
+
* Suppress the update of the {@linkcode Router}.
|
21
|
+
*/
|
22
|
+
suppress: boolean;
|
17
23
|
protected _handleClick(e: MouseEvent): void;
|
18
24
|
}
|
19
25
|
export default Link;
|
26
|
+
export { Link };
|
20
27
|
//# sourceMappingURL=link.d.ts.map
|
package/components/link.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../src/components/link.ts"],"names":[],"mappings":"AAGA,OAAO,WAAW,MAAM,yBAAyB,CAAC;AAKlD;;;;;;;GAOG;AACH,cACM,IAAK,SAAQ,WAAW;IAC5B
|
1
|
+
{"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../src/components/link.ts"],"names":[],"mappings":"AAGA,OAAO,WAAW,MAAM,yBAAyB,CAAC;AAKlD;;;;;;;GAOG;AACH,cACM,IAAK,SAAQ,WAAW;IAC5B;;;;;;OAMG;IAEH,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,QAAQ,CAAY;IAE/C;;OAEG;IAEH,QAAQ,UAAS;IAEjB,SAAS,CAAC,YAAY,CAAC,CAAC,EAAE,UAAU,GAAG,IAAI;CAS5C;AAED,eAAe,IAAI,CAAC;AACpB,OAAO,EAAE,IAAI,EAAE,CAAC"}
|
package/components/link.js
CHANGED
@@ -1,43 +1,2 @@
|
|
1
|
-
import {
|
2
|
-
import { godown } from '@godown/element/decorators/godown.js';
|
3
|
-
import { property } from 'lit/decorators.js';
|
4
|
-
import SuperAnchor from '../core/super-anchor.js';
|
5
|
-
import Router from './router.js';
|
6
|
-
|
7
|
-
const protoName = "link";
|
8
|
-
/**
|
9
|
-
* {@linkcode Link} is used for link jumping.
|
10
|
-
*
|
11
|
-
* Set `type` to `"push" `or `"replace"`,
|
12
|
-
* will invoke the history api and trigger the {@linkcode Router.updateAll}.
|
13
|
-
*
|
14
|
-
* @category navigation
|
15
|
-
*/
|
16
|
-
let Link = class Link extends SuperAnchor {
|
17
|
-
constructor() {
|
18
|
-
super(...arguments);
|
19
|
-
/**
|
20
|
-
* If "push", call `history.pushState`.
|
21
|
-
*
|
22
|
-
* If "replace", call `history.replaceState`
|
23
|
-
*/
|
24
|
-
this.type = "normal";
|
25
|
-
}
|
26
|
-
_handleClick(e) {
|
27
|
-
if (this.type === "push" || this.type === "replace") {
|
28
|
-
e.preventDefault();
|
29
|
-
(history[`${this.type}State`])(null, "", this.href);
|
30
|
-
Router.updateAll();
|
31
|
-
}
|
32
|
-
}
|
33
|
-
};
|
34
|
-
__decorate([
|
35
|
-
property()
|
36
|
-
], Link.prototype, "type", void 0);
|
37
|
-
Link = __decorate([
|
38
|
-
godown(protoName)
|
39
|
-
], Link);
|
40
|
-
var Link$1 = Link;
|
41
|
-
|
42
|
-
export { Link$1 as default };
|
1
|
+
import{__decorate as t}from"tslib";import{godown as e}from"@godown/element";import{property as r}from"lit/decorators.js";import o from"../core/super-anchor.js";import s from"./router.js";let p=class Link extends o{constructor(){super(...arguments),this.type="normal",this.suppress=!1}_handleClick(t){"push"!==this.type&&"replace"!==this.type||(t.preventDefault(),history[`${this.type}State`](null,"",this.href),this.suppress||s.updateAll())}};t([r()],p.prototype,"type",void 0),t([r({type:Boolean})],p.prototype,"suppress",void 0),p=t([e("link")],p);var i=p;export{p as Link,i as default};
|
43
2
|
//# sourceMappingURL=link.js.map
|
package/components/link.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"link.js","sources":["../src/components/link.ts"],"sourcesContent":null,"names":[
|
1
|
+
{"version":3,"file":"link.js","sources":["../src/components/link.ts"],"sourcesContent":null,"names":["Link","SuperAnchor","constructor","this","type","suppress","_handleClick","e","preventDefault","history","href","Router","updateAll","__decorate","property","prototype","Boolean","godown","Link$1"],"mappings":"2LAiBA,IAAMA,EAAN,MAAMA,aAAaC,EAAnB,WAAAC,uBASEC,KAAIC,KAAkC,SAMtCD,KAAQE,UAAG,EAED,YAAAC,CAAaC,GACH,SAAdJ,KAAKC,MAAiC,YAAdD,KAAKC,OAC/BG,EAAEC,iBACDC,QAAQ,GAAGN,KAAKC,aAAc,KAAM,GAAID,KAAKO,MACzCP,KAAKE,UACRM,EAAOC,eAbbC,EAAA,CADCC,KAC6Cd,EAAAe,UAAA,YAAA,GAM9CF,EAAA,CADCC,EAAS,CAAEV,KAAMY,WACFhB,EAAAe,UAAA,gBAAA,GAfZf,EAAIa,EAAA,CADTI,EAViB,SAWZjB,GA4BN,IAAAkB,EAAelB"}
|