@radix-ng/primitives 0.28.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 (37) hide show
  1. package/fesm2022/radix-ng-primitives-separator.mjs +1 -1
  2. package/fesm2022/radix-ng-primitives-separator.mjs.map +1 -1
  3. package/fesm2022/radix-ng-primitives-slider.mjs +101 -72
  4. package/fesm2022/radix-ng-primitives-slider.mjs.map +1 -1
  5. package/fesm2022/radix-ng-primitives-toggle-group.mjs +130 -9
  6. package/fesm2022/radix-ng-primitives-toggle-group.mjs.map +1 -1
  7. package/fesm2022/radix-ng-primitives-toolbar.mjs +155 -0
  8. package/fesm2022/radix-ng-primitives-toolbar.mjs.map +1 -0
  9. package/package.json +13 -8
  10. package/schematics/collection.json +11 -0
  11. package/schematics/ng-add/index.d.ts +7 -0
  12. package/schematics/ng-add/index.js +31 -0
  13. package/schematics/ng-add/index.js.map +1 -0
  14. package/schematics/ng-add/schema.d.ts +3 -0
  15. package/schematics/ng-add/schema.js +3 -0
  16. package/schematics/ng-add/schema.js.map +1 -0
  17. package/separator/src/separator.directive.d.ts +1 -1
  18. package/slider/src/slider-horizontal.component.d.ts +6 -7
  19. package/slider/src/slider-impl.directive.d.ts +6 -7
  20. package/slider/src/slider-root.component.d.ts +78 -4
  21. package/slider/src/slider-vertical.component.d.ts +6 -7
  22. package/toggle-group/index.d.ts +1 -0
  23. package/toggle-group/src/toggle-group-item.directive.d.ts +8 -2
  24. package/toggle-group/src/toggle-group-without-focus.directive.d.ts +69 -0
  25. package/toggle-group/src/toggle-group.directive.d.ts +12 -1
  26. package/toggle-group/src/toggle-group.token.d.ts +8 -3
  27. package/toolbar/README.md +3 -0
  28. package/toolbar/index.d.ts +19 -0
  29. package/toolbar/src/toolbar-button.directive.d.ts +11 -0
  30. package/toolbar/src/toolbar-link.directive.d.ts +7 -0
  31. package/toolbar/src/toolbar-root.directive.d.ts +8 -0
  32. package/toolbar/src/toolbar-root.token.d.ts +5 -0
  33. package/toolbar/src/toolbar-separator.directive.d.ts +6 -0
  34. package/toolbar/src/toolbar-toggle-group.directive.d.ts +6 -0
  35. package/toolbar/src/toolbar-toggle-item.directive.d.ts +6 -0
  36. package/tooltip/src/tooltip-root.directive.d.ts +4 -4
  37. package/compodoc/documentation.json +0 -39585
@@ -0,0 +1,155 @@
1
+ import * as i0 from '@angular/core';
2
+ import { inject, input, booleanAttribute, signal, effect, Directive, InjectionToken, NgModule } from '@angular/core';
3
+ import * as i1 from '@radix-ng/primitives/roving-focus';
4
+ import { RdxRovingFocusItemDirective, RdxRovingFocusGroupDirective } from '@radix-ng/primitives/roving-focus';
5
+ import * as i1$1 from '@radix-ng/primitives/separator';
6
+ import { RdxSeparatorRootDirective } from '@radix-ng/primitives/separator';
7
+ import * as i1$2 from '@radix-ng/primitives/toggle-group';
8
+ import { RdxToggleGroupWithoutFocusDirective, RdxToggleGroupItemDirective } from '@radix-ng/primitives/toggle-group';
9
+
10
+ class RdxToolbarButtonDirective {
11
+ constructor() {
12
+ this.rdxRovingFocusItemDirective = inject(RdxRovingFocusItemDirective);
13
+ this.disabled = input(false, { transform: booleanAttribute });
14
+ this.isDisabled = signal(this.disabled());
15
+ this.#disableChanges = effect(() => {
16
+ this.rdxRovingFocusItemDirective.focusable = !this.isDisabled();
17
+ });
18
+ }
19
+ #disableChanges;
20
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: RdxToolbarButtonDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
21
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.0.5", type: RdxToolbarButtonDirective, isStandalone: true, selector: "[rdxToolbarButton]", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, hostDirectives: [{ directive: i1.RdxRovingFocusItemDirective, inputs: ["focusable", "focusable"] }], ngImport: i0 }); }
22
+ }
23
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: RdxToolbarButtonDirective, decorators: [{
24
+ type: Directive,
25
+ args: [{
26
+ selector: '[rdxToolbarButton]',
27
+ hostDirectives: [{ directive: RdxRovingFocusItemDirective, inputs: ['focusable'] }]
28
+ }]
29
+ }] });
30
+
31
+ class RdxToolbarLinkDirective {
32
+ onKeyDown($event) {
33
+ if ($event.key === ' ')
34
+ $event.currentTarget?.click();
35
+ }
36
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: RdxToolbarLinkDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
37
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.5", type: RdxToolbarLinkDirective, isStandalone: true, selector: "[rdxToolbarLink]", host: { listeners: { "keydown": "onKeyDown($event)" } }, hostDirectives: [{ directive: i1.RdxRovingFocusItemDirective, inputs: ["focusable", "focusable"] }], ngImport: i0 }); }
38
+ }
39
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: RdxToolbarLinkDirective, decorators: [{
40
+ type: Directive,
41
+ args: [{
42
+ selector: '[rdxToolbarLink]',
43
+ hostDirectives: [{ directive: RdxRovingFocusItemDirective, inputs: ['focusable'] }],
44
+ host: {
45
+ '(keydown)': 'onKeyDown($event)'
46
+ }
47
+ }]
48
+ }] });
49
+
50
+ const RDX_TOOLBAR_ROOT_TOKEN = new InjectionToken('RdxToolbarRootDirective');
51
+ function injectRootContext() {
52
+ return inject(RDX_TOOLBAR_ROOT_TOKEN);
53
+ }
54
+ function provideRootContext() {
55
+ return {
56
+ provide: RDX_TOOLBAR_ROOT_TOKEN,
57
+ useExisting: RdxToolbarRootDirective
58
+ };
59
+ }
60
+
61
+ class RdxToolbarRootDirective {
62
+ constructor() {
63
+ this.orientation = input('horizontal');
64
+ this.dir = input('ltr');
65
+ }
66
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: RdxToolbarRootDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
67
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.0.5", type: RdxToolbarRootDirective, isStandalone: true, selector: "[rdxToolbarRoot]", inputs: { orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, dir: { classPropertyName: "dir", publicName: "dir", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "toolbar" }, properties: { "attr.aria-orientation": "orientation()" } }, providers: [provideRootContext()], hostDirectives: [{ directive: i1.RdxRovingFocusGroupDirective, inputs: ["dir", "dir", "orientation", "orientation", "loop", "loop"] }], ngImport: i0 }); }
68
+ }
69
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: RdxToolbarRootDirective, decorators: [{
70
+ type: Directive,
71
+ args: [{
72
+ selector: '[rdxToolbarRoot]',
73
+ hostDirectives: [{ directive: RdxRovingFocusGroupDirective, inputs: ['dir', 'orientation', 'loop'] }],
74
+ providers: [provideRootContext()],
75
+ host: {
76
+ role: 'toolbar',
77
+ '[attr.aria-orientation]': 'orientation()'
78
+ }
79
+ }]
80
+ }] });
81
+
82
+ class RdxToolbarSeparatorDirective {
83
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: RdxToolbarSeparatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
84
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.5", type: RdxToolbarSeparatorDirective, isStandalone: true, selector: "[rdxToolbarSeparator]", hostDirectives: [{ directive: i1$1.RdxSeparatorRootDirective, inputs: ["orientation", "orientation", "decorative", "decorative"] }], ngImport: i0 }); }
85
+ }
86
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: RdxToolbarSeparatorDirective, decorators: [{
87
+ type: Directive,
88
+ args: [{
89
+ selector: '[rdxToolbarSeparator]',
90
+ hostDirectives: [{ directive: RdxSeparatorRootDirective, inputs: ['orientation', 'decorative'] }]
91
+ }]
92
+ }] });
93
+
94
+ // TODO: set rovingFocus - false
95
+ class RdxToolbarToggleGroupDirective {
96
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: RdxToolbarToggleGroupDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
97
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.5", type: RdxToolbarToggleGroupDirective, isStandalone: true, selector: "[rdxToolbarToggleGroup]", hostDirectives: [{ directive: i1$2.RdxToggleGroupWithoutFocusDirective, inputs: ["value", "value", "type", "type", "disabled", "disabled"] }], ngImport: i0 }); }
98
+ }
99
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: RdxToolbarToggleGroupDirective, decorators: [{
100
+ type: Directive,
101
+ args: [{
102
+ selector: '[rdxToolbarToggleGroup]',
103
+ hostDirectives: [{ directive: RdxToggleGroupWithoutFocusDirective, inputs: ['value', 'type', 'disabled'] }]
104
+ }]
105
+ }] });
106
+
107
+ class RdxToolbarToggleItemDirective {
108
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: RdxToolbarToggleItemDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
109
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.5", type: RdxToolbarToggleItemDirective, isStandalone: true, selector: "[rdxToolbarToggleItem]", hostDirectives: [{ directive: i1$2.RdxToggleGroupItemDirective, inputs: ["value", "value", "disabled", "disabled"] }], ngImport: i0 }); }
110
+ }
111
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: RdxToolbarToggleItemDirective, decorators: [{
112
+ type: Directive,
113
+ args: [{
114
+ selector: '[rdxToolbarToggleItem]',
115
+ hostDirectives: [{ directive: RdxToggleGroupItemDirective, inputs: ['value', 'disabled'] }]
116
+ }]
117
+ }] });
118
+
119
+ const _imports = [
120
+ RdxToolbarRootDirective,
121
+ RdxToolbarButtonDirective,
122
+ RdxToolbarLinkDirective,
123
+ RdxToolbarToggleGroupDirective,
124
+ RdxToolbarToggleItemDirective,
125
+ RdxToolbarSeparatorDirective
126
+ ];
127
+ class RdxToolbarModule {
128
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: RdxToolbarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
129
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.5", ngImport: i0, type: RdxToolbarModule, imports: [RdxToolbarRootDirective,
130
+ RdxToolbarButtonDirective,
131
+ RdxToolbarLinkDirective,
132
+ RdxToolbarToggleGroupDirective,
133
+ RdxToolbarToggleItemDirective,
134
+ RdxToolbarSeparatorDirective], exports: [RdxToolbarRootDirective,
135
+ RdxToolbarButtonDirective,
136
+ RdxToolbarLinkDirective,
137
+ RdxToolbarToggleGroupDirective,
138
+ RdxToolbarToggleItemDirective,
139
+ RdxToolbarSeparatorDirective] }); }
140
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: RdxToolbarModule }); }
141
+ }
142
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: RdxToolbarModule, decorators: [{
143
+ type: NgModule,
144
+ args: [{
145
+ imports: [..._imports],
146
+ exports: [..._imports]
147
+ }]
148
+ }] });
149
+
150
+ /**
151
+ * Generated bundle index. Do not edit.
152
+ */
153
+
154
+ export { RDX_TOOLBAR_ROOT_TOKEN, RdxToolbarButtonDirective, RdxToolbarLinkDirective, RdxToolbarModule, RdxToolbarRootDirective, RdxToolbarSeparatorDirective, RdxToolbarToggleGroupDirective, RdxToolbarToggleItemDirective, injectRootContext, provideRootContext };
155
+ //# sourceMappingURL=radix-ng-primitives-toolbar.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"radix-ng-primitives-toolbar.mjs","sources":["../../../packages/primitives/toolbar/src/toolbar-button.directive.ts","../../../packages/primitives/toolbar/src/toolbar-link.directive.ts","../../../packages/primitives/toolbar/src/toolbar-root.token.ts","../../../packages/primitives/toolbar/src/toolbar-root.directive.ts","../../../packages/primitives/toolbar/src/toolbar-separator.directive.ts","../../../packages/primitives/toolbar/src/toolbar-toggle-group.directive.ts","../../../packages/primitives/toolbar/src/toolbar-toggle-item.directive.ts","../../../packages/primitives/toolbar/index.ts","../../../packages/primitives/toolbar/radix-ng-primitives-toolbar.ts"],"sourcesContent":["import { BooleanInput } from '@angular/cdk/coercion';\nimport { booleanAttribute, Directive, effect, inject, input, signal } from '@angular/core';\nimport { RdxRovingFocusItemDirective } from '@radix-ng/primitives/roving-focus';\n\n@Directive({\n selector: '[rdxToolbarButton]',\n hostDirectives: [{ directive: RdxRovingFocusItemDirective, inputs: ['focusable'] }]\n})\nexport class RdxToolbarButtonDirective {\n private readonly rdxRovingFocusItemDirective = inject(RdxRovingFocusItemDirective);\n\n readonly disabled = input<boolean, BooleanInput>(false, { transform: booleanAttribute });\n\n private readonly isDisabled = signal(this.disabled());\n\n #disableChanges = effect(() => {\n this.rdxRovingFocusItemDirective.focusable = !this.isDisabled();\n });\n}\n","import { Directive } from '@angular/core';\nimport { RdxRovingFocusItemDirective } from '@radix-ng/primitives/roving-focus';\n\n@Directive({\n selector: '[rdxToolbarLink]',\n hostDirectives: [{ directive: RdxRovingFocusItemDirective, inputs: ['focusable'] }],\n host: {\n '(keydown)': 'onKeyDown($event)'\n }\n})\nexport class RdxToolbarLinkDirective {\n onKeyDown($event: KeyboardEvent) {\n if ($event.key === ' ') ($event.currentTarget as HTMLElement)?.click();\n }\n}\n","import { inject, InjectionToken, Provider } from '@angular/core';\nimport { RdxToolbarRootDirective } from './toolbar-root.directive';\n\nexport const RDX_TOOLBAR_ROOT_TOKEN = new InjectionToken<RdxToolbarRootDirective>('RdxToolbarRootDirective');\n\nexport function injectRootContext(): RdxToolbarRootDirective {\n return inject(RDX_TOOLBAR_ROOT_TOKEN);\n}\n\nexport function provideRootContext(): Provider {\n return {\n provide: RDX_TOOLBAR_ROOT_TOKEN,\n useExisting: RdxToolbarRootDirective\n };\n}\n","import { Directive, input } from '@angular/core';\nimport { RdxRovingFocusGroupDirective } from '@radix-ng/primitives/roving-focus';\nimport { provideRootContext } from './toolbar-root.token';\n\n@Directive({\n selector: '[rdxToolbarRoot]',\n hostDirectives: [{ directive: RdxRovingFocusGroupDirective, inputs: ['dir', 'orientation', 'loop'] }],\n providers: [provideRootContext()],\n host: {\n role: 'toolbar',\n '[attr.aria-orientation]': 'orientation()'\n }\n})\nexport class RdxToolbarRootDirective {\n readonly orientation = input<'horizontal' | 'vertical'>('horizontal');\n readonly dir = input<'ltr' | 'rtl'>('ltr');\n}\n","import { Directive } from '@angular/core';\nimport { RdxSeparatorRootDirective } from '@radix-ng/primitives/separator';\n\n@Directive({\n selector: '[rdxToolbarSeparator]',\n hostDirectives: [{ directive: RdxSeparatorRootDirective, inputs: ['orientation', 'decorative'] }]\n})\nexport class RdxToolbarSeparatorDirective {}\n","import { Directive } from '@angular/core';\nimport { RdxToggleGroupWithoutFocusDirective } from '@radix-ng/primitives/toggle-group';\n\n// TODO: set rovingFocus - false\n@Directive({\n selector: '[rdxToolbarToggleGroup]',\n hostDirectives: [{ directive: RdxToggleGroupWithoutFocusDirective, inputs: ['value', 'type', 'disabled'] }]\n})\nexport class RdxToolbarToggleGroupDirective {}\n","import { Directive } from '@angular/core';\nimport { RdxToggleGroupItemDirective } from '@radix-ng/primitives/toggle-group';\n\n@Directive({\n selector: '[rdxToolbarToggleItem]',\n hostDirectives: [{ directive: RdxToggleGroupItemDirective, inputs: ['value', 'disabled'] }]\n})\nexport class RdxToolbarToggleItemDirective {}\n","import { NgModule } from '@angular/core';\nimport { RdxToolbarButtonDirective } from './src/toolbar-button.directive';\nimport { RdxToolbarLinkDirective } from './src/toolbar-link.directive';\nimport { RdxToolbarRootDirective } from './src/toolbar-root.directive';\nimport { RdxToolbarSeparatorDirective } from './src/toolbar-separator.directive';\nimport { RdxToolbarToggleGroupDirective } from './src/toolbar-toggle-group.directive';\nimport { RdxToolbarToggleItemDirective } from './src/toolbar-toggle-item.directive';\n\nexport * from './src/toolbar-button.directive';\nexport * from './src/toolbar-link.directive';\nexport * from './src/toolbar-root.directive';\nexport * from './src/toolbar-root.token';\nexport * from './src/toolbar-separator.directive';\nexport * from './src/toolbar-toggle-group.directive';\nexport * from './src/toolbar-toggle-item.directive';\n\nconst _imports = [\n RdxToolbarRootDirective,\n RdxToolbarButtonDirective,\n RdxToolbarLinkDirective,\n RdxToolbarToggleGroupDirective,\n RdxToolbarToggleItemDirective,\n RdxToolbarSeparatorDirective\n];\n\n@NgModule({\n imports: [..._imports],\n exports: [..._imports]\n})\nexport class RdxToolbarModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;;MAQa,yBAAyB,CAAA;AAJtC,IAAA,WAAA,GAAA;AAKqB,QAAA,IAAA,CAAA,2BAA2B,GAAG,MAAM,CAAC,2BAA2B,CAAC;QAEzE,IAAQ,CAAA,QAAA,GAAG,KAAK,CAAwB,KAAK,EAAE,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAAC;QAEvE,IAAU,CAAA,UAAA,GAAG,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;AAErD,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAC,MAAK;YAC1B,IAAI,CAAC,2BAA2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IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,GAAG,QAAQ,CAAC;AACtB,oBAAA,OAAO,EAAE,CAAC,GAAG,QAAQ;AACxB,iBAAA;;;AC5BD;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@radix-ng/primitives",
3
- "version": "0.28.0",
3
+ "version": "0.29.0",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -21,9 +21,7 @@
21
21
  "@angular/core": "^19.0.0",
22
22
  "@angular/cdk": "^19.0.0"
23
23
  },
24
- "dependencies": {
25
- "tslib": "^2.3.0"
26
- },
24
+ "schematics": "./schematics/collection.json",
27
25
  "sideEffects": false,
28
26
  "module": "fesm2022/radix-ng-primitives.mjs",
29
27
  "typings": "index.d.ts",
@@ -123,14 +121,14 @@
123
121
  "types": "./slider/index.d.ts",
124
122
  "default": "./fesm2022/radix-ng-primitives-slider.mjs"
125
123
  },
126
- "./switch": {
127
- "types": "./switch/index.d.ts",
128
- "default": "./fesm2022/radix-ng-primitives-switch.mjs"
129
- },
130
124
  "./tabs": {
131
125
  "types": "./tabs/index.d.ts",
132
126
  "default": "./fesm2022/radix-ng-primitives-tabs.mjs"
133
127
  },
128
+ "./switch": {
129
+ "types": "./switch/index.d.ts",
130
+ "default": "./fesm2022/radix-ng-primitives-switch.mjs"
131
+ },
134
132
  "./toggle": {
135
133
  "types": "./toggle/index.d.ts",
136
134
  "default": "./fesm2022/radix-ng-primitives-toggle.mjs"
@@ -139,6 +137,10 @@
139
137
  "types": "./toggle-group/index.d.ts",
140
138
  "default": "./fesm2022/radix-ng-primitives-toggle-group.mjs"
141
139
  },
140
+ "./toolbar": {
141
+ "types": "./toolbar/index.d.ts",
142
+ "default": "./fesm2022/radix-ng-primitives-toolbar.mjs"
143
+ },
142
144
  "./tooltip": {
143
145
  "types": "./tooltip/index.d.ts",
144
146
  "default": "./fesm2022/radix-ng-primitives-tooltip.mjs"
@@ -147,5 +149,8 @@
147
149
  "types": "./visually-hidden/index.d.ts",
148
150
  "default": "./fesm2022/radix-ng-primitives-visually-hidden.mjs"
149
151
  }
152
+ },
153
+ "dependencies": {
154
+ "tslib": "^2.3.0"
150
155
  }
151
156
  }
@@ -0,0 +1,11 @@
1
+ {
2
+ "$schema": "../node_modules/@angular-devkit/schematics/collection-schema.json",
3
+ "schematics": {
4
+ "ng-add": {
5
+ "description": "Add Radix Angular to the application.",
6
+ "factory": "./ng-add",
7
+ "schema": "./ng-add/schema.json",
8
+ "aliases": ["install"]
9
+ }
10
+ }
11
+ }
@@ -0,0 +1,7 @@
1
+ import { Rule } from '@angular-devkit/schematics';
2
+ import { Schema } from './schema';
3
+ /**
4
+ * This is executed when `ng add @radix-ng/primitives` is run.
5
+ * It installs all dependencies in the 'package.json'.
6
+ */
7
+ export default function (options: Schema): Rule;
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = default_1;
4
+ const schematics_1 = require("@angular-devkit/schematics");
5
+ const tasks_1 = require("@angular-devkit/schematics/tasks");
6
+ const package_config_1 = require("@angular/cdk/schematics/ng-add/package-config");
7
+ const utility_1 = require("@schematics/angular/utility");
8
+ const DEPENDENCY_VERSIONS = {
9
+ ANGULAR_CDK: '^19.0.0',
10
+ RADIX_NG: '^28.0.0'
11
+ };
12
+ /**
13
+ * This is executed when `ng add @radix-ng/primitives` is run.
14
+ * It installs all dependencies in the 'package.json'.
15
+ */
16
+ function default_1(options) {
17
+ return async (tree, context) => {
18
+ const { project } = options;
19
+ if (project) {
20
+ const workspace = await (0, utility_1.readWorkspace)(tree);
21
+ const projectWorkspace = workspace.projects.get(project);
22
+ if (!projectWorkspace) {
23
+ throw new schematics_1.SchematicsException(`Unable to find project '${project}' in the workspace`);
24
+ }
25
+ }
26
+ (0, package_config_1.addPackageToPackageJson)(tree, '@angular/cdk', DEPENDENCY_VERSIONS.ANGULAR_CDK);
27
+ (0, package_config_1.addPackageToPackageJson)(tree, '@radix-ng/primitives', DEPENDENCY_VERSIONS.RADIX_NG);
28
+ context.addTask(new tasks_1.NodePackageInstallTask());
29
+ };
30
+ }
31
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/primitives/schematics/ng-add/index.ts"],"names":[],"mappings":";;AAeA,4BAkBC;AAjCD,2DAA+F;AAC/F,4DAA0E;AAC1E,kFAAwF;AACxF,yDAA4D;AAG5D,MAAM,mBAAmB,GAAG;IACxB,WAAW,EAAE,SAAS;IACtB,QAAQ,EAAE,SAAS;CACtB,CAAC;AAEF;;;GAGG;AACH,mBAAyB,OAAe;IACpC,OAAO,KAAK,EAAE,IAAU,EAAE,OAAyB,EAAE,EAAE;QACnD,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;QAE5B,IAAI,OAAO,EAAE,CAAC;YACV,MAAM,SAAS,GAAG,MAAM,IAAA,uBAAa,EAAC,IAAI,CAAC,CAAC;YAC5C,MAAM,gBAAgB,GAAG,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;YAEzD,IAAI,CAAC,gBAAgB,EAAE,CAAC;gBACpB,MAAM,IAAI,gCAAmB,CAAC,2BAA2B,OAAO,oBAAoB,CAAC,CAAC;YAC1F,CAAC;QACL,CAAC;QAED,IAAA,wCAAuB,EAAC,IAAI,EAAE,cAAc,EAAE,mBAAmB,CAAC,WAAW,CAAC,CAAC;QAC/E,IAAA,wCAAuB,EAAC,IAAI,EAAE,sBAAsB,EAAE,mBAAmB,CAAC,QAAQ,CAAC,CAAC;QAEpF,OAAO,CAAC,OAAO,CAAC,IAAI,8BAAsB,EAAE,CAAC,CAAC;IAClD,CAAC,CAAC;AACN,CAAC"}
@@ -0,0 +1,3 @@
1
+ export interface Schema {
2
+ project?: string;
3
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../packages/primitives/schematics/ng-add/schema.ts"],"names":[],"mappings":""}
@@ -50,7 +50,7 @@ export declare class RdxSeparatorRootDirective {
50
50
  *
51
51
  * @ignore
52
52
  */
53
- protected readonly computedAriaOrientation: import("@angular/core").Signal<"vertical" | null>;
53
+ protected readonly computedAriaOrientation: import("@angular/core").Signal<"vertical" | undefined>;
54
54
  static ɵfac: i0.ɵɵFactoryDeclaration<RdxSeparatorRootDirective, never>;
55
55
  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>;
56
56
  }
@@ -1,5 +1,4 @@
1
1
  import { BooleanInput } from '@angular/cdk/coercion';
2
- import { EventEmitter } from '@angular/core';
3
2
  import * as i0 from "@angular/core";
4
3
  export declare class RdxSliderHorizontalComponent {
5
4
  private readonly rootContext;
@@ -8,15 +7,15 @@ export declare class RdxSliderHorizontalComponent {
8
7
  min: number;
9
8
  max: number;
10
9
  className: string;
11
- slideStart: EventEmitter<number>;
12
- slideMove: EventEmitter<number>;
13
- slideEnd: EventEmitter<void>;
14
- stepKeyDown: EventEmitter<{
10
+ readonly slideStart: import("@angular/core").OutputEmitterRef<number>;
11
+ readonly slideMove: import("@angular/core").OutputEmitterRef<number>;
12
+ readonly slideEnd: import("@angular/core").OutputEmitterRef<void>;
13
+ readonly stepKeyDown: import("@angular/core").OutputEmitterRef<{
15
14
  event: KeyboardEvent;
16
15
  direction: number;
17
16
  }>;
18
- endKeyDown: EventEmitter<KeyboardEvent>;
19
- homeKeyDown: EventEmitter<KeyboardEvent>;
17
+ readonly endKeyDown: import("@angular/core").OutputEmitterRef<KeyboardEvent>;
18
+ readonly homeKeyDown: import("@angular/core").OutputEmitterRef<KeyboardEvent>;
20
19
  private readonly sliderElement;
21
20
  private readonly rect;
22
21
  onSlideStart(event: PointerEvent): void;
@@ -1,14 +1,13 @@
1
- import { EventEmitter } from '@angular/core';
2
1
  import { RdxSliderRootComponent } from './slider-root.component';
3
2
  import * as i0 from "@angular/core";
4
3
  export declare class RdxSliderImplDirective {
5
4
  protected readonly rootContext: RdxSliderRootComponent;
6
- slideStart: EventEmitter<PointerEvent>;
7
- slideMove: EventEmitter<PointerEvent>;
8
- slideEnd: EventEmitter<PointerEvent>;
9
- homeKeyDown: EventEmitter<KeyboardEvent>;
10
- endKeyDown: EventEmitter<KeyboardEvent>;
11
- stepKeyDown: EventEmitter<KeyboardEvent>;
5
+ readonly slideStart: import("@angular/core").OutputEmitterRef<PointerEvent>;
6
+ readonly slideMove: import("@angular/core").OutputEmitterRef<PointerEvent>;
7
+ readonly slideEnd: import("@angular/core").OutputEmitterRef<PointerEvent>;
8
+ readonly homeKeyDown: import("@angular/core").OutputEmitterRef<KeyboardEvent>;
9
+ readonly endKeyDown: import("@angular/core").OutputEmitterRef<KeyboardEvent>;
10
+ readonly stepKeyDown: import("@angular/core").OutputEmitterRef<KeyboardEvent>;
12
11
  onKeyDown(event: KeyboardEvent): void;
13
12
  onPointerDown(event: PointerEvent): void;
14
13
  onPointerMove(event: PointerEvent): void;
@@ -1,22 +1,96 @@
1
1
  import { BooleanInput, NumberInput } from '@angular/cdk/coercion';
2
- import { EventEmitter, OnInit } from '@angular/core';
2
+ import { OnInit } from '@angular/core';
3
3
  import { RdxSliderOrientationContextService } from './slider-orientation-context.service';
4
4
  import * as i0 from "@angular/core";
5
+ /**
6
+ * @group Components
7
+ */
5
8
  export declare class RdxSliderRootComponent implements OnInit {
6
9
  /** @ignore */
7
10
  readonly orientationContext: RdxSliderOrientationContextService;
11
+ /**
12
+ * The minimum value for the range.
13
+ *
14
+ * @group Props
15
+ * @defaultValue 0
16
+ */
8
17
  readonly min: import("@angular/core").InputSignalWithTransform<number, NumberInput>;
18
+ /**
19
+ * The maximum value for the range.
20
+ *
21
+ * @group Props
22
+ * @defaultValue 100
23
+ */
9
24
  readonly max: import("@angular/core").InputSignalWithTransform<number, NumberInput>;
25
+ /**
26
+ * The stepping interval.
27
+ *
28
+ * @group Props
29
+ * @defaultValue 1
30
+ */
10
31
  readonly step: import("@angular/core").InputSignalWithTransform<number, NumberInput>;
32
+ /**
33
+ * The minimum permitted steps between multiple thumbs.
34
+ *
35
+ * @group Props
36
+ * @defaultValue 0
37
+ */
11
38
  readonly minStepsBetweenThumbs: import("@angular/core").InputSignalWithTransform<number, NumberInput>;
39
+ /**
40
+ * The orientation of the slider.
41
+ *
42
+ * @group Props
43
+ * @defaultValue 'horizontal'
44
+ */
12
45
  readonly orientation: import("@angular/core").InputSignal<"horizontal" | "vertical">;
46
+ /**
47
+ * When true, prevents the user from interacting with the slider.
48
+ *
49
+ * @group Props
50
+ * @defaultValue false
51
+ */
13
52
  readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, BooleanInput>;
53
+ /**
54
+ * Whether the slider is visually inverted.
55
+ *
56
+ * @group Props
57
+ * @defaultValue false
58
+ */
14
59
  readonly inverted: import("@angular/core").InputSignalWithTransform<boolean, BooleanInput>;
60
+ /**
61
+ * The reading direction of the combobox when applicable.
62
+ *
63
+ * @group Props
64
+ * @defaultValue 'ltr'
65
+ */
15
66
  readonly dir: import("@angular/core").InputSignal<"ltr" | "rtl">;
16
67
  className: string;
17
- valueChange: EventEmitter<number[]>;
18
- valueCommit: EventEmitter<number[]>;
68
+ /**
69
+ * Style class of the component.
70
+ *
71
+ * @group Props
72
+ */
73
+ readonly styleClass: import("@angular/core").InputSignal<string | undefined>;
74
+ /**
75
+ * The controlled value of the slider.
76
+ *
77
+ * @group Props
78
+ */
19
79
  readonly modelValue: import("@angular/core").ModelSignal<number[]>;
80
+ /**
81
+ * Event handler called when the slider value changes.
82
+ *
83
+ * @group Emits
84
+ */
85
+ readonly valueChange: import("@angular/core").OutputEmitterRef<number[]>;
86
+ /**
87
+ * Event handler called when the value changes at the end of an interaction.
88
+ *
89
+ * Useful when you only need to capture a final value e.g. to update a backend service.
90
+ *
91
+ * @group Emits
92
+ */
93
+ readonly valueCommit: import("@angular/core").OutputEmitterRef<number[]>;
20
94
  /** @ignore */
21
95
  readonly valueIndexToChange: import("@angular/core").ModelSignal<number>;
22
96
  /** @ignore */
@@ -45,5 +119,5 @@ export declare class RdxSliderRootComponent implements OnInit {
45
119
  /** @ignore */
46
120
  updateValues(value: number, atIndex: number, commit?: boolean): void;
47
121
  static ɵfac: i0.ɵɵFactoryDeclaration<RdxSliderRootComponent, never>;
48
- static ɵcmp: i0.ɵɵComponentDeclaration<RdxSliderRootComponent, "rdx-slider", never, { "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "minStepsBetweenThumbs": { "alias": "minStepsBetweenThumbs"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "inverted": { "alias": "inverted"; "required": false; "isSignal": true; }; "dir": { "alias": "dir"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; }; "modelValue": { "alias": "modelValue"; "required": false; "isSignal": true; }; "valueIndexToChange": { "alias": "valueIndexToChange"; "required": false; "isSignal": true; }; "valuesBeforeSlideStart": { "alias": "valuesBeforeSlideStart"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; "valueCommit": "valueCommit"; "modelValue": "modelValueChange"; "valueIndexToChange": "valueIndexToChangeChange"; "valuesBeforeSlideStart": "valuesBeforeSlideStartChange"; }, never, ["*"], true, never>;
122
+ static ɵcmp: i0.ɵɵComponentDeclaration<RdxSliderRootComponent, "rdx-slider", never, { "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "minStepsBetweenThumbs": { "alias": "minStepsBetweenThumbs"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "inverted": { "alias": "inverted"; "required": false; "isSignal": true; }; "dir": { "alias": "dir"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; }; "styleClass": { "alias": "styleClass"; "required": false; "isSignal": true; }; "modelValue": { "alias": "modelValue"; "required": false; "isSignal": true; }; "valueIndexToChange": { "alias": "valueIndexToChange"; "required": false; "isSignal": true; }; "valuesBeforeSlideStart": { "alias": "valuesBeforeSlideStart"; "required": false; "isSignal": true; }; }, { "modelValue": "modelValueChange"; "valueChange": "valueChange"; "valueCommit": "valueCommit"; "valueIndexToChange": "valueIndexToChangeChange"; "valuesBeforeSlideStart": "valuesBeforeSlideStartChange"; }, never, ["*"], true, never>;
49
123
  }
@@ -1,5 +1,4 @@
1
1
  import { BooleanInput } from '@angular/cdk/coercion';
2
- import { EventEmitter } from '@angular/core';
3
2
  import * as i0 from "@angular/core";
4
3
  export declare class RdxSliderVerticalComponent {
5
4
  private readonly rootContext;
@@ -8,15 +7,15 @@ export declare class RdxSliderVerticalComponent {
8
7
  min: number;
9
8
  max: number;
10
9
  className: string;
11
- slideStart: EventEmitter<number>;
12
- slideMove: EventEmitter<number>;
13
- slideEnd: EventEmitter<void>;
14
- stepKeyDown: EventEmitter<{
10
+ readonly slideStart: import("@angular/core").OutputEmitterRef<number>;
11
+ readonly slideMove: import("@angular/core").OutputEmitterRef<number>;
12
+ readonly slideEnd: import("@angular/core").OutputEmitterRef<void>;
13
+ readonly stepKeyDown: import("@angular/core").OutputEmitterRef<{
15
14
  event: KeyboardEvent;
16
15
  direction: number;
17
16
  }>;
18
- endKeyDown: EventEmitter<KeyboardEvent>;
19
- homeKeyDown: EventEmitter<KeyboardEvent>;
17
+ readonly endKeyDown: import("@angular/core").OutputEmitterRef<KeyboardEvent>;
18
+ readonly homeKeyDown: import("@angular/core").OutputEmitterRef<KeyboardEvent>;
20
19
  private readonly sliderElement;
21
20
  private readonly rect;
22
21
  onSlideStart(event: PointerEvent): void;
@@ -1,4 +1,5 @@
1
1
  export * from './src/toggle-group-item.directive';
2
2
  export * from './src/toggle-group-item.token';
3
+ export * from './src/toggle-group-without-focus.directive';
3
4
  export * from './src/toggle-group.directive';
4
5
  export * from './src/toggle-group.token';
@@ -2,6 +2,9 @@ import { BooleanInput } from '@angular/cdk/coercion';
2
2
  import * as i0 from "@angular/core";
3
3
  import * as i1 from "@radix-ng/primitives/roving-focus";
4
4
  import * as i2 from "@radix-ng/primitives/toggle";
5
+ /**
6
+ * @group Components
7
+ */
5
8
  export declare class RdxToggleGroupItemDirective {
6
9
  private readonly rdxToggleDirective;
7
10
  private readonly rdxRovingFocusItemDirective;
@@ -9,14 +12,17 @@ export declare class RdxToggleGroupItemDirective {
9
12
  * Access the toggle group.
10
13
  * @ignore
11
14
  */
12
- protected readonly rootContext: import("@radix-ng/primitives/toggle-group").RdxToggleGroupDirective;
15
+ protected readonly rootContext: import("./toggle-group.token").IRdxToggleGroup;
13
16
  /**
14
17
  * The value of this toggle button.
18
+ *
19
+ * @group Props
15
20
  */
16
21
  readonly value: import("@angular/core").InputSignal<string>;
17
22
  /**
18
23
  * Whether this toggle button is disabled.
19
- * @default false
24
+ * @defaultValue false
25
+ * @group Props
20
26
  */
21
27
  readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, BooleanInput>;
22
28
  private readonly isPressed;
@@ -0,0 +1,69 @@
1
+ import { BooleanInput } from '@angular/cdk/coercion';
2
+ import { ControlValueAccessor } from '@angular/forms';
3
+ import * as i0 from "@angular/core";
4
+ export declare class RdxToggleGroupWithoutFocusDirective implements ControlValueAccessor {
5
+ /**
6
+ * @ignore
7
+ */
8
+ readonly id: string;
9
+ /**
10
+ * @group Props
11
+ */
12
+ readonly value: import("@angular/core").ModelSignal<string | string[] | undefined>;
13
+ /**
14
+ * @group Props
15
+ */
16
+ readonly type: import("@angular/core").InputSignal<"single" | "multiple">;
17
+ /**
18
+ * Whether the toggle group is disabled.
19
+ * @defaultValue false
20
+ * @group Props
21
+ */
22
+ readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, BooleanInput>;
23
+ /**
24
+ * Event emitted when the selected toggle button changes.
25
+ * @group Emits
26
+ */
27
+ readonly onValueChange: import("@angular/core").OutputEmitterRef<string | string[] | undefined>;
28
+ /**
29
+ * The value change callback.
30
+ */
31
+ private onChange?;
32
+ /**
33
+ * onTouch function registered via registerOnTouch (ControlValueAccessor).
34
+ */
35
+ protected onTouched?: () => void;
36
+ /**
37
+ * Toggle a value.
38
+ * @param value The value to toggle.
39
+ * @ignore
40
+ */
41
+ toggle(value: string): void;
42
+ /**
43
+ * Select a value from Angular forms.
44
+ * @param value The value to select.
45
+ * @ignore
46
+ */
47
+ writeValue(value: string): void;
48
+ /**
49
+ * Register a callback to be called when the value changes.
50
+ * @param fn The callback to register.
51
+ * @ignore
52
+ */
53
+ registerOnChange(fn: (value: string | string[] | undefined) => void): void;
54
+ /**
55
+ * Register a callback to be called when the toggle group is touched.
56
+ * @param fn The callback to register.
57
+ * @ignore
58
+ */
59
+ registerOnTouched(fn: () => void): void;
60
+ private readonly accessorDisabled;
61
+ /**
62
+ * Set the disabled state of the toggle group.
63
+ * @param isDisabled Whether the toggle group is disabled.
64
+ * @ignore
65
+ */
66
+ setDisabledState(isDisabled: boolean): void;
67
+ static ɵfac: i0.ɵɵFactoryDeclaration<RdxToggleGroupWithoutFocusDirective, never>;
68
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RdxToggleGroupWithoutFocusDirective, "[rdxToggleGroupWithoutFocus]", ["rdxToggleGroupWithoutFocus"], { "value": { "alias": "value"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "onValueChange": "onValueChange"; }, never, never, true, never>;
69
+ }