@colijnit/corecomponents_v12 12.0.116 → 12.0.118

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.
@@ -1301,12 +1301,22 @@
1301
1301
  enumerable: false,
1302
1302
  configurable: true
1303
1303
  });
1304
+ Object.defineProperty(IconComponent.prototype, "iconData", {
1305
+ set: function (value) {
1306
+ if (value) {
1307
+ this._iconData = value;
1308
+ this._prepareIcon();
1309
+ }
1310
+ },
1311
+ enumerable: false,
1312
+ configurable: true
1313
+ });
1304
1314
  IconComponent.prototype.ngOnInit = function () {
1305
1315
  this._prepareIcon();
1306
1316
  };
1307
1317
  IconComponent.prototype._prepareIcon = function () {
1308
- if (this.iconData) {
1309
- this.innerIconData = this.iconData;
1318
+ if (this._iconData) {
1319
+ this.innerIconData = this._iconData;
1310
1320
  }
1311
1321
  else if (this._icon) {
1312
1322
  this._setIconFromEnum(this._icon);
@@ -3748,7 +3758,7 @@
3748
3758
  CoDialogComponent.decorators = [
3749
3759
  { type: i0.Component, args: [{
3750
3760
  selector: 'co-dialog',
3751
- template: "\n <div class=\"co-dialog-overlay\" (click)=\"handleOverlayClick($event)\"></div>\n <div class=\"co-dialog-wrapper\" @showHideDialog>\n <div class=\"dialog-header\" *ngIf=\"!borderless\">\n <div class=\"dialog-header-caption\" *ngIf=\"headerTemplate\">\n <ng-container [ngTemplateOutlet]=\"headerTemplate\"></ng-container>\n </div>\n <div class=\"dialog-close-button\" *ngIf=\"showCloseIcon\" (click)=\"handleCloseDialog($event)\">\n <co-icon [icon]=\"icons.Cancel\"></co-icon>\n </div>\n </div>\n <div class=\"dialog-content\" [ngClass]=\"customCssClass ? customCssClass : undefined\">\n <ng-content></ng-content>\n </div>\n <div class=\"dialog-footer\" *ngIf=\"footerTemplate\">\n <ng-container [ngTemplateOutlet]=\"footerTemplate\"></ng-container>\n </div>\n </div>\n ",
3761
+ template: "\n <div class=\"co-dialog-overlay\" (click)=\"handleOverlayClick($event)\"></div>\n <div class=\"co-dialog-wrapper\" [ngClass]=\"customCssClass ? customCssClass : undefined\" @showHideDialog>\n <div class=\"dialog-header\" *ngIf=\"!borderless\">\n <div class=\"dialog-header-caption\" *ngIf=\"headerTemplate\">\n <ng-container [ngTemplateOutlet]=\"headerTemplate\"></ng-container>\n </div>\n <div class=\"dialog-close-button\" *ngIf=\"showCloseIcon\" (click)=\"handleCloseDialog($event)\">\n <co-icon [icon]=\"icons.Cancel\"></co-icon>\n </div>\n </div>\n <div class=\"dialog-content\" [ngClass]=\"customCssClass ? customCssClass : undefined\">\n <ng-content></ng-content>\n </div>\n <div class=\"dialog-footer\" *ngIf=\"footerTemplate\">\n <ng-container [ngTemplateOutlet]=\"footerTemplate\"></ng-container>\n </div>\n </div>\n ",
3752
3762
  animations: [
3753
3763
  animations.trigger('showHideCoDialog', [
3754
3764
  animations.transition('void => *', [
@@ -6911,6 +6921,9 @@
6911
6921
  var day = this.model.toLocaleString("default", { day: "2-digit" });
6912
6922
  this.modelAsString = year + "-" + month + "-" + day;
6913
6923
  }
6924
+ else {
6925
+ this.modelAsString = null;
6926
+ }
6914
6927
  };
6915
6928
  return InputDatePickerComponent;
6916
6929
  }(BaseInputDatePickerDirective));
@@ -11019,9 +11032,9 @@
11019
11032
  if (emit === void 0) { emit = true; }
11020
11033
  if (this.selectedRowIndex !== index && ((this.editing && this.validateAndSave()) || !this.editing)) {
11021
11034
  this.selectedRowIndex = index;
11022
- if (emit) {
11023
- this.selectRow.next(this.data[this.selectedRowIndex]);
11024
- }
11035
+ }
11036
+ if (emit) {
11037
+ this.selectRow.next(this.data[this.selectedRowIndex]);
11025
11038
  }
11026
11039
  this._detectChanges();
11027
11040
  };
@@ -12278,7 +12291,7 @@
12278
12291
  }
12279
12292
  };
12280
12293
  ListOfValuesComponent.prototype.clearModel = function (event) {
12281
- this.model = undefined;
12294
+ this.setModel([]);
12282
12295
  };
12283
12296
  ListOfValuesComponent.prototype.toggleSelect = function () {
12284
12297
  if (this.readonly) {