@radix-ng/primitives 1.0.9 → 1.0.10

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.
Files changed (37) hide show
  1. package/fesm2022/radix-ng-primitives-autocomplete.mjs +11 -3
  2. package/fesm2022/radix-ng-primitives-autocomplete.mjs.map +1 -1
  3. package/fesm2022/radix-ng-primitives-combobox.mjs +11 -3
  4. package/fesm2022/radix-ng-primitives-combobox.mjs.map +1 -1
  5. package/fesm2022/radix-ng-primitives-core.mjs +9 -6
  6. package/fesm2022/radix-ng-primitives-core.mjs.map +1 -1
  7. package/fesm2022/radix-ng-primitives-date-field.mjs +18 -8
  8. package/fesm2022/radix-ng-primitives-date-field.mjs.map +1 -1
  9. package/fesm2022/radix-ng-primitives-floating-focus-manager.mjs +9 -0
  10. package/fesm2022/radix-ng-primitives-floating-focus-manager.mjs.map +1 -1
  11. package/fesm2022/radix-ng-primitives-focus-scope.mjs +241 -95
  12. package/fesm2022/radix-ng-primitives-focus-scope.mjs.map +1 -1
  13. package/fesm2022/radix-ng-primitives-menu.mjs +97 -9
  14. package/fesm2022/radix-ng-primitives-menu.mjs.map +1 -1
  15. package/fesm2022/radix-ng-primitives-navigation-menu.mjs +17 -3
  16. package/fesm2022/radix-ng-primitives-navigation-menu.mjs.map +1 -1
  17. package/fesm2022/radix-ng-primitives-popper.mjs +148 -23
  18. package/fesm2022/radix-ng-primitives-popper.mjs.map +1 -1
  19. package/fesm2022/radix-ng-primitives-portal.mjs +16 -5
  20. package/fesm2022/radix-ng-primitives-portal.mjs.map +1 -1
  21. package/fesm2022/radix-ng-primitives-select.mjs +14 -6
  22. package/fesm2022/radix-ng-primitives-select.mjs.map +1 -1
  23. package/fesm2022/radix-ng-primitives-time-field.mjs +12 -4
  24. package/fesm2022/radix-ng-primitives-time-field.mjs.map +1 -1
  25. package/package.json +1 -5
  26. package/types/radix-ng-primitives-core.d.ts +15 -12
  27. package/types/radix-ng-primitives-date-field.d.ts +14 -4
  28. package/types/radix-ng-primitives-floating-focus-manager.d.ts +7 -0
  29. package/types/radix-ng-primitives-focus-scope.d.ts +61 -44
  30. package/types/radix-ng-primitives-menu.d.ts +14 -3
  31. package/types/radix-ng-primitives-popper.d.ts +136 -43
  32. package/types/radix-ng-primitives-portal.d.ts +18 -8
  33. package/types/radix-ng-primitives-time-field.d.ts +12 -4
  34. package/fesm2022/radix-ng-primitives-focus-guards.mjs +0 -53
  35. package/fesm2022/radix-ng-primitives-focus-guards.mjs.map +0 -1
  36. package/focus-guards/README.md +0 -1
  37. package/types/radix-ng-primitives-focus-guards.d.ts +0 -15
@@ -1,7 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
- import { inject, ElementRef, Directive, contentChild, signal, InjectionToken, Injector, input, numberAttribute, booleanAttribute, output, forwardRef, computed, resource, linkedSignal, afterRenderEffect, afterNextRender, EnvironmentInjector, effect, createComponent, inputBinding } from '@angular/core';
2
+ import { inject, ElementRef, Directive, contentChild, signal, InjectionToken, numberAttribute, Injector, input, booleanAttribute, computed, output, forwardRef, resource, linkedSignal, afterRenderEffect, afterNextRender, EnvironmentInjector, effect, createComponent, inputBinding } from '@angular/core';
3
3
  import { RdxArrow } from '@radix-ng/primitives/arrow';
4
- import { computePosition, offset, shift, limitShift, flip, size, arrow, hide, autoUpdate } from '@floating-ui/dom';
4
+ import { flip, shift, limitShift, computePosition, offset, size, arrow, hide, autoUpdate } from '@floating-ui/dom';
5
5
  import { createContext, elementSize, watch } from '@radix-ng/primitives/core';
6
6
 
7
7
  class RdxPopperAnchor {
@@ -35,6 +35,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImpor
35
35
  }]
36
36
  }], propDecorators: { anchor: [{ type: i0.ContentChild, args: [i0.forwardRef(() => RdxPopperAnchor), { isSignal: true }] }] } });
37
37
 
38
+ /**
39
+ * Collision-avoidance preset for dropdown-style popups (Base UI `DROPDOWN_COLLISION_AVOIDANCE`).
40
+ *
41
+ * Dropdowns (select / combobox / autocomplete / menu) strictly prefer their top/bottom placement and
42
+ * cap their height with `var(--available-height)`, so they must **not** fall back to the perpendicular
43
+ * (left/right) axis. `side`/`align` fall back to the wrapper default (`'flip'`).
44
+ */
45
+ const DROPDOWN_COLLISION_AVOIDANCE = { fallbackAxisSide: 'none' };
46
+ /**
47
+ * Collision-avoidance preset for regular popups (Base UI `POPUP_COLLISION_AVOIDANCE`).
48
+ *
49
+ * Popovers / tooltips / preview cards aren't height-capped and may freely flip to the perpendicular
50
+ * axis, preferring the logical end side. This equals the wrapper's built-in default; it is exported so
51
+ * popups can state the intent explicitly.
52
+ */
53
+ const POPUP_COLLISION_AVOIDANCE = { fallbackAxisSide: 'end' };
38
54
  const RdxPopperContentConfigToken = new InjectionToken('RdxPopperContentConfig', {
39
55
  factory: () => ({})
40
56
  });
@@ -90,6 +106,14 @@ function getSideAndAlignFromPlacement(placement) {
90
106
  return [side, align];
91
107
  }
92
108
 
109
+ /**
110
+ * `input()` transform for `sideOffset` / `alignOffset`: coerce string/number attribute values to a
111
+ * number but pass an {@link OffsetFunction} through untouched. A **named** module-level function (not
112
+ * an inline arrow) so compodoc parses the file — see CLAUDE.md's compodoc gotcha.
113
+ */
114
+ function coerceOffset(value) {
115
+ return typeof value === 'function' ? value : numberAttribute(value);
116
+ }
93
117
  const context = () => {
94
118
  const popperContentWrapper = inject(RdxPopperContentWrapper);
95
119
  return {
@@ -106,14 +130,17 @@ const [injectPopperContentWrapperContext, providePopperContentWrapperContext] =
106
130
  class RdxPopperContentWrapper {
107
131
  positionParams() {
108
132
  return {
133
+ positioningActive: this.positioningActive(),
109
134
  anchor: this.resolvedAnchor(),
110
135
  strategy: this.positionStrategy(),
111
136
  placement: this.desiredPlacement(),
137
+ side: this.side(),
138
+ align: this.align(),
112
139
  sideOffset: this.sideOffset(),
113
140
  alignOffset: this.alignOffset(),
114
141
  arrowHeight: this.arrowSize()().height,
115
142
  arrowWidth: this.arrowSize()().width,
116
- avoidCollisions: this.avoidCollisions(),
143
+ collisionAvoidance: this.effectiveCollisionAvoidance(),
117
144
  sticky: this.sticky(),
118
145
  detectOverflowOptions: this.detectOverflowOptions(),
119
146
  arrow: this.arrow(),
@@ -139,23 +166,64 @@ class RdxPopperContentWrapper {
139
166
  this.side = input(this.config.side ?? 'bottom', /* @ts-ignore */
140
167
  ...(ngDevMode ? [{ debugName: "side" }] : /* istanbul ignore next */ []));
141
168
  /**
142
- * Distance between the anchor and the popup in pixels.
169
+ * Distance between the anchor and the popup in pixels. Also accepts an {@link OffsetFunction} that
170
+ * reads the anchor / positioner dimensions and the resolved side / align.
143
171
  */
144
- this.sideOffset = input(this.config.sideOffset ?? 0, { ...(ngDevMode ? { debugName: "sideOffset" } : /* istanbul ignore next */ {}), transform: numberAttribute });
172
+ this.sideOffset = input(this.config.sideOffset ?? 0, { ...(ngDevMode ? { debugName: "sideOffset" } : /* istanbul ignore next */ {}), transform: coerceOffset });
145
173
  /**
146
174
  * How to align the popup relative to the specified side. May change when collisions occur.
147
175
  */
148
176
  this.align = input(this.config.align ?? 'center', /* @ts-ignore */
149
177
  ...(ngDevMode ? [{ debugName: "align" }] : /* istanbul ignore next */ []));
150
- /** An offset in pixels from the `start` or `end` alignment options. */
151
- this.alignOffset = input(this.config.alignOffset ?? 0, { ...(ngDevMode ? { debugName: "alignOffset" } : /* istanbul ignore next */ {}), transform: numberAttribute });
178
+ /**
179
+ * An offset in pixels from the `start` or `end` alignment options. Also accepts an
180
+ * {@link OffsetFunction} (same signature as `sideOffset`).
181
+ */
182
+ this.alignOffset = input(this.config.alignOffset ?? 0, { ...(ngDevMode ? { debugName: "alignOffset" } : /* istanbul ignore next */ {}), transform: coerceOffset });
152
183
  /**
153
184
  * Minimum distance to maintain between the arrow and the edges of the popup.
154
185
  * If your content has border-radius, this will prevent it from overflowing the corners.
155
186
  */
156
187
  this.arrowPadding = input(this.config.arrowPadding ?? 0, { ...(ngDevMode ? { debugName: "arrowPadding" } : /* istanbul ignore next */ {}), transform: numberAttribute });
157
- /** When `true`, overrides the `side` and `align` preferences to prevent collisions with boundary edges. */
188
+ /**
189
+ * When `true`, overrides the `side` and `align` preferences to prevent collisions with boundary edges.
190
+ *
191
+ * @deprecated Use {@link collisionAvoidance} for fine-grained control (Base UI parity). Still honored:
192
+ * `false` disables all avoidance (unless a `collisionAvoidance` object is provided, which wins).
193
+ */
158
194
  this.avoidCollisions = input(this.config.avoidCollisions ?? true, { ...(ngDevMode ? { debugName: "avoidCollisions" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
195
+ /**
196
+ * How the popup avoids colliding with the boundary edges, per axis (Base UI `collisionAvoidance`).
197
+ * Overrides the deprecated `avoidCollisions` and any per-primitive preset. An object here **fully
198
+ * replaces** the preset — omitted fields fall back to `side: 'flip'`, `align: 'flip'`,
199
+ * `fallbackAxisSide: 'end'`, never to the preset. See {@link RdxCollisionAvoidance}.
200
+ */
201
+ this.collisionAvoidance = input(undefined, /* @ts-ignore */
202
+ ...(ngDevMode ? [{ debugName: "collisionAvoidance" }] : /* istanbul ignore next */ []));
203
+ /**
204
+ * Collision avoidance resolved against the deprecated `avoidCollisions` flag, the per-primitive
205
+ * config preset, and the wrapper defaults. Precedence: an explicit `collisionAvoidance` input →
206
+ * a legacy `avoidCollisions=false` (disables everything) → the config preset → the Base UI defaults.
207
+ */
208
+ this.effectiveCollisionAvoidance = computed(() => {
209
+ const explicit = this.collisionAvoidance();
210
+ // Legacy escape hatch (deprecated): `avoidCollisions=false` disables avoidance entirely — unless
211
+ // the consumer passes an explicit `collisionAvoidance` object, which always wins. Checked before
212
+ // the preset so `[avoidCollisions]="false"` still works on a positioner that ships a preset.
213
+ if (!explicit && this.avoidCollisions() === false) {
214
+ return { side: 'none', align: 'none', fallbackAxisSide: 'none' };
215
+ }
216
+ // A consumer object fully REPLACES the preset (Base UI parity — the preset is only the default
217
+ // when the consumer passes nothing); omitted fields fall back to the global defaults, not the
218
+ // preset. `??` (not spread-merge) is what enforces the "replaces, not merges" semantics.
219
+ const source = explicit ?? this.config.collisionAvoidance;
220
+ return {
221
+ side: source?.side ?? 'flip',
222
+ align: source?.align ?? 'flip',
223
+ fallbackAxisSide: source?.fallbackAxisSide ?? 'end'
224
+ };
225
+ }, /* @ts-ignore */
226
+ ...(ngDevMode ? [{ debugName: "effectiveCollisionAvoidance" }] : /* istanbul ignore next */ []));
159
227
  /**
160
228
  * The element used as the collision boundary.
161
229
  * By default this is the viewport, though you can provide additional element(s) to be included in this check.
@@ -264,26 +332,68 @@ class RdxPopperContentWrapper {
264
332
  ...(ngDevMode ? [{ debugName: "resolvedAnchor" }] : /* istanbul ignore next */ []));
265
333
  this.position = resource({ ...(ngDevMode ? { debugName: "position" } : /* istanbul ignore next */ {}), params: () => this.positionParams(),
266
334
  loader: ({ params }) => {
267
- if (!params.anchor) {
335
+ // Skip computing a position for a paused (closed keep-mounted) positioner.
336
+ if (!params.positioningActive || !params.anchor) {
268
337
  return Promise.resolve(null);
269
338
  }
339
+ const ca = params.collisionAvoidance;
340
+ // Ported from Base UI `useAnchorPositioning`: `side`/`align`/`fallbackAxisSide` select and
341
+ // configure the `flip()` / `shift()` middleware instead of the old boolean toggle.
342
+ const shiftDisabled = ca.align === 'none' && ca.side !== 'shift';
343
+ const crossAxisShiftEnabled = !shiftDisabled && (params.sticky === 'always' || ca.side === 'shift');
344
+ const flipMiddleware = ca.side === 'none'
345
+ ? undefined
346
+ : flip({
347
+ ...params.detectOverflowOptions,
348
+ mainAxis: ca.side === 'flip',
349
+ crossAxis: ca.align === 'flip' ? 'alignment' : false,
350
+ fallbackAxisSideDirection: ca.fallbackAxisSide
351
+ });
352
+ const shiftMiddleware = shiftDisabled
353
+ ? undefined
354
+ : shift({
355
+ ...params.detectOverflowOptions,
356
+ mainAxis: ca.align !== 'none',
357
+ crossAxis: crossAxisShiftEnabled,
358
+ // `partial` keeps the popup attached to the anchor (limitShift); `always` keeps it
359
+ // fully inside the boundary regardless (no limiter).
360
+ limiter: params.sticky === 'partial' ? limitShift() : undefined
361
+ });
362
+ // https://floating-ui.com/docs/flip#combining-with-shift — run shift first when shifting is
363
+ // the primary correction (or for center alignment), otherwise flip first.
364
+ const collisionMiddleware = ca.side === 'shift' || ca.align === 'shift' || params.align === 'center'
365
+ ? [shiftMiddleware, flipMiddleware]
366
+ : [flipMiddleware, shiftMiddleware];
270
367
  return computePosition(params.anchor, this.elementRef.nativeElement, {
271
368
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
272
369
  strategy: params.strategy,
273
370
  placement: params.placement,
274
371
  middleware: [
275
- offset({
276
- mainAxis: params.sideOffset + params.arrowHeight || 0,
277
- alignmentAxis: params.alignOffset
372
+ offset((state) => {
373
+ const [placedSide, placedAlign] = getSideAndAlignFromPlacement(state.placement);
374
+ const data = {
375
+ side: placedSide,
376
+ align: placedAlign,
377
+ anchor: {
378
+ width: state.rects.reference.width,
379
+ height: state.rects.reference.height
380
+ },
381
+ positioner: {
382
+ width: state.rects.floating.width,
383
+ height: state.rects.floating.height
384
+ }
385
+ };
386
+ const sideAxis = typeof params.sideOffset === 'function' ? params.sideOffset(data) : params.sideOffset;
387
+ const alignAxis = typeof params.alignOffset === 'function' ? params.alignOffset(data) : params.alignOffset;
388
+ return {
389
+ mainAxis: sideAxis + params.arrowHeight || 0,
390
+ // both axes so `alignOffset` also applies to center-aligned popups
391
+ // (`alignmentAxis` overrides `crossAxis` for start/end placements)
392
+ crossAxis: alignAxis,
393
+ alignmentAxis: alignAxis
394
+ };
278
395
  }),
279
- params.avoidCollisions &&
280
- shift({
281
- mainAxis: true,
282
- crossAxis: false,
283
- limiter: params.sticky === 'partial' ? limitShift() : undefined,
284
- ...params.detectOverflowOptions
285
- }),
286
- params.avoidCollisions && flip({ ...params.detectOverflowOptions }),
396
+ ...collisionMiddleware,
287
397
  size({
288
398
  ...params.detectOverflowOptions,
289
399
  apply: ({ elements, rects, availableWidth, availableHeight }) => {
@@ -395,7 +505,22 @@ class RdxPopperContentWrapper {
395
505
  };
396
506
  }, /* @ts-ignore */
397
507
  ...(ngDevMode ? [{ debugName: "style" }] : /* istanbul ignore next */ []));
508
+ /**
509
+ * Whether the positioner should actively track its anchor (recompute + `autoUpdate`). Defaults to
510
+ * always-on — the historical behavior, correct for a positioner that unmounts when its layer closes.
511
+ * A positioner that can stay mounted while closed (`keepMounted`) **overrides** this with its
512
+ * open/presence signal so a closed, hidden positioner doesn't spin an endless `autoUpdate`
513
+ * `requestAnimationFrame` loop (only relevant when `updatePositionStrategy: 'always'`). It's a
514
+ * reassignable field (not `readonly`) because the render effect below reads it lazily, after the
515
+ * subclass constructor has swapped it in.
516
+ */
517
+ this.positioningActive = computed(() => true, /* @ts-ignore */
518
+ ...(ngDevMode ? [{ debugName: "positioningActive" }] : /* istanbul ignore next */ []));
398
519
  this.afterRenderEffect = afterRenderEffect((onCleanup) => {
520
+ // Closed keep-mounted positioner: skip positioning entirely so `autoUpdate` doesn't keep firing.
521
+ if (!this.positioningActive()) {
522
+ return;
523
+ }
399
524
  this.position.reload();
400
525
  const anchor = this.resolvedAnchor();
401
526
  if (!anchor) {
@@ -416,7 +541,7 @@ class RdxPopperContentWrapper {
416
541
  });
417
542
  }
418
543
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxPopperContentWrapper, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
419
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "22.0.2", type: RdxPopperContentWrapper, isStandalone: true, selector: "[rdxPopperContentWrapper]", inputs: { anchor: { classPropertyName: "anchor", publicName: "anchor", isSignal: true, isRequired: false, transformFunction: null }, side: { classPropertyName: "side", publicName: "side", isSignal: true, isRequired: false, transformFunction: null }, sideOffset: { classPropertyName: "sideOffset", publicName: "sideOffset", isSignal: true, isRequired: false, transformFunction: null }, align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null }, alignOffset: { classPropertyName: "alignOffset", publicName: "alignOffset", isSignal: true, isRequired: false, transformFunction: null }, arrowPadding: { classPropertyName: "arrowPadding", publicName: "arrowPadding", isSignal: true, isRequired: false, transformFunction: null }, avoidCollisions: { classPropertyName: "avoidCollisions", publicName: "avoidCollisions", isSignal: true, isRequired: false, transformFunction: null }, collisionBoundary: { classPropertyName: "collisionBoundary", publicName: "collisionBoundary", isSignal: true, isRequired: false, transformFunction: null }, collisionPadding: { classPropertyName: "collisionPadding", publicName: "collisionPadding", isSignal: true, isRequired: false, transformFunction: null }, sticky: { classPropertyName: "sticky", publicName: "sticky", isSignal: true, isRequired: false, transformFunction: null }, hideWhenDetached: { classPropertyName: "hideWhenDetached", publicName: "hideWhenDetached", isSignal: true, isRequired: false, transformFunction: null }, positionStrategy: { classPropertyName: "positionStrategy", publicName: "positionStrategy", isSignal: true, isRequired: false, transformFunction: null }, updatePositionStrategy: { classPropertyName: "updatePositionStrategy", publicName: "updatePositionStrategy", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { placed: "placed" }, host: { attributes: { "data-radix-popper-content-wrapper": "" }, properties: { "attr.data-side": "placedSide()", "attr.data-align": "placedAlign()", "attr.data-anchor-hidden": "anchorHidden() ? \"\" : undefined", "style": "style()" } }, providers: [providePopperContentWrapperContext(context)], queries: [{ propertyName: "arrow", first: true, predicate: i0.forwardRef(() => RdxPopperArrow), descendants: true, isSignal: true }], ngImport: i0 }); }
544
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "22.0.2", type: RdxPopperContentWrapper, isStandalone: true, selector: "[rdxPopperContentWrapper]", inputs: { anchor: { classPropertyName: "anchor", publicName: "anchor", isSignal: true, isRequired: false, transformFunction: null }, side: { classPropertyName: "side", publicName: "side", isSignal: true, isRequired: false, transformFunction: null }, sideOffset: { classPropertyName: "sideOffset", publicName: "sideOffset", isSignal: true, isRequired: false, transformFunction: null }, align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null }, alignOffset: { classPropertyName: "alignOffset", publicName: "alignOffset", isSignal: true, isRequired: false, transformFunction: null }, arrowPadding: { classPropertyName: "arrowPadding", publicName: "arrowPadding", isSignal: true, isRequired: false, transformFunction: null }, avoidCollisions: { classPropertyName: "avoidCollisions", publicName: "avoidCollisions", isSignal: true, isRequired: false, transformFunction: null }, collisionAvoidance: { classPropertyName: "collisionAvoidance", publicName: "collisionAvoidance", isSignal: true, isRequired: false, transformFunction: null }, collisionBoundary: { classPropertyName: "collisionBoundary", publicName: "collisionBoundary", isSignal: true, isRequired: false, transformFunction: null }, collisionPadding: { classPropertyName: "collisionPadding", publicName: "collisionPadding", isSignal: true, isRequired: false, transformFunction: null }, sticky: { classPropertyName: "sticky", publicName: "sticky", isSignal: true, isRequired: false, transformFunction: null }, hideWhenDetached: { classPropertyName: "hideWhenDetached", publicName: "hideWhenDetached", isSignal: true, isRequired: false, transformFunction: null }, positionStrategy: { classPropertyName: "positionStrategy", publicName: "positionStrategy", isSignal: true, isRequired: false, transformFunction: null }, updatePositionStrategy: { classPropertyName: "updatePositionStrategy", publicName: "updatePositionStrategy", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { placed: "placed" }, host: { attributes: { "data-radix-popper-content-wrapper": "" }, properties: { "attr.data-side": "placedSide()", "attr.data-align": "placedAlign()", "attr.data-anchor-hidden": "anchorHidden() ? \"\" : undefined", "style": "style()" } }, providers: [providePopperContentWrapperContext(context)], queries: [{ propertyName: "arrow", first: true, predicate: i0.forwardRef(() => RdxPopperArrow), descendants: true, isSignal: true }], ngImport: i0 }); }
420
545
  }
421
546
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxPopperContentWrapper, decorators: [{
422
547
  type: Directive,
@@ -433,7 +558,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImpor
433
558
  '[style]': 'style()'
434
559
  }
435
560
  }]
436
- }], ctorParameters: () => [], propDecorators: { anchor: [{ type: i0.Input, args: [{ isSignal: true, alias: "anchor", required: false }] }], side: [{ type: i0.Input, args: [{ isSignal: true, alias: "side", required: false }] }], sideOffset: [{ type: i0.Input, args: [{ isSignal: true, alias: "sideOffset", required: false }] }], align: [{ type: i0.Input, args: [{ isSignal: true, alias: "align", required: false }] }], alignOffset: [{ type: i0.Input, args: [{ isSignal: true, alias: "alignOffset", required: false }] }], arrowPadding: [{ type: i0.Input, args: [{ isSignal: true, alias: "arrowPadding", required: false }] }], avoidCollisions: [{ type: i0.Input, args: [{ isSignal: true, alias: "avoidCollisions", required: false }] }], collisionBoundary: [{ type: i0.Input, args: [{ isSignal: true, alias: "collisionBoundary", required: false }] }], collisionPadding: [{ type: i0.Input, args: [{ isSignal: true, alias: "collisionPadding", required: false }] }], sticky: [{ type: i0.Input, args: [{ isSignal: true, alias: "sticky", required: false }] }], hideWhenDetached: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideWhenDetached", required: false }] }], positionStrategy: [{ type: i0.Input, args: [{ isSignal: true, alias: "positionStrategy", required: false }] }], updatePositionStrategy: [{ type: i0.Input, args: [{ isSignal: true, alias: "updatePositionStrategy", required: false }] }], placed: [{ type: i0.Output, args: ["placed"] }], arrow: [{ type: i0.ContentChild, args: [forwardRef(() => RdxPopperArrow), { isSignal: true }] }] } });
561
+ }], ctorParameters: () => [], propDecorators: { anchor: [{ type: i0.Input, args: [{ isSignal: true, alias: "anchor", required: false }] }], side: [{ type: i0.Input, args: [{ isSignal: true, alias: "side", required: false }] }], sideOffset: [{ type: i0.Input, args: [{ isSignal: true, alias: "sideOffset", required: false }] }], align: [{ type: i0.Input, args: [{ isSignal: true, alias: "align", required: false }] }], alignOffset: [{ type: i0.Input, args: [{ isSignal: true, alias: "alignOffset", required: false }] }], arrowPadding: [{ type: i0.Input, args: [{ isSignal: true, alias: "arrowPadding", required: false }] }], avoidCollisions: [{ type: i0.Input, args: [{ isSignal: true, alias: "avoidCollisions", required: false }] }], collisionAvoidance: [{ type: i0.Input, args: [{ isSignal: true, alias: "collisionAvoidance", required: false }] }], collisionBoundary: [{ type: i0.Input, args: [{ isSignal: true, alias: "collisionBoundary", required: false }] }], collisionPadding: [{ type: i0.Input, args: [{ isSignal: true, alias: "collisionPadding", required: false }] }], sticky: [{ type: i0.Input, args: [{ isSignal: true, alias: "sticky", required: false }] }], hideWhenDetached: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideWhenDetached", required: false }] }], positionStrategy: [{ type: i0.Input, args: [{ isSignal: true, alias: "positionStrategy", required: false }] }], updatePositionStrategy: [{ type: i0.Input, args: [{ isSignal: true, alias: "updatePositionStrategy", required: false }] }], placed: [{ type: i0.Output, args: ["placed"] }], arrow: [{ type: i0.ContentChild, args: [forwardRef(() => RdxPopperArrow), { isSignal: true }] }] } });
437
562
  /**
438
563
  * Providers a "thin" positioner that `extends RdxPopperContentWrapper` must include. Angular
439
564
  * inherits a base directive's inputs/outputs/host bindings/queries but **not** its `providers`, so
@@ -575,5 +700,5 @@ const popperImports = [RdxPopper, RdxPopperArrow, RdxPopperContentWrapper, RdxPo
575
700
  * Generated bundle index. Do not edit.
576
701
  */
577
702
 
578
- export { RdxPopper, RdxPopperAnchor, RdxPopperArrow, RdxPopperContent, RdxPopperContentConfigToken, RdxPopperContentWrapper, getSideAndAlignFromPlacement, injectPopperContentWrapperContext, isNotNull, legacyPopperVars, popperImports, providePopperContentWrapperContext, provideRdxPopperContentConfig, provideRdxPopperContentWrapper, transformOrigin };
703
+ export { DROPDOWN_COLLISION_AVOIDANCE, POPUP_COLLISION_AVOIDANCE, RdxPopper, RdxPopperAnchor, RdxPopperArrow, RdxPopperContent, RdxPopperContentConfigToken, RdxPopperContentWrapper, getSideAndAlignFromPlacement, injectPopperContentWrapperContext, isNotNull, legacyPopperVars, popperImports, providePopperContentWrapperContext, provideRdxPopperContentConfig, provideRdxPopperContentWrapper, transformOrigin };
579
704
  //# sourceMappingURL=radix-ng-primitives-popper.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"radix-ng-primitives-popper.mjs","sources":["../../../packages/primitives/popper/src/popper-anchor.ts","../../../packages/primitives/popper/src/popper.ts","../../../packages/primitives/popper/src/popper-content.config.ts","../../../packages/primitives/popper/src/utils.ts","../../../packages/primitives/popper/src/popper-content-wrapper.ts","../../../packages/primitives/popper/src/popper-arrow.ts","../../../packages/primitives/popper/src/popper-content.ts","../../../packages/primitives/popper/index.ts","../../../packages/primitives/popper/radix-ng-primitives-popper.ts"],"sourcesContent":["import { Directive, ElementRef, inject } from '@angular/core';\n\n@Directive({\n selector: '[rdxPopperAnchor]'\n})\nexport class RdxPopperAnchor {\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n}\n","import { contentChild, Directive, signal } from '@angular/core';\nimport type { ReferenceElement } from '@floating-ui/dom';\nimport { RdxPopperAnchor } from './popper-anchor';\n\n@Directive({\n selector: '[rdxPopperRoot]'\n})\nexport class RdxPopper {\n readonly anchor = contentChild(RdxPopperAnchor);\n readonly anchorOverride = signal<ReferenceElement | undefined>(undefined);\n}\n","import { InjectionToken, Provider } from '@angular/core';\nimport { Align, Side } from './utils';\n\n/**\n * Default positioning values for `RdxPopperContentWrapper`.\n *\n * Lets a composing primitive (e.g. tooltip) provide its own Base UI-aligned defaults without\n * changing the shared popper defaults that other consumers (e.g. popover) rely on. Any value left\n * `undefined` falls back to the wrapper's built-in default. Consumer template bindings always win.\n */\nexport interface RdxPopperContentConfig {\n side?: Side;\n align?: Align;\n sideOffset?: number;\n alignOffset?: number;\n arrowPadding?: number;\n avoidCollisions?: boolean;\n collisionPadding?: number | Partial<Record<Side, number>>;\n sticky?: 'partial' | 'always';\n hideWhenDetached?: boolean;\n positionStrategy?: 'fixed' | 'absolute';\n updatePositionStrategy?: 'optimized' | 'always';\n}\n\nexport const RdxPopperContentConfigToken = new InjectionToken<RdxPopperContentConfig>('RdxPopperContentConfig', {\n factory: () => ({})\n});\n\nexport function provideRdxPopperContentConfig(config: RdxPopperContentConfig): Provider {\n return { provide: RdxPopperContentConfigToken, useValue: config };\n}\n","import type { Middleware, Placement } from '@floating-ui/dom';\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nconst SIDE_OPTIONS = ['top', 'right', 'bottom', 'left'] as const;\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nconst ALIGN_OPTIONS = ['start', 'center', 'end'] as const;\n\nexport type Side = (typeof SIDE_OPTIONS)[number];\nexport type Align = (typeof ALIGN_OPTIONS)[number];\n\nexport function isNotNull<T>(value: T | null): value is T {\n return value !== null;\n}\n\nexport function transformOrigin(options: { arrowWidth: number; arrowHeight: number }): Middleware {\n return {\n name: 'transformOrigin',\n options,\n fn(data) {\n const { placement, rects, middlewareData } = data;\n\n const cannotCenterArrow = middlewareData.arrow?.centerOffset !== 0;\n const isArrowHidden = cannotCenterArrow;\n const arrowWidth = isArrowHidden ? 0 : options.arrowWidth;\n const arrowHeight = isArrowHidden ? 0 : options.arrowHeight;\n\n const [placedSide, placedAlign] = getSideAndAlignFromPlacement(placement);\n const noArrowAlign = { start: '0%', center: '50%', end: '100%' }[placedAlign];\n\n const arrowXCenter = (middlewareData.arrow?.x ?? 0) + arrowWidth / 2;\n const arrowYCenter = (middlewareData.arrow?.y ?? 0) + arrowHeight / 2;\n\n let x = '';\n let y = '';\n\n if (placedSide === 'bottom') {\n x = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;\n y = `${-arrowHeight}px`;\n } else if (placedSide === 'top') {\n x = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;\n y = `${rects.floating.height + arrowHeight}px`;\n } else if (placedSide === 'right') {\n x = `${-arrowHeight}px`;\n y = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;\n } else if (placedSide === 'left') {\n x = `${rects.floating.width + arrowHeight}px`;\n y = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;\n }\n return { data: { x, y } };\n }\n };\n}\n\nexport function getSideAndAlignFromPlacement(placement: Placement) {\n const [side, align = 'center'] = placement.split('-');\n return [side as Side, align as Align] as const;\n}\n","import {\n afterNextRender,\n afterRenderEffect,\n booleanAttribute,\n computed,\n contentChild,\n Directive,\n ElementRef,\n forwardRef,\n inject,\n Injector,\n input,\n linkedSignal,\n numberAttribute,\n output,\n Provider,\n resource,\n signal,\n Type\n} from '@angular/core';\nimport type { ComputePositionReturn, ReferenceElement, VirtualElement } from '@floating-ui/dom';\nimport {\n autoUpdate,\n computePosition,\n flip,\n arrow as floatingUIArrow,\n hide,\n limitShift,\n offset,\n Placement,\n shift,\n size\n} from '@floating-ui/dom';\nimport { BooleanInput, createContext, elementSize, NumberInput, watch } from '@radix-ng/primitives/core';\nimport { RdxPopper } from './popper';\nimport { RdxPopperArrow } from './popper-arrow';\nimport { RdxPopperContentConfigToken } from './popper-content.config';\nimport { Align, isNotNull, Side, transformOrigin } from './utils';\n\nexport type RdxPopperAnchorElement =\n | Element\n | ElementRef<Element>\n | VirtualElement\n | (() => Element | VirtualElement | null)\n | null\n | undefined;\n\ntype PopperPositionParams = {\n anchor: ReferenceElement | null;\n strategy: 'fixed' | 'absolute';\n placement: Placement;\n sideOffset: number;\n alignOffset: number;\n arrowHeight: number;\n arrowWidth: number;\n avoidCollisions: boolean;\n sticky: 'partial' | 'always';\n detectOverflowOptions: {\n padding: number | Partial<Record<Side, number>>;\n boundary: Element[];\n altBoundary: boolean;\n };\n arrow: RdxPopperArrow | undefined;\n arrowPadding: number;\n hideWhenDetached: boolean;\n};\n\nconst context = () => {\n const popperContentWrapper = inject(RdxPopperContentWrapper);\n\n return {\n placedSide: popperContentWrapper.placedSide,\n placedAlign: popperContentWrapper.placedAlign,\n arrowX: popperContentWrapper.arrowX,\n arrowY: popperContentWrapper.arrowY,\n shouldHideArrow: popperContentWrapper.shouldHideArrow,\n isPositioned: popperContentWrapper.isPositioned,\n anchorHidden: popperContentWrapper.anchorHidden\n };\n};\n\nexport type PopperContentWrapperContext = ReturnType<typeof context>;\n\nexport const [injectPopperContentWrapperContext, providePopperContentWrapperContext] =\n createContext<PopperContentWrapperContext>('PopperContentWrapperContext', 'utils/popper');\n\n@Directive({\n selector: '[rdxPopperContentWrapper]',\n providers: [providePopperContentWrapperContext(context)],\n host: {\n 'data-radix-popper-content-wrapper': '',\n // Placement state, emitted once for every positioner (ADR 0012). The popup\n // (`RdxPopperContent`) keeps its own `data-side`/`data-align` as popup-level styling hooks.\n '[attr.data-side]': 'placedSide()',\n '[attr.data-align]': 'placedAlign()',\n '[attr.data-anchor-hidden]': 'anchorHidden() ? \"\" : undefined',\n '[style]': 'style()'\n }\n})\nexport class RdxPopperContentWrapper {\n private readonly elementRef = inject(ElementRef);\n private readonly injector = inject(Injector);\n\n private readonly context = inject(RdxPopper);\n\n /** Optional positioning defaults provided by a composing primitive (e.g. tooltip). */\n private readonly config = inject(RdxPopperContentConfigToken);\n\n /**\n * An element to position the popup against. Defaults to the popper anchor.\n */\n readonly anchor = input<RdxPopperAnchorElement>();\n\n /**\n * The preferred side of the anchor to render against when open.\n * Will be reversed when collisions occur and avoidCollisions is enabled.\n */\n readonly side = input<Side>(this.config.side ?? 'bottom');\n\n /**\n * Distance between the anchor and the popup in pixels.\n */\n readonly sideOffset = input<number, NumberInput>(this.config.sideOffset ?? 0, { transform: numberAttribute });\n\n /**\n * How to align the popup relative to the specified side. May change when collisions occur.\n */\n readonly align = input<Align>(this.config.align ?? 'center');\n\n /** An offset in pixels from the `start` or `end` alignment options. */\n readonly alignOffset = input<number, NumberInput>(this.config.alignOffset ?? 0, { transform: numberAttribute });\n\n /**\n * Minimum distance to maintain between the arrow and the edges of the popup.\n * If your content has border-radius, this will prevent it from overflowing the corners.\n */\n readonly arrowPadding = input<number, NumberInput>(this.config.arrowPadding ?? 0, { transform: numberAttribute });\n\n /** When `true`, overrides the `side` and `align` preferences to prevent collisions with boundary edges. */\n readonly avoidCollisions = input<boolean, BooleanInput>(this.config.avoidCollisions ?? true, {\n transform: booleanAttribute\n });\n\n /**\n * The element used as the collision boundary.\n * By default this is the viewport, though you can provide additional element(s) to be included in this check.\n */\n readonly collisionBoundary = input<ElementRef<HTMLElement> | ElementRef<HTMLElement>[]>();\n /**\n * The distance in pixels from the boundary edges where collision detection should occur.\n * Accepts a number (same for all sides), or a partial padding object, for example: `{ top: 20, left: 20 }`.\n */\n readonly collisionPadding = input<number | Partial<Record<Side, number>>>(this.config.collisionPadding ?? 0);\n\n /**\n * The sticky behavior on the align axis. `partial` will keep the\n * content in the boundary as long as the trigger is at least partially\n * in the boundary whilst \"always\" will keep the content in the boundary\n * regardless.\n */\n readonly sticky = input<'partial' | 'always'>(this.config.sticky ?? 'partial');\n\n /**\n * Whether to hide the content when the trigger becomes fully occluded.\n */\n readonly hideWhenDetached = input<boolean, BooleanInput>(this.config.hideWhenDetached ?? false, {\n transform: booleanAttribute\n });\n\n /**\n * The type of CSS position property to use.\n */\n readonly positionStrategy = input<'fixed' | 'absolute'>(this.config.positionStrategy ?? 'fixed');\n\n /**\n * Strategy to update the position of the floating element on every animation frame.\n */\n readonly updatePositionStrategy = input<'optimized' | 'always'>(this.config.updatePositionStrategy ?? 'optimized');\n\n /**\n * Emits when the element is placed.\n */\n readonly placed = output<void>();\n\n readonly arrow = contentChild(forwardRef(() => RdxPopperArrow));\n\n /**\n * When `true`, the content is rendered click/hover-through (`pointer-events: none`). Used for\n * cursor-following content (e.g. a tooltip tracking the pointer) that must never intercept the\n * pointer and steal hover from its trigger.\n */\n readonly nonInteractive = signal(false);\n\n readonly shouldHideArrow = computed(() => this.position.value()?.middlewareData['arrow']?.centerOffset !== 0);\n /** Whether the arrow could not be centered on the anchor because the popup was shifted. */\n readonly arrowUncentered = computed(\n () => (this.position.value()?.middlewareData['arrow']?.centerOffset ?? 0) !== 0\n );\n readonly arrowX = computed(() => this.position.value()?.middlewareData['arrow']?.x);\n readonly arrowY = computed(() => this.position.value()?.middlewareData['arrow']?.y);\n readonly anchorHidden = computed(() => this.position.value()?.middlewareData.hide?.referenceHidden === true);\n\n private readonly desiredPlacement = computed(\n () => (this.side() + (this.align() !== 'center' ? '-' + this.align() : '')) as Placement\n );\n\n private readonly arrowSize = computed(() => {\n const arrowElementRef = this.arrow()?.elementRef;\n\n if (!arrowElementRef) {\n return computed(() => ({\n height: 0,\n width: 0\n }));\n }\n\n return elementSize({\n elementRef: arrowElementRef,\n injector: this.injector\n });\n });\n\n private readonly boundary = computed(() => {\n const boundary = this.collisionBoundary();\n\n if (Array.isArray(boundary)) {\n return boundary.map((e) => e.nativeElement);\n }\n\n if (!boundary) {\n return [];\n }\n\n return [boundary.nativeElement];\n });\n\n private readonly hasExplicitBoundaries = computed(() => this.boundary().length > 0);\n\n private readonly detectOverflowOptions = computed(() => ({\n padding: this.collisionPadding(),\n boundary: this.boundary().filter(isNotNull),\n // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries\n altBoundary: this.hasExplicitBoundaries()\n }));\n\n private readonly resolvedAnchor = computed<ReferenceElement | null>(() => {\n const anchor = this.anchor();\n const resolvedAnchor = typeof anchor === 'function' ? anchor() : anchor;\n\n if (resolvedAnchor instanceof ElementRef) {\n return resolvedAnchor.nativeElement;\n }\n\n if (resolvedAnchor) {\n return resolvedAnchor;\n }\n\n return this.context.anchorOverride() ?? this.context.anchor()?.elementRef.nativeElement ?? null;\n });\n\n private readonly position = resource<ComputePositionReturn | null, PopperPositionParams>({\n params: () => this.positionParams(),\n loader: ({ params }) => {\n if (!params.anchor) {\n return Promise.resolve(null);\n }\n\n return computePosition(params.anchor, this.elementRef.nativeElement, {\n // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues\n strategy: params.strategy,\n placement: params.placement,\n middleware: [\n offset({\n mainAxis: params.sideOffset + params.arrowHeight || 0,\n alignmentAxis: params.alignOffset\n }),\n params.avoidCollisions &&\n shift({\n mainAxis: true,\n crossAxis: false,\n limiter: params.sticky === 'partial' ? limitShift() : undefined,\n ...params.detectOverflowOptions\n }),\n params.avoidCollisions && flip({ ...params.detectOverflowOptions }),\n size({\n ...params.detectOverflowOptions,\n apply: ({ elements, rects, availableWidth, availableHeight }) => {\n const { width: anchorWidth, height: anchorHeight } = rects.reference;\n const contentStyle = elements.floating.style;\n contentStyle.setProperty('--radix-popper-available-width', `${availableWidth}px`);\n contentStyle.setProperty('--radix-popper-available-height', `${availableHeight}px`);\n contentStyle.setProperty('--radix-popper-anchor-width', `${anchorWidth}px`);\n contentStyle.setProperty('--radix-popper-anchor-height', `${anchorHeight}px`);\n }\n }),\n params.arrow &&\n floatingUIArrow({\n element: params.arrow.elementRef.nativeElement,\n padding: params.arrowPadding\n }),\n transformOrigin({\n arrowWidth: params.arrowWidth,\n arrowHeight: params.arrowHeight\n }),\n params.hideWhenDetached &&\n hide({\n strategy: 'referenceHidden',\n ...params.detectOverflowOptions\n })\n ]\n });\n }\n });\n\n private positionParams(): PopperPositionParams {\n return {\n anchor: this.resolvedAnchor(),\n strategy: this.positionStrategy(),\n placement: this.desiredPlacement(),\n sideOffset: this.sideOffset(),\n alignOffset: this.alignOffset(),\n arrowHeight: this.arrowSize()().height,\n arrowWidth: this.arrowSize()().width,\n avoidCollisions: this.avoidCollisions(),\n sticky: this.sticky(),\n detectOverflowOptions: this.detectOverflowOptions(),\n arrow: this.arrow(),\n arrowPadding: this.arrowPadding(),\n hideWhenDetached: this.hideWhenDetached()\n };\n }\n\n /**\n * The last successfully computed position, retained while a new one is being computed.\n *\n * The `position` resource resets `value()` to `undefined` whenever its params change (e.g. on\n * every pointer move while a tooltip tracks the cursor). Reading it directly would blank the\n * popup (`visibility: hidden` + off-screen transform) for the frames between a move and the next\n * resolved position — a visible flicker at high pointer-move rates. Holding the previous value\n * keeps the popup placed and visible until the new position is ready.\n */\n private readonly resolvedPosition = linkedSignal<\n ComputePositionReturn | undefined,\n ComputePositionReturn | undefined\n >({\n source: () => this.position.value() ?? undefined,\n computation: (value, previous) => value ?? previous?.value\n });\n\n /**\n * Whether the panel is positioned.\n */\n readonly isPositioned = computed(() => !!this.position.value());\n\n /**\n * The current placement of the panel.\n */\n readonly placement = computed(() => {\n const placement = this.position.value()?.placement;\n\n if (!placement) {\n return;\n }\n\n const [side, align = 'center'] = placement.split('-');\n\n return {\n side: side as Side,\n align: align as Align\n };\n });\n\n /**\n * The side the panel is currently placed against.\n */\n readonly placedSide = computed(() => this.placement()?.side);\n\n /**\n * The current alignment of the panel.\n */\n readonly placedAlign = computed(() => this.placement()?.align);\n\n protected readonly style = computed(() => {\n const pos = this.resolvedPosition();\n const x = pos?.x;\n const y = pos?.y;\n\n const ready = Number.isFinite(x) && Number.isFinite(y);\n\n return {\n position: this.positionStrategy(),\n transform: ready ? '' : 'translate(0, -200%)', // keep off the page when measuring\n minWidth: 'max-content',\n // ADR 0012 §3: z-index belongs on the positioner (set it via a class/style on the\n // positioner element), Base UI-aligned. The wrapper no longer copies the popup's computed\n // z-index, so a positioner no longer requires an inner `RdxPopperContent` to exist.\n top: Number.isFinite(y) ? `${y}px` : '',\n left: Number.isFinite(x) ? `${x}px` : '',\n '--radix-popper-transform-origin': [\n pos?.middlewareData['transformOrigin']?.x,\n pos?.middlewareData['transformOrigin']?.y\n ].join(' '),\n '--radix-popper-content-wrapper-width': `${this.elementRef.nativeElement.offsetWidth}px`,\n '--radix-popper-content-wrapper-height': `${this.elementRef.nativeElement.offsetHeight}px`,\n\n // Unified Base UI-style variables (ADR 0012), emitted once for every positioner so\n // consumers learn a single dialect. They alias the engine-level `--radix-popper-*` values\n // (the `--anchor-*`/`--available-*` ones are set imperatively by the `size` middleware).\n '--anchor-width': 'var(--radix-popper-anchor-width)',\n '--anchor-height': 'var(--radix-popper-anchor-height)',\n '--available-width': 'var(--radix-popper-available-width)',\n '--available-height': 'var(--radix-popper-available-height)',\n '--positioner-width': 'var(--radix-popper-content-wrapper-width)',\n '--positioner-height': 'var(--radix-popper-content-wrapper-height)',\n '--transform-origin': 'var(--radix-popper-transform-origin)',\n\n visibility: ready ? 'visible' : 'hidden',\n pointerEvents: this.nonInteractive() || !ready ? 'none' : 'auto',\n\n // hide the content if using the hide middleware and should be hidden\n // set visibility to hidden and disable pointer events so the UI behaves\n // as if the PopperContent isn't there at all\n ...(pos?.middlewareData.hide?.referenceHidden && {\n visibility: 'hidden',\n pointerEvents: 'none'\n })\n };\n });\n\n private readonly afterRenderEffect = afterRenderEffect((onCleanup) => {\n this.position.reload();\n\n const anchor = this.resolvedAnchor();\n if (!anchor) {\n return;\n }\n\n const cleanup = autoUpdate(anchor, this.elementRef.nativeElement, () => this.position.reload(), {\n animationFrame: this.updatePositionStrategy() === 'always'\n });\n\n onCleanup(cleanup);\n });\n\n constructor() {\n watch([this.isPositioned], ([isPositioned]) => {\n if (!isPositioned) {\n return;\n }\n\n afterNextRender(\n () => {\n this.placed.emit();\n },\n { injector: this.injector }\n );\n });\n }\n}\n\n/**\n * Providers a \"thin\" positioner that `extends RdxPopperContentWrapper` must include. Angular\n * inherits a base directive's inputs/outputs/host bindings/queries but **not** its `providers`, so\n * the `useExisting` alias (lets the popup and arrow resolve the subclass through the\n * {@link RdxPopperContentWrapper} token) and the wrapper context provider (what\n * `injectPopperContentWrapperContext()` reads) are re-declared here in one place.\n *\n * Combine with {@link provideRdxPopperContentConfig} for per-primitive positioning defaults:\n *\n * ```ts\n * providers: [\n * ...provideRdxPopperContentWrapper(RdxComboboxPositioner),\n * provideRdxPopperContentConfig({ sideOffset: 4, align: 'start' })\n * ]\n * ```\n */\nexport function provideRdxPopperContentWrapper(positioner: Type<RdxPopperContentWrapper>): Provider[] {\n return [{ provide: RdxPopperContentWrapper, useExisting: positioner }, providePopperContentWrapperContext(context)];\n}\n\n/**\n * Deprecated per-primitive aliases of the unified popper variables (ADR 0012). Since the wrapper now\n * emits the unified `--anchor-*` / `--available-*` / `--transform-origin` set itself, a positioner no\n * longer hand-writes a re-namespacing `[style]` map; it spreads this helper into a host `[style]`\n * binding only to keep the legacy `--radix-<name>-content-*` / `--radix-<name>-trigger-*` names alive\n * for one release of consumer back-compat. Migrate to the unified set; these are removed next minor.\n *\n * @deprecated Use the unified `--anchor-*` / `--available-*` / `--transform-origin` variables.\n */\nexport function legacyPopperVars(name: string): Record<string, string> {\n return {\n [`--radix-${name}-content-transform-origin`]: 'var(--radix-popper-transform-origin)',\n [`--radix-${name}-content-available-width`]: 'var(--radix-popper-available-width)',\n [`--radix-${name}-content-available-height`]: 'var(--radix-popper-available-height)',\n [`--radix-${name}-trigger-width`]: 'var(--radix-popper-anchor-width)',\n [`--radix-${name}-trigger-height`]: 'var(--radix-popper-anchor-height)'\n };\n}\n","import {\n computed,\n createComponent,\n Directive,\n effect,\n ElementRef,\n EnvironmentInjector,\n inject,\n input,\n inputBinding,\n numberAttribute\n} from '@angular/core';\nimport { RdxArrow } from '@radix-ng/primitives/arrow';\nimport { injectPopperContentWrapperContext } from './popper-content-wrapper';\nimport { Side } from './utils';\n\nconst OPPOSITE_SIDE: Record<Side, Side> = {\n top: 'bottom',\n right: 'left',\n bottom: 'top',\n left: 'right'\n};\n\n@Directive({\n selector: '[rdxPopperArrow]',\n host: {\n // The arrow is purely decorative — keep it out of the accessibility tree (Base UI does the same).\n 'aria-hidden': 'true',\n '[style]': 'style()'\n }\n})\nexport class RdxPopperArrow {\n private readonly popperContentContext = injectPopperContentWrapperContext();\n\n private readonly environmentInjector = inject(EnvironmentInjector);\n\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly width = input(10, { transform: numberAttribute });\n\n readonly height = input(5, { transform: numberAttribute });\n\n baseSide = computed(() => OPPOSITE_SIDE[this.popperContentContext.placedSide()!]);\n\n protected readonly style = computed(() => {\n return {\n position: 'absolute',\n left: this.popperContentContext.arrowX() ? `${this.popperContentContext.arrowX()}px` : undefined,\n top: this.popperContentContext.arrowY() ? `${this.popperContentContext.arrowY()}px` : undefined,\n [this.baseSide()]: 0,\n transformOrigin: {\n top: '',\n right: '0 0',\n bottom: 'center 0',\n left: '100% 0'\n }[this.popperContentContext.placedSide()!],\n transform: {\n top: 'translateY(100%)',\n right: 'translateY(50%) rotate(90deg) translateX(-50%)',\n bottom: `rotate(180deg)`,\n left: 'translateY(50%) rotate(-90deg) translateX(50%)'\n }[this.popperContentContext.placedSide()!],\n visibility: this.popperContentContext.shouldHideArrow() ? 'hidden' : undefined\n };\n });\n\n private onCleanup = effect((onCleanup) => {\n const component = createComponent(RdxArrow, {\n environmentInjector: this.environmentInjector,\n hostElement: this.elementRef.nativeElement,\n projectableNodes: [Array.from(this.elementRef.nativeElement.childNodes)],\n bindings: [inputBinding('width', () => this.width()), inputBinding('height', () => this.height())]\n });\n\n component.changeDetectorRef.detectChanges();\n\n onCleanup(() => component.destroy());\n });\n}\n","import { computed, Directive } from '@angular/core';\nimport { injectPopperContentWrapperContext } from './popper-content-wrapper';\n\n@Directive({\n selector: '[rdxPopperContent]',\n host: {\n '[attr.data-side]': 'popperContentWrapper?.placedSide()',\n '[attr.data-align]': 'popperContentWrapper?.placedAlign()',\n '[style]': 'style()'\n }\n})\nexport class RdxPopperContent {\n /**\n * Optional so the directive can be composed onto a content part that is also used outside Popper\n * positioning (e.g. select's `item-aligned` mode, where there is no `RdxPopperContentWrapper`\n * ancestor). With no wrapper the `data-side` / `data-align` bindings and the animation guard\n * simply no-op.\n */\n protected readonly popperContentWrapper = injectPopperContentWrapperContext(true);\n\n /**\n * if the PopperContent hasn't been placed yet (not all measurements done)\n * we prevent animations so that users's animation don't kick in too early referring wrong sides\n */\n protected readonly style = computed(() => ({\n animation: this.popperContentWrapper && !this.popperContentWrapper.isPositioned() ? 'none' : undefined\n }));\n}\n","import { RdxPopper } from './src/popper';\nimport { RdxPopperAnchor } from './src/popper-anchor';\nimport { RdxPopperArrow } from './src/popper-arrow';\nimport { RdxPopperContent } from './src/popper-content';\nimport { RdxPopperContentWrapper } from './src/popper-content-wrapper';\n\nexport * from './src/popper';\nexport * from './src/popper-anchor';\nexport * from './src/popper-arrow';\nexport * from './src/popper-content';\nexport * from './src/popper-content-wrapper';\nexport * from './src/popper-content.config';\nexport * from './src/utils';\n\nexport const popperImports = [RdxPopper, RdxPopperArrow, RdxPopperContentWrapper, RdxPopperContent, RdxPopper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AAM,aAAa,GAAG,CAAC,SAAS,EAAE,cAAc,EAAE,uBAAuB,EAAE,gBAAgB,EAAE,eAAe;;ACdnH;;AAEG;;;;"}
1
+ {"version":3,"file":"radix-ng-primitives-popper.mjs","sources":["../../../packages/primitives/popper/src/popper-anchor.ts","../../../packages/primitives/popper/src/popper.ts","../../../packages/primitives/popper/src/popper-content.config.ts","../../../packages/primitives/popper/src/utils.ts","../../../packages/primitives/popper/src/popper-content-wrapper.ts","../../../packages/primitives/popper/src/popper-arrow.ts","../../../packages/primitives/popper/src/popper-content.ts","../../../packages/primitives/popper/index.ts","../../../packages/primitives/popper/radix-ng-primitives-popper.ts"],"sourcesContent":["import { Directive, ElementRef, inject } from '@angular/core';\n\n@Directive({\n selector: '[rdxPopperAnchor]'\n})\nexport class RdxPopperAnchor {\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n}\n","import { contentChild, Directive, signal } from '@angular/core';\nimport type { ReferenceElement } from '@floating-ui/dom';\nimport { RdxPopperAnchor } from './popper-anchor';\n\n@Directive({\n selector: '[rdxPopperRoot]'\n})\nexport class RdxPopper {\n readonly anchor = contentChild(RdxPopperAnchor);\n readonly anchorOverride = signal<ReferenceElement | undefined>(undefined);\n}\n","import { InjectionToken, Provider } from '@angular/core';\nimport { Align, OffsetFunction, RdxCollisionAvoidance, Side } from './utils';\n\n/**\n * Default positioning values for `RdxPopperContentWrapper`.\n *\n * Lets a composing primitive (e.g. tooltip) provide its own Base UI-aligned defaults without\n * changing the shared popper defaults that other consumers (e.g. popover) rely on. Any value left\n * `undefined` falls back to the wrapper's built-in default. Consumer template bindings always win.\n */\nexport interface RdxPopperContentConfig {\n side?: Side;\n align?: Align;\n sideOffset?: number | OffsetFunction;\n alignOffset?: number | OffsetFunction;\n arrowPadding?: number;\n /**\n * @deprecated Use {@link collisionAvoidance} instead. Kept for back-compat: `false` disables all\n * collision avoidance (equivalent to `{ side: 'none', align: 'none', fallbackAxisSide: 'none' }`).\n */\n avoidCollisions?: boolean;\n /** Per-primitive collision-avoidance default (Base UI parity). See {@link RdxCollisionAvoidance}. */\n collisionAvoidance?: RdxCollisionAvoidance;\n collisionPadding?: number | Partial<Record<Side, number>>;\n sticky?: 'partial' | 'always';\n hideWhenDetached?: boolean;\n positionStrategy?: 'fixed' | 'absolute';\n updatePositionStrategy?: 'optimized' | 'always';\n}\n\n/**\n * Collision-avoidance preset for dropdown-style popups (Base UI `DROPDOWN_COLLISION_AVOIDANCE`).\n *\n * Dropdowns (select / combobox / autocomplete / menu) strictly prefer their top/bottom placement and\n * cap their height with `var(--available-height)`, so they must **not** fall back to the perpendicular\n * (left/right) axis. `side`/`align` fall back to the wrapper default (`'flip'`).\n */\nexport const DROPDOWN_COLLISION_AVOIDANCE: RdxCollisionAvoidance = { fallbackAxisSide: 'none' };\n\n/**\n * Collision-avoidance preset for regular popups (Base UI `POPUP_COLLISION_AVOIDANCE`).\n *\n * Popovers / tooltips / preview cards aren't height-capped and may freely flip to the perpendicular\n * axis, preferring the logical end side. This equals the wrapper's built-in default; it is exported so\n * popups can state the intent explicitly.\n */\nexport const POPUP_COLLISION_AVOIDANCE: RdxCollisionAvoidance = { fallbackAxisSide: 'end' };\n\nexport const RdxPopperContentConfigToken = new InjectionToken<RdxPopperContentConfig>('RdxPopperContentConfig', {\n factory: () => ({})\n});\n\nexport function provideRdxPopperContentConfig(config: RdxPopperContentConfig): Provider {\n return { provide: RdxPopperContentConfigToken, useValue: config };\n}\n","import type { Middleware, Placement } from '@floating-ui/dom';\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nconst SIDE_OPTIONS = ['top', 'right', 'bottom', 'left'] as const;\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nconst ALIGN_OPTIONS = ['start', 'center', 'end'] as const;\n\nexport type Side = (typeof SIDE_OPTIONS)[number];\nexport type Align = (typeof ALIGN_OPTIONS)[number];\n\n/**\n * How the popper avoids collisions with the boundary edges (Base UI `collisionAvoidance`).\n *\n * - `side` — behavior on the **preferred placement axis** (`top`/`bottom` or `left`/`right`):\n * `'flip'` swaps to the opposite side when it doesn't fit, `'shift'` keeps the side and nudges the\n * popup within the boundary, `'none'` leaves side-axis overflow uncorrected.\n * - `align` — behavior on the **alignment axis** (`start`/`center`/`end`): `'flip'` swaps `start`/`end`,\n * `'shift'` nudges the popup along the alignment axis, `'none'` leaves it uncorrected.\n * - `fallbackAxisSide` — when neither preferred side fits, whether to fall back to the perpendicular\n * axis and which logical side to prefer (`'start'` / `'end'`), or `'none'` to stay on the axis.\n *\n * Any omitted field falls back to the wrapper default (`side: 'flip'`, `align: 'flip'`,\n * `fallbackAxisSide: 'end'`), matching Base UI.\n */\nexport interface RdxCollisionAvoidance {\n side?: 'flip' | 'shift' | 'none';\n align?: 'flip' | 'shift' | 'none';\n fallbackAxisSide?: 'start' | 'end' | 'none';\n}\n\n/** Fully-resolved {@link RdxCollisionAvoidance} — every field present (no wrapper-default fallback left). */\nexport type ResolvedCollisionAvoidance = Required<RdxCollisionAvoidance>;\n\n/**\n * Function form of `sideOffset` / `alignOffset` (Base UI `OffsetFunction`). Receives the resolved\n * placement and the measured anchor / positioner dimensions, and returns the offset in pixels — e.g.\n * `({ anchor }) => anchor.width` to offset by the trigger's own width. `side` is the physical side the\n * popup is placed against.\n */\nexport type OffsetFunction = (data: {\n side: Side;\n align: Align;\n anchor: { width: number; height: number };\n positioner: { width: number; height: number };\n}) => number;\n\nexport function isNotNull<T>(value: T | null): value is T {\n return value !== null;\n}\n\nexport function transformOrigin(options: { arrowWidth: number; arrowHeight: number }): Middleware {\n return {\n name: 'transformOrigin',\n options,\n fn(data) {\n const { placement, rects, middlewareData } = data;\n\n const cannotCenterArrow = middlewareData.arrow?.centerOffset !== 0;\n const isArrowHidden = cannotCenterArrow;\n const arrowWidth = isArrowHidden ? 0 : options.arrowWidth;\n const arrowHeight = isArrowHidden ? 0 : options.arrowHeight;\n\n const [placedSide, placedAlign] = getSideAndAlignFromPlacement(placement);\n const noArrowAlign = { start: '0%', center: '50%', end: '100%' }[placedAlign];\n\n const arrowXCenter = (middlewareData.arrow?.x ?? 0) + arrowWidth / 2;\n const arrowYCenter = (middlewareData.arrow?.y ?? 0) + arrowHeight / 2;\n\n let x = '';\n let y = '';\n\n if (placedSide === 'bottom') {\n x = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;\n y = `${-arrowHeight}px`;\n } else if (placedSide === 'top') {\n x = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;\n y = `${rects.floating.height + arrowHeight}px`;\n } else if (placedSide === 'right') {\n x = `${-arrowHeight}px`;\n y = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;\n } else if (placedSide === 'left') {\n x = `${rects.floating.width + arrowHeight}px`;\n y = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;\n }\n return { data: { x, y } };\n }\n };\n}\n\nexport function getSideAndAlignFromPlacement(placement: Placement) {\n const [side, align = 'center'] = placement.split('-');\n return [side as Side, align as Align] as const;\n}\n","import {\n afterNextRender,\n afterRenderEffect,\n booleanAttribute,\n computed,\n contentChild,\n Directive,\n ElementRef,\n forwardRef,\n inject,\n Injector,\n input,\n linkedSignal,\n numberAttribute,\n output,\n Provider,\n resource,\n Signal,\n signal,\n Type\n} from '@angular/core';\nimport type { ComputePositionReturn, ReferenceElement, VirtualElement } from '@floating-ui/dom';\nimport {\n autoUpdate,\n computePosition,\n flip,\n arrow as floatingUIArrow,\n hide,\n limitShift,\n offset,\n Placement,\n shift,\n size\n} from '@floating-ui/dom';\nimport { BooleanInput, createContext, elementSize, NumberInput, watch } from '@radix-ng/primitives/core';\nimport { RdxPopper } from './popper';\nimport { RdxPopperArrow } from './popper-arrow';\nimport { RdxPopperContentConfigToken } from './popper-content.config';\nimport {\n Align,\n getSideAndAlignFromPlacement,\n isNotNull,\n OffsetFunction,\n RdxCollisionAvoidance,\n ResolvedCollisionAvoidance,\n Side,\n transformOrigin\n} from './utils';\n\n/**\n * `input()` transform for `sideOffset` / `alignOffset`: coerce string/number attribute values to a\n * number but pass an {@link OffsetFunction} through untouched. A **named** module-level function (not\n * an inline arrow) so compodoc parses the file — see CLAUDE.md's compodoc gotcha.\n */\nfunction coerceOffset(value: number | OffsetFunction | string | null | undefined): number | OffsetFunction {\n return typeof value === 'function' ? value : numberAttribute(value);\n}\n\nexport type RdxPopperAnchorElement =\n | Element\n | ElementRef<Element>\n | VirtualElement\n | (() => Element | VirtualElement | null)\n | null\n | undefined;\n\ntype PopperPositionParams = {\n positioningActive: boolean;\n anchor: ReferenceElement | null;\n strategy: 'fixed' | 'absolute';\n placement: Placement;\n side: Side;\n align: Align;\n sideOffset: number | OffsetFunction;\n alignOffset: number | OffsetFunction;\n arrowHeight: number;\n arrowWidth: number;\n collisionAvoidance: ResolvedCollisionAvoidance;\n sticky: 'partial' | 'always';\n detectOverflowOptions: {\n padding: number | Partial<Record<Side, number>>;\n boundary: Element[];\n altBoundary: boolean;\n };\n arrow: RdxPopperArrow | undefined;\n arrowPadding: number;\n hideWhenDetached: boolean;\n};\n\nconst context = () => {\n const popperContentWrapper = inject(RdxPopperContentWrapper);\n\n return {\n placedSide: popperContentWrapper.placedSide,\n placedAlign: popperContentWrapper.placedAlign,\n arrowX: popperContentWrapper.arrowX,\n arrowY: popperContentWrapper.arrowY,\n shouldHideArrow: popperContentWrapper.shouldHideArrow,\n isPositioned: popperContentWrapper.isPositioned,\n anchorHidden: popperContentWrapper.anchorHidden\n };\n};\n\nexport type PopperContentWrapperContext = ReturnType<typeof context>;\n\nexport const [injectPopperContentWrapperContext, providePopperContentWrapperContext] =\n createContext<PopperContentWrapperContext>('PopperContentWrapperContext', 'utils/popper');\n\n@Directive({\n selector: '[rdxPopperContentWrapper]',\n providers: [providePopperContentWrapperContext(context)],\n host: {\n 'data-radix-popper-content-wrapper': '',\n // Placement state, emitted once for every positioner (ADR 0012). The popup\n // (`RdxPopperContent`) keeps its own `data-side`/`data-align` as popup-level styling hooks.\n '[attr.data-side]': 'placedSide()',\n '[attr.data-align]': 'placedAlign()',\n '[attr.data-anchor-hidden]': 'anchorHidden() ? \"\" : undefined',\n '[style]': 'style()'\n }\n})\nexport class RdxPopperContentWrapper {\n private readonly elementRef = inject(ElementRef);\n private readonly injector = inject(Injector);\n\n private readonly context = inject(RdxPopper);\n\n /** Optional positioning defaults provided by a composing primitive (e.g. tooltip). */\n private readonly config = inject(RdxPopperContentConfigToken);\n\n /**\n * An element to position the popup against. Defaults to the popper anchor.\n */\n readonly anchor = input<RdxPopperAnchorElement>();\n\n /**\n * The preferred side of the anchor to render against when open.\n * Will be reversed when collisions occur and avoidCollisions is enabled.\n */\n readonly side = input<Side>(this.config.side ?? 'bottom');\n\n /**\n * Distance between the anchor and the popup in pixels. Also accepts an {@link OffsetFunction} that\n * reads the anchor / positioner dimensions and the resolved side / align.\n */\n readonly sideOffset = input(this.config.sideOffset ?? 0, { transform: coerceOffset });\n\n /**\n * How to align the popup relative to the specified side. May change when collisions occur.\n */\n readonly align = input<Align>(this.config.align ?? 'center');\n\n /**\n * An offset in pixels from the `start` or `end` alignment options. Also accepts an\n * {@link OffsetFunction} (same signature as `sideOffset`).\n */\n readonly alignOffset = input(this.config.alignOffset ?? 0, { transform: coerceOffset });\n\n /**\n * Minimum distance to maintain between the arrow and the edges of the popup.\n * If your content has border-radius, this will prevent it from overflowing the corners.\n */\n readonly arrowPadding = input<number, NumberInput>(this.config.arrowPadding ?? 0, { transform: numberAttribute });\n\n /**\n * When `true`, overrides the `side` and `align` preferences to prevent collisions with boundary edges.\n *\n * @deprecated Use {@link collisionAvoidance} for fine-grained control (Base UI parity). Still honored:\n * `false` disables all avoidance (unless a `collisionAvoidance` object is provided, which wins).\n */\n readonly avoidCollisions = input<boolean, BooleanInput>(this.config.avoidCollisions ?? true, {\n transform: booleanAttribute\n });\n\n /**\n * How the popup avoids colliding with the boundary edges, per axis (Base UI `collisionAvoidance`).\n * Overrides the deprecated `avoidCollisions` and any per-primitive preset. An object here **fully\n * replaces** the preset — omitted fields fall back to `side: 'flip'`, `align: 'flip'`,\n * `fallbackAxisSide: 'end'`, never to the preset. See {@link RdxCollisionAvoidance}.\n */\n readonly collisionAvoidance = input<RdxCollisionAvoidance | undefined>(undefined);\n\n /**\n * Collision avoidance resolved against the deprecated `avoidCollisions` flag, the per-primitive\n * config preset, and the wrapper defaults. Precedence: an explicit `collisionAvoidance` input →\n * a legacy `avoidCollisions=false` (disables everything) → the config preset → the Base UI defaults.\n */\n private readonly effectiveCollisionAvoidance = computed<ResolvedCollisionAvoidance>(() => {\n const explicit = this.collisionAvoidance();\n\n // Legacy escape hatch (deprecated): `avoidCollisions=false` disables avoidance entirely — unless\n // the consumer passes an explicit `collisionAvoidance` object, which always wins. Checked before\n // the preset so `[avoidCollisions]=\"false\"` still works on a positioner that ships a preset.\n if (!explicit && this.avoidCollisions() === false) {\n return { side: 'none', align: 'none', fallbackAxisSide: 'none' };\n }\n\n // A consumer object fully REPLACES the preset (Base UI parity — the preset is only the default\n // when the consumer passes nothing); omitted fields fall back to the global defaults, not the\n // preset. `??` (not spread-merge) is what enforces the \"replaces, not merges\" semantics.\n const source = explicit ?? this.config.collisionAvoidance;\n\n return {\n side: source?.side ?? 'flip',\n align: source?.align ?? 'flip',\n fallbackAxisSide: source?.fallbackAxisSide ?? 'end'\n };\n });\n\n /**\n * The element used as the collision boundary.\n * By default this is the viewport, though you can provide additional element(s) to be included in this check.\n */\n readonly collisionBoundary = input<ElementRef<HTMLElement> | ElementRef<HTMLElement>[]>();\n /**\n * The distance in pixels from the boundary edges where collision detection should occur.\n * Accepts a number (same for all sides), or a partial padding object, for example: `{ top: 20, left: 20 }`.\n */\n readonly collisionPadding = input<number | Partial<Record<Side, number>>>(this.config.collisionPadding ?? 0);\n\n /**\n * The sticky behavior on the align axis. `partial` will keep the\n * content in the boundary as long as the trigger is at least partially\n * in the boundary whilst \"always\" will keep the content in the boundary\n * regardless.\n */\n readonly sticky = input<'partial' | 'always'>(this.config.sticky ?? 'partial');\n\n /**\n * Whether to hide the content when the trigger becomes fully occluded.\n */\n readonly hideWhenDetached = input<boolean, BooleanInput>(this.config.hideWhenDetached ?? false, {\n transform: booleanAttribute\n });\n\n /**\n * The type of CSS position property to use.\n */\n readonly positionStrategy = input<'fixed' | 'absolute'>(this.config.positionStrategy ?? 'fixed');\n\n /**\n * Strategy to update the position of the floating element on every animation frame.\n */\n readonly updatePositionStrategy = input<'optimized' | 'always'>(this.config.updatePositionStrategy ?? 'optimized');\n\n /**\n * Emits when the element is placed.\n */\n readonly placed = output<void>();\n\n readonly arrow = contentChild(forwardRef(() => RdxPopperArrow));\n\n /**\n * When `true`, the content is rendered click/hover-through (`pointer-events: none`). Used for\n * cursor-following content (e.g. a tooltip tracking the pointer) that must never intercept the\n * pointer and steal hover from its trigger.\n */\n readonly nonInteractive = signal(false);\n\n readonly shouldHideArrow = computed(() => this.position.value()?.middlewareData['arrow']?.centerOffset !== 0);\n /** Whether the arrow could not be centered on the anchor because the popup was shifted. */\n readonly arrowUncentered = computed(\n () => (this.position.value()?.middlewareData['arrow']?.centerOffset ?? 0) !== 0\n );\n readonly arrowX = computed(() => this.position.value()?.middlewareData['arrow']?.x);\n readonly arrowY = computed(() => this.position.value()?.middlewareData['arrow']?.y);\n readonly anchorHidden = computed(() => this.position.value()?.middlewareData.hide?.referenceHidden === true);\n\n private readonly desiredPlacement = computed(\n () => (this.side() + (this.align() !== 'center' ? '-' + this.align() : '')) as Placement\n );\n\n private readonly arrowSize = computed(() => {\n const arrowElementRef = this.arrow()?.elementRef;\n\n if (!arrowElementRef) {\n return computed(() => ({\n height: 0,\n width: 0\n }));\n }\n\n return elementSize({\n elementRef: arrowElementRef,\n injector: this.injector\n });\n });\n\n private readonly boundary = computed(() => {\n const boundary = this.collisionBoundary();\n\n if (Array.isArray(boundary)) {\n return boundary.map((e) => e.nativeElement);\n }\n\n if (!boundary) {\n return [];\n }\n\n return [boundary.nativeElement];\n });\n\n private readonly hasExplicitBoundaries = computed(() => this.boundary().length > 0);\n\n private readonly detectOverflowOptions = computed(() => ({\n padding: this.collisionPadding(),\n boundary: this.boundary().filter(isNotNull),\n // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries\n altBoundary: this.hasExplicitBoundaries()\n }));\n\n private readonly resolvedAnchor = computed<ReferenceElement | null>(() => {\n const anchor = this.anchor();\n const resolvedAnchor = typeof anchor === 'function' ? anchor() : anchor;\n\n if (resolvedAnchor instanceof ElementRef) {\n return resolvedAnchor.nativeElement;\n }\n\n if (resolvedAnchor) {\n return resolvedAnchor;\n }\n\n return this.context.anchorOverride() ?? this.context.anchor()?.elementRef.nativeElement ?? null;\n });\n\n private readonly position = resource<ComputePositionReturn | null, PopperPositionParams>({\n params: () => this.positionParams(),\n loader: ({ params }) => {\n // Skip computing a position for a paused (closed keep-mounted) positioner.\n if (!params.positioningActive || !params.anchor) {\n return Promise.resolve(null);\n }\n\n const ca = params.collisionAvoidance;\n // Ported from Base UI `useAnchorPositioning`: `side`/`align`/`fallbackAxisSide` select and\n // configure the `flip()` / `shift()` middleware instead of the old boolean toggle.\n const shiftDisabled = ca.align === 'none' && ca.side !== 'shift';\n const crossAxisShiftEnabled = !shiftDisabled && (params.sticky === 'always' || ca.side === 'shift');\n\n const flipMiddleware =\n ca.side === 'none'\n ? undefined\n : flip({\n ...params.detectOverflowOptions,\n mainAxis: ca.side === 'flip',\n crossAxis: ca.align === 'flip' ? 'alignment' : false,\n fallbackAxisSideDirection: ca.fallbackAxisSide\n });\n\n const shiftMiddleware = shiftDisabled\n ? undefined\n : shift({\n ...params.detectOverflowOptions,\n mainAxis: ca.align !== 'none',\n crossAxis: crossAxisShiftEnabled,\n // `partial` keeps the popup attached to the anchor (limitShift); `always` keeps it\n // fully inside the boundary regardless (no limiter).\n limiter: params.sticky === 'partial' ? limitShift() : undefined\n });\n\n // https://floating-ui.com/docs/flip#combining-with-shift — run shift first when shifting is\n // the primary correction (or for center alignment), otherwise flip first.\n const collisionMiddleware =\n ca.side === 'shift' || ca.align === 'shift' || params.align === 'center'\n ? [shiftMiddleware, flipMiddleware]\n : [flipMiddleware, shiftMiddleware];\n\n return computePosition(params.anchor, this.elementRef.nativeElement, {\n // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues\n strategy: params.strategy,\n placement: params.placement,\n middleware: [\n offset((state) => {\n const [placedSide, placedAlign] = getSideAndAlignFromPlacement(state.placement);\n const data = {\n side: placedSide,\n align: placedAlign,\n anchor: {\n width: state.rects.reference.width,\n height: state.rects.reference.height\n },\n positioner: {\n width: state.rects.floating.width,\n height: state.rects.floating.height\n }\n };\n const sideAxis =\n typeof params.sideOffset === 'function' ? params.sideOffset(data) : params.sideOffset;\n const alignAxis =\n typeof params.alignOffset === 'function' ? params.alignOffset(data) : params.alignOffset;\n\n return {\n mainAxis: sideAxis + params.arrowHeight || 0,\n // both axes so `alignOffset` also applies to center-aligned popups\n // (`alignmentAxis` overrides `crossAxis` for start/end placements)\n crossAxis: alignAxis,\n alignmentAxis: alignAxis\n };\n }),\n ...collisionMiddleware,\n size({\n ...params.detectOverflowOptions,\n apply: ({ elements, rects, availableWidth, availableHeight }) => {\n const { width: anchorWidth, height: anchorHeight } = rects.reference;\n const contentStyle = elements.floating.style;\n contentStyle.setProperty('--radix-popper-available-width', `${availableWidth}px`);\n contentStyle.setProperty('--radix-popper-available-height', `${availableHeight}px`);\n contentStyle.setProperty('--radix-popper-anchor-width', `${anchorWidth}px`);\n contentStyle.setProperty('--radix-popper-anchor-height', `${anchorHeight}px`);\n }\n }),\n params.arrow &&\n floatingUIArrow({\n element: params.arrow.elementRef.nativeElement,\n padding: params.arrowPadding\n }),\n transformOrigin({\n arrowWidth: params.arrowWidth,\n arrowHeight: params.arrowHeight\n }),\n params.hideWhenDetached &&\n hide({\n strategy: 'referenceHidden',\n ...params.detectOverflowOptions\n })\n ]\n });\n }\n });\n\n private positionParams(): PopperPositionParams {\n return {\n positioningActive: this.positioningActive(),\n anchor: this.resolvedAnchor(),\n strategy: this.positionStrategy(),\n placement: this.desiredPlacement(),\n side: this.side(),\n align: this.align(),\n sideOffset: this.sideOffset(),\n alignOffset: this.alignOffset(),\n arrowHeight: this.arrowSize()().height,\n arrowWidth: this.arrowSize()().width,\n collisionAvoidance: this.effectiveCollisionAvoidance(),\n sticky: this.sticky(),\n detectOverflowOptions: this.detectOverflowOptions(),\n arrow: this.arrow(),\n arrowPadding: this.arrowPadding(),\n hideWhenDetached: this.hideWhenDetached()\n };\n }\n\n /**\n * The last successfully computed position, retained while a new one is being computed.\n *\n * The `position` resource resets `value()` to `undefined` whenever its params change (e.g. on\n * every pointer move while a tooltip tracks the cursor). Reading it directly would blank the\n * popup (`visibility: hidden` + off-screen transform) for the frames between a move and the next\n * resolved position — a visible flicker at high pointer-move rates. Holding the previous value\n * keeps the popup placed and visible until the new position is ready.\n */\n private readonly resolvedPosition = linkedSignal<\n ComputePositionReturn | undefined,\n ComputePositionReturn | undefined\n >({\n source: () => this.position.value() ?? undefined,\n computation: (value, previous) => value ?? previous?.value\n });\n\n /**\n * Whether the panel is positioned.\n */\n readonly isPositioned = computed(() => !!this.position.value());\n\n /**\n * The current placement of the panel.\n */\n readonly placement = computed(() => {\n const placement = this.position.value()?.placement;\n\n if (!placement) {\n return;\n }\n\n const [side, align = 'center'] = placement.split('-');\n\n return {\n side: side as Side,\n align: align as Align\n };\n });\n\n /**\n * The side the panel is currently placed against.\n */\n readonly placedSide = computed(() => this.placement()?.side);\n\n /**\n * The current alignment of the panel.\n */\n readonly placedAlign = computed(() => this.placement()?.align);\n\n protected readonly style = computed(() => {\n const pos = this.resolvedPosition();\n const x = pos?.x;\n const y = pos?.y;\n\n const ready = Number.isFinite(x) && Number.isFinite(y);\n\n return {\n position: this.positionStrategy(),\n transform: ready ? '' : 'translate(0, -200%)', // keep off the page when measuring\n minWidth: 'max-content',\n // ADR 0012 §3: z-index belongs on the positioner (set it via a class/style on the\n // positioner element), Base UI-aligned. The wrapper no longer copies the popup's computed\n // z-index, so a positioner no longer requires an inner `RdxPopperContent` to exist.\n top: Number.isFinite(y) ? `${y}px` : '',\n left: Number.isFinite(x) ? `${x}px` : '',\n '--radix-popper-transform-origin': [\n pos?.middlewareData['transformOrigin']?.x,\n pos?.middlewareData['transformOrigin']?.y\n ].join(' '),\n '--radix-popper-content-wrapper-width': `${this.elementRef.nativeElement.offsetWidth}px`,\n '--radix-popper-content-wrapper-height': `${this.elementRef.nativeElement.offsetHeight}px`,\n\n // Unified Base UI-style variables (ADR 0012), emitted once for every positioner so\n // consumers learn a single dialect. They alias the engine-level `--radix-popper-*` values\n // (the `--anchor-*`/`--available-*` ones are set imperatively by the `size` middleware).\n '--anchor-width': 'var(--radix-popper-anchor-width)',\n '--anchor-height': 'var(--radix-popper-anchor-height)',\n '--available-width': 'var(--radix-popper-available-width)',\n '--available-height': 'var(--radix-popper-available-height)',\n '--positioner-width': 'var(--radix-popper-content-wrapper-width)',\n '--positioner-height': 'var(--radix-popper-content-wrapper-height)',\n '--transform-origin': 'var(--radix-popper-transform-origin)',\n\n visibility: ready ? 'visible' : 'hidden',\n pointerEvents: this.nonInteractive() || !ready ? 'none' : 'auto',\n\n // hide the content if using the hide middleware and should be hidden\n // set visibility to hidden and disable pointer events so the UI behaves\n // as if the PopperContent isn't there at all\n ...(pos?.middlewareData.hide?.referenceHidden && {\n visibility: 'hidden',\n pointerEvents: 'none'\n })\n };\n });\n\n /**\n * Whether the positioner should actively track its anchor (recompute + `autoUpdate`). Defaults to\n * always-on — the historical behavior, correct for a positioner that unmounts when its layer closes.\n * A positioner that can stay mounted while closed (`keepMounted`) **overrides** this with its\n * open/presence signal so a closed, hidden positioner doesn't spin an endless `autoUpdate`\n * `requestAnimationFrame` loop (only relevant when `updatePositionStrategy: 'always'`). It's a\n * reassignable field (not `readonly`) because the render effect below reads it lazily, after the\n * subclass constructor has swapped it in.\n */\n protected positioningActive: Signal<boolean> = computed(() => true);\n\n private readonly afterRenderEffect = afterRenderEffect((onCleanup) => {\n // Closed keep-mounted positioner: skip positioning entirely so `autoUpdate` doesn't keep firing.\n if (!this.positioningActive()) {\n return;\n }\n\n this.position.reload();\n\n const anchor = this.resolvedAnchor();\n if (!anchor) {\n return;\n }\n\n const cleanup = autoUpdate(anchor, this.elementRef.nativeElement, () => this.position.reload(), {\n animationFrame: this.updatePositionStrategy() === 'always'\n });\n\n onCleanup(cleanup);\n });\n\n constructor() {\n watch([this.isPositioned], ([isPositioned]) => {\n if (!isPositioned) {\n return;\n }\n\n afterNextRender(\n () => {\n this.placed.emit();\n },\n { injector: this.injector }\n );\n });\n }\n}\n\n/**\n * Providers a \"thin\" positioner that `extends RdxPopperContentWrapper` must include. Angular\n * inherits a base directive's inputs/outputs/host bindings/queries but **not** its `providers`, so\n * the `useExisting` alias (lets the popup and arrow resolve the subclass through the\n * {@link RdxPopperContentWrapper} token) and the wrapper context provider (what\n * `injectPopperContentWrapperContext()` reads) are re-declared here in one place.\n *\n * Combine with {@link provideRdxPopperContentConfig} for per-primitive positioning defaults:\n *\n * ```ts\n * providers: [\n * ...provideRdxPopperContentWrapper(RdxComboboxPositioner),\n * provideRdxPopperContentConfig({ sideOffset: 4, align: 'start' })\n * ]\n * ```\n */\nexport function provideRdxPopperContentWrapper(positioner: Type<RdxPopperContentWrapper>): Provider[] {\n return [{ provide: RdxPopperContentWrapper, useExisting: positioner }, providePopperContentWrapperContext(context)];\n}\n\n/**\n * Deprecated per-primitive aliases of the unified popper variables (ADR 0012). Since the wrapper now\n * emits the unified `--anchor-*` / `--available-*` / `--transform-origin` set itself, a positioner no\n * longer hand-writes a re-namespacing `[style]` map; it spreads this helper into a host `[style]`\n * binding only to keep the legacy `--radix-<name>-content-*` / `--radix-<name>-trigger-*` names alive\n * for one release of consumer back-compat. Migrate to the unified set; these are removed next minor.\n *\n * @deprecated Use the unified `--anchor-*` / `--available-*` / `--transform-origin` variables.\n */\nexport function legacyPopperVars(name: string): Record<string, string> {\n return {\n [`--radix-${name}-content-transform-origin`]: 'var(--radix-popper-transform-origin)',\n [`--radix-${name}-content-available-width`]: 'var(--radix-popper-available-width)',\n [`--radix-${name}-content-available-height`]: 'var(--radix-popper-available-height)',\n [`--radix-${name}-trigger-width`]: 'var(--radix-popper-anchor-width)',\n [`--radix-${name}-trigger-height`]: 'var(--radix-popper-anchor-height)'\n };\n}\n","import {\n computed,\n createComponent,\n Directive,\n effect,\n ElementRef,\n EnvironmentInjector,\n inject,\n input,\n inputBinding,\n numberAttribute\n} from '@angular/core';\nimport { RdxArrow } from '@radix-ng/primitives/arrow';\nimport { injectPopperContentWrapperContext } from './popper-content-wrapper';\nimport { Side } from './utils';\n\nconst OPPOSITE_SIDE: Record<Side, Side> = {\n top: 'bottom',\n right: 'left',\n bottom: 'top',\n left: 'right'\n};\n\n@Directive({\n selector: '[rdxPopperArrow]',\n host: {\n // The arrow is purely decorative — keep it out of the accessibility tree (Base UI does the same).\n 'aria-hidden': 'true',\n '[style]': 'style()'\n }\n})\nexport class RdxPopperArrow {\n private readonly popperContentContext = injectPopperContentWrapperContext();\n\n private readonly environmentInjector = inject(EnvironmentInjector);\n\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly width = input(10, { transform: numberAttribute });\n\n readonly height = input(5, { transform: numberAttribute });\n\n baseSide = computed(() => OPPOSITE_SIDE[this.popperContentContext.placedSide()!]);\n\n protected readonly style = computed(() => {\n return {\n position: 'absolute',\n left: this.popperContentContext.arrowX() ? `${this.popperContentContext.arrowX()}px` : undefined,\n top: this.popperContentContext.arrowY() ? `${this.popperContentContext.arrowY()}px` : undefined,\n [this.baseSide()]: 0,\n transformOrigin: {\n top: '',\n right: '0 0',\n bottom: 'center 0',\n left: '100% 0'\n }[this.popperContentContext.placedSide()!],\n transform: {\n top: 'translateY(100%)',\n right: 'translateY(50%) rotate(90deg) translateX(-50%)',\n bottom: `rotate(180deg)`,\n left: 'translateY(50%) rotate(-90deg) translateX(50%)'\n }[this.popperContentContext.placedSide()!],\n visibility: this.popperContentContext.shouldHideArrow() ? 'hidden' : undefined\n };\n });\n\n private onCleanup = effect((onCleanup) => {\n const component = createComponent(RdxArrow, {\n environmentInjector: this.environmentInjector,\n hostElement: this.elementRef.nativeElement,\n projectableNodes: [Array.from(this.elementRef.nativeElement.childNodes)],\n bindings: [inputBinding('width', () => this.width()), inputBinding('height', () => this.height())]\n });\n\n component.changeDetectorRef.detectChanges();\n\n onCleanup(() => component.destroy());\n });\n}\n","import { computed, Directive } from '@angular/core';\nimport { injectPopperContentWrapperContext } from './popper-content-wrapper';\n\n@Directive({\n selector: '[rdxPopperContent]',\n host: {\n '[attr.data-side]': 'popperContentWrapper?.placedSide()',\n '[attr.data-align]': 'popperContentWrapper?.placedAlign()',\n '[style]': 'style()'\n }\n})\nexport class RdxPopperContent {\n /**\n * Optional so the directive can be composed onto a content part that is also used outside Popper\n * positioning (e.g. select's `item-aligned` mode, where there is no `RdxPopperContentWrapper`\n * ancestor). With no wrapper the `data-side` / `data-align` bindings and the animation guard\n * simply no-op.\n */\n protected readonly popperContentWrapper = injectPopperContentWrapperContext(true);\n\n /**\n * if the PopperContent hasn't been placed yet (not all measurements done)\n * we prevent animations so that users's animation don't kick in too early referring wrong sides\n */\n protected readonly style = computed(() => ({\n animation: this.popperContentWrapper && !this.popperContentWrapper.isPositioned() ? 'none' : undefined\n }));\n}\n","import { RdxPopper } from './src/popper';\nimport { RdxPopperAnchor } from './src/popper-anchor';\nimport { RdxPopperArrow } from './src/popper-arrow';\nimport { RdxPopperContent } from './src/popper-content';\nimport { RdxPopperContentWrapper } from './src/popper-content-wrapper';\n\nexport * from './src/popper';\nexport * from './src/popper-anchor';\nexport * from './src/popper-arrow';\nexport * from './src/popper-content';\nexport * from './src/popper-content-wrapper';\nexport * from './src/popper-content.config';\nexport * from './src/utils';\n\nexport const popperImports = [RdxPopper, RdxPopperArrow, RdxPopperContentWrapper, RdxPopperContent, RdxPopperAnchor];\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["floatingUIArrow"],"mappings":";;;;;;MAKa,eAAe,CAAA;AAH5B,IAAA,WAA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