@anguless/angulux 22.6.8 → 22.6.10
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/fesm2022/anguless-angulux-basecomponent.mjs +70 -14
- package/fesm2022/anguless-angulux-basecomponent.mjs.map +1 -1
- package/fesm2022/anguless-angulux-bind.mjs +8 -3
- package/fesm2022/anguless-angulux-bind.mjs.map +1 -1
- package/fesm2022/anguless-angulux-inputtext.mjs +5 -1
- package/fesm2022/anguless-angulux-inputtext.mjs.map +1 -1
- package/fesm2022/anguless-angulux-multiselect.mjs +74 -8
- package/fesm2022/anguless-angulux-multiselect.mjs.map +1 -1
- package/fesm2022/anguless-angulux-select.mjs +26 -7
- package/fesm2022/anguless-angulux-select.mjs.map +1 -1
- package/fesm2022/anguless-angulux-table.mjs +43 -51
- package/fesm2022/anguless-angulux-table.mjs.map +1 -1
- package/fesm2022/anguless-angulux-textarea.mjs +2 -1
- package/fesm2022/anguless-angulux-textarea.mjs.map +1 -1
- package/fesm2022/anguless-angulux-treetable.mjs +1 -4
- package/fesm2022/anguless-angulux-treetable.mjs.map +1 -1
- package/fesm2022/anguless-angulux-utils.mjs +148 -112
- package/fesm2022/anguless-angulux-utils.mjs.map +1 -1
- package/package.json +1 -1
- package/types/anguless-angulux-multiselect.d.ts +19 -1
- package/types/anguless-angulux-select.d.ts +9 -1
- package/types/anguless-angulux-table.d.ts +19 -21
- package/types/anguless-angulux-treetable.d.ts +1 -1
- package/types/anguless-angulux-utils.d.ts +8 -1
|
@@ -25,7 +25,6 @@ import { ArrowDownIcon } from '@anguless/angulux/icons/arrowdown';
|
|
|
25
25
|
import { ArrowUpIcon } from '@anguless/angulux/icons/arrowup';
|
|
26
26
|
import { FilterIcon } from '@anguless/angulux/icons/filter';
|
|
27
27
|
import { FilterFillIcon } from '@anguless/angulux/icons/filterfill';
|
|
28
|
-
import { FilterSlashIcon } from '@anguless/angulux/icons/filterslash';
|
|
29
28
|
import { PlusIcon } from '@anguless/angulux/icons/plus';
|
|
30
29
|
import { SortAltIcon } from '@anguless/angulux/icons/sortalt';
|
|
31
30
|
import { SortAmountDownIcon } from '@anguless/angulux/icons/sortamountdown';
|
|
@@ -46,8 +45,7 @@ import * as i4 from '@anguless/angulux/scroller';
|
|
|
46
45
|
import { ScrollerModule } from '@anguless/angulux/scroller';
|
|
47
46
|
import * as i9 from '@anguless/angulux/select';
|
|
48
47
|
import { SelectModule } from '@anguless/angulux/select';
|
|
49
|
-
import {
|
|
50
|
-
import { UniqueComponentId, ObjectUtils, ZIndexUtils } from '@anguless/angulux/utils';
|
|
48
|
+
import { UniqueComponentId, ɵresolveFieldData as _resolveFieldData, ɵcompare as _compare, ɵsort as _sort, ɵequals as _equals, ɵreorderArray as _reorderArray, ɵisNotEmpty as _isNotEmpty, ɵfindIndexInList as _findIndexInList, ZIndexUtils } from '@anguless/angulux/utils';
|
|
51
49
|
import { Subject } from 'rxjs';
|
|
52
50
|
|
|
53
51
|
/**
|
|
@@ -1506,11 +1504,11 @@ class Table extends BaseComponent {
|
|
|
1506
1504
|
this.selectionKeys = {};
|
|
1507
1505
|
if (Array.isArray(this._selection)) {
|
|
1508
1506
|
for (let data of this._selection) {
|
|
1509
|
-
this.selectionKeys[String(
|
|
1507
|
+
this.selectionKeys[String(_resolveFieldData(data, this.dataKey))] = 1;
|
|
1510
1508
|
}
|
|
1511
1509
|
}
|
|
1512
1510
|
else {
|
|
1513
|
-
this.selectionKeys[String(
|
|
1511
|
+
this.selectionKeys[String(_resolveFieldData(this._selection, this.dataKey))] = 1;
|
|
1514
1512
|
}
|
|
1515
1513
|
}
|
|
1516
1514
|
}
|
|
@@ -1618,8 +1616,8 @@ class Table extends BaseComponent {
|
|
|
1618
1616
|
}
|
|
1619
1617
|
else {
|
|
1620
1618
|
this.value.sort((data1, data2) => {
|
|
1621
|
-
let value1 =
|
|
1622
|
-
let value2 =
|
|
1619
|
+
let value1 = _resolveFieldData(data1, field);
|
|
1620
|
+
let value2 = _resolveFieldData(data2, field);
|
|
1623
1621
|
let result = null;
|
|
1624
1622
|
if (value1 == null && value2 != null)
|
|
1625
1623
|
result = -1;
|
|
@@ -1683,15 +1681,15 @@ class Table extends BaseComponent {
|
|
|
1683
1681
|
}
|
|
1684
1682
|
}
|
|
1685
1683
|
multisortField(data1, data2, multiSortMeta, index) {
|
|
1686
|
-
const value1 =
|
|
1687
|
-
const value2 =
|
|
1688
|
-
if (
|
|
1684
|
+
const value1 = _resolveFieldData(data1, multiSortMeta[index].field);
|
|
1685
|
+
const value2 = _resolveFieldData(data2, multiSortMeta[index].field);
|
|
1686
|
+
if (_compare(value1, value2, this.filterLocale) === 0) {
|
|
1689
1687
|
return multiSortMeta.length - 1 > index ? this.multisortField(data1, data2, multiSortMeta, index + 1) : 0;
|
|
1690
1688
|
}
|
|
1691
1689
|
return this.compareValuesOnSort(value1, value2, multiSortMeta[index].order);
|
|
1692
1690
|
}
|
|
1693
1691
|
compareValuesOnSort(value1, value2, order) {
|
|
1694
|
-
return
|
|
1692
|
+
return _sort(value1, value2, order, this.filterLocale, this.sortOrder);
|
|
1695
1693
|
}
|
|
1696
1694
|
getSortMeta(field) {
|
|
1697
1695
|
if (this.multiSortMeta && this.multiSortMeta.length) {
|
|
@@ -1745,7 +1743,7 @@ class Table extends BaseComponent {
|
|
|
1745
1743
|
return;
|
|
1746
1744
|
}
|
|
1747
1745
|
let metaSelection = this.rowTouched ? false : this.metaKeySelection;
|
|
1748
|
-
let dataKeyValue = this.dataKey ? String(
|
|
1746
|
+
let dataKeyValue = this.dataKey ? String(_resolveFieldData(rowData, this.dataKey)) : null;
|
|
1749
1747
|
this.anchorRowIndex = rowIndex;
|
|
1750
1748
|
this.rangeRowIndex = rowIndex;
|
|
1751
1749
|
if (metaSelection) {
|
|
@@ -1896,7 +1894,7 @@ class Table extends BaseComponent {
|
|
|
1896
1894
|
else if (this.contextMenuSelectionMode === 'joint') {
|
|
1897
1895
|
this.preventSelectionSetterPropagation = true;
|
|
1898
1896
|
let selected = this.isSelected(rowData);
|
|
1899
|
-
let dataKeyValue = this.dataKey ? String(
|
|
1897
|
+
let dataKeyValue = this.dataKey ? String(_resolveFieldData(rowData, this.dataKey)) : null;
|
|
1900
1898
|
if (!selected) {
|
|
1901
1899
|
if (!this.isRowSelectable(rowData, rowIndex)) {
|
|
1902
1900
|
return;
|
|
@@ -1958,7 +1956,7 @@ class Table extends BaseComponent {
|
|
|
1958
1956
|
}
|
|
1959
1957
|
rangeRowsData.push(rangeRowData);
|
|
1960
1958
|
this._selection = [...this.selection, rangeRowData];
|
|
1961
|
-
let dataKeyValue = this.dataKey ? String(
|
|
1959
|
+
let dataKeyValue = this.dataKey ? String(_resolveFieldData(rangeRowData, this.dataKey)) : null;
|
|
1962
1960
|
if (dataKeyValue) {
|
|
1963
1961
|
this.selectionKeys[dataKeyValue] = 1;
|
|
1964
1962
|
}
|
|
@@ -1991,7 +1989,7 @@ class Table extends BaseComponent {
|
|
|
1991
1989
|
let rangeRowData = this.value[i];
|
|
1992
1990
|
let selectionIndex = this.findIndexInSelection(rangeRowData);
|
|
1993
1991
|
this._selection = this.selection.filter((val, i) => i != selectionIndex);
|
|
1994
|
-
let dataKeyValue = this.dataKey ? String(
|
|
1992
|
+
let dataKeyValue = this.dataKey ? String(_resolveFieldData(rangeRowData, this.dataKey)) : null;
|
|
1995
1993
|
if (dataKeyValue) {
|
|
1996
1994
|
delete this.selectionKeys[dataKeyValue];
|
|
1997
1995
|
}
|
|
@@ -2005,7 +2003,7 @@ class Table extends BaseComponent {
|
|
|
2005
2003
|
isSelected(rowData) {
|
|
2006
2004
|
if (rowData && this.selection) {
|
|
2007
2005
|
if (this.dataKey) {
|
|
2008
|
-
return this.selectionKeys[
|
|
2006
|
+
return this.selectionKeys[_resolveFieldData(rowData, this.dataKey)] !== undefined;
|
|
2009
2007
|
}
|
|
2010
2008
|
else {
|
|
2011
2009
|
if (Array.isArray(this.selection))
|
|
@@ -2050,7 +2048,7 @@ class Table extends BaseComponent {
|
|
|
2050
2048
|
});
|
|
2051
2049
|
if (this.dataKey) {
|
|
2052
2050
|
this.selectionKeys = {};
|
|
2053
|
-
this.selectionKeys[String(
|
|
2051
|
+
this.selectionKeys[String(_resolveFieldData(rowData, this.dataKey))] = 1;
|
|
2054
2052
|
}
|
|
2055
2053
|
}
|
|
2056
2054
|
else {
|
|
@@ -2071,7 +2069,7 @@ class Table extends BaseComponent {
|
|
|
2071
2069
|
toggleRowWithCheckbox(event, rowData) {
|
|
2072
2070
|
this.selection = this.selection || [];
|
|
2073
2071
|
let selected = this.isSelected(rowData);
|
|
2074
|
-
let dataKeyValue = this.dataKey ? String(
|
|
2072
|
+
let dataKeyValue = this.dataKey ? String(_resolveFieldData(rowData, this.dataKey)) : null;
|
|
2075
2073
|
this.preventSelectionSetterPropagation = true;
|
|
2076
2074
|
if (selected) {
|
|
2077
2075
|
let selectionIndex = this.findIndexInSelection(rowData);
|
|
@@ -2134,7 +2132,7 @@ class Table extends BaseComponent {
|
|
|
2134
2132
|
}
|
|
2135
2133
|
}
|
|
2136
2134
|
equals(data1, data2) {
|
|
2137
|
-
return this.compareSelectionBy === 'equals' ? data1 === data2 :
|
|
2135
|
+
return this.compareSelectionBy === 'equals' ? data1 === data2 : _equals(data1, data2, this.dataKey);
|
|
2138
2136
|
}
|
|
2139
2137
|
/* Legacy Filtering for custom elements */
|
|
2140
2138
|
filter(value, field, matchMode) {
|
|
@@ -2237,7 +2235,7 @@ class Table extends BaseComponent {
|
|
|
2237
2235
|
if (this.filters['global'] && !globalMatch && globalFilterFieldsArray) {
|
|
2238
2236
|
for (let j = 0; j < globalFilterFieldsArray.length; j++) {
|
|
2239
2237
|
let globalFilterField = globalFilterFieldsArray[j].field || globalFilterFieldsArray[j];
|
|
2240
|
-
globalMatch = this.filterService.filters[this.filters['global'].matchMode](
|
|
2238
|
+
globalMatch = this.filterService.filters[this.filters['global'].matchMode](_resolveFieldData(this.value[i], globalFilterField), this.filters['global'].value, this.filterLocale);
|
|
2241
2239
|
if (globalMatch) {
|
|
2242
2240
|
break;
|
|
2243
2241
|
}
|
|
@@ -2281,7 +2279,7 @@ class Table extends BaseComponent {
|
|
|
2281
2279
|
executeLocalFilter(field, rowData, filterMeta) {
|
|
2282
2280
|
let filterValue = filterMeta.value;
|
|
2283
2281
|
let filterMatchMode = filterMeta.matchMode || FilterMatchMode.STARTS_WITH;
|
|
2284
|
-
let dataFieldValue =
|
|
2282
|
+
let dataFieldValue = _resolveFieldData(rowData, field);
|
|
2285
2283
|
let filterConstraint = this.filterService.filters[filterMatchMode];
|
|
2286
2284
|
return filterConstraint(dataFieldValue, filterValue, this.filterLocale);
|
|
2287
2285
|
}
|
|
@@ -2388,7 +2386,7 @@ class Table extends BaseComponent {
|
|
|
2388
2386
|
const body = data
|
|
2389
2387
|
.map((record) => exportableColumns
|
|
2390
2388
|
.map((column) => {
|
|
2391
|
-
let cellData =
|
|
2389
|
+
let cellData = _resolveFieldData(record, column.field);
|
|
2392
2390
|
if (cellData != null && this.exportFunction) {
|
|
2393
2391
|
cellData = this.exportFunction({
|
|
2394
2392
|
data: cellData,
|
|
@@ -2508,24 +2506,24 @@ class Table extends BaseComponent {
|
|
|
2508
2506
|
}
|
|
2509
2507
|
}
|
|
2510
2508
|
initRowEdit(rowData) {
|
|
2511
|
-
let dataKeyValue = String(
|
|
2509
|
+
let dataKeyValue = String(_resolveFieldData(rowData, this.dataKey));
|
|
2512
2510
|
this.editingRowKeys[dataKeyValue] = true;
|
|
2513
2511
|
}
|
|
2514
2512
|
saveRowEdit(rowData, rowElement) {
|
|
2515
2513
|
if (_find(rowElement, '.ng-invalid.ng-dirty').length === 0) {
|
|
2516
|
-
let dataKeyValue = String(
|
|
2514
|
+
let dataKeyValue = String(_resolveFieldData(rowData, this.dataKey));
|
|
2517
2515
|
delete this.editingRowKeys[dataKeyValue];
|
|
2518
2516
|
}
|
|
2519
2517
|
}
|
|
2520
2518
|
cancelRowEdit(rowData) {
|
|
2521
|
-
let dataKeyValue = String(
|
|
2519
|
+
let dataKeyValue = String(_resolveFieldData(rowData, this.dataKey));
|
|
2522
2520
|
delete this.editingRowKeys[dataKeyValue];
|
|
2523
2521
|
}
|
|
2524
2522
|
toggleRow(rowData, event) {
|
|
2525
2523
|
if (!this.dataKey && !this.groupRowsBy) {
|
|
2526
2524
|
throw new Error('dataKey or groupRowsBy must be defined to use row expansion');
|
|
2527
2525
|
}
|
|
2528
|
-
let dataKeyValue = this.groupRowsBy ? String(
|
|
2526
|
+
let dataKeyValue = this.groupRowsBy ? String(_resolveFieldData(rowData, this.groupRowsBy)) : String(_resolveFieldData(rowData, this.dataKey));
|
|
2529
2527
|
if (this.expandedRowKeys[dataKeyValue] != null) {
|
|
2530
2528
|
delete this.expandedRowKeys[dataKeyValue];
|
|
2531
2529
|
this.onRowCollapse.emit({
|
|
@@ -2551,10 +2549,10 @@ class Table extends BaseComponent {
|
|
|
2551
2549
|
}
|
|
2552
2550
|
}
|
|
2553
2551
|
isRowExpanded(rowData) {
|
|
2554
|
-
return this.groupRowsBy ? this.expandedRowKeys[String(
|
|
2552
|
+
return this.groupRowsBy ? this.expandedRowKeys[String(_resolveFieldData(rowData, this.groupRowsBy))] === true : this.expandedRowKeys[String(_resolveFieldData(rowData, this.dataKey))] === true;
|
|
2555
2553
|
}
|
|
2556
2554
|
isRowEditing(rowData) {
|
|
2557
|
-
return this.editingRowKeys[String(
|
|
2555
|
+
return this.editingRowKeys[String(_resolveFieldData(rowData, this.dataKey))] === true;
|
|
2558
2556
|
}
|
|
2559
2557
|
isSingleSelectionMode() {
|
|
2560
2558
|
return this.selectionMode === 'single';
|
|
@@ -2684,7 +2682,7 @@ class Table extends BaseComponent {
|
|
|
2684
2682
|
dropIndex = dropIndex - 1;
|
|
2685
2683
|
}
|
|
2686
2684
|
if (allowDrop) {
|
|
2687
|
-
|
|
2685
|
+
_reorderArray(this.columns, dragIndex, dropIndex);
|
|
2688
2686
|
this.onColReorder.emit({
|
|
2689
2687
|
dragIndex: dragIndex,
|
|
2690
2688
|
dropIndex: dropIndex,
|
|
@@ -2700,7 +2698,7 @@ class Table extends BaseComponent {
|
|
|
2700
2698
|
}
|
|
2701
2699
|
if (this.resizableColumns && this.resizeColumnElement) {
|
|
2702
2700
|
let width = this.columnResizeMode === 'expand' ? this._initialColWidths : this._totalTableWidth();
|
|
2703
|
-
|
|
2701
|
+
_reorderArray(width, dragIndex + 1, dropIndex + 1);
|
|
2704
2702
|
this.updateStyleElement(width, dragIndex, 0, 0);
|
|
2705
2703
|
}
|
|
2706
2704
|
this.reorderIndicatorUpViewChild.nativeElement.style.display = 'none';
|
|
@@ -2777,7 +2775,7 @@ class Table extends BaseComponent {
|
|
|
2777
2775
|
onRowDrop(event, rowElement) {
|
|
2778
2776
|
if (this.droppedRowIndex != null) {
|
|
2779
2777
|
let dropIndex = this.draggedRowIndex > this.droppedRowIndex ? this.droppedRowIndex : this.droppedRowIndex === 0 ? 0 : this.droppedRowIndex - 1;
|
|
2780
|
-
|
|
2778
|
+
_reorderArray(this.value, this.draggedRowIndex, dropIndex);
|
|
2781
2779
|
if (this.virtualScroll) {
|
|
2782
2780
|
// TODO: Check
|
|
2783
2781
|
this._value = [...this._value];
|
|
@@ -2929,7 +2927,7 @@ class Table extends BaseComponent {
|
|
|
2929
2927
|
if (this.columnResizeMode === 'expand' && this.tableWidthState) {
|
|
2930
2928
|
this.setResizeTableWidth(this.tableWidthState + 'px');
|
|
2931
2929
|
}
|
|
2932
|
-
if (
|
|
2930
|
+
if (_isNotEmpty(widths)) {
|
|
2933
2931
|
this.createStyleElement();
|
|
2934
2932
|
let innerHTML = '';
|
|
2935
2933
|
widths.forEach((width, index) => {
|
|
@@ -3852,10 +3850,10 @@ class TableBody extends BaseComponent {
|
|
|
3852
3850
|
});
|
|
3853
3851
|
}
|
|
3854
3852
|
shouldRenderRowGroupHeader(value, rowData, i) {
|
|
3855
|
-
let currentRowFieldData =
|
|
3853
|
+
let currentRowFieldData = _resolveFieldData(rowData, this.dataTable?.groupRowsBy || '');
|
|
3856
3854
|
let prevRowData = value[i - (this.dataTable?._first || 0) - 1];
|
|
3857
3855
|
if (prevRowData) {
|
|
3858
|
-
let previousRowFieldData =
|
|
3856
|
+
let previousRowFieldData = _resolveFieldData(prevRowData, this.dataTable?.groupRowsBy || '');
|
|
3859
3857
|
return currentRowFieldData !== previousRowFieldData;
|
|
3860
3858
|
}
|
|
3861
3859
|
else {
|
|
@@ -3863,10 +3861,10 @@ class TableBody extends BaseComponent {
|
|
|
3863
3861
|
}
|
|
3864
3862
|
}
|
|
3865
3863
|
shouldRenderRowGroupFooter(value, rowData, i) {
|
|
3866
|
-
let currentRowFieldData =
|
|
3864
|
+
let currentRowFieldData = _resolveFieldData(rowData, this.dataTable?.groupRowsBy || '');
|
|
3867
3865
|
let nextRowData = value[i - (this.dataTable?._first || 0) + 1];
|
|
3868
3866
|
if (nextRowData) {
|
|
3869
|
-
let nextRowFieldData =
|
|
3867
|
+
let nextRowFieldData = _resolveFieldData(nextRowData, this.dataTable?.groupRowsBy || '');
|
|
3870
3868
|
return currentRowFieldData !== nextRowFieldData;
|
|
3871
3869
|
}
|
|
3872
3870
|
else {
|
|
@@ -3874,10 +3872,10 @@ class TableBody extends BaseComponent {
|
|
|
3874
3872
|
}
|
|
3875
3873
|
}
|
|
3876
3874
|
shouldRenderRowspan(value, rowData, i) {
|
|
3877
|
-
let currentRowFieldData =
|
|
3875
|
+
let currentRowFieldData = _resolveFieldData(rowData, this.dataTable?.groupRowsBy);
|
|
3878
3876
|
let prevRowData = value[i - 1];
|
|
3879
3877
|
if (prevRowData) {
|
|
3880
|
-
let previousRowFieldData =
|
|
3878
|
+
let previousRowFieldData = _resolveFieldData(prevRowData, this.dataTable?.groupRowsBy || '');
|
|
3881
3879
|
return currentRowFieldData !== previousRowFieldData;
|
|
3882
3880
|
}
|
|
3883
3881
|
else {
|
|
@@ -3885,14 +3883,14 @@ class TableBody extends BaseComponent {
|
|
|
3885
3883
|
}
|
|
3886
3884
|
}
|
|
3887
3885
|
calculateRowGroupSize(value, rowData, index) {
|
|
3888
|
-
let currentRowFieldData =
|
|
3886
|
+
let currentRowFieldData = _resolveFieldData(rowData, this.dataTable?.groupRowsBy);
|
|
3889
3887
|
let nextRowFieldData = currentRowFieldData;
|
|
3890
3888
|
let groupRowSpan = 0;
|
|
3891
3889
|
while (currentRowFieldData === nextRowFieldData) {
|
|
3892
3890
|
groupRowSpan++;
|
|
3893
3891
|
let nextRowData = value[++index];
|
|
3894
3892
|
if (nextRowData) {
|
|
3895
|
-
nextRowFieldData =
|
|
3893
|
+
nextRowFieldData = _resolveFieldData(nextRowData, this.dataTable?.groupRowsBy || '');
|
|
3896
3894
|
}
|
|
3897
3895
|
else {
|
|
3898
3896
|
break;
|
|
@@ -4774,14 +4772,14 @@ class SelectableRow extends BaseComponent {
|
|
|
4774
4772
|
if (event.shiftKey && this.dataTable.selection !== null) {
|
|
4775
4773
|
const data = this.dataTable.dataToRender(this.dataTable.rows);
|
|
4776
4774
|
let index;
|
|
4777
|
-
if (
|
|
4775
|
+
if (_isNotEmpty(this.dataTable.selection) && this.dataTable.selection.length > 0) {
|
|
4778
4776
|
let firstSelectedRowIndex, lastSelectedRowIndex;
|
|
4779
|
-
firstSelectedRowIndex =
|
|
4780
|
-
lastSelectedRowIndex =
|
|
4777
|
+
firstSelectedRowIndex = _findIndexInList(this.dataTable.selection[0], data);
|
|
4778
|
+
lastSelectedRowIndex = _findIndexInList(this.dataTable.selection[this.dataTable.selection.length - 1], data);
|
|
4781
4779
|
index = (this.index || 0) <= firstSelectedRowIndex ? lastSelectedRowIndex : firstSelectedRowIndex;
|
|
4782
4780
|
}
|
|
4783
4781
|
else {
|
|
4784
|
-
index =
|
|
4782
|
+
index = _findIndexInList(this.dataTable.selection, data);
|
|
4785
4783
|
}
|
|
4786
4784
|
this.dataTable.anchorRowIndex = index || 0;
|
|
4787
4785
|
this.dataTable.selection = index !== this.index ? data.slice(Math.min(index || 0, this.index || 0), Math.max(index || 0, this.index || 0) + 1) : [this.data];
|
|
@@ -5945,7 +5943,7 @@ class TableHeaderCheckbox extends BaseComponent {
|
|
|
5945
5943
|
const data = this.dataTable.selectionPageOnly ? this.dataTable.dataToRender(this.dataTable.processedData) : this.dataTable.processedData;
|
|
5946
5944
|
const val = this.dataTable.frozenValue ? [...this.dataTable.frozenValue, ...data] : data;
|
|
5947
5945
|
const selectableVal = this.dataTable.rowSelectable ? val.filter((data, index) => this.dataTable.rowSelectable({ data, index })) : val;
|
|
5948
|
-
return
|
|
5946
|
+
return _isNotEmpty(selectableVal) && _isNotEmpty(this.dataTable.selection) && selectableVal.every((v) => this.dataTable.selection.some((s) => this.dataTable.equals(v, s)));
|
|
5949
5947
|
}
|
|
5950
5948
|
}
|
|
5951
5949
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: TableHeaderCheckbox, deps: [{ token: Table }, { token: TableService }], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -7510,7 +7508,6 @@ class TableModule {
|
|
|
7510
7508
|
SelectModule,
|
|
7511
7509
|
FormsModule,
|
|
7512
7510
|
ButtonModule,
|
|
7513
|
-
SelectButtonModule,
|
|
7514
7511
|
DatePickerModule,
|
|
7515
7512
|
InputNumberModule,
|
|
7516
7513
|
BadgeModule,
|
|
@@ -7524,7 +7521,6 @@ class TableModule {
|
|
|
7524
7521
|
SortAmountDownIcon,
|
|
7525
7522
|
FilterIcon,
|
|
7526
7523
|
FilterFillIcon,
|
|
7527
|
-
FilterSlashIcon,
|
|
7528
7524
|
PlusIcon,
|
|
7529
7525
|
TrashIcon,
|
|
7530
7526
|
RadioButtonModule,
|
|
@@ -7536,7 +7532,6 @@ class TableModule {
|
|
|
7536
7532
|
SelectModule,
|
|
7537
7533
|
FormsModule,
|
|
7538
7534
|
ButtonModule,
|
|
7539
|
-
SelectButtonModule,
|
|
7540
7535
|
DatePickerModule,
|
|
7541
7536
|
InputNumberModule,
|
|
7542
7537
|
BadgeModule,
|
|
@@ -7550,7 +7545,6 @@ class TableModule {
|
|
|
7550
7545
|
SortAmountDownIcon,
|
|
7551
7546
|
FilterIcon,
|
|
7552
7547
|
FilterFillIcon,
|
|
7553
|
-
FilterSlashIcon,
|
|
7554
7548
|
PlusIcon,
|
|
7555
7549
|
TrashIcon,
|
|
7556
7550
|
RadioButtonModule,
|
|
@@ -7568,7 +7562,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.2", ngImpor
|
|
|
7568
7562
|
SelectModule,
|
|
7569
7563
|
FormsModule,
|
|
7570
7564
|
ButtonModule,
|
|
7571
|
-
SelectButtonModule,
|
|
7572
7565
|
DatePickerModule,
|
|
7573
7566
|
InputNumberModule,
|
|
7574
7567
|
BadgeModule,
|
|
@@ -7582,7 +7575,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.2", ngImpor
|
|
|
7582
7575
|
SortAmountDownIcon,
|
|
7583
7576
|
FilterIcon,
|
|
7584
7577
|
FilterFillIcon,
|
|
7585
|
-
FilterSlashIcon,
|
|
7586
7578
|
PlusIcon,
|
|
7587
7579
|
TrashIcon,
|
|
7588
7580
|
RadioButtonModule,
|