@nanahoshi/mona-ui 0.27.2 → 0.28.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 (208) hide show
  1. package/docs/api/chart.md +2 -2
  2. package/docs/api/popup.md +1 -1
  3. package/docs/api/theme.md +2 -2
  4. package/docs/chart.md +14 -0
  5. package/docs/editor.md +2 -0
  6. package/docs/installation.md +147 -15
  7. package/docs/introduction.md +37 -15
  8. package/docs/theming-built-in-themes.md +67 -0
  9. package/docs/theming-custom-colors.md +274 -0
  10. package/docs/theming-custom-themes.md +168 -0
  11. package/docs/theming.md +164 -248
  12. package/fesm2022/nanahoshi-mona-ui-auto-complete.mjs +1089 -603
  13. package/fesm2022/nanahoshi-mona-ui-avatar.mjs +369 -184
  14. package/fesm2022/nanahoshi-mona-ui-breadcrumb.mjs +658 -371
  15. package/fesm2022/nanahoshi-mona-ui-button-group.mjs +513 -359
  16. package/fesm2022/nanahoshi-mona-ui-button.mjs +622 -517
  17. package/fesm2022/nanahoshi-mona-ui-calendar.mjs +2070 -1573
  18. package/fesm2022/nanahoshi-mona-ui-card.mjs +620 -316
  19. package/fesm2022/nanahoshi-mona-ui-chart.mjs +61151 -64921
  20. package/fesm2022/nanahoshi-mona-ui-check-box.mjs +646 -317
  21. package/fesm2022/nanahoshi-mona-ui-chip.mjs +737 -516
  22. package/fesm2022/nanahoshi-mona-ui-circular-progress-bar.mjs +441 -242
  23. package/fesm2022/nanahoshi-mona-ui-collapsible.mjs +443 -390
  24. package/fesm2022/nanahoshi-mona-ui-color-gradient.mjs +1138 -814
  25. package/fesm2022/nanahoshi-mona-ui-color-palette.mjs +1114 -959
  26. package/fesm2022/nanahoshi-mona-ui-color-picker.mjs +858 -504
  27. package/fesm2022/nanahoshi-mona-ui-combo-box.mjs +1181 -742
  28. package/fesm2022/nanahoshi-mona-ui-command.mjs +1454 -853
  29. package/fesm2022/nanahoshi-mona-ui-common.mjs +569 -743
  30. package/fesm2022/nanahoshi-mona-ui-contextmenu.mjs +978 -532
  31. package/fesm2022/nanahoshi-mona-ui-date-input.mjs +283 -266
  32. package/fesm2022/nanahoshi-mona-ui-date-picker.mjs +973 -451
  33. package/fesm2022/nanahoshi-mona-ui-datetime-picker.mjs +1203 -658
  34. package/fesm2022/nanahoshi-mona-ui-dialog.mjs +1415 -936
  35. package/fesm2022/nanahoshi-mona-ui-dropdown-button.mjs +1165 -568
  36. package/fesm2022/nanahoshi-mona-ui-dropdown-list.mjs +1142 -677
  37. package/fesm2022/nanahoshi-mona-ui-dropdowns.mjs +1018 -734
  38. package/fesm2022/nanahoshi-mona-ui-editor.mjs +3589 -2122
  39. package/fesm2022/nanahoshi-mona-ui-expansion-panel.mjs +577 -359
  40. package/fesm2022/nanahoshi-mona-ui-fieldset.mjs +311 -151
  41. package/fesm2022/nanahoshi-mona-ui-filter.mjs +1086 -718
  42. package/fesm2022/nanahoshi-mona-ui-grid-grid-colgroup.component-NhONCVIX.mjs +77 -0
  43. package/fesm2022/nanahoshi-mona-ui-grid-grid-footer-row.component-Djv8ZnT5.mjs +480 -0
  44. package/fesm2022/nanahoshi-mona-ui-grid-grid-list.component-WbXAzGCa.mjs +470 -0
  45. package/fesm2022/nanahoshi-mona-ui-grid-grid-row.component-DkWTD3pN.mjs +2115 -0
  46. package/fesm2022/nanahoshi-mona-ui-grid-grid-virtual-list.component-DAHqTwBJ.mjs +330 -0
  47. package/fesm2022/nanahoshi-mona-ui-grid-grid.styles-BmLU-3zP.mjs +3766 -0
  48. package/fesm2022/nanahoshi-mona-ui-grid.mjs +5418 -2
  49. package/fesm2022/nanahoshi-mona-ui-i18n-icu.mjs +1379 -1079
  50. package/fesm2022/nanahoshi-mona-ui-i18n.mjs +4451 -5077
  51. package/fesm2022/nanahoshi-mona-ui-internal-filter-input.mjs +344 -143
  52. package/fesm2022/nanahoshi-mona-ui-internal-indicator-icon.mjs +257 -127
  53. package/fesm2022/nanahoshi-mona-ui-internal-list.mjs +2080 -1829
  54. package/fesm2022/nanahoshi-mona-ui-internal-popup-menu.mjs +103 -141
  55. package/fesm2022/nanahoshi-mona-ui-internal-tree.mjs +2498 -2706
  56. package/fesm2022/nanahoshi-mona-ui-internal.mjs +722 -1007
  57. package/fesm2022/nanahoshi-mona-ui-label.mjs +313 -202
  58. package/fesm2022/nanahoshi-mona-ui-list-box.mjs +1308 -1009
  59. package/fesm2022/nanahoshi-mona-ui-list-view.mjs +1411 -677
  60. package/fesm2022/nanahoshi-mona-ui-list.mjs +1 -6
  61. package/fesm2022/nanahoshi-mona-ui-locales-ar-sa.mjs +556 -577
  62. package/fesm2022/nanahoshi-mona-ui-locales-de-de.mjs +530 -573
  63. package/fesm2022/nanahoshi-mona-ui-locales-es-es.mjs +530 -573
  64. package/fesm2022/nanahoshi-mona-ui-locales-fr-fr.mjs +533 -576
  65. package/fesm2022/nanahoshi-mona-ui-locales-id-id.mjs +520 -555
  66. package/fesm2022/nanahoshi-mona-ui-locales-it-it.mjs +530 -571
  67. package/fesm2022/nanahoshi-mona-ui-locales-ja-jp.mjs +520 -555
  68. package/fesm2022/nanahoshi-mona-ui-locales-ko-kr.mjs +520 -555
  69. package/fesm2022/nanahoshi-mona-ui-locales-pt-br.mjs +530 -571
  70. package/fesm2022/nanahoshi-mona-ui-locales-ru-ru.mjs +576 -591
  71. package/fesm2022/nanahoshi-mona-ui-locales-tr-tr.mjs +530 -565
  72. package/fesm2022/nanahoshi-mona-ui-locales-zh-cn.mjs +520 -555
  73. package/fesm2022/nanahoshi-mona-ui-locales-zh-tw.mjs +520 -555
  74. package/fesm2022/nanahoshi-mona-ui-locales.mjs +59 -77
  75. package/fesm2022/nanahoshi-mona-ui-menubar.mjs +1411 -829
  76. package/fesm2022/nanahoshi-mona-ui-multi-select.mjs +1326 -702
  77. package/fesm2022/nanahoshi-mona-ui-notification.mjs +763 -675
  78. package/fesm2022/nanahoshi-mona-ui-numeric-text-box.mjs +1306 -826
  79. package/fesm2022/nanahoshi-mona-ui-otp-input.mjs +1122 -897
  80. package/fesm2022/nanahoshi-mona-ui-pager.mjs +1110 -651
  81. package/fesm2022/nanahoshi-mona-ui-placeholder.mjs +95 -53
  82. package/fesm2022/nanahoshi-mona-ui-popover.mjs +559 -397
  83. package/fesm2022/nanahoshi-mona-ui-popup-menu.mjs +2323 -1694
  84. package/fesm2022/nanahoshi-mona-ui-popup.mjs +1657 -1455
  85. package/fesm2022/nanahoshi-mona-ui-progress-bar.mjs +441 -267
  86. package/fesm2022/nanahoshi-mona-ui-query.mjs +211 -340
  87. package/fesm2022/nanahoshi-mona-ui-radio-button.mjs +1017 -548
  88. package/fesm2022/nanahoshi-mona-ui-rating.mjs +874 -624
  89. package/fesm2022/nanahoshi-mona-ui-scroll-view.mjs +1130 -917
  90. package/fesm2022/nanahoshi-mona-ui-segmented.mjs +705 -455
  91. package/fesm2022/nanahoshi-mona-ui-sheet.mjs +461 -283
  92. package/fesm2022/nanahoshi-mona-ui-sidebar.mjs +2791 -2449
  93. package/fesm2022/nanahoshi-mona-ui-skeleton.mjs +145 -90
  94. package/fesm2022/nanahoshi-mona-ui-slider.mjs +1563 -1103
  95. package/fesm2022/nanahoshi-mona-ui-spinner.mjs +738 -673
  96. package/fesm2022/nanahoshi-mona-ui-split-button.mjs +1287 -647
  97. package/fesm2022/nanahoshi-mona-ui-splitter.mjs +1313 -909
  98. package/fesm2022/nanahoshi-mona-ui-stepper.mjs +761 -540
  99. package/fesm2022/nanahoshi-mona-ui-switch.mjs +611 -280
  100. package/fesm2022/nanahoshi-mona-ui-tabs.mjs +1393 -841
  101. package/fesm2022/nanahoshi-mona-ui-text-area.mjs +142 -73
  102. package/fesm2022/nanahoshi-mona-ui-text-box.mjs +876 -374
  103. package/fesm2022/nanahoshi-mona-ui-theme.mjs +1465 -1449
  104. package/fesm2022/nanahoshi-mona-ui-time-picker.mjs +897 -443
  105. package/fesm2022/nanahoshi-mona-ui-time-selector.mjs +1100 -703
  106. package/fesm2022/nanahoshi-mona-ui-tooltip.mjs +789 -538
  107. package/fesm2022/nanahoshi-mona-ui-tree-view.mjs +1361 -805
  108. package/fesm2022/nanahoshi-mona-ui-window.mjs +2145 -1531
  109. package/fesm2022/nanahoshi-mona-ui.mjs +1 -8
  110. package/llms.txt +6 -2
  111. package/package.json +62 -23
  112. package/types/nanahoshi-mona-ui-auto-complete.d.ts +367 -233
  113. package/types/nanahoshi-mona-ui-avatar.d.ts +722 -649
  114. package/types/nanahoshi-mona-ui-breadcrumb.d.ts +134 -103
  115. package/types/nanahoshi-mona-ui-button-group.d.ts +213 -152
  116. package/types/nanahoshi-mona-ui-button.d.ts +227 -166
  117. package/types/nanahoshi-mona-ui-calendar.d.ts +324 -259
  118. package/types/nanahoshi-mona-ui-card.d.ts +125 -111
  119. package/types/nanahoshi-mona-ui-chart.d.ts +10483 -7326
  120. package/types/nanahoshi-mona-ui-check-box.d.ts +293 -180
  121. package/types/nanahoshi-mona-ui-chip.d.ts +208 -141
  122. package/types/nanahoshi-mona-ui-circular-progress-bar.d.ts +194 -133
  123. package/types/nanahoshi-mona-ui-collapsible.d.ts +103 -87
  124. package/types/nanahoshi-mona-ui-color-gradient.d.ts +281 -213
  125. package/types/nanahoshi-mona-ui-color-palette.d.ts +201 -138
  126. package/types/nanahoshi-mona-ui-color-picker.d.ts +283 -194
  127. package/types/nanahoshi-mona-ui-combo-box.d.ts +401 -262
  128. package/types/nanahoshi-mona-ui-command.d.ts +279 -191
  129. package/types/nanahoshi-mona-ui-common.d.ts +354 -385
  130. package/types/nanahoshi-mona-ui-contextmenu.d.ts +142 -117
  131. package/types/nanahoshi-mona-ui-date-input.d.ts +79 -96
  132. package/types/nanahoshi-mona-ui-date-picker.d.ts +338 -208
  133. package/types/nanahoshi-mona-ui-datetime-picker.d.ts +413 -259
  134. package/types/nanahoshi-mona-ui-dialog.d.ts +470 -381
  135. package/types/nanahoshi-mona-ui-dropdown-button.d.ts +216 -168
  136. package/types/nanahoshi-mona-ui-dropdown-list.d.ts +369 -243
  137. package/types/nanahoshi-mona-ui-dropdowns.d.ts +231 -217
  138. package/types/nanahoshi-mona-ui-editor.d.ts +302 -235
  139. package/types/nanahoshi-mona-ui-expansion-panel.d.ts +140 -109
  140. package/types/nanahoshi-mona-ui-fieldset.d.ts +98 -68
  141. package/types/nanahoshi-mona-ui-filter.d.ts +150 -124
  142. package/types/nanahoshi-mona-ui-grid.d.ts +1956 -1678
  143. package/types/nanahoshi-mona-ui-i18n-icu.d.ts +25 -34
  144. package/types/nanahoshi-mona-ui-i18n.d.ts +987 -1052
  145. package/types/nanahoshi-mona-ui-internal-filter-input.d.ts +118 -71
  146. package/types/nanahoshi-mona-ui-internal-indicator-icon.d.ts +56 -27
  147. package/types/nanahoshi-mona-ui-internal-list.d.ts +474 -408
  148. package/types/nanahoshi-mona-ui-internal-popup-menu.d.ts +143 -150
  149. package/types/nanahoshi-mona-ui-internal-tree.d.ts +493 -506
  150. package/types/nanahoshi-mona-ui-internal.d.ts +195 -213
  151. package/types/nanahoshi-mona-ui-label.d.ts +108 -78
  152. package/types/nanahoshi-mona-ui-list-box.d.ts +392 -322
  153. package/types/nanahoshi-mona-ui-list-view.d.ts +423 -282
  154. package/types/nanahoshi-mona-ui-list.d.ts +2 -1
  155. package/types/nanahoshi-mona-ui-locales-ar-sa.d.ts +540 -542
  156. package/types/nanahoshi-mona-ui-locales-de-de.d.ts +540 -542
  157. package/types/nanahoshi-mona-ui-locales-es-es.d.ts +540 -542
  158. package/types/nanahoshi-mona-ui-locales-fr-fr.d.ts +540 -542
  159. package/types/nanahoshi-mona-ui-locales-id-id.d.ts +540 -542
  160. package/types/nanahoshi-mona-ui-locales-it-it.d.ts +540 -542
  161. package/types/nanahoshi-mona-ui-locales-ja-jp.d.ts +540 -542
  162. package/types/nanahoshi-mona-ui-locales-ko-kr.d.ts +540 -542
  163. package/types/nanahoshi-mona-ui-locales-pt-br.d.ts +540 -542
  164. package/types/nanahoshi-mona-ui-locales-ru-ru.d.ts +540 -542
  165. package/types/nanahoshi-mona-ui-locales-tr-tr.d.ts +540 -542
  166. package/types/nanahoshi-mona-ui-locales-zh-cn.d.ts +540 -542
  167. package/types/nanahoshi-mona-ui-locales-zh-tw.d.ts +540 -542
  168. package/types/nanahoshi-mona-ui-locales.d.ts +17 -19
  169. package/types/nanahoshi-mona-ui-menubar.d.ts +210 -181
  170. package/types/nanahoshi-mona-ui-multi-select.d.ts +416 -276
  171. package/types/nanahoshi-mona-ui-notification.d.ts +140 -151
  172. package/types/nanahoshi-mona-ui-numeric-text-box.d.ts +407 -270
  173. package/types/nanahoshi-mona-ui-otp-input.d.ts +364 -241
  174. package/types/nanahoshi-mona-ui-pager.d.ts +379 -301
  175. package/types/nanahoshi-mona-ui-placeholder.d.ts +35 -28
  176. package/types/nanahoshi-mona-ui-popover.d.ts +176 -134
  177. package/types/nanahoshi-mona-ui-popup-menu.d.ts +488 -344
  178. package/types/nanahoshi-mona-ui-popup.d.ts +698 -560
  179. package/types/nanahoshi-mona-ui-progress-bar.d.ts +197 -137
  180. package/types/nanahoshi-mona-ui-query.d.ts +82 -88
  181. package/types/nanahoshi-mona-ui-radio-button.d.ts +434 -269
  182. package/types/nanahoshi-mona-ui-rating.d.ts +348 -254
  183. package/types/nanahoshi-mona-ui-scroll-view.d.ts +244 -172
  184. package/types/nanahoshi-mona-ui-segmented.d.ts +250 -175
  185. package/types/nanahoshi-mona-ui-sheet.d.ts +115 -63
  186. package/types/nanahoshi-mona-ui-sidebar.d.ts +653 -493
  187. package/types/nanahoshi-mona-ui-skeleton.d.ts +55 -39
  188. package/types/nanahoshi-mona-ui-slider.d.ts +503 -354
  189. package/types/nanahoshi-mona-ui-spinner.d.ts +125 -112
  190. package/types/nanahoshi-mona-ui-split-button.d.ts +241 -196
  191. package/types/nanahoshi-mona-ui-splitter.d.ts +124 -78
  192. package/types/nanahoshi-mona-ui-stepper.d.ts +206 -181
  193. package/types/nanahoshi-mona-ui-switch.d.ts +197 -131
  194. package/types/nanahoshi-mona-ui-tabs.d.ts +349 -248
  195. package/types/nanahoshi-mona-ui-text-area.d.ts +52 -36
  196. package/types/nanahoshi-mona-ui-text-box.d.ts +349 -218
  197. package/types/nanahoshi-mona-ui-theme.d.ts +415 -408
  198. package/types/nanahoshi-mona-ui-time-picker.d.ts +357 -217
  199. package/types/nanahoshi-mona-ui-time-selector.d.ts +255 -170
  200. package/types/nanahoshi-mona-ui-tooltip.d.ts +222 -144
  201. package/types/nanahoshi-mona-ui-tree-view.d.ts +466 -308
  202. package/types/nanahoshi-mona-ui-window.d.ts +494 -399
  203. package/types/nanahoshi-mona-ui.d.ts +1 -2
  204. package/fesm2022/nanahoshi-mona-ui-grid-grid-footer-row.component-DjNnVxHE.mjs +0 -181
  205. package/fesm2022/nanahoshi-mona-ui-grid-grid-list.component-ihQIKeP-.mjs +0 -208
  206. package/fesm2022/nanahoshi-mona-ui-grid-grid-row.component-BpnybNcs.mjs +0 -1082
  207. package/fesm2022/nanahoshi-mona-ui-grid-grid-virtual-list.component-CYlgfc7c.mjs +0 -186
  208. package/fesm2022/nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-LCzfCYd3.mjs +0 -7568
@@ -1,96 +1,88 @@
1
- import * as i0 from '@angular/core';
2
- import { InjectionToken, Signal, ElementRef, DestroyRef } from '@angular/core';
3
- import { AttributeConfig, Action } from '@nanahoshi/mona-ui/common';
4
- export { Action, AttributeConfig } from '@nanahoshi/mona-ui/common';
5
- import { OverlayRef, ConnectionPositionPair } from '@angular/cdk/overlay';
6
- import { Observable } from 'rxjs';
7
-
8
- declare class AttributeBinderDirective {
9
- #private;
10
- readonly attributes: i0.InputSignal<AttributeConfig>;
11
- constructor();
12
- static ɵfac: i0.ɵɵFactoryDeclaration<AttributeBinderDirective, never>;
13
- static ɵdir: i0.ɵɵDirectiveDeclaration<AttributeBinderDirective, "[monaAttributeBinder]", never, { "attributes": { "alias": "monaAttributeBinder"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
1
+ import { Action, Action as Action$1, AttributeConfig, AttributeConfig as AttributeConfig$1 } from "@nanahoshi/mona-ui/common";
2
+ import * as i0 from "@angular/core";
3
+ import { DestroyRef, ElementRef, InjectionToken, Signal } from "@angular/core";
4
+ import { ConnectionPositionPair, OverlayRef, ScrollStrategy } from "@angular/cdk/overlay";
5
+ import { Observable } from "rxjs";
6
+ export declare class AttributeBinderDirective {
7
+ #private;
8
+ readonly attributes: import("@angular/core").InputSignal<AttributeConfig$1>;
9
+ constructor();
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<AttributeBinderDirective, never>;
11
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AttributeBinderDirective, "[monaAttributeBinder]", never, {
12
+ "attributes": {
13
+ "alias": "monaAttributeBinder";
14
+ "required": false;
15
+ "isSignal": true;
16
+ };
17
+ }, {}, never, never, true, never>;
14
18
  }
15
-
16
- interface ColorScheme {
17
- colors: string[];
18
- columns: number;
19
- name: string;
19
+ export interface ColorScheme {
20
+ colors: string[];
21
+ columns: number;
22
+ name: string;
20
23
  }
21
-
22
- interface RGB {
23
- b: number | null;
24
- g: number | null;
25
- r: number | null;
24
+ export interface RGB {
25
+ b: number | null;
26
+ g: number | null;
27
+ r: number | null;
26
28
  }
27
- interface RGBA extends RGB {
28
- a: number | null;
29
+ export interface RGBA extends RGB {
30
+ a: number | null;
29
31
  }
30
- interface HSV {
31
- h: number | null;
32
- s: number | null;
33
- v: number | null;
32
+ export interface HSV {
33
+ h: number | null;
34
+ s: number | null;
35
+ v: number | null;
34
36
  }
35
- interface HSVA extends HSV {
36
- a: number | null;
37
+ export interface HSVA extends HSV {
38
+ a: number | null;
37
39
  }
38
- type RGBChannel = keyof RGB;
39
- type RGBAChannel = keyof RGBA;
40
- type HSVChannel = keyof HSV;
41
- type Channel = RGBAChannel | HSVChannel;
42
- interface HSL {
43
- h: number | null;
44
- l: number | null;
45
- s: number | null;
40
+ export type RGBChannel = keyof RGB;
41
+ export type RGBAChannel = keyof RGBA;
42
+ export type HSVChannel = keyof HSV;
43
+ export type Channel = RGBAChannel | HSVChannel;
44
+ export interface HSL {
45
+ h: number | null;
46
+ l: number | null;
47
+ s: number | null;
46
48
  }
47
- interface HSLA extends HSL {
48
- a: number | null;
49
+ export interface HSLA extends HSL {
50
+ a: number | null;
49
51
  }
50
-
51
- declare const isValidHex: (hex: string) => boolean;
52
-
53
- declare const hex2rgba: (hex: string) => RGBA;
54
-
55
- declare const hsla2hsva: (hue: number | null, saturation: number | null, lightness: number | null, alpha: number | null) => HSVA;
56
-
57
- declare const hsva2rgba: (hue: number | null, saturation: number | null, value: number | null, alpha: number | null) => RGBA;
58
-
59
- declare const rgba2hex: (r: number | null, g: number | null, b: number | null, a: number | null) => string;
60
-
61
- declare const rgba2hsla: (red: number | null, green: number | null, blue: number | null, alpha: number | null) => HSLA;
62
-
52
+ export declare const isValidHex: (hex: string) => boolean;
53
+ export declare const hex2rgba: (hex: string) => RGBA;
54
+ export declare const hsla2hsva: (hue: number | null, saturation: number | null, lightness: number | null, alpha: number | null) => HSVA;
55
+ export declare const hsva2rgba: (hue: number | null, saturation: number | null, value: number | null, alpha: number | null) => RGBA;
56
+ export declare const rgba2hex: (r: number | null, g: number | null, b: number | null, a: number | null) => string;
57
+ export declare const rgba2hsla: (red: number | null, green: number | null, blue: number | null, alpha: number | null) => HSLA;
63
58
  /**
64
59
  * Reads a CSS color. Hex, `rgb()` and `hsl()` in both their comma and space forms need nothing but the text; with a
65
60
  * `document`, anything else the browser can paint is read through a canvas.
66
61
  * @returns The channels, each from 0 to 255, or null when the text isn't a color.
67
62
  */
68
- declare const parseColor: (text: string, document?: Document) => RGBA | null;
63
+ export declare const parseColor: (text: string, document?: Document) => RGBA | null;
69
64
  /**
70
65
  * A key that is equal for two spellings of the same color, such as `#ABC`, `#aabbcc` and `rgb(170, 187, 204)`. Text that
71
66
  * can't be read as a color only compares equal to itself, ignoring case.
72
67
  */
73
- declare const colorKey: (text: string, document?: Document) => string;
68
+ export declare const colorKey: (text: string, document?: Document) => string;
74
69
  /**
75
70
  * 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
71
  */
77
- declare const formatAlpha: (alpha: number) => number;
78
-
72
+ export declare const formatAlpha: (alpha: number) => number;
79
73
  /**
80
74
  * Hue, saturation and value are left unrounded, so converting to RGB and back returns the same color. Round them for
81
75
  * display only.
82
76
  */
83
- declare const rgba2hsva: (r: number | null, g: number | null, b: number | null, a: number | null) => HSVA;
84
-
77
+ export declare const rgba2hsva: (r: number | null, g: number | null, b: number | null, a: number | null) => HSVA;
85
78
  /**
86
79
  * Adds `id` to an id-list attribute such as `aria-describedby`, keeping the ids already there.
87
80
  */
88
- declare const addAriaReference: (element: Element, attribute: string, id: string) => void;
81
+ export declare const addAriaReference: (element: Element, attribute: string, id: string) => void;
89
82
  /**
90
83
  * Removes `id` from an id-list attribute, and the attribute itself once it holds no ids.
91
84
  */
92
- declare const removeAriaReference: (element: Element, attribute: string, id: string) => void;
93
-
85
+ export declare const removeAriaReference: (element: Element, attribute: string, id: string) => void;
94
86
  /**
95
87
  * Generates a unique control ID for an element.
96
88
  * The ID consists of the `mona-` prefix followed by a random hexadecimal string.
@@ -99,80 +91,75 @@ declare const removeAriaReference: (element: Element, attribute: string, id: str
99
91
  * @param {number} [length=7] - The base length of the random part of the ID.
100
92
  * @returns {string} A unique control ID string for use for elements.
101
93
  */
102
- declare const createElementControlId: (level?: number, length?: number) => string;
103
-
94
+ export declare const createElementControlId: (level?: number, length?: number) => string;
104
95
  /**
105
96
  * Whether the enclosing `mona-fieldset` is disabled. A native `<fieldset disabled>` reaches only native controls,
106
97
  * so the fieldset also provides this for controls that draw their own focusable element.
107
98
  */
108
- declare const MONA_FIELDSET_DISABLED: InjectionToken<Signal<boolean>>;
99
+ export declare const MONA_FIELDSET_DISABLED: InjectionToken<Signal<boolean>>;
109
100
  /**
110
101
  * Combines a control's own `disabled` with the enclosing `mona-fieldset`. Call it from an injection context.
111
102
  *
112
103
  * @param disabled Reads the control's own disabled state. It runs lazily, so it may read an input declared later.
113
104
  */
114
- declare function injectEffectiveDisabled(disabled: () => boolean): Signal<boolean>;
115
-
105
+ export declare function injectEffectiveDisabled(disabled: () => boolean): Signal<boolean>;
116
106
  /**
117
107
  * A control wrapped by a `mona-label` that has no native input, so the browser can't associate them.
118
108
  */
119
- interface MonaLabelledControl {
120
- readonly activate: () => void;
121
- readonly element: HTMLElement;
122
- /** Whether the control has a name of its own, through `aria-label` or `aria-labelledby`. */
123
- readonly named: () => boolean;
109
+ export interface MonaLabelledControl {
110
+ readonly activate: () => void;
111
+ readonly element: HTMLElement;
112
+ /** Whether the control has a name of its own, through `aria-label` or `aria-labelledby`. */
113
+ readonly named: () => boolean;
124
114
  }
125
- interface MonaLabelContext {
126
- /** Id of the element holding the label's caption, or null when the label has no caption of its own. */
127
- readonly captionId: Signal<string | null>;
128
- /** Registers a wrapped control and returns the function that removes it. */
129
- readonly register: (control: MonaLabelledControl) => () => void;
115
+ export interface MonaLabelContext {
116
+ /** Id of the element holding the label's caption, or null when the label has no caption of its own. */
117
+ readonly captionId: Signal<string | null>;
118
+ /** Registers a wrapped control and returns the function that removes it. */
119
+ readonly register: (control: MonaLabelledControl) => () => void;
130
120
  }
131
121
  /**
132
122
  * Provided by `mona-label` to the content it wraps.
133
123
  */
134
- declare const MONA_LABEL: InjectionToken<MonaLabelContext>;
135
- interface LabelAssociationOptions {
136
- /**
137
- * What a click on the caption does for a wrapped control. Leave it out when the control has a native input, since
138
- * the browser already handles that click.
139
- */
140
- readonly activate?: () => void;
141
- readonly ariaLabel: () => string | null | undefined;
142
- readonly ariaLabelledBy: () => string | null | undefined;
143
- /** False for a control that renders its own `<label>`, whose text must stay its name. */
144
- readonly wrapped?: boolean;
124
+ export declare const MONA_LABEL: InjectionToken<MonaLabelContext>;
125
+ export interface LabelAssociationOptions {
126
+ /**
127
+ * What a click on the caption does for a wrapped control. Leave it out when the control has a native input, since
128
+ * the browser already handles that click.
129
+ */
130
+ readonly activate?: () => void;
131
+ readonly ariaLabel: () => string | null | undefined;
132
+ readonly ariaLabelledBy: () => string | null | undefined;
133
+ /** False for a control that renders its own `<label>`, whose text must stay its name. */
134
+ readonly wrapped?: boolean;
145
135
  }
146
- interface LabelAssociation {
147
- /** The id for `aria-labelledby`. An explicit `aria-labelledby` wins, and an explicit `aria-label` turns it off. */
148
- readonly labelledBy: Signal<string | null>;
149
- /** Called by a label that points at the control through `[for]`. */
150
- readonly setLabelledBy: (id: string | null) => void;
136
+ export interface LabelAssociation {
137
+ /** The id for `aria-labelledby`. An explicit `aria-labelledby` wins, and an explicit `aria-label` turns it off. */
138
+ readonly labelledBy: Signal<string | null>;
139
+ /** Called by a label that points at the control through `[for]`. */
140
+ readonly setLabelledBy: (id: string | null) => void;
151
141
  }
152
142
  /**
153
143
  * Connects a control to a `mona-label` or `label[monaLabel]` that names it, by wrapping it or through `[for]`.
154
144
  */
155
- declare function injectLabelAssociation(options: LabelAssociationOptions): LabelAssociation;
156
-
145
+ export declare function injectLabelAssociation(options: LabelAssociationOptions): LabelAssociation;
157
146
  /**
158
147
  * Whether a closing popup may move focus back to its trigger without taking it from somewhere the user put it.
159
148
  * That holds while focus is on the page itself or inside one of `containers`, usually the trigger and the popup.
160
149
  * A click on another field that closed the popup, or a Tab out of it, must leave focus where it went.
161
150
  * This is the rule the CDK dialog uses.
162
151
  */
163
- declare function focusCanReturn(document: Document, ...containers: ReadonlyArray<Element | null | undefined>): boolean;
164
-
152
+ export declare function focusCanReturn(document: Document, ...containers: ReadonlyArray<Element | null | undefined>): boolean;
165
153
  /**
166
154
  * Focuses an element given directly, by reference, or by a selector inside `host`, and returns it (or `null` when the
167
155
  * selector matches nothing).
168
156
  */
169
- declare function focusElement(host: HTMLElement, element: HTMLElement | ElementRef<HTMLElement> | string): HTMLElement | null;
170
-
171
- interface InertOutsideOptions {
172
- /** Elements that manage themselves, or have to stay usable beside the modal. */
173
- readonly keep?: (element: Element) => boolean;
174
- /** Where the walk up stops, for a modal that only claims part of the page. Defaults to `<body>`. */
175
- readonly stopAt?: Element | null;
157
+ export declare function focusElement(host: HTMLElement, element: HTMLElement | ElementRef<HTMLElement> | string): HTMLElement | null;
158
+ export interface InertOutsideOptions {
159
+ /** Elements that manage themselves, or have to stay usable beside the modal. */
160
+ readonly keep?: (element: Element) => boolean;
161
+ /** Where the walk up stops, for a modal that only claims part of the page. Defaults to `<body>`. */
162
+ readonly stopAt?: Element | null;
176
163
  }
177
164
  /**
178
165
  * Makes everything outside a modal overlay inert, so assistive technology, the pointer and Tab can't reach the page
@@ -183,31 +170,39 @@ interface InertOutsideOptions {
183
170
  * @param options what to leave alone, and where to stop
184
171
  * @returns the function that releases what this call made inert
185
172
  */
186
- declare const inertOutside: (element: Element, options?: InertOutsideOptions) => (() => void);
187
-
173
+ export declare const inertOutside: (element: Element, options?: InertOutsideOptions) => (() => void);
188
174
  /**
189
175
  * The text of the elements an `aria-labelledby` value points to, joined with spaces, for names built from a
190
176
  * component's name ("Filter {name}"). It's read after every render, so it follows the labelling elements' text.
191
177
  * Call it in an injection context.
192
178
  * @param ids Returns the space-separated element ids.
193
179
  */
194
- declare function injectLabelledByText(ids: () => string): Signal<string>;
195
-
196
- interface GlobalOverlayPosition {
197
- /** Distance from the viewport's left edge in pixels; centered horizontally when omitted. Physical in RTL too. */
198
- readonly left?: number | null;
199
- /** Distance from the viewport's top edge in pixels; centered vertically when omitted. */
200
- readonly top?: number | null;
180
+ export declare function injectLabelledByText(ids: () => string): Signal<string>;
181
+ /**
182
+ * Wraps CDK's block strategy so it blocks the page's scroll behind a modal only on a page whose root scrolls.
183
+ *
184
+ * CDK keeps the page's scrollbar while it blocks, by forcing `overflow-y: scroll` on `<html>`. A page that scrolls a
185
+ * container inside instead, such as an app shell that sets `overflow: hidden` on `html` and `body`, has no scrollbar to
186
+ * keep: the forced one appears from nowhere, narrows the page and moves it sideways. The user can't scroll that page's
187
+ * root anyway, so it is left alone.
188
+ *
189
+ * The caller creates `block`, with `createBlockScrollStrategy` or `Overlay.scrollStrategies.block()`, so this bundle
190
+ * doesn't import the overlay module, which every component would then load.
191
+ */
192
+ export declare function createPageScrollBlockStrategy(document: Document, block: ScrollStrategy): ScrollStrategy;
193
+ export interface GlobalOverlayPosition {
194
+ /** Distance from the viewport's left edge in pixels; centered horizontally when omitted. Physical in RTL too. */
195
+ readonly left?: number | null;
196
+ /** Distance from the viewport's top edge in pixels; centered vertically when omitted. */
197
+ readonly top?: number | null;
201
198
  }
202
199
  /**
203
200
  * Places a global overlay through its position strategy, so later `updatePosition()` calls (a direction change, a
204
201
  * resize) keep it where it is instead of resetting inline styles. Each axis is independent: a `top` alone keeps the
205
202
  * overlay centered horizontally. Centering follows the overlay's size as it grows or shrinks.
206
203
  */
207
- declare const positionGlobalOverlay: (overlayRef: OverlayRef, position: GlobalOverlayPosition) => void;
208
-
209
- declare const rxFromResize: (target: Element | Iterable<Element>, options?: ResizeObserverOptions) => Observable<ResizeObserverEntry[]>;
210
-
204
+ export declare const positionGlobalOverlay: (overlayRef: OverlayRef, position: GlobalOverlayPosition) => void;
205
+ export declare const rxFromResize: (target: Element | Iterable<Element>, options?: ResizeObserverOptions) => Observable<ResizeObserverEntry[]>;
211
206
  /**
212
207
  * The keyboard of an APG toolbar over controls that other components render: one Tab stop, Left and Right (mirrored
213
208
  * in right-to-left text) to move between controls, Home and End to the ends. Disabled and hidden controls are
@@ -216,56 +211,50 @@ declare const rxFromResize: (target: Element | Iterable<Element>, options?: Resi
216
211
  * Call {@link sync} after every render, so controls added later join the Tab stop, and forward the toolbar's
217
212
  * `focusin` and `keydown` events.
218
213
  */
219
- declare class RovingToolbar {
220
- #private;
221
- constructor(element: () => HTMLElement | null | undefined);
222
- /** The Tab stop follows focus, also when a control is clicked. */
223
- onFocusIn(event: FocusEvent): void;
224
- onKeydown(event: KeyboardEvent): void;
225
- /** Gives the active control the Tab stop and takes it from the others. */
226
- sync(): void;
214
+ export declare class RovingToolbar {
215
+ #private;
216
+ constructor(element: () => HTMLElement | null | undefined);
217
+ /** The Tab stop follows focus, also when a control is clicked. */
218
+ onFocusIn(event: FocusEvent): void;
219
+ onKeydown(event: KeyboardEvent): void;
220
+ /** Gives the active control the Tab stop and takes it from the others. */
221
+ sync(): void;
227
222
  }
228
-
229
- declare const rxTimeout: (destroyRef: DestroyRef, fn: Action, delay?: number) => void;
230
-
231
- type VariantInputs<T> = {
232
- [K in keyof T]-?: Signal<T[K]>;
233
- };
234
-
223
+ export declare const rxTimeout: (destroyRef: DestroyRef, fn: Action$1, delay?: number) => void;
224
+ export type VariantInputs<T> = { [K in keyof T]-?: Signal<T[K]>; };
235
225
  /**
236
226
  * What says a row is selected besides its tint, which is faint in every theme and gone in forced colors. The row
237
227
  * has to be positioned.
238
228
  */
239
- 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";
229
+ export 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";
240
230
  /**
241
231
  * A border in the text's color for a selected control, drawn only when the user asks for more contrast or forced colors
242
232
  * are on. Elsewhere the fill says it alone. A control with a border of its own adds `after:-inset-px`, so this one
243
233
  * replaces it.
244
234
  */
245
- declare const themeSelectionBorderClasses = "\n relative\n after:pointer-events-none after:absolute after:inset-0\n after:rounded-[inherit] after:border-current\n contrast-more:after:border-2 forced-colors:after:border-2\n";
246
- 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";
247
- 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";
248
- 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";
249
- declare const themeRaisedSurfaceClasses = "\n [background-color:var(--mona-effect-raised-background-color,var(--color-surface-raised))]\n \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\n";
250
- declare const themeOverlayBackdropClasses = "\n [background-image:var(--mona-effect-overlay-background-image,none)]\n [backdrop-filter:var(--mona-effect-overlay-backdrop-filter,none)]\n [-webkit-backdrop-filter:var(--mona-effect-overlay-backdrop-filter,none)]\n";
251
- declare const themeOverlaySurfaceClasses = "\n [background-color:var(--mona-effect-overlay-background-color,var(--color-surface-overlay))]\n \n [background-image:var(--mona-effect-overlay-background-image,none)]\n [backdrop-filter:var(--mona-effect-overlay-backdrop-filter,none)]\n [-webkit-backdrop-filter:var(--mona-effect-overlay-backdrop-filter,none)]\n\n";
252
-
235
+ export declare const themeSelectionBorderClasses = "\n relative\n after:pointer-events-none after:absolute after:inset-0\n after:rounded-[inherit] after:border-current\n contrast-more:after:border-2 forced-colors:after:border-2\n";
236
+ export 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";
237
+ export 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";
238
+ export 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";
239
+ export declare const themeRaisedSurfaceClasses = "\n [background-color:var(--mona-effect-raised-background-color,var(--color-surface-raised))]\n \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\n";
240
+ export declare const themeOverlayBackdropClasses = "\n [background-image:var(--mona-effect-overlay-background-image,none)]\n [backdrop-filter:var(--mona-effect-overlay-backdrop-filter,none)]\n [-webkit-backdrop-filter:var(--mona-effect-overlay-backdrop-filter,none)]\n";
241
+ export declare const themeOverlaySurfaceClasses = "\n [background-color:var(--mona-effect-overlay-background-color,var(--color-surface-overlay))]\n \n [background-image:var(--mona-effect-overlay-background-image,none)]\n [backdrop-filter:var(--mona-effect-overlay-backdrop-filter,none)]\n [-webkit-backdrop-filter:var(--mona-effect-overlay-backdrop-filter,none)]\n\n";
253
242
  /**
254
243
  * How long a popup opened by hovering waits after the pointer leaves its anchor, so the pointer can cross the gap
255
244
  * onto the popup and stay there (WCAG 1.4.13, Content on Hover or Focus).
256
245
  */
257
- declare const HOVER_GRACE = 100;
246
+ export declare const HOVER_GRACE = 100;
258
247
  /** What made an anchor active: the pointer resting on it, or focus inside it. */
259
- type HoverSource = "focus" | "pointer";
260
- interface HoverIntentConfig {
261
- /** Closes the open popup. */
262
- readonly hide: () => void;
263
- /** Read each time a hide is scheduled, in milliseconds. */
264
- readonly hideDelay: () => number;
265
- /** Opens the popup for `anchor`; report it with `opened()` once it exists. */
266
- readonly show: (anchor: HTMLElement) => void;
267
- /** Read each time a show is scheduled, in milliseconds. */
268
- readonly showDelay: () => number;
248
+ export type HoverSource = "focus" | "pointer";
249
+ export interface HoverIntentConfig {
250
+ /** Closes the open popup. */
251
+ readonly hide: () => void;
252
+ /** Read each time a hide is scheduled, in milliseconds. */
253
+ readonly hideDelay: () => number;
254
+ /** Opens the popup for `anchor`; report it with `opened()` once it exists. */
255
+ readonly show: (anchor: HTMLElement) => void;
256
+ /** Read each time a show is scheduled, in milliseconds. */
257
+ readonly showDelay: () => number;
269
258
  }
270
259
  /**
271
260
  * When to show and hide a popup that follows the pointer and focus, shared by the tooltip and the hover popover.
@@ -276,28 +265,28 @@ interface HoverIntentConfig {
276
265
  * - Moving to another anchor replaces the popup.
277
266
  * - After a dismissal (Escape), the popup stays closed until the pointer and focus have left that anchor.
278
267
  */
279
- declare class HoverIntent {
280
- #private;
281
- constructor(config: HoverIntentConfig);
282
- /**
283
- * Reports that the popup for `anchor` started closing for a reason of its own (Escape, an outside click, being
284
- * disabled). With `dismissed`, it stays closed until the pointer and focus have left the anchor.
285
- */
286
- closed(anchor: HTMLElement, dismissed?: boolean): void;
287
- /** Stops every timer and forgets every anchor, without closing anything. */
288
- dispose(): void;
289
- /** The pointer moved onto `anchor`, or focus moved into it. */
290
- enter(anchor: HTMLElement, source: HoverSource): void;
291
- /** Hides the popup now, as leaving would, and cancels a pending show. */
292
- hideNow(): void;
293
- /** The pointer left `anchor`, or focus left it. */
294
- leave(anchor: HTMLElement, source: HoverSource): void;
295
- /**
296
- * Reports that the popup for `anchor` is open. While the pointer is on `panel`, the popup stays.
297
- */
298
- opened(anchor: HTMLElement, panel: HTMLElement | null): void;
299
- /** The anchor whose popup is open, if any. */
300
- get anchor(): HTMLElement | null;
268
+ export declare class HoverIntent {
269
+ #private;
270
+ constructor(config: HoverIntentConfig);
271
+ /**
272
+ * Reports that the popup for `anchor` started closing for a reason of its own (Escape, an outside click, being
273
+ * disabled). With `dismissed`, it stays closed until the pointer and focus have left the anchor.
274
+ */
275
+ closed(anchor: HTMLElement, dismissed?: boolean): void;
276
+ /** Stops every timer and forgets every anchor, without closing anything. */
277
+ dispose(): void;
278
+ /** The pointer moved onto `anchor`, or focus moved into it. */
279
+ enter(anchor: HTMLElement, source: HoverSource): void;
280
+ /** Hides the popup now, as leaving would, and cancels a pending show. */
281
+ hideNow(): void;
282
+ /** The pointer left `anchor`, or focus left it. */
283
+ leave(anchor: HTMLElement, source: HoverSource): void;
284
+ /**
285
+ * Reports that the popup for `anchor` is open. While the pointer is on `panel`, the popup stays.
286
+ */
287
+ opened(anchor: HTMLElement, panel: HTMLElement | null): void;
288
+ /** The anchor whose popup is open, if any. */
289
+ get anchor(): HTMLElement | null;
301
290
  }
302
291
  /**
303
292
  * Feeds a {@link HoverIntent} from pointer and focus events delegated on `root`, so anchors added, removed or
@@ -306,36 +295,33 @@ declare class HoverIntent {
306
295
  * @param resolve the anchor an event target belongs to, or `null`
307
296
  * @returns the function that removes the listeners
308
297
  */
309
- declare const listenForHover: (root: Document | HTMLElement, resolve: (node: Element) => HTMLElement | null, intent: HoverIntent) => (() => void);
298
+ export declare const listenForHover: (root: Document | HTMLElement, resolve: (node: Element) => HTMLElement | null, intent: HoverIntent) => (() => void);
310
299
  /**
311
300
  * Calls `callback` once `element` leaves the document, for a popup that would otherwise stay anchored to nothing.
312
301
  * @returns the function that stops watching
313
302
  */
314
- declare const onDisconnect: (element: Element, callback: () => void) => (() => void);
315
-
303
+ export declare const onDisconnect: (element: Element, callback: () => void) => (() => void);
316
304
  /**
317
305
  * The side of its anchor a tooltip or popover opens on. `left` and `right` are physical in every direction; `start`
318
306
  * and `end` follow the text direction.
319
307
  */
320
308
  /** A side of the anchor. `start` and `end` follow the direction. */
321
- type OverlaySide = "bottom" | "end" | "left" | "right" | "start" | "top";
309
+ export type OverlaySide = "bottom" | "end" | "left" | "right" | "start" | "top";
322
310
  /** A side resolved against the text direction. */
323
- type PhysicalOverlaySide = "bottom" | "left" | "right" | "top";
324
- declare const resolveOverlaySide: (side: OverlaySide, direction: "ltr" | "rtl") => PhysicalOverlaySide;
311
+ export type PhysicalOverlaySide = "bottom" | "left" | "right" | "top";
312
+ export declare const resolveOverlaySide: (side: OverlaySide, direction: "ltr" | "rtl") => PhysicalOverlaySide;
325
313
  /**
326
314
  * Positions for a popup centered on `side` of its anchor, flipping to the opposite side when it doesn't fit. Each
327
315
  * position carries its own offset, so the gap stays between the popup and its anchor after a flip.
328
316
  * @param gap the distance between the anchor and the popup, in pixels
329
317
  * @param direction the overlay's direction
330
318
  */
331
- declare const overlaySidePositions: (side: PhysicalOverlaySide, gap: number, direction: "ltr" | "rtl") => ConnectionPositionPair[];
319
+ export declare const overlaySidePositions: (side: PhysicalOverlaySide, gap: number, direction: "ltr" | "rtl") => ConnectionPositionPair[];
332
320
  /**
333
321
  * The physical side of its anchor a popup ended up on, from the position the overlay chose.
334
322
  */
335
- declare const sideOfPosition: (position: Pick<ConnectionPositionPair, "originY" | "overlayX" | "overlayY">, direction: "ltr" | "rtl") => PhysicalOverlaySide;
336
-
337
- declare const restoreOverlayScroll: (overlayRef: OverlayRef, element: HTMLElement) => void;
338
-
323
+ export declare const sideOfPosition: (position: Pick<ConnectionPositionPair, "originY" | "overlayX" | "overlayY">, direction: "ltr" | "rtl") => PhysicalOverlaySide;
324
+ export declare const restoreOverlayScroll: (overlayRef: OverlayRef, element: HTMLElement) => void;
339
325
  /**
340
326
  * Converts a number or a string into a CSS-compliant value.
341
327
  * - If the input is a number (e.g., 100), it appends 'px'.
@@ -345,41 +331,37 @@ declare const restoreOverlayScroll: (overlayRef: OverlayRef, element: HTMLElemen
345
331
  * @param value The number or string to convert.
346
332
  * @returns A CSS-compliant string value.
347
333
  */
348
- declare const toCssValue: (value: number | string | undefined | null) => string;
349
-
350
- declare enum NavigationKeys {
351
- ArrowUp = "ArrowUp",
352
- ArrowDown = "ArrowDown",
353
- ArrowLeft = "ArrowLeft",
354
- ArrowRight = "ArrowRight",
355
- Enter = "Enter",
356
- Escape = "Escape",
357
- Home = "Home",
358
- End = "End",
359
- PageDown = "PageDown",
360
- PageUp = "PageUp",
361
- Space = " "
334
+ export declare const toCssValue: (value: number | string | undefined | null) => string;
335
+ export declare enum NavigationKeys {
336
+ ArrowUp = "ArrowUp",
337
+ ArrowDown = "ArrowDown",
338
+ ArrowLeft = "ArrowLeft",
339
+ ArrowRight = "ArrowRight",
340
+ Enter = "Enter",
341
+ Escape = "Escape",
342
+ Home = "Home",
343
+ End = "End",
344
+ PageDown = "PageDown",
345
+ PageUp = "PageUp",
346
+ Space = " "
362
347
  }
363
- declare const navigationKeysList: readonly string[];
364
- declare const isNavigationKey: (key: string) => boolean;
365
-
348
+ export declare const navigationKeysList: readonly string[];
349
+ export declare const isNavigationKey: (key: string) => boolean;
366
350
  /**
367
351
  * Modifier state of a keyboard event. Typeahead is skipped while Ctrl, Meta or Alt is held,
368
352
  * so shortcuts such as Ctrl+A or Cmd+C keep their default behavior.
369
353
  */
370
- interface TypeaheadModifiers {
371
- readonly altKey?: boolean;
372
- readonly ctrlKey?: boolean;
373
- readonly metaKey?: boolean;
354
+ export interface TypeaheadModifiers {
355
+ readonly altKey?: boolean;
356
+ readonly ctrlKey?: boolean;
357
+ readonly metaKey?: boolean;
374
358
  }
375
359
  /**
376
360
  * Returns whether a `KeyboardEvent.key` value should feed typeahead.
377
361
  * Any single letter or digit in any script counts, plus space, `-` and `_`.
378
362
  */
379
- declare const isTypeaheadKey: (key: string, modifiers?: TypeaheadModifiers) => boolean;
363
+ export declare const isTypeaheadKey: (key: string, modifiers?: TypeaheadModifiers) => boolean;
380
364
  /** How long typeahead waits after the last key before it starts a new search, in milliseconds. */
381
- declare const TYPEAHEAD_RESET_DELAY = 200;
382
- declare const setupTypeahead: (typeaheadKey$: Observable<string>) => Observable<string>;
383
-
384
- 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 };
385
- export type { Channel, ColorScheme, GlobalOverlayPosition, HSL, HSLA, HSV, HSVA, HSVChannel, HoverIntentConfig, HoverSource, InertOutsideOptions, LabelAssociation, LabelAssociationOptions, MonaLabelContext, MonaLabelledControl, OverlaySide, PhysicalOverlaySide, RGB, RGBA, RGBAChannel, RGBChannel, TypeaheadModifiers, VariantInputs };
365
+ export declare const TYPEAHEAD_RESET_DELAY = 200;
366
+ export declare const setupTypeahead: (typeaheadKey$: Observable<string>) => Observable<string>;
367
+ export type { Action, AttributeConfig };