@acorex/components 20.7.4 → 20.7.5

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.
@@ -164,6 +164,8 @@ declare class AXDataPagerNumericSelectorComponent extends AXDataPagerChild {
164
164
  protected _currentPage: number;
165
165
  protected _lastPage: number;
166
166
  protected _loading: boolean;
167
+ private localeService;
168
+ protected rtlstatus: i0.Signal<boolean>;
167
169
  /**
168
170
  * @ignore
169
171
  */
@@ -108,6 +108,10 @@ declare abstract class AXDataTableColumnComponent {
108
108
  fixed: 'start' | 'end' | undefined;
109
109
  allowSorting: boolean;
110
110
  allowResizing: boolean;
111
+ /**
112
+ * When true, shows the cell content as tooltip on hover (via `axTooltip`).
113
+ */
114
+ hasTitle: boolean;
111
115
  sortIndex: number | undefined;
112
116
  sortOrder: AXSortOrder | undefined;
113
117
  abstract get renderCellTemplate(): TemplateRef<unknown>;
@@ -247,7 +251,7 @@ declare class AXDataTableTextColumnComponent extends AXDataTableColumnComponent
247
251
  */
248
252
  get name(): string;
249
253
  /**
250
- * Returns the display text for a row cell. Used for cell tooltip when title is enabled on the table.
254
+ * Returns the display text for a row cell. Used for cell tooltip when the column has `hasTitle`.
251
255
  */
252
256
  getCellDisplayText(rowData: unknown): string;
253
257
  /**
@@ -264,7 +268,7 @@ declare class AXDataTableTextColumnComponent extends AXDataTableColumnComponent
264
268
  */
265
269
  formatOptions: AXFormatOptions;
266
270
  static ɵfac: i0.ɵɵFactoryDeclaration<AXDataTableTextColumnComponent, never>;
267
- static ɵcmp: i0.ɵɵComponentDeclaration<AXDataTableTextColumnComponent, "ax-text-column", never, { "width": { "alias": "width"; "required": false; }; "caption": { "alias": "caption"; "required": false; }; "allowSorting": { "alias": "allowSorting"; "required": false; }; "allowResizing": { "alias": "allowResizing"; "required": false; }; "fixed": { "alias": "fixed"; "required": false; }; "customExpandIcon": { "alias": "customExpandIcon"; "required": false; }; "customCollapseIcon": { "alias": "customCollapseIcon"; "required": false; }; "dataField": { "alias": "dataField"; "required": false; }; "expandHandler": { "alias": "expandHandler"; "required": false; }; "wrapText": { "alias": "wrapText"; "required": false; }; "cellTemplate": { "alias": "cellTemplate"; "required": false; }; "footerTemplate": { "alias": "footerTemplate"; "required": false; }; "headerTemplate": { "alias": "headerTemplate"; "required": false; }; "format": { "alias": "format"; "required": false; }; "formatOptions": { "alias": "formatOptions"; "required": false; }; }, {}, never, never, true, never>;
271
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXDataTableTextColumnComponent, "ax-text-column", never, { "width": { "alias": "width"; "required": false; }; "caption": { "alias": "caption"; "required": false; }; "allowSorting": { "alias": "allowSorting"; "required": false; }; "allowResizing": { "alias": "allowResizing"; "required": false; }; "fixed": { "alias": "fixed"; "required": false; }; "hasTitle": { "alias": "hasTitle"; "required": false; }; "customExpandIcon": { "alias": "customExpandIcon"; "required": false; }; "customCollapseIcon": { "alias": "customCollapseIcon"; "required": false; }; "dataField": { "alias": "dataField"; "required": false; }; "expandHandler": { "alias": "expandHandler"; "required": false; }; "wrapText": { "alias": "wrapText"; "required": false; }; "cellTemplate": { "alias": "cellTemplate"; "required": false; }; "footerTemplate": { "alias": "footerTemplate"; "required": false; }; "headerTemplate": { "alias": "headerTemplate"; "required": false; }; "format": { "alias": "format"; "required": false; }; "formatOptions": { "alias": "formatOptions"; "required": false; }; }, {}, never, never, true, never>;
268
272
  }
269
273
 
270
274
  type AXRowCommandItem = AXButtonItemListItem & {
@@ -870,10 +874,6 @@ declare class AXDataTableComponent extends AXBaseDataTable implements OnInit, Af
870
874
  * @ignore
871
875
  */
872
876
  customDataPager: AXDataPagerComponent;
873
- /**
874
- * When true, shows the cell content as tooltip (title attribute) on hover.
875
- */
876
- title: boolean;
877
877
  /**
878
878
  * @ignore
879
879
  */
@@ -1109,7 +1109,7 @@ declare class AXDataTableComponent extends AXBaseDataTable implements OnInit, Af
1109
1109
  ngAfterViewInit(): void;
1110
1110
  private captureAutoFitIntentColumns;
1111
1111
  /**
1112
- * Returns the display text for a cell. Used for the native title (tooltip) on each cell.
1112
+ * Returns the display text for a cell. Used for the cell tooltip when the column has `hasTitle`.
1113
1113
  */
1114
1114
  protected getCellTooltipText(column: AXDataTableColumnComponent, rowData: unknown): string;
1115
1115
  /**
@@ -1241,7 +1241,7 @@ declare class AXDataTableComponent extends AXBaseDataTable implements OnInit, Af
1241
1241
  headerOnly?: boolean;
1242
1242
  }): void;
1243
1243
  static ɵfac: i0.ɵɵFactoryDeclaration<AXDataTableComponent, never>;
1244
- static ɵcmp: i0.ɵɵComponentDeclaration<AXDataTableComponent, "ax-data-table", never, { "dataSource": { "alias": "dataSource"; "required": false; }; "selectedRows": { "alias": "selectedRows"; "required": false; }; "parentField": { "alias": "parentField"; "required": false; }; "hasChildrenField": { "alias": "hasChildrenField"; "required": false; }; "rowDetailsTemplate": { "alias": "rowDetailsTemplate"; "required": false; }; "title": { "alias": "title"; "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>;
1244
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXDataTableComponent, "ax-data-table", never, { "dataSource": { "alias": "dataSource"; "required": false; }; "selectedRows": { "alias": "selectedRows"; "required": false; }; "parentField": { "alias": "parentField"; "required": false; }; "hasChildrenField": { "alias": "hasChildrenField"; "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>;
1245
1245
  }
1246
1246
 
1247
1247
  declare class AXDataTableModule {
@@ -1,7 +1,7 @@
1
1
  import { AXEvent, MXInteractiveComponent, AXComponent, MXValueComponent, AXPagedComponent } from '@acorex/cdk/common';
2
2
  import { AXUnsubscriber, AXHtmlUtil } from '@acorex/core/utils';
3
3
  import * as i0 from '@angular/core';
4
- import { Injectable, inject, Input, ViewEncapsulation, ChangeDetectionStrategy, Component, afterNextRender, signal, EventEmitter, forwardRef, HostBinding, Output, NgModule } from '@angular/core';
4
+ import { Injectable, inject, Input, ViewEncapsulation, ChangeDetectionStrategy, Component, computed, afterNextRender, signal, EventEmitter, forwardRef, HostBinding, Output, NgModule } from '@angular/core';
5
5
  import { AXDecoratorGenericComponent, AXDecoratorIconComponent, AXDecoratorModule } from '@acorex/components/decorators';
6
6
  import { AXTranslationService, AXTranslatorPipe, AXTranslationModule } from '@acorex/core/translation';
7
7
  import { AsyncPipe, NgClass, CommonModule } from '@angular/common';
@@ -9,6 +9,7 @@ import { AXNumberBoxComponent, AXNumberBoxModule } from '@acorex/components/numb
9
9
  import * as i1 from '@angular/forms';
10
10
  import { FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';
11
11
  import { AXButtonComponent, AXButtonItemListComponent, AXButtonItemComponent, AXButtonModule } from '@acorex/components/button';
12
+ import { AXLocaleService } from '@acorex/core/locale';
12
13
  import { AXDropdownPanelComponent, AXDropdownModule } from '@acorex/components/dropdown';
13
14
  import { isNumber, isEqual, cloneDeep } from 'lodash-es';
14
15
  import { AXButtonGroupModule } from '@acorex/components/button-group';
@@ -328,6 +329,11 @@ class AXDataPagerNumericSelectorComponent extends AXDataPagerChild {
328
329
  this._currentPage = 1;
329
330
  this._lastPage = 1;
330
331
  this._loading = false;
332
+ this.localeService = inject(AXLocaleService);
333
+ this.rtlstatus = computed(() => {
334
+ // console.log(this.localeService.activeProfile().i18nMeta?.rtl ?? false);
335
+ return this.localeService.activeProfile().i18nMeta?.rtl ?? false;
336
+ }, ...(ngDevMode ? [{ debugName: "rtlstatus" }] : []));
331
337
  /**
332
338
  * @ignore
333
339
  */
@@ -383,10 +389,20 @@ class AXDataPagerNumericSelectorComponent extends AXDataPagerChild {
383
389
  _handleOnItemClick(e) {
384
390
  if (this._parent.readonly || this._parent.disabled)
385
391
  return;
386
- if (e.iconClass === 'ax-icon-chevron-right') {
392
+ // if (e.iconClass === 'ax-icon-chevron-right') {
393
+ // debugger;
394
+ // this._parent.goNextPage();
395
+ // } else if (e.iconClass === 'ax-icon-chevron-left') {
396
+ // this._parent.goPrevPage();
397
+ // } else {
398
+ // this._parent.goToPage(Number(e.data));
399
+ // }
400
+ const nextIcon = this.rtl ? 'ax-icon-chevron-left' : 'ax-icon-chevron-right';
401
+ const prevIcon = this.rtl ? 'ax-icon-chevron-right' : 'ax-icon-chevron-left';
402
+ if (e.iconClass === nextIcon) {
387
403
  this._parent.goNextPage();
388
404
  }
389
- else if (e.iconClass === 'ax-icon-chevron-left') {
405
+ else if (e.iconClass === prevIcon) {
390
406
  this._parent.goPrevPage();
391
407
  }
392
408
  else {