ep-craft 0.1.30 → 0.1.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (154) hide show
  1. package/dist/components/aside/aside.d.ts +26 -0
  2. package/dist/components/aside/aside.js +29 -0
  3. package/dist/components/aside/index.d.ts +2 -2
  4. package/dist/components/aside/index.js +4 -4
  5. package/dist/components/autocomplete/EpAutocomplete.d.ts +494 -0
  6. package/dist/components/autocomplete/EpAutocomplete.js +465 -0
  7. package/dist/components/autocomplete/autocomplete.d.ts +322 -0
  8. package/dist/components/autocomplete/autocomplete.js +120 -0
  9. package/dist/components/autocomplete/index.d.ts +23 -2
  10. package/dist/components/autocomplete/index.js +9 -3
  11. package/dist/components/autocomplete/instance.d.ts +70 -0
  12. package/dist/components/backtop/EpBacktop.vue.d.ts +55 -0
  13. package/dist/components/backtop/EpBacktop.vue.js +59 -0
  14. package/dist/components/backtop/EpBacktop2.vue.js +4 -0
  15. package/dist/components/backtop/backtop.d.ts +43 -0
  16. package/dist/components/backtop/backtop.js +36 -0
  17. package/dist/components/backtop/index.d.ts +35 -2
  18. package/dist/components/backtop/index.js +6 -3
  19. package/dist/components/backtop/instance.d.ts +10 -0
  20. package/dist/components/backtop/use-backtop.d.ts +13 -0
  21. package/dist/components/backtop/use-backtop.js +23 -0
  22. package/dist/components/checkbox/EpCheckbox.vue.d.ts +147 -0
  23. package/dist/components/checkbox/EpCheckbox.vue.js +101 -0
  24. package/dist/components/checkbox/EpCheckbox2.vue.js +4 -0
  25. package/dist/components/checkbox/index.d.ts +34 -2
  26. package/dist/components/checkbox/index.js +10 -4
  27. package/dist/components/checkbox/instance.d.ts +10 -0
  28. package/dist/components/checkbox/src/checkbox.d.ts +208 -0
  29. package/dist/components/checkbox/src/checkbox.js +119 -0
  30. package/dist/components/checkbox/src/composables/use-checkbox-disabled.d.ts +7 -0
  31. package/dist/components/checkbox/src/composables/use-checkbox-disabled.js +31 -0
  32. package/dist/components/checkbox/src/composables/use-checkbox-event.d.ts +9 -0
  33. package/dist/components/checkbox/src/composables/use-checkbox-event.js +48 -0
  34. package/dist/components/checkbox/src/composables/use-checkbox-model.d.ts +7 -0
  35. package/dist/components/checkbox/src/composables/use-checkbox-model.js +31 -0
  36. package/dist/components/checkbox/src/composables/use-checkbox-status.d.ts +12 -0
  37. package/dist/components/checkbox/src/composables/use-checkbox-status.js +33 -0
  38. package/dist/components/checkbox/src/composables/use-checkbox.d.ts +16 -0
  39. package/dist/components/checkbox/src/composables/use-checkbox.js +81 -0
  40. package/dist/components/checkbox/src/constants.d.ts +8 -0
  41. package/dist/components/checkbox/src/constants.js +4 -0
  42. package/dist/components/checkbox-button/EpCheckboxButton.vue.d.ts +147 -0
  43. package/dist/components/checkbox-button/EpCheckboxButton.vue.js +84 -0
  44. package/dist/components/checkbox-button/EpCheckboxButton2.vue.js +4 -0
  45. package/dist/components/checkbox-button/index.d.ts +24 -2
  46. package/dist/components/checkbox-button/index.js +6 -3
  47. package/dist/components/checkbox-button/instance.d.ts +10 -0
  48. package/dist/components/checkbox-group/EpCheckboxGroup.vue.d.ts +74 -0
  49. package/dist/components/checkbox-group/EpCheckboxGroup.vue.js +92 -0
  50. package/dist/components/checkbox-group/EpCheckboxGroup2.vue.js +4 -0
  51. package/dist/components/checkbox-group/index.d.ts +27 -2
  52. package/dist/components/checkbox-group/index.js +10 -4
  53. package/dist/components/checkbox-group/instance.d.ts +10 -0
  54. package/dist/components/checkbox-group/src/checkbox-group.d.ts +102 -0
  55. package/dist/components/checkbox-group/src/checkbox-group.js +84 -0
  56. package/dist/components/container/container.d.ts +35 -0
  57. package/dist/components/container/container.js +26 -0
  58. package/dist/components/container/index.d.ts +23 -2
  59. package/dist/components/container/index.js +13 -4
  60. package/dist/components/date-picker/src/date-picker.d.ts +5 -5
  61. package/dist/components/footer/footer.d.ts +28 -0
  62. package/dist/components/footer/footer.js +29 -0
  63. package/dist/components/footer/index.d.ts +2 -2
  64. package/dist/components/footer/index.js +4 -4
  65. package/dist/components/header/header.d.ts +28 -0
  66. package/dist/components/header/header.js +29 -0
  67. package/dist/components/header/index.d.ts +2 -2
  68. package/dist/components/header/index.js +4 -4
  69. package/dist/components/input/index.d.ts +177 -0
  70. package/dist/components/input/index.js +8 -6
  71. package/dist/components/input/input.d.ts +2 -2
  72. package/dist/components/input/input.js +6 -6
  73. package/dist/components/input-number/EpInputNumber.vue.d.ts +5 -5
  74. package/dist/components/input-number/input-number.d.ts +2 -2
  75. package/dist/components/main/index.d.ts +2 -2
  76. package/dist/components/main/index.js +3 -3
  77. package/dist/components/main/main.d.ts +14 -0
  78. package/dist/components/main/main.js +14 -0
  79. package/dist/components/pagination/index.d.ts +4 -2
  80. package/dist/components/pagination/index.js +9 -3
  81. package/dist/components/pagination/src/components/jumper.d.ts +13 -0
  82. package/dist/components/pagination/src/components/jumper.js +16 -0
  83. package/dist/components/pagination/src/components/jumper.vue.d.ts +16 -0
  84. package/dist/components/pagination/src/components/jumper.vue.js +58 -0
  85. package/dist/components/pagination/src/components/jumper2.vue.js +4 -0
  86. package/dist/components/pagination/src/components/next.d.ts +22 -0
  87. package/dist/components/pagination/src/components/next.js +26 -0
  88. package/dist/components/pagination/src/components/next.vue.d.ts +42 -0
  89. package/dist/components/pagination/src/components/next.vue.js +44 -0
  90. package/dist/components/pagination/src/components/next2.vue.js +4 -0
  91. package/dist/components/pagination/src/components/pager.d.ts +16 -0
  92. package/dist/components/pagination/src/components/pager.js +24 -0
  93. package/dist/components/pagination/src/components/pager.vue.d.ts +30 -0
  94. package/dist/components/pagination/src/components/pager.vue.js +148 -0
  95. package/dist/components/pagination/src/components/pager2.vue.js +4 -0
  96. package/dist/components/pagination/src/components/prev.d.ts +24 -0
  97. package/dist/components/pagination/src/components/prev.js +25 -0
  98. package/dist/components/pagination/src/components/prev.vue.d.ts +39 -0
  99. package/dist/components/pagination/src/components/prev.vue.js +44 -0
  100. package/dist/components/pagination/src/components/prev2.vue.js +4 -0
  101. package/dist/components/pagination/src/components/sizes.d.ts +35 -0
  102. package/dist/components/pagination/src/components/sizes.js +34 -0
  103. package/dist/components/pagination/src/components/sizes.vue.d.ts +68 -0
  104. package/dist/components/pagination/src/components/sizes.vue.js +73 -0
  105. package/dist/components/pagination/src/components/sizes2.vue.js +4 -0
  106. package/dist/components/pagination/src/components/total.d.ts +8 -0
  107. package/dist/components/pagination/src/components/total.js +15 -0
  108. package/dist/components/pagination/src/components/total.vue.d.ts +8 -0
  109. package/dist/components/pagination/src/components/total.vue.js +33 -0
  110. package/dist/components/pagination/src/components/total2.vue.js +4 -0
  111. package/dist/components/pagination/src/constants.d.ts +9 -0
  112. package/dist/components/pagination/src/constants.js +4 -0
  113. package/dist/components/pagination/src/pagination.d.ts +147 -0
  114. package/dist/components/pagination/src/pagination.js +314 -0
  115. package/dist/components/pagination/src/usePagination.d.ts +1 -0
  116. package/dist/components/pagination/src/usePagination.js +6 -0
  117. package/dist/components/popper/src/content.vue.d.ts +6 -6
  118. package/dist/components/scrollbar/index.d.ts +217 -6
  119. package/dist/components/scrollbar/index.js +12 -5
  120. package/dist/components/scrollbar/src/bar.d.ts +23 -0
  121. package/dist/components/scrollbar/src/bar.js +19 -0
  122. package/dist/components/scrollbar/src/bar.vue.d.ts +23 -0
  123. package/dist/components/scrollbar/src/bar.vue.js +43 -0
  124. package/dist/components/scrollbar/src/bar2.vue.js +4 -0
  125. package/dist/components/scrollbar/src/constants.d.ts +6 -0
  126. package/dist/components/scrollbar/src/constants.js +4 -0
  127. package/dist/components/scrollbar/src/scrollbar.d.ts +111 -6
  128. package/dist/components/scrollbar/src/scrollbar.js +108 -7
  129. package/dist/components/scrollbar/src/scrollbar.vue.d.ts +101 -0
  130. package/dist/components/scrollbar/src/scrollbar.vue.js +178 -0
  131. package/dist/components/scrollbar/src/scrollbar2.vue.js +4 -0
  132. package/dist/components/scrollbar/src/thumb.d.ts +29 -0
  133. package/dist/components/scrollbar/src/thumb.js +19 -0
  134. package/dist/components/scrollbar/src/thumb.vue.d.ts +27 -0
  135. package/dist/components/scrollbar/src/thumb.vue.js +109 -0
  136. package/dist/components/scrollbar/src/thumb2.vue.js +4 -0
  137. package/dist/components/scrollbar/src/util.d.ts +2 -14
  138. package/dist/components/scrollbar/src/util.js +12 -3
  139. package/dist/components/select/index.d.ts +2214 -0
  140. package/dist/components/select/index.js +10 -7
  141. package/dist/components/select/select.vue.d.ts +148 -90
  142. package/dist/components/select-v2/src/select.vue.d.ts +30 -30
  143. package/dist/components/time-picker/src/common/picker.vue.d.ts +5 -5
  144. package/dist/components/time-picker/src/time-picker.d.ts +5 -5
  145. package/dist/components/tooltip/index.d.ts +24 -24
  146. package/dist/components/tooltip/src/content.vue.d.ts +6 -6
  147. package/dist/components/tooltip/src/tooltip.vue.d.ts +8 -8
  148. package/dist/ep-craft.js +187 -179
  149. package/dist/index.css +1 -1
  150. package/dist/index.d.ts +18 -0
  151. package/dist/vendored-components.d.ts +5 -2
  152. package/dist/vendored-components.js +22 -1
  153. package/package.json +5 -2
  154. package/theme-chalk/src/float-label.scss +51 -26
@@ -0,0 +1,465 @@
1
+ import { EVENT_CODE as f } from "../../constants/aria.js";
2
+ import { INPUT_EVENT as Q, UPDATE_MODEL_EVENT as R, CHANGE_EVENT as Ee } from "../../constants/event.js";
3
+ import { isArray as A } from "@vue/shared";
4
+ import { pick as we } from "lodash-unified";
5
+ import { useDebounceFn as $e, onClickOutside as Ce } from "@vueuse/core";
6
+ import { throwError as Se } from "../../utils/error.js";
7
+ import { getEventCode as De } from "../../utils/dom/event.js";
8
+ import { Loading as Ne } from "@element-plus/icons-vue";
9
+ import { defineComponent as Ie, computed as E, useAttrs as Te, ref as v, onBeforeUnmount as Ae, onMounted as Fe, openBlock as w, createBlock as Ve, unref as o, withCtx as m, createElementVNode as X, normalizeStyle as Y, normalizeClass as $, createVNode as F, mergeProps as Z, createSlots as Pe, renderSlot as g, createElementBlock as D, withModifiers as _, createCommentVNode as ee, Fragment as Me, renderList as Oe, createTextVNode as Re, toDisplayString as Be } from "vue";
10
+ import { useNamespace as Ke } from "../../hooks/use-namespace/index.js";
11
+ import { useId as Ue } from "../../hooks/use-id/index.js";
12
+ import "../../hooks/use-size/index.js";
13
+ import "@popperjs/core";
14
+ import "../../hooks/use-z-index/index.js";
15
+ import "../../hooks/use-delayed-toggle/index.js";
16
+ import "../../hooks/use-aria/index.js";
17
+ import "../../hooks/use-model-toggle/index.js";
18
+ import "../../hooks/use-empty-values/index.js";
19
+ import { ElIcon as Le } from "../icon/index.js";
20
+ import { useFormDisabled as We } from "../form/src/hooks/use-form-common-props.js";
21
+ import { ElTooltip as qe } from "../tooltip/index.js";
22
+ import { ElInput as te } from "../input/index.js";
23
+ import { autocompleteEmits as He, autocompleteProps as ze } from "./autocomplete.js";
24
+ import { ElScrollbar as xe } from "../scrollbar/index.js";
25
+ const Ge = ["aria-expanded", "aria-owns"], je = { key: 0 }, Je = ["id", "aria-selected", "onClick"], oe = "ElAutocomplete", yt = /* @__PURE__ */ Ie({
26
+ name: oe,
27
+ inheritAttrs: !1,
28
+ props: ze,
29
+ emits: He,
30
+ setup(i, { expose: se, emit: le }) {
31
+ const l = i, u = le, ae = E(() => {
32
+ const e = te.props ?? [];
33
+ return we(
34
+ l,
35
+ A(e) ? e : Object.keys(e)
36
+ );
37
+ }), ne = Te(), B = We(), r = Ke("autocomplete"), p = v(), K = v(), N = v(), U = v();
38
+ let L = !1, C = !1;
39
+ const n = v([]), s = v(-1), W = v(""), c = v(!1), I = v(!1), y = v(!1), k = Ue(), re = E(() => ne.style), h = E(() => (n.value.length > 0 || y.value) && c.value), q = E(() => !l.hideLoading && y.value), ie = E(() => p.value ? Array.from(p.value.$el.querySelectorAll("input")) : []), ue = () => {
40
+ h.value && (W.value = `${p.value.$el.offsetWidth}px`);
41
+ }, ce = () => {
42
+ s.value = -1;
43
+ }, H = async (e) => {
44
+ if (I.value) return;
45
+ const t = (a) => {
46
+ y.value = !1, !I.value && (A(a) ? (n.value = a, s.value = l.highlightFirstItem ? 0 : -1) : Se(
47
+ oe,
48
+ "autocomplete suggestions must be an array"
49
+ ));
50
+ };
51
+ if (y.value = !0, A(l.fetchSuggestions)) t(l.fetchSuggestions);
52
+ else {
53
+ const a = await l.fetchSuggestions(e, t);
54
+ A(a) && t(a);
55
+ }
56
+ }, V = $e(
57
+ H,
58
+ E(() => l.debounce)
59
+ ), pe = (e) => {
60
+ const t = !!e;
61
+ if (u(Q, e), u(R, e), I.value = !1, c.value || (c.value = t), !l.triggerOnFocus && !e) {
62
+ I.value = !0, n.value = [];
63
+ return;
64
+ }
65
+ V(e);
66
+ }, fe = (e) => {
67
+ var t;
68
+ B.value || (((t = e.target) == null ? void 0 : t.tagName) !== "INPUT" || ie.value.includes(document.activeElement)) && (c.value = !0);
69
+ }, ve = (e) => {
70
+ u(Ee, e);
71
+ }, de = (e) => {
72
+ if (C)
73
+ C = !1;
74
+ else {
75
+ c.value = !0, u("focus", e);
76
+ const t = l.modelValue ?? "";
77
+ l.triggerOnFocus && !L && V(String(t));
78
+ }
79
+ }, z = (e) => {
80
+ setTimeout(() => {
81
+ var t;
82
+ if ((t = N.value) != null && t.isFocusInsideContent()) {
83
+ C = !0;
84
+ return;
85
+ }
86
+ c.value && S(), u("blur", e);
87
+ });
88
+ }, me = () => {
89
+ c.value = !1, u(R, ""), u("clear");
90
+ }, x = async () => {
91
+ var e;
92
+ (e = p.value) != null && e.isComposing || (h.value && s.value >= 0 && s.value < n.value.length ? P(n.value[s.value]) : (l.selectWhenUnmatched && (u("select", { value: l.modelValue }), n.value = [], s.value = -1), c.value = !0, V(String(l.modelValue))));
93
+ }, ge = (e) => {
94
+ h.value && (e.preventDefault(), e.stopPropagation(), S());
95
+ }, S = () => {
96
+ c.value = !1;
97
+ }, he = () => {
98
+ var e;
99
+ (e = p.value) == null || e.focus();
100
+ }, be = () => {
101
+ var e;
102
+ (e = p.value) == null || e.blur();
103
+ }, P = async (e) => {
104
+ u(Q, e[l.valueKey]), u(R, e[l.valueKey]), u("select", e), n.value = [], s.value = -1;
105
+ }, b = (e) => {
106
+ var j, J;
107
+ if (!h.value || y.value) return;
108
+ if (e < 0) {
109
+ if (!l.loopNavigation) {
110
+ s.value = -1;
111
+ return;
112
+ }
113
+ e = n.value.length - 1;
114
+ }
115
+ e >= n.value.length && (e = l.loopNavigation ? 0 : n.value.length - 1);
116
+ const [t, a] = ye(), d = a[e], O = t.scrollTop, { offsetTop: T, scrollHeight: G } = d;
117
+ T + G > O + t.clientHeight && (t.scrollTop = T + G - t.clientHeight), T < O && (t.scrollTop = T), s.value = e, (J = (j = p.value) == null ? void 0 : j.ref) == null || J.setAttribute(
118
+ "aria-activedescendant",
119
+ `${k.value}-item-${s.value}`
120
+ );
121
+ }, ye = () => {
122
+ const e = K.value.querySelector(
123
+ `.${r.be("suggestion", "wrap")}`
124
+ );
125
+ return [
126
+ e,
127
+ e.querySelectorAll(
128
+ `.${r.be("suggestion", "list")} li`
129
+ )
130
+ ];
131
+ }, M = Ce(U, (e) => {
132
+ var a;
133
+ if ((a = N.value) != null && a.isFocusInsideContent()) return;
134
+ const t = C;
135
+ C = !1, h.value && (t ? z(new FocusEvent("blur", e)) : S());
136
+ }), ke = (e) => {
137
+ switch (De(e)) {
138
+ case f.up:
139
+ e.preventDefault(), b(s.value - 1);
140
+ break;
141
+ case f.down:
142
+ e.preventDefault(), b(s.value + 1);
143
+ break;
144
+ case f.enter:
145
+ case f.numpadEnter:
146
+ e.preventDefault(), x();
147
+ break;
148
+ case f.tab:
149
+ S();
150
+ break;
151
+ case f.esc:
152
+ ge(e);
153
+ break;
154
+ case f.home:
155
+ e.preventDefault(), b(0);
156
+ break;
157
+ case f.end:
158
+ e.preventDefault(), b(n.value.length - 1);
159
+ break;
160
+ case f.pageUp:
161
+ e.preventDefault(), b(Math.max(0, s.value - 10));
162
+ break;
163
+ case f.pageDown:
164
+ e.preventDefault(), b(
165
+ Math.min(n.value.length - 1, s.value + 10)
166
+ );
167
+ break;
168
+ }
169
+ };
170
+ return Ae(() => {
171
+ M == null || M();
172
+ }), Fe(() => {
173
+ var t;
174
+ const e = (t = p.value) == null ? void 0 : t.ref;
175
+ e && ([
176
+ {
177
+ key: "role",
178
+ value: "textbox"
179
+ },
180
+ {
181
+ key: "aria-autocomplete",
182
+ value: "list"
183
+ },
184
+ {
185
+ key: "aria-controls",
186
+ value: k.value
187
+ },
188
+ {
189
+ key: "aria-activedescendant",
190
+ value: `${k.value}-item-${s.value}`
191
+ }
192
+ ].forEach(({ key: a, value: d }) => e.setAttribute(a, d)), L = e.hasAttribute("readonly"));
193
+ }), se({
194
+ /** @description the index of the currently highlighted item */
195
+ highlightedIndex: s,
196
+ /** @description autocomplete whether activated */
197
+ activated: c,
198
+ /** @description remote search loading status */
199
+ loading: y,
200
+ /** @description el-input component instance */
201
+ inputRef: p,
202
+ /** @description el-tooltip component instance */
203
+ popperRef: N,
204
+ /** @description fetch suggestions result */
205
+ suggestions: n,
206
+ /** @description triggers when a suggestion is clicked */
207
+ handleSelect: P,
208
+ /** @description handle keyboard enter event */
209
+ handleKeyEnter: x,
210
+ /** @description focus the input element */
211
+ focus: he,
212
+ /** @description blur the input element */
213
+ blur: be,
214
+ /** @description close suggestion */
215
+ close: S,
216
+ /** @description highlight an item in a suggestion */
217
+ highlight: b,
218
+ /** @description loading suggestion list */
219
+ getData: H
220
+ }), (e, t) => (w(), Ve(
221
+ o(qe),
222
+ {
223
+ ref_key: "popperRef",
224
+ ref: N,
225
+ visible: h.value,
226
+ placement: i.placement,
227
+ "fallback-placements": ["bottom-start", "top-start"],
228
+ "popper-class": [o(r).e("popper"), i.popperClass],
229
+ "popper-style": i.popperStyle,
230
+ "popper-options": i.popperOptions,
231
+ "show-arrow": i.showArrow,
232
+ teleported: i.teleported,
233
+ "append-to": i.appendTo,
234
+ "gpu-acceleration": !1,
235
+ pure: "",
236
+ "manual-mode": "",
237
+ effect: "light",
238
+ trigger: "click",
239
+ transition: `${o(r).namespace.value}-zoom-in-top`,
240
+ persistent: "",
241
+ role: "listbox",
242
+ onBeforeShow: ue,
243
+ onHide: ce
244
+ },
245
+ {
246
+ content: m(() => [
247
+ X(
248
+ "div",
249
+ {
250
+ ref_key: "regionRef",
251
+ ref: K,
252
+ class: $([
253
+ o(r).b("suggestion"),
254
+ o(r).is("loading", q.value)
255
+ ]),
256
+ style: Y({
257
+ [i.fitInputWidth ? "width" : "minWidth"]: W.value,
258
+ outline: "none"
259
+ }),
260
+ role: "region"
261
+ },
262
+ [
263
+ e.$slots.header ? (w(), D(
264
+ "div",
265
+ {
266
+ key: 0,
267
+ class: $(
268
+ o(r).be("suggestion", "header")
269
+ ),
270
+ onClick: t[0] || (t[0] = _(() => {
271
+ }, ["stop"]))
272
+ },
273
+ [g(e.$slots, "header")],
274
+ 2
275
+ )) : ee("v-if", !0),
276
+ F(
277
+ o(xe),
278
+ {
279
+ id: o(k),
280
+ tag: "ul",
281
+ "wrap-class": o(r).be("suggestion", "wrap"),
282
+ "view-class": o(r).be("suggestion", "list"),
283
+ role: "listbox"
284
+ },
285
+ {
286
+ default: m(() => [
287
+ q.value ? (w(), D("li", je, [
288
+ g(e.$slots, "loading", {}, () => [
289
+ F(
290
+ o(Le),
291
+ {
292
+ class: $(
293
+ o(r).is("loading")
294
+ )
295
+ },
296
+ {
297
+ default: m(() => [
298
+ F(o(Ne))
299
+ ]),
300
+ _: 1
301
+ },
302
+ 8,
303
+ ["class"]
304
+ )
305
+ ])
306
+ ])) : (w(!0), D(
307
+ Me,
308
+ { key: 1 },
309
+ Oe(n.value, (a, d) => (w(), D(
310
+ "li",
311
+ {
312
+ id: `${o(k)}-item-${d}`,
313
+ key: d,
314
+ class: $({
315
+ highlighted: s.value === d
316
+ }),
317
+ role: "option",
318
+ "aria-selected": s.value === d,
319
+ // class ②:上游 JS 的 `$event` 未用亦无类型,strict 下须标注。
320
+ onClick: (O) => P(a)
321
+ },
322
+ [
323
+ g(
324
+ e.$slots,
325
+ "default",
326
+ { item: a },
327
+ () => [
328
+ Re(
329
+ Be(
330
+ a[i.valueKey]
331
+ ),
332
+ 1
333
+ )
334
+ ]
335
+ )
336
+ ],
337
+ 10,
338
+ Je
339
+ ))),
340
+ 128
341
+ ))
342
+ ]),
343
+ _: 3
344
+ },
345
+ 8,
346
+ ["id", "wrap-class", "view-class"]
347
+ ),
348
+ e.$slots.footer ? (w(), D(
349
+ "div",
350
+ {
351
+ key: 1,
352
+ class: $(
353
+ o(r).be("suggestion", "footer")
354
+ ),
355
+ onClick: t[1] || (t[1] = _(() => {
356
+ }, ["stop"]))
357
+ },
358
+ [g(e.$slots, "footer")],
359
+ 2
360
+ )) : ee("v-if", !0)
361
+ ],
362
+ 6
363
+ )
364
+ ]),
365
+ default: m(() => [
366
+ X(
367
+ "div",
368
+ {
369
+ ref_key: "listboxRef",
370
+ ref: U,
371
+ class: $([o(r).b(), e.$attrs.class]),
372
+ style: Y(re.value),
373
+ role: "combobox",
374
+ "aria-haspopup": "listbox",
375
+ "aria-expanded": h.value,
376
+ "aria-owns": o(k)
377
+ },
378
+ [
379
+ F(
380
+ o(te),
381
+ Z(
382
+ {
383
+ ref_key: "inputRef",
384
+ ref: p
385
+ },
386
+ Z(ae.value, e.$attrs),
387
+ {
388
+ "model-value": i.modelValue,
389
+ disabled: o(B),
390
+ onInput: pe,
391
+ onChange: ve,
392
+ onFocus: de,
393
+ onBlur: z,
394
+ onClear: me,
395
+ onKeydown: ke,
396
+ onMousedown: fe
397
+ }
398
+ ),
399
+ // class ②:`createSlots` 在 Vue 3.5.40 的公开签名是 **SSR 口径**——首参为
400
+ // `Record<string, SSRSlot>`、描述符 `fn` 要求 `SSRSlot`,而 `SSRSlot` /
401
+ // `CompiledSlotDescriptor` 均未导出;同时 `withCtx` 的返回类型被声明为宽泛的
402
+ // `Function`。两者叠加使上游编译产物的这一处无法自然通过类型检查,故按 Vue
403
+ // **自身签名的参数类型**做断言(参数形状与上游逐字相同,运行时零差异)。
404
+ // 注意首参 `{ _: 2 }` 是编译器写入的 `SlotFlags.DYNAMIC` 标记,**必须原样保留**。
405
+ Pe(
406
+ { _: 2 },
407
+ [
408
+ e.$slots.prepend ? {
409
+ name: "prepend",
410
+ fn: m(() => [
411
+ g(e.$slots, "prepend")
412
+ ]),
413
+ key: "0"
414
+ } : void 0,
415
+ e.$slots.append ? {
416
+ name: "append",
417
+ fn: m(() => [
418
+ g(e.$slots, "append")
419
+ ]),
420
+ key: "1"
421
+ } : void 0,
422
+ e.$slots.prefix ? {
423
+ name: "prefix",
424
+ fn: m(() => [
425
+ g(e.$slots, "prefix")
426
+ ]),
427
+ key: "2"
428
+ } : void 0,
429
+ e.$slots.suffix ? {
430
+ name: "suffix",
431
+ fn: m(() => [
432
+ g(e.$slots, "suffix")
433
+ ]),
434
+ key: "3"
435
+ } : void 0
436
+ ]
437
+ ),
438
+ 1040,
439
+ ["model-value", "disabled"]
440
+ )
441
+ ],
442
+ 14,
443
+ Ge
444
+ )
445
+ ]),
446
+ _: 3
447
+ },
448
+ 8,
449
+ [
450
+ "visible",
451
+ "placement",
452
+ "popper-class",
453
+ "popper-style",
454
+ "popper-options",
455
+ "show-arrow",
456
+ "teleported",
457
+ "append-to",
458
+ "transition"
459
+ ]
460
+ ));
461
+ }
462
+ });
463
+ export {
464
+ yt as default
465
+ };