@colijnit/corecomponents_v12 258.1.17 → 258.1.18

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.
@@ -5952,8 +5952,17 @@
5952
5952
 
5953
5953
  var InputDatePickerComponent = /** @class */ (function (_super) {
5954
5954
  __extends(InputDatePickerComponent, _super);
5955
- function InputDatePickerComponent() {
5956
- return _super !== null && _super.apply(this, arguments) || this;
5955
+ function InputDatePickerComponent(formComponent, changeDetector, overlayService, componentFactoryResolver, formUserChangeListener, ngZoneWrapper, elementRef) {
5956
+ var _this = _super.call(this, changeDetector, componentFactoryResolver, overlayService, formUserChangeListener, ngZoneWrapper, elementRef) || this;
5957
+ _this.formComponent = formComponent;
5958
+ _this.changeDetector = changeDetector;
5959
+ _this.overlayService = overlayService;
5960
+ _this.componentFactoryResolver = componentFactoryResolver;
5961
+ _this.formUserChangeListener = formUserChangeListener;
5962
+ _this.ngZoneWrapper = ngZoneWrapper;
5963
+ _this.elementRef = elementRef;
5964
+ _super.prototype._markAsOnPush.call(_this);
5965
+ return _this;
5957
5966
  }
5958
5967
  InputDatePickerComponent.prototype.showClass = function () {
5959
5968
  return true;
@@ -6043,6 +6052,15 @@
6043
6052
  encapsulation: i0.ViewEncapsulation.None
6044
6053
  },] }
6045
6054
  ];
6055
+ InputDatePickerComponent.ctorParameters = function () { return [
6056
+ { type: FormComponent, decorators: [{ type: i0.Optional }] },
6057
+ { type: i0.ChangeDetectorRef },
6058
+ { type: OverlayService },
6059
+ { type: i0.ComponentFactoryResolver },
6060
+ { type: FormInputUserModelChangeListenerService },
6061
+ { type: NgZoneWrapperService },
6062
+ { type: i0.ElementRef }
6063
+ ]; };
6046
6064
  InputDatePickerComponent.propDecorators = {
6047
6065
  showClass: [{ type: i0.HostBinding, args: ['class.co-input-date',] }]
6048
6066
  };
@@ -7314,7 +7332,8 @@
7314
7332
  InputTextModule,
7315
7333
  CalendarModule,
7316
7334
  ClickoutsideModule,
7317
- OverlayModule
7335
+ OverlayModule,
7336
+ forms.ReactiveFormsModule
7318
7337
  ],
7319
7338
  schemas: [
7320
7339
  i0.NO_ERRORS_SCHEMA
@@ -11948,8 +11967,15 @@
11948
11967
 
11949
11968
  var ListOfValuesComponent = /** @class */ (function (_super) {
11950
11969
  __extends(ListOfValuesComponent, _super);
11951
- function ListOfValuesComponent() {
11952
- var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
11970
+ function ListOfValuesComponent(formComponent, changeDetector, overlayService, componentFactoryResolver, formUserChangeListener, ngZoneWrapper, elementRef) {
11971
+ var _this = _super.call(this, changeDetector, componentFactoryResolver, overlayService, formUserChangeListener, ngZoneWrapper, elementRef) || this;
11972
+ _this.formComponent = formComponent;
11973
+ _this.changeDetector = changeDetector;
11974
+ _this.overlayService = overlayService;
11975
+ _this.componentFactoryResolver = componentFactoryResolver;
11976
+ _this.formUserChangeListener = formUserChangeListener;
11977
+ _this.ngZoneWrapper = ngZoneWrapper;
11978
+ _this.elementRef = elementRef;
11953
11979
  _this.icons = exports.CoreComponentsIcon;
11954
11980
  _this.multiselect = false;
11955
11981
  _this.largeCollection = false;
@@ -11963,6 +11989,7 @@
11963
11989
  _this.filteredCollection = [];
11964
11990
  _this.isLoading = false;
11965
11991
  _this._collection = [];
11992
+ _super.prototype._markAsOnPush.call(_this);
11966
11993
  return _this;
11967
11994
  }
11968
11995
  Object.defineProperty(ListOfValuesComponent.prototype, "model", {
@@ -12133,7 +12160,7 @@
12133
12160
  }
12134
12161
  }
12135
12162
  }
12136
- this.model = option;
12163
+ this.setModel(option);
12137
12164
  this.modelChange.emit(this.model);
12138
12165
  this.detectChanges();
12139
12166
  };
@@ -12187,7 +12214,7 @@
12187
12214
  ListOfValuesComponent.decorators = [
12188
12215
  { type: i0.Component, args: [{
12189
12216
  selector: 'co-list-of-values',
12190
- template: "\n <co-input-text\n *ngIf=\"!largeCollection\"\n aria-haspopup=\"listbox\"\n [attr.aria-expanded]=\"isSelectOpen\"\n aria-controls=\"lov-popup\"\n role=\"combobox\"\n class=\"no-focus-line\"\n overlayParent\n #parentForOverlay=\"overlayParent\"\n type=\"text\"\n [id]=\"label\"\n [model]=\"multiselect ? selectedModels : selectedModel\"\n [placeholder]=\"label\"\n [readonly]=\"readonly\"\n [disabled]=\"disabled\"\n [required]=\"required\"\n [noClickFocus]=\"false\"\n [leftIconData]=\"leftIconData\"\n [rightIcon]=\"isSelectOpen ? icons.ChevronUpRegular : icons.ChevronDownRegular\"\n [showClearButton]=\"true\"\n [useContent]=\"multiselect\"\n [customHeight]=\"multiselect\"\n [keepFocussed]=\"keepFocussed\"\n (modelChange)=\"handleInputModelChange($event)\"\n (click)=\"openPopup()\"\n (rightIconClick)=\"toggleSelect()\"\n (keydown)=\"handleInputKeyDown($event)\"\n (clearIconClick)=\"clearModel($event)\"\n (blur)=\"checkModel()\">\n <ng-container *ngIf=\"multiselect && showChips\">\n <div class=\"multiselect-chips-wrapper\">\n <div class=\"chips\" *ngFor=\"let chip of model\">\n <span class=\"chips-description\" [textContent]=\"chip[displayField]\"></span>\n <co-icon class=\"remove-chip-icon\" [icon]=\"icons.CrossSkinny\" (click)=\"removeOptionFromModel(chip)\"></co-icon>\n </div>\n </div>\n </ng-container>\n </co-input-text>\n \n <co-input-text\n *ngIf=\"largeCollection\"\n [model]=\"filterText\"\n [placeholder]=\"label\"\n [required]=\"required\"\n [disabled]=\"disabled\"\n [readonly]=\"readonly\"\n (modelChange)=\"onModelChange($event)\">\n </co-input-text>\n <div *ngIf=\"isLoading\" class=\"filter-loader\"><span></span></div>\n ",
12217
+ template: "\n <co-input-text\n *ngIf=\"!largeCollection\"\n aria-haspopup=\"listbox\"\n [attr.aria-expanded]=\"isSelectOpen\"\n aria-controls=\"lov-popup\"\n role=\"combobox\"\n class=\"no-focus-line\"\n overlayParent\n #parentForOverlay=\"overlayParent\"\n type=\"text\"\n [id]=\"label\"\n [model]=\"multiselect ? selectedModels : selectedModel\"\n [placeholder]=\"label\"\n [myFormInputInstance]=\"this\"\n [readonly]=\"readonly\"\n [disabled]=\"disabled\"\n [required]=\"required\"\n [noClickFocus]=\"false\"\n [leftIconData]=\"leftIconData\"\n [rightIcon]=\"isSelectOpen ? icons.ChevronUpRegular : icons.ChevronDownRegular\"\n [showClearButton]=\"true\"\n [useContent]=\"multiselect\"\n [customHeight]=\"multiselect\"\n [keepFocussed]=\"keepFocussed\"\n (modelChange)=\"handleInputModelChange($event)\"\n (click)=\"openPopup()\"\n (rightIconClick)=\"toggleSelect()\"\n (keydown)=\"handleInputKeyDown($event)\"\n (clearIconClick)=\"clearModel($event)\"\n (blur)=\"checkModel()\">\n <ng-container *ngIf=\"multiselect && showChips\">\n <div class=\"multiselect-chips-wrapper\">\n <div class=\"chips\" *ngFor=\"let chip of model\">\n <span class=\"chips-description\" [textContent]=\"chip[displayField]\"></span>\n <co-icon class=\"remove-chip-icon\" [icon]=\"icons.CrossSkinny\" (click)=\"removeOptionFromModel(chip)\"></co-icon>\n </div>\n </div>\n </ng-container>\n </co-input-text>\n\n <co-input-text\n *ngIf=\"largeCollection\"\n [model]=\"filterText\"\n [placeholder]=\"label\"\n [required]=\"required\"\n [disabled]=\"disabled\"\n [readonly]=\"readonly\"\n (modelChange)=\"onModelChange($event)\">\n </co-input-text>\n <div *ngIf=\"isLoading\" class=\"filter-loader\"><span></span></div>\n <input type=\"hidden\" [ngModel]=\"model\">\n ",
12191
12218
  providers: [
12192
12219
  OverlayService,
12193
12220
  {
@@ -12198,6 +12225,15 @@
12198
12225
  encapsulation: i0.ViewEncapsulation.None
12199
12226
  },] }
12200
12227
  ];
12228
+ ListOfValuesComponent.ctorParameters = function () { return [
12229
+ { type: FormComponent, decorators: [{ type: i0.Optional }] },
12230
+ { type: i0.ChangeDetectorRef },
12231
+ { type: OverlayService },
12232
+ { type: i0.ComponentFactoryResolver },
12233
+ { type: FormInputUserModelChangeListenerService },
12234
+ { type: NgZoneWrapperService },
12235
+ { type: i0.ElementRef }
12236
+ ]; };
12201
12237
  ListOfValuesComponent.propDecorators = {
12202
12238
  model: [{ type: i0.Input }],
12203
12239
  parentForOverlay: [{ type: i0.ViewChild, args: ['parentForOverlay', { read: i0.ElementRef },] }],