@coolon/angular-ui-powerups 0.0.57 → 0.0.58

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.
@@ -1707,11 +1707,14 @@
1707
1707
  * @fileoverview added by tsickle
1708
1708
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1709
1709
  */
1710
+ /** @type {?} */
1711
+ var DIALOG_INTERACTION_SERVICE_DEFAULTS = new core.InjectionToken('DIALOG_INTERACTION_SERVICE_DEFAULTS');
1710
1712
  var DialogInteractionService = /** @class */ (function (_super) {
1711
1713
  __extends(DialogInteractionService, _super);
1712
- function DialogInteractionService(dialogService, matDialogDefaultConfig) {
1714
+ function DialogInteractionService(dialogService, dialogDefaults, matDialogDefaultConfig) {
1713
1715
  var _this = _super.call(this) || this;
1714
1716
  _this.dialogService = dialogService;
1717
+ _this.dialogDefaults = dialogDefaults;
1715
1718
  _this.matDialogDefaultConfig = matDialogDefaultConfig;
1716
1719
  typescriptUtilities.assert.notNil(dialogService);
1717
1720
  return _this;
@@ -1751,7 +1754,7 @@
1751
1754
  var _this = this;
1752
1755
  if (disableClose === void 0) { disableClose = true; }
1753
1756
  /** @type {?} */
1754
- var config = __assign({ autoFocus: false }, this.matDialogDefaultConfig, {
1757
+ var config = __assign({ autoFocus: false }, this.matDialogDefaultConfig, this.dialogDefaults, {
1755
1758
  data: data,
1756
1759
  disableClose: disableClose,
1757
1760
  panelClass: 'dialog-interaction-service'
@@ -1775,6 +1778,7 @@
1775
1778
  * @return {?}
1776
1779
  */
1777
1780
  function (result) {
1781
+ // TODO: should I be calling resolve after close?
1778
1782
  resolve(result);
1779
1783
  matDialogRef.close(result);
1780
1784
  },
@@ -1783,6 +1787,7 @@
1783
1787
  * @return {?}
1784
1788
  */
1785
1789
  function (error) {
1790
+ // TODO: should I be calling reject after close?
1786
1791
  reject(error);
1787
1792
  matDialogRef.close(error);
1788
1793
  }
@@ -1820,9 +1825,10 @@
1820
1825
  /** @nocollapse */
1821
1826
  DialogInteractionService.ctorParameters = function () { return [
1822
1827
  { type: material.MatDialog },
1828
+ { type: dialog.MatDialogConfig, decorators: [{ type: core.Optional }, { type: core.Inject, args: [DIALOG_INTERACTION_SERVICE_DEFAULTS,] }] },
1823
1829
  { type: dialog.MatDialogConfig, decorators: [{ type: core.Optional }, { type: core.Inject, args: [dialog.MAT_DIALOG_DEFAULT_OPTIONS,] }] }
1824
1830
  ]; };
1825
- /** @nocollapse */ DialogInteractionService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function DialogInteractionService_Factory() { return new DialogInteractionService(core.ɵɵinject(dialog.MatDialog), core.ɵɵinject(dialog.MAT_DIALOG_DEFAULT_OPTIONS, 8)); }, token: DialogInteractionService, providedIn: "root" });
1831
+ /** @nocollapse */ DialogInteractionService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function DialogInteractionService_Factory() { return new DialogInteractionService(core.ɵɵinject(dialog.MatDialog), core.ɵɵinject(DIALOG_INTERACTION_SERVICE_DEFAULTS, 8), core.ɵɵinject(dialog.MAT_DIALOG_DEFAULT_OPTIONS, 8)); }, token: DialogInteractionService, providedIn: "root" });
1826
1832
  return DialogInteractionService;
1827
1833
  }(InteractionContext));
1828
1834
  if (false) {
@@ -1832,6 +1838,8 @@
1832
1838
  */
1833
1839
  DialogInteractionService.prototype.dialogService;
1834
1840
  /** @type {?} */
1841
+ DialogInteractionService.prototype.dialogDefaults;
1842
+ /** @type {?} */
1835
1843
  DialogInteractionService.prototype.matDialogDefaultConfig;
1836
1844
  }
1837
1845
 
@@ -4772,6 +4780,7 @@
4772
4780
  exports.CommandDirective = CommandDirective;
4773
4781
  exports.ConfirmationDialogComponent = ConfirmationDialogComponent;
4774
4782
  exports.DEFINITION_META_DATA_KEY = DEFINITION_META_DATA_KEY;
4783
+ exports.DIALOG_INTERACTION_SERVICE_DEFAULTS = DIALOG_INTERACTION_SERVICE_DEFAULTS;
4775
4784
  exports.DialogInteractionService = DialogInteractionService;
4776
4785
  exports.Dimension = Dimension;
4777
4786
  exports.DisposableComponent = DisposableComponent;
@@ -4806,8 +4815,9 @@
4806
4815
  exports.ɵa = CommandDirective;
4807
4816
  exports.ɵb = FocusBindingDirective;
4808
4817
  exports.ɵba = AlertDialogComponent;
4809
- exports.ɵbc = DialogInteractionService;
4810
- exports.ɵbd = InteractionContext;
4818
+ exports.ɵbc = DIALOG_INTERACTION_SERVICE_DEFAULTS;
4819
+ exports.ɵbd = DialogInteractionService;
4820
+ exports.ɵbe = InteractionContext;
4811
4821
  exports.ɵc = DisposableComponent;
4812
4822
  exports.ɵd = NumberInputComponent;
4813
4823
  exports.ɵe = AbstractInputComponent;