@radix-ng/primitives 0.51.0 → 1.0.0-beta.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 (178) hide show
  1. package/fesm2022/radix-ng-primitives-accordion.mjs +105 -38
  2. package/fesm2022/radix-ng-primitives-accordion.mjs.map +1 -1
  3. package/fesm2022/radix-ng-primitives-alert-dialog.mjs +221 -129
  4. package/fesm2022/radix-ng-primitives-alert-dialog.mjs.map +1 -1
  5. package/fesm2022/radix-ng-primitives-arrow.mjs +20 -4
  6. package/fesm2022/radix-ng-primitives-arrow.mjs.map +1 -1
  7. package/fesm2022/radix-ng-primitives-aspect-ratio.mjs.map +1 -1
  8. package/fesm2022/radix-ng-primitives-avatar.mjs +54 -61
  9. package/fesm2022/radix-ng-primitives-avatar.mjs.map +1 -1
  10. package/fesm2022/radix-ng-primitives-button.mjs +123 -0
  11. package/fesm2022/radix-ng-primitives-button.mjs.map +1 -0
  12. package/fesm2022/radix-ng-primitives-calendar.mjs.map +1 -1
  13. package/fesm2022/radix-ng-primitives-checkbox.mjs +378 -54
  14. package/fesm2022/radix-ng-primitives-checkbox.mjs.map +1 -1
  15. package/fesm2022/radix-ng-primitives-collapsible.mjs +182 -81
  16. package/fesm2022/radix-ng-primitives-collapsible.mjs.map +1 -1
  17. package/fesm2022/radix-ng-primitives-collection.mjs +40 -57
  18. package/fesm2022/radix-ng-primitives-collection.mjs.map +1 -1
  19. package/fesm2022/radix-ng-primitives-config.mjs.map +1 -1
  20. package/fesm2022/radix-ng-primitives-context-menu.mjs +140 -424
  21. package/fesm2022/radix-ng-primitives-context-menu.mjs.map +1 -1
  22. package/fesm2022/radix-ng-primitives-core.mjs +735 -744
  23. package/fesm2022/radix-ng-primitives-core.mjs.map +1 -1
  24. package/fesm2022/radix-ng-primitives-cropper.mjs +1 -0
  25. package/fesm2022/radix-ng-primitives-cropper.mjs.map +1 -1
  26. package/fesm2022/radix-ng-primitives-date-field.mjs +51 -45
  27. package/fesm2022/radix-ng-primitives-date-field.mjs.map +1 -1
  28. package/fesm2022/radix-ng-primitives-dialog.mjs +655 -327
  29. package/fesm2022/radix-ng-primitives-dialog.mjs.map +1 -1
  30. package/fesm2022/radix-ng-primitives-dismissable-layer.mjs +70 -46
  31. package/fesm2022/radix-ng-primitives-dismissable-layer.mjs.map +1 -1
  32. package/fesm2022/radix-ng-primitives-drawer.mjs +1059 -0
  33. package/fesm2022/radix-ng-primitives-drawer.mjs.map +1 -0
  34. package/fesm2022/radix-ng-primitives-editable.mjs.map +1 -1
  35. package/fesm2022/radix-ng-primitives-field.mjs +363 -0
  36. package/fesm2022/radix-ng-primitives-field.mjs.map +1 -0
  37. package/fesm2022/radix-ng-primitives-fieldset.mjs +79 -0
  38. package/fesm2022/radix-ng-primitives-fieldset.mjs.map +1 -0
  39. package/fesm2022/radix-ng-primitives-focus-scope.mjs +23 -8
  40. package/fesm2022/radix-ng-primitives-focus-scope.mjs.map +1 -1
  41. package/fesm2022/radix-ng-primitives-input.mjs +172 -0
  42. package/fesm2022/radix-ng-primitives-input.mjs.map +1 -0
  43. package/fesm2022/radix-ng-primitives-label.mjs +6 -6
  44. package/fesm2022/radix-ng-primitives-label.mjs.map +1 -1
  45. package/fesm2022/radix-ng-primitives-menu.mjs +1480 -344
  46. package/fesm2022/radix-ng-primitives-menu.mjs.map +1 -1
  47. package/fesm2022/radix-ng-primitives-menubar.mjs +290 -162
  48. package/fesm2022/radix-ng-primitives-menubar.mjs.map +1 -1
  49. package/fesm2022/radix-ng-primitives-meter.mjs +271 -0
  50. package/fesm2022/radix-ng-primitives-meter.mjs.map +1 -0
  51. package/fesm2022/radix-ng-primitives-navigation-menu.mjs +1052 -1553
  52. package/fesm2022/radix-ng-primitives-navigation-menu.mjs.map +1 -1
  53. package/fesm2022/radix-ng-primitives-number-field.mjs +1102 -367
  54. package/fesm2022/radix-ng-primitives-number-field.mjs.map +1 -1
  55. package/fesm2022/radix-ng-primitives-pagination.mjs.map +1 -1
  56. package/fesm2022/radix-ng-primitives-popover.mjs +978 -989
  57. package/fesm2022/radix-ng-primitives-popover.mjs.map +1 -1
  58. package/fesm2022/radix-ng-primitives-popper.mjs +91 -41
  59. package/fesm2022/radix-ng-primitives-popper.mjs.map +1 -1
  60. package/fesm2022/radix-ng-primitives-portal.mjs +34 -10
  61. package/fesm2022/radix-ng-primitives-portal.mjs.map +1 -1
  62. package/fesm2022/radix-ng-primitives-presence.mjs +134 -246
  63. package/fesm2022/radix-ng-primitives-presence.mjs.map +1 -1
  64. package/fesm2022/radix-ng-primitives-preview-card.mjs +997 -0
  65. package/fesm2022/radix-ng-primitives-preview-card.mjs.map +1 -0
  66. package/fesm2022/radix-ng-primitives-progress.mjs +223 -84
  67. package/fesm2022/radix-ng-primitives-progress.mjs.map +1 -1
  68. package/fesm2022/radix-ng-primitives-radio.mjs +191 -51
  69. package/fesm2022/radix-ng-primitives-radio.mjs.map +1 -1
  70. package/fesm2022/radix-ng-primitives-roving-focus.mjs +96 -50
  71. package/fesm2022/radix-ng-primitives-roving-focus.mjs.map +1 -1
  72. package/fesm2022/radix-ng-primitives-select.mjs +791 -509
  73. package/fesm2022/radix-ng-primitives-select.mjs.map +1 -1
  74. package/fesm2022/radix-ng-primitives-separator.mjs +12 -35
  75. package/fesm2022/radix-ng-primitives-separator.mjs.map +1 -1
  76. package/fesm2022/radix-ng-primitives-slider.mjs +969 -717
  77. package/fesm2022/radix-ng-primitives-slider.mjs.map +1 -1
  78. package/fesm2022/radix-ng-primitives-stepper.mjs +15 -19
  79. package/fesm2022/radix-ng-primitives-stepper.mjs.map +1 -1
  80. package/fesm2022/radix-ng-primitives-switch.mjs +125 -113
  81. package/fesm2022/radix-ng-primitives-switch.mjs.map +1 -1
  82. package/fesm2022/radix-ng-primitives-tabs.mjs +381 -108
  83. package/fesm2022/radix-ng-primitives-tabs.mjs.map +1 -1
  84. package/fesm2022/radix-ng-primitives-time-field.mjs +55 -46
  85. package/fesm2022/radix-ng-primitives-time-field.mjs.map +1 -1
  86. package/fesm2022/radix-ng-primitives-toggle-group.mjs +121 -247
  87. package/fesm2022/radix-ng-primitives-toggle-group.mjs.map +1 -1
  88. package/fesm2022/radix-ng-primitives-toggle.mjs +98 -61
  89. package/fesm2022/radix-ng-primitives-toggle.mjs.map +1 -1
  90. package/fesm2022/radix-ng-primitives-toolbar.mjs +303 -92
  91. package/fesm2022/radix-ng-primitives-toolbar.mjs.map +1 -1
  92. package/fesm2022/radix-ng-primitives-tooltip.mjs +690 -1071
  93. package/fesm2022/radix-ng-primitives-tooltip.mjs.map +1 -1
  94. package/fesm2022/radix-ng-primitives-visually-hidden.mjs +25 -66
  95. package/fesm2022/radix-ng-primitives-visually-hidden.mjs.map +1 -1
  96. package/meter/README.md +3 -0
  97. package/navigation-menu/README.md +2 -1
  98. package/package.json +31 -18
  99. package/portal/README.md +2 -0
  100. package/preview-card/README.md +3 -0
  101. package/schematics/collection.json +1 -0
  102. package/schematics/ng-add/index.d.ts +3 -2
  103. package/schematics/ng-add/index.js +62 -31
  104. package/schematics/ng-add/index.js.map +1 -1
  105. package/schematics/ng-add/package-config.d.ts +4 -2
  106. package/schematics/ng-add/package-config.js +10 -2
  107. package/schematics/ng-add/package-config.js.map +1 -1
  108. package/schematics/ng-add/schema.d.ts +3 -0
  109. package/schematics/ng-add/schema.js +3 -0
  110. package/schematics/ng-add/schema.js.map +1 -0
  111. package/schematics/ng-add/schema.json +14 -0
  112. package/select/README.md +2 -0
  113. package/types/radix-ng-primitives-accordion.d.ts +48 -14
  114. package/types/radix-ng-primitives-alert-dialog.d.ts +95 -38
  115. package/types/radix-ng-primitives-arrow.d.ts +1 -1
  116. package/types/radix-ng-primitives-aspect-ratio.d.ts +1 -1
  117. package/types/radix-ng-primitives-avatar.d.ts +7 -11
  118. package/types/radix-ng-primitives-button.d.ts +73 -0
  119. package/types/radix-ng-primitives-calendar.d.ts +1 -2
  120. package/types/radix-ng-primitives-checkbox.d.ts +201 -32
  121. package/types/radix-ng-primitives-collapsible.d.ts +112 -39
  122. package/types/radix-ng-primitives-collection.d.ts +38 -34
  123. package/types/radix-ng-primitives-config.d.ts +1 -1
  124. package/types/radix-ng-primitives-context-menu.d.ts +60 -116
  125. package/types/radix-ng-primitives-core.d.ts +307 -236
  126. package/types/radix-ng-primitives-cropper.d.ts +2 -2
  127. package/types/radix-ng-primitives-date-field.d.ts +38 -23
  128. package/types/radix-ng-primitives-dialog.d.ts +282 -165
  129. package/types/radix-ng-primitives-dismissable-layer.d.ts +15 -7
  130. package/types/radix-ng-primitives-drawer.d.ts +448 -0
  131. package/types/radix-ng-primitives-editable.d.ts +1 -1
  132. package/types/radix-ng-primitives-field.d.ts +373 -0
  133. package/types/radix-ng-primitives-fieldset.d.ts +48 -0
  134. package/types/radix-ng-primitives-focus-scope.d.ts +13 -5
  135. package/types/radix-ng-primitives-input.d.ts +87 -0
  136. package/types/radix-ng-primitives-label.d.ts +0 -1
  137. package/types/radix-ng-primitives-menu.d.ts +572 -99
  138. package/types/radix-ng-primitives-menubar.d.ts +60 -50
  139. package/types/radix-ng-primitives-meter.d.ts +193 -0
  140. package/types/radix-ng-primitives-navigation-menu.d.ts +422 -340
  141. package/types/radix-ng-primitives-number-field.d.ts +405 -145
  142. package/types/radix-ng-primitives-pagination.d.ts +2 -2
  143. package/types/radix-ng-primitives-popover.d.ts +365 -351
  144. package/types/radix-ng-primitives-popper.d.ts +49 -9
  145. package/types/radix-ng-primitives-portal.d.ts +14 -6
  146. package/types/radix-ng-primitives-presence.d.ts +28 -76
  147. package/types/radix-ng-primitives-preview-card.d.ts +359 -0
  148. package/types/radix-ng-primitives-progress.d.ts +174 -48
  149. package/types/radix-ng-primitives-radio.d.ts +55 -25
  150. package/types/radix-ng-primitives-roving-focus.d.ts +30 -21
  151. package/types/radix-ng-primitives-select.d.ts +475 -177
  152. package/types/radix-ng-primitives-separator.d.ts +7 -32
  153. package/types/radix-ng-primitives-slider.d.ts +315 -201
  154. package/types/radix-ng-primitives-stepper.d.ts +5 -7
  155. package/types/radix-ng-primitives-switch.d.ts +86 -71
  156. package/types/radix-ng-primitives-tabs.d.ts +213 -79
  157. package/types/radix-ng-primitives-time-field.d.ts +42 -27
  158. package/types/radix-ng-primitives-toggle-group.d.ts +85 -164
  159. package/types/radix-ng-primitives-toggle.d.ts +43 -53
  160. package/types/radix-ng-primitives-toolbar.d.ts +163 -38
  161. package/types/radix-ng-primitives-tooltip.d.ts +347 -384
  162. package/types/radix-ng-primitives-visually-hidden.d.ts +19 -19
  163. package/dropdown-menu/README.md +0 -1
  164. package/fesm2022/radix-ng-primitives-dropdown-menu.mjs +0 -581
  165. package/fesm2022/radix-ng-primitives-dropdown-menu.mjs.map +0 -1
  166. package/fesm2022/radix-ng-primitives-hover-card.mjs +0 -1238
  167. package/fesm2022/radix-ng-primitives-hover-card.mjs.map +0 -1
  168. package/fesm2022/radix-ng-primitives-select2.mjs +0 -897
  169. package/fesm2022/radix-ng-primitives-select2.mjs.map +0 -1
  170. package/fesm2022/radix-ng-primitives-tooltip2.mjs +0 -735
  171. package/fesm2022/radix-ng-primitives-tooltip2.mjs.map +0 -1
  172. package/hover-card/README.md +0 -3
  173. package/select2/README.md +0 -3
  174. package/tooltip2/README.md +0 -3
  175. package/types/radix-ng-primitives-dropdown-menu.d.ts +0 -171
  176. package/types/radix-ng-primitives-hover-card.d.ts +0 -471
  177. package/types/radix-ng-primitives-select2.d.ts +0 -511
  178. package/types/radix-ng-primitives-tooltip2.d.ts +0 -325
@@ -0,0 +1,359 @@
1
+ import * as _angular_core from '@angular/core';
2
+ import { Signal, ElementRef } from '@angular/core';
3
+ import * as i1 from '@radix-ng/primitives/presence';
4
+ import * as _radix_ng_primitives_core from '@radix-ng/primitives/core';
5
+ import { BooleanInput, NumberInput } from '@radix-ng/primitives/core';
6
+ import * as i1$1 from '@radix-ng/primitives/popper';
7
+ import { RdxPopperContentWrapper, RdxPopperAnchorElement } from '@radix-ng/primitives/popper';
8
+ import * as _radix_ng_primitives_preview_card from '@radix-ng/primitives/preview-card';
9
+ import * as i1$2 from '@radix-ng/primitives/portal';
10
+ import { RdxPortalContainer } from '@radix-ng/primitives/portal';
11
+ import * as i2 from '@radix-ng/primitives/dismissable-layer';
12
+
13
+ /**
14
+ * Mounts the portal while the preview-card is open and waits for CSS exit keyframes before unmounting.
15
+ */
16
+ declare class RdxPreviewCardPortalPresence {
17
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxPreviewCardPortalPresence, never>;
18
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxPreviewCardPortalPresence, "ng-template[rdxPreviewCardPortalPresence]", never, {}, {}, never, never, true, [{ directive: typeof i1.RdxPresenceDirective; inputs: {}; outputs: {}; }]>;
19
+ }
20
+
21
+ declare class RdxPreviewCardHandle<Payload = unknown> {
22
+ private readonly rootContext;
23
+ private readonly triggers;
24
+ private readonly rootTriggerCleanups;
25
+ readonly isOpen: _angular_core.Signal<boolean>;
26
+ open(triggerId: string): void;
27
+ close(): void;
28
+ toggle(triggerId: string, event?: Event): void;
29
+ registerRoot(rootContext: RdxPreviewCardRootContext): () => void;
30
+ registerTrigger(id: string, trigger: HTMLElement, payload: () => Payload | undefined): () => void;
31
+ context(): RdxPreviewCardRootContext | undefined;
32
+ }
33
+ declare function createRdxPreviewCardHandle<Payload = unknown>(): RdxPreviewCardHandle<Payload>;
34
+
35
+ type RdxPreviewCardOpenChangeReason = 'trigger-hover' | 'trigger-focus' | 'trigger-press' | 'outside-press' | 'escape-key' | 'imperative-action' | 'none';
36
+ interface RdxPreviewCardOpenChange {
37
+ open: boolean;
38
+ triggerId: string | null;
39
+ trigger: HTMLElement | undefined;
40
+ reason: RdxPreviewCardOpenChangeReason;
41
+ event: Event;
42
+ }
43
+ interface RdxPreviewCardRootContext {
44
+ contentId: string;
45
+ isOpen: Signal<boolean>;
46
+ trigger: Signal<HTMLElement | undefined>;
47
+ triggers: Signal<HTMLElement[]>;
48
+ isHoverActive: Signal<boolean>;
49
+ instant: Signal<boolean>;
50
+ openChangeReason: Signal<RdxPreviewCardOpenChangeReason>;
51
+ isPointerDownOnTrigger: Signal<boolean>;
52
+ close: (reason?: RdxPreviewCardOpenChangeReason, event?: Event) => void;
53
+ cancelHoverClose: () => void;
54
+ cancelHoverOpen: () => void;
55
+ closeOnHover: () => void;
56
+ payload: Signal<unknown>;
57
+ open: (trigger?: HTMLElement, payload?: unknown, triggerId?: string, reason?: RdxPreviewCardOpenChangeReason, event?: Event) => void;
58
+ openWithDelay: (trigger: HTMLElement, payload: unknown, triggerId: string, reason: RdxPreviewCardOpenChangeReason, event: Event) => void;
59
+ registerTrigger: (id: string, trigger: HTMLElement, payload: () => unknown) => () => void;
60
+ setPointerDownOnTrigger: (pointerDown: boolean) => void;
61
+ setHoverDelays: (delay: number, closeDelay: number) => void;
62
+ registerTransitionElement: (element: HTMLElement) => () => void;
63
+ transitionStatus: Signal<RdxPreviewCardTransitionStatus>;
64
+ registerViewport: (onTriggerChange: (previous: HTMLElement, next: HTMLElement) => void) => () => void;
65
+ toggle: (triggerId: string, trigger: HTMLElement, payload?: unknown, event?: Event) => void;
66
+ }
67
+ declare const injectRdxPreviewCardRootContext: (optional?: boolean) => RdxPreviewCardRootContext | null;
68
+ declare const provideRdxPreviewCardRootContext: (useFactory: () => RdxPreviewCardRootContext) => _angular_core.Provider;
69
+ type RdxPreviewCardTransitionStatus = 'starting' | 'ending' | undefined;
70
+ /**
71
+ * Groups all parts of the preview-card.
72
+ */
73
+ declare class RdxPreviewCardRoot {
74
+ private readonly popper;
75
+ private readonly destroyRef;
76
+ /** Shared open/close transition state machine (completes on the real animationend). */
77
+ private readonly transition;
78
+ private hasAppliedDefaultOpen;
79
+ private hasAppliedDefaultTriggerId;
80
+ private openTimer;
81
+ private closeTimer;
82
+ private hoverDelay;
83
+ private hoverCloseDelay;
84
+ private instantFrame;
85
+ readonly isHoverActive: _angular_core.WritableSignal<boolean>;
86
+ readonly instant: _angular_core.WritableSignal<boolean>;
87
+ readonly openChangeReason: _angular_core.WritableSignal<RdxPreviewCardOpenChangeReason>;
88
+ readonly transitionStatus: Signal<_radix_ng_primitives_core.RdxTransitionStatus>;
89
+ /**
90
+ * Whether the preview-card is currently open.
91
+ */
92
+ readonly open: _angular_core.ModelSignal<boolean>;
93
+ /**
94
+ * Whether the preview-card is initially open.
95
+ */
96
+ readonly defaultOpen: _angular_core.InputSignalWithTransform<boolean, BooleanInput>;
97
+ /**
98
+ * ID of the trigger associated with a controlled preview-card.
99
+ */
100
+ readonly triggerId: _angular_core.ModelSignal<string | null>;
101
+ /**
102
+ * ID of the trigger associated with an initially open uncontrolled preview-card.
103
+ */
104
+ readonly defaultTriggerId: _angular_core.InputSignal<string | null>;
105
+ /**
106
+ * Associates this root with detached trigger elements.
107
+ */
108
+ readonly handle: _angular_core.InputSignal<RdxPreviewCardHandle<any> | undefined>;
109
+ readonly contentId: string;
110
+ readonly trigger: _angular_core.WritableSignal<HTMLElement | undefined>;
111
+ readonly triggers: _angular_core.WritableSignal<HTMLElement[]>;
112
+ readonly payload: _angular_core.WritableSignal<unknown>;
113
+ readonly isPointerDownOnTrigger: _angular_core.WritableSignal<boolean>;
114
+ readonly onOpenChange: _angular_core.OutputEmitterRef<RdxPreviewCardOpenChange>;
115
+ readonly onOpenChangeComplete: _angular_core.OutputEmitterRef<boolean>;
116
+ private readonly registeredTriggers;
117
+ private readonly viewportTriggerChange;
118
+ readonly state: Signal<"open" | "closed">;
119
+ constructor();
120
+ show(trigger?: HTMLElement | undefined, payload?: unknown, triggerId?: string, reason?: RdxPreviewCardOpenChangeReason, event?: Event, fromHover?: boolean): void;
121
+ close(reason?: RdxPreviewCardOpenChangeReason, event?: Event): void;
122
+ toggle(triggerId: string, trigger: HTMLElement, payload?: unknown, event?: Event): void;
123
+ openWithDelay(trigger: HTMLElement, payload: unknown, triggerId: string, reason: RdxPreviewCardOpenChangeReason, event: Event): void;
124
+ closeOnHover(): void;
125
+ cancelHoverClose(): void;
126
+ cancelHoverOpen(): void;
127
+ setHoverDelays(delay: number, closeDelay: number): void;
128
+ registerTrigger(id: string, trigger: HTMLElement, payload: () => unknown): () => void;
129
+ registerViewport(onTriggerChange: (previous: HTMLElement, next: HTMLElement) => void): () => boolean;
130
+ registerTransitionElement(element: HTMLElement): () => void;
131
+ private syncTriggerId;
132
+ private emitOpenChange;
133
+ private clearHoverTimers;
134
+ private clearOpenTimer;
135
+ private clearCloseTimer;
136
+ private scheduleInstantReset;
137
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxPreviewCardRoot, never>;
138
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxPreviewCardRoot, "[rdxPreviewCardRoot]", ["rdxPreviewCardRoot"], { "open": { "alias": "open"; "required": false; "isSignal": true; }; "defaultOpen": { "alias": "defaultOpen"; "required": false; "isSignal": true; }; "triggerId": { "alias": "triggerId"; "required": false; "isSignal": true; }; "defaultTriggerId": { "alias": "defaultTriggerId"; "required": false; "isSignal": true; }; "handle": { "alias": "handle"; "required": false; "isSignal": true; }; }, { "open": "openChange"; "triggerId": "triggerIdChange"; "onOpenChange": "onOpenChange"; "onOpenChangeComplete": "onOpenChangeComplete"; }, never, never, true, [{ directive: typeof i1$1.RdxPopper; inputs: {}; outputs: {}; }]>;
139
+ }
140
+
141
+ /**
142
+ * A link or element that opens the preview card.
143
+ */
144
+ declare class RdxPreviewCardTrigger {
145
+ private readonly parentRootContext;
146
+ readonly elementRef: ElementRef<HTMLElement>;
147
+ /**
148
+ * Associates this trigger with a detached preview-card root.
149
+ */
150
+ readonly handle: _angular_core.InputSignal<RdxPreviewCardHandle<any> | undefined>;
151
+ /**
152
+ * Data associated with this trigger while it is active.
153
+ */
154
+ readonly payload: _angular_core.InputSignal<unknown>;
155
+ /**
156
+ * ID used to identify this trigger when opening a detached preview-card imperatively.
157
+ */
158
+ readonly id: _angular_core.InputSignal<string | undefined>;
159
+ /**
160
+ * Whether the trigger should ignore user interaction.
161
+ */
162
+ readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
163
+ /**
164
+ * How long to wait before opening the preview-card on hover, in milliseconds.
165
+ */
166
+ readonly delay: _angular_core.InputSignalWithTransform<number, NumberInput>;
167
+ /**
168
+ * How long to wait before closing a hover-opened preview-card, in milliseconds.
169
+ */
170
+ readonly closeDelay: _angular_core.InputSignalWithTransform<number, NumberInput>;
171
+ protected readonly triggerId: _angular_core.Signal<string>;
172
+ protected readonly rootContext: _angular_core.Signal<_radix_ng_primitives_preview_card.RdxPreviewCardRootContext | null>;
173
+ protected readonly isOpen: _angular_core.Signal<boolean>;
174
+ protected readonly isPressed: _angular_core.Signal<boolean>;
175
+ private readonly generatedId;
176
+ constructor();
177
+ protected handleClick(event: MouseEvent): void;
178
+ protected handlePointerEnter(event: PointerEvent): void;
179
+ protected handlePointerLeave(event: PointerEvent): void;
180
+ protected handleFocus(event: FocusEvent): void;
181
+ protected handleBlur(event: FocusEvent): void;
182
+ protected handlePointerDown(): void;
183
+ protected handlePointerUp(): void;
184
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxPreviewCardTrigger, never>;
185
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxPreviewCardTrigger, "[rdxPreviewCardTrigger]", never, { "handle": { "alias": "handle"; "required": false; "isSignal": true; }; "payload": { "alias": "payload"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "delay": { "alias": "delay"; "required": false; "isSignal": true; }; "closeDelay": { "alias": "closeDelay"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1$1.RdxPopperAnchor; inputs: {}; outputs: {}; }]>;
186
+ }
187
+
188
+ /**
189
+ * Moves the preview-card to a different part of the DOM.
190
+ */
191
+ declare class RdxPreviewCardPortal {
192
+ protected readonly rootContext: _radix_ng_primitives_preview_card.RdxPreviewCardRootContext;
193
+ /**
194
+ * Optional container to portal the content into. Defaults to `document.body`.
195
+ */
196
+ readonly container: _angular_core.InputSignal<RdxPortalContainer | undefined>;
197
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxPreviewCardPortal, never>;
198
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxPreviewCardPortal, "[rdxPreviewCardPortal]", never, { "container": { "alias": "container"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1$2.RdxPortal; inputs: { "container": "container"; }; outputs: {}; }]>;
199
+ }
200
+
201
+ /**
202
+ * An optional backdrop rendered behind the popup.
203
+ */
204
+ declare class RdxPreviewCardBackdrop {
205
+ protected readonly rootContext: _radix_ng_primitives_preview_card.RdxPreviewCardRootContext;
206
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxPreviewCardBackdrop, never>;
207
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxPreviewCardBackdrop, "[rdxPreviewCardBackdrop]", never, {}, {}, never, never, true, never>;
208
+ }
209
+
210
+ /**
211
+ * Positions the preview-card against its trigger.
212
+ */
213
+ declare class RdxPreviewCardPositioner {
214
+ protected readonly rootContext: _radix_ng_primitives_preview_card.RdxPreviewCardRootContext;
215
+ protected readonly wrapper: RdxPopperContentWrapper;
216
+ private readonly elementRef;
217
+ private readonly triggerEl;
218
+ private readonly containerEl;
219
+ private readonly graceArea;
220
+ /**
221
+ * An element to position the popup against. Defaults to the trigger.
222
+ */
223
+ readonly anchor: _angular_core.InputSignal<RdxPopperAnchorElement>;
224
+ /**
225
+ * The preferred side of the trigger to render against when open.
226
+ */
227
+ readonly side: _angular_core.InputSignal<"top" | "right" | "bottom" | "left">;
228
+ /**
229
+ * Distance between the trigger and the popup in pixels.
230
+ */
231
+ readonly sideOffset: _angular_core.InputSignalWithTransform<number, NumberInput>;
232
+ /**
233
+ * How to align the popup relative to the specified side.
234
+ */
235
+ readonly align: _angular_core.InputSignal<"start" | "center" | "end">;
236
+ /**
237
+ * An offset in pixels from the `start` or `end` alignment options.
238
+ */
239
+ readonly alignOffset: _angular_core.InputSignalWithTransform<number, NumberInput>;
240
+ /**
241
+ * Minimum distance to maintain between the arrow and the edges of the popup.
242
+ */
243
+ readonly arrowPadding: _angular_core.InputSignalWithTransform<number, NumberInput>;
244
+ /**
245
+ * Whether to override side and alignment preferences to prevent collisions.
246
+ */
247
+ readonly avoidCollisions: _angular_core.InputSignalWithTransform<boolean, BooleanInput>;
248
+ /**
249
+ * The element used as the collision boundary.
250
+ */
251
+ readonly collisionBoundary: _angular_core.InputSignal<ElementRef<HTMLElement> | ElementRef<HTMLElement>[] | undefined>;
252
+ /**
253
+ * Distance in pixels from the boundary edges where collision detection should occur.
254
+ */
255
+ readonly collisionPadding: _angular_core.InputSignal<number | Partial<Record<"top" | "right" | "bottom" | "left", number>>>;
256
+ /**
257
+ * The sticky behavior on the alignment axis.
258
+ */
259
+ readonly sticky: _angular_core.InputSignal<"always" | "partial">;
260
+ /**
261
+ * Whether to hide the popup when the trigger becomes fully occluded.
262
+ */
263
+ readonly hideWhenDetached: _angular_core.InputSignalWithTransform<boolean, BooleanInput>;
264
+ /**
265
+ * The CSS position strategy used by Floating UI.
266
+ */
267
+ readonly positionStrategy: _angular_core.InputSignal<"fixed" | "absolute">;
268
+ /**
269
+ * Whether to update position on every animation frame.
270
+ */
271
+ readonly updatePositionStrategy: _angular_core.InputSignal<"always" | "optimized">;
272
+ /**
273
+ * Emits when the popup has been placed.
274
+ */
275
+ readonly placed: _angular_core.OutputRef<void>;
276
+ constructor();
277
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxPreviewCardPositioner, never>;
278
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxPreviewCardPositioner, "[rdxPreviewCardPositioner]", never, { "anchor": { "alias": "anchor"; "required": false; "isSignal": true; }; "side": { "alias": "side"; "required": false; "isSignal": true; }; "sideOffset": { "alias": "sideOffset"; "required": false; "isSignal": true; }; "align": { "alias": "align"; "required": false; "isSignal": true; }; "alignOffset": { "alias": "alignOffset"; "required": false; "isSignal": true; }; "arrowPadding": { "alias": "arrowPadding"; "required": false; "isSignal": true; }; "avoidCollisions": { "alias": "avoidCollisions"; "required": false; "isSignal": true; }; "collisionBoundary": { "alias": "collisionBoundary"; "required": false; "isSignal": true; }; "collisionPadding": { "alias": "collisionPadding"; "required": false; "isSignal": true; }; "sticky": { "alias": "sticky"; "required": false; "isSignal": true; }; "hideWhenDetached": { "alias": "hideWhenDetached"; "required": false; "isSignal": true; }; "positionStrategy": { "alias": "positionStrategy"; "required": false; "isSignal": true; }; "updatePositionStrategy": { "alias": "updatePositionStrategy"; "required": false; "isSignal": true; }; }, { "placed": "placed"; }, never, never, true, [{ directive: typeof i1$1.RdxPopperContentWrapper; inputs: { "anchor": "anchor"; "side": "side"; "sideOffset": "sideOffset"; "align": "align"; "alignOffset": "alignOffset"; "arrowPadding": "arrowPadding"; "avoidCollisions": "avoidCollisions"; "collisionBoundary": "collisionBoundary"; "collisionPadding": "collisionPadding"; "sticky": "sticky"; "hideWhenDetached": "hideWhenDetached"; "positionStrategy": "positionStrategy"; "updatePositionStrategy": "updatePositionStrategy"; }; outputs: {}; }]>;
279
+ }
280
+
281
+ /**
282
+ * A container for the preview-card contents.
283
+ */
284
+ declare class RdxPreviewCardPopup {
285
+ protected readonly rootContext: _radix_ng_primitives_preview_card.RdxPreviewCardRootContext;
286
+ private readonly dismissableLayer;
287
+ private readonly wrapper;
288
+ protected readonly align: _angular_core.Signal<"start" | "center" | "end" | undefined>;
289
+ protected readonly side: _angular_core.Signal<"top" | "right" | "bottom" | "left" | undefined>;
290
+ private dismissDetails;
291
+ /**
292
+ * Event handler called when the escape key is down. Can be prevented.
293
+ */
294
+ readonly escapeKeyDown: _angular_core.OutputRef<KeyboardEvent>;
295
+ /**
296
+ * Event handler called when a pointerdown event happens outside of the popup. Can be prevented.
297
+ */
298
+ readonly pointerDownOutside: _angular_core.OutputRef<PointerEvent>;
299
+ /**
300
+ * Event handler called when focus moves outside of the popup. Can be prevented.
301
+ */
302
+ readonly focusOutside: _angular_core.OutputRef<FocusEvent>;
303
+ /**
304
+ * Event handler called when an interaction happens outside of the popup. Can be prevented.
305
+ */
306
+ readonly interactOutside: _angular_core.OutputRef<PointerEvent | FocusEvent>;
307
+ constructor();
308
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxPreviewCardPopup, never>;
309
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxPreviewCardPopup, "[rdxPreviewCardPopup]", never, {}, { "escapeKeyDown": "escapeKeyDown"; "pointerDownOutside": "pointerDownOutside"; "focusOutside": "focusOutside"; "interactOutside": "interactOutside"; }, never, never, true, [{ directive: typeof i1$1.RdxPopperContent; inputs: {}; outputs: {}; }, { directive: typeof i2.RdxDismissableLayer; inputs: {}; outputs: {}; }]>;
310
+ }
311
+
312
+ /**
313
+ * An optional arrow element rendered alongside the preview-card.
314
+ */
315
+ declare class RdxPreviewCardArrow {
316
+ protected readonly rootContext: _radix_ng_primitives_preview_card.RdxPreviewCardRootContext;
317
+ private readonly wrapper;
318
+ protected readonly side: _angular_core.Signal<"top" | "right" | "bottom" | "left" | undefined>;
319
+ protected readonly align: _angular_core.Signal<"start" | "center" | "end" | undefined>;
320
+ protected readonly uncentered: _angular_core.Signal<boolean>;
321
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxPreviewCardArrow, never>;
322
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxPreviewCardArrow, "[rdxPreviewCardArrow]", never, {}, {}, never, never, true, [{ directive: typeof i1$1.RdxPopperArrow; inputs: {}; outputs: {}; }]>;
323
+ }
324
+
325
+ /**
326
+ * A viewport for animating content changes when a preview-card moves between triggers.
327
+ *
328
+ * Render one direct child inside the viewport. It is marked with `data-current`;
329
+ * when the active trigger changes, a DOM snapshot is retained as `data-previous`
330
+ * until its CSS animation or transition completes.
331
+ */
332
+ declare class RdxPreviewCardViewport {
333
+ private readonly rootContext;
334
+ private readonly elementRef;
335
+ private readonly destroyRef;
336
+ private previous;
337
+ private cleanupTimer;
338
+ private observer;
339
+ protected readonly activationDirection: _angular_core.WritableSignal<string | undefined>;
340
+ protected readonly transitioning: _angular_core.WritableSignal<boolean>;
341
+ constructor();
342
+ private startTransition;
343
+ private markCurrent;
344
+ private current;
345
+ private scheduleCleanup;
346
+ private cleanupPrevious;
347
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxPreviewCardViewport, never>;
348
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxPreviewCardViewport, "[rdxPreviewCardViewport]", never, {}, {}, never, never, true, never>;
349
+ }
350
+
351
+ declare const previewCardImports: (typeof RdxPreviewCardPortalPresence)[];
352
+ declare class RdxPreviewCardModule {
353
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxPreviewCardModule, never>;
354
+ static ɵmod: _angular_core.ɵɵNgModuleDeclaration<RdxPreviewCardModule, never, [typeof RdxPreviewCardRoot, typeof RdxPreviewCardTrigger, typeof RdxPreviewCardPortalPresence, typeof RdxPreviewCardPortal, typeof RdxPreviewCardBackdrop, typeof RdxPreviewCardPositioner, typeof RdxPreviewCardPopup, typeof RdxPreviewCardArrow, typeof RdxPreviewCardViewport], [typeof RdxPreviewCardRoot, typeof RdxPreviewCardTrigger, typeof RdxPreviewCardPortalPresence, typeof RdxPreviewCardPortal, typeof RdxPreviewCardBackdrop, typeof RdxPreviewCardPositioner, typeof RdxPreviewCardPopup, typeof RdxPreviewCardArrow, typeof RdxPreviewCardViewport]>;
355
+ static ɵinj: _angular_core.ɵɵInjectorDeclaration<RdxPreviewCardModule>;
356
+ }
357
+
358
+ export { RdxPreviewCardArrow, RdxPreviewCardBackdrop, RdxPreviewCardHandle, RdxPreviewCardModule, RdxPreviewCardPopup, RdxPreviewCardPortal, RdxPreviewCardPortalPresence, RdxPreviewCardPositioner, RdxPreviewCardRoot, RdxPreviewCardTrigger, RdxPreviewCardViewport, createRdxPreviewCardHandle, injectRdxPreviewCardRootContext, previewCardImports, provideRdxPreviewCardRootContext };
359
+ export type { RdxPreviewCardOpenChange, RdxPreviewCardOpenChangeReason, RdxPreviewCardRootContext, RdxPreviewCardTransitionStatus };
@@ -1,80 +1,206 @@
1
- import * as i0 from '@angular/core';
2
- import { InjectionToken } from '@angular/core';
1
+ import * as _angular_core from '@angular/core';
3
2
  import * as _radix_ng_primitives_progress from '@radix-ng/primitives/progress';
4
3
 
5
- declare const RdxProgressToken: InjectionToken<RdxProgressRootDirective>;
6
- /**
7
- * Injects the current instance of RdxProgressRootDirective.
8
- * @returns The instance of RdxProgressRootDirective.
9
- */
10
- declare function injectProgress(): RdxProgressRootDirective;
11
- type ProgressState = 'indeterminate' | 'complete' | 'loading';
4
+ type ProgressState = 'indeterminate' | 'complete' | 'progressing';
5
+ type ProgressValueFormatter = (value: number, min: number, max: number) => string;
12
6
  interface ProgressProps {
13
7
  value?: number | null;
8
+ min?: number;
14
9
  max?: number;
15
- /**
16
- * A function to get the accessible label text representing the current value in a human-readable format.
17
- *
18
- * If not provided, the value label will be read as the numeric value as a percentage of the max value.
19
- */
20
- getValueLabel?: (value: number, max: number) => string;
10
+ valueLabel?: ProgressValueFormatter;
21
11
  }
12
+ declare const progressRootContext: () => {
13
+ labelId: _angular_core.InputSignal<string>;
14
+ valueId: _angular_core.InputSignal<string>;
15
+ minState: _angular_core.Signal<number>;
16
+ maxState: _angular_core.Signal<number>;
17
+ valueState: _angular_core.Signal<number | null>;
18
+ percentageState: _angular_core.Signal<number | null>;
19
+ valueLabelState: _angular_core.Signal<string | undefined>;
20
+ progressState: _angular_core.Signal<ProgressState>;
21
+ completeState: _angular_core.Signal<boolean>;
22
+ progressingState: _angular_core.Signal<boolean>;
23
+ indeterminateState: _angular_core.Signal<boolean>;
24
+ };
25
+ type RdxProgressRootContext = ReturnType<typeof progressRootContext>;
26
+ declare const injectProgressRootContext: (optional?: boolean) => {
27
+ labelId: _angular_core.InputSignal<string>;
28
+ valueId: _angular_core.InputSignal<string>;
29
+ minState: _angular_core.Signal<number>;
30
+ maxState: _angular_core.Signal<number>;
31
+ valueState: _angular_core.Signal<number | null>;
32
+ percentageState: _angular_core.Signal<number | null>;
33
+ valueLabelState: _angular_core.Signal<string | undefined>;
34
+ progressState: _angular_core.Signal<ProgressState>;
35
+ completeState: _angular_core.Signal<boolean>;
36
+ progressingState: _angular_core.Signal<boolean>;
37
+ indeterminateState: _angular_core.Signal<boolean>;
38
+ } | null;
39
+ declare const provideProgressRootContext: (useFactory: () => {
40
+ labelId: _angular_core.InputSignal<string>;
41
+ valueId: _angular_core.InputSignal<string>;
42
+ minState: _angular_core.Signal<number>;
43
+ maxState: _angular_core.Signal<number>;
44
+ valueState: _angular_core.Signal<number | null>;
45
+ percentageState: _angular_core.Signal<number | null>;
46
+ valueLabelState: _angular_core.Signal<string | undefined>;
47
+ progressState: _angular_core.Signal<ProgressState>;
48
+ completeState: _angular_core.Signal<boolean>;
49
+ progressingState: _angular_core.Signal<boolean>;
50
+ indeterminateState: _angular_core.Signal<boolean>;
51
+ }) => _angular_core.Provider;
22
52
  /**
23
- * Directive to manage progress bar state and attributes.
24
- *
25
- * This directive provides a way to create a progress bar with customizable value and max attributes.
26
- * It handles aria attributes for accessibility and provides different states like 'indeterminate', 'complete', and 'loading'.
53
+ * Provides progress state and accessibility attributes.
27
54
  *
28
55
  * @group Components
29
56
  */
30
57
  declare class RdxProgressRootDirective {
31
58
  /**
32
- * The current value of the progress bar.
59
+ * Current progress value. Set to `null` for indeterminate progress.
60
+ *
61
+ * @group Props
62
+ * @defaultValue null
63
+ */
64
+ readonly value: _angular_core.InputSignalWithTransform<number | null, number | null>;
65
+ /**
66
+ * Minimum progress value.
67
+ *
33
68
  * @group Props
34
69
  * @defaultValue 0
35
70
  */
36
- readonly value: i0.ModelSignal<number>;
71
+ readonly min: _angular_core.InputSignalWithTransform<number, unknown>;
37
72
  /**
38
- * The maximum value of the progress bar.
39
- * @defaultValue 100
73
+ * Maximum progress value.
74
+ *
40
75
  * @group Props
76
+ * @defaultValue 100
41
77
  */
42
- readonly max: i0.ModelSignal<number>;
78
+ readonly max: _angular_core.InputSignalWithTransform<number, unknown>;
43
79
  /**
44
- * Function to generate the value label.
80
+ * Formats the current value for assistive technologies and `rdxProgressValue`.
81
+ *
45
82
  * @group Props
46
83
  */
47
- readonly valueLabel: i0.InputSignal<(value: number, max: number) => string>;
48
- protected readonly label: i0.Signal<string>;
49
- readonly progressState: i0.Signal<ProgressState>;
50
- constructor();
51
- private validateValue;
52
- private validateMax;
53
- private defaultGetValueLabel;
54
- static ɵfac: i0.ɵɵFactoryDeclaration<RdxProgressRootDirective, never>;
55
- static ɵdir: i0.ɵɵDirectiveDeclaration<RdxProgressRootDirective, "[rdxProgressRoot]", ["rdxProgressRoot"], { "value": { "alias": "value"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "valueLabel": { "alias": "valueLabel"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "max": "maxChange"; }, never, never, true, never>;
84
+ readonly valueLabel: _angular_core.InputSignal<ProgressValueFormatter>;
85
+ readonly labelId: _angular_core.InputSignal<string>;
86
+ readonly valueId: _angular_core.InputSignal<string>;
87
+ readonly minState: _angular_core.Signal<number>;
88
+ readonly maxState: _angular_core.Signal<number>;
89
+ readonly valueState: _angular_core.Signal<number | null>;
90
+ readonly percentageState: _angular_core.Signal<number | null>;
91
+ readonly valueLabelState: _angular_core.Signal<string | undefined>;
92
+ readonly progressState: _angular_core.Signal<ProgressState>;
93
+ readonly completeState: _angular_core.Signal<boolean>;
94
+ readonly progressingState: _angular_core.Signal<boolean>;
95
+ readonly indeterminateState: _angular_core.Signal<boolean>;
96
+ protected readonly dataAttr: (value: boolean) => "" | undefined;
97
+ private valueTransform;
98
+ private defaultValueLabel;
99
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxProgressRootDirective, never>;
100
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxProgressRootDirective, "[rdxProgressRoot]", ["rdxProgressRoot"], { "value": { "alias": "value"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "valueLabel": { "alias": "valueLabel"; "required": false; "isSignal": true; }; "labelId": { "alias": "labelId"; "required": false; "isSignal": true; }; "valueId": { "alias": "valueId"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
101
+ }
102
+
103
+ /**
104
+ * Labels the progress task.
105
+ *
106
+ * @group Components
107
+ */
108
+ declare class RdxProgressLabelDirective {
109
+ protected readonly progress: {
110
+ labelId: _angular_core.InputSignal<string>;
111
+ valueId: _angular_core.InputSignal<string>;
112
+ minState: _angular_core.Signal<number>;
113
+ maxState: _angular_core.Signal<number>;
114
+ valueState: _angular_core.Signal<number | null>;
115
+ percentageState: _angular_core.Signal<number | null>;
116
+ valueLabelState: _angular_core.Signal<string | undefined>;
117
+ progressState: _angular_core.Signal<_radix_ng_primitives_progress.ProgressState>;
118
+ completeState: _angular_core.Signal<boolean>;
119
+ progressingState: _angular_core.Signal<boolean>;
120
+ indeterminateState: _angular_core.Signal<boolean>;
121
+ };
122
+ protected readonly dataAttr: (value: boolean) => "" | undefined;
123
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxProgressLabelDirective, never>;
124
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxProgressLabelDirective, "[rdxProgressLabel]", ["rdxProgressLabel"], {}, {}, never, never, true, never>;
125
+ }
126
+
127
+ /**
128
+ * Displays the formatted progress value.
129
+ *
130
+ * @group Components
131
+ */
132
+ declare class RdxProgressValueDirective {
133
+ protected readonly progress: {
134
+ labelId: _angular_core.InputSignal<string>;
135
+ valueId: _angular_core.InputSignal<string>;
136
+ minState: _angular_core.Signal<number>;
137
+ maxState: _angular_core.Signal<number>;
138
+ valueState: _angular_core.Signal<number | null>;
139
+ percentageState: _angular_core.Signal<number | null>;
140
+ valueLabelState: _angular_core.Signal<string | undefined>;
141
+ progressState: _angular_core.Signal<_radix_ng_primitives_progress.ProgressState>;
142
+ completeState: _angular_core.Signal<boolean>;
143
+ progressingState: _angular_core.Signal<boolean>;
144
+ indeterminateState: _angular_core.Signal<boolean>;
145
+ };
146
+ protected readonly dataAttr: (value: boolean) => "" | undefined;
147
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxProgressValueDirective, never>;
148
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxProgressValueDirective, "[rdxProgressValue]", ["rdxProgressValue"], {}, {}, never, never, true, never>;
56
149
  }
57
150
 
58
151
  /**
59
- * Directive to manage progress indicator state and attributes.
152
+ * Contains the visual progress indicator.
60
153
  *
61
- * This directive is used to display the progress indicator inside the progress bar.
62
- * It inherits the state and value from the `RdxProgressRootDirective`.
154
+ * @group Components
155
+ */
156
+ declare class RdxProgressTrackDirective {
157
+ protected readonly progress: {
158
+ labelId: _angular_core.InputSignal<string>;
159
+ valueId: _angular_core.InputSignal<string>;
160
+ minState: _angular_core.Signal<number>;
161
+ maxState: _angular_core.Signal<number>;
162
+ valueState: _angular_core.Signal<number | null>;
163
+ percentageState: _angular_core.Signal<number | null>;
164
+ valueLabelState: _angular_core.Signal<string | undefined>;
165
+ progressState: _angular_core.Signal<_radix_ng_primitives_progress.ProgressState>;
166
+ completeState: _angular_core.Signal<boolean>;
167
+ progressingState: _angular_core.Signal<boolean>;
168
+ indeterminateState: _angular_core.Signal<boolean>;
169
+ };
170
+ protected readonly dataAttr: (value: boolean) => "" | undefined;
171
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxProgressTrackDirective, never>;
172
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxProgressTrackDirective, "[rdxProgressTrack]", ["rdxProgressTrack"], {}, {}, never, never, true, never>;
173
+ }
174
+
175
+ /**
176
+ * Displays the visual progress fill.
177
+ *
178
+ * @group Components
63
179
  */
64
180
  declare class RdxProgressIndicatorDirective {
65
- /**
66
- * This allows the directive to access the progress bar state and values.
67
- */
68
- protected readonly progress: _radix_ng_primitives_progress.RdxProgressRootDirective;
69
- static ɵfac: i0.ɵɵFactoryDeclaration<RdxProgressIndicatorDirective, never>;
70
- static ɵdir: i0.ɵɵDirectiveDeclaration<RdxProgressIndicatorDirective, "[rdxProgressIndicator]", ["rdxProgressIndicator"], {}, {}, never, never, true, never>;
181
+ protected readonly progress: {
182
+ labelId: _angular_core.InputSignal<string>;
183
+ valueId: _angular_core.InputSignal<string>;
184
+ minState: _angular_core.Signal<number>;
185
+ maxState: _angular_core.Signal<number>;
186
+ valueState: _angular_core.Signal<number | null>;
187
+ percentageState: _angular_core.Signal<number | null>;
188
+ valueLabelState: _angular_core.Signal<string | undefined>;
189
+ progressState: _angular_core.Signal<_radix_ng_primitives_progress.ProgressState>;
190
+ completeState: _angular_core.Signal<boolean>;
191
+ progressingState: _angular_core.Signal<boolean>;
192
+ indeterminateState: _angular_core.Signal<boolean>;
193
+ };
194
+ protected readonly dataAttr: (value: boolean) => "" | undefined;
195
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxProgressIndicatorDirective, never>;
196
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxProgressIndicatorDirective, "[rdxProgressIndicator]", ["rdxProgressIndicator"], {}, {}, never, never, true, never>;
71
197
  }
72
198
 
73
199
  declare class RdxProgressModule {
74
- static ɵfac: i0.ɵɵFactoryDeclaration<RdxProgressModule, never>;
75
- static ɵmod: i0.ɵɵNgModuleDeclaration<RdxProgressModule, never, [typeof RdxProgressRootDirective, typeof RdxProgressIndicatorDirective], [typeof RdxProgressRootDirective, typeof RdxProgressIndicatorDirective]>;
76
- static ɵinj: i0.ɵɵInjectorDeclaration<RdxProgressModule>;
200
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxProgressModule, never>;
201
+ static ɵmod: _angular_core.ɵɵNgModuleDeclaration<RdxProgressModule, never, [typeof RdxProgressRootDirective, typeof RdxProgressLabelDirective, typeof RdxProgressValueDirective, typeof RdxProgressTrackDirective, typeof RdxProgressIndicatorDirective], [typeof RdxProgressRootDirective, typeof RdxProgressLabelDirective, typeof RdxProgressValueDirective, typeof RdxProgressTrackDirective, typeof RdxProgressIndicatorDirective]>;
202
+ static ɵinj: _angular_core.ɵɵInjectorDeclaration<RdxProgressModule>;
77
203
  }
78
204
 
79
- export { RdxProgressIndicatorDirective, RdxProgressModule, RdxProgressRootDirective, RdxProgressToken, injectProgress };
80
- export type { ProgressProps, ProgressState };
205
+ export { RdxProgressIndicatorDirective, RdxProgressLabelDirective, RdxProgressModule, RdxProgressRootDirective, RdxProgressTrackDirective, RdxProgressValueDirective, injectProgressRootContext, provideProgressRootContext };
206
+ export type { ProgressProps, ProgressState, ProgressValueFormatter, RdxProgressRootContext };