@coolon/angular-ui-powerups 16.1.0-alpha.218 → 16.1.0-alpha.220
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/cards/abstract-card-container.component.mjs +2 -1
- package/esm2022/lib/components/commands/group/popup-menu/popup-menu-renderer/popup-menu-renderer.component.mjs +2 -1
- package/esm2022/lib/components/components.module.mjs +1 -6
- package/esm2022/lib/components/disposable-component.mjs +4 -1
- package/esm2022/lib/components/exports.mjs +2 -6
- package/esm2022/lib/components/forms/abstract-input.component.mjs +2 -1
- package/esm2022/lib/components/forms/abstract-list-input.component.mjs +1 -1
- package/esm2022/lib/components/forms/abstract-value-input.component.mjs +1 -1
- package/esm2022/lib/components/forms/autocomplete-input/autocomplete-input.component.mjs +6 -2
- package/esm2022/lib/components/forms/multiple-select-input/multiple-select-input.component.mjs +2 -1
- package/esm2022/lib/components/forms/number-input/number-input.component.mjs +8 -4
- package/esm2022/lib/components/forms/select-input/select-input.component.mjs +8 -7
- package/esm2022/lib/components/tables/abstract-table-model.mjs +2 -60
- package/esm2022/lib/components/tables/abstract-table.component.mjs +2 -1
- package/esm2022/lib/components/tables/column/column-manager.mjs +2 -1
- package/esm2022/lib/components/tables/column/column-model.mjs +1 -15
- package/esm2022/lib/components/tables/column/column-order-manager.mjs +1 -1
- package/esm2022/lib/components/tables/column/column-template/column-template.directive.mjs +2 -1
- package/esm2022/lib/components/tables/column/custom-template-column-model.mjs +2 -1
- package/esm2022/lib/components/tables/column/list-propery-column-model.mjs +4 -18
- package/esm2022/lib/components/tables/column/property-column-model.mjs +4 -17
- package/esm2022/lib/components/tables/filter/column-text-search-formatter.mjs +1 -1
- package/esm2022/lib/components/tables/filter/enable-cell-text-search.decorator.mjs +1 -1
- package/esm2022/lib/components/tables/filter/text-search-predicate.mjs +2 -1
- package/esm2022/lib/components/tables/renderer/cell-portal-ref.mjs +1 -21
- package/esm2022/lib/components/tables/renderer/editable-cell-renderer.mjs +2 -0
- package/esm2022/lib/components/tables/renderer/select-header-cell/selection-header-cell.component.mjs +1 -1
- package/esm2022/lib/components/tables/renderer/table-body/table-body.component.mjs +17 -8
- package/esm2022/lib/components/tables/renderer/table-cell/table-cell.component.mjs +7 -49
- package/esm2022/lib/components/tables/renderer/table-footer-row/table-footer-row.component.mjs +1 -1
- package/esm2022/lib/components/tables/renderer/table-header-cell/table-header-cell.component.mjs +1 -1
- package/esm2022/lib/components/tables/table/table-model.mjs +7 -33
- package/esm2022/lib/components/tables/table/table.component.mjs +1 -1
- package/esm2022/lib/components/tables/tree-table/tree-expansion-model.mjs +1 -1
- package/esm2022/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.mjs +2 -1
- package/esm2022/lib/components/track.mjs +1 -1
- package/esm2022/lib/directives/command.directive.mjs +2 -1
- package/esm2022/lib/directives/focus-binding-factory.mjs +2 -1
- package/esm2022/lib/directives/focus-binding.mjs +1 -1
- package/esm2022/lib/directives/highlight.pipe.mjs +2 -1
- package/esm2022/lib/interaction/abstract-interaction-context.mjs +2 -3
- package/esm2022/lib/interaction/activity.mjs +2 -1
- package/esm2022/lib/interaction/components/abstract-confirm-dialog.component.mjs +2 -1
- package/esm2022/lib/interaction/components/abstract-dialog.component.mjs +2 -1
- package/esm2022/lib/interaction/components/activity-actions/activity-actions.component.mjs +2 -1
- package/esm2022/lib/interaction/components/activity-container/activity-container.component.mjs +5 -2
- package/esm2022/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.mjs +1 -1
- package/esm2022/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.mjs +2 -1
- package/esm2022/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.mjs +2 -1
- package/esm2022/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.mjs +2 -1
- package/esm2022/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.mjs +2 -1
- package/esm2022/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.mjs +2 -1
- package/esm2022/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.mjs +1 -1
- package/esm2022/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.mjs +1 -1
- package/esm2022/lib/interaction/components/input-activities/select-input-activity.mjs +1 -1
- package/esm2022/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.mjs +1 -1
- package/esm2022/lib/interaction/components/slide-down-interaction-context/slide-down-interaction-context.component.mjs +1 -1
- package/esm2022/lib/interaction/interaction-context-provider.mjs +1 -1
- package/esm2022/lib/interaction/route-synchronisation-adapter.mjs +1 -1
- package/esm2022/lib/interaction/services/interaction.service.mjs +2 -1
- package/esm2022/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context-factory.mjs +2 -1
- package/esm2022/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context.mjs +3 -3
- package/esm2022/lib/place/components/place-outlet/place-outlet.component.mjs +2 -1
- package/esm2022/lib/place/components/side-place-navigation/side-place-navigation.component.mjs +5 -2
- package/esm2022/lib/place/place-auth-service.mjs +1 -1
- package/esm2022/lib/place/place-component.mjs +2 -1
- package/esm2022/lib/place/place-definition.mjs +1 -1
- package/esm2022/lib/place/place-router.mjs +1 -1
- package/esm2022/lib/place/place.decorator.mjs +2 -1
- package/esm2022/lib/place/route/parameter-decorators.mjs +2 -2
- package/esm2022/lib/place/route/parameter-definition.mjs +1 -1
- package/esm2022/lib/place/route/parameter-snapshot.mjs +1 -1
- package/esm2022/lib/place/visit-segment.mjs +2 -1
- package/fesm2022/coolon-angular-ui-powerups.mjs +78 -316
- package/fesm2022/coolon-angular-ui-powerups.mjs.map +1 -1
- package/lib/components/components.module.d.ts +58 -59
- package/lib/components/disposable-component.d.ts +1 -1
- package/lib/components/exports.d.ts +1 -5
- package/lib/components/forms/abstract-list-input.component.d.ts +1 -1
- package/lib/components/forms/abstract-value-input.component.d.ts +1 -1
- package/lib/components/tables/abstract-table-model.d.ts +1 -15
- package/lib/components/tables/column/column-model.d.ts +4 -11
- package/lib/components/tables/column/list-propery-column-model.d.ts +1 -4
- package/lib/components/tables/column/property-column-model.d.ts +2 -5
- package/lib/components/tables/renderer/cell-portal-ref.d.ts +0 -10
- package/lib/components/tables/renderer/select-header-cell/selection-header-cell.component.d.ts +1 -1
- package/lib/components/tables/renderer/table-body/table-body.component.d.ts +1 -1
- package/lib/components/tables/renderer/table-cell/table-cell.component.d.ts +2 -10
- package/lib/components/tables/table/table-model.d.ts +7 -33
- package/lib/components/tables/table/table.component.d.ts +1 -1
- package/lib/interaction/components/activity-container/activity-container.component.d.ts +4 -4
- package/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.d.ts +2 -2
- package/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.d.ts +1 -1
- package/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.d.ts +1 -1
- package/lib/interaction/components/input-activities/select-input-activity.d.ts +2 -2
- package/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.d.ts +1 -1
- package/lib/interaction/components/slide-down-interaction-context/slide-down-interaction-context.component.d.ts +1 -1
- package/lib/interaction/interaction-context-provider.d.ts +1 -1
- package/lib/interaction/route-synchronisation-adapter.d.ts +1 -1
- package/lib/place/place-auth-service.d.ts +1 -1
- package/lib/place/place-router.d.ts +1 -1
- package/lib/place/route/parameter-snapshot.d.ts +1 -1
- package/package.json +3 -3
- package/esm2022/lib/components/tables/column/editor-controls-column-model.mjs +0 -21
- package/esm2022/lib/components/tables/editor/edit-row-controls/edit-row-controls.component.mjs +0 -60
- package/esm2022/lib/components/tables/editor/edit-session.mjs +0 -28
- package/esm2022/lib/components/tables/editor/editable-cell-renderer.mjs +0 -2
- package/esm2022/lib/components/tables/renderer/cell-editors.mjs +0 -2
- package/lib/components/tables/column/editor-controls-column-model.d.ts +0 -14
- package/lib/components/tables/editor/edit-row-controls/edit-row-controls.component.d.ts +0 -17
- package/lib/components/tables/editor/edit-session.d.ts +0 -9
- package/lib/components/tables/renderer/cell-editors.d.ts +0 -9
- /package/lib/components/tables/{editor → renderer}/editable-cell-renderer.d.ts +0 -0
|
@@ -41,7 +41,7 @@ import { MatTooltipModule } from '@angular/material/tooltip';
|
|
|
41
41
|
import * as i4$2 from 'ng-table-virtual-scroll';
|
|
42
42
|
import { TableVirtualScrollDataSource, TableVirtualScrollModule } from 'ng-table-virtual-scroll';
|
|
43
43
|
import * as i1$3 from '@coolon/pectin';
|
|
44
|
-
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, Functions, PageController, SelectionModel, CanProxy, MultipleSelectionModel, WatchList, ProxyRegistry,
|
|
44
|
+
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, Functions, PageController, SelectionModel, CanProxy, MultipleSelectionModel, WatchList, ProxyRegistry, DependsOnOptions, LoadingStateTracker, DelegatingCommand, ComputedListModel, Deferred, ReducingValueModel, AndValueModel, DirtyTrackingForm } from '@coolon/pectin';
|
|
45
45
|
import { __decorate, __metadata, __param } from 'tslib';
|
|
46
46
|
import * as i1 from '@angular/platform-browser';
|
|
47
47
|
import escapeStringRegexp from 'escape-string-regexp';
|
|
@@ -51,7 +51,6 @@ import { MemoizeGet, lang as lang$1, assert as assert$1, Stringy, Klass, Opts }
|
|
|
51
51
|
import { Enum } from 'typescript-string-enums';
|
|
52
52
|
import * as i5 from '@angular/material/core';
|
|
53
53
|
import { Memoize } from 'fast-typescript-memoize';
|
|
54
|
-
import { produce } from 'immer';
|
|
55
54
|
import ResizeObserver from 'resize-observer-polyfill';
|
|
56
55
|
import { generateKeyBetween } from 'fractional-indexing';
|
|
57
56
|
import * as i5$1 from '@angular/cdk/a11y';
|
|
@@ -67,6 +66,7 @@ import { MatCardModule } from '@angular/material/card';
|
|
|
67
66
|
import * as i3$4 from '@angular/material/list';
|
|
68
67
|
import { MatListModule } from '@angular/material/list';
|
|
69
68
|
|
|
69
|
+
/* eslint-disable @typescript-eslint/no-explicit-any -- command directive accepts arbitrary command shapes */
|
|
70
70
|
class CommandDirective extends GarbageCollector {
|
|
71
71
|
elementRef;
|
|
72
72
|
_command;
|
|
@@ -324,6 +324,9 @@ class DisposableComponent extends GarbageCollector {
|
|
|
324
324
|
if (!DisposableComponent.pendingParentSweep) {
|
|
325
325
|
DisposableComponent.pendingParentSweep = new Set();
|
|
326
326
|
Promise.resolve().then(() => {
|
|
327
|
+
// Non-null assertion is safe: set just above and the only writer that clears it
|
|
328
|
+
// is the next line, before any other code can run on this microtask.
|
|
329
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
327
330
|
const batch = DisposableComponent.pendingParentSweep;
|
|
328
331
|
DisposableComponent.pendingParentSweep = null;
|
|
329
332
|
batch.forEach(cdr => cdr.detectChanges());
|
|
@@ -419,6 +422,7 @@ FocusBinding = __decorate([
|
|
|
419
422
|
class FocusBindingFactory {
|
|
420
423
|
ngZone;
|
|
421
424
|
document;
|
|
425
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- @Inject(DOCUMENT) infers as any; cast to Document below
|
|
422
426
|
constructor(ngZone, document) {
|
|
423
427
|
this.ngZone = ngZone;
|
|
424
428
|
// @see https://stackoverflow.com/questions/49513359/could-not-resolve-type-document-in-angular5/53715642#53715642
|
|
@@ -532,6 +536,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
532
536
|
}]
|
|
533
537
|
}], ctorParameters: function () { return []; } });
|
|
534
538
|
|
|
539
|
+
/* eslint-disable @typescript-eslint/no-explicit-any -- Angular Pipe transform signature uses any by convention */
|
|
535
540
|
class HighlightPipe extends GarbageCollector {
|
|
536
541
|
sanitizer;
|
|
537
542
|
highlightContext;
|
|
@@ -1687,6 +1692,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
1687
1692
|
args: ['class.horizontal-container']
|
|
1688
1693
|
}] } });
|
|
1689
1694
|
|
|
1695
|
+
/* eslint-disable @typescript-eslint/no-explicit-any -- popup menu renders arbitrary command shapes */
|
|
1690
1696
|
// TODO: can I get rid of this and have aup-commands etc test for their environment by injecting the parent MatMenu like I've done in
|
|
1691
1697
|
// the FileDownloadComponent? This would greatly simplify things - Not easily it seems - that structure doesn't result in menus being
|
|
1692
1698
|
// nested in each other correctly so sub menus don't work properly - i.e. clicking on a child item closes the parent.
|
|
@@ -2345,7 +2351,10 @@ class AutocompleteInputComponent extends AbstractValueInputComponent {
|
|
|
2345
2351
|
onSelect($event) {
|
|
2346
2352
|
this.inSearchUpdate$.whileTrue(() => {
|
|
2347
2353
|
this.rawTextContent$.value = undefined;
|
|
2348
|
-
|
|
2354
|
+
// Write to componentValue$ (not value$) so the change flows LEFT through the
|
|
2355
|
+
// formValue↔componentValue binding and fires onValueEditedListeners — writing
|
|
2356
|
+
// to value$ would push RIGHT and be classified as an external change.
|
|
2357
|
+
this.componentValue$.value = $event.option.value;
|
|
2349
2358
|
});
|
|
2350
2359
|
}
|
|
2351
2360
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: AutocompleteInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -2521,10 +2530,10 @@ class NumberInputComponent extends AbstractValueInputComponent {
|
|
|
2521
2530
|
});
|
|
2522
2531
|
const normalisedValue$ = chain(this.value$).otherwise(0);
|
|
2523
2532
|
this.incrementCommand = Command.create(() => {
|
|
2524
|
-
this.
|
|
2533
|
+
this.componentValue$.value = this.increment(this.value$.value);
|
|
2525
2534
|
}).enableWhile(chain.numericValue(normalisedValue$).isLessThan(this.max$).and(this.enabled$));
|
|
2526
2535
|
this.decrementCommand = Command.create(() => {
|
|
2527
|
-
this.
|
|
2536
|
+
this.componentValue$.value = this.decrement(this.value$.value);
|
|
2528
2537
|
}).enableWhile(chain.numericValue(normalisedValue$).isGreaterThan(this.min$).and(this.enabled$));
|
|
2529
2538
|
}
|
|
2530
2539
|
increment(value) {
|
|
@@ -2537,7 +2546,11 @@ class NumberInputComponent extends AbstractValueInputComponent {
|
|
|
2537
2546
|
return isNil(this.significantDigits) ? value : Number(value.toFixed(this.significantDigits));
|
|
2538
2547
|
}
|
|
2539
2548
|
onValueChange(value) {
|
|
2540
|
-
|
|
2549
|
+
// Write to componentValue$ (not value$) so the change flows LEFT through the
|
|
2550
|
+
// formValue↔componentValue binding. Writing to value$ would push RIGHT, and
|
|
2551
|
+
// AbstractValueInputComponent treats RIGHT-direction changes as external —
|
|
2552
|
+
// suppressing onValueEditedListeners, which liveEditCellRenderer subscribes to.
|
|
2553
|
+
this.componentValue$.value = value;
|
|
2541
2554
|
}
|
|
2542
2555
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: NumberInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2543
2556
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: NumberInputComponent, selector: "aup-number-input", inputs: { autocomplete: "autocomplete", min$: "min$", min: "min", max$: "max$", max: "max", significantDigits$: "significantDigits$", significantDigits: "significantDigits" }, usesInheritance: true, ngImport: i0, template: "<mat-form-field floatLabel=\"always\">\n <mat-label *ngIf=\"label\">{{ label }}</mat-label>\n <input type=\"number\"\n matInput\n placeholder=\"{{placeholder}}\"\n [attr.autocomplete]=\"autocomplete\"\n [ngModel]=\"displayValue$.value\"\n (ngModelChange)=\"onValueChange($event)\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n [min]=\"min\"\n [max]=\"max\"\n [size]=\"4\"\n [step]=\"step$.value\"\n >\n <section matIconSuffix>\n <button [pectinCommand]=\"decrementCommand\">-</button>\n <button [pectinCommand]=\"incrementCommand\">+</button>\n </section>\n <mat-hint *ngIf=\"hint && !dense\">{{ hint }}</mat-hint>\n <mat-error *ngIf=\"hasErrors()\">{{ firstError }}</mat-error>\n</mat-form-field>\n", styles: [":host{--width: 56px;--height: 42px;--margin-right: 1px;--border-radius: 3px;--border-color:#d5d5d5;--button-background: #fafafa;--button-background-hover: #efefef}:host input[type=number]{appearance:textfield}:host input[type=number]::-webkit-inner-spin-button,:host input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none}:host:focus-within:has(section:not(:focus-within)){--height: 40px;--margin-right: 2px;--border-radius: 2px}:host section[maticonsuffix]{display:flex;flex-direction:row;align-items:stretch;gap:1px;background-color:var(--border-color);border-left:1px solid var(--border-color);width:var(--width);min-width:var(--width);height:var(--height);min-height:var(--height);margin-right:var(--margin-right);border-top-right-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius);overflow:hidden}:host button{flex:1;display:flex;flex-direction:row;align-items:center;justify-content:center;font-weight:600;border-style:none;background-color:var(--button-background)}:host button:hover{background-color:var(--button-background-hover)}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$5.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$5.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { kind: "directive", type: i2$5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$5.MinValidator, selector: "input[type=number][min][formControlName],input[type=number][min][formControl],input[type=number][min][ngModel]", inputs: ["min"] }, { kind: "directive", type: i2$5.MaxValidator, selector: "input[type=number][max][formControlName],input[type=number][max][formControl],input[type=number][max][ngModel]", inputs: ["max"] }, { kind: "directive", type: i2$5.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3$1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i4.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4.MatLabel, selector: "mat-label" }, { kind: "directive", type: i4.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i4.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i4.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "directive", type: CommandDirective, selector: "[pectinCommand]", inputs: ["pectinCommand", "commandParameter", "preventDefault"] }, { kind: "directive", type: FocusBindingDirective, selector: "[pectinFocusBinding]", inputs: ["pectinFocusBinding", "focusBindingTarget"] }] });
|
|
@@ -2725,15 +2738,15 @@ class SelectInputComponent extends AbstractValueInputComponent {
|
|
|
2725
2738
|
id: this.delegatedIdentityOf(value)
|
|
2726
2739
|
});
|
|
2727
2740
|
let lastIdSnapshot = snapshotValueAndId(this.componentValue$.value);
|
|
2728
|
-
// console.log(lastIdSnapshot)
|
|
2729
2741
|
before(this.options$).changes(() => {
|
|
2730
2742
|
lastIdSnapshot = snapshotValueAndId(this.componentValue$.value);
|
|
2731
|
-
// console.log(lastIdSnapshot)
|
|
2732
2743
|
});
|
|
2733
|
-
when(this.options$).changes((
|
|
2734
|
-
|
|
2735
|
-
//
|
|
2736
|
-
|
|
2744
|
+
when(this.options$).changes(() => {
|
|
2745
|
+
// If the identity function changed under us, the stored id$ no longer matches
|
|
2746
|
+
// delegatedIdentityOf(componentValue$). Re-derive the id for the SAME value: if it
|
|
2747
|
+
// differs from the snapshot, the identity function shifted and we need to re-sync id$.
|
|
2748
|
+
const recomputed = snapshotValueAndId(lastIdSnapshot.value);
|
|
2749
|
+
if (recomputed.id !== lastIdSnapshot.id) {
|
|
2737
2750
|
this.id$.value = this.delegatedIdentityOf(this.componentValue$.value);
|
|
2738
2751
|
}
|
|
2739
2752
|
});
|
|
@@ -3096,9 +3109,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
3096
3109
|
const HEADER_CELL_RENDERER_PORTAL = Symbol('aup-cell-header-renderer-component-ref');
|
|
3097
3110
|
const FOOTER_CELL_RENDERER_PORTAL = Symbol('aup-cell-footer-renderer-component-ref');
|
|
3098
3111
|
const CELL_RENDERER_PORTAL = Symbol('aup-cell-renderer-component-ref');
|
|
3099
|
-
const CELL_EDITOR_PORTAL = Symbol('aup-cell-editor-component-ref');
|
|
3100
3112
|
const PORTAL_RENDERER_COMPONENT = Symbol('aup-cell-renderer-portal-component');
|
|
3101
|
-
const PORTAL_EDITOR_COMPONENT = Symbol('aup-cell-editor-portal-component');
|
|
3102
3113
|
class CellPortalRef {
|
|
3103
3114
|
}
|
|
3104
3115
|
class CellHeaderPortalRef extends CellPortalRef {
|
|
@@ -3143,24 +3154,6 @@ class ComponentCellRendererPortalRef extends CellRendererPortalRef {
|
|
|
3143
3154
|
}
|
|
3144
3155
|
}
|
|
3145
3156
|
}
|
|
3146
|
-
class CellEditorPortalRef extends CellPortalRef {
|
|
3147
|
-
componentType;
|
|
3148
|
-
initialiseEditorSession;
|
|
3149
|
-
constructor(componentType, initialiseEditorSession) {
|
|
3150
|
-
super();
|
|
3151
|
-
this.componentType = componentType;
|
|
3152
|
-
this.initialiseEditorSession = initialiseEditorSession;
|
|
3153
|
-
}
|
|
3154
|
-
initialiseHost(host) {
|
|
3155
|
-
assert$1.isTruthy(host);
|
|
3156
|
-
host[CELL_EDITOR_PORTAL] = new ComponentPortal(this.componentType);
|
|
3157
|
-
}
|
|
3158
|
-
// @Trace()
|
|
3159
|
-
onPortalAttached(host, portalComponent) {
|
|
3160
|
-
host[PORTAL_EDITOR_COMPONENT] = portalComponent;
|
|
3161
|
-
this.initialiseEditorSession(portalComponent, host.editSession);
|
|
3162
|
-
}
|
|
3163
|
-
}
|
|
3164
3157
|
class TemplateCellRendererPortalRef extends CellRendererPortalRef {
|
|
3165
3158
|
templateRef;
|
|
3166
3159
|
viewContainer;
|
|
@@ -3304,7 +3297,6 @@ class ColumnModel extends GarbageCollector {
|
|
|
3304
3297
|
_columnTextProperties;
|
|
3305
3298
|
_columnHeaderPortalRef;
|
|
3306
3299
|
_cellRendererPortalRef;
|
|
3307
|
-
_cellEditorPortalRef;
|
|
3308
3300
|
_enableRowSelection = true;
|
|
3309
3301
|
_flex = false;
|
|
3310
3302
|
_defaultVisibility$ = this.registerDisposable(new DelegatingValueModel().withDefault(true));
|
|
@@ -3384,9 +3376,6 @@ class ColumnModel extends GarbageCollector {
|
|
|
3384
3376
|
configureCellRenderer(config) {
|
|
3385
3377
|
this._cellRendererPortalRef = config;
|
|
3386
3378
|
}
|
|
3387
|
-
configureCellEditor(cellEditor) {
|
|
3388
|
-
this._cellEditorPortalRef = cellEditor;
|
|
3389
|
-
}
|
|
3390
3379
|
cellHeaderRenderer(componentType, initialiser) {
|
|
3391
3380
|
this.configureHeaderRenderer(new CellHeaderPortalRef(componentType, initialiser));
|
|
3392
3381
|
return this;
|
|
@@ -3397,17 +3386,11 @@ class ColumnModel extends GarbageCollector {
|
|
|
3397
3386
|
isFlex() {
|
|
3398
3387
|
return this._flex;
|
|
3399
3388
|
}
|
|
3400
|
-
hasEditorPortal() {
|
|
3401
|
-
return !!this._cellEditorPortalRef;
|
|
3402
|
-
}
|
|
3403
3389
|
attachHeaderCell(host) {
|
|
3404
3390
|
this._columnHeaderPortalRef.initialiseHost(host);
|
|
3405
3391
|
}
|
|
3406
3392
|
attachCell(host) {
|
|
3407
3393
|
this._cellRendererPortalRef.initialiseHost(host);
|
|
3408
|
-
if (this.hasEditorPortal()) {
|
|
3409
|
-
this._cellEditorPortalRef.initialiseHost(host);
|
|
3410
|
-
}
|
|
3411
3394
|
}
|
|
3412
3395
|
onHeaderAttached(host, ref) {
|
|
3413
3396
|
const component = this.getComponent(ref);
|
|
@@ -3417,10 +3400,6 @@ class ColumnModel extends GarbageCollector {
|
|
|
3417
3400
|
const component = this.getComponentOrEmbeddedView(ref);
|
|
3418
3401
|
this._cellRendererPortalRef.onPortalAttached(host, component);
|
|
3419
3402
|
}
|
|
3420
|
-
// @Trace()
|
|
3421
|
-
onEditorAttached(host, ref) {
|
|
3422
|
-
this._cellEditorPortalRef.onPortalAttached(host, this.getComponent(ref));
|
|
3423
|
-
}
|
|
3424
3403
|
updatePortalContent(host) {
|
|
3425
3404
|
this._cellRendererPortalRef.pushState(host);
|
|
3426
3405
|
}
|
|
@@ -3474,6 +3453,7 @@ class CustomTemplateColumnModel extends ColumnModel {
|
|
|
3474
3453
|
super(columnId, order, defaults);
|
|
3475
3454
|
this.configureCellRenderer(this.config);
|
|
3476
3455
|
}
|
|
3456
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- TemplateRef<any> is the Angular convention for ng-template refs
|
|
3477
3457
|
setTemplate(templateRef, viewContainer, fillCell, padChild) {
|
|
3478
3458
|
this.config.registerPortal(templateRef, viewContainer, fillCell, padChild);
|
|
3479
3459
|
}
|
|
@@ -3650,6 +3630,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
3650
3630
|
args: ['class']
|
|
3651
3631
|
}] } });
|
|
3652
3632
|
|
|
3633
|
+
/* eslint-disable @typescript-eslint/no-explicit-any -- directive captures arbitrary template refs */
|
|
3653
3634
|
class ColumnTemplateDirective {
|
|
3654
3635
|
host;
|
|
3655
3636
|
templateRef;
|
|
@@ -3685,82 +3666,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
3685
3666
|
type: Input
|
|
3686
3667
|
}] } });
|
|
3687
3668
|
|
|
3688
|
-
class EditSession extends GarbageCollector {
|
|
3689
|
-
rowId;
|
|
3690
|
-
form;
|
|
3691
|
-
saveCommand;
|
|
3692
|
-
_liveRowValue$ = new MutableValueModel();
|
|
3693
|
-
liveRowValue$ = this._liveRowValue$.readonly$;
|
|
3694
|
-
constructor(rowId, row, form, saveCommand) {
|
|
3695
|
-
super();
|
|
3696
|
-
this.rowId = rowId;
|
|
3697
|
-
this.form = form;
|
|
3698
|
-
this.saveCommand = saveCommand;
|
|
3699
|
-
this.form.load(row);
|
|
3700
|
-
this._liveRowValue$.value = row;
|
|
3701
|
-
this.form.onEdit(() => {
|
|
3702
|
-
// if (!this._liveRowValue.value[immerable]) {
|
|
3703
|
-
// console.warn()
|
|
3704
|
-
// }
|
|
3705
|
-
this._liveRowValue$.value = produce(this._liveRowValue$.value, draft => {
|
|
3706
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
3707
|
-
// @ts-ignore
|
|
3708
|
-
this.form.writeDirtyStateTo(draft);
|
|
3709
|
-
});
|
|
3710
|
-
});
|
|
3711
|
-
}
|
|
3712
|
-
}
|
|
3713
|
-
|
|
3714
|
-
class EditRowControlsComponent extends DisposableComponent {
|
|
3715
|
-
row;
|
|
3716
|
-
#editRowCommand_accessor_storage = proxify((Command));
|
|
3717
|
-
get editRowCommand() { return this.#editRowCommand_accessor_storage; }
|
|
3718
|
-
set editRowCommand(value) { this.#editRowCommand_accessor_storage = value; }
|
|
3719
|
-
_session;
|
|
3720
|
-
set editSession(session) {
|
|
3721
|
-
if (session) {
|
|
3722
|
-
session.form.disableWhile(this.saveCommand.busy$);
|
|
3723
|
-
}
|
|
3724
|
-
this._session = session;
|
|
3725
|
-
}
|
|
3726
|
-
get editSession() {
|
|
3727
|
-
return this._session;
|
|
3728
|
-
}
|
|
3729
|
-
saveCommand;
|
|
3730
|
-
cancelCommand;
|
|
3731
|
-
constructor() {
|
|
3732
|
-
super();
|
|
3733
|
-
this.saveCommand = Command.create(async () => {
|
|
3734
|
-
const finished = await this.editSession.saveCommand.execute();
|
|
3735
|
-
if (finished) {
|
|
3736
|
-
this.editSession.dispose();
|
|
3737
|
-
}
|
|
3738
|
-
});
|
|
3739
|
-
this.cancelCommand = Command.create(() => {
|
|
3740
|
-
this.editSession.dispose();
|
|
3741
|
-
}).disableWhile(this.saveCommand.busy$);
|
|
3742
|
-
}
|
|
3743
|
-
get form() {
|
|
3744
|
-
return this.editSession?.form;
|
|
3745
|
-
}
|
|
3746
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: EditRowControlsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3747
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: EditRowControlsComponent, selector: "aup-row-editor-controls", inputs: { row: "row", editRowCommand: "editRowCommand", editSession: "editSession" }, usesInheritance: true, ngImport: i0, template: "<button *ngIf=\"!editSession\" mat-icon-button [pectinCommand]=\"editRowCommand\" class=\"edit-button\"><aup-icon icon=\"mat:edit\"></aup-icon></button>\n<button *ngIf=\"editSession\" mat-icon-button [pectinCommand]=\"saveCommand\"><aup-icon icon=\"mat:done\"></aup-icon></button>\n<button *ngIf=\"editSession\" mat-icon-button [pectinCommand]=\"cancelCommand\"><aup-icon icon=\"mat:clear\"></aup-icon></button>\n", styles: [":host{display:block;width:80px}.edit-button{visibility:hidden}:host-context(tr:hover) .edit-button{visibility:visible}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: CommandDirective, selector: "[pectinCommand]", inputs: ["pectinCommand", "commandParameter", "preventDefault"] }, { kind: "component", type: i2.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: IconComponent, selector: "aup-icon", inputs: ["icon"] }] });
|
|
3748
|
-
}
|
|
3749
|
-
__decorate([
|
|
3750
|
-
Proxify(),
|
|
3751
|
-
__metadata("design:type", Object)
|
|
3752
|
-
], EditRowControlsComponent.prototype, "editRowCommand", null);
|
|
3753
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: EditRowControlsComponent, decorators: [{
|
|
3754
|
-
type: Component,
|
|
3755
|
-
args: [{ selector: 'aup-row-editor-controls', template: "<button *ngIf=\"!editSession\" mat-icon-button [pectinCommand]=\"editRowCommand\" class=\"edit-button\"><aup-icon icon=\"mat:edit\"></aup-icon></button>\n<button *ngIf=\"editSession\" mat-icon-button [pectinCommand]=\"saveCommand\"><aup-icon icon=\"mat:done\"></aup-icon></button>\n<button *ngIf=\"editSession\" mat-icon-button [pectinCommand]=\"cancelCommand\"><aup-icon icon=\"mat:clear\"></aup-icon></button>\n", styles: [":host{display:block;width:80px}.edit-button{visibility:hidden}:host-context(tr:hover) .edit-button{visibility:visible}\n"] }]
|
|
3756
|
-
}], ctorParameters: function () { return []; }, propDecorators: { row: [{
|
|
3757
|
-
type: Input
|
|
3758
|
-
}], editRowCommand: [{
|
|
3759
|
-
type: Input
|
|
3760
|
-
}], editSession: [{
|
|
3761
|
-
type: Input
|
|
3762
|
-
}] } });
|
|
3763
|
-
|
|
3764
3669
|
class PaginatorComponent extends DisposableComponent {
|
|
3765
3670
|
#pageController_accessor_storage = proxify(PageController);
|
|
3766
3671
|
get pageController() { return this.#pageController_accessor_storage; }
|
|
@@ -4055,6 +3960,7 @@ var ColumnOrderManager;
|
|
|
4055
3960
|
ColumnOrderManager.processPosition = processPosition;
|
|
4056
3961
|
})(ColumnOrderManager || (ColumnOrderManager = {}));
|
|
4057
3962
|
|
|
3963
|
+
/* eslint-disable @typescript-eslint/no-explicit-any -- column manager works with arbitrary column types */
|
|
4058
3964
|
class ColumnRef {
|
|
4059
3965
|
column;
|
|
4060
3966
|
position;
|
|
@@ -4193,26 +4099,9 @@ class CustomValueColumnModel extends ColumnModel {
|
|
|
4193
4099
|
}
|
|
4194
4100
|
}
|
|
4195
4101
|
|
|
4196
|
-
class EditorControlColumnModel extends ColumnModel {
|
|
4197
|
-
constructor(columnId, order, saveCommandFactory, defaults) {
|
|
4198
|
-
super(columnId, order, defaults);
|
|
4199
|
-
this.cellRenderer(EditRowControlsComponent);
|
|
4200
|
-
}
|
|
4201
|
-
cellRenderer(componentType) {
|
|
4202
|
-
this.configureCellRenderer(new ComponentCellRendererPortalRef(componentType, (component, rowData) => {
|
|
4203
|
-
component.row = rowData.row;
|
|
4204
|
-
component.editSession = rowData.editSession;
|
|
4205
|
-
component.editRowCommand = rowData.editRowCommand;
|
|
4206
|
-
}));
|
|
4207
|
-
return this;
|
|
4208
|
-
}
|
|
4209
|
-
getDefaultHeaderText() {
|
|
4210
|
-
return '';
|
|
4211
|
-
}
|
|
4212
|
-
}
|
|
4213
|
-
|
|
4214
4102
|
class ListPropertyColumnModel extends ColumnModel {
|
|
4215
4103
|
property;
|
|
4104
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- format callback returns arbitrary display value
|
|
4216
4105
|
_userFormat;
|
|
4217
4106
|
_defaultSearchTextFormat = value => {
|
|
4218
4107
|
const intermediate = (this._userFormat ?? Functions.identity)(value);
|
|
@@ -4235,21 +4124,7 @@ class ListPropertyColumnModel extends ColumnModel {
|
|
|
4235
4124
|
}));
|
|
4236
4125
|
return this;
|
|
4237
4126
|
}
|
|
4238
|
-
|
|
4239
|
-
const validators = Array.isArray(validatorsOrInitialiser) ? validatorsOrInitialiser : undefined;
|
|
4240
|
-
const initialiser = isFunction(validatorsOrInitialiser) ? validatorsOrInitialiser : initialiseComponent;
|
|
4241
|
-
this.configureCellEditor(new CellEditorPortalRef(editor, (component, editSession) => {
|
|
4242
|
-
const formListModel = editSession.form.pluckList(this.property);
|
|
4243
|
-
if (validators) {
|
|
4244
|
-
formListModel.validateUsing(validators);
|
|
4245
|
-
}
|
|
4246
|
-
component.list$ = formListModel;
|
|
4247
|
-
if (initialiser) {
|
|
4248
|
-
initialiser(component);
|
|
4249
|
-
}
|
|
4250
|
-
}));
|
|
4251
|
-
return this;
|
|
4252
|
-
}
|
|
4127
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- format callback returns arbitrary display value
|
|
4253
4128
|
format(formatter) {
|
|
4254
4129
|
assert$1.isFunction(formatter);
|
|
4255
4130
|
this._userFormat = formatter;
|
|
@@ -4262,6 +4137,7 @@ class ListPropertyColumnModel extends ColumnModel {
|
|
|
4262
4137
|
|
|
4263
4138
|
class PropertyColumnModel extends ColumnModel {
|
|
4264
4139
|
property;
|
|
4140
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- format callback returns arbitrary display value
|
|
4265
4141
|
_userFormat;
|
|
4266
4142
|
_defaultSearchTextFormatter = (value) => {
|
|
4267
4143
|
return (this._userFormat ?? Functions.identity)(value)?.toString();
|
|
@@ -4325,21 +4201,7 @@ class PropertyColumnModel extends ColumnModel {
|
|
|
4325
4201
|
}));
|
|
4326
4202
|
return this;
|
|
4327
4203
|
}
|
|
4328
|
-
|
|
4329
|
-
const validators = Array.isArray(validatorsOrInitialiser) ? validatorsOrInitialiser : undefined;
|
|
4330
|
-
const initialiser = isFunction(validatorsOrInitialiser) ? validatorsOrInitialiser : onComponentInit;
|
|
4331
|
-
this.configureCellEditor(new CellEditorPortalRef(editor, (component, editSession) => {
|
|
4332
|
-
const formValueModel = editSession.form.pluck(this.property);
|
|
4333
|
-
if (validators) {
|
|
4334
|
-
formValueModel.validateUsing(validators);
|
|
4335
|
-
}
|
|
4336
|
-
component.value$ = formValueModel;
|
|
4337
|
-
if (initialiser) {
|
|
4338
|
-
initialiser(component);
|
|
4339
|
-
}
|
|
4340
|
-
}));
|
|
4341
|
-
return this;
|
|
4342
|
-
}
|
|
4204
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- format callback returns arbitrary display value
|
|
4343
4205
|
format(formatter) {
|
|
4344
4206
|
assert$1.isFunction(formatter);
|
|
4345
4207
|
this._userFormat = formatter;
|
|
@@ -4679,21 +4541,14 @@ class AbstractTableModel extends GarbageCollector {
|
|
|
4679
4541
|
_filteredRows$ = this.registerDisposable(new DelegatingListModel());
|
|
4680
4542
|
_visibleRows$ = this.registerDisposable(new DelegatingListModel());
|
|
4681
4543
|
columnManager = this.registerDisposable(new ColumnManager());
|
|
4682
|
-
_editorSessions = new MutableListModel();
|
|
4683
|
-
_rowsBeingEdited$;
|
|
4684
|
-
saveCommandFactory;
|
|
4685
|
-
_editorSessionByRowId;
|
|
4686
4544
|
rowClassNamePredicates = [];
|
|
4687
4545
|
rowAttributeGenerators = [];
|
|
4688
4546
|
_columnTextPropertiesLookup;
|
|
4689
|
-
editing$;
|
|
4690
|
-
firstEditableColumn$;
|
|
4691
4547
|
selectionColumnModel;
|
|
4692
4548
|
rowSelectionDisabledOnAllColumns$;
|
|
4693
4549
|
rowClickListeners = new EventListenerList();
|
|
4694
4550
|
firstVisibleColumn$;
|
|
4695
4551
|
lastVisibleColumn$;
|
|
4696
|
-
_createForm = (row) => new DirtyTrackingForm();
|
|
4697
4552
|
textSearchPredicate$;
|
|
4698
4553
|
identityOf;
|
|
4699
4554
|
dataSourceEmpty$;
|
|
@@ -4705,11 +4560,6 @@ class AbstractTableModel extends GarbageCollector {
|
|
|
4705
4560
|
constructor() {
|
|
4706
4561
|
super();
|
|
4707
4562
|
const { chain } = Dsl.disposeWith(this);
|
|
4708
|
-
this._rowsBeingEdited$ = new MutableListModel([], {
|
|
4709
|
-
identifiedWith: row => this.identityOf(row)
|
|
4710
|
-
});
|
|
4711
|
-
this._editorSessionByRowId = chain(this._editorSessions).indexBy('rowId');
|
|
4712
|
-
this.editing$ = chain(this._editorSessions).count().isGreaterThan(0);
|
|
4713
4563
|
this.textSearchPredicate$ = chain(this.visibleColumns$).reduceAll(columns => {
|
|
4714
4564
|
const cache = new WeakMap();
|
|
4715
4565
|
return (row, regex) => {
|
|
@@ -4726,7 +4576,6 @@ class AbstractTableModel extends GarbageCollector {
|
|
|
4726
4576
|
this.selectionColumnModel = new SelectionColumnModel('selection-column', this.columnManager, () => this.getColumnTextProperties('selection-column'));
|
|
4727
4577
|
this.addColumn(this.selectionColumnModel, { before: null }); // first column
|
|
4728
4578
|
this.addRowClass('aup-row-selected', row => this.selectionColumnModel.isSelected(row));
|
|
4729
|
-
this.firstEditableColumn$ = chain(this.columns$).select(c => c.hasEditorPortal()).first();
|
|
4730
4579
|
this.firstVisibleColumn$ = chain(this.visibleColumns$).first();
|
|
4731
4580
|
this.lastVisibleColumn$ = chain(this.visibleColumns$).last();
|
|
4732
4581
|
this.rowSelectionDisabledOnAllColumns$ = chain(this.columnManager.visibleColumns$).select(column => column.isRowSelectionEnabled()).count().equals(0);
|
|
@@ -4787,39 +4636,6 @@ class AbstractTableModel extends GarbageCollector {
|
|
|
4787
4636
|
get visibleRows$() {
|
|
4788
4637
|
return this._visibleRows$.readonly$;
|
|
4789
4638
|
}
|
|
4790
|
-
get rowsBeingEdited$() {
|
|
4791
|
-
return this._rowsBeingEdited$.readonly$;
|
|
4792
|
-
}
|
|
4793
|
-
startEditSession(row) {
|
|
4794
|
-
const rowId = this.identityOf(row);
|
|
4795
|
-
if (this._rowsBeingEdited$.query().indexOf(row) > -1) {
|
|
4796
|
-
return lang$1.illegalState(`Row with id=${rowId} already being edited`);
|
|
4797
|
-
}
|
|
4798
|
-
// todo: pass the factories to the edit session so we can make the whole lot pluggable?
|
|
4799
|
-
const form = this._createForm(row);
|
|
4800
|
-
const saveCommand = this.saveCommandFactory.create(form, { disposedWith: this });
|
|
4801
|
-
const editSession = new EditSession(rowId, row, form, saveCommand);
|
|
4802
|
-
const { when } = Dsl.disposeWith(editSession);
|
|
4803
|
-
when(editSession.liveRowValue$).changes((editedValue) => {
|
|
4804
|
-
this._rowsBeingEdited$.replaceOrPush(editedValue);
|
|
4805
|
-
}, { initialValue: 'triggerChangeUnlessNil' });
|
|
4806
|
-
this._editorSessions.push(editSession);
|
|
4807
|
-
editSession.onDispose(() => {
|
|
4808
|
-
this._rowsBeingEdited$.remove(editSession.liveRowValue$.value);
|
|
4809
|
-
this._editorSessions.remove(editSession);
|
|
4810
|
-
});
|
|
4811
|
-
return editSession;
|
|
4812
|
-
}
|
|
4813
|
-
getEditSessionFor(row) {
|
|
4814
|
-
return this._editorSessionByRowId.get(this.identityOf(row));
|
|
4815
|
-
}
|
|
4816
|
-
cancelAllEditorSessions() {
|
|
4817
|
-
this._editorSessions.runInTransaction((draft) => {
|
|
4818
|
-
this._rowsBeingEdited$.runInTransaction(() => {
|
|
4819
|
-
draft.value.forEach(session => session.dispose());
|
|
4820
|
-
});
|
|
4821
|
-
});
|
|
4822
|
-
}
|
|
4823
4639
|
get columns$() {
|
|
4824
4640
|
return this.columnManager.allColumns$;
|
|
4825
4641
|
}
|
|
@@ -4837,14 +4653,6 @@ class AbstractTableModel extends GarbageCollector {
|
|
|
4837
4653
|
useSelectionModel(selectionModel) {
|
|
4838
4654
|
this.selectionColumnModel.useSelectionModel(selectionModel);
|
|
4839
4655
|
}
|
|
4840
|
-
addEditControls(saveCommandFactory, formFactory) {
|
|
4841
|
-
this.saveCommandFactory = saveCommandFactory;
|
|
4842
|
-
if (isFunction(formFactory)) {
|
|
4843
|
-
this._createForm = formFactory;
|
|
4844
|
-
}
|
|
4845
|
-
const columnId = 'editControls';
|
|
4846
|
-
return this.addColumn(new EditorControlColumnModel(columnId, this.columnManager, saveCommandFactory, () => this.getColumnTextProperties(columnId)));
|
|
4847
|
-
}
|
|
4848
4656
|
addCustomColumn(columnId, dataAccessor) {
|
|
4849
4657
|
return this.addColumn(new CustomValueColumnModel(columnId, this.columnManager, () => this.getColumnTextProperties(columnId), dataAccessor));
|
|
4850
4658
|
}
|
|
@@ -4962,53 +4770,21 @@ ProxyRegistry.registerOneTimeBinding(AbstractTableModel);
|
|
|
4962
4770
|
class TableCellComponent extends DisposableComponent {
|
|
4963
4771
|
row;
|
|
4964
4772
|
column;
|
|
4965
|
-
editSession;
|
|
4966
4773
|
tableModel;
|
|
4967
|
-
|
|
4774
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- CDK Portal<any> is the convention; the actual type is determined by the column's renderer
|
|
4968
4775
|
[CELL_RENDERER_PORTAL];
|
|
4969
|
-
[CELL_EDITOR_PORTAL];
|
|
4970
4776
|
defaultClassNames = 'aup-cell-renderer';
|
|
4971
4777
|
fillCell = false;
|
|
4972
4778
|
padChild = false;
|
|
4973
4779
|
constructor() {
|
|
4974
4780
|
super();
|
|
4975
|
-
this.editRowCommand = Command.create(() => {
|
|
4976
|
-
this.tableModel.startEditSession(this.row);
|
|
4977
|
-
});
|
|
4978
4781
|
this.onInit(() => {
|
|
4979
|
-
// This binding was triggering a memory leak... not sure why.
|
|
4980
|
-
// const { chain} = Dsl.disposeWith(this);
|
|
4981
|
-
// this.firstEditableColumn = chain(this.tableModel.firstEditableColumn$).equals(this.column); // this would break if the column changed.
|
|
4982
4782
|
this.column.attachCell(this);
|
|
4983
4783
|
});
|
|
4984
4784
|
}
|
|
4985
|
-
hasActiveEditor() {
|
|
4986
|
-
return !!this.editSession && !!this.column.hasEditorPortal();
|
|
4987
|
-
}
|
|
4988
4785
|
initialiseRenderer(ref) {
|
|
4989
4786
|
this.column.onRendererAttached(this, ref);
|
|
4990
4787
|
}
|
|
4991
|
-
initialiseEditor(ref) {
|
|
4992
|
-
this.column.onEditorAttached(this, ref);
|
|
4993
|
-
if (this.tableModel.firstEditableColumn$.value === this.column) {
|
|
4994
|
-
// @see https://github.com/angular/components/issues/12070
|
|
4995
|
-
setTimeout(() => this.tryAndFocusEditor(ref));
|
|
4996
|
-
}
|
|
4997
|
-
}
|
|
4998
|
-
tryAndFocusEditor(ref) {
|
|
4999
|
-
if (ref instanceof ComponentRef) {
|
|
5000
|
-
const editor = ref.instance;
|
|
5001
|
-
// CellEditorComponent<Row> | CellListEditorComponent<Row>
|
|
5002
|
-
if (editor.requestFocus) {
|
|
5003
|
-
editor.requestFocus();
|
|
5004
|
-
}
|
|
5005
|
-
else {
|
|
5006
|
-
const model = (editor['valueModel'] ||
|
|
5007
|
-
editor['listModel']);
|
|
5008
|
-
model?.focusContext?.requestFocus();
|
|
5009
|
-
}
|
|
5010
|
-
}
|
|
5011
|
-
}
|
|
5012
4788
|
// @Trace()
|
|
5013
4789
|
ngOnChanges(changes) {
|
|
5014
4790
|
this.column.updatePortalContent(this);
|
|
@@ -5016,28 +4792,21 @@ class TableCellComponent extends DisposableComponent {
|
|
|
5016
4792
|
getRendererPortal() {
|
|
5017
4793
|
return this[CELL_RENDERER_PORTAL];
|
|
5018
4794
|
}
|
|
5019
|
-
getEditorPortal() {
|
|
5020
|
-
return this[CELL_EDITOR_PORTAL];
|
|
5021
|
-
}
|
|
5022
4795
|
getRowData() {
|
|
5023
4796
|
return {
|
|
5024
4797
|
row: this.row,
|
|
5025
|
-
editSession: this.editSession,
|
|
5026
|
-
editRowCommand: this.editRowCommand,
|
|
5027
4798
|
};
|
|
5028
4799
|
}
|
|
5029
4800
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: TableCellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5030
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: TableCellComponent, selector: "aup-table-cell", inputs: { row: "row", column: "column",
|
|
4801
|
+
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$4.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
5031
4802
|
}
|
|
5032
4803
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: TableCellComponent, decorators: [{
|
|
5033
4804
|
type: Component,
|
|
5034
|
-
args: [{ selector: 'aup-table-cell', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container
|
|
4805
|
+
args: [{ selector: 'aup-table-cell', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container [cdkPortalOutlet]=\"getRendererPortal()\" (attached)=\"initialiseRenderer($event)\"></ng-container>\n" }]
|
|
5035
4806
|
}], ctorParameters: function () { return []; }, propDecorators: { row: [{
|
|
5036
4807
|
type: Input
|
|
5037
4808
|
}], column: [{
|
|
5038
4809
|
type: Input
|
|
5039
|
-
}], editSession: [{
|
|
5040
|
-
type: Input
|
|
5041
4810
|
}], tableModel: [{
|
|
5042
4811
|
type: Input
|
|
5043
4812
|
}], defaultClassNames: [{
|
|
@@ -5169,6 +4938,18 @@ class TableBodyComponent extends ResizeAwareComponent {
|
|
|
5169
4938
|
scrollEndAbortController = null;
|
|
5170
4939
|
optimisedChangeDetectionEnabled;
|
|
5171
4940
|
viewInitialized = false;
|
|
4941
|
+
markForCheck() {
|
|
4942
|
+
if (this.optimisedChangeDetectionEnabled) {
|
|
4943
|
+
// The table-body detaches its own CDR and has no detached parent (AUP_DETACHED_PARENT_CDR
|
|
4944
|
+
// uses skipSelf), so the base markForCheck() would call cdr.markForCheck() which is a
|
|
4945
|
+
// no-op on a detached view. Schedule an explicit detectChanges() on ourselves instead so
|
|
4946
|
+
// that viewStateDependsOn() correctly triggers re-renders (e.g. row selection classes).
|
|
4947
|
+
DisposableComponent.scheduleParentSweep(this.cdr);
|
|
4948
|
+
}
|
|
4949
|
+
else {
|
|
4950
|
+
super.markForCheck();
|
|
4951
|
+
}
|
|
4952
|
+
}
|
|
5172
4953
|
constructor(bufferMultiplier = 3) {
|
|
5173
4954
|
super();
|
|
5174
4955
|
this.bufferMultiplier = bufferMultiplier;
|
|
@@ -5201,7 +4982,7 @@ class TableBodyComponent extends ResizeAwareComponent {
|
|
|
5201
4982
|
this.columns$ = chain(this.tableModel.visibleColumns$);
|
|
5202
4983
|
this.columnIds$ = chain(this.columns$).pluck("columnId");
|
|
5203
4984
|
this.columnsById$ = chain(this.columns$).indexBy('columnId');
|
|
5204
|
-
this.viewStateDependsOn(this.tableModel.filteredRows$, this.tableModel.visibleColumns$, this.virtualScrollActive$, this.animationsDisabled$);
|
|
4985
|
+
this.viewStateDependsOn(this.tableModel.filteredRows$, this.tableModel.visibleColumns$, this.virtualScrollActive$, this.animationsDisabled$, this.tableModel.selectedItems$);
|
|
5205
4986
|
});
|
|
5206
4987
|
}
|
|
5207
4988
|
ngAfterViewInit() {
|
|
@@ -5244,9 +5025,6 @@ class TableBodyComponent extends ResizeAwareComponent {
|
|
|
5244
5025
|
get rowHeightCssVar() {
|
|
5245
5026
|
return `${this.rowHeight$.value}px`;
|
|
5246
5027
|
}
|
|
5247
|
-
isEditing(row) {
|
|
5248
|
-
return !!this.tableModel.getEditSessionFor(row);
|
|
5249
|
-
}
|
|
5250
5028
|
notifyCellClicked(columnModel, row) {
|
|
5251
5029
|
this.tableModel._notifyCellClicked(columnModel, row);
|
|
5252
5030
|
}
|
|
@@ -5332,7 +5110,7 @@ class TableBodyComponent extends ResizeAwareComponent {
|
|
|
5332
5110
|
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 });
|
|
5333
5111
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: TableBodyComponent, selector: "aup-table-body", inputs: { data$: "data$", tableModel: "tableModel", footerRow: "footerRow", showHeader$: "showHeader$", showHeader: "showHeader", trackBy: "trackBy", scrollMode$: "scrollMode$", scrollMode: "scrollMode" }, host: { properties: { "attr.scrollMode": "this.scrollMode", "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: [
|
|
5334
5112
|
{ provide: AUP_DETACHED_PARENT_CDR, useFactory: () => inject(AUP_TABLE_OPTIMIZED_CHANGE_DETECTION, { optional: true }) ? inject(ChangeDetectorRef) : null }
|
|
5335
|
-
], viewQueries: [{ propertyName: "scrollViewport", first: true, predicate: CdkVirtualScrollViewport, descendants: true }], usesInheritance: true, ngImport: i0, template: "\n<div class=\"classic-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.isCursorEnabled(column)\"\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 [
|
|
5113
|
+
], viewQueries: [{ propertyName: "scrollViewport", first: true, predicate: CdkVirtualScrollViewport, descendants: true }], usesInheritance: true, ngImport: i0, template: "\n<div class=\"classic-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.isCursorEnabled(column)\"\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 ></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.isHoverEnabled()\"\n [aupTableRowAttributes]=\"tableModel.getRowAttributes(row)\"\n [attr.aup-row-id]=\"trackBy(i, row)\"\n ></tr>\n\n <ng-container matColumnDef=\"sticky-footer\" *ngIf=\"Proxify.hasTarget(footerRow)\">\n <td mat-footer-cell *matFooterCellDef [attr.colspan]=\"columns$.length\" [ngClass]=\"'footer-cell'\">\n <aup-table-footer-row [row]=\"$any(footerRow)\"></aup-table-footer-row>\n </td>\n <tr mat-footer-row *matFooterRowDef=\"['sticky-footer']; sticky: true\"></tr>\n </ng-container>\n\n </table>\n</div>\n\n<cdk-virtual-scroll-viewport *ngIf=\"scrollMode$.value === 'virtual'\"\n [@.disabled]=\"animationsDisabled$.value\"\n [tvsItemSize]=\"rowHeight$.value\"\n [headerHeight]=\"headerHeight$.value\"\n [footerEnabled]=\"Proxify.hasTarget(footerRow)\"\n [footerHeight]=\"48\"\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.isCursorEnabled(column)\"\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 ></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.isHoverEnabled()\"\n [aupTableRowAttributes]=\"tableModel.getRowAttributes(row)\"\n [attr.aup-row-id]=\"trackBy(i, row)\"\n ></tr>\n\n <ng-container matColumnDef=\"sticky-footer\" *ngIf=\"Proxify.hasTarget(footerRow)\">\n <td mat-footer-cell *matFooterCellDef [attr.colspan]=\"columns$.length\" [ngClass]=\"'footer-cell'\">\n <aup-table-footer-row [row]=\"$any(footerRow)\"></aup-table-footer-row>\n </td>\n <tr mat-footer-row *matFooterRowDef=\"['sticky-footer']; sticky: true\"></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[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}\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: "component", type: i2$7.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i2$7.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i2$7.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i2$7.MatColumnDef, selector: "[matColumnDef]", inputs: ["sticky", "matColumnDef"] }, { kind: "directive", type: i2$7.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i2$7.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i2$7.MatFooterCellDef, selector: "[matFooterCellDef]" }, { kind: "directive", type: i2$7.MatFooterRowDef, selector: "[matFooterRowDef]", inputs: ["matFooterRowDef", "matFooterRowDefSticky"] }, { kind: "directive", type: i2$7.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i2$7.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "directive", type: i2$7.MatFooterCell, selector: "mat-footer-cell, td[mat-footer-cell]" }, { kind: "component", type: i2$7.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i2$7.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "component", type: i2$7.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: i4$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: ["row"] }] });
|
|
5336
5114
|
}
|
|
5337
5115
|
__decorate([
|
|
5338
5116
|
Proxify(),
|
|
@@ -5366,7 +5144,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
5366
5144
|
type: Component,
|
|
5367
5145
|
args: [{ selector: "aup-table-body", providers: [
|
|
5368
5146
|
{ provide: AUP_DETACHED_PARENT_CDR, useFactory: () => inject(AUP_TABLE_OPTIMIZED_CHANGE_DETECTION, { optional: true }) ? inject(ChangeDetectorRef) : null }
|
|
5369
|
-
], template: "\n<div class=\"classic-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.isCursorEnabled(column)\"\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 [
|
|
5147
|
+
], template: "\n<div class=\"classic-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.isCursorEnabled(column)\"\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 ></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.isHoverEnabled()\"\n [aupTableRowAttributes]=\"tableModel.getRowAttributes(row)\"\n [attr.aup-row-id]=\"trackBy(i, row)\"\n ></tr>\n\n <ng-container matColumnDef=\"sticky-footer\" *ngIf=\"Proxify.hasTarget(footerRow)\">\n <td mat-footer-cell *matFooterCellDef [attr.colspan]=\"columns$.length\" [ngClass]=\"'footer-cell'\">\n <aup-table-footer-row [row]=\"$any(footerRow)\"></aup-table-footer-row>\n </td>\n <tr mat-footer-row *matFooterRowDef=\"['sticky-footer']; sticky: true\"></tr>\n </ng-container>\n\n </table>\n</div>\n\n<cdk-virtual-scroll-viewport *ngIf=\"scrollMode$.value === 'virtual'\"\n [@.disabled]=\"animationsDisabled$.value\"\n [tvsItemSize]=\"rowHeight$.value\"\n [headerHeight]=\"headerHeight$.value\"\n [footerEnabled]=\"Proxify.hasTarget(footerRow)\"\n [footerHeight]=\"48\"\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.isCursorEnabled(column)\"\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 ></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.isHoverEnabled()\"\n [aupTableRowAttributes]=\"tableModel.getRowAttributes(row)\"\n [attr.aup-row-id]=\"trackBy(i, row)\"\n ></tr>\n\n <ng-container matColumnDef=\"sticky-footer\" *ngIf=\"Proxify.hasTarget(footerRow)\">\n <td mat-footer-cell *matFooterCellDef [attr.colspan]=\"columns$.length\" [ngClass]=\"'footer-cell'\">\n <aup-table-footer-row [row]=\"$any(footerRow)\"></aup-table-footer-row>\n </td>\n <tr mat-footer-row *matFooterRowDef=\"['sticky-footer']; sticky: true\"></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[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}\n"] }]
|
|
5370
5148
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
5371
5149
|
type: Inject,
|
|
5372
5150
|
args: [AUP_TABLE_VIRTUAL_SCROLL_BUFFER_MULTIPLIER]
|
|
@@ -5577,7 +5355,6 @@ class TableFilterModel extends GarbageCollector {
|
|
|
5577
5355
|
ProxyRegistry.registerOneTimeBinding(TableFilterModel);
|
|
5578
5356
|
|
|
5579
5357
|
/**
|
|
5580
|
-
* Example:
|
|
5581
5358
|
* @example
|
|
5582
5359
|
* const model = new TableModel(heroList, table => {
|
|
5583
5360
|
* table.pluck("firstName");
|
|
@@ -5585,54 +5362,29 @@ ProxyRegistry.registerOneTimeBinding(TableFilterModel);
|
|
|
5585
5362
|
* table.addCustomColumn("fullName", hero => `${hero.firstName} ${hero.lastName}`);
|
|
5586
5363
|
* });
|
|
5587
5364
|
*
|
|
5588
|
-
* Editable tables
|
|
5589
|
-
* @example
|
|
5590
|
-
* const saveCommand = UnaryCommand.create((form: Form<Hero>) => {
|
|
5591
|
-
* if (form.validate()) {
|
|
5592
|
-
* // normal form save stuff
|
|
5593
|
-
* return true; // finish editing
|
|
5594
|
-
* }
|
|
5595
|
-
* return false; // continue editiing
|
|
5596
|
-
* }
|
|
5597
|
-
* const colorsNames: ListModel<string> = ...;
|
|
5598
|
-
* const model = TableModel.fromList(heroList, table => {
|
|
5599
|
-
* table.pluck("firstName").cellEditor(StringInputComponent); <-- interface CellEditor { valueModel: DirtyTrackingForm.ValueModel<string> | ValueModel<string>; }
|
|
5600
|
-
* table.pluck("lastName").cellEditor(StringInputComponent, {
|
|
5601
|
-
* validators: [Validator.present("We need a last name")]
|
|
5602
|
-
* });
|
|
5603
|
-
* table.pluck("age").cellEditor(NumberInputComponent);
|
|
5604
|
-
* table.pluck("favoriteColor").cellEditor(SelectInputComponent, {
|
|
5605
|
-
* initialiseComponent(component: SelectInputComponent) {
|
|
5606
|
-
* selectInput.optionsModel = colorsNames; // <- initialise our component
|
|
5607
|
-
* }
|
|
5608
|
-
* });
|
|
5609
|
-
* table.addEditControls(saveCommand); // <- required to enable editing
|
|
5610
|
-
* });
|
|
5611
|
-
*
|
|
5612
5365
|
* Selection models
|
|
5613
5366
|
* @example
|
|
5614
5367
|
* const model = new TableModel(heroList, table => {
|
|
5615
|
-
* table.
|
|
5368
|
+
* table.useSelectionModel(selectionModel); // single or multiple selection model
|
|
5616
5369
|
* table.pluck("firstName");
|
|
5617
5370
|
* table.pluck("lastName");
|
|
5618
5371
|
* });
|
|
5619
5372
|
*
|
|
5620
|
-
* Custom cell renderers
|
|
5373
|
+
* Custom cell renderers
|
|
5621
5374
|
* @example
|
|
5622
5375
|
* const model = new TableModel(heroList, table => {
|
|
5623
5376
|
* table.pluck("favoriteColor")
|
|
5624
5377
|
* .cellHeaderRenderer(CellHeaderRendererComponent, (component, column) => {
|
|
5625
5378
|
* // configure your component with what ever you need.
|
|
5626
|
-
* })
|
|
5627
|
-
* .cellRenderer(CellRendererComponent)
|
|
5628
|
-
* .cellEditor(CellEditorComponent.); // <-- interface CellEditor { valueModel: DirtyTrackingForm.ValueModel<string> | ValueModel<string>; }
|
|
5379
|
+
* })
|
|
5380
|
+
* .cellRenderer(CellRendererComponent);
|
|
5629
5381
|
* table.addCustomColumn("fullName", hero => `${hero.firstName} ${hero.lastName}`);
|
|
5630
5382
|
* });
|
|
5631
5383
|
*
|
|
5632
5384
|
* Template columns
|
|
5633
5385
|
* @example
|
|
5634
5386
|
* const model = new TableModel(heroList, table => {
|
|
5635
|
-
* table.
|
|
5387
|
+
* table.useSelectionModel(selectionModel);
|
|
5636
5388
|
* table.addTemplateColumn("myTemplate");
|
|
5637
5389
|
* });
|
|
5638
5390
|
*
|
|
@@ -5649,7 +5401,7 @@ ProxyRegistry.registerOneTimeBinding(TableFilterModel);
|
|
|
5649
5401
|
* headerText: "Full Name"
|
|
5650
5402
|
*
|
|
5651
5403
|
* const model = new TableModel(heroList, table => {
|
|
5652
|
-
* table.pluck("favoriteColor")
|
|
5404
|
+
* table.pluck("favoriteColor");
|
|
5653
5405
|
* table.addCustomColumn("fullName", hero => `${hero.firstName} ${hero.lastName}`);
|
|
5654
5406
|
*
|
|
5655
5407
|
* table.columnTextProperties(I18n.table.columns); // <- configures all columns
|
|
@@ -6692,7 +6444,6 @@ class ComponentsModule {
|
|
|
6692
6444
|
CardContainerComponent,
|
|
6693
6445
|
TableComponent,
|
|
6694
6446
|
TableRowAttributesDirective,
|
|
6695
|
-
EditRowControlsComponent,
|
|
6696
6447
|
ColumnTemplateDirective,
|
|
6697
6448
|
DefaultCellRendererComponent,
|
|
6698
6449
|
TableCellComponent,
|
|
@@ -6771,7 +6522,6 @@ class ComponentsModule {
|
|
|
6771
6522
|
FocusableComponent,
|
|
6772
6523
|
CardContainerComponent,
|
|
6773
6524
|
TableComponent,
|
|
6774
|
-
EditRowControlsComponent,
|
|
6775
6525
|
ColumnTemplateDirective,
|
|
6776
6526
|
IconComponent,
|
|
6777
6527
|
SectionHeaderComponent,
|
|
@@ -6867,7 +6617,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
6867
6617
|
CardContainerComponent,
|
|
6868
6618
|
TableComponent,
|
|
6869
6619
|
TableRowAttributesDirective,
|
|
6870
|
-
EditRowControlsComponent,
|
|
6871
6620
|
ColumnTemplateDirective,
|
|
6872
6621
|
DefaultCellRendererComponent,
|
|
6873
6622
|
TableCellComponent,
|
|
@@ -6928,7 +6677,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
6928
6677
|
FocusableComponent,
|
|
6929
6678
|
CardContainerComponent,
|
|
6930
6679
|
TableComponent,
|
|
6931
|
-
EditRowControlsComponent,
|
|
6932
6680
|
ColumnTemplateDirective,
|
|
6933
6681
|
IconComponent,
|
|
6934
6682
|
SectionHeaderComponent,
|
|
@@ -6966,6 +6714,7 @@ class TextSearchContext {
|
|
|
6966
6714
|
this.searchRegex = searchRegex;
|
|
6967
6715
|
}
|
|
6968
6716
|
getOrCreate(type, create) {
|
|
6717
|
+
// TODO: stub awaiting per-context cache implementation
|
|
6969
6718
|
}
|
|
6970
6719
|
matchesText(text) {
|
|
6971
6720
|
return this.searchRegex.test(text);
|
|
@@ -7140,6 +6889,7 @@ var Confirm;
|
|
|
7140
6889
|
Confirm.isDestructive = isDestructive;
|
|
7141
6890
|
})(Confirm || (Confirm = {}));
|
|
7142
6891
|
|
|
6892
|
+
/* eslint-disable @typescript-eslint/no-explicit-any -- abstract dialog is generic over arbitrary alert config and I/O */
|
|
7143
6893
|
const ALERT_CONFIG = new InjectionToken('AlertConfig');
|
|
7144
6894
|
class AbstractDialogComponent extends Activity {
|
|
7145
6895
|
config;
|
|
@@ -7161,6 +6911,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
7161
6911
|
args: [ALERT_CONFIG]
|
|
7162
6912
|
}] }]; } });
|
|
7163
6913
|
|
|
6914
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- E defaults to any for callers that don't care about the error type
|
|
7164
6915
|
class AbstractConfirmDialogComponent extends AbstractDialogComponent {
|
|
7165
6916
|
cancelFace;
|
|
7166
6917
|
confirmClass = "aup-confirm-activity";
|
|
@@ -7400,6 +7151,7 @@ class InteractionServiceRoutingAdapter {
|
|
|
7400
7151
|
class ModalInteractionContextFactory {
|
|
7401
7152
|
}
|
|
7402
7153
|
|
|
7154
|
+
/* eslint-disable @typescript-eslint/no-explicit-any -- service dispatches arbitrary activity shapes */
|
|
7403
7155
|
let inplaceMonitorCount = 0;
|
|
7404
7156
|
class InteractionService {
|
|
7405
7157
|
modelInteractionContextFactory;
|
|
@@ -8111,6 +7863,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
8111
7863
|
// }
|
|
8112
7864
|
})(PlaceComponent || (PlaceComponent = {}));
|
|
8113
7865
|
|
|
7866
|
+
/* eslint-disable @typescript-eslint/no-explicit-any -- visit segments carry arbitrary route params */
|
|
8114
7867
|
class VisitSegment {
|
|
8115
7868
|
placeDefinition;
|
|
8116
7869
|
visitParameters;
|
|
@@ -10145,8 +9898,7 @@ class AbstractInteractionContext {
|
|
|
10145
9898
|
return this.confirmOrReject(confirm).then(() => true).catch(() => false);
|
|
10146
9899
|
}
|
|
10147
9900
|
alert(alert) {
|
|
10148
|
-
|
|
10149
|
-
return this.createAndLaunchActivity(AlertDialogComponent, alert);
|
|
9901
|
+
return this.createAndLaunchActivity(AlertDialogComponent, alert, { enableCloseOnBackdropClick: true });
|
|
10150
9902
|
}
|
|
10151
9903
|
confirmOrReject(confirm) {
|
|
10152
9904
|
return this.createAndLaunchActivity(ConfirmationDialogComponent, confirm);
|
|
@@ -10479,7 +10231,9 @@ class ActivityContainerComponent extends AbstractInteractionContext {
|
|
|
10479
10231
|
// new activity followed a single tab activity (since we're tracking
|
|
10480
10232
|
// by activity index)
|
|
10481
10233
|
setTimeout(() => {
|
|
10482
|
-
|
|
10234
|
+
// Drop completed activities, but preserve any new ones launched during the cleanup window
|
|
10235
|
+
// — otherwise a fast open→close→open sequence loses the second activity.
|
|
10236
|
+
this.activityRefs = this.activityRefs.filter(ref => !ref.isComplete());
|
|
10483
10237
|
}, this.getTabAnimationDurationInMillis());
|
|
10484
10238
|
const promise = this.interactionServiceApi.notifyFinished(this);
|
|
10485
10239
|
this._deferredCleanUp = promise
|
|
@@ -10835,6 +10589,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
10835
10589
|
args: ["class.active"]
|
|
10836
10590
|
}] } });
|
|
10837
10591
|
|
|
10592
|
+
/* eslint-disable @typescript-eslint/no-explicit-any -- trigger dispatches arbitrary activity shapes */
|
|
10838
10593
|
class InlineActivityTriggerComponent extends AbstractActivityTriggerComponent {
|
|
10839
10594
|
_interactionContext;
|
|
10840
10595
|
get interactionContext() {
|
|
@@ -10854,6 +10609,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
10854
10609
|
args: [InPlaceInteractionContextComponent, { static: true }]
|
|
10855
10610
|
}] } });
|
|
10856
10611
|
|
|
10612
|
+
/* eslint-disable @typescript-eslint/no-explicit-any -- trigger dispatches arbitrary activity shapes */
|
|
10857
10613
|
class ModalActivityTriggerComponent extends AbstractActivityTriggerComponent {
|
|
10858
10614
|
_interactionContext;
|
|
10859
10615
|
get interactionContext() {
|
|
@@ -10999,6 +10755,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
10999
10755
|
type: Input
|
|
11000
10756
|
}] } });
|
|
11001
10757
|
|
|
10758
|
+
/* eslint-disable @typescript-eslint/no-explicit-any -- trigger dispatches arbitrary activity shapes */
|
|
11002
10759
|
class PopupActivityTriggerComponent extends AbstractActivityTriggerComponent {
|
|
11003
10760
|
anchorX = 'start';
|
|
11004
10761
|
anchorY = 'bottom';
|
|
@@ -12506,6 +12263,7 @@ class SidePlaceNavigationComponent extends AbstractPlaceNavigationComponent {
|
|
|
12506
12263
|
#expanded_accessor_storage = false;
|
|
12507
12264
|
get expanded() { return this.#expanded_accessor_storage; }
|
|
12508
12265
|
set expanded(value) { this.#expanded_accessor_storage = value; }
|
|
12266
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- TemplateRef<any> is the Angular convention for ng-template refs
|
|
12509
12267
|
navEndTemplate;
|
|
12510
12268
|
homeIcon$;
|
|
12511
12269
|
constructor(router) {
|
|
@@ -12545,7 +12303,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
12545
12303
|
}, {
|
|
12546
12304
|
type: HostBinding,
|
|
12547
12305
|
args: ['class.expanded']
|
|
12548
|
-
}],
|
|
12306
|
+
}],
|
|
12307
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- TemplateRef<any> is the Angular convention for ng-template refs
|
|
12308
|
+
navEndTemplate: [{
|
|
12549
12309
|
type: ContentChild,
|
|
12550
12310
|
args: ['navEndTemplate']
|
|
12551
12311
|
}] } });
|
|
@@ -12775,7 +12535,7 @@ class DialogInteractionContext extends AbstractInteractionContext {
|
|
|
12775
12535
|
}
|
|
12776
12536
|
createAndLaunchActivity(activityType, data, options) {
|
|
12777
12537
|
assert$1.isNil(this._currentActivityRef);
|
|
12778
|
-
const
|
|
12538
|
+
const enableCloseOnBackdropClick = Opts.get(options).getOptional('enableCloseOnBackdropClick', false);
|
|
12779
12539
|
const config = {
|
|
12780
12540
|
...this.config,
|
|
12781
12541
|
...{
|
|
@@ -12791,7 +12551,7 @@ class DialogInteractionContext extends AbstractInteractionContext {
|
|
|
12791
12551
|
// we need to check if our onDone/onCancel methods above we called or if we were
|
|
12792
12552
|
// closed by the user clicking the backdrop. If the later then we need to cancel our
|
|
12793
12553
|
// activity.
|
|
12794
|
-
if (
|
|
12554
|
+
if (enableCloseOnBackdropClick) {
|
|
12795
12555
|
matDialogRef.backdropClick().subscribe(event => {
|
|
12796
12556
|
if (this.canClose(options)) {
|
|
12797
12557
|
activityContainer.cancelActiveActivity();
|
|
@@ -12824,6 +12584,7 @@ class DialogInteractionContext extends AbstractInteractionContext {
|
|
|
12824
12584
|
}
|
|
12825
12585
|
}
|
|
12826
12586
|
|
|
12587
|
+
/* eslint-disable @typescript-eslint/no-explicit-any -- factory creates contexts for arbitrary activity shapes */
|
|
12827
12588
|
const DIALOG_INTERACTION_SERVICE_DEFAULTS = new InjectionToken('DIALOG_INTERACTION_SERVICE_DEFAULTS');
|
|
12828
12589
|
class DialogInteractionContextFactory extends ModalInteractionContextFactory {
|
|
12829
12590
|
dialogService;
|
|
@@ -12886,6 +12647,7 @@ var PlaceAccessGuard;
|
|
|
12886
12647
|
PlaceAccessGuard.NoAuth = NoAuth;
|
|
12887
12648
|
})(PlaceAccessGuard || (PlaceAccessGuard = {}));
|
|
12888
12649
|
|
|
12650
|
+
/* eslint-disable @typescript-eslint/no-explicit-any -- decorator metadata for arbitrary place components */
|
|
12889
12651
|
function Place(options) {
|
|
12890
12652
|
return (target) => {
|
|
12891
12653
|
if (PlaceComponent.isPlaceComponentConstructor(target)) {
|
|
@@ -13143,7 +12905,7 @@ var Formatter;
|
|
|
13143
12905
|
// const backingModel = parameterDef.createBackingModel();
|
|
13144
12906
|
// instance[key] = {
|
|
13145
12907
|
// backingModel: backingModel,
|
|
13146
|
-
// binding: null as Binding<
|
|
12908
|
+
// binding: null as Binding<unknown, unknown>
|
|
13147
12909
|
// };
|
|
13148
12910
|
// const tag = `${tagPrefix}(${prototype.constructor.name}.${propertyKey.toString()})`;
|
|
13149
12911
|
// DebugContext.getOrCreate(instance[key].backingModel).tag(tag);
|
|
@@ -13294,5 +13056,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
13294
13056
|
* Generated bundle index. Do not edit.
|
|
13295
13057
|
*/
|
|
13296
13058
|
|
|
13297
|
-
export { ACTIVITY_DATA, ALERT_CONFIG, AUP_DETACHED_PARENT_CDR, AUP_PLACE_CONFIG, AUP_TABLE_OPTIMIZED_CHANGE_DETECTION, AUP_TABLE_VIRTUAL_SCROLL_BUFFER_MULTIPLIER, AUP_UNAUTHORISED_PLACE_NOTICE_COMPONENT, AbstractActivityTriggerComponent, AbstractCardContainerComponent, AbstractCellRenderer, AbstractConfirmDialogComponent, AbstractDialogComponent, AbstractInputComponent, AbstractInteractionContext, AbstractListInputComponent, AbstractPlaceNavigationComponent, AbstractPopStateNavigation, AbstractPopupMenuComponent, AbstractTableComponent, AbstractTableModel, AbstractValueInputComponent, Activity, ActivityActionsComponent, ActivityBodyComponent, ActivityContainerComponent, ActivityContext, ActivityOutletComponent, ActivityRef, ActivityTitleComponent, AddCardActivityComponent, AddItemInteractionContextComponent, Alert, AlertDialogComponent, AlertRendererComponent, AngularUiPowerupsModule, AutocompleteInputComponent, Bounds, BusyOverlayComponent, ButtonRendererComponent,
|
|
13059
|
+
export { ACTIVITY_DATA, ALERT_CONFIG, AUP_DETACHED_PARENT_CDR, AUP_PLACE_CONFIG, AUP_TABLE_OPTIMIZED_CHANGE_DETECTION, AUP_TABLE_VIRTUAL_SCROLL_BUFFER_MULTIPLIER, AUP_UNAUTHORISED_PLACE_NOTICE_COMPONENT, AbstractActivityTriggerComponent, AbstractCardContainerComponent, AbstractCellRenderer, AbstractConfirmDialogComponent, AbstractDialogComponent, AbstractInputComponent, AbstractInteractionContext, AbstractListInputComponent, AbstractPlaceNavigationComponent, AbstractPopStateNavigation, AbstractPopupMenuComponent, AbstractTableComponent, AbstractTableModel, AbstractValueInputComponent, Activity, ActivityActionsComponent, ActivityBodyComponent, ActivityContainerComponent, ActivityContext, ActivityOutletComponent, ActivityRef, ActivityTitleComponent, AddCardActivityComponent, AddItemInteractionContextComponent, Alert, AlertDialogComponent, AlertRendererComponent, AngularUiPowerupsModule, AutocompleteInputComponent, Bounds, BusyOverlayComponent, ButtonRendererComponent, CELL_RENDERER_PORTAL, CardContainerComponent, CellFooterPortalRef, CellHeaderPortalRef, CellPortalRef, CellRendererPortalRef, CheckboxInputComponent, ColumnManager, ColumnModel, ColumnOrderManager, ColumnTemplateDirective, ColumnTextSearchFormatter, CommandComponent, CommandContainer, CommandDirective, CommandFace, CommandFaceComponent, ComponentCellRendererPortalRef, ComponentsModule, Confirm, ConfirmRendererComponent, ConfirmThenDialogComponent, ConfirmThenExecuteDialogComponent, ConfirmationDialogComponent, ConsolidatedParameterMap, CustomTemplateColumnModel, CustomValueColumnModel, DEFINITION_META_DATA_KEY, DIALOG_INTERACTION_SERVICE_DEFAULTS, DecoratedTreeNode, DefaultCellRendererComponent, DefaultHeaderCellRendererComponent, DialogInteractionContext, DialogInteractionContextFactory, Dimension, DirectivesModule, DisposableComponent, EmptyStateComponent, EnableCellTextSearch, EventCleanUpSession, FOOTER_CELL_RENDERER_PORTAL, FileDownloadComponent, FlattenedTreeListModel, FlexComponent, FocusBinding, FocusBindingDirective, FocusBindingFactory, FocusContainerComponent, FocusableComponent, FooterRowModel, Formatter, GarbageCollectorDirective, HEADER_CELL_RENDERER_PORTAL, HighlightPipe, HighlightTextModelDirective, HorizontalAlignment, INTERACTION_CONTEXT, IconComponent, InPlaceInteractionContextComponent, InlineActivityTriggerComponent, InlineEditorModel, InlineStringEditorComponent, InputActivity, InteractionContextProvider, InteractionContextTriggerForDirective, InteractionModule, InteractionService, InteractionServiceRoutingAdapter, Keys, LEFT_RIGHT_PLACE_ANIMATION, LabelledValueComponent, ListPlaceNavComponent, ListPropertyColumnModel, LoadableComponent, LoadingContainerComponent, MarkdownComponent, MarkdownService, ModalActivityTriggerComponent, ModalInteractionContextFactory, MoreMenuComponent, MultipleSelectInputComponent, Navigating, NavigatingDuringInteraction, NavigationContext, NavigationSession, NoopAuthGuard, NoopComponent, NotAuthorisedNoticeComponent, NumberInputComponent, POPUP_CONTAINER, PORTAL_RENDERER_COMPONENT, PaginatorComponent, ParameterDefinition, ParameterSanitiser, PasswordInputComponent, Place, PlaceAccessGuard, PlaceAuthService, PlaceComponent, PlaceComponentDeactivationHandler, PlaceDefinition, PlaceGuard, PlaceHistory, PlaceModule, PlaceOutletComponent, PlaceRouter, Point, PopStateDuringInteractionNavigation, PopStateNavigation, PopupActivityTriggerComponent, PopupAwareComponent, PopupInteractionContextComponent, PopupMenuComponent, PopupMenuRendererComponent, PropertyColumnModel, ROUTE_PARAMETER_LIST_KEY, RemoveLastInteractionFromUrlNavigationSession, ResizeAwareComponent, ResizeObserverDirective, RouteId, ScrollContainerComponent, SearchInputComponent, SectionHeaderComponent, SelectInputActivity, SelectInputComponent, SelectionCellComponent, SelectionColumnModel, SelectionHeaderCellComponent, SeparatorComponent, SidePlaceNavigationComponent, SlideDownInteractionContextComponent, StringInputActivity, StringInputComponent, SwitchCaseComponent, SwitchCaseDefaultDirective, SwitchCaseOption, SwitchCaseWhenDirective, SynchroniseInteractionContextIdsWithRoute, TabbedPlaceNavigationComponent, TableActionColumnComponent, TableBodyComponent, TableCellComponent, TableComponent, TableCustomMoreMenuComponent, TableCustomMoreMenuPopupComponent, TableFilterModel, TableFooterRow, TableHeaderCellComponent, TableModel, TableRowAttributesDirective, TemplateCellRendererPortalRef, TextInputComponent, TextSearchContext, ToolBarComponent, Track, TreeExpansionModel, TreeInheritanceIconComponent, TreeLabelCellRendererComponent, TreeLabelColumnModel, TreeTableComponent, TreeTableModel, UrlService, UrlSnapshot, VerticalFocusContainerComponent, VisibilityService, Visit, VisitParameter, VisitParameterList, VisitSegment, VisitSegmentSanitiser, WaitUntilLeavingInteractionTransitionCancelled, WaitUntilLinkTriggeredNavigationInteractionCancellationTypeDetermined, WaitUntilPopStateDuringCanDeactivateInteractionFinishes, leftRightPlaceAnimation, markdownPillExtension, slideDownAndRightOnEnterAnimation, slideDownOnEnterAnimation, slideDownWhenOpenAnimation, slideRightOnEnterAnimation, treeNodeDecorator };
|
|
13298
13060
|
//# sourceMappingURL=coolon-angular-ui-powerups.mjs.map
|