@acorex/components 21.0.2-next.33 → 21.0.2-next.34
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-button.mjs +9 -10
- package/fesm2022/acorex-components-button.mjs.map +1 -1
- package/fesm2022/acorex-components-calendar.mjs +2 -2
- package/fesm2022/acorex-components-calendar.mjs.map +1 -1
- package/fesm2022/acorex-components-data-table.mjs +11 -11
- package/fesm2022/acorex-components-data-table.mjs.map +1 -1
- package/fesm2022/acorex-components-datetime-box.mjs +145 -10
- package/fesm2022/acorex-components-datetime-box.mjs.map +1 -1
- package/fesm2022/acorex-components-dialog.mjs +6 -13
- package/fesm2022/acorex-components-dialog.mjs.map +1 -1
- package/fesm2022/acorex-components-popup.mjs +2 -2
- package/fesm2022/acorex-components-popup.mjs.map +1 -1
- package/fesm2022/acorex-components-query-builder.mjs +1 -1
- package/fesm2022/acorex-components-query-builder.mjs.map +1 -1
- package/fesm2022/acorex-components-rrule.mjs +1 -1
- package/fesm2022/acorex-components-rrule.mjs.map +1 -1
- package/fesm2022/acorex-components-scheduler-picker.mjs +5 -5
- package/fesm2022/acorex-components-scheduler-picker.mjs.map +1 -1
- package/fesm2022/acorex-components-select-box.mjs +2 -2
- package/fesm2022/acorex-components-select-box.mjs.map +1 -1
- package/fesm2022/acorex-components-tree-view.mjs +1 -1
- package/fesm2022/acorex-components-tree-view.mjs.map +1 -1
- package/package.json +3 -3
- package/types/acorex-components-button.d.ts +2 -8
- package/types/acorex-components-data-table.d.ts +8 -8
- package/types/acorex-components-datetime-box.d.ts +66 -4
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acorex/components",
|
|
3
|
-
"version": "21.0.2-next.
|
|
3
|
+
"version": "21.0.2-next.34",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@acorex/core": "21.0.2-next.
|
|
6
|
-
"@acorex/cdk": "21.0.2-next.
|
|
5
|
+
"@acorex/core": "21.0.2-next.34",
|
|
6
|
+
"@acorex/cdk": "21.0.2-next.34",
|
|
7
7
|
"polytype": ">=0.17.0",
|
|
8
8
|
"angular-imask": ">=7.6.1",
|
|
9
9
|
"gridstack": ">=12.0.0",
|
|
@@ -266,15 +266,9 @@ declare class AXButtonComponent extends MXButtonBaseComponent implements AfterVi
|
|
|
266
266
|
* @ignore
|
|
267
267
|
*/
|
|
268
268
|
private get __hostClass();
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
*
|
|
272
|
-
*/
|
|
269
|
+
protected emitOnFocusEvent(e?: FocusEvent): void;
|
|
270
|
+
protected emitOnBlurEvent(e?: FocusEvent): void;
|
|
273
271
|
focus(): void;
|
|
274
|
-
/**
|
|
275
|
-
* Removes the focus style class from the button element
|
|
276
|
-
* when the button loses focus.
|
|
277
|
-
*/
|
|
278
272
|
blur(): void;
|
|
279
273
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXButtonComponent, never>;
|
|
280
274
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXButtonComponent, "ax-button", never, { "disabled": { "alias": "disabled"; "required": false; }; "size": { "alias": "size"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "color": { "alias": "color"; "required": false; }; "look": { "alias": "look"; "required": false; }; "text": { "alias": "text"; "required": false; }; "toggleable": { "alias": "toggleable"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "iconOnly": { "alias": "iconOnly"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "loadingText": { "alias": "loadingText"; "required": false; "isSignal": true; }; }, { "onBlur": "onBlur"; "onFocus": "onFocus"; "onClick": "onClick"; "selectedChange": "selectedChange"; "toggleableChange": "toggleableChange"; "lookChange": "lookChange"; "colorChange": "colorChange"; "disabledChange": "disabledChange"; "loadingText": "loadingTextChange"; }, ["loadingIcon"], ["ax-loading, ax-loading-spinner", "ax-prefix, ax-icon", "ax-content", "ax-suffix", "ax-dropdown-panel", ".tab-content", "*"], true, never>;
|
|
@@ -34,7 +34,7 @@ interface onColumnSizeChangedEvent extends AXEvent {
|
|
|
34
34
|
}
|
|
35
35
|
interface AXDataTableRowDbClick extends AXDataTableRowClick {
|
|
36
36
|
}
|
|
37
|
-
type
|
|
37
|
+
type AXDataTableLook = 'classic' | 'minimal';
|
|
38
38
|
declare abstract class AXBaseDataTable extends MXBaseComponent {
|
|
39
39
|
dataSource: AXDataSource<unknown>;
|
|
40
40
|
/**
|
|
@@ -615,14 +615,14 @@ declare class AXRowSelectColumnComponent extends AXDataTableColumnComponent {
|
|
|
615
615
|
declare class AXDataTableComponent extends AXBaseDataTable implements OnInit, AfterViewInit {
|
|
616
616
|
#private;
|
|
617
617
|
/**
|
|
618
|
-
* Controls the table
|
|
618
|
+
* Controls the table look.
|
|
619
619
|
*
|
|
620
|
-
* - `
|
|
621
|
-
* - `minimal` —
|
|
620
|
+
* - `classic` — classic look (default).
|
|
621
|
+
* - `minimal` — minimal look.
|
|
622
622
|
*
|
|
623
|
-
* @defaultValue `'
|
|
623
|
+
* @defaultValue `'classic'`
|
|
624
624
|
*/
|
|
625
|
-
|
|
625
|
+
look: i0.InputSignal<AXDataTableLook>;
|
|
626
626
|
private _unsubscriber;
|
|
627
627
|
private _zone;
|
|
628
628
|
private document;
|
|
@@ -1002,7 +1002,7 @@ declare class AXDataTableComponent extends AXBaseDataTable implements OnInit, Af
|
|
|
1002
1002
|
headerOnly?: boolean;
|
|
1003
1003
|
}): void;
|
|
1004
1004
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXDataTableComponent, never>;
|
|
1005
|
-
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; }; "
|
|
1005
|
+
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; }; "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>;
|
|
1006
1006
|
}
|
|
1007
1007
|
|
|
1008
1008
|
declare class AXDataTableModule {
|
|
@@ -1012,4 +1012,4 @@ declare class AXDataTableModule {
|
|
|
1012
1012
|
}
|
|
1013
1013
|
|
|
1014
1014
|
export { AXBaseDataTable, AXBaseRowCommandColumnComponent, AXDataTableColumnComponent, AXDataTableColumnResizableDirective, AXDataTableComponent, AXDataTableModule, AXDataTableTextColumnComponent, AXRowCommandColumnComponent, AXRowDropdownCommandColumnComponent, AXRowExpandColumnComponent, AXRowIndexColumnComponent, AXRowSelectColumnComponent };
|
|
1015
|
-
export type { AXColumnsOrderChangedEvent,
|
|
1015
|
+
export type { AXColumnsOrderChangedEvent, AXDataTableLook, AXDataTableRowClick, AXDataTableRowDbClick, 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';
|
|
7
|
+
import { MXInputBaseValueComponent, MXLookComponent, AXEvent, AXFocusEvent, AXValueChangedEvent } from '@acorex/cdk/common';
|
|
5
8
|
import { MXCalendarBaseComponent, AXDateTimePickerType, AXCalendarNavigationLookType, 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>;
|
|
@@ -55,6 +73,12 @@ declare class AXDateTimeBoxComponent extends AXDateTimeBoxComponent_base {
|
|
|
55
73
|
* Day view navigation style of the embedded calendar.
|
|
56
74
|
*/
|
|
57
75
|
readonly calendarLook: _angular_core.InputSignal<AXCalendarNavigationLookType>;
|
|
76
|
+
/**
|
|
77
|
+
* Input style of the datetime box.
|
|
78
|
+
* - `default`: text input with calendar popup.
|
|
79
|
+
* - `classic`: inline select boxes for date/time parts.
|
|
80
|
+
*/
|
|
81
|
+
readonly boxLook: _angular_core.InputSignal<AXDateTimeBoxLookType>;
|
|
58
82
|
/**
|
|
59
83
|
* @deprecated use locale & mode instead
|
|
60
84
|
*/
|
|
@@ -62,10 +86,39 @@ declare class AXDateTimeBoxComponent extends AXDateTimeBoxComponent_base {
|
|
|
62
86
|
protected _editingDateObj: _angular_core.WritableSignal<Date>;
|
|
63
87
|
protected _calendarSystem: _angular_core.WritableSignal<string>;
|
|
64
88
|
private _format;
|
|
89
|
+
protected readonly _classicDateFields: _acorex_components_datetime_box.AXDateTimeBoxClassicField[];
|
|
90
|
+
protected readonly _classicTimeFields: _acorex_components_datetime_box.AXDateTimeBoxClassicField[];
|
|
91
|
+
private readonly _classicTimeOptions;
|
|
92
|
+
protected _classicDate: _angular_core.Signal<dist_packages_core_types_acorex_core_date_time.AXDateTime>;
|
|
93
|
+
protected _classicYearOptions: _angular_core.Signal<{
|
|
94
|
+
id: number;
|
|
95
|
+
text: string;
|
|
96
|
+
}[]>;
|
|
97
|
+
protected _classicMonthOptions: _angular_core.Signal<{
|
|
98
|
+
id: number;
|
|
99
|
+
text: string;
|
|
100
|
+
}[]>;
|
|
101
|
+
protected _classicDayOptions: _angular_core.Signal<{
|
|
102
|
+
id: number;
|
|
103
|
+
text: string;
|
|
104
|
+
}[]>;
|
|
105
|
+
protected get _classicBoxClass(): string;
|
|
106
|
+
protected get _classicHasDatePart(): boolean;
|
|
107
|
+
protected get _classicHasTimePart(): boolean;
|
|
65
108
|
/**
|
|
66
109
|
* @ignore
|
|
67
110
|
*/
|
|
68
|
-
protected
|
|
111
|
+
protected _classicPartValue(part: AXDateTimeBoxClassicPart): {
|
|
112
|
+
id: number;
|
|
113
|
+
text: string;
|
|
114
|
+
} | null;
|
|
115
|
+
/**
|
|
116
|
+
* @ignore
|
|
117
|
+
*/
|
|
118
|
+
protected _classicPartOptions(part: AXDateTimeBoxClassicPart): {
|
|
119
|
+
id: number;
|
|
120
|
+
text: string;
|
|
121
|
+
}[];
|
|
69
122
|
/**
|
|
70
123
|
* @ignore
|
|
71
124
|
*/
|
|
@@ -96,13 +149,21 @@ declare class AXDateTimeBoxComponent extends AXDateTimeBoxComponent_base {
|
|
|
96
149
|
* @ignore
|
|
97
150
|
*/
|
|
98
151
|
internalValueChanged(value: any): void;
|
|
152
|
+
/**
|
|
153
|
+
* @ignore
|
|
154
|
+
*/
|
|
155
|
+
protected _handleClassicPartChanged(e: AXValueChangedEvent, part: AXDateTimeBoxClassicPart): void;
|
|
156
|
+
/**
|
|
157
|
+
* @ignore
|
|
158
|
+
*/
|
|
159
|
+
private _readSelectValue;
|
|
99
160
|
/**
|
|
100
161
|
* @ignore
|
|
101
162
|
*/
|
|
102
163
|
protected _handleInputOnClick(): void;
|
|
103
164
|
private get __hostName();
|
|
104
165
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXDateTimeBoxComponent, never>;
|
|
105
|
-
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; }; "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>;
|
|
166
|
+
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; }; "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>;
|
|
106
167
|
}
|
|
107
168
|
|
|
108
169
|
declare class AXDateTimeBoxModule {
|
|
@@ -111,4 +172,5 @@ declare class AXDateTimeBoxModule {
|
|
|
111
172
|
static ɵinj: _angular_core.ɵɵInjectorDeclaration<AXDateTimeBoxModule>;
|
|
112
173
|
}
|
|
113
174
|
|
|
114
|
-
export { AXDateTimeBoxComponent, AXDateTimeBoxModule };
|
|
175
|
+
export { AXDateTimeBoxComponent, AXDateTimeBoxModule, AX_DATETIME_BOX_CLASSIC_DATE_FIELDS, AX_DATETIME_BOX_CLASSIC_TIME_FIELDS };
|
|
176
|
+
export type { AXDateTimeBoxClassicField, AXDateTimeBoxClassicPart, AXDateTimeBoxLookType };
|