@radix-ng/primitives 1.0.0-beta.2 → 1.0.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +76 -6
- package/fesm2022/radix-ng-primitives-accordion.mjs +5 -3
- package/fesm2022/radix-ng-primitives-accordion.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-alert-dialog.mjs +31 -24
- package/fesm2022/radix-ng-primitives-alert-dialog.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-autocomplete.mjs +1744 -0
- package/fesm2022/radix-ng-primitives-autocomplete.mjs.map +1 -0
- package/fesm2022/radix-ng-primitives-calendar.mjs +5 -3
- package/fesm2022/radix-ng-primitives-calendar.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-combobox.mjs +1399 -606
- package/fesm2022/radix-ng-primitives-combobox.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-config.mjs +13 -4
- package/fesm2022/radix-ng-primitives-config.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-context-menu.mjs +51 -10
- package/fesm2022/radix-ng-primitives-context-menu.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-core.mjs +1345 -64
- package/fesm2022/radix-ng-primitives-core.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-date-field.mjs +5 -3
- package/fesm2022/radix-ng-primitives-date-field.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-dialog.mjs +271 -145
- package/fesm2022/radix-ng-primitives-dialog.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-direction-provider.mjs +70 -0
- package/fesm2022/radix-ng-primitives-direction-provider.mjs.map +1 -0
- package/fesm2022/radix-ng-primitives-dismissable-layer.mjs +519 -184
- package/fesm2022/radix-ng-primitives-dismissable-layer.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-drawer.mjs +154 -64
- package/fesm2022/radix-ng-primitives-drawer.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-field.mjs +3 -2
- package/fesm2022/radix-ng-primitives-field.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-floating-focus-manager.mjs +517 -0
- package/fesm2022/radix-ng-primitives-floating-focus-manager.mjs.map +1 -0
- package/fesm2022/radix-ng-primitives-focus-scope.mjs +296 -70
- package/fesm2022/radix-ng-primitives-focus-scope.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-menu.mjs +894 -299
- package/fesm2022/radix-ng-primitives-menu.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-menubar.mjs +32 -4
- package/fesm2022/radix-ng-primitives-menubar.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-navigation-menu.mjs +176 -207
- package/fesm2022/radix-ng-primitives-navigation-menu.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-popover.mjs +250 -250
- package/fesm2022/radix-ng-primitives-popover.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-popper.mjs +94 -45
- package/fesm2022/radix-ng-primitives-popper.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-portal.mjs +107 -17
- package/fesm2022/radix-ng-primitives-portal.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-presence.mjs +262 -79
- package/fesm2022/radix-ng-primitives-presence.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-preview-card.mjs +172 -218
- package/fesm2022/radix-ng-primitives-preview-card.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-roving-focus.mjs +4 -2
- package/fesm2022/radix-ng-primitives-roving-focus.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-scroll-area.mjs +5 -4
- package/fesm2022/radix-ng-primitives-scroll-area.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-select.mjs +303 -234
- package/fesm2022/radix-ng-primitives-select.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-slider.mjs +5 -3
- package/fesm2022/radix-ng-primitives-slider.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-stepper.mjs +5 -3
- package/fesm2022/radix-ng-primitives-stepper.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-time-field.mjs +5 -3
- package/fesm2022/radix-ng-primitives-time-field.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-toast.mjs +15 -36
- package/fesm2022/radix-ng-primitives-toast.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-toggle-group.mjs +5 -3
- package/fesm2022/radix-ng-primitives-toggle-group.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-toolbar.mjs +5 -3
- package/fesm2022/radix-ng-primitives-toolbar.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-tooltip.mjs +105 -145
- package/fesm2022/radix-ng-primitives-tooltip.mjs.map +1 -1
- package/package.json +14 -1
- package/types/radix-ng-primitives-accordion.d.ts +4 -3
- package/types/radix-ng-primitives-alert-dialog.d.ts +17 -11
- package/types/radix-ng-primitives-autocomplete.d.ts +661 -0
- package/types/radix-ng-primitives-calendar.d.ts +5 -3
- package/types/radix-ng-primitives-combobox.d.ts +727 -293
- package/types/radix-ng-primitives-config.d.ts +1 -1
- package/types/radix-ng-primitives-context-menu.d.ts +15 -5
- package/types/radix-ng-primitives-core.d.ts +762 -14
- package/types/radix-ng-primitives-date-field.d.ts +3 -2
- package/types/radix-ng-primitives-dialog.d.ts +107 -55
- package/types/radix-ng-primitives-direction-provider.d.ts +41 -0
- package/types/radix-ng-primitives-dismissable-layer.d.ts +147 -99
- package/types/radix-ng-primitives-drawer.d.ts +49 -22
- package/types/radix-ng-primitives-field.d.ts +1 -0
- package/types/radix-ng-primitives-floating-focus-manager.d.ts +175 -0
- package/types/radix-ng-primitives-focus-scope.d.ts +132 -1
- package/types/radix-ng-primitives-menu.d.ts +204 -112
- package/types/radix-ng-primitives-navigation-menu.d.ts +61 -101
- package/types/radix-ng-primitives-popover.d.ts +82 -115
- package/types/radix-ng-primitives-popper.d.ts +46 -10
- package/types/radix-ng-primitives-portal.d.ts +53 -8
- package/types/radix-ng-primitives-presence.d.ts +98 -17
- package/types/radix-ng-primitives-preview-card.d.ts +63 -95
- package/types/radix-ng-primitives-roving-focus.d.ts +7 -6
- package/types/radix-ng-primitives-scroll-area.d.ts +2 -2
- package/types/radix-ng-primitives-select.d.ts +192 -158
- package/types/radix-ng-primitives-slider.d.ts +5 -4
- package/types/radix-ng-primitives-stepper.d.ts +4 -3
- package/types/radix-ng-primitives-time-field.d.ts +3 -2
- package/types/radix-ng-primitives-toast.d.ts +7 -7
- package/types/radix-ng-primitives-toggle-group.d.ts +5 -4
- package/types/radix-ng-primitives-toolbar.d.ts +3 -2
- package/types/radix-ng-primitives-tooltip.d.ts +48 -84
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radix-ng-primitives-drawer.mjs","sources":["../../../packages/primitives/drawer/src/drawer-provider.ts","../../../packages/primitives/drawer/src/drawer-root.ts","../../../packages/primitives/drawer/src/drawer-backdrop.ts","../../../packages/primitives/drawer/src/drawer-close.ts","../../../packages/primitives/drawer/src/drawer-content.ts","../../../packages/primitives/drawer/src/drawer-description.ts","../../../packages/primitives/drawer/src/drawer-indent.ts","../../../packages/primitives/drawer/src/drawer-indent-background.ts","../../../packages/primitives/drawer/src/drawer-snap.ts","../../../packages/primitives/drawer/src/drawer-pointer.ts","../../../packages/primitives/drawer/src/drawer-swipe.ts","../../../packages/primitives/drawer/src/drawer-popup.ts","../../../packages/primitives/drawer/src/drawer-portal.ts","../../../packages/primitives/drawer/src/drawer-portal-presence.ts","../../../packages/primitives/drawer/src/drawer-swipe-area.ts","../../../packages/primitives/drawer/src/drawer-title.ts","../../../packages/primitives/drawer/src/drawer-trigger.ts","../../../packages/primitives/drawer/src/drawer-viewport.ts","../../../packages/primitives/drawer/src/drawer-handle.ts","../../../packages/primitives/drawer/index.ts","../../../packages/primitives/drawer/radix-ng-primitives-drawer.ts"],"sourcesContent":["import { computed, Directive, Injectable, Provider, signal, Signal } from '@angular/core';\n\n/** A single open drawer's registration with the {@link RdxDrawerProvider}. */\nexport interface RdxDrawerRegistration {\n /** Stable id of the registered drawer root. */\n id: string;\n /** The drawer popup's measured size (px) along its dismiss axis. */\n height: Signal<number>;\n}\n\n/**\n * App-level coordinator that tracks every open drawer so background content can react to them\n * (the page-scale / indent effect). Provide it once near the app root with\n * {@link provideRdxDrawerProvider} or the `[rdxDrawerProvider]` directive; drawers that find it in\n * their injector register while open. It is optional — drawers work without it.\n */\n@Injectable()\nexport class RdxDrawerProvider {\n private readonly stack = signal<RdxDrawerRegistration[]>([]);\n\n /** Number of open drawers. */\n readonly count = computed(() => this.stack().length);\n\n /** Whether any drawer is open. */\n readonly active = computed(() => this.count() > 0);\n\n /** The most recently opened (frontmost) drawer, or `null`. */\n readonly frontmost = computed<RdxDrawerRegistration | null>(() => this.stack().at(-1) ?? null);\n\n /** The frontmost drawer's measured size (px), or `0` when none is open. */\n readonly frontmostHeight = computed(() => this.frontmost()?.height() ?? 0);\n\n /** Register an open drawer; returns a disposer that removes it. */\n register(registration: RdxDrawerRegistration): () => void {\n this.stack.update((stack) => [...stack, registration]);\n\n return () => this.stack.update((stack) => stack.filter((entry) => entry !== registration));\n }\n}\n\n/** Provide a {@link RdxDrawerProvider} for an app (e.g. in `app.config.ts`). */\nexport function provideRdxDrawerProvider(): Provider[] {\n return [RdxDrawerProvider];\n}\n\n/**\n * Hosts a {@link RdxDrawerProvider} for its subtree. Put it on a wrapping element so descendant\n * drawer roots and `rdxDrawerIndent*` parts share one coordinator.\n */\n@Directive({\n selector: '[rdxDrawerProvider]',\n exportAs: 'rdxDrawerProvider',\n providers: [RdxDrawerProvider]\n})\nexport class RdxDrawerProviderDirective {}\n","import {\n booleanAttribute,\n computed,\n Directive,\n effect,\n inject,\n input,\n model,\n output,\n signal,\n Signal,\n untracked\n} from '@angular/core';\nimport { BooleanInput, createContext } from '@radix-ng/primitives/core';\nimport { RdxDialogRoot } from '@radix-ng/primitives/dialog';\nimport { RdxDrawerProvider } from './drawer-provider';\nimport { RdxDrawerSnapPoint } from './drawer-snap';\nimport { RdxDrawerSwipeDirection } from './drawer-swipe';\n\nexport interface RdxDrawerRootContext {\n /** Direction a swipe travels to dismiss the drawer. */\n swipeDirection: Signal<RdxDrawerSwipeDirection>;\n /** 0..1 progress of the active dismiss gesture; siblings (e.g. backdrop) react to it. */\n swipeProgress: Signal<number>;\n /** Reports gesture progress from the popup's swipe engine. */\n setSwipeProgress: (value: number) => void;\n /** Configured snap points (empty when the drawer has none). */\n snapPoints: Signal<readonly RdxDrawerSnapPoint[]>;\n /** Whether the drawer rests at discrete snap points. */\n hasSnapPoints: Signal<boolean>;\n /** The active snap point, or `null` when none is set / the drawer is closed. */\n activeSnapPoint: Signal<RdxDrawerSnapPoint | null>;\n /** Step at most one snap point per release instead of velocity-skipping. */\n sequentialSnap: Signal<boolean>;\n /** Sets the active snap point, optionally emitting `onSnapPointChange`. */\n setActiveSnapPoint: (value: RdxDrawerSnapPoint, emit: boolean) => void;\n /** Whether a drawer nested inside this one is open. */\n nestedDrawerOpen: Signal<boolean>;\n /** Number of drawers nested inside this one that are open. */\n nestedDrawerCount: Signal<number>;\n /** The app-wide frontmost drawer's measured size (px), via the optional provider. */\n frontmostHeight: Signal<number>;\n /** Reports the popup's measured size (px) so the provider can expose it. */\n reportPopupHeight: (height: number) => void;\n}\n\nexport const [injectRdxDrawerRootContext, provideRdxDrawerRootContext] = createContext<RdxDrawerRootContext>(\n 'RdxDrawerRootContext',\n 'components/drawer'\n);\n\nconst context = (): RdxDrawerRootContext => {\n const root = inject(RdxDrawerRoot);\n\n return {\n swipeDirection: root.swipeDirection,\n swipeProgress: root.swipeProgress.asReadonly(),\n setSwipeProgress: (value) => root.swipeProgress.set(value),\n snapPoints: root.normalizedSnapPoints,\n hasSnapPoints: root.hasSnapPoints,\n activeSnapPoint: root.snapPoint,\n sequentialSnap: root.snapToSequentialPoints,\n setActiveSnapPoint: (value, emit) => root.setActiveSnapPoint(value, emit),\n nestedDrawerOpen: root.nestedDrawerOpen,\n nestedDrawerCount: root.nestedDrawerCount,\n frontmostHeight: root.frontmostHeight,\n reportPopupHeight: (height) => root.popupHeight.set(height)\n };\n};\n\n/**\n * Groups all parts of the drawer.\n *\n * Composes the Dialog primitive directly (modal-by-default but user-overridable) and layers the\n * drawer-specific swipe and snap-point contract on top via {@link RdxDrawerRootContext}. Modality,\n * dismissal and detached-trigger handling are the dialog's: the `modal`, `disablePointerDismissal`\n * and `handle` inputs are proxied straight through, so a drawer is a modal dialog the user can make\n * non-modal.\n */\n@Directive({\n selector: '[rdxDrawerRoot]',\n exportAs: 'rdxDrawerRoot',\n hostDirectives: [\n {\n directive: RdxDialogRoot,\n inputs: [\n 'open',\n 'defaultOpen',\n 'triggerId',\n 'defaultTriggerId',\n 'handle',\n 'modal',\n 'disablePointerDismissal'\n ],\n outputs: ['openChange', 'triggerIdChange', 'onOpenChange', 'onOpenChangeComplete']\n }\n ],\n providers: [provideRdxDrawerRootContext(context)]\n})\nexport class RdxDrawerRoot {\n private readonly dialog = inject(RdxDialogRoot);\n private readonly provider = inject(RdxDrawerProvider, { optional: true });\n\n /** The popup's measured size (px) along its dismiss axis, reported by the popup. */\n readonly popupHeight = signal(0);\n\n /**\n * Direction a swipe travels to dismiss the drawer. The visual side of the drawer is consumer\n * CSS; this controls the dismiss gesture and the `data-swipe-direction` styling hook.\n */\n readonly swipeDirection = input<RdxDrawerSwipeDirection>('down');\n\n /**\n * Resting positions the drawer snaps to along the dismiss axis. Order ascending by openness; the\n * last entry is the default the drawer opens to. Omit for a plain open/closed drawer.\n */\n readonly snapPoints = input<readonly RdxDrawerSnapPoint[]>();\n\n /** The active snap point (controlled / uncontrolled with `[(snapPoint)]`). */\n readonly snapPoint = model<RdxDrawerSnapPoint | null>(null);\n\n /** The snap point the drawer opens to when uncontrolled; defaults to the most open point. */\n readonly defaultSnapPoint = input<RdxDrawerSnapPoint>();\n\n /** Step at most one snap point per release instead of letting velocity skip points. */\n readonly snapToSequentialPoints = input<boolean, BooleanInput>(false, { transform: booleanAttribute });\n\n /** Emits when the active snap point changes through a gesture. */\n readonly onSnapPointChange = output<RdxDrawerSnapPoint>();\n\n /** 0..1 progress of the active dismiss gesture, written by the popup's swipe engine. */\n readonly swipeProgress = signal(0);\n\n readonly normalizedSnapPoints = computed<readonly RdxDrawerSnapPoint[]>(() => this.snapPoints() ?? []);\n readonly hasSnapPoints = computed(() => this.normalizedSnapPoints().length > 0);\n\n /** Whether a drawer nested inside this one is open (reuses the dialog's nesting detection). */\n readonly nestedDrawerOpen = this.dialog.nestedDialogOpen;\n /** Number of open drawers nested inside this one. */\n readonly nestedDrawerCount = this.dialog.nestedOpenCount.asReadonly();\n /** The app-wide frontmost drawer's measured size (px); `0` without a provider. */\n readonly frontmostHeight = computed(() => this.provider?.frontmostHeight() ?? 0);\n\n /** Whether the drawer is open (read-only mirror of the composed dialog state). */\n readonly open = this.dialog.open;\n /** The active trigger's id. */\n readonly triggerId = this.dialog.triggerId;\n /** Payload of the active trigger. */\n readonly payload = this.dialog.payload;\n\n constructor() {\n // Apply the default snap point when opening without one set. The active snap point is left\n // untouched on close: clearing it would clobber a controlled `[(snapPoint)]` binding, and an\n // uncontrolled drawer simply reopens where it was left.\n effect(() => {\n const open = this.dialog.open();\n\n untracked(() => {\n const points = this.normalizedSnapPoints();\n\n if (open && this.snapPoint() === null && points.length > 0) {\n this.snapPoint.set(this.defaultSnapPoint() ?? points[points.length - 1]);\n }\n });\n });\n\n // Reset live swipe progress when closed so a reopened drawer never starts mid-gesture.\n effect(() => {\n if (!this.dialog.open()) {\n untracked(() => this.swipeProgress.set(0));\n }\n });\n\n // Register with the optional app-level provider while open so background content can react.\n effect((onCleanup) => {\n if (this.dialog.open() && this.provider) {\n onCleanup(\n untracked(() =>\n this.provider!.register({ id: this.dialog.contentId, height: this.popupHeight.asReadonly() })\n )\n );\n }\n });\n }\n\n setActiveSnapPoint(value: RdxDrawerSnapPoint, emit: boolean) {\n this.snapPoint.set(value);\n\n if (emit) {\n this.onSnapPointChange.emit(value);\n }\n }\n}\n","import { Directive } from '@angular/core';\nimport { RdxDialogBackdrop } from '@radix-ng/primitives/dialog';\nimport { injectRdxDrawerRootContext } from './drawer-root';\n\n/**\n * An overlay displayed beneath the drawer popup.\n *\n * Composes the dialog backdrop and additionally exposes `--drawer-swipe-progress` (0..1) so the\n * consumer can fade it in step with the dismiss gesture.\n */\n@Directive({\n selector: '[rdxDrawerBackdrop]',\n exportAs: 'rdxDrawerBackdrop',\n hostDirectives: [RdxDialogBackdrop],\n host: {\n '[style.--drawer-swipe-progress]': 'drawerContext.swipeProgress()',\n '[attr.data-nested-drawer-open]': 'drawerContext.nestedDrawerOpen() ? \"\" : undefined'\n }\n})\nexport class RdxDrawerBackdrop {\n protected readonly drawerContext = injectRdxDrawerRootContext();\n}\n","import { Directive } from '@angular/core';\nimport { RdxDialogClose } from '@radix-ng/primitives/dialog';\n\n/**\n * A button that closes the drawer.\n */\n@Directive({\n selector: 'button[rdxDrawerClose]',\n exportAs: 'rdxDrawerClose',\n hostDirectives: [RdxDialogClose]\n})\nexport class RdxDrawerClose {}\n","import { Directive } from '@angular/core';\n\n/**\n * The scrollable body of the drawer.\n *\n * A structural marker so the anatomy matches Base UI. The popup's swipe engine yields to scrolling\n * inside this region automatically (it only starts a dismiss gesture when the scroll is at its\n * edge), so no extra wiring is needed. Opt individual elements out of swiping with the\n * `data-base-ui-swipe-ignore` attribute.\n */\n@Directive({\n selector: '[rdxDrawerContent]',\n exportAs: 'rdxDrawerContent'\n})\nexport class RdxDrawerContent {}\n","import { Directive } from '@angular/core';\nimport { RdxDialogDescription } from '@radix-ng/primitives/dialog';\n\n/**\n * An accessible description announced when the drawer is opened.\n */\n@Directive({\n selector: '[rdxDrawerDescription]',\n exportAs: 'rdxDrawerDescription',\n hostDirectives: [RdxDialogDescription]\n})\nexport class RdxDrawerDescription {}\n","import { Directive, inject } from '@angular/core';\nimport { RdxDrawerProvider } from './drawer-provider';\n\n/**\n * Background content that scales/indents while any drawer is open.\n *\n * Reads the nearest {@link RdxDrawerProvider} and exposes styling hooks; the visual transform is\n * consumer CSS (headless):\n * - `[data-active]` — present while at least one drawer is open.\n * - `--nested-drawers` — the number of open drawers.\n * - `--drawer-frontmost-height` — the frontmost drawer's measured size, in pixels.\n */\n@Directive({\n selector: '[rdxDrawerIndent]',\n exportAs: 'rdxDrawerIndent',\n host: {\n '[attr.data-active]': 'provider?.active() ? \"\" : undefined',\n '[style.--nested-drawers]': 'provider?.count() ?? 0',\n '[style.--drawer-frontmost-height]': '(provider?.frontmostHeight() ?? 0) + \"px\"'\n }\n})\nexport class RdxDrawerIndent {\n protected readonly provider = inject(RdxDrawerProvider, { optional: true });\n}\n","import { Directive, inject } from '@angular/core';\nimport { RdxDrawerProvider } from './drawer-provider';\n\n/**\n * The page background layer that scales/indents while any drawer is open.\n *\n * Behaves like {@link RdxDrawerIndent} (same `[data-active]` / `--nested-drawers` /\n * `--drawer-frontmost-height` contract); kept as a distinct part so the page backdrop and the\n * indented content can be styled independently, mirroring Base UI.\n */\n@Directive({\n selector: '[rdxDrawerIndentBackground]',\n exportAs: 'rdxDrawerIndentBackground',\n host: {\n '[attr.data-active]': 'provider?.active() ? \"\" : undefined',\n '[style.--nested-drawers]': 'provider?.count() ?? 0',\n '[style.--drawer-frontmost-height]': '(provider?.frontmostHeight() ?? 0) + \"px\"'\n }\n})\nexport class RdxDrawerIndentBackground {\n protected readonly provider = inject(RdxDrawerProvider, { optional: true });\n}\n","import { clamp } from '@radix-ng/primitives/core';\nimport { RdxDrawerSwipeDirection } from './drawer-swipe';\n\n/**\n * A resting position for the drawer along the dismiss axis.\n *\n * - a number in `(0, 1]` — a fraction of the drawer's size (`1` = fully open);\n * - a number `> 1` — an absolute amount of the drawer revealed, in pixels;\n * - a string — `'148px'` (pixels), `'30rem'` (root-em), `'40%'` (fraction of size), or a bare number\n * as above.\n *\n * Order the `snapPoints` array ascending by openness; the last entry is treated as \"most open\" and\n * is the default the drawer opens to when `defaultSnapPoint` is not set.\n */\nexport type RdxDrawerSnapPoint = number | string;\n\n/**\n * Resolve a snap point to the number of pixels of the drawer revealed at that point. `rootFontSize`\n * (px) resolves `rem` units; it defaults to the CSS initial value of `16`.\n */\nexport function snapPointReveal(value: RdxDrawerSnapPoint, size: number, rootFontSize = 16): number {\n if (typeof value === 'number') {\n return value > 0 && value <= 1 ? value * size : clamp(value, 0, size);\n }\n\n const trimmed = value.trim();\n\n if (trimmed.endsWith('%')) {\n return clamp((parseFloat(trimmed) / 100) * size, 0, size);\n }\n\n const parsed = parseFloat(trimmed);\n\n if (Number.isNaN(parsed)) {\n return size;\n }\n\n if (trimmed.endsWith('rem')) {\n return clamp(parsed * rootFontSize, 0, size);\n }\n\n // A bare unit-less value still follows the number rule (`<= 1` is a fraction).\n return trimmed.endsWith('px')\n ? clamp(parsed, 0, size)\n : parsed > 0 && parsed <= 1\n ? parsed * size\n : clamp(parsed, 0, size);\n}\n\nexport interface RdxDrawerSnapEntry {\n value: RdxDrawerSnapPoint;\n /** Pixels of the drawer revealed at this point. */\n reveal: number;\n /** Translate magnitude (px) toward dismissal from fully-open; `0` is fully open. */\n offset: number;\n}\n\n/**\n * Build the snap entries for a given drawer size, sorted by openness (most open / smallest offset\n * first). `offset = size - reveal`, so a fully-revealed point sits at offset `0`.\n */\nexport function buildSnapEntries(\n values: readonly RdxDrawerSnapPoint[],\n size: number,\n rootFontSize = 16\n): RdxDrawerSnapEntry[] {\n return values\n .map((value) => {\n const reveal = snapPointReveal(value, size, rootFontSize);\n return { value, reveal, offset: clamp(size - reveal, 0, size) };\n })\n .sort((a, b) => a.offset - b.offset);\n}\n\n/** How many milliseconds of momentum a release's velocity projects forward when picking a target. */\nconst MOMENTUM_MS = 120;\n\nexport type RdxDrawerSnapTarget = { dismiss: true } | { index: number };\n\nexport interface RdxDrawerSnapResolveOptions {\n /** Snap offsets (px), ascending; index-aligned to the sorted entries. */\n offsets: readonly number[];\n /** Index of the currently active offset. */\n activeIndex: number;\n /** Projected resting offset (px toward dismissal) at release. */\n projected: number;\n /** Signed release velocity (px/ms), positive toward dismissal. */\n velocity: number;\n /** Drawer size (px); the dismiss target sits here (fully hidden). */\n size: number;\n /** Step at most one snap point per release instead of velocity-skipping. */\n sequential: boolean;\n /** Whether passing the most-closed point may dismiss the drawer. */\n canDismiss: boolean;\n}\n\n/** Pick the snap point (or dismissal) a release lands on. */\nexport function resolveSnapTarget(options: RdxDrawerSnapResolveOptions): RdxDrawerSnapTarget {\n const { offsets, activeIndex, projected, velocity, size, sequential, canDismiss } = options;\n\n if (sequential) {\n const active = offsets[activeIndex] ?? 0;\n\n if (projected > active) {\n const next = activeIndex + 1 < offsets.length ? offsets[activeIndex + 1] : canDismiss ? size : active;\n const midpoint = (active + next) / 2;\n\n if (projected >= midpoint) {\n if (activeIndex + 1 >= offsets.length) {\n return canDismiss ? { dismiss: true } : { index: activeIndex };\n }\n\n return { index: activeIndex + 1 };\n }\n\n return { index: activeIndex };\n }\n\n const previous = activeIndex - 1 >= 0 ? offsets[activeIndex - 1] : 0;\n const midpoint = (previous + active) / 2;\n\n return projected <= midpoint && activeIndex - 1 >= 0 ? { index: activeIndex - 1 } : { index: activeIndex };\n }\n\n const target = projected + velocity * MOMENTUM_MS;\n let bestIndex = 0;\n let bestDistance = Infinity;\n\n offsets.forEach((offset, index) => {\n const distance = Math.abs(offset - target);\n\n if (distance < bestDistance) {\n bestDistance = distance;\n bestIndex = index;\n }\n });\n\n if (canDismiss && Math.abs(size - target) < bestDistance) {\n return { dismiss: true };\n }\n\n return { index: bestIndex };\n}\n\n/** The unit translate vector pointing toward dismissal for a direction. */\nexport function dismissUnitVector(direction: RdxDrawerSwipeDirection): { x: number; y: number } {\n switch (direction) {\n case 'down':\n return { x: 0, y: 1 };\n case 'up':\n return { x: 0, y: -1 };\n case 'right':\n return { x: 1, y: 0 };\n case 'left':\n return { x: -1, y: 0 };\n }\n}\n","// The pointer-drag lifecycle now lives in core so other gesture primitives (e.g. toast) can share it.\n// Re-exported here to keep the drawer's internal imports and public API stable.\nexport { RdxPointerDragHandlers, usePointerDrag } from '@radix-ng/primitives/core';\n","import { assertInInjectionContext, DestroyRef, effect, inject, Signal } from '@angular/core';\nimport { clamp } from '@radix-ng/primitives/core';\nimport { usePointerDrag } from './drawer-pointer';\nimport { dismissUnitVector } from './drawer-snap';\n\n/**\n * Direction a swipe travels to dismiss the drawer. Mirrors Base UI's `swipeDirection`:\n * `'down'` is the default (bottom sheet). The *visual* side of the drawer is consumer CSS;\n * this only controls the dismiss gesture and the data/CSS-variable contract below.\n */\nexport type RdxDrawerSwipeDirection = 'up' | 'down' | 'left' | 'right';\n\n/** The decision a release resolves to: dismiss the drawer, or rest at a snap offset (px). */\nexport type RdxDrawerRelease = { type: 'dismiss' } | { type: 'snap'; offset: number };\n\nexport interface RdxDrawerSwipeConfig {\n /** The popup element the gesture lives on (CSS variables + data attributes are written here). */\n element: () => HTMLElement;\n /** Active swipe direction. */\n direction: Signal<RdxDrawerSwipeDirection>;\n /** Whether the gesture is currently armed (typically `open`). */\n enabled: Signal<boolean>;\n /**\n * Resting translate magnitude (px toward dismissal) of the active snap point; `0` is fully open\n * and the default when there are no snap points. The popup keeps this in sync with snap state.\n */\n restingOffset: Signal<number>;\n /**\n * Decide where a release lands. `projected` is the resting offset the drag reached (px toward\n * dismissal, may be negative past fully-open); `velocity` is signed px/ms toward dismissal;\n * `canDismiss` is false for a cancelled gesture or a closed drawer.\n */\n resolveRelease: (projected: number, velocity: number, canDismiss: boolean) => RdxDrawerRelease;\n /** Called once per release that resolves to dismissal. */\n onDismiss: (event: PointerEvent) => void;\n /** Called with the 0..1 live dismiss progress so siblings (backdrop) can react; `0` at rest. */\n onProgress?: (strength: number) => void;\n}\n\n/** iOS-style rubber-band resistance for dragging *past* the fully-open position. */\nconst RUBBER_BAND_CONSTANT = 0.55;\n/** Idle time (ms) since the last movement past which a release counts as a hold, not a flick. */\nconst FLICK_IDLE_MS = 66;\n\nconst rubberBand = (distance: number, dimension: number) =>\n dimension <= 0 ? 0 : (1 - 1 / ((Math.abs(distance) * RUBBER_BAND_CONSTANT) / dimension + 1)) * dimension;\n\nconst isVertical = (direction: RdxDrawerSwipeDirection) => direction === 'up' || direction === 'down';\n\n/**\n * Whether a scrollable region between `target` and `boundary` can still scroll in the direction the\n * swipe would reveal — in which case the gesture must yield to scrolling instead of dismissing.\n */\nfunction scrollGuards(target: Element | null, boundary: HTMLElement, direction: RdxDrawerSwipeDirection): boolean {\n let node = target;\n\n while (node && node !== boundary) {\n if (node instanceof HTMLElement) {\n const style = getComputedStyle(node);\n const vertical = isVertical(direction);\n const overflow = vertical ? style.overflowY : style.overflowX;\n\n if (overflow === 'auto' || overflow === 'scroll') {\n const scrollPos = vertical ? node.scrollTop : node.scrollLeft;\n const maxScroll = vertical\n ? node.scrollHeight - node.clientHeight\n : node.scrollWidth - node.clientWidth;\n\n // Pulling the drawer in the dismiss direction reveals the *start* edge for\n // down/right and the *end* edge for up/left; only swipe when already at that edge.\n const atStartEdge = scrollPos <= 0;\n const atEndEdge = scrollPos >= maxScroll - 1;\n const needsStartEdge = direction === 'down' || direction === 'right';\n\n if (maxScroll > 0 && (needsStartEdge ? !atStartEdge : !atEndEdge)) {\n return true;\n }\n }\n }\n\n node = node.parentElement;\n }\n\n return false;\n}\n\n/**\n * Headless swipe gesture for the drawer popup: dismiss, snap-back, and movement between snap points.\n *\n * Writes a small contract the consumer styles against (no transform is applied for you, keeping the\n * primitive headless):\n * - `--drawer-swipe-movement-x` / `--drawer-swipe-movement-y` — signed px offset along the axis,\n * including the active snap point's resting offset while idle.\n * - `--drawer-swipe-strength` — 0..1 live dismiss progress (`0` at rest).\n * - `[data-swiping]` — present while a gesture is active (drive `transition: none` off this).\n * - `[data-swipe-direction]` — the active direction.\n * - `[data-swipe-dismiss]` — present briefly when a release commits to dismissal.\n *\n * While idle the movement variables hold the active snap offset; releasing without dismissing writes\n * the target offset so the consumer's `transition` animates between snap points and home.\n *\n * Must be called from an injection context (a directive/component constructor).\n */\nexport function useDrawerSwipe(config: RdxDrawerSwipeConfig): void {\n assertInInjectionContext(useDrawerSwipe);\n\n const element = () => config.element();\n const axisSize = () => (isVertical(config.direction()) ? element().offsetHeight : element().offsetWidth);\n\n let active = false;\n let startX = 0;\n let startY = 0;\n let startOffset = 0;\n let pendingProjected = 0;\n let lastProjected = 0;\n let lastTime = 0;\n let velocity = 0;\n let rafId = 0;\n\n const cancelRaf = () => {\n if (rafId) {\n cancelAnimationFrame(rafId);\n rafId = 0;\n }\n };\n\n /** Write the movement variables for a translate magnitude (px) and a 0..1 dismiss strength. */\n const writeMovement = (offset: number, strength: number) => {\n const unit = dismissUnitVector(config.direction());\n const el = element();\n el.style.setProperty('--drawer-swipe-movement-x', `${unit.x * offset}px`);\n el.style.setProperty('--drawer-swipe-movement-y', `${unit.y * offset}px`);\n el.style.setProperty('--drawer-swipe-strength', `${strength}`);\n };\n\n const writeLive = () => {\n rafId = 0;\n const size = axisSize();\n const visual = pendingProjected >= 0 ? pendingProjected : -rubberBand(pendingProjected, size);\n const strength = clamp(pendingProjected / (size || 1), 0, 1);\n writeMovement(visual, strength);\n config.onProgress?.(strength);\n };\n\n const scheduleWrite = () => {\n if (!rafId) {\n rafId = requestAnimationFrame(writeLive);\n }\n };\n\n /** Settle to a resting snap offset (animates via the consumer's transition); rest is not dismissing. */\n const settleTo = (offset: number) => {\n cancelRaf();\n writeMovement(offset, 0);\n config.onProgress?.(0);\n };\n\n usePointerDrag({\n canStart: (event) => {\n if (!config.enabled()) {\n return false;\n }\n\n const target = event.target as Element | null;\n\n if (target?.closest('[data-base-ui-swipe-ignore]')) {\n return false;\n }\n\n return !scrollGuards(target, element(), config.direction());\n },\n onStart: (event) => {\n active = true;\n startX = event.clientX;\n startY = event.clientY;\n startOffset = config.restingOffset();\n pendingProjected = startOffset;\n lastProjected = startOffset;\n lastTime = event.timeStamp;\n velocity = 0;\n\n const el = element();\n el.setAttribute('data-swiping', '');\n el.removeAttribute('data-swipe-dismiss');\n },\n onMove: (event) => {\n // Abort if the drawer closed mid-drag; the end handler settles back.\n if (!config.enabled()) {\n return false;\n }\n\n const unit = dismissUnitVector(config.direction());\n const drag = (event.clientX - startX) * unit.x + (event.clientY - startY) * unit.y;\n pendingProjected = startOffset + drag;\n\n const dt = event.timeStamp - lastTime;\n\n if (dt > 0) {\n velocity = (pendingProjected - lastProjected) / dt;\n lastProjected = pendingProjected;\n lastTime = event.timeStamp;\n }\n\n scheduleWrite();\n return true;\n },\n onEnd: (event, committed) => {\n active = false;\n cancelRaf();\n element().removeAttribute('data-swiping');\n\n // A pause before lift is a hold, not a flick: drop stale velocity.\n if (event.timeStamp - lastTime > FLICK_IDLE_MS) {\n velocity = 0;\n }\n\n const release = config.resolveRelease(pendingProjected, velocity, committed && config.enabled());\n\n if (release.type === 'dismiss') {\n element().setAttribute('data-swipe-dismiss', '');\n config.onDismiss(event);\n return;\n }\n\n settleTo(release.offset);\n }\n });\n\n // Keep the idle resting offset in sync with snap state and reset live progress to 0 at rest.\n // Skipped while dragging (the gesture owns the variables) and writes nothing while closed so the\n // exit keyframe starts from the last visible offset.\n effect(() => {\n const offset = config.restingOffset();\n const enabled = config.enabled();\n\n if (active) {\n return;\n }\n\n if (enabled) {\n writeMovement(offset, 0);\n }\n\n config.onProgress?.(0);\n });\n\n inject(DestroyRef).onDestroy(cancelRaf);\n}\n","import { computed, Directive, effect, ElementRef, inject, Injector } from '@angular/core';\nimport { elementSize } from '@radix-ng/primitives/core';\nimport { injectRdxDialogRootContext, RdxDialogPopup } from '@radix-ng/primitives/dialog';\nimport { injectRdxDrawerRootContext } from './drawer-root';\nimport { buildSnapEntries, resolveSnapTarget } from './drawer-snap';\nimport { RdxDrawerRelease, useDrawerSwipe } from './drawer-swipe';\n\n/** Fraction of the drawer size a plain (no-snap) release must pass to dismiss. */\nconst DISMISS_FRACTION = 0.5;\n/** Dismiss-axis velocity (px/ms) past which a plain release dismisses regardless of distance. */\nconst DISMISS_VELOCITY = 0.4;\n\n/** Root font size (px) for resolving `rem` snap points; `16` (the CSS initial value) outside the browser. */\nfunction rootFontSize(): number {\n if (typeof document === 'undefined') {\n return 16;\n }\n\n return parseFloat(getComputedStyle(document.documentElement).fontSize) || 16;\n}\n\n/**\n * A container for the drawer contents.\n *\n * Composes the dialog popup (focus trap, dismissal, scroll lock, a11y wiring) and owns the drawer\n * gesture on top of it: swipe-to-dismiss, snap-back, and movement between snap points. The gesture\n * publishes a CSS-variable / data-attribute contract (see {@link useDrawerSwipe}); the consumer\n * styles the actual transform and snap-back transition off it, keeping the primitive headless.\n */\n@Directive({\n selector: '[rdxDrawerPopup]',\n exportAs: 'rdxDrawerPopup',\n hostDirectives: [\n {\n directive: RdxDialogPopup,\n outputs: [\n 'escapeKeyDown',\n 'pointerDownOutside',\n 'focusOutside',\n 'interactOutside',\n 'openAutoFocus',\n 'closeAutoFocus'\n ]\n }\n ],\n host: {\n '[attr.data-swipe-direction]': 'drawerContext.swipeDirection()',\n '[attr.data-expanded]': 'expanded() ? \"\" : undefined',\n '[attr.data-nested-drawer-open]': 'drawerContext.nestedDrawerOpen() ? \"\" : undefined',\n '[style.--nested-drawers]': 'drawerContext.nestedDrawerCount()',\n '[style.--drawer-frontmost-height]': 'frontmostHeightPx()'\n }\n})\nexport class RdxDrawerPopup {\n protected readonly drawerContext = injectRdxDrawerRootContext();\n private readonly dialogContext = injectRdxDialogRootContext();\n private readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly element = this.elementRef.nativeElement;\n\n /** Live popup size (px); a ResizeObserver keeps it current so snap geometry never goes stale. */\n private readonly size = elementSize({ elementRef: this.elementRef, injector: inject(Injector) });\n\n /** Snap entries for the current size; built once and shared by the offset/expanded reads. */\n private readonly snapEntries = computed(() =>\n buildSnapEntries(this.drawerContext.snapPoints(), this.axisSize(), rootFontSize())\n );\n\n /** Resting translate magnitude (px) of the active snap point; `0` when fully open / no snaps. */\n readonly restingOffset = computed(() => {\n const active = this.drawerContext.activeSnapPoint();\n\n if (active === null || !this.drawerContext.hasSnapPoints()) {\n return 0;\n }\n\n return this.snapEntries().find((candidate) => candidate.value === active)?.offset ?? 0;\n });\n\n /** Whether the active snap point is the most open one. */\n protected readonly expanded = computed(() => {\n const active = this.drawerContext.activeSnapPoint();\n\n if (active === null || !this.drawerContext.hasSnapPoints()) {\n return false;\n }\n\n const entries = this.snapEntries();\n\n return entries.length > 0 && entries[0].value === active;\n });\n\n /** The frontmost nested drawer's height for `--drawer-frontmost-height`, or unset when none. */\n protected readonly frontmostHeightPx = computed(() => {\n const height = this.drawerContext.frontmostHeight();\n return this.drawerContext.nestedDrawerOpen() && height > 0 ? `${height}px` : null;\n });\n\n constructor() {\n useDrawerSwipe({\n element: () => this.element,\n direction: this.drawerContext.swipeDirection,\n enabled: computed(() => this.dialogContext.isOpen()),\n restingOffset: this.restingOffset,\n resolveRelease: (projected, velocity, canDismiss) => this.resolveRelease(projected, velocity, canDismiss),\n onDismiss: (event) => this.dialogContext.close('swipe', event),\n onProgress: (strength) => this.drawerContext.setSwipeProgress(strength)\n });\n\n // Publish informational snap variables and report the measured size to the provider.\n effect(() => {\n const offset = this.restingOffset();\n const size = this.axisSize();\n\n if (!this.dialogContext.isOpen()) {\n return;\n }\n\n this.element.style.setProperty('--drawer-height', `${size}px`);\n this.element.style.setProperty('--drawer-snap-point-offset', `${offset}px`);\n this.drawerContext.reportPopupHeight(size);\n });\n }\n\n private axisSize(): number {\n const direction = this.drawerContext.swipeDirection();\n const size = this.size();\n return direction === 'up' || direction === 'down' ? size.height : size.width;\n }\n\n private resolveRelease(projected: number, velocity: number, canDismiss: boolean): RdxDrawerRelease {\n const size = this.axisSize();\n const dismissAllowed = canDismiss && !this.dialogContext.disablePointerDismissal();\n\n if (!this.drawerContext.hasSnapPoints()) {\n const strength = projected / (size || 1);\n\n return dismissAllowed && (strength >= DISMISS_FRACTION || velocity >= DISMISS_VELOCITY)\n ? { type: 'dismiss' }\n : { type: 'snap', offset: 0 };\n }\n\n const entries = this.snapEntries();\n const offsets = entries.map((entry) => entry.offset);\n const active = this.drawerContext.activeSnapPoint();\n const activeIndex = Math.max(\n 0,\n entries.findIndex((entry) => entry.value === active)\n );\n\n const target = resolveSnapTarget({\n offsets,\n activeIndex,\n projected,\n velocity,\n size,\n sequential: this.drawerContext.sequentialSnap(),\n canDismiss: dismissAllowed\n });\n\n if ('dismiss' in target) {\n return { type: 'dismiss' };\n }\n\n const entry = entries[target.index];\n\n if (entry.value !== active) {\n this.drawerContext.setActiveSnapPoint(entry.value, true);\n }\n\n return { type: 'snap', offset: entry.offset };\n }\n}\n","import { Directive } from '@angular/core';\nimport { RdxDialogPortal } from '@radix-ng/primitives/dialog';\n\n/**\n * Moves the drawer to a different part of the DOM. Defaults to `document.body`.\n */\n@Directive({\n selector: '[rdxDrawerPortal]',\n exportAs: 'rdxDrawerPortal',\n hostDirectives: [\n {\n directive: RdxDialogPortal,\n inputs: ['container']\n }\n ]\n})\nexport class RdxDrawerPortal {}\n","import { Directive } from '@angular/core';\nimport { RdxDialogPortalPresence } from '@radix-ng/primitives/dialog';\n\n/**\n * Mounts the portal while the drawer is open and waits for CSS exit keyframes before unmounting.\n */\n@Directive({\n selector: 'ng-template[rdxDrawerPortalPresence]',\n hostDirectives: [RdxDialogPortalPresence]\n})\nexport class RdxDrawerPortalPresence {}\n","import { booleanAttribute, computed, Directive, input, signal } from '@angular/core';\nimport { BooleanInput } from '@radix-ng/primitives/core';\nimport { injectRdxDialogRootContext } from '@radix-ng/primitives/dialog';\nimport { usePointerDrag } from './drawer-pointer';\nimport { injectRdxDrawerRootContext } from './drawer-root';\nimport { RdxDrawerSwipeDirection } from './drawer-swipe';\n\n/** Pointer travel (px) inward past which the swipe area opens the drawer. */\nconst OPEN_THRESHOLD = 30;\n\n/** Inward pointer travel (toward the open drawer) for a given direction and pointer delta. */\nfunction inwardDistance(direction: RdxDrawerSwipeDirection, dx: number, dy: number) {\n switch (direction) {\n case 'down':\n return -dy;\n case 'up':\n return dy;\n case 'left':\n return dx;\n case 'right':\n return -dx;\n }\n}\n\n/**\n * An off-canvas region (typically pinned to a screen edge) that opens the drawer when swiped inward.\n *\n * Phase 1 opens on a threshold crossing rather than following the pointer live (the popup is not\n * mounted while closed); the live-follow open will land with snap points. Shares the drawer's\n * pointer-drag lifecycle so capture/cancel handling stays consistent with the popup gesture.\n */\n@Directive({\n selector: '[rdxDrawerSwipeArea]',\n exportAs: 'rdxDrawerSwipeArea',\n host: {\n '[attr.data-open]': 'isOpen() ? \"\" : undefined',\n '[attr.data-closed]': 'isOpen() ? undefined : \"\"',\n '[attr.data-disabled]': 'disabled() ? \"\" : undefined',\n '[attr.data-swiping]': 'swiping() ? \"\" : undefined',\n '[attr.data-swipe-direction]': 'direction()'\n }\n})\nexport class RdxDrawerSwipeArea {\n private readonly drawerContext = injectRdxDrawerRootContext();\n private readonly dialogContext = injectRdxDialogRootContext();\n\n /** Direction the swipe area opens from; defaults to the root's `swipeDirection`. */\n readonly swipeDirection = input<RdxDrawerSwipeDirection>();\n\n /** Whether the swipe area should ignore user interaction. */\n readonly disabled = input<boolean, BooleanInput>(false, { transform: booleanAttribute });\n\n protected readonly isOpen = computed(() => this.dialogContext.isOpen());\n protected readonly direction = computed(() => this.swipeDirection() ?? this.drawerContext.swipeDirection());\n protected readonly swiping = signal(false);\n\n private startX = 0;\n private startY = 0;\n\n constructor() {\n usePointerDrag({\n canStart: () => !this.disabled() && !this.isOpen(),\n onStart: (event) => {\n this.startX = event.clientX;\n this.startY = event.clientY;\n this.swiping.set(true);\n },\n onMove: (event) => {\n if (this.disabled()) {\n return false;\n }\n\n const distance = inwardDistance(\n this.direction(),\n event.clientX - this.startX,\n event.clientY - this.startY\n );\n\n if (distance >= OPEN_THRESHOLD) {\n this.dialogContext.open(undefined, undefined, undefined, 'swipe', event);\n return false;\n }\n\n return true;\n },\n onEnd: () => this.swiping.set(false)\n });\n }\n}\n","import { Directive } from '@angular/core';\nimport { RdxDialogTitle } from '@radix-ng/primitives/dialog';\n\n/**\n * An accessible title announced when the drawer is opened.\n */\n@Directive({\n selector: '[rdxDrawerTitle]',\n exportAs: 'rdxDrawerTitle',\n hostDirectives: [RdxDialogTitle]\n})\nexport class RdxDrawerTitle {}\n","import { Directive } from '@angular/core';\nimport { RdxDialogTrigger } from '@radix-ng/primitives/dialog';\n\n/**\n * A button that opens the drawer. Behaves exactly like the dialog trigger.\n */\n@Directive({\n selector: 'button[rdxDrawerTrigger]',\n exportAs: 'rdxDrawerTrigger',\n hostDirectives: [\n {\n directive: RdxDialogTrigger,\n inputs: ['handle', 'payload', 'id', 'disabled']\n }\n ]\n})\nexport class RdxDrawerTrigger {}\n","import { Directive } from '@angular/core';\nimport { RdxDialogViewport } from '@radix-ng/primitives/dialog';\n\n/**\n * A positioning container for the drawer popup that can be made scrollable.\n *\n * Exposes the dialog viewport's `data-nested` / `data-nested-dialog-open` state for styling.\n */\n@Directive({\n selector: '[rdxDrawerViewport]',\n exportAs: 'rdxDrawerViewport',\n hostDirectives: [RdxDialogViewport]\n})\nexport class RdxDrawerViewport {}\n","import { createRdxDialogHandle, RdxDialogHandle } from '@radix-ng/primitives/dialog';\n\n/**\n * Connects a drawer root with trigger elements rendered elsewhere in the DOM.\n *\n * Drawers reuse the dialog handle implementation unchanged.\n */\nexport const RdxDrawerHandle = RdxDialogHandle;\nexport type RdxDrawerHandle<Payload = unknown> = RdxDialogHandle<Payload>;\n\nexport function createRdxDrawerHandle<Payload = unknown>(): RdxDrawerHandle<Payload> {\n return createRdxDialogHandle<Payload>();\n}\n","import { NgModule } from '@angular/core';\nimport { RdxDrawerBackdrop } from './src/drawer-backdrop';\nimport { RdxDrawerClose } from './src/drawer-close';\nimport { RdxDrawerContent } from './src/drawer-content';\nimport { RdxDrawerDescription } from './src/drawer-description';\nimport { RdxDrawerIndent } from './src/drawer-indent';\nimport { RdxDrawerIndentBackground } from './src/drawer-indent-background';\nimport { RdxDrawerPopup } from './src/drawer-popup';\nimport { RdxDrawerPortal } from './src/drawer-portal';\nimport { RdxDrawerPortalPresence } from './src/drawer-portal-presence';\nimport { RdxDrawerProviderDirective } from './src/drawer-provider';\nimport { RdxDrawerRoot } from './src/drawer-root';\nimport { RdxDrawerSwipeArea } from './src/drawer-swipe-area';\nimport { RdxDrawerTitle } from './src/drawer-title';\nimport { RdxDrawerTrigger } from './src/drawer-trigger';\nimport { RdxDrawerViewport } from './src/drawer-viewport';\n\nexport * from './src/drawer-backdrop';\nexport * from './src/drawer-close';\nexport * from './src/drawer-content';\nexport * from './src/drawer-description';\nexport * from './src/drawer-handle';\nexport * from './src/drawer-indent';\nexport * from './src/drawer-indent-background';\nexport * from './src/drawer-pointer';\nexport * from './src/drawer-popup';\nexport * from './src/drawer-portal';\nexport * from './src/drawer-portal-presence';\nexport * from './src/drawer-provider';\nexport * from './src/drawer-root';\nexport * from './src/drawer-snap';\nexport * from './src/drawer-swipe';\nexport * from './src/drawer-swipe-area';\nexport * from './src/drawer-title';\nexport * from './src/drawer-trigger';\nexport * from './src/drawer-viewport';\n\nexport const drawerImports = [\n RdxDrawerProviderDirective,\n RdxDrawerRoot,\n RdxDrawerTrigger,\n RdxDrawerSwipeArea,\n RdxDrawerPortalPresence,\n RdxDrawerPortal,\n RdxDrawerBackdrop,\n RdxDrawerViewport,\n RdxDrawerPopup,\n RdxDrawerContent,\n RdxDrawerTitle,\n RdxDrawerDescription,\n RdxDrawerClose,\n RdxDrawerIndent,\n RdxDrawerIndentBackground\n];\n\n@NgModule({\n imports: [...drawerImports],\n exports: [...drawerImports]\n})\nexport class RdxDrawerModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAUA;;;;;AAKG;MAEU,iBAAiB,CAAA;AAD9B,IAAA,WAAA,GAAA;AAEqB,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAA0B,EAAE,4EAAC;;AAGnD,QAAA,IAAA,CAAA,KAAK,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,KAAK,EAAE,CAAC,MAAM,4EAAC;;AAG3C,QAAA,I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A,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,eAAe,YArBxB,0BAA0B;YAC1B,aAAa;YACb,gBAAgB;YAChB,kBAAkB;YAClB,uBAAuB;YACvB,eAAe;YACf,iBAAiB;YACjB,iBAAiB;YACjB,cAAc;YACd,gBAAgB;YAChB,cAAc;YACd,oBAAoB;YACpB,cAAc;YACd,eAAe;AACf,YAAA,yBAAyB,aAdzB,0BAA0B;YAC1B,aAAa;YACb,gBAAgB;YAChB,kBAAkB;YAClB,uBAAuB;YACvB,eAAe;YACf,iBAAiB;YACjB,iBAAiB;YACjB,cAAc;YACd,gBAAgB;YAChB,cAAc;YACd,oBAAoB;YACpB,cAAc;YACd,eAAe;YACf,yBAAyB,CAAA,EAAA,CAAA,CAAA;+GAOhB,eAAe,EAAA,CAAA,CAAA;;2FAAf,eAAe,EAAA,UAAA,EAAA,CAAA;kBAJ3B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,GAAG,aAAa,CAAC;AAC3B,oBAAA,OAAO,EAAE,CAAC,GAAG,aAAa;AAC7B,iBAAA;;;AC1DD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"radix-ng-primitives-drawer.mjs","sources":["../../../packages/primitives/drawer/src/drawer-provider.ts","../../../packages/primitives/drawer/src/drawer-root.ts","../../../packages/primitives/drawer/src/drawer-backdrop.ts","../../../packages/primitives/drawer/src/drawer-close.ts","../../../packages/primitives/drawer/src/drawer-content.ts","../../../packages/primitives/drawer/src/drawer-description.ts","../../../packages/primitives/drawer/src/drawer-indent.ts","../../../packages/primitives/drawer/src/drawer-indent-background.ts","../../../packages/primitives/drawer/src/drawer-snap.ts","../../../packages/primitives/drawer/src/drawer-pointer.ts","../../../packages/primitives/drawer/src/drawer-swipe.ts","../../../packages/primitives/drawer/src/drawer-popup.ts","../../../packages/primitives/drawer/src/drawer-portal.ts","../../../packages/primitives/drawer/src/drawer-swipe-area.ts","../../../packages/primitives/drawer/src/drawer-title.ts","../../../packages/primitives/drawer/src/drawer-trigger.ts","../../../packages/primitives/drawer/src/drawer-viewport.ts","../../../packages/primitives/drawer/src/drawer-handle.ts","../../../packages/primitives/drawer/index.ts","../../../packages/primitives/drawer/radix-ng-primitives-drawer.ts"],"sourcesContent":["import { computed, Directive, Injectable, Provider, signal, Signal } from '@angular/core';\n\n/** A single open drawer's registration with the {@link RdxDrawerProvider}. */\nexport interface RdxDrawerRegistration {\n /** Stable id of the registered drawer root. */\n id: string;\n /** The drawer popup's measured size (px) along its dismiss axis. */\n height: Signal<number>;\n /** 0..1 live dismiss progress of this drawer. */\n swipeProgress: Signal<number>;\n}\n\n/**\n * App-level coordinator that tracks every open drawer so background content can react to them\n * (the page-scale / indent effect). Provide it once near the app root with\n * {@link provideRdxDrawerProvider} or the `[rdxDrawerProvider]` directive; drawers that find it in\n * their injector register while open. It is optional — drawers work without it.\n */\n@Injectable()\nexport class RdxDrawerProvider {\n private readonly stack = signal<RdxDrawerRegistration[]>([]);\n\n /** Number of open drawers. */\n readonly count = computed(() => this.stack().length);\n\n /** Whether any drawer is open. */\n readonly active = computed(() => this.count() > 0);\n\n /** The most recently opened (frontmost) drawer, or `null`. */\n readonly frontmost = computed<RdxDrawerRegistration | null>(() => this.stack().at(-1) ?? null);\n\n /** The frontmost drawer's measured size (px), or `0` when none is open. */\n readonly frontmostHeight = computed(() => this.frontmost()?.height() ?? 0);\n /** The frontmost drawer's live dismiss progress, or `0` when none is open. */\n readonly swipeProgress = computed(() => this.frontmost()?.swipeProgress() ?? 0);\n\n /** Register an open drawer; returns a disposer that removes it. */\n register(registration: RdxDrawerRegistration): () => void {\n this.stack.update((stack) => [...stack, registration]);\n\n return () => this.stack.update((stack) => stack.filter((entry) => entry !== registration));\n }\n}\n\n/** Provide a {@link RdxDrawerProvider} for an app (e.g. in `app.config.ts`). */\nexport function provideRdxDrawerProvider(): Provider[] {\n return [RdxDrawerProvider];\n}\n\n/**\n * Hosts a {@link RdxDrawerProvider} for its subtree. Put it on a wrapping element so descendant\n * drawer roots and `rdxDrawerIndent*` parts share one coordinator.\n */\n@Directive({\n selector: '[rdxDrawerProvider]',\n exportAs: 'rdxDrawerProvider',\n providers: [RdxDrawerProvider]\n})\nexport class RdxDrawerProviderDirective {}\n","import {\n booleanAttribute,\n computed,\n Directive,\n effect,\n inject,\n input,\n model,\n output,\n signal,\n Signal,\n untracked\n} from '@angular/core';\nimport { BooleanInput, createContext } from '@radix-ng/primitives/core';\nimport { RdxDialogRoot } from '@radix-ng/primitives/dialog';\nimport { RdxDrawerProvider } from './drawer-provider';\nimport { RdxDrawerSnapPoint } from './drawer-snap';\nimport { RdxDrawerSwipeDirection } from './drawer-swipe';\n\nexport interface RdxDrawerRootContext {\n /** Direction a swipe travels to dismiss the drawer. */\n swipeDirection: Signal<RdxDrawerSwipeDirection>;\n /** 0..1 progress of the active dismiss gesture; siblings (e.g. backdrop) react to it. */\n swipeProgress: Signal<number>;\n /** Reports gesture progress from the popup's swipe engine. */\n setSwipeProgress: (value: number) => void;\n /** Whether the drawer is currently being revealed from a SwipeArea. */\n openingSwipeActive: Signal<boolean>;\n /** Pointer travel (px) inward from the SwipeArea while revealing the drawer. */\n openingSwipeDistance: Signal<number>;\n /** Starts or updates the SwipeArea reveal gesture. */\n setOpeningSwipe: (active: boolean, distance: number) => void;\n /** Configured snap points (empty when the drawer has none). */\n snapPoints: Signal<readonly RdxDrawerSnapPoint[]>;\n /** Whether the drawer rests at discrete snap points. */\n hasSnapPoints: Signal<boolean>;\n /** The active snap point, or `null` when none is set / the drawer is closed. */\n activeSnapPoint: Signal<RdxDrawerSnapPoint | null>;\n /** Step at most one snap point per release instead of velocity-skipping. */\n sequentialSnap: Signal<boolean>;\n /** Sets the active snap point, optionally emitting `onSnapPointChange`. */\n setActiveSnapPoint: (value: RdxDrawerSnapPoint, emit: boolean) => void;\n /** Whether a drawer nested inside this one is open. */\n nestedDrawerOpen: Signal<boolean>;\n /** Number of drawers nested inside this one that are open. */\n nestedDrawerCount: Signal<number>;\n /** The app-wide frontmost drawer's measured size (px), via the optional provider. */\n frontmostHeight: Signal<number>;\n /** Reports the popup's measured size (px) so the provider can expose it. */\n reportPopupHeight: (height: number) => void;\n}\n\nexport const [injectRdxDrawerRootContext, provideRdxDrawerRootContext] = createContext<RdxDrawerRootContext>(\n 'RdxDrawerRootContext',\n 'components/drawer'\n);\n\nconst context = (): RdxDrawerRootContext => {\n const root = inject(RdxDrawerRoot);\n\n return {\n swipeDirection: root.swipeDirection,\n swipeProgress: root.swipeProgress.asReadonly(),\n setSwipeProgress: (value) => root.swipeProgress.set(value),\n openingSwipeActive: root.openingSwipeActive.asReadonly(),\n openingSwipeDistance: root.openingSwipeDistance.asReadonly(),\n setOpeningSwipe: (active, distance) => {\n root.openingSwipeDistance.set(distance);\n root.openingSwipeActive.set(active);\n },\n snapPoints: root.normalizedSnapPoints,\n hasSnapPoints: root.hasSnapPoints,\n activeSnapPoint: root.snapPoint,\n sequentialSnap: root.snapToSequentialPoints,\n setActiveSnapPoint: (value, emit) => root.setActiveSnapPoint(value, emit),\n nestedDrawerOpen: root.nestedDrawerOpen,\n nestedDrawerCount: root.nestedDrawerCount,\n frontmostHeight: root.frontmostHeight,\n reportPopupHeight: (height) => root.popupHeight.set(height)\n };\n};\n\n/**\n * Groups all parts of the drawer.\n *\n * Composes the Dialog primitive directly (modal-by-default but user-overridable) and layers the\n * drawer-specific swipe and snap-point contract on top via {@link RdxDrawerRootContext}. Modality,\n * dismissal and detached-trigger handling are the dialog's: the `modal`, `disablePointerDismissal`\n * and `handle` inputs are proxied straight through, so a drawer is a modal dialog the user can make\n * non-modal.\n */\n@Directive({\n selector: '[rdxDrawerRoot]',\n exportAs: 'rdxDrawerRoot',\n hostDirectives: [\n {\n directive: RdxDialogRoot,\n inputs: [\n 'open',\n 'defaultOpen',\n 'triggerId',\n 'defaultTriggerId',\n 'handle',\n 'modal',\n 'disablePointerDismissal'\n ],\n outputs: ['openChange', 'triggerIdChange', 'onOpenChange', 'onOpenChangeComplete']\n }\n ],\n providers: [provideRdxDrawerRootContext(context)]\n})\nexport class RdxDrawerRoot {\n private readonly dialog = inject(RdxDialogRoot);\n private readonly provider = inject(RdxDrawerProvider, { optional: true });\n\n /** The popup's measured size (px) along its dismiss axis, reported by the popup. */\n readonly popupHeight = signal(0);\n\n /**\n * Direction a swipe travels to dismiss the drawer. The visual side of the drawer is consumer\n * CSS; this controls the dismiss gesture and the `data-swipe-direction` styling hook.\n */\n readonly swipeDirection = input<RdxDrawerSwipeDirection>('down');\n\n /**\n * Resting positions the drawer snaps to along the dismiss axis. Order ascending by openness; the\n * first entry is the default the drawer opens to. Omit for a plain open/closed drawer.\n */\n readonly snapPoints = input<readonly RdxDrawerSnapPoint[]>();\n\n /** The active snap point (controlled / uncontrolled with `[(snapPoint)]`). */\n readonly snapPoint = model<RdxDrawerSnapPoint | null>(null);\n\n /** The snap point the drawer opens to when uncontrolled; defaults to the first point. */\n readonly defaultSnapPoint = input<RdxDrawerSnapPoint>();\n\n /** Step at most one snap point per release instead of letting velocity skip points. */\n readonly snapToSequentialPoints = input<boolean, BooleanInput>(false, { transform: booleanAttribute });\n\n /** Emits when the active snap point changes through a gesture. */\n readonly onSnapPointChange = output<RdxDrawerSnapPoint>();\n\n /** 0..1 progress of the active dismiss gesture, written by the popup's swipe engine. */\n readonly swipeProgress = signal(0);\n /** Live SwipeArea reveal state; the popup converts distance into its measured-axis movement. */\n readonly openingSwipeActive = signal(false);\n readonly openingSwipeDistance = signal(0);\n\n readonly normalizedSnapPoints = computed<readonly RdxDrawerSnapPoint[]>(() => this.snapPoints() ?? []);\n readonly hasSnapPoints = computed(() => this.normalizedSnapPoints().length > 0);\n\n /** Whether a drawer nested inside this one is open (reuses the dialog's nesting detection). */\n readonly nestedDrawerOpen = this.dialog.nestedDialogOpen;\n /** Number of open drawers nested inside this one. */\n readonly nestedDrawerCount = this.dialog.nestedOpenCount.asReadonly();\n /** The app-wide frontmost drawer's measured size (px); `0` without a provider. */\n readonly frontmostHeight = computed(() => this.provider?.frontmostHeight() ?? 0);\n\n /** Whether the drawer is open (read-only mirror of the composed dialog state). */\n readonly open = this.dialog.open;\n /** The active trigger's id. */\n readonly triggerId = this.dialog.triggerId;\n /** Payload of the active trigger. */\n readonly payload = this.dialog.payload;\n\n constructor() {\n // Apply the default snap point when opening without one set. The active snap point is left\n // untouched on close: clearing it would clobber a controlled `[(snapPoint)]` binding, and an\n // uncontrolled drawer simply reopens where it was left.\n effect(() => {\n const open = this.dialog.open();\n\n untracked(() => {\n const points = this.normalizedSnapPoints();\n\n if (open && this.snapPoint() === null && points.length > 0) {\n this.snapPoint.set(this.defaultSnapPoint() ?? points[0]);\n }\n });\n });\n\n // Reset live swipe progress when closed so a reopened drawer never starts mid-gesture.\n effect(() => {\n if (!this.dialog.open()) {\n untracked(() => {\n this.swipeProgress.set(0);\n this.openingSwipeActive.set(false);\n this.openingSwipeDistance.set(0);\n });\n }\n });\n\n // Register with the optional app-level provider while open so background content can react.\n effect((onCleanup) => {\n if (this.dialog.open() && this.provider) {\n onCleanup(\n untracked(() =>\n this.provider!.register({\n id: this.dialog.contentId,\n height: this.popupHeight.asReadonly(),\n swipeProgress: this.swipeProgress.asReadonly()\n })\n )\n );\n }\n });\n }\n\n setActiveSnapPoint(value: RdxDrawerSnapPoint, emit: boolean) {\n this.snapPoint.set(value);\n\n if (emit) {\n this.onSnapPointChange.emit(value);\n }\n }\n}\n","import { Directive } from '@angular/core';\nimport { RdxDialogBackdrop } from '@radix-ng/primitives/dialog';\nimport { injectRdxDrawerRootContext } from './drawer-root';\n\n/**\n * An overlay displayed beneath the drawer popup.\n *\n * Composes the dialog backdrop and additionally exposes `--drawer-swipe-progress` (0..1) so the\n * consumer can fade it in step with the dismiss gesture.\n */\n@Directive({\n selector: '[rdxDrawerBackdrop]',\n exportAs: 'rdxDrawerBackdrop',\n hostDirectives: [RdxDialogBackdrop],\n host: {\n '[style.--drawer-swipe-progress]': 'drawerContext.swipeProgress()',\n '[attr.data-swiping]': 'drawerContext.openingSwipeActive() ? \"\" : undefined',\n '[attr.data-nested-drawer-open]': 'drawerContext.nestedDrawerOpen() ? \"\" : undefined'\n }\n})\nexport class RdxDrawerBackdrop {\n protected readonly drawerContext = injectRdxDrawerRootContext();\n}\n","import { Directive } from '@angular/core';\nimport { RdxDialogClose } from '@radix-ng/primitives/dialog';\n\n/**\n * A button that closes the drawer.\n */\n@Directive({\n selector: 'button[rdxDrawerClose]',\n exportAs: 'rdxDrawerClose',\n hostDirectives: [RdxDialogClose]\n})\nexport class RdxDrawerClose {}\n","import { Directive } from '@angular/core';\n\n/**\n * The scrollable body of the drawer.\n *\n * A structural marker so the anatomy matches Base UI. The popup's swipe engine yields to scrolling\n * inside this region automatically (it only starts a dismiss gesture when the scroll is at its\n * edge), so no extra wiring is needed. Opt individual elements out of swiping with the\n * `data-base-ui-swipe-ignore` attribute.\n */\n@Directive({\n selector: '[rdxDrawerContent]',\n exportAs: 'rdxDrawerContent'\n})\nexport class RdxDrawerContent {}\n","import { Directive } from '@angular/core';\nimport { RdxDialogDescription } from '@radix-ng/primitives/dialog';\n\n/**\n * An accessible description announced when the drawer is opened.\n */\n@Directive({\n selector: '[rdxDrawerDescription]',\n exportAs: 'rdxDrawerDescription',\n hostDirectives: [RdxDialogDescription]\n})\nexport class RdxDrawerDescription {}\n","import { Directive, inject } from '@angular/core';\nimport { RdxDrawerProvider } from './drawer-provider';\n\n/**\n * Background content that scales/indents while any drawer is open.\n *\n * Reads the nearest {@link RdxDrawerProvider} and exposes styling hooks; the visual transform is\n * consumer CSS (headless):\n * - `[data-active]` — present while at least one drawer is open.\n * - `--drawer-swipe-progress` — 0..1 live dismiss progress of the frontmost drawer.\n * - `--nested-drawers` — the number of open drawers.\n * - `--drawer-frontmost-height` — the frontmost drawer's measured size, in pixels.\n */\n@Directive({\n selector: '[rdxDrawerIndent]',\n exportAs: 'rdxDrawerIndent',\n host: {\n '[attr.data-active]': 'provider?.active() ? \"\" : undefined',\n '[style.--nested-drawers]': 'provider?.count() ?? 0',\n '[style.--drawer-frontmost-height]': '(provider?.frontmostHeight() ?? 0) + \"px\"',\n '[style.--drawer-swipe-progress]': 'provider?.swipeProgress() ?? 0'\n }\n})\nexport class RdxDrawerIndent {\n protected readonly provider = inject(RdxDrawerProvider, { optional: true });\n}\n","import { Directive, inject } from '@angular/core';\nimport { RdxDrawerProvider } from './drawer-provider';\n\n/**\n * The page background layer that scales/indents while any drawer is open.\n *\n * Behaves like {@link RdxDrawerIndent} (same `[data-active]` / `--drawer-swipe-progress` /\n * `--nested-drawers` / `--drawer-frontmost-height` contract); kept as a distinct part so the page\n * backdrop and the indented content can be styled independently, mirroring Base UI.\n */\n@Directive({\n selector: '[rdxDrawerIndentBackground]',\n exportAs: 'rdxDrawerIndentBackground',\n host: {\n '[attr.data-active]': 'provider?.active() ? \"\" : undefined',\n '[style.--nested-drawers]': 'provider?.count() ?? 0',\n '[style.--drawer-frontmost-height]': '(provider?.frontmostHeight() ?? 0) + \"px\"',\n '[style.--drawer-swipe-progress]': 'provider?.swipeProgress() ?? 0'\n }\n})\nexport class RdxDrawerIndentBackground {\n protected readonly provider = inject(RdxDrawerProvider, { optional: true });\n}\n","import { clamp } from '@radix-ng/primitives/core';\nimport { RdxDrawerSwipeDirection } from './drawer-swipe';\n\n/**\n * A resting position for the drawer along the dismiss axis.\n *\n * - a number in `(0, 1]` — a fraction of the drawer's size (`1` = fully open);\n * - a number `> 1` — an absolute amount of the drawer revealed, in pixels;\n * - a string — `'148px'` (pixels), `'30rem'` (root-em), `'40%'` (fraction of size), or a bare number\n * as above.\n *\n * Order the `snapPoints` array ascending by openness; the first entry is the default the drawer opens\n * to when `defaultSnapPoint` is not set.\n */\nexport type RdxDrawerSnapPoint = number | string;\n\n/**\n * Resolve a snap point to the number of pixels of the drawer revealed at that point. `rootFontSize`\n * (px) resolves `rem` units; it defaults to the CSS initial value of `16`.\n */\nexport function snapPointReveal(value: RdxDrawerSnapPoint, size: number, rootFontSize = 16): number {\n if (typeof value === 'number') {\n return value > 0 && value <= 1 ? value * size : clamp(value, 0, size);\n }\n\n const trimmed = value.trim();\n\n if (trimmed.endsWith('%')) {\n return clamp((parseFloat(trimmed) / 100) * size, 0, size);\n }\n\n const parsed = parseFloat(trimmed);\n\n if (Number.isNaN(parsed)) {\n return size;\n }\n\n if (trimmed.endsWith('rem')) {\n return clamp(parsed * rootFontSize, 0, size);\n }\n\n // A bare unit-less value still follows the number rule (`<= 1` is a fraction).\n return trimmed.endsWith('px')\n ? clamp(parsed, 0, size)\n : parsed > 0 && parsed <= 1\n ? parsed * size\n : clamp(parsed, 0, size);\n}\n\nexport interface RdxDrawerSnapEntry {\n value: RdxDrawerSnapPoint;\n /** Pixels of the drawer revealed at this point. */\n reveal: number;\n /** Translate magnitude (px) toward dismissal from fully-open; `0` is fully open. */\n offset: number;\n}\n\n/**\n * Build the snap entries for a given drawer size, sorted by openness (most open / smallest offset\n * first). `offset = size - reveal`, so a fully-revealed point sits at offset `0`.\n */\nexport function buildSnapEntries(\n values: readonly RdxDrawerSnapPoint[],\n size: number,\n rootFontSize = 16\n): RdxDrawerSnapEntry[] {\n return values\n .map((value) => {\n const reveal = snapPointReveal(value, size, rootFontSize);\n return { value, reveal, offset: clamp(size - reveal, 0, size) };\n })\n .sort((a, b) => a.offset - b.offset);\n}\n\n/** How many milliseconds of momentum a release's velocity projects forward when picking a target. */\nconst MOMENTUM_MS = 120;\n\nexport type RdxDrawerSnapTarget = { dismiss: true } | { index: number };\n\nexport interface RdxDrawerSnapResolveOptions {\n /** Snap offsets (px), ascending; index-aligned to the sorted entries. */\n offsets: readonly number[];\n /** Index of the currently active offset. */\n activeIndex: number;\n /** Projected resting offset (px toward dismissal) at release. */\n projected: number;\n /** Signed release velocity (px/ms), positive toward dismissal. */\n velocity: number;\n /** Drawer size (px); the dismiss target sits here (fully hidden). */\n size: number;\n /** Step at most one snap point per release instead of velocity-skipping. */\n sequential: boolean;\n /** Whether passing the most-closed point may dismiss the drawer. */\n canDismiss: boolean;\n}\n\n/** Pick the snap point (or dismissal) a release lands on. */\nexport function resolveSnapTarget(options: RdxDrawerSnapResolveOptions): RdxDrawerSnapTarget {\n const { offsets, activeIndex, projected, velocity, size, sequential, canDismiss } = options;\n\n if (sequential) {\n const active = offsets[activeIndex] ?? 0;\n\n if (projected > active) {\n const next = activeIndex + 1 < offsets.length ? offsets[activeIndex + 1] : canDismiss ? size : active;\n const midpoint = (active + next) / 2;\n\n if (projected >= midpoint) {\n if (activeIndex + 1 >= offsets.length) {\n return canDismiss ? { dismiss: true } : { index: activeIndex };\n }\n\n return { index: activeIndex + 1 };\n }\n\n return { index: activeIndex };\n }\n\n const previous = activeIndex - 1 >= 0 ? offsets[activeIndex - 1] : 0;\n const midpoint = (previous + active) / 2;\n\n return projected <= midpoint && activeIndex - 1 >= 0 ? { index: activeIndex - 1 } : { index: activeIndex };\n }\n\n const target = projected + velocity * MOMENTUM_MS;\n let bestIndex = 0;\n let bestDistance = Infinity;\n\n offsets.forEach((offset, index) => {\n const distance = Math.abs(offset - target);\n\n if (distance < bestDistance) {\n bestDistance = distance;\n bestIndex = index;\n }\n });\n\n if (canDismiss && Math.abs(size - target) < bestDistance) {\n return { dismiss: true };\n }\n\n return { index: bestIndex };\n}\n\n/** The unit translate vector pointing toward dismissal for a direction. */\nexport function dismissUnitVector(direction: RdxDrawerSwipeDirection): { x: number; y: number } {\n switch (direction) {\n case 'down':\n return { x: 0, y: 1 };\n case 'up':\n return { x: 0, y: -1 };\n case 'right':\n return { x: 1, y: 0 };\n case 'left':\n return { x: -1, y: 0 };\n }\n}\n","// The pointer-drag lifecycle now lives in core so other gesture primitives (e.g. toast) can share it.\n// Re-exported here to keep the drawer's internal imports and public API stable.\nexport { RdxPointerDragHandlers, usePointerDrag } from '@radix-ng/primitives/core';\n","import { assertInInjectionContext, DestroyRef, effect, inject, Signal } from '@angular/core';\nimport { clamp } from '@radix-ng/primitives/core';\nimport { usePointerDrag } from './drawer-pointer';\nimport { dismissUnitVector } from './drawer-snap';\n\n/**\n * Direction a swipe travels to dismiss the drawer. Mirrors Base UI's `swipeDirection`:\n * `'down'` is the default (bottom sheet). The *visual* side of the drawer is consumer CSS;\n * this only controls the dismiss gesture and the data/CSS-variable contract below.\n */\nexport type RdxDrawerSwipeDirection = 'up' | 'down' | 'left' | 'right';\n\n/** The decision a release resolves to: dismiss the drawer, or rest at a snap offset (px). */\nexport type RdxDrawerRelease = { type: 'dismiss' } | { type: 'snap'; offset: number };\n\nexport interface RdxDrawerSwipeConfig {\n /** The popup element the gesture lives on (CSS variables + data attributes are written here). */\n element: () => HTMLElement;\n /** Gesture boundary used to discover scrollable ancestors around the popup. */\n boundary?: () => HTMLElement;\n /** Visible size along the dismiss axis, used to normalize live swipe progress. */\n size?: () => number;\n /** Active swipe direction. */\n direction: Signal<RdxDrawerSwipeDirection>;\n /** Whether the gesture is currently armed (typically `open`). */\n enabled: Signal<boolean>;\n /**\n * Resting translate magnitude (px toward dismissal) of the active snap point; `0` is fully open\n * and the default when there are no snap points. The popup keeps this in sync with snap state.\n */\n restingOffset: Signal<number>;\n /**\n * Decide where a release lands. `projected` is the resting offset the drag reached (px toward\n * dismissal, may be negative past fully-open); `velocity` is signed px/ms toward dismissal;\n * `canDismiss` is false for a cancelled gesture or a closed drawer.\n */\n resolveRelease: (projected: number, velocity: number, canDismiss: boolean) => RdxDrawerRelease;\n /** Called once per release that resolves to dismissal. */\n onDismiss: (event: PointerEvent) => void;\n /** Called with the 0..1 live dismiss progress so siblings (backdrop) can react; `0` at rest. */\n onProgress?: (strength: number) => void;\n}\n\n/** iOS-style rubber-band resistance for dragging *past* the fully-open position. */\nconst RUBBER_BAND_CONSTANT = 0.55;\n/** Idle time (ms) since the last movement past which a release counts as a hold, not a flick. */\nconst FLICK_IDLE_MS = 66;\n\nconst rubberBand = (distance: number, dimension: number) =>\n dimension <= 0 ? 0 : (1 - 1 / ((Math.abs(distance) * RUBBER_BAND_CONSTANT) / dimension + 1)) * dimension;\n\nconst isVertical = (direction: RdxDrawerSwipeDirection) => direction === 'up' || direction === 'down';\n\n/**\n * Whether a scrollable region between `target` and `boundary` can still scroll in the direction the\n * swipe would reveal — in which case the gesture must yield to scrolling instead of dismissing.\n */\nfunction scrollGuards(target: Element | null, boundary: HTMLElement, direction: RdxDrawerSwipeDirection): boolean {\n let node = target;\n\n while (node && node !== boundary) {\n if (node instanceof HTMLElement) {\n const style = getComputedStyle(node);\n const vertical = isVertical(direction);\n const overflow = vertical ? style.overflowY : style.overflowX;\n\n if (overflow === 'auto' || overflow === 'scroll') {\n const scrollPos = vertical ? node.scrollTop : node.scrollLeft;\n const maxScroll = vertical\n ? node.scrollHeight - node.clientHeight\n : node.scrollWidth - node.clientWidth;\n\n // Pulling the drawer in the dismiss direction reveals the *start* edge for\n // down/right and the *end* edge for up/left; only swipe when already at that edge.\n const atStartEdge = scrollPos <= 0;\n const atEndEdge = scrollPos >= maxScroll - 1;\n const needsStartEdge = direction === 'down' || direction === 'right';\n\n if (maxScroll > 0 && (needsStartEdge ? !atStartEdge : !atEndEdge)) {\n return true;\n }\n }\n }\n\n node = node.parentElement;\n }\n\n return false;\n}\n\n/**\n * Headless swipe gesture for the drawer popup: dismiss, snap-back, and movement between snap points.\n *\n * Writes a small contract the consumer styles against (no transform is applied for you, keeping the\n * primitive headless):\n * - `--drawer-swipe-movement-x` / `--drawer-swipe-movement-y` — signed px offset along the axis,\n * including the active snap point's resting offset while idle.\n * - `--drawer-swipe-strength` — 0..1 live dismiss progress (`0` at rest).\n * - `[data-swiping]` — present while a gesture is active (drive `transition: none` off this).\n * - `[data-swipe-direction]` — the active direction.\n * - `[data-swipe-dismiss]` — present briefly when a release commits to dismissal.\n *\n * While idle the movement variables hold the active snap offset; releasing without dismissing writes\n * the target offset so the consumer's `transition` animates between snap points and home.\n *\n * Must be called from an injection context (a directive/component constructor).\n */\nexport function useDrawerSwipe(config: RdxDrawerSwipeConfig): void {\n assertInInjectionContext(useDrawerSwipe);\n\n const element = () => config.element();\n const axisSize = () =>\n config.size?.() ?? (isVertical(config.direction()) ? element().offsetHeight : element().offsetWidth);\n\n let active = false;\n let startX = 0;\n let startY = 0;\n let startOffset = 0;\n let pendingProjected = 0;\n let lastProjected = 0;\n let lastTime = 0;\n let velocity = 0;\n let rafId = 0;\n\n const cancelRaf = () => {\n if (rafId) {\n cancelAnimationFrame(rafId);\n rafId = 0;\n }\n };\n\n /** Write the movement variables for a translate magnitude (px) and a 0..1 dismiss strength. */\n const writeMovement = (offset: number, strength: number) => {\n const unit = dismissUnitVector(config.direction());\n const el = element();\n el.style.setProperty('--drawer-swipe-movement-x', `${unit.x * offset}px`);\n el.style.setProperty('--drawer-swipe-movement-y', `${unit.y * offset}px`);\n el.style.setProperty('--drawer-swipe-strength', `${strength}`);\n };\n\n const writeLive = () => {\n rafId = 0;\n const size = axisSize();\n const visual = pendingProjected >= 0 ? pendingProjected : -rubberBand(pendingProjected, size);\n const strength = clamp(pendingProjected / (size || 1), 0, 1);\n writeMovement(visual, strength);\n config.onProgress?.(strength);\n };\n\n const scheduleWrite = () => {\n if (!rafId) {\n rafId = requestAnimationFrame(writeLive);\n }\n };\n\n /** Settle to a resting snap offset (animates via the consumer's transition); rest is not dismissing. */\n const settleTo = (offset: number) => {\n cancelRaf();\n writeMovement(offset, 0);\n config.onProgress?.(0);\n };\n\n usePointerDrag({\n canStart: (event) => {\n if (!config.enabled()) {\n return false;\n }\n\n const target = event.target as Element | null;\n\n if (target?.closest('[data-base-ui-swipe-ignore]')) {\n return false;\n }\n\n return !scrollGuards(target, config.boundary?.() ?? element(), config.direction());\n },\n onStart: (event) => {\n active = true;\n startX = event.clientX;\n startY = event.clientY;\n startOffset = config.restingOffset();\n pendingProjected = startOffset;\n lastProjected = startOffset;\n lastTime = event.timeStamp;\n velocity = 0;\n\n const el = element();\n el.setAttribute('data-swiping', '');\n el.removeAttribute('data-swipe-dismiss');\n },\n onMove: (event) => {\n // Abort if the drawer closed mid-drag; the end handler settles back.\n if (!config.enabled()) {\n return false;\n }\n\n const unit = dismissUnitVector(config.direction());\n const drag = (event.clientX - startX) * unit.x + (event.clientY - startY) * unit.y;\n pendingProjected = startOffset + drag;\n\n const dt = event.timeStamp - lastTime;\n\n if (dt > 0) {\n velocity = (pendingProjected - lastProjected) / dt;\n lastProjected = pendingProjected;\n lastTime = event.timeStamp;\n }\n\n scheduleWrite();\n return true;\n },\n onEnd: (event, committed) => {\n active = false;\n cancelRaf();\n element().removeAttribute('data-swiping');\n\n // A pause before lift is a hold, not a flick: drop stale velocity.\n if (event.timeStamp - lastTime > FLICK_IDLE_MS) {\n velocity = 0;\n }\n\n const release = config.resolveRelease(pendingProjected, velocity, committed && config.enabled());\n\n if (release.type === 'dismiss') {\n element().setAttribute('data-swipe-dismiss', '');\n config.onDismiss(event);\n return;\n }\n\n settleTo(release.offset);\n }\n });\n\n // Keep the idle resting offset in sync with snap state and reset live progress to 0 at rest.\n // Skipped while dragging (the gesture owns the variables) and writes nothing while closed so the\n // exit keyframe starts from the last visible offset.\n effect(() => {\n const offset = config.restingOffset();\n const enabled = config.enabled();\n\n if (active) {\n return;\n }\n\n if (enabled) {\n writeMovement(offset, 0);\n config.onProgress?.(0);\n }\n });\n\n inject(DestroyRef).onDestroy(cancelRaf);\n}\n","import { computed, Directive, effect, ElementRef, inject, Injector } from '@angular/core';\nimport { elementSize } from '@radix-ng/primitives/core';\nimport { injectRdxDialogRootContext, RdxDialogPopup } from '@radix-ng/primitives/dialog';\nimport { injectRdxDrawerRootContext } from './drawer-root';\nimport { buildSnapEntries, dismissUnitVector, resolveSnapTarget } from './drawer-snap';\nimport { RdxDrawerRelease, useDrawerSwipe } from './drawer-swipe';\n\n/** Fraction of the drawer size a plain (no-snap) release must pass to dismiss. */\nconst DISMISS_FRACTION = 0.5;\n/** Dismiss-axis velocity (px/ms) past which a plain release dismisses regardless of distance. */\nconst DISMISS_VELOCITY = 0.4;\n\n/** Root font size (px) for resolving `rem` snap points; `16` (the CSS initial value) outside the browser. */\nfunction rootFontSize(): number {\n if (typeof document === 'undefined') {\n return 16;\n }\n\n return parseFloat(getComputedStyle(document.documentElement).fontSize) || 16;\n}\n\n/**\n * A container for the drawer contents.\n *\n * Composes the dialog popup (focus trap, dismissal, scroll lock, a11y wiring) and owns the drawer\n * gesture on top of it: swipe-to-dismiss, snap-back, and movement between snap points. The gesture\n * publishes a CSS-variable / data-attribute contract (see {@link useDrawerSwipe}); the consumer\n * styles the actual transform and snap-back transition off it, keeping the primitive headless.\n */\n@Directive({\n selector: '[rdxDrawerPopup]',\n exportAs: 'rdxDrawerPopup',\n hostDirectives: [\n {\n directive: RdxDialogPopup,\n outputs: [\n 'escapeKeyDown',\n 'pointerDownOutside',\n 'focusOutside',\n 'interactOutside',\n 'openAutoFocus',\n 'closeAutoFocus'\n ]\n }\n ],\n host: {\n '[attr.data-swipe-direction]': 'drawerContext.swipeDirection()',\n '[attr.data-expanded]': 'expanded() ? \"\" : undefined',\n '[attr.data-nested-drawer-open]': 'drawerContext.nestedDrawerOpen() ? \"\" : undefined',\n '[style.--nested-drawers]': 'drawerContext.nestedDrawerCount()',\n '[style.--drawer-frontmost-height]': 'frontmostHeightPx()'\n }\n})\nexport class RdxDrawerPopup {\n protected readonly drawerContext = injectRdxDrawerRootContext();\n private readonly dialogContext = injectRdxDialogRootContext();\n private readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly element = this.elementRef.nativeElement;\n\n /** Live popup size (px); a ResizeObserver keeps it current so snap geometry never goes stale. */\n private readonly size = elementSize({ elementRef: this.elementRef, injector: inject(Injector) });\n\n /** Snap entries for the current size; built once and shared by the offset/expanded reads. */\n private readonly snapEntries = computed(() =>\n buildSnapEntries(this.drawerContext.snapPoints(), this.axisSize(), rootFontSize())\n );\n\n /** Resting translate magnitude (px) of the active snap point; `0` when fully open / no snaps. */\n readonly restingOffset = computed(() => {\n const active = this.drawerContext.activeSnapPoint();\n\n if (active === null || !this.drawerContext.hasSnapPoints()) {\n return 0;\n }\n\n return this.snapEntries().find((candidate) => candidate.value === active)?.offset ?? 0;\n });\n\n /** Whether the active snap point is the most open one. */\n protected readonly expanded = computed(() => {\n const active = this.drawerContext.activeSnapPoint();\n\n if (active === null || !this.drawerContext.hasSnapPoints()) {\n return false;\n }\n\n const entries = this.snapEntries();\n\n return entries.length > 0 && entries[0].value === active;\n });\n\n /** The frontmost nested drawer's height for `--drawer-frontmost-height`, or unset when none. */\n protected readonly frontmostHeightPx = computed(() => {\n const height = this.drawerContext.frontmostHeight();\n return this.drawerContext.nestedDrawerOpen() && height > 0 ? `${height}px` : null;\n });\n\n constructor() {\n useDrawerSwipe({\n element: () => this.element,\n boundary: () => this.swipeBoundary(),\n size: () => this.visibleAxisSize(),\n direction: this.drawerContext.swipeDirection,\n enabled: computed(() => this.dialogContext.isOpen() && !this.drawerContext.openingSwipeActive()),\n restingOffset: this.restingOffset,\n resolveRelease: (projected, velocity, canDismiss) => this.resolveRelease(projected, velocity, canDismiss),\n onDismiss: (event) => this.dialogContext.close('swipe', event),\n onProgress: (strength) => this.drawerContext.setSwipeProgress(strength)\n });\n\n // Publish informational snap variables and report the measured size to the provider.\n effect(() => {\n const offset = this.restingOffset();\n const size = this.axisSize();\n\n if (!this.dialogContext.isOpen()) {\n return;\n }\n\n this.element.style.setProperty('--drawer-height', `${size}px`);\n this.element.style.setProperty('--drawer-snap-point-offset', `${offset}px`);\n this.drawerContext.reportPopupHeight(size);\n });\n\n effect(() => {\n const active = this.drawerContext.openingSwipeActive();\n const distance = this.drawerContext.openingSwipeDistance();\n\n if (!active) {\n if (distance === Number.POSITIVE_INFINITY) {\n this.element.style.setProperty('--drawer-swipe-movement-x', '0px');\n this.element.style.setProperty('--drawer-swipe-movement-y', '0px');\n this.element.style.setProperty('--drawer-swipe-strength', '0');\n this.drawerContext.setSwipeProgress(0);\n }\n\n this.element.removeAttribute('data-swiping');\n return;\n }\n\n const size = this.axisSize() || this.axisElementSize();\n const movement = Math.max(0, size - distance);\n const strength = size > 0 ? movement / size : 1;\n const unit = dismissUnitVector(this.drawerContext.swipeDirection());\n\n this.element.setAttribute('data-swiping', '');\n this.element.style.setProperty('--drawer-swipe-movement-x', `${unit.x * movement}px`);\n this.element.style.setProperty('--drawer-swipe-movement-y', `${unit.y * movement}px`);\n this.element.style.setProperty('--drawer-swipe-strength', `${strength}`);\n this.drawerContext.setSwipeProgress(strength);\n });\n }\n\n private axisSize(): number {\n const direction = this.drawerContext.swipeDirection();\n const size = this.size();\n const measured = direction === 'up' || direction === 'down' ? size.height : size.width;\n return measured || this.axisElementSize();\n }\n\n private axisElementSize(): number {\n const direction = this.drawerContext.swipeDirection();\n return direction === 'up' || direction === 'down' ? this.element.offsetHeight : this.element.offsetWidth;\n }\n\n private swipeBoundary(): HTMLElement {\n return this.element.closest<HTMLElement>('[rdxDrawerViewport]') ?? this.element;\n }\n\n private visibleAxisSize(): number {\n const popupSize = this.axisSize();\n const boundary = this.swipeBoundary();\n\n if (boundary === this.element) {\n return popupSize;\n }\n\n const direction = this.drawerContext.swipeDirection();\n const boundarySize = direction === 'up' || direction === 'down' ? boundary.clientHeight : boundary.clientWidth;\n return boundarySize > 0 ? Math.min(popupSize, boundarySize) : popupSize;\n }\n\n private resolveRelease(projected: number, velocity: number, canDismiss: boolean): RdxDrawerRelease {\n const size = this.drawerContext.hasSnapPoints() ? this.axisSize() : this.visibleAxisSize();\n const dismissAllowed = canDismiss && !this.dialogContext.disablePointerDismissal();\n\n if (!this.drawerContext.hasSnapPoints()) {\n const strength = projected / (size || 1);\n\n return dismissAllowed && (strength >= DISMISS_FRACTION || velocity >= DISMISS_VELOCITY)\n ? { type: 'dismiss' }\n : { type: 'snap', offset: 0 };\n }\n\n const entries = this.snapEntries();\n const offsets = entries.map((entry) => entry.offset);\n const active = this.drawerContext.activeSnapPoint();\n const activeIndex = Math.max(\n 0,\n entries.findIndex((entry) => entry.value === active)\n );\n\n const target = resolveSnapTarget({\n offsets,\n activeIndex,\n projected,\n velocity,\n size,\n sequential: this.drawerContext.sequentialSnap(),\n canDismiss: dismissAllowed\n });\n\n if ('dismiss' in target) {\n return { type: 'dismiss' };\n }\n\n const entry = entries[target.index];\n\n if (entry.value !== active) {\n this.drawerContext.setActiveSnapPoint(entry.value, true);\n }\n\n return { type: 'snap', offset: entry.offset };\n }\n}\n","import { Directive, isDevMode } from '@angular/core';\nimport { rdxDevError } from '@radix-ng/primitives/core';\nimport { RdxDialogPortal } from '@radix-ng/primitives/dialog';\n\n/**\n * Structural directive that teleports the drawer content (backdrop + popup) into a container (default\n * `document.body`) while the drawer is open, keeping it mounted until its CSS exit `@keyframes`\n * finish. It composes the structural {@link RdxDialogPortal}, inheriting the dialog presence context.\n *\n * Use the explicit `<ng-template rdxDrawerPortal>` form; pass `[container]` for a custom target.\n */\n@Directive({\n selector: 'ng-template[rdxDrawerPortal]',\n exportAs: 'rdxDrawerPortal',\n hostDirectives: [{ directive: RdxDialogPortal, inputs: ['container'] }]\n})\nexport class RdxDrawerPortal {}\n\n/**\n * Dev-mode guard: `rdxDrawerPortal` is now structural, so the old `<div rdxDrawerPortal>` markup would\n * silently stop portaling — fail loudly instead.\n */\n@Directive({\n selector: '[rdxDrawerPortal]:not(ng-template)'\n})\nexport class RdxDrawerPortalMisuseGuard {\n constructor() {\n if (isDevMode()) {\n rdxDevError(\n 'drawer/portal-on-element',\n '`rdxDrawerPortal` is now a structural directive. ' +\n 'Use `<ng-template rdxDrawerPortal>` around the backdrop and popup. ' +\n 'rdxDrawerPortalPresence has been removed.',\n 'components/drawer'\n );\n }\n }\n}\n","import { booleanAttribute, computed, Directive, input, signal } from '@angular/core';\nimport { BooleanInput } from '@radix-ng/primitives/core';\nimport { injectRdxDialogRootContext } from '@radix-ng/primitives/dialog';\nimport { usePointerDrag } from './drawer-pointer';\nimport { injectRdxDrawerRootContext } from './drawer-root';\nimport { RdxDrawerSwipeDirection } from './drawer-swipe';\n\n/** Pointer travel (px) inward past which releasing the swipe keeps the drawer open. */\nconst OPEN_THRESHOLD = 30;\n\n/** Pointer travel in a given direction. */\nfunction directionalDistance(direction: RdxDrawerSwipeDirection, dx: number, dy: number) {\n switch (direction) {\n case 'down':\n return dy;\n case 'up':\n return -dy;\n case 'left':\n return -dx;\n case 'right':\n return dx;\n }\n}\n\nconst oppositeDirection: Record<RdxDrawerSwipeDirection, RdxDrawerSwipeDirection> = {\n up: 'down',\n down: 'up',\n left: 'right',\n right: 'left'\n};\n\nconst touchAction = (direction: RdxDrawerSwipeDirection) =>\n direction === 'left' || direction === 'right' ? 'pan-y' : 'pan-x';\n\n/**\n * An off-canvas region (typically pinned to a screen edge) that opens the drawer when swiped inward.\n *\n * Opens the drawer at the start of a drag so its popup can follow the pointer live. Releasing past\n * the threshold settles open; releasing before it or cancelling animates the drawer back out.\n */\n@Directive({\n selector: '[rdxDrawerSwipeArea]',\n exportAs: 'rdxDrawerSwipeArea',\n host: {\n '[attr.data-open]': 'isOpen() ? \"\" : undefined',\n '[attr.data-closed]': 'isOpen() ? undefined : \"\"',\n '[attr.data-disabled]': 'disabled() ? \"\" : undefined',\n '[attr.data-swiping]': 'swiping() ? \"\" : undefined',\n '[attr.data-swipe-direction]': 'direction()',\n '[style.pointer-events]': 'disabled() || isOpen() ? \"none\" : undefined',\n '[style.touch-action]': 'resolvedTouchAction()',\n role: 'presentation',\n 'aria-hidden': 'true'\n }\n})\nexport class RdxDrawerSwipeArea {\n private readonly drawerContext = injectRdxDrawerRootContext();\n private readonly dialogContext = injectRdxDialogRootContext();\n\n /** Direction the opening gesture travels; defaults to the opposite of the root's dismiss direction. */\n readonly swipeDirection = input<RdxDrawerSwipeDirection>();\n\n /** Whether the swipe area should ignore user interaction. */\n readonly disabled = input<boolean, BooleanInput>(false, { transform: booleanAttribute });\n\n protected readonly isOpen = computed(() => this.dialogContext.isOpen());\n protected readonly direction = computed(\n () => this.swipeDirection() ?? oppositeDirection[this.drawerContext.swipeDirection()]\n );\n protected readonly resolvedTouchAction = computed(() => touchAction(this.direction()));\n protected readonly swiping = signal(false);\n\n private startX = 0;\n private startY = 0;\n private distance = 0;\n\n constructor() {\n usePointerDrag({\n canStart: () => !this.disabled() && !this.isOpen(),\n onStart: (event) => {\n this.startX = event.clientX;\n this.startY = event.clientY;\n this.distance = 0;\n this.swiping.set(true);\n this.drawerContext.setOpeningSwipe(true, 0);\n this.dialogContext.open(undefined, undefined, undefined, 'swipe', event);\n },\n onMove: (event) => {\n if (this.disabled()) {\n return false;\n }\n\n this.distance = Math.max(\n 0,\n directionalDistance(this.direction(), event.clientX - this.startX, event.clientY - this.startY)\n );\n\n this.drawerContext.setOpeningSwipe(true, this.distance);\n return true;\n },\n onEnd: (event, committed) => {\n const keepOpen = committed && this.distance >= OPEN_THRESHOLD;\n\n this.drawerContext.setOpeningSwipe(false, keepOpen ? Number.POSITIVE_INFINITY : this.distance);\n\n if (!keepOpen) {\n this.dialogContext.close('swipe', event);\n }\n\n this.swiping.set(false);\n }\n });\n }\n}\n","import { Directive } from '@angular/core';\nimport { RdxDialogTitle } from '@radix-ng/primitives/dialog';\n\n/**\n * An accessible title announced when the drawer is opened.\n */\n@Directive({\n selector: '[rdxDrawerTitle]',\n exportAs: 'rdxDrawerTitle',\n hostDirectives: [RdxDialogTitle]\n})\nexport class RdxDrawerTitle {}\n","import { Directive } from '@angular/core';\nimport { RdxDialogTrigger } from '@radix-ng/primitives/dialog';\n\n/**\n * A button that opens the drawer. Behaves exactly like the dialog trigger.\n */\n@Directive({\n selector: 'button[rdxDrawerTrigger]',\n exportAs: 'rdxDrawerTrigger',\n hostDirectives: [\n {\n directive: RdxDialogTrigger,\n inputs: ['handle', 'payload', 'id', 'disabled']\n }\n ]\n})\nexport class RdxDrawerTrigger {}\n","import { Directive } from '@angular/core';\nimport { RdxDialogViewport } from '@radix-ng/primitives/dialog';\n\n/**\n * A positioning container for the drawer popup that can be made scrollable.\n *\n * Exposes the dialog viewport's `data-nested` / `data-nested-dialog-open` state for styling.\n */\n@Directive({\n selector: '[rdxDrawerViewport]',\n exportAs: 'rdxDrawerViewport',\n hostDirectives: [RdxDialogViewport]\n})\nexport class RdxDrawerViewport {}\n","import { createRdxDialogHandle, RdxDialogHandle } from '@radix-ng/primitives/dialog';\n\n/**\n * Connects a drawer root with trigger elements rendered elsewhere in the DOM.\n *\n * Drawers reuse the dialog handle implementation unchanged.\n */\nexport const RdxDrawerHandle = RdxDialogHandle;\nexport type RdxDrawerHandle<Payload = unknown> = RdxDialogHandle<Payload>;\n\nexport function createRdxDrawerHandle<Payload = unknown>(): RdxDrawerHandle<Payload> {\n return createRdxDialogHandle<Payload>();\n}\n","import { NgModule } from '@angular/core';\nimport { RdxDrawerBackdrop } from './src/drawer-backdrop';\nimport { RdxDrawerClose } from './src/drawer-close';\nimport { RdxDrawerContent } from './src/drawer-content';\nimport { RdxDrawerDescription } from './src/drawer-description';\nimport { RdxDrawerIndent } from './src/drawer-indent';\nimport { RdxDrawerIndentBackground } from './src/drawer-indent-background';\nimport { RdxDrawerPopup } from './src/drawer-popup';\nimport { RdxDrawerPortal, RdxDrawerPortalMisuseGuard } from './src/drawer-portal';\nimport { RdxDrawerProviderDirective } from './src/drawer-provider';\nimport { RdxDrawerRoot } from './src/drawer-root';\nimport { RdxDrawerSwipeArea } from './src/drawer-swipe-area';\nimport { RdxDrawerTitle } from './src/drawer-title';\nimport { RdxDrawerTrigger } from './src/drawer-trigger';\nimport { RdxDrawerViewport } from './src/drawer-viewport';\n\nexport * from './src/drawer-backdrop';\nexport * from './src/drawer-close';\nexport * from './src/drawer-content';\nexport * from './src/drawer-description';\nexport * from './src/drawer-handle';\nexport * from './src/drawer-indent';\nexport * from './src/drawer-indent-background';\nexport * from './src/drawer-pointer';\nexport * from './src/drawer-popup';\nexport * from './src/drawer-portal';\nexport * from './src/drawer-provider';\nexport * from './src/drawer-root';\nexport * from './src/drawer-snap';\nexport * from './src/drawer-swipe';\nexport * from './src/drawer-swipe-area';\nexport * from './src/drawer-title';\nexport * from './src/drawer-trigger';\nexport * from './src/drawer-viewport';\n\nexport const drawerImports = [\n RdxDrawerProviderDirective,\n RdxDrawerRoot,\n RdxDrawerTrigger,\n RdxDrawerSwipeArea,\n RdxDrawerPortal,\n RdxDrawerPortalMisuseGuard,\n RdxDrawerBackdrop,\n RdxDrawerViewport,\n RdxDrawerPopup,\n RdxDrawerContent,\n RdxDrawerTitle,\n RdxDrawerDescription,\n RdxDrawerClose,\n RdxDrawerIndent,\n RdxDrawerIndentBackground\n];\n\n@NgModule({\n imports: [...drawerImports],\n exports: [...drawerImports]\n})\nexport class RdxDrawerModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAYA;;;;;AAKG;MAEU,iBAAiB,CAAA;AAD9B,IAAA,WAAA,GAAA;AAEqB,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAA0B,EAAE,4EAAC;;AAGnD,QAAA,IAAA,CAAA,KAAK,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,KAAK,EAAE,CAAC,MAAM,4EAAC;;AAG3C,QAAA,IAAA,CAAA,MAAM,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,KAAK,EAAE,GAAG,CAAC,6EAAC;;AAGzC,QAAA,IAAA,CAAA,SAAS,GAAG,QAAQ,CAA+B,MAAM,IAAI,CAAC,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,gFAAC;;AAGrF,QAAA,IAAA,CAAA,eAAe,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,SAAS,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,sFAAC;;AAEjE,QAAA,IAAA,CAAA,aAAa,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,SAAS,EAAE,EAAE,aAAa,EAAE,IAAI,CAAC,oFAAC;AAQlF,IAAA;;AALG,IAAA,QAAQ,CAAC,YAAmC,EAAA;AACxC,QAAA,IAAI,CAAC,KAA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AA,CAAA;+GAOhB,eAAe,EAAA,CAAA,CAAA;;2FAAf,eAAe,EAAA,UAAA,EAAA,CAAA;kBAJ3B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,GAAG,aAAa,CAAC;AAC3B,oBAAA,OAAO,EAAE,CAAC,GAAG,aAAa;AAC7B,iBAAA;;;ACxDD;;AAEG;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { input, booleanAttribute, signal, computed, inject, ElementRef, DestroyRef, Directive, effect, afterNextRender } from '@angular/core';
|
|
3
|
-
import { createContext } from '@radix-ng/primitives/core';
|
|
3
|
+
import { createContext, rdxCheckLabelElement } from '@radix-ng/primitives/core';
|
|
4
4
|
import { injectFormRootContext } from '@radix-ng/primitives/form';
|
|
5
5
|
|
|
6
6
|
let fieldId = 0;
|
|
@@ -416,6 +416,7 @@ class RdxFieldLabel {
|
|
|
416
416
|
this.id = input(`rdx-field-label-${labelId++}`, ...(ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []));
|
|
417
417
|
this.htmlFor = () => this.rootContext.controlId();
|
|
418
418
|
this.dataAttr = attr;
|
|
419
|
+
rdxCheckLabelElement('rdxFieldLabel', 'field/unassociated-label', 'components/field');
|
|
419
420
|
}
|
|
420
421
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RdxFieldLabel, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
421
422
|
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.9", type: RdxFieldLabel, isStandalone: true, selector: "[rdxFieldLabel]", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.id": "id()", "attr.for": "htmlFor()", "attr.data-invalid": "dataAttr(rootContext.invalidState())", "attr.data-disabled": "dataAttr(rootContext.disabledState())", "attr.data-required": "dataAttr(rootContext.requiredState())" } }, exportAs: ["rdxFieldLabel"], ngImport: i0 }); }
|
|
@@ -433,7 +434,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
433
434
|
'[attr.data-required]': 'dataAttr(rootContext.requiredState())'
|
|
434
435
|
}
|
|
435
436
|
}]
|
|
436
|
-
}], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }] } });
|
|
437
|
+
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }] } });
|
|
437
438
|
|
|
438
439
|
/**
|
|
439
440
|
* Generated bundle index. Do not edit.
|