@radix-ng/primitives 0.27.0 → 0.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/collapsible/src/collapsible-content.directive.d.ts +1 -1
  2. package/collapsible/src/collapsible-root.directive.d.ts +11 -11
  3. package/dialog/src/dialog-close.directive.d.ts +1 -1
  4. package/fesm2022/radix-ng-primitives-collapsible.mjs +20 -27
  5. package/fesm2022/radix-ng-primitives-collapsible.mjs.map +1 -1
  6. package/fesm2022/radix-ng-primitives-dialog.mjs +2 -3
  7. package/fesm2022/radix-ng-primitives-dialog.mjs.map +1 -1
  8. package/fesm2022/radix-ng-primitives-presence.mjs +250 -0
  9. package/fesm2022/radix-ng-primitives-presence.mjs.map +1 -0
  10. package/fesm2022/radix-ng-primitives-separator.mjs +1 -1
  11. package/fesm2022/radix-ng-primitives-separator.mjs.map +1 -1
  12. package/fesm2022/radix-ng-primitives-slider.mjs +101 -72
  13. package/fesm2022/radix-ng-primitives-slider.mjs.map +1 -1
  14. package/fesm2022/radix-ng-primitives-toggle-group.mjs +137 -280
  15. package/fesm2022/radix-ng-primitives-toggle-group.mjs.map +1 -1
  16. package/fesm2022/radix-ng-primitives-toggle.mjs +15 -2
  17. package/fesm2022/radix-ng-primitives-toggle.mjs.map +1 -1
  18. package/fesm2022/radix-ng-primitives-toolbar.mjs +155 -0
  19. package/fesm2022/radix-ng-primitives-toolbar.mjs.map +1 -0
  20. package/hover-card/src/hover-card-root.directive.d.ts +4 -4
  21. package/package.json +17 -8
  22. package/popover/src/popover-root.directive.d.ts +4 -4
  23. package/presence/index.d.ts +4 -0
  24. package/presence/src/presence.d.ts +42 -0
  25. package/presence/src/transitions/transition.collapse.d.ts +15 -0
  26. package/presence/src/transitions/transition.toast.d.ts +3 -0
  27. package/presence/src/types.d.ts +15 -0
  28. package/presence/src/utils.d.ts +42 -0
  29. package/schematics/collection.json +11 -0
  30. package/schematics/ng-add/index.d.ts +7 -0
  31. package/schematics/ng-add/index.js +31 -0
  32. package/schematics/ng-add/index.js.map +1 -0
  33. package/schematics/ng-add/schema.d.ts +3 -0
  34. package/schematics/ng-add/schema.js +3 -0
  35. package/schematics/ng-add/schema.js.map +1 -0
  36. package/separator/src/separator.directive.d.ts +1 -1
  37. package/slider/src/slider-horizontal.component.d.ts +6 -7
  38. package/slider/src/slider-impl.directive.d.ts +6 -7
  39. package/slider/src/slider-root.component.d.ts +78 -4
  40. package/slider/src/slider-vertical.component.d.ts +6 -7
  41. package/toggle/src/toggle.directive.d.ts +14 -1
  42. package/toggle-group/index.d.ts +1 -1
  43. package/toggle-group/src/toggle-group-item.directive.d.ts +20 -28
  44. package/toggle-group/src/toggle-group-item.token.d.ts +1 -0
  45. package/toggle-group/src/toggle-group-without-focus.directive.d.ts +69 -0
  46. package/toggle-group/src/toggle-group.directive.d.ts +26 -43
  47. package/toggle-group/src/toggle-group.token.d.ts +8 -4
  48. package/toolbar/README.md +3 -0
  49. package/toolbar/index.d.ts +19 -0
  50. package/toolbar/src/toolbar-button.directive.d.ts +11 -0
  51. package/toolbar/src/toolbar-link.directive.d.ts +7 -0
  52. package/toolbar/src/toolbar-root.directive.d.ts +8 -0
  53. package/toolbar/src/toolbar-root.token.d.ts +5 -0
  54. package/toolbar/src/toolbar-separator.directive.d.ts +6 -0
  55. package/toolbar/src/toolbar-toggle-group.directive.d.ts +6 -0
  56. package/toolbar/src/toolbar-toggle-item.directive.d.ts +6 -0
  57. package/tooltip/src/tooltip-root.directive.d.ts +4 -4
  58. package/compodoc/documentation.json +0 -39701
  59. package/toggle-group/src/toggle-group-multiple.directive.d.ts +0 -99
@@ -1,5 +1,9 @@
1
1
  import { InjectionToken } from '@angular/core';
2
- import type { RdxToggleGroupMultipleDirective } from './toggle-group-multiple.directive';
3
- import type { RdxToggleGroupDirective } from './toggle-group.directive';
4
- export declare const RdxToggleGroupToken: InjectionToken<RdxToggleGroupDirective | RdxToggleGroupMultipleDirective>;
5
- export declare function injectToggleGroup(): RdxToggleGroupDirective | RdxToggleGroupMultipleDirective;
2
+ export interface IRdxToggleGroup {
3
+ toggle(value: string): void;
4
+ disabled: any;
5
+ value: any;
6
+ type: any;
7
+ }
8
+ export declare const RdxToggleGroupToken: InjectionToken<IRdxToggleGroup>;
9
+ export declare function injectToggleGroup(): IRdxToggleGroup;
@@ -0,0 +1,3 @@
1
+ # @radix-ng/primitives/toolbar
2
+
3
+ Secondary entry point of `@radix-ng/primitives/toolbar`.
@@ -0,0 +1,19 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./src/toolbar-root.directive";
3
+ import * as i2 from "./src/toolbar-button.directive";
4
+ import * as i3 from "./src/toolbar-link.directive";
5
+ import * as i4 from "./src/toolbar-toggle-group.directive";
6
+ import * as i5 from "./src/toolbar-toggle-item.directive";
7
+ import * as i6 from "./src/toolbar-separator.directive";
8
+ export * from './src/toolbar-button.directive';
9
+ export * from './src/toolbar-link.directive';
10
+ export * from './src/toolbar-root.directive';
11
+ export * from './src/toolbar-root.token';
12
+ export * from './src/toolbar-separator.directive';
13
+ export * from './src/toolbar-toggle-group.directive';
14
+ export * from './src/toolbar-toggle-item.directive';
15
+ export declare class RdxToolbarModule {
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<RdxToolbarModule, never>;
17
+ static ɵmod: i0.ɵɵNgModuleDeclaration<RdxToolbarModule, never, [typeof i1.RdxToolbarRootDirective, typeof i2.RdxToolbarButtonDirective, typeof i3.RdxToolbarLinkDirective, typeof i4.RdxToolbarToggleGroupDirective, typeof i5.RdxToolbarToggleItemDirective, typeof i6.RdxToolbarSeparatorDirective], [typeof i1.RdxToolbarRootDirective, typeof i2.RdxToolbarButtonDirective, typeof i3.RdxToolbarLinkDirective, typeof i4.RdxToolbarToggleGroupDirective, typeof i5.RdxToolbarToggleItemDirective, typeof i6.RdxToolbarSeparatorDirective]>;
18
+ static ɵinj: i0.ɵɵInjectorDeclaration<RdxToolbarModule>;
19
+ }
@@ -0,0 +1,11 @@
1
+ import { BooleanInput } from '@angular/cdk/coercion';
2
+ import * as i0 from "@angular/core";
3
+ import * as i1 from "@radix-ng/primitives/roving-focus";
4
+ export declare class RdxToolbarButtonDirective {
5
+ #private;
6
+ private readonly rdxRovingFocusItemDirective;
7
+ readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, BooleanInput>;
8
+ private readonly isDisabled;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<RdxToolbarButtonDirective, never>;
10
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RdxToolbarButtonDirective, "[rdxToolbarButton]", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.RdxRovingFocusItemDirective; inputs: { "focusable": "focusable"; }; outputs: {}; }]>;
11
+ }
@@ -0,0 +1,7 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "@radix-ng/primitives/roving-focus";
3
+ export declare class RdxToolbarLinkDirective {
4
+ onKeyDown($event: KeyboardEvent): void;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<RdxToolbarLinkDirective, never>;
6
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RdxToolbarLinkDirective, "[rdxToolbarLink]", never, {}, {}, never, never, true, [{ directive: typeof i1.RdxRovingFocusItemDirective; inputs: { "focusable": "focusable"; }; outputs: {}; }]>;
7
+ }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "@radix-ng/primitives/roving-focus";
3
+ export declare class RdxToolbarRootDirective {
4
+ readonly orientation: import("@angular/core").InputSignal<"horizontal" | "vertical">;
5
+ readonly dir: import("@angular/core").InputSignal<"ltr" | "rtl">;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<RdxToolbarRootDirective, never>;
7
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RdxToolbarRootDirective, "[rdxToolbarRoot]", never, { "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "dir": { "alias": "dir"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.RdxRovingFocusGroupDirective; inputs: { "dir": "dir"; "orientation": "orientation"; "loop": "loop"; }; outputs: {}; }]>;
8
+ }
@@ -0,0 +1,5 @@
1
+ import { InjectionToken, Provider } from '@angular/core';
2
+ import { RdxToolbarRootDirective } from './toolbar-root.directive';
3
+ export declare const RDX_TOOLBAR_ROOT_TOKEN: InjectionToken<RdxToolbarRootDirective>;
4
+ export declare function injectRootContext(): RdxToolbarRootDirective;
5
+ export declare function provideRootContext(): Provider;
@@ -0,0 +1,6 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "@radix-ng/primitives/separator";
3
+ export declare class RdxToolbarSeparatorDirective {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<RdxToolbarSeparatorDirective, never>;
5
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RdxToolbarSeparatorDirective, "[rdxToolbarSeparator]", never, {}, {}, never, never, true, [{ directive: typeof i1.RdxSeparatorRootDirective; inputs: { "orientation": "orientation"; "decorative": "decorative"; }; outputs: {}; }]>;
6
+ }
@@ -0,0 +1,6 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "@radix-ng/primitives/toggle-group";
3
+ export declare class RdxToolbarToggleGroupDirective {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<RdxToolbarToggleGroupDirective, never>;
5
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RdxToolbarToggleGroupDirective, "[rdxToolbarToggleGroup]", never, {}, {}, never, never, true, [{ directive: typeof i1.RdxToggleGroupWithoutFocusDirective; inputs: { "value": "value"; "type": "type"; "disabled": "disabled"; }; outputs: {}; }]>;
6
+ }
@@ -0,0 +1,6 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "@radix-ng/primitives/toggle-group";
3
+ export declare class RdxToolbarToggleItemDirective {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<RdxToolbarToggleItemDirective, never>;
5
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RdxToolbarToggleItemDirective, "[rdxToolbarToggleItem]", never, {}, {}, never, never, true, [{ directive: typeof i1.RdxToggleGroupItemDirective; inputs: { "value": "value"; "disabled": "disabled"; }; outputs: {}; }]>;
6
+ }
@@ -79,7 +79,7 @@ export declare class RdxTooltipRootDirective {
79
79
  window: Window & typeof globalThis;
80
80
  primitiveConfigs?: import("./utils/types").PrimitiveConfigs;
81
81
  onDestroyCallbacks: Set<() => void>;
82
- "__#11143@#clickDomRootEventCallbacks": Set<(event: MouseEvent) => void>;
82
+ "__#11360@#clickDomRootEventCallbacks": Set<(event: MouseEvent) => void>;
83
83
  registerPrimitive<T extends object>(primitiveInstance: T): void;
84
84
  deregisterPrimitive<T extends object>(primitiveInstance: T): void;
85
85
  preventPrimitiveFromCdkEvent<T extends object>(primitiveInstance: T, eventType: import("./utils/types").EventType): void;
@@ -90,9 +90,9 @@ export declare class RdxTooltipRootDirective {
90
90
  primitivePreventedFromCdkEvent<T extends object>(primitiveInstance: T, eventType: import("./utils/types").EventType): boolean | undefined;
91
91
  addClickDomRootEventCallback(callback: (event: MouseEvent) => void): void;
92
92
  removeClickDomRootEventCallback(callback: (event: MouseEvent) => void): boolean;
93
- "__#11143@#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;
94
- "__#11143@#registerOnDestroyCallbacks"(): void;
95
- "__#11143@#listenToClickDomRootEvent"(): void;
93
+ "__#11360@#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;
94
+ "__#11360@#registerOnDestroyCallbacks"(): void;
95
+ "__#11360@#listenToClickDomRootEvent"(): void;
96
96
  } | null;
97
97
  /** @ignore */
98
98
  readonly destroyRef: DestroyRef;