@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.
Files changed (41) hide show
  1. package/THIRD_PARTY_NOTICES.md +60 -0
  2. package/fesm2022/nanahoshi-mona-ui-auto-complete.mjs +46 -36
  3. package/fesm2022/nanahoshi-mona-ui-calendar.mjs +120 -99
  4. package/fesm2022/nanahoshi-mona-ui-combo-box.mjs +109 -99
  5. package/fesm2022/nanahoshi-mona-ui-date-picker.mjs +19 -13
  6. package/fesm2022/nanahoshi-mona-ui-datetime-picker.mjs +27 -17
  7. package/fesm2022/nanahoshi-mona-ui-dropdown-list.mjs +37 -27
  8. package/fesm2022/nanahoshi-mona-ui-dropdowns.mjs +5 -4
  9. package/fesm2022/nanahoshi-mona-ui-editor.mjs +3 -3
  10. package/fesm2022/nanahoshi-mona-ui-filter.mjs +1 -1
  11. package/fesm2022/{nanahoshi-mona-ui-grid-grid-footer-cell.component-Bg7rckst.mjs → nanahoshi-mona-ui-grid-grid-footer-cell.component-DLqCAee3.mjs} +2 -2
  12. 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
  13. package/fesm2022/{nanahoshi-mona-ui-grid-grid-list.component-D9AwQFDV.mjs → nanahoshi-mona-ui-grid-grid-list.component-hakVMhqu.mjs} +5 -5
  14. package/fesm2022/{nanahoshi-mona-ui-grid-grid-toggle.component-Byb9iTes.mjs → nanahoshi-mona-ui-grid-grid-toggle.component-CtEs5t9x.mjs} +28 -17
  15. package/fesm2022/{nanahoshi-mona-ui-grid-grid-virtual-list.component-CBmdtrXm.mjs → nanahoshi-mona-ui-grid-grid-virtual-list.component-DoAGYLzr.mjs} +5 -5
  16. package/fesm2022/{nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-DPmJmCap.mjs → nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-BIK61ieq.mjs} +19 -10
  17. package/fesm2022/nanahoshi-mona-ui-grid.mjs +1 -1
  18. package/fesm2022/nanahoshi-mona-ui-i18n.mjs +3722 -16
  19. package/fesm2022/nanahoshi-mona-ui-list-view.mjs +2 -2
  20. package/fesm2022/nanahoshi-mona-ui-locales.mjs +4973 -0
  21. package/fesm2022/nanahoshi-mona-ui-multi-select.mjs +46 -38
  22. package/fesm2022/nanahoshi-mona-ui-pager.mjs +23 -13
  23. package/fesm2022/nanahoshi-mona-ui-sheet.mjs +1 -1
  24. package/fesm2022/nanahoshi-mona-ui-stepper.mjs +14 -5
  25. package/fesm2022/nanahoshi-mona-ui-time-picker.mjs +25 -16
  26. package/locales/package.json +4 -0
  27. package/package.json +5 -1
  28. package/types/nanahoshi-mona-ui-auto-complete.d.ts +19 -18
  29. package/types/nanahoshi-mona-ui-calendar.d.ts +25 -21
  30. package/types/nanahoshi-mona-ui-combo-box.d.ts +23 -22
  31. package/types/nanahoshi-mona-ui-date-picker.d.ts +7 -4
  32. package/types/nanahoshi-mona-ui-datetime-picker.d.ts +8 -5
  33. package/types/nanahoshi-mona-ui-dropdown-list.d.ts +18 -17
  34. package/types/nanahoshi-mona-ui-dropdowns.d.ts +6 -4
  35. package/types/nanahoshi-mona-ui-grid.d.ts +12 -1
  36. package/types/nanahoshi-mona-ui-i18n.d.ts +49 -2
  37. package/types/nanahoshi-mona-ui-locales.d.ts +4889 -0
  38. package/types/nanahoshi-mona-ui-multi-select.d.ts +20 -19
  39. package/types/nanahoshi-mona-ui-pager.d.ts +1 -0
  40. package/types/nanahoshi-mona-ui-stepper.d.ts +2 -1
  41. package/types/nanahoshi-mona-ui-time-picker.d.ts +4 -2
@@ -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<any>>;
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 onSelectedItemRemove(event: Event, listItem: ListItem<TData>): void;
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; }; "itemDisabled": { "alias": "itemDisabled"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "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; }; "valueField": { "alias": "valueField"; "required": false; "isSignal": true; }; "valuePrimitive": { "alias": "valuePrimitive"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "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
+ 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> {
@@ -199,6 +199,7 @@ declare class PagerComponent implements PagerVariantInputs {
199
199
  */
200
200
  readonly visiblePages: _angular_core.InputSignal<number>;
201
201
  constructor();
202
+ protected formatPageNumber(value: number): string;
202
203
  protected onJumpNextClick(): void;
203
204
  protected onJumpPreviousClick(): void;
204
205
  protected onKeydown(event: KeyboardEvent): void;
@@ -99,7 +99,6 @@ type StepperVariantInput = StepperBaseVariantInput & StepperStepListVariantInput
99
99
 
100
100
  declare class StepperComponent implements StepperVariantInput {
101
101
  #private;
102
- protected readonly isRtl: Signal<boolean>;
103
102
  protected readonly activeStep: Signal<StepItem<unknown> | undefined>;
104
103
  protected readonly baseClass: Signal<string>;
105
104
  protected readonly highlightedStep: _angular_core.WritableSignal<number>;
@@ -108,6 +107,7 @@ declare class StepperComponent implements StepperVariantInput {
108
107
  gridTemplateRows: string | undefined;
109
108
  }>;
110
109
  protected readonly indicatorTemplate: Signal<TemplateRef<StepperTemplateContext> | undefined>;
110
+ protected readonly isRtl: Signal<boolean>;
111
111
  protected readonly labelTemplate: Signal<TemplateRef<StepperTemplateContext> | undefined>;
112
112
  protected readonly listClass: Signal<string>;
113
113
  protected readonly listItemClass: Signal<string>;
@@ -160,6 +160,7 @@ declare class StepperComponent implements StepperVariantInput {
160
160
  */
161
161
  readonly steps: _angular_core.InputSignal<Iterable<StepOptions<unknown>>>;
162
162
  constructor();
163
+ protected formatStepNumber(value: number): string;
163
164
  protected isStepActive(step: StepItem): boolean;
164
165
  protected isStepLocked(step: StepItem): boolean;
165
166
  protected onIndicatorFocus(step: StepItem): void;
@@ -26,6 +26,7 @@ declare class TimePickerComponent implements FormValueControl<Date | null>, Time
26
26
  #private;
27
27
  protected readonly baseClass: Signal<string>;
28
28
  protected readonly currentDateString: _angular_core.WritableSignal<string>;
29
+ protected readonly effectiveFormat: Signal<string>;
29
30
  protected readonly expanded: Signal<boolean>;
30
31
  protected readonly inputAttributes: Signal<AttributeConfig>;
31
32
  protected readonly invalidState: Signal<boolean>;
@@ -47,9 +48,10 @@ declare class TimePickerComponent implements FormValueControl<Date | null>, Time
47
48
  */
48
49
  readonly disabled: _angular_core.InputSignal<boolean>;
49
50
  /**
50
- * @description Sets the format of the time picker.
51
+ * @description Sets the format of the time picker. If not specified, derives from the active locale, hourFormat, and showSeconds.
52
+ * @default null
51
53
  */
52
- readonly format: _angular_core.InputSignal<string>;
54
+ readonly format: _angular_core.InputSignal<string | null>;
53
55
  /**
54
56
  * @description Sets the hour format of the time picker.
55
57
  * @default 24