@colijnit/corecomponents_v12 12.0.86 → 12.0.88

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.
@@ -1293,13 +1293,24 @@
1293
1293
  }
1294
1294
  Object.defineProperty(IconComponent.prototype, "icon", {
1295
1295
  set: function (value) {
1296
- this._setIconFromEnum(value);
1296
+ if (value) {
1297
+ this._setIconFromEnum(value);
1298
+ }
1299
+ },
1300
+ enumerable: false,
1301
+ configurable: true
1302
+ });
1303
+ Object.defineProperty(IconComponent.prototype, "iconData", {
1304
+ set: function (value) {
1305
+ if (value) {
1306
+ this.innerIconData = value;
1307
+ }
1297
1308
  },
1298
1309
  enumerable: false,
1299
1310
  configurable: true
1300
1311
  });
1301
1312
  IconComponent.prototype._setIconFromEnum = function (icon) {
1302
- this.iconData = this._iconCache.getIcon(icon);
1313
+ this.innerIconData = this._iconCache.getIcon(icon);
1303
1314
  };
1304
1315
  return IconComponent;
1305
1316
  }());
@@ -1315,8 +1326,9 @@
1315
1326
  ]; };
1316
1327
  IconComponent.propDecorators = {
1317
1328
  icon: [{ type: i0.Input }],
1318
- iconData: [{ type: i0.Input }, { type: i0.HostBinding, args: ["innerHtml",] }],
1319
- showClass: [{ type: i0.HostBinding, args: ["class.co-icon",] }]
1329
+ iconData: [{ type: i0.Input }],
1330
+ showClass: [{ type: i0.HostBinding, args: ['class.co-icon',] }],
1331
+ innerIconData: [{ type: i0.HostBinding, args: ['innerHtml',] }]
1320
1332
  };
1321
1333
 
1322
1334
  var IconModule = /** @class */ (function () {
@@ -7715,6 +7727,8 @@
7715
7727
  _this.showClearButton = undefined;
7716
7728
  _this.showPlaceholderOnFocus = true;
7717
7729
  _this.noStyle = false;
7730
+ _this.leftIconClick = new i0.EventEmitter();
7731
+ _this.rightIconClick = new i0.EventEmitter();
7718
7732
  _this.hasOwnLabel = true;
7719
7733
  _this.hideArrowButtons = false;
7720
7734
  _this.isSmall = false;
@@ -7746,14 +7760,14 @@
7746
7760
  };
7747
7761
  Object.defineProperty(InputTextComponent.prototype, "hasLeftIcon", {
7748
7762
  get: function () {
7749
- return this.leftIcon !== undefined && this.leftIcon !== null;
7763
+ return (this.leftIcon !== undefined && this.leftIcon !== null) || (this.leftIconData !== undefined && this.leftIconData !== null);
7750
7764
  },
7751
7765
  enumerable: false,
7752
7766
  configurable: true
7753
7767
  });
7754
7768
  Object.defineProperty(InputTextComponent.prototype, "hasRightIcon", {
7755
7769
  get: function () {
7756
- return this.rightIcon !== undefined && this.rightIcon !== null;
7770
+ return (this.rightIcon !== undefined && this.rightIcon !== null) || (this.rightIconData !== undefined && this.rightIconData !== null);
7757
7771
  },
7758
7772
  enumerable: false,
7759
7773
  configurable: true
@@ -7768,7 +7782,7 @@
7768
7782
  InputTextComponent.decorators = [
7769
7783
  { type: i0.Component, args: [{
7770
7784
  selector: "co-input-text",
7771
- template: "\n <label *ngIf=\"showPlaceholderOnFocus || (!showPlaceholderOnFocus && !hasValue && !focused)\"\n [textContent]=\"placeholder\"></label>\n <co-icon *ngIf=\"leftIcon\" class=\"input-text-left-icon\" [icon]=\"leftIcon\"></co-icon>\n <co-icon *ngIf=\"rightIcon\" class=\"input-text-right-icon\" [icon]=\"rightIcon\"></co-icon>\n <input #input\n [type]=\"digitsOnly ? 'number' : type\"\n [ngModel]=\"model\"\n [min]=\"type === 'number' && this.min ? this.min : undefined\"\n [max]=\"type === 'number' && this.max ? this.max : undefined\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n (ngModelChange)=\"modelChange.emit($event)\"\n (keydown)=\"digitsOnly ? excludeNonDigitChars($event) : true\"\n >\n <co-commit-buttons *ngIf=\"showSaveCancel && focused && canSaveOrCancel\"\n [committing]=\"committing\"\n [commitFinished]=\"commitFinished\"\n (commitClick)=\"commitClick($event)\"\n (cancelClick)=\"cancelClick($event)\"\n >\n </co-commit-buttons>\n <div class=\"required-indicator\"></div>\n <ng-template #validationError></ng-template>\n ",
7785
+ template: "\n <co-icon *ngIf=\"leftIcon || leftIconData\" class=\"input-text-left-icon\" [icon]=\"leftIcon\" [iconData]=\"leftIconData\" (click)=\"leftIconClick.emit($event)\"></co-icon>\n <label *ngIf=\"showPlaceholderOnFocus || (!showPlaceholderOnFocus && !hasValue && !focused)\"\n [textContent]=\"placeholder\"></label>\n <input #input\n [type]=\"digitsOnly ? 'number' : type\"\n [ngModel]=\"model\"\n [min]=\"type === 'number' && this.min ? this.min : undefined\"\n [max]=\"type === 'number' && this.max ? this.max : undefined\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n (ngModelChange)=\"modelChange.emit($event)\"\n (keydown)=\"digitsOnly ? excludeNonDigitChars($event) : true\"\n >\n <co-icon *ngIf=\"rightIcon || rightIconData\" class=\"input-text-right-icon\" [icon]=\"rightIcon\" [iconData]=\"rightIconData\" (click)=\"rightIconClick.emit($event)\"></co-icon>\n <co-commit-buttons *ngIf=\"showSaveCancel && focused && canSaveOrCancel\"\n [committing]=\"committing\"\n [commitFinished]=\"commitFinished\"\n (commitClick)=\"commitClick($event)\"\n (cancelClick)=\"cancelClick($event)\"\n >\n </co-commit-buttons>\n <div class=\"required-indicator\"></div>\n <ng-template #validationError></ng-template>\n ",
7772
7786
  providers: [{
7773
7787
  provide: COMPONENT_INTERFACE_NAME,
7774
7788
  useExisting: i0.forwardRef(function () { return InputTextComponent; })
@@ -7798,13 +7812,17 @@
7798
7812
  keyDownWhiteList: [{ type: i0.Input }],
7799
7813
  showPlaceholderOnFocus: [{ type: i0.Input }],
7800
7814
  leftIcon: [{ type: i0.Input }],
7815
+ leftIconData: [{ type: i0.Input }],
7801
7816
  rightIcon: [{ type: i0.Input }],
7817
+ rightIconData: [{ type: i0.Input }],
7802
7818
  noStyle: [{ type: i0.HostBinding, args: ['class.no-style',] }, { type: i0.Input }],
7819
+ leftIconClick: [{ type: i0.Output }],
7820
+ rightIconClick: [{ type: i0.Output }],
7803
7821
  showClass: [{ type: i0.HostBinding, args: ["class.co-input-text",] }],
7804
7822
  hasLeftIcon: [{ type: i0.HostBinding, args: ['class.has-left-icon',] }],
7805
7823
  hasRightIcon: [{ type: i0.HostBinding, args: ['class.has-right-icon',] }],
7806
7824
  hasOwnLabel: [{ type: i0.HostBinding, args: ["class.has-own-label",] }],
7807
- hideArrowButtons: [{ type: i0.Input }, { type: i0.HostBinding, args: ['class.hideArrows',] }],
7825
+ hideArrowButtons: [{ type: i0.Input }, { type: i0.HostBinding, args: ['class.hide-arrows',] }],
7808
7826
  isSmall: [{ type: i0.HostBinding, args: ['class.is-small',] }, { type: i0.Input }]
7809
7827
  };
7810
7828
 
@@ -7968,7 +7986,8 @@
7968
7986
  _this.useLeftIcon = false;
7969
7987
  _this.useRightIcon = false;
7970
7988
  _this.centerLabel = false;
7971
- _this.isSmall = false;
7989
+ _this.leftIconClick = new i0.EventEmitter();
7990
+ _this.rightIconClick = new i0.EventEmitter();
7972
7991
  return _this;
7973
7992
  }
7974
7993
  InputSearchComponent.prototype.showClass = function () {
@@ -7988,7 +8007,7 @@
7988
8007
  InputSearchComponent.decorators = [
7989
8008
  { type: i0.Component, args: [{
7990
8009
  selector: 'co-input-search',
7991
- template: "\n <co-input-text\n [model]=\"model\"\n [leftIcon]=\"useLeftIcon ? searchIcon : null\"\n [rightIcon]=\"useRightIcon ? searchIcon : null\"\n [placeholder]=\"placeholder\"\n [customHeight]=\"customHeight\"\n [showPlaceholderOnFocus]=\"false\"\n (modelChange)=\"modelChange.emit($event)\"\n ></co-input-text>\n ",
8010
+ template: "\n <co-input-text\n [model]=\"model\"\n [leftIcon]=\"useLeftIcon && !leftIconData ? searchIcon : null\"\n [rightIcon]=\"useRightIcon && !rightIconData ? searchIcon : null\"\n [leftIconData]=\"useLeftIcon && leftIconData ? leftIconData : null\"\n [rightIconData]=\"useRightIcon && rightIconData ? rightIconData : null\"\n [placeholder]=\"placeholder\"\n [customHeight]=\"true\"\n [showPlaceholderOnFocus]=\"false\"\n (modelChange)=\"modelChange.emit($event)\"\n (leftIconClick)=\"leftIconClick.emit($event)\"\n (rightIconClick)=\"rightIconClick.emit($event)\"\n ></co-input-text>\n ",
7992
8011
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
7993
8012
  encapsulation: i0.ViewEncapsulation.None
7994
8013
  },] }
@@ -7998,8 +8017,11 @@
7998
8017
  search: [{ type: i0.Output }],
7999
8018
  useLeftIcon: [{ type: i0.Input }],
8000
8019
  useRightIcon: [{ type: i0.Input }],
8020
+ leftIconData: [{ type: i0.Input }],
8021
+ rightIconData: [{ type: i0.Input }],
8001
8022
  centerLabel: [{ type: i0.HostBinding, args: ['class.center-label',] }, { type: i0.Input }],
8002
- isSmall: [{ type: i0.HostBinding, args: ['class.is-small',] }, { type: i0.Input }],
8023
+ leftIconClick: [{ type: i0.Output }],
8024
+ rightIconClick: [{ type: i0.Output }],
8003
8025
  showClass: [{ type: i0.HostBinding, args: ['class.co-input-search',] }]
8004
8026
  };
8005
8027
  __decorate([