@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.
- package/fesm2022/radix-ng-primitives-accordion.mjs +105 -38
- package/fesm2022/radix-ng-primitives-accordion.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-alert-dialog.mjs +221 -129
- package/fesm2022/radix-ng-primitives-alert-dialog.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-arrow.mjs +20 -4
- package/fesm2022/radix-ng-primitives-arrow.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-aspect-ratio.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-avatar.mjs +54 -61
- package/fesm2022/radix-ng-primitives-avatar.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-button.mjs +123 -0
- package/fesm2022/radix-ng-primitives-button.mjs.map +1 -0
- package/fesm2022/radix-ng-primitives-calendar.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-checkbox.mjs +378 -54
- package/fesm2022/radix-ng-primitives-checkbox.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-collapsible.mjs +182 -81
- package/fesm2022/radix-ng-primitives-collapsible.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-collection.mjs +40 -57
- package/fesm2022/radix-ng-primitives-collection.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-config.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-context-menu.mjs +140 -424
- package/fesm2022/radix-ng-primitives-context-menu.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-core.mjs +735 -744
- package/fesm2022/radix-ng-primitives-core.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-cropper.mjs +1 -0
- package/fesm2022/radix-ng-primitives-cropper.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-date-field.mjs +51 -45
- package/fesm2022/radix-ng-primitives-date-field.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-dialog.mjs +655 -327
- package/fesm2022/radix-ng-primitives-dialog.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-dismissable-layer.mjs +70 -46
- package/fesm2022/radix-ng-primitives-dismissable-layer.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-drawer.mjs +1059 -0
- package/fesm2022/radix-ng-primitives-drawer.mjs.map +1 -0
- package/fesm2022/radix-ng-primitives-editable.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-field.mjs +363 -0
- package/fesm2022/radix-ng-primitives-field.mjs.map +1 -0
- package/fesm2022/radix-ng-primitives-fieldset.mjs +79 -0
- package/fesm2022/radix-ng-primitives-fieldset.mjs.map +1 -0
- package/fesm2022/radix-ng-primitives-focus-scope.mjs +23 -8
- package/fesm2022/radix-ng-primitives-focus-scope.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-input.mjs +172 -0
- package/fesm2022/radix-ng-primitives-input.mjs.map +1 -0
- package/fesm2022/radix-ng-primitives-label.mjs +6 -6
- package/fesm2022/radix-ng-primitives-label.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-menu.mjs +1480 -344
- package/fesm2022/radix-ng-primitives-menu.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-menubar.mjs +290 -162
- package/fesm2022/radix-ng-primitives-menubar.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-meter.mjs +271 -0
- package/fesm2022/radix-ng-primitives-meter.mjs.map +1 -0
- package/fesm2022/radix-ng-primitives-navigation-menu.mjs +1052 -1553
- package/fesm2022/radix-ng-primitives-navigation-menu.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-number-field.mjs +1102 -367
- package/fesm2022/radix-ng-primitives-number-field.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-pagination.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-popover.mjs +978 -989
- package/fesm2022/radix-ng-primitives-popover.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-popper.mjs +91 -41
- package/fesm2022/radix-ng-primitives-popper.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-portal.mjs +34 -10
- package/fesm2022/radix-ng-primitives-portal.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-presence.mjs +134 -246
- package/fesm2022/radix-ng-primitives-presence.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-preview-card.mjs +997 -0
- package/fesm2022/radix-ng-primitives-preview-card.mjs.map +1 -0
- package/fesm2022/radix-ng-primitives-progress.mjs +223 -84
- package/fesm2022/radix-ng-primitives-progress.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-radio.mjs +191 -51
- package/fesm2022/radix-ng-primitives-radio.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-roving-focus.mjs +96 -50
- package/fesm2022/radix-ng-primitives-roving-focus.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-select.mjs +791 -509
- package/fesm2022/radix-ng-primitives-select.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-separator.mjs +12 -35
- package/fesm2022/radix-ng-primitives-separator.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-slider.mjs +969 -717
- package/fesm2022/radix-ng-primitives-slider.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-stepper.mjs +15 -19
- package/fesm2022/radix-ng-primitives-stepper.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-switch.mjs +125 -113
- package/fesm2022/radix-ng-primitives-switch.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-tabs.mjs +381 -108
- package/fesm2022/radix-ng-primitives-tabs.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-time-field.mjs +55 -46
- package/fesm2022/radix-ng-primitives-time-field.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-toggle-group.mjs +121 -247
- package/fesm2022/radix-ng-primitives-toggle-group.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-toggle.mjs +98 -61
- package/fesm2022/radix-ng-primitives-toggle.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-toolbar.mjs +303 -92
- package/fesm2022/radix-ng-primitives-toolbar.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-tooltip.mjs +690 -1071
- package/fesm2022/radix-ng-primitives-tooltip.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-visually-hidden.mjs +25 -66
- package/fesm2022/radix-ng-primitives-visually-hidden.mjs.map +1 -1
- package/meter/README.md +3 -0
- package/navigation-menu/README.md +2 -1
- package/package.json +31 -18
- package/portal/README.md +2 -0
- package/preview-card/README.md +3 -0
- package/schematics/collection.json +1 -0
- package/schematics/ng-add/index.d.ts +3 -2
- package/schematics/ng-add/index.js +62 -31
- package/schematics/ng-add/index.js.map +1 -1
- package/schematics/ng-add/package-config.d.ts +4 -2
- package/schematics/ng-add/package-config.js +10 -2
- package/schematics/ng-add/package-config.js.map +1 -1
- package/schematics/ng-add/schema.d.ts +3 -0
- package/schematics/ng-add/schema.js +3 -0
- package/schematics/ng-add/schema.js.map +1 -0
- package/schematics/ng-add/schema.json +14 -0
- package/select/README.md +2 -0
- package/types/radix-ng-primitives-accordion.d.ts +48 -14
- package/types/radix-ng-primitives-alert-dialog.d.ts +95 -38
- package/types/radix-ng-primitives-arrow.d.ts +1 -1
- package/types/radix-ng-primitives-aspect-ratio.d.ts +1 -1
- package/types/radix-ng-primitives-avatar.d.ts +7 -11
- package/types/radix-ng-primitives-button.d.ts +73 -0
- package/types/radix-ng-primitives-calendar.d.ts +1 -2
- package/types/radix-ng-primitives-checkbox.d.ts +201 -32
- package/types/radix-ng-primitives-collapsible.d.ts +112 -39
- package/types/radix-ng-primitives-collection.d.ts +38 -34
- package/types/radix-ng-primitives-config.d.ts +1 -1
- package/types/radix-ng-primitives-context-menu.d.ts +60 -116
- package/types/radix-ng-primitives-core.d.ts +307 -236
- package/types/radix-ng-primitives-cropper.d.ts +2 -2
- package/types/radix-ng-primitives-date-field.d.ts +38 -23
- package/types/radix-ng-primitives-dialog.d.ts +282 -165
- package/types/radix-ng-primitives-dismissable-layer.d.ts +15 -7
- package/types/radix-ng-primitives-drawer.d.ts +448 -0
- package/types/radix-ng-primitives-editable.d.ts +1 -1
- package/types/radix-ng-primitives-field.d.ts +373 -0
- package/types/radix-ng-primitives-fieldset.d.ts +48 -0
- package/types/radix-ng-primitives-focus-scope.d.ts +13 -5
- package/types/radix-ng-primitives-input.d.ts +87 -0
- package/types/radix-ng-primitives-label.d.ts +0 -1
- package/types/radix-ng-primitives-menu.d.ts +572 -99
- package/types/radix-ng-primitives-menubar.d.ts +60 -50
- package/types/radix-ng-primitives-meter.d.ts +193 -0
- package/types/radix-ng-primitives-navigation-menu.d.ts +422 -340
- package/types/radix-ng-primitives-number-field.d.ts +405 -145
- package/types/radix-ng-primitives-pagination.d.ts +2 -2
- package/types/radix-ng-primitives-popover.d.ts +365 -351
- package/types/radix-ng-primitives-popper.d.ts +49 -9
- package/types/radix-ng-primitives-portal.d.ts +14 -6
- package/types/radix-ng-primitives-presence.d.ts +28 -76
- package/types/radix-ng-primitives-preview-card.d.ts +359 -0
- package/types/radix-ng-primitives-progress.d.ts +174 -48
- package/types/radix-ng-primitives-radio.d.ts +55 -25
- package/types/radix-ng-primitives-roving-focus.d.ts +30 -21
- package/types/radix-ng-primitives-select.d.ts +475 -177
- package/types/radix-ng-primitives-separator.d.ts +7 -32
- package/types/radix-ng-primitives-slider.d.ts +315 -201
- package/types/radix-ng-primitives-stepper.d.ts +5 -7
- package/types/radix-ng-primitives-switch.d.ts +86 -71
- package/types/radix-ng-primitives-tabs.d.ts +213 -79
- package/types/radix-ng-primitives-time-field.d.ts +42 -27
- package/types/radix-ng-primitives-toggle-group.d.ts +85 -164
- package/types/radix-ng-primitives-toggle.d.ts +43 -53
- package/types/radix-ng-primitives-toolbar.d.ts +163 -38
- package/types/radix-ng-primitives-tooltip.d.ts +347 -384
- package/types/radix-ng-primitives-visually-hidden.d.ts +19 -19
- package/dropdown-menu/README.md +0 -1
- package/fesm2022/radix-ng-primitives-dropdown-menu.mjs +0 -581
- package/fesm2022/radix-ng-primitives-dropdown-menu.mjs.map +0 -1
- package/fesm2022/radix-ng-primitives-hover-card.mjs +0 -1238
- package/fesm2022/radix-ng-primitives-hover-card.mjs.map +0 -1
- package/fesm2022/radix-ng-primitives-select2.mjs +0 -897
- package/fesm2022/radix-ng-primitives-select2.mjs.map +0 -1
- package/fesm2022/radix-ng-primitives-tooltip2.mjs +0 -735
- package/fesm2022/radix-ng-primitives-tooltip2.mjs.map +0 -1
- package/hover-card/README.md +0 -3
- package/select2/README.md +0 -3
- package/tooltip2/README.md +0 -3
- package/types/radix-ng-primitives-dropdown-menu.d.ts +0 -171
- package/types/radix-ng-primitives-hover-card.d.ts +0 -471
- package/types/radix-ng-primitives-select2.d.ts +0 -511
- package/types/radix-ng-primitives-tooltip2.d.ts +0 -325
|
@@ -1,57 +1,114 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
2
|
+
import * as i1 from '@radix-ng/primitives/dialog';
|
|
3
|
+
import { RdxDialogHandle } from '@radix-ng/primitives/dialog';
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
10
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<
|
|
5
|
+
/**
|
|
6
|
+
* An overlay displayed beneath the alert dialog popup.
|
|
7
|
+
*/
|
|
8
|
+
declare class RdxAlertDialogBackdrop {
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RdxAlertDialogBackdrop, never>;
|
|
10
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxAlertDialogBackdrop, "[rdxAlertDialogBackdrop]", ["rdxAlertDialogBackdrop"], {}, {}, never, never, true, [{ directive: typeof i1.RdxDialogBackdrop; inputs: {}; outputs: {}; }]>;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Groups all parts of the alert dialog.
|
|
15
|
+
*
|
|
16
|
+
* Composes the Dialog primitive and forces alert-dialog semantics: it is always modal, never
|
|
17
|
+
* dismisses on outside pointer / focus-out interactions (Escape still closes), and renders its
|
|
18
|
+
* popup with `role="alertdialog"`. Assemble it from the `rdxAlertDialog*` parts (Popup, Backdrop,
|
|
19
|
+
* Title, Description, Close, Portal, Viewport), which are thin wrappers around the dialog parts.
|
|
20
|
+
*/
|
|
21
|
+
declare class RdxAlertDialogRoot {
|
|
22
|
+
private readonly dialog;
|
|
23
|
+
/** Whether the alert dialog is open (read-only mirror of the composed dialog state). */
|
|
24
|
+
readonly open: i0.ModelSignal<boolean>;
|
|
25
|
+
/** The active trigger's id. */
|
|
26
|
+
readonly triggerId: i0.ModelSignal<string | null>;
|
|
27
|
+
/** Payload of the active trigger. */
|
|
28
|
+
readonly payload: i0.WritableSignal<unknown>;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RdxAlertDialogRoot, never>;
|
|
30
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxAlertDialogRoot, "[rdxAlertDialogRoot]", ["rdxAlertDialogRoot"], {}, {}, never, never, true, [{ directive: typeof i1.RdxDialogRoot; inputs: { "open": "open"; "defaultOpen": "defaultOpen"; "triggerId": "triggerId"; "defaultTriggerId": "defaultTriggerId"; "handle": "handle"; }; outputs: { "openChange": "openChange"; "triggerIdChange": "triggerIdChange"; "onOpenChange": "onOpenChange"; "onOpenChangeComplete": "onOpenChangeComplete"; }; }]>;
|
|
19
31
|
}
|
|
20
32
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
static
|
|
33
|
+
/**
|
|
34
|
+
* A button that opens the alert dialog. Behaves exactly like the dialog trigger.
|
|
35
|
+
*/
|
|
36
|
+
declare class RdxAlertDialogTrigger {
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RdxAlertDialogTrigger, never>;
|
|
38
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxAlertDialogTrigger, "button[rdxAlertDialogTrigger]", ["rdxAlertDialogTrigger"], {}, {}, never, never, true, [{ directive: typeof i1.RdxDialogTrigger; inputs: { "handle": "handle"; "payload": "payload"; "id": "id"; "disabled": "disabled"; }; outputs: {}; }]>;
|
|
26
39
|
}
|
|
27
40
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
static
|
|
41
|
+
/**
|
|
42
|
+
* Mounts the portal while the alert dialog is open and waits for CSS exit keyframes before unmounting.
|
|
43
|
+
*/
|
|
44
|
+
declare class RdxAlertDialogPortalPresence {
|
|
45
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RdxAlertDialogPortalPresence, never>;
|
|
46
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxAlertDialogPortalPresence, "ng-template[rdxAlertDialogPortalPresence]", never, {}, {}, never, never, true, [{ directive: typeof i1.RdxDialogPortalPresence; inputs: {}; outputs: {}; }]>;
|
|
33
47
|
}
|
|
34
48
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
49
|
+
/**
|
|
50
|
+
* Moves the alert dialog to a different part of the DOM. Defaults to `document.body`.
|
|
51
|
+
*/
|
|
52
|
+
declare class RdxAlertDialogPortal {
|
|
53
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RdxAlertDialogPortal, never>;
|
|
54
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxAlertDialogPortal, "[rdxAlertDialogPortal]", ["rdxAlertDialogPortal"], {}, {}, never, never, true, [{ directive: typeof i1.RdxDialogPortal; inputs: { "container": "container"; }; outputs: {}; }]>;
|
|
38
55
|
}
|
|
39
56
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
close(): void;
|
|
47
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RdxAlertDialogService, never>;
|
|
48
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<RdxAlertDialogService>;
|
|
57
|
+
/**
|
|
58
|
+
* A scrollable positioning container for the alert dialog popup.
|
|
59
|
+
*/
|
|
60
|
+
declare class RdxAlertDialogViewport {
|
|
61
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RdxAlertDialogViewport, never>;
|
|
62
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxAlertDialogViewport, "[rdxAlertDialogViewport]", ["rdxAlertDialogViewport"], {}, {}, never, never, true, [{ directive: typeof i1.RdxDialogViewport; inputs: {}; outputs: {}; }]>;
|
|
49
63
|
}
|
|
50
64
|
|
|
65
|
+
/**
|
|
66
|
+
* A container for the alert dialog contents. Wraps the dialog popup, which reads alert semantics
|
|
67
|
+
* (role, modal, dismissal) from the alert root's variant.
|
|
68
|
+
*/
|
|
69
|
+
declare class RdxAlertDialogPopup {
|
|
70
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RdxAlertDialogPopup, never>;
|
|
71
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxAlertDialogPopup, "[rdxAlertDialogPopup]", ["rdxAlertDialogPopup"], {}, {}, never, never, true, [{ directive: typeof i1.RdxDialogPopup; inputs: {}; outputs: { "escapeKeyDown": "escapeKeyDown"; "pointerDownOutside": "pointerDownOutside"; "focusOutside": "focusOutside"; "interactOutside": "interactOutside"; "openAutoFocus": "openAutoFocus"; "closeAutoFocus": "closeAutoFocus"; }; }]>;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* An accessible title for the alert dialog.
|
|
76
|
+
*/
|
|
77
|
+
declare class RdxAlertDialogTitle {
|
|
78
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RdxAlertDialogTitle, never>;
|
|
79
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxAlertDialogTitle, "[rdxAlertDialogTitle]", ["rdxAlertDialogTitle"], {}, {}, never, never, true, [{ directive: typeof i1.RdxDialogTitle; inputs: {}; outputs: {}; }]>;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* An accessible description for the alert dialog.
|
|
84
|
+
*/
|
|
85
|
+
declare class RdxAlertDialogDescription {
|
|
86
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RdxAlertDialogDescription, never>;
|
|
87
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxAlertDialogDescription, "[rdxAlertDialogDescription]", ["rdxAlertDialogDescription"], {}, {}, never, never, true, [{ directive: typeof i1.RdxDialogDescription; inputs: {}; outputs: {}; }]>;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* A button that closes the alert dialog.
|
|
92
|
+
*/
|
|
93
|
+
declare class RdxAlertDialogClose {
|
|
94
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RdxAlertDialogClose, never>;
|
|
95
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxAlertDialogClose, "button[rdxAlertDialogClose]", ["rdxAlertDialogClose"], {}, {}, never, never, true, [{ directive: typeof i1.RdxDialogClose; inputs: {}; outputs: {}; }]>;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Connects an alert dialog root with trigger elements rendered elsewhere in the DOM.
|
|
100
|
+
*
|
|
101
|
+
* Alert dialogs reuse the dialog handle implementation unchanged.
|
|
102
|
+
*/
|
|
103
|
+
declare const RdxAlertDialogHandle: typeof RdxDialogHandle;
|
|
104
|
+
type RdxAlertDialogHandle<Payload = unknown> = RdxDialogHandle<Payload>;
|
|
105
|
+
declare function createRdxAlertDialogHandle<Payload = unknown>(): RdxAlertDialogHandle<Payload>;
|
|
106
|
+
|
|
107
|
+
declare const alertDialogImports: (typeof RdxAlertDialogBackdrop)[];
|
|
51
108
|
declare class RdxAlertDialogModule {
|
|
52
109
|
static ɵfac: i0.ɵɵFactoryDeclaration<RdxAlertDialogModule, never>;
|
|
53
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<RdxAlertDialogModule, never, [typeof
|
|
110
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<RdxAlertDialogModule, never, [typeof RdxAlertDialogRoot, typeof RdxAlertDialogTrigger, typeof RdxAlertDialogPortalPresence, typeof RdxAlertDialogPortal, typeof RdxAlertDialogBackdrop, typeof RdxAlertDialogViewport, typeof RdxAlertDialogPopup, typeof RdxAlertDialogTitle, typeof RdxAlertDialogDescription, typeof RdxAlertDialogClose], [typeof RdxAlertDialogRoot, typeof RdxAlertDialogTrigger, typeof RdxAlertDialogPortalPresence, typeof RdxAlertDialogPortal, typeof RdxAlertDialogBackdrop, typeof RdxAlertDialogViewport, typeof RdxAlertDialogPopup, typeof RdxAlertDialogTitle, typeof RdxAlertDialogDescription, typeof RdxAlertDialogClose]>;
|
|
54
111
|
static ɵinj: i0.ɵɵInjectorDeclaration<RdxAlertDialogModule>;
|
|
55
112
|
}
|
|
56
113
|
|
|
57
|
-
export {
|
|
114
|
+
export { RdxAlertDialogBackdrop, RdxAlertDialogClose, RdxAlertDialogDescription, RdxAlertDialogHandle, RdxAlertDialogModule, RdxAlertDialogPopup, RdxAlertDialogPortal, RdxAlertDialogPortalPresence, RdxAlertDialogRoot, RdxAlertDialogTitle, RdxAlertDialogTrigger, RdxAlertDialogViewport, alertDialogImports, createRdxAlertDialogHandle };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { AfterViewInit } from '@angular/core';
|
|
3
|
-
import { NumberInput } from '@
|
|
3
|
+
import { NumberInput } from '@radix-ng/primitives/core';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Directive to maintain an aspect ratio for an element.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { WritableSignal,
|
|
2
|
+
import { WritableSignal, InjectionToken, Provider } from '@angular/core';
|
|
3
3
|
|
|
4
4
|
type RdxImageLoadingStatus = 'idle' | 'loading' | 'loaded' | 'error';
|
|
5
5
|
type HTMLAttributeReferrerPolicy = '' | 'no-referrer' | 'no-referrer-when-downgrade' | 'origin' | 'origin-when-cross-origin' | 'same-origin' | 'strict-origin' | 'strict-origin-when-cross-origin' | 'unsafe-url';
|
|
@@ -28,7 +28,6 @@ declare class RdxAvatarFallbackDirective {
|
|
|
28
28
|
*/
|
|
29
29
|
readonly delayMs: i0.InputSignal<number>;
|
|
30
30
|
protected readonly canRender: i0.WritableSignal<boolean>;
|
|
31
|
-
private timeout;
|
|
32
31
|
constructor();
|
|
33
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<RdxAvatarFallbackDirective, never>;
|
|
34
33
|
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxAvatarFallbackDirective, "span[rdxAvatarFallback]", ["rdxAvatarFallback"], { "delayMs": { "alias": "delayMs"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
@@ -37,7 +36,7 @@ declare class RdxAvatarFallbackDirective {
|
|
|
37
36
|
/**
|
|
38
37
|
* @group Components
|
|
39
38
|
*/
|
|
40
|
-
declare class RdxAvatarImageDirective
|
|
39
|
+
declare class RdxAvatarImageDirective {
|
|
41
40
|
private readonly platformId;
|
|
42
41
|
protected readonly rootContext: AvatarContextToken;
|
|
43
42
|
/**
|
|
@@ -52,11 +51,8 @@ declare class RdxAvatarImageDirective implements OnInit, OnDestroy {
|
|
|
52
51
|
* @group Emits
|
|
53
52
|
*/
|
|
54
53
|
readonly onLoadingStatusChange: i0.OutputEmitterRef<RdxImageLoadingStatus>;
|
|
55
|
-
private readonly isMounted;
|
|
56
54
|
private readonly loadingStatus;
|
|
57
55
|
constructor();
|
|
58
|
-
ngOnInit(): void;
|
|
59
|
-
ngOnDestroy(): void;
|
|
60
56
|
static ɵfac: i0.ɵɵFactoryDeclaration<RdxAvatarImageDirective, never>;
|
|
61
57
|
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxAvatarImageDirective, "img[rdxAvatarImage]", ["rdxAvatarImage"], { "src": { "alias": "src"; "required": false; "isSignal": true; }; "referrerPolicy": { "alias": "referrerPolicy"; "required": false; "isSignal": true; }; }, { "onLoadingStatusChange": "onLoadingStatusChange"; }, never, never, true, never>;
|
|
62
58
|
}
|
|
@@ -74,11 +70,11 @@ declare const RdxAvatarConfigToken: InjectionToken<RdxAvatarConfig>;
|
|
|
74
70
|
declare function provideRdxAvatarConfig(config: Partial<RdxAvatarConfig>): Provider[];
|
|
75
71
|
declare function injectAvatarConfig(): RdxAvatarConfig;
|
|
76
72
|
|
|
77
|
-
declare class
|
|
78
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
79
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<
|
|
80
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<
|
|
73
|
+
declare class RdxAvatarModule {
|
|
74
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RdxAvatarModule, never>;
|
|
75
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<RdxAvatarModule, never, [typeof RdxAvatarRootDirective, typeof RdxAvatarFallbackDirective, typeof RdxAvatarImageDirective], [typeof RdxAvatarRootDirective, typeof RdxAvatarFallbackDirective, typeof RdxAvatarImageDirective]>;
|
|
76
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<RdxAvatarModule>;
|
|
81
77
|
}
|
|
82
78
|
|
|
83
|
-
export { RdxAvatarConfigToken, RdxAvatarFallbackDirective, RdxAvatarImageDirective,
|
|
79
|
+
export { RdxAvatarConfigToken, RdxAvatarFallbackDirective, RdxAvatarImageDirective, RdxAvatarModule, RdxAvatarRootDirective, defaultAvatarConfig, injectAvatarConfig, provideRdxAvatarConfig };
|
|
84
80
|
export type { RdxAvatarConfig, RdxImageLoadingStatus };
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { BooleanInput } from '@radix-ng/primitives/core';
|
|
3
|
+
|
|
4
|
+
type RdxButtonType = 'button' | 'submit' | 'reset';
|
|
5
|
+
interface RdxButtonProps {
|
|
6
|
+
/**
|
|
7
|
+
* Whether the button is disabled.
|
|
8
|
+
* @defaultValue false
|
|
9
|
+
*/
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Whether the button should remain focusable when disabled. When `true`,
|
|
13
|
+
* the disabled state is expressed with `aria-disabled` (instead of the
|
|
14
|
+
* native `disabled` attribute) so the control stays in the tab order while
|
|
15
|
+
* its activation is suppressed.
|
|
16
|
+
* @defaultValue false
|
|
17
|
+
*/
|
|
18
|
+
focusableWhenDisabled?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* The `type` attribute applied to native `<button>` hosts.
|
|
21
|
+
* @defaultValue 'button'
|
|
22
|
+
*/
|
|
23
|
+
type?: RdxButtonType;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Headless button behavior, modeled on Base UI's `useButton`.
|
|
27
|
+
*
|
|
28
|
+
* Renders accessible button semantics on a native `<button>` or on any other
|
|
29
|
+
* element (e.g. `<a>`, `<span>`). Carries no styles — state is exposed via
|
|
30
|
+
* `data-disabled` for consumers to style.
|
|
31
|
+
*
|
|
32
|
+
* @group Components
|
|
33
|
+
*/
|
|
34
|
+
declare class RdxButtonDirective {
|
|
35
|
+
private readonly elementRef;
|
|
36
|
+
/**
|
|
37
|
+
* Whether the button is disabled.
|
|
38
|
+
* @group Props
|
|
39
|
+
*/
|
|
40
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, BooleanInput>;
|
|
41
|
+
/**
|
|
42
|
+
* Keep the button focusable while disabled (uses `aria-disabled`).
|
|
43
|
+
* @group Props
|
|
44
|
+
*/
|
|
45
|
+
readonly focusableWhenDisabled: _angular_core.InputSignalWithTransform<boolean, BooleanInput>;
|
|
46
|
+
/**
|
|
47
|
+
* The `type` attribute applied to native `<button>` hosts.
|
|
48
|
+
* @group Props
|
|
49
|
+
*/
|
|
50
|
+
readonly type: _angular_core.InputSignal<RdxButtonType>;
|
|
51
|
+
/**
|
|
52
|
+
* @ignore
|
|
53
|
+
*/
|
|
54
|
+
protected readonly isNativeButton: _angular_core.Signal<boolean>;
|
|
55
|
+
/**
|
|
56
|
+
* @ignore
|
|
57
|
+
* Express disabled via `aria-disabled` on non-button hosts, or whenever the
|
|
58
|
+
* control must stay focusable.
|
|
59
|
+
*/
|
|
60
|
+
protected readonly ariaDisabled: _angular_core.Signal<"true" | undefined>;
|
|
61
|
+
/**
|
|
62
|
+
* @ignore
|
|
63
|
+
*/
|
|
64
|
+
protected readonly tabIndex: _angular_core.Signal<-1 | 0 | undefined>;
|
|
65
|
+
constructor();
|
|
66
|
+
private handleClick;
|
|
67
|
+
private handleKeydown;
|
|
68
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxButtonDirective, never>;
|
|
69
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxButtonDirective, "[rdxButton]", ["rdxButton"], { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "focusableWhenDisabled": { "alias": "focusableWhenDisabled"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export { RdxButtonDirective };
|
|
73
|
+
export type { RdxButtonProps, RdxButtonType };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { AfterViewInit, WritableSignal, InputSignal, ModelSignal, Signal } from '@angular/core';
|
|
3
3
|
import { DateValue } from '@internationalized/date';
|
|
4
|
-
import { DateMatcher, Formatter, Month } from '@radix-ng/primitives/core';
|
|
5
|
-
import { BooleanInput } from '@angular/cdk/coercion';
|
|
4
|
+
import { DateMatcher, Formatter, BooleanInput, Month } from '@radix-ng/primitives/core';
|
|
6
5
|
|
|
7
6
|
declare class RdxCalendarCellTriggerDirective implements AfterViewInit {
|
|
8
7
|
private readonly rootContext;
|