@coolon/angular-ui-powerups 0.0.58 → 0.0.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/coolon-angular-ui-powerups.umd.js +139 -126
- package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.min.js +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.min.js.map +1 -1
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/lib/interaction/abstract-activity.js +25 -68
- package/esm2015/lib/interaction/activity.js +3 -8
- package/esm2015/lib/interaction/components/activity-container/activity-container.component.js +82 -26
- package/esm2015/lib/interaction/components/activity-outlet/activity-outlet.component.js +10 -4
- package/esm2015/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.js +2 -2
- package/esm2015/lib/interaction/interaction-context.js +1 -1
- package/esm2015/lib/interaction/services/dialog-interaction.service.js +6 -6
- package/esm5/lib/interaction/abstract-activity.js +38 -88
- package/esm5/lib/interaction/activity.js +3 -8
- package/esm5/lib/interaction/components/activity-container/activity-container.component.js +87 -27
- package/esm5/lib/interaction/components/activity-outlet/activity-outlet.component.js +10 -4
- package/esm5/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.js +2 -2
- package/esm5/lib/interaction/interaction-context.js +1 -1
- package/esm5/lib/interaction/services/dialog-interaction.service.js +5 -5
- package/fesm2015/coolon-angular-ui-powerups.js +119 -108
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +137 -125
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/interaction/abstract-activity.d.ts +6 -8
- package/lib/interaction/activity.d.ts +2 -2
- package/lib/interaction/components/activity-container/activity-container.component.d.ts +5 -4
- package/lib/interaction/components/activity-outlet/activity-outlet.component.d.ts +2 -2
- package/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.d.ts +1 -1
- package/lib/interaction/interaction-context.d.ts +1 -1
- package/lib/interaction/services/dialog-interaction.service.d.ts +3 -3
- package/package.json +1 -1
|
@@ -5,11 +5,10 @@ import { MatDialog, MatButtonModule, MatDialogModule, MatTabsModule, MatProgress
|
|
|
5
5
|
import { MatTabsModule as MatTabsModule$1 } from '@angular/material/tabs';
|
|
6
6
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
7
7
|
import { __decorate, __metadata, __awaiter } from 'tslib';
|
|
8
|
-
import { GarbageCollector, DelegatingFormValueModel, UseDelegate, ValueModel, ListModel, StoreInListModel, assert, UnaryCommand, lang, Dsl, Logger,
|
|
8
|
+
import { GarbageCollector, DelegatingFormValueModel, UseDelegate, ValueModel, ListModel, StoreInListModel, assert, UnaryCommand, lang, Dsl, Logger, Trace, DelegatingValueModel, MutableListModel, StoreInValueModel, Binding, MutableValueModel, Guard, OptionsHelper, ValueHolder } from '@coolon/pectin';
|
|
9
9
|
import { PortalModule } from '@angular/cdk/portal';
|
|
10
|
-
import { Deferred } from '@coolon/pectin/lib/promise/deferred.class';
|
|
11
|
-
import { MatDialogConfig, MAT_DIALOG_DEFAULT_OPTIONS, MatDialog as MatDialog$1 } from '@angular/material/dialog';
|
|
12
10
|
import { assert as assert$1, Klass, Opts } from '@coolon/typescript-utilities';
|
|
11
|
+
import { MatDialogConfig, MAT_DIALOG_DEFAULT_OPTIONS, MatDialog as MatDialog$1 } from '@angular/material/dialog';
|
|
13
12
|
import { MatIconModule } from '@angular/material/icon';
|
|
14
13
|
import { MatListModule } from '@angular/material/list';
|
|
15
14
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
@@ -697,15 +696,10 @@ if (false) {
|
|
|
697
696
|
/** @type {?} */
|
|
698
697
|
Activity.prototype.busy;
|
|
699
698
|
/**
|
|
700
|
-
* @param {?}
|
|
701
|
-
* @return {?}
|
|
702
|
-
*/
|
|
703
|
-
Activity.prototype.onDone = function (callback) { };
|
|
704
|
-
/**
|
|
705
|
-
* @param {?} callback
|
|
699
|
+
* @param {?} activityContext
|
|
706
700
|
* @return {?}
|
|
707
701
|
*/
|
|
708
|
-
Activity.prototype.
|
|
702
|
+
Activity.prototype.initialise = function (activityContext) { };
|
|
709
703
|
}
|
|
710
704
|
|
|
711
705
|
/**
|
|
@@ -764,8 +758,7 @@ class ActivityOutletComponent {
|
|
|
764
758
|
const componentFactory = this.componentFactoryResolver.resolveComponentFactory(activityContext.activityClass);
|
|
765
759
|
this.viewContainerRef.clear();
|
|
766
760
|
this.activityComponentRef = this.viewContainerRef.createComponent(componentFactory, 0, injector);
|
|
767
|
-
this.activityComponentRef.instance.
|
|
768
|
-
this.activityComponentRef.instance.onCancel(activityContext.onCancel);
|
|
761
|
+
this.activityComponentRef.instance.initialise(activityContext);
|
|
769
762
|
}
|
|
770
763
|
/**
|
|
771
764
|
* @param {?} alert
|
|
@@ -816,6 +809,12 @@ ActivityOutletComponent.propDecorators = {
|
|
|
816
809
|
interactionContext: [{ type: Input }],
|
|
817
810
|
activityContext: [{ type: Input }]
|
|
818
811
|
};
|
|
812
|
+
__decorate([
|
|
813
|
+
Trace(),
|
|
814
|
+
__metadata("design:type", Function),
|
|
815
|
+
__metadata("design:paramtypes", [Object]),
|
|
816
|
+
__metadata("design:returntype", void 0)
|
|
817
|
+
], ActivityOutletComponent.prototype, "loadActivity", null);
|
|
819
818
|
if (false) {
|
|
820
819
|
/** @type {?} */
|
|
821
820
|
ActivityOutletComponent.prototype.interactionContext;
|
|
@@ -896,85 +895,44 @@ if (false) {
|
|
|
896
895
|
class AbstractActivity extends DisposableComponent {
|
|
897
896
|
constructor() {
|
|
898
897
|
super(...arguments);
|
|
899
|
-
this._doneListeners = new EventListenerList();
|
|
900
|
-
this._cancelListeners = new EventListenerList();
|
|
901
|
-
this._finishListeners = new EventListenerList();
|
|
902
898
|
this._busyModel = new DelegatingValueModel().withDefault(false);
|
|
903
899
|
}
|
|
904
900
|
/**
|
|
905
|
-
* @param {?}
|
|
906
|
-
* @return {?}
|
|
907
|
-
*/
|
|
908
|
-
onDone(callback) {
|
|
909
|
-
this._doneListeners.add(callback);
|
|
910
|
-
}
|
|
911
|
-
/**
|
|
912
|
-
* @param {?} callback
|
|
901
|
+
* @param {?} activityContext
|
|
913
902
|
* @return {?}
|
|
914
903
|
*/
|
|
915
|
-
|
|
916
|
-
this.
|
|
904
|
+
initialise(activityContext) {
|
|
905
|
+
assert$1.isNil(this.activityContext);
|
|
906
|
+
this.activityContext = activityContext;
|
|
917
907
|
}
|
|
918
908
|
/**
|
|
919
909
|
* @param {?=} result
|
|
920
910
|
* @return {?}
|
|
921
911
|
*/
|
|
922
912
|
done(result) {
|
|
923
|
-
return this.
|
|
924
|
-
.fireAndWait((/**
|
|
925
|
-
* @param {?} l
|
|
926
|
-
* @return {?}
|
|
927
|
-
*/
|
|
928
|
-
l => l(result)))
|
|
929
|
-
.finally((/**
|
|
930
|
-
* @return {?}
|
|
931
|
-
*/
|
|
932
|
-
() => this.finalizeAndDispose()));
|
|
913
|
+
return this.activityContext.onDone(result);
|
|
933
914
|
}
|
|
934
915
|
/**
|
|
935
916
|
* @param {?=} error
|
|
936
917
|
* @return {?}
|
|
937
918
|
*/
|
|
938
919
|
cancel(error) {
|
|
939
|
-
|
|
940
|
-
.fireAndWait((/**
|
|
941
|
-
* @param {?} l
|
|
942
|
-
* @return {?}
|
|
943
|
-
*/
|
|
944
|
-
l => l(error)))
|
|
945
|
-
.finally((/**
|
|
946
|
-
* @return {?}
|
|
947
|
-
*/
|
|
948
|
-
() => this.finalizeAndDispose()));
|
|
920
|
+
this.activityContext.onCancel(error);
|
|
949
921
|
}
|
|
950
|
-
// @Trace()
|
|
951
922
|
/**
|
|
952
923
|
* @return {?}
|
|
953
924
|
*/
|
|
954
|
-
|
|
925
|
+
get data() {
|
|
926
|
+
return this.activityContext.activityData;
|
|
955
927
|
}
|
|
928
|
+
// get interactionContext(): InteractionContext {
|
|
929
|
+
// return this.activityContext.interactionContext;
|
|
930
|
+
// }
|
|
931
|
+
// @Trace()
|
|
956
932
|
/**
|
|
957
|
-
* @private
|
|
958
933
|
* @return {?}
|
|
959
934
|
*/
|
|
960
|
-
|
|
961
|
-
// this._activeModel.value = false;
|
|
962
|
-
this._finishListeners.fire((/**
|
|
963
|
-
* @param {?} l
|
|
964
|
-
* @return {?}
|
|
965
|
-
*/
|
|
966
|
-
l => l()));
|
|
967
|
-
// this._interactionContext = null;
|
|
968
|
-
// this._initialized = false;
|
|
969
|
-
[
|
|
970
|
-
this._finishListeners,
|
|
971
|
-
this._doneListeners,
|
|
972
|
-
this._cancelListeners
|
|
973
|
-
].forEach((/**
|
|
974
|
-
* @param {?} l
|
|
975
|
-
* @return {?}
|
|
976
|
-
*/
|
|
977
|
-
l => l.dispose()));
|
|
935
|
+
onActivityReady() {
|
|
978
936
|
}
|
|
979
937
|
/**
|
|
980
938
|
* @return {?}
|
|
@@ -996,27 +954,23 @@ class AbstractActivity extends DisposableComponent {
|
|
|
996
954
|
return this._busyModel.value;
|
|
997
955
|
}
|
|
998
956
|
}
|
|
957
|
+
__decorate([
|
|
958
|
+
Trace(),
|
|
959
|
+
__metadata("design:type", Function),
|
|
960
|
+
__metadata("design:paramtypes", [Object]),
|
|
961
|
+
__metadata("design:returntype", void 0)
|
|
962
|
+
], AbstractActivity.prototype, "initialise", null);
|
|
999
963
|
if (false) {
|
|
1000
964
|
/**
|
|
1001
965
|
* @type {?}
|
|
1002
966
|
* @private
|
|
1003
967
|
*/
|
|
1004
|
-
AbstractActivity.prototype.
|
|
1005
|
-
/**
|
|
1006
|
-
* @type {?}
|
|
1007
|
-
* @private
|
|
1008
|
-
*/
|
|
1009
|
-
AbstractActivity.prototype._cancelListeners;
|
|
1010
|
-
/**
|
|
1011
|
-
* @type {?}
|
|
1012
|
-
* @private
|
|
1013
|
-
*/
|
|
1014
|
-
AbstractActivity.prototype._finishListeners;
|
|
968
|
+
AbstractActivity.prototype._busyModel;
|
|
1015
969
|
/**
|
|
1016
970
|
* @type {?}
|
|
1017
971
|
* @private
|
|
1018
972
|
*/
|
|
1019
|
-
AbstractActivity.prototype.
|
|
973
|
+
AbstractActivity.prototype.activityContext;
|
|
1020
974
|
}
|
|
1021
975
|
|
|
1022
976
|
/**
|
|
@@ -1081,7 +1035,7 @@ class ConfirmationDialogComponent extends AbstractActivity {
|
|
|
1081
1035
|
ConfirmationDialogComponent.decorators = [
|
|
1082
1036
|
{ type: Component, args: [{
|
|
1083
1037
|
selector: 'angular-ui-powerups-confirmation-dialog',
|
|
1084
|
-
template: "<h3 matDialogTitle *ngIf=\"confirm.title\">{{confirm.title()}}</h3>\n<div matDialogContent>\n <p *ngFor=\"let line of confirm.content()\">{{line}}</p>\n</div>\n<p matDialogActions>\n <button mat-button (click)=\"cancel()\">{{confirm.cancel()}}</button>\n <button mat-raised-button [color]=\"isDestructive() ? 'warn' : 'primary'\"\n (click)=\"done(
|
|
1038
|
+
template: "<h3 matDialogTitle *ngIf=\"confirm.title\">{{confirm.title()}}</h3>\n<div matDialogContent>\n <p *ngFor=\"let line of confirm.content()\">{{line}}</p>\n</div>\n<p matDialogActions>\n <button mat-button (click)=\"cancel()\">{{confirm.cancel()}}</button>\n <button mat-raised-button [color]=\"isDestructive() ? 'warn' : 'primary'\"\n (click)=\"done()\">{{confirm.ok()}}</button>\n</p>\n\n",
|
|
1085
1039
|
styles: [":host{display:block;padding:var(--angular-ui-powerups-default-padding)}.mat-dialog-actions{justify-content:flex-end}"]
|
|
1086
1040
|
}] }
|
|
1087
1041
|
];
|
|
@@ -1103,8 +1057,7 @@ class ActivityContainerComponent extends DisposableComponent {
|
|
|
1103
1057
|
super();
|
|
1104
1058
|
this.activityOutletTabs = new MutableListModel();
|
|
1105
1059
|
this.obsoleteTabs = [];
|
|
1106
|
-
|
|
1107
|
-
this.lastActivityTab = chain(this.activityOutletTabs).last().otherwise(this.initialActivityOutlet);
|
|
1060
|
+
this.finished = false;
|
|
1108
1061
|
}
|
|
1109
1062
|
/**
|
|
1110
1063
|
* @return {?}
|
|
@@ -1123,11 +1076,33 @@ class ActivityContainerComponent extends DisposableComponent {
|
|
|
1123
1076
|
}
|
|
1124
1077
|
/**
|
|
1125
1078
|
* @template D, R, E
|
|
1126
|
-
* @param {?}
|
|
1079
|
+
* @param {?} initialContext
|
|
1127
1080
|
* @return {?}
|
|
1128
1081
|
*/
|
|
1129
|
-
initialise(
|
|
1130
|
-
|
|
1082
|
+
initialise(initialContext) {
|
|
1083
|
+
/** @type {?} */
|
|
1084
|
+
const self = this;
|
|
1085
|
+
this.initialActivityOutletContext = {
|
|
1086
|
+
activityClass: initialContext.activityClass,
|
|
1087
|
+
activityData: initialContext.activityData,
|
|
1088
|
+
onDone: (/**
|
|
1089
|
+
* @param {?} result
|
|
1090
|
+
* @return {?}
|
|
1091
|
+
*/
|
|
1092
|
+
function (result) {
|
|
1093
|
+
self.finished = true;
|
|
1094
|
+
return initialContext.onDone(result);
|
|
1095
|
+
}),
|
|
1096
|
+
onCancel: (/**
|
|
1097
|
+
* @param {?} error
|
|
1098
|
+
* @return {?}
|
|
1099
|
+
*/
|
|
1100
|
+
function (error) {
|
|
1101
|
+
self.finished = true;
|
|
1102
|
+
return initialContext.onCancel(error);
|
|
1103
|
+
}),
|
|
1104
|
+
interactionContext: this
|
|
1105
|
+
};
|
|
1131
1106
|
}
|
|
1132
1107
|
/**
|
|
1133
1108
|
* @template D, R, E
|
|
@@ -1137,23 +1112,49 @@ class ActivityContainerComponent extends DisposableComponent {
|
|
|
1137
1112
|
*/
|
|
1138
1113
|
startActivity(activityType, data) {
|
|
1139
1114
|
/** @type {?} */
|
|
1140
|
-
const
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
activityClass: activityType,
|
|
1145
|
-
activityData: data,
|
|
1146
|
-
onDone: deferred.resolve,
|
|
1147
|
-
onCancel: deferred.reject
|
|
1148
|
-
};
|
|
1149
|
-
this.activityOutletTabs.push(context);
|
|
1150
|
-
this.tabs.selectedIndex = this.activityOutletTabs.length;
|
|
1151
|
-
return deferred.promise.finally((/**
|
|
1115
|
+
const self = this;
|
|
1116
|
+
return new Promise((/**
|
|
1117
|
+
* @param {?} resolve
|
|
1118
|
+
* @param {?} reject
|
|
1152
1119
|
* @return {?}
|
|
1153
1120
|
*/
|
|
1154
|
-
() => {
|
|
1155
|
-
|
|
1156
|
-
|
|
1121
|
+
(resolve, reject) => {
|
|
1122
|
+
/** @type {?} */
|
|
1123
|
+
const context = {
|
|
1124
|
+
interactionContext: self,
|
|
1125
|
+
activityClass: activityType,
|
|
1126
|
+
activityData: data,
|
|
1127
|
+
onDone: (/**
|
|
1128
|
+
* @param {?} result
|
|
1129
|
+
* @return {?}
|
|
1130
|
+
*/
|
|
1131
|
+
function (result) {
|
|
1132
|
+
self.obsoleteTabs.push(context);
|
|
1133
|
+
// animating on the next tick gives chained done's a chance to
|
|
1134
|
+
// finished before we start an animations
|
|
1135
|
+
resolve(result);
|
|
1136
|
+
setTimeout((/**
|
|
1137
|
+
* @return {?}
|
|
1138
|
+
*/
|
|
1139
|
+
() => self.animateTabs()));
|
|
1140
|
+
}),
|
|
1141
|
+
onCancel: (/**
|
|
1142
|
+
* @param {?} error
|
|
1143
|
+
* @return {?}
|
|
1144
|
+
*/
|
|
1145
|
+
function (error) {
|
|
1146
|
+
self.obsoleteTabs.push(context);
|
|
1147
|
+
// finished before we start an animations
|
|
1148
|
+
reject(error);
|
|
1149
|
+
// animating on the next tick gives chained done's a chance to complete before we animate
|
|
1150
|
+
setTimeout((/**
|
|
1151
|
+
* @return {?}
|
|
1152
|
+
*/
|
|
1153
|
+
() => self.animateTabs()));
|
|
1154
|
+
})
|
|
1155
|
+
};
|
|
1156
|
+
self.activityOutletTabs.push(context);
|
|
1157
|
+
self.tabs.selectedIndex = this.activityOutletTabs.length;
|
|
1157
1158
|
}));
|
|
1158
1159
|
}
|
|
1159
1160
|
/**
|
|
@@ -1182,13 +1183,23 @@ class ActivityContainerComponent extends DisposableComponent {
|
|
|
1182
1183
|
tab => {
|
|
1183
1184
|
return !this.obsoleteTabs.includes(tab);
|
|
1184
1185
|
}));
|
|
1186
|
+
this.obsoleteTabs = [];
|
|
1185
1187
|
this.outlets.toArray()[this.tabs.selectedIndex].notifyReady();
|
|
1186
1188
|
}
|
|
1189
|
+
/**
|
|
1190
|
+
* @private
|
|
1191
|
+
* @return {?}
|
|
1192
|
+
*/
|
|
1193
|
+
animateTabs() {
|
|
1194
|
+
if (!this.finished) {
|
|
1195
|
+
this.tabs.selectedIndex = this.activityOutletTabs.length - this.obsoleteTabs.length;
|
|
1196
|
+
}
|
|
1197
|
+
}
|
|
1187
1198
|
}
|
|
1188
1199
|
ActivityContainerComponent.decorators = [
|
|
1189
1200
|
{ type: Component, args: [{
|
|
1190
1201
|
selector: 'angular-ui-powerups-activity-container',
|
|
1191
|
-
template: "<mat-tab-group #tabs no-tab-header [dynamicHeight]=\"true\">\n <mat-tab>\n <angular-ui-powerups-activity-outlet [interactionContext]=\"this\"\n [activityContext]=\"
|
|
1202
|
+
template: "<mat-tab-group #tabs no-tab-header [dynamicHeight]=\"true\">\n <mat-tab>\n <angular-ui-powerups-activity-outlet [interactionContext]=\"this\"\n [activityContext]=\"initialActivityOutletContext\"></angular-ui-powerups-activity-outlet>\n </mat-tab>\n <mat-tab *ngFor=\"let tab of activityOutletTabs.value\">\n <angular-ui-powerups-activity-outlet [interactionContext]=\"this\"\n [activityContext]=\"tab\"></angular-ui-powerups-activity-outlet>\n </mat-tab>\n</mat-tab-group>\n",
|
|
1192
1203
|
styles: [":host{display:block}"]
|
|
1193
1204
|
}] }
|
|
1194
1205
|
];
|
|
@@ -1196,7 +1207,7 @@ ActivityContainerComponent.decorators = [
|
|
|
1196
1207
|
ActivityContainerComponent.ctorParameters = () => [];
|
|
1197
1208
|
ActivityContainerComponent.propDecorators = {
|
|
1198
1209
|
parentInteractionContext: [{ type: Input }],
|
|
1199
|
-
|
|
1210
|
+
initialActivityOutletContext: [{ type: Input }],
|
|
1200
1211
|
tabs: [{ type: ViewChild, args: ['tabs', { static: true },] }],
|
|
1201
1212
|
outlets: [{ type: ViewChildren, args: [ActivityOutletComponent,] }]
|
|
1202
1213
|
};
|
|
@@ -1204,7 +1215,7 @@ if (false) {
|
|
|
1204
1215
|
/** @type {?} */
|
|
1205
1216
|
ActivityContainerComponent.prototype.parentInteractionContext;
|
|
1206
1217
|
/** @type {?} */
|
|
1207
|
-
ActivityContainerComponent.prototype.
|
|
1218
|
+
ActivityContainerComponent.prototype.initialActivityOutletContext;
|
|
1208
1219
|
/** @type {?} */
|
|
1209
1220
|
ActivityContainerComponent.prototype.tabs;
|
|
1210
1221
|
/** @type {?} */
|
|
@@ -1220,7 +1231,7 @@ if (false) {
|
|
|
1220
1231
|
* @type {?}
|
|
1221
1232
|
* @private
|
|
1222
1233
|
*/
|
|
1223
|
-
ActivityContainerComponent.prototype.
|
|
1234
|
+
ActivityContainerComponent.prototype.finished;
|
|
1224
1235
|
}
|
|
1225
1236
|
(function (ActivityContainerComponent) {
|
|
1226
1237
|
/**
|
|
@@ -1250,13 +1261,13 @@ const DIALOG_INTERACTION_SERVICE_DEFAULTS = new InjectionToken('DIALOG_INTERACTI
|
|
|
1250
1261
|
class DialogInteractionService extends InteractionContext {
|
|
1251
1262
|
/**
|
|
1252
1263
|
* @param {?} dialogService
|
|
1253
|
-
* @param {?}
|
|
1264
|
+
* @param {?} dialogServiceDefaults
|
|
1254
1265
|
* @param {?} matDialogDefaultConfig
|
|
1255
1266
|
*/
|
|
1256
|
-
constructor(dialogService,
|
|
1267
|
+
constructor(dialogService, dialogServiceDefaults, matDialogDefaultConfig) {
|
|
1257
1268
|
super();
|
|
1258
1269
|
this.dialogService = dialogService;
|
|
1259
|
-
this.
|
|
1270
|
+
this.dialogServiceDefaults = dialogServiceDefaults;
|
|
1260
1271
|
this.matDialogDefaultConfig = matDialogDefaultConfig;
|
|
1261
1272
|
assert$1.notNil(dialogService);
|
|
1262
1273
|
}
|
|
@@ -1279,7 +1290,7 @@ class DialogInteractionService extends InteractionContext {
|
|
|
1279
1290
|
*/
|
|
1280
1291
|
_startActivity(activityType, data, disableClose = true) {
|
|
1281
1292
|
/** @type {?} */
|
|
1282
|
-
const config = Object.assign({ autoFocus: false }, this.matDialogDefaultConfig, this.
|
|
1293
|
+
const config = Object.assign({ autoFocus: false, hasBackdrop: true }, this.matDialogDefaultConfig, this.dialogServiceDefaults, {
|
|
1283
1294
|
data,
|
|
1284
1295
|
disableClose,
|
|
1285
1296
|
panelClass: 'dialog-interaction-service'
|
|
@@ -1354,7 +1365,7 @@ if (false) {
|
|
|
1354
1365
|
*/
|
|
1355
1366
|
DialogInteractionService.prototype.dialogService;
|
|
1356
1367
|
/** @type {?} */
|
|
1357
|
-
DialogInteractionService.prototype.
|
|
1368
|
+
DialogInteractionService.prototype.dialogServiceDefaults;
|
|
1358
1369
|
/** @type {?} */
|
|
1359
1370
|
DialogInteractionService.prototype.matDialogDefaultConfig;
|
|
1360
1371
|
}
|