@coolon/angular-ui-powerups 16.1.0-aplpha.141 → 16.1.0-aplpha.143

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 (38) hide show
  1. package/esm2022/lib/directives/command.directive.mjs +2 -9
  2. package/esm2022/lib/interaction/activity-context.mjs +3 -0
  3. package/esm2022/lib/interaction/activity.mjs +20 -17
  4. package/esm2022/lib/interaction/components/abstract-confirm-dialog.component.mjs +4 -5
  5. package/esm2022/lib/interaction/components/abstract-dialog.component.mjs +1 -41
  6. package/esm2022/lib/interaction/components/activity-actions/activity-actions.component.mjs +19 -13
  7. package/esm2022/lib/interaction/components/activity-container/activity-container.component.mjs +11 -3
  8. package/esm2022/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.mjs +49 -15
  9. package/esm2022/lib/interaction/components/alert-dialog/alert-dialog.component.mjs +10 -10
  10. package/esm2022/lib/interaction/components/alert-renderer/alert-renderer.component.mjs +55 -0
  11. package/esm2022/lib/interaction/components/confirm-renderer/confirm-renderer.component.mjs +54 -0
  12. package/esm2022/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.mjs +4 -8
  13. package/esm2022/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.mjs +4 -8
  14. package/esm2022/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.mjs +7 -9
  15. package/esm2022/lib/interaction/confirm.mjs +26 -2
  16. package/esm2022/lib/interaction/exports.mjs +4 -1
  17. package/esm2022/lib/interaction/interaction-context-provider.mjs +4 -1
  18. package/esm2022/lib/interaction/interaction-context.mjs +1 -1
  19. package/esm2022/lib/interaction/interaction.module.mjs +18 -8
  20. package/esm2022/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context.mjs +7 -2
  21. package/fesm2022/coolon-angular-ui-powerups.mjs +353 -226
  22. package/fesm2022/coolon-angular-ui-powerups.mjs.map +1 -1
  23. package/lib/interaction/activity-context.d.ts +8 -0
  24. package/lib/interaction/activity.d.ts +9 -6
  25. package/lib/interaction/components/abstract-confirm-dialog.component.d.ts +1 -1
  26. package/lib/interaction/components/abstract-dialog.component.d.ts +5 -14
  27. package/lib/interaction/components/activity-actions/activity-actions.component.d.ts +4 -6
  28. package/lib/interaction/components/activity-container/activity-container.component.d.ts +1 -0
  29. package/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.d.ts +3 -3
  30. package/lib/interaction/components/alert-dialog/alert-dialog.component.d.ts +6 -1
  31. package/lib/interaction/components/alert-renderer/alert-renderer.component.d.ts +17 -0
  32. package/lib/interaction/components/confirm-renderer/confirm-renderer.component.d.ts +15 -0
  33. package/lib/interaction/confirm.d.ts +4 -0
  34. package/lib/interaction/exports.d.ts +3 -0
  35. package/lib/interaction/interaction-context-provider.d.ts +6 -0
  36. package/lib/interaction/interaction-context.d.ts +3 -0
  37. package/lib/interaction/interaction.module.d.ts +16 -14
  38. package/package.json +2 -2
@@ -40,9 +40,9 @@ import * as i3 from '@angular/material/tooltip';
40
40
  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
- import { __decorate, __metadata, __param } from 'tslib';
44
43
  import * as i1$3 from '@coolon/pectin';
45
- import { GarbageCollector, DelegatingValueModel, assert, UnaryCommand, lang, Dsl, Trace, proxify, ValueModel, Proxify, Logger, StoreInValueModel, Command, MutableListModel, StoreInListModel, ListModel, Disposable, DelegatingListModel, MutableValueModel, DelegateToValueModel, FocusManager, EventListenerList, Guard, DelegatingFormListModel, Binding, DebugContext, DelegateToListModel, DelegatingFormValueModel, Functions, PageController, SelectionModel, CanProxy, MultipleSelectionModel, WatchList, ProxyRegistry, DirtyTrackingForm, DependsOnOptions, 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, DirtyTrackingForm, DependsOnOptions, DelegatingCommand, ComputedListModel, Deferred, ReducingValueModel, AndValueModel } from '@coolon/pectin';
45
+ import { __decorate, __metadata, __param } from 'tslib';
46
46
  import * as i1 from '@angular/platform-browser';
47
47
  import escapeStringRegexp from 'escape-string-regexp';
48
48
  import { escape, isEmpty, isString, isFunction, isNil, isInteger, isObject, isEqual, join, last, first, uniq, findLast, isNumber, isNaN as isNaN$1 } from 'lodash-es';
@@ -167,12 +167,6 @@ class CommandDirective extends GarbageCollector {
167
167
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: CommandDirective, deps: [{ token: ElementRef }, { token: i2.MatButton, host: true, optional: true }, { token: i2$1.MatMenuItem, host: true, optional: true }, { token: i2$1.MatMenu, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
168
168
  static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.9", type: CommandDirective, selector: "[pectinCommand]", inputs: { pectinCommand: "pectinCommand", commandParameter: "commandParameter", preventDefault: "preventDefault" }, host: { listeners: { "click": "notifyClick($event)" } }, usesInheritance: true, ngImport: i0 });
169
169
  }
170
- __decorate([
171
- Trace(),
172
- __metadata("design:type", Function),
173
- __metadata("design:paramtypes", [Event]),
174
- __metadata("design:returntype", void 0)
175
- ], CommandDirective.prototype, "notifyClick", null);
176
170
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: CommandDirective, decorators: [{
177
171
  type: Directive,
178
172
  args: [{
@@ -6700,146 +6694,16 @@ class AbstractCellRenderer extends LoadableComponent {
6700
6694
  */
6701
6695
 
6702
6696
  /**
6703
- * @example
6704
- * <aup-activity-actions [confirmFace]="saveFace" [cancelFace]="cancelFace">
6705
- * </aup-activity-actions>
6706
- *
6707
- * <aup-activity-actions [faces]="{confirm: saveFace, cancel: cancelFace}">
6708
- * </aup-activity-actions>
6709
- *
6710
- * // Running `ng g @coolon/angular-ui-powerups:aup-i18n` will install default
6711
- * // style definitions
6712
- * <aup-activity-actions [faces]="I18n.aup.components.activityActions.styles.okCancelIcons">
6713
- * </aup-activity-actions>
6714
- *
6715
- * // you can also add additional content that will be displayed along with the buttons.
6716
- * // The location of the content depends on the alignment attribute.
6717
- * <aup-activity-actions
6718
- * align="stretch"
6719
- * [faces]="I18n.aup.components.activityActions.styles.okCancelIcons">
6720
- * <span>This content will be between the two commands</span>
6721
- * </aup-activity-actions>
6697
+ * @deprecated, inject ActivityContext instead
6722
6698
  */
6723
- class ActivityActionsComponent extends DisposableComponent {
6724
- confirmCommandComponent;
6725
- cancelCommandComponent;
6726
- #confirmCommand_accessor_storage = proxify((Command));
6727
- /**
6728
- * @deprecated activity actions now use the confirm command of the activity automatically
6729
- */
6730
- get confirmCommand() { return this.#confirmCommand_accessor_storage; }
6731
- set confirmCommand(value) { this.#confirmCommand_accessor_storage = value; }
6732
- #cancelCommand_accessor_storage = proxify((Command));
6733
- /**
6734
- * @deprecated activity actions now use the cancel command of the activity automatically
6735
- */
6736
- get cancelCommand() { return this.#cancelCommand_accessor_storage; }
6737
- set cancelCommand(value) { this.#cancelCommand_accessor_storage = value; }
6738
- set faces(faces) {
6739
- this.confirmFace = faces.confirm;
6740
- this.cancelFace = faces.cancel;
6741
- }
6742
- confirmFace;
6743
- cancelFace;
6744
- /**
6745
- * @deprecated use #faces instead.
6746
- */
6747
- set style(style) {
6748
- this.faces = style;
6749
- }
6750
- layout = ActivityActionsComponent.Layout.BLOCK;
6751
- align = ActivityActionsComponent.Align.STRETCH;
6752
- alignContent = ActivityActionsComponent.AlignContent.CENTER;
6753
- constructor() {
6754
- super();
6755
- }
6756
- hasConfirmFace() {
6757
- return !!this.confirmFace;
6758
- }
6759
- hasCancelFace() {
6760
- return !!this.cancelFace;
6761
- }
6762
- initCommands(activity) {
6763
- this.confirmCommand = activity.confirmCommand;
6764
- this.cancelCommand = activity.cancelCommand;
6765
- this.cdr.detectChanges();
6766
- }
6767
- focusConfirm() {
6768
- this.confirmCommandComponent.requestFocus();
6769
- }
6770
- focusCancel() {
6771
- this.cancelCommandComponent.requestFocus();
6772
- }
6773
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ActivityActionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
6774
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: ActivityActionsComponent, selector: "aup-activity-actions", inputs: { confirmCommand: "confirmCommand", cancelCommand: "cancelCommand", faces: "faces", confirmFace: "confirmFace", cancelFace: "cancelFace", style: "style", layout: "layout", align: "align", alignContent: "alignContent" }, host: { properties: { "attr.layout": "this.layout", "attr.align": "this.align", "attr.align-content": "this.alignContent" } }, viewQueries: [{ propertyName: "confirmCommandComponent", first: true, predicate: ["confirmCommandComponent"], descendants: true }, { propertyName: "cancelCommandComponent", first: true, predicate: ["cancelCommandComponent"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"content\">\n <ng-content></ng-content>\n</div>\n<ng-container *ngIf=\"hasCancelFace()\">\n <aup-command #cancelCommandComponent class=\"cancel\" [command]=\"cancelCommand\" [face]=\"cancelFace\" data-cy=\"cancel-command\"></aup-command>\n</ng-container>\n<ng-container *ngIf=\"hasConfirmFace()\">\n <aup-command #confirmCommandComponent class=\"confirm\" [command]=\"confirmCommand\" [face]=\"confirmFace\" data-cy=\"confirm-command\"></aup-command>\n</ng-container>\n", styles: [":host{display:grid;grid-template-rows:auto;align-items:center;justify-content:end;--resolved-activity-actions-gap: var(--activity-actions-gap, 8px);grid-gap:var(--resolved-activity-actions-gap)}:host[layout=block][align=start]{grid-template-areas:\"cancel confirm content\";grid-template-columns:auto auto 1fr}:host[layout=block][align=start] .confirm{margin-left:var(--resolved-activity-actions-gap)}:host[layout=block][align=end]{grid-template-areas:\"content cancel confirm\";grid-template-columns:1fr auto auto}:host[layout=block][align=end] .confirm{margin-left:var(--resolved-activity-actions-gap)}:host[layout=block][align=stretch]{grid-template-areas:\"cancel content confirm\";grid-template-columns:auto 1fr auto}:host[layout=inline]{grid-template-areas:\"confirm cancel content\";grid-template-columns:auto auto 1fr}:host[layout=inline] .cancel{margin-left:var(--resolved-activity-actions-gap)}:host .cancel{grid-area:cancel}:host .confirm{grid-area:confirm}:host .content{display:flex;flex-direction:row;align-items:center}:host[align-content=start] .content{justify-items:start}:host[align-content=end]{justify-items:end}:host[align-content=center]{justify-items:center}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: CommandComponent, selector: "aup-command", inputs: ["command", "face$", "face", "busyFace$", "busyFace", "alignFace"] }] });
6775
- }
6776
- __decorate([
6777
- Proxify(),
6778
- __metadata("design:type", Object)
6779
- ], ActivityActionsComponent.prototype, "confirmCommand", null);
6780
- __decorate([
6781
- Proxify(),
6782
- __metadata("design:type", Object)
6783
- ], ActivityActionsComponent.prototype, "cancelCommand", null);
6784
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ActivityActionsComponent, decorators: [{
6785
- type: Component,
6786
- args: [{ selector: 'aup-activity-actions', template: "<div class=\"content\">\n <ng-content></ng-content>\n</div>\n<ng-container *ngIf=\"hasCancelFace()\">\n <aup-command #cancelCommandComponent class=\"cancel\" [command]=\"cancelCommand\" [face]=\"cancelFace\" data-cy=\"cancel-command\"></aup-command>\n</ng-container>\n<ng-container *ngIf=\"hasConfirmFace()\">\n <aup-command #confirmCommandComponent class=\"confirm\" [command]=\"confirmCommand\" [face]=\"confirmFace\" data-cy=\"confirm-command\"></aup-command>\n</ng-container>\n", styles: [":host{display:grid;grid-template-rows:auto;align-items:center;justify-content:end;--resolved-activity-actions-gap: var(--activity-actions-gap, 8px);grid-gap:var(--resolved-activity-actions-gap)}:host[layout=block][align=start]{grid-template-areas:\"cancel confirm content\";grid-template-columns:auto auto 1fr}:host[layout=block][align=start] .confirm{margin-left:var(--resolved-activity-actions-gap)}:host[layout=block][align=end]{grid-template-areas:\"content cancel confirm\";grid-template-columns:1fr auto auto}:host[layout=block][align=end] .confirm{margin-left:var(--resolved-activity-actions-gap)}:host[layout=block][align=stretch]{grid-template-areas:\"cancel content confirm\";grid-template-columns:auto 1fr auto}:host[layout=inline]{grid-template-areas:\"confirm cancel content\";grid-template-columns:auto auto 1fr}:host[layout=inline] .cancel{margin-left:var(--resolved-activity-actions-gap)}:host .cancel{grid-area:cancel}:host .confirm{grid-area:confirm}:host .content{display:flex;flex-direction:row;align-items:center}:host[align-content=start] .content{justify-items:start}:host[align-content=end]{justify-items:end}:host[align-content=center]{justify-items:center}\n"] }]
6787
- }], ctorParameters: function () { return []; }, propDecorators: { confirmCommandComponent: [{
6788
- type: ViewChild,
6789
- args: ["confirmCommandComponent"]
6790
- }], cancelCommandComponent: [{
6791
- type: ViewChild,
6792
- args: ["cancelCommandComponent"]
6793
- }], confirmCommand: [{
6794
- type: Input
6795
- }], cancelCommand: [{
6796
- type: Input
6797
- }], faces: [{
6798
- type: Input
6799
- }], confirmFace: [{
6800
- type: Input
6801
- }], cancelFace: [{
6802
- type: Input
6803
- }], style: [{
6804
- type: Input
6805
- }], layout: [{
6806
- type: Input
6807
- }, {
6808
- type: HostBinding,
6809
- args: ['attr.layout']
6810
- }], align: [{
6811
- type: Input
6812
- }, {
6813
- type: HostBinding,
6814
- args: ['attr.align']
6815
- }], alignContent: [{
6816
- type: Input
6817
- }, {
6818
- type: HostBinding,
6819
- args: ['attr.align-content']
6820
- }] } });
6821
- (function (ActivityActionsComponent) {
6822
- ActivityActionsComponent.Layout = Enum({
6823
- INLINE: 'inline',
6824
- BLOCK: 'block'
6825
- });
6826
- ActivityActionsComponent.Align = Enum({
6827
- START: 'start',
6828
- STRETCH: 'stretch',
6829
- END: 'end'
6830
- });
6831
- ActivityActionsComponent.AlignContent = Enum({
6832
- START: 'start',
6833
- CENTER: 'center',
6834
- END: 'end'
6835
- });
6836
- })(ActivityActionsComponent || (ActivityActionsComponent = {}));
6837
-
6838
6699
  const INTERACTION_CONTEXT_PROVIDER = new InjectionToken("INTERACTION_CONTEXT_PROVIDER");
6839
6700
 
6840
6701
  const ACTIVITY_DATA = new InjectionToken("InteractionActivityData");
6841
6702
  // eslint-disable-next-line @angular-eslint/component-class-suffix
6842
6703
  class Activity extends LoadableComponent {
6704
+ /**
6705
+ * @deprecated, inject ActivityContext instead
6706
+ */
6843
6707
  static asInteractionContextProvider() {
6844
6708
  return {
6845
6709
  provide: INTERACTION_CONTEXT_PROVIDER, useExisting: this
@@ -6848,10 +6712,10 @@ class Activity extends LoadableComponent {
6848
6712
  activityData = inject(ACTIVITY_DATA);
6849
6713
  activityReadyListeners = new EventListenerList();
6850
6714
  _busy$ = this.registerDisposable(new DelegatingValueModel().withDefault(false));
6715
+ #disableClose$ = this.registerDisposable(new DelegatingValueModel().withDefault(false));
6851
6716
  _focused$ = this.registerDisposable(new DelegatingValueModel());
6852
6717
  _activityContext;
6853
6718
  _ready$ = new MutableValueModel(false);
6854
- activityActions;
6855
6719
  #confirmCommand_accessor_storage = proxify((Command));
6856
6720
  get confirmCommand() { return this.#confirmCommand_accessor_storage; }
6857
6721
  set confirmCommand(value) { this.#confirmCommand_accessor_storage = value; }
@@ -6878,14 +6742,6 @@ class Activity extends LoadableComponent {
6878
6742
  this.notifyActivityReady();
6879
6743
  });
6880
6744
  }
6881
- ngAfterViewInit() {
6882
- if (this.activityActions) {
6883
- this.initialiseActivityAction(this.activityActions);
6884
- }
6885
- }
6886
- initialiseActivityAction(activityActions) {
6887
- activityActions.initCommands(this);
6888
- }
6889
6745
  get interactionContext() {
6890
6746
  assert$1.isTruthy(this.isInitialised());
6891
6747
  return this._interactionContext;
@@ -6901,6 +6757,9 @@ class Activity extends LoadableComponent {
6901
6757
  this._ready$.value = true;
6902
6758
  }
6903
6759
  onActivityReady(callback) {
6760
+ if (this.ready$.value) {
6761
+ callback(this);
6762
+ }
6904
6763
  return this.activityReadyListeners.add(callback);
6905
6764
  }
6906
6765
  autoFocus(focusable) {
@@ -6919,6 +6778,9 @@ class Activity extends LoadableComponent {
6919
6778
  get busy$() {
6920
6779
  return this._busy$.readonly$;
6921
6780
  }
6781
+ get disableClose$() {
6782
+ return this.#disableClose$.readonly$;
6783
+ }
6922
6784
  get focused$() {
6923
6785
  return this._focused$.readonly$;
6924
6786
  }
@@ -6928,6 +6790,12 @@ class Activity extends LoadableComponent {
6928
6790
  isBusy() {
6929
6791
  return this._busy$.value;
6930
6792
  }
6793
+ get disableClose() {
6794
+ return this.#disableClose$.value;
6795
+ }
6796
+ disableCloseWhile(condition) {
6797
+ this.#disableClose$.setDelegate(condition);
6798
+ }
6931
6799
  isInitialised() {
6932
6800
  return !!this._activityContext;
6933
6801
  }
@@ -6935,7 +6803,7 @@ class Activity extends LoadableComponent {
6935
6803
  return this.interactionContext;
6936
6804
  }
6937
6805
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: Activity, deps: [], target: i0.ɵɵFactoryTarget.Component });
6938
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: Activity, selector: "ng-component", host: { properties: { "class": "this.class", "attr.focused": "this.isFocused" } }, viewQueries: [{ propertyName: "activityActions", first: true, predicate: ActivityActionsComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "", isInline: true });
6806
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: Activity, selector: "ng-component", host: { properties: { "class": "this.class", "attr.focused": "this.isFocused" } }, usesInheritance: true, ngImport: i0, template: "", isInline: true });
6939
6807
  }
6940
6808
  __decorate([
6941
6809
  Proxify(),
@@ -6950,10 +6818,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
6950
6818
  args: [{
6951
6819
  template: "",
6952
6820
  }]
6953
- }], ctorParameters: function () { return []; }, propDecorators: { activityActions: [{
6954
- type: ViewChild,
6955
- args: [ActivityActionsComponent]
6956
- }], confirmCommand: [], cancelCommand: [], class: [{
6821
+ }], ctorParameters: function () { return []; }, propDecorators: { confirmCommand: [], cancelCommand: [], class: [{
6957
6822
  type: HostBinding,
6958
6823
  args: ["class"]
6959
6824
  }], isFocused: [{
@@ -6978,36 +6843,11 @@ var Alert;
6978
6843
  Alert.getColor = getColor;
6979
6844
  })(Alert || (Alert = {}));
6980
6845
 
6981
- const ALERT_CONFIG = new InjectionToken('AlertConfig');
6982
- class AbstractDialogComponent extends Activity {
6983
- config;
6984
- confirmFace;
6985
- title;
6986
- content;
6987
- color;
6988
- constructor(config) {
6989
- super();
6990
- this.config = config;
6991
- assert.notNil(config);
6992
- this.title = Alert.getTitle(config);
6993
- this.color = this.checkColor(Alert.getColor(config));
6994
- this.content = Alert.getContent(config);
6995
- this.confirmFace = {
6996
- text: () => config.ok(),
6997
- color: () => this.color || 'primary',
6998
- style: () => 'raised'
6999
- };
7000
- this.onActivityReady(() => {
7001
- if (this.activityActions) {
7002
- this.isDestructive() ? this.activityActions.focusCancel() : this.activityActions.focusConfirm();
7003
- }
7004
- });
7005
- }
7006
- getConfig() {
7007
- return lang$1.abstractMethod(this.constructor);
7008
- }
7009
- checkColor(rawColor) {
7010
- if (this.isDestructive()) {
6846
+ var Confirm;
6847
+ (function (Confirm) {
6848
+ function checkColor(config) {
6849
+ const rawColor = Alert.getColor(config);
6850
+ if (isDestructive(config)) {
7011
6851
  return 'warn';
7012
6852
  }
7013
6853
  else {
@@ -7020,8 +6860,20 @@ class AbstractDialogComponent extends Activity {
7020
6860
  }
7021
6861
  }
7022
6862
  }
7023
- isDestructive() {
7024
- return isFunction(this.config['destructive']) && this.config["destructive"]();
6863
+ Confirm.checkColor = checkColor;
6864
+ function isDestructive(config) {
6865
+ return isFunction(config['destructive']) && config["destructive"]();
6866
+ }
6867
+ Confirm.isDestructive = isDestructive;
6868
+ })(Confirm || (Confirm = {}));
6869
+
6870
+ const ALERT_CONFIG = new InjectionToken('AlertConfig');
6871
+ class AbstractDialogComponent extends Activity {
6872
+ config;
6873
+ constructor(config) {
6874
+ super();
6875
+ this.config = config;
6876
+ assert.notNil(config);
7025
6877
  }
7026
6878
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: AbstractDialogComponent, deps: [{ token: ALERT_CONFIG }], target: i0.ɵɵFactoryTarget.Component });
7027
6879
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: AbstractDialogComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: '', isInline: true });
@@ -7041,9 +6893,6 @@ class AbstractConfirmDialogComponent extends AbstractDialogComponent {
7041
6893
  confirmClass = "aup-confirm-activity";
7042
6894
  constructor(config) {
7043
6895
  super(config);
7044
- this.cancelFace = {
7045
- text: () => config.cancel()
7046
- };
7047
6896
  this.cancelCommand = Command.create(() => {
7048
6897
  return this.cancel();
7049
6898
  });
@@ -7056,7 +6905,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
7056
6905
  args: [{
7057
6906
  template: ''
7058
6907
  }]
7059
- }], ctorParameters: function () { return [{ type: undefined, decorators: [{
6908
+ }], ctorParameters: function () { return [{ type: Confirm, decorators: [{
7060
6909
  type: Inject,
7061
6910
  args: [ALERT_CONFIG]
7062
6911
  }] }]; }, propDecorators: { confirmClass: [{
@@ -7064,6 +6913,149 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
7064
6913
  args: ["class"]
7065
6914
  }] } });
7066
6915
 
6916
+ class ActivityContext {
6917
+ }
6918
+
6919
+ /**
6920
+ * @example
6921
+ * <aup-activity-actions [confirmFace]="saveFace" [cancelFace]="cancelFace">
6922
+ * </aup-activity-actions>
6923
+ *
6924
+ * <aup-activity-actions [faces]="{confirm: saveFace, cancel: cancelFace}">
6925
+ * </aup-activity-actions>
6926
+ *
6927
+ * // Running `ng g @coolon/angular-ui-powerups:aup-i18n` will install default
6928
+ * // style definitions
6929
+ * <aup-activity-actions [faces]="I18n.aup.components.activityActions.styles.okCancelIcons">
6930
+ * </aup-activity-actions>
6931
+ *
6932
+ * // you can also add additional content that will be displayed along with the buttons.
6933
+ * // The location of the content depends on the alignment attribute.
6934
+ * <aup-activity-actions
6935
+ * align="stretch"
6936
+ * [faces]="I18n.aup.components.activityActions.styles.okCancelIcons">
6937
+ * <span>This content will be between the two commands</span>
6938
+ * </aup-activity-actions>
6939
+ */
6940
+ class ActivityActionsComponent extends DisposableComponent {
6941
+ activityContext;
6942
+ confirmCommandComponent;
6943
+ cancelCommandComponent;
6944
+ #confirmCommand_accessor_storage = proxify((Command));
6945
+ /**
6946
+ * @deprecated activity actions now use the confirm command of the activity automatically
6947
+ */
6948
+ get confirmCommand() { return this.#confirmCommand_accessor_storage; }
6949
+ set confirmCommand(value) { this.#confirmCommand_accessor_storage = value; }
6950
+ #cancelCommand_accessor_storage = proxify((Command));
6951
+ /**
6952
+ * @deprecated activity actions now use the cancel command of the activity automatically
6953
+ */
6954
+ get cancelCommand() { return this.#cancelCommand_accessor_storage; }
6955
+ set cancelCommand(value) { this.#cancelCommand_accessor_storage = value; }
6956
+ set faces(faces) {
6957
+ this.confirmFace = faces.confirm;
6958
+ this.cancelFace = faces.cancel;
6959
+ }
6960
+ confirmFace;
6961
+ cancelFace;
6962
+ /**
6963
+ * @deprecated use #faces instead.
6964
+ */
6965
+ set style(style) {
6966
+ this.faces = style;
6967
+ }
6968
+ layout = ActivityActionsComponent.Layout.BLOCK;
6969
+ align = ActivityActionsComponent.Align.STRETCH;
6970
+ alignContent = ActivityActionsComponent.AlignContent.CENTER;
6971
+ constructor(activityContext) {
6972
+ super();
6973
+ this.activityContext = activityContext;
6974
+ console.log(activityContext);
6975
+ if (activityContext) {
6976
+ this.confirmCommand = activityContext.confirmCommand;
6977
+ this.cancelCommand = activityContext.cancelCommand;
6978
+ }
6979
+ }
6980
+ hasConfirmFace() {
6981
+ return !!this.confirmFace;
6982
+ }
6983
+ hasCancelFace() {
6984
+ return !!this.cancelFace;
6985
+ }
6986
+ focusConfirm() {
6987
+ this.confirmCommandComponent.requestFocus();
6988
+ }
6989
+ focusCancel() {
6990
+ this.cancelCommandComponent.requestFocus();
6991
+ }
6992
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ActivityActionsComponent, deps: [{ token: ActivityContext, optional: true }], target: i0.ɵɵFactoryTarget.Component });
6993
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: ActivityActionsComponent, selector: "aup-activity-actions", inputs: { confirmCommand: "confirmCommand", cancelCommand: "cancelCommand", faces: "faces", confirmFace: "confirmFace", cancelFace: "cancelFace", style: "style", layout: "layout", align: "align", alignContent: "alignContent" }, host: { properties: { "attr.layout": "this.layout", "attr.align": "this.align", "attr.align-content": "this.alignContent" } }, viewQueries: [{ propertyName: "confirmCommandComponent", first: true, predicate: ["confirmCommandComponent"], descendants: true }, { propertyName: "cancelCommandComponent", first: true, predicate: ["cancelCommandComponent"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"content\">\n <ng-content></ng-content>\n</div>\n<ng-container *ngIf=\"hasCancelFace()\">\n <aup-command #cancelCommandComponent class=\"cancel\" [command]=\"cancelCommand\" [face]=\"cancelFace\" data-cy=\"cancel-command\"></aup-command>\n</ng-container>\n<ng-container *ngIf=\"hasConfirmFace()\">\n <aup-command #confirmCommandComponent class=\"confirm\" [command]=\"confirmCommand\" [face]=\"confirmFace\" data-cy=\"confirm-command\"></aup-command>\n</ng-container>\n", styles: [":host{display:grid;grid-template-rows:auto;align-items:center;justify-content:end;--resolved-activity-actions-gap: var(--activity-actions-gap, 8px);grid-gap:var(--resolved-activity-actions-gap)}:host[layout=block][align=start]{grid-template-areas:\"cancel confirm content\";grid-template-columns:auto auto 1fr}:host[layout=block][align=start] .confirm{margin-left:var(--resolved-activity-actions-gap)}:host[layout=block][align=end]{grid-template-areas:\"content cancel confirm\";grid-template-columns:1fr auto auto}:host[layout=block][align=end] .confirm{margin-left:var(--resolved-activity-actions-gap)}:host[layout=block][align=stretch]{grid-template-areas:\"cancel content confirm\";grid-template-columns:auto 1fr auto}:host[layout=inline]{grid-template-areas:\"confirm cancel content\";grid-template-columns:auto auto 1fr}:host[layout=inline] .cancel{margin-left:var(--resolved-activity-actions-gap)}:host .cancel{grid-area:cancel}:host .confirm{grid-area:confirm}:host .content{display:flex;flex-direction:row;align-items:center}:host[align-content=start] .content{justify-items:start}:host[align-content=end]{justify-items:end}:host[align-content=center]{justify-items:center}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: CommandComponent, selector: "aup-command", inputs: ["command", "face$", "face", "busyFace$", "busyFace", "alignFace"] }] });
6994
+ }
6995
+ __decorate([
6996
+ Proxify(),
6997
+ __metadata("design:type", Object)
6998
+ ], ActivityActionsComponent.prototype, "confirmCommand", null);
6999
+ __decorate([
7000
+ Proxify(),
7001
+ __metadata("design:type", Object)
7002
+ ], ActivityActionsComponent.prototype, "cancelCommand", null);
7003
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ActivityActionsComponent, decorators: [{
7004
+ type: Component,
7005
+ args: [{ selector: 'aup-activity-actions', template: "<div class=\"content\">\n <ng-content></ng-content>\n</div>\n<ng-container *ngIf=\"hasCancelFace()\">\n <aup-command #cancelCommandComponent class=\"cancel\" [command]=\"cancelCommand\" [face]=\"cancelFace\" data-cy=\"cancel-command\"></aup-command>\n</ng-container>\n<ng-container *ngIf=\"hasConfirmFace()\">\n <aup-command #confirmCommandComponent class=\"confirm\" [command]=\"confirmCommand\" [face]=\"confirmFace\" data-cy=\"confirm-command\"></aup-command>\n</ng-container>\n", styles: [":host{display:grid;grid-template-rows:auto;align-items:center;justify-content:end;--resolved-activity-actions-gap: var(--activity-actions-gap, 8px);grid-gap:var(--resolved-activity-actions-gap)}:host[layout=block][align=start]{grid-template-areas:\"cancel confirm content\";grid-template-columns:auto auto 1fr}:host[layout=block][align=start] .confirm{margin-left:var(--resolved-activity-actions-gap)}:host[layout=block][align=end]{grid-template-areas:\"content cancel confirm\";grid-template-columns:1fr auto auto}:host[layout=block][align=end] .confirm{margin-left:var(--resolved-activity-actions-gap)}:host[layout=block][align=stretch]{grid-template-areas:\"cancel content confirm\";grid-template-columns:auto 1fr auto}:host[layout=inline]{grid-template-areas:\"confirm cancel content\";grid-template-columns:auto auto 1fr}:host[layout=inline] .cancel{margin-left:var(--resolved-activity-actions-gap)}:host .cancel{grid-area:cancel}:host .confirm{grid-area:confirm}:host .content{display:flex;flex-direction:row;align-items:center}:host[align-content=start] .content{justify-items:start}:host[align-content=end]{justify-items:end}:host[align-content=center]{justify-items:center}\n"] }]
7006
+ }], ctorParameters: function () { return [{ type: ActivityContext, decorators: [{
7007
+ type: Optional
7008
+ }] }]; }, propDecorators: { confirmCommandComponent: [{
7009
+ type: ViewChild,
7010
+ args: ["confirmCommandComponent"]
7011
+ }], cancelCommandComponent: [{
7012
+ type: ViewChild,
7013
+ args: ["cancelCommandComponent"]
7014
+ }], confirmCommand: [{
7015
+ type: Input
7016
+ }], cancelCommand: [{
7017
+ type: Input
7018
+ }], faces: [{
7019
+ type: Input
7020
+ }], confirmFace: [{
7021
+ type: Input
7022
+ }], cancelFace: [{
7023
+ type: Input
7024
+ }], style: [{
7025
+ type: Input
7026
+ }], layout: [{
7027
+ type: Input
7028
+ }, {
7029
+ type: HostBinding,
7030
+ args: ['attr.layout']
7031
+ }], align: [{
7032
+ type: Input
7033
+ }, {
7034
+ type: HostBinding,
7035
+ args: ['attr.align']
7036
+ }], alignContent: [{
7037
+ type: Input
7038
+ }, {
7039
+ type: HostBinding,
7040
+ args: ['attr.align-content']
7041
+ }] } });
7042
+ (function (ActivityActionsComponent) {
7043
+ ActivityActionsComponent.Layout = Enum({
7044
+ INLINE: 'inline',
7045
+ BLOCK: 'block'
7046
+ });
7047
+ ActivityActionsComponent.Align = Enum({
7048
+ START: 'start',
7049
+ STRETCH: 'stretch',
7050
+ END: 'end'
7051
+ });
7052
+ ActivityActionsComponent.AlignContent = Enum({
7053
+ START: 'start',
7054
+ CENTER: 'center',
7055
+ END: 'end'
7056
+ });
7057
+ })(ActivityActionsComponent || (ActivityActionsComponent = {}));
7058
+
7067
7059
  class ActivityBodyComponent extends DisposableComponent {
7068
7060
  fullWidth = false;
7069
7061
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ActivityBodyComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
@@ -9647,7 +9639,52 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
9647
9639
  args: ['attr.color']
9648
9640
  }] } });
9649
9641
 
9642
+ class AlertRendererComponent extends DisposableComponent {
9643
+ config;
9644
+ #confirmCommand_accessor_storage = proxify(Command);
9645
+ get confirmCommand() { return this.#confirmCommand_accessor_storage; }
9646
+ set confirmCommand(value) { this.#confirmCommand_accessor_storage = value; }
9647
+ confirmFace;
9648
+ title;
9649
+ content;
9650
+ color;
9651
+ constructor(activityContext) {
9652
+ super();
9653
+ this.onInit(() => {
9654
+ assert.notNil(this.config);
9655
+ this.title = Alert.getTitle(this.config);
9656
+ this.color = Confirm.checkColor(this.config);
9657
+ this.content = Alert.getContent(this.config);
9658
+ this.confirmFace = {
9659
+ text: () => this.config.ok(),
9660
+ color: () => this.color || 'primary',
9661
+ style: () => 'raised'
9662
+ };
9663
+ });
9664
+ }
9665
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: AlertRendererComponent, deps: [{ token: ActivityContext, optional: true }], target: i0.ɵɵFactoryTarget.Component });
9666
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: AlertRendererComponent, selector: "aup-alert-renderer", inputs: { config: "config", confirmCommand: "confirmCommand" }, usesInheritance: true, ngImport: i0, template: "<aup-activity-title *ngIf=\"title\" [color]=\"color\"><aup-markdown [content]=\"title\" [inline]=\"true\"></aup-markdown></aup-activity-title>\n<aup-activity-body>\n <aup-markdown *ngFor=\"let line of content\" [content]=\"line\"></aup-markdown>\n</aup-activity-body>\n<aup-activity-actions [confirmFace]=\"confirmFace\"></aup-activity-actions>\n", styles: [""], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: MarkdownComponent, selector: "aup-markdown, [aupMarkdown]", inputs: ["content$", "content", "inline"] }, { kind: "component", type: ActivityActionsComponent, selector: "aup-activity-actions", inputs: ["confirmCommand", "cancelCommand", "faces", "confirmFace", "cancelFace", "style", "layout", "align", "alignContent"] }, { kind: "component", type: ActivityTitleComponent, selector: "aup-activity-title", inputs: ["hasTransparentBackground", "color"] }, { kind: "component", type: ActivityBodyComponent, selector: "aup-activity-body", inputs: ["fullWidth"] }] });
9667
+ }
9668
+ __decorate([
9669
+ Proxify(),
9670
+ __metadata("design:type", Command)
9671
+ ], AlertRendererComponent.prototype, "confirmCommand", null);
9672
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: AlertRendererComponent, decorators: [{
9673
+ type: Component,
9674
+ args: [{ selector: 'aup-alert-renderer', template: "<aup-activity-title *ngIf=\"title\" [color]=\"color\"><aup-markdown [content]=\"title\" [inline]=\"true\"></aup-markdown></aup-activity-title>\n<aup-activity-body>\n <aup-markdown *ngFor=\"let line of content\" [content]=\"line\"></aup-markdown>\n</aup-activity-body>\n<aup-activity-actions [confirmFace]=\"confirmFace\"></aup-activity-actions>\n" }]
9675
+ }], ctorParameters: function () { return [{ type: ActivityContext, decorators: [{
9676
+ type: Optional
9677
+ }] }]; }, propDecorators: { config: [{
9678
+ type: Input
9679
+ }], confirmCommand: [{
9680
+ type: Input
9681
+ }] } });
9682
+
9650
9683
  class AlertDialogComponent extends AbstractDialogComponent {
9684
+ confirmFace;
9685
+ title;
9686
+ content;
9687
+ color;
9651
9688
  constructor(alert) {
9652
9689
  super(alert);
9653
9690
  this.confirmCommand = Command.create(() => {
@@ -9655,16 +9692,56 @@ class AlertDialogComponent extends AbstractDialogComponent {
9655
9692
  });
9656
9693
  }
9657
9694
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: AlertDialogComponent, deps: [{ token: ACTIVITY_DATA }], target: i0.ɵɵFactoryTarget.Component });
9658
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: AlertDialogComponent, selector: "aup-alert-dialog", usesInheritance: true, ngImport: i0, template: "<aup-activity-title *ngIf=\"title\" [color]=\"color\"><aup-markdown [content]=\"title\" [inline]=\"true\"></aup-markdown></aup-activity-title>\n<aup-activity-body>\n <aup-markdown *ngFor=\"let line of content\" [content]=\"line\"></aup-markdown>\n</aup-activity-body>\n<aup-activity-actions [confirmFace]=\"confirmFace\"></aup-activity-actions>\n", styles: [":host{display:block}.mat-mdc-dialog-content{margin:0;padding:0}.mat-mdc-dialog-actions{margin-bottom:0!important;padding:0;align-items:flex-end;justify-content:flex-end}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: MarkdownComponent, selector: "aup-markdown, [aupMarkdown]", inputs: ["content$", "content", "inline"] }, { kind: "component", type: ActivityActionsComponent, selector: "aup-activity-actions", inputs: ["confirmCommand", "cancelCommand", "faces", "confirmFace", "cancelFace", "style", "layout", "align", "alignContent"] }, { kind: "component", type: ActivityTitleComponent, selector: "aup-activity-title", inputs: ["hasTransparentBackground", "color"] }, { kind: "component", type: ActivityBodyComponent, selector: "aup-activity-body", inputs: ["fullWidth"] }] });
9695
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: AlertDialogComponent, selector: "aup-alert-dialog", usesInheritance: true, ngImport: i0, template: "<aup-alert-renderer [config]=\"activityData\"></aup-alert-renderer>\n", styles: [":host{display:block}.mat-mdc-dialog-content{margin:0;padding:0}.mat-mdc-dialog-actions{margin-bottom:0!important;padding:0;align-items:flex-end;justify-content:flex-end}\n"], dependencies: [{ kind: "component", type: AlertRendererComponent, selector: "aup-alert-renderer", inputs: ["config", "confirmCommand"] }] });
9659
9696
  }
9660
9697
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: AlertDialogComponent, decorators: [{
9661
9698
  type: Component,
9662
- args: [{ selector: 'aup-alert-dialog', template: "<aup-activity-title *ngIf=\"title\" [color]=\"color\"><aup-markdown [content]=\"title\" [inline]=\"true\"></aup-markdown></aup-activity-title>\n<aup-activity-body>\n <aup-markdown *ngFor=\"let line of content\" [content]=\"line\"></aup-markdown>\n</aup-activity-body>\n<aup-activity-actions [confirmFace]=\"confirmFace\"></aup-activity-actions>\n", styles: [":host{display:block}.mat-mdc-dialog-content{margin:0;padding:0}.mat-mdc-dialog-actions{margin-bottom:0!important;padding:0;align-items:flex-end;justify-content:flex-end}\n"] }]
9699
+ args: [{ selector: 'aup-alert-dialog', template: "<aup-alert-renderer [config]=\"activityData\"></aup-alert-renderer>\n", styles: [":host{display:block}.mat-mdc-dialog-content{margin:0;padding:0}.mat-mdc-dialog-actions{margin-bottom:0!important;padding:0;align-items:flex-end;justify-content:flex-end}\n"] }]
9663
9700
  }], ctorParameters: function () { return [{ type: Alert, decorators: [{
9664
9701
  type: Inject,
9665
9702
  args: [ACTIVITY_DATA]
9666
9703
  }] }]; } });
9667
9704
 
9705
+ class ConfirmRendererComponent extends AlertRendererComponent {
9706
+ #cancelCommand_accessor_storage = proxify(Command);
9707
+ get cancelCommand() { return this.#cancelCommand_accessor_storage; }
9708
+ set cancelCommand(value) { this.#cancelCommand_accessor_storage = value; }
9709
+ activityActions;
9710
+ cancelFace;
9711
+ constructor(activityContext) {
9712
+ super(activityContext);
9713
+ if (activityContext) {
9714
+ activityContext.onActivityReady(() => {
9715
+ if (this.activityActions) {
9716
+ Confirm.isDestructive(this.config) ? this.activityActions.focusCancel() : this.activityActions.focusConfirm();
9717
+ }
9718
+ });
9719
+ }
9720
+ this.onInit(() => {
9721
+ this.cancelFace = {
9722
+ text: () => this.config.cancel(),
9723
+ };
9724
+ });
9725
+ }
9726
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ConfirmRendererComponent, deps: [{ token: ActivityContext, optional: true }], target: i0.ɵɵFactoryTarget.Component });
9727
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: ConfirmRendererComponent, selector: "aup-confirm-renderer", inputs: { cancelCommand: "cancelCommand" }, viewQueries: [{ propertyName: "activityActions", first: true, predicate: ActivityActionsComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<aup-activity-title *ngIf=\"title\" [color]=\"color\"><aup-markdown [content]=\"title\" [inline]=\"true\"></aup-markdown></aup-activity-title>\n<aup-activity-body>\n <aup-markdown *ngFor=\"let line of content\" [content]=\"line\"></aup-markdown>\n</aup-activity-body>\n<aup-activity-actions [confirmFace]=\"confirmFace\" [cancelFace]=\"cancelFace\"></aup-activity-actions>\n\n", styles: [""], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: MarkdownComponent, selector: "aup-markdown, [aupMarkdown]", inputs: ["content$", "content", "inline"] }, { kind: "component", type: ActivityActionsComponent, selector: "aup-activity-actions", inputs: ["confirmCommand", "cancelCommand", "faces", "confirmFace", "cancelFace", "style", "layout", "align", "alignContent"] }, { kind: "component", type: ActivityTitleComponent, selector: "aup-activity-title", inputs: ["hasTransparentBackground", "color"] }, { kind: "component", type: ActivityBodyComponent, selector: "aup-activity-body", inputs: ["fullWidth"] }] });
9728
+ }
9729
+ __decorate([
9730
+ Proxify(),
9731
+ __metadata("design:type", Command)
9732
+ ], ConfirmRendererComponent.prototype, "cancelCommand", null);
9733
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ConfirmRendererComponent, decorators: [{
9734
+ type: Component,
9735
+ args: [{ selector: 'aup-confirm-renderer', template: "<aup-activity-title *ngIf=\"title\" [color]=\"color\"><aup-markdown [content]=\"title\" [inline]=\"true\"></aup-markdown></aup-activity-title>\n<aup-activity-body>\n <aup-markdown *ngFor=\"let line of content\" [content]=\"line\"></aup-markdown>\n</aup-activity-body>\n<aup-activity-actions [confirmFace]=\"confirmFace\" [cancelFace]=\"cancelFace\"></aup-activity-actions>\n\n" }]
9736
+ }], ctorParameters: function () { return [{ type: ActivityContext, decorators: [{
9737
+ type: Optional
9738
+ }] }]; }, propDecorators: { cancelCommand: [{
9739
+ type: Input
9740
+ }], activityActions: [{
9741
+ type: ViewChild,
9742
+ args: [ActivityActionsComponent]
9743
+ }] } });
9744
+
9668
9745
  class ConfirmThenDialogComponent extends AbstractConfirmDialogComponent {
9669
9746
  constructor(config) {
9670
9747
  super(config.confirm);
@@ -9675,11 +9752,11 @@ class ConfirmThenDialogComponent extends AbstractConfirmDialogComponent {
9675
9752
  });
9676
9753
  }
9677
9754
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ConfirmThenDialogComponent, deps: [{ token: ACTIVITY_DATA }], target: i0.ɵɵFactoryTarget.Component });
9678
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: ConfirmThenDialogComponent, selector: "aup-confirmation-then-dialog", usesInheritance: true, ngImport: i0, template: "<aup-activity-title *ngIf=\"title\" [color]=\"color\"><aup-markdown [content]=\"title\" [inline]=\"true\"></aup-markdown></aup-activity-title>\n<aup-activity-body>\n <aup-markdown *ngFor=\"let line of content\" [content]=\"line\"></aup-markdown>\n</aup-activity-body>\n<aup-activity-actions [confirmFace]=\"confirmFace\" [cancelFace]=\"cancelFace\"></aup-activity-actions>\n", styles: [":host{display:block}.mat-mdc-dialog-content{margin:0;padding:0}.mat-mdc-dialog-actions{margin-bottom:0!important;padding:0;align-items:flex-end;justify-content:flex-end}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: MarkdownComponent, selector: "aup-markdown, [aupMarkdown]", inputs: ["content$", "content", "inline"] }, { kind: "component", type: ActivityActionsComponent, selector: "aup-activity-actions", inputs: ["confirmCommand", "cancelCommand", "faces", "confirmFace", "cancelFace", "style", "layout", "align", "alignContent"] }, { kind: "component", type: ActivityTitleComponent, selector: "aup-activity-title", inputs: ["hasTransparentBackground", "color"] }, { kind: "component", type: ActivityBodyComponent, selector: "aup-activity-body", inputs: ["fullWidth"] }] });
9755
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: ConfirmThenDialogComponent, selector: "aup-confirmation-then-dialog", usesInheritance: true, ngImport: i0, template: "<aup-confirm-renderer [config]=\"config\" [confirmCommand]=\"confirmCommand\" [cancelCommand]=\"cancelCommand\"></aup-confirm-renderer>\n", styles: [":host{display:block}.mat-mdc-dialog-content{margin:0;padding:0}.mat-mdc-dialog-actions{margin-bottom:0!important;padding:0;align-items:flex-end;justify-content:flex-end}\n"], dependencies: [{ kind: "component", type: ConfirmRendererComponent, selector: "aup-confirm-renderer", inputs: ["cancelCommand"] }] });
9679
9756
  }
9680
9757
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ConfirmThenDialogComponent, decorators: [{
9681
9758
  type: Component,
9682
- args: [{ selector: 'aup-confirmation-then-dialog', template: "<aup-activity-title *ngIf=\"title\" [color]=\"color\"><aup-markdown [content]=\"title\" [inline]=\"true\"></aup-markdown></aup-activity-title>\n<aup-activity-body>\n <aup-markdown *ngFor=\"let line of content\" [content]=\"line\"></aup-markdown>\n</aup-activity-body>\n<aup-activity-actions [confirmFace]=\"confirmFace\" [cancelFace]=\"cancelFace\"></aup-activity-actions>\n", styles: [":host{display:block}.mat-mdc-dialog-content{margin:0;padding:0}.mat-mdc-dialog-actions{margin-bottom:0!important;padding:0;align-items:flex-end;justify-content:flex-end}\n"] }]
9759
+ args: [{ selector: 'aup-confirmation-then-dialog', template: "<aup-confirm-renderer [config]=\"config\" [confirmCommand]=\"confirmCommand\" [cancelCommand]=\"cancelCommand\"></aup-confirm-renderer>\n", styles: [":host{display:block}.mat-mdc-dialog-content{margin:0;padding:0}.mat-mdc-dialog-actions{margin-bottom:0!important;padding:0;align-items:flex-end;justify-content:flex-end}\n"] }]
9683
9760
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
9684
9761
  type: Inject,
9685
9762
  args: [ACTIVITY_DATA]
@@ -9699,11 +9776,11 @@ class ConfirmThenExecuteDialogComponent extends AbstractConfirmDialogComponent {
9699
9776
  });
9700
9777
  }
9701
9778
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ConfirmThenExecuteDialogComponent, deps: [{ token: ACTIVITY_DATA }], target: i0.ɵɵFactoryTarget.Component });
9702
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: ConfirmThenExecuteDialogComponent, selector: "aup-confirmation-execute-dialog", usesInheritance: true, ngImport: i0, template: "<aup-activity-title *ngIf=\"title\" [color]=\"color\"><aup-markdown [content]=\"title\" [inline]=\"true\"></aup-markdown></aup-activity-title>\n<aup-activity-body>\n <aup-markdown *ngFor=\"let line of content\" [content]=\"line\"></aup-markdown>\n</aup-activity-body>\n<aup-activity-actions [confirmFace]=\"confirmFace\" [cancelFace]=\"cancelFace\"></aup-activity-actions>\n", styles: [":host{display:block}.mat-mdc-dialog-content{margin:0;padding:0}.mat-mdc-dialog-actions{margin-bottom:0!important;padding:0;align-items:flex-end;justify-content:flex-end}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: MarkdownComponent, selector: "aup-markdown, [aupMarkdown]", inputs: ["content$", "content", "inline"] }, { kind: "component", type: ActivityActionsComponent, selector: "aup-activity-actions", inputs: ["confirmCommand", "cancelCommand", "faces", "confirmFace", "cancelFace", "style", "layout", "align", "alignContent"] }, { kind: "component", type: ActivityTitleComponent, selector: "aup-activity-title", inputs: ["hasTransparentBackground", "color"] }, { kind: "component", type: ActivityBodyComponent, selector: "aup-activity-body", inputs: ["fullWidth"] }] });
9779
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: ConfirmThenExecuteDialogComponent, selector: "aup-confirmation-execute-dialog", usesInheritance: true, ngImport: i0, template: "<aup-confirm-renderer [config]=\"config\" [confirmCommand]=\"confirmCommand\" [cancelCommand]=\"cancelCommand\"></aup-confirm-renderer>\n", styles: [":host{display:block}.mat-mdc-dialog-content{margin:0;padding:0}.mat-mdc-dialog-actions{margin-bottom:0!important;padding:0;align-items:flex-end;justify-content:flex-end}\n"], dependencies: [{ kind: "component", type: ConfirmRendererComponent, selector: "aup-confirm-renderer", inputs: ["cancelCommand"] }] });
9703
9780
  }
9704
9781
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ConfirmThenExecuteDialogComponent, decorators: [{
9705
9782
  type: Component,
9706
- args: [{ selector: 'aup-confirmation-execute-dialog', template: "<aup-activity-title *ngIf=\"title\" [color]=\"color\"><aup-markdown [content]=\"title\" [inline]=\"true\"></aup-markdown></aup-activity-title>\n<aup-activity-body>\n <aup-markdown *ngFor=\"let line of content\" [content]=\"line\"></aup-markdown>\n</aup-activity-body>\n<aup-activity-actions [confirmFace]=\"confirmFace\" [cancelFace]=\"cancelFace\"></aup-activity-actions>\n", styles: [":host{display:block}.mat-mdc-dialog-content{margin:0;padding:0}.mat-mdc-dialog-actions{margin-bottom:0!important;padding:0;align-items:flex-end;justify-content:flex-end}\n"] }]
9783
+ args: [{ selector: 'aup-confirmation-execute-dialog', template: "<aup-confirm-renderer [config]=\"config\" [confirmCommand]=\"confirmCommand\" [cancelCommand]=\"cancelCommand\"></aup-confirm-renderer>\n", styles: [":host{display:block}.mat-mdc-dialog-content{margin:0;padding:0}.mat-mdc-dialog-actions{margin-bottom:0!important;padding:0;align-items:flex-end;justify-content:flex-end}\n"] }]
9707
9784
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
9708
9785
  type: Inject,
9709
9786
  args: [ACTIVITY_DATA]
@@ -9719,12 +9796,12 @@ class ConfirmationDialogComponent extends AbstractConfirmDialogComponent {
9719
9796
  });
9720
9797
  }
9721
9798
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ConfirmationDialogComponent, deps: [{ token: ACTIVITY_DATA }], target: i0.ɵɵFactoryTarget.Component });
9722
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: ConfirmationDialogComponent, selector: "aup-confirmation-dialog", usesInheritance: true, ngImport: i0, template: "<aup-activity-title *ngIf=\"title\" [color]=\"color\"><aup-markdown [content]=\"title\" [inline]=\"true\"></aup-markdown></aup-activity-title>\n<aup-activity-body>\n <aup-markdown *ngFor=\"let line of content\" [content]=\"line\"></aup-markdown>\n</aup-activity-body>\n<aup-activity-actions [confirmFace]=\"confirmFace\" [cancelFace]=\"cancelFace\"></aup-activity-actions>\n\n", styles: [":host{display:block}.mat-mdc-dialog-content{margin:0;padding:0}.mat-mdc-dialog-actions{margin-bottom:0!important;padding:0;align-items:flex-end;justify-content:flex-end}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: MarkdownComponent, selector: "aup-markdown, [aupMarkdown]", inputs: ["content$", "content", "inline"] }, { kind: "component", type: ActivityActionsComponent, selector: "aup-activity-actions", inputs: ["confirmCommand", "cancelCommand", "faces", "confirmFace", "cancelFace", "style", "layout", "align", "alignContent"] }, { kind: "component", type: ActivityTitleComponent, selector: "aup-activity-title", inputs: ["hasTransparentBackground", "color"] }, { kind: "component", type: ActivityBodyComponent, selector: "aup-activity-body", inputs: ["fullWidth"] }] });
9799
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: ConfirmationDialogComponent, selector: "aup-confirmation-dialog", usesInheritance: true, ngImport: i0, template: "<aup-confirm-renderer [config]=\"config\" [confirmCommand]=\"confirmCommand\" [cancelCommand]=\"cancelCommand\"></aup-confirm-renderer>\n", styles: [":host{display:block}.mat-mdc-dialog-content{margin:0;padding:0}.mat-mdc-dialog-actions{margin-bottom:0!important;padding:0;align-items:flex-end;justify-content:flex-end}\n"], dependencies: [{ kind: "component", type: ConfirmRendererComponent, selector: "aup-confirm-renderer", inputs: ["cancelCommand"] }] });
9723
9800
  }
9724
9801
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ConfirmationDialogComponent, decorators: [{
9725
9802
  type: Component,
9726
- args: [{ selector: 'aup-confirmation-dialog', template: "<aup-activity-title *ngIf=\"title\" [color]=\"color\"><aup-markdown [content]=\"title\" [inline]=\"true\"></aup-markdown></aup-activity-title>\n<aup-activity-body>\n <aup-markdown *ngFor=\"let line of content\" [content]=\"line\"></aup-markdown>\n</aup-activity-body>\n<aup-activity-actions [confirmFace]=\"confirmFace\" [cancelFace]=\"cancelFace\"></aup-activity-actions>\n\n", styles: [":host{display:block}.mat-mdc-dialog-content{margin:0;padding:0}.mat-mdc-dialog-actions{margin-bottom:0!important;padding:0;align-items:flex-end;justify-content:flex-end}\n"] }]
9727
- }], ctorParameters: function () { return [{ type: undefined, decorators: [{
9803
+ args: [{ selector: 'aup-confirmation-dialog', template: "<aup-confirm-renderer [config]=\"config\" [confirmCommand]=\"confirmCommand\" [cancelCommand]=\"cancelCommand\"></aup-confirm-renderer>\n", styles: [":host{display:block}.mat-mdc-dialog-content{margin:0;padding:0}.mat-mdc-dialog-actions{margin-bottom:0!important;padding:0;align-items:flex-end;justify-content:flex-end}\n"] }]
9804
+ }], ctorParameters: function () { return [{ type: Confirm, decorators: [{
9728
9805
  type: Inject,
9729
9806
  args: [ACTIVITY_DATA]
9730
9807
  }] }]; } });
@@ -9835,12 +9912,42 @@ class ActivityRef {
9835
9912
  }
9836
9913
  }
9837
9914
 
9915
+ const INTERACTION_CONTEXT = new InjectionToken('interactionContext');
9916
+
9917
+ class ActivityContextImpl extends ActivityContext {
9918
+ activityContainer;
9919
+ readyListeners = [];
9920
+ confirmCommand = new DelegatingCommand();
9921
+ cancelCommand = new DelegatingCommand();
9922
+ activity;
9923
+ constructor(activityContainer) {
9924
+ super();
9925
+ this.activityContainer = activityContainer;
9926
+ }
9927
+ init(activity) {
9928
+ this.activity = activity;
9929
+ this.confirmCommand.setDelegate(activity.confirmCommand);
9930
+ this.cancelCommand.setDelegate(activity.cancelCommand);
9931
+ this.readyListeners.forEach((listener) => listener(this.activity));
9932
+ }
9933
+ get interactionContext() {
9934
+ return this.activityContainer;
9935
+ }
9936
+ onActivityReady(callback) {
9937
+ if (this.activity) {
9938
+ this.activity.onActivityReady(callback);
9939
+ }
9940
+ else {
9941
+ this.readyListeners.push(callback);
9942
+ }
9943
+ }
9944
+ }
9838
9945
  /**
9839
9946
  * ActivityOutletComponent creates and displays an activity and delegates the interaction context functionality to an
9840
9947
  * external service.
9841
9948
  */
9842
9949
  class ActivityOutletComponent {
9843
- componentFactoryResolver;
9950
+ interactionContext;
9844
9951
  viewContainerRef;
9845
9952
  injector;
9846
9953
  activityComponentRef;
@@ -9857,37 +9964,39 @@ class ActivityOutletComponent {
9857
9964
  get activityRef() {
9858
9965
  return this._activityRef;
9859
9966
  }
9860
- constructor(componentFactoryResolver, viewContainerRef, injector) {
9861
- this.componentFactoryResolver = componentFactoryResolver;
9967
+ constructor(interactionContext, viewContainerRef, injector) {
9968
+ this.interactionContext = interactionContext;
9862
9969
  this.viewContainerRef = viewContainerRef;
9863
9970
  this.injector = injector;
9864
9971
  }
9865
9972
  loadActivity(activityRef) {
9973
+ this.viewContainerRef.clear();
9974
+ const activityContext = new ActivityContextImpl(this.interactionContext);
9866
9975
  const injector = Injector.create({
9867
9976
  providers: [
9868
- {
9869
- provide: ACTIVITY_DATA,
9870
- useValue: activityRef.activityData
9871
- }
9977
+ { provide: ACTIVITY_DATA, useValue: activityRef.activityData },
9978
+ { provide: ActivityContext, useValue: activityContext },
9979
+ { provide: INTERACTION_CONTEXT_PROVIDER, useValue: activityContext }
9872
9980
  ],
9873
9981
  parent: this.injector
9874
9982
  });
9875
- const componentFactory = this.componentFactoryResolver.resolveComponentFactory(activityRef.activityClass);
9876
- this.viewContainerRef.clear();
9877
- // console.log(`creating component -> ${activityRef.activityClass.name}`);
9878
- this.activityComponentRef = this.viewContainerRef.createComponent(componentFactory, 0, injector);
9983
+ this.activityComponentRef = this.viewContainerRef.createComponent(activityRef.activityClass, { index: 0, injector });
9984
+ activityContext.init(this.activityComponentRef.instance);
9879
9985
  this.activityRef.notifyActivityCreated(this.activityComponentRef.instance, this.nestedInteractionContext);
9880
9986
  }
9881
9987
  get component() {
9882
9988
  return this.activityComponentRef.instance;
9883
9989
  }
9884
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ActivityOutletComponent, deps: [{ token: i0.ComponentFactoryResolver }, { token: i0.ViewContainerRef }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
9990
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ActivityOutletComponent, deps: [{ token: INTERACTION_CONTEXT }, { token: i0.ViewContainerRef }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
9885
9991
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: ActivityOutletComponent, selector: "aup-activity-outlet", inputs: { nestedInteractionContext: "nestedInteractionContext", activityRef: "activityRef" }, ngImport: i0, template: '', isInline: true, styles: [":host{display:block}\n"] });
9886
9992
  }
9887
9993
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ActivityOutletComponent, decorators: [{
9888
9994
  type: Component,
9889
9995
  args: [{ selector: 'aup-activity-outlet', template: '', styles: [":host{display:block}\n"] }]
9890
- }], ctorParameters: function () { return [{ type: i0.ComponentFactoryResolver }, { type: i0.ViewContainerRef }, { type: i0.Injector }]; }, propDecorators: { nestedInteractionContext: [{
9996
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
9997
+ type: Inject,
9998
+ args: [INTERACTION_CONTEXT]
9999
+ }] }, { type: i0.ViewContainerRef }, { type: i0.Injector }]; }, propDecorators: { nestedInteractionContext: [{
9891
10000
  type: Input
9892
10001
  }], activityRef: [{
9893
10002
  type: Input
@@ -9972,6 +10081,9 @@ class ActivityContainerComponent extends AbstractInteractionContext {
9972
10081
  }
9973
10082
  return findLast(this.activityRefs, tab => !tab.isComplete());
9974
10083
  }
10084
+ get disableClose() {
10085
+ return this.getActiveActivityRef().activity.disableClose;
10086
+ }
9975
10087
  /**
9976
10088
  * Cancels the current activity and returns true the context is no longer active, false if
9977
10089
  * there is still another activity running.
@@ -10127,11 +10239,15 @@ class ActivityContainerComponent extends AbstractInteractionContext {
10127
10239
  this.finaliseActivityStates();
10128
10240
  }
10129
10241
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ActivityContainerComponent, deps: [{ token: PlaceRouter }], target: i0.ɵɵFactoryTarget.Component });
10130
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: ActivityContainerComponent, selector: "aup-activity-container", inputs: { dynamicHeight: "dynamicHeight", animationDuration: "animationDuration" }, viewQueries: [{ propertyName: "tabs", first: true, predicate: ["tabs"], descendants: true, static: true }, { propertyName: "activityOutlets", predicate: ActivityOutletComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<mat-tab-group #tabs no-tab-header\n [dynamicHeight]=\"dynamicHeight\"\n [class.full-height-tabs]=\"!dynamicHeight\"\n [animationDuration]=\"getTabAnimationDuration()\"\n (animationDone)=\"onAnimationDone()\"\n>\n <mat-tab *ngFor=\"let activityRef of activityRefs; let i = index; trackBy: activityIndex\">\n <aup-busy-overlay [busy$]=\"busy\" cdkTrapFocus cdkTrapFocusAutoCapture>\n <!--\n We have issues where angular is triggering a leave animation when an\n new activity is started, but is not running the enter animation\n when it is scrolled back into view. So we track the tab changes and\n disable all animations inside the tab while we're animating.\n -->\n <div class=\"activity-outlet-wrapper\" [@.disabled]=\"!activityRef.focused\">\n <aup-activity-outlet [nestedInteractionContext]=\"this\" [activityRef]=\"activityRef\"></aup-activity-outlet>\n </div>\n </aup-busy-overlay>\n </mat-tab>\n</mat-tab-group>\n", styles: [":host{display:flex;flex-direction:column}mat-tab-group{flex:1}aup-busy-overlay{flex:1}.activity-outlet-wrapper{flex:1}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i3$3.MatTab, selector: "mat-tab", inputs: ["disabled"], exportAs: ["matTab"] }, { kind: "component", type: i3$3.MatTabGroup, selector: "mat-tab-group", inputs: ["color", "disableRipple", "fitInkBarToContent", "mat-stretch-tabs"], exportAs: ["matTabGroup"] }, { kind: "component", type: BusyOverlayComponent, selector: "aup-busy-overlay", inputs: ["busy$", "busy"] }, { kind: "directive", type: i5$1.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "component", type: ActivityOutletComponent, selector: "aup-activity-outlet", inputs: ["nestedInteractionContext", "activityRef"] }] });
10242
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: ActivityContainerComponent, selector: "aup-activity-container", inputs: { dynamicHeight: "dynamicHeight", animationDuration: "animationDuration" }, providers: [
10243
+ { provide: INTERACTION_CONTEXT, useClass: ActivityContainerComponent },
10244
+ ], viewQueries: [{ propertyName: "tabs", first: true, predicate: ["tabs"], descendants: true, static: true }, { propertyName: "activityOutlets", predicate: ActivityOutletComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<mat-tab-group #tabs no-tab-header\n [dynamicHeight]=\"dynamicHeight\"\n [class.full-height-tabs]=\"!dynamicHeight\"\n [animationDuration]=\"getTabAnimationDuration()\"\n (animationDone)=\"onAnimationDone()\"\n>\n <mat-tab *ngFor=\"let activityRef of activityRefs; let i = index; trackBy: activityIndex\">\n <aup-busy-overlay [busy$]=\"busy\" cdkTrapFocus cdkTrapFocusAutoCapture>\n <!--\n We have issues where angular is triggering a leave animation when an\n new activity is started, but is not running the enter animation\n when it is scrolled back into view. So we track the tab changes and\n disable all animations inside the tab while we're animating.\n -->\n <div class=\"activity-outlet-wrapper\" [@.disabled]=\"!activityRef.focused\">\n <aup-activity-outlet [nestedInteractionContext]=\"this\" [activityRef]=\"activityRef\"></aup-activity-outlet>\n </div>\n </aup-busy-overlay>\n </mat-tab>\n</mat-tab-group>\n", styles: [":host{display:flex;flex-direction:column}mat-tab-group{flex:1}aup-busy-overlay{flex:1}.activity-outlet-wrapper{flex:1}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i3$3.MatTab, selector: "mat-tab", inputs: ["disabled"], exportAs: ["matTab"] }, { kind: "component", type: i3$3.MatTabGroup, selector: "mat-tab-group", inputs: ["color", "disableRipple", "fitInkBarToContent", "mat-stretch-tabs"], exportAs: ["matTabGroup"] }, { kind: "component", type: BusyOverlayComponent, selector: "aup-busy-overlay", inputs: ["busy$", "busy"] }, { kind: "directive", type: i5$1.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "component", type: ActivityOutletComponent, selector: "aup-activity-outlet", inputs: ["nestedInteractionContext", "activityRef"] }] });
10131
10245
  }
10132
10246
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ActivityContainerComponent, decorators: [{
10133
10247
  type: Component,
10134
- args: [{ selector: "aup-activity-container", template: "<mat-tab-group #tabs no-tab-header\n [dynamicHeight]=\"dynamicHeight\"\n [class.full-height-tabs]=\"!dynamicHeight\"\n [animationDuration]=\"getTabAnimationDuration()\"\n (animationDone)=\"onAnimationDone()\"\n>\n <mat-tab *ngFor=\"let activityRef of activityRefs; let i = index; trackBy: activityIndex\">\n <aup-busy-overlay [busy$]=\"busy\" cdkTrapFocus cdkTrapFocusAutoCapture>\n <!--\n We have issues where angular is triggering a leave animation when an\n new activity is started, but is not running the enter animation\n when it is scrolled back into view. So we track the tab changes and\n disable all animations inside the tab while we're animating.\n -->\n <div class=\"activity-outlet-wrapper\" [@.disabled]=\"!activityRef.focused\">\n <aup-activity-outlet [nestedInteractionContext]=\"this\" [activityRef]=\"activityRef\"></aup-activity-outlet>\n </div>\n </aup-busy-overlay>\n </mat-tab>\n</mat-tab-group>\n", styles: [":host{display:flex;flex-direction:column}mat-tab-group{flex:1}aup-busy-overlay{flex:1}.activity-outlet-wrapper{flex:1}\n"] }]
10248
+ args: [{ selector: "aup-activity-container", providers: [
10249
+ { provide: INTERACTION_CONTEXT, useClass: ActivityContainerComponent },
10250
+ ], template: "<mat-tab-group #tabs no-tab-header\n [dynamicHeight]=\"dynamicHeight\"\n [class.full-height-tabs]=\"!dynamicHeight\"\n [animationDuration]=\"getTabAnimationDuration()\"\n (animationDone)=\"onAnimationDone()\"\n>\n <mat-tab *ngFor=\"let activityRef of activityRefs; let i = index; trackBy: activityIndex\">\n <aup-busy-overlay [busy$]=\"busy\" cdkTrapFocus cdkTrapFocusAutoCapture>\n <!--\n We have issues where angular is triggering a leave animation when an\n new activity is started, but is not running the enter animation\n when it is scrolled back into view. So we track the tab changes and\n disable all animations inside the tab while we're animating.\n -->\n <div class=\"activity-outlet-wrapper\" [@.disabled]=\"!activityRef.focused\">\n <aup-activity-outlet [nestedInteractionContext]=\"this\" [activityRef]=\"activityRef\"></aup-activity-outlet>\n </div>\n </aup-busy-overlay>\n </mat-tab>\n</mat-tab-group>\n", styles: [":host{display:flex;flex-direction:column}mat-tab-group{flex:1}aup-busy-overlay{flex:1}.activity-outlet-wrapper{flex:1}\n"] }]
10135
10251
  }], ctorParameters: function () { return [{ type: PlaceRouter }]; }, propDecorators: { dynamicHeight: [{
10136
10252
  type: Input
10137
10253
  }], tabs: [{
@@ -10242,8 +10358,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
10242
10358
  args: ['class.active']
10243
10359
  }] } });
10244
10360
 
10245
- const INTERACTION_CONTEXT = new InjectionToken('interactionContext');
10246
-
10247
10361
  const cssDurationRegex$1 = /(\d+)(m?s)/;
10248
10362
  /**
10249
10363
  * @example
@@ -11433,7 +11547,9 @@ class InteractionModule {
11433
11547
  AddCardActivityComponent,
11434
11548
  InlineStringEditorComponent,
11435
11549
  AbstractDialogComponent,
11436
- AbstractConfirmDialogComponent], imports: [CommonModule,
11550
+ AbstractConfirmDialogComponent,
11551
+ ConfirmRendererComponent,
11552
+ AlertRendererComponent], imports: [CommonModule,
11437
11553
  MatButtonModule,
11438
11554
  MatDialogModule,
11439
11555
  MatTabsModule,
@@ -11461,9 +11577,11 @@ class InteractionModule {
11461
11577
  ModalActivityTriggerComponent,
11462
11578
  AddCardActivityComponent,
11463
11579
  InlineStringEditorComponent,
11464
- SlideDownInteractionContextComponent] });
11580
+ SlideDownInteractionContextComponent,
11581
+ ConfirmRendererComponent,
11582
+ AlertRendererComponent] });
11465
11583
  static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: InteractionModule, providers: [
11466
- InteractionService
11584
+ InteractionService,
11467
11585
  // {
11468
11586
  // provide: MAT_TABS_CONFIG, useValue: { animationDuration: "2s" }
11469
11587
  // }
@@ -11497,7 +11615,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
11497
11615
  FormsModule,
11498
11616
  MatInputModule,
11499
11617
  MatFormFieldModule,
11500
- A11yModule
11618
+ A11yModule,
11501
11619
  ],
11502
11620
  declarations: [
11503
11621
  ActivityContainerComponent,
@@ -11527,6 +11645,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
11527
11645
  InlineStringEditorComponent,
11528
11646
  AbstractDialogComponent,
11529
11647
  AbstractConfirmDialogComponent,
11648
+ ConfirmRendererComponent,
11649
+ AlertRendererComponent
11530
11650
  ],
11531
11651
  exports: [
11532
11652
  ActivityContainerComponent,
@@ -11546,13 +11666,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
11546
11666
  AddCardActivityComponent,
11547
11667
  InlineStringEditorComponent,
11548
11668
  SlideDownInteractionContextComponent,
11669
+ ConfirmRendererComponent,
11670
+ AlertRendererComponent
11549
11671
  ],
11550
11672
  providers: [
11551
- InteractionService
11673
+ InteractionService,
11552
11674
  // {
11553
11675
  // provide: MAT_TABS_CONFIG, useValue: { animationDuration: "2s" }
11554
11676
  // }
11555
- ]
11677
+ ],
11556
11678
  }]
11557
11679
  }] });
11558
11680
 
@@ -12316,7 +12438,7 @@ class DialogInteractionContext extends AbstractInteractionContext {
12316
12438
  const config = {
12317
12439
  ...this.config,
12318
12440
  ...{
12319
- disableClose,
12441
+ disableClose: true,
12320
12442
  panelClass: 'dialog-interaction-context'
12321
12443
  }
12322
12444
  };
@@ -12328,6 +12450,11 @@ class DialogInteractionContext extends AbstractInteractionContext {
12328
12450
  // we need to check if our onDone/onCancel methods above we called or if we were
12329
12451
  // closed by the user clicking the backdrop. If the later then we need to cancel our
12330
12452
  // activity.
12453
+ matDialogRef.backdropClick().subscribe(event => {
12454
+ if (this.activityContainer.isActive() && (!this.activityContainer.disableClose && !disableClose)) {
12455
+ activityContainer.cancelActiveActivity();
12456
+ }
12457
+ });
12331
12458
  matDialogRef.afterClosed().subscribe(promiseAlreadyFinished => {
12332
12459
  if (activityContainer.isActive()) {
12333
12460
  activityContainer.cancelActiveActivity();
@@ -12813,5 +12940,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
12813
12940
  * Generated bundle index. Do not edit.
12814
12941
  */
12815
12942
 
12816
- export { ACTIVITY_DATA, ALERT_CONFIG, AUP_PLACE_CONFIG, 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, ActivityOutletComponent, ActivityRef, ActivityTitleComponent, AddCardActivityComponent, AddItemInteractionContextComponent, Alert, AlertDialogComponent, 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, 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, INTERACTION_CONTEXT_PROVIDER, IconComponent, InPlaceInteractionContextComponent, InlineActivityTriggerComponent, InlineEditorModel, InlineStringEditorComponent, InputActivity, 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, 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, TableBodyComponent, TableCellComponent, TableComponent, TableFilterModel, TableFooterRow, TableHeaderCellComponent, TableModel, TableMoreMenuComponent, TableMoreMenuPopupComponent, TableRowAttributesDirective, TableRowMenuComponent, 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 };
12943
+ export { ACTIVITY_DATA, ALERT_CONFIG, AUP_PLACE_CONFIG, 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, INTERACTION_CONTEXT_PROVIDER, IconComponent, InPlaceInteractionContextComponent, InlineActivityTriggerComponent, InlineEditorModel, InlineStringEditorComponent, InputActivity, 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, 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, TableBodyComponent, TableCellComponent, TableComponent, TableFilterModel, TableFooterRow, TableHeaderCellComponent, TableModel, TableMoreMenuComponent, TableMoreMenuPopupComponent, TableRowAttributesDirective, TableRowMenuComponent, 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 };
12817
12944
  //# sourceMappingURL=coolon-angular-ui-powerups.mjs.map