@coolon/angular-ui-powerups 12.0.0-alpha.1 → 12.0.0-alpha.3

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.
Files changed (34) hide show
  1. package/bundles/coolon-angular-ui-powerups.umd.js +20 -23
  2. package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
  3. package/coolon-angular-ui-powerups.metadata.json +1 -1
  4. package/esm2015/lib/place/exports.js +1 -1
  5. package/esm2015/lib/place/exports.js.map +1 -1
  6. package/esm2015/lib/place/exports.metadata.json +1 -1
  7. package/esm2015/lib/place/navigation/session/event-cleanup/wait-until-link-triggered-navigation-interaction-cancelation-type-determined.js +3 -15
  8. package/esm2015/lib/place/navigation/session/event-cleanup/wait-until-link-triggered-navigation-interaction-cancelation-type-determined.js.map +1 -1
  9. package/esm2015/lib/place/navigation/session/event-cleanup/wait-until-link-triggered-navigation-interaction-cancelation-type-determined.metadata.json +1 -1
  10. package/esm2015/lib/place/place-component.js.map +1 -1
  11. package/esm2015/lib/place/place-definition.js +1 -1
  12. package/esm2015/lib/place/place-definition.js.map +1 -1
  13. package/esm2015/lib/place/place-definition.metadata.json +1 -1
  14. package/esm2015/lib/place/route/parameter-decorators.js +19 -12
  15. package/esm2015/lib/place/route/parameter-decorators.js.map +1 -1
  16. package/esm2015/lib/place/route/parameter-decorators.metadata.json +1 -1
  17. package/esm2015/lib/place/route/{parameter-definition.class.js → parameter-definition.js} +1 -1
  18. package/esm2015/lib/place/route/parameter-definition.js.map +1 -0
  19. package/esm2015/lib/place/route/parameter-snapshot.js.map +1 -1
  20. package/esm2015/lib/place/visit.js.map +1 -1
  21. package/fesm2015/coolon-angular-ui-powerups.js +22 -25
  22. package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
  23. package/lib/place/exports.d.ts +1 -1
  24. package/lib/place/place-component.d.ts +1 -1
  25. package/lib/place/place-definition.d.ts +1 -1
  26. package/lib/place/route/parameter-snapshot.d.ts +1 -1
  27. package/lib/place/visit.d.ts +1 -1
  28. package/package.json +2 -2
  29. package/schematics/activity/templates/component/__name@dasherize__.component.html.template +5 -1
  30. package/schematics/activity/templates/component/__name@dasherize__.component.scss.template +0 -1
  31. package/schematics/activity/templates/component/__name@dasherize__.component.ts.template +7 -0
  32. package/esm2015/lib/place/route/parameter-definition.class.js.map +0 -1
  33. /package/esm2015/lib/place/route/{parameter-definition.class.metadata.json → parameter-definition.metadata.json} +0 -0
  34. /package/lib/place/route/{parameter-definition.class.d.ts → parameter-definition.d.ts} +0 -0
@@ -7192,9 +7192,11 @@
7192
7192
  _this.debugPropertyKeys = ['idle', 'startingUrl', 'clickedLinkUrl', 'firstCancelEventUrl', 'clickedLinkMatchedBackButtonUrl', 'popStateEventUrl'];
7193
7193
  return _this;
7194
7194
  }
7195
+ // @Trace()
7195
7196
  WaitUntilLinkTriggeredNavigationInteractionCancellationTypeDetermined.prototype.onRouterStarted = function (event) {
7196
7197
  this.ignore(event);
7197
7198
  };
7199
+ // @Trace()
7198
7200
  WaitUntilLinkTriggeredNavigationInteractionCancellationTypeDetermined.prototype.onRouterCancelled = function (event) {
7199
7201
  if (event.url === this.clickedLinkUrl) {
7200
7202
  this.context.transitionTo(new WaitForLinkSameAsBackToPlayOut(this.context, this.startingUrl, this.clickedLinkUrl));
@@ -7212,18 +7214,6 @@
7212
7214
  };
7213
7215
  return WaitUntilLinkTriggeredNavigationInteractionCancellationTypeDetermined;
7214
7216
  }(EventCleanUpSession));
7215
- __decorate([
7216
- pectin.Trace(),
7217
- __metadata("design:type", Function),
7218
- __metadata("design:paramtypes", [i1$1.NavigationStart]),
7219
- __metadata("design:returntype", void 0)
7220
- ], WaitUntilLinkTriggeredNavigationInteractionCancellationTypeDetermined.prototype, "onRouterStarted", null);
7221
- __decorate([
7222
- pectin.Trace(),
7223
- __metadata("design:type", Function),
7224
- __metadata("design:paramtypes", [i1$1.NavigationCancel]),
7225
- __metadata("design:returntype", void 0)
7226
- ], WaitUntilLinkTriggeredNavigationInteractionCancellationTypeDetermined.prototype, "onRouterCancelled", null);
7227
7217
  var WaitForLinkSameAsBackToPlayOut = /** @class */ (function (_super) {
7228
7218
  __extends(WaitForLinkSameAsBackToPlayOut, _super);
7229
7219
  function WaitForLinkSameAsBackToPlayOut(context, startingUrl, clickedLinkUrl) {
@@ -9268,18 +9258,25 @@
9268
9258
  Formatter.BOOLEAN = new BooleanType();
9269
9259
  })(exports.Formatter || (exports.Formatter = {}));
9270
9260
 
9271
- function installMechanics(prototype, propertyKey, backingModel, tagPrefix, isEmpty) {
9272
- var mechanics = {
9273
- backingModel: backingModel,
9274
- binding: null
9275
- };
9276
- var tag = tagPrefix + "(" + prototype.constructor.name + "." + propertyKey.toString() + ")";
9277
- pectin.DebugContext.getOrCreate(mechanics.backingModel).tag(tag);
9261
+ function installMechanics(prototype, propertyKey, backingModelFactory, tagPrefix, isEmpty) {
9262
+ function getMechanics(instance, propertyName) {
9263
+ var key = "__mechanics_" + propertyName.toString();
9264
+ if (!instance[key]) {
9265
+ instance[key] = {
9266
+ backingModel: backingModelFactory(),
9267
+ binding: null
9268
+ };
9269
+ var tag = tagPrefix + "(" + prototype.constructor.name + "." + propertyKey.toString() + ")";
9270
+ pectin.DebugContext.getOrCreate(instance[key].backingModel).tag(tag);
9271
+ }
9272
+ return instance[key];
9273
+ }
9278
9274
  Object.defineProperty(prototype, propertyKey, {
9279
9275
  get: function () {
9280
- return mechanics.backingModel;
9276
+ return getMechanics(this, propertyKey).backingModel;
9281
9277
  },
9282
9278
  set: function (userModel) {
9279
+ var mechanics = getMechanics(this, propertyKey);
9283
9280
  // This handles the scenario where we want to push an existing value model (such as a form model)
9284
9281
  // to and from the route.
9285
9282
  if (mechanics.binding) {
@@ -9308,7 +9305,7 @@
9308
9305
  return function (prototype, propertyKey) {
9309
9306
  var param = new exports.ParameterDefinition.RouteId(propertyKey.toString(), options, type);
9310
9307
  typescriptUtilities.Klass.get(prototype).addToOwnMetadataList(ROUTE_PARAMETER_LIST_KEY, param);
9311
- installMechanics(prototype, propertyKey, new pectin.MutableValueModel(), '@RouteId', function (m) { return m.query().isNil(); });
9308
+ installMechanics(prototype, propertyKey, function () { return new pectin.MutableValueModel(); }, '@RouteId', function (m) { return m.query().isNil(); });
9312
9309
  };
9313
9310
  }
9314
9311
  function VisitParameter(options) {
@@ -9316,7 +9313,7 @@
9316
9313
  return function (prototype, propertyKey) {
9317
9314
  var param = new exports.ParameterDefinition.ValueParameter(propertyKey.toString(), options, opts.getOptional('storeInUrl', null));
9318
9315
  typescriptUtilities.Klass.get(prototype).addToOwnMetadataList(ROUTE_PARAMETER_LIST_KEY, param);
9319
- installMechanics(prototype, propertyKey, new pectin.MutableValueModel(), '@VisitParameter', function (m) { return m.query().isNil(); });
9316
+ installMechanics(prototype, propertyKey, function () { return new pectin.MutableValueModel(); }, '@VisitParameter', function (m) { return m.query().isNil(); });
9320
9317
  };
9321
9318
  }
9322
9319
  function VisitParameterList(options) {
@@ -9324,7 +9321,7 @@
9324
9321
  return function (prototype, propertyKey) {
9325
9322
  var param = new exports.ParameterDefinition.ArrayParameter(propertyKey.toString(), options, opts.getOptional('storeInUrl', null));
9326
9323
  typescriptUtilities.Klass.get(prototype).addToOwnMetadataList(ROUTE_PARAMETER_LIST_KEY, param);
9327
- installMechanics(prototype, propertyKey, new pectin.MutableListModel(), '@VisitParameterList', function (m) { return m.query().isEmpty(); });
9324
+ installMechanics(prototype, propertyKey, function () { return new pectin.MutableListModel(); }, '@VisitParameterList', function (m) { return m.query().isEmpty(); });
9328
9325
  };
9329
9326
  }
9330
9327