@nanahoshi/mona-ui 0.24.10 → 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 (165) hide show
  1. package/README.md +9 -0
  2. package/chart/README.md +223 -77
  3. package/fesm2022/nanahoshi-mona-ui-auto-complete.mjs +11 -10
  4. package/fesm2022/nanahoshi-mona-ui-avatar.mjs +37 -20
  5. package/fesm2022/nanahoshi-mona-ui-breadcrumb.mjs +239 -47
  6. package/fesm2022/nanahoshi-mona-ui-button-group.mjs +184 -31
  7. package/fesm2022/nanahoshi-mona-ui-button.mjs +47 -11
  8. package/fesm2022/nanahoshi-mona-ui-calendar.mjs +17 -13
  9. package/fesm2022/nanahoshi-mona-ui-card.mjs +54 -30
  10. package/fesm2022/nanahoshi-mona-ui-chart.mjs +1909 -666
  11. package/fesm2022/nanahoshi-mona-ui-check-box.mjs +112 -31
  12. package/fesm2022/nanahoshi-mona-ui-chip.mjs +131 -89
  13. package/fesm2022/nanahoshi-mona-ui-circular-progress-bar.mjs +59 -19
  14. package/fesm2022/nanahoshi-mona-ui-collapsible.mjs +118 -41
  15. package/fesm2022/nanahoshi-mona-ui-color-gradient.mjs +243 -212
  16. package/fesm2022/nanahoshi-mona-ui-color-palette.mjs +155 -86
  17. package/fesm2022/nanahoshi-mona-ui-color-picker.mjs +161 -131
  18. package/fesm2022/nanahoshi-mona-ui-combo-box.mjs +12 -11
  19. package/fesm2022/nanahoshi-mona-ui-common.mjs +18 -1
  20. package/fesm2022/nanahoshi-mona-ui-date-picker.mjs +10 -9
  21. package/fesm2022/nanahoshi-mona-ui-datetime-picker.mjs +10 -9
  22. package/fesm2022/nanahoshi-mona-ui-dialog.mjs +2 -2
  23. package/fesm2022/nanahoshi-mona-ui-dropdown-button.mjs +2 -2
  24. package/fesm2022/nanahoshi-mona-ui-dropdown-list.mjs +10 -9
  25. package/fesm2022/nanahoshi-mona-ui-editor.mjs +25 -24
  26. package/fesm2022/nanahoshi-mona-ui-expansion-panel.mjs +202 -33
  27. package/fesm2022/nanahoshi-mona-ui-fieldset.mjs +31 -10
  28. package/fesm2022/nanahoshi-mona-ui-filter.mjs +1 -1
  29. package/fesm2022/{nanahoshi-mona-ui-grid-grid-footer-row.component-DhKLnW06.mjs → nanahoshi-mona-ui-grid-grid-footer-row.component-2tVhD2hK.mjs} +2 -2
  30. package/fesm2022/{nanahoshi-mona-ui-grid-grid-list.component-voGbKOiB.mjs → nanahoshi-mona-ui-grid-grid-list.component-BAN70Wcn.mjs} +4 -4
  31. package/fesm2022/{nanahoshi-mona-ui-grid-grid-row.component-HQ1Kv6R9.mjs → nanahoshi-mona-ui-grid-grid-row.component-C_kCaA5b.mjs} +7 -7
  32. package/fesm2022/{nanahoshi-mona-ui-grid-grid-virtual-list.component-PNLJFcuH.mjs → nanahoshi-mona-ui-grid-grid-virtual-list.component-BsNfrAHz.mjs} +4 -4
  33. package/fesm2022/{nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-BO19AVwC.mjs → nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-CEfVa7eo.mjs} +27 -29
  34. package/fesm2022/nanahoshi-mona-ui-grid.mjs +1 -1
  35. package/fesm2022/nanahoshi-mona-ui-i18n-icu.mjs +146 -5
  36. package/fesm2022/nanahoshi-mona-ui-internal-filter-input.mjs +2 -2
  37. package/fesm2022/nanahoshi-mona-ui-internal-indicator-icon.mjs +1 -1
  38. package/fesm2022/nanahoshi-mona-ui-internal-list.mjs +5 -5
  39. package/fesm2022/nanahoshi-mona-ui-internal-tree.mjs +7 -7
  40. package/fesm2022/nanahoshi-mona-ui-internal.mjs +183 -47
  41. package/fesm2022/nanahoshi-mona-ui-label.mjs +111 -15
  42. package/fesm2022/nanahoshi-mona-ui-list-box.mjs +1 -1
  43. package/fesm2022/nanahoshi-mona-ui-list-view.mjs +1 -1
  44. package/fesm2022/nanahoshi-mona-ui-locales-ar-sa.mjs +111 -5
  45. package/fesm2022/nanahoshi-mona-ui-locales-de-de.mjs +103 -5
  46. package/fesm2022/nanahoshi-mona-ui-locales-es-es.mjs +103 -5
  47. package/fesm2022/nanahoshi-mona-ui-locales-fr-fr.mjs +100 -6
  48. package/fesm2022/nanahoshi-mona-ui-locales-id-id.mjs +90 -5
  49. package/fesm2022/nanahoshi-mona-ui-locales-it-it.mjs +103 -5
  50. package/fesm2022/nanahoshi-mona-ui-locales-ja-jp.mjs +90 -5
  51. package/fesm2022/nanahoshi-mona-ui-locales-ko-kr.mjs +90 -5
  52. package/fesm2022/nanahoshi-mona-ui-locales-pt-br.mjs +103 -5
  53. package/fesm2022/nanahoshi-mona-ui-locales-ru-ru.mjs +105 -5
  54. package/fesm2022/nanahoshi-mona-ui-locales-tr-tr.mjs +103 -5
  55. package/fesm2022/nanahoshi-mona-ui-locales-zh-cn.mjs +90 -5
  56. package/fesm2022/nanahoshi-mona-ui-locales-zh-tw.mjs +90 -5
  57. package/fesm2022/nanahoshi-mona-ui-menubar.mjs +2 -2
  58. package/fesm2022/nanahoshi-mona-ui-multi-select.mjs +14 -13
  59. package/fesm2022/nanahoshi-mona-ui-notification.mjs +1 -1
  60. package/fesm2022/nanahoshi-mona-ui-numeric-text-box.mjs +13 -12
  61. package/fesm2022/nanahoshi-mona-ui-otp-input.mjs +192 -56
  62. package/fesm2022/nanahoshi-mona-ui-pager.mjs +1 -1
  63. package/fesm2022/nanahoshi-mona-ui-placeholder.mjs +3 -1
  64. package/fesm2022/nanahoshi-mona-ui-popup-menu.mjs +2 -2
  65. package/fesm2022/nanahoshi-mona-ui-progress-bar.mjs +60 -29
  66. package/fesm2022/nanahoshi-mona-ui-radio-button.mjs +334 -37
  67. package/fesm2022/nanahoshi-mona-ui-rating.mjs +84 -30
  68. package/fesm2022/nanahoshi-mona-ui-scroll-view.mjs +274 -108
  69. package/fesm2022/nanahoshi-mona-ui-segmented.mjs +127 -37
  70. package/fesm2022/nanahoshi-mona-ui-sheet.mjs +2 -2
  71. package/fesm2022/nanahoshi-mona-ui-sidebar.mjs +595 -170
  72. package/fesm2022/nanahoshi-mona-ui-skeleton.mjs +3 -2
  73. package/fesm2022/nanahoshi-mona-ui-slider.mjs +323 -166
  74. package/fesm2022/nanahoshi-mona-ui-spinner.mjs +167 -82
  75. package/fesm2022/nanahoshi-mona-ui-split-button.mjs +3 -3
  76. package/fesm2022/nanahoshi-mona-ui-splitter.mjs +273 -165
  77. package/fesm2022/nanahoshi-mona-ui-stepper.mjs +219 -132
  78. package/fesm2022/nanahoshi-mona-ui-switch.mjs +84 -32
  79. package/fesm2022/nanahoshi-mona-ui-tabs.mjs +337 -116
  80. package/fesm2022/nanahoshi-mona-ui-text-area.mjs +10 -12
  81. package/fesm2022/nanahoshi-mona-ui-text-box.mjs +21 -8
  82. package/fesm2022/nanahoshi-mona-ui-theme.mjs +444 -88
  83. package/fesm2022/nanahoshi-mona-ui-time-picker.mjs +10 -9
  84. package/fesm2022/nanahoshi-mona-ui-time-selector.mjs +15 -14
  85. package/fesm2022/nanahoshi-mona-ui-tooltip.mjs +17 -3
  86. package/fesm2022/nanahoshi-mona-ui-window.mjs +1 -1
  87. package/i18n/catalogs/en-US.messages.json +90 -5
  88. package/locales/ar-sa/ar-sa.messages.json +90 -5
  89. package/locales/de-de/de-de.messages.json +90 -5
  90. package/locales/es-es/es-es.messages.json +90 -5
  91. package/locales/fr-fr/fr-fr.messages.json +91 -6
  92. package/locales/id-id/id-id.messages.json +90 -5
  93. package/locales/it-it/it-it.messages.json +90 -5
  94. package/locales/ja-jp/ja-jp.messages.json +90 -5
  95. package/locales/ko-kr/ko-kr.messages.json +90 -5
  96. package/locales/pt-br/pt-br.messages.json +90 -5
  97. package/locales/ru-ru/ru-ru.messages.json +90 -5
  98. package/locales/tr-tr/tr-tr.messages.json +90 -5
  99. package/locales/zh-cn/zh-cn.messages.json +90 -5
  100. package/locales/zh-tw/zh-tw.messages.json +90 -5
  101. package/package.json +2 -1
  102. package/styles.css +156 -0
  103. package/types/nanahoshi-mona-ui-auto-complete.d.ts +1 -0
  104. package/types/nanahoshi-mona-ui-avatar.d.ts +18 -11
  105. package/types/nanahoshi-mona-ui-breadcrumb.d.ts +62 -14
  106. package/types/nanahoshi-mona-ui-button-group.d.ts +86 -16
  107. package/types/nanahoshi-mona-ui-button.d.ts +26 -3
  108. package/types/nanahoshi-mona-ui-calendar.d.ts +1 -0
  109. package/types/nanahoshi-mona-ui-card.d.ts +22 -6
  110. package/types/nanahoshi-mona-ui-chart.d.ts +519 -527
  111. package/types/nanahoshi-mona-ui-check-box.d.ts +54 -13
  112. package/types/nanahoshi-mona-ui-chip.d.ts +31 -18
  113. package/types/nanahoshi-mona-ui-circular-progress-bar.d.ts +21 -5
  114. package/types/nanahoshi-mona-ui-collapsible.d.ts +20 -11
  115. package/types/nanahoshi-mona-ui-color-gradient.d.ts +62 -36
  116. package/types/nanahoshi-mona-ui-color-palette.d.ts +65 -27
  117. package/types/nanahoshi-mona-ui-color-picker.d.ts +64 -23
  118. package/types/nanahoshi-mona-ui-combo-box.d.ts +1 -0
  119. package/types/nanahoshi-mona-ui-common.d.ts +28 -2
  120. package/types/nanahoshi-mona-ui-date-picker.d.ts +1 -0
  121. package/types/nanahoshi-mona-ui-datetime-picker.d.ts +1 -0
  122. package/types/nanahoshi-mona-ui-dropdown-list.d.ts +1 -0
  123. package/types/nanahoshi-mona-ui-editor.d.ts +1 -0
  124. package/types/nanahoshi-mona-ui-expansion-panel.d.ts +51 -7
  125. package/types/nanahoshi-mona-ui-fieldset.d.ts +18 -4
  126. package/types/nanahoshi-mona-ui-grid.d.ts +0 -1
  127. package/types/nanahoshi-mona-ui-i18n.d.ts +130 -3
  128. package/types/nanahoshi-mona-ui-internal.d.ts +95 -14
  129. package/types/nanahoshi-mona-ui-label.d.ts +17 -2
  130. package/types/nanahoshi-mona-ui-locales-ar-sa.d.ts +85 -0
  131. package/types/nanahoshi-mona-ui-locales-de-de.d.ts +85 -0
  132. package/types/nanahoshi-mona-ui-locales-es-es.d.ts +85 -0
  133. package/types/nanahoshi-mona-ui-locales-fr-fr.d.ts +85 -0
  134. package/types/nanahoshi-mona-ui-locales-id-id.d.ts +85 -0
  135. package/types/nanahoshi-mona-ui-locales-it-it.d.ts +85 -0
  136. package/types/nanahoshi-mona-ui-locales-ja-jp.d.ts +85 -0
  137. package/types/nanahoshi-mona-ui-locales-ko-kr.d.ts +85 -0
  138. package/types/nanahoshi-mona-ui-locales-pt-br.d.ts +85 -0
  139. package/types/nanahoshi-mona-ui-locales-ru-ru.d.ts +85 -0
  140. package/types/nanahoshi-mona-ui-locales-tr-tr.d.ts +85 -0
  141. package/types/nanahoshi-mona-ui-locales-zh-cn.d.ts +85 -0
  142. package/types/nanahoshi-mona-ui-locales-zh-tw.d.ts +85 -0
  143. package/types/nanahoshi-mona-ui-multi-select.d.ts +1 -0
  144. package/types/nanahoshi-mona-ui-numeric-text-box.d.ts +1 -0
  145. package/types/nanahoshi-mona-ui-otp-input.d.ts +49 -12
  146. package/types/nanahoshi-mona-ui-placeholder.d.ts +2 -1
  147. package/types/nanahoshi-mona-ui-progress-bar.d.ts +21 -9
  148. package/types/nanahoshi-mona-ui-radio-button.d.ts +165 -20
  149. package/types/nanahoshi-mona-ui-rating.d.ts +21 -6
  150. package/types/nanahoshi-mona-ui-scroll-view.d.ts +59 -27
  151. package/types/nanahoshi-mona-ui-segmented.d.ts +52 -24
  152. package/types/nanahoshi-mona-ui-sidebar.d.ts +104 -41
  153. package/types/nanahoshi-mona-ui-skeleton.d.ts +1 -1
  154. package/types/nanahoshi-mona-ui-slider.d.ts +99 -35
  155. package/types/nanahoshi-mona-ui-spinner.d.ts +9 -5
  156. package/types/nanahoshi-mona-ui-splitter.d.ts +31 -10
  157. package/types/nanahoshi-mona-ui-stepper.d.ts +58 -12
  158. package/types/nanahoshi-mona-ui-switch.d.ts +32 -10
  159. package/types/nanahoshi-mona-ui-tabs.d.ts +75 -20
  160. package/types/nanahoshi-mona-ui-text-area.d.ts +7 -7
  161. package/types/nanahoshi-mona-ui-text-box.d.ts +2 -0
  162. package/types/nanahoshi-mona-ui-theme.d.ts +392 -15
  163. package/types/nanahoshi-mona-ui-time-picker.d.ts +1 -0
  164. package/types/nanahoshi-mona-ui-time-selector.d.ts +1 -0
  165. package/types/nanahoshi-mona-ui-tooltip.d.ts +7 -1
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { ElementRef, Signal, DestroyRef } from '@angular/core';
2
+ import { InjectionToken, Signal, ElementRef, DestroyRef } from '@angular/core';
3
3
  import { OverlayRef, ConnectionPositionPair } from '@angular/cdk/overlay';
4
4
  import { Observable } from 'rxjs';
5
5
 
@@ -20,9 +20,9 @@ interface ColorScheme {
20
20
  }
21
21
 
22
22
  interface RGB {
23
- r: number | null;
24
- g: number | null;
25
23
  b: number | null;
24
+ g: number | null;
25
+ r: number | null;
26
26
  }
27
27
  interface RGBA extends RGB {
28
28
  a: number | null;
@@ -41,16 +41,14 @@ type HSVChannel = keyof HSV;
41
41
  type Channel = RGBAChannel | HSVChannel;
42
42
  interface HSL {
43
43
  h: number | null;
44
- s: number | null;
45
44
  l: number | null;
45
+ s: number | null;
46
46
  }
47
47
  interface HSLA extends HSL {
48
48
  a: number | null;
49
49
  }
50
50
 
51
51
  declare const isValidHex: (hex: string) => boolean;
52
- declare const isValidHsla: (hslaText: string) => boolean;
53
- declare const isValidRgb: (rgbText: string) => boolean;
54
52
 
55
53
  declare const hex2rgba: (hex: string) => RGBA;
56
54
 
@@ -62,11 +60,27 @@ declare const rgba2hex: (r: number | null, g: number | null, b: number | null, a
62
60
 
63
61
  declare const rgba2hsla: (red: number | null, green: number | null, blue: number | null, alpha: number | null) => HSLA;
64
62
 
65
- declare const rgba2hsva: (r: number | null, g: number | null, b: number | null, a: number | null) => HSVA;
66
-
67
- declare const string2Hsla: (hslText: string) => HSLA;
63
+ /**
64
+ * Reads a CSS color. Hex, `rgb()` and `hsl()` in both their comma and space forms need nothing but the text; with a
65
+ * `document`, anything else the browser can paint is read through a canvas.
66
+ * @returns The channels, each from 0 to 255, or null when the text isn't a color.
67
+ */
68
+ declare const parseColor: (text: string, document?: Document) => RGBA | null;
69
+ /**
70
+ * A key that is equal for two spellings of the same color, such as `#ABC`, `#aabbcc` and `rgb(170, 187, 204)`. Text that
71
+ * can't be read as a color only compares equal to itself, ignoring case.
72
+ */
73
+ declare const colorKey: (text: string, document?: Document) => string;
74
+ /**
75
+ * The shortest opacity, as CSS writes it, that still reads back as the same 8-bit alpha. A saved `0.5` stays `0.5`.
76
+ */
77
+ declare const formatAlpha: (alpha: number) => number;
68
78
 
69
- declare const string2rgba: (rgbText: string) => RGBA;
79
+ /**
80
+ * Hue, saturation and value are left unrounded, so converting to RGB and back returns the same color. Round them for
81
+ * display only.
82
+ */
83
+ declare const rgba2hsva: (r: number | null, g: number | null, b: number | null, a: number | null) => HSVA;
70
84
 
71
85
  type Action<P = void, R = void> = (arg: P) => R;
72
86
 
@@ -89,6 +103,59 @@ declare const removeAriaReference: (element: Element, attribute: string, id: str
89
103
  */
90
104
  declare const createElementControlId: (level?: number, length?: number) => string;
91
105
 
106
+ /**
107
+ * Whether the enclosing `mona-fieldset` is disabled. A native `<fieldset disabled>` reaches only native controls,
108
+ * so the fieldset also provides this for controls that draw their own focusable element.
109
+ */
110
+ declare const MONA_FIELDSET_DISABLED: InjectionToken<Signal<boolean>>;
111
+ /**
112
+ * Combines a control's own `disabled` with the enclosing `mona-fieldset`. Call it from an injection context.
113
+ *
114
+ * @param disabled Reads the control's own disabled state. It runs lazily, so it may read an input declared later.
115
+ */
116
+ declare function injectEffectiveDisabled(disabled: () => boolean): Signal<boolean>;
117
+
118
+ /**
119
+ * A control wrapped by a `mona-label` that has no native input, so the browser can't associate them.
120
+ */
121
+ interface MonaLabelledControl {
122
+ readonly activate: () => void;
123
+ readonly element: HTMLElement;
124
+ /** Whether the control has a name of its own, through `aria-label` or `aria-labelledby`. */
125
+ readonly named: () => boolean;
126
+ }
127
+ interface MonaLabelContext {
128
+ /** Id of the element holding the label's caption, or null when the label has no caption of its own. */
129
+ readonly captionId: Signal<string | null>;
130
+ /** Registers a wrapped control and returns the function that removes it. */
131
+ readonly register: (control: MonaLabelledControl) => () => void;
132
+ }
133
+ /**
134
+ * Provided by `mona-label` to the content it wraps.
135
+ */
136
+ declare const MONA_LABEL: InjectionToken<MonaLabelContext>;
137
+ interface LabelAssociationOptions {
138
+ /**
139
+ * What a click on the caption does for a wrapped control. Leave it out when the control has a native input, since
140
+ * the browser already handles that click.
141
+ */
142
+ readonly activate?: () => void;
143
+ readonly ariaLabel: () => string | null | undefined;
144
+ readonly ariaLabelledBy: () => string | null | undefined;
145
+ /** False for a control that renders its own `<label>`, whose text must stay its name. */
146
+ readonly wrapped?: boolean;
147
+ }
148
+ interface LabelAssociation {
149
+ /** The id for `aria-labelledby`. An explicit `aria-labelledby` wins, and an explicit `aria-label` turns it off. */
150
+ readonly labelledBy: Signal<string | null>;
151
+ /** Called by a label that points at the control through `[for]`. */
152
+ readonly setLabelledBy: (id: string | null) => void;
153
+ }
154
+ /**
155
+ * Connects a control to a `mona-label` or `label[monaLabel]` that names it, by wrapping it or through `[for]`.
156
+ */
157
+ declare function injectLabelAssociation(options: LabelAssociationOptions): LabelAssociation;
158
+
92
159
  /**
93
160
  * Whether a closing popup may move focus back to its trigger without taking it from somewhere the user put it.
94
161
  * That holds while focus is on the page itself or inside one of `containers`, usually the trigger and the popup.
@@ -103,15 +170,22 @@ declare function focusCanReturn(document: Document, ...containers: ReadonlyArray
103
170
  */
104
171
  declare function focusElement(host: HTMLElement, element: HTMLElement | ElementRef<HTMLElement> | string): HTMLElement | null;
105
172
 
173
+ interface InertOutsideOptions {
174
+ /** Elements that manage themselves, or have to stay usable beside the modal. */
175
+ readonly keep?: (element: Element) => boolean;
176
+ /** Where the walk up stops, for a modal that only claims part of the page. Defaults to `<body>`. */
177
+ readonly stopAt?: Element | null;
178
+ }
106
179
  /**
107
180
  * Makes everything outside a modal overlay inert, so assistive technology, the pointer and Tab can't reach the page
108
181
  * behind it. Walking up from `element` to `<body>`, every sibling is made inert, except that inside the CDK overlay
109
182
  * container only the overlays opened before this one are: popups opened later (a dropdown inside the dialog) stay
110
183
  * usable. Elements that were inert already are left as they are.
111
184
  * @param element the overlay's host element (the CDK overlay wrapper)
185
+ * @param options what to leave alone, and where to stop
112
186
  * @returns the function that releases what this call made inert
113
187
  */
114
- declare const inertOutside: (element: Element) => (() => void);
188
+ declare const inertOutside: (element: Element, options?: InertOutsideOptions) => (() => void);
115
189
 
116
190
  /**
117
191
  * The text of the elements an `aria-labelledby` value points to, joined with spaces, for names built from a
@@ -160,6 +234,13 @@ type VariantInputs<T> = {
160
234
  [K in keyof T]-?: Signal<T[K]>;
161
235
  };
162
236
 
237
+ /**
238
+ * What says a row is selected besides its tint, which is faint in every theme and gone in forced colors. The row
239
+ * has to be positioned.
240
+ */
241
+ declare const themeSelectionBarClasses = "\n before:absolute before:inset-y-0 before:start-0 before:w-0.5 before:bg-(--color-selected-border)\n before:forced-color-adjust-none forced-colors:before:bg-[Highlight]\n";
242
+ /** A border in the text's color, for a selected control whose fill doesn't say it alone. */
243
+ declare const themeSelectionBorderClasses = "\n relative\n after:pointer-events-none after:absolute after:inset-0\n after:rounded-[inherit] after:border-2 after:border-current\n";
163
244
  declare const themeControlBackdropClasses = "\n [background-image:var(--mona-effect-control-background-image,none)]\n [backdrop-filter:var(--mona-effect-control-backdrop-filter,none)]\n [-webkit-backdrop-filter:var(--mona-effect-control-backdrop-filter,none)]\n";
164
245
  declare const themeControlSurfaceClasses = "\n [background-color:var(--mona-effect-control-background-color,var(--color-input-background))]\n \n [background-image:var(--mona-effect-control-background-image,none)]\n [backdrop-filter:var(--mona-effect-control-backdrop-filter,none)]\n [-webkit-backdrop-filter:var(--mona-effect-control-backdrop-filter,none)]\n\n";
165
246
  declare const themeRaisedBackdropClasses = "\n [background-image:var(--mona-effect-raised-background-image,none)]\n [backdrop-filter:var(--mona-effect-raised-backdrop-filter,none)]\n [-webkit-backdrop-filter:var(--mona-effect-raised-backdrop-filter,none)]\n";
@@ -276,7 +357,7 @@ declare enum NavigationKeys {
276
357
  PageUp = "PageUp",
277
358
  Space = " "
278
359
  }
279
- declare const NavigationKeysList: readonly string[];
360
+ declare const navigationKeysList: readonly string[];
280
361
  declare const isNavigationKey: (key: string) => boolean;
281
362
 
282
363
  /**
@@ -297,5 +378,5 @@ declare const isTypeaheadKey: (key: string, modifiers?: TypeaheadModifiers) => b
297
378
  declare const TYPEAHEAD_RESET_DELAY = 200;
298
379
  declare const setupTypeahead: (typeaheadKey$: Observable<string>) => Observable<string>;
299
380
 
300
- export { AttributeBinderDirective, HOVER_GRACE, HoverIntent, NavigationKeys, NavigationKeysList, RovingToolbar, TYPEAHEAD_RESET_DELAY, addAriaReference, createElementControlId, focusCanReturn, focusElement, hex2rgba, hsla2hsva, hsva2rgba, inertOutside, injectLabelledByText, isNavigationKey, isTypeaheadKey, isValidHex, isValidHsla, isValidRgb, listenForHover, onDisconnect, overlaySidePositions, positionGlobalOverlay, removeAriaReference, resolveOverlaySide, restoreOverlayScroll, rgba2hex, rgba2hsla, rgba2hsva, rxFromResize, rxTimeout, setupTypeahead, sideOfPosition, string2Hsla, string2rgba, themeControlBackdropClasses, themeControlSurfaceClasses, themeOverlayBackdropClasses, themeOverlaySurfaceClasses, themeRaisedBackdropClasses, themeRaisedSurfaceClasses, toCssValue };
301
- export type { Action, AttributeConfig, Channel, ColorScheme, GlobalOverlayPosition, HSL, HSLA, HSV, HSVA, HSVChannel, HoverIntentConfig, HoverSource, OverlaySide, PhysicalOverlaySide, RGB, RGBA, RGBAChannel, RGBChannel, TypeaheadModifiers, VariantInputs };
381
+ export { AttributeBinderDirective, HOVER_GRACE, HoverIntent, MONA_FIELDSET_DISABLED, MONA_LABEL, NavigationKeys, RovingToolbar, TYPEAHEAD_RESET_DELAY, addAriaReference, colorKey, createElementControlId, focusCanReturn, focusElement, formatAlpha, hex2rgba, hsla2hsva, hsva2rgba, inertOutside, injectEffectiveDisabled, injectLabelAssociation, injectLabelledByText, isNavigationKey, isTypeaheadKey, isValidHex, listenForHover, navigationKeysList, onDisconnect, overlaySidePositions, parseColor, positionGlobalOverlay, removeAriaReference, resolveOverlaySide, restoreOverlayScroll, rgba2hex, rgba2hsla, rgba2hsva, rxFromResize, rxTimeout, setupTypeahead, sideOfPosition, themeControlBackdropClasses, themeControlSurfaceClasses, themeOverlayBackdropClasses, themeOverlaySurfaceClasses, themeRaisedBackdropClasses, themeRaisedSurfaceClasses, themeSelectionBarClasses, themeSelectionBorderClasses, toCssValue };
382
+ export type { Action, AttributeConfig, Channel, ColorScheme, GlobalOverlayPosition, HSL, HSLA, HSV, HSVA, HSVChannel, HoverIntentConfig, HoverSource, InertOutsideOptions, LabelAssociation, LabelAssociationOptions, MonaLabelContext, MonaLabelledControl, OverlaySide, PhysicalOverlaySide, RGB, RGBA, RGBAChannel, RGBChannel, TypeaheadModifiers, VariantInputs };
@@ -1,13 +1,21 @@
1
1
  import * as _angular_core from '@angular/core';
2
+ import { ElementRef } from '@angular/core';
3
+ import * as _nanahoshi_mona_ui_i18n from '@nanahoshi/mona-ui/i18n';
2
4
 
3
5
  interface LabelFocusable {
6
+ /** Runs instead of `focus()` on a click, for a control a native label would activate. */
7
+ activateFromLabel?(): void;
4
8
  focus(options?: FocusOptions): void;
9
+ /** Receives the id of the label's text, so the control can use it for `aria-labelledby`. */
10
+ setLabelledBy?(id: string | null): void;
5
11
  }
6
12
  type LabelTarget = string | LabelFocusable | null | undefined;
7
13
 
8
14
  declare class LabelDirective {
15
+ #private;
9
16
  protected readonly classes: _angular_core.Signal<string>;
10
17
  protected readonly forAttribute: _angular_core.Signal<string | null>;
18
+ protected readonly labelId: string;
11
19
  /**
12
20
  * @description Associates the label with a native control ID or a target that exposes a public `focus()` method.
13
21
  * String values are reflected as the native `for` attribute. Object targets receive focus when the label is clicked.
@@ -19,15 +27,21 @@ declare class LabelDirective {
19
27
  * @default ""
20
28
  */
21
29
  readonly userClass: _angular_core.InputSignal<string>;
30
+ constructor();
22
31
  protected onLabelClick(event: MouseEvent): void;
23
32
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<LabelDirective, never>;
24
33
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<LabelDirective, "label[monaLabel]", never, { "for": { "alias": "for"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
25
34
  }
26
35
 
27
36
  declare class LabelComponent {
37
+ #private;
28
38
  protected readonly captionClasses: string;
39
+ protected readonly captionElementId: string;
29
40
  protected readonly classes: _angular_core.Signal<string>;
30
41
  protected readonly forAttribute: _angular_core.Signal<string | null>;
42
+ protected readonly labelElementId: string;
43
+ protected readonly labelRef: _angular_core.Signal<ElementRef<HTMLLabelElement>>;
44
+ protected readonly messages: _angular_core.Signal<_nanahoshi_mona_ui_i18n.MonaLabelMessages>;
31
45
  protected readonly optionalClasses: string;
32
46
  /**
33
47
  * @description Associates the label with a native control ID or a target that exposes a public `focus()` method.
@@ -39,10 +53,10 @@ declare class LabelComponent {
39
53
  * @description Whether to display optional-field text next to the caption.
40
54
  * @default false
41
55
  */
42
- readonly optional: _angular_core.InputSignal<boolean>;
56
+ readonly optional: _angular_core.InputSignalWithTransform<boolean, unknown>;
43
57
  /**
44
58
  * @description Text displayed when `optional` is enabled.
45
- * @default "Optional"
59
+ * @default the `label.optional` message
46
60
  */
47
61
  readonly optionalText: _angular_core.InputSignal<string>;
48
62
  /**
@@ -55,6 +69,7 @@ declare class LabelComponent {
55
69
  * @default ""
56
70
  */
57
71
  readonly userClass: _angular_core.InputSignal<string>;
72
+ constructor();
58
73
  protected onLabelClick(event: MouseEvent): void;
59
74
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<LabelComponent, never>;
60
75
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<LabelComponent, "mona-label", never, { "for": { "alias": "for"; "required": false; "isSignal": true; }; "optional": { "alias": "optional"; "required": false; "isSignal": true; }; "optionalText": { "alias": "optionalText"; "required": false; "isSignal": true; }; "text": { "alias": "text"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
@@ -7,6 +7,7 @@ declare const MONA_AR_SA_LOCALE: {
7
7
  };
8
8
  breadcrumb: {
9
9
  breadcrumb: string;
10
+ showFullPath: string;
10
11
  };
11
12
  buttonGroup: {
12
13
  buttonGroup: string;
@@ -32,59 +33,129 @@ declare const MONA_AR_SA_LOCALE: {
32
33
  actionsLabel: string;
33
34
  };
34
35
  chart: {
36
+ announcementSeparator: string;
37
+ brushApplied: (count: number) => string;
38
+ brushCleared: string;
39
+ brushRange: (from: string, to: string) => string;
40
+ category: string;
41
+ categoryFallbackName: (index: number) => string;
42
+ categoryRange: (from: string, to: string) => string;
35
43
  change: string;
44
+ changeValue: (change: string) => string;
36
45
  chart: string;
37
46
  chartLegend: string;
47
+ chartRoleDescription: string;
38
48
  close: string;
39
49
  closeAbbreviation: string;
40
50
  colorScale: string;
41
51
  conversion: string;
52
+ conversionOfPrevious: (rate: string) => string;
53
+ dataTableTruncated: (shown: number, total: number) => string;
54
+ decrease: string;
55
+ decreaseAnnouncement: (delta: string, from: string, to: string) => string;
42
56
  divergingRangeDescription: (title: string, minimum: string, midpoint: string, maximum: string) => string;
43
57
  dropOff: string;
58
+ dropOffValue: (value: string) => string;
44
59
  falling: string;
60
+ gaugeRange: (minimum: string, maximum: string) => string;
45
61
  high: string;
46
62
  highAbbreviation: string;
63
+ increase: string;
64
+ increaseAnnouncement: (delta: string, from: string, to: string) => string;
65
+ itemDeselected: (item: string) => string;
66
+ itemFallbackName: (index: number) => string;
67
+ itemSelected: (item: string) => string;
68
+ keyboardHelp: string;
47
69
  labelValueSeparator: string;
70
+ labeledValue: (label: string, value: string) => string;
48
71
  low: string;
49
72
  lowAbbreviation: string;
73
+ noChange: string;
74
+ noChangeAnnouncement: (value: string) => string;
50
75
  noData: string;
76
+ ohlcValues: (open: string, high: string, low: string, close: string) => string;
51
77
  open: string;
52
78
  openAbbreviation: string;
53
79
  overall: string;
80
+ overallConversion: (rate: string) => string;
81
+ pannedDown: string;
82
+ pannedLeft: string;
83
+ pannedRight: string;
84
+ pannedUp: string;
85
+ pathSeparator: string;
86
+ pointPosition: (position: number, total: number) => string;
54
87
  range: string;
55
88
  rangeDescription: (title: string, minimum: string, maximum: string) => string;
89
+ rangeValue: (from: string, to: string) => string;
56
90
  rising: string;
57
91
  runningTotal: string;
92
+ seriesFallbackName: (index: number) => string;
93
+ seriesHidden: (series: string) => string;
94
+ seriesShown: (series: string) => string;
95
+ seriesSummary: (count: number, names: string) => string;
96
+ seriesValueRange: (series: string, minimum: string, maximum: string) => string;
97
+ shareOfTotal: (share: string) => string;
58
98
  size: string;
99
+ sizeValue: (size: string) => string;
100
+ stackShare: (share: string) => string;
101
+ stageFallbackName: (index: number) => string;
102
+ stagePosition: (position: number, total: number) => string;
103
+ stepFallbackName: (index: number) => string;
104
+ stepPosition: (position: number, total: number) => string;
105
+ subtotal: string;
106
+ subtotalAnnouncement: (value: string) => string;
107
+ total: string;
108
+ totalAnnouncement: (value: string) => string;
109
+ treemapGroup: (count: number) => string;
110
+ treemapLeaf: string;
59
111
  unchanged: string;
60
112
  value: string;
113
+ valueRange: (from: string, to: string) => string;
114
+ viewportResetToDefault: string;
115
+ viewportResetToFull: string;
61
116
  visualIndicatorClamped: string;
117
+ zoomedIn: string;
118
+ zoomedOut: string;
62
119
  };
63
120
  chip: {
64
121
  removeLabel: (label?: string) => string;
65
122
  };
66
123
  colorGradient: {
124
+ alpha: string;
125
+ alphaText: (opacity: number) => string;
67
126
  apply: string;
127
+ blue: string;
68
128
  cancel: string;
69
129
  clearColor: string;
130
+ colorCopied: string;
131
+ colorGradient: string;
70
132
  copyAsHex: string;
71
133
  copyAsRgb: string;
72
134
  copyColor: string;
135
+ copyFailed: string;
73
136
  currentColor: string;
137
+ green: string;
138
+ hexColor: string;
139
+ hue: string;
74
140
  previousColor: string;
141
+ red: string;
142
+ saturation: string;
75
143
  saturationAndValue: string;
76
144
  saturationAndValueText: (saturation: number, value: number) => string;
77
145
  switchColorMode: string;
146
+ value: string;
78
147
  };
79
148
  colorPalette: {
80
149
  color: (color: string) => string;
81
150
  colorPalette: string;
151
+ namedColor: (name: string, color: string) => string;
82
152
  };
83
153
  colorPicker: {
84
154
  clearColor: string;
85
155
  colorGradientPicker: string;
86
156
  colorPalettePicker: string;
87
157
  colorPicker: string;
158
+ noColor: string;
88
159
  };
89
160
  comboBox: {
90
161
  clear: string;
@@ -274,6 +345,9 @@ declare const MONA_AR_SA_LOCALE: {
274
345
  sortOrder: (position: number) => string;
275
346
  toolbar: string;
276
347
  };
348
+ label: {
349
+ optional: string;
350
+ };
277
351
  list: {
278
352
  filterList: string;
279
353
  loading: string;
@@ -339,6 +413,9 @@ declare const MONA_AR_SA_LOCALE: {
339
413
  previousPageLabel: string;
340
414
  rangeStatus: (start: number, end: number, total: number) => string;
341
415
  };
416
+ progressBar: {
417
+ label: string;
418
+ };
342
419
  rating: {
343
420
  notRated: string;
344
421
  valueText: (value: number, max: number) => string;
@@ -348,6 +425,7 @@ declare const MONA_AR_SA_LOCALE: {
348
425
  nextPage: string;
349
426
  page: (current: number) => string;
350
427
  pageOf: (current: number, total: number) => string;
428
+ pages: string;
351
429
  previousPage: string;
352
430
  scrollPagerNext: string;
353
431
  scrollPagerPrevious: string;
@@ -356,6 +434,10 @@ declare const MONA_AR_SA_LOCALE: {
356
434
  sheet: {
357
435
  closeSheet: string;
358
436
  };
437
+ sidebar: {
438
+ drawerLabel: string;
439
+ rail: string;
440
+ };
359
441
  slider: {
360
442
  maximumValue: string;
361
443
  minimumValue: string;
@@ -378,6 +460,9 @@ declare const MONA_AR_SA_LOCALE: {
378
460
  resizer: string;
379
461
  };
380
462
  stepper: {
463
+ stepCompleted: string;
464
+ stepInvalid: string;
465
+ stepPosition: (current: number, total: number) => string;
381
466
  stepProgress: string;
382
467
  stepper: string;
383
468
  };
@@ -7,6 +7,7 @@ declare const MONA_DE_DE_LOCALE: {
7
7
  };
8
8
  breadcrumb: {
9
9
  breadcrumb: string;
10
+ showFullPath: string;
10
11
  };
11
12
  buttonGroup: {
12
13
  buttonGroup: string;
@@ -32,59 +33,129 @@ declare const MONA_DE_DE_LOCALE: {
32
33
  actionsLabel: string;
33
34
  };
34
35
  chart: {
36
+ announcementSeparator: string;
37
+ brushApplied: (count: number) => string;
38
+ brushCleared: string;
39
+ brushRange: (from: string, to: string) => string;
40
+ category: string;
41
+ categoryFallbackName: (index: number) => string;
42
+ categoryRange: (from: string, to: string) => string;
35
43
  change: string;
44
+ changeValue: (change: string) => string;
36
45
  chart: string;
37
46
  chartLegend: string;
47
+ chartRoleDescription: string;
38
48
  close: string;
39
49
  closeAbbreviation: string;
40
50
  colorScale: string;
41
51
  conversion: string;
52
+ conversionOfPrevious: (rate: string) => string;
53
+ dataTableTruncated: (shown: number, total: number) => string;
54
+ decrease: string;
55
+ decreaseAnnouncement: (delta: string, from: string, to: string) => string;
42
56
  divergingRangeDescription: (title: string, minimum: string, midpoint: string, maximum: string) => string;
43
57
  dropOff: string;
58
+ dropOffValue: (value: string) => string;
44
59
  falling: string;
60
+ gaugeRange: (minimum: string, maximum: string) => string;
45
61
  high: string;
46
62
  highAbbreviation: string;
63
+ increase: string;
64
+ increaseAnnouncement: (delta: string, from: string, to: string) => string;
65
+ itemDeselected: (item: string) => string;
66
+ itemFallbackName: (index: number) => string;
67
+ itemSelected: (item: string) => string;
68
+ keyboardHelp: string;
47
69
  labelValueSeparator: string;
70
+ labeledValue: (label: string, value: string) => string;
48
71
  low: string;
49
72
  lowAbbreviation: string;
73
+ noChange: string;
74
+ noChangeAnnouncement: (value: string) => string;
50
75
  noData: string;
76
+ ohlcValues: (open: string, high: string, low: string, close: string) => string;
51
77
  open: string;
52
78
  openAbbreviation: string;
53
79
  overall: string;
80
+ overallConversion: (rate: string) => string;
81
+ pannedDown: string;
82
+ pannedLeft: string;
83
+ pannedRight: string;
84
+ pannedUp: string;
85
+ pathSeparator: string;
86
+ pointPosition: (position: number, total: number) => string;
54
87
  range: string;
55
88
  rangeDescription: (title: string, minimum: string, maximum: string) => string;
89
+ rangeValue: (from: string, to: string) => string;
56
90
  rising: string;
57
91
  runningTotal: string;
92
+ seriesFallbackName: (index: number) => string;
93
+ seriesHidden: (series: string) => string;
94
+ seriesShown: (series: string) => string;
95
+ seriesSummary: (count: number, names: string) => string;
96
+ seriesValueRange: (series: string, minimum: string, maximum: string) => string;
97
+ shareOfTotal: (share: string) => string;
58
98
  size: string;
99
+ sizeValue: (size: string) => string;
100
+ stackShare: (share: string) => string;
101
+ stageFallbackName: (index: number) => string;
102
+ stagePosition: (position: number, total: number) => string;
103
+ stepFallbackName: (index: number) => string;
104
+ stepPosition: (position: number, total: number) => string;
105
+ subtotal: string;
106
+ subtotalAnnouncement: (value: string) => string;
107
+ total: string;
108
+ totalAnnouncement: (value: string) => string;
109
+ treemapGroup: (count: number) => string;
110
+ treemapLeaf: string;
59
111
  unchanged: string;
60
112
  value: string;
113
+ valueRange: (from: string, to: string) => string;
114
+ viewportResetToDefault: string;
115
+ viewportResetToFull: string;
61
116
  visualIndicatorClamped: string;
117
+ zoomedIn: string;
118
+ zoomedOut: string;
62
119
  };
63
120
  chip: {
64
121
  removeLabel: (label?: string) => string;
65
122
  };
66
123
  colorGradient: {
124
+ alpha: string;
125
+ alphaText: (opacity: number) => string;
67
126
  apply: string;
127
+ blue: string;
68
128
  cancel: string;
69
129
  clearColor: string;
130
+ colorCopied: string;
131
+ colorGradient: string;
70
132
  copyAsHex: string;
71
133
  copyAsRgb: string;
72
134
  copyColor: string;
135
+ copyFailed: string;
73
136
  currentColor: string;
137
+ green: string;
138
+ hexColor: string;
139
+ hue: string;
74
140
  previousColor: string;
141
+ red: string;
142
+ saturation: string;
75
143
  saturationAndValue: string;
76
144
  saturationAndValueText: (saturation: number, value: number) => string;
77
145
  switchColorMode: string;
146
+ value: string;
78
147
  };
79
148
  colorPalette: {
80
149
  color: (color: string) => string;
81
150
  colorPalette: string;
151
+ namedColor: (name: string, color: string) => string;
82
152
  };
83
153
  colorPicker: {
84
154
  clearColor: string;
85
155
  colorGradientPicker: string;
86
156
  colorPalettePicker: string;
87
157
  colorPicker: string;
158
+ noColor: string;
88
159
  };
89
160
  comboBox: {
90
161
  clear: string;
@@ -274,6 +345,9 @@ declare const MONA_DE_DE_LOCALE: {
274
345
  sortOrder: (position: number) => string;
275
346
  toolbar: string;
276
347
  };
348
+ label: {
349
+ optional: string;
350
+ };
277
351
  list: {
278
352
  filterList: string;
279
353
  loading: string;
@@ -339,6 +413,9 @@ declare const MONA_DE_DE_LOCALE: {
339
413
  previousPageLabel: string;
340
414
  rangeStatus: (start: number, end: number, total: number) => string;
341
415
  };
416
+ progressBar: {
417
+ label: string;
418
+ };
342
419
  rating: {
343
420
  notRated: string;
344
421
  valueText: (value: number, max: number) => string;
@@ -348,6 +425,7 @@ declare const MONA_DE_DE_LOCALE: {
348
425
  nextPage: string;
349
426
  page: (current: number) => string;
350
427
  pageOf: (current: number, total: number) => string;
428
+ pages: string;
351
429
  previousPage: string;
352
430
  scrollPagerNext: string;
353
431
  scrollPagerPrevious: string;
@@ -356,6 +434,10 @@ declare const MONA_DE_DE_LOCALE: {
356
434
  sheet: {
357
435
  closeSheet: string;
358
436
  };
437
+ sidebar: {
438
+ drawerLabel: string;
439
+ rail: string;
440
+ };
359
441
  slider: {
360
442
  maximumValue: string;
361
443
  minimumValue: string;
@@ -378,6 +460,9 @@ declare const MONA_DE_DE_LOCALE: {
378
460
  resizer: string;
379
461
  };
380
462
  stepper: {
463
+ stepCompleted: string;
464
+ stepInvalid: string;
465
+ stepPosition: (current: number, total: number) => string;
381
466
  stepProgress: string;
382
467
  stepper: string;
383
468
  };