@acorex/components 20.2.50 → 20.2.52

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.
@@ -1,7 +1,7 @@
1
1
  import * as i2 from '@acorex/cdk/common';
2
2
  import { AXEvent, MXBaseComponent, AXDataSource, AXSortOrder, AXStyleLookType, AXButtonClickEvent, AXItemClickEvent, AXClickEvent, AXValueChangedEvent, AXListDataSource } from '@acorex/cdk/common';
3
3
  import * as i0 from '@angular/core';
4
- import { EventEmitter, TemplateRef, ChangeDetectorRef, OnInit, DoCheck, QueryList, WritableSignal, ElementRef, AfterViewInit, Signal } from '@angular/core';
4
+ import { TemplateRef, EventEmitter, ChangeDetectorRef, OnInit, DoCheck, QueryList, WritableSignal, ElementRef, AfterViewInit, Signal } from '@angular/core';
5
5
  import * as i11 from '@acorex/core/format';
6
6
  import { AXFormatOptions } from '@acorex/core/format';
7
7
  import * as i8 from '@acorex/components/button';
@@ -41,7 +41,11 @@ declare abstract class AXBaseDataTable extends MXBaseComponent {
41
41
  *
42
42
  * @defaultValue `parentId`
43
43
  */
44
- parentField: string;
44
+ parentField: string | undefined;
45
+ /**
46
+ * Template for expanded custom row content.
47
+ */
48
+ rowDetailsTemplate?: TemplateRef<unknown>;
45
49
  selectedRowsChange: EventEmitter<unknown[]>;
46
50
  /**
47
51
  * Gets the data source key field name.
@@ -1072,6 +1076,15 @@ declare class AXDataTableComponent extends AXBaseDataTable implements OnInit, Af
1072
1076
  * @ignore
1073
1077
  */
1074
1078
  ngAfterViewInit(): void;
1079
+ /**
1080
+ * Toggles the expanded state of a row without managing children.
1081
+ * Used for row details template without nested hierarchy.
1082
+ *
1083
+ * @param rows - The array of rows to search in
1084
+ * @param expandedItem - The item to toggle
1085
+ * @returns Updated rows array with toggled state
1086
+ */
1087
+ protected toggleExpandedState(rows: any[], expandedItem: any): any[];
1075
1088
  protected toggleExpanded(rows: any[], expandedItem: any, children: any[]): any[];
1076
1089
  protected refreshExpandedItem(id: string | number): Promise<void>;
1077
1090
  private updateChildren;
@@ -1189,7 +1202,7 @@ declare class AXDataTableComponent extends AXBaseDataTable implements OnInit, Af
1189
1202
  maxWidth?: number;
1190
1203
  }): void;
1191
1204
  static ɵfac: i0.ɵɵFactoryDeclaration<AXDataTableComponent, never>;
1192
- static ɵcmp: i0.ɵɵComponentDeclaration<AXDataTableComponent, "ax-data-table", never, { "dataSource": { "alias": "dataSource"; "required": false; }; "selectedRows": { "alias": "selectedRows"; "required": false; }; "parentField": { "alias": "parentField"; "required": false; }; "rowTemplate": { "alias": "rowTemplate"; "required": false; }; "emptyTemplate": { "alias": "emptyTemplate"; "required": false; }; "noDataTemplate": { "alias": "noDataTemplate"; "required": false; }; "alternative": { "alias": "alternative"; "required": false; }; "showHeader": { "alias": "showHeader"; "required": false; }; "fixedHeader": { "alias": "fixedHeader"; "required": false; }; "showFooter": { "alias": "showFooter"; "required": false; }; "fixedFooter": { "alias": "fixedFooter"; "required": false; }; "itemHeight": { "alias": "itemHeight"; "required": false; }; "allowReordering": { "alias": "allowReordering"; "required": false; }; "paging": { "alias": "paging"; "required": false; }; "fetchDataMode": { "alias": "fetchDataMode"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "focusedRow": { "alias": "focusedRow"; "required": false; }; }, { "selectedRowsChange": "selectedRowsChange"; "focusedRowChange": "focusedRowChange"; "onRowClick": "onRowClick"; "onRowDbClick": "onRowDbClick"; "onColumnsOrderChanged": "onColumnsOrderChanged"; "onColumnSizeChanged": "onColumnSizeChanged"; "onPageChanged": "onPageChanged"; }, ["customDataPager", "columns"], ["ax-header", "ax-data-pager", "ax-footer"], true, never>;
1205
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXDataTableComponent, "ax-data-table", never, { "dataSource": { "alias": "dataSource"; "required": false; }; "selectedRows": { "alias": "selectedRows"; "required": false; }; "parentField": { "alias": "parentField"; "required": false; }; "rowDetailsTemplate": { "alias": "rowDetailsTemplate"; "required": false; }; "rowTemplate": { "alias": "rowTemplate"; "required": false; }; "emptyTemplate": { "alias": "emptyTemplate"; "required": false; }; "noDataTemplate": { "alias": "noDataTemplate"; "required": false; }; "alternative": { "alias": "alternative"; "required": false; }; "showHeader": { "alias": "showHeader"; "required": false; }; "fixedHeader": { "alias": "fixedHeader"; "required": false; }; "showFooter": { "alias": "showFooter"; "required": false; }; "fixedFooter": { "alias": "fixedFooter"; "required": false; }; "itemHeight": { "alias": "itemHeight"; "required": false; }; "allowReordering": { "alias": "allowReordering"; "required": false; }; "paging": { "alias": "paging"; "required": false; }; "fetchDataMode": { "alias": "fetchDataMode"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "focusedRow": { "alias": "focusedRow"; "required": false; }; }, { "selectedRowsChange": "selectedRowsChange"; "focusedRowChange": "focusedRowChange"; "onRowClick": "onRowClick"; "onRowDbClick": "onRowDbClick"; "onColumnsOrderChanged": "onColumnsOrderChanged"; "onColumnSizeChanged": "onColumnSizeChanged"; "onPageChanged": "onPageChanged"; }, ["customDataPager", "columns"], ["ax-header", "ax-data-pager", "ax-footer"], true, never>;
1193
1206
  }
1194
1207
 
1195
1208
  declare class AXDataTableModule {
@@ -971,6 +971,12 @@ class AXCalendarRangeComponent extends classes((MXValueComponent), MXInteractive
971
971
  * @ignore
972
972
  */
973
973
  handleSlotClick(e) {
974
+ this.onSlotClick.emit({
975
+ component: this,
976
+ item: e.item,
977
+ isUserInteraction: true,
978
+ nativeEvent: e,
979
+ });
974
980
  if (this._c1.activeView == this.depth) {
975
981
  if (!this.value.from || (this.value.from && this.value.end)) {
976
982
  this.commitValue({ from: e.item, end: null }, true);