@acorex/components 22.4.36 → 22.4.38
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/fesm2022/acorex-components-calendar.mjs +15 -3
- package/fesm2022/acorex-components-calendar.mjs.map +1 -1
- package/fesm2022/acorex-components-combo-box.mjs +129 -6
- package/fesm2022/acorex-components-combo-box.mjs.map +1 -1
- package/fesm2022/acorex-components-data-table.mjs +125 -19
- package/fesm2022/acorex-components-data-table.mjs.map +1 -1
- package/fesm2022/acorex-components-datetime-box.mjs +45 -4
- package/fesm2022/acorex-components-datetime-box.mjs.map +1 -1
- package/fesm2022/acorex-components-datetime-input.mjs +3 -12
- package/fesm2022/acorex-components-datetime-input.mjs.map +1 -1
- package/fesm2022/acorex-components-datetime-picker.mjs +29 -3
- package/fesm2022/acorex-components-datetime-picker.mjs.map +1 -1
- package/fesm2022/acorex-components-lookup.mjs +100 -31
- package/fesm2022/acorex-components-lookup.mjs.map +1 -1
- package/fesm2022/acorex-components-tabs.mjs +2 -2
- package/fesm2022/acorex-components-tabs.mjs.map +1 -1
- package/fesm2022/acorex-components-tooltip.mjs +35 -14
- package/fesm2022/acorex-components-tooltip.mjs.map +1 -1
- package/package.json +3 -3
- package/types/acorex-components-combo-box.d.ts +5 -3
- package/types/acorex-components-data-table.d.ts +15 -2
- package/types/acorex-components-datetime-box.d.ts +13 -1
- package/types/acorex-components-datetime-input.d.ts +1 -2
- package/types/acorex-components-datetime-picker.d.ts +18 -4
- package/types/acorex-components-lookup.d.ts +8 -4
- package/types/acorex-components-tooltip.d.ts +1 -0
|
@@ -237,12 +237,13 @@ declare class AXComboBoxComponent extends NXValueComponent implements FormValueC
|
|
|
237
237
|
/**
|
|
238
238
|
* Keyboard handling on the trigger:
|
|
239
239
|
* - Searchable: Enter never submits the form; with no matches the value is cleared (`null`).
|
|
240
|
+
* - Arrow keys open the list (when collapsed) and move the active option (when expanded), like `ax-lookup`.
|
|
241
|
+
* - Multi-select: Space toggles the active option while the popup is open; Backspace with an empty
|
|
242
|
+
* trigger input removes the last chip; repeated presses clear the whole selection.
|
|
240
243
|
* - Non-searchable: open with Enter/Space when collapsed; commit with Space when expanded.
|
|
241
|
-
* - Multi-select: Backspace with an empty trigger input removes the last chip; repeated presses
|
|
242
|
-
* clear the whole selection.
|
|
243
244
|
*/
|
|
244
245
|
protected onTriggerKeydown(event: KeyboardEvent): void;
|
|
245
|
-
/** Handles
|
|
246
|
+
/** Handles keyboard in the actionsheet search field (ArrowDown moves to the list; Enter commits). */
|
|
246
247
|
protected onSheetSearchKeydown(e: AXHtmlEvent<KeyboardEvent>): void;
|
|
247
248
|
/** Blocks typing when the trigger is not editable (keeps Tab / keyboard open working). */
|
|
248
249
|
protected onBeforeInput(event: Event): void;
|
|
@@ -292,6 +293,7 @@ declare class AXComboBoxComponent extends NXValueComponent implements FormValueC
|
|
|
292
293
|
* When the user typed a query with no matches, Enter clears single-select to `null`.
|
|
293
294
|
*/
|
|
294
295
|
protected onListEnter(event: Event): void;
|
|
296
|
+
protected onListSpace(event: Event): void;
|
|
295
297
|
protected commit(event?: Event): void;
|
|
296
298
|
/**
|
|
297
299
|
* Focuses the combo box trigger input.
|
|
@@ -34,7 +34,7 @@ declare abstract class AXDataTableColumnComponent {
|
|
|
34
34
|
allowSorting: boolean;
|
|
35
35
|
allowResizing: boolean;
|
|
36
36
|
/**
|
|
37
|
-
* When true, shows the cell
|
|
37
|
+
* When true, shows the full cell text in a tooltip on hover when the cell is truncated.
|
|
38
38
|
*/
|
|
39
39
|
hasTitle: boolean;
|
|
40
40
|
sortIndex: number | undefined;
|
|
@@ -703,6 +703,8 @@ declare class AXRowExpandColumnComponent extends AXDataTableColumnComponent {
|
|
|
703
703
|
declare class AXRowIndexColumnComponent extends AXDataTableColumnComponent implements OnInit {
|
|
704
704
|
protected grid: AXBaseDataTable;
|
|
705
705
|
private unsubscriber;
|
|
706
|
+
private formatService;
|
|
707
|
+
private platformId;
|
|
706
708
|
/**
|
|
707
709
|
* @ignore
|
|
708
710
|
*/
|
|
@@ -741,6 +743,10 @@ declare class AXRowIndexColumnComponent extends AXDataTableColumnComponent imple
|
|
|
741
743
|
* @defaultValue false
|
|
742
744
|
*/
|
|
743
745
|
padZero: boolean;
|
|
746
|
+
/**
|
|
747
|
+
* Fixed width for zero-padding the row index. When set, padding uses this length instead of deriving it from the total row count.
|
|
748
|
+
*/
|
|
749
|
+
zeroPadLength?: number;
|
|
744
750
|
/**
|
|
745
751
|
* @ignore
|
|
746
752
|
*/
|
|
@@ -749,6 +755,9 @@ declare class AXRowIndexColumnComponent extends AXDataTableColumnComponent imple
|
|
|
749
755
|
* @ignore
|
|
750
756
|
*/
|
|
751
757
|
ngOnInit(): void;
|
|
758
|
+
/** Formats the 1-based row index synchronously so auto-fit can measure cell text in the DOM. */
|
|
759
|
+
protected formatRowIndex(rowIndex: number): string;
|
|
760
|
+
private scheduleAutoFit;
|
|
752
761
|
/**
|
|
753
762
|
* Disables sorting for this column.
|
|
754
763
|
*
|
|
@@ -766,7 +775,7 @@ declare class AXRowIndexColumnComponent extends AXDataTableColumnComponent imple
|
|
|
766
775
|
get autoFitPadding(): number;
|
|
767
776
|
get minAutoWidth(): number;
|
|
768
777
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXRowIndexColumnComponent, never>;
|
|
769
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AXRowIndexColumnComponent, "ax-index-column", never, { "width": { "alias": "width"; "required": false; }; "caption": { "alias": "caption"; "required": false; }; "fixed": { "alias": "fixed"; "required": false; }; "footerTemplate": { "alias": "footerTemplate"; "required": false; }; "padZero": { "alias": "padZero"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
778
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AXRowIndexColumnComponent, "ax-index-column", never, { "width": { "alias": "width"; "required": false; }; "caption": { "alias": "caption"; "required": false; }; "fixed": { "alias": "fixed"; "required": false; }; "footerTemplate": { "alias": "footerTemplate"; "required": false; }; "padZero": { "alias": "padZero"; "required": false; }; "zeroPadLength": { "alias": "zeroPadLength"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
770
779
|
}
|
|
771
780
|
|
|
772
781
|
/**
|
|
@@ -1314,6 +1323,10 @@ declare class AXDataTableComponent extends AXBaseDataTable implements OnInit, Af
|
|
|
1314
1323
|
* @ignore
|
|
1315
1324
|
*/
|
|
1316
1325
|
protected resolveColumnWidth(column: AXDataTableColumnComponent): string | number | 'auto';
|
|
1326
|
+
/**
|
|
1327
|
+
* Returns the display text for a cell. Used for overflow tooltips when the column has `hasTitle`.
|
|
1328
|
+
*/
|
|
1329
|
+
resolveCellTooltipText(column: AXDataTableColumnComponent, rowData: unknown): string;
|
|
1317
1330
|
/**
|
|
1318
1331
|
* Returns the display text for a cell. Used for the cell tooltip when the column has `hasTitle`.
|
|
1319
1332
|
*/
|
|
@@ -4,7 +4,7 @@ import * as _acorex_components_datetime_box from '@acorex/components/datetime-bo
|
|
|
4
4
|
import * as polytype from 'polytype';
|
|
5
5
|
import * as _angular_core from '@angular/core';
|
|
6
6
|
import { EventEmitter } from '@angular/core';
|
|
7
|
-
import { MXInputBaseValueComponent, MXLookComponent, AXEvent, AXFocusEvent, AXValueChangedEvent } from '@acorex/cdk/common';
|
|
7
|
+
import { MXInputBaseValueComponent, MXLookComponent, AXEvent, AXFocusEvent, AXValueChangedEvent, MXComponentOptionChanged } from '@acorex/cdk/common';
|
|
8
8
|
import { MXCalendarBaseComponent, AXDateTimePickerType, AXCalendarNavigationLookType, AXCalendarYearRange, AXCalendarNavigateEvent } from '@acorex/components/calendar';
|
|
9
9
|
import { AXDateTimeInputComponent } from '@acorex/components/datetime-input';
|
|
10
10
|
import { AXDateTimePickerComponent } from '@acorex/components/datetime-picker';
|
|
@@ -38,6 +38,7 @@ declare const AXDateTimeBoxComponent_base: polytype.Polytype.ClusteredConstructo
|
|
|
38
38
|
*/
|
|
39
39
|
declare class AXDateTimeBoxComponent extends AXDateTimeBoxComponent_base {
|
|
40
40
|
private readonly defaultConfig;
|
|
41
|
+
private readonly translationService;
|
|
41
42
|
/**
|
|
42
43
|
* @ignore
|
|
43
44
|
*/
|
|
@@ -178,7 +179,18 @@ declare class AXDateTimeBoxComponent extends AXDateTimeBoxComponent_base {
|
|
|
178
179
|
* @ignore
|
|
179
180
|
*/
|
|
180
181
|
protected _handleInputOnClick(): void;
|
|
182
|
+
/** @ignore */
|
|
183
|
+
private _formatLimitValue;
|
|
184
|
+
/** @ignore */
|
|
185
|
+
protected validateFn: (val: Date | null) => Promise<{
|
|
186
|
+
result: boolean;
|
|
187
|
+
message?: undefined;
|
|
188
|
+
} | {
|
|
189
|
+
result: boolean;
|
|
190
|
+
message: string;
|
|
191
|
+
}>;
|
|
181
192
|
private get __hostName();
|
|
193
|
+
protected internalOptionChanged(e: MXComponentOptionChanged): void;
|
|
182
194
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXDateTimeBoxComponent, never>;
|
|
183
195
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXDateTimeBoxComponent, "ax-datetime-box", never, { "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "minValue": { "alias": "minValue"; "required": false; }; "maxValue": { "alias": "maxValue"; "required": false; }; "value": { "alias": "value"; "required": false; }; "state": { "alias": "state"; "required": false; }; "name": { "alias": "name"; "required": false; }; "depth": { "alias": "depth"; "required": false; }; "id": { "alias": "id"; "required": false; }; "type": { "alias": "type"; "required": false; }; "look": { "alias": "look"; "required": false; }; "holidayDates": { "alias": "holidayDates"; "required": false; }; "allowTyping": { "alias": "allowTyping"; "required": false; "isSignal": true; }; "picker": { "alias": "picker"; "required": false; "isSignal": true; }; "calendar": { "alias": "calendar"; "required": false; "isSignal": true; }; "weekend": { "alias": "weekend"; "required": false; "isSignal": true; }; "weekdays": { "alias": "weekdays"; "required": false; "isSignal": true; }; "calendarLook": { "alias": "calendarLook"; "required": false; "isSignal": true; }; "yearRange": { "alias": "yearRange"; "required": false; "isSignal": true; }; "boxLook": { "alias": "boxLook"; "required": false; "isSignal": true; }; "format": { "alias": "format"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; "stateChange": "stateChange"; "onValueChanged": "onValueChanged"; "onBlur": "onBlur"; "onFocus": "onFocus"; "onOpened": "onOpened"; "onClosed": "onClosed"; "readonlyChange": "readonlyChange"; "disabledChange": "disabledChange"; "formatChange": "formatChange"; }, never, ["ax-prefix", "ax-suffix", "ax-prefix", "ax-clear-button", "ax-suffix", "ax-validation-rule"], true, never>;
|
|
184
196
|
}
|
|
@@ -97,8 +97,7 @@ declare class AXDateTimeInputComponent extends MXInputBaseValueComponent<Date> {
|
|
|
97
97
|
protected _handleFocusEvent(e: FocusEvent): void;
|
|
98
98
|
/** @ignore */
|
|
99
99
|
protected _handleBlurEvent(e: FocusEvent): void;
|
|
100
|
-
|
|
101
|
-
private _clampToRange;
|
|
100
|
+
protected registerValidation(): void;
|
|
102
101
|
/** @ignore */
|
|
103
102
|
protected _handleOnInputClickEvent(e: MouseEvent): void;
|
|
104
103
|
/** @ignore */
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as polytype from 'polytype';
|
|
2
2
|
import * as _angular_core from '@angular/core';
|
|
3
|
-
import { OnInit, InjectionToken } from '@angular/core';
|
|
4
|
-
import { MXValueComponent, AXValueChangedEvent } from '@acorex/cdk/common';
|
|
5
|
-
import { MXCalendarBaseComponent, AXCalendarNavigationLookType, AXCalendarYearRange, AXDateTimePickerType, AXCalendarNavigateEvent } from '@acorex/components/calendar';
|
|
3
|
+
import { OnInit, AfterViewInit, InjectionToken } from '@angular/core';
|
|
4
|
+
import { MXValueComponent, MXComponentOptionChanged, AXValueChangedEvent } from '@acorex/cdk/common';
|
|
5
|
+
import { MXCalendarBaseComponent, AXCalendarNavigationLookType, AXCalendarYearRange, AXCalendarComponent, AXDateTimePickerType, AXCalendarNavigateEvent } from '@acorex/components/calendar';
|
|
6
6
|
import { AXTabsComponent, AXTabStripChangedEvent } from '@acorex/components/tabs';
|
|
7
7
|
import { AXDateTimeParts, AXDateTime } from '@acorex/core/date-time';
|
|
8
8
|
|
|
@@ -16,7 +16,7 @@ declare const AXDateTimePickerComponent_base: polytype.Polytype.ClusteredConstru
|
|
|
16
16
|
*
|
|
17
17
|
* @category Components
|
|
18
18
|
*/
|
|
19
|
-
declare class AXDateTimePickerComponent extends AXDateTimePickerComponent_base implements OnInit {
|
|
19
|
+
declare class AXDateTimePickerComponent extends AXDateTimePickerComponent_base implements OnInit, AfterViewInit {
|
|
20
20
|
#private;
|
|
21
21
|
private formatService;
|
|
22
22
|
weekend: _angular_core.InputSignal<number[]>;
|
|
@@ -55,6 +55,10 @@ declare class AXDateTimePickerComponent extends AXDateTimePickerComponent_base i
|
|
|
55
55
|
* @ignore
|
|
56
56
|
*/
|
|
57
57
|
protected tabs: AXTabsComponent;
|
|
58
|
+
/**
|
|
59
|
+
* @ignore
|
|
60
|
+
*/
|
|
61
|
+
protected calendarRef?: AXCalendarComponent;
|
|
58
62
|
/**
|
|
59
63
|
* @ignore
|
|
60
64
|
*/
|
|
@@ -92,6 +96,16 @@ declare class AXDateTimePickerComponent extends AXDateTimePickerComponent_base i
|
|
|
92
96
|
* @ignore
|
|
93
97
|
*/
|
|
94
98
|
ngOnInit(): Promise<void>;
|
|
99
|
+
/**
|
|
100
|
+
* @ignore
|
|
101
|
+
*/
|
|
102
|
+
ngAfterViewInit(): void;
|
|
103
|
+
/**
|
|
104
|
+
* Re-applies min/max time bounds and refreshes the embedded calendar.
|
|
105
|
+
* @ignore
|
|
106
|
+
*/
|
|
107
|
+
applyMinMaxConstraints(): void;
|
|
108
|
+
protected internalOptionChanged(e: MXComponentOptionChanged): void;
|
|
95
109
|
/**
|
|
96
110
|
* Handles changes to the internal value of the component.
|
|
97
111
|
* @param value - The new date value. If not provided, defaults to the current date.
|
|
@@ -600,10 +600,12 @@ declare class AXLookupComponent<T = AXLookupItem> extends NXValueComponent imple
|
|
|
600
600
|
/** Blocks typing when the trigger is not editable (keeps Tab / keyboard open working). */
|
|
601
601
|
protected onBeforeInput(event: Event): void;
|
|
602
602
|
/**
|
|
603
|
-
* On pointer down,
|
|
604
|
-
*
|
|
603
|
+
* On pointer down, focus the trigger without preventing native selection.
|
|
604
|
+
* Select-all runs on pointer up when the pointer did not move (see `onTriggerPointerUp`).
|
|
605
605
|
*/
|
|
606
606
|
protected onTriggerPointerDown(event: PointerEvent): void;
|
|
607
|
+
protected onTriggerPointerUp(event: PointerEvent): void;
|
|
608
|
+
protected onTriggerPointerCancel(): void;
|
|
607
609
|
/**
|
|
608
610
|
* Returns focus to the search field when list navigation requests it.
|
|
609
611
|
*/
|
|
@@ -857,7 +859,8 @@ declare class AXLookupMultiColumnComponent {
|
|
|
857
859
|
constructor();
|
|
858
860
|
/** Stable unique key for `@for` — avoids NG0955 when `field` is missing or duplicated. */
|
|
859
861
|
protected trackColumnKey(index: number, column: AXLookupColumn): string;
|
|
860
|
-
protected
|
|
862
|
+
protected readonly fillColumnWidths: _angular_core.Signal<string[]>;
|
|
863
|
+
protected resolveColumnWidth(index: number): string;
|
|
861
864
|
protected resolveRowCssClass: (row: unknown) => string;
|
|
862
865
|
protected handleRowClick(event: AXDataTableRowClick): void;
|
|
863
866
|
protected handleItemClick(item: AXLookupItem | null | undefined): void;
|
|
@@ -956,7 +959,8 @@ declare class AXLookupMultiColumnTreeComponent {
|
|
|
956
959
|
}>;
|
|
957
960
|
/** Stable unique key for `@for` — avoids NG0955 when `field` is missing or duplicated. */
|
|
958
961
|
protected trackColumnKey(index: number, column: AXLookupColumn): string;
|
|
959
|
-
protected
|
|
962
|
+
protected readonly fillColumnWidths: _angular_core.Signal<string[]>;
|
|
963
|
+
protected resolveColumnWidth(index: number): string;
|
|
960
964
|
protected isExpandColumn(index: number, column: AXLookupColumn): boolean;
|
|
961
965
|
protected resolveRowCssClass: (row: unknown) => string;
|
|
962
966
|
protected handleRowClick(event: AXDataTableRowClick): void;
|