@coolon/angular-ui-powerups 0.0.55 → 0.0.57
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 +24 -14
- 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.metadata.json +1 -1
- package/esm2015/lib/interaction/services/dialog-interaction.service.js +14 -9
- package/esm2015/lib/place/route/route-parameter-value.js +11 -4
- package/esm5/lib/interaction/services/dialog-interaction.service.js +13 -9
- package/esm5/lib/place/route/route-parameter-value.js +11 -4
- package/fesm2015/coolon-angular-ui-powerups.js +23 -12
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +22 -12
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/interaction/services/dialog-interaction.service.d.ts +3 -1
- 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('@
|
|
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', '@
|
|
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.
|
|
5
|
-
}(this, function (exports, common, core, forms, material, tabs, animations, pectin, portal, deferred_class,
|
|
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';
|
|
6
6
|
|
|
7
7
|
var ___default__default = 'default' in ___default ? ___default['default'] : ___default;
|
|
8
8
|
ResizeObserver = ResizeObserver && ResizeObserver.hasOwnProperty('default') ? ResizeObserver['default'] : ResizeObserver;
|
|
@@ -1709,9 +1709,10 @@
|
|
|
1709
1709
|
*/
|
|
1710
1710
|
var DialogInteractionService = /** @class */ (function (_super) {
|
|
1711
1711
|
__extends(DialogInteractionService, _super);
|
|
1712
|
-
function DialogInteractionService(dialogService) {
|
|
1712
|
+
function DialogInteractionService(dialogService, matDialogDefaultConfig) {
|
|
1713
1713
|
var _this = _super.call(this) || this;
|
|
1714
1714
|
_this.dialogService = dialogService;
|
|
1715
|
+
_this.matDialogDefaultConfig = matDialogDefaultConfig;
|
|
1715
1716
|
typescriptUtilities.assert.notNil(dialogService);
|
|
1716
1717
|
return _this;
|
|
1717
1718
|
}
|
|
@@ -1750,12 +1751,11 @@
|
|
|
1750
1751
|
var _this = this;
|
|
1751
1752
|
if (disableClose === void 0) { disableClose = true; }
|
|
1752
1753
|
/** @type {?} */
|
|
1753
|
-
var config = {
|
|
1754
|
+
var config = __assign({ autoFocus: false }, this.matDialogDefaultConfig, {
|
|
1754
1755
|
data: data,
|
|
1755
1756
|
disableClose: disableClose,
|
|
1756
|
-
panelClass: 'dialog-interaction-service'
|
|
1757
|
-
|
|
1758
|
-
};
|
|
1757
|
+
panelClass: 'dialog-interaction-service'
|
|
1758
|
+
});
|
|
1759
1759
|
/** @type {?} */
|
|
1760
1760
|
var matDialogRef = (/** @type {?} */ (this.dialogService.open(exports.ɵu, config)));
|
|
1761
1761
|
return new Promise((/**
|
|
@@ -1819,9 +1819,10 @@
|
|
|
1819
1819
|
];
|
|
1820
1820
|
/** @nocollapse */
|
|
1821
1821
|
DialogInteractionService.ctorParameters = function () { return [
|
|
1822
|
-
{ type: material.MatDialog }
|
|
1822
|
+
{ type: material.MatDialog },
|
|
1823
|
+
{ type: dialog.MatDialogConfig, decorators: [{ type: core.Optional }, { type: core.Inject, args: [dialog.MAT_DIALOG_DEFAULT_OPTIONS,] }] }
|
|
1823
1824
|
]; };
|
|
1824
|
-
/** @nocollapse */ DialogInteractionService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function DialogInteractionService_Factory() { return new DialogInteractionService(core.ɵɵinject(dialog.MatDialog)); }, token: DialogInteractionService, providedIn: "root" });
|
|
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" });
|
|
1825
1826
|
return DialogInteractionService;
|
|
1826
1827
|
}(InteractionContext));
|
|
1827
1828
|
if (false) {
|
|
@@ -1830,6 +1831,8 @@
|
|
|
1830
1831
|
* @private
|
|
1831
1832
|
*/
|
|
1832
1833
|
DialogInteractionService.prototype.dialogService;
|
|
1834
|
+
/** @type {?} */
|
|
1835
|
+
DialogInteractionService.prototype.matDialogDefaultConfig;
|
|
1833
1836
|
}
|
|
1834
1837
|
|
|
1835
1838
|
/**
|
|
@@ -2851,9 +2854,16 @@
|
|
|
2851
2854
|
*/
|
|
2852
2855
|
function create(def, paramMap) {
|
|
2853
2856
|
// NOTE: Using undefined is important as it triggers the isMissing flag which is used by defaultValue and remember flags
|
|
2854
|
-
|
|
2855
|
-
new RouteParameterValue.Array(def, paramMap.has(def.name) ? paramMap.getAll(def.name) : undefined)
|
|
2856
|
-
|
|
2857
|
+
if (def.isArray) {
|
|
2858
|
+
return new RouteParameterValue.Array(def, paramMap.has(def.name) ? paramMap.getAll(def.name) : undefined);
|
|
2859
|
+
}
|
|
2860
|
+
else {
|
|
2861
|
+
/** @type {?} */
|
|
2862
|
+
var rawValue = paramMap.has(def.name) ? paramMap.get(def.name) : undefined;
|
|
2863
|
+
// route ids are always present so we have to check if it's empty to flag it as missing..
|
|
2864
|
+
rawValue = def.isRouteId && ___default__default.isEmpty(rawValue) ? undefined : rawValue;
|
|
2865
|
+
return new RouteParameterValue.Scalar(def, rawValue);
|
|
2866
|
+
}
|
|
2857
2867
|
}
|
|
2858
2868
|
RouteParameterValue.create = create;
|
|
2859
2869
|
/**
|