@acorex/components 21.0.2-next.8 → 21.0.3-next.1
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/conversation2/README.md +5 -8
- package/fesm2022/acorex-components-accordion.mjs +29 -29
- package/fesm2022/acorex-components-accordion.mjs.map +1 -1
- package/fesm2022/acorex-components-action-sheet.mjs +30 -30
- package/fesm2022/acorex-components-action-sheet.mjs.map +1 -1
- package/fesm2022/acorex-components-alert.mjs +16 -16
- package/fesm2022/acorex-components-alert.mjs.map +1 -1
- package/fesm2022/acorex-components-aspect-ratio.mjs +5 -5
- package/fesm2022/acorex-components-aspect-ratio.mjs.map +1 -1
- package/fesm2022/acorex-components-audio-wave.mjs +11 -11
- package/fesm2022/acorex-components-audio-wave.mjs.map +1 -1
- package/fesm2022/acorex-components-autocomplete.mjs +14 -14
- package/fesm2022/acorex-components-autocomplete.mjs.map +1 -1
- package/fesm2022/acorex-components-avatar.mjs +17 -16
- package/fesm2022/acorex-components-avatar.mjs.map +1 -1
- package/fesm2022/acorex-components-badge.mjs +9 -9
- package/fesm2022/acorex-components-badge.mjs.map +1 -1
- package/fesm2022/acorex-components-bottom-navigation.mjs +14 -14
- package/fesm2022/acorex-components-bottom-navigation.mjs.map +1 -1
- package/fesm2022/acorex-components-breadcrumbs.mjs +13 -13
- package/fesm2022/acorex-components-breadcrumbs.mjs.map +1 -1
- package/fesm2022/acorex-components-button-group.mjs +40 -20
- package/fesm2022/acorex-components-button-group.mjs.map +1 -1
- package/fesm2022/acorex-components-button.mjs +35 -36
- package/fesm2022/acorex-components-button.mjs.map +1 -1
- package/fesm2022/acorex-components-calendar.mjs +279 -61
- package/fesm2022/acorex-components-calendar.mjs.map +1 -1
- package/fesm2022/acorex-components-check-box.mjs +10 -10
- package/fesm2022/acorex-components-check-box.mjs.map +1 -1
- package/fesm2022/acorex-components-chips.mjs +9 -9
- package/fesm2022/acorex-components-chips.mjs.map +1 -1
- package/fesm2022/acorex-components-circular-progress.mjs +13 -13
- package/fesm2022/acorex-components-circular-progress.mjs.map +1 -1
- package/fesm2022/acorex-components-code-editor.mjs +27 -27
- package/fesm2022/acorex-components-code-editor.mjs.map +1 -1
- package/fesm2022/acorex-components-color-box.mjs +14 -14
- package/fesm2022/acorex-components-color-box.mjs.map +1 -1
- package/fesm2022/acorex-components-color-palette.mjs +84 -43
- package/fesm2022/acorex-components-color-palette.mjs.map +1 -1
- package/fesm2022/acorex-components-command.mjs +19 -19
- package/fesm2022/acorex-components-command.mjs.map +1 -1
- package/fesm2022/acorex-components-comment.mjs +35 -35
- package/fesm2022/acorex-components-comment.mjs.map +1 -1
- package/fesm2022/acorex-components-conversation.mjs +105 -105
- package/fesm2022/acorex-components-conversation.mjs.map +1 -1
- package/fesm2022/acorex-components-conversation2.mjs +11697 -8617
- package/fesm2022/acorex-components-conversation2.mjs.map +1 -1
- package/fesm2022/acorex-components-cron-job.mjs +51 -51
- package/fesm2022/acorex-components-cron-job.mjs.map +1 -1
- package/fesm2022/acorex-components-data-list.mjs +31 -31
- package/fesm2022/acorex-components-data-list.mjs.map +1 -1
- package/fesm2022/acorex-components-data-pager.mjs +93 -104
- package/fesm2022/acorex-components-data-pager.mjs.map +1 -1
- package/fesm2022/acorex-components-data-table.mjs +467 -86
- package/fesm2022/acorex-components-data-table.mjs.map +1 -1
- package/fesm2022/acorex-components-datetime-box.mjs +174 -39
- package/fesm2022/acorex-components-datetime-box.mjs.map +1 -1
- package/fesm2022/acorex-components-datetime-input.mjs +30 -38
- package/fesm2022/acorex-components-datetime-input.mjs.map +1 -1
- package/fesm2022/acorex-components-datetime-picker.mjs +62 -55
- package/fesm2022/acorex-components-datetime-picker.mjs.map +1 -1
- package/fesm2022/acorex-components-decorators.mjs +39 -39
- package/fesm2022/acorex-components-decorators.mjs.map +1 -1
- package/fesm2022/acorex-components-dialog.mjs +19 -26
- package/fesm2022/acorex-components-dialog.mjs.map +1 -1
- package/fesm2022/acorex-components-drawer.mjs +23 -23
- package/fesm2022/acorex-components-drawer.mjs.map +1 -1
- package/fesm2022/acorex-components-dropdown-button.mjs +9 -9
- package/fesm2022/acorex-components-dropdown.mjs +19 -19
- package/fesm2022/acorex-components-dropdown.mjs.map +1 -1
- package/fesm2022/acorex-components-editor.mjs +12 -12
- package/fesm2022/acorex-components-editor.mjs.map +1 -1
- package/fesm2022/acorex-components-fab.mjs +15 -15
- package/fesm2022/acorex-components-fab.mjs.map +1 -1
- package/fesm2022/acorex-components-flow-chart.mjs +74 -58
- package/fesm2022/acorex-components-flow-chart.mjs.map +1 -1
- package/fesm2022/acorex-components-form.mjs +30 -30
- package/fesm2022/acorex-components-form.mjs.map +1 -1
- package/fesm2022/acorex-components-grid-layout-builder.mjs +15 -15
- package/fesm2022/acorex-components-grid-layout-builder.mjs.map +1 -1
- package/fesm2022/acorex-components-image-editor.mjs +87 -87
- package/fesm2022/acorex-components-image-editor.mjs.map +1 -1
- package/fesm2022/acorex-components-image.mjs +11 -11
- package/fesm2022/acorex-components-image.mjs.map +1 -1
- package/fesm2022/acorex-components-json-viewer.mjs +12 -12
- package/fesm2022/acorex-components-json-viewer.mjs.map +1 -1
- package/fesm2022/acorex-components-kanban.mjs +23 -23
- package/fesm2022/acorex-components-kanban.mjs.map +1 -1
- package/fesm2022/acorex-components-kbd.mjs +15 -15
- package/fesm2022/acorex-components-kbd.mjs.map +1 -1
- package/fesm2022/acorex-components-label.mjs +9 -9
- package/fesm2022/acorex-components-list.mjs +69 -19
- package/fesm2022/acorex-components-list.mjs.map +1 -1
- package/fesm2022/acorex-components-loading-dialog.mjs +20 -19
- package/fesm2022/acorex-components-loading-dialog.mjs.map +1 -1
- package/fesm2022/acorex-components-loading.mjs +21 -21
- package/fesm2022/acorex-components-loading.mjs.map +1 -1
- package/fesm2022/acorex-components-map.mjs +46 -46
- package/fesm2022/acorex-components-map.mjs.map +1 -1
- package/fesm2022/acorex-components-media-viewer.mjs +82 -82
- package/fesm2022/acorex-components-media-viewer.mjs.map +1 -1
- package/fesm2022/acorex-components-menu.mjs +366 -197
- package/fesm2022/acorex-components-menu.mjs.map +1 -1
- package/fesm2022/{acorex-components-modal-acorex-components-modal-CcXuJ4IW.mjs → acorex-components-modal-acorex-components-modal-lJw2DGSj.mjs} +28 -28
- package/fesm2022/{acorex-components-modal-acorex-components-modal-CcXuJ4IW.mjs.map → acorex-components-modal-acorex-components-modal-lJw2DGSj.mjs.map} +1 -1
- package/fesm2022/{acorex-components-modal-modal-content.component-DTZu2zbU.mjs → acorex-components-modal-modal-content.component-t9kRuhc_.mjs} +39 -39
- package/fesm2022/acorex-components-modal-modal-content.component-t9kRuhc_.mjs.map +1 -0
- package/fesm2022/acorex-components-modal.mjs +1 -1
- package/fesm2022/acorex-components-navbar.mjs +8 -8
- package/fesm2022/acorex-components-notification.mjs +28 -28
- package/fesm2022/acorex-components-notification.mjs.map +1 -1
- package/fesm2022/acorex-components-number-box.mjs +61 -23
- package/fesm2022/acorex-components-number-box.mjs.map +1 -1
- package/fesm2022/acorex-components-otp.mjs +45 -21
- package/fesm2022/acorex-components-otp.mjs.map +1 -1
- package/fesm2022/acorex-components-page.mjs +10 -10
- package/fesm2022/acorex-components-paint.mjs +53 -53
- package/fesm2022/acorex-components-paint.mjs.map +1 -1
- package/fesm2022/acorex-components-password-box.mjs +28 -28
- package/fesm2022/acorex-components-password-box.mjs.map +1 -1
- package/fesm2022/acorex-components-pdf-reader.mjs +9 -9
- package/fesm2022/acorex-components-pdf-reader.mjs.map +1 -1
- package/fesm2022/acorex-components-phone-box.mjs +19 -19
- package/fesm2022/acorex-components-phone-box.mjs.map +1 -1
- package/fesm2022/acorex-components-picker.mjs +31 -31
- package/fesm2022/acorex-components-picker.mjs.map +1 -1
- package/fesm2022/acorex-components-popover.mjs +18 -14
- package/fesm2022/acorex-components-popover.mjs.map +1 -1
- package/fesm2022/acorex-components-popup.mjs +52 -25
- package/fesm2022/acorex-components-popup.mjs.map +1 -1
- package/fesm2022/acorex-components-progress-bar.mjs +8 -8
- package/fesm2022/acorex-components-qrcode.mjs +37 -20
- package/fesm2022/acorex-components-qrcode.mjs.map +1 -1
- package/fesm2022/acorex-components-query-builder.mjs +15 -14
- package/fesm2022/acorex-components-query-builder.mjs.map +1 -1
- package/fesm2022/acorex-components-radio.mjs +9 -9
- package/fesm2022/acorex-components-rail-navigation.mjs +28 -28
- package/fesm2022/acorex-components-rail-navigation.mjs.map +1 -1
- package/fesm2022/acorex-components-range-slider.mjs +34 -34
- package/fesm2022/acorex-components-range-slider.mjs.map +1 -1
- package/fesm2022/acorex-components-rate-picker.mjs +17 -17
- package/fesm2022/acorex-components-rate-picker.mjs.map +1 -1
- package/fesm2022/acorex-components-rest-api-generator.mjs +33 -33
- package/fesm2022/acorex-components-rest-api-generator.mjs.map +1 -1
- package/fesm2022/acorex-components-result.mjs +8 -8
- package/fesm2022/acorex-components-routing-progress.mjs +8 -8
- package/fesm2022/acorex-components-routing-progress.mjs.map +1 -1
- package/fesm2022/acorex-components-rrule.mjs +36 -36
- package/fesm2022/acorex-components-rrule.mjs.map +1 -1
- package/fesm2022/acorex-components-scheduler-picker.mjs +118 -118
- package/fesm2022/acorex-components-scheduler-picker.mjs.map +1 -1
- package/fesm2022/acorex-components-scheduler.mjs +398 -326
- package/fesm2022/acorex-components-scheduler.mjs.map +1 -1
- package/fesm2022/acorex-components-search-box.mjs +9 -9
- package/fesm2022/acorex-components-search-box.mjs.map +1 -1
- package/fesm2022/acorex-components-select-box.mjs +55 -25
- package/fesm2022/acorex-components-select-box.mjs.map +1 -1
- package/fesm2022/acorex-components-selection-list-2.mjs +12 -12
- package/fesm2022/acorex-components-selection-list-2.mjs.map +1 -1
- package/fesm2022/acorex-components-selection-list.mjs +11 -11
- package/fesm2022/acorex-components-selection-list.mjs.map +1 -1
- package/fesm2022/acorex-components-side-menu.mjs +455 -97
- package/fesm2022/acorex-components-side-menu.mjs.map +1 -1
- package/fesm2022/acorex-components-skeleton.mjs +8 -8
- package/fesm2022/acorex-components-skeleton.mjs.map +1 -1
- package/fesm2022/acorex-components-slider.mjs +7 -7
- package/fesm2022/acorex-components-sliding-item.mjs +25 -25
- package/fesm2022/acorex-components-sliding-item.mjs.map +1 -1
- package/fesm2022/acorex-components-step-wizard.mjs +40 -39
- package/fesm2022/acorex-components-step-wizard.mjs.map +1 -1
- package/fesm2022/acorex-components-switch.mjs +12 -12
- package/fesm2022/acorex-components-switch.mjs.map +1 -1
- package/fesm2022/acorex-components-tabs.mjs +20 -20
- package/fesm2022/acorex-components-tabs.mjs.map +1 -1
- package/fesm2022/acorex-components-tag-box.mjs +19 -19
- package/fesm2022/acorex-components-tag-box.mjs.map +1 -1
- package/fesm2022/acorex-components-tag.mjs +8 -8
- package/fesm2022/acorex-components-tag.mjs.map +1 -1
- package/fesm2022/acorex-components-text-area.mjs +9 -9
- package/fesm2022/acorex-components-text-area.mjs.map +1 -1
- package/fesm2022/acorex-components-text-box.mjs +12 -12
- package/fesm2022/acorex-components-text-box.mjs.map +1 -1
- package/fesm2022/acorex-components-time-duration.mjs +34 -32
- package/fesm2022/acorex-components-time-duration.mjs.map +1 -1
- package/fesm2022/acorex-components-time-line.mjs +19 -19
- package/fesm2022/acorex-components-time-line.mjs.map +1 -1
- package/fesm2022/acorex-components-toast.mjs +26 -26
- package/fesm2022/acorex-components-toast.mjs.map +1 -1
- package/fesm2022/acorex-components-toolbar.mjs +13 -13
- package/fesm2022/acorex-components-toolbar.mjs.map +1 -1
- package/fesm2022/acorex-components-tooltip.mjs +27 -18
- package/fesm2022/acorex-components-tooltip.mjs.map +1 -1
- package/fesm2022/acorex-components-tree-view.mjs +326 -67
- package/fesm2022/acorex-components-tree-view.mjs.map +1 -1
- package/fesm2022/acorex-components-uploader.mjs +17 -17
- package/fesm2022/acorex-components-uploader.mjs.map +1 -1
- package/fesm2022/acorex-components-video-player.mjs +8 -8
- package/fesm2022/acorex-components-video-player.mjs.map +1 -1
- package/fesm2022/acorex-components-wysiwyg.mjs +60 -53
- package/fesm2022/acorex-components-wysiwyg.mjs.map +1 -1
- package/package.json +5 -4
- package/types/acorex-components-button-group.d.ts +9 -3
- package/types/acorex-components-button.d.ts +2 -8
- package/types/acorex-components-calendar.d.ts +142 -27
- package/types/acorex-components-color-palette.d.ts +2 -0
- package/types/acorex-components-conversation2.d.ts +1340 -1289
- package/types/acorex-components-data-pager.d.ts +6 -25
- package/types/acorex-components-data-table.d.ts +216 -56
- package/types/acorex-components-datetime-box.d.ts +79 -8
- package/types/acorex-components-datetime-input.d.ts +2 -2
- package/types/acorex-components-datetime-picker.d.ts +15 -5
- package/types/acorex-components-flow-chart.d.ts +4 -0
- package/types/acorex-components-list.d.ts +15 -1
- package/types/acorex-components-loading-dialog.d.ts +16 -16
- package/types/acorex-components-menu.d.ts +105 -36
- package/types/acorex-components-number-box.d.ts +9 -0
- package/types/acorex-components-otp.d.ts +18 -1
- package/types/acorex-components-popup.d.ts +11 -1
- package/types/acorex-components-qrcode.d.ts +1 -0
- package/types/acorex-components-query-builder.d.ts +1 -1
- package/types/acorex-components-scheduler.d.ts +23 -2
- package/types/acorex-components-select-box.d.ts +1 -0
- package/types/acorex-components-side-menu.d.ts +96 -34
- package/types/acorex-components-step-wizard.d.ts +2 -1
- package/types/acorex-components-time-duration.d.ts +1 -0
- package/types/acorex-components-tree-view.d.ts +43 -2
- package/types/acorex-components-wysiwyg.d.ts +6 -1
- package/fesm2022/acorex-components-modal-modal-content.component-DTZu2zbU.mjs.map +0 -1
|
@@ -59,6 +59,7 @@ declare abstract class AXDataPagerParentComponent {
|
|
|
59
59
|
declare abstract class AXDataPagerChild extends MXInteractiveComponent {
|
|
60
60
|
protected _parent: AXDataPagerParentComponent;
|
|
61
61
|
protected _unsubscriber: AXUnsubscriber;
|
|
62
|
+
private _localeService;
|
|
62
63
|
/**
|
|
63
64
|
* @ignore
|
|
64
65
|
*/
|
|
@@ -130,14 +131,8 @@ declare class AXDataPagerInputSelectorComponent extends AXDataPagerChild {
|
|
|
130
131
|
* @category Components
|
|
131
132
|
*/
|
|
132
133
|
declare class AXDataPagerNextButtonsComponent extends AXDataPagerChild {
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
*/
|
|
136
|
-
protected rtl: boolean;
|
|
137
|
-
/**
|
|
138
|
-
* @ignore
|
|
139
|
-
*/
|
|
140
|
-
ngOnInit(): void;
|
|
134
|
+
private localeService;
|
|
135
|
+
protected readonly isRtl: i0.Signal<boolean>;
|
|
141
136
|
/**
|
|
142
137
|
* @ignore
|
|
143
138
|
*/
|
|
@@ -165,19 +160,11 @@ declare class AXDataPagerNumericSelectorComponent extends AXDataPagerChild {
|
|
|
165
160
|
protected _lastPage: number;
|
|
166
161
|
protected _loading: boolean;
|
|
167
162
|
private localeService;
|
|
168
|
-
protected
|
|
163
|
+
protected readonly isRtl: i0.Signal<boolean>;
|
|
169
164
|
/**
|
|
170
165
|
* @ignore
|
|
171
166
|
*/
|
|
172
167
|
private _displayCount;
|
|
173
|
-
/**
|
|
174
|
-
* @ignore
|
|
175
|
-
*/
|
|
176
|
-
protected rtl: boolean;
|
|
177
|
-
/**
|
|
178
|
-
* @ignore
|
|
179
|
-
*/
|
|
180
|
-
constructor();
|
|
181
168
|
/**
|
|
182
169
|
* @ignore
|
|
183
170
|
*/
|
|
@@ -236,14 +223,8 @@ declare class AXDataPagerPageSizesComponent extends AXDataPagerChild {
|
|
|
236
223
|
* @category Components
|
|
237
224
|
*/
|
|
238
225
|
declare class AXDataPagerPrevButtonsComponent extends AXDataPagerChild {
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
*/
|
|
242
|
-
protected rtl: boolean;
|
|
243
|
-
/**
|
|
244
|
-
* @ignore
|
|
245
|
-
*/
|
|
246
|
-
ngOnInit(): void;
|
|
226
|
+
private localeService;
|
|
227
|
+
protected readonly isRtl: i0.Signal<boolean>;
|
|
247
228
|
/**
|
|
248
229
|
* @ignore
|
|
249
230
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i2 from '@acorex/cdk/common';
|
|
2
|
-
import { MXBaseComponent, AXDataSource,
|
|
2
|
+
import { AXSortOrder, MXBaseComponent, AXDataSource, AXStyleColorType, AXEvent, AXButtonClickEvent, AXStyleLookType, AXClickEvent, AXItemClickEvent, AXValueChangedEvent } from '@acorex/cdk/common';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
|
-
import { TemplateRef, EventEmitter, ChangeDetectorRef, OnInit, AfterViewInit,
|
|
4
|
+
import { TemplateRef, EventEmitter, WritableSignal, ChangeDetectorRef, OnInit, AfterViewInit, Signal, QueryList } 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';
|
|
@@ -19,6 +19,38 @@ import { AXDataPagerComponent, AXDataPagerChangedEvent } from '@acorex/component
|
|
|
19
19
|
import * as i13 from '@angular/cdk/drag-drop';
|
|
20
20
|
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
21
21
|
|
|
22
|
+
declare abstract class AXDataTableColumnComponent {
|
|
23
|
+
caption: string;
|
|
24
|
+
/**
|
|
25
|
+
* Width of the column.
|
|
26
|
+
* - string: e.g., '180px', '20%'
|
|
27
|
+
* - number: e.g., 180 (treated as pixels)
|
|
28
|
+
* - 'auto': sizes from headers when the table first renders, then refits from row content once data loads
|
|
29
|
+
*
|
|
30
|
+
* @defaultValue 'auto'
|
|
31
|
+
*/
|
|
32
|
+
width: string | number | 'auto';
|
|
33
|
+
fixed: 'start' | 'end' | undefined;
|
|
34
|
+
allowSorting: boolean;
|
|
35
|
+
allowResizing: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* When true, shows the cell content as tooltip on hover (via `axTooltip`).
|
|
38
|
+
*/
|
|
39
|
+
hasTitle: boolean;
|
|
40
|
+
sortIndex: number | undefined;
|
|
41
|
+
sortOrder: AXSortOrder | undefined;
|
|
42
|
+
abstract get renderCellTemplate(): TemplateRef<unknown>;
|
|
43
|
+
abstract get renderHeaderTemplate(): TemplateRef<unknown>;
|
|
44
|
+
abstract get renderFooterTemplate(): TemplateRef<unknown>;
|
|
45
|
+
abstract get loadingEnabled(): boolean;
|
|
46
|
+
abstract get name(): string;
|
|
47
|
+
get cssClass(): string | undefined;
|
|
48
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXDataTableColumnComponent, never>;
|
|
49
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXDataTableColumnComponent>;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
type AXDataTableCssClassValue = string | null | undefined;
|
|
53
|
+
|
|
22
54
|
interface AXDataTableScrollIndexChanged extends AXEvent {
|
|
23
55
|
index: number;
|
|
24
56
|
}
|
|
@@ -34,6 +66,59 @@ interface onColumnSizeChangedEvent extends AXEvent {
|
|
|
34
66
|
}
|
|
35
67
|
interface AXDataTableRowDbClick extends AXDataTableRowClick {
|
|
36
68
|
}
|
|
69
|
+
type AXDataTableLook = 'classic' | 'minimal';
|
|
70
|
+
/**
|
|
71
|
+
* Semantic row background colors supported by the data table.
|
|
72
|
+
*/
|
|
73
|
+
type AXDataTableRowColorType = Exclude<AXStyleColorType, 'default'>;
|
|
74
|
+
declare const AX_DATA_TABLE_ROW_COLOR_TYPES: AXDataTableRowColorType[];
|
|
75
|
+
|
|
76
|
+
/** Row CSS class resolver; may return a value synchronously or as a `Promise`. */
|
|
77
|
+
type AXDataTableRowCssClassResolver = (row: unknown, rowIndex: number) => AXDataTableCssClassValue | Promise<AXDataTableCssClassValue>;
|
|
78
|
+
/** Cell CSS class resolver; may return a value synchronously or as a `Promise`. */
|
|
79
|
+
type AXDataTableCellCssClassResolver = (row: unknown, column: AXDataTableColumnComponent, rowIndex: number) => AXDataTableCssClassValue | Promise<AXDataTableCssClassValue>;
|
|
80
|
+
/**
|
|
81
|
+
* Options for temporarily highlighting a row (e.g. after create).
|
|
82
|
+
*/
|
|
83
|
+
interface AXDataTableRowHighlightOptions {
|
|
84
|
+
/** Semantic row background color. @defaultValue `'success'` */
|
|
85
|
+
color?: AXDataTableRowColorType;
|
|
86
|
+
/**
|
|
87
|
+
* Translation key for the row badge.
|
|
88
|
+
* Pass `null` to hide the badge.
|
|
89
|
+
* @defaultValue `'@acorex:dataTable.rowHighlight.new'`
|
|
90
|
+
*/
|
|
91
|
+
badge?: string | null;
|
|
92
|
+
/** Whether the row background should pulse. @defaultValue `true` */
|
|
93
|
+
pulse?: boolean;
|
|
94
|
+
/** Whether the row should be pinned above other rows until refresh. @defaultValue `true` */
|
|
95
|
+
pinned?: boolean;
|
|
96
|
+
}
|
|
97
|
+
interface AXDataTableRowHighlight {
|
|
98
|
+
row: unknown;
|
|
99
|
+
color: AXDataTableRowColorType;
|
|
100
|
+
badge: string | null;
|
|
101
|
+
pulse: boolean;
|
|
102
|
+
pinned: boolean;
|
|
103
|
+
order: number;
|
|
104
|
+
}
|
|
105
|
+
declare const AX_DATA_TABLE_ROW_HIGHLIGHT_DEFAULT_BADGE = "@acorex:dataTable.rowHighlight.new";
|
|
106
|
+
/** Options for auto-fitting a single column to its content width. */
|
|
107
|
+
interface AXDataTableAutoFitColumnOptions {
|
|
108
|
+
/** Maximum width in pixels. */
|
|
109
|
+
maxWidth?: number;
|
|
110
|
+
/** When true, only the header cell is measured (e.g. before row data exists). */
|
|
111
|
+
headerOnly?: boolean;
|
|
112
|
+
}
|
|
113
|
+
/** Options for auto-fitting all columns to their content width. */
|
|
114
|
+
interface AXDataTableAutoFitAllColumnsOptions {
|
|
115
|
+
/** When true, fixed columns are skipped. @defaultValue `true` */
|
|
116
|
+
skipFixed?: boolean;
|
|
117
|
+
/** When true, auto-fit is skipped while data is loading. @defaultValue `true` */
|
|
118
|
+
skipLoading?: boolean;
|
|
119
|
+
/** Maximum width in pixels for any column. @defaultValue `500` */
|
|
120
|
+
maxWidth?: number;
|
|
121
|
+
}
|
|
37
122
|
declare abstract class AXBaseDataTable extends MXBaseComponent {
|
|
38
123
|
dataSource: AXDataSource<unknown>;
|
|
39
124
|
/**
|
|
@@ -52,13 +137,94 @@ declare abstract class AXBaseDataTable extends MXBaseComponent {
|
|
|
52
137
|
* Template for expanded custom row content.
|
|
53
138
|
*/
|
|
54
139
|
rowDetailsTemplate?: TemplateRef<unknown>;
|
|
140
|
+
/**
|
|
141
|
+
* Resolves custom CSS classes for a row `<tr>`.
|
|
142
|
+
* Supports synchronous and asynchronous (`Promise`) return values.
|
|
143
|
+
*/
|
|
144
|
+
rowCssClass?: AXDataTableRowCssClassResolver;
|
|
145
|
+
/**
|
|
146
|
+
* Resolves custom CSS classes for an individual body cell `<td>`.
|
|
147
|
+
* Column `cssClass` is preserved and merged with the resolved value.
|
|
148
|
+
* Supports synchronous and asynchronous (`Promise`) return values.
|
|
149
|
+
*/
|
|
150
|
+
cellCssClass?: AXDataTableCellCssClassResolver;
|
|
151
|
+
/**
|
|
152
|
+
* When set, matching text in the table body is highlighted.
|
|
153
|
+
*/
|
|
154
|
+
get highlightText(): string | undefined;
|
|
155
|
+
set highlightText(value: string | undefined);
|
|
55
156
|
selectedRowsChange: EventEmitter<unknown[]>;
|
|
157
|
+
protected readonly highlightedRows: WritableSignal<Map<string | number, AXDataTableRowHighlight>>;
|
|
158
|
+
private readonly rowCssClassCache;
|
|
159
|
+
private readonly cellCssClassCache;
|
|
160
|
+
private readonly highlightService;
|
|
161
|
+
private readonly platformId;
|
|
162
|
+
private readonly destroyRef;
|
|
163
|
+
private _highlightText?;
|
|
164
|
+
private highlightOrder;
|
|
165
|
+
private textHighlightFrame?;
|
|
166
|
+
constructor();
|
|
56
167
|
/**
|
|
57
168
|
* Gets the data source key field name.
|
|
58
169
|
*
|
|
59
170
|
* @returns string - The key field name for the data source.
|
|
60
171
|
*/
|
|
61
172
|
getDataSourceKey(): string;
|
|
173
|
+
/**
|
|
174
|
+
* Temporarily highlights a row with optional pin, badge, and pulse styling.
|
|
175
|
+
* Highlights are cleared on the next grid `refresh()` unless `preserveHighlights` is set.
|
|
176
|
+
*/
|
|
177
|
+
highlightRow(row: unknown, options?: AXDataTableRowHighlightOptions): void;
|
|
178
|
+
/**
|
|
179
|
+
* Temporarily highlights multiple rows.
|
|
180
|
+
*/
|
|
181
|
+
highlightRows(rows: unknown[], options?: AXDataTableRowHighlightOptions): void;
|
|
182
|
+
/**
|
|
183
|
+
* Clears all temporary row highlights.
|
|
184
|
+
*/
|
|
185
|
+
clearRowHighlights(): void;
|
|
186
|
+
/**
|
|
187
|
+
* Returns the temporary highlight state for a row, if any.
|
|
188
|
+
*/
|
|
189
|
+
getRowHighlight(row: unknown): AXDataTableRowHighlight | null;
|
|
190
|
+
/**
|
|
191
|
+
* Returns the translation key for the row highlight badge, if any.
|
|
192
|
+
*/
|
|
193
|
+
getRowHighlightBadge(row: unknown): string | null;
|
|
194
|
+
/**
|
|
195
|
+
* Clears cached asynchronous CSS class results for rows and cells.
|
|
196
|
+
*/
|
|
197
|
+
clearResolvedCssClasses(): void;
|
|
198
|
+
/**
|
|
199
|
+
* Returns CSS classes for the given row `<tr>`, including temporary highlight styles.
|
|
200
|
+
*/
|
|
201
|
+
getRowCssClass(row: unknown, rowIndex: number): string;
|
|
202
|
+
/**
|
|
203
|
+
* Returns CSS classes for a body cell, merging column `cssClass` with `cellCssClass`.
|
|
204
|
+
*/
|
|
205
|
+
getCellCssClass(row: unknown, column: AXDataTableColumnComponent, rowIndex: number): string;
|
|
206
|
+
/**
|
|
207
|
+
* Merges pinned highlighted rows with loaded items.
|
|
208
|
+
*/
|
|
209
|
+
protected mergeRowsWithHighlights(items: unknown[]): unknown[];
|
|
210
|
+
protected resolveRowKey(row: unknown): string | number | null;
|
|
211
|
+
protected abstract onRowHighlightsChanged(): void;
|
|
212
|
+
protected onCssClassResolved(): void;
|
|
213
|
+
/**
|
|
214
|
+
* Schedules text highlighting after the current render frame.
|
|
215
|
+
*/
|
|
216
|
+
protected scheduleTextHighlight(): void;
|
|
217
|
+
/**
|
|
218
|
+
* Returns the DOM root used for text highlighting.
|
|
219
|
+
*/
|
|
220
|
+
protected getTextHighlightRoot(): HTMLElement | null;
|
|
221
|
+
protected getTextHighlightSelector(): string;
|
|
222
|
+
protected applyTextHighlight(): void;
|
|
223
|
+
protected clearTextHighlight(): void;
|
|
224
|
+
private resolveRowCssClass;
|
|
225
|
+
private resolveCellCssClass;
|
|
226
|
+
private resolveRowCssClassCacheKey;
|
|
227
|
+
private resolveCellCssClassCacheKey;
|
|
62
228
|
private _selectedRows;
|
|
63
229
|
get selectedRows(): unknown[];
|
|
64
230
|
set selectedRows(v: unknown[]);
|
|
@@ -90,38 +256,23 @@ declare abstract class AXBaseDataTable extends MXBaseComponent {
|
|
|
90
256
|
* @returns void - No return value.
|
|
91
257
|
*/
|
|
92
258
|
unSelectRows(...rows: unknown[]): void;
|
|
93
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXBaseDataTable, never>;
|
|
94
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AXBaseDataTable>;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
declare abstract class AXDataTableColumnComponent {
|
|
98
|
-
caption: string;
|
|
99
259
|
/**
|
|
100
|
-
*
|
|
101
|
-
*
|
|
102
|
-
|
|
103
|
-
|
|
260
|
+
* Auto-fits all resizable columns to their content width.
|
|
261
|
+
* Call this whenever row data or templates change and column widths should be recalculated.
|
|
262
|
+
*/
|
|
263
|
+
abstract autoFitAllColumns(options?: AXDataTableAutoFitAllColumnsOptions): void;
|
|
264
|
+
/**
|
|
265
|
+
* Auto-fits a single column to its content width.
|
|
104
266
|
*
|
|
105
|
-
* @
|
|
267
|
+
* @param columnIndex - 0-based index in the columns `QueryList`.
|
|
106
268
|
*/
|
|
107
|
-
|
|
108
|
-
fixed: 'start' | 'end' | undefined;
|
|
109
|
-
allowSorting: boolean;
|
|
110
|
-
allowResizing: boolean;
|
|
269
|
+
abstract autoFitColumn(columnIndex: number, options?: AXDataTableAutoFitColumnOptions): void;
|
|
111
270
|
/**
|
|
112
|
-
*
|
|
271
|
+
* Auto-fits a single column by its `name` / data field.
|
|
113
272
|
*/
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
abstract get renderCellTemplate(): TemplateRef<unknown>;
|
|
118
|
-
abstract get renderHeaderTemplate(): TemplateRef<unknown>;
|
|
119
|
-
abstract get renderFooterTemplate(): TemplateRef<unknown>;
|
|
120
|
-
abstract get loadingEnabled(): boolean;
|
|
121
|
-
abstract get name(): string;
|
|
122
|
-
get cssClass(): string | undefined;
|
|
123
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXDataTableColumnComponent, never>;
|
|
124
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AXDataTableColumnComponent>;
|
|
273
|
+
abstract autoFitColumnByName(columnName: string, options?: AXDataTableAutoFitColumnOptions): void;
|
|
274
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXBaseDataTable, never>;
|
|
275
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXBaseDataTable>;
|
|
125
276
|
}
|
|
126
277
|
|
|
127
278
|
declare class AXDataTableColumnResizableDirective {
|
|
@@ -473,7 +624,7 @@ declare class AXRowExpandColumnComponent extends AXDataTableColumnComponent {
|
|
|
473
624
|
* @category Components
|
|
474
625
|
*/
|
|
475
626
|
declare class AXRowIndexColumnComponent extends AXDataTableColumnComponent implements OnInit {
|
|
476
|
-
|
|
627
|
+
protected grid: AXBaseDataTable;
|
|
477
628
|
private unsubscriber;
|
|
478
629
|
/**
|
|
479
630
|
* @ignore
|
|
@@ -613,6 +764,15 @@ declare class AXRowSelectColumnComponent extends AXDataTableColumnComponent {
|
|
|
613
764
|
*/
|
|
614
765
|
declare class AXDataTableComponent extends AXBaseDataTable implements OnInit, AfterViewInit {
|
|
615
766
|
#private;
|
|
767
|
+
/**
|
|
768
|
+
* Controls the table look.
|
|
769
|
+
*
|
|
770
|
+
* - `classic` — classic look (default).
|
|
771
|
+
* - `minimal` — minimal look.
|
|
772
|
+
*
|
|
773
|
+
* @defaultValue `'classic'`
|
|
774
|
+
*/
|
|
775
|
+
look: i0.InputSignal<AXDataTableLook>;
|
|
616
776
|
private _unsubscriber;
|
|
617
777
|
private _zone;
|
|
618
778
|
private document;
|
|
@@ -846,6 +1006,11 @@ declare class AXDataTableComponent extends AXBaseDataTable implements OnInit, Af
|
|
|
846
1006
|
* Returns true if in manual mode and no data has been loaded yet.
|
|
847
1007
|
*/
|
|
848
1008
|
get showNoDataLoadedYet(): boolean;
|
|
1009
|
+
/**
|
|
1010
|
+
* Root rows from the latest data source load (before highlight merge).
|
|
1011
|
+
* @ignore
|
|
1012
|
+
*/
|
|
1013
|
+
private lastLoadedRows;
|
|
849
1014
|
/**
|
|
850
1015
|
* @ignore
|
|
851
1016
|
*/
|
|
@@ -913,6 +1078,12 @@ declare class AXDataTableComponent extends AXBaseDataTable implements OnInit, Af
|
|
|
913
1078
|
* @ignore
|
|
914
1079
|
*/
|
|
915
1080
|
protected getSort(column: AXDataTableColumnComponent): string | undefined;
|
|
1081
|
+
/**
|
|
1082
|
+
* Re-applies pinned highlighted rows to the current view.
|
|
1083
|
+
* @ignore
|
|
1084
|
+
*/
|
|
1085
|
+
protected onRowHighlightsChanged(): void;
|
|
1086
|
+
protected onCssClassResolved(): void;
|
|
916
1087
|
/**
|
|
917
1088
|
* Refreshes the data table with optional reset options.
|
|
918
1089
|
*
|
|
@@ -922,11 +1093,13 @@ declare class AXDataTableComponent extends AXBaseDataTable implements OnInit, Af
|
|
|
922
1093
|
*/
|
|
923
1094
|
refresh(options?: {
|
|
924
1095
|
reset?: boolean;
|
|
1096
|
+
preserveHighlights?: boolean;
|
|
925
1097
|
}): void;
|
|
926
1098
|
/**
|
|
927
1099
|
* @ignore
|
|
928
1100
|
*/
|
|
929
1101
|
protected calculateRowIndex(index: number): number;
|
|
1102
|
+
private countHighlightBadgeRowsBefore;
|
|
930
1103
|
/**
|
|
931
1104
|
* Handles double-click on resize handle to auto-fit column width.
|
|
932
1105
|
*
|
|
@@ -963,36 +1136,23 @@ declare class AXDataTableComponent extends AXBaseDataTable implements OnInit, Af
|
|
|
963
1136
|
*/
|
|
964
1137
|
private autoFitColumnsWithAutoWidth;
|
|
965
1138
|
/**
|
|
966
|
-
* Auto-fits all columns
|
|
967
|
-
*
|
|
968
|
-
* @param options - Configuration options
|
|
969
|
-
* @param options.skipFixed - If true, skips fixed columns (default: true)
|
|
970
|
-
* @param options.skipLoading - If true, skips if data is loading (default: true)
|
|
971
|
-
* @param options.maxWidth - Maximum width for any column in pixels (default: 500)
|
|
972
|
-
* @returns void
|
|
1139
|
+
* Auto-fits all resizable columns to their content width.
|
|
1140
|
+
* Call this whenever row data or templates change and column widths should be recalculated.
|
|
973
1141
|
*/
|
|
974
|
-
autoFitAllColumns(options?:
|
|
975
|
-
skipFixed?: boolean;
|
|
976
|
-
skipLoading?: boolean;
|
|
977
|
-
maxWidth?: number;
|
|
978
|
-
}): void;
|
|
1142
|
+
autoFitAllColumns(options?: AXDataTableAutoFitAllColumnsOptions): void;
|
|
979
1143
|
/**
|
|
980
|
-
* Auto-fits a column
|
|
1144
|
+
* Auto-fits a single column to its content width.
|
|
981
1145
|
* Similar to Excel's "AutoFit Column Width" feature.
|
|
982
|
-
* Uses an invisible helper table to measure actual content width without affecting the main table.
|
|
983
1146
|
*
|
|
984
|
-
* @param columnIndex -
|
|
985
|
-
* @param options - Configuration options
|
|
986
|
-
* @param options.maxWidth - Maximum width for the column in pixels (default: none)
|
|
987
|
-
* @param options.headerOnly - When true, only the header cell is measured (e.g. before row data exists)
|
|
988
|
-
* @returns void
|
|
1147
|
+
* @param columnIndex - 0-based index in the columns `QueryList`.
|
|
989
1148
|
*/
|
|
990
|
-
autoFitColumn(columnIndex: number, options?:
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
1149
|
+
autoFitColumn(columnIndex: number, options?: AXDataTableAutoFitColumnOptions): void;
|
|
1150
|
+
/**
|
|
1151
|
+
* Auto-fits a single column by its `name` / data field.
|
|
1152
|
+
*/
|
|
1153
|
+
autoFitColumnByName(columnName: string, options?: AXDataTableAutoFitColumnOptions): void;
|
|
994
1154
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXDataTableComponent, never>;
|
|
995
|
-
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>;
|
|
1155
|
+
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; }; "rowCssClass": { "alias": "rowCssClass"; "required": false; }; "cellCssClass": { "alias": "cellCssClass"; "required": false; }; "highlightText": { "alias": "highlightText"; "required": false; }; "look": { "alias": "look"; "required": false; "isSignal": true; }; "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>;
|
|
996
1156
|
}
|
|
997
1157
|
|
|
998
1158
|
declare class AXDataTableModule {
|
|
@@ -1001,5 +1161,5 @@ declare class AXDataTableModule {
|
|
|
1001
1161
|
static ɵinj: i0.ɵɵInjectorDeclaration<AXDataTableModule>;
|
|
1002
1162
|
}
|
|
1003
1163
|
|
|
1004
|
-
export { AXBaseDataTable, AXBaseRowCommandColumnComponent, AXDataTableColumnComponent, AXDataTableColumnResizableDirective, AXDataTableComponent, AXDataTableModule, AXDataTableTextColumnComponent, AXRowCommandColumnComponent, AXRowDropdownCommandColumnComponent, AXRowExpandColumnComponent, AXRowIndexColumnComponent, AXRowSelectColumnComponent };
|
|
1005
|
-
export type { AXColumnsOrderChangedEvent, AXDataTableRowClick, AXDataTableRowDbClick, AXDataTableScrollIndexChanged, AXRowCommandItem, AXRowCommandItemClickEvent, onColumnSizeChangedEvent };
|
|
1164
|
+
export { AXBaseDataTable, AXBaseRowCommandColumnComponent, AXDataTableColumnComponent, AXDataTableColumnResizableDirective, AXDataTableComponent, AXDataTableModule, AXDataTableTextColumnComponent, AXRowCommandColumnComponent, AXRowDropdownCommandColumnComponent, AXRowExpandColumnComponent, AXRowIndexColumnComponent, AXRowSelectColumnComponent, AX_DATA_TABLE_ROW_COLOR_TYPES, AX_DATA_TABLE_ROW_HIGHLIGHT_DEFAULT_BADGE };
|
|
1165
|
+
export type { AXColumnsOrderChangedEvent, AXDataTableAutoFitAllColumnsOptions, AXDataTableAutoFitColumnOptions, AXDataTableCellCssClassResolver, AXDataTableCssClassValue, AXDataTableLook, AXDataTableRowClick, AXDataTableRowColorType, AXDataTableRowCssClassResolver, AXDataTableRowDbClick, AXDataTableRowHighlight, AXDataTableRowHighlightOptions, AXDataTableScrollIndexChanged, AXRowCommandItem, AXRowCommandItemClickEvent, onColumnSizeChangedEvent };
|
|
@@ -1,13 +1,31 @@
|
|
|
1
|
+
import { TimeUnit } from '@acorex/core/date-time';
|
|
2
|
+
import * as dist_packages_core_types_acorex_core_date_time from 'dist/packages/core/types/acorex-core-date-time';
|
|
3
|
+
import * as _acorex_components_datetime_box from '@acorex/components/datetime-box';
|
|
1
4
|
import * as polytype from 'polytype';
|
|
2
5
|
import * as _angular_core from '@angular/core';
|
|
3
6
|
import { EventEmitter } from '@angular/core';
|
|
4
|
-
import { MXInputBaseValueComponent, MXLookComponent, AXEvent, AXFocusEvent } from '@acorex/cdk/common';
|
|
5
|
-
import { MXCalendarBaseComponent, AXDateTimePickerType, AXCalendarNavigateEvent } from '@acorex/components/calendar';
|
|
7
|
+
import { MXInputBaseValueComponent, MXLookComponent, AXEvent, AXFocusEvent, AXValueChangedEvent } from '@acorex/cdk/common';
|
|
8
|
+
import { MXCalendarBaseComponent, AXDateTimePickerType, AXCalendarNavigationLookType, AXCalendarYearRange, AXCalendarNavigateEvent } from '@acorex/components/calendar';
|
|
6
9
|
import { AXDateTimeInputComponent } from '@acorex/components/datetime-input';
|
|
7
10
|
import { AXDateTimePickerComponent } from '@acorex/components/datetime-picker';
|
|
8
11
|
import { AXDecoratorGenericComponent } from '@acorex/components/decorators';
|
|
9
12
|
import { MXDropdownBoxBaseComponent, AXDropdownBoxComponent } from '@acorex/components/dropdown';
|
|
10
13
|
|
|
14
|
+
/**
|
|
15
|
+
* Controls how date/time is chosen in the datetime box.
|
|
16
|
+
* - `default`: text input with calendar popup.
|
|
17
|
+
* - `classic`: inline select boxes for year, month, day, and optionally hour/minute.
|
|
18
|
+
*/
|
|
19
|
+
type AXDateTimeBoxLookType = 'default' | 'classic';
|
|
20
|
+
type AXDateTimeBoxClassicPart = Extract<TimeUnit, 'year' | 'month' | 'day' | 'hour' | 'minute'>;
|
|
21
|
+
interface AXDateTimeBoxClassicField {
|
|
22
|
+
part: AXDateTimeBoxClassicPart;
|
|
23
|
+
dropdownWidth: string;
|
|
24
|
+
maxVisibleItems: number;
|
|
25
|
+
}
|
|
26
|
+
declare const AX_DATETIME_BOX_CLASSIC_DATE_FIELDS: AXDateTimeBoxClassicField[];
|
|
27
|
+
declare const AX_DATETIME_BOX_CLASSIC_TIME_FIELDS: AXDateTimeBoxClassicField[];
|
|
28
|
+
|
|
11
29
|
declare const AXDateTimeBoxComponent_base: polytype.Polytype.ClusteredConstructor<[{
|
|
12
30
|
new (): MXInputBaseValueComponent<Date>;
|
|
13
31
|
ɵfac: _angular_core.ɵɵFactoryDeclaration<MXInputBaseValueComponent<any>, never>;
|
|
@@ -19,7 +37,6 @@ declare const AXDateTimeBoxComponent_base: polytype.Polytype.ClusteredConstructo
|
|
|
19
37
|
* @category Components
|
|
20
38
|
*/
|
|
21
39
|
declare class AXDateTimeBoxComponent extends AXDateTimeBoxComponent_base {
|
|
22
|
-
#private;
|
|
23
40
|
/**
|
|
24
41
|
* @ignore
|
|
25
42
|
*/
|
|
@@ -51,17 +68,62 @@ declare class AXDateTimeBoxComponent extends AXDateTimeBoxComponent_base {
|
|
|
51
68
|
readonly calendar: _angular_core.InputSignal<string>;
|
|
52
69
|
readonly weekend: _angular_core.InputSignal<number[]>;
|
|
53
70
|
readonly weekdays: _angular_core.InputSignal<number[]>;
|
|
71
|
+
/**
|
|
72
|
+
* Day view navigation style of the embedded calendar.
|
|
73
|
+
*/
|
|
74
|
+
readonly calendarLook: _angular_core.InputSignal<AXCalendarNavigationLookType>;
|
|
75
|
+
/**
|
|
76
|
+
* Years shown in the year selector when `calendarLook` is `select`.
|
|
77
|
+
* Use a number for equal past/future ranges, or `{ past, future }` for asymmetric ranges.
|
|
78
|
+
* `minValue` and `maxValue` take priority when set.
|
|
79
|
+
*/
|
|
80
|
+
readonly yearRange: _angular_core.InputSignal<AXCalendarYearRange>;
|
|
81
|
+
/**
|
|
82
|
+
* Input style of the datetime box.
|
|
83
|
+
* - `default`: text input with calendar popup.
|
|
84
|
+
* - `classic`: inline select boxes for date/time parts.
|
|
85
|
+
*/
|
|
86
|
+
readonly boxLook: _angular_core.InputSignal<AXDateTimeBoxLookType>;
|
|
54
87
|
/**
|
|
55
88
|
* @deprecated use locale & mode instead
|
|
56
89
|
*/
|
|
57
90
|
readonly format: _angular_core.InputSignal<string>;
|
|
58
91
|
protected _editingDateObj: _angular_core.WritableSignal<Date>;
|
|
59
|
-
protected _calendarSystem: _angular_core.
|
|
60
|
-
|
|
92
|
+
protected readonly _calendarSystem: _angular_core.Signal<string>;
|
|
93
|
+
protected readonly _resolvedFormat: _angular_core.Signal<string>;
|
|
94
|
+
protected readonly _classicDateFields: _acorex_components_datetime_box.AXDateTimeBoxClassicField[];
|
|
95
|
+
protected readonly _classicTimeFields: _acorex_components_datetime_box.AXDateTimeBoxClassicField[];
|
|
96
|
+
private readonly _classicTimeOptions;
|
|
97
|
+
protected _classicDate: _angular_core.Signal<dist_packages_core_types_acorex_core_date_time.AXDateTime>;
|
|
98
|
+
protected _classicYearOptions: _angular_core.Signal<{
|
|
99
|
+
id: number;
|
|
100
|
+
text: string;
|
|
101
|
+
}[]>;
|
|
102
|
+
protected _classicMonthOptions: _angular_core.Signal<{
|
|
103
|
+
id: number;
|
|
104
|
+
text: string;
|
|
105
|
+
}[]>;
|
|
106
|
+
protected _classicDayOptions: _angular_core.Signal<{
|
|
107
|
+
id: number;
|
|
108
|
+
text: string;
|
|
109
|
+
}[]>;
|
|
110
|
+
protected get _classicBoxClass(): string;
|
|
111
|
+
protected get _classicHasDatePart(): boolean;
|
|
112
|
+
protected get _classicHasTimePart(): boolean;
|
|
61
113
|
/**
|
|
62
114
|
* @ignore
|
|
63
115
|
*/
|
|
64
|
-
protected
|
|
116
|
+
protected _classicPartValue(part: AXDateTimeBoxClassicPart): {
|
|
117
|
+
id: number;
|
|
118
|
+
text: string;
|
|
119
|
+
} | null;
|
|
120
|
+
/**
|
|
121
|
+
* @ignore
|
|
122
|
+
*/
|
|
123
|
+
protected _classicPartOptions(part: AXDateTimeBoxClassicPart): {
|
|
124
|
+
id: number;
|
|
125
|
+
text: string;
|
|
126
|
+
}[];
|
|
65
127
|
/**
|
|
66
128
|
* @ignore
|
|
67
129
|
*/
|
|
@@ -92,13 +154,21 @@ declare class AXDateTimeBoxComponent extends AXDateTimeBoxComponent_base {
|
|
|
92
154
|
* @ignore
|
|
93
155
|
*/
|
|
94
156
|
internalValueChanged(value: any): void;
|
|
157
|
+
/**
|
|
158
|
+
* @ignore
|
|
159
|
+
*/
|
|
160
|
+
protected _handleClassicPartChanged(e: AXValueChangedEvent, part: AXDateTimeBoxClassicPart): void;
|
|
161
|
+
/**
|
|
162
|
+
* @ignore
|
|
163
|
+
*/
|
|
164
|
+
private _readSelectValue;
|
|
95
165
|
/**
|
|
96
166
|
* @ignore
|
|
97
167
|
*/
|
|
98
168
|
protected _handleInputOnClick(): void;
|
|
99
169
|
private get __hostName();
|
|
100
170
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXDateTimeBoxComponent, never>;
|
|
101
|
-
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; }; "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-clear-button", "ax-suffix", "ax-validation-rule"], true, never>;
|
|
171
|
+
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>;
|
|
102
172
|
}
|
|
103
173
|
|
|
104
174
|
declare class AXDateTimeBoxModule {
|
|
@@ -107,4 +177,5 @@ declare class AXDateTimeBoxModule {
|
|
|
107
177
|
static ɵinj: _angular_core.ɵɵInjectorDeclaration<AXDateTimeBoxModule>;
|
|
108
178
|
}
|
|
109
179
|
|
|
110
|
-
export { AXDateTimeBoxComponent, AXDateTimeBoxModule };
|
|
180
|
+
export { AXDateTimeBoxComponent, AXDateTimeBoxModule, AX_DATETIME_BOX_CLASSIC_DATE_FIELDS, AX_DATETIME_BOX_CLASSIC_TIME_FIELDS };
|
|
181
|
+
export type { AXDateTimeBoxClassicField, AXDateTimeBoxClassicPart, AXDateTimeBoxLookType };
|
|
@@ -34,7 +34,7 @@ declare class AXDateTimeInputComponent extends MXInputBaseValueComponent<Date> {
|
|
|
34
34
|
* @description The calendar type to use for the datetime input.
|
|
35
35
|
*/
|
|
36
36
|
calendar: _angular_core.InputSignal<string>;
|
|
37
|
-
protected _calendarSystem: _angular_core.
|
|
37
|
+
protected readonly _calendarSystem: _angular_core.Signal<string>;
|
|
38
38
|
private _activePart;
|
|
39
39
|
private _editingDate;
|
|
40
40
|
/**
|
|
@@ -49,7 +49,7 @@ declare class AXDateTimeInputComponent extends MXInputBaseValueComponent<Date> {
|
|
|
49
49
|
*/
|
|
50
50
|
onClick: _angular_core.OutputEmitterRef<AXClickEvent>;
|
|
51
51
|
picker: _angular_core.InputSignal<AXDateTimePickerType>;
|
|
52
|
-
|
|
52
|
+
protected readonly _resolvedFormat: _angular_core.Signal<string>;
|
|
53
53
|
/**
|
|
54
54
|
* @deprecated use locale & mode instead
|
|
55
55
|
*/
|