ngwr 2.2.0 → 4.0.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 +8 -7
- package/alert/alert-type.d.ts +7 -0
- package/alert/alert.component.d.ts +21 -0
- package/alert/alert.module.d.ts +7 -0
- package/alert/index.d.ts +5 -0
- package/alert/public-api.d.ts +9 -0
- package/alert/styles/_index.scss +58 -0
- package/alert/styles/theming.scss +26 -0
- package/alert/styles/vars.scss +11 -0
- package/avatar/avatar.component.d.ts +27 -0
- package/avatar/avatar.module.d.ts +7 -0
- package/avatar/index.d.ts +5 -0
- package/avatar/public-api.d.ts +8 -0
- package/avatar/styles/_index.scss +39 -0
- package/button/button-group.component.d.ts +12 -0
- package/button/button.component.d.ts +26 -58
- package/button/button.module.d.ts +2 -1
- package/button/index.d.ts +5 -2
- package/button/public-api.d.ts +9 -0
- package/button/styles/_index.scss +187 -0
- package/button/styles/vars.scss +13 -0
- package/{core/abstract/base.d.ts → cdk/base.directive.d.ts} +7 -1
- package/cdk/index.d.ts +5 -0
- package/cdk/public-api.d.ts +7 -0
- package/cdk/rxjs/index.d.ts +5 -0
- package/cdk/rxjs/is-array.d.ts +8 -0
- package/cdk/rxjs/is-defined.d.ts +8 -0
- package/cdk/rxjs/is-not-empty-array.d.ts +8 -0
- package/cdk/rxjs/is-observable.d.ts +9 -0
- package/cdk/rxjs/public-api.d.ts +10 -0
- package/cdk/types/index.d.ts +5 -0
- package/cdk/types/maybe.d.ts +7 -0
- package/cdk/types/public-api.d.ts +9 -0
- package/cdk/types/safe-any.d.ts +7 -0
- package/{core/color/color.d.ts → cdk/types/theme-color.d.ts} +6 -0
- package/cdk/utils/generate-random-id.d.ts +12 -0
- package/cdk/utils/index.d.ts +5 -0
- package/cdk/utils/public-api.d.ts +7 -0
- package/checkbox/checkbox.component.d.ts +24 -45
- package/checkbox/checkbox.module.d.ts +1 -1
- package/checkbox/index.d.ts +5 -2
- package/checkbox/public-api.d.ts +8 -0
- package/checkbox/styles/_index.scss +86 -0
- package/checkbox/styles/vars.scss +16 -0
- package/dialog/dialog-animations.d.ts +7 -1
- package/dialog/{dialog-base.d.ts → dialog-base.directive.d.ts} +13 -7
- package/dialog/dialog-close.directive.d.ts +9 -0
- package/dialog/dialog-content.directive.d.ts +6 -0
- package/dialog/dialog-data.token.d.ts +8 -0
- package/dialog/dialog-footer.directive.d.ts +8 -0
- package/dialog/dialog-options.d.ts +19 -0
- package/dialog/dialog-ref.d.ts +19 -13
- package/dialog/dialog-title.directive.d.ts +6 -0
- package/dialog/dialog.component.d.ts +28 -0
- package/dialog/dialog.module.d.ts +11 -0
- package/dialog/dialog.service.d.ts +28 -0
- package/dialog/index.d.ts +5 -9
- package/dialog/public-api.d.ts +18 -0
- package/dialog/{dialog.scss → styles/_index.scss} +2 -0
- package/dialog/styles/vars.scss +7 -0
- package/divider/divider.component.d.ts +8 -35
- package/divider/divider.module.d.ts +1 -1
- package/divider/index.d.ts +5 -2
- package/divider/public-api.d.ts +8 -0
- package/divider/{divider.scss → styles/_index.scss} +1 -1
- package/esm2022/alert/alert-type.mjs +8 -0
- package/esm2022/alert/alert.component.mjs +54 -0
- package/esm2022/alert/alert.module.mjs +22 -0
- package/esm2022/alert/ngwr-alert.mjs +5 -0
- package/esm2022/alert/public-api.mjs +10 -0
- package/esm2022/avatar/avatar.component.mjs +77 -0
- package/esm2022/avatar/avatar.module.mjs +22 -0
- package/esm2022/avatar/ngwr-avatar.mjs +5 -0
- package/esm2022/avatar/public-api.mjs +9 -0
- package/esm2022/button/button-group.component.mjs +36 -0
- package/esm2022/button/button.component.mjs +55 -163
- package/esm2022/button/button.module.mjs +15 -8
- package/esm2022/button/ngwr-button.mjs +2 -2
- package/esm2022/button/public-api.mjs +10 -0
- package/esm2022/cdk/base.directive.mjs +27 -0
- package/esm2022/cdk/ngwr-cdk.mjs +5 -0
- package/esm2022/cdk/public-api.mjs +8 -0
- package/esm2022/cdk/rxjs/is-array.mjs +10 -0
- package/esm2022/cdk/rxjs/is-defined.mjs +10 -0
- package/esm2022/cdk/rxjs/is-not-empty-array.mjs +10 -0
- package/esm2022/cdk/rxjs/is-observable.mjs +10 -0
- package/esm2022/cdk/rxjs/ngwr-cdk-rxjs.mjs +5 -0
- package/esm2022/cdk/rxjs/public-api.mjs +11 -0
- package/esm2022/cdk/types/maybe.mjs +8 -0
- package/esm2022/cdk/types/ngwr-cdk-types.mjs +5 -0
- package/esm2022/cdk/types/public-api.mjs +10 -0
- package/esm2022/cdk/types/safe-any.mjs +8 -0
- package/esm2022/cdk/types/theme-color.mjs +17 -0
- package/esm2022/cdk/utils/generate-random-id.mjs +17 -0
- package/esm2022/cdk/utils/ngwr-cdk-utils.mjs +5 -0
- package/esm2022/cdk/utils/public-api.mjs +8 -0
- package/esm2022/checkbox/checkbox.component.mjs +54 -120
- package/esm2022/checkbox/checkbox.module.mjs +14 -8
- package/esm2022/checkbox/ngwr-checkbox.mjs +2 -2
- package/esm2022/checkbox/public-api.mjs +9 -0
- package/esm2022/dialog/dialog-animations.mjs +8 -2
- package/esm2022/dialog/dialog-base.directive.mjs +95 -0
- package/esm2022/dialog/dialog-close.directive.mjs +33 -0
- package/esm2022/dialog/dialog-content.directive.mjs +25 -0
- package/esm2022/dialog/dialog-data.token.mjs +9 -0
- package/esm2022/dialog/dialog-footer.directive.mjs +36 -0
- package/esm2022/dialog/dialog-options.mjs +9 -0
- package/esm2022/dialog/dialog-ref.mjs +22 -16
- package/esm2022/dialog/dialog-title.directive.mjs +25 -0
- package/esm2022/dialog/dialog.component.mjs +57 -0
- package/esm2022/dialog/dialog.module.mjs +38 -0
- package/esm2022/dialog/dialog.service.mjs +107 -0
- package/esm2022/dialog/ngwr-dialog.mjs +2 -2
- package/esm2022/dialog/public-api.mjs +19 -0
- package/esm2022/divider/divider.component.mjs +16 -57
- package/esm2022/divider/divider.module.mjs +8 -8
- package/esm2022/divider/ngwr-divider.mjs +2 -2
- package/esm2022/divider/public-api.mjs +9 -0
- package/esm2022/form/form-error.component.mjs +33 -0
- package/esm2022/form/form-item.component.mjs +43 -0
- package/esm2022/form/form.module.mjs +23 -0
- package/esm2022/form/ngwr-form.mjs +2 -2
- package/esm2022/form/public-api.mjs +10 -0
- package/esm2022/icon/icon.component.mjs +82 -0
- package/esm2022/icon/icon.module.mjs +22 -0
- package/esm2022/icon/icon.service.mjs +40 -0
- package/esm2022/icon/icons.mjs +289 -279
- package/esm2022/icon/ngwr-icon.mjs +2 -2
- package/esm2022/icon/provide-wr-icons.mjs +17 -0
- package/esm2022/icon/public-api.mjs +12 -0
- package/esm2022/input/input-types.mjs +1 -1
- package/esm2022/input/input.component.mjs +119 -0
- package/esm2022/input/input.module.mjs +22 -0
- package/esm2022/input/ngwr-input.mjs +2 -2
- package/esm2022/input/public-api.mjs +10 -0
- package/esm2022/ngwr.mjs +2 -2
- package/esm2022/pipes/new-array.pipe.mjs +23 -0
- package/esm2022/pipes/ngwr-pipes.mjs +5 -0
- package/esm2022/pipes/pipes.module.mjs +22 -0
- package/esm2022/pipes/public-api.mjs +9 -0
- package/esm2022/progress/ngwr-progress.mjs +5 -0
- package/esm2022/progress/progress.component.mjs +42 -0
- package/esm2022/progress/progress.module.mjs +22 -0
- package/esm2022/progress/public-api.mjs +9 -0
- package/esm2022/public-api.mjs +3 -0
- package/esm2022/qr/generator.mjs +84 -0
- package/esm2022/qr/ngwr-qr.mjs +5 -0
- package/esm2022/qr/public-api.mjs +9 -0
- package/esm2022/qr/qr.component.mjs +90 -0
- package/esm2022/qr/qr.module.mjs +22 -0
- package/esm2022/qr/qrcodegen.mjs +872 -0
- package/esm2022/skeleton/index.mjs +3 -3
- package/esm2022/skeleton/skeleton.component.mjs +43 -0
- package/esm2022/skeleton/skeleton.module.mjs +16 -0
- package/esm2022/spinner/index.mjs +3 -3
- package/esm2022/spinner/spinner.component.mjs +33 -0
- package/esm2022/spinner/spinner.module.mjs +22 -0
- package/esm2022/tag/ngwr-tag.mjs +2 -2
- package/esm2022/tag/public-api.mjs +9 -0
- package/esm2022/tag/tag.component.mjs +74 -0
- package/esm2022/tag/tag.module.mjs +16 -0
- package/fesm2022/ngwr-alert.mjs +94 -0
- package/fesm2022/ngwr-alert.mjs.map +1 -0
- package/fesm2022/ngwr-avatar.mjs +110 -0
- package/fesm2022/ngwr-avatar.mjs.map +1 -0
- package/fesm2022/ngwr-button.mjs +108 -169
- package/fesm2022/ngwr-button.mjs.map +1 -1
- package/fesm2022/ngwr-cdk-rxjs.mjs +53 -0
- package/fesm2022/ngwr-cdk-rxjs.mjs.map +1 -0
- package/fesm2022/ngwr-cdk-types.mjs +44 -0
- package/fesm2022/ngwr-cdk-types.mjs.map +1 -0
- package/fesm2022/ngwr-cdk-utils.mjs +30 -0
- package/fesm2022/ngwr-cdk-utils.mjs.map +1 -0
- package/fesm2022/ngwr-cdk.mjs +41 -0
- package/fesm2022/ngwr-cdk.mjs.map +1 -0
- package/fesm2022/ngwr-checkbox.mjs +73 -126
- package/fesm2022/ngwr-checkbox.mjs.map +1 -1
- package/fesm2022/ngwr-dialog.mjs +225 -165
- package/fesm2022/ngwr-dialog.mjs.map +1 -1
- package/fesm2022/ngwr-divider.mjs +29 -63
- package/fesm2022/ngwr-divider.mjs.map +1 -1
- package/fesm2022/ngwr-form.mjs +72 -54
- package/fesm2022/ngwr-form.mjs.map +1 -1
- package/fesm2022/ngwr-icon.mjs +445 -368
- package/fesm2022/ngwr-icon.mjs.map +1 -1
- package/fesm2022/ngwr-input.mjs +97 -208
- package/fesm2022/ngwr-input.mjs.map +1 -1
- package/fesm2022/ngwr-pipes.mjs +56 -0
- package/fesm2022/ngwr-pipes.mjs.map +1 -0
- package/fesm2022/ngwr-progress.mjs +75 -0
- package/fesm2022/ngwr-progress.mjs.map +1 -0
- package/fesm2022/{ngwr-qrcode.mjs → ngwr-qr.mjs} +72 -113
- package/fesm2022/ngwr-qr.mjs.map +1 -0
- package/fesm2022/ngwr-skeleton.mjs +19 -22
- package/fesm2022/ngwr-skeleton.mjs.map +1 -1
- package/fesm2022/ngwr-spinner.mjs +35 -19
- package/fesm2022/ngwr-spinner.mjs.map +1 -1
- package/fesm2022/ngwr-tag.mjs +46 -49
- package/fesm2022/ngwr-tag.mjs.map +1 -1
- package/fesm2022/ngwr.mjs +1 -1
- package/fesm2022/ngwr.mjs.map +1 -1
- package/form/form-error.component.d.ts +11 -0
- package/form/form-item.component.d.ts +14 -0
- package/form/form.module.d.ts +8 -0
- package/form/index.d.ts +5 -3
- package/form/public-api.d.ts +9 -0
- package/icon/icon.component.d.ts +19 -0
- package/icon/icon.module.d.ts +7 -0
- package/icon/icon.service.d.ts +23 -0
- package/icon/icons.d.ts +115 -101
- package/icon/index.d.ts +5 -4
- package/icon/provide-wr-icons.d.ts +9 -0
- package/icon/public-api.d.ts +11 -0
- package/icon/{icon.scss → styles/_index.scss} +4 -2
- package/icon/styles/vars.scss +3 -0
- package/index.d.ts +5 -2
- package/input/index.d.ts +5 -2
- package/input/input-types.d.ts +0 -2
- package/input/input.component.d.ts +43 -0
- package/input/input.module.d.ts +7 -0
- package/input/public-api.d.ts +9 -0
- package/input/styles/_index.scss +107 -0
- package/input/styles/vars.scss +16 -0
- package/package.json +110 -57
- package/pipes/index.d.ts +5 -0
- package/pipes/new-array.pipe.d.ts +13 -0
- package/pipes/pipes.module.d.ts +7 -0
- package/pipes/public-api.d.ts +8 -0
- package/progress/index.d.ts +5 -0
- package/progress/progress.component.d.ts +10 -0
- package/progress/progress.module.d.ts +7 -0
- package/progress/public-api.d.ts +8 -0
- package/progress/styles/_index.scss +24 -0
- package/progress/styles/theming.scss +8 -0
- package/progress/styles/vars.scss +6 -0
- package/public-api.d.ts +2 -0
- package/qr/index.d.ts +5 -0
- package/qr/public-api.d.ts +8 -0
- package/qr/qr.component.d.ts +31 -0
- package/qr/qr.module.d.ts +7 -0
- package/skeleton/index.d.ts +2 -2
- package/skeleton/skeleton.component.d.ts +10 -0
- package/skeleton/{skeleton-module.d.ts → skeleton.module.d.ts} +2 -3
- package/skeleton/{skeleton.scss → styles/_index.scss} +1 -1
- package/spinner/index.d.ts +2 -2
- package/spinner/spinner.component.d.ts +11 -0
- package/spinner/{spinner-module.d.ts → spinner.module.d.ts} +2 -2
- package/spinner/{spinner.scss → styles/_index.scss} +2 -1
- package/styles/animations.scss +4 -4
- package/styles/cdk.scss +4 -0
- package/styles/colors.scss +72 -0
- package/styles/grid.scss +1 -2
- package/styles/reset.scss +2 -2
- package/styles/variables.scss +78 -0
- package/styles.scss +23 -0
- package/tag/index.d.ts +5 -2
- package/tag/public-api.d.ts +8 -0
- package/tag/styles/_index.scss +32 -0
- package/tag/styles/theming.scss +21 -0
- package/tag/styles/vars.scss +12 -0
- package/tag/tag.component.d.ts +21 -0
- package/tag/tag.module.d.ts +7 -0
- package/_grid.scss +0 -2
- package/_index.scss +0 -31
- package/backdrop/backdrop.scss +0 -3
- package/button/button.scss +0 -160
- package/checkbox/checkbox.scss +0 -103
- package/core/abstract/index.d.ts +0 -1
- package/core/color/index.d.ts +0 -2
- package/core/color/is-theme-color.d.ts +0 -2
- package/core/decorators/index.d.ts +0 -1
- package/core/decorators/input-boolean.d.ts +0 -1
- package/core/overlay/connected-overlay-directive.d.ts +0 -16
- package/core/overlay/get-placement-name.d.ts +0 -2
- package/core/overlay/index.d.ts +0 -5
- package/core/overlay/overlay-module.d.ts +0 -7
- package/core/overlay/overlay.scss +0 -9
- package/core/overlay/position-map.d.ts +0 -17
- package/core/overlay/position-type.d.ts +0 -2
- package/core/types/index.d.ts +0 -3
- package/core/types/on-change-type.d.ts +0 -2
- package/core/types/on-touched-type.d.ts +0 -2
- package/core/types/safe-any.d.ts +0 -1
- package/dialog/dialog-config.d.ts +0 -11
- package/dialog/dialog-container.d.ts +0 -22
- package/dialog/dialog-content-directives.d.ts +0 -31
- package/dialog/dialog-module.d.ts +0 -12
- package/dialog/dialog-service.d.ts +0 -27
- package/dialog/dialog-tokens.d.ts +0 -2
- package/esm2022/button/index.mjs +0 -3
- package/esm2022/checkbox/index.mjs +0 -3
- package/esm2022/core/abstract/base.mjs +0 -18
- package/esm2022/core/abstract/index.mjs +0 -2
- package/esm2022/core/abstract/ngwr-core-abstract.mjs +0 -5
- package/esm2022/core/color/color.mjs +0 -11
- package/esm2022/core/color/index.mjs +0 -3
- package/esm2022/core/color/is-theme-color.mjs +0 -9
- package/esm2022/core/color/ngwr-core-color.mjs +0 -5
- package/esm2022/core/decorators/index.mjs +0 -2
- package/esm2022/core/decorators/input-boolean.mjs +0 -15
- package/esm2022/core/decorators/ngwr-core-decorators.mjs +0 -5
- package/esm2022/core/overlay/connected-overlay-directive.mjs +0 -98
- package/esm2022/core/overlay/get-placement-name.mjs +0 -13
- package/esm2022/core/overlay/index.mjs +0 -5
- package/esm2022/core/overlay/ngwr-core-overlay.mjs +0 -5
- package/esm2022/core/overlay/overlay-module.mjs +0 -16
- package/esm2022/core/overlay/position-map.mjs +0 -18
- package/esm2022/core/overlay/position-type.mjs +0 -2
- package/esm2022/core/types/index.mjs +0 -4
- package/esm2022/core/types/ngwr-core-types.mjs +0 -5
- package/esm2022/core/types/on-change-type.mjs +0 -2
- package/esm2022/core/types/on-touched-type.mjs +0 -2
- package/esm2022/core/types/safe-any.mjs +0 -2
- package/esm2022/dialog/dialog-base.mjs +0 -92
- package/esm2022/dialog/dialog-config.mjs +0 -3
- package/esm2022/dialog/dialog-container.mjs +0 -58
- package/esm2022/dialog/dialog-content-directives.mjs +0 -98
- package/esm2022/dialog/dialog-module.mjs +0 -24
- package/esm2022/dialog/dialog-service.mjs +0 -109
- package/esm2022/dialog/dialog-tokens.mjs +0 -3
- package/esm2022/dialog/index.mjs +0 -10
- package/esm2022/divider/index.mjs +0 -3
- package/esm2022/form/form-error.mjs +0 -23
- package/esm2022/form/form-item.mjs +0 -46
- package/esm2022/form/form-module.mjs +0 -19
- package/esm2022/form/index.mjs +0 -4
- package/esm2022/icon/icon-module.mjs +0 -21
- package/esm2022/icon/icon-service.mjs +0 -21
- package/esm2022/icon/icon.mjs +0 -60
- package/esm2022/icon/index.mjs +0 -5
- package/esm2022/index.mjs +0 -3
- package/esm2022/input/index.mjs +0 -3
- package/esm2022/input/input-module.mjs +0 -20
- package/esm2022/input/input.mjs +0 -240
- package/esm2022/qrcode/generator.mjs +0 -84
- package/esm2022/qrcode/index.mjs +0 -3
- package/esm2022/qrcode/ngwr-qrcode.mjs +0 -5
- package/esm2022/qrcode/qrcode-module.mjs +0 -19
- package/esm2022/qrcode/qrcode.mjs +0 -142
- package/esm2022/qrcode/qrcodegen.mjs +0 -872
- package/esm2022/skeleton/skeleton-module.mjs +0 -18
- package/esm2022/skeleton/skeleton.mjs +0 -44
- package/esm2022/spinner/spinner-module.mjs +0 -16
- package/esm2022/spinner/spinner.mjs +0 -23
- package/esm2022/tag/index.mjs +0 -3
- package/esm2022/tag/tag-module.mjs +0 -20
- package/esm2022/tag/tag.mjs +0 -80
- package/esm2022/tooltip/index.mjs +0 -5
- package/esm2022/tooltip/ngwr-tooltip.mjs +0 -5
- package/esm2022/tooltip/tooltip-component.mjs +0 -93
- package/esm2022/tooltip/tooltip-default-positions.mjs +0 -8
- package/esm2022/tooltip/tooltip-directive.mjs +0 -85
- package/esm2022/tooltip/tooltip-module.mjs +0 -21
- package/esm2022/tooltip/tooltip-trigger.mjs +0 -2
- package/fesm2022/ngwr-core-abstract.mjs +0 -25
- package/fesm2022/ngwr-core-abstract.mjs.map +0 -1
- package/fesm2022/ngwr-core-color.mjs +0 -25
- package/fesm2022/ngwr-core-color.mjs.map +0 -1
- package/fesm2022/ngwr-core-decorators.mjs +0 -22
- package/fesm2022/ngwr-core-decorators.mjs.map +0 -1
- package/fesm2022/ngwr-core-overlay.mjs +0 -146
- package/fesm2022/ngwr-core-overlay.mjs.map +0 -1
- package/fesm2022/ngwr-core-types.mjs +0 -4
- package/fesm2022/ngwr-core-types.mjs.map +0 -1
- package/fesm2022/ngwr-qrcode.mjs.map +0 -1
- package/fesm2022/ngwr-tooltip.mjs +0 -204
- package/fesm2022/ngwr-tooltip.mjs.map +0 -1
- package/form/form-error.d.ts +0 -6
- package/form/form-item.d.ts +0 -15
- package/form/form-module.d.ts +0 -9
- package/icon/icon-module.d.ts +0 -9
- package/icon/icon-service.d.ts +0 -8
- package/icon/icon.d.ts +0 -20
- package/input/input-module.d.ts +0 -10
- package/input/input.d.ts +0 -65
- package/input/input.scss +0 -163
- package/qrcode/index.d.ts +0 -2
- package/qrcode/qrcode-module.d.ts +0 -9
- package/qrcode/qrcode.d.ts +0 -46
- package/skeleton/skeleton.d.ts +0 -11
- package/spinner/spinner.d.ts +0 -6
- package/styles/root.scss +0 -172
- package/tag/tag-module.d.ts +0 -10
- package/tag/tag.d.ts +0 -18
- package/tag/tag.scss +0 -106
- package/tooltip/index.d.ts +0 -5
- package/tooltip/tooltip-component.d.ts +0 -31
- package/tooltip/tooltip-default-positions.d.ts +0 -1
- package/tooltip/tooltip-directive.d.ts +0 -22
- package/tooltip/tooltip-module.d.ts +0 -11
- package/tooltip/tooltip-trigger.d.ts +0 -1
- package/tooltip/tooltip.scss +0 -67
- /package/form/{form.scss → styles/_index.scss} +0 -0
- /package/{qrcode → qr}/generator.d.ts +0 -0
- /package/{qrcode → qr}/qrcodegen.d.ts +0 -0
- /package/{qrcode/qrcode.scss → qr/styles/_index.scss} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ngwr-tooltip.mjs","sources":["../../../projects/lib/tooltip/tooltip-default-positions.ts","../../../projects/lib/tooltip/tooltip-component.ts","../../../projects/lib/tooltip/tooltip.html","../../../projects/lib/tooltip/tooltip-directive.ts","../../../projects/lib/tooltip/tooltip-module.ts","../../../projects/lib/tooltip/ngwr-tooltip.ts"],"sourcesContent":["import { WR_POSITION_MAP } from 'ngwr/core/overlay';\n\nexport const WR_TOOLTIP_DEFAULT_POSITIONS = [\n WR_POSITION_MAP.top,\n WR_POSITION_MAP.bottom,\n WR_POSITION_MAP.right,\n WR_POSITION_MAP.left,\n];\n","import { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { CdkConnectedOverlay, ConnectedOverlayPositionChange, ConnectionPositionPair } from '@angular/cdk/overlay';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n Input,\n ViewChild,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport { getPlacementName } from 'ngwr/core/overlay';\n\nimport { WR_TOOLTIP_DEFAULT_POSITIONS } from './tooltip-default-positions';\nimport { WrTooltipTrigger } from './tooltip-trigger';\n\n@Component({\n selector: 'wr-tooltip',\n templateUrl: './tooltip.html',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n preserveWhitespaces: false,\n})\nexport class WrTooltipComponent {\n @ViewChild('overlay', { static: false }) overlay!: CdkConnectedOverlay;\n\n @Input()\n get message(): string | null {\n return this._message;\n }\n set message(value: string | null) {\n this._message = String(value);\n this.cdr.markForCheck();\n }\n private _message: string | null = null;\n\n @Input()\n get trigger(): WrTooltipTrigger {\n return this._trigger;\n }\n set trigger(value: WrTooltipTrigger) {\n this._trigger = value;\n this.cdr.markForCheck();\n }\n private _trigger: WrTooltipTrigger = 'hover';\n\n @Input()\n get visible(): boolean {\n return this._visible;\n }\n set visible(value: boolean) {\n const visible = coerceBooleanProperty(value);\n\n if (this._visible !== visible) {\n this._visible = visible;\n this.cdr.markForCheck();\n }\n }\n private _visible: boolean = false;\n\n @Input()\n get origin(): ElementRef {\n return this._origin;\n }\n set origin(value: ElementRef) {\n this._origin = value;\n this.cdr.markForCheck();\n }\n private _origin!: ElementRef;\n\n @Input()\n get position(): string {\n return this._position;\n }\n set position(value: string) {\n this._position = value;\n this.cdr.markForCheck();\n }\n private _position: string = 'top';\n\n readonly positions: ConnectionPositionPair[] = WR_TOOLTIP_DEFAULT_POSITIONS;\n\n constructor(private readonly cdr: ChangeDetectorRef) {}\n\n show(): void {\n if (!this.visible && this.message) {\n this.visible = true;\n }\n }\n\n hide(): void {\n if (this.visible) {\n this.visible = false;\n }\n }\n\n onPositionChange(position: ConnectedOverlayPositionChange): void {\n this.position = getPlacementName(position)!;\n }\n\n onClickOutside(event: MouseEvent): void {\n if (!this.origin.nativeElement.contains(event.target)) {\n this.hide();\n }\n }\n}\n","<ng-template\n #overlay=\"cdkConnectedOverlay\"\n cdkConnectedOverlay\n wrConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"origin\"\n [cdkConnectedOverlayOpen]=\"visible\"\n [cdkConnectedOverlayPositions]=\"positions\"\n [cdkConnectedOverlayPush]=\"true\"\n [wrArrowPointAtCenter]=\"false\"\n (overlayOutsideClick)=\"onClickOutside($event)\"\n (detach)=\"hide()\"\n (positionChange)=\"onPositionChange($event)\"\n>\n <div class=\"wr-tooltip wr-tooltip--{{ position }}\">\n <div class=\"wr-tooltip__wrapper\">\n <div class=\"wr-tooltip__title\">{{ message }}</div>\n <div class=\"wr-tooltip__arrow\"></div>\n </div>\n </div>\n</ng-template>\n","import {\n AfterViewInit,\n ComponentRef,\n Directive,\n ElementRef,\n HostListener,\n Input,\n Renderer2,\n ViewContainerRef,\n} from '@angular/core';\n\nimport { WrTooltipComponent } from './tooltip-component';\nimport { WrTooltipTrigger } from './tooltip-trigger';\n\n@Directive({\n selector: '[wrTooltip]',\n exportAs: 'wrTooltip',\n})\nexport class WrTooltipDirective implements AfterViewInit {\n @Input('wrTooltip') message: string | null = null;\n\n @Input() trigger: WrTooltipTrigger = 'hover';\n\n @HostListener('click', ['$event'])\n onClick(event: MouseEvent): void {\n if (this.trigger === 'click') {\n event.preventDefault();\n this.onTooltipShow();\n }\n }\n\n @HostListener('mouseenter')\n onMouseEnter(): void {\n if (this.trigger === 'hover') {\n this.onTooltipShow();\n }\n }\n\n @HostListener('mouseleave')\n onMouseLeave(): void {\n if (this.trigger === 'hover') {\n let overlayElement: HTMLElement | undefined;\n\n this.leaveDelay(true, false, 0.1);\n\n if (this.componentRef.instance?.overlay.overlayRef && !overlayElement) {\n overlayElement = this.componentRef.instance.overlay.overlayRef.overlayElement;\n\n this.r2.listen(overlayElement, 'mouseenter', () => {\n this.leaveDelay(false, true, 0.1);\n });\n this.r2.listen(overlayElement, 'mouseleave', () => {\n this.leaveDelay(false, false, -1);\n });\n }\n }\n }\n\n private readonly componentRef: ComponentRef<WrTooltipComponent> = this.vcr.createComponent(WrTooltipComponent);\n private delayTimer: ReturnType<typeof setTimeout> | undefined;\n\n constructor(\n private readonly elRef: ElementRef,\n private readonly r2: Renderer2,\n private readonly vcr: ViewContainerRef\n ) {}\n\n ngAfterViewInit(): void {\n this.componentRef.instance.origin = this.elRef;\n this.componentRef.instance.message = this.message;\n this.componentRef.instance.trigger = this.trigger;\n }\n\n private onTooltipShow(): void {\n this.componentRef?.instance?.show();\n }\n\n private onTooltipHide(): void {\n this.componentRef?.instance?.hide();\n }\n\n private leaveDelay(isOrigin: boolean, isEnter: boolean, delay: number = -1): void {\n if (delay > 0) {\n this.delayTimer = setTimeout(() => {\n this.delayTimer = undefined;\n isEnter ? this.onTooltipShow() : this.onTooltipHide();\n }, delay * 1000);\n } else {\n isEnter && isOrigin ? this.onTooltipShow() : this.onTooltipHide();\n }\n }\n}\n","import { OverlayModule } from '@angular/cdk/overlay';\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\n\nimport { WrOverlayModule } from 'ngwr/core/overlay';\n\nimport { WrTooltipComponent } from './tooltip-component';\nimport { WrTooltipDirective } from './tooltip-directive';\n\n@NgModule({\n imports: [CommonModule, OverlayModule, WrOverlayModule],\n declarations: [WrTooltipComponent, WrTooltipDirective],\n exports: [WrTooltipComponent, WrTooltipDirective],\n})\nexport class WrTooltipModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAEa,MAAA,4BAA4B,GAAG;AAC1C,IAAA,eAAe,CAAC,GAAG;AACnB,IAAA,eAAe,CAAC,MAAM;AACtB,IAAA,eAAe,CAAC,KAAK;AACrB,IAAA,eAAe,CAAC,IAAI;;;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AAAf,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,eAAe,EAHX,YAAA,EAAA,CAAA,kBAAkB,EAAE,kBAAkB,CAD3C,EAAA,OAAA,EAAA,CAAA,YAAY,EAAE,aAAa,EAAE,eAAe,CAE5C,EAAA,OAAA,EAAA,CAAA,kBAAkB,EAAE,kBAAkB,CAAA,EAAA,CAAA,CAAA,EAAA;AAErC,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,eAAe,EAJhB,OAAA,EAAA,CAAA,YAAY,EAAE,aAAa,EAAE,eAAe,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAI3C,eAAe,EAAA,UAAA,EAAA,CAAA;kBAL3B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,aAAa,EAAE,eAAe,CAAC;AACvD,oBAAA,YAAY,EAAE,CAAC,kBAAkB,EAAE,kBAAkB,CAAC;AACtD,oBAAA,OAAO,EAAE,CAAC,kBAAkB,EAAE,kBAAkB,CAAC;AAClD,iBAAA,CAAA;;;ACbD;;AAEG;;;;"}
|
package/form/form-error.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class WrFormError {
|
|
3
|
-
class: string;
|
|
4
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<WrFormError, never>;
|
|
5
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<WrFormError, "wr-form-error", ["wrFormError"], {}, {}, never, ["*"], false, never>;
|
|
6
|
-
}
|
package/form/form-item.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { BooleanInput } from '@angular/cdk/coercion';
|
|
2
|
-
import { ChangeDetectorRef } from '@angular/core';
|
|
3
|
-
import { SafeAny } from 'ngwr/core/types';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class WrFormItem {
|
|
6
|
-
private readonly cdr;
|
|
7
|
-
get hasError(): boolean;
|
|
8
|
-
set hasError(value: BooleanInput);
|
|
9
|
-
private _hasError;
|
|
10
|
-
/** Set element classes */
|
|
11
|
-
get elClasses(): SafeAny;
|
|
12
|
-
constructor(cdr: ChangeDetectorRef);
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<WrFormItem, never>;
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<WrFormItem, "wr-form-item", ["wrFormItem"], { "hasError": { "alias": "hasError"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
15
|
-
}
|
package/form/form-module.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./form-item";
|
|
3
|
-
import * as i2 from "./form-error";
|
|
4
|
-
import * as i3 from "@angular/common";
|
|
5
|
-
export declare class WrFormModule {
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<WrFormModule, never>;
|
|
7
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<WrFormModule, [typeof i1.WrFormItem, typeof i2.WrFormError], [typeof i3.CommonModule], [typeof i1.WrFormItem, typeof i2.WrFormError]>;
|
|
8
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<WrFormModule>;
|
|
9
|
-
}
|
package/icon/icon-module.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "./icon";
|
|
4
|
-
export declare class WrIconModule {
|
|
5
|
-
static forRoot(): ModuleWithProviders<WrIconModule>;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<WrIconModule, never>;
|
|
7
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<WrIconModule, [typeof i1.WrIcon], never, [typeof i1.WrIcon]>;
|
|
8
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<WrIconModule>;
|
|
9
|
-
}
|
package/icon/icon-service.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class WrIconService {
|
|
3
|
-
static registry: Readonly<Map<string, string>>;
|
|
4
|
-
get registry(): Readonly<Map<string, string>>;
|
|
5
|
-
static registerIcons(): void;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<WrIconService, never>;
|
|
7
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<WrIconService>;
|
|
8
|
-
}
|
package/icon/icon.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { ElementRef } from '@angular/core';
|
|
2
|
-
import { SafeAny } from 'ngwr/core/types';
|
|
3
|
-
import { WrIconService } from './icon-service';
|
|
4
|
-
import { wrIconName } from './icons';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class WrIcon {
|
|
7
|
-
private readonly elRef;
|
|
8
|
-
private readonly iconService;
|
|
9
|
-
private readonly doc;
|
|
10
|
-
set name(value: wrIconName | string);
|
|
11
|
-
get svg(): SVGElement | undefined;
|
|
12
|
-
set svg(value: SVGElement | undefined);
|
|
13
|
-
private _svg;
|
|
14
|
-
/** Set element classes */
|
|
15
|
-
get elClasses(): SafeAny;
|
|
16
|
-
constructor(elRef: ElementRef<HTMLElement>, iconService: WrIconService, doc: Document);
|
|
17
|
-
private svgElementFromString;
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<WrIcon, [null, null, { optional: true; }]>;
|
|
19
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<WrIcon, "wr-icon[name]", ["wrIcon"], { "name": { "alias": "name"; "required": false; }; }, {}, never, never, false, never>;
|
|
20
|
-
}
|
package/input/input-module.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./input";
|
|
3
|
-
import * as i2 from "@angular/common";
|
|
4
|
-
import * as i3 from "@angular/forms";
|
|
5
|
-
import * as i4 from "ngwr/icon";
|
|
6
|
-
export declare class WrInputModule {
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<WrInputModule, never>;
|
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<WrInputModule, [typeof i1.WrInput], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.WrIconModule], [typeof i1.WrInput]>;
|
|
9
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<WrInputModule>;
|
|
10
|
-
}
|
package/input/input.d.ts
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { FocusMonitor } from '@angular/cdk/a11y';
|
|
2
|
-
import { BooleanInput } from '@angular/cdk/coercion';
|
|
3
|
-
import { AfterViewInit, ChangeDetectorRef, ElementRef, NgZone, OnDestroy, OnInit } from '@angular/core';
|
|
4
|
-
import { AbstractControl, ControlValueAccessor, ValidationErrors, Validator } from '@angular/forms';
|
|
5
|
-
import { WrAbstractBase } from 'ngwr/core/abstract';
|
|
6
|
-
import { OnChangeType, OnTouchedType, SafeAny } from 'ngwr/core/types';
|
|
7
|
-
import { WrInputAutocomplete, WrInputModeType, WrInputType } from './input-types';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
export declare class WrInput extends WrAbstractBase implements ControlValueAccessor, AfterViewInit, OnInit, OnDestroy, Validator {
|
|
10
|
-
private readonly cdr;
|
|
11
|
-
private readonly elRef;
|
|
12
|
-
private readonly focusMonitor;
|
|
13
|
-
private readonly ngZone;
|
|
14
|
-
placeholder: string;
|
|
15
|
-
prefix: string | null;
|
|
16
|
-
suffix: string | null;
|
|
17
|
-
passwordIcons: BooleanInput;
|
|
18
|
-
get type(): WrInputType;
|
|
19
|
-
set type(type: WrInputType);
|
|
20
|
-
get inputmode(): WrInputModeType;
|
|
21
|
-
set inputmode(mode: WrInputModeType);
|
|
22
|
-
get disabled(): boolean;
|
|
23
|
-
set disabled(disabled: BooleanInput);
|
|
24
|
-
get readonly(): boolean;
|
|
25
|
-
set readonly(readonly: BooleanInput);
|
|
26
|
-
get required(): boolean;
|
|
27
|
-
set required(required: BooleanInput);
|
|
28
|
-
get autofocus(): boolean;
|
|
29
|
-
set autofocus(autofocus: BooleanInput);
|
|
30
|
-
get autocomplete(): WrInputAutocomplete;
|
|
31
|
-
set autocomplete(autofocus: WrInputAutocomplete);
|
|
32
|
-
get value(): string | number;
|
|
33
|
-
set value(val: string | number);
|
|
34
|
-
get valueAsString(): string;
|
|
35
|
-
get valueAsNumber(): number;
|
|
36
|
-
get isBadInput(): boolean;
|
|
37
|
-
inputElement: ElementRef<HTMLInputElement>;
|
|
38
|
-
get elClasses(): SafeAny;
|
|
39
|
-
eyeOn: boolean;
|
|
40
|
-
private _value;
|
|
41
|
-
private _disabled;
|
|
42
|
-
private _readonly;
|
|
43
|
-
private _required;
|
|
44
|
-
private _autofocus;
|
|
45
|
-
private _focused;
|
|
46
|
-
private _autocomplete;
|
|
47
|
-
private _type;
|
|
48
|
-
private _mode;
|
|
49
|
-
private onChangeCallback;
|
|
50
|
-
private onTouchedCallback;
|
|
51
|
-
constructor(cdr: ChangeDetectorRef, elRef: ElementRef<HTMLInputElement>, focusMonitor: FocusMonitor, ngZone: NgZone);
|
|
52
|
-
ngOnInit(): void;
|
|
53
|
-
ngAfterViewInit(): void;
|
|
54
|
-
ngOnDestroy(): void;
|
|
55
|
-
onFocus(event?: FocusEvent): void;
|
|
56
|
-
onBlur(event?: Event): void;
|
|
57
|
-
validate(control: AbstractControl): ValidationErrors | null;
|
|
58
|
-
writeValue(value: string): void;
|
|
59
|
-
registerOnChange(fn: OnChangeType): void;
|
|
60
|
-
registerOnTouched(fn: OnTouchedType): void;
|
|
61
|
-
onPasswordVisibilityChange(): void;
|
|
62
|
-
setDisabledState(isDisabled: boolean): void;
|
|
63
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<WrInput, never>;
|
|
64
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<WrInput, "wr-input", ["wrInput"], { "placeholder": { "alias": "placeholder"; "required": false; }; "prefix": { "alias": "prefix"; "required": false; }; "suffix": { "alias": "suffix"; "required": false; }; "passwordIcons": { "alias": "passwordIcons"; "required": false; }; "type": { "alias": "type"; "required": false; }; "inputmode": { "alias": "inputmode"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "required": { "alias": "required"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, never, false, never>;
|
|
65
|
-
}
|
package/input/input.scss
DELETED
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
.wr-input {
|
|
2
|
-
--input-icon-size: 1rem;
|
|
3
|
-
|
|
4
|
-
display: flex;
|
|
5
|
-
align-items: stretch;
|
|
6
|
-
flex-wrap: nowrap;
|
|
7
|
-
|
|
8
|
-
position: relative;
|
|
9
|
-
|
|
10
|
-
background: var(--wr-input-bg);
|
|
11
|
-
border-radius: var(--wr-input-border-radius-base);
|
|
12
|
-
|
|
13
|
-
padding: 0;
|
|
14
|
-
margin: 0;
|
|
15
|
-
|
|
16
|
-
&--fullwidth {
|
|
17
|
-
width: 100%;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
&--disabled {
|
|
21
|
-
pointer-events: none;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
&--password {
|
|
25
|
-
.wr-input-el__native {
|
|
26
|
-
padding-right: calc(var(--input-icon-size) + calc(var(--wr-input-padding-x-base) * 2));
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
&--has-prefix {
|
|
31
|
-
.wr-input-el__native {
|
|
32
|
-
border-top-left-radius: 0;
|
|
33
|
-
border-bottom-left-radius: 0;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
&--has-suffix {
|
|
38
|
-
.wr-input-el__native {
|
|
39
|
-
border-top-right-radius: 0;
|
|
40
|
-
border-bottom-right-radius: 0;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
&-prefix,
|
|
45
|
-
&-suffix {
|
|
46
|
-
display: flex;
|
|
47
|
-
border: 1px solid var(--wr-input-border-color);
|
|
48
|
-
background: var(--wr-input-suffix-prefix-bg);
|
|
49
|
-
|
|
50
|
-
color: var(--wr-input-suffix-prefix-color);
|
|
51
|
-
font-size: var(--wr-input-font-size-base);
|
|
52
|
-
font-weight: var(--wr-input-font-weight-base);
|
|
53
|
-
line-height: var(--wr-input-line-height-base);
|
|
54
|
-
|
|
55
|
-
padding: var(--wr-input-padding-y-base) var(--wr-input-padding-x-base);
|
|
56
|
-
margin: 0;
|
|
57
|
-
max-width: 30%;
|
|
58
|
-
|
|
59
|
-
&__text {
|
|
60
|
-
overflow: hidden;
|
|
61
|
-
text-overflow: ellipsis;
|
|
62
|
-
white-space: nowrap;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
&-prefix {
|
|
67
|
-
border-top-left-radius: var(--wr-input-border-radius-base);
|
|
68
|
-
border-bottom-left-radius: var(--wr-input-border-radius-base);
|
|
69
|
-
border-right: 0;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
&-suffix {
|
|
73
|
-
border-top-right-radius: var(--wr-input-border-radius-base);
|
|
74
|
-
border-bottom-right-radius: var(--wr-input-border-radius-base);
|
|
75
|
-
border-left: 0;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
&-el {
|
|
79
|
-
display: flex;
|
|
80
|
-
align-items: center;
|
|
81
|
-
|
|
82
|
-
height: 100%;
|
|
83
|
-
flex: 1;
|
|
84
|
-
|
|
85
|
-
position: relative;
|
|
86
|
-
|
|
87
|
-
margin: 0;
|
|
88
|
-
padding: 0;
|
|
89
|
-
|
|
90
|
-
&-icon {
|
|
91
|
-
display: flex;
|
|
92
|
-
flex-direction: column;
|
|
93
|
-
align-items: center;
|
|
94
|
-
justify-content: center;
|
|
95
|
-
|
|
96
|
-
width: calc(calc(var(--wr-input-padding-x-base) * 2) + var(--input-icon-size));
|
|
97
|
-
height: 100%;
|
|
98
|
-
|
|
99
|
-
position: absolute;
|
|
100
|
-
z-index: 3;
|
|
101
|
-
right: 0;
|
|
102
|
-
top: 0;
|
|
103
|
-
|
|
104
|
-
color: var(--wr-color-medium);
|
|
105
|
-
cursor: pointer;
|
|
106
|
-
|
|
107
|
-
&__icon {
|
|
108
|
-
width: var(--input-icon-size);
|
|
109
|
-
height: var(--input-icon-size);
|
|
110
|
-
transition: var(--wr-transition-base);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
&:hover {
|
|
114
|
-
color: var(--wr-color-secondary);
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
&__native {
|
|
119
|
-
display: inline-block;
|
|
120
|
-
|
|
121
|
-
appearance: none;
|
|
122
|
-
background: transparent;
|
|
123
|
-
border: 1px solid var(--wr-input-border-color);
|
|
124
|
-
border-radius: var(--wr-input-border-radius-base);
|
|
125
|
-
box-shadow: none;
|
|
126
|
-
|
|
127
|
-
color: var(--wr-input-color);
|
|
128
|
-
font-family: var(--wr-font-family-base);
|
|
129
|
-
font-size: var(--wr-input-font-size-base);
|
|
130
|
-
font-weight: var(--wr-input-font-weight-base);
|
|
131
|
-
line-height: var(--wr-input-line-height-base);
|
|
132
|
-
resize: none;
|
|
133
|
-
|
|
134
|
-
width: 100%;
|
|
135
|
-
|
|
136
|
-
padding: var(--wr-input-padding-y-base) var(--wr-input-padding-x-base);
|
|
137
|
-
|
|
138
|
-
position: relative;
|
|
139
|
-
z-index: 2;
|
|
140
|
-
|
|
141
|
-
transition: var(--wr-transition-base);
|
|
142
|
-
|
|
143
|
-
&::placeholder {
|
|
144
|
-
color: rgba(var(--wr-color-medium-rgb), 0.5);
|
|
145
|
-
font-style: italic;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
&[disabled],
|
|
149
|
-
&:disabled,
|
|
150
|
-
&.disabled {
|
|
151
|
-
color: var(--wr-input-disabled-color);
|
|
152
|
-
border-color: var(--wr-input-disabled-border-color);
|
|
153
|
-
background: var(--wr-input-disabled-bg);
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
&:active,
|
|
157
|
-
&:focus {
|
|
158
|
-
border-color: var(--wr-color-primary);
|
|
159
|
-
box-shadow: 0 0 0 2px rgba(var(--wr-color-primary-rgb), 0.125);
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
}
|
package/qrcode/index.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./qrcode";
|
|
3
|
-
import * as i2 from "@angular/common";
|
|
4
|
-
import * as i3 from "ngwr/icon";
|
|
5
|
-
export declare class WrQRCodeModule {
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<WrQRCodeModule, never>;
|
|
7
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<WrQRCodeModule, [typeof i1.WrQRCode], [typeof i2.CommonModule, typeof i3.WrIconModule], [typeof i1.WrQRCode]>;
|
|
8
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<WrQRCodeModule>;
|
|
9
|
-
}
|
package/qrcode/qrcode.d.ts
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { AfterViewInit, ChangeDetectorRef, ElementRef, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { WrAbstractBase } from 'ngwr/core/abstract';
|
|
3
|
-
import { wrIconName, WrIconService } from 'ngwr/icon';
|
|
4
|
-
import { ERROR_LEVEL_MAP } from './generator';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class WrQRCode extends WrAbstractBase implements OnInit, AfterViewInit, OnChanges {
|
|
7
|
-
private pid;
|
|
8
|
-
private readonly cdr;
|
|
9
|
-
private readonly el;
|
|
10
|
-
private readonly wrIconService;
|
|
11
|
-
class: string;
|
|
12
|
-
canvas: ElementRef<HTMLCanvasElement>;
|
|
13
|
-
get value(): string;
|
|
14
|
-
set value(value: string);
|
|
15
|
-
private _value;
|
|
16
|
-
get level(): keyof typeof ERROR_LEVEL_MAP;
|
|
17
|
-
set level(level: keyof typeof ERROR_LEVEL_MAP);
|
|
18
|
-
private _level;
|
|
19
|
-
get padding(): number;
|
|
20
|
-
set padding(padding: number);
|
|
21
|
-
private _padding;
|
|
22
|
-
get color(): string;
|
|
23
|
-
set color(color: string);
|
|
24
|
-
private _color;
|
|
25
|
-
get bgColor(): string;
|
|
26
|
-
set bgColor(color: string);
|
|
27
|
-
private _bgColor;
|
|
28
|
-
get size(): number;
|
|
29
|
-
set size(size: number);
|
|
30
|
-
private _size;
|
|
31
|
-
get icon(): string | wrIconName;
|
|
32
|
-
set icon(icon: string | wrIconName);
|
|
33
|
-
private _icon;
|
|
34
|
-
get iconSize(): number;
|
|
35
|
-
set iconSize(size: number);
|
|
36
|
-
private _iconSize;
|
|
37
|
-
isBrowser: boolean;
|
|
38
|
-
constructor(pid: Object, cdr: ChangeDetectorRef, el: ElementRef, wrIconService: WrIconService);
|
|
39
|
-
ngOnInit(): void;
|
|
40
|
-
ngAfterViewInit(): void;
|
|
41
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
42
|
-
setElBg(): void;
|
|
43
|
-
drawCanvas(): void;
|
|
44
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<WrQRCode, never>;
|
|
45
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<WrQRCode, "wr-qrcode", ["wrQrCode"], { "value": { "alias": "value"; "required": false; }; "level": { "alias": "level"; "required": false; }; "padding": { "alias": "padding"; "required": false; }; "color": { "alias": "color"; "required": false; }; "bgColor": { "alias": "bgColor"; "required": false; }; "size": { "alias": "size"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconSize": { "alias": "iconSize"; "required": false; }; }, {}, never, never, false, never>;
|
|
46
|
-
}
|
package/skeleton/skeleton.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { BooleanInput } from '@angular/cdk/coercion';
|
|
2
|
-
import { WrThemeColor } from 'ngwr/core/color';
|
|
3
|
-
import { SafeAny } from 'ngwr/core/types';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class WrSkeleton {
|
|
6
|
-
color: WrThemeColor;
|
|
7
|
-
animated: BooleanInput;
|
|
8
|
-
get elClasses(): SafeAny;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<WrSkeleton, never>;
|
|
10
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<WrSkeleton, "wr-skeleton", ["wrSkeleton"], { "color": { "alias": "color"; "required": false; }; "animated": { "alias": "animated"; "required": false; }; }, {}, never, never, false, never>;
|
|
11
|
-
}
|
package/spinner/spinner.d.ts
DELETED
package/styles/root.scss
DELETED
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
html {
|
|
2
|
-
color-scheme: light;
|
|
3
|
-
|
|
4
|
-
/* Fonts */
|
|
5
|
-
--wr-font-family-base: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
6
|
-
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
7
|
-
'Noto Color Emoji';
|
|
8
|
-
--wr-font-family-mono: SFMono-Regular, Consolas, 'Liberation Mono', Courier, Menlo, Monaco, monospace;
|
|
9
|
-
--wr-font-size-base: 1rem;
|
|
10
|
-
--wr-font-weight-base: 400;
|
|
11
|
-
--wr-line-height-base: 1.5;
|
|
12
|
-
--wr-letter-spacing-base: 0;
|
|
13
|
-
|
|
14
|
-
/* Transitions */
|
|
15
|
-
--wr-transition-base: all 0.15s linear;
|
|
16
|
-
--wr-transition-short: all 0.1s linear;
|
|
17
|
-
--wr-transition-long: all 0.2s linear;
|
|
18
|
-
|
|
19
|
-
/* Borders */
|
|
20
|
-
--wr-border-radius-base: 0.625rem;
|
|
21
|
-
--wr-border-color-base: var(--wr-color-light);
|
|
22
|
-
|
|
23
|
-
/* Colors */
|
|
24
|
-
--wr-color-white: #fff;
|
|
25
|
-
--wr-color-white-rgb: 255,255,255;
|
|
26
|
-
--wr-color-black: #000;
|
|
27
|
-
--wr-color-black-rgb: 0,0,0;
|
|
28
|
-
|
|
29
|
-
--wr-color-primary: #3969e2;
|
|
30
|
-
--wr-color-primary-rgb: 57,105,226;
|
|
31
|
-
--wr-color-primary-contrast: #fff;
|
|
32
|
-
--wr-color-primary-shade: #2e54b5;
|
|
33
|
-
|
|
34
|
-
--wr-color-secondary: #f51c6a;
|
|
35
|
-
--wr-color-secondary-rgb: 245,28,106;
|
|
36
|
-
--wr-color-secondary-contrast: #fff;
|
|
37
|
-
--wr-color-secondary-shade: #c41655;
|
|
38
|
-
|
|
39
|
-
--wr-color-success: #82DF53;
|
|
40
|
-
--wr-color-success-rgb: 130, 223, 83;
|
|
41
|
-
--wr-color-success-contrast: #000;
|
|
42
|
-
--wr-color-success-shade: #529f2a;
|
|
43
|
-
|
|
44
|
-
--wr-color-warning: #fbbf24;
|
|
45
|
-
--wr-color-warning-rgb: 251,191,36;
|
|
46
|
-
--wr-color-warning-contrast: #000;
|
|
47
|
-
--wr-color-warning-shade: #f59e0b;
|
|
48
|
-
|
|
49
|
-
--wr-color-danger: #E23636;
|
|
50
|
-
--wr-color-danger-rgb:226, 54, 54;
|
|
51
|
-
--wr-color-danger-contrast: #fff;
|
|
52
|
-
--wr-color-danger-shade: #b71e1e;
|
|
53
|
-
|
|
54
|
-
--wr-color-light: #e2e8f0;
|
|
55
|
-
--wr-color-light-rgb: 226,232,240;
|
|
56
|
-
--wr-color-light-contrast: #000;
|
|
57
|
-
--wr-color-light-shade: #b8c0d2;
|
|
58
|
-
|
|
59
|
-
--wr-color-medium: #8b93a2;
|
|
60
|
-
--wr-color-medium-rgb: 139,147,162;
|
|
61
|
-
--wr-color-medium-contrast: #fff;
|
|
62
|
-
--wr-color-medium-shade: #7a818f;
|
|
63
|
-
|
|
64
|
-
--wr-color-dark: #322e4f;
|
|
65
|
-
--wr-color-dark-rgb: 50,46,79;
|
|
66
|
-
--wr-color-dark-contrast: #fff;
|
|
67
|
-
--wr-color-dark-shade: #131123;
|
|
68
|
-
|
|
69
|
-
/* Body */
|
|
70
|
-
--wr-body-bg: #fff;
|
|
71
|
-
--wr-body-bg-rgb: 255,255,255;
|
|
72
|
-
--wr-body-color: var(--wr-color-dark);
|
|
73
|
-
|
|
74
|
-
/* Grid */
|
|
75
|
-
--wr-grid-gutter: 1.5rem;
|
|
76
|
-
|
|
77
|
-
/* Button */
|
|
78
|
-
--wr-btn-border-width: 1.125px;
|
|
79
|
-
--wr-btn-padding-y-base: 0.375rem;
|
|
80
|
-
--wr-btn-padding-x-base: 1rem;
|
|
81
|
-
--wr-btn-border-radius-base: 0.375rem;
|
|
82
|
-
--wr-btn-font-size-base: 1rem;
|
|
83
|
-
--wr-btn-line-height-base: 1.4;
|
|
84
|
-
--wr-btn-font-weight-base: 500;
|
|
85
|
-
// Small
|
|
86
|
-
--wr-btn-padding-y-small: 0.25rem;
|
|
87
|
-
--wr-btn-padding-x-small: 0.625rem;
|
|
88
|
-
--wr-btn-border-radius-small: 0.375rem;
|
|
89
|
-
--wr-btn-font-size-small: 0.825rem;
|
|
90
|
-
// Rounded
|
|
91
|
-
--wr-btn-rounded-border-radius: 50rem;
|
|
92
|
-
--wr-btn-rounded-padding-y: 0.5rem;
|
|
93
|
-
--wr-btn-rounded-padding-x: 1rem;
|
|
94
|
-
// Icon
|
|
95
|
-
--wr-btn-icon-size-base: 1rem;
|
|
96
|
-
--wr-btn-icon-margin-base: 0.375rem;
|
|
97
|
-
|
|
98
|
-
/* Dialog */
|
|
99
|
-
--wr-dialog-bg: #fff;
|
|
100
|
-
--wr-dialog-min-width: 20rem;
|
|
101
|
-
--wr-dialog-title-color: var(--wr-color-dark);
|
|
102
|
-
--wr-dialog-padding-x: 1rem;
|
|
103
|
-
--wr-dialog-padding-y: 1rem;
|
|
104
|
-
|
|
105
|
-
/* Divider */
|
|
106
|
-
--wr-divider-width-base: 1px;
|
|
107
|
-
--wr-divider-color-base: var(--wr-color-light);
|
|
108
|
-
--wr-divider-margin-top-base: 0.5rem;
|
|
109
|
-
--wr-divider-margin-bottom-base: 0.5rem;
|
|
110
|
-
|
|
111
|
-
/* Checkbox */
|
|
112
|
-
--wr-checkbox-color-base: var(--wr-color-dark);
|
|
113
|
-
--wr-checkbox-border-radius: 0.25rem;
|
|
114
|
-
--wr-checkbox-font-size: 0.9rem;
|
|
115
|
-
--wr-checkbox-line-height: 1.2;
|
|
116
|
-
--wr-checkbox-font-weight: 500;
|
|
117
|
-
--wr-checkbox-height: 1.25rem;
|
|
118
|
-
--wr-checkbox-width: var(--wr-checkbox-height);
|
|
119
|
-
|
|
120
|
-
/* Input */
|
|
121
|
-
--wr-input-padding-y-base: 0.5rem;
|
|
122
|
-
--wr-input-padding-x-base: 1rem;
|
|
123
|
-
--wr-input-border-radius-base: 0.5rem;
|
|
124
|
-
--wr-input-font-size-base: 1rem;
|
|
125
|
-
--wr-input-line-height-base: 1.4;
|
|
126
|
-
--wr-input-font-weight-base: 500;
|
|
127
|
-
|
|
128
|
-
--wr-input-bg: var(--wr-color-white);
|
|
129
|
-
--wr-input-border-color: var(--wr-border-color-base);
|
|
130
|
-
--wr-input-color: var(--wr-color-dark);
|
|
131
|
-
--wr-input-suffix-prefix-color: var(--wr-color-medium);
|
|
132
|
-
--wr-input-suffix-prefix-bg: rgba(var(--wr-color-light-rgb), 0.375);
|
|
133
|
-
|
|
134
|
-
--wr-input-disabled-color: rgba(var(--wr-color-medium-rgb), 0.5);
|
|
135
|
-
--wr-input-disabled-border-color: var(--wr-border-color-base);
|
|
136
|
-
--wr-input-disabled-bg: var(--wr-border-color-base);
|
|
137
|
-
|
|
138
|
-
/* Tag */
|
|
139
|
-
--wr-tag-padding-y: 0.25rem;
|
|
140
|
-
--wr-tag-padding-x: 0.5rem;
|
|
141
|
-
--wr-tag-border-radius-base: 0.25rem;
|
|
142
|
-
--wr-tag-font-size-base: 0.75rem;
|
|
143
|
-
--wr-tag-line-height-base: 1rem;
|
|
144
|
-
--wr-tag-font-weight-base: 600;
|
|
145
|
-
--wr-tag-rounded-padding-y: 0.25rem;
|
|
146
|
-
--wr-tag-rounded-padding-x: 0.75rem;
|
|
147
|
-
--wr-tag-rounded-border-radius: 50rem;
|
|
148
|
-
|
|
149
|
-
&.dark {
|
|
150
|
-
color-scheme: dark;
|
|
151
|
-
|
|
152
|
-
--wr-body-bg: #0c0815;
|
|
153
|
-
--wr-body-bg-rgb: 12,8,21;
|
|
154
|
-
--wr-body-color: #fff;
|
|
155
|
-
|
|
156
|
-
--wr-border-color-base: #211638;
|
|
157
|
-
|
|
158
|
-
/* Dialog */
|
|
159
|
-
--wr-dialog-bg: #18152a;
|
|
160
|
-
--wr-dialog-min-width: 20rem;
|
|
161
|
-
--wr-dialog-title-color: #fff;
|
|
162
|
-
|
|
163
|
-
/* Checkbox */
|
|
164
|
-
--wr-checkbox-color-base: var(--wr-color-white);
|
|
165
|
-
|
|
166
|
-
--wr-input-bg: #18152a;
|
|
167
|
-
--wr-input-suffix-prefix-color: rgba(var(--wr-color-white-rgb), 0.5);
|
|
168
|
-
--wr-input-suffix-prefix-bg: rgba(var(--wr-color-primary-rgb), 0.125);
|
|
169
|
-
--wr-input-border-color: #493d7e;
|
|
170
|
-
--wr-input-color: #fff;
|
|
171
|
-
}
|
|
172
|
-
}
|
package/tag/tag-module.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./tag";
|
|
3
|
-
import * as i2 from "@angular/common";
|
|
4
|
-
import * as i3 from "ngwr/icon";
|
|
5
|
-
import * as i4 from "ngwr/spinner";
|
|
6
|
-
export declare class WrTagModule {
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<WrTagModule, never>;
|
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<WrTagModule, [typeof i1.WrTag], [typeof i2.CommonModule, typeof i3.WrIconModule, typeof i4.WrSpinnerModule], [typeof i1.WrTag]>;
|
|
9
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<WrTagModule>;
|
|
10
|
-
}
|
package/tag/tag.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { BooleanInput } from '@angular/cdk/coercion';
|
|
2
|
-
import { WrThemeColor } from 'ngwr/core/color';
|
|
3
|
-
import { SafeAny } from 'ngwr/core/types';
|
|
4
|
-
import { wrIconName } from 'ngwr/icon';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class WrTag {
|
|
7
|
-
color: WrThemeColor | string;
|
|
8
|
-
icon: wrIconName | null;
|
|
9
|
-
iconPosition: 'start' | 'end';
|
|
10
|
-
outlined: BooleanInput;
|
|
11
|
-
rounded: BooleanInput;
|
|
12
|
-
transparent: BooleanInput;
|
|
13
|
-
hoverable: BooleanInput;
|
|
14
|
-
loading: BooleanInput;
|
|
15
|
-
get elClasses(): SafeAny;
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<WrTag, never>;
|
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<WrTag, "wr-tag", ["wrTag"], { "color": { "alias": "color"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconPosition": { "alias": "iconPosition"; "required": false; }; "outlined": { "alias": "outlined"; "required": false; }; "rounded": { "alias": "rounded"; "required": false; }; "transparent": { "alias": "transparent"; "required": false; }; "hoverable": { "alias": "hoverable"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
18
|
-
}
|