@acorex/components 4.2.44 → 4.2.46

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.
@@ -10300,17 +10300,18 @@ class AXSearchBarComponent {
10300
10300
  this._items = [];
10301
10301
  this._filterItems = [];
10302
10302
  this._filterItemsClone = [];
10303
+ this._defultValueCount = [];
10303
10304
  this._context = {};
10304
10305
  }
10305
10306
  set items(v) {
10307
+ this._defultValueCount = v.filter((x) => x.value);
10306
10308
  v.forEach((el) => {
10307
10309
  if (el.value != null) {
10308
- debugger;
10309
10310
  this._filterItems.push({
10310
10311
  name: el.property.name,
10311
10312
  title: el.property.title,
10312
- textValue: this.handleTextValue(el),
10313
- value: el.value,
10313
+ textValue: this._handleTextValue(el),
10314
+ value: el.value ? this._handleDefultVlaue(el) : null,
10314
10315
  component: el
10315
10316
  });
10316
10317
  }
@@ -10321,7 +10322,7 @@ class AXSearchBarComponent {
10321
10322
  .value();
10322
10323
  }
10323
10324
  clearItem(name) {
10324
- this._editors.find((e) => e.property.property.name == name).clear();
10325
+ this._editors.find((x) => x.property.property.name === name).clear();
10325
10326
  }
10326
10327
  refresh() {
10327
10328
  this._items = JSON.parse(JSON.stringify(this._items));
@@ -10330,56 +10331,8 @@ class AXSearchBarComponent {
10330
10331
  this.dropdown.toggle();
10331
10332
  }
10332
10333
  handleValueChange(e) {
10333
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
10334
10334
  return __awaiter(this, void 0, void 0, function* () {
10335
- debugger;
10336
- let value = [];
10337
- let text = [];
10338
- if (((_a = e.property.editorOptions) === null || _a === void 0 ? void 0 : _a.valueField) && e.value != null) {
10339
- if (e.property.editorOptions.returnAllData) {
10340
- value = e.value;
10341
- text = yield this.handleTextValue(e);
10342
- }
10343
- else if (((_b = e.property.editorOptions) === null || _b === void 0 ? void 0 : _b.mode) == 'multiple') {
10344
- e.value.forEach((element) => {
10345
- debugger;
10346
- value.push(element[e.property.editorOptions.valueField]);
10347
- text.push(element[e.property.editorOptions.textField]);
10348
- });
10349
- }
10350
- else {
10351
- if (e.value.length) {
10352
- value = e.value[0][e.property.editorOptions.valueField];
10353
- text = e.value[0][e.property.editorOptions.textField];
10354
- }
10355
- }
10356
- }
10357
- else {
10358
- value = e.value;
10359
- text = e.value;
10360
- }
10361
- const findEl = this._filterItemsClone.find((el) => el.name == e.property.name);
10362
- if (findEl) {
10363
- findEl.value = value;
10364
- findEl.textValue = text ? text.toString() : null;
10365
- }
10366
- else if (e.value != null) {
10367
- this._filterItemsClone.push({
10368
- name: e.property.name,
10369
- title: e.property.title,
10370
- value,
10371
- textValue: text.toString(),
10372
- component: e,
10373
- filterOptions: {
10374
- filters: ((_d = (_c = e.property) === null || _c === void 0 ? void 0 : _c.filterOptions) === null || _d === void 0 ? void 0 : _d.filters) ? e.property.filterOptions.filters : [],
10375
- logic: ((_f = (_e = e.property) === null || _e === void 0 ? void 0 : _e.filterOptions) === null || _f === void 0 ? void 0 : _f.logic) ? e.property.filterOptions.logic : 'and',
10376
- ignoreCase: ((_h = (_g = e.property) === null || _g === void 0 ? void 0 : _g.filterOptions) === null || _h === void 0 ? void 0 : _h.ignoreCase) ? e.property.filterOptions.ignoreCase : true,
10377
- joinType: ((_k = (_j = e.property) === null || _j === void 0 ? void 0 : _j.filterOptions) === null || _k === void 0 ? void 0 : _k.joinType) ? e.property.filterOptions.joinType : 'INNER',
10378
- operator: ((_m = (_l = e.property) === null || _l === void 0 ? void 0 : _l.filterOptions) === null || _m === void 0 ? void 0 : _m.operator) ? e.property.filterOptions.operator : null,
10379
- truncateDate: ((_p = (_o = e.property) === null || _o === void 0 ? void 0 : _o.filterOptions) === null || _p === void 0 ? void 0 : _p.truncateDate) ? e.property.filterOptions.truncateDate : true
10380
- }
10381
- });
10382
- }
10335
+ yield this._handleInitVlaue(e);
10383
10336
  this.onValueChange.emit(e);
10384
10337
  });
10385
10338
  }
@@ -10392,13 +10345,10 @@ class AXSearchBarComponent {
10392
10345
  this._filterItems = this._filterItems.filter((el) => el.name != item.name);
10393
10346
  }
10394
10347
  search() {
10395
- debugger;
10396
10348
  this.form.validate().then((c) => {
10397
10349
  if (c.result) {
10398
- debugger;
10399
10350
  this._filterItems = JSON.parse(JSON.stringify(this._filterItemsClone.filter((el) => el.value != null && el.value != '')));
10400
10351
  this.handleButtonClick();
10401
- console.log(this._filterItems);
10402
10352
  this.onSearchValue.emit(this._filterItems);
10403
10353
  }
10404
10354
  });
@@ -10435,49 +10385,103 @@ class AXSearchBarComponent {
10435
10385
  }
10436
10386
  }
10437
10387
  }
10438
- return className.toString().replace(/,/, ' ');
10388
+ return className.toString().replace(/,/g, ' ');
10439
10389
  }
10440
10390
  _handleShowTitleSelected(item) {
10441
- if (item.component.property.editorClass !== 'ax/editors/check') {
10391
+ if (item.title) {
10442
10392
  return item.title + ':';
10443
10393
  }
10444
10394
  }
10445
10395
  _handleShowValueSelected(item) {
10446
10396
  if (item.component.property.editorClass === 'ax/editors/check') {
10447
- return item.title;
10397
+ return item.component.property.editorOptions.label;
10448
10398
  }
10449
10399
  else {
10450
- // if (Array.isArray(item.textValue)) {
10451
- // let textValue = '';
10452
- // item.textValue.forEach((element, index) => {
10453
- // textValue +=
10454
- // index === item.textValue.length - 1
10455
- // ? element[item.component.property.editorOptions.textField]
10456
- // : element[item.component.property.editorOptions.textField] + ',';
10457
- // });
10458
- // return textValue;
10459
- // } else {
10460
10400
  return item.textValue;
10461
- // }
10462
10401
  }
10463
10402
  }
10464
10403
  ngOnInit() { }
10465
- handleTextValue(dataItem) {
10466
- let text = '';
10467
- dataItem.value.forEach((element, index) => {
10468
- text +=
10469
- index === dataItem.value.length - 1
10470
- ? element[dataItem.property.editorOptions.textField]
10471
- : element[dataItem.property.editorOptions.textField] + ',';
10404
+ _handleTextValue(dataItem) {
10405
+ if (dataItem.value.length) {
10406
+ let text = '';
10407
+ dataItem.value.forEach((element, index) => {
10408
+ text +=
10409
+ index === dataItem.value.length - 1
10410
+ ? element[dataItem.property.editorOptions.textField]
10411
+ : element[dataItem.property.editorOptions.textField] + ',';
10412
+ });
10413
+ return text;
10414
+ }
10415
+ else {
10416
+ return;
10417
+ }
10418
+ }
10419
+ _handleDefultVlaue(dataItem) {
10420
+ return __awaiter(this, void 0, void 0, function* () {
10421
+ this._handleInitVlaue(dataItem);
10422
+ this._filterItems = JSON.parse(JSON.stringify(this._filterItemsClone.filter((el) => el.value != null && el.value != '')));
10423
+ if (this._filterItems.length === this._defultValueCount.length) {
10424
+ this.onSearchValue.emit(this._filterItems);
10425
+ }
10426
+ });
10427
+ }
10428
+ _handleInitVlaue(e) {
10429
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
10430
+ return __awaiter(this, void 0, void 0, function* () {
10431
+ let value = [];
10432
+ let text = [];
10433
+ if (((_a = e.property.editorOptions) === null || _a === void 0 ? void 0 : _a.valueField) && e.value != null) {
10434
+ if (e.property.editorOptions.returnAllData) {
10435
+ value = e.value;
10436
+ text = yield this._handleTextValue(e);
10437
+ }
10438
+ else if (((_b = e.property.editorOptions) === null || _b === void 0 ? void 0 : _b.mode) == 'multiple') {
10439
+ e.value.forEach((element) => {
10440
+ value.push(element[e.property.editorOptions.valueField]);
10441
+ text.push(element[e.property.editorOptions.textField]);
10442
+ });
10443
+ }
10444
+ else {
10445
+ if (e.value.length) {
10446
+ value = e.value[0][e.property.editorOptions.valueField];
10447
+ text = e.value[0][e.property.editorOptions.textField];
10448
+ }
10449
+ }
10450
+ }
10451
+ else {
10452
+ value = e.value;
10453
+ text = e.value;
10454
+ }
10455
+ const findEl = this._filterItemsClone.find((el) => el.name == e.property.name);
10456
+ if (findEl) {
10457
+ findEl.value = value;
10458
+ findEl.textValue = text ? text.toString() : null;
10459
+ }
10460
+ else if (e.value != null) {
10461
+ this._filterItemsClone.push({
10462
+ name: e.property.name,
10463
+ title: e.property.title,
10464
+ value,
10465
+ textValue: text.toString(),
10466
+ component: e,
10467
+ filterOptions: {
10468
+ filters: ((_d = (_c = e.property) === null || _c === void 0 ? void 0 : _c.filterOptions) === null || _d === void 0 ? void 0 : _d.filters) ? e.property.filterOptions.filters : [],
10469
+ logic: ((_f = (_e = e.property) === null || _e === void 0 ? void 0 : _e.filterOptions) === null || _f === void 0 ? void 0 : _f.logic) ? e.property.filterOptions.logic : 'and',
10470
+ ignoreCase: ((_h = (_g = e.property) === null || _g === void 0 ? void 0 : _g.filterOptions) === null || _h === void 0 ? void 0 : _h.ignoreCase) ? e.property.filterOptions.ignoreCase : true,
10471
+ joinType: ((_k = (_j = e.property) === null || _j === void 0 ? void 0 : _j.filterOptions) === null || _k === void 0 ? void 0 : _k.joinType) ? e.property.filterOptions.joinType : 'INNER',
10472
+ operator: ((_m = (_l = e.property) === null || _l === void 0 ? void 0 : _l.filterOptions) === null || _m === void 0 ? void 0 : _m.operator) ? e.property.filterOptions.operator : null,
10473
+ truncateDate: ((_p = (_o = e.property) === null || _o === void 0 ? void 0 : _o.filterOptions) === null || _p === void 0 ? void 0 : _p.truncateDate) ? e.property.filterOptions.truncateDate : true
10474
+ }
10475
+ });
10476
+ }
10472
10477
  });
10473
- return text;
10474
10478
  }
10475
10479
  }
10476
10480
  AXSearchBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSearchBarComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
10477
- AXSearchBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXSearchBarComponent, selector: "ax-search-bar", inputs: { size: "size", disabled: "disabled", items: "items", rtl: "rtl" }, outputs: { onValueChange: "onValueChange", onSearchValue: "onSearchValue" }, viewQueries: [{ propertyName: "dropdown", first: true, predicate: ["dropdown"], descendants: true, static: true }, { propertyName: "form", first: true, predicate: AXValidationFormComponent, descendants: true }, { propertyName: "_editors", predicate: AXPropertyEditorRendererDirective, descendants: true }], ngImport: i0, template: "<ax-drop-down [fitParent]=\"true\" [size]=\"size\" [showDropDownButton]=\"false\" icon=\"far fa-sliders-h\" #dropdown\r\n maxHeight=\"unset\">\r\n <ng-container start>\r\n <ng-content select=\"[start]\">\r\n </ng-content>\r\n </ng-container>\r\n <ng-container header>\r\n <div class=\"ax chips-container\">\r\n <div class=\"chips\" *ngFor=\"let item of _filterItems\">\r\n <span class=\"chips-text\" style=\"direction:rtl;\">\r\n <b>{{_handleShowTitleSelected(item)}}</b> {{_handleShowValueSelected(item)}}\r\n </span>\r\n <span class=\"close-icon\" (click)=\"handleItemRemoveClick(item)\">\r\n <i class=\"far fa-times close\"></i>\r\n </span>\r\n </div>\r\n </div>\r\n </ng-container>\r\n <ng-container panel>\r\n <div class=\"panel-box\">\r\n <ax-validation-form #form>\r\n <div *ngFor=\"let item of _items\" class=\"row\">\r\n <div *ngFor=\"let prop of item.items\" class=\"{{renderCol(prop.property.col)}}\">\r\n <!-- <ax-form-group> -->\r\n <div *ngIf=\"prop.property.visible != false\">\r\n <ax-label>{{prop.property.title}}</ax-label>\r\n <ng-container ax-property-editor-renderer [validationForm]=\"form\" [property]=\"prop\"\r\n [context]=\"_context\" (onValueChange)=\"handleValueChange($event)\"></ng-container>\r\n </div>\r\n <!-- </ax-form-group> -->\r\n </div>\r\n </div>\r\n <div class=\"footer-button\">\r\n <ax-button (click)=\"search()\">{{'common.search' | trans}}</ax-button>\r\n <ax-button type=\"blank danger\" (click)=\"clear()\">{{'dataGrid.clearFilter' | trans}}</ax-button>\r\n </div>\r\n </ax-validation-form>\r\n </div>\r\n </ng-container>\r\n <ng-container end>\r\n <ax-button end icon=\"far fa-sliders-h icon\" type=\"light blank\" [disabled]=\"disabled\" [size]=\"size\"\r\n [tabIndex]=\"-1\" (click)=\"handleButtonClick()\">{{'common.search' | trans}}</ax-button>\r\n </ng-container>\r\n\r\n</ax-drop-down>", styles: [".ax.chips-container{height:100%}.panel-box{padding:1rem}.panel-box .footer-button{margin-top:1rem;display:flex;align-items:center;gap:.5rem}\n"], components: [{ type: AXDropdownComponent, selector: "ax-drop-down", inputs: ["rtl", "readonly", "loading"], outputs: ["dropdownToggle", "onButtonClick"] }, { type: AXValidationFormComponent, selector: "ax-validation-form", inputs: ["validateOn"], outputs: ["onInit"] }, { type: AXLabelComponent, selector: "ax-label", inputs: ["size"] }, { type: AXButtonComponent, selector: "ax-button", inputs: ["type", "icon", "submitBehavior", "cancelBehavior", "block", "loading", "selected"] }], directives: [{ type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: AXPropertyEditorRendererDirective, selector: "[ax-property-editor-renderer]", inputs: ["property", "validationForm", "context", "host", "groupId"], outputs: ["onValueChange"] }], pipes: { "trans": i1$2.AXTranslatorPipe } });
10481
+ AXSearchBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXSearchBarComponent, selector: "ax-search-bar", inputs: { size: "size", disabled: "disabled", items: "items", rtl: "rtl" }, outputs: { onValueChange: "onValueChange", onSearchValue: "onSearchValue" }, viewQueries: [{ propertyName: "dropdown", first: true, predicate: ["dropdown"], descendants: true, static: true }, { propertyName: "form", first: true, predicate: AXValidationFormComponent, descendants: true }, { propertyName: "_editors", predicate: AXPropertyEditorRendererDirective, descendants: true }], ngImport: i0, template: "<ax-drop-down [fitParent]=\"true\" [size]=\"size\" [showDropDownButton]=\"false\" icon=\"far fa-sliders-h\" #dropdown\r\n maxHeight=\"unset\">\r\n <ng-container start>\r\n <ng-content select=\"[start]\">\r\n </ng-content>\r\n </ng-container>\r\n <ng-container header>\r\n <div class=\"ax chips-container\">\r\n <div class=\"chips\" *ngFor=\"let item of _filterItems\">\r\n <span class=\"chips-text\" style=\"direction:rtl;\">\r\n <b>{{_handleShowTitleSelected(item)}}</b> {{_handleShowValueSelected(item)}}\r\n </span>\r\n <span class=\"close-icon\" (click)=\"handleItemRemoveClick(item)\">\r\n </span>\r\n </div>\r\n </div>\r\n </ng-container>\r\n <ng-container panel>\r\n <div class=\"panel-box\">\r\n <ax-validation-form #form>\r\n <div *ngFor=\"let item of _items\" class=\"row\">\r\n <div *ngFor=\"let prop of item.items\" class=\"{{renderCol(prop.property.col)}}\">\r\n <!-- <ax-form-group> -->\r\n <div *ngIf=\"prop.property.visible != false\">\r\n <ax-label>{{prop.property.title}}</ax-label>\r\n <ng-container ax-property-editor-renderer [validationForm]=\"form\" [property]=\"prop\"\r\n [context]=\"_context\" (onValueChange)=\"handleValueChange($event)\"></ng-container>\r\n </div>\r\n <!-- </ax-form-group> -->\r\n </div>\r\n </div>\r\n <div class=\"footer-button\">\r\n <ax-button (click)=\"search()\">{{'common.search' | trans}}</ax-button>\r\n <ax-button type=\"blank danger\" (click)=\"clear()\">{{'dataGrid.clearFilter' | trans}}</ax-button>\r\n </div>\r\n </ax-validation-form>\r\n </div>\r\n </ng-container>\r\n <ng-container end>\r\n <ax-button end icon=\"far fa-sliders-h icon\" type=\"light blank\" [disabled]=\"disabled\" [size]=\"size\"\r\n [tabIndex]=\"-1\" (click)=\"handleButtonClick()\">{{'common.search' | trans}}</ax-button>\r\n </ng-container>\r\n\r\n</ax-drop-down>", styles: [".ax.chips-container{height:100%}.panel-box{padding:1rem}.panel-box .footer-button{margin-top:1rem;display:flex;align-items:center;gap:.5rem}\n"], components: [{ type: AXDropdownComponent, selector: "ax-drop-down", inputs: ["rtl", "readonly", "loading"], outputs: ["dropdownToggle", "onButtonClick"] }, { type: AXValidationFormComponent, selector: "ax-validation-form", inputs: ["validateOn"], outputs: ["onInit"] }, { type: AXLabelComponent, selector: "ax-label", inputs: ["size"] }, { type: AXButtonComponent, selector: "ax-button", inputs: ["type", "icon", "submitBehavior", "cancelBehavior", "block", "loading", "selected"] }], directives: [{ type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: AXPropertyEditorRendererDirective, selector: "[ax-property-editor-renderer]", inputs: ["property", "validationForm", "context", "host", "groupId"], outputs: ["onValueChange"] }], pipes: { "trans": i1$2.AXTranslatorPipe } });
10478
10482
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSearchBarComponent, decorators: [{
10479
10483
  type: Component,
10480
- args: [{ selector: 'ax-search-bar', template: "<ax-drop-down [fitParent]=\"true\" [size]=\"size\" [showDropDownButton]=\"false\" icon=\"far fa-sliders-h\" #dropdown\r\n maxHeight=\"unset\">\r\n <ng-container start>\r\n <ng-content select=\"[start]\">\r\n </ng-content>\r\n </ng-container>\r\n <ng-container header>\r\n <div class=\"ax chips-container\">\r\n <div class=\"chips\" *ngFor=\"let item of _filterItems\">\r\n <span class=\"chips-text\" style=\"direction:rtl;\">\r\n <b>{{_handleShowTitleSelected(item)}}</b> {{_handleShowValueSelected(item)}}\r\n </span>\r\n <span class=\"close-icon\" (click)=\"handleItemRemoveClick(item)\">\r\n <i class=\"far fa-times close\"></i>\r\n </span>\r\n </div>\r\n </div>\r\n </ng-container>\r\n <ng-container panel>\r\n <div class=\"panel-box\">\r\n <ax-validation-form #form>\r\n <div *ngFor=\"let item of _items\" class=\"row\">\r\n <div *ngFor=\"let prop of item.items\" class=\"{{renderCol(prop.property.col)}}\">\r\n <!-- <ax-form-group> -->\r\n <div *ngIf=\"prop.property.visible != false\">\r\n <ax-label>{{prop.property.title}}</ax-label>\r\n <ng-container ax-property-editor-renderer [validationForm]=\"form\" [property]=\"prop\"\r\n [context]=\"_context\" (onValueChange)=\"handleValueChange($event)\"></ng-container>\r\n </div>\r\n <!-- </ax-form-group> -->\r\n </div>\r\n </div>\r\n <div class=\"footer-button\">\r\n <ax-button (click)=\"search()\">{{'common.search' | trans}}</ax-button>\r\n <ax-button type=\"blank danger\" (click)=\"clear()\">{{'dataGrid.clearFilter' | trans}}</ax-button>\r\n </div>\r\n </ax-validation-form>\r\n </div>\r\n </ng-container>\r\n <ng-container end>\r\n <ax-button end icon=\"far fa-sliders-h icon\" type=\"light blank\" [disabled]=\"disabled\" [size]=\"size\"\r\n [tabIndex]=\"-1\" (click)=\"handleButtonClick()\">{{'common.search' | trans}}</ax-button>\r\n </ng-container>\r\n\r\n</ax-drop-down>", styles: [".ax.chips-container{height:100%}.panel-box{padding:1rem}.panel-box .footer-button{margin-top:1rem;display:flex;align-items:center;gap:.5rem}\n"] }]
10484
+ args: [{ selector: 'ax-search-bar', template: "<ax-drop-down [fitParent]=\"true\" [size]=\"size\" [showDropDownButton]=\"false\" icon=\"far fa-sliders-h\" #dropdown\r\n maxHeight=\"unset\">\r\n <ng-container start>\r\n <ng-content select=\"[start]\">\r\n </ng-content>\r\n </ng-container>\r\n <ng-container header>\r\n <div class=\"ax chips-container\">\r\n <div class=\"chips\" *ngFor=\"let item of _filterItems\">\r\n <span class=\"chips-text\" style=\"direction:rtl;\">\r\n <b>{{_handleShowTitleSelected(item)}}</b> {{_handleShowValueSelected(item)}}\r\n </span>\r\n <span class=\"close-icon\" (click)=\"handleItemRemoveClick(item)\">\r\n </span>\r\n </div>\r\n </div>\r\n </ng-container>\r\n <ng-container panel>\r\n <div class=\"panel-box\">\r\n <ax-validation-form #form>\r\n <div *ngFor=\"let item of _items\" class=\"row\">\r\n <div *ngFor=\"let prop of item.items\" class=\"{{renderCol(prop.property.col)}}\">\r\n <!-- <ax-form-group> -->\r\n <div *ngIf=\"prop.property.visible != false\">\r\n <ax-label>{{prop.property.title}}</ax-label>\r\n <ng-container ax-property-editor-renderer [validationForm]=\"form\" [property]=\"prop\"\r\n [context]=\"_context\" (onValueChange)=\"handleValueChange($event)\"></ng-container>\r\n </div>\r\n <!-- </ax-form-group> -->\r\n </div>\r\n </div>\r\n <div class=\"footer-button\">\r\n <ax-button (click)=\"search()\">{{'common.search' | trans}}</ax-button>\r\n <ax-button type=\"blank danger\" (click)=\"clear()\">{{'dataGrid.clearFilter' | trans}}</ax-button>\r\n </div>\r\n </ax-validation-form>\r\n </div>\r\n </ng-container>\r\n <ng-container end>\r\n <ax-button end icon=\"far fa-sliders-h icon\" type=\"light blank\" [disabled]=\"disabled\" [size]=\"size\"\r\n [tabIndex]=\"-1\" (click)=\"handleButtonClick()\">{{'common.search' | trans}}</ax-button>\r\n </ng-container>\r\n\r\n</ax-drop-down>", styles: [".ax.chips-container{height:100%}.panel-box{padding:1rem}.panel-box .footer-button{margin-top:1rem;display:flex;align-items:center;gap:.5rem}\n"] }]
10481
10485
  }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { dropdown: [{
10482
10486
  type: ViewChild,
10483
10487
  args: ['dropdown', { static: true }]
@@ -11900,6 +11904,72 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
11900
11904
  }]
11901
11905
  }], ctorParameters: function () { return []; } });
11902
11906
 
11907
+ class AXSearchBarSelectBoxEditorComponent extends AXProperyEditorComponent {
11908
+ constructor(cdr) {
11909
+ super(cdr);
11910
+ this.cdr = cdr;
11911
+ this.valueField = 'id';
11912
+ this.textField = 'text';
11913
+ this.mode = 'single';
11914
+ this.selectionDataMode = 'value';
11915
+ this.allowSearch = true;
11916
+ this.allowNull = true;
11917
+ this.disabled = false;
11918
+ this.items = [];
11919
+ this.remoteOperation = false;
11920
+ this.returnAllData = false;
11921
+ this.provideData = (e) => {
11922
+ return new Promise((resolve) => {
11923
+ const func = () => {
11924
+ if (Array.isArray(this.items)) {
11925
+ resolve(this.items.slice());
11926
+ }
11927
+ else if (typeof this.items === 'function') {
11928
+ const a = Object.assign(e, { sender: this });
11929
+ resolve(this.items(a));
11930
+ }
11931
+ else {
11932
+ resolve([]);
11933
+ }
11934
+ };
11935
+ const intVal = setInterval(() => {
11936
+ if (this.initiated) {
11937
+ func();
11938
+ clearInterval(intVal);
11939
+ }
11940
+ }, 50);
11941
+ });
11942
+ };
11943
+ }
11944
+ get filter() {
11945
+ return this._filter;
11946
+ }
11947
+ set filter(v) {
11948
+ var _a;
11949
+ this._filter = v;
11950
+ if (this.value && this.initiated) {
11951
+ this.value = null;
11952
+ (_a = this.selectBox) === null || _a === void 0 ? void 0 : _a.refresh();
11953
+ }
11954
+ }
11955
+ handleValueChange(e) {
11956
+ super.handleValueChange(e.selectedItems);
11957
+ }
11958
+ ngAfterViewInit() {
11959
+ this.registerForValidationForm(this.selectBox);
11960
+ this.onRenderCompleted.emit();
11961
+ }
11962
+ }
11963
+ AXSearchBarSelectBoxEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSearchBarSelectBoxEditorComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
11964
+ AXSearchBarSelectBoxEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXSearchBarSelectBoxEditorComponent, selector: "ng-component", viewQueries: [{ propertyName: "selectBox", first: true, predicate: AXSelectBoxComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<ax-select-box [mode]=\"mode\" [textField]=\"textField\" [valueField]=\"valueField\" [remoteOperation]=\"remoteOperation\"\r\n [selectedItems]=\"value\" [allowSearch]=\"allowSearch\" [allowNull]=\"allowNull\" [readonly]=\"readonly\"\r\n [disabled]=\"disabled\" (selectionChanged)=\"handleValueChange($event)\">\r\n <ax-data-source [provideData]=\"provideData\">\r\n </ax-data-source>\r\n <ax-validation [rules]=\"validation?.rules\">\r\n </ax-validation>\r\n</ax-select-box>", components: [{ type: AXSelectBoxComponent, selector: "ax-select-box", inputs: ["showDropDownButton", "rowInputTemplate", "showCheckBox", "readonly", "rtl", "disabled", "placeholder", "size", "allowNull", "textAlign", "bufferSize", "remoteOperation", "dataSource", "validation", "disabledCallback", "allowSearch", "textField", "valueField", "disabledField", "mode", "items", "selectedItems", "selectedValues"], outputs: ["dropdownToggle", "itemsChange", "onBlur", "onFocus", "selectionChanged", "selectedItemsChange", "selectedValuesChange"] }, { type: AXDataSourceComponent, selector: "ax-data-source", inputs: ["provideData", "params"] }, { type: AXValidationComponent, selector: "ax-validation", inputs: ["rules", "validateOn"], outputs: ["rulesChange", "showMessage"] }] });
11965
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSearchBarSelectBoxEditorComponent, decorators: [{
11966
+ type: Component,
11967
+ args: [{ template: "<ax-select-box [mode]=\"mode\" [textField]=\"textField\" [valueField]=\"valueField\" [remoteOperation]=\"remoteOperation\"\r\n [selectedItems]=\"value\" [allowSearch]=\"allowSearch\" [allowNull]=\"allowNull\" [readonly]=\"readonly\"\r\n [disabled]=\"disabled\" (selectionChanged)=\"handleValueChange($event)\">\r\n <ax-data-source [provideData]=\"provideData\">\r\n </ax-data-source>\r\n <ax-validation [rules]=\"validation?.rules\">\r\n </ax-validation>\r\n</ax-select-box>" }]
11968
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { selectBox: [{
11969
+ type: ViewChild,
11970
+ args: [AXSelectBoxComponent, { static: false }]
11971
+ }] } });
11972
+
11903
11973
  class AXSelectBoxPropertyEditorComponent extends AXProperyEditorComponent {
11904
11974
  constructor(cdr) {
11905
11975
  super(cdr);
@@ -11972,16 +12042,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
11972
12042
  }] } });
11973
12043
 
11974
12044
  class AXSelectBoxPropertyEditorModule {
11975
- constructor() {
11976
- }
12045
+ constructor() { }
11977
12046
  }
11978
12047
  AXSelectBoxPropertyEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSelectBoxPropertyEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
11979
- AXSelectBoxPropertyEditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSelectBoxPropertyEditorModule, declarations: [AXSelectBoxPropertyEditorComponent], imports: [CommonModule, FormsModule, AXSelectBoxModule, AXDataSourceModule, AXValidationModule], exports: [AXSelectBoxPropertyEditorComponent] });
12048
+ AXSelectBoxPropertyEditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSelectBoxPropertyEditorModule, declarations: [AXSelectBoxPropertyEditorComponent, AXSearchBarSelectBoxEditorComponent], imports: [CommonModule, FormsModule, AXSelectBoxModule, AXDataSourceModule, AXValidationModule], exports: [AXSelectBoxPropertyEditorComponent] });
11980
12049
  AXSelectBoxPropertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSelectBoxPropertyEditorModule, providers: [], imports: [[CommonModule, FormsModule, AXSelectBoxModule, AXDataSourceModule, AXValidationModule]] });
11981
12050
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSelectBoxPropertyEditorModule, decorators: [{
11982
12051
  type: NgModule,
11983
12052
  args: [{
11984
- declarations: [AXSelectBoxPropertyEditorComponent],
12053
+ declarations: [AXSelectBoxPropertyEditorComponent, AXSearchBarSelectBoxEditorComponent],
11985
12054
  imports: [CommonModule, FormsModule, AXSelectBoxModule, AXDataSourceModule, AXValidationModule],
11986
12055
  exports: [AXSelectBoxPropertyEditorComponent],
11987
12056
  providers: []
@@ -12175,7 +12244,6 @@ class AXTextPropertyEditorComponent extends AXProperyEditorComponent {
12175
12244
  super(cdr);
12176
12245
  this.cdr = cdr;
12177
12246
  this.clearButton = false;
12178
- this.mask = null;
12179
12247
  this.maskGuid = false;
12180
12248
  this.showMask = true;
12181
12249
  }
@@ -13356,6 +13424,10 @@ AXProppertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0",
13356
13424
  component: AXSelectBoxPropertyEditorComponent,
13357
13425
  path: 'ax/editors/select'
13358
13426
  },
13427
+ {
13428
+ component: AXSearchBarSelectBoxEditorComponent,
13429
+ path: 'ax/editors/selectBox'
13430
+ },
13359
13431
  {
13360
13432
  component: AXNumberBoxPropertyEditorComponent,
13361
13433
  path: 'ax/editors/number'
@@ -13379,14 +13451,15 @@ AXProppertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0",
13379
13451
  {
13380
13452
  component: ColumnPropertyEditorComponent,
13381
13453
  path: 'ax/editors/column'
13382
- }, {
13454
+ },
13455
+ {
13383
13456
  component: AXDatePropertyEditorComponent,
13384
13457
  path: 'ax/editors/date'
13385
13458
  },
13386
13459
  {
13387
13460
  component: AXTimePropertyEditorComponent,
13388
13461
  path: 'ax/editors/time'
13389
- },
13462
+ }
13390
13463
  ])
13391
13464
  ]] });
13392
13465
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXProppertyEditorModule, decorators: [{
@@ -13415,6 +13488,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
13415
13488
  component: AXSelectBoxPropertyEditorComponent,
13416
13489
  path: 'ax/editors/select'
13417
13490
  },
13491
+ {
13492
+ component: AXSearchBarSelectBoxEditorComponent,
13493
+ path: 'ax/editors/selectBox'
13494
+ },
13418
13495
  {
13419
13496
  component: AXNumberBoxPropertyEditorComponent,
13420
13497
  path: 'ax/editors/number'
@@ -13438,19 +13515,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
13438
13515
  {
13439
13516
  component: ColumnPropertyEditorComponent,
13440
13517
  path: 'ax/editors/column'
13441
- }, {
13518
+ },
13519
+ {
13442
13520
  component: AXDatePropertyEditorComponent,
13443
13521
  path: 'ax/editors/date'
13444
13522
  },
13445
13523
  {
13446
13524
  component: AXTimePropertyEditorComponent,
13447
13525
  path: 'ax/editors/time'
13448
- },
13526
+ }
13449
13527
  ])
13450
13528
  ],
13451
13529
  exports: [AXPropertyEditorRendererDirective],
13452
13530
  declarations: [AXPropertyEditorRendererDirective],
13453
- providers: [],
13531
+ providers: []
13454
13532
  }]
13455
13533
  }] });
13456
13534