godown 2.6.2 → 2.7.0
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/{deps.d.ts → .deps.d.ts} +1 -1
- package/.deps.d.ts.map +1 -0
- package/{deps.js → .deps.js} +1 -1
- package/.deps.js.map +1 -0
- package/README.md +166 -43
- package/a.d.ts +2 -0
- package/a.d.ts.map +1 -0
- package/a.js +2 -0
- package/a.js.map +1 -0
- package/alert.d.ts +2 -0
- package/alert.d.ts.map +1 -0
- package/alert.js +2 -0
- package/alert.js.map +1 -0
- package/avatar-group.js.map +1 -1
- package/avatar.d.ts +2 -0
- package/avatar.d.ts.map +1 -0
- package/avatar.js +2 -0
- package/avatar.js.map +1 -0
- package/button.d.ts +2 -0
- package/button.d.ts.map +1 -0
- package/button.js +2 -0
- package/button.js.map +1 -0
- package/card.d.ts +2 -0
- package/card.d.ts.map +1 -0
- package/card.js +2 -0
- package/card.js.map +1 -0
- package/carousel.d.ts +2 -0
- package/carousel.d.ts.map +1 -0
- package/carousel.js +2 -0
- package/carousel.js.map +1 -0
- package/clip.d.ts +2 -0
- package/clip.d.ts.map +1 -0
- package/clip.js +2 -0
- package/clip.js.map +1 -0
- package/conf.d.ts +23 -3
- package/conf.d.ts.map +1 -1
- package/conf.js +19 -16
- package/conf.js.map +1 -1
- package/decorators/define.d.ts +7 -0
- package/decorators/define.d.ts.map +1 -0
- package/decorators/define.js +11 -0
- package/decorators/define.js.map +1 -0
- package/details-group.js.map +1 -1
- package/details.d.ts +2 -0
- package/details.d.ts.map +1 -0
- package/details.js +2 -0
- package/details.js.map +1 -0
- package/dialog.d.ts +2 -0
- package/dialog.d.ts.map +1 -0
- package/dialog.js +2 -0
- package/dialog.js.map +1 -0
- package/divider.d.ts +2 -0
- package/divider.d.ts.map +1 -0
- package/divider.js +2 -0
- package/divider.js.map +1 -0
- package/dragbox.d.ts +2 -0
- package/dragbox.d.ts.map +1 -0
- package/dragbox.js +2 -0
- package/dragbox.js.map +1 -0
- package/flex-flow.js.map +1 -1
- package/form.d.ts +2 -0
- package/form.d.ts.map +1 -0
- package/form.js +2 -0
- package/form.js.map +1 -0
- package/godown-element.d.ts +1 -1
- package/godown-element.d.ts.map +1 -1
- package/godown-element.js +12 -4
- package/godown-element.js.map +1 -1
- package/input.d.ts +2 -0
- package/input.d.ts.map +1 -0
- package/input.js +2 -0
- package/input.js.map +1 -0
- package/label-input.js.map +1 -1
- package/lib/event-collection.d.ts +1 -1
- package/lib/event-collection.d.ts.map +1 -1
- package/lib/utils.d.ts +0 -1
- package/lib/utils.d.ts.map +1 -1
- package/lib/utils.js +0 -7
- package/lib/utils.js.map +1 -1
- package/naming.d.ts +91 -0
- package/naming.d.ts.map +1 -0
- package/naming.js +67 -0
- package/naming.js.map +1 -0
- package/nav-layout.js.map +1 -1
- package/open-offset.d.ts +1 -1
- package/open-offset.d.ts.map +1 -1
- package/open-offset.js +1 -1
- package/open-offset.js.map +1 -1
- package/overbreath.d.ts +2 -0
- package/overbreath.d.ts.map +1 -0
- package/overbreath.js +2 -0
- package/overbreath.js.map +1 -0
- package/package.json +29 -33
- package/progress.d.ts +2 -0
- package/progress.d.ts.map +1 -0
- package/progress.js +2 -0
- package/progress.js.map +1 -0
- package/react/index.d.ts +24 -25
- package/react/index.d.ts.map +1 -1
- package/react/index.js +52 -56
- package/react/index.js.map +1 -1
- package/router-a.d.ts +2 -0
- package/router-a.d.ts.map +1 -0
- package/router-a.js +2 -0
- package/router-a.js.map +1 -0
- package/router.d.ts +2 -0
- package/router.d.ts.map +1 -0
- package/router.js +2 -0
- package/router.js.map +1 -0
- package/search-input.js.map +1 -1
- package/select-input.js.map +1 -1
- package/skeleton.d.ts +2 -0
- package/skeleton.d.ts.map +1 -0
- package/skeleton.js +2 -0
- package/skeleton.js.map +1 -0
- package/split-input.js.map +1 -1
- package/supers/anchor.d.ts +21 -0
- package/supers/anchor.d.ts.map +1 -0
- package/{web-components/a/super-a.js → supers/anchor.js} +11 -21
- package/supers/anchor.js.map +1 -0
- package/supers/input.d.ts +28 -0
- package/supers/input.d.ts.map +1 -0
- package/supers/input.js +117 -0
- package/supers/input.js.map +1 -0
- package/{web-components/open/open.d.ts → supers/openable.d.ts} +6 -6
- package/supers/openable.d.ts.map +1 -0
- package/{web-components/open/open.js → supers/openable.js} +11 -11
- package/supers/openable.js.map +1 -0
- package/supers/root.d.ts +18 -0
- package/supers/root.d.ts.map +1 -0
- package/{root.js → supers/root.js} +3 -11
- package/supers/root.js.map +1 -0
- package/switch-input.js.map +1 -1
- package/tabs.d.ts +2 -0
- package/tabs.d.ts.map +1 -0
- package/tabs.js +2 -0
- package/tabs.js.map +1 -0
- package/time.d.ts +2 -0
- package/time.d.ts.map +1 -0
- package/time.js +2 -0
- package/time.js.map +1 -0
- package/tooltip.d.ts +2 -0
- package/tooltip.d.ts.map +1 -0
- package/tooltip.js +2 -0
- package/tooltip.js.map +1 -0
- package/typewriter.d.ts +2 -0
- package/typewriter.d.ts.map +1 -0
- package/typewriter.js +2 -0
- package/typewriter.js.map +1 -0
- package/web-components/a/a.d.ts +16 -0
- package/web-components/a/a.d.ts.map +1 -0
- package/web-components/a/a.js +17 -0
- package/web-components/a/a.js.map +1 -0
- package/web-components/{items/alert-item.d.ts → alert/alert.d.ts} +8 -7
- package/web-components/alert/alert.d.ts.map +1 -0
- package/web-components/{items/alert-item.js → alert/alert.js} +18 -17
- package/web-components/alert/alert.js.map +1 -0
- package/web-components/{a/avatar-a.d.ts → avatar/avatar.d.ts} +9 -8
- package/web-components/avatar/avatar.d.ts.map +1 -0
- package/web-components/{a/avatar-a.js → avatar/avatar.js} +20 -19
- package/web-components/avatar/avatar.js.map +1 -0
- package/web-components/button/{base-button.d.ts → button.d.ts} +7 -6
- package/web-components/button/button.d.ts.map +1 -0
- package/web-components/button/{base-button.js → button.js} +21 -20
- package/web-components/button/button.js.map +1 -0
- package/web-components/{items/card-item.d.ts → card/card.d.ts} +8 -7
- package/web-components/card/card.d.ts.map +1 -0
- package/web-components/{items/card-item.js → card/card.js} +15 -14
- package/web-components/card/card.js.map +1 -0
- package/web-components/carousel/{carousel-slider.d.ts → carousel.d.ts} +7 -6
- package/web-components/carousel/carousel.d.ts.map +1 -0
- package/web-components/carousel/{carousel-slider.js → carousel.js} +16 -16
- package/web-components/carousel/carousel.js.map +1 -0
- package/web-components/{open/open-details.d.ts → details/details.d.ts} +8 -7
- package/web-components/details/details.d.ts.map +1 -0
- package/web-components/{open/open-details.js → details/details.js} +17 -16
- package/web-components/details/details.js.map +1 -0
- package/web-components/{open/open-dialog.d.ts → dialog/dialog.d.ts} +8 -7
- package/web-components/dialog/dialog.d.ts.map +1 -0
- package/web-components/{open/open-dialog.js → dialog/dialog.js} +19 -18
- package/web-components/dialog/dialog.js.map +1 -0
- package/web-components/form/{base-form.d.ts → form.d.ts} +8 -7
- package/web-components/form/form.d.ts.map +1 -0
- package/web-components/form/{base-form.js → form.js} +16 -15
- package/web-components/form/form.js.map +1 -0
- package/web-components/group/avatar-group.d.ts +6 -5
- package/web-components/group/avatar-group.d.ts.map +1 -1
- package/web-components/group/avatar-group.js +8 -7
- package/web-components/group/avatar-group.js.map +1 -1
- package/web-components/group/details-group.d.ts +3 -2
- package/web-components/group/details-group.d.ts.map +1 -1
- package/web-components/group/details-group.js +4 -3
- package/web-components/group/details-group.js.map +1 -1
- package/web-components/index.d.ts +24 -25
- package/web-components/index.d.ts.map +1 -1
- package/web-components/index.js +24 -26
- package/web-components/index.js.map +1 -1
- package/web-components/input/input.d.ts +44 -22
- package/web-components/input/input.d.ts.map +1 -1
- package/web-components/input/input.js +210 -80
- package/web-components/input/input.js.map +1 -1
- package/web-components/input/label-input.d.ts +5 -4
- package/web-components/input/label-input.d.ts.map +1 -1
- package/web-components/input/label-input.js +7 -6
- package/web-components/input/label-input.js.map +1 -1
- package/web-components/input/search-input.d.ts +5 -4
- package/web-components/input/search-input.d.ts.map +1 -1
- package/web-components/input/search-input.js +7 -6
- package/web-components/input/search-input.js.map +1 -1
- package/web-components/input/select-input.d.ts +5 -4
- package/web-components/input/select-input.d.ts.map +1 -1
- package/web-components/input/select-input.js +7 -6
- package/web-components/input/select-input.js.map +1 -1
- package/web-components/input/split-input.d.ts +5 -4
- package/web-components/input/split-input.d.ts.map +1 -1
- package/web-components/input/split-input.js +7 -6
- package/web-components/input/split-input.js.map +1 -1
- package/web-components/input/switch-input.d.ts +5 -4
- package/web-components/input/switch-input.d.ts.map +1 -1
- package/web-components/input/switch-input.js +7 -6
- package/web-components/input/switch-input.js.map +1 -1
- package/web-components/layout/{divider-line.d.ts → divider.d.ts} +7 -6
- package/web-components/layout/divider.d.ts.map +1 -0
- package/web-components/layout/{divider-line.js → divider.js} +13 -12
- package/web-components/layout/divider.js.map +1 -0
- package/web-components/layout/flex-flow.d.ts +3 -2
- package/web-components/layout/flex-flow.d.ts.map +1 -1
- package/web-components/layout/flex-flow.js +4 -3
- package/web-components/layout/flex-flow.js.map +1 -1
- package/web-components/layout/nav-layout.d.ts +4 -3
- package/web-components/layout/nav-layout.d.ts.map +1 -1
- package/web-components/layout/nav-layout.js +4 -3
- package/web-components/layout/nav-layout.js.map +1 -1
- package/web-components/{open → offset}/open-offset.d.ts +5 -4
- package/web-components/offset/open-offset.d.ts.map +1 -0
- package/web-components/{open → offset}/open-offset.js +5 -5
- package/web-components/offset/open-offset.js.map +1 -0
- package/web-components/{loading/loading-progress.d.ts → progress/progress.d.ts} +8 -7
- package/web-components/progress/progress.d.ts.map +1 -0
- package/web-components/{loading/loading-progress.js → progress/progress.js} +15 -14
- package/web-components/progress/progress.js.map +1 -0
- package/web-components/{a/link-a.d.ts → router/router-a.d.ts} +9 -8
- package/web-components/router/router-a.d.ts.map +1 -0
- package/web-components/{a/link-a.js → router/router-a.js} +21 -21
- package/web-components/router/router-a.js.map +1 -0
- package/web-components/{view/route-view.d.ts → router/router.d.ts} +10 -9
- package/web-components/router/router.d.ts.map +1 -0
- package/web-components/{view/route-view.js → router/router.js} +21 -21
- package/web-components/router/router.js.map +1 -0
- package/web-components/{loading/skeleton-screen.d.ts → skeleton/skeleton.d.ts} +8 -7
- package/web-components/skeleton/skeleton.d.ts.map +1 -0
- package/web-components/{loading/skeleton-screen.js → skeleton/skeleton.js} +15 -14
- package/web-components/skeleton/skeleton.js.map +1 -0
- package/web-components/{group/tab-group.d.ts → tabs/tabs.d.ts} +9 -8
- package/web-components/tabs/tabs.d.ts.map +1 -0
- package/web-components/{group/tab-group.js → tabs/tabs.js} +17 -16
- package/web-components/tabs/tabs.js.map +1 -0
- package/web-components/text/clip.d.ts +21 -0
- package/web-components/text/clip.d.ts.map +1 -0
- package/web-components/text/{clip-text.js → clip.js} +13 -12
- package/web-components/text/clip.js.map +1 -0
- package/web-components/text/{overbreath-text.d.ts → overbreath.d.ts} +6 -6
- package/web-components/text/overbreath.d.ts.map +1 -0
- package/web-components/text/{overbreath-text.js → overbreath.js} +14 -13
- package/web-components/text/overbreath.js.map +1 -0
- package/web-components/{items/time-bar.d.ts → text/time.d.ts} +7 -7
- package/web-components/text/time.d.ts.map +1 -0
- package/web-components/{items/time-bar.js → text/time.js} +19 -18
- package/web-components/text/time.js.map +1 -0
- package/web-components/text/{typewriter-text.d.ts → typewriter.d.ts} +8 -8
- package/web-components/text/typewriter.d.ts.map +1 -0
- package/web-components/text/{typewriter-text.js → typewriter.js} +22 -21
- package/web-components/text/typewriter.js.map +1 -0
- package/web-components/tooltip/tooltip.d.ts +25 -0
- package/web-components/tooltip/tooltip.d.ts.map +1 -0
- package/web-components/{open/open-tooltip.js → tooltip/tooltip.js} +15 -14
- package/web-components/tooltip/tooltip.js.map +1 -0
- package/web-components/{items/drag-box.d.ts → wrapper/dragbox.d.ts} +7 -6
- package/web-components/wrapper/dragbox.d.ts.map +1 -0
- package/web-components/{items/drag-box.js → wrapper/dragbox.js} +14 -13
- package/web-components/wrapper/dragbox.js.map +1 -0
- package/web-components/{view/wrap-view.d.ts → wrapper/wrapper.d.ts} +6 -5
- package/web-components/wrapper/wrapper.d.ts.map +1 -0
- package/web-components/{view/wrap-view.js → wrapper/wrapper.js} +13 -12
- package/web-components/wrapper/wrapper.js.map +1 -0
- package/wrapper.d.ts +2 -0
- package/wrapper.d.ts.map +1 -0
- package/wrapper.js +2 -0
- package/wrapper.js.map +1 -0
- package/alert-item.d.ts +0 -2
- package/alert-item.d.ts.map +0 -1
- package/alert-item.js +0 -2
- package/alert-item.js.map +0 -1
- package/avatar-a.d.ts +0 -2
- package/avatar-a.d.ts.map +0 -1
- package/avatar-a.js +0 -2
- package/avatar-a.js.map +0 -1
- package/base-button.d.ts +0 -2
- package/base-button.d.ts.map +0 -1
- package/base-button.js +0 -2
- package/base-button.js.map +0 -1
- package/base-form.d.ts +0 -2
- package/base-form.d.ts.map +0 -1
- package/base-form.js +0 -2
- package/base-form.js.map +0 -1
- package/base-input.d.ts +0 -2
- package/base-input.d.ts.map +0 -1
- package/base-input.js +0 -2
- package/base-input.js.map +0 -1
- package/card-item.d.ts +0 -2
- package/card-item.d.ts.map +0 -1
- package/card-item.js +0 -2
- package/card-item.js.map +0 -1
- package/carousel-slider.d.ts +0 -2
- package/carousel-slider.d.ts.map +0 -1
- package/carousel-slider.js +0 -2
- package/carousel-slider.js.map +0 -1
- package/clip-text.d.ts +0 -2
- package/clip-text.d.ts.map +0 -1
- package/clip-text.js +0 -2
- package/clip-text.js.map +0 -1
- package/deps.d.ts.map +0 -1
- package/deps.js.map +0 -1
- package/divider-line.d.ts +0 -2
- package/divider-line.d.ts.map +0 -1
- package/divider-line.js +0 -2
- package/divider-line.js.map +0 -1
- package/drag-box.d.ts +0 -2
- package/drag-box.d.ts.map +0 -1
- package/drag-box.js +0 -2
- package/drag-box.js.map +0 -1
- package/link-a.d.ts +0 -2
- package/link-a.d.ts.map +0 -1
- package/link-a.js +0 -2
- package/link-a.js.map +0 -1
- package/loading-progress.d.ts +0 -2
- package/loading-progress.d.ts.map +0 -1
- package/loading-progress.js +0 -2
- package/loading-progress.js.map +0 -1
- package/open-details.d.ts +0 -2
- package/open-details.d.ts.map +0 -1
- package/open-details.js +0 -2
- package/open-details.js.map +0 -1
- package/open-dialog.d.ts +0 -2
- package/open-dialog.d.ts.map +0 -1
- package/open-dialog.js +0 -2
- package/open-dialog.js.map +0 -1
- package/open-tooltip.d.ts +0 -2
- package/open-tooltip.d.ts.map +0 -1
- package/open-tooltip.js +0 -2
- package/open-tooltip.js.map +0 -1
- package/overbreath-text.d.ts +0 -2
- package/overbreath-text.d.ts.map +0 -1
- package/overbreath-text.js +0 -2
- package/overbreath-text.js.map +0 -1
- package/root.d.ts +0 -23
- package/root.d.ts.map +0 -1
- package/root.js.map +0 -1
- package/route-view.d.ts +0 -2
- package/route-view.d.ts.map +0 -1
- package/route-view.js +0 -2
- package/route-view.js.map +0 -1
- package/sign-form.d.ts +0 -2
- package/sign-form.d.ts.map +0 -1
- package/sign-form.js +0 -2
- package/sign-form.js.map +0 -1
- package/skeleton-screen.d.ts +0 -2
- package/skeleton-screen.d.ts.map +0 -1
- package/skeleton-screen.js +0 -2
- package/skeleton-screen.js.map +0 -1
- package/super-a.d.ts +0 -2
- package/super-a.d.ts.map +0 -1
- package/super-a.js +0 -2
- package/super-a.js.map +0 -1
- package/tab-group.d.ts +0 -2
- package/tab-group.d.ts.map +0 -1
- package/tab-group.js +0 -2
- package/tab-group.js.map +0 -1
- package/time-bar.d.ts +0 -2
- package/time-bar.d.ts.map +0 -1
- package/time-bar.js +0 -2
- package/time-bar.js.map +0 -1
- package/typewriter-text.d.ts +0 -2
- package/typewriter-text.d.ts.map +0 -1
- package/typewriter-text.js +0 -2
- package/typewriter-text.js.map +0 -1
- package/web-components/a/avatar-a.d.ts.map +0 -1
- package/web-components/a/avatar-a.js.map +0 -1
- package/web-components/a/link-a.d.ts.map +0 -1
- package/web-components/a/link-a.js.map +0 -1
- package/web-components/a/super-a.d.ts +0 -31
- package/web-components/a/super-a.d.ts.map +0 -1
- package/web-components/a/super-a.js.map +0 -1
- package/web-components/button/base-button.d.ts.map +0 -1
- package/web-components/button/base-button.js.map +0 -1
- package/web-components/carousel/carousel-slider.d.ts.map +0 -1
- package/web-components/carousel/carousel-slider.js.map +0 -1
- package/web-components/form/base-form.d.ts.map +0 -1
- package/web-components/form/base-form.js.map +0 -1
- package/web-components/form/sign-form.d.ts +0 -19
- package/web-components/form/sign-form.d.ts.map +0 -1
- package/web-components/form/sign-form.js +0 -16
- package/web-components/form/sign-form.js.map +0 -1
- package/web-components/group/tab-group.d.ts.map +0 -1
- package/web-components/group/tab-group.js.map +0 -1
- package/web-components/input/base-input.d.ts +0 -49
- package/web-components/input/base-input.d.ts.map +0 -1
- package/web-components/input/base-input.js +0 -246
- package/web-components/input/base-input.js.map +0 -1
- package/web-components/items/alert-item.d.ts.map +0 -1
- package/web-components/items/alert-item.js.map +0 -1
- package/web-components/items/card-item.d.ts.map +0 -1
- package/web-components/items/card-item.js.map +0 -1
- package/web-components/items/drag-box.d.ts.map +0 -1
- package/web-components/items/drag-box.js.map +0 -1
- package/web-components/items/index.d.ts +0 -5
- package/web-components/items/index.d.ts.map +0 -1
- package/web-components/items/index.js +0 -6
- package/web-components/items/index.js.map +0 -1
- package/web-components/items/time-bar.d.ts.map +0 -1
- package/web-components/items/time-bar.js.map +0 -1
- package/web-components/layout/divider-line.d.ts.map +0 -1
- package/web-components/layout/divider-line.js.map +0 -1
- package/web-components/loading/loading-progress.d.ts.map +0 -1
- package/web-components/loading/loading-progress.js.map +0 -1
- package/web-components/loading/skeleton-screen.d.ts.map +0 -1
- package/web-components/loading/skeleton-screen.js.map +0 -1
- package/web-components/open/open-details.d.ts.map +0 -1
- package/web-components/open/open-details.js.map +0 -1
- package/web-components/open/open-dialog.d.ts.map +0 -1
- package/web-components/open/open-dialog.js.map +0 -1
- package/web-components/open/open-offset.d.ts.map +0 -1
- package/web-components/open/open-offset.js.map +0 -1
- package/web-components/open/open-tooltip.d.ts +0 -24
- package/web-components/open/open-tooltip.d.ts.map +0 -1
- package/web-components/open/open-tooltip.js.map +0 -1
- package/web-components/open/open.d.ts.map +0 -1
- package/web-components/open/open.js.map +0 -1
- package/web-components/text/clip-text.d.ts +0 -21
- package/web-components/text/clip-text.d.ts.map +0 -1
- package/web-components/text/clip-text.js.map +0 -1
- package/web-components/text/overbreath-text.d.ts.map +0 -1
- package/web-components/text/overbreath-text.js.map +0 -1
- package/web-components/text/typewriter-text.d.ts.map +0 -1
- package/web-components/text/typewriter-text.js.map +0 -1
- package/web-components/view/route-view.d.ts.map +0 -1
- package/web-components/view/route-view.js.map +0 -1
- package/web-components/view/wrap-view.d.ts.map +0 -1
- package/web-components/view/wrap-view.js.map +0 -1
- package/wrap-view.d.ts +0 -2
- package/wrap-view.d.ts.map +0 -1
- package/wrap-view.js +0 -2
- package/wrap-view.js.map +0 -1
@@ -1,12 +1,12 @@
|
|
1
|
-
import { type CSSResultGroup, type PropertyValueMap } from "
|
2
|
-
import { type EventsNames } from "
|
3
|
-
import { GodownElement } from "
|
1
|
+
import { type CSSResultGroup, type PropertyValueMap } from "../.deps.js";
|
2
|
+
import { type EventsNames } from "../lib/event-collection.js";
|
3
|
+
import { GodownElement } from "./root.js";
|
4
4
|
export type Direction4 = "left" | "right" | "top" | "bottom";
|
5
5
|
export type Direction5 = Direction4 | "center";
|
6
6
|
export type Direction8 = Direction4 | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
7
7
|
export type Direction9 = Direction8 | "center";
|
8
8
|
export type OnEvents = EventsNames | "";
|
9
|
-
export declare class
|
9
|
+
export declare class GodownOpenable extends GodownElement {
|
10
10
|
/**
|
11
11
|
* Summary text.
|
12
12
|
*/
|
@@ -34,5 +34,5 @@ export declare class OpenableElement extends GodownElement {
|
|
34
34
|
protected updated(changedProperties: PropertyValueMap<this>): void;
|
35
35
|
protected _handelClick(_: MouseEvent): void;
|
36
36
|
}
|
37
|
-
export default
|
38
|
-
//# sourceMappingURL=
|
37
|
+
export default GodownOpenable;
|
38
|
+
//# sourceMappingURL=openable.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"openable.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["supers/openable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,cAAc,EAAY,KAAK,gBAAgB,EAAE,MAAM,aAAa,CAAC;AACxF,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE1C,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,CAAC;AAE7D,MAAM,MAAM,UAAU,GAAG,UAAU,GAAG,QAAQ,CAAC;AAE/C,MAAM,MAAM,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,WAAW,GAAG,aAAa,GAAG,cAAc,CAAC;AAEhG,MAAM,MAAM,UAAU,GAAG,UAAU,GAAG,QAAQ,CAAC;AAE/C,MAAM,MAAM,QAAQ,GAAG,WAAW,GAAG,EAAE,CAAC;AAExC,qBAAa,cAAe,SAAQ,aAAa;IAC/C;;OAEG;IACS,OAAO,SAAM;IACzB;;OAEG;IACyC,KAAK,UAAS;IAC1D;;OAEG;IACyC,IAAI,UAAS;IACzD;;OAEG;IACS,EAAE,EAAE,QAAQ,CAAM;IAC9B;;OAEG;IACS,SAAS,EAAE,UAAU,GAAG,EAAE,CAAM;IAE5C,MAAM,CAAC,MAAM,iBAYO;IAEpB,MAAM,CAAC,EAAE,UAAa;IAItB,KAAK;IAIL,IAAI;IAIJ,SAAS,CAAC,OAAO,CAAC,iBAAiB,EAAE,gBAAgB,CAAC,IAAI,CAAC;IAQ3D,SAAS,CAAC,YAAY,CAAC,CAAC,EAAE,UAAU;CAGrC;AAED,eAAe,cAAc,CAAC"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { __decorate } from "tslib";
|
2
|
-
import { css, property } from "
|
3
|
-
import { GodownElement } from "
|
4
|
-
export class
|
2
|
+
import { css, property } from "../.deps.js";
|
3
|
+
import { GodownElement } from "./root.js";
|
4
|
+
export class GodownOpenable extends GodownElement {
|
5
5
|
constructor() {
|
6
6
|
super(...arguments);
|
7
7
|
/**
|
@@ -45,7 +45,7 @@ export class OpenableElement extends GodownElement {
|
|
45
45
|
this.toggle();
|
46
46
|
}
|
47
47
|
}
|
48
|
-
|
48
|
+
GodownOpenable.styles = [
|
49
49
|
GodownElement.styles,
|
50
50
|
css `
|
51
51
|
:host {
|
@@ -60,18 +60,18 @@ OpenableElement.styles = [
|
|
60
60
|
];
|
61
61
|
__decorate([
|
62
62
|
property()
|
63
|
-
],
|
63
|
+
], GodownOpenable.prototype, "summary", void 0);
|
64
64
|
__decorate([
|
65
65
|
property({ type: Boolean, reflect: true })
|
66
|
-
],
|
66
|
+
], GodownOpenable.prototype, "float", void 0);
|
67
67
|
__decorate([
|
68
68
|
property({ type: Boolean, reflect: true })
|
69
|
-
],
|
69
|
+
], GodownOpenable.prototype, "open", void 0);
|
70
70
|
__decorate([
|
71
71
|
property()
|
72
|
-
],
|
72
|
+
], GodownOpenable.prototype, "on", void 0);
|
73
73
|
__decorate([
|
74
74
|
property()
|
75
|
-
],
|
76
|
-
export default
|
77
|
-
//# sourceMappingURL=
|
75
|
+
], GodownOpenable.prototype, "direction", void 0);
|
76
|
+
export default GodownOpenable;
|
77
|
+
//# sourceMappingURL=openable.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"openable.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["supers/openable.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAuB,QAAQ,EAAyB,MAAM,aAAa,CAAC;AAExF,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAY1C,MAAM,OAAO,cAAe,SAAQ,aAAa;IAAjD;;QACE;;WAEG;QACS,YAAO,GAAG,EAAE,CAAC;QACzB;;WAEG;QACyC,UAAK,GAAG,KAAK,CAAC;QAC1D;;WAEG;QACyC,SAAI,GAAG,KAAK,CAAC;QACzD;;WAEG;QACS,OAAE,GAAa,EAAE,CAAC;QAC9B;;WAEG;QACS,cAAS,GAAoB,EAAE,CAAC;IAuC9C,CAAC;IAvBC,MAAM,CAAC,EAAE,GAAG,CAAC,IAAI,CAAC,IAAI;QACpB,IAAI,CAAC,IAAI,GAAG,EAAE,CAAC;IACjB,CAAC;IAED,KAAK;QACH,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC;IACpB,CAAC;IAED,IAAI;QACF,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;IAES,OAAO,CAAC,iBAAyC;QACzD,MAAM,IAAI,GAAG,iBAAiB,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QAC3C,IAAI,OAAO,IAAI,KAAK,OAAO,CAAC,CAAC,EAAE,CAAC;YAC9B,IAAI,CAAC,aAAa,CAAC,IAAI,WAAW,CAAC,QAAQ,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;QACvE,CAAC;IACH,CAAC;IAED,6DAA6D;IACnD,YAAY,CAAC,CAAa;QAClC,IAAI,CAAC,MAAM,EAAE,CAAC;IAChB,CAAC;;AApCM,qBAAM,GAAG;IACd,aAAa,CAAC,MAAM;IACpB,GAAG,CAAA;;;;;;;;;KASF;CACgB,AAZN,CAYO;AA9BR;IAAX,QAAQ,EAAE;+CAAc;AAImB;IAA3C,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;6CAAe;AAId;IAA3C,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;4CAAc;AAI7C;IAAX,QAAQ,EAAE;0CAAmB;AAIlB;IAAX,QAAQ,EAAE;iDAAiC;AAyC9C,eAAe,cAAc,CAAC","sourcesContent":["import { css, type CSSResultGroup, property, type PropertyValueMap } from \"../.deps.js\";\nimport { type EventsNames } from \"../lib/event-collection.js\";\nimport { GodownElement } from \"./root.js\";\n\nexport type Direction4 = \"left\" | \"right\" | \"top\" | \"bottom\";\n\nexport type Direction5 = Direction4 | \"center\";\n\nexport type Direction8 = Direction4 | \"top-left\" | \"top-right\" | \"bottom-left\" | \"bottom-right\";\n\nexport type Direction9 = Direction8 | \"center\";\n\nexport type OnEvents = EventsNames | \"\";\n\nexport class GodownOpenable extends GodownElement {\n /**\n * Summary text.\n */\n @property() summary = \"\";\n /**\n * Make the content float.\n */\n @property({ type: Boolean, reflect: true }) float = false;\n /**\n * Open the content.\n */\n @property({ type: Boolean, reflect: true }) open = false;\n /**\n * Enable event mode.\n */\n @property() on: OnEvents = \"\";\n /**\n * Direction of appearance.\n */\n @property() direction: Direction9 | \"\" = \"\";\n\n static styles = [\n GodownElement.styles,\n css`\n :host {\n display: block;\n transition:\n all 0.3s ease-in-out,\n color 0s,\n background 0s;\n height: fit-content;\n }\n `,\n ] as CSSResultGroup;\n\n toggle(to = !this.open) {\n this.open = to;\n }\n\n close() {\n this.open = false;\n }\n\n show() {\n this.open = true;\n }\n\n protected updated(changedProperties: PropertyValueMap<this>) {\n const open = changedProperties.get(\"open\");\n if (typeof open === typeof !0) {\n this.dispatchEvent(new CustomEvent(\"change\", { detail: this.open }));\n }\n }\n\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n protected _handelClick(_: MouseEvent) {\n this.toggle();\n }\n}\n\nexport default GodownOpenable;\n"]}
|
package/supers/root.d.ts
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
import { type CSSResult } from "lit";
|
2
|
+
import GodownElement from "../godown-element.js";
|
3
|
+
/**
|
4
|
+
* Custom CSS variable prefix, join with "--".
|
5
|
+
*/
|
6
|
+
export declare const cssvar: CSSResult;
|
7
|
+
export declare function createScope(scope: string): CSSResult;
|
8
|
+
export declare const cssvarValues: {
|
9
|
+
cssvar: CSSResult;
|
10
|
+
input: CSSResult;
|
11
|
+
main: CSSResult;
|
12
|
+
text: CSSResult;
|
13
|
+
mainRGB: CSSResult;
|
14
|
+
textRGB: CSSResult;
|
15
|
+
};
|
16
|
+
export { GodownElement };
|
17
|
+
export default GodownElement;
|
18
|
+
//# sourceMappingURL=root.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"root.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["supers/root.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,SAAS,EAAkC,MAAM,KAAK,CAAC;AAG1E,OAAO,aAAa,MAAM,sBAAsB,CAAC;AAIjD;;GAEG;AACH,eAAO,MAAM,MAAM,WAAuE,CAAC;AAE3F,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,CAEpD;AAMD,eAAO,MAAM,YAAY;;;;;;;CAOxB,CAAC;AAuDF,OAAO,EAAE,aAAa,EAAE,CAAC;AACzB,eAAe,aAAa,CAAC"}
|
@@ -1,14 +1,6 @@
|
|
1
1
|
import { css, unsafeCSS } from "lit";
|
2
|
-
import { conf } from "
|
3
|
-
import GodownElement from "
|
4
|
-
/**
|
5
|
-
* {@linkcode conf.define} a custom element.
|
6
|
-
* @param name Name for the new custom element. Must be a valid custom element name.
|
7
|
-
* @param options Object that controls how the element is defined.
|
8
|
-
*/
|
9
|
-
export const define = (name, options) => (constructor) => {
|
10
|
-
conf.define(name, constructor, options);
|
11
|
-
};
|
2
|
+
import { conf } from "../conf.js";
|
3
|
+
import GodownElement from "../godown-element.js";
|
12
4
|
const scopeString = "--";
|
13
5
|
/**
|
14
6
|
* Custom CSS variable prefix, join with "--".
|
@@ -79,6 +71,6 @@ GodownElement.styles = [
|
|
79
71
|
}
|
80
72
|
`,
|
81
73
|
];
|
82
|
-
GodownElement.disableWarning?.("change-in-update");
|
83
74
|
export { GodownElement };
|
75
|
+
export default GodownElement;
|
84
76
|
//# sourceMappingURL=root.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"root.js","sourceRoot":"https://github.com/startracex/godown/tree/main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C,KAAK;QAClB,YAAY,CAAC,KAAK,qBAAqB,YAAY,CAAC,IAAI;QACxD,YAAY,CAAC,KAAK;QAClB,YAAY,CAAC,KAAK;QAClB,YAAY,CAAC,KAAK,iBAAiB,YAAY,CAAC,IAAI;QACpD,YAAY,CAAC,KAAK,uBAAuB,YAAY,CAAC,KAAK;QAC3D,YAAY,CAAC,KAAK,wBAAwB,MAAM;QAChD,YAAY,CAAC,KAAK;QAClB,YAAY,CAAC,KAAK;QAClB,YAAY,CAAC,KAAK,kBAAkB,YAAY,CAAC,KAAK,yBAAyB,YAAY,CAAC,KAAK,wBAAwB,YAAY,CAAC,KAAK;QAC3I,YAAY,CAAC,KAAK;;GAEvB;IACD,GAAG,CAAA;;;;;;;;;;;;;;QAcG,MAAM;QACN,MAAM;mBACK,MAAM;wBACD,MAAM;;GAE3B;CACgB,CAAC;AAEpB,OAAO,EAAE,aAAa,EAAE,CAAC;AACzB,eAAe,aAAa,CAAC","sourcesContent":["import { css, type CSSResult, type CSSResultGroup, unsafeCSS } from \"lit\";\n\nimport { conf } from \"../conf.js\";\nimport GodownElement from \"../godown-element.js\";\n\nconst scopeString = \"--\";\n\n/**\n * Custom CSS variable prefix, join with \"--\".\n */\nexport const cssvar = unsafeCSS(scopeString + conf.cssvar.replace(/[^a-zA-Z0-9\\\\-]/g, \"\"));\n\nexport function createScope(scope: string): CSSResult {\n return joinScope(conf.tag(scope));\n}\n\nfunction joinScope(s: string) {\n return unsafeCSS(cssvar + scopeString + s);\n}\n\nexport const cssvarValues = {\n cssvar,\n input: joinScope(\"input\"),\n main: joinScope(\"background\"),\n text: joinScope(\"foreground\"),\n mainRGB: joinScope(\"background-rgb\"),\n textRGB: joinScope(\"foreground-rgb\"),\n};\n\nGodownElement.conf = conf;\n\nGodownElement.styles = [\n css`\n :host {\n ${cssvar}--background-rgb: 12 12 12;\n ${cssvar}--background: rgb(var(${cssvarValues.mainRGB}));\n ${cssvar}--foreground-rgb: 240 240 240;\n ${cssvar}--foreground: rgb(var(${cssvarValues.textRGB}));\n ${cssvar}--clip-background:linear-gradient(180deg, var(${cssvarValues.text}), rgb(var(${cssvarValues.textRGB}) / 68%));\n ${cssvar}--size: 100%;\n ${cssvar}--accept: rgb(25 130 180);\n font-size: var(${cssvar}--size);\n }\n `,\n css`\n :host {\n ${cssvarValues.input}--width: 10em;\n ${cssvarValues.input}--height: 1.6em;\n ${cssvarValues.input}--background: var(${cssvarValues.main});\n ${cssvarValues.input}--true: rgb(48 132 240);\n ${cssvarValues.input}--false: rgb(198 198 198);\n ${cssvarValues.input}--control:var(${cssvarValues.text});\n ${cssvarValues.input}--control-edge: var(${cssvarValues.input}--true);\n ${cssvarValues.input}--outline-color: var(${cssvar}--accept);\n ${cssvarValues.input}--outline-width: .15em;\n ${cssvarValues.input}--outline-style: solid;\n ${cssvarValues.input}--outline: var(${cssvarValues.input}--outline-width) var(${cssvarValues.input}--outline-style) var(${cssvarValues.input}--outline-color);\n ${cssvarValues.input}--radius: 0.2em;\n }\n `,\n css`\n * {\n font-size: 100%;\n font-style: normal;\n color: inherit;\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n border: 0;\n outline: 0;\n text-decoration: none;\n }\n\n ::selection {\n ${cssvar}--text-selection--color: inherit;\n ${cssvar}--text-selection--background: none;\n color: var(${cssvar}--text-selection--color);\n background: var(${cssvar}--text-selection--background);\n }\n `,\n] as CSSResultGroup;\n\nexport { GodownElement };\nexport default GodownElement;\n"]}
|
package/switch-input.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"switch-input.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["switch-input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,wCAAwC,CAAC","sourcesContent":["export { default } from \"./web-components/input/switch-input.js\"
|
1
|
+
{"version":3,"file":"switch-input.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["switch-input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,wCAAwC,CAAC","sourcesContent":["export { default } from \"./web-components/input/switch-input.js\";\n"]}
|
package/tabs.d.ts
ADDED
package/tabs.d.ts.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"tabs.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["tabs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC"}
|
package/tabs.js
ADDED
package/tabs.js.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"tabs.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["tabs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC","sourcesContent":["export { default } from \"./web-components/tabs/tabs.js\";\n"]}
|
package/time.d.ts
ADDED
package/time.d.ts.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"time.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["time.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC"}
|
package/time.js
ADDED
package/time.js.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"time.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["time.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC","sourcesContent":["export { default } from \"./web-components/text/time.js\";\n"]}
|
package/tooltip.d.ts
ADDED
package/tooltip.d.ts.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"tooltip.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["tooltip.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qCAAqC,CAAC"}
|
package/tooltip.js
ADDED
package/tooltip.js.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"tooltip.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["tooltip.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qCAAqC,CAAC","sourcesContent":["export { default } from \"./web-components/tooltip/tooltip.js\";\n"]}
|
package/typewriter.d.ts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"typewriter.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["typewriter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qCAAqC,CAAC"}
|
package/typewriter.js
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"typewriter.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["typewriter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qCAAqC,CAAC","sourcesContent":["export { default } from \"./web-components/text/typewriter.js\";\n"]}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import GodownAnchor from "../../supers/anchor.js";
|
2
|
+
/**
|
3
|
+
* {@linkcode A} similar to a.
|
4
|
+
*
|
5
|
+
* Has an optional arrow.
|
6
|
+
*/
|
7
|
+
export declare class A extends GodownAnchor {
|
8
|
+
}
|
9
|
+
export default A;
|
10
|
+
declare global {
|
11
|
+
interface HTMLElementTagNameMap {
|
12
|
+
"super-a": A;
|
13
|
+
"g-a": A;
|
14
|
+
}
|
15
|
+
}
|
16
|
+
//# sourceMappingURL=a.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"a.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/a/a.ts"],"names":[],"mappings":"AACA,OAAO,YAAY,MAAM,wBAAwB,CAAC;AAIlD;;;;GAIG;AACH,qBACa,CAAE,SAAQ,YAAY;CAAG;AAEtC,eAAe,CAAC,CAAC;AAEjB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,SAAS,EAAE,CAAC,CAAC;QACb,KAAK,EAAE,CAAC,CAAC;KACV;CACF"}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { __decorate } from "tslib";
|
2
|
+
import { define } from "../../decorators/define.js";
|
3
|
+
import GodownAnchor from "../../supers/anchor.js";
|
4
|
+
const defineName = "a";
|
5
|
+
/**
|
6
|
+
* {@linkcode A} similar to a.
|
7
|
+
*
|
8
|
+
* Has an optional arrow.
|
9
|
+
*/
|
10
|
+
let A = class A extends GodownAnchor {
|
11
|
+
};
|
12
|
+
A = __decorate([
|
13
|
+
define(defineName)
|
14
|
+
], A);
|
15
|
+
export { A };
|
16
|
+
export default A;
|
17
|
+
//# sourceMappingURL=a.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"a.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/a/a.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,YAAY,MAAM,wBAAwB,CAAC;AAElD,MAAM,UAAU,GAAG,GAAG,CAAC;AAEvB;;;;GAIG;AAEI,IAAM,CAAC,GAAP,MAAM,CAAE,SAAQ,YAAY;CAAG,CAAA;AAAzB,CAAC;IADb,MAAM,CAAC,UAAU,CAAC;GACN,CAAC,CAAwB;;AAEtC,eAAe,CAAC,CAAC","sourcesContent":["import { define } from \"../../decorators/define.js\";\nimport GodownAnchor from \"../../supers/anchor.js\";\n\nconst defineName = \"a\";\n\n/**\n * {@linkcode A} similar to a.\n *\n * Has an optional arrow.\n */\n@define(defineName)\nexport class A extends GodownAnchor {}\n\nexport default A;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"super-a\": A;\n \"g-a\": A;\n }\n}\n"]}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { type HTMLTemplate } from "../../lib/templates.js";
|
2
|
-
import { GodownElement } from "../../root.js";
|
2
|
+
import { GodownElement } from "../../supers/root.js";
|
3
3
|
declare const colors: {
|
4
4
|
success: string[];
|
5
5
|
info: string[];
|
@@ -8,11 +8,11 @@ declare const colors: {
|
|
8
8
|
inherit: string[];
|
9
9
|
};
|
10
10
|
/**
|
11
|
-
*
|
11
|
+
* {@linkcode Alert} renders a alert.
|
12
12
|
*
|
13
13
|
* Inspired by Ant-design.
|
14
14
|
*/
|
15
|
-
export declare class
|
15
|
+
export declare class Alert extends GodownElement {
|
16
16
|
/**
|
17
17
|
* Type of performance.
|
18
18
|
*/
|
@@ -32,12 +32,13 @@ export declare class AlertItem extends GodownElement {
|
|
32
32
|
static styles: import("lit").CSSResult[];
|
33
33
|
protected render(): HTMLTemplate;
|
34
34
|
close(): void;
|
35
|
-
static alert(root: HTMLElement, option: Partial<
|
35
|
+
static alert(root: HTMLElement, option: Partial<Alert>): Alert;
|
36
36
|
}
|
37
|
-
export default
|
37
|
+
export default Alert;
|
38
38
|
declare global {
|
39
39
|
interface HTMLElementTagNameMap {
|
40
|
-
"alert-item":
|
40
|
+
"alert-item": Alert;
|
41
|
+
"g-alert": Alert;
|
41
42
|
}
|
42
43
|
}
|
43
|
-
//# sourceMappingURL=alert
|
44
|
+
//# sourceMappingURL=alert.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"alert.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/alert/alert.ts"],"names":[],"mappings":"AAEA,OAAO,EAAY,KAAK,YAAY,EAAQ,MAAM,wBAAwB,CAAC;AAE3E,OAAO,EAAe,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAQlE,QAAA,MAAM,MAAM;;;;;;CAMX,CAAC;AAEF;;;;GAIG;AACH,qBACa,KAAM,SAAQ,aAAa;IACtC;;OAEG;IACS,IAAI,EAAE,MAAM,OAAO,MAAM,GAAG,MAAM,CAAU;IACxD;;OAEG;IACyB,SAAS,SAAQ;IAC7C;;OAEG;IACS,KAAK,SAAM;IACvB;;OAEG;IACS,OAAO,SAAM;IAEzB,MAAM,CAAC,MAAM,4BA0EX;IAEF,SAAS,CAAC,MAAM,IAAI,YAAY;IAahC,KAAK;IAOL,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,KAAK,CAAC,GAAG,KAAK;CAM/D;AAED,eAAe,KAAK,CAAC;AAErB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,YAAY,EAAE,KAAK,CAAC;QACpB,SAAS,EAAE,KAAK,CAAC;KAClB;CACF"}
|
@@ -1,10 +1,11 @@
|
|
1
|
-
var
|
1
|
+
var Alert_1;
|
2
2
|
import { __decorate } from "tslib";
|
3
|
-
import { css, html, property, unsafeCSS } from "
|
3
|
+
import { css, html, property, unsafeCSS } from "../../.deps.js";
|
4
|
+
import { define } from "../../decorators/define.js";
|
4
5
|
import { htmlSlot, svgX } from "../../lib/templates.js";
|
5
6
|
import { constructCSS } from "../../lib/utils.js";
|
6
|
-
import { createScope,
|
7
|
-
const defineName = "alert
|
7
|
+
import { createScope, GodownElement } from "../../supers/root.js";
|
8
|
+
const defineName = "alert";
|
8
9
|
const cssvarScope = createScope(defineName);
|
9
10
|
const currentColor = "currentColor";
|
10
11
|
const vars = ["color", "background", "border", "super"].map((v) => `${cssvarScope}--${v}`);
|
@@ -16,11 +17,11 @@ const colors = {
|
|
16
17
|
inherit: [currentColor, "inherit", currentColor, currentColor],
|
17
18
|
};
|
18
19
|
/**
|
19
|
-
*
|
20
|
+
* {@linkcode Alert} renders a alert.
|
20
21
|
*
|
21
22
|
* Inspired by Ant-design.
|
22
23
|
*/
|
23
|
-
let
|
24
|
+
let Alert = Alert_1 = class Alert extends GodownElement {
|
24
25
|
constructor() {
|
25
26
|
super(...arguments);
|
26
27
|
/**
|
@@ -59,13 +60,13 @@ let AlertItem = AlertItem_1 = class AlertItem extends GodownElement {
|
|
59
60
|
}, 250);
|
60
61
|
}
|
61
62
|
static alert(root, option) {
|
62
|
-
const ai = new
|
63
|
+
const ai = new Alert_1();
|
63
64
|
Object.assign(ai, option);
|
64
65
|
root.appendChild(ai);
|
65
66
|
return ai;
|
66
67
|
}
|
67
68
|
};
|
68
|
-
|
69
|
+
Alert.styles = [
|
69
70
|
unsafeCSS(constructCSS(vars, colors, (raw) => {
|
70
71
|
return `.${raw}`;
|
71
72
|
})),
|
@@ -140,19 +141,19 @@ AlertItem.styles = [
|
|
140
141
|
];
|
141
142
|
__decorate([
|
142
143
|
property()
|
143
|
-
],
|
144
|
+
], Alert.prototype, "call", void 0);
|
144
145
|
__decorate([
|
145
146
|
property({ type: Number })
|
146
|
-
],
|
147
|
+
], Alert.prototype, "autoclose", void 0);
|
147
148
|
__decorate([
|
148
149
|
property()
|
149
|
-
],
|
150
|
+
], Alert.prototype, "title", void 0);
|
150
151
|
__decorate([
|
151
152
|
property()
|
152
|
-
],
|
153
|
-
|
153
|
+
], Alert.prototype, "content", void 0);
|
154
|
+
Alert = Alert_1 = __decorate([
|
154
155
|
define(defineName)
|
155
|
-
],
|
156
|
-
export {
|
157
|
-
export default
|
158
|
-
//# sourceMappingURL=alert
|
156
|
+
], Alert);
|
157
|
+
export { Alert };
|
158
|
+
export default Alert;
|
159
|
+
//# sourceMappingURL=alert.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"alert.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/alert/alert.ts"],"names":[],"mappings":";;AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChE,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAqB,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAElE,MAAM,UA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KAAK,CAwHjB;;AAED,eAAe,KAAK,CAAC","sourcesContent":["import { css, html, property, unsafeCSS } from \"../../.deps.js\";\nimport { define } from \"../../decorators/define.js\";\nimport { htmlSlot, type HTMLTemplate, svgX } from \"../../lib/templates.js\";\nimport { constructCSS } from \"../../lib/utils.js\";\nimport { createScope, GodownElement } from \"../../supers/root.js\";\n\nconst defineName = \"alert\";\nconst cssvarScope = createScope(defineName);\n\nconst currentColor = \"currentColor\";\n\nconst vars = [\"color\", \"background\", \"border\", \"super\"].map((v) => `${cssvarScope}--${v}`);\nconst colors = {\n success: [\"#3c763d\", \"#dff0d8\", \"#d6e9c6\", \"#2b542c\"],\n info: [\"#31708f\", \"#d9edf7\", \"#bce8f1\", \"#245269\"],\n warning: [\"#8a6d3b\", \"#fcf8e3\", \"#faebcc\", \"#66512c\"],\n danger: [\"#a94442\", \"#f2dede\", \"#ebccd1\", \"#843534\"],\n inherit: [currentColor, \"inherit\", currentColor, currentColor],\n};\n\n/**\n * {@linkcode Alert} renders a alert.\n *\n * Inspired by Ant-design.\n */\n@define(defineName)\nexport class Alert extends GodownElement {\n /**\n * Type of performance.\n */\n @property() call: keyof typeof colors | \"hide\" = \"info\";\n /**\n * Close delay.\n */\n @property({ type: Number }) autoclose = 3000;\n /**\n * Alert title.\n */\n @property() title = \"\";\n /**\n * Alert content.\n */\n @property() content = \"\";\n\n static styles = [\n unsafeCSS(\n constructCSS(vars, colors, (raw) => {\n return `.${raw}`;\n }),\n ),\n css`\n :host {\n ${cssvarScope}--padding: .05em .25em .05em .35em;\n ${cssvarScope}--border-width: 0.15em;\n ${cssvarScope}--border-radius: 0.4em;\n border-radius: var(${cssvarScope}--border-radius);\n margin: 0 auto;\n display: block;\n }\n\n .hide {\n opacity: 0;\n transform: translateY(-100%);\n }\n\n .alert {\n transition: 0.25s;\n display: flex;\n justify-content: space-between;\n padding: var(${cssvarScope}--padding);\n border-radius: inherit;\n border: var(${cssvarScope}--border-width) solid var(${cssvarScope}--border);\n color: var(${cssvarScope}--color);\n background: var(${cssvarScope}--background);\n animation: alert 0.25s ease-in-out;\n }\n\n @keyframes alert {\n 0% {\n opacity: 0;\n transform: translateY(-50%);\n }\n 100% {\n opacity: 1;\n transform: none;\n }\n }\n\n div {\n min-height: 1.5em;\n line-height: 1.5em;\n }\n\n .close {\n height: fit-content;\n width: fit-content;\n border-radius: 50%;\n transition: inherit;\n }\n\n .close:hover {\n backdrop-filter: contrast(115%);\n }\n\n svg {\n display: block;\n height: 1.6em;\n width: 1.6em;\n }\n\n .close:hover path {\n stroke: var(${cssvarScope}--super);\n }\n\n path {\n stroke: var(${cssvarScope}--color);\n }\n `,\n ];\n\n protected render(): HTMLTemplate {\n if (this.autoclose) {\n setTimeout(() => this.close(), this.autoclose);\n }\n return html`<main class=\"${this.call} alert\">\n <div>\n <strong> ${this.title || htmlSlot(\"title\")}</strong>\n ${this.content || htmlSlot()}\n </div>\n <aside class=\"close\" @click=\"${this.close}\">${htmlSlot(\"close\", svgX(), this)}</aside>\n </main>`;\n }\n\n close() {\n this.shadowRoot.querySelector(\".alert\").classList.add(\"hide\");\n setTimeout(() => {\n this.remove();\n }, 250);\n }\n\n static alert(root: HTMLElement, option: Partial<Alert>): Alert {\n const ai = new Alert();\n Object.assign(ai, option);\n root.appendChild(ai);\n return ai;\n }\n}\n\nexport default Alert;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"alert-item\": Alert;\n \"g-alert\": Alert;\n }\n}\n"]}
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { type HTMLTemplate } from "../../lib/templates.js";
|
2
|
-
import
|
2
|
+
import GodownAnchor from "../../supers/anchor.js";
|
3
3
|
/**
|
4
|
-
*
|
4
|
+
* {@linkcode Avatar} renders the avatar or name and has a href.
|
5
5
|
*/
|
6
|
-
export declare class
|
6
|
+
export declare class Avatar extends GodownAnchor {
|
7
7
|
/**
|
8
8
|
* Image src.
|
9
9
|
*/
|
@@ -17,11 +17,11 @@ export declare class AvatarA extends SuperA {
|
|
17
17
|
*/
|
18
18
|
href: any;
|
19
19
|
/**
|
20
|
-
* If the image is not available, the {@linkcode
|
20
|
+
* If the image is not available, the {@linkcode Avatar.avaName} will be displayed.
|
21
21
|
*/
|
22
22
|
name: string;
|
23
23
|
/**
|
24
|
-
* If there is a value, the {@linkcode
|
24
|
+
* If there is a value, the {@linkcode Avatar.avaMore} will be displayed.
|
25
25
|
*/
|
26
26
|
more: number;
|
27
27
|
static styles: import("lit").CSSResult[];
|
@@ -31,10 +31,11 @@ export declare class AvatarA extends SuperA {
|
|
31
31
|
avaName(): string;
|
32
32
|
imgOnError(e: ErrorEvent): void;
|
33
33
|
}
|
34
|
-
export default
|
34
|
+
export default Avatar;
|
35
35
|
declare global {
|
36
36
|
interface HTMLElementTagNameMap {
|
37
|
-
"avatar-a":
|
37
|
+
"avatar-a": Avatar;
|
38
|
+
"g-avatar": Avatar;
|
38
39
|
}
|
39
40
|
}
|
40
|
-
//# sourceMappingURL=avatar
|
41
|
+
//# sourceMappingURL=avatar.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"avatar.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/avatar/avatar.ts"],"names":[],"mappings":"AAEA,OAAO,EAAY,KAAK,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,YAAY,MAAM,wBAAwB,CAAC;AAMlD;;GAEG;AACH,qBACa,MAAO,SAAQ,YAAY;IACtC;;OAEG;IACS,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAAM;IAChD;;OAEG;IACS,GAAG,EAAE,MAAM,CAAa;IACpC;;OAEG;IACS,IAAI,MAAa;IAC7B;;OAEG;IACS,IAAI,SAAM;IACtB;;OAEG;IACyB,IAAI,SAAK;IAErC,MAAM,CAAC,MAAM,4BAyCX;IAEF,SAAS,CAAC,MAAM,IAAI,YAAY;IAOhC,OAAO,CAAC,SAAS;IAajB,OAAO,IAAI,MAAM,GAAG,MAAM;IAO1B,OAAO,IAAI,MAAM;IAKjB,UAAU,CAAC,CAAC,EAAE,UAAU;CAOzB;AAED,eAAe,MAAM,CAAC;AAEtB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,UAAU,EAAE,MAAM,CAAC;QACnB,UAAU,EAAE,MAAM,CAAC;KACpB;CACF"}
|
@@ -1,14 +1,15 @@
|
|
1
1
|
import { __decorate } from "tslib";
|
2
|
-
import { css, html, ifDefined, property } from "
|
2
|
+
import { css, html, ifDefined, property } from "../../.deps.js";
|
3
|
+
import { define } from "../../decorators/define.js";
|
3
4
|
import { htmlSlot } from "../../lib/templates.js";
|
4
|
-
import
|
5
|
-
import
|
6
|
-
const defineName = "avatar
|
5
|
+
import GodownAnchor from "../../supers/anchor.js";
|
6
|
+
import { createScope } from "../../supers/root.js";
|
7
|
+
const defineName = "avatar";
|
7
8
|
const cssvarScope = createScope(defineName);
|
8
9
|
/**
|
9
|
-
*
|
10
|
+
* {@linkcode Avatar} renders the avatar or name and has a href.
|
10
11
|
*/
|
11
|
-
let
|
12
|
+
let Avatar = class Avatar extends GodownAnchor {
|
12
13
|
constructor() {
|
13
14
|
super(...arguments);
|
14
15
|
/**
|
@@ -24,11 +25,11 @@ let AvatarA = class AvatarA extends SuperA {
|
|
24
25
|
*/
|
25
26
|
this.href = undefined;
|
26
27
|
/**
|
27
|
-
* If the image is not available, the {@linkcode
|
28
|
+
* If the image is not available, the {@linkcode Avatar.avaName} will be displayed.
|
28
29
|
*/
|
29
30
|
this.name = "";
|
30
31
|
/**
|
31
|
-
* If there is a value, the {@linkcode
|
32
|
+
* If there is a value, the {@linkcode Avatar.avaMore} will be displayed.
|
32
33
|
*/
|
33
34
|
this.more = 0;
|
34
35
|
}
|
@@ -69,7 +70,7 @@ let AvatarA = class AvatarA extends SuperA {
|
|
69
70
|
}
|
70
71
|
}
|
71
72
|
};
|
72
|
-
|
73
|
+
Avatar.styles = [
|
73
74
|
css `
|
74
75
|
:host {
|
75
76
|
${cssvarScope}--ava: 1.5em;
|
@@ -113,22 +114,22 @@ AvatarA.styles = [
|
|
113
114
|
];
|
114
115
|
__decorate([
|
115
116
|
property()
|
116
|
-
],
|
117
|
+
], Avatar.prototype, "src", void 0);
|
117
118
|
__decorate([
|
118
119
|
property()
|
119
|
-
],
|
120
|
+
], Avatar.prototype, "def", void 0);
|
120
121
|
__decorate([
|
121
122
|
property()
|
122
|
-
],
|
123
|
+
], Avatar.prototype, "href", void 0);
|
123
124
|
__decorate([
|
124
125
|
property()
|
125
|
-
],
|
126
|
+
], Avatar.prototype, "name", void 0);
|
126
127
|
__decorate([
|
127
128
|
property({ type: Number })
|
128
|
-
],
|
129
|
-
|
129
|
+
], Avatar.prototype, "more", void 0);
|
130
|
+
Avatar = __decorate([
|
130
131
|
define(defineName)
|
131
|
-
],
|
132
|
-
export {
|
133
|
-
export default
|
134
|
-
//# sourceMappingURL=avatar
|
132
|
+
], Avatar);
|
133
|
+
export { Avatar };
|
134
|
+
export default Avatar;
|
135
|
+
//# sourceMappingURL=avatar.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"avatar.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/avatar/avatar.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAChE,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAqB,MAAM,wBAAwB,CAAC;AACrE,OAAO,YAAY,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEnD,MAAM,UAAU,GAAG,QAAQ,CAAC;AAC5B,MAAM,WAAW,GAAG,WAAW,CAAC,UAAU,CAAC,CAAC;AAE5C;;GAEG;AAEI,IAAM,MAAM,GAAZ,MAAM,MAAO,SAAQ,YAAY;IAAjC;;QAC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C,WAAW,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAC/C,CAAC;IAED,UAAU,CAAC,CAAa;QACtB,IAAI,IAAI,CAAC,GAAG,EAAE,CAAC;YACZ,CAAC,CAAC,MAA2B,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC;QAChD,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,GAAG,GAAG,SAAS,CAAC;QACvB,CAAC;IACH,CAAC;;AAjFM,aAAM,GAAG;IACd,GAAG,CAAA;;UAEG,WAAW;;;;;;;;;;;;;;;sBAeC,WAAW;qBACZ,WAAW;;;;;;;;;;;;;;;;;;;;;KAqB3B;CACF,AAzCY,CAyCX;AA3DU;IAAX,QAAQ,EAAE;mCAAqC;AAIpC;IAAX,QAAQ,EAAE;mCAAyB;AAIxB;IAAX,QAAQ,EAAE;oCAAkB;AAIjB;IAAX,QAAQ,EAAE;oCAAW;AAIM;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;oCAAU;AApB1B,MAAM;IADlB,MAAM,CAAC,UAAU,CAAC;GACN,MAAM,CAwGlB;;AAED,eAAe,MAAM,CAAC","sourcesContent":["import { css, html, ifDefined, property } from \"../../.deps.js\";\nimport { define } from \"../../decorators/define.js\";\nimport { htmlSlot, type HTMLTemplate } from \"../../lib/templates.js\";\nimport GodownAnchor from \"../../supers/anchor.js\";\nimport { createScope } from \"../../supers/root.js\";\n\nconst defineName = \"avatar\";\nconst cssvarScope = createScope(defineName);\n\n/**\n * {@linkcode Avatar} renders the avatar or name and has a href.\n */\n@define(defineName)\nexport class Avatar extends GodownAnchor {\n /**\n * Image src.\n */\n @property() src: string | undefined | null = \"\";\n /**\n * Default image src.\n */\n @property() def: string = undefined;\n /**\n * Link href.\n */\n @property() href = undefined;\n /**\n * If the image is not available, the {@linkcode Avatar.avaName} will be displayed.\n */\n @property() name = \"\";\n /**\n * If there is a value, the {@linkcode Avatar.avaMore} will be displayed.\n */\n @property({ type: Number }) more = 0;\n\n static styles = [\n css`\n :host {\n ${cssvarScope}--ava: 1.5em;\n display: inline-flex;\n align-items: center;\n }\n\n * {\n border-radius: inherit;\n }\n\n img {\n width: 100%;\n height: 100%;\n }\n\n a {\n height: var(${cssvarScope}--ava);\n width: var(${cssvarScope}--ava);\n color: inherit;\n display: flex;\n position: relative;\n align-items: inherit;\n }\n\n span {\n position: absolute;\n width: 100%;\n text-align: center;\n }\n\n slot[name=\"mask\"] {\n position: absolute;\n display: flex;\n width: 100%;\n height: 100%;\n align-items: center;\n justify-content: center;\n }\n `,\n ];\n\n protected render(): HTMLTemplate {\n return html`\n <a href=\"${ifDefined(this.href)}\"> ${this.renderAva()} ${htmlSlot(\"mask\")} </a>\n ${htmlSlot()}\n `;\n }\n\n private renderAva(): HTMLTemplate {\n if (this.more) {\n return html`<span>${this.avaMore()}</span>`;\n }\n if (this.src) {\n return html`<img src=\"${this.src}\" @error=${this.imgOnError} alt=\"\" />`;\n }\n if (this.name) {\n return html`<span>${this.avaName()}</span>`;\n }\n return htmlSlot(\"avatar\");\n }\n\n avaMore(): string | number {\n if (this.more < 0) {\n return \"+\";\n }\n return (this.more > 99 ? \"99\" : this.more) + \"+\";\n }\n\n avaName(): string {\n const name = this.name.slice(0, 2);\n return name[0].toUpperCase() + name.slice(1);\n }\n\n imgOnError(e: ErrorEvent) {\n if (this.def) {\n (e.target as HTMLImageElement).src = this.def;\n } else {\n this.src = undefined;\n }\n }\n}\n\nexport default Avatar;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"avatar-a\": Avatar;\n \"g-avatar\": Avatar;\n }\n}\n"]}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { type HTMLTemplate } from "../../lib/templates.js";
|
2
|
-
import { GodownElement } from "../../root.js";
|
2
|
+
import { GodownElement } from "../../supers/root.js";
|
3
3
|
declare const colors: {
|
4
4
|
black: string[];
|
5
5
|
gary: string[];
|
@@ -11,11 +11,11 @@ declare const colors: {
|
|
11
11
|
};
|
12
12
|
type Colors = keyof typeof colors;
|
13
13
|
/**
|
14
|
-
*
|
14
|
+
* {@linkcode Button}.
|
15
15
|
*
|
16
16
|
* Inspired by Next-ui.
|
17
17
|
*/
|
18
|
-
export declare class
|
18
|
+
export declare class Button extends GodownElement {
|
19
19
|
/**
|
20
20
|
* Whether to disable this element.
|
21
21
|
*/
|
@@ -71,10 +71,11 @@ export declare class BaseButton extends GodownElement {
|
|
71
71
|
*/
|
72
72
|
nextColor(): Colors | string;
|
73
73
|
}
|
74
|
-
export default
|
74
|
+
export default Button;
|
75
75
|
declare global {
|
76
76
|
interface HTMLElementTagNameMap {
|
77
|
-
"base-button":
|
77
|
+
"base-button": Button;
|
78
|
+
"g-button": Button;
|
78
79
|
}
|
79
80
|
}
|
80
|
-
//# sourceMappingURL=
|
81
|
+
//# sourceMappingURL=button.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/button/button.ts"],"names":[],"mappings":"AAEA,OAAO,EAAY,KAAK,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAErE,OAAO,EAAe,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAYlE,QAAA,MAAM,MAAM;;;;;;;;CA2CX,CAAC;AAEF,KAAK,MAAM,GAAG,MAAM,OAAO,MAAM,CAAC;AAElC;;;;GAIG;AACH,qBACa,MAAO,SAAQ,aAAa;IACvC;;OAEG;IACyC,QAAQ,UAAS;IAC7D;;OAEG;IACyC,KAAK,UAAS;IAC1D;;OAEG;IACyC,MAAM,UAAS;IAC3D;;OAEG;IACyC,MAAM,UAAS;IAC3D;;OAEG;IACyC,KAAK,UAAS;IAC1D;;OAEG;IACS,KAAK,EAAE,MAAM,GAAG,MAAM,CAAW;IAC7C;;OAEG;IACS,IAAI,SAAM;IAEV,EAAE,EAAE,WAAW,CAAC;IACd,IAAI,EAAE,iBAAiB,CAAC;IAEtC,MAAM,CAAC,MAAM,4BAuHX;IAEF,SAAS,CAAC,MAAM,IAAI,YAAY;IAShC,KAAK;IAOL,IAAI;IAIJ,SAAS,CAAC,YAAY;IAiBtB,SAAS,CAAC,YAAY,CAAC,CAAC,EAAE,UAAU;IAgBpC,SAAS,CAAC,YAAY,CAAC,CAAC,EAAE,UAAU;IAYpC;;;;;;;;;;;;;;;OAeG;IACH,SAAS,IAAI,MAAM,GAAG,MAAM;CAG7B;AAED,eAAe,MAAM,CAAC;AAEtB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,aAAa,EAAE,MAAM,CAAC;QACtB,UAAU,EAAE,MAAM,CAAC;KACpB;CACF"}
|