@nanahoshi/mona-ui 0.24.11 → 0.25.0

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 (163) hide show
  1. package/README.md +9 -0
  2. package/fesm2022/nanahoshi-mona-ui-auto-complete.mjs +11 -10
  3. package/fesm2022/nanahoshi-mona-ui-avatar.mjs +37 -20
  4. package/fesm2022/nanahoshi-mona-ui-breadcrumb.mjs +239 -47
  5. package/fesm2022/nanahoshi-mona-ui-button-group.mjs +184 -31
  6. package/fesm2022/nanahoshi-mona-ui-button.mjs +47 -11
  7. package/fesm2022/nanahoshi-mona-ui-calendar.mjs +17 -13
  8. package/fesm2022/nanahoshi-mona-ui-card.mjs +54 -30
  9. package/fesm2022/nanahoshi-mona-ui-chart.mjs +27 -22
  10. package/fesm2022/nanahoshi-mona-ui-check-box.mjs +112 -31
  11. package/fesm2022/nanahoshi-mona-ui-chip.mjs +131 -89
  12. package/fesm2022/nanahoshi-mona-ui-circular-progress-bar.mjs +59 -19
  13. package/fesm2022/nanahoshi-mona-ui-collapsible.mjs +118 -41
  14. package/fesm2022/nanahoshi-mona-ui-color-gradient.mjs +243 -212
  15. package/fesm2022/nanahoshi-mona-ui-color-palette.mjs +155 -86
  16. package/fesm2022/nanahoshi-mona-ui-color-picker.mjs +161 -131
  17. package/fesm2022/nanahoshi-mona-ui-combo-box.mjs +12 -11
  18. package/fesm2022/nanahoshi-mona-ui-common.mjs +18 -1
  19. package/fesm2022/nanahoshi-mona-ui-date-picker.mjs +10 -9
  20. package/fesm2022/nanahoshi-mona-ui-datetime-picker.mjs +10 -9
  21. package/fesm2022/nanahoshi-mona-ui-dialog.mjs +2 -2
  22. package/fesm2022/nanahoshi-mona-ui-dropdown-button.mjs +2 -2
  23. package/fesm2022/nanahoshi-mona-ui-dropdown-list.mjs +10 -9
  24. package/fesm2022/nanahoshi-mona-ui-editor.mjs +25 -24
  25. package/fesm2022/nanahoshi-mona-ui-expansion-panel.mjs +202 -33
  26. package/fesm2022/nanahoshi-mona-ui-fieldset.mjs +31 -10
  27. package/fesm2022/nanahoshi-mona-ui-filter.mjs +1 -1
  28. package/fesm2022/{nanahoshi-mona-ui-grid-grid-footer-row.component-DhKLnW06.mjs → nanahoshi-mona-ui-grid-grid-footer-row.component-2tVhD2hK.mjs} +2 -2
  29. package/fesm2022/{nanahoshi-mona-ui-grid-grid-list.component-voGbKOiB.mjs → nanahoshi-mona-ui-grid-grid-list.component-BAN70Wcn.mjs} +4 -4
  30. package/fesm2022/{nanahoshi-mona-ui-grid-grid-row.component-HQ1Kv6R9.mjs → nanahoshi-mona-ui-grid-grid-row.component-C_kCaA5b.mjs} +7 -7
  31. package/fesm2022/{nanahoshi-mona-ui-grid-grid-virtual-list.component-PNLJFcuH.mjs → nanahoshi-mona-ui-grid-grid-virtual-list.component-BsNfrAHz.mjs} +4 -4
  32. package/fesm2022/{nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-BO19AVwC.mjs → nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-CEfVa7eo.mjs} +27 -29
  33. package/fesm2022/nanahoshi-mona-ui-grid.mjs +1 -1
  34. package/fesm2022/nanahoshi-mona-ui-i18n-icu.mjs +39 -4
  35. package/fesm2022/nanahoshi-mona-ui-internal-filter-input.mjs +2 -2
  36. package/fesm2022/nanahoshi-mona-ui-internal-indicator-icon.mjs +1 -1
  37. package/fesm2022/nanahoshi-mona-ui-internal-list.mjs +5 -5
  38. package/fesm2022/nanahoshi-mona-ui-internal-tree.mjs +7 -7
  39. package/fesm2022/nanahoshi-mona-ui-internal.mjs +183 -47
  40. package/fesm2022/nanahoshi-mona-ui-label.mjs +111 -15
  41. package/fesm2022/nanahoshi-mona-ui-list-box.mjs +1 -1
  42. package/fesm2022/nanahoshi-mona-ui-list-view.mjs +1 -1
  43. package/fesm2022/nanahoshi-mona-ui-locales-ar-sa.mjs +33 -4
  44. package/fesm2022/nanahoshi-mona-ui-locales-de-de.mjs +33 -4
  45. package/fesm2022/nanahoshi-mona-ui-locales-es-es.mjs +33 -4
  46. package/fesm2022/nanahoshi-mona-ui-locales-fr-fr.mjs +33 -4
  47. package/fesm2022/nanahoshi-mona-ui-locales-id-id.mjs +33 -4
  48. package/fesm2022/nanahoshi-mona-ui-locales-it-it.mjs +33 -4
  49. package/fesm2022/nanahoshi-mona-ui-locales-ja-jp.mjs +33 -4
  50. package/fesm2022/nanahoshi-mona-ui-locales-ko-kr.mjs +33 -4
  51. package/fesm2022/nanahoshi-mona-ui-locales-pt-br.mjs +33 -4
  52. package/fesm2022/nanahoshi-mona-ui-locales-ru-ru.mjs +33 -4
  53. package/fesm2022/nanahoshi-mona-ui-locales-tr-tr.mjs +33 -4
  54. package/fesm2022/nanahoshi-mona-ui-locales-zh-cn.mjs +33 -4
  55. package/fesm2022/nanahoshi-mona-ui-locales-zh-tw.mjs +33 -4
  56. package/fesm2022/nanahoshi-mona-ui-menubar.mjs +2 -2
  57. package/fesm2022/nanahoshi-mona-ui-multi-select.mjs +14 -13
  58. package/fesm2022/nanahoshi-mona-ui-notification.mjs +1 -1
  59. package/fesm2022/nanahoshi-mona-ui-numeric-text-box.mjs +13 -12
  60. package/fesm2022/nanahoshi-mona-ui-otp-input.mjs +192 -56
  61. package/fesm2022/nanahoshi-mona-ui-pager.mjs +1 -1
  62. package/fesm2022/nanahoshi-mona-ui-placeholder.mjs +3 -1
  63. package/fesm2022/nanahoshi-mona-ui-popup-menu.mjs +2 -2
  64. package/fesm2022/nanahoshi-mona-ui-progress-bar.mjs +60 -29
  65. package/fesm2022/nanahoshi-mona-ui-radio-button.mjs +334 -37
  66. package/fesm2022/nanahoshi-mona-ui-rating.mjs +84 -30
  67. package/fesm2022/nanahoshi-mona-ui-scroll-view.mjs +274 -108
  68. package/fesm2022/nanahoshi-mona-ui-segmented.mjs +127 -37
  69. package/fesm2022/nanahoshi-mona-ui-sheet.mjs +2 -2
  70. package/fesm2022/nanahoshi-mona-ui-sidebar.mjs +595 -170
  71. package/fesm2022/nanahoshi-mona-ui-skeleton.mjs +3 -2
  72. package/fesm2022/nanahoshi-mona-ui-slider.mjs +323 -166
  73. package/fesm2022/nanahoshi-mona-ui-spinner.mjs +167 -82
  74. package/fesm2022/nanahoshi-mona-ui-split-button.mjs +3 -3
  75. package/fesm2022/nanahoshi-mona-ui-splitter.mjs +273 -165
  76. package/fesm2022/nanahoshi-mona-ui-stepper.mjs +219 -132
  77. package/fesm2022/nanahoshi-mona-ui-switch.mjs +84 -32
  78. package/fesm2022/nanahoshi-mona-ui-tabs.mjs +337 -116
  79. package/fesm2022/nanahoshi-mona-ui-text-area.mjs +10 -12
  80. package/fesm2022/nanahoshi-mona-ui-text-box.mjs +21 -8
  81. package/fesm2022/nanahoshi-mona-ui-theme.mjs +444 -88
  82. package/fesm2022/nanahoshi-mona-ui-time-picker.mjs +10 -9
  83. package/fesm2022/nanahoshi-mona-ui-time-selector.mjs +15 -14
  84. package/fesm2022/nanahoshi-mona-ui-tooltip.mjs +17 -3
  85. package/fesm2022/nanahoshi-mona-ui-window.mjs +1 -1
  86. package/i18n/catalogs/en-US.messages.json +33 -4
  87. package/locales/ar-sa/ar-sa.messages.json +33 -4
  88. package/locales/de-de/de-de.messages.json +33 -4
  89. package/locales/es-es/es-es.messages.json +33 -4
  90. package/locales/fr-fr/fr-fr.messages.json +33 -4
  91. package/locales/id-id/id-id.messages.json +33 -4
  92. package/locales/it-it/it-it.messages.json +33 -4
  93. package/locales/ja-jp/ja-jp.messages.json +33 -4
  94. package/locales/ko-kr/ko-kr.messages.json +33 -4
  95. package/locales/pt-br/pt-br.messages.json +33 -4
  96. package/locales/ru-ru/ru-ru.messages.json +33 -4
  97. package/locales/tr-tr/tr-tr.messages.json +33 -4
  98. package/locales/zh-cn/zh-cn.messages.json +33 -4
  99. package/locales/zh-tw/zh-tw.messages.json +33 -4
  100. package/package.json +2 -1
  101. package/styles.css +156 -0
  102. package/types/nanahoshi-mona-ui-auto-complete.d.ts +1 -0
  103. package/types/nanahoshi-mona-ui-avatar.d.ts +18 -11
  104. package/types/nanahoshi-mona-ui-breadcrumb.d.ts +62 -14
  105. package/types/nanahoshi-mona-ui-button-group.d.ts +86 -16
  106. package/types/nanahoshi-mona-ui-button.d.ts +26 -3
  107. package/types/nanahoshi-mona-ui-calendar.d.ts +1 -0
  108. package/types/nanahoshi-mona-ui-card.d.ts +22 -6
  109. package/types/nanahoshi-mona-ui-check-box.d.ts +54 -13
  110. package/types/nanahoshi-mona-ui-chip.d.ts +31 -18
  111. package/types/nanahoshi-mona-ui-circular-progress-bar.d.ts +21 -5
  112. package/types/nanahoshi-mona-ui-collapsible.d.ts +20 -11
  113. package/types/nanahoshi-mona-ui-color-gradient.d.ts +62 -36
  114. package/types/nanahoshi-mona-ui-color-palette.d.ts +65 -27
  115. package/types/nanahoshi-mona-ui-color-picker.d.ts +64 -23
  116. package/types/nanahoshi-mona-ui-combo-box.d.ts +1 -0
  117. package/types/nanahoshi-mona-ui-common.d.ts +28 -2
  118. package/types/nanahoshi-mona-ui-date-picker.d.ts +1 -0
  119. package/types/nanahoshi-mona-ui-datetime-picker.d.ts +1 -0
  120. package/types/nanahoshi-mona-ui-dropdown-list.d.ts +1 -0
  121. package/types/nanahoshi-mona-ui-editor.d.ts +1 -0
  122. package/types/nanahoshi-mona-ui-expansion-panel.d.ts +51 -7
  123. package/types/nanahoshi-mona-ui-fieldset.d.ts +18 -4
  124. package/types/nanahoshi-mona-ui-grid.d.ts +0 -1
  125. package/types/nanahoshi-mona-ui-i18n.d.ts +38 -3
  126. package/types/nanahoshi-mona-ui-internal.d.ts +95 -14
  127. package/types/nanahoshi-mona-ui-label.d.ts +17 -2
  128. package/types/nanahoshi-mona-ui-locales-ar-sa.d.ts +29 -0
  129. package/types/nanahoshi-mona-ui-locales-de-de.d.ts +29 -0
  130. package/types/nanahoshi-mona-ui-locales-es-es.d.ts +29 -0
  131. package/types/nanahoshi-mona-ui-locales-fr-fr.d.ts +29 -0
  132. package/types/nanahoshi-mona-ui-locales-id-id.d.ts +29 -0
  133. package/types/nanahoshi-mona-ui-locales-it-it.d.ts +29 -0
  134. package/types/nanahoshi-mona-ui-locales-ja-jp.d.ts +29 -0
  135. package/types/nanahoshi-mona-ui-locales-ko-kr.d.ts +29 -0
  136. package/types/nanahoshi-mona-ui-locales-pt-br.d.ts +29 -0
  137. package/types/nanahoshi-mona-ui-locales-ru-ru.d.ts +29 -0
  138. package/types/nanahoshi-mona-ui-locales-tr-tr.d.ts +29 -0
  139. package/types/nanahoshi-mona-ui-locales-zh-cn.d.ts +29 -0
  140. package/types/nanahoshi-mona-ui-locales-zh-tw.d.ts +29 -0
  141. package/types/nanahoshi-mona-ui-multi-select.d.ts +1 -0
  142. package/types/nanahoshi-mona-ui-numeric-text-box.d.ts +1 -0
  143. package/types/nanahoshi-mona-ui-otp-input.d.ts +49 -12
  144. package/types/nanahoshi-mona-ui-placeholder.d.ts +2 -1
  145. package/types/nanahoshi-mona-ui-progress-bar.d.ts +21 -9
  146. package/types/nanahoshi-mona-ui-radio-button.d.ts +165 -20
  147. package/types/nanahoshi-mona-ui-rating.d.ts +21 -6
  148. package/types/nanahoshi-mona-ui-scroll-view.d.ts +59 -27
  149. package/types/nanahoshi-mona-ui-segmented.d.ts +52 -24
  150. package/types/nanahoshi-mona-ui-sidebar.d.ts +104 -41
  151. package/types/nanahoshi-mona-ui-skeleton.d.ts +1 -1
  152. package/types/nanahoshi-mona-ui-slider.d.ts +99 -35
  153. package/types/nanahoshi-mona-ui-spinner.d.ts +9 -5
  154. package/types/nanahoshi-mona-ui-splitter.d.ts +31 -10
  155. package/types/nanahoshi-mona-ui-stepper.d.ts +58 -12
  156. package/types/nanahoshi-mona-ui-switch.d.ts +32 -10
  157. package/types/nanahoshi-mona-ui-tabs.d.ts +75 -20
  158. package/types/nanahoshi-mona-ui-text-area.d.ts +7 -7
  159. package/types/nanahoshi-mona-ui-text-box.d.ts +2 -0
  160. package/types/nanahoshi-mona-ui-theme.d.ts +392 -15
  161. package/types/nanahoshi-mona-ui-time-picker.d.ts +1 -0
  162. package/types/nanahoshi-mona-ui-time-selector.d.ts +1 -0
  163. package/types/nanahoshi-mona-ui-tooltip.d.ts +7 -1
@@ -26,10 +26,12 @@ type SwitchVariantInputs = SwitchBaseVariantInput & SwitchHandleVariantInput & S
26
26
  declare class SwitchComponent implements SwitchVariantInputs, FormCheckboxControl {
27
27
  #private;
28
28
  protected readonly classes: _angular_core.Signal<string>;
29
+ protected readonly effectiveDisabled: _angular_core.Signal<boolean>;
29
30
  protected readonly handleClasses: _angular_core.Signal<string>;
30
31
  protected readonly handleContentTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
31
32
  protected readonly invalidState: _angular_core.Signal<boolean>;
32
33
  protected readonly labelClasses: _angular_core.Signal<string>;
34
+ protected readonly labelledBy: _angular_core.Signal<string | null>;
33
35
  protected readonly offLabelTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
34
36
  protected readonly onLabelTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
35
37
  /**
@@ -52,13 +54,13 @@ declare class SwitchComponent implements SwitchVariantInputs, FormCheckboxContro
52
54
  * @description Renders the component with reduced visual emphasis and removes pointer interaction.
53
55
  * @default false
54
56
  */
55
- readonly disabled: _angular_core.InputSignal<boolean>;
57
+ readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
56
58
  /**
57
- * @description Marks the switch as invalid. When bound to a signal form field via `[field]`,
58
- * this is written by the signal forms `Field` directive.
59
+ * @description Marks the switch as invalid. When bound to a signal form field via `[formField]`, this is written by
60
+ * the `FormField` directive.
59
61
  * @default false
60
62
  */
61
- readonly invalid: _angular_core.InputSignal<boolean>;
63
+ readonly invalid: _angular_core.InputSignalWithTransform<boolean, unknown>;
62
64
  /**
63
65
  * @description Label displayed inside the switch track when it is in the off state.
64
66
  * @default ""
@@ -69,11 +71,17 @@ declare class SwitchComponent implements SwitchVariantInputs, FormCheckboxContro
69
71
  * @default ""
70
72
  */
71
73
  readonly onLabel: _angular_core.InputSignal<string>;
74
+ /**
75
+ * @description Prevents value changes while the control stays focusable and readable. When bound to a signal form
76
+ * field via `[formField]`, this is written by the `FormField` directive.
77
+ * @default false
78
+ */
79
+ readonly readonly: _angular_core.InputSignalWithTransform<boolean, unknown>;
72
80
  /**
73
81
  * @description Marks the switch as required for form validation.
74
82
  * @default false
75
83
  */
76
- readonly required: _angular_core.InputSignal<boolean>;
84
+ readonly required: _angular_core.InputSignalWithTransform<boolean, unknown>;
77
85
  /**
78
86
  * @description Border-radius preset applied to the component.
79
87
  * @default "full"
@@ -84,28 +92,42 @@ declare class SwitchComponent implements SwitchVariantInputs, FormCheckboxContro
84
92
  * @default "medium"
85
93
  */
86
94
  readonly size: _angular_core.InputSignal<"large" | "medium" | "small" | null | undefined>;
95
+ /**
96
+ * @description Tab index of the switch while it's enabled.
97
+ * @default 0
98
+ */
99
+ readonly tabindex: _angular_core.InputSignalWithTransform<number, string | number>;
87
100
  /**
88
101
  * @description Emitted when the switch loses focus or its value changes.
89
102
  */
90
103
  readonly touch: _angular_core.OutputEmitterRef<void>;
91
104
  /**
92
- * @description Marks the switch as touched. When bound to a signal form field via `[field]`,
93
- * this is written by the signal forms `Field` directive.
105
+ * @description Marks the switch as touched. When bound to a signal form field via `[formField]`, this is written by
106
+ * the `FormField` directive.
94
107
  * @default false
95
108
  */
96
- readonly touched: _angular_core.InputSignal<boolean>;
109
+ readonly touched: _angular_core.InputSignalWithTransform<boolean, unknown>;
97
110
  /**
98
111
  * @description Additional CSS classes merged onto the host element via `tailwind-merge`.
99
112
  * @default ""
100
113
  */
101
114
  readonly userClass: _angular_core.InputSignal<string>;
102
115
  constructor();
116
+ /**
117
+ * @description Moves focus to the switch.
118
+ * @param options Options passed to the native `focus()` call, such as `preventScroll`.
119
+ */
120
+ focus(options?: FocusOptions): void;
103
121
  protected onBlur(): void;
104
122
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<SwitchComponent, never>;
105
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<SwitchComponent, "mona-switch", never, { "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "offLabel": { "alias": "offLabel"; "required": false; "isSignal": true; }; "onLabel": { "alias": "onLabel"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "touched": { "alias": "touched"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, { "checked": "checkedChange"; "touch": "touch"; }, ["handleContentTemplate", "offLabelTemplate", "onLabelTemplate"], never, true, never>;
123
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<SwitchComponent, "mona-switch", never, { "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "offLabel": { "alias": "offLabel"; "required": false; "isSignal": true; }; "onLabel": { "alias": "onLabel"; "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; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "tabindex": { "alias": "tabindex"; "required": false; "isSignal": true; }; "touched": { "alias": "touched"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, { "checked": "checkedChange"; "touch": "touch"; }, ["handleContentTemplate", "offLabelTemplate", "onLabelTemplate"], never, true, never>;
106
124
  }
107
125
 
126
+ interface SwitchHandleContentTemplateContext {
127
+ readonly $implicit: boolean;
128
+ }
108
129
  declare class SwitchHandleContentTemplateDirective {
130
+ static ngTemplateContextGuard(_directive: SwitchHandleContentTemplateDirective, _context: unknown): _context is SwitchHandleContentTemplateContext;
109
131
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<SwitchHandleContentTemplateDirective, never>;
110
132
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SwitchHandleContentTemplateDirective, "ng-template[monaSwitchHandleContentTemplate]", never, {}, {}, never, never, true, never>;
111
133
  }
@@ -121,4 +143,4 @@ declare class SwitchOnLabelTemplateDirective {
121
143
  }
122
144
 
123
145
  export { SwitchComponent, SwitchHandleContentTemplateDirective, SwitchOffLabelTemplateDirective, SwitchOnLabelTemplateDirective };
124
- export type { SwitchVariantProps };
146
+ export type { SwitchHandleContentTemplateContext, SwitchVariantProps };
@@ -85,16 +85,21 @@ type TabScrollDirection = "previous" | "next";
85
85
 
86
86
  declare class TabListComponent implements TabListVariantInput {
87
87
  #private;
88
- protected readonly isRtl: _angular_core.Signal<boolean>;
89
88
  protected readonly baseClass: _angular_core.Signal<string>;
89
+ protected readonly closeButtonClass: _angular_core.Signal<string>;
90
+ protected readonly hasClosableTabs: _angular_core.Signal<boolean>;
91
+ protected readonly isRtl: _angular_core.Signal<boolean>;
90
92
  protected readonly listClass: _angular_core.Signal<string>;
91
93
  protected readonly listWrapperClass: _angular_core.Signal<string>;
92
94
  protected readonly messages: _angular_core.Signal<_nanahoshi_mona_ui_i18n.MonaTabsMessages>;
93
95
  protected readonly orientation: _angular_core.Signal<TabOrientation>;
94
96
  protected readonly overflowControlsVisible: _angular_core.WritableSignal<boolean>;
95
97
  protected readonly scrollButtonClass: _angular_core.Signal<string>;
98
+ protected readonly tabClass: _angular_core.Signal<string>;
99
+ protected readonly tabElements: _angular_core.Signal<readonly ElementRef<HTMLElement>[]>;
96
100
  protected readonly tabListElement: _angular_core.Signal<ElementRef<HTMLUListElement>>;
97
- protected readonly tabListItems: _angular_core.Signal<readonly ElementRef<any>[]>;
101
+ readonly ariaLabel: _angular_core.InputSignal<string>;
102
+ readonly ariaLabelledBy: _angular_core.InputSignal<string>;
98
103
  readonly closable: _angular_core.InputSignal<boolean>;
99
104
  readonly disabled: _angular_core.InputSignal<boolean>;
100
105
  /**
@@ -113,27 +118,46 @@ declare class TabListComponent implements TabListVariantInput {
113
118
  readonly tabSelect: _angular_core.OutputEmitterRef<TabSelectEvent>;
114
119
  constructor();
115
120
  focusSelectedTab(): void;
121
+ protected onFocusIn(event: FocusEvent): void;
122
+ protected onFocusOut(event: FocusEvent): void;
116
123
  protected onKeydown(event: KeyboardEvent): void;
117
- protected onTabClick(tab: TabItem, tabListElement: HTMLUListElement, event: MouseEvent): void;
124
+ protected onTabClick(tab: TabItem, event: MouseEvent): void;
118
125
  protected onTabClose(tab: TabItem, event: MouseEvent): void;
119
126
  protected startContinuousScroll(event: PointerEvent, element: HTMLElement, direction: TabScrollDirection): void;
120
127
  protected startScrolling(element: HTMLElement, direction: TabScrollDirection, type: "single" | "continuous"): void;
121
128
  protected stopScrolling(): void;
129
+ /**
130
+ * Selects the tab and moves focus to it. A vetoed selection still moves focus, so the keyboard can get past a tab it
131
+ * isn't allowed to select.
132
+ */
122
133
  private activateTab;
134
+ private adjacentEnabledTab;
123
135
  private emitTabClose;
124
136
  private emitTabSelect;
125
137
  private focusTab;
126
138
  private getNavigationDirection;
127
- private handleKeyboardEvents;
128
139
  private handleTabKey;
140
+ private handleTabStripKey;
141
+ private isTabEnabled;
129
142
  private performScroll;
143
+ private restoreFocus;
144
+ /**
145
+ * Scrolls only the strip. `scrollIntoView` would also scroll the page, which a selection made by code, or the first
146
+ * render, has no business doing.
147
+ */
148
+ private scrollTabIntoStrip;
130
149
  private selectTab;
131
- private setupKeyboardNavigation;
132
150
  private setupResizeObserver;
133
151
  private setupScrolling;
152
+ private tabElementOf;
153
+ /**
154
+ * The tab a key press applies to: the one focus is in, which may not be the selected one after a vetoed selection.
155
+ * Keys pressed anywhere else in the strip, such as on a close button, belong to no tab.
156
+ */
157
+ private tabFromEvent;
134
158
  private updateScrollVisibility;
135
159
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<TabListComponent, never>;
136
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<TabListComponent, "mona-tab-list", never, { "closable": { "alias": "closable"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": true; "isSignal": true; }; "selectedTabId": { "alias": "selectedTabId"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": true; "isSignal": true; }; "tabList": { "alias": "tabList"; "required": true; "isSignal": true; }; }, { "selectedTabId": "selectedTabIdChange"; "tabClose": "tabClose"; "tabSelect": "tabSelect"; }, never, never, true, never>;
160
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<TabListComponent, "mona-tab-list", never, { "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "ariaLabelledBy"; "required": false; "isSignal": true; }; "closable": { "alias": "closable"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": true; "isSignal": true; }; "selectedTabId": { "alias": "selectedTabId"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": true; "isSignal": true; }; "tabList": { "alias": "tabList"; "required": true; "isSignal": true; }; }, { "selectedTabId": "selectedTabIdChange"; "tabClose": "tabClose"; "tabSelect": "tabSelect"; }, never, never, true, never>;
137
161
  }
138
162
 
139
163
  declare class TabComponent {
@@ -141,18 +165,21 @@ declare class TabComponent {
141
165
  protected readonly contentTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
142
166
  protected readonly titleTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
143
167
  /**
144
- * @description Displays a close button on this tab. Overrides the parent `mona-tabs` component's `closable` input.
168
+ * @description Displays a close button on this tab. Turning it on here shows the button even when the parent
169
+ * `mona-tabs` has `closable` off; turning it off here doesn't hide a button the parent asked for.
145
170
  * @default false
146
171
  */
147
- readonly closable: _angular_core.InputSignal<boolean>;
172
+ readonly closable: _angular_core.InputSignalWithTransform<boolean, unknown>;
148
173
  /**
149
- * @description Renders this tab with reduced visual emphasis and removes pointer and keyboard interaction.
150
- * Overrides the parent `mona-tabs` component's `disabled` input.
174
+ * @description Renders this tab with reduced visual emphasis and removes pointer and keyboard interaction. A tab is
175
+ * disabled when this or the parent `mona-tabs` component's `disabled` input is on.
151
176
  * @default false
152
177
  */
153
- readonly disabled: _angular_core.InputSignal<boolean>;
178
+ readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
154
179
  /**
155
- * @description Whether the tab is selected.
180
+ * @description Whether the tab is selected. Setting it to `true` selects the tab unless it's disabled, and it
181
+ * follows the selection, so `[(selected)]` stays current. Setting it to `false` doesn't clear the selection, because
182
+ * a group of tabs always keeps one selected.
156
183
  * @default false
157
184
  */
158
185
  readonly selected: _angular_core.ModelSignal<boolean>;
@@ -161,12 +188,12 @@ declare class TabComponent {
161
188
  * @default ""
162
189
  */
163
190
  readonly title: _angular_core.InputSignal<string>;
164
- get tabItem(): TabItem;
165
191
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<TabComponent, never>;
166
192
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<TabComponent, "mona-tab", never, { "closable": { "alias": "closable"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; }, { "selected": "selectedChange"; }, ["contentTemplate", "titleTemplate"], never, true, never>;
167
193
  }
168
194
 
169
195
  declare class TabsComponent implements TabsVariantInput {
196
+ #private;
170
197
  protected readonly baseClass: _angular_core.Signal<string>;
171
198
  protected readonly contentClass: _angular_core.Signal<string>;
172
199
  protected readonly selectedTabId: _angular_core.WritableSignal<string | null>;
@@ -174,36 +201,55 @@ declare class TabsComponent implements TabsVariantInput {
174
201
  protected readonly tabListComponent: _angular_core.Signal<TabListComponent>;
175
202
  protected readonly tabs: _angular_core.Signal<readonly TabComponent[]>;
176
203
  /**
177
- * @description Displays a close button on each tab, unless overridden per tab.
204
+ * @description Accessible name for the tab list.
205
+ * @default ""
206
+ */
207
+ readonly ariaLabel: _angular_core.InputSignal<string>;
208
+ /**
209
+ * @description The id of an element that names the tab list. Takes precedence over `aria-label`.
210
+ * @default ""
211
+ */
212
+ readonly ariaLabelledBy: _angular_core.InputSignal<string>;
213
+ /**
214
+ * @description Displays a close button on each tab. A tab's own `closable` can add a button, not remove this one.
178
215
  * @default false
179
216
  */
180
- readonly closable: _angular_core.InputSignal<boolean>;
217
+ readonly closable: _angular_core.InputSignalWithTransform<boolean, unknown>;
181
218
  /**
182
219
  * @description Renders every tab with reduced visual emphasis and removes pointer and keyboard interaction.
183
220
  * @default false
184
221
  */
185
- readonly disabled: _angular_core.InputSignal<boolean>;
222
+ readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
186
223
  /**
187
224
  * @description Keeps a tab's content in the DOM after it is deselected instead of removing it.
188
225
  * @default true
189
226
  */
190
- readonly keepTabContent: _angular_core.InputSignal<boolean>;
227
+ readonly keepTabContent: _angular_core.InputSignalWithTransform<boolean, unknown>;
191
228
  /**
192
229
  * @description Placement of the tab list relative to the tab content.
193
230
  * @default "top"
194
231
  */
195
232
  readonly position: _angular_core.InputSignal<"top" | "bottom" | "left" | "right" | null | undefined>;
233
+ /**
234
+ * @description The zero-based index of the selected tab. Writing it selects that tab, unless it's disabled or out of
235
+ * range, in which case the value goes back to the selected tab's index. It also changes when the component moves the
236
+ * selection itself, such as when the selected tab is removed.
237
+ * @default 0
238
+ */
239
+ readonly selectedIndex: _angular_core.ModelSignal<number>;
196
240
  /**
197
241
  * @description Size preset controlling the tabs' dimensions.
198
242
  * @default "medium"
199
243
  */
200
244
  readonly size: _angular_core.InputSignal<"small" | "medium" | "large" | null | undefined>;
201
245
  /**
202
- * @description Emitted with a {@link TabCloseEvent} when a tab is closed.
246
+ * @description Emitted with a {@link TabCloseEvent} when a close is requested. The component doesn't remove the tab:
247
+ * remove it from whatever renders the `mona-tab` elements.
203
248
  */
204
249
  readonly tabClose: _angular_core.OutputEmitterRef<TabCloseEvent>;
205
250
  /**
206
- * @description Emitted with a {@link TabSelectEvent} when a tab is selected. This event is preventable.
251
+ * @description Emitted with a {@link TabSelectEvent} before a click or key selects a tab. This event is preventable.
252
+ * It doesn't fire for selections made through `selectedIndex` or `selected`, or when the selected tab is removed.
207
253
  */
208
254
  readonly tabSelect: _angular_core.OutputEmitterRef<TabSelectEvent>;
209
255
  /**
@@ -211,9 +257,18 @@ declare class TabsComponent implements TabsVariantInput {
211
257
  * @default ""
212
258
  */
213
259
  readonly userClass: _angular_core.InputSignal<string>;
260
+ constructor();
214
261
  protected handlePanelKeyDown(event: KeyboardEvent): void;
262
+ private applyRequestedIndex;
263
+ private reportIndex;
264
+ /**
265
+ * Brings the three views of the selection together. A tab newly flagged `selected` from outside wins, and the first
266
+ * one wins when there are several. Every tab's `selected` and the index are then written to match, so a flag that was
267
+ * already seen, or one this method wrote, can't take the selection back.
268
+ */
269
+ private syncSelection;
215
270
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<TabsComponent, never>;
216
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<TabsComponent, "mona-tabs", never, { "closable": { "alias": "closable"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "keepTabContent": { "alias": "keepTabContent"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, { "tabClose": "tabClose"; "tabSelect": "tabSelect"; }, ["tabs"], never, true, never>;
271
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<TabsComponent, "mona-tabs", never, { "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; "closable": { "alias": "closable"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "keepTabContent": { "alias": "keepTabContent"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; "selectedIndex": { "alias": "selectedIndex"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, { "selectedIndex": "selectedIndexChange"; "tabClose": "tabClose"; "tabSelect": "tabSelect"; }, ["tabs"], never, true, never>;
217
272
  }
218
273
 
219
274
  declare const TABS_DEFAULT_MESSAGES: MonaTabsMessages;
@@ -12,28 +12,28 @@ type TextAreaVariantInput = VariantInputs<TextAreaVariantProps>;
12
12
  declare class TextAreaDirective implements TextAreaVariantInput {
13
13
  protected readonly baseClass: _angular_core.Signal<string>;
14
14
  protected readonly inputInvalid: _angular_core.Signal<boolean>;
15
+ /**
16
+ * @description Marks the textarea as invalid, triggering error border and ring styling.
17
+ * @default false
18
+ */
19
+ readonly invalid: _angular_core.InputSignalWithTransform<boolean, unknown>;
15
20
  /**
16
21
  * @description Sets the border radius of the textarea.
17
22
  * @default "medium"
18
23
  */
19
24
  readonly rounded: _angular_core.InputSignal<"large" | "medium" | "none" | "small" | null | undefined>;
20
- /**
21
- * @description Marks the textarea as invalid, triggering error border and ring styling.
22
- * @default false
23
- */
24
- readonly invalid: _angular_core.InputSignal<boolean>;
25
25
  /**
26
26
  * @description Marks the textarea as touched. Error styling is only shown when both `invalid` and `touched` are `true`.
27
27
  * @default false
28
28
  */
29
- readonly touched: _angular_core.InputSignal<boolean>;
29
+ readonly touched: _angular_core.InputSignalWithTransform<boolean, unknown>;
30
30
  /**
31
31
  * @description Additional CSS classes merged onto the host element via `tailwind-merge`.
32
32
  * @default ""
33
33
  */
34
34
  readonly userClass: _angular_core.InputSignal<string>;
35
35
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<TextAreaDirective, never>;
36
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TextAreaDirective, "textarea[monaTextArea]", never, { "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "touched": { "alias": "touched"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
36
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TextAreaDirective, "textarea[monaTextArea]", never, { "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "touched": { "alias": "touched"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
37
37
  }
38
38
 
39
39
  export { TextAreaDirective };
@@ -24,8 +24,10 @@ type InputVariantInput = VariantInputs<InputVariantProps>;
24
24
  declare class TextBoxComponent implements TextBoxVariantInput, FormValueControl<string> {
25
25
  #private;
26
26
  protected readonly classes: _angular_core.Signal<string>;
27
+ protected readonly effectiveDisabled: _angular_core.Signal<boolean>;
27
28
  protected readonly inputRef: _angular_core.Signal<ElementRef<HTMLInputElement>>;
28
29
  protected readonly invalidInput: _angular_core.Signal<boolean>;
30
+ protected readonly labelledBy: _angular_core.Signal<string | null>;
29
31
  protected readonly messages: _angular_core.Signal<_nanahoshi_mona_ui_i18n.MonaTextBoxMessages>;
30
32
  protected readonly prefixTemplateList: _angular_core.Signal<readonly TemplateRef<any>[]>;
31
33
  protected readonly showClearButton: _angular_core.Signal<boolean>;