@acorex/components 22.4.34 → 22.4.36

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.
@@ -1426,38 +1426,41 @@ class AXLookupMultiColumnTreeComponent {
1426
1426
  }
1427
1427
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXLookupMultiColumnTreeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1428
1428
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.6", type: AXLookupMultiColumnTreeComponent, isStandalone: true, selector: "ax-lookup-multi-column-tree", inputs: { dataSource: { classPropertyName: "dataSource", publicName: "dataSource", isSignal: true, isRequired: true, transformFunction: null }, valueField: { classPropertyName: "valueField", publicName: "valueField", isSignal: true, isRequired: false, transformFunction: null }, textField: { classPropertyName: "textField", publicName: "textField", isSignal: true, isRequired: false, transformFunction: null }, disabledField: { classPropertyName: "disabledField", publicName: "disabledField", isSignal: true, isRequired: false, transformFunction: null }, parentField: { classPropertyName: "parentField", publicName: "parentField", isSignal: true, isRequired: false, transformFunction: null }, hasChildrenField: { classPropertyName: "hasChildrenField", publicName: "hasChildrenField", isSignal: true, isRequired: false, transformFunction: null }, selectedValues: { classPropertyName: "selectedValues", publicName: "selectedValues", isSignal: true, isRequired: false, transformFunction: null }, itemHeight: { classPropertyName: "itemHeight", publicName: "itemHeight", isSignal: true, isRequired: false, transformFunction: null }, maxVisibleItems: { classPropertyName: "maxVisibleItems", publicName: "maxVisibleItems", isSignal: true, isRequired: false, transformFunction: null }, columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: false, transformFunction: null }, itemTemplate: { classPropertyName: "itemTemplate", publicName: "itemTemplate", isSignal: true, isRequired: false, transformFunction: null }, emptyTemplate: { classPropertyName: "emptyTemplate", publicName: "emptyTemplate", isSignal: true, isRequired: false, transformFunction: null }, loadingTemplate: { classPropertyName: "loadingTemplate", publicName: "loadingTemplate", isSignal: true, isRequired: false, transformFunction: null }, alternate: { classPropertyName: "alternate", publicName: "alternate", isSignal: true, isRequired: false, transformFunction: null }, highlightText: { classPropertyName: "highlightText", publicName: "highlightText", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { itemClick: "itemClick" }, host: { properties: { "style.height.px": "tableHeight()" }, classAttribute: "ax-lookup-multi-column ax-lookup-multi-column-tree" }, ngImport: i0, template: `
1429
- <ax-data-table
1430
- class="ax-lookup-multi-column-table"
1431
- look="minimal"
1432
- [dataSource]="dataSource()"
1433
- [parentField]="parentField()"
1434
- [hasChildrenField]="hasChildrenField()"
1435
- [itemHeight]="itemHeight()"
1436
- [alternative]="alternate()"
1437
- [emptyTemplate]="emptyTemplate()"
1438
- [highlightText]="highlightText()"
1439
- [loading]="loadingConfig()"
1440
- [paging]="false"
1441
- [showHeader]="true"
1442
- [fixedHeader]="true"
1443
- [showFooter]="false"
1444
- [allowReordering]="false"
1445
- [rowTemplate]="itemTemplate() ? customRowTemplate : undefined"
1446
- [rowCssClass]="resolveRowCssClass"
1447
- (onRowClick)="handleRowClick($event)"
1448
- >
1449
- @for (column of columns(); track trackColumnKey($index, column)) {
1450
- <ax-text-column
1451
- [dataField]="column.field"
1452
- [caption]="column.title | translate | async"
1453
- [translate]="true"
1454
- [width]="resolveColumnWidth(column)"
1455
- [expandHandler]="isExpandColumn($index, column)"
1456
- [allowSorting]="false"
1457
- [allowResizing]="false"
1458
- />
1459
- }
1460
- </ax-data-table>
1429
+ <!-- ax-data-table only subscribes to dataSource in ngOnInit; re-create it when the source changes. -->
1430
+ @for (tableSource of [dataSource()]; track tableSource) {
1431
+ <ax-data-table
1432
+ class="ax-lookup-multi-column-table"
1433
+ look="minimal"
1434
+ [dataSource]="tableSource"
1435
+ [parentField]="parentField()"
1436
+ [hasChildrenField]="hasChildrenField()"
1437
+ [itemHeight]="itemHeight()"
1438
+ [alternative]="alternate()"
1439
+ [emptyTemplate]="emptyTemplate()"
1440
+ [highlightText]="highlightText()"
1441
+ [loading]="loadingConfig()"
1442
+ [paging]="false"
1443
+ [showHeader]="true"
1444
+ [fixedHeader]="true"
1445
+ [showFooter]="false"
1446
+ [allowReordering]="false"
1447
+ [rowTemplate]="itemTemplate() ? customRowTemplate : undefined"
1448
+ [rowCssClass]="resolveRowCssClass"
1449
+ (onRowClick)="handleRowClick($event)"
1450
+ >
1451
+ @for (column of columns(); track trackColumnKey($index, column)) {
1452
+ <ax-text-column
1453
+ [dataField]="column.field"
1454
+ [caption]="column.title | translate | async"
1455
+ [translate]="true"
1456
+ [width]="resolveColumnWidth(column)"
1457
+ [expandHandler]="isExpandColumn($index, column)"
1458
+ [allowSorting]="false"
1459
+ [allowResizing]="false"
1460
+ />
1461
+ }
1462
+ </ax-data-table>
1463
+ }
1461
1464
 
1462
1465
  <ng-template #customRowTemplate let-ctx>
1463
1466
  <tr
@@ -1491,38 +1494,41 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImpor
1491
1494
  '[style.height.px]': 'tableHeight()',
1492
1495
  },
1493
1496
  template: `
1494
- <ax-data-table
1495
- class="ax-lookup-multi-column-table"
1496
- look="minimal"
1497
- [dataSource]="dataSource()"
1498
- [parentField]="parentField()"
1499
- [hasChildrenField]="hasChildrenField()"
1500
- [itemHeight]="itemHeight()"
1501
- [alternative]="alternate()"
1502
- [emptyTemplate]="emptyTemplate()"
1503
- [highlightText]="highlightText()"
1504
- [loading]="loadingConfig()"
1505
- [paging]="false"
1506
- [showHeader]="true"
1507
- [fixedHeader]="true"
1508
- [showFooter]="false"
1509
- [allowReordering]="false"
1510
- [rowTemplate]="itemTemplate() ? customRowTemplate : undefined"
1511
- [rowCssClass]="resolveRowCssClass"
1512
- (onRowClick)="handleRowClick($event)"
1513
- >
1514
- @for (column of columns(); track trackColumnKey($index, column)) {
1515
- <ax-text-column
1516
- [dataField]="column.field"
1517
- [caption]="column.title | translate | async"
1518
- [translate]="true"
1519
- [width]="resolveColumnWidth(column)"
1520
- [expandHandler]="isExpandColumn($index, column)"
1521
- [allowSorting]="false"
1522
- [allowResizing]="false"
1523
- />
1524
- }
1525
- </ax-data-table>
1497
+ <!-- ax-data-table only subscribes to dataSource in ngOnInit; re-create it when the source changes. -->
1498
+ @for (tableSource of [dataSource()]; track tableSource) {
1499
+ <ax-data-table
1500
+ class="ax-lookup-multi-column-table"
1501
+ look="minimal"
1502
+ [dataSource]="tableSource"
1503
+ [parentField]="parentField()"
1504
+ [hasChildrenField]="hasChildrenField()"
1505
+ [itemHeight]="itemHeight()"
1506
+ [alternative]="alternate()"
1507
+ [emptyTemplate]="emptyTemplate()"
1508
+ [highlightText]="highlightText()"
1509
+ [loading]="loadingConfig()"
1510
+ [paging]="false"
1511
+ [showHeader]="true"
1512
+ [fixedHeader]="true"
1513
+ [showFooter]="false"
1514
+ [allowReordering]="false"
1515
+ [rowTemplate]="itemTemplate() ? customRowTemplate : undefined"
1516
+ [rowCssClass]="resolveRowCssClass"
1517
+ (onRowClick)="handleRowClick($event)"
1518
+ >
1519
+ @for (column of columns(); track trackColumnKey($index, column)) {
1520
+ <ax-text-column
1521
+ [dataField]="column.field"
1522
+ [caption]="column.title | translate | async"
1523
+ [translate]="true"
1524
+ [width]="resolveColumnWidth(column)"
1525
+ [expandHandler]="isExpandColumn($index, column)"
1526
+ [allowSorting]="false"
1527
+ [allowResizing]="false"
1528
+ />
1529
+ }
1530
+ </ax-data-table>
1531
+ }
1526
1532
 
1527
1533
  <ng-template #customRowTemplate let-ctx>
1528
1534
  <tr
@@ -3483,7 +3489,7 @@ class AXLookupComponent extends NXValueComponent {
3483
3489
  }
3484
3490
  /**
3485
3491
  * Toggles an item in the multi-select list; the popup stays open.
3486
- * Clears the trigger search so the full list returns (select-box-like).
3492
+ * Keeps the current search query and filtered results so the user can select multiple matches in a row.
3487
3493
  */
3488
3494
  handleMultiToggle(e) {
3489
3495
  this.#emitItemClick(e.item);
@@ -3510,13 +3516,6 @@ class AXLookupComponent extends NXValueComponent {
3510
3516
  const next = exists ? current.filter((v) => !(v == e.value)) : [...current, e.value];
3511
3517
  this.value.set(next);
3512
3518
  }
3513
- if (this.isSheetSearchEnabled() && this.sheetSearchText()) {
3514
- this.#clearSheetSearch();
3515
- }
3516
- else if (this.isEditableTrigger() && this.searchText()) {
3517
- this.searchText.set('');
3518
- this.#applyFilterDebounced('');
3519
- }
3520
3519
  }
3521
3520
  /**
3522
3521
  * Applies the multi-select-tree selection to the value; the popup stays open.
@@ -3552,13 +3551,6 @@ class AXLookupComponent extends NXValueComponent {
3552
3551
  }
3553
3552
  this.value.set([...e.ids]);
3554
3553
  }
3555
- if (this.isSheetSearchEnabled() && this.sheetSearchText()) {
3556
- this.#clearSheetSearch();
3557
- }
3558
- else if (this.isEditableTrigger() && this.searchText()) {
3559
- this.searchText.set('');
3560
- this.#applyFilterDebounced('');
3561
- }
3562
3554
  }
3563
3555
  /** Forwards native focus from the trigger input. */
3564
3556
  emitOnFocus(e) {