@radix-ng/primitives 0.18.2 → 0.20.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/index.d.ts +1 -2
- package/avatar/src/avatar-fallback.directive.d.ts +11 -23
- package/avatar/src/avatar-image.directive.d.ts +10 -14
- package/avatar/src/avatar-root.directive.d.ts +5 -15
- package/checkbox/index.d.ts +11 -0
- package/checkbox/src/checkbox-button.directive.d.ts +1 -1
- package/checkbox/src/checkbox-indicator.directive.d.ts +1 -1
- package/checkbox/src/checkbox-input.directive.d.ts +1 -1
- package/checkbox/src/checkbox.directive.d.ts +1 -1
- package/compodoc/documentation.json +9385 -4858
- package/core/index.d.ts +2 -0
- package/core/src/control-value-accessor/index.d.ts +75 -0
- package/core/src/create-inject-context/assert-injector.d.ts +51 -0
- package/core/src/create-inject-context/index.d.ts +68 -0
- package/core/src/types.d.ts +23 -0
- package/esm2022/avatar/index.mjs +1 -1
- package/esm2022/avatar/src/avatar-fallback.directive.mjs +38 -40
- package/esm2022/avatar/src/avatar-image.directive.mjs +25 -26
- package/esm2022/avatar/src/avatar-root.directive.mjs +13 -25
- package/esm2022/checkbox/index.mjs +31 -1
- package/esm2022/checkbox/src/checkbox-button.directive.mjs +3 -3
- package/esm2022/checkbox/src/checkbox-indicator.directive.mjs +3 -3
- package/esm2022/checkbox/src/checkbox-input.directive.mjs +3 -3
- package/esm2022/checkbox/src/checkbox.directive.mjs +3 -3
- package/esm2022/core/index.mjs +3 -1
- package/esm2022/core/src/control-value-accessor/index.mjs +103 -0
- package/esm2022/core/src/create-inject-context/assert-injector.mjs +15 -0
- package/esm2022/core/src/create-inject-context/index.mjs +116 -0
- package/esm2022/core/src/types.mjs +2 -0
- package/esm2022/popover/index.mjs +41 -0
- package/esm2022/popover/radix-ng-primitives-popover.mjs +5 -0
- package/esm2022/popover/src/popover-arrow.directive.mjs +112 -0
- package/esm2022/popover/src/popover-arrow.token.mjs +3 -0
- package/esm2022/popover/src/popover-close.directive.mjs +37 -0
- package/esm2022/popover/src/popover-content.directive.mjs +227 -0
- package/esm2022/popover/src/popover-root.directive.mjs +142 -0
- package/esm2022/popover/src/popover-root.inject.mjs +7 -0
- package/esm2022/popover/src/popover-root.token.mjs +3 -0
- package/esm2022/popover/src/popover-trigger.directive.mjs +42 -0
- package/esm2022/popover/src/popover.constants.mjs +90 -0
- package/esm2022/popover/src/popover.types.mjs +14 -0
- package/esm2022/popover/src/popover.utils.mjs +115 -0
- package/esm2022/radio/index.mjs +2 -1
- package/esm2022/radio/src/radio-item-input.directive.mjs +37 -0
- package/esm2022/radio/src/radio-item.directive.mjs +55 -39
- package/esm2022/radio/src/radio-root.directive.mjs +30 -120
- package/esm2022/radio/src/radio-tokens.mjs +1 -1
- package/esm2022/roving-focus/index.mjs +3 -0
- package/esm2022/roving-focus/radix-ng-primitives-roving-focus.mjs +5 -0
- package/esm2022/roving-focus/src/roving-focus-group.directive.mjs +138 -0
- package/esm2022/roving-focus/src/roving-focus-item.directive.mjs +133 -0
- package/esm2022/roving-focus/src/utils.mjs +47 -0
- package/esm2022/select/src/select-item.directive.mjs +8 -2
- package/esm2022/toggle/src/toggle-input.directive.mjs +4 -3
- package/fesm2022/radix-ng-primitives-avatar.mjs +70 -85
- package/fesm2022/radix-ng-primitives-avatar.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-checkbox.mjs +35 -10
- package/fesm2022/radix-ng-primitives-checkbox.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-core.mjs +230 -3
- package/fesm2022/radix-ng-primitives-core.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-popover.mjs +796 -0
- package/fesm2022/radix-ng-primitives-popover.mjs.map +1 -0
- package/fesm2022/radix-ng-primitives-radio.mjs +145 -186
- package/fesm2022/radix-ng-primitives-radio.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-roving-focus.mjs +320 -0
- package/fesm2022/radix-ng-primitives-roving-focus.mjs.map +1 -0
- package/fesm2022/radix-ng-primitives-select.mjs +7 -1
- package/fesm2022/radix-ng-primitives-select.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-toggle.mjs +3 -2
- package/fesm2022/radix-ng-primitives-toggle.mjs.map +1 -1
- package/package.json +18 -6
- package/popover/README.md +3 -0
- package/popover/index.d.ts +17 -0
- package/popover/src/popover-arrow.directive.d.ts +37 -0
- package/popover/src/popover-arrow.token.d.ts +3 -0
- package/popover/src/popover-close.directive.d.ts +15 -0
- package/popover/src/popover-content.directive.d.ts +84 -0
- package/popover/src/popover-root.directive.d.ts +58 -0
- package/popover/src/popover-root.inject.d.ts +2 -0
- package/popover/src/popover-root.token.d.ts +3 -0
- package/popover/src/popover-trigger.directive.d.ts +18 -0
- package/popover/src/popover.constants.d.ts +8 -0
- package/popover/src/popover.types.d.ts +34 -0
- package/popover/src/popover.utils.d.ts +12 -0
- package/radio/index.d.ts +1 -0
- package/radio/src/radio-item-input.directive.d.ts +12 -0
- package/radio/src/radio-item.directive.d.ts +23 -14
- package/radio/src/radio-root.directive.d.ts +19 -34
- package/radio/src/radio-tokens.d.ts +6 -4
- package/roving-focus/README.md +3 -0
- package/roving-focus/index.d.ts +3 -0
- package/roving-focus/src/roving-focus-group.directive.d.ts +50 -0
- package/roving-focus/src/roving-focus-item.directive.d.ts +50 -0
- package/roving-focus/src/utils.d.ts +19 -0
- package/select/src/select-item.directive.d.ts +7 -1
- package/toggle/src/toggle-input.directive.d.ts +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"radix-ng-primitives-popover.mjs","sources":["../../../packages/primitives/popover/src/popover-arrow.token.ts","../../../packages/primitives/popover/src/popover-root.token.ts","../../../packages/primitives/popover/src/popover-root.inject.ts","../../../packages/primitives/popover/src/popover.types.ts","../../../packages/primitives/popover/src/popover.constants.ts","../../../packages/primitives/popover/src/popover.utils.ts","../../../packages/primitives/popover/src/popover-arrow.directive.ts","../../../packages/primitives/popover/src/popover-close.directive.ts","../../../packages/primitives/popover/src/popover-content.directive.ts","../../../packages/primitives/popover/src/popover-trigger.directive.ts","../../../packages/primitives/popover/src/popover-root.directive.ts","../../../packages/primitives/popover/index.ts","../../../packages/primitives/popover/radix-ng-primitives-popover.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\nimport { RdxPopoverArrowDirective } from './popover-arrow.directive';\n\nexport const RdxPopoverArrowToken = new InjectionToken<RdxPopoverArrowDirective>('RdxPopoverArrowToken');\n","import { InjectionToken } from '@angular/core';\nimport { RdxPopoverRootDirective } from './popover-root.directive';\n\nexport const RdxPopoverRootToken = new InjectionToken<RdxPopoverRootDirective>('RdxPopoverRootToken');\n","import { assertInInjectionContext, inject, isDevMode } from '@angular/core';\nimport { RdxPopoverRootDirective } from './popover-root.directive';\nimport { RdxPopoverRootToken } from './popover-root.token';\n\nexport function injectPopoverRoot(): RdxPopoverRootDirective {\n isDevMode() && assertInInjectionContext(injectPopoverRoot);\n return inject(RdxPopoverRootToken);\n}\n","import { ConnectionPositionPair } from '@angular/cdk/overlay';\n\nexport enum RdxPopoverSide {\n Top = 'top',\n Right = 'right',\n Bottom = 'bottom',\n Left = 'left'\n}\n\nexport enum RdxPopoverAlign {\n Start = 'start',\n Center = 'center',\n End = 'end'\n}\n\nexport type RdxPopoverState = 'open' | 'closed';\n\nexport type RdxSideAndAlign = { side: RdxPopoverSide; align: RdxPopoverAlign };\nexport type RdxSideAndAlignOffsets = { sideOffset: number; alignOffset: number };\n\nexport type RdxPopoverPositions = {\n [key in RdxPopoverSide]: {\n [key in RdxPopoverAlign]: ConnectionPositionPair;\n };\n};\n\nexport type RdxAllPossibleConnectedPositions = ReadonlyMap<\n `${RdxPopoverSide}|${RdxPopoverAlign}`,\n ConnectionPositionPair\n>;\n\nexport type RdxArrowPositionParams = {\n top: string;\n bottom: string;\n left: string;\n right: string;\n transform: string;\n};\n","import { RdxPopoverAlign, RdxPopoverPositions, RdxPopoverSide } from './popover.types';\n\nexport const POPOVER_POSITIONS: RdxPopoverPositions = {\n [RdxPopoverSide.Top]: {\n [RdxPopoverAlign.Center]: {\n originX: 'center',\n originY: 'top',\n overlayX: 'center',\n overlayY: 'bottom'\n },\n [RdxPopoverAlign.Start]: {\n originX: 'start',\n originY: 'top',\n overlayX: 'start',\n overlayY: 'bottom'\n },\n [RdxPopoverAlign.End]: {\n originX: 'end',\n originY: 'top',\n overlayX: 'end',\n overlayY: 'bottom'\n }\n },\n [RdxPopoverSide.Right]: {\n [RdxPopoverAlign.Center]: {\n originX: 'end',\n originY: 'center',\n overlayX: 'start',\n overlayY: 'center'\n },\n [RdxPopoverAlign.Start]: {\n originX: 'end',\n originY: 'top',\n overlayX: 'start',\n overlayY: 'top'\n },\n [RdxPopoverAlign.End]: {\n originX: 'end',\n originY: 'bottom',\n overlayX: 'start',\n overlayY: 'bottom'\n }\n },\n [RdxPopoverSide.Bottom]: {\n [RdxPopoverAlign.Center]: {\n originX: 'center',\n originY: 'bottom',\n overlayX: 'center',\n overlayY: 'top'\n },\n [RdxPopoverAlign.Start]: {\n originX: 'start',\n originY: 'bottom',\n overlayX: 'start',\n overlayY: 'top'\n },\n [RdxPopoverAlign.End]: {\n originX: 'end',\n originY: 'bottom',\n overlayX: 'end',\n overlayY: 'top'\n }\n },\n [RdxPopoverSide.Left]: {\n [RdxPopoverAlign.Center]: {\n originX: 'start',\n originY: 'center',\n overlayX: 'end',\n overlayY: 'center'\n },\n [RdxPopoverAlign.Start]: {\n originX: 'start',\n originY: 'top',\n overlayX: 'end',\n overlayY: 'top'\n },\n [RdxPopoverAlign.End]: {\n originX: 'start',\n originY: 'bottom',\n overlayX: 'end',\n overlayY: 'bottom'\n }\n }\n} as const;\n\nexport const DEFAULTS = {\n offsets: {\n side: 10,\n align: 10\n }\n} as const;\n","import { ConnectedPosition, ConnectionPositionPair } from '@angular/cdk/overlay';\nimport { POPOVER_POSITIONS } from './popover.constants';\nimport {\n RdxAllPossibleConnectedPositions,\n RdxArrowPositionParams,\n RdxPopoverAlign,\n RdxPopoverSide,\n RdxSideAndAlign,\n RdxSideAndAlignOffsets\n} from './popover.types';\n\nlet allPossibleConnectedPositions: RdxAllPossibleConnectedPositions;\nexport function getAllPossibleConnectedPositions() {\n if (!allPossibleConnectedPositions) {\n allPossibleConnectedPositions = new Map();\n }\n if (allPossibleConnectedPositions.size < 1) {\n Object.keys(POPOVER_POSITIONS).forEach((side) => {\n Object.keys(POPOVER_POSITIONS[side as RdxPopoverSide] ?? {}).forEach((align) => {\n (allPossibleConnectedPositions as Map<any, any>).set(\n `${side as RdxPopoverSide}|${align as RdxPopoverAlign}`,\n POPOVER_POSITIONS[side as RdxPopoverSide][align as RdxPopoverAlign]\n );\n });\n });\n }\n return allPossibleConnectedPositions;\n}\n\nexport function getSideAndAlignFromAllPossibleConnectedPositions(position: ConnectionPositionPair): RdxSideAndAlign {\n const allPossibleConnectedPositions = getAllPossibleConnectedPositions();\n let sideAndAlign: RdxSideAndAlign | undefined;\n allPossibleConnectedPositions.forEach((value, key) => {\n if (\n position.originX === value.originX &&\n position.originY === value.originY &&\n position.overlayX === value.overlayX &&\n position.overlayY === value.overlayY\n ) {\n const sideAndAlignArray = key.split('|');\n sideAndAlign = {\n side: sideAndAlignArray[0] as RdxPopoverSide,\n align: sideAndAlignArray[1] as RdxPopoverAlign\n };\n }\n });\n if (!sideAndAlign) {\n throw Error(\n `[RdxPopover] cannot infer both side and align from the given position (${JSON.stringify(position)})`\n );\n }\n return sideAndAlign;\n}\n\nexport function getContentPosition(\n sideAndAlignWithOffsets: RdxSideAndAlign & RdxSideAndAlignOffsets\n): ConnectedPosition {\n const { side, align, sideOffset, alignOffset } = sideAndAlignWithOffsets;\n\n const position = {\n ...(POPOVER_POSITIONS[side]?.[align] ?? POPOVER_POSITIONS[RdxPopoverSide.Top][RdxPopoverAlign.Center])\n };\n\n if (sideOffset > 0) {\n let xFactor = 0;\n let yFactor = 0;\n\n switch (side) {\n case RdxPopoverSide.Top:\n yFactor = -1;\n break;\n case RdxPopoverSide.Bottom:\n yFactor = 1;\n break;\n case RdxPopoverSide.Left:\n xFactor = -1;\n break;\n case RdxPopoverSide.Right:\n xFactor = 1;\n break;\n }\n\n position.offsetX = xFactor * sideOffset;\n position.offsetY = yFactor * sideOffset;\n }\n\n if ([RdxPopoverAlign.Start, RdxPopoverAlign.End].includes(align) && alignOffset) {\n const alignOffsetFactor = align === RdxPopoverAlign.End ? -1 : 1;\n\n position.offsetX = alignOffsetFactor * alignOffset;\n }\n\n return position;\n}\n\nexport function getArrowPositionParams(\n sideAndAlign: RdxSideAndAlign,\n arrowWidthAndHeight: { width: number; height: number },\n triggerWidthAndHeight: { width: number; height: number }\n): RdxArrowPositionParams {\n const posParams = {\n top: '',\n bottom: '',\n left: '',\n right: '',\n transform: ''\n };\n\n if ([RdxPopoverSide.Top, RdxPopoverSide.Bottom].includes(sideAndAlign.side)) {\n if (sideAndAlign.side === RdxPopoverSide.Top) {\n posParams.top = '100%';\n } else {\n posParams.top = `-${arrowWidthAndHeight.height}px`;\n posParams.transform = `rotate(180deg)`;\n }\n\n if (sideAndAlign.align === RdxPopoverAlign.Start) {\n posParams.left = `${(triggerWidthAndHeight.width - arrowWidthAndHeight.width) / 2}px`;\n } else if (sideAndAlign.align === RdxPopoverAlign.Center) {\n posParams.left = `calc(50% - ${arrowWidthAndHeight.width / 2}px)`;\n } else if (sideAndAlign.align === RdxPopoverAlign.End) {\n posParams.right = `${(triggerWidthAndHeight.width - arrowWidthAndHeight.width) / 2}px`;\n }\n } else if ([RdxPopoverSide.Left, RdxPopoverSide.Right].includes(sideAndAlign.side)) {\n if (sideAndAlign.side === RdxPopoverSide.Left) {\n posParams.right = `-${arrowWidthAndHeight.width}px`;\n posParams.transform = `rotate(-90deg) translate(0, -50%)`;\n } else {\n posParams.left = `-${arrowWidthAndHeight.width}px`;\n posParams.transform = `rotate(90deg) translate(0, -50%)`;\n }\n\n if (sideAndAlign.align === RdxPopoverAlign.Start) {\n posParams.top = `${(triggerWidthAndHeight.height - arrowWidthAndHeight.height) / 2}px`;\n } else if (sideAndAlign.align === RdxPopoverAlign.Center) {\n posParams.top = `calc(50% - ${arrowWidthAndHeight.height / 2}px)`;\n } else if (sideAndAlign.align === RdxPopoverAlign.End) {\n posParams.bottom = `${(triggerWidthAndHeight.height - arrowWidthAndHeight.height) / 2}px`;\n }\n }\n\n return posParams;\n}\n","import { ConnectedOverlayPositionChange } from '@angular/cdk/overlay';\nimport {\n AfterViewInit,\n computed,\n Directive,\n effect,\n ElementRef,\n forwardRef,\n inject,\n input,\n Renderer2,\n signal,\n untracked\n} from '@angular/core';\nimport { toSignal } from '@angular/core/rxjs-interop';\nimport { RdxPopoverArrowToken } from './popover-arrow.token';\nimport { injectPopoverRoot } from './popover-root.inject';\nimport { getArrowPositionParams, getSideAndAlignFromAllPossibleConnectedPositions } from './popover.utils';\n\n@Directive({\n selector: '[rdxPopoverArrow]',\n standalone: true,\n providers: [\n {\n provide: RdxPopoverArrowToken,\n useExisting: forwardRef(() => RdxPopoverArrowDirective)\n }\n ]\n})\nexport class RdxPopoverArrowDirective implements AfterViewInit {\n /** @ignore */\n private readonly renderer = inject(Renderer2);\n /** @ignore */\n private readonly popoverRoot = injectPopoverRoot();\n /** @ignore */\n private readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n /**\n * The width of the arrow in pixels.\n */\n readonly width = input<number>(10);\n\n /**\n * The height of the arrow in pixels.\n */\n readonly height = input<number>(5);\n\n /** @ignore */\n readonly arrowSvgElement = computed<HTMLElement>(() => {\n const width = this.width();\n const height = this.height();\n\n const svgElement = this.renderer.createElement('svg', 'svg');\n this.renderer.setAttribute(svgElement, 'viewBox', '0 0 30 10');\n this.renderer.setAttribute(svgElement, 'width', String(width));\n this.renderer.setAttribute(svgElement, 'height', String(height));\n const polygonElement = this.renderer.createElement('polygon', 'svg');\n this.renderer.setAttribute(polygonElement, 'points', '0,0 30,0 15,10');\n this.renderer.setAttribute(svgElement, 'preserveAspectRatio', 'none');\n this.renderer.appendChild(svgElement, polygonElement);\n\n return svgElement;\n });\n\n /** @ignore */\n private readonly currentArrowSvgElement = signal<HTMLOrSVGElement | undefined>(void 0);\n /** @ignore */\n private readonly position = toSignal(this.popoverRoot.popoverContentDirective().positionChange());\n\n /** @ignore */\n private triggerRect: DOMRect;\n\n constructor() {\n this.onArrowSvgElementChangeEffect();\n this.onContentPositionChangeEffect();\n }\n\n /** @ignore */\n ngAfterViewInit() {\n if (this.elementRef.nativeElement.parentElement) {\n this.renderer.setStyle(this.elementRef.nativeElement.parentElement, 'position', 'relative');\n }\n this.renderer.setStyle(this.elementRef.nativeElement, 'position', 'absolute');\n this.renderer.setStyle(this.elementRef.nativeElement, 'boxSizing', '');\n this.renderer.setStyle(this.elementRef.nativeElement, 'fontSize', '0px');\n this.triggerRect = this.popoverRoot.popoverTriggerDirective().elementRef.nativeElement.getBoundingClientRect();\n }\n\n /** @ignore */\n private setPosition(position: ConnectedOverlayPositionChange) {\n const posParams = getArrowPositionParams(\n getSideAndAlignFromAllPossibleConnectedPositions(position.connectionPair),\n { width: this.width(), height: this.height() },\n { width: this.triggerRect.width, height: this.triggerRect.height }\n );\n\n this.renderer.setStyle(this.elementRef.nativeElement, 'top', posParams.top);\n this.renderer.setStyle(this.elementRef.nativeElement, 'bottom', posParams.bottom);\n this.renderer.setStyle(this.elementRef.nativeElement, 'left', posParams.left);\n this.renderer.setStyle(this.elementRef.nativeElement, 'right', posParams.right);\n this.renderer.setStyle(this.elementRef.nativeElement, 'transform', posParams.transform);\n }\n\n /** @ignore */\n private onArrowSvgElementChangeEffect() {\n effect(() => {\n const arrowElement = this.arrowSvgElement();\n untracked(() => {\n const currentArrowSvgElement = this.currentArrowSvgElement();\n if (currentArrowSvgElement) {\n this.renderer.removeChild(this.elementRef.nativeElement, currentArrowSvgElement);\n }\n this.currentArrowSvgElement.set(arrowElement);\n this.renderer.setStyle(this.elementRef.nativeElement, 'width', `${this.width()}px`);\n this.renderer.setStyle(this.elementRef.nativeElement, 'height', `${this.height()}px`);\n this.renderer.appendChild(this.elementRef.nativeElement, this.currentArrowSvgElement());\n });\n });\n }\n\n /** @ignore */\n private onContentPositionChangeEffect() {\n effect(() => {\n const position = this.position();\n untracked(() => {\n if (!position) {\n return;\n }\n this.setPosition(position);\n });\n });\n }\n}\n","import { Directive, effect, ElementRef, inject, Renderer2, untracked } from '@angular/core';\nimport { injectPopoverRoot } from './popover-root.inject';\n\n@Directive({\n selector: '[rdxPopoverClose]',\n standalone: true,\n host: {\n type: 'button',\n '(click)': 'popoverRoot.handleClose()'\n }\n})\nexport class RdxPopoverCloseDirective {\n /** @ignore */\n readonly popoverRoot = injectPopoverRoot();\n /** @ignore */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef<HTMLElement>);\n /** @ignore */\n private readonly renderer = inject(Renderer2);\n\n constructor() {\n this.onIsControlledExternallyEffect();\n }\n\n /** @ignore */\n private onIsControlledExternallyEffect() {\n effect(() => {\n const isControlledExternally = this.popoverRoot.controlledExternally()();\n\n untracked(() => {\n this.renderer.setStyle(\n this.elementRef.nativeElement,\n 'display',\n isControlledExternally ? 'none' : null\n );\n });\n });\n }\n}\n","import { CdkConnectedOverlay, Overlay } from '@angular/cdk/overlay';\nimport {\n computed,\n DestroyRef,\n Directive,\n effect,\n inject,\n input,\n OnInit,\n output,\n SimpleChange,\n TemplateRef,\n untracked\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { filter, tap } from 'rxjs';\nimport { injectPopoverRoot } from './popover-root.inject';\nimport { DEFAULTS } from './popover.constants';\nimport { RdxPopoverAlign, RdxPopoverSide, RdxSideAndAlignOffsets } from './popover.types';\nimport { getAllPossibleConnectedPositions, getContentPosition } from './popover.utils';\n\n@Directive({\n selector: '[rdxPopoverContent]',\n standalone: true,\n hostDirectives: [\n {\n directive: CdkConnectedOverlay\n }\n ]\n})\nexport class RdxPopoverContentDirective implements OnInit {\n /** @ignore */\n readonly popoverRoot = injectPopoverRoot();\n /** @ignore */\n readonly templateRef = inject(TemplateRef);\n /** @ignore */\n readonly overlay = inject(Overlay);\n /** @ignore */\n readonly destroyRef = inject(DestroyRef);\n /** @ignore */\n private readonly connectedOverlay = inject(CdkConnectedOverlay);\n\n /**\n * The preferred side of the trigger to render against when open. Will be reversed when collisions occur and avoidCollisions is enabled.\n */\n readonly side = input<RdxPopoverSide>(RdxPopoverSide.Top);\n /**\n * The distance in pixels from the trigger.\n */\n readonly sideOffset = input<number | undefined>(void 0);\n\n /**\n * The preferred alignment against the trigger. May change when collisions occur.\n */\n readonly align = input<RdxPopoverAlign>(RdxPopoverAlign.Center);\n /**\n * An offset in pixels from the \"start\" or \"end\" alignment options.\n */\n readonly alignOffset = input<number | undefined>(void 0);\n\n /**\n * Whether to add some alternate positions of the content.\n */\n readonly disableAlternatePositions = input(false);\n\n /** @ingore */\n readonly positions = computed(() => {\n const greatestDimensionFromTheArrow = Math.max(\n this.popoverRoot.popoverArrowDirective()?.width() ?? 0,\n this.popoverRoot.popoverArrowDirective()?.height() ?? 0\n );\n const offsets: RdxSideAndAlignOffsets = {\n sideOffset: this.sideOffset() ?? (greatestDimensionFromTheArrow || DEFAULTS.offsets.side),\n alignOffset: this.alignOffset() ?? (greatestDimensionFromTheArrow || DEFAULTS.offsets.align)\n };\n const basePosition = getContentPosition({\n side: this.side(),\n align: this.align(),\n sideOffset: offsets.sideOffset,\n alignOffset: offsets.alignOffset\n });\n const positions = [basePosition];\n if (!this.disableAlternatePositions()) {\n /**\n * Alternate positions for better user experience along the X/Y axis (e.g. vertical/horizontal scrolling)\n */\n const allPossibleConnectedPositions = getAllPossibleConnectedPositions();\n allPossibleConnectedPositions.forEach((value, key) => {\n const sideAndAlignArray = key.split('|');\n if (\n (sideAndAlignArray[0] as RdxPopoverSide) !== this.side() ||\n (sideAndAlignArray[1] as RdxPopoverAlign) !== this.align()\n ) {\n positions.push(\n getContentPosition({\n side: sideAndAlignArray[0] as RdxPopoverSide,\n align: sideAndAlignArray[1] as RdxPopoverAlign,\n sideOffset: offsets.sideOffset,\n alignOffset: offsets.alignOffset\n })\n );\n }\n });\n }\n return positions;\n });\n\n /**\n * Event handler called when the escape key is down. It can be prevented by calling event.preventDefault.\n */\n readonly onEscapeKeyDown = output<KeyboardEvent>();\n\n /**\n * Event handler called when a pointer event occurs outside the bounds of the component. It can be prevented by calling event.preventDefault.\n */\n readonly onPointerDownOutside = output<MouseEvent>();\n\n /**\n * Event handler called when the overlay is atached\n */\n readonly onShow = output<void>();\n /**\n * Event handler called when the overlay is detached\n */\n readonly onHide = output<void>();\n\n constructor() {\n this.onPositionChangeEffect();\n this.onControlledExternallyChangeEffect();\n }\n\n /** @ignore */\n ngOnInit() {\n this.setOrigin();\n this.setScrollStrategy();\n this.onAttach();\n this.onDetach();\n this.connectKeydownEscape();\n this.connectOutsideClick();\n }\n\n /** @ignore */\n show() {\n const prevOpen = this.connectedOverlay.open;\n this.connectedOverlay.open = true;\n if (!prevOpen) {\n this.connectedOverlay.ngOnChanges({ open: new SimpleChange(prevOpen, true, false) });\n }\n }\n\n /** @ignore */\n hide() {\n const prevOpen = this.connectedOverlay.open;\n this.connectedOverlay.open = false;\n if (prevOpen) {\n this.connectedOverlay.ngOnChanges({ open: new SimpleChange(prevOpen, false, false) });\n }\n }\n\n /** @ignore */\n positionChange() {\n return this.connectedOverlay.positionChange.asObservable();\n }\n\n /** @ignore */\n private connectKeydownEscape() {\n this.connectedOverlay.overlayKeydown\n .asObservable()\n .pipe(\n filter((event) => event.key === 'Escape'),\n tap((event) => {\n this.onEscapeKeyDown.emit(event);\n if (!event.defaultPrevented) {\n this.popoverRoot.handleClose();\n }\n }),\n takeUntilDestroyed(this.destroyRef)\n )\n .subscribe();\n }\n\n /** @ignore */\n private connectOutsideClick() {\n this.connectedOverlay.overlayOutsideClick\n .asObservable()\n .pipe(\n tap((event) => {\n this.onPointerDownOutside.emit(event);\n }),\n takeUntilDestroyed(this.destroyRef)\n )\n .subscribe();\n }\n\n /** @ignore */\n private onAttach() {\n this.connectedOverlay.attach\n .asObservable()\n .pipe(\n tap(() => {\n this.onShow.emit();\n }),\n takeUntilDestroyed(this.destroyRef)\n )\n .subscribe();\n }\n\n /** @ignore */\n private onDetach() {\n this.connectedOverlay.detach\n .asObservable()\n .pipe(\n tap(() => {\n this.onHide.emit();\n }),\n takeUntilDestroyed(this.destroyRef)\n )\n .subscribe();\n }\n\n /** @ignore */\n private setScrollStrategy() {\n const prevScrollStrategy = this.connectedOverlay.scrollStrategy;\n this.connectedOverlay.scrollStrategy = this.overlay.scrollStrategies.reposition();\n this.connectedOverlay.ngOnChanges({\n scrollStrategy: new SimpleChange(prevScrollStrategy, this.connectedOverlay.scrollStrategy, false)\n });\n }\n\n /** @ignore */\n private setDisableClose() {\n const prevDisableClose = this.connectedOverlay.disableClose;\n this.connectedOverlay.disableClose = this.popoverRoot.controlledExternally()();\n this.connectedOverlay.ngOnChanges({\n disableClose: new SimpleChange(prevDisableClose, this.connectedOverlay.disableClose, false)\n });\n }\n\n /** @ignore */\n private setOrigin() {\n const prevOrigin = this.connectedOverlay.origin;\n this.connectedOverlay.origin = this.popoverRoot.popoverTriggerDirective().overlayOrigin;\n this.connectedOverlay.ngOnChanges({\n origin: new SimpleChange(prevOrigin, this.connectedOverlay.origin, false)\n });\n }\n\n /** @ignore */\n private onPositionChangeEffect() {\n effect(() => {\n const positions = this.positions();\n this.disableAlternatePositions();\n untracked(() => {\n const prevPositions = this.connectedOverlay.positions;\n this.connectedOverlay.positions = positions;\n this.connectedOverlay.ngOnChanges({\n positions: new SimpleChange(prevPositions, this.connectedOverlay.positions, false)\n });\n this.connectedOverlay.overlayRef?.updatePosition();\n });\n });\n }\n\n /** @ignore */\n private onControlledExternallyChangeEffect() {\n effect(() => {\n this.popoverRoot.controlledExternally()();\n untracked(() => {\n this.setDisableClose();\n });\n });\n }\n}\n","import { CdkOverlayOrigin } from '@angular/cdk/overlay';\nimport { computed, Directive, ElementRef, inject, input } from '@angular/core';\nimport { injectPopoverRoot } from './popover-root.inject';\n\nlet nextId = 0;\n\n@Directive({\n selector: '[rdxPopoverTrigger]',\n standalone: true,\n hostDirectives: [CdkOverlayOrigin],\n host: {\n type: 'button',\n '[attr.id]': 'id()',\n '[attr.aria-haspopup]': '\"dialog\"',\n '[attr.aria-expanded]': 'popoverRoot.isOpen()',\n '[attr.aria-controls]': 'popoverId()',\n '[attr.data-state]': 'popoverRoot.state()',\n '(click)': 'onClick()'\n }\n})\nexport class RdxPopoverTriggerDirective {\n readonly id = input(`rdx-popover-root-${nextId++}`);\n readonly popoverId = computed(() => `rdx-popover-${this.id()}`);\n\n /** @ignore */\n readonly popoverRoot = injectPopoverRoot();\n /** @ignore */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef<HTMLElement>);\n /** @ignore */\n readonly overlayOrigin = inject(CdkOverlayOrigin);\n\n /** @ignore */\n onClick(): void {\n this.popoverRoot.handleToggle();\n }\n}\n","import { DOCUMENT } from '@angular/common';\nimport {\n computed,\n contentChild,\n Directive,\n effect,\n forwardRef,\n inject,\n input,\n OnInit,\n output,\n signal,\n untracked,\n ViewContainerRef\n} from '@angular/core';\nimport { RdxPopoverArrowToken } from './popover-arrow.token';\nimport { RdxPopoverContentDirective } from './popover-content.directive';\nimport { RdxPopoverRootToken } from './popover-root.token';\nimport { RdxPopoverTriggerDirective } from './popover-trigger.directive';\nimport { RdxPopoverState } from './popover.types';\n\n@Directive({\n selector: '[rdxPopoverRoot]',\n standalone: true,\n providers: [\n {\n provide: RdxPopoverRootToken,\n useExisting: forwardRef(() => RdxPopoverRootDirective)\n }\n ],\n exportAs: 'rdxPopoverRoot'\n})\nexport class RdxPopoverRootDirective implements OnInit {\n /**\n * The open state of the popover when it is initially rendered. Use when you do not need to control its open state.\n */\n readonly defaultOpen = input<boolean>(false);\n /**\n * The controlled open state of the popover. Must be used in conjunction with onOpenChange.\n */\n readonly open = input<boolean | undefined>();\n\n /**\n * Event handler called when the open state of the popover changes.\n */\n readonly onOpenChange = output<boolean>();\n\n /** @ignore */\n readonly popoverContentDirective = contentChild.required(RdxPopoverContentDirective);\n /** @ignore */\n readonly popoverTriggerDirective = contentChild.required(RdxPopoverTriggerDirective);\n /** @ignore */\n readonly popoverArrowDirective = contentChild(RdxPopoverArrowToken);\n\n /** @ignore */\n readonly viewContainerRef = inject(ViewContainerRef);\n /** @ignore */\n private readonly document = inject(DOCUMENT);\n\n /** @ignore */\n readonly isOpen = signal<boolean>(this.defaultOpen());\n /** @ignore */\n readonly state = computed<RdxPopoverState>(() => {\n const currentIsOpen = this.isOpen();\n if (currentIsOpen) {\n return 'open';\n }\n return 'closed';\n });\n\n /** @ignore */\n private isControlledExternally = computed(() => signal(this.open() !== void 0));\n\n constructor() {\n this.onOpenChangeEffect();\n this.onIsOpenChangeEffect();\n }\n\n /** @ignore */\n ngOnInit(): void {\n if (this.defaultOpen()) {\n this.handleOpen();\n }\n }\n\n /** @ignore */\n controlledExternally() {\n return this.isControlledExternally().asReadonly();\n }\n\n /** @ignore */\n handleOpen(): void {\n if (this.isControlledExternally()()) {\n return;\n }\n this.setOpen(true);\n }\n\n /** @ignore */\n handleClose(): void {\n if (this.isControlledExternally()()) {\n return;\n }\n this.setOpen(false);\n }\n\n /** @ignore */\n handleToggle(): void {\n if (this.isControlledExternally()()) {\n return;\n }\n this.isOpen() ? this.handleClose() : this.handleOpen();\n }\n\n /** @ignore */\n private setOpen(open = false): void {\n if (open) {\n this.document.dispatchEvent(new CustomEvent('popover.open'));\n }\n\n this.isOpen.set(open);\n this.onOpenChange.emit(open);\n }\n\n /** @ignore */\n private show(): void {\n this.popoverContentDirective().show();\n }\n\n /** @ignore */\n private hide(): void {\n this.popoverContentDirective().hide();\n }\n\n /** @ignore */\n private onIsOpenChangeEffect() {\n effect(() => {\n const isOpen = this.isOpen();\n\n untracked(() => {\n if (isOpen) {\n this.show();\n } else {\n this.hide();\n }\n });\n });\n }\n\n /** @ignore */\n private onOpenChangeEffect() {\n effect(() => {\n const currentOpen = this.open();\n\n untracked(() => {\n this.isControlledExternally().set(currentOpen !== void 0);\n if (this.isControlledExternally()()) {\n this.setOpen(currentOpen);\n }\n });\n });\n }\n}\n","import { NgModule } from '@angular/core';\nimport { RdxPopoverArrowDirective } from './src/popover-arrow.directive';\nimport { RdxPopoverCloseDirective } from './src/popover-close.directive';\nimport { RdxPopoverContentDirective } from './src/popover-content.directive';\nimport { RdxPopoverRootDirective } from './src/popover-root.directive';\nimport { RdxPopoverTriggerDirective } from './src/popover-trigger.directive';\n\nexport * from './src/popover-arrow.directive';\nexport * from './src/popover-close.directive';\nexport * from './src/popover-content.directive';\nexport * from './src/popover-root.directive';\nexport * from './src/popover-trigger.directive';\nexport * from './src/popover.types';\n\nconst _imports = [\n RdxPopoverArrowDirective,\n RdxPopoverCloseDirective,\n RdxPopoverContentDirective,\n RdxPopoverTriggerDirective,\n RdxPopoverRootDirective\n];\n\n@NgModule({\n imports: [..._imports],\n exports: [..._imports]\n})\nexport class RdxPopoverModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAGO,MAAM,oBAAoB,GAAG,IAAI,cAAc,CAA2B,sBAAsB,CAAC;;ACAjG,MAAM,mBAAmB,GAAG,IAAI,cAAc,CAA0B,qBAAqB,CAAC;;SCCrF,iBAAiB,GAAA;AAC7B,IAAA,SAAS,EAAE,IAAI,wBAAwB,CAAC,iBAAiB,CAAC;AAC1D,IAAA,OAAO,MAAM,CAAC,mBAAmB,CAAC;AACtC;;ICLY;AAAZ,CAAA,UAAY,cAAc,EAAA;AACtB,IAAA,cAAA,CAAA,KAAA,CAAA,GAAA,KAAW;AACX,IAAA,cAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AACf,IAAA,cAAA,CAAA,QAAA,CAAA,GAAA,QAAiB;AACjB,IAAA,cAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACjB,CAAC,EALW,cAAc,KAAd,cAAc,GAKzB,EAAA,CAAA,CAAA;IAEW;AAAZ,CAAA,UAA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GAAG,QAAQ,CAAC;AACtB,oBAAA,OAAO,EAAE,CAAC,GAAG,QAAQ;AACxB,iBAAA;;;ACzBD;;AAEG;;;;"}
|
|
@@ -1,95 +1,25 @@
|
|
|
1
|
-
import { FocusKeyManager } from '@angular/cdk/a11y';
|
|
2
|
-
import { TAB, LEFT_ARROW, UP_ARROW, RIGHT_ARROW, DOWN_ARROW, SPACE, ENTER } from '@angular/cdk/keycodes';
|
|
3
1
|
import * as i0 from '@angular/core';
|
|
4
|
-
import { InjectionToken,
|
|
2
|
+
import { InjectionToken, model, input, booleanAttribute, output, signal, computed, Directive, Input, inject, ElementRef } from '@angular/core';
|
|
5
3
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
6
|
-
import
|
|
4
|
+
import * as i1 from '@radix-ng/primitives/roving-focus';
|
|
5
|
+
import { RdxRovingFocusGroupDirective, RdxRovingFocusItemDirective } from '@radix-ng/primitives/roving-focus';
|
|
6
|
+
import * as i1$1 from '@radix-ng/primitives/visually-hidden';
|
|
7
|
+
import { RdxVisuallyHiddenDirective } from '@radix-ng/primitives/visually-hidden';
|
|
7
8
|
|
|
8
9
|
const RDX_RADIO_GROUP = new InjectionToken('RdxRadioGroup');
|
|
9
10
|
|
|
10
|
-
const RdxRadioItemToken = new InjectionToken('RadioItemToken');
|
|
11
|
-
function injectRadioItem() {
|
|
12
|
-
return inject(RdxRadioItemToken);
|
|
13
|
-
}
|
|
14
|
-
// Increasing integer for generating unique ids for radio components.
|
|
15
|
-
let nextUniqueId = 0;
|
|
16
|
-
class RdxRadioItemDirective {
|
|
17
|
-
constructor() {
|
|
18
|
-
this.radioGroup = inject(RDX_RADIO_GROUP);
|
|
19
|
-
this.element = inject(ElementRef);
|
|
20
|
-
this.id = `rdx-radio-${++nextUniqueId}`;
|
|
21
|
-
this.disabled = false;
|
|
22
|
-
}
|
|
23
|
-
get tabIndex() {
|
|
24
|
-
return this.disabled ? -1 : this.radioGroup.value === this.value ? 0 : -1;
|
|
25
|
-
}
|
|
26
|
-
get checked() {
|
|
27
|
-
return this.radioGroup.value === this.value;
|
|
28
|
-
}
|
|
29
|
-
ngOnInit() {
|
|
30
|
-
if (this.radioGroup.defaultValue === this.value) {
|
|
31
|
-
this.radioGroup.select(this.value);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
focus() {
|
|
35
|
-
this.element.nativeElement.focus();
|
|
36
|
-
}
|
|
37
|
-
_onClick() {
|
|
38
|
-
if (!this.disabled) {
|
|
39
|
-
this.radioGroup.select(this.value);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
_onBlur() {
|
|
43
|
-
this.radioGroup.onTouched?.();
|
|
44
|
-
}
|
|
45
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxRadioItemDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
46
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "18.2.11", type: RdxRadioItemDirective, isStandalone: true, selector: "[rdxRadioItem]", inputs: { id: "id", value: "value", disabled: ["disabled", "disabled", booleanAttribute] }, host: { attributes: { "type": "button", "role": "radio" }, listeners: { "click": "_onClick()", "blur": "_onBlur()" }, properties: { "attr.id": "id", "attr.aria-checked": "checked", "attr.data-disabled": "disabled ? \"\" : null", "attr.data-state": "checked ? \"checked\" : \"unchecked\"", "attr.tabindex": "tabIndex" } }, providers: [{ provide: RdxRadioItemToken, useExisting: RdxRadioItemDirective }], exportAs: ["rdxRadioItem"], ngImport: i0 }); }
|
|
47
|
-
}
|
|
48
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxRadioItemDirective, decorators: [{
|
|
49
|
-
type: Directive,
|
|
50
|
-
args: [{
|
|
51
|
-
selector: '[rdxRadioItem]',
|
|
52
|
-
exportAs: 'rdxRadioItem',
|
|
53
|
-
standalone: true,
|
|
54
|
-
providers: [{ provide: RdxRadioItemToken, useExisting: RdxRadioItemDirective }],
|
|
55
|
-
host: {
|
|
56
|
-
type: 'button',
|
|
57
|
-
role: 'radio',
|
|
58
|
-
'[attr.id]': 'id',
|
|
59
|
-
'[attr.aria-checked]': 'checked',
|
|
60
|
-
'[attr.data-disabled]': 'disabled ? "" : null',
|
|
61
|
-
'[attr.data-state]': 'checked ? "checked" : "unchecked"',
|
|
62
|
-
'[attr.tabindex]': 'tabIndex',
|
|
63
|
-
'(click)': '_onClick()',
|
|
64
|
-
'(blur)': '_onBlur()'
|
|
65
|
-
}
|
|
66
|
-
}]
|
|
67
|
-
}], propDecorators: { id: [{
|
|
68
|
-
type: Input
|
|
69
|
-
}], value: [{
|
|
70
|
-
type: Input,
|
|
71
|
-
args: [{ required: true }]
|
|
72
|
-
}], disabled: [{
|
|
73
|
-
type: Input,
|
|
74
|
-
args: [{ transform: booleanAttribute }]
|
|
75
|
-
}] } });
|
|
76
|
-
|
|
77
11
|
class RdxRadioGroupDirective {
|
|
78
12
|
constructor() {
|
|
79
|
-
this.
|
|
80
|
-
this.disabled = false;
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
* Horizontal radio buttons can sometimes be challenging to scan and localize.
|
|
84
|
-
* The horizontal arrangement of radio buttons may also lead to difficulties in determining which
|
|
85
|
-
* label corresponds to which button: whether the label is above or below the button.
|
|
86
|
-
* @default 'vertical'
|
|
87
|
-
*/
|
|
88
|
-
this._orientation = 'vertical';
|
|
13
|
+
this.value = model(null);
|
|
14
|
+
this.disabled = input(false, { transform: booleanAttribute });
|
|
15
|
+
this.required = input(false, { transform: booleanAttribute });
|
|
16
|
+
this.orientation = input();
|
|
89
17
|
/**
|
|
90
18
|
* Event handler called when the value changes.
|
|
91
19
|
*/
|
|
92
|
-
this.onValueChange =
|
|
20
|
+
this.onValueChange = output();
|
|
21
|
+
this.disable = signal(this.disabled());
|
|
22
|
+
this.disableState = computed(() => this.disable() || this.disabled());
|
|
93
23
|
/**
|
|
94
24
|
* The callback function to call when the value of the radio group changes.
|
|
95
25
|
*/
|
|
@@ -98,131 +28,60 @@ class RdxRadioGroupDirective {
|
|
|
98
28
|
};
|
|
99
29
|
/**
|
|
100
30
|
* The callback function to call when the radio group is touched.
|
|
31
|
+
* @ignore
|
|
101
32
|
*/
|
|
102
33
|
this.onTouched = () => {
|
|
103
34
|
/* Empty */
|
|
104
35
|
};
|
|
105
36
|
}
|
|
106
|
-
ngAfterContentInit() {
|
|
107
|
-
this.focusKeyManager = new FocusKeyManager(this.radioItems).withWrap().withVerticalOrientation();
|
|
108
|
-
this.radioItems.changes.pipe(takeUntil(this.destroy$)).subscribe(() => {
|
|
109
|
-
this.updateActiveItem();
|
|
110
|
-
});
|
|
111
|
-
this.updateActiveItem(false);
|
|
112
|
-
}
|
|
113
|
-
ngOnDestroy() {
|
|
114
|
-
this.destroy$.next();
|
|
115
|
-
this.destroy$.complete();
|
|
116
|
-
}
|
|
117
37
|
/**
|
|
118
38
|
* Select a radio item.
|
|
119
39
|
* @param value The value of the radio item to select.
|
|
40
|
+
* @ignore
|
|
120
41
|
*/
|
|
121
42
|
select(value) {
|
|
122
|
-
this.value
|
|
43
|
+
this.value.set(value);
|
|
123
44
|
this.onValueChange.emit(value);
|
|
124
45
|
this.onChange?.(value);
|
|
125
|
-
this.updateActiveItem();
|
|
126
46
|
this.onTouched();
|
|
127
47
|
}
|
|
128
48
|
/**
|
|
129
49
|
* Update the value of the radio group.
|
|
130
50
|
* @param value The new value of the radio group.
|
|
131
|
-
* @
|
|
51
|
+
* @ignore
|
|
132
52
|
*/
|
|
133
53
|
writeValue(value) {
|
|
134
|
-
this.value
|
|
135
|
-
if (this.radioItems) {
|
|
136
|
-
this.updateActiveItem(false);
|
|
137
|
-
}
|
|
54
|
+
this.value.set(value);
|
|
138
55
|
}
|
|
139
56
|
/**
|
|
140
57
|
* Register a callback function to call when the value of the radio group changes.
|
|
141
58
|
* @param fn The callback function to call when the value of the radio group changes.
|
|
142
|
-
* @
|
|
59
|
+
* @ignore
|
|
143
60
|
*/
|
|
144
61
|
registerOnChange(fn) {
|
|
145
62
|
this.onChange = fn;
|
|
146
63
|
}
|
|
64
|
+
/** @ignore */
|
|
147
65
|
registerOnTouched(fn) {
|
|
148
66
|
this.onTouched = fn;
|
|
149
67
|
}
|
|
150
68
|
/**
|
|
151
69
|
* Set the disabled state of the radio group.
|
|
152
70
|
* @param isDisabled Whether the radio group is disabled.
|
|
153
|
-
* @
|
|
71
|
+
* @ignore
|
|
154
72
|
*/
|
|
155
73
|
setDisabledState(isDisabled) {
|
|
156
|
-
this.
|
|
157
|
-
}
|
|
158
|
-
/**
|
|
159
|
-
* When focus leaves the radio group.
|
|
160
|
-
*/
|
|
161
|
-
onFocusin(event) {
|
|
162
|
-
const target = event.target;
|
|
163
|
-
const radioItem = this.radioItems.find((item) => item.element.nativeElement === target);
|
|
164
|
-
if (radioItem) {
|
|
165
|
-
this.focusKeyManager.setActiveItem(radioItem);
|
|
166
|
-
}
|
|
74
|
+
this.disable.set(isDisabled);
|
|
167
75
|
}
|
|
168
|
-
onKeydown(
|
|
169
|
-
if (this.
|
|
76
|
+
onKeydown() {
|
|
77
|
+
if (this.disableState())
|
|
170
78
|
return;
|
|
171
|
-
switch (event.keyCode) {
|
|
172
|
-
case ENTER:
|
|
173
|
-
case SPACE:
|
|
174
|
-
event.preventDefault();
|
|
175
|
-
this.selectFocusedItem();
|
|
176
|
-
break;
|
|
177
|
-
case DOWN_ARROW:
|
|
178
|
-
case RIGHT_ARROW:
|
|
179
|
-
event.preventDefault();
|
|
180
|
-
this.focusKeyManager.setNextItemActive();
|
|
181
|
-
this.selectFocusedItem();
|
|
182
|
-
break;
|
|
183
|
-
case UP_ARROW:
|
|
184
|
-
case LEFT_ARROW:
|
|
185
|
-
event.preventDefault();
|
|
186
|
-
this.focusKeyManager.setPreviousItemActive();
|
|
187
|
-
this.selectFocusedItem();
|
|
188
|
-
break;
|
|
189
|
-
case TAB:
|
|
190
|
-
this.tabNavigation(event);
|
|
191
|
-
break;
|
|
192
|
-
default:
|
|
193
|
-
this.focusKeyManager.onKeydown(event);
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
selectFocusedItem() {
|
|
197
|
-
const focusedItem = this.focusKeyManager.activeItem;
|
|
198
|
-
if (focusedItem) {
|
|
199
|
-
this.select(focusedItem.value);
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
updateActiveItem(setFocus = true) {
|
|
203
|
-
const activeItem = this.radioItems.find((item) => item.value === this.value);
|
|
204
|
-
if (activeItem) {
|
|
205
|
-
this.focusKeyManager.setActiveItem(activeItem);
|
|
206
|
-
}
|
|
207
|
-
else if (this.radioItems.length > 0 && setFocus) {
|
|
208
|
-
this.focusKeyManager.setFirstItemActive();
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
tabNavigation(event) {
|
|
212
|
-
event.preventDefault();
|
|
213
|
-
const checkedItem = this.radioItems.find((item) => item.checked);
|
|
214
|
-
if (checkedItem) {
|
|
215
|
-
checkedItem.focus();
|
|
216
|
-
}
|
|
217
|
-
else if (this.radioItems.first) {
|
|
218
|
-
this.radioItems.first.focus();
|
|
219
|
-
}
|
|
220
79
|
}
|
|
221
80
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxRadioGroupDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
222
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
81
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.2.11", type: RdxRadioGroupDirective, isStandalone: true, selector: "[rdxRadioRoot]", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, defaultValue: { classPropertyName: "defaultValue", publicName: "defaultValue", isSignal: false, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", onValueChange: "onValueChange" }, host: { attributes: { "role": "radiogroup" }, listeners: { "keydown": "onKeydown()" }, properties: { "attr.aria-orientation": "orientation()", "attr.aria-required": "required()", "attr.data-disabled": "disableState() ? \"\" : null" } }, providers: [
|
|
223
82
|
{ provide: RDX_RADIO_GROUP, useExisting: RdxRadioGroupDirective },
|
|
224
83
|
{ provide: NG_VALUE_ACCESSOR, useExisting: RdxRadioGroupDirective, multi: true }
|
|
225
|
-
],
|
|
84
|
+
], exportAs: ["rdxRadioRoot"], hostDirectives: [{ directive: i1.RdxRovingFocusGroupDirective, inputs: ["dir", "dir", "orientation", "orientation", "loop", "loop"] }], ngImport: i0 }); }
|
|
226
85
|
}
|
|
227
86
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxRadioGroupDirective, decorators: [{
|
|
228
87
|
type: Directive,
|
|
@@ -234,32 +93,100 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImpo
|
|
|
234
93
|
{ provide: RDX_RADIO_GROUP, useExisting: RdxRadioGroupDirective },
|
|
235
94
|
{ provide: NG_VALUE_ACCESSOR, useExisting: RdxRadioGroupDirective, multi: true }
|
|
236
95
|
],
|
|
96
|
+
hostDirectives: [{ directive: RdxRovingFocusGroupDirective, inputs: ['dir', 'orientation', 'loop'] }],
|
|
237
97
|
host: {
|
|
238
98
|
role: 'radiogroup',
|
|
239
|
-
'[attr.aria-orientation]': '
|
|
240
|
-
'[attr.
|
|
241
|
-
'[attr.
|
|
242
|
-
'
|
|
243
|
-
'(keydown)': 'onKeydown($event)',
|
|
244
|
-
'(focusin)': 'onFocusin($event)'
|
|
99
|
+
'[attr.aria-orientation]': 'orientation()',
|
|
100
|
+
'[attr.aria-required]': 'required()',
|
|
101
|
+
'[attr.data-disabled]': 'disableState() ? "" : null',
|
|
102
|
+
'(keydown)': 'onKeydown()'
|
|
245
103
|
}
|
|
246
104
|
}]
|
|
247
|
-
}], propDecorators: {
|
|
248
|
-
type: ContentChildren,
|
|
249
|
-
args: [RdxRadioItemDirective, { descendants: true }]
|
|
250
|
-
}], value: [{
|
|
105
|
+
}], propDecorators: { defaultValue: [{
|
|
251
106
|
type: Input
|
|
252
|
-
}], disabled: [{
|
|
253
|
-
type: Input,
|
|
254
|
-
args: [{ transform: booleanAttribute }]
|
|
255
|
-
}], dir: [{
|
|
256
|
-
type: Input
|
|
257
|
-
}], defaultValue: [{
|
|
258
|
-
type: Input
|
|
259
|
-
}], onValueChange: [{
|
|
260
|
-
type: Output
|
|
261
107
|
}] } });
|
|
262
108
|
|
|
109
|
+
const RdxRadioItemToken = new InjectionToken('RadioItemToken');
|
|
110
|
+
function injectRadioItem() {
|
|
111
|
+
return inject(RdxRadioItemToken);
|
|
112
|
+
}
|
|
113
|
+
class RdxRadioItemDirective {
|
|
114
|
+
constructor() {
|
|
115
|
+
this.radioGroup = inject(RDX_RADIO_GROUP);
|
|
116
|
+
this.elementRef = inject(ElementRef);
|
|
117
|
+
this.value = input.required();
|
|
118
|
+
this.id = input();
|
|
119
|
+
this.required = input();
|
|
120
|
+
this.disabled = input(false, { transform: booleanAttribute });
|
|
121
|
+
this.disabledState = computed(() => this.radioGroup.disableState() || this.disabled());
|
|
122
|
+
this.checkedState = computed(() => this.radioGroup.value() === this.value());
|
|
123
|
+
this.ARROW_KEYS = ['ArrowUp', 'ArrowDown', 'ArrowLeft', 'ArrowRight'];
|
|
124
|
+
this.isArrowKeyPressedSignal = signal(false);
|
|
125
|
+
}
|
|
126
|
+
/** @ignore */
|
|
127
|
+
ngOnInit() {
|
|
128
|
+
if (this.radioGroup.defaultValue === this.value()) {
|
|
129
|
+
this.radioGroup.select(this.value());
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
/** @ignore */
|
|
133
|
+
onClick() {
|
|
134
|
+
if (!this.disabledState()) {
|
|
135
|
+
this.radioGroup.select(this.value());
|
|
136
|
+
this.isArrowKeyPressedSignal.set(true);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
/** @ignore */
|
|
140
|
+
onKeyDown(event) {
|
|
141
|
+
if (this.ARROW_KEYS.includes(event.key)) {
|
|
142
|
+
this.isArrowKeyPressedSignal.set(true);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
/** @ignore */
|
|
146
|
+
onKeyUp() {
|
|
147
|
+
this.isArrowKeyPressedSignal.set(false);
|
|
148
|
+
}
|
|
149
|
+
/** @ignore */
|
|
150
|
+
onFocus() {
|
|
151
|
+
this.radioGroup.select(this.value());
|
|
152
|
+
setTimeout(() => {
|
|
153
|
+
/**
|
|
154
|
+
* When navigating with arrow keys, focus triggers on the radio item.
|
|
155
|
+
* To "check" the radio, we programmatically trigger a click event.
|
|
156
|
+
*/
|
|
157
|
+
if (this.isArrowKeyPressedSignal()) {
|
|
158
|
+
this.elementRef.nativeElement.click();
|
|
159
|
+
}
|
|
160
|
+
}, 0);
|
|
161
|
+
}
|
|
162
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxRadioItemDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
163
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.2.11", type: RdxRadioItemDirective, isStandalone: true, selector: "[rdxRadioItem]", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "type": "button", "role": "radio" }, listeners: { "click": "onClick()", "keydown": "onKeyDown($event)", "keyup": "onKeyUp()", "focus": "onFocus()" }, properties: { "attr.aria-checked": "checkedState()", "attr.data-disabled": "disabledState() ? \"\" : null", "attr.data-state": "checkedState() ? \"checked\" : \"unchecked\"", "disabled": "disabledState()" } }, providers: [{ provide: RdxRadioItemToken, useExisting: RdxRadioItemDirective }], exportAs: ["rdxRadioItem"], hostDirectives: [{ directive: i1.RdxRovingFocusItemDirective, inputs: ["tabStopId", "id", "focusable", "focusable", "active", "active", "allowShiftKey", "allowShiftKey"] }], ngImport: i0 }); }
|
|
164
|
+
}
|
|
165
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxRadioItemDirective, decorators: [{
|
|
166
|
+
type: Directive,
|
|
167
|
+
args: [{
|
|
168
|
+
selector: '[rdxRadioItem]',
|
|
169
|
+
exportAs: 'rdxRadioItem',
|
|
170
|
+
standalone: true,
|
|
171
|
+
providers: [{ provide: RdxRadioItemToken, useExisting: RdxRadioItemDirective }],
|
|
172
|
+
hostDirectives: [
|
|
173
|
+
{ directive: RdxRovingFocusItemDirective, inputs: ['tabStopId: id', 'focusable', 'active', 'allowShiftKey'] }
|
|
174
|
+
],
|
|
175
|
+
host: {
|
|
176
|
+
type: 'button',
|
|
177
|
+
role: 'radio',
|
|
178
|
+
'[attr.aria-checked]': 'checkedState()',
|
|
179
|
+
'[attr.data-disabled]': 'disabledState() ? "" : null',
|
|
180
|
+
'[attr.data-state]': 'checkedState() ? "checked" : "unchecked"',
|
|
181
|
+
'[disabled]': 'disabledState()',
|
|
182
|
+
'(click)': 'onClick()',
|
|
183
|
+
'(keydown)': 'onKeyDown($event)',
|
|
184
|
+
'(keyup)': 'onKeyUp()',
|
|
185
|
+
'(focus)': 'onFocus()'
|
|
186
|
+
}
|
|
187
|
+
}]
|
|
188
|
+
}] });
|
|
189
|
+
|
|
263
190
|
class RdxRadioIndicatorDirective {
|
|
264
191
|
constructor() {
|
|
265
192
|
this.radioGroup = inject(RDX_RADIO_GROUP);
|
|
@@ -281,9 +208,41 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImpo
|
|
|
281
208
|
}]
|
|
282
209
|
}] });
|
|
283
210
|
|
|
211
|
+
class RdxRadioItemInputDirective {
|
|
212
|
+
constructor() {
|
|
213
|
+
this.radioItem = injectRadioItem();
|
|
214
|
+
this.name = input();
|
|
215
|
+
this.value = computed(() => this.radioItem.value() || undefined);
|
|
216
|
+
this.checked = computed(() => this.radioItem.checkedState() || undefined);
|
|
217
|
+
this.required = input(this.radioItem.required());
|
|
218
|
+
this.disabled = input(this.radioItem.disabled());
|
|
219
|
+
}
|
|
220
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxRadioItemInputDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
221
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.2.11", type: RdxRadioItemInputDirective, isStandalone: true, selector: "[rdxRadioItemInput]", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "type": "radio" }, properties: { "attr.name": "name()", "attr.required": "required()", "attr.disabled": "disabled() ? disabled() : undefined", "attr.checked": "checked()", "value": "value()" } }, exportAs: ["rdxRadioItemInput"], hostDirectives: [{ directive: i1$1.RdxVisuallyHiddenDirective, inputs: ["feature", "feature"] }], ngImport: i0 }); }
|
|
222
|
+
}
|
|
223
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxRadioItemInputDirective, decorators: [{
|
|
224
|
+
type: Directive,
|
|
225
|
+
args: [{
|
|
226
|
+
selector: '[rdxRadioItemInput]',
|
|
227
|
+
exportAs: 'rdxRadioItemInput',
|
|
228
|
+
standalone: true,
|
|
229
|
+
hostDirectives: [
|
|
230
|
+
{ directive: RdxVisuallyHiddenDirective, inputs: ['feature'] }
|
|
231
|
+
],
|
|
232
|
+
host: {
|
|
233
|
+
type: 'radio',
|
|
234
|
+
'[attr.name]': 'name()',
|
|
235
|
+
'[attr.required]': 'required()',
|
|
236
|
+
'[attr.disabled]': 'disabled() ? disabled() : undefined',
|
|
237
|
+
'[attr.checked]': 'checked()',
|
|
238
|
+
'[value]': 'value()'
|
|
239
|
+
}
|
|
240
|
+
}]
|
|
241
|
+
}] });
|
|
242
|
+
|
|
284
243
|
/**
|
|
285
244
|
* Generated bundle index. Do not edit.
|
|
286
245
|
*/
|
|
287
246
|
|
|
288
|
-
export { RdxRadioGroupDirective, RdxRadioIndicatorDirective, RdxRadioItemDirective, RdxRadioItemToken, injectRadioItem };
|
|
247
|
+
export { RdxRadioGroupDirective, RdxRadioIndicatorDirective, RdxRadioItemDirective, RdxRadioItemInputDirective, RdxRadioItemToken, injectRadioItem };
|
|
289
248
|
//# sourceMappingURL=radix-ng-primitives-radio.mjs.map
|