@radix-ng/primitives 0.36.0 → 0.38.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/accordion/index.d.ts +3 -1
- package/accordion/src/accordion-content-presence.directive.d.ts +6 -0
- package/accordion/src/accordion-content.directive.d.ts +4 -7
- package/accordion/src/accordion-header.directive.d.ts +2 -2
- package/accordion/src/accordion-item.directive.d.ts +24 -83
- package/accordion/src/accordion-root.directive.d.ts +33 -87
- package/accordion/src/accordion-trigger.directive.d.ts +5 -11
- package/avatar/index.d.ts +1 -1
- package/avatar/src/avatar-context.token.d.ts +7 -0
- package/avatar/src/avatar-fallback.directive.d.ts +3 -9
- package/avatar/src/avatar-image.directive.d.ts +11 -11
- package/avatar/src/avatar-root.directive.d.ts +3 -6
- package/avatar/src/types.d.ts +2 -0
- package/checkbox/index.d.ts +1 -1
- package/checkbox/src/checkbox-button.directive.d.ts +1 -1
- package/checkbox/src/checkbox-indicator.directive.d.ts +1 -1
- package/checkbox/src/checkbox-input.directive.d.ts +1 -1
- package/checkbox/src/checkbox.directive.d.ts +3 -3
- package/checkbox/src/checkbox.token.d.ts +3 -3
- package/collapsible/index.d.ts +11 -0
- package/collapsible/src/collapsible-content-presence.directive.d.ts +6 -0
- package/collapsible/src/collapsible-content.directive.d.ts +10 -9
- package/collapsible/src/collapsible-root.directive.d.ts +19 -37
- package/collapsible/src/collapsible-trigger.directive.d.ts +1 -21
- package/core/index.d.ts +5 -0
- package/core/src/accessor/control-value-accessor.d.ts +67 -0
- package/core/src/create-context.d.ts +10 -0
- package/core/src/date-time/comparators.d.ts +7 -1
- package/core/src/date-time/useDateField.d.ts +2 -2
- package/core/src/types.d.ts +24 -0
- package/{stepper/src/utils → core/src}/useArrowNavigation.d.ts +2 -2
- package/core/src/useResizeObserver.d.ts +15 -0
- package/cropper/README.md +1 -0
- package/cropper/index.d.ts +15 -0
- package/cropper/src/cropper-context.token.d.ts +12 -0
- package/cropper/src/cropper-crop-area.directive.d.ts +6 -0
- package/cropper/src/cropper-description.directive.d.ts +6 -0
- package/cropper/src/cropper-image.component.d.ts +10 -0
- package/cropper/src/cropper-root.directive.d.ts +91 -0
- package/fesm2022/radix-ng-primitives-accordion.mjs +196 -408
- package/fesm2022/radix-ng-primitives-accordion.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-avatar.mjs +84 -96
- package/fesm2022/radix-ng-primitives-avatar.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-calendar.mjs +3 -14
- package/fesm2022/radix-ng-primitives-calendar.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-checkbox.mjs +13 -16
- package/fesm2022/radix-ng-primitives-checkbox.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-collapsible.mjs +138 -143
- package/fesm2022/radix-ng-primitives-collapsible.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-core.mjs +248 -7
- package/fesm2022/radix-ng-primitives-core.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-cropper.mjs +680 -0
- package/fesm2022/radix-ng-primitives-cropper.mjs.map +1 -0
- package/fesm2022/radix-ng-primitives-hover-card.mjs +1 -3
- package/fesm2022/radix-ng-primitives-hover-card.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-menubar.mjs +1 -8
- package/fesm2022/radix-ng-primitives-menubar.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-pagination.mjs +2 -6
- package/fesm2022/radix-ng-primitives-pagination.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-popover.mjs +2 -6
- package/fesm2022/radix-ng-primitives-popover.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-presence.mjs +34 -1
- package/fesm2022/radix-ng-primitives-presence.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-progress.mjs +2 -7
- package/fesm2022/radix-ng-primitives-progress.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-radio.mjs +1 -3
- package/fesm2022/radix-ng-primitives-radio.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-select.mjs +75 -33
- package/fesm2022/radix-ng-primitives-select.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-stepper.mjs +1 -97
- package/fesm2022/radix-ng-primitives-stepper.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-switch.mjs +61 -100
- package/fesm2022/radix-ng-primitives-switch.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-tabs.mjs +4 -19
- package/fesm2022/radix-ng-primitives-tabs.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-time-field.mjs +351 -0
- package/fesm2022/radix-ng-primitives-time-field.mjs.map +1 -0
- package/fesm2022/radix-ng-primitives-toggle-group.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-toggle.mjs +1 -6
- package/fesm2022/radix-ng-primitives-toggle.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-tooltip.mjs +1 -3
- package/fesm2022/radix-ng-primitives-tooltip.mjs.map +1 -1
- package/hover-card/src/hover-card-root.directive.d.ts +4 -4
- package/package.json +9 -1
- package/popover/src/popover-root.directive.d.ts +4 -4
- package/presence/index.d.ts +1 -0
- package/presence/src/presence.directive.d.ts +27 -0
- package/select/src/select-trigger.directive.d.ts +8 -2
- package/select/src/select.component.d.ts +23 -6
- package/switch/index.d.ts +0 -1
- package/switch/src/switch-input.directive.d.ts +1 -1
- package/switch/src/switch-root.directive.d.ts +23 -46
- package/switch/src/switch-thumb.directive.d.ts +1 -1
- package/time-field/README.md +1 -0
- package/time-field/index.d.ts +11 -0
- package/time-field/src/time-field-context.token.d.ts +19 -0
- package/time-field/src/time-field-input.directive.d.ts +53 -0
- package/time-field/src/time-field-root.directive.d.ts +125 -0
- package/tooltip/src/tooltip-root.directive.d.ts +4 -4
- package/collapsible/src/collapsible-content.token.d.ts +0 -3
- package/stepper/src/utils/getActiveElement.d.ts +0 -1
package/accordion/index.d.ts
CHANGED
@@ -4,6 +4,8 @@ import * as i2 from "./src/accordion-header.directive";
|
|
4
4
|
import * as i3 from "./src/accordion-item.directive";
|
5
5
|
import * as i4 from "./src/accordion-root.directive";
|
6
6
|
import * as i5 from "./src/accordion-trigger.directive";
|
7
|
+
import * as i6 from "./src/accordion-content-presence.directive";
|
8
|
+
export * from './src/accordion-content-presence.directive';
|
7
9
|
export * from './src/accordion-content.directive';
|
8
10
|
export * from './src/accordion-header.directive';
|
9
11
|
export * from './src/accordion-item.directive';
|
@@ -11,6 +13,6 @@ export * from './src/accordion-root.directive';
|
|
11
13
|
export * from './src/accordion-trigger.directive';
|
12
14
|
export declare class RdxAccordionModule {
|
13
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<RdxAccordionModule, never>;
|
14
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<RdxAccordionModule, never, [typeof i1.RdxAccordionContentDirective, typeof i2.RdxAccordionHeaderDirective, typeof i3.RdxAccordionItemDirective, typeof i4.RdxAccordionRootDirective, typeof i5.RdxAccordionTriggerDirective], [typeof i1.RdxAccordionContentDirective, typeof i2.RdxAccordionHeaderDirective, typeof i3.RdxAccordionItemDirective, typeof i4.RdxAccordionRootDirective, typeof i5.RdxAccordionTriggerDirective]>;
|
16
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<RdxAccordionModule, never, [typeof i1.RdxAccordionContentDirective, typeof i2.RdxAccordionHeaderDirective, typeof i3.RdxAccordionItemDirective, typeof i4.RdxAccordionRootDirective, typeof i5.RdxAccordionTriggerDirective, typeof i6.RdxAccordionContentPresenceDirective], [typeof i1.RdxAccordionContentDirective, typeof i2.RdxAccordionHeaderDirective, typeof i3.RdxAccordionItemDirective, typeof i4.RdxAccordionRootDirective, typeof i5.RdxAccordionTriggerDirective, typeof i6.RdxAccordionContentPresenceDirective]>;
|
15
17
|
static ɵinj: i0.ɵɵInjectorDeclaration<RdxAccordionModule>;
|
16
18
|
}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "@radix-ng/primitives/collapsible";
|
3
|
+
export declare class RdxAccordionContentPresenceDirective {
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RdxAccordionContentPresenceDirective, never>;
|
5
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxAccordionContentPresenceDirective, "ng-template[rdxAccordionContentPresence]", never, {}, {}, never, never, true, [{ directive: typeof i1.RdxCollapsibleContentPresenceDirective; inputs: {}; outputs: {}; }]>;
|
6
|
+
}
|
@@ -1,11 +1,8 @@
|
|
1
|
-
import { RdxAccordionItemDirective } from './accordion-item.directive';
|
2
1
|
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "@radix-ng/primitives/collapsible";
|
3
3
|
export declare class RdxAccordionContentDirective {
|
4
|
-
protected readonly
|
5
|
-
protected readonly
|
6
|
-
protected hidden: boolean;
|
7
|
-
protected onAnimationEnd(): void;
|
8
|
-
onToggle(): void;
|
4
|
+
protected readonly rootContext: import("./accordion-root.directive").AccordionRootContext;
|
5
|
+
protected readonly itemContext: import("./accordion-item.directive").AccordionItemContext;
|
9
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<RdxAccordionContentDirective, never>;
|
10
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxAccordionContentDirective, "[rdxAccordionContent]",
|
7
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxAccordionContentDirective, "[rdxAccordionContent]", never, {}, {}, never, never, true, [{ directive: typeof i1.RdxCollapsibleContentDirective; inputs: {}; outputs: {}; }]>;
|
11
8
|
}
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { RdxAccordionItemDirective } from './accordion-item.directive';
|
2
1
|
import * as i0 from "@angular/core";
|
3
2
|
export declare class RdxAccordionHeaderDirective {
|
4
|
-
protected readonly
|
3
|
+
protected readonly rootContext: import("./accordion-root.directive").AccordionRootContext;
|
4
|
+
protected readonly itemContext: import("./accordion-item.directive").AccordionItemContext;
|
5
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<RdxAccordionHeaderDirective, never>;
|
6
6
|
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxAccordionHeaderDirective, "[rdxAccordionHeader]", never, {}, {}, never, never, true, never>;
|
7
7
|
}
|
@@ -1,91 +1,32 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
import { ChangeDetectorRef, EventEmitter, OnDestroy } from '@angular/core';
|
4
|
-
import { RdxAccordionContentDirective } from './accordion-content.directive';
|
5
|
-
import { RdxAccordionOrientation } from './accordion-root.directive';
|
6
|
-
import { RdxAccordionTriggerDirective } from './accordion-trigger.directive';
|
1
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
2
|
+
import { ElementRef, Signal } from '@angular/core';
|
7
3
|
import * as i0 from "@angular/core";
|
4
|
+
import * as i1 from "@radix-ng/primitives/collapsible";
|
8
5
|
export type RdxAccordionItemState = 'open' | 'closed';
|
6
|
+
export type AccordionItemContext = {
|
7
|
+
open: Signal<boolean>;
|
8
|
+
disabled: Signal<boolean>;
|
9
|
+
triggerId: string;
|
10
|
+
dataState: Signal<RdxAccordionItemState>;
|
11
|
+
dataDisabled: Signal<boolean>;
|
12
|
+
currentElement: ElementRef<HTMLElement>;
|
13
|
+
value: Signal<string | undefined>;
|
14
|
+
};
|
15
|
+
export declare const injectAccordionItemContext: (optional?: boolean) => AccordionItemContext | null, provideAccordionItemContext: (useFactory: () => AccordionItemContext) => import("@angular/core").Provider;
|
9
16
|
/**
|
10
17
|
* @group Components
|
11
18
|
*/
|
12
|
-
export declare class RdxAccordionItemDirective
|
13
|
-
|
14
|
-
|
15
|
-
protected readonly
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
* @ignore
|
22
|
-
*/
|
23
|
-
content: RdxAccordionContentDirective;
|
24
|
-
get dataState(): RdxAccordionItemState;
|
25
|
-
/**
|
26
|
-
* The unique AccordionItem id.
|
27
|
-
* @ignore
|
28
|
-
*/
|
29
|
-
readonly id: string;
|
30
|
-
get orientation(): RdxAccordionOrientation;
|
31
|
-
/**
|
32
|
-
* @defaultValue false
|
33
|
-
* @group Props
|
34
|
-
*/
|
35
|
-
set expanded(expanded: boolean);
|
36
|
-
get expanded(): boolean;
|
37
|
-
private _expanded;
|
38
|
-
/**
|
39
|
-
* Accordion value.
|
40
|
-
*
|
41
|
-
* @group Props
|
42
|
-
*/
|
43
|
-
set value(value: string);
|
44
|
-
get value(): string;
|
45
|
-
private _value?;
|
46
|
-
/**
|
47
|
-
* Whether the AccordionItem is disabled.
|
48
|
-
*
|
49
|
-
* @defaultValue false
|
50
|
-
* @group Props
|
51
|
-
*/
|
52
|
-
set disabled(value: boolean);
|
53
|
-
get disabled(): boolean;
|
54
|
-
private _disabled;
|
55
|
-
/**
|
56
|
-
* Event emitted every time the AccordionItem is closed.
|
57
|
-
*/
|
58
|
-
readonly closed: EventEmitter<void>;
|
59
|
-
/** Event emitted every time the AccordionItem is opened. */
|
60
|
-
readonly opened: EventEmitter<void>;
|
61
|
-
/**
|
62
|
-
* Event emitted when the AccordionItem is destroyed.
|
63
|
-
* @ignore
|
64
|
-
*/
|
65
|
-
readonly destroyed: EventEmitter<void>;
|
66
|
-
/**
|
67
|
-
* Emits whenever the expanded state of the accordion changes.
|
68
|
-
* Primarily used to facilitate two-way binding.
|
69
|
-
* @group Emits
|
70
|
-
*/
|
71
|
-
readonly expandedChange: EventEmitter<boolean>;
|
72
|
-
/** Unregister function for expansionDispatcher. */
|
73
|
-
private removeUniqueSelectionListener;
|
74
|
-
/** Subscription to openAll/closeAll events. */
|
75
|
-
private openCloseAllSubscription;
|
19
|
+
export declare class RdxAccordionItemDirective {
|
20
|
+
readonly elementRef: ElementRef<HTMLElement>;
|
21
|
+
private readonly collapsibleContext;
|
22
|
+
protected readonly rootContext: import("./accordion-root.directive").AccordionRootContext;
|
23
|
+
readonly value: import("@angular/core").InputSignal<string | undefined>;
|
24
|
+
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, BooleanInput>;
|
25
|
+
readonly isDisabled: Signal<boolean>;
|
26
|
+
readonly open: Signal<boolean>;
|
27
|
+
readonly dataState: Signal<RdxAccordionItemState>;
|
76
28
|
constructor();
|
77
|
-
|
78
|
-
ngOnDestroy(): void;
|
79
|
-
focus(): void;
|
80
|
-
/** Toggles the expanded state of the accordion item. */
|
81
|
-
toggle(): void;
|
82
|
-
/** Sets the expanded state of the accordion item to false. */
|
83
|
-
close(): void;
|
84
|
-
/** Sets the expanded state of the accordion item to true. */
|
85
|
-
open(): void;
|
86
|
-
private subscribeToOpenCloseAllActions;
|
29
|
+
handleArrowKey(event: KeyboardEvent): void;
|
87
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<RdxAccordionItemDirective, never>;
|
88
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxAccordionItemDirective, "[rdxAccordionItem]", ["rdxAccordionItem"], { "
|
89
|
-
static ngAcceptInputType_expanded: unknown;
|
90
|
-
static ngAcceptInputType_disabled: unknown;
|
31
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxAccordionItemDirective, "[rdxAccordionItem]", ["rdxAccordionItem"], { "value": { "alias": "value"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.RdxCollapsibleRootDirective; inputs: { "disabled": "disabled"; }; outputs: {}; }]>;
|
91
32
|
}
|
@@ -1,112 +1,58 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
import {
|
5
|
-
import { Subject } from 'rxjs';
|
6
|
-
import { RdxAccordionItemDirective } from './accordion-item.directive';
|
1
|
+
import { Direction } from '@angular/cdk/bidi';
|
2
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
3
|
+
import { ElementRef, InputSignal, InputSignalWithTransform, ModelSignal, Signal } from '@angular/core';
|
4
|
+
import { DataOrientation } from '@radix-ng/primitives/core';
|
7
5
|
import * as i0 from "@angular/core";
|
8
|
-
export type
|
9
|
-
|
10
|
-
|
6
|
+
export type AccordionRootContext = {
|
7
|
+
disabled: InputSignalWithTransform<boolean, BooleanInput>;
|
8
|
+
direction: InputSignal<Direction>;
|
9
|
+
orientation: InputSignal<DataOrientation>;
|
10
|
+
value: ModelSignal<string | string[] | undefined>;
|
11
|
+
collapsible: Signal<boolean>;
|
12
|
+
isSingle: Signal<boolean>;
|
13
|
+
elementRef: ElementRef<HTMLElement>;
|
14
|
+
changeModelValue: (value: string, isOpen: boolean) => void;
|
15
|
+
isItemOpen: (value: string) => boolean;
|
16
|
+
};
|
17
|
+
export declare const injectAccordionRootContext: (optional?: boolean) => AccordionRootContext | null, provideAccordionRootContext: (useFactory: () => AccordionRootContext) => import("@angular/core").Provider;
|
11
18
|
/**
|
12
19
|
* @group Components
|
13
20
|
*/
|
14
|
-
export declare class RdxAccordionRootDirective
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
protected readonly selectionDispatcher: UniqueSelectionDispatcher;
|
19
|
-
/**
|
20
|
-
* @ignore
|
21
|
-
*/
|
22
|
-
protected readonly dir: Directionality | null;
|
23
|
-
/**
|
24
|
-
* @ignore
|
25
|
-
*/
|
26
|
-
protected keyManager: FocusKeyManager<RdxAccordionItemDirective>;
|
27
|
-
/**
|
28
|
-
* @ignore
|
29
|
-
*/
|
30
|
-
readonly id: string;
|
31
|
-
/**
|
32
|
-
* @ignore
|
33
|
-
*/
|
34
|
-
readonly openCloseAllActions: Subject<boolean>;
|
35
|
-
get isMultiple(): boolean;
|
21
|
+
export declare class RdxAccordionRootDirective {
|
22
|
+
readonly elementRef: ElementRef<HTMLElement>;
|
23
|
+
readonly id: InputSignal<string>;
|
24
|
+
readonly dir: InputSignal<Direction>;
|
36
25
|
/** Whether the Accordion is disabled.
|
37
26
|
* @defaultValue false
|
38
27
|
* @group Props
|
39
28
|
*/
|
40
|
-
disabled: boolean
|
29
|
+
readonly disabled: InputSignalWithTransform<boolean, BooleanInput>;
|
41
30
|
/**
|
42
31
|
* The orientation of the accordion.
|
43
32
|
*
|
44
33
|
* @defaultValue 'vertical'
|
45
34
|
* @group Props
|
46
35
|
*/
|
47
|
-
orientation:
|
48
|
-
|
49
|
-
* @private
|
50
|
-
* @ignore
|
51
|
-
*/
|
52
|
-
items: QueryList<RdxAccordionItemDirective>;
|
53
|
-
/**
|
54
|
-
* The value of the item to expand when initially rendered and type is "single".
|
55
|
-
* Use when you do not need to control the state of the items.
|
56
|
-
* @group Props
|
57
|
-
*/
|
58
|
-
set defaultValue(value: string[] | string);
|
59
|
-
get defaultValue(): string[] | string;
|
60
|
-
/**
|
61
|
-
* Determines whether one or multiple items can be opened at the same time.
|
62
|
-
* @group Props
|
63
|
-
* @defaultValue 'single'
|
64
|
-
*/
|
65
|
-
type: RdxAccordionType;
|
66
|
-
/**
|
67
|
-
* @ignore
|
68
|
-
*/
|
69
|
-
collapsible: boolean;
|
36
|
+
readonly orientation: InputSignal<DataOrientation>;
|
37
|
+
readonly defaultValue: InputSignal<string | string[] | undefined>;
|
70
38
|
/**
|
71
39
|
* The controlled value of the item to expand.
|
72
40
|
*
|
73
41
|
* @group Props
|
74
42
|
*/
|
75
|
-
|
76
|
-
|
43
|
+
readonly value: ModelSignal<string | string[] | undefined>;
|
44
|
+
readonly collapsible: InputSignalWithTransform<boolean, BooleanInput>;
|
45
|
+
readonly type: InputSignal<"multiple" | "single">;
|
77
46
|
/**
|
78
47
|
* Event handler called when the expanded state of an item changes and type is "multiple".
|
79
48
|
* @group Emits
|
80
49
|
*/
|
81
|
-
readonly onValueChange:
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
*/
|
88
|
-
ngAfterContentInit(): void;
|
89
|
-
/**
|
90
|
-
* @ignore
|
91
|
-
*/
|
92
|
-
ngOnDestroy(): void;
|
93
|
-
/**
|
94
|
-
* @ignore
|
95
|
-
*/
|
96
|
-
handleKeydown(event: KeyboardEvent): void;
|
97
|
-
/** Opens all enabled accordion items in an accordion where multi is enabled.
|
98
|
-
* @ignore
|
99
|
-
*/
|
100
|
-
openAll(): void;
|
101
|
-
/** Closes all enabled accordion items.
|
102
|
-
* @ignore
|
103
|
-
*/
|
104
|
-
closeAll(): void;
|
105
|
-
/**
|
106
|
-
* @ignore
|
107
|
-
*/
|
108
|
-
setActiveItem(item: RdxAccordionItemDirective): void;
|
50
|
+
readonly onValueChange: import("@angular/core").OutputEmitterRef<void>;
|
51
|
+
readonly isCollapsible: Signal<boolean>;
|
52
|
+
readonly isSingle: Signal<boolean>;
|
53
|
+
constructor();
|
54
|
+
changeModelValue: (value: string, isOpen: boolean) => void;
|
55
|
+
isItemOpen: (value: string) => boolean;
|
109
56
|
static ɵfac: i0.ɵɵFactoryDeclaration<RdxAccordionRootDirective, never>;
|
110
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxAccordionRootDirective, "[rdxAccordionRoot]",
|
111
|
-
static ngAcceptInputType_disabled: unknown;
|
57
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxAccordionRootDirective, "[rdxAccordionRoot]", ["rdxAccordionRoot"], { "id": { "alias": "id"; "required": false; "isSignal": true; }; "dir": { "alias": "dir"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "defaultValue": { "alias": "defaultValue"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "collapsible": { "alias": "collapsible"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "onValueChange": "onValueChange"; }, never, never, true, never>;
|
112
58
|
}
|
@@ -1,15 +1,9 @@
|
|
1
|
-
import { RdxAccordionItemDirective } from './accordion-item.directive';
|
2
|
-
import { RdxAccordionRootDirective } from './accordion-root.directive';
|
3
1
|
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "@radix-ng/primitives/collapsible";
|
4
3
|
export declare class RdxAccordionTriggerDirective {
|
5
|
-
protected readonly
|
6
|
-
protected readonly
|
7
|
-
|
8
|
-
/**
|
9
|
-
* Fires when trigger clicked
|
10
|
-
*/
|
11
|
-
onClick(): void;
|
12
|
-
focus(): void;
|
4
|
+
protected readonly rootContext: import("./accordion-root.directive").AccordionRootContext;
|
5
|
+
protected readonly itemContext: import("./accordion-item.directive").AccordionItemContext;
|
6
|
+
constructor();
|
13
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<RdxAccordionTriggerDirective, never>;
|
14
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxAccordionTriggerDirective, "[rdxAccordionTrigger]", never, {}, {}, never, never, true,
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxAccordionTriggerDirective, "[rdxAccordionTrigger]", never, {}, {}, never, never, true, [{ directive: typeof i1.RdxCollapsibleTriggerDirective; inputs: {}; outputs: {}; }]>;
|
15
9
|
}
|
package/avatar/index.d.ts
CHANGED
@@ -5,8 +5,8 @@ import * as i3 from "./src/avatar-image.directive";
|
|
5
5
|
export * from './src/avatar-fallback.directive';
|
6
6
|
export * from './src/avatar-image.directive';
|
7
7
|
export * from './src/avatar-root.directive';
|
8
|
-
export type { RdxImageLoadingStatus } from './src/avatar-root.directive';
|
9
8
|
export * from './src/avatar.config';
|
9
|
+
export type { RdxImageLoadingStatus } from './src/types';
|
10
10
|
export declare class RdxCheckboxModule {
|
11
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<RdxCheckboxModule, never>;
|
12
12
|
static ɵmod: i0.ɵɵNgModuleDeclaration<RdxCheckboxModule, never, [typeof i1.RdxAvatarRootDirective, typeof i2.RdxAvatarFallbackDirective, typeof i3.RdxAvatarImageDirective], [typeof i1.RdxAvatarRootDirective, typeof i2.RdxAvatarFallbackDirective, typeof i3.RdxAvatarImageDirective]>;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { InjectionToken, WritableSignal } from '@angular/core';
|
2
|
+
import { RdxImageLoadingStatus } from './types';
|
3
|
+
export interface AvatarContextToken {
|
4
|
+
imageLoadingStatus: WritableSignal<RdxImageLoadingStatus>;
|
5
|
+
}
|
6
|
+
export declare const AVATAR_ROOT_CONTEXT: InjectionToken<AvatarContextToken>;
|
7
|
+
export declare function injectAvatarRootContext(): AvatarContextToken;
|
@@ -1,12 +1,10 @@
|
|
1
|
-
import { OnDestroy } from '@angular/core';
|
2
|
-
import { RdxAvatarRootContext } from './avatar-root.directive';
|
3
1
|
import * as i0 from "@angular/core";
|
4
2
|
/**
|
5
3
|
* @group Components
|
6
4
|
*/
|
7
|
-
export declare class RdxAvatarFallbackDirective
|
8
|
-
protected readonly avatarRoot: RdxAvatarRootContext;
|
5
|
+
export declare class RdxAvatarFallbackDirective {
|
9
6
|
private readonly config;
|
7
|
+
protected readonly rootContext: import("./avatar-context.token").AvatarContextToken;
|
10
8
|
/**
|
11
9
|
* Useful for delaying rendering so it only appears for those with slower connections.
|
12
10
|
*
|
@@ -14,13 +12,9 @@ export declare class RdxAvatarFallbackDirective implements OnDestroy {
|
|
14
12
|
* @defaultValue 0
|
15
13
|
*/
|
16
14
|
readonly delayMs: import("@angular/core").InputSignal<number>;
|
17
|
-
readonly shouldRender: import("@angular/core").Signal<boolean>;
|
18
15
|
protected readonly canRender: import("@angular/core").WritableSignal<boolean>;
|
19
|
-
private
|
16
|
+
private timeout;
|
20
17
|
constructor();
|
21
|
-
private startDelayTimer;
|
22
|
-
private clearDelayTimer;
|
23
|
-
ngOnDestroy(): void;
|
24
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<RdxAvatarFallbackDirective, never>;
|
25
19
|
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxAvatarFallbackDirective, "span[rdxAvatarFallback]", ["rdxAvatarFallback"], { "delayMs": { "alias": "delayMs"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
26
20
|
}
|
@@ -1,16 +1,17 @@
|
|
1
|
-
import { OnInit } from '@angular/core';
|
2
|
-
import { RdxImageLoadingStatus } from './
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
2
|
+
import { HTMLAttributeReferrerPolicy, RdxImageLoadingStatus } from './types';
|
3
3
|
import * as i0 from "@angular/core";
|
4
4
|
/**
|
5
5
|
* @group Components
|
6
6
|
*/
|
7
|
-
export declare class RdxAvatarImageDirective implements OnInit {
|
8
|
-
private readonly
|
9
|
-
|
7
|
+
export declare class RdxAvatarImageDirective implements OnInit, OnDestroy {
|
8
|
+
private readonly platformId;
|
9
|
+
protected readonly rootContext: import("./avatar-context.token").AvatarContextToken;
|
10
10
|
/**
|
11
11
|
* @group Props
|
12
12
|
*/
|
13
13
|
readonly src: import("@angular/core").InputSignal<string | undefined>;
|
14
|
+
readonly referrerPolicy: import("@angular/core").InputSignal<HTMLAttributeReferrerPolicy | undefined>;
|
14
15
|
/**
|
15
16
|
* A callback providing information about the loading status of the image.
|
16
17
|
* This is useful in case you want to control more precisely what to render as the image is loading.
|
@@ -18,12 +19,11 @@ export declare class RdxAvatarImageDirective implements OnInit {
|
|
18
19
|
* @group Emits
|
19
20
|
*/
|
20
21
|
readonly onLoadingStatusChange: import("@angular/core").OutputEmitterRef<RdxImageLoadingStatus>;
|
21
|
-
|
22
|
+
private readonly isMounted;
|
23
|
+
private readonly loadingStatus;
|
24
|
+
constructor();
|
22
25
|
ngOnInit(): void;
|
23
|
-
|
24
|
-
onError(): void;
|
25
|
-
private setImageStatus;
|
26
|
-
get nativeElement(): any;
|
26
|
+
ngOnDestroy(): void;
|
27
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<RdxAvatarImageDirective, never>;
|
28
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxAvatarImageDirective, "img[rdxAvatarImage]", ["rdxAvatarImage"], { "src": { "alias": "src"; "required": false; "isSignal": true; }; }, { "onLoadingStatusChange": "onLoadingStatusChange"; }, never, never, true, never>;
|
28
|
+
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>;
|
29
29
|
}
|
@@ -1,11 +1,8 @@
|
|
1
|
+
import { AvatarContextToken } from './avatar-context.token';
|
2
|
+
import { RdxImageLoadingStatus } from './types';
|
1
3
|
import * as i0 from "@angular/core";
|
2
|
-
export
|
3
|
-
export declare class RdxAvatarRootContext {
|
4
|
+
export declare class RdxAvatarRootDirective implements AvatarContextToken {
|
4
5
|
readonly imageLoadingStatus: import("@angular/core").WritableSignal<RdxImageLoadingStatus>;
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RdxAvatarRootContext, never>;
|
6
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<RdxAvatarRootContext>;
|
7
|
-
}
|
8
|
-
export declare class RdxAvatarRootDirective {
|
9
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<RdxAvatarRootDirective, never>;
|
10
7
|
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxAvatarRootDirective, "span[rdxAvatarRoot]", ["rdxAvatarRoot"], {}, {}, never, never, true, never>;
|
11
8
|
}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
export type RdxImageLoadingStatus = 'idle' | 'loading' | 'loaded' | 'error';
|
2
|
+
export type HTMLAttributeReferrerPolicy = '' | 'no-referrer' | 'no-referrer-when-downgrade' | 'origin' | 'origin-when-cross-origin' | 'same-origin' | 'strict-origin' | 'strict-origin-when-cross-origin' | 'unsafe-url';
|
package/checkbox/index.d.ts
CHANGED
@@ -11,6 +11,6 @@ export type { CheckboxState } from './src/checkbox.directive';
|
|
11
11
|
export * from './src/checkbox.token';
|
12
12
|
export declare class RdxCheckboxModule {
|
13
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<RdxCheckboxModule, never>;
|
14
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<RdxCheckboxModule, never, [typeof i1.RdxCheckboxInputDirective, typeof i2.
|
14
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<RdxCheckboxModule, never, [typeof i1.RdxCheckboxInputDirective, typeof i2.RdxCheckboxRootDirective, typeof i3.RdxCheckboxButtonDirective, typeof i4.RdxCheckboxIndicatorDirective], [typeof i1.RdxCheckboxInputDirective, typeof i2.RdxCheckboxRootDirective, typeof i3.RdxCheckboxButtonDirective, typeof i4.RdxCheckboxIndicatorDirective]>;
|
15
15
|
static ɵinj: i0.ɵɵInjectorDeclaration<RdxCheckboxModule>;
|
16
16
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as i0 from "@angular/core";
|
2
2
|
export declare class RdxCheckboxButtonDirective {
|
3
|
-
protected readonly checkbox: import("@radix-ng/primitives/checkbox").
|
3
|
+
protected readonly checkbox: import("@radix-ng/primitives/checkbox").RdxCheckboxRootDirective;
|
4
4
|
readonly id: import("@angular/core").InputSignal<string | null>;
|
5
5
|
protected readonly elementId: import("@angular/core").Signal<string | null>;
|
6
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<RdxCheckboxButtonDirective, never>;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as i0 from "@angular/core";
|
2
2
|
export declare class RdxCheckboxIndicatorDirective {
|
3
|
-
protected readonly checkbox: import("@radix-ng/primitives/checkbox").
|
3
|
+
protected readonly checkbox: import("@radix-ng/primitives/checkbox").RdxCheckboxRootDirective;
|
4
4
|
static ɵfac: i0.ɵɵFactoryDeclaration<RdxCheckboxIndicatorDirective, never>;
|
5
5
|
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxCheckboxIndicatorDirective, "[rdxCheckboxIndicator]", never, {}, {}, never, never, true, never>;
|
6
6
|
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import * as i0 from "@angular/core";
|
2
2
|
import * as i1 from "@radix-ng/primitives/visually-hidden";
|
3
3
|
export declare class RdxCheckboxInputDirective {
|
4
|
-
protected readonly checkbox: import("@radix-ng/primitives/checkbox").
|
4
|
+
protected readonly checkbox: import("@radix-ng/primitives/checkbox").RdxCheckboxRootDirective;
|
5
5
|
readonly id: import("@angular/core").InputSignal<string | undefined>;
|
6
6
|
protected readonly elementId: import("@angular/core").Signal<string | undefined>;
|
7
7
|
protected readonly value: import("@angular/core").Signal<"" | "on" | "off">;
|
@@ -5,7 +5,7 @@ export type CheckboxState = 'unchecked' | 'checked' | 'indeterminate';
|
|
5
5
|
/**
|
6
6
|
* @group Components
|
7
7
|
*/
|
8
|
-
export declare class
|
8
|
+
export declare class RdxCheckboxRootDirective implements ControlValueAccessor, OnChanges {
|
9
9
|
/**
|
10
10
|
* The controlled checked state of the checkbox. Must be used in conjunction with onCheckedChange.
|
11
11
|
* @group Props
|
@@ -77,8 +77,8 @@ export declare class RdxCheckboxDirective implements ControlValueAccessor, OnCha
|
|
77
77
|
* @internal
|
78
78
|
*/
|
79
79
|
setDisabledState(isDisabled: boolean): void;
|
80
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
81
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<
|
80
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RdxCheckboxRootDirective, never>;
|
81
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxCheckboxRootDirective, "[rdxCheckboxRoot]", never, { "checked": { "alias": "checked"; "required": false; }; "indeterminate": { "alias": "indeterminate"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; }, { "checkedChange": "checkedChange"; "indeterminateChange": "indeterminateChange"; }, never, never, true, never>;
|
82
82
|
static ngAcceptInputType_checked: unknown;
|
83
83
|
static ngAcceptInputType_indeterminate: unknown;
|
84
84
|
static ngAcceptInputType_disabled: unknown;
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
2
|
-
import type {
|
3
|
-
export declare const RdxCheckboxToken: InjectionToken<
|
4
|
-
export declare function injectCheckbox():
|
2
|
+
import type { RdxCheckboxRootDirective } from './checkbox.directive';
|
3
|
+
export declare const RdxCheckboxToken: InjectionToken<RdxCheckboxRootDirective>;
|
4
|
+
export declare function injectCheckbox(): RdxCheckboxRootDirective;
|
package/collapsible/index.d.ts
CHANGED
@@ -1,3 +1,14 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "./src/collapsible-content.directive";
|
3
|
+
import * as i2 from "./src/collapsible-root.directive";
|
4
|
+
import * as i3 from "./src/collapsible-trigger.directive";
|
5
|
+
import * as i4 from "./src/collapsible-content-presence.directive";
|
6
|
+
export * from './src/collapsible-content-presence.directive';
|
1
7
|
export * from './src/collapsible-content.directive';
|
2
8
|
export * from './src/collapsible-root.directive';
|
3
9
|
export * from './src/collapsible-trigger.directive';
|
10
|
+
export declare class RdxCollapsibleModule {
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RdxCollapsibleModule, never>;
|
12
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<RdxCollapsibleModule, never, [typeof i1.RdxCollapsibleContentDirective, typeof i2.RdxCollapsibleRootDirective, typeof i3.RdxCollapsibleTriggerDirective, typeof i4.RdxCollapsibleContentPresenceDirective], [typeof i1.RdxCollapsibleContentDirective, typeof i2.RdxCollapsibleRootDirective, typeof i3.RdxCollapsibleTriggerDirective, typeof i4.RdxCollapsibleContentPresenceDirective]>;
|
13
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<RdxCollapsibleModule>;
|
14
|
+
}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "@radix-ng/primitives/presence";
|
3
|
+
export declare class RdxCollapsibleContentPresenceDirective {
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RdxCollapsibleContentPresenceDirective, never>;
|
5
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxCollapsibleContentPresenceDirective, "ng-template[rdxCollapsibleContentPresence]", never, {}, {}, never, never, true, [{ directive: typeof i1.RdxPresenceDirective; inputs: {}; outputs: {}; }]>;
|
6
|
+
}
|
@@ -1,14 +1,15 @@
|
|
1
|
-
import { ElementRef } from '@angular/core';
|
2
|
-
import { RdxCollapsibleRootDirective } from './collapsible-root.directive';
|
3
1
|
import * as i0 from "@angular/core";
|
4
2
|
export declare class RdxCollapsibleContentDirective {
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
readonly
|
11
|
-
|
3
|
+
private readonly elementRef;
|
4
|
+
protected readonly rootContext: import("./collapsible-root.directive").CollapsibleRootContext;
|
5
|
+
readonly isOpen: import("@angular/core").Signal<boolean>;
|
6
|
+
readonly height: import("@angular/core").WritableSignal<number>;
|
7
|
+
readonly width: import("@angular/core").WritableSignal<number>;
|
8
|
+
readonly isMountAnimationPrevented: import("@angular/core").WritableSignal<boolean>;
|
9
|
+
private originalStyles;
|
10
|
+
protected readonly hiddenSignal: import("@angular/core").WritableSignal<boolean>;
|
11
|
+
constructor();
|
12
|
+
onAnimationEnd(): void;
|
12
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<RdxCollapsibleContentDirective, never>;
|
13
14
|
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxCollapsibleContentDirective, "[rdxCollapsibleContent]", never, {}, {}, never, never, true, never>;
|
14
15
|
}
|