@coolon/angular-ui-powerups 0.0.54 → 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.
@@ -5,7 +5,7 @@ import { MatDialog, MatButtonModule, MatDialogModule, MatTabsModule, MatProgress
5
5
  import { MatTabsModule as MatTabsModule$1 } from '@angular/material/tabs';
6
6
  import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
7
7
  import { __extends, __decorate, __metadata, __assign, __awaiter, __generator } from 'tslib';
8
- import { GarbageCollector, DelegatingFormValueModel, UseDelegate, ValueModel, ListModel, StoreInListModel, assert, UnaryCommand, lang, Dsl, Logger, EventListenerList, DelegatingValueModel, MutableListModel, StoreInValueModel, Binding, Trace, MutableValueModel, Guard, OptionsHelper, ValueHolder } from '@coolon/pectin';
8
+ import { GarbageCollector, DelegatingFormValueModel, UseDelegate, ValueModel, ListModel, StoreInListModel, assert, UnaryCommand, lang, Dsl, Logger, EventListenerList, DelegatingValueModel, MutableListModel, StoreInValueModel, Binding, MutableValueModel, Guard, OptionsHelper, ValueHolder } from '@coolon/pectin';
9
9
  import { PortalModule } from '@angular/cdk/portal';
10
10
  import { Deferred } from '@coolon/pectin/lib/promise/deferred.class';
11
11
  import { assert as assert$1, Klass, Opts } from '@coolon/typescript-utilities';
@@ -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
- return def.isArray ?
2672
- new RouteParameterValue.Array(def, paramMap.has(def.name) ? paramMap.getAll(def.name) : undefined) :
2673
- new RouteParameterValue.Scalar(def, paramMap.has(def.name) ? paramMap.get(def.name) : undefined);
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
  /**
@@ -3135,12 +3142,6 @@ var ParameterSnapshot = /** @class */ (function () {
3135
3142
  __metadata("design:paramtypes", []),
3136
3143
  __metadata("design:returntype", Array)
3137
3144
  ], ParameterSnapshot.prototype, "getRouteParameters", null);
3138
- __decorate([
3139
- Trace(),
3140
- __metadata("design:type", Function),
3141
- __metadata("design:paramtypes", []),
3142
- __metadata("design:returntype", void 0)
3143
- ], ParameterSnapshot.prototype, "getFormattedParameters", null);
3144
3145
  return ParameterSnapshot;
3145
3146
  }());
3146
3147
  if (false) {