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
@@ -1,18 +1,12 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
6
|
-
};
|
7
|
-
import { css, html, property } from "../deps.js";
|
8
|
-
import { htmlSlot, htmlStyle } from "../lib/templates.js";
|
9
|
-
import { define } from "../root.js";
|
10
|
-
import LayoutSTD from "./std.js";
|
1
|
+
import { __decorate } from "tslib";
|
2
|
+
import { css, html, property } from "../../deps.js";
|
3
|
+
import { htmlSlot, htmlStyle } from "../../lib/templates.js";
|
4
|
+
import { define, GodownElement } from "../../root.js";
|
11
5
|
const defineName = "flex-flow";
|
12
6
|
/**
|
13
7
|
* FlexFlow controls the flex layout based on the width of the screen.
|
14
8
|
*/
|
15
|
-
let FlexFlow = class FlexFlow extends
|
9
|
+
let FlexFlow = class FlexFlow extends GodownElement {
|
16
10
|
constructor() {
|
17
11
|
super(...arguments);
|
18
12
|
/**
|
@@ -24,6 +18,13 @@ let FlexFlow = class FlexFlow extends LayoutSTD {
|
|
24
18
|
*/
|
25
19
|
this.mobile = "720px";
|
26
20
|
}
|
21
|
+
static { this.styles = [
|
22
|
+
css `
|
23
|
+
:host {
|
24
|
+
display: flex !important;
|
25
|
+
}
|
26
|
+
`,
|
27
|
+
]; }
|
27
28
|
render() {
|
28
29
|
const flexflow = this.flexflow.split(/\s+/);
|
29
30
|
const flexDirection = flexflow[0] || "row";
|
@@ -35,13 +36,6 @@ let FlexFlow = class FlexFlow extends LayoutSTD {
|
|
35
36
|
return html `${htmlSlot()} ${htmlStyle(style)}`;
|
36
37
|
}
|
37
38
|
};
|
38
|
-
FlexFlow.styles = [
|
39
|
-
css `
|
40
|
-
:host {
|
41
|
-
display: flex !important;
|
42
|
-
}
|
43
|
-
`,
|
44
|
-
];
|
45
39
|
__decorate([
|
46
40
|
property()
|
47
41
|
], FlexFlow.prototype, "flexflow", void 0);
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"flex-flow.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/layout/flex-flow.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAqB,MAAM,wBAAwB,CAAC;AAChF,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEtD,MAAM,UAAU,GAAG,WAAW,CAAC;AAE/B;;GAEG;AAEI,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,aAAa;IAApC;;QACL;;WAEG;QACS,aAAQ,GAAG,0BAA0B,CAAC;QAClD;;WAEG;QACS,WAAM,GAAG,OAAO,CAAC;IAoB/B,CAAC;aAlBQ,WAAM,GAAG;QACd,GAAG,CAAA;;;;KAIF;KACF,AANY,CAMX;IAEQ,MAAM;QACd,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAC5C,MAAM,aAAa,GAAG,QAAQ,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC;QAC3C,MAAM,QAAQ,GAAG,QAAQ,CAAC,CAAC,CAAC,IAAI,QAAQ,CAAC;QACzC,MAAM,cAAc,GAAG,QAAQ,CAAC,CAAC,CAAC,IAAI,aAAa,IAAI,QAAQ,CAAC;QAChE,MAAM,SAAS,GAAG,QAAQ,CAAC,CAAC,CAAC,IAAI,QAAQ,IAAI,QAAQ,CAAC;QACtD,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,IAAI,OAAO,CAAC;QACjC,MAAM,KAAK,GAAG,wBAAwB,aAAa,cAAc,QAAQ,uBAAuB,CAAC,0BAA0B,cAAc,cAAc,SAAS,GAAG,CAAC;QACpK,OAAO,IAAI,CAAA,GAAG,QAAQ,EAAE,IAAI,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC;IACjD,CAAC;;AAvBW;IAAX,QAAQ,EAAE;0CAAuC;AAItC;IAAX,QAAQ,EAAE;wCAAkB;AARlB,QAAQ;IADpB,MAAM,CAAC,UAAU,CAAC;GACN,QAAQ,CA4BpB;;AAED,eAAe,QAAQ,CAAC","sourcesContent":["import { css, html, property } from \"../../deps.js\";\nimport { htmlSlot, htmlStyle, type HTMLTemplate } from \"../../lib/templates.js\";\nimport { define, GodownElement } from \"../../root.js\";\n\nconst defineName = \"flex-flow\";\n\n/**\n * FlexFlow controls the flex layout based on the width of the screen.\n */\n@define(defineName)\nexport class FlexFlow extends GodownElement {\n /**\n * The flex-flow behavior.\n */\n @property() flexflow = \"row nowrap column nowrap\";\n /**\n * The width of the screen for the position change.\n */\n @property() mobile = \"720px\";\n\n static styles = [\n css`\n :host {\n display: flex !important;\n }\n `,\n ];\n\n protected render(): HTMLTemplate {\n const flexflow = this.flexflow.split(/\\s+/);\n const flexDirection = flexflow[0] || \"row\";\n const flexWrap = flexflow[1] || \"nowrap\";\n const flexDirectionM = flexflow[2] || flexDirection || \"column\";\n const flexWrapM = flexflow[3] || flexWrap || \"nowrap\";\n const m = this.mobile || \"720px\";\n const style = `:host{flex-direction:${flexDirection};flex-wrap:${flexWrap};}@media(max-width: ${m}){:host{flex-direction:${flexDirectionM};flex-wrap:${flexWrapM}}`;\n return html`${htmlSlot()} ${htmlStyle(style)}`;\n }\n}\n\nexport default FlexFlow;\ndeclare global {\n interface HTMLElementTagNameMap {\n \"flex-flow\": FlexFlow;\n }\n}\n"]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/layout/index.ts"],"names":[],"mappings":"AACA,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/layout/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC","sourcesContent":["/// script generated\nexport * from \"./divider-line.js\";\nexport * from \"./flex-flow.js\";\nexport * from \"./nav-aside.js\";\nexport * from \"./nav-layout.js\";\n"]}
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import { type CSSResultGroup } from "
|
2
|
-
import { type HTMLTemplate } from "
|
3
|
-
import
|
1
|
+
import { type CSSResultGroup } from "../../deps.js";
|
2
|
+
import { type HTMLTemplate } from "../../lib/templates.js";
|
3
|
+
import { GodownElement } from "../../root.js";
|
4
4
|
/**
|
5
5
|
* NavAside renders a side or top navigation.
|
6
6
|
*/
|
7
|
-
export declare class NavAside extends
|
7
|
+
export declare class NavAside extends GodownElement {
|
8
8
|
/**
|
9
9
|
* The width of the screen for the position change.
|
10
10
|
*/
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"nav-aside.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/layout/nav-aside.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,cAAc,EAAkB,MAAM,eAAe,CAAC;AACzE,OAAO,EAAuB,KAAK,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAChF,OAAO,EAAqC,aAAa,EAAE,MAAM,eAAe,CAAC;AAKjF;;GAEG;AACH,qBACa,QAAS,SAAQ,aAAa;IACzC;;OAEG;IACS,MAAM,SAAW;IAC7B;;OAEG;IACS,QAAQ,SAAkB;IAEtC,MAAM,CAAC,MAAM,iBA0BO;IAEpB,SAAS,CAAC,MAAM,IAAI,YAAY;CASjC;AAED,eAAe,QAAQ,CAAC;AACxB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,WAAW,EAAE,QAAQ,CAAC;KACvB;CACF"}
|
@@ -1,19 +1,13 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
6
|
-
};
|
7
|
-
import { createScope, cssvarValues, define } from "../root.js";
|
8
|
-
import { css, html, property } from "../deps.js";
|
9
|
-
import { htmlSlot, htmlStyle } from "../lib/templates.js";
|
10
|
-
import LayoutSTD from "./std.js";
|
1
|
+
import { __decorate } from "tslib";
|
2
|
+
import { css, html, property } from "../../deps.js";
|
3
|
+
import { htmlSlot, htmlStyle } from "../../lib/templates.js";
|
4
|
+
import { createScope, cssvarValues, define, GodownElement } from "../../root.js";
|
11
5
|
const defineName = "nav-aside";
|
12
6
|
const cssvarScope = createScope(defineName);
|
13
7
|
/**
|
14
8
|
* NavAside renders a side or top navigation.
|
15
9
|
*/
|
16
|
-
let NavAside = class NavAside extends
|
10
|
+
let NavAside = class NavAside extends GodownElement {
|
17
11
|
constructor() {
|
18
12
|
super(...arguments);
|
19
13
|
/**
|
@@ -25,19 +19,9 @@ let NavAside = class NavAside extends LayoutSTD {
|
|
25
19
|
*/
|
26
20
|
this.position = "sticky fixed";
|
27
21
|
}
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
const pm = position[1] || "fixed";
|
32
|
-
const m = this.mobile || "720px";
|
33
|
-
const style = `:host{position:${p} !important;}@media(min-width:${m}){:host{position:${pm} !important;width:fit-content !important;height:100% !important;}nav{display: flex !important;justify-content: space-between !important;flex-direction: column !important;align-content: flex-start !important;align-items: stretch !important;}}`;
|
34
|
-
return html `<nav>${htmlSlot()}</nav>
|
35
|
-
${htmlStyle(style)}`;
|
36
|
-
}
|
37
|
-
};
|
38
|
-
NavAside.styles = [
|
39
|
-
LayoutSTD.styles,
|
40
|
-
css `
|
22
|
+
static { this.styles = [
|
23
|
+
GodownElement.styles,
|
24
|
+
css `
|
41
25
|
:host {
|
42
26
|
${cssvarScope}--text: var(${cssvarValues.text});
|
43
27
|
${cssvarScope}--background: var(${cssvarValues.main});
|
@@ -61,7 +45,17 @@ NavAside.styles = [
|
|
61
45
|
box-sizing: border-box;
|
62
46
|
}
|
63
47
|
`,
|
64
|
-
];
|
48
|
+
]; }
|
49
|
+
render() {
|
50
|
+
const position = this.position.split(/\s+/);
|
51
|
+
const p = position[0] || "sticky";
|
52
|
+
const pm = position[1] || "fixed";
|
53
|
+
const m = this.mobile || "720px";
|
54
|
+
const style = `:host{position:${p} !important;}@media(min-width:${m}){:host{position:${pm} !important;width:fit-content !important;height:100% !important;}nav{display: flex !important;justify-content: space-between !important;flex-direction: column !important;align-content: flex-start !important;align-items: stretch !important;}}`;
|
55
|
+
return html `<nav>${htmlSlot()}</nav>
|
56
|
+
${htmlStyle(style)}`;
|
57
|
+
}
|
58
|
+
};
|
65
59
|
__decorate([
|
66
60
|
property()
|
67
61
|
], NavAside.prototype, "mobile", void 0);
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"nav-aside.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/layout/nav-aside.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAuB,IAAI,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAqB,MAAM,wBAAwB,CAAC;AAChF,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEjF,MAAM,UAAU,GAAG,WAAW,CAAC;AAC/B,MAAM,WAAW,GAAG,WAAW,CAAC,UAAU,CAAC,CAAC;AAE5C;;GAEG;AAEI,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,aAAa;IAApC;;QACL;;WAEG;QACS,WAAM,GAAG,OAAO,CAAC;QAC7B;;WAEG;QACS,aAAQ,GAAG,cAAc,CAAC;IAuCxC,CAAC;aArCQ,WAAM,GAAG;QACd,aAAa,CAAC,MAAM;QACpB,GAAG,CAAA;;UAEG,WAAW,eAAe,YAAY,CAAC,IAAI;UAC3C,WAAW,qBAAqB,YAAY,CAAC,IAAI;qBACtC,WAAW;0BACN,WAAW;;;;;;;;;;;;;;;;;;KAkBhC;KACgB,AA1BN,CA0BO;IAEV,MAAM;QACd,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAC5C,MAAM,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,IAAI,QAAQ,CAAC;QAClC,MAAM,EAAE,GAAG,QAAQ,CAAC,CAAC,CAAC,IAAI,OAAO,CAAC;QAClC,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,IAAI,OAAO,CAAC;QACjC,MAAM,KAAK,GAAG,kBAAkB,CAAC,iCAAiC,CAAC,oBAAoB,EAAE,mPAAmP,CAAC;QAC7U,OAAO,IAAI,CAAA,QAAQ,QAAQ,EAAE;QACzB,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC;IACzB,CAAC;;AA1CW;IAAX,QAAQ,EAAE;wCAAkB;AAIjB;IAAX,QAAQ,EAAE;0CAA2B;AAR3B,QAAQ;IADpB,MAAM,CAAC,UAAU,CAAC;GACN,QAAQ,CA+CpB;;AAED,eAAe,QAAQ,CAAC","sourcesContent":["import { css, type CSSResultGroup, html, property } from \"../../deps.js\";\nimport { htmlSlot, htmlStyle, type HTMLTemplate } from \"../../lib/templates.js\";\nimport { createScope, cssvarValues, define, GodownElement } from \"../../root.js\";\n\nconst defineName = \"nav-aside\";\nconst cssvarScope = createScope(defineName);\n\n/**\n * NavAside renders a side or top navigation.\n */\n@define(defineName)\nexport class NavAside extends GodownElement {\n /**\n * The width of the screen for the position change.\n */\n @property() mobile = \"720px\";\n /**\n * The position behavior.\n */\n @property() position = \"sticky fixed\";\n\n static styles = [\n GodownElement.styles,\n css`\n :host {\n ${cssvarScope}--text: var(${cssvarValues.text});\n ${cssvarScope}--background: var(${cssvarValues.main});\n color: var(${cssvarScope}--text);\n background: var(${cssvarScope}--background);\n top: 0;\n left: 0;\n bottom: 0;\n width: 100%;\n height: fit-content;\n display: flex;\n }\n\n nav {\n height: inherit;\n width: inherit;\n display: flex;\n flex-direction: row;\n align-items: flex-start;\n justify-content: space-between;\n box-sizing: border-box;\n }\n `,\n ] as CSSResultGroup;\n\n protected render(): HTMLTemplate {\n const position = this.position.split(/\\s+/);\n const p = position[0] || \"sticky\";\n const pm = position[1] || \"fixed\";\n const m = this.mobile || \"720px\";\n const style = `:host{position:${p} !important;}@media(min-width:${m}){:host{position:${pm} !important;width:fit-content !important;height:100% !important;}nav{display: flex !important;justify-content: space-between !important;flex-direction: column !important;align-content: flex-start !important;align-items: stretch !important;}}`;\n return html`<nav>${htmlSlot()}</nav>\n ${htmlStyle(style)}`;\n }\n}\n\nexport default NavAside;\ndeclare global {\n interface HTMLElementTagNameMap {\n \"nav-aside\": NavAside;\n }\n}\n"]}
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import { type CSSResultGroup } from "
|
2
|
-
import { type HTMLTemplate } from "
|
3
|
-
import
|
1
|
+
import { type CSSResultGroup } from "../../deps.js";
|
2
|
+
import { type HTMLTemplate } from "../../lib/templates.js";
|
3
|
+
import { GodownElement } from "../../root.js";
|
4
4
|
/**
|
5
5
|
* NavLayout renders a navigation, an optional top header, an optional bottom footer.
|
6
6
|
*/
|
7
|
-
export declare class NavLayout extends
|
7
|
+
export declare class NavLayout extends GodownElement {
|
8
8
|
/**
|
9
9
|
* Main heading.
|
10
10
|
*/
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"nav-layout.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/layout/nav-layout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,cAAc,EAAkB,MAAM,eAAe,CAAC;AACzE,OAAO,EAAY,KAAK,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,EAAqC,aAAa,EAAE,MAAM,eAAe,CAAC;AAKjF;;GAEG;AACH,qBACa,SAAU,SAAQ,aAAa;IAC1C;;OAEG;IACS,IAAI,SAAM;IACtB;;OAEG;IACS,OAAO,SAAM;IAEzB;;OAEG;IACH,GAAG,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAEf,MAAM,CAAC,MAAM,iBAkFO;IAEpB,SAAS,CAAC,MAAM,IAAI,YAAY;IAMhC,OAAO,CAAC,SAAS;CAgBlB;AAED,eAAe,SAAS,CAAC;AACzB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,YAAY,EAAE,SAAS,CAAC;KACzB;CACF"}
|
@@ -1,19 +1,13 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
6
|
-
};
|
7
|
-
import { createScope, cssvarValues, define } from "../root.js";
|
8
|
-
import { css, html, property } from "../deps.js";
|
9
|
-
import { htmlSlot } from "../lib/templates.js";
|
10
|
-
import LayoutSTD from "./std.js";
|
1
|
+
import { __decorate } from "tslib";
|
2
|
+
import { css, html, property } from "../../deps.js";
|
3
|
+
import { htmlSlot } from "../../lib/templates.js";
|
4
|
+
import { createScope, cssvarValues, define, GodownElement } from "../../root.js";
|
11
5
|
const defineName = "nav-layout";
|
12
6
|
const cssvarScope = createScope(defineName);
|
13
7
|
/**
|
14
8
|
* NavLayout renders a navigation, an optional top header, an optional bottom footer.
|
15
9
|
*/
|
16
|
-
let NavLayout = class NavLayout extends
|
10
|
+
let NavLayout = class NavLayout extends GodownElement {
|
17
11
|
constructor() {
|
18
12
|
super(...arguments);
|
19
13
|
/**
|
@@ -25,31 +19,9 @@ let NavLayout = class NavLayout extends LayoutSTD {
|
|
25
19
|
*/
|
26
20
|
this.subhead = "";
|
27
21
|
}
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
${htmlSlot("footer")}`;
|
32
|
-
}
|
33
|
-
renderNav() {
|
34
|
-
if (this.querySelector("[slot=nav]")) {
|
35
|
-
return htmlSlot("nav");
|
36
|
-
}
|
37
|
-
return html `<nav>
|
38
|
-
<h1>
|
39
|
-
<slot name="host"></slot>
|
40
|
-
<a href="/">${this.host}</a>${this.subhead &&
|
41
|
-
html `<span></span>
|
42
|
-
<div>${this.subhead}</div>`}
|
43
|
-
</h1>
|
44
|
-
<div>
|
45
|
-
<slot name="opt"></slot>
|
46
|
-
</div>
|
47
|
-
</nav>`;
|
48
|
-
}
|
49
|
-
};
|
50
|
-
NavLayout.styles = [
|
51
|
-
LayoutSTD.styles,
|
52
|
-
css `
|
22
|
+
static { this.styles = [
|
23
|
+
GodownElement.styles,
|
24
|
+
css `
|
53
25
|
:host {
|
54
26
|
${cssvarScope}--text: var(${cssvarValues.text});
|
55
27
|
${cssvarScope}--background: var(${cssvarValues.main});
|
@@ -129,7 +101,29 @@ NavLayout.styles = [
|
|
129
101
|
}
|
130
102
|
}
|
131
103
|
`,
|
132
|
-
];
|
104
|
+
]; }
|
105
|
+
render() {
|
106
|
+
return html ` ${htmlSlot("header")} ${this.renderNav()}
|
107
|
+
<main>${htmlSlot()}</main>
|
108
|
+
${htmlSlot("footer")}`;
|
109
|
+
}
|
110
|
+
renderNav() {
|
111
|
+
if (this.querySelector("[slot=nav]")) {
|
112
|
+
return htmlSlot("nav");
|
113
|
+
}
|
114
|
+
return html `<nav>
|
115
|
+
<h1>
|
116
|
+
<slot name="host"></slot>
|
117
|
+
<a href="/">${this.host}</a>${this.subhead &&
|
118
|
+
html `<span></span>
|
119
|
+
<div>${this.subhead}</div>`}
|
120
|
+
</h1>
|
121
|
+
<div>
|
122
|
+
<slot name="opt"></slot>
|
123
|
+
</div>
|
124
|
+
</nav>`;
|
125
|
+
}
|
126
|
+
};
|
133
127
|
__decorate([
|
134
128
|
property()
|
135
129
|
], NavLayout.prototype, "host", void 0);
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"nav-layout.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/layout/nav-layout.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAuB,IAAI,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzE,OAAO,EAAE,QAAQ,EAAqB,MAAM,wBAAwB,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEjF,MAAM,UAAU,GAAG,YAAY,CAAC;AAChC,MAAM,WAAW,GAAG,WAAW,CAAC,UAAU,CAAC,CAAC;AAE5C;;GAEG;AAEI,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,aAAa;IAArC;;QACL;;WAEG;QACS,SAAI,GAAG,EAAE,CAAC;QACtB;;WAEG;QACS,YAAO,GAAG,EAAE,CAAC;IAiH3B,CAAC;aA1GQ,WAAM,GAAG;QACd,aAAa,CAAC,MAAM;QACpB,GAAG,CAAA;;UAEG,WAAW,eAAe,YAAY,CAAC,IAAI;UAC3C,WAAW,qBAAqB,YAAY,CAAC,IAAI;UACjD,WAAW,0BAA0B,YAAY,CAAC,KAAK;UACvD,WAAW;UACX,WAAW,uBAAuB,WAAW;;;;;;;;;;;qBAWlC,WAAW;0BACN,WAAW;;;;sBAIf,WAAW;0BACP,WAAW;;;;;;;;;;;;;;;;;;;yBAmBZ,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAqC/B;KACgB,AAlFN,CAkFO;IAEV,MAAM;QACd,OAAO,IAAI,CAAA,IAAI,QAAQ,CAAC,QAAQ,CAAC,IAAI,IAAI,CAAC,SAAS,EAAE;cAC3C,QAAQ,EAAE;QAChB,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;IAC3B,CAAC;IAEO,SAAS;QACf,IAAI,IAAI,CAAC,aAAa,CAAC,YAAY,CAAC,EAAE,CAAC;YACrC,OAAO,QAAQ,CAAC,KAAK,CAAC,CAAC;QACzB,CAAC;QACD,OAAO,IAAI,CAAA;;;sBAGO,IAAI,CAAC,IAAI,OAAO,IAAI,CAAC,OAAO;YAC1C,IAAI,CAAA;iBACK,IAAI,CAAC,OAAO,QAAQ;;;;;WAK1B,CAAC;IACV,CAAC;;AApHW;IAAX,QAAQ,EAAE;uCAAW;AAIV;IAAX,QAAQ,EAAE;0CAAc;AARd,SAAS;IADrB,MAAM,CAAC,UAAU,CAAC;GACN,SAAS,CAyHrB;;AAED,eAAe,SAAS,CAAC","sourcesContent":["import { css, type CSSResultGroup, html, property } from \"../../deps.js\";\nimport { htmlSlot, type HTMLTemplate } from \"../../lib/templates.js\";\nimport { createScope, cssvarValues, define, GodownElement } from \"../../root.js\";\n\nconst defineName = \"nav-layout\";\nconst cssvarScope = createScope(defineName);\n\n/**\n * NavLayout renders a navigation, an optional top header, an optional bottom footer.\n */\n@define(defineName)\nexport class NavLayout extends GodownElement {\n /**\n * Main heading.\n */\n @property() host = \"\";\n /**\n * Subheading.\n */\n @property() subhead = \"\";\n\n /**\n * @deprecated\n */\n set: 0 | 1 | 2;\n\n static styles = [\n GodownElement.styles,\n css`\n :host {\n ${cssvarScope}--text: var(${cssvarValues.text});\n ${cssvarScope}--background: var(${cssvarValues.main});\n ${cssvarScope}--super-background:var(${cssvarValues.input}--true);\n ${cssvarScope}--height: 2.4em;\n ${cssvarScope}--h1-size: calc(var(${cssvarScope}--height) / 2);\n width: 100%;\n height: 100%;\n display: flex;\n flex-flow: column nowrap;\n justify-content: space-between;\n align-items: center;\n min-height: 100%;\n }\n\n nav {\n color: var(${cssvarScope}--text);\n background: var(${cssvarScope}--background);\n }\n\n nav {\n height: var(${cssvarScope}--height);\n min-height: var(${cssvarScope}--height);\n display: flex;\n justify-content: space-between;\n align-items: center;\n width: 100%;\n padding: 0 2.5%;\n box-sizing: border-box;\n margin: auto;\n position: relative;\n z-index: 2;\n }\n\n a {\n text-decoration: none;\n color: currentColor;\n }\n\n h1 {\n font-weight: normal;\n font-size: var(${cssvarScope}--h1-size);\n margin: 0;\n display: flex;\n align-items: center;\n }\n\n h1 span {\n height: 1em;\n width: 0.1em;\n background: currentColor;\n margin: 0.24em;\n }\n\n h1 > * {\n white-space: nowrap;\n }\n\n main {\n flex: 1;\n width: inherit;\n display: flex;\n flex-direction: column;\n z-index: 1;\n position: relative;\n }\n\n nav > div {\n height: 100%;\n display: flex;\n flex-direction: row;\n }\n\n @media screen and (max-width: 540px) {\n h1 a ~ * {\n display: none;\n }\n }\n `,\n ] as CSSResultGroup;\n\n protected render(): HTMLTemplate {\n return html` ${htmlSlot(\"header\")} ${this.renderNav()}\n <main>${htmlSlot()}</main>\n ${htmlSlot(\"footer\")}`;\n }\n\n private renderNav(): HTMLTemplate {\n if (this.querySelector(\"[slot=nav]\")) {\n return htmlSlot(\"nav\");\n }\n return html`<nav>\n <h1>\n <slot name=\"host\"></slot>\n <a href=\"/\">${this.host}</a>${this.subhead &&\n html`<span></span>\n <div>${this.subhead}</div>`}\n </h1>\n <div>\n <slot name=\"opt\"></slot>\n </div>\n </nav>`;\n }\n}\n\nexport default NavLayout;\ndeclare global {\n interface HTMLElementTagNameMap {\n \"nav-layout\": NavLayout;\n }\n}\n"]}
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import { type CSSResultGroup } from "
|
2
|
-
import { type HTMLTemplate } from "
|
3
|
-
import
|
1
|
+
import { type CSSResultGroup } from "../../deps.js";
|
2
|
+
import { type HTMLTemplate } from "../../lib/templates.js";
|
3
|
+
import { GodownElement } from "../../root.js";
|
4
4
|
/**
|
5
5
|
* LoadProgress similar to progress.
|
6
6
|
*/
|
7
|
-
export declare class
|
7
|
+
export declare class LoadingProgress extends GodownElement {
|
8
8
|
/**
|
9
9
|
* Maximum.
|
10
10
|
*/
|
@@ -27,10 +27,10 @@ export declare class LoadProgress extends ItemsSTD {
|
|
27
27
|
*/
|
28
28
|
parsePercent(s?: string | number): number;
|
29
29
|
}
|
30
|
-
export default
|
30
|
+
export default LoadingProgress;
|
31
31
|
declare global {
|
32
32
|
interface HTMLElementTagNameMap {
|
33
|
-
"load-track":
|
33
|
+
"load-track": LoadingProgress;
|
34
34
|
}
|
35
35
|
}
|
36
|
-
//# sourceMappingURL=
|
36
|
+
//# sourceMappingURL=loading-progress.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"loading-progress.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/loading/loading-progress.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,cAAc,EAAkB,MAAM,eAAe,CAAC;AACzE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAwB,aAAa,EAAE,MAAM,eAAe,CAAC;AAIpE;;GAEG;AACH,qBACa,eAAgB,SAAQ,aAAa;IAChD;;OAEG;IACyB,GAAG,SAAK;IACpC;;OAEG;IACyB,GAAG,SAAK;IACpC;;OAEG;IACwC,KAAK,MAAQ;IAExD,MAAM,CAAC,MAAM,iBAuCO;IAEpB,SAAS,CAAC,MAAM,IAAI,YAAY;IAYhC;;;;;OAKG;IACH,YAAY,CAAC,CAAC,GAAE,MAAM,GAAG,MAAY,GAAG,MAAM;CAM/C;AAED,eAAe,eAAe,CAAC;AAE/B,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,YAAY,EAAE,eAAe,CAAC;KAC/B;CACF"}
|
@@ -1,17 +1,11 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
6
|
-
};
|
7
|
-
import { css, html, property } from "../deps.js";
|
8
|
-
import { cssvarValues, define } from "../root.js";
|
9
|
-
import ItemsSTD from "./std.js";
|
10
|
-
const defineName = "load-progress";
|
1
|
+
import { __decorate } from "tslib";
|
2
|
+
import { css, html, property } from "../../deps.js";
|
3
|
+
import { cssvarValues, define, GodownElement } from "../../root.js";
|
4
|
+
const defineName = "loading-progress";
|
11
5
|
/**
|
12
6
|
* LoadProgress similar to progress.
|
13
7
|
*/
|
14
|
-
let
|
8
|
+
let LoadingProgress = class LoadingProgress extends GodownElement {
|
15
9
|
constructor() {
|
16
10
|
super(...arguments);
|
17
11
|
/**
|
@@ -27,33 +21,9 @@ let LoadProgress = class LoadProgress extends ItemsSTD {
|
|
27
21
|
*/
|
28
22
|
this.value = null;
|
29
23
|
}
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
if (this.value !== null) {
|
34
|
-
width = this.parsePercent(this.value);
|
35
|
-
className = "v";
|
36
|
-
}
|
37
|
-
return html `<div class="${className}">
|
38
|
-
<i style="width:${width}%;"></i>
|
39
|
-
</div>`;
|
40
|
-
}
|
41
|
-
/**
|
42
|
-
* Convert s to a percentage without a percent sign.
|
43
|
-
*
|
44
|
-
* @param s String or number to convert.
|
45
|
-
* @returns Percentage without a percent sign.
|
46
|
-
*/
|
47
|
-
parsePercent(s = "0") {
|
48
|
-
if (String(s).includes("%")) {
|
49
|
-
return parseFloat(String(s));
|
50
|
-
}
|
51
|
-
return (parseFloat(String(s)) / (this.max - this.min)) * 100;
|
52
|
-
}
|
53
|
-
};
|
54
|
-
LoadProgress.styles = [
|
55
|
-
ItemsSTD.styles,
|
56
|
-
css `
|
24
|
+
static { this.styles = [
|
25
|
+
GodownElement.styles,
|
26
|
+
css `
|
57
27
|
:host,
|
58
28
|
div {
|
59
29
|
display: inline-flex;
|
@@ -90,19 +60,43 @@ LoadProgress.styles = [
|
|
90
60
|
animation: none;
|
91
61
|
}
|
92
62
|
`,
|
93
|
-
];
|
63
|
+
]; }
|
64
|
+
render() {
|
65
|
+
let width = 20;
|
66
|
+
let className;
|
67
|
+
if (this.value !== null) {
|
68
|
+
width = this.parsePercent(this.value);
|
69
|
+
className = "v";
|
70
|
+
}
|
71
|
+
return html `<div class="${className}">
|
72
|
+
<i style="width:${width}%;"></i>
|
73
|
+
</div>`;
|
74
|
+
}
|
75
|
+
/**
|
76
|
+
* Convert s to a percentage without a percent sign.
|
77
|
+
*
|
78
|
+
* @param s String or number to convert.
|
79
|
+
* @returns Percentage without a percent sign.
|
80
|
+
*/
|
81
|
+
parsePercent(s = "0") {
|
82
|
+
if (String(s).includes("%")) {
|
83
|
+
return parseFloat(String(s));
|
84
|
+
}
|
85
|
+
return (parseFloat(String(s)) / (this.max - this.min)) * 100;
|
86
|
+
}
|
87
|
+
};
|
94
88
|
__decorate([
|
95
89
|
property({ type: Number })
|
96
|
-
],
|
90
|
+
], LoadingProgress.prototype, "max", void 0);
|
97
91
|
__decorate([
|
98
92
|
property({ type: Number })
|
99
|
-
],
|
93
|
+
], LoadingProgress.prototype, "min", void 0);
|
100
94
|
__decorate([
|
101
95
|
property({ type: Number, reflect: true })
|
102
|
-
],
|
103
|
-
|
96
|
+
], LoadingProgress.prototype, "value", void 0);
|
97
|
+
LoadingProgress = __decorate([
|
104
98
|
define(defineName)
|
105
|
-
],
|
106
|
-
export {
|
107
|
-
export default
|
108
|
-
//# sourceMappingURL=
|
99
|
+
], LoadingProgress);
|
100
|
+
export { LoadingProgress };
|
101
|
+
export default LoadingProgress;
|
102
|
+
//# sourceMappingURL=loading-progress.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"loading-progress.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/loading/loading-progress.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAuB,IAAI,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzE,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEpE,MAAM,UAAU,GAAG,kBAAkB,CAAC;AAEtC;;GAEG;AAEI,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,aAAa;IAA3C;;QACL;;WAEG;QACyB,QAAG,GAAG,CAAC,CAAC;QACpC;;WAEG;QACyB,QAAG,GAAG,CAAC,CAAC;QACpC;;WAEG;QACwC,UAAK,GAAG,IAAI,CAAC;IAmE1D,CAAC;aAjEQ,WAAM,GAAG;QACd,aAAa,CAAC,MAAM;QACpB,GAAG,CAAA;;;;;;;;0BAQmB,YAAY,CAAC,KAAK;;;;;;;;;;0BAUlB,YAAY,CAAC,MAAM;;;;;;;;;;;;;;;;;;KAkBxC;KACgB,AAvCN,CAuCO;IAEV,MAAM;QACd,IAAI,KAAK,GAAG,EAAE,CAAC;QACf,IAAI,SAAiB,CAAC;QACtB,IAAI,IAAI,CAAC,KAAK,KAAK,IAAI,EAAE,CAAC;YACxB,KAAK,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACtC,SAAS,GAAG,GAAG,CAAC;QAClB,CAAC;QACD,OAAO,IAAI,CAAA,eAAe,SAAS;wBACf,KAAK;WAClB,CAAC;IACV,CAAC;IAED;;;;;OAKG;IACH,YAAY,CAAC,IAAqB,GAAG;QACnC,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;YAC5B,OAAO,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;QAC/B,CAAC;QACD,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC;IAC/D,CAAC;;AA1E2B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;4CAAS;AAIR;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;4CAAS;AAIO;IAA1C,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;8CAAc;AAZ7C,eAAe;IAD3B,MAAM,CAAC,UAAU,CAAC;GACN,eAAe,CA+E3B;;AAED,eAAe,eAAe,CAAC","sourcesContent":["import { css, type CSSResultGroup, html, property } from \"../../deps.js\";\nimport { type HTMLTemplate } from \"../../lib/templates.js\";\nimport { cssvarValues, define, GodownElement } from \"../../root.js\";\n\nconst defineName = \"loading-progress\";\n\n/**\n * LoadProgress similar to progress.\n */\n@define(defineName)\nexport class LoadingProgress extends GodownElement {\n /**\n * Maximum.\n */\n @property({ type: Number }) max = 1;\n /**\n * Minimum.\n */\n @property({ type: Number }) min = 0;\n /**\n * Input value.\n */\n @property({ type: Number, reflect: true }) value = null;\n\n static styles = [\n GodownElement.styles,\n css`\n :host,\n div {\n display: inline-flex;\n position: relative;\n width: 10em;\n height: 0.5em;\n border-radius: 0.25em;\n background: var(${cssvarValues.input}--false);\n z-index: 1;\n }\n\n div i {\n position: absolute;\n border-radius: inherit;\n top: 0;\n left: 0;\n height: 100%;\n background: var(${cssvarValues.cssvar}--accept);\n z-index: 2;\n transition: all 0.3s;\n animation: progress 1.5s ease-in-out infinite alternate;\n }\n\n @keyframes progress {\n from {\n left: 0;\n }\n to {\n left: 80%;\n }\n }\n\n div.v i {\n animation: none;\n }\n `,\n ] as CSSResultGroup;\n\n protected render(): HTMLTemplate {\n let width = 20;\n let className: string;\n if (this.value !== null) {\n width = this.parsePercent(this.value);\n className = \"v\";\n }\n return html`<div class=\"${className}\">\n <i style=\"width:${width}%;\"></i>\n </div>`;\n }\n\n /**\n * Convert s to a percentage without a percent sign.\n *\n * @param s String or number to convert.\n * @returns Percentage without a percent sign.\n */\n parsePercent(s: string | number = \"0\"): number {\n if (String(s).includes(\"%\")) {\n return parseFloat(String(s));\n }\n return (parseFloat(String(s)) / (this.max - this.min)) * 100;\n }\n}\n\nexport default LoadingProgress;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"load-track\": LoadingProgress;\n }\n}\n"]}
|
@@ -1,12 +1,12 @@
|
|
1
|
-
import { type CSSResultGroup } from "
|
2
|
-
import { type HTMLTemplate } from "
|
3
|
-
import
|
1
|
+
import { type CSSResultGroup } from "../../deps.js";
|
2
|
+
import { type HTMLTemplate } from "../../lib/templates.js";
|
3
|
+
import { GodownElement } from "../../root.js";
|
4
4
|
/**
|
5
5
|
* SkeletonScreen renders a skeleton screen.
|
6
6
|
*
|
7
7
|
* Inspired by Ant-design.
|
8
8
|
*/
|
9
|
-
export declare class SkeletonScreen extends
|
9
|
+
export declare class SkeletonScreen extends GodownElement {
|
10
10
|
/**
|
11
11
|
* Skeleton type.
|
12
12
|
*/
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"skeleton-screen.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/loading/skeleton-screen.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,cAAc,EAAyB,MAAM,eAAe,CAAC;AAChF,OAAO,EAAY,KAAK,YAAY,EAAY,MAAM,wBAAwB,CAAC;AAC/E,OAAO,EAAqC,aAAa,EAAE,MAAM,eAAe,CAAC;AAKjF;;;;GAIG;AACH,qBACa,cAAe,SAAQ,aAAa;IAC/C;;OAEG;IACS,IAAI,EAAE,MAAM,GAAG,OAAO,CAAU;IAC5C;;OAEG;IACS,SAAS,EAAE,UAAU,GAAG,SAAS,CAAc;IAC3D;;OAEG;IACM,OAAO,UAAQ;IAExB,MAAM,CAAC,MAAM,iBA+EO;IAEpB,SAAS,CAAC,MAAM,IAAI,YAAY;IAOhC,OAAO,CAAC,UAAU;CAQnB;AAED,eAAe,cAAc,CAAC;AAE9B,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,iBAAiB,EAAE,cAAc,CAAC;KACnC;CACF"}
|
@@ -1,13 +1,7 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
6
|
-
};
|
7
|
-
import { createScope, cssvarValues, define } from "../root.js";
|
8
|
-
import { css, html, property, state } from "../deps.js";
|
9
|
-
import { htmlSlot, svgImage } from "../lib/templates.js";
|
10
|
-
import LayoutSTD from "./std.js";
|
1
|
+
import { __decorate } from "tslib";
|
2
|
+
import { css, html, property, state } from "../../deps.js";
|
3
|
+
import { htmlSlot, svgImage } from "../../lib/templates.js";
|
4
|
+
import { createScope, cssvarValues, define, GodownElement } from "../../root.js";
|
11
5
|
const defineName = "skeleton-screen";
|
12
6
|
const cssvarScope = createScope(defineName);
|
13
7
|
/**
|
@@ -15,7 +9,7 @@ const cssvarScope = createScope(defineName);
|
|
15
9
|
*
|
16
10
|
* Inspired by Ant-design.
|
17
11
|
*/
|
18
|
-
let SkeletonScreen = class SkeletonScreen extends
|
12
|
+
let SkeletonScreen = class SkeletonScreen extends GodownElement {
|
19
13
|
constructor() {
|
20
14
|
super(...arguments);
|
21
15
|
/**
|
@@ -31,24 +25,9 @@ let SkeletonScreen = class SkeletonScreen extends LayoutSTD {
|
|
31
25
|
*/
|
32
26
|
this.loading = true;
|
33
27
|
}
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
}
|
38
|
-
return htmlSlot();
|
39
|
-
}
|
40
|
-
renderIcon() {
|
41
|
-
switch (this.type) {
|
42
|
-
case "text":
|
43
|
-
return htmlSlot("icon");
|
44
|
-
case "image":
|
45
|
-
return svgImage();
|
46
|
-
}
|
47
|
-
}
|
48
|
-
};
|
49
|
-
SkeletonScreen.styles = [
|
50
|
-
LayoutSTD.styles,
|
51
|
-
css `
|
28
|
+
static { this.styles = [
|
29
|
+
GodownElement.styles,
|
30
|
+
css `
|
52
31
|
:host {
|
53
32
|
display: block;
|
54
33
|
min-height: 1.5em;
|
@@ -125,7 +104,22 @@ SkeletonScreen.styles = [
|
|
125
104
|
justify-content: center;
|
126
105
|
}
|
127
106
|
`,
|
128
|
-
];
|
107
|
+
]; }
|
108
|
+
render() {
|
109
|
+
if (this.loading) {
|
110
|
+
return html `<p class="${this.animation}">${this.renderIcon()}</p>`;
|
111
|
+
}
|
112
|
+
return htmlSlot();
|
113
|
+
}
|
114
|
+
renderIcon() {
|
115
|
+
switch (this.type) {
|
116
|
+
case "text":
|
117
|
+
return htmlSlot("icon");
|
118
|
+
case "image":
|
119
|
+
return svgImage();
|
120
|
+
}
|
121
|
+
}
|
122
|
+
};
|
129
123
|
__decorate([
|
130
124
|
property()
|
131
125
|
], SkeletonScreen.prototype, "type", void 0);
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"skeleton-screen.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/loading/skeleton-screen.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAuB,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAChF,OAAO,EAAE,QAAQ,EAAqB,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAC/E,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEjF,MAAM,UAAU,GAAG,iBAAiB,CAAC;AACrC,MAAM,WAAW,GAAG,WAAW,CAAC,UAAU,CAAC,CAAC;AAE5C;;;;GAIG;AAEI,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,aAAa;IAA1C;;QACL;;WAEG;QACS,SAAI,GAAqB,MAAM,CAAC;QAC5C;;WAEG;QACS,cAAS,GAA2B,UAAU,CAAC;QAC3D;;WAEG;QACM,YAAO,GAAG,IAAI,CAAC;IAkG1B,CAAC;aAhGQ,WAAM,GAAG;QACd,aAAa,CAAC,MAAM;QACpB,GAAG,CAAA;;;;;;UAMG,WAAW,mBAAmB,YAAY,CAAC,OAAO;UAClD,WAAW,iBAAiB,YAAY,CAAC,OAAO;UAChD,WAAW;UACX,WAAW,oBAAoB,YAAY,CAAC,OAAO;UACnD,WAAW,qBAAqB,YAAY,CAAC,IAAI;UACjD,WAAW;UACX,WAAW;UACX,WAAW;UACX,WAAW;qBACA,WAAW;0BACN,WAAW;;;;;;yBAMZ,WAAW;;;;gDAIY,WAAW,eAAe,WAAW,oBAAoB,WAAW,kBAAkB,WAAW;;;;;;;;;;;;;;;;0BAgBvH,WAAW;;;;;;;;;;;;;;;oBAejB,WAAW;;;;;qBAKV,WAAW;sBACV,WAAW;;;;sBAIX,WAAW;;;;;;;;;KAS5B;KACgB,AA/EN,CA+EO;IAEV,MAAM;QACd,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;YACjB,OAAO,IAAI,CAAA,aAAa,IAAI,CAAC,SAAS,KAAK,IAAI,CAAC,UAAU,EAAE,MAAM,CAAC;QACrE,CAAC;QACD,OAAO,QAAQ,EAAE,CAAC;IACpB,CAAC;IAEO,UAAU;QAChB,QAAQ,IAAI,CAAC,IAAI,EAAE,CAAC;YAClB,KAAK,MAAM;gBACT,OAAO,QAAQ,CAAC,MAAM,CAAC,CAAC;YAC1B,KAAK,OAAO;gBACV,OAAO,QAAQ,EAAE,CAAC;QACtB,CAAC;IACH,CAAC;;AAzGW;IAAX,QAAQ,EAAE;4CAAiC;AAIhC;IAAX,QAAQ,EAAE;iDAAgD;AAIlD;IAAR,KAAK,EAAE;+CAAgB;AAZb,cAAc;IAD1B,MAAM,CAAC,UAAU,CAAC;GACN,cAAc,CA8G1B;;AAED,eAAe,cAAc,CAAC","sourcesContent":["import { css, type CSSResultGroup, html, property, state } from \"../../deps.js\";\nimport { htmlSlot, type HTMLTemplate, svgImage } from \"../../lib/templates.js\";\nimport { createScope, cssvarValues, define, GodownElement } from \"../../root.js\";\n\nconst defineName = \"skeleton-screen\";\nconst cssvarScope = createScope(defineName);\n\n/**\n * SkeletonScreen renders a skeleton screen.\n *\n * Inspired by Ant-design.\n */\n@define(defineName)\nexport class SkeletonScreen extends GodownElement {\n /**\n * Skeleton type.\n */\n @property() type: \"text\" | \"image\" = \"text\";\n /**\n * Animation type.\n */\n @property() animation: \"position\" | \"opacity\" = \"position\";\n /**\n * If false, hidden.\n */\n @state() loading = true;\n\n static styles = [\n GodownElement.styles,\n css`\n :host {\n display: block;\n min-height: 1.5em;\n width: 100%;\n overflow: hidden;\n ${cssvarScope}--from: rgb(var(${cssvarValues.textRGB}) / 7.5%);\n ${cssvarScope}--to: rgb(var(${cssvarValues.textRGB}) / 20%);\n ${cssvarScope}--deg: 94deg;\n ${cssvarScope}--color: rgb(var(${cssvarValues.textRGB}) / 50%);\n ${cssvarScope}--background: var(${cssvarValues.main});\n ${cssvarScope}--duration: 1.5s;\n ${cssvarScope}--icon-width: 5em;\n ${cssvarScope}--icon-height: 5em;\n ${cssvarScope}--icon-margin: .75em;\n color: var(${cssvarScope}--color);\n background: var(${cssvarScope}--background);\n }\n\n p {\n height: 100%;\n min-height: inherit;\n animation: var(${cssvarScope}--duration) ease-in-out 0s infinite none running;\n }\n\n p.position {\n background-image: linear-gradient(var(${cssvarScope}--deg), var(${cssvarScope}--from) 36%, var(${cssvarScope}--to) 50%, var(${cssvarScope}--from) 64%);\n background-color: transparent;\n background-size: 200% 100%;\n animation-name: po;\n }\n\n @keyframes po {\n from {\n background-position: 150% center;\n }\n to {\n background-position: -50% center;\n }\n }\n\n p.opacity {\n background: var(${cssvarScope}--from);\n animation-name: op;\n animation-direction: alternate;\n }\n\n @keyframes op {\n 50% {\n opacity: 0.2;\n }\n to {\n opacity: 1;\n }\n }\n\n path {\n fill: var(${cssvarScope}--color);\n }\n\n svg,\n slot {\n width: var(${cssvarScope}--icon-width);\n height: var(${cssvarScope}--icon-height);\n }\n\n svg {\n margin: var(${cssvarScope}--icon-margin);\n }\n\n p,\n svg {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n `,\n ] as CSSResultGroup;\n\n protected render(): HTMLTemplate {\n if (this.loading) {\n return html`<p class=\"${this.animation}\">${this.renderIcon()}</p>`;\n }\n return htmlSlot();\n }\n\n private renderIcon(): HTMLTemplate {\n switch (this.type) {\n case \"text\":\n return htmlSlot(\"icon\");\n case \"image\":\n return svgImage();\n }\n }\n}\n\nexport default SkeletonScreen;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"skeleton-screen\": SkeletonScreen;\n }\n}\n"]}
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import { type CSSResultGroup } from "
|
2
|
-
import { type HTMLTemplate } from "
|
3
|
-
import {
|
1
|
+
import { type CSSResultGroup } from "../../deps.js";
|
2
|
+
import { type HTMLTemplate } from "../../lib/templates.js";
|
3
|
+
import { OpenableElement } from "./open.js";
|
4
4
|
/**
|
5
|
-
*
|
5
|
+
* OpenDetails similar to details.
|
6
6
|
*/
|
7
|
-
export declare class
|
7
|
+
export declare class OpenDetails extends OpenableElement {
|
8
8
|
/**
|
9
9
|
* If it is true, the summary event scope will fill the element.
|
10
10
|
*/
|
@@ -19,10 +19,10 @@ export declare class DetailsExpand extends OpenAble {
|
|
19
19
|
private renderIcon;
|
20
20
|
protected firstUpdated(): void;
|
21
21
|
}
|
22
|
-
export default
|
22
|
+
export default OpenDetails;
|
23
23
|
declare global {
|
24
24
|
interface HTMLElementTagNameMap {
|
25
|
-
"details
|
25
|
+
"open-details": OpenDetails;
|
26
26
|
}
|
27
27
|
}
|
28
|
-
//# sourceMappingURL=details
|
28
|
+
//# sourceMappingURL=open-details.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"open-details.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/open/open-details.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,cAAc,EAAyB,MAAM,eAAe,CAAC;AAEhF,OAAO,EAAY,KAAK,YAAY,EAAkB,MAAM,wBAAwB,CAAC;AAErF,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAI5C;;GAEG;AACH,qBACa,WAAY,SAAQ,eAAe;IAC9C;;OAEG;IAC0B,IAAI,UAAS;IAC1C;;OAEG;IAC0B,OAAO,UAAS;IAEhC,GAAG,EAAE,mBAAmB,CAAC;IAEtC,MAAM,CAAC,MAAM,iBAiBO;IAEpB,SAAS,CAAC,MAAM,IAAI,YAAY;IAYhC,OAAO,CAAC,UAAU;IAOlB,SAAS,CAAC,YAAY;CAKvB;AAED,eAAe,WAAW,CAAC;AAE3B,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,WAAW,CAAC;KAC7B;CACF"}
|