godown 2.5.0 → 2.6.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/README.md +1 -1
- package/alert-item.d.ts +2 -0
- package/alert-item.d.ts.map +1 -0
- package/alert-item.js +2 -0
- package/alert-item.js.map +1 -0
- package/avatar-a.d.ts +2 -0
- package/avatar-a.d.ts.map +1 -0
- package/avatar-a.js +2 -0
- package/avatar-a.js.map +1 -0
- package/avatar-group.d.ts +2 -0
- package/avatar-group.d.ts.map +1 -0
- package/avatar-group.js +2 -0
- package/avatar-group.js.map +1 -0
- package/base-button.d.ts +2 -0
- package/base-button.d.ts.map +1 -0
- package/base-button.js +2 -0
- package/base-button.js.map +1 -0
- package/base-form.d.ts +2 -0
- package/base-form.d.ts.map +1 -0
- package/base-form.js +2 -0
- package/base-form.js.map +1 -0
- package/base-input.d.ts +2 -0
- package/base-input.d.ts.map +1 -0
- package/base-input.js +2 -0
- package/base-input.js.map +1 -0
- package/card-item.d.ts +2 -0
- package/card-item.d.ts.map +1 -0
- package/card-item.js +2 -0
- package/card-item.js.map +1 -0
- package/carousel-slider.d.ts +2 -0
- package/carousel-slider.d.ts.map +1 -0
- package/carousel-slider.js +2 -0
- package/carousel-slider.js.map +1 -0
- package/clip-text.d.ts +2 -0
- package/clip-text.d.ts.map +1 -0
- package/clip-text.js +2 -0
- package/clip-text.js.map +1 -0
- package/conf.d.ts +43 -3
- package/conf.d.ts.map +1 -1
- package/conf.js +14 -11
- package/conf.js.map +1 -1
- package/deps.d.ts +4 -3
- package/deps.d.ts.map +1 -1
- package/deps.js +4 -3
- package/deps.js.map +1 -1
- package/details-group.d.ts +2 -0
- package/details-group.d.ts.map +1 -0
- package/details-group.js +2 -0
- package/details-group.js.map +1 -0
- package/divider-line.d.ts +2 -0
- package/divider-line.d.ts.map +1 -0
- package/divider-line.js +2 -0
- package/divider-line.js.map +1 -0
- package/drag-box.d.ts +2 -0
- package/drag-box.d.ts.map +1 -0
- package/drag-box.js +2 -0
- package/drag-box.js.map +1 -0
- package/flex-flow.d.ts +2 -0
- package/flex-flow.d.ts.map +1 -0
- package/flex-flow.js +2 -0
- package/flex-flow.js.map +1 -0
- package/godown-element.d.ts +2 -2
- package/godown-element.d.ts.map +1 -1
- package/godown-element.js +1 -1
- package/godown-element.js.map +1 -1
- package/index.d.ts +2 -6
- package/index.d.ts.map +1 -1
- package/index.js +2 -6
- package/index.js.map +1 -1
- package/label-input.d.ts +2 -0
- package/label-input.d.ts.map +1 -0
- package/label-input.js +2 -0
- package/label-input.js.map +1 -0
- package/lib/directives.d.ts.map +1 -1
- package/lib/directives.js.map +1 -1
- package/lib/event-collection.d.ts +1 -1
- package/lib/event-collection.d.ts.map +1 -1
- package/lib/event-collection.js.map +1 -1
- package/lib/route-tree.d.ts.map +1 -1
- package/lib/route-tree.js.map +1 -1
- package/lib/templates.d.ts.map +1 -1
- package/lib/templates.js.map +1 -1
- package/lib/utils.d.ts.map +1 -1
- package/lib/utils.js +2 -2
- package/lib/utils.js.map +1 -1
- package/link-a.d.ts +2 -0
- package/link-a.d.ts.map +1 -0
- package/link-a.js +2 -0
- package/link-a.js.map +1 -0
- package/loading-progress.d.ts +2 -0
- package/loading-progress.d.ts.map +1 -0
- package/loading-progress.js +2 -0
- package/loading-progress.js.map +1 -0
- package/nav-aside.d.ts +2 -0
- package/nav-aside.d.ts.map +1 -0
- package/nav-aside.js +2 -0
- package/nav-aside.js.map +1 -0
- package/nav-layout.d.ts +2 -0
- package/nav-layout.d.ts.map +1 -0
- package/nav-layout.js +2 -0
- package/nav-layout.js.map +1 -0
- package/open-details.d.ts +2 -0
- package/open-details.d.ts.map +1 -0
- package/open-details.js +2 -0
- package/open-details.js.map +1 -0
- package/open-dialog.d.ts +2 -0
- package/open-dialog.d.ts.map +1 -0
- package/open-dialog.js +2 -0
- package/open-dialog.js.map +1 -0
- package/open-list.d.ts +2 -0
- package/open-list.d.ts.map +1 -0
- package/open-list.js +2 -0
- package/open-list.js.map +1 -0
- package/open-offset.d.ts +2 -0
- package/open-offset.d.ts.map +1 -0
- package/open-offset.js +2 -0
- package/open-offset.js.map +1 -0
- package/open-tooltip.d.ts +2 -0
- package/open-tooltip.d.ts.map +1 -0
- package/open-tooltip.js +2 -0
- package/open-tooltip.js.map +1 -0
- package/overbreath-text.d.ts +2 -0
- package/overbreath-text.d.ts.map +1 -0
- package/overbreath-text.js +2 -0
- package/overbreath-text.js.map +1 -0
- package/package.json +57 -10
- package/react/create.d.ts.map +1 -1
- package/react/create.js.map +1 -1
- package/react/index.d.ts +37 -7
- package/react/index.d.ts.map +1 -1
- package/react/index.js +114 -7
- package/react/index.js.map +1 -1
- package/root.d.ts.map +1 -1
- package/root.js +3 -2
- package/root.js.map +1 -1
- package/route-view.d.ts +2 -0
- package/route-view.d.ts.map +1 -0
- package/route-view.js +2 -0
- package/route-view.js.map +1 -0
- package/scroll-x.d.ts +2 -0
- package/scroll-x.d.ts.map +1 -0
- package/scroll-x.js +2 -0
- package/scroll-x.js.map +1 -0
- package/search-input.d.ts +2 -0
- package/search-input.d.ts.map +1 -0
- package/search-input.js +2 -0
- package/search-input.js.map +1 -0
- package/select-input.d.ts +2 -0
- package/select-input.d.ts.map +1 -0
- package/select-input.js +2 -0
- package/select-input.js.map +1 -0
- package/sign-form.d.ts +2 -0
- package/sign-form.d.ts.map +1 -0
- package/sign-form.js +2 -0
- package/sign-form.js.map +1 -0
- package/skeleton-screen.d.ts +2 -0
- package/skeleton-screen.d.ts.map +1 -0
- package/skeleton-screen.js +2 -0
- package/skeleton-screen.js.map +1 -0
- package/split-input.d.ts +2 -0
- package/split-input.d.ts.map +1 -0
- package/split-input.js +2 -0
- package/split-input.js.map +1 -0
- package/super-a.d.ts +2 -0
- package/super-a.d.ts.map +1 -0
- package/super-a.js +2 -0
- package/super-a.js.map +1 -0
- package/switch-input.d.ts +2 -0
- package/switch-input.d.ts.map +1 -0
- package/switch-input.js +2 -0
- package/switch-input.js.map +1 -0
- package/tab-group.d.ts +2 -0
- package/tab-group.d.ts.map +1 -0
- package/tab-group.js +2 -0
- package/tab-group.js.map +1 -0
- package/time-bar.d.ts +2 -0
- package/time-bar.d.ts.map +1 -0
- package/time-bar.js +2 -0
- package/time-bar.js.map +1 -0
- package/typewriter-text.d.ts +2 -0
- package/typewriter-text.d.ts.map +1 -0
- package/typewriter-text.js +2 -0
- package/typewriter-text.js.map +1 -0
- package/{items → web-components/a}/avatar-a.d.ts +7 -7
- package/web-components/a/avatar-a.d.ts.map +1 -0
- package/{items → web-components/a}/avatar-a.js +57 -62
- package/web-components/a/avatar-a.js.map +1 -0
- package/{items → web-components/a}/link-a.d.ts +6 -6
- package/web-components/a/link-a.d.ts.map +1 -0
- package/{items → web-components/a}/link-a.js +16 -21
- package/web-components/a/link-a.js.map +1 -0
- package/{items → web-components/a}/super-a.d.ts +5 -5
- package/web-components/a/super-a.d.ts.map +1 -0
- package/{items → web-components/a}/super-a.js +34 -40
- package/web-components/a/super-a.js.map +1 -0
- package/{items → web-components/button}/base-button.d.ts +3 -3
- package/web-components/button/base-button.d.ts.map +1 -0
- package/{items → web-components/button}/base-button.js +100 -106
- package/web-components/button/base-button.js.map +1 -0
- package/{view/rotation-pool.d.ts → web-components/carousel/carousel-slider.d.ts} +7 -7
- package/web-components/carousel/carousel-slider.d.ts.map +1 -0
- package/{view/rotation-pool.js → web-components/carousel/carousel-slider.js} +87 -92
- package/web-components/carousel/carousel-slider.js.map +1 -0
- package/{input-form/sign-form.d.ts → web-components/form/base-form.d.ts} +9 -18
- package/web-components/form/base-form.d.ts.map +1 -0
- package/{input-form/sign-form.js → web-components/form/base-form.js} +32 -40
- package/web-components/form/base-form.js.map +1 -0
- package/web-components/form/sign-form.d.ts +19 -0
- package/web-components/form/sign-form.d.ts.map +1 -0
- package/web-components/form/sign-form.js +16 -0
- package/web-components/form/sign-form.js.map +1 -0
- package/{group → web-components/group}/avatar-group.d.ts +6 -6
- package/web-components/group/avatar-group.d.ts.map +1 -0
- package/{group → web-components/group}/avatar-group.js +24 -30
- package/web-components/group/avatar-group.js.map +1 -0
- package/{group → web-components/group}/details-group.d.ts +3 -3
- package/web-components/group/details-group.d.ts.map +1 -0
- package/{group → web-components/group}/details-group.js +12 -18
- package/web-components/group/details-group.js.map +1 -0
- package/{group → web-components/group}/tab-group.d.ts +4 -4
- package/web-components/group/tab-group.d.ts.map +1 -0
- package/{group → web-components/group}/tab-group.js +50 -56
- package/web-components/group/tab-group.js.map +1 -0
- package/web-components/index.d.ts +38 -0
- package/web-components/index.d.ts.map +1 -0
- package/web-components/index.js +39 -0
- package/web-components/index.js.map +1 -0
- package/{input-form → web-components/input}/base-input.d.ts +4 -4
- package/web-components/input/base-input.d.ts.map +1 -0
- package/{input-form → web-components/input}/base-input.js +80 -85
- package/web-components/input/base-input.js.map +1 -0
- package/{input-form/std.d.ts → web-components/input/input.d.ts} +4 -16
- package/web-components/input/input.d.ts.map +1 -0
- package/{input-form/std.js → web-components/input/input.js} +27 -54
- package/web-components/input/input.js.map +1 -0
- package/{input-form → web-components/input}/label-input.d.ts +4 -4
- package/web-components/input/label-input.d.ts.map +1 -0
- package/{input-form → web-components/input}/label-input.js +56 -61
- package/web-components/input/label-input.js.map +1 -0
- package/{input-form → web-components/input}/search-input.d.ts +4 -4
- package/web-components/input/search-input.d.ts.map +1 -0
- package/{input-form → web-components/input}/search-input.js +64 -69
- package/web-components/input/search-input.js.map +1 -0
- package/{input-form → web-components/input}/select-input.d.ts +4 -4
- package/web-components/input/select-input.d.ts.map +1 -0
- package/{input-form → web-components/input}/select-input.js +97 -101
- package/web-components/input/select-input.js.map +1 -0
- package/{input-form → web-components/input}/split-input.d.ts +4 -4
- package/web-components/input/split-input.d.ts.map +1 -0
- package/{input-form → web-components/input}/split-input.js +56 -61
- package/web-components/input/split-input.js.map +1 -0
- package/{input-form → web-components/input}/switch-input.d.ts +4 -4
- package/web-components/input/switch-input.d.ts.map +1 -0
- package/{input-form → web-components/input}/switch-input.js +42 -47
- package/web-components/input/switch-input.js.map +1 -0
- package/{items → web-components/items}/alert-item.d.ts +3 -3
- package/web-components/items/alert-item.d.ts.map +1 -0
- package/{items → web-components/items}/alert-item.js +38 -43
- package/web-components/items/alert-item.js.map +1 -0
- package/{items → web-components/items}/card-item.d.ts +4 -4
- package/web-components/items/card-item.d.ts.map +1 -0
- package/{items → web-components/items}/card-item.js +57 -63
- package/web-components/items/card-item.js.map +1 -0
- package/{layout → web-components/items}/drag-box.d.ts +3 -3
- package/web-components/items/drag-box.d.ts.map +1 -0
- package/{layout → web-components/items}/drag-box.js +13 -19
- package/web-components/items/drag-box.js.map +1 -0
- package/web-components/items/index.d.ts +5 -0
- package/web-components/items/index.d.ts.map +1 -0
- package/web-components/items/index.js +6 -0
- package/web-components/items/index.js.map +1 -0
- package/{items → web-components/items}/time-bar.d.ts +3 -3
- package/web-components/items/time-bar.d.ts.map +1 -0
- package/{items → web-components/items}/time-bar.js +12 -17
- package/web-components/items/time-bar.js.map +1 -0
- package/web-components/layout/divider-line.d.ts +20 -0
- package/web-components/layout/divider-line.d.ts.map +1 -0
- package/{layout/div-line.js → web-components/layout/divider-line.js} +24 -30
- package/web-components/layout/divider-line.js.map +1 -0
- package/{layout → web-components/layout}/flex-flow.d.ts +3 -3
- package/web-components/layout/flex-flow.d.ts.map +1 -0
- package/{layout → web-components/layout}/flex-flow.js +12 -18
- package/web-components/layout/flex-flow.js.map +1 -0
- package/web-components/layout/index.d.ts +5 -0
- package/web-components/layout/index.d.ts.map +1 -0
- package/web-components/layout/index.js +6 -0
- package/web-components/layout/index.js.map +1 -0
- package/{layout → web-components/layout}/nav-aside.d.ts +4 -4
- package/web-components/layout/nav-aside.d.ts.map +1 -0
- package/{layout → web-components/layout}/nav-aside.js +19 -25
- package/web-components/layout/nav-aside.js.map +1 -0
- package/{layout → web-components/layout}/nav-layout.d.ts +4 -4
- package/web-components/layout/nav-layout.d.ts.map +1 -0
- package/{layout → web-components/layout}/nav-layout.js +31 -37
- package/web-components/layout/nav-layout.js.map +1 -0
- package/{items/load-progress.d.ts → web-components/loading/loading-progress.d.ts} +7 -7
- package/web-components/loading/loading-progress.d.ts.map +1 -0
- package/{items/load-progress.js → web-components/loading/loading-progress.js} +41 -47
- package/web-components/loading/loading-progress.js.map +1 -0
- package/{layout → web-components/loading}/skeleton-screen.d.ts +4 -4
- package/web-components/loading/skeleton-screen.d.ts.map +1 -0
- package/{layout → web-components/loading}/skeleton-screen.js +24 -30
- package/web-components/loading/skeleton-screen.js.map +1 -0
- package/{view/details-expand.d.ts → web-components/open/open-details.d.ts} +8 -8
- package/web-components/open/open-details.d.ts.map +1 -0
- package/{view/details-expand.js → web-components/open/open-details.js} +35 -40
- package/web-components/open/open-details.js.map +1 -0
- package/{items/dialog-item.d.ts → web-components/open/open-dialog.d.ts} +8 -8
- package/web-components/open/open-dialog.d.ts.map +1 -0
- package/{items/dialog-item.js → web-components/open/open-dialog.js} +83 -89
- package/web-components/open/open-dialog.js.map +1 -0
- package/web-components/open/open-list.d.ts +20 -0
- package/web-components/open/open-list.d.ts.map +1 -0
- package/web-components/open/open-list.js +71 -0
- package/web-components/open/open-list.js.map +1 -0
- package/{view/offset-expand.d.ts → web-components/open/open-offset.d.ts} +8 -8
- package/web-components/open/open-offset.d.ts.map +1 -0
- package/{view/offset-expand.js → web-components/open/open-offset.js} +66 -71
- package/web-components/open/open-offset.js.map +1 -0
- package/web-components/open/open-tooltip.d.ts +24 -0
- package/web-components/open/open-tooltip.d.ts.map +1 -0
- package/{view/tool-tip.js → web-components/open/open-tooltip.js} +28 -33
- package/web-components/open/open-tooltip.js.map +1 -0
- package/{view/std.d.ts → web-components/open/open.d.ts} +6 -6
- package/web-components/open/open.d.ts.map +1 -0
- package/{view/std.js → web-components/open/open.js} +35 -40
- package/web-components/open/open.js.map +1 -0
- package/{effect → web-components/text}/clip-text.d.ts +4 -4
- package/web-components/text/clip-text.d.ts.map +1 -0
- package/web-components/text/clip-text.js +44 -0
- package/web-components/text/clip-text.js.map +1 -0
- package/{effect → web-components/text}/overbreath-text.d.ts +4 -4
- package/web-components/text/overbreath-text.d.ts.map +1 -0
- package/{effect → web-components/text}/overbreath-text.js +21 -27
- package/web-components/text/overbreath-text.js.map +1 -0
- package/{effect → web-components/text}/typewriter-text.d.ts +4 -4
- package/web-components/text/typewriter-text.d.ts.map +1 -0
- package/{effect → web-components/text}/typewriter-text.js +38 -44
- package/web-components/text/typewriter-text.js.map +1 -0
- package/{view → web-components/view}/route-view.d.ts +4 -4
- package/web-components/view/route-view.d.ts.map +1 -0
- package/{view → web-components/view}/route-view.js +16 -21
- package/web-components/view/route-view.js.map +1 -0
- package/{view → web-components/view}/scroll-x.d.ts +2 -2
- package/web-components/view/scroll-x.d.ts.map +1 -0
- package/{view → web-components/view}/scroll-x.js +35 -40
- package/web-components/view/scroll-x.js.map +1 -0
- package/{view/with-wrap.d.ts → web-components/view/wrap-view.d.ts} +7 -7
- package/web-components/view/wrap-view.d.ts.map +1 -0
- package/{view/with-wrap.js → web-components/view/wrap-view.js} +29 -34
- package/web-components/view/wrap-view.js.map +1 -0
- package/wrap-view.d.ts +2 -0
- package/wrap-view.d.ts.map +1 -0
- package/wrap-view.js +2 -0
- package/wrap-view.js.map +1 -0
- package/effect/clip-text.d.ts.map +0 -1
- package/effect/clip-text.js +0 -50
- package/effect/clip-text.js.map +0 -1
- package/effect/index.d.ts +0 -4
- package/effect/index.d.ts.map +0 -1
- package/effect/index.js +0 -4
- package/effect/index.js.map +0 -1
- package/effect/overbreath-text.d.ts.map +0 -1
- package/effect/overbreath-text.js.map +0 -1
- package/effect/std.d.ts +0 -4
- package/effect/std.d.ts.map +0 -1
- package/effect/std.js +0 -4
- package/effect/std.js.map +0 -1
- package/effect/typewriter-text.d.ts.map +0 -1
- package/effect/typewriter-text.js.map +0 -1
- package/group/avatar-group.d.ts.map +0 -1
- package/group/avatar-group.js.map +0 -1
- package/group/details-group.d.ts.map +0 -1
- package/group/details-group.js.map +0 -1
- package/group/index.d.ts +0 -4
- package/group/index.d.ts.map +0 -1
- package/group/index.js +0 -4
- package/group/index.js.map +0 -1
- package/group/std.d.ts +0 -4
- package/group/std.d.ts.map +0 -1
- package/group/std.js +0 -4
- package/group/std.js.map +0 -1
- package/group/tab-group.d.ts.map +0 -1
- package/group/tab-group.js.map +0 -1
- package/input-form/base-input.d.ts.map +0 -1
- package/input-form/base-input.js.map +0 -1
- package/input-form/index.d.ts +0 -8
- package/input-form/index.d.ts.map +0 -1
- package/input-form/index.js +0 -8
- package/input-form/index.js.map +0 -1
- package/input-form/label-input.d.ts.map +0 -1
- package/input-form/label-input.js.map +0 -1
- package/input-form/search-input.d.ts.map +0 -1
- package/input-form/search-input.js.map +0 -1
- package/input-form/select-input.d.ts.map +0 -1
- package/input-form/select-input.js.map +0 -1
- package/input-form/sign-form.d.ts.map +0 -1
- package/input-form/sign-form.js.map +0 -1
- package/input-form/split-input.d.ts.map +0 -1
- package/input-form/split-input.js.map +0 -1
- package/input-form/std.d.ts.map +0 -1
- package/input-form/std.js.map +0 -1
- package/input-form/switch-input.d.ts.map +0 -1
- package/input-form/switch-input.js.map +0 -1
- package/items/alert-item.d.ts.map +0 -1
- package/items/alert-item.js.map +0 -1
- package/items/avatar-a.d.ts.map +0 -1
- package/items/avatar-a.js.map +0 -1
- package/items/base-button.d.ts.map +0 -1
- package/items/base-button.js.map +0 -1
- package/items/card-item.d.ts.map +0 -1
- package/items/card-item.js.map +0 -1
- package/items/dialog-item.d.ts.map +0 -1
- package/items/dialog-item.js.map +0 -1
- package/items/index.d.ts +0 -10
- package/items/index.d.ts.map +0 -1
- package/items/index.js +0 -10
- package/items/index.js.map +0 -1
- package/items/link-a.d.ts.map +0 -1
- package/items/link-a.js.map +0 -1
- package/items/load-progress.d.ts.map +0 -1
- package/items/load-progress.js.map +0 -1
- package/items/std.d.ts +0 -4
- package/items/std.d.ts.map +0 -1
- package/items/std.js +0 -4
- package/items/std.js.map +0 -1
- package/items/super-a.d.ts.map +0 -1
- package/items/super-a.js.map +0 -1
- package/items/time-bar.d.ts.map +0 -1
- package/items/time-bar.js.map +0 -1
- package/layout/div-line.d.ts +0 -20
- package/layout/div-line.d.ts.map +0 -1
- package/layout/div-line.js.map +0 -1
- package/layout/drag-box.d.ts.map +0 -1
- package/layout/drag-box.js.map +0 -1
- package/layout/flex-flow.d.ts.map +0 -1
- package/layout/flex-flow.js.map +0 -1
- package/layout/index.d.ts +0 -7
- package/layout/index.d.ts.map +0 -1
- package/layout/index.js +0 -7
- package/layout/index.js.map +0 -1
- package/layout/nav-aside.d.ts.map +0 -1
- package/layout/nav-aside.js.map +0 -1
- package/layout/nav-layout.d.ts.map +0 -1
- package/layout/nav-layout.js.map +0 -1
- package/layout/skeleton-screen.d.ts.map +0 -1
- package/layout/skeleton-screen.js.map +0 -1
- package/layout/std.d.ts +0 -4
- package/layout/std.d.ts.map +0 -1
- package/layout/std.js +0 -4
- package/layout/std.js.map +0 -1
- package/react/effect.d.ts +0 -5
- package/react/effect.d.ts.map +0 -1
- package/react/effect.js +0 -13
- package/react/effect.js.map +0 -1
- package/react/group.d.ts +0 -5
- package/react/group.d.ts.map +0 -1
- package/react/group.js +0 -13
- package/react/group.js.map +0 -1
- package/react/input-form.d.ts +0 -28
- package/react/input-form.d.ts.map +0 -1
- package/react/input-form.js +0 -38
- package/react/input-form.js.map +0 -1
- package/react/items.d.ts +0 -11
- package/react/items.d.ts.map +0 -1
- package/react/items.js +0 -31
- package/react/items.js.map +0 -1
- package/react/layout.d.ts +0 -8
- package/react/layout.d.ts.map +0 -1
- package/react/layout.js +0 -22
- package/react/layout.js.map +0 -1
- package/react/view.d.ts +0 -10
- package/react/view.d.ts.map +0 -1
- package/react/view.js +0 -28
- package/react/view.js.map +0 -1
- package/view/details-expand.d.ts.map +0 -1
- package/view/details-expand.js.map +0 -1
- package/view/index.d.ts +0 -9
- package/view/index.d.ts.map +0 -1
- package/view/index.js +0 -9
- package/view/index.js.map +0 -1
- package/view/menu-list.d.ts +0 -20
- package/view/menu-list.d.ts.map +0 -1
- package/view/menu-list.js +0 -76
- package/view/menu-list.js.map +0 -1
- package/view/offset-expand.d.ts.map +0 -1
- package/view/offset-expand.js.map +0 -1
- package/view/rotation-pool.d.ts.map +0 -1
- package/view/rotation-pool.js.map +0 -1
- package/view/route-view.d.ts.map +0 -1
- package/view/route-view.js.map +0 -1
- package/view/scroll-x.d.ts.map +0 -1
- package/view/scroll-x.js.map +0 -1
- package/view/std.d.ts.map +0 -1
- package/view/std.js.map +0 -1
- package/view/tool-tip.d.ts +0 -24
- package/view/tool-tip.d.ts.map +0 -1
- package/view/tool-tip.js.map +0 -1
- package/view/with-wrap.d.ts.map +0 -1
- package/view/with-wrap.js.map +0 -1
package/react/index.js
CHANGED
@@ -1,8 +1,115 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
export
|
5
|
-
|
6
|
-
|
7
|
-
export
|
1
|
+
/// script generated
|
2
|
+
"use client";
|
3
|
+
import { create } from "./create.js";
|
4
|
+
export const AvatarA = create({
|
5
|
+
elementClass: (await import("../web-components/a/avatar-a.js")).default,
|
6
|
+
});
|
7
|
+
export const LinkA = create({
|
8
|
+
elementClass: (await import("../web-components/a/link-a.js")).default,
|
9
|
+
});
|
10
|
+
export const SuperA = create({
|
11
|
+
elementClass: (await import("../web-components/a/super-a.js")).default,
|
12
|
+
});
|
13
|
+
export const BaseButton = create({
|
14
|
+
elementClass: (await import("../web-components/button/base-button.js")).default,
|
15
|
+
});
|
16
|
+
export const CarouselSlider = create({
|
17
|
+
elementClass: (await import("../web-components/carousel/carousel-slider.js")).default,
|
18
|
+
});
|
19
|
+
export const BaseForm = create({
|
20
|
+
elementClass: (await import("../web-components/form/base-form.js")).default,
|
21
|
+
});
|
22
|
+
export const SignForm = create({
|
23
|
+
elementClass: (await import("../web-components/form/sign-form.js")).default,
|
24
|
+
});
|
25
|
+
export const AvatarGroup = create({
|
26
|
+
elementClass: (await import("../web-components/group/avatar-group.js")).default,
|
27
|
+
});
|
28
|
+
export const DetailsGroup = create({
|
29
|
+
elementClass: (await import("../web-components/group/details-group.js")).default,
|
30
|
+
});
|
31
|
+
export const TabGroup = create({
|
32
|
+
elementClass: (await import("../web-components/group/tab-group.js")).default,
|
33
|
+
});
|
34
|
+
export const BaseInput = create({
|
35
|
+
elementClass: (await import("../web-components/input/base-input.js")).default,
|
36
|
+
});
|
37
|
+
export const LabelInput = create({
|
38
|
+
elementClass: (await import("../web-components/input/label-input.js")).default,
|
39
|
+
});
|
40
|
+
export const SearchInput = create({
|
41
|
+
elementClass: (await import("../web-components/input/search-input.js")).default,
|
42
|
+
});
|
43
|
+
export const SelectInput = create({
|
44
|
+
elementClass: (await import("../web-components/input/select-input.js")).default,
|
45
|
+
});
|
46
|
+
export const SplitInput = create({
|
47
|
+
elementClass: (await import("../web-components/input/split-input.js")).default,
|
48
|
+
});
|
49
|
+
export const SwitchInput = create({
|
50
|
+
elementClass: (await import("../web-components/input/switch-input.js")).default,
|
51
|
+
});
|
52
|
+
export const AlertItem = create({
|
53
|
+
elementClass: (await import("../web-components/items/alert-item.js")).default,
|
54
|
+
});
|
55
|
+
export const CardItem = create({
|
56
|
+
elementClass: (await import("../web-components/items/card-item.js")).default,
|
57
|
+
});
|
58
|
+
export const DragBox = create({
|
59
|
+
elementClass: (await import("../web-components/items/drag-box.js")).default,
|
60
|
+
});
|
61
|
+
export const TimeBar = create({
|
62
|
+
elementClass: (await import("../web-components/items/time-bar.js")).default,
|
63
|
+
});
|
64
|
+
export const DividerLine = create({
|
65
|
+
elementClass: (await import("../web-components/layout/divider-line.js")).default,
|
66
|
+
});
|
67
|
+
export const FlexFlow = create({
|
68
|
+
elementClass: (await import("../web-components/layout/flex-flow.js")).default,
|
69
|
+
});
|
70
|
+
export const NavAside = create({
|
71
|
+
elementClass: (await import("../web-components/layout/nav-aside.js")).default,
|
72
|
+
});
|
73
|
+
export const NavLayout = create({
|
74
|
+
elementClass: (await import("../web-components/layout/nav-layout.js")).default,
|
75
|
+
});
|
76
|
+
export const LoadingProgress = create({
|
77
|
+
elementClass: (await import("../web-components/loading/loading-progress.js")).default,
|
78
|
+
});
|
79
|
+
export const SkeletonScreen = create({
|
80
|
+
elementClass: (await import("../web-components/loading/skeleton-screen.js")).default,
|
81
|
+
});
|
82
|
+
export const OpenDetails = create({
|
83
|
+
elementClass: (await import("../web-components/open/open-details.js")).default,
|
84
|
+
});
|
85
|
+
export const OpenDialog = create({
|
86
|
+
elementClass: (await import("../web-components/open/open-dialog.js")).default,
|
87
|
+
});
|
88
|
+
export const OpenList = create({
|
89
|
+
elementClass: (await import("../web-components/open/open-list.js")).default,
|
90
|
+
});
|
91
|
+
export const OpenOffset = create({
|
92
|
+
elementClass: (await import("../web-components/open/open-offset.js")).default,
|
93
|
+
});
|
94
|
+
export const OpenTooltip = create({
|
95
|
+
elementClass: (await import("../web-components/open/open-tooltip.js")).default,
|
96
|
+
});
|
97
|
+
export const ClipText = create({
|
98
|
+
elementClass: (await import("../web-components/text/clip-text.js")).default,
|
99
|
+
});
|
100
|
+
export const OverbreathText = create({
|
101
|
+
elementClass: (await import("../web-components/text/overbreath-text.js")).default,
|
102
|
+
});
|
103
|
+
export const TypewriterText = create({
|
104
|
+
elementClass: (await import("../web-components/text/typewriter-text.js")).default,
|
105
|
+
});
|
106
|
+
export const RouteView = create({
|
107
|
+
elementClass: (await import("../web-components/view/route-view.js")).default,
|
108
|
+
});
|
109
|
+
export const ScrollX = create({
|
110
|
+
elementClass: (await import("../web-components/view/scroll-x.js")).default,
|
111
|
+
});
|
112
|
+
export const WrapView = create({
|
113
|
+
elementClass: (await import("../web-components/view/wrap-view.js")).default,
|
114
|
+
});
|
8
115
|
//# sourceMappingURL=index.js.map
|
package/react/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["react/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACp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,SAAS,GAAG,MAAM,CAAC;IAC9B,YAAY,EAAE,CAAC,MAAM,MAAM,CAAC,sCAAsC,CAAC,CAAC,CAAC,OAAO;CAC7E,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG,MAAM,CAAC;IAC5B,YAAY,EAAE,CAAC,MAAM,MAAM,CAAC,oCAAoC,CAAC,CAAC,CAAC,OAAO;CAC3E,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,QAAQ,GAAG,MAAM,CAAC;IAC7B,YAAY,EAAE,CAAC,MAAM,MAAM,CAAC,qCAAqC,CAAC,CAAC,CAAC,OAAO;CAC5E,CAAC,CAAC","sourcesContent":["/// script generated\n\"use client\";\nimport { create } from \"./create.js\";\n\nexport const AvatarA = create({\n elementClass: (await import(\"../web-components/a/avatar-a.js\")).default,\n});\n\nexport const LinkA = create({\n elementClass: (await import(\"../web-components/a/link-a.js\")).default,\n});\n\nexport const SuperA = create({\n elementClass: (await import(\"../web-components/a/super-a.js\")).default,\n});\n\nexport const BaseButton = create({\n elementClass: (await import(\"../web-components/button/base-button.js\")).default,\n});\n\nexport const CarouselSlider = create({\n elementClass: (await import(\"../web-components/carousel/carousel-slider.js\")).default,\n});\n\nexport const BaseForm = create({\n elementClass: (await import(\"../web-components/form/base-form.js\")).default,\n});\n\nexport const SignForm = create({\n elementClass: (await import(\"../web-components/form/sign-form.js\")).default,\n});\n\nexport const AvatarGroup = create({\n elementClass: (await import(\"../web-components/group/avatar-group.js\")).default,\n});\n\nexport const DetailsGroup = create({\n elementClass: (await import(\"../web-components/group/details-group.js\")).default,\n});\n\nexport const TabGroup = create({\n elementClass: (await import(\"../web-components/group/tab-group.js\")).default,\n});\n\nexport const BaseInput = create({\n elementClass: (await import(\"../web-components/input/base-input.js\")).default,\n});\n\nexport const LabelInput = create({\n elementClass: (await import(\"../web-components/input/label-input.js\")).default,\n});\n\nexport const SearchInput = create({\n elementClass: (await import(\"../web-components/input/search-input.js\")).default,\n});\n\nexport const SelectInput = create({\n elementClass: (await import(\"../web-components/input/select-input.js\")).default,\n});\n\nexport const SplitInput = create({\n elementClass: (await import(\"../web-components/input/split-input.js\")).default,\n});\n\nexport const SwitchInput = create({\n elementClass: (await import(\"../web-components/input/switch-input.js\")).default,\n});\n\nexport const AlertItem = create({\n elementClass: (await import(\"../web-components/items/alert-item.js\")).default,\n});\n\nexport const CardItem = create({\n elementClass: (await import(\"../web-components/items/card-item.js\")).default,\n});\n\nexport const DragBox = create({\n elementClass: (await import(\"../web-components/items/drag-box.js\")).default,\n});\n\nexport const TimeBar = create({\n elementClass: (await import(\"../web-components/items/time-bar.js\")).default,\n});\n\nexport const DividerLine = create({\n elementClass: (await import(\"../web-components/layout/divider-line.js\")).default,\n});\n\nexport const FlexFlow = create({\n elementClass: (await import(\"../web-components/layout/flex-flow.js\")).default,\n});\n\nexport const NavAside = create({\n elementClass: (await import(\"../web-components/layout/nav-aside.js\")).default,\n});\n\nexport const NavLayout = create({\n elementClass: (await import(\"../web-components/layout/nav-layout.js\")).default,\n});\n\nexport const LoadingProgress = create({\n elementClass: (await import(\"../web-components/loading/loading-progress.js\")).default,\n});\n\nexport const SkeletonScreen = create({\n elementClass: (await import(\"../web-components/loading/skeleton-screen.js\")).default,\n});\n\nexport const OpenDetails = create({\n elementClass: (await import(\"../web-components/open/open-details.js\")).default,\n});\n\nexport const OpenDialog = create({\n elementClass: (await import(\"../web-components/open/open-dialog.js\")).default,\n});\n\nexport const OpenList = create({\n elementClass: (await import(\"../web-components/open/open-list.js\")).default,\n});\n\nexport const OpenOffset = create({\n elementClass: (await import(\"../web-components/open/open-offset.js\")).default,\n});\n\nexport const OpenTooltip = create({\n elementClass: (await import(\"../web-components/open/open-tooltip.js\")).default,\n});\n\nexport const ClipText = create({\n elementClass: (await import(\"../web-components/text/clip-text.js\")).default,\n});\n\nexport const OverbreathText = create({\n elementClass: (await import(\"../web-components/text/overbreath-text.js\")).default,\n});\n\nexport const TypewriterText = create({\n elementClass: (await import(\"../web-components/text/typewriter-text.js\")).default,\n});\n\nexport const RouteView = create({\n elementClass: (await import(\"../web-components/view/route-view.js\")).default,\n});\n\nexport const ScrollX = create({\n elementClass: (await import(\"../web-components/view/scroll-x.js\")).default,\n});\n\nexport const WrapView = create({\n elementClass: (await import(\"../web-components/view/wrap-view.js\")).default,\n});\n"]}
|
package/root.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"root.d.ts","sourceRoot":"","sources":["
|
1
|
+
{"version":3,"file":"root.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["root.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,SAAS,EAAkC,MAAM,KAAK,CAAC;AAG1E,OAAO,aAAa,MAAM,qBAAqB,CAAC;AAEhD;;;;GAIG;AACH,eAAO,MAAM,MAAM,UAAW,MAAM,YAAY,wBAAwB,mBAAmB,wBAAwB,SAElH,CAAC;AAIF;;GAEG;AACH,eAAO,MAAM,MAAM,WAAuE,CAAC;AAE3F,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,CAEpD;AAMD,eAAO,MAAM,YAAY;;;;;;;CAOxB,CAAC;AAwDF,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
package/root.js
CHANGED
@@ -9,15 +9,16 @@ import GodownElement from "./godown-element.js";
|
|
9
9
|
export const define = (name, options) => (constructor) => {
|
10
10
|
conf.define(name, constructor, options);
|
11
11
|
};
|
12
|
+
const scopeString = "--";
|
12
13
|
/**
|
13
14
|
* Custom CSS variable prefix, join with "--".
|
14
15
|
*/
|
15
|
-
export const cssvar = unsafeCSS(
|
16
|
+
export const cssvar = unsafeCSS(scopeString + conf.cssvar.replace(/[^a-zA-Z0-9\\-]/g, ""));
|
16
17
|
export function createScope(scope) {
|
17
18
|
return joinScope(conf.tag(scope));
|
18
19
|
}
|
19
20
|
function joinScope(s) {
|
20
|
-
return unsafeCSS(
|
21
|
+
return unsafeCSS(cssvar + scopeString + s);
|
21
22
|
}
|
22
23
|
export const cssvarValues = {
|
23
24
|
cssvar,
|
package/root.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"root.js","sourceRoot":"","sources":["
|
1
|
+
{"version":3,"file":"root.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["root.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAuC,SAAS,EAAE,MAAM,KAAK,CAAC;AAE1E,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,aAAa,MAAM,qBAAqB,CAAC;AAEhD;;;;GAIG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,IAAa,EAAE,OAAkC,EAAE,EAAE,CAAC,CAAC,WAAqC,EAAE,EAAE;IACrH,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;AAC1C,CAAC,CAAC;AAEF,MAAM,WAAW,GAAG,IAAI,CAAC;AAEzB;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,kBAAkB,EAAE,EAAE,CAAC,CAAC,CAAC;AAE3F,MAAM,UAAU,WAAW,CAAC,KAAa;IACvC,OAAO,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,SAAS,CAAC,CAAS;IAC1B,OAAO,SAAS,CAAC,MAAM,GAAG,WAAW,GAAG,CAAC,CAAC,CAAC;AAC7C,CAAC;AAED,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,MAAM;IACN,KAAK,EAAE,SAAS,CAAC,OAAO,CAAC;IACzB,IAAI,EAAE,SAAS,CAAC,YAAY,CAAC;IAC7B,IAAI,EAAE,SAAS,CAAC,YAAY,CAAC;IAC7B,OAAO,EAAE,SAAS,CAAC,gBAAgB,CAAC;IACpC,OAAO,EAAE,SAAS,CAAC,gBAAgB,CAAC;CACrC,CAAC;AAEF,aAAa,CAAC,IAAI,GAAG,IAAI,CAAC;AAE1B,aAAa,CAAC,MAAM,GAAG;IACrB,GAAG,CAAA;;QAEG,MAAM;QACN,MAAM,yBAAyB,YAAY,CAAC,OAAO;QACnD,MAAM;QACN,MAAM,yBAAyB,YAAY,CAAC,OAAO;QACnD,MAAM,iDAAiD,YAAY,CAAC,IAAI,cAAc,YAAY,CAAC,OAAO;QAC1G,MAAM;QACN,MAAM;uBACS,MAAM;;GAE1B;IACD,GAAG,CAAA;;QAEG,YAAY,CAAC,KAAK;QAClB,YAAY,CAAC,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;;;;;;;;;;;;;QAaG,MAAM;QACN,MAAM;mBACK,MAAM;wBACD,MAAM;;GAE3B;CACgB,CAAC;AAEpB,aAAa,CAAC,cAAc,EAAE,CAAC,kBAAkB,CAAC,CAAC;AAEnD,OAAO,EAAE,aAAa,EAAE,CAAC","sourcesContent":["import { css, type CSSResult, type CSSResultGroup, unsafeCSS } from \"lit\";\n\nimport { conf } from \"./conf.js\";\nimport GodownElement from \"./godown-element.js\";\n\n/**\n * {@linkcode conf.define} a custom element.\n * @param name Name for the new custom element. Must be a valid custom element name.\n * @param options Object that controls how the element is defined.\n */\nexport const define = (name?: string, options?: ElementDefinitionOptions) => (constructor: CustomElementConstructor) => {\n conf.define(name, constructor, options);\n};\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 }\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\nGodownElement.disableWarning?.(\"change-in-update\");\n\nexport { GodownElement };\n"]}
|
package/route-view.d.ts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"route-view.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["route-view.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qCAAqC,CAAC"}
|
package/route-view.js
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"route-view.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["route-view.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qCAAqC,CAAC","sourcesContent":["export { default } from \"./web-components/view/route-view.js\";"]}
|
package/scroll-x.d.ts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"scroll-x.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["scroll-x.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mCAAmC,CAAC"}
|
package/scroll-x.js
ADDED
package/scroll-x.js.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"scroll-x.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["scroll-x.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mCAAmC,CAAC","sourcesContent":["export { default } from \"./web-components/view/scroll-x.js\";"]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"search-input.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["search-input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,wCAAwC,CAAC"}
|
package/search-input.js
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"search-input.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["search-input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,wCAAwC,CAAC","sourcesContent":["export { default } from \"./web-components/input/search-input.js\";"]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"select-input.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["select-input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,wCAAwC,CAAC"}
|
package/select-input.js
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"select-input.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["select-input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,wCAAwC,CAAC","sourcesContent":["export { default } from \"./web-components/input/select-input.js\";"]}
|
package/sign-form.d.ts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"sign-form.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["sign-form.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAC"}
|
package/sign-form.js
ADDED
package/sign-form.js.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"sign-form.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["sign-form.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAC","sourcesContent":["export { default } from \"./web-components/form/sign-form.js\";"]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"skeleton-screen.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["skeleton-screen.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,6CAA6C,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"skeleton-screen.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["skeleton-screen.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,6CAA6C,CAAC","sourcesContent":["export { default } from \"./web-components/loading/skeleton-screen.js\";"]}
|
package/split-input.d.ts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"split-input.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["split-input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC"}
|
package/split-input.js
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"split-input.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["split-input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC","sourcesContent":["export { default } from \"./web-components/input/split-input.js\";"]}
|
package/super-a.d.ts
ADDED
package/super-a.d.ts.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"super-a.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["super-a.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC"}
|
package/super-a.js
ADDED
package/super-a.js.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"super-a.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["super-a.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC","sourcesContent":["export { default } from \"./web-components/a/super-a.js\";"]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"switch-input.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["switch-input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,wCAAwC,CAAC"}
|
package/switch-input.js
ADDED
@@ -0,0 +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\";"]}
|
package/tab-group.d.ts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"tab-group.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["tab-group.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qCAAqC,CAAC"}
|
package/tab-group.js
ADDED
package/tab-group.js.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"tab-group.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["tab-group.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qCAAqC,CAAC","sourcesContent":["export { default } from \"./web-components/group/tab-group.js\";"]}
|
package/time-bar.d.ts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"time-bar.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["time-bar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAC"}
|
package/time-bar.js
ADDED
package/time-bar.js.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"time-bar.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["time-bar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAC","sourcesContent":["export { default } from \"./web-components/items/time-bar.js\";"]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"typewriter-text.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["typewriter-text.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,0CAA0C,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"typewriter-text.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["typewriter-text.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,0CAA0C,CAAC","sourcesContent":["export { default } from \"./web-components/text/typewriter-text.js\";"]}
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import { type HTMLTemplate } from "
|
2
|
-
import
|
1
|
+
import { type HTMLTemplate } from "../../lib/templates.js";
|
2
|
+
import SuperA from "./super-a.js";
|
3
3
|
/**
|
4
4
|
* AvatarAnchor renders the avatar or name and has a href.
|
5
5
|
*/
|
6
|
-
export declare class
|
6
|
+
export declare class AvatarA extends SuperA {
|
7
7
|
/**
|
8
8
|
* Image src.
|
9
9
|
*/
|
@@ -17,11 +17,11 @@ export declare class AvatarAnchor extends ItemsSTD {
|
|
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 AvatarA.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 AvatarA.avaMore} will be displayed.
|
25
25
|
*/
|
26
26
|
more: number;
|
27
27
|
static styles: import("lit").CSSResult[];
|
@@ -31,10 +31,10 @@ export declare class AvatarAnchor extends ItemsSTD {
|
|
31
31
|
avaName(): string;
|
32
32
|
imgOnError(e: ErrorEvent): void;
|
33
33
|
}
|
34
|
-
export default
|
34
|
+
export default AvatarA;
|
35
35
|
declare global {
|
36
36
|
interface HTMLElementTagNameMap {
|
37
|
-
"avatar-a":
|
37
|
+
"avatar-a": AvatarA;
|
38
38
|
}
|
39
39
|
}
|
40
40
|
//# sourceMappingURL=avatar-a.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"avatar-a.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/a/avatar-a.ts"],"names":[],"mappings":"AACA,OAAO,EAAY,KAAK,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAErE,OAAO,MAAM,MAAM,cAAc,CAAC;AAKlC;;GAEG;AACH,qBACa,OAAQ,SAAQ,MAAM;IACjC;;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,OAAO,CAAC;AAEvB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,UAAU,EAAE,OAAO,CAAC;KACrB;CACF"}
|
@@ -1,19 +1,14 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
};
|
7
|
-
import { createScope, define } from "../root.js";
|
8
|
-
import { css, html, ifDefined, property } from "../deps.js";
|
9
|
-
import { htmlSlot } from "../lib/templates.js";
|
10
|
-
import ItemsSTD from "./std.js";
|
1
|
+
import { __decorate } from "tslib";
|
2
|
+
import { css, html, ifDefined, property } from "../../deps.js";
|
3
|
+
import { htmlSlot } from "../../lib/templates.js";
|
4
|
+
import { createScope, define } from "../../root.js";
|
5
|
+
import SuperA from "./super-a.js";
|
11
6
|
const defineName = "avatar-a";
|
12
7
|
const cssvarScope = createScope(defineName);
|
13
8
|
/**
|
14
9
|
* AvatarAnchor renders the avatar or name and has a href.
|
15
10
|
*/
|
16
|
-
let
|
11
|
+
let AvatarA = class AvatarA extends SuperA {
|
17
12
|
constructor() {
|
18
13
|
super(...arguments);
|
19
14
|
/**
|
@@ -29,53 +24,16 @@ let AvatarAnchor = class AvatarAnchor extends ItemsSTD {
|
|
29
24
|
*/
|
30
25
|
this.href = undefined;
|
31
26
|
/**
|
32
|
-
* If the image is not available, the {@linkcode
|
27
|
+
* If the image is not available, the {@linkcode AvatarA.avaName} will be displayed.
|
33
28
|
*/
|
34
29
|
this.name = "";
|
35
30
|
/**
|
36
|
-
* If there is a value, the {@linkcode
|
31
|
+
* If there is a value, the {@linkcode AvatarA.avaMore} will be displayed.
|
37
32
|
*/
|
38
33
|
this.more = 0;
|
39
34
|
}
|
40
|
-
|
41
|
-
|
42
|
-
<a href="${ifDefined(this.href)}"> ${this.renderAva()} ${htmlSlot("mask")} </a>
|
43
|
-
${htmlSlot()}
|
44
|
-
`;
|
45
|
-
}
|
46
|
-
renderAva() {
|
47
|
-
if (this.more) {
|
48
|
-
return html `<span>${this.avaMore()}</span>`;
|
49
|
-
}
|
50
|
-
if (this.src) {
|
51
|
-
return html `<img src="${this.src}" @error=${this.imgOnError} alt="" />`;
|
52
|
-
}
|
53
|
-
if (this.name) {
|
54
|
-
return html `<span>${this.avaName()}</span>`;
|
55
|
-
}
|
56
|
-
return htmlSlot("avatar");
|
57
|
-
}
|
58
|
-
avaMore() {
|
59
|
-
if (this.more < 0) {
|
60
|
-
return "+";
|
61
|
-
}
|
62
|
-
return (this.more > 99 ? "99" : this.more) + "+";
|
63
|
-
}
|
64
|
-
avaName() {
|
65
|
-
const name = this.name.slice(0, 2);
|
66
|
-
return name[0].toUpperCase() + name.slice(1);
|
67
|
-
}
|
68
|
-
imgOnError(e) {
|
69
|
-
if (this.def) {
|
70
|
-
e.target.src = this.def;
|
71
|
-
}
|
72
|
-
else {
|
73
|
-
this.src = undefined;
|
74
|
-
}
|
75
|
-
}
|
76
|
-
};
|
77
|
-
AvatarAnchor.styles = [
|
78
|
-
css `
|
35
|
+
static { this.styles = [
|
36
|
+
css `
|
79
37
|
:host {
|
80
38
|
${cssvarScope}--ava: 1.5em;
|
81
39
|
display: inline-flex;
|
@@ -115,25 +73,62 @@ AvatarAnchor.styles = [
|
|
115
73
|
justify-content: center;
|
116
74
|
}
|
117
75
|
`,
|
118
|
-
];
|
76
|
+
]; }
|
77
|
+
render() {
|
78
|
+
return html `
|
79
|
+
<a href="${ifDefined(this.href)}"> ${this.renderAva()} ${htmlSlot("mask")} </a>
|
80
|
+
${htmlSlot()}
|
81
|
+
`;
|
82
|
+
}
|
83
|
+
renderAva() {
|
84
|
+
if (this.more) {
|
85
|
+
return html `<span>${this.avaMore()}</span>`;
|
86
|
+
}
|
87
|
+
if (this.src) {
|
88
|
+
return html `<img src="${this.src}" @error=${this.imgOnError} alt="" />`;
|
89
|
+
}
|
90
|
+
if (this.name) {
|
91
|
+
return html `<span>${this.avaName()}</span>`;
|
92
|
+
}
|
93
|
+
return htmlSlot("avatar");
|
94
|
+
}
|
95
|
+
avaMore() {
|
96
|
+
if (this.more < 0) {
|
97
|
+
return "+";
|
98
|
+
}
|
99
|
+
return (this.more > 99 ? "99" : this.more) + "+";
|
100
|
+
}
|
101
|
+
avaName() {
|
102
|
+
const name = this.name.slice(0, 2);
|
103
|
+
return name[0].toUpperCase() + name.slice(1);
|
104
|
+
}
|
105
|
+
imgOnError(e) {
|
106
|
+
if (this.def) {
|
107
|
+
e.target.src = this.def;
|
108
|
+
}
|
109
|
+
else {
|
110
|
+
this.src = undefined;
|
111
|
+
}
|
112
|
+
}
|
113
|
+
};
|
119
114
|
__decorate([
|
120
115
|
property()
|
121
|
-
],
|
116
|
+
], AvatarA.prototype, "src", void 0);
|
122
117
|
__decorate([
|
123
118
|
property()
|
124
|
-
],
|
119
|
+
], AvatarA.prototype, "def", void 0);
|
125
120
|
__decorate([
|
126
121
|
property()
|
127
|
-
],
|
122
|
+
], AvatarA.prototype, "href", void 0);
|
128
123
|
__decorate([
|
129
124
|
property()
|
130
|
-
],
|
125
|
+
], AvatarA.prototype, "name", void 0);
|
131
126
|
__decorate([
|
132
127
|
property({ type: Number })
|
133
|
-
],
|
134
|
-
|
128
|
+
], AvatarA.prototype, "more", void 0);
|
129
|
+
AvatarA = __decorate([
|
135
130
|
define(defineName)
|
136
|
-
],
|
137
|
-
export {
|
138
|
-
export default
|
131
|
+
], AvatarA);
|
132
|
+
export { AvatarA };
|
133
|
+
export default AvatarA;
|
139
134
|
//# sourceMappingURL=avatar-a.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"avatar-a.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/a/avatar-a.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAqB,MAAM,wBAAwB,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,UAAU,GAAG,UAAU,CAAC;AAC9B,MAAM,WAAW,GAAG,WAAW,CAAC,UAAU,CAAC,CAAC;AAE5C;;GAEG;AAEI,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,MAAM;IAA5B;;QACL;;WAEG;QACS,QAAG,GAA8B,EAAE,CAAC;QAChD;;WAEG;QACS,QAAG,GAAW,SAAS,CAAC;QACpC;;WAEG;QACS,SAAI,GAAG,SAAS,CAAC;QAC7B;;WAEG;QACS,SAAI,GAAG,EAAE,CAAC;QACtB;;WAEG;QACyB,SAAI,GAAG,CAAC,CAAC;IAoFvC,CAAC;aAlFQ,WAAM,GAAG;QACd,GAAG,CAAA;;UAEG,WAAW;;;;;;;;;;;;;;;sBAeC,WAAW;qBACZ,WAAW;;;;;;;;;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,IAAI,CAAC,GAAG,CAAC;QAChD,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,GAAG,GAAG,SAAS,CAAC;QACvB,CAAC;IACH,CAAC;;AAnGW;IAAX,QAAQ,EAAE;oCAAqC;AAIpC;IAAX,QAAQ,EAAE;oCAAyB;AAIxB;IAAX,QAAQ,EAAE;qCAAkB;AAIjB;IAAX,QAAQ,EAAE;qCAAW;AAIM;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;qCAAU;AApB1B,OAAO;IADnB,MAAM,CAAC,UAAU,CAAC;GACN,OAAO,CAwGnB;;AAED,eAAe,OAAO,CAAC","sourcesContent":["import { css, html, ifDefined, property } from \"../../deps.js\";\nimport { htmlSlot, type HTMLTemplate } from \"../../lib/templates.js\";\nimport { createScope, define } from \"../../root.js\";\nimport SuperA from \"./super-a.js\";\n\nconst defineName = \"avatar-a\";\nconst cssvarScope = createScope(defineName);\n\n/**\n * AvatarAnchor renders the avatar or name and has a href.\n */\n@define(defineName)\nexport class AvatarA extends SuperA {\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 AvatarA.avaName} will be displayed.\n */\n @property() name = \"\";\n /**\n * If there is a value, the {@linkcode AvatarA.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 AvatarA;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"avatar-a\": AvatarA;\n }\n}\n"]}
|