@plexui/vue 0.28.0 → 0.29.1
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/dist/es/components/Dialog/Dialog.js +178 -5
- package/dist/es/components/Dialog/Dialog.js.map +1 -1
- package/dist/es/components/Dialog/index.js.map +1 -1
- package/dist/es/components/Field/Field.js +2 -0
- package/dist/es/components/Field/Field.js.map +1 -1
- package/dist/es/components/FileUpload/FileUpload.js +13 -3
- package/dist/es/components/FileUpload/FileUpload.js.map +1 -1
- package/dist/es/components/Icon/index.js +2 -0
- package/dist/es/components/Icon/index.js.map +1 -1
- package/dist/es/components/Icon/svg/ZoomIn.js +12 -0
- package/dist/es/components/Icon/svg/ZoomIn.js.map +1 -0
- package/dist/es/components/Icon/svg/ZoomOut.js +11 -0
- package/dist/es/components/Icon/svg/ZoomOut.js.map +1 -0
- package/dist/es/components/Popover/Popover.js +41 -0
- package/dist/es/components/Popover/Popover.js.map +1 -1
- package/dist/es/components/Popover/index.js +1 -1
- package/dist/es/components/Popover/index.js.map +1 -1
- package/dist/es/components/Slider/Slider.js +17 -2
- package/dist/es/components/Slider/Slider.js.map +1 -1
- package/dist/es/components/Sortable/Sortable.js +6 -0
- package/dist/es/components/Sortable/Sortable.js.map +1 -1
- package/dist/es/components/Sortable/index.js.map +1 -1
- package/dist/es/components/Tabs/Tabs.js +1 -0
- package/dist/es/components/Tabs/Tabs.js.map +1 -1
- package/dist/es/lib/sortable.js +16 -4
- package/dist/es/lib/sortable.js.map +1 -1
- package/dist/types/components/Dialog/Dialog.d.ts +33 -1
- package/dist/types/components/Dialog/index.d.ts +1 -1
- package/dist/types/components/Field/Field.d.ts +4 -1
- package/dist/types/components/FileUpload/FileUpload.d.ts +42 -0
- package/dist/types/components/Icon/index.d.ts +2 -0
- package/dist/types/components/Icon/svg/ZoomIn.d.ts +3 -0
- package/dist/types/components/Icon/svg/ZoomOut.d.ts +3 -0
- package/dist/types/components/Popover/Popover.d.ts +30 -0
- package/dist/types/components/Popover/index.d.ts +1 -1
- package/dist/types/components/Sortable/Sortable.d.ts +24 -2
- package/dist/types/components/Sortable/index.d.ts +1 -1
- package/dist/types/lib/sortable.d.ts +3 -0
- package/package.json +2 -2
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// Generated by scripts/build-vue-icons.mjs from packages/ui/src/components/Icon/svg/ZoomOut.tsx. Do not edit.
|
|
2
|
+
import { h } from "vue";
|
|
3
|
+
const ZoomOut = (props) => h("svg", { width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true", ...props }, [
|
|
4
|
+
h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M10.875 4.5C7.35418 4.5 4.5 7.35418 4.5 10.875C4.5 14.3958 7.35418 17.25 10.875 17.25C14.3958 17.25 17.25 14.3958 17.25 10.875C17.25 7.35418 14.3958 4.5 10.875 4.5ZM2.5 10.875C2.5 6.24962 6.24962 2.5 10.875 2.5C15.5004 2.5 19.25 6.24962 19.25 10.875C19.25 12.8273 18.582 14.6236 17.462 16.0478L21.2071 19.7929C21.5976 20.1834 21.5976 20.8166 21.2071 21.2071C20.8166 21.5976 20.1834 21.5976 19.7929 21.2071L16.0478 17.462C14.6236 18.582 12.8273 19.25 10.875 19.25C6.24962 19.25 2.5 15.5004 2.5 10.875Z", fill: "currentColor" }),
|
|
5
|
+
h("path", { d: "M8.375 9.875H13.375C13.9273 9.875 14.375 10.3227 14.375 10.875C14.375 11.4273 13.9273 11.875 13.375 11.875H8.375C7.82272 11.875 7.375 11.4273 7.375 10.875C7.375 10.3227 7.82272 9.875 8.375 9.875Z", fill: "currentColor" }),
|
|
6
|
+
]);
|
|
7
|
+
ZoomOut.displayName = "ZoomOut";
|
|
8
|
+
// Every attribute goes through `props` above, overriding the defaults
|
|
9
|
+
ZoomOut.inheritAttrs = false;
|
|
10
|
+
export default ZoomOut;
|
|
11
|
+
//# sourceMappingURL=ZoomOut.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ZoomOut.js","sourceRoot":"","sources":["../../../../../src/components/Icon/svg/ZoomOut.ts"],"names":[],"mappings":"AAAA,8GAA8G;AAC9G,OAAO,EAAE,CAAC,EAAgD,MAAM,KAAK,CAAA;AAErE,MAAM,OAAO,GAAuC,CAAC,KAAK,EAAE,EAAE,CAC5D,CAAC,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,EAAE,GAAG,KAAK,EAAE,EAAE;IACrH,CAAC,CAAC,MAAM,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC,EAAE,sfAAsf,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC;IAC9kB,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE,qMAAqM,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC;CAC9O,CAAC,CAAA;AACJ,OAAO,CAAC,WAAW,GAAG,SAAS,CAAA;AAC/B,sEAAsE;AACtE,OAAO,CAAC,YAAY,GAAG,KAAK,CAAA;AAC5B,eAAe,OAAO,CAAA","sourcesContent":["// Generated by scripts/build-vue-icons.mjs from packages/ui/src/components/Icon/svg/ZoomOut.tsx. Do not edit.\nimport { h, type FunctionalComponent, type SVGAttributes } from \"vue\"\n\nconst ZoomOut: FunctionalComponent<SVGAttributes> = (props) =>\n h(\"svg\", { width: \"1em\", height: \"1em\", viewBox: \"0 0 24 24\", fill: \"currentColor\", \"aria-hidden\": \"true\", ...props }, [\n h(\"path\", { \"fill-rule\": \"evenodd\", \"clip-rule\": \"evenodd\", d: \"M10.875 4.5C7.35418 4.5 4.5 7.35418 4.5 10.875C4.5 14.3958 7.35418 17.25 10.875 17.25C14.3958 17.25 17.25 14.3958 17.25 10.875C17.25 7.35418 14.3958 4.5 10.875 4.5ZM2.5 10.875C2.5 6.24962 6.24962 2.5 10.875 2.5C15.5004 2.5 19.25 6.24962 19.25 10.875C19.25 12.8273 18.582 14.6236 17.462 16.0478L21.2071 19.7929C21.5976 20.1834 21.5976 20.8166 21.2071 21.2071C20.8166 21.5976 20.1834 21.5976 19.7929 21.2071L16.0478 17.462C14.6236 18.582 12.8273 19.25 10.875 19.25C6.24962 19.25 2.5 15.5004 2.5 10.875Z\", fill: \"currentColor\" }),\n h(\"path\", { d: \"M8.375 9.875H13.375C13.9273 9.875 14.375 10.3227 14.375 10.875C14.375 11.4273 13.9273 11.875 13.375 11.875H8.375C7.82272 11.875 7.375 11.4273 7.375 10.875C7.375 10.3227 7.82272 9.875 8.375 9.875Z\", fill: \"currentColor\" }),\n ])\nZoomOut.displayName = \"ZoomOut\"\n// Every attribute goes through `props` above, overriding the defaults\nZoomOut.inheritAttrs = false\nexport default ZoomOut\n"]}
|
|
@@ -207,6 +207,10 @@ const contentProps = {
|
|
|
207
207
|
alignOffset: Number,
|
|
208
208
|
/** Translucent popover surface. @default false */
|
|
209
209
|
translucent: { type: Boolean, default: undefined },
|
|
210
|
+
/** Stack order of the popover, for one over a layer above 50, such as a dialog with its own `zIndex`. @default 50 */
|
|
211
|
+
zIndex: Number,
|
|
212
|
+
/** The id of the element that names the popover, such as the question of a confirmation */
|
|
213
|
+
ariaLabelledby: String,
|
|
210
214
|
/** Moves focus into the popover when it opens. @default true */
|
|
211
215
|
autoFocus: { type: Boolean, default: true },
|
|
212
216
|
};
|
|
@@ -223,7 +227,12 @@ const PopoverContentElement = markRaw(defineComponent({
|
|
|
223
227
|
return () => {
|
|
224
228
|
const { style, ...rest } = attrs;
|
|
225
229
|
delete rest.dir;
|
|
230
|
+
// Reka names the content by its trigger, which Radix does not; a name the owner gives comes back
|
|
226
231
|
delete rest["aria-labelledby"];
|
|
232
|
+
const labelledBy = rest["data-plex-labelledby"];
|
|
233
|
+
delete rest["data-plex-labelledby"];
|
|
234
|
+
if (labelledBy)
|
|
235
|
+
rest["aria-labelledby"] = labelledBy;
|
|
227
236
|
delete rest.forceMount;
|
|
228
237
|
return h("div", { ...rest, style: withRadixVariableNames(style, "popover"), ref: setContentRef }, slots.default?.());
|
|
229
238
|
};
|
|
@@ -303,7 +312,9 @@ const PopoverContentImpl = defineComponent({
|
|
|
303
312
|
"popover-width": props.width,
|
|
304
313
|
"popover-min-width": props.minWidth,
|
|
305
314
|
"popover-max-width": props.maxWidth,
|
|
315
|
+
"popover-z-index": props.zIndex === undefined ? undefined : String(props.zIndex),
|
|
306
316
|
}),
|
|
317
|
+
"data-plex-labelledby": props.ariaLabelledby,
|
|
307
318
|
"onCloseAutoFocus": handleCloseAutoFocus,
|
|
308
319
|
"onPointerDownOutside": outsidePress.onPointerDownOutside,
|
|
309
320
|
"onFocusOutside": outsidePress.onFocusOutside,
|
|
@@ -443,11 +454,41 @@ export const PopoverContent = defineComponent({
|
|
|
443
454
|
});
|
|
444
455
|
},
|
|
445
456
|
});
|
|
457
|
+
/**
|
|
458
|
+
* Anchors the popover to an element that is not its trigger, such as a bar button that keeps its own action: the
|
|
459
|
+
* popover stands at it, a press on it is not outside, and focus returns to it on close. Open the popover with `open`.
|
|
460
|
+
*/
|
|
461
|
+
export const PopoverAnchor = defineComponent({
|
|
462
|
+
name: "PopoverAnchor",
|
|
463
|
+
props: {
|
|
464
|
+
/** The element the popover stands at */
|
|
465
|
+
element: { type: Object, default: null },
|
|
466
|
+
},
|
|
467
|
+
setup(props) {
|
|
468
|
+
const { triggerRef } = usePopoverContext();
|
|
469
|
+
// Reka returns focus to its trigger element and leaves a press on it alone: the anchor takes that place too
|
|
470
|
+
const rootContext = injectPopoverRootContext();
|
|
471
|
+
watch(() => props.element, (element, _previous, onCleanup) => {
|
|
472
|
+
if (!element)
|
|
473
|
+
return;
|
|
474
|
+
triggerRef.value = element;
|
|
475
|
+
rootContext.triggerElement.value = element;
|
|
476
|
+
onCleanup(() => {
|
|
477
|
+
if (triggerRef.value === element)
|
|
478
|
+
triggerRef.value = null;
|
|
479
|
+
if (rootContext.triggerElement.value === element)
|
|
480
|
+
rootContext.triggerElement.value = undefined;
|
|
481
|
+
});
|
|
482
|
+
}, { immediate: true });
|
|
483
|
+
return () => (props.element ? h(RekaPopoverAnchor, { reference: props.element, asChild: true }) : null);
|
|
484
|
+
},
|
|
485
|
+
});
|
|
446
486
|
/** Popover root. Uncontrolled by default; bind `v-model:open` to control it. */
|
|
447
487
|
// Typed explicitly so the published declaration refers to the parts instead of
|
|
448
488
|
// expanding them (an expanded component type fails consumers' type checks)
|
|
449
489
|
export const Popover = Object.assign(PopoverComponent, {
|
|
450
490
|
Trigger: PopoverTrigger,
|
|
451
491
|
Content: PopoverContent,
|
|
492
|
+
Anchor: PopoverAnchor,
|
|
452
493
|
});
|
|
453
494
|
//# sourceMappingURL=Popover.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Popover.js","sourceRoot":"","sources":["../../../../src/components/Popover/Popover.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,kBAAkB,EAClB,eAAe,EACf,CAAC,EACD,OAAO,EACP,QAAQ,EACR,eAAe,EACf,SAAS,EACT,OAAO,EACP,GAAG,EACH,UAAU,EACV,KAAK,EACL,eAAe,GAGhB,MAAM,KAAK,CAAA;AACZ,OAAO,EACL,aAAa,IAAI,iBAAiB,EAClC,cAAc,IAAI,kBAAkB,EACpC,aAAa,IAAI,iBAAiB,EAClC,WAAW,IAAI,eAAe,EAC9B,wBAAwB,EACxB,gBAAgB,EAChB,KAAK,GACN,MAAM,SAAS,CAAA;AAChB,OAAO,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAA;AACxE,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAC5E,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,cAAc,EAAE,qBAAqB,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC/H,OAAO,EAAE,eAAe,E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AAC,KAAK,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS;gCACpD,GAAI,KAAsB;gCAC1B,GAAG,cAAc,CAAC,KAAK,CAAC;gCACxB,KAAK,EAAE,KAAK,CAAC,KAAK;6BACnB,EACD,KAAK,CACN;4BACH,CAAC,CAAC,kBAAkB,EAAE;qBACzB;iBACF,CACF;aACF;SACF,CAAC,CAAA;IACN,CAAC;CACF,CAAC,CAAA;AAEF,gFAAgF;AAChF,+EAA+E;AAC/E,2EAA2E;AAC3E,MAAM,CAAC,MAAM,OAAO,GAGhB,MAAM,CAAC,MAAM,CAAC,gBAAgB,EAAE;IAClC,OAAO,EAAE,cAAc;IACvB,OAAO,EAAE,cAAc;CACxB,CAAC,CAAA","sourcesContent":["import {\n computed,\n createCommentVNode,\n defineComponent,\n h,\n markRaw,\n nextTick,\n onBeforeUnmount,\n onMounted,\n provide,\n ref,\n shallowRef,\n watch,\n watchPostEffect,\n type ExtractPropTypes,\n type PropType,\n} from \"vue\"\nimport {\n PopoverAnchor as RekaPopoverAnchor,\n PopoverContent as RekaPopoverContent,\n PopoverPortal as RekaPopoverPortal,\n PopoverRoot as RekaPopoverRoot,\n injectPopoverRootContext,\n useForwardExpose,\n useId,\n} from \"reka-ui\"\nimport { useEscCloseStack } from \"../../composables/useEscCloseStack.js\"\nimport { provideFieldColumns, provideFieldRow } from \"../../lib/fieldRow.js\"\nimport { dataAttributes, focusableElements, keepMovedFocus, preventDefaultHandler, toCssVariables } from \"../../lib/helpers.js\"\nimport { TransitionGroup } from \"../Transition/index.js\"\nimport { overlayTiming } from \"../Transition/shared.js\"\nimport { withRadixVariableNames } from \"../Tooltip/Tooltip.js\"\nimport { composeEventHandlers, firstElementChild, mergeSlotProps } from \"../Tooltip/slot.js\"\nimport { useDeferredPointerDownOutside } from \"./deferredPointerDownOutside.js\"\nimport { createPointerIntentArea, isPointInPolygon, type Polygon } from \"./pointerIntent.js\"\nimport { PopoverContextKey, usePopoverContext, type PopoverContextValue } from \"./usePopoverContext.js\"\nimport { usePopoverController } from \"./usePopoverController.js\"\nimport { isHoverPointer } from \"../../lib/inputMode.js\"\nimport s from \"@plexui/styles/components/Popover/Popover.module.css\"\n\n// Vue port of packages/ui/src/components/Popover/Popover.tsx on Reka UI.\n// Exports are flat (`PopoverTrigger`, `PopoverContent`) because\n// runtime-compiled templates cannot resolve `Popover.Trigger`; the static\n// properties are kept for render functions and SFCs.\n//\n// Reka keeps positioning, the dismissable layer, the focus scope and focus\n// return. As in Tooltip, the port follows Radix where they differ:\n// - The trigger is Radix's: it runs after the child's handlers and toggles\n// only when none called preventDefault(), carries no `id`, and has\n// `aria-controls` only while open.\n// - The content element is rendered here (Reka's `as`): Radix's custom\n// property names (the shared CSS reads `--radix-popover-content-*`), no\n// `dir`, no `aria-labelledby`.\n// - A press outside closes it on the click that follows, as Radix's\n// deferred outside press does (./deferredPointerDownOutside.ts).\n// - The portal renders once mounted, as Radix's does, so a closed popover\n// server-renders nothing.\n\nexport type PopoverSide = \"top\" | \"right\" | \"bottom\" | \"left\"\nexport type PopoverAlign = \"start\" | \"center\" | \"end\"\n\nconst PopoverComponent = defineComponent({\n name: \"Popover\",\n props: {\n /** Controlled visibility (`v-model:open`); uncontrolled when omitted */\n open: { type: Boolean, default: undefined },\n /** Opens on hover and focus instead of click. @default false */\n showOnHover: { type: Boolean, default: false },\n /** Delay before a hover popover opens, in milliseconds. @default 150 */\n hoverOpenDelay: { type: Number, default: 150 },\n },\n emits: {\n \"update:open\": (nextState: boolean) => typeof nextState === \"boolean\",\n },\n setup(props, { slots, emit }) {\n const open = ref(false)\n const shake = ref(false)\n const triggerRef = shallowRef<HTMLElement | null>(null)\n const contentRef = shallowRef<HTMLElement | null>(null)\n let openTimer: ReturnType<typeof setTimeout> | undefined\n const hoverOpenFocusedWithTab = { current: false }\n const isPointerInTransitRef = { current: false }\n const isOpen = computed(() => props.open ?? open.value)\n\n const temporarilyPreventClickToClose = ref(false)\n watch(temporarilyPreventClickToClose, (prevent, _, onCleanup) => {\n if (!prevent) return\n const id = setTimeout(() => {\n temporarilyPreventClickToClose.value = false\n }, 500)\n onCleanup(() => clearTimeout(id))\n })\n\n const handleOpenChange = (nextState: boolean) => {\n clearTimeout(openTimer)\n\n // No-op if the state is not changing\n if (isOpen.value === nextState) {\n return\n }\n\n if (!nextState) {\n // clear any running shake animation on close\n shake.value = false\n\n // Check for specific hover conditions where focus should be\n // immediately restored to the trigger before closing\n if (props.showOnHover && hoverOpenFocusedWithTab.current) {\n triggerRef.value?.focus()\n }\n\n // Always cleanup this state\n hoverOpenFocusedWithTab.current = false\n }\n\n emit(\"update:open\", nextState)\n open.value = nextState\n\n if (props.showOnHover) {\n temporarilyPreventClickToClose.value = nextState\n }\n }\n\n const handleTriggerEnter = () => {\n openTimer = setTimeout(() => handleOpenChange(true), props.hoverOpenDelay)\n }\n\n const handleTriggerLeave = () => {\n clearTimeout(openTimer)\n }\n\n onBeforeUnmount(() => {\n clearTimeout(openTimer)\n })\n\n const store: PopoverContextValue = {\n open: isOpen,\n setOpen: handleOpenChange,\n shake,\n setShake: (next) => {\n shake.value = next\n },\n showOnHover: computed(() => props.showOnHover),\n temporarilyPreventClickToClose,\n onTriggerEnter: handleTriggerEnter,\n onTriggerLeave: handleTriggerLeave,\n isPointerInTransitRef,\n triggerRef,\n contentRef,\n hoverOpenFocusedWithTab,\n }\n provide(PopoverContextKey, store)\n\n return () =>\n h(\n RekaPopoverRoot,\n { \"open\": isOpen.value, \"onUpdate:open\": handleOpenChange, \"modal\": false },\n { default: () => slots.default?.() },\n )\n },\n})\n\n/**\n * Renders its child (a button, link, ...) as the popover trigger. Like\n * `Popover.Trigger` in React it takes no other props: attributes on it are\n * not passed on.\n */\nexport const PopoverTrigger = defineComponent({\n name: \"PopoverTrigger\",\n inheritAttrs: false,\n emits: {\n pointerdown: (event: PointerEvent) => typeof event.type === \"string\",\n click: (event: MouseEvent) => typeof event.type === \"string\",\n },\n setup(_props, { slots, emit }) {\n const {\n open,\n setOpen,\n showOnHover,\n temporarilyPreventClickToClose,\n onTriggerEnter,\n onTriggerLeave,\n isPointerInTransitRef,\n triggerRef,\n contentRef,\n } = usePopoverContext()\n const rootContext = injectPopoverRootContext()\n rootContext.contentId ||= useId(undefined, \"reka-popover-content\")\n const { forwardRef, currentElement } = useForwardExpose()\n let hasPointerMoveOpened = false\n\n // Focus returns here on close, and pointer-downs on it are not \"outside\".\n // Follows a replaced child element, as Radix's composed ref does\n watchPostEffect(() => {\n triggerRef.value = currentElement.value ?? null\n rootContext.triggerElement.value = currentElement.value\n })\n\n const maybePreventClickClose = (evt: Event) => {\n // Don't prevent temporary close if the trigger is an anchor tag itself\n const isLink = (evt.currentTarget as Element).nodeName.toLocaleLowerCase() === \"a\"\n\n if (!isLink && temporarilyPreventClickToClose.value) {\n // Prevents tooltip listeners from closing\n evt.preventDefault()\n evt.stopPropagation()\n }\n }\n\n const handlePointerMove = (evt: PointerEvent) => {\n if (!isHoverPointer(evt)) {\n return\n }\n\n if (!hasPointerMoveOpened && !isPointerInTransitRef.current) {\n onTriggerEnter()\n hasPointerMoveOpened = true\n }\n }\n\n const handlePointerLeave = () => {\n if (!hasPointerMoveOpened) {\n return\n }\n\n onTriggerLeave()\n hasPointerMoveOpened = false\n }\n\n const handleBlur = () => {\n setTimeout(() => {\n // Ignore this handler if focus has moved into the popover\n if (contentRef.value?.contains(document.activeElement)) {\n return\n }\n\n setOpen(false)\n }, 50)\n }\n\n const onPointerdown = (evt: PointerEvent) => {\n maybePreventClickClose(evt)\n emit(\"pointerdown\", evt)\n }\n\n const onClick = composeEventHandlers(\n (evt: MouseEvent) => {\n maybePreventClickClose(evt)\n emit(\"click\", evt)\n },\n () => rootContext.onOpenToggle(),\n )\n\n return () => {\n const child = firstElementChild(slots.default?.())\n if (!child) return null\n\n const isOpen = open.value\n const hover = showOnHover.value\n // Radix's PopoverTrigger props, then Plex's handlers\n const triggerProps = {\n \"type\": \"button\",\n \"aria-haspopup\": \"dialog\",\n \"aria-expanded\": isOpen,\n \"aria-controls\": isOpen ? rootContext.contentId : undefined,\n \"data-state\": isOpen ? \"open\" : \"closed\",\n onPointerdown,\n onClick,\n \"onPointermove\": hover ? handlePointerMove : undefined,\n \"onPointerleave\": hover ? handlePointerLeave : undefined,\n \"onFocus\": hover ? () => setOpen(true) : undefined,\n \"onBlur\": hover ? handleBlur : undefined,\n }\n\n return h(RekaPopoverAnchor, { asChild: true, ref: forwardRef }, { default: () => mergeSlotProps(child, triggerProps) })\n }\n },\n})\n\nconst contentProps = {\n /** Avoids collisions with the viewport and scroll containers. @default true */\n avoidCollisions: { type: Boolean, default: undefined },\n /** Distance from viewport and scroll container boundaries, in pixels; an object sets it per side, and a side it leaves out gets 0. @default 20 */\n collisionPadding: { type: [Number, Object] as PropType<number | Partial<Record<PopoverSide, number>>>, default: 20 },\n /** `width` of the popover; numbers are pixels. @default \"auto\" */\n width: [Number, String] as PropType<number | \"auto\">,\n /** `min-width` of the popover; numbers are pixels. @default 300 */\n minWidth: [Number, String] as PropType<number | \"auto\">,\n /** `max-width` of the popover, in pixels */\n maxWidth: Number,\n /** Preferred side of the trigger. @default \"bottom\" */\n side: String as PropType<PopoverSide>,\n /** Distance from the trigger, in pixels. @default 8 */\n sideOffset: { type: Number, default: 8 },\n /** Preferred alignment against the trigger. @default \"center\" */\n align: String as PropType<PopoverAlign>,\n /** Offset from the \"start\" or \"end\" alignment, in pixels. @default 0 */\n alignOffset: Number,\n /** Translucent popover surface. @default false */\n translucent: { type: Boolean, default: undefined },\n /** Moves focus into the popover when it opens. @default true */\n autoFocus: { type: Boolean, default: true },\n}\n\ntype ContentProps = ExtractPropTypes<typeof contentProps>\n\n// The element Reka's content renders (`as`). Raw: Reka passes `as` through\n// reactive props, and Vue warns about a component made reactive.\nconst PopoverContentElement = markRaw(defineComponent({\n name: \"PopoverContentElement\",\n inheritAttrs: false,\n setup(_props, { slots, attrs }) {\n const { contentRef } = usePopoverContext()\n const setContentRef = (el: unknown) => {\n contentRef.value = (el as HTMLElement | null) ?? null\n }\n\n return () => {\n const { style, ...rest } = attrs\n delete rest.dir\n delete rest[\"aria-labelledby\"]\n delete rest.forceMount\n return h(\n \"div\",\n { ...rest, style: withRadixVariableNames(style, \"popover\"), ref: setContentRef },\n slots.default?.(),\n )\n }\n },\n}))\n\nconst PopoverContentImpl = defineComponent({\n name: \"PopoverContentImpl\",\n inheritAttrs: false,\n props: contentProps,\n setup(props, { slots, attrs }) {\n const { showOnHover, shake, contentRef, setOpen, triggerRef } = usePopoverContext()\n const controller = usePopoverController()\n\n // Radix's non-modal content: a press on the trigger is left to the\n // trigger, and focus does not return to it after a press outside\n let pressedOutside = false\n const outsidePress = useDeferredPointerDownOutside((originalEvent) => {\n if (triggerRef.value?.contains(originalEvent.target as Node)) return\n pressedOutside = true\n setOpen(false)\n }, () => contentRef.value)\n const handleCloseAutoFocus = (event: Event) => {\n if (showOnHover.value || pressedOutside) event.preventDefault()\n else keepMovedFocus(event)\n }\n\n const handleKeyDown = (evt: KeyboardEvent) => {\n const contentElement = contentRef.value\n\n if (\n // When the current target is our container\n contentElement &&\n evt.target === contentElement &&\n // We know that shift key tabs will lead to closing the popover (because we don't use `modal`)\n evt.key === \"Tab\" &&\n evt.shiftKey\n ) {\n // Prevent that from happening\n evt.preventDefault()\n evt.stopPropagation()\n\n // Move focus to the last focusable element, placing the user in the focus loop\n const focusable = focusableElements(contentElement)\n const lastFocusable = focusable[focusable.length - 1]\n lastFocusable?.focus()\n }\n }\n\n // Important that we send initial focus into the popover, placing it onto the container.\n // This allows focus looping to begin, as well as capturing scoped key presses.\n // We prevent Reka's default behavior of focusing an element, because this can have adverse side-effects.\n // A tick later, as with the Select's list: until Reka's focus scope here has\n // registered, a Dialog around this content sends the focus straight back,\n // and the content takes that for focus moving outside and closes.\n onMounted(() => {\n watch(\n [showOnHover, () => props.autoFocus],\n async () => {\n await nextTick()\n const contentElement = contentRef.value\n\n if (!contentElement || !props.autoFocus) {\n return\n }\n\n // If we're already focused within the content area, no-op.\n // This would be true if some inner component declares autoFocus\n if (contentElement.contains(document.activeElement)) {\n return\n }\n\n // Our focus isn't in the content area - move it there.\n // NOTE: Don't automatically shift focus on hover popovers\n if (!showOnHover.value) {\n contentElement.focus({ preventScroll: true })\n }\n },\n { immediate: true },\n )\n })\n\n return () =>\n h(\n RekaPopoverContent,\n {\n ...dataAttributes(attrs),\n \"forceMount\": true,\n \"as\": PopoverContentElement,\n \"class\": [s.Popover, attrs.class],\n \"style\": toCssVariables({\n \"popover-width\": props.width,\n \"popover-min-width\": props.minWidth,\n \"popover-max-width\": props.maxWidth,\n }),\n \"onCloseAutoFocus\": handleCloseAutoFocus,\n \"onPointerDownOutside\": outsidePress.onPointerDownOutside,\n \"onFocusOutside\": outsidePress.onFocusOutside,\n \"data-animate\": shake.value ? \"shake\" : undefined,\n \"data-translucent\": props.translucent ? \"true\" : undefined,\n \"side\": props.side,\n \"sideOffset\": props.sideOffset,\n \"align\": props.align,\n \"alignOffset\": props.alignOffset ?? (props.align === \"center\" ? 0 : -5),\n \"avoidCollisions\": props.avoidCollisions ?? true,\n \"hideWhenDetached\": true,\n \"collisionPadding\": props.collisionPadding,\n \"onOpenAutoFocus\": preventDefaultHandler,\n // Escape is handled by the Escape stack in PopoverContent\n \"onEscapeKeyDown\": preventDefaultHandler,\n \"onKeydown\": handleKeyDown,\n },\n { default: () => slots.default?.(controller) },\n )\n },\n})\n\nconst PopoverContentHoverable = defineComponent({\n name: \"PopoverContentHoverable\",\n inheritAttrs: false,\n props: contentProps,\n setup(props, { slots, attrs }) {\n const { open, setOpen, triggerRef, contentRef, isPointerInTransitRef, hoverOpenFocusedWithTab } = usePopoverContext()\n const pointerGraceArea = shallowRef<Polygon | null>(null)\n\n const handleRemoveGraceArea = () => {\n pointerGraceArea.value = null\n isPointerInTransitRef.current = false\n }\n\n const handleCreateGraceArea = (event: PointerEvent, hoverTarget: HTMLElement) => {\n if (!isHoverPointer(event)) return\n const graceArea = createPointerIntentArea(event, hoverTarget)\n pointerGraceArea.value = graceArea\n isPointerInTransitRef.current = true\n }\n\n onBeforeUnmount(handleRemoveGraceArea)\n\n let removeLeaveListeners = () => {}\n onMounted(() => {\n const trigger = triggerRef.value\n const content = contentRef.value\n\n if (!trigger || !content) {\n return\n }\n\n const handleTriggerLeave = (event: PointerEvent) => handleCreateGraceArea(event, content)\n const handleContentLeave = (event: PointerEvent) => handleCreateGraceArea(event, trigger)\n\n trigger.addEventListener(\"pointerleave\", handleTriggerLeave)\n content.addEventListener(\"pointerleave\", handleContentLeave)\n removeLeaveListeners = () => {\n trigger.removeEventListener(\"pointerleave\", handleTriggerLeave)\n content.removeEventListener(\"pointerleave\", handleContentLeave)\n }\n })\n onBeforeUnmount(() => removeLeaveListeners())\n\n watch(pointerGraceArea, (graceArea, _, onCleanup) => {\n if (!graceArea) {\n return\n }\n\n const handleTrackPointerGrace = (event: PointerEvent) => {\n if (!isHoverPointer(event)) return\n const trigger = triggerRef.value\n const content = contentRef.value\n const target = event.target as HTMLElement\n const pointerPosition = { x: event.clientX, y: event.clientY }\n const hasEnteredTarget = trigger?.contains(target) || content?.contains(target)\n const isPointerOutsideGraceArea = !isPointInPolygon(pointerPosition, graceArea)\n // Stop considering grace areas when the pointer runs into other control triggers\n const targetHasPopup = target.hasAttribute(\"aria-haspopup\")\n\n if (hasEnteredTarget) {\n handleRemoveGraceArea()\n } else if (isPointerOutsideGraceArea || targetHasPopup) {\n handleRemoveGraceArea()\n setOpen(false)\n }\n }\n document.addEventListener(\"pointermove\", handleTrackPointerGrace)\n onCleanup(() => document.removeEventListener(\"pointermove\", handleTrackPointerGrace))\n })\n\n // Hoverable doesn't place focus in the popover by default.\n // If it is open and Tab is pressed, focus the first focusable element and\n // remember to restore focus to the trigger on close.\n const handleKeyDown = (evt: KeyboardEvent) => {\n // Closed and still leaving: Tab belongs to the page again\n if (!open.value || !contentRef.value) {\n return\n }\n\n // Only assume forward tab is attempting to move into the popup\n if (evt.key === \"Tab\" && !evt.shiftKey) {\n const [firstFocusable] = focusableElements(contentRef.value)\n if (firstFocusable) {\n evt.preventDefault()\n firstFocusable.focus()\n hoverOpenFocusedWithTab.current = true\n document.removeEventListener(\"keydown\", handleKeyDown)\n }\n }\n }\n onMounted(() => document.addEventListener(\"keydown\", handleKeyDown))\n onBeforeUnmount(() => document.removeEventListener(\"keydown\", handleKeyDown))\n\n return () => h(PopoverContentImpl, { ...props, ...dataAttributes(attrs), class: attrs.class }, slots)\n },\n})\n\n/**\n * The floating panel. `class` lands on the panel. The default slot receives\n * `{ close, shake }`, the same functions `usePopoverController()` returns.\n */\nexport const PopoverContent = defineComponent({\n name: \"PopoverContent\",\n inheritAttrs: false,\n props: contentProps,\n setup(props, { slots, attrs }) {\n const { open, showOnHover, setOpen } = usePopoverContext()\n // A popup opened from a Field row is not that row: its own controls keep their usual shape and menus\n provideFieldRow(() => false)\n provideFieldColumns(() => false)\n\n useEscCloseStack(open, () => {\n setOpen(false)\n })\n\n return () =>\n h(RekaPopoverPortal, null, {\n default: () => [\n h(\n TransitionGroup,\n { class: s.Transition, ...overlayTiming, overlay: true },\n {\n default: () => [\n open.value\n ? h(\n showOnHover.value ? PopoverContentHoverable : PopoverContentImpl,\n {\n key: showOnHover.value ? \"popover-hover\" : \"popover\",\n ...(props as ContentProps),\n ...dataAttributes(attrs),\n class: attrs.class,\n },\n slots,\n )\n : createCommentVNode(),\n ],\n },\n ),\n ],\n })\n },\n})\n\n/** Popover root. Uncontrolled by default; bind `v-model:open` to control it. */\n// Typed explicitly so the published declaration refers to the parts instead of\n// expanding them (an expanded component type fails consumers' type checks)\nexport const Popover: typeof PopoverComponent & {\n Trigger: typeof PopoverTrigger\n Content: typeof PopoverContent\n} = Object.assign(PopoverComponent, {\n Trigger: PopoverTrigger,\n Content: PopoverContent,\n})\n\nexport type PopoverProps = InstanceType<typeof PopoverComponent>[\"$props\"]\nexport type PopoverContentProps = InstanceType<typeof PopoverContent>[\"$props\"]\n"]}
|
|
1
|
+
{"version":3,"file":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AAI,CAAC,CAAA;IACzG,CAAC;CACF,CAAC,CAAA;AAEF,gFAAgF;AAChF,+EAA+E;AAC/E,2EAA2E;AAC3E,MAAM,CAAC,MAAM,OAAO,GAIhB,MAAM,CAAC,MAAM,CAAC,gBAAgB,EAAE;IAClC,OAAO,EAAE,cAAc;IACvB,OAAO,EAAE,cAAc;IACvB,MAAM,EAAE,aAAa;CACtB,CAAC,CAAA","sourcesContent":["import {\n computed,\n createCommentVNode,\n defineComponent,\n h,\n markRaw,\n nextTick,\n onBeforeUnmount,\n onMounted,\n provide,\n ref,\n shallowRef,\n watch,\n watchPostEffect,\n type ExtractPropTypes,\n type PropType,\n} from \"vue\"\nimport {\n PopoverAnchor as RekaPopoverAnchor,\n PopoverContent as RekaPopoverContent,\n PopoverPortal as RekaPopoverPortal,\n PopoverRoot as RekaPopoverRoot,\n injectPopoverRootContext,\n useForwardExpose,\n useId,\n} from \"reka-ui\"\nimport { useEscCloseStack } from \"../../composables/useEscCloseStack.js\"\nimport { provideFieldColumns, provideFieldRow } from \"../../lib/fieldRow.js\"\nimport { dataAttributes, focusableElements, keepMovedFocus, preventDefaultHandler, toCssVariables } from \"../../lib/helpers.js\"\nimport { TransitionGroup } from \"../Transition/index.js\"\nimport { overlayTiming } from \"../Transition/shared.js\"\nimport { withRadixVariableNames } from \"../Tooltip/Tooltip.js\"\nimport { composeEventHandlers, firstElementChild, mergeSlotProps } from \"../Tooltip/slot.js\"\nimport { useDeferredPointerDownOutside } from \"./deferredPointerDownOutside.js\"\nimport { createPointerIntentArea, isPointInPolygon, type Polygon } from \"./pointerIntent.js\"\nimport { PopoverContextKey, usePopoverContext, type PopoverContextValue } from \"./usePopoverContext.js\"\nimport { usePopoverController } from \"./usePopoverController.js\"\nimport { isHoverPointer } from \"../../lib/inputMode.js\"\nimport s from \"@plexui/styles/components/Popover/Popover.module.css\"\n\n// Vue port of packages/ui/src/components/Popover/Popover.tsx on Reka UI.\n// Exports are flat (`PopoverTrigger`, `PopoverContent`) because\n// runtime-compiled templates cannot resolve `Popover.Trigger`; the static\n// properties are kept for render functions and SFCs.\n//\n// Reka keeps positioning, the dismissable layer, the focus scope and focus\n// return. As in Tooltip, the port follows Radix where they differ:\n// - The trigger is Radix's: it runs after the child's handlers and toggles\n// only when none called preventDefault(), carries no `id`, and has\n// `aria-controls` only while open.\n// - The content element is rendered here (Reka's `as`): Radix's custom\n// property names (the shared CSS reads `--radix-popover-content-*`), no\n// `dir`, no `aria-labelledby`.\n// - A press outside closes it on the click that follows, as Radix's\n// deferred outside press does (./deferredPointerDownOutside.ts).\n// - The portal renders once mounted, as Radix's does, so a closed popover\n// server-renders nothing.\n\nexport type PopoverSide = \"top\" | \"right\" | \"bottom\" | \"left\"\nexport type PopoverAlign = \"start\" | \"center\" | \"end\"\n\nconst PopoverComponent = defineComponent({\n name: \"Popover\",\n props: {\n /** Controlled visibility (`v-model:open`); uncontrolled when omitted */\n open: { type: Boolean, default: undefined },\n /** Opens on hover and focus instead of click. @default false */\n showOnHover: { type: Boolean, default: false },\n /** Delay before a hover popover opens, in milliseconds. @default 150 */\n hoverOpenDelay: { type: Number, default: 150 },\n },\n emits: {\n \"update:open\": (nextState: boolean) => typeof nextState === \"boolean\",\n },\n setup(props, { slots, emit }) {\n const open = ref(false)\n const shake = ref(false)\n const triggerRef = shallowRef<HTMLElement | null>(null)\n const contentRef = shallowRef<HTMLElement | null>(null)\n let openTimer: ReturnType<typeof setTimeout> | undefined\n const hoverOpenFocusedWithTab = { current: false }\n const isPointerInTransitRef = { current: false }\n const isOpen = computed(() => props.open ?? open.value)\n\n const temporarilyPreventClickToClose = ref(false)\n watch(temporarilyPreventClickToClose, (prevent, _, onCleanup) => {\n if (!prevent) return\n const id = setTimeout(() => {\n temporarilyPreventClickToClose.value = false\n }, 500)\n onCleanup(() => clearTimeout(id))\n })\n\n const handleOpenChange = (nextState: boolean) => {\n clearTimeout(openTimer)\n\n // No-op if the state is not changing\n if (isOpen.value === nextState) {\n return\n }\n\n if (!nextState) {\n // clear any running shake animation on close\n shake.value = false\n\n // Check for specific hover conditions where focus should be\n // immediately restored to the trigger before closing\n if (props.showOnHover && hoverOpenFocusedWithTab.current) {\n triggerRef.value?.focus()\n }\n\n // Always cleanup this state\n hoverOpenFocusedWithTab.current = false\n }\n\n emit(\"update:open\", nextState)\n open.value = nextState\n\n if (props.showOnHover) {\n temporarilyPreventClickToClose.value = nextState\n }\n }\n\n const handleTriggerEnter = () => {\n openTimer = setTimeout(() => handleOpenChange(true), props.hoverOpenDelay)\n }\n\n const handleTriggerLeave = () => {\n clearTimeout(openTimer)\n }\n\n onBeforeUnmount(() => {\n clearTimeout(openTimer)\n })\n\n const store: PopoverContextValue = {\n open: isOpen,\n setOpen: handleOpenChange,\n shake,\n setShake: (next) => {\n shake.value = next\n },\n showOnHover: computed(() => props.showOnHover),\n temporarilyPreventClickToClose,\n onTriggerEnter: handleTriggerEnter,\n onTriggerLeave: handleTriggerLeave,\n isPointerInTransitRef,\n triggerRef,\n contentRef,\n hoverOpenFocusedWithTab,\n }\n provide(PopoverContextKey, store)\n\n return () =>\n h(\n RekaPopoverRoot,\n { \"open\": isOpen.value, \"onUpdate:open\": handleOpenChange, \"modal\": false },\n { default: () => slots.default?.() },\n )\n },\n})\n\n/**\n * Renders its child (a button, link, ...) as the popover trigger. Like\n * `Popover.Trigger` in React it takes no other props: attributes on it are\n * not passed on.\n */\nexport const PopoverTrigger = defineComponent({\n name: \"PopoverTrigger\",\n inheritAttrs: false,\n emits: {\n pointerdown: (event: PointerEvent) => typeof event.type === \"string\",\n click: (event: MouseEvent) => typeof event.type === \"string\",\n },\n setup(_props, { slots, emit }) {\n const {\n open,\n setOpen,\n showOnHover,\n temporarilyPreventClickToClose,\n onTriggerEnter,\n onTriggerLeave,\n isPointerInTransitRef,\n triggerRef,\n contentRef,\n } = usePopoverContext()\n const rootContext = injectPopoverRootContext()\n rootContext.contentId ||= useId(undefined, \"reka-popover-content\")\n const { forwardRef, currentElement } = useForwardExpose()\n let hasPointerMoveOpened = false\n\n // Focus returns here on close, and pointer-downs on it are not \"outside\".\n // Follows a replaced child element, as Radix's composed ref does\n watchPostEffect(() => {\n triggerRef.value = currentElement.value ?? null\n rootContext.triggerElement.value = currentElement.value\n })\n\n const maybePreventClickClose = (evt: Event) => {\n // Don't prevent temporary close if the trigger is an anchor tag itself\n const isLink = (evt.currentTarget as Element).nodeName.toLocaleLowerCase() === \"a\"\n\n if (!isLink && temporarilyPreventClickToClose.value) {\n // Prevents tooltip listeners from closing\n evt.preventDefault()\n evt.stopPropagation()\n }\n }\n\n const handlePointerMove = (evt: PointerEvent) => {\n if (!isHoverPointer(evt)) {\n return\n }\n\n if (!hasPointerMoveOpened && !isPointerInTransitRef.current) {\n onTriggerEnter()\n hasPointerMoveOpened = true\n }\n }\n\n const handlePointerLeave = () => {\n if (!hasPointerMoveOpened) {\n return\n }\n\n onTriggerLeave()\n hasPointerMoveOpened = false\n }\n\n const handleBlur = () => {\n setTimeout(() => {\n // Ignore this handler if focus has moved into the popover\n if (contentRef.value?.contains(document.activeElement)) {\n return\n }\n\n setOpen(false)\n }, 50)\n }\n\n const onPointerdown = (evt: PointerEvent) => {\n maybePreventClickClose(evt)\n emit(\"pointerdown\", evt)\n }\n\n const onClick = composeEventHandlers(\n (evt: MouseEvent) => {\n maybePreventClickClose(evt)\n emit(\"click\", evt)\n },\n () => rootContext.onOpenToggle(),\n )\n\n return () => {\n const child = firstElementChild(slots.default?.())\n if (!child) return null\n\n const isOpen = open.value\n const hover = showOnHover.value\n // Radix's PopoverTrigger props, then Plex's handlers\n const triggerProps = {\n \"type\": \"button\",\n \"aria-haspopup\": \"dialog\",\n \"aria-expanded\": isOpen,\n \"aria-controls\": isOpen ? rootContext.contentId : undefined,\n \"data-state\": isOpen ? \"open\" : \"closed\",\n onPointerdown,\n onClick,\n \"onPointermove\": hover ? handlePointerMove : undefined,\n \"onPointerleave\": hover ? handlePointerLeave : undefined,\n \"onFocus\": hover ? () => setOpen(true) : undefined,\n \"onBlur\": hover ? handleBlur : undefined,\n }\n\n return h(RekaPopoverAnchor, { asChild: true, ref: forwardRef }, { default: () => mergeSlotProps(child, triggerProps) })\n }\n },\n})\n\nconst contentProps = {\n /** Avoids collisions with the viewport and scroll containers. @default true */\n avoidCollisions: { type: Boolean, default: undefined },\n /** Distance from viewport and scroll container boundaries, in pixels; an object sets it per side, and a side it leaves out gets 0. @default 20 */\n collisionPadding: { type: [Number, Object] as PropType<number | Partial<Record<PopoverSide, number>>>, default: 20 },\n /** `width` of the popover; numbers are pixels. @default \"auto\" */\n width: [Number, String] as PropType<number | \"auto\">,\n /** `min-width` of the popover; numbers are pixels. @default 300 */\n minWidth: [Number, String] as PropType<number | \"auto\">,\n /** `max-width` of the popover, in pixels */\n maxWidth: Number,\n /** Preferred side of the trigger. @default \"bottom\" */\n side: String as PropType<PopoverSide>,\n /** Distance from the trigger, in pixels. @default 8 */\n sideOffset: { type: Number, default: 8 },\n /** Preferred alignment against the trigger. @default \"center\" */\n align: String as PropType<PopoverAlign>,\n /** Offset from the \"start\" or \"end\" alignment, in pixels. @default 0 */\n alignOffset: Number,\n /** Translucent popover surface. @default false */\n translucent: { type: Boolean, default: undefined },\n /** Stack order of the popover, for one over a layer above 50, such as a dialog with its own `zIndex`. @default 50 */\n zIndex: Number,\n /** The id of the element that names the popover, such as the question of a confirmation */\n ariaLabelledby: String,\n /** Moves focus into the popover when it opens. @default true */\n autoFocus: { type: Boolean, default: true },\n}\n\ntype ContentProps = ExtractPropTypes<typeof contentProps>\n\n// The element Reka's content renders (`as`). Raw: Reka passes `as` through\n// reactive props, and Vue warns about a component made reactive.\nconst PopoverContentElement = markRaw(defineComponent({\n name: \"PopoverContentElement\",\n inheritAttrs: false,\n setup(_props, { slots, attrs }) {\n const { contentRef } = usePopoverContext()\n const setContentRef = (el: unknown) => {\n contentRef.value = (el as HTMLElement | null) ?? null\n }\n\n return () => {\n const { style, ...rest } = attrs\n delete rest.dir\n // Reka names the content by its trigger, which Radix does not; a name the owner gives comes back\n delete rest[\"aria-labelledby\"]\n const labelledBy = rest[\"data-plex-labelledby\"]\n delete rest[\"data-plex-labelledby\"]\n if (labelledBy) rest[\"aria-labelledby\"] = labelledBy\n delete rest.forceMount\n return h(\n \"div\",\n { ...rest, style: withRadixVariableNames(style, \"popover\"), ref: setContentRef },\n slots.default?.(),\n )\n }\n },\n}))\n\nconst PopoverContentImpl = defineComponent({\n name: \"PopoverContentImpl\",\n inheritAttrs: false,\n props: contentProps,\n setup(props, { slots, attrs }) {\n const { showOnHover, shake, contentRef, setOpen, triggerRef } = usePopoverContext()\n const controller = usePopoverController()\n\n // Radix's non-modal content: a press on the trigger is left to the\n // trigger, and focus does not return to it after a press outside\n let pressedOutside = false\n const outsidePress = useDeferredPointerDownOutside((originalEvent) => {\n if (triggerRef.value?.contains(originalEvent.target as Node)) return\n pressedOutside = true\n setOpen(false)\n }, () => contentRef.value)\n const handleCloseAutoFocus = (event: Event) => {\n if (showOnHover.value || pressedOutside) event.preventDefault()\n else keepMovedFocus(event)\n }\n\n const handleKeyDown = (evt: KeyboardEvent) => {\n const contentElement = contentRef.value\n\n if (\n // When the current target is our container\n contentElement &&\n evt.target === contentElement &&\n // We know that shift key tabs will lead to closing the popover (because we don't use `modal`)\n evt.key === \"Tab\" &&\n evt.shiftKey\n ) {\n // Prevent that from happening\n evt.preventDefault()\n evt.stopPropagation()\n\n // Move focus to the last focusable element, placing the user in the focus loop\n const focusable = focusableElements(contentElement)\n const lastFocusable = focusable[focusable.length - 1]\n lastFocusable?.focus()\n }\n }\n\n // Important that we send initial focus into the popover, placing it onto the container.\n // This allows focus looping to begin, as well as capturing scoped key presses.\n // We prevent Reka's default behavior of focusing an element, because this can have adverse side-effects.\n // A tick later, as with the Select's list: until Reka's focus scope here has\n // registered, a Dialog around this content sends the focus straight back,\n // and the content takes that for focus moving outside and closes.\n onMounted(() => {\n watch(\n [showOnHover, () => props.autoFocus],\n async () => {\n await nextTick()\n const contentElement = contentRef.value\n\n if (!contentElement || !props.autoFocus) {\n return\n }\n\n // If we're already focused within the content area, no-op.\n // This would be true if some inner component declares autoFocus\n if (contentElement.contains(document.activeElement)) {\n return\n }\n\n // Our focus isn't in the content area - move it there.\n // NOTE: Don't automatically shift focus on hover popovers\n if (!showOnHover.value) {\n contentElement.focus({ preventScroll: true })\n }\n },\n { immediate: true },\n )\n })\n\n return () =>\n h(\n RekaPopoverContent,\n {\n ...dataAttributes(attrs),\n \"forceMount\": true,\n \"as\": PopoverContentElement,\n \"class\": [s.Popover, attrs.class],\n \"style\": toCssVariables({\n \"popover-width\": props.width,\n \"popover-min-width\": props.minWidth,\n \"popover-max-width\": props.maxWidth,\n \"popover-z-index\": props.zIndex === undefined ? undefined : String(props.zIndex),\n }),\n \"data-plex-labelledby\": props.ariaLabelledby,\n \"onCloseAutoFocus\": handleCloseAutoFocus,\n \"onPointerDownOutside\": outsidePress.onPointerDownOutside,\n \"onFocusOutside\": outsidePress.onFocusOutside,\n \"data-animate\": shake.value ? \"shake\" : undefined,\n \"data-translucent\": props.translucent ? \"true\" : undefined,\n \"side\": props.side,\n \"sideOffset\": props.sideOffset,\n \"align\": props.align,\n \"alignOffset\": props.alignOffset ?? (props.align === \"center\" ? 0 : -5),\n \"avoidCollisions\": props.avoidCollisions ?? true,\n \"hideWhenDetached\": true,\n \"collisionPadding\": props.collisionPadding,\n \"onOpenAutoFocus\": preventDefaultHandler,\n // Escape is handled by the Escape stack in PopoverContent\n \"onEscapeKeyDown\": preventDefaultHandler,\n \"onKeydown\": handleKeyDown,\n },\n { default: () => slots.default?.(controller) },\n )\n },\n})\n\nconst PopoverContentHoverable = defineComponent({\n name: \"PopoverContentHoverable\",\n inheritAttrs: false,\n props: contentProps,\n setup(props, { slots, attrs }) {\n const { open, setOpen, triggerRef, contentRef, isPointerInTransitRef, hoverOpenFocusedWithTab } = usePopoverContext()\n const pointerGraceArea = shallowRef<Polygon | null>(null)\n\n const handleRemoveGraceArea = () => {\n pointerGraceArea.value = null\n isPointerInTransitRef.current = false\n }\n\n const handleCreateGraceArea = (event: PointerEvent, hoverTarget: HTMLElement) => {\n if (!isHoverPointer(event)) return\n const graceArea = createPointerIntentArea(event, hoverTarget)\n pointerGraceArea.value = graceArea\n isPointerInTransitRef.current = true\n }\n\n onBeforeUnmount(handleRemoveGraceArea)\n\n let removeLeaveListeners = () => {}\n onMounted(() => {\n const trigger = triggerRef.value\n const content = contentRef.value\n\n if (!trigger || !content) {\n return\n }\n\n const handleTriggerLeave = (event: PointerEvent) => handleCreateGraceArea(event, content)\n const handleContentLeave = (event: PointerEvent) => handleCreateGraceArea(event, trigger)\n\n trigger.addEventListener(\"pointerleave\", handleTriggerLeave)\n content.addEventListener(\"pointerleave\", handleContentLeave)\n removeLeaveListeners = () => {\n trigger.removeEventListener(\"pointerleave\", handleTriggerLeave)\n content.removeEventListener(\"pointerleave\", handleContentLeave)\n }\n })\n onBeforeUnmount(() => removeLeaveListeners())\n\n watch(pointerGraceArea, (graceArea, _, onCleanup) => {\n if (!graceArea) {\n return\n }\n\n const handleTrackPointerGrace = (event: PointerEvent) => {\n if (!isHoverPointer(event)) return\n const trigger = triggerRef.value\n const content = contentRef.value\n const target = event.target as HTMLElement\n const pointerPosition = { x: event.clientX, y: event.clientY }\n const hasEnteredTarget = trigger?.contains(target) || content?.contains(target)\n const isPointerOutsideGraceArea = !isPointInPolygon(pointerPosition, graceArea)\n // Stop considering grace areas when the pointer runs into other control triggers\n const targetHasPopup = target.hasAttribute(\"aria-haspopup\")\n\n if (hasEnteredTarget) {\n handleRemoveGraceArea()\n } else if (isPointerOutsideGraceArea || targetHasPopup) {\n handleRemoveGraceArea()\n setOpen(false)\n }\n }\n document.addEventListener(\"pointermove\", handleTrackPointerGrace)\n onCleanup(() => document.removeEventListener(\"pointermove\", handleTrackPointerGrace))\n })\n\n // Hoverable doesn't place focus in the popover by default.\n // If it is open and Tab is pressed, focus the first focusable element and\n // remember to restore focus to the trigger on close.\n const handleKeyDown = (evt: KeyboardEvent) => {\n // Closed and still leaving: Tab belongs to the page again\n if (!open.value || !contentRef.value) {\n return\n }\n\n // Only assume forward tab is attempting to move into the popup\n if (evt.key === \"Tab\" && !evt.shiftKey) {\n const [firstFocusable] = focusableElements(contentRef.value)\n if (firstFocusable) {\n evt.preventDefault()\n firstFocusable.focus()\n hoverOpenFocusedWithTab.current = true\n document.removeEventListener(\"keydown\", handleKeyDown)\n }\n }\n }\n onMounted(() => document.addEventListener(\"keydown\", handleKeyDown))\n onBeforeUnmount(() => document.removeEventListener(\"keydown\", handleKeyDown))\n\n return () => h(PopoverContentImpl, { ...props, ...dataAttributes(attrs), class: attrs.class }, slots)\n },\n})\n\n/**\n * The floating panel. `class` lands on the panel. The default slot receives\n * `{ close, shake }`, the same functions `usePopoverController()` returns.\n */\nexport const PopoverContent = defineComponent({\n name: \"PopoverContent\",\n inheritAttrs: false,\n props: contentProps,\n setup(props, { slots, attrs }) {\n const { open, showOnHover, setOpen } = usePopoverContext()\n // A popup opened from a Field row is not that row: its own controls keep their usual shape and menus\n provideFieldRow(() => false)\n provideFieldColumns(() => false)\n\n useEscCloseStack(open, () => {\n setOpen(false)\n })\n\n return () =>\n h(RekaPopoverPortal, null, {\n default: () => [\n h(\n TransitionGroup,\n { class: s.Transition, ...overlayTiming, overlay: true },\n {\n default: () => [\n open.value\n ? h(\n showOnHover.value ? PopoverContentHoverable : PopoverContentImpl,\n {\n key: showOnHover.value ? \"popover-hover\" : \"popover\",\n ...(props as ContentProps),\n ...dataAttributes(attrs),\n class: attrs.class,\n },\n slots,\n )\n : createCommentVNode(),\n ],\n },\n ),\n ],\n })\n },\n})\n\n/**\n * Anchors the popover to an element that is not its trigger, such as a bar button that keeps its own action: the\n * popover stands at it, a press on it is not outside, and focus returns to it on close. Open the popover with `open`.\n */\nexport const PopoverAnchor = defineComponent({\n name: \"PopoverAnchor\",\n props: {\n /** The element the popover stands at */\n element: { type: Object as PropType<HTMLElement | null>, default: null },\n },\n setup(props) {\n const { triggerRef } = usePopoverContext()\n // Reka returns focus to its trigger element and leaves a press on it alone: the anchor takes that place too\n const rootContext = injectPopoverRootContext()\n watch(\n () => props.element,\n (element, _previous, onCleanup) => {\n if (!element) return\n triggerRef.value = element\n rootContext.triggerElement.value = element\n onCleanup(() => {\n if (triggerRef.value === element) triggerRef.value = null\n if (rootContext.triggerElement.value === element) rootContext.triggerElement.value = undefined\n })\n },\n { immediate: true },\n )\n return () => (props.element ? h(RekaPopoverAnchor, { reference: props.element, asChild: true }) : null)\n },\n})\n\n/** Popover root. Uncontrolled by default; bind `v-model:open` to control it. */\n// Typed explicitly so the published declaration refers to the parts instead of\n// expanding them (an expanded component type fails consumers' type checks)\nexport const Popover: typeof PopoverComponent & {\n Trigger: typeof PopoverTrigger\n Content: typeof PopoverContent\n Anchor: typeof PopoverAnchor\n} = Object.assign(PopoverComponent, {\n Trigger: PopoverTrigger,\n Content: PopoverContent,\n Anchor: PopoverAnchor,\n})\n\nexport type PopoverProps = InstanceType<typeof PopoverComponent>[\"$props\"]\nexport type PopoverContentProps = InstanceType<typeof PopoverContent>[\"$props\"]\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Popover/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,cAAc,EACd,cAAc,GAKf,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA","sourcesContent":["export {\n Popover,\n PopoverContent,\n PopoverTrigger,\n type PopoverAlign,\n type PopoverContentProps,\n type PopoverProps,\n type PopoverSide,\n} from \"./Popover.js\"\nexport { usePopoverController } from \"./usePopoverController.js\"\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Popover/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,cAAc,EACd,aAAa,EACb,cAAc,GAKf,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA","sourcesContent":["export {\n Popover,\n PopoverContent,\n PopoverAnchor,\n PopoverTrigger,\n type PopoverAlign,\n type PopoverContentProps,\n type PopoverProps,\n type PopoverSide,\n} from \"./Popover.js\"\nexport { usePopoverController } from \"./usePopoverController.js\"\n"]}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Comment, Fragment, computed, defineComponent, h, onBeforeUnmount, onMounted, ref, useId, watch, } from "vue";
|
|
2
2
|
import { useBreakpoint } from "../../composables/useBreakpoints.js";
|
|
3
3
|
import { toCssVariables } from "../../lib/helpers.js";
|
|
4
|
+
import { hasContent as hasSlotContent } from "../../lib/slotContent.js";
|
|
4
5
|
import { Button } from "../Button/index.js";
|
|
5
6
|
import { Reload } from "../Icon/index.js";
|
|
6
7
|
import { Tooltip } from "../Tooltip/index.js";
|
|
@@ -536,6 +537,20 @@ const SliderComponent = defineComponent({
|
|
|
536
537
|
// What names the thumbs: an explicit labelledby, else the visible label
|
|
537
538
|
const nameId = props.ariaLabelledby ?? (labelContent ? labelId : undefined);
|
|
538
539
|
const { ariaLabel } = props;
|
|
540
|
+
// With a symbol at either end the container is the middle column of a grid (Slider.module.css), left to right
|
|
541
|
+
// as the primitive slides, so the start symbol stays at the minimum
|
|
542
|
+
const startAdornment = isVertical ? undefined : slots.startAdornment?.();
|
|
543
|
+
const endAdornment = isVertical ? undefined : slots.endAdornment?.();
|
|
544
|
+
// An empty string is no symbol either, as in React
|
|
545
|
+
const hasStart = hasSlotContent(startAdornment);
|
|
546
|
+
const hasEnd = hasSlotContent(endAdornment);
|
|
547
|
+
const wrapAdorned = (container) => hasStart || hasEnd
|
|
548
|
+
? h("div", { "class": s.SliderAdorned, "dir": "ltr", "data-disabled": disabled ? "" : undefined }, [
|
|
549
|
+
hasStart ? h("span", { "class": s.Adornment, "data-side": "start", "aria-hidden": "true" }, startAdornment) : null,
|
|
550
|
+
container,
|
|
551
|
+
hasEnd ? h("span", { "class": s.Adornment, "data-side": "end", "aria-hidden": "true" }, endAdornment) : null,
|
|
552
|
+
])
|
|
553
|
+
: container;
|
|
539
554
|
return h("div", { "class": [s.SliderWrap, attrs.class], "data-orientation": orientation }, [
|
|
540
555
|
labelContent
|
|
541
556
|
? h("div", { class: s.SliderLabel }, [
|
|
@@ -592,7 +607,7 @@ const SliderComponent = defineComponent({
|
|
|
592
607
|
]),
|
|
593
608
|
])
|
|
594
609
|
: null,
|
|
595
|
-
h("div", { class: s.SliderContainer }, [
|
|
610
|
+
wrapAdorned(h("div", { class: s.SliderContainer }, [
|
|
596
611
|
h(SliderRoot, {
|
|
597
612
|
"elementRef": setRoot,
|
|
598
613
|
"class": s.Slider,
|
|
@@ -667,7 +682,7 @@ const SliderComponent = defineComponent({
|
|
|
667
682
|
],
|
|
668
683
|
}),
|
|
669
684
|
showMarks ? h(SliderMarks, { marks, getThumb, min, max }) : null,
|
|
670
|
-
]),
|
|
685
|
+
])),
|
|
671
686
|
]);
|
|
672
687
|
};
|
|
673
688
|
},
|