@colijnit/corecomponents_v12 259.1.2 → 259.1.3

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
@@ -11782,8 +11801,15 @@
11782
11801
 
11783
11802
  var ListOfValuesComponent = /** @class */ (function (_super) {
11784
11803
  __extends(ListOfValuesComponent, _super);
11785
- function ListOfValuesComponent() {
11786
- var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
11804
+ function ListOfValuesComponent(formComponent, changeDetector, overlayService, componentFactoryResolver, formUserChangeListener, ngZoneWrapper, elementRef) {
11805
+ var _this = _super.call(this, changeDetector, componentFactoryResolver, overlayService, formUserChangeListener, ngZoneWrapper, elementRef) || this;
11806
+ _this.formComponent = formComponent;
11807
+ _this.changeDetector = changeDetector;
11808
+ _this.overlayService = overlayService;
11809
+ _this.componentFactoryResolver = componentFactoryResolver;
11810
+ _this.formUserChangeListener = formUserChangeListener;
11811
+ _this.ngZoneWrapper = ngZoneWrapper;
11812
+ _this.elementRef = elementRef;
11787
11813
  _this.icons = exports.CoreComponentsIcon;
11788
11814
  _this.multiselect = false;
11789
11815
  _this.largeCollection = false;
@@ -11797,6 +11823,7 @@
11797
11823
  _this.filteredCollection = [];
11798
11824
  _this.isLoading = false;
11799
11825
  _this._collection = [];
11826
+ _super.prototype._markAsOnPush.call(_this);
11800
11827
  return _this;
11801
11828
  }
11802
11829
  Object.defineProperty(ListOfValuesComponent.prototype, "model", {
@@ -11967,7 +11994,7 @@
11967
11994
  }
11968
11995
  }
11969
11996
  }
11970
- this.model = option;
11997
+ this.setModel(option);
11971
11998
  this.modelChange.emit(this.model);
11972
11999
  this.detectChanges();
11973
12000
  };
@@ -12021,7 +12048,7 @@
12021
12048
  ListOfValuesComponent.decorators = [
12022
12049
  { type: i0.Component, args: [{
12023
12050
  selector: 'co-list-of-values',
12024
- 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 ",
12051
+ 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 ",
12025
12052
  providers: [
12026
12053
  OverlayService,
12027
12054
  {
@@ -12032,6 +12059,15 @@
12032
12059
  encapsulation: i0.ViewEncapsulation.None
12033
12060
  },] }
12034
12061
  ];
12062
+ ListOfValuesComponent.ctorParameters = function () { return [
12063
+ { type: FormComponent, decorators: [{ type: i0.Optional }] },
12064
+ { type: i0.ChangeDetectorRef },
12065
+ { type: OverlayService },
12066
+ { type: i0.ComponentFactoryResolver },
12067
+ { type: FormInputUserModelChangeListenerService },
12068
+ { type: NgZoneWrapperService },
12069
+ { type: i0.ElementRef }
12070
+ ]; };
12035
12071
  ListOfValuesComponent.propDecorators = {
12036
12072
  model: [{ type: i0.Input }],
12037
12073
  parentForOverlay: [{ type: i0.ViewChild, args: ['parentForOverlay', { read: i0.ElementRef },] }],