@coolon/angular-ui-powerups 16.1.0-aplpha.180 → 16.1.0-aplpha.182

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.
@@ -2450,6 +2450,7 @@ class NumberInputComponent extends AbstractValueInputComponent {
2450
2450
  get max() { return this.#max_accessor_storage; }
2451
2451
  set max(value) { this.#max_accessor_storage = value; }
2452
2452
  #significantDigits$_accessor_storage = proxify((ValueModel));
2453
+ // TODO: rename to decimal places. Also need to reject key presses for characters > last decimal place as the clamping rounds things up if you type a digit >= 5
2453
2454
  get significantDigits$() { return this.#significantDigits$_accessor_storage; }
2454
2455
  set significantDigits$(value) { this.#significantDigits$_accessor_storage = value; }
2455
2456
  #significantDigits_accessor_storage;
@@ -2733,6 +2734,7 @@ class StringInputComponent extends AbstractValueInputComponent {
2733
2734
  get suffixCommand() { return this.#suffixCommand_accessor_storage; }
2734
2735
  set suffixCommand(value) { this.#suffixCommand_accessor_storage = value; }
2735
2736
  inputMode = 'text';
2737
+ trim = true;
2736
2738
  clearCommand;
2737
2739
  elementRef = this.inject(ElementRef);
2738
2740
  constructor() {
@@ -2750,8 +2752,11 @@ class StringInputComponent extends AbstractValueInputComponent {
2750
2752
  select() {
2751
2753
  this.elementRef.nativeElement.querySelector('input').select();
2752
2754
  }
2755
+ onValueChange($event) {
2756
+ this.componentValue$.value = this.trim ? $event?.trim() : $event;
2757
+ }
2753
2758
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: StringInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2754
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: StringInputComponent, selector: "aup-string-input", inputs: { autocomplete: "autocomplete", enableClear$: "enableClear$", enableClear: "enableClear", iconPrefix: "iconPrefix", suffixCommand: "suffixCommand", inputMode: "inputMode" }, usesInheritance: true, ngImport: i0, template: "<mat-form-field [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input matInput\n placeholder=\"{{placeholder}}\"\n [attr.inputmode]=\"inputMode\"\n [attr.autocomplete]=\"autocomplete\"\n [(ngModel)]=\"componentValue$.value\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors()\">{{firstError}}</mat-error>\n <aup-icon *ngIf=\"iconPrefix\" matPrefix [icon]=\"iconPrefix\"></aup-icon>\n <span matSuffix>\n <aup-command *ngIf=\"enableClear\" [command]=\"clearCommand\" data-cy=\"clearCommand\"></aup-command>\n <aup-command *ngIf=\"hasSuffixCommand\" [command]=\"suffixCommand\" data-cy=\"suffixCommand\"></aup-command>\n </span>\n</mat-form-field>\n\n", styles: [""], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$5.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$5.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3$1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i4.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4.MatLabel, selector: "mat-label" }, { kind: "directive", type: i4.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i4.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i4.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: i4.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "directive", type: FocusBindingDirective, selector: "[pectinFocusBinding]", inputs: ["pectinFocusBinding", "focusBindingTarget"] }, { kind: "component", type: IconComponent, selector: "aup-icon", inputs: ["icon"] }, { kind: "component", type: CommandComponent, selector: "aup-command", inputs: ["command", "face$", "face", "busyFace$", "busyFace", "alignFace"] }] });
2759
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: StringInputComponent, selector: "aup-string-input", inputs: { autocomplete: "autocomplete", enableClear$: "enableClear$", enableClear: "enableClear", iconPrefix: "iconPrefix", suffixCommand: "suffixCommand", inputMode: "inputMode", trim: "trim" }, usesInheritance: true, ngImport: i0, template: "<mat-form-field [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input matInput\n placeholder=\"{{placeholder}}\"\n [attr.inputmode]=\"inputMode\"\n [attr.autocomplete]=\"autocomplete\"\n [ngModel]=\"value$.value\"\n (ngModelChange)=\"onValueChange($event)\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors()\">{{firstError}}</mat-error>\n <aup-icon *ngIf=\"iconPrefix\" matPrefix [icon]=\"iconPrefix\"></aup-icon>\n <span matSuffix>\n <aup-command *ngIf=\"enableClear\" [command]=\"clearCommand\" data-cy=\"clearCommand\"></aup-command>\n <aup-command *ngIf=\"hasSuffixCommand\" [command]=\"suffixCommand\" data-cy=\"suffixCommand\"></aup-command>\n </span>\n</mat-form-field>\n\n", styles: [""], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$5.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$5.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3$1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i4.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4.MatLabel, selector: "mat-label" }, { kind: "directive", type: i4.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i4.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i4.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: i4.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "directive", type: FocusBindingDirective, selector: "[pectinFocusBinding]", inputs: ["pectinFocusBinding", "focusBindingTarget"] }, { kind: "component", type: IconComponent, selector: "aup-icon", inputs: ["icon"] }, { kind: "component", type: CommandComponent, selector: "aup-command", inputs: ["command", "face$", "face", "busyFace$", "busyFace", "alignFace"] }] });
2755
2760
  }
2756
2761
  __decorate([
2757
2762
  Proxify(),
@@ -2767,7 +2772,7 @@ __decorate([
2767
2772
  ], StringInputComponent.prototype, "suffixCommand", null);
2768
2773
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: StringInputComponent, decorators: [{
2769
2774
  type: Component,
2770
- args: [{ selector: 'aup-string-input', template: "<mat-form-field [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input matInput\n placeholder=\"{{placeholder}}\"\n [attr.inputmode]=\"inputMode\"\n [attr.autocomplete]=\"autocomplete\"\n [(ngModel)]=\"componentValue$.value\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors()\">{{firstError}}</mat-error>\n <aup-icon *ngIf=\"iconPrefix\" matPrefix [icon]=\"iconPrefix\"></aup-icon>\n <span matSuffix>\n <aup-command *ngIf=\"enableClear\" [command]=\"clearCommand\" data-cy=\"clearCommand\"></aup-command>\n <aup-command *ngIf=\"hasSuffixCommand\" [command]=\"suffixCommand\" data-cy=\"suffixCommand\"></aup-command>\n </span>\n</mat-form-field>\n\n" }]
2775
+ args: [{ selector: 'aup-string-input', template: "<mat-form-field [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input matInput\n placeholder=\"{{placeholder}}\"\n [attr.inputmode]=\"inputMode\"\n [attr.autocomplete]=\"autocomplete\"\n [ngModel]=\"value$.value\"\n (ngModelChange)=\"onValueChange($event)\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors()\">{{firstError}}</mat-error>\n <aup-icon *ngIf=\"iconPrefix\" matPrefix [icon]=\"iconPrefix\"></aup-icon>\n <span matSuffix>\n <aup-command *ngIf=\"enableClear\" [command]=\"clearCommand\" data-cy=\"clearCommand\"></aup-command>\n <aup-command *ngIf=\"hasSuffixCommand\" [command]=\"suffixCommand\" data-cy=\"suffixCommand\"></aup-command>\n </span>\n</mat-form-field>\n\n" }]
2771
2776
  }], ctorParameters: function () { return []; }, propDecorators: { autocomplete: [{
2772
2777
  type: Input
2773
2778
  }], enableClear$: [{
@@ -2780,6 +2785,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
2780
2785
  type: Input
2781
2786
  }], inputMode: [{
2782
2787
  type: Input
2788
+ }], trim: [{
2789
+ type: Input
2783
2790
  }] } });
2784
2791
 
2785
2792
  class TextInputComponent extends AbstractValueInputComponent {
@@ -5268,7 +5275,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
5268
5275
  class LoadingMonitor extends GarbageCollector {
5269
5276
  watchChanges$ = new MutableValueModel(false);
5270
5277
  trackers = new Map();
5271
- createTracker(loadable) {
5278
+ createTracker(loadable, options) {
5272
5279
  const existing = this.trackers.get(loadable);
5273
5280
  if (!existing) {
5274
5281
  const tracker = new LoadingMonitor.Tracker(loadable, this.watchChanges$);
@@ -5301,11 +5308,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
5301
5308
  watchChanges$;
5302
5309
  loadables = [];
5303
5310
  rootName;
5304
- constructor(root, watchChanges$) {
5311
+ constructor(root, watchChanges$, tag) {
5305
5312
  super();
5306
5313
  this.root = root;
5307
5314
  this.watchChanges$ = watchChanges$;
5308
- this.rootName = root.constructor.name;
5315
+ const bits = [root.constructor.name];
5316
+ if (tag)
5317
+ bits.push(`[${tag}]`);
5318
+ this.rootName = bits.join('');
5309
5319
  }
5310
5320
  registerLoadableDependency(loadable) {
5311
5321
  const { when } = Dsl.disposeWith(this);
@@ -9545,28 +9555,31 @@ class PlaceRouter extends GarbageCollector {
9545
9555
  this.interactionService = interactionService;
9546
9556
  this.urlService = urlService;
9547
9557
  this.placeHistory = placeHistory;
9548
- if (window["Cypress"]) {
9549
- window["aup.PlaceRouter"] = this;
9558
+ if (window['Cypress']) {
9559
+ window['aup.PlaceRouter'] = this;
9550
9560
  }
9551
- this.routerInteractionAdapter = interactionService.registerPlaceRouter(this);
9561
+ this.routerInteractionAdapter =
9562
+ interactionService.registerPlaceRouter(this);
9552
9563
  // TODO: Make this an interface and use 'this' instead.
9553
9564
  this.navigationContext = new NavigationContext.Impl(this.urlService, this.routerInteractionAdapter, (urlSnapshot, options) => {
9554
9565
  return this.navigateByUrl(urlSnapshot, options);
9555
- }, state => {
9566
+ }, (state) => {
9556
9567
  this.transitionTo(state);
9557
- }, segments => {
9568
+ }, (segments) => {
9558
9569
  this.routingSessionFinished(segments);
9559
9570
  });
9560
9571
  const { chain } = Dsl.disposeWith(this);
9561
9572
  this.navigationInProgress$ = chain(this.navigationSession$).isNotNil();
9562
- this.interactionSyncInProgress$ = chain(this.navigationSession$).pluck("isInteractionSync").otherwise(false);
9563
- const idleStateName = chain(this.interactionService.active).map(active => active ? "IdleDuringInteraction" : "Idle");
9573
+ this.interactionSyncInProgress$ = chain(this.navigationSession$)
9574
+ .pluck('isInteractionSync')
9575
+ .otherwise(false);
9576
+ const idleStateName = chain(this.interactionService.active).map((active) => active ? 'IdleDuringInteraction' : 'Idle');
9564
9577
  this.navigationSessionName$ = chain(this.navigationSession$)
9565
- .pluck("name")
9578
+ .pluck('name')
9566
9579
  .otherwise(idleStateName);
9567
- DebugContext.tag(this._activeVisit$, "PlaceRouter.activeVisit");
9580
+ DebugContext.tag(this._activeVisit$, 'PlaceRouter.activeVisit');
9568
9581
  // TODO: make setup the callbacks in during module initiation to make this testable.
9569
- angularRouter.events.subscribe(event => {
9582
+ angularRouter.events.subscribe((event) => {
9570
9583
  // Routing event sequence
9571
9584
  // ======================
9572
9585
  // NavigationStart -> .... -> NavigationCancel --> redirect, go around again in the same session
@@ -9575,7 +9588,7 @@ class PlaceRouter extends GarbageCollector {
9575
9588
  // =======================
9576
9589
  if (event instanceof NavigationStart) {
9577
9590
  // console.log(`---> NavigationStart[${event.id}]: ${event.url} (${event.navigationTrigger})`);
9578
- if (event.navigationTrigger === "popstate") {
9591
+ if (event.navigationTrigger === 'popstate') {
9579
9592
  this.onPopState(event);
9580
9593
  }
9581
9594
  else {
@@ -9601,7 +9614,7 @@ class PlaceRouter extends GarbageCollector {
9601
9614
  });
9602
9615
  // The router needs to know about url changes and in some cases they are the only way the router can know if
9603
9616
  // the back button was clicked.
9604
- angularLocation.onUrlChange(url => this.onUrlChanged(url));
9617
+ angularLocation.onUrlChange((url) => this.onUrlChanged(url));
9605
9618
  }
9606
9619
  postponeRoutingUntil(condition$) {
9607
9620
  this._ready$.setDelegate(condition$);
@@ -9638,22 +9651,22 @@ class PlaceRouter extends GarbageCollector {
9638
9651
  }
9639
9652
  // @Trace()
9640
9653
  onPopState(event) {
9641
- assert.isTruthy(event.navigationTrigger === "popstate");
9654
+ assert.isTruthy(event.navigationTrigger === 'popstate');
9642
9655
  if (this.currentSession) {
9643
9656
  this.currentSession.onPopState(event);
9644
9657
  }
9645
9658
  else {
9646
9659
  const poppedHistoryUrl = event.url;
9647
9660
  const currentRouterUrl = this.urlService.getCurrentRouterUrl();
9648
- const session = this.interactionService.isActive() ?
9649
- new PopStateDuringInteractionNavigation(this.navigationContext, currentRouterUrl, poppedHistoryUrl) :
9650
- new PopStateNavigation(this.navigationContext, currentRouterUrl, poppedHistoryUrl);
9661
+ const session = this.interactionService.isActive()
9662
+ ? new PopStateDuringInteractionNavigation(this.navigationContext, currentRouterUrl, poppedHistoryUrl)
9663
+ : new PopStateNavigation(this.navigationContext, currentRouterUrl, poppedHistoryUrl);
9651
9664
  this.transitionTo(session);
9652
9665
  }
9653
9666
  }
9654
9667
  // @Trace()
9655
9668
  onRouterStarted(event) {
9656
- assert.isFalsey(event.navigationTrigger === "popstate");
9669
+ assert.isFalsey(event.navigationTrigger === 'popstate');
9657
9670
  // const inInteraction = this.interactionService.isActive();
9658
9671
  if (this.currentSession) {
9659
9672
  this.currentSession.onRouterStarted(event);
@@ -9670,7 +9683,7 @@ class PlaceRouter extends GarbageCollector {
9670
9683
  this.currentSession.onUrlChange(newUrl);
9671
9684
  }
9672
9685
  else {
9673
- console.log("FYI: url changed without a navigation session in progress");
9686
+ console.log('FYI: url changed without a navigation session in progress');
9674
9687
  }
9675
9688
  // console.log(`<--- Url Changed`);
9676
9689
  }
@@ -9695,11 +9708,11 @@ class PlaceRouter extends GarbageCollector {
9695
9708
  // @Trace()
9696
9709
  async doNavigation(visit, runNavigationCommands) {
9697
9710
  if (this.navigationInProgress$.value) {
9698
- Logger.get().error("Navigation already in progress", {
9711
+ Logger.get().error('Navigation already in progress', {
9699
9712
  visit: visit,
9700
- session: this.navigationSession
9713
+ session: this.navigationSession,
9701
9714
  });
9702
- lang.illegalState("Navigation already in progress");
9715
+ lang.illegalState('Navigation already in progress');
9703
9716
  }
9704
9717
  else {
9705
9718
  const navigation = this.createNavigationSession(this.urlService.getCurrentRouterUrl());
@@ -9713,7 +9726,7 @@ class PlaceRouter extends GarbageCollector {
9713
9726
  // Check if the router has finished (in the case where no router change required) and we're still in a
9714
9727
  // transient state and finish of the transition.
9715
9728
  if (!this.angularRouter.getCurrentNavigation() && this.currentSession) {
9716
- this.currentSession.onRouterEnd(new NavigationEnd(-1, "", this.urlService.getCurrentRouterUrl()));
9729
+ this.currentSession.onRouterEnd(new NavigationEnd(-1, '', this.urlService.getCurrentRouterUrl()));
9717
9730
  }
9718
9731
  }
9719
9732
  }
@@ -9724,6 +9737,10 @@ class PlaceRouter extends GarbageCollector {
9724
9737
  get activeVisit$() {
9725
9738
  return this._activeVisit$.readonly$;
9726
9739
  }
9740
+ filterAuthorizedPlaces(places, options) {
9741
+ const { chain } = Dsl.disposeWith(options.disposedWith);
9742
+ return chain(this.authService.accessGuard$).mapToList((g) => places.filter((p) => g.isAuthorised(PlaceComponent.getDefinition(p))));
9743
+ }
9727
9744
  async notifyVisitSegmentChanged(is, was) {
9728
9745
  // console.log("PlaceRouter.notifyVisitSegmentChanged", is.toDebugString(), was.toDebugString());
9729
9746
  this.placeHistory.updateVisitSegment(is);
@@ -9733,16 +9750,18 @@ class PlaceRouter extends GarbageCollector {
9733
9750
  // TODO: can I just do a regular navigate using an updated visit?
9734
9751
  // const {when} = Dsl.disposeWith(this);
9735
9752
  await this.doNavigation(visit, () => {
9736
- const urlSnapshot = this.urlService.parseUrl(this.angularRouter.routerState.snapshot.url).updateVisitSegment(is);
9753
+ const urlSnapshot = this.urlService
9754
+ .parseUrl(this.angularRouter.routerState.snapshot.url)
9755
+ .updateVisitSegment(is);
9737
9756
  return this.navigateByUrl(urlSnapshot);
9738
9757
  });
9739
9758
  }
9740
9759
  }
9741
9760
  createNavigationSession(currentRouterUrl) {
9742
9761
  const inInteraction = this.interactionService.isActive();
9743
- return inInteraction ?
9744
- new NavigatingDuringInteraction(this.navigationContext, currentRouterUrl) :
9745
- new Navigating(this.navigationContext, currentRouterUrl);
9762
+ return inInteraction
9763
+ ? new NavigatingDuringInteraction(this.navigationContext, currentRouterUrl)
9764
+ : new Navigating(this.navigationContext, currentRouterUrl);
9746
9765
  }
9747
9766
  // @Trace()
9748
9767
  transitionTo(next) {
@@ -9772,7 +9791,7 @@ class PlaceRouter extends GarbageCollector {
9772
9791
  session.dispose();
9773
9792
  this.navigationSession$.value = null;
9774
9793
  // console.log(`### Router Session Finished (was ${session.toString()})`);
9775
- this.sessionFinishedJobs.forEach(job => job());
9794
+ this.sessionFinishedJobs.forEach((job) => job());
9776
9795
  this.sessionFinishedJobs = [];
9777
9796
  }
9778
9797
  runAfterRoutingSessionFinishes(func) {
@@ -9803,7 +9822,7 @@ class PlaceRouter extends GarbageCollector {
9803
9822
  });
9804
9823
  }
9805
9824
  else {
9806
- return new Promise(((resolve) => {
9825
+ return new Promise((resolve) => {
9807
9826
  // console.log(`No navigation in progress, starting synchronisation job`);
9808
9827
  this.runAfterRoutingSessionFinishes(() => {
9809
9828
  onSyncComplete();
@@ -9811,7 +9830,7 @@ class PlaceRouter extends GarbageCollector {
9811
9830
  });
9812
9831
  const session = new SynchroniseInteractionContextIdsWithRoute(this.navigationContext, this.urlService.getCurrentRouterUrl(), false);
9813
9832
  this.transitionTo(session);
9814
- }));
9833
+ });
9815
9834
  }
9816
9835
  }
9817
9836
  toVisit(visitOrPlaceComponent, params) {
@@ -9823,12 +9842,12 @@ class PlaceRouter extends GarbageCollector {
9823
9842
  }
9824
9843
  }
9825
9844
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PlaceRouter, deps: [{ token: i1$5.Router }, { token: i1$1.Location }, { token: InteractionService }, { token: UrlService }, { token: PlaceHistory }], target: i0.ɵɵFactoryTarget.Injectable });
9826
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PlaceRouter, providedIn: "root" });
9845
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PlaceRouter, providedIn: 'root' });
9827
9846
  }
9828
9847
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PlaceRouter, decorators: [{
9829
9848
  type: Injectable,
9830
9849
  args: [{
9831
- providedIn: "root"
9850
+ providedIn: 'root',
9832
9851
  }]
9833
9852
  }], ctorParameters: function () { return [{ type: i1$5.Router }, { type: i1$1.Location }, { type: InteractionService }, { type: UrlService }, { type: PlaceHistory }]; } });
9834
9853
 
@@ -11191,7 +11210,7 @@ class StringInputActivity extends InputActivity {
11191
11210
  [confirmFace]="confirmFace"
11192
11211
  [cancelFace]="cancelFace"
11193
11212
  ></aup-activity-actions>
11194
- `, isInline: true, dependencies: [{ kind: "component", type: StringInputComponent, selector: "aup-string-input", inputs: ["autocomplete", "enableClear$", "enableClear", "iconPrefix", "suffixCommand", "inputMode"] }, { kind: "component", type: ActivityActionsComponent, selector: "aup-activity-actions", inputs: ["confirmCommand", "cancelCommand", "faces", "confirmFace", "cancelFace", "style", "layout", "align", "alignContent"] }] });
11213
+ `, isInline: true, dependencies: [{ kind: "component", type: StringInputComponent, selector: "aup-string-input", inputs: ["autocomplete", "enableClear$", "enableClear", "iconPrefix", "suffixCommand", "inputMode", "trim"] }, { kind: "component", type: ActivityActionsComponent, selector: "aup-activity-actions", inputs: ["confirmCommand", "cancelCommand", "faces", "confirmFace", "cancelFace", "style", "layout", "align", "alignContent"] }] });
11195
11214
  }
11196
11215
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: StringInputActivity, decorators: [{
11197
11216
  type: Component,