@radix-ng/primitives 0.39.2 → 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/index.d.ts +2 -0
- package/core/src/accessor/control-value-accessor.d.ts +1 -1
- package/core/src/is-equal.d.ts +7 -0
- package/core/src/isValueEqualOrExist.d.ts +10 -0
- package/core/src/serialize.d.ts +11 -0
- package/core/src/types.d.ts +1 -0
- package/fesm2022/radix-ng-primitives-collapsible.mjs +3 -0
- package/fesm2022/radix-ng-primitives-collapsible.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-core.mjs +220 -1
- package/fesm2022/radix-ng-primitives-core.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-hover-card.mjs +75 -36
- package/fesm2022/radix-ng-primitives-hover-card.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-slider.mjs +1 -1
- package/fesm2022/radix-ng-primitives-slider.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 +17 -10
- 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 +36 -16
- package/hover-card/src/hover-card-root.directive.d.ts +34 -20
- package/package.json +1 -1
- package/popover/src/popover-root.directive.d.ts +4 -4
- package/toggle/src/toggle.directive.d.ts +10 -22
- package/toggle-group/src/toggle-group.directive.d.ts +6 -5
- 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,54 +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
|
-
/**
|
91
|
+
/**
|
92
|
+
* Whether to prevent `onOverlayEscapeKeyDown` handler from calling.
|
93
|
+
* @group Props
|
94
|
+
* @defaultValue false
|
95
|
+
*/
|
84
96
|
this.onOverlayEscapeKeyDownDisabled = input(false, { transform: booleanAttribute });
|
85
|
-
/**
|
97
|
+
/**
|
98
|
+
* Whether to prevent `onOverlayOutsideClick` handler from calling.
|
99
|
+
* @group Props
|
100
|
+
* @defaultValue false
|
101
|
+
*/
|
86
102
|
this.onOverlayOutsideClickDisabled = input(false, { transform: booleanAttribute });
|
87
103
|
/**
|
88
|
-
*
|
104
|
+
* Event handler called when the escape key is down.
|
89
105
|
* It can be prevented by setting `onOverlayEscapeKeyDownDisabled` input to `true`.
|
106
|
+
* @group Emits
|
90
107
|
*/
|
91
108
|
this.onOverlayEscapeKeyDown = output();
|
92
109
|
/**
|
93
|
-
*
|
110
|
+
* Event handler called when a pointer event occurs outside the bounds of the component.
|
94
111
|
* It can be prevented by setting `onOverlayOutsideClickDisabled` input to `true`.
|
112
|
+
* @group Emits
|
95
113
|
*/
|
96
114
|
this.onOverlayOutsideClick = output();
|
97
115
|
/**
|
98
|
-
*
|
116
|
+
* Event handler called after the overlay is open
|
117
|
+
* @group Emits
|
99
118
|
*/
|
100
119
|
this.onOpen = output();
|
101
120
|
/**
|
102
|
-
*
|
121
|
+
* Event handler called after the overlay is closed
|
122
|
+
* @group Emits
|
103
123
|
*/
|
104
124
|
this.onClosed = output();
|
105
125
|
/** @ingore */
|
@@ -503,6 +523,9 @@ const provideRdxCdkEventService = () => getProvider(false);
|
|
503
523
|
const injectRdxCdkEventService = () => inject(RdxCdkEventServiceToken, { optional: true });
|
504
524
|
|
505
525
|
let nextId = 0;
|
526
|
+
/**
|
527
|
+
* @group Components
|
528
|
+
*/
|
506
529
|
class RdxHoverCardRootDirective {
|
507
530
|
constructor() {
|
508
531
|
/** @ignore */
|
@@ -510,50 +533,61 @@ class RdxHoverCardRootDirective {
|
|
510
533
|
/** @ignore */
|
511
534
|
this.name = computed(() => `rdx-hover-card-root-${this.uniqueId()}`);
|
512
535
|
/**
|
513
|
-
*
|
514
|
-
* @
|
536
|
+
* The anchor directive that comes from outside the hover-card rootDirective
|
537
|
+
* @group Props
|
538
|
+
* @defaultValue undefined
|
515
539
|
*/
|
516
540
|
this.anchor = input(void 0);
|
517
541
|
/**
|
518
|
-
*
|
519
|
-
* @
|
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
|
520
545
|
*/
|
521
546
|
this.defaultOpen = input(false, { transform: booleanAttribute });
|
522
547
|
/**
|
523
|
-
*
|
524
|
-
* @
|
548
|
+
* The controlled state of the hover-card. `open` input takes precedence over `defaultOpen` input.
|
549
|
+
* @group Props
|
550
|
+
* @defaultValue undefined
|
525
551
|
*/
|
526
552
|
this.open = input(void 0, { transform: booleanAttribute });
|
527
553
|
/**
|
528
|
-
*
|
554
|
+
* The delay in milliseconds before the hover-card opens.
|
555
|
+
* @group Props
|
556
|
+
* @defaultValue 500
|
529
557
|
*/
|
530
558
|
this.openDelay = input(500, {
|
531
559
|
transform: numberAttribute
|
532
560
|
});
|
533
561
|
/**
|
534
|
-
*
|
562
|
+
* The delay in milliseconds before the hover-card closes.
|
563
|
+
* @group Props
|
564
|
+
* @defaultValue 200
|
535
565
|
*/
|
536
566
|
this.closeDelay = input(200, {
|
537
567
|
transform: numberAttribute
|
538
568
|
});
|
539
569
|
/**
|
540
|
-
*
|
541
|
-
* @
|
570
|
+
* Whether to control the state of the hover-card from outside. Use in conjunction with `open` input.
|
571
|
+
* @group Props
|
572
|
+
* @defaultValue undefined
|
542
573
|
*/
|
543
574
|
this.externalControl = input(void 0, { transform: booleanAttribute });
|
544
575
|
/**
|
545
|
-
*
|
546
|
-
* @
|
576
|
+
* Whether to take into account CSS opening/closing animations.
|
577
|
+
* @group Props
|
578
|
+
* @defaultValue false
|
547
579
|
*/
|
548
580
|
this.cssAnimation = input(false, { transform: booleanAttribute });
|
549
581
|
/**
|
550
|
-
*
|
551
|
-
* @
|
582
|
+
* Whether to take into account CSS opening animations. `cssAnimation` input must be set to 'true'
|
583
|
+
* @group Props
|
584
|
+
* @defaultValue false
|
552
585
|
*/
|
553
586
|
this.cssOpeningAnimation = input(false, { transform: booleanAttribute });
|
554
587
|
/**
|
555
|
-
*
|
556
|
-
* @
|
588
|
+
* Whether to take into account CSS closing animations. `cssAnimation` input must be set to 'true'
|
589
|
+
* @group Props
|
590
|
+
* @defaultValue false
|
557
591
|
*/
|
558
592
|
this.cssClosingAnimation = input(false, { transform: booleanAttribute });
|
559
593
|
/** @ignore */
|
@@ -920,6 +954,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImpor
|
|
920
954
|
}]
|
921
955
|
}] });
|
922
956
|
|
957
|
+
/**
|
958
|
+
* @group Components
|
959
|
+
*/
|
923
960
|
class RdxHoverCardArrowDirective {
|
924
961
|
constructor() {
|
925
962
|
/** @ignore */
|
@@ -929,13 +966,15 @@ class RdxHoverCardArrowDirective {
|
|
929
966
|
/** @ignore */
|
930
967
|
this.elementRef = inject(ElementRef);
|
931
968
|
/**
|
932
|
-
*
|
933
|
-
* @
|
969
|
+
* The width of the arrow in pixels.
|
970
|
+
* @group Props
|
971
|
+
* @defaultValue 10
|
934
972
|
*/
|
935
973
|
this.width = input(RDX_POSITIONING_DEFAULTS.arrow.width, { transform: numberAttribute });
|
936
974
|
/**
|
937
|
-
*
|
938
|
-
* @
|
975
|
+
* The height of the arrow in pixels.
|
976
|
+
* @group Props
|
977
|
+
* @defaultValue 5
|
939
978
|
*/
|
940
979
|
this.height = input(RDX_POSITIONING_DEFAULTS.arrow.height, { transform: numberAttribute });
|
941
980
|
/** @ignore */
|