@coolon/angular-ui-powerups 16.1.0-alpha.219 → 16.1.0-alpha.221

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.
Files changed (114) hide show
  1. package/esm2022/lib/components/cards/abstract-card-container.component.mjs +2 -1
  2. package/esm2022/lib/components/commands/group/popup-menu/popup-menu-renderer/popup-menu-renderer.component.mjs +2 -1
  3. package/esm2022/lib/components/components.module.mjs +1 -6
  4. package/esm2022/lib/components/disposable-component.mjs +4 -1
  5. package/esm2022/lib/components/exports.mjs +2 -6
  6. package/esm2022/lib/components/forms/abstract-input.component.mjs +2 -1
  7. package/esm2022/lib/components/forms/abstract-list-input.component.mjs +1 -1
  8. package/esm2022/lib/components/forms/abstract-value-input.component.mjs +1 -1
  9. package/esm2022/lib/components/forms/autocomplete-input/autocomplete-input.component.mjs +6 -2
  10. package/esm2022/lib/components/forms/multiple-select-input/multiple-select-input.component.mjs +2 -1
  11. package/esm2022/lib/components/forms/number-input/number-input.component.mjs +8 -4
  12. package/esm2022/lib/components/forms/select-input/select-input.component.mjs +8 -7
  13. package/esm2022/lib/components/tables/abstract-table-model.mjs +2 -60
  14. package/esm2022/lib/components/tables/abstract-table.component.mjs +2 -1
  15. package/esm2022/lib/components/tables/column/column-manager.mjs +2 -1
  16. package/esm2022/lib/components/tables/column/column-model.mjs +1 -15
  17. package/esm2022/lib/components/tables/column/column-order-manager.mjs +1 -1
  18. package/esm2022/lib/components/tables/column/column-template/column-template.directive.mjs +2 -1
  19. package/esm2022/lib/components/tables/column/custom-template-column-model.mjs +2 -1
  20. package/esm2022/lib/components/tables/column/list-propery-column-model.mjs +4 -18
  21. package/esm2022/lib/components/tables/column/property-column-model.mjs +4 -17
  22. package/esm2022/lib/components/tables/filter/column-text-search-formatter.mjs +1 -1
  23. package/esm2022/lib/components/tables/filter/enable-cell-text-search.decorator.mjs +1 -1
  24. package/esm2022/lib/components/tables/filter/text-search-predicate.mjs +2 -1
  25. package/esm2022/lib/components/tables/renderer/cell-portal-ref.mjs +1 -21
  26. package/esm2022/lib/components/tables/renderer/editable-cell-renderer.mjs +2 -0
  27. package/esm2022/lib/components/tables/renderer/select-header-cell/selection-header-cell.component.mjs +1 -1
  28. package/esm2022/lib/components/tables/renderer/table-body/table-body.component.mjs +3 -6
  29. package/esm2022/lib/components/tables/renderer/table-cell/table-cell.component.mjs +7 -49
  30. package/esm2022/lib/components/tables/renderer/table-footer-row/table-footer-row.component.mjs +1 -1
  31. package/esm2022/lib/components/tables/renderer/table-header-cell/table-header-cell.component.mjs +1 -1
  32. package/esm2022/lib/components/tables/table/table-model.mjs +7 -33
  33. package/esm2022/lib/components/tables/table/table.component.mjs +1 -1
  34. package/esm2022/lib/components/tables/tree-table/tree-expansion-model.mjs +1 -1
  35. package/esm2022/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.mjs +2 -1
  36. package/esm2022/lib/components/track.mjs +1 -1
  37. package/esm2022/lib/directives/command.directive.mjs +2 -1
  38. package/esm2022/lib/directives/focus-binding-factory.mjs +2 -1
  39. package/esm2022/lib/directives/focus-binding.mjs +22 -2
  40. package/esm2022/lib/directives/highlight.pipe.mjs +2 -1
  41. package/esm2022/lib/interaction/abstract-interaction-context.mjs +2 -3
  42. package/esm2022/lib/interaction/activity.mjs +2 -1
  43. package/esm2022/lib/interaction/components/abstract-confirm-dialog.component.mjs +2 -1
  44. package/esm2022/lib/interaction/components/abstract-dialog.component.mjs +2 -1
  45. package/esm2022/lib/interaction/components/activity-actions/activity-actions.component.mjs +2 -1
  46. package/esm2022/lib/interaction/components/activity-container/activity-container.component.mjs +5 -2
  47. package/esm2022/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.mjs +1 -1
  48. package/esm2022/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.mjs +2 -1
  49. package/esm2022/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.mjs +2 -1
  50. package/esm2022/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.mjs +2 -1
  51. package/esm2022/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.mjs +2 -1
  52. package/esm2022/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.mjs +2 -1
  53. package/esm2022/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.mjs +1 -1
  54. package/esm2022/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.mjs +1 -1
  55. package/esm2022/lib/interaction/components/input-activities/select-input-activity.mjs +1 -1
  56. package/esm2022/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.mjs +1 -1
  57. package/esm2022/lib/interaction/components/slide-down-interaction-context/slide-down-interaction-context.component.mjs +1 -1
  58. package/esm2022/lib/interaction/interaction-context-provider.mjs +1 -1
  59. package/esm2022/lib/interaction/route-synchronisation-adapter.mjs +1 -1
  60. package/esm2022/lib/interaction/services/interaction.service.mjs +2 -1
  61. package/esm2022/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context-factory.mjs +2 -1
  62. package/esm2022/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context.mjs +3 -3
  63. package/esm2022/lib/place/components/place-outlet/place-outlet.component.mjs +2 -1
  64. package/esm2022/lib/place/components/side-place-navigation/side-place-navigation.component.mjs +5 -2
  65. package/esm2022/lib/place/place-auth-service.mjs +1 -1
  66. package/esm2022/lib/place/place-component.mjs +2 -1
  67. package/esm2022/lib/place/place-definition.mjs +1 -1
  68. package/esm2022/lib/place/place-router.mjs +1 -1
  69. package/esm2022/lib/place/place.decorator.mjs +2 -1
  70. package/esm2022/lib/place/route/parameter-decorators.mjs +2 -2
  71. package/esm2022/lib/place/route/parameter-definition.mjs +1 -1
  72. package/esm2022/lib/place/route/parameter-snapshot.mjs +1 -1
  73. package/esm2022/lib/place/visit-segment.mjs +2 -1
  74. package/fesm2022/coolon-angular-ui-powerups.mjs +86 -316
  75. package/fesm2022/coolon-angular-ui-powerups.mjs.map +1 -1
  76. package/lib/components/components.module.d.ts +58 -59
  77. package/lib/components/disposable-component.d.ts +1 -1
  78. package/lib/components/exports.d.ts +1 -5
  79. package/lib/components/forms/abstract-list-input.component.d.ts +1 -1
  80. package/lib/components/forms/abstract-value-input.component.d.ts +1 -1
  81. package/lib/components/tables/abstract-table-model.d.ts +1 -15
  82. package/lib/components/tables/column/column-model.d.ts +4 -11
  83. package/lib/components/tables/column/list-propery-column-model.d.ts +1 -4
  84. package/lib/components/tables/column/property-column-model.d.ts +2 -5
  85. package/lib/components/tables/renderer/cell-portal-ref.d.ts +0 -10
  86. package/lib/components/tables/renderer/select-header-cell/selection-header-cell.component.d.ts +1 -1
  87. package/lib/components/tables/renderer/table-body/table-body.component.d.ts +0 -1
  88. package/lib/components/tables/renderer/table-cell/table-cell.component.d.ts +2 -10
  89. package/lib/components/tables/table/table-model.d.ts +7 -33
  90. package/lib/components/tables/table/table.component.d.ts +1 -1
  91. package/lib/directives/focus-binding.d.ts +1 -0
  92. package/lib/interaction/components/activity-container/activity-container.component.d.ts +4 -4
  93. package/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.d.ts +2 -2
  94. package/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.d.ts +1 -1
  95. package/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.d.ts +1 -1
  96. package/lib/interaction/components/input-activities/select-input-activity.d.ts +2 -2
  97. package/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.d.ts +1 -1
  98. package/lib/interaction/components/slide-down-interaction-context/slide-down-interaction-context.component.d.ts +1 -1
  99. package/lib/interaction/interaction-context-provider.d.ts +1 -1
  100. package/lib/interaction/route-synchronisation-adapter.d.ts +1 -1
  101. package/lib/place/place-auth-service.d.ts +1 -1
  102. package/lib/place/place-router.d.ts +1 -1
  103. package/lib/place/route/parameter-snapshot.d.ts +1 -1
  104. package/package.json +3 -3
  105. package/esm2022/lib/components/tables/column/editor-controls-column-model.mjs +0 -21
  106. package/esm2022/lib/components/tables/editor/edit-row-controls/edit-row-controls.component.mjs +0 -60
  107. package/esm2022/lib/components/tables/editor/edit-session.mjs +0 -28
  108. package/esm2022/lib/components/tables/editor/editable-cell-renderer.mjs +0 -2
  109. package/esm2022/lib/components/tables/renderer/cell-editors.mjs +0 -2
  110. package/lib/components/tables/column/editor-controls-column-model.d.ts +0 -14
  111. package/lib/components/tables/editor/edit-row-controls/edit-row-controls.component.d.ts +0 -17
  112. package/lib/components/tables/editor/edit-session.d.ts +0 -9
  113. package/lib/components/tables/renderer/cell-editors.d.ts +0 -9
  114. /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, DirtyTrackingForm, DependsOnOptions, LoadingStateTracker, DelegatingCommand, ComputedListModel, Deferred, ReducingValueModel, AndValueModel } 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, 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());
@@ -343,6 +346,8 @@ let FocusBinding = class FocusBinding extends GarbageCollector {
343
346
  ngZone;
344
347
  focusContext;
345
348
  document;
349
+ // Re-entrancy guard for tryAndFocus — see the comment there.
350
+ focusing = false;
346
351
  // TODO: update to support alternate focus mechanisms so we can interoperate with mat-checkbox
347
352
  constructor(focusTargetElement, ngZone, document, focusContext) {
348
353
  super();
@@ -374,9 +379,27 @@ let FocusBinding = class FocusBinding extends GarbageCollector {
374
379
  return this.document.activeElement === element;
375
380
  }
376
381
  tryAndFocus(retries = 5) {
382
+ // Re-entrancy guard. `focusTarget.focus()` synchronously dispatches focusout/focusin,
383
+ // which drive the FocusManager model and can re-trigger `when(focused$).changes` —
384
+ // re-entering this method on the same call stack. When two FocusBindings share one
385
+ // focusContext (e.g. two inputs bound to the same model), they pull focus between their
386
+ // elements and toggle the model on every hop; without this guard the synchronous
387
+ // re-entry recurses until the stack overflows. See focus-binding.spec.ts.
388
+ if (this.focusing) {
389
+ Logger.get(this).warn(`Re-entrant focus detected and suppressed. This usually means two components share a single ` +
390
+ `focusContext — most often because the same value model (or form field) is bound to more than ` +
391
+ `one input rendered at the same time. Give each rendered input its own model instance.`);
392
+ return;
393
+ }
377
394
  if (this.modelShouldStillHaveFocus() && this.canFocus()) {
378
395
  if (!this.alreadyHasFocus()) {
379
- this.focusTarget.focus();
396
+ this.focusing = true;
397
+ try {
398
+ this.focusTarget.focus();
399
+ }
400
+ finally {
401
+ this.focusing = false;
402
+ }
380
403
  }
381
404
  // if we didn't get the focus we try again later.
382
405
  if (!this.alreadyHasFocus()) {
@@ -419,6 +442,7 @@ FocusBinding = __decorate([
419
442
  class FocusBindingFactory {
420
443
  ngZone;
421
444
  document;
445
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any -- @Inject(DOCUMENT) infers as any; cast to Document below
422
446
  constructor(ngZone, document) {
423
447
  this.ngZone = ngZone;
424
448
  // @see https://stackoverflow.com/questions/49513359/could-not-resolve-type-document-in-angular5/53715642#53715642
@@ -532,6 +556,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
532
556
  }]
533
557
  }], ctorParameters: function () { return []; } });
534
558
 
559
+ /* eslint-disable @typescript-eslint/no-explicit-any -- Angular Pipe transform signature uses any by convention */
535
560
  class HighlightPipe extends GarbageCollector {
536
561
  sanitizer;
537
562
  highlightContext;
@@ -1687,6 +1712,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
1687
1712
  args: ['class.horizontal-container']
1688
1713
  }] } });
1689
1714
 
1715
+ /* eslint-disable @typescript-eslint/no-explicit-any -- popup menu renders arbitrary command shapes */
1690
1716
  // 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
1717
  // the FileDownloadComponent? This would greatly simplify things - Not easily it seems - that structure doesn't result in menus being
1692
1718
  // nested in each other correctly so sub menus don't work properly - i.e. clicking on a child item closes the parent.
@@ -2345,7 +2371,10 @@ class AutocompleteInputComponent extends AbstractValueInputComponent {
2345
2371
  onSelect($event) {
2346
2372
  this.inSearchUpdate$.whileTrue(() => {
2347
2373
  this.rawTextContent$.value = undefined;
2348
- this.value$["value"] = $event.option.value;
2374
+ // Write to componentValue$ (not value$) so the change flows LEFT through the
2375
+ // formValue↔componentValue binding and fires onValueEditedListeners — writing
2376
+ // to value$ would push RIGHT and be classified as an external change.
2377
+ this.componentValue$.value = $event.option.value;
2349
2378
  });
2350
2379
  }
2351
2380
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: AutocompleteInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
@@ -2521,10 +2550,10 @@ class NumberInputComponent extends AbstractValueInputComponent {
2521
2550
  });
2522
2551
  const normalisedValue$ = chain(this.value$).otherwise(0);
2523
2552
  this.incrementCommand = Command.create(() => {
2524
- this.value$.value = this.increment(this.value$.value);
2553
+ this.componentValue$.value = this.increment(this.value$.value);
2525
2554
  }).enableWhile(chain.numericValue(normalisedValue$).isLessThan(this.max$).and(this.enabled$));
2526
2555
  this.decrementCommand = Command.create(() => {
2527
- this.value$.value = this.decrement(this.value$.value);
2556
+ this.componentValue$.value = this.decrement(this.value$.value);
2528
2557
  }).enableWhile(chain.numericValue(normalisedValue$).isGreaterThan(this.min$).and(this.enabled$));
2529
2558
  }
2530
2559
  increment(value) {
@@ -2537,7 +2566,11 @@ class NumberInputComponent extends AbstractValueInputComponent {
2537
2566
  return isNil(this.significantDigits) ? value : Number(value.toFixed(this.significantDigits));
2538
2567
  }
2539
2568
  onValueChange(value) {
2540
- this.value$.value = value;
2569
+ // Write to componentValue$ (not value$) so the change flows LEFT through the
2570
+ // formValue↔componentValue binding. Writing to value$ would push RIGHT, and
2571
+ // AbstractValueInputComponent treats RIGHT-direction changes as external —
2572
+ // suppressing onValueEditedListeners, which liveEditCellRenderer subscribes to.
2573
+ this.componentValue$.value = value;
2541
2574
  }
2542
2575
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: NumberInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2543
2576
  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 +2758,15 @@ class SelectInputComponent extends AbstractValueInputComponent {
2725
2758
  id: this.delegatedIdentityOf(value)
2726
2759
  });
2727
2760
  let lastIdSnapshot = snapshotValueAndId(this.componentValue$.value);
2728
- // console.log(lastIdSnapshot)
2729
2761
  before(this.options$).changes(() => {
2730
2762
  lastIdSnapshot = snapshotValueAndId(this.componentValue$.value);
2731
- // console.log(lastIdSnapshot)
2732
2763
  });
2733
- when(this.options$).changes((is, was) => {
2734
- const newIdSnapshot = snapshotValueAndId(lastIdSnapshot.value);
2735
- // console.log(lastIdSnapshot, newIdSnapshot)
2736
- if (newIdSnapshot !== lastIdSnapshot.id) {
2764
+ when(this.options$).changes(() => {
2765
+ // If the identity function changed under us, the stored id$ no longer matches
2766
+ // delegatedIdentityOf(componentValue$). Re-derive the id for the SAME value: if it
2767
+ // differs from the snapshot, the identity function shifted and we need to re-sync id$.
2768
+ const recomputed = snapshotValueAndId(lastIdSnapshot.value);
2769
+ if (recomputed.id !== lastIdSnapshot.id) {
2737
2770
  this.id$.value = this.delegatedIdentityOf(this.componentValue$.value);
2738
2771
  }
2739
2772
  });
@@ -3096,9 +3129,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
3096
3129
  const HEADER_CELL_RENDERER_PORTAL = Symbol('aup-cell-header-renderer-component-ref');
3097
3130
  const FOOTER_CELL_RENDERER_PORTAL = Symbol('aup-cell-footer-renderer-component-ref');
3098
3131
  const CELL_RENDERER_PORTAL = Symbol('aup-cell-renderer-component-ref');
3099
- const CELL_EDITOR_PORTAL = Symbol('aup-cell-editor-component-ref');
3100
3132
  const PORTAL_RENDERER_COMPONENT = Symbol('aup-cell-renderer-portal-component');
3101
- const PORTAL_EDITOR_COMPONENT = Symbol('aup-cell-editor-portal-component');
3102
3133
  class CellPortalRef {
3103
3134
  }
3104
3135
  class CellHeaderPortalRef extends CellPortalRef {
@@ -3143,24 +3174,6 @@ class ComponentCellRendererPortalRef extends CellRendererPortalRef {
3143
3174
  }
3144
3175
  }
3145
3176
  }
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
3177
  class TemplateCellRendererPortalRef extends CellRendererPortalRef {
3165
3178
  templateRef;
3166
3179
  viewContainer;
@@ -3304,7 +3317,6 @@ class ColumnModel extends GarbageCollector {
3304
3317
  _columnTextProperties;
3305
3318
  _columnHeaderPortalRef;
3306
3319
  _cellRendererPortalRef;
3307
- _cellEditorPortalRef;
3308
3320
  _enableRowSelection = true;
3309
3321
  _flex = false;
3310
3322
  _defaultVisibility$ = this.registerDisposable(new DelegatingValueModel().withDefault(true));
@@ -3384,9 +3396,6 @@ class ColumnModel extends GarbageCollector {
3384
3396
  configureCellRenderer(config) {
3385
3397
  this._cellRendererPortalRef = config;
3386
3398
  }
3387
- configureCellEditor(cellEditor) {
3388
- this._cellEditorPortalRef = cellEditor;
3389
- }
3390
3399
  cellHeaderRenderer(componentType, initialiser) {
3391
3400
  this.configureHeaderRenderer(new CellHeaderPortalRef(componentType, initialiser));
3392
3401
  return this;
@@ -3397,17 +3406,11 @@ class ColumnModel extends GarbageCollector {
3397
3406
  isFlex() {
3398
3407
  return this._flex;
3399
3408
  }
3400
- hasEditorPortal() {
3401
- return !!this._cellEditorPortalRef;
3402
- }
3403
3409
  attachHeaderCell(host) {
3404
3410
  this._columnHeaderPortalRef.initialiseHost(host);
3405
3411
  }
3406
3412
  attachCell(host) {
3407
3413
  this._cellRendererPortalRef.initialiseHost(host);
3408
- if (this.hasEditorPortal()) {
3409
- this._cellEditorPortalRef.initialiseHost(host);
3410
- }
3411
3414
  }
3412
3415
  onHeaderAttached(host, ref) {
3413
3416
  const component = this.getComponent(ref);
@@ -3417,10 +3420,6 @@ class ColumnModel extends GarbageCollector {
3417
3420
  const component = this.getComponentOrEmbeddedView(ref);
3418
3421
  this._cellRendererPortalRef.onPortalAttached(host, component);
3419
3422
  }
3420
- // @Trace()
3421
- onEditorAttached(host, ref) {
3422
- this._cellEditorPortalRef.onPortalAttached(host, this.getComponent(ref));
3423
- }
3424
3423
  updatePortalContent(host) {
3425
3424
  this._cellRendererPortalRef.pushState(host);
3426
3425
  }
@@ -3474,6 +3473,7 @@ class CustomTemplateColumnModel extends ColumnModel {
3474
3473
  super(columnId, order, defaults);
3475
3474
  this.configureCellRenderer(this.config);
3476
3475
  }
3476
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any -- TemplateRef<any> is the Angular convention for ng-template refs
3477
3477
  setTemplate(templateRef, viewContainer, fillCell, padChild) {
3478
3478
  this.config.registerPortal(templateRef, viewContainer, fillCell, padChild);
3479
3479
  }
@@ -3650,6 +3650,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
3650
3650
  args: ['class']
3651
3651
  }] } });
3652
3652
 
3653
+ /* eslint-disable @typescript-eslint/no-explicit-any -- directive captures arbitrary template refs */
3653
3654
  class ColumnTemplateDirective {
3654
3655
  host;
3655
3656
  templateRef;
@@ -3685,82 +3686,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
3685
3686
  type: Input
3686
3687
  }] } });
3687
3688
 
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
3689
  class PaginatorComponent extends DisposableComponent {
3765
3690
  #pageController_accessor_storage = proxify(PageController);
3766
3691
  get pageController() { return this.#pageController_accessor_storage; }
@@ -4055,6 +3980,7 @@ var ColumnOrderManager;
4055
3980
  ColumnOrderManager.processPosition = processPosition;
4056
3981
  })(ColumnOrderManager || (ColumnOrderManager = {}));
4057
3982
 
3983
+ /* eslint-disable @typescript-eslint/no-explicit-any -- column manager works with arbitrary column types */
4058
3984
  class ColumnRef {
4059
3985
  column;
4060
3986
  position;
@@ -4193,26 +4119,9 @@ class CustomValueColumnModel extends ColumnModel {
4193
4119
  }
4194
4120
  }
4195
4121
 
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
4122
  class ListPropertyColumnModel extends ColumnModel {
4215
4123
  property;
4124
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any -- format callback returns arbitrary display value
4216
4125
  _userFormat;
4217
4126
  _defaultSearchTextFormat = value => {
4218
4127
  const intermediate = (this._userFormat ?? Functions.identity)(value);
@@ -4235,21 +4144,7 @@ class ListPropertyColumnModel extends ColumnModel {
4235
4144
  }));
4236
4145
  return this;
4237
4146
  }
4238
- cellEditor(editor, validatorsOrInitialiser, initialiseComponent) {
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
- }
4147
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any -- format callback returns arbitrary display value
4253
4148
  format(formatter) {
4254
4149
  assert$1.isFunction(formatter);
4255
4150
  this._userFormat = formatter;
@@ -4262,6 +4157,7 @@ class ListPropertyColumnModel extends ColumnModel {
4262
4157
 
4263
4158
  class PropertyColumnModel extends ColumnModel {
4264
4159
  property;
4160
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any -- format callback returns arbitrary display value
4265
4161
  _userFormat;
4266
4162
  _defaultSearchTextFormatter = (value) => {
4267
4163
  return (this._userFormat ?? Functions.identity)(value)?.toString();
@@ -4325,21 +4221,7 @@ class PropertyColumnModel extends ColumnModel {
4325
4221
  }));
4326
4222
  return this;
4327
4223
  }
4328
- cellEditor(editor, validatorsOrInitialiser, onComponentInit) {
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
- }
4224
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any -- format callback returns arbitrary display value
4343
4225
  format(formatter) {
4344
4226
  assert$1.isFunction(formatter);
4345
4227
  this._userFormat = formatter;
@@ -4679,21 +4561,14 @@ class AbstractTableModel extends GarbageCollector {
4679
4561
  _filteredRows$ = this.registerDisposable(new DelegatingListModel());
4680
4562
  _visibleRows$ = this.registerDisposable(new DelegatingListModel());
4681
4563
  columnManager = this.registerDisposable(new ColumnManager());
4682
- _editorSessions = new MutableListModel();
4683
- _rowsBeingEdited$;
4684
- saveCommandFactory;
4685
- _editorSessionByRowId;
4686
4564
  rowClassNamePredicates = [];
4687
4565
  rowAttributeGenerators = [];
4688
4566
  _columnTextPropertiesLookup;
4689
- editing$;
4690
- firstEditableColumn$;
4691
4567
  selectionColumnModel;
4692
4568
  rowSelectionDisabledOnAllColumns$;
4693
4569
  rowClickListeners = new EventListenerList();
4694
4570
  firstVisibleColumn$;
4695
4571
  lastVisibleColumn$;
4696
- _createForm = (row) => new DirtyTrackingForm();
4697
4572
  textSearchPredicate$;
4698
4573
  identityOf;
4699
4574
  dataSourceEmpty$;
@@ -4705,11 +4580,6 @@ class AbstractTableModel extends GarbageCollector {
4705
4580
  constructor() {
4706
4581
  super();
4707
4582
  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
4583
  this.textSearchPredicate$ = chain(this.visibleColumns$).reduceAll(columns => {
4714
4584
  const cache = new WeakMap();
4715
4585
  return (row, regex) => {
@@ -4726,7 +4596,6 @@ class AbstractTableModel extends GarbageCollector {
4726
4596
  this.selectionColumnModel = new SelectionColumnModel('selection-column', this.columnManager, () => this.getColumnTextProperties('selection-column'));
4727
4597
  this.addColumn(this.selectionColumnModel, { before: null }); // first column
4728
4598
  this.addRowClass('aup-row-selected', row => this.selectionColumnModel.isSelected(row));
4729
- this.firstEditableColumn$ = chain(this.columns$).select(c => c.hasEditorPortal()).first();
4730
4599
  this.firstVisibleColumn$ = chain(this.visibleColumns$).first();
4731
4600
  this.lastVisibleColumn$ = chain(this.visibleColumns$).last();
4732
4601
  this.rowSelectionDisabledOnAllColumns$ = chain(this.columnManager.visibleColumns$).select(column => column.isRowSelectionEnabled()).count().equals(0);
@@ -4787,39 +4656,6 @@ class AbstractTableModel extends GarbageCollector {
4787
4656
  get visibleRows$() {
4788
4657
  return this._visibleRows$.readonly$;
4789
4658
  }
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
4659
  get columns$() {
4824
4660
  return this.columnManager.allColumns$;
4825
4661
  }
@@ -4837,14 +4673,6 @@ class AbstractTableModel extends GarbageCollector {
4837
4673
  useSelectionModel(selectionModel) {
4838
4674
  this.selectionColumnModel.useSelectionModel(selectionModel);
4839
4675
  }
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
4676
  addCustomColumn(columnId, dataAccessor) {
4849
4677
  return this.addColumn(new CustomValueColumnModel(columnId, this.columnManager, () => this.getColumnTextProperties(columnId), dataAccessor));
4850
4678
  }
@@ -4962,53 +4790,21 @@ ProxyRegistry.registerOneTimeBinding(AbstractTableModel);
4962
4790
  class TableCellComponent extends DisposableComponent {
4963
4791
  row;
4964
4792
  column;
4965
- editSession;
4966
4793
  tableModel;
4967
- editRowCommand;
4794
+ // 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
4795
  [CELL_RENDERER_PORTAL];
4969
- [CELL_EDITOR_PORTAL];
4970
4796
  defaultClassNames = 'aup-cell-renderer';
4971
4797
  fillCell = false;
4972
4798
  padChild = false;
4973
4799
  constructor() {
4974
4800
  super();
4975
- this.editRowCommand = Command.create(() => {
4976
- this.tableModel.startEditSession(this.row);
4977
- });
4978
4801
  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
4802
  this.column.attachCell(this);
4983
4803
  });
4984
4804
  }
4985
- hasActiveEditor() {
4986
- return !!this.editSession && !!this.column.hasEditorPortal();
4987
- }
4988
4805
  initialiseRenderer(ref) {
4989
4806
  this.column.onRendererAttached(this, ref);
4990
4807
  }
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
4808
  // @Trace()
5013
4809
  ngOnChanges(changes) {
5014
4810
  this.column.updatePortalContent(this);
@@ -5016,28 +4812,21 @@ class TableCellComponent extends DisposableComponent {
5016
4812
  getRendererPortal() {
5017
4813
  return this[CELL_RENDERER_PORTAL];
5018
4814
  }
5019
- getEditorPortal() {
5020
- return this[CELL_EDITOR_PORTAL];
5021
- }
5022
4815
  getRowData() {
5023
4816
  return {
5024
4817
  row: this.row,
5025
- editSession: this.editSession,
5026
- editRowCommand: this.editRowCommand,
5027
4818
  };
5028
4819
  }
5029
4820
  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", editSession: "editSession", tableModel: "tableModel" }, host: { properties: { "class": "this.defaultClassNames", "class.fillCell": "this.fillCell", "class.padChild": "this.padChild" } }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<ng-container *ngIf=\"!hasActiveEditor()\" [cdkPortalOutlet]=\"getRendererPortal()\" (attached)=\"initialiseRenderer($event)\"></ng-container>\n<ng-container *ngIf=\"hasActiveEditor()\" [cdkPortalOutlet]=\"getEditorPortal()\" (attached)=\"initialiseEditor($event)\"></ng-container>\n", styles: [""], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$4.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
4821
+ 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
4822
  }
5032
4823
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: TableCellComponent, decorators: [{
5033
4824
  type: Component,
5034
- args: [{ selector: 'aup-table-cell', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngIf=\"!hasActiveEditor()\" [cdkPortalOutlet]=\"getRendererPortal()\" (attached)=\"initialiseRenderer($event)\"></ng-container>\n<ng-container *ngIf=\"hasActiveEditor()\" [cdkPortalOutlet]=\"getEditorPortal()\" (attached)=\"initialiseEditor($event)\"></ng-container>\n" }]
4825
+ args: [{ selector: 'aup-table-cell', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container [cdkPortalOutlet]=\"getRendererPortal()\" (attached)=\"initialiseRenderer($event)\"></ng-container>\n" }]
5035
4826
  }], ctorParameters: function () { return []; }, propDecorators: { row: [{
5036
4827
  type: Input
5037
4828
  }], column: [{
5038
4829
  type: Input
5039
- }], editSession: [{
5040
- type: Input
5041
4830
  }], tableModel: [{
5042
4831
  type: Input
5043
4832
  }], defaultClassNames: [{
@@ -5256,9 +5045,6 @@ class TableBodyComponent extends ResizeAwareComponent {
5256
5045
  get rowHeightCssVar() {
5257
5046
  return `${this.rowHeight$.value}px`;
5258
5047
  }
5259
- isEditing(row) {
5260
- return !!this.tableModel.getEditSessionFor(row);
5261
- }
5262
5048
  notifyCellClicked(columnModel, row) {
5263
5049
  this.tableModel._notifyCellClicked(columnModel, row);
5264
5050
  }
@@ -5344,7 +5130,7 @@ class TableBodyComponent extends ResizeAwareComponent {
5344
5130
  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 });
5345
5131
  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: [
5346
5132
  { provide: AUP_DETACHED_PARENT_CDR, useFactory: () => inject(AUP_TABLE_OPTIMIZED_CHANGE_DETECTION, { optional: true }) ? inject(ChangeDetectorRef) : null }
5347
- ], 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 [editSession]=\"$any(tableModel.getEditSessionFor(row))\"\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 [editSession]=\"$any(tableModel.getEditSessionFor(row))\"\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", "editSession", "tableModel"] }, { kind: "component", type: TableHeaderCellComponent, selector: "aup-table-header-cell", inputs: ["column"] }, { kind: "component", type: TableFooterRow, selector: "aup-table-footer-row", inputs: ["row"] }] });
5133
+ ], 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"] }] });
5348
5134
  }
5349
5135
  __decorate([
5350
5136
  Proxify(),
@@ -5378,7 +5164,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
5378
5164
  type: Component,
5379
5165
  args: [{ selector: "aup-table-body", providers: [
5380
5166
  { provide: AUP_DETACHED_PARENT_CDR, useFactory: () => inject(AUP_TABLE_OPTIMIZED_CHANGE_DETECTION, { optional: true }) ? inject(ChangeDetectorRef) : null }
5381
- ], 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 [editSession]=\"$any(tableModel.getEditSessionFor(row))\"\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 [editSession]=\"$any(tableModel.getEditSessionFor(row))\"\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"] }]
5167
+ ], 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"] }]
5382
5168
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
5383
5169
  type: Inject,
5384
5170
  args: [AUP_TABLE_VIRTUAL_SCROLL_BUFFER_MULTIPLIER]
@@ -5589,7 +5375,6 @@ class TableFilterModel extends GarbageCollector {
5589
5375
  ProxyRegistry.registerOneTimeBinding(TableFilterModel);
5590
5376
 
5591
5377
  /**
5592
- * Example:
5593
5378
  * @example
5594
5379
  * const model = new TableModel(heroList, table => {
5595
5380
  * table.pluck("firstName");
@@ -5597,54 +5382,29 @@ ProxyRegistry.registerOneTimeBinding(TableFilterModel);
5597
5382
  * table.addCustomColumn("fullName", hero => `${hero.firstName} ${hero.lastName}`);
5598
5383
  * });
5599
5384
  *
5600
- * Editable tables
5601
- * @example
5602
- * const saveCommand = UnaryCommand.create((form: Form<Hero>) => {
5603
- * if (form.validate()) {
5604
- * // normal form save stuff
5605
- * return true; // finish editing
5606
- * }
5607
- * return false; // continue editiing
5608
- * }
5609
- * const colorsNames: ListModel<string> = ...;
5610
- * const model = TableModel.fromList(heroList, table => {
5611
- * table.pluck("firstName").cellEditor(StringInputComponent); <-- interface CellEditor { valueModel: DirtyTrackingForm.ValueModel<string> | ValueModel<string>; }
5612
- * table.pluck("lastName").cellEditor(StringInputComponent, {
5613
- * validators: [Validator.present("We need a last name")]
5614
- * });
5615
- * table.pluck("age").cellEditor(NumberInputComponent);
5616
- * table.pluck("favoriteColor").cellEditor(SelectInputComponent, {
5617
- * initialiseComponent(component: SelectInputComponent) {
5618
- * selectInput.optionsModel = colorsNames; // <- initialise our component
5619
- * }
5620
- * });
5621
- * table.addEditControls(saveCommand); // <- required to enable editing
5622
- * });
5623
- *
5624
5385
  * Selection models
5625
5386
  * @example
5626
5387
  * const model = new TableModel(heroList, table => {
5627
- * table.addSelectionColumn(selectionModel); // <- can be single or multiple selection model
5388
+ * table.useSelectionModel(selectionModel); // single or multiple selection model
5628
5389
  * table.pluck("firstName");
5629
5390
  * table.pluck("lastName");
5630
5391
  * });
5631
5392
  *
5632
- * Custom cell renderers and editors
5393
+ * Custom cell renderers
5633
5394
  * @example
5634
5395
  * const model = new TableModel(heroList, table => {
5635
5396
  * table.pluck("favoriteColor")
5636
5397
  * .cellHeaderRenderer(CellHeaderRendererComponent, (component, column) => {
5637
5398
  * // configure your component with what ever you need.
5638
- * });
5639
- * .cellRenderer(CellRendererComponent) // <-- interface CellEditor { value: string; }
5640
- * .cellEditor(CellEditorComponent.); // <-- interface CellEditor { valueModel: DirtyTrackingForm.ValueModel<string> | ValueModel<string>; }
5399
+ * })
5400
+ * .cellRenderer(CellRendererComponent);
5641
5401
  * table.addCustomColumn("fullName", hero => `${hero.firstName} ${hero.lastName}`);
5642
5402
  * });
5643
5403
  *
5644
5404
  * Template columns
5645
5405
  * @example
5646
5406
  * const model = new TableModel(heroList, table => {
5647
- * table.addSelectionColumn(selectionModel); // <- can be single or multiple selection model
5407
+ * table.useSelectionModel(selectionModel);
5648
5408
  * table.addTemplateColumn("myTemplate");
5649
5409
  * });
5650
5410
  *
@@ -5661,7 +5421,7 @@ ProxyRegistry.registerOneTimeBinding(TableFilterModel);
5661
5421
  * headerText: "Full Name"
5662
5422
  *
5663
5423
  * const model = new TableModel(heroList, table => {
5664
- * table.pluck("favoriteColor").cellRenderer(...).cellEditor(...);
5424
+ * table.pluck("favoriteColor");
5665
5425
  * table.addCustomColumn("fullName", hero => `${hero.firstName} ${hero.lastName}`);
5666
5426
  *
5667
5427
  * table.columnTextProperties(I18n.table.columns); // <- configures all columns
@@ -6704,7 +6464,6 @@ class ComponentsModule {
6704
6464
  CardContainerComponent,
6705
6465
  TableComponent,
6706
6466
  TableRowAttributesDirective,
6707
- EditRowControlsComponent,
6708
6467
  ColumnTemplateDirective,
6709
6468
  DefaultCellRendererComponent,
6710
6469
  TableCellComponent,
@@ -6783,7 +6542,6 @@ class ComponentsModule {
6783
6542
  FocusableComponent,
6784
6543
  CardContainerComponent,
6785
6544
  TableComponent,
6786
- EditRowControlsComponent,
6787
6545
  ColumnTemplateDirective,
6788
6546
  IconComponent,
6789
6547
  SectionHeaderComponent,
@@ -6879,7 +6637,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
6879
6637
  CardContainerComponent,
6880
6638
  TableComponent,
6881
6639
  TableRowAttributesDirective,
6882
- EditRowControlsComponent,
6883
6640
  ColumnTemplateDirective,
6884
6641
  DefaultCellRendererComponent,
6885
6642
  TableCellComponent,
@@ -6940,7 +6697,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
6940
6697
  FocusableComponent,
6941
6698
  CardContainerComponent,
6942
6699
  TableComponent,
6943
- EditRowControlsComponent,
6944
6700
  ColumnTemplateDirective,
6945
6701
  IconComponent,
6946
6702
  SectionHeaderComponent,
@@ -6978,6 +6734,7 @@ class TextSearchContext {
6978
6734
  this.searchRegex = searchRegex;
6979
6735
  }
6980
6736
  getOrCreate(type, create) {
6737
+ // TODO: stub awaiting per-context cache implementation
6981
6738
  }
6982
6739
  matchesText(text) {
6983
6740
  return this.searchRegex.test(text);
@@ -7152,6 +6909,7 @@ var Confirm;
7152
6909
  Confirm.isDestructive = isDestructive;
7153
6910
  })(Confirm || (Confirm = {}));
7154
6911
 
6912
+ /* eslint-disable @typescript-eslint/no-explicit-any -- abstract dialog is generic over arbitrary alert config and I/O */
7155
6913
  const ALERT_CONFIG = new InjectionToken('AlertConfig');
7156
6914
  class AbstractDialogComponent extends Activity {
7157
6915
  config;
@@ -7173,6 +6931,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
7173
6931
  args: [ALERT_CONFIG]
7174
6932
  }] }]; } });
7175
6933
 
6934
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any -- E defaults to any for callers that don't care about the error type
7176
6935
  class AbstractConfirmDialogComponent extends AbstractDialogComponent {
7177
6936
  cancelFace;
7178
6937
  confirmClass = "aup-confirm-activity";
@@ -7412,6 +7171,7 @@ class InteractionServiceRoutingAdapter {
7412
7171
  class ModalInteractionContextFactory {
7413
7172
  }
7414
7173
 
7174
+ /* eslint-disable @typescript-eslint/no-explicit-any -- service dispatches arbitrary activity shapes */
7415
7175
  let inplaceMonitorCount = 0;
7416
7176
  class InteractionService {
7417
7177
  modelInteractionContextFactory;
@@ -8123,6 +7883,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
8123
7883
  // }
8124
7884
  })(PlaceComponent || (PlaceComponent = {}));
8125
7885
 
7886
+ /* eslint-disable @typescript-eslint/no-explicit-any -- visit segments carry arbitrary route params */
8126
7887
  class VisitSegment {
8127
7888
  placeDefinition;
8128
7889
  visitParameters;
@@ -10157,8 +9918,7 @@ class AbstractInteractionContext {
10157
9918
  return this.confirmOrReject(confirm).then(() => true).catch(() => false);
10158
9919
  }
10159
9920
  alert(alert) {
10160
- // TODO: Test disableClose === false
10161
- return this.createAndLaunchActivity(AlertDialogComponent, alert);
9921
+ return this.createAndLaunchActivity(AlertDialogComponent, alert, { enableCloseOnBackdropClick: true });
10162
9922
  }
10163
9923
  confirmOrReject(confirm) {
10164
9924
  return this.createAndLaunchActivity(ConfirmationDialogComponent, confirm);
@@ -10491,7 +10251,9 @@ class ActivityContainerComponent extends AbstractInteractionContext {
10491
10251
  // new activity followed a single tab activity (since we're tracking
10492
10252
  // by activity index)
10493
10253
  setTimeout(() => {
10494
- this.activityRefs = []; // we have to do it after the animation timeout or the activity disappears before the animatin finsihes
10254
+ // Drop completed activities, but preserve any new ones launched during the cleanup window
10255
+ // — otherwise a fast open→close→open sequence loses the second activity.
10256
+ this.activityRefs = this.activityRefs.filter(ref => !ref.isComplete());
10495
10257
  }, this.getTabAnimationDurationInMillis());
10496
10258
  const promise = this.interactionServiceApi.notifyFinished(this);
10497
10259
  this._deferredCleanUp = promise
@@ -10847,6 +10609,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
10847
10609
  args: ["class.active"]
10848
10610
  }] } });
10849
10611
 
10612
+ /* eslint-disable @typescript-eslint/no-explicit-any -- trigger dispatches arbitrary activity shapes */
10850
10613
  class InlineActivityTriggerComponent extends AbstractActivityTriggerComponent {
10851
10614
  _interactionContext;
10852
10615
  get interactionContext() {
@@ -10866,6 +10629,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
10866
10629
  args: [InPlaceInteractionContextComponent, { static: true }]
10867
10630
  }] } });
10868
10631
 
10632
+ /* eslint-disable @typescript-eslint/no-explicit-any -- trigger dispatches arbitrary activity shapes */
10869
10633
  class ModalActivityTriggerComponent extends AbstractActivityTriggerComponent {
10870
10634
  _interactionContext;
10871
10635
  get interactionContext() {
@@ -11011,6 +10775,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
11011
10775
  type: Input
11012
10776
  }] } });
11013
10777
 
10778
+ /* eslint-disable @typescript-eslint/no-explicit-any -- trigger dispatches arbitrary activity shapes */
11014
10779
  class PopupActivityTriggerComponent extends AbstractActivityTriggerComponent {
11015
10780
  anchorX = 'start';
11016
10781
  anchorY = 'bottom';
@@ -12518,6 +12283,7 @@ class SidePlaceNavigationComponent extends AbstractPlaceNavigationComponent {
12518
12283
  #expanded_accessor_storage = false;
12519
12284
  get expanded() { return this.#expanded_accessor_storage; }
12520
12285
  set expanded(value) { this.#expanded_accessor_storage = value; }
12286
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any -- TemplateRef<any> is the Angular convention for ng-template refs
12521
12287
  navEndTemplate;
12522
12288
  homeIcon$;
12523
12289
  constructor(router) {
@@ -12557,7 +12323,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
12557
12323
  }, {
12558
12324
  type: HostBinding,
12559
12325
  args: ['class.expanded']
12560
- }], navEndTemplate: [{
12326
+ }],
12327
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any -- TemplateRef<any> is the Angular convention for ng-template refs
12328
+ navEndTemplate: [{
12561
12329
  type: ContentChild,
12562
12330
  args: ['navEndTemplate']
12563
12331
  }] } });
@@ -12787,7 +12555,7 @@ class DialogInteractionContext extends AbstractInteractionContext {
12787
12555
  }
12788
12556
  createAndLaunchActivity(activityType, data, options) {
12789
12557
  assert$1.isNil(this._currentActivityRef);
12790
- const enableCloseOnBackgdropClick = Opts.get(options).getOptional('enableCloseOnBackdropClick', false);
12558
+ const enableCloseOnBackdropClick = Opts.get(options).getOptional('enableCloseOnBackdropClick', false);
12791
12559
  const config = {
12792
12560
  ...this.config,
12793
12561
  ...{
@@ -12803,7 +12571,7 @@ class DialogInteractionContext extends AbstractInteractionContext {
12803
12571
  // we need to check if our onDone/onCancel methods above we called or if we were
12804
12572
  // closed by the user clicking the backdrop. If the later then we need to cancel our
12805
12573
  // activity.
12806
- if (enableCloseOnBackgdropClick) {
12574
+ if (enableCloseOnBackdropClick) {
12807
12575
  matDialogRef.backdropClick().subscribe(event => {
12808
12576
  if (this.canClose(options)) {
12809
12577
  activityContainer.cancelActiveActivity();
@@ -12836,6 +12604,7 @@ class DialogInteractionContext extends AbstractInteractionContext {
12836
12604
  }
12837
12605
  }
12838
12606
 
12607
+ /* eslint-disable @typescript-eslint/no-explicit-any -- factory creates contexts for arbitrary activity shapes */
12839
12608
  const DIALOG_INTERACTION_SERVICE_DEFAULTS = new InjectionToken('DIALOG_INTERACTION_SERVICE_DEFAULTS');
12840
12609
  class DialogInteractionContextFactory extends ModalInteractionContextFactory {
12841
12610
  dialogService;
@@ -12898,6 +12667,7 @@ var PlaceAccessGuard;
12898
12667
  PlaceAccessGuard.NoAuth = NoAuth;
12899
12668
  })(PlaceAccessGuard || (PlaceAccessGuard = {}));
12900
12669
 
12670
+ /* eslint-disable @typescript-eslint/no-explicit-any -- decorator metadata for arbitrary place components */
12901
12671
  function Place(options) {
12902
12672
  return (target) => {
12903
12673
  if (PlaceComponent.isPlaceComponentConstructor(target)) {
@@ -13155,7 +12925,7 @@ var Formatter;
13155
12925
  // const backingModel = parameterDef.createBackingModel();
13156
12926
  // instance[key] = {
13157
12927
  // backingModel: backingModel,
13158
- // binding: null as Binding<any, any>
12928
+ // binding: null as Binding<unknown, unknown>
13159
12929
  // };
13160
12930
  // const tag = `${tagPrefix}(${prototype.constructor.name}.${propertyKey.toString()})`;
13161
12931
  // DebugContext.getOrCreate(instance[key].backingModel).tag(tag);
@@ -13306,5 +13076,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
13306
13076
  * Generated bundle index. Do not edit.
13307
13077
  */
13308
13078
 
13309
- 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_EDITOR_PORTAL, CELL_RENDERER_PORTAL, CardContainerComponent, CellEditorPortalRef, 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, EditRowControlsComponent, EditSession, EditorControlColumnModel, 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_EDITOR_COMPONENT, 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 };
13079
+ 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 };
13310
13080
  //# sourceMappingURL=coolon-angular-ui-powerups.mjs.map