@apipass/inputs 0.2.3-alpha.1 → 0.2.5-alpha.0

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.
@@ -394,7 +394,7 @@
394
394
  provide: i4.NG_VALUE_ACCESSOR,
395
395
  useExisting: i0.forwardRef(function () { return SelectEnumComponent; }),
396
396
  multi: true
397
- }]), i0.ɵɵInheritDefinitionFeature], decls: 6, vars: 10, consts: [["appearance", "fill", 1, "apipass-select", "apipass-select-enum"], [3, "ngModel", "disabled", "placeholder", "ngModelChange", "click"], ["class", "mat-select-input", "disabled", "disabled", 3, "keydown", 4, "ngIf"], [3, "value", 4, "ngFor", "ngForOf"], ["disabled", "disabled", 1, "mat-select-input", 3, "keydown"], ["type", "text", 1, "form-control", 3, "ngModel", "ngModelChange"], [3, "value"]], template: function SelectEnumComponent_Template(rf, ctx) {
397
+ }]), i0.ɵɵInheritDefinitionFeature], decls: 6, vars: 10, consts: [["appearance", "fill", 1, "apipass-select", "apipass-select-enum"], [3, "ngModel", "disabled", "placeholder", "ngModelChange", "click"], ["class", "mat-select-input", "disabled", "disabled", 3, "keydown", 4, "ngIf"], [3, "value", 4, "ngFor", "ngForOf"], ["disabled", "disabled", 1, "mat-select-input", 3, "keydown"], ["type", "text", "autocomplete", "off", 1, "form-control", 3, "ngModel", "ngModelChange"], [3, "value"]], template: function SelectEnumComponent_Template(rf, ctx) {
398
398
  if (rf & 1) {
399
399
  i0.ɵɵelementStart(0, "mat-form-field", 0);
400
400
  i0.ɵɵelementStart(1, "mat-select", 1);
@@ -1233,8 +1233,10 @@
1233
1233
  };
1234
1234
  // @ts-ignore
1235
1235
  SelectBoxComponent.prototype.onScroll = function (_c) {
1236
+ var _this = this;
1236
1237
  var end = _c.end;
1237
- if (this.loading || this.data.length <= this.visibleItens.length) {
1238
+ var data = this.lastSearchTerm ? this.data.filter(function (item) { var _a; return (_a = item[_this.bindValue]) === null || _a === void 0 ? void 0 : _a.toLowerCase().includes(_this.lastSearchTerm.toLowerCase()); }) : this.data;
1239
+ if (this.loading || data.length <= this.visibleItens.length) {
1238
1240
  return;
1239
1241
  }
1240
1242
  if (end + 5 >= this.visibleItens.length) {
@@ -1701,7 +1703,7 @@
1701
1703
  provide: i4.NG_VALUE_ACCESSOR,
1702
1704
  useExisting: i0.forwardRef(function () { return CustomSelectComponent; }),
1703
1705
  multi: true
1704
- }])], decls: 8, vars: 10, consts: [["appearance", "fill", "autocomplete", "off", 1, "custom-select-component", 3, "ngClass"], ["matInput", "", "dndDropzone", "", "autocomplete", "off", 3, "placeholder", "ngModel", "ngModelOptions", "disabled", "focus", "blur", "ngModelChange", "keyup", "click", "dndDrop"], ["input", ""], ["title", "Remover", "class", "remove-icon", 3, "click", 4, "ngIf"], [1, "open-icon", 3, "click"], [1, "fa", "fa-caret-down"], [1, "custom-select-component"], ["class", "ul-ac", 4, "ngIf"], ["title", "Remover", 1, "remove-icon", 3, "click"], [1, "fa", "fa-times"], [1, "ul-ac"], [1, "li-search", "search-input-item"], ["appearance", "fill", 1, "apipass-input-text", "search-input-item"], ["matInput", "", "aria-autocomplete", "none", 1, "search-input-item", 3, "placeholder", "ngModel", "ngModelChange", "blur"], ["class", "clickable", 3, "click", "mousedown", 4, "ngFor", "ngForOf"], [1, "li-add", 3, "mousedown", "click"], [1, "fa", "fa-plus-circle"], [1, "clickable", 3, "click", "mousedown"]], template: function CustomSelectComponent_Template(rf, ctx) {
1706
+ }])], decls: 8, vars: 10, consts: [["appearance", "fill", "autocomplete", "off", 1, "custom-select-component", 3, "ngClass"], ["matInput", "", "dndDropzone", "", "autocomplete", "off", 3, "placeholder", "ngModel", "ngModelOptions", "disabled", "focus", "blur", "ngModelChange", "keyup", "click", "dndDrop"], ["input", ""], ["title", "Remover", "class", "remove-icon", 3, "click", 4, "ngIf"], [1, "open-icon", 3, "click"], [1, "fa", "fa-caret-down"], [1, "custom-select-component"], ["class", "ul-ac", 4, "ngIf"], ["title", "Remover", 1, "remove-icon", 3, "click"], [1, "fa", "fa-times"], [1, "ul-ac"], [1, "li-search", "search-input-item"], ["appearance", "fill", 1, "apipass-input-text", "search-input-item"], ["matInput", "", "aria-autocomplete", "none", "autocomplete", "off", 1, "search-input-item", 3, "placeholder", "ngModel", "ngModelChange", "blur"], ["class", "clickable", 3, "click", "mousedown", 4, "ngFor", "ngForOf"], [1, "li-add", 3, "mousedown", "click"], [1, "fa", "fa-plus-circle"], [1, "clickable", 3, "click", "mousedown"]], template: function CustomSelectComponent_Template(rf, ctx) {
1705
1707
  if (rf & 1) {
1706
1708
  i0.ɵɵelementStart(0, "mat-form-field", 0);
1707
1709
  i0.ɵɵelementStart(1, "input", 1, 2);