@radix-ng/primitives 0.29.0 → 0.30.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/checkbox/src/checkbox.directive.d.ts +11 -0
- package/core/index.d.ts +2 -0
- package/core/src/isNumber.d.ts +1 -0
- package/core/src/nullish.d.ts +1 -0
- package/dialog/src/dialog.config.d.ts +1 -0
- package/fesm2022/radix-ng-primitives-accordion.mjs +20 -20
- package/fesm2022/radix-ng-primitives-alert-dialog.mjs +22 -22
- package/fesm2022/radix-ng-primitives-aspect-ratio.mjs +3 -3
- package/fesm2022/radix-ng-primitives-avatar.mjs +16 -16
- package/fesm2022/radix-ng-primitives-checkbox.mjs +28 -17
- package/fesm2022/radix-ng-primitives-checkbox.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-collapsible.mjs +10 -10
- package/fesm2022/radix-ng-primitives-context-menu.mjs +36 -36
- package/fesm2022/radix-ng-primitives-core.mjs +14 -8
- package/fesm2022/radix-ng-primitives-core.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-dialog.mjs +40 -38
- package/fesm2022/radix-ng-primitives-dialog.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-dropdown-menu.mjs +35 -35
- package/fesm2022/radix-ng-primitives-hover-card.mjs +30 -33
- package/fesm2022/radix-ng-primitives-hover-card.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-label.mjs +3 -3
- package/fesm2022/radix-ng-primitives-menu.mjs +429 -62
- package/fesm2022/radix-ng-primitives-menu.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-menubar.mjs +87 -139
- package/fesm2022/radix-ng-primitives-menubar.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-popover.mjs +30 -33
- package/fesm2022/radix-ng-primitives-popover.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-progress.mjs +68 -90
- package/fesm2022/radix-ng-primitives-progress.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-radio.mjs +13 -13
- package/fesm2022/radix-ng-primitives-roving-focus.mjs +7 -7
- package/fesm2022/radix-ng-primitives-select.mjs +36 -36
- package/fesm2022/radix-ng-primitives-separator.mjs +3 -3
- package/fesm2022/radix-ng-primitives-slider.mjs +32 -32
- package/fesm2022/radix-ng-primitives-switch.mjs +13 -13
- package/fesm2022/radix-ng-primitives-tabs.mjs +16 -16
- package/fesm2022/radix-ng-primitives-toggle-group.mjs +9 -9
- package/fesm2022/radix-ng-primitives-toggle.mjs +6 -6
- package/fesm2022/radix-ng-primitives-toolbar.mjs +22 -22
- package/fesm2022/radix-ng-primitives-tooltip.mjs +30 -33
- package/fesm2022/radix-ng-primitives-tooltip.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-visually-hidden.mjs +9 -9
- package/hover-card/src/hover-card-root.directive.d.ts +4 -4
- package/menu/index.d.ts +20 -9
- package/menu/src/menu-content.directive.d.ts +1 -1
- package/menu/src/menu-directive.d.ts +1 -1
- package/menu/src/menu-group.directive.d.ts +1 -1
- package/menu/src/menu-item-checkbox.directive.d.ts +21 -0
- package/menu/src/menu-item-indicator.directive.d.ts +10 -0
- package/menu/src/menu-item-radio.directive.d.ts +20 -0
- package/menu/src/menu-item.directive.d.ts +8 -2
- package/menu/src/menu-label.directive.d.ts +1 -1
- package/menu/src/menu-radio-group.directive.d.ts +6 -0
- package/menu/src/menu-separator.directive.d.ts +1 -2
- package/menu/src/menu-trigger.directive.d.ts +35 -0
- package/menu/src/utils.d.ts +3 -0
- package/menubar/index.d.ts +1 -1
- package/menubar/src/menubar-content.directive.d.ts +2 -2
- package/menubar/src/menubar-item-checkbox.directive.d.ts +2 -10
- package/menubar/src/menubar-item-indicator.directive.d.ts +2 -1
- package/menubar/src/menubar-item-radio.directive.d.ts +2 -10
- package/menubar/src/menubar-item.directive.d.ts +1 -3
- package/menubar/src/menubar-radio-group.directive.d.ts +1 -1
- package/menubar/src/menubar-root.directive.d.ts +3 -4
- package/menubar/src/menubar-separator.directive.d.ts +1 -1
- package/menubar/src/menubar-trigger.directive.d.ts +2 -7
- package/package.json +9 -133
- package/popover/src/popover-root.directive.d.ts +4 -4
- package/progress/src/progress-root.directive.d.ts +19 -33
- package/schematics/collection.json +2 -3
- package/schematics/ng-add/index.d.ts +1 -2
- package/schematics/ng-add/index.js +48 -18
- package/schematics/ng-add/index.js.map +1 -1
- package/schematics/ng-add/package-config.d.ts +18 -0
- package/schematics/ng-add/package-config.js +51 -0
- package/schematics/ng-add/package-config.js.map +1 -0
- package/tooltip/src/tooltip-root.directive.d.ts +4 -4
- package/schematics/ng-add/schema.d.ts +0 -3
- package/schematics/ng-add/schema.js +0 -3
- package/schematics/ng-add/schema.js.map +0 -1
@@ -2,5 +2,5 @@ import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "@angular/cdk/menu";
|
3
3
|
export declare class RdxMenuDirective {
|
4
4
|
static ɵfac: i0.ɵɵFactoryDeclaration<RdxMenuDirective, never>;
|
5
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxMenuDirective, "[
|
5
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxMenuDirective, "[RdxMenuRoot],[RdxMenuSub]", never, {}, {}, never, never, true, [{ directive: typeof i1.CdkMenu; inputs: {}; outputs: {}; }]>;
|
6
6
|
}
|
@@ -2,5 +2,5 @@ import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "@angular/cdk/menu";
|
3
3
|
export declare class RdxMenuGroupDirective {
|
4
4
|
static ɵfac: i0.ɵɵFactoryDeclaration<RdxMenuGroupDirective, never>;
|
5
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxMenuGroupDirective, "[
|
5
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxMenuGroupDirective, "[RdxMenuGroup]", never, {}, {}, never, never, true, [{ directive: typeof i1.CdkMenuGroup; inputs: {}; outputs: {}; }]>;
|
6
6
|
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
2
|
+
import { getCheckedState, isIndeterminate } from './utils';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
import * as i1 from "@angular/cdk/menu";
|
5
|
+
export declare class RdxMenuItemCheckboxDirective {
|
6
|
+
private readonly cdkMenuItemCheckbox;
|
7
|
+
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, BooleanInput>;
|
8
|
+
readonly checked: import("@angular/core").InputSignal<boolean | "indeterminate">;
|
9
|
+
readonly onCheckedChange: import("@angular/core").OutputRef<void>;
|
10
|
+
protected readonly disabledState: import("@angular/core").Signal<import("@angular/core").InputSignalWithTransform<boolean, BooleanInput>>;
|
11
|
+
protected readonly highlightedState: import("@angular/core").Signal<boolean>;
|
12
|
+
private readonly isFocused;
|
13
|
+
constructor();
|
14
|
+
onFocus(): void;
|
15
|
+
onBlur(): void;
|
16
|
+
onPointerMove(event: PointerEvent): void;
|
17
|
+
protected readonly isIndeterminate: typeof isIndeterminate;
|
18
|
+
protected readonly getCheckedState: typeof getCheckedState;
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RdxMenuItemCheckboxDirective, never>;
|
20
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxMenuItemCheckboxDirective, "[RdxMenuItemCheckbox]", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "checked": { "alias": "checked"; "required": false; "isSignal": true; }; }, { "onCheckedChange": "onCheckedChange"; }, never, never, true, [{ directive: typeof i1.CdkMenuItemCheckbox; inputs: {}; outputs: { "cdkMenuItemTriggered": "menuItemTriggered"; }; }]>;
|
21
|
+
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { getCheckedState } from './utils';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
export declare class RdxMenuItemIndicatorDirective {
|
4
|
+
private readonly menuItemRadio;
|
5
|
+
private readonly menuCheckboxItem;
|
6
|
+
get isChecked(): boolean;
|
7
|
+
protected readonly getCheckedState: typeof getCheckedState;
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RdxMenuItemIndicatorDirective, never>;
|
9
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxMenuItemIndicatorDirective, "[RdxMenuItemIndicator]", never, {}, {}, never, never, true, never>;
|
10
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
2
|
+
import { getCheckedState } from './utils';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
import * as i1 from "@angular/cdk/menu";
|
5
|
+
export declare class RdxMenuItemRadioDirective {
|
6
|
+
private readonly cdkMenuItemRadio;
|
7
|
+
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, BooleanInput>;
|
8
|
+
readonly checked: import("@angular/core").InputSignalWithTransform<boolean, BooleanInput>;
|
9
|
+
readonly onValueChange: import("@angular/core").OutputRef<void>;
|
10
|
+
protected readonly disabledState: import("@angular/core").Signal<boolean>;
|
11
|
+
protected readonly highlightedState: import("@angular/core").Signal<boolean>;
|
12
|
+
private readonly isFocused;
|
13
|
+
constructor();
|
14
|
+
onFocus(): void;
|
15
|
+
onBlur(): void;
|
16
|
+
onPointerMove(event: PointerEvent): void;
|
17
|
+
protected readonly getCheckedState: typeof getCheckedState;
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RdxMenuItemRadioDirective, never>;
|
19
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxMenuItemRadioDirective, "[RdxMenuItemRadio]", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "checked": { "alias": "checked"; "required": false; "isSignal": true; }; }, { "onValueChange": "onValueChange"; }, never, never, true, [{ directive: typeof i1.CdkMenuItemRadio; inputs: {}; outputs: { "cdkMenuItemTriggered": "menuItemTriggered"; }; }]>;
|
20
|
+
}
|
@@ -4,9 +4,15 @@ import * as i1 from "@angular/cdk/menu";
|
|
4
4
|
export declare class RdxMenuItemDirective {
|
5
5
|
private readonly cdkMenuItem;
|
6
6
|
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, BooleanInput>;
|
7
|
+
readonly onSelect: import("@angular/core").OutputRef<void>;
|
8
|
+
private readonly isFocused;
|
7
9
|
protected readonly disabledState: import("@angular/core").Signal<boolean>;
|
8
|
-
|
10
|
+
protected readonly isOpenState: import("@angular/core").WritableSignal<boolean>;
|
11
|
+
protected readonly highlightedState: import("@angular/core").Signal<boolean>;
|
9
12
|
constructor();
|
13
|
+
onFocus(): void;
|
14
|
+
onBlur(): void;
|
15
|
+
onPointerMove(event: PointerEvent): void;
|
10
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<RdxMenuItemDirective, never>;
|
11
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxMenuItemDirective, "[
|
17
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxMenuItemDirective, "[RdxMenuItem]", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "onSelect": "onSelect"; }, never, never, true, [{ directive: typeof i1.CdkMenuItem; inputs: {}; outputs: { "cdkMenuItemTriggered": "menuItemTriggered"; }; }]>;
|
12
18
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as i0 from "@angular/core";
|
2
2
|
export declare class RdxMenuLabelDirective {
|
3
3
|
static ɵfac: i0.ɵɵFactoryDeclaration<RdxMenuLabelDirective, never>;
|
4
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxMenuLabelDirective, "
|
4
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxMenuLabelDirective, "[RdxMenuLabel]", never, {}, {}, never, never, true, never>;
|
5
5
|
}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "@angular/cdk/menu";
|
3
|
+
export declare class RdxMenuRadioGroupDirective {
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RdxMenuRadioGroupDirective, never>;
|
5
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxMenuRadioGroupDirective, "[RdxMenuRadioGroup]", never, {}, {}, never, never, true, [{ directive: typeof i1.CdkMenuGroup; inputs: {}; outputs: {}; }]>;
|
6
|
+
}
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import * as i0 from "@angular/core";
|
2
|
-
import * as i1 from "@radix-ng/primitives/separator";
|
3
2
|
export declare class RdxMenuSeparatorDirective {
|
4
3
|
static ɵfac: i0.ɵɵFactoryDeclaration<RdxMenuSeparatorDirective, never>;
|
5
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxMenuSeparatorDirective, "[
|
4
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxMenuSeparatorDirective, "[RdxMenuSeparator]", never, {}, {}, never, never, true, never>;
|
6
5
|
}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import { BooleanInput, NumberInput } from '@angular/cdk/coercion';
|
2
|
+
import { CdkMenuTrigger } from '@angular/cdk/menu';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
import * as i1 from "@angular/cdk/menu";
|
5
|
+
export type RdxMenuAlign = 'start' | 'center' | 'end';
|
6
|
+
export type RdxMenuSide = 'top' | 'right' | 'bottom' | 'left';
|
7
|
+
export declare class RdxMenuTriggerDirective {
|
8
|
+
protected readonly cdkTrigger: CdkMenuTrigger;
|
9
|
+
readonly menuTriggerFor: import("@angular/core").InputSignal<unknown>;
|
10
|
+
/**
|
11
|
+
* @description The preferred side of the trigger to render against when open. Will be reversed when collisions occur and avoidCollisions is enabled.
|
12
|
+
*/
|
13
|
+
readonly side: import("@angular/core").InputSignal<RdxMenuSide | undefined>;
|
14
|
+
readonly align: import("@angular/core").InputSignal<RdxMenuAlign | undefined>;
|
15
|
+
/**
|
16
|
+
* @description The distance in pixels from the trigger.
|
17
|
+
*/
|
18
|
+
readonly sideOffset: import("@angular/core").InputSignalWithTransform<number, NumberInput>;
|
19
|
+
/**
|
20
|
+
* @description An offset in pixels from the "start" or "end" alignment options.
|
21
|
+
*/
|
22
|
+
readonly alignOffset: import("@angular/core").InputSignalWithTransform<number, NumberInput>;
|
23
|
+
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, BooleanInput>;
|
24
|
+
private enablePositions;
|
25
|
+
private readonly positions;
|
26
|
+
private computePositions;
|
27
|
+
constructor();
|
28
|
+
/** @ignore */
|
29
|
+
onPointerDown($event: MouseEvent): void;
|
30
|
+
private onMenuPositionEffect;
|
31
|
+
private setMenuPositions;
|
32
|
+
private fireNgOnChanges;
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RdxMenuTriggerDirective, never>;
|
34
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxMenuTriggerDirective, "[RdxMenuTrigger]", never, { "menuTriggerFor": { "alias": "menuTriggerFor"; "required": true; "isSignal": true; }; "side": { "alias": "side"; "required": false; "isSignal": true; }; "align": { "alias": "align"; "required": false; "isSignal": true; }; "sideOffset": { "alias": "sideOffset"; "required": false; "isSignal": true; }; "alignOffset": { "alias": "alignOffset"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.CdkMenuTrigger; inputs: { "cdkMenuTriggerFor": "menuTriggerFor"; "cdkMenuPosition": "menuPosition"; }; outputs: {}; }]>;
|
35
|
+
}
|
package/menubar/index.d.ts
CHANGED
@@ -19,6 +19,6 @@ export * from './src/menubar-separator.directive';
|
|
19
19
|
export * from './src/menubar-trigger.directive';
|
20
20
|
export declare class MenubarModule {
|
21
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<MenubarModule, never>;
|
22
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MenubarModule, never, [typeof i1.RdxMenuBarContentDirective, typeof i2.RdxMenuBarTriggerDirective, typeof i3.RdxMenubarSeparatorDirective, typeof i4.RdxMenubarItemCheckboxDirective, typeof i5.
|
22
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MenubarModule, never, [typeof i1.RdxMenuBarContentDirective, typeof i2.RdxMenuBarTriggerDirective, typeof i3.RdxMenubarSeparatorDirective, typeof i4.RdxMenubarItemCheckboxDirective, typeof i5.RdxMenuBarRootDirective, typeof i6.RdxMenuBarItemDirective, typeof i7.RdxMenubarItemIndicatorDirective, typeof i8.RdxMenubarItemRadioDirective, typeof i9.RdxMenubarRadioGroupDirective], [typeof i1.RdxMenuBarContentDirective, typeof i2.RdxMenuBarTriggerDirective, typeof i3.RdxMenubarSeparatorDirective, typeof i4.RdxMenubarItemCheckboxDirective, typeof i5.RdxMenuBarRootDirective, typeof i6.RdxMenuBarItemDirective, typeof i7.RdxMenubarItemIndicatorDirective, typeof i8.RdxMenubarItemRadioDirective, typeof i9.RdxMenubarRadioGroupDirective]>;
|
23
23
|
static ɵinj: i0.ɵɵInjectorDeclaration<MenubarModule>;
|
24
24
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as i0 from "@angular/core";
|
2
|
-
import * as i1 from "@
|
2
|
+
import * as i1 from "@radix-ng/primitives/menu";
|
3
3
|
export declare class RdxMenuBarContentDirective {
|
4
4
|
static ɵfac: i0.ɵɵFactoryDeclaration<RdxMenuBarContentDirective, never>;
|
5
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxMenuBarContentDirective, "[
|
5
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxMenuBarContentDirective, "[RdxMenuBarContent]", never, {}, {}, never, never, true, [{ directive: typeof i1.RdxMenuContentDirective; inputs: {}; outputs: {}; }]>;
|
6
6
|
}
|
@@ -1,14 +1,6 @@
|
|
1
|
-
import { BooleanInput } from '@angular/cdk/coercion';
|
2
1
|
import * as i0 from "@angular/core";
|
3
|
-
import * as i1 from "@
|
2
|
+
import * as i1 from "@radix-ng/primitives/menu";
|
4
3
|
export declare class RdxMenubarItemCheckboxDirective {
|
5
|
-
private readonly cdkMenuItemCheckbox;
|
6
|
-
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, BooleanInput>;
|
7
|
-
readonly checked: import("@angular/core").InputSignalWithTransform<boolean, BooleanInput>;
|
8
|
-
protected readonly disabledState: import("@angular/core").Signal<import("@angular/core").InputSignalWithTransform<boolean, BooleanInput>>;
|
9
|
-
protected readonly checked$: import("@angular/core").WritableSignal<boolean>;
|
10
|
-
protected readonly disabled$: import("@angular/core").WritableSignal<boolean>;
|
11
|
-
constructor();
|
12
4
|
static ɵfac: i0.ɵɵFactoryDeclaration<RdxMenubarItemCheckboxDirective, never>;
|
13
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxMenubarItemCheckboxDirective, "[
|
5
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxMenubarItemCheckboxDirective, "[RdxMenuBarCheckboxItem]", never, {}, {}, never, never, true, [{ directive: typeof i1.RdxMenuItemCheckboxDirective; inputs: { "checked": "checked"; "disabled": "disabled"; }; outputs: {}; }]>;
|
14
6
|
}
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "@radix-ng/primitives/menu";
|
2
3
|
export declare class RdxMenubarItemIndicatorDirective {
|
3
4
|
static ɵfac: i0.ɵɵFactoryDeclaration<RdxMenubarItemIndicatorDirective, never>;
|
4
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxMenubarItemIndicatorDirective, "[
|
5
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxMenubarItemIndicatorDirective, "[RdxMenuBarItemIndicator]", never, {}, {}, never, never, true, [{ directive: typeof i1.RdxMenuItemIndicatorDirective; inputs: {}; outputs: {}; }]>;
|
5
6
|
}
|
@@ -1,14 +1,6 @@
|
|
1
|
-
import { BooleanInput } from '@angular/cdk/coercion';
|
2
1
|
import * as i0 from "@angular/core";
|
3
|
-
import * as i1 from "@
|
2
|
+
import * as i1 from "@radix-ng/primitives/menu";
|
4
3
|
export declare class RdxMenubarItemRadioDirective {
|
5
|
-
private readonly cdkMenuItemRadio;
|
6
|
-
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, BooleanInput>;
|
7
|
-
readonly checked: import("@angular/core").InputSignalWithTransform<boolean, BooleanInput>;
|
8
|
-
protected readonly disabledState: import("@angular/core").Signal<import("@angular/core").InputSignalWithTransform<boolean, BooleanInput>>;
|
9
|
-
protected readonly checked$: import("@angular/core").WritableSignal<boolean>;
|
10
|
-
protected readonly disabled$: import("@angular/core").WritableSignal<boolean>;
|
11
|
-
constructor();
|
12
4
|
static ɵfac: i0.ɵɵFactoryDeclaration<RdxMenubarItemRadioDirective, never>;
|
13
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxMenubarItemRadioDirective, "[
|
5
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxMenubarItemRadioDirective, "[RdxMenuBarItemRadio]", never, {}, {}, never, never, true, [{ directive: typeof i1.RdxMenuItemRadioDirective; inputs: { "disabled": "disabled"; "checked": "checked"; }; outputs: {}; }]>;
|
14
6
|
}
|
@@ -1,8 +1,6 @@
|
|
1
|
-
import { BooleanInput } from '@angular/cdk/coercion';
|
2
1
|
import * as i0 from "@angular/core";
|
3
2
|
import * as i1 from "@radix-ng/primitives/menu";
|
4
3
|
export declare class RdxMenuBarItemDirective {
|
5
|
-
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, BooleanInput>;
|
6
4
|
static ɵfac: i0.ɵɵFactoryDeclaration<RdxMenuBarItemDirective, never>;
|
7
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxMenuBarItemDirective, "[
|
5
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxMenuBarItemDirective, "[RdxMenuBarItem]", never, {}, {}, never, never, true, [{ directive: typeof i1.RdxMenuItemDirective; inputs: { "disabled": "disabled"; }; outputs: { "onSelect": "onSelect"; }; }]>;
|
8
6
|
}
|
@@ -2,5 +2,5 @@ import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "@angular/cdk/menu";
|
3
3
|
export declare class RdxMenubarRadioGroupDirective {
|
4
4
|
static ɵfac: i0.ɵɵFactoryDeclaration<RdxMenubarRadioGroupDirective, never>;
|
5
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxMenubarRadioGroupDirective, "[
|
5
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxMenubarRadioGroupDirective, "[RdxMenuBarRadioGroup]", never, {}, {}, never, never, true, [{ directive: typeof i1.CdkMenuGroup; inputs: {}; outputs: {}; }]>;
|
6
6
|
}
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import * as i0 from "@angular/core";
|
2
2
|
import * as i1 from "@angular/cdk/menu";
|
3
|
-
export declare class
|
4
|
-
|
5
|
-
static
|
6
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxMenuBarDirective, "[MenuBarRoot]", never, { "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.CdkMenuBar; inputs: {}; outputs: {}; }]>;
|
3
|
+
export declare class RdxMenuBarRootDirective {
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RdxMenuBarRootDirective, never>;
|
5
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxMenuBarRootDirective, "[RdxMenuBarRoot]", never, {}, {}, never, never, true, [{ directive: typeof i1.CdkMenuBar; inputs: {}; outputs: {}; }]>;
|
7
6
|
}
|
@@ -2,5 +2,5 @@ import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "@radix-ng/primitives/menu";
|
3
3
|
export declare class RdxMenubarSeparatorDirective {
|
4
4
|
static ɵfac: i0.ɵɵFactoryDeclaration<RdxMenubarSeparatorDirective, never>;
|
5
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxMenubarSeparatorDirective, "[
|
5
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxMenubarSeparatorDirective, "[RdxMenuBarSeparator]", never, {}, {}, never, never, true, [{ directive: typeof i1.RdxMenuSeparatorDirective; inputs: {}; outputs: {}; }]>;
|
6
6
|
}
|
@@ -1,11 +1,6 @@
|
|
1
|
-
import { BooleanInput } from '@angular/cdk/coercion';
|
2
|
-
import { CdkMenuTrigger } from '@angular/cdk/menu';
|
3
1
|
import * as i0 from "@angular/core";
|
4
|
-
import * as i1 from "@
|
2
|
+
import * as i1 from "@radix-ng/primitives/menu";
|
5
3
|
export declare class RdxMenuBarTriggerDirective {
|
6
|
-
protected readonly cdkTrigger: CdkMenuTrigger;
|
7
|
-
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, BooleanInput>;
|
8
|
-
onPointerDown($event: MouseEvent): void;
|
9
4
|
static ɵfac: i0.ɵɵFactoryDeclaration<RdxMenuBarTriggerDirective, never>;
|
10
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxMenuBarTriggerDirective, "[
|
5
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxMenuBarTriggerDirective, "[RdxMenuBarTrigger]", never, {}, {}, never, never, true, [{ directive: typeof i1.RdxMenuTriggerDirective; inputs: { "disabled": "disabled"; "menuTriggerFor": "menuTriggerFor"; "sideOffset": "sideOffset"; "side": "side"; "align": "align"; "alignOffset": "alignOffset"; }; outputs: {}; }]>;
|
11
6
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@radix-ng/primitives",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.30.0",
|
4
4
|
"license": "MIT",
|
5
5
|
"publishConfig": {
|
6
6
|
"access": "public"
|
@@ -18,139 +18,15 @@
|
|
18
18
|
"headless"
|
19
19
|
],
|
20
20
|
"peerDependencies": {
|
21
|
-
"@angular/core": "^19.
|
22
|
-
"@angular/cdk": "^19.
|
21
|
+
"@angular/core": "^19.1.0",
|
22
|
+
"@angular/cdk": "^19.1.0"
|
23
|
+
},
|
24
|
+
"devDependencies": {
|
25
|
+
"@angular-devkit/schematics": "^19.1.0"
|
23
26
|
},
|
24
27
|
"schematics": "./schematics/collection.json",
|
25
28
|
"sideEffects": false,
|
26
|
-
"
|
27
|
-
"
|
28
|
-
"
|
29
|
-
"./package.json": {
|
30
|
-
"default": "./package.json"
|
31
|
-
},
|
32
|
-
".": {
|
33
|
-
"types": "./index.d.ts",
|
34
|
-
"default": "./fesm2022/radix-ng-primitives.mjs"
|
35
|
-
},
|
36
|
-
"./accordion": {
|
37
|
-
"types": "./accordion/index.d.ts",
|
38
|
-
"default": "./fesm2022/radix-ng-primitives-accordion.mjs"
|
39
|
-
},
|
40
|
-
"./alert-dialog": {
|
41
|
-
"types": "./alert-dialog/index.d.ts",
|
42
|
-
"default": "./fesm2022/radix-ng-primitives-alert-dialog.mjs"
|
43
|
-
},
|
44
|
-
"./aspect-ratio": {
|
45
|
-
"types": "./aspect-ratio/index.d.ts",
|
46
|
-
"default": "./fesm2022/radix-ng-primitives-aspect-ratio.mjs"
|
47
|
-
},
|
48
|
-
"./avatar": {
|
49
|
-
"types": "./avatar/index.d.ts",
|
50
|
-
"default": "./fesm2022/radix-ng-primitives-avatar.mjs"
|
51
|
-
},
|
52
|
-
"./checkbox": {
|
53
|
-
"types": "./checkbox/index.d.ts",
|
54
|
-
"default": "./fesm2022/radix-ng-primitives-checkbox.mjs"
|
55
|
-
},
|
56
|
-
"./collapsible": {
|
57
|
-
"types": "./collapsible/index.d.ts",
|
58
|
-
"default": "./fesm2022/radix-ng-primitives-collapsible.mjs"
|
59
|
-
},
|
60
|
-
"./context-menu": {
|
61
|
-
"types": "./context-menu/index.d.ts",
|
62
|
-
"default": "./fesm2022/radix-ng-primitives-context-menu.mjs"
|
63
|
-
},
|
64
|
-
"./core": {
|
65
|
-
"types": "./core/index.d.ts",
|
66
|
-
"default": "./fesm2022/radix-ng-primitives-core.mjs"
|
67
|
-
},
|
68
|
-
"./dialog": {
|
69
|
-
"types": "./dialog/index.d.ts",
|
70
|
-
"default": "./fesm2022/radix-ng-primitives-dialog.mjs"
|
71
|
-
},
|
72
|
-
"./dropdown-menu": {
|
73
|
-
"types": "./dropdown-menu/index.d.ts",
|
74
|
-
"default": "./fesm2022/radix-ng-primitives-dropdown-menu.mjs"
|
75
|
-
},
|
76
|
-
"./hover-card": {
|
77
|
-
"types": "./hover-card/index.d.ts",
|
78
|
-
"default": "./fesm2022/radix-ng-primitives-hover-card.mjs"
|
79
|
-
},
|
80
|
-
"./label": {
|
81
|
-
"types": "./label/index.d.ts",
|
82
|
-
"default": "./fesm2022/radix-ng-primitives-label.mjs"
|
83
|
-
},
|
84
|
-
"./menu": {
|
85
|
-
"types": "./menu/index.d.ts",
|
86
|
-
"default": "./fesm2022/radix-ng-primitives-menu.mjs"
|
87
|
-
},
|
88
|
-
"./menubar": {
|
89
|
-
"types": "./menubar/index.d.ts",
|
90
|
-
"default": "./fesm2022/radix-ng-primitives-menubar.mjs"
|
91
|
-
},
|
92
|
-
"./popover": {
|
93
|
-
"types": "./popover/index.d.ts",
|
94
|
-
"default": "./fesm2022/radix-ng-primitives-popover.mjs"
|
95
|
-
},
|
96
|
-
"./presence": {
|
97
|
-
"types": "./presence/index.d.ts",
|
98
|
-
"default": "./fesm2022/radix-ng-primitives-presence.mjs"
|
99
|
-
},
|
100
|
-
"./progress": {
|
101
|
-
"types": "./progress/index.d.ts",
|
102
|
-
"default": "./fesm2022/radix-ng-primitives-progress.mjs"
|
103
|
-
},
|
104
|
-
"./radio": {
|
105
|
-
"types": "./radio/index.d.ts",
|
106
|
-
"default": "./fesm2022/radix-ng-primitives-radio.mjs"
|
107
|
-
},
|
108
|
-
"./roving-focus": {
|
109
|
-
"types": "./roving-focus/index.d.ts",
|
110
|
-
"default": "./fesm2022/radix-ng-primitives-roving-focus.mjs"
|
111
|
-
},
|
112
|
-
"./select": {
|
113
|
-
"types": "./select/index.d.ts",
|
114
|
-
"default": "./fesm2022/radix-ng-primitives-select.mjs"
|
115
|
-
},
|
116
|
-
"./separator": {
|
117
|
-
"types": "./separator/index.d.ts",
|
118
|
-
"default": "./fesm2022/radix-ng-primitives-separator.mjs"
|
119
|
-
},
|
120
|
-
"./slider": {
|
121
|
-
"types": "./slider/index.d.ts",
|
122
|
-
"default": "./fesm2022/radix-ng-primitives-slider.mjs"
|
123
|
-
},
|
124
|
-
"./tabs": {
|
125
|
-
"types": "./tabs/index.d.ts",
|
126
|
-
"default": "./fesm2022/radix-ng-primitives-tabs.mjs"
|
127
|
-
},
|
128
|
-
"./switch": {
|
129
|
-
"types": "./switch/index.d.ts",
|
130
|
-
"default": "./fesm2022/radix-ng-primitives-switch.mjs"
|
131
|
-
},
|
132
|
-
"./toggle": {
|
133
|
-
"types": "./toggle/index.d.ts",
|
134
|
-
"default": "./fesm2022/radix-ng-primitives-toggle.mjs"
|
135
|
-
},
|
136
|
-
"./toggle-group": {
|
137
|
-
"types": "./toggle-group/index.d.ts",
|
138
|
-
"default": "./fesm2022/radix-ng-primitives-toggle-group.mjs"
|
139
|
-
},
|
140
|
-
"./toolbar": {
|
141
|
-
"types": "./toolbar/index.d.ts",
|
142
|
-
"default": "./fesm2022/radix-ng-primitives-toolbar.mjs"
|
143
|
-
},
|
144
|
-
"./tooltip": {
|
145
|
-
"types": "./tooltip/index.d.ts",
|
146
|
-
"default": "./fesm2022/radix-ng-primitives-tooltip.mjs"
|
147
|
-
},
|
148
|
-
"./visually-hidden": {
|
149
|
-
"types": "./visually-hidden/index.d.ts",
|
150
|
-
"default": "./fesm2022/radix-ng-primitives-visually-hidden.mjs"
|
151
|
-
}
|
152
|
-
},
|
153
|
-
"dependencies": {
|
154
|
-
"tslib": "^2.3.0"
|
155
|
-
}
|
29
|
+
"types": "./index.d.ts",
|
30
|
+
"main": "./index.js",
|
31
|
+
"type": "commonjs"
|
156
32
|
}
|
@@ -70,7 +70,7 @@ export declare class RdxPopoverRootDirective {
|
|
70
70
|
window: Window & typeof globalThis;
|
71
71
|
primitiveConfigs?: import("./utils/types").PrimitiveConfigs;
|
72
72
|
onDestroyCallbacks: Set<() => void>;
|
73
|
-
"__#
|
73
|
+
"__#7699@#clickDomRootEventCallbacks": Set<(event: MouseEvent) => void>;
|
74
74
|
registerPrimitive<T extends object>(primitiveInstance: T): void;
|
75
75
|
deregisterPrimitive<T extends object>(primitiveInstance: T): void;
|
76
76
|
preventPrimitiveFromCdkEvent<T extends object>(primitiveInstance: T, eventType: import("./utils/types").EventType): void;
|
@@ -81,9 +81,9 @@ export declare class RdxPopoverRootDirective {
|
|
81
81
|
primitivePreventedFromCdkEvent<T extends object>(primitiveInstance: T, eventType: import("./utils/types").EventType): boolean | undefined;
|
82
82
|
addClickDomRootEventCallback(callback: (event: MouseEvent) => void): void;
|
83
83
|
removeClickDomRootEventCallback(callback: (event: MouseEvent) => void): boolean;
|
84
|
-
"__#
|
85
|
-
"__#
|
86
|
-
"__#
|
84
|
+
"__#7699@#setPreventPrimitiveFromCdkEvent"<T extends object, R extends import("./utils/types").EventType, K extends import("./utils/types").PrimitiveConfig[`prevent${Capitalize<R>}`]>(primitiveInstance: T, eventType: R, value: K): void;
|
85
|
+
"__#7699@#registerOnDestroyCallbacks"(): void;
|
86
|
+
"__#7699@#listenToClickDomRootEvent"(): void;
|
87
87
|
} | null;
|
88
88
|
/** @ignore */
|
89
89
|
readonly destroyRef: DestroyRef;
|
@@ -1,5 +1,6 @@
|
|
1
|
-
import {
|
1
|
+
import { InjectionToken } from '@angular/core';
|
2
2
|
import * as i0 from "@angular/core";
|
3
|
+
export declare const RdxProgressToken: InjectionToken<RdxProgressRootDirective>;
|
3
4
|
/**
|
4
5
|
* Injects the current instance of RdxProgressRootDirective.
|
5
6
|
* @returns The instance of RdxProgressRootDirective.
|
@@ -7,9 +8,14 @@ import * as i0 from "@angular/core";
|
|
7
8
|
export declare function injectProgress(): RdxProgressRootDirective;
|
8
9
|
export type ProgressState = 'indeterminate' | 'complete' | 'loading';
|
9
10
|
export interface ProgressProps {
|
10
|
-
value?: number | null
|
11
|
+
value?: number | null;
|
11
12
|
max?: number;
|
12
|
-
|
13
|
+
/**
|
14
|
+
* A function to get the accessible label text representing the current value in a human-readable format.
|
15
|
+
*
|
16
|
+
* If not provided, the value label will be read as the numeric value as a percentage of the max value.
|
17
|
+
*/
|
18
|
+
getValueLabel?: (value: number, max: number) => string;
|
13
19
|
}
|
14
20
|
/**
|
15
21
|
* Directive to manage progress bar state and attributes.
|
@@ -19,50 +25,30 @@ export interface ProgressProps {
|
|
19
25
|
*
|
20
26
|
* @group Components
|
21
27
|
*/
|
22
|
-
export declare class RdxProgressRootDirective
|
23
|
-
/**
|
24
|
-
* The unique ID for the progress bar.
|
25
|
-
* @default 'rdx-progress-bar-{idIterator}'
|
26
|
-
*/
|
27
|
-
id: string;
|
28
|
+
export declare class RdxProgressRootDirective {
|
28
29
|
/**
|
29
30
|
* The current value of the progress bar.
|
30
31
|
* @group Props
|
31
32
|
* @defaultValue 0
|
32
33
|
*/
|
33
|
-
value: number
|
34
|
+
readonly value: import("@angular/core").ModelSignal<number>;
|
34
35
|
/**
|
35
36
|
* The maximum value of the progress bar.
|
36
37
|
* @defaultValue 100
|
37
38
|
* @group Props
|
38
39
|
*/
|
39
|
-
max: number
|
40
|
+
readonly max: import("@angular/core").ModelSignal<number>;
|
40
41
|
/**
|
41
42
|
* Function to generate the value label.
|
42
43
|
* @group Props
|
43
44
|
*/
|
44
|
-
valueLabel: (value: number, max: number) => string
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
ngOnChanges(changes: SimpleChanges): void;
|
51
|
-
/**
|
52
|
-
* Get the state of the progress bar.
|
53
|
-
* @returns 'indeterminate' | 'loading' | 'complete'
|
54
|
-
* @ignore
|
55
|
-
*/
|
56
|
-
get state(): ProgressState;
|
57
|
-
private getProgressState;
|
45
|
+
readonly valueLabel: import("@angular/core").InputSignal<(value: number, max: number) => string>;
|
46
|
+
protected readonly label: import("@angular/core").Signal<string>;
|
47
|
+
readonly progressState: import("@angular/core").Signal<ProgressState>;
|
48
|
+
constructor();
|
49
|
+
private validateValue;
|
50
|
+
private validateMax;
|
58
51
|
private defaultGetValueLabel;
|
59
|
-
private isValidMaxNumber;
|
60
|
-
private isNumber;
|
61
|
-
private isValidValueNumber;
|
62
|
-
private getInvalidMaxError;
|
63
|
-
private getInvalidValueError;
|
64
52
|
static ɵfac: i0.ɵɵFactoryDeclaration<RdxProgressRootDirective, never>;
|
65
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxProgressRootDirective, "[rdxProgressRoot]", ["rdxProgressRoot"], { "
|
66
|
-
static ngAcceptInputType_value: unknown;
|
67
|
-
static ngAcceptInputType_max: unknown;
|
53
|
+
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>;
|
68
54
|
}
|
@@ -2,9 +2,8 @@
|
|
2
2
|
"$schema": "../node_modules/@angular-devkit/schematics/collection-schema.json",
|
3
3
|
"schematics": {
|
4
4
|
"ng-add": {
|
5
|
-
"description": "Add
|
6
|
-
"factory": "./ng-add",
|
7
|
-
"schema": "./ng-add/schema.json",
|
5
|
+
"description": "Add RadixNG to the application.",
|
6
|
+
"factory": "./ng-add/index#ngAdd",
|
8
7
|
"aliases": ["install"]
|
9
8
|
}
|
10
9
|
}
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import { Rule } from '@angular-devkit/schematics';
|
2
|
-
import { Schema } from './schema';
|
3
2
|
/**
|
4
3
|
* This is executed when `ng add @radix-ng/primitives` is run.
|
5
4
|
* It installs all dependencies in the 'package.json'.
|
6
5
|
*/
|
7
|
-
export
|
6
|
+
export declare function ngAdd(): Rule;
|