@radix-ng/primitives 0.14.0 → 0.15.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/alert-dialog/index.d.ts +11 -0
- package/alert-dialog/src/alert-dialog-cancel.directive.d.ts +3 -3
- package/alert-dialog/src/alert-dialog-content.directive.d.ts +3 -3
- package/alert-dialog/src/alert-dialog-root.directive.d.ts +3 -3
- package/alert-dialog/src/alert-dialog-title.directive.d.ts +3 -3
- package/alert-dialog/src/alert-dialog-trigger.directive.d.ts +3 -3
- package/alert-dialog/src/alert-dialog.service.d.ts +3 -3
- package/aspect-ratio/README.md +1 -0
- package/aspect-ratio/index.d.ts +1 -0
- package/aspect-ratio/src/aspect-ratio.directive.d.ts +28 -0
- package/compodoc/documentation.json +878 -292
- package/core/index.d.ts +6 -0
- package/core/src/accessor/provide-value-accessor.d.ts +12 -0
- package/core/src/auto-focus.directive.d.ts +14 -0
- package/core/src/document.d.ts +1 -0
- package/core/src/inject-ng-control.d.ts +8 -0
- package/core/src/is-client.d.ts +1 -0
- package/core/src/window.d.ts +3 -0
- package/esm2022/alert-dialog/index.mjs +35 -1
- package/esm2022/alert-dialog/src/alert-dialog-cancel.directive.mjs +7 -7
- package/esm2022/alert-dialog/src/alert-dialog-content.directive.mjs +7 -7
- package/esm2022/alert-dialog/src/alert-dialog-root.directive.mjs +7 -7
- package/esm2022/alert-dialog/src/alert-dialog-title.directive.mjs +5 -5
- package/esm2022/alert-dialog/src/alert-dialog-trigger.directive.mjs +7 -7
- package/esm2022/alert-dialog/src/alert-dialog.service.mjs +5 -5
- package/esm2022/aspect-ratio/index.mjs +2 -0
- package/esm2022/aspect-ratio/radix-ng-primitives-aspect-ratio.mjs +5 -0
- package/esm2022/aspect-ratio/src/aspect-ratio.directive.mjs +53 -0
- package/esm2022/core/index.mjs +7 -0
- package/esm2022/core/radix-ng-primitives-core.mjs +5 -0
- package/esm2022/core/src/accessor/provide-value-accessor.mjs +19 -0
- package/esm2022/core/src/auto-focus.directive.mjs +80 -0
- package/esm2022/core/src/document.mjs +6 -0
- package/esm2022/core/src/inject-ng-control.mjs +17 -0
- package/esm2022/core/src/is-client.mjs +6 -0
- package/esm2022/core/src/window.mjs +15 -0
- package/esm2022/separator/src/separator.directive.mjs +33 -15
- package/esm2022/visually-hidden/index.mjs +4 -0
- package/esm2022/visually-hidden/radix-ng-primitives-visually-hidden.mjs +5 -0
- package/esm2022/visually-hidden/src/visually-hidden-input-bubble.directive.mjs +74 -0
- package/esm2022/visually-hidden/src/visually-hidden-input.directive.mjs +74 -0
- package/esm2022/visually-hidden/src/visually-hidden.directive.mjs +42 -0
- package/fesm2022/radix-ng-primitives-alert-dialog.mjs +59 -31
- package/fesm2022/radix-ng-primitives-alert-dialog.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-aspect-ratio.mjs +60 -0
- package/fesm2022/radix-ng-primitives-aspect-ratio.mjs.map +1 -0
- package/fesm2022/radix-ng-primitives-core.mjs +144 -0
- package/fesm2022/radix-ng-primitives-core.mjs.map +1 -0
- package/fesm2022/radix-ng-primitives-separator.mjs +32 -14
- package/fesm2022/radix-ng-primitives-separator.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-visually-hidden.mjs +189 -0
- package/fesm2022/radix-ng-primitives-visually-hidden.mjs.map +1 -0
- package/package.json +19 -1
- package/separator/src/separator.directive.d.ts +29 -5
- package/visually-hidden/README.md +3 -0
- package/visually-hidden/index.d.ts +3 -0
- package/visually-hidden/src/visually-hidden-input-bubble.directive.d.ts +21 -0
- package/visually-hidden/src/visually-hidden-input.directive.d.ts +19 -0
- package/visually-hidden/src/visually-hidden.directive.d.ts +15 -0
@@ -1,3 +1,4 @@
|
|
1
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
1
2
|
import * as i0 from "@angular/core";
|
2
3
|
declare const ORIENTATIONS: readonly ["horizontal", "vertical"];
|
3
4
|
export type Orientation = (typeof ORIENTATIONS)[number];
|
@@ -12,11 +13,34 @@ export interface SeparatorProps {
|
|
12
13
|
*/
|
13
14
|
decorative?: boolean;
|
14
15
|
}
|
15
|
-
|
16
|
-
|
17
|
-
|
16
|
+
/**
|
17
|
+
* Directive that adds accessible and configurable separator element to the DOM.
|
18
|
+
* This can be either horizontal or vertical and optionally decorative (which removes
|
19
|
+
* it from the accessibility tree).
|
20
|
+
*/
|
21
|
+
export declare class RdxSeparatorRootDirective {
|
22
|
+
/**
|
23
|
+
* Orientation of the separator, can be either 'horizontal' or 'vertical'.
|
24
|
+
* Defaults to 'horizontal'.
|
25
|
+
*/
|
26
|
+
readonly orientation: import("@angular/core").InputSignal<"horizontal" | "vertical">;
|
27
|
+
/**
|
28
|
+
* If true, the separator will be considered decorative and removed from
|
29
|
+
* the accessibility tree. Defaults to false.
|
30
|
+
*/
|
31
|
+
readonly decorative: import("@angular/core").InputSignalWithTransform<boolean, BooleanInput>;
|
32
|
+
/**
|
33
|
+
* Computes the `role` attribute for the separator. If `decorative` is true,
|
34
|
+
* the role is set to "none", otherwise it is "separator".
|
35
|
+
*/
|
36
|
+
protected readonly computedRole: import("@angular/core").Signal<"none" | "separator">;
|
37
|
+
/**
|
38
|
+
* Computes the `aria-orientation` attribute. It is set to "vertical" only if
|
39
|
+
* the separator is not decorative and the orientation is set to "vertical".
|
40
|
+
* For horizontal orientation, the attribute is omitted.
|
41
|
+
*/
|
42
|
+
protected readonly computedAriaOrientation: import("@angular/core").Signal<"vertical" | null>;
|
18
43
|
static ɵfac: i0.ɵɵFactoryDeclaration<RdxSeparatorRootDirective, never>;
|
19
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxSeparatorRootDirective, "div[rdxSeparatorRoot]", never, { "orientation": { "alias": "orientation"; "required": false; }; "decorative": { "alias": "decorative"; "required": false; }; }, {}, never, never, true, never>;
|
20
|
-
static ngAcceptInputType_decorative: unknown;
|
44
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxSeparatorRootDirective, "div[rdxSeparatorRoot]", never, { "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "decorative": { "alias": "decorative"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
21
45
|
}
|
22
46
|
export {};
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "./visually-hidden.directive";
|
3
|
+
/**
|
4
|
+
*
|
5
|
+
*/
|
6
|
+
export declare class RdxVisuallyHiddenInputBubbleDirective<T> {
|
7
|
+
private readonly elementRef;
|
8
|
+
readonly name: import("@angular/core").InputSignal<string>;
|
9
|
+
readonly value: import("@angular/core").InputSignal<T | null>;
|
10
|
+
readonly checked: import("@angular/core").InputSignal<boolean | undefined>;
|
11
|
+
readonly required: import("@angular/core").InputSignal<boolean | undefined>;
|
12
|
+
readonly disabled: import("@angular/core").InputSignal<boolean | undefined>;
|
13
|
+
readonly feature: import("@angular/core").InputSignal<string>;
|
14
|
+
constructor();
|
15
|
+
protected onChange(): void;
|
16
|
+
private updateInputValue;
|
17
|
+
private get inputElement();
|
18
|
+
private dispatchInputEvents;
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RdxVisuallyHiddenInputBubbleDirective<any>, never>;
|
20
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxVisuallyHiddenInputBubbleDirective<any>, "[rdxVisuallyHiddenInputBubble]", never, { "name": { "alias": "name"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "feature": { "alias": "feature"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.RdxVisuallyHiddenDirective; inputs: { "feature": "feature"; }; outputs: {}; }]>;
|
21
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { OnInit } from '@angular/core';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
import * as i1 from "./visually-hidden-input-bubble.directive";
|
4
|
+
export declare class RdxVisuallyHiddenInputDirective<T> implements OnInit {
|
5
|
+
private readonly elementRef;
|
6
|
+
readonly name: import("@angular/core").InputSignal<string>;
|
7
|
+
readonly value: import("@angular/core").InputSignal<T | null>;
|
8
|
+
readonly checked: import("@angular/core").InputSignal<boolean | undefined>;
|
9
|
+
readonly required: import("@angular/core").InputSignal<boolean | undefined>;
|
10
|
+
readonly disabled: import("@angular/core").InputSignal<boolean | undefined>;
|
11
|
+
readonly feature: import("@angular/core").InputSignal<"focusable" | "fully-hidden">;
|
12
|
+
readonly parsedValue: import("@angular/core").Signal<{
|
13
|
+
name: string;
|
14
|
+
value: any;
|
15
|
+
}[]>;
|
16
|
+
ngOnInit(): void;
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RdxVisuallyHiddenInputDirective<any>, never>;
|
18
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxVisuallyHiddenInputDirective<any>, "[rdxVisuallyHiddenInput]", never, { "name": { "alias": "name"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "feature": { "alias": "feature"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.RdxVisuallyHiddenInputBubbleDirective; inputs: { "feature": "feature"; "name": "name"; "value": "value"; "checked": "checked"; "disabled": "disabled"; "required": "required"; }; outputs: {}; }]>;
|
19
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
/**
|
3
|
+
*
|
4
|
+
* <span rdxVisuallyHidden [feature]="'fully-hidden'">
|
5
|
+
* <ng-content></ng-content>
|
6
|
+
* </span>
|
7
|
+
*
|
8
|
+
* <button (click)="directiveInstance.feature.set('focusable')">Make Focusable</button>
|
9
|
+
* <button (click)="directiveInstance.feature.set('fully-hidden')">Hide</button>
|
10
|
+
*/
|
11
|
+
export declare class RdxVisuallyHiddenDirective {
|
12
|
+
readonly feature: import("@angular/core").InputSignal<"focusable" | "fully-hidden">;
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RdxVisuallyHiddenDirective, never>;
|
14
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxVisuallyHiddenDirective, "[rdxVisuallyHidden]", never, { "feature": { "alias": "feature"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
15
|
+
}
|