@coolon/angular-ui-powerups 1.3.5 → 1.3.7

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 (72) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/bundles/coolon-angular-ui-powerups.umd.js +123 -180
  3. package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
  4. package/bundles/coolon-angular-ui-powerups.umd.min.js +1 -1
  5. package/bundles/coolon-angular-ui-powerups.umd.min.js.map +1 -1
  6. package/coolon-angular-ui-powerups.d.ts +13 -13
  7. package/coolon-angular-ui-powerups.metadata.json +1 -1
  8. package/esm2015/coolon-angular-ui-powerups.js +13 -13
  9. package/esm2015/coolon-angular-ui-powerups.js.map +1 -1
  10. package/esm2015/coolon-angular-ui-powerups.metadata.json +1 -1
  11. package/esm2015/lib/components/components.module.ngfactory.js.map +1 -1
  12. package/esm2015/lib/components/focusable.component.js +1 -1
  13. package/esm2015/lib/components/focusable.component.js.map +1 -1
  14. package/esm2015/lib/components/forms/abstract-input.component.js.map +1 -1
  15. package/esm2015/lib/components/forms/checkbox-input/checkbox-input.component.js +1 -1
  16. package/esm2015/lib/components/forms/checkbox-input/checkbox-input.component.js.map +1 -1
  17. package/esm2015/lib/components/forms/checkbox-input/checkbox-input.component.metadata.json +1 -1
  18. package/esm2015/lib/components/forms/number-input/number-input.component.js +1 -1
  19. package/esm2015/lib/components/forms/number-input/number-input.component.js.map +1 -1
  20. package/esm2015/lib/components/forms/number-input/number-input.component.metadata.json +1 -1
  21. package/esm2015/lib/components/forms/password-input/password-input.component.js +1 -1
  22. package/esm2015/lib/components/forms/password-input/password-input.component.js.map +1 -1
  23. package/esm2015/lib/components/forms/password-input/password-input.component.metadata.json +1 -1
  24. package/esm2015/lib/components/forms/select-input/select-input.component.js +1 -1
  25. package/esm2015/lib/components/forms/select-input/select-input.component.js.map +1 -1
  26. package/esm2015/lib/components/forms/select-input/select-input.component.metadata.json +1 -1
  27. package/esm2015/lib/components/forms/string-input/string-input.component.js +1 -1
  28. package/esm2015/lib/components/forms/string-input/string-input.component.js.map +1 -1
  29. package/esm2015/lib/components/forms/string-input/string-input.component.metadata.json +1 -1
  30. package/esm2015/lib/directives/focus-binding-factory.js +2 -1
  31. package/esm2015/lib/directives/focus-binding-factory.js.map +1 -1
  32. package/esm2015/lib/directives/focus-binding.directive.js +11 -62
  33. package/esm2015/lib/directives/focus-binding.directive.js.map +1 -1
  34. package/esm2015/lib/directives/focus-binding.directive.metadata.json +1 -1
  35. package/esm2015/lib/directives/focus-binding.js +1 -0
  36. package/esm2015/lib/directives/focus-binding.js.map +1 -1
  37. package/esm2015/lib/directives/focus-binding.metadata.json +1 -1
  38. package/esm2015/lib/place/route/visit-sanitiser.js +2 -9
  39. package/esm2015/lib/place/route/visit-sanitiser.js.map +1 -1
  40. package/esm2015/lib/place/route/visit-sanitiser.metadata.json +1 -1
  41. package/esm5/coolon-angular-ui-powerups.js +13 -13
  42. package/esm5/coolon-angular-ui-powerups.js.map +1 -1
  43. package/esm5/lib/components/components.module.ngfactory.js.map +1 -1
  44. package/esm5/lib/components/focusable.component.js +1 -1
  45. package/esm5/lib/components/focusable.component.js.map +1 -1
  46. package/esm5/lib/components/forms/abstract-input.component.js.map +1 -1
  47. package/esm5/lib/components/forms/checkbox-input/checkbox-input.component.js +1 -1
  48. package/esm5/lib/components/forms/checkbox-input/checkbox-input.component.js.map +1 -1
  49. package/esm5/lib/components/forms/number-input/number-input.component.js +1 -1
  50. package/esm5/lib/components/forms/number-input/number-input.component.js.map +1 -1
  51. package/esm5/lib/components/forms/password-input/password-input.component.js +1 -1
  52. package/esm5/lib/components/forms/password-input/password-input.component.js.map +1 -1
  53. package/esm5/lib/components/forms/select-input/select-input.component.js +1 -1
  54. package/esm5/lib/components/forms/select-input/select-input.component.js.map +1 -1
  55. package/esm5/lib/components/forms/string-input/string-input.component.js +1 -1
  56. package/esm5/lib/components/forms/string-input/string-input.component.js.map +1 -1
  57. package/esm5/lib/directives/focus-binding-factory.js +2 -1
  58. package/esm5/lib/directives/focus-binding-factory.js.map +1 -1
  59. package/esm5/lib/directives/focus-binding.directive.js +11 -65
  60. package/esm5/lib/directives/focus-binding.directive.js.map +1 -1
  61. package/esm5/lib/directives/focus-binding.js +1 -0
  62. package/esm5/lib/directives/focus-binding.js.map +1 -1
  63. package/esm5/lib/place/route/visit-sanitiser.js +2 -9
  64. package/esm5/lib/place/route/visit-sanitiser.js.map +1 -1
  65. package/fesm2015/coolon-angular-ui-powerups.js +93 -147
  66. package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
  67. package/fesm5/coolon-angular-ui-powerups.js +109 -166
  68. package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
  69. package/lib/components/forms/abstract-input.component.d.ts +1 -1
  70. package/lib/directives/focus-binding-factory.d.ts +2 -2
  71. package/lib/directives/focus-binding.directive.d.ts +6 -11
  72. package/package.json +13 -5
@@ -1,6 +1,6 @@
1
1
  import { __extends, __decorate, __metadata, __param, __awaiter, __generator, __spread, __assign } from 'tslib';
2
2
  import { DOCUMENT, CommonModule, Location } from '@angular/common';
3
- import { ElementRef, Inject, Input, HostListener, Directive, NgZone, NgModule, ɵɵdefineInjectable, ɵɵinject, Injectable, Host, HostBinding, Component, EventEmitter, Output, ContentChild, TemplateRef, ChangeDetectorRef, ContentChildren, QueryList, InjectionToken, Injector, ComponentFactoryResolver, ViewContainerRef, ViewChild, ViewChildren, Optional, SkipSelf } from '@angular/core';
3
+ import { ElementRef, Inject, Input, HostListener, Directive, NgZone, ɵɵdefineInjectable, ɵɵinject, Injectable, NgModule, Host, HostBinding, Component, EventEmitter, Output, ContentChild, TemplateRef, ChangeDetectorRef, ContentChildren, QueryList, InjectionToken, Injector, ComponentFactoryResolver, ViewContainerRef, ViewChild, ViewChildren, Optional, SkipSelf } from '@angular/core';
4
4
  import { FormsModule } from '@angular/forms';
5
5
  import { MatFormFieldModule } from '@angular/material/form-field';
6
6
  import { MatInputModule } from '@angular/material/input';
@@ -152,55 +152,40 @@ var DisposableComponent = /** @class */ (function (_super) {
152
152
  return DisposableComponent;
153
153
  }(GarbageCollector));
154
154
 
155
- var FocusBindingDirective = /** @class */ (function (_super) {
156
- __extends(FocusBindingDirective, _super);
157
- function FocusBindingDirective(el, ngZone, document) {
155
+ var FocusBinding = /** @class */ (function (_super) {
156
+ __extends(FocusBinding, _super);
157
+ // TODO: update to support alternate focus mechanisms so we can interoperate with mat-checkbox
158
+ function FocusBinding(focusTargetElement, ngZone, document, focusContext) {
158
159
  var _this = _super.call(this) || this;
159
- _this.el = el;
160
+ _this.focusTargetElement = focusTargetElement;
160
161
  _this.ngZone = ngZone;
162
+ _this.focusContext = focusContext;
161
163
  // @see https://stackoverflow.com/questions/49513359/could-not-resolve-type-document-in-angular5/53715642#53715642
162
164
  _this.document = document;
165
+ // TODO: Make this also track the current enabled/disabled state.
166
+ var when = Dsl.disposeWith(_this).when;
167
+ when.valueOf(_this.focusContext.focused).changes(function (focused) {
168
+ if (focused && !_this.alreadyHasFocus()) {
169
+ _this.tryAndFocus();
170
+ }
171
+ }, { initialValue: 'triggerChangeUnlessNil' });
163
172
  return _this;
164
173
  }
165
- FocusBindingDirective.prototype.onFocusIn = function () {
166
- if (this.hasBinding()) {
167
- this.pectinFocusBinding.focusContext.notifyFocusIn();
168
- }
169
- };
170
- FocusBindingDirective.prototype.onFocusOut = function () {
171
- if (this.hasBinding()) {
172
- this.pectinFocusBinding.focusContext.notifyFocusOut();
173
- }
174
- };
175
- FocusBindingDirective.prototype.ngOnInit = function () {
176
- };
177
- FocusBindingDirective.prototype.ngAfterViewInit = function () {
178
- var _this = this;
179
- // TODO: Make this also track the current enabled/disabled state.
180
- if (this.hasBinding()) {
181
- var when = Dsl.disposeWith(this).when;
182
- when.valueOf(this.pectinFocusBinding.focusContext.focused).changes(function (focused) {
183
- if (focused && !_this.alreadyHasFocus()) {
184
- _this.tryAndFocus();
185
- }
186
- }, { initialValue: 'triggerChange' });
187
- }
188
- else {
189
- Logger.get(this).warn('pectinFocusBinding was nil');
190
- }
174
+ FocusBinding.prototype.onFocusIn = function () {
175
+ this.focusContext.notifyFocusIn();
191
176
  };
192
- FocusBindingDirective.prototype.hasBinding = function () {
193
- return !!this.pectinFocusBinding && !!this.pectinFocusBinding.focusContext;
177
+ FocusBinding.prototype.onFocusOut = function () {
178
+ this.focusContext.notifyFocusOut();
194
179
  };
195
180
  // Hook method for debugging via tracing.
196
- FocusBindingDirective.prototype.alreadyHasFocus = function () {
197
- return this.isFocused(this.focusTarget);
181
+ FocusBinding.prototype.alreadyHasFocus = function () {
182
+ return this.isElementFocused(this.focusTarget);
198
183
  };
199
184
  // Hook method for debugging via tracing.
200
- FocusBindingDirective.prototype.isFocused = function (element) {
185
+ FocusBinding.prototype.isElementFocused = function (element) {
201
186
  return this.document.activeElement === element;
202
187
  };
203
- FocusBindingDirective.prototype.tryAndFocus = function (retries) {
188
+ FocusBinding.prototype.tryAndFocus = function (retries) {
204
189
  var _this = this;
205
190
  if (retries === void 0) { retries = 5; }
206
191
  if (this.modelShouldStillHaveFocus() && this.canFocus()) {
@@ -223,29 +208,100 @@ var FocusBindingDirective = /** @class */ (function (_super) {
223
208
  }
224
209
  }
225
210
  };
226
- Object.defineProperty(FocusBindingDirective.prototype, "focusTarget", {
211
+ Object.defineProperty(FocusBinding.prototype, "focusTarget", {
227
212
  get: function () {
228
- return this.focusBindingTarget || this.el.nativeElement;
213
+ return this.focusTargetElement;
229
214
  },
230
215
  enumerable: true,
231
216
  configurable: true
232
217
  });
233
218
  // Hook method for debugging via tracing.
234
- FocusBindingDirective.prototype.modelShouldStillHaveFocus = function () {
235
- return this.hasBinding() && this.pectinFocusBinding.focusContext.focused.value;
219
+ FocusBinding.prototype.modelShouldStillHaveFocus = function () {
220
+ return this.focusContext.focused.value;
236
221
  };
237
222
  // Hook method for debugging via tracing.
238
- FocusBindingDirective.prototype.canFocus = function () {
223
+ FocusBinding.prototype.canFocus = function () {
239
224
  var dimension = this.focusTarget.getBoundingClientRect();
240
225
  var hasSize = dimension.height >= 0 && dimension.height >= 0;
241
226
  // tslint:disable-next-line:no-string-literal
242
227
  return hasSize && !this.focusTarget['disabled'];
243
228
  };
244
- FocusBindingDirective.ctorParameters = function () { return [
245
- { type: ElementRef, decorators: [{ type: Inject, args: [ElementRef,] }] },
229
+ FocusBinding = __decorate([
230
+ __param(1, Inject(NgZone)),
231
+ __param(2, Inject(DOCUMENT)),
232
+ __metadata("design:paramtypes", [HTMLElement,
233
+ NgZone, Object, Object])
234
+ ], FocusBinding);
235
+ return FocusBinding;
236
+ }(GarbageCollector));
237
+
238
+ var FocusBindingFactory = /** @class */ (function () {
239
+ function FocusBindingFactory(ngZone, document) {
240
+ this.ngZone = ngZone;
241
+ // @see https://stackoverflow.com/questions/49513359/could-not-resolve-type-document-in-angular5/53715642#53715642
242
+ this.document = document;
243
+ }
244
+ // @Trace()
245
+ FocusBindingFactory.prototype.createBinding = function (el, focusContext) {
246
+ return new FocusBinding(el, this.ngZone, this.document, focusContext);
247
+ };
248
+ FocusBindingFactory.ctorParameters = function () { return [
246
249
  { type: NgZone, decorators: [{ type: Inject, args: [NgZone,] }] },
247
250
  { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }
248
251
  ]; };
252
+ FocusBindingFactory.ɵprov = ɵɵdefineInjectable({ factory: function FocusBindingFactory_Factory() { return new FocusBindingFactory(ɵɵinject(NgZone), ɵɵinject(DOCUMENT)); }, token: FocusBindingFactory, providedIn: "root" });
253
+ FocusBindingFactory = __decorate([
254
+ Injectable({
255
+ providedIn: 'root'
256
+ }),
257
+ __param(0, Inject(NgZone)), __param(1, Inject(DOCUMENT)),
258
+ __metadata("design:paramtypes", [NgZone, Object])
259
+ ], FocusBindingFactory);
260
+ return FocusBindingFactory;
261
+ }());
262
+
263
+ var FocusBindingDirective = /** @class */ (function (_super) {
264
+ __extends(FocusBindingDirective, _super);
265
+ function FocusBindingDirective(el, focusBindingFactory) {
266
+ var _this = _super.call(this) || this;
267
+ _this.el = el;
268
+ _this.focusBindingFactory = focusBindingFactory;
269
+ return _this;
270
+ }
271
+ FocusBindingDirective.prototype.onFocusIn = function () {
272
+ if (this.hasBinding()) {
273
+ this.pectinFocusBinding.notifyFocusIn();
274
+ }
275
+ };
276
+ FocusBindingDirective.prototype.onFocusOut = function () {
277
+ if (this.hasBinding()) {
278
+ this.pectinFocusBinding.notifyFocusOut();
279
+ }
280
+ };
281
+ FocusBindingDirective.prototype.ngOnInit = function () {
282
+ };
283
+ FocusBindingDirective.prototype.ngAfterViewInit = function () {
284
+ if (this.hasBinding()) {
285
+ this.registerDisposable(this.focusBindingFactory.createBinding(this.focusTarget, this.pectinFocusBinding));
286
+ }
287
+ else {
288
+ Logger.get(this).warn('pectinFocusBinding was nil');
289
+ }
290
+ };
291
+ FocusBindingDirective.prototype.hasBinding = function () {
292
+ return !!this.pectinFocusBinding && !!this.pectinFocusBinding;
293
+ };
294
+ Object.defineProperty(FocusBindingDirective.prototype, "focusTarget", {
295
+ get: function () {
296
+ return this.focusBindingTarget || this.el.nativeElement;
297
+ },
298
+ enumerable: true,
299
+ configurable: true
300
+ });
301
+ FocusBindingDirective.ctorParameters = function () { return [
302
+ { type: ElementRef, decorators: [{ type: Inject, args: [ElementRef,] }] },
303
+ { type: FocusBindingFactory }
304
+ ]; };
249
305
  __decorate([
250
306
  Input(),
251
307
  __metadata("design:type", Object)
@@ -272,10 +328,8 @@ var FocusBindingDirective = /** @class */ (function (_super) {
272
328
  selector: '[pectinFocusBinding]'
273
329
  }),
274
330
  __param(0, Inject(ElementRef)),
275
- __param(1, Inject(NgZone)),
276
- __param(2, Inject(DOCUMENT)),
277
331
  __metadata("design:paramtypes", [ElementRef,
278
- NgZone, Object])
332
+ FocusBindingFactory])
279
333
  ], FocusBindingDirective);
280
334
  return FocusBindingDirective;
281
335
  }(DisposableComponent));
@@ -307,112 +361,6 @@ var DirectivesModule = /** @class */ (function () {
307
361
  return DirectivesModule;
308
362
  }());
309
363
 
310
- var FocusBinding = /** @class */ (function (_super) {
311
- __extends(FocusBinding, _super);
312
- function FocusBinding(focusTargetElement, ngZone, document, focusContext) {
313
- var _this = _super.call(this) || this;
314
- _this.focusTargetElement = focusTargetElement;
315
- _this.ngZone = ngZone;
316
- _this.focusContext = focusContext;
317
- // @see https://stackoverflow.com/questions/49513359/could-not-resolve-type-document-in-angular5/53715642#53715642
318
- _this.document = document;
319
- // TODO: Make this also track the current enabled/disabled state.
320
- var when = Dsl.disposeWith(_this).when;
321
- when.valueOf(_this.focusContext.focused).changes(function (focused) {
322
- if (focused && !_this.alreadyHasFocus()) {
323
- _this.tryAndFocus();
324
- }
325
- }, { initialValue: 'triggerChangeUnlessNil' });
326
- return _this;
327
- }
328
- FocusBinding.prototype.onFocusIn = function () {
329
- this.focusContext.notifyFocusIn();
330
- };
331
- FocusBinding.prototype.onFocusOut = function () {
332
- this.focusContext.notifyFocusOut();
333
- };
334
- // Hook method for debugging via tracing.
335
- FocusBinding.prototype.alreadyHasFocus = function () {
336
- return this.isElementFocused(this.focusTarget);
337
- };
338
- // Hook method for debugging via tracing.
339
- FocusBinding.prototype.isElementFocused = function (element) {
340
- return this.document.activeElement === element;
341
- };
342
- FocusBinding.prototype.tryAndFocus = function (retries) {
343
- var _this = this;
344
- if (retries === void 0) { retries = 5; }
345
- if (this.modelShouldStillHaveFocus() && this.canFocus()) {
346
- if (!this.alreadyHasFocus()) {
347
- this.focusTarget.focus();
348
- }
349
- // if we didn't get the focus we try again later.
350
- if (!this.alreadyHasFocus()) {
351
- Logger.get(this).log("focus failed, trying " + retries + " more times");
352
- if (retries > 0) {
353
- // try again on the next paint
354
- // TODO: is there an angular way of doing this without calling a window function.
355
- requestAnimationFrame(function () {
356
- _this.tryAndFocus(retries - 1);
357
- });
358
- }
359
- else {
360
- Logger.get(this).warn("Tried to focus but gave up as the component wasn't enabled or visible.");
361
- }
362
- }
363
- }
364
- };
365
- Object.defineProperty(FocusBinding.prototype, "focusTarget", {
366
- get: function () {
367
- return this.focusTargetElement;
368
- },
369
- enumerable: true,
370
- configurable: true
371
- });
372
- // Hook method for debugging via tracing.
373
- FocusBinding.prototype.modelShouldStillHaveFocus = function () {
374
- return this.focusContext.focused.value;
375
- };
376
- // Hook method for debugging via tracing.
377
- FocusBinding.prototype.canFocus = function () {
378
- var dimension = this.focusTarget.getBoundingClientRect();
379
- var hasSize = dimension.height >= 0 && dimension.height >= 0;
380
- // tslint:disable-next-line:no-string-literal
381
- return hasSize && !this.focusTarget['disabled'];
382
- };
383
- FocusBinding = __decorate([
384
- __param(1, Inject(NgZone)),
385
- __param(2, Inject(DOCUMENT)),
386
- __metadata("design:paramtypes", [HTMLElement,
387
- NgZone, Object, Object])
388
- ], FocusBinding);
389
- return FocusBinding;
390
- }(GarbageCollector));
391
-
392
- var FocusBindingFactory = /** @class */ (function () {
393
- function FocusBindingFactory(ngZone, document) {
394
- this.ngZone = ngZone;
395
- // @see https://stackoverflow.com/questions/49513359/could-not-resolve-type-document-in-angular5/53715642#53715642
396
- this.document = document;
397
- }
398
- FocusBindingFactory.prototype.createBinding = function (el, focusContext) {
399
- return new FocusBinding(el.nativeElement, this.ngZone, this.document, focusContext);
400
- };
401
- FocusBindingFactory.ctorParameters = function () { return [
402
- { type: NgZone, decorators: [{ type: Inject, args: [NgZone,] }] },
403
- { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }
404
- ]; };
405
- FocusBindingFactory.ɵprov = ɵɵdefineInjectable({ factory: function FocusBindingFactory_Factory() { return new FocusBindingFactory(ɵɵinject(NgZone), ɵɵinject(DOCUMENT)); }, token: FocusBindingFactory, providedIn: "root" });
406
- FocusBindingFactory = __decorate([
407
- Injectable({
408
- providedIn: 'root'
409
- }),
410
- __param(0, Inject(NgZone)), __param(1, Inject(DOCUMENT)),
411
- __metadata("design:paramtypes", [NgZone, Object])
412
- ], FocusBindingFactory);
413
- return FocusBindingFactory;
414
- }());
415
-
416
364
  var FocusContainerComponent = /** @class */ (function (_super) {
417
365
  __extends(FocusContainerComponent, _super);
418
366
  function FocusContainerComponent(focusManager) {
@@ -463,7 +411,7 @@ var FocusableComponent = /** @class */ (function (_super) {
463
411
  var _a = Dsl.disposeWith(_this), chain = _a.chain, valueOf = _a.valueOf, before = _a.before, when = _a.when, after = _a.after, observe = _a.observe, switchOn = _a.switchOn;
464
412
  if (_this.focusManager) {
465
413
  _this._focusContext = _this.focusManager.registerFocusable(_this);
466
- _this.registerDisposable(focusBindingFactory.createBinding(el, _this.focusContext));
414
+ _this.registerDisposable(focusBindingFactory.createBinding(el.nativeElement, _this.focusContext));
467
415
  }
468
416
  return _this;
469
417
  }
@@ -706,7 +654,7 @@ var CheckboxInputComponent = /** @class */ (function (_super) {
706
654
  CheckboxInputComponent = __decorate([
707
655
  Component({
708
656
  selector: 'aup-checkbox-input',
709
- template: "<mat-checkbox\n [(ngModel)]=\"valueModel.value\"\n [color]=\"color\"\n [labelPosition]=\"labelPosition\"\n [disabled]=\"!isEnabled()\"\n>{{label}}</mat-checkbox>\n<mat-hint *ngIf=\"hint\">{{hint}}</mat-hint>\n<mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n",
657
+ template: "<!-- TODO: add focus binding -->\n<mat-checkbox\n [(ngModel)]=\"valueModel.value\"\n [color]=\"color\"\n [labelPosition]=\"labelPosition\"\n [disabled]=\"!isEnabled()\"\n>{{label}}</mat-checkbox>\n<mat-hint *ngIf=\"hint\">{{hint}}</mat-hint>\n<mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n",
710
658
  styles: [":host{display:inline-flex;flex-direction:column;margin-top:24px;margin-bottom:16px}mat-error,mat-hint{margin-top:4px;margin-left:24px;font-size:12px;font-weight:400;line-height:13.5px}"]
711
659
  }),
712
660
  __metadata("design:paramtypes", [])
@@ -728,7 +676,7 @@ var NumberInputComponent = /** @class */ (function (_super) {
728
676
  NumberInputComponent = __decorate([
729
677
  Component({
730
678
  selector: 'aup-number-input',
731
- template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input type=\"number\"\n matInput\n placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"valueModel.value\"\n [disabled]=\"!enabled.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"valueModel\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-hint *ngIf=\"hint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n",
679
+ template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input type=\"number\"\n matInput\n placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"valueModel.value\"\n [disabled]=\"!enabled.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"delegatingFormValueModel?.focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-hint *ngIf=\"hint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n",
732
680
  styles: [":host{display:block}input,mat-form-field{width:100%}input mat-hint.faux-error,mat-form-field mat-hint.faux-error{color:#f44336}"]
733
681
  }),
734
682
  __metadata("design:paramtypes", [])
@@ -750,7 +698,7 @@ var PasswordInputComponent = /** @class */ (function (_super) {
750
698
  PasswordInputComponent = __decorate([
751
699
  Component({
752
700
  selector: 'aup-password-input',
753
- template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input type=\"password\"\n matInput\n placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"valueModel.value\"\n [disabled]=\"!enabled.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"valueModel\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-hint *ngIf=\"hint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n\n",
701
+ template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input type=\"password\"\n matInput\n placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"valueModel.value\"\n [disabled]=\"!enabled.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"delegatingFormValueModel.focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-hint *ngIf=\"hint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n\n",
754
702
  styles: [":host{display:block}input,mat-form-field{width:100%}input mat-hint.faux-error,mat-form-field mat-hint.faux-error{color:#f44336}"]
755
703
  }),
756
704
  __metadata("design:paramtypes", [])
@@ -802,7 +750,7 @@ var SelectInputComponent = /** @class */ (function (_super) {
802
750
  SelectInputComponent = __decorate([
803
751
  Component({
804
752
  selector: 'aup-select-input',
805
- template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <mat-select placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"valueModel.value\"\n [disabled]=\"!enabled.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"valueModel\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-option *ngIf=\"allowNil\">{{placeholder}}</mat-option>\n <mat-option *ngFor=\"let option of optionsModel.value; let i = index\" [value]=\"option\">\n <ng-container *ngIf=\"!optionTemplateRef\">{{optionLabelFormat(option)}}</ng-container>\n <ng-container *ngIf=\"optionTemplateRef\"\n [ngTemplateOutlet]=\"optionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: option, index: i }\"\n >\n </ng-container>\n </mat-option>\n </mat-select>\n <mat-hint *ngIf=\"hint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n",
753
+ template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <mat-select placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"valueModel.value\"\n [disabled]=\"!enabled.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"delegatingFormValueModel.focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-option *ngIf=\"allowNil\">{{placeholder}}</mat-option>\n <mat-option *ngFor=\"let option of optionsModel.value; let i = index\" [value]=\"option\">\n <ng-container *ngIf=\"!optionTemplateRef\">{{optionLabelFormat(option)}}</ng-container>\n <ng-container *ngIf=\"optionTemplateRef\"\n [ngTemplateOutlet]=\"optionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: option, index: i }\"\n >\n </ng-container>\n </mat-option>\n </mat-select>\n <mat-hint *ngIf=\"hint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n",
806
754
  styles: [":host{display:inline-block}mat-form-field{width:100%}"]
807
755
  }),
808
756
  __metadata("design:paramtypes", [])
@@ -838,7 +786,7 @@ var StringInputComponent = /** @class */ (function (_super) {
838
786
  StringInputComponent = __decorate([
839
787
  Component({
840
788
  selector: 'aup-string-input',
841
- template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input matInput\n placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"valueModel.value\"\n [disabled]=\"!enabled.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"valueModel\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-hint *ngIf=\"hint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n <button mat-button mat-icon-button matSuffix *ngIf=\"enableClear\" [pectinCommand]=\"clearCommand\">\n <mat-icon>close</mat-icon>\n </button>\n</mat-form-field>\n\n",
789
+ template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input matInput\n placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"valueModel.value\"\n [disabled]=\"!enabled.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"delegatingFormValueModel.focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-hint *ngIf=\"hint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n <button mat-button mat-icon-button matSuffix *ngIf=\"enableClear\" [pectinCommand]=\"clearCommand\">\n <mat-icon>close</mat-icon>\n </button>\n</mat-form-field>\n\n",
842
790
  styles: [":host{display:block}input,mat-form-field{width:100%}input mat-hint.faux-error,mat-form-field mat-hint.faux-error{color:#f44336}button[disabled]{visibility:hidden}"]
843
791
  }),
844
792
  __metadata("design:paramtypes", [])
@@ -4469,6 +4417,7 @@ var VisitSanitiser = /** @class */ (function () {
4469
4417
  this.placeHistory = placeHistory;
4470
4418
  this.injector = injector;
4471
4419
  }
4420
+ // @Trace()
4472
4421
  VisitSanitiser.prototype.sanitise = function (visit) {
4473
4422
  return __awaiter(this, void 0, void 0, function () {
4474
4423
  var placeDef, routeIdDef, routeId, sanitisedValue, parameterDefs, sanitisedVisit, i, def, value, sanitisedValue;
@@ -4517,12 +4466,6 @@ var VisitSanitiser = /** @class */ (function () {
4517
4466
  });
4518
4467
  });
4519
4468
  };
4520
- __decorate([
4521
- Trace(),
4522
- __metadata("design:type", Function),
4523
- __metadata("design:paramtypes", [Visit]),
4524
- __metadata("design:returntype", Promise)
4525
- ], VisitSanitiser.prototype, "sanitise", null);
4526
4469
  return VisitSanitiser;
4527
4470
  }());
4528
4471
 
@@ -4784,5 +4727,5 @@ function VisitParameterList(options) {
4784
4727
  * Generated bundle index. Do not edit.
4785
4728
  */
4786
4729
 
4787
- export { ACTIVITY_DATA, AUP_PLACE_CONFIG, AbstractInputComponent, AbstractInteractionContext, AbstractPlaceNavigationComponent, AbstractPopStateNavigation, Activity, ActivityContainerComponent, ActivityOutletComponent, ActivityRef, AlertDialogComponent, AngularUiPowerupsModule, Bounds, BusyOverlayComponent, CheckboxInputComponent, CommandDirective, ComponentsModule, ConfirmThenDialogComponent, ConfirmationDialogComponent, ConsolidatedParameterMap, DEFINITION_META_DATA_KEY, DIALOG_INTERACTION_SERVICE_DEFAULTS, DialogInteractionContext, DialogInteractionContextFactory, Dimension, DirectivesModule, DisposableComponent, EmptyStateComponent, EventCleanUpSession, FocusBinding, FocusBindingDirective, FocusBindingFactory, FocusContainerComponent, FocusableComponent, Formatter, InPlaceInteractionContextComponent, InteractionModule, InteractionService, InteractionServiceRoutingAdapter, LEFT_RIGHT_PLACE_ANIMATION, ListPlaceNavComponent, ModalInteractionContextFactory, Navigating, NavigatingDuringInteraction, NavigationContext, NavigationSession, NoopAuthGuard, NoopComponent, NumberInputComponent, ParameterDefinition, PasswordInputComponent, Place, PlaceComponent, PlaceComponentDeactivationHandler, PlaceDefinition, PlaceGuard, PlaceHistory, PlaceModule, PlaceOutletComponent, PlaceRouter, Point, PopStateDuringInteractionNavigation, PopStateNavigation, ROUTE_PARAMETER_LIST_KEY, RemoveLastInteractionFromUrlNavigationSession, ResizeAwareComponent, RouteId, ScrollContainerComponent, SelectInputComponent, StringInputComponent, SwitchCaseComponent, SwitchCaseDefaultDirective, SwitchCaseOption, SwitchCaseWhenDirective, SynchroniseInteractionContextIdsWithRoute, TabbedPlaceNavigationComponent, UrlService, UrlSnapshot, Visit, VisitParameter, VisitParameterList, VisitSanitiser, WaitUntilLeavingInteractionTransitionCancelled, WaitUntilLinkTriggeredNavigationInteractionCancellationEventsFinish, WaitUntilPopStateDuringCanDeactivateInteractionFinishes, leftRightPlaceAnimation, slideDownOnEnterAnimation, slideRightOnEnterAnimation, DirectivesModule as ɵa, CommandDirective as ɵb, AUP_PLACE_CONFIG as ɵba, PlaceRouter as ɵbc, InteractionService as ɵbd, ModalInteractionContextFactory as ɵbe, UrlService as ɵbf, PlaceHistory as ɵbg, TabbedPlaceNavigationComponent as ɵbh, AbstractPlaceNavigationComponent as ɵbi, ListPlaceNavComponent as ɵbj, InteractionModule as ɵbk, ActivityContainerComponent as ɵbl, AbstractInteractionContext as ɵbm, ActivityOutletComponent as ɵbn, ConfirmationDialogComponent as ɵbo, ACTIVITY_DATA as ɵbp, Activity as ɵbq, ConfirmThenDialogComponent as ɵbs, AlertDialogComponent as ɵbt, InPlaceInteractionContextComponent as ɵbv, FocusBindingDirective as ɵc, DisposableComponent as ɵd, ComponentsModule as ɵe, NumberInputComponent as ɵf, AbstractInputComponent as ɵg, StringInputComponent as ɵh, PasswordInputComponent as ɵi, SelectInputComponent as ɵj, CheckboxInputComponent as ɵk, ScrollContainerComponent as ɵl, NoopComponent as ɵm, SwitchCaseOption as ɵn, SwitchCaseWhenDirective as ɵo, SwitchCaseDefaultDirective as ɵp, SwitchCaseComponent as ɵq, FocusContainerComponent as ɵr, FocusableComponent as ɵs, FocusBindingFactory as ɵt, PlaceModule as ɵu, EmptyStateComponent as ɵv, BusyOverlayComponent as ɵw, PlaceOutletComponent as ɵx, leftRightPlaceAnimation as ɵy, LEFT_RIGHT_PLACE_ANIMATION as ɵz };
4730
+ export { ACTIVITY_DATA, AUP_PLACE_CONFIG, AbstractInputComponent, AbstractInteractionContext, AbstractPlaceNavigationComponent, AbstractPopStateNavigation, Activity, ActivityContainerComponent, ActivityOutletComponent, ActivityRef, AlertDialogComponent, AngularUiPowerupsModule, Bounds, BusyOverlayComponent, CheckboxInputComponent, CommandDirective, ComponentsModule, ConfirmThenDialogComponent, ConfirmationDialogComponent, ConsolidatedParameterMap, DEFINITION_META_DATA_KEY, DIALOG_INTERACTION_SERVICE_DEFAULTS, DialogInteractionContext, DialogInteractionContextFactory, Dimension, DirectivesModule, DisposableComponent, EmptyStateComponent, EventCleanUpSession, FocusBinding, FocusBindingDirective, FocusBindingFactory, FocusContainerComponent, FocusableComponent, Formatter, InPlaceInteractionContextComponent, InteractionModule, InteractionService, InteractionServiceRoutingAdapter, LEFT_RIGHT_PLACE_ANIMATION, ListPlaceNavComponent, ModalInteractionContextFactory, Navigating, NavigatingDuringInteraction, NavigationContext, NavigationSession, NoopAuthGuard, NoopComponent, NumberInputComponent, ParameterDefinition, PasswordInputComponent, Place, PlaceComponent, PlaceComponentDeactivationHandler, PlaceDefinition, PlaceGuard, PlaceHistory, PlaceModule, PlaceOutletComponent, PlaceRouter, Point, PopStateDuringInteractionNavigation, PopStateNavigation, ROUTE_PARAMETER_LIST_KEY, RemoveLastInteractionFromUrlNavigationSession, ResizeAwareComponent, RouteId, ScrollContainerComponent, SelectInputComponent, StringInputComponent, SwitchCaseComponent, SwitchCaseDefaultDirective, SwitchCaseOption, SwitchCaseWhenDirective, SynchroniseInteractionContextIdsWithRoute, TabbedPlaceNavigationComponent, UrlService, UrlSnapshot, Visit, VisitParameter, VisitParameterList, VisitSanitiser, WaitUntilLeavingInteractionTransitionCancelled, WaitUntilLinkTriggeredNavigationInteractionCancellationEventsFinish, WaitUntilPopStateDuringCanDeactivateInteractionFinishes, leftRightPlaceAnimation, slideDownOnEnterAnimation, slideRightOnEnterAnimation, DirectivesModule as ɵa, CommandDirective as ɵb, AUP_PLACE_CONFIG as ɵba, PlaceRouter as ɵbc, InteractionService as ɵbd, ModalInteractionContextFactory as ɵbe, UrlService as ɵbf, PlaceHistory as ɵbg, TabbedPlaceNavigationComponent as ɵbh, AbstractPlaceNavigationComponent as ɵbi, ListPlaceNavComponent as ɵbj, InteractionModule as ɵbk, ActivityContainerComponent as ɵbl, AbstractInteractionContext as ɵbm, ActivityOutletComponent as ɵbn, ConfirmationDialogComponent as ɵbo, ACTIVITY_DATA as ɵbp, Activity as ɵbq, ConfirmThenDialogComponent as ɵbs, AlertDialogComponent as ɵbt, InPlaceInteractionContextComponent as ɵbv, FocusBindingDirective as ɵc, DisposableComponent as ɵd, FocusBindingFactory as ɵe, ComponentsModule as ɵf, NumberInputComponent as ɵg, AbstractInputComponent as ɵh, StringInputComponent as ɵi, PasswordInputComponent as ɵj, SelectInputComponent as ɵk, CheckboxInputComponent as ɵl, ScrollContainerComponent as ɵm, NoopComponent as ɵn, SwitchCaseOption as ɵo, SwitchCaseWhenDirective as ɵp, SwitchCaseDefaultDirective as ɵq, SwitchCaseComponent as ɵr, FocusContainerComponent as ɵs, FocusableComponent as ɵt, PlaceModule as ɵu, EmptyStateComponent as ɵv, BusyOverlayComponent as ɵw, PlaceOutletComponent as ɵx, leftRightPlaceAnimation as ɵy, LEFT_RIGHT_PLACE_ANIMATION as ɵz };
4788
4731
  //# sourceMappingURL=coolon-angular-ui-powerups.js.map