@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
@@ -38,6 +38,16 @@ interface FilterableOptions {
38
38
 
39
39
  type Orientation = "horizontal" | "vertical";
40
40
 
41
+ /**
42
+ * A swatch with a name of its own, for a palette whose colors mean something, such as brand colors.
43
+ */
44
+ interface ColorPaletteItem {
45
+ /** Any CSS color. */
46
+ readonly color: string;
47
+ /** What the color is called. Assistive technology reads it, and it shows as a tooltip. */
48
+ readonly name?: string;
49
+ }
50
+
41
51
  type PaletteType = "flat" | "material" | "websafe";
42
52
 
43
53
  type Position = "top" | "right" | "bottom" | "left";
@@ -422,6 +432,22 @@ declare const classInputToClass: (input: ClassInputType) => string;
422
432
  */
423
433
  declare const getPercentage: (value: number, min: number, max: number, precision?: number) => number;
424
434
 
435
+ interface ProgressRange {
436
+ readonly max: number;
437
+ readonly min: number;
438
+ readonly now: number;
439
+ }
440
+ /**
441
+ * Gives the values a progress indicator can report: `value` clamped into the range, with a non-finite `value` read as
442
+ * `min`, the same place `getPercentage` draws it.
443
+ * @param value The current value.
444
+ * @param min The minimum value.
445
+ * @param max The maximum value.
446
+ * @returns The range and the value within it, or `null` when the range itself is invalid, because `min` or `max` isn't
447
+ * finite or `max` isn't above `min`.
448
+ */
449
+ declare const normalizeProgressRange: (value: number, min: number, max: number) => ProgressRange | null;
450
+
425
451
  /**
426
452
  * Moves the items at `indices` by `offset` positions, keeping their relative order. Returns a copy of the array
427
453
  * unchanged when the offset is 0 or not an integer, or when any index is not an integer, is out of bounds, or would
@@ -429,5 +455,5 @@ declare const getPercentage: (value: number, min: number, max: number, precision
429
455
  */
430
456
  declare function moveIndices<T>(array: T[], indices: number[], offset: number): T[];
431
457
 
432
- export { AnyPipe, ContainsPipe, FilterChangeEvent, IterablePatchStore, ObjectPatchStore, PreventableEvent, SlicePipe, TakeFirstPipe, buildNested, classInputToClass, createIterablePatchStore, createObjectPatchStore, deepEquals, deepMerge, getPercentage, isEmptyObject, isPlainObject, mergeInto, mergePatchInto, moveIndices, patchAt, prunePatch, setAt };
433
- export type { ArrayStrategy, BaseChangeStrategy, ClassInputType, ColorMode, ColorOutputFormat, DataType, DeepMergeOptions, DeepPartial, FilterOperator, FilterableOptions, IIterablePatchStore, IObjectPatchStore, IterablePatchStoreOptions, ObjectPatchStoreOptions, Orientation, PaletteType, Path, PathValue, Position, ScrollDirection, SelectionMode, VirtualScrollOptions };
458
+ export { AnyPipe, ContainsPipe, FilterChangeEvent, IterablePatchStore, ObjectPatchStore, PreventableEvent, SlicePipe, TakeFirstPipe, buildNested, classInputToClass, createIterablePatchStore, createObjectPatchStore, deepEquals, deepMerge, getPercentage, isEmptyObject, isPlainObject, mergeInto, mergePatchInto, moveIndices, normalizeProgressRange, patchAt, prunePatch, setAt };
459
+ export type { ArrayStrategy, BaseChangeStrategy, ClassInputType, ColorMode, ColorOutputFormat, ColorPaletteItem, DataType, DeepMergeOptions, DeepPartial, FilterOperator, FilterableOptions, IIterablePatchStore, IObjectPatchStore, IterablePatchStoreOptions, ObjectPatchStoreOptions, Orientation, PaletteType, Path, PathValue, Position, ProgressRange, ScrollDirection, SelectionMode, VirtualScrollOptions };
@@ -28,6 +28,7 @@ declare class DatePickerComponent implements FormValueControl<Date | null>, Drop
28
28
  #private;
29
29
  protected readonly baseClass: _angular_core.Signal<string>;
30
30
  protected readonly decadeCellTemplate: _angular_core.Signal<CalendarDecadeCellTemplateDirective | undefined>;
31
+ protected readonly effectiveDisabled: _angular_core.Signal<boolean>;
31
32
  protected readonly effectiveFormat: _angular_core.Signal<string>;
32
33
  protected readonly expanded: _angular_core.Signal<boolean>;
33
34
  protected readonly inputAttributes: _angular_core.Signal<AttributeConfig>;
@@ -22,6 +22,7 @@ declare class DateTimePickerComponent implements FormValueControl<Date | null>,
22
22
  protected readonly baseClass: _angular_core.Signal<string>;
23
23
  protected readonly dateTabId: string;
24
24
  protected readonly decadeCellTemplate: _angular_core.Signal<CalendarDecadeCellTemplateDirective | undefined>;
25
+ protected readonly effectiveDisabled: _angular_core.Signal<boolean>;
25
26
  protected readonly effectiveFormat: _angular_core.Signal<string>;
26
27
  protected readonly effectiveHourFormat: _angular_core.Signal<HourFormat>;
27
28
  protected readonly expanded: _angular_core.Signal<boolean>;
@@ -41,6 +41,7 @@ declare class DropdownListComponent<TData = unknown, TValue = TData> implements
41
41
  protected readonly baseClass: _angular_core.Signal<string>;
42
42
  protected readonly clearButtonVisible: _angular_core.Signal<boolean>;
43
43
  protected readonly effectiveAriaLabel: _angular_core.Signal<string>;
44
+ protected readonly effectiveDisabled: _angular_core.Signal<boolean>;
44
45
  protected readonly expanded: _angular_core.Signal<boolean>;
45
46
  protected readonly footerTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
46
47
  protected readonly groupHeaderTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
@@ -92,6 +92,7 @@ declare class EditorComponent implements FormValueControl<string> {
92
92
  protected readonly containerClass: _angular_core.Signal<string>;
93
93
  protected readonly editorContainer: _angular_core.Signal<ElementRef<HTMLDivElement>>;
94
94
  protected readonly editorService: EditorService;
95
+ protected readonly effectiveDisabled: _angular_core.Signal<boolean>;
95
96
  protected readonly invalidState: _angular_core.Signal<boolean>;
96
97
  protected readonly messages: _angular_core.Signal<_nanahoshi_mona_ui_i18n.MonaEditorMessages>;
97
98
  protected readonly placeholderClass: _angular_core.Signal<string>;
@@ -1,15 +1,40 @@
1
1
  import * as _angular_core from '@angular/core';
2
- import { TemplateRef } from '@angular/core';
2
+ import { TemplateRef, ElementRef } from '@angular/core';
3
3
  import { CollapsibleConfig } from '@nanahoshi/mona-ui/collapsible';
4
4
  import * as class_variance_authority_types from 'class-variance-authority/types';
5
5
  import { VariantInputs } from '@nanahoshi/mona-ui/internal';
6
6
  import { VariantProps } from 'class-variance-authority';
7
7
 
8
+ /**
9
+ * @description
10
+ * Groups `mona-expansion-panel` elements: only one is open at a time unless `multiple` is set, and Up, Down, Home and End
11
+ * move between their headers. Adds no role of its own, as the pattern asks: each panel brings its heading and region.
12
+ */
13
+ declare class AccordionComponent {
14
+ #private;
15
+ /**
16
+ * @description Lets several panels stay open. Without it, opening a panel closes the others, however it was opened.
17
+ * @default false
18
+ */
19
+ readonly multiple: _angular_core.InputSignalWithTransform<boolean, unknown>;
20
+ constructor();
21
+ protected onKeydown(event: KeyboardEvent): void;
22
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<AccordionComponent, never>;
23
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<AccordionComponent, "mona-accordion", never, { "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
24
+ }
25
+
8
26
  declare const expansionPanelBaseThemeVariants: (props?: ({
9
27
  rounded?: "small" | "medium" | "large" | "none" | null | undefined;
10
28
  } & class_variance_authority_types.ClassProp) | undefined) => string;
29
+ /**
30
+ * Three columns: title, actions, icon. The heading and its button span them all through subgrid and put the title and
31
+ * icon in the outer two, so the button fills the row while the actions, its sibling, sit in the middle one above it.
32
+ */
11
33
  declare const expansionPanelHeaderThemeVariants: (props?: ({
12
34
  collapsed?: boolean | null | undefined;
35
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
36
+ /** Inset focus, because the panel clips anything outside it. */
37
+ declare const expansionPanelTriggerThemeVariants: (props?: ({
13
38
  disabled?: boolean | null | undefined;
14
39
  } & class_variance_authority_types.ClassProp) | undefined) => string;
15
40
  declare const expansionPanelIconContainerThemeVariants: (props?: ({
@@ -22,21 +47,29 @@ type ExpansionPanelBaseVariantProps = VariantProps<typeof expansionPanelBaseThem
22
47
  type ExpansionPanelBaseVariantInput = VariantInputs<ExpansionPanelBaseVariantProps>;
23
48
  type ExpansionPanelHeaderVariantProps = VariantProps<typeof expansionPanelHeaderThemeVariants>;
24
49
  type ExpansionPanelHeaderVariantInput = VariantInputs<ExpansionPanelHeaderVariantProps>;
50
+ type ExpansionPanelTriggerVariantProps = VariantProps<typeof expansionPanelTriggerThemeVariants>;
51
+ type ExpansionPanelTriggerVariantInput = VariantInputs<ExpansionPanelTriggerVariantProps>;
25
52
  type ExpansionPanelContentVariantProps = VariantProps<typeof expansionPanelContentThemeVariants>;
26
53
  type ExpansionPanelContentVariantInput = VariantInputs<ExpansionPanelContentVariantProps>;
27
54
  type ExpansionPanelIconContainerVariantProps = VariantProps<typeof expansionPanelIconContainerThemeVariants>;
28
55
  type ExpansionPanelIconContainerVariantInput = VariantInputs<ExpansionPanelIconContainerVariantProps>;
29
- type ExpansionPanelVariantInput = ExpansionPanelBaseVariantInput & Omit<ExpansionPanelHeaderVariantInput, "collapsed"> & ExpansionPanelContentVariantInput & Omit<ExpansionPanelIconContainerVariantInput, "hasTemplate">;
56
+ type ExpansionPanelVariantInput = ExpansionPanelBaseVariantInput & Omit<ExpansionPanelHeaderVariantInput, "collapsed"> & ExpansionPanelTriggerVariantInput & ExpansionPanelContentVariantInput & Omit<ExpansionPanelIconContainerVariantInput, "hasTemplate">;
30
57
 
31
58
  declare class ExpansionPanelComponent implements ExpansionPanelVariantInput, CollapsibleConfig {
59
+ #private;
60
+ protected readonly actionsClass: _angular_core.Signal<string>;
32
61
  protected readonly actionsTemplateList: _angular_core.Signal<readonly TemplateRef<any>[]>;
33
62
  protected readonly baseClass: _angular_core.Signal<string>;
34
63
  protected readonly contentClass: _angular_core.Signal<string>;
35
64
  protected readonly headerClass: _angular_core.Signal<string>;
36
65
  protected readonly headerTitleClass: _angular_core.Signal<string>;
66
+ protected readonly headingClass: _angular_core.Signal<string>;
37
67
  protected readonly iconContainerClass: _angular_core.Signal<string>;
38
68
  protected readonly iconTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
39
69
  protected readonly titleTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
70
+ protected readonly triggerClass: _angular_core.Signal<string>;
71
+ protected readonly triggerElement: _angular_core.Signal<ElementRef<HTMLButtonElement>>;
72
+ protected readonly triggerId: string;
40
73
  /**
41
74
  * @description Always enabled. Satisfies the `CollapsibleConfig` contract for `monaCollapsibleTrigger`;
42
75
  * this component doesn't use `monaCollapsibleContent`, so no animation ever consults it.
@@ -44,22 +77,28 @@ declare class ExpansionPanelComponent implements ExpansionPanelVariantInput, Col
44
77
  readonly animate: _angular_core.Signal<boolean>;
45
78
  readonly contentId: string;
46
79
  /**
47
- * @description Disables header interaction, suppressing click and keyboard toggling.
80
+ * @description Disables the header: toggling by click or key, and the actions in it.
48
81
  * @default false
49
82
  */
50
- readonly disabled: _angular_core.InputSignal<boolean>;
83
+ readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
51
84
  /**
52
85
  * @description Sets whether the expansion panel is expanded or collapsed.
53
86
  * @default false
54
87
  */
55
88
  readonly expanded: _angular_core.ModelSignal<boolean>;
89
+ /**
90
+ * @description The level of the heading around the header's button, from 1 to 6. Set it to fit the page's outline, or
91
+ * to `null` for no heading.
92
+ * @default 3
93
+ */
94
+ readonly headingLevel: _angular_core.InputSignalWithTransform<number | null, unknown>;
56
95
  /**
57
96
  * @description Sets the border radius of the expansion panel.
58
97
  * @default "medium"
59
98
  */
60
99
  readonly rounded: _angular_core.InputSignal<"small" | "medium" | "large" | "none" | null | undefined>;
61
100
  /**
62
- * @description Sets the title of the expansion panel.
101
+ * @description Sets the title of the expansion panel, which also names its button and region.
63
102
  * @default ""
64
103
  */
65
104
  readonly title: _angular_core.InputSignal<string>;
@@ -68,11 +107,16 @@ declare class ExpansionPanelComponent implements ExpansionPanelVariantInput, Col
68
107
  * @default ""
69
108
  */
70
109
  readonly userClass: _angular_core.InputSignal<string>;
110
+ constructor();
71
111
  collapse(): void;
72
112
  expand(): void;
113
+ /**
114
+ * Moves focus to the panel's header button.
115
+ */
116
+ focus(): void;
73
117
  toggle(): void;
74
118
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<ExpansionPanelComponent, never>;
75
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<ExpansionPanelComponent, "mona-expansion-panel", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "expanded": { "alias": "expanded"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "userClass": { "alias": "userClass"; "required": false; "isSignal": true; }; }, { "expanded": "expandedChange"; }, ["actionsTemplateList", "iconTemplate", "titleTemplate"], ["*"], true, never>;
119
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ExpansionPanelComponent, "mona-expansion-panel", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "expanded": { "alias": "expanded"; "required": false; "isSignal": true; }; "headingLevel": { "alias": "headingLevel"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, { "expanded": "expandedChange"; }, ["actionsTemplateList", "iconTemplate", "titleTemplate"], ["*"], true, never>;
76
120
  }
77
121
 
78
122
  declare class ExpansionPanelActionsTemplateDirective {
@@ -90,4 +134,4 @@ declare class ExpansionPanelTitleTemplateDirective {
90
134
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ExpansionPanelTitleTemplateDirective, "ng-template[monaExpansionPanelTitleTemplate]", never, {}, {}, never, never, true, never>;
91
135
  }
92
136
 
93
- export { ExpansionPanelActionsTemplateDirective, ExpansionPanelComponent, ExpansionPanelIconTemplateDirective, ExpansionPanelTitleTemplateDirective };
137
+ export { AccordionComponent, ExpansionPanelActionsTemplateDirective, ExpansionPanelComponent, ExpansionPanelIconTemplateDirective, ExpansionPanelTitleTemplateDirective };
@@ -24,20 +24,33 @@ type FieldsetFieldsetVariantProps = VariantProps<typeof fieldsetThemeVariants>;
24
24
  type FieldsetFieldsetVariantInput = VariantInputs<FieldsetFieldsetVariantProps>;
25
25
  type FieldsetLegendVariantProps = VariantProps<typeof fieldsetLegendThemeVariants>;
26
26
  type FieldsetLegendVariantInput = VariantInputs<FieldsetLegendVariantProps>;
27
+ type FieldsetVariantProps = FieldsetBaseVariantProps & FieldsetFieldsetVariantProps & FieldsetLegendVariantProps;
27
28
  type FieldsetVariantInput = FieldsetBaseVariantInput & FieldsetFieldsetVariantInput & Omit<FieldsetLegendVariantInput, "hasTemplate">;
28
29
 
29
30
  declare class FieldsetComponent implements FieldsetVariantInput {
31
+ #private;
30
32
  protected readonly baseClass: _angular_core.Signal<string>;
31
33
  protected readonly fieldsetClass: _angular_core.Signal<string>;
32
34
  protected readonly legendClass: _angular_core.Signal<string>;
33
35
  protected readonly legendTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
34
36
  protected readonly legendVisible: _angular_core.Signal<boolean>;
35
37
  /**
36
- * @description Whether the fieldset and its projected form controls are disabled.
37
- * Reflected as the native `disabled` attribute on the rendered `<fieldset>`.
38
+ * @description Accessible name of the fieldset when it has no legend.
39
+ * @default ""
40
+ */
41
+ readonly ariaLabel: _angular_core.InputSignal<string>;
42
+ /**
43
+ * @description Id of the element that labels the fieldset when it has no legend.
44
+ * @default ""
45
+ */
46
+ readonly ariaLabelledBy: _angular_core.InputSignal<string>;
47
+ /**
48
+ * @description Whether the fieldset and the Mona UI form controls inside it are disabled, including nested fieldsets.
49
+ * Reflected as the native `disabled` attribute on the rendered `<fieldset>`, which also covers native controls.
50
+ * A signal form field inside stays enabled in the form model, so its validation keeps running.
38
51
  * @default false
39
52
  */
40
- readonly disabled: _angular_core.InputSignal<boolean>;
53
+ readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
41
54
  /**
42
55
  * @description The legend text of the fieldset. Shown in the top border as a labelled notch.
43
56
  * Ignored when `monaFieldsetLegendTemplate` is provided.
@@ -60,7 +73,8 @@ declare class FieldsetComponent implements FieldsetVariantInput {
60
73
  */
61
74
  readonly userClass: _angular_core.InputSignal<string>;
62
75
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<FieldsetComponent, never>;
63
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<FieldsetComponent, "mona-fieldset", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "legend": { "alias": "legend"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, ["legendTemplate"], ["*"], true, never>;
76
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<FieldsetComponent, "mona-fieldset", never, { "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "legend": { "alias": "legend"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, ["legendTemplate"], ["*"], true, never>;
64
77
  }
65
78
 
66
79
  export { FieldsetComponent, FieldsetLegendTemplateDirective };
80
+ export type { FieldsetVariantProps };
@@ -1612,7 +1612,6 @@ declare class GridComponent<T> implements GridVariantInput {
1612
1612
  protected onColumnResizeStart(): void;
1613
1613
  protected onColumnSort(column: Column): void;
1614
1614
  /** Delete or Backspace on a group chip, or on its remove button, removes the group. */
1615
- protected onGroupChipKeydown(event: KeyboardEvent, column: Column): void;
1616
1615
  protected onGroupColumnReorder(column: Column, moveAs: "prev" | "next"): void;
1617
1616
  protected onGroupingColumnRemove(event: Event, column: Column): void;
1618
1617
  protected onGroupingColumnSort(column: Column): void;
@@ -16,6 +16,7 @@ interface MonaAutoCompleteMessages {
16
16
 
17
17
  interface MonaBreadcrumbMessages {
18
18
  readonly breadcrumb: string;
19
+ readonly showFullPath: string;
19
20
  }
20
21
 
21
22
  interface MonaButtonGroupMessages {
@@ -172,22 +173,35 @@ interface MonaChipMessages {
172
173
  }
173
174
 
174
175
  interface MonaColorGradientMessages {
176
+ readonly alpha: string;
177
+ readonly alphaText: (opacity: number) => string;
175
178
  readonly apply: string;
179
+ readonly blue: string;
176
180
  readonly cancel: string;
177
181
  readonly clearColor: string;
182
+ readonly colorCopied: string;
183
+ readonly colorGradient: string;
178
184
  readonly copyAsHex: string;
179
185
  readonly copyAsRgb: string;
180
186
  readonly copyColor: string;
187
+ readonly copyFailed: string;
181
188
  readonly currentColor: string;
189
+ readonly green: string;
190
+ readonly hexColor: string;
191
+ readonly hue: string;
182
192
  readonly previousColor: string;
193
+ readonly red: string;
194
+ readonly saturation: string;
183
195
  readonly saturationAndValue: string;
184
196
  readonly saturationAndValueText: (saturation: number, value: number) => string;
185
197
  readonly switchColorMode: string;
198
+ readonly value: string;
186
199
  }
187
200
 
188
201
  interface MonaColorPaletteMessages {
189
202
  readonly color: (color: string) => string;
190
203
  readonly colorPalette: string;
204
+ readonly namedColor: (name: string, color: string) => string;
191
205
  }
192
206
 
193
207
  interface MonaColorPickerMessages {
@@ -195,6 +209,7 @@ interface MonaColorPickerMessages {
195
209
  readonly colorGradientPicker: string;
196
210
  readonly colorPalettePicker: string;
197
211
  readonly colorPicker: string;
212
+ readonly noColor: string;
198
213
  }
199
214
 
200
215
  interface MonaComboBoxMessages {
@@ -246,10 +261,10 @@ interface MonaEditorMessages {
246
261
  readonly alignEnd: string;
247
262
  /** @deprecated No longer rendered: the toolbar aligns to the start and end with `alignStart` and `alignEnd`. */
248
263
  readonly alignLeft: string;
249
- readonly alignmentGroup: string;
250
264
  /** @deprecated No longer rendered: the toolbar aligns to the start and end with `alignStart` and `alignEnd`. */
251
265
  readonly alignRight: string;
252
266
  readonly alignStart: string;
267
+ readonly alignmentGroup: string;
253
268
  readonly altText: string;
254
269
  readonly apply: string;
255
270
  readonly backgroundColor: string;
@@ -409,6 +424,10 @@ interface MonaGridMessages {
409
424
  readonly toolbar: string;
410
425
  }
411
426
 
427
+ interface MonaLabelMessages {
428
+ readonly optional: string;
429
+ }
430
+
412
431
  interface MonaListMessages {
413
432
  readonly filterList: string;
414
433
  /** Status text while a list view is loading. */
@@ -506,6 +525,15 @@ interface MonaPagerMessages {
506
525
  rangeStatus(start: number, end: number, total: number): string;
507
526
  }
508
527
 
528
+ interface MonaProgressBarMessages {
529
+ readonly label: string;
530
+ }
531
+
532
+ interface MonaSidebarMessages {
533
+ readonly drawerLabel: string;
534
+ readonly rail: string;
535
+ }
536
+
509
537
  interface MonaRatingMessages {
510
538
  readonly notRated: string;
511
539
  valueText(value: number, max: number): string;
@@ -516,9 +544,10 @@ interface MonaScrollViewMessages {
516
544
  readonly nextPage: string;
517
545
  readonly page: (current: number) => string;
518
546
  readonly pageOf: (current: number, total: number) => string;
547
+ readonly pages: string;
519
548
  readonly previousPage: string;
520
- readonly scrollPagerPrevious: string;
521
549
  readonly scrollPagerNext: string;
550
+ readonly scrollPagerPrevious: string;
522
551
  readonly slide: string;
523
552
  }
524
553
 
@@ -556,6 +585,9 @@ interface MonaSplitterMessages {
556
585
  }
557
586
 
558
587
  interface MonaStepperMessages {
588
+ readonly stepCompleted: string;
589
+ readonly stepInvalid: string;
590
+ readonly stepPosition: (current: number, total: number) => string;
559
591
  readonly stepProgress: string;
560
592
  readonly stepper: string;
561
593
  }
@@ -672,6 +704,7 @@ interface MonaLocaleMessages {
672
704
  editor: MonaEditorMessages;
673
705
  filter: MonaFilterMessages;
674
706
  grid: MonaGridMessages;
707
+ label: MonaLabelMessages;
675
708
  list: MonaListMessages;
676
709
  listBox: MonaListBoxMessages;
677
710
  multiSelect: MonaMultiSelectMessages;
@@ -679,6 +712,8 @@ interface MonaLocaleMessages {
679
712
  numericTextBox: MonaNumericTextBoxMessages;
680
713
  otpInput: MonaOtpInputMessages;
681
714
  pager: MonaPagerMessages;
715
+ progressBar: MonaProgressBarMessages;
716
+ sidebar: MonaSidebarMessages;
682
717
  rating: MonaRatingMessages;
683
718
  scrollView: MonaScrollViewMessages;
684
719
  sheet: MonaSheetMessages;
@@ -1046,4 +1081,4 @@ declare function pseudoLocalizeCatalog<T extends object>(catalog: T, options?: P
1046
1081
  declare function generatePseudoLocale(catalogs: DeepPartial<MonaLocaleMessages>, options?: GeneratePseudoLocaleOptions): MonaLocale;
1047
1082
 
1048
1083
  export { BIDI_CONTROL_REGEX, MONA_DEFAULT_LOCALE, MONA_FALLBACK_LOCALE_ID, MONA_I18N_CONFIG, MonaDirectionService, MonaI18nService, canonicalizeLocaleId, formatGregorianDateToLocaleString, formatNumber, generatePseudoLocale, getEditDecimalSeparators, getLocaleDateInputFormat, getLocaleDateTimeInputFormat, getLocaleFirstDayOfWeek, getLocaleTimeInputFormat, getNumberFormatter, getNumberGroupingPattern, getNumberSymbols, gregorianDateTime, gregorianDateTimeFromObject, injectComponentDirection, mergeMessages, mergeTwo, normalizeGregorianLocale, normalizeLocalizedDigits, normalizeLocalizedInput, normalizeLocalizedMinus, observeComponentDirection, parseGregorianDate, parseLocalizedDecimal, parseLocalizedNumber, provideMonaI18n, pseudoLocalize, pseudoLocalizeCatalog, resolveComponentDirection, sanitizeDateText, stripBidiControls, tryCanonicalizeLocaleId, validateLocalizedDecimal, validateLocalizedDecimalEdit, validateLocalizedNumber, validateLocalizedNumberEdit };
1049
- export type { CalendarMessages, DatePickerMessages, DateTimePickerMessages, DeepPartial, DialogMessages, DirectionObserverHandle, FilterMessages, GeneratePseudoLocaleOptions, LocaleFirstDayOfWeek, LocaleTimeFormatOptions, LocalizedDecimalEditValidationResult, LocalizedDecimalValidationResult, LocalizedNumberEditValidationResult, LocalizedNumberInvalidReason, LocalizedNumberParseMode, LocalizedNumberValidationResult, MonaAutoCompleteMessages, MonaBreadcrumbMessages, MonaButtonGroupMessages, MonaCalendarMessages, MonaCardMessages, MonaChartMessages, MonaChipMessages, MonaColorGradientMessages, MonaColorPaletteMessages, MonaColorPickerMessages, MonaComboBoxMessages, MonaDatePickerMessages, MonaDateTimePickerMessages, MonaDialogMessages, MonaDropdownListMessages, MonaDropdownsMessages, MonaEditorMessages, MonaFilterMessages, MonaGridMessages, MonaI18nConfig, MonaListBoxMessages, MonaListMessages, MonaLocale, MonaLocaleMessages, MonaMessageNamespace, MonaMessageOverrideOptions, MonaMultiSelectMessages, MonaNotificationMessages, MonaNumericTextBoxMessages, MonaOtpInputMessages, MonaPagerMessages, MonaRatingMessages, MonaScrollViewMessages, MonaSheetMessages, MonaSliderMessages, MonaSpinnerMessages, MonaSplitButtonMessages, MonaSplitterMessages, MonaStepperMessages, MonaTabsMessages, MonaTextBoxMessages, MonaTextDirection, MonaTimePickerMessages, MonaTimeSelectorMessages, MonaTreeViewMessages, MonaWindowMessages, NotificationMessages, NumberGroupingPattern, NumberSymbols, ParseLocalizedNumberOptions, PseudoLocalizationOptions, SheetMessages, TimePickerMessages, TimeSelectorMessages, ValidateLocalizedNumberEditOptions, WindowMessages };
1084
+ export type { CalendarMessages, DatePickerMessages, DateTimePickerMessages, DeepPartial, DialogMessages, DirectionObserverHandle, FilterMessages, GeneratePseudoLocaleOptions, LocaleFirstDayOfWeek, LocaleTimeFormatOptions, LocalizedDecimalEditValidationResult, LocalizedDecimalValidationResult, LocalizedNumberEditValidationResult, LocalizedNumberInvalidReason, LocalizedNumberParseMode, LocalizedNumberValidationResult, MonaAutoCompleteMessages, MonaBreadcrumbMessages, MonaButtonGroupMessages, MonaCalendarMessages, MonaCardMessages, MonaChartMessages, MonaChipMessages, MonaColorGradientMessages, MonaColorPaletteMessages, MonaColorPickerMessages, MonaComboBoxMessages, MonaDatePickerMessages, MonaDateTimePickerMessages, MonaDialogMessages, MonaDropdownListMessages, MonaDropdownsMessages, MonaEditorMessages, MonaFilterMessages, MonaGridMessages, MonaI18nConfig, MonaLabelMessages, MonaListBoxMessages, MonaListMessages, MonaLocale, MonaLocaleMessages, MonaMessageNamespace, MonaMessageOverrideOptions, MonaMultiSelectMessages, MonaNotificationMessages, MonaNumericTextBoxMessages, MonaOtpInputMessages, MonaPagerMessages, MonaProgressBarMessages, MonaRatingMessages, MonaScrollViewMessages, MonaSheetMessages, MonaSidebarMessages, MonaSliderMessages, MonaSpinnerMessages, MonaSplitButtonMessages, MonaSplitterMessages, MonaStepperMessages, MonaTabsMessages, MonaTextBoxMessages, MonaTextDirection, MonaTimePickerMessages, MonaTimeSelectorMessages, MonaTreeViewMessages, MonaWindowMessages, NotificationMessages, NumberGroupingPattern, NumberSymbols, ParseLocalizedNumberOptions, PseudoLocalizationOptions, SheetMessages, TimePickerMessages, TimeSelectorMessages, ValidateLocalizedNumberEditOptions, WindowMessages };
@@ -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 };