@nanahoshi/mona-ui 0.19.0 → 0.20.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/THIRD_PARTY_NOTICES.md +60 -0
- package/fesm2022/nanahoshi-mona-ui-auto-complete.mjs +46 -36
- package/fesm2022/nanahoshi-mona-ui-calendar.mjs +120 -99
- package/fesm2022/nanahoshi-mona-ui-combo-box.mjs +109 -99
- package/fesm2022/nanahoshi-mona-ui-date-picker.mjs +19 -13
- package/fesm2022/nanahoshi-mona-ui-datetime-picker.mjs +27 -17
- package/fesm2022/nanahoshi-mona-ui-dropdown-list.mjs +37 -27
- package/fesm2022/nanahoshi-mona-ui-dropdowns.mjs +5 -4
- package/fesm2022/nanahoshi-mona-ui-editor.mjs +3 -3
- package/fesm2022/nanahoshi-mona-ui-filter.mjs +1 -1
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-footer-cell.component-Bg7rckst.mjs → nanahoshi-mona-ui-grid-grid-footer-cell.component-DLqCAee3.mjs} +2 -2
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-footer-table-cell.directive-BSSpaCLL.mjs → nanahoshi-mona-ui-grid-grid-footer-table-cell.directive-Bd2twji1.mjs} +2 -2
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-list.component-D9AwQFDV.mjs → nanahoshi-mona-ui-grid-grid-list.component-hakVMhqu.mjs} +5 -5
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-toggle.component-Byb9iTes.mjs → nanahoshi-mona-ui-grid-grid-toggle.component-CtEs5t9x.mjs} +28 -17
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-virtual-list.component-CBmdtrXm.mjs → nanahoshi-mona-ui-grid-grid-virtual-list.component-DoAGYLzr.mjs} +5 -5
- package/fesm2022/{nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-DPmJmCap.mjs → nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-BIK61ieq.mjs} +19 -10
- package/fesm2022/nanahoshi-mona-ui-grid.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-i18n.mjs +3722 -16
- package/fesm2022/nanahoshi-mona-ui-list-view.mjs +2 -2
- package/fesm2022/nanahoshi-mona-ui-locales.mjs +4973 -0
- package/fesm2022/nanahoshi-mona-ui-multi-select.mjs +46 -38
- package/fesm2022/nanahoshi-mona-ui-pager.mjs +23 -13
- package/fesm2022/nanahoshi-mona-ui-sheet.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-stepper.mjs +14 -5
- package/fesm2022/nanahoshi-mona-ui-time-picker.mjs +25 -16
- package/locales/package.json +4 -0
- package/package.json +5 -1
- package/types/nanahoshi-mona-ui-auto-complete.d.ts +19 -18
- package/types/nanahoshi-mona-ui-calendar.d.ts +25 -21
- package/types/nanahoshi-mona-ui-combo-box.d.ts +23 -22
- package/types/nanahoshi-mona-ui-date-picker.d.ts +7 -4
- package/types/nanahoshi-mona-ui-datetime-picker.d.ts +8 -5
- package/types/nanahoshi-mona-ui-dropdown-list.d.ts +18 -17
- package/types/nanahoshi-mona-ui-dropdowns.d.ts +6 -4
- package/types/nanahoshi-mona-ui-grid.d.ts +12 -1
- package/types/nanahoshi-mona-ui-i18n.d.ts +49 -2
- package/types/nanahoshi-mona-ui-locales.d.ts +4889 -0
- package/types/nanahoshi-mona-ui-multi-select.d.ts +20 -19
- package/types/nanahoshi-mona-ui-pager.d.ts +1 -0
- package/types/nanahoshi-mona-ui-stepper.d.ts +2 -1
- package/types/nanahoshi-mona-ui-time-picker.d.ts +4 -2
|
@@ -38,8 +38,8 @@ declare class ComboBoxComponent<TData = unknown, TValue = TData> implements Form
|
|
|
38
38
|
protected readonly activeDescendant: _angular_core.Signal<string | null>;
|
|
39
39
|
protected readonly affixClass: _angular_core.Signal<string>;
|
|
40
40
|
protected readonly baseClass: _angular_core.Signal<string>;
|
|
41
|
-
protected readonly comboBoxValue$: Subject<string | null>;
|
|
42
41
|
protected readonly comboBoxValue: _angular_core.WritableSignal<string>;
|
|
42
|
+
protected readonly comboBoxValue$: Subject<string | null>;
|
|
43
43
|
protected readonly effectiveAriaLabel: _angular_core.Signal<string>;
|
|
44
44
|
protected readonly expanded: _angular_core.Signal<boolean>;
|
|
45
45
|
protected readonly footerTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
@@ -53,7 +53,7 @@ declare class ComboBoxComponent<TData = unknown, TValue = TData> implements Form
|
|
|
53
53
|
protected readonly listPopupClass: _angular_core.Signal<string>;
|
|
54
54
|
protected readonly messages: _angular_core.Signal<_nanahoshi_mona_ui_i18n.MonaComboBoxMessages>;
|
|
55
55
|
protected readonly noDataTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
56
|
-
protected readonly popupTemplate: _angular_core.Signal<TemplateRef<
|
|
56
|
+
protected readonly popupTemplate: _angular_core.Signal<TemplateRef<unknown>>;
|
|
57
57
|
protected readonly prefixTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
58
58
|
protected readonly selectableOptions: SelectableOptions;
|
|
59
59
|
protected readonly selectedListItem: _angular_core.Signal<ListItem<any> | null>;
|
|
@@ -97,17 +97,17 @@ declare class ComboBoxComponent<TData = unknown, TValue = TData> implements Form
|
|
|
97
97
|
* @default false
|
|
98
98
|
*/
|
|
99
99
|
readonly disabled: _angular_core.ModelSignal<boolean>;
|
|
100
|
-
/**
|
|
101
|
-
* @description A predicate function or the name of the field that determines whether an item is disabled.
|
|
102
|
-
* @default undefined
|
|
103
|
-
*/
|
|
104
|
-
readonly itemDisabled: _angular_core.InputSignal<DropdownFieldPredicateType<TData>>;
|
|
105
100
|
/**
|
|
106
101
|
* @description Marks the combo box as invalid. When bound to a signal form field via `[formField]`,
|
|
107
102
|
* this is written by the `FormField` directive.
|
|
108
103
|
* @default false
|
|
109
104
|
*/
|
|
110
105
|
readonly invalid: _angular_core.InputSignal<boolean>;
|
|
106
|
+
/**
|
|
107
|
+
* @description A predicate function or the name of the field that determines whether an item is disabled.
|
|
108
|
+
* @default undefined
|
|
109
|
+
*/
|
|
110
|
+
readonly itemDisabled: _angular_core.InputSignal<DropdownFieldPredicateType<TData>>;
|
|
111
111
|
/**
|
|
112
112
|
* @description Displays a loading indicator and prevents interaction while an operation is in progress.
|
|
113
113
|
* @default false
|
|
@@ -188,6 +188,14 @@ declare class ComboBoxComponent<TData = unknown, TValue = TData> implements Form
|
|
|
188
188
|
* @default ""
|
|
189
189
|
*/
|
|
190
190
|
readonly userClass: _angular_core.InputSignal<string>;
|
|
191
|
+
/**
|
|
192
|
+
* @description Two-way bindable current selected value. Implements `FormValueControl<TValue | null>`,
|
|
193
|
+
* enabling signal forms `[formField]` binding.
|
|
194
|
+
* Object mode returns the selected data item; primitive mode (see {@link valuePrimitive}) returns the value
|
|
195
|
+
* resolved through {@link valueField}. `null` represents no selection.
|
|
196
|
+
* @default null
|
|
197
|
+
*/
|
|
198
|
+
readonly value: _angular_core.ModelSignal<TValue | null>;
|
|
191
199
|
/**
|
|
192
200
|
* @description Emitted with the entered text when the user presses Enter on unmatched input.
|
|
193
201
|
* Only emitted when {@link allowCustomValue} is true.
|
|
@@ -212,38 +220,31 @@ declare class ComboBoxComponent<TData = unknown, TValue = TData> implements Form
|
|
|
212
220
|
* @default false
|
|
213
221
|
*/
|
|
214
222
|
readonly valuePrimitive: _angular_core.InputSignal<boolean>;
|
|
215
|
-
/**
|
|
216
|
-
* @description Two-way bindable current selected value. Implements `FormValueControl<TValue | null>`,
|
|
217
|
-
* enabling signal forms `[formField]` binding.
|
|
218
|
-
* Object mode returns the selected data item; primitive mode (see {@link valuePrimitive}) returns the value
|
|
219
|
-
* resolved through {@link valueField}. `null` represents no selection.
|
|
220
|
-
* @default null
|
|
221
|
-
*/
|
|
222
|
-
readonly value: _angular_core.ModelSignal<TValue | null>;
|
|
223
223
|
constructor();
|
|
224
|
-
|
|
224
|
+
focus(): void;
|
|
225
|
+
protected onInputBlur(event: FocusEvent): void;
|
|
225
226
|
protected onItemSelect(event: SelectionChangeEvent<TData>): void;
|
|
227
|
+
protected onPopupPointerDown(event: PointerEvent): void;
|
|
226
228
|
protected onValueClear(event: Event): void;
|
|
227
229
|
private clear;
|
|
228
230
|
private closePopup;
|
|
229
|
-
|
|
231
|
+
private getControlValue;
|
|
232
|
+
private handleEnterKey;
|
|
230
233
|
private initialize;
|
|
231
234
|
private notifyFilterChange;
|
|
235
|
+
private selectItem;
|
|
232
236
|
private setArrowNavigationSubscription;
|
|
233
237
|
private setComboboxValueSubscription;
|
|
234
|
-
private handleEnterKey;
|
|
235
|
-
private selectItem;
|
|
236
238
|
private setEscapeKeySubscription;
|
|
237
239
|
private setKeydownSubscription;
|
|
238
240
|
private setNavigatedItemSubscription;
|
|
239
241
|
private setPopupCloseSubscriptions;
|
|
240
242
|
private setSpaceKeySubscription;
|
|
241
243
|
private setSubscriptions;
|
|
242
|
-
private updateValue;
|
|
243
|
-
private getControlValue;
|
|
244
244
|
private synchronizeSelection;
|
|
245
|
+
private updateValue;
|
|
245
246
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ComboBoxComponent<any, any>, never>;
|
|
246
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ComboBoxComponent<any, any>, "mona-combo-box", never, { "allowCustomValue": { "alias": "allowCustomValue"; "required": false; "isSignal": true; }; "ariaDescribedBy": { "alias": "aria-describedby"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "
|
|
247
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ComboBoxComponent<any, any>, "mona-combo-box", never, { "allowCustomValue": { "alias": "allowCustomValue"; "required": false; "isSignal": true; }; "ariaDescribedBy": { "alias": "aria-describedby"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "itemDisabled": { "alias": "itemDisabled"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "popupClass": { "alias": "popupClass"; "required": false; "isSignal": true; }; "popupHeight": { "alias": "popupHeight"; "required": false; "isSignal": true; }; "popupWidth": { "alias": "popupWidth"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "showClearButton": { "alias": "showClearButton"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "textField": { "alias": "textField"; "required": false; "isSignal": true; }; "touched": { "alias": "touched"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "valueField": { "alias": "valueField"; "required": false; "isSignal": true; }; "valuePrimitive": { "alias": "valuePrimitive"; "required": false; "isSignal": true; }; }, { "close": "close"; "closed": "closed"; "disabled": "disabledChange"; "open": "open"; "opened": "opened"; "touch": "touch"; "value": "valueChange"; "valueAdd": "valueAdd"; }, ["footerTemplate", "groupHeaderTemplate", "headerTemplate", "itemTemplate", "noDataTemplate", "prefixTemplate"], never, true, [{ directive: typeof i1.DropdownDataHandlerDirective; inputs: {}; outputs: {}; }, { directive: typeof i1.DropdownListPopupHandlerDirective; inputs: {}; outputs: {}; }]>;
|
|
247
248
|
}
|
|
248
249
|
|
|
249
250
|
declare const COMBO_BOX_DEFAULT_MESSAGES: MonaComboBoxMessages;
|
|
@@ -29,6 +29,7 @@ declare class DatePickerComponent implements FormValueControl<Date | null>, Drop
|
|
|
29
29
|
protected readonly baseClass: _angular_core.Signal<string>;
|
|
30
30
|
protected readonly currentDateString: _angular_core.WritableSignal<string>;
|
|
31
31
|
protected readonly decadeCellTemplate: _angular_core.Signal<CalendarDecadeCellTemplateDirective | undefined>;
|
|
32
|
+
protected readonly effectiveFormat: _angular_core.Signal<string>;
|
|
32
33
|
protected readonly expanded: _angular_core.Signal<boolean>;
|
|
33
34
|
protected readonly inputAttributes: _angular_core.Signal<AttributeConfig>;
|
|
34
35
|
protected readonly invalidState: _angular_core.Signal<boolean>;
|
|
@@ -58,13 +59,15 @@ declare class DatePickerComponent implements FormValueControl<Date | null>, Drop
|
|
|
58
59
|
*/
|
|
59
60
|
readonly disabledDates: _angular_core.InputSignal<DateDisabledType>;
|
|
60
61
|
/**
|
|
61
|
-
* @description Sets the first day of the week.
|
|
62
|
+
* @description Sets the first day of the week. If not specified, derives from the active locale.
|
|
63
|
+
* @default null
|
|
62
64
|
*/
|
|
63
|
-
readonly firstDay: _angular_core.InputSignal<FirstDayOfWeek>;
|
|
65
|
+
readonly firstDay: _angular_core.InputSignal<FirstDayOfWeek | null>;
|
|
64
66
|
/**
|
|
65
|
-
* @description Sets the date format of the date picker.
|
|
67
|
+
* @description Sets the date format of the date picker. If not specified, derives from the active locale.
|
|
68
|
+
* @default null
|
|
66
69
|
*/
|
|
67
|
-
readonly format: _angular_core.InputSignal<string>;
|
|
70
|
+
readonly format: _angular_core.InputSignal<string | null>;
|
|
68
71
|
/**
|
|
69
72
|
* @description Marks the date picker as invalid. When bound to a signal form field via `[formField]`,
|
|
70
73
|
* this is written by the `FormField` directive.
|
|
@@ -18,16 +18,17 @@ type ActiveView = "date" | "time";
|
|
|
18
18
|
|
|
19
19
|
declare class DateTimePickerComponent implements FormValueControl<Date | null>, DropdownPopupInput {
|
|
20
20
|
#private;
|
|
21
|
-
protected readonly isRtl: _angular_core.Signal<boolean>;
|
|
22
21
|
protected readonly activeView: _angular_core.WritableSignal<ActiveView>;
|
|
23
22
|
protected readonly baseClass: _angular_core.Signal<string>;
|
|
24
23
|
protected readonly currentDateString: _angular_core.WritableSignal<string>;
|
|
25
24
|
protected readonly decadeCellTemplate: _angular_core.Signal<CalendarDecadeCellTemplateDirective | undefined>;
|
|
25
|
+
protected readonly effectiveFormat: _angular_core.Signal<string>;
|
|
26
26
|
protected readonly expanded: _angular_core.Signal<boolean>;
|
|
27
27
|
protected readonly footerClass: _angular_core.Signal<string>;
|
|
28
28
|
protected readonly headerClass: _angular_core.Signal<string>;
|
|
29
29
|
protected readonly inputAttributes: _angular_core.Signal<AttributeConfig>;
|
|
30
30
|
protected readonly invalidState: _angular_core.Signal<boolean>;
|
|
31
|
+
protected readonly isRtl: _angular_core.Signal<boolean>;
|
|
31
32
|
protected readonly messages: _angular_core.Signal<_nanahoshi_mona_ui_i18n.MonaDateTimePickerMessages>;
|
|
32
33
|
protected readonly monthCellTemplate: _angular_core.Signal<CalendarMonthCellTemplateDirective | undefined>;
|
|
33
34
|
protected readonly navigatedDate: _angular_core.WritableSignal<Date>;
|
|
@@ -56,13 +57,15 @@ declare class DateTimePickerComponent implements FormValueControl<Date | null>,
|
|
|
56
57
|
*/
|
|
57
58
|
readonly disabledDates: _angular_core.InputSignal<DateDisabledType>;
|
|
58
59
|
/**
|
|
59
|
-
* @description Sets the first day of the week.
|
|
60
|
+
* @description Sets the first day of the week. If not specified, derives from the active locale.
|
|
61
|
+
* @default null
|
|
60
62
|
*/
|
|
61
|
-
readonly firstDay: _angular_core.InputSignal<FirstDayOfWeek>;
|
|
63
|
+
readonly firstDay: _angular_core.InputSignal<FirstDayOfWeek | null>;
|
|
62
64
|
/**
|
|
63
|
-
* @description Sets the date format of the date time picker.
|
|
65
|
+
* @description Sets the date format of the date time picker. If not specified, derives from the active locale, hourFormat, and showSeconds.
|
|
66
|
+
* @default null
|
|
64
67
|
*/
|
|
65
|
-
readonly format: _angular_core.InputSignal<string>;
|
|
68
|
+
readonly format: _angular_core.InputSignal<string | null>;
|
|
66
69
|
/**
|
|
67
70
|
* @description Sets the hour format of the time picker.
|
|
68
71
|
* @default 24
|
|
@@ -44,14 +44,14 @@ declare class DropdownListComponent<TData = unknown, TValue = TData> implements
|
|
|
44
44
|
protected readonly footerTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
45
45
|
protected readonly groupHeaderTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
46
46
|
protected readonly headerTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
47
|
-
protected readonly itemTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
48
47
|
protected readonly invalidState: _angular_core.Signal<boolean>;
|
|
49
48
|
protected readonly isEmpty: _angular_core.Signal<boolean>;
|
|
49
|
+
protected readonly itemTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
50
50
|
protected readonly listId: string;
|
|
51
51
|
protected readonly listPopupClass: _angular_core.Signal<string>;
|
|
52
52
|
protected readonly messages: _angular_core.Signal<_nanahoshi_mona_ui_i18n.MonaDropdownListMessages>;
|
|
53
53
|
protected readonly noDataTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
54
|
-
protected readonly popupTemplate: _angular_core.Signal<TemplateRef<
|
|
54
|
+
protected readonly popupTemplate: _angular_core.Signal<TemplateRef<unknown>>;
|
|
55
55
|
protected readonly prefixTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
56
56
|
protected readonly selectableOptions: SelectableOptions;
|
|
57
57
|
protected readonly selectedDataItem: _angular_core.Signal<NonNullable<TData> | null>;
|
|
@@ -88,16 +88,16 @@ declare class DropdownListComponent<TData = unknown, TValue = TData> implements
|
|
|
88
88
|
* @default false
|
|
89
89
|
*/
|
|
90
90
|
readonly disabled: _angular_core.ModelSignal<boolean>;
|
|
91
|
-
/**
|
|
92
|
-
* @description Predicate or field name used to determine whether an individual item is disabled.
|
|
93
|
-
* @default undefined
|
|
94
|
-
*/
|
|
95
|
-
readonly itemDisabled: _angular_core.InputSignal<DropdownFieldPredicateType<TData>>;
|
|
96
91
|
/**
|
|
97
92
|
* @description Marks the field as invalid. Set automatically by the `FormField` directive when bound via `[formField]`.
|
|
98
93
|
* @default false
|
|
99
94
|
*/
|
|
100
95
|
readonly invalid: _angular_core.InputSignal<boolean>;
|
|
96
|
+
/**
|
|
97
|
+
* @description Predicate or field name used to determine whether an individual item is disabled.
|
|
98
|
+
* @default undefined
|
|
99
|
+
*/
|
|
100
|
+
readonly itemDisabled: _angular_core.InputSignal<DropdownFieldPredicateType<TData>>;
|
|
101
101
|
/**
|
|
102
102
|
* @description Displays a loading indicator and prevents interaction while an operation is in progress.
|
|
103
103
|
* @default false
|
|
@@ -177,6 +177,13 @@ declare class DropdownListComponent<TData = unknown, TValue = TData> implements
|
|
|
177
177
|
* @default ""
|
|
178
178
|
*/
|
|
179
179
|
readonly userClass: _angular_core.InputSignal<string>;
|
|
180
|
+
/**
|
|
181
|
+
* @description Currently selected value, two-way bindable and compatible with Signal Forms via `[formField]`.
|
|
182
|
+
* Object mode returns the selected data item; primitive mode (see {@link valuePrimitive}) returns the value
|
|
183
|
+
* resolved through {@link valueField}. `null` represents no selection.
|
|
184
|
+
* @default null
|
|
185
|
+
*/
|
|
186
|
+
readonly value: _angular_core.ModelSignal<TValue | null>;
|
|
180
187
|
/**
|
|
181
188
|
* @description Property name or accessor used to derive the value from a data item.
|
|
182
189
|
* It is used for stable item identity, matching externally supplied values, and primitive
|
|
@@ -196,21 +203,15 @@ declare class DropdownListComponent<TData = unknown, TValue = TData> implements
|
|
|
196
203
|
* @default false
|
|
197
204
|
*/
|
|
198
205
|
readonly valuePrimitive: _angular_core.InputSignal<boolean>;
|
|
199
|
-
/**
|
|
200
|
-
* @description Currently selected value, two-way bindable and compatible with Signal Forms via `[formField]`.
|
|
201
|
-
* Object mode returns the selected data item; primitive mode (see {@link valuePrimitive}) returns the value
|
|
202
|
-
* resolved through {@link valueField}. `null` represents no selection.
|
|
203
|
-
* @default null
|
|
204
|
-
*/
|
|
205
|
-
readonly value: _angular_core.ModelSignal<TValue | null>;
|
|
206
206
|
constructor();
|
|
207
|
+
focus(): void;
|
|
207
208
|
setValue(value: TValue): void;
|
|
208
|
-
protected onBlur(): void;
|
|
209
|
+
protected onBlur(event?: FocusEvent): void;
|
|
209
210
|
protected onItemSelect(event: SelectionChangeEvent<TData>): void;
|
|
211
|
+
protected onPopupPointerDown(event: PointerEvent): void;
|
|
210
212
|
protected onValueClear(event: MouseEvent | KeyboardEvent): void;
|
|
211
213
|
private closePopup;
|
|
212
214
|
private cycleThroughMatchedItems;
|
|
213
|
-
focus(): void;
|
|
214
215
|
private getControlValue;
|
|
215
216
|
private handleEnterKey;
|
|
216
217
|
private handleHomeEndKeys;
|
|
@@ -225,7 +226,7 @@ declare class DropdownListComponent<TData = unknown, TValue = TData> implements
|
|
|
225
226
|
private synchronizeSelection;
|
|
226
227
|
private updateValue;
|
|
227
228
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DropdownListComponent<any, any>, never>;
|
|
228
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DropdownListComponent<any, any>, "mona-dropdown-list", never, { "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "
|
|
229
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DropdownListComponent<any, any>, "mona-dropdown-list", never, { "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "itemDisabled": { "alias": "itemDisabled"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "popupClass": { "alias": "popupClass"; "required": false; "isSignal": true; }; "popupHeight": { "alias": "popupHeight"; "required": false; "isSignal": true; }; "popupWidth": { "alias": "popupWidth"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "showClearButton": { "alias": "showClearButton"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "textField": { "alias": "textField"; "required": false; "isSignal": true; }; "touched": { "alias": "touched"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "valueField": { "alias": "valueField"; "required": false; "isSignal": true; }; "valuePrimitive": { "alias": "valuePrimitive"; "required": false; "isSignal": true; }; }, { "close": "close"; "closed": "closed"; "disabled": "disabledChange"; "open": "open"; "opened": "opened"; "touch": "touch"; "value": "valueChange"; }, ["footerTemplate", "groupHeaderTemplate", "headerTemplate", "itemTemplate", "noDataTemplate", "prefixTemplate", "valueTemplate"], never, true, [{ directive: typeof i1.DropdownDataHandlerDirective; inputs: {}; outputs: {}; }, { directive: typeof i1.DropdownListPopupHandlerDirective; inputs: {}; outputs: {}; }]>;
|
|
229
230
|
}
|
|
230
231
|
|
|
231
232
|
declare class DropdownListValueTemplateDirective {
|
|
@@ -28,11 +28,12 @@ interface DropdownPopupInput {
|
|
|
28
28
|
readonly disabled: InputSignal<boolean>;
|
|
29
29
|
readonly open: OutputEmitterRef<PreventableEvent>;
|
|
30
30
|
readonly opened: OutputEmitterRef<void>;
|
|
31
|
-
readonly readonly: InputSignal<boolean>;
|
|
32
31
|
readonly popupHeight: InputSignal<ListSizeInputType>;
|
|
33
32
|
readonly popupWidth: InputSignal<ListSizeInputType>;
|
|
33
|
+
readonly readonly: InputSignal<boolean>;
|
|
34
|
+
readonly touch: OutputEmitterRef<void>;
|
|
34
35
|
}
|
|
35
|
-
declare const
|
|
36
|
+
declare const DROPDOWN_POPUP_INPUT_TOKEN: InjectionToken<DropdownPopupInput>;
|
|
36
37
|
|
|
37
38
|
declare class DropdownFilterableDirective<TData> {
|
|
38
39
|
#private;
|
|
@@ -148,8 +149,9 @@ declare class DropdownService {
|
|
|
148
149
|
readonly popupCloseStart$: Subject<PopupCloseEvent<unknown>>;
|
|
149
150
|
readonly popupOpenComplete$: Subject<void>;
|
|
150
151
|
readonly popupRef: i0.WritableSignal<PopupRef | null>;
|
|
151
|
-
readonly popupTemplate: i0.WritableSignal<TemplateRef<
|
|
152
|
+
readonly popupTemplate: i0.WritableSignal<TemplateRef<unknown> | null>;
|
|
152
153
|
readonly restoreFocus: i0.WritableSignal<boolean | "auto">;
|
|
154
|
+
readonly touch$: Subject<void>;
|
|
153
155
|
readonly triggerPopupOpen$: Subject<Partial<PopupSettings<unknown, void>>>;
|
|
154
156
|
readonly triggerPopupToggle$: Subject<Partial<PopupSettings<unknown, void>>>;
|
|
155
157
|
static getDefaultPositions(): ConnectionPositionPair[];
|
|
@@ -174,5 +176,5 @@ type DropdownPopupVariantInput = VariantInputs<DropdownPopupVariantProps>;
|
|
|
174
176
|
|
|
175
177
|
declare const DROPDOWNS_DEFAULT_MESSAGES: MonaDropdownsMessages;
|
|
176
178
|
|
|
177
|
-
export { DROPDOWNS_DEFAULT_MESSAGES, DropdownDataHandlerDirective, DropdownDataInputToken, DropdownFilterableDirective, DropdownFooterTemplateDirective, DropdownGroupHeaderTemplateDirective, DropdownGroupableDirective, DropdownHeaderTemplateDirective, DropdownItemTemplateDirective, DropdownListPopupHandlerDirective, DropdownListService, DropdownLiveRegionDirective, DropdownNoDataTemplateDirective, DropdownPopupHandlerDirective,
|
|
179
|
+
export { DROPDOWNS_DEFAULT_MESSAGES, DROPDOWN_POPUP_INPUT_TOKEN, DropdownDataHandlerDirective, DropdownDataInputToken, DropdownFilterableDirective, DropdownFooterTemplateDirective, DropdownGroupHeaderTemplateDirective, DropdownGroupableDirective, DropdownHeaderTemplateDirective, DropdownItemTemplateDirective, DropdownListPopupHandlerDirective, DropdownListService, DropdownLiveRegionDirective, DropdownNoDataTemplateDirective, DropdownPopupHandlerDirective, DropdownPrefixTemplateDirective, DropdownService, DropdownSuffixTemplateDirective, DropdownVirtualScrollDirective, dropdownPopupThemeVariants };
|
|
178
180
|
export type { DropdownDataInput, DropdownFieldPredicateType, DropdownFieldSelectorType, DropdownPopupInput, DropdownPopupVariantInput, DropdownPopupVariantProps };
|
|
@@ -514,7 +514,9 @@ interface RowReorderableOptions {
|
|
|
514
514
|
*/
|
|
515
515
|
enabled?: boolean;
|
|
516
516
|
/**
|
|
517
|
-
* Returns the accessible label for a row's reorder handle.
|
|
517
|
+
* Returns the accessible label fragment for a row's reorder handle.
|
|
518
|
+
* Locale-aware composition supplies sentence punctuation, keyboard instructions,
|
|
519
|
+
* and disabled reasons around this fragment.
|
|
518
520
|
*
|
|
519
521
|
* The default must be positional, such as:
|
|
520
522
|
* "Reorder row 3"
|
|
@@ -1298,7 +1300,16 @@ declare const GRID_DEFAULT_MESSAGES: {
|
|
|
1298
1300
|
reorderRow: (rowNumber: number) => string;
|
|
1299
1301
|
resizeColumn: string;
|
|
1300
1302
|
rowReorder: string;
|
|
1303
|
+
rowReorderDisabled: string;
|
|
1304
|
+
rowReorderDisabledEditing: string;
|
|
1305
|
+
rowReorderDisabledFiltered: string;
|
|
1306
|
+
rowReorderDisabledGrouped: string;
|
|
1307
|
+
rowReorderDisabledSingleRow: string;
|
|
1308
|
+
rowReorderDisabledSorted: string;
|
|
1309
|
+
rowReorderDisabledVirtualScroll: string;
|
|
1310
|
+
rowReorderHandleAriaLabel: (rowLabel: string, keyboardHint: string, disabledReason?: string) => string;
|
|
1301
1311
|
rowReorderKeyboardHint: string;
|
|
1312
|
+
rowReorderMoved: (fromRowNumber: number, toPosition: number) => string;
|
|
1302
1313
|
rowValidationError: string;
|
|
1303
1314
|
save: string;
|
|
1304
1315
|
saveRow: string;
|
|
@@ -252,7 +252,16 @@ interface MonaGridMessages {
|
|
|
252
252
|
reorderRow(rowNumber: number): string;
|
|
253
253
|
readonly resizeColumn: string;
|
|
254
254
|
readonly rowReorder: string;
|
|
255
|
+
readonly rowReorderDisabled: string;
|
|
256
|
+
readonly rowReorderDisabledEditing: string;
|
|
257
|
+
readonly rowReorderDisabledFiltered: string;
|
|
258
|
+
readonly rowReorderDisabledGrouped: string;
|
|
259
|
+
readonly rowReorderDisabledSingleRow: string;
|
|
260
|
+
readonly rowReorderDisabledSorted: string;
|
|
261
|
+
readonly rowReorderDisabledVirtualScroll: string;
|
|
262
|
+
rowReorderHandleAriaLabel(rowLabel: string, keyboardHint: string, disabledReason?: string): string;
|
|
255
263
|
readonly rowReorderKeyboardHint: string;
|
|
264
|
+
rowReorderMoved(fromRowNumber: number, toPosition: number): string;
|
|
256
265
|
readonly rowValidationError: string;
|
|
257
266
|
readonly save: string;
|
|
258
267
|
readonly saveRow: string;
|
|
@@ -595,12 +604,50 @@ declare function gregorianDateTimeFromObject(obj: {
|
|
|
595
604
|
* Formats a date using locale-native token ordering and explicit Gregorian calendar.
|
|
596
605
|
*/
|
|
597
606
|
declare function formatGregorianDateToLocaleString(date: Date, localeId: string, options: Intl.DateTimeFormatOptions): string;
|
|
607
|
+
/**
|
|
608
|
+
* Regular expression matching Unicode bidirectional formatting controls
|
|
609
|
+
* (such as LRM, RLM, ALM, embeddings, overrides, and isolates).
|
|
610
|
+
*/
|
|
611
|
+
declare const BIDI_CONTROL_REGEX: RegExp;
|
|
612
|
+
/**
|
|
613
|
+
* Strips Unicode bidirectional formatting controls from a string.
|
|
614
|
+
*/
|
|
615
|
+
declare function stripBidiControls(value: string): string;
|
|
616
|
+
/**
|
|
617
|
+
* Sanitizes date/time text by stripping invisible bidi controls and
|
|
618
|
+
* normalizing typographic/non-breaking spaces to standard ASCII spaces.
|
|
619
|
+
*/
|
|
620
|
+
declare function sanitizeDateText(value: string): string;
|
|
598
621
|
/**
|
|
599
622
|
* Parses a date string using the specified format and locale, forcing Gregorian calendar.
|
|
600
623
|
* Localized digits are normalized first to support locales that use native numbering systems.
|
|
601
624
|
*/
|
|
602
625
|
declare function parseGregorianDate(text: string, format: string, localeId: string): DateTime;
|
|
603
626
|
|
|
627
|
+
type LocaleFirstDayOfWeek = "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday";
|
|
628
|
+
|
|
629
|
+
interface LocaleTimeFormatOptions {
|
|
630
|
+
readonly hourFormat?: "12" | "24";
|
|
631
|
+
readonly showSeconds?: boolean;
|
|
632
|
+
}
|
|
633
|
+
/**
|
|
634
|
+
* Derives a localized numeric date format (e.g. "yyyy/MM/dd" or "dd/MM/yyyy") for the given locale.
|
|
635
|
+
*/
|
|
636
|
+
declare function getLocaleDateInputFormat(localeId: string): string;
|
|
637
|
+
/**
|
|
638
|
+
* Derives a localized time format (e.g. "HH:mm", "ahh:mm", "hh:mm a") for the given locale.
|
|
639
|
+
*/
|
|
640
|
+
declare function getLocaleTimeInputFormat(localeId: string, options?: LocaleTimeFormatOptions): string;
|
|
641
|
+
/**
|
|
642
|
+
* Derives a localized date-time format for the given locale.
|
|
643
|
+
*/
|
|
644
|
+
declare function getLocaleDateTimeInputFormat(localeId: string, options?: LocaleTimeFormatOptions): string;
|
|
645
|
+
/**
|
|
646
|
+
* Resolves the first day of the week for the given locale using Intl.Locale.weekInfo,
|
|
647
|
+
* Intl.Locale.getWeekInfo(), or CLDR fallbacks.
|
|
648
|
+
*/
|
|
649
|
+
declare function getLocaleFirstDayOfWeek(localeId: string): LocaleFirstDayOfWeek;
|
|
650
|
+
|
|
604
651
|
interface PseudoLocalizationOptions {
|
|
605
652
|
readonly prefix?: string;
|
|
606
653
|
readonly suffix?: string;
|
|
@@ -629,5 +676,5 @@ declare function pseudoLocalizeCatalog<T extends object>(catalog: T, options?: P
|
|
|
629
676
|
*/
|
|
630
677
|
declare function generatePseudoLocale(catalogs: DeepPartial<MonaLocaleMessages>, options?: GeneratePseudoLocaleOptions): MonaLocale;
|
|
631
678
|
|
|
632
|
-
export { MONA_DEFAULT_LOCALE, MONA_I18N_CONFIG, MonaDirectionService, MonaI18nService, formatGregorianDateToLocaleString, formatNumber, generatePseudoLocale, getNumberFormatter, getNumberGroupingPattern, getNumberSymbols, gregorianDateTime, gregorianDateTimeFromObject, injectComponentDirection, mergeMessages, mergeTwo, normalizeGregorianLocale, normalizeLocalizedDigits, normalizeLocalizedInput, normalizeLocalizedMinus, observeComponentDirection, parseGregorianDate, parseLocalizedNumber, provideMonaI18n, pseudoLocalize, pseudoLocalizeCatalog, resolveComponentDirection, validateLocalizedNumber, validateLocalizedNumberEdit };
|
|
633
|
-
export type { CalendarMessages, DatePickerMessages, DateTimePickerMessages, DeepPartial, DialogMessages, DirectionObserverHandle, FilterMessages, GeneratePseudoLocaleOptions, LocalizedNumberEditValidationResult, LocalizedNumberParseMode, LocalizedNumberValidationResult, MonaAutoCompleteMessages, MonaBreadcrumbMessages, MonaButtonGroupMessages, MonaCalendarMessages, MonaCardMessages, MonaChartMessages, MonaChipMessages, MonaColorGradientMessages, MonaColorPaletteMessages, MonaColorPickerMessages, MonaComboBoxMessages, MonaDatePickerMessages, MonaDateTimePickerMessages, MonaDialogMessages, MonaDropdownListMessages, MonaDropdownsMessages, MonaEditorMessages, MonaFilterMessages, MonaGridMessages, MonaI18nConfig, MonaListBoxMessages, MonaListMessages, MonaLocale, MonaLocaleMessages, MonaMessageNamespace, MonaMultiSelectMessages, MonaNotificationMessages, MonaNumericTextBoxMessages, MonaOtpInputMessages, MonaPagerMessages, MonaRatingMessages, MonaScrollViewMessages, MonaSheetMessages, MonaSliderMessages, MonaSpinnerMessages, MonaSplitButtonMessages, MonaSplitterMessages, MonaStepperMessages, MonaTabsMessages, MonaTextBoxMessages, MonaTextDirection, MonaTimePickerMessages, MonaTimeSelectorMessages, MonaTreeViewMessages, MonaWindowMessages, NotificationMessages, NumberGroupingPattern, NumberSymbols, ParseLocalizedNumberOptions, PseudoLocalizationOptions, SheetMessages, TimePickerMessages, TimeSelectorMessages, ValidateLocalizedNumberEditOptions, WindowMessages };
|
|
679
|
+
export { BIDI_CONTROL_REGEX, MONA_DEFAULT_LOCALE, MONA_I18N_CONFIG, MonaDirectionService, MonaI18nService, formatGregorianDateToLocaleString, formatNumber, generatePseudoLocale, getLocaleDateInputFormat, getLocaleDateTimeInputFormat, getLocaleFirstDayOfWeek, getLocaleTimeInputFormat, getNumberFormatter, getNumberGroupingPattern, getNumberSymbols, gregorianDateTime, gregorianDateTimeFromObject, injectComponentDirection, mergeMessages, mergeTwo, normalizeGregorianLocale, normalizeLocalizedDigits, normalizeLocalizedInput, normalizeLocalizedMinus, observeComponentDirection, parseGregorianDate, parseLocalizedNumber, provideMonaI18n, pseudoLocalize, pseudoLocalizeCatalog, resolveComponentDirection, sanitizeDateText, stripBidiControls, validateLocalizedNumber, validateLocalizedNumberEdit };
|
|
680
|
+
export type { CalendarMessages, DatePickerMessages, DateTimePickerMessages, DeepPartial, DialogMessages, DirectionObserverHandle, FilterMessages, GeneratePseudoLocaleOptions, LocaleFirstDayOfWeek, LocaleTimeFormatOptions, LocalizedNumberEditValidationResult, LocalizedNumberParseMode, LocalizedNumberValidationResult, MonaAutoCompleteMessages, MonaBreadcrumbMessages, MonaButtonGroupMessages, MonaCalendarMessages, MonaCardMessages, MonaChartMessages, MonaChipMessages, MonaColorGradientMessages, MonaColorPaletteMessages, MonaColorPickerMessages, MonaComboBoxMessages, MonaDatePickerMessages, MonaDateTimePickerMessages, MonaDialogMessages, MonaDropdownListMessages, MonaDropdownsMessages, MonaEditorMessages, MonaFilterMessages, MonaGridMessages, MonaI18nConfig, MonaListBoxMessages, MonaListMessages, MonaLocale, MonaLocaleMessages, MonaMessageNamespace, MonaMultiSelectMessages, MonaNotificationMessages, MonaNumericTextBoxMessages, MonaOtpInputMessages, MonaPagerMessages, MonaRatingMessages, MonaScrollViewMessages, MonaSheetMessages, MonaSliderMessages, MonaSpinnerMessages, MonaSplitButtonMessages, MonaSplitterMessages, MonaStepperMessages, MonaTabsMessages, MonaTextBoxMessages, MonaTextDirection, MonaTimePickerMessages, MonaTimeSelectorMessages, MonaTreeViewMessages, MonaWindowMessages, NotificationMessages, NumberGroupingPattern, NumberSymbols, ParseLocalizedNumberOptions, PseudoLocalizationOptions, SheetMessages, TimePickerMessages, TimeSelectorMessages, ValidateLocalizedNumberEditOptions, WindowMessages };
|