st-comp 0.0.174 → 0.0.175
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/es/VarSelectDialog.cjs +2 -2
- package/es/VarSelectDialog.js +44 -42
- package/es/VarietySearch.cjs +6 -6
- package/es/VarietySearch.js +910 -904
- package/es/style.css +1 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +133 -133
- package/lib/{index-c5c93747.js → index-d3f4c395.js} +5142 -5134
- package/lib/{python-1b054f75.js → python-0128b724.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/VarSelectDialog/index.vue +3 -1
- package/packages/VarietySearch/components/FactorScreen/index.vue +218 -215
package/es/VarSelectDialog.js
CHANGED
|
@@ -6,7 +6,7 @@ import { u as Pi, E as Hn } from "./el-input-22e66e37.js";
|
|
|
6
6
|
import "./el-tag-7f391090.js";
|
|
7
7
|
import { E as Oi, a as Ii } from "./el-select-d7a00294.js";
|
|
8
8
|
import { o as Di } from "./el-scrollbar-45318df0.js";
|
|
9
|
-
import { defineComponent as Gn, useAttrs as Mi, ref as H, computed as it, onBeforeUnmount as zi, onMounted as Kn, openBlock as V, createBlock as ot, unref as M, withCtx as ne, createElementVNode as
|
|
9
|
+
import { defineComponent as Gn, useAttrs as Mi, ref as H, computed as it, onBeforeUnmount as zi, onMounted as Kn, openBlock as V, createBlock as ot, unref as M, withCtx as ne, createElementVNode as pe, normalizeClass as Et, normalizeStyle as Kt, createVNode as de, createElementBlock as Z, renderSlot as Xe, Fragment as Fe, renderList as at, createTextVNode as Jn, toDisplayString as Ve, mergeProps as Ai, withKeys as rt, withModifiers as Xn, createSlots as Ci, inject as Qn, createCommentVNode as Te, withDirectives as Ri, vShow as ji, pushScopeId as Fi, popScopeId as Vi } from "vue";
|
|
10
10
|
import { g as $i, c as Ni } from "./_commonjsHelpers-10dfc225.js";
|
|
11
11
|
import { E as Zn, l as Bi, c as Li, i as Wi } from "./index-ee1cebbc.js";
|
|
12
12
|
import { V as Xi } from "./index-7ed0999e.js";
|
|
@@ -148,7 +148,7 @@ const Hi = gi({
|
|
|
148
148
|
});
|
|
149
149
|
}, st = () => {
|
|
150
150
|
N.value = !1, Y(St, ""), Y("clear");
|
|
151
|
-
},
|
|
151
|
+
}, fe = async () => {
|
|
152
152
|
U.value && O.value >= 0 && O.value < $.value.length ? Ne($.value[O.value]) : z.selectWhenUnmatched && (Y("select", { value: z.modelValue }), $.value = [], O.value = -1);
|
|
153
153
|
}, me = (x) => {
|
|
154
154
|
U.value && (x.preventDefault(), x.stopPropagation(), be());
|
|
@@ -188,7 +188,7 @@ const Hi = gi({
|
|
|
188
188
|
popperRef: C,
|
|
189
189
|
suggestions: $,
|
|
190
190
|
handleSelect: Ne,
|
|
191
|
-
handleKeyEnter:
|
|
191
|
+
handleKeyEnter: fe,
|
|
192
192
|
focus: lt,
|
|
193
193
|
blur: Ye,
|
|
194
194
|
close: be,
|
|
@@ -214,7 +214,7 @@ const Hi = gi({
|
|
|
214
214
|
onHide: ge
|
|
215
215
|
}, {
|
|
216
216
|
content: ne(() => [
|
|
217
|
-
|
|
217
|
+
pe("div", {
|
|
218
218
|
ref_key: "regionRef",
|
|
219
219
|
ref: W,
|
|
220
220
|
class: Et([M(P).b("suggestion"), M(P).is("loading", M(d))]),
|
|
@@ -224,7 +224,7 @@ const Hi = gi({
|
|
|
224
224
|
}),
|
|
225
225
|
role: "region"
|
|
226
226
|
}, [
|
|
227
|
-
|
|
227
|
+
de(M(Ti), {
|
|
228
228
|
id: M(X),
|
|
229
229
|
tag: "ul",
|
|
230
230
|
"wrap-class": M(P).be("suggestion", "wrap"),
|
|
@@ -234,11 +234,11 @@ const Hi = gi({
|
|
|
234
234
|
default: ne(() => [
|
|
235
235
|
M(d) ? (V(), Z("li", { key: 0 }, [
|
|
236
236
|
Xe(x.$slots, "loading", {}, () => [
|
|
237
|
-
|
|
237
|
+
de(M(Zn), {
|
|
238
238
|
class: Et(M(P).is("loading"))
|
|
239
239
|
}, {
|
|
240
240
|
default: ne(() => [
|
|
241
|
-
|
|
241
|
+
de(M(Bi))
|
|
242
242
|
]),
|
|
243
243
|
_: 1
|
|
244
244
|
}, 8, ["class"])
|
|
@@ -261,7 +261,7 @@ const Hi = gi({
|
|
|
261
261
|
], 6)
|
|
262
262
|
]),
|
|
263
263
|
default: ne(() => [
|
|
264
|
-
|
|
264
|
+
pe("div", {
|
|
265
265
|
ref_key: "listboxRef",
|
|
266
266
|
ref: ee,
|
|
267
267
|
class: Et([M(P).b(), x.$attrs.class]),
|
|
@@ -271,7 +271,7 @@ const Hi = gi({
|
|
|
271
271
|
"aria-expanded": M(U),
|
|
272
272
|
"aria-owns": M(X)
|
|
273
273
|
}, [
|
|
274
|
-
|
|
274
|
+
de(M(Hn), Ai({
|
|
275
275
|
ref_key: "inputRef",
|
|
276
276
|
ref: F
|
|
277
277
|
}, M(re), {
|
|
@@ -288,7 +288,7 @@ const Hi = gi({
|
|
|
288
288
|
onKeydown: [
|
|
289
289
|
rt(Xn((y) => Me(O.value - 1), ["prevent"]), ["up"]),
|
|
290
290
|
rt(Xn((y) => Me(O.value + 1), ["prevent"]), ["down"]),
|
|
291
|
-
rt(
|
|
291
|
+
rt(fe, ["enter"]),
|
|
292
292
|
rt(be, ["tab"]),
|
|
293
293
|
rt(me, ["esc"])
|
|
294
294
|
],
|
|
@@ -546,11 +546,11 @@ Tt.exports;
|
|
|
546
546
|
for (; d.element(t); ) {
|
|
547
547
|
if (me(t, e))
|
|
548
548
|
return t;
|
|
549
|
-
t =
|
|
549
|
+
t = fe(t);
|
|
550
550
|
}
|
|
551
551
|
return null;
|
|
552
552
|
}
|
|
553
|
-
function
|
|
553
|
+
function fe(t) {
|
|
554
554
|
var e = t.parentNode;
|
|
555
555
|
if (d.docFrag(e)) {
|
|
556
556
|
for (; (e = e.host) && d.docFrag(e); )
|
|
@@ -574,7 +574,7 @@ Tt.exports;
|
|
|
574
574
|
for (; d.element(t); ) {
|
|
575
575
|
if (me(t, e))
|
|
576
576
|
return !0;
|
|
577
|
-
if ((t =
|
|
577
|
+
if ((t = fe(t)) === n)
|
|
578
578
|
return me(t, e);
|
|
579
579
|
}
|
|
580
580
|
return !1;
|
|
@@ -596,7 +596,7 @@ Tt.exports;
|
|
|
596
596
|
}
|
|
597
597
|
function x(t) {
|
|
598
598
|
for (var e = []; t; )
|
|
599
|
-
e.push(t), t =
|
|
599
|
+
e.push(t), t = fe(t);
|
|
600
600
|
return e;
|
|
601
601
|
}
|
|
602
602
|
function L(t) {
|
|
@@ -608,7 +608,7 @@ Tt.exports;
|
|
|
608
608
|
return t;
|
|
609
609
|
}
|
|
610
610
|
function xe(t, e, n) {
|
|
611
|
-
return t === "parent" ?
|
|
611
|
+
return t === "parent" ? fe(n) : t === "self" ? e.getRect(n) : st(n, t);
|
|
612
612
|
}
|
|
613
613
|
function we(t, e, n, r) {
|
|
614
614
|
var i = t;
|
|
@@ -1212,7 +1212,7 @@ Tt.exports;
|
|
|
1212
1212
|
var u = hr(t, e, n, o, a, r, i);
|
|
1213
1213
|
if (u.action && !u.interactable.options[u.action.name].manualStart)
|
|
1214
1214
|
return u;
|
|
1215
|
-
s =
|
|
1215
|
+
s = fe(s);
|
|
1216
1216
|
}
|
|
1217
1217
|
return { action: null, interactable: null, element: null };
|
|
1218
1218
|
}
|
|
@@ -1299,7 +1299,7 @@ Tt.exports;
|
|
|
1299
1299
|
n.prepared.name = "drag", n.interactable = h, n.element = p;
|
|
1300
1300
|
break;
|
|
1301
1301
|
}
|
|
1302
|
-
p =
|
|
1302
|
+
p = fe(p);
|
|
1303
1303
|
}
|
|
1304
1304
|
}
|
|
1305
1305
|
}
|
|
@@ -1801,7 +1801,7 @@ Tt.exports;
|
|
|
1801
1801
|
r.resume(t);
|
|
1802
1802
|
break;
|
|
1803
1803
|
}
|
|
1804
|
-
i =
|
|
1804
|
+
i = fe(i);
|
|
1805
1805
|
}
|
|
1806
1806
|
}, "interactions:stop": function(t) {
|
|
1807
1807
|
var e = t.interaction.inertia;
|
|
@@ -1959,7 +1959,7 @@ Tt.exports;
|
|
|
1959
1959
|
}
|
|
1960
1960
|
}
|
|
1961
1961
|
}
|
|
1962
|
-
b =
|
|
1962
|
+
b = fe(b);
|
|
1963
1963
|
}
|
|
1964
1964
|
}
|
|
1965
1965
|
function u(c) {
|
|
@@ -1987,7 +1987,7 @@ Tt.exports;
|
|
|
1987
1987
|
for (; l; ) {
|
|
1988
1988
|
if (l === s.element)
|
|
1989
1989
|
return s;
|
|
1990
|
-
l =
|
|
1990
|
+
l = fe(l);
|
|
1991
1991
|
}
|
|
1992
1992
|
}
|
|
1993
1993
|
return null;
|
|
@@ -2807,7 +2807,7 @@ const to = { class: "variety-auto-complete" }, no = { key: 0 }, ro = { class: "l
|
|
|
2807
2807
|
const ee = Zi;
|
|
2808
2808
|
return V(), Z("div", to, [
|
|
2809
2809
|
I.labelShowEnable ? (V(), Z("span", no, "品种搜索:")) : Te("", !0),
|
|
2810
|
-
|
|
2810
|
+
de(ee, {
|
|
2811
2811
|
modelValue: A.value,
|
|
2812
2812
|
"onUpdate:modelValue": C[0] || (C[0] = (J) => A.value = J),
|
|
2813
2813
|
clearable: "",
|
|
@@ -2818,7 +2818,7 @@ const to = { class: "variety-auto-complete" }, no = { key: 0 }, ro = { class: "l
|
|
|
2818
2818
|
onChange: F
|
|
2819
2819
|
}, {
|
|
2820
2820
|
default: ne(({ item: J }) => [
|
|
2821
|
-
|
|
2821
|
+
pe("div", ro, Ve(J.label), 1)
|
|
2822
2822
|
]),
|
|
2823
2823
|
_: 1
|
|
2824
2824
|
}, 8, ["modelValue", "size", "placeholder"])
|
|
@@ -2826,7 +2826,7 @@ const to = { class: "variety-auto-complete" }, no = { key: 0 }, ro = { class: "l
|
|
|
2826
2826
|
};
|
|
2827
2827
|
}
|
|
2828
2828
|
}, oo = /* @__PURE__ */ er(io, [["__scopeId", "data-v-d433c4b8"]]);
|
|
2829
|
-
const ao = (I) => (Fi("data-v-
|
|
2829
|
+
const ao = (I) => (Fi("data-v-a9c66896"), I = I(), Vi(), I), so = { class: "custom-header" }, lo = { class: "left" }, co = /* @__PURE__ */ ao(() => /* @__PURE__ */ pe("span", null, " 选择变量 ", -1)), uo = { class: "right" }, po = { class: "custom-body" }, fo = { class: "config-list" }, vo = { class: "config-item" }, ho = { key: 0 }, go = { key: 0 }, mo = { key: 1 }, yo = { key: 0 }, bo = { style: { "max-width": "820px" } }, xo = { style: { "white-space": "pre-line" } }, wo = {
|
|
2830
2830
|
__name: "index",
|
|
2831
2831
|
props: {
|
|
2832
2832
|
useCase: {
|
|
@@ -2922,10 +2922,10 @@ const ao = (I) => (Fi("data-v-97bdc5d5"), I = I(), Vi(), I), so = { class: "cust
|
|
|
2922
2922
|
ref: re,
|
|
2923
2923
|
style: Kt({ right: `${he.value}px`, top: `${A.value}px`, zIndex: W.value })
|
|
2924
2924
|
}, [
|
|
2925
|
-
|
|
2926
|
-
|
|
2925
|
+
pe("div", so, [
|
|
2926
|
+
pe("div", lo, [
|
|
2927
2927
|
co,
|
|
2928
|
-
|
|
2928
|
+
de(R, {
|
|
2929
2929
|
modelValue: C.value,
|
|
2930
2930
|
"onUpdate:modelValue": q[0] || (q[0] = (d) => C.value = d),
|
|
2931
2931
|
placeholder: "选择变量",
|
|
@@ -2942,27 +2942,27 @@ const ao = (I) => (Fi("data-v-97bdc5d5"), I = I(), Vi(), I), so = { class: "cust
|
|
|
2942
2942
|
_: 1
|
|
2943
2943
|
}, 8, ["modelValue"])
|
|
2944
2944
|
]),
|
|
2945
|
-
|
|
2946
|
-
|
|
2945
|
+
pe("div", uo, [
|
|
2946
|
+
de(B, {
|
|
2947
2947
|
class: "el-icon--left",
|
|
2948
2948
|
onClick: q[1] || (q[1] = (d) => F.value = !1)
|
|
2949
2949
|
}, {
|
|
2950
2950
|
default: ne(() => [
|
|
2951
|
-
|
|
2951
|
+
de(M(Li))
|
|
2952
2952
|
]),
|
|
2953
2953
|
_: 1
|
|
2954
2954
|
})
|
|
2955
2955
|
])
|
|
2956
2956
|
]),
|
|
2957
|
-
|
|
2957
|
+
pe("div", po, [
|
|
2958
2958
|
J.value.length ? (V(!0), Z(Fe, { key: 0 }, at(J.value, (d, G) => (V(), Z("div", {
|
|
2959
2959
|
class: "format-item",
|
|
2960
2960
|
key: G
|
|
2961
2961
|
}, [
|
|
2962
|
-
|
|
2963
|
-
|
|
2962
|
+
pe("span", null, "格式" + Ve(G + 1) + ":", 1),
|
|
2963
|
+
pe("div", fo, [
|
|
2964
2964
|
(V(!0), Z(Fe, null, at(d.configList, (D, ge) => (V(), Z(Fe, null, [
|
|
2965
|
-
|
|
2965
|
+
pe("div", vo, [
|
|
2966
2966
|
D.vtype === "text" ? (V(), Z("span", ho, Ve(D.param), 1)) : Te("", !0),
|
|
2967
2967
|
D.vtype === "inputVariety" ? (V(), ot(oo, {
|
|
2968
2968
|
key: 1,
|
|
@@ -2976,7 +2976,7 @@ const ao = (I) => (Fi("data-v-97bdc5d5"), I = I(), Vi(), I), so = { class: "cust
|
|
|
2976
2976
|
}, null, 8, ["placeholder", "onSelect", "onChange"])) : Te("", !0),
|
|
2977
2977
|
D.vtype === "input" ? (V(), Z(Fe, { key: 2 }, [
|
|
2978
2978
|
D.prefix ? (V(), Z("span", go, Ve(D.prefix), 1)) : Te("", !0),
|
|
2979
|
-
|
|
2979
|
+
de(X, {
|
|
2980
2980
|
modelValue: D.modelValue,
|
|
2981
2981
|
"onUpdate:modelValue": (te) => D.modelValue = te,
|
|
2982
2982
|
placeholder: D.param,
|
|
@@ -3005,7 +3005,7 @@ const ao = (I) => (Fi("data-v-97bdc5d5"), I = I(), Vi(), I), so = { class: "cust
|
|
|
3005
3005
|
ge !== d.configList.length - 1 ? (V(), Z("span", yo, "_")) : Te("", !0)
|
|
3006
3006
|
], 64))), 256))
|
|
3007
3007
|
]),
|
|
3008
|
-
|
|
3008
|
+
de(ie, {
|
|
3009
3009
|
type: "primary",
|
|
3010
3010
|
plain: "",
|
|
3011
3011
|
size: "small",
|
|
@@ -3016,17 +3016,19 @@ const ao = (I) => (Fi("data-v-97bdc5d5"), I = I(), Vi(), I), so = { class: "cust
|
|
|
3016
3016
|
]),
|
|
3017
3017
|
_: 2
|
|
3018
3018
|
}, 1032, ["onClick"]),
|
|
3019
|
-
|
|
3019
|
+
de(U, {
|
|
3020
3020
|
effect: "dark",
|
|
3021
3021
|
placement: "top-start"
|
|
3022
3022
|
}, {
|
|
3023
3023
|
content: ne(() => [
|
|
3024
|
-
|
|
3024
|
+
pe("div", bo, [
|
|
3025
|
+
pe("span", xo, Ve(d.tip), 1)
|
|
3026
|
+
])
|
|
3025
3027
|
]),
|
|
3026
3028
|
default: ne(() => [
|
|
3027
|
-
|
|
3029
|
+
de(B, null, {
|
|
3028
3030
|
default: ne(() => [
|
|
3029
|
-
|
|
3031
|
+
de(M(Wi))
|
|
3030
3032
|
]),
|
|
3031
3033
|
_: 1
|
|
3032
3034
|
})
|
|
@@ -3040,11 +3042,11 @@ const ao = (I) => (Fi("data-v-97bdc5d5"), I = I(), Vi(), I), so = { class: "cust
|
|
|
3040
3042
|
]);
|
|
3041
3043
|
};
|
|
3042
3044
|
}
|
|
3043
|
-
},
|
|
3045
|
+
}, _o = /* @__PURE__ */ er(wo, [["__scopeId", "data-v-a9c66896"]]), Ko = {
|
|
3044
3046
|
install(I) {
|
|
3045
|
-
I.component("st-varSelectDialog",
|
|
3047
|
+
I.component("st-varSelectDialog", _o);
|
|
3046
3048
|
}
|
|
3047
3049
|
};
|
|
3048
3050
|
export {
|
|
3049
|
-
|
|
3051
|
+
Ko as default
|
|
3050
3052
|
};
|