@coolon/angular-ui-powerups 11.2.1 → 11.2.3
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 +5 -1
- 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/esm2015/lib/place/place.decorator.js +5 -1
- package/esm2015/lib/place/place.decorator.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +5 -1
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/place/place.decorator.d.ts +4 -0
- package/package.json +1 -1
|
@@ -8904,8 +8904,12 @@
|
|
|
8904
8904
|
|
|
8905
8905
|
function Place(options) {
|
|
8906
8906
|
return function (target) {
|
|
8907
|
+
var _a;
|
|
8907
8908
|
if (exports.PlaceComponent.isPlaceComponentConstructor(target)) {
|
|
8908
|
-
exports.PlaceComponent.injectDefinition(target, new PlaceDefinition(target, options.path, _.isNil(options.authenticate) ? true : options.authenticate,
|
|
8909
|
+
exports.PlaceComponent.injectDefinition(target, new PlaceDefinition(target, options.path, _.isNil(options.authenticate) ? true : options.authenticate, (_a = options.role) !== null && _a !== void 0 ? _a : options.roles, options.data, exports.PlaceComponent.getRouteParameters(target), (options.children || []).map(function (c) { return exports.PlaceComponent.getDefinition(c); })));
|
|
8910
|
+
if (options.roles) {
|
|
8911
|
+
console.warn(target.name + " @Place({roles: string[]}) is deprecated. Use @Place({role:any}) instead");
|
|
8912
|
+
}
|
|
8909
8913
|
}
|
|
8910
8914
|
else {
|
|
8911
8915
|
pectin.lang.illegalState(target + " must extend PlaceComponent to use the @Place decorator");
|