@mediusinc/mng-commons 0.21.0 → 0.21.1
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/esm2020/lib/pipes/parametrize.pipe.mjs +5 -5
- package/esm2020/lib/services/action-executor.service.mjs +1 -1
- package/fesm2015/mediusinc-mng-commons.mjs +4 -4
- package/fesm2015/mediusinc-mng-commons.mjs.map +1 -1
- package/fesm2020/mediusinc-mng-commons.mjs +4 -4
- package/fesm2020/mediusinc-mng-commons.mjs.map +1 -1
- package/lib/pipes/parametrize.pipe.d.ts +1 -1
- package/{mediusinc-mng-commons-0.21.0.tgz → mediusinc-mng-commons-0.21.1.tgz} +0 -0
- package/package.json +1 -1
- package/version-info.json +6 -6
|
@@ -6823,11 +6823,11 @@ class MngParametrizePipe {
|
|
|
6823
6823
|
}
|
|
6824
6824
|
}
|
|
6825
6825
|
transformString(s, params) {
|
|
6826
|
-
if ((s.indexOf('/') >= 0 && s.indexOf(':') >= 0) || s.startsWith(':')) {
|
|
6827
|
-
// this is
|
|
6826
|
+
if ((s.indexOf('/') >= 0 && s.indexOf(':') >= 0 && !s.startsWith('http://') && !s.startsWith('https://')) || s.startsWith(':')) {
|
|
6827
|
+
// this is router link
|
|
6828
6828
|
return s
|
|
6829
6829
|
.split('/')
|
|
6830
|
-
.map(s => this.
|
|
6830
|
+
.map(s => this.parametrizeStringAsRouterLink(s, params))
|
|
6831
6831
|
.join('/');
|
|
6832
6832
|
}
|
|
6833
6833
|
else {
|
|
@@ -6835,7 +6835,7 @@ class MngParametrizePipe {
|
|
|
6835
6835
|
return this.parametrizeString(s, params);
|
|
6836
6836
|
}
|
|
6837
6837
|
}
|
|
6838
|
-
|
|
6838
|
+
parametrizeStringAsRouterLink(s, params) {
|
|
6839
6839
|
if (s.startsWith(':')) {
|
|
6840
6840
|
const itemProperty = s.substring(1);
|
|
6841
6841
|
return this.jsonPath.transform(params, itemProperty) ?? '';
|