@coolon/angular-ui-powerups 0.0.128 → 0.0.130

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 (24) hide show
  1. package/bundles/coolon-angular-ui-powerups.umd.js +14 -12
  2. package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
  3. package/bundles/coolon-angular-ui-powerups.umd.min.js +1 -1
  4. package/bundles/coolon-angular-ui-powerups.umd.min.js.map +1 -1
  5. package/coolon-angular-ui-powerups.metadata.json +1 -1
  6. package/esm2015/lib/components/components.module.ngfactory.js.map +1 -1
  7. package/esm2015/lib/components/forms/select-input/select-input.component.js +11 -2
  8. package/esm2015/lib/components/forms/select-input/select-input.component.js.map +1 -1
  9. package/esm2015/lib/components/forms/select-input/select-input.component.metadata.json +1 -1
  10. package/esm2015/lib/place/place-router.js +4 -11
  11. package/esm2015/lib/place/place-router.js.map +1 -1
  12. package/esm2015/lib/place/place-router.metadata.json +1 -1
  13. package/esm5/lib/components/components.module.ngfactory.js.map +1 -1
  14. package/esm5/lib/components/forms/select-input/select-input.component.js +11 -2
  15. package/esm5/lib/components/forms/select-input/select-input.component.js.map +1 -1
  16. package/esm5/lib/place/place-router.js +4 -11
  17. package/esm5/lib/place/place-router.js.map +1 -1
  18. package/fesm2015/coolon-angular-ui-powerups.js +15 -13
  19. package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
  20. package/fesm5/coolon-angular-ui-powerups.js +15 -13
  21. package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
  22. package/lib/components/forms/select-input/select-input.component.d.ts +4 -1
  23. package/lib/place/place-router.d.ts +1 -1
  24. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { DOCUMENT, CommonModule, Location } from '@angular/common';
2
- import { Directive, ElementRef, Inject, Input, HostListener, NgZone, NgModule, EventEmitter, Output, Component, InjectionToken, Injector, ComponentFactoryResolver, ViewContainerRef, ViewChild, ViewChildren, Injectable, ɵɵdefineInjectable, ɵɵinject, Optional, SkipSelf, HostBinding } from '@angular/core';
2
+ import { Directive, ElementRef, Inject, Input, HostListener, NgZone, NgModule, EventEmitter, Output, Component, ContentChild, InjectionToken, Injector, ComponentFactoryResolver, ViewContainerRef, ViewChild, ViewChildren, Injectable, ɵɵdefineInjectable, ɵɵinject, Optional, SkipSelf, HostBinding } from '@angular/core';
3
3
  import { FormsModule } from '@angular/forms';
4
4
  import { MatInputModule, MatFormFieldModule, MatSelectModule, MatButtonModule, MatDialogModule, MatTabsModule as MatTabsModule$1, MatProgressSpinnerModule, MatDialog } from '@angular/material';
5
5
  import { MatTabsModule } from '@angular/material/tabs';
@@ -789,7 +789,7 @@ var SelectInputComponent = /** @class */ (function (_super) {
789
789
  SelectInputComponent.decorators = [
790
790
  { type: Component, args: [{
791
791
  selector: 'aup-select-input',
792
- 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 *ngFor=\"let option of optionsModel.value\" [value]=\"option\">{{optionLabelFormat(option)}}\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",
792
+ 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",
793
793
  styles: [":host{display:inline-block}mat-form-field{width:100%}"]
794
794
  }] }
795
795
  ];
@@ -799,6 +799,9 @@ var SelectInputComponent = /** @class */ (function (_super) {
799
799
  optionsModel: [{ type: Input }],
800
800
  options: [{ type: Input }],
801
801
  optionLabel: [{ type: Input }],
802
+ allowNil: [{ type: Input }],
803
+ optionTemplateRef: [{ type: ContentChild, args: ["optionTemplate", { static: false },] }],
804
+ nilOptionTemplateRef: [{ type: ContentChild, args: ["nilOptionTemplate", { static: false },] }],
802
805
  optionLabelFormat: [{ type: Input }]
803
806
  };
804
807
  __decorate([
@@ -819,6 +822,12 @@ if (false) {
819
822
  /** @type {?} */
820
823
  SelectInputComponent.prototype.optionLabel;
821
824
  /** @type {?} */
825
+ SelectInputComponent.prototype.allowNil;
826
+ /** @type {?} */
827
+ SelectInputComponent.prototype.optionTemplateRef;
828
+ /** @type {?} */
829
+ SelectInputComponent.prototype.nilOptionTemplateRef;
830
+ /** @type {?} */
822
831
  SelectInputComponent.prototype.optionLabelFormat;
823
832
  }
824
833
 
@@ -6466,7 +6475,7 @@ var PlaceRouter = /** @class */ (function (_super) {
6466
6475
  * @param {?} func
6467
6476
  * @return {?}
6468
6477
  */
6469
- PlaceRouter.prototype.runAfterCurrentRoutingSession = /**
6478
+ PlaceRouter.prototype.runAfterRoutingSessionFinishes = /**
6470
6479
  * @private
6471
6480
  * @param {?} func
6472
6481
  * @return {?}
@@ -6507,17 +6516,13 @@ var PlaceRouter = /** @class */ (function (_super) {
6507
6516
  * @return {?}
6508
6517
  */
6509
6518
  function (resolve, reject) {
6510
- _this.runAfterCurrentRoutingSession((/**
6519
+ _this.runAfterRoutingSessionFinishes((/**
6511
6520
  * @return {?}
6512
6521
  */
6513
6522
  function () {
6514
- // console.log(`Starting delayed sync job`);
6523
+ _this.runAfterRoutingSessionFinishes(resolve);
6515
6524
  /** @type {?} */
6516
6525
  var syncSession = new SynchroniseInteractionContextIdsWithRoute(_this.navigationContext, _this.urlService.getCurrentRouterUrl(), false);
6517
- syncSession.onDispose((/**
6518
- * @return {?}
6519
- */
6520
- function () { return resolve(); }));
6521
6526
  _this.transitionTo(syncSession);
6522
6527
  }));
6523
6528
  }));
@@ -6530,12 +6535,9 @@ var PlaceRouter = /** @class */ (function (_super) {
6530
6535
  */
6531
6536
  function (resolve, reject) {
6532
6537
  // console.log(`No navigation in progress, starting synchronisation job`);
6538
+ _this.runAfterRoutingSessionFinishes(resolve);
6533
6539
  /** @type {?} */
6534
6540
  var session = new SynchroniseInteractionContextIdsWithRoute(_this.navigationContext, _this.urlService.getCurrentRouterUrl(), false);
6535
- session.onDispose((/**
6536
- * @return {?}
6537
- */
6538
- function () { return resolve(); }));
6539
6541
  _this.transitionTo(session);
6540
6542
  })));
6541
6543
  }