@coolon/angular-ui-powerups 16.1.0-alpha.278 → 16.1.0-alpha.279
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.
|
@@ -18,14 +18,14 @@ export class CheckboxInputComponent extends AbstractValueInputComponent {
|
|
|
18
18
|
this.componentValue$.value = $event.checked;
|
|
19
19
|
}
|
|
20
20
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: CheckboxInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
21
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: CheckboxInputComponent, selector: "aup-checkbox-input", inputs: { color: "color", labelPosition: "labelPosition" }, usesInheritance: true, ngImport: i0, template: "<!-- TODO: add focus binding -->\n<!-- NOTE: using [(ngModel)] affects how material renders the component and makes it harder to test
|
|
21
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: CheckboxInputComponent, selector: "aup-checkbox-input", inputs: { color: "color", labelPosition: "labelPosition" }, usesInheritance: true, ngImport: i0, template: "<!-- TODO: add focus binding -->\n<!-- NOTE: using [(ngModel)] affects how material renders the component and makes it harder to test\n so we're using [checked] and (change).\n The `?? false` is part of that: an optional boolean model holds undefined until something sets\n it, and a nil bound value renders the same but makes Angular drop the binding's dev-mode\n ng-reflect attribute entirely, which is what several test harnesses read. Coerced here for the\n view only \u2014 the model keeps whatever it holds. -->\n<mat-checkbox\n [checked]=\"componentValue$.value ?? false\"\n (change)=\"select($event)\"\n [color]=\"color\"\n [labelPosition]=\"labelPosition\"\n [disabled]=\"!isEnabled()\"\n>{{ label }}<!--\n The icon lives inside the label rather than as a sibling: :host is a column flex, so a sibling\n would stack underneath and add the very height dense mode exists to avoid.\n--><span class=\"aup-validation-icon\" *ngIf=\"popupMessage\"><aup-icon data-cy=\"validation-icon\"\n [icon]=\"popupIcon\" [ngClass]=\"popupSeverityClass\"\n [aupTooltip]=\"popupMessage\" aupTooltipPosition=\"above\"></aup-icon></span>\n</mat-checkbox>\n<!--\n The wrapper has to persist for the grid collapse to have something to animate \u2014 the messages\n themselves come and go with *ngIf. inlineHintText/inlineError are already null when dense, so\n no !dense guard is needed.\n-->\n<div class=\"aup-subscript\">\n <mat-hint *ngIf=\"inlineHintText\" [ngClass]=\"inlineHintClass\">{{inlineHintText}}</mat-hint>\n <mat-error *ngIf=\"inlineError\">{{inlineError}}</mat-error>\n</div>\n", styles: [":host{display:inline-flex;flex-direction:column;padding:10px 0 0}:host.dense{padding:4px 0 2px}.aup-subscript{display:grid;grid-template-rows:0fr}.aup-subscript>*{overflow:hidden}:host(.aup-has-subscript) .aup-subscript{grid-template-rows:1fr;transition:grid-template-rows .15s ease-out}@media (prefers-reduced-motion: reduce){:host(.aup-has-subscript) .aup-subscript{transition:none}}mat-hint,mat-error{animation:aup-subscript-message-in .15s ease-out;padding-top:4px;margin-left:24px;font-size:12px;font-weight:400;line-height:13.5px}@media (prefers-reduced-motion: reduce){mat-hint,mat-error{animation:none}}aup-icon.aup-error,aup-icon.aup-warning,aup-icon.aup-info{--aup-icon-size: 16px;vertical-align:text-bottom}span.aup-validation-icon{display:inline-block;overflow:hidden;vertical-align:text-bottom;animation:aup-validation-icon-in .15s ease-out}span.aup-validation-icon aup-icon{margin-left:4px}@media (prefers-reduced-motion: reduce){span.aup-validation-icon{animation:none}}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i2.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i3.AupTooltipDirective, selector: "[aupTooltip]", inputs: ["aupTooltip", "aupTooltipPosition", "aupTooltipPositionAtOrigin", "aupTooltipDisabled", "aupTooltipShowDelay", "aupTooltipHideDelay", "aupTooltipTouchGestures", "aupTooltipClass"], exportAs: ["aupTooltip"] }, { kind: "component", type: i4.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex"], exportAs: ["matCheckbox"] }, { kind: "component", type: i5.IconComponent, selector: "aup-icon", inputs: ["icon"] }] });
|
|
22
22
|
}
|
|
23
23
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: CheckboxInputComponent, decorators: [{
|
|
24
24
|
type: Component,
|
|
25
|
-
args: [{ selector: 'aup-checkbox-input', template: "<!-- TODO: add focus binding -->\n<!-- NOTE: using [(ngModel)] affects how material renders the component and makes it harder to test
|
|
25
|
+
args: [{ selector: 'aup-checkbox-input', template: "<!-- TODO: add focus binding -->\n<!-- NOTE: using [(ngModel)] affects how material renders the component and makes it harder to test\n so we're using [checked] and (change).\n The `?? false` is part of that: an optional boolean model holds undefined until something sets\n it, and a nil bound value renders the same but makes Angular drop the binding's dev-mode\n ng-reflect attribute entirely, which is what several test harnesses read. Coerced here for the\n view only \u2014 the model keeps whatever it holds. -->\n<mat-checkbox\n [checked]=\"componentValue$.value ?? false\"\n (change)=\"select($event)\"\n [color]=\"color\"\n [labelPosition]=\"labelPosition\"\n [disabled]=\"!isEnabled()\"\n>{{ label }}<!--\n The icon lives inside the label rather than as a sibling: :host is a column flex, so a sibling\n would stack underneath and add the very height dense mode exists to avoid.\n--><span class=\"aup-validation-icon\" *ngIf=\"popupMessage\"><aup-icon data-cy=\"validation-icon\"\n [icon]=\"popupIcon\" [ngClass]=\"popupSeverityClass\"\n [aupTooltip]=\"popupMessage\" aupTooltipPosition=\"above\"></aup-icon></span>\n</mat-checkbox>\n<!--\n The wrapper has to persist for the grid collapse to have something to animate \u2014 the messages\n themselves come and go with *ngIf. inlineHintText/inlineError are already null when dense, so\n no !dense guard is needed.\n-->\n<div class=\"aup-subscript\">\n <mat-hint *ngIf=\"inlineHintText\" [ngClass]=\"inlineHintClass\">{{inlineHintText}}</mat-hint>\n <mat-error *ngIf=\"inlineError\">{{inlineError}}</mat-error>\n</div>\n", styles: [":host{display:inline-flex;flex-direction:column;padding:10px 0 0}:host.dense{padding:4px 0 2px}.aup-subscript{display:grid;grid-template-rows:0fr}.aup-subscript>*{overflow:hidden}:host(.aup-has-subscript) .aup-subscript{grid-template-rows:1fr;transition:grid-template-rows .15s ease-out}@media (prefers-reduced-motion: reduce){:host(.aup-has-subscript) .aup-subscript{transition:none}}mat-hint,mat-error{animation:aup-subscript-message-in .15s ease-out;padding-top:4px;margin-left:24px;font-size:12px;font-weight:400;line-height:13.5px}@media (prefers-reduced-motion: reduce){mat-hint,mat-error{animation:none}}aup-icon.aup-error,aup-icon.aup-warning,aup-icon.aup-info{--aup-icon-size: 16px;vertical-align:text-bottom}span.aup-validation-icon{display:inline-block;overflow:hidden;vertical-align:text-bottom;animation:aup-validation-icon-in .15s ease-out}span.aup-validation-icon aup-icon{margin-left:4px}@media (prefers-reduced-motion: reduce){span.aup-validation-icon{animation:none}}\n"] }]
|
|
26
26
|
}], ctorParameters: function () { return []; }, propDecorators: { color: [{
|
|
27
27
|
type: Input
|
|
28
28
|
}], labelPosition: [{
|
|
29
29
|
type: Input
|
|
30
30
|
}] } });
|
|
31
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
31
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hlY2tib3gtaW5wdXQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9hbmd1bGFyLXVpLXBvd2VydXBzL3NyYy9saWIvY29tcG9uZW50cy9mb3Jtcy9jaGVja2JveC1pbnB1dC9jaGVja2JveC1pbnB1dC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJz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puZ0lmPVwicG9wdXBNZXNzYWdlXCI+PGF1cC1pY29uIGRhdGEtY3k9XCJ2YWxpZGF0aW9uLWljb25cIlxuICAgICAgICAgICAgIFtpY29uXT1cInBvcHVwSWNvblwiIFtuZ0NsYXNzXT1cInBvcHVwU2V2ZXJpdHlDbGFzc1wiXG4gICAgICAgICAgICAgW2F1cFRvb2x0aXBdPVwicG9wdXBNZXNzYWdlXCIgYXVwVG9vbHRpcFBvc2l0aW9uPVwiYWJvdmVcIj48L2F1cC1pY29uPjwvc3Bhbj5cbjwvbWF0LWNoZWNrYm94PlxuPCEtLVxuICBUaGUgd3JhcHBlciBoYXMgdG8gcGVyc2lzdCBmb3IgdGhlIGdyaWQgY29sbGFwc2UgdG8gaGF2ZSBzb21ldGhpbmcgdG8gYW5pbWF0ZSDigJQgdGhlIG1lc3NhZ2VzXG4gIHRoZW1zZWx2ZXMgY29tZSBhbmQgZ28gd2l0aCAqbmdJZi4gaW5saW5lSGludFRleHQvaW5saW5lRXJyb3IgYXJlIGFscmVhZHkgbnVsbCB3aGVuIGRlbnNlLCBzb1xuICBubyAhZGVuc2UgZ3VhcmQgaXMgbmVlZGVkLlxuLS0+XG48ZGl2IGNsYXNzPVwiYXVwLXN1YnNjcmlwdFwiPlxuICA8bWF0LWhpbnQgKm5nSWY9XCJpbmxpbmVIaW50VGV4dFwiIFtuZ0NsYXNzXT1cImlubGluZUhpbnRDbGFzc1wiPnt7aW5saW5lSGludFRleHR9fTwvbWF0LWhpbnQ+XG4gIDxtYXQtZXJyb3IgKm5nSWY9XCJpbmxpbmVFcnJvclwiPnt7aW5saW5lRXJyb3J9fTwvbWF0LWVycm9yPlxuPC9kaXY+XG4iXX0=
|
|
@@ -2735,11 +2735,11 @@ class CheckboxInputComponent extends AbstractValueInputComponent {
|
|
|
2735
2735
|
this.componentValue$.value = $event.checked;
|
|
2736
2736
|
}
|
|
2737
2737
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: CheckboxInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2738
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: CheckboxInputComponent, selector: "aup-checkbox-input", inputs: { color: "color", labelPosition: "labelPosition" }, usesInheritance: true, ngImport: i0, template: "<!-- TODO: add focus binding -->\n<!-- NOTE: using [(ngModel)] affects how material renders the component and makes it harder to test
|
|
2738
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: CheckboxInputComponent, selector: "aup-checkbox-input", inputs: { color: "color", labelPosition: "labelPosition" }, usesInheritance: true, ngImport: i0, template: "<!-- TODO: add focus binding -->\n<!-- NOTE: using [(ngModel)] affects how material renders the component and makes it harder to test\n so we're using [checked] and (change).\n The `?? false` is part of that: an optional boolean model holds undefined until something sets\n it, and a nil bound value renders the same but makes Angular drop the binding's dev-mode\n ng-reflect attribute entirely, which is what several test harnesses read. Coerced here for the\n view only \u2014 the model keeps whatever it holds. -->\n<mat-checkbox\n [checked]=\"componentValue$.value ?? false\"\n (change)=\"select($event)\"\n [color]=\"color\"\n [labelPosition]=\"labelPosition\"\n [disabled]=\"!isEnabled()\"\n>{{ label }}<!--\n The icon lives inside the label rather than as a sibling: :host is a column flex, so a sibling\n would stack underneath and add the very height dense mode exists to avoid.\n--><span class=\"aup-validation-icon\" *ngIf=\"popupMessage\"><aup-icon data-cy=\"validation-icon\"\n [icon]=\"popupIcon\" [ngClass]=\"popupSeverityClass\"\n [aupTooltip]=\"popupMessage\" aupTooltipPosition=\"above\"></aup-icon></span>\n</mat-checkbox>\n<!--\n The wrapper has to persist for the grid collapse to have something to animate \u2014 the messages\n themselves come and go with *ngIf. inlineHintText/inlineError are already null when dense, so\n no !dense guard is needed.\n-->\n<div class=\"aup-subscript\">\n <mat-hint *ngIf=\"inlineHintText\" [ngClass]=\"inlineHintClass\">{{inlineHintText}}</mat-hint>\n <mat-error *ngIf=\"inlineError\">{{inlineError}}</mat-error>\n</div>\n", styles: [":host{display:inline-flex;flex-direction:column;padding:10px 0 0}:host.dense{padding:4px 0 2px}.aup-subscript{display:grid;grid-template-rows:0fr}.aup-subscript>*{overflow:hidden}:host(.aup-has-subscript) .aup-subscript{grid-template-rows:1fr;transition:grid-template-rows .15s ease-out}@media (prefers-reduced-motion: reduce){:host(.aup-has-subscript) .aup-subscript{transition:none}}mat-hint,mat-error{animation:aup-subscript-message-in .15s ease-out;padding-top:4px;margin-left:24px;font-size:12px;font-weight:400;line-height:13.5px}@media (prefers-reduced-motion: reduce){mat-hint,mat-error{animation:none}}aup-icon.aup-error,aup-icon.aup-warning,aup-icon.aup-info{--aup-icon-size: 16px;vertical-align:text-bottom}span.aup-validation-icon{display:inline-block;overflow:hidden;vertical-align:text-bottom;animation:aup-validation-icon-in .15s ease-out}span.aup-validation-icon aup-icon{margin-left:4px}@media (prefers-reduced-motion: reduce){span.aup-validation-icon{animation:none}}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i4.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: AupTooltipDirective, selector: "[aupTooltip]", inputs: ["aupTooltip", "aupTooltipPosition", "aupTooltipPositionAtOrigin", "aupTooltipDisabled", "aupTooltipShowDelay", "aupTooltipHideDelay", "aupTooltipTouchGestures", "aupTooltipClass"], exportAs: ["aupTooltip"] }, { kind: "component", type: i2$6.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex"], exportAs: ["matCheckbox"] }, { kind: "component", type: IconComponent, selector: "aup-icon", inputs: ["icon"] }] });
|
|
2739
2739
|
}
|
|
2740
2740
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: CheckboxInputComponent, decorators: [{
|
|
2741
2741
|
type: Component,
|
|
2742
|
-
args: [{ selector: 'aup-checkbox-input', template: "<!-- TODO: add focus binding -->\n<!-- NOTE: using [(ngModel)] affects how material renders the component and makes it harder to test
|
|
2742
|
+
args: [{ selector: 'aup-checkbox-input', template: "<!-- TODO: add focus binding -->\n<!-- NOTE: using [(ngModel)] affects how material renders the component and makes it harder to test\n so we're using [checked] and (change).\n The `?? false` is part of that: an optional boolean model holds undefined until something sets\n it, and a nil bound value renders the same but makes Angular drop the binding's dev-mode\n ng-reflect attribute entirely, which is what several test harnesses read. Coerced here for the\n view only \u2014 the model keeps whatever it holds. -->\n<mat-checkbox\n [checked]=\"componentValue$.value ?? false\"\n (change)=\"select($event)\"\n [color]=\"color\"\n [labelPosition]=\"labelPosition\"\n [disabled]=\"!isEnabled()\"\n>{{ label }}<!--\n The icon lives inside the label rather than as a sibling: :host is a column flex, so a sibling\n would stack underneath and add the very height dense mode exists to avoid.\n--><span class=\"aup-validation-icon\" *ngIf=\"popupMessage\"><aup-icon data-cy=\"validation-icon\"\n [icon]=\"popupIcon\" [ngClass]=\"popupSeverityClass\"\n [aupTooltip]=\"popupMessage\" aupTooltipPosition=\"above\"></aup-icon></span>\n</mat-checkbox>\n<!--\n The wrapper has to persist for the grid collapse to have something to animate \u2014 the messages\n themselves come and go with *ngIf. inlineHintText/inlineError are already null when dense, so\n no !dense guard is needed.\n-->\n<div class=\"aup-subscript\">\n <mat-hint *ngIf=\"inlineHintText\" [ngClass]=\"inlineHintClass\">{{inlineHintText}}</mat-hint>\n <mat-error *ngIf=\"inlineError\">{{inlineError}}</mat-error>\n</div>\n", styles: [":host{display:inline-flex;flex-direction:column;padding:10px 0 0}:host.dense{padding:4px 0 2px}.aup-subscript{display:grid;grid-template-rows:0fr}.aup-subscript>*{overflow:hidden}:host(.aup-has-subscript) .aup-subscript{grid-template-rows:1fr;transition:grid-template-rows .15s ease-out}@media (prefers-reduced-motion: reduce){:host(.aup-has-subscript) .aup-subscript{transition:none}}mat-hint,mat-error{animation:aup-subscript-message-in .15s ease-out;padding-top:4px;margin-left:24px;font-size:12px;font-weight:400;line-height:13.5px}@media (prefers-reduced-motion: reduce){mat-hint,mat-error{animation:none}}aup-icon.aup-error,aup-icon.aup-warning,aup-icon.aup-info{--aup-icon-size: 16px;vertical-align:text-bottom}span.aup-validation-icon{display:inline-block;overflow:hidden;vertical-align:text-bottom;animation:aup-validation-icon-in .15s ease-out}span.aup-validation-icon aup-icon{margin-left:4px}@media (prefers-reduced-motion: reduce){span.aup-validation-icon{animation:none}}\n"] }]
|
|
2743
2743
|
}], ctorParameters: function () { return []; }, propDecorators: { color: [{
|
|
2744
2744
|
type: Input
|
|
2745
2745
|
}], labelPosition: [{
|