@coolon/angular-ui-powerups 0.0.55 → 0.0.56
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 +10 -3
- 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/route/route-parameter-value.js +11 -4
- package/esm5/lib/place/route/route-parameter-value.js +11 -4
- package/fesm2015/coolon-angular-ui-powerups.js +10 -3
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +10 -3
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/package.json +1 -1
|
@@ -2668,9 +2668,16 @@ if (false) {
|
|
|
2668
2668
|
*/
|
|
2669
2669
|
function create(def, paramMap) {
|
|
2670
2670
|
// NOTE: Using undefined is important as it triggers the isMissing flag which is used by defaultValue and remember flags
|
|
2671
|
-
|
|
2672
|
-
new RouteParameterValue.Array(def, paramMap.has(def.name) ? paramMap.getAll(def.name) : undefined)
|
|
2673
|
-
|
|
2671
|
+
if (def.isArray) {
|
|
2672
|
+
return new RouteParameterValue.Array(def, paramMap.has(def.name) ? paramMap.getAll(def.name) : undefined);
|
|
2673
|
+
}
|
|
2674
|
+
else {
|
|
2675
|
+
/** @type {?} */
|
|
2676
|
+
var rawValue = paramMap.has(def.name) ? paramMap.get(def.name) : undefined;
|
|
2677
|
+
// route ids are always present so we have to check if it's empty to flag it as missing..
|
|
2678
|
+
rawValue = def.isRouteId && ___default.isEmpty(rawValue) ? undefined : rawValue;
|
|
2679
|
+
return new RouteParameterValue.Scalar(def, rawValue);
|
|
2680
|
+
}
|
|
2674
2681
|
}
|
|
2675
2682
|
RouteParameterValue.create = create;
|
|
2676
2683
|
/**
|