@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.
@@ -1524,11 +1524,14 @@ if (false) {
1524
1524
  * @fileoverview added by tsickle
1525
1525
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1526
1526
  */
1527
+ /** @type {?} */
1528
+ var DIALOG_INTERACTION_SERVICE_DEFAULTS = new InjectionToken('DIALOG_INTERACTION_SERVICE_DEFAULTS');
1527
1529
  var DialogInteractionService = /** @class */ (function (_super) {
1528
1530
  __extends(DialogInteractionService, _super);
1529
- function DialogInteractionService(dialogService, matDialogDefaultConfig) {
1531
+ function DialogInteractionService(dialogService, dialogDefaults, matDialogDefaultConfig) {
1530
1532
  var _this = _super.call(this) || this;
1531
1533
  _this.dialogService = dialogService;
1534
+ _this.dialogDefaults = dialogDefaults;
1532
1535
  _this.matDialogDefaultConfig = matDialogDefaultConfig;
1533
1536
  assert$1.notNil(dialogService);
1534
1537
  return _this;
@@ -1568,7 +1571,7 @@ var DialogInteractionService = /** @class */ (function (_super) {
1568
1571
  var _this = this;
1569
1572
  if (disableClose === void 0) { disableClose = true; }
1570
1573
  /** @type {?} */
1571
- var config = __assign({ autoFocus: false }, this.matDialogDefaultConfig, {
1574
+ var config = __assign({ autoFocus: false }, this.matDialogDefaultConfig, this.dialogDefaults, {
1572
1575
  data: data,
1573
1576
  disableClose: disableClose,
1574
1577
  panelClass: 'dialog-interaction-service'
@@ -1592,6 +1595,7 @@ var DialogInteractionService = /** @class */ (function (_super) {
1592
1595
  * @return {?}
1593
1596
  */
1594
1597
  function (result) {
1598
+ // TODO: should I be calling resolve after close?
1595
1599
  resolve(result);
1596
1600
  matDialogRef.close(result);
1597
1601
  },
@@ -1600,6 +1604,7 @@ var DialogInteractionService = /** @class */ (function (_super) {
1600
1604
  * @return {?}
1601
1605
  */
1602
1606
  function (error) {
1607
+ // TODO: should I be calling reject after close?
1603
1608
  reject(error);
1604
1609
  matDialogRef.close(error);
1605
1610
  }
@@ -1637,9 +1642,10 @@ var DialogInteractionService = /** @class */ (function (_super) {
1637
1642
  /** @nocollapse */
1638
1643
  DialogInteractionService.ctorParameters = function () { return [
1639
1644
  { type: MatDialog },
1645
+ { type: MatDialogConfig, decorators: [{ type: Optional }, { type: Inject, args: [DIALOG_INTERACTION_SERVICE_DEFAULTS,] }] },
1640
1646
  { type: MatDialogConfig, decorators: [{ type: Optional }, { type: Inject, args: [MAT_DIALOG_DEFAULT_OPTIONS,] }] }
1641
1647
  ]; };
1642
- /** @nocollapse */ DialogInteractionService.ngInjectableDef = ɵɵdefineInjectable({ factory: function DialogInteractionService_Factory() { return new DialogInteractionService(ɵɵinject(MatDialog$1), ɵɵinject(MAT_DIALOG_DEFAULT_OPTIONS, 8)); }, token: DialogInteractionService, providedIn: "root" });
1648
+ /** @nocollapse */ DialogInteractionService.ngInjectableDef = ɵɵdefineInjectable({ factory: function DialogInteractionService_Factory() { return new DialogInteractionService(ɵɵinject(MatDialog$1), ɵɵinject(DIALOG_INTERACTION_SERVICE_DEFAULTS, 8), ɵɵinject(MAT_DIALOG_DEFAULT_OPTIONS, 8)); }, token: DialogInteractionService, providedIn: "root" });
1643
1649
  return DialogInteractionService;
1644
1650
  }(InteractionContext));
1645
1651
  if (false) {
@@ -1649,6 +1655,8 @@ if (false) {
1649
1655
  */
1650
1656
  DialogInteractionService.prototype.dialogService;
1651
1657
  /** @type {?} */
1658
+ DialogInteractionService.prototype.dialogDefaults;
1659
+ /** @type {?} */
1652
1660
  DialogInteractionService.prototype.matDialogDefaultConfig;
1653
1661
  }
1654
1662
 
@@ -4597,5 +4605,5 @@ var ParameterType;
4597
4605
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4598
4606
  */
4599
4607
 
4600
- export { ACTIVITY_DATA, AbstractActivity, AbstractInputComponent, AbstractPlaceNavigationComponent, ActivityContainerComponent, ActivityOutletComponent, AlertDialogComponent, AngularUiPowerupsModule, Bounds, BusyOverlayComponent, CommandDirective, ConfirmationDialogComponent, DEFINITION_META_DATA_KEY, DialogInteractionService, Dimension, DisposableComponent, EmptyStateComponent, FocusBindingDirective, INTERACTION_CONTEXT, InteractionContext, InteractionModule, LEFT_RIGHT_PLACE_ANIMATION, LeavePlaceGuard, ListPlaceNavComponent, NumberInputComponent, ParameterDefinition, ParameterSnapshot, ParameterType, PasswordInputComponent, Place, PlaceComponent, PlaceDefinition, PlaceHistory, PlaceModule, PlaceOutletComponent, PlaceRouteGuard, PlaceRouter, Point, ROUTE_PARAMETER_LIST_KEY, ResizeAwareComponent, RouteId, RouteParameter, RouteParameterList, RouteParameterValue, SelectInputComponent, StringInputComponent, TabbedPlaceNavigationComponent, leftRightPlaceAnimation, slideDownAndUpAnimation, CommandDirective as ɵa, FocusBindingDirective as ɵb, AlertDialogComponent as ɵba, DialogInteractionService as ɵbc, InteractionContext as ɵbd, DisposableComponent as ɵc, NumberInputComponent as ɵd, AbstractInputComponent as ɵe, StringInputComponent as ɵf, PasswordInputComponent as ɵg, SelectInputComponent as ɵh, PlaceModule as ɵi, EmptyStateComponent as ɵj, BusyOverlayComponent as ɵk, PlaceOutletComponent as ɵl, leftRightPlaceAnimation as ɵm, LEFT_RIGHT_PLACE_ANIMATION as ɵn, PlaceRouter as ɵo, PlaceHistory as ɵp, TabbedPlaceNavigationComponent as ɵq, AbstractPlaceNavigationComponent as ɵr, ListPlaceNavComponent as ɵs, InteractionModule as ɵt, ActivityContainerComponent as ɵu, ActivityOutletComponent as ɵv, ConfirmationDialogComponent as ɵw, AbstractActivity as ɵx, ACTIVITY_DATA as ɵy };
4608
+ export { ACTIVITY_DATA, AbstractActivity, AbstractInputComponent, AbstractPlaceNavigationComponent, ActivityContainerComponent, ActivityOutletComponent, AlertDialogComponent, AngularUiPowerupsModule, Bounds, BusyOverlayComponent, CommandDirective, ConfirmationDialogComponent, DEFINITION_META_DATA_KEY, DIALOG_INTERACTION_SERVICE_DEFAULTS, DialogInteractionService, Dimension, DisposableComponent, EmptyStateComponent, FocusBindingDirective, INTERACTION_CONTEXT, InteractionContext, InteractionModule, LEFT_RIGHT_PLACE_ANIMATION, LeavePlaceGuard, ListPlaceNavComponent, NumberInputComponent, ParameterDefinition, ParameterSnapshot, ParameterType, PasswordInputComponent, Place, PlaceComponent, PlaceDefinition, PlaceHistory, PlaceModule, PlaceOutletComponent, PlaceRouteGuard, PlaceRouter, Point, ROUTE_PARAMETER_LIST_KEY, ResizeAwareComponent, RouteId, RouteParameter, RouteParameterList, RouteParameterValue, SelectInputComponent, StringInputComponent, TabbedPlaceNavigationComponent, leftRightPlaceAnimation, slideDownAndUpAnimation, CommandDirective as ɵa, FocusBindingDirective as ɵb, AlertDialogComponent as ɵba, DIALOG_INTERACTION_SERVICE_DEFAULTS as ɵbc, DialogInteractionService as ɵbd, InteractionContext as ɵbe, DisposableComponent as ɵc, NumberInputComponent as ɵd, AbstractInputComponent as ɵe, StringInputComponent as ɵf, PasswordInputComponent as ɵg, SelectInputComponent as ɵh, PlaceModule as ɵi, EmptyStateComponent as ɵj, BusyOverlayComponent as ɵk, PlaceOutletComponent as ɵl, leftRightPlaceAnimation as ɵm, LEFT_RIGHT_PLACE_ANIMATION as ɵn, PlaceRouter as ɵo, PlaceHistory as ɵp, TabbedPlaceNavigationComponent as ɵq, AbstractPlaceNavigationComponent as ɵr, ListPlaceNavComponent as ɵs, InteractionModule as ɵt, ActivityContainerComponent as ɵu, ActivityOutletComponent as ɵv, ConfirmationDialogComponent as ɵw, AbstractActivity as ɵx, ACTIVITY_DATA as ɵy };
4601
4609
  //# sourceMappingURL=coolon-angular-ui-powerups.js.map