godown 2.7.5 → 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 +18 -23
- 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,34 +1,9 @@
|
|
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 Card} renders a card.
|
6
4
|
*/
|
7
5
|
export declare class Card extends GodownElement {
|
8
|
-
|
9
|
-
* Enable rotate.
|
10
|
-
*/
|
11
|
-
rotate: boolean;
|
12
|
-
protected _main: HTMLElement;
|
13
|
-
protected _aside: HTMLElement;
|
14
|
-
static styles: CSSResultGroup;
|
15
|
-
protected render(): HTMLTemplate;
|
16
|
-
protected firstUpdated(): void;
|
17
|
-
/**
|
18
|
-
* Cancel the aside offset.
|
19
|
-
*/
|
20
|
-
reset(): void;
|
21
|
-
/**
|
22
|
-
* Offset aside.
|
23
|
-
* @param e Mouse move event.
|
24
|
-
*/
|
25
|
-
protected _drawRotate(e: MouseEvent): void;
|
6
|
+
protected render(): import("lit").TemplateResult<1>;
|
26
7
|
}
|
27
8
|
export default Card;
|
28
|
-
declare global {
|
29
|
-
interface HTMLElementTagNameMap {
|
30
|
-
"card-item": Card;
|
31
|
-
"g-card": Card;
|
32
|
-
}
|
33
|
-
}
|
34
9
|
//# sourceMappingURL=card.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"card.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/card/card.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"card.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/card/card.ts"],"names":[],"mappings":"AAKA,OAAO,aAAa,MAAM,+BAA+B,CAAC;AAM1D;;GAEG;AACH,qBAwCa,IAAK,SAAQ,aAAa;IACrC,SAAS,CAAC,MAAM;CAqBjB;AAED,eAAe,IAAI,CAAC"}
|
@@ -1,149 +1,74 @@
|
|
1
1
|
import { __decorate } from "tslib";
|
2
|
-
import { css, html
|
3
|
-
import {
|
2
|
+
import { css, html } from "../../_deps.js";
|
3
|
+
import { godown } from "../../decorators/godown.js";
|
4
|
+
import { styles } from "../../decorators/styles.js";
|
4
5
|
import { ifValue } from "../../lib/directives.js";
|
5
|
-
import { htmlSlot } from "../../lib/
|
6
|
-
import
|
7
|
-
|
8
|
-
const
|
6
|
+
import { htmlSlot } from "../../lib/directives.js";
|
7
|
+
import GodownElement from "../../proto/godown-element.js";
|
8
|
+
import { createScope, cssGlobalVars } from "../../styles/global.js";
|
9
|
+
const protoName = "card";
|
10
|
+
const cssScope = createScope(protoName);
|
9
11
|
/**
|
10
12
|
* {@linkcode Card} renders a card.
|
11
13
|
*/
|
12
14
|
let Card = class Card extends GodownElement {
|
13
|
-
constructor() {
|
14
|
-
super(...arguments);
|
15
|
-
/**
|
16
|
-
* Enable rotate.
|
17
|
-
*/
|
18
|
-
this.rotate = false;
|
19
|
-
}
|
20
15
|
render() {
|
21
16
|
const HEADER = "header";
|
22
17
|
const FOOTER = "footer";
|
23
|
-
return html
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
`)}
|
35
|
-
</main>
|
36
|
-
</div>`;
|
37
|
-
}
|
38
|
-
firstUpdated() {
|
39
|
-
if (this.rotate) {
|
40
|
-
this.addEvent(this._main, "mousemove", this._drawRotate.bind(this));
|
41
|
-
this.addEvent(this._aside, "mouseleave", this.reset.bind(this));
|
42
|
-
}
|
43
|
-
}
|
44
|
-
/**
|
45
|
-
* Cancel the aside offset.
|
46
|
-
*/
|
47
|
-
reset() {
|
48
|
-
this._main.style.transition = ".5s";
|
49
|
-
this._main.style.transform = "none";
|
50
|
-
}
|
51
|
-
/**
|
52
|
-
* Offset aside.
|
53
|
-
* @param e Mouse move event.
|
54
|
-
*/
|
55
|
-
_drawRotate(e) {
|
56
|
-
const { left, top, width, height } = this._main.getBoundingClientRect();
|
57
|
-
const { clientX, clientY } = e;
|
58
|
-
const offsetX = clientX - left;
|
59
|
-
const offsetY = clientY - top;
|
60
|
-
const rotate = 30;
|
61
|
-
const rotateX = -(rotate * (offsetY - height / 2)) / height / 1.5;
|
62
|
-
const rotateY = (rotate * (offsetX - width / 2)) / width / 1.5;
|
63
|
-
this._main.style.transform = `rotateX(${rotateX}deg) rotateY(${rotateY}deg)`;
|
64
|
-
this._main.style.transition = "none";
|
18
|
+
return html `
|
19
|
+
${ifValue(this.querySlot(HEADER), html `
|
20
|
+
${htmlSlot(HEADER)}
|
21
|
+
<hr />
|
22
|
+
`)}
|
23
|
+
${htmlSlot()}
|
24
|
+
${ifValue(this.querySlot(FOOTER), html `
|
25
|
+
<hr />
|
26
|
+
${htmlSlot(FOOTER)}
|
27
|
+
`)}
|
28
|
+
`;
|
65
29
|
}
|
66
30
|
};
|
67
|
-
Card
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
min-width: inherit;
|
91
|
-
}
|
92
|
-
|
93
|
-
main {
|
94
|
-
outline: var(${cssvarScope}--outline);
|
95
|
-
box-shadow: var(${cssvarScope}--box-shadow);
|
96
|
-
background: var(${cssvarScope}--background);
|
97
|
-
z-index: 2;
|
98
|
-
position: relative;
|
99
|
-
}
|
100
|
-
|
101
|
-
aside {
|
102
|
-
box-sizing: content-box;
|
103
|
-
z-index: 0;
|
104
|
-
height: 100%;
|
105
|
-
width: 100%;
|
106
|
-
position: absolute;
|
107
|
-
background: var(${cssvarScope}--wapper-background);
|
108
|
-
filter: blur(1em);
|
109
|
-
padding: var(${cssvarScope}--offset);
|
110
|
-
margin: calc(-1 * var(${cssvarScope}--offset));
|
111
|
-
}
|
112
|
-
|
113
|
-
div {
|
114
|
-
width: fit-content;
|
115
|
-
position: relative;
|
116
|
-
}
|
31
|
+
Card = __decorate([
|
32
|
+
godown(protoName),
|
33
|
+
styles([
|
34
|
+
css `
|
35
|
+
:host {
|
36
|
+
--${cssScope}--border-width: 1px;
|
37
|
+
--${cssScope}--border-color: transparent;
|
38
|
+
--${cssScope}--background: var(--${cssGlobalVars.background});
|
39
|
+
--${cssScope}--divider-width: 100%;
|
40
|
+
--${cssScope}--divider-height: var(--${cssScope}--border-width);
|
41
|
+
--${cssScope}--divider-background: rgb(54 54 54);
|
42
|
+
--${cssScope}--padding: .75em;
|
43
|
+
color: var(--${cssGlobalVars.foreground});
|
44
|
+
background: var(--${cssScope}--background);
|
45
|
+
border: solid var(--${cssScope}--border-width) var(--${cssScope}--border-color);
|
46
|
+
display: block;
|
47
|
+
flex-shrink: 0;
|
48
|
+
position: relative;
|
49
|
+
overflow: hidden;
|
50
|
+
box-sizing: border-box;
|
51
|
+
border-radius: 0.25em;
|
52
|
+
transition: 0.3s ease-in-out;
|
53
|
+
}
|
117
54
|
|
118
|
-
|
119
|
-
|
120
|
-
|
55
|
+
:host(:hover) {
|
56
|
+
--${cssScope}--border-color:var(--${cssScope}--divider-background);
|
57
|
+
}
|
121
58
|
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
}
|
59
|
+
hr {
|
60
|
+
margin: auto;
|
61
|
+
width: var(--${cssScope}--divider-width);
|
62
|
+
height: var(--${cssScope}--divider-height);
|
63
|
+
background: var(--${cssScope}--divider-background);
|
64
|
+
}
|
129
65
|
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
]
|
136
|
-
__decorate([
|
137
|
-
property({ type: Boolean })
|
138
|
-
], Card.prototype, "rotate", void 0);
|
139
|
-
__decorate([
|
140
|
-
query("main")
|
141
|
-
], Card.prototype, "_main", void 0);
|
142
|
-
__decorate([
|
143
|
-
query("aside")
|
144
|
-
], Card.prototype, "_aside", void 0);
|
145
|
-
Card = __decorate([
|
146
|
-
define(defineName)
|
66
|
+
slot {
|
67
|
+
display: block;
|
68
|
+
padding: var(--${cssScope}--padding);
|
69
|
+
}
|
70
|
+
`,
|
71
|
+
])
|
147
72
|
], Card);
|
148
73
|
export { Card };
|
149
74
|
export default Card;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"card.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/card/card.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,
|
1
|
+
{"version":3,"file":"card.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/card/card.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,aAAa,MAAM,+BAA+B,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEpE,MAAM,SAAS,GAAG,MAAM,CAAC;AACzB,MAAM,QAAQ,GAAG,WAAW,CAAC,SAAS,CAAC,CAAC;AAExC;;GAEG;AAyCI,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,aAAa;IAC3B,MAAM;QACd,MAAM,MAAM,GAAG,QAAQ,CAAC;QACxB,MAAM,MAAM,GAAG,QAAQ,CAAC;QACxB,OAAO,IAAI,CAAA;QACP,OAAO,CACP,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,EACtB,IAAI,CAAA;YACA,QAAQ,CAAC,MAAM,CAAC;;SAEnB,CACF;QACC,QAAQ,EAAE;QACV,OAAO,CACP,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,EACtB,IAAI,CAAA;;YAEA,QAAQ,CAAC,MAAM,CAAC;SACnB,CACF;KACF,CAAC;IACJ,CAAC;CACF,CAAA;AAtBY,IAAI;IAxChB,MAAM,CAAC,SAAS,CAAC;IACjB,MAAM,CAAC;QACN,GAAG,CAAA;;UAEK,QAAQ;UACR,QAAQ;UACR,QAAQ,uBAAuB,aAAa,CAAC,UAAU;UACvD,QAAQ;UACR,QAAQ,2BAA2B,QAAQ;UAC3C,QAAQ;UACR,QAAQ;qBACG,aAAa,CAAC,UAAU;0BACnB,QAAQ;4BACN,QAAQ,yBAAyB,QAAQ;;;;;;;;;;;UAW3D,QAAQ,wBAAwB,QAAQ;;;;;qBAK7B,QAAQ;sBACP,QAAQ;0BACJ,QAAQ;;;;;uBAKX,QAAQ;;GAE5B;KACF,CAAC;GACW,IAAI,CAsBhB;;AAED,eAAe,IAAI,CAAC","sourcesContent":["import { css, html } from \"../../_deps.js\";\nimport { godown } from \"../../decorators/godown.js\";\nimport { styles } from \"../../decorators/styles.js\";\nimport { ifValue } from \"../../lib/directives.js\";\nimport { htmlSlot } from \"../../lib/directives.js\";\nimport GodownElement from \"../../proto/godown-element.js\";\nimport { createScope, cssGlobalVars } from \"../../styles/global.js\";\n\nconst protoName = \"card\";\nconst cssScope = createScope(protoName);\n\n/**\n * {@linkcode Card} renders a card.\n */\n@godown(protoName)\n@styles([\n css`\n :host {\n --${cssScope}--border-width: 1px;\n --${cssScope}--border-color: transparent;\n --${cssScope}--background: var(--${cssGlobalVars.background});\n --${cssScope}--divider-width: 100%;\n --${cssScope}--divider-height: var(--${cssScope}--border-width);\n --${cssScope}--divider-background: rgb(54 54 54);\n --${cssScope}--padding: .75em;\n color: var(--${cssGlobalVars.foreground});\n background: var(--${cssScope}--background);\n border: solid var(--${cssScope}--border-width) var(--${cssScope}--border-color);\n display: block;\n flex-shrink: 0;\n position: relative;\n overflow: hidden;\n box-sizing: border-box;\n border-radius: 0.25em;\n transition: 0.3s ease-in-out;\n }\n\n :host(:hover) {\n --${cssScope}--border-color:var(--${cssScope}--divider-background);\n }\n\n hr {\n margin: auto;\n width: var(--${cssScope}--divider-width);\n height: var(--${cssScope}--divider-height);\n background: var(--${cssScope}--divider-background);\n }\n\n slot {\n display: block;\n padding: var(--${cssScope}--padding);\n }\n `,\n])\nexport class Card extends GodownElement {\n protected render() {\n const HEADER = \"header\";\n const FOOTER = \"footer\";\n return html`\n ${ifValue(\n this.querySlot(HEADER),\n html`\n ${htmlSlot(HEADER)}\n <hr />\n `,\n )}\n ${htmlSlot()}\n ${ifValue(\n this.querySlot(FOOTER),\n html`\n <hr />\n ${htmlSlot(FOOTER)}\n `,\n )}\n `;\n }\n}\n\nexport default Card;\n"]}
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import {
|
2
|
-
import { GodownElement } from "../../supers/root.js";
|
1
|
+
import { GodownElement } from "../../proto/godown-element.js";
|
3
2
|
/**
|
4
3
|
* {@linkcode Carousel} rotates child elements.
|
5
4
|
*/
|
@@ -9,20 +8,17 @@ export declare class Carousel extends GodownElement {
|
|
9
8
|
*/
|
10
9
|
index: number;
|
11
10
|
/**
|
12
|
-
* If
|
11
|
+
* If autoChange > 0, the rotation will be automated.
|
13
12
|
*/
|
14
|
-
|
13
|
+
autoChange: number;
|
15
14
|
/**
|
16
15
|
* Width.
|
17
16
|
*/
|
18
17
|
width: string;
|
19
|
-
|
18
|
+
_moveRoot: HTMLElement;
|
20
19
|
intervalID: number;
|
21
20
|
_clone: HTMLElement[];
|
22
|
-
|
23
|
-
protected render(): HTMLTemplate;
|
24
|
-
private renderA;
|
25
|
-
remount(index?: number): void;
|
21
|
+
protected render(): import("lit").TemplateResult<1>;
|
26
22
|
protected firstUpdated(): void;
|
27
23
|
disconnectedCallback(): void;
|
28
24
|
show(i: number): void;
|
@@ -30,11 +26,4 @@ export declare class Carousel extends GodownElement {
|
|
30
26
|
prev(): void;
|
31
27
|
}
|
32
28
|
export default Carousel;
|
33
|
-
declare global {
|
34
|
-
interface HTMLElementTagNameMap {
|
35
|
-
"carousel-slider": Carousel;
|
36
|
-
"rotation-pool": Carousel;
|
37
|
-
"g-carousel": Carousel;
|
38
|
-
}
|
39
|
-
}
|
40
29
|
//# sourceMappingURL=carousel.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"carousel.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/carousel/carousel.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"carousel.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/carousel/carousel.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAI9D;;GAEG;AACH,qBAuEa,QAAS,SAAQ,aAAa;IACzC;;OAEG;IACyB,KAAK,SAAK;IACtC;;OAEG;IACyB,UAAU,SAAK;IAC3C;;OAEG;IACS,KAAK,SAAM;IAEJ,SAAS,EAAE,WAAW,CAAC;IAC1C,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,WAAW,EAAE,CAAM;IAE3B,SAAS,CAAC,MAAM;IAchB,SAAS,CAAC,YAAY;IAwBtB,oBAAoB;IAIpB,IAAI,CAAC,CAAC,EAAE,MAAM;IAMd,IAAI;IAWJ,IAAI;CAUL;AAED,eAAe,QAAQ,CAAC"}
|
@@ -1,9 +1,13 @@
|
|
1
1
|
import { __decorate } from "tslib";
|
2
|
-
import { css, html, property
|
3
|
-
import {
|
4
|
-
import {
|
5
|
-
import {
|
6
|
-
|
2
|
+
import { css, html, property } from "../../_deps.js";
|
3
|
+
import { godown } from "../../decorators/godown.js";
|
4
|
+
import { part } from "../../decorators/part.js";
|
5
|
+
import { styles } from "../../decorators/styles.js";
|
6
|
+
import { htmlSlot } from "../../lib/directives.js";
|
7
|
+
import { htmlStyle } from "../../lib/directives.js";
|
8
|
+
import { svgArrow } from "../../lib/icons.js";
|
9
|
+
import { GodownElement } from "../../proto/godown-element.js";
|
10
|
+
const protoName = "carousel";
|
7
11
|
/**
|
8
12
|
* {@linkcode Carousel} rotates child elements.
|
9
13
|
*/
|
@@ -15,9 +19,9 @@ let Carousel = class Carousel extends GodownElement {
|
|
15
19
|
*/
|
16
20
|
this.index = 0;
|
17
21
|
/**
|
18
|
-
* If
|
22
|
+
* If autoChange > 0, the rotation will be automated.
|
19
23
|
*/
|
20
|
-
this.
|
24
|
+
this.autoChange = 0;
|
21
25
|
/**
|
22
26
|
* Width.
|
23
27
|
*/
|
@@ -26,25 +30,17 @@ let Carousel = class Carousel extends GodownElement {
|
|
26
30
|
}
|
27
31
|
render() {
|
28
32
|
const style = this.width && `:host{width:${this.width.split(";")[0]};}`;
|
29
|
-
return html `<div>
|
30
|
-
<a class="prev" @click="${this.prev}"
|
31
|
-
|
33
|
+
return html `<div part="root">
|
34
|
+
<a part="prev" class="prev" @click="${this.prev}">
|
35
|
+
<i>${svgArrow()}</i>
|
36
|
+
</a>
|
37
|
+
<div part="move-root">${htmlSlot()}</div>
|
38
|
+
<a part="next" class="next" @click="${this.next}">
|
39
|
+
<i>${svgArrow()}</i>
|
40
|
+
</a>
|
32
41
|
${htmlStyle(style)}
|
33
|
-
<a class="next" @click="${this.next}">${this.renderA("suf")}</a>
|
34
42
|
</div>`;
|
35
43
|
}
|
36
|
-
renderA(slot) {
|
37
|
-
if (this.querySelector(`[slot=${slot}]`)) {
|
38
|
-
return htmlSlot(slot);
|
39
|
-
}
|
40
|
-
return html `<i>${svgArrow()}</i>`;
|
41
|
-
}
|
42
|
-
remount(index) {
|
43
|
-
super.remount(undefined);
|
44
|
-
if (index !== undefined) {
|
45
|
-
this.show(index);
|
46
|
-
}
|
47
|
-
}
|
48
44
|
firstUpdated() {
|
49
45
|
if (this.assigned.length) {
|
50
46
|
if (!this.width) {
|
@@ -62,10 +58,10 @@ let Carousel = class Carousel extends GodownElement {
|
|
62
58
|
this.insertBefore(first, this.firstElementChild);
|
63
59
|
this.show(this.index);
|
64
60
|
}
|
65
|
-
if (this.
|
61
|
+
if (this.autoChange) {
|
66
62
|
this.intervalID = setInterval(() => {
|
67
63
|
this.next();
|
68
|
-
}, this.
|
64
|
+
}, this.autoChange);
|
69
65
|
}
|
70
66
|
}
|
71
67
|
disconnectedCallback() {
|
@@ -73,14 +69,14 @@ let Carousel = class Carousel extends GodownElement {
|
|
73
69
|
}
|
74
70
|
show(i) {
|
75
71
|
this.index = i;
|
76
|
-
this.
|
77
|
-
this.
|
72
|
+
this._moveRoot.style.transform = `translateX(-${i}00%)`;
|
73
|
+
this._moveRoot.style.transition = "inherit";
|
78
74
|
}
|
79
75
|
next() {
|
80
76
|
if (this.index === this.assigned.length - 3) {
|
81
|
-
this.
|
82
|
-
this.
|
83
|
-
this.
|
77
|
+
this._moveRoot.style.transform = `translateX(100%)`;
|
78
|
+
this._moveRoot.style.transition = "none";
|
79
|
+
this._moveRoot.getBoundingClientRect();
|
84
80
|
this.show(0);
|
85
81
|
}
|
86
82
|
else {
|
@@ -89,9 +85,9 @@ let Carousel = class Carousel extends GodownElement {
|
|
89
85
|
}
|
90
86
|
prev() {
|
91
87
|
if (this.index === 0) {
|
92
|
-
this.
|
93
|
-
this.
|
94
|
-
this.
|
88
|
+
this._moveRoot.style.transform = `translateX(-${this.assigned.length - 2}00%)`;
|
89
|
+
this._moveRoot.style.transition = `none`;
|
90
|
+
this._moveRoot.getBoundingClientRect();
|
95
91
|
this.show(this.assigned.length - 3);
|
96
92
|
}
|
97
93
|
else {
|
@@ -99,90 +95,90 @@ let Carousel = class Carousel extends GodownElement {
|
|
99
95
|
}
|
100
96
|
}
|
101
97
|
};
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
98
|
+
__decorate([
|
99
|
+
property({ type: Number })
|
100
|
+
], Carousel.prototype, "index", void 0);
|
101
|
+
__decorate([
|
102
|
+
property({ type: Number })
|
103
|
+
], Carousel.prototype, "autoChange", void 0);
|
104
|
+
__decorate([
|
105
|
+
property()
|
106
|
+
], Carousel.prototype, "width", void 0);
|
107
|
+
__decorate([
|
108
|
+
part("move-root")
|
109
|
+
], Carousel.prototype, "_moveRoot", void 0);
|
110
|
+
Carousel = __decorate([
|
111
|
+
godown(protoName),
|
112
|
+
styles([
|
113
|
+
css `
|
114
|
+
:host {
|
115
|
+
display: block;
|
116
|
+
transition: all 0.2s;
|
117
|
+
}
|
108
118
|
|
109
|
-
|
110
|
-
|
111
|
-
|
119
|
+
[part="root"] {
|
120
|
+
overflow: hidden;
|
121
|
+
}
|
112
122
|
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
}
|
123
|
+
div {
|
124
|
+
width: 100%;
|
125
|
+
display: flex;
|
126
|
+
position: relative;
|
127
|
+
transition: inherit;
|
128
|
+
}
|
120
129
|
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
130
|
+
a {
|
131
|
+
position: absolute;
|
132
|
+
height: 100%;
|
133
|
+
width: -moz-fit-content;
|
134
|
+
width: fit-content;
|
135
|
+
z-index: 1;
|
136
|
+
display: flex;
|
137
|
+
align-items: center;
|
138
|
+
}
|
129
139
|
|
130
|
-
|
131
|
-
|
132
|
-
|
140
|
+
[part="prev"] {
|
141
|
+
left: 0;
|
142
|
+
}
|
133
143
|
|
134
|
-
|
135
|
-
|
136
|
-
|
144
|
+
[part="prev"] svg {
|
145
|
+
transform: rotate(180deg);
|
146
|
+
}
|
137
147
|
|
138
|
-
|
139
|
-
|
140
|
-
|
148
|
+
[part="next"] {
|
149
|
+
right: 0;
|
150
|
+
}
|
141
151
|
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
152
|
+
i {
|
153
|
+
position: relative;
|
154
|
+
display: flex;
|
155
|
+
align-items: center;
|
156
|
+
justify-content: center;
|
157
|
+
transition: 0.3s;
|
158
|
+
width: 2em;
|
159
|
+
height: 100%;
|
160
|
+
}
|
151
161
|
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
162
|
+
svg {
|
163
|
+
flex: 1;
|
164
|
+
max-height: 100%;
|
165
|
+
max-width: 100%;
|
166
|
+
}
|
157
167
|
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
168
|
+
a:hover i {
|
169
|
+
background-color: #0000001a;
|
170
|
+
width: 2.2em;
|
171
|
+
}
|
162
172
|
|
163
|
-
|
164
|
-
|
165
|
-
|
173
|
+
i svg path {
|
174
|
+
stroke-width: 4;
|
175
|
+
}
|
166
176
|
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
]
|
172
|
-
__decorate([
|
173
|
-
property({ type: Number })
|
174
|
-
], Carousel.prototype, "index", void 0);
|
175
|
-
__decorate([
|
176
|
-
property({ type: Number })
|
177
|
-
], Carousel.prototype, "autochange", void 0);
|
178
|
-
__decorate([
|
179
|
-
property()
|
180
|
-
], Carousel.prototype, "width", void 0);
|
181
|
-
__decorate([
|
182
|
-
query("section")
|
183
|
-
], Carousel.prototype, "_section", void 0);
|
184
|
-
Carousel = __decorate([
|
185
|
-
define(defineName)
|
177
|
+
slot::slotted(*) {
|
178
|
+
flex-shrink: 0 !important;
|
179
|
+
}
|
180
|
+
`,
|
181
|
+
])
|
186
182
|
], Carousel);
|
187
183
|
export { Carousel };
|
188
184
|
export default Carousel;
|