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
package/components.json
DELETED
@@ -1,194 +0,0 @@
|
|
1
|
-
[
|
2
|
-
{
|
3
|
-
"name": "alert",
|
4
|
-
"className": "Alert",
|
5
|
-
"path": "web-components/alert/alert",
|
6
|
-
"definition": "alert"
|
7
|
-
},
|
8
|
-
{
|
9
|
-
"name": "avatar-group",
|
10
|
-
"className": "AvatarGroup",
|
11
|
-
"path": "web-components/avatar/avatar-group",
|
12
|
-
"definition": "avatar-group"
|
13
|
-
},
|
14
|
-
{
|
15
|
-
"name": "avatar",
|
16
|
-
"className": "Avatar",
|
17
|
-
"path": "web-components/avatar/avatar",
|
18
|
-
"definition": "avatar"
|
19
|
-
},
|
20
|
-
{
|
21
|
-
"name": "button",
|
22
|
-
"className": "Button",
|
23
|
-
"path": "web-components/button/button",
|
24
|
-
"definition": "button"
|
25
|
-
},
|
26
|
-
{
|
27
|
-
"name": "card",
|
28
|
-
"className": "Card",
|
29
|
-
"path": "web-components/card/card",
|
30
|
-
"definition": "card"
|
31
|
-
},
|
32
|
-
{
|
33
|
-
"name": "carousel",
|
34
|
-
"className": "Carousel",
|
35
|
-
"path": "web-components/carousel/carousel",
|
36
|
-
"definition": "carousel"
|
37
|
-
},
|
38
|
-
{
|
39
|
-
"name": "details",
|
40
|
-
"className": "Details",
|
41
|
-
"path": "web-components/details/details",
|
42
|
-
"definition": "details"
|
43
|
-
},
|
44
|
-
{
|
45
|
-
"name": "dialog",
|
46
|
-
"className": "Dialog",
|
47
|
-
"path": "web-components/dialog/dialog",
|
48
|
-
"definition": "dialog"
|
49
|
-
},
|
50
|
-
{
|
51
|
-
"name": "divider",
|
52
|
-
"className": "Divider",
|
53
|
-
"path": "web-components/divider/divider",
|
54
|
-
"definition": "divider"
|
55
|
-
},
|
56
|
-
{
|
57
|
-
"name": "form",
|
58
|
-
"className": "Form",
|
59
|
-
"path": "web-components/form/form",
|
60
|
-
"definition": "form"
|
61
|
-
},
|
62
|
-
{
|
63
|
-
"name": "input",
|
64
|
-
"className": "Input",
|
65
|
-
"path": "web-components/input/input",
|
66
|
-
"definition": "input"
|
67
|
-
},
|
68
|
-
{
|
69
|
-
"name": "label-input",
|
70
|
-
"className": "LabelInput",
|
71
|
-
"path": "web-components/input/label-input",
|
72
|
-
"definition": "label-input"
|
73
|
-
},
|
74
|
-
{
|
75
|
-
"name": "range-input",
|
76
|
-
"className": "RangeInput",
|
77
|
-
"path": "web-components/input/range-input",
|
78
|
-
"definition": "range-input"
|
79
|
-
},
|
80
|
-
{
|
81
|
-
"name": "search-input",
|
82
|
-
"className": "SearchInput",
|
83
|
-
"path": "web-components/input/search-input",
|
84
|
-
"definition": "search-input"
|
85
|
-
},
|
86
|
-
{
|
87
|
-
"name": "select-input",
|
88
|
-
"className": "SelectInput",
|
89
|
-
"path": "web-components/input/select-input",
|
90
|
-
"definition": "select-input"
|
91
|
-
},
|
92
|
-
{
|
93
|
-
"name": "split-input",
|
94
|
-
"className": "SplitInput",
|
95
|
-
"path": "web-components/input/split-input",
|
96
|
-
"definition": "split-input"
|
97
|
-
},
|
98
|
-
{
|
99
|
-
"name": "switch-input",
|
100
|
-
"className": "SwitchInput",
|
101
|
-
"path": "web-components/input/switch-input",
|
102
|
-
"definition": "switch-input"
|
103
|
-
},
|
104
|
-
{
|
105
|
-
"name": "flex-flow",
|
106
|
-
"className": "FlexFlow",
|
107
|
-
"path": "web-components/layout/flex-flow",
|
108
|
-
"definition": "flex-flow"
|
109
|
-
},
|
110
|
-
{
|
111
|
-
"name": "grid-flow",
|
112
|
-
"className": "GridFlow",
|
113
|
-
"path": "web-components/layout/grid-flow",
|
114
|
-
"definition": "grid-flow"
|
115
|
-
},
|
116
|
-
{
|
117
|
-
"name": "layout",
|
118
|
-
"className": "Layout",
|
119
|
-
"path": "web-components/layout/layout",
|
120
|
-
"definition": "layout"
|
121
|
-
},
|
122
|
-
{
|
123
|
-
"name": "link",
|
124
|
-
"className": "Link",
|
125
|
-
"path": "web-components/link/link",
|
126
|
-
"definition": "link"
|
127
|
-
},
|
128
|
-
{
|
129
|
-
"name": "router-link",
|
130
|
-
"className": "RouterLink",
|
131
|
-
"path": "web-components/link/router-link",
|
132
|
-
"definition": "router-link"
|
133
|
-
},
|
134
|
-
{
|
135
|
-
"name": "progress",
|
136
|
-
"className": "Progress",
|
137
|
-
"path": "web-components/progress/progress",
|
138
|
-
"definition": "progress"
|
139
|
-
},
|
140
|
-
{
|
141
|
-
"name": "router",
|
142
|
-
"className": "Router",
|
143
|
-
"path": "web-components/router/router",
|
144
|
-
"definition": "router"
|
145
|
-
},
|
146
|
-
{
|
147
|
-
"name": "skeleton",
|
148
|
-
"className": "Skeleton",
|
149
|
-
"path": "web-components/skeleton/skeleton",
|
150
|
-
"definition": "skeleton"
|
151
|
-
},
|
152
|
-
{
|
153
|
-
"name": "overbreath",
|
154
|
-
"className": "Overbreath",
|
155
|
-
"path": "web-components/text/overbreath",
|
156
|
-
"definition": "overbreath"
|
157
|
-
},
|
158
|
-
{
|
159
|
-
"name": "text",
|
160
|
-
"className": "Text",
|
161
|
-
"path": "web-components/text/text",
|
162
|
-
"definition": "text"
|
163
|
-
},
|
164
|
-
{
|
165
|
-
"name": "time",
|
166
|
-
"className": "Time",
|
167
|
-
"path": "web-components/text/time",
|
168
|
-
"definition": "time"
|
169
|
-
},
|
170
|
-
{
|
171
|
-
"name": "typewriter",
|
172
|
-
"className": "Typewriter",
|
173
|
-
"path": "web-components/text/typewriter",
|
174
|
-
"definition": "typewriter"
|
175
|
-
},
|
176
|
-
{
|
177
|
-
"name": "tooltip",
|
178
|
-
"className": "Tooltip",
|
179
|
-
"path": "web-components/tooltip/tooltip",
|
180
|
-
"definition": "tooltip"
|
181
|
-
},
|
182
|
-
{
|
183
|
-
"name": "dragbox",
|
184
|
-
"className": "Dragbox",
|
185
|
-
"path": "web-components/wrapper/dragbox",
|
186
|
-
"definition": "dragbox"
|
187
|
-
},
|
188
|
-
{
|
189
|
-
"name": "rotate",
|
190
|
-
"className": "Rotate",
|
191
|
-
"path": "web-components/wrapper/rotate",
|
192
|
-
"definition": "rotate"
|
193
|
-
}
|
194
|
-
]
|
package/conf.d.ts
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
import GodownConfig from "./proto/godown-config.js";
|
2
|
-
declare const globalKey = "GodownWebComponentsCONF";
|
3
|
-
declare const conf: GodownConfig;
|
4
|
-
export default conf;
|
5
|
-
declare function assignConfig(config: Partial<GodownConfig>, source: GodownConfig): GodownConfig;
|
6
|
-
export declare function defineConfig(config: Parameters<typeof assignConfig>[0]): GodownConfig;
|
7
|
-
declare global {
|
8
|
-
interface globalThis {
|
9
|
-
[globalKey]: GodownConfig;
|
10
|
-
}
|
11
|
-
}
|
12
|
-
//# sourceMappingURL=conf.d.ts.map
|
package/conf.d.ts.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"conf.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["conf.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,0BAA0B,CAAC;AAEpD,QAAA,MAAM,SAAS,4BAA4B,CAAC;AAC5C,QAAA,MAAM,IAAI,cAA0D,CAAC;AAErE,eAAe,IAAI,CAAC;AAEpB,iBAAS,YAAY,CAAC,MAAM,EAAE,OAAO,CAAC,YAAY,CAAC,EAAE,MAAM,EAAE,YAAY,GAAG,YAAY,CAavF;AAED,wBAAgB,YAAY,CAAC,MAAM,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC,CAAC,GAAG,YAAY,CAErF;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,UAAU;QAClB,CAAC,SAAS,CAAC,EAAE,YAAY,CAAC;KAC3B;CACF"}
|
package/conf.js
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
import GodownConfig from "./proto/godown-config.js";
|
2
|
-
const globalKey = "GodownWebComponentsCONF";
|
3
|
-
const conf = assignConfig(globalThis[globalKey], new GodownConfig());
|
4
|
-
export default conf;
|
5
|
-
function assignConfig(config, source) {
|
6
|
-
Object.assign(source, config);
|
7
|
-
if (source.reflect) {
|
8
|
-
// Reflect to globalThis.
|
9
|
-
globalThis[globalKey] = source;
|
10
|
-
}
|
11
|
-
else {
|
12
|
-
try {
|
13
|
-
delete globalThis[globalKey];
|
14
|
-
}
|
15
|
-
catch (e) {
|
16
|
-
/* empty */
|
17
|
-
}
|
18
|
-
}
|
19
|
-
return source;
|
20
|
-
}
|
21
|
-
export function defineConfig(config) {
|
22
|
-
return assignConfig(config, conf);
|
23
|
-
}
|
24
|
-
//# sourceMappingURL=conf.js.map
|
package/conf.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"conf.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["conf.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,0BAA0B,CAAC;AAEpD,MAAM,SAAS,GAAG,yBAAyB,CAAC;AAC5C,MAAM,IAAI,GAAG,YAAY,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE,IAAI,YAAY,EAAE,CAAC,CAAC;AAErE,eAAe,IAAI,CAAC;AAEpB,SAAS,YAAY,CAAC,MAA6B,EAAE,MAAoB;IACvE,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;QACnB,yBAAyB;QACzB,UAAU,CAAC,SAAS,CAAC,GAAG,MAAM,CAAC;IACjC,CAAC;SAAM,CAAC;QACN,IAAI,CAAC;YACH,OAAO,UAAU,CAAC,SAAS,CAAC,CAAC;QAC/B,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACX,WAAW;QACb,CAAC;IACH,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,MAA0C;IACrE,OAAO,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;AACpC,CAAC","sourcesContent":["import GodownConfig from \"./proto/godown-config.js\";\n\nconst globalKey = \"GodownWebComponentsCONF\";\nconst conf = assignConfig(globalThis[globalKey], new GodownConfig());\n\nexport default conf;\n\nfunction assignConfig(config: Partial<GodownConfig>, source: GodownConfig): GodownConfig {\n Object.assign(source, config);\n if (source.reflect) {\n // Reflect to globalThis.\n globalThis[globalKey] = source;\n } else {\n try {\n delete globalThis[globalKey];\n } catch (e) {\n /* empty */\n }\n }\n return source;\n}\n\nexport function defineConfig(config: Parameters<typeof assignConfig>[0]): GodownConfig {\n return assignConfig(config, conf);\n}\n\ndeclare global {\n interface globalThis {\n [globalKey]: GodownConfig;\n }\n}\n"]}
|
package/decorators/godown.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"godown.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["decorators/godown.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,aAAa,MAAM,4BAA4B,CAAC;AAE5D,eAAO,MAAM,MAAM,UAAW,MAAM,mBAAmB,oBAAoB,SAK1E,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
package/decorators/godown.js
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
import conf from "../conf.js";
|
2
|
-
export const godown = (name) => (constructor) => {
|
3
|
-
name ||= constructor.name.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase();
|
4
|
-
constructor.protoName = name;
|
5
|
-
constructor.godownConfig = conf;
|
6
|
-
constructor.elementTagName = conf.tag(name);
|
7
|
-
};
|
8
|
-
export default godown;
|
9
|
-
//# sourceMappingURL=godown.js.map
|
package/decorators/godown.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"godown.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["decorators/godown.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,YAAY,CAAC;AAG9B,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,IAAa,EAAE,EAAE,CAAC,CAAC,WAAiC,EAAE,EAAE;IAC7E,IAAI,KAAK,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC,WAAW,EAAE,CAAC;IAC5E,WAAW,CAAC,SAAS,GAAG,IAAI,CAAC;IAC7B,WAAW,CAAC,YAAY,GAAG,IAAI,CAAC;IAChC,WAAW,CAAC,cAAc,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;AAC9C,CAAC,CAAC;AAEF,eAAe,MAAM,CAAC","sourcesContent":["import conf from \"../conf.js\";\nimport type GodownElement from \"../proto/godown-element.js\";\n\nexport const godown = (name?: string) => (constructor: typeof GodownElement) => {\n name ||= constructor.name.replace(/([a-z])([A-Z])/g, \"$1-$2\").toLowerCase();\n constructor.protoName = name;\n constructor.godownConfig = conf;\n constructor.elementTagName = conf.tag(name);\n};\n\nexport default godown;\n"]}
|
package/decorators/part.d.ts
DELETED
package/decorators/part.d.ts.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"part.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["decorators/part.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,IAAI,aAAc,MAAM,6DAAqD,CAAC"}
|
package/decorators/part.js
DELETED
package/decorators/part.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"part.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["decorators/part.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE1C;;;;GAIG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,QAAgB,EAAE,KAAK,GAAG,IAAI,EAAE,EAAE,CAAC,KAAK,CAAC,SAAS,QAAQ,GAAG,EAAE,KAAK,CAAC,CAAC","sourcesContent":["import { query } from \"lit/decorators.js\";\n\n/**\n * Alias for query(`[part=${partName}]`, cache)\n *\n * Default cache.\n */\nexport const part = (partName: string, cache = true) => query(`[part=${partName}]`, cache);\n"]}
|
package/decorators/styles.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["decorators/styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM,cAAe,GAAG,EAAE,mBAChB,GAAG,SAGzB,CAAC;AACF,eAAe,MAAM,CAAC"}
|
package/decorators/styles.js
DELETED
package/decorators/styles.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["decorators/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEnD,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,GAAG,MAAa,EAAE,EAAE;IACzC,OAAO,CAAC,WAAgB,EAAE,EAAE;QAC1B,WAAW,CAAC,MAAM,GAAG,CAAC,YAAY,EAAE,GAAG,MAAM,CAAC,CAAC;IACjD,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,MAAM,CAAC","sourcesContent":["import { globalStyles } from \"../styles/global.js\";\n\nexport const styles = (...styles: any[]) => {\n return (constructor: any) => {\n constructor.styles = [globalStyles, ...styles];\n };\n};\nexport default styles;\n"]}
|
package/flex-flow.d.ts
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
import FlexFlow from "./web-components/layout/flex-flow.js";
|
2
|
-
export default FlexFlow;
|
3
|
-
export * from "./web-components/layout/flex-flow.js";
|
4
|
-
declare global {
|
5
|
-
interface HTMLElementTagNameMap {
|
6
|
-
"g-flex-flow": FlexFlow;
|
7
|
-
}
|
8
|
-
}
|
9
|
-
//# sourceMappingURL=flex-flow.d.ts.map
|
package/flex-flow.d.ts.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"flex-flow.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["flex-flow.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,sCAAsC,CAAC;AAE5D,eAAe,QAAQ,CAAC;AACxB,cAAc,sCAAsC,CAAC;AAErD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,aAAa,EAAE,QAAQ,CAAC;KACzB;CACF"}
|
package/flex-flow.js
DELETED
package/flex-flow.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"flex-flow.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["flex-flow.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,sCAAsC,CAAC;AAC5D,QAAQ,CAAC,MAAM,EAAE,CAAC;AAClB,eAAe,QAAQ,CAAC;AACxB,cAAc,sCAAsC,CAAC","sourcesContent":["import FlexFlow from \"./web-components/layout/flex-flow.js\";\nFlexFlow.define();\nexport default FlexFlow;\nexport * from \"./web-components/layout/flex-flow.js\";\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"g-flex-flow\": FlexFlow;\n }\n}\n"]}
|
package/grid-flow.d.ts
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
import GridFlow from "./web-components/layout/grid-flow.js";
|
2
|
-
export default GridFlow;
|
3
|
-
export * from "./web-components/layout/grid-flow.js";
|
4
|
-
declare global {
|
5
|
-
interface HTMLElementTagNameMap {
|
6
|
-
"g-grid-flow": GridFlow;
|
7
|
-
}
|
8
|
-
}
|
9
|
-
//# sourceMappingURL=grid-flow.d.ts.map
|
package/grid-flow.d.ts.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"grid-flow.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["grid-flow.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,sCAAsC,CAAC;AAE5D,eAAe,QAAQ,CAAC;AACxB,cAAc,sCAAsC,CAAC;AAErD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,aAAa,EAAE,QAAQ,CAAC;KACzB;CACF"}
|
package/grid-flow.js
DELETED
package/grid-flow.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"grid-flow.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["grid-flow.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,sCAAsC,CAAC;AAC5D,QAAQ,CAAC,MAAM,EAAE,CAAC;AAClB,eAAe,QAAQ,CAAC;AACxB,cAAc,sCAAsC,CAAC","sourcesContent":["import GridFlow from \"./web-components/layout/grid-flow.js\";\nGridFlow.define();\nexport default GridFlow;\nexport * from \"./web-components/layout/grid-flow.js\";\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"g-grid-flow\": GridFlow;\n }\n}\n"]}
|
package/label-input.d.ts
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
import LabelInput from "./web-components/input/label-input.js";
|
2
|
-
export default LabelInput;
|
3
|
-
export * from "./web-components/input/label-input.js";
|
4
|
-
declare global {
|
5
|
-
interface HTMLElementTagNameMap {
|
6
|
-
"g-label-input": LabelInput;
|
7
|
-
}
|
8
|
-
}
|
9
|
-
//# sourceMappingURL=label-input.d.ts.map
|
package/label-input.d.ts.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"label-input.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["label-input.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,uCAAuC,CAAC;AAE/D,eAAe,UAAU,CAAC;AAC1B,cAAc,uCAAuC,CAAC;AAEtD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,eAAe,EAAE,UAAU,CAAC;KAC7B;CACF"}
|
package/label-input.js
DELETED
package/label-input.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"label-input.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["label-input.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,uCAAuC,CAAC;AAC/D,UAAU,CAAC,MAAM,EAAE,CAAC;AACpB,eAAe,UAAU,CAAC;AAC1B,cAAc,uCAAuC,CAAC","sourcesContent":["import LabelInput from \"./web-components/input/label-input.js\";\nLabelInput.define();\nexport default LabelInput;\nexport * from \"./web-components/input/label-input.js\";\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"g-label-input\": LabelInput;\n }\n}\n"]}
|
package/lib/css.d.ts
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Call Object.values and join "".
|
3
|
-
*/
|
4
|
-
export declare function constructCSS(vars: string[], props: Record<string, (string | number)[]>, selectorFunc?: (raw: string) => string): string;
|
5
|
-
/**
|
6
|
-
* Create a CSS style object based on the provided variable name array and property object
|
7
|
-
* @param vars - Variable name array
|
8
|
-
* @param props - Property object containing style values for each variable
|
9
|
-
* @param selectorFunc (Optional) Function to process selector names
|
10
|
-
* @return CSS style object with selectors as keys and corresponding styles as values
|
11
|
-
*/
|
12
|
-
export declare function constructCSSObject<K extends string, V = string | number, R = Record<K, string>>(vars: string[], props: Record<K, V[]>, selectorFunc?: (raw: string) => string): R;
|
13
|
-
//# sourceMappingURL=css.d.ts.map
|
package/lib/css.d.ts.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"css.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["lib/css.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,wBAAgB,YAAY,CAC1B,IAAI,EAAE,MAAM,EAAE,EACd,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC,EAC1C,YAAY,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,GACrC,MAAM,CAER;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,GAAG,MAAM,GAAG,MAAM,EAAE,CAAC,GAAG,MAAM,CAAC,CAAC,EAAE,MAAM,CAAC,EAC7F,IAAI,EAAE,MAAM,EAAE,EACd,KAAK,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EACrB,YAAY,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,GACrC,CAAC,CAaH"}
|
package/lib/css.js
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
import { notNil } from "./utils.js";
|
2
|
-
/**
|
3
|
-
* Call Object.values and join "".
|
4
|
-
*/
|
5
|
-
export function constructCSS(vars, props, selectorFunc) {
|
6
|
-
return Object.values(constructCSSObject(vars, props, selectorFunc)).join("");
|
7
|
-
}
|
8
|
-
/**
|
9
|
-
* Create a CSS style object based on the provided variable name array and property object
|
10
|
-
* @param vars - Variable name array
|
11
|
-
* @param props - Property object containing style values for each variable
|
12
|
-
* @param selectorFunc (Optional) Function to process selector names
|
13
|
-
* @return CSS style object with selectors as keys and corresponding styles as values
|
14
|
-
*/
|
15
|
-
export function constructCSSObject(vars, props, selectorFunc) {
|
16
|
-
const cssObject = {};
|
17
|
-
Object.keys(props).forEach((sel) => {
|
18
|
-
const rules = vars.reduce((acc, key, index) => {
|
19
|
-
const value = props[sel][index];
|
20
|
-
if (notNil(value)) {
|
21
|
-
acc.push(`${key}:${value}`);
|
22
|
-
}
|
23
|
-
return acc;
|
24
|
-
}, []);
|
25
|
-
cssObject[sel] = `${selectorFunc ? selectorFunc(sel) : sel}{${rules.join(";")}}`;
|
26
|
-
});
|
27
|
-
return cssObject;
|
28
|
-
}
|
29
|
-
//# sourceMappingURL=css.js.map
|
package/lib/css.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"css.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["lib/css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAEpC;;GAEG;AACH,MAAM,UAAU,YAAY,CAC1B,IAAc,EACd,KAA0C,EAC1C,YAAsC;IAEtC,OAAO,MAAM,CAAC,MAAM,CAAC,kBAAkB,CAAC,IAAI,EAAE,KAAK,EAAE,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC/E,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,kBAAkB,CAChC,IAAc,EACd,KAAqB,EACrB,YAAsC;IAEtC,MAAM,SAAS,GAAG,EAAO,CAAC;IAC1B,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;QACjC,MAAM,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,GAAa,EAAE,GAAG,EAAE,KAAK,EAAE,EAAE;YACtD,MAAM,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,KAAK,CAAM,CAAC;YACrC,IAAI,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC;gBAClB,GAAG,CAAC,IAAI,CAAC,GAAG,GAAG,IAAI,KAAK,EAAE,CAAC,CAAC;YAC9B,CAAC;YACD,OAAO,GAAG,CAAC;QACb,CAAC,EAAE,EAAE,CAAC,CAAC;QACP,SAAS,CAAC,GAAG,CAAC,GAAG,GAAG,YAAY,CAAC,CAAC,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC;IACnF,CAAC,CAAC,CAAC;IACH,OAAO,SAAS,CAAC;AACnB,CAAC","sourcesContent":["import { notNil } from \"./utils.js\";\n\n/**\n * Call Object.values and join \"\".\n */\nexport function constructCSS(\n vars: string[],\n props: Record<string, (string | number)[]>,\n selectorFunc?: (raw: string) => string,\n): string {\n return Object.values(constructCSSObject(vars, props, selectorFunc)).join(\"\");\n}\n\n/**\n * Create a CSS style object based on the provided variable name array and property object\n * @param vars - Variable name array\n * @param props - Property object containing style values for each variable\n * @param selectorFunc (Optional) Function to process selector names\n * @return CSS style object with selectors as keys and corresponding styles as values\n */\nexport function constructCSSObject<K extends string, V = string | number, R = Record<K, string>>(\n vars: string[],\n props: Record<K, V[]>,\n selectorFunc?: (raw: string) => string,\n): R {\n const cssObject = {} as R;\n Object.keys(props).forEach((sel) => {\n const rules = vars.reduce((acc: string[], key, index) => {\n const value = props[sel][index] as V;\n if (notNil(value)) {\n acc.push(`${key}:${value}`);\n }\n return acc;\n }, []);\n cssObject[sel] = `${selectorFunc ? selectorFunc(sel) : sel}{${rules.join(\";\")}}`;\n });\n return cssObject;\n}\n"]}
|
package/lib/directives.d.ts
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
import { html } from "lit";
|
2
|
-
export type HTMLTemplate = ReturnType<typeof html> | ReturnType<typeof html>[];
|
3
|
-
interface RenderIf {
|
4
|
-
<A, B>(value: unknown, a: A, b: B): A | B;
|
5
|
-
<A>(value: unknown, a: A): A;
|
6
|
-
}
|
7
|
-
/**
|
8
|
-
*
|
9
|
-
* @param value Condition.
|
10
|
-
* @param a Return when the condition is true.
|
11
|
-
* @param b Return when the condition is false.
|
12
|
-
* @returns a || b || nothing
|
13
|
-
*/
|
14
|
-
export declare const ifValue: RenderIf;
|
15
|
-
export declare const combine: (map: Record<string, any>, init?: string, join?: string) => string;
|
16
|
-
export declare const htmlSlot: (name?: string) => import("lit").TemplateResult<1>;
|
17
|
-
export declare const htmlStyle: (style?: string) => import("lit").TemplateResult<1>;
|
18
|
-
/**
|
19
|
-
* @param fill undefined: "currentColor". zero value: "none".
|
20
|
-
* @param stroke undefined: "currentColor". zero value: "none".
|
21
|
-
* @returns Function returns path needs d.
|
22
|
-
*/
|
23
|
-
export declare const path: (fill?: string | void | number, stroke?: string | void | number, strokeWidth?: string | void | number) => (d: string) => import("lit").TemplateResult<2>;
|
24
|
-
export {};
|
25
|
-
//# sourceMappingURL=directives.d.ts.map
|
package/lib/directives.d.ts.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"directives.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["lib/directives.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAgB,MAAM,KAAK,CAAC;AACzC,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,IAAI,CAAC,GAAG,UAAU,CAAC,OAAO,IAAI,CAAC,EAAE,CAAC;AAE/E,UAAU,QAAQ;IAChB,CAAC,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAC1C,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;CAC9B;AACD;;;;;;GAMG;AACH,eAAO,MAAM,OAAO,EAAE,QAErB,CAAC;AAEF,eAAO,MAAM,OAAO,QAAS,OAAO,MAAM,EAAE,GAAG,CAAC,yCAO/C,CAAC;AAEF,eAAO,MAAM,QAAQ,UAAW,MAAM,oCAErC,CAAC;AAEF,eAAO,MAAM,SAAS,WAAY,MAAM,oCAOvC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,IAAI,UACT,MAAM,GAAG,IAAI,GAAG,MAAM,WACpB,MAAM,GAAG,IAAI,GAAG,MAAM,gBACjB,MAAM,GAAG,IAAI,GAAG,MAAM,SAIxB,MAAM,oCAGlB,CAAC"}
|
package/lib/directives.js
DELETED
@@ -1,40 +0,0 @@
|
|
1
|
-
import { html, nothing, svg } from "lit";
|
2
|
-
/**
|
3
|
-
*
|
4
|
-
* @param value Condition.
|
5
|
-
* @param a Return when the condition is true.
|
6
|
-
* @param b Return when the condition is false.
|
7
|
-
* @returns a || b || nothing
|
8
|
-
*/
|
9
|
-
export const ifValue = (value, a, b) => {
|
10
|
-
return (value && a) || b || nothing;
|
11
|
-
};
|
12
|
-
export const combine = (map, init = "", join = " ") => {
|
13
|
-
return Object.entries(map).reduce((acc, [key, value]) => {
|
14
|
-
if (value) {
|
15
|
-
acc += acc ? join + key : key;
|
16
|
-
}
|
17
|
-
return acc;
|
18
|
-
}, init);
|
19
|
-
};
|
20
|
-
export const htmlSlot = (name) => {
|
21
|
-
return name ? html `<slot name="${name}" part="slot-${name}"></slot>` : html `<slot></slot>`;
|
22
|
-
};
|
23
|
-
export const htmlStyle = (style) => {
|
24
|
-
return ifValue(style, html `<style>
|
25
|
-
${style}
|
26
|
-
</style>`);
|
27
|
-
};
|
28
|
-
/**
|
29
|
-
* @param fill undefined: "currentColor". zero value: "none".
|
30
|
-
* @param stroke undefined: "currentColor". zero value: "none".
|
31
|
-
* @returns Function returns path needs d.
|
32
|
-
*/
|
33
|
-
export const path = (fill = "currentColor", stroke = "currentColor", strokeWidth = 3) => {
|
34
|
-
fill = fill || "none";
|
35
|
-
stroke = stroke || "none";
|
36
|
-
return (d) => {
|
37
|
-
return svg `<path d="${d}" fill="${fill}" stroke="${stroke}" stroke-width="${strokeWidth}" stroke-linecap="round" stroke-linejoin="round"></path>`;
|
38
|
-
};
|
39
|
-
};
|
40
|
-
//# sourceMappingURL=directives.js.map
|
package/lib/directives.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"directives.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["lib/directives.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAOzC;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,OAAO,GAAa,CAAO,KAAc,EAAE,CAAI,EAAE,CAAK,EAAE,EAAE;IACrE,OAAO,CAAC,KAAK,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,OAAO,CAAC;AACtC,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,GAAwB,EAAE,IAAI,GAAG,EAAE,EAAE,IAAI,GAAG,GAAG,EAAE,EAAE;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;QACtD,IAAI,KAAK,EAAE,CAAC;YACV,GAAG,IAAI,GAAG,CAAC,CAAC,CAAC,IAAI,GAAG,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC;QAChC,CAAC;QACD,OAAO,GAAG,CAAC;IACb,CAAC,EAAE,IAAI,CAAC,CAAC;AACX,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,IAAa,EAAE,EAAE;IACxC,OAAO,IAAI,CAAC,CAAC,CAAC,IAAI,CAAA,eAAe,IAAI,gBAAgB,IAAI,WAAW,CAAC,CAAC,CAAC,IAAI,CAAA,eAAe,CAAC;AAC7F,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,KAAc,EAAE,EAAE;IAC1C,OAAO,OAAO,CACZ,KAAK,EACL,IAAI,CAAA;QACA,KAAK;aACA,CACV,CAAC;AACJ,CAAC,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,CAClB,OAA+B,cAAc,EAC7C,SAAiC,cAAc,EAC/C,cAAsC,CAAC,EACvC,EAAE;IACF,IAAI,GAAG,IAAI,IAAI,MAAM,CAAC;IACtB,MAAM,GAAG,MAAM,IAAI,MAAM,CAAC;IAC1B,OAAO,CAAC,CAAS,EAAE,EAAE;QACnB,OAAO,GAAG,CAAA,YAAY,CAAC,WAAW,IAAI,aAAa,MAAM,mBAAmB,WAAW,0DAA0D,CAAC;IACpJ,CAAC,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { html, nothing, svg } from \"lit\";\nexport type HTMLTemplate = ReturnType<typeof html> | ReturnType<typeof html>[];\n\ninterface RenderIf {\n <A, B>(value: unknown, a: A, b: B): A | B;\n <A>(value: unknown, a: A): A;\n}\n/**\n *\n * @param value Condition.\n * @param a Return when the condition is true.\n * @param b Return when the condition is false.\n * @returns a || b || nothing\n */\nexport const ifValue: RenderIf = <A, B>(value: unknown, a: A, b?: B) => {\n return (value && a) || b || nothing;\n};\n\nexport const combine = (map: Record<string, any>, init = \"\", join = \" \") => {\n return Object.entries(map).reduce((acc, [key, value]) => {\n if (value) {\n acc += acc ? join + key : key;\n }\n return acc;\n }, init);\n};\n\nexport const htmlSlot = (name?: string) => {\n return name ? html`<slot name=\"${name}\" part=\"slot-${name}\"></slot>` : html`<slot></slot>`;\n};\n\nexport const htmlStyle = (style?: string) => {\n return ifValue(\n style,\n html`<style>\n ${style}\n </style>`,\n );\n};\n\n/**\n * @param fill undefined: \"currentColor\". zero value: \"none\".\n * @param stroke undefined: \"currentColor\". zero value: \"none\".\n * @returns Function returns path needs d.\n */\nexport const path = (\n fill: string | void | number = \"currentColor\",\n stroke: string | void | number = \"currentColor\",\n strokeWidth: string | void | number = 3,\n) => {\n fill = fill || \"none\";\n stroke = stroke || \"none\";\n return (d: string) => {\n return svg`<path d=\"${d}\" fill=\"${fill}\" stroke=\"${stroke}\" stroke-width=\"${strokeWidth}\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>`;\n };\n};\n"]}
|
package/lib/event-coll.d.ts
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
export type EventsMaps = WindowEventMap & DocumentEventMap;
|
2
|
-
export type EventsNames = keyof EventsMaps;
|
3
|
-
export type EventsHandler = GlobalEventHandlersEventMap[keyof GlobalEventHandlersEventMap];
|
4
|
-
export type ListenerFunc = (event?: EventsHandler) => any | EventListenerOrEventListenerObject;
|
5
|
-
export type AddOptions = boolean | AddEventListenerOptions;
|
6
|
-
export declare class EventsCollection {
|
7
|
-
private coll;
|
8
|
-
addEvent<SRC extends EventTarget = HTMLElement>(src: SRC, type: EventsNames, listener: ListenerFunc, options?: AddOptions): ListenerFunc;
|
9
|
-
removeEvent<SRC extends EventTarget = HTMLElement>(src: SRC, type: EventsNames, listener: ListenerFunc, option?: EventListenerOptions): void;
|
10
|
-
removeAllEvents(): void;
|
11
|
-
}
|
12
|
-
export default EventsCollection;
|
13
|
-
//# sourceMappingURL=event-coll.d.ts.map
|
package/lib/event-coll.d.ts.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"event-coll.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["lib/event-coll.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG,cAAc,GAAG,gBAAgB,CAAC;AAC3D,MAAM,MAAM,WAAW,GAAG,MAAM,UAAU,CAAC;AAC3C,MAAM,MAAM,aAAa,GAAG,2BAA2B,CAAC,MAAM,2BAA2B,CAAC,CAAC;AAC3F,MAAM,MAAM,YAAY,GAAG,CAAC,KAAK,CAAC,EAAE,aAAa,KAAK,GAAG,GAAG,kCAAkC,CAAC;AAC/F,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,uBAAuB,CAAC;AAE3D,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,IAAI,CAA+D;IAE3E,QAAQ,CAAC,GAAG,SAAS,WAAW,GAAG,WAAW,EAC5C,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,WAAW,EACjB,QAAQ,EAAE,YAAY,EACtB,OAAO,CAAC,EAAE,UAAU;IAatB,WAAW,CAAC,GAAG,SAAS,WAAW,GAAG,WAAW,EAC/C,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,WAAW,EACjB,QAAQ,EAAE,YAAY,EACtB,MAAM,CAAC,EAAE,oBAAoB;IAoB/B,eAAe;CAWhB;AAED,eAAe,gBAAgB,CAAC"}
|
package/lib/event-coll.js
DELETED
@@ -1,45 +0,0 @@
|
|
1
|
-
export class EventsCollection {
|
2
|
-
constructor() {
|
3
|
-
this.coll = new Map();
|
4
|
-
}
|
5
|
-
addEvent(src, type, listener, options) {
|
6
|
-
const eType = this.coll.get(type) || new Map();
|
7
|
-
const eElem = eType.get(src) || new Set();
|
8
|
-
eElem.add(listener);
|
9
|
-
eType.set(src, eElem);
|
10
|
-
this.coll.set(type, eType);
|
11
|
-
src.addEventListener(type, listener, options);
|
12
|
-
return listener;
|
13
|
-
}
|
14
|
-
removeEvent(src, type, listener, option) {
|
15
|
-
if (listener) {
|
16
|
-
const eType = this.coll.get(type);
|
17
|
-
if (eType) {
|
18
|
-
const eElem = eType.get(src);
|
19
|
-
if (eElem) {
|
20
|
-
eElem.delete(listener);
|
21
|
-
if (!eElem.size) {
|
22
|
-
eType.delete(src);
|
23
|
-
if (!eType.size) {
|
24
|
-
this.coll.delete(type);
|
25
|
-
}
|
26
|
-
}
|
27
|
-
}
|
28
|
-
}
|
29
|
-
src.removeEventListener(type, listener, option);
|
30
|
-
}
|
31
|
-
}
|
32
|
-
removeAllEvents() {
|
33
|
-
this.coll.forEach((typeMap, type) => {
|
34
|
-
typeMap.forEach((eventListeners, src) => {
|
35
|
-
eventListeners.forEach((listener) => {
|
36
|
-
src.removeEventListener(type, listener);
|
37
|
-
});
|
38
|
-
});
|
39
|
-
typeMap.clear();
|
40
|
-
this.coll.delete(type);
|
41
|
-
});
|
42
|
-
}
|
43
|
-
}
|
44
|
-
export default EventsCollection;
|
45
|
-
//# sourceMappingURL=event-coll.js.map
|
package/lib/event-coll.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"event-coll.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["lib/event-coll.ts"],"names":[],"mappings":"AAMA,MAAM,OAAO,gBAAgB;IAA7B;QACU,SAAI,GAAG,IAAI,GAAG,EAAoD,CAAC;IAsD7E,CAAC;IApDC,QAAQ,CACN,GAAQ,EACR,IAAiB,EACjB,QAAsB,EACtB,OAAoB;QAEpB,MAAM,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,IAAI,GAAG,EAA0B,CAAC;QACvE,MAAM,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,IAAI,GAAG,EAAgB,CAAC;QAExD,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QACpB,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QACtB,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;QAE3B,GAAG,CAAC,gBAAgB,CAAC,IAAI,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;QAC9C,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,WAAW,CACT,GAAQ,EACR,IAAiB,EACjB,QAAsB,EACtB,MAA6B;QAE7B,IAAI,QAAQ,EAAE,CAAC;YACb,MAAM,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;YAClC,IAAI,KAAK,EAAE,CAAC;gBACV,MAAM,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;gBAC7B,IAAI,KAAK,EAAE,CAAC;oBACV,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;oBACvB,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;wBAChB,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;wBAClB,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;4BAChB,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;wBACzB,CAAC;oBACH,CAAC;gBACH,CAAC;YACH,CAAC;YACD,GAAG,CAAC,mBAAmB,CAAC,IAAI,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;QAClD,CAAC;IACH,CAAC;IAED,eAAe;QACb,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE;YAClC,OAAO,CAAC,OAAO,CAAC,CAAC,cAAc,EAAE,GAAG,EAAE,EAAE;gBACtC,cAAc,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,EAAE;oBAClC,GAAG,CAAC,mBAAmB,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;gBAC1C,CAAC,CAAC,CAAC;YACL,CAAC,CAAC,CAAC;YACH,OAAO,CAAC,KAAK,EAAE,CAAC;YAChB,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACzB,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AAED,eAAe,gBAAgB,CAAC","sourcesContent":["export type EventsMaps = WindowEventMap & DocumentEventMap;\nexport type EventsNames = keyof EventsMaps;\nexport type EventsHandler = GlobalEventHandlersEventMap[keyof GlobalEventHandlersEventMap];\nexport type ListenerFunc = (event?: EventsHandler) => any | EventListenerOrEventListenerObject;\nexport type AddOptions = boolean | AddEventListenerOptions;\n\nexport class EventsCollection {\n private coll = new Map<EventsNames, Map<EventTarget, Set<ListenerFunc>>>();\n\n addEvent<SRC extends EventTarget = HTMLElement>(\n src: SRC,\n type: EventsNames,\n listener: ListenerFunc,\n options?: AddOptions,\n ) {\n const eType = this.coll.get(type) || new Map<any, Set<ListenerFunc>>();\n const eElem = eType.get(src) || new Set<ListenerFunc>();\n\n eElem.add(listener);\n eType.set(src, eElem);\n this.coll.set(type, eType);\n\n src.addEventListener(type, listener, options);\n return listener;\n }\n\n removeEvent<SRC extends EventTarget = HTMLElement>(\n src: SRC,\n type: EventsNames,\n listener: ListenerFunc,\n option?: EventListenerOptions,\n ) {\n if (listener) {\n const eType = this.coll.get(type);\n if (eType) {\n const eElem = eType.get(src);\n if (eElem) {\n eElem.delete(listener);\n if (!eElem.size) {\n eType.delete(src);\n if (!eType.size) {\n this.coll.delete(type);\n }\n }\n }\n }\n src.removeEventListener(type, listener, option);\n }\n }\n\n removeAllEvents() {\n this.coll.forEach((typeMap, type) => {\n typeMap.forEach((eventListeners, src) => {\n eventListeners.forEach((listener) => {\n src.removeEventListener(type, listener);\n });\n });\n typeMap.clear();\n this.coll.delete(type);\n });\n }\n}\n\nexport default EventsCollection;\n"]}
|
package/lib/icons.d.ts
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
export declare const svgDelta: () => import("lit").TemplateResult<1>;
|
2
|
-
export declare const svgDeltaSmooth: () => import("lit").TemplateResult<1>;
|
3
|
-
export declare const svgArrow: (body?: boolean) => import("lit").TemplateResult<1>;
|
4
|
-
export declare const svgSearch: () => import("lit").TemplateResult<1>;
|
5
|
-
export declare const svgEye: () => import("lit").TemplateResult<1>;
|
6
|
-
export declare const svgX: () => import("lit").TemplateResult<1>;
|
7
|
-
export declare const svgImage: () => import("lit").TemplateResult<1>;
|
8
|
-
export declare const svgSun: () => import("lit").TemplateResult<1>;
|
9
|
-
export declare const svgMoon: (star?: boolean) => import("lit").TemplateResult<1>;
|
10
|
-
export declare const svgLink: () => import("lit").TemplateResult<1>;
|
11
|
-
export declare const icons: {
|
12
|
-
delta: () => import("lit").TemplateResult<1>;
|
13
|
-
"delta-smooth": () => import("lit").TemplateResult<1>;
|
14
|
-
arrow: (body?: boolean) => import("lit").TemplateResult<1>;
|
15
|
-
"arrow-body": () => import("lit").TemplateResult<1>;
|
16
|
-
search: () => import("lit").TemplateResult<1>;
|
17
|
-
eye: () => import("lit").TemplateResult<1>;
|
18
|
-
x: () => import("lit").TemplateResult<1>;
|
19
|
-
image: () => import("lit").TemplateResult<1>;
|
20
|
-
moon: (star?: boolean) => import("lit").TemplateResult<1>;
|
21
|
-
"moon-star": () => import("lit").TemplateResult<1>;
|
22
|
-
sun: () => import("lit").TemplateResult<1>;
|
23
|
-
link: () => import("lit").TemplateResult<1>;
|
24
|
-
};
|
25
|
-
//# sourceMappingURL=icons.d.ts.map
|