@coolon/angular-ui-powerups 0.0.50 → 0.0.51

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.
@@ -2667,7 +2667,10 @@
2667
2667
  /**
2668
2668
  * @template T, S
2669
2669
  */
2670
- var DefaultParameterSanitiser = /** @class */ (function () {
2670
+ var /**
2671
+ * @template T, S
2672
+ */
2673
+ DefaultParameterSanitiser = /** @class */ (function () {
2671
2674
  function DefaultParameterSanitiser(remember, defaultValue, placeHistory) {
2672
2675
  this.remember = remember;
2673
2676
  this.defaultValue = defaultValue;
@@ -2730,12 +2733,6 @@
2730
2733
  var isNil = ___default__default.isNil(value);
2731
2734
  return isNil ? true : def.isArray ? value['length'] < 1 : false;
2732
2735
  };
2733
- __decorate([
2734
- pectin.Trace(),
2735
- __metadata("design:type", Function),
2736
- __metadata("design:paramtypes", [ParameterDefinition, Object, Object]),
2737
- __metadata("design:returntype", Object)
2738
- ], DefaultParameterSanitiser.prototype, "sanitise", null);
2739
2736
  return DefaultParameterSanitiser;
2740
2737
  }());
2741
2738
  ParameterDefinition.DefaultParameterSanitiser = DefaultParameterSanitiser;
@@ -2939,6 +2936,25 @@
2939
2936
  }));
2940
2937
  return params;
2941
2938
  };
2939
+ /**
2940
+ * @return {?}
2941
+ */
2942
+ ParameterSnapshot.prototype.getAllParameters = /**
2943
+ * @return {?}
2944
+ */
2945
+ function () {
2946
+ /** @type {?} */
2947
+ var params = {};
2948
+ /** @type {?} */
2949
+ var routeIdParam = this.resolved.forEach((/**
2950
+ * @param {?} p
2951
+ * @return {?}
2952
+ */
2953
+ function (p) {
2954
+ params[p.parameterDef.name] = p.value;
2955
+ }));
2956
+ return params;
2957
+ };
2942
2958
  /**
2943
2959
  * @template T, S
2944
2960
  * @param {?} parameter
@@ -2997,7 +3013,7 @@
2997
3013
  case 4:
2998
3014
  sanitisedValue = _a.sent();
2999
3015
  if (!routeParameter.isSame(sanitisedValue)) {
3000
- result = this.replace(routeParameter.parameterDef, sanitisedValue);
3016
+ result = result.replace(routeParameter.parameterDef, sanitisedValue);
3001
3017
  }
3002
3018
  _a.label = 5;
3003
3019
  case 5:
@@ -3008,7 +3024,7 @@
3008
3024
  });
3009
3025
  });
3010
3026
  };
3011
- var _a, _b;
3027
+ var _a;
3012
3028
  __decorate([
3013
3029
  src.Memoize(),
3014
3030
  __metadata("design:type", Function),
@@ -3039,18 +3055,6 @@
3039
3055
  __metadata("design:paramtypes", []),
3040
3056
  __metadata("design:returntype", Array)
3041
3057
  ], ParameterSnapshot.prototype, "getRouteParameters", null);
3042
- __decorate([
3043
- pectin.Trace(),
3044
- __metadata("design:type", Function),
3045
- __metadata("design:paramtypes", [exports.ParameterDefinition, typeof (_b = typeof S !== "undefined" && S) === "function" ? _b : Object]),
3046
- __metadata("design:returntype", ParameterSnapshot)
3047
- ], ParameterSnapshot.prototype, "replace", null);
3048
- __decorate([
3049
- pectin.Trace(),
3050
- __metadata("design:type", Function),
3051
- __metadata("design:paramtypes", [core.Injector]),
3052
- __metadata("design:returntype", Promise)
3053
- ], ParameterSnapshot.prototype, "sanitise", null);
3054
3058
  return ParameterSnapshot;
3055
3059
  }());
3056
3060
  if (false) {
@@ -4434,7 +4438,7 @@
4434
4438
  * @return {?}
4435
4439
  */
4436
4440
  function (sanitised) {
4437
- pectin.Logger.get(_this).info("ParameterSnapshot.sanitise", { sanitised: sanitised });
4441
+ pectin.Logger.get(_this).info("ParameterSnapshot.sanitise result", sanitised.getAllParameters());
4438
4442
  if (sanitised.hasChanged(snapshot_1, true)) {
4439
4443
  return _this.placeRouter.getRedirectUrlTree(activatedRoute, sanitised);
4440
4444
  }