@acorex/components 20.1.34 → 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.
Files changed (45) hide show
  1. package/accordion/index.d.ts +6 -5
  2. package/command/index.d.ts +13 -3
  3. package/comment/index.d.ts +6 -0
  4. package/data-table/index.d.ts +58 -2
  5. package/dialog/index.d.ts +29 -4
  6. package/drawer-2/index.d.ts +15 -0
  7. package/dropdown-button/index.d.ts +7 -2
  8. package/fesm2022/acorex-components-accordion.mjs +65 -58
  9. package/fesm2022/acorex-components-accordion.mjs.map +1 -1
  10. package/fesm2022/acorex-components-command.mjs +52 -8
  11. package/fesm2022/acorex-components-command.mjs.map +1 -1
  12. package/fesm2022/acorex-components-comment.mjs +7 -1
  13. package/fesm2022/acorex-components-comment.mjs.map +1 -1
  14. package/fesm2022/acorex-components-data-table.mjs +58 -2
  15. package/fesm2022/acorex-components-data-table.mjs.map +1 -1
  16. package/fesm2022/acorex-components-dialog.mjs +34 -9
  17. package/fesm2022/acorex-components-dialog.mjs.map +1 -1
  18. package/fesm2022/acorex-components-drawer-2.mjs +15 -0
  19. package/fesm2022/acorex-components-drawer-2.mjs.map +1 -1
  20. package/fesm2022/acorex-components-dropdown-button.mjs +7 -2
  21. package/fesm2022/acorex-components-dropdown-button.mjs.map +1 -1
  22. package/fesm2022/acorex-components-form.mjs +10 -0
  23. package/fesm2022/acorex-components-form.mjs.map +1 -1
  24. package/fesm2022/acorex-components-grid-layout-builder.mjs +115 -5
  25. package/fesm2022/acorex-components-grid-layout-builder.mjs.map +1 -1
  26. package/fesm2022/acorex-components-menu.mjs +12 -1
  27. package/fesm2022/acorex-components-menu.mjs.map +1 -1
  28. package/fesm2022/{acorex-components-modal-acorex-components-modal-BdrQgtUV.mjs → acorex-components-modal-acorex-components-modal-DTUAOsgv.mjs} +12 -11
  29. package/fesm2022/{acorex-components-modal-acorex-components-modal-BdrQgtUV.mjs.map → acorex-components-modal-acorex-components-modal-DTUAOsgv.mjs.map} +1 -1
  30. package/fesm2022/{acorex-components-modal-modal-content.component-DTrjX50k.mjs → acorex-components-modal-modal-content.component-Co2yaRpp.mjs} +20 -19
  31. package/fesm2022/acorex-components-modal-modal-content.component-Co2yaRpp.mjs.map +1 -0
  32. package/fesm2022/acorex-components-modal.mjs +1 -1
  33. package/fesm2022/acorex-components-phone-box.mjs +31 -4
  34. package/fesm2022/acorex-components-phone-box.mjs.map +1 -1
  35. package/fesm2022/acorex-components-scheduler.mjs +947 -84
  36. package/fesm2022/acorex-components-scheduler.mjs.map +1 -1
  37. package/fesm2022/acorex-components-tabs.mjs +2 -2
  38. package/fesm2022/acorex-components-tabs.mjs.map +1 -1
  39. package/form/index.d.ts +10 -0
  40. package/grid-layout-builder/index.d.ts +115 -4
  41. package/menu/index.d.ts +12 -0
  42. package/modal/index.d.ts +3 -2
  43. package/package.json +1 -1
  44. package/scheduler/index.d.ts +363 -244
  45. 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 in the data source and resets the data pager to the first page.
1604
- * @ignore
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);