@coolon/angular-ui-powerups 0.0.68 → 0.0.69
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 +16 -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/esm2015/lib/place/place-definition.js +12 -2
- package/esm2015/lib/place/place-router.js +5 -4
- package/esm2015/lib/place/route/parameter-definition.class.js +2 -2
- package/esm5/lib/place/place-definition.js +12 -2
- package/esm5/lib/place/place-router.js +5 -4
- package/esm5/lib/place/route/parameter-definition.class.js +2 -2
- package/fesm2015/coolon-angular-ui-powerups.js +16 -5
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +16 -5
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/package.json +1 -1
|
@@ -2572,7 +2572,7 @@
|
|
|
2572
2572
|
* @return {?}
|
|
2573
2573
|
*/
|
|
2574
2574
|
function (visit) {
|
|
2575
|
-
return !visit.hasParameter(this.name)
|
|
2575
|
+
return !visit.hasParameter(this.name);
|
|
2576
2576
|
};
|
|
2577
2577
|
return ParameterDefinition;
|
|
2578
2578
|
}());
|
|
@@ -3039,7 +3039,17 @@
|
|
|
3039
3039
|
function (v) { return def.urlFormat.parse(v); }));
|
|
3040
3040
|
}
|
|
3041
3041
|
else {
|
|
3042
|
-
|
|
3042
|
+
/** @type {?} */
|
|
3043
|
+
var value = def.urlFormat.parse(params.get(def.name));
|
|
3044
|
+
// because our id routes redirect if the id isn't pressent we always have a id
|
|
3045
|
+
// parameter in our params. This will bugger our remember and defaultvalue sanitisation
|
|
3046
|
+
// as it'll see that the id is present (event thought its null). The sanitisation can't
|
|
3047
|
+
// check for null as that's a valid value for the id.
|
|
3048
|
+
/** @type {?} */
|
|
3049
|
+
var isEmptyRouteId = def.isRouteId && def.isEmptyValue(value);
|
|
3050
|
+
if (!isEmptyRouteId) {
|
|
3051
|
+
result[def.name] = value;
|
|
3052
|
+
}
|
|
3043
3053
|
}
|
|
3044
3054
|
}
|
|
3045
3055
|
}));
|
|
@@ -3969,6 +3979,9 @@
|
|
|
3969
3979
|
return __awaiter(this, void 0, void 0, function () {
|
|
3970
3980
|
var _this = this;
|
|
3971
3981
|
return __generator(this, function (_a) {
|
|
3982
|
+
// we have to push to history so our remember sanitisers don't pick up the previous value
|
|
3983
|
+
// when it's been cleared by the user.
|
|
3984
|
+
this.placeHistory.add(next);
|
|
3972
3985
|
// FIXME: no route id -> route id duplicates route parameters
|
|
3973
3986
|
if (next.hasRoutingChangedFrom(previous)) {
|
|
3974
3987
|
return [2 /*return*/, this.doNavigation(next, (/**
|
|
@@ -3992,9 +4005,6 @@
|
|
|
3992
4005
|
});
|
|
3993
4006
|
}))];
|
|
3994
4007
|
}
|
|
3995
|
-
else {
|
|
3996
|
-
this.placeHistory.add(next);
|
|
3997
|
-
}
|
|
3998
4008
|
return [2 /*return*/];
|
|
3999
4009
|
});
|
|
4000
4010
|
});
|
|
@@ -4026,6 +4036,7 @@
|
|
|
4026
4036
|
return [3 /*break*/, 5];
|
|
4027
4037
|
case 3:
|
|
4028
4038
|
def = visit.placeDefinition;
|
|
4039
|
+
// @see https://coolon.atlassian.net/browse/AUP-41
|
|
4029
4040
|
parameterCommands = visit.hasRouteId() ?
|
|
4030
4041
|
[def.getFormattedRouteId(visit), def.getFormattedRouteParameters(visit)] :
|
|
4031
4042
|
[def.getFormattedRouteParameters(visit)];
|