@septkit/ui 0.0.83 → 0.0.84
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/external/.pnpm/@lucide_vue@1.23.0_vue@3.5.39_typescript@5.8.3_/node_modules/@lucide/vue/dist/esm/icons/loader-circle.js +8 -0
- package/dist/external/.pnpm/@vueuse_core@14.3.0_vue@3.5.39_typescript@5.8.3_/node_modules/@vueuse/core/dist/index.js +73 -73
- package/dist/external/.pnpm/@vueuse_shared@14.3.0_vue@3.5.39_typescript@5.8.3_/node_modules/@vueuse/shared/dist/index.js +172 -80
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/HoverCard/HoverCardContent.js +126 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/HoverCard/HoverCardContentImpl.js +170 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/HoverCard/HoverCardPortal.js +33 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/HoverCard/HoverCardRoot.js +73 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/HoverCard/HoverCardTrigger.js +64 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/HoverCard/utils.js +11 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Popover/PopoverContent.js +133 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Popover/PopoverContentImpl.js +165 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Popover/PopoverContentModal.js +137 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Popover/PopoverContentNonModal.js +130 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Popover/PopoverPortal.js +33 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Popover/PopoverRoot.js +54 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Popover/PopoverTrigger.js +55 -0
- package/dist/index.d.ts +89 -6
- package/dist/index.js +14 -9
- package/dist/status-bar/index.js +5 -0
- package/dist/status-bar/progress-bar.js +7 -0
- package/dist/status-bar/progress-bar.vue_vue_type_script_setup_true_lang.js +31 -0
- package/dist/status-bar/spinner.js +7 -0
- package/dist/status-bar/spinner.vue_vue_type_script_setup_true_lang.js +27 -0
- package/dist/status-bar/status-bar-item.js +8 -0
- package/dist/status-bar/status-bar-item.vue_vue_type_script_setup_true_lang.js +138 -0
- package/dist/status-bar/status-bar.js +7 -0
- package/dist/status-bar/status-bar.vue_vue_type_script_setup_true_lang.js +17 -0
- package/dist/ui.css +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import { reactiveOmit as e } from "../../../../../@vueuse_shared@14.3.0_vue@3.5.39_typescript@5.8.3_/node_modules/@vueuse/shared/dist/index.js";
|
|
2
|
+
import { useFocusGuards as t } from "../shared/useFocusGuards.js";
|
|
3
|
+
import { useForwardExpose as n } from "../shared/useForwardExpose.js";
|
|
4
|
+
import { useForwardProps as r } from "../shared/useForwardProps.js";
|
|
5
|
+
import { DismissableLayer_default as i } from "../DismissableLayer/DismissableLayer.js";
|
|
6
|
+
import { FocusScope_default as a } from "../FocusScope/FocusScope.js";
|
|
7
|
+
import { PopperContent_default as o } from "../Popper/PopperContent.js";
|
|
8
|
+
import { injectPopoverRootContext as s } from "./PopoverRoot.js";
|
|
9
|
+
import { createBlock as c, createVNode as l, defineComponent as u, mergeProps as d, openBlock as f, renderSlot as p, unref as m, withCtx as h } from "vue";
|
|
10
|
+
//#region node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Popover/PopoverContentImpl.js
|
|
11
|
+
var g = /* @__PURE__ */ u({
|
|
12
|
+
__name: "PopoverContentImpl",
|
|
13
|
+
props: {
|
|
14
|
+
trapFocus: {
|
|
15
|
+
type: Boolean,
|
|
16
|
+
required: !1
|
|
17
|
+
},
|
|
18
|
+
memoDependencies: {
|
|
19
|
+
type: Array,
|
|
20
|
+
required: !1
|
|
21
|
+
},
|
|
22
|
+
side: {
|
|
23
|
+
type: null,
|
|
24
|
+
required: !1
|
|
25
|
+
},
|
|
26
|
+
sideOffset: {
|
|
27
|
+
type: Number,
|
|
28
|
+
required: !1
|
|
29
|
+
},
|
|
30
|
+
sideFlip: {
|
|
31
|
+
type: Boolean,
|
|
32
|
+
required: !1
|
|
33
|
+
},
|
|
34
|
+
align: {
|
|
35
|
+
type: null,
|
|
36
|
+
required: !1
|
|
37
|
+
},
|
|
38
|
+
alignOffset: {
|
|
39
|
+
type: Number,
|
|
40
|
+
required: !1
|
|
41
|
+
},
|
|
42
|
+
alignFlip: {
|
|
43
|
+
type: Boolean,
|
|
44
|
+
required: !1
|
|
45
|
+
},
|
|
46
|
+
avoidCollisions: {
|
|
47
|
+
type: Boolean,
|
|
48
|
+
required: !1
|
|
49
|
+
},
|
|
50
|
+
collisionBoundary: {
|
|
51
|
+
type: null,
|
|
52
|
+
required: !1
|
|
53
|
+
},
|
|
54
|
+
collisionPadding: {
|
|
55
|
+
type: [Number, Object],
|
|
56
|
+
required: !1
|
|
57
|
+
},
|
|
58
|
+
arrowPadding: {
|
|
59
|
+
type: Number,
|
|
60
|
+
required: !1
|
|
61
|
+
},
|
|
62
|
+
hideShiftedArrow: {
|
|
63
|
+
type: Boolean,
|
|
64
|
+
required: !1
|
|
65
|
+
},
|
|
66
|
+
sticky: {
|
|
67
|
+
type: String,
|
|
68
|
+
required: !1
|
|
69
|
+
},
|
|
70
|
+
hideWhenDetached: {
|
|
71
|
+
type: Boolean,
|
|
72
|
+
required: !1
|
|
73
|
+
},
|
|
74
|
+
positionStrategy: {
|
|
75
|
+
type: String,
|
|
76
|
+
required: !1
|
|
77
|
+
},
|
|
78
|
+
updatePositionStrategy: {
|
|
79
|
+
type: String,
|
|
80
|
+
required: !1
|
|
81
|
+
},
|
|
82
|
+
disableUpdateOnLayoutShift: {
|
|
83
|
+
type: Boolean,
|
|
84
|
+
required: !1
|
|
85
|
+
},
|
|
86
|
+
prioritizePosition: {
|
|
87
|
+
type: Boolean,
|
|
88
|
+
required: !1
|
|
89
|
+
},
|
|
90
|
+
reference: {
|
|
91
|
+
type: null,
|
|
92
|
+
required: !1
|
|
93
|
+
},
|
|
94
|
+
dir: {
|
|
95
|
+
type: String,
|
|
96
|
+
required: !1
|
|
97
|
+
},
|
|
98
|
+
asChild: {
|
|
99
|
+
type: Boolean,
|
|
100
|
+
required: !1
|
|
101
|
+
},
|
|
102
|
+
as: {
|
|
103
|
+
type: null,
|
|
104
|
+
required: !1
|
|
105
|
+
},
|
|
106
|
+
disableOutsidePointerEvents: {
|
|
107
|
+
type: Boolean,
|
|
108
|
+
required: !1
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
emits: [
|
|
112
|
+
"escapeKeyDown",
|
|
113
|
+
"pointerDownOutside",
|
|
114
|
+
"focusOutside",
|
|
115
|
+
"interactOutside",
|
|
116
|
+
"openAutoFocus",
|
|
117
|
+
"closeAutoFocus"
|
|
118
|
+
],
|
|
119
|
+
setup(u, { emit: g }) {
|
|
120
|
+
let _ = u, v = g, y = r(e(_, "trapFocus", "disableOutsidePointerEvents")), { forwardRef: b } = n(), x = s();
|
|
121
|
+
return t(), (e, t) => (f(), c(m(a), {
|
|
122
|
+
"as-child": "",
|
|
123
|
+
loop: "",
|
|
124
|
+
trapped: e.trapFocus,
|
|
125
|
+
onMountAutoFocus: t[5] ||= (e) => v("openAutoFocus", e),
|
|
126
|
+
onUnmountAutoFocus: t[6] ||= (e) => v("closeAutoFocus", e)
|
|
127
|
+
}, {
|
|
128
|
+
default: h(() => [l(m(i), {
|
|
129
|
+
"as-child": "",
|
|
130
|
+
"disable-outside-pointer-events": e.disableOutsidePointerEvents,
|
|
131
|
+
onPointerDownOutside: t[0] ||= (e) => v("pointerDownOutside", e),
|
|
132
|
+
onInteractOutside: t[1] ||= (e) => v("interactOutside", e),
|
|
133
|
+
onEscapeKeyDown: t[2] ||= (e) => v("escapeKeyDown", e),
|
|
134
|
+
onFocusOutside: t[3] ||= (e) => v("focusOutside", e),
|
|
135
|
+
onDismiss: t[4] ||= (e) => m(x).onOpenChange(!1)
|
|
136
|
+
}, {
|
|
137
|
+
default: h(() => [l(m(o), d(m(y), {
|
|
138
|
+
id: m(x).contentId,
|
|
139
|
+
ref: m(b),
|
|
140
|
+
"data-state": m(x).open.value ? "open" : "closed",
|
|
141
|
+
"aria-labelledby": m(x).triggerId,
|
|
142
|
+
style: {
|
|
143
|
+
"--reka-popover-content-transform-origin": "var(--reka-popper-transform-origin)",
|
|
144
|
+
"--reka-popover-content-available-width": "var(--reka-popper-available-width)",
|
|
145
|
+
"--reka-popover-content-available-height": "var(--reka-popper-available-height)",
|
|
146
|
+
"--reka-popover-trigger-width": "var(--reka-popper-anchor-width)",
|
|
147
|
+
"--reka-popover-trigger-height": "var(--reka-popper-anchor-height)"
|
|
148
|
+
},
|
|
149
|
+
role: "dialog"
|
|
150
|
+
}), {
|
|
151
|
+
default: h(() => [p(e.$slots, "default")]),
|
|
152
|
+
_: 3
|
|
153
|
+
}, 16, [
|
|
154
|
+
"id",
|
|
155
|
+
"data-state",
|
|
156
|
+
"aria-labelledby"
|
|
157
|
+
])]),
|
|
158
|
+
_: 3
|
|
159
|
+
}, 8, ["disable-outside-pointer-events"])]),
|
|
160
|
+
_: 3
|
|
161
|
+
}, 8, ["trapped"]));
|
|
162
|
+
}
|
|
163
|
+
});
|
|
164
|
+
//#endregion
|
|
165
|
+
export { g as PopoverContentImpl_default };
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { useBodyScrollLock as e } from "../shared/useBodyScrollLock.js";
|
|
2
|
+
import { useForwardExpose as t } from "../shared/useForwardExpose.js";
|
|
3
|
+
import { useForwardPropsEmits as n } from "../shared/useForwardPropsEmits.js";
|
|
4
|
+
import { useHideOthers as r } from "../shared/useHideOthers.js";
|
|
5
|
+
import { injectPopoverRootContext as i } from "./PopoverRoot.js";
|
|
6
|
+
import { PopoverContentImpl_default as a } from "./PopoverContentImpl.js";
|
|
7
|
+
import { createBlock as o, defineComponent as s, mergeProps as c, openBlock as l, ref as u, renderSlot as d, unref as f, withCtx as p, withModifiers as m } from "vue";
|
|
8
|
+
//#region node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Popover/PopoverContentModal.js
|
|
9
|
+
var h = /* @__PURE__ */ s({
|
|
10
|
+
__name: "PopoverContentModal",
|
|
11
|
+
props: {
|
|
12
|
+
memoDependencies: {
|
|
13
|
+
type: Array,
|
|
14
|
+
required: !1
|
|
15
|
+
},
|
|
16
|
+
side: {
|
|
17
|
+
type: null,
|
|
18
|
+
required: !1
|
|
19
|
+
},
|
|
20
|
+
sideOffset: {
|
|
21
|
+
type: Number,
|
|
22
|
+
required: !1
|
|
23
|
+
},
|
|
24
|
+
sideFlip: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
required: !1
|
|
27
|
+
},
|
|
28
|
+
align: {
|
|
29
|
+
type: null,
|
|
30
|
+
required: !1
|
|
31
|
+
},
|
|
32
|
+
alignOffset: {
|
|
33
|
+
type: Number,
|
|
34
|
+
required: !1
|
|
35
|
+
},
|
|
36
|
+
alignFlip: {
|
|
37
|
+
type: Boolean,
|
|
38
|
+
required: !1
|
|
39
|
+
},
|
|
40
|
+
avoidCollisions: {
|
|
41
|
+
type: Boolean,
|
|
42
|
+
required: !1
|
|
43
|
+
},
|
|
44
|
+
collisionBoundary: {
|
|
45
|
+
type: null,
|
|
46
|
+
required: !1
|
|
47
|
+
},
|
|
48
|
+
collisionPadding: {
|
|
49
|
+
type: [Number, Object],
|
|
50
|
+
required: !1
|
|
51
|
+
},
|
|
52
|
+
arrowPadding: {
|
|
53
|
+
type: Number,
|
|
54
|
+
required: !1
|
|
55
|
+
},
|
|
56
|
+
hideShiftedArrow: {
|
|
57
|
+
type: Boolean,
|
|
58
|
+
required: !1
|
|
59
|
+
},
|
|
60
|
+
sticky: {
|
|
61
|
+
type: String,
|
|
62
|
+
required: !1
|
|
63
|
+
},
|
|
64
|
+
hideWhenDetached: {
|
|
65
|
+
type: Boolean,
|
|
66
|
+
required: !1
|
|
67
|
+
},
|
|
68
|
+
positionStrategy: {
|
|
69
|
+
type: String,
|
|
70
|
+
required: !1
|
|
71
|
+
},
|
|
72
|
+
updatePositionStrategy: {
|
|
73
|
+
type: String,
|
|
74
|
+
required: !1
|
|
75
|
+
},
|
|
76
|
+
disableUpdateOnLayoutShift: {
|
|
77
|
+
type: Boolean,
|
|
78
|
+
required: !1
|
|
79
|
+
},
|
|
80
|
+
prioritizePosition: {
|
|
81
|
+
type: Boolean,
|
|
82
|
+
required: !1
|
|
83
|
+
},
|
|
84
|
+
reference: {
|
|
85
|
+
type: null,
|
|
86
|
+
required: !1
|
|
87
|
+
},
|
|
88
|
+
dir: {
|
|
89
|
+
type: String,
|
|
90
|
+
required: !1
|
|
91
|
+
},
|
|
92
|
+
asChild: {
|
|
93
|
+
type: Boolean,
|
|
94
|
+
required: !1
|
|
95
|
+
},
|
|
96
|
+
as: {
|
|
97
|
+
type: null,
|
|
98
|
+
required: !1
|
|
99
|
+
},
|
|
100
|
+
disableOutsidePointerEvents: {
|
|
101
|
+
type: Boolean,
|
|
102
|
+
required: !1
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
emits: [
|
|
106
|
+
"escapeKeyDown",
|
|
107
|
+
"pointerDownOutside",
|
|
108
|
+
"focusOutside",
|
|
109
|
+
"interactOutside",
|
|
110
|
+
"openAutoFocus",
|
|
111
|
+
"closeAutoFocus"
|
|
112
|
+
],
|
|
113
|
+
setup(s, { emit: h }) {
|
|
114
|
+
let g = s, _ = h, v = i(), y = u(!1);
|
|
115
|
+
e(!0);
|
|
116
|
+
let b = n(g, _), { forwardRef: x, currentElement: S } = t();
|
|
117
|
+
return r(S), (e, t) => (l(), o(a, c(f(b), {
|
|
118
|
+
ref: f(x),
|
|
119
|
+
"trap-focus": f(v).open.value,
|
|
120
|
+
"disable-outside-pointer-events": "",
|
|
121
|
+
onCloseAutoFocus: t[0] ||= m((e) => {
|
|
122
|
+
_("closeAutoFocus", e), y.value || f(v).triggerElement.value?.focus();
|
|
123
|
+
}, ["prevent"]),
|
|
124
|
+
onPointerDownOutside: t[1] ||= (e) => {
|
|
125
|
+
_("pointerDownOutside", e);
|
|
126
|
+
let t = e.detail.originalEvent, n = t.button === 0 && t.ctrlKey === !0, r = t.button === 2 || n;
|
|
127
|
+
y.value = r;
|
|
128
|
+
},
|
|
129
|
+
onFocusOutside: t[2] ||= m(() => {}, ["prevent"])
|
|
130
|
+
}), {
|
|
131
|
+
default: p(() => [d(e.$slots, "default")]),
|
|
132
|
+
_: 3
|
|
133
|
+
}, 16, ["trap-focus"]));
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
//#endregion
|
|
137
|
+
export { h as PopoverContentModal_default };
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { useForwardPropsEmits as e } from "../shared/useForwardPropsEmits.js";
|
|
2
|
+
import { injectPopoverRootContext as t } from "./PopoverRoot.js";
|
|
3
|
+
import { PopoverContentImpl_default as n } from "./PopoverContentImpl.js";
|
|
4
|
+
import { createBlock as r, defineComponent as i, mergeProps as a, openBlock as o, ref as s, renderSlot as c, unref as l, withCtx as u } from "vue";
|
|
5
|
+
//#region node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Popover/PopoverContentNonModal.js
|
|
6
|
+
var d = /* @__PURE__ */ i({
|
|
7
|
+
__name: "PopoverContentNonModal",
|
|
8
|
+
props: {
|
|
9
|
+
memoDependencies: {
|
|
10
|
+
type: Array,
|
|
11
|
+
required: !1
|
|
12
|
+
},
|
|
13
|
+
side: {
|
|
14
|
+
type: null,
|
|
15
|
+
required: !1
|
|
16
|
+
},
|
|
17
|
+
sideOffset: {
|
|
18
|
+
type: Number,
|
|
19
|
+
required: !1
|
|
20
|
+
},
|
|
21
|
+
sideFlip: {
|
|
22
|
+
type: Boolean,
|
|
23
|
+
required: !1
|
|
24
|
+
},
|
|
25
|
+
align: {
|
|
26
|
+
type: null,
|
|
27
|
+
required: !1
|
|
28
|
+
},
|
|
29
|
+
alignOffset: {
|
|
30
|
+
type: Number,
|
|
31
|
+
required: !1
|
|
32
|
+
},
|
|
33
|
+
alignFlip: {
|
|
34
|
+
type: Boolean,
|
|
35
|
+
required: !1
|
|
36
|
+
},
|
|
37
|
+
avoidCollisions: {
|
|
38
|
+
type: Boolean,
|
|
39
|
+
required: !1
|
|
40
|
+
},
|
|
41
|
+
collisionBoundary: {
|
|
42
|
+
type: null,
|
|
43
|
+
required: !1
|
|
44
|
+
},
|
|
45
|
+
collisionPadding: {
|
|
46
|
+
type: [Number, Object],
|
|
47
|
+
required: !1
|
|
48
|
+
},
|
|
49
|
+
arrowPadding: {
|
|
50
|
+
type: Number,
|
|
51
|
+
required: !1
|
|
52
|
+
},
|
|
53
|
+
hideShiftedArrow: {
|
|
54
|
+
type: Boolean,
|
|
55
|
+
required: !1
|
|
56
|
+
},
|
|
57
|
+
sticky: {
|
|
58
|
+
type: String,
|
|
59
|
+
required: !1
|
|
60
|
+
},
|
|
61
|
+
hideWhenDetached: {
|
|
62
|
+
type: Boolean,
|
|
63
|
+
required: !1
|
|
64
|
+
},
|
|
65
|
+
positionStrategy: {
|
|
66
|
+
type: String,
|
|
67
|
+
required: !1
|
|
68
|
+
},
|
|
69
|
+
updatePositionStrategy: {
|
|
70
|
+
type: String,
|
|
71
|
+
required: !1
|
|
72
|
+
},
|
|
73
|
+
disableUpdateOnLayoutShift: {
|
|
74
|
+
type: Boolean,
|
|
75
|
+
required: !1
|
|
76
|
+
},
|
|
77
|
+
prioritizePosition: {
|
|
78
|
+
type: Boolean,
|
|
79
|
+
required: !1
|
|
80
|
+
},
|
|
81
|
+
reference: {
|
|
82
|
+
type: null,
|
|
83
|
+
required: !1
|
|
84
|
+
},
|
|
85
|
+
dir: {
|
|
86
|
+
type: String,
|
|
87
|
+
required: !1
|
|
88
|
+
},
|
|
89
|
+
asChild: {
|
|
90
|
+
type: Boolean,
|
|
91
|
+
required: !1
|
|
92
|
+
},
|
|
93
|
+
as: {
|
|
94
|
+
type: null,
|
|
95
|
+
required: !1
|
|
96
|
+
},
|
|
97
|
+
disableOutsidePointerEvents: {
|
|
98
|
+
type: Boolean,
|
|
99
|
+
required: !1
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
emits: [
|
|
103
|
+
"escapeKeyDown",
|
|
104
|
+
"pointerDownOutside",
|
|
105
|
+
"focusOutside",
|
|
106
|
+
"interactOutside",
|
|
107
|
+
"openAutoFocus",
|
|
108
|
+
"closeAutoFocus"
|
|
109
|
+
],
|
|
110
|
+
setup(i, { emit: d }) {
|
|
111
|
+
let f = i, p = d, m = t(), h = s(!1), g = s(!1), _ = e(f, p);
|
|
112
|
+
return (e, t) => (o(), r(n, a(l(_), {
|
|
113
|
+
"trap-focus": !1,
|
|
114
|
+
"disable-outside-pointer-events": !1,
|
|
115
|
+
onCloseAutoFocus: t[0] ||= (e) => {
|
|
116
|
+
p("closeAutoFocus", e), e.defaultPrevented || (h.value || l(m).triggerElement.value?.focus(), e.preventDefault()), h.value = !1, g.value = !1;
|
|
117
|
+
},
|
|
118
|
+
onInteractOutside: t[1] ||= async (e) => {
|
|
119
|
+
p("interactOutside", e), e.defaultPrevented || (h.value = !0, e.detail.originalEvent.type === "pointerdown" && (g.value = !0));
|
|
120
|
+
let t = e.target;
|
|
121
|
+
l(m).triggerElement.value?.contains(t) && e.preventDefault(), e.detail.originalEvent.type === "focusin" && g.value && e.preventDefault();
|
|
122
|
+
}
|
|
123
|
+
}), {
|
|
124
|
+
default: u(() => [c(e.$slots, "default")]),
|
|
125
|
+
_: 3
|
|
126
|
+
}, 16));
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
//#endregion
|
|
130
|
+
export { d as PopoverContentNonModal_default };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Teleport_default as e } from "../Teleport/Teleport.js";
|
|
2
|
+
import { createBlock as t, defineComponent as n, guardReactiveProps as r, normalizeProps as i, openBlock as a, renderSlot as o, unref as s, withCtx as c } from "vue";
|
|
3
|
+
//#region node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Popover/PopoverPortal.js
|
|
4
|
+
var l = /* @__PURE__ */ n({
|
|
5
|
+
__name: "PopoverPortal",
|
|
6
|
+
props: {
|
|
7
|
+
to: {
|
|
8
|
+
type: null,
|
|
9
|
+
required: !1
|
|
10
|
+
},
|
|
11
|
+
disabled: {
|
|
12
|
+
type: Boolean,
|
|
13
|
+
required: !1
|
|
14
|
+
},
|
|
15
|
+
defer: {
|
|
16
|
+
type: Boolean,
|
|
17
|
+
required: !1
|
|
18
|
+
},
|
|
19
|
+
forceMount: {
|
|
20
|
+
type: Boolean,
|
|
21
|
+
required: !1
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
setup(n) {
|
|
25
|
+
let l = n;
|
|
26
|
+
return (n, u) => (a(), t(s(e), i(r(l)), {
|
|
27
|
+
default: c(() => [o(n.$slots, "default")]),
|
|
28
|
+
_: 3
|
|
29
|
+
}, 16));
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
//#endregion
|
|
33
|
+
export { l as PopoverPortal_default };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { useVModel as e } from "../../../../../@vueuse_core@14.3.0_vue@3.5.39_typescript@5.8.3_/node_modules/@vueuse/core/dist/index.js";
|
|
2
|
+
import { createContext as t } from "../shared/createContext.js";
|
|
3
|
+
import { PopperRoot_default as n } from "../Popper/PopperRoot.js";
|
|
4
|
+
import { createBlock as r, defineComponent as i, openBlock as a, ref as o, renderSlot as s, toRefs as c, unref as l, withCtx as u } from "vue";
|
|
5
|
+
//#region node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Popover/PopoverRoot.js
|
|
6
|
+
var [d, f] = /*#__PURE__*/ t("PopoverRoot"), p = /* @__PURE__ */ i({
|
|
7
|
+
__name: "PopoverRoot",
|
|
8
|
+
props: {
|
|
9
|
+
defaultOpen: {
|
|
10
|
+
type: Boolean,
|
|
11
|
+
required: !1,
|
|
12
|
+
default: !1
|
|
13
|
+
},
|
|
14
|
+
open: {
|
|
15
|
+
type: Boolean,
|
|
16
|
+
required: !1,
|
|
17
|
+
default: void 0
|
|
18
|
+
},
|
|
19
|
+
modal: {
|
|
20
|
+
type: Boolean,
|
|
21
|
+
required: !1,
|
|
22
|
+
default: !1
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
emits: ["update:open"],
|
|
26
|
+
setup(t, { emit: i }) {
|
|
27
|
+
let d = t, p = i, { modal: m } = c(d), h = e(d, "open", p, {
|
|
28
|
+
defaultValue: d.defaultOpen,
|
|
29
|
+
passive: d.open === void 0
|
|
30
|
+
});
|
|
31
|
+
return f({
|
|
32
|
+
contentId: "",
|
|
33
|
+
triggerId: "",
|
|
34
|
+
modal: m,
|
|
35
|
+
open: h,
|
|
36
|
+
onOpenChange: (e) => {
|
|
37
|
+
h.value = e;
|
|
38
|
+
},
|
|
39
|
+
onOpenToggle: () => {
|
|
40
|
+
h.value = !h.value;
|
|
41
|
+
},
|
|
42
|
+
triggerElement: o(),
|
|
43
|
+
hasCustomAnchor: o(!1)
|
|
44
|
+
}), (e, t) => (a(), r(l(n), null, {
|
|
45
|
+
default: u(() => [s(e.$slots, "default", {
|
|
46
|
+
open: l(h),
|
|
47
|
+
close: () => h.value = !1
|
|
48
|
+
})]),
|
|
49
|
+
_: 3
|
|
50
|
+
}));
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
//#endregion
|
|
54
|
+
export { p as PopoverRoot_default, d as injectPopoverRootContext };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { useForwardExpose as e } from "../shared/useForwardExpose.js";
|
|
2
|
+
import { useId as t } from "../shared/useId.js";
|
|
3
|
+
import { Primitive as n } from "../Primitive/Primitive.js";
|
|
4
|
+
import { PopperAnchor_default as r } from "../Popper/PopperAnchor.js";
|
|
5
|
+
import { injectPopoverRootContext as i } from "./PopoverRoot.js";
|
|
6
|
+
import { createBlock as a, createVNode as o, defineComponent as s, onMounted as c, openBlock as l, renderSlot as u, resolveDynamicComponent as d, unref as f, withCtx as p } from "vue";
|
|
7
|
+
//#region node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Popover/PopoverTrigger.js
|
|
8
|
+
var m = /* @__PURE__ */ s({
|
|
9
|
+
__name: "PopoverTrigger",
|
|
10
|
+
props: {
|
|
11
|
+
asChild: {
|
|
12
|
+
type: Boolean,
|
|
13
|
+
required: !1
|
|
14
|
+
},
|
|
15
|
+
as: {
|
|
16
|
+
type: null,
|
|
17
|
+
required: !1,
|
|
18
|
+
default: "button"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
setup(s) {
|
|
22
|
+
let m = s, h = i(), { forwardRef: g, currentElement: _ } = e();
|
|
23
|
+
return h.triggerId ||= t(void 0, "reka-popover-trigger"), c(() => {
|
|
24
|
+
h.triggerElement.value = _.value;
|
|
25
|
+
}), (e, t) => (l(), a(d(f(h).hasCustomAnchor.value ? f(n) : f(r)), { "as-child": "" }, {
|
|
26
|
+
default: p(() => [o(f(n), {
|
|
27
|
+
id: f(h).triggerId,
|
|
28
|
+
ref: f(g),
|
|
29
|
+
type: e.as === "button" ? "button" : void 0,
|
|
30
|
+
"aria-haspopup": "dialog",
|
|
31
|
+
"aria-expanded": f(h).open.value,
|
|
32
|
+
"aria-controls": f(h).contentId,
|
|
33
|
+
"data-state": f(h).open.value ? "open" : "closed",
|
|
34
|
+
as: e.as,
|
|
35
|
+
"as-child": m.asChild,
|
|
36
|
+
onClick: f(h).onOpenToggle
|
|
37
|
+
}, {
|
|
38
|
+
default: p(() => [u(e.$slots, "default")]),
|
|
39
|
+
_: 3
|
|
40
|
+
}, 8, [
|
|
41
|
+
"id",
|
|
42
|
+
"type",
|
|
43
|
+
"aria-expanded",
|
|
44
|
+
"aria-controls",
|
|
45
|
+
"data-state",
|
|
46
|
+
"as",
|
|
47
|
+
"as-child",
|
|
48
|
+
"onClick"
|
|
49
|
+
])]),
|
|
50
|
+
_: 3
|
|
51
|
+
}));
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
//#endregion
|
|
55
|
+
export { m as PopoverTrigger_default };
|