@coolon/angular-ui-powerups 16.1.0-alpha.346 → 16.1.0-alpha.347

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/assets/form.scss CHANGED
@@ -275,7 +275,8 @@ $aup-info-color: var(--aup-info-color, #{theming.mat-color(theming.mat-palette(t
275
275
  color: $aup-info-color;
276
276
  }
277
277
 
278
- &:not(.dense) {
278
+ // A checkbox with alignWithFields off has no float label to line up with, so it opts out here.
279
+ &:not(.dense):not(.aup-no-field-alignment) {
279
280
  margin-top: 4px; // HACK: make room for the float label
280
281
  }
281
282
 
@@ -1,4 +1,4 @@
1
- import { Component, Input } from '@angular/core';
1
+ import { Component, HostBinding, Input } from '@angular/core';
2
2
  import { AbstractValueInputComponent } from '../abstract-value-input.component';
3
3
  import * as i0 from "@angular/core";
4
4
  import * as i1 from "@angular/common";
@@ -11,6 +11,20 @@ export class CheckboxInputComponent extends AbstractValueInputComponent {
11
11
  // valueModel: Form.ValueModelBase<boolean> | MutableValueModel<boolean>;
12
12
  color = 'accent';
13
13
  labelPosition = 'after';
14
+ /**
15
+ * Whether the checkbox reserves the space that lines its box up with outlined form fields: the
16
+ * top padding every density gives it, and the margin form.scss leaves for a field's float label.
17
+ * Keep it on in a row of outlined fields, where the box must sit level with their text.
18
+ *
19
+ * Turn it off where no outlined field sits beside the checkbox, such as a list of checkboxes on
20
+ * their own or a checkbox beside a button. The checkbox then takes only its own height, so it
21
+ * centres on the row like anything else — at every density, since the space is for the fields
22
+ * and not for the checkbox.
23
+ */
24
+ alignWithFields = true;
25
+ get noFieldAlignment() {
26
+ return !this.alignWithFields;
27
+ }
14
28
  constructor() {
15
29
  super();
16
30
  }
@@ -18,14 +32,19 @@ export class CheckboxInputComponent extends AbstractValueInputComponent {
18
32
  this.componentValue$.value = $event.checked;
19
33
  }
20
34
  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\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 mat-hint,.aup-subscript mat-error{margin-left:24px}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"] }] });
35
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: CheckboxInputComponent, selector: "aup-checkbox-input", inputs: { color: "color", labelPosition: "labelPosition", alignWithFields: "alignWithFields" }, host: { properties: { "class.aup-no-field-alignment": "this.noFieldAlignment" } }, 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}:host(.aup-no-field-alignment){padding:0}.aup-subscript mat-hint,.aup-subscript mat-error{margin-left:24px}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
36
  }
23
37
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: CheckboxInputComponent, decorators: [{
24
38
  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\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 mat-hint,.aup-subscript mat-error{margin-left:24px}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"] }]
39
+ 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}:host(.aup-no-field-alignment){padding:0}.aup-subscript mat-hint,.aup-subscript mat-error{margin-left:24px}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
40
  }], ctorParameters: function () { return []; }, propDecorators: { color: [{
27
41
  type: Input
28
42
  }], labelPosition: [{
29
43
  type: Input
44
+ }], alignWithFields: [{
45
+ type: Input
46
+ }], noFieldAlignment: [{
47
+ type: HostBinding,
48
+ args: ['class.aup-no-field-alignment']
30
49
  }] } });
31
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hlY2tib3gtaW5wdXQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9hbmd1bGFyLXVpLXBvd2VydXBzL3NyYy9saWIvY29tcG9uZW50cy9mb3Jtcy9jaGVja2JveC1pbnB1dC9jaGVja2JveC1pbnB1dC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2FuZ3VsYXItdWktcG93ZXJ1cHMvc3JjL2xpYi9jb21wb25lbnRzL2Zvcm1zL2NoZWNrYm94LWlucHV0L2NoZWNrYm94LWlucHV0LmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxTQUFTLEVBQUUsS0FBSyxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQy9DLE9BQU8sRUFBQywyQkFBMkIsRUFBQyxNQUFNLG1DQUFtQyxDQUFDOzs7Ozs7O0FBUTlFLE1BQU0sT0FBTyxzQkFBdUIsU0FBUSwyQkFBb0M7SUFFOUUsa0RBQWtEO0lBQ2xELHlFQUF5RTtJQUd6RSxLQUFLLEdBQWtDLFFBQVEs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XAtdmFsaWRhdGlvbi1pY29uXCIgKm5nSWY9XCJwb3B1cE1lc3NhZ2VcIj48YXVwLWljb24gZGF0YS1jeT1cInZhbGlkYXRpb24taWNvblwiXG4gICAgICAgICAgICAgW2ljb25dPVwicG9wdXBJY29uXCIgW25nQ2xhc3NdPVwicG9wdXBTZXZlcml0eUNsYXNzXCJcbiAgICAgICAgICAgICBbYXVwVG9vbHRpcF09XCJwb3B1cE1lc3NhZ2VcIiBhdXBUb29sdGlwUG9zaXRpb249XCJhYm92ZVwiPjwvYXVwLWljb24+PC9zcGFuPlxuPC9tYXQtY2hlY2tib3g+XG48IS0tXG4gIFRoZSB3cmFwcGVyIGhhcyB0byBwZXJzaXN0IGZvciB0aGUgZ3JpZCBjb2xsYXBzZSB0byBoYXZlIHNvbWV0aGluZyB0byBhbmltYXRlIOKAlCB0aGUgbWVzc2FnZXNcbiAgdGhlbXNlbHZlcyBjb21lIGFuZCBnbyB3aXRoICpuZ0lmLiBpbmxpbmVIaW50VGV4dC9pbmxpbmVFcnJvciBhcmUgYWxyZWFkeSBudWxsIHdoZW4gZGVuc2UsIHNvXG4gIG5vICFkZW5zZSBndWFyZCBpcyBuZWVkZWQuXG4tLT5cbjxkaXYgY2xhc3M9XCJhdXAtc3Vic2NyaXB0XCI+XG4gIDxtYXQtaGludCAqbmdJZj1cImlubGluZUhpbnRUZXh0XCIgW25nQ2xhc3NdPVwiaW5saW5lSGludENsYXNzXCI+e3tpbmxpbmVIaW50VGV4dH19PC9tYXQtaGludD5cbiAgPG1hdC1lcnJvciAqbmdJZj1cImlubGluZUVycm9yXCI+e3tpbmxpbmVFcnJvcn19PC9tYXQtZXJyb3I+XG48L2Rpdj5cbiJdfQ==
@@ -2969,6 +2969,20 @@ class CheckboxInputComponent extends AbstractValueInputComponent {
2969
2969
  // valueModel: Form.ValueModelBase<boolean> | MutableValueModel<boolean>;
2970
2970
  color = 'accent';
2971
2971
  labelPosition = 'after';
2972
+ /**
2973
+ * Whether the checkbox reserves the space that lines its box up with outlined form fields: the
2974
+ * top padding every density gives it, and the margin form.scss leaves for a field's float label.
2975
+ * Keep it on in a row of outlined fields, where the box must sit level with their text.
2976
+ *
2977
+ * Turn it off where no outlined field sits beside the checkbox, such as a list of checkboxes on
2978
+ * their own or a checkbox beside a button. The checkbox then takes only its own height, so it
2979
+ * centres on the row like anything else — at every density, since the space is for the fields
2980
+ * and not for the checkbox.
2981
+ */
2982
+ alignWithFields = true;
2983
+ get noFieldAlignment() {
2984
+ return !this.alignWithFields;
2985
+ }
2972
2986
  constructor() {
2973
2987
  super();
2974
2988
  }
@@ -2976,15 +2990,20 @@ class CheckboxInputComponent extends AbstractValueInputComponent {
2976
2990
  this.componentValue$.value = $event.checked;
2977
2991
  }
2978
2992
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: CheckboxInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2979
- 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 mat-hint,.aup-subscript mat-error{margin-left:24px}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$1.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i4$1.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$5.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex"], exportAs: ["matCheckbox"] }, { kind: "component", type: IconComponent, selector: "aup-icon", inputs: ["icon"] }] });
2993
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: CheckboxInputComponent, selector: "aup-checkbox-input", inputs: { color: "color", labelPosition: "labelPosition", alignWithFields: "alignWithFields" }, host: { properties: { "class.aup-no-field-alignment": "this.noFieldAlignment" } }, 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}:host(.aup-no-field-alignment){padding:0}.aup-subscript mat-hint,.aup-subscript mat-error{margin-left:24px}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$1.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i4$1.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$5.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex"], exportAs: ["matCheckbox"] }, { kind: "component", type: IconComponent, selector: "aup-icon", inputs: ["icon"] }] });
2980
2994
  }
2981
2995
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: CheckboxInputComponent, decorators: [{
2982
2996
  type: Component,
2983
- 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 mat-hint,.aup-subscript mat-error{margin-left:24px}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"] }]
2997
+ 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}:host(.aup-no-field-alignment){padding:0}.aup-subscript mat-hint,.aup-subscript mat-error{margin-left:24px}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"] }]
2984
2998
  }], ctorParameters: function () { return []; }, propDecorators: { color: [{
2985
2999
  type: Input
2986
3000
  }], labelPosition: [{
2987
3001
  type: Input
3002
+ }], alignWithFields: [{
3003
+ type: Input
3004
+ }], noFieldAlignment: [{
3005
+ type: HostBinding,
3006
+ args: ['class.aup-no-field-alignment']
2988
3007
  }] } });
2989
3008
 
2990
3009
  /**