godown 2.7.4 → 2.7.6
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 +18 -45
- package/{.deps.d.ts → _deps.d.ts} +1 -2
- package/{.deps.d.ts.map → _deps.d.ts.map} +1 -1
- package/{.deps.js → _deps.js} +1 -2
- package/_deps.js.map +1 -0
- package/alert.d.ts +8 -1
- package/alert.d.ts.map +1 -1
- package/alert.js +4 -1
- package/alert.js.map +1 -1
- package/avatar-group.d.ts +8 -1
- package/avatar-group.d.ts.map +1 -1
- package/avatar-group.js +4 -1
- package/avatar-group.js.map +1 -1
- package/avatar.d.ts +8 -1
- package/avatar.d.ts.map +1 -1
- package/avatar.js +4 -1
- package/avatar.js.map +1 -1
- package/button.d.ts +8 -1
- package/button.d.ts.map +1 -1
- package/button.js +4 -1
- package/button.js.map +1 -1
- package/card.d.ts +8 -1
- package/card.d.ts.map +1 -1
- package/card.js +4 -1
- package/card.js.map +1 -1
- package/carousel.d.ts +8 -1
- package/carousel.d.ts.map +1 -1
- package/carousel.js +4 -1
- package/carousel.js.map +1 -1
- package/components.json +194 -0
- package/conf.d.ts +6 -75
- package/conf.d.ts.map +1 -1
- package/conf.js +8 -34
- package/conf.js.map +1 -1
- package/decorators/godown.d.ts +4 -0
- package/decorators/godown.d.ts.map +1 -0
- package/decorators/godown.js +9 -0
- package/decorators/godown.js.map +1 -0
- package/decorators/part.d.ts +7 -0
- package/decorators/part.d.ts.map +1 -0
- package/decorators/part.js +8 -0
- package/decorators/part.js.map +1 -0
- package/decorators/styles.d.ts +3 -0
- package/decorators/styles.d.ts.map +1 -0
- package/decorators/styles.js +8 -0
- package/decorators/styles.js.map +1 -0
- package/details.d.ts +8 -1
- package/details.d.ts.map +1 -1
- package/details.js +4 -1
- package/details.js.map +1 -1
- package/dialog.d.ts +8 -1
- package/dialog.d.ts.map +1 -1
- package/dialog.js +4 -1
- package/dialog.js.map +1 -1
- package/divider.d.ts +8 -1
- package/divider.d.ts.map +1 -1
- package/divider.js +4 -1
- package/divider.js.map +1 -1
- package/dragbox.d.ts +8 -1
- package/dragbox.d.ts.map +1 -1
- package/dragbox.js +4 -1
- package/dragbox.js.map +1 -1
- package/flex-flow.d.ts +8 -1
- package/flex-flow.d.ts.map +1 -1
- package/flex-flow.js +4 -1
- package/flex-flow.js.map +1 -1
- package/form.d.ts +8 -1
- package/form.d.ts.map +1 -1
- package/form.js +4 -1
- package/form.js.map +1 -1
- package/grid-flow.d.ts +9 -0
- package/grid-flow.d.ts.map +1 -0
- package/grid-flow.js +5 -0
- package/grid-flow.js.map +1 -0
- package/index.d.ts +32 -3
- package/index.d.ts.map +1 -1
- package/index.js +32 -3
- package/index.js.map +1 -1
- package/input.d.ts +8 -1
- package/input.d.ts.map +1 -1
- package/input.js +4 -1
- package/input.js.map +1 -1
- package/label-input.d.ts +8 -1
- package/label-input.d.ts.map +1 -1
- package/label-input.js +4 -1
- package/label-input.js.map +1 -1
- package/layout.d.ts +9 -0
- package/layout.d.ts.map +1 -0
- package/layout.js +5 -0
- package/layout.js.map +1 -0
- package/lib/css.d.ts +13 -0
- package/lib/css.d.ts.map +1 -0
- package/lib/css.js +29 -0
- package/lib/css.js.map +1 -0
- package/lib/directives.d.ts +16 -20
- package/lib/directives.d.ts.map +1 -1
- package/lib/directives.js +33 -31
- package/lib/directives.js.map +1 -1
- package/lib/event-coll.d.ts +13 -0
- package/lib/event-coll.d.ts.map +1 -0
- package/lib/event-coll.js +45 -0
- package/lib/event-coll.js.map +1 -0
- package/lib/{templates.d.ts → icons.d.ts} +1 -17
- package/lib/icons.d.ts.map +1 -0
- package/lib/icons.js +73 -0
- package/lib/icons.js.map +1 -0
- package/lib/jsx.d.ts +4 -0
- package/lib/jsx.d.ts.map +1 -0
- package/lib/jsx.js +52 -0
- package/lib/jsx.js.map +1 -0
- package/lib/route-tree.d.ts +5 -5
- package/lib/route-tree.js +5 -5
- package/lib/route-tree.js.map +1 -1
- package/lib/utils.d.ts +6 -46
- package/lib/utils.d.ts.map +1 -1
- package/lib/utils.js +25 -110
- package/lib/utils.js.map +1 -1
- package/link.d.ts +9 -0
- package/link.d.ts.map +1 -0
- package/link.js +5 -0
- package/link.js.map +1 -0
- package/overbreath.d.ts +8 -1
- package/overbreath.d.ts.map +1 -1
- package/overbreath.js +4 -1
- package/overbreath.js.map +1 -1
- package/package.json +20 -25
- package/progress.d.ts +8 -1
- package/progress.d.ts.map +1 -1
- package/progress.js +4 -1
- package/progress.js.map +1 -1
- package/proto/godown-config.d.ts +41 -0
- package/proto/godown-config.d.ts.map +1 -0
- package/proto/godown-config.js +27 -0
- package/proto/godown-config.js.map +1 -0
- package/{godown-element.d.ts → proto/godown-element.d.ts} +48 -16
- package/proto/godown-element.d.ts.map +1 -0
- package/{godown-element.js → proto/godown-element.js} +82 -26
- package/proto/godown-element.js.map +1 -0
- package/proto/super-a.d.ts +30 -0
- package/proto/super-a.d.ts.map +1 -0
- package/proto/super-a.js +141 -0
- package/proto/super-a.js.map +1 -0
- package/proto/super-input.d.ts +44 -0
- package/proto/super-input.d.ts.map +1 -0
- package/proto/super-input.js +119 -0
- package/proto/super-input.js.map +1 -0
- package/proto/super-openable.d.ts +23 -0
- package/proto/super-openable.d.ts.map +1 -0
- package/proto/super-openable.js +43 -0
- package/proto/super-openable.js.map +1 -0
- package/range-input.d.ts +9 -0
- package/range-input.d.ts.map +1 -0
- package/range-input.js +5 -0
- package/range-input.js.map +1 -0
- package/react/create.d.ts.map +1 -1
- package/react/create.js +4 -1
- package/react/create.js.map +1 -1
- package/react/index.d.ts +64 -34
- package/react/index.d.ts.map +1 -1
- package/react/index.js +78 -51
- package/react/index.js.map +1 -1
- package/rotate.d.ts +9 -0
- package/rotate.d.ts.map +1 -0
- package/rotate.js +5 -0
- package/rotate.js.map +1 -0
- package/router-link.d.ts +9 -0
- package/router-link.d.ts.map +1 -0
- package/router-link.js +5 -0
- package/router-link.js.map +1 -0
- package/router.d.ts +8 -1
- package/router.d.ts.map +1 -1
- package/router.js +4 -1
- package/router.js.map +1 -1
- package/search-input.d.ts +8 -1
- package/search-input.d.ts.map +1 -1
- package/search-input.js +4 -1
- package/search-input.js.map +1 -1
- package/select-input.d.ts +8 -1
- package/select-input.d.ts.map +1 -1
- package/select-input.js +4 -1
- package/select-input.js.map +1 -1
- package/skeleton.d.ts +8 -1
- package/skeleton.d.ts.map +1 -1
- package/skeleton.js +4 -1
- package/skeleton.js.map +1 -1
- package/split-input.d.ts +8 -1
- package/split-input.d.ts.map +1 -1
- package/split-input.js +4 -1
- package/split-input.js.map +1 -1
- package/styles/colors/presets.d.ts +13 -0
- package/styles/colors/presets.d.ts.map +1 -0
- package/styles/colors/presets.js +6 -0
- package/styles/colors/presets.js.map +1 -0
- package/styles/colors/presetsRGB.d.ts +16 -0
- package/styles/colors/presetsRGB.d.ts.map +1 -0
- package/styles/colors/presetsRGB.js +134 -0
- package/styles/colors/presetsRGB.js.map +1 -0
- package/styles/global.d.ts +18 -0
- package/styles/global.d.ts.map +1 -0
- package/styles/global.js +78 -0
- package/styles/global.js.map +1 -0
- package/styles/inputStyle.d.ts +3 -0
- package/styles/inputStyle.d.ts.map +1 -0
- package/styles/inputStyle.js +59 -0
- package/styles/inputStyle.js.map +1 -0
- package/switch-input.d.ts +8 -1
- package/switch-input.d.ts.map +1 -1
- package/switch-input.js +4 -1
- package/switch-input.js.map +1 -1
- package/text.d.ts +8 -1
- package/text.d.ts.map +1 -1
- package/text.js +4 -1
- package/text.js.map +1 -1
- package/time.d.ts +8 -1
- package/time.d.ts.map +1 -1
- package/time.js +4 -1
- package/time.js.map +1 -1
- package/tooltip.d.ts +8 -1
- package/tooltip.d.ts.map +1 -1
- package/tooltip.js +4 -1
- package/tooltip.js.map +1 -1
- package/typewriter.d.ts +8 -1
- package/typewriter.d.ts.map +1 -1
- package/typewriter.js +4 -1
- package/typewriter.js.map +1 -1
- package/web-components/alert/alert.d.ts +2 -10
- package/web-components/alert/alert.d.ts.map +1 -1
- package/web-components/alert/alert.js +93 -91
- package/web-components/alert/alert.js.map +1 -1
- package/web-components/avatar/avatar-group.d.ts +21 -0
- package/web-components/avatar/avatar-group.d.ts.map +1 -0
- package/web-components/avatar/avatar-group.js +86 -0
- package/web-components/avatar/avatar-group.js.map +1 -0
- package/web-components/avatar/avatar.d.ts +5 -18
- package/web-components/avatar/avatar.d.ts.map +1 -1
- package/web-components/avatar/avatar.js +70 -85
- package/web-components/avatar/avatar.js.map +1 -1
- package/web-components/button/button.d.ts +10 -43
- package/web-components/button/button.d.ts.map +1 -1
- package/web-components/button/button.js +183 -226
- package/web-components/button/button.js.map +1 -1
- package/web-components/card/card.d.ts +2 -27
- package/web-components/card/card.d.ts.map +1 -1
- package/web-components/card/card.js +57 -132
- package/web-components/card/card.js.map +1 -1
- package/web-components/carousel/carousel.d.ts +5 -16
- package/web-components/carousel/carousel.d.ts.map +1 -1
- package/web-components/carousel/carousel.js +102 -106
- package/web-components/carousel/carousel.js.map +1 -1
- package/web-components/details/details.d.ts +4 -15
- package/web-components/details/details.d.ts.map +1 -1
- package/web-components/details/details.js +91 -97
- package/web-components/details/details.js.map +1 -1
- package/web-components/dialog/dialog.d.ts +6 -17
- package/web-components/dialog/dialog.d.ts.map +1 -1
- package/web-components/dialog/dialog.js +87 -137
- package/web-components/dialog/dialog.js.map +1 -1
- package/web-components/divider/divider.d.ts +13 -0
- package/web-components/divider/divider.d.ts.map +1 -0
- package/web-components/divider/divider.js +95 -0
- package/web-components/divider/divider.js.map +1 -0
- package/web-components/form/form.d.ts +15 -22
- package/web-components/form/form.d.ts.map +1 -1
- package/web-components/form/form.js +47 -117
- package/web-components/form/form.js.map +1 -1
- package/web-components/input/input.d.ts +5 -18
- package/web-components/input/input.d.ts.map +1 -1
- package/web-components/input/input.js +74 -169
- package/web-components/input/input.js.map +1 -1
- package/web-components/input/label-input.d.ts +5 -19
- package/web-components/input/label-input.d.ts.map +1 -1
- package/web-components/input/label-input.js +74 -141
- package/web-components/input/label-input.js.map +1 -1
- package/web-components/input/range-input.d.ts +53 -0
- package/web-components/input/range-input.d.ts.map +1 -0
- package/web-components/input/range-input.js +316 -0
- package/web-components/input/range-input.js.map +1 -0
- package/web-components/input/search-input.d.ts +4 -12
- package/web-components/input/search-input.d.ts.map +1 -1
- package/web-components/input/search-input.js +118 -113
- package/web-components/input/search-input.js.map +1 -1
- package/web-components/input/select-input.d.ts +17 -32
- package/web-components/input/select-input.d.ts.map +1 -1
- package/web-components/input/select-input.js +154 -286
- package/web-components/input/select-input.js.map +1 -1
- package/web-components/input/split-input.d.ts +8 -15
- package/web-components/input/split-input.d.ts.map +1 -1
- package/web-components/input/split-input.js +82 -72
- package/web-components/input/split-input.js.map +1 -1
- package/web-components/input/switch-input.d.ts +8 -17
- package/web-components/input/switch-input.d.ts.map +1 -1
- package/web-components/input/switch-input.js +122 -158
- package/web-components/input/switch-input.js.map +1 -1
- package/web-components/layout/flex-flow.d.ts +11 -19
- package/web-components/layout/flex-flow.d.ts.map +1 -1
- package/web-components/layout/flex-flow.js +57 -35
- package/web-components/layout/flex-flow.js.map +1 -1
- package/web-components/layout/grid-flow.d.ts +14 -0
- package/web-components/layout/grid-flow.d.ts.map +1 -0
- package/web-components/layout/grid-flow.js +56 -0
- package/web-components/layout/grid-flow.js.map +1 -0
- package/web-components/layout/layout.d.ts +18 -0
- package/web-components/layout/layout.d.ts.map +1 -0
- package/web-components/layout/layout.js +76 -0
- package/web-components/layout/layout.js.map +1 -0
- package/web-components/link/link.d.ts +10 -0
- package/web-components/link/link.d.ts.map +1 -0
- package/web-components/link/link.js +17 -0
- package/web-components/link/link.js.map +1 -0
- package/web-components/link/router-link.d.ts +19 -0
- package/web-components/link/router-link.d.ts.map +1 -0
- package/web-components/link/router-link.js +60 -0
- package/web-components/link/router-link.js.map +1 -0
- package/web-components/progress/progress.d.ts +2 -12
- package/web-components/progress/progress.d.ts.map +1 -1
- package/web-components/progress/progress.js +52 -48
- package/web-components/progress/progress.js.map +1 -1
- package/web-components/router/router.d.ts +15 -21
- package/web-components/router/router.d.ts.map +1 -1
- package/web-components/router/router.js +35 -37
- package/web-components/router/router.js.map +1 -1
- package/web-components/skeleton/skeleton.d.ts +5 -12
- package/web-components/skeleton/skeleton.d.ts.map +1 -1
- package/web-components/skeleton/skeleton.js +90 -98
- package/web-components/skeleton/skeleton.js.map +1 -1
- package/web-components/text/overbreath.d.ts +15 -20
- package/web-components/text/overbreath.d.ts.map +1 -1
- package/web-components/text/overbreath.js +108 -202
- package/web-components/text/overbreath.js.map +1 -1
- package/web-components/text/text.d.ts +5 -18
- package/web-components/text/text.d.ts.map +1 -1
- package/web-components/text/text.js +70 -80
- package/web-components/text/text.js.map +1 -1
- package/web-components/text/time.d.ts +5 -14
- package/web-components/text/time.d.ts.map +1 -1
- package/web-components/text/time.js +32 -31
- package/web-components/text/time.js.map +1 -1
- package/web-components/text/typewriter.d.ts +3 -11
- package/web-components/text/typewriter.d.ts.map +1 -1
- package/web-components/text/typewriter.js +42 -40
- package/web-components/text/typewriter.js.map +1 -1
- package/web-components/tooltip/tooltip.d.ts +21 -17
- package/web-components/tooltip/tooltip.d.ts.map +1 -1
- package/web-components/tooltip/tooltip.js +98 -60
- package/web-components/tooltip/tooltip.js.map +1 -1
- package/web-components/wrapper/dragbox.d.ts +5 -10
- package/web-components/wrapper/dragbox.d.ts.map +1 -1
- package/web-components/wrapper/dragbox.js +40 -31
- package/web-components/wrapper/dragbox.js.map +1 -1
- package/web-components/wrapper/rotate.d.ts +30 -0
- package/web-components/wrapper/rotate.d.ts.map +1 -0
- package/web-components/wrapper/rotate.js +92 -0
- package/web-components/wrapper/rotate.js.map +1 -0
- package/.deps.js.map +0 -1
- package/a.d.ts +0 -2
- package/a.d.ts.map +0 -1
- package/a.js +0 -2
- package/a.js.map +0 -1
- package/clip.d.ts +0 -2
- package/clip.d.ts.map +0 -1
- package/clip.js +0 -2
- package/clip.js.map +0 -1
- package/decorators/define.d.ts +0 -7
- package/decorators/define.d.ts.map +0 -1
- package/decorators/define.js +0 -11
- package/decorators/define.js.map +0 -1
- package/details-group.d.ts +0 -2
- package/details-group.d.ts.map +0 -1
- package/details-group.js +0 -2
- package/details-group.js.map +0 -1
- package/godown-element.d.ts.map +0 -1
- package/godown-element.js.map +0 -1
- package/lib/event-collection.d.ts +0 -14
- package/lib/event-collection.d.ts.map +0 -1
- package/lib/event-collection.js +0 -71
- package/lib/event-collection.js.map +0 -1
- package/lib/templates.d.ts.map +0 -1
- package/lib/templates.js +0 -76
- package/lib/templates.js.map +0 -1
- package/naming.d.ts +0 -91
- package/naming.d.ts.map +0 -1
- package/naming.js +0 -67
- package/naming.js.map +0 -1
- package/nav-layout.d.ts +0 -2
- package/nav-layout.d.ts.map +0 -1
- package/nav-layout.js +0 -2
- package/nav-layout.js.map +0 -1
- package/open-offset.d.ts +0 -2
- package/open-offset.d.ts.map +0 -1
- package/open-offset.js +0 -2
- package/open-offset.js.map +0 -1
- package/router-a.d.ts +0 -2
- package/router-a.d.ts.map +0 -1
- package/router-a.js +0 -2
- package/router-a.js.map +0 -1
- package/supers/anchor.d.ts +0 -26
- package/supers/anchor.d.ts.map +0 -1
- package/supers/anchor.js +0 -124
- package/supers/anchor.js.map +0 -1
- package/supers/input.d.ts +0 -28
- package/supers/input.d.ts.map +0 -1
- package/supers/input.js +0 -117
- package/supers/input.js.map +0 -1
- package/supers/openable.d.ts +0 -38
- package/supers/openable.d.ts.map +0 -1
- package/supers/openable.js +0 -77
- package/supers/openable.js.map +0 -1
- package/supers/root.d.ts +0 -18
- package/supers/root.d.ts.map +0 -1
- package/supers/root.js +0 -76
- package/supers/root.js.map +0 -1
- package/tabs.d.ts +0 -2
- package/tabs.d.ts.map +0 -1
- package/tabs.js +0 -2
- package/tabs.js.map +0 -1
- package/web-components/a/a.d.ts +0 -16
- package/web-components/a/a.d.ts.map +0 -1
- package/web-components/a/a.js +0 -17
- package/web-components/a/a.js.map +0 -1
- package/web-components/group/avatar-group.d.ts +0 -29
- package/web-components/group/avatar-group.d.ts.map +0 -1
- package/web-components/group/avatar-group.js +0 -88
- package/web-components/group/avatar-group.js.map +0 -1
- package/web-components/group/details-group.d.ts +0 -28
- package/web-components/group/details-group.d.ts.map +0 -1
- package/web-components/group/details-group.js +0 -59
- package/web-components/group/details-group.js.map +0 -1
- package/web-components/index.d.ts +0 -35
- package/web-components/index.d.ts.map +0 -1
- package/web-components/index.js +0 -35
- package/web-components/index.js.map +0 -1
- package/web-components/layout/divider.d.ts +0 -22
- package/web-components/layout/divider.d.ts.map +0 -1
- package/web-components/layout/divider.js +0 -85
- package/web-components/layout/divider.js.map +0 -1
- package/web-components/layout/nav-layout.d.ts +0 -38
- package/web-components/layout/nav-layout.d.ts.map +0 -1
- package/web-components/layout/nav-layout.js +0 -69
- package/web-components/layout/nav-layout.js.map +0 -1
- package/web-components/offset/open-offset.d.ts +0 -27
- package/web-components/offset/open-offset.d.ts.map +0 -1
- package/web-components/offset/open-offset.js +0 -130
- package/web-components/offset/open-offset.js.map +0 -1
- package/web-components/router/router-a.d.ts +0 -25
- package/web-components/router/router-a.d.ts.map +0 -1
- package/web-components/router/router-a.js +0 -70
- package/web-components/router/router-a.js.map +0 -1
- package/web-components/tabs/tabs.d.ts +0 -52
- package/web-components/tabs/tabs.d.ts.map +0 -1
- package/web-components/tabs/tabs.js +0 -165
- package/web-components/tabs/tabs.js.map +0 -1
- package/web-components/text/clip.d.ts +0 -22
- package/web-components/text/clip.d.ts.map +0 -1
- package/web-components/text/clip.js +0 -45
- package/web-components/text/clip.js.map +0 -1
- package/web-components/wrapper/wrapper.d.ts +0 -27
- package/web-components/wrapper/wrapper.d.ts.map +0 -1
- package/web-components/wrapper/wrapper.js +0 -95
- package/web-components/wrapper/wrapper.js.map +0 -1
- package/wrapper.d.ts +0 -2
- package/wrapper.d.ts.map +0 -1
- package/wrapper.js +0 -2
- package/wrapper.js.map +0 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"switch-input.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/input/switch-input.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,
|
1
|
+
{"version":3,"file":"switch-input.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/input/switch-input.ts"],"names":[],"mappings":"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","sourcesContent":["import { css, html, property, query } from \"../../_deps.js\";\nimport { godown } from \"../../decorators/godown.js\";\nimport { styles } from \"../../decorators/styles.js\";\nimport GodownInput from \"../../proto/super-input.js\";\nimport { cssGlobalVars } from \"../../styles/global.js\";\nimport { inputStyle } from \"../../styles/inputStyle.js\";\n\nconst protoName = \"switch-input\";\n\n/**\n * {@linkcode SwitchInput } renders a switch.\n *\n * Inspired by Steam.\n */\n@godown(protoName)\n@styles([\n inputStyle,\n css`\n :host {\n --${cssGlobalVars.input}--width: 3em;\n --${cssGlobalVars.input}--height: calc(var(--${cssGlobalVars.input}--width) / 2);\n --${cssGlobalVars.input}--gap: calc(var(--${cssGlobalVars.input}--width) / 25);\n --${cssGlobalVars.input}--transition: all .25s ease-in-out;\n background: var(--${cssGlobalVars.input}--background);\n width: var(--${cssGlobalVars.input}--width);\n height: var(--${cssGlobalVars.input}--height);\n display: inline-block;\n vertical-align: bottom;\n }\n\n [part=\"root\"],\n span,\n i {\n transition: var(--${cssGlobalVars.input}--transition);\n }\n\n [part=\"root\"] {\n border-radius: inherit;\n position: relative;\n height: inherit;\n }\n\n [part=\"root\"],\n input,\n i {\n width: 100%;\n }\n\n input {\n margin: 0;\n height: 100%;\n outline: none;\n appearance: none;\n -webkit-appearance: none;\n -moz-appearance: none;\n }\n\n span {\n height: 100%;\n display: inline-flex;\n position: absolute;\n left: 0;\n width: 50%;\n pointer-events: none;\n border-radius: inherit;\n }\n\n :host([round]) {\n border-radius: calc(var(--${cssGlobalVars.input}--height) / 2);\n }\n\n :host([checked]) span {\n transform: translateX(100%);\n }\n\n .rect * {\n border-radius: inherit;\n }\n\n .rect .true {\n background: var(--${cssGlobalVars.input}--true);\n }\n\n .rect .false {\n background: var(--${cssGlobalVars.input}--false);\n }\n\n .round i {\n border-radius: 100%;\n margin: var(--${cssGlobalVars.input}--gap);\n background: var(--${cssGlobalVars.input}--control);\n width: calc(var(--${cssGlobalVars.input}--height) - var(--${cssGlobalVars.input}--gap) * 2);\n height: calc(var(--${cssGlobalVars.input}--height) - var(--${cssGlobalVars.input}--gap) * 2);\n }\n\n .round {\n background: var(--${cssGlobalVars.input}--false);\n }\n\n :host([checked]) .round {\n background: var(--${cssGlobalVars.input}--true);\n }\n `,\n])\nexport class SwitchInput extends GodownInput {\n /**\n * @deprecated\n */\n base: \"fat\" | \"rect\";\n /**\n * Border style.\n */\n // @property() variant: \"fat\" | \"rect\" = \"rect\";\n @property({ type: Boolean, reflect: true }) round = false;\n /**\n * Whether this element is selected or not.\n */\n @property({ type: Boolean, reflect: true }) checked = false;\n /**\n * Whether this element is disabled or not.\n */\n @property({ type: Boolean, reflect: true }) disabled = false;\n /**\n * Parsed by JSON.parse to checked.\n */\n @property() default = \"false\";\n /**\n * Input value.\n */\n @property() value = \"on\";\n\n @query(\"input\") _input: HTMLInputElement;\n\n protected render() {\n return html`<div part=\"root\" class=\"${this.round ? \"round\" : \"rect\"}\">\n <input\n part=\"input\"\n @change=\"${this._handleChange}\"\n ?disabled=\"${this.disabled}\"\n ?checked=\"${this.checked}\"\n name=\"${this.name}\"\n id=\"${this.makeId}\"\n type=\"checkbox\"\n />\n <span>\n <i class=\"${this.checked}\"><i></i></i>\n </span>\n </div>`;\n }\n\n reset() {\n this.checked = this.default === \"true\";\n this._input.checked = this.checked;\n }\n\n connectedCallback() {\n super.connectedCallback();\n if (this.checked) {\n this.default = \"true\";\n }\n if (this.default === \"true\") {\n this.checked = true;\n }\n }\n\n protected _handleChange() {\n this.checked = this._input.checked;\n this.dispatchEvent(new CustomEvent(\"input\", { detail: this.checked, bubbles: true, composed: true }));\n this.dispatchEvent(new CustomEvent(\"change\", { detail: this.checked, composed: true }));\n }\n\n namevalue(): [string, boolean] {\n return [this.name, this.checked];\n }\n}\n\nexport default SwitchInput;\n"]}
|
@@ -1,25 +1,17 @@
|
|
1
|
-
import {
|
2
|
-
import { GodownElement } from "../../supers/root.js";
|
1
|
+
import { GodownElement } from "../../proto/godown-element.js";
|
3
2
|
/**
|
4
|
-
* {@linkcode FlexFlow}
|
3
|
+
* {@linkcode FlexFlow} provides flex layout.
|
5
4
|
*/
|
6
5
|
export declare class FlexFlow extends GodownElement {
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
protected render(): HTMLTemplate;
|
6
|
+
flexFlow: string;
|
7
|
+
direction: string;
|
8
|
+
gap: string;
|
9
|
+
flex: string;
|
10
|
+
justify: string;
|
11
|
+
align: string;
|
12
|
+
wrap: string;
|
13
|
+
vertical: boolean;
|
14
|
+
protected render(): import("lit").TemplateResult<1>[];
|
17
15
|
}
|
18
16
|
export default FlexFlow;
|
19
|
-
declare global {
|
20
|
-
interface HTMLElementTagNameMap {
|
21
|
-
"flex-flow": FlexFlow;
|
22
|
-
"g-flex-flow": FlexFlow;
|
23
|
-
}
|
24
|
-
}
|
25
17
|
//# sourceMappingURL=flex-flow.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"flex-flow.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/layout/flex-flow.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"flex-flow.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/layout/flex-flow.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAI9D;;GAEG;AACH,qBAYa,QAAS,SAAQ,aAAa;IAIzC,QAAQ,EAAE,MAAM,CAAC;IAEL,SAAS,EAAE,MAAM,CAAC;IAElB,GAAG,EAAE,MAAM,CAAC;IAEZ,IAAI,EAAE,MAAM,CAAC;IAEb,OAAO,EAAE,MAAM,CAAC;IAEhB,KAAK,EAAE,MAAM,CAAC;IAEd,IAAI,EAAE,MAAM,CAAC;IAEI,QAAQ,EAAE,OAAO,CAAC;IAE/C,SAAS,CAAC,MAAM;CAkBjB;AAED,eAAe,QAAQ,CAAC"}
|
@@ -1,50 +1,72 @@
|
|
1
1
|
import { __decorate } from "tslib";
|
2
|
-
import { css,
|
3
|
-
import {
|
4
|
-
import {
|
5
|
-
import {
|
6
|
-
|
2
|
+
import { css, property } from "../../_deps.js";
|
3
|
+
import { godown } from "../../decorators/godown.js";
|
4
|
+
import { styles } from "../../decorators/styles.js";
|
5
|
+
import { htmlSlot } from "../../lib/directives.js";
|
6
|
+
import { htmlStyle } from "../../lib/directives.js";
|
7
|
+
import { joinRules } from "../../lib/utils.js";
|
8
|
+
import { GodownElement } from "../../proto/godown-element.js";
|
9
|
+
const protoName = "flex-flow";
|
7
10
|
/**
|
8
|
-
* {@linkcode FlexFlow}
|
11
|
+
* {@linkcode FlexFlow} provides flex layout.
|
9
12
|
*/
|
10
13
|
let FlexFlow = class FlexFlow extends GodownElement {
|
11
|
-
constructor() {
|
12
|
-
super(...arguments);
|
13
|
-
/**
|
14
|
-
* The flex-flow behavior.
|
15
|
-
*/
|
16
|
-
this.flexflow = "row nowrap column nowrap";
|
17
|
-
/**
|
18
|
-
* The width of the screen for the position change.
|
19
|
-
*/
|
20
|
-
this.mobile = "720px";
|
21
|
-
}
|
22
14
|
render() {
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
15
|
+
return [
|
16
|
+
htmlSlot(),
|
17
|
+
htmlStyle(joinRules({
|
18
|
+
":host": {
|
19
|
+
"flex-direction": this.direction,
|
20
|
+
"flex-wrap": this.wrap,
|
21
|
+
gap: this.gap,
|
22
|
+
"align-items": this.align,
|
23
|
+
"justify-content": this.justify,
|
24
|
+
flex: this.flex,
|
25
|
+
"flex-flow": this.flexFlow,
|
26
|
+
},
|
27
|
+
})),
|
28
|
+
];
|
31
29
|
}
|
32
30
|
};
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
31
|
+
__decorate([
|
32
|
+
property({
|
33
|
+
attribute: protoName,
|
34
|
+
})
|
35
|
+
], FlexFlow.prototype, "flexFlow", void 0);
|
36
|
+
__decorate([
|
37
|
+
property()
|
38
|
+
], FlexFlow.prototype, "direction", void 0);
|
40
39
|
__decorate([
|
41
40
|
property()
|
42
|
-
], FlexFlow.prototype, "
|
41
|
+
], FlexFlow.prototype, "gap", void 0);
|
43
42
|
__decorate([
|
44
43
|
property()
|
45
|
-
], FlexFlow.prototype, "
|
44
|
+
], FlexFlow.prototype, "flex", void 0);
|
45
|
+
__decorate([
|
46
|
+
property()
|
47
|
+
], FlexFlow.prototype, "justify", void 0);
|
48
|
+
__decorate([
|
49
|
+
property()
|
50
|
+
], FlexFlow.prototype, "align", void 0);
|
51
|
+
__decorate([
|
52
|
+
property()
|
53
|
+
], FlexFlow.prototype, "wrap", void 0);
|
54
|
+
__decorate([
|
55
|
+
property({ type: Boolean })
|
56
|
+
], FlexFlow.prototype, "vertical", void 0);
|
46
57
|
FlexFlow = __decorate([
|
47
|
-
|
58
|
+
godown(protoName),
|
59
|
+
styles([
|
60
|
+
css `
|
61
|
+
:host {
|
62
|
+
display: flex;
|
63
|
+
}
|
64
|
+
|
65
|
+
:host([vertical]) {
|
66
|
+
flex-direction: column;
|
67
|
+
}
|
68
|
+
`,
|
69
|
+
])
|
48
70
|
], FlexFlow);
|
49
71
|
export { FlexFlow };
|
50
72
|
export default FlexFlow;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"flex-flow.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/layout/flex-flow.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,
|
1
|
+
{"version":3,"file":"flex-flow.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/layout/flex-flow.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAE9D,MAAM,SAAS,GAAG,WAAW,CAAC;AAE9B;;GAEG;AAaI,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,aAAa;IAoB/B,MAAM;QACd,OAAO;YACL,QAAQ,EAAE;YACV,SAAS,CACP,SAAS,CAAC;gBACR,OAAO,EAAE;oBACP,gBAAgB,EAAE,IAAI,CAAC,SAAS;oBAChC,WAAW,EAAE,IAAI,CAAC,IAAI;oBACtB,GAAG,EAAE,IAAI,CAAC,GAAG;oBACb,aAAa,EAAE,IAAI,CAAC,KAAK;oBACzB,iBAAiB,EAAE,IAAI,CAAC,OAAO;oBAC/B,IAAI,EAAE,IAAI,CAAC,IAAI;oBACf,WAAW,EAAE,IAAI,CAAC,QAAQ;iBAC3B;aACF,CAAC,CACH;SACF,CAAC;IACJ,CAAC;CACF,CAAA;AAlCC;IAHC,QAAQ,CAAC;QACR,SAAS,EAAE,SAAS;KACrB,CAAC;0CACe;AAEL;IAAX,QAAQ,EAAE;2CAAmB;AAElB;IAAX,QAAQ,EAAE;qCAAa;AAEZ;IAAX,QAAQ,EAAE;sCAAc;AAEb;IAAX,QAAQ,EAAE;yCAAiB;AAEhB;IAAX,QAAQ,EAAE;uCAAe;AAEd;IAAX,QAAQ,EAAE;sCAAc;AAEI;IAA5B,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;0CAAmB;AAlBpC,QAAQ;IAZpB,MAAM,CAAC,SAAS,CAAC;IACjB,MAAM,CAAC;QACN,GAAG,CAAA;;;;;;;;GAQF;KACF,CAAC;GACW,QAAQ,CAsCpB;;AAED,eAAe,QAAQ,CAAC","sourcesContent":["import { css, property } from \"../../_deps.js\";\nimport { godown } from \"../../decorators/godown.js\";\nimport { styles } from \"../../decorators/styles.js\";\nimport { htmlSlot } from \"../../lib/directives.js\";\nimport { htmlStyle } from \"../../lib/directives.js\";\nimport { joinRules } from \"../../lib/utils.js\";\nimport { GodownElement } from \"../../proto/godown-element.js\";\n\nconst protoName = \"flex-flow\";\n\n/**\n * {@linkcode FlexFlow} provides flex layout.\n */\n@godown(protoName)\n@styles([\n css`\n :host {\n display: flex;\n }\n\n :host([vertical]) {\n flex-direction: column;\n }\n `,\n])\nexport class FlexFlow extends GodownElement {\n @property({\n attribute: protoName,\n })\n flexFlow: string;\n\n @property() direction: string;\n\n @property() gap: string;\n\n @property() flex: string;\n\n @property() justify: string;\n\n @property() align: string;\n\n @property() wrap: string;\n\n @property({ type: Boolean }) vertical: boolean;\n\n protected render() {\n return [\n htmlSlot(),\n htmlStyle(\n joinRules({\n \":host\": {\n \"flex-direction\": this.direction,\n \"flex-wrap\": this.wrap,\n gap: this.gap,\n \"align-items\": this.align,\n \"justify-content\": this.justify,\n flex: this.flex,\n \"flex-flow\": this.flexFlow,\n },\n }),\n ),\n ];\n }\n}\n\nexport default FlexFlow;\n"]}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { GodownElement } from "../../proto/godown-element.js";
|
2
|
+
/**
|
3
|
+
* {@linkcode GridFlow} provides gird layout.
|
4
|
+
*/
|
5
|
+
export declare class GridFlow extends GodownElement {
|
6
|
+
gap: string;
|
7
|
+
columns: string | number;
|
8
|
+
rows: string | number;
|
9
|
+
content: string;
|
10
|
+
items: string;
|
11
|
+
protected render(): import("lit").TemplateResult<1>[];
|
12
|
+
}
|
13
|
+
export default GridFlow;
|
14
|
+
//# sourceMappingURL=grid-flow.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"grid-flow.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/layout/grid-flow.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAI9D;;GAEG;AACH,qBAQa,QAAS,SAAQ,aAAa;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IAE1B,SAAS,CAAC,MAAM;CAgBjB;AAED,eAAe,QAAQ,CAAC"}
|
@@ -0,0 +1,56 @@
|
|
1
|
+
import { __decorate } from "tslib";
|
2
|
+
import { css, property } from "../../_deps.js";
|
3
|
+
import { godown } from "../../decorators/godown.js";
|
4
|
+
import { styles } from "../../decorators/styles.js";
|
5
|
+
import { htmlSlot } from "../../lib/directives.js";
|
6
|
+
import { htmlStyle } from "../../lib/directives.js";
|
7
|
+
import { joinRules, numerical } from "../../lib/utils.js";
|
8
|
+
import { GodownElement } from "../../proto/godown-element.js";
|
9
|
+
const protoName = "grid-flow";
|
10
|
+
/**
|
11
|
+
* {@linkcode GridFlow} provides gird layout.
|
12
|
+
*/
|
13
|
+
let GridFlow = class GridFlow extends GodownElement {
|
14
|
+
render() {
|
15
|
+
return [
|
16
|
+
htmlSlot(),
|
17
|
+
htmlStyle(joinRules({
|
18
|
+
":host": {
|
19
|
+
gap: this.gap,
|
20
|
+
"grid-template-columns": numerical(this.columns) ? `repeat(${this.columns},1fr)` : this.columns,
|
21
|
+
"grid-template-rows": numerical(this.rows) ? `repeat(${this.rows},1fr)` : this.rows,
|
22
|
+
"place-content": this.content,
|
23
|
+
"place-items": this.items,
|
24
|
+
},
|
25
|
+
})),
|
26
|
+
];
|
27
|
+
}
|
28
|
+
};
|
29
|
+
__decorate([
|
30
|
+
property()
|
31
|
+
], GridFlow.prototype, "gap", void 0);
|
32
|
+
__decorate([
|
33
|
+
property()
|
34
|
+
], GridFlow.prototype, "columns", void 0);
|
35
|
+
__decorate([
|
36
|
+
property()
|
37
|
+
], GridFlow.prototype, "rows", void 0);
|
38
|
+
__decorate([
|
39
|
+
property()
|
40
|
+
], GridFlow.prototype, "content", void 0);
|
41
|
+
__decorate([
|
42
|
+
property()
|
43
|
+
], GridFlow.prototype, "items", void 0);
|
44
|
+
GridFlow = __decorate([
|
45
|
+
godown(protoName),
|
46
|
+
styles([
|
47
|
+
css `
|
48
|
+
:host {
|
49
|
+
display: grid;
|
50
|
+
}
|
51
|
+
`,
|
52
|
+
])
|
53
|
+
], GridFlow);
|
54
|
+
export { GridFlow };
|
55
|
+
export default GridFlow;
|
56
|
+
//# sourceMappingURL=grid-flow.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"grid-flow.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/layout/grid-flow.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAE9D,MAAM,SAAS,GAAG,WAAW,CAAC;AAE9B;;GAEG;AASI,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,aAAa;IAO/B,MAAM;QACd,OAAO;YACL,QAAQ,EAAE;YACV,SAAS,CACP,SAAS,CAAC;gBACR,OAAO,EAAE;oBACP,GAAG,EAAE,IAAI,CAAC,GAAG;oBACb,uBAAuB,EAAE,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,UAAU,IAAI,CAAC,OAAO,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO;oBAC/F,oBAAoB,EAAE,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,UAAU,IAAI,CAAC,IAAI,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI;oBACnF,eAAe,EAAE,IAAI,CAAC,OAAO;oBAC7B,aAAa,EAAE,IAAI,CAAC,KAAK;iBAC1B;aACF,CAAC,CACH;SACF,CAAC;IACJ,CAAC;CACF,CAAA;AAtBa;IAAX,QAAQ,EAAE;qCAAa;AACZ;IAAX,QAAQ,EAAE;yCAA0B;AACzB;IAAX,QAAQ,EAAE;sCAAuB;AACtB;IAAX,QAAQ,EAAE;yCAAiB;AAChB;IAAX,QAAQ,EAAE;uCAAe;AALf,QAAQ;IARpB,MAAM,CAAC,SAAS,CAAC;IACjB,MAAM,CAAC;QACN,GAAG,CAAA;;;;GAIF;KACF,CAAC;GACW,QAAQ,CAuBpB;;AAED,eAAe,QAAQ,CAAC","sourcesContent":["import { css, property } from \"../../_deps.js\";\nimport { godown } from \"../../decorators/godown.js\";\nimport { styles } from \"../../decorators/styles.js\";\nimport { htmlSlot } from \"../../lib/directives.js\";\nimport { htmlStyle } from \"../../lib/directives.js\";\nimport { joinRules, numerical } from \"../../lib/utils.js\";\nimport { GodownElement } from \"../../proto/godown-element.js\";\n\nconst protoName = \"grid-flow\";\n\n/**\n * {@linkcode GridFlow} provides gird layout.\n */\n@godown(protoName)\n@styles([\n css`\n :host {\n display: grid;\n }\n `,\n])\nexport class GridFlow extends GodownElement {\n @property() gap: string;\n @property() columns: string | number;\n @property() rows: string | number;\n @property() content: string;\n @property() items: string;\n\n protected render() {\n return [\n htmlSlot(),\n htmlStyle(\n joinRules({\n \":host\": {\n gap: this.gap,\n \"grid-template-columns\": numerical(this.columns) ? `repeat(${this.columns},1fr)` : this.columns,\n \"grid-template-rows\": numerical(this.rows) ? `repeat(${this.rows},1fr)` : this.rows,\n \"place-content\": this.content,\n \"place-items\": this.items,\n },\n }),\n ),\n ];\n }\n}\n\nexport default GridFlow;\n"]}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { GodownElement } from "../../proto/godown-element.js";
|
2
|
+
/**
|
3
|
+
* {@linkcode NavLayout} renders a navigation, an optional top header, an optional bottom footer.
|
4
|
+
*
|
5
|
+
* @slot - The main content of the layout.
|
6
|
+
*
|
7
|
+
* @slot header - The header of the layout.
|
8
|
+
*
|
9
|
+
* @slot footer - The footer of the layout.
|
10
|
+
*/
|
11
|
+
export declare class NavLayout extends GodownElement {
|
12
|
+
noHeader: boolean;
|
13
|
+
noFooter: boolean;
|
14
|
+
sticky: boolean;
|
15
|
+
protected render(): import("lit").TemplateResult<1>;
|
16
|
+
}
|
17
|
+
export default NavLayout;
|
18
|
+
//# sourceMappingURL=layout.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"layout.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/layout/layout.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAG9D;;;;;;;;GAQG;AACH,qBA0Ba,SAAU,SAAQ,aAAa;IAI1C,QAAQ,EAAE,OAAO,CAAC;IAIlB,QAAQ,EAAE,OAAO,CAAC;IAKlB,MAAM,EAAE,OAAO,CAAC;IAEhB,SAAS,CAAC,MAAM;CAejB;AAED,eAAe,SAAS,CAAC"}
|
@@ -0,0 +1,76 @@
|
|
1
|
+
import { __decorate } from "tslib";
|
2
|
+
import { css, html, property } from "../../_deps.js";
|
3
|
+
import { godown } from "../../decorators/godown.js";
|
4
|
+
import { styles } from "../../decorators/styles.js";
|
5
|
+
import { combine, htmlSlot, ifValue } from "../../lib/directives.js";
|
6
|
+
import { GodownElement } from "../../proto/godown-element.js";
|
7
|
+
const protoName = "layout";
|
8
|
+
/**
|
9
|
+
* {@linkcode NavLayout} renders a navigation, an optional top header, an optional bottom footer.
|
10
|
+
*
|
11
|
+
* @slot - The main content of the layout.
|
12
|
+
*
|
13
|
+
* @slot header - The header of the layout.
|
14
|
+
*
|
15
|
+
* @slot footer - The footer of the layout.
|
16
|
+
*/
|
17
|
+
let NavLayout = class NavLayout extends GodownElement {
|
18
|
+
render() {
|
19
|
+
return html `${ifValue(!this.noHeader, html `<header
|
20
|
+
part="header"
|
21
|
+
class="${combine({
|
22
|
+
sticky: this.sticky,
|
23
|
+
})}"
|
24
|
+
>
|
25
|
+
${htmlSlot("header")}
|
26
|
+
</header>`)}
|
27
|
+
<main part="main">${htmlSlot()}</main>
|
28
|
+
${ifValue(!this.noFooter, html `<footer part="footer">${htmlSlot("footer")}</footer> `)}`;
|
29
|
+
}
|
30
|
+
};
|
31
|
+
__decorate([
|
32
|
+
property({
|
33
|
+
type: Boolean,
|
34
|
+
})
|
35
|
+
], NavLayout.prototype, "noHeader", void 0);
|
36
|
+
__decorate([
|
37
|
+
property({
|
38
|
+
type: Boolean,
|
39
|
+
})
|
40
|
+
], NavLayout.prototype, "noFooter", void 0);
|
41
|
+
__decorate([
|
42
|
+
property({
|
43
|
+
type: Boolean,
|
44
|
+
})
|
45
|
+
], NavLayout.prototype, "sticky", void 0);
|
46
|
+
NavLayout = __decorate([
|
47
|
+
godown(protoName),
|
48
|
+
styles([
|
49
|
+
css `
|
50
|
+
:host {
|
51
|
+
min-height: 100%;
|
52
|
+
display: flex;
|
53
|
+
flex-direction: column;
|
54
|
+
}
|
55
|
+
|
56
|
+
.sticky {
|
57
|
+
position: sticky;
|
58
|
+
top: 0;
|
59
|
+
z-index: 1;
|
60
|
+
}
|
61
|
+
|
62
|
+
[part="main"] {
|
63
|
+
position: relative;
|
64
|
+
flex: 1;
|
65
|
+
width: 100%;
|
66
|
+
}
|
67
|
+
|
68
|
+
[part] {
|
69
|
+
width: 100%;
|
70
|
+
}
|
71
|
+
`,
|
72
|
+
])
|
73
|
+
], NavLayout);
|
74
|
+
export { NavLayout };
|
75
|
+
export default NavLayout;
|
76
|
+
//# sourceMappingURL=layout.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"layout.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/layout/layout.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAE9D,MAAM,SAAS,GAAG,QAAQ,CAAC;AAC3B;;;;;;;;GAQG;AA2BI,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,aAAa;IAehC,MAAM;QACd,OAAO,IAAI,CAAA,GAAG,OAAO,CACjB,CAAC,IAAI,CAAC,QAAQ,EACd,IAAI,CAAA;;mBAEO,OAAO,CAAC;YACf,MAAM,EAAE,IAAI,CAAC,MAAM;SACpB,CAAC;;YAEA,QAAQ,CAAC,QAAQ,CAAC;kBACZ,CACX;0BACmB,QAAQ,EAAE;QAC5B,OAAO,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAA,yBAAyB,QAAQ,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,CAAC;IAC7F,CAAC;CACF,CAAA;AA1BC;IAHC,QAAQ,CAAC;QACR,IAAI,EAAE,OAAO;KACd,CAAC;2CACgB;AAIlB;IAHC,QAAQ,CAAC;QACR,IAAI,EAAE,OAAO;KACd,CAAC;2CACgB;AAKlB;IAHC,QAAQ,CAAC;QACR,IAAI,EAAE,OAAO;KACd,CAAC;yCACc;AAbL,SAAS;IA1BrB,MAAM,CAAC,SAAS,CAAC;IACjB,MAAM,CAAC;QACN,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;GAsBF;KACF,CAAC;GACW,SAAS,CA8BrB;;AAED,eAAe,SAAS,CAAC","sourcesContent":["import { css, html, property } from \"../../_deps.js\";\nimport { godown } from \"../../decorators/godown.js\";\nimport { styles } from \"../../decorators/styles.js\";\nimport { combine, htmlSlot, ifValue } from \"../../lib/directives.js\";\nimport { GodownElement } from \"../../proto/godown-element.js\";\n\nconst protoName = \"layout\";\n/**\n * {@linkcode NavLayout} renders a navigation, an optional top header, an optional bottom footer.\n *\n * @slot - The main content of the layout.\n *\n * @slot header - The header of the layout.\n *\n * @slot footer - The footer of the layout.\n */\n@godown(protoName)\n@styles([\n css`\n :host {\n min-height: 100%;\n display: flex;\n flex-direction: column;\n }\n\n .sticky {\n position: sticky;\n top: 0;\n z-index: 1;\n }\n\n [part=\"main\"] {\n position: relative;\n flex: 1;\n width: 100%;\n }\n\n [part] {\n width: 100%;\n }\n `,\n])\nexport class NavLayout extends GodownElement {\n @property({\n type: Boolean,\n })\n noHeader: boolean;\n @property({\n type: Boolean,\n })\n noFooter: boolean;\n\n @property({\n type: Boolean,\n })\n sticky: boolean;\n\n protected render() {\n return html`${ifValue(\n !this.noHeader,\n html`<header\n part=\"header\"\n class=\"${combine({\n sticky: this.sticky,\n })}\"\n >\n ${htmlSlot(\"header\")}\n </header>`,\n )}\n <main part=\"main\">${htmlSlot()}</main>\n ${ifValue(!this.noFooter, html`<footer part=\"footer\">${htmlSlot(\"footer\")}</footer> `)}`;\n }\n}\n\nexport default NavLayout;\n"]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"link.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/link/link.ts"],"names":[],"mappings":"AACA,OAAO,YAAY,MAAM,wBAAwB,CAAC;AAIlD;;;;GAIG;AACH,qBACa,CAAE,SAAQ,YAAY;CAAG;AAEtC,eAAe,CAAC,CAAC"}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { __decorate } from "tslib";
|
2
|
+
import { godown } from "../../decorators/godown.js";
|
3
|
+
import GodownSuperA from "../../proto/super-a.js";
|
4
|
+
const protoName = "link";
|
5
|
+
/**
|
6
|
+
* {@linkcode A} similar to a.
|
7
|
+
*
|
8
|
+
* Has an optional arrow.
|
9
|
+
*/
|
10
|
+
let A = class A extends GodownSuperA {
|
11
|
+
};
|
12
|
+
A = __decorate([
|
13
|
+
godown(protoName)
|
14
|
+
], A);
|
15
|
+
export { A };
|
16
|
+
export default A;
|
17
|
+
//# sourceMappingURL=link.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"link.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/link/link.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,YAAY,MAAM,wBAAwB,CAAC;AAElD,MAAM,SAAS,GAAG,MAAM,CAAC;AAEzB;;;;GAIG;AAEI,IAAM,CAAC,GAAP,MAAM,CAAE,SAAQ,YAAY;CAAG,CAAA;AAAzB,CAAC;IADb,MAAM,CAAC,SAAS,CAAC;GACL,CAAC,CAAwB;;AAEtC,eAAe,CAAC,CAAC","sourcesContent":["import { godown } from \"../../decorators/godown.js\";\nimport GodownSuperA from \"../../proto/super-a.js\";\n\nconst protoName = \"link\";\n\n/**\n * {@linkcode A} similar to a.\n *\n * Has an optional arrow.\n */\n@godown(protoName)\nexport class A extends GodownSuperA {}\n\nexport default A;\n"]}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import GodownSuperA from "../../proto/super-a.js";
|
2
|
+
/**
|
3
|
+
* {@linkcode RouterLink} works with {@linkcode Router}.
|
4
|
+
*
|
5
|
+
* @extends A
|
6
|
+
*/
|
7
|
+
export declare class RouterLink extends GodownSuperA {
|
8
|
+
/**
|
9
|
+
* If true, replaceState, or pushState.
|
10
|
+
*/
|
11
|
+
replace: boolean;
|
12
|
+
connectedCallback(): void;
|
13
|
+
protected _handleClick(e: MouseEvent): void;
|
14
|
+
pushState(url?: string, data?: any): void;
|
15
|
+
replaceState(url?: string, data?: any): void;
|
16
|
+
updateRouter(): void;
|
17
|
+
}
|
18
|
+
export default RouterLink;
|
19
|
+
//# sourceMappingURL=router-link.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"router-link.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/link/router-link.ts"],"names":[],"mappings":"AAEA,OAAO,YAAY,MAAM,wBAAwB,CAAC;AAKlD;;;;GAIG;AACH,qBACa,UAAW,SAAQ,YAAY;IAC1C;;OAEG;IAC0B,OAAO,UAAS;IAE7C,iBAAiB;IAMjB,SAAS,CAAC,YAAY,CAAC,CAAC,EAAE,UAAU;IAYpC,SAAS,CAAC,GAAG,SAAY,EAAE,IAAI,MAAO;IAItC,YAAY,CAAC,GAAG,SAAY,EAAE,IAAI,MAAO;IAIzC,YAAY;CAQb;AAED,eAAe,UAAU,CAAC"}
|
@@ -0,0 +1,60 @@
|
|
1
|
+
import { __decorate } from "tslib";
|
2
|
+
import { property } from "../../_deps.js";
|
3
|
+
import { godown } from "../../decorators/godown.js";
|
4
|
+
import GodownSuperA from "../../proto/super-a.js";
|
5
|
+
import { Router } from "../router/router.js";
|
6
|
+
const protoName = "router-link";
|
7
|
+
/**
|
8
|
+
* {@linkcode RouterLink} works with {@linkcode Router}.
|
9
|
+
*
|
10
|
+
* @extends A
|
11
|
+
*/
|
12
|
+
let RouterLink = class RouterLink extends GodownSuperA {
|
13
|
+
constructor() {
|
14
|
+
super(...arguments);
|
15
|
+
/**
|
16
|
+
* If true, replaceState, or pushState.
|
17
|
+
*/
|
18
|
+
this.replace = false;
|
19
|
+
}
|
20
|
+
connectedCallback() {
|
21
|
+
super.connectedCallback();
|
22
|
+
this.addEvent(window, "popstate", this.useActive.bind(this));
|
23
|
+
this.useActive();
|
24
|
+
}
|
25
|
+
_handleClick(e) {
|
26
|
+
const { sameOrigin } = this.useActive();
|
27
|
+
if (sameOrigin) {
|
28
|
+
e.preventDefault();
|
29
|
+
if (this.replace) {
|
30
|
+
this.replaceState(this.href);
|
31
|
+
}
|
32
|
+
else {
|
33
|
+
this.pushState(this.href);
|
34
|
+
}
|
35
|
+
}
|
36
|
+
}
|
37
|
+
pushState(url = this.href, data = null) {
|
38
|
+
history.pushState(data, "", url);
|
39
|
+
}
|
40
|
+
replaceState(url = this.href, data = null) {
|
41
|
+
history.replaceState(data, "", url);
|
42
|
+
}
|
43
|
+
updateRouter() {
|
44
|
+
const routers = this.deepQuerySelectorAll(Router.elementTagName, document.body);
|
45
|
+
routers.forEach((router) => {
|
46
|
+
if (!router.override) {
|
47
|
+
router.pathname = window.location.pathname;
|
48
|
+
}
|
49
|
+
});
|
50
|
+
}
|
51
|
+
};
|
52
|
+
__decorate([
|
53
|
+
property({ type: Boolean })
|
54
|
+
], RouterLink.prototype, "replace", void 0);
|
55
|
+
RouterLink = __decorate([
|
56
|
+
godown(protoName)
|
57
|
+
], RouterLink);
|
58
|
+
export { RouterLink };
|
59
|
+
export default RouterLink;
|
60
|
+
//# sourceMappingURL=router-link.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"router-link.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/link/router-link.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,YAAY,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,MAAM,SAAS,GAAG,aAAa,CAAC;AAEhC;;;;GAIG;AAEI,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,YAAY;IAArC;;QACL;;WAEG;QAC0B,YAAO,GAAG,KAAK,CAAC;IAoC/C,CAAC;IAlCC,iBAAiB;QACf,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAC1B,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;QAC7D,IAAI,CAAC,SAAS,EAAE,CAAC;IACnB,CAAC;IAES,YAAY,CAAC,CAAa;QAClC,MAAM,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;QACxC,IAAI,UAAU,EAAE,CAAC;YACf,CAAC,CAAC,cAAc,EAAE,CAAC;YACnB,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;gBACjB,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAC/B,CAAC;iBAAM,CAAC;gBACN,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAC5B,CAAC;QACH,CAAC;IACH,CAAC;IAED,SAAS,CAAC,GAAG,GAAG,IAAI,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI;QACpC,OAAO,CAAC,SAAS,CAAC,IAAI,EAAE,EAAE,EAAE,GAAG,CAAC,CAAC;IACnC,CAAC;IAED,YAAY,CAAC,GAAG,GAAG,IAAI,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI;QACvC,OAAO,CAAC,YAAY,CAAC,IAAI,EAAE,EAAE,EAAE,GAAG,CAAC,CAAC;IACtC,CAAC;IAED,YAAY;QACV,MAAM,OAAO,GAAG,IAAI,CAAC,oBAAoB,CAAS,MAAM,CAAC,cAAc,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC;QACxF,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE;YACzB,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC;gBACrB,MAAM,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC;YAC7C,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;CACF,CAAA;AApC8B;IAA5B,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;2CAAiB;AAJlC,UAAU;IADtB,MAAM,CAAC,SAAS,CAAC;GACL,UAAU,CAwCtB;;AAED,eAAe,UAAU,CAAC","sourcesContent":["import { property } from \"../../_deps.js\";\nimport { godown } from \"../../decorators/godown.js\";\nimport GodownSuperA from \"../../proto/super-a.js\";\nimport { Router } from \"../router/router.js\";\n\nconst protoName = \"router-link\";\n\n/**\n * {@linkcode RouterLink} works with {@linkcode Router}.\n *\n * @extends A\n */\n@godown(protoName)\nexport class RouterLink extends GodownSuperA {\n /**\n * If true, replaceState, or pushState.\n */\n @property({ type: Boolean }) replace = false;\n\n connectedCallback() {\n super.connectedCallback();\n this.addEvent(window, \"popstate\", this.useActive.bind(this));\n this.useActive();\n }\n\n protected _handleClick(e: MouseEvent) {\n const { sameOrigin } = this.useActive();\n if (sameOrigin) {\n e.preventDefault();\n if (this.replace) {\n this.replaceState(this.href);\n } else {\n this.pushState(this.href);\n }\n }\n }\n\n pushState(url = this.href, data = null) {\n history.pushState(data, \"\", url);\n }\n\n replaceState(url = this.href, data = null) {\n history.replaceState(data, \"\", url);\n }\n\n updateRouter() {\n const routers = this.deepQuerySelectorAll<Router>(Router.elementTagName, document.body);\n routers.forEach((router) => {\n if (!router.override) {\n router.pathname = window.location.pathname;\n }\n });\n }\n}\n\nexport default RouterLink;\n"]}
|
@@ -1,6 +1,4 @@
|
|
1
|
-
import {
|
2
|
-
import { type HTMLTemplate } from "../../lib/templates.js";
|
3
|
-
import { GodownElement } from "../../supers/root.js";
|
1
|
+
import { GodownElement } from "../../proto/godown-element.js";
|
4
2
|
/**
|
5
3
|
* {@linkcode Progress} similar to progress.
|
6
4
|
*/
|
@@ -17,8 +15,7 @@ export declare class Progress extends GodownElement {
|
|
17
15
|
* Input value.
|
18
16
|
*/
|
19
17
|
value: any;
|
20
|
-
|
21
|
-
protected render(): HTMLTemplate;
|
18
|
+
protected render(): import("lit").TemplateResult<1>;
|
22
19
|
/**
|
23
20
|
* Convert s to a percentage without a percent sign.
|
24
21
|
*
|
@@ -28,11 +25,4 @@ export declare class Progress extends GodownElement {
|
|
28
25
|
parsePercent(s?: string | number): number;
|
29
26
|
}
|
30
27
|
export default Progress;
|
31
|
-
declare global {
|
32
|
-
interface HTMLElementTagNameMap {
|
33
|
-
"loading-progress": Progress;
|
34
|
-
"load-track": Progress;
|
35
|
-
"g-progress": Progress;
|
36
|
-
}
|
37
|
-
}
|
38
28
|
//# sourceMappingURL=progress.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"progress.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/progress/progress.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"progress.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/progress/progress.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAK9D;;GAEG;AACH,qBA2Ca,QAAS,SAAQ,aAAa;IACzC;;OAEG;IACyB,GAAG,SAAK;IACpC;;OAEG;IACyB,GAAG,SAAK;IACpC;;OAEG;IACwC,KAAK,MAAQ;IAExD,SAAS,CAAC,MAAM;IAYhB;;;;;OAKG;IACH,YAAY,CAAC,CAAC,GAAE,MAAM,GAAG,MAAY,GAAG,MAAM;CAM/C;AAED,eAAe,QAAQ,CAAC"}
|