@coolon/angular-ui-powerups 16.1.0-alpha.280 → 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 +15 -3
- package/esm2022/lib/components/components.module.mjs +6 -1
- package/esm2022/lib/components/exports.mjs +2 -1
- package/esm2022/lib/components/forms/number-input/number-input.component.mjs +117 -4
- package/esm2022/lib/components/forms/select-input/select-input.component.mjs +41 -6
- package/esm2022/lib/components/forms/select-input/select-overlay-origin.directive.mjs +40 -0
- package/esm2022/lib/interaction/components/input-activities/select-input-activity.mjs +1 -1
- package/fesm2022/coolon-angular-ui-powerups.mjs +197 -9
- package/fesm2022/coolon-angular-ui-powerups.mjs.map +1 -1
- package/lib/components/components.module.d.ts +74 -73
- package/lib/components/exports.d.ts +1 -0
- package/lib/components/forms/number-input/number-input.component.d.ts +59 -1
- package/lib/components/forms/select-input/select-input.component.d.ts +21 -1
- package/lib/components/forms/select-input/select-overlay-origin.directive.d.ts +25 -0
- package/package.json +1 -1
|
@@ -2,15 +2,15 @@ import { ObserversModule } from '@angular/cdk/observers';
|
|
|
2
2
|
import * as i1$1 from '@angular/common';
|
|
3
3
|
import { DOCUMENT, CommonModule } from '@angular/common';
|
|
4
4
|
import * as i0 from '@angular/core';
|
|
5
|
-
import { inject, ViewContainerRef, Directive, ElementRef, Inject, Host, Optional, Input, HostListener, InjectionToken, ChangeDetectorRef, NgZone, Injectable, Pipe, NgModule, Component, ContentChild, HostBinding, ChangeDetectionStrategy, ViewEncapsulation, ViewChild, ViewChildren, EventEmitter, Output, Self, isDevMode, ContentChildren, ComponentRef, Injector, PLATFORM_ID, SkipSelf } from '@angular/core';
|
|
5
|
+
import { inject, ViewContainerRef, Directive, ElementRef, Inject, Host, Optional, Input, HostListener, InjectionToken, ChangeDetectorRef, NgZone, Injectable, Pipe, NgModule, Component, ContentChild, HostBinding, ChangeDetectionStrategy, ViewEncapsulation, ViewChild, ViewChildren, EventEmitter, Output, Self, forwardRef, isDevMode, ContentChildren, ComponentRef, Injector, PLATFORM_ID, SkipSelf } from '@angular/core';
|
|
6
6
|
import * as i2$5 from '@angular/forms';
|
|
7
7
|
import { FormsModule } from '@angular/forms';
|
|
8
8
|
import * as i4 from '@angular/material/form-field';
|
|
9
|
-
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
9
|
+
import { MatFormFieldModule, MAT_FORM_FIELD } from '@angular/material/form-field';
|
|
10
10
|
import * as i3$1 from '@angular/material/input';
|
|
11
11
|
import { MatInputModule, MatInput } from '@angular/material/input';
|
|
12
12
|
import * as i4$1 from '@angular/material/select';
|
|
13
|
-
import { MatSelectModule, MatSelect } from '@angular/material/select';
|
|
13
|
+
import { MatSelectModule, MAT_SELECT_CONFIG, MatSelect } from '@angular/material/select';
|
|
14
14
|
import * as i3$2 from '@angular/material/tabs';
|
|
15
15
|
import { MatTabsModule, MAT_TABS_CONFIG } from '@angular/material/tabs';
|
|
16
16
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
@@ -2848,6 +2848,32 @@ 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 {
|
|
@@ -3000,6 +3113,43 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
3000
3113
|
type: Input
|
|
3001
3114
|
}] } });
|
|
3002
3115
|
|
|
3116
|
+
/**
|
|
3117
|
+
* Stands in for the mat-form-field a bare mat-select would otherwise look for, so its dropdown
|
|
3118
|
+
* anchors to THIS element's border box. Without a form field, mat-select falls back to its inner
|
|
3119
|
+
* `.mat-mdc-select-trigger` div as the overlay origin, and that div sits inside whatever padding and
|
|
3120
|
+
* border the box around it carries - the panel then opens that many pixels in from the box's edge,
|
|
3121
|
+
* and no CSS on an element we own can close a gap that IS the padding.
|
|
3122
|
+
*
|
|
3123
|
+
* mat-select reads exactly three members off MAT_FORM_FIELD in Material 16.2:
|
|
3124
|
+
* getConnectedOverlayOrigin(), getLabelId() and color. Check `_parentFormField` in
|
|
3125
|
+
* @angular/material's select.mjs on every Material bump: a fourth member would surface at runtime as
|
|
3126
|
+
* "is not a function" on open, not as a type error, because the token is typed MatFormField and this
|
|
3127
|
+
* is a partial.
|
|
3128
|
+
*/
|
|
3129
|
+
class SelectOverlayOriginDirective {
|
|
3130
|
+
elementRef;
|
|
3131
|
+
/** Gives the panel its `mat-primary` theme class, as a form field would. */
|
|
3132
|
+
color = 'primary';
|
|
3133
|
+
constructor(elementRef) {
|
|
3134
|
+
this.elementRef = elementRef;
|
|
3135
|
+
}
|
|
3136
|
+
getConnectedOverlayOrigin() {
|
|
3137
|
+
return this.elementRef;
|
|
3138
|
+
}
|
|
3139
|
+
getLabelId() {
|
|
3140
|
+
return null;
|
|
3141
|
+
}
|
|
3142
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: SelectOverlayOriginDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3143
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.9", type: SelectOverlayOriginDirective, selector: "[aupSelectOverlayOrigin]", providers: [{ provide: MAT_FORM_FIELD, useExisting: forwardRef(() => SelectOverlayOriginDirective) }], ngImport: i0 });
|
|
3144
|
+
}
|
|
3145
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: SelectOverlayOriginDirective, decorators: [{
|
|
3146
|
+
type: Directive,
|
|
3147
|
+
args: [{
|
|
3148
|
+
selector: '[aupSelectOverlayOrigin]',
|
|
3149
|
+
providers: [{ provide: MAT_FORM_FIELD, useExisting: forwardRef(() => SelectOverlayOriginDirective) }],
|
|
3150
|
+
}]
|
|
3151
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
|
|
3152
|
+
|
|
3003
3153
|
/**
|
|
3004
3154
|
* Using templates:
|
|
3005
3155
|
* <aup-select-input [value$]="myModel" [options]="myOptions">
|
|
@@ -3026,6 +3176,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
3026
3176
|
* remote. Bind {@link searchText$} to observe or pre-seed the text (it is cleared whenever the panel
|
|
3027
3177
|
* closes). The nil option is never filtered - it is a clear-the-selection affordance, not a data
|
|
3028
3178
|
* option.
|
|
3179
|
+
*
|
|
3180
|
+
* Appearance:
|
|
3181
|
+
* <aup-select-input appearance="button" placeholder="All heros" [allowNil]="true" ...></aup-select-input>
|
|
3182
|
+
* `field` (the default) is a mat-form-field: label, hint, error, validation icon, notched outline.
|
|
3183
|
+
* `button` drops the form field for a compact bordered trigger suited to a toolbar or filter bar - a
|
|
3184
|
+
* selector rather than a form field, so label, hint and error do not exist there (binding label or
|
|
3185
|
+
* hint warns in development mode) and the panel sizes to its longest option. The option list, search
|
|
3186
|
+
* box, nil row, templates and footer slot are the same in both. See {@link appearance}.
|
|
3029
3187
|
*/
|
|
3030
3188
|
class SelectInputComponent extends AbstractValueInputComponent {
|
|
3031
3189
|
/** Keys the search box hands back to MatSelect's key manager instead of consuming itself. */
|
|
@@ -3043,6 +3201,21 @@ class SelectInputComponent extends AbstractValueInputComponent {
|
|
|
3043
3201
|
#allowNil_accessor_storage;
|
|
3044
3202
|
get allowNil() { return this.#allowNil_accessor_storage; }
|
|
3045
3203
|
set allowNil(value) { this.#allowNil_accessor_storage = value; }
|
|
3204
|
+
/** `field` wraps the select in a mat-form-field; `button` renders a compact bordered trigger with no form field. */
|
|
3205
|
+
appearance = 'field';
|
|
3206
|
+
get buttonAppearance() {
|
|
3207
|
+
return this.appearance === 'button';
|
|
3208
|
+
}
|
|
3209
|
+
matSelectConfig = inject(MAT_SELECT_CONFIG, { optional: true });
|
|
3210
|
+
/**
|
|
3211
|
+
* What the field appearance binds to mat-select's panelWidth: whatever the app configured, else
|
|
3212
|
+
* Material's own default - so no existing consumer moves. (Binding undefined would NOT be a
|
|
3213
|
+
* no-op: mat-select reads it as "size to content".) The button appearance binds null directly.
|
|
3214
|
+
*/
|
|
3215
|
+
get fieldPanelWidth() {
|
|
3216
|
+
const configured = this.matSelectConfig?.panelWidth;
|
|
3217
|
+
return configured === undefined ? 'auto' : configured;
|
|
3218
|
+
}
|
|
3046
3219
|
selectedOptionTemplateRef;
|
|
3047
3220
|
optionTemplateRef;
|
|
3048
3221
|
nilOptionTemplateRef;
|
|
@@ -3147,6 +3320,12 @@ class SelectInputComponent extends AbstractValueInputComponent {
|
|
|
3147
3320
|
+ 'filterFactory is set, so the search only sees optionLabelFormat and text the template renders '
|
|
3148
3321
|
+ 'may be unsearchable. Bind optionSearchText to return every row the template shows.');
|
|
3149
3322
|
}
|
|
3323
|
+
// The explicit inputs, not the label/hint getters: those fall through to the [i18n] FormField, and a
|
|
3324
|
+
// button-appearance select given [i18n] for its placeholder carries a label it never asked to show.
|
|
3325
|
+
if (isDevMode() && this.buttonAppearance && (this._label || this._hint)) {
|
|
3326
|
+
console.warn('aup-select-input: appearance="button" has no form field, so label and hint are not '
|
|
3327
|
+
+ 'rendered. Drop them, or use appearance="field".');
|
|
3328
|
+
}
|
|
3150
3329
|
}
|
|
3151
3330
|
/**
|
|
3152
3331
|
* True when the option is only in {@link panelOptions$} to keep MatSelect's selection model
|
|
@@ -3291,7 +3470,7 @@ class SelectInputComponent extends AbstractValueInputComponent {
|
|
|
3291
3470
|
});
|
|
3292
3471
|
}
|
|
3293
3472
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: SelectInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3294
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: SelectInputComponent, selector: "aup-select-input", inputs: { options$: "options$", options: "options", optionLabel: "optionLabel", allowNil$: "allowNil$", allowNil: "allowNil", optionLabelFormat: "optionLabelFormat", searchable: "searchable", searchPlaceholder: "searchPlaceholder", noResultsText: "noResultsText", searchText$: "searchText$", optionSearchText: "optionSearchText", filterFactory: "filterFactory" }, queries: [{ propertyName: "selectedOptionTemplateRef", first: true, predicate: ["selectedOptionTemplate"], descendants: true }, { propertyName: "optionTemplateRef", first: true, predicate: ["optionTemplate"], descendants: true }, { propertyName: "nilOptionTemplateRef", first: true, predicate: ["nilOptionTemplate"], descendants: true }], viewQueries: [{ propertyName: "searchInputRef", first: true, predicate: ["searchInput"], descendants: true }, { propertyName: "matSelect", first: true, predicate: MatSelect, descendants: true }], usesInheritance: true, ngImport: i0, template: "<mat-form-field [floatLabel]=\"floatLabel\" subscriptSizing=\"dynamic\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <mat-select placeholder=\"{{placeholder}}\"\n [ngModel]=\"componentValue$.value\"\n (ngModelChange)=\"select($event)\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n\n <!--\n TODO: dave has a scenario where the selected item isn't rendering that I can't reproduce so we explicity render it..\n It typically happens because the ngModel value isn't the one contained in the list - this means our source model\n identifyOf function has changed and our id$/lookup$/componentValue$ are out of sync.\n We get around this for now by explicity rendering the component value.\n Please Note: I haven't been able to reproduce this\n -->\n <mat-select-trigger *ngIf=\"!selectedOptionTemplateRef\">\n {{optionLabelFormat(componentValue$.value)}}\n </mat-select-trigger>\n\n <mat-select-trigger *ngIf=\"selectedOptionTemplateRef\">\n <ng-container [ngTemplateOutlet]=\"selectedOptionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: componentValue$.value}\"></ng-container>\n </mat-select-trigger>\n\n <div class=\"aup-select-search\" *ngIf=\"searchable\"\n (keydown)=\"onSearchKeydown($event)\"\n (click)=\"$event.stopPropagation()\">\n <aup-icon class=\"aup-select-search__icon\" icon=\"mat:search\"></aup-icon>\n <!--\n Deliberately a bare input: matInput outside a mat-form-field is a MatFormFieldControl with no\n host, and aup-search-input drags in a whole form field (label slot, subscript row,\n .aup-input-component density) that has no business inside a dropdown panel.\n [value]/(input) rather than ngModel avoids a missing-name error inside a host <form>.\n -->\n <input #searchInput type=\"text\" class=\"aup-select-search__input\"\n data-cy=\"select-search\"\n autocomplete=\"off\"\n [placeholder]=\"searchPlaceholder\"\n [attr.aria-label]=\"searchPlaceholder\"\n [value]=\"searchText$.value || ''\"\n (input)=\"onSearchInput($event)\">\n <button type=\"button\" class=\"aup-select-search__clear\" tabindex=\"-1\"\n *ngIf=\"searchText$.value\" data-cy=\"select-search-clear\"\n (click)=\"clearSearch()\">\n <aup-icon icon=\"mat:close\"></aup-icon>\n </button>\n </div>\n\n <!--\n Deliberately outside the filter: the nil option is a clear-the-selection affordance, not one of\n the data options, so it stays available while searching (and keeps MatSelect._canOpen() happy).\n -->\n <mat-option *ngIf=\"allowNil$.value\">\n <ng-container *ngIf=\"!nilOptionTemplateRef\">{{placeholder}}</ng-container>\n <ng-container *ngIf=\"nilOptionTemplateRef\" [ngTemplateOutlet]=\"nilOptionTemplateRef\"></ng-container>\n </mat-option>\n <mat-option *ngFor=\"let option of panelOptions$.value; trackBy: trackByIdentity;let i = index\"\n [value]=\"option\"\n [disabled]=\"isHiddenOption(option)\"\n [class.aup-select-option--filtered]=\"isHiddenOption(option)\">\n <ng-container *ngIf=\"!optionTemplateRef\">{{optionLabelFormat(option)}}</ng-container>\n <ng-container *ngIf=\"optionTemplateRef\"\n [ngTemplateOutlet]=\"optionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: option, index: i }\"\n >\n </ng-container>\n </mat-option>\n <!--\n A plain div, NOT a mat-option: a mat-option here would be selectable, and would keep\n MatSelect._canOpen() satisfied with a row that means \"nothing\".\n -->\n <div class=\"aup-select-search__no-results\" data-cy=\"select-no-results\"\n *ngIf=\"searchable && noMatches$.value\">{{noResultsText}}</div>\n <ng-content select=\"[select-option-footer]\"></ng-content>\n </mat-select>\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<div class=\"width-strut\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <div class=\"item\" *ngFor=\"let item of cookedOptions$.value\">\n <ng-container *ngIf=\"!optionTemplateRef\">{{optionLabelFormat(item)}}</ng-container>\n <ng-container *ngIf=\"optionTemplateRef\"\n [ngTemplateOutlet]=\"optionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: item, index: 0 }\"\n >\n </ng-container>\n </div>\n</div>\n", styles: [":host{display:inline-block}mat-form-field{width:100%}.width-strut{display:block;height:0;max-height:0;width:auto;visibility:hidden;overflow:hidden;padding-right:35px}.width-strut mat-label{font-size:75%}.width-strut>.item{font-size:16px;padding-left:0}.aup-select-search{position:sticky;top:-8px;z-index:1;display:flex;align-items:center;gap:4px;margin:-8px 0 4px;padding:8px 12px;background:var(--mat-select-panel-background-color, #fff);border-bottom:1px solid rgba(0,0,0,.12)}.aup-select-search .aup-select-search__input{flex:1 1 auto;min-width:0;border:none;outline:none;background:transparent;font:inherit;color:inherit}.aup-select-search .aup-select-search__clear{flex:0 0 auto;display:inline-flex;padding:0;border:none;background:transparent;cursor:pointer;color:inherit}.aup-select-search__no-results{padding:8px 16px;opacity:.6;font-style:italic}mat-option.aup-select-option--filtered{display:none}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { 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.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$5.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { 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: "component", type: i4$1.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex", "panelWidth", "hideSingleSelectionIndicator"], exportAs: ["matSelect"] }, { kind: "directive", type: i4$1.MatSelectTrigger, selector: "mat-select-trigger" }, { kind: "component", type: i5.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "directive", type: AupTooltipDirective, selector: "[aupTooltip]", inputs: ["aupTooltip", "aupTooltipPosition", "aupTooltipPositionAtOrigin", "aupTooltipDisabled", "aupTooltipShowDelay", "aupTooltipHideDelay", "aupTooltipTouchGestures", "aupTooltipClass"], exportAs: ["aupTooltip"] }, { kind: "directive", type: FocusBindingDirective, selector: "[pectinFocusBinding]", inputs: ["pectinFocusBinding", "focusBindingTarget"] }, { kind: "component", type: IconComponent, selector: "aup-icon", inputs: ["icon"] }] });
|
|
3473
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: SelectInputComponent, selector: "aup-select-input", inputs: { options$: "options$", options: "options", optionLabel: "optionLabel", allowNil$: "allowNil$", allowNil: "allowNil", appearance: "appearance", optionLabelFormat: "optionLabelFormat", searchable: "searchable", searchPlaceholder: "searchPlaceholder", noResultsText: "noResultsText", searchText$: "searchText$", optionSearchText: "optionSearchText", filterFactory: "filterFactory" }, host: { properties: { "class.appearance-button": "this.buttonAppearance" } }, queries: [{ propertyName: "selectedOptionTemplateRef", first: true, predicate: ["selectedOptionTemplate"], descendants: true }, { propertyName: "optionTemplateRef", first: true, predicate: ["optionTemplate"], descendants: true }, { propertyName: "nilOptionTemplateRef", first: true, predicate: ["nilOptionTemplate"], descendants: true }], viewQueries: [{ propertyName: "searchInputRef", first: true, predicate: ["searchInput"], descendants: true }, { propertyName: "matSelect", first: true, predicate: MatSelect, descendants: true }], usesInheritance: true, ngImport: i0, template: "<!--\nTwo shells, one select. The parts Angular resolves by DECLARATION - mat-select's content queries\nfor <mat-select-trigger> and <mat-option>, mat-form-field's for its control, and the element\ninjector mat-select reads MAT_FORM_FIELD from - do not follow an <ng-template> to where\nngTemplateOutlet inserts it, so the triggers, the nil row and the option list are declared in place\nin each shell. Only the pieces nothing queries are shared: the search box, the no-results row and\nthe footer projection. Keep the two <mat-select> blocks in step; the spec asserts both render the\nsame options and honour the same templates.\n-->\n\n<ng-template #searchBox>\n <div class=\"aup-select-search\" *ngIf=\"searchable\"\n (keydown)=\"onSearchKeydown($event)\"\n (click)=\"$event.stopPropagation()\">\n <aup-icon class=\"aup-select-search__icon\" icon=\"mat:search\"></aup-icon>\n <!--\n Deliberately a bare input: matInput outside a mat-form-field is a MatFormFieldControl with no\n host, and aup-search-input drags in a whole form field (label slot, subscript row,\n .aup-input-component density) that has no business inside a dropdown panel.\n [value]/(input) rather than ngModel avoids a missing-name error inside a host <form>.\n -->\n <input #searchInput type=\"text\" class=\"aup-select-search__input\"\n data-cy=\"select-search\"\n autocomplete=\"off\"\n [placeholder]=\"searchPlaceholder\"\n [attr.aria-label]=\"searchPlaceholder\"\n [value]=\"searchText$.value || ''\"\n (input)=\"onSearchInput($event)\">\n <button type=\"button\" class=\"aup-select-search__clear\" tabindex=\"-1\"\n *ngIf=\"searchText$.value\" data-cy=\"select-search-clear\"\n (click)=\"clearSearch()\">\n <aup-icon icon=\"mat:close\"></aup-icon>\n </button>\n </div>\n</ng-template>\n\n<ng-template #noResults>\n <!--\n A plain div, NOT a mat-option: a mat-option here would be selectable, and would keep\n MatSelect._canOpen() satisfied with a row that means \"nothing\".\n -->\n <div class=\"aup-select-search__no-results\" data-cy=\"select-no-results\"\n *ngIf=\"searchable && noMatches$.value\">{{noResultsText}}</div>\n</ng-template>\n\n<!-- Declared once so the projection has one home; stamped into whichever shell renders. -->\n<ng-template #footer>\n <ng-content select=\"[select-option-footer]\"></ng-content>\n</ng-template>\n\n<ng-container *ngIf=\"!buttonAppearance; else buttonShell\">\n <mat-form-field [floatLabel]=\"floatLabel\" subscriptSizing=\"dynamic\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <mat-select placeholder=\"{{placeholder}}\"\n [ngModel]=\"componentValue$.value\"\n (ngModelChange)=\"select($event)\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n [panelWidth]=\"fieldPanelWidth\"\n >\n <!--\n TODO: dave has a scenario where the selected item isn't rendering that I can't reproduce so we explicity render it..\n It typically happens because the ngModel value isn't the one contained in the list - this means our source model\n identifyOf function has changed and our id$/lookup$/componentValue$ are out of sync.\n We get around this for now by explicity rendering the component value.\n Please Note: I haven't been able to reproduce this\n -->\n <mat-select-trigger *ngIf=\"!selectedOptionTemplateRef\">\n {{optionLabelFormat(componentValue$.value)}}\n </mat-select-trigger>\n <mat-select-trigger *ngIf=\"selectedOptionTemplateRef\">\n <ng-container [ngTemplateOutlet]=\"selectedOptionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: componentValue$.value}\"></ng-container>\n </mat-select-trigger>\n\n <ng-container [ngTemplateOutlet]=\"searchBox\"></ng-container>\n\n <!--\n Deliberately outside the filter: the nil option is a clear-the-selection affordance, not one of\n the data options, so it stays available while searching (and keeps MatSelect._canOpen() happy).\n -->\n <mat-option *ngIf=\"allowNil$.value\">\n <ng-container *ngIf=\"!nilOptionTemplateRef\">{{placeholder}}</ng-container>\n <ng-container *ngIf=\"nilOptionTemplateRef\" [ngTemplateOutlet]=\"nilOptionTemplateRef\"></ng-container>\n </mat-option>\n <mat-option *ngFor=\"let option of panelOptions$.value; trackBy: trackByIdentity;let i = index\"\n [value]=\"option\"\n [disabled]=\"isHiddenOption(option)\"\n [class.aup-select-option--filtered]=\"isHiddenOption(option)\">\n <ng-container *ngIf=\"!optionTemplateRef\">{{optionLabelFormat(option)}}</ng-container>\n <ng-container *ngIf=\"optionTemplateRef\"\n [ngTemplateOutlet]=\"optionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: option, index: i }\"></ng-container>\n </mat-option>\n <ng-container [ngTemplateOutlet]=\"noResults\"></ng-container>\n <ng-container [ngTemplateOutlet]=\"footer\"></ng-container>\n </mat-select>\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 <div class=\"width-strut\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <div class=\"item\" *ngFor=\"let item of cookedOptions$.value\">\n <ng-container *ngIf=\"!optionTemplateRef\">{{optionLabelFormat(item)}}</ng-container>\n <ng-container *ngIf=\"optionTemplateRef\"\n [ngTemplateOutlet]=\"optionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: item, index: 0 }\"></ng-container>\n </div>\n </div>\n</ng-container>\n\n<ng-template #buttonShell>\n <!--\n The box is a WRAPPER around the select, not the select's own element, and it provides\n MAT_FORM_FIELD: mat-select anchors its panel to the form field's origin, and without one falls\n back to its inner trigger div - which sits inside the box's padding, so the panel would open a\n padding's width in from the box's edge. See SelectOverlayOriginDirective. No width strut: a\n button that stretches to its longest option is not a button; the panel, sized to content by the\n null panelWidth, carries the long text instead.\n -->\n <span class=\"aup-select-button\" aupSelectOverlayOrigin data-cy=\"select-button\">\n <mat-select placeholder=\"{{placeholder}}\"\n [ngModel]=\"componentValue$.value\"\n (ngModelChange)=\"select($event)\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n [panelWidth]=\"null\"\n panelClass=\"aup-select-button-panel\"\n >\n <mat-select-trigger *ngIf=\"!selectedOptionTemplateRef\">\n {{optionLabelFormat(componentValue$.value)}}\n </mat-select-trigger>\n <mat-select-trigger *ngIf=\"selectedOptionTemplateRef\">\n <ng-container [ngTemplateOutlet]=\"selectedOptionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: componentValue$.value}\"></ng-container>\n </mat-select-trigger>\n\n <ng-container [ngTemplateOutlet]=\"searchBox\"></ng-container>\n\n <mat-option *ngIf=\"allowNil$.value\">\n <ng-container *ngIf=\"!nilOptionTemplateRef\">{{placeholder}}</ng-container>\n <ng-container *ngIf=\"nilOptionTemplateRef\" [ngTemplateOutlet]=\"nilOptionTemplateRef\"></ng-container>\n </mat-option>\n <mat-option *ngFor=\"let option of panelOptions$.value; trackBy: trackByIdentity;let i = index\"\n [value]=\"option\"\n [disabled]=\"isHiddenOption(option)\"\n [class.aup-select-option--filtered]=\"isHiddenOption(option)\">\n <ng-container *ngIf=\"!optionTemplateRef\">{{optionLabelFormat(option)}}</ng-container>\n <ng-container *ngIf=\"optionTemplateRef\"\n [ngTemplateOutlet]=\"optionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: option, index: i }\"></ng-container>\n </mat-option>\n <ng-container [ngTemplateOutlet]=\"noResults\"></ng-container>\n <ng-container [ngTemplateOutlet]=\"footer\"></ng-container>\n </mat-select>\n </span>\n</ng-template>\n", styles: [":host{display:inline-block}mat-form-field{width:100%}.width-strut{display:block;height:0;max-height:0;width:auto;visibility:hidden;overflow:hidden;padding-right:35px}.width-strut mat-label{font-size:75%}.width-strut>.item{font-size:16px;padding-left:0}.aup-select-search{position:sticky;top:-8px;z-index:1;display:flex;align-items:center;gap:4px;margin:-8px 0 4px;padding:8px 12px;background:var(--mat-select-panel-background-color, #fff);border-bottom:1px solid rgba(0,0,0,.12)}.aup-select-search .aup-select-search__input{flex:1 1 auto;min-width:0;border:none;outline:none;background:transparent;font:inherit;color:inherit}.aup-select-search .aup-select-search__clear{flex:0 0 auto;display:inline-flex;padding:0;border:none;background:transparent;cursor:pointer;color:inherit}.aup-select-search__no-results{padding:8px 16px;opacity:.6;font-style:italic}mat-option.aup-select-option--filtered{display:none}:host(.appearance-button){display:inline-flex}.aup-select-button{display:inline-flex;align-items:center;align-self:flex-start;box-sizing:border-box;min-width:10rem;height:36px;padding:0 12px;border:1px solid rgba(0,0,0,.24);border-radius:4px;background:var(--mat-select-panel-background-color, #fff);cursor:pointer}.aup-select-button:has(mat-select:focus-visible){outline:2px solid var(--mdc-theme-primary, #3f51b5);outline-offset:2px}.aup-select-button:has(.mat-mdc-select-disabled){opacity:.5;cursor:default}.aup-select-button>mat-select{width:100%}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { 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.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$5.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { 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: "component", type: i4$1.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex", "panelWidth", "hideSingleSelectionIndicator"], exportAs: ["matSelect"] }, { kind: "directive", type: i4$1.MatSelectTrigger, selector: "mat-select-trigger" }, { kind: "component", type: i5.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "directive", type: AupTooltipDirective, selector: "[aupTooltip]", inputs: ["aupTooltip", "aupTooltipPosition", "aupTooltipPositionAtOrigin", "aupTooltipDisabled", "aupTooltipShowDelay", "aupTooltipHideDelay", "aupTooltipTouchGestures", "aupTooltipClass"], exportAs: ["aupTooltip"] }, { kind: "directive", type: FocusBindingDirective, selector: "[pectinFocusBinding]", inputs: ["pectinFocusBinding", "focusBindingTarget"] }, { kind: "directive", type: SelectOverlayOriginDirective, selector: "[aupSelectOverlayOrigin]" }, { kind: "component", type: IconComponent, selector: "aup-icon", inputs: ["icon"] }] });
|
|
3295
3474
|
}
|
|
3296
3475
|
__decorate([
|
|
3297
3476
|
Proxify(),
|
|
@@ -3315,7 +3494,7 @@ __decorate([
|
|
|
3315
3494
|
], SelectInputComponent.prototype, "searchText$", null);
|
|
3316
3495
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: SelectInputComponent, decorators: [{
|
|
3317
3496
|
type: Component,
|
|
3318
|
-
args: [{ selector: 'aup-select-input', template: "<mat-form-field [floatLabel]=\"floatLabel\" subscriptSizing=\"dynamic\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <mat-select placeholder=\"{{placeholder}}\"\n [ngModel]=\"componentValue$.value\"\n (ngModelChange)=\"select($event)\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n\n <!--\n TODO: dave has a scenario where the selected item isn't rendering that I can't reproduce so we explicity render it..\n It typically happens because the ngModel value isn't the one contained in the list - this means our source model\n identifyOf function has changed and our id$/lookup$/componentValue$ are out of sync.\n We get around this for now by explicity rendering the component value.\n Please Note: I haven't been able to reproduce this\n -->\n <mat-select-trigger *ngIf=\"!selectedOptionTemplateRef\">\n {{optionLabelFormat(componentValue$.value)}}\n </mat-select-trigger>\n\n <mat-select-trigger *ngIf=\"selectedOptionTemplateRef\">\n <ng-container [ngTemplateOutlet]=\"selectedOptionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: componentValue$.value}\"></ng-container>\n </mat-select-trigger>\n\n <div class=\"aup-select-search\" *ngIf=\"searchable\"\n (keydown)=\"onSearchKeydown($event)\"\n (click)=\"$event.stopPropagation()\">\n <aup-icon class=\"aup-select-search__icon\" icon=\"mat:search\"></aup-icon>\n <!--\n Deliberately a bare input: matInput outside a mat-form-field is a MatFormFieldControl with no\n host, and aup-search-input drags in a whole form field (label slot, subscript row,\n .aup-input-component density) that has no business inside a dropdown panel.\n [value]/(input) rather than ngModel avoids a missing-name error inside a host <form>.\n -->\n <input #searchInput type=\"text\" class=\"aup-select-search__input\"\n data-cy=\"select-search\"\n autocomplete=\"off\"\n [placeholder]=\"searchPlaceholder\"\n [attr.aria-label]=\"searchPlaceholder\"\n [value]=\"searchText$.value || ''\"\n (input)=\"onSearchInput($event)\">\n <button type=\"button\" class=\"aup-select-search__clear\" tabindex=\"-1\"\n *ngIf=\"searchText$.value\" data-cy=\"select-search-clear\"\n (click)=\"clearSearch()\">\n <aup-icon icon=\"mat:close\"></aup-icon>\n </button>\n </div>\n\n <!--\n Deliberately outside the filter: the nil option is a clear-the-selection affordance, not one of\n the data options, so it stays available while searching (and keeps MatSelect._canOpen() happy).\n -->\n <mat-option *ngIf=\"allowNil$.value\">\n <ng-container *ngIf=\"!nilOptionTemplateRef\">{{placeholder}}</ng-container>\n <ng-container *ngIf=\"nilOptionTemplateRef\" [ngTemplateOutlet]=\"nilOptionTemplateRef\"></ng-container>\n </mat-option>\n <mat-option *ngFor=\"let option of panelOptions$.value; trackBy: trackByIdentity;let i = index\"\n [value]=\"option\"\n [disabled]=\"isHiddenOption(option)\"\n [class.aup-select-option--filtered]=\"isHiddenOption(option)\">\n <ng-container *ngIf=\"!optionTemplateRef\">{{optionLabelFormat(option)}}</ng-container>\n <ng-container *ngIf=\"optionTemplateRef\"\n [ngTemplateOutlet]=\"optionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: option, index: i }\"\n >\n </ng-container>\n </mat-option>\n <!--\n A plain div, NOT a mat-option: a mat-option here would be selectable, and would keep\n MatSelect._canOpen() satisfied with a row that means \"nothing\".\n -->\n <div class=\"aup-select-search__no-results\" data-cy=\"select-no-results\"\n *ngIf=\"searchable && noMatches$.value\">{{noResultsText}}</div>\n <ng-content select=\"[select-option-footer]\"></ng-content>\n </mat-select>\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<div class=\"width-strut\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <div class=\"item\" *ngFor=\"let item of cookedOptions$.value\">\n <ng-container *ngIf=\"!optionTemplateRef\">{{optionLabelFormat(item)}}</ng-container>\n <ng-container *ngIf=\"optionTemplateRef\"\n [ngTemplateOutlet]=\"optionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: item, index: 0 }\"\n >\n </ng-container>\n </div>\n</div>\n", styles: [":host{display:inline-block}mat-form-field{width:100%}.width-strut{display:block;height:0;max-height:0;width:auto;visibility:hidden;overflow:hidden;padding-right:35px}.width-strut mat-label{font-size:75%}.width-strut>.item{font-size:16px;padding-left:0}.aup-select-search{position:sticky;top:-8px;z-index:1;display:flex;align-items:center;gap:4px;margin:-8px 0 4px;padding:8px 12px;background:var(--mat-select-panel-background-color, #fff);border-bottom:1px solid rgba(0,0,0,.12)}.aup-select-search .aup-select-search__input{flex:1 1 auto;min-width:0;border:none;outline:none;background:transparent;font:inherit;color:inherit}.aup-select-search .aup-select-search__clear{flex:0 0 auto;display:inline-flex;padding:0;border:none;background:transparent;cursor:pointer;color:inherit}.aup-select-search__no-results{padding:8px 16px;opacity:.6;font-style:italic}mat-option.aup-select-option--filtered{display:none}\n"] }]
|
|
3497
|
+
args: [{ selector: 'aup-select-input', template: "<!--\nTwo shells, one select. The parts Angular resolves by DECLARATION - mat-select's content queries\nfor <mat-select-trigger> and <mat-option>, mat-form-field's for its control, and the element\ninjector mat-select reads MAT_FORM_FIELD from - do not follow an <ng-template> to where\nngTemplateOutlet inserts it, so the triggers, the nil row and the option list are declared in place\nin each shell. Only the pieces nothing queries are shared: the search box, the no-results row and\nthe footer projection. Keep the two <mat-select> blocks in step; the spec asserts both render the\nsame options and honour the same templates.\n-->\n\n<ng-template #searchBox>\n <div class=\"aup-select-search\" *ngIf=\"searchable\"\n (keydown)=\"onSearchKeydown($event)\"\n (click)=\"$event.stopPropagation()\">\n <aup-icon class=\"aup-select-search__icon\" icon=\"mat:search\"></aup-icon>\n <!--\n Deliberately a bare input: matInput outside a mat-form-field is a MatFormFieldControl with no\n host, and aup-search-input drags in a whole form field (label slot, subscript row,\n .aup-input-component density) that has no business inside a dropdown panel.\n [value]/(input) rather than ngModel avoids a missing-name error inside a host <form>.\n -->\n <input #searchInput type=\"text\" class=\"aup-select-search__input\"\n data-cy=\"select-search\"\n autocomplete=\"off\"\n [placeholder]=\"searchPlaceholder\"\n [attr.aria-label]=\"searchPlaceholder\"\n [value]=\"searchText$.value || ''\"\n (input)=\"onSearchInput($event)\">\n <button type=\"button\" class=\"aup-select-search__clear\" tabindex=\"-1\"\n *ngIf=\"searchText$.value\" data-cy=\"select-search-clear\"\n (click)=\"clearSearch()\">\n <aup-icon icon=\"mat:close\"></aup-icon>\n </button>\n </div>\n</ng-template>\n\n<ng-template #noResults>\n <!--\n A plain div, NOT a mat-option: a mat-option here would be selectable, and would keep\n MatSelect._canOpen() satisfied with a row that means \"nothing\".\n -->\n <div class=\"aup-select-search__no-results\" data-cy=\"select-no-results\"\n *ngIf=\"searchable && noMatches$.value\">{{noResultsText}}</div>\n</ng-template>\n\n<!-- Declared once so the projection has one home; stamped into whichever shell renders. -->\n<ng-template #footer>\n <ng-content select=\"[select-option-footer]\"></ng-content>\n</ng-template>\n\n<ng-container *ngIf=\"!buttonAppearance; else buttonShell\">\n <mat-form-field [floatLabel]=\"floatLabel\" subscriptSizing=\"dynamic\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <mat-select placeholder=\"{{placeholder}}\"\n [ngModel]=\"componentValue$.value\"\n (ngModelChange)=\"select($event)\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n [panelWidth]=\"fieldPanelWidth\"\n >\n <!--\n TODO: dave has a scenario where the selected item isn't rendering that I can't reproduce so we explicity render it..\n It typically happens because the ngModel value isn't the one contained in the list - this means our source model\n identifyOf function has changed and our id$/lookup$/componentValue$ are out of sync.\n We get around this for now by explicity rendering the component value.\n Please Note: I haven't been able to reproduce this\n -->\n <mat-select-trigger *ngIf=\"!selectedOptionTemplateRef\">\n {{optionLabelFormat(componentValue$.value)}}\n </mat-select-trigger>\n <mat-select-trigger *ngIf=\"selectedOptionTemplateRef\">\n <ng-container [ngTemplateOutlet]=\"selectedOptionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: componentValue$.value}\"></ng-container>\n </mat-select-trigger>\n\n <ng-container [ngTemplateOutlet]=\"searchBox\"></ng-container>\n\n <!--\n Deliberately outside the filter: the nil option is a clear-the-selection affordance, not one of\n the data options, so it stays available while searching (and keeps MatSelect._canOpen() happy).\n -->\n <mat-option *ngIf=\"allowNil$.value\">\n <ng-container *ngIf=\"!nilOptionTemplateRef\">{{placeholder}}</ng-container>\n <ng-container *ngIf=\"nilOptionTemplateRef\" [ngTemplateOutlet]=\"nilOptionTemplateRef\"></ng-container>\n </mat-option>\n <mat-option *ngFor=\"let option of panelOptions$.value; trackBy: trackByIdentity;let i = index\"\n [value]=\"option\"\n [disabled]=\"isHiddenOption(option)\"\n [class.aup-select-option--filtered]=\"isHiddenOption(option)\">\n <ng-container *ngIf=\"!optionTemplateRef\">{{optionLabelFormat(option)}}</ng-container>\n <ng-container *ngIf=\"optionTemplateRef\"\n [ngTemplateOutlet]=\"optionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: option, index: i }\"></ng-container>\n </mat-option>\n <ng-container [ngTemplateOutlet]=\"noResults\"></ng-container>\n <ng-container [ngTemplateOutlet]=\"footer\"></ng-container>\n </mat-select>\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 <div class=\"width-strut\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <div class=\"item\" *ngFor=\"let item of cookedOptions$.value\">\n <ng-container *ngIf=\"!optionTemplateRef\">{{optionLabelFormat(item)}}</ng-container>\n <ng-container *ngIf=\"optionTemplateRef\"\n [ngTemplateOutlet]=\"optionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: item, index: 0 }\"></ng-container>\n </div>\n </div>\n</ng-container>\n\n<ng-template #buttonShell>\n <!--\n The box is a WRAPPER around the select, not the select's own element, and it provides\n MAT_FORM_FIELD: mat-select anchors its panel to the form field's origin, and without one falls\n back to its inner trigger div - which sits inside the box's padding, so the panel would open a\n padding's width in from the box's edge. See SelectOverlayOriginDirective. No width strut: a\n button that stretches to its longest option is not a button; the panel, sized to content by the\n null panelWidth, carries the long text instead.\n -->\n <span class=\"aup-select-button\" aupSelectOverlayOrigin data-cy=\"select-button\">\n <mat-select placeholder=\"{{placeholder}}\"\n [ngModel]=\"componentValue$.value\"\n (ngModelChange)=\"select($event)\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n [panelWidth]=\"null\"\n panelClass=\"aup-select-button-panel\"\n >\n <mat-select-trigger *ngIf=\"!selectedOptionTemplateRef\">\n {{optionLabelFormat(componentValue$.value)}}\n </mat-select-trigger>\n <mat-select-trigger *ngIf=\"selectedOptionTemplateRef\">\n <ng-container [ngTemplateOutlet]=\"selectedOptionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: componentValue$.value}\"></ng-container>\n </mat-select-trigger>\n\n <ng-container [ngTemplateOutlet]=\"searchBox\"></ng-container>\n\n <mat-option *ngIf=\"allowNil$.value\">\n <ng-container *ngIf=\"!nilOptionTemplateRef\">{{placeholder}}</ng-container>\n <ng-container *ngIf=\"nilOptionTemplateRef\" [ngTemplateOutlet]=\"nilOptionTemplateRef\"></ng-container>\n </mat-option>\n <mat-option *ngFor=\"let option of panelOptions$.value; trackBy: trackByIdentity;let i = index\"\n [value]=\"option\"\n [disabled]=\"isHiddenOption(option)\"\n [class.aup-select-option--filtered]=\"isHiddenOption(option)\">\n <ng-container *ngIf=\"!optionTemplateRef\">{{optionLabelFormat(option)}}</ng-container>\n <ng-container *ngIf=\"optionTemplateRef\"\n [ngTemplateOutlet]=\"optionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: option, index: i }\"></ng-container>\n </mat-option>\n <ng-container [ngTemplateOutlet]=\"noResults\"></ng-container>\n <ng-container [ngTemplateOutlet]=\"footer\"></ng-container>\n </mat-select>\n </span>\n</ng-template>\n", styles: [":host{display:inline-block}mat-form-field{width:100%}.width-strut{display:block;height:0;max-height:0;width:auto;visibility:hidden;overflow:hidden;padding-right:35px}.width-strut mat-label{font-size:75%}.width-strut>.item{font-size:16px;padding-left:0}.aup-select-search{position:sticky;top:-8px;z-index:1;display:flex;align-items:center;gap:4px;margin:-8px 0 4px;padding:8px 12px;background:var(--mat-select-panel-background-color, #fff);border-bottom:1px solid rgba(0,0,0,.12)}.aup-select-search .aup-select-search__input{flex:1 1 auto;min-width:0;border:none;outline:none;background:transparent;font:inherit;color:inherit}.aup-select-search .aup-select-search__clear{flex:0 0 auto;display:inline-flex;padding:0;border:none;background:transparent;cursor:pointer;color:inherit}.aup-select-search__no-results{padding:8px 16px;opacity:.6;font-style:italic}mat-option.aup-select-option--filtered{display:none}:host(.appearance-button){display:inline-flex}.aup-select-button{display:inline-flex;align-items:center;align-self:flex-start;box-sizing:border-box;min-width:10rem;height:36px;padding:0 12px;border:1px solid rgba(0,0,0,.24);border-radius:4px;background:var(--mat-select-panel-background-color, #fff);cursor:pointer}.aup-select-button:has(mat-select:focus-visible){outline:2px solid var(--mdc-theme-primary, #3f51b5);outline-offset:2px}.aup-select-button:has(.mat-mdc-select-disabled){opacity:.5;cursor:default}.aup-select-button>mat-select{width:100%}\n"] }]
|
|
3319
3498
|
}], ctorParameters: function () { return []; }, propDecorators: { options$: [{
|
|
3320
3499
|
type: Input
|
|
3321
3500
|
}], options: [{
|
|
@@ -3326,6 +3505,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
3326
3505
|
type: Input
|
|
3327
3506
|
}], allowNil: [{
|
|
3328
3507
|
type: Input
|
|
3508
|
+
}], appearance: [{
|
|
3509
|
+
type: Input
|
|
3510
|
+
}], buttonAppearance: [{
|
|
3511
|
+
type: HostBinding,
|
|
3512
|
+
args: ['class.appearance-button']
|
|
3329
3513
|
}], selectedOptionTemplateRef: [{
|
|
3330
3514
|
type: ContentChild,
|
|
3331
3515
|
args: ['selectedOptionTemplate']
|
|
@@ -8157,6 +8341,7 @@ class ComponentsModule {
|
|
|
8157
8341
|
TextInputComponent,
|
|
8158
8342
|
PasswordInputComponent,
|
|
8159
8343
|
SelectInputComponent,
|
|
8344
|
+
SelectOverlayOriginDirective,
|
|
8160
8345
|
MultipleSelectInputComponent,
|
|
8161
8346
|
AutocompleteInputComponent,
|
|
8162
8347
|
CheckboxInputComponent,
|
|
@@ -8244,6 +8429,7 @@ class ComponentsModule {
|
|
|
8244
8429
|
PasswordInputComponent,
|
|
8245
8430
|
CheckboxInputComponent,
|
|
8246
8431
|
SelectInputComponent,
|
|
8432
|
+
SelectOverlayOriginDirective,
|
|
8247
8433
|
MultipleSelectInputComponent,
|
|
8248
8434
|
AutocompleteInputComponent,
|
|
8249
8435
|
ScrollContainerComponent,
|
|
@@ -8345,6 +8531,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
8345
8531
|
TextInputComponent,
|
|
8346
8532
|
PasswordInputComponent,
|
|
8347
8533
|
SelectInputComponent,
|
|
8534
|
+
SelectOverlayOriginDirective,
|
|
8348
8535
|
MultipleSelectInputComponent,
|
|
8349
8536
|
AutocompleteInputComponent,
|
|
8350
8537
|
CheckboxInputComponent,
|
|
@@ -8413,6 +8600,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
8413
8600
|
PasswordInputComponent,
|
|
8414
8601
|
CheckboxInputComponent,
|
|
8415
8602
|
SelectInputComponent,
|
|
8603
|
+
SelectOverlayOriginDirective,
|
|
8416
8604
|
MultipleSelectInputComponent,
|
|
8417
8605
|
AutocompleteInputComponent,
|
|
8418
8606
|
ScrollContainerComponent,
|
|
@@ -13204,7 +13392,7 @@ class SelectInputActivity extends InputActivity {
|
|
|
13204
13392
|
[confirmFace]="confirmFace"
|
|
13205
13393
|
[cancelFace]="cancelFace"
|
|
13206
13394
|
></aup-activity-actions>
|
|
13207
|
-
`, isInline: true, styles: [":host{--activity-actions-gap: 0}:host .aup-input-component{flex:1}:host[layout=inline]{padding-right:0}:host[layout=block]{padding-bottom:0}\n"], dependencies: [{ kind: "component", type: SelectInputComponent, selector: "aup-select-input", inputs: ["options$", "options", "optionLabel", "allowNil$", "allowNil", "optionLabelFormat", "searchable", "searchPlaceholder", "noResultsText", "searchText$", "optionSearchText", "filterFactory"] }, { kind: "component", type: ActivityActionsComponent, selector: "aup-activity-actions", inputs: ["confirmCommand", "cancelCommand", "faces", "confirmFace", "cancelFace", "style", "layout", "align", "alignContent"] }] });
|
|
13395
|
+
`, isInline: true, styles: [":host{--activity-actions-gap: 0}:host .aup-input-component{flex:1}:host[layout=inline]{padding-right:0}:host[layout=block]{padding-bottom:0}\n"], dependencies: [{ kind: "component", type: SelectInputComponent, selector: "aup-select-input", inputs: ["options$", "options", "optionLabel", "allowNil$", "allowNil", "appearance", "optionLabelFormat", "searchable", "searchPlaceholder", "noResultsText", "searchText$", "optionSearchText", "filterFactory"] }, { kind: "component", type: ActivityActionsComponent, selector: "aup-activity-actions", inputs: ["confirmCommand", "cancelCommand", "faces", "confirmFace", "cancelFace", "style", "layout", "align", "alignContent"] }] });
|
|
13208
13396
|
}
|
|
13209
13397
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: SelectInputActivity, decorators: [{
|
|
13210
13398
|
type: Component,
|
|
@@ -15292,5 +15480,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
15292
15480
|
* Generated bundle index. Do not edit.
|
|
15293
15481
|
*/
|
|
15294
15482
|
|
|
15295
|
-
export { ACTIVITY_DATA, ALERT_CONFIG, AUP_DETACHED_PARENT_CDR, AUP_PLACE_CONFIG, AUP_TABLE_OPTIMIZED_CHANGE_DETECTION, AUP_TABLE_VIRTUAL_SCROLL_BUFFER_MULTIPLIER, AUP_UNAUTHORISED_PLACE_NOTICE_COMPONENT, AbstractActivityTriggerComponent, AbstractCardContainerComponent, AbstractCellRenderer, AbstractConfirmDialogComponent, AbstractDialogComponent, AbstractInputComponent, AbstractInteractionContext, AbstractListInputComponent, AbstractPlaceNavigationComponent, AbstractPopStateNavigation, AbstractPopupMenuComponent, AbstractTableComponent, AbstractTableModel, AbstractValueInputComponent, Activity, ActivityActionsComponent, ActivityBodyComponent, ActivityContainerComponent, ActivityContext, ActivityOutletComponent, ActivityRef, ActivityTitleComponent, AddCardActivityComponent, AddItemInteractionContextComponent, Alert, AlertDialogComponent, AlertRendererComponent, AngularUiPowerupsModule, AupTooltipDirective, AutocompleteInputComponent, Bounds, BusyOverlayComponent, ButtonRendererComponent, CELL_RENDERER_PORTAL, CardContainerComponent, CellFooterPortalRef, CellHeaderPortalRef, CellPortalRef, CellRendererPortalRef, CheckboxInputComponent, ColumnManager, ColumnModel, ColumnOrderManager, ColumnTemplateDirective, ColumnTextSearchFormatter, CommandComponent, CommandContainer, CommandDirective, CommandFace, CommandFaceComponent, ComponentCellRendererPortalRef, ComponentsModule, Confirm, ConfirmRendererComponent, ConfirmThenDialogComponent, ConfirmThenExecuteDialogComponent, ConfirmationDialogComponent, ConsolidatedParameterMap, CustomTemplateColumnModel, CustomValueColumnModel, DEFINITION_META_DATA_KEY, DIALOG_INTERACTION_SERVICE_DEFAULTS, DecoratedTreeNode, DefaultCellRendererComponent, DefaultHeaderCellRendererComponent, DialogInteractionContext, DialogInteractionContextFactory, Dimension, DirectivesModule, DisposableComponent, EmptyStateComponent, EnableCellTextSearch, EventCleanUpSession, FOOTER_CELL_RENDERER_PORTAL, FileDownloadComponent, FlattenedTreeListModel, FlexComponent, FocusBinding, FocusBindingDirective, FocusBindingFactory, FocusContainerComponent, FocusableComponent, FooterRowCellsBuilder, FooterRowModel, Formatter, GarbageCollectorDirective, HEADER_CELL_RENDERER_PORTAL, HighlightPipe, HighlightTextModelDirective, HorizontalAlignment, INTERACTION_CONTEXT, IconComponent, InPlaceInteractionContextComponent, InlineActivityTriggerComponent, InlineEditorModel, InlineStringEditorComponent, InputActivity, InteractionContextProvider, InteractionContextTriggerForDirective, InteractionModule, InteractionService, InteractionServiceRoutingAdapter, Keys, LEFT_RIGHT_PLACE_ANIMATION, LabelledValueComponent, ListPlaceNavComponent, ListPropertyColumnModel, LoadableComponent, LoadingContainerComponent, MarkdownComponent, MarkdownService, ModalActivityTriggerComponent, ModalInteractionContextFactory, MoreMenuComponent, MultipleSelectInputComponent, Navigating, NavigatingDuringInteraction, NavigationContext, NavigationSession, NoopAuthGuard, NoopComponent, NotAuthorisedNoticeComponent, NumberInputComponent, POPUP_CONTAINER, PORTAL_RENDERER_COMPONENT, PaginatorComponent, ParameterDefinition, ParameterSanitiser, PasswordInputComponent, Place, PlaceAccessGuard, PlaceAuthService, PlaceComponent, PlaceComponentDeactivationHandler, PlaceDefinition, PlaceGuard, PlaceHistory, PlaceModule, PlaceOutletComponent, PlaceRouter, Point, PopStateDuringInteractionNavigation, PopStateNavigation, PopupActivityTriggerComponent, PopupAwareComponent, PopupInteractionContextComponent, PopupMenuComponent, PopupMenuRendererComponent, PropertyColumnModel, ROUTE_PARAMETER_LIST_KEY, RemoveLastInteractionFromUrlNavigationSession, ResizeAwareComponent, ResizeObserverDirective, RouteId, ScrollContainerComponent, SearchInputComponent, SectionHeaderComponent, SelectInputActivity, SelectInputComponent, SelectionCellComponent, SelectionColumnModel, SelectionHeaderCellComponent, SeparatorComponent, SidePlaceNavigationComponent, SlideDownInteractionContextComponent, StringInputActivity, StringInputComponent, SubFormListColumn, SubFormListColumns, SubFormListComponent, SubFormListEmptyDirective, SubFormListFooterDirective, SubFormListHeaderDirective, SubFormRowActionsDirective, SubFormRowDirective, SwitchCaseComponent, SwitchCaseDefaultDirective, SwitchCaseOption, SwitchCaseWhenDirective, SynchroniseInteractionContextIdsWithRoute, TabbedPlaceNavigationComponent, TableActionColumnComponent, TableBodyComponent, TableCellComponent, TableComponent, TableCustomMoreMenuComponent, TableCustomMoreMenuPopupComponent, TableFilterModel, TableFooterRow, TableHeaderCellComponent, TableModel, TableRowAttributesDirective, TemplateCellRendererPortalRef, TextInputComponent, ToolBarComponent, Track, TreeExpansionModel, TreeInheritanceIconComponent, TreeLabelCellRendererComponent, TreeLabelColumnModel, TreeTableComponent, TreeTableModel, UrlService, UrlSnapshot, VerticalFocusContainerComponent, VisibilityService, Visit, VisitParameter, VisitParameterList, VisitSegment, VisitSegmentSanitiser, WaitUntilLeavingInteractionTransitionCancelled, WaitUntilLinkTriggeredNavigationInteractionCancellationTypeDetermined, WaitUntilPopStateDuringCanDeactivateInteractionFinishes, collapseOrphanSeparators, getPlaceDefinition, leftRightPlaceAnimation, markdownPillExtension, setPlaceDefinition, slideDownAndRightOnEnterAnimation, slideDownOnEnterAnimation, slideDownWhenOpenAnimation, slideRightOnEnterAnimation, treeNodeDecorator };
|
|
15483
|
+
export { ACTIVITY_DATA, ALERT_CONFIG, AUP_DETACHED_PARENT_CDR, AUP_PLACE_CONFIG, AUP_TABLE_OPTIMIZED_CHANGE_DETECTION, AUP_TABLE_VIRTUAL_SCROLL_BUFFER_MULTIPLIER, AUP_UNAUTHORISED_PLACE_NOTICE_COMPONENT, AbstractActivityTriggerComponent, AbstractCardContainerComponent, AbstractCellRenderer, AbstractConfirmDialogComponent, AbstractDialogComponent, AbstractInputComponent, AbstractInteractionContext, AbstractListInputComponent, AbstractPlaceNavigationComponent, AbstractPopStateNavigation, AbstractPopupMenuComponent, AbstractTableComponent, AbstractTableModel, AbstractValueInputComponent, Activity, ActivityActionsComponent, ActivityBodyComponent, ActivityContainerComponent, ActivityContext, ActivityOutletComponent, ActivityRef, ActivityTitleComponent, AddCardActivityComponent, AddItemInteractionContextComponent, Alert, AlertDialogComponent, AlertRendererComponent, AngularUiPowerupsModule, AupTooltipDirective, AutocompleteInputComponent, Bounds, BusyOverlayComponent, ButtonRendererComponent, CELL_RENDERER_PORTAL, CardContainerComponent, CellFooterPortalRef, CellHeaderPortalRef, CellPortalRef, CellRendererPortalRef, CheckboxInputComponent, ColumnManager, ColumnModel, ColumnOrderManager, ColumnTemplateDirective, ColumnTextSearchFormatter, CommandComponent, CommandContainer, CommandDirective, CommandFace, CommandFaceComponent, ComponentCellRendererPortalRef, ComponentsModule, Confirm, ConfirmRendererComponent, ConfirmThenDialogComponent, ConfirmThenExecuteDialogComponent, ConfirmationDialogComponent, ConsolidatedParameterMap, CustomTemplateColumnModel, CustomValueColumnModel, DEFINITION_META_DATA_KEY, DIALOG_INTERACTION_SERVICE_DEFAULTS, DecoratedTreeNode, DefaultCellRendererComponent, DefaultHeaderCellRendererComponent, DialogInteractionContext, DialogInteractionContextFactory, Dimension, DirectivesModule, DisposableComponent, EmptyStateComponent, EnableCellTextSearch, EventCleanUpSession, FOOTER_CELL_RENDERER_PORTAL, FileDownloadComponent, FlattenedTreeListModel, FlexComponent, FocusBinding, FocusBindingDirective, FocusBindingFactory, FocusContainerComponent, FocusableComponent, FooterRowCellsBuilder, FooterRowModel, Formatter, GarbageCollectorDirective, HEADER_CELL_RENDERER_PORTAL, HighlightPipe, HighlightTextModelDirective, HorizontalAlignment, INTERACTION_CONTEXT, IconComponent, InPlaceInteractionContextComponent, InlineActivityTriggerComponent, InlineEditorModel, InlineStringEditorComponent, InputActivity, InteractionContextProvider, InteractionContextTriggerForDirective, InteractionModule, InteractionService, InteractionServiceRoutingAdapter, Keys, LEFT_RIGHT_PLACE_ANIMATION, LabelledValueComponent, ListPlaceNavComponent, ListPropertyColumnModel, LoadableComponent, LoadingContainerComponent, MarkdownComponent, MarkdownService, ModalActivityTriggerComponent, ModalInteractionContextFactory, MoreMenuComponent, MultipleSelectInputComponent, Navigating, NavigatingDuringInteraction, NavigationContext, NavigationSession, NoopAuthGuard, NoopComponent, NotAuthorisedNoticeComponent, NumberInputComponent, POPUP_CONTAINER, PORTAL_RENDERER_COMPONENT, PaginatorComponent, ParameterDefinition, ParameterSanitiser, PasswordInputComponent, Place, PlaceAccessGuard, PlaceAuthService, PlaceComponent, PlaceComponentDeactivationHandler, PlaceDefinition, PlaceGuard, PlaceHistory, PlaceModule, PlaceOutletComponent, PlaceRouter, Point, PopStateDuringInteractionNavigation, PopStateNavigation, PopupActivityTriggerComponent, PopupAwareComponent, PopupInteractionContextComponent, PopupMenuComponent, PopupMenuRendererComponent, PropertyColumnModel, ROUTE_PARAMETER_LIST_KEY, RemoveLastInteractionFromUrlNavigationSession, ResizeAwareComponent, ResizeObserverDirective, RouteId, ScrollContainerComponent, SearchInputComponent, SectionHeaderComponent, SelectInputActivity, SelectInputComponent, SelectOverlayOriginDirective, SelectionCellComponent, SelectionColumnModel, SelectionHeaderCellComponent, SeparatorComponent, SidePlaceNavigationComponent, SlideDownInteractionContextComponent, StringInputActivity, StringInputComponent, SubFormListColumn, SubFormListColumns, SubFormListComponent, SubFormListEmptyDirective, SubFormListFooterDirective, SubFormListHeaderDirective, SubFormRowActionsDirective, SubFormRowDirective, SwitchCaseComponent, SwitchCaseDefaultDirective, SwitchCaseOption, SwitchCaseWhenDirective, SynchroniseInteractionContextIdsWithRoute, TabbedPlaceNavigationComponent, TableActionColumnComponent, TableBodyComponent, TableCellComponent, TableComponent, TableCustomMoreMenuComponent, TableCustomMoreMenuPopupComponent, TableFilterModel, TableFooterRow, TableHeaderCellComponent, TableModel, TableRowAttributesDirective, TemplateCellRendererPortalRef, TextInputComponent, ToolBarComponent, Track, TreeExpansionModel, TreeInheritanceIconComponent, TreeLabelCellRendererComponent, TreeLabelColumnModel, TreeTableComponent, TreeTableModel, UrlService, UrlSnapshot, VerticalFocusContainerComponent, VisibilityService, Visit, VisitParameter, VisitParameterList, VisitSegment, VisitSegmentSanitiser, WaitUntilLeavingInteractionTransitionCancelled, WaitUntilLinkTriggeredNavigationInteractionCancellationTypeDetermined, WaitUntilPopStateDuringCanDeactivateInteractionFinishes, collapseOrphanSeparators, getPlaceDefinition, leftRightPlaceAnimation, markdownPillExtension, setPlaceDefinition, slideDownAndRightOnEnterAnimation, slideDownOnEnterAnimation, slideDownWhenOpenAnimation, slideRightOnEnterAnimation, treeNodeDecorator };
|
|
15296
15484
|
//# sourceMappingURL=coolon-angular-ui-powerups.mjs.map
|