@exhaustive-ui/core 22.0.0-rc.2 → 22.0.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.
- package/README.md +1 -1
- package/fesm2022/exhaustive-ui-core-accordion.mjs +5 -0
- package/fesm2022/exhaustive-ui-core-accordion.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-autocomplete.mjs +12 -14
- package/fesm2022/exhaustive-ui-core-autocomplete.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-avatargroup.mjs +3 -9
- package/fesm2022/exhaustive-ui-core-avatargroup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-badge.mjs +3 -34
- package/fesm2022/exhaustive-ui-core-badge.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-basecomponent.mjs +3 -0
- package/fesm2022/exhaustive-ui-core-basecomponent.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-baseinput.mjs +27 -7
- package/fesm2022/exhaustive-ui-core-baseinput.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-blockui.mjs +13 -1
- package/fesm2022/exhaustive-ui-core-blockui.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-breadcrumb.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-breadcrumb.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-button.mjs +10 -34
- package/fesm2022/exhaustive-ui-core-button.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-carousel.mjs +5 -0
- package/fesm2022/exhaustive-ui-core-carousel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-cascadeselect.mjs +25 -11
- package/fesm2022/exhaustive-ui-core-cascadeselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-checkbox.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-checkbox.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-config.mjs +1 -8
- package/fesm2022/exhaustive-ui-core-config.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-confirmdialog.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-confirmdialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-confirmpopup.mjs +3 -8
- package/fesm2022/exhaustive-ui-core-confirmpopup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-contextmenu.mjs +16 -3
- package/fesm2022/exhaustive-ui-core-contextmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dataview.mjs +2 -14
- package/fesm2022/exhaustive-ui-core-dataview.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-datepicker.mjs +38 -4
- package/fesm2022/exhaustive-ui-core-datepicker.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dialog.mjs +12 -7
- package/fesm2022/exhaustive-ui-core-dialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dock.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-dock.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dom.mjs +9 -2
- package/fesm2022/exhaustive-ui-core-dom.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-drawer.mjs +6 -6
- package/fesm2022/exhaustive-ui-core-drawer.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs +19 -19
- package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-editor.mjs +11 -0
- package/fesm2022/exhaustive-ui-core-editor.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-fileupload.mjs +4 -1
- package/fesm2022/exhaustive-ui-core-fileupload.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-galleria.mjs +12 -0
- package/fesm2022/exhaustive-ui-core-galleria.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-image.mjs +7 -0
- package/fesm2022/exhaustive-ui-core-image.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-imagecompare.mjs +5 -5
- package/fesm2022/exhaustive-ui-core-imagecompare.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inplace.mjs +6 -32
- package/fesm2022/exhaustive-ui-core-inplace.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputgroupaddon.mjs +3 -9
- package/fesm2022/exhaustive-ui-core-inputgroupaddon.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputmask.mjs +54 -27
- package/fesm2022/exhaustive-ui-core-inputmask.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputnumber.mjs +9 -11
- package/fesm2022/exhaustive-ui-core-inputnumber.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputotp.mjs +8 -3
- package/fesm2022/exhaustive-ui-core-inputotp.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputtext.mjs +6 -14
- package/fesm2022/exhaustive-ui-core-inputtext.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-listbox.mjs +53 -20
- package/fesm2022/exhaustive-ui-core-listbox.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-megamenu.mjs +4 -1
- package/fesm2022/exhaustive-ui-core-megamenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-menu.mjs +11 -5
- package/fesm2022/exhaustive-ui-core-menu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-menubar.mjs +8 -2
- package/fesm2022/exhaustive-ui-core-menubar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-message.mjs +5 -10
- package/fesm2022/exhaustive-ui-core-message.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-metergroup.mjs +3 -0
- package/fesm2022/exhaustive-ui-core-metergroup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-motion.mjs +10 -1
- package/fesm2022/exhaustive-ui-core-motion.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-multiselect.mjs +77 -38
- package/fesm2022/exhaustive-ui-core-multiselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-orderlist.mjs +14 -19
- package/fesm2022/exhaustive-ui-core-orderlist.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-organizationchart.mjs +3 -1
- package/fesm2022/exhaustive-ui-core-organizationchart.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-overlay.mjs +28 -0
- package/fesm2022/exhaustive-ui-core-overlay.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-panel.mjs +12 -2
- package/fesm2022/exhaustive-ui-core-panel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-panelmenu.mjs +61 -13
- package/fesm2022/exhaustive-ui-core-panelmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-password.mjs +37 -26
- package/fesm2022/exhaustive-ui-core-password.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-picklist.mjs +11 -25
- package/fesm2022/exhaustive-ui-core-picklist.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-popover.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-popover.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-radiobutton.mjs +8 -4
- package/fesm2022/exhaustive-ui-core-radiobutton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-scroller.mjs +91 -10
- package/fesm2022/exhaustive-ui-core-scroller.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-select.mjs +36 -4
- package/fesm2022/exhaustive-ui-core-select.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-selectbutton.mjs +3 -8
- package/fesm2022/exhaustive-ui-core-selectbutton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-slider.mjs +6 -0
- package/fesm2022/exhaustive-ui-core-slider.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-speeddial.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-speeddial.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-splitbutton.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-splitbutton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-stepper.mjs +7 -11
- package/fesm2022/exhaustive-ui-core-stepper.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-steps.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-steps.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-table.mjs +227 -32
- package/fesm2022/exhaustive-ui-core-table.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tabs.mjs +16 -1
- package/fesm2022/exhaustive-ui-core-tabs.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-textarea.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-textarea.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tieredmenu.mjs +60 -16
- package/fesm2022/exhaustive-ui-core-tieredmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-toast.mjs +6 -2
- package/fesm2022/exhaustive-ui-core-toast.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-toggleswitch.mjs +2 -9
- package/fesm2022/exhaustive-ui-core-toggleswitch.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tooltip.mjs +9 -17
- package/fesm2022/exhaustive-ui-core-tooltip.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tree.mjs +99 -28
- package/fesm2022/exhaustive-ui-core-tree.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-treeselect.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-treeselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-treetable.mjs +75 -19
- package/fesm2022/exhaustive-ui-core-treetable.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-utils.mjs +15 -0
- package/fesm2022/exhaustive-ui-core-utils.mjs.map +1 -1
- package/package.json +5 -5
- package/schematics/collection.json +1 -1
- package/schematics/migrate-from-primeng/index.js +2 -16
- package/schematics/migrate-from-primeng/schema.json +1 -2
- package/schematics/migrations/config-input-style-to-variant/migration.js +70 -0
- package/schematics/migrations/remove-dead-inputs/migration.js +46 -7
- package/schematics/migrations/removed-exports/migration.js +73 -0
- package/schematics/migrations/renamed-inputs/migration.js +54 -3
- package/schematics/migrations/renamed-outputs/migration.js +89 -0
- package/schematics/migrations/renamed-templates/migration.js +59 -0
- package/schematics/migrations/styleclass-to-class/migration.js +5 -0
- package/schematics/migrations.json +23 -3
- package/schematics/utils/config-signal.js +115 -0
- package/schematics/utils/removed-exports.js +172 -0
- package/schematics/utils/removed-inputs.js +0 -0
- package/schematics/utils/renamed-inputs.js +20 -9
- package/schematics/utils/renamed-outputs.js +154 -0
- package/schematics/utils/renamed-templates.js +142 -0
- package/schematics/utils/versions.json +8 -8
- package/types/exhaustive-ui-core-api.d.ts +0 -10
- package/types/exhaustive-ui-core-autocomplete.d.ts +4 -9
- package/types/exhaustive-ui-core-avatargroup.d.ts +1 -6
- package/types/exhaustive-ui-core-badge.d.ts +1 -14
- package/types/exhaustive-ui-core-basecomponent.d.ts +3 -0
- package/types/exhaustive-ui-core-baseinput.d.ts +3 -3
- package/types/exhaustive-ui-core-button.d.ts +4 -25
- package/types/exhaustive-ui-core-cascadeselect.d.ts +5 -2
- package/types/exhaustive-ui-core-config.d.ts +0 -8
- package/types/exhaustive-ui-core-confirmpopup.d.ts +1 -6
- package/types/exhaustive-ui-core-contextmenu.d.ts +3 -0
- package/types/exhaustive-ui-core-dataview.d.ts +1 -11
- package/types/exhaustive-ui-core-datepicker.d.ts +1 -0
- package/types/exhaustive-ui-core-dialog.d.ts +1 -1
- package/types/exhaustive-ui-core-drawer.d.ts +2 -2
- package/types/exhaustive-ui-core-dynamicdialog.d.ts +3 -12
- package/types/exhaustive-ui-core-editor.d.ts +5 -0
- package/types/exhaustive-ui-core-fileupload.d.ts +3 -0
- package/types/exhaustive-ui-core-galleria.d.ts +12 -0
- package/types/exhaustive-ui-core-image.d.ts +1 -0
- package/types/exhaustive-ui-core-imagecompare.d.ts +2 -2
- package/types/exhaustive-ui-core-inplace.d.ts +3 -11
- package/types/exhaustive-ui-core-inputgroupaddon.d.ts +1 -6
- package/types/exhaustive-ui-core-inputmask.d.ts +2 -2
- package/types/exhaustive-ui-core-inputtext.d.ts +3 -10
- package/types/exhaustive-ui-core-listbox.d.ts +12 -6
- package/types/exhaustive-ui-core-megamenu.d.ts +3 -0
- package/types/exhaustive-ui-core-menu.d.ts +6 -11
- package/types/exhaustive-ui-core-menubar.d.ts +5 -11
- package/types/exhaustive-ui-core-message.d.ts +1 -8
- package/types/exhaustive-ui-core-metergroup.d.ts +3 -0
- package/types/exhaustive-ui-core-multiselect.d.ts +13 -10
- package/types/exhaustive-ui-core-orderlist.d.ts +2 -12
- package/types/exhaustive-ui-core-organizationchart.d.ts +3 -1
- package/types/exhaustive-ui-core-overlay.d.ts +8 -0
- package/types/exhaustive-ui-core-panel.d.ts +2 -0
- package/types/exhaustive-ui-core-panelmenu.d.ts +9 -0
- package/types/exhaustive-ui-core-password.d.ts +19 -14
- package/types/exhaustive-ui-core-picklist.d.ts +1 -16
- package/types/exhaustive-ui-core-radiobutton.d.ts +4 -1
- package/types/exhaustive-ui-core-scroller.d.ts +10 -0
- package/types/exhaustive-ui-core-select.d.ts +11 -27
- package/types/exhaustive-ui-core-selectbutton.d.ts +1 -6
- package/types/exhaustive-ui-core-stepper.d.ts +3 -11
- package/types/exhaustive-ui-core-table.d.ts +32 -4
- package/types/exhaustive-ui-core-tieredmenu.d.ts +8 -0
- package/types/exhaustive-ui-core-toast.d.ts +3 -0
- package/types/exhaustive-ui-core-toggleswitch.d.ts +1 -7
- package/types/exhaustive-ui-core-tooltip.d.ts +3 -10
- package/types/exhaustive-ui-core-tree.d.ts +17 -1
- package/types/exhaustive-ui-core-treetable.d.ts +24 -5
- package/types/exhaustive-ui-core-types-multiselect.d.ts +0 -6
- package/types/exhaustive-ui-core-types-table.d.ts +1 -1
- package/types/exhaustive-ui-core-types-tree.d.ts +5 -0
- package/types/exhaustive-ui-core-utils.d.ts +15 -0
|
@@ -8,7 +8,7 @@ import * as i6 from '@angular/forms';
|
|
|
8
8
|
import { FormsModule } from '@angular/forms';
|
|
9
9
|
import { resolveFieldData, isEmpty, getOffset, addStyle, findSingle, getIndex, calculateScrollbarWidth, getHiddenElementOuterWidth, getHiddenElementOuterHeight, reorderArray, isClickable, equals, find, removeClass, addClass, calculateScrollbarHeight, clearSelection, invokeElementMethod, focus, isNotEmpty, getAttribute } from '@exhaustive-ui/utils';
|
|
10
10
|
import * as i4 from '@exhaustive-ui/core/api';
|
|
11
|
-
import { PrimeTemplate, FilterService, SharedModule } from '@exhaustive-ui/core/api';
|
|
11
|
+
import { OverlayService, PrimeTemplate, FilterService, SharedModule } from '@exhaustive-ui/core/api';
|
|
12
12
|
import * as i5 from '@exhaustive-ui/core/badge';
|
|
13
13
|
import { BadgeModule } from '@exhaustive-ui/core/badge';
|
|
14
14
|
import { BaseComponent, PARENT_INSTANCE } from '@exhaustive-ui/core/basecomponent';
|
|
@@ -1068,10 +1068,11 @@ class TreeTable extends BaseComponent {
|
|
|
1068
1068
|
contextMenu = input(/* @ts-ignore */
|
|
1069
1069
|
...(ngDevMode ? [undefined, { debugName: "contextMenu" }] : /* istanbul ignore next */ []));
|
|
1070
1070
|
/**
|
|
1071
|
-
* Function to optimize the dom operations by delegating to ngForTrackBy, default algorithm checks for
|
|
1071
|
+
* Function to optimize the dom operations by delegating to ngForTrackBy, default algorithm checks for the identity of the row node.
|
|
1072
1072
|
* @group Props
|
|
1073
1073
|
*/
|
|
1074
|
-
|
|
1074
|
+
// The serialized row wrappers are rebuilt on every expand, collapse, sort or filter: tracking the wrapper re-created every row.
|
|
1075
|
+
rowTrackBy = input((index, item) => item?.node ?? item, /* @ts-ignore */
|
|
1075
1076
|
...(ngDevMode ? [{ debugName: "rowTrackBy" }] : /* istanbul ignore next */ []));
|
|
1076
1077
|
/**
|
|
1077
1078
|
* An array of FilterMetadata objects to provide external filters.
|
|
@@ -1447,6 +1448,13 @@ class TreeTable extends BaseComponent {
|
|
|
1447
1448
|
...(ngDevMode ? [{ debugName: "editingCellClick" }] : /* istanbul ignore next */ []));
|
|
1448
1449
|
documentEditListener = signal(undefined, /* @ts-ignore */
|
|
1449
1450
|
...(ngDevMode ? [{ debugName: "documentEditListener" }] : /* istanbul ignore next */ []));
|
|
1451
|
+
overlayService = inject(OverlayService);
|
|
1452
|
+
/**
|
|
1453
|
+
* Clicks inside an overlay appended to the body (MultiSelect, Select, DatePicker...) never bubble through the editing cell;
|
|
1454
|
+
* the overlay reports them here with the component host as target.
|
|
1455
|
+
*/
|
|
1456
|
+
overlaySubscription = signal(undefined, /* @ts-ignore */
|
|
1457
|
+
...(ngDevMode ? [{ debugName: "overlaySubscription" }] : /* istanbul ignore next */ []));
|
|
1450
1458
|
initialized = signal(undefined, /* @ts-ignore */
|
|
1451
1459
|
...(ngDevMode ? [{ debugName: "initialized" }] : /* istanbul ignore next */ []));
|
|
1452
1460
|
toggleRowIndex = signal(undefined, /* @ts-ignore */
|
|
@@ -1962,7 +1970,15 @@ class TreeTable extends BaseComponent {
|
|
|
1962
1970
|
}
|
|
1963
1971
|
}
|
|
1964
1972
|
else {
|
|
1965
|
-
|
|
1973
|
+
// Without a colgroup template the cells of the first row set the column widths
|
|
1974
|
+
const cell = table.rows?.[0]?.cells[resizeColumnIndex];
|
|
1975
|
+
if (cell) {
|
|
1976
|
+
cell.style.width = newColumnWidth + 'px';
|
|
1977
|
+
const nextCell = cell.nextElementSibling;
|
|
1978
|
+
if (nextCell && nextColumnWidth) {
|
|
1979
|
+
nextCell.style.width = nextColumnWidth + 'px';
|
|
1980
|
+
}
|
|
1981
|
+
}
|
|
1966
1982
|
}
|
|
1967
1983
|
}
|
|
1968
1984
|
}
|
|
@@ -2476,7 +2492,7 @@ class TreeTable extends BaseComponent {
|
|
|
2476
2492
|
const isStrictMode = this.filterMode() === 'strict';
|
|
2477
2493
|
let isValueChanged = false;
|
|
2478
2494
|
for (let node of this.value()) {
|
|
2479
|
-
let copyNode =
|
|
2495
|
+
let copyNode = this.copyFilteredNode(node);
|
|
2480
2496
|
let localMatch = true;
|
|
2481
2497
|
let globalMatch = false;
|
|
2482
2498
|
let paramsWithoutNode;
|
|
@@ -2498,7 +2514,7 @@ class TreeTable extends BaseComponent {
|
|
|
2498
2514
|
}
|
|
2499
2515
|
}
|
|
2500
2516
|
if (this._filters()['global'] && !globalMatch && globalFilterFieldsArray) {
|
|
2501
|
-
let copyNodeForGlobal =
|
|
2517
|
+
let copyNodeForGlobal = this.copyFilteredNode(copyNode);
|
|
2502
2518
|
let filterField = undefined;
|
|
2503
2519
|
let filterValue = this._filters()['global'].value;
|
|
2504
2520
|
let filterConstraint = this.filterService.filters[this._filters()['global'].matchMode];
|
|
@@ -2544,6 +2560,21 @@ class TreeTable extends BaseComponent {
|
|
|
2544
2560
|
this.resetScrollTop();
|
|
2545
2561
|
}
|
|
2546
2562
|
}
|
|
2563
|
+
/**
|
|
2564
|
+
* Filtering renders shallow copies of the nodes; this maps each copy back to the node of value().
|
|
2565
|
+
*/
|
|
2566
|
+
filteredNodeSources = new WeakMap();
|
|
2567
|
+
copyFilteredNode(node) {
|
|
2568
|
+
const copy = { ...node };
|
|
2569
|
+
this.filteredNodeSources.set(copy, this.getSourceNode(node));
|
|
2570
|
+
return copy;
|
|
2571
|
+
}
|
|
2572
|
+
/**
|
|
2573
|
+
* Returns the node of value() a filtered copy was made from, or the node itself when it is not a copy.
|
|
2574
|
+
*/
|
|
2575
|
+
getSourceNode(node) {
|
|
2576
|
+
return this.filteredNodeSources.get(node) ?? node;
|
|
2577
|
+
}
|
|
2547
2578
|
findFilteredNodes(node, paramsWithoutNode) {
|
|
2548
2579
|
if (node) {
|
|
2549
2580
|
let matched = false;
|
|
@@ -2551,7 +2582,7 @@ class TreeTable extends BaseComponent {
|
|
|
2551
2582
|
let childNodes = [...node.children];
|
|
2552
2583
|
node.children = [];
|
|
2553
2584
|
for (let childNode of childNodes) {
|
|
2554
|
-
let copyChildNode =
|
|
2585
|
+
let copyChildNode = this.copyFilteredNode(childNode);
|
|
2555
2586
|
if (this.isFilterMatched(copyChildNode, paramsWithoutNode)) {
|
|
2556
2587
|
matched = true;
|
|
2557
2588
|
node.children.push(copyChildNode);
|
|
@@ -2641,6 +2672,10 @@ class TreeTable extends BaseComponent {
|
|
|
2641
2672
|
this.documentEditListener()();
|
|
2642
2673
|
this.documentEditListener.set(null);
|
|
2643
2674
|
}
|
|
2675
|
+
if (this.overlaySubscription()) {
|
|
2676
|
+
this.overlaySubscription().unsubscribe();
|
|
2677
|
+
this.overlaySubscription.set(undefined);
|
|
2678
|
+
}
|
|
2644
2679
|
}
|
|
2645
2680
|
onDestroy() {
|
|
2646
2681
|
this.unbindDocumentEditListener();
|
|
@@ -3040,6 +3075,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
3040
3075
|
hostDirectives: [Bind]
|
|
3041
3076
|
}]
|
|
3042
3077
|
}], ctorParameters: () => [], propDecorators: { columns: [{ type: i0.Input, args: [{ isSignal: true, alias: "columns", required: false }] }], tableStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "tableStyle", required: false }] }], tableStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "tableStyleClass", required: false }] }], autoLayout: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoLayout", required: false }] }], lazy: [{ type: i0.Input, args: [{ isSignal: true, alias: "lazy", required: false }] }], lazyLoadOnInit: [{ type: i0.Input, args: [{ isSignal: true, alias: "lazyLoadOnInit", required: false }] }], paginator: [{ type: i0.Input, args: [{ isSignal: true, alias: "paginator", required: false }] }], rows: [{ type: i0.Input, args: [{ isSignal: true, alias: "rows", required: false }] }, { type: i0.Output, args: ["rowsChange"] }], first: [{ type: i0.Input, args: [{ isSignal: true, alias: "first", required: false }] }, { type: i0.Output, args: ["firstChange"] }], pageLinks: [{ type: i0.Input, args: [{ isSignal: true, alias: "pageLinks", required: false }] }], rowsPerPageOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowsPerPageOptions", required: false }] }], alwaysShowPaginator: [{ type: i0.Input, args: [{ isSignal: true, alias: "alwaysShowPaginator", required: false }] }], paginatorPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "paginatorPosition", required: false }] }], paginatorStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "paginatorStyleClass", required: false }] }], paginatorDropdownAppendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "paginatorDropdownAppendTo", required: false }] }], currentPageReportTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "currentPageReportTemplate", required: false }] }], showCurrentPageReport: [{ type: i0.Input, args: [{ isSignal: true, alias: "showCurrentPageReport", required: false }] }], showJumpToPageDropdown: [{ type: i0.Input, args: [{ isSignal: true, alias: "showJumpToPageDropdown", required: false }] }], showFirstLastIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showFirstLastIcon", required: false }] }], showPageLinks: [{ type: i0.Input, args: [{ isSignal: true, alias: "showPageLinks", required: false }] }], defaultSortOrder: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultSortOrder", required: false }] }], sortMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "sortMode", required: false }] }], resetPageOnSort: [{ type: i0.Input, args: [{ isSignal: true, alias: "resetPageOnSort", required: false }] }], customSort: [{ type: i0.Input, args: [{ isSignal: true, alias: "customSort", required: false }] }], selectionMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectionMode", required: false }] }], contextMenuSelection: [{ type: i0.Input, args: [{ isSignal: true, alias: "contextMenuSelection", required: false }] }, { type: i0.Output, args: ["contextMenuSelectionChange"] }], contextMenuSelectionMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "contextMenuSelectionMode", required: false }] }], dataKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataKey", required: false }] }], metaKeySelection: [{ type: i0.Input, args: [{ isSignal: true, alias: "metaKeySelection", required: false }] }], compareSelectionBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "compareSelectionBy", required: false }] }], rowHover: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowHover", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], loadingIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "loadingIcon", required: false }] }], showLoader: [{ type: i0.Input, args: [{ isSignal: true, alias: "showLoader", required: false }] }], scrollable: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollable", required: false }] }], scrollHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollHeight", required: false }] }], virtualScroll: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualScroll", required: false }] }], virtualScrollItemSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualScrollItemSize", required: false }] }], virtualScrollOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualScrollOptions", required: false }] }], virtualScrollDelay: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualScrollDelay", required: false }] }], frozenWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "frozenWidth", required: false }] }], frozenColumns: [{ type: i0.Input, args: [{ isSignal: true, alias: "frozenColumns", required: false }] }], resizableColumns: [{ type: i0.Input, args: [{ isSignal: true, alias: "resizableColumns", required: false }] }], columnResizeMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "columnResizeMode", required: false }] }], reorderableColumns: [{ type: i0.Input, args: [{ isSignal: true, alias: "reorderableColumns", required: false }] }], contextMenu: [{ type: i0.Input, args: [{ isSignal: true, alias: "contextMenu", required: false }] }], rowTrackBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowTrackBy", required: false }] }], filters: [{ type: i0.Input, args: [{ isSignal: true, alias: "filters", required: false }] }], globalFilterFields: [{ type: i0.Input, args: [{ isSignal: true, alias: "globalFilterFields", required: false }] }], filterDelay: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterDelay", required: false }] }], filterMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterMode", required: false }] }], filterLocale: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterLocale", required: false }] }], paginatorLocale: [{ type: i0.Input, args: [{ isSignal: true, alias: "paginatorLocale", required: false }] }], totalRecords: [{ type: i0.Input, args: [{ isSignal: true, alias: "totalRecords", required: false }] }], sortField: [{ type: i0.Input, args: [{ isSignal: true, alias: "sortField", required: false }] }], sortOrder: [{ type: i0.Input, args: [{ isSignal: true, alias: "sortOrder", required: false }] }], multiSortMeta: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiSortMeta", required: false }] }], selection: [{ type: i0.Input, args: [{ isSignal: true, alias: "selection", required: false }] }, { type: i0.Output, args: ["selectionChange"] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], selectionKeys: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectionKeys", required: false }] }], showGridlines: [{ type: i0.Input, args: [{ isSignal: true, alias: "showGridlines", required: false }] }], onFilter: [{ type: i0.Output, args: ["onFilter"] }], onNodeExpand: [{ type: i0.Output, args: ["onNodeExpand"] }], onNodeCollapse: [{ type: i0.Output, args: ["onNodeCollapse"] }], onPage: [{ type: i0.Output, args: ["onPage"] }], onSort: [{ type: i0.Output, args: ["onSort"] }], onLazyLoad: [{ type: i0.Output, args: ["onLazyLoad"] }], sortFunction: [{ type: i0.Output, args: ["sortFunction"] }], onColResize: [{ type: i0.Output, args: ["onColResize"] }], onColReorder: [{ type: i0.Output, args: ["onColReorder"] }], onNodeSelect: [{ type: i0.Output, args: ["onNodeSelect"] }], onNodeUnselect: [{ type: i0.Output, args: ["onNodeUnselect"] }], onContextMenuSelect: [{ type: i0.Output, args: ["onContextMenuSelect"] }], onHeaderCheckboxToggle: [{ type: i0.Output, args: ["onHeaderCheckboxToggle"] }], onEditInit: [{ type: i0.Output, args: ["onEditInit"] }], onEditComplete: [{ type: i0.Output, args: ["onEditComplete"] }], onEditCancel: [{ type: i0.Output, args: ["onEditCancel"] }], selectionKeysChange: [{ type: i0.Output, args: ["selectionKeysChange"] }], resizeHelperViewChild: [{ type: i0.ViewChild, args: ['resizeHelper', { isSignal: true }] }], reorderIndicatorUpViewChild: [{ type: i0.ViewChild, args: ['reorderIndicatorUp', { isSignal: true }] }], reorderIndicatorDownViewChild: [{ type: i0.ViewChild, args: ['reorderIndicatorDown', { isSignal: true }] }], tableViewChild: [{ type: i0.ViewChild, args: ['table', { isSignal: true }] }], scrollableViewChild: [{ type: i0.ViewChild, args: ['scrollableView', { isSignal: true }] }], scrollableFrozenViewChild: [{ type: i0.ViewChild, args: ['scrollableFrozenView', { isSignal: true }] }], _colGroupTemplate: [{ type: i0.ContentChild, args: ['colgroup', { ...{ descendants: false }, isSignal: true }] }], _captionTemplate: [{ type: i0.ContentChild, args: ['caption', { ...{ descendants: false }, isSignal: true }] }], _headerTemplate: [{ type: i0.ContentChild, args: ['header', { ...{ descendants: false }, isSignal: true }] }], _bodyTemplate: [{ type: i0.ContentChild, args: ['body', { ...{ descendants: false }, isSignal: true }] }], _footerTemplate: [{ type: i0.ContentChild, args: ['footer', { ...{ descendants: false }, isSignal: true }] }], _summaryTemplate: [{ type: i0.ContentChild, args: ['summary', { ...{ descendants: false }, isSignal: true }] }], _emptyMessageTemplate: [{ type: i0.ContentChild, args: ['emptymessage', { ...{ descendants: false }, isSignal: true }] }], _paginatorLeftTemplate: [{ type: i0.ContentChild, args: ['paginatorleft', { ...{ descendants: false }, isSignal: true }] }], _paginatorRightTemplate: [{ type: i0.ContentChild, args: ['paginatorright', { ...{ descendants: false }, isSignal: true }] }], _paginatorDropdownItemTemplate: [{ type: i0.ContentChild, args: ['paginatordropdownitem', { ...{ descendants: false }, isSignal: true }] }], _frozenHeaderTemplate: [{ type: i0.ContentChild, args: ['frozenheader', { ...{ descendants: false }, isSignal: true }] }], _frozenBodyTemplate: [{ type: i0.ContentChild, args: ['frozenbody', { ...{ descendants: false }, isSignal: true }] }], _frozenFooterTemplate: [{ type: i0.ContentChild, args: ['frozenfooter', { ...{ descendants: false }, isSignal: true }] }], _frozenColGroupTemplate: [{ type: i0.ContentChild, args: ['frozencolgroup', { ...{ descendants: false }, isSignal: true }] }], _loadingIconTemplate: [{ type: i0.ContentChild, args: ['loadingicon', { ...{ descendants: false }, isSignal: true }] }], _reorderIndicatorUpIconTemplate: [{ type: i0.ContentChild, args: ['reorderindicatorupicon', { ...{ descendants: false }, isSignal: true }] }], _reorderIndicatorDownIconTemplate: [{ type: i0.ContentChild, args: ['reorderindicatordownicon', { ...{ descendants: false }, isSignal: true }] }], _sortIconTemplate: [{ type: i0.ContentChild, args: ['sorticon', { ...{ descendants: false }, isSignal: true }] }], _checkboxIconTemplate: [{ type: i0.ContentChild, args: ['checkboxicon', { ...{ descendants: false }, isSignal: true }] }], _headerCheckboxIconTemplate: [{ type: i0.ContentChild, args: ['headercheckboxicon', { ...{ descendants: false }, isSignal: true }] }], _togglerIconTemplate: [{ type: i0.ContentChild, args: ['togglericon', { ...{ descendants: false }, isSignal: true }] }], _paginatorFirstPageLinkIconTemplate: [{ type: i0.ContentChild, args: ['paginatorfirstpagelinkicon', { ...{ descendants: false }, isSignal: true }] }], _paginatorLastPageLinkIconTemplate: [{ type: i0.ContentChild, args: ['paginatorlastpagelinkicon', { ...{ descendants: false }, isSignal: true }] }], _paginatorPreviousPageLinkIconTemplate: [{ type: i0.ContentChild, args: ['paginatorpreviouspagelinkicon', { ...{ descendants: false }, isSignal: true }] }], _paginatorNextPageLinkIconTemplate: [{ type: i0.ContentChild, args: ['paginatornextpagelinkicon', { ...{ descendants: false }, isSignal: true }] }], _loaderTemplate: [{ type: i0.ContentChild, args: ['loader', { ...{ descendants: false }, isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }] } });
|
|
3078
|
+
/**
|
|
3079
|
+
* @internal Rendering detail of TreeTable, not part of the public API: it may change or stop being exported in a minor version.
|
|
3080
|
+
*/
|
|
3043
3081
|
class TTBody extends BaseComponent {
|
|
3044
3082
|
tt = inject(TreeTable);
|
|
3045
3083
|
treeTableService = inject(TreeTableService);
|
|
@@ -3132,6 +3170,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
3132
3170
|
}
|
|
3133
3171
|
}]
|
|
3134
3172
|
}], propDecorators: { columns: [{ type: i0.Input, args: [{ isSignal: true, alias: "pTreeTableBody", required: false }] }], template: [{ type: i0.Input, args: [{ isSignal: true, alias: "pTreeTableBodyTemplate", required: false }] }], frozen: [{ type: i0.Input, args: [{ isSignal: true, alias: "frozen", required: false }] }], serializedNodes: [{ type: i0.Input, args: [{ isSignal: true, alias: "serializedNodes", required: false }] }], scrollerOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollerOptions", required: false }] }] } });
|
|
3173
|
+
/**
|
|
3174
|
+
* @internal Rendering detail of TreeTable, not part of the public API: it may change or stop being exported in a minor version.
|
|
3175
|
+
*/
|
|
3135
3176
|
class TTScrollableView extends BaseComponent {
|
|
3136
3177
|
tt = inject(TreeTable);
|
|
3137
3178
|
zone = inject(NgZone);
|
|
@@ -3335,6 +3376,7 @@ class TTScrollableView extends BaseComponent {
|
|
|
3335
3376
|
[style]="{ height: tt.scrollHeight() !== 'flex' ? tt.scrollHeight() : undefined }"
|
|
3336
3377
|
[scrollHeight]="scrollHeight() !== 'flex' ? undefined : '100%'"
|
|
3337
3378
|
[itemSize]="tt.virtualScrollItemSize() || 28"
|
|
3379
|
+
[delay]="tt.lazy() ? tt.virtualScrollDelay() : 0"
|
|
3338
3380
|
[lazy]="tt.lazy()"
|
|
3339
3381
|
(onLazyLoad)="tt.onLazyItemLoad($event)"
|
|
3340
3382
|
[options]="tt.virtualScrollOptions()"
|
|
@@ -3437,6 +3479,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
3437
3479
|
[style]="{ height: tt.scrollHeight() !== 'flex' ? tt.scrollHeight() : undefined }"
|
|
3438
3480
|
[scrollHeight]="scrollHeight() !== 'flex' ? undefined : '100%'"
|
|
3439
3481
|
[itemSize]="tt.virtualScrollItemSize() || 28"
|
|
3482
|
+
[delay]="tt.lazy() ? tt.virtualScrollDelay() : 0"
|
|
3440
3483
|
[lazy]="tt.lazy()"
|
|
3441
3484
|
(onLazyLoad)="tt.onLazyItemLoad($event)"
|
|
3442
3485
|
[options]="tt.virtualScrollOptions()"
|
|
@@ -3598,10 +3641,6 @@ class TTSortIcon extends BaseComponent {
|
|
|
3598
3641
|
hostName = 'TreeTable';
|
|
3599
3642
|
field = input(/* @ts-ignore */
|
|
3600
3643
|
...(ngDevMode ? [undefined, { debugName: "field" }] : /* istanbul ignore next */ []));
|
|
3601
|
-
ariaLabelDesc = input(/* @ts-ignore */
|
|
3602
|
-
...(ngDevMode ? [undefined, { debugName: "ariaLabelDesc" }] : /* istanbul ignore next */ []));
|
|
3603
|
-
ariaLabelAsc = input(/* @ts-ignore */
|
|
3604
|
-
...(ngDevMode ? [undefined, { debugName: "ariaLabelAsc" }] : /* istanbul ignore next */ []));
|
|
3605
3644
|
subscription;
|
|
3606
3645
|
sortOrder = signal(undefined, /* @ts-ignore */
|
|
3607
3646
|
...(ngDevMode ? [{ debugName: "sortOrder" }] : /* istanbul ignore next */ []));
|
|
@@ -3653,7 +3692,7 @@ class TTSortIcon extends BaseComponent {
|
|
|
3653
3692
|
}
|
|
3654
3693
|
}
|
|
3655
3694
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: TTSortIcon, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3656
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: TTSortIcon, isStandalone: false, selector: "p-treeTableSortIcon, p-treetable-sort-icon, p-tree-table-sort-icon", inputs: { field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: false, transformFunction: null }
|
|
3695
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: TTSortIcon, isStandalone: false, selector: "p-treeTableSortIcon, p-treetable-sort-icon, p-tree-table-sort-icon", inputs: { field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: false, transformFunction: null } }, providers: [TreeTableStyle], usesInheritance: true, ngImport: i0, template: `
|
|
3657
3696
|
@if (!tt.sortIconTemplate() && !tt._sortIconTemplate()) {
|
|
3658
3697
|
@if (sortOrder() === 0) {
|
|
3659
3698
|
<svg data-p-icon="sort-alt" [class]="cx('sortableColumnIcon')" [pBind]="ptm('sortableColumnIcon')" />
|
|
@@ -3705,7 +3744,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
3705
3744
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3706
3745
|
providers: [TreeTableStyle]
|
|
3707
3746
|
}]
|
|
3708
|
-
}], ctorParameters: () => [], propDecorators: { field: [{ type: i0.Input, args: [{ isSignal: true, alias: "field", required: false }] }]
|
|
3747
|
+
}], ctorParameters: () => [], propDecorators: { field: [{ type: i0.Input, args: [{ isSignal: true, alias: "field", required: false }] }] } });
|
|
3709
3748
|
class TTResizableColumn extends BaseComponent {
|
|
3710
3749
|
tt = inject(TreeTable);
|
|
3711
3750
|
zone = inject(NgZone);
|
|
@@ -3761,8 +3800,13 @@ class TTResizableColumn extends BaseComponent {
|
|
|
3761
3800
|
this.tt.onColumnResize(event);
|
|
3762
3801
|
}
|
|
3763
3802
|
onDocumentMouseUp(event) {
|
|
3764
|
-
|
|
3765
|
-
|
|
3803
|
+
try {
|
|
3804
|
+
this.tt.onColumnResizeEnd(event, this.el.nativeElement);
|
|
3805
|
+
}
|
|
3806
|
+
finally {
|
|
3807
|
+
// never leave the helper following the pointer, even if the resize failed
|
|
3808
|
+
this.unbindDocumentEvents();
|
|
3809
|
+
}
|
|
3766
3810
|
}
|
|
3767
3811
|
isEnabled() {
|
|
3768
3812
|
return this.ttResizableColumnDisabled() !== true;
|
|
@@ -4387,6 +4431,12 @@ class TTEditableColumn extends BaseComponent {
|
|
|
4387
4431
|
this.el?.nativeElement.setAttribute('data-p-cell-editing', 'true');
|
|
4388
4432
|
this.tt.onEditInit.emit({ field: this.field(), data: this.data() });
|
|
4389
4433
|
this.tt.editingCellClick.set(true);
|
|
4434
|
+
this.tt.overlaySubscription()?.unsubscribe();
|
|
4435
|
+
this.tt.overlaySubscription.set(this.tt.overlayService.clickObservable.subscribe((event) => {
|
|
4436
|
+
if (this.el.nativeElement.contains(event.target)) {
|
|
4437
|
+
this.tt.editingCellClick.set(true);
|
|
4438
|
+
}
|
|
4439
|
+
}));
|
|
4390
4440
|
this.zone.runOutsideAngular(() => {
|
|
4391
4441
|
setTimeout(() => {
|
|
4392
4442
|
let focusable = findSingle(this.el.nativeElement, 'input, textarea');
|
|
@@ -4694,19 +4744,21 @@ class TTRow extends BaseComponent {
|
|
|
4694
4744
|
expand(event) {
|
|
4695
4745
|
this.tt.toggleRowIndex.set(getIndex(this.el.nativeElement));
|
|
4696
4746
|
this.rowNode().node['expanded'] = true;
|
|
4747
|
+
this.tt.getSourceNode(this.rowNode().node)['expanded'] = true;
|
|
4697
4748
|
this.tt.updateSerializedValue();
|
|
4698
4749
|
this.tt.tableService.onUIUpdate(this.tt.value());
|
|
4699
4750
|
this.rowNode().node['children'] ? this.restoreFocus(this.tt.toggleRowIndex() + 1) : this.restoreFocus();
|
|
4700
4751
|
this.tt.onNodeExpand.emit({
|
|
4701
4752
|
originalEvent: event,
|
|
4702
|
-
node: this.rowNode().node
|
|
4753
|
+
node: this.tt.getSourceNode(this.rowNode().node)
|
|
4703
4754
|
});
|
|
4704
4755
|
}
|
|
4705
4756
|
collapse(event) {
|
|
4706
4757
|
this.rowNode().node['expanded'] = false;
|
|
4758
|
+
this.tt.getSourceNode(this.rowNode().node)['expanded'] = false;
|
|
4707
4759
|
this.tt.updateSerializedValue();
|
|
4708
4760
|
this.tt.tableService.onUIUpdate(this.tt.value());
|
|
4709
|
-
this.tt.onNodeCollapse.emit({ originalEvent: event, node: this.rowNode().node });
|
|
4761
|
+
this.tt.onNodeCollapse.emit({ originalEvent: event, node: this.tt.getSourceNode(this.rowNode().node) });
|
|
4710
4762
|
}
|
|
4711
4763
|
focusRowChange(firstFocusableRow, currentFocusedRow, lastVisibleDescendant) {
|
|
4712
4764
|
firstFocusableRow.tabIndex = '-1';
|
|
@@ -4781,16 +4833,20 @@ class TreeTableToggler extends BaseComponent {
|
|
|
4781
4833
|
}
|
|
4782
4834
|
onClick(event) {
|
|
4783
4835
|
this.rowNode().node.expanded = !this.rowNode().node.expanded;
|
|
4836
|
+
// while filtered the row shows a copy: keep the node of value() in sync and hand it to the handlers,
|
|
4837
|
+
// so children loaded in onNodeExpand survive the next filtering
|
|
4838
|
+
const node = this.tt.getSourceNode(this.rowNode().node);
|
|
4839
|
+
node.expanded = this.rowNode().node.expanded;
|
|
4784
4840
|
if (this.rowNode().node.expanded) {
|
|
4785
4841
|
this.tt.onNodeExpand.emit({
|
|
4786
4842
|
originalEvent: event,
|
|
4787
|
-
node
|
|
4843
|
+
node
|
|
4788
4844
|
});
|
|
4789
4845
|
}
|
|
4790
4846
|
else {
|
|
4791
4847
|
this.tt.onNodeCollapse.emit({
|
|
4792
4848
|
originalEvent: event,
|
|
4793
|
-
node
|
|
4849
|
+
node
|
|
4794
4850
|
});
|
|
4795
4851
|
}
|
|
4796
4852
|
this.tt.updateSerializedValue();
|