@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
@@ -972,7 +972,7 @@
972
972
  SelectInputComponent.decorators = [
973
973
  { type: core.Component, args: [{
974
974
  selector: 'aup-select-input',
975
- 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",
975
+ 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",
976
976
  styles: [":host{display:inline-block}mat-form-field{width:100%}"]
977
977
  }] }
978
978
  ];
@@ -982,6 +982,9 @@
982
982
  optionsModel: [{ type: core.Input }],
983
983
  options: [{ type: core.Input }],
984
984
  optionLabel: [{ type: core.Input }],
985
+ allowNil: [{ type: core.Input }],
986
+ optionTemplateRef: [{ type: core.ContentChild, args: ["optionTemplate", { static: false },] }],
987
+ nilOptionTemplateRef: [{ type: core.ContentChild, args: ["nilOptionTemplate", { static: false },] }],
985
988
  optionLabelFormat: [{ type: core.Input }]
986
989
  };
987
990
  __decorate([
@@ -1002,6 +1005,12 @@
1002
1005
  /** @type {?} */
1003
1006
  SelectInputComponent.prototype.optionLabel;
1004
1007
  /** @type {?} */
1008
+ SelectInputComponent.prototype.allowNil;
1009
+ /** @type {?} */
1010
+ SelectInputComponent.prototype.optionTemplateRef;
1011
+ /** @type {?} */
1012
+ SelectInputComponent.prototype.nilOptionTemplateRef;
1013
+ /** @type {?} */
1005
1014
  SelectInputComponent.prototype.optionLabelFormat;
1006
1015
  }
1007
1016
 
@@ -6649,7 +6658,7 @@
6649
6658
  * @param {?} func
6650
6659
  * @return {?}
6651
6660
  */
6652
- PlaceRouter.prototype.runAfterCurrentRoutingSession = /**
6661
+ PlaceRouter.prototype.runAfterRoutingSessionFinishes = /**
6653
6662
  * @private
6654
6663
  * @param {?} func
6655
6664
  * @return {?}
@@ -6690,17 +6699,13 @@
6690
6699
  * @return {?}
6691
6700
  */
6692
6701
  function (resolve, reject) {
6693
- _this.runAfterCurrentRoutingSession((/**
6702
+ _this.runAfterRoutingSessionFinishes((/**
6694
6703
  * @return {?}
6695
6704
  */
6696
6705
  function () {
6697
- // console.log(`Starting delayed sync job`);
6706
+ _this.runAfterRoutingSessionFinishes(resolve);
6698
6707
  /** @type {?} */
6699
6708
  var syncSession = new SynchroniseInteractionContextIdsWithRoute(_this.navigationContext, _this.urlService.getCurrentRouterUrl(), false);
6700
- syncSession.onDispose((/**
6701
- * @return {?}
6702
- */
6703
- function () { return resolve(); }));
6704
6709
  _this.transitionTo(syncSession);
6705
6710
  }));
6706
6711
  }));
@@ -6713,12 +6718,9 @@
6713
6718
  */
6714
6719
  function (resolve, reject) {
6715
6720
  // console.log(`No navigation in progress, starting synchronisation job`);
6721
+ _this.runAfterRoutingSessionFinishes(resolve);
6716
6722
  /** @type {?} */
6717
6723
  var session = new SynchroniseInteractionContextIdsWithRoute(_this.navigationContext, _this.urlService.getCurrentRouterUrl(), false);
6718
- session.onDispose((/**
6719
- * @return {?}
6720
- */
6721
- function () { return resolve(); }));
6722
6724
  _this.transitionTo(session);
6723
6725
  })));
6724
6726
  }