@raqm/ui 0.0.0-stage → 0.1.1

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 (178) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/LICENSE +21 -0
  3. package/NOTICE.md +28 -0
  4. package/README.md +126 -3
  5. package/combobox/README.md +17 -0
  6. package/fesm2022/raqm-ui-accordion.mjs +414 -0
  7. package/fesm2022/raqm-ui-accordion.mjs.map +1 -0
  8. package/fesm2022/raqm-ui-alert-dialog.mjs +457 -0
  9. package/fesm2022/raqm-ui-alert-dialog.mjs.map +1 -0
  10. package/fesm2022/raqm-ui-alert.mjs +195 -0
  11. package/fesm2022/raqm-ui-alert.mjs.map +1 -0
  12. package/fesm2022/raqm-ui-aspect-ratio.mjs +66 -0
  13. package/fesm2022/raqm-ui-aspect-ratio.mjs.map +1 -0
  14. package/fesm2022/raqm-ui-attachment.mjs +435 -0
  15. package/fesm2022/raqm-ui-attachment.mjs.map +1 -0
  16. package/fesm2022/raqm-ui-avatar.mjs +337 -0
  17. package/fesm2022/raqm-ui-avatar.mjs.map +1 -0
  18. package/fesm2022/raqm-ui-badge.mjs +68 -0
  19. package/fesm2022/raqm-ui-badge.mjs.map +1 -0
  20. package/fesm2022/raqm-ui-breadcrumb.mjs +309 -0
  21. package/fesm2022/raqm-ui-breadcrumb.mjs.map +1 -0
  22. package/fesm2022/raqm-ui-button-group.mjs +138 -0
  23. package/fesm2022/raqm-ui-button-group.mjs.map +1 -0
  24. package/fesm2022/raqm-ui-button.mjs +295 -0
  25. package/fesm2022/raqm-ui-button.mjs.map +1 -0
  26. package/fesm2022/raqm-ui-calendar.mjs +1394 -0
  27. package/fesm2022/raqm-ui-calendar.mjs.map +1 -0
  28. package/fesm2022/raqm-ui-card.mjs +331 -0
  29. package/fesm2022/raqm-ui-card.mjs.map +1 -0
  30. package/fesm2022/raqm-ui-carousel.mjs +410 -0
  31. package/fesm2022/raqm-ui-carousel.mjs.map +1 -0
  32. package/fesm2022/raqm-ui-checkbox.mjs +86 -0
  33. package/fesm2022/raqm-ui-checkbox.mjs.map +1 -0
  34. package/fesm2022/raqm-ui-collapsible.mjs +266 -0
  35. package/fesm2022/raqm-ui-collapsible.mjs.map +1 -0
  36. package/fesm2022/raqm-ui-combobox.mjs +1584 -0
  37. package/fesm2022/raqm-ui-combobox.mjs.map +1 -0
  38. package/fesm2022/raqm-ui-command.mjs +1210 -0
  39. package/fesm2022/raqm-ui-command.mjs.map +1 -0
  40. package/fesm2022/raqm-ui-context-menu.mjs +723 -0
  41. package/fesm2022/raqm-ui-context-menu.mjs.map +1 -0
  42. package/fesm2022/raqm-ui-dialog.mjs +1214 -0
  43. package/fesm2022/raqm-ui-dialog.mjs.map +1 -0
  44. package/fesm2022/raqm-ui-drawer.mjs +687 -0
  45. package/fesm2022/raqm-ui-drawer.mjs.map +1 -0
  46. package/fesm2022/raqm-ui-dropdown-menu.mjs +1168 -0
  47. package/fesm2022/raqm-ui-dropdown-menu.mjs.map +1 -0
  48. package/fesm2022/raqm-ui-empty.mjs +272 -0
  49. package/fesm2022/raqm-ui-empty.mjs.map +1 -0
  50. package/fesm2022/raqm-ui-field.mjs +517 -0
  51. package/fesm2022/raqm-ui-field.mjs.map +1 -0
  52. package/fesm2022/raqm-ui-hover-card.mjs +828 -0
  53. package/fesm2022/raqm-ui-hover-card.mjs.map +1 -0
  54. package/fesm2022/raqm-ui-input-group.mjs +270 -0
  55. package/fesm2022/raqm-ui-input-group.mjs.map +1 -0
  56. package/fesm2022/raqm-ui-input-otp.mjs +788 -0
  57. package/fesm2022/raqm-ui-input-otp.mjs.map +1 -0
  58. package/fesm2022/raqm-ui-input.mjs +73 -0
  59. package/fesm2022/raqm-ui-input.mjs.map +1 -0
  60. package/fesm2022/raqm-ui-item.mjs +495 -0
  61. package/fesm2022/raqm-ui-item.mjs.map +1 -0
  62. package/fesm2022/raqm-ui-kbd.mjs +80 -0
  63. package/fesm2022/raqm-ui-kbd.mjs.map +1 -0
  64. package/fesm2022/raqm-ui-label.mjs +44 -0
  65. package/fesm2022/raqm-ui-label.mjs.map +1 -0
  66. package/fesm2022/raqm-ui-menubar.mjs +536 -0
  67. package/fesm2022/raqm-ui-menubar.mjs.map +1 -0
  68. package/fesm2022/raqm-ui-native-select.mjs +131 -0
  69. package/fesm2022/raqm-ui-native-select.mjs.map +1 -0
  70. package/fesm2022/raqm-ui-navigation-menu.mjs +1399 -0
  71. package/fesm2022/raqm-ui-navigation-menu.mjs.map +1 -0
  72. package/fesm2022/raqm-ui-overlay-internal.mjs +185 -0
  73. package/fesm2022/raqm-ui-overlay-internal.mjs.map +1 -0
  74. package/fesm2022/raqm-ui-pagination.mjs +440 -0
  75. package/fesm2022/raqm-ui-pagination.mjs.map +1 -0
  76. package/fesm2022/raqm-ui-popover.mjs +1495 -0
  77. package/fesm2022/raqm-ui-popover.mjs.map +1 -0
  78. package/fesm2022/raqm-ui-progress.mjs +369 -0
  79. package/fesm2022/raqm-ui-progress.mjs.map +1 -0
  80. package/fesm2022/raqm-ui-questionnaire.mjs +1005 -0
  81. package/fesm2022/raqm-ui-questionnaire.mjs.map +1 -0
  82. package/fesm2022/raqm-ui-radio-group.mjs +151 -0
  83. package/fesm2022/raqm-ui-radio-group.mjs.map +1 -0
  84. package/fesm2022/raqm-ui-resizable.mjs +439 -0
  85. package/fesm2022/raqm-ui-resizable.mjs.map +1 -0
  86. package/fesm2022/raqm-ui-scroll-area.mjs +510 -0
  87. package/fesm2022/raqm-ui-scroll-area.mjs.map +1 -0
  88. package/fesm2022/raqm-ui-select.mjs +1073 -0
  89. package/fesm2022/raqm-ui-select.mjs.map +1 -0
  90. package/fesm2022/raqm-ui-separator.mjs +103 -0
  91. package/fesm2022/raqm-ui-separator.mjs.map +1 -0
  92. package/fesm2022/raqm-ui-sheet.mjs +411 -0
  93. package/fesm2022/raqm-ui-sheet.mjs.map +1 -0
  94. package/fesm2022/raqm-ui-sidebar.mjs +1784 -0
  95. package/fesm2022/raqm-ui-sidebar.mjs.map +1 -0
  96. package/fesm2022/raqm-ui-skeleton.mjs +50 -0
  97. package/fesm2022/raqm-ui-skeleton.mjs.map +1 -0
  98. package/fesm2022/raqm-ui-slider.mjs +609 -0
  99. package/fesm2022/raqm-ui-slider.mjs.map +1 -0
  100. package/fesm2022/raqm-ui-spinner.mjs +137 -0
  101. package/fesm2022/raqm-ui-spinner.mjs.map +1 -0
  102. package/fesm2022/raqm-ui-switch.mjs +109 -0
  103. package/fesm2022/raqm-ui-switch.mjs.map +1 -0
  104. package/fesm2022/raqm-ui-table.mjs +271 -0
  105. package/fesm2022/raqm-ui-table.mjs.map +1 -0
  106. package/fesm2022/raqm-ui-tabs.mjs +536 -0
  107. package/fesm2022/raqm-ui-tabs.mjs.map +1 -0
  108. package/fesm2022/raqm-ui-textarea.mjs +37 -0
  109. package/fesm2022/raqm-ui-textarea.mjs.map +1 -0
  110. package/fesm2022/raqm-ui-toast.mjs +918 -0
  111. package/fesm2022/raqm-ui-toast.mjs.map +1 -0
  112. package/fesm2022/raqm-ui-toggle-group.mjs +462 -0
  113. package/fesm2022/raqm-ui-toggle-group.mjs.map +1 -0
  114. package/fesm2022/raqm-ui-toggle.mjs +158 -0
  115. package/fesm2022/raqm-ui-toggle.mjs.map +1 -0
  116. package/fesm2022/raqm-ui-tooltip.mjs +1226 -0
  117. package/fesm2022/raqm-ui-tooltip.mjs.map +1 -0
  118. package/fesm2022/raqm-ui.mjs +50 -0
  119. package/input-otp/README.md +12 -0
  120. package/package.json +275 -3
  121. package/styles/theme.css +4324 -0
  122. package/types/raqm-ui-accordion.d.ts +124 -0
  123. package/types/raqm-ui-alert-dialog.d.ts +81 -0
  124. package/types/raqm-ui-alert.d.ts +29 -0
  125. package/types/raqm-ui-aspect-ratio.d.ts +13 -0
  126. package/types/raqm-ui-attachment.d.ts +72 -0
  127. package/types/raqm-ui-avatar.d.ts +67 -0
  128. package/types/raqm-ui-badge.d.ts +20 -0
  129. package/types/raqm-ui-breadcrumb.d.ts +35 -0
  130. package/types/raqm-ui-button-group.d.ts +27 -0
  131. package/types/raqm-ui-button.d.ts +80 -0
  132. package/types/raqm-ui-calendar.d.ts +359 -0
  133. package/types/raqm-ui-card.d.ts +34 -0
  134. package/types/raqm-ui-carousel.d.ts +81 -0
  135. package/types/raqm-ui-checkbox.d.ts +24 -0
  136. package/types/raqm-ui-collapsible.d.ts +72 -0
  137. package/types/raqm-ui-combobox.d.ts +405 -0
  138. package/types/raqm-ui-command.d.ts +256 -0
  139. package/types/raqm-ui-context-menu.d.ts +196 -0
  140. package/types/raqm-ui-dialog.d.ts +232 -0
  141. package/types/raqm-ui-drawer.d.ts +121 -0
  142. package/types/raqm-ui-dropdown-menu.d.ts +319 -0
  143. package/types/raqm-ui-empty.d.ts +35 -0
  144. package/types/raqm-ui-field.d.ts +88 -0
  145. package/types/raqm-ui-hover-card.d.ts +139 -0
  146. package/types/raqm-ui-input-group.d.ts +45 -0
  147. package/types/raqm-ui-input-otp.d.ts +197 -0
  148. package/types/raqm-ui-input.d.ts +16 -0
  149. package/types/raqm-ui-item.d.ts +71 -0
  150. package/types/raqm-ui-kbd.d.ts +12 -0
  151. package/types/raqm-ui-label.d.ts +6 -0
  152. package/types/raqm-ui-menubar.d.ts +159 -0
  153. package/types/raqm-ui-native-select.d.ts +23 -0
  154. package/types/raqm-ui-navigation-menu.d.ts +230 -0
  155. package/types/raqm-ui-overlay-internal.d.ts +5 -0
  156. package/types/raqm-ui-pagination.d.ts +84 -0
  157. package/types/raqm-ui-popover.d.ts +235 -0
  158. package/types/raqm-ui-progress.d.ts +79 -0
  159. package/types/raqm-ui-questionnaire.d.ts +217 -0
  160. package/types/raqm-ui-radio-group.d.ts +48 -0
  161. package/types/raqm-ui-resizable.d.ts +98 -0
  162. package/types/raqm-ui-scroll-area.d.ts +132 -0
  163. package/types/raqm-ui-select.d.ts +205 -0
  164. package/types/raqm-ui-separator.d.ts +21 -0
  165. package/types/raqm-ui-sheet.d.ts +79 -0
  166. package/types/raqm-ui-sidebar.d.ts +285 -0
  167. package/types/raqm-ui-skeleton.d.ts +6 -0
  168. package/types/raqm-ui-slider.d.ts +129 -0
  169. package/types/raqm-ui-spinner.d.ts +32 -0
  170. package/types/raqm-ui-switch.d.ts +32 -0
  171. package/types/raqm-ui-table.d.ts +36 -0
  172. package/types/raqm-ui-tabs.d.ts +154 -0
  173. package/types/raqm-ui-textarea.d.ts +6 -0
  174. package/types/raqm-ui-toast.d.ts +190 -0
  175. package/types/raqm-ui-toggle-group.d.ts +167 -0
  176. package/types/raqm-ui-toggle.d.ts +42 -0
  177. package/types/raqm-ui-tooltip.d.ts +207 -0
  178. package/types/raqm-ui.d.ts +50 -0
@@ -0,0 +1,196 @@
1
+ import * as i0 from "@angular/core";
2
+ import { OnInit, TemplateRef } from "@angular/core";
3
+ import * as i1 from "@raqm/ui/dropdown-menu";
4
+ import * as i2 from "@angular/cdk/menu";
5
+ /** Root popup; the shared menu engine supplies ARIA, focus, typeahead and dismissal. */
6
+ export declare class RaqmContextMenuContentDirective {
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<RaqmContextMenuContentDirective, never>;
8
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RaqmContextMenuContentDirective, "[raqm-context-menu-content]", never, {}, {}, never, never, true, [{
9
+ directive: typeof i1.RaqmMenuDirective;
10
+ inputs: {};
11
+ outputs: {};
12
+ }, {
13
+ directive: typeof i2.CdkTargetMenuAim;
14
+ inputs: {};
15
+ outputs: {};
16
+ }]>;
17
+ }
18
+ /** Semantic group; consumers associate labels using id and aria-labelledby. */
19
+ export declare class RaqmContextMenuGroupDirective {
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<RaqmContextMenuGroupDirective, never>;
21
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RaqmContextMenuGroupDirective, "[raqm-context-menu-group]", never, {}, {}, never, never, true, [{
22
+ directive: typeof i1.RaqmMenuGroupDirective;
23
+ inputs: {};
24
+ outputs: {};
25
+ }]>;
26
+ }
27
+ /** Passive group label with optional inset. */
28
+ export declare class RaqmContextMenuLabelDirective {
29
+ static ɵfac: i0.ɵɵFactoryDeclaration<RaqmContextMenuLabelDirective, never>;
30
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RaqmContextMenuLabelDirective, "[raqm-context-menu-label]", never, {}, {}, never, never, true, [{
31
+ directive: typeof i1.RaqmMenuLabelDirective;
32
+ inputs: {
33
+ "inset": "inset";
34
+ };
35
+ outputs: {};
36
+ }]>;
37
+ }
38
+ /** Menu action with shipped native-anchor guards; disabled/triggered are exposed transitively by CDK. */
39
+ export declare class RaqmContextMenuItemDirective {
40
+ static ɵfac: i0.ɵɵFactoryDeclaration<RaqmContextMenuItemDirective, never>;
41
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RaqmContextMenuItemDirective, "button[raqm-context-menu-item], a[raqm-context-menu-item]", never, {}, {}, never, never, true, [{
42
+ directive: typeof i1.RaqmMenuItemDirective;
43
+ inputs: {
44
+ "inset": "inset";
45
+ "raqm-menu-item": "raqm-context-menu-item";
46
+ };
47
+ outputs: {};
48
+ }]>;
49
+ }
50
+ /**
51
+ * Structural submenu boundary; CDK scopes its stack through the submenu trigger/template.
52
+ *
53
+ * @remarks
54
+ * Publishes the family's placement default on an ancestor, so it is available before
55
+ * the trigger host directive initializes; an application `[positions]` still wins.
56
+ */
57
+ export declare class RaqmContextMenuSubDirective {
58
+ static ɵfac: i0.ɵɵFactoryDeclaration<RaqmContextMenuSubDirective, never>;
59
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RaqmContextMenuSubDirective, "[raqm-context-menu-sub]", never, {}, {}, never, never, true, never>;
60
+ }
61
+ /** Submenu opener with CDK hover intent and direction-aware arrow navigation/placement. */
62
+ export declare class RaqmContextMenuSubTriggerDirective {
63
+ readonly template: import("@angular/core").InputSignal<TemplateRef<unknown>>;
64
+ private readonly trigger;
65
+ constructor();
66
+ static ɵfac: i0.ɵɵFactoryDeclaration<RaqmContextMenuSubTriggerDirective, never>;
67
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RaqmContextMenuSubTriggerDirective, "button[raqm-context-menu-sub-trigger-for]", never, {
68
+ "template": {
69
+ "alias": "raqm-context-menu-sub-trigger-for";
70
+ "required": true;
71
+ "isSignal": true;
72
+ };
73
+ }, {}, never, never, true, [{
74
+ directive: typeof i1.RaqmMenuItemDirective;
75
+ inputs: {
76
+ "inset": "inset";
77
+ };
78
+ outputs: {};
79
+ }, {
80
+ directive: typeof i1.RaqmMenuTriggerDirective;
81
+ inputs: {};
82
+ outputs: {};
83
+ }]>;
84
+ }
85
+ /** Nested popup; retains the shared focus/keyboard and hover transit engine. */
86
+ export declare class RaqmContextMenuSubContentDirective {
87
+ static ɵfac: i0.ɵɵFactoryDeclaration<RaqmContextMenuSubContentDirective, never>;
88
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RaqmContextMenuSubContentDirective, "[raqm-context-menu-sub-content]", never, {}, {}, never, never, true, [{
89
+ directive: typeof i1.RaqmMenuDirective;
90
+ inputs: {};
91
+ outputs: {};
92
+ }, {
93
+ directive: typeof i2.CdkTargetMenuAim;
94
+ inputs: {};
95
+ outputs: {};
96
+ }]>;
97
+ }
98
+ /** Keep-open checkbox: the shared checked model, disabled input and checkedChange output. */
99
+ export declare class RaqmContextMenuCheckboxItemDirective {
100
+ static ɵfac: i0.ɵɵFactoryDeclaration<RaqmContextMenuCheckboxItemDirective, never>;
101
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RaqmContextMenuCheckboxItemDirective, "button[raqm-context-menu-checkbox-item]", never, {}, {}, never, never, true, [{
102
+ directive: typeof i1.RaqmMenuCheckboxItemDirective;
103
+ inputs: {
104
+ "inset": "inset";
105
+ "checked": "checked";
106
+ };
107
+ outputs: {
108
+ "checkedChange": "checkedChange";
109
+ };
110
+ }]>;
111
+ }
112
+ /** Exclusive string-value group, reusing the shipped CDK radio scope and value model. */
113
+ export declare class RaqmContextMenuRadioGroupDirective {
114
+ static ɵfac: i0.ɵɵFactoryDeclaration<RaqmContextMenuRadioGroupDirective, never>;
115
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RaqmContextMenuRadioGroupDirective, "[raqm-context-menu-radio-group]", never, {}, {}, never, never, true, [{
116
+ directive: typeof i1.RaqmMenuRadioGroupDirective;
117
+ inputs: {
118
+ "value": "value";
119
+ };
120
+ outputs: {
121
+ "valueChange": "valueChange";
122
+ };
123
+ }]>;
124
+ }
125
+ /** Keep-open exclusive choice with a trailing check indicator. */
126
+ export declare class RaqmContextMenuRadioItemDirective {
127
+ static ɵfac: i0.ɵɵFactoryDeclaration<RaqmContextMenuRadioItemDirective, never>;
128
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RaqmContextMenuRadioItemDirective, "button[raqm-context-menu-radio-item]", never, {}, {}, never, never, true, [{
129
+ directive: typeof i1.RaqmMenuRadioItemDirective;
130
+ inputs: {
131
+ "value": "value";
132
+ "inset": "inset";
133
+ };
134
+ outputs: {};
135
+ }]>;
136
+ }
137
+ /** Nonfocusable horizontal separator between action groups. */
138
+ export declare class RaqmContextMenuSeparatorDirective {
139
+ static ɵfac: i0.ɵɵFactoryDeclaration<RaqmContextMenuSeparatorDirective, never>;
140
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RaqmContextMenuSeparatorDirective, "[raqm-context-menu-separator]", never, {}, {}, never, never, true, [{
141
+ directive: typeof i1.RaqmMenuSeparatorDirective;
142
+ inputs: {};
143
+ outputs: {};
144
+ }]>;
145
+ }
146
+ /** Display-only keyboard hint; no global accelerator is registered. */
147
+ export declare class RaqmContextMenuShortcutDirective {
148
+ static ɵfac: i0.ɵɵFactoryDeclaration<RaqmContextMenuShortcutDirective, never>;
149
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RaqmContextMenuShortcutDirective, "[raqm-context-menu-shortcut]", never, {}, {}, never, never, true, [{
150
+ directive: typeof i1.RaqmMenuShortcutDirective;
151
+ inputs: {};
152
+ outputs: {};
153
+ }]>;
154
+ }
155
+ export declare class RaqmContextMenuTriggerDirective implements OnInit {
156
+ private readonly trigger;
157
+ private readonly element;
158
+ private readonly stack;
159
+ private readonly destroyRef;
160
+ private readonly directionality;
161
+ private readonly overlaySync;
162
+ private press;
163
+ private pressTimer;
164
+ private longPressOpened;
165
+ private suppressCompatibilityUntil;
166
+ private readonly guardContextMenu;
167
+ private readonly guardCompatibilityClick;
168
+ constructor();
169
+ /** 500ms stationary press; movement over 10px on either axis cancels it. */
170
+ protected onPointerDown(event: PointerEvent): void;
171
+ protected onPointerMove(event: PointerEvent): void;
172
+ protected cancelLongPress(): void;
173
+ /** Cursor-side default, with a four-pixel offset and collision fallback. */
174
+ ngOnInit(): void;
175
+ private checkHostContract;
176
+ /** Only opening keys are translated; all menu keys remain owned by the shipped CDK engine. */
177
+ protected onKeydown(event: KeyboardEvent): void;
178
+ static ɵfac: i0.ɵɵFactoryDeclaration<RaqmContextMenuTriggerDirective, never>;
179
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RaqmContextMenuTriggerDirective, "[raqm-context-menu-trigger-for]", never, {}, {}, never, never, true, [{
180
+ directive: typeof i1.RaqmMenuDirection;
181
+ inputs: {};
182
+ outputs: {};
183
+ }, {
184
+ directive: typeof i1.RaqmContextMenuTriggerBase;
185
+ inputs: {
186
+ "cdkContextMenuTriggerFor": "raqm-context-menu-trigger-for";
187
+ "cdkContextMenuPosition": "positions";
188
+ "cdkContextMenuDisabled": "disabled";
189
+ };
190
+ outputs: {
191
+ "cdkContextMenuOpened": "opened";
192
+ "cdkContextMenuClosed": "closed";
193
+ };
194
+ }]>;
195
+ }
196
+ export declare const RaqmContextMenu: readonly [typeof RaqmContextMenuTriggerDirective, typeof RaqmContextMenuContentDirective, typeof RaqmContextMenuGroupDirective, typeof RaqmContextMenuLabelDirective, typeof RaqmContextMenuItemDirective, typeof RaqmContextMenuSubDirective, typeof RaqmContextMenuSubTriggerDirective, typeof RaqmContextMenuSubContentDirective, typeof RaqmContextMenuCheckboxItemDirective, typeof RaqmContextMenuRadioGroupDirective, typeof RaqmContextMenuRadioItemDirective, typeof RaqmContextMenuSeparatorDirective, typeof RaqmContextMenuShortcutDirective];
@@ -0,0 +1,232 @@
1
+ import * as i0 from "@angular/core";
2
+ import { InjectionToken, OnDestroy, OnInit, Signal, TemplateRef, WritableSignal } from "@angular/core";
3
+ import { OverlayRef, ScrollStrategy, ScrollStrategyOptions } from "@angular/cdk/overlay";
4
+ /** Stable reference to the dialog one registered trigger. */
5
+ interface RaqmDialogTriggerRef {
6
+ readonly element: HTMLButtonElement;
7
+ readonly disabled: boolean;
8
+ }
9
+ /** The typed registration contract a dialog root publishes to its descendants. */
10
+ interface RaqmDialogContext {
11
+ readonly open: Signal<boolean>;
12
+ readonly dialogId: Signal<string | null>;
13
+ registerTrigger(ref: RaqmDialogTriggerRef): void;
14
+ unregisterTrigger(ref: RaqmDialogTriggerRef): void;
15
+ registerContent(template: TemplateRef<unknown>): void;
16
+ unregisterContent(template: TemplateRef<unknown>): void;
17
+ /** Registers a popped title element so the container can point `aria-labelledby` at it. */
18
+ registerTitle(element: HTMLElement): void;
19
+ unregisterTitle(element: HTMLElement): void;
20
+ /** Registers a popped description element so the container can point `aria-describedby` at it. */
21
+ registerDescription(element: HTMLElement): void;
22
+ unregisterDescription(element: HTMLElement): void;
23
+ /** Toggles the dialog from a trigger activation (never opens a disabled root). */
24
+ toggleFromTrigger(ref: RaqmDialogTriggerRef): void;
25
+ /** Requests an animated close as a user action (close control / Escape / backdrop). */
26
+ closeFromUser(): void;
27
+ }
28
+ /** @internal Injection token for the parent dialog root; injected optionally. */
29
+ export declare const RAQM_DIALOG: InjectionToken<RaqmDialogContext>;
30
+ /** @internal Shipped modal-family specialization policy; not application configuration. */
31
+ interface RaqmDialogPolicy {
32
+ readonly role: 'dialog' | 'alertdialog';
33
+ readonly contentClass: string;
34
+ readonly small?: WritableSignal<boolean>;
35
+ readonly touchOpening: WritableSignal<boolean>;
36
+ readonly dismissOnBackdrop: boolean;
37
+ readonly side?: WritableSignal<'top' | 'right' | 'bottom' | 'left'>;
38
+ readonly paneClass?: string;
39
+ readonly backdropClass?: string;
40
+ readonly exitAnimationMs?: number;
41
+ readonly allowWithoutTrigger?: boolean;
42
+ }
43
+ /** @internal Integration hook for shipped modal families sharing Dialog's lifecycle. */
44
+ export declare const RAQM_DIALOG_POLICY: InjectionToken<RaqmDialogPolicy>;
45
+ /** Application-scoped refcounted document scroll lock shared by all Raqm dialogs. */
46
+ declare class RaqmDialogScrollLock {
47
+ private readonly strategy;
48
+ private active;
49
+ constructor(options: ScrollStrategyOptions);
50
+ acquire(): void;
51
+ /** Releases the shared lock; only the last release disables the strategy. */
52
+ release(): void;
53
+ /** Creates a per-dialog idempotent lease over the shared lock. */
54
+ createLease(): ScrollStrategy;
55
+ }
56
+ /** One dialog lease over the shared scroll lock; acquire and release are idempotent. */
57
+ declare class RaqmDialogScrollLease implements ScrollStrategy {
58
+ private held;
59
+ private readonly lock;
60
+ constructor(lock: RaqmDialogScrollLock);
61
+ /** The CDK attaches the lease to the overlay; the shared lock needs no reference. */
62
+ attach(_overlayRef: OverlayRef): void;
63
+ enable(): void;
64
+ disable(): void;
65
+ /** Detach is an idempotent alias of {@link disable} for CDK disposal paths. */
66
+ detach(): void;
67
+ }
68
+ /** @internal Root-scoped token so every dialog root shares one scroll-lock count. */
69
+ declare const RAQM_DIALOG_SCROLL_LOCK: InjectionToken<RaqmDialogScrollLock>;
70
+ /** Modal dialog root shared by Dialog, Alert Dialog, Sheet, Drawer and Command Dialog. */
71
+ export declare abstract class RaqmDialogBaseComponent implements RaqmDialogContext, OnDestroy {
72
+ protected readonly policy: import("@raqm/ui/dialog").RaqmDialogPolicy | null;
73
+ private readonly host;
74
+ private readonly dialogService;
75
+ private readonly directionality;
76
+ private readonly renderer;
77
+ private readonly focusMonitor;
78
+ private readonly checker;
79
+ private readonly injector;
80
+ private readonly scrollLock;
81
+ private readonly panelTemplate;
82
+ readonly openValue: import("@angular/core").ModelSignal<boolean>;
83
+ /** Whether the dialog is disabled; a disabled root never opens. */
84
+ readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
85
+ readonly dir: import("@angular/core").InputSignalWithTransform<"ltr" | "rtl" | undefined, unknown>;
86
+ readonly panelClass: import("@angular/core").InputSignal<string | undefined>;
87
+ /** An explicit accessible name used when no title slot is registered. */
88
+ readonly label: import("@angular/core").InputSignal<string | undefined>;
89
+ protected abstract readonly closeButtonVisible: Signal<boolean>;
90
+ protected abstract readonly closeLabelText: Signal<string | undefined>;
91
+ private readonly state;
92
+ private readonly registration;
93
+ private readonly canOpen;
94
+ readonly open: Signal<boolean>;
95
+ readonly dialogId: import("@angular/core").WritableSignal<string | null>;
96
+ protected readonly entering: import("@angular/core").WritableSignal<boolean>;
97
+ protected readonly closing: import("@angular/core").WritableSignal<boolean>;
98
+ protected readonly panelDir: import("@angular/core").WritableSignal<"ltr" | "rtl">;
99
+ protected readonly contentTemplate: import("@angular/core").WritableSignal<TemplateRef<unknown> | null>;
100
+ private readonly overlay;
101
+ private readonly focus;
102
+ constructor();
103
+ ngOnDestroy(): void;
104
+ registerTrigger(ref: RaqmDialogTriggerRef): void;
105
+ unregisterTrigger(ref: RaqmDialogTriggerRef): void;
106
+ registerContent(template: TemplateRef<unknown>): void;
107
+ unregisterContent(template: TemplateRef<unknown>): void;
108
+ registerTitle(element: HTMLElement): void;
109
+ unregisterTitle(element: HTMLElement): void;
110
+ registerDescription(element: HTMLElement): void;
111
+ unregisterDescription(element: HTMLElement): void;
112
+ toggleFromTrigger(ref: RaqmDialogTriggerRef): void;
113
+ closeFromUser(): void;
114
+ protected onCloseButtonClick(): void;
115
+ private readResolvedDir;
116
+ static ɵfac: i0.ɵɵFactoryDeclaration<RaqmDialogBaseComponent, never>;
117
+ static ɵcmp: i0.ɵɵComponentDeclaration<RaqmDialogBaseComponent, "raqm-dialog-base", never, {
118
+ "openValue": {
119
+ "alias": "open";
120
+ "required": false;
121
+ "isSignal": true;
122
+ };
123
+ "disabled": {
124
+ "alias": "disabled";
125
+ "required": false;
126
+ "isSignal": true;
127
+ };
128
+ "dir": {
129
+ "alias": "dir";
130
+ "required": false;
131
+ "isSignal": true;
132
+ };
133
+ "panelClass": {
134
+ "alias": "panelClass";
135
+ "required": false;
136
+ "isSignal": true;
137
+ };
138
+ "label": {
139
+ "alias": "label";
140
+ "required": false;
141
+ "isSignal": true;
142
+ };
143
+ }, {
144
+ "openValue": "openChange";
145
+ }, never, ["*"], true, never>;
146
+ }
147
+ /** Concrete modal root with the optional default close control. */
148
+ export declare class RaqmDialogComponent extends RaqmDialogBaseComponent {
149
+ readonly showCloseButton: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
150
+ readonly closeLabel: import("@angular/core").InputSignal<string | undefined>;
151
+ protected readonly closeButtonVisible: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
152
+ protected readonly closeLabelText: Signal<string | undefined>;
153
+ static ɵfac: i0.ɵɵFactoryDeclaration<RaqmDialogComponent, never>;
154
+ static ɵcmp: i0.ɵɵComponentDeclaration<RaqmDialogComponent, "raqm-dialog", ["raqmDialog"], {
155
+ "showCloseButton": {
156
+ "alias": "showCloseButton";
157
+ "required": false;
158
+ "isSignal": true;
159
+ };
160
+ "closeLabel": {
161
+ "alias": "closeLabel";
162
+ "required": false;
163
+ "isSignal": true;
164
+ };
165
+ }, {}, never, ["*"], true, never>;
166
+ }
167
+ /** Directive on the one native button that opens the modal. */
168
+ export declare class RaqmDialogTriggerDirective implements OnInit {
169
+ private readonly host;
170
+ private readonly dialog;
171
+ private readonly destroyRef;
172
+ readonly open: import("@angular/core").Signal<boolean>;
173
+ readonly dialogId: import("@angular/core").Signal<string | null>;
174
+ private readonly ref;
175
+ constructor();
176
+ ngOnInit(): void;
177
+ /** Toggles the modal on a native click; a disabled trigger is a no-op. */
178
+ protected onClick(): void;
179
+ static ɵfac: i0.ɵɵFactoryDeclaration<RaqmDialogTriggerDirective, never>;
180
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RaqmDialogTriggerDirective, "button[raqm-dialog-trigger]", never, {}, {}, never, never, true, never>;
181
+ }
182
+ /** Content identity only: registers its TemplateRef for the root to render. */
183
+ export declare class RaqmDialogContentDirective implements OnInit {
184
+ private readonly template;
185
+ private readonly dialog;
186
+ private readonly destroyRef;
187
+ constructor();
188
+ ngOnInit(): void;
189
+ static ɵfac: i0.ɵɵFactoryDeclaration<RaqmDialogContentDirective, never>;
190
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RaqmDialogContentDirective, "ng-template[raqm-dialog-content]", ["raqmDialogContent"], {}, {}, never, never, true, never>;
191
+ }
192
+ /** Style hook routing an authored close control click to the root animated close. */
193
+ export declare class RaqmDialogCloseDirective {
194
+ private readonly host;
195
+ private readonly dialog;
196
+ constructor();
197
+ /** Requests the root's single animated close path on click. */
198
+ protected onClick(): void;
199
+ static ɵfac: i0.ɵɵFactoryDeclaration<RaqmDialogCloseDirective, never>;
200
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RaqmDialogCloseDirective, "button[raqm-dialog-close]", never, {}, {}, never, never, true, never>;
201
+ }
202
+ export declare class RaqmDialogHeaderDirective {
203
+ static ɵfac: i0.ɵɵFactoryDeclaration<RaqmDialogHeaderDirective, never>;
204
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RaqmDialogHeaderDirective, "[raqm-dialog-header]", never, {}, {}, never, never, true, never>;
205
+ }
206
+ export declare class RaqmDialogFooterDirective {
207
+ static ɵfac: i0.ɵɵFactoryDeclaration<RaqmDialogFooterDirective, never>;
208
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RaqmDialogFooterDirective, "[raqm-dialog-footer]", never, {}, {}, never, never, true, never>;
209
+ }
210
+ /** Registers its host so the container aria-labelledby points at it. */
211
+ export declare class RaqmDialogTitleDirective implements OnInit {
212
+ private readonly host;
213
+ private readonly dialog;
214
+ private readonly destroyRef;
215
+ constructor();
216
+ /** Registers the title element with the root once initialized. */
217
+ ngOnInit(): void;
218
+ static ɵfac: i0.ɵɵFactoryDeclaration<RaqmDialogTitleDirective, never>;
219
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RaqmDialogTitleDirective, "[raqm-dialog-title]", never, {}, {}, never, never, true, never>;
220
+ }
221
+ /** Registers its host for the container aria-describedby. */
222
+ export declare class RaqmDialogDescriptionDirective implements OnInit {
223
+ private readonly host;
224
+ private readonly dialog;
225
+ private readonly destroyRef;
226
+ constructor();
227
+ ngOnInit(): void;
228
+ static ɵfac: i0.ɵɵFactoryDeclaration<RaqmDialogDescriptionDirective, never>;
229
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RaqmDialogDescriptionDirective, "[raqm-dialog-description]", never, {}, {}, never, never, true, never>;
230
+ }
231
+ export declare const RaqmDialog: readonly [typeof RaqmDialogComponent, typeof RaqmDialogTriggerDirective, typeof RaqmDialogContentDirective, typeof RaqmDialogCloseDirective, typeof RaqmDialogHeaderDirective, typeof RaqmDialogFooterDirective, typeof RaqmDialogTitleDirective, typeof RaqmDialogDescriptionDirective];
232
+ export type { RaqmDialogPolicy };
@@ -0,0 +1,121 @@
1
+ import * as i1 from "@raqm/ui/dialog";
2
+ import { RaqmDialogBaseComponent, RaqmDialogContentDirective, RaqmDialogTriggerDirective } from "@raqm/ui/dialog";
3
+ import * as i0 from "@angular/core";
4
+ type RaqmDrawerDirection = 'down' | 'up' | 'left' | 'right';
5
+ declare class RaqmDrawerSwipeDirective {
6
+ private readonly surface;
7
+ private readonly dialog;
8
+ private readonly dialogRef;
9
+ private readonly destroyRef;
10
+ /** The drawer's dismiss direction; it mirrors the surface placement. */
11
+ readonly direction: import("@angular/core").InputSignal<RaqmDrawerDirection>;
12
+ private release;
13
+ private settleTimer;
14
+ private backdrop;
15
+ private readonly onPointerDown;
16
+ constructor();
17
+ private settle;
18
+ private hasScrollableAncestor;
19
+ private resetSurface;
20
+ private clearSettleTimer;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<RaqmDrawerSwipeDirective, never>;
22
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RaqmDrawerSwipeDirective, "[raqm-drawer-swipe]", never, {
23
+ "direction": {
24
+ "alias": "direction";
25
+ "required": false;
26
+ "isSignal": true;
27
+ };
28
+ }, {}, never, never, true, never>;
29
+ }
30
+ export declare class RaqmDrawerComponent extends RaqmDialogBaseComponent {
31
+ /** The edge the drawer is attached to; also the direction that dismisses it. */
32
+ readonly swipeDirection: import("@angular/core").InputSignal<RaqmDrawerDirection>;
33
+ /** Whether the decorative grab handle is rendered above the content. */
34
+ readonly showSwipeHandle: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
35
+ /** Floating presentation: an 8px-inset, rounded, shadowed surface instead of the edge panel. */
36
+ readonly floating: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
37
+ /** Whether the root renders its own close control; opt-in, defaults to `false`. */
38
+ readonly showCloseButton: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
39
+ /** The accessible name of the close control; supplied by the application. */
40
+ readonly closeLabel: import("@angular/core").InputSignal<string | undefined>;
41
+ protected readonly closeButtonVisible: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
42
+ protected readonly closeLabelText: import("@angular/core").InputSignal<string | undefined>;
43
+ constructor();
44
+ static ɵfac: i0.ɵɵFactoryDeclaration<RaqmDrawerComponent, never>;
45
+ static ɵcmp: i0.ɵɵComponentDeclaration<RaqmDrawerComponent, "raqm-drawer", ["raqmDrawer"], {
46
+ "swipeDirection": {
47
+ "alias": "swipeDirection";
48
+ "required": false;
49
+ "isSignal": true;
50
+ };
51
+ "showSwipeHandle": {
52
+ "alias": "showSwipeHandle";
53
+ "required": false;
54
+ "isSignal": true;
55
+ };
56
+ "floating": {
57
+ "alias": "floating";
58
+ "required": false;
59
+ "isSignal": true;
60
+ };
61
+ "showCloseButton": {
62
+ "alias": "showCloseButton";
63
+ "required": false;
64
+ "isSignal": true;
65
+ };
66
+ "closeLabel": {
67
+ "alias": "closeLabel";
68
+ "required": false;
69
+ "isSignal": true;
70
+ };
71
+ }, {}, never, ["*"], true, never>;
72
+ }
73
+ /** Native opener reusing Dialog registration and disclosure ARIA; compose raqm-button. */
74
+ export declare class RaqmDrawerTriggerDirective extends RaqmDialogTriggerDirective {
75
+ static ɵfac: i0.ɵɵFactoryDeclaration<RaqmDrawerTriggerDirective, never>;
76
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RaqmDrawerTriggerDirective, "button[raqm-drawer-trigger]", never, {}, {}, never, never, true, never>;
77
+ }
78
+ /** Native close control using Dialog's single animated user-close path. */
79
+ export declare class RaqmDrawerCloseDirective {
80
+ static ɵfac: i0.ɵɵFactoryDeclaration<RaqmDrawerCloseDirective, never>;
81
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RaqmDrawerCloseDirective, "button[raqm-drawer-close]", never, {}, {}, never, never, true, [{
82
+ directive: typeof i1.RaqmDialogCloseDirective;
83
+ inputs: {};
84
+ outputs: {};
85
+ }]>;
86
+ }
87
+ /** Portal body template; the root owns placement and the opt-in close control. */
88
+ export declare class RaqmDrawerContentDirective extends RaqmDialogContentDirective {
89
+ static ɵfac: i0.ɵɵFactoryDeclaration<RaqmDrawerContentDirective, never>;
90
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RaqmDrawerContentDirective, "ng-template[raqm-drawer-content]", ["raqmDrawerContent"], {}, {}, never, never, true, never>;
91
+ }
92
+ /** Passive drawer header, stacking the title and description. */
93
+ export declare class RaqmDrawerHeaderDirective {
94
+ static ɵfac: i0.ɵɵFactoryDeclaration<RaqmDrawerHeaderDirective, never>;
95
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RaqmDrawerHeaderDirective, "[raqm-drawer-header]", never, {}, {}, never, never, true, never>;
96
+ }
97
+ /** Passive action footer, pushed to the end of the drawer surface. */
98
+ export declare class RaqmDrawerFooterDirective {
99
+ static ɵfac: i0.ɵɵFactoryDeclaration<RaqmDrawerFooterDirective, never>;
100
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RaqmDrawerFooterDirective, "[raqm-drawer-footer]", never, {}, {}, never, never, true, never>;
101
+ }
102
+ /** Accessible title registered with the real modal container. */
103
+ export declare class RaqmDrawerTitleDirective {
104
+ static ɵfac: i0.ɵɵFactoryDeclaration<RaqmDrawerTitleDirective, never>;
105
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RaqmDrawerTitleDirective, "[raqm-drawer-title]", never, {}, {}, never, never, true, [{
106
+ directive: typeof i1.RaqmDialogTitleDirective;
107
+ inputs: {};
108
+ outputs: {};
109
+ }]>;
110
+ }
111
+ /** Accessible description registered with the real modal container. */
112
+ export declare class RaqmDrawerDescriptionDirective {
113
+ static ɵfac: i0.ɵɵFactoryDeclaration<RaqmDrawerDescriptionDirective, never>;
114
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RaqmDrawerDescriptionDirective, "[raqm-drawer-description]", never, {}, {}, never, never, true, [{
115
+ directive: typeof i1.RaqmDialogDescriptionDirective;
116
+ inputs: {};
117
+ outputs: {};
118
+ }]>;
119
+ }
120
+ export declare const RaqmDrawer: readonly [typeof RaqmDrawerComponent, typeof RaqmDrawerTriggerDirective, typeof RaqmDrawerCloseDirective, typeof RaqmDrawerContentDirective, typeof RaqmDrawerHeaderDirective, typeof RaqmDrawerFooterDirective, typeof RaqmDrawerTitleDirective, typeof RaqmDrawerDescriptionDirective];
121
+ export type { RaqmDrawerDirection };