@farris/ui-list-filter 0.1.14 → 0.1.15

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.
@@ -3369,7 +3369,7 @@
3369
3369
  var igv = (( /** @type {?} */(qc.value)));
3370
3370
  /** @type {?} */
3371
3371
  var arr = [];
3372
- if (igv.textValue.length == 0) {
3372
+ if (igv.textValue === undefined || igv.textValue === null || igv.textValue.length == 0) {
3373
3373
  return [];
3374
3374
  }
3375
3375
  else if (igv.isInputText) {
@@ -7507,10 +7507,20 @@
7507
7507
  }
7508
7508
  this.searchHandle.emit();
7509
7509
  };
7510
+ /**
7511
+ * @return {?}
7512
+ */
7513
+ FilterInputGroupComponent.prototype.onClear = /**
7514
+ * @return {?}
7515
+ */
7516
+ function () {
7517
+ (( /** @type {?} */(this.item.value))).clearValue();
7518
+ this.searchHandle.emit();
7519
+ };
7510
7520
  FilterInputGroupComponent.decorators = [
7511
7521
  { type: i0.Component, args: [{
7512
7522
  selector: 'app-filter-inputgroup',
7513
- template: "<label class=\"col-form-label\" *ngIf=\"item && showlabel\" title=\"{{getConditionItemTitle(item)}}\">\r\n <span class=\"farris-label-info text-danger\" *ngIf=\"item.control.required\">*</span>\r\n <span class=\"farris-label-text\">{{item.fieldName}}</span>\r\n</label>\r\n<div class=\"farris-input-wrap\" *ngIf=\"item\">\r\n <input-group #inputgroup\r\n [(ngModel)]=\"item.value.textValue\" \r\n name=\"{{item.fieldName}}\" \r\n id=\"{{testId}}\"\r\n [readonly]=\"disabled\"\r\n [groupText]=\"item.control.groupText\"\r\n [editable]=\"item.control.editable\"\r\n [placeholder]=\"item.placeHolder\"\r\n (clickHandle)=\"onClick($event)\"\r\n (blurHandle)=\"onBlur()\"\r\n >\r\n </input-group>\r\n</div>\r\n"
7523
+ template: "<label class=\"col-form-label\" *ngIf=\"item && showlabel\" title=\"{{getConditionItemTitle(item)}}\">\r\n <span class=\"farris-label-info text-danger\" *ngIf=\"item.control.required\">*</span>\r\n <span class=\"farris-label-text\">{{item.fieldName}}</span>\r\n</label>\r\n<div class=\"farris-input-wrap\" *ngIf=\"item\">\r\n <input-group #inputgroup\r\n [(ngModel)]=\"item.value.textValue\" \r\n name=\"{{item.fieldName}}\" \r\n id=\"{{testId}}\"\r\n [readonly]=\"disabled\"\r\n [groupText]=\"item.control.groupText\"\r\n [editable]=\"item.control.editable\"\r\n [placeholder]=\"item.placeHolder\"\r\n (clickHandle)=\"onClick($event)\"\r\n (blurHandle)=\"onBlur()\"\r\n (clear)=\"onClear()\"\r\n >\r\n </input-group>\r\n</div>\r\n"
7514
7524
  }] }
7515
7525
  ];
7516
7526
  /** @nocollapse */