@colijnit/corecomponents_v12 259.1.2 → 259.1.4

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
@@ -9776,6 +9795,7 @@
9776
9795
  this.headerColumns = [];
9777
9796
  this.headerColumnsCopy = [];
9778
9797
  this._data = [];
9798
+ this._exportData = [];
9779
9799
  this.disabledRows = [];
9780
9800
  this._prepared = false;
9781
9801
  }
@@ -9799,6 +9819,16 @@
9799
9819
  enumerable: false,
9800
9820
  configurable: true
9801
9821
  });
9822
+ Object.defineProperty(BaseSimpleGridComponent.prototype, "exportData", {
9823
+ get: function () {
9824
+ return this._exportData;
9825
+ },
9826
+ set: function (value) {
9827
+ this._exportData = value;
9828
+ },
9829
+ enumerable: false,
9830
+ configurable: true
9831
+ });
9802
9832
  Object.defineProperty(BaseSimpleGridComponent.prototype, "extraColumns", {
9803
9833
  set: function (value) {
9804
9834
  this._setColumns(value);
@@ -9907,6 +9937,7 @@
9907
9937
  BaseSimpleGridComponent.propDecorators = {
9908
9938
  content: [{ type: i0.ContentChildren, args: [SimpleGridColumnDirective,] }],
9909
9939
  data: [{ type: i0.Input }],
9940
+ exportData: [{ type: i0.Input }],
9910
9941
  dragDropEnabled: [{ type: i0.Input }],
9911
9942
  resizable: [{ type: i0.Input }],
9912
9943
  inlineEdit: [{ type: i0.Input }],
@@ -10442,7 +10473,7 @@
10442
10473
  };
10443
10474
  SimpleGridComponent.prototype.exportToExcel = function () {
10444
10475
  this.isSettingsMenuOpen = false;
10445
- var exportData = this._filterSelectedOrReturnAll(this.data);
10476
+ var exportData = this.exportData.length > 0 ? this._filterSelectedOrReturnAll(this.exportData) : this._filterSelectedOrReturnAll(this.data);
10446
10477
  var columns = this.headerColumnsCopy.map(function (column) {
10447
10478
  return ({
10448
10479
  key: column.field,
@@ -11782,8 +11813,15 @@
11782
11813
 
11783
11814
  var ListOfValuesComponent = /** @class */ (function (_super) {
11784
11815
  __extends(ListOfValuesComponent, _super);
11785
- function ListOfValuesComponent() {
11786
- var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
11816
+ function ListOfValuesComponent(formComponent, changeDetector, overlayService, componentFactoryResolver, formUserChangeListener, ngZoneWrapper, elementRef) {
11817
+ var _this = _super.call(this, changeDetector, componentFactoryResolver, overlayService, formUserChangeListener, ngZoneWrapper, elementRef) || this;
11818
+ _this.formComponent = formComponent;
11819
+ _this.changeDetector = changeDetector;
11820
+ _this.overlayService = overlayService;
11821
+ _this.componentFactoryResolver = componentFactoryResolver;
11822
+ _this.formUserChangeListener = formUserChangeListener;
11823
+ _this.ngZoneWrapper = ngZoneWrapper;
11824
+ _this.elementRef = elementRef;
11787
11825
  _this.icons = exports.CoreComponentsIcon;
11788
11826
  _this.multiselect = false;
11789
11827
  _this.largeCollection = false;
@@ -11797,6 +11835,7 @@
11797
11835
  _this.filteredCollection = [];
11798
11836
  _this.isLoading = false;
11799
11837
  _this._collection = [];
11838
+ _super.prototype._markAsOnPush.call(_this);
11800
11839
  return _this;
11801
11840
  }
11802
11841
  Object.defineProperty(ListOfValuesComponent.prototype, "model", {
@@ -11967,7 +12006,7 @@
11967
12006
  }
11968
12007
  }
11969
12008
  }
11970
- this.model = option;
12009
+ this.setModel(option);
11971
12010
  this.modelChange.emit(this.model);
11972
12011
  this.detectChanges();
11973
12012
  };
@@ -12021,7 +12060,7 @@
12021
12060
  ListOfValuesComponent.decorators = [
12022
12061
  { type: i0.Component, args: [{
12023
12062
  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 ",
12063
+ 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
12064
  providers: [
12026
12065
  OverlayService,
12027
12066
  {
@@ -12032,6 +12071,15 @@
12032
12071
  encapsulation: i0.ViewEncapsulation.None
12033
12072
  },] }
12034
12073
  ];
12074
+ ListOfValuesComponent.ctorParameters = function () { return [
12075
+ { type: FormComponent, decorators: [{ type: i0.Optional }] },
12076
+ { type: i0.ChangeDetectorRef },
12077
+ { type: OverlayService },
12078
+ { type: i0.ComponentFactoryResolver },
12079
+ { type: FormInputUserModelChangeListenerService },
12080
+ { type: NgZoneWrapperService },
12081
+ { type: i0.ElementRef }
12082
+ ]; };
12035
12083
  ListOfValuesComponent.propDecorators = {
12036
12084
  model: [{ type: i0.Input }],
12037
12085
  parentForOverlay: [{ type: i0.ViewChild, args: ['parentForOverlay', { read: i0.ElementRef },] }],