@radix-ng/primitives 0.4.0 → 0.6.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/alert-dialog/README.md +1 -0
- package/alert-dialog/index.d.ts +6 -0
- package/alert-dialog/src/alert-dialog-cancel.directive.d.ts +7 -0
- package/alert-dialog/src/alert-dialog-content.directive.d.ts +8 -0
- package/alert-dialog/src/alert-dialog-root.directive.d.ts +9 -0
- package/alert-dialog/src/alert-dialog-title.directive.d.ts +5 -0
- package/alert-dialog/src/alert-dialog-trigger.directive.d.ts +7 -0
- package/alert-dialog/src/alert-dialog.service.d.ts +14 -0
- package/avatar/index.d.ts +3 -1
- package/avatar/src/avatar-fallback.directive.d.ts +10 -17
- package/avatar/src/avatar-image.directive.d.ts +10 -11
- package/avatar/src/avatar-root.directive.d.ts +21 -0
- package/avatar/src/avatar.config.d.ts +3 -2
- package/checkbox/src/checkbox.directive.d.ts +2 -1
- package/collapsible/README.md +1 -0
- package/collapsible/index.d.ts +3 -0
- package/collapsible/src/collapsible-content.directive.d.ts +11 -0
- package/collapsible/src/collapsible-root.directive.d.ts +52 -0
- package/collapsible/src/collapsible-trigger.directive.d.ts +26 -0
- package/esm2022/alert-dialog/index.mjs +7 -0
- package/esm2022/alert-dialog/radix-ng-primitives-alert-dialog.mjs +5 -0
- package/esm2022/alert-dialog/src/alert-dialog-cancel.directive.mjs +24 -0
- package/esm2022/alert-dialog/src/alert-dialog-content.directive.mjs +26 -0
- package/esm2022/alert-dialog/src/alert-dialog-root.directive.mjs +24 -0
- package/esm2022/alert-dialog/src/alert-dialog-title.directive.mjs +14 -0
- package/esm2022/alert-dialog/src/alert-dialog-trigger.directive.mjs +24 -0
- package/esm2022/alert-dialog/src/alert-dialog.service.mjs +45 -0
- package/esm2022/avatar/index.mjs +2 -2
- package/esm2022/avatar/src/avatar-fallback.directive.mjs +23 -30
- package/esm2022/avatar/src/avatar-image.directive.mjs +29 -31
- package/esm2022/avatar/src/avatar-root.directive.mjs +38 -0
- package/esm2022/avatar/src/avatar.config.mjs +2 -2
- package/esm2022/checkbox/src/checkbox-indicator.directive.mjs +4 -4
- package/esm2022/checkbox/src/checkbox.directive.mjs +4 -4
- package/esm2022/collapsible/index.mjs +4 -0
- package/esm2022/collapsible/radix-ng-primitives-collapsible.mjs +5 -0
- package/esm2022/collapsible/src/collapsible-content.directive.mjs +26 -0
- package/esm2022/collapsible/src/collapsible-root.directive.mjs +114 -0
- package/esm2022/collapsible/src/collapsible-trigger.directive.mjs +49 -0
- package/esm2022/label/index.mjs +2 -2
- package/esm2022/label/src/label-root.directive.mjs +48 -0
- package/esm2022/progress/index.mjs +2 -2
- package/esm2022/progress/src/progress-indicator.directive.mjs +11 -10
- package/esm2022/progress/src/progress-root.directive.mjs +71 -0
- package/esm2022/radio/index.mjs +2 -4
- package/esm2022/radio/src/radio-indicator.directive.mjs +8 -13
- package/esm2022/radio/src/radio-item.directive.mjs +27 -42
- package/esm2022/radio/src/radio-root.directive.mjs +106 -0
- package/esm2022/roving-focus/index.mjs +1 -3
- package/esm2022/roving-focus/src/roving-focus-group.directive.mjs +12 -18
- package/esm2022/roving-focus/src/roving-focus-item.directive.mjs +21 -26
- package/esm2022/separator/src/separator.directive.mjs +12 -17
- package/esm2022/switch/index.mjs +2 -3
- package/esm2022/switch/src/switch-root.directive.mjs +74 -0
- package/esm2022/switch/src/switch-thumb.directive.mjs +10 -12
- package/esm2022/toggle/index.mjs +2 -2
- package/esm2022/toggle/src/toggle-root.directive.mjs +51 -0
- package/esm2022/toggle-group/index.mjs +6 -0
- package/esm2022/toggle-group/radix-ng-primitives-toggle-group.mjs +5 -0
- package/esm2022/toggle-group/src/toggle-group-button.directive.mjs +79 -0
- package/esm2022/toggle-group/src/toggle-group-button.token.mjs +6 -0
- package/esm2022/toggle-group/src/toggle-group-multi.directive.mjs +159 -0
- package/esm2022/toggle-group/src/toggle-group.directive.mjs +157 -0
- package/esm2022/toggle-group/src/toggle-group.token.mjs +6 -0
- package/fesm2022/radix-ng-primitives-alert-dialog.mjs +150 -0
- package/fesm2022/radix-ng-primitives-alert-dialog.mjs.map +1 -0
- package/fesm2022/radix-ng-primitives-avatar.mjs +79 -90
- package/fesm2022/radix-ng-primitives-avatar.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-checkbox.mjs +6 -6
- package/fesm2022/radix-ng-primitives-checkbox.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-collapsible.mjs +190 -0
- package/fesm2022/radix-ng-primitives-collapsible.mjs.map +1 -0
- package/fesm2022/radix-ng-primitives-label.mjs +20 -18
- package/fesm2022/radix-ng-primitives-label.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-progress.mjs +55 -49
- package/fesm2022/radix-ng-primitives-progress.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-radio.mjs +70 -100
- package/fesm2022/radix-ng-primitives-radio.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-roving-focus.mjs +22 -44
- package/fesm2022/radix-ng-primitives-roving-focus.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-separator.mjs +12 -17
- package/fesm2022/radix-ng-primitives-separator.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-switch.mjs +49 -106
- package/fesm2022/radix-ng-primitives-switch.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-toggle-group.mjs +397 -0
- package/fesm2022/radix-ng-primitives-toggle-group.mjs.map +1 -0
- package/fesm2022/radix-ng-primitives-toggle.mjs +15 -29
- package/fesm2022/radix-ng-primitives-toggle.mjs.map +1 -1
- package/label/index.d.ts +1 -1
- package/label/src/label-root.directive.d.ts +13 -0
- package/package.json +18 -19
- package/progress/index.d.ts +2 -1
- package/progress/src/progress-indicator.directive.d.ts +2 -2
- package/progress/src/progress-root.directive.d.ts +29 -0
- package/radio/index.d.ts +1 -3
- package/radio/src/radio-indicator.directive.d.ts +3 -9
- package/radio/src/radio-item.directive.d.ts +9 -28
- package/radio/src/{radio-group.directive.d.ts → radio-root.directive.d.ts} +24 -16
- package/roving-focus/index.d.ts +0 -2
- package/roving-focus/src/roving-focus-group.directive.d.ts +5 -7
- package/roving-focus/src/roving-focus-item.directive.d.ts +6 -8
- package/separator/src/separator.directive.d.ts +14 -8
- package/switch/index.d.ts +2 -2
- package/switch/src/switch-root.directive.d.ts +35 -0
- package/switch/src/switch-thumb.directive.d.ts +2 -5
- package/toggle/index.d.ts +2 -1
- package/toggle/src/toggle-root.directive.d.ts +32 -0
- package/toggle-group/README.md +3 -0
- package/toggle-group/index.d.ts +5 -0
- package/toggle-group/src/toggle-group-button.directive.d.ts +39 -0
- package/toggle-group/src/toggle-group-button.token.d.ts +4 -0
- package/toggle-group/src/toggle-group-multi.directive.d.ts +90 -0
- package/toggle-group/src/toggle-group.directive.d.ts +90 -0
- package/toggle-group/src/toggle-group.token.d.ts +5 -0
- package/avatar/src/avatar.directive.d.ts +0 -22
- package/avatar/src/avatar.token.d.ts +0 -4
- package/esm2022/avatar/src/avatar.directive.mjs +0 -38
- package/esm2022/avatar/src/avatar.token.mjs +0 -6
- package/esm2022/label/src/label.directive.mjs +0 -46
- package/esm2022/overlay/index.mjs +0 -5
- package/esm2022/overlay/radix-ng-primitives-overlay.mjs +0 -5
- package/esm2022/overlay/src/overlay-arrow.directive.mjs +0 -59
- package/esm2022/overlay/src/overlay-arrow.token.mjs +0 -3
- package/esm2022/overlay/src/overlay-trigger.directive.mjs +0 -279
- package/esm2022/overlay/src/overlay-trigger.token.mjs +0 -9
- package/esm2022/overlay/src/overlay.directive.mjs +0 -51
- package/esm2022/overlay/src/overlay.token.mjs +0 -3
- package/esm2022/progress/src/progress.directive.mjs +0 -62
- package/esm2022/progress/src/progress.token.mjs +0 -6
- package/esm2022/radio/src/radio-group.directive.mjs +0 -108
- package/esm2022/radio/src/radio-group.token.mjs +0 -6
- package/esm2022/radio/src/radio-item.token.mjs +0 -6
- package/esm2022/roving-focus/src/roving-focus-group.token.mjs +0 -9
- package/esm2022/roving-focus/src/roving-focus-item.token.mjs +0 -6
- package/esm2022/switch/src/switch.directive.mjs +0 -125
- package/esm2022/switch/src/switch.token.mjs +0 -6
- package/esm2022/toggle/src/toggle.directive.mjs +0 -65
- package/esm2022/tooltip/index.mjs +0 -5
- package/esm2022/tooltip/radix-ng-primitives-tooltip.mjs +0 -5
- package/esm2022/tooltip/src/tooltip-arrow.directive.mjs +0 -17
- package/esm2022/tooltip/src/tooltip-trigger.directive.mjs +0 -148
- package/esm2022/tooltip/src/tooltip-trigger.token.mjs +0 -6
- package/esm2022/tooltip/src/tooltip.config.mjs +0 -31
- package/esm2022/tooltip/src/tooltip.directive.mjs +0 -46
- package/esm2022/visually-hidden/index.mjs +0 -2
- package/esm2022/visually-hidden/radix-ng-primitives-visually-hidden.mjs +0 -5
- package/esm2022/visually-hidden/src/visually-hidden.directive.mjs +0 -42
- package/fesm2022/radix-ng-primitives-overlay.mjs +0 -399
- package/fesm2022/radix-ng-primitives-overlay.mjs.map +0 -1
- package/fesm2022/radix-ng-primitives-tooltip.mjs +0 -242
- package/fesm2022/radix-ng-primitives-tooltip.mjs.map +0 -1
- package/fesm2022/radix-ng-primitives-visually-hidden.mjs +0 -49
- package/fesm2022/radix-ng-primitives-visually-hidden.mjs.map +0 -1
- package/label/src/label.directive.d.ts +0 -14
- package/overlay/README.md +0 -1
- package/overlay/index.d.ts +0 -4
- package/overlay/src/overlay-arrow.directive.d.ts +0 -29
- package/overlay/src/overlay-arrow.token.d.ts +0 -3
- package/overlay/src/overlay-trigger.directive.d.ts +0 -163
- package/overlay/src/overlay-trigger.token.d.ts +0 -7
- package/overlay/src/overlay.directive.d.ts +0 -29
- package/overlay/src/overlay.token.d.ts +0 -3
- package/progress/src/progress.directive.d.ts +0 -26
- package/progress/src/progress.token.d.ts +0 -4
- package/radio/src/radio-group.token.d.ts +0 -4
- package/radio/src/radio-item.token.d.ts +0 -4
- package/roving-focus/src/roving-focus-group.token.d.ts +0 -7
- package/roving-focus/src/roving-focus-item.token.d.ts +0 -4
- package/switch/src/switch.directive.d.ts +0 -73
- package/switch/src/switch.token.d.ts +0 -4
- package/toggle/src/toggle.directive.d.ts +0 -30
- package/tooltip/README.md +0 -1
- package/tooltip/index.d.ts +0 -4
- package/tooltip/src/tooltip-arrow.directive.d.ts +0 -6
- package/tooltip/src/tooltip-trigger.directive.d.ts +0 -79
- package/tooltip/src/tooltip-trigger.token.d.ts +0 -4
- package/tooltip/src/tooltip.config.d.ts +0 -46
- package/tooltip/src/tooltip.directive.d.ts +0 -17
- package/visually-hidden/README.md +0 -3
- package/visually-hidden/index.d.ts +0 -1
- package/visually-hidden/src/visually-hidden.directive.d.ts +0 -11
@@ -1,73 +0,0 @@
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
2
|
-
import { ControlValueAccessor } from '@angular/forms';
|
3
|
-
import * as i0 from "@angular/core";
|
4
|
-
export declare class RdxSwitchDirective implements ControlValueAccessor {
|
5
|
-
/**
|
6
|
-
* Access the element ref.
|
7
|
-
*/
|
8
|
-
private readonly elementRef;
|
9
|
-
/**
|
10
|
-
* Determine if the switch is a button
|
11
|
-
*/
|
12
|
-
protected isButton: boolean;
|
13
|
-
/**
|
14
|
-
* Determine if the switch is checked.
|
15
|
-
* The controlled state of the switch.
|
16
|
-
* @default false
|
17
|
-
*/
|
18
|
-
checked: boolean;
|
19
|
-
/**
|
20
|
-
* Determine if the switch is disabled.
|
21
|
-
* When true, prevents the user from interacting with the switch.
|
22
|
-
* @default false
|
23
|
-
*/
|
24
|
-
disabled: boolean;
|
25
|
-
/**
|
26
|
-
* Event emitted when the checked state changes.
|
27
|
-
*/
|
28
|
-
readonly checkedChange: EventEmitter<boolean>;
|
29
|
-
/**
|
30
|
-
* Store the onChange callback.
|
31
|
-
*/
|
32
|
-
private onChange?;
|
33
|
-
/**
|
34
|
-
* Store the onTouched callback.
|
35
|
-
*/
|
36
|
-
protected onTouched?: () => void;
|
37
|
-
/**
|
38
|
-
* Register the onChange callback.
|
39
|
-
* @param fn The onChange callback.
|
40
|
-
* @internal
|
41
|
-
*/
|
42
|
-
registerOnChange(fn: (checked: boolean) => void): void;
|
43
|
-
/**
|
44
|
-
* Register the onTouched callback.
|
45
|
-
* @param fn The onTouched callback.
|
46
|
-
* @internal
|
47
|
-
*/
|
48
|
-
registerOnTouched(fn: () => void): void;
|
49
|
-
/**
|
50
|
-
* Write the value to the checked state.
|
51
|
-
* @param checked The checked state.
|
52
|
-
* @internal
|
53
|
-
*/
|
54
|
-
writeValue(checked: boolean): void;
|
55
|
-
/**
|
56
|
-
* Set the disabled state.
|
57
|
-
* @param isDisabled The disabled state.
|
58
|
-
* @internal
|
59
|
-
*/
|
60
|
-
setDisabledState(isDisabled: boolean): void;
|
61
|
-
/**
|
62
|
-
* Toggle the checked state.
|
63
|
-
*/
|
64
|
-
toggle(): void;
|
65
|
-
/**
|
66
|
-
* Handle the keydown event.
|
67
|
-
*/
|
68
|
-
protected onKeyDown(): void;
|
69
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RdxSwitchDirective, never>;
|
70
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxSwitchDirective, "[rdxSwitch]", never, { "checked": { "alias": "checked"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "checkedChange": "checkedChange"; }, never, never, true, never>;
|
71
|
-
static ngAcceptInputType_checked: unknown;
|
72
|
-
static ngAcceptInputType_disabled: unknown;
|
73
|
-
}
|
@@ -1,30 +0,0 @@
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
2
|
-
import * as i0 from "@angular/core";
|
3
|
-
export declare class RdxToggleDirective {
|
4
|
-
/**
|
5
|
-
* Whether the toggle is pressed.
|
6
|
-
* @default false
|
7
|
-
*/
|
8
|
-
pressed: boolean;
|
9
|
-
/**
|
10
|
-
* Whether the toggle is disabled.
|
11
|
-
* @default false
|
12
|
-
*/
|
13
|
-
disabled: boolean;
|
14
|
-
/**
|
15
|
-
* Determine element id
|
16
|
-
*/
|
17
|
-
id: string;
|
18
|
-
/**
|
19
|
-
* Event emitted when the toggle is pressed.
|
20
|
-
*/
|
21
|
-
readonly pressedChange: EventEmitter<boolean>;
|
22
|
-
/**
|
23
|
-
* Toggle the pressed state.
|
24
|
-
*/
|
25
|
-
toggle(): void;
|
26
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RdxToggleDirective, never>;
|
27
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxToggleDirective, "button[rdxToggle]", never, { "pressed": { "alias": "rdxTogglePressed"; "required": false; }; "disabled": { "alias": "rdxToggleDisabled"; "required": false; }; "id": { "alias": "id"; "required": false; }; }, { "pressedChange": "rdxToggleOnPressedChange"; }, never, never, true, never>;
|
28
|
-
static ngAcceptInputType_pressed: unknown;
|
29
|
-
static ngAcceptInputType_disabled: unknown;
|
30
|
-
}
|
package/tooltip/README.md
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
# @radix-ng/primitives/tooltip
|
package/tooltip/index.d.ts
DELETED
@@ -1,6 +0,0 @@
|
|
1
|
-
import * as i0 from "@angular/core";
|
2
|
-
import * as i1 from "@radix-ng/primitives/overlay";
|
3
|
-
export declare class RdxTooltipArrowDirective {
|
4
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RdxTooltipArrowDirective, never>;
|
5
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxTooltipArrowDirective, "[rdxTooltipArrow]", never, {}, {}, never, never, true, [{ directive: typeof i1.RdxOverlayArrowDirective; inputs: {}; outputs: {}; }]>;
|
6
|
-
}
|
@@ -1,79 +0,0 @@
|
|
1
|
-
import { OnInit, TemplateRef } from '@angular/core';
|
2
|
-
import { Placement } from '@floating-ui/dom';
|
3
|
-
import * as i0 from "@angular/core";
|
4
|
-
import * as i1 from "@radix-ng/primitives/overlay";
|
5
|
-
export declare class RdxTooltipTriggerDirective implements OnInit {
|
6
|
-
/**
|
7
|
-
* Access the overlay trigger directive
|
8
|
-
*/
|
9
|
-
private readonly overlayTrigger;
|
10
|
-
/**
|
11
|
-
* Access the global tooltip configuration
|
12
|
-
*/
|
13
|
-
private readonly tooltipConfig;
|
14
|
-
/**
|
15
|
-
* Define the tooltip to display when the trigger is activated.
|
16
|
-
*/
|
17
|
-
templateRef: TemplateRef<void>;
|
18
|
-
/**
|
19
|
-
* Define if the trigger should be disabled.
|
20
|
-
* @default false
|
21
|
-
*/
|
22
|
-
disabled: boolean;
|
23
|
-
/**
|
24
|
-
* Define the placement of the tooltip relative to the trigger.
|
25
|
-
* @default 'bottom'
|
26
|
-
*/
|
27
|
-
placement: Placement;
|
28
|
-
/**
|
29
|
-
* Define the offset of the tooltip relative to the trigger.
|
30
|
-
* @default 0
|
31
|
-
*/
|
32
|
-
offset: number;
|
33
|
-
/**
|
34
|
-
* Define the delay before the tooltip is displayed.
|
35
|
-
* @default 0
|
36
|
-
*/
|
37
|
-
showDelay: number;
|
38
|
-
/**
|
39
|
-
* Define the delay before the tooltip is hidden.
|
40
|
-
* @default 0
|
41
|
-
*/
|
42
|
-
hideDelay: number;
|
43
|
-
/**
|
44
|
-
* Define whether the tooltip should flip when there is not enough space for the tooltip.
|
45
|
-
* @default true
|
46
|
-
*/
|
47
|
-
flip: boolean;
|
48
|
-
/**
|
49
|
-
* Define the container in to which the tooltip should be attached.
|
50
|
-
* @default document.body
|
51
|
-
*/
|
52
|
-
container: HTMLElement;
|
53
|
-
/**
|
54
|
-
* The tooltip id.
|
55
|
-
*/
|
56
|
-
protected tooltipId?: string;
|
57
|
-
ngOnInit(): void;
|
58
|
-
/**
|
59
|
-
* Show the tooltip.
|
60
|
-
*/
|
61
|
-
show(): void;
|
62
|
-
/**
|
63
|
-
* Hide the tooltip.
|
64
|
-
*/
|
65
|
-
hide(): void;
|
66
|
-
/**
|
67
|
-
* Define the tooltip id.
|
68
|
-
* @param id The tooltip id
|
69
|
-
* @internal
|
70
|
-
*/
|
71
|
-
setTooltipId(id: string): void;
|
72
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RdxTooltipTriggerDirective, never>;
|
73
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxTooltipTriggerDirective, "[rdxTooltipTrigger]", never, { "templateRef": { "alias": "rdxTooltipTrigger"; "required": true; }; "disabled": { "alias": "rdxTooltipDisabled"; "required": false; }; "placement": { "alias": "rdxTooltipPlacement"; "required": false; }; "offset": { "alias": "rdxTooltipOffset"; "required": false; }; "showDelay": { "alias": "rdxTooltipShowDelay"; "required": false; }; "hideDelay": { "alias": "rdxTooltipHideDelay"; "required": false; }; "flip": { "alias": "rdxTooltipFlip"; "required": false; }; "container": { "alias": "rdxTooltipContainer"; "required": false; }; }, {}, never, never, true, [{ directive: typeof i1.RdxOverlayTriggerDirective; inputs: { "rdxOverlayTrigger": "rdxTooltipTrigger"; "rdxOverlayDisabled": "rdxTooltipDisabled"; "rdxOverlayPlacement": "rdxTooltipPlacement"; "rdxOverlayOffset": "rdxTooltipOffset"; "rdxOverlayShowDelay": "rdxTooltipShowDelay"; "rdxOverlayHideDelay": "rdxTooltipHideDelay"; "rdxOverlayShift": "rdxTooltipShift"; "rdxOverlayFlip": "rdxTooltipFlip"; "rdxOverlayContainer": "rdxTooltipContainer"; }; outputs: {}; }]>;
|
74
|
-
static ngAcceptInputType_disabled: unknown;
|
75
|
-
static ngAcceptInputType_offset: unknown;
|
76
|
-
static ngAcceptInputType_showDelay: unknown;
|
77
|
-
static ngAcceptInputType_hideDelay: unknown;
|
78
|
-
static ngAcceptInputType_flip: unknown;
|
79
|
-
}
|
@@ -1,4 +0,0 @@
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
2
|
-
import type { RdxTooltipTriggerDirective } from './tooltip-trigger.directive';
|
3
|
-
export declare const RdxTooltipTriggerToken: InjectionToken<RdxTooltipTriggerDirective>;
|
4
|
-
export declare function injectTooltipTrigger(): RdxTooltipTriggerDirective;
|
@@ -1,46 +0,0 @@
|
|
1
|
-
import { InjectionToken, Provider } from '@angular/core';
|
2
|
-
import { Placement } from '@floating-ui/dom';
|
3
|
-
export declare const TooltipConfigToken: InjectionToken<RdxTooltipConfig>;
|
4
|
-
export interface RdxTooltipConfig {
|
5
|
-
/**
|
6
|
-
* Define the offset of the tooltip relative to the trigger.
|
7
|
-
* @default 4
|
8
|
-
*/
|
9
|
-
offset: number;
|
10
|
-
/**
|
11
|
-
* Define the placement of the tooltip relative to the trigger.
|
12
|
-
* @default 'top'
|
13
|
-
*/
|
14
|
-
placement: Placement;
|
15
|
-
/**
|
16
|
-
* Define the delay before the tooltip is shown.
|
17
|
-
* @default 0
|
18
|
-
*/
|
19
|
-
showDelay: number;
|
20
|
-
/**
|
21
|
-
* Define the delay before the tooltip is hidden.
|
22
|
-
* @default 0
|
23
|
-
*/
|
24
|
-
hideDelay: number;
|
25
|
-
/**
|
26
|
-
* Define whether the tooltip should flip when there is not enough space for the tooltip.
|
27
|
-
* @default true
|
28
|
-
*/
|
29
|
-
flip: boolean;
|
30
|
-
/**
|
31
|
-
* Define the container in to which the tooltip should be attached.
|
32
|
-
* @default document.body
|
33
|
-
*/
|
34
|
-
container: HTMLElement;
|
35
|
-
}
|
36
|
-
/**
|
37
|
-
* Provide the default Tooltip configuration
|
38
|
-
* @param config The Tooltip configuration
|
39
|
-
* @returns The provider
|
40
|
-
*/
|
41
|
-
export declare function provideTooltipConfig(config: Partial<RdxTooltipConfig>): Provider[];
|
42
|
-
/**
|
43
|
-
* Inject the Tooltip configuration
|
44
|
-
* @returns The global Tooltip configuration
|
45
|
-
*/
|
46
|
-
export declare function injectTooltipConfig(): RdxTooltipConfig;
|
@@ -1,17 +0,0 @@
|
|
1
|
-
import { OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
2
|
-
import * as i0 from "@angular/core";
|
3
|
-
import * as i1 from "@radix-ng/primitives/overlay";
|
4
|
-
export declare class RdxTooltipDirective implements OnInit, OnChanges {
|
5
|
-
/**
|
6
|
-
* Access the tooltip trigger
|
7
|
-
*/
|
8
|
-
private readonly trigger;
|
9
|
-
/**
|
10
|
-
* Define the tooltip id
|
11
|
-
*/
|
12
|
-
id: string;
|
13
|
-
ngOnInit(): void;
|
14
|
-
ngOnChanges(changes: SimpleChanges): void;
|
15
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RdxTooltipDirective, never>;
|
16
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxTooltipDirective, "[rdxTooltip]", ["rdxTooltip"], { "id": { "alias": "id"; "required": false; }; }, {}, never, never, true, [{ directive: typeof i1.RdxOverlayDirective; inputs: {}; outputs: {}; }]>;
|
17
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
export * from './src/visually-hidden.directive';
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import { OnInit } from '@angular/core';
|
2
|
-
import * as i0 from "@angular/core";
|
3
|
-
export declare class RdxVisuallyHiddenDirective implements OnInit {
|
4
|
-
/**
|
5
|
-
* Access the element.
|
6
|
-
*/
|
7
|
-
private readonly element;
|
8
|
-
ngOnInit(): void;
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RdxVisuallyHiddenDirective, never>;
|
10
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxVisuallyHiddenDirective, "[rdxVisuallyHidden]", never, {}, {}, never, never, true, never>;
|
11
|
-
}
|