ngwr 3.0.0 → 4.0.1
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 +10 -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 +123 -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 +101 -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
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*
|
|
4
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
5
|
+
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
6
|
+
*/
|
|
7
|
+
import { Maybe } from 'ngwr/cdk/types';
|
|
8
|
+
export declare function isArray<T>(val: Maybe<T>): val is T;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*
|
|
4
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
5
|
+
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
6
|
+
*/
|
|
7
|
+
import { Maybe } from 'ngwr/cdk/types';
|
|
8
|
+
export declare function isDefined<T>(value: Maybe<T>): value is T;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*
|
|
4
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
5
|
+
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
6
|
+
*/
|
|
7
|
+
import { Maybe } from 'ngwr/cdk/types';
|
|
8
|
+
export declare function isNotEmptyArray<T>(val: Maybe<T>): val is T;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*
|
|
4
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
5
|
+
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
6
|
+
*/
|
|
7
|
+
import { Observable } from 'rxjs';
|
|
8
|
+
import { SafeAny } from 'ngwr/cdk/types';
|
|
9
|
+
export declare function isObservable(obj: SafeAny | Observable<SafeAny>): obj is Observable<SafeAny>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*
|
|
4
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
5
|
+
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
6
|
+
*/
|
|
7
|
+
export * from './is-array';
|
|
8
|
+
export * from './is-defined';
|
|
9
|
+
export * from './is-not-empty-array';
|
|
10
|
+
export * from './is-observable';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*
|
|
4
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
5
|
+
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
6
|
+
*/
|
|
7
|
+
export * from './maybe';
|
|
8
|
+
export * from './safe-any';
|
|
9
|
+
export * from './theme-color';
|
|
@@ -1,2 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*
|
|
4
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
5
|
+
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
6
|
+
*/
|
|
1
7
|
export declare const wrThemeColors: readonly ["primary", "secondary", "success", "warning", "danger", "light", "medium", "dark"];
|
|
2
8
|
export type WrThemeColor = (typeof wrThemeColors)[number];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*
|
|
4
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
5
|
+
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Generates random ID
|
|
9
|
+
*
|
|
10
|
+
* @return {string}
|
|
11
|
+
*/
|
|
12
|
+
export declare function generateRandomId(): string;
|
|
@@ -1,49 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*
|
|
4
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
5
|
+
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
6
|
+
*/
|
|
7
|
+
import { OnInit } from '@angular/core';
|
|
8
|
+
import { ControlValueAccessor, FormControl } from '@angular/forms';
|
|
9
|
+
import { WrAbstractBase } from 'ngwr/cdk';
|
|
10
|
+
import { SafeAny } from 'ngwr/cdk/types';
|
|
11
|
+
import { wrIconName } from 'ngwr/icon';
|
|
7
12
|
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
get checked(): boolean;
|
|
15
|
-
set checked(value: BooleanInput);
|
|
16
|
-
private _checked;
|
|
17
|
-
/** Set autofocus for checkbox; */
|
|
18
|
-
get autofocus(): boolean;
|
|
19
|
-
set autofocus(value: BooleanInput);
|
|
20
|
-
private _autofocus;
|
|
21
|
-
/** Set disabled state of `wr-btn`; */
|
|
22
|
-
get disabled(): boolean;
|
|
23
|
-
set disabled(value: BooleanInput);
|
|
24
|
-
private _disabled;
|
|
25
|
-
get focused(): boolean;
|
|
26
|
-
set focused(value: BooleanInput);
|
|
27
|
-
private _focused;
|
|
28
|
-
private onChange;
|
|
29
|
-
private onTouched;
|
|
30
|
-
/** Set element classes */
|
|
13
|
+
export declare class WrCheckboxComponent extends WrAbstractBase implements ControlValueAccessor, OnInit {
|
|
14
|
+
formControl: FormControl;
|
|
15
|
+
id: string;
|
|
16
|
+
icon: wrIconName | null;
|
|
17
|
+
onChange: (value: boolean) => void;
|
|
18
|
+
onTouched: () => void;
|
|
31
19
|
get elClasses(): SafeAny;
|
|
32
|
-
|
|
20
|
+
get nativeDisabled(): '' | null;
|
|
33
21
|
ngOnInit(): void;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
setDisabledState(isDisabled: boolean): void;
|
|
41
|
-
/**
|
|
42
|
-
* A disabled checkbox shouldn't apply any actions
|
|
43
|
-
*
|
|
44
|
-
* @param event
|
|
45
|
-
*/
|
|
46
|
-
private preventEventsWhenDisabled;
|
|
47
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<WrCheckbox, never>;
|
|
48
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<WrCheckbox, "wr-checkbox", ["wrCheckbox"], { "autofocus": { "alias": "autofocus"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
22
|
+
registerOnChange(fn: () => void): void;
|
|
23
|
+
registerOnTouched(fn: () => void): void;
|
|
24
|
+
writeValue(checked: boolean): void;
|
|
25
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WrCheckboxComponent, never>;
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WrCheckboxComponent, "wr-checkbox", never, { "formControl": { "alias": "formControl"; "required": true; }; "id": { "alias": "id"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
49
28
|
}
|
|
@@ -2,6 +2,6 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import * as i1 from "./checkbox.component";
|
|
3
3
|
export declare class WrCheckboxModule {
|
|
4
4
|
static ɵfac: i0.ɵɵFactoryDeclaration<WrCheckboxModule, never>;
|
|
5
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<WrCheckboxModule, never, [typeof i1.
|
|
5
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<WrCheckboxModule, never, [typeof i1.WrCheckboxComponent], [typeof i1.WrCheckboxComponent]>;
|
|
6
6
|
static ɵinj: i0.ɵɵInjectorDeclaration<WrCheckboxModule>;
|
|
7
7
|
}
|
package/checkbox/index.d.ts
CHANGED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
@forward '../../styles/colors';
|
|
2
|
+
@forward './vars';
|
|
3
|
+
|
|
4
|
+
.wr-checkbox {
|
|
5
|
+
--wr-checkbox-cursor: pointer;
|
|
6
|
+
--wr-checkbox-mark-opacity: 0;
|
|
7
|
+
--wr-checkbox-mark-transform: rotate(45deg) translateY(-2px) translateX(-1px) scale(0);
|
|
8
|
+
|
|
9
|
+
&__wrapper {
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
justify-content: flex-start;
|
|
13
|
+
gap: var(--wr-checkbox-gap);
|
|
14
|
+
|
|
15
|
+
cursor: var(--wr-checkbox-cursor);
|
|
16
|
+
|
|
17
|
+
color: var(--wr-checkbox-color);
|
|
18
|
+
font-size: var(--wr-checkbox-font-size);
|
|
19
|
+
font-weight: var(--wr-checkbox-font-weight);
|
|
20
|
+
line-height: var(--wr-checkbox-line-height);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&__input {
|
|
24
|
+
position: absolute;
|
|
25
|
+
visibility: hidden;
|
|
26
|
+
opacity: 0;
|
|
27
|
+
width: 0;
|
|
28
|
+
height: 0;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&__icon {
|
|
32
|
+
--wr-icon-size: var(--wr-checkbox-width);
|
|
33
|
+
color: var(--wr-checkbox-icon-color);
|
|
34
|
+
transition: var(--wr-transition-base);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&-inner {
|
|
38
|
+
display: flex;
|
|
39
|
+
flex-direction: column;
|
|
40
|
+
align-items: center;
|
|
41
|
+
justify-content: center;
|
|
42
|
+
width: var(--wr-checkbox-width);
|
|
43
|
+
height: var(--wr-checkbox-height);
|
|
44
|
+
|
|
45
|
+
background-color: var(--wr-checkbox-bg-color);
|
|
46
|
+
border: 1px solid var(--wr-checkbox-border-color);
|
|
47
|
+
border-radius: var(--wr-checkbox-border-radius);
|
|
48
|
+
|
|
49
|
+
transition: var(--wr-transition-base);
|
|
50
|
+
|
|
51
|
+
&__mark {
|
|
52
|
+
opacity: var(--wr-checkbox-mark-opacity);
|
|
53
|
+
height: 60%;
|
|
54
|
+
width: 40%;
|
|
55
|
+
border-bottom: var(--wr-checkbox-mark-width) solid var(--wr-checkbox-mark-color);
|
|
56
|
+
border-right: var(--wr-checkbox-mark-width) solid var(--wr-checkbox-mark-color);
|
|
57
|
+
transform: var(--wr-checkbox-mark-transform);
|
|
58
|
+
transition: var(--wr-transition-short);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&:hover {
|
|
63
|
+
--wr-checkbox-border-color: var(--wr-color-primary);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&--checked {
|
|
67
|
+
--wr-checkbox-icon-color: var(--wr-color-primary);
|
|
68
|
+
--wr-checkbox-bg-color: var(--wr-color-primary);
|
|
69
|
+
--wr-checkbox-border-color: var(--wr-color-primary);
|
|
70
|
+
--wr-checkbox-disabled-bg-color: var(--wr-color-primary-lighter);
|
|
71
|
+
--wr-checkbox-mark-opacity: 1;
|
|
72
|
+
--wr-checkbox-mark-transform: rotate(45deg) translateY(-2px) translateX(-1px) scale(1);
|
|
73
|
+
|
|
74
|
+
&:hover {
|
|
75
|
+
--wr-checkbox-bg-color: var(--wr-color-primary-lighter);
|
|
76
|
+
--wr-checkbox-border-color: var(--wr-color-primary-lighter);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&[disabled],
|
|
81
|
+
&:disabled {
|
|
82
|
+
--wr-checkbox-cursor: default;
|
|
83
|
+
--wr-checkbox-bg-color: var(--wr-checkbox-disabled-bg-color);
|
|
84
|
+
--wr-checkbox-border-color: var(--wr-checkbox-disabled-bg-color);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--wr-checkbox-gap: 0.5rem;
|
|
3
|
+
--wr-checkbox-color: var(--wr-color-dark);
|
|
4
|
+
--wr-checkbox-font-size: 0.875rem;
|
|
5
|
+
--wr-checkbox-font-weight: 500;
|
|
6
|
+
--wr-checkbox-line-height: 1rem;
|
|
7
|
+
--wr-checkbox-width: 1.25rem;
|
|
8
|
+
--wr-checkbox-height: var(--wr-checkbox-width);
|
|
9
|
+
--wr-checkbox-border-radius: 0.25rem;
|
|
10
|
+
--wr-checkbox-border-color: var(--wr-color-light);
|
|
11
|
+
--wr-checkbox-bg-color: transparent;
|
|
12
|
+
--wr-checkbox-icon-color: var(--wr-color-light);
|
|
13
|
+
--wr-checkbox-disabled-bg-color: var(--wr-color-light);
|
|
14
|
+
--wr-checkbox-mark-color: var(--wr-color-white);
|
|
15
|
+
--wr-checkbox-mark-width: 0.125rem;
|
|
16
|
+
}
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*
|
|
4
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
5
|
+
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
6
|
+
*/
|
|
1
7
|
import { AnimationTriggerMetadata } from '@angular/animations';
|
|
2
8
|
export declare const WR_ANIMATION_ZOOM_CLASS_NAME_MAP: {
|
|
3
9
|
enter: string;
|
|
@@ -12,5 +18,5 @@ export declare const WR_ANIMATION_FADE_CLASS_NAME_MAP: {
|
|
|
12
18
|
leaveActive: string;
|
|
13
19
|
};
|
|
14
20
|
export declare const wrDialogAnimations: {
|
|
15
|
-
readonly
|
|
21
|
+
readonly dialogComponent: AnimationTriggerMetadata;
|
|
16
22
|
};
|
|
@@ -1,14 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*
|
|
4
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
5
|
+
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
6
|
+
*/
|
|
1
7
|
import { AnimationEvent } from '@angular/animations';
|
|
2
8
|
import { OverlayRef } from '@angular/cdk/overlay';
|
|
3
9
|
import { BasePortalOutlet, CdkPortalOutlet, ComponentPortal, TemplatePortal } from '@angular/cdk/portal';
|
|
4
10
|
import { ChangeDetectorRef, ComponentRef, ElementRef, EmbeddedViewRef, EventEmitter, OnDestroy } from '@angular/core';
|
|
5
11
|
import { Subject } from 'rxjs';
|
|
6
|
-
import {
|
|
12
|
+
import { WrDialogOptions } from './dialog-options';
|
|
7
13
|
import { WrDialogRef } from './dialog-ref';
|
|
8
14
|
import * as i0 from "@angular/core";
|
|
9
|
-
export declare class
|
|
15
|
+
export declare class WrDialogBaseDirective extends BasePortalOutlet implements OnDestroy {
|
|
10
16
|
cdr: ChangeDetectorRef;
|
|
11
|
-
|
|
17
|
+
options: WrDialogOptions;
|
|
12
18
|
protected overlayRef: OverlayRef;
|
|
13
19
|
portalOutlet: CdkPortalOutlet;
|
|
14
20
|
dialogElementRef: ElementRef<HTMLDivElement>;
|
|
@@ -17,10 +23,10 @@ export declare class WrDialogBase extends BasePortalOutlet implements OnDestroy
|
|
|
17
23
|
animationStateChanged: EventEmitter<AnimationEvent>;
|
|
18
24
|
state: 'void' | 'enter' | 'exit';
|
|
19
25
|
protected readonly destroyed$: Subject<void>;
|
|
20
|
-
constructor(cdr: ChangeDetectorRef,
|
|
26
|
+
constructor(cdr: ChangeDetectorRef, options: WrDialogOptions, overlayRef: OverlayRef);
|
|
21
27
|
ngOnDestroy(): void;
|
|
22
28
|
onContainerClick(e: MouseEvent): void;
|
|
23
|
-
attachComponentPortal<
|
|
29
|
+
attachComponentPortal<C>(portal: ComponentPortal<C>): ComponentRef<C>;
|
|
24
30
|
attachTemplatePortal<C>(portal: TemplatePortal<C>): EmbeddedViewRef<C>;
|
|
25
31
|
private setEnterAnimationClass;
|
|
26
32
|
private setExitAnimationClass;
|
|
@@ -29,6 +35,6 @@ export declare class WrDialogBase extends BasePortalOutlet implements OnDestroy
|
|
|
29
35
|
onAnimationDone(event: AnimationEvent): void;
|
|
30
36
|
onAnimationStart(event: AnimationEvent): void;
|
|
31
37
|
startExitAnimation(): void;
|
|
32
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
33
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<
|
|
38
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WrDialogBaseDirective, never>;
|
|
39
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<WrDialogBaseDirective, never, never, {}, {}, never, never, true, never>;
|
|
34
40
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { WrDialogRef } from './dialog-ref';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class WrDialogCloseDirective {
|
|
4
|
+
dialogRef: WrDialogRef;
|
|
5
|
+
_onButtonClick(event: MouseEvent): void;
|
|
6
|
+
constructor(dialogRef: WrDialogRef);
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WrDialogCloseDirective, [{ optional: true; }]>;
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<WrDialogCloseDirective, "[wrDialogClose]", never, {}, {}, never, never, true, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class WrDialogContentDirective {
|
|
3
|
+
class: string;
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WrDialogContentDirective, never>;
|
|
5
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<WrDialogContentDirective, "[wrDialogContent]", never, {}, {}, never, never, true, never>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*
|
|
4
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
5
|
+
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
6
|
+
*/
|
|
7
|
+
import { InjectionToken } from '@angular/core';
|
|
8
|
+
export declare const WR_DIALOG_DATA: InjectionToken<any>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SafeAny } from 'ngwr/cdk/types';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class WrDialogFooterDirective {
|
|
4
|
+
position: 'start' | 'center' | 'end';
|
|
5
|
+
get elClasses(): SafeAny;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WrDialogFooterDirective, never>;
|
|
7
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<WrDialogFooterDirective, "[wrDialogFooter]", never, { "position": { "alias": "position"; "required": false; }; }, {}, never, never, true, never>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*
|
|
4
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
5
|
+
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
6
|
+
*/
|
|
7
|
+
import { ComponentType, PositionStrategy, ScrollStrategy } from '@angular/cdk/overlay';
|
|
8
|
+
import { ViewContainerRef } from '@angular/core';
|
|
9
|
+
import { SafeAny } from 'ngwr/cdk/types';
|
|
10
|
+
export declare class WrDialogOptions<C = SafeAny> {
|
|
11
|
+
id?: string;
|
|
12
|
+
component?: ComponentType<C>;
|
|
13
|
+
data?: SafeAny;
|
|
14
|
+
hasBackdrop?: boolean;
|
|
15
|
+
backdropClass?: string;
|
|
16
|
+
positionStrategy?: PositionStrategy;
|
|
17
|
+
scrollStrategy?: ScrollStrategy;
|
|
18
|
+
viewContainerRef?: ViewContainerRef;
|
|
19
|
+
}
|
package/dialog/dialog-ref.d.ts
CHANGED
|
@@ -1,20 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*
|
|
4
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
5
|
+
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
6
|
+
*/
|
|
1
7
|
import { OverlayRef } from '@angular/cdk/overlay';
|
|
2
8
|
import { Subject } from 'rxjs';
|
|
3
|
-
import { WrAbstractBase } from 'ngwr/
|
|
4
|
-
import { SafeAny } from 'ngwr/
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
export declare class WrDialogRef<
|
|
8
|
-
private
|
|
9
|
-
private
|
|
10
|
-
|
|
9
|
+
import { WrAbstractBase } from 'ngwr/cdk';
|
|
10
|
+
import { SafeAny } from 'ngwr/cdk/types';
|
|
11
|
+
import { WrDialogBaseDirective } from './dialog-base.directive';
|
|
12
|
+
import { WrDialogOptions } from './dialog-options';
|
|
13
|
+
export declare class WrDialogRef<C = SafeAny, R = SafeAny> extends WrAbstractBase {
|
|
14
|
+
private overlayRef;
|
|
15
|
+
private options;
|
|
16
|
+
baseInstance: WrDialogBaseDirective;
|
|
11
17
|
readonly id?: string;
|
|
18
|
+
componentInstance: C | null;
|
|
12
19
|
result?: R;
|
|
13
|
-
componentInstance: T | null;
|
|
14
|
-
private closeTimeout?;
|
|
15
|
-
readonly afterClosed: Subject<R | undefined>;
|
|
16
20
|
readonly afterOpened: Subject<void>;
|
|
17
|
-
|
|
21
|
+
readonly afterClosed: Subject<R | undefined>;
|
|
22
|
+
private closeTimeout?;
|
|
23
|
+
constructor(overlayRef: OverlayRef, options: WrDialogOptions, baseInstance: WrDialogBaseDirective);
|
|
18
24
|
close(result?: R): void;
|
|
19
|
-
_finishDialogClose
|
|
25
|
+
private _finishDialogClose;
|
|
20
26
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class WrDialogTitleDirective {
|
|
3
|
+
class: string;
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WrDialogTitleDirective, never>;
|
|
5
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<WrDialogTitleDirective, "[wrDialogTitle]", never, {}, {}, never, never, true, never>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*
|
|
4
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
5
|
+
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
6
|
+
*/
|
|
7
|
+
import { AnimationEvent } from '@angular/animations';
|
|
8
|
+
import { OverlayRef } from '@angular/cdk/overlay';
|
|
9
|
+
import { CdkPortalOutlet } from '@angular/cdk/portal';
|
|
10
|
+
import { ChangeDetectorRef, ElementRef } from '@angular/core';
|
|
11
|
+
import { SafeAny } from 'ngwr/cdk/types';
|
|
12
|
+
import { WrDialogBaseDirective } from './dialog-base.directive';
|
|
13
|
+
import { WrDialogOptions } from './dialog-options';
|
|
14
|
+
import * as i0 from "@angular/core";
|
|
15
|
+
export declare class WrDialogComponent extends WrDialogBaseDirective {
|
|
16
|
+
options: WrDialogOptions;
|
|
17
|
+
portalOutlet: CdkPortalOutlet;
|
|
18
|
+
dialogElementRef: ElementRef<HTMLDivElement>;
|
|
19
|
+
state: 'void' | 'enter' | 'exit';
|
|
20
|
+
onAnimationStart(event: AnimationEvent): void;
|
|
21
|
+
onAnimationDone(event: AnimationEvent): void;
|
|
22
|
+
onContainerClick(e: MouseEvent): void;
|
|
23
|
+
/** Set element classes */
|
|
24
|
+
get elClasses(): SafeAny;
|
|
25
|
+
constructor(cdr: ChangeDetectorRef, options: WrDialogOptions, overlayRef: OverlayRef);
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WrDialogComponent, never>;
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WrDialogComponent, "wr-dialog", never, {}, {}, never, never, true, never>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./dialog.component";
|
|
3
|
+
import * as i2 from "./dialog-footer.directive";
|
|
4
|
+
import * as i3 from "./dialog-content.directive";
|
|
5
|
+
import * as i4 from "./dialog-close.directive";
|
|
6
|
+
import * as i5 from "./dialog-title.directive";
|
|
7
|
+
export declare class WrDialogModule {
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WrDialogModule, never>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<WrDialogModule, never, [typeof i1.WrDialogComponent, typeof i2.WrDialogFooterDirective, typeof i3.WrDialogContentDirective, typeof i4.WrDialogCloseDirective, typeof i5.WrDialogTitleDirective], [typeof i4.WrDialogCloseDirective, typeof i2.WrDialogFooterDirective, typeof i3.WrDialogContentDirective, typeof i5.WrDialogTitleDirective]>;
|
|
10
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<WrDialogModule>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Subject } from 'rxjs';
|
|
2
|
+
import { SafeAny } from 'ngwr/cdk/types';
|
|
3
|
+
import { WrDialogOptions } from './dialog-options';
|
|
4
|
+
import { WrDialogRef } from './dialog-ref';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
/**
|
|
7
|
+
* NGWR dialog service.
|
|
8
|
+
*
|
|
9
|
+
* {@tutorial} [How to use wr-dialog]{@link http://ngwr.dev/docs/components/dialog}
|
|
10
|
+
*/
|
|
11
|
+
export declare class WrDialogService {
|
|
12
|
+
private readonly overlay;
|
|
13
|
+
private readonly injector;
|
|
14
|
+
private readonly parentModal;
|
|
15
|
+
private openedDialogsAtThisLevel;
|
|
16
|
+
private readonly afterAllClosedAtThisLevel;
|
|
17
|
+
get openedDialogs(): WrDialogRef[];
|
|
18
|
+
get _afterAllClosed(): Subject<void>;
|
|
19
|
+
open<C = SafeAny, R = SafeAny>(options: WrDialogOptions<C>): WrDialogRef<C, R>;
|
|
20
|
+
private _defaultPositionStrategy;
|
|
21
|
+
private _defaultScrollStrategy;
|
|
22
|
+
private _createOverlay;
|
|
23
|
+
private _attachDialogContainer;
|
|
24
|
+
private _attachDialogContent;
|
|
25
|
+
private _removeOpenedModal;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WrDialogService, never>;
|
|
27
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<WrDialogService>;
|
|
28
|
+
}
|
package/dialog/index.d.ts
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export
|
|
6
|
-
export { WrDialogModule } from './dialog-module';
|
|
7
|
-
export { WrDialogRef } from './dialog-ref';
|
|
8
|
-
export { WrDialogService } from './dialog-service';
|
|
9
|
-
export { WR_DIALOG_DATA } from './dialog-tokens';
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
/// <amd-module name="ngwr/dialog" />
|
|
5
|
+
export * from './public-api';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*
|
|
4
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
5
|
+
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
6
|
+
*/
|
|
7
|
+
export * from './dialog.component';
|
|
8
|
+
export * from './dialog.module';
|
|
9
|
+
export * from './dialog.service';
|
|
10
|
+
export * from './dialog-animations';
|
|
11
|
+
export * from './dialog-base.directive';
|
|
12
|
+
export * from './dialog-close.directive';
|
|
13
|
+
export * from './dialog-content.directive';
|
|
14
|
+
export * from './dialog-data.token';
|
|
15
|
+
export * from './dialog-footer.directive';
|
|
16
|
+
export * from './dialog-options';
|
|
17
|
+
export * from './dialog-ref';
|
|
18
|
+
export * from './dialog-title.directive';
|