@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.
- package/bundles/coolon-angular-ui-powerups.umd.js +15 -5
- 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 +14 -5
- 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 +13 -5
- package/esm5/public_api.js +2 -2
- package/fesm2015/coolon-angular-ui-powerups.js +13 -4
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +12 -4
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/interaction/services/dialog-interaction.service.d.ts +5 -2
- package/package.json +1 -1
|
@@ -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 =
|
|
4810
|
-
exports.ɵbd =
|
|
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;
|