@cocoar/vue-ui 1.10.0-overlay-parent-injection.2 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/menu/CoarContextMenu.vue.d.ts +22 -5
- package/dist/components/menu/CoarContextMenu.vue.d.ts.map +1 -1
- package/dist/components/menu/CoarSubFlyout.vue.d.ts +20 -1
- package/dist/components/menu/CoarSubFlyout.vue.d.ts.map +1 -1
- package/dist/components/overlay/CoarOverlayOutlet.vue.d.ts.map +1 -1
- package/dist/components/overlay/index.d.ts +2 -2
- package/dist/components/overlay/index.d.ts.map +1 -1
- package/dist/components/overlay/overlay-presets.d.ts +2 -42
- package/dist/components/overlay/overlay-presets.d.ts.map +1 -1
- package/dist/components/overlay/overlay-service.d.ts +2 -7
- package/dist/components/overlay/overlay-service.d.ts.map +1 -1
- package/dist/components/overlay/useOverlay.d.ts +1 -27
- package/dist/components/overlay/useOverlay.d.ts.map +1 -1
- package/dist/components/popover/CoarPopover.vue.d.ts +4 -3
- package/dist/components/popover/CoarPopover.vue.d.ts.map +1 -1
- package/dist/components/select/CoarMultiSelect.vue.d.ts.map +1 -1
- package/dist/components/select/CoarSelect.vue.d.ts.map +1 -1
- package/dist/components/select/CoarTagSelect.vue.d.ts.map +1 -1
- package/dist/components/select/useSelectDropdown.d.ts +19 -0
- package/dist/components/select/useSelectDropdown.d.ts.map +1 -0
- package/dist/components/sidebar/CoarSidebarGroup.vue.d.ts +3 -0
- package/dist/components/sidebar/CoarSidebarGroup.vue.d.ts.map +1 -1
- package/dist/components/tooltip/vTooltip.d.ts +1 -5
- package/dist/components/tooltip/vTooltip.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2626 -2919
- package/package.json +2 -2
- package/dist/components/menu/CoarContextMenuPanel.vue.d.ts +0 -26
- package/dist/components/menu/CoarContextMenuPanel.vue.d.ts.map +0 -1
- package/dist/components/menu/CoarSubFlyoutPanel.vue.d.ts +0 -53
- package/dist/components/menu/CoarSubFlyoutPanel.vue.d.ts.map +0 -1
- package/dist/components/popover/CoarPopoverPanel.vue.d.ts +0 -36
- package/dist/components/popover/CoarPopoverPanel.vue.d.ts.map +0 -1
- package/dist/components/select/CoarMultiSelectDropdownPanel.vue.d.ts +0 -32
- package/dist/components/select/CoarMultiSelectDropdownPanel.vue.d.ts.map +0 -1
- package/dist/components/select/CoarSelectDropdownPanel.vue.d.ts +0 -27
- package/dist/components/select/CoarSelectDropdownPanel.vue.d.ts.map +0 -1
- package/dist/components/select/CoarTagSelectDropdownPanel.vue.d.ts +0 -25
- package/dist/components/select/CoarTagSelectDropdownPanel.vue.d.ts.map +0 -1
- package/dist/components/sidebar/CoarSidebarFlyoutPanel.vue.d.ts +0 -65
- package/dist/components/sidebar/CoarSidebarFlyoutPanel.vue.d.ts.map +0 -1
- package/dist/components/tooltip/CoarTooltipPanel.vue.d.ts +0 -16
- package/dist/components/tooltip/CoarTooltipPanel.vue.d.ts.map +0 -1
|
@@ -1,10 +1,27 @@
|
|
|
1
1
|
import { ContextMenuContext } from './useContextMenu';
|
|
2
|
-
|
|
2
|
+
type __VLS_Props = {
|
|
3
3
|
/** Context menu controller returned by useContextMenu() */
|
|
4
4
|
menu: ContextMenuContext;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
};
|
|
6
|
+
declare function __VLS_template(): {
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
slots: {
|
|
9
|
+
default?(_: {}): any;
|
|
10
|
+
};
|
|
11
|
+
refs: {
|
|
12
|
+
hostRef: HTMLDivElement;
|
|
13
|
+
};
|
|
14
|
+
rootEl: any;
|
|
15
|
+
};
|
|
16
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
17
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
18
|
+
hostRef: HTMLDivElement;
|
|
19
|
+
}, any>;
|
|
20
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
9
21
|
export default _default;
|
|
22
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
10
27
|
//# sourceMappingURL=CoarContextMenu.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CoarContextMenu.vue.d.ts","sourceRoot":"","sources":["../../../src/components/menu/CoarContextMenu.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CoarContextMenu.vue.d.ts","sourceRoot":"","sources":["../../../src/components/menu/CoarContextMenu.vue"],"names":[],"mappings":"AAoHA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAI3D,KAAK,WAAW,GAAG;IACjB,2DAA2D;IAC3D,IAAI,EAAE,kBAAkB,CAAC;CAC1B,CAAC;AAuFF,iBAAS,cAAc;WAyDT,OAAO,IAA6B;;yBAXpB,GAAG;;;;;;EAgBhC;AAYD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;OAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -6,11 +6,30 @@ type __VLS_Props = {
|
|
|
6
6
|
/** Disabled state */
|
|
7
7
|
disabled?: boolean;
|
|
8
8
|
};
|
|
9
|
-
declare
|
|
9
|
+
declare function __VLS_template(): {
|
|
10
|
+
attrs: Partial<{}>;
|
|
11
|
+
slots: {
|
|
12
|
+
default?(_: {}): any;
|
|
13
|
+
};
|
|
14
|
+
refs: {
|
|
15
|
+
itemRef: HTMLDivElement;
|
|
16
|
+
panelRef: HTMLDivElement;
|
|
17
|
+
};
|
|
18
|
+
rootEl: HTMLDivElement;
|
|
19
|
+
};
|
|
20
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
21
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
10
22
|
disabled: boolean;
|
|
11
23
|
icon: string;
|
|
12
24
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
13
25
|
itemRef: HTMLDivElement;
|
|
26
|
+
panelRef: HTMLDivElement;
|
|
14
27
|
}, HTMLDivElement>;
|
|
28
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
15
29
|
export default _default;
|
|
30
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
31
|
+
new (): {
|
|
32
|
+
$slots: S;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
16
35
|
//# sourceMappingURL=CoarSubFlyout.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CoarSubFlyout.vue.d.ts","sourceRoot":"","sources":["../../../src/components/menu/CoarSubFlyout.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CoarSubFlyout.vue.d.ts","sourceRoot":"","sources":["../../../src/components/menu/CoarSubFlyout.vue"],"names":[],"mappings":"AAwaA,KAAK,WAAW,GAAG;IACf,iBAAiB;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,yBAAyB;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAwQJ,iBAAS,cAAc;WAgHT,OAAO,IAA6B;;yBAZpB,GAAG;;;;;;;EAiBhC;AAqBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;cApZN,OAAO;UAFX,MAAM;;;;kBA+Zf,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CoarOverlayOutlet.vue.d.ts","sourceRoot":"","sources":["../../../src/components/overlay/CoarOverlayOutlet.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CoarOverlayOutlet.vue.d.ts","sourceRoot":"","sources":["../../../src/components/overlay/CoarOverlayOutlet.vue"],"names":[],"mappings":"AAmIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzD,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,eAAe,CAAC;CAC3B,CAAC;AA+CF,iBAAS,cAAc;WA4FT,OAAO,IAA6B;;yBAZpB,GAAG;;;;;;;EAiBhC;AAYD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;OAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -4,8 +4,8 @@ export { computeOverlayCoordinates, getViewportRect, getAnchorRect, getContainer
|
|
|
4
4
|
export type { ViewportRect, Rect, OverlaySize, OverlayCoordinates } from './overlay-position';
|
|
5
5
|
export { createOverlayService } from './overlay-service';
|
|
6
6
|
export type { OverlayService, OverlayInstance, OverlayContent, OverlayOpenOptions } from './overlay-service';
|
|
7
|
-
export { CoarOverlayPlugin, OVERLAY_SERVICE_KEY,
|
|
7
|
+
export { CoarOverlayPlugin, OVERLAY_SERVICE_KEY, useOverlay, getOverlayService, _resetOverlayServiceForTests } from './useOverlay';
|
|
8
8
|
export { default as CoarOverlayHost } from './CoarOverlayHost.vue';
|
|
9
9
|
export { default as CoarOverlayOutlet } from './CoarOverlayOutlet.vue';
|
|
10
|
-
export { tooltipPreset, modalPreset, menuPreset, selectPreset, hoverMenuPreset, dialogPreset, popconfirmPreset,
|
|
10
|
+
export { tooltipPreset, modalPreset, menuPreset, selectPreset, hoverMenuPreset, dialogPreset, popconfirmPreset, datepickerPreset } from './overlay-presets';
|
|
11
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/overlay/index.ts"],"names":[],"mappings":"AACA,YAAY,EACV,SAAS,EACT,WAAW,EACX,UAAU,EACV,mBAAmB,EACnB,UAAU,EACV,YAAY,EACZ,QAAQ,EACR,YAAY,EACZ,UAAU,EACV,WAAW,EACX,SAAS,EACT,QAAQ,EACR,cAAc,GACf,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAGvE,OAAO,EACL,yBAAyB,EACzB,eAAe,EACf,aAAa,EACb,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,oBAAoB,CAAC;AAC5B,YAAY,E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gBAAgB,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -15,16 +15,8 @@ export declare const modalPreset: OverlaySpec;
|
|
|
15
15
|
*/
|
|
16
16
|
export declare const menuPreset: OverlaySpec;
|
|
17
17
|
/**
|
|
18
|
-
* Preset for select dropdowns.
|
|
19
|
-
*
|
|
20
|
-
* `scroll.strategy: 'reposition'` follows the trigger on scroll rather than closing —
|
|
21
|
-
* the expected behavior for a dropdown, since closing on every scroll event would feel
|
|
22
|
-
* abrupt when the user is just scrolling the surrounding form.
|
|
23
|
-
*
|
|
24
|
-
* `a11y.role` is intentionally omitted: the select panels already render an inner
|
|
25
|
-
* `role="listbox"` element whose id the trigger references via `aria-controls`. Adding
|
|
26
|
-
* `role="listbox"` on the outer overlay host would duplicate the role and confuse
|
|
27
|
-
* screen readers (and anchor `aria-multiselectable` onto the wrong element).
|
|
18
|
+
* Preset for select dropdowns.
|
|
19
|
+
* Similar to menu but with listbox role and anchor-width sizing.
|
|
28
20
|
*/
|
|
29
21
|
export declare const selectPreset: OverlaySpec;
|
|
30
22
|
/**
|
|
@@ -49,37 +41,5 @@ export declare const dialogPreset: OverlaySpec;
|
|
|
49
41
|
* which feeds into the position measurement so shift/flip calculations stay accurate.
|
|
50
42
|
*/
|
|
51
43
|
export declare const datepickerPreset: OverlaySpec;
|
|
52
|
-
/**
|
|
53
|
-
* Preset for `CoarPopover` — anchor-relative, reposition on scroll, escape dismiss.
|
|
54
|
-
* `outsideClick` defaults to true so clicking outside the pinned popover closes it, but
|
|
55
|
-
* callers in hover-only mode typically override it to false because the component drives
|
|
56
|
-
* close via hover-out timers instead.
|
|
57
|
-
*/
|
|
58
|
-
export declare const popoverPreset: OverlaySpec;
|
|
59
|
-
/**
|
|
60
|
-
* Preset for `CoarSidebarGroup` flyout panels. Anchored to the group trigger with the
|
|
61
|
-
* submenu appearing to its right (or flipping left near the viewport edge). Offset is
|
|
62
|
-
* negative so the flyout overlaps the trigger by a few pixels, matching the legacy
|
|
63
|
-
* visual. `scroll.strategy: 'reposition'` keeps the flyout attached if the sidebar
|
|
64
|
-
* scrolls, while `outsideClick` + `escapeKey` let the service handle dismissal.
|
|
65
|
-
*/
|
|
66
|
-
export declare const sidebarFlyoutPreset: OverlaySpec;
|
|
67
|
-
/**
|
|
68
|
-
* Preset for `CoarContextMenu` — right-click menu anchored to a cursor point. The anchor
|
|
69
|
-
* is set at `open()` time with `{ kind: 'point', x, y }` (a 0×0 rect at the cursor), and
|
|
70
|
-
* the placement list covers all four "grow outward from cursor" directions so `flip: true`
|
|
71
|
-
* picks the corner with the most available space. `shift: true` clamps the menu into the
|
|
72
|
-
* viewport when even the chosen corner overflows. `scroll.strategy: 'close'` dismisses the
|
|
73
|
-
* menu on page scroll, matching the legacy behavior.
|
|
74
|
-
*/
|
|
75
|
-
export declare const contextMenuPreset: OverlaySpec;
|
|
76
|
-
/**
|
|
77
|
-
* Preset for `CoarSubFlyout` — cascading submenu anchored to the right of its parent item.
|
|
78
|
-
* Falls back to `left-start` when the right side overflows. Offset is negative so the
|
|
79
|
-
* submenu overlaps the anchor slightly, matching the legacy visual. `flip: false` because
|
|
80
|
-
* the placement array already covers the flip direction. Hover-out dismissal is driven by
|
|
81
|
-
* the component's own timer logic (not `dismiss.hoverTree`).
|
|
82
|
-
*/
|
|
83
|
-
export declare const subFlyoutPreset: OverlaySpec;
|
|
84
44
|
export declare const popconfirmPreset: OverlaySpec;
|
|
85
45
|
//# sourceMappingURL=overlay-presets.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overlay-presets.d.ts","sourceRoot":"","sources":["../../../src/components/overlay/overlay-presets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD;;;GAGG;AACH,eAAO,MAAM,aAAa,EAAE,WAa3B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,WAAW,EAAE,WAUzB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,UAAU,EAAE,WAaxB,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"overlay-presets.d.ts","sourceRoot":"","sources":["../../../src/components/overlay/overlay-presets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD;;;GAGG;AACH,eAAO,MAAM,aAAa,EAAE,WAa3B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,WAAW,EAAE,WAUzB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,UAAU,EAAE,WAaxB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,YAAY,EAAE,WAc1B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,EAAE,WAG7B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,YAAY,EAAE,WAU1B,CAAC;AAEF;;;GAGG;AACH;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,EAAE,WAc9B,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,WAa9B,CAAC"}
|
|
@@ -53,13 +53,8 @@ export interface OverlayOpenOptions {
|
|
|
53
53
|
content: OverlayContent;
|
|
54
54
|
/** Props/inputs to pass to the content component */
|
|
55
55
|
inputs?: Record<string, unknown>;
|
|
56
|
-
/**
|
|
57
|
-
|
|
58
|
-
* returned from a previous `open()` call or the `OverlayInstance` provided under
|
|
59
|
-
* `OVERLAY_PARENT_KEY` by `CoarOverlayOutlet` — the latter is what
|
|
60
|
-
* `useOverlayParent()` returns, so descendants can pass it straight through.
|
|
61
|
-
*/
|
|
62
|
-
parent?: OverlayRef | OverlayInstance;
|
|
56
|
+
/** Parent overlay (for child/submenu overlays) */
|
|
57
|
+
parent?: OverlayRef;
|
|
63
58
|
}
|
|
64
59
|
/**
|
|
65
60
|
* Global overlay manager. Creates and manages overlay instances.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overlay-service.d.ts","sourceRoot":"","sources":["../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WAAW,UAAU,WAAW,KAAG,IAAI;EAqTpG;AAED,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
|
@@ -1,35 +1,9 @@
|
|
|
1
1
|
import { InjectionKey, Plugin } from 'vue';
|
|
2
|
-
import { OverlayService
|
|
2
|
+
import { OverlayService } from './overlay-service';
|
|
3
3
|
/**
|
|
4
4
|
* Injection key for the overlay service singleton.
|
|
5
5
|
*/
|
|
6
6
|
export declare const OVERLAY_SERVICE_KEY: InjectionKey<OverlayService>;
|
|
7
|
-
/**
|
|
8
|
-
* Injection key for the **nearest ancestor overlay**. Every `CoarOverlayOutlet` provides
|
|
9
|
-
* its own `OverlayInstance` under this key, so any descendant component that opens its
|
|
10
|
-
* own overlay (popover, tooltip, sub-menu, etc.) can read the nearest parent and pass it
|
|
11
|
-
* to `overlay.open({ parent })`. The service then:
|
|
12
|
-
*
|
|
13
|
-
* - stacks the child above the parent (each new `instance.id` is larger, so
|
|
14
|
-
* `calc(var(--coar-z-overlay) + id*2)` gives higher z-index automatically)
|
|
15
|
-
* - treats clicks inside the child as clicks inside the parent (parent does not close
|
|
16
|
-
* when the user interacts with a popover that was opened from inside it)
|
|
17
|
-
* - propagates close-on-parent-close so orphaned children don't linger
|
|
18
|
-
*
|
|
19
|
-
* Components outside any overlay get `undefined` on inject and open as root overlays.
|
|
20
|
-
* Mirrors Angular's `@Optional() @SkipSelf() parentOverlay?: OverlayInstance` pattern.
|
|
21
|
-
*/
|
|
22
|
-
export declare const OVERLAY_PARENT_KEY: InjectionKey<OverlayInstance>;
|
|
23
|
-
/**
|
|
24
|
-
* Convenience composable — reads the nearest ancestor overlay instance, or `undefined`
|
|
25
|
-
* if the component is outside any overlay (top-level of the app).
|
|
26
|
-
*
|
|
27
|
-
* ```ts
|
|
28
|
-
* const parent = useOverlayParent();
|
|
29
|
-
* overlay.open({ spec, content, parent });
|
|
30
|
-
* ```
|
|
31
|
-
*/
|
|
32
|
-
export declare function useOverlayParent(): OverlayInstance | undefined;
|
|
33
7
|
/**
|
|
34
8
|
* Get the overlay service without injection (for use outside setup()).
|
|
35
9
|
* Throws if CoarOverlayPlugin has not been installed.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useOverlay.d.ts","sourceRoot":"","sources":["../../../src/components/overlay/useOverlay.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAU,KAAK,MAAM,EAAE,MAAM,KAAK,CAAC;AAC7D,OAAO,EAAwB,KAAK,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"useOverlay.d.ts","sourceRoot":"","sources":["../../../src/components/overlay/useOverlay.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAU,KAAK,MAAM,EAAE,MAAM,KAAK,CAAC;AAC7D,OAAO,EAAwB,KAAK,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAG9E;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,YAAY,CAAC,cAAc,CAAgC,CAAC;AAO9F;;;GAGG;AACH,wBAAgB,iBAAiB,IAAI,cAAc,CAOlD;AAED,gEAAgE;AAChE,wBAAgB,4BAA4B,IAAI,IAAI,CAEnD;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,iBAAiB,EAAE,MAW/B,CAAC;AAEF;;;;;;;;;GASG;AACH,wBAAgB,UAAU,IAAI,cAAc,CAQ3C"}
|
|
@@ -4,9 +4,11 @@ declare function __VLS_template(): {
|
|
|
4
4
|
attrs: Partial<{}>;
|
|
5
5
|
slots: {
|
|
6
6
|
default?(_: {}): any;
|
|
7
|
+
content?(_: {}): any;
|
|
7
8
|
};
|
|
8
9
|
refs: {
|
|
9
10
|
triggerRef: HTMLSpanElement;
|
|
11
|
+
panelRef: HTMLDivElement;
|
|
10
12
|
};
|
|
11
13
|
rootEl: HTMLDivElement;
|
|
12
14
|
};
|
|
@@ -32,9 +34,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
32
34
|
type: NumberConstructor;
|
|
33
35
|
default: number;
|
|
34
36
|
};
|
|
35
|
-
}>, {
|
|
36
|
-
isOpen: import('vue').Ref<boolean, boolean>;
|
|
37
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
37
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
38
38
|
/** Trigger mode: 'hover', 'click', or 'both'. Default: 'hover' */
|
|
39
39
|
mode: {
|
|
40
40
|
type: PropType<PopoverMode>;
|
|
@@ -62,6 +62,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
62
62
|
interactive: boolean;
|
|
63
63
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
64
64
|
triggerRef: HTMLSpanElement;
|
|
65
|
+
panelRef: HTMLDivElement;
|
|
65
66
|
}, HTMLDivElement>;
|
|
66
67
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
67
68
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CoarPopover.vue.d.ts","sourceRoot":"","sources":["../../../src/components/popover/CoarPopover.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CoarPopover.vue.d.ts","sourceRoot":"","sources":["../../../src/components/popover/CoarPopover.vue"],"names":[],"mappings":"AA8VA,OAAO,EAML,KAAK,QAAQ,EACd,MAAM,KAAK,CAAC;AAKb,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,OAAO,GAAG,MAAM,CAAC;AA+PrD,iBAAS,cAAc;WAmFT,OAAO,IAA6B;;yBAbrB,GAAG;yBACH,GAAG;;;;;;;EAiB/B;AA+BD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;IAMnB,kEAAkE;;cAC1C,QAAQ,CAAC,WAAW,CAAC;;;IAC7C,uCAAuC;;;;;IAEvC,+DAA+D;;;;;IAE/D,iCAAiC;;;;;;IANjC,kEAAkE;;cAC1C,QAAQ,CAAC,WAAW,CAAC;;;IAC7C,uCAAuC;;;;;IAEvC,+DAA+D;;;;;IAE/D,iCAAiC;;;;;;;;;;;;;kBAKjC,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAEpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CoarMultiSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/select/CoarMultiSelect.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CoarMultiSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/select/CoarMultiSelect.vue"],"names":[],"mappings":"AAytBA,OAAO,EAAiB,KAAK,cAAc,EAAE,KAAK,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAIhG,OAAO,KAAK,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAG7F,MAAM,WAAW,oBAAoB,CAAC,CAAC,GAAG,OAAO;IAC/C,uBAAuB;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,wBAAwB;IACxB,OAAO,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC,EAAE,CAAC;IAChC,kBAAkB;IAClB,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,wBAAwB;IACxB,UAAU,CAAC,EAAE,oBAAoB,CAAC;IAClC,0BAA0B;IAC1B,QAAQ,CAAC,E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,IAAI;WAClD,GAAG;;;EAIP,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AA9nBzE,wBA8nB4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CoarSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/select/CoarSelect.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CoarSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/select/CoarSelect.vue"],"names":[],"mappings":"AAqnBA,OAAO,EAAiB,KAAK,cAAc,EAAE,KAAK,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAGhG,OAAO,KAAK,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAG7F,MAAM,WAAW,eAAe,CAAC,CAAC,GAAG,OAAO;IAC1C,uBAAuB;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,wBAAwB;IACxB,OAAO,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC,EAAE,CAAC;IAChC,kBAAkB;IAClB,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,wBAAwB;IACxB,UAAU,CAAC,EAAE,oBAAoB,CAAC;IAClC,0BAA0B;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iCAAiC;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,sCAAsC;IACtC,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,cAAc;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,gBAAgB;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,2BAA2B;IAC3B,UAAU,CAAC,EAAE,OA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ources":["../../../src/components/select/CoarTagSelect.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CoarTagSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/select/CoarTagSelect.vue"],"names":[],"mappings":"AAuiBA,OAAO,EAAiB,KAAK,cAAc,EAAE,KAAK,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAGhG,OAAO,KAAK,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAG7F,MAAM,WAAW,kBAAkB,CAAC,CAAC,GAAG,OAAO;IAC7C,uBAAuB;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,wBAAwB;IACxB,OAAO,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC,EAAE,CAAC;IAChC,kBAAkB;IAClB,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,wBAAwB;IACxB,UAAU,CAAC,EAAE,oBAAoB,CAAC;IAClC,0BAA0B;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iCAAiC;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,sCAAsC;IACtC,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,cAAc;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,gBAAgB;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,yBAAyB;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,wCAAwC;IACxC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,0BAA0B;IAC1B,WAAW,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,OAAO,CAAC;IACtC,wBAAwB;IACxB,gBAAgB,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,QAAQ,CAAC;IAC7C,4CAA4C;IAC5C,UAAU,CAAC,EAAE,oBAAoB,CAAC;IAClC,uFAAuF;IACvF,WAAW,CAAC,EAAE,qBAAqB,CAAC,CAAC,CAAC,CAAC;CACxC;yBAEgB,CAAC,EACjB,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,eAAe,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EACjE;WA4dO,mBAAmB,CAAC;;;qBA7Qf,CAAC,EAAE;4CA6Q8E,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;;EAIP,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AAvezE,wBAue4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
export interface UseSelectDropdownOptions {
|
|
3
|
+
isOpen: Ref<boolean>;
|
|
4
|
+
triggerEl: Ref<HTMLElement | null | undefined>;
|
|
5
|
+
dropdownEl: Ref<HTMLElement | null | undefined>;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Composable that manages positioning for a select dropdown
|
|
9
|
+
* teleported to `<body>`. Uses the overlay positioning engine
|
|
10
|
+
* for viewport-aware placement with flip support.
|
|
11
|
+
*/
|
|
12
|
+
export declare function useSelectDropdown(opts: UseSelectDropdownOptions): {
|
|
13
|
+
left: Ref<number, number>;
|
|
14
|
+
top: Ref<number, number>;
|
|
15
|
+
minWidth: Ref<number, number>;
|
|
16
|
+
placement: Ref<string, string>;
|
|
17
|
+
reposition: () => void;
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=useSelectDropdown.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSelectDropdown.d.ts","sourceRoot":"","sources":["../../../src/components/select/useSelectDropdown.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+B,KAAK,GAAG,EAAE,MAAM,KAAK,CAAC;AAQ5D,MAAM,WAAW,wBAAwB;IACvC,MAAM,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;IACrB,SAAS,EAAE,GAAG,CAAC,WAAW,GAAG,IAAI,GAAG,SAAS,CAAC,CAAC;IAC/C,UAAU,EAAE,GAAG,CAAC,WAAW,GAAG,IAAI,GAAG,SAAS,CAAC,CAAC;CACjD;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,wBAAwB;;;;;;EAkG/D"}
|
|
@@ -19,9 +19,11 @@ declare function __VLS_template(): {
|
|
|
19
19
|
attrs: Partial<{}>;
|
|
20
20
|
slots: {
|
|
21
21
|
default?(_: {}): any;
|
|
22
|
+
default?(_: {}): any;
|
|
22
23
|
};
|
|
23
24
|
refs: {
|
|
24
25
|
triggerRef: HTMLDivElement;
|
|
26
|
+
flyoutRef: HTMLDivElement;
|
|
25
27
|
};
|
|
26
28
|
rootEl: HTMLDivElement;
|
|
27
29
|
};
|
|
@@ -38,6 +40,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
38
40
|
openOnHover: boolean;
|
|
39
41
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
40
42
|
triggerRef: HTMLDivElement;
|
|
43
|
+
flyoutRef: HTMLDivElement;
|
|
41
44
|
}, HTMLDivElement>;
|
|
42
45
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
43
46
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CoarSidebarGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/sidebar/CoarSidebarGroup.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CoarSidebarGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/sidebar/CoarSidebarGroup.vue"],"names":[],"mappings":"AAwoBA,KAAK,WAAW,GAAG;IACf,uBAAuB;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,8CAA8C;IAC9C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,mEAAmE;IACnE,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAC3B,2FAA2F;IAC3F,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,4EAA4E;IAC5E,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAuMJ,KAAK,iBAAiB,GAAG;IACzB,MAAM,CAAC,EAAE,OAAO,CAAC;CAChB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAwLT,OAAO,IAA6B;;yBAbpB,GAAG;yBACH,GAAG;;;;;;;EAiBhC;AAgCD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;cAnbN,OAAO;UAEX,QAAQ,GAAG,QAAQ;UAJnB,MAAM;cAMF,OAAO;iBAEJ,OAAO;;;;kBAubvB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { Directive } from 'vue';
|
|
2
|
-
import { OverlayInstance } from '../overlay/overlay-service';
|
|
3
|
-
import { OverlayRef } from '../overlay/overlay-types';
|
|
4
2
|
export type TooltipPlacement = 'auto' | 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end';
|
|
5
3
|
export interface TooltipOptions {
|
|
6
4
|
/** Tooltip text content */
|
|
@@ -16,7 +14,7 @@ export interface TooltipOptions {
|
|
|
16
14
|
}
|
|
17
15
|
type OpenReason = 'hover' | 'focus';
|
|
18
16
|
interface TooltipState {
|
|
19
|
-
|
|
17
|
+
tooltipEl: HTMLElement | null;
|
|
20
18
|
openTimerId: number | null;
|
|
21
19
|
closeTimerId: number | null;
|
|
22
20
|
openReasons: Set<OpenReason>;
|
|
@@ -24,8 +22,6 @@ interface TooltipState {
|
|
|
24
22
|
tooltipId: string;
|
|
25
23
|
cleanup: (() => void) | null;
|
|
26
24
|
opts: TooltipOptions;
|
|
27
|
-
/** Resolved at `mounted` from the host component's provides chain; `undefined` = root overlay. */
|
|
28
|
-
parentOverlay: OverlayInstance | undefined;
|
|
29
25
|
onPointerDown: () => void;
|
|
30
26
|
onMouseEnter: () => void;
|
|
31
27
|
onMouseLeave: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vTooltip.d.ts","sourceRoot":"","sources":["../../../src/components/tooltip/vTooltip.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"vTooltip.d.ts","sourceRoot":"","sources":["../../../src/components/tooltip/vTooltip.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAoB,MAAM,KAAK,CAAC;AAIvD,MAAM,MAAM,gBAAgB,GACxB,MAAM,GACN,KAAK,GACL,WAAW,GACX,SAAS,GACT,QAAQ,GACR,cAAc,GACd,YAAY,GACZ,MAAM,GACN,YAAY,GACZ,UAAU,GACV,OAAO,GACP,aAAa,GACb,WAAW,CAAC;AA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