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":"overbreath.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/text/overbreath.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,
|
1
|
+
{"version":3,"file":"overbreath.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/text/overbreath.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,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEjF,MAAM,UAAU,GAAG,YAAY,CAAC;AAChC,MAAM,QAAQ,GAAG,WAAW,CAAC,UAAU,CAAC,CAAC;AAEzC;;;;;;;;;GASG;AA4DI,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,aAAa;IAKjC,MAAM;QACd,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC;QAC9B,MAAM,GAAG,GAAG,KAAK,CAAC,MAAM,CAAC;QACzB,MAAM,GAAG,GAAG,GAAG,GAAG,CAAC,GAAG,GAAG,CAAC;QAC1B,MAAM,QAAQ,GAAG,IAAI,CAAC,aAAa,EAAE,IAAI,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC;QACrD,MAAM,CAAC,GAAG,QAAQ,GAAG,GAAG,CAAC;QAEzB,OAAO,IAAI,CAAA,GAAG,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC;MACtC,SAAS,CACT,gCAAgC,QAAQ,KAAK;YAC3C,2BAA2B,GAAG,GAAG,CAAC,gBAAgB,GAAG,KAAK,GAAG,GAAG,CAAC,iBAAiB;YAClF,KAAK;iBACF,GAAG,CA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AAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;YAClD,CAAC;QACH,CAAC;IACH,CAAC;CACF,CAAA;AA9Ca;IAAX,QAAQ,EAAE;wCAAyB;AACxB;IAAX,QAAQ,EAAE;4CAAkB;AACjB;IAAX,QAAQ,EAAE;2CAAiB;AAHjB,UAAU;IA3DtB,MAAM,CAAC,UAAU,CAAC;IAClB,MAAM,CAAC;QACN,GAAG,CAAA;;UAEK,QAAQ;UACR,QAAQ,UAAU,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC;UACpC,QAAQ,UAAU,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC;UACvC,QAAQ,UAAU,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC;UACtC,QAAQ,UAAU,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC;UACvC,QAAQ,UAAU,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC;UACrC,QAAQ,UAAU,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC;UACrC,QAAQ,8BAA8B,QAAQ,iBAAiB,QAAQ,iBAAiB,QAAQ;UAChG,QAAQ,8BAA8B,QAAQ,iBAAiB,QAAQ,iBAAiB,QAAQ;UAChG,QAAQ,8BAA8B,QAAQ,iBAAiB,QAAQ,iBAAiB,QAAQ;;GAEvG;QACD,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;GAoBF;QACD,GAAG,CAAA;;;;;;;;;;;;;;;;;;0BAkBqB,aAAa,CAAC,cAAc;;GAEnD;KACF,CAAC;GACW,UAAU,CA+CtB;;AAED,eAAe,UAAU,CAAC","sourcesContent":["import { css, html, property } from \"../../_deps.js\";\nimport { godown } from \"../../decorators/godown.js\";\nimport { styles } from \"../../decorators/styles.js\";\nimport { htmlStyle } from \"../../lib/directives.js\";\nimport { GodownElement } from \"../../proto/godown-element.js\";\nimport { colorValues, createScope, cssGlobalVars } from \"../../styles/global.js\";\n\nconst defineName = \"overbreath\";\nconst cssScope = createScope(defineName);\n\n/**\n * {@linkcode Overbreath} render the text with a breathing effect.\n *\n * Dynamically generate a breathing effect based on the length of the split text.\n *\n * If there is not enough CSS variable `--${CSSprefix}--${number}`, the initial value will be repeated.\n *\n * Inspired by Vercel home page (2023).\n *\n */\n@godown(defineName)\n@styles([\n css`\n :host {\n --${cssScope}--deg: 60deg;\n --${cssScope}--1-1: ${colorValues.red[5]};\n --${cssScope}--1-2: ${colorValues.yellow[5]};\n --${cssScope}--2-1: ${colorValues.green[5]};\n --${cssScope}--2-2: ${colorValues.purple[5]};\n --${cssScope}--3-1: ${colorValues.blue[5]};\n --${cssScope}--3-2: ${colorValues.pink[5]};\n --${cssScope}--1: linear-gradient(var(--${cssScope}--deg), var(--${cssScope}--1-1), var(--${cssScope}--1-2));\n --${cssScope}--2: linear-gradient(var(--${cssScope}--deg), var(--${cssScope}--2-1), var(--${cssScope}--2-2));\n --${cssScope}--3: linear-gradient(var(--${cssScope}--deg), var(--${cssScope}--3-1), var(--${cssScope}--3-2));\n }\n `,\n css`\n :host {\n display: flex;\n margin: auto;\n width: -moz-fit-content;\n width: fit-content;\n font-size: 2em;\n align-items: center;\n }\n\n ::selection {\n background: none;\n }\n\n .rel {\n position: relative;\n font-weight: 800;\n font-size: inherit;\n letter-spacing: -0.05em;\n }\n `,\n css`\n .nocolor,\n .colorful {\n padding: 0 0.05em;\n box-sizing: border-box;\n display: inline-block;\n animation-iteration-count: infinite;\n -webkit-text-fill-color: transparent;\n -webkit-background-clip: text !important;\n background-clip: text !important;\n }\n .colorful {\n opacity: 0;\n animation-name: colorfulN;\n }\n .nocolor {\n position: absolute;\n top: 0;\n background: var(--${cssGlobalVars.clipBackground});\n }\n `,\n])\nexport class Overbreath extends GodownElement {\n @property() text: string | string[];\n @property() duration: string;\n @property() speedup: string;\n\n protected render() {\n const texts = this.getTexts();\n const len = texts.length;\n const gap = 100 / 2 / len;\n const duration = this.parseDuration() || len * 2 + 2;\n const t = duration / len;\n\n return html`${texts.map(this.renderText)}\n ${htmlStyle(\n `.colorful{animation-duration:${duration}s;}` +\n `@keyframes colorfulN{0%,${gap * 3}%{opacity:0;}${gap}%,${gap * 2}%{opacity: 1;}}` +\n texts\n .map((_, index) => {\n const number = index + 1;\n const delay = -1 * t * (len - (number - 2));\n const defaultNumber = ((number - 1) % 3) + 1;\n return `.rel:nth-child(${number}) .colorful{animation-delay:${delay}s;background:var(--${cssScope}--${number},var(--${cssScope}--${defaultNumber}));}`;\n })\n .join(\"\"),\n )}`;\n }\n\n protected renderText(text: string) {\n return html`<span class=\"rel\">\n <span class=\"nocolor\">${text}</span>\n <span class=\"colorful\">${text}</span>\n </span>`;\n }\n protected getTexts(): string[] {\n return Array.isArray(this.text) ? this.text : (this.text || this.textContent).split(/\\s+/).filter((x) => x);\n }\n\n protected parseDuration() {\n const { duration } = this;\n if (duration) {\n if (duration.endsWith(\"s\")) {\n return parseFloat(duration.slice(0, -1));\n } else if (duration.endsWith(\"ms\")) {\n return parseFloat(duration.slice(0, -2)) / 1000;\n }\n }\n }\n}\n\nexport default Overbreath;\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 Text } renders nowrap text.
|
6
4
|
*/
|
@@ -8,23 +6,12 @@ export declare class Text extends GodownElement {
|
|
8
6
|
/**
|
9
7
|
* Underline behavior.
|
10
8
|
*/
|
11
|
-
underline: "none" | "hover" | "active" | "always"
|
9
|
+
underline: "none" | "hover" | "active" | "always";
|
12
10
|
/**
|
13
|
-
*
|
11
|
+
* Set background-clip to text.
|
14
12
|
*/
|
15
|
-
|
16
|
-
|
17
|
-
* Text.
|
18
|
-
*/
|
19
|
-
text: string;
|
20
|
-
static styles: CSSResultGroup;
|
21
|
-
protected render(): HTMLTemplate;
|
22
|
-
private t;
|
13
|
+
clip: boolean;
|
14
|
+
protected render(): import("lit").TemplateResult<1>;
|
23
15
|
}
|
24
16
|
export default Text;
|
25
|
-
declare global {
|
26
|
-
interface HTMLElementTagNameMap {
|
27
|
-
"g-text": Text;
|
28
|
-
}
|
29
|
-
}
|
30
17
|
//# sourceMappingURL=text.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"text.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/text/text.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"text.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/text/text.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAO9D;;GAEG;AACH,qBAmDa,IAAK,SAAQ,aAAa;IACrC;;OAEG;IACS,SAAS,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAAU;IAEvE;;OAEG;IAC0B,IAAI,EAAE,OAAO,CAAC;IAE3C,SAAS,CAAC,MAAM;CAWjB;AAED,eAAe,IAAI,CAAC"}
|
@@ -1,12 +1,12 @@
|
|
1
1
|
import { __decorate } from "tslib";
|
2
|
-
import { css, html, property } from "
|
3
|
-
import {
|
4
|
-
import {
|
5
|
-
import { htmlSlot } from "../../lib/
|
6
|
-
import {
|
7
|
-
import { createScope,
|
8
|
-
const
|
9
|
-
const
|
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 } from "../../lib/directives.js";
|
6
|
+
import { GodownElement } from "../../proto/godown-element.js";
|
7
|
+
import { createScope, cssGlobalVars } from "../../styles/global.js";
|
8
|
+
const protoName = "text";
|
9
|
+
const cssScope = createScope(protoName);
|
10
10
|
/**
|
11
11
|
* {@linkcode Text } renders nowrap text.
|
12
12
|
*/
|
@@ -17,87 +17,77 @@ let Text = class Text extends GodownElement {
|
|
17
17
|
* Underline behavior.
|
18
18
|
*/
|
19
19
|
this.underline = "none";
|
20
|
-
/**
|
21
|
-
* Text format.
|
22
|
-
*/
|
23
|
-
this.case = "";
|
24
|
-
/**
|
25
|
-
* Text.
|
26
|
-
*/
|
27
|
-
this.text = "";
|
28
20
|
}
|
29
21
|
render() {
|
30
|
-
return html `<span
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
case "lower":
|
40
|
-
return text.toLowerCase();
|
41
|
-
case "camel":
|
42
|
-
return dashToCamel(text);
|
43
|
-
case "dash":
|
44
|
-
return camelToDash(text);
|
45
|
-
default:
|
46
|
-
return text[0].toUpperCase() + text.slice(1);
|
47
|
-
}
|
22
|
+
return html `<span
|
23
|
+
part="root"
|
24
|
+
class="${combine({
|
25
|
+
[this.underline || "always"]: true,
|
26
|
+
clip: this.clip,
|
27
|
+
})}"
|
28
|
+
>
|
29
|
+
${htmlSlot()}
|
30
|
+
</span>`;
|
48
31
|
}
|
49
32
|
};
|
50
|
-
Text.styles = [
|
51
|
-
GodownElement.styles,
|
52
|
-
css `
|
53
|
-
:host {
|
54
|
-
${cssvarScope}--color: currentColor;
|
55
|
-
${cssvarScope}--color-hover: currentColor;
|
56
|
-
${cssvarScope}--color-active: currentColor;
|
57
|
-
display: inline-block;
|
58
|
-
text-overflow: ellipsis;
|
59
|
-
overflow-wrap: break-word;
|
60
|
-
}
|
61
|
-
|
62
|
-
span {
|
63
|
-
white-space: nowrap;
|
64
|
-
display: block;
|
65
|
-
text-overflow: inherit;
|
66
|
-
overflow-wrap: inherit;
|
67
|
-
overflow: hidden;
|
68
|
-
color: var(${cssvarScope}--color, inherit);
|
69
|
-
}
|
70
|
-
|
71
|
-
span:hover {
|
72
|
-
color: var(${cssvarScope}--color-hover, inherit);
|
73
|
-
}
|
74
|
-
|
75
|
-
span:active {
|
76
|
-
color: var(${cssvarScope}--color-active, inherit);
|
77
|
-
}
|
78
|
-
|
79
|
-
.hover:hover,
|
80
|
-
.active:active,
|
81
|
-
.always {
|
82
|
-
text-decoration: underline;
|
83
|
-
}
|
84
|
-
|
85
|
-
.none {
|
86
|
-
text-decoration: none;
|
87
|
-
}
|
88
|
-
`,
|
89
|
-
];
|
90
33
|
__decorate([
|
91
34
|
property()
|
92
35
|
], Text.prototype, "underline", void 0);
|
93
36
|
__decorate([
|
94
|
-
property()
|
95
|
-
], Text.prototype, "
|
96
|
-
__decorate([
|
97
|
-
property()
|
98
|
-
], Text.prototype, "text", void 0);
|
37
|
+
property({ type: Boolean })
|
38
|
+
], Text.prototype, "clip", void 0);
|
99
39
|
Text = __decorate([
|
100
|
-
|
40
|
+
godown(protoName),
|
41
|
+
styles([
|
42
|
+
css `
|
43
|
+
:host {
|
44
|
+
--${cssScope}--color: currentColor;
|
45
|
+
--${cssScope}--color-hover: currentColor;
|
46
|
+
--${cssScope}--color-active: currentColor;
|
47
|
+
display: inline-block;
|
48
|
+
text-overflow: ellipsis;
|
49
|
+
overflow-wrap: break-word;
|
50
|
+
}
|
51
|
+
|
52
|
+
span {
|
53
|
+
white-space: nowrap;
|
54
|
+
width: 100%;
|
55
|
+
vertical-align: bottom;
|
56
|
+
display: inline-block;
|
57
|
+
text-overflow: inherit;
|
58
|
+
overflow-wrap: inherit;
|
59
|
+
overflow: hidden;
|
60
|
+
color: var(--${cssScope}--color, inherit);
|
61
|
+
}
|
62
|
+
|
63
|
+
span:hover {
|
64
|
+
color: var(--${cssScope}--color-hover, inherit);
|
65
|
+
}
|
66
|
+
|
67
|
+
span:active {
|
68
|
+
color: var(--${cssScope}--color-active, inherit);
|
69
|
+
}
|
70
|
+
|
71
|
+
.hover:hover,
|
72
|
+
.active:active,
|
73
|
+
.always {
|
74
|
+
text-decoration: underline;
|
75
|
+
}
|
76
|
+
|
77
|
+
.none {
|
78
|
+
text-decoration: none;
|
79
|
+
}
|
80
|
+
|
81
|
+
.clip{
|
82
|
+
background: var(--${cssGlobalVars.clipBackground});
|
83
|
+
display: inline-block;
|
84
|
+
color: transparent;
|
85
|
+
-webkit-text-fill-color: transparent;
|
86
|
+
background-clip: text;
|
87
|
+
-webkit-background-clip: text;
|
88
|
+
}
|
89
|
+
`,
|
90
|
+
])
|
101
91
|
], Text);
|
102
92
|
export { Text };
|
103
93
|
export default Text;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"text.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/text/text.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,
|
1
|
+
{"version":3,"file":"text.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/text/text.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,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEpE,MAAM,SAAS,GAAG,MAAM,CAAC;AAEzB,MAAM,QAAQ,GAAG,WAAW,CAAC,SAAS,CAAC,CAAC;AAExC;;GAEG;AAoDI,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,aAAa;IAAhC;;QACL;;WAEG;QACS,cAAS,GAA2C,MAAM,CAAC;IAkBzE,CAAC;IAXW,MAAM;QACd,OAAO,IAAI,CAAA;;eAEA,OAAO,CAAC;YACf,CAAC,IAAI,CAAC,SAAS,IAAI,QAAQ,CAAC,EAAE,IAAI;YAClC,IAAI,EAAE,IAAI,CAAC,IAAI;SAChB,CAAC;;QAEA,QAAQ,EAAE;YACN,CAAC;IACX,CAAC;CACF,CAAA;AAlBa;IAAX,QAAQ,EAAE;uCAA4D;AAK1C;IAA5B,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;kCAAe;AAThC,IAAI;IAnDhB,MAAM,CAAC,SAAS,CAAC;IACjB,MAAM,CAAC;QACN,GAAG,CAAA;;UAEK,QAAQ;UACR,QAAQ;UACR,QAAQ;;;;;;;;;;;;;;qBAcG,QAAQ;;;;qBAIR,QAAQ;;;;qBAIR,QAAQ;;;;;;;;;;;;;;0BAcH,aAAa,CAAC,cAAc;;;;;;;GAOnD;KACF,CAAC;GACW,IAAI,CAsBhB;;AAED,eAAe,IAAI,CAAC","sourcesContent":["import { css, html, property } from \"../../_deps.js\";\nimport { godown } from \"../../decorators/godown.js\";\nimport { styles } from \"../../decorators/styles.js\";\nimport { combine, htmlSlot } from \"../../lib/directives.js\";\nimport { GodownElement } from \"../../proto/godown-element.js\";\nimport { createScope, cssGlobalVars } from \"../../styles/global.js\";\n\nconst protoName = \"text\";\n\nconst cssScope = createScope(protoName);\n\n/**\n * {@linkcode Text } renders nowrap text.\n */\n@godown(protoName)\n@styles([\n css`\n :host {\n --${cssScope}--color: currentColor;\n --${cssScope}--color-hover: currentColor;\n --${cssScope}--color-active: currentColor;\n display: inline-block;\n text-overflow: ellipsis;\n overflow-wrap: break-word;\n }\n\n span {\n white-space: nowrap;\n width: 100%;\n vertical-align: bottom;\n display: inline-block;\n text-overflow: inherit;\n overflow-wrap: inherit;\n overflow: hidden;\n color: var(--${cssScope}--color, inherit);\n }\n\n span:hover {\n color: var(--${cssScope}--color-hover, inherit);\n }\n\n span:active {\n color: var(--${cssScope}--color-active, inherit);\n }\n\n .hover:hover,\n .active:active,\n .always {\n text-decoration: underline;\n }\n\n .none {\n text-decoration: none;\n }\n\n .clip{\n background: var(--${cssGlobalVars.clipBackground});\n display: inline-block;\n color: transparent;\n -webkit-text-fill-color: transparent;\n background-clip: text;\n -webkit-background-clip: text;\n }\n `,\n])\nexport class Text extends GodownElement {\n /**\n * Underline behavior.\n */\n @property() underline: \"none\" | \"hover\" | \"active\" | \"always\" = \"none\";\n\n /**\n * Set background-clip to text.\n */\n @property({ type: Boolean }) clip: boolean;\n\n protected render() {\n return html`<span\n part=\"root\"\n class=\"${combine({\n [this.underline || \"always\"]: true,\n clip: this.clip,\n })}\"\n >\n ${htmlSlot()}\n </span>`;\n }\n}\n\nexport default Text;\n"]}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { type
|
2
|
-
import { GodownElement } from "../../
|
1
|
+
import { type PropertyValues } from "lit";
|
2
|
+
import { GodownElement } from "../../proto/godown-element.js";
|
3
3
|
/**
|
4
4
|
* {@linkcode Time} renders a formatting time.
|
5
5
|
*/
|
@@ -13,10 +13,6 @@ export declare class Time extends GodownElement {
|
|
13
13
|
* {@linkcode Time.fmt}
|
14
14
|
*/
|
15
15
|
format: string;
|
16
|
-
/**
|
17
|
-
* Display content.
|
18
|
-
*/
|
19
|
-
value: string;
|
20
16
|
/**
|
21
17
|
* Time.
|
22
18
|
*/
|
@@ -29,11 +25,12 @@ export declare class Time extends GodownElement {
|
|
29
25
|
* The number of milliseconds that change with each update.
|
30
26
|
*/
|
31
27
|
gap: number;
|
32
|
-
|
33
|
-
static styles: CSSResultGroup;
|
28
|
+
timeoutId: number;
|
34
29
|
protected render(): string;
|
35
30
|
protected firstUpdated(): void;
|
31
|
+
protected updated(changedProperties: PropertyValues): void;
|
36
32
|
disconnectedCallback(): void;
|
33
|
+
startTimeout(): number;
|
37
34
|
/**
|
38
35
|
* Y for year\
|
39
36
|
* M for month\
|
@@ -51,10 +48,4 @@ export declare class Time extends GodownElement {
|
|
51
48
|
static fmt(fm: string, tm: Date, em: string): string;
|
52
49
|
}
|
53
50
|
export default Time;
|
54
|
-
declare global {
|
55
|
-
interface HTMLElementTagNameMap {
|
56
|
-
"time-bar": Time;
|
57
|
-
"g-time": Time;
|
58
|
-
}
|
59
|
-
}
|
60
51
|
//# sourceMappingURL=time.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"time.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/text/time.ts"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"time.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/text/time.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAK1C,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAI9D;;GAEG;AACH,qBAQa,IAAK,SAAQ,aAAa;IACrC;;OAEG;IACS,MAAM,SAAO;IACzB;;;OAGG;IACS,MAAM,SAA8B;IAChD;;OAEG;IACyB,IAAI,OAAc;IAC9C;;OAEG;IACyB,OAAO,SAAK;IACxC;;OAEG;IACyB,GAAG,SAAK;IAEpC,SAAS,EAAE,MAAM,CAAC;IAElB,SAAS,CAAC,MAAM,IAAI,MAAM;IAI1B,SAAS,CAAC,YAAY;IAMtB,SAAS,CAAC,OAAO,CAAC,iBAAiB,EAAE,cAAc,GAAG,IAAI;IAS1D,oBAAoB;IAIpB,YAAY;IAMZ;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM;CA0CrD;AAED,eAAe,IAAI,CAAC"}
|
@@ -1,9 +1,10 @@
|
|
1
1
|
var Time_1;
|
2
2
|
import { __decorate } from "tslib";
|
3
|
-
import { css, property } from "
|
4
|
-
import {
|
5
|
-
import
|
6
|
-
|
3
|
+
import { css, property } from "../../_deps.js";
|
4
|
+
import { godown } from "../../decorators/godown.js";
|
5
|
+
import styles from "../../decorators/styles.js";
|
6
|
+
import { GodownElement } from "../../proto/godown-element.js";
|
7
|
+
const protoName = "time";
|
7
8
|
/**
|
8
9
|
* {@linkcode Time} renders a formatting time.
|
9
10
|
*/
|
@@ -19,10 +20,6 @@ let Time = Time_1 = class Time extends GodownElement {
|
|
19
20
|
* {@linkcode Time.fmt}
|
20
21
|
*/
|
21
22
|
this.format = "YYYY-MM-DD hh:mm:ss UTFZ";
|
22
|
-
/**
|
23
|
-
* Display content.
|
24
|
-
*/
|
25
|
-
this.value = "";
|
26
23
|
/**
|
27
24
|
* Time.
|
28
25
|
*/
|
@@ -37,17 +34,28 @@ let Time = Time_1 = class Time extends GodownElement {
|
|
37
34
|
this.gap = 0;
|
38
35
|
}
|
39
36
|
render() {
|
40
|
-
return
|
37
|
+
return Time_1.fmt(this.format, this.time, this.escape);
|
41
38
|
}
|
42
39
|
firstUpdated() {
|
43
40
|
if (this.timeout) {
|
44
|
-
this.
|
45
|
-
|
46
|
-
|
41
|
+
this.timeoutId = this.startTimeout();
|
42
|
+
}
|
43
|
+
}
|
44
|
+
updated(changedProperties) {
|
45
|
+
if (changedProperties.has("timeout")) {
|
46
|
+
clearInterval(this.timeoutId);
|
47
|
+
if (this.timeout) {
|
48
|
+
this.timeoutId = this.startTimeout();
|
49
|
+
}
|
47
50
|
}
|
48
51
|
}
|
49
52
|
disconnectedCallback() {
|
50
|
-
clearInterval(this.
|
53
|
+
clearInterval(this.timeoutId);
|
54
|
+
}
|
55
|
+
startTimeout() {
|
56
|
+
return setInterval(() => {
|
57
|
+
this.time = new Date(this.time.getTime() + (this.gap || this.timeout));
|
58
|
+
}, Math.abs(this.timeout));
|
51
59
|
}
|
52
60
|
/**
|
53
61
|
* Y for year\
|
@@ -67,8 +75,9 @@ let Time = Time_1 = class Time extends GodownElement {
|
|
67
75
|
if (!fm) {
|
68
76
|
return fm;
|
69
77
|
}
|
78
|
+
tm = typeof tm === "string" ? new Date(tm) : tm;
|
70
79
|
if (isNaN(tm.getTime())) {
|
71
|
-
return
|
80
|
+
return fm;
|
72
81
|
}
|
73
82
|
const rest = [];
|
74
83
|
const replaced = `${em}${em}`;
|
@@ -93,12 +102,7 @@ let Time = Time_1 = class Time extends GodownElement {
|
|
93
102
|
const result = [];
|
94
103
|
for (const f of fm.split("").reverse()) {
|
95
104
|
const s = switcher[f]?.pop();
|
96
|
-
|
97
|
-
result.push(s);
|
98
|
-
}
|
99
|
-
else {
|
100
|
-
result.push(f);
|
101
|
-
}
|
105
|
+
result.push(s ? s : f);
|
102
106
|
}
|
103
107
|
return result
|
104
108
|
.reverse()
|
@@ -108,22 +112,12 @@ let Time = Time_1 = class Time extends GodownElement {
|
|
108
112
|
});
|
109
113
|
}
|
110
114
|
};
|
111
|
-
Time.styles = [
|
112
|
-
css `
|
113
|
-
:host {
|
114
|
-
text-align: center;
|
115
|
-
}
|
116
|
-
`,
|
117
|
-
];
|
118
115
|
__decorate([
|
119
116
|
property()
|
120
117
|
], Time.prototype, "escape", void 0);
|
121
118
|
__decorate([
|
122
119
|
property()
|
123
120
|
], Time.prototype, "format", void 0);
|
124
|
-
__decorate([
|
125
|
-
property()
|
126
|
-
], Time.prototype, "value", void 0);
|
127
121
|
__decorate([
|
128
122
|
property({ type: Object })
|
129
123
|
], Time.prototype, "time", void 0);
|
@@ -134,7 +128,14 @@ __decorate([
|
|
134
128
|
property({ type: Number })
|
135
129
|
], Time.prototype, "gap", void 0);
|
136
130
|
Time = Time_1 = __decorate([
|
137
|
-
|
131
|
+
godown(protoName),
|
132
|
+
styles([
|
133
|
+
css `
|
134
|
+
:host {
|
135
|
+
text-align: center;
|
136
|
+
}
|
137
|
+
`,
|
138
|
+
])
|
138
139
|
], Time);
|
139
140
|
export { Time };
|
140
141
|
export default Time;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"time.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/text/time.ts"],"names":[],"mappings":";;
|
1
|
+
{"version":3,"file":"time.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/text/time.ts"],"names":[],"mappings":";;AAEA,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AA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E,IAAI,EAAE,MAAM,EAAE,CAAC;kCAAmB;AAIlB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;qCAAa;AAIZ;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;iCAAS;AArBzB,IAAI;IARhB,MAAM,CAAC,SAAS,CAAC;IACjB,MAAM,CAAC;QACN,GAAG,CAAA;;;;GAIF;KACF,CAAC;GACW,IAAI,CA8GhB;;AAED,eAAe,IAAI,CAAC","sourcesContent":["import { type PropertyValues } from \"lit\";\n\nimport { css, property } from \"../../_deps.js\";\nimport { godown } from \"../../decorators/godown.js\";\nimport styles from \"../../decorators/styles.js\";\nimport { GodownElement } from \"../../proto/godown-element.js\";\n\nconst protoName = \"time\";\n\n/**\n * {@linkcode Time} renders a formatting time.\n */\n@godown(protoName)\n@styles([\n css`\n :host {\n text-align: center;\n }\n `,\n])\nexport class Time extends GodownElement {\n /**\n * Cancels the next character formatting.\n */\n @property() escape = \"%\";\n /**\n * Format strings.\n * {@linkcode Time.fmt}\n */\n @property() format = \"YYYY-MM-DD hh:mm:ss UTFZ\";\n /**\n * Time.\n */\n @property({ type: Object }) time = new Date();\n /**\n * If there is a value, update every gap or timeout.\n */\n @property({ type: Number }) timeout = 0;\n /**\n * The number of milliseconds that change with each update.\n */\n @property({ type: Number }) gap = 0;\n\n timeoutId: number;\n\n protected render(): string {\n return Time.fmt(this.format, this.time, this.escape);\n }\n\n protected firstUpdated() {\n if (this.timeout) {\n this.timeoutId = this.startTimeout();\n }\n }\n\n protected updated(changedProperties: PropertyValues): void {\n if (changedProperties.has(\"timeout\")) {\n clearInterval(this.timeoutId);\n if (this.timeout) {\n this.timeoutId = this.startTimeout();\n }\n }\n }\n\n disconnectedCallback() {\n clearInterval(this.timeoutId);\n }\n\n startTimeout() {\n return setInterval(() => {\n this.time = new Date(this.time.getTime() + (this.gap || this.timeout));\n }, Math.abs(this.timeout));\n }\n\n /**\n * Y for year\\\n * M for month\\\n * D for day\\\n * h for hour\\\n * m for minute\\\n * s for second\\\n * S for milli Second\\\n * Z for time zone.\n *\n * @param fm Format string.\n * @param tm Time.\n * @returns Format result\n */\n static fmt(fm: string, tm: Date, em: string): string {\n if (!fm) {\n return fm;\n }\n tm = typeof tm === \"string\" ? new Date(tm) : tm;\n if (isNaN(tm.getTime())) {\n return fm;\n }\n const rest = [];\n const replaced = `${em}${em}`;\n fm = fm.replace(new RegExp(`${em}([ZYMDhmsS${em}])`, \"g\"), (_, p1) => {\n rest.push(p1);\n return replaced;\n });\n\n function formatNumber(n: number, max = 2) {\n return n.toString().padStart(max, \"0\").split(\"\");\n }\n\n const z = tm.getTimezoneOffset() / -60;\n const switcher: Record<string, string[]> = {\n Z: [z >= 0 ? \"+\" + z.toString() : z.toString()],\n Y: tm.getFullYear().toString().split(\"\"),\n M: formatNumber(tm.getMonth() + 1),\n D: formatNumber(tm.getDate()),\n h: formatNumber(tm.getHours()),\n m: formatNumber(tm.getMinutes()),\n s: formatNumber(tm.getSeconds()),\n S: formatNumber(tm.getMilliseconds(), 3),\n };\n const result: string[] = [];\n for (const f of fm.split(\"\").reverse()) {\n const s = switcher[f]?.pop();\n result.push(s ? s : f);\n }\n return result\n .reverse()\n .join(\"\")\n .replace(new RegExp(replaced, \"g\"), () => {\n return rest.shift();\n });\n }\n}\n\nexport default Time;\n"]}
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import { type PropertyValueMap } from "
|
2
|
-
import {
|
3
|
-
import { GodownElement } from "../../supers/root.js";
|
1
|
+
import { type PropertyValueMap } from "../../_deps.js";
|
2
|
+
import { GodownElement } from "../../proto/godown-element.js";
|
4
3
|
/**
|
5
4
|
* {@linkcode Typewriter} renders a typewriter effect to text.
|
6
5
|
*/
|
@@ -43,8 +42,7 @@ export declare class Typewriter extends GodownElement {
|
|
43
42
|
* {@linkcode Typewriter.text} length.
|
44
43
|
*/
|
45
44
|
get len(): number;
|
46
|
-
|
47
|
-
protected render(): HTMLTemplate;
|
45
|
+
protected render(): import("lit").TemplateResult<1>;
|
48
46
|
protected firstUpdated(): void;
|
49
47
|
protected updated(changedProperties: PropertyValueMap<this>): void;
|
50
48
|
write(at?: number): void;
|
@@ -52,10 +50,4 @@ export declare class Typewriter extends GodownElement {
|
|
52
50
|
end(): void;
|
53
51
|
}
|
54
52
|
export default Typewriter;
|
55
|
-
declare global {
|
56
|
-
interface HTMLElementTagNameMap {
|
57
|
-
"typewriter-text": Typewriter;
|
58
|
-
"g-typewriter": Typewriter;
|
59
|
-
}
|
60
|
-
}
|
61
53
|
//# sourceMappingURL=typewriter.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"typewriter.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/text/typewriter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,gBAAgB,EAAgB,MAAM,gBAAgB,CAAC;
|
1
|
+
{"version":3,"file":"typewriter.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/text/typewriter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,gBAAgB,EAAgB,MAAM,gBAAgB,CAAC;AAK1F,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAM9D;;GAEG;AACH,qBAiCa,UAAW,SAAQ,aAAa;IAC3C;;OAEG;IACS,IAAI,SAAM;IACtB;;OAEG;IAC0B,OAAO,UAAS;IAC7C;;OAEG;IAC0B,KAAK,UAAS;IAC3C;;OAEG;IACyB,GAAG,SAAO;IACtC;;OAEG;IACyB,GAAG,SAAM;IACrC;;OAEG;IACyB,KAAK,SAAK;IACtC;;OAEG;IACyB,KAAK,SAAK;IACtC;;OAEG;IACM,OAAO,SAAM;IAEtB,SAAS,EAAE,MAAM,CAAC;IACN,EAAE,EAAE,WAAW,CAAC;IAE5B;;OAEG;IACH,IAAI,GAAG,WAEN;IAED,SAAS,CAAC,MAAM;IAIhB,SAAS,CAAC,YAAY;IAStB,SAAS,CAAC,OAAO,CAAC,iBAAiB,EAAE,gBAAgB,CAAC,IAAI,CAAC;IAM3D,KAAK,CAAC,EAAE,SAAa;IAYrB,IAAI;IAIJ,GAAG;CAGJ;AAED,eAAe,UAAU,CAAC"}
|
@@ -1,11 +1,13 @@
|
|
1
1
|
import { __decorate } from "tslib";
|
2
|
-
import { css, html, property, query, state } from "
|
3
|
-
import {
|
4
|
-
import {
|
2
|
+
import { css, html, property, query, state } from "../../_deps.js";
|
3
|
+
import { godown } from "../../decorators/godown.js";
|
4
|
+
import { styles } from "../../decorators/styles.js";
|
5
|
+
import { htmlSlot } from "../../lib/directives.js";
|
5
6
|
import { random } from "../../lib/utils.js";
|
6
|
-
import {
|
7
|
-
|
8
|
-
const
|
7
|
+
import { GodownElement } from "../../proto/godown-element.js";
|
8
|
+
import { createScope } from "../../styles/global.js";
|
9
|
+
const protoName = "typewriter";
|
10
|
+
const cssScope = createScope(protoName);
|
9
11
|
/**
|
10
12
|
* {@linkcode Typewriter} renders a typewriter effect to text.
|
11
13
|
*/
|
@@ -52,7 +54,7 @@ let Typewriter = class Typewriter extends GodownElement {
|
|
52
54
|
return this.text.length;
|
53
55
|
}
|
54
56
|
render() {
|
55
|
-
return html `${htmlSlot()}${this.content}<i class="${(this.ended && "hidden") || ""}"></i>`;
|
57
|
+
return html `${htmlSlot()}${this.content}<i part="cursor" class="${(this.ended && "hidden") || ""}"></i>`;
|
56
58
|
}
|
57
59
|
firstUpdated() {
|
58
60
|
if (!this.text) {
|
@@ -85,38 +87,6 @@ let Typewriter = class Typewriter extends GodownElement {
|
|
85
87
|
this.ended = true;
|
86
88
|
}
|
87
89
|
};
|
88
|
-
Typewriter.styles = [
|
89
|
-
css `
|
90
|
-
:host {
|
91
|
-
${cssvarScope}--cursor-width: .05em;
|
92
|
-
font-family: monospace;
|
93
|
-
white-space: nowrap;
|
94
|
-
}
|
95
|
-
|
96
|
-
i {
|
97
|
-
border-right: var(${cssvarScope}--cursor-width) solid;
|
98
|
-
margin-left: 0.02em;
|
99
|
-
animation: s 1.5s steps(1) infinite;
|
100
|
-
}
|
101
|
-
|
102
|
-
@keyframes s {
|
103
|
-
0% {
|
104
|
-
border-color: currentColor;
|
105
|
-
}
|
106
|
-
50% {
|
107
|
-
border-color: transparent;
|
108
|
-
}
|
109
|
-
}
|
110
|
-
|
111
|
-
slot {
|
112
|
-
display: none;
|
113
|
-
}
|
114
|
-
|
115
|
-
.hidden {
|
116
|
-
visibility: hidden;
|
117
|
-
}
|
118
|
-
`,
|
119
|
-
];
|
120
90
|
__decorate([
|
121
91
|
property()
|
122
92
|
], Typewriter.prototype, "text", void 0);
|
@@ -145,7 +115,39 @@ __decorate([
|
|
145
115
|
query("i")
|
146
116
|
], Typewriter.prototype, "_i", void 0);
|
147
117
|
Typewriter = __decorate([
|
148
|
-
|
118
|
+
godown(protoName),
|
119
|
+
styles([
|
120
|
+
css `
|
121
|
+
:host {
|
122
|
+
--${cssScope}--cursor-width: .05em;
|
123
|
+
font-family: monospace;
|
124
|
+
white-space: nowrap;
|
125
|
+
}
|
126
|
+
|
127
|
+
i {
|
128
|
+
border-right: var(--${cssScope}--cursor-width) solid;
|
129
|
+
margin-left: 0.02em;
|
130
|
+
animation: s 1.5s steps(1) infinite;
|
131
|
+
}
|
132
|
+
|
133
|
+
@keyframes s {
|
134
|
+
0% {
|
135
|
+
border-color: currentColor;
|
136
|
+
}
|
137
|
+
50% {
|
138
|
+
border-color: transparent;
|
139
|
+
}
|
140
|
+
}
|
141
|
+
|
142
|
+
slot {
|
143
|
+
display: none;
|
144
|
+
}
|
145
|
+
|
146
|
+
.hidden {
|
147
|
+
visibility: hidden;
|
148
|
+
}
|
149
|
+
`,
|
150
|
+
])
|
149
151
|
], Typewriter);
|
150
152
|
export { Typewriter };
|
151
153
|
export default Typewriter;
|