@acorex/data-grid 16.18.32 → 16.18.34
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/esm2022/lib/data-grid/columns/column.component.mjs +4 -2
- package/esm2022/lib/data-grid/columns/row-number-column.component.mjs +19 -6
- package/esm2022/lib/data-grid/datagrid.component.mjs +13 -1
- package/esm2022/lib/data-lov/data-lov.component.mjs +2 -1
- package/fesm2022/acorex-data-grid.mjs +34 -6
- package/fesm2022/acorex-data-grid.mjs.map +1 -1
- package/lib/data-lov/data-lov.component.d.ts +1 -0
- package/package.json +1 -1
|
@@ -185,7 +185,9 @@ class AXGridDataColumn {
|
|
|
185
185
|
col.checkboxSelection = (params) => {
|
|
186
186
|
return true;
|
|
187
187
|
};
|
|
188
|
-
|
|
188
|
+
}
|
|
189
|
+
if (this.headerCheckbox) {
|
|
190
|
+
col.headerCheckboxSelection = this.headerCheckbox;
|
|
189
191
|
}
|
|
190
192
|
return col;
|
|
191
193
|
}
|
|
@@ -810,9 +812,18 @@ class AXGridRowNumberColumn extends AXGridDataColumn {
|
|
|
810
812
|
const col = super.render();
|
|
811
813
|
// col.checkboxSelection = this.condition ? this.condition : true;
|
|
812
814
|
// col.headerCheckboxSelection = true;
|
|
813
|
-
(col.headerName = this.caption
|
|
815
|
+
(col.headerName = this.caption
|
|
816
|
+
? this.caption
|
|
817
|
+
: AXConfig.get('layout.rtl')
|
|
818
|
+
? 'ردیف'
|
|
819
|
+
: 'Row'),
|
|
814
820
|
(col.valueGetter = 'node.rowIndex + 1'),
|
|
815
|
-
(col.pinned =
|
|
821
|
+
(col.pinned =
|
|
822
|
+
this.pinned == null
|
|
823
|
+
? null
|
|
824
|
+
: this.pinned === 'start'
|
|
825
|
+
? 'right'
|
|
826
|
+
: 'left'),
|
|
816
827
|
(col.filter = false);
|
|
817
828
|
col.resizable = true;
|
|
818
829
|
col.sortable = false;
|
|
@@ -820,15 +831,19 @@ class AXGridRowNumberColumn extends AXGridDataColumn {
|
|
|
820
831
|
return col;
|
|
821
832
|
}
|
|
822
833
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: AXGridRowNumberColumn, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
823
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.7", type: AXGridRowNumberColumn, selector: "ax-row-number-column", inputs: { condition: "condition" }, providers: [
|
|
834
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.7", type: AXGridRowNumberColumn, selector: "ax-row-number-column", inputs: { condition: "condition" }, providers: [
|
|
835
|
+
{ provide: AXGridDataColumn, useExisting: AXGridRowNumberColumn },
|
|
836
|
+
], usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
824
837
|
}
|
|
825
838
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: AXGridRowNumberColumn, decorators: [{
|
|
826
839
|
type: Component,
|
|
827
840
|
args: [{
|
|
828
841
|
selector: 'ax-row-number-column',
|
|
829
842
|
template: '',
|
|
830
|
-
providers: [
|
|
831
|
-
|
|
843
|
+
providers: [
|
|
844
|
+
{ provide: AXGridDataColumn, useExisting: AXGridRowNumberColumn },
|
|
845
|
+
],
|
|
846
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
832
847
|
}]
|
|
833
848
|
}], ctorParameters: () => [], propDecorators: { condition: [{
|
|
834
849
|
type: Input
|
|
@@ -1446,6 +1461,18 @@ class AXDataGridComponent {
|
|
|
1446
1461
|
el.setExpanded(false);
|
|
1447
1462
|
});
|
|
1448
1463
|
}
|
|
1464
|
+
const isSelectAllServerSide = e.api.getServerSideSelectionState().selectAll;
|
|
1465
|
+
if (isSelectAllServerSide) {
|
|
1466
|
+
this.gridApi.forEachNode((node) => {
|
|
1467
|
+
if (node.selected) {
|
|
1468
|
+
args.items.push({
|
|
1469
|
+
rowIndex: node.rowIndex,
|
|
1470
|
+
rowLevel: node.level,
|
|
1471
|
+
data: node.data,
|
|
1472
|
+
});
|
|
1473
|
+
}
|
|
1474
|
+
});
|
|
1475
|
+
}
|
|
1449
1476
|
nodes.forEach((i) => {
|
|
1450
1477
|
if (this.autoExpand) {
|
|
1451
1478
|
i.setExpanded(true);
|
|
@@ -1956,6 +1983,7 @@ class AXLOVComponent extends AXValidatableComponent {
|
|
|
1956
1983
|
set validation(v) {
|
|
1957
1984
|
this._validation = v;
|
|
1958
1985
|
}
|
|
1986
|
+
componentName = 'lov';
|
|
1959
1987
|
constructor(popup, ref) {
|
|
1960
1988
|
super();
|
|
1961
1989
|
this.popup = popup;
|