@nanahoshi/mona-ui 0.20.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/fesm2022/nanahoshi-mona-ui-auto-complete.mjs +46 -36
- package/fesm2022/nanahoshi-mona-ui-combo-box.mjs +109 -99
- package/fesm2022/nanahoshi-mona-ui-date-picker.mjs +3 -3
- package/fesm2022/nanahoshi-mona-ui-datetime-picker.mjs +3 -3
- 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-BuybF7tX.mjs → nanahoshi-mona-ui-grid-grid-footer-cell.component-DLqCAee3.mjs} +2 -2
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-footer-table-cell.directive-Dj-SaNzk.mjs → nanahoshi-mona-ui-grid-grid-footer-table-cell.directive-Bd2twji1.mjs} +2 -2
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-list.component-CYAm4l84.mjs → nanahoshi-mona-ui-grid-grid-list.component-hakVMhqu.mjs} +5 -5
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-toggle.component-B_Gm--X6.mjs → nanahoshi-mona-ui-grid-grid-toggle.component-CtEs5t9x.mjs} +2 -2
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-virtual-list.component-X0X487Rm.mjs → nanahoshi-mona-ui-grid-grid-virtual-list.component-DoAGYLzr.mjs} +5 -5
- package/fesm2022/{nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-CyzJFQIy.mjs → nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-BIK61ieq.mjs} +10 -10
- package/fesm2022/nanahoshi-mona-ui-grid.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-list-view.mjs +2 -2
- package/fesm2022/nanahoshi-mona-ui-multi-select.mjs +46 -38
- package/fesm2022/nanahoshi-mona-ui-pager.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-sheet.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-time-picker.mjs +3 -3
- package/package.json +1 -1
- package/types/nanahoshi-mona-ui-auto-complete.d.ts +19 -18
- package/types/nanahoshi-mona-ui-combo-box.d.ts +23 -22
- 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-multi-select.d.ts +20 -19
|
@@ -47,21 +47,21 @@ declare class MultiSelectComponent<TData = unknown, TValue = TData> implements F
|
|
|
47
47
|
protected readonly footerTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
48
48
|
protected readonly groupHeaderTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
49
49
|
protected readonly headerTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
50
|
-
protected readonly invalidState: _angular_core.Signal<boolean>;
|
|
51
50
|
protected readonly indicatorClass: _angular_core.Signal<string>;
|
|
51
|
+
protected readonly invalidState: _angular_core.Signal<boolean>;
|
|
52
52
|
protected readonly itemContainerClass: _angular_core.Signal<string>;
|
|
53
53
|
protected readonly itemTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
54
54
|
protected readonly listId: string;
|
|
55
55
|
protected readonly listPopupClass: _angular_core.Signal<string>;
|
|
56
56
|
protected readonly messages: _angular_core.Signal<_nanahoshi_mona_ui_i18n.MonaMultiSelectMessages>;
|
|
57
57
|
protected readonly noDataTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
58
|
-
protected readonly popupTemplate: _angular_core.Signal<TemplateRef<
|
|
58
|
+
protected readonly popupTemplate: _angular_core.Signal<TemplateRef<unknown>>;
|
|
59
59
|
protected readonly prefixTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
60
|
+
protected readonly selectedDataItems: _angular_core.Signal<_mirei_ts_collections.ImmutableSet<TData>>;
|
|
61
|
+
protected readonly selectedListItems: _angular_core.Signal<_mirei_ts_collections.ImmutableSet<ListItem<TData>>>;
|
|
60
62
|
protected readonly summaryTagTemplate: _angular_core.Signal<TemplateRef<unknown> | null>;
|
|
61
63
|
protected readonly tagCount: _angular_core.Signal<number>;
|
|
62
64
|
protected readonly tagTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
63
|
-
protected readonly selectedDataItems: _angular_core.Signal<_mirei_ts_collections.ImmutableSet<TData>>;
|
|
64
|
-
protected readonly selectedListItems: _angular_core.Signal<_mirei_ts_collections.ImmutableSet<ListItem<TData>>>;
|
|
65
65
|
protected readonly valueTextMap: _angular_core.Signal<_mirei_ts_collections.ImmutableDictionary<ListItem<TData>, string>>;
|
|
66
66
|
protected readonly visibleTagCount: _angular_core.Signal<number>;
|
|
67
67
|
/**
|
|
@@ -102,16 +102,16 @@ declare class MultiSelectComponent<TData = unknown, TValue = TData> implements F
|
|
|
102
102
|
* @default false
|
|
103
103
|
*/
|
|
104
104
|
readonly disabled: _angular_core.ModelSignal<boolean>;
|
|
105
|
-
/**
|
|
106
|
-
* @description A predicate function or the name of the field that determines whether an item is disabled.
|
|
107
|
-
*/
|
|
108
|
-
readonly itemDisabled: _angular_core.InputSignal<DropdownFieldPredicateType<TData>>;
|
|
109
105
|
/**
|
|
110
106
|
* @description Marks the multi select as invalid. When bound to a signal form field via `[formField]`,
|
|
111
107
|
* this is written by the `FormField` directive.
|
|
112
108
|
* @default false
|
|
113
109
|
*/
|
|
114
110
|
readonly invalid: _angular_core.InputSignal<boolean>;
|
|
111
|
+
/**
|
|
112
|
+
* @description A predicate function or the name of the field that determines whether an item is disabled.
|
|
113
|
+
*/
|
|
114
|
+
readonly itemDisabled: _angular_core.InputSignal<DropdownFieldPredicateType<TData>>;
|
|
115
115
|
/**
|
|
116
116
|
* @description Sets the loading state of the multi select component.
|
|
117
117
|
* @default false
|
|
@@ -188,6 +188,14 @@ declare class MultiSelectComponent<TData = unknown, TValue = TData> implements F
|
|
|
188
188
|
* @default ""
|
|
189
189
|
*/
|
|
190
190
|
readonly userClass: _angular_core.InputSignal<string>;
|
|
191
|
+
/**
|
|
192
|
+
* @description Two-way bindable current selected values. Implements `FormValueControl<Iterable<TValue>>`,
|
|
193
|
+
* enabling signal forms `[formField]` binding.
|
|
194
|
+
* Object mode contains selected data items; primitive mode (see {@link valuePrimitive}) contains values
|
|
195
|
+
* resolved through {@link valueField}. An empty selection is represented by an empty iterable/array.
|
|
196
|
+
* @default []
|
|
197
|
+
*/
|
|
198
|
+
readonly value: _angular_core.ModelSignal<Iterable<TValue>>;
|
|
191
199
|
/**
|
|
192
200
|
* @description Sets the value field of the multi select component.
|
|
193
201
|
* It is used for stable item identity, matching externally supplied values, and primitive
|
|
@@ -208,20 +216,13 @@ declare class MultiSelectComponent<TData = unknown, TValue = TData> implements F
|
|
|
208
216
|
* @default false
|
|
209
217
|
*/
|
|
210
218
|
readonly valuePrimitive: _angular_core.InputSignal<boolean>;
|
|
211
|
-
/**
|
|
212
|
-
* @description Two-way bindable current selected values. Implements `FormValueControl<Iterable<TValue>>`,
|
|
213
|
-
* enabling signal forms `[formField]` binding.
|
|
214
|
-
* Object mode contains selected data items; primitive mode (see {@link valuePrimitive}) contains values
|
|
215
|
-
* resolved through {@link valueField}. An empty selection is represented by an empty iterable/array.
|
|
216
|
-
* @default []
|
|
217
|
-
*/
|
|
218
|
-
readonly value: _angular_core.ModelSignal<Iterable<TValue>>;
|
|
219
219
|
constructor();
|
|
220
220
|
focus(): void;
|
|
221
|
-
protected onBlur(): void;
|
|
221
|
+
protected onBlur(event?: FocusEvent): void;
|
|
222
222
|
protected onItemSelect(): void;
|
|
223
|
-
protected
|
|
223
|
+
protected onPopupPointerDown(event: PointerEvent): void;
|
|
224
224
|
protected onSelectedItemGroupRemove(event: Event): void;
|
|
225
|
+
protected onSelectedItemRemove(event: Event, listItem: ListItem<TData>): void;
|
|
225
226
|
protected onValueClear(event: Event): void;
|
|
226
227
|
private getSelectedControlValues;
|
|
227
228
|
private handleEnterKey;
|
|
@@ -234,7 +235,7 @@ declare class MultiSelectComponent<TData = unknown, TValue = TData> implements F
|
|
|
234
235
|
private synchronizeSelection;
|
|
235
236
|
private updateValue;
|
|
236
237
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MultiSelectComponent<any, any>, never>;
|
|
237
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MultiSelectComponent<any, any>, "mona-multi-select", never, { "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; "autoClose": { "alias": "autoClose"; "required": false; "isSignal": true; }; "checkboxes": { "alias": "checkboxes"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "
|
|
238
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MultiSelectComponent<any, any>, "mona-multi-select", never, { "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; "autoClose": { "alias": "autoClose"; "required": false; "isSignal": true; }; "checkboxes": { "alias": "checkboxes"; "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; }; "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", "tagTemplate"], never, true, [{ directive: typeof i1.DropdownDataHandlerDirective; inputs: {}; outputs: {}; }, { directive: typeof i1.DropdownListPopupHandlerDirective; inputs: {}; outputs: {}; }]>;
|
|
238
239
|
}
|
|
239
240
|
|
|
240
241
|
declare class MultiSelectSummaryTagDirective<TData> {
|