@coolon/angular-ui-powerups 16.1.0-alpha.331 → 16.1.0-alpha.332
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 +73 -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 +191 -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 +475 -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 +54 -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,54 @@ class AbstractTableModel extends GarbageCollector {
|
|
|
7047
7098
|
get displayScope$() {
|
|
7048
7099
|
return this.columnManager.displayScope$;
|
|
7049
7100
|
}
|
|
7101
|
+
/**
|
|
7102
|
+
* Shows a row after the last, with a spinner and [message], while the next chunk of rows is on its way: while
|
|
7103
|
+
* [loading$] is true and, in a table that watches the end of its rows ({@link watchEndOfRows}), until the table has
|
|
7104
|
+
* measured the chunk's rows. A page that loads its rows a chunk at a time sets [loading$] while a chunk is on its
|
|
7105
|
+
* way, so a reader at the end of the rows sees that more are coming. Screen readers announce the message as it
|
|
7106
|
+
* 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. Every table shows the row except a virtual-scrolling one.
|
|
7111
|
+
*
|
|
7112
|
+
* Call it once: a second call would replace the first's flag and message. The table reads it as it initialises, in
|
|
7113
|
+
* its ngOnInit, so call it where the model is built, not from a directive on the aup-table, which initialises after
|
|
7114
|
+
* the table does.
|
|
7115
|
+
*/
|
|
7116
|
+
showLoadingRowWhile(loading$, message) {
|
|
7117
|
+
assert$1.isFalsey(this.loadingRowAskedFor, 'showLoadingRowWhile may be called once per table');
|
|
7118
|
+
assert$1.isFalsey(this._initialised$.value, 'showLoadingRowWhile must be called before the table initialises, which decides what it renders');
|
|
7119
|
+
this.loadingRowAskedFor = { loading$, message };
|
|
7120
|
+
return this;
|
|
7121
|
+
}
|
|
7122
|
+
/** The row {@link showLoadingRowWhile} shows, if the page asked for one. Read by the table body. */
|
|
7123
|
+
get _loadingRow() {
|
|
7124
|
+
return this.loadingRowAskedFor;
|
|
7125
|
+
}
|
|
7126
|
+
/**
|
|
7127
|
+
* Starts measuring whether the end of the rows is in view and how many rows fit, for a page that loads its rows a
|
|
7128
|
+
* chunk at a time as the reader scrolls, and returns the measurements. A table that is not asked measures nothing.
|
|
7129
|
+
* A table's rows have one end, so asking again returns the same measurements.
|
|
7130
|
+
*
|
|
7131
|
+
* Only a table that scrolls classically, with enableScrolling and scrollMode="classic", measures. In any other the
|
|
7132
|
+
* end of the rows never comes into view, so a page that waits for it loads nothing, and the table warns of it in
|
|
7133
|
+
* development. A page that loads its first chunk on its own, as when its search changes, shows rows either way.
|
|
7134
|
+
*
|
|
7135
|
+
* The table reads it as it initialises, in its ngOnInit, so ask where the model is built, not from a directive on
|
|
7136
|
+
* the aup-table, which initialises after the table does.
|
|
7137
|
+
*/
|
|
7138
|
+
watchEndOfRows() {
|
|
7139
|
+
if (!this.endOfRowsAskedFor) {
|
|
7140
|
+
assert$1.isFalsey(this._initialised$.value, 'watchEndOfRows must be called before the table initialises, which decides what it measures');
|
|
7141
|
+
this.endOfRowsAskedFor = new EndOfRows();
|
|
7142
|
+
}
|
|
7143
|
+
return this.endOfRowsAskedFor;
|
|
7144
|
+
}
|
|
7145
|
+
/** The measurements {@link watchEndOfRows} started, if a page asked for them. Read by the table body. */
|
|
7146
|
+
get _endOfRows() {
|
|
7147
|
+
return this.endOfRowsAskedFor;
|
|
7148
|
+
}
|
|
7050
7149
|
pluck(property, options) {
|
|
7051
7150
|
const columnId = options?.columnId || property.toString();
|
|
7052
7151
|
return this.addColumn(new PropertyColumnModel(columnId, this.columnManager, property, () => this.getColumnTextProperties(columnId)));
|
|
@@ -7177,11 +7276,13 @@ class AbstractTableModel extends GarbageCollector {
|
|
|
7177
7276
|
onRowClicked(callback) {
|
|
7178
7277
|
return this.rowClickListeners.add(callback);
|
|
7179
7278
|
}
|
|
7180
|
-
/**
|
|
7181
|
-
|
|
7182
|
-
|
|
7183
|
-
|
|
7184
|
-
|
|
7279
|
+
/** Scrolls the table back to its first row, as a page does when it shows a new list in place of the old one. */
|
|
7280
|
+
scrollToTop() {
|
|
7281
|
+
this.scrollToTopListeners.fire(scroll => scroll());
|
|
7282
|
+
}
|
|
7283
|
+
/** Called by the table body, which scrolls when a page asks with {@link scrollToTop}. */
|
|
7284
|
+
_onScrollToTop(scroll) {
|
|
7285
|
+
return this.scrollToTopListeners.add(scroll);
|
|
7185
7286
|
}
|
|
7186
7287
|
_notifyCellClicked(columnModel, row) {
|
|
7187
7288
|
if (this.isRowSelectionEnabledFor(columnModel)) {
|
|
@@ -7211,6 +7312,196 @@ function comparesItself(value) {
|
|
|
7211
7312
|
return typeof value?.equals === 'function';
|
|
7212
7313
|
}
|
|
7213
7314
|
|
|
7315
|
+
/**
|
|
7316
|
+
* Measures, for the table body, whether the end of a classic-scrolling table's rows is in view and how many rows fit,
|
|
7317
|
+
* and reports both to the table model's {@link EndOfRows}.
|
|
7318
|
+
*
|
|
7319
|
+
* The body places a marker after the last row, inside the scroll container: the element that scrolls the rows. An
|
|
7320
|
+
* IntersectionObserver on the scroll container reports when the marker comes into view or leaves it. It counts the
|
|
7321
|
+
* marker as in view from {@link EndOfRowsWatcher.LOOKAHEAD_PIXELS} below the visible bottom, so the next chunk is on
|
|
7322
|
+
* its way before the reader reaches the last row. Each report also measures how many rows fit, so a page that loads
|
|
7323
|
+
* on the report sizes its chunk from rows that have been drawn.
|
|
7324
|
+
*/
|
|
7325
|
+
class EndOfRowsWatcher {
|
|
7326
|
+
endOfRows;
|
|
7327
|
+
zone;
|
|
7328
|
+
themeRowHeight;
|
|
7329
|
+
/** The marker after the last row, which the observer watches. */
|
|
7330
|
+
marker;
|
|
7331
|
+
/** The element that scrolls the rows, and contains the table and the marker. */
|
|
7332
|
+
scrollContainer;
|
|
7333
|
+
observer;
|
|
7334
|
+
/** Whether a chunk is on its way, during which the end of the rows does not count as in view: see [pause]. */
|
|
7335
|
+
paused = false;
|
|
7336
|
+
_awaitingReport$ = new MutableValueModel(false);
|
|
7337
|
+
/** Whether the watcher has started a fresh observer, and that observer has not reported yet. */
|
|
7338
|
+
awaitingReport$ = this._awaitingReport$;
|
|
7339
|
+
constructor(endOfRows, zone, themeRowHeight) {
|
|
7340
|
+
this.endOfRows = endOfRows;
|
|
7341
|
+
this.zone = zone;
|
|
7342
|
+
this.themeRowHeight = themeRowHeight;
|
|
7343
|
+
}
|
|
7344
|
+
/**
|
|
7345
|
+
* Watches [marker], in the scroll container that contains it, or stops watching when it is gone, as when the table
|
|
7346
|
+
* stops scrolling classically. While a chunk is on its way, it only remembers the marker, and starts watching when
|
|
7347
|
+
* the chunk ends.
|
|
7348
|
+
*/
|
|
7349
|
+
watch(marker) {
|
|
7350
|
+
this.marker = marker;
|
|
7351
|
+
this.scrollContainer = marker?.parentElement ?? undefined;
|
|
7352
|
+
if (!this.canObserve()) {
|
|
7353
|
+
this.stop();
|
|
7354
|
+
}
|
|
7355
|
+
else if (!this.paused) {
|
|
7356
|
+
this.observeAfresh();
|
|
7357
|
+
}
|
|
7358
|
+
}
|
|
7359
|
+
/**
|
|
7360
|
+
* Called when a chunk starts loading. Its rows are on their way, so the rows drawn now say nothing about where the
|
|
7361
|
+
* end of the rows will be. Were the end left in view, a page that hears the chunk end before its rows are drawn
|
|
7362
|
+
* would load another chunk at once. So the end is out of view until [measureAfresh].
|
|
7363
|
+
*/
|
|
7364
|
+
pause() {
|
|
7365
|
+
this.paused = true;
|
|
7366
|
+
this.observer?.disconnect();
|
|
7367
|
+
this.observer = undefined;
|
|
7368
|
+
this._awaitingReport$.value = false;
|
|
7369
|
+
this.reportIfChanged(false, this.endOfRows.rowCountThatFits$.value);
|
|
7370
|
+
}
|
|
7371
|
+
/**
|
|
7372
|
+
* Called when a chunk has ended, whether its rows have been drawn yet or not. A fresh observer reports once the
|
|
7373
|
+
* browser has laid out the page, so it measures the chunk's rows if they arrived in the same turn as the chunk ended.
|
|
7374
|
+
* Returns whether a report is on its way, which it is not while the table does not scroll classically.
|
|
7375
|
+
*/
|
|
7376
|
+
measureAfresh() {
|
|
7377
|
+
this.paused = false;
|
|
7378
|
+
this.observeAfresh();
|
|
7379
|
+
return this._awaitingReport$.value;
|
|
7380
|
+
}
|
|
7381
|
+
/**
|
|
7382
|
+
* Called when the table's rows change. The last measurement was taken against the old rows. If it said the end was
|
|
7383
|
+
* in view, a page could load another chunk because of it, though the new rows may already fill the table. So the
|
|
7384
|
+
* end is reported out of view until the table has drawn the new rows and measured again.
|
|
7385
|
+
*
|
|
7386
|
+
* An observer reports only when the marker crosses into or out of view. One that last saw the end in view would not
|
|
7387
|
+
* report again while the end stays in view, so it is replaced, and a new observer always reports once.
|
|
7388
|
+
*
|
|
7389
|
+
* A measurement that said the end was out of view cannot load anything, so it is left alone: the observer reports
|
|
7390
|
+
* when the end comes into view.
|
|
7391
|
+
*
|
|
7392
|
+
* The rows can change outside Angular's zone, as when a socket delivers them. The fresh observer is made inside it,
|
|
7393
|
+
* and leaving the zone has Angular draw the new rows and check the page's reaction to this report.
|
|
7394
|
+
*/
|
|
7395
|
+
rowsChanged() {
|
|
7396
|
+
if (!this.observer || !this.endOfRows.inView$.value) {
|
|
7397
|
+
return;
|
|
7398
|
+
}
|
|
7399
|
+
this.endOfRows._report(false, this.endOfRows.rowCountThatFits$.value);
|
|
7400
|
+
this.observeAfresh();
|
|
7401
|
+
}
|
|
7402
|
+
/** Called when the table changes size, which changes how many rows fit. */
|
|
7403
|
+
resized() {
|
|
7404
|
+
if (this.observer) {
|
|
7405
|
+
this.reportIfChanged(this.endOfRows.inView$.value, this.measureRowCountThatFits());
|
|
7406
|
+
}
|
|
7407
|
+
}
|
|
7408
|
+
/**
|
|
7409
|
+
* Stops watching. Nothing is measured any more, so the end is out of view and the rows that fit are unknown.
|
|
7410
|
+
*
|
|
7411
|
+
* The table stops watching while Angular is checking it, as when the marker's *ngIf removes it or the table is
|
|
7412
|
+
* destroyed. The page has already read the measurements in this check, so changing them now would change what it
|
|
7413
|
+
* showed after Angular checked it. So they change once the check is over. A table that is watching again by then,
|
|
7414
|
+
* as one switched back to classic scrolling in the same check, keeps its measurements.
|
|
7415
|
+
*/
|
|
7416
|
+
stop() {
|
|
7417
|
+
this.observer?.disconnect();
|
|
7418
|
+
this.observer = undefined;
|
|
7419
|
+
queueMicrotask(() => {
|
|
7420
|
+
if (this.observer) {
|
|
7421
|
+
return;
|
|
7422
|
+
}
|
|
7423
|
+
this._awaitingReport$.value = false;
|
|
7424
|
+
this.reportIfChanged(false, undefined);
|
|
7425
|
+
});
|
|
7426
|
+
}
|
|
7427
|
+
/**
|
|
7428
|
+
* Replaces the observer with a fresh one, which always reports once, whether the end is in view or not.
|
|
7429
|
+
*
|
|
7430
|
+
* An observer reports in the zone it was made in, so it is made inside Angular's zone. Its reports are then checked,
|
|
7431
|
+
* so the loading row goes when it should though the report changes nothing. A chunk can arrive outside the zone, as
|
|
7432
|
+
* when a socket delivers it, and nothing then draws its rows. Leaving the zone has Angular draw them, before the
|
|
7433
|
+
* browser's first report, which comes after its next layout.
|
|
7434
|
+
*/
|
|
7435
|
+
observeAfresh() {
|
|
7436
|
+
this.observer?.disconnect();
|
|
7437
|
+
this.observer = undefined;
|
|
7438
|
+
const { marker, scrollContainer } = this;
|
|
7439
|
+
if (!marker || !scrollContainer || !this.canObserve()) {
|
|
7440
|
+
this._awaitingReport$.value = false;
|
|
7441
|
+
return;
|
|
7442
|
+
}
|
|
7443
|
+
this.zone.run(() => {
|
|
7444
|
+
this._awaitingReport$.value = true;
|
|
7445
|
+
this.observer = new IntersectionObserver(entries => {
|
|
7446
|
+
// The observer may deliver several reports at once; the last is the latest.
|
|
7447
|
+
const latest = entries[entries.length - 1];
|
|
7448
|
+
this._awaitingReport$.value = false;
|
|
7449
|
+
this.reportIfChanged(latest.isIntersecting, this.measureRowCountThatFits());
|
|
7450
|
+
}, { root: scrollContainer, rootMargin: `0px 0px ${EndOfRowsWatcher.LOOKAHEAD_PIXELS}px 0px` });
|
|
7451
|
+
this.observer.observe(marker);
|
|
7452
|
+
});
|
|
7453
|
+
}
|
|
7454
|
+
/** Whether there is a marker in a scroll container to watch, in a browser that can watch it. */
|
|
7455
|
+
canObserve() {
|
|
7456
|
+
return !!this.marker && !!this.scrollContainer && typeof IntersectionObserver !== 'undefined';
|
|
7457
|
+
}
|
|
7458
|
+
/**
|
|
7459
|
+
* Reports a measurement that differs from the last one. A page reacts by loading and showing that it is loading.
|
|
7460
|
+
* A resize, a pause or a stop can come from outside Angular's zone, so the report is brought into the zone, where
|
|
7461
|
+
* the page's reaction is checked. Entering the zone from outside checks the whole app, so a measurement that changes
|
|
7462
|
+
* nothing is not reported.
|
|
7463
|
+
*/
|
|
7464
|
+
reportIfChanged(inView, rowCountThatFits) {
|
|
7465
|
+
if (inView === this.endOfRows.inView$.value && rowCountThatFits === this.endOfRows.rowCountThatFits$.value) {
|
|
7466
|
+
return;
|
|
7467
|
+
}
|
|
7468
|
+
this.zone.run(() => this.endOfRows._report(inView, rowCountThatFits));
|
|
7469
|
+
}
|
|
7470
|
+
/**
|
|
7471
|
+
* How many rows fit between the table's header and footer, at the average height of the rows drawn, or of the
|
|
7472
|
+
* theme's row height while there are none. Undefined while the table is hidden, as in a closed tab, where it
|
|
7473
|
+
* measures 0px.
|
|
7474
|
+
*
|
|
7475
|
+
* Every height is read with getBoundingClientRect, not clientHeight. A CSS zoom scales the bounding boxes but not
|
|
7476
|
+
* clientHeight, so mixing the two would miscount.
|
|
7477
|
+
*/
|
|
7478
|
+
measureRowCountThatFits() {
|
|
7479
|
+
const scrollContainer = this.scrollContainer;
|
|
7480
|
+
const visibleHeight = scrollContainer?.getBoundingClientRect().height ?? 0;
|
|
7481
|
+
if (!scrollContainer || visibleHeight === 0) {
|
|
7482
|
+
return undefined;
|
|
7483
|
+
}
|
|
7484
|
+
// The table's own sections, not those of a table drawn in one of its cells.
|
|
7485
|
+
const table = scrollContainer.querySelector(':scope > table');
|
|
7486
|
+
const headerHeight = heightOf(table?.tHead);
|
|
7487
|
+
const footerHeight = heightOf(table?.tFoot);
|
|
7488
|
+
const rowArea = table?.tBodies.item(0);
|
|
7489
|
+
const drawnRowCount = rowArea?.rows.length ?? 0;
|
|
7490
|
+
const rowHeight = drawnRowCount > 0 ? heightOf(rowArea) / drawnRowCount : this.themeRowHeight();
|
|
7491
|
+
if (rowHeight <= 0) {
|
|
7492
|
+
return undefined;
|
|
7493
|
+
}
|
|
7494
|
+
return Math.max(0, Math.floor((visibleHeight - headerHeight - footerHeight) / rowHeight));
|
|
7495
|
+
}
|
|
7496
|
+
}
|
|
7497
|
+
(function (EndOfRowsWatcher) {
|
|
7498
|
+
/** How far below the visible bottom the end of the rows counts as in view: about four rows of the theme's height. */
|
|
7499
|
+
EndOfRowsWatcher.LOOKAHEAD_PIXELS = 200;
|
|
7500
|
+
})(EndOfRowsWatcher || (EndOfRowsWatcher = {}));
|
|
7501
|
+
function heightOf(element) {
|
|
7502
|
+
return element?.getBoundingClientRect().height ?? 0;
|
|
7503
|
+
}
|
|
7504
|
+
|
|
7214
7505
|
class TableCellComponent extends DisposableComponent {
|
|
7215
7506
|
row;
|
|
7216
7507
|
column;
|
|
@@ -7242,7 +7533,7 @@ class TableCellComponent extends DisposableComponent {
|
|
|
7242
7533
|
};
|
|
7243
7534
|
}
|
|
7244
7535
|
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$
|
|
7536
|
+
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
7537
|
}
|
|
7247
7538
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: TableCellComponent, decorators: [{
|
|
7248
7539
|
type: Component,
|
|
@@ -7279,7 +7570,7 @@ class TableHeaderCellComponent {
|
|
|
7279
7570
|
return this[HEADER_CELL_RENDERER_PORTAL];
|
|
7280
7571
|
}
|
|
7281
7572
|
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$
|
|
7573
|
+
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
7574
|
}
|
|
7284
7575
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: TableHeaderCellComponent, decorators: [{
|
|
7285
7576
|
type: Component,
|
|
@@ -7307,7 +7598,7 @@ class TableFooterRow {
|
|
|
7307
7598
|
this.cell?.onInit?.($event.instance);
|
|
7308
7599
|
}
|
|
7309
7600
|
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$
|
|
7601
|
+
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
7602
|
}
|
|
7312
7603
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: TableFooterRow, decorators: [{
|
|
7313
7604
|
type: Component,
|
|
@@ -7386,14 +7677,29 @@ class TableBodyComponent extends ResizeAwareComponent {
|
|
|
7386
7677
|
holdScrollPosition = false;
|
|
7387
7678
|
scrollViewport;
|
|
7388
7679
|
classicScrollContainer;
|
|
7389
|
-
/**
|
|
7390
|
-
|
|
7391
|
-
|
|
7392
|
-
|
|
7393
|
-
|
|
7394
|
-
|
|
7395
|
-
endOfRowsObserver;
|
|
7680
|
+
/**
|
|
7681
|
+
* Measures whether the end of the rows is in view and how many rows fit, when the page asked for it with
|
|
7682
|
+
* `AbstractTableModel.watchEndOfRows`.
|
|
7683
|
+
*/
|
|
7684
|
+
endOfRowsWatcher;
|
|
7685
|
+
/** The zone the end-of-rows watcher reports in, so a page that reacts by loading is checked. */
|
|
7396
7686
|
zone = inject(NgZone);
|
|
7687
|
+
/**
|
|
7688
|
+
* The marker after the last row, which the watcher watches in the classic scroll container that contains it. It is
|
|
7689
|
+
* drawn only while the table scrolls classically, so it comes and goes as the scroll mode changes, and the watcher
|
|
7690
|
+
* follows.
|
|
7691
|
+
*/
|
|
7692
|
+
set endOfRowsMarker(marker) {
|
|
7693
|
+
this.endOfRowsWatcher?.watch(marker?.nativeElement);
|
|
7694
|
+
}
|
|
7695
|
+
/** Whether the loading row shows: see `AbstractTableModel.showLoadingRowWhile`. */
|
|
7696
|
+
loadingRowShown$ = new MutableValueModel(false);
|
|
7697
|
+
/**
|
|
7698
|
+
* Whether the loading row stays after its chunk has ended, until the table has measured the end of the rows afresh.
|
|
7699
|
+
* If the chunk's rows still do not fill the table, the page loads the next chunk only once the table has measured
|
|
7700
|
+
* them, and the row would otherwise drop out in between.
|
|
7701
|
+
*/
|
|
7702
|
+
loadingRowHeldUntilMeasured$ = new MutableValueModel(false);
|
|
7397
7703
|
columns$;
|
|
7398
7704
|
columnIds$;
|
|
7399
7705
|
footerRowDefs$;
|
|
@@ -7440,25 +7746,25 @@ class TableBodyComponent extends ResizeAwareComponent {
|
|
|
7440
7746
|
super();
|
|
7441
7747
|
this.bufferMultiplier = bufferMultiplier;
|
|
7442
7748
|
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
7749
|
this.optimisedChangeDetectionEnabled = this.inject(AUP_TABLE_OPTIMIZED_CHANGE_DETECTION, { optional: true });
|
|
7446
7750
|
const actualHeaderHeight$ = chain(this.showHeader$).map(show => {
|
|
7447
7751
|
return show ? this.headerHeight$.value : 0;
|
|
7448
7752
|
}, { 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
7753
|
when(this.bounds$).changes(() => {
|
|
7754
|
+
// A body inside projected content (a loading container, a card) is initialised before it is in the
|
|
7755
|
+
// document, where no theme variable resolves. Its first reported size is the moment it is, so take
|
|
7756
|
+
// the heights again then; the report arrives outside change detection, so this is safe. A change of
|
|
7757
|
+
// layout that themes other heights (a phone's taller rows) resizes the body too, so it is taken then.
|
|
7459
7758
|
this.takeHeightsFromTheme();
|
|
7759
|
+
// The virtual viewport measures its height when it is created and keeps that figure until told to measure
|
|
7760
|
+
// again. A body created hidden, in an inactive tab or a closed drawer, measures 0px and renders no rows once
|
|
7761
|
+
// shown, so each resize re-measures it too.
|
|
7460
7762
|
this.scrollViewport?.checkViewportSize();
|
|
7763
|
+
// A taller or shorter table fits more or fewer rows, which a page sizes its chunks by.
|
|
7764
|
+
this.endOfRowsWatcher?.resized();
|
|
7461
7765
|
});
|
|
7766
|
+
// performance is terrible if the data changes while we're scrolling, so we postpone updates until
|
|
7767
|
+
// scrolling stops.
|
|
7462
7768
|
const delayedData$ = chain(this.data$).postponeWhile(this.virtualScrollActive$);
|
|
7463
7769
|
when(delayedData$).changes(delatedData => {
|
|
7464
7770
|
// Read before the rows change: the DOM still shows the old rows until the view is next checked.
|
|
@@ -7481,6 +7787,7 @@ class TableBodyComponent extends ResizeAwareComponent {
|
|
|
7481
7787
|
}
|
|
7482
7788
|
this.scheduleTableHeightCheck();
|
|
7483
7789
|
this.resetAnimationsAfterFrame();
|
|
7790
|
+
this.endOfRowsWatcher?.rowsChanged();
|
|
7484
7791
|
}, { initialValue: "evaluate" });
|
|
7485
7792
|
this.onInit(() => {
|
|
7486
7793
|
// On init, not after the view: the heights are bound in this view and in host bindings, and
|
|
@@ -7490,12 +7797,14 @@ class TableBodyComponent extends ResizeAwareComponent {
|
|
|
7490
7797
|
this.columnIds$ = chain(this.columns$).pluck("columnId");
|
|
7491
7798
|
this.columnsById$ = chain(this.columns$).indexBy('columnId');
|
|
7492
7799
|
this.footerRowDefs$ = chain(this.columnIds$).reduceAll(ids => (this.footerRows ?? []).map((row, i) => row.resolve(i, [...ids])));
|
|
7800
|
+
this.registerDisposable(this.tableModel._onScrollToTop(() => this.scrollToTop()));
|
|
7801
|
+
this.setUpEndOfRowsAndLoadingRow();
|
|
7493
7802
|
// Footer rows gated via visibleWhile() flip independently of the columns that drive
|
|
7494
7803
|
// footerRowDefs$, so depend on their models directly to re-render the <tr> reactively.
|
|
7495
7804
|
const footerVisibility$ = (this.footerRows ?? [])
|
|
7496
7805
|
.map(row => row.visible$)
|
|
7497
7806
|
.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$);
|
|
7807
|
+
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
7808
|
});
|
|
7500
7809
|
}
|
|
7501
7810
|
ngAfterViewInit() {
|
|
@@ -7666,27 +7975,44 @@ class TableBodyComponent extends ResizeAwareComponent {
|
|
|
7666
7975
|
}
|
|
7667
7976
|
ngOnDestroy() {
|
|
7668
7977
|
this.scrollEndAbortController?.abort();
|
|
7669
|
-
this.
|
|
7978
|
+
this.endOfRowsWatcher?.stop();
|
|
7670
7979
|
super.ngOnDestroy();
|
|
7671
7980
|
}
|
|
7672
7981
|
/**
|
|
7673
|
-
*
|
|
7674
|
-
*
|
|
7675
|
-
* below the visible bottom, so a page that loads more has the rows ready by the time they are reached.
|
|
7982
|
+
* Sets up what the page asked the table for: measuring the end of the rows (`AbstractTableModel.watchEndOfRows`),
|
|
7983
|
+
* the loading row (`AbstractTableModel.showLoadingRowWhile`), or both, which work together.
|
|
7676
7984
|
*/
|
|
7677
|
-
|
|
7678
|
-
|
|
7679
|
-
|
|
7680
|
-
const
|
|
7681
|
-
|
|
7682
|
-
|
|
7683
|
-
|
|
7684
|
-
|
|
7985
|
+
setUpEndOfRowsAndLoadingRow() {
|
|
7986
|
+
const { chain, when } = Dsl.disposeWith(this);
|
|
7987
|
+
const endOfRows = this.tableModel._endOfRows;
|
|
7988
|
+
const watcher = endOfRows && new EndOfRowsWatcher(endOfRows, this.zone, () => this.rowHeight$.value);
|
|
7989
|
+
this.endOfRowsWatcher = watcher;
|
|
7990
|
+
const loadingRow = this.tableModel._loadingRow;
|
|
7991
|
+
if (loadingRow) {
|
|
7992
|
+
this.loadingRowShown$ = chain.reduce(loadingRow.loading$, this.loadingRowHeldUntilMeasured$, (loading, held) => loading || held);
|
|
7993
|
+
}
|
|
7994
|
+
// The page's loading flag says when a chunk is on its way, which the rows alone cannot say: a page may end the
|
|
7995
|
+
// chunk before or after it sets the rows. While a chunk loads, the end of the rows does not count as in view, or
|
|
7996
|
+
// a page would load again on rows that are about to grow. When it ends, the table measures afresh, and the
|
|
7997
|
+
// loading row stays until it has.
|
|
7998
|
+
if (watcher && loadingRow) {
|
|
7999
|
+
when(loadingRow.loading$).changes(loading => {
|
|
8000
|
+
if (loading) {
|
|
8001
|
+
watcher.pause();
|
|
8002
|
+
}
|
|
8003
|
+
else {
|
|
8004
|
+
this.loadingRowHeldUntilMeasured$.value = watcher.measureAfresh();
|
|
8005
|
+
}
|
|
8006
|
+
}, { initialValue: "triggerChange" });
|
|
8007
|
+
when(watcher.awaitingReport$).becomesFalsey(() => this.loadingRowHeldUntilMeasured$.value = false);
|
|
8008
|
+
}
|
|
8009
|
+
}
|
|
8010
|
+
/** Scrolls back to the first row, in whichever scroll mode the table is in. */
|
|
8011
|
+
scrollToTop() {
|
|
8012
|
+
if (this.classicScrollContainer) {
|
|
8013
|
+
this.classicScrollContainer.nativeElement.scrollTop = 0;
|
|
7685
8014
|
}
|
|
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);
|
|
8015
|
+
this.scrollViewport?.scrollToIndex(0);
|
|
7690
8016
|
}
|
|
7691
8017
|
resetAnimationsAfterFrame() {
|
|
7692
8018
|
// Cancel any pending reset so rapid data changes don't re-enable animations mid-render.
|
|
@@ -7712,7 +8038,7 @@ class TableBodyComponent extends ResizeAwareComponent {
|
|
|
7712
8038
|
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
8039
|
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
8040
|
{ 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"] }] });
|
|
8041
|
+
], 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: "\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 <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 status region is in the page before its message appears in it, so screen readers announce the message. -->\n <div *ngIf=\"tableModel._loadingRow as loadingRow\" role=\"status\">\n <div *ngIf=\"loadingRowShown$.value\" class=\"loading-row\" aup-loading-row>\n <mat-progress-spinner mode=\"indeterminate\" [diameter]=\"20\" aria-hidden=\"true\"></mat-progress-spinner>\n <span>{{ loadingRow.message() }}</span>\n </div>\n </div>\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 <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}.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)}.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
8042
|
}
|
|
7717
8043
|
__decorate([
|
|
7718
8044
|
Proxify(),
|
|
@@ -7742,7 +8068,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
7742
8068
|
type: Component,
|
|
7743
8069
|
args: [{ selector: "aup-table-body", providers: [
|
|
7744
8070
|
{ 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-
|
|
8071
|
+
], template: "\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 <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 status region is in the page before its message appears in it, so screen readers announce the message. -->\n <div *ngIf=\"tableModel._loadingRow as loadingRow\" role=\"status\">\n <div *ngIf=\"loadingRowShown$.value\" class=\"loading-row\" aup-loading-row>\n <mat-progress-spinner mode=\"indeterminate\" [diameter]=\"20\" aria-hidden=\"true\"></mat-progress-spinner>\n <span>{{ loadingRow.message() }}</span>\n </div>\n </div>\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 <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}.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)}.end-of-rows{height:1px;flex-shrink:0;pointer-events:none}\n"] }]
|
|
7746
8072
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
7747
8073
|
type: Inject,
|
|
7748
8074
|
args: [AUP_TABLE_VIRTUAL_SCROLL_BUFFER_MULTIPLIER]
|
|
@@ -7778,9 +8104,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
7778
8104
|
}], classicScrollContainer: [{
|
|
7779
8105
|
type: ViewChild,
|
|
7780
8106
|
args: ['classicScrollContainer']
|
|
7781
|
-
}],
|
|
8107
|
+
}], endOfRowsMarker: [{
|
|
7782
8108
|
type: ViewChild,
|
|
7783
|
-
args: ['
|
|
8109
|
+
args: ['endOfRowsMarker']
|
|
7784
8110
|
}], baseCssClass: [{
|
|
7785
8111
|
type: HostBinding,
|
|
7786
8112
|
args: ["class"]
|
|
@@ -7797,10 +8123,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
7797
8123
|
type: HostBinding,
|
|
7798
8124
|
args: ["style.--aup-table-row-height"]
|
|
7799
8125
|
}] } });
|
|
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
8126
|
|
|
7805
8127
|
class LoadableComponent extends DisposableComponent {
|
|
7806
8128
|
#_loaded$ = new MutableValueModel();
|
|
@@ -8167,6 +8489,7 @@ class TableModel extends AbstractTableModel {
|
|
|
8167
8489
|
* --aup-table-row-selected-background-color: rebeccapurple; // defaults to transparent
|
|
8168
8490
|
* --aup-table-first-column-padding-left: 18px // defaults to --column-gap
|
|
8169
8491
|
* --aup-table-last-column-padding-right: 18px // defaults to --column-gap
|
|
8492
|
+
* --aup-table-loading-row-color: grey; // the row showLoadingRowWhile shows; defaults to the text colour
|
|
8170
8493
|
* }
|
|
8171
8494
|
*
|
|
8172
8495
|
* // per table settings.
|
|
@@ -8191,6 +8514,14 @@ class TableModel extends AbstractTableModel {
|
|
|
8191
8514
|
* }
|
|
8192
8515
|
* }
|
|
8193
8516
|
* }
|
|
8517
|
+
*
|
|
8518
|
+
* Testing hooks
|
|
8519
|
+
*
|
|
8520
|
+
* Every table marks what a test needs to drive it as a reader would:
|
|
8521
|
+
* - the element that contains the rows carries `aup-table-scroller` whatever the scroll mode, so a test can scroll a
|
|
8522
|
+
* table that scrolls;
|
|
8523
|
+
* - each row carries its id as `aup-row-id`, so a test can find a row where it is drawn;
|
|
8524
|
+
* - the row `showLoadingRowWhile` shows carries `aup-loading-row`.
|
|
8194
8525
|
*/
|
|
8195
8526
|
class TableComponent extends AbstractTableComponent {
|
|
8196
8527
|
#tableModel_accessor_storage = proxify((TableModel));
|
|
@@ -8214,12 +8545,10 @@ class TableComponent extends AbstractTableComponent {
|
|
|
8214
8545
|
/**
|
|
8215
8546
|
* Set to true to keep the rows in view where they are when rows are inserted, removed or resized above
|
|
8216
8547
|
* 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.
|
|
8548
|
+
* row inserted there comes into view. It applies only while the table scrolls classically, with
|
|
8549
|
+
* `enableScrolling` and `scrollMode="classic"`, and only to rows with an identity of their own, a list
|
|
8550
|
+
* `identifiedBy` an id, because a row is found again by its id. In development, a table set to hold
|
|
8551
|
+
* without either warns in the console.
|
|
8223
8552
|
*/
|
|
8224
8553
|
holdScrollPosition = false;
|
|
8225
8554
|
_footerContentAdded = false;
|
|
@@ -8252,26 +8581,51 @@ class TableComponent extends AbstractTableComponent {
|
|
|
8252
8581
|
if (isDevMode() && this.holdScrollPosition) {
|
|
8253
8582
|
this.warnWhereHoldingCannotWork();
|
|
8254
8583
|
}
|
|
8584
|
+
if (isDevMode() && this.tableModel._endOfRows) {
|
|
8585
|
+
this.warnWhereEndOfRowsCannotBeWatched();
|
|
8586
|
+
}
|
|
8255
8587
|
}
|
|
8256
8588
|
/**
|
|
8257
8589
|
* Warns of a table set to hold its scroll position where it cannot. Nothing fails otherwise: the
|
|
8258
8590
|
* table moves the rows the reader is on, or holds the wrong one.
|
|
8259
8591
|
*/
|
|
8260
8592
|
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
8593
|
const { chain, when } = Dsl.disposeWith(this);
|
|
8266
|
-
|
|
8594
|
+
// A table can switch scroll mode after it starts, as a layout changes, so the mode is checked whenever it changes.
|
|
8595
|
+
let warnedOfScrollMode = false;
|
|
8596
|
+
when(this.tableBodyScrollMode$).changes(mode => {
|
|
8597
|
+
if (!warnedOfScrollMode && mode !== 'classic') {
|
|
8598
|
+
warnedOfScrollMode = true;
|
|
8599
|
+
console.warn('aup-table: holdScrollPosition applies only while a table scrolls classically, with enableScrolling and '
|
|
8600
|
+
+ 'scrollMode="classic", so this table holds nothing while it does not.');
|
|
8601
|
+
}
|
|
8602
|
+
}, { initialValue: 'triggerChangeUnlessNil' });
|
|
8603
|
+
// The list may hold its rows already, or receive them later, so the first row is checked either way.
|
|
8604
|
+
let warnedOfIds = false;
|
|
8267
8605
|
when(chain(this._dataSource$).first()).changes(row => {
|
|
8268
|
-
if (!
|
|
8269
|
-
|
|
8606
|
+
if (!warnedOfIds && this.hasNoId(row)) {
|
|
8607
|
+
warnedOfIds = true;
|
|
8270
8608
|
console.warn('aup-table: holdScrollPosition finds the rows in view again by their ids, and these rows have none, '
|
|
8271
8609
|
+ 'so it can hold the wrong row. Identify the list by an id, with identifiedBy.');
|
|
8272
8610
|
}
|
|
8273
8611
|
}, { initialValue: 'triggerChangeUnlessNil' });
|
|
8274
8612
|
}
|
|
8613
|
+
/**
|
|
8614
|
+
* Warns of a page that watches the end of a table's rows where the table cannot measure it. Nothing fails otherwise:
|
|
8615
|
+
* the end of the rows never comes into view, so a page that waits for it loads nothing.
|
|
8616
|
+
*/
|
|
8617
|
+
warnWhereEndOfRowsCannotBeWatched() {
|
|
8618
|
+
const { when } = Dsl.disposeWith(this);
|
|
8619
|
+
// A table can switch scroll mode after it starts, as a layout changes, so the mode is checked whenever it changes.
|
|
8620
|
+
let warned = false;
|
|
8621
|
+
when(this.tableBodyScrollMode$).changes(mode => {
|
|
8622
|
+
if (!warned && mode !== 'classic') {
|
|
8623
|
+
warned = true;
|
|
8624
|
+
console.warn('aup-table: watchEndOfRows measures only while a table scrolls classically, with enableScrolling and '
|
|
8625
|
+
+ 'scrollMode="classic", so the end of this table\'s rows never comes into view while it does not.');
|
|
8626
|
+
}
|
|
8627
|
+
}, { initialValue: 'triggerChangeUnlessNil' });
|
|
8628
|
+
}
|
|
8275
8629
|
getModel() {
|
|
8276
8630
|
return this.tableModel;
|
|
8277
8631
|
}
|
|
@@ -9126,7 +9480,7 @@ class VerticalFocusContainerComponent extends FocusContainerComponent {
|
|
|
9126
9480
|
constructor(focusManager) {
|
|
9127
9481
|
super(focusManager);
|
|
9128
9482
|
}
|
|
9129
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: VerticalFocusContainerComponent, deps: [{ token: i1$
|
|
9483
|
+
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
9484
|
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
9485
|
{ provide: FocusManager }
|
|
9132
9486
|
], usesInheritance: true, ngImport: i0, template: "<ng-content></ng-content>\n", styles: [":host{display:block}\n"] });
|
|
@@ -9144,7 +9498,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
9144
9498
|
args: [{ selector: 'aup-vertical-focus-container', providers: [
|
|
9145
9499
|
{ provide: FocusManager }
|
|
9146
9500
|
], template: "<ng-content></ng-content>\n", styles: [":host{display:block}\n"] }]
|
|
9147
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
9501
|
+
}], ctorParameters: function () { return [{ type: i1$2.FocusManager, decorators: [{
|
|
9148
9502
|
type: Self
|
|
9149
9503
|
}] }]; }, propDecorators: { rightArrowCommand: [{
|
|
9150
9504
|
type: Input,
|
|
@@ -12111,7 +12465,7 @@ class UrlService {
|
|
|
12111
12465
|
back() {
|
|
12112
12466
|
this.angularLocation.back();
|
|
12113
12467
|
}
|
|
12114
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: UrlService, deps: [{ token: i1$
|
|
12468
|
+
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
12469
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: UrlService, providedIn: 'root' });
|
|
12116
12470
|
}
|
|
12117
12471
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: UrlService, decorators: [{
|
|
@@ -12119,7 +12473,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
12119
12473
|
args: [{
|
|
12120
12474
|
providedIn: 'root'
|
|
12121
12475
|
}]
|
|
12122
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
12476
|
+
}], ctorParameters: function () { return [{ type: i1$4.Router }, { type: i1$1.Location }, { type: i1$4.UrlSerializer }]; } });
|
|
12123
12477
|
|
|
12124
12478
|
function resolveTarget(target) {
|
|
12125
12479
|
return typeof target === 'function' ? target() : target;
|
|
@@ -12583,7 +12937,7 @@ class PlaceRouter extends GarbageCollector {
|
|
|
12583
12937
|
return Visit.goto(visitOrPlaceComponent, params);
|
|
12584
12938
|
}
|
|
12585
12939
|
}
|
|
12586
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PlaceRouter, deps: [{ token: i1$
|
|
12940
|
+
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
12941
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PlaceRouter, providedIn: 'root' });
|
|
12588
12942
|
}
|
|
12589
12943
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PlaceRouter, decorators: [{
|
|
@@ -12591,7 +12945,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
12591
12945
|
args: [{
|
|
12592
12946
|
providedIn: 'root',
|
|
12593
12947
|
}]
|
|
12594
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
12948
|
+
}], ctorParameters: function () { return [{ type: i1$4.Router }, { type: i1$1.Location }, { type: InteractionService }, { type: UrlService }, { type: PlaceHistory }]; } });
|
|
12595
12949
|
|
|
12596
12950
|
class ActivityTitleComponent extends DisposableComponent {
|
|
12597
12951
|
_color;
|
|
@@ -13785,7 +14139,7 @@ class PopupInteractionContextComponent extends DisposableComponent {
|
|
|
13785
14139
|
isActive() {
|
|
13786
14140
|
return this.interactionContext && this.interactionContext.isActive();
|
|
13787
14141
|
}
|
|
13788
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PopupInteractionContextComponent, deps: [{ token: i0.ElementRef }, { token: i1$
|
|
14142
|
+
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
14143
|
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
14144
|
}
|
|
13791
14145
|
__decorate([
|
|
@@ -13799,7 +14153,7 @@ __decorate([
|
|
|
13799
14153
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PopupInteractionContextComponent, decorators: [{
|
|
13800
14154
|
type: Component,
|
|
13801
14155
|
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$
|
|
14156
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1$5.Overlay }, { type: i1$5.CdkScrollable, decorators: [{
|
|
13803
14157
|
type: Optional
|
|
13804
14158
|
}, {
|
|
13805
14159
|
type: SkipSelf
|
|
@@ -14528,7 +14882,7 @@ class OptionListActivity extends Activity {
|
|
|
14528
14882
|
return needle ? rows.filter(row => row.index === undefined || row.label.toLowerCase().includes(needle)) : rows;
|
|
14529
14883
|
}
|
|
14530
14884
|
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"] }] });
|
|
14885
|
+
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
14886
|
}
|
|
14533
14887
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: OptionListActivity, decorators: [{
|
|
14534
14888
|
type: Component,
|
|
@@ -15745,8 +16099,8 @@ class PlaceOutletComponent extends DisposableComponent {
|
|
|
15745
16099
|
this.onAnimationFinishedJob = undefined;
|
|
15746
16100
|
}
|
|
15747
16101
|
}
|
|
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$
|
|
16102
|
+
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 });
|
|
16103
|
+
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
16104
|
}
|
|
15751
16105
|
__decorate([
|
|
15752
16106
|
Proxify(),
|
|
@@ -15767,7 +16121,7 @@ __decorate([
|
|
|
15767
16121
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PlaceOutletComponent, decorators: [{
|
|
15768
16122
|
type: Component,
|
|
15769
16123
|
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$
|
|
16124
|
+
}], ctorParameters: function () { return [{ type: i1$4.Router }, { type: PlaceRouter }, { type: undefined, decorators: [{
|
|
15771
16125
|
type: Optional
|
|
15772
16126
|
}, {
|
|
15773
16127
|
type: Inject,
|
|
@@ -16623,7 +16977,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
16623
16977
|
*/
|
|
16624
16978
|
|
|
16625
16979
|
/**
|
|
16626
|
-
* The search model of a table whose rows the server finds, such as one that loads them a
|
|
16980
|
+
* The search model of a table whose rows the server finds, such as one that loads them a chunk at a
|
|
16627
16981
|
* time. The rows a table holds are what the server found for the search and the filters, so it shows
|
|
16628
16982
|
* them all. Its settled search ({@link search$}) becomes the server request's criteria through
|
|
16629
16983
|
* `AbstractTableModel.useCriteria`, and the cells highlight the search text as usual.
|
|
@@ -17137,7 +17491,7 @@ class BottomSheetInteractionContextFactory extends ModalInteractionContextFactor
|
|
|
17137
17491
|
restoreFocus: false,
|
|
17138
17492
|
});
|
|
17139
17493
|
}
|
|
17140
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: BottomSheetInteractionContextFactory, deps: [{ token: i1$
|
|
17494
|
+
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
17495
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: BottomSheetInteractionContextFactory, providedIn: 'root' });
|
|
17142
17496
|
}
|
|
17143
17497
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: BottomSheetInteractionContextFactory, decorators: [{
|
|
@@ -17145,7 +17499,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
17145
17499
|
args: [{
|
|
17146
17500
|
providedIn: 'root'
|
|
17147
17501
|
}]
|
|
17148
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
17502
|
+
}], ctorParameters: function () { return [{ type: i1$6.MatBottomSheet }]; } });
|
|
17149
17503
|
|
|
17150
17504
|
/** Runs each activity in a dialog of its own, centred over the page. */
|
|
17151
17505
|
class DialogInteractionContext extends HostedInteractionContext {
|
|
@@ -17208,7 +17562,7 @@ class DialogInteractionContextFactory extends ModalInteractionContextFactory {
|
|
|
17208
17562
|
};
|
|
17209
17563
|
return new DialogInteractionContext(identifier, api, this.dialogService, config);
|
|
17210
17564
|
}
|
|
17211
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: DialogInteractionContextFactory, deps: [{ token: i1$
|
|
17565
|
+
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
17566
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: DialogInteractionContextFactory, providedIn: 'root' });
|
|
17213
17567
|
}
|
|
17214
17568
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: DialogInteractionContextFactory, decorators: [{
|
|
@@ -17216,12 +17570,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
17216
17570
|
args: [{
|
|
17217
17571
|
providedIn: 'root'
|
|
17218
17572
|
}]
|
|
17219
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
17573
|
+
}], ctorParameters: function () { return [{ type: i1$7.MatDialog }, { type: i1$7.MatDialogConfig, decorators: [{
|
|
17220
17574
|
type: Optional
|
|
17221
17575
|
}, {
|
|
17222
17576
|
type: Inject,
|
|
17223
17577
|
args: [DIALOG_INTERACTION_SERVICE_DEFAULTS]
|
|
17224
|
-
}] }, { type: i1$
|
|
17578
|
+
}] }, { type: i1$7.MatDialogConfig, decorators: [{
|
|
17225
17579
|
type: Optional
|
|
17226
17580
|
}, {
|
|
17227
17581
|
type: Inject,
|
|
@@ -17566,13 +17920,13 @@ class PlaceGuard {
|
|
|
17566
17920
|
return next();
|
|
17567
17921
|
}
|
|
17568
17922
|
}
|
|
17569
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PlaceGuard, deps: [{ token: i1$
|
|
17923
|
+
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
17924
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PlaceGuard, providedIn: 'root' });
|
|
17571
17925
|
}
|
|
17572
17926
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PlaceGuard, decorators: [{
|
|
17573
17927
|
type: Injectable,
|
|
17574
17928
|
args: [{ providedIn: 'root' }]
|
|
17575
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
17929
|
+
}], ctorParameters: function () { return [{ type: i1$4.Router }, { type: UrlService }, { type: PlaceRouter }, { type: PlaceHistory }, { type: InteractionService }, { type: i0.Injector }, { type: PlaceScope }]; } });
|
|
17576
17930
|
|
|
17577
17931
|
var Formatter;
|
|
17578
17932
|
(function (Formatter) {
|
|
@@ -17851,5 +18205,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
17851
18205
|
* Generated bundle index. Do not edit.
|
|
17852
18206
|
*/
|
|
17853
18207
|
|
|
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 };
|
|
18208
|
+
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
18209
|
//# sourceMappingURL=coolon-angular-ui-powerups.mjs.map
|