@coolon/angular-ui-powerups 0.0.58 → 0.0.60

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 (31) hide show
  1. package/bundles/coolon-angular-ui-powerups.umd.js +121 -127
  2. package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
  3. package/bundles/coolon-angular-ui-powerups.umd.min.js +1 -1
  4. package/bundles/coolon-angular-ui-powerups.umd.min.js.map +1 -1
  5. package/coolon-angular-ui-powerups.metadata.json +1 -1
  6. package/esm2015/lib/interaction/abstract-activity.js +18 -70
  7. package/esm2015/lib/interaction/activity.js +3 -8
  8. package/esm2015/lib/interaction/components/activity-container/activity-container.component.js +82 -26
  9. package/esm2015/lib/interaction/components/activity-outlet/activity-outlet.component.js +10 -4
  10. package/esm2015/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.js +2 -2
  11. package/esm2015/lib/interaction/interaction-context.js +1 -1
  12. package/esm2015/lib/interaction/services/dialog-interaction.service.js +6 -6
  13. package/esm5/lib/interaction/abstract-activity.js +20 -89
  14. package/esm5/lib/interaction/activity.js +3 -8
  15. package/esm5/lib/interaction/components/activity-container/activity-container.component.js +87 -27
  16. package/esm5/lib/interaction/components/activity-outlet/activity-outlet.component.js +10 -4
  17. package/esm5/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.js +2 -2
  18. package/esm5/lib/interaction/interaction-context.js +1 -1
  19. package/esm5/lib/interaction/services/dialog-interaction.service.js +5 -5
  20. package/fesm2015/coolon-angular-ui-powerups.js +112 -110
  21. package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
  22. package/fesm5/coolon-angular-ui-powerups.js +119 -126
  23. package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
  24. package/lib/interaction/abstract-activity.d.ts +5 -8
  25. package/lib/interaction/activity.d.ts +2 -2
  26. package/lib/interaction/components/activity-container/activity-container.component.d.ts +5 -4
  27. package/lib/interaction/components/activity-outlet/activity-outlet.component.d.ts +2 -2
  28. package/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.d.ts +1 -1
  29. package/lib/interaction/interaction-context.d.ts +1 -1
  30. package/lib/interaction/services/dialog-interaction.service.d.ts +3 -3
  31. package/package.json +1 -1
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/core'), require('@angular/forms'), require('@angular/material'), require('@angular/material/tabs'), require('@angular/platform-browser/animations'), require('@coolon/pectin'), require('@angular/cdk/portal'), require('@coolon/pectin/lib/promise/deferred.class'), require('@angular/material/dialog'), require('@coolon/typescript-utilities'), require('@angular/material/icon'), require('@angular/material/list'), require('@angular/material/tooltip'), require('@angular/router'), require('@typescript-plus/fast-memoize-decorator/dist/src'), require('@typescript-plus/fast-memoize-decorator'), require('reflect-metadata'), require('lodash'), require('@angular/animations'), require('resize-observer-polyfill')) :
3
- typeof define === 'function' && define.amd ? define('@coolon/angular-ui-powerups', ['exports', '@angular/common', '@angular/core', '@angular/forms', '@angular/material', '@angular/material/tabs', '@angular/platform-browser/animations', '@coolon/pectin', '@angular/cdk/portal', '@coolon/pectin/lib/promise/deferred.class', '@angular/material/dialog', '@coolon/typescript-utilities', '@angular/material/icon', '@angular/material/list', '@angular/material/tooltip', '@angular/router', '@typescript-plus/fast-memoize-decorator/dist/src', '@typescript-plus/fast-memoize-decorator', 'reflect-metadata', 'lodash', '@angular/animations', 'resize-observer-polyfill'], factory) :
4
- (global = global || self, factory((global.coolon = global.coolon || {}, global.coolon['angular-ui-powerups'] = {}), global.ng.common, global.ng.core, global.ng.forms, global.ng.material, global.ng.material.tabs, global.ng.platformBrowser.animations, global.pectin, global.ng.cdk.portal, global.deferred_class, global.ng.material.dialog, global.typescriptUtilities, global.ng.material.icon, global.ng.material.list, global.ng.material.tooltip, global.ng.router, global.src, global.fastMemoizeDecorator, null, global.___default, global.ng.animations, global.ResizeObserver));
5
- }(this, function (exports, common, core, forms, material, tabs, animations, pectin, portal, deferred_class, dialog, typescriptUtilities, icon, list, tooltip, router, src, fastMemoizeDecorator, reflectMetadata, ___default, animations$1, ResizeObserver) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/core'), require('@angular/forms'), require('@angular/material'), require('@angular/material/tabs'), require('@angular/platform-browser/animations'), require('@coolon/pectin'), require('@angular/cdk/portal'), require('@coolon/typescript-utilities'), require('@angular/material/dialog'), require('@angular/material/icon'), require('@angular/material/list'), require('@angular/material/tooltip'), require('@angular/router'), require('@typescript-plus/fast-memoize-decorator/dist/src'), require('@typescript-plus/fast-memoize-decorator'), require('reflect-metadata'), require('lodash'), require('@angular/animations'), require('resize-observer-polyfill')) :
3
+ typeof define === 'function' && define.amd ? define('@coolon/angular-ui-powerups', ['exports', '@angular/common', '@angular/core', '@angular/forms', '@angular/material', '@angular/material/tabs', '@angular/platform-browser/animations', '@coolon/pectin', '@angular/cdk/portal', '@coolon/typescript-utilities', '@angular/material/dialog', '@angular/material/icon', '@angular/material/list', '@angular/material/tooltip', '@angular/router', '@typescript-plus/fast-memoize-decorator/dist/src', '@typescript-plus/fast-memoize-decorator', 'reflect-metadata', 'lodash', '@angular/animations', 'resize-observer-polyfill'], factory) :
4
+ (global = global || self, factory((global.coolon = global.coolon || {}, global.coolon['angular-ui-powerups'] = {}), global.ng.common, global.ng.core, global.ng.forms, global.ng.material, global.ng.material.tabs, global.ng.platformBrowser.animations, global.pectin, global.ng.cdk.portal, global.typescriptUtilities, global.ng.material.dialog, global.ng.material.icon, global.ng.material.list, global.ng.material.tooltip, global.ng.router, global.src, global.fastMemoizeDecorator, null, global.___default, global.ng.animations, global.ResizeObserver));
5
+ }(this, function (exports, common, core, forms, material, tabs, animations, pectin, portal, typescriptUtilities, dialog, icon, list, tooltip, router, src, fastMemoizeDecorator, reflectMetadata, ___default, animations$1, ResizeObserver) { 'use strict';
6
6
 
7
7
  var ___default__default = 'default' in ___default ? ___default['default'] : ___default;
8
8
  ResizeObserver = ResizeObserver && ResizeObserver.hasOwnProperty('default') ? ResizeObserver['default'] : ResizeObserver;
@@ -1031,15 +1031,10 @@
1031
1031
  /** @type {?} */
1032
1032
  Activity.prototype.busy;
1033
1033
  /**
1034
- * @param {?} callback
1035
- * @return {?}
1036
- */
1037
- Activity.prototype.onDone = function (callback) { };
1038
- /**
1039
- * @param {?} callback
1034
+ * @param {?} activityContext
1040
1035
  * @return {?}
1041
1036
  */
1042
- Activity.prototype.onCancel = function (callback) { };
1037
+ Activity.prototype.initialise = function (activityContext) { };
1043
1038
  }
1044
1039
 
1045
1040
  /**
@@ -1104,8 +1099,7 @@
1104
1099
  var componentFactory = this.componentFactoryResolver.resolveComponentFactory(activityContext.activityClass);
1105
1100
  this.viewContainerRef.clear();
1106
1101
  this.activityComponentRef = this.viewContainerRef.createComponent(componentFactory, 0, injector);
1107
- this.activityComponentRef.instance.onDone(activityContext.onDone);
1108
- this.activityComponentRef.instance.onCancel(activityContext.onCancel);
1102
+ this.activityComponentRef.instance.initialise(activityContext);
1109
1103
  };
1110
1104
  /**
1111
1105
  * @param {?} alert
@@ -1172,6 +1166,12 @@
1172
1166
  interactionContext: [{ type: core.Input }],
1173
1167
  activityContext: [{ type: core.Input }]
1174
1168
  };
1169
+ __decorate([
1170
+ pectin.Trace(),
1171
+ __metadata("design:type", Function),
1172
+ __metadata("design:paramtypes", [Object]),
1173
+ __metadata("design:returntype", void 0)
1174
+ ], ActivityOutletComponent.prototype, "loadActivity", null);
1175
1175
  return ActivityOutletComponent;
1176
1176
  }());
1177
1177
  if (false) {
@@ -1266,40 +1266,24 @@
1266
1266
  /**
1267
1267
  * @template D, R, E
1268
1268
  */
1269
- var /**
1270
- * @template D, R, E
1271
- */
1272
- AbstractActivity = /** @class */ (function (_super) {
1269
+ var AbstractActivity = /** @class */ (function (_super) {
1273
1270
  __extends(AbstractActivity, _super);
1274
1271
  function AbstractActivity() {
1275
1272
  var _this = _super !== null && _super.apply(this, arguments) || this;
1276
- _this._doneListeners = new pectin.EventListenerList();
1277
- _this._cancelListeners = new pectin.EventListenerList();
1278
- _this._finishListeners = new pectin.EventListenerList();
1279
1273
  _this._busyModel = new pectin.DelegatingValueModel().withDefault(false);
1280
1274
  return _this;
1281
1275
  }
1282
1276
  /**
1283
- * @param {?} callback
1284
- * @return {?}
1285
- */
1286
- AbstractActivity.prototype.onDone = /**
1287
- * @param {?} callback
1288
- * @return {?}
1289
- */
1290
- function (callback) {
1291
- this._doneListeners.add(callback);
1292
- };
1293
- /**
1294
- * @param {?} callback
1277
+ * @param {?} activityContext
1295
1278
  * @return {?}
1296
1279
  */
1297
- AbstractActivity.prototype.onCancel = /**
1298
- * @param {?} callback
1280
+ AbstractActivity.prototype.initialise = /**
1281
+ * @param {?} activityContext
1299
1282
  * @return {?}
1300
1283
  */
1301
- function (callback) {
1302
- this._cancelListeners.add(callback);
1284
+ function (activityContext) {
1285
+ typescriptUtilities.assert.isNil(this.activityContext);
1286
+ this.activityContext = activityContext;
1303
1287
  };
1304
1288
  /**
1305
1289
  * @param {?=} result
@@ -1310,17 +1294,7 @@
1310
1294
  * @return {?}
1311
1295
  */
1312
1296
  function (result) {
1313
- var _this = this;
1314
- return this._doneListeners
1315
- .fireAndWait((/**
1316
- * @param {?} l
1317
- * @return {?}
1318
- */
1319
- function (l) { return l(result); }))
1320
- .finally((/**
1321
- * @return {?}
1322
- */
1323
- function () { return _this.finalizeAndDispose(); }));
1297
+ return this.activityContext.onDone(result);
1324
1298
  };
1325
1299
  /**
1326
1300
  * @param {?=} error
@@ -1331,17 +1305,7 @@
1331
1305
  * @return {?}
1332
1306
  */
1333
1307
  function (error) {
1334
- var _this = this;
1335
- return this._cancelListeners
1336
- .fireAndWait((/**
1337
- * @param {?} l
1338
- * @return {?}
1339
- */
1340
- function (l) { return l(error); }))
1341
- .finally((/**
1342
- * @return {?}
1343
- */
1344
- function () { return _this.finalizeAndDispose(); }));
1308
+ this.activityContext.onCancel(error);
1345
1309
  };
1346
1310
  // @Trace()
1347
1311
  // @Trace()
@@ -1355,33 +1319,6 @@
1355
1319
  */
1356
1320
  function () {
1357
1321
  };
1358
- /**
1359
- * @private
1360
- * @return {?}
1361
- */
1362
- AbstractActivity.prototype.finalizeAndDispose = /**
1363
- * @private
1364
- * @return {?}
1365
- */
1366
- function () {
1367
- // this._activeModel.value = false;
1368
- this._finishListeners.fire((/**
1369
- * @param {?} l
1370
- * @return {?}
1371
- */
1372
- function (l) { return l(); }));
1373
- // this._interactionContext = null;
1374
- // this._initialized = false;
1375
- [
1376
- this._finishListeners,
1377
- this._doneListeners,
1378
- this._cancelListeners
1379
- ].forEach((/**
1380
- * @param {?} l
1381
- * @return {?}
1382
- */
1383
- function (l) { return l.dispose(); }));
1384
- };
1385
1322
  Object.defineProperty(AbstractActivity.prototype, "busy", {
1386
1323
  get: /**
1387
1324
  * @return {?}
@@ -1412,6 +1349,12 @@
1412
1349
  function () {
1413
1350
  return this._busyModel.value;
1414
1351
  };
1352
+ __decorate([
1353
+ pectin.Trace(),
1354
+ __metadata("design:type", Function),
1355
+ __metadata("design:paramtypes", [Object]),
1356
+ __metadata("design:returntype", void 0)
1357
+ ], AbstractActivity.prototype, "initialise", null);
1415
1358
  return AbstractActivity;
1416
1359
  }(DisposableComponent));
1417
1360
  if (false) {
@@ -1419,22 +1362,12 @@
1419
1362
  * @type {?}
1420
1363
  * @private
1421
1364
  */
1422
- AbstractActivity.prototype._doneListeners;
1423
- /**
1424
- * @type {?}
1425
- * @private
1426
- */
1427
- AbstractActivity.prototype._cancelListeners;
1428
- /**
1429
- * @type {?}
1430
- * @private
1431
- */
1432
- AbstractActivity.prototype._finishListeners;
1365
+ AbstractActivity.prototype._busyModel;
1433
1366
  /**
1434
1367
  * @type {?}
1435
1368
  * @private
1436
1369
  */
1437
- AbstractActivity.prototype._busyModel;
1370
+ AbstractActivity.prototype.activityContext;
1438
1371
  }
1439
1372
 
1440
1373
  /**
@@ -1506,7 +1439,7 @@
1506
1439
  ConfirmationDialogComponent.decorators = [
1507
1440
  { type: core.Component, args: [{
1508
1441
  selector: 'angular-ui-powerups-confirmation-dialog',
1509
- 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(true)\">{{confirm.ok()}}</button>\n</p>\n\n",
1442
+ 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",
1510
1443
  styles: [":host{display:block;padding:var(--angular-ui-powerups-default-padding)}.mat-dialog-actions{justify-content:flex-end}"]
1511
1444
  }] }
1512
1445
  ];
@@ -1531,8 +1464,7 @@
1531
1464
  var _this = _super.call(this) || this;
1532
1465
  _this.activityOutletTabs = new pectin.MutableListModel();
1533
1466
  _this.obsoleteTabs = [];
1534
- var _a = pectin.Dsl.disposeWith(_this), chain = _a.chain, valueOf = _a.valueOf, before = _a.before, when = _a.when, after = _a.after, observe = _a.observe, switchOn = _a.switchOn;
1535
- _this.lastActivityTab = chain(_this.activityOutletTabs).last().otherwise(_this.initialActivityOutlet);
1467
+ _this.finished = false;
1536
1468
  return _this;
1537
1469
  }
1538
1470
  /**
@@ -1559,16 +1491,38 @@
1559
1491
  };
1560
1492
  /**
1561
1493
  * @template D, R, E
1562
- * @param {?} options
1494
+ * @param {?} initialContext
1563
1495
  * @return {?}
1564
1496
  */
1565
1497
  ActivityContainerComponent.prototype.initialise = /**
1566
1498
  * @template D, R, E
1567
- * @param {?} options
1499
+ * @param {?} initialContext
1568
1500
  * @return {?}
1569
1501
  */
1570
- function (options) {
1571
- this.initialActivityOutlet = __assign({}, options, { interactionContext: this });
1502
+ function (initialContext) {
1503
+ /** @type {?} */
1504
+ var self = this;
1505
+ this.initialActivityOutletContext = {
1506
+ activityClass: initialContext.activityClass,
1507
+ activityData: initialContext.activityData,
1508
+ onDone: (/**
1509
+ * @param {?} result
1510
+ * @return {?}
1511
+ */
1512
+ function (result) {
1513
+ self.finished = true;
1514
+ return initialContext.onDone(result);
1515
+ }),
1516
+ onCancel: (/**
1517
+ * @param {?} error
1518
+ * @return {?}
1519
+ */
1520
+ function (error) {
1521
+ self.finished = true;
1522
+ return initialContext.onCancel(error);
1523
+ }),
1524
+ interactionContext: this
1525
+ };
1572
1526
  };
1573
1527
  /**
1574
1528
  * @template D, R, E
@@ -1585,23 +1539,49 @@
1585
1539
  function (activityType, data) {
1586
1540
  var _this = this;
1587
1541
  /** @type {?} */
1588
- var deferred = deferred_class.Deferred.defer();
1589
- /** @type {?} */
1590
- var context = {
1591
- interactionContext: this,
1592
- activityClass: activityType,
1593
- activityData: data,
1594
- onDone: deferred.resolve,
1595
- onCancel: deferred.reject
1596
- };
1597
- this.activityOutletTabs.push(context);
1598
- this.tabs.selectedIndex = this.activityOutletTabs.length;
1599
- return deferred.promise.finally((/**
1542
+ var self = this;
1543
+ return new Promise((/**
1544
+ * @param {?} resolve
1545
+ * @param {?} reject
1600
1546
  * @return {?}
1601
1547
  */
1602
- function () {
1603
- _this.obsoleteTabs.push(context);
1604
- _this.tabs.selectedIndex = _this.activityOutletTabs.length - 1;
1548
+ function (resolve, reject) {
1549
+ /** @type {?} */
1550
+ var context = {
1551
+ interactionContext: self,
1552
+ activityClass: activityType,
1553
+ activityData: data,
1554
+ onDone: (/**
1555
+ * @param {?} result
1556
+ * @return {?}
1557
+ */
1558
+ function (result) {
1559
+ self.obsoleteTabs.push(context);
1560
+ // animating on the next tick gives chained done's a chance to
1561
+ // finished before we start an animations
1562
+ resolve(result);
1563
+ setTimeout((/**
1564
+ * @return {?}
1565
+ */
1566
+ function () { return self.animateTabs(); }));
1567
+ }),
1568
+ onCancel: (/**
1569
+ * @param {?} error
1570
+ * @return {?}
1571
+ */
1572
+ function (error) {
1573
+ self.obsoleteTabs.push(context);
1574
+ // finished before we start an animations
1575
+ reject(error);
1576
+ // animating on the next tick gives chained done's a chance to complete before we animate
1577
+ setTimeout((/**
1578
+ * @return {?}
1579
+ */
1580
+ function () { return self.animateTabs(); }));
1581
+ })
1582
+ };
1583
+ self.activityOutletTabs.push(context);
1584
+ self.tabs.selectedIndex = _this.activityOutletTabs.length;
1605
1585
  }));
1606
1586
  };
1607
1587
  /**
@@ -1643,12 +1623,26 @@
1643
1623
  function (tab) {
1644
1624
  return !_this.obsoleteTabs.includes(tab);
1645
1625
  }));
1626
+ this.obsoleteTabs = [];
1646
1627
  this.outlets.toArray()[this.tabs.selectedIndex].notifyReady();
1647
1628
  };
1629
+ /**
1630
+ * @private
1631
+ * @return {?}
1632
+ */
1633
+ ActivityContainerComponent.prototype.animateTabs = /**
1634
+ * @private
1635
+ * @return {?}
1636
+ */
1637
+ function () {
1638
+ if (!this.finished) {
1639
+ this.tabs.selectedIndex = this.activityOutletTabs.length - this.obsoleteTabs.length;
1640
+ }
1641
+ };
1648
1642
  ActivityContainerComponent.decorators = [
1649
1643
  { type: core.Component, args: [{
1650
1644
  selector: 'angular-ui-powerups-activity-container',
1651
- template: "<mat-tab-group #tabs no-tab-header [dynamicHeight]=\"true\">\n <mat-tab>\n <angular-ui-powerups-activity-outlet [interactionContext]=\"this\"\n [activityContext]=\"initialActivityOutlet\"></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",
1645
+ 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",
1652
1646
  styles: [":host{display:block}"]
1653
1647
  }] }
1654
1648
  ];
@@ -1656,7 +1650,7 @@
1656
1650
  ActivityContainerComponent.ctorParameters = function () { return []; };
1657
1651
  ActivityContainerComponent.propDecorators = {
1658
1652
  parentInteractionContext: [{ type: core.Input }],
1659
- initialActivityOutlet: [{ type: core.Input }],
1653
+ initialActivityOutletContext: [{ type: core.Input }],
1660
1654
  tabs: [{ type: core.ViewChild, args: ['tabs', { static: true },] }],
1661
1655
  outlets: [{ type: core.ViewChildren, args: [exports.ɵv,] }]
1662
1656
  };
@@ -1666,7 +1660,7 @@
1666
1660
  /** @type {?} */
1667
1661
  exports.ɵu.prototype.parentInteractionContext;
1668
1662
  /** @type {?} */
1669
- exports.ɵu.prototype.initialActivityOutlet;
1663
+ exports.ɵu.prototype.initialActivityOutletContext;
1670
1664
  /** @type {?} */
1671
1665
  exports.ɵu.prototype.tabs;
1672
1666
  /** @type {?} */
@@ -1682,7 +1676,7 @@
1682
1676
  * @type {?}
1683
1677
  * @private
1684
1678
  */
1685
- exports.ɵu.prototype.lastActivityTab;
1679
+ exports.ɵu.prototype.finished;
1686
1680
  }
1687
1681
  (function (ActivityContainerComponent) {
1688
1682
  /**
@@ -1711,10 +1705,10 @@
1711
1705
  var DIALOG_INTERACTION_SERVICE_DEFAULTS = new core.InjectionToken('DIALOG_INTERACTION_SERVICE_DEFAULTS');
1712
1706
  var DialogInteractionService = /** @class */ (function (_super) {
1713
1707
  __extends(DialogInteractionService, _super);
1714
- function DialogInteractionService(dialogService, dialogDefaults, matDialogDefaultConfig) {
1708
+ function DialogInteractionService(dialogService, dialogServiceDefaults, matDialogDefaultConfig) {
1715
1709
  var _this = _super.call(this) || this;
1716
1710
  _this.dialogService = dialogService;
1717
- _this.dialogDefaults = dialogDefaults;
1711
+ _this.dialogServiceDefaults = dialogServiceDefaults;
1718
1712
  _this.matDialogDefaultConfig = matDialogDefaultConfig;
1719
1713
  typescriptUtilities.assert.notNil(dialogService);
1720
1714
  return _this;
@@ -1754,7 +1748,7 @@
1754
1748
  var _this = this;
1755
1749
  if (disableClose === void 0) { disableClose = true; }
1756
1750
  /** @type {?} */
1757
- var config = __assign({ autoFocus: false }, this.matDialogDefaultConfig, this.dialogDefaults, {
1751
+ var config = __assign({ autoFocus: false, hasBackdrop: true }, this.matDialogDefaultConfig, this.dialogServiceDefaults, {
1758
1752
  data: data,
1759
1753
  disableClose: disableClose,
1760
1754
  panelClass: 'dialog-interaction-service'
@@ -1838,7 +1832,7 @@
1838
1832
  */
1839
1833
  DialogInteractionService.prototype.dialogService;
1840
1834
  /** @type {?} */
1841
- DialogInteractionService.prototype.dialogDefaults;
1835
+ DialogInteractionService.prototype.dialogServiceDefaults;
1842
1836
  /** @type {?} */
1843
1837
  DialogInteractionService.prototype.matDialogDefaultConfig;
1844
1838
  }