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
package/a.d.ts
DELETED
package/a.d.ts.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"a.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["a.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC"}
|
package/a.js
DELETED
package/a.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"a.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["a.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC","sourcesContent":["export { default } from \"./web-components/a/a.js\";\n"]}
|
package/clip.d.ts
DELETED
package/clip.d.ts.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"clip.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["clip.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC"}
|
package/clip.js
DELETED
package/clip.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"clip.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["clip.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC","sourcesContent":["export { default } from \"./web-components/text/clip.js\";\n"]}
|
package/decorators/define.d.ts
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
import type GodownElement from "../godown-element.js";
|
2
|
-
/**
|
3
|
-
* Define a custom element.
|
4
|
-
* @param name Name for the new custom element.
|
5
|
-
*/
|
6
|
-
export declare const define: (name?: string, options?: any) => (constructor: CustomElementConstructor | typeof GodownElement) => void;
|
7
|
-
//# sourceMappingURL=define.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"define.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["decorators/define.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,aAAa,MAAM,sBAAsB,CAAC;AAEtD;;;GAGG;AACH,eAAO,MAAM,MAAM,UACT,MAAM,YAAY,GAAG,mBAEf,wBAAwB,GAAG,oBAAoB,SAE5D,CAAC"}
|
package/decorators/define.js
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
import conf from "../conf.js";
|
2
|
-
/**
|
3
|
-
* Define a custom element.
|
4
|
-
* @param name Name for the new custom element.
|
5
|
-
*/
|
6
|
-
export const define = (name, options) =>
|
7
|
-
//
|
8
|
-
(constructor) => {
|
9
|
-
conf.define(name, constructor, options);
|
10
|
-
};
|
11
|
-
//# sourceMappingURL=define.js.map
|
package/decorators/define.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"define.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["decorators/define.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,YAAY,CAAC;AAG9B;;;GAGG;AACH,MAAM,CAAC,MAAM,MAAM,GACjB,CAAC,IAAa,EAAE,OAAa,EAAE,EAAE;AACjC,EAAE;AACF,CAAC,WAA4D,EAAE,EAAE;IAC/D,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;AAC1C,CAAC,CAAC","sourcesContent":["import conf from \"../conf.js\";\nimport type GodownElement from \"../godown-element.js\";\n\n/**\n * Define a custom element.\n * @param name Name for the new custom element.\n */\nexport const define =\n (name?: string, options?: any) =>\n //\n (constructor: CustomElementConstructor | typeof GodownElement) => {\n conf.define(name, constructor, options);\n };\n"]}
|
package/details-group.d.ts
DELETED
package/details-group.d.ts.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"details-group.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["details-group.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yCAAyC,CAAC"}
|
package/details-group.js
DELETED
package/details-group.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"details-group.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["details-group.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yCAAyC,CAAC","sourcesContent":["export { default } from \"./web-components/group/details-group.js\";\n"]}
|
package/godown-element.d.ts.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"godown-element.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["godown-element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAEjC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,EAAE,KAAK,UAAU,EAAoB,KAAK,WAAW,EAAE,KAAK,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACnH,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,KAAK,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE1F;;GAEG;AACH,cAAM,aAAc,SAAQ,UAAU;IACpC,MAAM,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC;IACvB,MAAM,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IAE/B;;OAEG;IACH,IAAI,QAAQ,IAAI,WAAW,EAAE,CAE5B;IAED;;OAEG;IACH,IAAI,aAAa,IAAI,IAAI,EAAE,CAE1B;IAED;;OAEG;IACH,IAAI,KAAK,IAAI,eAAe,CAE3B;IAED;;OAEG;IACH,IAAI,MAAM,IAAI,eAAe,EAAE,CAE9B;IAED;;OAEG;IACH,IAAI,eAAe,IAAI,eAAe,EAAE,CAEvC;IAED;;OAEG;IACH,IAAI,YAAY,IAAI,MAAM,EAAE,CAE3B;IAED;;;;;OAKG;IACH,SAAS,CAAC,QAAQ,EAAE,MAAM,GAAG,eAAe,GAAG,IAAI;IAInD;;OAEG;IACH,IAAI,YAAY,IAAI,MAAM,CAEzB;IAED;;OAEG;IACH,IAAI,aAAa,IAAI,MAAM,CAE1B;IAED,OAAO,CAAC,QAAQ,CAAmB;IAEnC;;;;;;OAMG;IACH,QAAQ,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,UAAU,EAAE,KAAK,CAAC,EAAE,WAAW;IAIvG;;;;;;OAMG;IACH,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,GAAG,YAAY;IAI1E,eAAe;IAIf,OAAO,CAAC,QAAQ,CAAyE;gBAE7E,MAAM,EAAE,OAAO,aAAa,CAAC,SAAS,CAAC,QAAQ;IAS3D,iBAAiB;IAajB,oBAAoB;IAIpB,KAAK,CAAC,GAAG,CAAC,EAAE,GAAG;IAIf,OAAO;IAIP,OAAO,CAAC,GAAG,CAAC,EAAE,GAAG;IAMjB,iBAAiB,CAAC,CAAC,SAAS,OAAO,GAAG,WAAW,EAAE,SAAS,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,GAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC,CAAC,CAAQ,GAAG,CAAC;IAI/J,oBAAoB,CAAC,CAAC,SAAS,OAAO,GAAG,WAAW,EAAE,SAAS,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,GAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAQ,GAAG,CAAC,EAAE;IAI1K;;;;;;;;;;;;OAYG;IACH,WAAW,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE;CAKpC;AAED,eAAe,aAAa,CAAC"}
|
package/godown-element.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"godown-element.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["godown-element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAGjC,OAAO,EAAmB,gBAAgB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CAAC;IAED,oBAAoB;QAClB,IAAI,CAAC,eAAe,EAAE,CAAC;IACzB,CAAC;IAED,KAAK,CAAC,GAAS;QACb,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC;IACzB,CAAC;IAED,OAAO;QACL,IAAI,CAAC,oBAAoB,EAAE,CAAC;IAC9B,CAAC;IAED,OAAO,CAAC,GAAS;QACf,IAAI,CAAC,OAAO,EAAE,CAAC;QACf,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACzB,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAClB,CAAC;IAED,iBAAiB,CAAkC,SAAkD,EAAE,OAAgD,IAAI;QACzJ,OAAO,iBAAiB,CAAI,SAAS,EAAE,IAAI,CAAC,CAAC;IAC/C,CAAC;IAED,oBAAoB,CAAkC,SAAqD,EAAE,OAAmD,IAAI;QAClK,OAAO,oBAAoB,CAAI,SAAS,EAAE,IAAI,CAAC,CAAC;IAClD,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,WAAW,CAAC,GAAG,MAAoB;QACjC,MAAM,KAAK,GAAG,IAAI,aAAa,EAAE,CAAC;QAClC,MAAM,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;QAC9D,IAAI,CAAC,UAAU,CAAC,kBAAkB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACjD,CAAC;CACF;AAED,eAAe,aAAa,CAAC","sourcesContent":["import { LitElement } from \"lit\";\n\nimport type { ConfType } from \"./conf\";\nimport { type AddOptions, EventsCollection, type EventsNames, type ListenerFunc } from \"./lib/event-collection.js\";\nimport { deepQuerySelector, deepQuerySelectorAll, type LikeString } from \"./lib/utils.js\";\n\n/**\n * Global element.\n */\nclass GodownElement extends LitElement {\n static conf?: ConfType;\n static elementTagName?: string;\n\n /**\n * No named slot element's assignedElements, as HTMLElement[].\n */\n get assigned(): HTMLElement[] {\n return this._slot?.assignedElements() as HTMLElement[];\n }\n\n /**\n * No named slot element's assignedElements, as Node[].\n */\n get assignedNodes(): Node[] {\n return this._slot?.assignedNodes();\n }\n\n /**\n * No named slot element.\n */\n get _slot(): HTMLSlotElement {\n return this.shadowRoot.querySelector<HTMLSlotElement>(\"slot:not([name])\");\n }\n\n /**\n * Slot elements.\n */\n get _slots(): HTMLSlotElement[] {\n return [...this.shadowRoot.querySelectorAll<HTMLSlotElement>(\"slot\")];\n }\n\n /**\n * Named slot elements.\n */\n get slottedChildren(): HTMLSlotElement[] {\n return [...this.querySelectorAll<HTMLSlotElement>(\"[slot]\")];\n }\n\n /**\n * Named slot elements' slot attribute.\n */\n get slottedNames(): string[] {\n return this.slottedChildren.map((c) => c.getAttribute(\"slot\")).filter((v) => v);\n }\n\n /**\n * Query for a element with slot names\n *\n * @param slotName Slot name.\n * @returns Slot element.\n */\n querySlot(slotName: string): HTMLSlotElement | null {\n return this.querySelector<HTMLSlotElement>(`[slot=${slotName}]`);\n }\n\n /**\n * Width of (`this.offsetParent` or `document.body`).\n */\n get offsetsWidth(): number {\n return this.offsetParent?.clientWidth ?? document.body.offsetWidth;\n }\n\n /**\n * Height of (`this.offsetParent` or `document.body`).\n */\n get offsetsHeight(): number {\n return this.offsetParent?.clientHeight ?? document.body.offsetHeight;\n }\n\n private __events: EventsCollection;\n\n /**\n * ```\n * src.addEventListener(\"type\", listener)\n * //as\n * this.addEvent(src, \"type\", listener)\n * ```\n */\n addEvent(src: any, type: EventsNames, listener: ListenerFunc, options?: AddOptions, alias?: PropertyKey) {\n this.__events.addEvent(src, type, listener, options, alias);\n }\n\n /**\n * ```\n * src.removeEventListener(\"type\", listener)\n * //as\n * this.removeEvent(src, \"type\", listener)\n * ```\n */\n removeEvent(src: any, type: EventsNames, alias: PropertyKey | ListenerFunc) {\n this.__events.removeEvent(src, type, alias);\n }\n\n removeAllEvents() {\n this.__events.removeAllEvents();\n }\n\n private __assign: void | (Record<string, any> & { classList?: DOMTokenList | string[] });\n\n constructor(assign: typeof GodownElement.prototype.__assign) {\n super();\n this.__events = new EventsCollection();\n this.__assign = {\n ...GodownElement.conf?.assign,\n ...assign,\n };\n }\n\n connectedCallback() {\n super.connectedCallback();\n if (this.__assign) {\n this.__assign.__assign = null;\n const classList = \"classList\";\n if (classList in this.__assign) {\n this.classList.add(...this.__assign[classList]);\n delete this.__assign[classList];\n }\n Object.assign(this, this.__assign);\n }\n }\n\n disconnectedCallback() {\n this.removeAllEvents();\n }\n\n mount(arg?: any) {\n this.firstUpdated(arg);\n }\n\n unmount() {\n this.disconnectedCallback();\n }\n\n remount(arg?: any) {\n this.unmount();\n this.connectedCallback();\n this.mount(arg);\n }\n\n deepQuerySelector<E extends Element = HTMLElement>(selectors: Parameters<typeof deepQuerySelector>[0], root: Parameters<typeof deepQuerySelector>[1] = this): E {\n return deepQuerySelector<E>(selectors, root);\n }\n\n deepQuerySelectorAll<E extends Element = HTMLElement>(selectors: Parameters<typeof deepQuerySelectorAll>[0], root: Parameters<typeof deepQuerySelectorAll>[1] = this): E[] {\n return deepQuerySelectorAll<E>(selectors, root);\n }\n\n /**\n * Add styles to shadowRoot.\n *\n * @param styles css strings\n *\n * @example\n * ```\n * this.applyStyles(\n * \"...\",\n * css`...`,\n * )\n * ```\n */\n adoptStyles(...styles: LikeString[]) {\n const sheet = new CSSStyleSheet();\n styles.forEach((style) => sheet.insertRule(style.toString()));\n this.shadowRoot.adoptedStyleSheets.push(sheet);\n }\n}\n\nexport default GodownElement;\n"]}
|
@@ -1,14 +0,0 @@
|
|
1
|
-
export type EventsMaps = WindowEventMap & DocumentEventMap;
|
2
|
-
export type EventsNames = keyof EventsMaps;
|
3
|
-
export type EventsTypes = GlobalEventHandlersEventMap[keyof GlobalEventHandlersEventMap];
|
4
|
-
export type ListenerFunc = (event?: EventsTypes) => any | EventListenerOrEventListenerObject;
|
5
|
-
export type AddOptions = boolean | AddEventListenerOptions;
|
6
|
-
export declare class EventsCollection {
|
7
|
-
protected Listeners: Map<"abort" | "animationcancel" | "animationend" | "animationiteration" | "animationstart" | "auxclick" | "beforeinput" | "blur" | "cancel" | "canplay" | "canplaythrough" | "change" | "click" | "close" | "compositionend" | "compositionstart" | "compositionupdate" | "contextmenu" | "copy" | "cuechange" | "cut" | "dblclick" | "drag" | "dragend" | "dragenter" | "dragleave" | "dragover" | "dragstart" | "drop" | "durationchange" | "emptied" | "ended" | "error" | "focus" | "focusin" | "focusout" | "formdata" | "gotpointercapture" | "input" | "invalid" | "keydown" | "keypress" | "keyup" | "load" | "loadeddata" | "loadedmetadata" | "loadstart" | "lostpointercapture" | "mousedown" | "mouseenter" | "mouseleave" | "mousemove" | "mouseout" | "mouseover" | "mouseup" | "paste" | "pause" | "play" | "playing" | "pointercancel" | "pointerdown" | "pointerenter" | "pointerleave" | "pointermove" | "pointerout" | "pointerover" | "pointerup" | "progress" | "ratechange" | "reset" | "resize" | "scroll" | "scrollend" | "securitypolicyviolation" | "seeked" | "seeking" | "select" | "selectionchange" | "selectstart" | "slotchange" | "stalled" | "submit" | "suspend" | "timeupdate" | "toggle" | "touchcancel" | "touchend" | "touchmove" | "touchstart" | "transitioncancel" | "transitionend" | "transitionrun" | "transitionstart" | "volumechange" | "waiting" | "webkitanimationend" | "webkitanimationiteration" | "webkitanimationstart" | "webkittransitionend" | "wheel" | "DOMContentLoaded" | "devicemotion" | "deviceorientation" | "gamepadconnected" | "gamepaddisconnected" | "orientationchange" | "afterprint" | "beforeprint" | "beforeunload" | "hashchange" | "languagechange" | "message" | "messageerror" | "offline" | "online" | "pagehide" | "pageshow" | "popstate" | "rejectionhandled" | "storage" | "unhandledrejection" | "unload" | "fullscreenchange" | "fullscreenerror" | "pointerlockchange" | "pointerlockerror" | "readystatechange" | "visibilitychange" | "godown-define", Map<HTMLElement, Set<ListenerFunc>>>;
|
8
|
-
protected ListenersAlias: Map<PropertyKey, ListenerFunc>;
|
9
|
-
addEvent(src: HTMLElement, type: EventsNames, listener: ListenerFunc, options?: AddOptions, alias?: PropertyKey): void;
|
10
|
-
removeEvent(src: HTMLElement, type: EventsNames, alias: PropertyKey | ListenerFunc, option?: EventListenerOptions): void;
|
11
|
-
removeAllEvents(): void;
|
12
|
-
}
|
13
|
-
export default EventsCollection;
|
14
|
-
//# sourceMappingURL=event-collection.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"event-collection.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["lib/event-collection.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG,cAAc,GAAG,gBAAgB,CAAC;AAC3D,MAAM,MAAM,WAAW,GAAG,MAAM,UAAU,CAAC;AAC3C,MAAM,MAAM,WAAW,GAAG,2BAA2B,CAAC,MAAM,2BAA2B,CAAC,CAAC;AACzF,MAAM,MAAM,YAAY,GAAG,CAAC,KAAK,CAAC,EAAE,WAAW,KAAK,GAAG,GAAG,kCAAkC,CAAC;AAC7F,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,uBAAuB,CAAC;AAE3D,qBAAa,gBAAgB;IAC3B,SAAS,CAAC,SAAS,w9DAA+D;IAClF,SAAS,CAAC,cAAc,iCAAwC;IAEhE,QAAQ,CAAC,GAAG,EAAE,WAAW,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,UAAU,EAAE,KAAK,CAAC,EAAE,WAAW;IAwB/G,WAAW,CAAC,GAAG,EAAE,WAAW,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,GAAG,YAAY,EAAE,MAAM,CAAC,EAAE,oBAAoB;IA0BjH,eAAe;CAYhB;AAED,eAAe,gBAAgB,CAAC"}
|
package/lib/event-collection.js
DELETED
@@ -1,71 +0,0 @@
|
|
1
|
-
export class EventsCollection {
|
2
|
-
constructor() {
|
3
|
-
this.Listeners = new Map();
|
4
|
-
this.ListenersAlias = new Map();
|
5
|
-
}
|
6
|
-
addEvent(src, type, listener, options, alias) {
|
7
|
-
const eType = this.Listeners.get(type);
|
8
|
-
if (eType) {
|
9
|
-
const eElem = eType.get(src);
|
10
|
-
if (eElem) {
|
11
|
-
eElem.add(listener);
|
12
|
-
}
|
13
|
-
else {
|
14
|
-
const set = new Set();
|
15
|
-
set.add(listener);
|
16
|
-
eType.set(src, set);
|
17
|
-
}
|
18
|
-
}
|
19
|
-
else {
|
20
|
-
const s = new Set();
|
21
|
-
s.add(listener);
|
22
|
-
const m = new Map();
|
23
|
-
m.set(src, s);
|
24
|
-
this.Listeners.set(type, m);
|
25
|
-
}
|
26
|
-
src.addEventListener(type, listener, options);
|
27
|
-
if (alias) {
|
28
|
-
this.ListenersAlias.set(alias, listener);
|
29
|
-
}
|
30
|
-
}
|
31
|
-
removeEvent(src, type, alias, option) {
|
32
|
-
const eType = this.Listeners.get(type);
|
33
|
-
if (eType) {
|
34
|
-
const eSet = eType.get(src);
|
35
|
-
if (eSet) {
|
36
|
-
if (typeof alias !== "function") {
|
37
|
-
const listener = this.ListenersAlias.get(alias);
|
38
|
-
if (listener) {
|
39
|
-
eSet.delete(listener);
|
40
|
-
src.removeEventListener(type, listener, option);
|
41
|
-
}
|
42
|
-
}
|
43
|
-
else {
|
44
|
-
eSet.forEach((listener) => {
|
45
|
-
src.removeEventListener(type, listener, option);
|
46
|
-
});
|
47
|
-
}
|
48
|
-
if (!eSet.size) {
|
49
|
-
eType.delete(src);
|
50
|
-
}
|
51
|
-
if (!eType.size) {
|
52
|
-
this.Listeners.delete(type);
|
53
|
-
}
|
54
|
-
}
|
55
|
-
}
|
56
|
-
}
|
57
|
-
removeAllEvents() {
|
58
|
-
this.Listeners.forEach((typeMap, type) => {
|
59
|
-
typeMap.forEach((eventListeners, src) => {
|
60
|
-
eventListeners.forEach((listener) => {
|
61
|
-
src.removeEventListener(type, listener);
|
62
|
-
});
|
63
|
-
});
|
64
|
-
typeMap.clear();
|
65
|
-
this.Listeners.delete(type);
|
66
|
-
});
|
67
|
-
this.ListenersAlias.clear();
|
68
|
-
}
|
69
|
-
}
|
70
|
-
export default EventsCollection;
|
71
|
-
//# sourceMappingURL=event-collection.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"event-collection.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["lib/event-collection.ts"],"names":[],"mappings":"AAMA,MAAM,OAAO,gBAAgB;IAA7B;QACY,cAAS,GAAG,IAAI,GAAG,EAAoD,CAAC;QACxE,mBAAc,GAAG,IAAI,GAAG,EAA6B,CAAC;IAgElE,CAAC;IA9DC,QAAQ,CAAC,GAAgB,EAAE,IAAiB,EAAE,QAAsB,EAAE,OAAoB,EAAE,KAAmB;QAC7G,MAAM,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QACvC,IAAI,KAAK,EAAE,CAAC;YACV,MAAM,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;YAC7B,IAAI,KAAK,EAAE,CAAC;gBACV,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;YACtB,CAAC;iBAAM,CAAC;gBACN,MAAM,GAAG,GAAG,IAAI,GAAG,EAAgB,CAAC;gBACpC,GAAG,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;gBAClB,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;YACtB,CAAC;QACH,CAAC;aAAM,CAAC;YACN,MAAM,CAAC,GAAG,IAAI,GAAG,EAAgB,CAAC;YAClC,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;YAChB,MAAM,CAAC,GAAG,IAAI,GAAG,EAA0B,CAAC;YAC5C,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;YACd,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;QAC9B,CAAC;QACD,GAAG,CAAC,gBAAgB,CAAC,IAA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CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE;YACvC,OAAO,CAAC,OAAO,CAAC,CAAC,cAAc,EAAE,GAAG,EAAE,EAAE;gBACtC,cAAc,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,EAAE;oBAClC,GAAG,CAAC,mBAAmB,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;gBAC1C,CAAC,CAAC,CAAC;YACL,CAAC,CAAC,CAAC;YACH,OAAO,CAAC,KAAK,EAAE,CAAC;YAChB,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QAC9B,CAAC,CAAC,CAAC;QACH,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,CAAC;IAC9B,CAAC;CACF;AAED,eAAe,gBAAgB,CAAC","sourcesContent":["export type EventsMaps = WindowEventMap & DocumentEventMap;\nexport type EventsNames = keyof EventsMaps;\nexport type EventsTypes = GlobalEventHandlersEventMap[keyof GlobalEventHandlersEventMap];\nexport type ListenerFunc = (event?: EventsTypes) => any | EventListenerOrEventListenerObject;\nexport type AddOptions = boolean | AddEventListenerOptions;\n\nexport class EventsCollection {\n protected Listeners = new Map<EventsNames, Map<HTMLElement, Set<ListenerFunc>>>();\n protected ListenersAlias = new Map<PropertyKey, ListenerFunc>();\n\n addEvent(src: HTMLElement, type: EventsNames, listener: ListenerFunc, options?: AddOptions, alias?: PropertyKey) {\n const eType = this.Listeners.get(type);\n if (eType) {\n const eElem = eType.get(src);\n if (eElem) {\n eElem.add(listener);\n } else {\n const set = new Set<ListenerFunc>();\n set.add(listener);\n eType.set(src, set);\n }\n } else {\n const s = new Set<ListenerFunc>();\n s.add(listener);\n const m = new Map<any, Set<ListenerFunc>>();\n m.set(src, s);\n this.Listeners.set(type, m);\n }\n src.addEventListener(type, listener, options);\n if (alias) {\n this.ListenersAlias.set(alias, listener);\n }\n }\n\n removeEvent(src: HTMLElement, type: EventsNames, alias: PropertyKey | ListenerFunc, option?: EventListenerOptions) {\n const eType = this.Listeners.get(type);\n if (eType) {\n const eSet = eType.get(src);\n if (eSet) {\n if (typeof alias !== \"function\") {\n const listener = this.ListenersAlias.get(alias);\n if (listener) {\n eSet.delete(listener);\n src.removeEventListener(type, listener, option);\n }\n } else {\n eSet.forEach((listener) => {\n src.removeEventListener(type, listener, option);\n });\n }\n if (!eSet.size) {\n eType.delete(src);\n }\n if (!eType.size) {\n this.Listeners.delete(type);\n }\n }\n }\n }\n\n removeAllEvents() {\n this.Listeners.forEach((typeMap, type) => {\n typeMap.forEach((eventListeners, src) => {\n eventListeners.forEach((listener) => {\n src.removeEventListener(type, listener);\n });\n });\n typeMap.clear();\n this.Listeners.delete(type);\n });\n this.ListenersAlias.clear();\n }\n}\n\nexport default EventsCollection;\n"]}
|
package/lib/templates.d.ts.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"templates.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["lib/templates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAO,MAAM,KAAK,CAAC;AAEhC,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnD;;;;GAIG;AACH,eAAO,MAAM,IAAI,UAAU,MAAM,GAAG,IAAI,GAAG,MAAM,WAA2B,MAAM,GAAG,IAAI,GAAG,MAAM,gBAAgC,MAAM,GAAG,IAAI,GAAG,MAAM,SAG3I,MAAM,oCAGlB,CAAC;AAEF,UAAU,QAAQ;IAChB,IAAI,YAAY,CAAC;IACjB,CAAC,IAAI,EAAE,MAAM,GAAG,YAAY,CAAC;IAC7B,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,UAAU,GAAG,CAAC,GAAG,YAAY,CAAC;CACpE;AAED,eAAO,MAAM,QAAQ,UAQP,CAAC;AAEf,eAAO,MAAM,SAAS,QAAS,MAAM,oCAMpC,CAAC;AAIF,eAAO,MAAM,QAAQ,uCAEpB,CAAC;AAEF,eAAO,MAAM,cAAc,uCAE1B,CAAC;AAEF,eAAO,MAAM,QAAQ,UAAW,OAAO,oCAGtC,CAAC;AAEF,eAAO,MAAM,SAAS,uCAErB,CAAC;AAEF,eAAO,MAAM,MAAM,uCAElB,CAAC;AAEF,eAAO,MAAM,IAAI,uCAEhB,CAAC;AAEF,eAAO,MAAM,QAAQ,uCAEpB,CAAC;AAEF,eAAO,MAAM,MAAM,uCAElB,CAAC;AAEF,eAAO,MAAM,OAAO,UAAW,OAAO,oCAErC,CAAC;AAEF,eAAO,MAAM,OAAO,uCAEnB,CAAC;AAEF,eAAO,MAAM,KAAK;;;mBAjCc,OAAO;;;;;;kBAyBR,OAAO;;;;CAqBrC,CAAC"}
|
package/lib/templates.js
DELETED
@@ -1,76 +0,0 @@
|
|
1
|
-
import { html, svg } from "lit";
|
2
|
-
/**
|
3
|
-
* @param fill undefined: "currentColor". zero value: "none".
|
4
|
-
* @param stroke undefined: "currentColor". zero value: "none".
|
5
|
-
* @returns Function returns path needs d.
|
6
|
-
*/
|
7
|
-
export const path = (fill = "currentColor", stroke = "currentColor", strokeWidth = 3) => {
|
8
|
-
fill = fill || "none";
|
9
|
-
stroke = stroke || "none";
|
10
|
-
return (d) => {
|
11
|
-
return svg `<path d="${d}" fill="${fill}" stroke="${stroke}" stroke-width="${strokeWidth}" stroke-linecap="round" stroke-linejoin="round"></path>`;
|
12
|
-
};
|
13
|
-
};
|
14
|
-
export const htmlSlot = ((name, fallback, node) => {
|
15
|
-
if (name) {
|
16
|
-
if (fallback && node && !node.querySelector(`[slot=${name}]`)) {
|
17
|
-
return fallback;
|
18
|
-
}
|
19
|
-
return html `<slot name="${name}"></slot>`;
|
20
|
-
}
|
21
|
-
return html `<slot></slot>`;
|
22
|
-
});
|
23
|
-
export const htmlStyle = (css) => {
|
24
|
-
if (css) {
|
25
|
-
return html `<style>
|
26
|
-
${css}
|
27
|
-
</style>`;
|
28
|
-
}
|
29
|
-
};
|
30
|
-
// SVG ICONS.
|
31
|
-
export const svgDelta = () => {
|
32
|
-
return html `<svg viewBox="0 0 48 48" fill="none">${path()("M36 19L24 31L12 19H36Z")}</svg>`;
|
33
|
-
};
|
34
|
-
export const svgDeltaSmooth = () => {
|
35
|
-
return html `<svg viewBox="0 0 16 16" fill="currentColor">${path(undefined, 0)("m3.86 8.753 5.482 4.796c.646.566 1.658.106 1.658-.753V3.204a1 1 0 0 0-1.659-.753l-5.48 4.796a1 1 0 0 0 0 1.506z")}</svg>`;
|
36
|
-
};
|
37
|
-
export const svgArrow = (body) => {
|
38
|
-
const d = body ? "M24 12L36 24L24 36" : "M19 12L31 24L19 36";
|
39
|
-
return html `<svg viewBox="0 0 48 48" fill="none">${body && path()("M36 24.0083H12")} ${path("none")(d)}</svg>`;
|
40
|
-
};
|
41
|
-
export const svgSearch = () => {
|
42
|
-
return html `<svg viewBox="0 0 1024 1024">${path()("M745.429333 655.658667c1.173333 0.746667 2.325333 1.578667 3.413334 2.496l114.410666 96a32 32 0 0 1-41.152 49.024l-114.389333-96a32 32 0 0 1-6.208-6.976A297.429333 297.429333 0 0 1 512 768c-164.949333 0-298.666667-133.717333-298.666667-298.666667S347.050667 170.666667 512 170.666667s298.666667 133.717333 298.666667 298.666666a297.386667 297.386667 0 0 1-65.237334 186.325334zM512 704c129.6 0 234.666667-105.066667 234.666667-234.666667s-105.066667-234.666667-234.666667-234.666666-234.666667 105.066667-234.666667 234.666666 105.066667 234.666667 234.666667 234.666667z")}</svg>`;
|
43
|
-
};
|
44
|
-
export const svgEye = () => {
|
45
|
-
return html `<svg viewBox="0 0 48 48">${path(0)("M9.85786 18C6.23858 21 4 24 4 24C4 24 12.9543 36 24 36C25.3699 36 26.7076 35.8154 28 35.4921M20.0318 12.5C21.3144 12.1816 22.6414 12 24 12C35.0457 12 44 24 44 24C44 24 41.7614 27 38.1421 30")} ${path(0)("M20.3142 20.6211C19.4981 21.5109 19 22.6972 19 23.9998C19 26.7612 21.2386 28.9998 24 28.9998C25.3627 28.9998 26.5981 28.4546 27.5 27.5705")} ${path()("M42 42L6 6")}</svg>`;
|
46
|
-
};
|
47
|
-
export const svgX = () => {
|
48
|
-
return html `<svg viewBox="0 0 48 48" fill="none">${path()("M14 14L34 34")} ${path()("M14 34L34 14")}</svg>`;
|
49
|
-
};
|
50
|
-
export const svgImage = () => {
|
51
|
-
return html `<svg viewBox="0 0 1098 1024">${path(undefined, 0)("M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z")}</svg>`;
|
52
|
-
};
|
53
|
-
export const svgSun = () => {
|
54
|
-
return html `<svg viewBox="0 0 16 16">${path(undefined, 0, 1)("M8 11a3 3 0 1 1 0-6 3 3 0 0 1 0 6zm0 1a4 4 0 1 0 0-8 4 4 0 0 0 0 8zM8 0a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 0zm0 13a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 13zm8-5a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2a.5.5 0 0 1 .5.5zM3 8a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2A.5.5 0 0 1 3 8zm10.657-5.657a.5.5 0 0 1 0 .707l-1.414 1.415a.5.5 0 1 1-.707-.708l1.414-1.414a.5.5 0 0 1 .707 0zm-9.193 9.193a.5.5 0 0 1 0 .707L3.05 13.657a.5.5 0 0 1-.707-.707l1.414-1.414a.5.5 0 0 1 .707 0zm9.193 2.121a.5.5 0 0 1-.707 0l-1.414-1.414a.5.5 0 0 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .707zM4.464 4.465a.5.5 0 0 1-.707 0L2.343 3.05a.5.5 0 1 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .708z")}</svg>`;
|
55
|
-
};
|
56
|
-
export const svgMoon = (star) => {
|
57
|
-
return html `<svg viewBox="0 0 16 16">${path(undefined, 0)("M6 .278a.768.768 0 0 1 .08.858 7.208 7.208 0 0 0-.878 3.46c0 4.021 3.278 7.277 7.318 7.277.527 0 1.04-.055 1.533-.16a.787.787 0 0 1 .81.316.733.733 0 0 1-.031.893A8.349 8.349 0 0 1 8.344 16C3.734 16 0 12.286 0 7.71 0 4.266 2.114 1.312 5.124.06A.752.752 0 0 1 6 .278zM4.858 1.311A7.269 7.269 0 0 0 1.025 7.71c0 4.02 3.279 7.276 7.319 7.276a7.316 7.316 0 0 0 5.205-2.162c-.337.042-.68.063-1.029.063-4.61 0-8.343-3.714-8.343-8.29 0-1.167.242-2.278.681-3.286z")} ${star && path(undefined, 0)("M10.794 3.148a.217.217 0 0 1 .412 0l.387 1.162c.173.518.579.924 1.097 1.097l1.162.387a.217.217 0 0 1 0 .412l-1.162.387a1.734 1.734 0 0 0-1.097 1.097l-.387 1.162a.217.217 0 0 1-.412 0l-.387-1.162A1.734 1.734 0 0 0 9.31 6.593l-1.162-.387a.217.217 0 0 1 0-.412l1.162-.387a1.734 1.734 0 0 0 1.097-1.097l.387-1.162zM13.863.099a.145.145 0 0 1 .274 0l.258.774c.115.346.386.617.732.732l.774.258a.145.145 0 0 1 0 .274l-.774.258a1.156 1.156 0 0 0-.732.732l-.258.774a.145.145 0 0 1-.274 0l-.258-.774a1.156 1.156 0 0 0-.732-.732l-.774-.258a.145.145 0 0 1 0-.274l.774-.258c.346-.115.617-.386.732-.732L13.863.1z")}</svg>`;
|
58
|
-
};
|
59
|
-
export const svgLink = () => {
|
60
|
-
return html `<svg viewBox="0 0 48 48" fill="none">${path(0)("M28 6H42V20")}${path(0)("M42 29.4737V39C42 40.6569 40.6569 42 39 42H9C7.34315 42 6 40.6569 6 39V9C6 7.34315 7.34315 6 9 6L18 6")}${path()("M25.7998 22.1999L41.0998 6.8999")}</svg>`;
|
61
|
-
};
|
62
|
-
export const icons = {
|
63
|
-
delta: svgDelta,
|
64
|
-
"delta-smooth": svgDeltaSmooth,
|
65
|
-
arrow: svgArrow,
|
66
|
-
"arrow-body": () => svgArrow(true),
|
67
|
-
search: svgSearch,
|
68
|
-
eye: svgEye,
|
69
|
-
x: svgX,
|
70
|
-
image: svgImage,
|
71
|
-
moon: svgMoon,
|
72
|
-
"moon-star": () => svgMoon(true),
|
73
|
-
sun: svgSun,
|
74
|
-
link: svgLink,
|
75
|
-
};
|
76
|
-
//# sourceMappingURL=templates.js.map
|
package/lib/templates.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"templates.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["lib/templates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAIhC;;;;GAIG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,OAA+B,cAAc,EAAE,SAAiC,cAAc,EAAE,cAAsC,CAAC,EAAE,EAAE;IAC9J,IAAI,GAAG,IAAI,IAAI,MAAM,CAAC;IACtB,MAAM,GAAG,MAAM,IAAI,MAAM,CAAC;IAC1B,OAAO,CAAC,CAAS,EAAE,EAAE;QACnB,OAAO,GAAG,CAAA,YAAY,CAAC,WA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;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,GAAG,EAAE;IAC1B,OAAO,IAAI,CAAA,wCAAwC,IAAI,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,uGAAuG,CAAC,GAAG,IAAI,EAAE,CAAC,iCAAiC,CAAC,QAAQ,CAAC;AACnP,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAAG;IACnB,KAAK,EAAE,QAAQ;IACf,cAAc,EAAE,cAAc;IAC9B,KAAK,EAAE,QAAQ;IACf,YAAY,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC;IAClC,MAAM,EAAE,SAAS;IACjB,GAAG,EAAE,MAAM;IACX,CAAC,EAAE,IAAI;IACP,KAAK,EAAE,QAAQ;IACf,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;IAChC,GAAG,EAAE,MAAM;IACX,IAAI,EAAE,OAAO;CACd,CAAC","sourcesContent":["import { html, svg } from \"lit\";\n\nexport type HTMLTemplate = ReturnType<typeof html>;\n\n/**\n * @param fill undefined: \"currentColor\". zero value: \"none\".\n * @param stroke undefined: \"currentColor\". zero value: \"none\".\n * @returns Function returns path needs d.\n */\nexport const path = (fill: string | void | number = \"currentColor\", stroke: string | void | number = \"currentColor\", strokeWidth: string | void | number = 3) => {\n fill = fill || \"none\";\n stroke = stroke || \"none\";\n return (d: string) => {\n return svg`<path d=\"${d}\" fill=\"${fill}\" stroke=\"${stroke}\" stroke-width=\"${strokeWidth}\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>`;\n };\n};\n\ninterface HtmlSlot {\n (): HTMLTemplate;\n (name: string): HTMLTemplate;\n <T>(name: string, feedback: T, node: ParentNode): T | HTMLTemplate;\n}\n\nexport const htmlSlot = (<T>(name: string, fallback: T, node: ParentNode) => {\n if (name) {\n if (fallback && node && !node.querySelector(`[slot=${name}]`)) {\n return fallback;\n }\n return html`<slot name=\"${name}\"></slot>`;\n }\n return html`<slot></slot>`;\n}) as HtmlSlot;\n\nexport const htmlStyle = (css: string) => {\n if (css) {\n return html`<style>\n ${css}\n </style>`;\n }\n};\n\n// SVG ICONS.\n\nexport const svgDelta = () => {\n return html`<svg viewBox=\"0 0 48 48\" fill=\"none\">${path()(\"M36 19L24 31L12 19H36Z\")}</svg>`;\n};\n\nexport const svgDeltaSmooth = () => {\n return html`<svg viewBox=\"0 0 16 16\" fill=\"currentColor\">${path(undefined, 0)(\"m3.86 8.753 5.482 4.796c.646.566 1.658.106 1.658-.753V3.204a1 1 0 0 0-1.659-.753l-5.48 4.796a1 1 0 0 0 0 1.506z\")}</svg>`;\n};\n\nexport const svgArrow = (body?: boolean) => {\n const d = body ? \"M24 12L36 24L24 36\" : \"M19 12L31 24L19 36\";\n return html`<svg viewBox=\"0 0 48 48\" fill=\"none\">${body && path()(\"M36 24.0083H12\")} ${path(\"none\")(d)}</svg>`;\n};\n\nexport const svgSearch = () => {\n return html`<svg viewBox=\"0 0 1024 1024\">${path()(\"M745.429333 655.658667c1.173333 0.746667 2.325333 1.578667 3.413334 2.496l114.410666 96a32 32 0 0 1-41.152 49.024l-114.389333-96a32 32 0 0 1-6.208-6.976A297.429333 297.429333 0 0 1 512 768c-164.949333 0-298.666667-133.717333-298.666667-298.666667S347.050667 170.666667 512 170.666667s298.666667 133.717333 298.666667 298.666666a297.386667 297.386667 0 0 1-65.237334 186.325334zM512 704c129.6 0 234.666667-105.066667 234.666667-234.666667s-105.066667-234.666667-234.666667-234.666666-234.666667 105.066667-234.666667 234.666666 105.066667 234.666667 234.666667 234.666667z\")}</svg>`;\n};\n\nexport const svgEye = () => {\n return html`<svg viewBox=\"0 0 48 48\">${path(0)(\"M9.85786 18C6.23858 21 4 24 4 24C4 24 12.9543 36 24 36C25.3699 36 26.7076 35.8154 28 35.4921M20.0318 12.5C21.3144 12.1816 22.6414 12 24 12C35.0457 12 44 24 44 24C44 24 41.7614 27 38.1421 30\")} ${path(0)(\"M20.3142 20.6211C19.4981 21.5109 19 22.6972 19 23.9998C19 26.7612 21.2386 28.9998 24 28.9998C25.3627 28.9998 26.5981 28.4546 27.5 27.5705\")} ${path()(\"M42 42L6 6\")}</svg>`;\n};\n\nexport const svgX = () => {\n return html`<svg viewBox=\"0 0 48 48\" fill=\"none\">${path()(\"M14 14L34 34\")} ${path()(\"M14 34L34 14\")}</svg>`;\n};\n\nexport const svgImage = () => {\n return html`<svg viewBox=\"0 0 1098 1024\">${path(undefined, 0)(\"M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z\")}</svg>`;\n};\n\nexport const svgSun = () => {\n return html`<svg viewBox=\"0 0 16 16\">${path(undefined, 0, 1)(\"M8 11a3 3 0 1 1 0-6 3 3 0 0 1 0 6zm0 1a4 4 0 1 0 0-8 4 4 0 0 0 0 8zM8 0a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 0zm0 13a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 13zm8-5a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2a.5.5 0 0 1 .5.5zM3 8a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2A.5.5 0 0 1 3 8zm10.657-5.657a.5.5 0 0 1 0 .707l-1.414 1.415a.5.5 0 1 1-.707-.708l1.414-1.414a.5.5 0 0 1 .707 0zm-9.193 9.193a.5.5 0 0 1 0 .707L3.05 13.657a.5.5 0 0 1-.707-.707l1.414-1.414a.5.5 0 0 1 .707 0zm9.193 2.121a.5.5 0 0 1-.707 0l-1.414-1.414a.5.5 0 0 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .707zM4.464 4.465a.5.5 0 0 1-.707 0L2.343 3.05a.5.5 0 1 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .708z\")}</svg>`;\n};\n\nexport const svgMoon = (star?: boolean) => {\n return html`<svg viewBox=\"0 0 16 16\">${path(undefined, 0)(\"M6 .278a.768.768 0 0 1 .08.858 7.208 7.208 0 0 0-.878 3.46c0 4.021 3.278 7.277 7.318 7.277.527 0 1.04-.055 1.533-.16a.787.787 0 0 1 .81.316.733.733 0 0 1-.031.893A8.349 8.349 0 0 1 8.344 16C3.734 16 0 12.286 0 7.71 0 4.266 2.114 1.312 5.124.06A.752.752 0 0 1 6 .278zM4.858 1.311A7.269 7.269 0 0 0 1.025 7.71c0 4.02 3.279 7.276 7.319 7.276a7.316 7.316 0 0 0 5.205-2.162c-.337.042-.68.063-1.029.063-4.61 0-8.343-3.714-8.343-8.29 0-1.167.242-2.278.681-3.286z\")} ${star && path(undefined, 0)(\"M10.794 3.148a.217.217 0 0 1 .412 0l.387 1.162c.173.518.579.924 1.097 1.097l1.162.387a.217.217 0 0 1 0 .412l-1.162.387a1.734 1.734 0 0 0-1.097 1.097l-.387 1.162a.217.217 0 0 1-.412 0l-.387-1.162A1.734 1.734 0 0 0 9.31 6.593l-1.162-.387a.217.217 0 0 1 0-.412l1.162-.387a1.734 1.734 0 0 0 1.097-1.097l.387-1.162zM13.863.099a.145.145 0 0 1 .274 0l.258.774c.115.346.386.617.732.732l.774.258a.145.145 0 0 1 0 .274l-.774.258a1.156 1.156 0 0 0-.732.732l-.258.774a.145.145 0 0 1-.274 0l-.258-.774a1.156 1.156 0 0 0-.732-.732l-.774-.258a.145.145 0 0 1 0-.274l.774-.258c.346-.115.617-.386.732-.732L13.863.1z\")}</svg>`;\n};\n\nexport const svgLink = () => {\n return html`<svg viewBox=\"0 0 48 48\" fill=\"none\">${path(0)(\"M28 6H42V20\")}${path(0)(\"M42 29.4737V39C42 40.6569 40.6569 42 39 42H9C7.34315 42 6 40.6569 6 39V9C6 7.34315 7.34315 6 9 6L18 6\")}${path()(\"M25.7998 22.1999L41.0998 6.8999\")}</svg>`;\n};\n\nexport const icons = {\n delta: svgDelta,\n \"delta-smooth\": svgDeltaSmooth,\n arrow: svgArrow,\n \"arrow-body\": () => svgArrow(true),\n search: svgSearch,\n eye: svgEye,\n x: svgX,\n image: svgImage,\n moon: svgMoon,\n \"moon-star\": () => svgMoon(true),\n sun: svgSun,\n link: svgLink,\n};\n"]}
|
package/naming.d.ts
DELETED
@@ -1,91 +0,0 @@
|
|
1
|
-
declare const namings: {
|
2
|
-
latest: {
|
3
|
-
get: (key: string) => string;
|
4
|
-
};
|
5
|
-
"g-prefix": {
|
6
|
-
get: (key: string) => string;
|
7
|
-
};
|
8
|
-
"godown-prefix": {
|
9
|
-
get: (key: string) => string;
|
10
|
-
};
|
11
|
-
legacy: {
|
12
|
-
clip: string;
|
13
|
-
overbreath: string;
|
14
|
-
typewriter: string;
|
15
|
-
tabs: string;
|
16
|
-
input: string;
|
17
|
-
form: string;
|
18
|
-
alert: string;
|
19
|
-
avatar: string;
|
20
|
-
button: string;
|
21
|
-
card: string;
|
22
|
-
dialog: string;
|
23
|
-
"router-a": string;
|
24
|
-
progress: string;
|
25
|
-
a: string;
|
26
|
-
time: string;
|
27
|
-
divider: string;
|
28
|
-
dragbox: string;
|
29
|
-
skeleton: string;
|
30
|
-
details: string;
|
31
|
-
"open-offset": string;
|
32
|
-
carousel: string;
|
33
|
-
tooltip: string;
|
34
|
-
wrapper: string;
|
35
|
-
get(key: string): any;
|
36
|
-
};
|
37
|
-
"legacy-2.5": {
|
38
|
-
clip: string;
|
39
|
-
overbreath: string;
|
40
|
-
typewriter: string;
|
41
|
-
tabs: string;
|
42
|
-
input: string;
|
43
|
-
form: string;
|
44
|
-
alert: string;
|
45
|
-
avatar: string;
|
46
|
-
button: string;
|
47
|
-
card: string;
|
48
|
-
dialog: string;
|
49
|
-
"router-a": string;
|
50
|
-
progress: string;
|
51
|
-
a: string;
|
52
|
-
time: string;
|
53
|
-
divider: string;
|
54
|
-
dragbox: string;
|
55
|
-
skeleton: string;
|
56
|
-
details: string;
|
57
|
-
"open-offset": string;
|
58
|
-
carousel: string;
|
59
|
-
tooltip: string;
|
60
|
-
wrapper: string;
|
61
|
-
get(key: string): any;
|
62
|
-
};
|
63
|
-
"legacy-2.6": {
|
64
|
-
carousel: string;
|
65
|
-
details: string;
|
66
|
-
dialog: string;
|
67
|
-
divider: string;
|
68
|
-
progress: string;
|
69
|
-
tooltip: string;
|
70
|
-
wrapper: string;
|
71
|
-
clip: string;
|
72
|
-
overbreath: string;
|
73
|
-
typewriter: string;
|
74
|
-
tabs: string;
|
75
|
-
input: string;
|
76
|
-
form: string;
|
77
|
-
alert: string;
|
78
|
-
avatar: string;
|
79
|
-
button: string;
|
80
|
-
card: string;
|
81
|
-
"router-a": string;
|
82
|
-
a: string;
|
83
|
-
time: string;
|
84
|
-
dragbox: string;
|
85
|
-
skeleton: string;
|
86
|
-
"open-offset": string;
|
87
|
-
get(key: string): any;
|
88
|
-
};
|
89
|
-
};
|
90
|
-
export default namings;
|
91
|
-
//# sourceMappingURL=naming.d.ts.map
|
package/naming.d.ts.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"naming.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["naming.ts"],"names":[],"mappings":"AA8DA,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA9BF,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAN,MAAM;;CAuChB,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
package/naming.js
DELETED
@@ -1,67 +0,0 @@
|
|
1
|
-
// Declared.
|
2
|
-
const legacy_2_5 = {
|
3
|
-
//
|
4
|
-
clip: "clip-text",
|
5
|
-
overbreath: "overbreath-text",
|
6
|
-
typewriter: "typewriter-text",
|
7
|
-
tabs: "tab-group",
|
8
|
-
input: "base-input",
|
9
|
-
form: "base-form",
|
10
|
-
//
|
11
|
-
alert: "alert-item",
|
12
|
-
avatar: "avatar-a",
|
13
|
-
button: "base-button",
|
14
|
-
card: "card-item",
|
15
|
-
dialog: "dialog-item",
|
16
|
-
"router-a": "link-a",
|
17
|
-
progress: "load-progress",
|
18
|
-
a: "super-a",
|
19
|
-
time: "time-bar",
|
20
|
-
//
|
21
|
-
divider: "div-line",
|
22
|
-
dragbox: "drag-box",
|
23
|
-
skeleton: "skeleton-screen",
|
24
|
-
//
|
25
|
-
details: "details-expand",
|
26
|
-
"open-offset": "offset-expand",
|
27
|
-
carousel: "rotation-pool",
|
28
|
-
tooltip: "tool-tip",
|
29
|
-
wrapper: "with-wrap",
|
30
|
-
get(key) {
|
31
|
-
return this[key];
|
32
|
-
},
|
33
|
-
};
|
34
|
-
// Declared.
|
35
|
-
const legacy_2_6 = {
|
36
|
-
...legacy_2_5,
|
37
|
-
carousel: "carousel-slider",
|
38
|
-
details: "open-details",
|
39
|
-
dialog: "open-dialog",
|
40
|
-
divider: "divider-line",
|
41
|
-
progress: "loading-progress",
|
42
|
-
tooltip: "open-tooltip",
|
43
|
-
wrapper: "wrap-view",
|
44
|
-
};
|
45
|
-
// Declared.
|
46
|
-
const gPrefix = {
|
47
|
-
get(key) {
|
48
|
-
return "g-" + key;
|
49
|
-
},
|
50
|
-
};
|
51
|
-
const godownPrefix = {
|
52
|
-
get(key) {
|
53
|
-
return "godown-" + key;
|
54
|
-
},
|
55
|
-
};
|
56
|
-
const namings = {
|
57
|
-
latest: gPrefix,
|
58
|
-
//
|
59
|
-
"g-prefix": gPrefix,
|
60
|
-
"godown-prefix": godownPrefix,
|
61
|
-
//
|
62
|
-
legacy: legacy_2_5,
|
63
|
-
"legacy-2.5": legacy_2_5,
|
64
|
-
"legacy-2.6": legacy_2_6,
|
65
|
-
};
|
66
|
-
export default namings;
|
67
|
-
//# sourceMappingURL=naming.js.map
|
package/naming.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"naming.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["naming.ts"],"names":[],"mappings":"AAGA,YAAY;AACZ,MAAM,UAAU,GAAG;IACjB,EAAE;IACF,IAAI,EAAE,WAAW;IACjB,UAAU,EAAE,iBAAiB;IAC7B,UAAU,EAAE,iBAAiB;IAC7B,IAAI,EAAE,WAAW;IACjB,KAAK,EAAE,YAAY;IACnB,IAAI,EAAE,WAAW;IACjB,EAAE;IACF,KAAK,EAAE,YAAY;IACnB,MAAM,EAAE,UAAU;IAClB,MAAM,EAAE,aAAa;IACrB,IAAI,EAAE,WAAW;IACjB,MAAM,EAAE,aAAa;IACrB,UAAU,EAAE,QAAQ;IACpB,QAAQ,EAAE,eAAe;IACzB,CAAC,EAAE,SAAS;IACZ,IAAI,EAAE,UAAU;IAChB,EAAE;IACF,OAAO,EAAE,UAAU;IACnB,OAAO,EAAE,UAAU;IACnB,QAAQ,EAAE,iBAAiB;IAC3B,EAAE;IACF,OAAO,EAAE,gBAAgB;IACzB,aAAa,EAAE,eAAe;IAC9B,QAAQ,EAAE,eAAe;IACzB,OAAO,EAAE,UAAU;IACnB,OAAO,EAAE,WAAW;IACpB,GAAG,CAAC,GAAW;QACb,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;IACnB,CAAC;CACF,CAAC;AAEF,YAAY;AACZ,MAAM,UAAU,GAAG;IACjB,GAAG,UAAU;IACb,QAAQ,EAAE,iBAAiB;IAC3B,OAAO,EAAE,cAAc;IACvB,MAAM,EAAE,aAAa;IACrB,OAAO,EAAE,cAAc;IACvB,QAAQ,EAAE,kBAAkB;IAC5B,OAAO,EAAE,cAAc;IACvB,OAAO,EAAE,WAAW;CACrB,CAAC;AAEF,YAAY;AACZ,MAAM,OAAO,GAAgB;IAC3B,GAAG,CAAC,GAAG;QACL,OAAO,IAAI,GAAG,GAAG,CAAC;IACpB,CAAC;CACF,CAAC;AAEF,MAAM,YAAY,GAAgB;IAChC,GAAG,CAAC,GAAG;QACL,OAAO,SAAS,GAAG,GAAG,CAAC;IACzB,CAAC;CACF,CAAC;AAEF,MAAM,OAAO,GAAG;IACd,MAAM,EAAE,OAAO;IACf,EAAE;IACF,UAAU,EAAE,OAAO;IACnB,eAAe,EAAE,YAAY;IAC7B,EAAE;IACF,MAAM,EAAE,UAAU;IAClB,YAAY,EAAE,UAAU;IACxB,YAAY,EAAE,UAAU;CACzB,CAAC;AAEF,eAAe,OAAO,CAAC","sourcesContent":["/* eslint-disable camelcase */\nimport type { GetAccessor } from \"./conf\";\n\n// Declared.\nconst legacy_2_5 = {\n //\n clip: \"clip-text\",\n overbreath: \"overbreath-text\",\n typewriter: \"typewriter-text\",\n tabs: \"tab-group\",\n input: \"base-input\",\n form: \"base-form\",\n //\n alert: \"alert-item\",\n avatar: \"avatar-a\",\n button: \"base-button\",\n card: \"card-item\",\n dialog: \"dialog-item\",\n \"router-a\": \"link-a\",\n progress: \"load-progress\",\n a: \"super-a\",\n time: \"time-bar\",\n //\n divider: \"div-line\",\n dragbox: \"drag-box\",\n skeleton: \"skeleton-screen\",\n //\n details: \"details-expand\",\n \"open-offset\": \"offset-expand\",\n carousel: \"rotation-pool\",\n tooltip: \"tool-tip\",\n wrapper: \"with-wrap\",\n get(key: string) {\n return this[key];\n },\n};\n\n// Declared.\nconst legacy_2_6 = {\n ...legacy_2_5,\n carousel: \"carousel-slider\",\n details: \"open-details\",\n dialog: \"open-dialog\",\n divider: \"divider-line\",\n progress: \"loading-progress\",\n tooltip: \"open-tooltip\",\n wrapper: \"wrap-view\",\n};\n\n// Declared.\nconst gPrefix: GetAccessor = {\n get(key) {\n return \"g-\" + key;\n },\n};\n\nconst godownPrefix: GetAccessor = {\n get(key) {\n return \"godown-\" + key;\n },\n};\n\nconst namings = {\n latest: gPrefix,\n //\n \"g-prefix\": gPrefix,\n \"godown-prefix\": godownPrefix,\n //\n legacy: legacy_2_5,\n \"legacy-2.5\": legacy_2_5,\n \"legacy-2.6\": legacy_2_6,\n};\n\nexport default namings;\n"]}
|
package/nav-layout.d.ts
DELETED
package/nav-layout.d.ts.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"nav-layout.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["nav-layout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC"}
|
package/nav-layout.js
DELETED
package/nav-layout.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"nav-layout.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["nav-layout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC","sourcesContent":["export { default } from \"./web-components/layout/nav-layout.js\";\n"]}
|
package/open-offset.d.ts
DELETED
package/open-offset.d.ts.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"open-offset.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["open-offset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,wCAAwC,CAAC"}
|
package/open-offset.js
DELETED
package/open-offset.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"open-offset.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["open-offset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,wCAAwC,CAAC","sourcesContent":["export { default } from \"./web-components/offset/open-offset.js\";\n"]}
|
package/router-a.d.ts
DELETED
package/router-a.d.ts.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"router-a.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["router-a.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qCAAqC,CAAC"}
|
package/router-a.js
DELETED
package/router-a.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"router-a.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["router-a.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qCAAqC,CAAC","sourcesContent":["export { default } from \"./web-components/router/router-a.js\";\n"]}
|
package/supers/anchor.d.ts
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
import { type HTMLTemplate } from "../lib/templates.js";
|
2
|
-
import { GodownElement } from "./root.js";
|
3
|
-
export declare class GodownAnchor extends GodownElement {
|
4
|
-
/**
|
5
|
-
* True when the href is in the same pathname as the location.
|
6
|
-
*/
|
7
|
-
active: boolean;
|
8
|
-
/**
|
9
|
-
* Href for a element.
|
10
|
-
*/
|
11
|
-
href: string;
|
12
|
-
/**
|
13
|
-
* Target for an element.
|
14
|
-
*/
|
15
|
-
target: string;
|
16
|
-
/**
|
17
|
-
* Arrow type.
|
18
|
-
*/
|
19
|
-
arrow: "" | "link" | "delta" | "arrow" | "angle";
|
20
|
-
static styles: import("lit").CSSResult[];
|
21
|
-
protected render(): HTMLTemplate;
|
22
|
-
private _arrowSwitcher;
|
23
|
-
useActive(): void;
|
24
|
-
}
|
25
|
-
export default GodownAnchor;
|
26
|
-
//# sourceMappingURL=anchor.d.ts.map
|
package/supers/anchor.d.ts.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"anchor.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["supers/anchor.ts"],"names":[],"mappings":"AACA,OAAO,EAAY,KAAK,YAAY,EAA+B,MAAM,qBAAqB,CAAC;AAC/F,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE1C,qBAAa,YAAa,SAAQ,aAAa;IAC7C;;OAEG;IACyC,MAAM,UAAS;IAC3D;;OAEG;IACS,IAAI,EAAE,MAAM,CAAa;IACrC;;OAEG;IACS,MAAM,SAAW;IAC7B;;OAEG;IACS,KAAK,EAAE,EAAE,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,CAAM;IAElE,MAAM,CAAC,MAAM,4BA0DX;IAEF,SAAS,CAAC,MAAM,IAAI,YAAY;IAOhC,OAAO,CAAC,cAAc;IAetB,SAAS;CAMV;AAED,eAAe,YAAY,CAAC"}
|