@coolon/angular-ui-powerups 16.1.0-alpha.331 → 16.1.0-alpha.333
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/esm2022/lib/components/exports.mjs +2 -1
- package/esm2022/lib/components/tables/abstract-table-model.mjs +74 -22
- package/esm2022/lib/components/tables/abstract-table.component.mjs +6 -2
- package/esm2022/lib/components/tables/end-of-rows/end-of-rows-watcher.mjs +193 -0
- package/esm2022/lib/components/tables/end-of-rows/end-of-rows.mjs +48 -0
- package/esm2022/lib/components/tables/filter/cell-search.mjs +1 -1
- package/esm2022/lib/components/tables/filter/server-search-model.mjs +2 -2
- package/esm2022/lib/components/tables/renderer/table-body/table-body.component.mjs +82 -49
- package/esm2022/lib/components/tables/table/table.component.mjs +46 -14
- package/fesm2022/coolon-angular-ui-powerups.mjs +478 -121
- package/fesm2022/coolon-angular-ui-powerups.mjs.map +1 -1
- package/lib/components/exports.d.ts +1 -0
- package/lib/components/tables/abstract-table-model.d.ts +55 -13
- package/lib/components/tables/abstract-table.component.d.ts +2 -0
- package/lib/components/tables/end-of-rows/end-of-rows-watcher.d.ts +104 -0
- package/lib/components/tables/end-of-rows/end-of-rows.d.ts +42 -0
- package/lib/components/tables/filter/cell-search.d.ts +2 -1
- package/lib/components/tables/filter/server-search-model.d.ts +1 -1
- package/lib/components/tables/renderer/table-body/table-body.component.d.ts +25 -10
- package/lib/components/tables/table/table.component.d.ts +18 -6
- package/package.json +1 -1
|
@@ -9,16 +9,16 @@ import * as i4$1 from '@angular/material/form-field';
|
|
|
9
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
|
-
import * as i5$
|
|
12
|
+
import * as i5$2 from '@angular/material/select';
|
|
13
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';
|
|
17
17
|
import * as i2$6 from '@angular/cdk/drag-drop';
|
|
18
18
|
import { DragDropModule } from '@angular/cdk/drag-drop';
|
|
19
|
-
import * as i1$
|
|
19
|
+
import * as i1$3 from '@angular/cdk/portal';
|
|
20
20
|
import { ComponentPortal, TemplatePortal, PortalModule } from '@angular/cdk/portal';
|
|
21
|
-
import * as
|
|
21
|
+
import * as i5 from '@angular/cdk/scrolling';
|
|
22
22
|
import { CdkVirtualScrollViewport, CdkScrollableModule, ScrollingModule } from '@angular/cdk/scrolling';
|
|
23
23
|
import * as i8 from '@angular/material/autocomplete';
|
|
24
24
|
import { MatAutocompleteModule } from '@angular/material/autocomplete';
|
|
@@ -40,9 +40,9 @@ import * as i3$3 from '@angular/material/table';
|
|
|
40
40
|
import { MatTableModule } from '@angular/material/table';
|
|
41
41
|
import * as i3 from '@angular/material/tooltip';
|
|
42
42
|
import { MatTooltip, MatTooltipModule } from '@angular/material/tooltip';
|
|
43
|
-
import * as
|
|
43
|
+
import * as i6 from 'ng-table-virtual-scroll';
|
|
44
44
|
import { TableVirtualScrollDataSource, TableVirtualScrollModule } from 'ng-table-virtual-scroll';
|
|
45
|
-
import * as i1$
|
|
45
|
+
import * as i1$2 from '@coolon/pectin';
|
|
46
46
|
import { GarbageCollector, DelegatingValueModel, assert, UnaryCommand, lang, Dsl, proxify, ValueModel, Proxify, Logger, StoreInValueModel, Command, MutableListModel, StoreInListModel, ListModel, Disposable, Trace, DelegatingListModel, MutableValueModel, DelegateToValueModel, FocusManager, EventListenerList, Guard, DelegatingFormListModel, Binding, DebugContext, DelegateToListModel, DelegatingFormValueModel, Rejection, Functions, PageController, SelectionModel, CanProxy, MultipleSelectionModel, WatchList, ProxyRegistry, DependsOnOptions, LoadingStateTracker, Loadable, HasValue, DelegatingCommand, ComputedListModel, Deferred, ReducingValueModel, AndValueModel, SingleSelectionModel, DirtyTrackingForm } from '@coolon/pectin';
|
|
47
47
|
import { __decorate, __metadata, __param } from 'tslib';
|
|
48
48
|
import * as i1 from '@angular/platform-browser';
|
|
@@ -51,21 +51,21 @@ import { escape, isEmpty, isString, isFunction, isNil, isInteger, isEqual, isObj
|
|
|
51
51
|
import { marked } from 'marked';
|
|
52
52
|
import { MemoizeGet, lang as lang$1, assert as assert$1, Stringy, Klass, Opts } from '@coolon/typescript-utilities';
|
|
53
53
|
import { Enum } from 'typescript-string-enums';
|
|
54
|
-
import * as i5 from '@angular/material/core';
|
|
54
|
+
import * as i5$1 from '@angular/material/core';
|
|
55
55
|
import { MatOption, MatOptionModule } from '@angular/material/core';
|
|
56
56
|
import { Memoize } from 'fast-typescript-memoize';
|
|
57
57
|
import ResizeObserver from 'resize-observer-polyfill';
|
|
58
58
|
import { generateKeyBetween } from 'fractional-indexing';
|
|
59
59
|
import * as i5$3 from '@angular/cdk/a11y';
|
|
60
60
|
import { ActiveDescendantKeyManager, A11yModule } from '@angular/cdk/a11y';
|
|
61
|
-
import * as i1$
|
|
61
|
+
import * as i1$6 from '@angular/material/bottom-sheet';
|
|
62
62
|
import { MatBottomSheetModule } from '@angular/material/bottom-sheet';
|
|
63
|
-
import * as i1$
|
|
63
|
+
import * as i1$7 from '@angular/material/dialog';
|
|
64
64
|
import { MatDialogModule, MAT_DIALOG_DEFAULT_OPTIONS } from '@angular/material/dialog';
|
|
65
|
-
import * as i1$
|
|
65
|
+
import * as i1$4 from '@angular/router';
|
|
66
66
|
import { UrlSegment, NavigationStart, NavigationEnd, NavigationError, NavigationCancel, RouterModule, ActivatedRoute, ActivatedRouteSnapshot } from '@angular/router';
|
|
67
67
|
import 'reflect-metadata';
|
|
68
|
-
import * as i1$
|
|
68
|
+
import * as i1$5 from '@angular/cdk/overlay';
|
|
69
69
|
import { Overlay } from '@angular/cdk/overlay';
|
|
70
70
|
import { style, trigger, transition, animate, group, query } from '@angular/animations';
|
|
71
71
|
import { MatCardModule } from '@angular/material/card';
|
|
@@ -1099,7 +1099,7 @@ class ScrollContainerComponent extends DisposableComponent {
|
|
|
1099
1099
|
super();
|
|
1100
1100
|
}
|
|
1101
1101
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ScrollContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1102
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: ScrollContainerComponent, selector: "aup-scroll-container", inputs: { disableScroll$: "disableScroll$", disableScroll: "disableScroll" }, host: { properties: { "class.disable-scroll": "this.disableScroll" } }, usesInheritance: true, ngImport: i0, template: "<div class=\"scroll-container\" cdkScrollable>\n <ng-content></ng-content>\n</div>\n", styles: [":host{display:flex;flex-direction:column;align-items:stretch}:host:not(.disable-scroll){min-height:0}:host:not(.disable-scroll)>.scroll-container{flex-basis:0;overflow-y:scroll;align-items:stretch}:host>.scroll-container{display:flex;flex-direction:column;flex:1}\n"], dependencies: [{ kind: "directive", type:
|
|
1102
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: ScrollContainerComponent, selector: "aup-scroll-container", inputs: { disableScroll$: "disableScroll$", disableScroll: "disableScroll" }, host: { properties: { "class.disable-scroll": "this.disableScroll" } }, usesInheritance: true, ngImport: i0, template: "<div class=\"scroll-container\" cdkScrollable>\n <ng-content></ng-content>\n</div>\n", styles: [":host{display:flex;flex-direction:column;align-items:stretch}:host:not(.disable-scroll){min-height:0}:host:not(.disable-scroll)>.scroll-container{flex-basis:0;overflow-y:scroll;align-items:stretch}:host>.scroll-container{display:flex;flex-direction:column;flex:1}\n"], dependencies: [{ kind: "directive", type: i5.CdkScrollable, selector: "[cdk-scrollable], [cdkScrollable]" }] });
|
|
1103
1103
|
}
|
|
1104
1104
|
__decorate([
|
|
1105
1105
|
Proxify(),
|
|
@@ -2282,7 +2282,7 @@ class FocusContainerComponent extends DisposableComponent {
|
|
|
2282
2282
|
restoreFocus() {
|
|
2283
2283
|
this.focusManager.restoreFocus();
|
|
2284
2284
|
}
|
|
2285
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FocusContainerComponent, deps: [{ token: i1$
|
|
2285
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FocusContainerComponent, deps: [{ token: i1$2.FocusManager, self: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
2286
2286
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: FocusContainerComponent, selector: "aup-focus-container", host: { properties: { "attr.tabindex": "this.tabIndex" } }, providers: [
|
|
2287
2287
|
{ provide: FocusManager }
|
|
2288
2288
|
], usesInheritance: true, ngImport: i0, template: "<ng-content></ng-content>\n", styles: [":host{display:block}\n"] });
|
|
@@ -2292,7 +2292,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
2292
2292
|
args: [{ selector: 'aup-focus-container', providers: [
|
|
2293
2293
|
{ provide: FocusManager }
|
|
2294
2294
|
], template: "<ng-content></ng-content>\n", styles: [":host{display:block}\n"] }]
|
|
2295
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
2295
|
+
}], ctorParameters: function () { return [{ type: i1$2.FocusManager, decorators: [{
|
|
2296
2296
|
type: Self
|
|
2297
2297
|
}] }]; }, propDecorators: { tabIndex: [{
|
|
2298
2298
|
type: HostBinding,
|
|
@@ -2326,13 +2326,13 @@ class FocusableComponent extends DisposableComponent {
|
|
|
2326
2326
|
get focusContext() {
|
|
2327
2327
|
return this._focusContext;
|
|
2328
2328
|
}
|
|
2329
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FocusableComponent, deps: [{ token: i0.ElementRef }, { token: i1$
|
|
2329
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FocusableComponent, deps: [{ token: i0.ElementRef }, { token: i1$2.FocusManager }, { token: FocusBindingFactory }], target: i0.ɵɵFactoryTarget.Component });
|
|
2330
2330
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: FocusableComponent, selector: "ng-component", host: { listeners: { "focus": "onFocus()", "blur": "onBlur()" }, properties: { "attr.tabindex": "this.focusable" } }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
|
|
2331
2331
|
}
|
|
2332
2332
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FocusableComponent, decorators: [{
|
|
2333
2333
|
type: Component,
|
|
2334
2334
|
args: [{ template: '' }]
|
|
2335
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1$
|
|
2335
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1$2.FocusManager }, { type: FocusBindingFactory }]; }, propDecorators: { focusable: [{
|
|
2336
2336
|
type: HostBinding,
|
|
2337
2337
|
args: ['attr.tabindex']
|
|
2338
2338
|
}], onFocus: [{
|
|
@@ -2881,7 +2881,7 @@ class AutocompleteInputComponent extends AbstractValueInputComponent {
|
|
|
2881
2881
|
});
|
|
2882
2882
|
}
|
|
2883
2883
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: AutocompleteInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2884
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: AutocompleteInputComponent, selector: "aup-autocomplete-input", inputs: { rawTextContent$: "rawTextContent$", options$: "options$", options: "options", optionLabel: "optionLabel", allowNil: "allowNil", autoActiveFirstOption: "autoActiveFirstOption", autoFilter: "autoFilter", optionLabelFormat: "optionLabelFormat", filterFactory: "filterFactory" }, queries: [{ propertyName: "optionTemplateRef", first: true, predicate: ["optionTemplate"], descendants: true }, { propertyName: "nilOptionTemplateRef", first: true, predicate: ["nilOptionTemplate"], descendants: true }], viewQueries: [{ propertyName: "matInputComponent", first: true, predicate: MatInput, descendants: true }], usesInheritance: true, ngImport: i0, template: "<mat-form-field [floatLabel]=\"floatLabel\" subscriptSizing=\"dynamic\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input type=\"string\"\n matInput\n [matAutocomplete]=\"autocomplete\"\n placeholder=\"{{placeholder}}\"\n [ngModel]=\"componentValue$.value\"\n (ngModelChange)=\"updateFilter($event)\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-autocomplete #autocomplete [displayWith]=\"optionLabelFormat\"\n [autoActiveFirstOption]=\"autoActiveFirstOption\"\n (optionSelected)=\"onSelect($event)\">\n <mat-option *ngFor=\"let option of filteredOptions.value; let i = index\"\n [value]=\"option\">\n <ng-container *ngIf=\"!optionTemplateRef\">{{formatOption(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 <mat-option *ngIf=\"allowNil\">{{placeholder}}</mat-option>\n </mat-autocomplete>\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<div class=\"width-strut\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <div>{{placeholder}}</div>\n <div class=\"item\" *ngFor=\"let item of options\">\n <ng-container *ngIf=\"!optionTemplateRef\">{{formatOption(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;white-space:nowrap}.width-strut mat-label{font-size:75%}.width-strut>.item{font-size:16px;padding-left:0}\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$4.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$4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$4.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$1.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4$1.MatLabel, selector: "mat-label" }, { kind: "directive", type: i4$1.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i4$1.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i4$1.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { 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: i8.MatAutocomplete, selector: "mat-autocomplete", inputs: ["disableRipple", "hideSingleSelectionIndicator"], exportAs: ["matAutocomplete"] }, { kind: "directive", type: i8.MatAutocompleteTrigger, selector: "input[matAutocomplete], textarea[matAutocomplete]", exportAs: ["matAutocompleteTrigger"] }, { kind: "component", type: IconComponent, selector: "aup-icon", inputs: ["icon"] }] });
|
|
2884
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: AutocompleteInputComponent, selector: "aup-autocomplete-input", inputs: { rawTextContent$: "rawTextContent$", options$: "options$", options: "options", optionLabel: "optionLabel", allowNil: "allowNil", autoActiveFirstOption: "autoActiveFirstOption", autoFilter: "autoFilter", optionLabelFormat: "optionLabelFormat", filterFactory: "filterFactory" }, queries: [{ propertyName: "optionTemplateRef", first: true, predicate: ["optionTemplate"], descendants: true }, { propertyName: "nilOptionTemplateRef", first: true, predicate: ["nilOptionTemplate"], descendants: true }], viewQueries: [{ propertyName: "matInputComponent", first: true, predicate: MatInput, descendants: true }], usesInheritance: true, ngImport: i0, template: "<mat-form-field [floatLabel]=\"floatLabel\" subscriptSizing=\"dynamic\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input type=\"string\"\n matInput\n [matAutocomplete]=\"autocomplete\"\n placeholder=\"{{placeholder}}\"\n [ngModel]=\"componentValue$.value\"\n (ngModelChange)=\"updateFilter($event)\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-autocomplete #autocomplete [displayWith]=\"optionLabelFormat\"\n [autoActiveFirstOption]=\"autoActiveFirstOption\"\n (optionSelected)=\"onSelect($event)\">\n <mat-option *ngFor=\"let option of filteredOptions.value; let i = index\"\n [value]=\"option\">\n <ng-container *ngIf=\"!optionTemplateRef\">{{formatOption(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 <mat-option *ngIf=\"allowNil\">{{placeholder}}</mat-option>\n </mat-autocomplete>\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<div class=\"width-strut\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <div>{{placeholder}}</div>\n <div class=\"item\" *ngFor=\"let item of options\">\n <ng-container *ngIf=\"!optionTemplateRef\">{{formatOption(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;white-space:nowrap}.width-strut mat-label{font-size:75%}.width-strut>.item{font-size:16px;padding-left:0}\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$4.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$4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$4.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$1.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4$1.MatLabel, selector: "mat-label" }, { kind: "directive", type: i4$1.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i4$1.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i4$1.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "component", type: i5$1.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: i8.MatAutocomplete, selector: "mat-autocomplete", inputs: ["disableRipple", "hideSingleSelectionIndicator"], exportAs: ["matAutocomplete"] }, { kind: "directive", type: i8.MatAutocompleteTrigger, selector: "input[matAutocomplete], textarea[matAutocomplete]", exportAs: ["matAutocompleteTrigger"] }, { kind: "component", type: IconComponent, selector: "aup-icon", inputs: ["icon"] }] });
|
|
2885
2885
|
}
|
|
2886
2886
|
__decorate([
|
|
2887
2887
|
Proxify(),
|
|
@@ -2993,7 +2993,7 @@ class MultipleSelectInputComponent extends AbstractListInputComponent {
|
|
|
2993
2993
|
})).writeRight();
|
|
2994
2994
|
}
|
|
2995
2995
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: MultipleSelectInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2996
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: MultipleSelectInputComponent, selector: "aup-multiple-select-input", inputs: { options$: "options$", options: "options", optionLabel: "optionLabel", optionLabelFormat: "optionLabelFormat" }, queries: [{ propertyName: "optionTemplateRef", first: true, predicate: ["optionTemplate"], 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 multiple\n [ngModel]=\"componentList$.value\"\n (ngModelChange)=\"selectAll($event)\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-option *ngFor=\"let option of options$.value; let i = index\" [value]=\"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 </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>{{placeholder}}</div>\n <div class=\"item\" *ngFor=\"let item of options\">{{optionLabelFormat(item)}}</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;white-space:nowrap}.width-strut mat-label{font-size:75%}.width-strut>.item{font-size:16px;padding-left:30px}\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$4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i4$1.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4$1.MatLabel, selector: "mat-label" }, { kind: "directive", type: i4$1.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i4$1.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i4$1.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "component", type: i5$
|
|
2996
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: MultipleSelectInputComponent, selector: "aup-multiple-select-input", inputs: { options$: "options$", options: "options", optionLabel: "optionLabel", optionLabelFormat: "optionLabelFormat" }, queries: [{ propertyName: "optionTemplateRef", first: true, predicate: ["optionTemplate"], 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 multiple\n [ngModel]=\"componentList$.value\"\n (ngModelChange)=\"selectAll($event)\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-option *ngFor=\"let option of options$.value; let i = index\" [value]=\"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 </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>{{placeholder}}</div>\n <div class=\"item\" *ngFor=\"let item of options\">{{optionLabelFormat(item)}}</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;white-space:nowrap}.width-strut mat-label{font-size:75%}.width-strut>.item{font-size:16px;padding-left:30px}\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$4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i4$1.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4$1.MatLabel, selector: "mat-label" }, { kind: "directive", type: i4$1.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i4$1.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i4$1.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "component", type: i5$2.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex", "panelWidth", "hideSingleSelectionIndicator"], exportAs: ["matSelect"] }, { kind: "component", type: i5$1.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"] }] });
|
|
2997
2997
|
}
|
|
2998
2998
|
__decorate([
|
|
2999
2999
|
Proxify(),
|
|
@@ -3778,7 +3778,7 @@ class SelectInputComponent extends AbstractValueInputComponent {
|
|
|
3778
3778
|
});
|
|
3779
3779
|
}
|
|
3780
3780
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: SelectInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3781
|
-
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", opens: "opens", listTitle: "listTitle", optionIcon: "optionIcon", optionCounts: "optionCounts", 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 }, { propertyName: "listButtonRef", first: true, predicate: ["listButton"], 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]=\"searchPlaceholderText\"\n [attr.aria-label]=\"searchPlaceholderText\"\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\">{{noResultsMessage}}</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<ng-container *ngIf=\"!opensList; else fieldListShell\">\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 <span *ngIf=\"!optionTemplateRef\" class=\"aup-select-option\">\n <aup-icon *ngIf=\"optionIcon?.(option) as icon\" class=\"aup-select-option__icon\" [icon]=\"icon\"></aup-icon>\n <span class=\"aup-select-option__label\">{{optionLabelFormat(option)}}</span>\n <span *ngIf=\"panelCount(option) !== undefined\" class=\"aup-select-option__count\"\n [class.zero]=\"panelCount(option) === 0\" data-cy=\"count\">{{panelCount(option)}}</span>\n </span>\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</ng-container>\n\n<!--\nA field whose options open as a list: the form field holds a read-only input that names the choice and opens the\nlist, so the label, hint, error and validation icon stay as a field has them.\n-->\n<ng-template #fieldListShell>\n <mat-form-field [floatLabel]=\"floatLabel\" subscriptSizing=\"dynamic\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input matInput #listButton readonly class=\"aup-select-list-field\" data-cy=\"select-list-field\"\n role=\"combobox\" aria-haspopup=\"listbox\" [attr.aria-expanded]=\"listOpen\"\n [placeholder]=\"placeholder ?? ''\"\n [value]=\"hasValue ? optionLabelFormat(componentValue$.value) : ''\"\n [disabled]=\"!enabled$.value\"\n [errorStateMatcher]=\"errorStateMatcher\"\n [pectinFocusBinding]=\"focusContext\"\n (click)=\"openList()\"\n (keydown.enter)=\"$event.preventDefault(); openList()\"\n (keydown.space)=\"$event.preventDefault(); openList()\"\n (keydown.arrowdown)=\"$event.preventDefault(); openList()\">\n <aup-icon matSuffix class=\"aup-select-list-field__arrow\" icon=\"mat:arrow_drop_down\"></aup-icon>\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</ng-template>\n\n<ng-template #buttonShell>\n <!--\n opens=\"list\": a plain button. The options open as a list activity (see SelectOptionList), so there\n is no mat-select, and nothing here is queried by declaration.\n -->\n <button *ngIf=\"opensList; else panelButton\" #listButton type=\"button\"\n class=\"aup-select-button aup-select-list-button\" data-cy=\"select-button\"\n aria-haspopup=\"listbox\" [attr.aria-expanded]=\"listOpen\"\n [disabled]=\"!enabled$.value\"\n [pectinFocusBinding]=\"focusContext\"\n (click)=\"openList()\"\n (keydown.arrowdown)=\"$event.preventDefault(); openList()\">\n <span class=\"aup-select-list-button__value\">\n <ng-container *ngIf=\"!hasValue\">{{placeholder}}</ng-container>\n <ng-container *ngIf=\"hasValue && !selectedOptionTemplateRef\">{{optionLabelFormat(componentValue$.value)}}</ng-container>\n <ng-container *ngIf=\"hasValue && selectedOptionTemplateRef\"\n [ngTemplateOutlet]=\"selectedOptionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: componentValue$.value}\"></ng-container>\n </span>\n <aup-icon class=\"aup-select-list-button__arrow\" icon=\"mat:arrow_drop_down\"></aup-icon>\n </button>\n</ng-template>\n\n<ng-template #panelButton>\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 <span *ngIf=\"!optionTemplateRef\" class=\"aup-select-option\">\n <aup-icon *ngIf=\"optionIcon?.(option) as icon\" class=\"aup-select-option__icon\" [icon]=\"icon\"></aup-icon>\n <span class=\"aup-select-option__label\">{{optionLabelFormat(option)}}</span>\n <span *ngIf=\"panelCount(option) !== undefined\" class=\"aup-select-option__count\"\n [class.zero]=\"panelCount(option) === 0\" data-cy=\"count\">{{panelCount(option)}}</span>\n </span>\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;white-space:nowrap}.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%}button.aup-select-list-button{gap:4px;padding-right:4px;font:inherit;color:inherit;text-align:left}button.aup-select-list-button:focus-visible{outline:2px solid var(--mdc-theme-primary, #3f51b5);outline-offset:2px}button.aup-select-list-button:disabled{opacity:.5;cursor:default}.aup-select-list-button__value{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aup-select-list-button__arrow{flex:none}.aup-select-list-field,.aup-select-list-field__arrow{cursor:pointer}.aup-select-option{display:flex;align-items:center;gap:16px}.aup-select-option__icon{flex:none;opacity:.7}.aup-select-option__label{flex:1;min-width:0}.aup-select-option__count{flex:none;font-size:.85em;opacity:.7}.aup-select-option__count.zero{opacity:.4}::ng-deep .mat-mdc-option:has(>.mdc-list-item__primary-text>.aup-select-option) .mdc-list-item__primary-text{flex:1}\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$4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$4.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$1.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4$1.MatLabel, selector: "mat-label" }, { kind: "directive", type: i4$1.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i4$1.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i4$1.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "component", type: i5$1.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex", "panelWidth", "hideSingleSelectionIndicator"], exportAs: ["matSelect"] }, { kind: "directive", type: i5$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"] }] });
|
|
3781
|
+
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", opens: "opens", listTitle: "listTitle", optionIcon: "optionIcon", optionCounts: "optionCounts", 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 }, { propertyName: "listButtonRef", first: true, predicate: ["listButton"], 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]=\"searchPlaceholderText\"\n [attr.aria-label]=\"searchPlaceholderText\"\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\">{{noResultsMessage}}</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<ng-container *ngIf=\"!opensList; else fieldListShell\">\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 <span *ngIf=\"!optionTemplateRef\" class=\"aup-select-option\">\n <aup-icon *ngIf=\"optionIcon?.(option) as icon\" class=\"aup-select-option__icon\" [icon]=\"icon\"></aup-icon>\n <span class=\"aup-select-option__label\">{{optionLabelFormat(option)}}</span>\n <span *ngIf=\"panelCount(option) !== undefined\" class=\"aup-select-option__count\"\n [class.zero]=\"panelCount(option) === 0\" data-cy=\"count\">{{panelCount(option)}}</span>\n </span>\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</ng-container>\n\n<!--\nA field whose options open as a list: the form field holds a read-only input that names the choice and opens the\nlist, so the label, hint, error and validation icon stay as a field has them.\n-->\n<ng-template #fieldListShell>\n <mat-form-field [floatLabel]=\"floatLabel\" subscriptSizing=\"dynamic\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input matInput #listButton readonly class=\"aup-select-list-field\" data-cy=\"select-list-field\"\n role=\"combobox\" aria-haspopup=\"listbox\" [attr.aria-expanded]=\"listOpen\"\n [placeholder]=\"placeholder ?? ''\"\n [value]=\"hasValue ? optionLabelFormat(componentValue$.value) : ''\"\n [disabled]=\"!enabled$.value\"\n [errorStateMatcher]=\"errorStateMatcher\"\n [pectinFocusBinding]=\"focusContext\"\n (click)=\"openList()\"\n (keydown.enter)=\"$event.preventDefault(); openList()\"\n (keydown.space)=\"$event.preventDefault(); openList()\"\n (keydown.arrowdown)=\"$event.preventDefault(); openList()\">\n <aup-icon matSuffix class=\"aup-select-list-field__arrow\" icon=\"mat:arrow_drop_down\"></aup-icon>\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</ng-template>\n\n<ng-template #buttonShell>\n <!--\n opens=\"list\": a plain button. The options open as a list activity (see SelectOptionList), so there\n is no mat-select, and nothing here is queried by declaration.\n -->\n <button *ngIf=\"opensList; else panelButton\" #listButton type=\"button\"\n class=\"aup-select-button aup-select-list-button\" data-cy=\"select-button\"\n aria-haspopup=\"listbox\" [attr.aria-expanded]=\"listOpen\"\n [disabled]=\"!enabled$.value\"\n [pectinFocusBinding]=\"focusContext\"\n (click)=\"openList()\"\n (keydown.arrowdown)=\"$event.preventDefault(); openList()\">\n <span class=\"aup-select-list-button__value\">\n <ng-container *ngIf=\"!hasValue\">{{placeholder}}</ng-container>\n <ng-container *ngIf=\"hasValue && !selectedOptionTemplateRef\">{{optionLabelFormat(componentValue$.value)}}</ng-container>\n <ng-container *ngIf=\"hasValue && selectedOptionTemplateRef\"\n [ngTemplateOutlet]=\"selectedOptionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: componentValue$.value}\"></ng-container>\n </span>\n <aup-icon class=\"aup-select-list-button__arrow\" icon=\"mat:arrow_drop_down\"></aup-icon>\n </button>\n</ng-template>\n\n<ng-template #panelButton>\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 <span *ngIf=\"!optionTemplateRef\" class=\"aup-select-option\">\n <aup-icon *ngIf=\"optionIcon?.(option) as icon\" class=\"aup-select-option__icon\" [icon]=\"icon\"></aup-icon>\n <span class=\"aup-select-option__label\">{{optionLabelFormat(option)}}</span>\n <span *ngIf=\"panelCount(option) !== undefined\" class=\"aup-select-option__count\"\n [class.zero]=\"panelCount(option) === 0\" data-cy=\"count\">{{panelCount(option)}}</span>\n </span>\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;white-space:nowrap}.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%}button.aup-select-list-button{gap:4px;padding-right:4px;font:inherit;color:inherit;text-align:left}button.aup-select-list-button:focus-visible{outline:2px solid var(--mdc-theme-primary, #3f51b5);outline-offset:2px}button.aup-select-list-button:disabled{opacity:.5;cursor:default}.aup-select-list-button__value{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aup-select-list-button__arrow{flex:none}.aup-select-list-field,.aup-select-list-field__arrow{cursor:pointer}.aup-select-option{display:flex;align-items:center;gap:16px}.aup-select-option__icon{flex:none;opacity:.7}.aup-select-option__label{flex:1;min-width:0}.aup-select-option__count{flex:none;font-size:.85em;opacity:.7}.aup-select-option__count.zero{opacity:.4}::ng-deep .mat-mdc-option:has(>.mdc-list-item__primary-text>.aup-select-option) .mdc-list-item__primary-text{flex:1}\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$4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$4.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$1.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4$1.MatLabel, selector: "mat-label" }, { kind: "directive", type: i4$1.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i4$1.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i4$1.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "component", type: i5$2.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex", "panelWidth", "hideSingleSelectionIndicator"], exportAs: ["matSelect"] }, { kind: "directive", type: i5$2.MatSelectTrigger, selector: "mat-select-trigger" }, { kind: "component", type: i5$1.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"] }] });
|
|
3782
3782
|
}
|
|
3783
3783
|
__decorate([
|
|
3784
3784
|
Proxify(),
|
|
@@ -5617,7 +5617,7 @@ class AbstractTableComponent extends DisposableComponent {
|
|
|
5617
5617
|
this.injector = injector;
|
|
5618
5618
|
const { chain, when } = Dsl.disposeWith(this);
|
|
5619
5619
|
when(chain(this._dataSource$).first()).becomesTruthy(it => {
|
|
5620
|
-
if (
|
|
5620
|
+
if (this.hasNoId(it)) {
|
|
5621
5621
|
console.warn("Table model identity function is using reference equality. This can cause lots of table re-rendering", {
|
|
5622
5622
|
rowType: it
|
|
5623
5623
|
});
|
|
@@ -5627,6 +5627,10 @@ class AbstractTableComponent extends DisposableComponent {
|
|
|
5627
5627
|
identityOf(row) {
|
|
5628
5628
|
return this._dataSource$.identityOf(row);
|
|
5629
5629
|
}
|
|
5630
|
+
/** A list without `identifiedBy` identifies each row by the row itself, so its rows have no id. */
|
|
5631
|
+
hasNoId(row) {
|
|
5632
|
+
return row === this.identityOf(row);
|
|
5633
|
+
}
|
|
5630
5634
|
ngOnInit() {
|
|
5631
5635
|
super.ngOnInit();
|
|
5632
5636
|
const { chain } = Dsl.disposeWith(this);
|
|
@@ -6288,6 +6292,53 @@ class ListPropertyColumnModel extends ColumnModel {
|
|
|
6288
6292
|
}
|
|
6289
6293
|
}
|
|
6290
6294
|
|
|
6295
|
+
/**
|
|
6296
|
+
* What a page needs to load a table's rows a chunk at a time as the reader scrolls: whether the end of the rows is in
|
|
6297
|
+
* view, and how many rows fit in view. A page asks for it with `AbstractTableModel.watchEndOfRows`. The table body
|
|
6298
|
+
* measures both and reports them here, through an `EndOfRowsWatcher`.
|
|
6299
|
+
*
|
|
6300
|
+
* Only a classic-scrolling table measures them. In any other table the end of the rows is never in view, and the
|
|
6301
|
+
* number of rows that fit is undefined.
|
|
6302
|
+
*
|
|
6303
|
+
* @example
|
|
6304
|
+
* const endOfRows = table.watchEndOfRows();
|
|
6305
|
+
* // The end comes into view again after each chunk's rows are drawn, while they do not fill the table.
|
|
6306
|
+
* when(chain(endOfRows.inView$).map(inView => inView && hasMore$.value && !loading$.value, {dependsOn: [hasMore$, loading$]}))
|
|
6307
|
+
* .becomesTruthy(() => loadChunk(Math.max(50, 2 * (endOfRows.rowCountThatFits$.value ?? 0))));
|
|
6308
|
+
*/
|
|
6309
|
+
class EndOfRows {
|
|
6310
|
+
_inView$ = new MutableValueModel(false);
|
|
6311
|
+
/**
|
|
6312
|
+
* Whether the reader is within about four rows of the last row, or the rows do not fill the table. A page loads its
|
|
6313
|
+
* next chunk when it turns true, so the chunk is on its way before the reader reaches the last row. It is false
|
|
6314
|
+
* until the table has measured.
|
|
6315
|
+
*
|
|
6316
|
+
* It is never true because of rows the table has not drawn yet. When rows arrive while it is true, it turns false
|
|
6317
|
+
* until the table has drawn them and measured again. If they still do not fill the table, it then turns true again
|
|
6318
|
+
* and the page loads the next chunk. So a page never loads a chunk beyond the one that fills the table.
|
|
6319
|
+
*
|
|
6320
|
+
* A page that shows a loading row (`showLoadingRowWhile`) tells the table when a chunk is on its way, and it is
|
|
6321
|
+
* false for that time. The page may then end loading before or after it sets the chunk's rows. A page without a
|
|
6322
|
+
* loading row must set the rows first: as loading ends, the table still measures the rows drawn before the chunk.
|
|
6323
|
+
*/
|
|
6324
|
+
inView$ = this._inView$;
|
|
6325
|
+
_rowCountThatFits$ = new MutableValueModel(undefined);
|
|
6326
|
+
/**
|
|
6327
|
+
* How many rows fit in the visible part of the table, between its header and its footer, at the average height of
|
|
6328
|
+
* the rows drawn, or at the theme's row height while there are none. A page can size each chunk from it. It follows
|
|
6329
|
+
* the table's size, so it grows when the window does. It is undefined until the table has measured, and while the
|
|
6330
|
+
* table is hidden.
|
|
6331
|
+
*/
|
|
6332
|
+
rowCountThatFits$ = this._rowCountThatFits$;
|
|
6333
|
+
/** Called by the table body's `EndOfRowsWatcher` with what it has measured. */
|
|
6334
|
+
_report(inView, rowCountThatFits) {
|
|
6335
|
+
// A page loads its next chunk as the end comes into view and sizes the chunk from the rows that fit, so the count
|
|
6336
|
+
// is set first.
|
|
6337
|
+
this._rowCountThatFits$.value = rowCountThatFits;
|
|
6338
|
+
this._inView$.value = inView;
|
|
6339
|
+
}
|
|
6340
|
+
}
|
|
6341
|
+
|
|
6291
6342
|
class PropertyColumnModel extends ColumnModel {
|
|
6292
6343
|
property;
|
|
6293
6344
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- format callback returns arbitrary display value
|
|
@@ -6764,7 +6815,7 @@ class TableCustomMoreMenuComponent extends DisposableComponent {
|
|
|
6764
6815
|
return this._visible$.readonly$;
|
|
6765
6816
|
}
|
|
6766
6817
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: TableCustomMoreMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6767
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: TableCustomMoreMenuComponent, selector: "aup-table-custom-more-menu", host: { listeners: { "click": "preventDefault($event)" } }, viewQueries: [{ propertyName: "matMenuTrigger", first: true, predicate: MatMenuTrigger, descendants: true }], usesInheritance: true, ngImport: i0, template: "<mat-menu #menu=\"matMenu\" xPosition=\"before\">\n <ng-template matMenuContent [cdkPortalOutlet]=\"popupComponentPortal$.value\" (attached)=\"initialise($event)\"></ng-template>\n</mat-menu>\n\n<button mat-icon-button [matMenuTriggerFor]=\"menu\" data-cy=\"more-menu-trigger\" *ngIf=\"visible$.value\">\n <aup-icon icon=\"mat:more_vert\"></aup-icon>\n</button>\n", styles: [":host{display:inline;text-align:end}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: i1$
|
|
6818
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: TableCustomMoreMenuComponent, selector: "aup-table-custom-more-menu", host: { listeners: { "click": "preventDefault($event)" } }, viewQueries: [{ propertyName: "matMenuTrigger", first: true, predicate: MatMenuTrigger, descendants: true }], usesInheritance: true, ngImport: i0, template: "<mat-menu #menu=\"matMenu\" xPosition=\"before\">\n <ng-template matMenuContent [cdkPortalOutlet]=\"popupComponentPortal$.value\" (attached)=\"initialise($event)\"></ng-template>\n</mat-menu>\n\n<button mat-icon-button [matMenuTriggerFor]=\"menu\" data-cy=\"more-menu-trigger\" *ngIf=\"visible$.value\">\n <aup-icon icon=\"mat:more_vert\"></aup-icon>\n</button>\n", styles: [":host{display:inline;text-align:end}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: i1$3.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "component", type: i4.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { kind: "directive", type: i4.MatMenuContent, selector: "ng-template[matMenuContent]" }, { kind: "directive", type: i4.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }, { kind: "component", type: IconComponent, selector: "aup-icon", inputs: ["icon"] }] });
|
|
6768
6819
|
}
|
|
6769
6820
|
__decorate([
|
|
6770
6821
|
StoreInValueModel(),
|
|
@@ -6818,6 +6869,8 @@ class AbstractTableModel extends GarbageCollector {
|
|
|
6818
6869
|
selectionColumnModel;
|
|
6819
6870
|
rowSelectionDisabledOnAllColumns$;
|
|
6820
6871
|
rowClickListeners = new EventListenerList();
|
|
6872
|
+
/** The table body, which scrolls when the page asks with {@link scrollToTop}. */
|
|
6873
|
+
scrollToTopListeners = new EventListenerList();
|
|
6821
6874
|
firstVisibleColumn$;
|
|
6822
6875
|
lastVisibleColumn$;
|
|
6823
6876
|
textSearchPredicate$;
|
|
@@ -6827,21 +6880,19 @@ class AbstractTableModel extends GarbageCollector {
|
|
|
6827
6880
|
selectableRows$;
|
|
6828
6881
|
leadSelection$;
|
|
6829
6882
|
hasSelection$;
|
|
6830
|
-
|
|
6831
|
-
|
|
6832
|
-
|
|
6833
|
-
|
|
6834
|
-
* loads the next step while it is true. Once the rows fill the table and the reader is above their
|
|
6835
|
-
* end, it turns false; while they still do not, it stays true, so the page loads again when its step
|
|
6836
|
-
* lands. A table that does not scroll, or scrolls virtually, leaves it false.
|
|
6837
|
-
*/
|
|
6838
|
-
endInView$ = this._endInView$;
|
|
6883
|
+
/** The measurements a page asked for with {@link watchEndOfRows}, if it did. */
|
|
6884
|
+
endOfRowsAskedFor;
|
|
6885
|
+
/** The loading row a page asked for with {@link showLoadingRowWhile}, if it did. */
|
|
6886
|
+
loadingRowAskedFor;
|
|
6839
6887
|
footerRowModels = [];
|
|
6840
6888
|
_viewDependencies = new Set();
|
|
6841
6889
|
/** The table's settled search, once a table with a filter model binds (`useSearch`). */
|
|
6842
6890
|
_search$ = this.registerDisposable(new DelegatingValueModel());
|
|
6843
|
-
/**
|
|
6844
|
-
|
|
6891
|
+
/**
|
|
6892
|
+
* True once a table has initialised the model: its columns, their search classes, and what it renders. A page sets
|
|
6893
|
+
* up what the table searches by and renders before then.
|
|
6894
|
+
*/
|
|
6895
|
+
_initialised$ = new MutableValueModel(false);
|
|
6845
6896
|
/** Counts changes to the models the search classes depend on, so the criteria can depend on one model. */
|
|
6846
6897
|
_searchDependencyChanges$ = new MutableValueModel(0);
|
|
6847
6898
|
_criteriaPlacement;
|
|
@@ -6911,6 +6962,7 @@ class AbstractTableModel extends GarbageCollector {
|
|
|
6911
6962
|
this.columns$.value.forEach(c => c.initialise(customInjector));
|
|
6912
6963
|
this.identityOf = identityOf;
|
|
6913
6964
|
this.initialiseSearchCriteria();
|
|
6965
|
+
this._initialised$.value = true;
|
|
6914
6966
|
}
|
|
6915
6967
|
/**
|
|
6916
6968
|
* Takes the table's settled search, which `useCriteria` turns into criteria. The table component calls
|
|
@@ -6952,13 +7004,13 @@ class AbstractTableModel extends GarbageCollector {
|
|
|
6952
7004
|
*/
|
|
6953
7005
|
useCriteria(base$, placement) {
|
|
6954
7006
|
assert$1.isFalsey(this._criteriaPlacement, 'useCriteria may be called once per table');
|
|
6955
|
-
assert$1.isFalsey(this.
|
|
7007
|
+
assert$1.isFalsey(this._initialised$.value, 'useCriteria must be called before the table initialises, which checks the columns against the search criteria');
|
|
6956
7008
|
this._criteriaPlacement = placement;
|
|
6957
7009
|
const { chain } = Dsl.disposeWith(this);
|
|
6958
7010
|
return chain(base$).map(base => {
|
|
6959
7011
|
const search = this._search$.value;
|
|
6960
7012
|
// Search classes are resolved when the table initialises, so a search that arrives sooner waits for them.
|
|
6961
|
-
if (!search || !this.
|
|
7013
|
+
if (!search || !this._initialised$.value) {
|
|
6962
7014
|
return base;
|
|
6963
7015
|
}
|
|
6964
7016
|
const searchCriteria = this.visibleColumns$.value.reduce((searchCriteria, column) => {
|
|
@@ -6967,12 +7019,12 @@ class AbstractTableModel extends GarbageCollector {
|
|
|
6967
7019
|
}, new placement.searchCriteriaClass({}));
|
|
6968
7020
|
return placement.withSearchCriteria(base, searchCriteria);
|
|
6969
7021
|
}, {
|
|
6970
|
-
dependsOn: [this._search$, this.visibleColumns$, this.
|
|
7022
|
+
dependsOn: [this._search$, this.visibleColumns$, this._initialised$, this._searchDependencyChanges$],
|
|
6971
7023
|
equal: sameCriteria,
|
|
6972
7024
|
});
|
|
6973
7025
|
}
|
|
6974
7026
|
initialiseSearchCriteria() {
|
|
6975
|
-
if (this.
|
|
7027
|
+
if (this._initialised$.value) {
|
|
6976
7028
|
return;
|
|
6977
7029
|
}
|
|
6978
7030
|
const columns = this.columns$.value;
|
|
@@ -6992,7 +7044,6 @@ class AbstractTableModel extends GarbageCollector {
|
|
|
6992
7044
|
const { when } = Dsl.disposeWith(this);
|
|
6993
7045
|
when.anyOf(...dependencies).changes(() => this._searchDependencyChanges$.value++);
|
|
6994
7046
|
}
|
|
6995
|
-
this._searchClassesResolved$.value = true;
|
|
6996
7047
|
}
|
|
6997
7048
|
/**
|
|
6998
7049
|
* Adds additional models that will trigger a table repaint. This is required if the table
|
|
@@ -7047,6 +7098,55 @@ class AbstractTableModel extends GarbageCollector {
|
|
|
7047
7098
|
get displayScope$() {
|
|
7048
7099
|
return this.columnManager.displayScope$;
|
|
7049
7100
|
}
|
|
7101
|
+
/**
|
|
7102
|
+
* Shows a row with a spinner and [message], pinned to the bottom of the table, while the next chunk of rows is on
|
|
7103
|
+
* its way: while [loading$] is true and, in a table that watches the end of its rows ({@link watchEndOfRows}), until
|
|
7104
|
+
* the table has measured the chunk's rows. A page that loads its rows a chunk at a time sets [loading$] while a chunk
|
|
7105
|
+
* is on its way. The row is pinned, so the reader sees that more are coming wherever they have scrolled to. Screen
|
|
7106
|
+
* readers announce the message as it appears.
|
|
7107
|
+
*
|
|
7108
|
+
* In a table that watches the end of its rows, [loading$] also tells the table when a chunk is on its way, and the
|
|
7109
|
+
* end of the rows does not count as in view meanwhile. The row stays until the table has measured afresh, so it does
|
|
7110
|
+
* not drop out between two chunks that follow one another. The row sits above any other footer row
|
|
7111
|
+
* ({@link addFooterRow}).
|
|
7112
|
+
*
|
|
7113
|
+
* Call it once: a second call would replace the first's flag and message. The table reads it as it initialises, in
|
|
7114
|
+
* its ngOnInit, so call it where the model is built, not from a directive on the aup-table, which initialises after
|
|
7115
|
+
* the table does.
|
|
7116
|
+
*/
|
|
7117
|
+
showLoadingRowWhile(loading$, message) {
|
|
7118
|
+
assert$1.isFalsey(this.loadingRowAskedFor, 'showLoadingRowWhile may be called once per table');
|
|
7119
|
+
assert$1.isFalsey(this._initialised$.value, 'showLoadingRowWhile must be called before the table initialises, which decides what it renders');
|
|
7120
|
+
this.loadingRowAskedFor = { loading$, message };
|
|
7121
|
+
return this;
|
|
7122
|
+
}
|
|
7123
|
+
/** The row {@link showLoadingRowWhile} shows, if the page asked for one. Read by the table body. */
|
|
7124
|
+
get _loadingRow() {
|
|
7125
|
+
return this.loadingRowAskedFor;
|
|
7126
|
+
}
|
|
7127
|
+
/**
|
|
7128
|
+
* Starts measuring whether the end of the rows is in view and how many rows fit, for a page that loads its rows a
|
|
7129
|
+
* chunk at a time as the reader scrolls, and returns the measurements. A table that is not asked measures nothing.
|
|
7130
|
+
* A table's rows have one end, so asking again returns the same measurements.
|
|
7131
|
+
*
|
|
7132
|
+
* Only a table that scrolls classically, with enableScrolling and scrollMode="classic", measures. In any other the
|
|
7133
|
+
* end of the rows never comes into view, so a page that waits for it loads nothing, and the table warns of it in
|
|
7134
|
+
* development. A page that loads its first chunk on its own, as when its search changes, shows rows either way.
|
|
7135
|
+
*
|
|
7136
|
+
* The table reads it as it initialises, in its ngOnInit, so ask where the model is built, not from a directive on
|
|
7137
|
+
* the aup-table, which initialises after the table does.
|
|
7138
|
+
*/
|
|
7139
|
+
watchEndOfRows() {
|
|
7140
|
+
if (!this.endOfRowsAskedFor) {
|
|
7141
|
+
assert$1.isFalsey(this._initialised$.value, 'watchEndOfRows must be called before the table initialises, which decides what it measures');
|
|
7142
|
+
this.endOfRowsAskedFor = new EndOfRows();
|
|
7143
|
+
}
|
|
7144
|
+
return this.endOfRowsAskedFor;
|
|
7145
|
+
}
|
|
7146
|
+
/** The measurements {@link watchEndOfRows} started, if a page asked for them. Read by the table body. */
|
|
7147
|
+
get _endOfRows() {
|
|
7148
|
+
return this.endOfRowsAskedFor;
|
|
7149
|
+
}
|
|
7050
7150
|
pluck(property, options) {
|
|
7051
7151
|
const columnId = options?.columnId || property.toString();
|
|
7052
7152
|
return this.addColumn(new PropertyColumnModel(columnId, this.columnManager, property, () => this.getColumnTextProperties(columnId)));
|
|
@@ -7177,11 +7277,13 @@ class AbstractTableModel extends GarbageCollector {
|
|
|
7177
7277
|
onRowClicked(callback) {
|
|
7178
7278
|
return this.rowClickListeners.add(callback);
|
|
7179
7279
|
}
|
|
7180
|
-
/**
|
|
7181
|
-
|
|
7182
|
-
|
|
7183
|
-
|
|
7184
|
-
|
|
7280
|
+
/** Scrolls the table back to its first row, as a page does when it shows a new list in place of the old one. */
|
|
7281
|
+
scrollToTop() {
|
|
7282
|
+
this.scrollToTopListeners.fire(scroll => scroll());
|
|
7283
|
+
}
|
|
7284
|
+
/** Called by the table body, which scrolls when a page asks with {@link scrollToTop}. */
|
|
7285
|
+
_onScrollToTop(scroll) {
|
|
7286
|
+
return this.scrollToTopListeners.add(scroll);
|
|
7185
7287
|
}
|
|
7186
7288
|
_notifyCellClicked(columnModel, row) {
|
|
7187
7289
|
if (this.isRowSelectionEnabledFor(columnModel)) {
|
|
@@ -7211,6 +7313,198 @@ function comparesItself(value) {
|
|
|
7211
7313
|
return typeof value?.equals === 'function';
|
|
7212
7314
|
}
|
|
7213
7315
|
|
|
7316
|
+
/**
|
|
7317
|
+
* Measures, for the table body, whether the end of a classic-scrolling table's rows is in view and how many rows fit,
|
|
7318
|
+
* and reports both to the table model's {@link EndOfRows}.
|
|
7319
|
+
*
|
|
7320
|
+
* The body places a marker after the last row, inside the scroll container: the element that scrolls the rows. An
|
|
7321
|
+
* IntersectionObserver on the scroll container reports when the marker comes into view or leaves it. It counts the
|
|
7322
|
+
* marker as in view from {@link EndOfRowsWatcher.LOOKAHEAD_PIXELS} below the visible bottom, so the next chunk is on
|
|
7323
|
+
* its way before the reader reaches the last row. Each report also measures how many rows fit, so a page that loads
|
|
7324
|
+
* on the report sizes its chunk from rows that have been drawn.
|
|
7325
|
+
*/
|
|
7326
|
+
class EndOfRowsWatcher {
|
|
7327
|
+
endOfRows;
|
|
7328
|
+
zone;
|
|
7329
|
+
themeRowHeight;
|
|
7330
|
+
/** The marker after the last row, which the observer watches. */
|
|
7331
|
+
marker;
|
|
7332
|
+
/** The element that scrolls the rows, and contains the table and the marker. */
|
|
7333
|
+
scrollContainer;
|
|
7334
|
+
observer;
|
|
7335
|
+
/** Whether a chunk is on its way, during which the end of the rows does not count as in view: see [pause]. */
|
|
7336
|
+
paused = false;
|
|
7337
|
+
_awaitingReport$ = new MutableValueModel(false);
|
|
7338
|
+
/** Whether the watcher has started a fresh observer, and that observer has not reported yet. */
|
|
7339
|
+
awaitingReport$ = this._awaitingReport$;
|
|
7340
|
+
constructor(endOfRows, zone, themeRowHeight) {
|
|
7341
|
+
this.endOfRows = endOfRows;
|
|
7342
|
+
this.zone = zone;
|
|
7343
|
+
this.themeRowHeight = themeRowHeight;
|
|
7344
|
+
}
|
|
7345
|
+
/**
|
|
7346
|
+
* Watches [marker], in the scroll container that contains it, or stops watching when it is gone, as when the table
|
|
7347
|
+
* stops scrolling classically. While a chunk is on its way, it only remembers the marker, and starts watching when
|
|
7348
|
+
* the chunk ends.
|
|
7349
|
+
*/
|
|
7350
|
+
watch(marker) {
|
|
7351
|
+
this.marker = marker;
|
|
7352
|
+
this.scrollContainer = marker?.parentElement ?? undefined;
|
|
7353
|
+
if (!this.canObserve()) {
|
|
7354
|
+
this.stop();
|
|
7355
|
+
}
|
|
7356
|
+
else if (!this.paused) {
|
|
7357
|
+
this.observeAfresh();
|
|
7358
|
+
}
|
|
7359
|
+
}
|
|
7360
|
+
/**
|
|
7361
|
+
* Called when a chunk starts loading. Its rows are on their way, so the rows drawn now say nothing about where the
|
|
7362
|
+
* end of the rows will be. Were the end left in view, a page that hears the chunk end before its rows are drawn
|
|
7363
|
+
* would load another chunk at once. So the end is out of view until [measureAfresh].
|
|
7364
|
+
*/
|
|
7365
|
+
pause() {
|
|
7366
|
+
this.paused = true;
|
|
7367
|
+
this.observer?.disconnect();
|
|
7368
|
+
this.observer = undefined;
|
|
7369
|
+
this._awaitingReport$.value = false;
|
|
7370
|
+
this.reportIfChanged(false, this.endOfRows.rowCountThatFits$.value);
|
|
7371
|
+
}
|
|
7372
|
+
/**
|
|
7373
|
+
* Called when a chunk has ended, whether its rows have been drawn yet or not. A fresh observer reports once the
|
|
7374
|
+
* browser has laid out the page, so it measures the chunk's rows if they arrived in the same turn as the chunk ended.
|
|
7375
|
+
* Returns whether a report is on its way, which it is not while the table does not scroll classically.
|
|
7376
|
+
*/
|
|
7377
|
+
measureAfresh() {
|
|
7378
|
+
this.paused = false;
|
|
7379
|
+
this.observeAfresh();
|
|
7380
|
+
return this._awaitingReport$.value;
|
|
7381
|
+
}
|
|
7382
|
+
/**
|
|
7383
|
+
* Called when the table's rows change. The last measurement was taken against the old rows. If it said the end was
|
|
7384
|
+
* in view, a page could load another chunk because of it, though the new rows may already fill the table. So the
|
|
7385
|
+
* end is reported out of view until the table has drawn the new rows and measured again.
|
|
7386
|
+
*
|
|
7387
|
+
* An observer reports only when the marker crosses into or out of view. One that last saw the end in view would not
|
|
7388
|
+
* report again while the end stays in view, so it is replaced, and a new observer always reports once.
|
|
7389
|
+
*
|
|
7390
|
+
* A measurement that said the end was out of view cannot load anything, so it is left alone: the observer reports
|
|
7391
|
+
* when the end comes into view.
|
|
7392
|
+
*
|
|
7393
|
+
* The rows can change outside Angular's zone, as when a socket delivers them. The fresh observer is made inside it,
|
|
7394
|
+
* and leaving the zone has Angular draw the new rows and check the page's reaction to this report.
|
|
7395
|
+
*/
|
|
7396
|
+
rowsChanged() {
|
|
7397
|
+
if (!this.observer || !this.endOfRows.inView$.value) {
|
|
7398
|
+
return;
|
|
7399
|
+
}
|
|
7400
|
+
this.endOfRows._report(false, this.endOfRows.rowCountThatFits$.value);
|
|
7401
|
+
this.observeAfresh();
|
|
7402
|
+
}
|
|
7403
|
+
/** Called when the table changes size, which changes how many rows fit. */
|
|
7404
|
+
resized() {
|
|
7405
|
+
if (this.observer) {
|
|
7406
|
+
this.reportIfChanged(this.endOfRows.inView$.value, this.measureRowCountThatFits());
|
|
7407
|
+
}
|
|
7408
|
+
}
|
|
7409
|
+
/**
|
|
7410
|
+
* Stops watching. Nothing is measured any more, so the end is out of view and the rows that fit are unknown.
|
|
7411
|
+
*
|
|
7412
|
+
* The table stops watching while Angular is checking it, as when the marker's *ngIf removes it or the table is
|
|
7413
|
+
* destroyed. The page has already read the measurements in this check, so changing them now would change what it
|
|
7414
|
+
* showed after Angular checked it. So they change once the check is over. A table that is watching again by then,
|
|
7415
|
+
* as one switched back to classic scrolling in the same check, keeps its measurements.
|
|
7416
|
+
*/
|
|
7417
|
+
stop() {
|
|
7418
|
+
this.observer?.disconnect();
|
|
7419
|
+
this.observer = undefined;
|
|
7420
|
+
queueMicrotask(() => {
|
|
7421
|
+
if (this.observer) {
|
|
7422
|
+
return;
|
|
7423
|
+
}
|
|
7424
|
+
this._awaitingReport$.value = false;
|
|
7425
|
+
this.reportIfChanged(false, undefined);
|
|
7426
|
+
});
|
|
7427
|
+
}
|
|
7428
|
+
/**
|
|
7429
|
+
* Replaces the observer with a fresh one, which always reports once, whether the end is in view or not.
|
|
7430
|
+
*
|
|
7431
|
+
* An observer reports in the zone it was made in, so it is made inside Angular's zone. Its reports are then checked,
|
|
7432
|
+
* so the loading row goes when it should though the report changes nothing. A chunk can arrive outside the zone, as
|
|
7433
|
+
* when a socket delivers it, and nothing then draws its rows. Leaving the zone has Angular draw them, before the
|
|
7434
|
+
* browser's first report, which comes after its next layout.
|
|
7435
|
+
*/
|
|
7436
|
+
observeAfresh() {
|
|
7437
|
+
this.observer?.disconnect();
|
|
7438
|
+
this.observer = undefined;
|
|
7439
|
+
const { marker, scrollContainer } = this;
|
|
7440
|
+
if (!marker || !scrollContainer || !this.canObserve()) {
|
|
7441
|
+
this._awaitingReport$.value = false;
|
|
7442
|
+
return;
|
|
7443
|
+
}
|
|
7444
|
+
this.zone.run(() => {
|
|
7445
|
+
this._awaitingReport$.value = true;
|
|
7446
|
+
this.observer = new IntersectionObserver(entries => {
|
|
7447
|
+
// The observer may deliver several reports at once; the last is the latest.
|
|
7448
|
+
const latest = entries[entries.length - 1];
|
|
7449
|
+
this._awaitingReport$.value = false;
|
|
7450
|
+
this.reportIfChanged(latest.isIntersecting, this.measureRowCountThatFits());
|
|
7451
|
+
}, { root: scrollContainer, rootMargin: `0px 0px ${EndOfRowsWatcher.LOOKAHEAD_PIXELS}px 0px` });
|
|
7452
|
+
this.observer.observe(marker);
|
|
7453
|
+
});
|
|
7454
|
+
}
|
|
7455
|
+
/** Whether there is a marker in a scroll container to watch, in a browser that can watch it. */
|
|
7456
|
+
canObserve() {
|
|
7457
|
+
return !!this.marker && !!this.scrollContainer && typeof IntersectionObserver !== 'undefined';
|
|
7458
|
+
}
|
|
7459
|
+
/**
|
|
7460
|
+
* Reports a measurement that differs from the last one. A page reacts by loading and showing that it is loading.
|
|
7461
|
+
* A resize, a pause or a stop can come from outside Angular's zone, so the report is brought into the zone, where
|
|
7462
|
+
* the page's reaction is checked. Entering the zone from outside checks the whole app, so a measurement that changes
|
|
7463
|
+
* nothing is not reported.
|
|
7464
|
+
*/
|
|
7465
|
+
reportIfChanged(inView, rowCountThatFits) {
|
|
7466
|
+
if (inView === this.endOfRows.inView$.value && rowCountThatFits === this.endOfRows.rowCountThatFits$.value) {
|
|
7467
|
+
return;
|
|
7468
|
+
}
|
|
7469
|
+
this.zone.run(() => this.endOfRows._report(inView, rowCountThatFits));
|
|
7470
|
+
}
|
|
7471
|
+
/**
|
|
7472
|
+
* How many rows fit between the table's header and footer, at the average height of the rows drawn, or of the
|
|
7473
|
+
* theme's row height while there are none. Undefined while the table is hidden, as in a closed tab, where it
|
|
7474
|
+
* measures 0px.
|
|
7475
|
+
*
|
|
7476
|
+
* Every height is read with getBoundingClientRect, not clientHeight. A CSS zoom scales the bounding boxes but not
|
|
7477
|
+
* clientHeight, so mixing the two would miscount.
|
|
7478
|
+
*/
|
|
7479
|
+
measureRowCountThatFits() {
|
|
7480
|
+
const scrollContainer = this.scrollContainer;
|
|
7481
|
+
const visibleHeight = scrollContainer?.getBoundingClientRect().height ?? 0;
|
|
7482
|
+
if (!scrollContainer || visibleHeight === 0) {
|
|
7483
|
+
return undefined;
|
|
7484
|
+
}
|
|
7485
|
+
// The table's own sections, not those of a table drawn in one of its cells.
|
|
7486
|
+
const table = scrollContainer.querySelector(':scope > table');
|
|
7487
|
+
const headerHeight = heightOf(table?.tHead);
|
|
7488
|
+
// The loading row is a footer row that comes and goes as chunks load. Counted, it would shrink the rows that fit
|
|
7489
|
+
// while a chunk is on its way, and so the size of the next chunk.
|
|
7490
|
+
const footerHeight = heightOf(table?.tFoot) - heightOf(table?.tFoot?.querySelector(':scope > tr.loading-footer-row'));
|
|
7491
|
+
const rowArea = table?.tBodies.item(0);
|
|
7492
|
+
const drawnRowCount = rowArea?.rows.length ?? 0;
|
|
7493
|
+
const rowHeight = drawnRowCount > 0 ? heightOf(rowArea) / drawnRowCount : this.themeRowHeight();
|
|
7494
|
+
if (rowHeight <= 0) {
|
|
7495
|
+
return undefined;
|
|
7496
|
+
}
|
|
7497
|
+
return Math.max(0, Math.floor((visibleHeight - headerHeight - footerHeight) / rowHeight));
|
|
7498
|
+
}
|
|
7499
|
+
}
|
|
7500
|
+
(function (EndOfRowsWatcher) {
|
|
7501
|
+
/** How far below the visible bottom the end of the rows counts as in view: about four rows of the theme's height. */
|
|
7502
|
+
EndOfRowsWatcher.LOOKAHEAD_PIXELS = 200;
|
|
7503
|
+
})(EndOfRowsWatcher || (EndOfRowsWatcher = {}));
|
|
7504
|
+
function heightOf(element) {
|
|
7505
|
+
return element?.getBoundingClientRect().height ?? 0;
|
|
7506
|
+
}
|
|
7507
|
+
|
|
7214
7508
|
class TableCellComponent extends DisposableComponent {
|
|
7215
7509
|
row;
|
|
7216
7510
|
column;
|
|
@@ -7242,7 +7536,7 @@ class TableCellComponent extends DisposableComponent {
|
|
|
7242
7536
|
};
|
|
7243
7537
|
}
|
|
7244
7538
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: TableCellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
7245
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: TableCellComponent, selector: "aup-table-cell", inputs: { row: "row", column: "column", tableModel: "tableModel" }, host: { properties: { "class": "this.defaultClassNames", "class.fillCell": "this.fillCell", "class.padChild": "this.padChild" } }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<ng-container [cdkPortalOutlet]=\"getRendererPortal()\" (attached)=\"initialiseRenderer($event)\"></ng-container>\n", styles: [""], dependencies: [{ kind: "directive", type: i1$
|
|
7539
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: TableCellComponent, selector: "aup-table-cell", inputs: { row: "row", column: "column", tableModel: "tableModel" }, host: { properties: { "class": "this.defaultClassNames", "class.fillCell": "this.fillCell", "class.padChild": "this.padChild" } }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<ng-container [cdkPortalOutlet]=\"getRendererPortal()\" (attached)=\"initialiseRenderer($event)\"></ng-container>\n", styles: [""], dependencies: [{ kind: "directive", type: i1$3.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
7246
7540
|
}
|
|
7247
7541
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: TableCellComponent, decorators: [{
|
|
7248
7542
|
type: Component,
|
|
@@ -7279,7 +7573,7 @@ class TableHeaderCellComponent {
|
|
|
7279
7573
|
return this[HEADER_CELL_RENDERER_PORTAL];
|
|
7280
7574
|
}
|
|
7281
7575
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: TableHeaderCellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
7282
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: TableHeaderCellComponent, selector: "aup-table-header-cell", inputs: { column: "column" }, host: { properties: { "class": "this.defaultClassNames" } }, ngImport: i0, template: "<ng-container [cdkPortalOutlet]=\"getPortal()\" (attached)=\"initialiseHeader($event)\"></ng-container>\n", styles: [":host{display:flex;flex-direction:column;align-items:stretch;justify-content:center;height:100%}\n"], dependencies: [{ kind: "directive", type: i1$
|
|
7576
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: TableHeaderCellComponent, selector: "aup-table-header-cell", inputs: { column: "column" }, host: { properties: { "class": "this.defaultClassNames" } }, ngImport: i0, template: "<ng-container [cdkPortalOutlet]=\"getPortal()\" (attached)=\"initialiseHeader($event)\"></ng-container>\n", styles: [":host{display:flex;flex-direction:column;align-items:stretch;justify-content:center;height:100%}\n"], dependencies: [{ kind: "directive", type: i1$3.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }] });
|
|
7283
7577
|
}
|
|
7284
7578
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: TableHeaderCellComponent, decorators: [{
|
|
7285
7579
|
type: Component,
|
|
@@ -7307,7 +7601,7 @@ class TableFooterRow {
|
|
|
7307
7601
|
this.cell?.onInit?.($event.instance);
|
|
7308
7602
|
}
|
|
7309
7603
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: TableFooterRow, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
7310
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: TableFooterRow, selector: "aup-table-footer-row", inputs: { cell: "cell" }, host: { properties: { "class": "this.cssClasses" } }, ngImport: i0, template: "<ng-container *ngIf=\"cell?.portal\" [cdkPortalOutlet]=\"cell.portal\" (attached)=\"initialise($event)\"></ng-container>\n", styles: [":host{display:flex;height:100%}:host.full-width{flex-direction:column;align-items:stretch;justify-content:center}:host.footer-column-cell{flex-direction:row;align-items:center}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$
|
|
7604
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: TableFooterRow, selector: "aup-table-footer-row", inputs: { cell: "cell" }, host: { properties: { "class": "this.cssClasses" } }, ngImport: i0, template: "<ng-container *ngIf=\"cell?.portal\" [cdkPortalOutlet]=\"cell.portal\" (attached)=\"initialise($event)\"></ng-container>\n", styles: [":host{display:flex;height:100%}:host.full-width{flex-direction:column;align-items:stretch;justify-content:center}:host.footer-column-cell{flex-direction:row;align-items:center}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$3.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }] });
|
|
7311
7605
|
}
|
|
7312
7606
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: TableFooterRow, decorators: [{
|
|
7313
7607
|
type: Component,
|
|
@@ -7386,14 +7680,29 @@ class TableBodyComponent extends ResizeAwareComponent {
|
|
|
7386
7680
|
holdScrollPosition = false;
|
|
7387
7681
|
scrollViewport;
|
|
7388
7682
|
classicScrollContainer;
|
|
7389
|
-
/**
|
|
7390
|
-
|
|
7391
|
-
|
|
7392
|
-
|
|
7393
|
-
|
|
7394
|
-
|
|
7395
|
-
endOfRowsObserver;
|
|
7683
|
+
/**
|
|
7684
|
+
* Measures whether the end of the rows is in view and how many rows fit, when the page asked for it with
|
|
7685
|
+
* `AbstractTableModel.watchEndOfRows`.
|
|
7686
|
+
*/
|
|
7687
|
+
endOfRowsWatcher;
|
|
7688
|
+
/** The zone the end-of-rows watcher reports in, so a page that reacts by loading is checked. */
|
|
7396
7689
|
zone = inject(NgZone);
|
|
7690
|
+
/**
|
|
7691
|
+
* The marker after the last row, which the watcher watches in the classic scroll container that contains it. It is
|
|
7692
|
+
* drawn only while the table scrolls classically, so it comes and goes as the scroll mode changes, and the watcher
|
|
7693
|
+
* follows.
|
|
7694
|
+
*/
|
|
7695
|
+
set endOfRowsMarker(marker) {
|
|
7696
|
+
this.endOfRowsWatcher?.watch(marker?.nativeElement);
|
|
7697
|
+
}
|
|
7698
|
+
/** Whether the loading row shows: see `AbstractTableModel.showLoadingRowWhile`. */
|
|
7699
|
+
loadingRowShown$ = new MutableValueModel(false);
|
|
7700
|
+
/**
|
|
7701
|
+
* Whether the loading row stays after its chunk has ended, until the table has measured the end of the rows afresh.
|
|
7702
|
+
* If the chunk's rows still do not fill the table, the page loads the next chunk only once the table has measured
|
|
7703
|
+
* them, and the row would otherwise drop out in between.
|
|
7704
|
+
*/
|
|
7705
|
+
loadingRowHeldUntilMeasured$ = new MutableValueModel(false);
|
|
7397
7706
|
columns$;
|
|
7398
7707
|
columnIds$;
|
|
7399
7708
|
footerRowDefs$;
|
|
@@ -7440,25 +7749,25 @@ class TableBodyComponent extends ResizeAwareComponent {
|
|
|
7440
7749
|
super();
|
|
7441
7750
|
this.bufferMultiplier = bufferMultiplier;
|
|
7442
7751
|
const { chain, when, observe } = Dsl.disposeWith(this);
|
|
7443
|
-
// The same container scrolls classically or not at all, so a change between the two keeps the marker.
|
|
7444
|
-
when(this.scrollMode$).changes(() => this.watchEndOfRows());
|
|
7445
7752
|
this.optimisedChangeDetectionEnabled = this.inject(AUP_TABLE_OPTIMIZED_CHANGE_DETECTION, { optional: true });
|
|
7446
7753
|
const actualHeaderHeight$ = chain(this.showHeader$).map(show => {
|
|
7447
7754
|
return show ? this.headerHeight$.value : 0;
|
|
7448
7755
|
}, { dependsOn: this.headerHeight$ });
|
|
7449
|
-
// performance is terrible if the data changes while we're scrolling, so we postpone updates until
|
|
7450
|
-
// scrolling stops.
|
|
7451
|
-
// A body inside projected content (a loading container, a card) is initialised before it is in the
|
|
7452
|
-
// document, where no theme variable resolves. Its first reported size is the moment it is, so take
|
|
7453
|
-
// the heights again then; the report arrives outside change detection, so this is safe. A change of
|
|
7454
|
-
// layout that themes other heights (a phone's taller rows) resizes the body too, so it is taken then.
|
|
7455
|
-
// The virtual viewport measures its height when it is created and keeps that figure until told to measure
|
|
7456
|
-
// again. A body created hidden, in an inactive tab or a closed drawer, measures 0px and renders no rows once
|
|
7457
|
-
// shown, so each resize re-measures it too.
|
|
7458
7756
|
when(this.bounds$).changes(() => {
|
|
7757
|
+
// A body inside projected content (a loading container, a card) is initialised before it is in the
|
|
7758
|
+
// document, where no theme variable resolves. Its first reported size is the moment it is, so take
|
|
7759
|
+
// the heights again then; the report arrives outside change detection, so this is safe. A change of
|
|
7760
|
+
// layout that themes other heights (a phone's taller rows) resizes the body too, so it is taken then.
|
|
7459
7761
|
this.takeHeightsFromTheme();
|
|
7762
|
+
// The virtual viewport measures its height when it is created and keeps that figure until told to measure
|
|
7763
|
+
// again. A body created hidden, in an inactive tab or a closed drawer, measures 0px and renders no rows once
|
|
7764
|
+
// shown, so each resize re-measures it too.
|
|
7460
7765
|
this.scrollViewport?.checkViewportSize();
|
|
7766
|
+
// A taller or shorter table fits more or fewer rows, which a page sizes its chunks by.
|
|
7767
|
+
this.endOfRowsWatcher?.resized();
|
|
7461
7768
|
});
|
|
7769
|
+
// performance is terrible if the data changes while we're scrolling, so we postpone updates until
|
|
7770
|
+
// scrolling stops.
|
|
7462
7771
|
const delayedData$ = chain(this.data$).postponeWhile(this.virtualScrollActive$);
|
|
7463
7772
|
when(delayedData$).changes(delatedData => {
|
|
7464
7773
|
// Read before the rows change: the DOM still shows the old rows until the view is next checked.
|
|
@@ -7481,6 +7790,7 @@ class TableBodyComponent extends ResizeAwareComponent {
|
|
|
7481
7790
|
}
|
|
7482
7791
|
this.scheduleTableHeightCheck();
|
|
7483
7792
|
this.resetAnimationsAfterFrame();
|
|
7793
|
+
this.endOfRowsWatcher?.rowsChanged();
|
|
7484
7794
|
}, { initialValue: "evaluate" });
|
|
7485
7795
|
this.onInit(() => {
|
|
7486
7796
|
// On init, not after the view: the heights are bound in this view and in host bindings, and
|
|
@@ -7490,12 +7800,14 @@ class TableBodyComponent extends ResizeAwareComponent {
|
|
|
7490
7800
|
this.columnIds$ = chain(this.columns$).pluck("columnId");
|
|
7491
7801
|
this.columnsById$ = chain(this.columns$).indexBy('columnId');
|
|
7492
7802
|
this.footerRowDefs$ = chain(this.columnIds$).reduceAll(ids => (this.footerRows ?? []).map((row, i) => row.resolve(i, [...ids])));
|
|
7803
|
+
this.registerDisposable(this.tableModel._onScrollToTop(() => this.scrollToTop()));
|
|
7804
|
+
this.setUpEndOfRowsAndLoadingRow();
|
|
7493
7805
|
// Footer rows gated via visibleWhile() flip independently of the columns that drive
|
|
7494
7806
|
// footerRowDefs$, so depend on their models directly to re-render the <tr> reactively.
|
|
7495
7807
|
const footerVisibility$ = (this.footerRows ?? [])
|
|
7496
7808
|
.map(row => row.visible$)
|
|
7497
7809
|
.filter((m) => m != null);
|
|
7498
|
-
this.viewStateDependsOn(this.headerHeight$, this.tableModel.filteredRows$, this.tableModel.visibleColumns$, this.tableModel.columnFlexes$, this.virtualScrollActive$, this.animationsDisabled$, this.tableModel.selectedItems$, this.tableModel.selectableRows$, this.footerRowDefs$, ...footerVisibility$);
|
|
7810
|
+
this.viewStateDependsOn(this.headerHeight$, this.tableModel.filteredRows$, this.tableModel.visibleColumns$, this.tableModel.columnFlexes$, this.virtualScrollActive$, this.animationsDisabled$, this.tableModel.selectedItems$, this.tableModel.selectableRows$, this.footerRowDefs$, ...footerVisibility$, this.loadingRowShown$);
|
|
7499
7811
|
});
|
|
7500
7812
|
}
|
|
7501
7813
|
ngAfterViewInit() {
|
|
@@ -7666,27 +7978,44 @@ class TableBodyComponent extends ResizeAwareComponent {
|
|
|
7666
7978
|
}
|
|
7667
7979
|
ngOnDestroy() {
|
|
7668
7980
|
this.scrollEndAbortController?.abort();
|
|
7669
|
-
this.
|
|
7981
|
+
this.endOfRowsWatcher?.stop();
|
|
7670
7982
|
super.ngOnDestroy();
|
|
7671
7983
|
}
|
|
7672
7984
|
/**
|
|
7673
|
-
*
|
|
7674
|
-
*
|
|
7675
|
-
* below the visible bottom, so a page that loads more has the rows ready by the time they are reached.
|
|
7985
|
+
* Sets up what the page asked the table for: measuring the end of the rows (`AbstractTableModel.watchEndOfRows`),
|
|
7986
|
+
* the loading row (`AbstractTableModel.showLoadingRowWhile`), or both, which work together.
|
|
7676
7987
|
*/
|
|
7677
|
-
|
|
7678
|
-
|
|
7679
|
-
|
|
7680
|
-
const
|
|
7681
|
-
|
|
7682
|
-
|
|
7683
|
-
|
|
7684
|
-
|
|
7988
|
+
setUpEndOfRowsAndLoadingRow() {
|
|
7989
|
+
const { chain, when } = Dsl.disposeWith(this);
|
|
7990
|
+
const endOfRows = this.tableModel._endOfRows;
|
|
7991
|
+
const watcher = endOfRows && new EndOfRowsWatcher(endOfRows, this.zone, () => this.rowHeight$.value);
|
|
7992
|
+
this.endOfRowsWatcher = watcher;
|
|
7993
|
+
const loadingRow = this.tableModel._loadingRow;
|
|
7994
|
+
if (loadingRow) {
|
|
7995
|
+
this.loadingRowShown$ = chain.reduce(loadingRow.loading$, this.loadingRowHeldUntilMeasured$, (loading, held) => loading || held);
|
|
7996
|
+
}
|
|
7997
|
+
// The page's loading flag says when a chunk is on its way, which the rows alone cannot say: a page may end the
|
|
7998
|
+
// chunk before or after it sets the rows. While a chunk loads, the end of the rows does not count as in view, or
|
|
7999
|
+
// a page would load again on rows that are about to grow. When it ends, the table measures afresh, and the
|
|
8000
|
+
// loading row stays until it has.
|
|
8001
|
+
if (watcher && loadingRow) {
|
|
8002
|
+
when(loadingRow.loading$).changes(loading => {
|
|
8003
|
+
if (loading) {
|
|
8004
|
+
watcher.pause();
|
|
8005
|
+
}
|
|
8006
|
+
else {
|
|
8007
|
+
this.loadingRowHeldUntilMeasured$.value = watcher.measureAfresh();
|
|
8008
|
+
}
|
|
8009
|
+
}, { initialValue: "triggerChange" });
|
|
8010
|
+
when(watcher.awaitingReport$).becomesFalsey(() => this.loadingRowHeldUntilMeasured$.value = false);
|
|
8011
|
+
}
|
|
8012
|
+
}
|
|
8013
|
+
/** Scrolls back to the first row, in whichever scroll mode the table is in. */
|
|
8014
|
+
scrollToTop() {
|
|
8015
|
+
if (this.classicScrollContainer) {
|
|
8016
|
+
this.classicScrollContainer.nativeElement.scrollTop = 0;
|
|
7685
8017
|
}
|
|
7686
|
-
|
|
7687
|
-
// that it is loading, so the report is brought back into the zone.
|
|
7688
|
-
this.endOfRowsObserver = new IntersectionObserver(entries => this.zone.run(() => this.tableModel._notifyEndInView(entries[entries.length - 1].isIntersecting)), { root: container, rootMargin: `0px 0px ${TableBodyComponent.END_OF_ROWS_MARGIN_PIXELS}px 0px` });
|
|
7689
|
-
this.endOfRowsObserver.observe(marker);
|
|
8018
|
+
this.scrollViewport?.scrollToIndex(0);
|
|
7690
8019
|
}
|
|
7691
8020
|
resetAnimationsAfterFrame() {
|
|
7692
8021
|
// Cancel any pending reset so rapid data changes don't re-enable animations mid-render.
|
|
@@ -7712,7 +8041,7 @@ class TableBodyComponent extends ResizeAwareComponent {
|
|
|
7712
8041
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: TableBodyComponent, deps: [{ token: AUP_TABLE_VIRTUAL_SCROLL_BUFFER_MULTIPLIER, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
7713
8042
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: TableBodyComponent, selector: "aup-table-body", inputs: { data$: "data$", tableModel: "tableModel", footerRows: "footerRows", showHeader$: "showHeader$", showHeader: "showHeader", trackBy: "trackBy", scrollMode$: "scrollMode$", scrollMode: "scrollMode", holdScrollPosition: "holdScrollPosition" }, host: { properties: { "attr.scrollMode": "this.scrollMode", "class.hold-scroll-position": "this.holdScrollPosition", "class": "this.baseCssClass", "class.aup-animations-disabled": "this.animationsDisabledClass", "class.hide-header": "this.hideHeader", "style.--aup-table-header-height": "this.headerHeightCssVar", "style.--aup-table-row-height": "this.rowHeightCssVar" } }, providers: [
|
|
7714
8043
|
{ provide: AUP_DETACHED_PARENT_CDR, useFactory: () => inject(AUP_TABLE_OPTIMIZED_CHANGE_DETECTION, { optional: true }) ? inject(ChangeDetectorRef) : null }
|
|
7715
|
-
], viewQueries: [{ propertyName: "scrollViewport", first: true, predicate: CdkVirtualScrollViewport, descendants: true }, { propertyName: "classicScrollContainer", first: true, predicate: ["classicScrollContainer"], descendants: true }, { propertyName: "endOfRows", first: true, predicate: ["endOfRows"], descendants: true }], usesInheritance: true, ngImport: i0, template: "\n<div #classicScrollContainer class=\"classic-scroll-container\" aup-scroll-container *ngIf=\"scrollMode$.value !== 'virtual'\">\n <table mat-table [dataSource]=\"data$.value\" [trackBy]=\"trackBy\" [multiTemplateDataRows]>\n\n <ng-container *ngFor=\"let column of columns$.value; index as index; first as first; last as last\"\n matColumnDef=\"{{column.columnId}}\">\n <th mat-header-cell *matHeaderCellDef [class.flex]=\"column.isFlex()\" [class.hide]=\"!column.isVisible()\">\n <aup-table-header-cell [column]=\"$any(column)\"\n [attr.column-index]=\"index\"\n [attr.column-id]=\"column.columnId\"\n [class]=\"getColumnClasses(column.columnId)\"\n ></aup-table-header-cell>\n </th>\n <td mat-cell *matCellDef=\"let row\" (click)=\"notifyCellClicked(column, row)\"\n [class.enable-cursor]=\"tableModel.isCursorEnabledForRow(column, row)\"\n [class.flex]=\"column.isFlex()\"\n [class.hide]=\"!column.isVisible()\"\n >\n <aup-table-cell [column]=\"$any(column)\"\n [row]=\"row\"\n [tableModel]=\"$any(tableModel)\"\n [attr.column-index]=\"index\"\n [attr.column-id]=\"column.columnId\"\n [class]=\"getColumnClasses(column.columnId)\"\n [aupHighlightTextModel]=\"highlightTextFor($any(column))\"\n ></aup-table-cell>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"columnIds$.value; sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: columnIds$.value; let i = index\"\n [ngClass]=\"tableModel.getRowClasses(row)\"\n [class.enable-hover]=\"tableModel.isHoverEnabledForRow(row)\"\n [aupTableRowAttributes]=\"tableModel.getRowAttributes(row)\"\n [attr.aup-row-id]=\"trackBy(i, row)\"\n ></tr>\n\n <ng-container *ngFor=\"let footer of footerRowDefs$.value\">\n <ng-container *ngFor=\"let cell of footer.cells\" [matColumnDef]=\"cell.defId\">\n <td mat-footer-cell *matFooterCellDef [attr.colspan]=\"cell.colspan\"\n [attr.column-id]=\"cell.columnId\" class=\"footer-cell\">\n <aup-table-footer-row *ngIf=\"!cell.filler\" [cell]=\"cell\"></aup-table-footer-row>\n </td>\n </ng-container>\n <tr mat-footer-row *matFooterRowDef=\"footer.defIds; sticky: true\" [ngClass]=\"footer.rowClasses\"\n [class.aup-footer-row-hidden]=\"footer.visible$ && !footer.visible$.value\"></tr>\n </ng-container>\n\n </table>\n <div #endOfRows class=\"end-of-rows\" aria-hidden=\"true\"></div>\n</div>\n\n<cdk-virtual-scroll-viewport *ngIf=\"scrollMode$.value === 'virtual'\" aup-scroll-container\n [@.disabled]=\"animationsDisabled$.value\"\n [tvsItemSize]=\"rowHeight$.value\"\n [headerHeight]=\"headerHeight$.value\"\n [footerEnabled]=\"(footerRowDefs$?.value?.length ?? 0) > 0\"\n [footerHeight]=\"48 * (footerRowDefs$?.value?.length ?? 0)\"\n [bufferMultiplier]=\"bufferMultiplier\"\n>\n <table mat-table [dataSource]=\"virtualScrollDataSource\" [trackBy]=\"trackBy\">\n\n <ng-container *ngFor=\"let column of columns$.value; index as index; first as first; last as last\"\n matColumnDef=\"{{column.columnId}}\">\n <th mat-header-cell *matHeaderCellDef [class.flex]=\"column.isFlex()\" [class.hide]=\"!column.isVisible()\">\n <aup-table-header-cell [column]=\"column\"\n [attr.column-index]=\"index\"\n [attr.column-id]=\"column.columnId\"\n [class]=\"getColumnClasses(column.columnId)\"\n ></aup-table-header-cell>\n </th>\n <td mat-cell *matCellDef=\"let row\" (click)=\"notifyCellClicked(column, row)\"\n [class.enable-cursor]=\"tableModel.isCursorEnabledForRow(column, row)\"\n [class.flex]=\"column.isFlex()\"\n [class.hide]=\"!column.isVisible()\"\n >\n <aup-table-cell [column]=\"$any(column)\"\n [row]=\"row\"\n [tableModel]=\"$any(tableModel)\"\n [attr.column-index]=\"index\"\n [attr.column-id]=\"column.columnId\"\n [class]=\"getColumnClasses(column.columnId)\"\n [aupHighlightTextModel]=\"highlightTextFor($any(column))\"\n ></aup-table-cell>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"columnIds$.value; sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: columnIds$.value; let i = index\"\n [ngClass]=\"tableModel.getRowClasses(row)\"\n [class.enable-hover]=\"tableModel.isHoverEnabledForRow(row)\"\n [aupTableRowAttributes]=\"tableModel.getRowAttributes(row)\"\n [attr.aup-row-id]=\"trackBy(i, row)\"\n ></tr>\n\n <ng-container *ngFor=\"let footer of footerRowDefs$.value\">\n <ng-container *ngFor=\"let cell of footer.cells\" [matColumnDef]=\"cell.defId\">\n <td mat-footer-cell *matFooterCellDef [attr.colspan]=\"cell.colspan\"\n [attr.column-id]=\"cell.columnId\" class=\"footer-cell\">\n <aup-table-footer-row *ngIf=\"!cell.filler\" [cell]=\"cell\"></aup-table-footer-row>\n </td>\n </ng-container>\n <tr mat-footer-row *matFooterRowDef=\"footer.defIds; sticky: true\" [ngClass]=\"footer.rowClasses\"\n [class.aup-footer-row-hidden]=\"footer.visible$ && !footer.visible$.value\"></tr>\n </ng-container>\n\n\n </table>\n</cdk-virtual-scroll-viewport>\n\n", styles: [":host{--enter-animation-duration: .1s;display:flex;flex-direction:column;align-items:stretch}:host.aup-animations-disabled{--enter-animation-duration: 0ms}:host table{width:100%}:host tr.aup-footer-row-hidden{display:none}:host td.footer-cell{border-top:0!important;box-shadow:0 -1px 0 0 var(--mat-table-row-item-outline-color, rgba(0, 0, 0, .12))}:host[scrollMode=virtual] cdk-virtual-scroll-viewport{flex:1}:host[scrollMode=virtual] table th{height:var(--aup-table-header-height);max-height:var(--aup-table-header-height);min-height:var(--aup-table-header-height)}:host[scrollMode=virtual] table td{height:var(--aup-table-row-height);max-height:var(--aup-table-row-height);min-height:var(--aup-table-row-height)}:host[scrollMode=classic]{min-height:0}:host[scrollMode=classic] .classic-scroll-container{flex:1;flex-basis:0;overflow-y:auto;display:flex;flex-direction:column;align-items:stretch}:host.hold-scroll-position .classic-scroll-container{overflow-anchor:none}.end-of-rows{height:1px;pointer-events: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: HighlightTextModelDirective, selector: "[aupHighlightTextModel]", inputs: ["aupHighlightTextModel"] }, { kind: "component", type: i3$3.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i3$3.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i3$3.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i3$3.MatColumnDef, selector: "[matColumnDef]", inputs: ["sticky", "matColumnDef"] }, { kind: "directive", type: i3$3.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i3$3.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i3$3.MatFooterCellDef, selector: "[matFooterCellDef]" }, { kind: "directive", type: i3$3.MatFooterRowDef, selector: "[matFooterRowDef]", inputs: ["matFooterRowDef", "matFooterRowDefSticky"] }, { kind: "directive", type: i3$3.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i3$3.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "directive", type: i3$3.MatFooterCell, selector: "mat-footer-cell, td[mat-footer-cell]" }, { kind: "component", type: i3$3.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i3$3.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "component", type: i3$3.MatFooterRow, selector: "mat-footer-row, tr[mat-footer-row]", exportAs: ["matFooterRow"] }, { kind: "component", type: i1$2.CdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation", "appendOnly"], outputs: ["scrolledIndexChange"] }, { kind: "directive", type: i5$2.TableItemSizeDirective, selector: "cdk-virtual-scroll-viewport[tvsItemSize]", inputs: ["tvsItemSize", "headerEnabled", "headerHeight", "footerEnabled", "footerHeight", "bufferMultiplier"] }, { kind: "directive", type: TableRowAttributesDirective, selector: "[aupTableRowAttributes]", inputs: ["aupTableRowAttributes"] }, { kind: "component", type: TableCellComponent, selector: "aup-table-cell", inputs: ["row", "column", "tableModel"] }, { kind: "component", type: TableHeaderCellComponent, selector: "aup-table-header-cell", inputs: ["column"] }, { kind: "component", type: TableFooterRow, selector: "aup-table-footer-row", inputs: ["cell"] }] });
|
|
8044
|
+
], viewQueries: [{ propertyName: "scrollViewport", first: true, predicate: CdkVirtualScrollViewport, descendants: true }, { propertyName: "classicScrollContainer", first: true, predicate: ["classicScrollContainer"], descendants: true }, { propertyName: "endOfRowsMarker", first: true, predicate: ["endOfRowsMarker"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<!-- Reads the loading row's message to screen readers. It is in the page before the message appears in it, as a\n screen reader announces only a change to a status region it already knows, and the loading row is hidden while\n no chunk is on its way. -->\n<div *ngIf=\"tableModel._loadingRow as loadingRow\" role=\"status\" class=\"loading-status\">{{ loadingRowShown$.value ? loadingRow.message() : '' }}</div>\n\n<div #classicScrollContainer class=\"classic-scroll-container\" aup-table-scroller *ngIf=\"scrollMode$.value !== 'virtual'\">\n <table mat-table [dataSource]=\"data$.value\" [trackBy]=\"trackBy\" [multiTemplateDataRows]>\n\n <ng-container *ngFor=\"let column of columns$.value; index as index; first as first; last as last\"\n matColumnDef=\"{{column.columnId}}\">\n <th mat-header-cell *matHeaderCellDef [class.flex]=\"column.isFlex()\" [class.hide]=\"!column.isVisible()\">\n <aup-table-header-cell [column]=\"$any(column)\"\n [attr.column-index]=\"index\"\n [attr.column-id]=\"column.columnId\"\n [class]=\"getColumnClasses(column.columnId)\"\n ></aup-table-header-cell>\n </th>\n <td mat-cell *matCellDef=\"let row\" (click)=\"notifyCellClicked(column, row)\"\n [class.enable-cursor]=\"tableModel.isCursorEnabledForRow(column, row)\"\n [class.flex]=\"column.isFlex()\"\n [class.hide]=\"!column.isVisible()\"\n >\n <aup-table-cell [column]=\"$any(column)\"\n [row]=\"row\"\n [tableModel]=\"$any(tableModel)\"\n [attr.column-index]=\"index\"\n [attr.column-id]=\"column.columnId\"\n [class]=\"getColumnClasses(column.columnId)\"\n [aupHighlightTextModel]=\"highlightTextFor($any(column))\"\n ></aup-table-cell>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"columnIds$.value; sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: columnIds$.value; let i = index\"\n [ngClass]=\"tableModel.getRowClasses(row)\"\n [class.enable-hover]=\"tableModel.isHoverEnabledForRow(row)\"\n [aupTableRowAttributes]=\"tableModel.getRowAttributes(row)\"\n [attr.aup-row-id]=\"trackBy(i, row)\"\n ></tr>\n\n <!-- The loading row, pinned to the bottom of the table above any other footer row. The status region outside the\n table reads its message to screen readers, so the row itself is hidden from them. -->\n <ng-container *ngIf=\"tableModel._loadingRow as loadingRow\" matColumnDef=\"aup-loading-row\">\n <td mat-footer-cell *matFooterCellDef [attr.colspan]=\"columnIds$.value.length\" class=\"footer-cell loading-row-cell\">\n <div *ngIf=\"loadingRowShown$.value\" class=\"loading-row\" aup-loading-row aria-hidden=\"true\">\n <mat-progress-spinner mode=\"indeterminate\" [diameter]=\"20\"></mat-progress-spinner>\n <span>{{ loadingRow.message() }}</span>\n </div>\n </td>\n <tr mat-footer-row *matFooterRowDef=\"['aup-loading-row']; sticky: true\" class=\"loading-footer-row\"\n [class.aup-footer-row-hidden]=\"!loadingRowShown$.value\"></tr>\n </ng-container>\n\n <ng-container *ngFor=\"let footer of footerRowDefs$.value\">\n <ng-container *ngFor=\"let cell of footer.cells\" [matColumnDef]=\"cell.defId\">\n <td mat-footer-cell *matFooterCellDef [attr.colspan]=\"cell.colspan\"\n [attr.column-id]=\"cell.columnId\" class=\"footer-cell\">\n <aup-table-footer-row *ngIf=\"!cell.filler\" [cell]=\"cell\"></aup-table-footer-row>\n </td>\n </ng-container>\n <tr mat-footer-row *matFooterRowDef=\"footer.defIds; sticky: true\" [ngClass]=\"footer.rowClasses\"\n [class.aup-footer-row-hidden]=\"footer.visible$ && !footer.visible$.value\"></tr>\n </ng-container>\n\n </table>\n <!-- The marker after the last row, watched to tell when the end of the rows is in view. -->\n <div #endOfRowsMarker *ngIf=\"tableModel._endOfRows && scrollMode$.value === 'classic'\" class=\"end-of-rows\" aria-hidden=\"true\"></div>\n</div>\n\n<cdk-virtual-scroll-viewport *ngIf=\"scrollMode$.value === 'virtual'\" aup-table-scroller\n [@.disabled]=\"animationsDisabled$.value\"\n [tvsItemSize]=\"rowHeight$.value\"\n [headerHeight]=\"headerHeight$.value\"\n [footerEnabled]=\"(footerRowDefs$?.value?.length ?? 0) > 0\"\n [footerHeight]=\"48 * (footerRowDefs$?.value?.length ?? 0)\"\n [bufferMultiplier]=\"bufferMultiplier\"\n>\n <table mat-table [dataSource]=\"virtualScrollDataSource\" [trackBy]=\"trackBy\">\n\n <ng-container *ngFor=\"let column of columns$.value; index as index; first as first; last as last\"\n matColumnDef=\"{{column.columnId}}\">\n <th mat-header-cell *matHeaderCellDef [class.flex]=\"column.isFlex()\" [class.hide]=\"!column.isVisible()\">\n <aup-table-header-cell [column]=\"column\"\n [attr.column-index]=\"index\"\n [attr.column-id]=\"column.columnId\"\n [class]=\"getColumnClasses(column.columnId)\"\n ></aup-table-header-cell>\n </th>\n <td mat-cell *matCellDef=\"let row\" (click)=\"notifyCellClicked(column, row)\"\n [class.enable-cursor]=\"tableModel.isCursorEnabledForRow(column, row)\"\n [class.flex]=\"column.isFlex()\"\n [class.hide]=\"!column.isVisible()\"\n >\n <aup-table-cell [column]=\"$any(column)\"\n [row]=\"row\"\n [tableModel]=\"$any(tableModel)\"\n [attr.column-index]=\"index\"\n [attr.column-id]=\"column.columnId\"\n [class]=\"getColumnClasses(column.columnId)\"\n [aupHighlightTextModel]=\"highlightTextFor($any(column))\"\n ></aup-table-cell>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"columnIds$.value; sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: columnIds$.value; let i = index\"\n [ngClass]=\"tableModel.getRowClasses(row)\"\n [class.enable-hover]=\"tableModel.isHoverEnabledForRow(row)\"\n [aupTableRowAttributes]=\"tableModel.getRowAttributes(row)\"\n [attr.aup-row-id]=\"trackBy(i, row)\"\n ></tr>\n\n <!-- The loading row, pinned to the bottom of the table above any other footer row. The status region outside the\n table reads its message to screen readers, so the row itself is hidden from them. -->\n <ng-container *ngIf=\"tableModel._loadingRow as loadingRow\" matColumnDef=\"aup-loading-row\">\n <td mat-footer-cell *matFooterCellDef [attr.colspan]=\"columnIds$.value.length\" class=\"footer-cell loading-row-cell\">\n <div *ngIf=\"loadingRowShown$.value\" class=\"loading-row\" aup-loading-row aria-hidden=\"true\">\n <mat-progress-spinner mode=\"indeterminate\" [diameter]=\"20\"></mat-progress-spinner>\n <span>{{ loadingRow.message() }}</span>\n </div>\n </td>\n <tr mat-footer-row *matFooterRowDef=\"['aup-loading-row']; sticky: true\" class=\"loading-footer-row\"\n [class.aup-footer-row-hidden]=\"!loadingRowShown$.value\"></tr>\n </ng-container>\n\n <ng-container *ngFor=\"let footer of footerRowDefs$.value\">\n <ng-container *ngFor=\"let cell of footer.cells\" [matColumnDef]=\"cell.defId\">\n <td mat-footer-cell *matFooterCellDef [attr.colspan]=\"cell.colspan\"\n [attr.column-id]=\"cell.columnId\" class=\"footer-cell\">\n <aup-table-footer-row *ngIf=\"!cell.filler\" [cell]=\"cell\"></aup-table-footer-row>\n </td>\n </ng-container>\n <tr mat-footer-row *matFooterRowDef=\"footer.defIds; sticky: true\" [ngClass]=\"footer.rowClasses\"\n [class.aup-footer-row-hidden]=\"footer.visible$ && !footer.visible$.value\"></tr>\n </ng-container>\n\n\n </table>\n</cdk-virtual-scroll-viewport>\n\n", styles: [":host{--enter-animation-duration: .1s;display:flex;flex-direction:column;align-items:stretch}:host.aup-animations-disabled{--enter-animation-duration: 0ms}:host table{width:100%}:host tr.aup-footer-row-hidden{display:none}:host td.footer-cell{border-top:0!important;box-shadow:0 -1px 0 0 var(--mat-table-row-item-outline-color, rgba(0, 0, 0, .12))}:host[scrollMode=virtual] cdk-virtual-scroll-viewport{flex:1}:host[scrollMode=virtual] table th{height:var(--aup-table-header-height);max-height:var(--aup-table-header-height);min-height:var(--aup-table-header-height)}:host[scrollMode=virtual] table td{height:var(--aup-table-row-height);max-height:var(--aup-table-row-height);min-height:var(--aup-table-row-height)}:host[scrollMode=classic]{min-height:0}:host[scrollMode=classic] .classic-scroll-container{flex:1;flex-basis:0;overflow-y:auto;display:flex;flex-direction:column;align-items:stretch}:host.hold-scroll-position .classic-scroll-container{overflow-anchor:none}td.loading-row-cell{padding:0}.loading-row{display:flex;align-items:center;justify-content:center;gap:12px;height:var(--aup-table-row-height);color:var(--aup-table-loading-row-color, inherit)}.loading-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.end-of-rows{height:1px;flex-shrink:0;pointer-events: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: HighlightTextModelDirective, selector: "[aupHighlightTextModel]", inputs: ["aupHighlightTextModel"] }, { kind: "component", type: i3$3.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i3$3.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i3$3.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i3$3.MatColumnDef, selector: "[matColumnDef]", inputs: ["sticky", "matColumnDef"] }, { kind: "directive", type: i3$3.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i3$3.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i3$3.MatFooterCellDef, selector: "[matFooterCellDef]" }, { kind: "directive", type: i3$3.MatFooterRowDef, selector: "[matFooterRowDef]", inputs: ["matFooterRowDef", "matFooterRowDefSticky"] }, { kind: "directive", type: i3$3.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i3$3.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "directive", type: i3$3.MatFooterCell, selector: "mat-footer-cell, td[mat-footer-cell]" }, { kind: "component", type: i3$3.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i3$3.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "component", type: i3$3.MatFooterRow, selector: "mat-footer-row, tr[mat-footer-row]", exportAs: ["matFooterRow"] }, { kind: "component", type: i2$1.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "component", type: i5.CdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation", "appendOnly"], outputs: ["scrolledIndexChange"] }, { kind: "directive", type: i6.TableItemSizeDirective, selector: "cdk-virtual-scroll-viewport[tvsItemSize]", inputs: ["tvsItemSize", "headerEnabled", "headerHeight", "footerEnabled", "footerHeight", "bufferMultiplier"] }, { kind: "directive", type: TableRowAttributesDirective, selector: "[aupTableRowAttributes]", inputs: ["aupTableRowAttributes"] }, { kind: "component", type: TableCellComponent, selector: "aup-table-cell", inputs: ["row", "column", "tableModel"] }, { kind: "component", type: TableHeaderCellComponent, selector: "aup-table-header-cell", inputs: ["column"] }, { kind: "component", type: TableFooterRow, selector: "aup-table-footer-row", inputs: ["cell"] }] });
|
|
7716
8045
|
}
|
|
7717
8046
|
__decorate([
|
|
7718
8047
|
Proxify(),
|
|
@@ -7742,7 +8071,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
7742
8071
|
type: Component,
|
|
7743
8072
|
args: [{ selector: "aup-table-body", providers: [
|
|
7744
8073
|
{ provide: AUP_DETACHED_PARENT_CDR, useFactory: () => inject(AUP_TABLE_OPTIMIZED_CHANGE_DETECTION, { optional: true }) ? inject(ChangeDetectorRef) : null }
|
|
7745
|
-
], template: "\n<div #classicScrollContainer class=\"classic-scroll-container\" aup-
|
|
8074
|
+
], template: "<!-- Reads the loading row's message to screen readers. It is in the page before the message appears in it, as a\n screen reader announces only a change to a status region it already knows, and the loading row is hidden while\n no chunk is on its way. -->\n<div *ngIf=\"tableModel._loadingRow as loadingRow\" role=\"status\" class=\"loading-status\">{{ loadingRowShown$.value ? loadingRow.message() : '' }}</div>\n\n<div #classicScrollContainer class=\"classic-scroll-container\" aup-table-scroller *ngIf=\"scrollMode$.value !== 'virtual'\">\n <table mat-table [dataSource]=\"data$.value\" [trackBy]=\"trackBy\" [multiTemplateDataRows]>\n\n <ng-container *ngFor=\"let column of columns$.value; index as index; first as first; last as last\"\n matColumnDef=\"{{column.columnId}}\">\n <th mat-header-cell *matHeaderCellDef [class.flex]=\"column.isFlex()\" [class.hide]=\"!column.isVisible()\">\n <aup-table-header-cell [column]=\"$any(column)\"\n [attr.column-index]=\"index\"\n [attr.column-id]=\"column.columnId\"\n [class]=\"getColumnClasses(column.columnId)\"\n ></aup-table-header-cell>\n </th>\n <td mat-cell *matCellDef=\"let row\" (click)=\"notifyCellClicked(column, row)\"\n [class.enable-cursor]=\"tableModel.isCursorEnabledForRow(column, row)\"\n [class.flex]=\"column.isFlex()\"\n [class.hide]=\"!column.isVisible()\"\n >\n <aup-table-cell [column]=\"$any(column)\"\n [row]=\"row\"\n [tableModel]=\"$any(tableModel)\"\n [attr.column-index]=\"index\"\n [attr.column-id]=\"column.columnId\"\n [class]=\"getColumnClasses(column.columnId)\"\n [aupHighlightTextModel]=\"highlightTextFor($any(column))\"\n ></aup-table-cell>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"columnIds$.value; sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: columnIds$.value; let i = index\"\n [ngClass]=\"tableModel.getRowClasses(row)\"\n [class.enable-hover]=\"tableModel.isHoverEnabledForRow(row)\"\n [aupTableRowAttributes]=\"tableModel.getRowAttributes(row)\"\n [attr.aup-row-id]=\"trackBy(i, row)\"\n ></tr>\n\n <!-- The loading row, pinned to the bottom of the table above any other footer row. The status region outside the\n table reads its message to screen readers, so the row itself is hidden from them. -->\n <ng-container *ngIf=\"tableModel._loadingRow as loadingRow\" matColumnDef=\"aup-loading-row\">\n <td mat-footer-cell *matFooterCellDef [attr.colspan]=\"columnIds$.value.length\" class=\"footer-cell loading-row-cell\">\n <div *ngIf=\"loadingRowShown$.value\" class=\"loading-row\" aup-loading-row aria-hidden=\"true\">\n <mat-progress-spinner mode=\"indeterminate\" [diameter]=\"20\"></mat-progress-spinner>\n <span>{{ loadingRow.message() }}</span>\n </div>\n </td>\n <tr mat-footer-row *matFooterRowDef=\"['aup-loading-row']; sticky: true\" class=\"loading-footer-row\"\n [class.aup-footer-row-hidden]=\"!loadingRowShown$.value\"></tr>\n </ng-container>\n\n <ng-container *ngFor=\"let footer of footerRowDefs$.value\">\n <ng-container *ngFor=\"let cell of footer.cells\" [matColumnDef]=\"cell.defId\">\n <td mat-footer-cell *matFooterCellDef [attr.colspan]=\"cell.colspan\"\n [attr.column-id]=\"cell.columnId\" class=\"footer-cell\">\n <aup-table-footer-row *ngIf=\"!cell.filler\" [cell]=\"cell\"></aup-table-footer-row>\n </td>\n </ng-container>\n <tr mat-footer-row *matFooterRowDef=\"footer.defIds; sticky: true\" [ngClass]=\"footer.rowClasses\"\n [class.aup-footer-row-hidden]=\"footer.visible$ && !footer.visible$.value\"></tr>\n </ng-container>\n\n </table>\n <!-- The marker after the last row, watched to tell when the end of the rows is in view. -->\n <div #endOfRowsMarker *ngIf=\"tableModel._endOfRows && scrollMode$.value === 'classic'\" class=\"end-of-rows\" aria-hidden=\"true\"></div>\n</div>\n\n<cdk-virtual-scroll-viewport *ngIf=\"scrollMode$.value === 'virtual'\" aup-table-scroller\n [@.disabled]=\"animationsDisabled$.value\"\n [tvsItemSize]=\"rowHeight$.value\"\n [headerHeight]=\"headerHeight$.value\"\n [footerEnabled]=\"(footerRowDefs$?.value?.length ?? 0) > 0\"\n [footerHeight]=\"48 * (footerRowDefs$?.value?.length ?? 0)\"\n [bufferMultiplier]=\"bufferMultiplier\"\n>\n <table mat-table [dataSource]=\"virtualScrollDataSource\" [trackBy]=\"trackBy\">\n\n <ng-container *ngFor=\"let column of columns$.value; index as index; first as first; last as last\"\n matColumnDef=\"{{column.columnId}}\">\n <th mat-header-cell *matHeaderCellDef [class.flex]=\"column.isFlex()\" [class.hide]=\"!column.isVisible()\">\n <aup-table-header-cell [column]=\"column\"\n [attr.column-index]=\"index\"\n [attr.column-id]=\"column.columnId\"\n [class]=\"getColumnClasses(column.columnId)\"\n ></aup-table-header-cell>\n </th>\n <td mat-cell *matCellDef=\"let row\" (click)=\"notifyCellClicked(column, row)\"\n [class.enable-cursor]=\"tableModel.isCursorEnabledForRow(column, row)\"\n [class.flex]=\"column.isFlex()\"\n [class.hide]=\"!column.isVisible()\"\n >\n <aup-table-cell [column]=\"$any(column)\"\n [row]=\"row\"\n [tableModel]=\"$any(tableModel)\"\n [attr.column-index]=\"index\"\n [attr.column-id]=\"column.columnId\"\n [class]=\"getColumnClasses(column.columnId)\"\n [aupHighlightTextModel]=\"highlightTextFor($any(column))\"\n ></aup-table-cell>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"columnIds$.value; sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: columnIds$.value; let i = index\"\n [ngClass]=\"tableModel.getRowClasses(row)\"\n [class.enable-hover]=\"tableModel.isHoverEnabledForRow(row)\"\n [aupTableRowAttributes]=\"tableModel.getRowAttributes(row)\"\n [attr.aup-row-id]=\"trackBy(i, row)\"\n ></tr>\n\n <!-- The loading row, pinned to the bottom of the table above any other footer row. The status region outside the\n table reads its message to screen readers, so the row itself is hidden from them. -->\n <ng-container *ngIf=\"tableModel._loadingRow as loadingRow\" matColumnDef=\"aup-loading-row\">\n <td mat-footer-cell *matFooterCellDef [attr.colspan]=\"columnIds$.value.length\" class=\"footer-cell loading-row-cell\">\n <div *ngIf=\"loadingRowShown$.value\" class=\"loading-row\" aup-loading-row aria-hidden=\"true\">\n <mat-progress-spinner mode=\"indeterminate\" [diameter]=\"20\"></mat-progress-spinner>\n <span>{{ loadingRow.message() }}</span>\n </div>\n </td>\n <tr mat-footer-row *matFooterRowDef=\"['aup-loading-row']; sticky: true\" class=\"loading-footer-row\"\n [class.aup-footer-row-hidden]=\"!loadingRowShown$.value\"></tr>\n </ng-container>\n\n <ng-container *ngFor=\"let footer of footerRowDefs$.value\">\n <ng-container *ngFor=\"let cell of footer.cells\" [matColumnDef]=\"cell.defId\">\n <td mat-footer-cell *matFooterCellDef [attr.colspan]=\"cell.colspan\"\n [attr.column-id]=\"cell.columnId\" class=\"footer-cell\">\n <aup-table-footer-row *ngIf=\"!cell.filler\" [cell]=\"cell\"></aup-table-footer-row>\n </td>\n </ng-container>\n <tr mat-footer-row *matFooterRowDef=\"footer.defIds; sticky: true\" [ngClass]=\"footer.rowClasses\"\n [class.aup-footer-row-hidden]=\"footer.visible$ && !footer.visible$.value\"></tr>\n </ng-container>\n\n\n </table>\n</cdk-virtual-scroll-viewport>\n\n", styles: [":host{--enter-animation-duration: .1s;display:flex;flex-direction:column;align-items:stretch}:host.aup-animations-disabled{--enter-animation-duration: 0ms}:host table{width:100%}:host tr.aup-footer-row-hidden{display:none}:host td.footer-cell{border-top:0!important;box-shadow:0 -1px 0 0 var(--mat-table-row-item-outline-color, rgba(0, 0, 0, .12))}:host[scrollMode=virtual] cdk-virtual-scroll-viewport{flex:1}:host[scrollMode=virtual] table th{height:var(--aup-table-header-height);max-height:var(--aup-table-header-height);min-height:var(--aup-table-header-height)}:host[scrollMode=virtual] table td{height:var(--aup-table-row-height);max-height:var(--aup-table-row-height);min-height:var(--aup-table-row-height)}:host[scrollMode=classic]{min-height:0}:host[scrollMode=classic] .classic-scroll-container{flex:1;flex-basis:0;overflow-y:auto;display:flex;flex-direction:column;align-items:stretch}:host.hold-scroll-position .classic-scroll-container{overflow-anchor:none}td.loading-row-cell{padding:0}.loading-row{display:flex;align-items:center;justify-content:center;gap:12px;height:var(--aup-table-row-height);color:var(--aup-table-loading-row-color, inherit)}.loading-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.end-of-rows{height:1px;flex-shrink:0;pointer-events:none}\n"] }]
|
|
7746
8075
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
7747
8076
|
type: Inject,
|
|
7748
8077
|
args: [AUP_TABLE_VIRTUAL_SCROLL_BUFFER_MULTIPLIER]
|
|
@@ -7778,9 +8107,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
7778
8107
|
}], classicScrollContainer: [{
|
|
7779
8108
|
type: ViewChild,
|
|
7780
8109
|
args: ['classicScrollContainer']
|
|
7781
|
-
}],
|
|
8110
|
+
}], endOfRowsMarker: [{
|
|
7782
8111
|
type: ViewChild,
|
|
7783
|
-
args: ['
|
|
8112
|
+
args: ['endOfRowsMarker']
|
|
7784
8113
|
}], baseCssClass: [{
|
|
7785
8114
|
type: HostBinding,
|
|
7786
8115
|
args: ["class"]
|
|
@@ -7797,10 +8126,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
7797
8126
|
type: HostBinding,
|
|
7798
8127
|
args: ["style.--aup-table-row-height"]
|
|
7799
8128
|
}] } });
|
|
7800
|
-
(function (TableBodyComponent) {
|
|
7801
|
-
/** How far below the visible bottom the end of the rows counts as in view: about four rows. */
|
|
7802
|
-
TableBodyComponent.END_OF_ROWS_MARGIN_PIXELS = 200;
|
|
7803
|
-
})(TableBodyComponent || (TableBodyComponent = {}));
|
|
7804
8129
|
|
|
7805
8130
|
class LoadableComponent extends DisposableComponent {
|
|
7806
8131
|
#_loaded$ = new MutableValueModel();
|
|
@@ -8167,6 +8492,7 @@ class TableModel extends AbstractTableModel {
|
|
|
8167
8492
|
* --aup-table-row-selected-background-color: rebeccapurple; // defaults to transparent
|
|
8168
8493
|
* --aup-table-first-column-padding-left: 18px // defaults to --column-gap
|
|
8169
8494
|
* --aup-table-last-column-padding-right: 18px // defaults to --column-gap
|
|
8495
|
+
* --aup-table-loading-row-color: grey; // the row showLoadingRowWhile shows; defaults to the text colour
|
|
8170
8496
|
* }
|
|
8171
8497
|
*
|
|
8172
8498
|
* // per table settings.
|
|
@@ -8191,6 +8517,14 @@ class TableModel extends AbstractTableModel {
|
|
|
8191
8517
|
* }
|
|
8192
8518
|
* }
|
|
8193
8519
|
* }
|
|
8520
|
+
*
|
|
8521
|
+
* Testing hooks
|
|
8522
|
+
*
|
|
8523
|
+
* Every table marks what a test needs to drive it as a reader would:
|
|
8524
|
+
* - the element that contains the rows carries `aup-table-scroller` whatever the scroll mode, so a test can scroll a
|
|
8525
|
+
* table that scrolls;
|
|
8526
|
+
* - each row carries its id as `aup-row-id`, so a test can find a row where it is drawn;
|
|
8527
|
+
* - the row `showLoadingRowWhile` shows carries `aup-loading-row`.
|
|
8194
8528
|
*/
|
|
8195
8529
|
class TableComponent extends AbstractTableComponent {
|
|
8196
8530
|
#tableModel_accessor_storage = proxify((TableModel));
|
|
@@ -8214,12 +8548,10 @@ class TableComponent extends AbstractTableComponent {
|
|
|
8214
8548
|
/**
|
|
8215
8549
|
* Set to true to keep the rows in view where they are when rows are inserted, removed or resized above
|
|
8216
8550
|
* them, so a reader scrolled down the table is not moved. At the top of the table nothing is held, so a
|
|
8217
|
-
* row inserted there comes into view.
|
|
8218
|
-
*
|
|
8219
|
-
*
|
|
8220
|
-
*
|
|
8221
|
-
* The element that scrolls the rows, in either scroll mode, carries the attribute `aup-scroll-container`,
|
|
8222
|
-
* and each row its id as `aup-row-id`, so a test can scroll the table and find a row where it is drawn.
|
|
8551
|
+
* row inserted there comes into view. It applies only while the table scrolls classically, with
|
|
8552
|
+
* `enableScrolling` and `scrollMode="classic"`, and only to rows with an identity of their own, a list
|
|
8553
|
+
* `identifiedBy` an id, because a row is found again by its id. In development, a table set to hold
|
|
8554
|
+
* without either warns in the console.
|
|
8223
8555
|
*/
|
|
8224
8556
|
holdScrollPosition = false;
|
|
8225
8557
|
_footerContentAdded = false;
|
|
@@ -8252,26 +8584,51 @@ class TableComponent extends AbstractTableComponent {
|
|
|
8252
8584
|
if (isDevMode() && this.holdScrollPosition) {
|
|
8253
8585
|
this.warnWhereHoldingCannotWork();
|
|
8254
8586
|
}
|
|
8587
|
+
if (isDevMode() && this.tableModel._endOfRows) {
|
|
8588
|
+
this.warnWhereEndOfRowsCannotBeWatched();
|
|
8589
|
+
}
|
|
8255
8590
|
}
|
|
8256
8591
|
/**
|
|
8257
8592
|
* Warns of a table set to hold its scroll position where it cannot. Nothing fails otherwise: the
|
|
8258
8593
|
* table moves the rows the reader is on, or holds the wrong one.
|
|
8259
8594
|
*/
|
|
8260
8595
|
warnWhereHoldingCannotWork() {
|
|
8261
|
-
if (this.tableBodyScrollMode$.value !== 'classic') {
|
|
8262
|
-
console.warn('aup-table: holdScrollPosition applies with scrollMode="classic" only, so this table holds nothing.');
|
|
8263
|
-
}
|
|
8264
|
-
// The list may hold its rows already, or receive them later, so the first row is checked either way.
|
|
8265
8596
|
const { chain, when } = Dsl.disposeWith(this);
|
|
8266
|
-
|
|
8597
|
+
// A table can switch scroll mode after it starts, as a layout changes, so the mode is checked whenever it changes.
|
|
8598
|
+
let warnedOfScrollMode = false;
|
|
8599
|
+
when(this.tableBodyScrollMode$).changes(mode => {
|
|
8600
|
+
if (!warnedOfScrollMode && mode !== 'classic') {
|
|
8601
|
+
warnedOfScrollMode = true;
|
|
8602
|
+
console.warn('aup-table: holdScrollPosition applies only while a table scrolls classically, with enableScrolling and '
|
|
8603
|
+
+ 'scrollMode="classic", so this table holds nothing while it does not.');
|
|
8604
|
+
}
|
|
8605
|
+
}, { initialValue: 'triggerChangeUnlessNil' });
|
|
8606
|
+
// The list may hold its rows already, or receive them later, so the first row is checked either way.
|
|
8607
|
+
let warnedOfIds = false;
|
|
8267
8608
|
when(chain(this._dataSource$).first()).changes(row => {
|
|
8268
|
-
if (!
|
|
8269
|
-
|
|
8609
|
+
if (!warnedOfIds && this.hasNoId(row)) {
|
|
8610
|
+
warnedOfIds = true;
|
|
8270
8611
|
console.warn('aup-table: holdScrollPosition finds the rows in view again by their ids, and these rows have none, '
|
|
8271
8612
|
+ 'so it can hold the wrong row. Identify the list by an id, with identifiedBy.');
|
|
8272
8613
|
}
|
|
8273
8614
|
}, { initialValue: 'triggerChangeUnlessNil' });
|
|
8274
8615
|
}
|
|
8616
|
+
/**
|
|
8617
|
+
* Warns of a page that watches the end of a table's rows where the table cannot measure it. Nothing fails otherwise:
|
|
8618
|
+
* the end of the rows never comes into view, so a page that waits for it loads nothing.
|
|
8619
|
+
*/
|
|
8620
|
+
warnWhereEndOfRowsCannotBeWatched() {
|
|
8621
|
+
const { when } = Dsl.disposeWith(this);
|
|
8622
|
+
// A table can switch scroll mode after it starts, as a layout changes, so the mode is checked whenever it changes.
|
|
8623
|
+
let warned = false;
|
|
8624
|
+
when(this.tableBodyScrollMode$).changes(mode => {
|
|
8625
|
+
if (!warned && mode !== 'classic') {
|
|
8626
|
+
warned = true;
|
|
8627
|
+
console.warn('aup-table: watchEndOfRows measures only while a table scrolls classically, with enableScrolling and '
|
|
8628
|
+
+ 'scrollMode="classic", so the end of this table\'s rows never comes into view while it does not.');
|
|
8629
|
+
}
|
|
8630
|
+
}, { initialValue: 'triggerChangeUnlessNil' });
|
|
8631
|
+
}
|
|
8275
8632
|
getModel() {
|
|
8276
8633
|
return this.tableModel;
|
|
8277
8634
|
}
|
|
@@ -9126,7 +9483,7 @@ class VerticalFocusContainerComponent extends FocusContainerComponent {
|
|
|
9126
9483
|
constructor(focusManager) {
|
|
9127
9484
|
super(focusManager);
|
|
9128
9485
|
}
|
|
9129
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: VerticalFocusContainerComponent, deps: [{ token: i1$
|
|
9486
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: VerticalFocusContainerComponent, deps: [{ token: i1$2.FocusManager, self: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
9130
9487
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: VerticalFocusContainerComponent, selector: "aup-vertical-focus-container", inputs: { rightArrowCommand: ["command.arrowRight", "rightArrowCommand"], leftArrowCommand: ["command.arrowLeft", "leftArrowCommand"] }, host: { listeners: { "keyup.arrowLeft": "arrowLeft($event)", "keyup.arrowRight": "arrowRight($event)", "keyup.arrowDown": "arrowDown($event)", "keyup.arrowUp": "arrowUp($event)" } }, providers: [
|
|
9131
9488
|
{ provide: FocusManager }
|
|
9132
9489
|
], usesInheritance: true, ngImport: i0, template: "<ng-content></ng-content>\n", styles: [":host{display:block}\n"] });
|
|
@@ -9144,7 +9501,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
9144
9501
|
args: [{ selector: 'aup-vertical-focus-container', providers: [
|
|
9145
9502
|
{ provide: FocusManager }
|
|
9146
9503
|
], template: "<ng-content></ng-content>\n", styles: [":host{display:block}\n"] }]
|
|
9147
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
9504
|
+
}], ctorParameters: function () { return [{ type: i1$2.FocusManager, decorators: [{
|
|
9148
9505
|
type: Self
|
|
9149
9506
|
}] }]; }, propDecorators: { rightArrowCommand: [{
|
|
9150
9507
|
type: Input,
|
|
@@ -12111,7 +12468,7 @@ class UrlService {
|
|
|
12111
12468
|
back() {
|
|
12112
12469
|
this.angularLocation.back();
|
|
12113
12470
|
}
|
|
12114
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: UrlService, deps: [{ token: i1$
|
|
12471
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: UrlService, deps: [{ token: i1$4.Router }, { token: i1$1.Location }, { token: i1$4.UrlSerializer }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
12115
12472
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: UrlService, providedIn: 'root' });
|
|
12116
12473
|
}
|
|
12117
12474
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: UrlService, decorators: [{
|
|
@@ -12119,7 +12476,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
12119
12476
|
args: [{
|
|
12120
12477
|
providedIn: 'root'
|
|
12121
12478
|
}]
|
|
12122
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
12479
|
+
}], ctorParameters: function () { return [{ type: i1$4.Router }, { type: i1$1.Location }, { type: i1$4.UrlSerializer }]; } });
|
|
12123
12480
|
|
|
12124
12481
|
function resolveTarget(target) {
|
|
12125
12482
|
return typeof target === 'function' ? target() : target;
|
|
@@ -12583,7 +12940,7 @@ class PlaceRouter extends GarbageCollector {
|
|
|
12583
12940
|
return Visit.goto(visitOrPlaceComponent, params);
|
|
12584
12941
|
}
|
|
12585
12942
|
}
|
|
12586
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PlaceRouter, deps: [{ token: i1$
|
|
12943
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PlaceRouter, deps: [{ token: i1$4.Router }, { token: i1$1.Location }, { token: InteractionService }, { token: UrlService }, { token: PlaceHistory }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
12587
12944
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PlaceRouter, providedIn: 'root' });
|
|
12588
12945
|
}
|
|
12589
12946
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PlaceRouter, decorators: [{
|
|
@@ -12591,7 +12948,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
12591
12948
|
args: [{
|
|
12592
12949
|
providedIn: 'root',
|
|
12593
12950
|
}]
|
|
12594
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
12951
|
+
}], ctorParameters: function () { return [{ type: i1$4.Router }, { type: i1$1.Location }, { type: InteractionService }, { type: UrlService }, { type: PlaceHistory }]; } });
|
|
12595
12952
|
|
|
12596
12953
|
class ActivityTitleComponent extends DisposableComponent {
|
|
12597
12954
|
_color;
|
|
@@ -13785,7 +14142,7 @@ class PopupInteractionContextComponent extends DisposableComponent {
|
|
|
13785
14142
|
isActive() {
|
|
13786
14143
|
return this.interactionContext && this.interactionContext.isActive();
|
|
13787
14144
|
}
|
|
13788
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PopupInteractionContextComponent, deps: [{ token: i0.ElementRef }, { token: i1$
|
|
14145
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PopupInteractionContextComponent, deps: [{ token: i0.ElementRef }, { token: i1$5.Overlay }, { token: i1$5.CdkScrollable, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
13789
14146
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: PopupInteractionContextComponent, selector: "aup-popup-interaction-context", inputs: { anchorX: "anchorX", anchorY: "anchorY", cancelOnEscape$: "cancelOnEscape$", cancelOnEscape: "cancelOnEscape" }, host: { properties: { "class.interaction-active": "this.active" } }, usesInheritance: true, ngImport: i0, template: "<ng-content></ng-content>\n", styles: [":host{display:inline-block}:host.interaction-active{background:rgba(0,0,0,.05)}:host::ng-deep .popup-interaction-context-backdrop{background-color:#0000}\n"] });
|
|
13790
14147
|
}
|
|
13791
14148
|
__decorate([
|
|
@@ -13799,7 +14156,7 @@ __decorate([
|
|
|
13799
14156
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PopupInteractionContextComponent, decorators: [{
|
|
13800
14157
|
type: Component,
|
|
13801
14158
|
args: [{ selector: 'aup-popup-interaction-context', template: "<ng-content></ng-content>\n", styles: [":host{display:inline-block}:host.interaction-active{background:rgba(0,0,0,.05)}:host::ng-deep .popup-interaction-context-backdrop{background-color:#0000}\n"] }]
|
|
13802
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1$
|
|
14159
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1$5.Overlay }, { type: i1$5.CdkScrollable, decorators: [{
|
|
13803
14160
|
type: Optional
|
|
13804
14161
|
}, {
|
|
13805
14162
|
type: SkipSelf
|
|
@@ -14528,7 +14885,7 @@ class OptionListActivity extends Activity {
|
|
|
14528
14885
|
return needle ? rows.filter(row => row.index === undefined || row.label.toLowerCase().includes(needle)) : rows;
|
|
14529
14886
|
}
|
|
14530
14887
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: OptionListActivity, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
14531
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: OptionListActivity, selector: "aup-option-list-activity", host: { properties: { "class.aup-option-list--own-popup": "this.ownPopup" } }, viewQueries: [{ propertyName: "listbox", first: true, predicate: ["listbox"], descendants: true, static: true }, { propertyName: "searchInput", first: true, predicate: ["searchInput"], descendants: true }, { propertyName: "options", predicate: MatOption, descendants: true }, { propertyName: "optionElements", predicate: MatOption, descendants: true, read: ElementRef }], usesInheritance: true, ngImport: i0, template: "<!-- A popup of its own reads as a select's panel, with no title: Esc or a click outside closes it. Over another\n activity its title holds the way back. -->\n<aup-activity-title *ngIf=\"activityData.nested\">\n <aup-command [command]=\"leaveCommand\" data-cy=\"back\"></aup-command>\n {{ activityData.title }}\n</aup-activity-title>\n<aup-activity-body [fullWidth]=\"true\">\n <div *ngIf=\"activityData.searchable\" class=\"search\">\n <aup-icon icon=\"mat:search\"></aup-icon>\n <input #searchInput type=\"text\" autocomplete=\"off\" data-cy=\"option-list-search\"\n [placeholder]=\"searchPlaceholder\"\n [attr.aria-label]=\"searchPlaceholder\"\n [value]=\"searchText$.value\"\n (input)=\"onSearchInput($event)\"\n (keydown)=\"onSearchKeydown($event)\">\n </div>\n <div #listbox class=\"options\" role=\"listbox\" tabindex=\"0\" data-cy=\"option-list\"\n [attr.aria-label]=\"activityData.title\"\n [attr.aria-activedescendant]=\"keyManager?.activeItem?.id\"\n (keydown)=\"onListKeydown($event)\">\n <mat-option *ngFor=\"let row of rows$.value; trackBy: trackRow\" [value]=\"row\" data-cy=\"option\"\n (onSelectionChange)=\"onSelectionChange($event)\">\n <span class=\"option\">\n <span *ngIf=\"withIcons\" class=\"icon\"><aup-icon *ngIf=\"row.icon\" [icon]=\"row.icon\"></aup-icon></span>\n <span class=\"label\" data-cy=\"label\">{{ row.label }}</span>\n <span *ngIf=\"count(row) !== undefined\" class=\"count\" [class.zero]=\"count(row) === 0\" data-cy=\"count\">{{ count(row) }}</span>\n </span>\n </mat-option>\n </div>\n <div *ngIf=\"!rows$.value.length\" class=\"no-results\" data-cy=\"option-list-no-results\">{{ noResultsText }}</div>\n</aup-activity-body>\n", styles: [":host{display:block;width:var(--aup-option-list-width, 22rem);max-width:calc(100vw - 32px);--aup-activity-padding-top: 0;--aup-activity-padding-bottom: 0}:host(.aup-option-list--own-popup){width:auto;min-width:12rem}:host-context(.bottom-sheet-interaction-context){width:auto;max-width:none}.search{display:flex;align-items:center;gap:8px;padding:8px 16px;border-bottom:1px solid rgba(0,0,0,.12)}.search input{flex:1;min-width:0;border:none;outline:none;background:transparent;font:inherit;color:inherit}.options{padding:8px 0;outline:none}:host ::ng-deep .mat-mdc-option .mdc-list-item__primary-text{flex:1}.option{display:flex;align-items:center;gap:16px}.icon{flex:none;display:flex;width:24px;opacity:.7}.label{flex:1;min-width:0}.count{flex:none;font-size:.85em;opacity:.7}.count.zero{opacity:.4}.no-results{padding:8px 16px;opacity:.6;font-style:italic}\n"], dependencies: [{ 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: "component", type: IconComponent, selector: "aup-icon", inputs: ["icon"] }, { kind: "component", type: CommandComponent, selector: "aup-command", inputs: ["command", "face$", "face", "busyFace$", "busyFace", "alignFace", "density", "fill", "labelOverflow"] }, { kind: "component", type: i5.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "component", type: ActivityTitleComponent, selector: "aup-activity-title", inputs: ["hasTransparentBackground", "color"] }, { kind: "component", type: ActivityBodyComponent, selector: "aup-activity-body", inputs: ["fullWidth", "fullHeight", "scroll"] }] });
|
|
14888
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: OptionListActivity, selector: "aup-option-list-activity", host: { properties: { "class.aup-option-list--own-popup": "this.ownPopup" } }, viewQueries: [{ propertyName: "listbox", first: true, predicate: ["listbox"], descendants: true, static: true }, { propertyName: "searchInput", first: true, predicate: ["searchInput"], descendants: true }, { propertyName: "options", predicate: MatOption, descendants: true }, { propertyName: "optionElements", predicate: MatOption, descendants: true, read: ElementRef }], usesInheritance: true, ngImport: i0, template: "<!-- A popup of its own reads as a select's panel, with no title: Esc or a click outside closes it. Over another\n activity its title holds the way back. -->\n<aup-activity-title *ngIf=\"activityData.nested\">\n <aup-command [command]=\"leaveCommand\" data-cy=\"back\"></aup-command>\n {{ activityData.title }}\n</aup-activity-title>\n<aup-activity-body [fullWidth]=\"true\">\n <div *ngIf=\"activityData.searchable\" class=\"search\">\n <aup-icon icon=\"mat:search\"></aup-icon>\n <input #searchInput type=\"text\" autocomplete=\"off\" data-cy=\"option-list-search\"\n [placeholder]=\"searchPlaceholder\"\n [attr.aria-label]=\"searchPlaceholder\"\n [value]=\"searchText$.value\"\n (input)=\"onSearchInput($event)\"\n (keydown)=\"onSearchKeydown($event)\">\n </div>\n <div #listbox class=\"options\" role=\"listbox\" tabindex=\"0\" data-cy=\"option-list\"\n [attr.aria-label]=\"activityData.title\"\n [attr.aria-activedescendant]=\"keyManager?.activeItem?.id\"\n (keydown)=\"onListKeydown($event)\">\n <mat-option *ngFor=\"let row of rows$.value; trackBy: trackRow\" [value]=\"row\" data-cy=\"option\"\n (onSelectionChange)=\"onSelectionChange($event)\">\n <span class=\"option\">\n <span *ngIf=\"withIcons\" class=\"icon\"><aup-icon *ngIf=\"row.icon\" [icon]=\"row.icon\"></aup-icon></span>\n <span class=\"label\" data-cy=\"label\">{{ row.label }}</span>\n <span *ngIf=\"count(row) !== undefined\" class=\"count\" [class.zero]=\"count(row) === 0\" data-cy=\"count\">{{ count(row) }}</span>\n </span>\n </mat-option>\n </div>\n <div *ngIf=\"!rows$.value.length\" class=\"no-results\" data-cy=\"option-list-no-results\">{{ noResultsText }}</div>\n</aup-activity-body>\n", styles: [":host{display:block;width:var(--aup-option-list-width, 22rem);max-width:calc(100vw - 32px);--aup-activity-padding-top: 0;--aup-activity-padding-bottom: 0}:host(.aup-option-list--own-popup){width:auto;min-width:12rem}:host-context(.bottom-sheet-interaction-context){width:auto;max-width:none}.search{display:flex;align-items:center;gap:8px;padding:8px 16px;border-bottom:1px solid rgba(0,0,0,.12)}.search input{flex:1;min-width:0;border:none;outline:none;background:transparent;font:inherit;color:inherit}.options{padding:8px 0;outline:none}:host ::ng-deep .mat-mdc-option .mdc-list-item__primary-text{flex:1}.option{display:flex;align-items:center;gap:16px}.icon{flex:none;display:flex;width:24px;opacity:.7}.label{flex:1;min-width:0}.count{flex:none;font-size:.85em;opacity:.7}.count.zero{opacity:.4}.no-results{padding:8px 16px;opacity:.6;font-style:italic}\n"], dependencies: [{ 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: "component", type: IconComponent, selector: "aup-icon", inputs: ["icon"] }, { kind: "component", type: CommandComponent, selector: "aup-command", inputs: ["command", "face$", "face", "busyFace$", "busyFace", "alignFace", "density", "fill", "labelOverflow"] }, { kind: "component", type: i5$1.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "component", type: ActivityTitleComponent, selector: "aup-activity-title", inputs: ["hasTransparentBackground", "color"] }, { kind: "component", type: ActivityBodyComponent, selector: "aup-activity-body", inputs: ["fullWidth", "fullHeight", "scroll"] }] });
|
|
14532
14889
|
}
|
|
14533
14890
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: OptionListActivity, decorators: [{
|
|
14534
14891
|
type: Component,
|
|
@@ -15745,8 +16102,8 @@ class PlaceOutletComponent extends DisposableComponent {
|
|
|
15745
16102
|
this.onAnimationFinishedJob = undefined;
|
|
15746
16103
|
}
|
|
15747
16104
|
}
|
|
15748
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PlaceOutletComponent, deps: [{ token: i1$
|
|
15749
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: PlaceOutletComponent, selector: "aup-place-outlet", inputs: { animate$: "animate$", animate: "animate", customPlaceAnimationOrder$: ["placeAnimationOrderModel", "customPlaceAnimationOrder$"], customPlaceAnimationOrder: ["placeAnimationOrder", "customPlaceAnimationOrder"] }, outputs: { placeChanged: "placeChanged" }, host: { properties: { "class.out-of-scope": "this.showOutOfScopeNotice", "class.authorised": "this.isAuthorised" } }, viewQueries: [{ propertyName: "routerOut", first: true, predicate: ["routeOutlet"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"animationEnabled.value\">\n <div class=\"router-outlet-container\"\n cdkScrollable\n [@routeAnimations]=\"{value: getAnimationOrder(), params:{duration: animationDuration}}\"\n (@routeAnimations.start)=\"animationStarted()\"\n (@routeAnimations.done)=\"animationDone()\"\n >\n <router-outlet #routerOutlet=\"outlet\"\n (activate)=\"onOutletActivated(routerOutlet, $event)\"\n (deactivate)=\"onOutletDeactivated()\">\n </router-outlet>\n </div>\n</ng-container>\n\n<ng-container *ngIf=\"!animationEnabled.value\">\n <div class=\"router-outlet-container\"\n cdkScrollable>\n <router-outlet #routerOutlet=\"outlet\"\n (activate)=\"onOutletActivated(routerOutlet, $event)\"\n (deactivate)=\"onOutletDeactivated()\">\n </router-outlet>\n </div>\n</ng-container>\n\n<div class=\"not-authorised-component-container\" *ngIf=\"!authorised.value\">\n <ng-template [cdkPortalOutlet]=\"notAuthorisedNoticePortal\"></ng-template>\n</div>\n\n<div class=\"not-authorised-component-container\" *ngIf=\"showOutOfScopeNotice\">\n <ng-template [cdkPortalOutlet]=\"outOfScopeNoticePortal\"></ng-template>\n</div>\n", styles: [":host{display:flex;flex-direction:column;min-height:0}:host:not(.authorised) .router-outlet-container,:host.out-of-scope .router-outlet-container{display:none}.router-outlet-container{flex:1;display:block;position:relative;min-height:0;overflow-x:hidden;overflow-y:auto}router-outlet{display:none}.not-authorised-component-container{flex:1;display:grid;grid-template-columns:1fr;grid-template-rows:1fr}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$
|
|
16105
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PlaceOutletComponent, deps: [{ token: i1$4.Router }, { token: PlaceRouter }, { token: AUP_PLACE_CONFIG, optional: true }, { token: AUP_UNAUTHORISED_PLACE_NOTICE_COMPONENT, optional: true }, { token: AUP_OUT_OF_SCOPE_PLACE_NOTICE_COMPONENT, optional: true }, { token: PlaceScope }, { token: PlaceOutletComponent, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
16106
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: PlaceOutletComponent, selector: "aup-place-outlet", inputs: { animate$: "animate$", animate: "animate", customPlaceAnimationOrder$: ["placeAnimationOrderModel", "customPlaceAnimationOrder$"], customPlaceAnimationOrder: ["placeAnimationOrder", "customPlaceAnimationOrder"] }, outputs: { placeChanged: "placeChanged" }, host: { properties: { "class.out-of-scope": "this.showOutOfScopeNotice", "class.authorised": "this.isAuthorised" } }, viewQueries: [{ propertyName: "routerOut", first: true, predicate: ["routeOutlet"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"animationEnabled.value\">\n <div class=\"router-outlet-container\"\n cdkScrollable\n [@routeAnimations]=\"{value: getAnimationOrder(), params:{duration: animationDuration}}\"\n (@routeAnimations.start)=\"animationStarted()\"\n (@routeAnimations.done)=\"animationDone()\"\n >\n <router-outlet #routerOutlet=\"outlet\"\n (activate)=\"onOutletActivated(routerOutlet, $event)\"\n (deactivate)=\"onOutletDeactivated()\">\n </router-outlet>\n </div>\n</ng-container>\n\n<ng-container *ngIf=\"!animationEnabled.value\">\n <div class=\"router-outlet-container\"\n cdkScrollable>\n <router-outlet #routerOutlet=\"outlet\"\n (activate)=\"onOutletActivated(routerOutlet, $event)\"\n (deactivate)=\"onOutletDeactivated()\">\n </router-outlet>\n </div>\n</ng-container>\n\n<div class=\"not-authorised-component-container\" *ngIf=\"!authorised.value\">\n <ng-template [cdkPortalOutlet]=\"notAuthorisedNoticePortal\"></ng-template>\n</div>\n\n<div class=\"not-authorised-component-container\" *ngIf=\"showOutOfScopeNotice\">\n <ng-template [cdkPortalOutlet]=\"outOfScopeNoticePortal\"></ng-template>\n</div>\n", styles: [":host{display:flex;flex-direction:column;min-height:0}:host:not(.authorised) .router-outlet-container,:host.out-of-scope .router-outlet-container{display:none}.router-outlet-container{flex:1;display:block;position:relative;min-height:0;overflow-x:hidden;overflow-y:auto}router-outlet{display:none}.not-authorised-component-container{flex:1;display:grid;grid-template-columns:1fr;grid-template-rows:1fr}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$4.RouterOutlet, selector: "router-outlet", inputs: ["name"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "directive", type: i5.CdkScrollable, selector: "[cdk-scrollable], [cdkScrollable]" }, { kind: "directive", type: i1$3.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], animations: [LEFT_RIGHT_PLACE_ANIMATION] });
|
|
15750
16107
|
}
|
|
15751
16108
|
__decorate([
|
|
15752
16109
|
Proxify(),
|
|
@@ -15767,7 +16124,7 @@ __decorate([
|
|
|
15767
16124
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PlaceOutletComponent, decorators: [{
|
|
15768
16125
|
type: Component,
|
|
15769
16126
|
args: [{ selector: 'aup-place-outlet', animations: [LEFT_RIGHT_PLACE_ANIMATION], template: "<ng-container *ngIf=\"animationEnabled.value\">\n <div class=\"router-outlet-container\"\n cdkScrollable\n [@routeAnimations]=\"{value: getAnimationOrder(), params:{duration: animationDuration}}\"\n (@routeAnimations.start)=\"animationStarted()\"\n (@routeAnimations.done)=\"animationDone()\"\n >\n <router-outlet #routerOutlet=\"outlet\"\n (activate)=\"onOutletActivated(routerOutlet, $event)\"\n (deactivate)=\"onOutletDeactivated()\">\n </router-outlet>\n </div>\n</ng-container>\n\n<ng-container *ngIf=\"!animationEnabled.value\">\n <div class=\"router-outlet-container\"\n cdkScrollable>\n <router-outlet #routerOutlet=\"outlet\"\n (activate)=\"onOutletActivated(routerOutlet, $event)\"\n (deactivate)=\"onOutletDeactivated()\">\n </router-outlet>\n </div>\n</ng-container>\n\n<div class=\"not-authorised-component-container\" *ngIf=\"!authorised.value\">\n <ng-template [cdkPortalOutlet]=\"notAuthorisedNoticePortal\"></ng-template>\n</div>\n\n<div class=\"not-authorised-component-container\" *ngIf=\"showOutOfScopeNotice\">\n <ng-template [cdkPortalOutlet]=\"outOfScopeNoticePortal\"></ng-template>\n</div>\n", styles: [":host{display:flex;flex-direction:column;min-height:0}:host:not(.authorised) .router-outlet-container,:host.out-of-scope .router-outlet-container{display:none}.router-outlet-container{flex:1;display:block;position:relative;min-height:0;overflow-x:hidden;overflow-y:auto}router-outlet{display:none}.not-authorised-component-container{flex:1;display:grid;grid-template-columns:1fr;grid-template-rows:1fr}\n"] }]
|
|
15770
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
16127
|
+
}], ctorParameters: function () { return [{ type: i1$4.Router }, { type: PlaceRouter }, { type: undefined, decorators: [{
|
|
15771
16128
|
type: Optional
|
|
15772
16129
|
}, {
|
|
15773
16130
|
type: Inject,
|
|
@@ -16623,7 +16980,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
16623
16980
|
*/
|
|
16624
16981
|
|
|
16625
16982
|
/**
|
|
16626
|
-
* The search model of a table whose rows the server finds, such as one that loads them a
|
|
16983
|
+
* The search model of a table whose rows the server finds, such as one that loads them a chunk at a
|
|
16627
16984
|
* time. The rows a table holds are what the server found for the search and the filters, so it shows
|
|
16628
16985
|
* them all. Its settled search ({@link search$}) becomes the server request's criteria through
|
|
16629
16986
|
* `AbstractTableModel.useCriteria`, and the cells highlight the search text as usual.
|
|
@@ -17137,7 +17494,7 @@ class BottomSheetInteractionContextFactory extends ModalInteractionContextFactor
|
|
|
17137
17494
|
restoreFocus: false,
|
|
17138
17495
|
});
|
|
17139
17496
|
}
|
|
17140
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: BottomSheetInteractionContextFactory, deps: [{ token: i1$
|
|
17497
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: BottomSheetInteractionContextFactory, deps: [{ token: i1$6.MatBottomSheet }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
17141
17498
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: BottomSheetInteractionContextFactory, providedIn: 'root' });
|
|
17142
17499
|
}
|
|
17143
17500
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: BottomSheetInteractionContextFactory, decorators: [{
|
|
@@ -17145,7 +17502,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
17145
17502
|
args: [{
|
|
17146
17503
|
providedIn: 'root'
|
|
17147
17504
|
}]
|
|
17148
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
17505
|
+
}], ctorParameters: function () { return [{ type: i1$6.MatBottomSheet }]; } });
|
|
17149
17506
|
|
|
17150
17507
|
/** Runs each activity in a dialog of its own, centred over the page. */
|
|
17151
17508
|
class DialogInteractionContext extends HostedInteractionContext {
|
|
@@ -17208,7 +17565,7 @@ class DialogInteractionContextFactory extends ModalInteractionContextFactory {
|
|
|
17208
17565
|
};
|
|
17209
17566
|
return new DialogInteractionContext(identifier, api, this.dialogService, config);
|
|
17210
17567
|
}
|
|
17211
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: DialogInteractionContextFactory, deps: [{ token: i1$
|
|
17568
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: DialogInteractionContextFactory, deps: [{ token: i1$7.MatDialog }, { token: DIALOG_INTERACTION_SERVICE_DEFAULTS, optional: true }, { token: MAT_DIALOG_DEFAULT_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
17212
17569
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: DialogInteractionContextFactory, providedIn: 'root' });
|
|
17213
17570
|
}
|
|
17214
17571
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: DialogInteractionContextFactory, decorators: [{
|
|
@@ -17216,12 +17573,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
17216
17573
|
args: [{
|
|
17217
17574
|
providedIn: 'root'
|
|
17218
17575
|
}]
|
|
17219
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
17576
|
+
}], ctorParameters: function () { return [{ type: i1$7.MatDialog }, { type: i1$7.MatDialogConfig, decorators: [{
|
|
17220
17577
|
type: Optional
|
|
17221
17578
|
}, {
|
|
17222
17579
|
type: Inject,
|
|
17223
17580
|
args: [DIALOG_INTERACTION_SERVICE_DEFAULTS]
|
|
17224
|
-
}] }, { type: i1$
|
|
17581
|
+
}] }, { type: i1$7.MatDialogConfig, decorators: [{
|
|
17225
17582
|
type: Optional
|
|
17226
17583
|
}, {
|
|
17227
17584
|
type: Inject,
|
|
@@ -17566,13 +17923,13 @@ class PlaceGuard {
|
|
|
17566
17923
|
return next();
|
|
17567
17924
|
}
|
|
17568
17925
|
}
|
|
17569
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PlaceGuard, deps: [{ token: i1$
|
|
17926
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PlaceGuard, deps: [{ token: i1$4.Router }, { token: UrlService }, { token: PlaceRouter }, { token: PlaceHistory }, { token: InteractionService }, { token: i0.Injector }, { token: PlaceScope }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
17570
17927
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PlaceGuard, providedIn: 'root' });
|
|
17571
17928
|
}
|
|
17572
17929
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PlaceGuard, decorators: [{
|
|
17573
17930
|
type: Injectable,
|
|
17574
17931
|
args: [{ providedIn: 'root' }]
|
|
17575
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
17932
|
+
}], ctorParameters: function () { return [{ type: i1$4.Router }, { type: UrlService }, { type: PlaceRouter }, { type: PlaceHistory }, { type: InteractionService }, { type: i0.Injector }, { type: PlaceScope }]; } });
|
|
17576
17933
|
|
|
17577
17934
|
var Formatter;
|
|
17578
17935
|
(function (Formatter) {
|
|
@@ -17851,5 +18208,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
17851
18208
|
* Generated bundle index. Do not edit.
|
|
17852
18209
|
*/
|
|
17853
18210
|
|
|
17854
|
-
export { ACTIVITY_DATA, ALERT_CONFIG, AUP_DETACHED_PARENT_CDR, AUP_OUT_OF_SCOPE_PLACE_NOTICE_COMPONENT, 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, ActivityCancellation, ActivityContainerComponent, ActivityContext, ActivityOutletComponent, ActivityRef, ActivitySelectOptionList, ActivityTitleComponent, AddCardActivityComponent, AddItemInteractionContextComponent, Alert, AlertDialogComponent, AlertRendererComponent, AngularUiPowerupsModule, AupTooltipDirective, AutocompleteInputComponent, BottomSheetInteractionContext, BottomSheetInteractionContextFactory, 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, DelegatingInteractionContext, DensityDirective, 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, HostedInteractionContext, 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, OPTION_LIST_DEFAULTS, OptionListActivity, OutOfScopeNoticeComponent, POPUP_CONTAINER, PORTAL_RENDERER_COMPONENT, PaginatorComponent, ParameterDefinition, ParameterSanitiser, PasswordInputComponent, Place, PlaceAccessGuard, PlaceAuthService, PlaceComponent, PlaceComponentDeactivationHandler, PlaceDefinition, PlaceGuard, PlaceHistory, PlaceModule, PlaceOutletComponent, PlaceRouter, PlaceScope, Point, PopStateDuringInteractionNavigation, PopStateNavigation, PopupActivityTriggerComponent, PopupAwareComponent, PopupInteractionContextComponent, PopupMenuComponent, PopupMenuRendererComponent, PropertyColumnModel, QuietRejections, QuietRejectionsErrorHandler, ROUTE_PARAMETER_LIST_KEY, RemoveLastInteractionFromUrlNavigationSession, ResizeAwareComponent, ResizeObserverDirective, RouteId, ScrollContainerComponent, SearchCriteria, SearchInputComponent, SectionHeaderComponent, SelectInputActivity, SelectInputComponent, SelectOptionList, SelectOverlayOriginDirective, SelectionCellComponent, SelectionColumnModel, SelectionHeaderCellComponent, SeparatorComponent, ServerSearchModel, SheetSwipe, 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, TableSearchModel, 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, provideQuietRejections, registerValidators, setPlaceDefinition, slideDownAndRightOnEnterAnimation, slideDownOnEnterAnimation, slideDownWhenOpenAnimation, slideRightOnEnterAnimation, startActivityInPopup, treeNodeDecorator };
|
|
18211
|
+
export { ACTIVITY_DATA, ALERT_CONFIG, AUP_DETACHED_PARENT_CDR, AUP_OUT_OF_SCOPE_PLACE_NOTICE_COMPONENT, 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, ActivityCancellation, ActivityContainerComponent, ActivityContext, ActivityOutletComponent, ActivityRef, ActivitySelectOptionList, ActivityTitleComponent, AddCardActivityComponent, AddItemInteractionContextComponent, Alert, AlertDialogComponent, AlertRendererComponent, AngularUiPowerupsModule, AupTooltipDirective, AutocompleteInputComponent, BottomSheetInteractionContext, BottomSheetInteractionContextFactory, 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, DelegatingInteractionContext, DensityDirective, DialogInteractionContext, DialogInteractionContextFactory, Dimension, DirectivesModule, DisposableComponent, EmptyStateComponent, EnableCellTextSearch, EndOfRows, EventCleanUpSession, FOOTER_CELL_RENDERER_PORTAL, FileDownloadComponent, FlattenedTreeListModel, FlexComponent, FocusBinding, FocusBindingDirective, FocusBindingFactory, FocusContainerComponent, FocusableComponent, FooterRowCellsBuilder, FooterRowModel, Formatter, GarbageCollectorDirective, HEADER_CELL_RENDERER_PORTAL, HighlightPipe, HighlightTextModelDirective, HorizontalAlignment, HostedInteractionContext, 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, OPTION_LIST_DEFAULTS, OptionListActivity, OutOfScopeNoticeComponent, POPUP_CONTAINER, PORTAL_RENDERER_COMPONENT, PaginatorComponent, ParameterDefinition, ParameterSanitiser, PasswordInputComponent, Place, PlaceAccessGuard, PlaceAuthService, PlaceComponent, PlaceComponentDeactivationHandler, PlaceDefinition, PlaceGuard, PlaceHistory, PlaceModule, PlaceOutletComponent, PlaceRouter, PlaceScope, Point, PopStateDuringInteractionNavigation, PopStateNavigation, PopupActivityTriggerComponent, PopupAwareComponent, PopupInteractionContextComponent, PopupMenuComponent, PopupMenuRendererComponent, PropertyColumnModel, QuietRejections, QuietRejectionsErrorHandler, ROUTE_PARAMETER_LIST_KEY, RemoveLastInteractionFromUrlNavigationSession, ResizeAwareComponent, ResizeObserverDirective, RouteId, ScrollContainerComponent, SearchCriteria, SearchInputComponent, SectionHeaderComponent, SelectInputActivity, SelectInputComponent, SelectOptionList, SelectOverlayOriginDirective, SelectionCellComponent, SelectionColumnModel, SelectionHeaderCellComponent, SeparatorComponent, ServerSearchModel, SheetSwipe, 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, TableSearchModel, 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, provideQuietRejections, registerValidators, setPlaceDefinition, slideDownAndRightOnEnterAnimation, slideDownOnEnterAnimation, slideDownWhenOpenAnimation, slideRightOnEnterAnimation, startActivityInPopup, treeNodeDecorator };
|
|
17855
18212
|
//# sourceMappingURL=coolon-angular-ui-powerups.mjs.map
|