godown 3.9.0 → 3.10.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 +2 -2
- package/alert.d.ts +1 -8
- package/alert.d.ts.map +1 -1
- package/alert.js +1 -1
- package/alert.js.map +1 -1
- package/avatar.d.ts +1 -8
- package/avatar.d.ts.map +1 -1
- package/avatar.js +1 -1
- package/avatar.js.map +1 -1
- package/badge.d.ts +1 -8
- package/badge.d.ts.map +1 -1
- package/badge.js +1 -1
- package/badge.js.map +1 -1
- package/breath.d.ts +1 -8
- package/breath.d.ts.map +1 -1
- package/breath.js +1 -1
- package/breath.js.map +1 -1
- package/build/godown+lit.iife.js +12 -12
- package/build/godown+lit.iife.js.map +1 -1
- package/build/godown+lit.js +12 -12
- package/build/godown+lit.js.map +1 -1
- package/build/godown+lit.umd.js +12 -12
- package/build/godown+lit.umd.js.map +1 -1
- package/build/godown.iife.js +10 -10
- package/build/godown.js +10 -10
- package/build/godown.js.map +1 -1
- package/build/godown.umd.js +10 -10
- package/build/godown.umd.js.map +1 -1
- package/button.d.ts +1 -8
- package/button.d.ts.map +1 -1
- package/button.js +1 -1
- package/button.js.map +1 -1
- package/card.d.ts +1 -8
- package/card.d.ts.map +1 -1
- package/card.js +1 -1
- package/card.js.map +1 -1
- package/carousel.d.ts +1 -8
- package/carousel.d.ts.map +1 -1
- package/carousel.js +1 -1
- package/carousel.js.map +1 -1
- package/custom-elements.json +1 -1
- package/details.d.ts +1 -8
- package/details.d.ts.map +1 -1
- package/details.js +1 -1
- package/details.js.map +1 -1
- package/dialog.d.ts +1 -8
- package/dialog.d.ts.map +1 -1
- package/dialog.js +1 -1
- package/dialog.js.map +1 -1
- package/divider.d.ts +1 -8
- package/divider.d.ts.map +1 -1
- package/divider.js +1 -1
- package/divider.js.map +1 -1
- package/dragbox.d.ts +1 -8
- package/dragbox.d.ts.map +1 -1
- package/dragbox.js +1 -1
- package/dragbox.js.map +1 -1
- package/flex.d.ts +1 -8
- package/flex.d.ts.map +1 -1
- package/flex.js +1 -1
- package/flex.js.map +1 -1
- package/form.d.ts +1 -8
- package/form.d.ts.map +1 -1
- package/form.js +1 -1
- package/form.js.map +1 -1
- package/grid.d.ts +1 -8
- package/grid.d.ts.map +1 -1
- package/grid.js +1 -1
- package/grid.js.map +1 -1
- package/heading.d.ts +1 -8
- package/heading.d.ts.map +1 -1
- package/heading.js +1 -1
- package/heading.js.map +1 -1
- package/index.js +1 -1
- package/input.d.ts +1 -8
- package/input.d.ts.map +1 -1
- package/input.js +1 -1
- package/input.js.map +1 -1
- package/internal/direction.d.ts.map +1 -0
- package/internal/direction.js.map +1 -0
- package/internal/global-style.d.ts.map +1 -0
- package/internal/global-style.js.map +1 -0
- package/internal/outline.d.ts.map +1 -0
- package/internal/outline.js.map +1 -0
- package/internal/super-anchor.d.ts.map +1 -0
- package/{core → internal}/super-anchor.js +1 -1
- package/internal/super-anchor.js.map +1 -0
- package/internal/super-input.d.ts.map +1 -0
- package/{core → internal}/super-input.js +1 -1
- package/internal/super-input.js.map +1 -0
- package/internal/super-openable.d.ts.map +1 -0
- package/internal/super-openable.js.map +1 -0
- package/layout.d.ts +1 -8
- package/layout.d.ts.map +1 -1
- package/layout.js +1 -1
- package/layout.js.map +1 -1
- package/link.d.ts +1 -8
- package/link.d.ts.map +1 -1
- package/link.js +1 -1
- package/link.js.map +1 -1
- package/package.json +3 -3
- package/progress.d.ts +1 -8
- package/progress.d.ts.map +1 -1
- package/progress.js +1 -1
- package/progress.js.map +1 -1
- package/range.d.ts +1 -8
- package/range.d.ts.map +1 -1
- package/range.js +1 -1
- package/range.js.map +1 -1
- package/rotate.d.ts +1 -8
- package/rotate.d.ts.map +1 -1
- package/rotate.js +1 -1
- package/rotate.js.map +1 -1
- package/router.d.ts +1 -8
- package/router.d.ts.map +1 -1
- package/router.js +1 -1
- package/router.js.map +1 -1
- package/select.d.ts +1 -8
- package/select.d.ts.map +1 -1
- package/select.js +1 -1
- package/select.js.map +1 -1
- package/skeleton.d.ts +1 -8
- package/skeleton.d.ts.map +1 -1
- package/skeleton.js +1 -1
- package/skeleton.js.map +1 -1
- package/split.d.ts +1 -8
- package/split.d.ts.map +1 -1
- package/split.js +1 -1
- package/split.js.map +1 -1
- package/src/alert.ts +1 -13
- package/src/avatar.ts +1 -13
- package/src/badge.ts +1 -13
- package/src/breath.ts +1 -13
- package/src/button.ts +1 -13
- package/src/card.ts +1 -13
- package/src/carousel.ts +1 -13
- package/src/details.ts +1 -13
- package/src/dialog.ts +1 -13
- package/src/divider.ts +1 -13
- package/src/dragbox.ts +1 -13
- package/src/flex.ts +1 -13
- package/src/form.ts +1 -13
- package/src/grid.ts +1 -13
- package/src/heading.ts +1 -13
- package/src/input.ts +1 -13
- package/src/layout.ts +1 -13
- package/src/link.ts +1 -13
- package/src/progress.ts +1 -13
- package/src/range.ts +1 -13
- package/src/rotate.ts +1 -13
- package/src/router.ts +1 -13
- package/src/select.ts +1 -13
- package/src/skeleton.ts +1 -13
- package/src/split.ts +1 -13
- package/src/switch.ts +1 -13
- package/src/tabs.ts +1 -13
- package/src/text.ts +1 -13
- package/src/time.ts +1 -13
- package/src/tooltip.ts +1 -13
- package/src/typewriter.ts +1 -13
- package/src/{components/alert.ts → web-components/alert/component.ts} +1 -1
- package/src/web-components/alert/definition.ts +11 -0
- package/src/{components/avatar.ts → web-components/avatar/component.ts} +1 -1
- package/src/web-components/avatar/definition.ts +11 -0
- package/src/{components/badge.ts → web-components/badge/component.ts} +2 -2
- package/src/web-components/badge/definition.ts +11 -0
- package/src/{components/breath.ts → web-components/breath/component.ts} +1 -1
- package/src/web-components/breath/definition.ts +11 -0
- package/src/{components/button.ts → web-components/button/component.ts} +1 -1
- package/src/web-components/button/definition.ts +11 -0
- package/src/{components/card.ts → web-components/card/component.ts} +2 -2
- package/src/web-components/card/definition.ts +11 -0
- package/src/{components/carousel.ts → web-components/carousel/component.ts} +1 -1
- package/src/web-components/carousel/definition.ts +11 -0
- package/src/{components/details.ts → web-components/details/component.ts} +2 -2
- package/src/web-components/details/definition.ts +11 -0
- package/src/{components/dialog.ts → web-components/dialog/component.ts} +2 -2
- package/src/web-components/dialog/definition.ts +11 -0
- package/src/{components/divider.ts → web-components/divider/component.ts} +1 -1
- package/src/web-components/divider/definition.ts +11 -0
- package/src/{components/dragbox.ts → web-components/dragbox/component.ts} +1 -1
- package/src/web-components/dragbox/definition.ts +11 -0
- package/src/{components/flex.ts → web-components/flex/component.ts} +1 -1
- package/src/web-components/flex/definition.ts +11 -0
- package/src/{components/form.ts → web-components/form/component.ts} +1 -1
- package/src/web-components/form/definition.ts +11 -0
- package/src/{components/grid.ts → web-components/grid/component.ts} +1 -1
- package/src/web-components/grid/definition.ts +11 -0
- package/src/{components/heading.ts → web-components/heading/component.ts} +1 -1
- package/src/web-components/heading/definition.ts +11 -0
- package/src/{components/input.ts → web-components/input/component.ts} +3 -3
- package/src/web-components/input/definition.ts +11 -0
- package/src/{components/layout.ts → web-components/layout/component.ts} +1 -1
- package/src/web-components/layout/definition.ts +11 -0
- package/src/{components/link.ts → web-components/link/component.ts} +2 -2
- package/src/web-components/link/definition.ts +11 -0
- package/src/{components/progress.ts → web-components/progress/component.ts} +1 -1
- package/src/web-components/progress/definition.ts +11 -0
- package/src/{components/range.ts → web-components/range/component.ts} +2 -2
- package/src/web-components/range/definition.ts +11 -0
- package/src/{components/rotate.ts → web-components/rotate/component.ts} +1 -1
- package/src/web-components/rotate/definition.ts +11 -0
- package/src/{components/router.ts → web-components/router/component.ts} +1 -1
- package/src/web-components/router/definition.ts +11 -0
- package/src/{components/select.ts → web-components/select/component.ts} +3 -3
- package/src/web-components/select/definition.ts +11 -0
- package/src/{components/skeleton.ts → web-components/skeleton/component.ts} +1 -1
- package/src/web-components/skeleton/definition.ts +11 -0
- package/src/{components/split.ts → web-components/split/component.ts} +3 -3
- package/src/web-components/split/definition.ts +11 -0
- package/src/{components/switch.ts → web-components/switch/component.ts} +2 -2
- package/src/web-components/switch/definition.ts +11 -0
- package/src/{components/tabs.ts → web-components/tabs/component.ts} +2 -2
- package/src/web-components/tabs/definition.ts +11 -0
- package/src/{components/text.ts → web-components/text/component.ts} +1 -1
- package/src/web-components/text/definition.ts +11 -0
- package/src/{components/time.ts → web-components/time/component.ts} +1 -1
- package/src/web-components/time/definition.ts +11 -0
- package/src/{components/tooltip.ts → web-components/tooltip/component.ts} +3 -3
- package/src/web-components/tooltip/definition.ts +11 -0
- package/src/{components/typewriter.ts → web-components/typewriter/component.ts} +1 -1
- package/src/web-components/typewriter/definition.ts +11 -0
- package/switch.d.ts +1 -8
- package/switch.d.ts.map +1 -1
- package/switch.js +1 -1
- package/switch.js.map +1 -1
- package/tabs.d.ts +1 -8
- package/tabs.d.ts.map +1 -1
- package/tabs.js +1 -1
- package/tabs.js.map +1 -1
- package/text.d.ts +1 -8
- package/text.d.ts.map +1 -1
- package/text.js +1 -1
- package/text.js.map +1 -1
- package/time.d.ts +1 -8
- package/time.d.ts.map +1 -1
- package/time.js +1 -1
- package/time.js.map +1 -1
- package/tooltip.d.ts +1 -8
- package/tooltip.d.ts.map +1 -1
- package/tooltip.js +1 -1
- package/tooltip.js.map +1 -1
- package/typewriter.d.ts +1 -8
- package/typewriter.d.ts.map +1 -1
- package/typewriter.js +1 -1
- package/typewriter.js.map +1 -1
- package/vscode.html-custom-data.json +1 -1
- package/{components/alert.d.ts → web-components/alert/component.d.ts} +2 -2
- package/web-components/alert/component.d.ts.map +1 -0
- package/web-components/alert/component.js +2 -0
- package/web-components/alert/component.js.map +1 -0
- package/web-components/alert/definition.d.ts +8 -0
- package/web-components/alert/definition.d.ts.map +1 -0
- package/web-components/alert/definition.js +2 -0
- package/web-components/alert/definition.js.map +1 -0
- package/{components/avatar.d.ts → web-components/avatar/component.d.ts} +2 -2
- package/web-components/avatar/component.d.ts.map +1 -0
- package/web-components/avatar/component.js +2 -0
- package/web-components/avatar/component.js.map +1 -0
- package/web-components/avatar/definition.d.ts +8 -0
- package/web-components/avatar/definition.d.ts.map +1 -0
- package/web-components/avatar/definition.js +2 -0
- package/web-components/avatar/definition.js.map +1 -0
- package/{components/badge.d.ts → web-components/badge/component.d.ts} +3 -3
- package/web-components/badge/component.d.ts.map +1 -0
- package/web-components/badge/component.js +2 -0
- package/web-components/badge/component.js.map +1 -0
- package/web-components/badge/definition.d.ts +8 -0
- package/web-components/badge/definition.d.ts.map +1 -0
- package/web-components/badge/definition.js +2 -0
- package/web-components/badge/definition.js.map +1 -0
- package/{components/breath.d.ts → web-components/breath/component.d.ts} +2 -2
- package/web-components/breath/component.d.ts.map +1 -0
- package/web-components/breath/component.js +2 -0
- package/web-components/breath/component.js.map +1 -0
- package/web-components/breath/definition.d.ts +8 -0
- package/web-components/breath/definition.d.ts.map +1 -0
- package/web-components/breath/definition.js +2 -0
- package/web-components/breath/definition.js.map +1 -0
- package/{components/button.d.ts → web-components/button/component.d.ts} +2 -2
- package/web-components/button/component.d.ts.map +1 -0
- package/web-components/button/component.js +2 -0
- package/web-components/button/component.js.map +1 -0
- package/web-components/button/definition.d.ts +8 -0
- package/web-components/button/definition.d.ts.map +1 -0
- package/web-components/button/definition.js +2 -0
- package/web-components/button/definition.js.map +1 -0
- package/{components/card.d.ts → web-components/card/component.d.ts} +2 -2
- package/web-components/card/component.d.ts.map +1 -0
- package/web-components/card/component.js +2 -0
- package/web-components/card/component.js.map +1 -0
- package/web-components/card/definition.d.ts +8 -0
- package/web-components/card/definition.d.ts.map +1 -0
- package/web-components/card/definition.js +2 -0
- package/web-components/card/definition.js.map +1 -0
- package/{components/carousel.d.ts → web-components/carousel/component.d.ts} +2 -2
- package/web-components/carousel/component.d.ts.map +1 -0
- package/web-components/carousel/component.js +2 -0
- package/web-components/carousel/component.js.map +1 -0
- package/web-components/carousel/definition.d.ts +8 -0
- package/web-components/carousel/definition.d.ts.map +1 -0
- package/web-components/carousel/definition.js +2 -0
- package/web-components/carousel/definition.js.map +1 -0
- package/{components/details.d.ts → web-components/details/component.d.ts} +2 -2
- package/web-components/details/component.d.ts.map +1 -0
- package/web-components/details/component.js +2 -0
- package/web-components/details/component.js.map +1 -0
- package/web-components/details/definition.d.ts +8 -0
- package/web-components/details/definition.d.ts.map +1 -0
- package/web-components/details/definition.js +2 -0
- package/web-components/details/definition.js.map +1 -0
- package/{components/dialog.d.ts → web-components/dialog/component.d.ts} +2 -2
- package/web-components/dialog/component.d.ts.map +1 -0
- package/web-components/dialog/component.js +2 -0
- package/web-components/dialog/component.js.map +1 -0
- package/web-components/dialog/definition.d.ts +8 -0
- package/web-components/dialog/definition.d.ts.map +1 -0
- package/web-components/dialog/definition.js +2 -0
- package/web-components/dialog/definition.js.map +1 -0
- package/{components/divider.d.ts → web-components/divider/component.d.ts} +2 -2
- package/web-components/divider/component.d.ts.map +1 -0
- package/web-components/divider/component.js +2 -0
- package/web-components/divider/component.js.map +1 -0
- package/web-components/divider/definition.d.ts +8 -0
- package/web-components/divider/definition.d.ts.map +1 -0
- package/web-components/divider/definition.js +2 -0
- package/web-components/divider/definition.js.map +1 -0
- package/{components/dragbox.d.ts → web-components/dragbox/component.d.ts} +2 -2
- package/web-components/dragbox/component.d.ts.map +1 -0
- package/web-components/dragbox/component.js +2 -0
- package/web-components/dragbox/component.js.map +1 -0
- package/web-components/dragbox/definition.d.ts +8 -0
- package/web-components/dragbox/definition.d.ts.map +1 -0
- package/web-components/dragbox/definition.js +2 -0
- package/web-components/dragbox/definition.js.map +1 -0
- package/{components/flex.d.ts → web-components/flex/component.d.ts} +2 -2
- package/web-components/flex/component.d.ts.map +1 -0
- package/web-components/flex/component.js +2 -0
- package/web-components/flex/component.js.map +1 -0
- package/web-components/flex/definition.d.ts +8 -0
- package/web-components/flex/definition.d.ts.map +1 -0
- package/web-components/flex/definition.js +2 -0
- package/web-components/flex/definition.js.map +1 -0
- package/{components/form.d.ts → web-components/form/component.d.ts} +2 -2
- package/web-components/form/component.d.ts.map +1 -0
- package/web-components/form/component.js +2 -0
- package/web-components/form/component.js.map +1 -0
- package/web-components/form/definition.d.ts +8 -0
- package/web-components/form/definition.d.ts.map +1 -0
- package/web-components/form/definition.js +2 -0
- package/web-components/form/definition.js.map +1 -0
- package/{components/grid.d.ts → web-components/grid/component.d.ts} +2 -2
- package/web-components/grid/component.d.ts.map +1 -0
- package/web-components/grid/component.js +2 -0
- package/web-components/grid/component.js.map +1 -0
- package/web-components/grid/definition.d.ts +8 -0
- package/web-components/grid/definition.d.ts.map +1 -0
- package/web-components/grid/definition.js +2 -0
- package/web-components/grid/definition.js.map +1 -0
- package/{components/heading.d.ts → web-components/heading/component.d.ts} +2 -2
- package/web-components/heading/component.d.ts.map +1 -0
- package/web-components/heading/component.js +2 -0
- package/web-components/heading/component.js.map +1 -0
- package/web-components/heading/definition.d.ts +8 -0
- package/web-components/heading/definition.d.ts.map +1 -0
- package/web-components/heading/definition.js +2 -0
- package/web-components/heading/definition.js.map +1 -0
- package/{components/input.d.ts → web-components/input/component.d.ts} +2 -2
- package/web-components/input/component.d.ts.map +1 -0
- package/web-components/input/component.js +2 -0
- package/web-components/input/component.js.map +1 -0
- package/web-components/input/definition.d.ts +8 -0
- package/web-components/input/definition.d.ts.map +1 -0
- package/web-components/input/definition.js +2 -0
- package/web-components/input/definition.js.map +1 -0
- package/{components/layout.d.ts → web-components/layout/component.d.ts} +2 -2
- package/web-components/layout/component.d.ts.map +1 -0
- package/web-components/layout/component.js +2 -0
- package/web-components/layout/component.js.map +1 -0
- package/web-components/layout/definition.d.ts +8 -0
- package/web-components/layout/definition.d.ts.map +1 -0
- package/web-components/layout/definition.js +2 -0
- package/web-components/layout/definition.js.map +1 -0
- package/{components/link.d.ts → web-components/link/component.d.ts} +2 -2
- package/web-components/link/component.d.ts.map +1 -0
- package/web-components/link/component.js +2 -0
- package/web-components/link/component.js.map +1 -0
- package/web-components/link/definition.d.ts +8 -0
- package/web-components/link/definition.d.ts.map +1 -0
- package/web-components/link/definition.js +2 -0
- package/web-components/link/definition.js.map +1 -0
- package/{components/progress.d.ts → web-components/progress/component.d.ts} +2 -2
- package/web-components/progress/component.d.ts.map +1 -0
- package/web-components/progress/component.js +2 -0
- package/web-components/progress/component.js.map +1 -0
- package/web-components/progress/definition.d.ts +8 -0
- package/web-components/progress/definition.d.ts.map +1 -0
- package/web-components/progress/definition.js +2 -0
- package/web-components/progress/definition.js.map +1 -0
- package/{components/range.d.ts → web-components/range/component.d.ts} +2 -2
- package/web-components/range/component.d.ts.map +1 -0
- package/web-components/range/component.js +2 -0
- package/web-components/range/component.js.map +1 -0
- package/web-components/range/definition.d.ts +8 -0
- package/web-components/range/definition.d.ts.map +1 -0
- package/web-components/range/definition.js +2 -0
- package/web-components/range/definition.js.map +1 -0
- package/{components/rotate.d.ts → web-components/rotate/component.d.ts} +2 -2
- package/web-components/rotate/component.d.ts.map +1 -0
- package/web-components/rotate/component.js +2 -0
- package/web-components/rotate/component.js.map +1 -0
- package/web-components/rotate/definition.d.ts +8 -0
- package/web-components/rotate/definition.d.ts.map +1 -0
- package/web-components/rotate/definition.js +2 -0
- package/web-components/rotate/definition.js.map +1 -0
- package/{components/router.d.ts → web-components/router/component.d.ts} +2 -2
- package/web-components/router/component.d.ts.map +1 -0
- package/web-components/router/component.js +2 -0
- package/web-components/router/component.js.map +1 -0
- package/web-components/router/definition.d.ts +8 -0
- package/web-components/router/definition.d.ts.map +1 -0
- package/web-components/router/definition.js +2 -0
- package/web-components/router/definition.js.map +1 -0
- package/{components/select.d.ts → web-components/select/component.d.ts} +3 -3
- package/web-components/select/component.d.ts.map +1 -0
- package/web-components/select/component.js +2 -0
- package/web-components/select/component.js.map +1 -0
- package/web-components/select/definition.d.ts +8 -0
- package/web-components/select/definition.d.ts.map +1 -0
- package/web-components/select/definition.js +2 -0
- package/web-components/select/definition.js.map +1 -0
- package/{components/skeleton.d.ts → web-components/skeleton/component.d.ts} +2 -2
- package/web-components/skeleton/component.d.ts.map +1 -0
- package/web-components/skeleton/component.js +2 -0
- package/web-components/skeleton/component.js.map +1 -0
- package/web-components/skeleton/definition.d.ts +8 -0
- package/web-components/skeleton/definition.d.ts.map +1 -0
- package/web-components/skeleton/definition.js +2 -0
- package/web-components/skeleton/definition.js.map +1 -0
- package/{components/split.d.ts → web-components/split/component.d.ts} +2 -2
- package/web-components/split/component.d.ts.map +1 -0
- package/web-components/split/component.js +2 -0
- package/web-components/split/component.js.map +1 -0
- package/web-components/split/definition.d.ts +8 -0
- package/web-components/split/definition.d.ts.map +1 -0
- package/web-components/split/definition.js +2 -0
- package/web-components/split/definition.js.map +1 -0
- package/{components/switch.d.ts → web-components/switch/component.d.ts} +2 -2
- package/web-components/switch/component.d.ts.map +1 -0
- package/web-components/switch/component.js +2 -0
- package/web-components/switch/component.js.map +1 -0
- package/web-components/switch/definition.d.ts +8 -0
- package/web-components/switch/definition.d.ts.map +1 -0
- package/web-components/switch/definition.js +2 -0
- package/web-components/switch/definition.js.map +1 -0
- package/{components/tabs.d.ts → web-components/tabs/component.d.ts} +3 -3
- package/web-components/tabs/component.d.ts.map +1 -0
- package/web-components/tabs/component.js +2 -0
- package/web-components/tabs/component.js.map +1 -0
- package/web-components/tabs/definition.d.ts +8 -0
- package/web-components/tabs/definition.d.ts.map +1 -0
- package/web-components/tabs/definition.js +2 -0
- package/web-components/tabs/definition.js.map +1 -0
- package/{components/text.d.ts → web-components/text/component.d.ts} +2 -2
- package/web-components/text/component.d.ts.map +1 -0
- package/web-components/text/component.js +2 -0
- package/web-components/text/component.js.map +1 -0
- package/web-components/text/definition.d.ts +8 -0
- package/web-components/text/definition.d.ts.map +1 -0
- package/web-components/text/definition.js +2 -0
- package/web-components/text/definition.js.map +1 -0
- package/{components/time.d.ts → web-components/time/component.d.ts} +2 -2
- package/web-components/time/component.d.ts.map +1 -0
- package/web-components/time/component.js +2 -0
- package/web-components/time/component.js.map +1 -0
- package/web-components/time/definition.d.ts +8 -0
- package/web-components/time/definition.d.ts.map +1 -0
- package/web-components/time/definition.js +2 -0
- package/web-components/time/definition.js.map +1 -0
- package/{components/tooltip.d.ts → web-components/tooltip/component.d.ts} +3 -3
- package/web-components/tooltip/component.d.ts.map +1 -0
- package/web-components/tooltip/component.js +2 -0
- package/web-components/tooltip/component.js.map +1 -0
- package/web-components/tooltip/definition.d.ts +8 -0
- package/web-components/tooltip/definition.d.ts.map +1 -0
- package/web-components/tooltip/definition.js +2 -0
- package/web-components/tooltip/definition.js.map +1 -0
- package/{components/typewriter.d.ts → web-components/typewriter/component.d.ts} +2 -2
- package/web-components/typewriter/component.d.ts.map +1 -0
- package/web-components/typewriter/component.js +2 -0
- package/web-components/typewriter/component.js.map +1 -0
- package/web-components/typewriter/definition.d.ts +8 -0
- package/web-components/typewriter/definition.d.ts.map +1 -0
- package/web-components/typewriter/definition.js +2 -0
- package/web-components/typewriter/definition.js.map +1 -0
- package/web-types.json +1 -1
- package/components/alert.d.ts.map +0 -1
- package/components/alert.js +0 -2
- package/components/alert.js.map +0 -1
- package/components/avatar.d.ts.map +0 -1
- package/components/avatar.js +0 -2
- package/components/avatar.js.map +0 -1
- package/components/badge.d.ts.map +0 -1
- package/components/badge.js +0 -2
- package/components/badge.js.map +0 -1
- package/components/breath.d.ts.map +0 -1
- package/components/breath.js +0 -2
- package/components/breath.js.map +0 -1
- package/components/button.d.ts.map +0 -1
- package/components/button.js +0 -2
- package/components/button.js.map +0 -1
- package/components/card.d.ts.map +0 -1
- package/components/card.js +0 -2
- package/components/card.js.map +0 -1
- package/components/carousel.d.ts.map +0 -1
- package/components/carousel.js +0 -2
- package/components/carousel.js.map +0 -1
- package/components/details.d.ts.map +0 -1
- package/components/details.js +0 -2
- package/components/details.js.map +0 -1
- package/components/dialog.d.ts.map +0 -1
- package/components/dialog.js +0 -2
- package/components/dialog.js.map +0 -1
- package/components/divider.d.ts.map +0 -1
- package/components/divider.js +0 -2
- package/components/divider.js.map +0 -1
- package/components/dragbox.d.ts.map +0 -1
- package/components/dragbox.js +0 -2
- package/components/dragbox.js.map +0 -1
- package/components/flex.d.ts.map +0 -1
- package/components/flex.js +0 -2
- package/components/flex.js.map +0 -1
- package/components/form.d.ts.map +0 -1
- package/components/form.js +0 -2
- package/components/form.js.map +0 -1
- package/components/grid.d.ts.map +0 -1
- package/components/grid.js +0 -2
- package/components/grid.js.map +0 -1
- package/components/heading.d.ts.map +0 -1
- package/components/heading.js +0 -2
- package/components/heading.js.map +0 -1
- package/components/input.d.ts.map +0 -1
- package/components/input.js +0 -2
- package/components/input.js.map +0 -1
- package/components/layout.d.ts.map +0 -1
- package/components/layout.js +0 -2
- package/components/layout.js.map +0 -1
- package/components/link.d.ts.map +0 -1
- package/components/link.js +0 -2
- package/components/link.js.map +0 -1
- package/components/progress.d.ts.map +0 -1
- package/components/progress.js +0 -2
- package/components/progress.js.map +0 -1
- package/components/range.d.ts.map +0 -1
- package/components/range.js +0 -2
- package/components/range.js.map +0 -1
- package/components/rotate.d.ts.map +0 -1
- package/components/rotate.js +0 -2
- package/components/rotate.js.map +0 -1
- package/components/router.d.ts.map +0 -1
- package/components/router.js +0 -2
- package/components/router.js.map +0 -1
- package/components/select.d.ts.map +0 -1
- package/components/select.js +0 -2
- package/components/select.js.map +0 -1
- package/components/skeleton.d.ts.map +0 -1
- package/components/skeleton.js +0 -2
- package/components/skeleton.js.map +0 -1
- package/components/split.d.ts.map +0 -1
- package/components/split.js +0 -2
- package/components/split.js.map +0 -1
- package/components/switch.d.ts.map +0 -1
- package/components/switch.js +0 -2
- package/components/switch.js.map +0 -1
- package/components/tabs.d.ts.map +0 -1
- package/components/tabs.js +0 -2
- package/components/tabs.js.map +0 -1
- package/components/text.d.ts.map +0 -1
- package/components/text.js +0 -2
- package/components/text.js.map +0 -1
- package/components/time.d.ts.map +0 -1
- package/components/time.js +0 -2
- package/components/time.js.map +0 -1
- package/components/tooltip.d.ts.map +0 -1
- package/components/tooltip.js +0 -2
- package/components/tooltip.js.map +0 -1
- package/components/typewriter.d.ts.map +0 -1
- package/components/typewriter.js +0 -2
- package/components/typewriter.js.map +0 -1
- package/core/direction.d.ts.map +0 -1
- package/core/direction.js.map +0 -1
- package/core/global-style.d.ts.map +0 -1
- package/core/global-style.js.map +0 -1
- package/core/outline.d.ts.map +0 -1
- package/core/outline.js.map +0 -1
- package/core/super-anchor.d.ts.map +0 -1
- package/core/super-anchor.js.map +0 -1
- package/core/super-input.d.ts.map +0 -1
- package/core/super-input.js.map +0 -1
- package/core/super-openable.d.ts.map +0 -1
- package/core/super-openable.js.map +0 -1
- /package/{core → internal}/direction.d.ts +0 -0
- /package/{core → internal}/direction.js +0 -0
- /package/{core → internal}/global-style.d.ts +0 -0
- /package/{core → internal}/global-style.js +0 -0
- /package/{core → internal}/outline.d.ts +0 -0
- /package/{core → internal}/outline.js +0 -0
- /package/{core → internal}/super-anchor.d.ts +0 -0
- /package/{core → internal}/super-input.d.ts +0 -0
- /package/{core → internal}/super-openable.d.ts +0 -0
- /package/{core → internal}/super-openable.js +0 -0
- /package/src/{core → internal}/direction.ts +0 -0
- /package/src/{core → internal}/global-style.ts +0 -0
- /package/src/{core → internal}/outline.ts +0 -0
- /package/src/{core → internal}/super-anchor.ts +0 -0
- /package/src/{core → internal}/super-input.ts +0 -0
- /package/src/{core → internal}/super-openable.ts +0 -0
package/web-types.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"name":"godown","version":"3.9.0","description-markup":"markdown","contributions":{"html":{"elements":[{"name":"godown-typewriter","description":"Typewriter renders a typewriter effect to text.\n---\n","doc-url":"","attributes":[{"name":"content","description":"Raw text.","value":{"type":"string","default":"\"\""}},{"name":"ended","description":"If true, hide the cursor","value":{"type":"boolean","default":"false"}},{"name":"max","description":"Maximum random time.","value":{"type":"number","default":"100"}},{"name":"min","description":"Minimum random time.","value":{"type":"number","default":"50"}},{"name":"delay","description":"Fixed time.","value":{"type":"number","default":"0"}},{"name":"index","description":"The index at the beginning.","value":{"type":"number","default":"0"}}],"events":[],"js":{"properties":[{"name":"content","description":"Raw text.","type":"string"},{"name":"ended","description":"If true, hide the cursor","type":"boolean"},{"name":"max","description":"Maximum random time.","type":"number"},{"name":"min","description":"Minimum random time.","type":"number"},{"name":"delay","description":"Fixed time.","type":"number"},{"name":"index","description":"The index at the beginning.","type":"number"},{"name":"contentInternal","type":"string"},{"name":"len","description":"Typewriter.content length.","type":"number"}],"events":[]}},{"name":"godown-tooltip","description":"Tooltip provide tooltip for slot elements.\nIf it has the tip property, ignore the slot tip.\n---\n### **Slots:**\n - **tip** - Tip element if no `tip` provided.\n- _default_ - Content.","doc-url":"","attributes":[{"name":"tip","description":"Tip text, if there is a value, the slot will be ignored.","value":{"type":"string"}},{"name":"direction","description":"Direction of opening the tip.","value":{"type":"DirectionCardinal | DirectionCorner","default":"\"top\""}},{"name":"align","description":"Content alignment.","value":{"type":"\"center\" | \"flex-start\" | \"flex-end\" | \"start\" | \"end\"","default":"\"center\""}},{"name":"propagation","description":"If true, allow penetration of the tip.","value":{"type":"boolean","default":"false"}},{"name":"type","description":"How can tips be triggered.\nIf `focus`, element will be focusable, open tip when focused.\nIf `hover`, element will open tip when hovered.","value":{"type":"\"hover\" | \"focus\"","default":"\"hover\""}},{"name":"open","description":"Open the content.","value":{"type":"boolean","default":"false"}}],"slots":[{"name":"tip","description":"Tip element if no `tip` provided."},{"name":"","description":"Content."}],"events":[],"js":{"properties":[{"name":"tip","description":"Tip text, if there is a value, the slot will be ignored.","type":"string"},{"name":"direction","description":"Direction of opening the tip.","type":"DirectionCardinal | DirectionCorner"},{"name":"align","description":"Content alignment.","type":"\"center\" | \"flex-start\" | \"flex-end\" | \"start\" | \"end\""},{"name":"propagation","description":"If true, allow penetration of the tip.","type":"boolean"},{"name":"type","description":"How can tips be triggered.\nIf `focus`, element will be focusable, open tip when focused.\nIf `hover`, element will open tip when hovered.","type":"\"hover\" | \"focus\""},{"name":"open","description":"Open the content.","type":"boolean"}],"events":[]}},{"name":"godown-time","description":"Time renders a formatting time.\n---\n### **Events:**\n - **time** - Fires when the time changes.","doc-url":"","attributes":[{"name":"escape","description":"Escape symbol.","value":{"type":"string","default":"\"%\""}},{"name":"format","description":"Format strings.","value":{"type":"string","default":"\"YYYY-MM-DD hh:mm:ss\""}},{"name":"time","description":"Time.","value":{"type":"Date","default":"new Date()"}},{"name":"timeout","description":"If there is a value, update every gap or timeout.","value":{"type":"number"}},{"name":"gap","description":"The number of milliseconds that change with each update.","value":{"type":"number"}}],"events":[{"name":"time","description":"Fires when the time changes."}],"js":{"properties":[{"name":"escape","description":"Escape symbol.","type":"string"},{"name":"format","description":"Format strings.","type":"string"},{"name":"time","description":"Time.","type":"Date"},{"name":"timeout","description":"If there is a value, update every gap or timeout.","type":"number"},{"name":"gap","description":"The number of milliseconds that change with each update.","type":"number"}],"events":[{"name":"time","description":"Fires when the time changes."}]}},{"name":"godown-text","description":"Text renders nowrap text.\n---\n","doc-url":"","attributes":[{"name":"underline","description":"Underline behavior.","value":{"type":"\"none\" | \"hover\" | \"active\" | \"always\"","default":"\"none\""}},{"name":"clip","description":"Set background-clip to text.","value":{"type":"boolean","default":"false"}}],"events":[],"js":{"properties":[{"name":"underline","description":"Underline behavior.","type":"\"none\" | \"hover\" | \"active\" | \"always\""},{"name":"clip","description":"Set background-clip to text.","type":"boolean"}],"events":[]}},{"name":"godown-tabs","description":"Tabs used to render a set of tabs.\nIt accepts \"tabs\" to present the sub-content.\nWhen \"useSlot\" is enabled, each item in \"tabs\" becomes a named slot with the same name as itself,\nwhile for non-slot tabs, the content is rendered as a horizontally padded string.\nWhen \"mouseenter\" and \"mouseleave\" are triggered on an individual tab, the indicator will move.\nThe moving indicator will start from the position of the item that was last entered.\nIf the pointer moves out of the root element or the element is connected to the document,\nthe starting position of the indicator will be regarded as the current selection.\nApply \"flex-direction: column\" to the tabs to arrange them vertically.\n---\n### **Events:**\n - **select** - Fires when the tab is selected.\n### **CSS Parts:**\n - **root** - The root element.\n- **item** - The tab items.\n- **indicator** - The indicator.\n- **selected** - The selected tab item.\n- **hover** - The hovered tab item.","doc-url":"","attributes":[{"name":"outline-type","value":{"type":"OutlineType","default":"\"border\""}},{"name":"useSlot","description":"Determines whether the tabs should use a slot for their content instead of a string.","value":{"type":"boolean","default":"false"}},{"name":"tabs","description":"An array of strings or slot content representing the tabs.","value":{"type":"string[]"}},{"name":"index","description":"The index of the currently selected tab.","value":{"type":"number","default":"0"}}],"events":[{"name":"select","description":"Fires when the tab is selected."}],"js":{"properties":[{"name":"outlineType","type":"OutlineType"},{"name":"useSlot","description":"Determines whether the tabs should use a slot for their content instead of a string.","type":"boolean"},{"name":"tabs","description":"An array of strings or slot content representing the tabs.","type":"string[]"},{"name":"index","description":"The index of the currently selected tab.","type":"number"}],"events":[{"name":"select","description":"Fires when the tab is selected."}]}},{"name":"godown-switch","description":"Switch renders a switch.\n---\n### **Events:**\n - **change** - Fires when the switch is switched.","doc-url":"","attributes":[{"name":"default","description":"Default checked state.","value":{"type":"any","default":"false"}},{"name":"checked","description":"The current value of the switch component. Reflects the \"checked\" attribute.","value":{"type":"boolean","default":"false"}},{"name":"autocomplete","value":{"type":"string | boolean"}},{"name":"outline-type","value":{"type":"OutlineType","default":"\"border\""}},{"name":"disabled","value":{"type":"boolean","default":"false"}},{"name":"type","value":{"type":"InputType"}},{"name":"placeholder","value":{"type":"string"}},{"name":"name","value":{"type":"string"}},{"name":"value","value":{"type":"V"}}],"events":[{"name":"change","description":"Fires when the switch is switched."}],"js":{"properties":[{"name":"checked","type":"boolean"},{"name":"default","description":"Default checked state.","type":"any"},{"name":"value","description":"The current value of the switch component. Reflects the \"checked\" attribute.","type":"V"},{"name":"observedRecord","type":"Record<string, any>"},{"name":"autofocus","type":"boolean"},{"name":"autocomplete","type":"string | boolean"},{"name":"outlineType","type":"OutlineType"},{"name":"disabled","type":"boolean"},{"name":"type","type":"InputType"},{"name":"placeholder","type":"string"},{"name":"name","type":"string"},{"name":"compositing","description":"Returns true when the input is compositing.","type":"boolean"},{"name":"defaultValue"},{"name":"nameValue","type":"() => [string, any]"}],"events":[{"name":"change","description":"Fires when the switch is switched."}]}},{"name":"godown-split","description":"Split renders multiple input boxes.\nInput: will move the focus box backward until the complete input from start to end.\nDelete: will move the focus box forward until the first and no inputs for each.\n---\n### **Events:**\n - **input** - Fires when the input value changes.\n- **change** - Fires when the input value changes.\n- **focus** - Fires when the input is focused.\n- **blur** - Fires when the input is blurred.\n### **Methods:**\n ","doc-url":"","attributes":[{"name":"len","description":"The number of input boxes.","value":{"type":"number","default":"6"}},{"name":"index","description":"Focus index.","value":{"type":"number","default":"-1"}},{"name":"autocomplete","value":{"type":"string | boolean"}},{"name":"outline-type","value":{"type":"OutlineType","default":"\"border\""}},{"name":"disabled","value":{"type":"boolean","default":"false"}},{"name":"type","value":{"type":"InputType"}},{"name":"placeholder","value":{"type":"string"}},{"name":"name","value":{"type":"string"}},{"name":"value","value":{"type":"V"}},{"name":"default","description":"default property records the default or initial value and is used to reset the input.","value":{"type":"any"}}],"events":[{"name":"input","description":"Fires when the input value changes."},{"name":"change","description":"Fires when the input value changes."},{"name":"focus","description":"Fires when the input is focused."},{"name":"blur","description":"Fires when the input is blurred."}],"js":{"properties":[{"name":"len","description":"The number of input boxes.","type":"number"},{"name":"index","description":"Focus index.","type":"number"},{"name":"current","type":"number"},{"name":"currentValue","type":"(string | void)[]"},{"name":"observedRecord","type":"Record<string, any>"},{"name":"autofocus","type":"boolean"},{"name":"autocomplete","type":"string | boolean"},{"name":"outlineType","type":"OutlineType"},{"name":"disabled","type":"boolean"},{"name":"type","type":"InputType"},{"name":"placeholder","type":"string"},{"name":"name","type":"string"},{"name":"value","type":"V"},{"name":"default","description":"default property records the default or initial value and is used to reset the input.","type":"any"},{"name":"compositing","description":"Returns true when the input is compositing.","type":"boolean"},{"name":"defaultValue"},{"name":"nameValue","type":"() => [string, any]"}],"events":[{"name":"input","description":"Fires when the input value changes."},{"name":"change","description":"Fires when the input value changes."},{"name":"focus","description":"Fires when the input is focused."},{"name":"blur","description":"Fires when the input is blurred."}]}},{"name":"godown-skeleton","description":"Skeleton renders a skeleton screen.\n---\n### **Slots:**\n - **loading** - The content if loading is true.\n- _default_ - The content if loading is false.","doc-url":"","attributes":[{"name":"type","description":"If \"image\", render a image placeholder.","value":{"type":"\"text\" | \"image\""}},{"name":"animation","description":"Animation type.\nopacity animation only effect on slotted element and image icon.","value":{"type":"\"position\" | \"opacity\"","default":"\"position\""}}],"slots":[{"name":"loading","description":"The content if loading is true."},{"name":"","description":"The content if loading is false."}],"events":[],"js":{"properties":[{"name":"type","description":"If \"image\", render a image placeholder.","type":"\"text\" | \"image\""},{"name":"animation","description":"Animation type.\nopacity animation only effect on slotted element and image icon.","type":"\"position\" | \"opacity\""},{"name":"loading","description":"If false, render slot only.","type":"boolean"}],"events":[]}},{"name":"godown-select","description":"Select is similar to `<select>`.\nElements with the value attribute/property can be used as options.\nThe checked attribute will be added to the selected element.\nMulti-selected state looks the same as single-selected.\nInput will filter the element.\n---\n### **Events:**\n - **input** - Fires when the input value changes.\n- **change** - Fires when the input value changes.\n- **select** - Fires when select an option.\n### **Slots:**\n - _default_ - Options.","doc-url":"","attributes":[{"name":"text","description":"Selected texts.","value":{"type":"string"}},{"name":"direction","value":{"type":"DirectionCardinalY"}},{"name":"multiple","value":{"type":"boolean","default":"false"}},{"name":"visible","value":{"type":"boolean","default":"false"}},{"name":"variant","description":"If outline, the outline is always present.","value":{"type":"\"default\" | \"outline\"","default":"\"default\""}},{"name":"autocomplete","value":{"type":"string | boolean"}},{"name":"outline-type","value":{"type":"OutlineType","default":"\"border\""}},{"name":"disabled","value":{"type":"boolean","default":"false"}},{"name":"type","value":{"type":"InputType"}},{"name":"placeholder","value":{"type":"string"}},{"name":"name","value":{"type":"string"}},{"name":"value","value":{"type":"V"}},{"name":"default","description":"default property records the default or initial value and is used to reset the input.","value":{"type":"any"}}],"slots":[{"name":"","description":"Options."}],"events":[{"name":"input","description":"Fires when the input value changes."},{"name":"change","description":"Fires when the input value changes."},{"name":"select","description":"Fires when select an option."}],"js":{"properties":[{"name":"value","type":"V"},{"name":"text","description":"Selected texts.","type":"string"},{"name":"direction","type":"DirectionCardinalY"},{"name":"multiple","type":"boolean"},{"name":"visible","type":"boolean"},{"name":"observedRecord","type":"Record<string, any>"},{"name":"type","type":"InputType"},{"name":"variant","description":"If outline, the outline is always present.","type":"\"default\" | \"outline\""},{"name":"autofocus","type":"boolean"},{"name":"autocomplete","type":"string | boolean"},{"name":"outlineType","type":"OutlineType"},{"name":"disabled","type":"boolean"},{"name":"placeholder","type":"string"},{"name":"name","type":"string"},{"name":"default","description":"default property records the default or initial value and is used to reset the input.","type":"any"},{"name":"compositing","description":"Returns true when the input is compositing.","type":"boolean"},{"name":"defaultValue"},{"name":"nameValue","type":"() => [string, any]"}],"events":[{"name":"input","description":"Fires when the input value changes."},{"name":"change","description":"Fires when the input value changes."},{"name":"select","description":"Fires when select an option."}]}},{"name":"godown-router","description":"Router has basic routing control.\nTo switch routes, use `router-link component`.\nIt has two methods to collect routes.\n1. From field `routes`, an array, each elements require \"path\".\n2. From child elements, which have the slot attribute for matching routes.\nIf only the method 1 is used, set `type` to `\"field\"`.\nIf only the method 2 is used, set `type` to `\"slotted\"`.\n`type` defaults to `\"united\"`, which will try method 1, then method 2.\nIf no routes are matched, the default value (no named slot) will be rendered.\n---\n### **Methods:**\n - **fieldComponent(query: _string_): _unknown_** - Get component from routes by query.\n- **slottedComponent(query: _string_): _TemplateResult<1>_** - Get component from slotted elements by query.\n- **collectSlottedRoutes(): _void_** - Reset the route tree, clear cache, collect routes from child elements.\n- **collectFieldRoutes(value: _typeof this.routes_): _void_** - Reset the route tree, clear cache, collect routes from value.\n### **Slots:**\n - _default_ - Display slot when there is no match.\n- ***** - Matching slot will be displayed.","doc-url":"","attributes":[{"name":"pathname","description":"Current pathname (equals to location.pathname).","value":{"type":"string"}},{"name":"type","description":"The type of routing sources.\nIf field, it won't collect the slot attribute of the child elements.\nThis property should not be changed after the rendering is complete.","value":{"type":"RouterType"}},{"name":"cache","description":"Cache accessed records.\nEmptied at each re-collection.","value":{"type":"boolean","default":"false"}}],"slots":[{"name":"","description":"Display slot when there is no match."},{"name":"*","description":"Matching slot will be displayed."}],"events":[],"js":{"properties":[{"name":"component","description":"Render result.","type":"unknown | TemplateResult"},{"name":"params","description":"Dynamic parameters record.","type":"Record<string, string>"},{"name":"path","description":"Value of matched path in routes.","type":"string | undefined"},{"name":"pathname","description":"Current pathname (equals to location.pathname).","type":"string"},{"name":"default","description":"Rendered content when there is no match.","type":"TemplateResult"},{"name":"type","description":"The type of routing sources.\nIf field, it won't collect the slot attribute of the child elements.\nThis property should not be changed after the rendering is complete.","type":"RouterType"},{"name":"cache","description":"Cache accessed records.\nEmptied at each re-collection.","type":"boolean"},{"name":"routes","type":"RouteItem[]"},{"name":"handlePopstate","type":"() => void"}],"events":[]}},{"name":"godown-rotate","description":"Rotate Make child elements rotate.\n---\n### **Methods:**\n ","doc-url":"","attributes":[],"events":[],"js":{"properties":[],"events":[]}},{"name":"godown-range","description":"Range is similar to `<input type=\"range\">`.\nValue accepts number, or array.\nNumber has 1 handle, the array has the number of its elements.\n---\n### **Events:**\n - **range** - Fires when the value changes.\n### **Methods:**\n - **padValue(len: _number_, value): _number[]_** - Pad the value to the specified length.\n- **focusHandle(index: _number_): _void_** - Focuses the handle at the given index, updates the focus stack.\n- **blurHandle(): _void_** - Removes the focus from the currently focused handle.\n","doc-url":"","attributes":[{"name":"min","description":"Minimum value.","value":{"type":"number","default":"0"}},{"name":"max","description":"Maximum value.","value":{"type":"number","default":"100"}},{"name":"step","description":"Sliding step length.","value":{"type":"number"}},{"name":"vertical","description":"Whether to display the range vertically.","value":{"type":"boolean","default":"false"}},{"name":"value","description":"Value, or each of values, will render a handle.\nAccepts number or array of numbers.","value":{"type":"V"}},{"name":"default","description":"The default of `this.value`.","value":{"type":"any"}},{"name":"autocomplete","value":{"type":"string | boolean"}},{"name":"outline-type","value":{"type":"OutlineType","default":"\"border\""}},{"name":"disabled","value":{"type":"boolean","default":"false"}},{"name":"type","value":{"type":"InputType"}},{"name":"placeholder","value":{"type":"string"}},{"name":"name","value":{"type":"string"}}],"events":[{"name":"range","description":"Fires when the value changes."}],"js":{"properties":[{"name":"min","description":"Minimum value.","type":"number"},{"name":"max","description":"Maximum value.","type":"number"},{"name":"step","description":"Sliding step length.","type":"number"},{"name":"vertical","description":"Whether to display the range vertically.","type":"boolean"},{"name":"value","description":"Value, or each of values, will render a handle.\nAccepts number or array of numbers.","type":"V"},{"name":"default","description":"The default of `this.value`.","type":"any"},{"name":"lastFocus","type":"number | undefined"},{"name":"range","type":"V extends number ? false : true"},{"name":"rangeValue","description":"Return values in the form of an array.","type":"number[]"},{"name":"observedRecord","type":"Record<string, any>"},{"name":"autofocus","type":"boolean"},{"name":"autocomplete","type":"string | boolean"},{"name":"outlineType","type":"OutlineType"},{"name":"disabled","type":"boolean"},{"name":"type","type":"InputType"},{"name":"placeholder","type":"string"},{"name":"name","type":"string"},{"name":"compositing","description":"Returns true when the input is compositing.","type":"boolean"},{"name":"defaultValue"},{"name":"nameValue","type":"() => [string, any]"}],"events":[{"name":"range","description":"Fires when the value changes."}]}},{"name":"godown-progress","description":"Progress similar to `<progress>`.\n---\n","doc-url":"","attributes":[{"name":"max","value":{"type":"number","default":"1"}},{"name":"min","value":{"type":"number","default":"0"}},{"name":"value","value":{"type":"number"}}],"events":[],"js":{"properties":[{"name":"max","type":"number"},{"name":"min","type":"number"},{"name":"value","type":"number"}],"events":[]}},{"name":"godown-link","description":"Link is used for link jumping, works standalone or in Router.\nSet `type` to `\"normal\"`,\nbehave like a normal anchor.\nSet `type` to `\"push\" `or `\"replace\"`,\nupdate history state by `history.pushState` or `history.replaceState`,\nupdate all routers whether current pathname is registered or not.\nSet `type` to `\"auto\"`,\nonly update the routers if the current pathname is registered,\nif not registered, behave like `\"normal\"`.\n`replace` property will enforce `history.replaceState`.\n---\n### **Events:**\n - **navigate** - Fires when the link is clicked.","doc-url":"","attributes":[{"name":"type","description":"If `\"normal\"`, behave like a normal anchor.\nIf `\"auto\"` or `\"push\"`, call `history.pushState` if `replace` is false,\nIf `\"replace\"`, call `history.replaceState`.","value":{"type":"LinkType"}},{"name":"suppress","description":"If `true`, the Router will not be updated.","value":{"type":"boolean","default":"false"}},{"name":"replace","description":"Use `replaceState` instead of `pushState`.","value":{"type":"boolean","default":"false"}},{"name":"href","description":"A element href.","value":{"type":"string"}},{"name":"target","description":"A element target.","value":{"type":"\"_blank\" | \"_self\" | \"_parent\" | \"_top\"","default":"\"_self\""}}],"events":[{"name":"navigate","description":"Fires when the link is clicked."}],"js":{"properties":[{"name":"type","description":"If `\"normal\"`, behave like a normal anchor.\nIf `\"auto\"` or `\"push\"`, call `history.pushState` if `replace` is false,\nIf `\"replace\"`, call `history.replaceState`.","type":"LinkType"},{"name":"suppress","description":"If `true`, the Router will not be updated.","type":"boolean"},{"name":"replace","description":"Use `replaceState` instead of `pushState`.","type":"boolean"},{"name":"state","description":"Location state object.","type":"object"},{"name":"handleState","type":"() => void"},{"name":"href","description":"A element href.","type":"string"},{"name":"target","description":"A element target.","type":"\"_blank\" | \"_self\" | \"_parent\" | \"_top\""},{"name":"pathname","type":"string"}],"events":[{"name":"navigate","description":"Fires when the link is clicked."}]}},{"name":"godown-layout","description":"Layout renders main content, top header, bottom footer.\nIf `sticky` is set to `true`, the header will be sticky.\nMain content will take up the remaining space.\nElement display should be `(inline-)flex` or `(inline-)grid`.\n---\n### **Slots:**\n - _default_ - The main content of the layout.\n- **header** - The header of the layout.\n- **footer** - The footer of the layout.","doc-url":"","attributes":[{"name":"sticky","description":"If `true`, header will sticky.","value":{"type":"boolean","default":"false"}}],"slots":[{"name":"","description":"The main content of the layout."},{"name":"header","description":"The header of the layout."},{"name":"footer","description":"The footer of the layout."}],"events":[],"js":{"properties":[{"name":"sticky","description":"If `true`, header will sticky.","type":"boolean"}],"events":[]}},{"name":"godown-input","description":"Input renders a text input.\n---\n### **Events:**\n - **input** - Fires when the input value changes.\n- **change** - Fires when the input value changes.","doc-url":"","attributes":[{"name":"variant","description":"If outline, the outline is always present.","value":{"type":"\"default\" | \"outline\"","default":"\"default\""}},{"name":"autocomplete","value":{"type":"string | boolean"}},{"name":"outline-type","value":{"type":"OutlineType","default":"\"border\""}},{"name":"disabled","value":{"type":"boolean","default":"false"}},{"name":"type","value":{"type":"InputType"}},{"name":"placeholder","value":{"type":"string"}},{"name":"name","value":{"type":"string"}},{"name":"value","value":{"type":"V"}},{"name":"default","description":"default property records the default or initial value and is used to reset the input.","value":{"type":"any"}}],"events":[{"name":"input","description":"Fires when the input value changes."},{"name":"change","description":"Fires when the input value changes."}],"js":{"properties":[{"name":"type","type":"InputType"},{"name":"value","type":"V"},{"name":"variant","description":"If outline, the outline is always present.","type":"\"default\" | \"outline\""},{"name":"autofocus","type":"boolean"},{"name":"autocomplete","type":"string | boolean"},{"name":"outlineType","type":"OutlineType"},{"name":"disabled","type":"boolean"},{"name":"placeholder","type":"string"},{"name":"name","type":"string"},{"name":"observedRecord","type":"Record<string, any>"},{"name":"default","description":"default property records the default or initial value and is used to reset the input.","type":"any"},{"name":"compositing","description":"Returns true when the input is compositing.","type":"boolean"},{"name":"defaultValue"},{"name":"nameValue","type":"() => [string, any]"}],"events":[{"name":"input","description":"Fires when the input value changes."},{"name":"change","description":"Fires when the input value changes."}]}},{"name":"godown-heading","description":"Heading renders a heading.\nIf the id is provided, the anchor will be displayed.\n---\n### **Slots:**\n - _default_ - Heading content.","doc-url":"","attributes":[{"name":"as","description":"The heading level.","value":{"type":"\"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\"","default":"\"h1\""}},{"name":"anchor","description":"The anchor prefix.\nElement must have an id to be displayed.","value":{"type":"string","default":"\"#\""}},{"name":"side","description":"The anchor side.","value":{"type":"\"left\" | \"right\"","default":"\"left\""}}],"slots":[{"name":"","description":"Heading content."}],"events":[],"js":{"properties":[{"name":"as","description":"The heading level.","type":"\"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\""},{"name":"anchor","description":"The anchor prefix.\nElement must have an id to be displayed.","type":"string"},{"name":"side","description":"The anchor side.","type":"\"left\" | \"right\""}],"events":[]}},{"name":"godown-grid","description":"Grid provides gird layout.\n---\n### **Slots:**\n - _default_ - Grid items.","doc-url":"","attributes":[{"name":"gap","description":"CSS property `gap`.","value":{"type":"string"}},{"name":"columns","description":"CSS property `grid-template-columns`.\nIf columns is numerical, divide columns equally.","value":{"type":"string | number"}},{"name":"rows","description":"CSS property `grid-template-rows`.\nIf rows is numerical, divide rows equally.","value":{"type":"string | number"}},{"name":"content","description":"CSS property `place-content` (`align-content justify-content`).","value":{"type":"string"}},{"name":"items","description":"CSS property `place-items` (`align-items justify-items`).","value":{"type":"string"}}],"slots":[{"name":"","description":"Grid items."}],"events":[],"js":{"properties":[{"name":"gap","description":"CSS property `gap`.","type":"string"},{"name":"columns","description":"CSS property `grid-template-columns`.\nIf columns is numerical, divide columns equally.","type":"string | number"},{"name":"rows","description":"CSS property `grid-template-rows`.\nIf rows is numerical, divide rows equally.","type":"string | number"},{"name":"content","description":"CSS property `place-content` (`align-content justify-content`).","type":"string"},{"name":"items","description":"CSS property `place-items` (`align-items justify-items`).","type":"string"}],"events":[]}},{"name":"godown-form","description":"Form Gets child element key-value object,\nwhich will be nested if the child element is the same as this element.\n---\n","doc-url":"","attributes":[{"name":"name","value":{"type":"string","default":"\"\""}}],"events":[],"js":{"properties":[{"name":"name","type":"string"},{"name":"value","type":"T"},{"name":"nameValue","type":"() => [string, T]"}],"events":[]}},{"name":"godown-flex","description":"Flex provides flex layout.\n---\n### **Slots:**\n - _default_ - Flex items.","doc-url":"","attributes":[{"name":"flex-flow","description":"CSS property `flex-flow` (`flex-direction flex-wrap`).","value":{"type":"string"}},{"name":"gap","description":"CSS property `gap`.","value":{"type":"string"}},{"name":"content","description":"CSS property `justify-content`.","value":{"type":"string"}},{"name":"items","description":"CSS property `align-items`.","value":{"type":"string"}},{"name":"vertical","description":"If true, set flex-direction to \"column\".","value":{"type":"boolean","default":"false"}}],"slots":[{"name":"","description":"Flex items."}],"events":[],"js":{"properties":[{"name":"flexFlow","description":"CSS property `flex-flow` (`flex-direction flex-wrap`).","type":"string"},{"name":"gap","description":"CSS property `gap`.","type":"string"},{"name":"content","description":"CSS property `justify-content`.","type":"string"},{"name":"items","description":"CSS property `align-items`.","type":"string"},{"name":"vertical","description":"If true, set flex-direction to \"column\".","type":"boolean"}],"events":[]}},{"name":"godown-dragbox","description":"Dragbox moves with the mouse and does not exceed the boundary of offsetParent.\n---\n### **Slots:**\n - _default_ - Dragbox content.","doc-url":"","attributes":[{"name":"x","description":"Position x.","value":{"type":"string"}},{"name":"y","description":"Position y.","value":{"type":"string"}}],"slots":[{"name":"","description":"Dragbox content."}],"events":[],"js":{"properties":[{"name":"_offsetParent","description":"Offset parent or document.body.","type":"Element"},{"name":"x","description":"Position x.","type":"string"},{"name":"y","description":"Position y.","type":"string"}],"events":[]}},{"name":"godown-divider","description":"Divider similar to `<hr>`.\n---\n","doc-url":"","attributes":[{"name":"vertical","description":"Whether to display the divider vertically.","value":{"type":"boolean","default":"false"}}],"events":[],"js":{"properties":[{"name":"vertical","description":"Whether to display the divider vertically.","type":"boolean"}],"events":[]}},{"name":"godown-dialog","description":"Dialog similar to `<dialog>`.\nLike dialog, it listens for submit events and closes itself when the target method is \"dialog\".\nIt listens for the keydown event and also closes itself when the key contained in the key is pressed.\n---\n### **Events:**\n - **change** - Fires when the open changes.","doc-url":"","attributes":[{"name":"modal","description":"Indicates whether the dialog should be displayed as a modal.","value":{"type":"boolean"}},{"name":"key","description":"The keys will close the dialog when pressed.","value":{"type":"string","default":"\"Escape\""}},{"name":"open","description":"Open the content.","value":{"type":"boolean","default":"false"}}],"events":[{"name":"change","description":"Fires when the open changes."}],"js":{"properties":[{"name":"modal","description":"Indicates whether the dialog should be displayed as a modal.","type":"boolean"},{"name":"key","description":"The keys will close the dialog when pressed.","type":"string"},{"name":"open","description":"Open the content.","type":"boolean"}],"events":[{"name":"change","description":"Fires when the open changes."}]}},{"name":"godown-details","description":"Details similar to `<details>`.\n---\n### **Events:**\n - **change** - Fires when the open changes.\n### **Slots:**\n - **summary** - Details summary if no `summary` is provided.\n- _default_ - Details content.","doc-url":"","attributes":[{"name":"float","description":"Determines whether the details component should float.","value":{"type":"boolean","default":"false"}},{"name":"fill","description":"Determines whether the details component should fill the available space.","value":{"type":"boolean","default":"false"}},{"name":"summary","description":"The summary text to display in the details component.","value":{"type":"string","default":"\"\""}},{"name":"open","description":"Open the content.","value":{"type":"boolean","default":"false"}}],"slots":[{"name":"summary","description":"Details summary if no `summary` is provided."},{"name":"","description":"Details content."}],"events":[{"name":"change","description":"Fires when the open changes."}],"js":{"properties":[{"name":"float","description":"Determines whether the details component should float.","type":"boolean"},{"name":"fill","description":"Determines whether the details component should fill the available space.","type":"boolean"},{"name":"summary","description":"The summary text to display in the details component.","type":"string"},{"name":"open","description":"Open the content.","type":"boolean"}],"events":[{"name":"change","description":"Fires when the open changes."}]}},{"name":"godown-carousel","description":"Carousel make the content display as a carousel.\nWhen this component is `firstUpdated`,\nclone the first and last element and make the matching element visible when switching index.\n---\n### **Events:**\n - **change** - Fires when the index changes.\n### **Slots:**\n - _default_ - Carousel items, should maintain the same size.","doc-url":"","attributes":[{"name":"index","description":"The index of the current item.","value":{"type":"number","default":"0"}},{"name":"autoChange","description":"The duration of the transition.","value":{"type":"number","default":"0"}}],"slots":[{"name":"","description":"Carousel items, should maintain the same size."}],"events":[{"name":"change","description":"Fires when the index changes."}],"js":{"properties":[{"name":"index","description":"The index of the current item.","type":"number"},{"name":"autoChange","description":"The duration of the transition.","type":"number"},{"name":"intervalID","type":"number"}],"events":[{"name":"change","description":"Fires when the index changes."}]}},{"name":"godown-card","description":"Card renders a card.\nThis may be similar to Layout,\nbut it needs to be specified to enable header and footer.\n---\n### **Slots:**\n - _default_ - The main content of the card.\n- **header** - The header of the card.\n- **footer** - The footer of the card.","doc-url":"","attributes":[{"name":"footer","description":"Whether to display the header.","value":{"type":"boolean","default":"false"}},{"name":"header","description":"Whether to display the footer.","value":{"type":"boolean","default":"false"}}],"slots":[{"name":"","description":"The main content of the card."},{"name":"header","description":"The header of the card."},{"name":"footer","description":"The footer of the card."}],"events":[],"js":{"properties":[{"name":"footer","description":"Whether to display the header.","type":"boolean"},{"name":"header","description":"Whether to display the footer.","type":"boolean"}],"events":[]}},{"name":"godown-button","description":"Button renders a button.\nCreate modal animation upon clicking.\nAvailable colors (background): none, black, gray, white, blue, green, red, orange, pink, purple, yellow, teal.\nDefault color is `black`.\nSet the color to `none` to prevent applying styles.\n---\n### **Slots:**\n - _default_ - The content of the button.","doc-url":"","attributes":[{"name":"plain","description":"If true, remove gradient, modal animation, focus scale.","value":{"type":"boolean","default":"false"}},{"name":"disabled","description":"Whether this element is disabled or not.","value":{"type":"boolean","default":"false"}},{"name":"ghost","description":"Whether this element should be rendered as a \"ghost\" button.\nA ghost button is a button with a transparent background and a border.","value":{"type":"boolean","default":"false"}},{"name":"active","description":"Whether this element is active or not.","value":{"type":"boolean","default":"false"}},{"name":"round","description":"Display rounded.","value":{"type":"boolean","default":"false"}},{"name":"color","description":"The primary color.","value":{"type":"Colors","default":"\"black\""}},{"name":"content","description":"Content text.","value":{"type":"string"}}],"slots":[{"name":"","description":"The content of the button."}],"events":[],"js":{"properties":[{"name":"plain","description":"If true, remove gradient, modal animation, focus scale.","type":"boolean"},{"name":"disabled","description":"Whether this element is disabled or not.","type":"boolean"},{"name":"ghost","description":"Whether this element should be rendered as a \"ghost\" button.\nA ghost button is a button with a transparent background and a border.","type":"boolean"},{"name":"active","description":"Whether this element is active or not.","type":"boolean"},{"name":"round","description":"Display rounded.","type":"boolean"},{"name":"color","description":"The primary color.","type":"Colors"},{"name":"content","description":"Content text.","type":"string"}],"events":[]}},{"name":"godown-breath","description":"Breath render the text with a breathing effect.\nDynamically generate a breathing effect based on the length of the split text.\nIf there is not enough CSS variable, overrun elements will use the.\ngodown was a css library in its earliest days,\nand this is the component version of its first effect.\nInspired by Vercel home page (2023).\n---\n### **Slots:**\n - _default_ - Breathing parts.","doc-url":"","attributes":[{"name":"content","description":"Strings or array of strings,\nif array, divided each element into chunks,\notherwise split strings by whitespace.","value":{"type":"string | string[]"}},{"name":"duration","description":"Effect duration.","value":{"type":"number"}}],"slots":[{"name":"","description":"Breathing parts."}],"events":[],"js":{"properties":[{"name":"content","description":"Strings or array of strings,\nif array, divided each element into chunks,\notherwise split strings by whitespace.","type":"string | string[]"},{"name":"duration","description":"Effect duration.","type":"number"}],"events":[]}},{"name":"godown-badge","description":"Badge renders a badge.\n---\n### **Slots:**\n - _default_ - Badge content.","doc-url":"","attributes":[{"name":"position","description":"The position of the badge relative to its parent element.\nPossible values are `\"top-left\"`, `\"top-right\"`, `\"bottom-left\"`, and `\"bottom-right\"`.","value":{"type":"DirectionCorner","default":"\"top-right\""}},{"name":"value","value":{"type":"number","default":"0"}},{"name":"dot","description":"If `true`, render a dot badge.","value":{"type":"boolean","default":"false"}},{"name":"max","description":"The maximum value that can be displayed in the badge\nValues greater than this will be displayed as `max+` by default.","value":{"type":"number","default":"99"}}],"slots":[{"name":"","description":"Badge content."}],"events":[],"js":{"properties":[{"name":"position","description":"The position of the badge relative to its parent element.\nPossible values are `\"top-left\"`, `\"top-right\"`, `\"bottom-left\"`, and `\"bottom-right\"`.","type":"DirectionCorner"},{"name":"value","type":"number"},{"name":"dot","description":"If `true`, render a dot badge.","type":"boolean"},{"name":"max","description":"The maximum value that can be displayed in the badge\nValues greater than this will be displayed as `max+` by default.","type":"number"}],"events":[]}},{"name":"godown-avatar","description":"Avatar renders a avatar.\nRenders as an image if it has a src property,\notherwise falls back to name or nameless slot.\n---\n### **Slots:**\n - _default_ - Display content if no `src` or `name` provided.","doc-url":"","attributes":[{"name":"src","description":"The `src` property specifies the URL of the avatar image.\nIf `src` is not provided, the component will display the `name` property instead.","value":{"type":"string | undefined | null"}},{"name":"name","description":"Specifies the name or initials to display if no `src` is provided","value":{"type":"string","default":"\"\""}},{"name":"round","description":"If `true`, will make the avatar display as a circle.","value":{"type":"boolean","default":"false"}}],"slots":[{"name":"","description":"Display content if no `src` or `name` provided."}],"events":[],"js":{"properties":[{"name":"src","description":"The `src` property specifies the URL of the avatar image.\nIf `src` is not provided, the component will display the `name` property instead.","type":"string | undefined | null"},{"name":"name","description":"Specifies the name or initials to display if no `src` is provided","type":"string"},{"name":"round","description":"If `true`, will make the avatar display as a circle.","type":"boolean"}],"events":[]}},{"name":"godown-alert","description":"Alert renders a alert.\nColor defaults to blue.\n---\n### **Events:**\n - **close** - Fires when the alert is closed.\n### **Slots:**\n - _default_ - Alert content.\n- **title** - Alert title.\n- **icon** - Alert icon.","doc-url":"","attributes":[{"name":"call","description":"If it is a legal value, the icon and preset color will be rendered.","value":{"type":"\"tip\" | \"success\" | \"info\" | \"warning\" | \"danger\" | \"error\" | \"help\" | \"deprecated\""}},{"name":"color","description":"The tone of the component.\nOverrides the color of the call.","value":{"type":"| \"white\"\n | \"black\"\n | \"gray\"\n | \"green\"\n | \"teal\"\n | \"blue\"\n | \"red\"\n | \"purple\"\n | \"orange\"\n | \"yellow\"\n | \"pink\"\n | \"none\"","default":"\"blue\""}},{"name":"autoclose","description":"Close delay, if 0, it will not be closed automatically.","value":{"type":"number","default":"0"}},{"name":"title","description":"The title is bold and the icon height is the same as it.","value":{"type":"string"}},{"name":"content","description":"Content, if zero value, will be rendered as an unnamed slot.","value":{"type":"string"}},{"name":"hideClose","description":"Set true to hide the close button.\nThe behavior may change due to the variant property.","value":{"type":"boolean","default":"false"}},{"name":"variant","description":"Alert variant, if set to `blockquote`, the alert will be rendered as a blockquote.\nIf variant is `\"blockquote\"`, hide the close button.","value":{"type":"\"blockquote\" | \"dark\"","default":"\"dark\""}}],"slots":[{"name":"","description":"Alert content."},{"name":"title","description":"Alert title."},{"name":"icon","description":"Alert icon."}],"events":[{"name":"close","description":"Fires when the alert is closed."}],"js":{"properties":[{"name":"call","description":"If it is a legal value, the icon and preset color will be rendered.","type":"\"tip\" | \"success\" | \"info\" | \"warning\" | \"danger\" | \"error\" | \"help\" | \"deprecated\""},{"name":"color","description":"The tone of the component.\nOverrides the color of the call.","type":"| \"white\"\n | \"black\"\n | \"gray\"\n | \"green\"\n | \"teal\"\n | \"blue\"\n | \"red\"\n | \"purple\"\n | \"orange\"\n | \"yellow\"\n | \"pink\"\n | \"none\""},{"name":"autoclose","description":"Close delay, if 0, it will not be closed automatically.","type":"number"},{"name":"title","description":"The title is bold and the icon height is the same as it.","type":"string"},{"name":"content","description":"Content, if zero value, will be rendered as an unnamed slot.","type":"string"},{"name":"hideClose","description":"Set true to hide the close button.\nThe behavior may change due to the variant property.","type":"boolean"},{"name":"variant","description":"Alert variant, if set to `blockquote`, the alert will be rendered as a blockquote.\nIf variant is `\"blockquote\"`, hide the close button.","type":"\"blockquote\" | \"dark\""}],"events":[{"name":"close","description":"Fires when the alert is closed."}]}}]},"css":{"properties":[],"pseudo-elements":[{"name":"part(root)","description":"The root element."},{"name":"part(item)","description":"The tab items."},{"name":"part(indicator)","description":"The indicator."},{"name":"part(selected)","description":"The selected tab item."},{"name":"part(hover)","description":"The hovered tab item."}]}}}
|
1
|
+
{"name":"godown","version":"3.10.0","description-markup":"markdown","contributions":{"html":{"elements":[{"name":"godown-typewriter","description":"Typewriter renders a typewriter effect to text.\n---\n","doc-url":"","attributes":[{"name":"content","description":"Raw text.","value":{"type":"string","default":"\"\""}},{"name":"ended","description":"If true, hide the cursor","value":{"type":"boolean","default":"false"}},{"name":"max","description":"Maximum random time.","value":{"type":"number","default":"100"}},{"name":"min","description":"Minimum random time.","value":{"type":"number","default":"50"}},{"name":"delay","description":"Fixed time.","value":{"type":"number","default":"0"}},{"name":"index","description":"The index at the beginning.","value":{"type":"number","default":"0"}}],"events":[],"js":{"properties":[{"name":"content","description":"Raw text.","type":"string"},{"name":"ended","description":"If true, hide the cursor","type":"boolean"},{"name":"max","description":"Maximum random time.","type":"number"},{"name":"min","description":"Minimum random time.","type":"number"},{"name":"delay","description":"Fixed time.","type":"number"},{"name":"index","description":"The index at the beginning.","type":"number"},{"name":"contentInternal","type":"string"},{"name":"len","description":"Typewriter.content length.","type":"number"}],"events":[]}},{"name":"godown-tooltip","description":"Tooltip provide tooltip for slot elements.\nIf it has the tip property, ignore the slot tip.\n---\n### **Slots:**\n - **tip** - Tip element if no `tip` provided.\n- _default_ - Content.","doc-url":"","attributes":[{"name":"tip","description":"Tip text, if there is a value, the slot will be ignored.","value":{"type":"string"}},{"name":"direction","description":"Direction of opening the tip.","value":{"type":"DirectionCardinal | DirectionCorner","default":"\"top\""}},{"name":"align","description":"Content alignment.","value":{"type":"\"center\" | \"flex-start\" | \"flex-end\" | \"start\" | \"end\"","default":"\"center\""}},{"name":"propagation","description":"If true, allow penetration of the tip.","value":{"type":"boolean","default":"false"}},{"name":"type","description":"How can tips be triggered.\nIf `focus`, element will be focusable, open tip when focused.\nIf `hover`, element will open tip when hovered.","value":{"type":"\"hover\" | \"focus\"","default":"\"hover\""}},{"name":"open","description":"Open the content.","value":{"type":"boolean","default":"false"}}],"slots":[{"name":"tip","description":"Tip element if no `tip` provided."},{"name":"","description":"Content."}],"events":[],"js":{"properties":[{"name":"tip","description":"Tip text, if there is a value, the slot will be ignored.","type":"string"},{"name":"direction","description":"Direction of opening the tip.","type":"DirectionCardinal | DirectionCorner"},{"name":"align","description":"Content alignment.","type":"\"center\" | \"flex-start\" | \"flex-end\" | \"start\" | \"end\""},{"name":"propagation","description":"If true, allow penetration of the tip.","type":"boolean"},{"name":"type","description":"How can tips be triggered.\nIf `focus`, element will be focusable, open tip when focused.\nIf `hover`, element will open tip when hovered.","type":"\"hover\" | \"focus\""},{"name":"open","description":"Open the content.","type":"boolean"}],"events":[]}},{"name":"godown-time","description":"Time renders a formatting time.\n---\n### **Events:**\n - **time** - Fires when the time changes.","doc-url":"","attributes":[{"name":"escape","description":"Escape symbol.","value":{"type":"string","default":"\"%\""}},{"name":"format","description":"Format strings.","value":{"type":"string","default":"\"YYYY-MM-DD hh:mm:ss\""}},{"name":"time","description":"Time.","value":{"type":"Date","default":"new Date()"}},{"name":"timeout","description":"If there is a value, update every gap or timeout.","value":{"type":"number"}},{"name":"gap","description":"The number of milliseconds that change with each update.","value":{"type":"number"}}],"events":[{"name":"time","description":"Fires when the time changes."}],"js":{"properties":[{"name":"escape","description":"Escape symbol.","type":"string"},{"name":"format","description":"Format strings.","type":"string"},{"name":"time","description":"Time.","type":"Date"},{"name":"timeout","description":"If there is a value, update every gap or timeout.","type":"number"},{"name":"gap","description":"The number of milliseconds that change with each update.","type":"number"}],"events":[{"name":"time","description":"Fires when the time changes."}]}},{"name":"godown-text","description":"Text renders nowrap text.\n---\n","doc-url":"","attributes":[{"name":"underline","description":"Underline behavior.","value":{"type":"\"none\" | \"hover\" | \"active\" | \"always\"","default":"\"none\""}},{"name":"clip","description":"Set background-clip to text.","value":{"type":"boolean","default":"false"}}],"events":[],"js":{"properties":[{"name":"underline","description":"Underline behavior.","type":"\"none\" | \"hover\" | \"active\" | \"always\""},{"name":"clip","description":"Set background-clip to text.","type":"boolean"}],"events":[]}},{"name":"godown-tabs","description":"Tabs used to render a set of tabs.\nIt accepts \"tabs\" to present the sub-content.\nWhen \"useSlot\" is enabled, each item in \"tabs\" becomes a named slot with the same name as itself,\nwhile for non-slot tabs, the content is rendered as a horizontally padded string.\nWhen \"mouseenter\" and \"mouseleave\" are triggered on an individual tab, the indicator will move.\nThe moving indicator will start from the position of the item that was last entered.\nIf the pointer moves out of the root element or the element is connected to the document,\nthe starting position of the indicator will be regarded as the current selection.\nApply \"flex-direction: column\" to the tabs to arrange them vertically.\n---\n### **Events:**\n - **select** - Fires when the tab is selected.\n### **CSS Parts:**\n - **root** - The root element.\n- **item** - The tab items.\n- **indicator** - The indicator.\n- **selected** - The selected tab item.\n- **hover** - The hovered tab item.","doc-url":"","attributes":[{"name":"outline-type","value":{"type":"OutlineType","default":"\"border\""}},{"name":"useSlot","description":"Determines whether the tabs should use a slot for their content instead of a string.","value":{"type":"boolean","default":"false"}},{"name":"tabs","description":"An array of strings or slot content representing the tabs.","value":{"type":"string[]"}},{"name":"index","description":"The index of the currently selected tab.","value":{"type":"number","default":"0"}}],"events":[{"name":"select","description":"Fires when the tab is selected."}],"js":{"properties":[{"name":"outlineType","type":"OutlineType"},{"name":"useSlot","description":"Determines whether the tabs should use a slot for their content instead of a string.","type":"boolean"},{"name":"tabs","description":"An array of strings or slot content representing the tabs.","type":"string[]"},{"name":"index","description":"The index of the currently selected tab.","type":"number"}],"events":[{"name":"select","description":"Fires when the tab is selected."}]}},{"name":"godown-switch","description":"Switch renders a switch.\n---\n### **Events:**\n - **change** - Fires when the switch is switched.","doc-url":"","attributes":[{"name":"default","description":"Default checked state.","value":{"type":"any","default":"false"}},{"name":"checked","description":"The current value of the switch component. Reflects the \"checked\" attribute.","value":{"type":"boolean","default":"false"}},{"name":"autocomplete","value":{"type":"string | boolean"}},{"name":"outline-type","value":{"type":"OutlineType","default":"\"border\""}},{"name":"disabled","value":{"type":"boolean","default":"false"}},{"name":"type","value":{"type":"InputType"}},{"name":"placeholder","value":{"type":"string"}},{"name":"name","value":{"type":"string"}},{"name":"value","value":{"type":"V"}}],"events":[{"name":"change","description":"Fires when the switch is switched."}],"js":{"properties":[{"name":"checked","type":"boolean"},{"name":"default","description":"Default checked state.","type":"any"},{"name":"value","description":"The current value of the switch component. Reflects the \"checked\" attribute.","type":"V"},{"name":"observedRecord","type":"Record<string, any>"},{"name":"autofocus","type":"boolean"},{"name":"autocomplete","type":"string | boolean"},{"name":"outlineType","type":"OutlineType"},{"name":"disabled","type":"boolean"},{"name":"type","type":"InputType"},{"name":"placeholder","type":"string"},{"name":"name","type":"string"},{"name":"compositing","description":"Returns true when the input is compositing.","type":"boolean"},{"name":"defaultValue"},{"name":"nameValue","type":"() => [string, any]"}],"events":[{"name":"change","description":"Fires when the switch is switched."}]}},{"name":"godown-split","description":"Split renders multiple input boxes.\nInput: will move the focus box backward until the complete input from start to end.\nDelete: will move the focus box forward until the first and no inputs for each.\n---\n### **Events:**\n - **input** - Fires when the input value changes.\n- **change** - Fires when the input value changes.\n- **focus** - Fires when the input is focused.\n- **blur** - Fires when the input is blurred.\n### **Methods:**\n ","doc-url":"","attributes":[{"name":"len","description":"The number of input boxes.","value":{"type":"number","default":"6"}},{"name":"index","description":"Focus index.","value":{"type":"number","default":"-1"}},{"name":"autocomplete","value":{"type":"string | boolean"}},{"name":"outline-type","value":{"type":"OutlineType","default":"\"border\""}},{"name":"disabled","value":{"type":"boolean","default":"false"}},{"name":"type","value":{"type":"InputType"}},{"name":"placeholder","value":{"type":"string"}},{"name":"name","value":{"type":"string"}},{"name":"value","value":{"type":"V"}},{"name":"default","description":"default property records the default or initial value and is used to reset the input.","value":{"type":"any"}}],"events":[{"name":"input","description":"Fires when the input value changes."},{"name":"change","description":"Fires when the input value changes."},{"name":"focus","description":"Fires when the input is focused."},{"name":"blur","description":"Fires when the input is blurred."}],"js":{"properties":[{"name":"len","description":"The number of input boxes.","type":"number"},{"name":"index","description":"Focus index.","type":"number"},{"name":"current","type":"number"},{"name":"currentValue","type":"(string | void)[]"},{"name":"observedRecord","type":"Record<string, any>"},{"name":"autofocus","type":"boolean"},{"name":"autocomplete","type":"string | boolean"},{"name":"outlineType","type":"OutlineType"},{"name":"disabled","type":"boolean"},{"name":"type","type":"InputType"},{"name":"placeholder","type":"string"},{"name":"name","type":"string"},{"name":"value","type":"V"},{"name":"default","description":"default property records the default or initial value and is used to reset the input.","type":"any"},{"name":"compositing","description":"Returns true when the input is compositing.","type":"boolean"},{"name":"defaultValue"},{"name":"nameValue","type":"() => [string, any]"}],"events":[{"name":"input","description":"Fires when the input value changes."},{"name":"change","description":"Fires when the input value changes."},{"name":"focus","description":"Fires when the input is focused."},{"name":"blur","description":"Fires when the input is blurred."}]}},{"name":"godown-skeleton","description":"Skeleton renders a skeleton screen.\n---\n### **Slots:**\n - **loading** - The content if loading is true.\n- _default_ - The content if loading is false.","doc-url":"","attributes":[{"name":"type","description":"If \"image\", render a image placeholder.","value":{"type":"\"text\" | \"image\""}},{"name":"animation","description":"Animation type.\nopacity animation only effect on slotted element and image icon.","value":{"type":"\"position\" | \"opacity\"","default":"\"position\""}}],"slots":[{"name":"loading","description":"The content if loading is true."},{"name":"","description":"The content if loading is false."}],"events":[],"js":{"properties":[{"name":"type","description":"If \"image\", render a image placeholder.","type":"\"text\" | \"image\""},{"name":"animation","description":"Animation type.\nopacity animation only effect on slotted element and image icon.","type":"\"position\" | \"opacity\""},{"name":"loading","description":"If false, render slot only.","type":"boolean"}],"events":[]}},{"name":"g-select","description":"Select is similar to `<select>`.\nElements with the value attribute/property can be used as options.\nThe checked attribute will be added to the selected element.\nMulti-selected state looks the same as single-selected.\nInput will filter the element.\n---\n### **Events:**\n - **input** - Fires when the input value changes.\n- **change** - Fires when the input value changes.\n- **select** - Fires when select an option.\n### **Slots:**\n - _default_ - Options.","doc-url":"","attributes":[{"name":"text","description":"Selected texts.","value":{"type":"string"}},{"name":"direction","value":{"type":"DirectionCardinalY"}},{"name":"multiple","value":{"type":"boolean","default":"false"}},{"name":"visible","value":{"type":"boolean","default":"false"}},{"name":"variant","description":"If outline, the outline is always present.","value":{"type":"\"default\" | \"outline\"","default":"\"default\""}},{"name":"autocomplete","value":{"type":"string | boolean"}},{"name":"outline-type","value":{"type":"OutlineType","default":"\"border\""}},{"name":"disabled","value":{"type":"boolean","default":"false"}},{"name":"type","value":{"type":"InputType"}},{"name":"placeholder","value":{"type":"string"}},{"name":"name","value":{"type":"string"}},{"name":"value","value":{"type":"V"}},{"name":"default","description":"default property records the default or initial value and is used to reset the input.","value":{"type":"any"}}],"slots":[{"name":"","description":"Options."}],"events":[{"name":"input","description":"Fires when the input value changes."},{"name":"change","description":"Fires when the input value changes."},{"name":"select","description":"Fires when select an option."}],"js":{"properties":[{"name":"value","type":"V"},{"name":"text","description":"Selected texts.","type":"string"},{"name":"direction","type":"DirectionCardinalY"},{"name":"multiple","type":"boolean"},{"name":"visible","type":"boolean"},{"name":"observedRecord","type":"Record<string, any>"},{"name":"type","type":"InputType"},{"name":"variant","description":"If outline, the outline is always present.","type":"\"default\" | \"outline\""},{"name":"autofocus","type":"boolean"},{"name":"autocomplete","type":"string | boolean"},{"name":"outlineType","type":"OutlineType"},{"name":"disabled","type":"boolean"},{"name":"placeholder","type":"string"},{"name":"name","type":"string"},{"name":"default","description":"default property records the default or initial value and is used to reset the input.","type":"any"},{"name":"compositing","description":"Returns true when the input is compositing.","type":"boolean"},{"name":"defaultValue"},{"name":"nameValue","type":"() => [string, any]"}],"events":[{"name":"input","description":"Fires when the input value changes."},{"name":"change","description":"Fires when the input value changes."},{"name":"select","description":"Fires when select an option."}]}},{"name":"godown-router","description":"Router has basic routing control.\nTo switch routes, use `router-link component`.\nIt has two methods to collect routes.\n1. From field `routes`, an array, each elements require \"path\".\n2. From child elements, which have the slot attribute for matching routes.\nIf only the method 1 is used, set `type` to `\"field\"`.\nIf only the method 2 is used, set `type` to `\"slotted\"`.\n`type` defaults to `\"united\"`, which will try method 1, then method 2.\nIf no routes are matched, the default value (no named slot) will be rendered.\n---\n### **Methods:**\n - **fieldComponent(query: _string_): _unknown_** - Get component from routes by query.\n- **slottedComponent(query: _string_): _TemplateResult<1>_** - Get component from slotted elements by query.\n- **collectSlottedRoutes(): _void_** - Reset the route tree, clear cache, collect routes from child elements.\n- **collectFieldRoutes(value: _typeof this.routes_): _void_** - Reset the route tree, clear cache, collect routes from value.\n### **Slots:**\n - _default_ - Display slot when there is no match.\n- ***** - Matching slot will be displayed.","doc-url":"","attributes":[{"name":"pathname","description":"Current pathname (equals to location.pathname).","value":{"type":"string"}},{"name":"type","description":"The type of routing sources.\nIf field, it won't collect the slot attribute of the child elements.\nThis property should not be changed after the rendering is complete.","value":{"type":"RouterType"}},{"name":"cache","description":"Cache accessed records.\nEmptied at each re-collection.","value":{"type":"boolean","default":"false"}}],"slots":[{"name":"","description":"Display slot when there is no match."},{"name":"*","description":"Matching slot will be displayed."}],"events":[],"js":{"properties":[{"name":"component","description":"Render result.","type":"unknown | TemplateResult"},{"name":"params","description":"Dynamic parameters record.","type":"Record<string, string>"},{"name":"path","description":"Value of matched path in routes.","type":"string | undefined"},{"name":"pathname","description":"Current pathname (equals to location.pathname).","type":"string"},{"name":"default","description":"Rendered content when there is no match.","type":"TemplateResult"},{"name":"type","description":"The type of routing sources.\nIf field, it won't collect the slot attribute of the child elements.\nThis property should not be changed after the rendering is complete.","type":"RouterType"},{"name":"cache","description":"Cache accessed records.\nEmptied at each re-collection.","type":"boolean"},{"name":"routes","type":"RouteItem[]"},{"name":"handlePopstate","type":"() => void"}],"events":[]}},{"name":"godown-rotate","description":"Rotate Make child elements rotate.\n---\n### **Methods:**\n ","doc-url":"","attributes":[],"events":[],"js":{"properties":[],"events":[]}},{"name":"godown-range","description":"Range is similar to `<input type=\"range\">`.\nValue accepts number, or array.\nNumber has 1 handle, the array has the number of its elements.\n---\n### **Events:**\n - **range** - Fires when the value changes.\n### **Methods:**\n - **padValue(len: _number_, value): _number[]_** - Pad the value to the specified length.\n- **focusHandle(index: _number_): _void_** - Focuses the handle at the given index, updates the focus stack.\n- **blurHandle(): _void_** - Removes the focus from the currently focused handle.\n","doc-url":"","attributes":[{"name":"min","description":"Minimum value.","value":{"type":"number","default":"0"}},{"name":"max","description":"Maximum value.","value":{"type":"number","default":"100"}},{"name":"step","description":"Sliding step length.","value":{"type":"number"}},{"name":"vertical","description":"Whether to display the range vertically.","value":{"type":"boolean","default":"false"}},{"name":"value","description":"Value, or each of values, will render a handle.\nAccepts number or array of numbers.","value":{"type":"V"}},{"name":"default","description":"The default of `this.value`.","value":{"type":"any"}},{"name":"autocomplete","value":{"type":"string | boolean"}},{"name":"outline-type","value":{"type":"OutlineType","default":"\"border\""}},{"name":"disabled","value":{"type":"boolean","default":"false"}},{"name":"type","value":{"type":"InputType"}},{"name":"placeholder","value":{"type":"string"}},{"name":"name","value":{"type":"string"}}],"events":[{"name":"range","description":"Fires when the value changes."}],"js":{"properties":[{"name":"min","description":"Minimum value.","type":"number"},{"name":"max","description":"Maximum value.","type":"number"},{"name":"step","description":"Sliding step length.","type":"number"},{"name":"vertical","description":"Whether to display the range vertically.","type":"boolean"},{"name":"value","description":"Value, or each of values, will render a handle.\nAccepts number or array of numbers.","type":"V"},{"name":"default","description":"The default of `this.value`.","type":"any"},{"name":"lastFocus","type":"number | undefined"},{"name":"range","type":"V extends number ? false : true"},{"name":"rangeValue","description":"Return values in the form of an array.","type":"number[]"},{"name":"observedRecord","type":"Record<string, any>"},{"name":"autofocus","type":"boolean"},{"name":"autocomplete","type":"string | boolean"},{"name":"outlineType","type":"OutlineType"},{"name":"disabled","type":"boolean"},{"name":"type","type":"InputType"},{"name":"placeholder","type":"string"},{"name":"name","type":"string"},{"name":"compositing","description":"Returns true when the input is compositing.","type":"boolean"},{"name":"defaultValue"},{"name":"nameValue","type":"() => [string, any]"}],"events":[{"name":"range","description":"Fires when the value changes."}]}},{"name":"godown-progress","description":"Progress similar to `<progress>`.\n---\n","doc-url":"","attributes":[{"name":"max","value":{"type":"number","default":"1"}},{"name":"min","value":{"type":"number","default":"0"}},{"name":"value","value":{"type":"number"}}],"events":[],"js":{"properties":[{"name":"max","type":"number"},{"name":"min","type":"number"},{"name":"value","type":"number"}],"events":[]}},{"name":"godown-link","description":"Link is used for link jumping, works standalone or in Router.\nSet `type` to `\"normal\"`,\nbehave like a normal anchor.\nSet `type` to `\"push\" `or `\"replace\"`,\nupdate history state by `history.pushState` or `history.replaceState`,\nupdate all routers whether current pathname is registered or not.\nSet `type` to `\"auto\"`,\nonly update the routers if the current pathname is registered,\nif not registered, behave like `\"normal\"`.\n`replace` property will enforce `history.replaceState`.\n---\n### **Events:**\n - **navigate** - Fires when the link is clicked.","doc-url":"","attributes":[{"name":"type","description":"If `\"normal\"`, behave like a normal anchor.\nIf `\"auto\"` or `\"push\"`, call `history.pushState` if `replace` is false,\nIf `\"replace\"`, call `history.replaceState`.","value":{"type":"LinkType"}},{"name":"suppress","description":"If `true`, the Router will not be updated.","value":{"type":"boolean","default":"false"}},{"name":"replace","description":"Use `replaceState` instead of `pushState`.","value":{"type":"boolean","default":"false"}},{"name":"href","description":"A element href.","value":{"type":"string"}},{"name":"target","description":"A element target.","value":{"type":"\"_blank\" | \"_self\" | \"_parent\" | \"_top\"","default":"\"_self\""}}],"events":[{"name":"navigate","description":"Fires when the link is clicked."}],"js":{"properties":[{"name":"type","description":"If `\"normal\"`, behave like a normal anchor.\nIf `\"auto\"` or `\"push\"`, call `history.pushState` if `replace` is false,\nIf `\"replace\"`, call `history.replaceState`.","type":"LinkType"},{"name":"suppress","description":"If `true`, the Router will not be updated.","type":"boolean"},{"name":"replace","description":"Use `replaceState` instead of `pushState`.","type":"boolean"},{"name":"state","description":"Location state object.","type":"object"},{"name":"handleState","type":"() => void"},{"name":"href","description":"A element href.","type":"string"},{"name":"target","description":"A element target.","type":"\"_blank\" | \"_self\" | \"_parent\" | \"_top\""},{"name":"pathname","type":"string"}],"events":[{"name":"navigate","description":"Fires when the link is clicked."}]}},{"name":"godown-layout","description":"Layout renders main content, top header, bottom footer.\nIf `sticky` is set to `true`, the header will be sticky.\nMain content will take up the remaining space.\nElement display should be `(inline-)flex` or `(inline-)grid`.\n---\n### **Slots:**\n - _default_ - The main content of the layout.\n- **header** - The header of the layout.\n- **footer** - The footer of the layout.","doc-url":"","attributes":[{"name":"sticky","description":"If `true`, header will sticky.","value":{"type":"boolean","default":"false"}}],"slots":[{"name":"","description":"The main content of the layout."},{"name":"header","description":"The header of the layout."},{"name":"footer","description":"The footer of the layout."}],"events":[],"js":{"properties":[{"name":"sticky","description":"If `true`, header will sticky.","type":"boolean"}],"events":[]}},{"name":"godown-input","description":"Input renders a text input.\n---\n### **Events:**\n - **input** - Fires when the input value changes.\n- **change** - Fires when the input value changes.","doc-url":"","attributes":[{"name":"variant","description":"If outline, the outline is always present.","value":{"type":"\"default\" | \"outline\"","default":"\"default\""}},{"name":"autocomplete","value":{"type":"string | boolean"}},{"name":"outline-type","value":{"type":"OutlineType","default":"\"border\""}},{"name":"disabled","value":{"type":"boolean","default":"false"}},{"name":"type","value":{"type":"InputType"}},{"name":"placeholder","value":{"type":"string"}},{"name":"name","value":{"type":"string"}},{"name":"value","value":{"type":"V"}},{"name":"default","description":"default property records the default or initial value and is used to reset the input.","value":{"type":"any"}}],"events":[{"name":"input","description":"Fires when the input value changes."},{"name":"change","description":"Fires when the input value changes."}],"js":{"properties":[{"name":"type","type":"InputType"},{"name":"value","type":"V"},{"name":"variant","description":"If outline, the outline is always present.","type":"\"default\" | \"outline\""},{"name":"autofocus","type":"boolean"},{"name":"autocomplete","type":"string | boolean"},{"name":"outlineType","type":"OutlineType"},{"name":"disabled","type":"boolean"},{"name":"placeholder","type":"string"},{"name":"name","type":"string"},{"name":"observedRecord","type":"Record<string, any>"},{"name":"default","description":"default property records the default or initial value and is used to reset the input.","type":"any"},{"name":"compositing","description":"Returns true when the input is compositing.","type":"boolean"},{"name":"defaultValue"},{"name":"nameValue","type":"() => [string, any]"}],"events":[{"name":"input","description":"Fires when the input value changes."},{"name":"change","description":"Fires when the input value changes."}]}},{"name":"godown-heading","description":"Heading renders a heading.\nIf the id is provided, the anchor will be displayed.\n---\n### **Slots:**\n - _default_ - Heading content.","doc-url":"","attributes":[{"name":"as","description":"The heading level.","value":{"type":"\"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\"","default":"\"h1\""}},{"name":"anchor","description":"The anchor prefix.\nElement must have an id to be displayed.","value":{"type":"string","default":"\"#\""}},{"name":"side","description":"The anchor side.","value":{"type":"\"left\" | \"right\"","default":"\"left\""}}],"slots":[{"name":"","description":"Heading content."}],"events":[],"js":{"properties":[{"name":"as","description":"The heading level.","type":"\"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\""},{"name":"anchor","description":"The anchor prefix.\nElement must have an id to be displayed.","type":"string"},{"name":"side","description":"The anchor side.","type":"\"left\" | \"right\""}],"events":[]}},{"name":"godown-grid","description":"Grid provides gird layout.\n---\n### **Slots:**\n - _default_ - Grid items.","doc-url":"","attributes":[{"name":"gap","description":"CSS property `gap`.","value":{"type":"string"}},{"name":"columns","description":"CSS property `grid-template-columns`.\nIf columns is numerical, divide columns equally.","value":{"type":"string | number"}},{"name":"rows","description":"CSS property `grid-template-rows`.\nIf rows is numerical, divide rows equally.","value":{"type":"string | number"}},{"name":"content","description":"CSS property `place-content` (`align-content justify-content`).","value":{"type":"string"}},{"name":"items","description":"CSS property `place-items` (`align-items justify-items`).","value":{"type":"string"}}],"slots":[{"name":"","description":"Grid items."}],"events":[],"js":{"properties":[{"name":"gap","description":"CSS property `gap`.","type":"string"},{"name":"columns","description":"CSS property `grid-template-columns`.\nIf columns is numerical, divide columns equally.","type":"string | number"},{"name":"rows","description":"CSS property `grid-template-rows`.\nIf rows is numerical, divide rows equally.","type":"string | number"},{"name":"content","description":"CSS property `place-content` (`align-content justify-content`).","type":"string"},{"name":"items","description":"CSS property `place-items` (`align-items justify-items`).","type":"string"}],"events":[]}},{"name":"godown-form","description":"Form Gets child element key-value object,\nwhich will be nested if the child element is the same as this element.\n---\n","doc-url":"","attributes":[{"name":"name","value":{"type":"string","default":"\"\""}}],"events":[],"js":{"properties":[{"name":"name","type":"string"},{"name":"value","type":"T"},{"name":"nameValue","type":"() => [string, T]"}],"events":[]}},{"name":"godown-flex","description":"Flex provides flex layout.\n---\n### **Slots:**\n - _default_ - Flex items.","doc-url":"","attributes":[{"name":"flex-flow","description":"CSS property `flex-flow` (`flex-direction flex-wrap`).","value":{"type":"string"}},{"name":"gap","description":"CSS property `gap`.","value":{"type":"string"}},{"name":"content","description":"CSS property `justify-content`.","value":{"type":"string"}},{"name":"items","description":"CSS property `align-items`.","value":{"type":"string"}},{"name":"vertical","description":"If true, set flex-direction to \"column\".","value":{"type":"boolean","default":"false"}}],"slots":[{"name":"","description":"Flex items."}],"events":[],"js":{"properties":[{"name":"flexFlow","description":"CSS property `flex-flow` (`flex-direction flex-wrap`).","type":"string"},{"name":"gap","description":"CSS property `gap`.","type":"string"},{"name":"content","description":"CSS property `justify-content`.","type":"string"},{"name":"items","description":"CSS property `align-items`.","type":"string"},{"name":"vertical","description":"If true, set flex-direction to \"column\".","type":"boolean"}],"events":[]}},{"name":"godown-dragbox","description":"Dragbox moves with the mouse and does not exceed the boundary of offsetParent.\n---\n### **Slots:**\n - _default_ - Dragbox content.","doc-url":"","attributes":[{"name":"x","description":"Position x.","value":{"type":"string"}},{"name":"y","description":"Position y.","value":{"type":"string"}}],"slots":[{"name":"","description":"Dragbox content."}],"events":[],"js":{"properties":[{"name":"_offsetParent","description":"Offset parent or document.body.","type":"Element"},{"name":"x","description":"Position x.","type":"string"},{"name":"y","description":"Position y.","type":"string"}],"events":[]}},{"name":"godown-divider","description":"Divider similar to `<hr>`.\n---\n","doc-url":"","attributes":[{"name":"vertical","description":"Whether to display the divider vertically.","value":{"type":"boolean","default":"false"}}],"events":[],"js":{"properties":[{"name":"vertical","description":"Whether to display the divider vertically.","type":"boolean"}],"events":[]}},{"name":"godown-dialog","description":"Dialog similar to `<dialog>`.\nLike dialog, it listens for submit events and closes itself when the target method is \"dialog\".\nIt listens for the keydown event and also closes itself when the key contained in the key is pressed.\n---\n### **Events:**\n - **change** - Fires when the open changes.","doc-url":"","attributes":[{"name":"modal","description":"Indicates whether the dialog should be displayed as a modal.","value":{"type":"boolean"}},{"name":"key","description":"The keys will close the dialog when pressed.","value":{"type":"string","default":"\"Escape\""}},{"name":"open","description":"Open the content.","value":{"type":"boolean","default":"false"}}],"events":[{"name":"change","description":"Fires when the open changes."}],"js":{"properties":[{"name":"modal","description":"Indicates whether the dialog should be displayed as a modal.","type":"boolean"},{"name":"key","description":"The keys will close the dialog when pressed.","type":"string"},{"name":"open","description":"Open the content.","type":"boolean"}],"events":[{"name":"change","description":"Fires when the open changes."}]}},{"name":"godown-details","description":"Details similar to `<details>`.\n---\n### **Events:**\n - **change** - Fires when the open changes.\n### **Slots:**\n - **summary** - Details summary if no `summary` is provided.\n- _default_ - Details content.","doc-url":"","attributes":[{"name":"float","description":"Determines whether the details component should float.","value":{"type":"boolean","default":"false"}},{"name":"fill","description":"Determines whether the details component should fill the available space.","value":{"type":"boolean","default":"false"}},{"name":"summary","description":"The summary text to display in the details component.","value":{"type":"string","default":"\"\""}},{"name":"open","description":"Open the content.","value":{"type":"boolean","default":"false"}}],"slots":[{"name":"summary","description":"Details summary if no `summary` is provided."},{"name":"","description":"Details content."}],"events":[{"name":"change","description":"Fires when the open changes."}],"js":{"properties":[{"name":"float","description":"Determines whether the details component should float.","type":"boolean"},{"name":"fill","description":"Determines whether the details component should fill the available space.","type":"boolean"},{"name":"summary","description":"The summary text to display in the details component.","type":"string"},{"name":"open","description":"Open the content.","type":"boolean"}],"events":[{"name":"change","description":"Fires when the open changes."}]}},{"name":"godown-carousel","description":"Carousel make the content display as a carousel.\nWhen this component is `firstUpdated`,\nclone the first and last element and make the matching element visible when switching index.\n---\n### **Events:**\n - **change** - Fires when the index changes.\n### **Slots:**\n - _default_ - Carousel items, should maintain the same size.","doc-url":"","attributes":[{"name":"index","description":"The index of the current item.","value":{"type":"number","default":"0"}},{"name":"autoChange","description":"The duration of the transition.","value":{"type":"number","default":"0"}}],"slots":[{"name":"","description":"Carousel items, should maintain the same size."}],"events":[{"name":"change","description":"Fires when the index changes."}],"js":{"properties":[{"name":"index","description":"The index of the current item.","type":"number"},{"name":"autoChange","description":"The duration of the transition.","type":"number"},{"name":"intervalID","type":"number"}],"events":[{"name":"change","description":"Fires when the index changes."}]}},{"name":"godown-card","description":"Card renders a card.\nThis may be similar to Layout,\nbut it needs to be specified to enable header and footer.\n---\n### **Slots:**\n - _default_ - The main content of the card.\n- **header** - The header of the card.\n- **footer** - The footer of the card.","doc-url":"","attributes":[{"name":"footer","description":"Whether to display the header.","value":{"type":"boolean","default":"false"}},{"name":"header","description":"Whether to display the footer.","value":{"type":"boolean","default":"false"}}],"slots":[{"name":"","description":"The main content of the card."},{"name":"header","description":"The header of the card."},{"name":"footer","description":"The footer of the card."}],"events":[],"js":{"properties":[{"name":"footer","description":"Whether to display the header.","type":"boolean"},{"name":"header","description":"Whether to display the footer.","type":"boolean"}],"events":[]}},{"name":"godown-button","description":"Button renders a button.\nCreate modal animation upon clicking.\nAvailable colors (background): none, black, gray, white, blue, green, red, orange, pink, purple, yellow, teal.\nDefault color is `black`.\nSet the color to `none` to prevent applying styles.\n---\n### **Slots:**\n - _default_ - The content of the button.","doc-url":"","attributes":[{"name":"plain","description":"If true, remove gradient, modal animation, focus scale.","value":{"type":"boolean","default":"false"}},{"name":"disabled","description":"Whether this element is disabled or not.","value":{"type":"boolean","default":"false"}},{"name":"ghost","description":"Whether this element should be rendered as a \"ghost\" button.\nA ghost button is a button with a transparent background and a border.","value":{"type":"boolean","default":"false"}},{"name":"active","description":"Whether this element is active or not.","value":{"type":"boolean","default":"false"}},{"name":"round","description":"Display rounded.","value":{"type":"boolean","default":"false"}},{"name":"color","description":"The primary color.","value":{"type":"Colors","default":"\"black\""}},{"name":"content","description":"Content text.","value":{"type":"string"}}],"slots":[{"name":"","description":"The content of the button."}],"events":[],"js":{"properties":[{"name":"plain","description":"If true, remove gradient, modal animation, focus scale.","type":"boolean"},{"name":"disabled","description":"Whether this element is disabled or not.","type":"boolean"},{"name":"ghost","description":"Whether this element should be rendered as a \"ghost\" button.\nA ghost button is a button with a transparent background and a border.","type":"boolean"},{"name":"active","description":"Whether this element is active or not.","type":"boolean"},{"name":"round","description":"Display rounded.","type":"boolean"},{"name":"color","description":"The primary color.","type":"Colors"},{"name":"content","description":"Content text.","type":"string"}],"events":[]}},{"name":"godown-breath","description":"Breath render the text with a breathing effect.\nDynamically generate a breathing effect based on the length of the split text.\nIf there is not enough CSS variable, overrun elements will use the.\ngodown was a css library in its earliest days,\nand this is the component version of its first effect.\nInspired by Vercel home page (2023).\n---\n### **Slots:**\n - _default_ - Breathing parts.","doc-url":"","attributes":[{"name":"content","description":"Strings or array of strings,\nif array, divided each element into chunks,\notherwise split strings by whitespace.","value":{"type":"string | string[]"}},{"name":"duration","description":"Effect duration.","value":{"type":"number"}}],"slots":[{"name":"","description":"Breathing parts."}],"events":[],"js":{"properties":[{"name":"content","description":"Strings or array of strings,\nif array, divided each element into chunks,\notherwise split strings by whitespace.","type":"string | string[]"},{"name":"duration","description":"Effect duration.","type":"number"}],"events":[]}},{"name":"godown-badge","description":"Badge renders a badge.\n---\n### **Slots:**\n - _default_ - Badge content.","doc-url":"","attributes":[{"name":"position","description":"The position of the badge relative to its parent element.\nPossible values are `\"top-left\"`, `\"top-right\"`, `\"bottom-left\"`, and `\"bottom-right\"`.","value":{"type":"DirectionCorner","default":"\"top-right\""}},{"name":"value","value":{"type":"number","default":"0"}},{"name":"dot","description":"If `true`, render a dot badge.","value":{"type":"boolean","default":"false"}},{"name":"max","description":"The maximum value that can be displayed in the badge\nValues greater than this will be displayed as `max+` by default.","value":{"type":"number","default":"99"}}],"slots":[{"name":"","description":"Badge content."}],"events":[],"js":{"properties":[{"name":"position","description":"The position of the badge relative to its parent element.\nPossible values are `\"top-left\"`, `\"top-right\"`, `\"bottom-left\"`, and `\"bottom-right\"`.","type":"DirectionCorner"},{"name":"value","type":"number"},{"name":"dot","description":"If `true`, render a dot badge.","type":"boolean"},{"name":"max","description":"The maximum value that can be displayed in the badge\nValues greater than this will be displayed as `max+` by default.","type":"number"}],"events":[]}},{"name":"godown-avatar","description":"Avatar renders a avatar.\nRenders as an image if it has a src property,\notherwise falls back to name or nameless slot.\n---\n### **Slots:**\n - _default_ - Display content if no `src` or `name` provided.","doc-url":"","attributes":[{"name":"src","description":"The `src` property specifies the URL of the avatar image.\nIf `src` is not provided, the component will display the `name` property instead.","value":{"type":"string | undefined | null"}},{"name":"name","description":"Specifies the name or initials to display if no `src` is provided","value":{"type":"string","default":"\"\""}},{"name":"round","description":"If `true`, will make the avatar display as a circle.","value":{"type":"boolean","default":"false"}}],"slots":[{"name":"","description":"Display content if no `src` or `name` provided."}],"events":[],"js":{"properties":[{"name":"src","description":"The `src` property specifies the URL of the avatar image.\nIf `src` is not provided, the component will display the `name` property instead.","type":"string | undefined | null"},{"name":"name","description":"Specifies the name or initials to display if no `src` is provided","type":"string"},{"name":"round","description":"If `true`, will make the avatar display as a circle.","type":"boolean"}],"events":[]}},{"name":"godown-alert","description":"Alert renders a alert.\nColor defaults to blue.\n---\n### **Events:**\n - **close** - Fires when the alert is closed.\n### **Slots:**\n - _default_ - Alert content.\n- **title** - Alert title.\n- **icon** - Alert icon.","doc-url":"","attributes":[{"name":"call","description":"If it is a legal value, the icon and preset color will be rendered.","value":{"type":"\"tip\" | \"success\" | \"info\" | \"warning\" | \"danger\" | \"error\" | \"help\" | \"deprecated\""}},{"name":"color","description":"The tone of the component.\nOverrides the color of the call.","value":{"type":"| \"white\"\n | \"black\"\n | \"gray\"\n | \"green\"\n | \"teal\"\n | \"blue\"\n | \"red\"\n | \"purple\"\n | \"orange\"\n | \"yellow\"\n | \"pink\"\n | \"none\"","default":"\"blue\""}},{"name":"autoclose","description":"Close delay, if 0, it will not be closed automatically.","value":{"type":"number","default":"0"}},{"name":"title","description":"The title is bold and the icon height is the same as it.","value":{"type":"string"}},{"name":"content","description":"Content, if zero value, will be rendered as an unnamed slot.","value":{"type":"string"}},{"name":"hideClose","description":"Set true to hide the close button.\nThe behavior may change due to the variant property.","value":{"type":"boolean","default":"false"}},{"name":"variant","description":"Alert variant, if set to `blockquote`, the alert will be rendered as a blockquote.\nIf variant is `\"blockquote\"`, hide the close button.","value":{"type":"\"blockquote\" | \"dark\"","default":"\"dark\""}}],"slots":[{"name":"","description":"Alert content."},{"name":"title","description":"Alert title."},{"name":"icon","description":"Alert icon."}],"events":[{"name":"close","description":"Fires when the alert is closed."}],"js":{"properties":[{"name":"call","description":"If it is a legal value, the icon and preset color will be rendered.","type":"\"tip\" | \"success\" | \"info\" | \"warning\" | \"danger\" | \"error\" | \"help\" | \"deprecated\""},{"name":"color","description":"The tone of the component.\nOverrides the color of the call.","type":"| \"white\"\n | \"black\"\n | \"gray\"\n | \"green\"\n | \"teal\"\n | \"blue\"\n | \"red\"\n | \"purple\"\n | \"orange\"\n | \"yellow\"\n | \"pink\"\n | \"none\""},{"name":"autoclose","description":"Close delay, if 0, it will not be closed automatically.","type":"number"},{"name":"title","description":"The title is bold and the icon height is the same as it.","type":"string"},{"name":"content","description":"Content, if zero value, will be rendered as an unnamed slot.","type":"string"},{"name":"hideClose","description":"Set true to hide the close button.\nThe behavior may change due to the variant property.","type":"boolean"},{"name":"variant","description":"Alert variant, if set to `blockquote`, the alert will be rendered as a blockquote.\nIf variant is `\"blockquote\"`, hide the close button.","type":"\"blockquote\" | \"dark\""}],"events":[{"name":"close","description":"Fires when the alert is closed."}]}}]},"css":{"properties":[],"pseudo-elements":[{"name":"part(root)","description":"The root element."},{"name":"part(item)","description":"The tab items."},{"name":"part(indicator)","description":"The indicator."},{"name":"part(selected)","description":"The selected tab item."},{"name":"part(hover)","description":"The hovered tab item."}]}}}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../src/components/alert.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,cAAc,EAAa,MAAM,KAAK,CAAC;AAGrD,OAAO,EAAE,WAAW,EAA8B,MAAM,yBAAyB,CAAC;AA0DlF;;;;;;;;;;GAUG;AACH,cAEM,KAAM,SAAQ,WAAW;IAC7B,OAAO,CAAC,SAAS,CAYd;IAEH;;OAEG;IAEH,IAAI,EAAE,KAAK,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,YAAY,CAAC;IAE1F;;;OAGG;IAEH,KAAK,EACD,OAAO,GACP,OAAO,GACP,MAAM,GACN,OAAO,GACP,MAAM,GACN,MAAM,GACN,KAAK,GACL,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,MAAM,GACN,MAAM,CAAU;IAEpB;;OAEG;IAEH,SAAS,SAAK;IAEd;;OAEG;IAEH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IAEH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;;OAIG;IAEH,SAAS,UAAS;IAElB;;;;OAIG;IAEH,OAAO,EAAE,YAAY,GAAG,MAAM,CAAU;IAExC,SAAS,CAAC,MAAM,IAAI,cAAc,CAAC,CAAC,CAAC;IAOrC,KAAK,IAAI,IAAI;IAKb,SAAS,CAAC,YAAY,IAAI,IAAI;IAM9B,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,KAAK,CAAC,GAAG,KAAK;CAM/D;AAED,eAAe,KAAK,CAAC;AACrB,OAAO,EAAE,KAAK,EAAE,CAAC"}
|
package/components/alert.js
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
import{__decorate as o}from"tslib";import{godown as r,styles as t,StyleController as e,joinRules as i,htmlSlot as c,attr as l}from"@godown/element";import s from"@godown/f7-icon/icons/checkmark-alt-circle.js";import n from"@godown/f7-icon/icons/exclamationmark-circle.js";import a from"@godown/f7-icon/icons/info-circle.js";import d from"@godown/f7-icon/icons/lightbulb.js";import p from"@godown/f7-icon/icons/question-circle.js";import g from"@godown/f7-icon/icons/slash-circle.js";import h from"@godown/f7-icon/icons/xmark-circle.js";import m from"@godown/f7-icon/icons/xmark.js";import{css as u,html as b}from"lit";import{property as v}from"lit/decorators.js";import{scopePrefix as f,cssGlobalVars as k,GlobalStyle as w}from"../core/global-style.js";const y="alert",$=f(y),j=o=>[k._colors[o][5],k._colors[o][9]],_={green:j("green"),blue:j("blue"),orange:j("orange"),red:j("red"),yellow:j("yellow"),purple:j("purple"),teal:j("teal"),pink:j("pink"),gray:[k._colors.lightgray[5],k._colors.darkgray[5]],white:[k._colors.lightgray[2],k._colors.darkgray[7]],black:[k._colors.darkgray[8],k._colors.lightgray[5]]},C={tip:{color:"teal",icon:d},success:{color:"green",icon:s},info:{color:"blue",icon:a},warning:{color:"orange",icon:n},danger:{color:"red",icon:h},error:{color:"red",icon:h},help:{color:"purple",icon:p},deprecated:{color:"gray",icon:g}};let q=class Alert extends w{constructor(){super(...arguments),this.__colorSC=new e(this,(()=>{const o=C[this.call]?.color||this.color;if(o in _){const[r,t]=_[o];return i({":host":[[`${$}--color`,`var(${r})`],[`${$}--background`,`var(${t})`]]})}return null})),this.color="blue",this.autoclose=0,this.hideClose=!1,this.variant="dark"}render(){const o=this.call?C[this.call].icon():c("icon");return b`<div part="root" ${l(this.observedRecord)}><div part="icon" class="start">${o}</div><div part="content"><strong part="title">${this.title||c("title")}</strong> ${this.content||c()}</div>${this.hideClose||"blockquote"===this.variant?"":b`<div part="icon close" class="end" tabindex="0" @click="${this.close}">${m()}</div>`}</div>`}close(){this.remove(),this.dispatchCustomEvent("close",void 0,{bubbles:!0})}firstUpdated(){this.autoclose&&this.timeouts.add(setTimeout((()=>this.close()),this.autoclose))}static alert(o,r){const t=new this;return Object.assign(t,r),o.appendChild(t),t}};o([v()],q.prototype,"call",void 0),o([v()],q.prototype,"color",void 0),o([v({type:Number})],q.prototype,"autoclose",void 0),o([v()],q.prototype,"title",void 0),o([v()],q.prototype,"content",void 0),o([v({type:Boolean})],q.prototype,"hideClose",void 0),o([v()],q.prototype,"variant",void 0),q=o([r(y),t(u`:host{${$}--border-width:.075em;${$}--blockquote-width:.2em;${$}--blockquote-background:transparent;${$}--gap:.5em}:host,:where(:host([contents]) [part=root]){display:block}[part=root]{align-items:center;background:var(${$}--background);border-color:currentColor;border-radius:inherit;border-style:solid;border-width:var(${$}--border-width);color:var(${$}--color,currentColor);display:grid;grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr;padding:var(${$}--gap)}[variant=blockquote]{background:var(${$}--blockquote-background);border-radius:0;border-width:0;border-left-width:var(${$}--blockquote-width)}[part~=icon]{align-items:center;display:grid;height:2em}.start svg{margin-inline-end:var(${$}--gap)}.end svg{margin-inline-start:var(${$}--gap)}svg{height:1.25em;width:1.25em}[part=content]{grid-row:span 2/span 2}`)],q);var x=q;export{q as Alert,x as default};
|
2
|
-
//# sourceMappingURL=alert.js.map
|
package/components/alert.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"alert.js","sources":["../src/components/alert.ts"],"sourcesContent":null,"names":["protoName","cssScope","scopePrefix","genDark","key","cssGlobalVars","_colors","colorDetails","green","blue","orange","red","yellow","purple","teal","pink","gray","lightgray","darkgray","white","black","calls","tip","color","icon","iconLightbulb","success","iconCheckAltCircle","info","iconInfoCircle","warning","iconExclamationCircle","danger","iconXmarkCircle","error","help","iconQuestionCircle","deprecated","iconSlashCircle","Alert","GlobalStyle","constructor","this","__colorSC","StyleController","call","fg","bg","joinRules","autoclose","hideClose","variant","render","htmlSlot","html","attr","observedRecord","title","content","close","iconXmark","remove","dispatchCustomEvent","undefined","bubbles","firstUpdated","timeouts","add","setTimeout","alert","root","option","ai","Object","assign","appendChild","__decorate","property","prototype","type","Number","Boolean","godown","styles","css","Alert$1"],"mappings":"ivBAcA,MAAMA,EAAY,QACZC,EAAWC,EAAYF,GAEvBG,EAAWC,GACR,CAACC,EAAcC,QAAQF,GAAK,GAAIC,EAAcC,QAAQF,GAAK,IAG9DG,EAAe,CACnBC,MAAOL,EAAQ,SACfM,KAAMN,EAAQ,QACdO,OAAQP,EAAQ,UAChBQ,IAAKR,EAAQ,OACbS,OAAQT,EAAQ,UAChBU,OAAQV,EAAQ,UAChBW,KAAMX,EAAQ,QACdY,KAAMZ,EAAQ,QACda,KAAM,CAACX,EAAcC,QAAQW,UAAU,GAAIZ,EAAcC,QAAQY,SAAS,IAC1EC,MAAO,CAACd,EAAcC,QAAQW,UAAU,GAAIZ,EAAcC,QAAQY,SAAS,IAC3EE,MAAO,CAACf,EAAcC,QAAQY,SAAS,GAAIb,EAAcC,QAAQW,UAAU,KAGvEI,EAAQ,CACZC,IAAK,CACHC,MAAO,OACPC,KAAMC,GAERC,QAAS,CACPH,MAAO,QACPC,KAAMG,GAERC,KAAM,CACJL,MAAO,OACPC,KAAMK,GAERC,QAAS,CACPP,MAAO,SACPC,KAAMO,GAERC,OAAQ,CACNT,MA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AAA,GAMnBF,EAAA,CADCC,EAAS,CAAEE,KAAMC,UACLzC,EAAAuC,UAAA,iBAAA,GAMbF,EAAA,CADCC,KACYtC,EAAAuC,UAAA,aAAA,GAMbF,EAAA,CADCC,KACctC,EAAAuC,UAAA,eAAA,GAQfF,EAAA,CADCC,EAAS,CAAEE,KAAME,WACD1C,EAAAuC,UAAA,iBAAA,GAQjBF,EAAA,CADCC,KACsCtC,EAAAuC,UAAA,eAAA,GAxEnCvC,EAAKqC,EAAA,CAFVM,EAAOlF,GACPmF,EAAOC,CAAG,SAASnF,0BAAiCA,4BAAmCA,wCAA+CA,uHAA8HA,sGAA6GA,8BAAqCA,mHAA0HA,+CAAsDA,kFAAyFA,iHAAwHA,4CAAmDA,kFACr0BsC,GA8HN,IAAA8C,EAAe9C"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../src/components/avatar.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,cAAc,EAAa,MAAM,KAAK,CAAC;AAGrD,OAAO,EAAE,WAAW,EAAiB,MAAM,yBAAyB,CAAC;AAIrE;;;;;;;;GAQG;AACH,cAEM,MAAO,SAAQ,WAAW;IAC9B;;;OAGG;IAEH,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAAC;IAE/B;;OAEG;IAEH,IAAI,SAAM;IAEV;;OAEG;IAEH,KAAK,UAAS;IAEd,SAAS,CAAC,MAAM,IAAI,cAAc,CAAC,CAAC,CAAC;IAIrC,SAAS,CAAC,aAAa,IAAI,cAAc,CAAC,CAAC,CAAC;IAU5C,UAAU,IAAI,MAAM;IAIpB,SAAS,CAAC,YAAY,IAAI,IAAI;CAG/B;AAED,eAAe,MAAM,CAAC;AACtB,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
package/components/avatar.js
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
import{__decorate as r}from"tslib";import{godown as t,styles as e,attr as o,omit as i,htmlSlot as a}from"@godown/element";import{css as s,html as n}from"lit";import{property as d}from"lit/decorators.js";import{cssGlobalVars as h,GlobalStyle as m}from"../core/global-style.js";let p=class Avatar extends m{constructor(){super(...arguments),this.name="",this.round=!1}render(){return n`<div part="root" ${o(i(this.observedRecord,"src"))}>${this._renderAvatar()}</div>`}_renderAvatar(){return this.src?n`<img part="image" src="${this.src}" alt="${this.name}" @error="${this._handleError}">`:this.name?n`<span part="name">${this.formatName()}</span>`:a()}formatName(){return this.name}_handleError(){this.src=void 0}};r([d()],p.prototype,"src",void 0),r([d()],p.prototype,"name",void 0),r([d({type:Boolean})],p.prototype,"round",void 0),p=r([t("avatar"),e(s`:host{background:var(${h.passive});height:2em;overflow:hidden;vertical-align:bottom;width:2em}:host,[part=root]{display:inline-flex}:host([contents]) [part=root]{display:inline-flex;height:inherit;width:inherit}:host([round]){border-radius:50%}[part=image]{height:100%;object-fit:cover;width:100%}[part=root]{align-items:center;border-radius:inherit;justify-content:center;position:relative}`)],p);var l=p;export{p as Avatar,l as default};
|
2
|
-
//# sourceMappingURL=avatar.js.map
|
package/components/avatar.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"avatar.js","sources":["../src/components/avatar.ts"],"sourcesContent":null,"names":["Avatar","GlobalStyle","constructor","this","name","round","render","html","attr","omit","observedRecord","_renderAvatar","src","_handleError","formatName","htmlSlot","undefined","__decorate","property","prototype","type","Boolean","godown","styles","css","cssGlobalVars","passive","Avatar$1"],"mappings":"oRAmBA,IAAMA,EAAN,MAAMA,eAAeC,EAArB,WAAAC,uBAYEC,KAAIC,KAAG,GAMPD,KAAKE,OAAG,EAEE,MAAAC,GACR,OAAOC,CAAI,oBAGLC,EAAKC,EAAKN,KAAKO,eAAgB,WAE/BP,KAAKQ,wBAKH,aAAAA,GACR,OAAIR,KAAKS,IACAL,CAAI,0BAGAJ,KAAKS,aACLT,KAAKC,iBACHD,KAAKU,iBAIhBV,KAAKC,KACAG,CAAI,qBACWJ,KAAKW,sBAGtBC,IAGT,UAAAD,GACE,OAAOX,KAAKC,KAGJ,YAAAS,GACRV,KAAKS,SAAMI,IAjDbC,EAAA,CADCC,KAC6BlB,EAAAmB,UAAA,WAAA,GAM9BF,EAAA,CADCC,KACQlB,EAAAmB,UAAA,YAAA,GAMTF,EAAA,CADCC,EAAS,CAAEE,KAAMC,WACLrB,EAAAmB,UAAA,aAAA,GAlBTnB,EAAMiB,EAAA,CAFXK,EAXiB,UAYjBC,EAAOC,CAAG,wBAAwBC,EAAcC,kXAC3C1B,GA2DN,IAAA2B,EAAe3B"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../src/components/badge.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,cAAc,EAAa,MAAM,KAAK,CAAC;AAGrD,OAAO,EAAE,WAAW,EAA8B,MAAM,yBAAyB,CAAC;AAClF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAK5D;;;;;GAKG;AACH,cAEM,KAAM,SAAQ,WAAW;IAC7B;;;OAGG;IAEH,QAAQ,EAAE,eAAe,CAAe;IAGxC,KAAK,SAAK;IAEV;;OAEG;IAEH,GAAG,UAAS;IAEZ;;;OAGG;IAEH,GAAG,SAAM;IAET,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAIlC,MAAM,IAAI,cAAc,CAAC,CAAC,CAAC;CAK5B;AAED,eAAe,KAAK,CAAC;AACrB,OAAO,EAAE,KAAK,EAAE,CAAC"}
|
package/components/badge.js
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
import{__decorate as t}from"tslib";import{godown as o,styles as e,attr as r,htmlSlot as a}from"@godown/element";import{css as i,html as s}from"lit";import{property as p}from"lit/decorators.js";import{scopePrefix as d,cssGlobalVars as n,GlobalStyle as f}from"../core/global-style.js";const l="badge",c=d(l);let m=class Badge extends f{constructor(){super(...arguments),this.position="top-right",this.value=0,this.dot=!1,this.max=99}formatValue(t){return t>this.max?this.max+"+":t+""}render(){return s`<div part="root" ${r(this.observedRecord)}>${a()} ${this.value||this.dot?s`<div part="badge">${this.dot?"":this.formatValue(this.value)}</div>`:""}</div>`}};t([p()],m.prototype,"position",void 0),t([p({type:Number})],m.prototype,"value",void 0),t([p({type:Boolean})],m.prototype,"dot",void 0),t([p({type:Number})],m.prototype,"max",void 0),m=t([o(l),e(i`:host{${c}--background:var(${n.active});${c}--offset:0%;${c}--offset-x:var(${c}--offset);${c}--offset-y:var(${c}--offset)}:host,:host([contents]) [part=root]{display:inline-block}[part=root]{position:relative}[part=badge]{background:var(${c}--background);border-radius:calc(infinity*1px);font-size:75%;padding:0 .5em;position:absolute;transform:translate(-50%,-50%);-webkit-user-select:none;user-select:none}[part=badge]:empty{border-radius:50%;font-size:100%;height:.5em;padding:0;width:.5em}[position^=top] [part=badge]{top:calc(var(${c}--offset-y))}[position$=right] [part=badge]{left:calc(100% - var(${c}--offset-x))}[position^=bottom] [part=badge]{top:calc(100% - var(${c}--offset-y))}[position$=left] [part=badge]{left:calc(var(${c}--offset-x))}`)],m);var v=m;export{m as Badge,v as default};
|
2
|
-
//# sourceMappingURL=badge.js.map
|
package/components/badge.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"badge.js","sources":["../src/components/badge.ts"],"sourcesContent":null,"names":["protoName","cssScope","scopePrefix","Badge","GlobalStyle","constructor","this","position","value","dot","max","formatValue","render","html","attr","observedRecord","htmlSlot","__decorate","property","prototype","type","Number","Boolean","godown","styles","css","cssGlobalVars","active","Badge$1"],"mappings":"2RAOA,MAAMA,EAAY,QACZC,EAAWC,EAAYF,GAU7B,IAAMG,EAAN,MAAMA,cAAcC,EAApB,WAAAC,uBAMEC,KAAQC,SAAoB,YAG5BD,KAAKE,MAAG,EAMRF,KAAGG,KAAG,EAONH,KAAGI,IAAG,GAEN,WAAAC,CAAYH,GACV,OAAOA,EAAQF,KAAKI,IAAMJ,KAAKI,IAAM,IAAMF,E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AAG,MAAM;CAa7C;AAED,eAAe,MAAM,CAAC;AACtB,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
package/components/breath.js
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
import{__decorate as t}from"tslib";import{godown as o,styles as r,attr as e,htmlStyle as n}from"@godown/element";import{css as i,html as a}from"lit";import{property as l}from"lit/decorators.js";import{scopePrefix as s,cssGlobalVars as c,GlobalStyle as p}from"../core/global-style.js";const d="breath",$=s(d);let m=class Breath extends p{render(){const t=this.getTexts();return a`<div part="root" ${e(this.observedRecord)}>${[t.map(this._renderText),n(this._computeStyle(t.length))]}</div>`}_renderText(t){return a`<span class="rel"><span class="nocolor">${t}</span> <span class="colorful">${t}</span></span>`}getTexts(){return Array.isArray(this.content)?this.content:(this.content||this.textContent).split(/\s+/).filter((t=>t))}_computeStyle(t){const o=50/t,r=this.duration||1e3*(2*t+2);let e="";for(let o=1;o<=t;o++){e+=`.rel:nth-child(${o}) .colorful{animation-delay:${-r/t*(t-o+1)}ms;background:var(${$}--${o},var(${$}--${(o-1)%3+1}));}`}return`.colorful{animation-duration:${r}ms;}@keyframes colorfulN{0%,${3*o}%{opacity:0;}${o}%,${2*o}%{opacity:1;}}${e}`}};t([l()],m.prototype,"content",void 0),t([l({type:Number})],m.prototype,"duration",void 0),m=t([o(d),r(i`:host{${$}--deg:60deg;${$}--1-1:var(${c._colors.red[5]});${$}--1-2:var(${c._colors.yellow[5]});${$}--2-1:var(${c._colors.green[5]});${$}--2-2:var(${c._colors.purple[5]});${$}--3-1:var(${c._colors.blue[5]});${$}--3-2:var(${c._colors.pink[5]});${$}--1:linear-gradient(var(${$}--deg),var(${$}--1-1),var(${$}--1-2));${$}--2:linear-gradient(var(${$}--deg),var(${$}--2-1),var(${$}--2-2));${$}--3:linear-gradient(var(${$}--deg),var(${$}--3-1),var(${$}--3-2))}`,i`:host{align-items:center;direction:ltr;font-size:2em;margin:auto;width:-moz-fit-content;width:fit-content}:host,:host([contents]) [part=root]{display:flex}[part=root]{display:contents}::selection{background:none}.rel{font-size:inherit;font-weight:800;letter-spacing:-.05em;position:relative}`,i`.colorful,.nocolor{animation-iteration-count:infinite;-webkit-background-clip:text!important;background-clip:text!important;box-sizing:border-box;color:transparent;display:inline-block;padding:0 .05em}.colorful{animation-name:colorfulN;opacity:0}.nocolor{background:var(${c.clipBackground});position:absolute;top:0}`)],m);var u=m;export{m as Breath,u as default};
|
2
|
-
//# sourceMappingURL=breath.js.map
|
package/components/breath.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"breath.js","sources":["../src/components/breath.ts"],"sourcesContent":null,"names":["defineName","cssScope","scopePrefix","Breath","GlobalStyle","render","texts","this","getTexts","html","attr","observedRecord","map","_renderText","htmlStyle","_computeStyle","length","text","Array","isArray","content","textContent","split","filter","x","len","gap","duration","style1","number","__decorate","property","prototype","type","Number","godown","styles","css","cssGlobalVars","_colors","red","yellow","green","purple","blue","pink","clipBackground","Breath$1"],"mappings":"4RAMA,MAAMA,EAAa,SACbC,EAAWC,EAAYF,GAuB7B,IAAMG,EAAN,MAAMA,eAAeC,EAeT,MAAAC,GACR,MAAMC,EAAQC,KAAKC,WACnB,OAAOC,CAAI,oBAGLC,EAAKH,KAAKI,mBAEV,CAACL,EAAMM,IAAIL,KAAKM,aAAcC,EAAUP,KAAKQ,cAAcT,EAAMU,kBAK/D,WAAAH,CAAYI,GACpB,OAAOR,CAAI,2CAEiBQ,mCACCA,kBAKrB,QAAAT,GACR,OAAOU,MAAMC,QAAQZ,KAAKa,SACtBb,KAAKa,SACJb,KAAKa,SAAWb,KAAKc,aAAaC,MAAM,OAAOC,QAAQC,GAAMA,IAG1D,aAAAT,CAAcU,GACtB,MAAMC,EAAM,GAAUD,EAChBE,EAAWpB,KAAKoB,UAA4B,KAAT,EAANF,EAAU,GAC7C,IAAIG,EAAS,GACb,IAAK,IAAIC,EAAS,EAAGA,GAAUJ,EAAKI,IAAU,CAG5CD,GAAU,kBAAkBC,iCAF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,UAAS;IAEd;;OAEG;IAEH,QAAQ,UAAS;IAEjB;;;OAGG;IAEH,KAAK,UAAS;IAEd;;OAEG;IAEH,MAAM,UAAS;IAEf;;OAEG;IAEH,KAAK,UAAS;IAEd;;OAEG;IAEH,KAAK,EAAE,MAAM,CAAW;IAExB;;OAEG;IAEH,OAAO,EAAE,MAAM,CAAC;IAGhB,SAAS,CAAC,UAAU,EAAE,WAAW,CAAC;IAElC,SAAS,CAAC,KAAK,EAAE,WAAW,CAAC;IAE7B,SAAS,CAAC,MAAM,IAAI,cAAc,CAAC,CAAC,CAAC;IAIrC,KAAK,IAAI,IAAI;IAQb,IAAI,IAAI,IAAI;IAKZ,iBAAiB,IAAI,IAAI;IAKzB,SAAS,CAAC,YAAY,CAAC,CAAC,EAAE,UAAU,GAAG,IAAI;IAW3C,SAAS,CAAC,YAAY,CAAC,CAAC,EAAE,UAAU,GAAG,IAAI;IAc3C,SAAS,IAAI,MAAM;CAGpB;AAED,eAAe,MAAM,CAAC;AACtB,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
package/components/button.js
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
import{__decorate as o}from"tslib";import{part as t,godown as r,styles as e,StyleController as a,joinRules as i,attr as n,htmlSlot as l}from"@godown/element";import{css as s,html as d}from"lit";import{property as c}from"lit/decorators.js";import{scopePrefix as p,cssGlobalVars as h,GlobalStyle as g}from"../core/global-style.js";const u="button",v=p(u),y=h.white,b=h.black,m={black:[y,h._colors.darkgray[7],h._colors.darkgray[5]],gray:[y,h._colors.darkgray[1],h._colors.lightgray[8]],white:[b,h._colors.lightgray[3],h._colors.lightgray[0]],blue:[y,h._colors.blue[6],h._colors.blue[4]],green:[y,h._colors.green[6],h._colors.green[4]],red:[y,h._colors.red[6],h._colors.red[4]],orange:[y,h._colors.orange[6],h._colors.orange[4]],pink:[y,h._colors.pink[6],h._colors.pink[4]],purple:[y,h._colors.purple[6],h._colors.purple[4]],yellow:[b,h._colors.yellow[6],h._colors.yellow[4]],teal:[y,h._colors.teal[6],h._colors.teal[4]]};let $=class Button extends g{constructor(){super(...arguments),this.__colorSC=new a(this,(()=>{const o=this.nextColor();if(o in m){const[t,r,e]=m[o];return i({":host":[[`${v}--color`,`var(${t})`],[`${v}--background`,`var(${r})`],[`${v}--gradients`,`var(${e})`]]})}return null})),this.plain=!1,this.disabled=!1,this.ghost=!1,this.active=!1,this.round=!1,this.color="black"}render(){return d`<div part="root" ${n(this.observedRecord)}>${this.content||l()} <span part="modal-root"></span></div>`}focus(){this.disabled||(this.active=!0,super.focus())}blur(){this.active=!1,super.blur()}connectedCallback(){super.connectedCallback(),this.events.add(this,"click",this._handelClick,!0)}_handelClick(o){if(this.disabled)return o.stopPropagation(),void o.preventDefault();this.plain||this._handleModal(o)}_handleModal(o){const t=document.createElement("i"),{width:r,height:e}=this.getBoundingClientRect(),{x:a,y:i}=this._root.getBoundingClientRect(),n=2*Math.sqrt(e**2+r**2)+"px";t.style.height=n,t.style.width=n,t.style.left=o.x-a+"px",t.style.top=o.y-i+"px",t.style.animationName="kf",this._modalRoot.appendChild(t),t.addEventListener("animationend",(()=>t.remove()),{once:!0})}nextColor(){return this.color}};o([c({type:Boolean,reflect:!0})],$.prototype,"plain",void 0),o([c({type:Boolean,reflect:!0})],$.prototype,"disabled",void 0),o([c({type:Boolean,reflect:!0})],$.prototype,"ghost",void 0),o([c({type:Boolean,reflect:!0})],$.prototype,"active",void 0),o([c({type:Boolean,reflect:!0})],$.prototype,"round",void 0),o([c({reflect:!0})],$.prototype,"color",void 0),o([c()],$.prototype,"content",void 0),o([t("modal-root")],$.prototype,"_modalRoot",void 0),o([t("root")],$.prototype,"_root",void 0),$=o([r(u),e(s`:host(:not([disabled]):active){transform:scale(var(${v}--focus-scale))}:host([round]){border-radius:calc(infinity*1px)}:host([disabled]){cursor:not-allowed;filter:brightness(.85)}:host([ghost]){${v}--modal-background:var(${v}--ghost-color);background:transparent;box-shadow:inset 0 0 0 var(${v}--ghost-width) var(${v}--ghost-color);color:var(${v}--ghost-color)}:host([plain]){${v}--gradients:unset;${v}--focus-scale:unset}`,s`:host{${v}--padding-x:.8em;${v}--padding-y:calc(var(${v}--padding-x)/4);${v}--padding:var(${v}--padding-y) var(${v}--padding-x);${v}--modal-animation-duration:1s;${v}--ghost-width:.08em;${v}--focus-scale:.97;${v}--deg:45deg;${v}--ghost-color:var(${v}--background);background:linear-gradient(var(${v}--deg),var(${v}--background),var(${v}--gradients,var(${v}--background)));color:var(${v}--color,inherit);cursor:pointer;display:block;overflow:hidden;padding:var(${v}--padding);text-align:center;width:-moz-fit-content;width:fit-content}[part=root]:not([contents]){height:100%;width:100%}[part=root]{border-radius:inherit;position:relative;transition:none;transition-duration:inherit;-webkit-user-select:none;user-select:none}i{animation-duration:var(${v}--modal-animation-duration);background:var(${v}--modal-background,currentColor);border-radius:50%;height:100%;inset:0;opacity:0;pointer-events:none;position:absolute;transform-origin:0 0;visibility:visible;width:100%}@keyframes kf{0%{opacity:var(${v}--modal-opacity,.1);transform:scale(0) translate(-50%,-50%)}80%{transform:scale(1) translate(-50%,-50%)}to{opacity:0}}`)],$);var f=$;export{$ as Button,f as default};
|
2
|
-
//# sourceMappingURL=button.js.map
|
package/components/button.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"button.js","sources":["../src/components/button.ts"],"sourcesContent":null,"names":["protoName","cssScope","scopePrefix","whiteFont","cssGlobalVars","white","blackFont","black","colorDetails","_colors","darkgray","gray","lightgray","blue","green","red","orange","pink","purple","yellow","teal","Button","GlobalStyle","constructor","this","__colorSC","StyleController","color","nextColor","fg","bg","gd","joinRules","plain","disabled","ghost","active","round","render","html","attr","observedRecord","content","htmlSlot","focus","super","blur","connectedCallback","events","add","_handelClick","e","stopPropagation","preventDefault","_handleModal","modal","document","createElement","width","height","getBoundingClientRect","x","y","_root","size","Math","sqrt","style","left","top","animationName","_modalRoot","appendChild","addEventListener","remove","once","__decorate","property","type","Boolean","reflect","prototype","part","godown","sty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AA,CADCC,EAAS,CAAEC,KAAMC,QAASC,SAAS,KACpB3D,EAAA4D,UAAA,gBAAA,GAOhBL,EAAA,CADCC,EAAS,CAAEC,KAAMC,QAASC,SAAS,KACvB3D,EAAA4D,UAAA,aAAA,GAMbL,EAAA,CADCC,EAAS,CAAEC,KAAMC,QAASC,SAAS,KACtB3D,EAAA4D,UAAA,cAAA,GAMdL,EAAA,CADCC,EAAS,CAAEC,KAAMC,QAASC,SAAS,KACvB3D,EAAA4D,UAAA,aAAA,GAMbL,EAAA,CADCC,EAAS,CAAEG,SAAS,KACE3D,EAAA4D,UAAA,aAAA,GAMvBL,EAAA,CADCC,KACcxD,EAAA4D,UAAA,eAAA,GAGLL,EAAA,CADTM,EAAK,eAC2B7D,EAAA4D,UAAA,kBAAA,GAEvBL,EAAA,CADTM,EAAK,SACsB7D,EAAA4D,UAAA,aAAA,GA9DxB5D,EAAMuD,EAAA,CALXO,EAAOnF,GACPoF,EACCC,CAAG,sDAAsDpF,+IAAsJA,2BAAkCA,qEAA4EA,uBAA8BA,6BAAoCA,kCAAyCA,sBAA6BA,wBACrcoF,CAAG,SAASpF,qBAA4BA,yBAAgCA,oBAA2BA,kBAAyBA,qBAA4BA,iBAAwBA,kCAAyCA,wBAA+BA,sBAA6BA,gBAAuBA,sBAA6BA,iDAAwDA,eAAsBA,sBAA6BA,oBAA2BA,8BAAqCA,8EAAqFA,gSAAuSA,+CAAsDA,2MAAkNA,4HAEpnCoB,GA4HN,IAAAiE,EAAejE"}
|
package/components/card.d.ts.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../src/components/card.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,cAAc,EAAa,MAAM,KAAK,CAAC;AAGrD,OAAO,EAAE,WAAW,EAA8B,MAAM,yBAAyB,CAAC;AAMlF;;;;;;;;;;GAUG;AACH,cAEM,IAAK,SAAQ,WAAW;IAC5B;;OAEG;IAEH,MAAM,UAAS;IAEf;;OAEG;IAEH,MAAM,UAAS;IAEf,SAAS,CAAC,MAAM,IAAI,cAAc,CAAC,CAAC,CAAC;CAGtC;AAED,eAAe,IAAI,CAAC;AACpB,OAAO,EAAE,IAAI,EAAE,CAAC"}
|
package/components/card.js
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
import{__decorate as o}from"tslib";import{godown as r,styles as e,attr as t,htmlSlot as d}from"@godown/element";import{css as i,html as a}from"lit";import{property as s}from"lit/decorators.js";import{scopePrefix as p,cssGlobalVars as l,GlobalStyle as n}from"../core/global-style.js";const h="card",m=p(h);let b=class Card extends n{constructor(){super(...arguments),this.footer=!1,this.header=!1}render(){return a`<div part="root" ${t(this.observedRecord)}>${[this.header?d("header"):"",d(),this.footer?d("footer"):""]}</div>`}};o([s({type:Boolean})],b.prototype,"footer",void 0),o([s({type:Boolean})],b.prototype,"header",void 0),b=o([r(h),e(i`:host{${m}--border-width:.075em;${m}--border-color:var(${l.passive});${m}--padding:.75em;display:block;flex-shrink:0}slot{display:block;padding:var(${m}--padding)}[part=root]{border-color:var(${m}--border-color);border-radius:inherit;border-style:solid;border-width:var(${m}--border-width)}[name=footer]{padding-top:0}[name=header]{padding-bottom:0}`)],b);var c=b;export{b as Card,c as default};
|
2
|
-
//# sourceMappingURL=card.js.map
|
package/components/card.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"card.js","sources":["../src/components/card.ts"],"sourcesContent":null,"names":["protoName","cssScope","scopePrefix","Card","GlobalStyle","constructor","this","footer","header","render","html","attr","observedRecord","htmlSlot","__decorate","property","type","Boolean","prototype","godown","styles","css","cssGlobalVars","passive","Card$1"],"mappings":"2RAOA,MAAMA,EAAY,OACZC,EAAWC,EAAYF,GAe7B,IAAMG,EAAN,MAAMA,aAAaC,EAAnB,WAAAC,uBAKEC,KAAMC,QAAG,EAMTD,KAAME,QAAG,EAEC,MAAAC,GACR,OAAOC,CAAI,oBAGLC,EAAKL,KAAKM,mBAEV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AI,IAAI,IAAI;IASZ,SAAS,CAAC,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,OAAO,GAAG,IAAI;IAKrE,SAAS,CAAC,cAAc,IAAI,MAAM;IASlC,cAAc,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM;CASlC;AAED,eAAe,QAAQ,CAAC;AACxB,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
package/components/carousel.js
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
import{__decorate as t}from"tslib";import{part as e,godown as i,styles as s,attr as o,htmlSlot as n}from"@godown/element";import r from"@godown/f7-icon/icons/chevron-left.js";import h from"@godown/f7-icon/icons/chevron-right.js";import{css as l,html as a}from"lit";import{property as d}from"lit/decorators.js";import{GlobalStyle as c}from"../core/global-style.js";function p(t){return t.getBoundingClientRect().width}let m=class Carousel extends c{constructor(){super(...arguments),this.index=0,this.autoChange=0}render(){return a`<div part="root" ${o(this.observedRecord)}><i part="prev" @click="${this.prev}">${r()}</i><div part="move-root">${n()}</div><i part="next" @click="${this.next}">${h()}</i></div>`}connectedCallback(){super.connectedCallback(),this.children.length&&(this.__cloneFirst?.remove(),this.__cloneLast?.remove(),this.__cloneLast=this.firstElementChild.cloneNode(!0),this.__cloneFirst=this.lastElementChild.cloneNode(!0),this.appendChild(this.__cloneLast),this.insertBefore(this.__cloneFirst,this.firstElementChild)),this.observers.add(this,ResizeObserver,(()=>{this._offset=this._computeOffset(),this._doTranslateX(`${this._offset}px`,!0)}))}async firstUpdated(){await this.updateComplete,this.show(this.index,!0)}attributeChangedCallback(t,e,i){super.attributeChangedCallback(t,e,i),"index"===t&&this.isConnected&&this.show(this.index)}show(t,e){t=this.normalizeIndex(t),this.index=t,this._offset=this._computeOffset(),this._doTranslateX(`${this._offset}px`,e),this.dispatchCustomEvent("change",t),this.timeouts.remove(this.intervalID),this.autoChange>0&&(this.intervalID=this.timeouts.add(setInterval((()=>{this.next()}),this.autoChange)))}next(){this.index===this.childElementCount-3?(this._doTranslateX("0",!0),this.show(0)):this.show(this.index+1)}prev(){0===this.index?(this._doTranslateX(`-${this.childElementCount-1}00%`,!0),this.show(this.children.length-3)):this.show(this.index-1)}_doTranslateX(t,e){this._moveRoot.style.transform=`translateX(${t})`,this._moveRoot.style.transition=e?"none":""}_computeOffset(){let t=0;for(let e=0;e<=this.index;e++)t-=p(this.children[e]);return t+=(p(this)-p(this.children[this.index+1]))/2,t}normalizeIndex(t){return t<0?0:t>this.children.length-3?this.children.length-3:t}};t([d({type:Number})],m.prototype,"index",void 0),t([d({type:Number})],m.prototype,"autoChange",void 0),t([e("move-root")],m.prototype,"_moveRoot",void 0),m=t([i("carousel"),s(l`:host{display:block;transition:.3s}[part=root]{direction:ltr;overflow:hidden}[part=move-root],[part=root]{display:flex;height:100%;position:relative;transition:inherit;width:100%}[part=next],[part=prev]{align-items:center;display:flex;height:100%;justify-content:center;position:absolute;-webkit-user-select:none;user-select:none;width:1.5em;z-index:1}[part=prev]{left:0}[part=next]{right:0}slot::slotted(*){flex-shrink:0!important}`)],m);var f=m;export{m as Carousel,f as default};
|
2
|
-
//# sourceMappingURL=carousel.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"carousel.js","sources":["../src/components/carousel.ts"],"sourcesContent":null,"names":["getWidth","e","getBoundingClientRect","width","Carousel","GlobalStyle","constructor","this","index","autoChange","render","html","attr","observedRecord","prev","iconChevronLeft","htmlSlot","next","iconChevronRight","connectedCallback","super","children","length","__cloneFirst","remove","__cloneLast","firstElementChild","cloneNode","lastElementChild","appendChild","insertBefore","observers","add","ResizeObserver","_offset","_computeOffset","_doTranslateX","firstUpdated","updateComplete","show","attributeChangedCallback","name","_old","value","isConnected","i","n","normalizeIndex","dispatchCustomEvent","timeouts","intervalID","setInterval","childElementCount","xValue","noTransition","_moveRoot","style","transform","transition","offset","childIndex","__decorate","property","type","Number","prototype","part","godown","styles","css","Carousel$1"],"mappings":"4WAUA,SAASA,EAASC,GAChB,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,CAAC;AAM1D;;;;;;;GAOG;AACH,cAEM,OAAQ,SAAQ,aAAa;IACjC;;OAEG;IAEH,KAAK,UAAS;IAEd;;OAEG;IAEH,IAAI,UAAS;IAEb;;OAEG;IAEH,OAAO,SAAM;IAEb,SAAS,CAAC,MAAM,IAAI,cAAc,CAAC,CAAC,CAAC;CAGtC;AAED,eAAe,OAAO,CAAC;AACvB,OAAO,EAAE,OAAO,EAAE,CAAC"}
|
package/components/details.js
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
import{__decorate as t}from"tslib";import{godown as o,styles as i,attr as e,htmlSlot as r}from"@godown/element";import a from"@godown/f7-icon/icons/chevron-down.js";import{css as s,html as l}from"lit";import{property as n}from"lit/decorators.js";import{scopePrefix as p}from"../core/global-style.js";import d from"../core/super-openable.js";const m="details",c=p(m);let f=class Details extends d{constructor(){super(...arguments),this.float=!1,this.fill=!1,this.summary=""}render(){return l`<dl part="root" ${e(this.observedRecord)}><dt part="title" @click="${()=>this.toggle()}"><span part="summary">${this.summary||r("summary")}</span> <span part="icon">${a()}</span></dt><dd part="details" @click="${this.fill?()=>this.toggle():null}"><div style="min-height: 0;">${r()}</div></dd></dl>`}};t([n({type:Boolean})],f.prototype,"float",void 0),t([n({type:Boolean})],f.prototype,"fill",void 0),t([n()],f.prototype,"summary",void 0),f=t([o(m),i(s`:host{${c}--icon-deg-open:0deg;${c}--icon-deg-close:90deg;display:block;padding:.2em;transition:.3s}[part=root]{position:relative}[part=title]{align-items:center;direction:ltr;grid-template-columns:auto auto;height:100%;justify-content:space-between}[part=details],[part=title]{display:grid;overflow:hidden;transition:inherit}[part=details]{grid-template-rows:0fr}:host([open]) [part=details]{grid-template-rows:1fr}[float] [part=details]{position:absolute;top:100%;width:100%}[part]{transition:inherit;transition-property:transform,grid-template-rows}[part=icon]{-webkit-backface-visibility:hidden;backface-visibility:hidden;display:flex;transform:rotate(var(${c}--icon-deg-close))}:host([open]) [part=icon]{transform:rotate(var(${c}--icon-deg-open))}`)],f);var g=f;export{f as Details,g as default};
|
2
|
-
//# sourceMappingURL=details.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"details.js","sources":["../src/components/details.ts"],"sourcesContent":null,"names":["protoName","cssScope","scopePrefix","Details","SuperOpenable","constructor","this","float","fill","summary","render","html","attr","observedRecord","toggle","htmlSlot","svgCaretDown","__decorate","property","type","Boolean","prototype","godown","styles","css","Details$1"],"mappings":"qVAQA,MAAMA,EAAY,UAEZC,EAAWC,EAAYF,GAY7B,IAAMG,EAAN,MAAMA,gBAAgBC,EAAtB,WAAAC,uBAKEC,KAAKC,OAAG,EAMRD,KAAIE,MAAG,EAMPF,KAAOG,QAAG,GAEA,MAAAC,GACR,OAAOC,CAAI,mBAGLC,EAAKN,KAAKO,4CAIA,IAAMP,KAAKQ,kCAEER,KAAKG,SAAWM,EAAS,uCAC5BC,6CAIXV,KAAKE,KAAO,IAAMF,KAAKQ,SAAW,qCAEbC,wBA/BtCE,EAAA,CADCC,EAAS,CAAEC,KAAMC,WACLjB,EAAAkB,UAAA,aAAA,GAMbJ,EAAA,CADCC,EAAS,CAAEC,KAAMC,WACNjB,EAAAkB,UAAA,YAAA,GAMZJ,EAAA,CADCC,KACWf,EAAAkB,UAAA,eAAA,GAjBRlB,EAAOc,EAAA,CAFZK,EAAOtB,GACPuB,EAAOC,CAAG,SAASvB,yBAAgCA,qnBAA4nBA,sEAA6EA,wBACvvBE,GA2CN,IAAAsB,EAAetB"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../src/components/dialog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAkC,MAAM,iBAAiB,CAAC;AACpF,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,cAAc,EAAa,MAAM,KAAK,CAAC;AAI1E,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAK1D;;;;;;;;;GASG;AACH,cAEM,MAAO,SAAQ,aAAa;IAChC;;OAEG;IACH,IACI,KAAK,CAAC,KAAK,EAAE,OAAO,EAEvB;IAED,IAAI,KAAK,IAAI,OAAO,CAEnB;IAED;;OAEG;IAEH,GAAG,SAAY;IAEf;;OAEG;IACH,OAAO,CAAC,aAAa,CAAS;IAG9B,SAAS,CAAC,OAAO,EAAE,iBAAiB,CAAC;IAErC,SAAS,CAAC,MAAM,IAAI,cAAc,CAAC,CAAC,CAAC;IAIrC,SAAS,IAAI,IAAI;IAMjB,wBAAwB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;IAevF,OAAO,CAAC,aAAa,CAAqC;IAC1D,OAAO,CAAC,cAAc,CAAqC;IAE3D,SAAS,CAAC,OAAO,CAAC,iBAAiB,EAAE,cAAc,GAAG,IAAI;IAc1D,SAAS,CAAC,cAAc,CAAC,CAAC,EAAE,aAAa,GAAG,IAAI;IAQhD,SAAS,CAAC,aAAa,CAAC,CAAC,EAAE,YAAY,CAAC,eAAe,CAAC,GAAG,IAAI;IAO/D,KAAK,IAAI,IAAI;CAOd;AAED,eAAe,MAAM,CAAC;AACtB,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
package/components/dialog.js
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
import{__decorate as t}from"tslib";import{godown as o,styles as e,attr as i,htmlSlot as s}from"@godown/element";import{css as a,html as n}from"lit";import{property as d,query as l}from"lit/decorators.js";import{scopePrefix as r}from"../core/global-style.js";import h from"../core/super-openable.js";const m="dialog",p=r(m);let c=class Dialog extends h{constructor(){super(...arguments),this.key="Escape",this.__modalInvoke=!1}set modal(t){this.contents=t}get modal(){return this.contents}render(){return n`<dialog part="root" ${i(this.observedRecord)}>${s()}</dialog>`}showModal(){this.modal=!0,this.__modalInvoke=!0,this.show()}attributeChangedCallback(t,o,e){super.attributeChangedCallback(t,o,e),"open"===t&&(this.open?this.modal?this._dialog.showModal():this._dialog.show():this._dialog.close())}updated(t){t.has("open")&&(this.open?(this.__submitEvent=this.events.add(this,"submit",this._handelSubmit),this.key&&(this.__keydownEvent=this.events.add(document,"keydown",this._handleKeydown.bind(this)))):(this.events.remove(this,"submit",this.__submitEvent),this.events.remove(document,"keydown",this.__keydownEvent)))}_handleKeydown(t){const o=this.key.split(/[\s,]/);(o.includes(t.key)||o.includes(t.code))&&(t.preventDefault(),this.close())}_handelSubmit(t){"dialog"===t.target.method&&(t.preventDefault(),this.close())}close(){this.__modalInvoke&&(this.modal=!1,this.__modalInvoke=!1),this.open=!1}};t([d({type:Boolean,reflect:!0})],c.prototype,"modal",null),t([d()],c.prototype,"key",void 0),t([l("dialog")],c.prototype,"_dialog",void 0),c=t([o(m),e(a`:host{${p}--background-modal:#000;${p}--opacity-modal:0.2;background:none;display:block;left:50%;margin:auto;position:fixed;top:50%;transform:translate(-50%,-50%);width:-moz-fit-content;width:fit-content}:host(:not([open])){visibility:hidden}:host([contents]) dialog{position:fixed}dialog{background:inherit;position:relative}::backdrop{background:var(${p}--background-modal);opacity:var(${p}--opacity-modal)}`)],c);var u=c;export{c as Dialog,u as default};
|
2
|
-
//# sourceMappingURL=dialog.js.map
|
package/components/dialog.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"dialog.js","sources":["../src/components/dialog.ts"],"sourcesContent":null,"names":["protoName","cssScope","scopePrefix","Dialog","SuperOpenable","constructor","this","key","__modalInvoke","modal","value","contents","render","html","attr","observedRecord","htmlSlot","showModal","show","attributeChangedCallback","name","_old","super","open","_dialog","close","updated","changedProperties","has","__submitEvent","events","add","_handelSubmit","__keydownEvent","document","_handleKeydown","bind","remove","e","keys","split","includes","code","preventDefault","target","method","__decorate","property","type","Boolean","reflect","prototype","query","godown","styles","css","Dialog$1"],"mappings":"2SAOA,MAAMA,EAAY,SACZC,EAAWC,EAAYF,GAc7B,IAAMG,EAAN,MAAMA,eAAeC,EAArB,WAAAC,uB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A,GAQJL,EAAA,CADTM,EAAM,WAC6BjD,EAAAgD,UAAA,eAAA,GAzBhChD,EAAM2C,EAAA,CAFXO,EAAOrD,GACPsD,EAAOC,CAAG,SAAStD,4BAAmCA,8TAAqUA,oCAA2CA,uBACjaE,GAoGN,IAAAqD,EAAerD"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"divider.d.ts","sourceRoot":"","sources":["../src/components/divider.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,cAAc,EAAa,MAAM,KAAK,CAAC;AAGrD,OAAO,EAAiB,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAIrE;;;;GAIG;AACH,cAEM,OAAQ,SAAQ,WAAW;IAC/B;;OAEG;IAEH,QAAQ,UAAS;IAEjB,SAAS,CAAC,MAAM,IAAI,cAAc,CAAC,CAAC,CAAC;CAGtC;AAED,eAAe,OAAO,CAAC;AACvB,OAAO,EAAE,OAAO,EAAE,CAAC"}
|
package/components/divider.js
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
import{__decorate as t}from"tslib";import{godown as o,styles as r,attr as e}from"@godown/element";import{css as i,html as s}from"lit";import{property as l}from"lit/decorators.js";import{cssGlobalVars as a,GlobalStyle as d}from"../core/global-style.js";let c=class Divider extends d{constructor(){super(...arguments),this.vertical=!1}render(){return s`<div part="root" ${e(this.observedRecord)}></div>`}};t([l({type:Boolean,reflect:!0})],c.prototype,"vertical",void 0),c=t([o("divider"),r(i`:host{background:currentColor;color:var(${a.passive});display:block;height:.05em;width:100%}:host([vertical]){height:100%;width:.05em}:host([contents]) [part=root]{background:currentColor;display:block;height:.05em;margin:auto;width:100%}[part=root]{display:contents}`)],c);var p=c;export{c as Divider,p as default};
|
2
|
-
//# sourceMappingURL=divider.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"divider.js","sources":["../src/components/divider.ts"],"sourcesContent":null,"names":["Divider","GlobalStyle","constructor","this","vertical","render","html","attr","observedRecord","__decorate","property","type","Boolean","reflect","prototype","godown","styles","css","cssGlobalVars","passive","Divider$1"],"mappings":"4PAeA,IAAMA,EAAN,MAAMA,gBAAgBC,EAAtB,WAAAC,uBAKEC,KAAQC,UAAG,EAED,MAAAC,GACR,OAAOC,CAAI,oBAGLC,EAAKJ,KAAKK,2BANlBC,EAAA,CADCC,EAAS,CAAEC,KAAMC,QAASC,SAAS,KACpBb,EAAAc,UAAA,gBAAA,GALZd,EAAOS,EAAA,CAFZM,EAPiB,WAQjBC,EAAOC,CAAG,2CAA2CC,EAAcC,mOAC9DnB,GAiBN,IAAAoB,EAAepB"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"dragbox.d.ts","sourceRoot":"","sources":["../src/components/dragbox.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,cAAc,EAAa,MAAM,KAAK,CAAC;AAGrD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAItD;;;;;GAKG;AACH,cAEM,OAAQ,SAAQ,WAAW;IAC/B;;OAEG;IACH,IAAI,aAAa,IAAI,OAAO,CAE3B;IAED,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,GAAG,CAAS;IACpB,OAAO,CAAC,GAAG,CAAS;IACpB,OAAO,CAAC,GAAG,CAAS;IACpB,OAAO,CAAC,GAAG,CAAS;IAEpB;;OAEG;IAEH,CAAC,EAAE,MAAM,CAAC;IAEV;;OAEG;IAEH,CAAC,EAAE,MAAM,CAAC;IAEV,SAAS,CAAC,MAAM,IAAI,cAAc,CAAC,CAAC,CAAC;IAIrC,SAAS,CAAC,YAAY,IAAI,IAAI;IAI9B,SAAS,CAAC,gBAAgB,CAAC,CAAC,EAAE,UAAU,GAAG,IAAI;IAa/C,OAAO,CAAC,iBAAiB,CAAoB;IAC7C,OAAO,CAAC,kBAAkB,CAAoB;IAC9C,OAAO,CAAC,eAAe,CAAoB;IAE3C,SAAS,CAAC,cAAc,IAAI,IAAI;IAOhC,SAAS,CAAC,WAAW,CAAC,CAAC,EAAE,UAAU,GAAG,IAAI;IAyB1C,KAAK,IAAI,IAAI;CAad;AAED,eAAe,OAAO,CAAC;AACvB,OAAO,EAAE,OAAO,EAAE,CAAC"}
|
package/components/dragbox.js
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
import{__decorate as t}from"tslib";import{godown as e,styles as s,attr as o,htmlSlot as i}from"@godown/element";import{css as n,html as h}from"lit";import{property as d}from"lit/decorators.js";import{GlobalStyle as r}from"../core/global-style.js";let a=class Dragbox extends r{constructor(){super(...arguments),this.__drag=!1}get _offsetParent(){return this.offsetParent??document.body}render(){return h`<div part="root" ${o(this.observedRecord)} @mousedown="${this._handleDragStart}">${i()}</div>`}firstUpdated(){this.reset()}_handleDragStart(t){this.__x=t.x,this.__y=t.y;const e=this._offsetParent.getBoundingClientRect(),s=this.getBoundingClientRect();this.__t=s.top-e.top,this.__l=s.left-e.left,this.__drag=!0,this.__handleMouseMove=this.events.add(document,"mousemove",this._handleDrag.bind(this)),this.__handleMouseLeave=this.events.add(document,"mouseleave",this._handleDragEnd.bind(this)),this.__handleMouseUp=this.events.add(document,"mouseup",this._handleDragEnd.bind(this))}_handleDragEnd(){this.__drag=!1,this.events.remove(document,"mousemove",this.__handleMouseMove),this.events.remove(document,"mouseleave",this.__handleMouseLeave),this.events.remove(document,"mouseup",this.__handleMouseUp)}_handleDrag(t){if(!this.__drag)return;const{__x:e,__y:s,__l:o,__t:i,style:n}=this,{height:h,width:d}=this._offsetParent.getBoundingClientRect(),{width:r,height:a}=this.getBoundingClientRect(),_=t.x-(e-o),l=t.y-(s-i);n.left=_<0?"0":_<d-r?`${_}px`:d-r+"px",n.top=l<0?"0":l<h-a?`${l}px`:h-a+"px"}reset(){const{x:t,y:e,style:s,offsetWidth:o,offsetHeight:i,offsetLeft:n,offsetTop:h}=this,{height:d,width:r}=this._offsetParent.getBoundingClientRect();s.left=t||"0",s.top=e||"0",n>r-o&&(s.left=r-o+"px"),h>d-i&&(s.top=d-i+"px")}};t([d()],a.prototype,"x",void 0),t([d()],a.prototype,"y",void 0),a=t([e("dragbox"),s(n`:host{display:block;position:absolute}:host(:active){-webkit-user-select:none;user-select:none}`)],a);var _=a;export{a as Dragbox,_ as default};
|
2
|
-
//# sourceMappingURL=dragbox.js.map
|