@colijnit/corecomponents_v12 257.1.32 → 257.1.34

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
  };
@@ -10569,6 +10587,9 @@
10569
10587
  else if (typeof value === 'object' && value !== null) {
10570
10588
  return JSON.stringify(value);
10571
10589
  }
10590
+ else if (typeof value === 'boolean') {
10591
+ return String(value);
10592
+ }
10572
10593
  else {
10573
10594
  if (!value)
10574
10595
  return '';
@@ -10579,7 +10600,10 @@
10579
10600
  return String(value);
10580
10601
  }
10581
10602
  }); });
10582
- var csvContent = __spreadArray([headers], __read(rows)).map(function (row) { return row.map(function (cell) { return "\"" + cell.replace(/"/g, '""') + "\""; }).join(','); }).join('\r\n');
10603
+ // const csvContent = [headers, ...rows].map(row =>
10604
+ // row.map(cell => `"${cell.replace(/"/g, '""')}"`).join(',')
10605
+ // ).join('\r\n');
10606
+ var csvContent = __spreadArray([headers], __read(rows)).map(function (row) { return row.map(function (cell) { return "\"" + String(cell).replace(/"/g, '""') + "\""; }).join(','); }).join('\r\n');
10583
10607
  var blob = new Blob([csvContent], { type: 'text/csv;charset=utf-8;' });
10584
10608
  var link = document.createElement('a');
10585
10609
  var url = URL.createObjectURL(blob);
@@ -11845,8 +11869,15 @@
11845
11869
 
11846
11870
  var ListOfValuesComponent = /** @class */ (function (_super) {
11847
11871
  __extends(ListOfValuesComponent, _super);
11848
- function ListOfValuesComponent() {
11849
- var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
11872
+ function ListOfValuesComponent(formComponent, changeDetector, overlayService, componentFactoryResolver, formUserChangeListener, ngZoneWrapper, elementRef) {
11873
+ var _this = _super.call(this, changeDetector, componentFactoryResolver, overlayService, formUserChangeListener, ngZoneWrapper, elementRef) || this;
11874
+ _this.formComponent = formComponent;
11875
+ _this.changeDetector = changeDetector;
11876
+ _this.overlayService = overlayService;
11877
+ _this.componentFactoryResolver = componentFactoryResolver;
11878
+ _this.formUserChangeListener = formUserChangeListener;
11879
+ _this.ngZoneWrapper = ngZoneWrapper;
11880
+ _this.elementRef = elementRef;
11850
11881
  _this.icons = exports.CoreComponentsIcon;
11851
11882
  _this.multiselect = false;
11852
11883
  _this.largeCollection = false;
@@ -11860,6 +11891,7 @@
11860
11891
  _this.filteredCollection = [];
11861
11892
  _this.isLoading = false;
11862
11893
  _this._collection = [];
11894
+ _super.prototype._markAsOnPush.call(_this);
11863
11895
  return _this;
11864
11896
  }
11865
11897
  Object.defineProperty(ListOfValuesComponent.prototype, "model", {
@@ -12030,7 +12062,7 @@
12030
12062
  }
12031
12063
  }
12032
12064
  }
12033
- this.model = option;
12065
+ this.setModel(option);
12034
12066
  this.modelChange.emit(this.model);
12035
12067
  this.detectChanges();
12036
12068
  };
@@ -12084,7 +12116,7 @@
12084
12116
  ListOfValuesComponent.decorators = [
12085
12117
  { type: i0.Component, args: [{
12086
12118
  selector: 'co-list-of-values',
12087
- 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 ",
12119
+ 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 ",
12088
12120
  providers: [
12089
12121
  OverlayService,
12090
12122
  {
@@ -12095,6 +12127,15 @@
12095
12127
  encapsulation: i0.ViewEncapsulation.None
12096
12128
  },] }
12097
12129
  ];
12130
+ ListOfValuesComponent.ctorParameters = function () { return [
12131
+ { type: FormComponent, decorators: [{ type: i0.Optional }] },
12132
+ { type: i0.ChangeDetectorRef },
12133
+ { type: OverlayService },
12134
+ { type: i0.ComponentFactoryResolver },
12135
+ { type: FormInputUserModelChangeListenerService },
12136
+ { type: NgZoneWrapperService },
12137
+ { type: i0.ElementRef }
12138
+ ]; };
12098
12139
  ListOfValuesComponent.propDecorators = {
12099
12140
  model: [{ type: i0.Input }],
12100
12141
  parentForOverlay: [{ type: i0.ViewChild, args: ['parentForOverlay', { read: i0.ElementRef },] }],