godown 3.0.0-canary.9 → 3.0.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 +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 +7 -2
- package/components/avatar.d.ts.map +1 -1
- package/components/avatar.js +1 -62
- 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 +6 -4
- package/components/breath.d.ts.map +1 -1
- package/components/breath.js +1 -80
- package/components/breath.js.map +1 -1
- package/components/button.d.ts +8 -5
- package/components/button.d.ts.map +1 -1
- package/components/button.js +1 -168
- package/components/button.js.map +1 -1
- package/components/card.d.ts +3 -1
- package/components/card.d.ts.map +1 -1
- package/components/card.js +1 -48
- package/components/card.js.map +1 -1
- package/components/carousel.d.ts +5 -1
- package/components/carousel.d.ts.map +1 -1
- package/components/carousel.js +1 -113
- package/components/carousel.js.map +1 -1
- package/components/details.d.ts +4 -3
- package/components/details.d.ts.map +1 -1
- package/components/details.js +1 -52
- package/components/details.js.map +1 -1
- package/components/dialog.d.ts +4 -2
- package/components/dialog.d.ts.map +1 -1
- package/components/dialog.js +1 -96
- 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 +4 -2
- 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 +3 -1
- package/components/flex.d.ts.map +1 -1
- package/components/flex.js +1 -62
- package/components/flex.js.map +1 -1
- package/components/form.d.ts +3 -1
- package/components/form.d.ts.map +1 -1
- package/components/form.js +1 -75
- package/components/form.js.map +1 -1
- package/components/grid.d.ts +3 -1
- package/components/grid.d.ts.map +1 -1
- package/components/grid.js +1 -56
- 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 +5 -1
- 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 +6 -4
- package/components/layout.d.ts.map +1 -1
- package/components/layout.js +1 -58
- package/components/layout.js.map +1 -1
- package/components/link.d.ts +5 -0
- package/components/link.d.ts.map +1 -1
- package/components/link.js +1 -44
- package/components/link.js.map +1 -1
- package/components/progress.d.ts +3 -1
- package/components/progress.d.ts.map +1 -1
- package/components/progress.js +1 -58
- package/components/progress.js.map +1 -1
- package/components/range.d.ts +10 -4
- package/components/range.d.ts.map +1 -1
- package/components/range.js +1 -266
- package/components/range.js.map +1 -1
- package/components/rotate.d.ts +3 -1
- 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 +27 -34
- 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 +7 -2
- package/components/select.d.ts.map +1 -1
- package/components/select.js +1 -211
- 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 +8 -2
- package/components/split.d.ts.map +1 -1
- package/components/split.js +1 -153
- package/components/split.js.map +1 -1
- package/components/switch.d.ts +5 -2
- 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 +4 -2
- package/components/time.d.ts.map +1 -1
- package/components/time.js +1 -77
- package/components/time.js.map +1 -1
- package/components/tooltip.d.ts +4 -2
- package/components/tooltip.d.ts.map +1 -1
- package/components/tooltip.js +1 -80
- package/components/tooltip.js.map +1 -1
- package/components/typewriter.d.ts +6 -12
- 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 -52
- 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 +4 -3
- 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 +87 -77
- package/dev/components/alert.js.map +1 -1
- package/dev/components/avatar.d.ts +7 -2
- package/dev/components/avatar.d.ts.map +1 -1
- package/dev/components/avatar.js +60 -32
- 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 +114 -0
- package/dev/components/badge.js.map +1 -0
- package/dev/components/breath.d.ts +6 -4
- package/dev/components/breath.d.ts.map +1 -1
- package/dev/components/breath.js +40 -31
- package/dev/components/breath.js.map +1 -1
- package/dev/components/button.d.ts +8 -5
- package/dev/components/button.d.ts.map +1 -1
- package/dev/components/button.js +38 -21
- package/dev/components/button.js.map +1 -1
- package/dev/components/card.d.ts +3 -1
- package/dev/components/card.d.ts.map +1 -1
- package/dev/components/card.js +43 -41
- package/dev/components/card.js.map +1 -1
- package/dev/components/carousel.d.ts +5 -1
- package/dev/components/carousel.d.ts.map +1 -1
- package/dev/components/carousel.js +81 -55
- package/dev/components/carousel.js.map +1 -1
- package/dev/components/details.d.ts +4 -3
- package/dev/components/details.d.ts.map +1 -1
- package/dev/components/details.js +76 -70
- package/dev/components/details.js.map +1 -1
- package/dev/components/dialog.d.ts +4 -2
- package/dev/components/dialog.d.ts.map +1 -1
- package/dev/components/dialog.js +65 -60
- 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 +27 -10
- package/dev/components/divider.js.map +1 -1
- package/dev/components/dragbox.d.ts +4 -2
- package/dev/components/dragbox.d.ts.map +1 -1
- package/dev/components/dragbox.js +22 -13
- package/dev/components/dragbox.js.map +1 -1
- package/dev/components/flex.d.ts +3 -1
- package/dev/components/flex.d.ts.map +1 -1
- package/dev/components/flex.js +22 -9
- package/dev/components/flex.js.map +1 -1
- package/dev/components/form.d.ts +3 -1
- package/dev/components/form.d.ts.map +1 -1
- package/dev/components/form.js +6 -7
- package/dev/components/form.js.map +1 -1
- package/dev/components/grid.d.ts +3 -1
- package/dev/components/grid.d.ts.map +1 -1
- package/dev/components/grid.js +22 -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 +125 -0
- package/dev/components/heading.js.map +1 -0
- package/dev/components/input.d.ts +5 -1
- package/dev/components/input.d.ts.map +1 -1
- package/dev/components/input.js +36 -28
- package/dev/components/input.js.map +1 -1
- package/dev/components/layout.d.ts +6 -4
- package/dev/components/layout.d.ts.map +1 -1
- package/dev/components/layout.js +53 -39
- package/dev/components/layout.js.map +1 -1
- package/dev/components/link.d.ts +5 -0
- package/dev/components/link.d.ts.map +1 -1
- package/dev/components/link.js +13 -3
- package/dev/components/link.js.map +1 -1
- package/dev/components/progress.d.ts +3 -1
- package/dev/components/progress.d.ts.map +1 -1
- package/dev/components/progress.js +20 -8
- package/dev/components/progress.js.map +1 -1
- package/dev/components/range.d.ts +10 -4
- package/dev/components/range.d.ts.map +1 -1
- package/dev/components/range.js +69 -64
- package/dev/components/range.js.map +1 -1
- package/dev/components/rotate.d.ts +3 -1
- package/dev/components/rotate.d.ts.map +1 -1
- package/dev/components/rotate.js +14 -9
- package/dev/components/rotate.js.map +1 -1
- package/dev/components/router.d.ts +27 -34
- package/dev/components/router.d.ts.map +1 -1
- package/dev/components/router.js +25 -38
- package/dev/components/router.js.map +1 -1
- package/dev/components/select.d.ts +7 -2
- package/dev/components/select.d.ts.map +1 -1
- package/dev/components/select.js +79 -58
- 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 +67 -63
- package/dev/components/skeleton.js.map +1 -1
- package/dev/components/split.d.ts +8 -2
- package/dev/components/split.d.ts.map +1 -1
- package/dev/components/split.js +67 -51
- package/dev/components/split.js.map +1 -1
- package/dev/components/switch.d.ts +5 -2
- package/dev/components/switch.d.ts.map +1 -1
- package/dev/components/switch.js +91 -85
- 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 +56 -53
- package/dev/components/text.js.map +1 -1
- package/dev/components/time.d.ts +4 -2
- package/dev/components/time.d.ts.map +1 -1
- package/dev/components/time.js +19 -6
- package/dev/components/time.js.map +1 -1
- package/dev/components/tooltip.d.ts +4 -2
- package/dev/components/tooltip.d.ts.map +1 -1
- package/dev/components/tooltip.js +45 -27
- package/dev/components/tooltip.js.map +1 -1
- package/dev/components/typewriter.d.ts +6 -12
- package/dev/components/typewriter.d.ts.map +1 -1
- package/dev/components/typewriter.js +48 -54
- 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 +19 -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 +15 -12
- package/dev/core/super-anchor.js.map +1 -1
- package/dev/core/super-input.d.ts +4 -3
- package/dev/core/super-input.d.ts.map +1 -1
- package/dev/core/super-input.js +64 -42
- 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 +1 -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 +13 -8
- 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 +92 -86
- package/src/components/avatar.ts +65 -39
- package/src/components/badge.ts +110 -0
- package/src/components/breath.ts +47 -38
- package/src/components/button.ts +38 -36
- package/src/components/card.ts +45 -46
- package/src/components/carousel.ts +91 -66
- package/src/components/details.ts +79 -75
- package/src/components/dialog.ts +74 -73
- package/src/components/divider.ts +28 -13
- package/src/components/dragbox.ts +30 -25
- package/src/components/flex.ts +35 -22
- package/src/components/form.ts +12 -15
- package/src/components/grid.ts +35 -23
- package/src/components/heading.ts +123 -0
- package/src/components/input.ts +43 -37
- package/src/components/layout.ts +52 -44
- package/src/components/link.ts +13 -4
- package/src/components/progress.ts +22 -10
- package/src/components/range.ts +107 -108
- package/src/components/rotate.ts +24 -18
- package/src/components/router.ts +64 -67
- package/src/components/select.ts +94 -78
- package/src/components/skeleton.ts +70 -68
- package/src/components/split.ts +81 -67
- package/src/components/switch.ts +97 -93
- package/src/components/text.ts +55 -58
- package/src/components/time.ts +26 -13
- package/src/components/tooltip.ts +44 -32
- package/src/components/typewriter.ts +54 -61
- package/src/core/global-style.ts +34 -21
- package/src/core/super-anchor.ts +17 -14
- package/src/core/super-input.ts +76 -63
- package/src/core/super-openable.ts +8 -14
- 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
@@ -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,EAAE,KAAK,cAAc,EAAsB,MAAM,KAAK,CAAC;AAG9D,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAItD;;;;;;;GAOG;AACH,cAqCM,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;IAmBrC,SAAS,CAAC,WAAW,CAAC,GAAG,QAAQ,EAAE,GAAG,EAAE,GAAG,cAAc,CAAC,CAAC,CAAC;CA4B7D;AAED,eAAe,OAAO,CAAC;AACvB,OAAO,EAAE,OAAO,EAAE,CAAC"}
|
@@ -0,0 +1,125 @@
|
|
1
|
+
import { __decorate } from "tslib";
|
2
|
+
import { attr, godown, htmlSlot, styles } from "@godown/element";
|
3
|
+
import { css, html, nothing } from "lit";
|
4
|
+
import { property } from "lit/decorators.js";
|
5
|
+
import { GlobalStyle } from "../core/global-style.js";
|
6
|
+
const protoName = "heading";
|
7
|
+
/**
|
8
|
+
* {@linkcode Heading} renders a heading.
|
9
|
+
*
|
10
|
+
* If the id is provided, the anchor will be displayed.
|
11
|
+
*
|
12
|
+
* @slot - Heading content.
|
13
|
+
* @category layout
|
14
|
+
*/
|
15
|
+
let Heading = class Heading extends GlobalStyle {
|
16
|
+
constructor() {
|
17
|
+
super(...arguments);
|
18
|
+
/**
|
19
|
+
* The heading level.
|
20
|
+
*/
|
21
|
+
this.as = "h1";
|
22
|
+
/**
|
23
|
+
* The anchor prefix.
|
24
|
+
*/
|
25
|
+
this.anchor = "#";
|
26
|
+
/**
|
27
|
+
* The anchor side.
|
28
|
+
*/
|
29
|
+
this.side = "left";
|
30
|
+
}
|
31
|
+
render() {
|
32
|
+
return html `
|
33
|
+
<a
|
34
|
+
part="root"
|
35
|
+
href="${this.id ? "#" + this.id : nothing}"
|
36
|
+
${attr(this.observedRecord)}
|
37
|
+
>
|
38
|
+
${this.wrapHeading(htmlSlot(), this.id
|
39
|
+
? html `
|
40
|
+
<i part="anchor">${this.anchor}</i>
|
41
|
+
`
|
42
|
+
: "")}
|
43
|
+
</a>
|
44
|
+
`;
|
45
|
+
}
|
46
|
+
wrapHeading(...children) {
|
47
|
+
switch (this.as) {
|
48
|
+
case "h2":
|
49
|
+
return html `
|
50
|
+
<h2>${children}</h2>
|
51
|
+
`;
|
52
|
+
case "h3":
|
53
|
+
return html `
|
54
|
+
<h3>${children}</h3>
|
55
|
+
`;
|
56
|
+
case "h4":
|
57
|
+
return html `
|
58
|
+
<h4>${children}</h4>
|
59
|
+
`;
|
60
|
+
case "h5":
|
61
|
+
return html `
|
62
|
+
<h5>${children}</h5>
|
63
|
+
`;
|
64
|
+
case "h6":
|
65
|
+
return html `
|
66
|
+
<h6>${children}</h6>
|
67
|
+
`;
|
68
|
+
default:
|
69
|
+
return html `
|
70
|
+
<h1>${children}</h1>
|
71
|
+
`;
|
72
|
+
}
|
73
|
+
}
|
74
|
+
};
|
75
|
+
__decorate([
|
76
|
+
property()
|
77
|
+
], Heading.prototype, "as", void 0);
|
78
|
+
__decorate([
|
79
|
+
property()
|
80
|
+
], Heading.prototype, "anchor", void 0);
|
81
|
+
__decorate([
|
82
|
+
property()
|
83
|
+
], Heading.prototype, "side", void 0);
|
84
|
+
Heading = __decorate([
|
85
|
+
godown(protoName),
|
86
|
+
styles(css `
|
87
|
+
:host {
|
88
|
+
display: block;
|
89
|
+
text-align: start;
|
90
|
+
}
|
91
|
+
|
92
|
+
[part="anchor"] {
|
93
|
+
position: absolute;
|
94
|
+
text-align: center;
|
95
|
+
min-width: 1.25em;
|
96
|
+
right: 100%;
|
97
|
+
}
|
98
|
+
|
99
|
+
[side="left"] [part="anchor"] {
|
100
|
+
right: 100%;
|
101
|
+
}
|
102
|
+
[side="right"] [part="anchor"] {
|
103
|
+
left: 100%;
|
104
|
+
}
|
105
|
+
|
106
|
+
a {
|
107
|
+
color: inherit;
|
108
|
+
}
|
109
|
+
|
110
|
+
h1,
|
111
|
+
h2,
|
112
|
+
h3,
|
113
|
+
h4,
|
114
|
+
h5,
|
115
|
+
h6 {
|
116
|
+
direction: ltr;
|
117
|
+
font-size: revert;
|
118
|
+
position: relative;
|
119
|
+
width: fit-content;
|
120
|
+
}
|
121
|
+
`)
|
122
|
+
], Heading);
|
123
|
+
export default Heading;
|
124
|
+
export { Heading };
|
125
|
+
//# sourceMappingURL=heading.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"heading.js","sourceRoot":"","sources":["../../src/components/heading.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EAAuB,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,MAAM,SAAS,GAAG,SAAS,CAAC;AAE5B;;;;;;;GAOG;AAsCH,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,WAAW;IAAjC;;QACE;;WAEG;QAEH,OAAE,GAA4C,IAAI,CAAC;QAEnD;;WAEG;QAEH,WAAM,GAAG,GAAG,CAAC;QAEb;;WAEG;QAEH,SAAI,GAAqB,MAAM,CAAC;IAiDlC,CAAC;IA/CW,MAAM;QACd,OAAO,IAAI,CAAA;;;gBAGC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,GAAG,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO;UACvC,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC;;UAEzB,IAAI,CAAC,WAAW,CAChB,QAAQ,EAAE,EACV,IAAI,CAAC,EAAE;YACL,CAAC,CAAC,IAAI,CAAA;mCACiB,IAAI,CAAC,MAAM;eAC/B;YACH,CAAC,CAAC,EAAE,CACP;;KAEJ,CAAC;IACJ,CAAC;IAES,WAAW,CAAC,GAAG,QAAe;QACtC,QAAQ,IAAI,CAAC,EAAE,EAAE,CAAC;YAChB,KAAK,IAAI;gBACP,OAAO,IAAI,CAAA;gBACH,QAAQ;SACf,CAAC;YACJ,KAAK,IAAI;gBACP,OAAO,IAAI,CAAA;gBACH,QAAQ;SACf,CAAC;YACJ,KAAK,IAAI;gBACP,OAAO,IAAI,CAAA;gBACH,QAAQ;SACf,CAAC;YACJ,KAAK,IAAI;gBACP,OAAO,IAAI,CAAA;gBACH,QAAQ;SACf,CAAC;YACJ,KAAK,IAAI;gBACP,OAAO,IAAI,CAAA;gBACH,QAAQ;SACf,CAAC;YACJ;gBACE,OAAO,IAAI,CAAA;gBACH,QAAQ;SACf,CAAC;QACN,CAAC;IACH,CAAC;CACF,CAAA;AA7DC;IADC,QAAQ,EAAE;mCACwC;AAMnD;IADC,QAAQ,EAAE;uCACE;AAMb;IADC,QAAQ,EAAE;qCACqB;AAjB5B,OAAO;IArCZ,MAAM,CAAC,SAAS,CAAC;IACjB,MAAM,CAAC,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmCV,CAAC;GACI,OAAO,CAkEZ;AAED,eAAe,OAAO,CAAC;AACvB,OAAO,EAAE,OAAO,EAAE,CAAC"}
|
@@ -1,7 +1,10 @@
|
|
1
|
+
import { type TemplateResult } from "lit";
|
1
2
|
import SuperInput from "../core/super-input.js";
|
2
3
|
/**
|
3
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 {
|
@@ -12,8 +15,9 @@ declare class Input extends SuperInput {
|
|
12
15
|
*/
|
13
16
|
variant: "default" | "outline";
|
14
17
|
protected _input: HTMLInputElement;
|
15
|
-
protected render():
|
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,EAAE,KAAK,cAAc,EAAsB,MAAM,KAAK,CAAC;AAI9D,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAIhD;;;;;;GAMG;AACH,cAWM,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;IA6BrC,KAAK,IAAI,IAAI;CAId;AAED,eAAe,KAAK,CAAC;AACrB,OAAO,EAAE,KAAK,EAAE,CAAC"}
|
package/dev/components/input.js
CHANGED
@@ -1,8 +1,5 @@
|
|
1
1
|
import { __decorate } from "tslib";
|
2
|
-
import { godown } from "@godown/element
|
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";
|
2
|
+
import { attr, classList, godown, part, styles } from "@godown/element";
|
6
3
|
import { css, html, nothing } from "lit";
|
7
4
|
import { property } from "lit/decorators.js";
|
8
5
|
import { cssGlobalVars } from "../core/global-style.js";
|
@@ -11,6 +8,8 @@ const protoName = "input";
|
|
11
8
|
/**
|
12
9
|
* {@linkcode Input} renders a text input.
|
13
10
|
*
|
11
|
+
* @fires input - Fires when the input value changes.
|
12
|
+
* @fires change - Fires when the input value changes.
|
14
13
|
* @category input
|
15
14
|
*/
|
16
15
|
let Input = class Input extends SuperInput {
|
@@ -23,24 +22,32 @@ let Input = class Input extends SuperInput {
|
|
23
22
|
this.variant = "default";
|
24
23
|
}
|
25
24
|
render() {
|
26
|
-
return html
|
27
|
-
|
25
|
+
return html `
|
26
|
+
<div
|
27
|
+
part="root"
|
28
|
+
${attr(this.observedRecord)}
|
29
|
+
class="${classList("input-field", this.variant)}"
|
30
|
+
>
|
31
|
+
${[
|
28
32
|
this._renderPrefix(),
|
29
|
-
html
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
33
|
+
html `
|
34
|
+
<input
|
35
|
+
part="input"
|
36
|
+
type="${this.type}"
|
37
|
+
.value="${this.value}"
|
38
|
+
?autofocus="${this.autofocus}"
|
39
|
+
?disabled="${this.disabled}"
|
40
|
+
autocapitalize="${this.autocapitalize || nothing}"
|
41
|
+
autocomplete="${this.autocomplete || nothing}"
|
42
|
+
placeholder="${this.placeholder || nothing}"
|
43
|
+
id="${this.makeId}"
|
44
|
+
@input="${this._handleInput}"
|
45
|
+
/>
|
46
|
+
`,
|
41
47
|
this._renderSuffix(),
|
42
48
|
]}
|
43
|
-
|
49
|
+
</div>
|
50
|
+
`;
|
44
51
|
}
|
45
52
|
reset() {
|
46
53
|
this._input.value = this.default;
|
@@ -56,15 +63,16 @@ __decorate([
|
|
56
63
|
Input = __decorate([
|
57
64
|
godown(protoName),
|
58
65
|
styles(css `
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
66
|
+
:host {
|
67
|
+
width: var(${cssGlobalVars.input}-width);
|
68
|
+
height: var(${cssGlobalVars.input}-height);
|
69
|
+
color: var(${cssGlobalVars.foreground});
|
70
|
+
background: var(${cssGlobalVars.input}-background);
|
71
|
+
border-radius: var(${cssGlobalVars.input}-radius);
|
72
|
+
display: block;
|
73
|
+
}
|
74
|
+
`)
|
68
75
|
], Input);
|
69
76
|
export default Input;
|
77
|
+
export { Input };
|
70
78
|
//# sourceMappingURL=input.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"input.js","sourceRoot":"","sources":["../../src/components/input.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"input.js","sourceRoot":"","sources":["../../src/components/input.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACxE,OAAO,EAAuB,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAEhD,MAAM,SAAS,GAAG,OAAO,CAAC;AAE1B;;;;;;GAMG;AAYH,IAAM,KAAK,GAAX,MAAM,KAAM,SAAQ,UAAU;IAA9B;;QACE,SAAI,GAA6D,MAAM,CAAC;QAIxE;;WAEG;QAEH,YAAO,GAA0B,SAAS,CAAC;IAsC7C,CAAC;IAjCW,MAAM;QACd,OAAO,IAAI,CAAA;;;UAGL,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC;iBAClB,SAAS,CAAC,aAAa,EAAE,IAAI,CAAC,OAAO,CAAC;;UAE7C;YACA,IAAI,CAAC,aAAa,EAAE;YACpB,IAAI,CAAA;;;sBAGQ,IAAI,CAAC,IAAI;wBACP,IAAI,CAAC,KAAK;4BACN,IAAI,CAAC,SAAS;2BACf,IAAI,CAAC,QAAQ;gCACR,IAAI,CAAC,cAAc,IAAI,OAAO;8BAChC,IAAI,CAAC,YAAY,IAAI,OAAO;6BAC7B,IAAI,CAAC,WAAW,IAAI,OAAO;oBACpC,IAAI,CAAC,MAAM;wBACP,IAAI,CAAC,YAAY;;WAE9B;YACD,IAAI,CAAC,aAAa,EAAE;SACrB;;KAEJ,CAAC;IACJ,CAAC;IAED,KAAK;QACH,IAAI,CAAC,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC;QACjC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC;IAC5B,CAAC;CACF,CAAA;AAtCC;IADC,QAAQ,EAAE;sCACgC;AAGjC;IADT,IAAI,CAAC,OAAO,CAAC;qCACqB;AAZ/B,KAAK;IAXV,MAAM,CAAC,SAAS,CAAC;IACjB,MAAM,CAAC,GAAG,CAAA;;iBAEM,aAAa,CAAC,KAAK;kBAClB,aAAa,CAAC,KAAK;iBACpB,aAAa,CAAC,UAAU;sBACnB,aAAa,CAAC,KAAK;yBAChB,aAAa,CAAC,KAAK;;;CAG3C,CAAC;GACI,KAAK,CA+CV;AAED,eAAe,KAAK,CAAC;AACrB,OAAO,EAAE,KAAK,EAAE,CAAC"}
|
@@ -1,13 +1,14 @@
|
|
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
|
* @slot header - The header of the layout.
|
7
8
|
* @slot footer - The footer of the layout.
|
8
9
|
* @category layout
|
9
10
|
*/
|
10
|
-
declare class
|
11
|
+
declare class Layout extends GlobalStyle {
|
11
12
|
/**
|
12
13
|
* If true, remove the header slot.
|
13
14
|
*/
|
@@ -20,7 +21,8 @@ declare class NavLayout extends GlobalStyle {
|
|
20
21
|
* If true, header will sticky.
|
21
22
|
*/
|
22
23
|
sticky: boolean;
|
23
|
-
protected render():
|
24
|
+
protected render(): TemplateResult<1>;
|
24
25
|
}
|
25
|
-
export default
|
26
|
+
export default Layout;
|
27
|
+
export { Layout };
|
26
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,EAAE,KAAK,cAAc,EAAa,MAAM,KAAK,CAAC;AAGrD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAItD;;;;;;;GAOG;AACH,cA+BM,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;CAoBtC;AAED,eAAe,MAAM,CAAC;AACtB,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
package/dev/components/layout.js
CHANGED
@@ -1,21 +1,18 @@
|
|
1
1
|
import { __decorate } from "tslib";
|
2
|
-
import { godown } from "@godown/element
|
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";
|
2
|
+
import { attr, godown, htmlSlot, styles } from "@godown/element";
|
6
3
|
import { css, html } from "lit";
|
7
4
|
import { property } from "lit/decorators.js";
|
8
5
|
import { GlobalStyle } from "../core/global-style.js";
|
9
6
|
const protoName = "layout";
|
10
7
|
/**
|
11
|
-
* {@linkcode
|
8
|
+
* {@linkcode Layout} renders slot and optional top header, bottom footer.
|
12
9
|
*
|
13
10
|
* @slot - The main content of the layout.
|
14
11
|
* @slot header - The header of the layout.
|
15
12
|
* @slot footer - The footer of the layout.
|
16
13
|
* @category layout
|
17
14
|
*/
|
18
|
-
let
|
15
|
+
let Layout = class Layout extends GlobalStyle {
|
19
16
|
constructor() {
|
20
17
|
super(...arguments);
|
21
18
|
/**
|
@@ -32,51 +29,68 @@ let NavLayout = class NavLayout extends GlobalStyle {
|
|
32
29
|
this.sticky = false;
|
33
30
|
}
|
34
31
|
render() {
|
35
|
-
return html
|
36
|
-
|
32
|
+
return html `
|
33
|
+
<div
|
34
|
+
part="root"
|
35
|
+
${attr(this.observedRecord)}
|
36
|
+
>
|
37
|
+
${!this.noHeader
|
38
|
+
? html `
|
39
|
+
<header part="header">${htmlSlot("header")}</header>
|
40
|
+
`
|
37
41
|
: ""}
|
38
|
-
|
39
|
-
|
40
|
-
? html
|
41
|
-
|
42
|
+
<main part="main">${htmlSlot()}</main>
|
43
|
+
${!this.noFooter
|
44
|
+
? html `
|
45
|
+
<footer part="footer">${htmlSlot("footer")}</footer>
|
46
|
+
`
|
47
|
+
: ""}
|
48
|
+
</div>
|
49
|
+
`;
|
42
50
|
}
|
43
51
|
};
|
44
52
|
__decorate([
|
45
53
|
property({ type: Boolean })
|
46
|
-
],
|
54
|
+
], Layout.prototype, "noHeader", void 0);
|
47
55
|
__decorate([
|
48
56
|
property({ type: Boolean })
|
49
|
-
],
|
57
|
+
], Layout.prototype, "noFooter", void 0);
|
50
58
|
__decorate([
|
51
59
|
property({ type: Boolean })
|
52
|
-
],
|
53
|
-
|
60
|
+
], Layout.prototype, "sticky", void 0);
|
61
|
+
Layout = __decorate([
|
54
62
|
godown(protoName),
|
55
63
|
styles(css `
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
64
|
+
:host,
|
65
|
+
:host([contents]) [part="root"] {
|
66
|
+
min-height: 100%;
|
67
|
+
display: flex;
|
68
|
+
flex-direction: column;
|
69
|
+
}
|
61
70
|
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
z-index: 1;
|
66
|
-
}
|
71
|
+
[part="root"] {
|
72
|
+
display: contents;
|
73
|
+
}
|
67
74
|
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
75
|
+
[sticky] header {
|
76
|
+
position: sticky;
|
77
|
+
top: 0;
|
78
|
+
z-index: 1;
|
79
|
+
}
|
73
80
|
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
81
|
+
[part="main"] {
|
82
|
+
position: relative;
|
83
|
+
flex: 1;
|
84
|
+
width: 100%;
|
85
|
+
}
|
86
|
+
|
87
|
+
header,
|
88
|
+
main,
|
89
|
+
footer {
|
90
|
+
width: 100%;
|
91
|
+
}
|
92
|
+
`)
|
93
|
+
], Layout);
|
94
|
+
export default Layout;
|
95
|
+
export { Layout };
|
82
96
|
//# sourceMappingURL=layout.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"layout.js","sourceRoot":"","sources":["../../src/components/layout.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"layout.js","sourceRoot":"","sources":["../../src/components/layout.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EAAuB,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,MAAM,SAAS,GAAG,QAAQ,CAAC;AAE3B;;;;;;;GAOG;AAgCH,IAAM,MAAM,GAAZ,MAAM,MAAO,SAAQ,WAAW;IAAhC;;QACE;;WAEG;QAEH,aAAQ,GAAG,KAAK,CAAC;QAEjB;;WAEG;QAEH,aAAQ,GAAG,KAAK,CAAC;QAEjB;;WAEG;QAEH,WAAM,GAAG,KAAK,CAAC;IAsBjB,CAAC;IApBW,MAAM;QACd,OAAO,IAAI,CAAA;;;UAGL,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC;;UAEzB,CAAC,IAAI,CAAC,QAAQ;YACd,CAAC,CAAC,IAAI,CAAA;sCACsB,QAAQ,CAAC,QAAQ,CAAC;aAC3C;YACH,CAAC,CAAC,EAAE;4BACc,QAAQ,EAAE;UAC5B,CAAC,IAAI,CAAC,QAAQ;YACd,CAAC,CAAC,IAAI,CAAA;sCACsB,QAAQ,CAAC,QAAQ,CAAC;aAC3C;YACH,CAAC,CAAC,EAAE;;KAET,CAAC;IACJ,CAAC;CACF,CAAA;AAlCC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;wCACX;AAMjB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;wCACX;AAMjB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;sCACb;AAjBX,MAAM;IA/BX,MAAM,CAAC,SAAS,CAAC;IACjB,MAAM,CAAC,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BV,CAAC;GACI,MAAM,CAuCX;AAED,eAAe,MAAM,CAAC;AACtB,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
package/dev/components/link.d.ts
CHANGED
@@ -16,7 +16,12 @@ declare class Link extends SuperAnchor {
|
|
16
16
|
* If "normal", behave like a normal anchor.
|
17
17
|
*/
|
18
18
|
type: "push" | "replace" | "normal";
|
19
|
+
/**
|
20
|
+
* Suppress the update of the {@linkcode Router}.
|
21
|
+
*/
|
22
|
+
suppress: boolean;
|
19
23
|
protected _handleClick(e: MouseEvent): void;
|
20
24
|
}
|
21
25
|
export default Link;
|
26
|
+
export { Link };
|
22
27
|
//# sourceMappingURL=link.d.ts.map
|
@@ -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;;;;;;OAMG;IAEH,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,QAAQ,CAAY;IAE/C,SAAS,CAAC,YAAY,CAAC,CAAC,EAAE,UAAU;
|
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/dev/components/link.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { __decorate } from "tslib";
|
2
|
-
import { godown } from "@godown/element
|
2
|
+
import { godown } from "@godown/element";
|
3
3
|
import { property } from "lit/decorators.js";
|
4
4
|
import SuperAnchor from "../core/super-anchor.js";
|
5
5
|
import Router from "./router.js";
|
@@ -23,20 +23,30 @@ let Link = class Link extends SuperAnchor {
|
|
23
23
|
* If "normal", behave like a normal anchor.
|
24
24
|
*/
|
25
25
|
this.type = "normal";
|
26
|
+
/**
|
27
|
+
* Suppress the update of the {@linkcode Router}.
|
28
|
+
*/
|
29
|
+
this.suppress = false;
|
26
30
|
}
|
27
31
|
_handleClick(e) {
|
28
32
|
if (this.type === "push" || this.type === "replace") {
|
29
33
|
e.preventDefault();
|
30
|
-
|
31
|
-
|
34
|
+
history[`${this.type}State`](null, "", this.href);
|
35
|
+
if (!this.suppress) {
|
36
|
+
Router.updateAll();
|
37
|
+
}
|
32
38
|
}
|
33
39
|
}
|
34
40
|
};
|
35
41
|
__decorate([
|
36
42
|
property()
|
37
43
|
], Link.prototype, "type", void 0);
|
44
|
+
__decorate([
|
45
|
+
property({ type: Boolean })
|
46
|
+
], Link.prototype, "suppress", void 0);
|
38
47
|
Link = __decorate([
|
39
48
|
godown(protoName)
|
40
49
|
], Link);
|
41
50
|
export default Link;
|
51
|
+
export { Link };
|
42
52
|
//# sourceMappingURL=link.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"link.js","sourceRoot":"","sources":["../../src/components/link.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"link.js","sourceRoot":"","sources":["../../src/components/link.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C,OAAO,WAAW,MAAM,yBAAyB,CAAC;AAClD,OAAO,MAAM,MAAM,aAAa,CAAC;AAEjC,MAAM,SAAS,GAAG,MAAM,CAAC;AAEzB;;;;;;;GAOG;AAEH,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,WAAW;IAA9B;;QACE;;;;;;WAMG;QAEH,SAAI,GAAkC,QAAQ,CAAC;QAE/C;;WAEG;QAEH,aAAQ,GAAG,KAAK,CAAC;IAWnB,CAAC;IATW,YAAY,CAAC,CAAa;QAClC,IAAI,IAAI,CAAC,IAAI,KAAK,MAAM,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;YACpD,CAAC,CAAC,cAAc,EAAE,CAAC;YACnB,OAAO,CAAC,GAAG,IAAI,CAAC,IAAI,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;YAClD,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;gBACnB,MAAM,CAAC,SAAS,EAAE,CAAC;YACrB,CAAC;QACH,CAAC;IACH,CAAC;CACF,CAAA;AAjBC;IADC,QAAQ,EAAE;kCACoC;AAM/C;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;sCACX;AAfb,IAAI;IADT,MAAM,CAAC,SAAS,CAAC;GACZ,IAAI,CA0BT;AAED,eAAe,IAAI,CAAC;AACpB,OAAO,EAAE,IAAI,EAAE,CAAC"}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { type TemplateResult } from "lit";
|
1
2
|
import { GlobalStyle } from "../core/global-style.js";
|
2
3
|
/**
|
3
4
|
* {@linkcode Progress} similar to `<progress>`.
|
@@ -8,7 +9,7 @@ declare class Progress extends GlobalStyle {
|
|
8
9
|
max: number;
|
9
10
|
min: number;
|
10
11
|
value: number;
|
11
|
-
protected render():
|
12
|
+
protected render(): TemplateResult<1>;
|
12
13
|
/**
|
13
14
|
* Convert s to a percentage without a percent sign.
|
14
15
|
*
|
@@ -18,4 +19,5 @@ declare class Progress extends GlobalStyle {
|
|
18
19
|
parsePercent(s?: string | number): number;
|
19
20
|
}
|
20
21
|
export default Progress;
|
22
|
+
export { Progress };
|
21
23
|
//# sourceMappingURL=progress.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../../src/components/progress.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../../src/components/progress.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,cAAc,EAAa,MAAM,KAAK,CAAC;AAGrD,OAAO,EAAE,WAAW,EAAiB,MAAM,yBAAyB,CAAC;AAIrE;;;;GAIG;AACH,cA+CM,QAAS,SAAQ,WAAW;IAEhC,GAAG,SAAK;IAGR,GAAG,SAAK;IAGR,KAAK,EAAE,MAAM,CAAC;IAEd,SAAS,CAAC,MAAM,IAAI,cAAc,CAAC,CAAC,CAAC;IAqBrC;;;;;OAKG;IACH,YAAY,CAAC,CAAC,GAAE,MAAM,GAAG,MAAY,GAAG,MAAM;CAM/C;AAED,eAAe,QAAQ,CAAC;AACxB,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
@@ -1,10 +1,8 @@
|
|
1
1
|
import { __decorate } from "tslib";
|
2
|
-
import { godown } from "@godown/element
|
3
|
-
import { styles } from "@godown/element/decorators/styles.js";
|
4
|
-
import { isNil } from "@godown/element/tools/lib.js";
|
2
|
+
import { attr, godown, isNil, styles } from "@godown/element";
|
5
3
|
import { css, html } from "lit";
|
6
4
|
import { property } from "lit/decorators.js";
|
7
|
-
import {
|
5
|
+
import { GlobalStyle, cssGlobalVars } from "../core/global-style.js";
|
8
6
|
const protoName = "progress";
|
9
7
|
/**
|
10
8
|
* {@linkcode Progress} similar to `<progress>`.
|
@@ -24,9 +22,18 @@ let Progress = class Progress extends GlobalStyle {
|
|
24
22
|
width = this.parsePercent(this.value);
|
25
23
|
className = "static";
|
26
24
|
}
|
27
|
-
return html
|
28
|
-
<
|
29
|
-
|
25
|
+
return html `
|
26
|
+
<div
|
27
|
+
part="root"
|
28
|
+
${attr(this.observedRecord)}
|
29
|
+
class="${className}"
|
30
|
+
>
|
31
|
+
<i
|
32
|
+
part="value"
|
33
|
+
style="width:${width}%;"
|
34
|
+
></i>
|
35
|
+
</div>
|
36
|
+
`;
|
30
37
|
}
|
31
38
|
/**
|
32
39
|
* Convert s to a percentage without a percent sign.
|
@@ -56,12 +63,16 @@ Progress = __decorate([
|
|
56
63
|
:host {
|
57
64
|
width: 100%;
|
58
65
|
height: 0.5em;
|
59
|
-
display: inline-block;
|
60
66
|
border-radius: 0.25em;
|
61
67
|
background: var(${cssGlobalVars.passive});
|
62
68
|
color: var(${cssGlobalVars.active});
|
63
69
|
}
|
64
70
|
|
71
|
+
:host,
|
72
|
+
[part="root"] {
|
73
|
+
display: block;
|
74
|
+
}
|
75
|
+
|
65
76
|
[part="root"] {
|
66
77
|
height: inherit;
|
67
78
|
z-index: 1;
|
@@ -96,4 +107,5 @@ Progress = __decorate([
|
|
96
107
|
`)
|
97
108
|
], Progress);
|
98
109
|
export default Progress;
|
110
|
+
export { Progress };
|
99
111
|
//# sourceMappingURL=progress.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"progress.js","sourceRoot":"","sources":["../../src/components/progress.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"progress.js","sourceRoot":"","sources":["../../src/components/progress.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,EAAuB,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAErE,MAAM,SAAS,GAAG,UAAU,CAAC;AAE7B;;;;GAIG;AAgDH,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,WAAW;IAAlC;;QAEE,QAAG,GAAG,CAAC,CAAC;QAGR,QAAG,GAAG,CAAC,CAAC;IAsCV,CAAC;IAjCW,MAAM;QACd,IAAI,KAAK,GAAG,EAAE,CAAC;QACf,IAAI,SAAiB,CAAC;QACtB,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;YACvB,KAAK,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACtC,SAAS,GAAG,QAAQ,CAAC;QACvB,CAAC;QACD,OAAO,IAAI,CAAA;;;UAGL,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC;iBAClB,SAAS;;;;yBAID,KAAK;;;KAGzB,CAAC;IACJ,CAAC;IAED;;;;;OAKG;IACH,YAAY,CAAC,IAAqB,GAAG;QACnC,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;YAC5B,OAAO,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;QAC/B,CAAC;QACD,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC;IAC/D,CAAC;CACF,CAAA;AAzCC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;qCACnB;AAGR;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;qCACnB;AAGR;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;uCACb;AARV,QAAQ;IA/Cb,MAAM,CAAC,SAAS,CAAC;IACjB,MAAM,CAAC,GAAG,CAAA;;;;;sBAKW,aAAa,CAAC,OAAO;iBAC1B,aAAa,CAAC,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuCpC,CAAC;GACI,QAAQ,CA2Cb;AAED,eAAe,QAAQ,CAAC;AACxB,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|