@coolon/angular-ui-powerups 16.1.0-alpha.281 → 16.1.0-alpha.282
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 +4 -3
- package/esm2022/lib/components/forms/number-input/number-input.component.mjs +117 -4
- package/fesm2022/coolon-angular-ui-powerups.mjs +115 -2
- package/fesm2022/coolon-angular-ui-powerups.mjs.map +1 -1
- package/lib/components/forms/number-input/number-input.component.d.ts +59 -1
- package/package.json +1 -1
package/assets/form.scss
CHANGED
|
@@ -41,9 +41,10 @@
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
// Material leaves the icon-suffix container as a block, which is fine while it holds one icon.
|
|
44
|
-
//
|
|
45
|
-
//
|
|
46
|
-
// dense field must never do.
|
|
44
|
+
// It first broke when number-input put a block-level stepper <section> in there alongside the
|
|
45
|
+
// validation icon: the icon wrapped to a new line and made the field taller — the one thing a
|
|
46
|
+
// dense field must never do. The steppers have since moved outside the outline, but any field
|
|
47
|
+
// with two suffixes would hit the same thing. Same treatment as span[matsuffix] above.
|
|
47
48
|
.mat-mdc-form-field-icon-suffix {
|
|
48
49
|
display: inline-flex;
|
|
49
50
|
flex-direction: row;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __decorate, __metadata } from "tslib";
|
|
2
|
-
import { Component, Input } from '@angular/core';
|
|
2
|
+
import { Component, HostBinding, Input } from '@angular/core';
|
|
3
3
|
import { Command, Dsl, Proxify, proxify, StoreInValueModel, ValueModel } from "@coolon/pectin";
|
|
4
4
|
import { isNil } from 'lodash-es';
|
|
5
5
|
import { AbstractValueInputComponent } from '../abstract-value-input.component';
|
|
@@ -33,6 +33,32 @@ export class NumberInputComponent extends AbstractValueInputComponent {
|
|
|
33
33
|
#significantDigits_accessor_storage;
|
|
34
34
|
get significantDigits() { return this.#significantDigits_accessor_storage; }
|
|
35
35
|
set significantDigits(value) { this.#significantDigits_accessor_storage = value; }
|
|
36
|
+
/**
|
|
37
|
+
* Selects the layout, not a breakpoint — a touch-density form uses the touch layout throughout,
|
|
38
|
+
* so the two never mix in one column. 'touch' unstacks the steppers to full-height buttons either
|
|
39
|
+
* side of the field, because stacking them in a 56px row would halve each one.
|
|
40
|
+
*
|
|
41
|
+
* Orthogonal to {@link dense}, which goes the other way (a 37px row for tables and sub-forms).
|
|
42
|
+
* Setting both is contradictory; touch wins, since its rules come later.
|
|
43
|
+
*/
|
|
44
|
+
density = 'desktop';
|
|
45
|
+
get touchDensity() {
|
|
46
|
+
return this.density === 'touch';
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* The steppers live outside the field's outline now, so nothing about them is styled by Material.
|
|
50
|
+
* These two say when the block as a whole takes the disabled or error treatment; a single
|
|
51
|
+
* stepper greying out at min/max is the command directive's disabled attribute, not these.
|
|
52
|
+
*/
|
|
53
|
+
get steppersDisabled() {
|
|
54
|
+
return !this.enabled$.value;
|
|
55
|
+
}
|
|
56
|
+
// Kept mutually exclusive with the disabled class on purpose: Material paints a disabled field
|
|
57
|
+
// with the disabled outline whether or not it is invalid, and two host classes that can both be
|
|
58
|
+
// on would put the column's outline colour into a specificity fight the cascade order can't win.
|
|
59
|
+
get steppersInError() {
|
|
60
|
+
return this.enabled$.value && this.hasErrors();
|
|
61
|
+
}
|
|
36
62
|
incrementCommand;
|
|
37
63
|
decrementCommand;
|
|
38
64
|
displayValue$;
|
|
@@ -61,6 +87,82 @@ export class NumberInputComponent extends AbstractValueInputComponent {
|
|
|
61
87
|
clampSignificantDigits(value) {
|
|
62
88
|
return isNil(this.significantDigits) ? value : Number(value.toFixed(this.significantDigits));
|
|
63
89
|
}
|
|
90
|
+
/**
|
|
91
|
+
* Shift, PageUp and PageDown all step by ten times {@link step}.
|
|
92
|
+
*
|
|
93
|
+
* Plain arrow stepping is NOT here: `input[type=number]` already does it natively, honouring the
|
|
94
|
+
* bound min/max/step, and the change arrives through ngModelChange like any other edit. Only the
|
|
95
|
+
* coarse step is ours, because nothing native multiplies by anything.
|
|
96
|
+
*/
|
|
97
|
+
static COARSE_STEP_FACTOR = 10;
|
|
98
|
+
onKeyDown(event) {
|
|
99
|
+
const direction = NumberInputComponent.coarseStepDirection(event);
|
|
100
|
+
if (direction === 0) {
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
// The native single step would otherwise land on top of ours and the field would move by 11.
|
|
104
|
+
event.preventDefault();
|
|
105
|
+
const from = this.value$.value ?? 0;
|
|
106
|
+
const delta = direction * this.step$.value * NumberInputComponent.COARSE_STEP_FACTOR;
|
|
107
|
+
this.componentValue$.value = this.clampToBounds(this.clampSignificantDigits(from + delta));
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* A focused `input[type=number]` treats the wheel as a stepper, so scrolling the page with the
|
|
111
|
+
* pointer resting on a field you just typed into silently edits it — and this component commits
|
|
112
|
+
* on every change, so that edit IS the commit. There is no confirmation step behind it to catch.
|
|
113
|
+
*
|
|
114
|
+
* Only while focused: an unfocused number input doesn't step, so there is nothing to guard and
|
|
115
|
+
* the page should scroll as normal. The consequence worth knowing is that while the field IS
|
|
116
|
+
* focused the wheel now does nothing over it at all — the page won't scroll either until the
|
|
117
|
+
* pointer moves off. Blurring instead would let the scroll through, but silent focus loss fires
|
|
118
|
+
* every consumer's blur handler, which is a much wider blast radius than a dead wheel.
|
|
119
|
+
*
|
|
120
|
+
* Deliberate adjustment keeps three better paths: the arrows, Shift/PageUp/PageDown for ten, and
|
|
121
|
+
* the steppers.
|
|
122
|
+
*/
|
|
123
|
+
onWheel(event) {
|
|
124
|
+
if (event.target === document.activeElement) {
|
|
125
|
+
event.preventDefault();
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
static coarseStepDirection(event) {
|
|
129
|
+
switch (event.key) {
|
|
130
|
+
case 'PageUp':
|
|
131
|
+
return 1;
|
|
132
|
+
case 'PageDown':
|
|
133
|
+
return -1;
|
|
134
|
+
// A plain arrow is the native step's business; only a shifted one is ours.
|
|
135
|
+
case 'ArrowUp':
|
|
136
|
+
return event.shiftKey ? 1 : 0;
|
|
137
|
+
case 'ArrowDown':
|
|
138
|
+
return event.shiftKey ? -1 : 0;
|
|
139
|
+
default:
|
|
140
|
+
return 0;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* A single step stops at the bounds because the command is disabled there, but a coarse step can
|
|
145
|
+
* jump clean over them — 5 with Shift+Up against a max of 10 has to land on 10, not 15.
|
|
146
|
+
*/
|
|
147
|
+
clampToBounds(value) {
|
|
148
|
+
const min = this.min$.value ?? Number.MIN_SAFE_INTEGER;
|
|
149
|
+
const max = this.max$.value ?? Number.MAX_SAFE_INTEGER;
|
|
150
|
+
return Math.min(Math.max(value, min), max);
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* A pointer press on a stepper must leave the field holding focus — the button takes focus on
|
|
154
|
+
* mousedown, then loses it again, so the press ended up landing focus on <body> and taking the
|
|
155
|
+
* field's focus ring with it. Refusing the focus at mousedown stops that, and requesting it for
|
|
156
|
+
* the field matches what a native number input's own spinners do.
|
|
157
|
+
*
|
|
158
|
+
* Bound on mousedown rather than in the commands so it stays POINTER-only: the buttons are still
|
|
159
|
+
* tab stops, and a keyboard activation has to leave focus on the button it came from, or a second
|
|
160
|
+
* press would have nowhere to land.
|
|
161
|
+
*/
|
|
162
|
+
onStepperPress(event) {
|
|
163
|
+
event.preventDefault();
|
|
164
|
+
this.focusContext.requestFocus();
|
|
165
|
+
}
|
|
64
166
|
onValueChange(value) {
|
|
65
167
|
// Write to componentValue$ (not value$) so the change flows LEFT through the
|
|
66
168
|
// formValue↔componentValue binding. Writing to value$ would push RIGHT, and
|
|
@@ -69,7 +171,7 @@ export class NumberInputComponent extends AbstractValueInputComponent {
|
|
|
69
171
|
this.componentValue$.value = value;
|
|
70
172
|
}
|
|
71
173
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: NumberInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
72
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: NumberInputComponent, selector: "aup-number-input", inputs: { autocomplete: "autocomplete", min$: "min$", min: "min", max$: "max$", max: "max", significantDigits$: "significantDigits$", significantDigits: "significantDigits" }, usesInheritance: true, ngImport: i0, template: "<mat-form-field floatLabel=\"always\" subscriptSizing=\"dynamic\">\n <mat-label *ngIf=\"label\">{{ label }}</mat-label>\n <input type=\"number\"\n matInput\n placeholder=\"{{placeholder}}\"\n [attr.autocomplete]=\"autocomplete\"\n [ngModel]=\"displayValue$.value\"\n (ngModelChange)=\"onValueChange($event)\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n [min]=\"min\"\n [max]=\"max\"\n [size]=\"4\"\n [step]=\"step$.value\"\n >\n <section matIconSuffix>\n <button [pectinCommand]=\"decrementCommand\">-</button>\n <button [pectinCommand]=\"incrementCommand\">+</button>\n </section>\n <mat-hint *ngIf=\"inlineHintText\" [ngClass]=\"inlineHintClass\">{{inlineHintText}}</mat-hint>\n <mat-error *ngIf=\"inlineError\">{{inlineError}}</mat-error>\n <span matSuffix class=\"aup-validation-icon\" *ngIf=\"popupMessage\">\n <aup-icon data-cy=\"validation-icon\"\n [icon]=\"popupIcon\" [ngClass]=\"popupSeverityClass\"\n [aupTooltip]=\"popupMessage\" aupTooltipPosition=\"above\"></aup-icon>\n </span>\n</mat-form-field>\n", styles: [":host{--width: 56px;--height: 42px;--margin-right: 1px;--border-radius: 3px;--border-color:#d5d5d5;--button-background: #fafafa;--button-background-hover: #efefef}:host input[type=number]{appearance:textfield}:host input[type=number]::-webkit-inner-spin-button,:host input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none}:host:focus-within:has(section:not(:focus-within)){--height: 40px;--margin-right: 2px;--border-radius: 2px}:host section[maticonsuffix]{display:flex;flex-direction:row;align-items:stretch;gap:1px;background-color:var(--border-color);border-left:1px solid var(--border-color);width:var(--width);min-width:var(--width);height:var(--height);min-height:var(--height);margin-right:var(--margin-right);border-top-right-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius);overflow:hidden}:host button{flex:1;display:flex;flex-direction:row;align-items:center;justify-content:center;font-weight:600;border-style:none;background-color:var(--button-background)}:host button:hover{background-color:var(--button-background-hover)}:host(.dense){--height: 35px}:host(.dense):focus-within:has(section:not(:focus-within)){--height: 33px}\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.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.MinValidator, selector: "input[type=number][min][formControlName],input[type=number][min][formControl],input[type=number][min][ngModel]", inputs: ["min"] }, { kind: "directive", type: i2.MaxValidator, selector: "input[type=number][max][formControlName],input[type=number][max][formControl],input[type=number][max][ngModel]", inputs: ["max"] }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i4.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4.MatLabel, selector: "mat-label" }, { 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: i4.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "directive", type: i5.AupTooltipDirective, selector: "[aupTooltip]", inputs: ["aupTooltip", "aupTooltipPosition", "aupTooltipPositionAtOrigin", "aupTooltipDisabled", "aupTooltipShowDelay", "aupTooltipHideDelay", "aupTooltipTouchGestures", "aupTooltipClass"], exportAs: ["aupTooltip"] }, { kind: "directive", type: i6.CommandDirective, selector: "[pectinCommand]", inputs: ["pectinCommand", "commandParameter", "preventDefault"] }, { kind: "directive", type: i7.FocusBindingDirective, selector: "[pectinFocusBinding]", inputs: ["pectinFocusBinding", "focusBindingTarget"] }, { kind: "component", type: i8.IconComponent, selector: "aup-icon", inputs: ["icon"] }] });
|
|
174
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: NumberInputComponent, selector: "aup-number-input", inputs: { autocomplete: "autocomplete", min$: "min$", min: "min", max$: "max$", max: "max", significantDigits$: "significantDigits$", significantDigits: "significantDigits", density: "density" }, host: { properties: { "class.touch": "this.touchDensity", "class.aup-steppers-disabled": "this.steppersDisabled", "class.aup-steppers-error": "this.steppersInError" } }, usesInheritance: true, ngImport: i0, template: "<div class=\"stepped-field\">\n <!-- Each density emits the buttons in the order the eye reads them: desktop field \u2192 increment\n (top) \u2192 decrement (bottom), touch decrement \u2192 field \u2192 increment. That started out as a Tab\n fix and the buttons have since left the tab order, but DOM order still wants to match visual\n order \u2014 it is the reading order anyone gets who unhides them, and a CSS-only reorder would\n leave the two permanently disagreeing. -->\n <ng-container *ngIf=\"touchDensity\" [ngTemplateOutlet]=\"decrementStepper\"></ng-container>\n\n <mat-form-field floatLabel=\"always\" subscriptSizing=\"dynamic\">\n <mat-label *ngIf=\"label\">{{ label }}</mat-label>\n <!-- role is the implicit one for type=number, but stating it is not redundant in practice:\n Chrome's accessibility tree reports a bare number input as a textbox and only reports\n spinbutton once the role is spelled out. aria-valuenow/min/max are deliberately absent \u2014\n the native value, min and max already surface through, and a hand-synced mirror of them\n would be one more thing to get wrong. -->\n <input type=\"number\"\n role=\"spinbutton\"\n matInput\n (keydown)=\"onKeyDown($event)\"\n (wheel)=\"onWheel($event)\"\n placeholder=\"{{placeholder}}\"\n [attr.autocomplete]=\"autocomplete\"\n [ngModel]=\"displayValue$.value\"\n (ngModelChange)=\"onValueChange($event)\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n [min]=\"min\"\n [max]=\"max\"\n [size]=\"4\"\n [step]=\"step$.value\"\n >\n <mat-hint *ngIf=\"inlineHintText\" [ngClass]=\"inlineHintClass\">{{inlineHintText}}</mat-hint>\n <mat-error *ngIf=\"inlineError\">{{inlineError}}</mat-error>\n <span matSuffix class=\"aup-validation-icon\" *ngIf=\"popupMessage\">\n <aup-icon data-cy=\"validation-icon\"\n [icon]=\"popupIcon\" [ngClass]=\"popupSeverityClass\"\n [aupTooltip]=\"popupMessage\" aupTooltipPosition=\"above\"></aup-icon>\n </span>\n </mat-form-field>\n\n <!-- Desktop's two buttons share this box: one outline, one divider between them. Touch dissolves\n it with `display: contents` and gives each button its own box, so it holds increment alone. -->\n <section class=\"steppers\" data-cy=\"steppers\">\n <ng-container [ngTemplateOutlet]=\"incrementStepper\"></ng-container>\n <ng-container *ngIf=\"!touchDensity\" [ngTemplateOutlet]=\"decrementStepper\"></ng-container>\n </section>\n</div>\n\n<ng-template #incrementStepper>\n <button type=\"button\"\n class=\"stepper increment\"\n data-cy=\"increment\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n (mousedown)=\"onStepperPress($event)\"\n [pectinCommand]=\"incrementCommand\">+</button>\n</ng-template>\n\n<ng-template #decrementStepper>\n <button type=\"button\"\n class=\"stepper decrement\"\n data-cy=\"decrement\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n (mousedown)=\"onStepperPress($event)\"\n [pectinCommand]=\"decrementCommand\">−</button>\n</ng-template>\n", styles: [":host{--stepper-width: 32px;--stepper-height: 44px;--stepper-outline: var(--mdc-outlined-text-field-outline-color, #dadce0);--stepper-radius: 4px;--stepper-glyph: #5f6368;--stepper-glyph-size: 15px;--stepper-glyph-disabled: #bdc1c6;--stepper-hover: #f1f3f4;--stepper-pressed: #e8eaed}:host input[type=number]{appearance:textfield}:host input[type=number]::-webkit-inner-spin-button,:host input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none}:host .stepped-field{display:flex;flex-direction:row;align-items:flex-start}:host mat-form-field{flex:1 1 auto;min-width:0}:host section.steppers{flex:0 0 auto;display:flex;flex-direction:column;box-sizing:border-box;width:var(--stepper-width);height:var(--stepper-height);border:1px solid var(--stepper-outline);border-left:none;border-radius:0 var(--stepper-radius) var(--stepper-radius) 0;overflow:hidden}:host button.stepper{flex:1;display:flex;align-items:center;justify-content:center;padding:0;border:none;background-color:transparent;cursor:pointer;color:var(--stepper-glyph);font-size:var(--stepper-glyph-size);line-height:1}:host button.stepper:hover:not([disabled]){background-color:var(--stepper-hover)}:host button.stepper:active:not([disabled]){background-color:var(--stepper-pressed)}:host button.stepper[disabled]{color:var(--stepper-glyph-disabled);cursor:default;pointer-events:none}:host button.stepper:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--mdc-outlined-text-field-focus-outline-color, #3f51b5)}:host .stepper+.stepper{border-top:1px solid var(--stepper-outline)}:host ::ng-deep .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-right-radius:0;border-bottom-right-radius:0}:host(.dense){--stepper-height: 37px;--stepper-glyph-size: 14px}:host(.touch){--stepper-width: var(--stepper-height);--stepper-glyph-size: 22px;--mat-form-field-container-text-size: 18px}:host(.touch) section.steppers{display:contents}:host(.touch) button.stepper{flex:0 0 auto;box-sizing:border-box;width:var(--stepper-width);height:var(--stepper-height);border:1px solid var(--stepper-outline)}:host(.touch) button.stepper.decrement{border-right:none;border-radius:var(--stepper-radius) 0 0 var(--stepper-radius)}:host(.touch) button.stepper.increment{border-left:none;border-radius:0 var(--stepper-radius) var(--stepper-radius) 0}:host(.touch) ::ng-deep .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:0;border-bottom-left-radius:0}:host:has(.mat-mdc-text-field-wrapper:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover){--stepper-outline: var(--mdc-outlined-text-field-hover-outline-color, rgba(0, 0, 0, .87))}:host:has(.mdc-text-field--focused){--stepper-outline: var(--mdc-outlined-text-field-focus-outline-color, #3f51b5)}:host:has(.mdc-text-field--focused) section.steppers{border-width:2px}:host(.touch):has(.mdc-text-field--focused) button.stepper{border-width:2px}:host(.aup-steppers-error){--stepper-outline: var(--mdc-outlined-text-field-error-outline-color, #f44336)}:host(.aup-steppers-error):has(.mat-mdc-text-field-wrapper:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover){--stepper-outline: var(--mdc-outlined-text-field-error-hover-outline-color, #f44336)}:host(.aup-steppers-error):has(.mdc-text-field--focused){--stepper-outline: var(--mdc-outlined-text-field-error-focus-outline-color, #f44336)}:host(.aup-steppers-disabled){--stepper-outline: var(--mdc-outlined-text-field-disabled-outline-color, rgba(0, 0, 0, .06))}\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: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.MinValidator, selector: "input[type=number][min][formControlName],input[type=number][min][formControl],input[type=number][min][ngModel]", inputs: ["min"] }, { kind: "directive", type: i2.MaxValidator, selector: "input[type=number][max][formControlName],input[type=number][max][formControl],input[type=number][max][ngModel]", inputs: ["max"] }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i4.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4.MatLabel, selector: "mat-label" }, { 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: i4.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "directive", type: i5.AupTooltipDirective, selector: "[aupTooltip]", inputs: ["aupTooltip", "aupTooltipPosition", "aupTooltipPositionAtOrigin", "aupTooltipDisabled", "aupTooltipShowDelay", "aupTooltipHideDelay", "aupTooltipTouchGestures", "aupTooltipClass"], exportAs: ["aupTooltip"] }, { kind: "directive", type: i6.CommandDirective, selector: "[pectinCommand]", inputs: ["pectinCommand", "commandParameter", "preventDefault"] }, { kind: "directive", type: i7.FocusBindingDirective, selector: "[pectinFocusBinding]", inputs: ["pectinFocusBinding", "focusBindingTarget"] }, { kind: "component", type: i8.IconComponent, selector: "aup-icon", inputs: ["icon"] }] });
|
|
73
175
|
}
|
|
74
176
|
__decorate([
|
|
75
177
|
Proxify(),
|
|
@@ -97,7 +199,7 @@ __decorate([
|
|
|
97
199
|
], NumberInputComponent.prototype, "significantDigits", null);
|
|
98
200
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: NumberInputComponent, decorators: [{
|
|
99
201
|
type: Component,
|
|
100
|
-
args: [{ selector: 'aup-number-input', template: "<mat-form-field floatLabel=\"always\" subscriptSizing=\"dynamic\">\n
|
|
202
|
+
args: [{ selector: 'aup-number-input', template: "<div class=\"stepped-field\">\n <!-- Each density emits the buttons in the order the eye reads them: desktop field \u2192 increment\n (top) \u2192 decrement (bottom), touch decrement \u2192 field \u2192 increment. That started out as a Tab\n fix and the buttons have since left the tab order, but DOM order still wants to match visual\n order \u2014 it is the reading order anyone gets who unhides them, and a CSS-only reorder would\n leave the two permanently disagreeing. -->\n <ng-container *ngIf=\"touchDensity\" [ngTemplateOutlet]=\"decrementStepper\"></ng-container>\n\n <mat-form-field floatLabel=\"always\" subscriptSizing=\"dynamic\">\n <mat-label *ngIf=\"label\">{{ label }}</mat-label>\n <!-- role is the implicit one for type=number, but stating it is not redundant in practice:\n Chrome's accessibility tree reports a bare number input as a textbox and only reports\n spinbutton once the role is spelled out. aria-valuenow/min/max are deliberately absent \u2014\n the native value, min and max already surface through, and a hand-synced mirror of them\n would be one more thing to get wrong. -->\n <input type=\"number\"\n role=\"spinbutton\"\n matInput\n (keydown)=\"onKeyDown($event)\"\n (wheel)=\"onWheel($event)\"\n placeholder=\"{{placeholder}}\"\n [attr.autocomplete]=\"autocomplete\"\n [ngModel]=\"displayValue$.value\"\n (ngModelChange)=\"onValueChange($event)\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n [min]=\"min\"\n [max]=\"max\"\n [size]=\"4\"\n [step]=\"step$.value\"\n >\n <mat-hint *ngIf=\"inlineHintText\" [ngClass]=\"inlineHintClass\">{{inlineHintText}}</mat-hint>\n <mat-error *ngIf=\"inlineError\">{{inlineError}}</mat-error>\n <span matSuffix class=\"aup-validation-icon\" *ngIf=\"popupMessage\">\n <aup-icon data-cy=\"validation-icon\"\n [icon]=\"popupIcon\" [ngClass]=\"popupSeverityClass\"\n [aupTooltip]=\"popupMessage\" aupTooltipPosition=\"above\"></aup-icon>\n </span>\n </mat-form-field>\n\n <!-- Desktop's two buttons share this box: one outline, one divider between them. Touch dissolves\n it with `display: contents` and gives each button its own box, so it holds increment alone. -->\n <section class=\"steppers\" data-cy=\"steppers\">\n <ng-container [ngTemplateOutlet]=\"incrementStepper\"></ng-container>\n <ng-container *ngIf=\"!touchDensity\" [ngTemplateOutlet]=\"decrementStepper\"></ng-container>\n </section>\n</div>\n\n<ng-template #incrementStepper>\n <button type=\"button\"\n class=\"stepper increment\"\n data-cy=\"increment\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n (mousedown)=\"onStepperPress($event)\"\n [pectinCommand]=\"incrementCommand\">+</button>\n</ng-template>\n\n<ng-template #decrementStepper>\n <button type=\"button\"\n class=\"stepper decrement\"\n data-cy=\"decrement\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n (mousedown)=\"onStepperPress($event)\"\n [pectinCommand]=\"decrementCommand\">−</button>\n</ng-template>\n", styles: [":host{--stepper-width: 32px;--stepper-height: 44px;--stepper-outline: var(--mdc-outlined-text-field-outline-color, #dadce0);--stepper-radius: 4px;--stepper-glyph: #5f6368;--stepper-glyph-size: 15px;--stepper-glyph-disabled: #bdc1c6;--stepper-hover: #f1f3f4;--stepper-pressed: #e8eaed}:host input[type=number]{appearance:textfield}:host input[type=number]::-webkit-inner-spin-button,:host input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none}:host .stepped-field{display:flex;flex-direction:row;align-items:flex-start}:host mat-form-field{flex:1 1 auto;min-width:0}:host section.steppers{flex:0 0 auto;display:flex;flex-direction:column;box-sizing:border-box;width:var(--stepper-width);height:var(--stepper-height);border:1px solid var(--stepper-outline);border-left:none;border-radius:0 var(--stepper-radius) var(--stepper-radius) 0;overflow:hidden}:host button.stepper{flex:1;display:flex;align-items:center;justify-content:center;padding:0;border:none;background-color:transparent;cursor:pointer;color:var(--stepper-glyph);font-size:var(--stepper-glyph-size);line-height:1}:host button.stepper:hover:not([disabled]){background-color:var(--stepper-hover)}:host button.stepper:active:not([disabled]){background-color:var(--stepper-pressed)}:host button.stepper[disabled]{color:var(--stepper-glyph-disabled);cursor:default;pointer-events:none}:host button.stepper:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--mdc-outlined-text-field-focus-outline-color, #3f51b5)}:host .stepper+.stepper{border-top:1px solid var(--stepper-outline)}:host ::ng-deep .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-right-radius:0;border-bottom-right-radius:0}:host(.dense){--stepper-height: 37px;--stepper-glyph-size: 14px}:host(.touch){--stepper-width: var(--stepper-height);--stepper-glyph-size: 22px;--mat-form-field-container-text-size: 18px}:host(.touch) section.steppers{display:contents}:host(.touch) button.stepper{flex:0 0 auto;box-sizing:border-box;width:var(--stepper-width);height:var(--stepper-height);border:1px solid var(--stepper-outline)}:host(.touch) button.stepper.decrement{border-right:none;border-radius:var(--stepper-radius) 0 0 var(--stepper-radius)}:host(.touch) button.stepper.increment{border-left:none;border-radius:0 var(--stepper-radius) var(--stepper-radius) 0}:host(.touch) ::ng-deep .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:0;border-bottom-left-radius:0}:host:has(.mat-mdc-text-field-wrapper:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover){--stepper-outline: var(--mdc-outlined-text-field-hover-outline-color, rgba(0, 0, 0, .87))}:host:has(.mdc-text-field--focused){--stepper-outline: var(--mdc-outlined-text-field-focus-outline-color, #3f51b5)}:host:has(.mdc-text-field--focused) section.steppers{border-width:2px}:host(.touch):has(.mdc-text-field--focused) button.stepper{border-width:2px}:host(.aup-steppers-error){--stepper-outline: var(--mdc-outlined-text-field-error-outline-color, #f44336)}:host(.aup-steppers-error):has(.mat-mdc-text-field-wrapper:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover){--stepper-outline: var(--mdc-outlined-text-field-error-hover-outline-color, #f44336)}:host(.aup-steppers-error):has(.mdc-text-field--focused){--stepper-outline: var(--mdc-outlined-text-field-error-focus-outline-color, #f44336)}:host(.aup-steppers-disabled){--stepper-outline: var(--mdc-outlined-text-field-disabled-outline-color, rgba(0, 0, 0, .06))}\n"] }]
|
|
101
203
|
}], ctorParameters: function () { return []; }, propDecorators: { autocomplete: [{
|
|
102
204
|
type: Input
|
|
103
205
|
}], min$: [{
|
|
@@ -112,5 +214,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
112
214
|
type: Input
|
|
113
215
|
}], significantDigits: [{
|
|
114
216
|
type: Input
|
|
217
|
+
}], density: [{
|
|
218
|
+
type: Input
|
|
219
|
+
}], touchDensity: [{
|
|
220
|
+
type: HostBinding,
|
|
221
|
+
args: ['class.touch']
|
|
222
|
+
}], steppersDisabled: [{
|
|
223
|
+
type: HostBinding,
|
|
224
|
+
args: ['class.aup-steppers-disabled']
|
|
225
|
+
}], steppersInError: [{
|
|
226
|
+
type: HostBinding,
|
|
227
|
+
args: ['class.aup-steppers-error']
|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taW4vbWF4IGFyZSBkZWxpYmVyYXRlbHkgYWJzZW50IOKAlFxuICAgICAgICAgdGhlIG5hdGl2ZSB2YWx1ZSwgbWluIGFuZCBtYXggYWxyZWFkeSBzdXJmYWNlIHRocm91Z2gsIGFuZCBhIGhhbmQtc3luY2VkIG1pcnJvciBvZiB0aGVtXG4gICAgICAgICB3b3VsZCBiZSBvbmUgbW9yZSB0aGluZyB0byBnZXQgd3JvbmcuIC0tPlxuICAgIDxpbnB1dCB0eXBlPVwibnVtYmVyXCJcbiAgICAgICAgICAgcm9sZT1cInNwaW5idXR0b25cIlxuICAgICAgICAgICBtYXRJbnB1dFxuICAgICAgICAgICAoa2V5ZG93bik9XCJvbktleURvd24oJGV2ZW50KVwiXG4gICAgICAgICAgICh3aGVlbCk9XCJvbldoZWVsKCRldmVudClcIlxuICAgICAgICAgICBwbGFjZWhvbGRlcj1cInt7cGxhY2Vob2xkZXJ9fVwiXG4gICAgICAgICAgIFthdHRyLmF1dG9jb21wbGV0ZV09XCJhdXRvY29tcGxldGVcIlxuICAgICAgICAgICBbbmdNb2RlbF09XCJkaXNwbGF5VmFsdWUkLnZhbHVlXCJcbiAgICAgICAgICAgKG5nTW9kZWxDaGFuZ2UpPVwib25WYWx1ZUNoYW5nZSgkZXZlbnQpXCJcbiAgICAgICAgICAgW2Rpc2FibGVkXT1cIiFlbmFibGVkJC52YWx1ZVwiXG4gICAgICAgICAgIChrZXlkb3duLmVudGVyKT1cIm5vdGlmeUVudGVyS2V5KClcIlxuICAgICAgICAgICAoa2V5ZG93bi5lc2NhcGUpPVwibm90aWZ5RXNjYXBlS2V5KClcIlxuICAgICAgICAgICBbcGVjdGluRm9jdXNCaW5kaW5nXT1cImZvY3VzQ29udGV4dFwiXG4gICAgICAgICAgIFtlcnJvclN0YXRlTWF0Y2hlcl09XCJlcnJvclN0YXRlTWF0Y2hlclwiXG4gICAgICAgICAgIFttaW5dPVwibWluXCJcbiAgICAgICAgICAgW21heF09XCJtYXhcIlxuICA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class NumberInputComponent extends AbstractValueInputComponent {
|
|
|
2848
2848
|
#significantDigits_accessor_storage;
|
|
2849
2849
|
get significantDigits() { return this.#significantDigits_accessor_storage; }
|
|
2850
2850
|
set significantDigits(value) { this.#significantDigits_accessor_storage = value; }
|
|
2851
|
+
/**
|
|
2852
|
+
* Selects the layout, not a breakpoint — a touch-density form uses the touch layout throughout,
|
|
2853
|
+
* so the two never mix in one column. 'touch' unstacks the steppers to full-height buttons either
|
|
2854
|
+
* side of the field, because stacking them in a 56px row would halve each one.
|
|
2855
|
+
*
|
|
2856
|
+
* Orthogonal to {@link dense}, which goes the other way (a 37px row for tables and sub-forms).
|
|
2857
|
+
* Setting both is contradictory; touch wins, since its rules come later.
|
|
2858
|
+
*/
|
|
2859
|
+
density = 'desktop';
|
|
2860
|
+
get touchDensity() {
|
|
2861
|
+
return this.density === 'touch';
|
|
2862
|
+
}
|
|
2863
|
+
/**
|
|
2864
|
+
* The steppers live outside the field's outline now, so nothing about them is styled by Material.
|
|
2865
|
+
* These two say when the block as a whole takes the disabled or error treatment; a single
|
|
2866
|
+
* stepper greying out at min/max is the command directive's disabled attribute, not these.
|
|
2867
|
+
*/
|
|
2868
|
+
get steppersDisabled() {
|
|
2869
|
+
return !this.enabled$.value;
|
|
2870
|
+
}
|
|
2871
|
+
// Kept mutually exclusive with the disabled class on purpose: Material paints a disabled field
|
|
2872
|
+
// with the disabled outline whether or not it is invalid, and two host classes that can both be
|
|
2873
|
+
// on would put the column's outline colour into a specificity fight the cascade order can't win.
|
|
2874
|
+
get steppersInError() {
|
|
2875
|
+
return this.enabled$.value && this.hasErrors();
|
|
2876
|
+
}
|
|
2851
2877
|
incrementCommand;
|
|
2852
2878
|
decrementCommand;
|
|
2853
2879
|
displayValue$;
|
|
@@ -2876,6 +2902,82 @@ class NumberInputComponent extends AbstractValueInputComponent {
|
|
|
2876
2902
|
clampSignificantDigits(value) {
|
|
2877
2903
|
return isNil(this.significantDigits) ? value : Number(value.toFixed(this.significantDigits));
|
|
2878
2904
|
}
|
|
2905
|
+
/**
|
|
2906
|
+
* Shift, PageUp and PageDown all step by ten times {@link step}.
|
|
2907
|
+
*
|
|
2908
|
+
* Plain arrow stepping is NOT here: `input[type=number]` already does it natively, honouring the
|
|
2909
|
+
* bound min/max/step, and the change arrives through ngModelChange like any other edit. Only the
|
|
2910
|
+
* coarse step is ours, because nothing native multiplies by anything.
|
|
2911
|
+
*/
|
|
2912
|
+
static COARSE_STEP_FACTOR = 10;
|
|
2913
|
+
onKeyDown(event) {
|
|
2914
|
+
const direction = NumberInputComponent.coarseStepDirection(event);
|
|
2915
|
+
if (direction === 0) {
|
|
2916
|
+
return;
|
|
2917
|
+
}
|
|
2918
|
+
// The native single step would otherwise land on top of ours and the field would move by 11.
|
|
2919
|
+
event.preventDefault();
|
|
2920
|
+
const from = this.value$.value ?? 0;
|
|
2921
|
+
const delta = direction * this.step$.value * NumberInputComponent.COARSE_STEP_FACTOR;
|
|
2922
|
+
this.componentValue$.value = this.clampToBounds(this.clampSignificantDigits(from + delta));
|
|
2923
|
+
}
|
|
2924
|
+
/**
|
|
2925
|
+
* A focused `input[type=number]` treats the wheel as a stepper, so scrolling the page with the
|
|
2926
|
+
* pointer resting on a field you just typed into silently edits it — and this component commits
|
|
2927
|
+
* on every change, so that edit IS the commit. There is no confirmation step behind it to catch.
|
|
2928
|
+
*
|
|
2929
|
+
* Only while focused: an unfocused number input doesn't step, so there is nothing to guard and
|
|
2930
|
+
* the page should scroll as normal. The consequence worth knowing is that while the field IS
|
|
2931
|
+
* focused the wheel now does nothing over it at all — the page won't scroll either until the
|
|
2932
|
+
* pointer moves off. Blurring instead would let the scroll through, but silent focus loss fires
|
|
2933
|
+
* every consumer's blur handler, which is a much wider blast radius than a dead wheel.
|
|
2934
|
+
*
|
|
2935
|
+
* Deliberate adjustment keeps three better paths: the arrows, Shift/PageUp/PageDown for ten, and
|
|
2936
|
+
* the steppers.
|
|
2937
|
+
*/
|
|
2938
|
+
onWheel(event) {
|
|
2939
|
+
if (event.target === document.activeElement) {
|
|
2940
|
+
event.preventDefault();
|
|
2941
|
+
}
|
|
2942
|
+
}
|
|
2943
|
+
static coarseStepDirection(event) {
|
|
2944
|
+
switch (event.key) {
|
|
2945
|
+
case 'PageUp':
|
|
2946
|
+
return 1;
|
|
2947
|
+
case 'PageDown':
|
|
2948
|
+
return -1;
|
|
2949
|
+
// A plain arrow is the native step's business; only a shifted one is ours.
|
|
2950
|
+
case 'ArrowUp':
|
|
2951
|
+
return event.shiftKey ? 1 : 0;
|
|
2952
|
+
case 'ArrowDown':
|
|
2953
|
+
return event.shiftKey ? -1 : 0;
|
|
2954
|
+
default:
|
|
2955
|
+
return 0;
|
|
2956
|
+
}
|
|
2957
|
+
}
|
|
2958
|
+
/**
|
|
2959
|
+
* A single step stops at the bounds because the command is disabled there, but a coarse step can
|
|
2960
|
+
* jump clean over them — 5 with Shift+Up against a max of 10 has to land on 10, not 15.
|
|
2961
|
+
*/
|
|
2962
|
+
clampToBounds(value) {
|
|
2963
|
+
const min = this.min$.value ?? Number.MIN_SAFE_INTEGER;
|
|
2964
|
+
const max = this.max$.value ?? Number.MAX_SAFE_INTEGER;
|
|
2965
|
+
return Math.min(Math.max(value, min), max);
|
|
2966
|
+
}
|
|
2967
|
+
/**
|
|
2968
|
+
* A pointer press on a stepper must leave the field holding focus — the button takes focus on
|
|
2969
|
+
* mousedown, then loses it again, so the press ended up landing focus on <body> and taking the
|
|
2970
|
+
* field's focus ring with it. Refusing the focus at mousedown stops that, and requesting it for
|
|
2971
|
+
* the field matches what a native number input's own spinners do.
|
|
2972
|
+
*
|
|
2973
|
+
* Bound on mousedown rather than in the commands so it stays POINTER-only: the buttons are still
|
|
2974
|
+
* tab stops, and a keyboard activation has to leave focus on the button it came from, or a second
|
|
2975
|
+
* press would have nowhere to land.
|
|
2976
|
+
*/
|
|
2977
|
+
onStepperPress(event) {
|
|
2978
|
+
event.preventDefault();
|
|
2979
|
+
this.focusContext.requestFocus();
|
|
2980
|
+
}
|
|
2879
2981
|
onValueChange(value) {
|
|
2880
2982
|
// Write to componentValue$ (not value$) so the change flows LEFT through the
|
|
2881
2983
|
// formValue↔componentValue binding. Writing to value$ would push RIGHT, and
|
|
@@ -2884,7 +2986,7 @@ class NumberInputComponent extends AbstractValueInputComponent {
|
|
|
2884
2986
|
this.componentValue$.value = value;
|
|
2885
2987
|
}
|
|
2886
2988
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: NumberInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2887
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: NumberInputComponent, selector: "aup-number-input", inputs: { autocomplete: "autocomplete", min$: "min$", min: "min", max$: "max$", max: "max", significantDigits$: "significantDigits$", significantDigits: "significantDigits" }, usesInheritance: true, ngImport: i0, template: "<mat-form-field floatLabel=\"always\" subscriptSizing=\"dynamic\">\n <mat-label *ngIf=\"label\">{{ label }}</mat-label>\n <input type=\"number\"\n matInput\n placeholder=\"{{placeholder}}\"\n [attr.autocomplete]=\"autocomplete\"\n [ngModel]=\"displayValue$.value\"\n (ngModelChange)=\"onValueChange($event)\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n [min]=\"min\"\n [max]=\"max\"\n [size]=\"4\"\n [step]=\"step$.value\"\n >\n <section matIconSuffix>\n <button [pectinCommand]=\"decrementCommand\">-</button>\n <button [pectinCommand]=\"incrementCommand\">+</button>\n </section>\n <mat-hint *ngIf=\"inlineHintText\" [ngClass]=\"inlineHintClass\">{{inlineHintText}}</mat-hint>\n <mat-error *ngIf=\"inlineError\">{{inlineError}}</mat-error>\n <span matSuffix class=\"aup-validation-icon\" *ngIf=\"popupMessage\">\n <aup-icon data-cy=\"validation-icon\"\n [icon]=\"popupIcon\" [ngClass]=\"popupSeverityClass\"\n [aupTooltip]=\"popupMessage\" aupTooltipPosition=\"above\"></aup-icon>\n </span>\n</mat-form-field>\n", styles: [":host{--width: 56px;--height: 42px;--margin-right: 1px;--border-radius: 3px;--border-color:#d5d5d5;--button-background: #fafafa;--button-background-hover: #efefef}:host input[type=number]{appearance:textfield}:host input[type=number]::-webkit-inner-spin-button,:host input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none}:host:focus-within:has(section:not(:focus-within)){--height: 40px;--margin-right: 2px;--border-radius: 2px}:host section[maticonsuffix]{display:flex;flex-direction:row;align-items:stretch;gap:1px;background-color:var(--border-color);border-left:1px solid var(--border-color);width:var(--width);min-width:var(--width);height:var(--height);min-height:var(--height);margin-right:var(--margin-right);border-top-right-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius);overflow:hidden}:host button{flex:1;display:flex;flex-direction:row;align-items:center;justify-content:center;font-weight:600;border-style:none;background-color:var(--button-background)}:host button:hover{background-color:var(--button-background-hover)}:host(.dense){--height: 35px}:host(.dense):focus-within:has(section:not(:focus-within)){--height: 33px}\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: i2$5.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$5.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { kind: "directive", type: i2$5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$5.MinValidator, selector: "input[type=number][min][formControlName],input[type=number][min][formControl],input[type=number][min][ngModel]", inputs: ["min"] }, { kind: "directive", type: i2$5.MaxValidator, selector: "input[type=number][max][formControlName],input[type=number][max][formControl],input[type=number][max][ngModel]", inputs: ["max"] }, { kind: "directive", type: i2$5.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3$1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i4.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4.MatLabel, selector: "mat-label" }, { 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: i4.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "directive", type: AupTooltipDirective, selector: "[aupTooltip]", inputs: ["aupTooltip", "aupTooltipPosition", "aupTooltipPositionAtOrigin", "aupTooltipDisabled", "aupTooltipShowDelay", "aupTooltipHideDelay", "aupTooltipTouchGestures", "aupTooltipClass"], exportAs: ["aupTooltip"] }, { kind: "directive", type: CommandDirective, selector: "[pectinCommand]", inputs: ["pectinCommand", "commandParameter", "preventDefault"] }, { kind: "directive", type: FocusBindingDirective, selector: "[pectinFocusBinding]", inputs: ["pectinFocusBinding", "focusBindingTarget"] }, { kind: "component", type: IconComponent, selector: "aup-icon", inputs: ["icon"] }] });
|
|
2989
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: NumberInputComponent, selector: "aup-number-input", inputs: { autocomplete: "autocomplete", min$: "min$", min: "min", max$: "max$", max: "max", significantDigits$: "significantDigits$", significantDigits: "significantDigits", density: "density" }, host: { properties: { "class.touch": "this.touchDensity", "class.aup-steppers-disabled": "this.steppersDisabled", "class.aup-steppers-error": "this.steppersInError" } }, usesInheritance: true, ngImport: i0, template: "<div class=\"stepped-field\">\n <!-- Each density emits the buttons in the order the eye reads them: desktop field \u2192 increment\n (top) \u2192 decrement (bottom), touch decrement \u2192 field \u2192 increment. That started out as a Tab\n fix and the buttons have since left the tab order, but DOM order still wants to match visual\n order \u2014 it is the reading order anyone gets who unhides them, and a CSS-only reorder would\n leave the two permanently disagreeing. -->\n <ng-container *ngIf=\"touchDensity\" [ngTemplateOutlet]=\"decrementStepper\"></ng-container>\n\n <mat-form-field floatLabel=\"always\" subscriptSizing=\"dynamic\">\n <mat-label *ngIf=\"label\">{{ label }}</mat-label>\n <!-- role is the implicit one for type=number, but stating it is not redundant in practice:\n Chrome's accessibility tree reports a bare number input as a textbox and only reports\n spinbutton once the role is spelled out. aria-valuenow/min/max are deliberately absent \u2014\n the native value, min and max already surface through, and a hand-synced mirror of them\n would be one more thing to get wrong. -->\n <input type=\"number\"\n role=\"spinbutton\"\n matInput\n (keydown)=\"onKeyDown($event)\"\n (wheel)=\"onWheel($event)\"\n placeholder=\"{{placeholder}}\"\n [attr.autocomplete]=\"autocomplete\"\n [ngModel]=\"displayValue$.value\"\n (ngModelChange)=\"onValueChange($event)\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n [min]=\"min\"\n [max]=\"max\"\n [size]=\"4\"\n [step]=\"step$.value\"\n >\n <mat-hint *ngIf=\"inlineHintText\" [ngClass]=\"inlineHintClass\">{{inlineHintText}}</mat-hint>\n <mat-error *ngIf=\"inlineError\">{{inlineError}}</mat-error>\n <span matSuffix class=\"aup-validation-icon\" *ngIf=\"popupMessage\">\n <aup-icon data-cy=\"validation-icon\"\n [icon]=\"popupIcon\" [ngClass]=\"popupSeverityClass\"\n [aupTooltip]=\"popupMessage\" aupTooltipPosition=\"above\"></aup-icon>\n </span>\n </mat-form-field>\n\n <!-- Desktop's two buttons share this box: one outline, one divider between them. Touch dissolves\n it with `display: contents` and gives each button its own box, so it holds increment alone. -->\n <section class=\"steppers\" data-cy=\"steppers\">\n <ng-container [ngTemplateOutlet]=\"incrementStepper\"></ng-container>\n <ng-container *ngIf=\"!touchDensity\" [ngTemplateOutlet]=\"decrementStepper\"></ng-container>\n </section>\n</div>\n\n<ng-template #incrementStepper>\n <button type=\"button\"\n class=\"stepper increment\"\n data-cy=\"increment\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n (mousedown)=\"onStepperPress($event)\"\n [pectinCommand]=\"incrementCommand\">+</button>\n</ng-template>\n\n<ng-template #decrementStepper>\n <button type=\"button\"\n class=\"stepper decrement\"\n data-cy=\"decrement\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n (mousedown)=\"onStepperPress($event)\"\n [pectinCommand]=\"decrementCommand\">−</button>\n</ng-template>\n", styles: [":host{--stepper-width: 32px;--stepper-height: 44px;--stepper-outline: var(--mdc-outlined-text-field-outline-color, #dadce0);--stepper-radius: 4px;--stepper-glyph: #5f6368;--stepper-glyph-size: 15px;--stepper-glyph-disabled: #bdc1c6;--stepper-hover: #f1f3f4;--stepper-pressed: #e8eaed}:host input[type=number]{appearance:textfield}:host input[type=number]::-webkit-inner-spin-button,:host input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none}:host .stepped-field{display:flex;flex-direction:row;align-items:flex-start}:host mat-form-field{flex:1 1 auto;min-width:0}:host section.steppers{flex:0 0 auto;display:flex;flex-direction:column;box-sizing:border-box;width:var(--stepper-width);height:var(--stepper-height);border:1px solid var(--stepper-outline);border-left:none;border-radius:0 var(--stepper-radius) var(--stepper-radius) 0;overflow:hidden}:host button.stepper{flex:1;display:flex;align-items:center;justify-content:center;padding:0;border:none;background-color:transparent;cursor:pointer;color:var(--stepper-glyph);font-size:var(--stepper-glyph-size);line-height:1}:host button.stepper:hover:not([disabled]){background-color:var(--stepper-hover)}:host button.stepper:active:not([disabled]){background-color:var(--stepper-pressed)}:host button.stepper[disabled]{color:var(--stepper-glyph-disabled);cursor:default;pointer-events:none}:host button.stepper:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--mdc-outlined-text-field-focus-outline-color, #3f51b5)}:host .stepper+.stepper{border-top:1px solid var(--stepper-outline)}:host ::ng-deep .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-right-radius:0;border-bottom-right-radius:0}:host(.dense){--stepper-height: 37px;--stepper-glyph-size: 14px}:host(.touch){--stepper-width: var(--stepper-height);--stepper-glyph-size: 22px;--mat-form-field-container-text-size: 18px}:host(.touch) section.steppers{display:contents}:host(.touch) button.stepper{flex:0 0 auto;box-sizing:border-box;width:var(--stepper-width);height:var(--stepper-height);border:1px solid var(--stepper-outline)}:host(.touch) button.stepper.decrement{border-right:none;border-radius:var(--stepper-radius) 0 0 var(--stepper-radius)}:host(.touch) button.stepper.increment{border-left:none;border-radius:0 var(--stepper-radius) var(--stepper-radius) 0}:host(.touch) ::ng-deep .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:0;border-bottom-left-radius:0}:host:has(.mat-mdc-text-field-wrapper:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover){--stepper-outline: var(--mdc-outlined-text-field-hover-outline-color, rgba(0, 0, 0, .87))}:host:has(.mdc-text-field--focused){--stepper-outline: var(--mdc-outlined-text-field-focus-outline-color, #3f51b5)}:host:has(.mdc-text-field--focused) section.steppers{border-width:2px}:host(.touch):has(.mdc-text-field--focused) button.stepper{border-width:2px}:host(.aup-steppers-error){--stepper-outline: var(--mdc-outlined-text-field-error-outline-color, #f44336)}:host(.aup-steppers-error):has(.mat-mdc-text-field-wrapper:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover){--stepper-outline: var(--mdc-outlined-text-field-error-hover-outline-color, #f44336)}:host(.aup-steppers-error):has(.mdc-text-field--focused){--stepper-outline: var(--mdc-outlined-text-field-error-focus-outline-color, #f44336)}:host(.aup-steppers-disabled){--stepper-outline: var(--mdc-outlined-text-field-disabled-outline-color, rgba(0, 0, 0, .06))}\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: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2$5.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$5.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { kind: "directive", type: i2$5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$5.MinValidator, selector: "input[type=number][min][formControlName],input[type=number][min][formControl],input[type=number][min][ngModel]", inputs: ["min"] }, { kind: "directive", type: i2$5.MaxValidator, selector: "input[type=number][max][formControlName],input[type=number][max][formControl],input[type=number][max][ngModel]", inputs: ["max"] }, { kind: "directive", type: i2$5.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3$1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i4.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4.MatLabel, selector: "mat-label" }, { 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: i4.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "directive", type: AupTooltipDirective, selector: "[aupTooltip]", inputs: ["aupTooltip", "aupTooltipPosition", "aupTooltipPositionAtOrigin", "aupTooltipDisabled", "aupTooltipShowDelay", "aupTooltipHideDelay", "aupTooltipTouchGestures", "aupTooltipClass"], exportAs: ["aupTooltip"] }, { kind: "directive", type: CommandDirective, selector: "[pectinCommand]", inputs: ["pectinCommand", "commandParameter", "preventDefault"] }, { kind: "directive", type: FocusBindingDirective, selector: "[pectinFocusBinding]", inputs: ["pectinFocusBinding", "focusBindingTarget"] }, { kind: "component", type: IconComponent, selector: "aup-icon", inputs: ["icon"] }] });
|
|
2888
2990
|
}
|
|
2889
2991
|
__decorate([
|
|
2890
2992
|
Proxify(),
|
|
@@ -2912,7 +3014,7 @@ __decorate([
|
|
|
2912
3014
|
], NumberInputComponent.prototype, "significantDigits", null);
|
|
2913
3015
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: NumberInputComponent, decorators: [{
|
|
2914
3016
|
type: Component,
|
|
2915
|
-
args: [{ selector: 'aup-number-input', template: "<mat-form-field floatLabel=\"always\" subscriptSizing=\"dynamic\">\n
|
|
3017
|
+
args: [{ selector: 'aup-number-input', template: "<div class=\"stepped-field\">\n <!-- Each density emits the buttons in the order the eye reads them: desktop field \u2192 increment\n (top) \u2192 decrement (bottom), touch decrement \u2192 field \u2192 increment. That started out as a Tab\n fix and the buttons have since left the tab order, but DOM order still wants to match visual\n order \u2014 it is the reading order anyone gets who unhides them, and a CSS-only reorder would\n leave the two permanently disagreeing. -->\n <ng-container *ngIf=\"touchDensity\" [ngTemplateOutlet]=\"decrementStepper\"></ng-container>\n\n <mat-form-field floatLabel=\"always\" subscriptSizing=\"dynamic\">\n <mat-label *ngIf=\"label\">{{ label }}</mat-label>\n <!-- role is the implicit one for type=number, but stating it is not redundant in practice:\n Chrome's accessibility tree reports a bare number input as a textbox and only reports\n spinbutton once the role is spelled out. aria-valuenow/min/max are deliberately absent \u2014\n the native value, min and max already surface through, and a hand-synced mirror of them\n would be one more thing to get wrong. -->\n <input type=\"number\"\n role=\"spinbutton\"\n matInput\n (keydown)=\"onKeyDown($event)\"\n (wheel)=\"onWheel($event)\"\n placeholder=\"{{placeholder}}\"\n [attr.autocomplete]=\"autocomplete\"\n [ngModel]=\"displayValue$.value\"\n (ngModelChange)=\"onValueChange($event)\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n [min]=\"min\"\n [max]=\"max\"\n [size]=\"4\"\n [step]=\"step$.value\"\n >\n <mat-hint *ngIf=\"inlineHintText\" [ngClass]=\"inlineHintClass\">{{inlineHintText}}</mat-hint>\n <mat-error *ngIf=\"inlineError\">{{inlineError}}</mat-error>\n <span matSuffix class=\"aup-validation-icon\" *ngIf=\"popupMessage\">\n <aup-icon data-cy=\"validation-icon\"\n [icon]=\"popupIcon\" [ngClass]=\"popupSeverityClass\"\n [aupTooltip]=\"popupMessage\" aupTooltipPosition=\"above\"></aup-icon>\n </span>\n </mat-form-field>\n\n <!-- Desktop's two buttons share this box: one outline, one divider between them. Touch dissolves\n it with `display: contents` and gives each button its own box, so it holds increment alone. -->\n <section class=\"steppers\" data-cy=\"steppers\">\n <ng-container [ngTemplateOutlet]=\"incrementStepper\"></ng-container>\n <ng-container *ngIf=\"!touchDensity\" [ngTemplateOutlet]=\"decrementStepper\"></ng-container>\n </section>\n</div>\n\n<ng-template #incrementStepper>\n <button type=\"button\"\n class=\"stepper increment\"\n data-cy=\"increment\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n (mousedown)=\"onStepperPress($event)\"\n [pectinCommand]=\"incrementCommand\">+</button>\n</ng-template>\n\n<ng-template #decrementStepper>\n <button type=\"button\"\n class=\"stepper decrement\"\n data-cy=\"decrement\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n (mousedown)=\"onStepperPress($event)\"\n [pectinCommand]=\"decrementCommand\">−</button>\n</ng-template>\n", styles: [":host{--stepper-width: 32px;--stepper-height: 44px;--stepper-outline: var(--mdc-outlined-text-field-outline-color, #dadce0);--stepper-radius: 4px;--stepper-glyph: #5f6368;--stepper-glyph-size: 15px;--stepper-glyph-disabled: #bdc1c6;--stepper-hover: #f1f3f4;--stepper-pressed: #e8eaed}:host input[type=number]{appearance:textfield}:host input[type=number]::-webkit-inner-spin-button,:host input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none}:host .stepped-field{display:flex;flex-direction:row;align-items:flex-start}:host mat-form-field{flex:1 1 auto;min-width:0}:host section.steppers{flex:0 0 auto;display:flex;flex-direction:column;box-sizing:border-box;width:var(--stepper-width);height:var(--stepper-height);border:1px solid var(--stepper-outline);border-left:none;border-radius:0 var(--stepper-radius) var(--stepper-radius) 0;overflow:hidden}:host button.stepper{flex:1;display:flex;align-items:center;justify-content:center;padding:0;border:none;background-color:transparent;cursor:pointer;color:var(--stepper-glyph);font-size:var(--stepper-glyph-size);line-height:1}:host button.stepper:hover:not([disabled]){background-color:var(--stepper-hover)}:host button.stepper:active:not([disabled]){background-color:var(--stepper-pressed)}:host button.stepper[disabled]{color:var(--stepper-glyph-disabled);cursor:default;pointer-events:none}:host button.stepper:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--mdc-outlined-text-field-focus-outline-color, #3f51b5)}:host .stepper+.stepper{border-top:1px solid var(--stepper-outline)}:host ::ng-deep .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-right-radius:0;border-bottom-right-radius:0}:host(.dense){--stepper-height: 37px;--stepper-glyph-size: 14px}:host(.touch){--stepper-width: var(--stepper-height);--stepper-glyph-size: 22px;--mat-form-field-container-text-size: 18px}:host(.touch) section.steppers{display:contents}:host(.touch) button.stepper{flex:0 0 auto;box-sizing:border-box;width:var(--stepper-width);height:var(--stepper-height);border:1px solid var(--stepper-outline)}:host(.touch) button.stepper.decrement{border-right:none;border-radius:var(--stepper-radius) 0 0 var(--stepper-radius)}:host(.touch) button.stepper.increment{border-left:none;border-radius:0 var(--stepper-radius) var(--stepper-radius) 0}:host(.touch) ::ng-deep .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:0;border-bottom-left-radius:0}:host:has(.mat-mdc-text-field-wrapper:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover){--stepper-outline: var(--mdc-outlined-text-field-hover-outline-color, rgba(0, 0, 0, .87))}:host:has(.mdc-text-field--focused){--stepper-outline: var(--mdc-outlined-text-field-focus-outline-color, #3f51b5)}:host:has(.mdc-text-field--focused) section.steppers{border-width:2px}:host(.touch):has(.mdc-text-field--focused) button.stepper{border-width:2px}:host(.aup-steppers-error){--stepper-outline: var(--mdc-outlined-text-field-error-outline-color, #f44336)}:host(.aup-steppers-error):has(.mat-mdc-text-field-wrapper:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover){--stepper-outline: var(--mdc-outlined-text-field-error-hover-outline-color, #f44336)}:host(.aup-steppers-error):has(.mdc-text-field--focused){--stepper-outline: var(--mdc-outlined-text-field-error-focus-outline-color, #f44336)}:host(.aup-steppers-disabled){--stepper-outline: var(--mdc-outlined-text-field-disabled-outline-color, rgba(0, 0, 0, .06))}\n"] }]
|
|
2916
3018
|
}], ctorParameters: function () { return []; }, propDecorators: { autocomplete: [{
|
|
2917
3019
|
type: Input
|
|
2918
3020
|
}], min$: [{
|
|
@@ -2927,6 +3029,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
2927
3029
|
type: Input
|
|
2928
3030
|
}], significantDigits: [{
|
|
2929
3031
|
type: Input
|
|
3032
|
+
}], density: [{
|
|
3033
|
+
type: Input
|
|
3034
|
+
}], touchDensity: [{
|
|
3035
|
+
type: HostBinding,
|
|
3036
|
+
args: ['class.touch']
|
|
3037
|
+
}], steppersDisabled: [{
|
|
3038
|
+
type: HostBinding,
|
|
3039
|
+
args: ['class.aup-steppers-disabled']
|
|
3040
|
+
}], steppersInError: [{
|
|
3041
|
+
type: HostBinding,
|
|
3042
|
+
args: ['class.aup-steppers-error']
|
|
2930
3043
|
}] } });
|
|
2931
3044
|
|
|
2932
3045
|
class PasswordInputComponent extends AbstractValueInputComponent {
|