godown 2.7.7 → 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
@@ -0,0 +1,39 @@
|
|
1
|
+
import { __decorate } from 'tslib';
|
2
|
+
import { styles } from '@godown/element/decorators/index.js';
|
3
|
+
import { htmlSlot } from '@godown/element/directives/html-slot.js';
|
4
|
+
import { css, html } from 'lit';
|
5
|
+
import { property } from 'lit/decorators.js';
|
6
|
+
import { ifDefined } from 'lit/directives/if-defined.js';
|
7
|
+
import { GlobalStyle } from './global-style.js';
|
8
|
+
|
9
|
+
let SuperAnchor = class SuperAnchor extends GlobalStyle {
|
10
|
+
constructor() {
|
11
|
+
super(...arguments);
|
12
|
+
/**
|
13
|
+
* A element href.
|
14
|
+
*/
|
15
|
+
this.href = undefined;
|
16
|
+
/**
|
17
|
+
* A element target.
|
18
|
+
*/
|
19
|
+
this.target = "_self";
|
20
|
+
}
|
21
|
+
render() {
|
22
|
+
return html `<a part="root" href="${ifDefined(this.href)}" target="${this.target}" @click="${this._handleClick}">${htmlSlot()}</a>`;
|
23
|
+
}
|
24
|
+
// eslint-disable-next-line
|
25
|
+
_handleClick(_) { }
|
26
|
+
};
|
27
|
+
__decorate([
|
28
|
+
property()
|
29
|
+
], SuperAnchor.prototype, "href", void 0);
|
30
|
+
__decorate([
|
31
|
+
property()
|
32
|
+
], SuperAnchor.prototype, "target", void 0);
|
33
|
+
SuperAnchor = __decorate([
|
34
|
+
styles(css `:host{display:inline-block;color:currentColor;text-decoration:none;cursor:default}:host([href]){cursor:pointer}a{width:100%;display:flex;color:inherit;text-decoration:inherit;justify-content:space-between;align-items:center}`)
|
35
|
+
], SuperAnchor);
|
36
|
+
var SuperAnchor$1 = SuperAnchor;
|
37
|
+
|
38
|
+
export { SuperAnchor$1 as default };
|
39
|
+
//# sourceMappingURL=super-anchor.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"super-anchor.js","sources":["../src/core/super-anchor.ts"],"sourcesContent":null,"names":[],"mappings":";;;;;;;;AASA,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,WAAW,CAAA;AAArC,IAAA,WAAA,GAAA;;AACE;;AAEG;QAEH,IAAI,CAAA,IAAA,GAAW,SAAS,CAAC;AACzB;;AAEG;QAEH,IAAM,CAAA,MAAA,GAA4C,OAAO,CAAC;KAU3D;IARW,MAAM,GAAA;QACd,OAAO,IAAI,CAAA,CAAwB,qBAAA,EAAA,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA,UAAA,EAAa,IAAI,CAAC,MAAM,aAAY,IAAI,CAAC,YAAY,CACxG,EAAA,EAAA,QAAQ,EAAE,CAAA,IAAA,CACT,CAAC;KACP;;IAGS,YAAY,CAAC,CAAa,EAAA,GAAI;CACzC,CAAA;AAfC,UAAA,CAAA;AADC,IAAA,QAAQ,EAAE;AACc,CAAA,EAAA,WAAA,CAAA,SAAA,EAAA,MAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAKzB,UAAA,CAAA;AADC,IAAA,QAAQ,EAAE;AAC+C,CAAA,EAAA,WAAA,CAAA,SAAA,EAAA,QAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAVtD,WAAW,GAAA,UAAA,CAAA;AADhB,IAAA,MAAM,CAAC,GAAG,CAAA,CAAA,gOAAA,CAAkO,CAAC;AACxO,CAAA,EAAA,WAAW,CAoBhB,CAAA;AAED,oBAAe,WAAW;;;;"}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
import { type HandlerEvent } from "@godown/element/element.js";
|
2
|
+
import { GlobalStyle } from "./global-style.js";
|
3
|
+
declare class SuperInput extends GlobalStyle {
|
4
|
+
autofocus: boolean;
|
5
|
+
autocomplete: string | boolean;
|
6
|
+
disabled: boolean;
|
7
|
+
type: InputType;
|
8
|
+
placeholder: string;
|
9
|
+
label: string;
|
10
|
+
name: string;
|
11
|
+
value: any;
|
12
|
+
/**
|
13
|
+
* default property records the default or initial value and is used to reset the input.
|
14
|
+
*/
|
15
|
+
default: any;
|
16
|
+
_input: HTMLInputElement;
|
17
|
+
/**
|
18
|
+
* Returns true when the input is compositing.
|
19
|
+
*/
|
20
|
+
compositing: boolean;
|
21
|
+
set defaultValue(value: typeof this.default);
|
22
|
+
get defaultValue(): typeof this.default;
|
23
|
+
makeId: string;
|
24
|
+
namevalue(): [string, any];
|
25
|
+
nameValue: () => [string, any];
|
26
|
+
reset(): void;
|
27
|
+
protected _handleInput(e: HandlerEvent<HTMLInputElement>): void;
|
28
|
+
connectedCallback(): void;
|
29
|
+
protected _connectedInit(): void;
|
30
|
+
protected _compositionInit(): void;
|
31
|
+
protected _changeInputType(t: typeof this.type): void;
|
32
|
+
focus(options?: FocusOptions): void;
|
33
|
+
protected firstUpdated(): void;
|
34
|
+
protected _renderPrefix(): import("lit").TemplateResult<1>;
|
35
|
+
protected _renderSuffix(): import("lit").TemplateResult<1>;
|
36
|
+
}
|
37
|
+
export default SuperInput;
|
38
|
+
type InputType = "hidden" | "text" | "search" | "tel" | "url" | "email" | "password" | "datetime" | "date" | "month" | "week" | "time" | "datetime-local" | "number" | "range" | "color" | "checkbox" | "radio" | "file" | "image";
|
39
|
+
//# sourceMappingURL=super-input.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"super-input.d.ts","sourceRoot":"","sources":["../src/core/super-input.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAK/D,OAAO,EAAiB,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAM/D,cACM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AO,GACP,MAAM,GACN,OAAO,CAAC"}
|
@@ -0,0 +1,115 @@
|
|
1
|
+
import { __decorate } from 'tslib';
|
2
|
+
import { part } from '@godown/element/decorators/part.js';
|
3
|
+
import { styles } from '@godown/element/decorators/styles.js';
|
4
|
+
import { htmlSlot } from '@godown/element/directives/index.js';
|
5
|
+
import iconEyeSlashFill from '@godown/f7-icon/icons/eye-slash-fill.js';
|
6
|
+
import { css, html } from 'lit';
|
7
|
+
import { property } from 'lit/decorators.js';
|
8
|
+
import { cssGlobalVars, GlobalStyle } from './global-style.js';
|
9
|
+
|
10
|
+
const fieldStyle = css `.input-field{display:flex;position:relative;align-items:center;border-radius:inherit;height:inherit}.input-field input{background:0 0}.input-field.outline,.input-field:focus-within{box-shadow:var(${cssGlobalVars.input}-box-shadow)}.input-field i{display:flex;align-items:center;justify-content:center}.input-field label{height:100%;display:flex}.input-field [part=space]{width:var(${cssGlobalVars.input}-space)}input::-ms-clear,input::-ms-reveal{display:none}`;
|
11
|
+
const inputStyle = css `:host{${cssGlobalVars.input}-width:10em;${cssGlobalVars.input}-height:1.6em;${cssGlobalVars.input}-space:.2em;${cssGlobalVars.input}-background:var(${cssGlobalVars.background});${cssGlobalVars.input}-control:var(${cssGlobalVars.foreground});${cssGlobalVars.input}-control-edge:var(${cssGlobalVars.active});${cssGlobalVars.input}-radius:.2em;${cssGlobalVars.input}-box-shadow:0 0 0 .1em var(${cssGlobalVars.active});border-radius:var(${cssGlobalVars.input}-radius)}:host([disabled]){cursor:not-allowed;filter:brightness(.85)}input:disabled{cursor:inherit}`;
|
12
|
+
let SuperInput = class SuperInput extends GlobalStyle {
|
13
|
+
constructor() {
|
14
|
+
super(...arguments);
|
15
|
+
this.makeId = Math.random().toString(36).slice(1);
|
16
|
+
this.nameValue = this.namevalue;
|
17
|
+
}
|
18
|
+
set defaultValue(value) {
|
19
|
+
this.default = value;
|
20
|
+
}
|
21
|
+
get defaultValue() {
|
22
|
+
return this.default;
|
23
|
+
}
|
24
|
+
namevalue() {
|
25
|
+
return [this.name, this.value];
|
26
|
+
}
|
27
|
+
reset() {
|
28
|
+
this.value = this.default;
|
29
|
+
this._input.value = this.default;
|
30
|
+
}
|
31
|
+
_handleInput(e) {
|
32
|
+
e.stopPropagation();
|
33
|
+
if (this.compositing) {
|
34
|
+
return;
|
35
|
+
}
|
36
|
+
this.value = e.target.value?.trim();
|
37
|
+
this.dispatchEvent(new CustomEvent("input", {
|
38
|
+
detail: this.value,
|
39
|
+
bubbles: true,
|
40
|
+
composed: true,
|
41
|
+
}));
|
42
|
+
this.dispatchEvent(new CustomEvent("change", { detail: this.value, composed: true }));
|
43
|
+
}
|
44
|
+
connectedCallback() {
|
45
|
+
super.connectedCallback();
|
46
|
+
this._connectedInit();
|
47
|
+
}
|
48
|
+
_connectedInit() {
|
49
|
+
this.default ??= this.value || "";
|
50
|
+
this.value ??= this.default;
|
51
|
+
}
|
52
|
+
_compositionInit() {
|
53
|
+
if (this._input) {
|
54
|
+
this.events.add(this._input, "compositionstart", () => this.compositing = true);
|
55
|
+
this.events.add(this._input, "compositionend", (e) => {
|
56
|
+
this.compositing = false;
|
57
|
+
this._handleInput(e);
|
58
|
+
});
|
59
|
+
}
|
60
|
+
}
|
61
|
+
_changeInputType(t) {
|
62
|
+
if (this._input) {
|
63
|
+
this._input.type = t;
|
64
|
+
}
|
65
|
+
}
|
66
|
+
focus(options) {
|
67
|
+
this._input?.focus(options);
|
68
|
+
}
|
69
|
+
firstUpdated() {
|
70
|
+
this._compositionInit();
|
71
|
+
}
|
72
|
+
_renderPrefix() {
|
73
|
+
return html `<label for="${this.makeId}" part="prefix"><i part="space"></i> ${htmlSlot("prefix")}</label>`;
|
74
|
+
}
|
75
|
+
_renderSuffix() {
|
76
|
+
const PASSWORD = "password";
|
77
|
+
return html `<label for="${this.makeId}" part="suffix">${this.type === "password"
|
78
|
+
? html `<i part="icon" @mousedown="${() => this._changeInputType("text")}" @mouseup="${() => this._changeInputType(PASSWORD)}" @mouseleave="${() => this._changeInputType(PASSWORD)}"><i part="space"></i> ${iconEyeSlashFill()}</i>`
|
79
|
+
: htmlSlot("suffix")} <i part="space"></i></label>`;
|
80
|
+
}
|
81
|
+
};
|
82
|
+
__decorate([
|
83
|
+
property()
|
84
|
+
], SuperInput.prototype, "autocomplete", void 0);
|
85
|
+
__decorate([
|
86
|
+
property({ type: Boolean, reflect: true })
|
87
|
+
], SuperInput.prototype, "disabled", void 0);
|
88
|
+
__decorate([
|
89
|
+
property({ reflect: true })
|
90
|
+
], SuperInput.prototype, "type", void 0);
|
91
|
+
__decorate([
|
92
|
+
property({ reflect: true })
|
93
|
+
], SuperInput.prototype, "placeholder", void 0);
|
94
|
+
__decorate([
|
95
|
+
property({ reflect: true })
|
96
|
+
], SuperInput.prototype, "label", void 0);
|
97
|
+
__decorate([
|
98
|
+
property({ reflect: true })
|
99
|
+
], SuperInput.prototype, "name", void 0);
|
100
|
+
__decorate([
|
101
|
+
property()
|
102
|
+
], SuperInput.prototype, "value", void 0);
|
103
|
+
__decorate([
|
104
|
+
property()
|
105
|
+
], SuperInput.prototype, "default", void 0);
|
106
|
+
__decorate([
|
107
|
+
part("input")
|
108
|
+
], SuperInput.prototype, "_input", void 0);
|
109
|
+
SuperInput = __decorate([
|
110
|
+
styles(fieldStyle, inputStyle)
|
111
|
+
], SuperInput);
|
112
|
+
var SuperInput$1 = SuperInput;
|
113
|
+
|
114
|
+
export { SuperInput$1 as default };
|
115
|
+
//# sourceMappingURL=super-input.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"super-input.js","sources":["../src/core/super-input.ts"],"sourcesContent":null,"names":[],"mappings":";;;;;;;;;AAUA,MAAM,UAAU,GAAG,GAAG,CAAA,CAA+M,oMAAA,EAAA,aAAa,CAAC,KAAK,CAAwK,mKAAA,EAAA,aAAa,CAAC,KAAK,0DAA0D,CAAC;AAE9e,MAAM,UAAU,GAAG,GAAG,CAAA,CAAA,MAAA,EAAS,aAAa,CAAC,KAAK,CA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-
float: boolean;
|
1
|
+
import { type PropertyValueMap } from "lit";
|
2
|
+
import { GlobalStyle } from "./global-style.js";
|
3
|
+
declare class SuperOpenable extends GlobalStyle {
|
8
4
|
/**
|
9
5
|
* Open the content.
|
10
6
|
*/
|
@@ -15,7 +11,7 @@ export declare class GodownSuperOpenable extends GodownElement {
|
|
15
11
|
protected updated(changedProperties: PropertyValueMap<this>): void;
|
16
12
|
protected _handelClick(_: MouseEvent): void;
|
17
13
|
}
|
18
|
-
export default
|
14
|
+
export default SuperOpenable;
|
19
15
|
export type Direction4 = "left" | "right" | "top" | "bottom";
|
20
16
|
export type Direction5 = Direction4 | "center";
|
21
17
|
export type Direction8 = Direction4 | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"super-openable.d.ts","sourceRoot":"","sources":["../src/core/super-openable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,KAAK,CAAC;AAG5C,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,cAAM,aAAc,SAAQ,WAAW;IACrC;;OAEG;IAEH,IAAI,UAAS;IAEb,MAAM,CAAC,EAAE,UAAa;IAItB,KAAK;IAIL,IAAI;IAIJ,SAAS,CAAC,OAAO,CAAC,iBAAiB,EAAE,gBAAgB,CAAC,IAAI,CAAC;IAQ3D,SAAS,CAAC,YAAY,CAAC,CAAC,EAAE,UAAU;CAGrC;AAED,eAAe,aAAa,CAAC;AAE7B,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,CAAC;AAE7D,MAAM,MAAM,UAAU,GAAG,UAAU,GAAG,QAAQ,CAAC;AAE/C,MAAM,MAAM,UAAU,GAClB,UAAU,GACV,UAAU,GACV,WAAW,GACX,aAAa,GACb,cAAc,CAAC;AAEnB,MAAM,MAAM,UAAU,GAAG,UAAU,GAAG,UAAU,CAAC"}
|
@@ -1,13 +1,10 @@
|
|
1
|
-
import { __decorate } from
|
2
|
-
import { property } from
|
3
|
-
import {
|
4
|
-
|
1
|
+
import { __decorate } from 'tslib';
|
2
|
+
import { property } from 'lit/decorators.js';
|
3
|
+
import { GlobalStyle } from './global-style.js';
|
4
|
+
|
5
|
+
class SuperOpenable extends GlobalStyle {
|
5
6
|
constructor() {
|
6
7
|
super(...arguments);
|
7
|
-
/**
|
8
|
-
* Make the content float.
|
9
|
-
*/
|
10
|
-
this.float = false;
|
11
8
|
/**
|
12
9
|
* Open the content.
|
13
10
|
*/
|
@@ -28,16 +25,14 @@ export class GodownSuperOpenable extends GodownElement {
|
|
28
25
|
this.dispatchEvent(new CustomEvent("change", { detail: this.open }));
|
29
26
|
}
|
30
27
|
}
|
31
|
-
// eslint-disable-next-line
|
28
|
+
// eslint-disable-next-line
|
32
29
|
_handelClick(_) {
|
33
30
|
this.toggle();
|
34
31
|
}
|
35
32
|
}
|
36
33
|
__decorate([
|
37
34
|
property({ type: Boolean, reflect: true })
|
38
|
-
],
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
export default GodownSuperOpenable;
|
43
|
-
//# sourceMappingURL=super-openable.js.map
|
35
|
+
], SuperOpenable.prototype, "open", void 0);
|
36
|
+
|
37
|
+
export { SuperOpenable as default };
|
38
|
+
//# sourceMappingURL=super-openable.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"super-openable.js","sources":["../src/core/super-openable.ts"],"sourcesContent":null,"names":[],"mappings":";;;;AAKA,MAAM,aAAc,SAAQ,WAAW,CAAA;AAAvC,IAAA,WAAA,GAAA;;AACE;;AAEG;QAEH,IAAI,CAAA,IAAA,GAAG,KAAK,CAAC;KAyBd;AAvBC,IAAA,MAAM,CAAC,EAAE,GAAG,CAAC,IAAI,CAAC,IAAI,EAAA;AACpB,QAAA,IAAI,CAAC,IAAI,GAAG,EAAE,CAAC;KAChB;IAED,KAAK,GAAA;AACH,QAAA,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC;KACnB;IAED,IAAI,GAAA;AACF,QAAA,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;KAClB;AAES,IAAA,OAAO,CAAC,iBAAyC,EAAA;QACzD,MAAM,IAAI,GAAG,iBAAiB,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAC3C,QAAA,IAAI,IAAI,KAAK,SAAS,EAAE;AACtB,YAAA,IAAI,CAAC,aAAa,CAAC,IAAI,WAAW,CAAC,QAAQ,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;SACtE;KACF;;AAGS,IAAA,YAAY,CAAC,CAAa,EAAA;QAClC,IAAI,CAAC,MAAM,EAAE,CAAC;KACf;AACF,CAAA;AAzBC,UAAA,CAAA;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;AAC9B,CAAA,EAAA,aAAA,CAAA,SAAA,EAAA,MAAA,EAAA,KAAA,CAAA,CAAA;;;;"}
|