@radix-ng/primitives 0.23.0 → 0.25.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/avatar/src/avatar-fallback.directive.d.ts +1 -1
- package/compodoc/documentation.json +14309 -15232
- package/core/index.d.ts +3 -2
- package/core/src/positioning/constants.d.ts +2 -0
- package/core/src/positioning/types.d.ts +31 -0
- package/{popover/src/popover.utils.d.ts → core/src/positioning/utils.d.ts} +4 -4
- package/dialog/src/dialog-trigger.directive.d.ts +12 -0
- package/fesm2022/radix-ng-primitives-accordion.mjs +19 -19
- package/fesm2022/radix-ng-primitives-accordion.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-alert-dialog.mjs +22 -22
- package/fesm2022/radix-ng-primitives-alert-dialog.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-aspect-ratio.mjs +3 -3
- package/fesm2022/radix-ng-primitives-aspect-ratio.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-avatar.mjs +17 -17
- package/fesm2022/radix-ng-primitives-avatar.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-checkbox.mjs +16 -16
- package/fesm2022/radix-ng-primitives-checkbox.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-collapsible.mjs +9 -9
- package/fesm2022/radix-ng-primitives-collapsible.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-context-menu.mjs +34 -34
- package/fesm2022/radix-ng-primitives-context-menu.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-core.mjs +211 -236
- package/fesm2022/radix-ng-primitives-core.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-dialog.mjs +31 -26
- package/fesm2022/radix-ng-primitives-dialog.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-dropdown-menu.mjs +34 -34
- package/fesm2022/radix-ng-primitives-dropdown-menu.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-label.mjs +3 -3
- package/fesm2022/radix-ng-primitives-label.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-menu.mjs +22 -22
- package/fesm2022/radix-ng-primitives-menu.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-menubar.mjs +31 -31
- package/fesm2022/radix-ng-primitives-menubar.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-popover.mjs +246 -266
- package/fesm2022/radix-ng-primitives-popover.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-progress.mjs +10 -10
- package/fesm2022/radix-ng-primitives-progress.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-radio.mjs +12 -12
- package/fesm2022/radix-ng-primitives-radio.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-roving-focus.mjs +6 -6
- package/fesm2022/radix-ng-primitives-roving-focus.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-select.mjs +34 -35
- package/fesm2022/radix-ng-primitives-select.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-separator.mjs +3 -3
- package/fesm2022/radix-ng-primitives-separator.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-slider.mjs +31 -34
- package/fesm2022/radix-ng-primitives-slider.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-switch.mjs +18 -15
- package/fesm2022/radix-ng-primitives-switch.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-tabs.mjs +16 -16
- package/fesm2022/radix-ng-primitives-tabs.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-toggle-group.mjs +9 -9
- package/fesm2022/radix-ng-primitives-toggle-group.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-toggle.mjs +6 -6
- package/fesm2022/radix-ng-primitives-toggle.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-tooltip.mjs +143 -242
- package/fesm2022/radix-ng-primitives-tooltip.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-visually-hidden.mjs +9 -9
- package/fesm2022/radix-ng-primitives-visually-hidden.mjs.map +1 -1
- package/package.json +3 -57
- package/popover/index.d.ts +0 -1
- package/popover/src/popover-arrow.directive.d.ts +3 -4
- package/popover/src/popover-content.directive.d.ts +17 -9
- package/popover/src/popover-root.directive.d.ts +25 -1
- package/popover/src/popover.constants.d.ts +0 -2
- package/popover/src/popover.types.d.ts +0 -31
- package/popover/src/utils/cdk-event.service.d.ts +30 -0
- package/popover/src/utils/constants.d.ts +1 -0
- package/popover/src/utils/types.d.ts +7 -0
- package/switch/src/switch-root.directive.d.ts +4 -1
- package/tooltip/src/tooltip-arrow.directive.d.ts +14 -1
- package/tooltip/src/tooltip-content.directive.d.ts +4 -5
- package/tooltip/src/tooltip-root.directive.d.ts +6 -3
- package/tooltip/src/tooltip.types.d.ts +0 -11
- package/core/src/control-value-accessor/index.d.ts +0 -75
- package/core/src/create-inject-context/assert-injector.d.ts +0 -51
- package/core/src/create-inject-context/index.d.ts +0 -68
- package/core/src/types.d.ts +0 -23
- package/esm2022/accordion/index.mjs +0 -40
- package/esm2022/accordion/radix-ng-primitives-accordion.mjs +0 -5
- package/esm2022/accordion/src/accordion-content.directive.mjs +0 -42
- package/esm2022/accordion/src/accordion-header.directive.mjs +0 -23
- package/esm2022/accordion/src/accordion-item.directive.mjs +0 -196
- package/esm2022/accordion/src/accordion-root.directive.mjs +0 -200
- package/esm2022/accordion/src/accordion-trigger.directive.mjs +0 -42
- package/esm2022/alert-dialog/index.mjs +0 -41
- package/esm2022/alert-dialog/radix-ng-primitives-alert-dialog.mjs +0 -5
- package/esm2022/alert-dialog/src/alert-dialog-cancel.directive.mjs +0 -24
- package/esm2022/alert-dialog/src/alert-dialog-content.directive.mjs +0 -34
- package/esm2022/alert-dialog/src/alert-dialog-root.directive.mjs +0 -24
- package/esm2022/alert-dialog/src/alert-dialog-title.directive.mjs +0 -14
- package/esm2022/alert-dialog/src/alert-dialog-trigger.directive.mjs +0 -24
- package/esm2022/alert-dialog/src/alert-dialog.service.mjs +0 -46
- package/esm2022/aspect-ratio/index.mjs +0 -2
- package/esm2022/aspect-ratio/radix-ng-primitives-aspect-ratio.mjs +0 -5
- package/esm2022/aspect-ratio/src/aspect-ratio.directive.mjs +0 -57
- package/esm2022/avatar/index.mjs +0 -31
- package/esm2022/avatar/radix-ng-primitives-avatar.mjs +0 -5
- package/esm2022/avatar/src/avatar-fallback.directive.mjs +0 -67
- package/esm2022/avatar/src/avatar-image.directive.mjs +0 -65
- package/esm2022/avatar/src/avatar-root.directive.mjs +0 -26
- package/esm2022/avatar/src/avatar.config.mjs +0 -17
- package/esm2022/checkbox/index.mjs +0 -36
- package/esm2022/checkbox/radix-ng-primitives-checkbox.mjs +0 -5
- package/esm2022/checkbox/src/checkbox-button.directive.mjs +0 -33
- package/esm2022/checkbox/src/checkbox-indicator.directive.mjs +0 -24
- package/esm2022/checkbox/src/checkbox-input.directive.mjs +0 -44
- package/esm2022/checkbox/src/checkbox.directive.mjs +0 -141
- package/esm2022/checkbox/src/checkbox.token.mjs +0 -6
- package/esm2022/collapsible/index.mjs +0 -4
- package/esm2022/collapsible/radix-ng-primitives-collapsible.mjs +0 -5
- package/esm2022/collapsible/src/collapsible-content.directive.mjs +0 -42
- package/esm2022/collapsible/src/collapsible-content.token.mjs +0 -3
- package/esm2022/collapsible/src/collapsible-root.directive.mjs +0 -127
- package/esm2022/collapsible/src/collapsible-trigger.directive.mjs +0 -49
- package/esm2022/context-menu/index.mjs +0 -65
- package/esm2022/context-menu/radix-ng-primitives-context-menu.mjs +0 -5
- package/esm2022/context-menu/src/context-menu-content.directive.mjs +0 -56
- package/esm2022/context-menu/src/context-menu-item-checkbox.directive.mjs +0 -39
- package/esm2022/context-menu/src/context-menu-item-indicator.directive.mjs +0 -22
- package/esm2022/context-menu/src/context-menu-item-radio-group.directive.mjs +0 -37
- package/esm2022/context-menu/src/context-menu-item-radio.directive.mjs +0 -67
- package/esm2022/context-menu/src/context-menu-item-selectable.mjs +0 -31
- package/esm2022/context-menu/src/context-menu-item.directive.mjs +0 -70
- package/esm2022/context-menu/src/context-menu-label.directive.mjs +0 -14
- package/esm2022/context-menu/src/context-menu-separator.directive.mjs +0 -21
- package/esm2022/context-menu/src/context-menu-trigger.directive.mjs +0 -92
- package/esm2022/core/index.mjs +0 -11
- package/esm2022/core/radix-ng-primitives-core.mjs +0 -5
- package/esm2022/core/src/accessor/provide-value-accessor.mjs +0 -19
- package/esm2022/core/src/auto-focus.directive.mjs +0 -80
- package/esm2022/core/src/control-value-accessor/index.mjs +0 -103
- package/esm2022/core/src/create-inject-context/assert-injector.mjs +0 -15
- package/esm2022/core/src/create-inject-context/index.mjs +0 -116
- package/esm2022/core/src/document.mjs +0 -6
- package/esm2022/core/src/id-generator.mjs +0 -43
- package/esm2022/core/src/inject-ng-control.mjs +0 -17
- package/esm2022/core/src/is-client.mjs +0 -6
- package/esm2022/core/src/is-inside-form.mjs +0 -7
- package/esm2022/core/src/types.mjs +0 -2
- package/esm2022/core/src/window.mjs +0 -15
- package/esm2022/dialog/index.mjs +0 -50
- package/esm2022/dialog/radix-ng-primitives-dialog.mjs +0 -5
- package/esm2022/dialog/src/dialog-close.directive.mjs +0 -25
- package/esm2022/dialog/src/dialog-content.directive.mjs +0 -46
- package/esm2022/dialog/src/dialog-description.directive.mjs +0 -14
- package/esm2022/dialog/src/dialog-dismiss.directive.mjs +0 -25
- package/esm2022/dialog/src/dialog-ref.mjs +0 -46
- package/esm2022/dialog/src/dialog-title.directive.mjs +0 -14
- package/esm2022/dialog/src/dialog-trigger.directive.mjs +0 -54
- package/esm2022/dialog/src/dialog.config.mjs +0 -6
- package/esm2022/dialog/src/dialog.injectors.mjs +0 -10
- package/esm2022/dialog/src/dialog.providers.mjs +0 -26
- package/esm2022/dialog/src/dialog.service.mjs +0 -96
- package/esm2022/dropdown-menu/index.mjs +0 -68
- package/esm2022/dropdown-menu/radix-ng-primitives-dropdown-menu.mjs +0 -5
- package/esm2022/dropdown-menu/src/dropdown-menu-content.directive.mjs +0 -56
- package/esm2022/dropdown-menu/src/dropdown-menu-item-checkbox.directive.mjs +0 -39
- package/esm2022/dropdown-menu/src/dropdown-menu-item-indicator.directive.mjs +0 -22
- package/esm2022/dropdown-menu/src/dropdown-menu-item-radio-group.directive.mjs +0 -37
- package/esm2022/dropdown-menu/src/dropdown-menu-item-radio.directive.mjs +0 -67
- package/esm2022/dropdown-menu/src/dropdown-menu-item-selectable.mjs +0 -31
- package/esm2022/dropdown-menu/src/dropdown-menu-item.directive.mjs +0 -73
- package/esm2022/dropdown-menu/src/dropdown-menu-label.directive.mjs +0 -14
- package/esm2022/dropdown-menu/src/dropdown-menu-separator.directive.mjs +0 -21
- package/esm2022/dropdown-menu/src/dropdown-menu-trigger.directive.mjs +0 -210
- package/esm2022/index.mjs +0 -2
- package/esm2022/label/index.mjs +0 -2
- package/esm2022/label/radix-ng-primitives-label.mjs +0 -5
- package/esm2022/label/src/label.directive.mjs +0 -57
- package/esm2022/menu/index.mjs +0 -45
- package/esm2022/menu/radix-ng-primitives-menu.mjs +0 -5
- package/esm2022/menu/src/menu-content.directive.mjs +0 -17
- package/esm2022/menu/src/menu-directive.mjs +0 -18
- package/esm2022/menu/src/menu-group.directive.mjs +0 -20
- package/esm2022/menu/src/menu-item.directive.mjs +0 -46
- package/esm2022/menu/src/menu-label.directive.mjs +0 -14
- package/esm2022/menu/src/menu-separator.directive.mjs +0 -21
- package/esm2022/menubar/index.mjs +0 -60
- package/esm2022/menubar/radix-ng-primitives-menubar.mjs +0 -5
- package/esm2022/menubar/src/menubar-content.directive.mjs +0 -17
- package/esm2022/menubar/src/menubar-item-checkbox.directive.mjs +0 -34
- package/esm2022/menubar/src/menubar-item-indicator.directive.mjs +0 -17
- package/esm2022/menubar/src/menubar-item-radio.directive.mjs +0 -35
- package/esm2022/menubar/src/menubar-item.directive.mjs +0 -20
- package/esm2022/menubar/src/menubar-radio-group.directive.mjs +0 -17
- package/esm2022/menubar/src/menubar-root.directive.mjs +0 -24
- package/esm2022/menubar/src/menubar-separator.directive.mjs +0 -17
- package/esm2022/menubar/src/menubar-trigger.directive.mjs +0 -45
- package/esm2022/popover/index.mjs +0 -51
- package/esm2022/popover/radix-ng-primitives-popover.mjs +0 -5
- package/esm2022/popover/src/popover-anchor.directive.mjs +0 -70
- package/esm2022/popover/src/popover-anchor.token.mjs +0 -3
- package/esm2022/popover/src/popover-arrow.directive.mjs +0 -117
- package/esm2022/popover/src/popover-arrow.token.mjs +0 -3
- package/esm2022/popover/src/popover-close.directive.mjs +0 -49
- package/esm2022/popover/src/popover-close.token.mjs +0 -3
- package/esm2022/popover/src/popover-content-attributes.component.mjs +0 -70
- package/esm2022/popover/src/popover-content-attributes.token.mjs +0 -3
- package/esm2022/popover/src/popover-content.directive.mjs +0 -255
- package/esm2022/popover/src/popover-root.directive.mjs +0 -315
- package/esm2022/popover/src/popover-root.inject.mjs +0 -7
- package/esm2022/popover/src/popover-trigger.directive.mjs +0 -41
- package/esm2022/popover/src/popover.constants.mjs +0 -90
- package/esm2022/popover/src/popover.types.mjs +0 -31
- package/esm2022/popover/src/popover.utils.mjs +0 -107
- package/esm2022/progress/index.mjs +0 -25
- package/esm2022/progress/radix-ng-primitives-progress.mjs +0 -5
- package/esm2022/progress/src/progress-indicator.directive.mjs +0 -33
- package/esm2022/progress/src/progress-root.directive.mjs +0 -132
- package/esm2022/radio/index.mjs +0 -5
- package/esm2022/radio/radix-ng-primitives-radio.mjs +0 -5
- package/esm2022/radio/src/radio-indicator.directive.mjs +0 -25
- package/esm2022/radio/src/radio-item-input.directive.mjs +0 -37
- package/esm2022/radio/src/radio-item.directive.mjs +0 -86
- package/esm2022/radio/src/radio-root.directive.mjs +0 -104
- package/esm2022/radio/src/radio-tokens.mjs +0 -3
- package/esm2022/radix-ng-primitives.mjs +0 -5
- package/esm2022/roving-focus/index.mjs +0 -3
- package/esm2022/roving-focus/radix-ng-primitives-roving-focus.mjs +0 -5
- package/esm2022/roving-focus/src/roving-focus-group.directive.mjs +0 -138
- package/esm2022/roving-focus/src/roving-focus-item.directive.mjs +0 -133
- package/esm2022/roving-focus/src/utils.mjs +0 -47
- package/esm2022/select/index.mjs +0 -65
- package/esm2022/select/radix-ng-primitives-select.mjs +0 -5
- package/esm2022/select/src/select-content.directive.mjs +0 -53
- package/esm2022/select/src/select-group.directive.mjs +0 -18
- package/esm2022/select/src/select-icon.directive.mjs +0 -18
- package/esm2022/select/src/select-item-indicator.directive.mjs +0 -23
- package/esm2022/select/src/select-item.directive.mjs +0 -122
- package/esm2022/select/src/select-label.directive.mjs +0 -15
- package/esm2022/select/src/select-separator.directive.mjs +0 -18
- package/esm2022/select/src/select-trigger.directive.mjs +0 -38
- package/esm2022/select/src/select-value.directive.mjs +0 -21
- package/esm2022/select/src/select.component.mjs +0 -234
- package/esm2022/separator/index.mjs +0 -2
- package/esm2022/separator/radix-ng-primitives-separator.mjs +0 -5
- package/esm2022/separator/src/separator.directive.mjs +0 -61
- package/esm2022/slider/index.mjs +0 -28
- package/esm2022/slider/radix-ng-primitives-slider.mjs +0 -5
- package/esm2022/slider/src/slider-horizontal.component.mjs +0 -117
- package/esm2022/slider/src/slider-impl.directive.mjs +0 -89
- package/esm2022/slider/src/slider-orientation-context.service.mjs +0 -27
- package/esm2022/slider/src/slider-range.component.mjs +0 -41
- package/esm2022/slider/src/slider-root.component.mjs +0 -210
- package/esm2022/slider/src/slider-thumb-impl.directive.mjs +0 -106
- package/esm2022/slider/src/slider-thumb.component.mjs +0 -22
- package/esm2022/slider/src/slider-track.component.mjs +0 -27
- package/esm2022/slider/src/slider-vertical.component.mjs +0 -117
- package/esm2022/slider/src/utils.mjs +0 -94
- package/esm2022/switch/index.mjs +0 -30
- package/esm2022/switch/radix-ng-primitives-switch.mjs +0 -5
- package/esm2022/switch/src/switch-input.directive.mjs +0 -44
- package/esm2022/switch/src/switch-root.directive.mjs +0 -145
- package/esm2022/switch/src/switch-thumb.directive.mjs +0 -26
- package/esm2022/tabs/index.mjs +0 -35
- package/esm2022/tabs/radix-ng-primitives-tabs.mjs +0 -5
- package/esm2022/tabs/src/tabs-content.directive.mjs +0 -35
- package/esm2022/tabs/src/tabs-list.directive.mjs +0 -26
- package/esm2022/tabs/src/tabs-root.directive.mjs +0 -57
- package/esm2022/tabs/src/tabs-trigger.directive.mjs +0 -78
- package/esm2022/tabs/src/utils.mjs +0 -7
- package/esm2022/toggle/index.mjs +0 -3
- package/esm2022/toggle/radix-ng-primitives-toggle.mjs +0 -5
- package/esm2022/toggle/src/toggle-visually-hidden-input.directive.mjs +0 -31
- package/esm2022/toggle/src/toggle.directive.mjs +0 -79
- package/esm2022/toggle-group/index.mjs +0 -6
- package/esm2022/toggle-group/radix-ng-primitives-toggle-group.mjs +0 -5
- package/esm2022/toggle-group/src/toggle-group-item.directive.mjs +0 -85
- package/esm2022/toggle-group/src/toggle-group-item.token.mjs +0 -3
- package/esm2022/toggle-group/src/toggle-group-multiple.directive.mjs +0 -185
- package/esm2022/toggle-group/src/toggle-group.directive.mjs +0 -179
- package/esm2022/toggle-group/src/toggle-group.token.mjs +0 -6
- package/esm2022/tooltip/index.mjs +0 -41
- package/esm2022/tooltip/radix-ng-primitives-tooltip.mjs +0 -5
- package/esm2022/tooltip/src/get-content-position.mjs +0 -31
- package/esm2022/tooltip/src/tooltip-arrow.directive.mjs +0 -92
- package/esm2022/tooltip/src/tooltip-arrow.token.mjs +0 -3
- package/esm2022/tooltip/src/tooltip-content-attributes.directive.mjs +0 -24
- package/esm2022/tooltip/src/tooltip-content.directive.mjs +0 -48
- package/esm2022/tooltip/src/tooltip-content.token.mjs +0 -3
- package/esm2022/tooltip/src/tooltip-root.directive.mjs +0 -288
- package/esm2022/tooltip/src/tooltip-trigger.directive.mjs +0 -70
- package/esm2022/tooltip/src/tooltip.config.mjs +0 -18
- package/esm2022/tooltip/src/tooltip.constants.mjs +0 -84
- package/esm2022/tooltip/src/tooltip.types.mjs +0 -14
- package/esm2022/visually-hidden/index.mjs +0 -4
- package/esm2022/visually-hidden/radix-ng-primitives-visually-hidden.mjs +0 -5
- package/esm2022/visually-hidden/src/visually-hidden-input-bubble.directive.mjs +0 -74
- package/esm2022/visually-hidden/src/visually-hidden-input.directive.mjs +0 -74
- package/esm2022/visually-hidden/src/visually-hidden.directive.mjs +0 -42
- package/tooltip/src/get-content-position.d.ts +0 -3
- package/tooltip/src/tooltip.constants.d.ts +0 -9
@@ -1,5 +1,5 @@
|
|
1
1
|
import { OnInit } from '@angular/core';
|
2
|
-
import {
|
2
|
+
import { RdxPositionAlign, RdxPositionSide } from '@radix-ng/primitives/core';
|
3
3
|
import * as i0 from "@angular/core";
|
4
4
|
import * as i1 from "@angular/cdk/overlay";
|
5
5
|
export declare class RdxPopoverContentDirective implements OnInit {
|
@@ -19,7 +19,7 @@ export declare class RdxPopoverContentDirective implements OnInit {
|
|
19
19
|
* @description The preferred side of the trigger to render against when open. Will be reversed when collisions occur and avoidCollisions is enabled.
|
20
20
|
* @default top
|
21
21
|
*/
|
22
|
-
readonly side: import("@angular/core").InputSignal<
|
22
|
+
readonly side: import("@angular/core").InputSignal<RdxPositionSide>;
|
23
23
|
/**
|
24
24
|
* @description The distance in pixels from the trigger.
|
25
25
|
* @default undefined
|
@@ -29,7 +29,7 @@ export declare class RdxPopoverContentDirective implements OnInit {
|
|
29
29
|
* @description The preferred alignment against the trigger. May change when collisions occur.
|
30
30
|
* @default center
|
31
31
|
*/
|
32
|
-
readonly align: import("@angular/core").InputSignal<
|
32
|
+
readonly align: import("@angular/core").InputSignal<RdxPositionAlign>;
|
33
33
|
/**
|
34
34
|
* @description An offset in pixels from the "start" or "end" alignment options.
|
35
35
|
* @default undefined
|
@@ -39,15 +39,21 @@ export declare class RdxPopoverContentDirective implements OnInit {
|
|
39
39
|
* @description Whether to add some alternate positions of the content.
|
40
40
|
* @default false
|
41
41
|
*/
|
42
|
-
readonly
|
42
|
+
readonly alternatePositionsDisabled: import("@angular/core").InputSignal<boolean>;
|
43
|
+
/** @description Whether to prevent `onOverlayEscapeKeyDown` handler from calling. */
|
44
|
+
readonly onOverlayEscapeKeyDownDisabled: import("@angular/core").InputSignal<boolean>;
|
45
|
+
/** @description Whether to prevent `onOverlayOutsideClick` handler from calling. */
|
46
|
+
readonly onOverlayOutsideClickDisabled: import("@angular/core").InputSignal<boolean>;
|
43
47
|
/**
|
44
|
-
* @description Event handler called when the escape key is down.
|
48
|
+
* @description Event handler called when the escape key is down.
|
49
|
+
* It can be prevented by setting `onOverlayEscapeKeyDownDisabled` input to `true`.
|
45
50
|
*/
|
46
|
-
readonly
|
51
|
+
readonly onOverlayEscapeKeyDown: import("@angular/core").OutputEmitterRef<KeyboardEvent>;
|
47
52
|
/**
|
48
|
-
* @description Event handler called when a pointer event occurs outside the bounds of the component.
|
53
|
+
* @description Event handler called when a pointer event occurs outside the bounds of the component.
|
54
|
+
* It can be prevented by setting `onOverlayOutsideClickDisabled` input to `true`.
|
49
55
|
*/
|
50
|
-
readonly
|
56
|
+
readonly onOverlayOutsideClick: import("@angular/core").OutputEmitterRef<MouseEvent>;
|
51
57
|
/**
|
52
58
|
* @description Event handler called after the overlay is open
|
53
59
|
*/
|
@@ -78,6 +84,8 @@ export declare class RdxPopoverContentDirective implements OnInit {
|
|
78
84
|
/** @ignore */
|
79
85
|
private setScrollStrategy;
|
80
86
|
/** @ignore */
|
87
|
+
private setHasBackdrop;
|
88
|
+
/** @ignore */
|
81
89
|
private setDisableClose;
|
82
90
|
/** @ignore */
|
83
91
|
private setOrigin;
|
@@ -91,5 +99,5 @@ export declare class RdxPopoverContentDirective implements OnInit {
|
|
91
99
|
/** @ignore */
|
92
100
|
private fireOverlayNgOnChanges;
|
93
101
|
static ɵfac: i0.ɵɵFactoryDeclaration<RdxPopoverContentDirective, never>;
|
94
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxPopoverContentDirective, "[rdxPopoverContent]", never, { "side": { "alias": "side"; "required": false; "isSignal": true; }; "sideOffset": { "alias": "sideOffset"; "required": false; "isSignal": true; }; "align": { "alias": "align"; "required": false; "isSignal": true; }; "alignOffset": { "alias": "alignOffset"; "required": false; "isSignal": true; }; "
|
102
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxPopoverContentDirective, "[rdxPopoverContent]", never, { "side": { "alias": "side"; "required": false; "isSignal": true; }; "sideOffset": { "alias": "sideOffset"; "required": false; "isSignal": true; }; "align": { "alias": "align"; "required": false; "isSignal": true; }; "alignOffset": { "alias": "alignOffset"; "required": false; "isSignal": true; }; "alternatePositionsDisabled": { "alias": "alternatePositionsDisabled"; "required": false; "isSignal": true; }; "onOverlayEscapeKeyDownDisabled": { "alias": "onOverlayEscapeKeyDownDisabled"; "required": false; "isSignal": true; }; "onOverlayOutsideClickDisabled": { "alias": "onOverlayOutsideClickDisabled"; "required": false; "isSignal": true; }; }, { "onOverlayEscapeKeyDown": "onOverlayEscapeKeyDown"; "onOverlayOutsideClick": "onOverlayOutsideClick"; "onOpen": "onOpen"; "onClosed": "onClosed"; }, never, never, true, [{ directive: typeof i1.CdkConnectedOverlay; inputs: {}; outputs: {}; }]>;
|
95
103
|
}
|
@@ -62,13 +62,37 @@ export declare class RdxPopoverRootDirective {
|
|
62
62
|
/** @ignore */
|
63
63
|
readonly viewContainerRef: ViewContainerRef;
|
64
64
|
/** @ignore */
|
65
|
+
readonly rdxCdkEventService: {
|
66
|
+
document: Document;
|
67
|
+
destroyRef: DestroyRef;
|
68
|
+
ngZone: import("@angular/core").NgZone;
|
69
|
+
renderer2: import("@angular/core").Renderer2;
|
70
|
+
window: Window & typeof globalThis;
|
71
|
+
primitiveConfigs?: import("./utils/types").PrimitiveConfigs;
|
72
|
+
onDestroyCallbacks: Set<() => void>;
|
73
|
+
"__#6158@#clickDomRootEventCallbacks": Set<(event: MouseEvent) => void>;
|
74
|
+
registerPrimitive<T extends object>(primitiveInstance: T): void;
|
75
|
+
deregisterPrimitive<T extends object>(primitiveInstance: T): void;
|
76
|
+
preventPrimitiveFromCdkEvent<T extends object>(primitiveInstance: T, eventType: import("./utils/types").EventType): void;
|
77
|
+
allowPrimitiveForCdkEvent<T extends object>(primitiveInstance: T, eventType: import("./utils/types").EventType): void;
|
78
|
+
preventPrimitiveFromCdkMultiEvents<T extends object>(primitiveInstance: T, eventTypes: import("./utils/types").EventType[]): void;
|
79
|
+
allowPrimitiveForCdkMultiEvents<T extends object>(primitiveInstance: T, eventTypes: import("./utils/types").EventType[]): void;
|
80
|
+
setPreventPrimitiveFromCdkMixEvents<T extends object>(primitiveInstance: T, eventTypes: import("./utils/types").PrimitiveConfig): void;
|
81
|
+
primitivePreventedFromCdkEvent<T extends object>(primitiveInstance: T, eventType: import("./utils/types").EventType): boolean | undefined;
|
82
|
+
addClickDomRootEventCallback(callback: (event: MouseEvent) => void): void;
|
83
|
+
removeClickDomRootEventCallback(callback: (event: MouseEvent) => void): boolean;
|
84
|
+
"__#6158@#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;
|
85
|
+
"__#6158@#registerOnDestroyCallbacks"(): void;
|
86
|
+
"__#6158@#listenToClickDomRootEvent"(): void;
|
87
|
+
} | null;
|
88
|
+
/** @ignore */
|
65
89
|
readonly destroyRef: DestroyRef;
|
66
90
|
/** @ignore */
|
67
91
|
readonly state: import("@angular/core").WritableSignal<RdxPopoverState>;
|
68
92
|
/** @ignore */
|
69
93
|
readonly attachDetachEvent: import("@angular/core").WritableSignal<RdxPopoverAttachDetachEvent>;
|
70
94
|
/** @ignore */
|
71
|
-
private isFirstDefaultOpen;
|
95
|
+
private readonly isFirstDefaultOpen;
|
72
96
|
/** @ignore */
|
73
97
|
readonly popoverAnchorDirective: import("@angular/core").Signal<RdxPopoverAnchorDirective | undefined>;
|
74
98
|
constructor();
|
@@ -1,15 +1,3 @@
|
|
1
|
-
import { ConnectionPositionPair } from '@angular/cdk/overlay';
|
2
|
-
export declare enum RdxPopoverSide {
|
3
|
-
Top = "top",
|
4
|
-
Right = "right",
|
5
|
-
Bottom = "bottom",
|
6
|
-
Left = "left"
|
7
|
-
}
|
8
|
-
export declare enum RdxPopoverAlign {
|
9
|
-
Start = "start",
|
10
|
-
Center = "center",
|
11
|
-
End = "end"
|
12
|
-
}
|
13
1
|
export declare enum RdxPopoverState {
|
14
2
|
OPEN = "open",
|
15
3
|
CLOSED = "closed"
|
@@ -24,22 +12,3 @@ export declare enum RdxPopoverAnimationStatus {
|
|
24
12
|
CLOSED_STARTED = "closed_started",
|
25
13
|
CLOSED_ENDED = "closed_ended"
|
26
14
|
}
|
27
|
-
export type RdxSideAndAlign = {
|
28
|
-
side: RdxPopoverSide;
|
29
|
-
align: RdxPopoverAlign;
|
30
|
-
};
|
31
|
-
export type RdxSideAndAlignOffsets = {
|
32
|
-
sideOffset: number;
|
33
|
-
alignOffset: number;
|
34
|
-
};
|
35
|
-
export type RdxPopoverPositions = {
|
36
|
-
[key in RdxPopoverSide]: {
|
37
|
-
[key in RdxPopoverAlign]: ConnectionPositionPair;
|
38
|
-
};
|
39
|
-
};
|
40
|
-
export type RdxAllPossibleConnectedPositions = ReadonlyMap<`${RdxPopoverSide}|${RdxPopoverAlign}`, ConnectionPositionPair>;
|
41
|
-
export type RdxArrowPositionParams = {
|
42
|
-
top: string;
|
43
|
-
left: string;
|
44
|
-
transform: string;
|
45
|
-
};
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import { DestroyRef, EnvironmentProviders, NgZone, Provider, Renderer2 } from '@angular/core';
|
2
|
+
import { EventType, PrimitiveConfig, PrimitiveConfigs } from './types';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
declare class RdxCdkEventService {
|
5
|
+
#private;
|
6
|
+
document: Document;
|
7
|
+
destroyRef: DestroyRef;
|
8
|
+
ngZone: NgZone;
|
9
|
+
renderer2: Renderer2;
|
10
|
+
window: Window & typeof globalThis;
|
11
|
+
primitiveConfigs?: PrimitiveConfigs;
|
12
|
+
onDestroyCallbacks: Set<() => void>;
|
13
|
+
constructor();
|
14
|
+
registerPrimitive<T extends object>(primitiveInstance: T): void;
|
15
|
+
deregisterPrimitive<T extends object>(primitiveInstance: T): void;
|
16
|
+
preventPrimitiveFromCdkEvent<T extends object>(primitiveInstance: T, eventType: EventType): void;
|
17
|
+
allowPrimitiveForCdkEvent<T extends object>(primitiveInstance: T, eventType: EventType): void;
|
18
|
+
preventPrimitiveFromCdkMultiEvents<T extends object>(primitiveInstance: T, eventTypes: EventType[]): void;
|
19
|
+
allowPrimitiveForCdkMultiEvents<T extends object>(primitiveInstance: T, eventTypes: EventType[]): void;
|
20
|
+
setPreventPrimitiveFromCdkMixEvents<T extends object>(primitiveInstance: T, eventTypes: PrimitiveConfig): void;
|
21
|
+
primitivePreventedFromCdkEvent<T extends object>(primitiveInstance: T, eventType: EventType): boolean | undefined;
|
22
|
+
addClickDomRootEventCallback(callback: (event: MouseEvent) => void): void;
|
23
|
+
removeClickDomRootEventCallback(callback: (event: MouseEvent) => void): boolean;
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RdxCdkEventService, never>;
|
25
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<RdxCdkEventService>;
|
26
|
+
}
|
27
|
+
export declare const provideRdxCdkEventServiceInRoot: () => EnvironmentProviders;
|
28
|
+
export declare const provideRdxCdkEventService: () => Provider;
|
29
|
+
export declare const injectRdxCdkEventService: () => RdxCdkEventService | null;
|
30
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const RdxCdkEventServiceWindowKey: unique symbol;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
export type EventType = 'cdkOverlayOutsideClick' | 'cdkOverlayEscapeKeyDown';
|
2
|
+
export type EventTypeCapitalized<R extends EventType = EventType> = Capitalize<R>;
|
3
|
+
export type EventTypeAsPrimitiveConfigKey<R extends EventType = EventType> = `prevent${EventTypeCapitalized<R>}`;
|
4
|
+
export type PrimitiveConfig = {
|
5
|
+
[value in EventTypeAsPrimitiveConfigKey]?: boolean;
|
6
|
+
};
|
7
|
+
export type PrimitiveConfigs = Map<object, PrimitiveConfig>;
|
@@ -26,11 +26,13 @@ export declare class RdxSwitchRootDirective implements SwitchProps, ControlValue
|
|
26
26
|
*/
|
27
27
|
readonly required: InputSignalWithTransform<boolean, BooleanInput>;
|
28
28
|
/**
|
29
|
+
* Establishes relationships between the component and label(s) where its value should be one or more element IDs.
|
29
30
|
* @default null
|
30
31
|
* @group Props
|
31
32
|
*/
|
32
33
|
readonly ariaLabelledBy: import("@angular/core").InputSignal<string | undefined>;
|
33
34
|
/**
|
35
|
+
* Used to define a string that autocomplete attribute the current element.
|
34
36
|
* @default null
|
35
37
|
* @group Props
|
36
38
|
*/
|
@@ -42,6 +44,7 @@ export declare class RdxSwitchRootDirective implements SwitchProps, ControlValue
|
|
42
44
|
*/
|
43
45
|
readonly checked: ModelSignal<boolean>;
|
44
46
|
/**
|
47
|
+
* The state of the switch when it is initially rendered. Use when you do not need to control its state.
|
45
48
|
* @default false
|
46
49
|
* @group Props
|
47
50
|
*/
|
@@ -53,7 +56,7 @@ export declare class RdxSwitchRootDirective implements SwitchProps, ControlValue
|
|
53
56
|
*/
|
54
57
|
readonly checkedState: import("@angular/core").Signal<boolean>;
|
55
58
|
/**
|
56
|
-
* When true
|
59
|
+
* When `true`, prevents the user from interacting with the switch.
|
57
60
|
* @default false
|
58
61
|
* @group Props
|
59
62
|
*/
|
@@ -1,5 +1,7 @@
|
|
1
1
|
import * as i0 from "@angular/core";
|
2
2
|
export declare class RdxTooltipArrowDirective {
|
3
|
+
/** @ignore */
|
4
|
+
readonly tooltipRoot: import("./tooltip-root.directive").RdxTooltipRootDirective;
|
3
5
|
/** @ignore */
|
4
6
|
private readonly renderer;
|
5
7
|
/** @ignore */
|
@@ -14,12 +16,23 @@ export declare class RdxTooltipArrowDirective {
|
|
14
16
|
* The height of the arrow in pixels.
|
15
17
|
*/
|
16
18
|
readonly height: import("@angular/core").InputSignal<number>;
|
19
|
+
/**
|
20
|
+
* @ignore
|
21
|
+
* */
|
22
|
+
private triggerRect;
|
23
|
+
/** @ignore */
|
24
|
+
private readonly currentArrowSvgElement;
|
17
25
|
/** @ignore */
|
18
26
|
readonly arrowSvgElement: import("@angular/core").Signal<HTMLElement>;
|
27
|
+
constructor();
|
28
|
+
/** @ignore */
|
29
|
+
private setTriggerRect;
|
30
|
+
/** @ignore */
|
31
|
+
private setPosition;
|
19
32
|
/** @ignore */
|
20
33
|
private readonly onArrowSvgElementChangeEffect;
|
21
34
|
/** @ignore */
|
22
|
-
private readonly
|
35
|
+
private readonly onContentPositionAndArrowDimensionsChangeEffect;
|
23
36
|
static ɵfac: i0.ɵɵFactoryDeclaration<RdxTooltipArrowDirective, never>;
|
24
37
|
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxTooltipArrowDirective, "[rdxTooltipArrow]", never, { "width": { "alias": "width"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
25
38
|
}
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import { ConnectedPosition } from '@angular/cdk/overlay';
|
2
1
|
import { TemplateRef } from '@angular/core';
|
3
|
-
import {
|
2
|
+
import { RdxPositionAlign, RdxPositionSide } from '@radix-ng/primitives/core';
|
4
3
|
import * as i0 from "@angular/core";
|
5
4
|
export declare class RdxTooltipContentDirective {
|
6
5
|
/** @ignore */
|
@@ -8,7 +7,7 @@ export declare class RdxTooltipContentDirective {
|
|
8
7
|
/**
|
9
8
|
* The preferred side of the trigger to render against when open. Will be reversed when collisions occur and avoidCollisions is enabled.
|
10
9
|
*/
|
11
|
-
readonly side: import("@angular/core").InputSignal<
|
10
|
+
readonly side: import("@angular/core").InputSignal<RdxPositionSide>;
|
12
11
|
/**
|
13
12
|
* The distance in pixels from the trigger.
|
14
13
|
*/
|
@@ -16,13 +15,13 @@ export declare class RdxTooltipContentDirective {
|
|
16
15
|
/**
|
17
16
|
* The preferred alignment against the trigger. May change when collisions occur.
|
18
17
|
*/
|
19
|
-
readonly align: import("@angular/core").InputSignal<
|
18
|
+
readonly align: import("@angular/core").InputSignal<RdxPositionAlign>;
|
20
19
|
/**
|
21
20
|
* An offset in pixels from the "start" or "end" alignment options.
|
22
21
|
*/
|
23
22
|
readonly alignOffset: import("@angular/core").InputSignal<number>;
|
24
23
|
/** @ingore */
|
25
|
-
readonly position: import("@angular/core").Signal<ConnectedPosition>;
|
24
|
+
readonly position: import("@angular/core").Signal<import("@angular/cdk/overlay").ConnectedPosition>;
|
26
25
|
/**
|
27
26
|
* Event handler called when the escape key is down. It can be prevented by calling event.preventDefault.
|
28
27
|
*/
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import {
|
1
|
+
import { InjectionToken, OnInit } from '@angular/core';
|
2
|
+
import { RdxTooltipTriggerDirective } from './tooltip-trigger.directive';
|
2
3
|
import { RdxTooltipState } from './tooltip.types';
|
3
4
|
import * as i0 from "@angular/core";
|
4
5
|
export declare const RdxTooltipRootToken: InjectionToken<RdxTooltipRootDirective>;
|
@@ -15,6 +16,8 @@ export declare class RdxTooltipRootDirective implements OnInit {
|
|
15
16
|
/** @ignore */
|
16
17
|
private readonly document;
|
17
18
|
/** @ignore */
|
19
|
+
private readonly window;
|
20
|
+
/** @ignore */
|
18
21
|
readonly tooltipConfig: import("./tooltip.types").RdxTooltipConfig;
|
19
22
|
/**
|
20
23
|
* The open state of the tooltip when it is initially rendered. Use when you do not need to control its open state.
|
@@ -45,7 +48,7 @@ export declare class RdxTooltipRootDirective implements OnInit {
|
|
45
48
|
/** @ignore */
|
46
49
|
readonly tooltipContentDirective: import("@angular/core").Signal<import("@radix-ng/primitives/tooltip").RdxTooltipContentDirective>;
|
47
50
|
/** @ignore */
|
48
|
-
readonly
|
51
|
+
readonly tooltipTriggerDirective: import("@angular/core").Signal<RdxTooltipTriggerDirective>;
|
49
52
|
/** @ignore */
|
50
53
|
private openTimer;
|
51
54
|
/** @ignore */
|
@@ -99,5 +102,5 @@ export declare class RdxTooltipRootDirective implements OnInit {
|
|
99
102
|
/** @ignore */
|
100
103
|
private readonly onOpenChangeEffect;
|
101
104
|
static ɵfac: i0.ɵɵFactoryDeclaration<RdxTooltipRootDirective, never>;
|
102
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxTooltipRootDirective, "[rdxTooltipRoot]", ["rdxTooltipRoot"], { "defaultOpen": { "alias": "defaultOpen"; "required": false; "isSignal": true; }; "open": { "alias": "open"; "required": false; "isSignal": true; }; "delayDuration": { "alias": "delayDuration"; "required": false; "isSignal": true; }; "disableHoverableContent": { "alias": "disableHoverableContent"; "required": false; "isSignal": true; }; }, { "onOpenChange": "onOpenChange"; }, ["tooltipContentDirective", "
|
105
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxTooltipRootDirective, "[rdxTooltipRoot]", ["rdxTooltipRoot"], { "defaultOpen": { "alias": "defaultOpen"; "required": false; "isSignal": true; }; "open": { "alias": "open"; "required": false; "isSignal": true; }; "delayDuration": { "alias": "delayDuration"; "required": false; "isSignal": true; }; "disableHoverableContent": { "alias": "disableHoverableContent"; "required": false; "isSignal": true; }; }, { "onOpenChange": "onOpenChange"; }, ["tooltipContentDirective", "tooltipTriggerDirective"], never, true, never>;
|
103
106
|
}
|
@@ -1,14 +1,3 @@
|
|
1
|
-
export declare enum RdxTooltipSide {
|
2
|
-
Top = "top",
|
3
|
-
Right = "right",
|
4
|
-
Bottom = "bottom",
|
5
|
-
Left = "left"
|
6
|
-
}
|
7
|
-
export declare enum RdxTooltipAlign {
|
8
|
-
Start = "start",
|
9
|
-
Center = "center",
|
10
|
-
End = "end"
|
11
|
-
}
|
12
1
|
export type RdxTooltipConfig = {
|
13
2
|
delayDuration: number;
|
14
3
|
skipDelayDuration: number;
|
@@ -1,75 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Based On:
|
3
|
-
* Copyright (c) flebee Authors. Licensed under the MIT License.
|
4
|
-
*/
|
5
|
-
import { BooleanInput } from '@angular/cdk/coercion';
|
6
|
-
import { Injector } from '@angular/core';
|
7
|
-
import { ControlValueAccessor } from '@angular/forms';
|
8
|
-
import * as i0 from "@angular/core";
|
9
|
-
export type RdxControlValueAccessorCompareTo<T = any> = (a?: T, b?: T) => boolean;
|
10
|
-
export declare const injectCvaCompareTo: {
|
11
|
-
(): RdxControlValueAccessorCompareTo<any>;
|
12
|
-
(injectOptions: import("@angular/core").InjectOptions & {
|
13
|
-
optional?: false;
|
14
|
-
} & {
|
15
|
-
injector?: Injector;
|
16
|
-
}): RdxControlValueAccessorCompareTo<any>;
|
17
|
-
(injectOptions: import("@angular/core").InjectOptions & {
|
18
|
-
injector?: Injector;
|
19
|
-
}): RdxControlValueAccessorCompareTo<any> | null;
|
20
|
-
}, provideCvaCompareTo: (() => import("@angular/core").Provider) & ((value: RdxControlValueAccessorCompareTo<any> | (() => RdxControlValueAccessorCompareTo<any>), isFunctionValue: boolean) => import("@angular/core").Provider);
|
21
|
-
/**
|
22
|
-
* Provides a {@link RdxControlValueAccessorCompareTo comparator} based on a property of `T`.
|
23
|
-
*
|
24
|
-
* @example
|
25
|
-
* ```ts
|
26
|
-
* interface User {
|
27
|
-
* id: string;
|
28
|
-
* name: string;
|
29
|
-
* }
|
30
|
-
*
|
31
|
-
* provideCvaCompareToByProp<User>('id');
|
32
|
-
* ```
|
33
|
-
*/
|
34
|
-
export declare const provideCvaCompareToByProp: <T>(prop: keyof T) => import("@angular/core").Provider;
|
35
|
-
export declare class RdxControlValueAccessor<Value> implements ControlValueAccessor {
|
36
|
-
private readonly ngControl;
|
37
|
-
private readonly destroyRef;
|
38
|
-
private readonly injector;
|
39
|
-
/**
|
40
|
-
* A comparator, which determines value changes. Should return true, if two values are considered semantic equal.
|
41
|
-
*
|
42
|
-
* Defaults to {@link Object.is} in order to align with change detection behavior for inputs.
|
43
|
-
*/
|
44
|
-
readonly compareTo: RdxControlValueAccessorCompareTo<Value>;
|
45
|
-
/** Whether this is disabled. If a control is present, it reflects it's disabled state. */
|
46
|
-
inputDisabled: import("@angular/core").ModelSignal<BooleanInput>;
|
47
|
-
disabled: import("@angular/core").Signal<boolean>;
|
48
|
-
/** The value of this. If a control is present, it reflects it's value. */
|
49
|
-
value: import("@angular/core").ModelSignal<Value>;
|
50
|
-
/**
|
51
|
-
* `NgModel` sets up the control in `ngOnChanges`. Idk if bug or on purpose, but `writeValue` and `setDisabledState` are called before the inputs are set.
|
52
|
-
* {@link https://github.com/angular/angular/blob/main/packages/forms/src/directives/ng_model.ts#L223}
|
53
|
-
*
|
54
|
-
* @ignore
|
55
|
-
*/
|
56
|
-
private get registered();
|
57
|
-
constructor();
|
58
|
-
private _onChange;
|
59
|
-
private _onTouched;
|
60
|
-
/**
|
61
|
-
* This function should be called when this host is considered `touched`.
|
62
|
-
*
|
63
|
-
* NOTE: Whenever a `blur` event is triggered on this host, this function is called.
|
64
|
-
*
|
65
|
-
* @see {@link RdxControlValueAccessor.registerOnTouched}
|
66
|
-
* @see {@link RdxControlValueAccessor._ngControl}
|
67
|
-
*/
|
68
|
-
markAsTouched(): void;
|
69
|
-
setDisabledState(disabled: boolean): void;
|
70
|
-
writeValue(value: Value): void;
|
71
|
-
registerOnChange(onChange: (value: Value) => void): void;
|
72
|
-
registerOnTouched(onTouched: () => void): void;
|
73
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RdxControlValueAccessor<any>, never>;
|
74
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxControlValueAccessor<any>, never, never, { "inputDisabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "inputDisabled": "disabledChange"; "value": "valueChange"; }, never, never, true, never>;
|
75
|
-
}
|
@@ -1,51 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* This code is adapted from the original implementation by the ngxTension team.
|
3
|
-
* Source: https://github.com/ngxtension/ngxtension-platform/blob/main/libs/ngxtension/assert-injector/src/assert-injector.ts
|
4
|
-
*
|
5
|
-
* Copyright (c) ngxtension Authors. Licensed under the MIT License.
|
6
|
-
*/
|
7
|
-
import { Injector } from '@angular/core';
|
8
|
-
import { Nullable, SafeFunction } from '../types';
|
9
|
-
/**
|
10
|
-
* `assertInjector` extends `assertInInjectionContext` with an optional `Injector`
|
11
|
-
* After assertion, `assertInjector` runs the `runner` function with the guaranteed `Injector`
|
12
|
-
* whether it is the default `Injector` within the current **Injection Context**
|
13
|
-
* or the custom `Injector` that was passed in.
|
14
|
-
*
|
15
|
-
* @template {() => unknown} Runner - Runner is a function that can return anything
|
16
|
-
* @param {SafeFunction} fn - the Function to pass in `assertInInjectionContext`
|
17
|
-
* @param {Nullable<Injector>} injector - the optional "custom" Injector
|
18
|
-
* @param {Runner} runner - the runner fn
|
19
|
-
* @returns {ReturnType<Runner>} result - returns the result of the Runner
|
20
|
-
*
|
21
|
-
* @example
|
22
|
-
* ```ts
|
23
|
-
* function injectValue(injector?: Injector) {
|
24
|
-
* return assertInjector(injectValue, injector, () => 'value');
|
25
|
-
* }
|
26
|
-
*
|
27
|
-
* injectValue(); // string
|
28
|
-
* ```
|
29
|
-
*/
|
30
|
-
export declare function assertInjector<Runner extends () => unknown>(fn: SafeFunction, injector: Nullable<Injector>, runner: Runner): ReturnType<Runner>;
|
31
|
-
/**
|
32
|
-
* `assertInjector` extends `assertInInjectionContext` with an optional `Injector`
|
33
|
-
* After assertion, `assertInjector` returns a guaranteed `Injector` whether it is the default `Injector`
|
34
|
-
* within the current **Injection Context** or the custom `Injector` that was passed in.
|
35
|
-
*
|
36
|
-
* @param {SafeFunction} fn - the Function to pass in `assertInInjectionContext`
|
37
|
-
* @param {Nullable<Injector>} injector - the optional "custom" Injector
|
38
|
-
* @returns Injector
|
39
|
-
*
|
40
|
-
* @example
|
41
|
-
* ```ts
|
42
|
-
* function injectDestroy(injector?: Injector) {
|
43
|
-
* injector = assertInjector(injectDestroy, injector);
|
44
|
-
*
|
45
|
-
* return runInInjectionContext(injector, () => {
|
46
|
-
* // code
|
47
|
-
* })
|
48
|
-
* }
|
49
|
-
* ```
|
50
|
-
*/
|
51
|
-
export declare function assertInjector(fn: SafeFunction, injector: Nullable<Injector>): Injector;
|
@@ -1,68 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
*
|
3
|
-
* Copyright (c) ngxtension Authors. Licensed under the MIT License.
|
4
|
-
*/
|
5
|
-
import { InjectionToken, type EnvironmentProviders, type Host, type InjectOptions, type Injector, type Optional, type Provider, type Self, type SkipSelf, type Type } from '@angular/core';
|
6
|
-
type CreateInjectionTokenDep<TTokenType> = Type<TTokenType> | (abstract new (...args: any[]) => TTokenType) | InjectionToken<TTokenType>;
|
7
|
-
type CreateInjectionTokenDeps<TFactory extends (...args: any[]) => any, TFactoryDeps extends Parameters<TFactory> = Parameters<TFactory>> = {
|
8
|
-
[Index in keyof TFactoryDeps]: CreateInjectionTokenDep<TFactoryDeps[Index]> | [...modifiers: Array<Optional | Self | SkipSelf | Host>, token: CreateInjectionTokenDep<TFactoryDeps[Index]>];
|
9
|
-
} & {
|
10
|
-
length: TFactoryDeps['length'];
|
11
|
-
};
|
12
|
-
export type CreateInjectionTokenOptions<TFactory extends (...args: any[]) => any, TFactoryDeps extends Parameters<TFactory> = Parameters<TFactory>> = (TFactoryDeps[0] extends undefined ? {
|
13
|
-
deps?: never;
|
14
|
-
} : {
|
15
|
-
deps: CreateInjectionTokenDeps<TFactory, TFactoryDeps>;
|
16
|
-
}) & {
|
17
|
-
isRoot?: boolean;
|
18
|
-
isFunctionValue?: boolean;
|
19
|
-
multi?: boolean;
|
20
|
-
token?: InjectionToken<ReturnType<TFactory>>;
|
21
|
-
extraProviders?: Provider | EnvironmentProviders;
|
22
|
-
};
|
23
|
-
type InjectFn<TFactoryReturn> = {
|
24
|
-
(): TFactoryReturn;
|
25
|
-
(injectOptions: InjectOptions & {
|
26
|
-
optional?: false;
|
27
|
-
} & {
|
28
|
-
injector?: Injector;
|
29
|
-
}): TFactoryReturn;
|
30
|
-
(injectOptions: InjectOptions & {
|
31
|
-
injector?: Injector;
|
32
|
-
}): TFactoryReturn | null;
|
33
|
-
};
|
34
|
-
type ProvideFn<TNoop extends boolean, TFactoryReturn, TReturn = TFactoryReturn extends Array<infer Item> ? Item : TFactoryReturn> = (TNoop extends true ? (value: TReturn | (() => TReturn)) => Provider : () => Provider) & (TReturn extends Function ? (value: TReturn | (() => TReturn), isFunctionValue: boolean) => Provider : (value: TReturn | (() => TReturn)) => Provider);
|
35
|
-
export type CreateInjectionTokenReturn<TFactoryReturn, TNoop extends boolean = false> = [
|
36
|
-
InjectFn<TFactoryReturn>,
|
37
|
-
ProvideFn<TNoop, TFactoryReturn>,
|
38
|
-
InjectionToken<TFactoryReturn>,
|
39
|
-
() => Provider
|
40
|
-
];
|
41
|
-
/**
|
42
|
-
* `createInjectionToken` accepts a factory function and returns a tuple of `injectFn`, `provideFn`, and the `InjectionToken`
|
43
|
-
* that the factory function is for.
|
44
|
-
*
|
45
|
-
* @param {Function} factory - Factory Function that returns the value for the `InjectionToken`
|
46
|
-
* @param {CreateInjectionTokenOptions} options - object to control how the `InjectionToken` behaves
|
47
|
-
* @returns {CreateInjectionTokenReturn}
|
48
|
-
*
|
49
|
-
* @example
|
50
|
-
* ```ts
|
51
|
-
* const [injectCounter, provideCounter, COUNTER] = createInjectionToken(() => signal(0));
|
52
|
-
*
|
53
|
-
* export class Counter {
|
54
|
-
* counter = injectCounter(); // WritableSignal<number>
|
55
|
-
* }
|
56
|
-
* ```
|
57
|
-
*/
|
58
|
-
export declare function createInjectionToken<TFactory extends (...args: any[]) => any, TFactoryDeps extends Parameters<TFactory> = Parameters<TFactory>, TOptions extends CreateInjectionTokenOptions<TFactory, TFactoryDeps> = CreateInjectionTokenOptions<TFactory, TFactoryDeps>, TFactoryReturn = TOptions['multi'] extends true ? Array<ReturnType<TFactory>> : ReturnType<TFactory>>(factory: TFactory, options?: TOptions): CreateInjectionTokenReturn<TFactoryReturn>;
|
59
|
-
export declare function createNoopInjectionToken<TValue, TMulti extends boolean = false, TOptions = Pick<CreateInjectionTokenOptions<() => void, []>, 'extraProviders'> & (TValue extends (...args: any[]) => any ? {
|
60
|
-
isFunctionValue: true;
|
61
|
-
} : {
|
62
|
-
isFunctionValue?: never;
|
63
|
-
}) & (TMulti extends true ? {
|
64
|
-
multi: true;
|
65
|
-
} : {
|
66
|
-
multi?: never;
|
67
|
-
})>(description: string, options?: TOptions): CreateInjectionTokenReturn<TMulti extends true ? TValue[] : TValue, true>;
|
68
|
-
export {};
|
package/core/src/types.d.ts
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Nullable from `Type` adds `null` and `undefined`
|
3
|
-
*
|
4
|
-
* @example ```ts
|
5
|
-
* // Expect: string | number | undefined | null
|
6
|
-
* type Value = Nulling<string | number>;
|
7
|
-
* ```
|
8
|
-
*/
|
9
|
-
export type Nullable<Type> = null | Type | undefined;
|
10
|
-
/**
|
11
|
-
* SafeFunction is a type for functions that accept any number of arguments of unknown types
|
12
|
-
* and return a value of an unknown type. This is useful when you want to define a function
|
13
|
-
* without being strict about the input or output types, maintaining flexibility.
|
14
|
-
*
|
15
|
-
* @example ```ts
|
16
|
-
* const safeFn: SafeFunction = (...args) => {
|
17
|
-
* return args.length > 0 ? args[0] : null;
|
18
|
-
* };
|
19
|
-
*
|
20
|
-
* const result = safeFn(1, 'hello'); // result: 1
|
21
|
-
* ```
|
22
|
-
*/
|
23
|
-
export type SafeFunction = (...args: unknown[]) => unknown;
|
@@ -1,40 +0,0 @@
|
|
1
|
-
import { NgModule } from '@angular/core';
|
2
|
-
import { RdxAccordionContentDirective } from './src/accordion-content.directive';
|
3
|
-
import { RdxAccordionHeaderDirective } from './src/accordion-header.directive';
|
4
|
-
import { RdxAccordionItemDirective } from './src/accordion-item.directive';
|
5
|
-
import { RdxAccordionRootDirective } from './src/accordion-root.directive';
|
6
|
-
import { RdxAccordionTriggerDirective } from './src/accordion-trigger.directive';
|
7
|
-
import * as i0 from "@angular/core";
|
8
|
-
export * from './src/accordion-content.directive';
|
9
|
-
export * from './src/accordion-header.directive';
|
10
|
-
export * from './src/accordion-item.directive';
|
11
|
-
export * from './src/accordion-root.directive';
|
12
|
-
export * from './src/accordion-trigger.directive';
|
13
|
-
const _imports = [
|
14
|
-
RdxAccordionContentDirective,
|
15
|
-
RdxAccordionHeaderDirective,
|
16
|
-
RdxAccordionItemDirective,
|
17
|
-
RdxAccordionRootDirective,
|
18
|
-
RdxAccordionTriggerDirective
|
19
|
-
];
|
20
|
-
export class RdxAccordionModule {
|
21
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxAccordionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
22
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.11", ngImport: i0, type: RdxAccordionModule, imports: [RdxAccordionContentDirective,
|
23
|
-
RdxAccordionHeaderDirective,
|
24
|
-
RdxAccordionItemDirective,
|
25
|
-
RdxAccordionRootDirective,
|
26
|
-
RdxAccordionTriggerDirective], exports: [RdxAccordionContentDirective,
|
27
|
-
RdxAccordionHeaderDirective,
|
28
|
-
RdxAccordionItemDirective,
|
29
|
-
RdxAccordionRootDirective,
|
30
|
-
RdxAccordionTriggerDirective] }); }
|
31
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxAccordionModule }); }
|
32
|
-
}
|
33
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxAccordionModule, decorators: [{
|
34
|
-
type: NgModule,
|
35
|
-
args: [{
|
36
|
-
imports: [..._imports],
|
37
|
-
exports: [..._imports]
|
38
|
-
}]
|
39
|
-
}] });
|
40
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wYWNrYWdlcy9wcmltaXRpdmVzL2FjY29yZGlvbi9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3pDLE9BQU8sRUFBRSw0QkFBNEIsRUFBRSxNQUFNLG1DQUFtQyxDQUFDO0FBQ2pGLE9BQU8sRUFBRSwyQkFBMkIsRUFBRSxNQUFNLGtDQUFrQyxDQUFDO0FBQy9FLE9BQU8sRUFBRSx5QkFBeUIsRUFBRSxNQUFNLGdDQUFnQyxDQUFDO0FBQzNFLE9BQU8sRUFBRSx5QkFBeUIsRUFBRSxNQUFNLGdDQUFnQyxDQUFDO0FBQzNFLE9BQU8sRUFBRSw0QkFBNEIsRUFBRSxNQUFNLG1DQUFtQyxDQUFDOztBQUVqRixjQUFjLG1DQUFtQyxDQUFDO0FBQ2xELGNBQWMsa0NBQWtDLENBQUM7QUFDakQsY0FBYyxnQ0FBZ0MsQ0FBQztBQUMvQyxjQUFjLGdDQUFnQyxDQUFDO0FBQy9DLGNBQWMsbUNBQW1DLENBQUM7QUFFbEQsTUFBTSxRQUFRLEdBQUc7SUFDYiw0QkFBNEI7SUFDNUIsMkJBQTJCO0lBQzNCLHlCQUF5QjtJQUN6Qix5QkFBeUI7SUFDekIsNEJBQTRCO0NBQy9CLENBQUM7QUFNRixNQUFNLE9BQU8sa0JBQWtCOytHQUFsQixrQkFBa0I7Z0hBQWxCLGtCQUFrQixZQVgzQiw0QkFBNEI7WUFDNUIsMkJBQTJCO1lBQzNCLHlCQUF5QjtZQUN6Qix5QkFBeUI7WUFDekIsNEJBQTRCLGFBSjVCLDRCQUE0QjtZQUM1QiwyQkFBMkI7WUFDM0IseUJBQXlCO1lBQ3pCLHlCQUF5QjtZQUN6Qiw0QkFBNEI7Z0hBT25CLGtCQUFrQjs7NEZBQWxCLGtCQUFrQjtrQkFKOUIsUUFBUTttQkFBQztvQkFDTixPQUFPLEVBQUUsQ0FBQyxHQUFHLFFBQVEsQ0FBQztvQkFDdEIsT0FBTyxFQUFFLENBQUMsR0FBRyxRQUFRLENBQUM7aUJBQ3pCIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgTmdNb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7IFJkeEFjY29yZGlvbkNvbnRlbnREaXJlY3RpdmUgfSBmcm9tICcuL3NyYy9hY2NvcmRpb24tY29udGVudC5kaXJlY3RpdmUnO1xuaW1wb3J0IHsgUmR4QWNjb3JkaW9uSGVhZGVyRGlyZWN0aXZlIH0gZnJvbSAnLi9zcmMvYWNjb3JkaW9uLWhlYWRlci5kaXJlY3RpdmUnO1xuaW1wb3J0IHsgUmR4QWNjb3JkaW9uSXRlbURpcmVjdGl2ZSB9IGZyb20gJy4vc3JjL2FjY29yZGlvbi1pdGVtLmRpcmVjdGl2ZSc7XG5pbXBvcnQgeyBSZHhBY2NvcmRpb25Sb290RGlyZWN0aXZlIH0gZnJvbSAnLi9zcmMvYWNjb3JkaW9uLXJvb3QuZGlyZWN0aXZlJztcbmltcG9ydCB7IFJkeEFjY29yZGlvblRyaWdnZXJEaXJlY3RpdmUgfSBmcm9tICcuL3NyYy9hY2NvcmRpb24tdHJpZ2dlci5kaXJlY3RpdmUnO1xuXG5leHBvcnQgKiBmcm9tICcuL3NyYy9hY2NvcmRpb24tY29udGVudC5kaXJlY3RpdmUnO1xuZXhwb3J0ICogZnJvbSAnLi9zcmMvYWNjb3JkaW9uLWhlYWRlci5kaXJlY3RpdmUnO1xuZXhwb3J0ICogZnJvbSAnLi9zcmMvYWNjb3JkaW9uLWl0ZW0uZGlyZWN0aXZlJztcbmV4cG9ydCAqIGZyb20gJy4vc3JjL2FjY29yZGlvbi1yb290LmRpcmVjdGl2ZSc7XG5leHBvcnQgKiBmcm9tICcuL3NyYy9hY2NvcmRpb24tdHJpZ2dlci5kaXJlY3RpdmUnO1xuXG5jb25zdCBfaW1wb3J0cyA9IFtcbiAgICBSZHhBY2NvcmRpb25Db250ZW50RGlyZWN0aXZlLFxuICAgIFJkeEFjY29yZGlvbkhlYWRlckRpcmVjdGl2ZSxcbiAgICBSZHhBY2NvcmRpb25JdGVtRGlyZWN0aXZlLFxuICAgIFJkeEFjY29yZGlvblJvb3REaXJlY3RpdmUsXG4gICAgUmR4QWNjb3JkaW9uVHJpZ2dlckRpcmVjdGl2ZVxuXTtcblxuQE5nTW9kdWxlKHtcbiAgICBpbXBvcnRzOiBbLi4uX2ltcG9ydHNdLFxuICAgIGV4cG9ydHM6IFsuLi5faW1wb3J0c11cbn0pXG5leHBvcnQgY2xhc3MgUmR4QWNjb3JkaW9uTW9kdWxlIHt9XG4iXX0=
|
@@ -1,5 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Generated bundle index. Do not edit.
|
3
|
-
*/
|
4
|
-
export * from './index';
|
5
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmFkaXgtbmctcHJpbWl0aXZlcy1hY2NvcmRpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wYWNrYWdlcy9wcmltaXRpdmVzL2FjY29yZGlvbi9yYWRpeC1uZy1wcmltaXRpdmVzLWFjY29yZGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2luZGV4JztcbiJdfQ==
|