godown 2.7.6 → 3.0.0-canary.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 +44 -80
- package/alert.d.ts +2 -3
- package/alert.d.ts.map +1 -1
- package/alert.js +5 -4
- package/alert.js.map +1 -1
- package/avatar.d.ts +2 -3
- package/avatar.d.ts.map +1 -1
- package/avatar.js +5 -4
- package/avatar.js.map +1 -1
- package/breath.d.ts +9 -0
- package/breath.d.ts.map +1 -0
- package/breath.js +6 -0
- package/breath.js.map +1 -0
- package/button.d.ts +2 -3
- package/button.d.ts.map +1 -1
- package/button.js +5 -4
- package/button.js.map +1 -1
- package/card.d.ts +2 -3
- package/card.d.ts.map +1 -1
- package/card.js +5 -4
- package/card.js.map +1 -1
- package/carousel.d.ts +2 -3
- package/carousel.d.ts.map +1 -1
- package/carousel.js +5 -4
- package/carousel.js.map +1 -1
- package/components/alert.d.ts +50 -0
- package/components/alert.d.ts.map +1 -0
- package/components/alert.js +167 -0
- package/components/alert.js.map +1 -0
- package/components/avatar.d.ts +26 -0
- package/components/avatar.d.ts.map +1 -0
- package/components/avatar.js +62 -0
- package/components/avatar.js.map +1 -0
- package/components/breath.d.ts +34 -0
- package/components/breath.d.ts.map +1 -0
- package/components/breath.js +80 -0
- package/components/breath.js.map +1 -0
- package/{web-components/button → components}/button.d.ts +6 -5
- package/components/button.d.ts.map +1 -0
- package/components/button.js +167 -0
- package/components/button.js.map +1 -0
- package/components/card.d.ts +20 -0
- package/components/card.d.ts.map +1 -0
- package/components/card.js +55 -0
- package/components/card.js.map +1 -0
- package/components/carousel.d.ts +40 -0
- package/components/carousel.d.ts.map +1 -0
- package/components/carousel.js +113 -0
- package/components/carousel.js.map +1 -0
- package/{web-components/details → components}/details.d.ts +5 -3
- package/components/details.d.ts.map +1 -0
- package/components/details.js +50 -0
- package/components/details.js.map +1 -0
- package/components/dialog.d.ts +33 -0
- package/components/dialog.d.ts.map +1 -0
- package/components/dialog.js +92 -0
- package/components/dialog.js.map +1 -0
- package/components/divider.d.ts +17 -0
- package/components/divider.d.ts.map +1 -0
- package/components/divider.js +37 -0
- package/components/divider.js.map +1 -0
- package/{web-components/wrapper → components}/dragbox.d.ts +15 -5
- package/components/dragbox.d.ts.map +1 -0
- package/{web-components/wrapper → components}/dragbox.js +32 -27
- package/components/dragbox.js.map +1 -0
- package/components/flex.d.ts +31 -0
- package/components/flex.d.ts.map +1 -0
- package/components/flex.js +55 -0
- package/components/flex.js.map +1 -0
- package/{web-components/form → components}/form.d.ts +4 -2
- package/components/form.d.ts.map +1 -0
- package/{web-components/form → components}/form.js +16 -17
- package/components/form.js.map +1 -0
- package/components/grid.d.ts +31 -0
- package/components/grid.d.ts.map +1 -0
- package/components/grid.js +56 -0
- package/components/grid.js.map +1 -0
- package/components/input.d.ts +20 -0
- package/components/input.d.ts.map +1 -0
- package/components/input.js +54 -0
- package/components/input.js.map +1 -0
- package/components/layout.d.ts +29 -0
- package/components/layout.d.ts.map +1 -0
- package/components/layout.js +48 -0
- package/components/layout.js.map +1 -0
- package/components/link.d.ts +20 -0
- package/components/link.d.ts.map +1 -0
- package/components/link.js +43 -0
- package/components/link.js.map +1 -0
- package/{web-components/progress → components}/progress.d.ts +5 -3
- package/components/progress.d.ts.map +1 -0
- package/components/progress.js +68 -0
- package/components/progress.js.map +1 -0
- package/components/range.d.ts +60 -0
- package/components/range.d.ts.map +1 -0
- package/components/range.js +193 -0
- package/components/range.js.map +1 -0
- package/{web-components/wrapper → components}/rotate.d.ts +4 -8
- package/components/rotate.d.ts.map +1 -0
- package/components/rotate.js +57 -0
- package/components/rotate.js.map +1 -0
- package/components/router.d.ts +121 -0
- package/components/router.d.ts.map +1 -0
- package/components/router.js +251 -0
- package/components/router.js.map +1 -0
- package/components/select.d.ts +50 -0
- package/components/select.d.ts.map +1 -0
- package/components/select.js +211 -0
- package/components/select.js.map +1 -0
- package/{web-components/skeleton → components}/skeleton.d.ts +6 -6
- package/components/skeleton.d.ts.map +1 -0
- package/components/skeleton.js +56 -0
- package/components/skeleton.js.map +1 -0
- package/components/split.d.ts +32 -0
- package/components/split.d.ts.map +1 -0
- package/components/split.js +121 -0
- package/components/split.js.map +1 -0
- package/{web-components/input/switch-input.d.ts → components/switch.d.ts} +9 -10
- package/components/switch.d.ts.map +1 -0
- package/components/switch.js +93 -0
- package/components/switch.js.map +1 -0
- package/{web-components/text → components}/text.d.ts +5 -3
- package/components/text.d.ts.map +1 -0
- package/components/text.js +44 -0
- package/components/text.js.map +1 -0
- package/{web-components/text → components}/time.d.ts +5 -3
- package/components/time.d.ts.map +1 -0
- package/{web-components/text → components}/time.js +18 -21
- package/components/time.js.map +1 -0
- package/components/tooltip.d.ts +38 -0
- package/components/tooltip.d.ts.map +1 -0
- package/components/tooltip.js +67 -0
- package/components/tooltip.js.map +1 -0
- package/{web-components/text → components}/typewriter.d.ts +5 -3
- package/components/typewriter.d.ts.map +1 -0
- package/{web-components/text → components}/typewriter.js +24 -48
- package/components/typewriter.js.map +1 -0
- package/core/global-style.d.ts +21 -0
- package/core/global-style.d.ts.map +1 -0
- package/core/global-style.js +46 -0
- package/core/global-style.js.map +1 -0
- package/core/super-anchor.d.ts +15 -0
- package/core/super-anchor.d.ts.map +1 -0
- package/core/super-anchor.js +39 -0
- package/core/super-anchor.js.map +1 -0
- package/core/super-input.d.ts +39 -0
- package/core/super-input.d.ts.map +1 -0
- package/core/super-input.js +115 -0
- package/core/super-input.js.map +1 -0
- package/{proto → core}/super-openable.d.ts +4 -8
- package/core/super-openable.d.ts.map +1 -0
- package/{proto → core}/super-openable.js +10 -15
- package/core/super-openable.js.map +1 -0
- package/custom-elements.json +1 -0
- package/details.d.ts +2 -3
- package/details.d.ts.map +1 -1
- package/details.js +5 -4
- package/details.js.map +1 -1
- package/dialog.d.ts +2 -3
- package/dialog.d.ts.map +1 -1
- package/dialog.js +5 -4
- package/dialog.js.map +1 -1
- package/divider.d.ts +2 -3
- package/divider.d.ts.map +1 -1
- package/divider.js +5 -4
- package/divider.js.map +1 -1
- package/dragbox.d.ts +2 -3
- package/dragbox.d.ts.map +1 -1
- package/dragbox.js +5 -4
- package/dragbox.js.map +1 -1
- package/flex.d.ts +8 -0
- package/flex.d.ts.map +1 -0
- package/flex.js +6 -0
- package/flex.js.map +1 -0
- package/form.d.ts +2 -3
- package/form.d.ts.map +1 -1
- package/form.js +5 -4
- package/form.js.map +1 -1
- package/grid.d.ts +8 -0
- package/grid.d.ts.map +1 -0
- package/grid.js +6 -0
- package/grid.js.map +1 -0
- package/index.d.ts +28 -32
- package/index.d.ts.map +1 -1
- package/index.js +57 -33
- package/index.js.map +1 -1
- package/input.d.ts +3 -3
- package/input.d.ts.map +1 -1
- package/input.js +5 -4
- package/input.js.map +1 -1
- package/layout.d.ts +3 -3
- package/layout.d.ts.map +1 -1
- package/layout.js +5 -4
- package/layout.js.map +1 -1
- package/link.d.ts +3 -3
- package/link.d.ts.map +1 -1
- package/link.js +5 -4
- package/link.js.map +1 -1
- package/package.json +42 -81
- package/progress.d.ts +3 -3
- package/progress.d.ts.map +1 -1
- package/progress.js +5 -4
- package/progress.js.map +1 -1
- package/range.d.ts +9 -0
- package/range.d.ts.map +1 -0
- package/range.js +6 -0
- package/range.js.map +1 -0
- package/rotate.d.ts +3 -3
- package/rotate.d.ts.map +1 -1
- package/rotate.js +5 -4
- package/rotate.js.map +1 -1
- package/router.d.ts +3 -3
- package/router.d.ts.map +1 -1
- package/router.js +5 -4
- package/router.js.map +1 -1
- package/select.d.ts +9 -0
- package/select.d.ts.map +1 -0
- package/select.js +6 -0
- package/select.js.map +1 -0
- package/skeleton.d.ts +3 -3
- package/skeleton.d.ts.map +1 -1
- package/skeleton.js +5 -4
- package/skeleton.js.map +1 -1
- package/split.d.ts +9 -0
- package/split.d.ts.map +1 -0
- package/split.js +6 -0
- package/split.js.map +1 -0
- package/switch.d.ts +9 -0
- package/switch.d.ts.map +1 -0
- package/switch.js +6 -0
- package/switch.js.map +1 -0
- package/text.d.ts +3 -3
- package/text.d.ts.map +1 -1
- package/text.js +5 -4
- package/text.js.map +1 -1
- package/time.d.ts +3 -3
- package/time.d.ts.map +1 -1
- package/time.js +5 -4
- package/time.js.map +1 -1
- package/tooltip.d.ts +3 -3
- package/tooltip.d.ts.map +1 -1
- package/tooltip.js +5 -4
- package/tooltip.js.map +1 -1
- package/typewriter.d.ts +2 -3
- package/typewriter.d.ts.map +1 -1
- package/typewriter.js +5 -4
- package/typewriter.js.map +1 -1
- package/vscode.css-custom-data.json +1 -0
- package/vscode.html-custom-data.json +1 -0
- package/web-types.json +1 -0
- package/_deps.d.ts +0 -4
- package/_deps.d.ts.map +0 -1
- package/_deps.js +0 -4
- package/_deps.js.map +0 -1
- package/avatar-group.d.ts +0 -9
- package/avatar-group.d.ts.map +0 -1
- package/avatar-group.js +0 -5
- package/avatar-group.js.map +0 -1
- package/components.json +0 -194
- package/conf.d.ts +0 -12
- package/conf.d.ts.map +0 -1
- package/conf.js +0 -24
- package/conf.js.map +0 -1
- package/decorators/godown.d.ts +0 -4
- package/decorators/godown.d.ts.map +0 -1
- package/decorators/godown.js +0 -9
- package/decorators/godown.js.map +0 -1
- package/decorators/part.d.ts +0 -7
- package/decorators/part.d.ts.map +0 -1
- package/decorators/part.js +0 -8
- package/decorators/part.js.map +0 -1
- package/decorators/styles.d.ts +0 -3
- package/decorators/styles.d.ts.map +0 -1
- package/decorators/styles.js +0 -8
- package/decorators/styles.js.map +0 -1
- package/flex-flow.d.ts +0 -9
- package/flex-flow.d.ts.map +0 -1
- package/flex-flow.js +0 -5
- package/flex-flow.js.map +0 -1
- package/grid-flow.d.ts +0 -9
- package/grid-flow.d.ts.map +0 -1
- package/grid-flow.js +0 -5
- package/grid-flow.js.map +0 -1
- package/label-input.d.ts +0 -9
- package/label-input.d.ts.map +0 -1
- package/label-input.js +0 -5
- package/label-input.js.map +0 -1
- package/lib/css.d.ts +0 -13
- package/lib/css.d.ts.map +0 -1
- package/lib/css.js +0 -29
- package/lib/css.js.map +0 -1
- package/lib/directives.d.ts +0 -25
- package/lib/directives.d.ts.map +0 -1
- package/lib/directives.js +0 -40
- package/lib/directives.js.map +0 -1
- package/lib/event-coll.d.ts +0 -13
- package/lib/event-coll.d.ts.map +0 -1
- package/lib/event-coll.js +0 -45
- package/lib/event-coll.js.map +0 -1
- package/lib/icons.d.ts +0 -25
- package/lib/icons.d.ts.map +0 -1
- package/lib/icons.js +0 -73
- package/lib/icons.js.map +0 -1
- package/lib/jsx.d.ts +0 -4
- package/lib/jsx.d.ts.map +0 -1
- package/lib/jsx.js +0 -52
- package/lib/jsx.js.map +0 -1
- package/lib/route-tree.d.ts +0 -28
- package/lib/route-tree.d.ts.map +0 -1
- package/lib/route-tree.js +0 -141
- package/lib/route-tree.js.map +0 -1
- package/lib/utils.d.ts +0 -10
- package/lib/utils.d.ts.map +0 -1
- package/lib/utils.js +0 -71
- package/lib/utils.js.map +0 -1
- package/overbreath.d.ts +0 -9
- package/overbreath.d.ts.map +0 -1
- package/overbreath.js +0 -5
- package/overbreath.js.map +0 -1
- package/proto/godown-config.d.ts +0 -41
- package/proto/godown-config.d.ts.map +0 -1
- package/proto/godown-config.js +0 -27
- package/proto/godown-config.js.map +0 -1
- package/proto/godown-element.d.ts +0 -125
- package/proto/godown-element.d.ts.map +0 -1
- package/proto/godown-element.js +0 -204
- package/proto/godown-element.js.map +0 -1
- package/proto/super-a.d.ts +0 -30
- package/proto/super-a.d.ts.map +0 -1
- package/proto/super-a.js +0 -141
- package/proto/super-a.js.map +0 -1
- package/proto/super-input.d.ts +0 -44
- package/proto/super-input.d.ts.map +0 -1
- package/proto/super-input.js +0 -119
- package/proto/super-input.js.map +0 -1
- package/proto/super-openable.d.ts.map +0 -1
- package/proto/super-openable.js.map +0 -1
- package/range-input.d.ts +0 -9
- package/range-input.d.ts.map +0 -1
- package/range-input.js +0 -5
- package/range-input.js.map +0 -1
- package/react/create.d.ts +0 -5
- package/react/create.d.ts.map +0 -1
- package/react/create.js +0 -16
- package/react/create.js.map +0 -1
- package/react/index.d.ts +0 -65
- package/react/index.d.ts.map +0 -1
- package/react/index.js +0 -132
- package/react/index.js.map +0 -1
- package/router-link.d.ts +0 -9
- package/router-link.d.ts.map +0 -1
- package/router-link.js +0 -5
- package/router-link.js.map +0 -1
- package/search-input.d.ts +0 -9
- package/search-input.d.ts.map +0 -1
- package/search-input.js +0 -5
- package/search-input.js.map +0 -1
- package/select-input.d.ts +0 -9
- package/select-input.d.ts.map +0 -1
- package/select-input.js +0 -5
- package/select-input.js.map +0 -1
- package/split-input.d.ts +0 -9
- package/split-input.d.ts.map +0 -1
- package/split-input.js +0 -5
- package/split-input.js.map +0 -1
- package/styles/colors/presets.d.ts +0 -13
- package/styles/colors/presets.d.ts.map +0 -1
- package/styles/colors/presets.js +0 -6
- package/styles/colors/presets.js.map +0 -1
- package/styles/colors/presetsRGB.d.ts +0 -16
- package/styles/colors/presetsRGB.d.ts.map +0 -1
- package/styles/colors/presetsRGB.js +0 -134
- package/styles/colors/presetsRGB.js.map +0 -1
- package/styles/global.d.ts +0 -18
- package/styles/global.d.ts.map +0 -1
- package/styles/global.js +0 -78
- package/styles/global.js.map +0 -1
- package/styles/inputStyle.d.ts +0 -3
- package/styles/inputStyle.d.ts.map +0 -1
- package/styles/inputStyle.js +0 -59
- package/styles/inputStyle.js.map +0 -1
- package/switch-input.d.ts +0 -9
- package/switch-input.d.ts.map +0 -1
- package/switch-input.js +0 -5
- package/switch-input.js.map +0 -1
- package/web-components/alert/alert.d.ts +0 -36
- package/web-components/alert/alert.d.ts.map +0 -1
- package/web-components/alert/alert.js +0 -161
- package/web-components/alert/alert.js.map +0 -1
- package/web-components/avatar/avatar-group.d.ts +0 -21
- package/web-components/avatar/avatar-group.d.ts.map +0 -1
- package/web-components/avatar/avatar-group.js +0 -86
- package/web-components/avatar/avatar-group.js.map +0 -1
- package/web-components/avatar/avatar.d.ts +0 -28
- package/web-components/avatar/avatar.d.ts.map +0 -1
- package/web-components/avatar/avatar.js +0 -120
- package/web-components/avatar/avatar.js.map +0 -1
- package/web-components/button/button.d.ts.map +0 -1
- package/web-components/button/button.js +0 -256
- package/web-components/button/button.js.map +0 -1
- package/web-components/card/card.d.ts +0 -9
- package/web-components/card/card.d.ts.map +0 -1
- package/web-components/card/card.js +0 -75
- package/web-components/card/card.js.map +0 -1
- package/web-components/carousel/carousel.d.ts +0 -29
- package/web-components/carousel/carousel.d.ts.map +0 -1
- package/web-components/carousel/carousel.js +0 -185
- package/web-components/carousel/carousel.js.map +0 -1
- package/web-components/details/details.d.ts.map +0 -1
- package/web-components/details/details.js +0 -124
- package/web-components/details/details.js.map +0 -1
- package/web-components/dialog/dialog.d.ts +0 -31
- package/web-components/dialog/dialog.d.ts.map +0 -1
- package/web-components/dialog/dialog.js +0 -143
- package/web-components/dialog/dialog.js.map +0 -1
- package/web-components/divider/divider.d.ts +0 -13
- package/web-components/divider/divider.d.ts.map +0 -1
- package/web-components/divider/divider.js +0 -95
- package/web-components/divider/divider.js.map +0 -1
- package/web-components/form/form.d.ts.map +0 -1
- package/web-components/form/form.js.map +0 -1
- package/web-components/input/input.d.ts +0 -37
- package/web-components/input/input.d.ts.map +0 -1
- package/web-components/input/input.js +0 -152
- package/web-components/input/input.js.map +0 -1
- package/web-components/input/label-input.d.ts +0 -15
- package/web-components/input/label-input.d.ts.map +0 -1
- package/web-components/input/label-input.js +0 -96
- package/web-components/input/label-input.js.map +0 -1
- package/web-components/input/range-input.d.ts +0 -53
- package/web-components/input/range-input.d.ts.map +0 -1
- package/web-components/input/range-input.js +0 -316
- package/web-components/input/range-input.js.map +0 -1
- package/web-components/input/search-input.d.ts +0 -42
- package/web-components/input/search-input.d.ts.map +0 -1
- package/web-components/input/search-input.js +0 -214
- package/web-components/input/search-input.js.map +0 -1
- package/web-components/input/select-input.d.ts +0 -36
- package/web-components/input/select-input.d.ts.map +0 -1
- package/web-components/input/select-input.js +0 -210
- package/web-components/input/select-input.js.map +0 -1
- package/web-components/input/split-input.d.ts +0 -29
- package/web-components/input/split-input.d.ts.map +0 -1
- package/web-components/input/split-input.js +0 -184
- package/web-components/input/split-input.js.map +0 -1
- package/web-components/input/switch-input.d.ts.map +0 -1
- package/web-components/input/switch-input.js +0 -189
- package/web-components/input/switch-input.js.map +0 -1
- package/web-components/layout/flex-flow.d.ts +0 -17
- package/web-components/layout/flex-flow.d.ts.map +0 -1
- package/web-components/layout/flex-flow.js +0 -73
- package/web-components/layout/flex-flow.js.map +0 -1
- package/web-components/layout/grid-flow.d.ts +0 -14
- package/web-components/layout/grid-flow.d.ts.map +0 -1
- package/web-components/layout/grid-flow.js +0 -56
- package/web-components/layout/grid-flow.js.map +0 -1
- package/web-components/layout/layout.d.ts +0 -18
- package/web-components/layout/layout.d.ts.map +0 -1
- package/web-components/layout/layout.js +0 -76
- package/web-components/layout/layout.js.map +0 -1
- package/web-components/link/link.d.ts +0 -10
- package/web-components/link/link.d.ts.map +0 -1
- package/web-components/link/link.js +0 -17
- package/web-components/link/link.js.map +0 -1
- package/web-components/link/router-link.d.ts +0 -19
- package/web-components/link/router-link.d.ts.map +0 -1
- package/web-components/link/router-link.js +0 -60
- package/web-components/link/router-link.js.map +0 -1
- package/web-components/progress/progress.d.ts.map +0 -1
- package/web-components/progress/progress.js +0 -107
- package/web-components/progress/progress.js.map +0 -1
- package/web-components/router/router.d.ts +0 -86
- package/web-components/router/router.d.ts.map +0 -1
- package/web-components/router/router.js +0 -246
- package/web-components/router/router.js.map +0 -1
- package/web-components/skeleton/skeleton.d.ts.map +0 -1
- package/web-components/skeleton/skeleton.js +0 -130
- package/web-components/skeleton/skeleton.js.map +0 -1
- package/web-components/text/overbreath.d.ts +0 -22
- package/web-components/text/overbreath.d.ts.map +0 -1
- package/web-components/text/overbreath.js +0 -132
- package/web-components/text/overbreath.js.map +0 -1
- package/web-components/text/text.d.ts.map +0 -1
- package/web-components/text/text.js +0 -94
- package/web-components/text/text.js.map +0 -1
- package/web-components/text/time.d.ts.map +0 -1
- package/web-components/text/time.js.map +0 -1
- package/web-components/text/typewriter.d.ts.map +0 -1
- package/web-components/text/typewriter.js.map +0 -1
- package/web-components/tooltip/tooltip.d.ts +0 -30
- package/web-components/tooltip/tooltip.d.ts.map +0 -1
- package/web-components/tooltip/tooltip.js +0 -123
- package/web-components/tooltip/tooltip.js.map +0 -1
- package/web-components/wrapper/dragbox.d.ts.map +0 -1
- package/web-components/wrapper/dragbox.js.map +0 -1
- package/web-components/wrapper/rotate.d.ts.map +0 -1
- package/web-components/wrapper/rotate.js +0 -92
- package/web-components/wrapper/rotate.js.map +0 -1
@@ -1,18 +1,22 @@
|
|
1
|
+
import { __decorate } from 'tslib';
|
2
|
+
import { godown } from '@godown/element/decorators/godown.js';
|
3
|
+
import { styles } from '@godown/element/decorators/styles.js';
|
4
|
+
import { htmlSlot } from '@godown/element/directives/html-slot.js';
|
5
|
+
import { css } from 'lit';
|
6
|
+
import { property } from 'lit/decorators.js';
|
7
|
+
import { GlobalStyle } from '../core/global-style.js';
|
8
|
+
|
1
9
|
var Form_1;
|
2
|
-
import { __decorate } from "tslib";
|
3
|
-
import { css, property } from "../../_deps.js";
|
4
|
-
import { godown } from "../../decorators/godown.js";
|
5
|
-
import { styles } from "../../decorators/styles.js";
|
6
|
-
import { htmlSlot } from "../../lib/directives.js";
|
7
|
-
import { GodownElement } from "../../proto/godown-element.js";
|
8
10
|
const protoName = "form";
|
9
11
|
/**
|
10
12
|
* {@linkcode Form} Gets child element key-value object,
|
11
13
|
* which will be nested if the child element is the same as this element.
|
12
14
|
*
|
13
15
|
* @slot - Child elements.
|
16
|
+
*
|
17
|
+
* @category form
|
14
18
|
*/
|
15
|
-
let Form = Form_1 = class Form extends
|
19
|
+
let Form = Form_1 = class Form extends GlobalStyle {
|
16
20
|
constructor() {
|
17
21
|
super(...arguments);
|
18
22
|
this.name = "";
|
@@ -66,14 +70,9 @@ __decorate([
|
|
66
70
|
], Form.prototype, "name", void 0);
|
67
71
|
Form = Form_1 = __decorate([
|
68
72
|
godown(protoName),
|
69
|
-
styles(
|
70
|
-
css `
|
71
|
-
:host {
|
72
|
-
display: block;
|
73
|
-
}
|
74
|
-
`,
|
75
|
-
])
|
73
|
+
styles(css `:host{display:block}`)
|
76
74
|
], Form);
|
77
|
-
|
78
|
-
|
79
|
-
|
75
|
+
var Form$1 = Form;
|
76
|
+
|
77
|
+
export { Form$1 as default };
|
78
|
+
//# sourceMappingURL=form.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"form.js","sources":["../src/components/form.ts"],"sourcesContent":null,"names":[],"mappings":";;;;;;;;;AAQA,MAAM,SAAS,GAAG,MAAM,CAAC;AAEzB;;;;;;;AAOG;AAKH,IAAM,IAAI,GAAA,MAAA,GAAV,MAAM,IAAiB,SAAQ,WAAW,CAAA;AAA1C,IAAA,WAAA,GAAA;;QAEE,IAAI,CAAA,IAAA,GAAG,EAAE,CAAC;AAKV,QAAA,IAAA,CAAA,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;KA+C5B;AAnDC,IAAA,IAAI,KAAK,GAAA;QACP,OAAO,MAAI,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,gBAAgB,EAAE,CAAM,CAAC;KAC5D;IAIS,MAAM,GAAA;QACd,OAAO,QAAQ,EAAE,CAAC;KACnB;IAED,KAAK,GAAA;QACH,IAAI,CAAC,oBAAoB,CAAwC,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,EAAE,KAAI;YACnF,IAAI,EAAE,CAAC,OAAO,KAAK,IAAI,CAAC,OAAO,EAAE;gBAC/B,OAAO;aACR;AACD,YAAA,IAAI,EAAE,CAAC,KAAK,EAAE;gBACZ,EAAE,CAAC,KAAK,EAAE,CAAC;aACZ;AACH,SAAC,CAAC,CAAC;KACJ;IAED,SAAS,GAAA;QACP,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;KAChC;IAED,OAAO,UAAU,CACf,QAII,EAAA;QAEJ,MAAM,MAAM,GAAG,EAAE,CAAC;AAClB,QAAA,KAAK,MAAM,EAAE,IAAI,QAAQ,EAAE;AACzB,YAAA,IAAI,EAAE,CAAC,OAAO,KAAK,MAAM,EAAE;AACzB,gBAAA,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,WAAW,CAAC,IAAI,QAAQ,CAAC,EAAqB,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;aAC1F;AAAM,iBAAA,IAAI,EAAE,CAAC,SAAS,EAAE;gBACvB,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,GAAG,EAAE,CAAC,SAAS,EAAE,CAAC;gBACrC,IAAI,IAAI,EAAE;AACR,oBAAA,MAAM,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC;iBACtB;aACF;iBAAM,IAAI,EAAE,CAAC,IAAI,IAAI,EAAE,CAAC,KAAK,KAAK,SAAS,EAAE;gBAC5C,MAAM,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC;aAC5B;AAAM,iBAAA,IAAI,EAAE,CAAC,UAAU,EAAE;AACxB,gBAAA,KAAK,MAAM,IAAI,IAAI,EAAE,CAAC,UAAU,CAAC,gBAAgB,CAAC,MAAM,CAAC,EAAE;AACzD,oBAAA,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,gBAAgB,EAAE,CAAC,CAAC,CAAC;iBACjE;aACF;SACF;AACD,QAAA,OAAO,MAAM,CAAC;KACf;CACF,CAAA;AApDC,UAAA,CAAA;AADC,IAAA,QAAQ,EAAE;AACD,CAAA,EAAA,IAAA,CAAA,SAAA,EAAA,MAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAFN,IAAI,GAAA,MAAA,GAAA,UAAA,CAAA;IAJT,MAAM,CAAC,SAAS,CAAC;AACjB,IAAA,MAAM,CACL,GAAG,CAAA,CAAA,oBAAA,CAAsB,CAC1B;AACK,CAAA,EAAA,IAAI,CAsDT,CAAA;AAED,aAAe,IAAI;;;;"}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
import { GlobalStyle } from "../core/global-style.js";
|
2
|
+
/**
|
3
|
+
* {@linkcode Grid} provides gird layout.
|
4
|
+
*
|
5
|
+
* @category layout
|
6
|
+
*/
|
7
|
+
declare class Grid extends GlobalStyle {
|
8
|
+
/**
|
9
|
+
* CSS property `gap`.
|
10
|
+
*/
|
11
|
+
gap: string;
|
12
|
+
/**
|
13
|
+
* CSS property `grid-template-columns`, if {@linkcode isNumerical} divide equally.
|
14
|
+
*/
|
15
|
+
columns: string | number;
|
16
|
+
/**
|
17
|
+
* CSS property `grid-template-rows`, if {@linkcode isNumerical} divide equally.
|
18
|
+
*/
|
19
|
+
rows: string | number;
|
20
|
+
/**
|
21
|
+
* CSS property `place-content` (`align-content justify-content`).
|
22
|
+
*/
|
23
|
+
content: string;
|
24
|
+
/**
|
25
|
+
* CSS property `place-items` (`align-items justify-items`).
|
26
|
+
*/
|
27
|
+
items: string;
|
28
|
+
protected render(): import("lit").TemplateResult<1>[];
|
29
|
+
}
|
30
|
+
export default Grid;
|
31
|
+
//# sourceMappingURL=grid.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"grid.d.ts","sourceRoot":"","sources":["../src/components/grid.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAItD;;;;GAIG;AACH,cAEM,IAAK,SAAQ,WAAW;IAC5B;;OAEG;IAEH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IAEH,OAAO,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB;;OAEG;IAEH,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;IACtB;;OAEG;IAEH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IAEH,KAAK,EAAE,MAAM,CAAC;IAEd,SAAS,CAAC,MAAM;CAgBjB;AAED,eAAe,IAAI,CAAC"}
|
@@ -0,0 +1,56 @@
|
|
1
|
+
import { __decorate } from 'tslib';
|
2
|
+
import { godown } from '@godown/element/decorators/godown.js';
|
3
|
+
import { styles } from '@godown/element/decorators/styles.js';
|
4
|
+
import { htmlSlot } from '@godown/element/directives/html-slot.js';
|
5
|
+
import { htmlStyle } from '@godown/element/directives/html-style.js';
|
6
|
+
import { joinRules } from '@godown/element/tools/css.js';
|
7
|
+
import { isNumerical } from '@godown/element/tools/lib.js';
|
8
|
+
import { css } from 'lit';
|
9
|
+
import { property } from 'lit/decorators.js';
|
10
|
+
import { GlobalStyle } from '../core/global-style.js';
|
11
|
+
|
12
|
+
const protoName = "grid";
|
13
|
+
/**
|
14
|
+
* {@linkcode Grid} provides gird layout.
|
15
|
+
*
|
16
|
+
* @category layout
|
17
|
+
*/
|
18
|
+
let Grid = class Grid extends GlobalStyle {
|
19
|
+
render() {
|
20
|
+
return [
|
21
|
+
htmlSlot(),
|
22
|
+
htmlStyle(joinRules({
|
23
|
+
":host": {
|
24
|
+
gap: this.gap,
|
25
|
+
"grid-template-columns": isNumerical(this.columns) ? `repeat(${this.columns},1fr)` : this.columns,
|
26
|
+
"grid-template-rows": isNumerical(this.rows) ? `repeat(${this.rows},1fr)` : this.rows,
|
27
|
+
"place-content": this.content,
|
28
|
+
"place-items": this.items,
|
29
|
+
},
|
30
|
+
})),
|
31
|
+
];
|
32
|
+
}
|
33
|
+
};
|
34
|
+
__decorate([
|
35
|
+
property()
|
36
|
+
], Grid.prototype, "gap", void 0);
|
37
|
+
__decorate([
|
38
|
+
property()
|
39
|
+
], Grid.prototype, "columns", void 0);
|
40
|
+
__decorate([
|
41
|
+
property()
|
42
|
+
], Grid.prototype, "rows", void 0);
|
43
|
+
__decorate([
|
44
|
+
property()
|
45
|
+
], Grid.prototype, "content", void 0);
|
46
|
+
__decorate([
|
47
|
+
property()
|
48
|
+
], Grid.prototype, "items", void 0);
|
49
|
+
Grid = __decorate([
|
50
|
+
godown(protoName),
|
51
|
+
styles(css `:host{display:grid}`)
|
52
|
+
], Grid);
|
53
|
+
var Grid$1 = Grid;
|
54
|
+
|
55
|
+
export { Grid$1 as default };
|
56
|
+
//# sourceMappingURL=grid.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"grid.js","sources":["../src/components/grid.ts"],"sourcesContent":null,"names":[],"mappings":";;;;;;;;;;;AAWA,MAAM,SAAS,GAAG,MAAM,CAAC;AAEzB;;;;AAIG;AAGH,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,WAAW,CAAA;IA2BlB,MAAM,GAAA;QACd,OAAO;AACL,YAAA,QAAQ,EAAE;YACV,SAAS,CACP,SAAS,CAAC;AACR,gBAAA,OAAO,EAAE;oBACP,GAAG,EAAE,IAAI,CAAC,GAAG;oBACb,uBAAuB,EAAE,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,UAAU,IAAI,CAAC,OAAO,CAAO,KAAA,CAAA,GAAG,IAAI,CAAC,OAAO;oBACjG,oBAAoB,EAAE,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,UAAU,IAAI,CAAC,IAAI,CAAO,KAAA,CAAA,GAAG,IAAI,CAAC,IAAI;oBACrF,eAAe,EAAE,IAAI,CAAC,OAAO;oBAC7B,aAAa,EAAE,IAAI,CAAC,KAAK;AAC1B,iBAAA;AACF,aAAA,CAAC,CACH;SACF,CAAC;KACH;CACF,CAAA;AAtCC,UAAA,CAAA;AADC,IAAA,QAAQ,EAAE;AACC,CAAA,EAAA,IAAA,CAAA,SAAA,EAAA,KAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAKZ,UAAA,CAAA;AADC,IAAA,QAAQ,EAAE;AACc,CAAA,EAAA,IAAA,CAAA,SAAA,EAAA,SAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAKzB,UAAA,CAAA;AADC,IAAA,QAAQ,EAAE;AACW,CAAA,EAAA,IAAA,CAAA,SAAA,EAAA,MAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAKtB,UAAA,CAAA;AADC,IAAA,QAAQ,EAAE;AACK,CAAA,EAAA,IAAA,CAAA,SAAA,EAAA,SAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAKhB,UAAA,CAAA;AADC,IAAA,QAAQ,EAAE;AACG,CAAA,EAAA,IAAA,CAAA,SAAA,EAAA,OAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAzBV,IAAI,GAAA,UAAA,CAAA;IAFT,MAAM,CAAC,SAAS,CAAC;AACjB,IAAA,MAAM,CAAC,GAAG,CAAA,CAAA,mBAAA,CAAqB,CAAC;AAC3B,CAAA,EAAA,IAAI,CA2CT,CAAA;AAED,aAAe,IAAI;;;;"}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import SuperInput from "../core/super-input.js";
|
2
|
+
/**
|
3
|
+
* {@linkcode Input} used for text input.
|
4
|
+
*
|
5
|
+
* @category input
|
6
|
+
*/
|
7
|
+
declare class Input extends SuperInput {
|
8
|
+
type: "text" | "search" | "tel" | "url" | "email" | "password";
|
9
|
+
value: string;
|
10
|
+
/**
|
11
|
+
* If outline, the outline is always present.
|
12
|
+
*/
|
13
|
+
variant: "default" | "outline";
|
14
|
+
accept: string;
|
15
|
+
_input: HTMLInputElement;
|
16
|
+
protected render(): import("lit").TemplateResult<1>;
|
17
|
+
reset(): void;
|
18
|
+
}
|
19
|
+
export default Input;
|
20
|
+
//# sourceMappingURL=input.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../src/components/input.ts"],"names":[],"mappings":"AAQA,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAIhD;;;;GAIG;AACH,cAIM,KAAM,SAAQ,UAAU;IAC5B,IAAI,EAAE,MAAM,GAAG,QAAQ,GAAG,KAAK,GAAG,KAAK,GAAG,OAAO,GAAG,UAAU,CAAU;IACxE,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IAEH,OAAO,EAAE,SAAS,GAAG,SAAS,CAAa;IAG3C,MAAM,EAAE,MAAM,CAAC;IAGf,MAAM,EAAE,gBAAgB,CAAC;IAEzB,SAAS,CAAC,MAAM;IAQhB,KAAK;CAIN;AAED,eAAe,KAAK,CAAC"}
|
@@ -0,0 +1,54 @@
|
|
1
|
+
import { __decorate } from 'tslib';
|
2
|
+
import { godown } from '@godown/element/decorators/godown.js';
|
3
|
+
import { part } from '@godown/element/decorators/part.js';
|
4
|
+
import { styles } from '@godown/element/decorators/styles.js';
|
5
|
+
import { classList } from '@godown/element/directives/class-list.js';
|
6
|
+
import { css, html, nothing } from 'lit';
|
7
|
+
import { property } from 'lit/decorators.js';
|
8
|
+
import { cssGlobalVars } from '../core/global-style.js';
|
9
|
+
import SuperInput from '../core/super-input.js';
|
10
|
+
|
11
|
+
const protoName = "input";
|
12
|
+
/**
|
13
|
+
* {@linkcode Input} used for text input.
|
14
|
+
*
|
15
|
+
* @category input
|
16
|
+
*/
|
17
|
+
let Input = class Input extends SuperInput {
|
18
|
+
constructor() {
|
19
|
+
super(...arguments);
|
20
|
+
this.type = "text";
|
21
|
+
/**
|
22
|
+
* If outline, the outline is always present.
|
23
|
+
*/
|
24
|
+
this.variant = "default";
|
25
|
+
}
|
26
|
+
render() {
|
27
|
+
return html `<div part="root" class="${classList("input-field", this.variant)}">${[
|
28
|
+
this._renderPrefix(),
|
29
|
+
html `<input part="input" type="${this.type}" id="${this.makeId}" .value="${this.value}" placeholder="${this.placeholder || nothing}" ?autofocus="${this.autofocus}" autocapitalize="${this.autocapitalize || nothing}" autocomplete="${this.autocomplete || nothing}" ?disabled="${this.disabled}" @input="${this._handleInput}">`,
|
30
|
+
this._renderSuffix(),
|
31
|
+
]}</div>`;
|
32
|
+
}
|
33
|
+
reset() {
|
34
|
+
this._input.value = this.default;
|
35
|
+
this.value = this.default;
|
36
|
+
}
|
37
|
+
};
|
38
|
+
__decorate([
|
39
|
+
property()
|
40
|
+
], Input.prototype, "variant", void 0);
|
41
|
+
__decorate([
|
42
|
+
property()
|
43
|
+
], Input.prototype, "accept", void 0);
|
44
|
+
__decorate([
|
45
|
+
part("input")
|
46
|
+
], Input.prototype, "_input", void 0);
|
47
|
+
Input = __decorate([
|
48
|
+
godown(protoName),
|
49
|
+
styles(css `:host{width:var(${cssGlobalVars.input}-width);height:var(${cssGlobalVars.input}-height);color:var(${cssGlobalVars.foreground});background:var(${cssGlobalVars.input}-background);border-radius:var(${cssGlobalVars.input}-radius);display:block}[part=root]{width:100%;display:flex;align-items:center;cursor:inherit}input{height:100%;width:100%;margin:0;color:inherit;cursor:inherit;border-radius:inherit}`)
|
50
|
+
], Input);
|
51
|
+
var Input$1 = Input;
|
52
|
+
|
53
|
+
export { Input$1 as default };
|
54
|
+
//# sourceMappingURL=input.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"input.js","sources":["../src/components/input.ts"],"sourcesContent":null,"names":[],"mappings":";;;;;;;;;;AAUA,MAAM,SAAS,GAAG,OAAO,CAAC;AAE1B;;;;AAIG;AAKH,IAAM,KAAK,GAAX,MAAM,KAAM,SAAQ,UAAU,CAAA;AAA9B,IAAA,WAAA,GAAA;;QACE,IAAI,CAAA,IAAA,GAA6D,MAAM,CAAC;AAGxE;;AAEG;QAEH,IAAO,CAAA,OAAA,GAA0B,SAAS,CAAC;KAiC5C;IAzBW,MAAM,GAAA;QACd,OAAO,IAAI,CAAA,CAAA,wBAAA,EAA2B,SAAS,CAAC,aAAa,EAAE,IAAI,CAAC,OAAO,CAAC,CAC1E,EAAA,EAAA;YACA,IAAI,CAAC,aAAa,EAAE;AACpB,YAAA,IAAI,CAAA,CAEM,0BAAA,EAAA,IAAI,CAAC,IAAI,CAAA,MAAA,EACX,IAAI,CAAC,MAAM,aACP,IAAI,CAAC,KAAK,CACL,eAAA,EAAA,IAAI,CAAC,WAAW,IAAI,OAAO,CAC5B,cAAA,EAAA,IAAI,CAAC,SAAS,CAAA,kBAAA,EACV,IAAI,CAAC,cAAc,IAAI,OAAO,CAAA,gBAAA,EAChC,IAAI,CAAC,YAAY,IAAI,OAAO,CAAA,aAAA,EAC/B,IAAI,CAAC,QAAQ,aAChB,IAAI,CAAC,YAAY,CAC3B,EAAA,CAAA;YACF,IAAI,CAAC,aAAa,EAAE;AACrB,SAAA,CAAA,MAAA,CACM,CAAC;KACT;IAED,KAAK,GAAA;QACH,IAAI,CAAC,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC;AACjC,QAAA,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC;KAC3B;CACF,CAAA;AAjCC,UAAA,CAAA;AADC,IAAA,QAAQ,EAAE;AACgC,CAAA,EAAA,KAAA,CAAA,SAAA,EAAA,SAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAG3C,UAAA,CAAA;AADC,IAAA,QAAQ,EAAE;AACI,CAAA,EAAA,KAAA,CAAA,SAAA,EAAA,QAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAGf,UAAA,CAAA;IADC,IAAI,CAAC,OAAO,CAAC;AACW,CAAA,EAAA,KAAA,CAAA,SAAA,EAAA,QAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAdrB,KAAK,GAAA,UAAA,CAAA;IAJV,MAAM,CAAC,SAAS,CAAC;IACjB,MAAM,CACL,GAAG,CAAA,CAAmB,gBAAA,EAAA,aAAa,CAAC,KAAK,CAAA,mBAAA,EAAsB,aAAa,CAAC,KAAK,CAAA,mBAAA,EAAsB,aAAa,CAAC,UAAU,CAAoB,iBAAA,EAAA,aAAa,CAAC,KAAK,kCAAkC,aAAa,CAAC,KAAK,CAAA,sLAAA,CAA0L,CACvZ;AACK,CAAA,EAAA,KAAK,CAyCV,CAAA;AAED,cAAe,KAAK;;;;"}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import { GlobalStyle } from "../core/global-style.js";
|
2
|
+
/**
|
3
|
+
* {@linkcode NavLayout} renders slot and optional top header, bottom footer.
|
4
|
+
*
|
5
|
+
* @slot - The main content of the layout.
|
6
|
+
*
|
7
|
+
* @slot header - The header of the layout.
|
8
|
+
*
|
9
|
+
* @slot footer - The footer of the layout.
|
10
|
+
*
|
11
|
+
* @category layout
|
12
|
+
*/
|
13
|
+
declare class NavLayout extends GlobalStyle {
|
14
|
+
/**
|
15
|
+
* If true, hide the header slot.
|
16
|
+
*/
|
17
|
+
noHeader: boolean;
|
18
|
+
/**
|
19
|
+
* If true, hide the footer slot.
|
20
|
+
*/
|
21
|
+
noFooter: boolean;
|
22
|
+
/**
|
23
|
+
* If true, header will sticky.
|
24
|
+
*/
|
25
|
+
sticky: boolean;
|
26
|
+
protected render(): import("lit").TemplateResult<1>[];
|
27
|
+
}
|
28
|
+
export default NavLayout;
|
29
|
+
//# sourceMappingURL=layout.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../src/components/layout.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAItD;;;;;;;;;;GAUG;AACH,cAIM,SAAU,SAAQ,WAAW;IACjC;;OAEG;IAEH,QAAQ,EAAE,OAAO,CAAC;IAClB;;OAEG;IAEH,QAAQ,EAAE,OAAO,CAAC;IAElB;;OAEG;IAEH,MAAM,EAAE,OAAO,CAAC;IAEhB,SAAS,CAAC,MAAM;CAUjB;AAED,eAAe,SAAS,CAAC"}
|
@@ -0,0 +1,48 @@
|
|
1
|
+
import { __decorate } from 'tslib';
|
2
|
+
import { godown } from '@godown/element/decorators/godown.js';
|
3
|
+
import { styles } from '@godown/element/decorators/styles.js';
|
4
|
+
import { classList } from '@godown/element/directives/class-list.js';
|
5
|
+
import { conditionIf } from '@godown/element/directives/condition-if.js';
|
6
|
+
import { htmlSlot } from '@godown/element/directives/html-slot.js';
|
7
|
+
import { css, html } from 'lit';
|
8
|
+
import { property } from 'lit/decorators.js';
|
9
|
+
import { GlobalStyle } from '../core/global-style.js';
|
10
|
+
|
11
|
+
const protoName = "layout";
|
12
|
+
/**
|
13
|
+
* {@linkcode NavLayout} renders slot and optional top header, bottom footer.
|
14
|
+
*
|
15
|
+
* @slot - The main content of the layout.
|
16
|
+
*
|
17
|
+
* @slot header - The header of the layout.
|
18
|
+
*
|
19
|
+
* @slot footer - The footer of the layout.
|
20
|
+
*
|
21
|
+
* @category layout
|
22
|
+
*/
|
23
|
+
let NavLayout = class NavLayout extends GlobalStyle {
|
24
|
+
render() {
|
25
|
+
return [
|
26
|
+
conditionIf(!this.noHeader, html `<header part="header" class="${classList({ sticky: this.sticky })}">${htmlSlot("header")}</header>`),
|
27
|
+
html `<main part="main">${htmlSlot()}</main>`,
|
28
|
+
conditionIf(!this.noFooter, html `<footer part="footer">${htmlSlot("footer")}</footer>`),
|
29
|
+
];
|
30
|
+
}
|
31
|
+
};
|
32
|
+
__decorate([
|
33
|
+
property({ type: Boolean })
|
34
|
+
], NavLayout.prototype, "noHeader", void 0);
|
35
|
+
__decorate([
|
36
|
+
property({ type: Boolean })
|
37
|
+
], NavLayout.prototype, "noFooter", void 0);
|
38
|
+
__decorate([
|
39
|
+
property({ type: Boolean })
|
40
|
+
], NavLayout.prototype, "sticky", void 0);
|
41
|
+
NavLayout = __decorate([
|
42
|
+
godown(protoName),
|
43
|
+
styles(css `:host{min-height:100%;display:flex;flex-direction:column}.sticky{position:sticky;top:0;z-index:1}[part=main]{position:relative;flex:1;width:100%}footer,header,main{width:100%}`)
|
44
|
+
], NavLayout);
|
45
|
+
var Layout = NavLayout;
|
46
|
+
|
47
|
+
export { Layout as default };
|
48
|
+
//# sourceMappingURL=layout.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"layout.js","sources":["../src/components/layout.ts"],"sourcesContent":null,"names":[],"mappings":";;;;;;;;;;AAUA,MAAM,SAAS,GAAG,QAAQ,CAAC;AAE3B;;;;;;;;;;AAUG;AAKH,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,WAAW,CAAA;IAkBvB,MAAM,GAAA;QACd,OAAO;YACL,WAAW,CACT,CAAC,IAAI,CAAC,QAAQ,EACd,IAAI,CAAA,CAAgC,6BAAA,EAAA,SAAS,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,CAAK,EAAA,EAAA,QAAQ,CAAC,QAAQ,CAAC,CAAA,SAAA,CAAW,CACzG;AACD,YAAA,IAAI,CAAA,CAAA,kBAAA,EAAqB,QAAQ,EAAE,CAAS,OAAA,CAAA;AAC5C,YAAA,WAAW,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAA,CAAA,sBAAA,EAAyB,QAAQ,CAAC,QAAQ,CAAC,WAAY,CAAC;SACzF,CAAC;KACH;CACF,CAAA;AAvBC,UAAA,CAAA;AADC,IAAA,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;AACV,CAAA,EAAA,SAAA,CAAA,SAAA,EAAA,UAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAKlB,UAAA,CAAA;AADC,IAAA,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;AACV,CAAA,EAAA,SAAA,CAAA,SAAA,EAAA,UAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAMlB,UAAA,CAAA;AADC,IAAA,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;AACZ,CAAA,EAAA,SAAA,CAAA,SAAA,EAAA,QAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAhBZ,SAAS,GAAA,UAAA,CAAA;IAJd,MAAM,CAAC,SAAS,CAAC;AACjB,IAAA,MAAM,CACL,GAAG,CAAA,CAAA,+KAAA,CAAmL,CACvL;AACK,CAAA,EAAA,SAAS,CA4Bd,CAAA;AAED,aAAe,SAAS;;;;"}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import SuperAnchor from "../core/super-anchor.js";
|
2
|
+
/**
|
3
|
+
* {@linkcode Link} is used for link jumping.
|
4
|
+
*
|
5
|
+
* Set `type` to `"push" `or `"replace"`,
|
6
|
+
* will invoke the history api and trigger the {@linkcode Router.updateAll}.
|
7
|
+
*
|
8
|
+
* @category navigation
|
9
|
+
*/
|
10
|
+
declare class Link extends SuperAnchor {
|
11
|
+
/**
|
12
|
+
* If "push", call `history.pushState`.
|
13
|
+
*
|
14
|
+
* If "replace", call `history.replaceState`
|
15
|
+
*/
|
16
|
+
type: "push" | "replace" | "normal";
|
17
|
+
protected _handleClick(e: MouseEvent): void;
|
18
|
+
}
|
19
|
+
export default Link;
|
20
|
+
//# sourceMappingURL=link.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../src/components/link.ts"],"names":[],"mappings":"AAGA,OAAO,WAAW,MAAM,yBAAyB,CAAC;AAKlD;;;;;;;GAOG;AACH,cACM,IAAK,SAAQ,WAAW;IAC5B;;;;OAIG;IAEH,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,QAAQ,CAAY;IAE/C,SAAS,CAAC,YAAY,CAAC,CAAC,EAAE,UAAU;CAOrC;AAED,eAAe,IAAI,CAAC"}
|
@@ -0,0 +1,43 @@
|
|
1
|
+
import { __decorate } from 'tslib';
|
2
|
+
import { godown } from '@godown/element/decorators/godown.js';
|
3
|
+
import { property } from 'lit/decorators.js';
|
4
|
+
import SuperAnchor from '../core/super-anchor.js';
|
5
|
+
import Router from './router.js';
|
6
|
+
|
7
|
+
const protoName = "link";
|
8
|
+
/**
|
9
|
+
* {@linkcode Link} is used for link jumping.
|
10
|
+
*
|
11
|
+
* Set `type` to `"push" `or `"replace"`,
|
12
|
+
* will invoke the history api and trigger the {@linkcode Router.updateAll}.
|
13
|
+
*
|
14
|
+
* @category navigation
|
15
|
+
*/
|
16
|
+
let Link = class Link extends SuperAnchor {
|
17
|
+
constructor() {
|
18
|
+
super(...arguments);
|
19
|
+
/**
|
20
|
+
* If "push", call `history.pushState`.
|
21
|
+
*
|
22
|
+
* If "replace", call `history.replaceState`
|
23
|
+
*/
|
24
|
+
this.type = "normal";
|
25
|
+
}
|
26
|
+
_handleClick(e) {
|
27
|
+
if (this.type === "push" || this.type === "replace") {
|
28
|
+
e.preventDefault();
|
29
|
+
(history[`${this.type}State`])(null, "", this.href);
|
30
|
+
Router.updateAll();
|
31
|
+
}
|
32
|
+
}
|
33
|
+
};
|
34
|
+
__decorate([
|
35
|
+
property()
|
36
|
+
], Link.prototype, "type", void 0);
|
37
|
+
Link = __decorate([
|
38
|
+
godown(protoName)
|
39
|
+
], Link);
|
40
|
+
var Link$1 = Link;
|
41
|
+
|
42
|
+
export { Link$1 as default };
|
43
|
+
//# sourceMappingURL=link.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"link.js","sources":["../src/components/link.ts"],"sourcesContent":null,"names":[],"mappings":";;;;;;AAMA,MAAM,SAAS,GAAG,MAAM,CAAC;AAEzB;;;;;;;AAOG;AAEH,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,WAAW,CAAA;AAA9B,IAAA,WAAA,GAAA;;AACE;;;;AAIG;QAEH,IAAI,CAAA,IAAA,GAAkC,QAAQ,CAAC;KAShD;AAPW,IAAA,YAAY,CAAC,CAAa,EAAA;AAClC,QAAA,IAAI,IAAI,CAAC,IAAI,KAAK,MAAM,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS,EAAE;YACnD,CAAC,CAAC,cAAc,EAAE,CAAC;AACnB,YAAA,CAAC,OAAO,CAAC,CAAA,EAAG,IAAI,CAAC,IAAI,OAAO,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;YACpD,MAAM,CAAC,SAAS,EAAE,CAAC;SACpB;KACF;CACF,CAAA;AATC,UAAA,CAAA;AADC,IAAA,QAAQ,EAAE;AACoC,CAAA,EAAA,IAAA,CAAA,SAAA,EAAA,MAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAP3C,IAAI,GAAA,UAAA,CAAA;IADT,MAAM,CAAC,SAAS,CAAC;AACZ,CAAA,EAAA,IAAI,CAgBT,CAAA;AAED,aAAe,IAAI;;;;"}
|
@@ -1,8 +1,10 @@
|
|
1
|
-
import {
|
1
|
+
import { GlobalStyle } from "../core/global-style.js";
|
2
2
|
/**
|
3
|
-
* {@linkcode Progress} similar to
|
3
|
+
* {@linkcode Progress} similar to <progress>.
|
4
|
+
*
|
5
|
+
* @category feedback
|
4
6
|
*/
|
5
|
-
|
7
|
+
declare class Progress extends GlobalStyle {
|
6
8
|
/**
|
7
9
|
* Maximum.
|
8
10
|
*/
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../src/components/progress.ts"],"names":[],"mappings":"AAKA,OAAO,EAAiB,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAIrE;;;;GAIG;AACH,cAEM,QAAS,SAAQ,WAAW;IAChC;;OAEG;IAEH,GAAG,SAAK;IACR;;OAEG;IAEH,GAAG,SAAK;IACR;;OAEG;IAEH,KAAK,MAAQ;IAEb,SAAS,CAAC,MAAM;IAUhB;;;;;OAKG;IACH,YAAY,CAAC,CAAC,GAAE,MAAM,GAAG,MAAY,GAAG,MAAM;CAM/C;AAED,eAAe,QAAQ,CAAC"}
|
@@ -0,0 +1,68 @@
|
|
1
|
+
import { __decorate } from 'tslib';
|
2
|
+
import { godown } from '@godown/element/decorators/godown.js';
|
3
|
+
import { styles } from '@godown/element/decorators/styles.js';
|
4
|
+
import { css, html } from 'lit';
|
5
|
+
import { property } from 'lit/decorators.js';
|
6
|
+
import { cssGlobalVars, GlobalStyle } from '../core/global-style.js';
|
7
|
+
|
8
|
+
const protoName = "progress";
|
9
|
+
/**
|
10
|
+
* {@linkcode Progress} similar to <progress>.
|
11
|
+
*
|
12
|
+
* @category feedback
|
13
|
+
*/
|
14
|
+
let Progress = class Progress extends GlobalStyle {
|
15
|
+
constructor() {
|
16
|
+
super(...arguments);
|
17
|
+
/**
|
18
|
+
* Maximum.
|
19
|
+
*/
|
20
|
+
this.max = 1;
|
21
|
+
/**
|
22
|
+
* Minimum.
|
23
|
+
*/
|
24
|
+
this.min = 0;
|
25
|
+
/**
|
26
|
+
* Input value.
|
27
|
+
*/
|
28
|
+
this.value = null;
|
29
|
+
}
|
30
|
+
render() {
|
31
|
+
let width = 20;
|
32
|
+
let className;
|
33
|
+
if (this.value !== null) {
|
34
|
+
width = this.parsePercent(this.value);
|
35
|
+
className = "static";
|
36
|
+
}
|
37
|
+
return html `<div part="root" class="${className}"><i part="value" style="width:${width}"></i></div>`;
|
38
|
+
}
|
39
|
+
/**
|
40
|
+
* Convert s to a percentage without a percent sign.
|
41
|
+
*
|
42
|
+
* @param s String or number to convert.
|
43
|
+
* @returns Percentage without a percent sign.
|
44
|
+
*/
|
45
|
+
parsePercent(s = "0") {
|
46
|
+
if (String(s).includes("%")) {
|
47
|
+
return parseFloat(String(s));
|
48
|
+
}
|
49
|
+
return (parseFloat(String(s)) / (this.max - this.min)) * 100;
|
50
|
+
}
|
51
|
+
};
|
52
|
+
__decorate([
|
53
|
+
property({ type: Number })
|
54
|
+
], Progress.prototype, "max", void 0);
|
55
|
+
__decorate([
|
56
|
+
property({ type: Number })
|
57
|
+
], Progress.prototype, "min", void 0);
|
58
|
+
__decorate([
|
59
|
+
property({ type: Number, reflect: true })
|
60
|
+
], Progress.prototype, "value", void 0);
|
61
|
+
Progress = __decorate([
|
62
|
+
godown(protoName),
|
63
|
+
styles(css `:host{width:100%;height:.5em;display:inline-block;border-radius:.25em;background:var(${cssGlobalVars.passive});color:var(${cssGlobalVars.active})}[part=root]{height:inherit;z-index:1;position:relative;border-radius:inherit}[part=value]{position:absolute;z-index:2;top:0;left:0;height:100%;border-radius:inherit;transition:all .3s;animation:progress 1.8s ease-in-out infinite alternate;background:currentColor}@keyframes progress{from{left:0}to{left:80%}}.static [part=value]{animation:none}`)
|
64
|
+
], Progress);
|
65
|
+
var Progress$1 = Progress;
|
66
|
+
|
67
|
+
export { Progress$1 as default };
|
68
|
+
//# sourceMappingURL=progress.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"progress.js","sources":["../src/components/progress.ts"],"sourcesContent":null,"names":[],"mappings":";;;;;;;AAOA,MAAM,SAAS,GAAG,UAAU,CAAC;AAE7B;;;;AAIG;AAGH,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,WAAW,CAAA;AAAlC,IAAA,WAAA,GAAA;;AACE;;AAEG;QAEH,IAAG,CAAA,GAAA,GAAG,CAAC,CAAC;AACR;;AAEG;QAEH,IAAG,CAAA,GAAA,GAAG,CAAC,CAAC;AACR;;AAEG;QAEH,IAAK,CAAA,KAAA,GAAG,IAAI,CAAC;KA0Bd;IAxBW,MAAM,GAAA;QACd,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,QAAA,IAAI,SAAiB,CAAC;AACtB,QAAA,IAAI,IAAI,CAAC,KAAK,KAAK,IAAI,EAAE;YACvB,KAAK,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACtC,SAAS,GAAG,QAAQ,CAAC;SACtB;AACD,QAAA,OAAO,IAAI,CAAA,CAAA,wBAAA,EAA2B,SAAS,CACd,+BAAA,EAAA,KAAK,cAC/B,CAAC;KACT;AAED;;;;;AAKG;IACH,YAAY,CAAC,IAAqB,GAAG,EAAA;QACnC,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;AAC3B,YAAA,OAAO,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;SAC9B;QACD,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC;KAC9D;CACF,CAAA;AApCC,UAAA,CAAA;AADC,IAAA,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;AACnB,CAAA,EAAA,QAAA,CAAA,SAAA,EAAA,KAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAKR,UAAA,CAAA;AADC,IAAA,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;AACnB,CAAA,EAAA,QAAA,CAAA,SAAA,EAAA,KAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAKR,UAAA,CAAA;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;AAC7B,CAAA,EAAA,QAAA,CAAA,SAAA,EAAA,OAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAfT,QAAQ,GAAA,UAAA,CAAA;IAFb,MAAM,CAAC,SAAS,CAAC;AACjB,IAAA,MAAM,CAAC,GAAG,CAAA,CAAA,qFAAA,EAA0F,aAAa,CAAC,OAAO,CAAA,YAAA,EAAe,aAAa,CAAC,MAAM,CAAA,0VAAA,CAAmW,CAAC;AAC3f,CAAA,EAAA,QAAQ,CAyCb,CAAA;AAED,iBAAe,QAAQ;;;;"}
|
@@ -0,0 +1,60 @@
|
|
1
|
+
import SuperInput from "../core/super-input.js";
|
2
|
+
/**
|
3
|
+
* {@linkcode Range} is similar to <input type="range">.
|
4
|
+
*
|
5
|
+
* Value accepts a number, or an array of two numbers.
|
6
|
+
*
|
7
|
+
* Number have one handle, array have two.
|
8
|
+
*
|
9
|
+
* @category input
|
10
|
+
*/
|
11
|
+
declare class Range extends SuperInput {
|
12
|
+
/**
|
13
|
+
* Minimum value.
|
14
|
+
*/
|
15
|
+
min: number;
|
16
|
+
/**
|
17
|
+
* Maximum value.
|
18
|
+
*/
|
19
|
+
max: number;
|
20
|
+
/**
|
21
|
+
* Sliding step length.
|
22
|
+
*/
|
23
|
+
step: number;
|
24
|
+
vertical: boolean;
|
25
|
+
/**
|
26
|
+
* When `this.range` is true, it should be [number, number], otherwise number.
|
27
|
+
*/
|
28
|
+
value: number | [number, number];
|
29
|
+
/**
|
30
|
+
* The default of `this.value`.
|
31
|
+
*/
|
32
|
+
default: number | [number, number];
|
33
|
+
_root: HTMLElement;
|
34
|
+
lastFocus: undefined | 1 | 2;
|
35
|
+
/**
|
36
|
+
* Returns true when the second number is greater than the first number
|
37
|
+
*/
|
38
|
+
get reverse(): boolean;
|
39
|
+
/**
|
40
|
+
* Enable range sliding.
|
41
|
+
*/
|
42
|
+
get range(): boolean;
|
43
|
+
get rangeValue(): [number, number];
|
44
|
+
protected render(): import("lit").TemplateResult<1>;
|
45
|
+
protected _handleMousedownStart(e: MouseEvent): void;
|
46
|
+
protected _handleMousedownEnd(e: MouseEvent): void;
|
47
|
+
setStart(value: number): void;
|
48
|
+
setEnd(value: number): void;
|
49
|
+
protected _computeValue(e: MouseEvent): number;
|
50
|
+
protected _handleMousedownRoot(e: MouseEvent): void;
|
51
|
+
protected createMousedownListener(mouseMoveCallback: (arg0: number) => void): (e: MouseEvent) => void;
|
52
|
+
protected createMousemoveListener(callback: (arg0: number) => void): (e: MouseEvent) => void;
|
53
|
+
protected _connectedInit(): void;
|
54
|
+
reset(): void;
|
55
|
+
swap(): void;
|
56
|
+
sort(): void;
|
57
|
+
toSorted(): number | [number, number];
|
58
|
+
}
|
59
|
+
export default Range;
|
60
|
+
//# sourceMappingURL=range.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"range.d.ts","sourceRoot":"","sources":["../src/components/range.ts"],"names":[],"mappings":"AAYA,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAKhD;;;;;;;;GAQG;AACH,cAMM,KAAM,SAAQ,UAAU;IAC5B;;OAEG;IAEH,GAAG,SAAK;IACR;;OAEG;IAEH,GAAG,SAAO;IACV;;OAEG;IAEH,IAAI,SAAK;IAGT,QAAQ,EAAE,OAAO,CAAC;IAElB;;OAEG;IAEH,KAAK,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC;;OAEG;IAEH,OAAO,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAGnC,KAAK,EAAE,WAAW,CAAC;IAGnB,SAAS,EAAE,SAAS,GAAG,CAAC,GAAG,CAAC,CAAC;IAE7B;;OAEG;IACH,IAAI,OAAO,YAEV;IAED;;OAEG;IACH,IAAI,KAAK,IAAI,OAAO,CAEnB;IAED,IAAI,UAAU,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,CAEjC;IAED,SAAS,CAAC,MAAM;IAmBhB,SAAS,CAAC,qBAAqB,CAAC,CAAC,EAAE,UAAU;IAI7C,SAAS,CAAC,mBAAmB,CAAC,CAAC,EAAE,UAAU;IAK3C,QAAQ,CAAC,KAAK,EAAE,MAAM;IAKtB,MAAM,CAAC,KAAK,EAAE,MAAM;IAKpB,SAAS,CAAC,aAAa,CAAC,CAAC,EAAE,UAAU;IASrC,SAAS,CAAC,oBAAoB,CAAC,CAAC,EAAE,UAAU;IAW5C,SAAS,CAAC,uBAAuB,CAAC,iBAAiB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,OAC9D,UAAU;IAavB,SAAS,CAAC,uBAAuB,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,OACrD,UAAU;IASvB,SAAS,CAAC,cAAc;IAcxB,KAAK;IAIL,IAAI;IAOJ,IAAI;IAIJ,QAAQ,IAAI,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC;CAOtC;AAED,eAAe,KAAK,CAAC"}
|