@coolon/angular-ui-powerups 0.0.56 → 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.
- package/bundles/coolon-angular-ui-powerups.umd.js +26 -13
- 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.d.ts +2 -2
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/coolon-angular-ui-powerups.js +4 -4
- package/esm2015/index.js +2 -2
- package/esm2015/lib/interaction/index.js +2 -2
- package/esm2015/lib/interaction/services/dialog-interaction.service.js +23 -9
- package/esm2015/public_api.js +2 -2
- package/esm5/coolon-angular-ui-powerups.js +4 -4
- package/esm5/index.js +2 -2
- package/esm5/lib/interaction/index.js +2 -2
- package/esm5/lib/interaction/services/dialog-interaction.service.js +21 -9
- package/esm5/public_api.js +2 -2
- package/fesm2015/coolon-angular-ui-powerups.js +23 -10
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +21 -10
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/interaction/services/dialog-interaction.service.d.ts +6 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DOCUMENT, CommonModule } from '@angular/common';
|
|
2
|
-
import { EventEmitter, Input, Output, HostListener, Component, Directive, ElementRef, Inject, NgZone, InjectionToken, Injector, ComponentFactoryResolver, ViewContainerRef, ViewChild, ViewChildren, Injectable, ɵɵdefineInjectable, ɵɵinject, NgModule, HostBinding, INJECTOR } from '@angular/core';
|
|
2
|
+
import { EventEmitter, Input, Output, HostListener, Component, Directive, ElementRef, Inject, NgZone, InjectionToken, Injector, ComponentFactoryResolver, ViewContainerRef, ViewChild, ViewChildren, Injectable, Optional, ɵɵdefineInjectable, ɵɵinject, NgModule, HostBinding, INJECTOR } from '@angular/core';
|
|
3
3
|
import { FormsModule } from '@angular/forms';
|
|
4
4
|
import { MatDialog, MatButtonModule, MatDialogModule, MatTabsModule, MatProgressSpinnerModule, MatInputModule, MatFormFieldModule, MatSelectModule } from '@angular/material';
|
|
5
5
|
import { MatTabsModule as MatTabsModule$1 } from '@angular/material/tabs';
|
|
@@ -8,8 +8,8 @@ import { __extends, __decorate, __metadata, __assign, __awaiter, __generator } f
|
|
|
8
8
|
import { GarbageCollector, DelegatingFormValueModel, UseDelegate, ValueModel, ListModel, StoreInListModel, assert, UnaryCommand, lang, Dsl, Logger, EventListenerList, DelegatingValueModel, MutableListModel, StoreInValueModel, Binding, MutableValueModel, Guard, OptionsHelper, ValueHolder } from '@coolon/pectin';
|
|
9
9
|
import { PortalModule } from '@angular/cdk/portal';
|
|
10
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';
|
|
11
12
|
import { assert as assert$1, Klass, Opts } from '@coolon/typescript-utilities';
|
|
12
|
-
import { MatDialog as MatDialog$1 } from '@angular/material/dialog';
|
|
13
13
|
import { MatIconModule } from '@angular/material/icon';
|
|
14
14
|
import { MatListModule } from '@angular/material/list';
|
|
15
15
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
@@ -1524,11 +1524,15 @@ 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) {
|
|
1531
|
+
function DialogInteractionService(dialogService, dialogDefaults, matDialogDefaultConfig) {
|
|
1530
1532
|
var _this = _super.call(this) || this;
|
|
1531
1533
|
_this.dialogService = dialogService;
|
|
1534
|
+
_this.dialogDefaults = dialogDefaults;
|
|
1535
|
+
_this.matDialogDefaultConfig = matDialogDefaultConfig;
|
|
1532
1536
|
assert$1.notNil(dialogService);
|
|
1533
1537
|
return _this;
|
|
1534
1538
|
}
|
|
@@ -1567,12 +1571,11 @@ var DialogInteractionService = /** @class */ (function (_super) {
|
|
|
1567
1571
|
var _this = this;
|
|
1568
1572
|
if (disableClose === void 0) { disableClose = true; }
|
|
1569
1573
|
/** @type {?} */
|
|
1570
|
-
var config = {
|
|
1574
|
+
var config = __assign({ autoFocus: false }, this.matDialogDefaultConfig, this.dialogDefaults, {
|
|
1571
1575
|
data: data,
|
|
1572
1576
|
disableClose: disableClose,
|
|
1573
|
-
panelClass: 'dialog-interaction-service'
|
|
1574
|
-
|
|
1575
|
-
};
|
|
1577
|
+
panelClass: 'dialog-interaction-service'
|
|
1578
|
+
});
|
|
1576
1579
|
/** @type {?} */
|
|
1577
1580
|
var matDialogRef = (/** @type {?} */ (this.dialogService.open(ActivityContainerComponent, config)));
|
|
1578
1581
|
return new Promise((/**
|
|
@@ -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
|
}
|
|
@@ -1636,9 +1641,11 @@ var DialogInteractionService = /** @class */ (function (_super) {
|
|
|
1636
1641
|
];
|
|
1637
1642
|
/** @nocollapse */
|
|
1638
1643
|
DialogInteractionService.ctorParameters = function () { return [
|
|
1639
|
-
{ type: MatDialog }
|
|
1644
|
+
{ type: MatDialog },
|
|
1645
|
+
{ type: MatDialogConfig, decorators: [{ type: Optional }, { type: Inject, args: [DIALOG_INTERACTION_SERVICE_DEFAULTS,] }] },
|
|
1646
|
+
{ type: MatDialogConfig, decorators: [{ type: Optional }, { type: Inject, args: [MAT_DIALOG_DEFAULT_OPTIONS,] }] }
|
|
1640
1647
|
]; };
|
|
1641
|
-
/** @nocollapse */ DialogInteractionService.ngInjectableDef = ɵɵdefineInjectable({ factory: function DialogInteractionService_Factory() { return new DialogInteractionService(ɵɵinject(MatDialog$1)); }, 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" });
|
|
1642
1649
|
return DialogInteractionService;
|
|
1643
1650
|
}(InteractionContext));
|
|
1644
1651
|
if (false) {
|
|
@@ -1647,6 +1654,10 @@ if (false) {
|
|
|
1647
1654
|
* @private
|
|
1648
1655
|
*/
|
|
1649
1656
|
DialogInteractionService.prototype.dialogService;
|
|
1657
|
+
/** @type {?} */
|
|
1658
|
+
DialogInteractionService.prototype.dialogDefaults;
|
|
1659
|
+
/** @type {?} */
|
|
1660
|
+
DialogInteractionService.prototype.matDialogDefaultConfig;
|
|
1650
1661
|
}
|
|
1651
1662
|
|
|
1652
1663
|
/**
|
|
@@ -4594,5 +4605,5 @@ var ParameterType;
|
|
|
4594
4605
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4595
4606
|
*/
|
|
4596
4607
|
|
|
4597
|
-
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,
|
|
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 };
|
|
4598
4609
|
//# sourceMappingURL=coolon-angular-ui-powerups.js.map
|