@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,13 +1,10 @@
1
- import * as _nanahoshi_mona_ui_sidebar from '@nanahoshi/mona-ui/sidebar';
2
- import * as _angular_core from '@angular/core';
3
- import { Signal, EnvironmentProviders, InjectionToken } from '@angular/core';
4
- import { ClassInputType } from '@nanahoshi/mona-ui/common';
5
- import * as i1 from '@angular/cdk/a11y';
6
- import * as i1$1 from '@nanahoshi/mona-ui/text-box';
7
- import * as i1$2 from '@nanahoshi/mona-ui/button';
8
- import * as _nanahoshi_mona_ui_i18n from '@nanahoshi/mona-ui/i18n';
9
- import { MonaSidebarMessages } from '@nanahoshi/mona-ui/i18n';
10
-
1
+ import { ClassInputType } from "@nanahoshi/mona-ui/common";
2
+ import * as i0 from "@angular/core";
3
+ import { EnvironmentProviders, InjectionToken, Signal } from "@angular/core";
4
+ import * as i1$2 from "@angular/cdk/a11y";
5
+ import * as i1$1 from "@nanahoshi/mona-ui/text-box";
6
+ import * as i1 from "@nanahoshi/mona-ui/button";
7
+ import { MonaSidebarMessages } from "@nanahoshi/mona-ui/i18n";
11
8
  /**
12
9
  * How the sidebar behaves when it is collapsed.
13
10
  *
@@ -16,7 +13,6 @@ import { MonaSidebarMessages } from '@nanahoshi/mona-ui/i18n';
16
13
  * - `none` — the sidebar cannot be collapsed and stays at its full width.
17
14
  */
18
15
  type SidebarCollapsibleMode = "offcanvas" | "icon" | "none";
19
-
20
16
  /**
21
17
  * Which edge of the layout the sidebar sits on. Also determines its order within the layout
22
18
  * and which side its rail and border are drawn on.
@@ -31,7 +27,6 @@ type SidebarCollapsibleMode = "offcanvas" | "icon" | "none";
31
27
  type SidebarSide = "start" | "end" | "left" | "right";
32
28
  /** The direction-relative side, once the `left`/`right` aliases have been folded in. */
33
29
  type SidebarLogicalSide = "start" | "end";
34
-
35
30
  /**
36
31
  * The visual treatment of the sidebar region.
37
32
  *
@@ -40,7 +35,6 @@ type SidebarLogicalSide = "start" | "end";
40
35
  * - `inset` — the sidebar itself is plain, and the inset region beside it becomes the raised surface.
41
36
  */
42
37
  type SidebarVariant = "sidebar" | "floating" | "inset";
43
-
44
38
  /**
45
39
  * @description
46
40
  * The sidebar region itself. Content is projected in author order, so header, content and footer
@@ -51,129 +45,200 @@ type SidebarVariant = "sidebar" | "floating" | "inset";
51
45
  * inert, as far as the layout's `modalScope` says. It is not a navigation landmark by itself — wrap
52
46
  * the menus in a labelled `nav`, or set `role` and `aria-label` if the whole region is navigation.
53
47
  */
54
- declare class SidebarComponent {
55
- #private;
56
- /** Only while there's a role to name. On a plain element a label means nothing, and axe reports it. */
57
- protected readonly accessibleName: _angular_core.Signal<string | null>;
58
- protected readonly baseClass: _angular_core.Signal<string>;
59
- /** The compact presentation: an overlay pinned to one edge rather than a column in the flow. */
60
- protected readonly drawer: _angular_core.Signal<boolean>;
61
- /**
62
- * Whether the panel is out of view entirely. The icon rail does not count — it is still on screen
63
- * and still operable — but a closed drawer and a fully collapsed off-canvas sidebar both do.
64
- */
65
- protected readonly hidden: _angular_core.Signal<boolean>;
66
- protected readonly iconOnly: _angular_core.Signal<boolean>;
67
- /** Published rather than the raw input, so a `left`/`right` alias still reports as `start`/`end`. */
68
- protected readonly logicalSide: _angular_core.Signal<_nanahoshi_mona_ui_sidebar.SidebarLogicalSide>;
69
- /** A drawer scoped to its layout leaves what's around that usable, so it can't claim to be modal. */
70
- protected readonly modal: _angular_core.Signal<boolean>;
71
- protected readonly offCanvasClosed: _angular_core.Signal<boolean>;
72
- protected readonly physicalSide: _angular_core.Signal<"left" | "right">;
73
- protected readonly railOpensToward: _angular_core.Signal<"start" | "end">;
74
- protected readonly railTooltipText: (element: HTMLElement) => string;
75
- /** A drawer is a modal surface; a docked sidebar keeps whatever role the consumer gave it. */
76
- protected readonly resolvedRole: _angular_core.Signal<string | null>;
77
- protected readonly sidebarId: _angular_core.Signal<string>;
78
- protected readonly state: _angular_core.Signal<"expanded" | "collapsed">;
79
- /**
80
- * `width` and `iconWidth` are the width the sidebar's *contents* get, because that is what the
81
- * parts inside are measured against — an icon rail less a region's padding is meant to leave
82
- * exactly one icon square. The variant's border is painted inside the box under the global
83
- * `border-box`, so it is added back on here rather than being taken out of that measurement.
84
- */
85
- protected readonly widthString: _angular_core.Signal<string>;
86
- /**
87
- * @description Accessible name for the sidebar region. Required when `role` is set, and used as the
88
- * drawer's name on compact viewports, which otherwise has a localized default.
89
- * @default ""
90
- */
91
- readonly ariaLabel: _angular_core.InputSignal<string>;
92
- /**
93
- * @description The id of the element that names the sidebar region, in place of `aria-label`. A docked sidebar with no
94
- * `role` ignores it.
95
- * @default ""
96
- */
97
- readonly ariaLabelledBy: _angular_core.InputSignal<string>;
98
- /**
99
- * @description How the sidebar behaves when collapsed. `"icon"` keeps a narrow rail of icons visible,
100
- * `"offcanvas"` removes it from the layout entirely, and `"none"` disables collapsing altogether.
101
- * @default "offcanvas"
102
- */
103
- readonly collapsible: _angular_core.InputSignal<SidebarCollapsibleMode>;
104
- /**
105
- * @description Sets whether this sidebar is open. Supports two-way binding. While the viewport is
106
- * compact this reflects the drawer, so one binding drives both presentations, and it reads `false` on
107
- * a phone from the start. To remember the docked state, use `persistKey` rather than saving this.
108
- * @default true
109
- */
110
- readonly expanded: _angular_core.ModelSignal<boolean>;
111
- /**
112
- * @description Width of the icon rail while collapsed. Only applies when `collapsible` is `"icon"`.
113
- * Numbers are treated as pixels.
114
- * @default "3rem"
115
- */
116
- readonly iconWidth: _angular_core.InputSignal<string | number>;
117
- /**
118
- * @description Id for the sidebar element, referenced by triggers through `aria-controls`. Supply a
119
- * stable value when the markup is server rendered, so the client does not hydrate onto a different
120
- * generated id. Falls back to a generated id.
121
- * @default ""
122
- */
123
- readonly id: _angular_core.InputSignal<string>;
124
- /**
125
- * @description Width of the overlay drawer on compact viewports. Numbers are treated as pixels.
126
- * @default "18rem"
127
- */
128
- readonly mobileWidth: _angular_core.InputSignal<string | number>;
129
- /**
130
- * @description Remembers whether this sidebar was left open, under this key. Unset means nothing is
131
- * stored — no key, no storage written.
132
- *
133
- * Only the docked state is kept. A drawer is never restored open: on the viewport that makes one,
134
- * it would cover the page on load. A stored value wins over `expanded`, and is pushed back out
135
- * through that binding, so do not set a key on a sidebar whose state is already restored elsewhere.
136
- *
137
- * Where it is kept is `SIDEBAR_STORAGE`, which defaults to `localStorage`. A server-rendered
138
- * application cannot read that until hydration and so flashes the default first; supply storage the
139
- * server can read through `provideSidebarStorage()`.
140
- * @default ""
141
- */
142
- readonly persistKey: _angular_core.InputSignal<string>;
143
- /**
144
- * @description ARIA role for the sidebar region. Leave unset and wrap the menus in a labelled `nav`
145
- * when the sidebar holds more than navigation; set `"navigation"` with an `aria-label` when it does
146
- * not. Ignored on compact viewports, where the drawer is a `dialog`.
147
- * @default ""
148
- */
149
- readonly role: _angular_core.InputSignal<string>;
150
- /**
151
- * @description Which edge the sidebar sits on. Prefer `"start"` and `"end"`, which follow the
152
- * document's writing direction; `"left"` and `"right"` are aliases of them.
153
- * @default "start"
154
- */
155
- readonly side: _angular_core.InputSignal<SidebarSide>;
156
- /**
157
- * @description Additional CSS classes merged onto the host element via `tailwind-merge`.
158
- * @default ""
159
- */
160
- readonly userClass: _angular_core.InputSignalWithTransform<string, ClassInputType>;
161
- /**
162
- * @description The visual treatment of the sidebar. `"floating"` detaches it from the edge on its own
163
- * surface, and `"inset"` moves that raised surface onto the region beside it instead.
164
- * @default "sidebar"
165
- */
166
- readonly variant: _angular_core.InputSignal<SidebarVariant>;
167
- /**
168
- * @description Width of the sidebar while expanded. Numbers are treated as pixels.
169
- * @default "16rem"
170
- */
171
- readonly width: _angular_core.InputSignal<string | number>;
172
- constructor();
173
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<SidebarComponent, never>;
174
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<SidebarComponent, "mona-sidebar", never, { "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; "collapsible": { "alias": "collapsible"; "required": false; "isSignal": true; }; "expanded": { "alias": "expanded"; "required": false; "isSignal": true; }; "iconWidth": { "alias": "iconWidth"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "mobileWidth": { "alias": "mobileWidth"; "required": false; "isSignal": true; }; "persistKey": { "alias": "persistKey"; "required": false; "isSignal": true; }; "role": { "alias": "role"; "required": false; "isSignal": true; }; "side": { "alias": "side"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; }, { "expanded": "expandedChange"; }, never, ["*"], true, [{ directive: typeof i1.CdkTrapFocus; inputs: {}; outputs: {}; }]>;
48
+ export declare class SidebarComponent {
49
+ #private;
50
+ /** Only while there's a role to name. On a plain element a label means nothing, and axe reports it. */
51
+ protected readonly accessibleName: import("@angular/core").Signal<string | null>;
52
+ protected readonly baseClass: import("@angular/core").Signal<string>;
53
+ /** The compact presentation: an overlay pinned to one edge rather than a column in the flow. */
54
+ protected readonly drawer: import("@angular/core").Signal<boolean>;
55
+ /**
56
+ * Whether the panel is out of view entirely. The icon rail does not count — it is still on screen
57
+ * and still operable — but a closed drawer and a fully collapsed off-canvas sidebar both do.
58
+ */
59
+ protected readonly hidden: import("@angular/core").Signal<boolean>;
60
+ protected readonly iconOnly: import("@angular/core").Signal<boolean>;
61
+ /** Published rather than the raw input, so a `left`/`right` alias still reports as `start`/`end`. */
62
+ protected readonly logicalSide: import("@angular/core").Signal<import("@nanahoshi/mona-ui/sidebar").SidebarLogicalSide>;
63
+ /** A drawer scoped to its layout leaves what's around that usable, so it can't claim to be modal. */
64
+ protected readonly modal: import("@angular/core").Signal<boolean>;
65
+ protected readonly offCanvasClosed: import("@angular/core").Signal<boolean>;
66
+ protected readonly physicalSide: import("@angular/core").Signal<"left" | "right">;
67
+ protected readonly railOpensToward: import("@angular/core").Signal<"start" | "end">;
68
+ protected readonly railTooltipText: (element: HTMLElement) => string;
69
+ /** A drawer is a modal surface; a docked sidebar keeps whatever role the consumer gave it. */
70
+ protected readonly resolvedRole: import("@angular/core").Signal<string | null>;
71
+ protected readonly sidebarId: import("@angular/core").Signal<string>;
72
+ protected readonly state: import("@angular/core").Signal<"expanded" | "collapsed">;
73
+ /**
74
+ * `width` and `iconWidth` are the width the sidebar's *contents* get, because that is what the
75
+ * parts inside are measured against — an icon rail less a region's padding is meant to leave
76
+ * exactly one icon square. The variant's border is painted inside the box under the global
77
+ * `border-box`, so it is added back on here rather than being taken out of that measurement.
78
+ */
79
+ protected readonly widthString: import("@angular/core").Signal<string>;
80
+ /**
81
+ * @description Accessible name for the sidebar region. Required when `role` is set, and used as the
82
+ * drawer's name on compact viewports, which otherwise has a localized default.
83
+ * @default ""
84
+ */
85
+ readonly ariaLabel: import("@angular/core").InputSignal<string>;
86
+ /**
87
+ * @description The id of the element that names the sidebar region, in place of `aria-label`. A docked sidebar with no
88
+ * `role` ignores it.
89
+ * @default ""
90
+ */
91
+ readonly ariaLabelledBy: import("@angular/core").InputSignal<string>;
92
+ /**
93
+ * @description How the sidebar behaves when collapsed. `"icon"` keeps a narrow rail of icons visible,
94
+ * `"offcanvas"` removes it from the layout entirely, and `"none"` disables collapsing altogether.
95
+ * @default "offcanvas"
96
+ */
97
+ readonly collapsible: import("@angular/core").InputSignal<SidebarCollapsibleMode>;
98
+ /**
99
+ * @description Sets whether this sidebar is open. Supports two-way binding. While the viewport is
100
+ * compact this reflects the drawer, so one binding drives both presentations, and it reads `false` on
101
+ * a phone from the start. To remember the docked state, use `persistKey` rather than saving this.
102
+ * @default true
103
+ */
104
+ readonly expanded: import("@angular/core").ModelSignal<boolean>;
105
+ /**
106
+ * @description Width of the icon rail while collapsed. Only applies when `collapsible` is `"icon"`.
107
+ * Numbers are treated as pixels.
108
+ * @default "3rem"
109
+ */
110
+ readonly iconWidth: import("@angular/core").InputSignal<string | number>;
111
+ /**
112
+ * @description Id for the sidebar element, referenced by triggers through `aria-controls`. Supply a
113
+ * stable value when the markup is server rendered, so the client does not hydrate onto a different
114
+ * generated id. Falls back to a generated id.
115
+ * @default ""
116
+ */
117
+ readonly id: import("@angular/core").InputSignal<string>;
118
+ /**
119
+ * @description Width of the overlay drawer on compact viewports. Numbers are treated as pixels.
120
+ * @default "18rem"
121
+ */
122
+ readonly mobileWidth: import("@angular/core").InputSignal<string | number>;
123
+ /**
124
+ * @description Remembers whether this sidebar was left open, under this key. Unset means nothing is
125
+ * stored — no key, no storage written.
126
+ *
127
+ * Only the docked state is kept. A drawer is never restored open: on the viewport that makes one,
128
+ * it would cover the page on load. A stored value wins over `expanded`, and is pushed back out
129
+ * through that binding, so do not set a key on a sidebar whose state is already restored elsewhere.
130
+ *
131
+ * Where it is kept is `SIDEBAR_STORAGE`, which defaults to `localStorage`. A server-rendered
132
+ * application cannot read that until hydration and so flashes the default first; supply storage the
133
+ * server can read through `provideSidebarStorage()`.
134
+ * @default ""
135
+ */
136
+ readonly persistKey: import("@angular/core").InputSignal<string>;
137
+ /**
138
+ * @description ARIA role for the sidebar region. Leave unset and wrap the menus in a labelled `nav`
139
+ * when the sidebar holds more than navigation; set `"navigation"` with an `aria-label` when it does
140
+ * not. Ignored on compact viewports, where the drawer is a `dialog`.
141
+ * @default ""
142
+ */
143
+ readonly role: import("@angular/core").InputSignal<string>;
144
+ /**
145
+ * @description Which edge the sidebar sits on. Prefer `"start"` and `"end"`, which follow the
146
+ * document's writing direction; `"left"` and `"right"` are aliases of them.
147
+ * @default "start"
148
+ */
149
+ readonly side: import("@angular/core").InputSignal<SidebarSide>;
150
+ /**
151
+ * @description Additional CSS classes merged onto the host element via `tailwind-merge`.
152
+ * @default ""
153
+ */
154
+ readonly userClass: import("@angular/core").InputSignalWithTransform<string, ClassInputType>;
155
+ /**
156
+ * @description The visual treatment of the sidebar. `"floating"` detaches it from the edge on its own
157
+ * surface, and `"inset"` moves that raised surface onto the region beside it instead.
158
+ * @default "sidebar"
159
+ */
160
+ readonly variant: import("@angular/core").InputSignal<SidebarVariant>;
161
+ /**
162
+ * @description Width of the sidebar while expanded. Numbers are treated as pixels.
163
+ * @default "16rem"
164
+ */
165
+ readonly width: import("@angular/core").InputSignal<string | number>;
166
+ constructor();
167
+ static ɵfac: i0.ɵɵFactoryDeclaration<SidebarComponent, never>;
168
+ static ɵcmp: i0.ɵɵComponentDeclaration<SidebarComponent, "mona-sidebar", never, {
169
+ "ariaLabel": {
170
+ "alias": "aria-label";
171
+ "required": false;
172
+ "isSignal": true;
173
+ };
174
+ "ariaLabelledBy": {
175
+ "alias": "aria-labelledby";
176
+ "required": false;
177
+ "isSignal": true;
178
+ };
179
+ "collapsible": {
180
+ "alias": "collapsible";
181
+ "required": false;
182
+ "isSignal": true;
183
+ };
184
+ "expanded": {
185
+ "alias": "expanded";
186
+ "required": false;
187
+ "isSignal": true;
188
+ };
189
+ "iconWidth": {
190
+ "alias": "iconWidth";
191
+ "required": false;
192
+ "isSignal": true;
193
+ };
194
+ "id": {
195
+ "alias": "id";
196
+ "required": false;
197
+ "isSignal": true;
198
+ };
199
+ "mobileWidth": {
200
+ "alias": "mobileWidth";
201
+ "required": false;
202
+ "isSignal": true;
203
+ };
204
+ "persistKey": {
205
+ "alias": "persistKey";
206
+ "required": false;
207
+ "isSignal": true;
208
+ };
209
+ "role": {
210
+ "alias": "role";
211
+ "required": false;
212
+ "isSignal": true;
213
+ };
214
+ "side": {
215
+ "alias": "side";
216
+ "required": false;
217
+ "isSignal": true;
218
+ };
219
+ "userClass": {
220
+ "alias": "class";
221
+ "required": false;
222
+ "isSignal": true;
223
+ };
224
+ "variant": {
225
+ "alias": "variant";
226
+ "required": false;
227
+ "isSignal": true;
228
+ };
229
+ "width": {
230
+ "alias": "width";
231
+ "required": false;
232
+ "isSignal": true;
233
+ };
234
+ }, {
235
+ "expanded": "expandedChange";
236
+ }, never, ["*"], true, [{
237
+ directive: typeof i1$2.CdkTrapFocus;
238
+ inputs: {};
239
+ outputs: {};
240
+ }]>;
175
241
  }
176
-
177
242
  /**
178
243
  * @description
179
244
  * How far an open drawer's modality reaches.
@@ -182,7 +247,6 @@ declare class SidebarComponent {
182
247
  * layout stays usable, so the drawer isn't `aria-modal`.
183
248
  */
184
249
  type SidebarModalScope = "page" | "layout";
185
-
186
250
  /**
187
251
  * @description
188
252
  * Lays its children out in a row and owns what they share. Project one or more `mona-sidebar`
@@ -195,179 +259,211 @@ type SidebarModalScope = "page" | "layout";
195
259
  * reset whenever the viewport crosses the breakpoint. Only one drawer is open at a time: opening one
196
260
  * closes any other, and they share the single backdrop this layout paints behind them.
197
261
  */
198
- declare class SidebarLayoutComponent {
199
- #private;
200
- protected readonly backdropClass: _angular_core.Signal<string>;
201
- protected readonly baseClass: _angular_core.Signal<string>;
202
- protected readonly compact: _angular_core.Signal<boolean>;
203
- /** One backdrop serves every sidebar, because only one of their drawers is ever open. */
204
- protected readonly mobileOpen: _angular_core.Signal<boolean>;
205
- /**
206
- * @description Viewport width, in pixels, below which the sidebar presents as an overlay drawer.
207
- * Set to `0` to keep the docked presentation at every size.
208
- * @default 768
209
- */
210
- readonly mobileBreakpoint: _angular_core.InputSignal<number>;
211
- /**
212
- * @description How far an open drawer's modality reaches. `"page"` makes everything outside the drawer inert and
213
- * locks the page's scroll. Use `"layout"` for a sidebar embedded in part of a page: what's around the layout stays
214
- * usable, so the drawer isn't `aria-modal`.
215
- * @default "page"
216
- */
217
- readonly modalScope: _angular_core.InputSignal<SidebarModalScope>;
218
- /**
219
- * @description Additional CSS classes merged onto the host element via `tailwind-merge`.
220
- * @default ""
221
- */
222
- readonly userClass: _angular_core.InputSignalWithTransform<string, ClassInputType>;
223
- constructor();
224
- protected onBackdropClick(): void;
225
- protected onEscape(event: Event): void;
226
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<SidebarLayoutComponent, never>;
227
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<SidebarLayoutComponent, "mona-sidebar-layout", never, { "mobileBreakpoint": { "alias": "mobileBreakpoint"; "required": false; "isSignal": true; }; "modalScope": { "alias": "modalScope"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
262
+ export declare class SidebarLayoutComponent {
263
+ #private;
264
+ protected readonly backdropClass: import("@angular/core").Signal<string>;
265
+ protected readonly baseClass: import("@angular/core").Signal<string>;
266
+ protected readonly compact: import("@angular/core").Signal<boolean>;
267
+ /** One backdrop serves every sidebar, because only one of their drawers is ever open. */
268
+ protected readonly mobileOpen: import("@angular/core").Signal<boolean>;
269
+ /**
270
+ * @description Viewport width, in pixels, below which the sidebar presents as an overlay drawer.
271
+ * Set to `0` to keep the docked presentation at every size.
272
+ * @default 768
273
+ */
274
+ readonly mobileBreakpoint: import("@angular/core").InputSignal<number>;
275
+ /**
276
+ * @description How far an open drawer's modality reaches. `"page"` makes everything outside the drawer inert and
277
+ * locks the page's scroll. Use `"layout"` for a sidebar embedded in part of a page: what's around the layout stays
278
+ * usable, so the drawer isn't `aria-modal`.
279
+ * @default "page"
280
+ */
281
+ readonly modalScope: import("@angular/core").InputSignal<SidebarModalScope>;
282
+ /**
283
+ * @description Additional CSS classes merged onto the host element via `tailwind-merge`.
284
+ * @default ""
285
+ */
286
+ readonly userClass: import("@angular/core").InputSignalWithTransform<string, ClassInputType>;
287
+ constructor();
288
+ protected onBackdropClick(): void;
289
+ protected onEscape(event: Event): void;
290
+ static ɵfac: i0.ɵɵFactoryDeclaration<SidebarLayoutComponent, never>;
291
+ static ɵcmp: i0.ɵɵComponentDeclaration<SidebarLayoutComponent, "mona-sidebar-layout", never, {
292
+ "mobileBreakpoint": {
293
+ "alias": "mobileBreakpoint";
294
+ "required": false;
295
+ "isSignal": true;
296
+ };
297
+ "modalScope": {
298
+ "alias": "modalScope";
299
+ "required": false;
300
+ "isSignal": true;
301
+ };
302
+ "userClass": {
303
+ "alias": "class";
304
+ "required": false;
305
+ "isSignal": true;
306
+ };
307
+ }, {}, never, ["*"], true, never>;
228
308
  }
229
-
230
309
  /**
231
310
  * @description
232
311
  * A loading placeholder shaped like a menu item. Its label bar is clipped on the icon rail, where the
233
312
  * real labels are not visible either.
234
313
  */
235
- declare class SidebarMenuSkeletonComponent {
236
- #private;
237
- protected readonly baseClass: _angular_core.Signal<string>;
238
- protected readonly iconOnly: _angular_core.Signal<boolean>;
239
- /**
240
- * @description Width of the label bar. Varying it across a list keeps the placeholder from looking
241
- * like a rigid grid. Numbers are treated as pixels.
242
- * @default "60%"
243
- */
244
- readonly labelWidth: _angular_core.InputSignal<string | number>;
245
- /**
246
- * @description Renders a square standing in for the item's icon.
247
- * @default true
248
- */
249
- readonly showIcon: _angular_core.InputSignal<boolean>;
250
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<SidebarMenuSkeletonComponent, never>;
251
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<SidebarMenuSkeletonComponent, "mona-sidebar-menu-skeleton", never, { "labelWidth": { "alias": "labelWidth"; "required": false; "isSignal": true; }; "showIcon": { "alias": "showIcon"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
314
+ export declare class SidebarMenuSkeletonComponent {
315
+ #private;
316
+ protected readonly baseClass: import("@angular/core").Signal<string>;
317
+ protected readonly iconOnly: import("@angular/core").Signal<boolean>;
318
+ /**
319
+ * @description Width of the label bar. Varying it across a list keeps the placeholder from looking
320
+ * like a rigid grid. Numbers are treated as pixels.
321
+ * @default "60%"
322
+ */
323
+ readonly labelWidth: import("@angular/core").InputSignal<string | number>;
324
+ /**
325
+ * @description Renders a square standing in for the item's icon.
326
+ * @default true
327
+ */
328
+ readonly showIcon: import("@angular/core").InputSignal<boolean>;
329
+ static ɵfac: i0.ɵɵFactoryDeclaration<SidebarMenuSkeletonComponent, never>;
330
+ static ɵcmp: i0.ɵɵComponentDeclaration<SidebarMenuSkeletonComponent, "mona-sidebar-menu-skeleton", never, {
331
+ "labelWidth": {
332
+ "alias": "labelWidth";
333
+ "required": false;
334
+ "isSignal": true;
335
+ };
336
+ "showIcon": {
337
+ "alias": "showIcon";
338
+ "required": false;
339
+ "isSignal": true;
340
+ };
341
+ }, {}, never, never, true, never>;
252
342
  }
253
-
254
- declare class SidebarContentDirective {
255
- #private;
256
- /**
257
- * A scrollbar takes its width out of the content box, and the icon rail has none to give: at a
258
- * `3rem` rail it claims about a third of it and squeezes every icon in the region. There is nothing
259
- * to read on the rail anyway — the labels are gone — so the overflow is simply clipped there.
260
- */
261
- protected readonly baseClass: _angular_core.Signal<string>;
262
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<SidebarContentDirective, never>;
263
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SidebarContentDirective, "[monaSidebarContent]", never, {}, {}, never, never, true, never>;
343
+ export declare class SidebarContentDirective {
344
+ #private;
345
+ /**
346
+ * A scrollbar takes its width out of the content box, and the icon rail has none to give: at a
347
+ * `3rem` rail it claims about a third of it and squeezes every icon in the region. There is nothing
348
+ * to read on the rail anyway — the labels are gone — so the overflow is simply clipped there.
349
+ */
350
+ protected readonly baseClass: import("@angular/core").Signal<string>;
351
+ static ɵfac: i0.ɵɵFactoryDeclaration<SidebarContentDirective, never>;
352
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SidebarContentDirective, "[monaSidebarContent]", never, {}, {}, never, never, true, never>;
264
353
  }
265
-
266
354
  /**
267
355
  * @description
268
356
  * The region at the bottom of the sidebar, below its content. Holds what stays put while the content
269
357
  * scrolls — a profile menu, a sign-out.
270
358
  */
271
- declare class SidebarFooterDirective {
272
- protected readonly baseClass: _angular_core.Signal<string>;
273
- /**
274
- * @description Additional CSS classes merged onto the host element via `tailwind-merge`.
275
- * @default ""
276
- */
277
- readonly userClass: _angular_core.InputSignalWithTransform<string, ClassInputType>;
278
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<SidebarFooterDirective, never>;
279
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SidebarFooterDirective, "[monaSidebarFooter]", never, { "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
359
+ export declare class SidebarFooterDirective {
360
+ protected readonly baseClass: import("@angular/core").Signal<string>;
361
+ /**
362
+ * @description Additional CSS classes merged onto the host element via `tailwind-merge`.
363
+ * @default ""
364
+ */
365
+ readonly userClass: import("@angular/core").InputSignalWithTransform<string, ClassInputType>;
366
+ static ɵfac: i0.ɵɵFactoryDeclaration<SidebarFooterDirective, never>;
367
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SidebarFooterDirective, "[monaSidebarFooter]", never, {
368
+ "userClass": {
369
+ "alias": "class";
370
+ "required": false;
371
+ "isSignal": true;
372
+ };
373
+ }, {}, never, never, true, never>;
280
374
  }
281
-
282
375
  /**
283
376
  * @description
284
377
  * A titled section of the sidebar, grouping a label and its menu. Stack as many as the sidebar
285
378
  * needs; each is an ordinary block, so a `monaSidebarSeparator` between them is optional. A
286
379
  * `monaSidebarGroupLabel` inside it names the group.
287
380
  */
288
- declare class SidebarGroupDirective {
289
- protected readonly baseClass: string;
290
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<SidebarGroupDirective, never>;
291
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SidebarGroupDirective, "[monaSidebarGroup]", never, {}, {}, never, never, true, never>;
381
+ export declare class SidebarGroupDirective {
382
+ protected readonly baseClass: string;
383
+ static ɵfac: i0.ɵɵFactoryDeclaration<SidebarGroupDirective, never>;
384
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SidebarGroupDirective, "[monaSidebarGroup]", never, {}, {}, never, never, true, never>;
292
385
  }
293
-
294
386
  /**
295
387
  * @description
296
388
  * A control in the corner of a group header — an add or overflow button. Stands down on the icon
297
389
  * rail, where there is no header row left to sit in. Give it an `aria-label`: it is icon-only.
298
390
  */
299
- declare class SidebarGroupActionDirective {
300
- #private;
301
- protected readonly hidden: _angular_core.Signal<boolean>;
302
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<SidebarGroupActionDirective, never>;
303
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SidebarGroupActionDirective, "button[monaSidebarGroupAction]", never, {}, {}, never, never, true, never>;
391
+ export declare class SidebarGroupActionDirective {
392
+ #private;
393
+ protected readonly hidden: import("@angular/core").Signal<boolean>;
394
+ static ɵfac: i0.ɵɵFactoryDeclaration<SidebarGroupActionDirective, never>;
395
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SidebarGroupActionDirective, "button[monaSidebarGroupAction]", never, {}, {}, never, never, true, never>;
304
396
  }
305
-
306
397
  /**
307
398
  * @description
308
399
  * The body of a `monaSidebarGroup`, below its header. Wraps the menu itself.
309
400
  */
310
- declare class SidebarGroupContentDirective {
311
- protected readonly baseClass: string;
312
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<SidebarGroupContentDirective, never>;
313
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SidebarGroupContentDirective, "[monaSidebarGroupContent]", never, {}, {}, never, never, true, never>;
401
+ export declare class SidebarGroupContentDirective {
402
+ protected readonly baseClass: string;
403
+ static ɵfac: i0.ɵɵFactoryDeclaration<SidebarGroupContentDirective, never>;
404
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SidebarGroupContentDirective, "[monaSidebarGroupContent]", never, {}, {}, never, never, true, never>;
314
405
  }
315
-
316
406
  /**
317
407
  * @description
318
408
  * The row above a group's content, holding its label and any group action. Collapses to nothing on
319
409
  * the icon rail rather than leaving an empty gap where the label used to be.
320
410
  */
321
- declare class SidebarGroupHeaderDirective {
322
- #private;
323
- protected readonly baseClass: _angular_core.Signal<string>;
324
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<SidebarGroupHeaderDirective, never>;
325
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SidebarGroupHeaderDirective, "[monaSidebarGroupHeader]", never, {}, {}, never, never, true, never>;
411
+ export declare class SidebarGroupHeaderDirective {
412
+ #private;
413
+ protected readonly baseClass: import("@angular/core").Signal<string>;
414
+ static ɵfac: i0.ɵɵFactoryDeclaration<SidebarGroupHeaderDirective, never>;
415
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SidebarGroupHeaderDirective, "[monaSidebarGroupHeader]", never, {}, {}, never, never, true, never>;
326
416
  }
327
-
328
417
  /**
329
418
  * @description
330
419
  * The name of a group, which the enclosing `monaSidebarGroup` is labelled by. Fades out on the icon
331
420
  * rail, where there is no width to read it in.
332
421
  */
333
- declare class SidebarGroupLabelDirective {
334
- #private;
335
- protected readonly baseClass: _angular_core.Signal<string>;
336
- protected readonly id: string;
337
- constructor();
338
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<SidebarGroupLabelDirective, never>;
339
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SidebarGroupLabelDirective, "[monaSidebarGroupLabel]", never, {}, {}, never, never, true, never>;
422
+ export declare class SidebarGroupLabelDirective {
423
+ #private;
424
+ protected readonly baseClass: import("@angular/core").Signal<string>;
425
+ protected readonly id: string;
426
+ constructor();
427
+ static ɵfac: i0.ɵɵFactoryDeclaration<SidebarGroupLabelDirective, never>;
428
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SidebarGroupLabelDirective, "[monaSidebarGroupLabel]", never, {}, {}, never, never, true, never>;
340
429
  }
341
-
342
430
  /**
343
431
  * @description
344
432
  * The region at the top of the sidebar, above its content. Holds what stays put while the content
345
433
  * scrolls — a workspace switcher, a search box.
346
434
  */
347
- declare class SidebarHeaderDirective {
348
- protected readonly baseClass: _angular_core.Signal<string>;
349
- /**
350
- * @description Additional CSS classes merged onto the host element via `tailwind-merge`.
351
- * @default ""
352
- */
353
- readonly userClass: _angular_core.InputSignalWithTransform<string, ClassInputType>;
354
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<SidebarHeaderDirective, never>;
355
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SidebarHeaderDirective, "[monaSidebarHeader]", never, { "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
435
+ export declare class SidebarHeaderDirective {
436
+ protected readonly baseClass: import("@angular/core").Signal<string>;
437
+ /**
438
+ * @description Additional CSS classes merged onto the host element via `tailwind-merge`.
439
+ * @default ""
440
+ */
441
+ readonly userClass: import("@angular/core").InputSignalWithTransform<string, ClassInputType>;
442
+ static ɵfac: i0.ɵɵFactoryDeclaration<SidebarHeaderDirective, never>;
443
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SidebarHeaderDirective, "[monaSidebarHeader]", never, {
444
+ "userClass": {
445
+ "alias": "class";
446
+ "required": false;
447
+ "isSignal": true;
448
+ };
449
+ }, {}, never, never, true, never>;
356
450
  }
357
-
358
451
  /**
359
452
  * @description
360
453
  * A text input sized for the sidebar, composing `monaTextBox`. Stands down on the icon rail,
361
454
  * where there is no room to type.
362
455
  */
363
- declare class SidebarInputDirective {
364
- #private;
365
- protected readonly baseClass: string;
366
- protected readonly hidden: _angular_core.Signal<boolean>;
367
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<SidebarInputDirective, never>;
368
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SidebarInputDirective, "input[monaSidebarInput]", never, {}, {}, never, never, true, [{ directive: typeof i1$1.TextBoxDirective; inputs: {}; outputs: {}; }]>;
456
+ export declare class SidebarInputDirective {
457
+ #private;
458
+ protected readonly baseClass: string;
459
+ protected readonly hidden: import("@angular/core").Signal<boolean>;
460
+ static ɵfac: i0.ɵɵFactoryDeclaration<SidebarInputDirective, never>;
461
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SidebarInputDirective, "input[monaSidebarInput]", never, {}, {}, never, never, true, [{
462
+ directive: typeof i1$1.TextBoxDirective;
463
+ inputs: {};
464
+ outputs: {};
465
+ }]>;
369
466
  }
370
-
371
467
  /**
372
468
  * @description
373
469
  * Marks the main region beside the sidebar. Fills the remaining width and scrolls independently.
@@ -377,61 +473,79 @@ declare class SidebarInputDirective {
377
473
  * out of the way for whichever drawer is open, and where a layout holds more than one sidebar it takes
378
474
  * its surface from the first one in author order.
379
475
  */
380
- declare class SidebarInsetDirective {
381
- #private;
382
- protected readonly baseClass: _angular_core.Signal<string>;
383
- protected readonly behindDrawer: _angular_core.Signal<boolean>;
384
- /**
385
- * @description Additional CSS classes merged onto the host element via `tailwind-merge`.
386
- * @default ""
387
- */
388
- readonly userClass: _angular_core.InputSignalWithTransform<string, ClassInputType>;
389
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<SidebarInsetDirective, never>;
390
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SidebarInsetDirective, "[monaSidebarInset]", never, { "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
476
+ export declare class SidebarInsetDirective {
477
+ #private;
478
+ protected readonly baseClass: import("@angular/core").Signal<string>;
479
+ protected readonly behindDrawer: import("@angular/core").Signal<boolean>;
480
+ /**
481
+ * @description Additional CSS classes merged onto the host element via `tailwind-merge`.
482
+ * @default ""
483
+ */
484
+ readonly userClass: import("@angular/core").InputSignalWithTransform<string, ClassInputType>;
485
+ static ɵfac: i0.ɵɵFactoryDeclaration<SidebarInsetDirective, never>;
486
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SidebarInsetDirective, "[monaSidebarInset]", never, {
487
+ "userClass": {
488
+ "alias": "class";
489
+ "required": false;
490
+ "isSignal": true;
491
+ };
492
+ }, {}, never, never, true, never>;
391
493
  }
392
-
393
494
  /**
394
495
  * @description
395
496
  * A trailing control on a menu item — an overflow menu, a pin. Sits inside the row's highlight and
396
497
  * stands down on the icon rail. Give it an `aria-label`: it is icon-only.
397
498
  */
398
- declare class SidebarMenuActionDirective {
399
- #private;
400
- protected readonly baseClass: string;
401
- protected readonly hidden: _angular_core.Signal<boolean>;
402
- constructor();
403
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<SidebarMenuActionDirective, never>;
404
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SidebarMenuActionDirective, "button[monaSidebarMenuAction]", never, {}, {}, never, never, true, [{ directive: typeof i1$2.ButtonDirective; inputs: {}; outputs: {}; }]>;
499
+ export declare class SidebarMenuActionDirective {
500
+ #private;
501
+ protected readonly baseClass: string;
502
+ protected readonly hidden: import("@angular/core").Signal<boolean>;
503
+ constructor();
504
+ static ɵfac: i0.ɵɵFactoryDeclaration<SidebarMenuActionDirective, never>;
505
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SidebarMenuActionDirective, "button[monaSidebarMenuAction]", never, {}, {}, never, never, true, [{
506
+ directive: typeof i1.ButtonDirective;
507
+ inputs: {};
508
+ outputs: {};
509
+ }]>;
405
510
  }
406
-
407
511
  /**
408
512
  * @description
409
513
  * A trailing count or status badge on a menu item. Stands down on the icon rail, where it would
410
514
  * crowd out the icon it belongs to.
411
515
  */
412
- declare class SidebarMenuBadgeDirective {
413
- #private;
414
- protected readonly baseClass: _angular_core.Signal<string>;
415
- /**
416
- * @description Additional CSS classes merged onto the host element via `tailwind-merge`.
417
- * @default ""
418
- */
419
- readonly userClass: _angular_core.InputSignalWithTransform<string, ClassInputType>;
420
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<SidebarMenuBadgeDirective, never>;
421
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SidebarMenuBadgeDirective, "[monaSidebarMenuBadge]", never, { "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
516
+ export declare class SidebarMenuBadgeDirective {
517
+ #private;
518
+ protected readonly baseClass: import("@angular/core").Signal<string>;
519
+ /**
520
+ * @description Additional CSS classes merged onto the host element via `tailwind-merge`.
521
+ * @default ""
522
+ */
523
+ readonly userClass: import("@angular/core").InputSignalWithTransform<string, ClassInputType>;
524
+ static ɵfac: i0.ɵɵFactoryDeclaration<SidebarMenuBadgeDirective, never>;
525
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SidebarMenuBadgeDirective, "[monaSidebarMenuBadge]", never, {
526
+ "userClass": {
527
+ "alias": "class";
528
+ "required": false;
529
+ "isSignal": true;
530
+ };
531
+ }, {}, never, never, true, never>;
422
532
  }
423
-
424
- declare class SidebarMenuDirective {
425
- protected readonly baseClass: _angular_core.Signal<string>;
426
- /**
427
- * @description Additional CSS classes merged onto the host element via `tailwind-merge`.
428
- * @default ""
429
- */
430
- readonly userClass: _angular_core.InputSignalWithTransform<string, ClassInputType>;
431
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<SidebarMenuDirective, never>;
432
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SidebarMenuDirective, "ul[monaSidebarMenu]", never, { "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
533
+ export declare class SidebarMenuDirective {
534
+ protected readonly baseClass: import("@angular/core").Signal<string>;
535
+ /**
536
+ * @description Additional CSS classes merged onto the host element via `tailwind-merge`.
537
+ * @default ""
538
+ */
539
+ readonly userClass: import("@angular/core").InputSignalWithTransform<string, ClassInputType>;
540
+ static ɵfac: i0.ɵɵFactoryDeclaration<SidebarMenuDirective, never>;
541
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SidebarMenuDirective, "ul[monaSidebarMenu]", never, {
542
+ "userClass": {
543
+ "alias": "class";
544
+ "required": false;
545
+ "isSignal": true;
546
+ };
547
+ }, {}, never, never, true, never>;
433
548
  }
434
-
435
549
  /**
436
550
  * How much room the button's leading visual needs.
437
551
  *
@@ -440,7 +554,6 @@ declare class SidebarMenuDirective {
440
554
  * edge, and which is given a taller row while the sidebar is expanded.
441
555
  */
442
556
  type SidebarMenuButtonSize = "medium" | "large";
443
-
444
557
  /**
445
558
  * @description
446
559
  * A row in a sidebar menu. Applies to a `button` for an action and to an `a` for a destination —
@@ -451,81 +564,116 @@ type SidebarMenuButtonSize = "medium" | "large";
451
564
  * underneath it. A row that opens a submenu leaves the drawer open, and on the icon rail it expands the
452
565
  * sidebar, since that's the only place the submenu can open.
453
566
  */
454
- declare class SidebarMenuButtonDirective {
455
- #private;
456
- protected readonly ariaDisabled: _angular_core.Signal<"true" | null>;
457
- protected readonly baseClass: _angular_core.Signal<string>;
458
- /**
459
- * Marks the row the user is currently on. `page` regardless of host element: `active` describes a
460
- * destination, and a sidebar built from buttons rather than anchors is still a set of destinations
461
- * as far as a screen reader is concerned.
462
- */
463
- protected readonly current: _angular_core.Signal<"page" | null>;
464
- protected readonly nativeDisabled: _angular_core.Signal<"" | null>;
465
- /**
466
- * On the rail the row becomes a square exactly the size of its leading visual and clips its own
467
- * overflow, so any label is pushed out of view instead of competing for space.
468
- */
469
- protected readonly railBox: _angular_core.Signal<boolean>;
470
- protected readonly railTooltip: _angular_core.Signal<string | null>;
471
- protected readonly role: _angular_core.Signal<string | null>;
472
- protected readonly tabIndex: _angular_core.Signal<0 | null>;
473
- protected readonly type: string | null;
474
- /**
475
- * @description Closes the overlay drawer after this row is activated. Only applies on compact
476
- * viewports, where the drawer covers the destination being navigated to. Set to `false` for rows
477
- * that do not navigate. Leave it unset on a `monaCollapsibleTrigger`, which keeps the drawer open.
478
- * @default true, or false on a `monaCollapsibleTrigger`
479
- */
480
- readonly closeOnSelect: _angular_core.InputSignal<boolean | undefined>;
481
- /**
482
- * @description Renders the row as unavailable and suppresses activation, including a `routerLink` and any `click`
483
- * handler on it. A disabled anchor gives up its `href`.
484
- * @default false
485
- */
486
- readonly disabled: _angular_core.InputSignal<boolean>;
487
- /**
488
- * @description How much room this row's leading visual needs. Use `"large"` when it opens with
489
- * something avatar sized, so the icon rail lets it fill the square instead of insetting and clipping it.
490
- * @default "medium"
491
- */
492
- readonly size: _angular_core.InputSignal<SidebarMenuButtonSize>;
493
- /**
494
- * @description Text identifying this item while the sidebar is collapsed to its icon rail, where the
495
- * label is clipped away. Shown as a tooltip on hover and on keyboard focus, on the rail only.
496
- * @default ""
497
- */
498
- readonly tooltip: _angular_core.InputSignal<string>;
499
- /**
500
- * @description Additional CSS classes merged onto the host element via `tailwind-merge`.
501
- * @default ""
502
- */
503
- readonly userClass: _angular_core.InputSignalWithTransform<string, ClassInputType>;
504
- constructor();
505
- protected onClick(): void;
506
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<SidebarMenuButtonDirective, never>;
507
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SidebarMenuButtonDirective, "a[monaSidebarMenuButton], button[monaSidebarMenuButton]", ["monaSidebarMenuButton"], { "closeOnSelect": { "alias": "closeOnSelect"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "tooltip": { "alias": "tooltip"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
567
+ export declare class SidebarMenuButtonDirective {
568
+ #private;
569
+ protected readonly ariaDisabled: import("@angular/core").Signal<"true" | null>;
570
+ protected readonly baseClass: import("@angular/core").Signal<string>;
571
+ /**
572
+ * Marks the row the user is currently on. `page` regardless of host element: `active` describes a
573
+ * destination, and a sidebar built from buttons rather than anchors is still a set of destinations
574
+ * as far as a screen reader is concerned.
575
+ */
576
+ protected readonly current: import("@angular/core").Signal<"page" | null>;
577
+ protected readonly nativeDisabled: import("@angular/core").Signal<"" | null>;
578
+ /**
579
+ * On the rail the row becomes a square exactly the size of its leading visual and clips its own
580
+ * overflow, so any label is pushed out of view instead of competing for space.
581
+ */
582
+ protected readonly railBox: import("@angular/core").Signal<boolean>;
583
+ protected readonly railTooltip: import("@angular/core").Signal<string | null>;
584
+ protected readonly role: import("@angular/core").Signal<string | null>;
585
+ protected readonly tabIndex: import("@angular/core").Signal<0 | null>;
586
+ protected readonly type: string | null;
587
+ /**
588
+ * @description Closes the overlay drawer after this row is activated. Only applies on compact
589
+ * viewports, where the drawer covers the destination being navigated to. Set to `false` for rows
590
+ * that do not navigate. Leave it unset on a `monaCollapsibleTrigger`, which keeps the drawer open.
591
+ * @default true, or false on a `monaCollapsibleTrigger`
592
+ */
593
+ readonly closeOnSelect: import("@angular/core").InputSignal<boolean | undefined>;
594
+ /**
595
+ * @description Renders the row as unavailable and suppresses activation, including a `routerLink` and any `click`
596
+ * handler on it. A disabled anchor gives up its `href`.
597
+ * @default false
598
+ */
599
+ readonly disabled: import("@angular/core").InputSignal<boolean>;
600
+ /**
601
+ * @description How much room this row's leading visual needs. Use `"large"` when it opens with
602
+ * something avatar sized, so the icon rail lets it fill the square instead of insetting and clipping it.
603
+ * @default "medium"
604
+ */
605
+ readonly size: import("@angular/core").InputSignal<SidebarMenuButtonSize>;
606
+ /**
607
+ * @description Text identifying this item while the sidebar is collapsed to its icon rail, where the
608
+ * label is clipped away. Shown as a tooltip on hover and on keyboard focus, on the rail only.
609
+ * @default ""
610
+ */
611
+ readonly tooltip: import("@angular/core").InputSignal<string>;
612
+ /**
613
+ * @description Additional CSS classes merged onto the host element via `tailwind-merge`.
614
+ * @default ""
615
+ */
616
+ readonly userClass: import("@angular/core").InputSignalWithTransform<string, ClassInputType>;
617
+ constructor();
618
+ protected onClick(): void;
619
+ static ɵfac: i0.ɵɵFactoryDeclaration<SidebarMenuButtonDirective, never>;
620
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SidebarMenuButtonDirective, "a[monaSidebarMenuButton], button[monaSidebarMenuButton]", ["monaSidebarMenuButton"], {
621
+ "closeOnSelect": {
622
+ "alias": "closeOnSelect";
623
+ "required": false;
624
+ "isSignal": true;
625
+ };
626
+ "disabled": {
627
+ "alias": "disabled";
628
+ "required": false;
629
+ "isSignal": true;
630
+ };
631
+ "size": {
632
+ "alias": "size";
633
+ "required": false;
634
+ "isSignal": true;
635
+ };
636
+ "tooltip": {
637
+ "alias": "tooltip";
638
+ "required": false;
639
+ "isSignal": true;
640
+ };
641
+ "userClass": {
642
+ "alias": "class";
643
+ "required": false;
644
+ "isSignal": true;
645
+ };
646
+ }, {}, never, never, true, never>;
508
647
  }
509
-
510
- declare class SidebarMenuItemDirective {
511
- #private;
512
- protected readonly baseClass: _angular_core.Signal<string>;
513
- /**
514
- * @description Marks this row as the current sidebar destination. The row owns the selected
515
- * surface so trailing badges and actions remain inside one continuous highlight.
516
- * @default false
517
- */
518
- readonly active: _angular_core.InputSignal<boolean>;
519
- /**
520
- * @description Additional CSS classes merged onto the host element via `tailwind-merge`.
521
- * @default ""
522
- */
523
- readonly userClass: _angular_core.InputSignalWithTransform<string, ClassInputType>;
524
- constructor();
525
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<SidebarMenuItemDirective, never>;
526
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SidebarMenuItemDirective, "li[monaSidebarMenuItem]", never, { "active": { "alias": "active"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
648
+ export declare class SidebarMenuItemDirective {
649
+ #private;
650
+ protected readonly baseClass: import("@angular/core").Signal<string>;
651
+ /**
652
+ * @description Marks this row as the current sidebar destination. The row owns the selected
653
+ * surface so trailing badges and actions remain inside one continuous highlight.
654
+ * @default false
655
+ */
656
+ readonly active: import("@angular/core").InputSignal<boolean>;
657
+ /**
658
+ * @description Additional CSS classes merged onto the host element via `tailwind-merge`.
659
+ * @default ""
660
+ */
661
+ readonly userClass: import("@angular/core").InputSignalWithTransform<string, ClassInputType>;
662
+ constructor();
663
+ static ɵfac: i0.ɵɵFactoryDeclaration<SidebarMenuItemDirective, never>;
664
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SidebarMenuItemDirective, "li[monaSidebarMenuItem]", never, {
665
+ "active": {
666
+ "alias": "active";
667
+ "required": false;
668
+ "isSignal": true;
669
+ };
670
+ "userClass": {
671
+ "alias": "class";
672
+ "required": false;
673
+ "isSignal": true;
674
+ };
675
+ }, {}, never, never, true, never>;
527
676
  }
528
-
529
677
  /**
530
678
  * @description
531
679
  * An indented submenu inside a `monaSidebarMenuItem` that is also a `monaCollapsible`.
@@ -535,17 +683,22 @@ declare class SidebarMenuItemDirective {
535
683
  * directive apply its own `inert`. Hiding it here as well used to produce the opposite: a submenu the
536
684
  * trigger still described as expanded, with focusable items, that nobody could see.
537
685
  */
538
- declare class SidebarMenuSubDirective {
539
- protected readonly baseClass: _angular_core.Signal<string>;
540
- /**
541
- * @description Additional CSS classes merged onto the host element via `tailwind-merge`.
542
- * @default ""
543
- */
544
- readonly userClass: _angular_core.InputSignalWithTransform<string, ClassInputType>;
545
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<SidebarMenuSubDirective, never>;
546
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SidebarMenuSubDirective, "ul[monaSidebarMenuSub]", never, { "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
686
+ export declare class SidebarMenuSubDirective {
687
+ protected readonly baseClass: import("@angular/core").Signal<string>;
688
+ /**
689
+ * @description Additional CSS classes merged onto the host element via `tailwind-merge`.
690
+ * @default ""
691
+ */
692
+ readonly userClass: import("@angular/core").InputSignalWithTransform<string, ClassInputType>;
693
+ static ɵfac: i0.ɵɵFactoryDeclaration<SidebarMenuSubDirective, never>;
694
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SidebarMenuSubDirective, "ul[monaSidebarMenuSub]", never, {
695
+ "userClass": {
696
+ "alias": "class";
697
+ "required": false;
698
+ "isSignal": true;
699
+ };
700
+ }, {}, never, never, true, never>;
547
701
  }
548
-
549
702
  /**
550
703
  * @description
551
704
  * A thin strip along the sidebar's inner edge that toggles it. Place it inside `mona-sidebar`,
@@ -555,39 +708,49 @@ declare class SidebarMenuSubDirective {
555
708
  * does, and a second tab stop onto a 4px strip would be noise for keyboard users. Provide a
556
709
  * `monaSidebarTrigger` as well — the rail is not a substitute for it.
557
710
  */
558
- declare class SidebarRailDirective {
559
- #private;
560
- protected readonly baseClass: _angular_core.Signal<string>;
561
- protected readonly expanded: _angular_core.Signal<boolean>;
562
- protected readonly messages: _angular_core.Signal<_nanahoshi_mona_ui_i18n.MonaSidebarMessages>;
563
- protected readonly sidebarId: _angular_core.Signal<string>;
564
- /**
565
- * @description Accessible name of the rail, which otherwise has a localized default.
566
- * @default ""
567
- */
568
- readonly ariaLabel: _angular_core.InputSignal<string>;
569
- protected onClick(): void;
570
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<SidebarRailDirective, never>;
571
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SidebarRailDirective, "button[monaSidebarRail]", never, { "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
711
+ export declare class SidebarRailDirective {
712
+ #private;
713
+ protected readonly baseClass: import("@angular/core").Signal<string>;
714
+ protected readonly expanded: import("@angular/core").Signal<boolean>;
715
+ protected readonly messages: import("@angular/core").Signal<import("@nanahoshi/mona-ui/i18n").MonaSidebarMessages>;
716
+ protected readonly sidebarId: import("@angular/core").Signal<string>;
717
+ /**
718
+ * @description Accessible name of the rail, which otherwise has a localized default.
719
+ * @default ""
720
+ */
721
+ readonly ariaLabel: import("@angular/core").InputSignal<string>;
722
+ protected onClick(): void;
723
+ static ɵfac: i0.ɵɵFactoryDeclaration<SidebarRailDirective, never>;
724
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SidebarRailDirective, "button[monaSidebarRail]", never, {
725
+ "ariaLabel": {
726
+ "alias": "aria-label";
727
+ "required": false;
728
+ "isSignal": true;
729
+ };
730
+ }, {}, never, never, true, never>;
572
731
  }
573
-
574
732
  /**
575
733
  * @description
576
734
  * A horizontal rule between sidebar regions. Tightens its inset on the icon rail.
577
735
  */
578
- declare class SidebarSeparatorDirective {
579
- #private;
580
- protected readonly baseClass: _angular_core.Signal<string>;
581
- protected readonly role: string | null;
582
- /**
583
- * @description Additional CSS classes merged onto the host element via `tailwind-merge`.
584
- * @default ""
585
- */
586
- readonly userClass: _angular_core.InputSignalWithTransform<string, ClassInputType>;
587
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<SidebarSeparatorDirective, never>;
588
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SidebarSeparatorDirective, "[monaSidebarSeparator]", never, { "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
736
+ export declare class SidebarSeparatorDirective {
737
+ #private;
738
+ protected readonly baseClass: import("@angular/core").Signal<string>;
739
+ protected readonly role: string | null;
740
+ /**
741
+ * @description Additional CSS classes merged onto the host element via `tailwind-merge`.
742
+ * @default ""
743
+ */
744
+ readonly userClass: import("@angular/core").InputSignalWithTransform<string, ClassInputType>;
745
+ static ɵfac: i0.ɵɵFactoryDeclaration<SidebarSeparatorDirective, never>;
746
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SidebarSeparatorDirective, "[monaSidebarSeparator]", never, {
747
+ "userClass": {
748
+ "alias": "class";
749
+ "required": false;
750
+ "isSignal": true;
751
+ };
752
+ }, {}, never, never, true, never>;
589
753
  }
590
-
591
754
  /**
592
755
  * @description
593
756
  * Toggles a sidebar. Can be placed anywhere inside a `mona-sidebar-layout`, including in the inset,
@@ -605,28 +768,33 @@ declare class SidebarSeparatorDirective {
605
768
  * A sidebar that can't collapse has nothing for a trigger to do on a wide viewport, so the trigger
606
769
  * reports itself as disabled there rather than as an open disclosure.
607
770
  */
608
- declare class SidebarTriggerDirective {
609
- #private;
610
- protected readonly expanded: _angular_core.Signal<boolean | null>;
611
- protected readonly fixed: _angular_core.Signal<boolean>;
612
- protected readonly role: _angular_core.Signal<"button" | null>;
613
- protected readonly sidebarId: _angular_core.Signal<string | null>;
614
- protected readonly tabIndex: _angular_core.Signal<0 | null>;
615
- protected readonly type: string | null;
616
- /**
617
- * @description Id of the `mona-sidebar` to toggle. Leave unset to toggle the sidebar this trigger
618
- * is written inside.
619
- * @default ""
620
- */
621
- readonly for: _angular_core.InputSignal<string>;
622
- constructor();
623
- protected onClick(): void;
624
- protected onEnterKeydown(event: Event): void;
625
- protected onSpaceKeydown(event: Event): void;
626
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<SidebarTriggerDirective, never>;
627
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SidebarTriggerDirective, "[monaSidebarTrigger]", ["monaSidebarTrigger"], { "for": { "alias": "for"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
771
+ export declare class SidebarTriggerDirective {
772
+ #private;
773
+ protected readonly expanded: import("@angular/core").Signal<boolean | null>;
774
+ protected readonly fixed: import("@angular/core").Signal<boolean>;
775
+ protected readonly role: import("@angular/core").Signal<"button" | null>;
776
+ protected readonly sidebarId: import("@angular/core").Signal<string | null>;
777
+ protected readonly tabIndex: import("@angular/core").Signal<0 | null>;
778
+ protected readonly type: string | null;
779
+ /**
780
+ * @description Id of the `mona-sidebar` to toggle. Leave unset to toggle the sidebar this trigger
781
+ * is written inside.
782
+ * @default ""
783
+ */
784
+ readonly for: import("@angular/core").InputSignal<string>;
785
+ constructor();
786
+ protected onClick(): void;
787
+ protected onEnterKeydown(event: Event): void;
788
+ protected onSpaceKeydown(event: Event): void;
789
+ static ɵfac: i0.ɵɵFactoryDeclaration<SidebarTriggerDirective, never>;
790
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SidebarTriggerDirective, "[monaSidebarTrigger]", ["monaSidebarTrigger"], {
791
+ "for": {
792
+ "alias": "for";
793
+ "required": false;
794
+ "isSignal": true;
795
+ };
796
+ }, {}, never, never, true, never>;
628
797
  }
629
-
630
798
  /**
631
799
  * The safe, read-and-command view of one sidebar, returned by `injectSidebar()`.
632
800
  *
@@ -636,42 +804,41 @@ declare class SidebarTriggerDirective {
636
804
  * change detection pass. Consumers who need them to change should bind the inputs.
637
805
  */
638
806
  interface SidebarController {
639
- /** Closes the sidebar. On a compact viewport this closes the drawer instead. */
640
- collapse(): void;
641
- /** How the sidebar behaves when collapsed, as authored on `mona-sidebar`. */
642
- readonly collapsible: Signal<SidebarCollapsibleMode>;
643
- /**
644
- * Whether the viewport is narrow enough that the sidebar presents as an overlay drawer rather
645
- * than as a column in the layout.
646
- */
647
- readonly compact: Signal<boolean>;
648
- /** Opens the sidebar. On a compact viewport this opens the drawer instead. */
649
- expand(): void;
650
- /**
651
- * Whether the sidebar is showing at full width. On a compact viewport this reports the drawer's
652
- * state, so a single binding drives both presentations.
653
- */
654
- readonly expanded: Signal<boolean>;
655
- /**
656
- * Whether the sidebar is currently reduced to its icon rail, meaning parts that only make sense
657
- * at full width — labels, trailing actions, submenus — should step aside. Never true while
658
- * compact, where the drawer always presents at full width.
659
- */
660
- readonly iconOnly: Signal<boolean>;
661
- /** Whether the overlay drawer is open. Only meaningful while `compact` is true. */
662
- readonly mobileOpen: Signal<boolean>;
663
- /** Which edge the sidebar sits on, resolved to a direction-relative side. */
664
- readonly side: Signal<SidebarLogicalSide>;
665
- /** The id of the sidebar element, for `aria-controls` on a custom trigger. */
666
- readonly sidebarId: Signal<string>;
667
- /** The expanded state as a string, for `data-state` bindings and styling hooks. */
668
- readonly state: Signal<"expanded" | "collapsed">;
669
- /** Flips the sidebar between open and closed, on whichever presentation is current. */
670
- toggle(): void;
671
- /** The visual treatment of the sidebar, as authored on `mona-sidebar`. */
672
- readonly variant: Signal<SidebarVariant>;
807
+ /** Closes the sidebar. On a compact viewport this closes the drawer instead. */
808
+ collapse(): void;
809
+ /** How the sidebar behaves when collapsed, as authored on `mona-sidebar`. */
810
+ readonly collapsible: Signal<SidebarCollapsibleMode>;
811
+ /**
812
+ * Whether the viewport is narrow enough that the sidebar presents as an overlay drawer rather
813
+ * than as a column in the layout.
814
+ */
815
+ readonly compact: Signal<boolean>;
816
+ /** Opens the sidebar. On a compact viewport this opens the drawer instead. */
817
+ expand(): void;
818
+ /**
819
+ * Whether the sidebar is showing at full width. On a compact viewport this reports the drawer's
820
+ * state, so a single binding drives both presentations.
821
+ */
822
+ readonly expanded: Signal<boolean>;
823
+ /**
824
+ * Whether the sidebar is currently reduced to its icon rail, meaning parts that only make sense
825
+ * at full width — labels, trailing actions, submenus — should step aside. Never true while
826
+ * compact, where the drawer always presents at full width.
827
+ */
828
+ readonly iconOnly: Signal<boolean>;
829
+ /** Whether the overlay drawer is open. Only meaningful while `compact` is true. */
830
+ readonly mobileOpen: Signal<boolean>;
831
+ /** Which edge the sidebar sits on, resolved to a direction-relative side. */
832
+ readonly side: Signal<SidebarLogicalSide>;
833
+ /** The id of the sidebar element, for `aria-controls` on a custom trigger. */
834
+ readonly sidebarId: Signal<string>;
835
+ /** The expanded state as a string, for `data-state` bindings and styling hooks. */
836
+ readonly state: Signal<"expanded" | "collapsed">;
837
+ /** Flips the sidebar between open and closed, on whichever presentation is current. */
838
+ toggle(): void;
839
+ /** The visual treatment of the sidebar, as authored on `mona-sidebar`. */
840
+ readonly variant: Signal<SidebarVariant>;
673
841
  }
674
-
675
842
  /**
676
843
  * Where a sidebar remembers whether it was left open. Supplied through `SIDEBAR_STORAGE`, and only
677
844
  * ever consulted for a sidebar that was given a `persistKey`.
@@ -681,18 +848,16 @@ interface SidebarController {
681
848
  * asked for.
682
849
  */
683
850
  interface SidebarStorage {
684
- /**
685
- * The remembered state for `key`, or `null` when nothing has been stored under it — including
686
- * when this storage cannot answer, such as on the server. A `null` leaves the sidebar on whatever
687
- * its `expanded` input says.
688
- */
689
- read(key: string): boolean | null;
690
- /** Records the docked state for `key`. Failing to store it must not throw. */
691
- write(key: string, expanded: boolean): void;
851
+ /**
852
+ * The remembered state for `key`, or `null` when nothing has been stored under it — including
853
+ * when this storage cannot answer, such as on the server. A `null` leaves the sidebar on whatever
854
+ * its `expanded` input says.
855
+ */
856
+ read(key: string): boolean | null;
857
+ /** Records the docked state for `key`. Failing to store it must not throw. */
858
+ write(key: string, expanded: boolean): void;
692
859
  }
693
-
694
- declare const SIDEBAR_DEFAULT_MESSAGES: MonaSidebarMessages;
695
-
860
+ export declare const SIDEBAR_DEFAULT_MESSAGES: MonaSidebarMessages;
696
861
  /**
697
862
  * Replaces where sidebars remember whether they were left open. The default is `localStorage`, which
698
863
  * the server cannot read; supply a cookie- or request-backed storage here to have a server-rendered
@@ -700,8 +865,7 @@ declare const SIDEBAR_DEFAULT_MESSAGES: MonaSidebarMessages;
700
865
  * @param storage the storage, or a factory for it that runs in an injection context, such as for one
701
866
  * that injects the current request
702
867
  */
703
- declare function provideSidebarStorage(storage: SidebarStorage | (() => SidebarStorage)): EnvironmentProviders;
704
-
868
+ export declare function provideSidebarStorage(storage: SidebarStorage | (() => SidebarStorage)): EnvironmentProviders;
705
869
  /**
706
870
  * The default `SidebarStorage`: `localStorage`, under the sidebar's `persistKey`.
707
871
  *
@@ -714,26 +878,24 @@ declare function provideSidebarStorage(storage: SidebarStorage | (() => SidebarS
714
878
  * hydration, which shows as a flash. Storage that the server can read too — a cookie, or state
715
879
  * transferred from the request — avoids it; supply it through `provideSidebarStorage()`.
716
880
  */
717
- declare class LocalStorageSidebarStorage implements SidebarStorage {
718
- #private;
719
- /** Takes the value of `PLATFORM_ID`, which is a string in practice though typed loosely. */
720
- constructor(platformId: string | object);
721
- read(key: string): boolean | null;
722
- write(key: string, expanded: boolean): void;
881
+ export declare class LocalStorageSidebarStorage implements SidebarStorage {
882
+ #private;
883
+ /** Takes the value of `PLATFORM_ID`, which is a string in practice though typed loosely. */
884
+ constructor(platformId: string | object);
885
+ read(key: string): boolean | null;
886
+ write(key: string, expanded: boolean): void;
723
887
  }
724
-
725
888
  /**
726
889
  * Where sidebars given a `persistKey` remember whether they were left open. Defaults to
727
890
  * `localStorage`. Replace it with `provideSidebarStorage()` — with something the server can read too,
728
891
  * for an application that renders there.
729
892
  */
730
- declare const SIDEBAR_STORAGE: InjectionToken<SidebarStorage>;
731
-
893
+ export declare const SIDEBAR_STORAGE: InjectionToken<SidebarStorage>;
732
894
  interface InjectSidebarOptions {
733
- /** Reads the sidebar with this id in the enclosing layout, rather than the nearest one. Needs a layout. */
734
- readonly for?: string;
735
- /** Returns `null` instead of throwing when there is no enclosing sidebar or layout. */
736
- readonly optional?: boolean;
895
+ /** Reads the sidebar with this id in the enclosing layout, rather than the nearest one. Needs a layout. */
896
+ readonly for?: string;
897
+ /** Returns `null` instead of throwing when there is no enclosing sidebar or layout. */
898
+ readonly optional?: boolean;
737
899
  }
738
900
  /**
739
901
  * @description
@@ -752,10 +914,8 @@ interface InjectSidebarOptions {
752
914
  * @param options.for The id of the `mona-sidebar` to read, in the enclosing layout. Without a layout this throws, or
753
915
  * returns `null` with `optional`, even inside a sidebar, because only a layout can find one by id.
754
916
  */
755
- declare function injectSidebar(options: InjectSidebarOptions & {
756
- optional: true;
917
+ export declare function injectSidebar(options: InjectSidebarOptions & {
918
+ optional: true;
757
919
  }): SidebarController | null;
758
- declare function injectSidebar(options?: InjectSidebarOptions): SidebarController;
759
-
760
- export { LocalStorageSidebarStorage, SIDEBAR_DEFAULT_MESSAGES, SIDEBAR_STORAGE, SidebarComponent, SidebarContentDirective, SidebarFooterDirective, SidebarGroupActionDirective, SidebarGroupContentDirective, SidebarGroupDirective, SidebarGroupHeaderDirective, SidebarGroupLabelDirective, SidebarHeaderDirective, SidebarInputDirective, SidebarInsetDirective, SidebarLayoutComponent, SidebarMenuActionDirective, SidebarMenuBadgeDirective, SidebarMenuButtonDirective, SidebarMenuDirective, SidebarMenuItemDirective, SidebarMenuSkeletonComponent, SidebarMenuSubDirective, SidebarRailDirective, SidebarSeparatorDirective, SidebarTriggerDirective, injectSidebar, provideSidebarStorage };
761
- export type { InjectSidebarOptions, SidebarCollapsibleMode, SidebarController, SidebarLogicalSide, SidebarMenuButtonSize, SidebarModalScope, SidebarSide, SidebarStorage, SidebarVariant };
920
+ export declare function injectSidebar(options?: InjectSidebarOptions): SidebarController;
921
+ export type { InjectSidebarOptions, SidebarCollapsibleMode, SidebarController, SidebarLogicalSide, SidebarMenuButtonSize, SidebarModalScope, SidebarSide, SidebarStorage, SidebarVariant };