@radix-ng/primitives 0.39.3 → 0.39.4
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/core/src/accessor/control-value-accessor.d.ts +1 -1
- package/fesm2022/radix-ng-primitives-core.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-hover-card.mjs +73 -40
- package/fesm2022/radix-ng-primitives-hover-card.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-switch.mjs +10 -3
- package/fesm2022/radix-ng-primitives-switch.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-toggle-group.mjs +4 -3
- package/fesm2022/radix-ng-primitives-toggle-group.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-toggle.mjs +25 -38
- package/fesm2022/radix-ng-primitives-toggle.mjs.map +1 -1
- package/hover-card/src/hover-card-arrow.directive.d.ts +9 -4
- package/hover-card/src/hover-card-content.directive.d.ts +34 -18
- package/hover-card/src/hover-card-root.directive.d.ts +30 -18
- package/package.json +1 -1
- package/toggle/src/toggle.directive.d.ts +10 -22
- package/toggle-group/src/toggle-group.directive.d.ts +1 -1
- package/toggle-group/src/toggle-group.token.d.ts +1 -0
- package/tooltip/src/tooltip-root.directive.d.ts +4 -4
@@ -37,6 +37,9 @@ var RdxHoverCardAnimationStatus;
|
|
37
37
|
RdxHoverCardAnimationStatus["CLOSED_ENDED"] = "closed_ended";
|
38
38
|
})(RdxHoverCardAnimationStatus || (RdxHoverCardAnimationStatus = {}));
|
39
39
|
|
40
|
+
/**
|
41
|
+
* @group Components
|
42
|
+
*/
|
40
43
|
class RdxHoverCardContentDirective {
|
41
44
|
constructor() {
|
42
45
|
/** @ignore */
|
@@ -52,58 +55,71 @@ class RdxHoverCardContentDirective {
|
|
52
55
|
/** @ignore */
|
53
56
|
this.name = computed(() => `rdx-hover-card-trigger-${this.rootDirective.uniqueId()}`);
|
54
57
|
/**
|
55
|
-
*
|
56
|
-
* @
|
58
|
+
* The preferred side of the trigger to render against when open. Will be reversed when collisions occur and avoidCollisions is enabled.
|
59
|
+
* @group Props
|
60
|
+
* @defaultValue top
|
57
61
|
*/
|
58
62
|
this.side = input(RdxPositionSide.Top);
|
59
63
|
/**
|
60
|
-
*
|
61
|
-
* @
|
64
|
+
* The distance in pixels from the trigger.
|
65
|
+
* @group Props
|
66
|
+
* @defaultValue undefined
|
62
67
|
*/
|
63
68
|
this.sideOffset = input(NaN, {
|
64
69
|
transform: numberAttribute
|
65
70
|
});
|
66
71
|
/**
|
67
|
-
*
|
68
|
-
* @
|
72
|
+
* The preferred alignment against the trigger. May change when collisions occur.
|
73
|
+
* @group Props
|
74
|
+
* @defaultValue center
|
69
75
|
*/
|
70
76
|
this.align = input(RdxPositionAlign.Center);
|
71
77
|
/**
|
72
|
-
*
|
73
|
-
* @
|
78
|
+
* An offset in pixels from the "start" or "end" alignment options.
|
79
|
+
* @group Props
|
80
|
+
* @defaultValue undefined
|
74
81
|
*/
|
75
82
|
this.alignOffset = input(NaN, {
|
76
83
|
transform: numberAttribute
|
77
84
|
});
|
78
85
|
/**
|
79
|
-
*
|
80
|
-
* @
|
86
|
+
* Whether to add some alternate positions of the content.
|
87
|
+
* @group Props
|
88
|
+
* @defaultValue false
|
81
89
|
*/
|
82
90
|
this.alternatePositionsDisabled = input(false, { transform: booleanAttribute });
|
83
|
-
/**
|
84
|
-
*
|
91
|
+
/**
|
92
|
+
* Whether to prevent `onOverlayEscapeKeyDown` handler from calling.
|
93
|
+
* @group Props
|
94
|
+
* @defaultValue false
|
85
95
|
*/
|
86
96
|
this.onOverlayEscapeKeyDownDisabled = input(false, { transform: booleanAttribute });
|
87
|
-
/**
|
88
|
-
*
|
97
|
+
/**
|
98
|
+
* Whether to prevent `onOverlayOutsideClick` handler from calling.
|
99
|
+
* @group Props
|
100
|
+
* @defaultValue false
|
89
101
|
*/
|
90
102
|
this.onOverlayOutsideClickDisabled = input(false, { transform: booleanAttribute });
|
91
103
|
/**
|
92
|
-
*
|
104
|
+
* Event handler called when the escape key is down.
|
93
105
|
* It can be prevented by setting `onOverlayEscapeKeyDownDisabled` input to `true`.
|
106
|
+
* @group Emits
|
94
107
|
*/
|
95
108
|
this.onOverlayEscapeKeyDown = output();
|
96
109
|
/**
|
97
|
-
*
|
110
|
+
* Event handler called when a pointer event occurs outside the bounds of the component.
|
98
111
|
* It can be prevented by setting `onOverlayOutsideClickDisabled` input to `true`.
|
112
|
+
* @group Emits
|
99
113
|
*/
|
100
114
|
this.onOverlayOutsideClick = output();
|
101
115
|
/**
|
102
|
-
*
|
116
|
+
* Event handler called after the overlay is open
|
117
|
+
* @group Emits
|
103
118
|
*/
|
104
119
|
this.onOpen = output();
|
105
120
|
/**
|
106
|
-
*
|
121
|
+
* Event handler called after the overlay is closed
|
122
|
+
* @group Emits
|
107
123
|
*/
|
108
124
|
this.onClosed = output();
|
109
125
|
/** @ingore */
|
@@ -507,6 +523,9 @@ const provideRdxCdkEventService = () => getProvider(false);
|
|
507
523
|
const injectRdxCdkEventService = () => inject(RdxCdkEventServiceToken, { optional: true });
|
508
524
|
|
509
525
|
let nextId = 0;
|
526
|
+
/**
|
527
|
+
* @group Components
|
528
|
+
*/
|
510
529
|
class RdxHoverCardRootDirective {
|
511
530
|
constructor() {
|
512
531
|
/** @ignore */
|
@@ -514,52 +533,61 @@ class RdxHoverCardRootDirective {
|
|
514
533
|
/** @ignore */
|
515
534
|
this.name = computed(() => `rdx-hover-card-root-${this.uniqueId()}`);
|
516
535
|
/**
|
517
|
-
*
|
518
|
-
* @
|
536
|
+
* The anchor directive that comes from outside the hover-card rootDirective
|
537
|
+
* @group Props
|
538
|
+
* @defaultValue undefined
|
519
539
|
*/
|
520
540
|
this.anchor = input(void 0);
|
521
541
|
/**
|
522
|
-
*
|
523
|
-
* @
|
542
|
+
* The open state of the hover-card when it is initially rendered. Use when you do not need to control its open state.
|
543
|
+
* @group Props
|
544
|
+
* @defaultValue false
|
524
545
|
*/
|
525
546
|
this.defaultOpen = input(false, { transform: booleanAttribute });
|
526
547
|
/**
|
527
|
-
*
|
528
|
-
* @
|
548
|
+
* The controlled state of the hover-card. `open` input takes precedence over `defaultOpen` input.
|
549
|
+
* @group Props
|
550
|
+
* @defaultValue undefined
|
529
551
|
*/
|
530
552
|
this.open = input(void 0, { transform: booleanAttribute });
|
531
553
|
/**
|
532
|
-
*
|
533
|
-
* @
|
554
|
+
* The delay in milliseconds before the hover-card opens.
|
555
|
+
* @group Props
|
556
|
+
* @defaultValue 500
|
534
557
|
*/
|
535
558
|
this.openDelay = input(500, {
|
536
559
|
transform: numberAttribute
|
537
560
|
});
|
538
561
|
/**
|
539
|
-
*
|
540
|
-
* @
|
562
|
+
* The delay in milliseconds before the hover-card closes.
|
563
|
+
* @group Props
|
564
|
+
* @defaultValue 200
|
541
565
|
*/
|
542
566
|
this.closeDelay = input(200, {
|
543
567
|
transform: numberAttribute
|
544
568
|
});
|
545
569
|
/**
|
546
|
-
*
|
547
|
-
* @
|
570
|
+
* Whether to control the state of the hover-card from outside. Use in conjunction with `open` input.
|
571
|
+
* @group Props
|
572
|
+
* @defaultValue undefined
|
548
573
|
*/
|
549
574
|
this.externalControl = input(void 0, { transform: booleanAttribute });
|
550
575
|
/**
|
551
|
-
*
|
552
|
-
* @
|
576
|
+
* Whether to take into account CSS opening/closing animations.
|
577
|
+
* @group Props
|
578
|
+
* @defaultValue false
|
553
579
|
*/
|
554
580
|
this.cssAnimation = input(false, { transform: booleanAttribute });
|
555
581
|
/**
|
556
|
-
*
|
557
|
-
* @
|
582
|
+
* Whether to take into account CSS opening animations. `cssAnimation` input must be set to 'true'
|
583
|
+
* @group Props
|
584
|
+
* @defaultValue false
|
558
585
|
*/
|
559
586
|
this.cssOpeningAnimation = input(false, { transform: booleanAttribute });
|
560
587
|
/**
|
561
|
-
*
|
562
|
-
* @
|
588
|
+
* Whether to take into account CSS closing animations. `cssAnimation` input must be set to 'true'
|
589
|
+
* @group Props
|
590
|
+
* @defaultValue false
|
563
591
|
*/
|
564
592
|
this.cssClosingAnimation = input(false, { transform: booleanAttribute });
|
565
593
|
/** @ignore */
|
@@ -926,6 +954,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImpor
|
|
926
954
|
}]
|
927
955
|
}] });
|
928
956
|
|
957
|
+
/**
|
958
|
+
* @group Components
|
959
|
+
*/
|
929
960
|
class RdxHoverCardArrowDirective {
|
930
961
|
constructor() {
|
931
962
|
/** @ignore */
|
@@ -935,13 +966,15 @@ class RdxHoverCardArrowDirective {
|
|
935
966
|
/** @ignore */
|
936
967
|
this.elementRef = inject(ElementRef);
|
937
968
|
/**
|
938
|
-
*
|
939
|
-
* @
|
969
|
+
* The width of the arrow in pixels.
|
970
|
+
* @group Props
|
971
|
+
* @defaultValue 10
|
940
972
|
*/
|
941
973
|
this.width = input(RDX_POSITIONING_DEFAULTS.arrow.width, { transform: numberAttribute });
|
942
974
|
/**
|
943
|
-
*
|
944
|
-
* @
|
975
|
+
* The height of the arrow in pixels.
|
976
|
+
* @group Props
|
977
|
+
* @defaultValue 5
|
945
978
|
*/
|
946
979
|
this.height = input(RDX_POSITIONING_DEFAULTS.arrow.height, { transform: numberAttribute });
|
947
980
|
/** @ignore */
|