@acorex/components 20.1.35 → 20.1.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.
- package/accordion/index.d.ts +6 -5
- package/command/index.d.ts +13 -3
- package/comment/index.d.ts +6 -0
- package/data-table/index.d.ts +58 -2
- package/dialog/index.d.ts +29 -4
- package/drawer-2/index.d.ts +15 -0
- package/dropdown-button/index.d.ts +7 -2
- package/fesm2022/acorex-components-accordion.mjs +65 -58
- package/fesm2022/acorex-components-accordion.mjs.map +1 -1
- package/fesm2022/acorex-components-command.mjs +52 -8
- package/fesm2022/acorex-components-command.mjs.map +1 -1
- package/fesm2022/acorex-components-comment.mjs +7 -1
- package/fesm2022/acorex-components-comment.mjs.map +1 -1
- package/fesm2022/acorex-components-data-table.mjs +58 -2
- package/fesm2022/acorex-components-data-table.mjs.map +1 -1
- package/fesm2022/acorex-components-dialog.mjs +29 -4
- package/fesm2022/acorex-components-dialog.mjs.map +1 -1
- package/fesm2022/acorex-components-drawer-2.mjs +15 -0
- package/fesm2022/acorex-components-drawer-2.mjs.map +1 -1
- package/fesm2022/acorex-components-dropdown-button.mjs +7 -2
- package/fesm2022/acorex-components-dropdown-button.mjs.map +1 -1
- package/fesm2022/acorex-components-form.mjs +10 -0
- package/fesm2022/acorex-components-form.mjs.map +1 -1
- package/fesm2022/acorex-components-grid-layout-builder.mjs +115 -5
- package/fesm2022/acorex-components-grid-layout-builder.mjs.map +1 -1
- package/fesm2022/acorex-components-menu.mjs +12 -1
- package/fesm2022/acorex-components-menu.mjs.map +1 -1
- package/fesm2022/{acorex-components-modal-acorex-components-modal-BdrQgtUV.mjs → acorex-components-modal-acorex-components-modal-DTUAOsgv.mjs} +12 -11
- package/fesm2022/{acorex-components-modal-acorex-components-modal-BdrQgtUV.mjs.map → acorex-components-modal-acorex-components-modal-DTUAOsgv.mjs.map} +1 -1
- package/fesm2022/{acorex-components-modal-modal-content.component-DTrjX50k.mjs → acorex-components-modal-modal-content.component-Co2yaRpp.mjs} +20 -19
- package/fesm2022/acorex-components-modal-modal-content.component-Co2yaRpp.mjs.map +1 -0
- package/fesm2022/acorex-components-modal.mjs +1 -1
- package/fesm2022/acorex-components-phone-box.mjs +31 -4
- package/fesm2022/acorex-components-phone-box.mjs.map +1 -1
- package/fesm2022/acorex-components-scheduler.mjs +839 -63
- package/fesm2022/acorex-components-scheduler.mjs.map +1 -1
- package/fesm2022/acorex-components-tabs.mjs +2 -2
- package/fesm2022/acorex-components-tabs.mjs.map +1 -1
- package/form/index.d.ts +10 -0
- package/grid-layout-builder/index.d.ts +115 -4
- package/menu/index.d.ts +12 -0
- package/modal/index.d.ts +3 -2
- package/package.json +5 -5
- package/scheduler/index.d.ts +356 -242
- package/fesm2022/acorex-components-modal-modal-content.component-DTrjX50k.mjs.map +0 -1
@@ -37,6 +37,11 @@ class AXBaseDataTable extends MXBaseComponent {
|
|
37
37
|
this.selectedRowsChange = new EventEmitter();
|
38
38
|
this._selectedRows = signal([], ...(ngDevMode ? [{ debugName: "_selectedRows" }] : []));
|
39
39
|
}
|
40
|
+
/**
|
41
|
+
* Gets the data source key field name.
|
42
|
+
*
|
43
|
+
* @returns string - The key field name for the data source.
|
44
|
+
*/
|
40
45
|
getDataSourceKey() {
|
41
46
|
return this.dataSource.config.key || 'id';
|
42
47
|
}
|
@@ -49,6 +54,12 @@ class AXBaseDataTable extends MXBaseComponent {
|
|
49
54
|
this.selectedRowsChange.emit(v);
|
50
55
|
}
|
51
56
|
}
|
57
|
+
/**
|
58
|
+
* Expands a row to show its children.
|
59
|
+
*
|
60
|
+
* @param row - The row data to expand.
|
61
|
+
* @returns Promise<void> - Promise that resolves when expansion is complete.
|
62
|
+
*/
|
52
63
|
async expandRow(row) {
|
53
64
|
if (row.data['__meta__.expanded'] || row.data.children != undefined) {
|
54
65
|
this.dataSource.onItemExpanded.next({
|
@@ -72,11 +83,23 @@ class AXBaseDataTable extends MXBaseComponent {
|
|
72
83
|
});
|
73
84
|
}
|
74
85
|
}
|
86
|
+
/**
|
87
|
+
* Refreshes the children of a specific item.
|
88
|
+
*
|
89
|
+
* @param id - The ID of the item whose children should be refreshed.
|
90
|
+
* @returns Promise<void> - Promise that resolves when refresh is complete.
|
91
|
+
*/
|
75
92
|
async refreshItemChildren(id) {
|
76
93
|
this.dataSource.onItemRefreshChildren.next({
|
77
94
|
id,
|
78
95
|
});
|
79
96
|
}
|
97
|
+
/**
|
98
|
+
* Selects one or more rows.
|
99
|
+
*
|
100
|
+
* @param rows - The rows to select.
|
101
|
+
* @returns void - No return value.
|
102
|
+
*/
|
80
103
|
selectRows(...rows) {
|
81
104
|
const key = this.getDataSourceKey();
|
82
105
|
const selectRowIds = this.selectedRows.map((sr) => (typeof sr === 'object' ? sr[key] : sr));
|
@@ -84,6 +107,12 @@ class AXBaseDataTable extends MXBaseComponent {
|
|
84
107
|
this.selectedRows = this.selectedRows.concat(newRows);
|
85
108
|
//this.selectedRows = _.uniq(this.selectedRows.concat(rows));
|
86
109
|
}
|
110
|
+
/**
|
111
|
+
* Unselects one or more rows.
|
112
|
+
*
|
113
|
+
* @param rows - The rows to unselect.
|
114
|
+
* @returns void - No return value.
|
115
|
+
*/
|
87
116
|
unSelectRows(...rows) {
|
88
117
|
const key = this.getDataSourceKey();
|
89
118
|
const removedRowIds = rows.map((sr) => (typeof sr === 'object' ? sr[key] : sr));
|
@@ -150,6 +179,12 @@ class AXDataTableColumnResizableDirective {
|
|
150
179
|
this.onMouseUpBound = this.onMouseUp.bind(this);
|
151
180
|
this.resize$.pipe(debounceTime(10)).subscribe((event) => this.onMouseMove(event));
|
152
181
|
}
|
182
|
+
/**
|
183
|
+
* Handles mouse down events to initiate column resizing.
|
184
|
+
*
|
185
|
+
* @param event - The mouse down event.
|
186
|
+
* @returns void - No return value.
|
187
|
+
*/
|
153
188
|
onMouseDown(event) {
|
154
189
|
if (isPlatformBrowser(this.platformID)) {
|
155
190
|
event.stopPropagation();
|
@@ -162,14 +197,32 @@ class AXDataTableColumnResizableDirective {
|
|
162
197
|
this.cdr.detach(); // Detach the change detector
|
163
198
|
}
|
164
199
|
}
|
200
|
+
/**
|
201
|
+
* Handles raw mouse move events and forwards them to the debounced resize stream.
|
202
|
+
* This method acts as a bridge between the raw DOM event and the debounced onMouseMove method.
|
203
|
+
*
|
204
|
+
* @param event - The raw mouse move event.
|
205
|
+
* @returns void - No return value.
|
206
|
+
*/
|
165
207
|
onMouseMoveRaw(event) {
|
166
208
|
this.resize$.next(event);
|
167
209
|
}
|
210
|
+
/**
|
211
|
+
* Handles mouse move events during column resizing.
|
212
|
+
*
|
213
|
+
* @param event - The mouse move event.
|
214
|
+
* @returns void - No return value.
|
215
|
+
*/
|
168
216
|
onMouseMove(event) {
|
169
217
|
const newWidth = this.startWidth + (event.pageX - this.startX);
|
170
218
|
this.renderer.setStyle(this.el?.nativeElement?.parentElement, 'width', `${newWidth}px`);
|
171
219
|
this.column.width = `${newWidth}px`;
|
172
220
|
}
|
221
|
+
/**
|
222
|
+
* Handles mouse up events to complete column resizing.
|
223
|
+
*
|
224
|
+
* @returns void - No return value.
|
225
|
+
*/
|
173
226
|
onMouseUp() {
|
174
227
|
if (isPlatformBrowser(this.platformID)) {
|
175
228
|
this.document.removeEventListener('mousemove', this.onMouseMoveRawBound);
|
@@ -1600,8 +1653,11 @@ class AXDataTableComponent extends AXBaseDataTable {
|
|
1600
1653
|
return undefined;
|
1601
1654
|
}
|
1602
1655
|
/**
|
1603
|
-
* Refreshes the data
|
1604
|
-
*
|
1656
|
+
* Refreshes the data table with optional reset options.
|
1657
|
+
*
|
1658
|
+
* @param options - Configuration options for refresh operation.
|
1659
|
+
* @param options.reset - Whether to reset pagination state.
|
1660
|
+
* @returns void - No return value.
|
1605
1661
|
*/
|
1606
1662
|
refresh(options = { reset: true }) {
|
1607
1663
|
this.dataSource.refresh(options);
|