ss-component-new 1.3.265 → 1.3.267
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/{array-CO-1w6WF.js → array-89mcJmcq.js} +2 -2
- package/dist/{array-Do8KzaU2.cjs → array-DIvJ-jrv.cjs} +1 -1
- package/dist/{index-j6fW0QJu.cjs → index-B-d_3ynO.cjs} +1 -1
- package/dist/{index-Dr3OIHpL.js → index-B0zENg_z.js} +2 -2
- package/dist/{index-BbSn9a8D.cjs → index-B2QO5hwZ.cjs} +1 -1
- package/dist/{index-Cavn-YZm.js → index-B9j8zXdi.js} +3 -3
- package/dist/{index-BKrFs-sr.cjs → index-BLZ_G5xj.cjs} +1 -1
- package/dist/{index-BZlTMv49.js → index-BQUTNtIm.js} +455 -450
- package/dist/{index-CafTV2An.js → index-BQkX6tEq.js} +1 -1
- package/dist/{index-Chwd-jFh.js → index-BnZh2t95.js} +1 -1
- package/dist/{index-BvSxcyl4.js → index-BqXYFGb6.js} +8057 -8014
- package/dist/index-BynbZeHN.cjs +1 -0
- package/dist/{index-DuO-4UHD.js → index-C9osxKju.js} +2 -2
- package/dist/index-CBWHHysg.cjs +25 -0
- package/dist/{index-JhrF__bR.cjs → index-CE-KP3yv.cjs} +1 -1
- package/dist/{index-BzhbKt4T.cjs → index-D9_haYEC.cjs} +1 -1
- package/dist/{index-Bpy_AyO6.js → index-DJKRFyTK.js} +3799 -3795
- package/dist/{index-DPpmke3g.js → index-DNof_nKt.js} +1 -1
- package/dist/{index-kHutaAUM.cjs → index-DTv9JbNQ.cjs} +1 -1
- package/dist/{index-7XL99-I7.cjs → index-DdkW3u7b.cjs} +1 -1
- package/dist/index-DoO0hHw_.cjs +15 -0
- package/dist/index-DsbZ5_6B.cjs +1 -0
- package/dist/{index-BofZR5RH.js → index-DxilXSh7.js} +1 -1
- package/dist/{index-DVDjoRsO.js → index-JCj3iaki.js} +2 -2
- package/dist/{index-CmHq3tFQ.cjs → index-SoFfZTtX.cjs} +1 -1
- package/dist/{index-DHzkGq3t.js → index-T_MDPMeI.js} +1 -1
- package/dist/{index-DYz0ZI-L.js → index-e3xh1VNK.js} +39 -37
- package/dist/{index-Cf4IsSFa.cjs → index-zm9Dw5MY.cjs} +1 -1
- package/dist/{main-BG8jFyLW.cjs → main-BIc68_sp.cjs} +1 -1
- package/dist/{main-gnkUq3Tg.js → main-CazvqPEd.js} +2 -2
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +5 -5
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +9 -9
- package/dist/{threeModel-B0Uia8ZI.js → threeModel-BNfxaQBZ.js} +1 -1
- package/dist/{threeModel-BQsHSk0V.cjs → threeModel-Dix1No3U.cjs} +1 -1
- package/dist/{threeSceneView-BDZfUrOx.js → threeSceneView-BKKcB9U3.js} +3 -3
- package/dist/{threeSceneView-DR7Lpd4V.cjs → threeSceneView-CyvRwD84.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-Bkg9mJ4o.js → threeSceneViewForCPMPIP-DxY1jiSQ.js} +1 -1
- package/dist/{threeSceneViewForCPMPIP-EdQPv11A.cjs → threeSceneViewForCPMPIP-K1LGnDpK.cjs} +1 -1
- package/dist/{threeViewerHost-BDUjZjRT.js → threeViewerHost-DMptxEMw.js} +1 -1
- package/dist/{threeViewerHost-CFIUA0KH.cjs → threeViewerHost-DRFmOZP0.cjs} +1 -1
- package/package.json +1 -1
- package/dist/index-DYYEj539.cjs +0 -1
- package/dist/index-DgW4sDF7.cjs +0 -1
- package/dist/index-DvP-61i9.cjs +0 -25
- package/dist/index-y1vX8Bel.cjs +0 -15
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as G, resolveComponent as X, createBlock as F, openBlock as _, computed as n2, watch as q2, createElementBlock as E, createVNode as t2, withCtx as H, createElementVNode as o2, Fragment as _2, renderList as T2, withModifiers as De, normalizeClass as Xe, toDisplayString as L2, createSlots as ve, renderSlot as w2, nextTick as C0,
|
|
1
|
+
import { ref as G, resolveComponent as X, createBlock as F, openBlock as _, defineComponent as J2, computed as n2, watch as q2, createElementBlock as E, createVNode as t2, withCtx as H, createElementVNode as o2, Fragment as _2, renderList as T2, withModifiers as De, normalizeClass as Xe, toDisplayString as L2, createSlots as ve, renderSlot as w2, nextTick as C0, onMounted as _e, createTextVNode as B0, isRef as rr, isReactive as ar, toRaw as cr, createCommentVNode as c2, onBeforeUnmount as O4, normalizeStyle as A0, withDirectives as $t, resolveDynamicComponent as s3, vShow as U1, normalizeProps as hr, guardReactiveProps as dr, unref as E0, mergeProps as u1, reactive as E3, inject as Q3, watchEffect as Ve, onUnmounted as f1, resolveDirective as ur, h as Si, toRefs as fr } from "vue";
|
|
2
2
|
import { ad as pr, ae as gr, U as Bs, g as mr, af as vr, ag as wr, ah as xr, ab as Ci, ai as br, aj as _r, ak as yr, al as Sr, am as ki, an as Di } from "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-Agf6lYax.js";
|
|
3
3
|
import { _ as P2 } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
import { S as xt } from "./index-BHtNKL1L.js";
|
|
@@ -8,7 +8,7 @@ import { _ as ge } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js
|
|
|
8
8
|
import { e as Mi, G as Gs } from "./index-DmO1nv0b.js";
|
|
9
9
|
/* empty css */
|
|
10
10
|
import { s as z4 } from "./index-CnjGqJZS.js";
|
|
11
|
-
import { T as Ti, a as Br } from "./threeViewerHost-
|
|
11
|
+
import { T as Ti, a as Br } from "./threeViewerHost-DMptxEMw.js";
|
|
12
12
|
import { A as Lr } from "./index-BJQRsidd.js";
|
|
13
13
|
var Hr = "[object Date]";
|
|
14
14
|
function Ir(n) {
|
|
@@ -61,7 +61,8 @@ const Nr = {
|
|
|
61
61
|
}, Rr = {
|
|
62
62
|
key: 0,
|
|
63
63
|
class: "input-with-suggest"
|
|
64
|
-
}, $r = ["onClick", "onMouseenter"], jr = /* @__PURE__ */
|
|
64
|
+
}, $r = ["onClick", "onMouseenter"], jr = /* @__PURE__ */ J2({
|
|
65
|
+
inheritAttrs: !1,
|
|
65
66
|
__name: "index",
|
|
66
67
|
props: {
|
|
67
68
|
// 兼容两种传值方式:旧 value / 新 v-model(modelValue)
|
|
@@ -108,61 +109,64 @@ const Nr = {
|
|
|
108
109
|
get() {
|
|
109
110
|
return t.modelValue ?? t.value ?? "";
|
|
110
111
|
},
|
|
111
|
-
set(
|
|
112
|
-
i("update:modelValue",
|
|
112
|
+
set(v) {
|
|
113
|
+
i("update:modelValue", v), i("update:value", v);
|
|
113
114
|
}
|
|
114
115
|
}), o = G(s.value), l = G(null), r = G(null), a = G(!1), h = G(-1);
|
|
115
|
-
q2(() => s.value, (
|
|
116
|
-
o.value =
|
|
117
|
-
}, { immediate: !0 }), q2(() => t.suggestList, (
|
|
118
|
-
|
|
116
|
+
q2(() => s.value, (v) => {
|
|
117
|
+
o.value = v ?? "";
|
|
118
|
+
}, { immediate: !0 }), q2(() => t.suggestList, (v) => {
|
|
119
|
+
v && v.length > 0 && o.value ? (a.value = !0, h.value = -1) : a.value = !1;
|
|
119
120
|
});
|
|
120
|
-
const c = (
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
}, u = () => {
|
|
121
|
+
const c = () => {
|
|
122
|
+
i("blurChange"), i("change", o.value);
|
|
123
|
+
}, d = (v) => {
|
|
124
|
+
var D;
|
|
125
|
+
const y = v && typeof v == "object" ? ((D = v == null ? void 0 : v.target) == null ? void 0 : D.value) ?? "" : v;
|
|
126
|
+
o.value = y, s.value = y, i("input", y), y && t.suggestList && t.suggestList.length > 0 ? (a.value = !0, h.value = -1) : y || (a.value = !1);
|
|
127
|
+
}, u = (v) => {
|
|
128
|
+
!a.value || t.suggestList.length === 0 || (v.key === "ArrowDown" ? (v.preventDefault(), h.value = Math.min(h.value + 1, t.suggestList.length - 1), f()) : v.key === "ArrowUp" ? (v.preventDefault(), h.value = Math.max(h.value - 1, -1), f()) : v.key === "Enter" && h.value >= 0 ? (v.preventDefault(), p(t.suggestList[h.value])) : v.key === "Escape" && (a.value = !1, h.value = -1));
|
|
129
|
+
}, f = () => {
|
|
127
130
|
C0(() => {
|
|
128
131
|
if (r.value && h.value >= 0) {
|
|
129
|
-
const
|
|
130
|
-
|
|
132
|
+
const v = r.value.querySelectorAll(".suggest-item");
|
|
133
|
+
v[h.value] && v[h.value].scrollIntoView({ block: "nearest", behavior: "smooth" });
|
|
131
134
|
}
|
|
132
135
|
});
|
|
133
|
-
},
|
|
134
|
-
|
|
135
|
-
var
|
|
136
|
+
}, p = (v) => {
|
|
137
|
+
v && (o.value = v.label, s.value = v.label, a.value = !1, h.value = -1, i("selectSuggest", v), C0(() => {
|
|
138
|
+
var y, D;
|
|
136
139
|
try {
|
|
137
|
-
(
|
|
140
|
+
(D = (y = l.value) == null ? void 0 : y.focus) == null || D.call(y);
|
|
138
141
|
} catch {
|
|
139
142
|
}
|
|
140
143
|
}));
|
|
141
|
-
},
|
|
144
|
+
}, g = (v) => {
|
|
142
145
|
i("blur"), setTimeout(() => {
|
|
143
146
|
a.value = !1, h.value = -1;
|
|
144
147
|
}, 10);
|
|
145
|
-
},
|
|
148
|
+
}, m = (v) => {
|
|
146
149
|
i("focus"), o.value && t.suggestList && t.suggestList.length > 0 && (a.value = !0);
|
|
147
150
|
};
|
|
148
|
-
return (
|
|
149
|
-
const
|
|
150
|
-
return Array.isArray(o.value) ? (_(), F(
|
|
151
|
+
return (v, y) => {
|
|
152
|
+
const D = X("el-input"), O = X("el-popover");
|
|
153
|
+
return Array.isArray(o.value) ? (_(), F(D, {
|
|
151
154
|
key: 1,
|
|
152
155
|
modelValue: o.value,
|
|
153
|
-
"onUpdate:modelValue":
|
|
156
|
+
"onUpdate:modelValue": y[2] || (y[2] = (S) => o.value = S),
|
|
154
157
|
disabled: !(t != null && t.isEdit) || (t == null ? void 0 : t.disabled),
|
|
155
|
-
clearable: ""
|
|
158
|
+
clearable: "",
|
|
159
|
+
onChange: c
|
|
156
160
|
}, ve({ _: 2 }, [
|
|
157
161
|
n.appendShow ? {
|
|
158
162
|
name: "append",
|
|
159
163
|
fn: H(() => [
|
|
160
|
-
w2(
|
|
164
|
+
w2(v.$slots, "append", {}, void 0, !0)
|
|
161
165
|
]),
|
|
162
166
|
key: "0"
|
|
163
167
|
} : void 0
|
|
164
168
|
]), 1032, ["modelValue", "disabled"])) : (_(), E("div", Rr, [
|
|
165
|
-
t2(
|
|
169
|
+
t2(O, {
|
|
166
170
|
visible: a.value && n.suggestList.length > 0,
|
|
167
171
|
trigger: "manual",
|
|
168
172
|
placement: "bottom-start",
|
|
@@ -171,22 +175,23 @@ const Nr = {
|
|
|
171
175
|
"popper-class": "input-suggest-popper"
|
|
172
176
|
}, {
|
|
173
177
|
reference: H(() => [
|
|
174
|
-
t2(
|
|
178
|
+
t2(D, {
|
|
175
179
|
modelValue: o.value,
|
|
176
|
-
"onUpdate:modelValue":
|
|
180
|
+
"onUpdate:modelValue": y[0] || (y[0] = (S) => o.value = S),
|
|
177
181
|
disabled: !(t != null && t.isEdit) || (t == null ? void 0 : t.disabled),
|
|
178
182
|
clearable: "",
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
+
onChange: c,
|
|
184
|
+
onInput: d,
|
|
185
|
+
onKeydown: u,
|
|
186
|
+
onBlur: g,
|
|
187
|
+
onFocus: m,
|
|
183
188
|
ref_key: "inputRef",
|
|
184
189
|
ref: l
|
|
185
190
|
}, ve({ _: 2 }, [
|
|
186
191
|
n.appendShow ? {
|
|
187
192
|
name: "append",
|
|
188
193
|
fn: H(() => [
|
|
189
|
-
w2(
|
|
194
|
+
w2(v.$slots, "append", {}, void 0, !0)
|
|
190
195
|
]),
|
|
191
196
|
key: "0"
|
|
192
197
|
} : void 0
|
|
@@ -198,14 +203,14 @@ const Nr = {
|
|
|
198
203
|
ref_key: "suggestDropdownRef",
|
|
199
204
|
ref: r
|
|
200
205
|
}, [
|
|
201
|
-
(_(!0), E(_2, null, T2(n.suggestList, (
|
|
202
|
-
key:
|
|
203
|
-
class: Xe(["suggest-item", { highlight:
|
|
204
|
-
onMousedown:
|
|
206
|
+
(_(!0), E(_2, null, T2(n.suggestList, (S, x) => (_(), E("div", {
|
|
207
|
+
key: x,
|
|
208
|
+
class: Xe(["suggest-item", { highlight: x === h.value }]),
|
|
209
|
+
onMousedown: y[1] || (y[1] = De(() => {
|
|
205
210
|
}, ["prevent", "stop"])),
|
|
206
|
-
onClick: De((
|
|
207
|
-
onMouseenter: (
|
|
208
|
-
}, L2(
|
|
211
|
+
onClick: De((C) => p(S), ["stop"]),
|
|
212
|
+
onMouseenter: (C) => h.value = x
|
|
213
|
+
}, L2(S == null ? void 0 : S.label), 43, $r))), 128))
|
|
209
214
|
], 512)
|
|
210
215
|
]),
|
|
211
216
|
_: 3
|
|
@@ -213,7 +218,7 @@ const Nr = {
|
|
|
213
218
|
]));
|
|
214
219
|
};
|
|
215
220
|
}
|
|
216
|
-
}), L3 = /* @__PURE__ */ P2(jr, [["__scopeId", "data-v-
|
|
221
|
+
}), L3 = /* @__PURE__ */ P2(jr, [["__scopeId", "data-v-e4c8c23a"]]), Wr = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1751963315312'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4705'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M363.485867%20865.117867h305.5616c21.6576%200%2039.2192-17.194667%2039.2192-38.4s-17.5616-38.4-39.2192-38.4H363.485867c-21.6576%200-39.2192%2017.194667-39.2192%2038.4s17.5616%2038.4%2039.2192%2038.4z'%20p-id='4706'%3e%3c/path%3e%3cpath%20d='M945.288533%20699.835733a40.448%2040.448%200%200%200-43.195733%2043.1872v147.037867a46.865067%2046.865067%200%200%201-45.960533%2048.708267H166.766933a46.882133%2046.882133%200%200%201-45.038933-48.708267v-147.029333a40.439467%2040.439467%200%201%200-80.887467%200v147.029333a125.883733%20125.883733%200%200%200%20125.9264%20128.657067h693.0432c70.203733-1.006933%20126.4384-58.461867%20125.9264-128.657067v-147.029333a40.430933%2040.430933%200%200%200-40.448-43.195734zM40.840533%20127.735467v147.959466a39.517867%2039.517867%200%200%200%2079.044267%200V127.735467a45.943467%2045.943467%200%200%201%2046.882133-47.786667h693.0432a46.882133%2046.882133%200%200%201%2045.960534%2047.786667v147.959466a39.509333%2039.509333%200%200%200%2039.517866%2039.509334%2040.448%2040.448%200%200%200%2040.448-39.509334V127.735467C986.248533%2058.052267%20930.423467%201.024%20860.7232%200H166.775467A125.934933%20125.934933%200%200%200%2040.840533%20127.744z%20m168.4992%20427.972266H326.229333L357.316267%20640H418.133333L295.150933%20315.733333h-52.701866L119.466667%20640h60.817066l29.056-84.292267zM269.124267%20392.533333L307.2%20503.466667h-76.8l38.724267-110.933334z%20m231.552%20131.959467h32.631466a123.246933%20123.246933%200%200%200%2088.192-28.535467c23.389867-19.959467%2036.394667-49.134933%2035.413334-79.488%201.6384-28.245333-9.838933-55.722667-31.249067-74.743466a127.573333%20127.573333%200%200%200-84.0192-25.813334H443.733333V640h56.942934V524.4928zM503.466667%20366.933333h32.136533c42.180267%200%2061.602133%2017.493333%2061.602133%2053.162667%201.092267%2016.0256-4.8128%2031.701333-16.068266%2042.666667a71.364267%2071.364267%200%200%201-51.5584%2014.677333H503.466667V366.933333z%20m286.293333-51.0976H691.2V640h57.3184V524.4672h32.853333c31.837867%201.928533%2063.189333-8.311467%2087.381334-28.544%2023.543467-19.959467%2036.625067-49.152%2035.643733-79.505067%201.536-28.100267-9.710933-55.441067-30.754133-74.752a131.84%20131.84%200%200%200-83.882667-25.8304z%20m39.4752%20147.131734a73.813333%2073.813333%200%200%201-49.527467%2014.72H750.933333V366.933333h32.119467c42.1632%200%2061.576533%2017.527467%2061.576533%2053.2736%201.262933%2015.957333-4.394667%2031.650133-15.394133%2042.752z'%20p-id='4707'%3e%3c/path%3e%3c/svg%3e", Ur = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
217
222
|
__proto__: null,
|
|
218
223
|
default: Wr
|
|
219
224
|
}, Symbol.toStringTag, { value: "Module" })), Fr = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750407294483'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='13930'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M925.866667%20797.866667c-12.8-25.6-34.133333-46.933333-64-64-29.866667-21.333333-68.266667-34.133333-119.466667-42.666667-4.266667%200-29.866667-4.266667-59.733333-12.8-21.333333-4.266667-34.133333-8.533333-38.4-12.8v-17.066667c4.266667-51.2%2029.866667-76.8%2055.466666-106.666666%208.533333-8.533333%2017.066667-21.333333%2025.6-29.866667%2029.866667-42.666667%2034.133333-89.6%2034.133334-98.133333%200-8.533333%200-17.066667-4.266667-21.333334-4.266667-8.533333-8.533333-12.8-12.8-21.333333%200-12.8%204.266667-21.333333%204.266667-29.866667%200-21.333333%204.266667-55.466667-4.266667-89.6%200-8.533333-4.266667-12.8-4.266667-21.333333-8.533333-25.6-17.066667-46.933333-34.133333-68.266667-4.266667-12.8-64-72.533333-234.666667-85.333333H401.066667c-4.266667%200-17.066667%200-25.6%204.266667-21.333333%204.266667-38.4%2021.333333-42.666667%2042.666666v21.333334c-8.533333%208.533333-55.466667%2051.2-55.466667%20102.4-4.266667%2034.133333-4.266667%2085.333333%200%20123.733333-8.533333%208.533333-17.066667%2021.333333-12.8%2042.666667%200%2012.8%204.266667%2055.466667%2034.133334%2098.133333%208.533333%208.533333%2017.066667%2017.066667%2025.6%2029.866667%2025.6%2029.866667%2051.2%2055.466667%2055.466666%20106.666666v17.066667c-4.266667%204.266667-17.066667%208.533333-38.4%2012.8-29.866667%208.533333-59.733333%2012.8-64%2012.8-46.933333%208.533333-85.333333%2021.333333-115.2%2042.666667-25.6%2017.066667-46.933333%2038.4-64%2064-25.6%2038.4-25.6%2076.8-25.6%2085.333333v21.333333c0%2025.6%2021.333333%2046.933333%2046.933334%2046.933334H896c25.6%200%2046.933333-21.333333%2046.933333-46.933334v-17.066666c8.533333-12.8%208.533333-51.2-17.066666-89.6z%20m-546.133334-128c0%204.266667%200%204.266667%200%200v4.266666c-4.266667%200-4.266667%200%200-4.266666z%20m503.466667%20213.333333l-742.4%204.266667v-4.266667s0-25.6%2012.8-51.2c8.533333-17.066667%2025.6-29.866667%2042.666667-42.666667%2025.6-17.066667%2055.466667-25.6%2089.6-34.133333%204.266667%200%2034.133333-4.266667%2068.266666-12.8%2051.2-12.8%2076.8-29.866667%2085.333334-46.933333%200-4.266667%200-4.266667%204.266666-8.533334v-42.666666c-8.533333-72.533333-42.666667-115.2-72.533333-145.066667-8.533333-8.533333-12.8-17.066667-21.333333-21.333333-21.333333-29.866667-21.333333-59.733333-21.333334-64l4.266667-4.266667%208.533333-8.533333c4.266667-17.066667%200-25.6%200-29.866667-4.266667-34.133333-4.266667-81.066667%200-119.466667%200-29.866667%2029.866667-55.466667%2029.866667-55.466666%208.533333-4.266667%2017.066667-12.8%2021.333333-21.333334%200-4.266667%204.266667-4.266667%204.266667-8.533333v-25.6H465.066667c140.8%208.533333%20192%2059.733333%20192%2059.733333%208.533333%2012.8%2017.066667%2025.6%2021.333333%2042.666667%204.266667%204.266667%204.266667%208.533333%204.266667%2012.8%204.266667%2029.866667%204.266667%2055.466667%204.266666%2076.8%200%2012.8%200%2021.333333-4.266666%2038.4%200%2012.8%200%2025.6%208.533333%2029.866667l4.266667%204.266666%204.266666%204.266667s0%2034.133333-21.333333%2064c-4.266667%208.533333-12.8%2012.8-21.333333%2021.333333-29.866667%2029.866667-64%2072.533333-72.533334%20145.066667v42.666667c0%204.266667%200%204.266667%204.266667%208.533333%208.533333%2021.333333%2034.133333%2034.133333%2085.333333%2046.933333%2034.133333%208.533333%2064%2012.8%2068.266667%2012.8%2038.4%208.533333%2068.266667%2017.066667%2093.866667%2034.133334%2017.066667%2012.8%2034.133333%2025.6%2042.666666%2042.666666%208.533333%2025.6%208.533333%2051.2%204.266667%2055.466667z'%20p-id='13931'%3e%3c/path%3e%3c/svg%3e", qr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -971,7 +976,7 @@ function op() {
|
|
|
971
976
|
path: n[e].default
|
|
972
977
|
}));
|
|
973
978
|
}
|
|
974
|
-
const lp = { class: "icon-popover" }, rp = ["onClick"], ap = /* @__PURE__ */
|
|
979
|
+
const lp = { class: "icon-popover" }, rp = ["onClick"], ap = /* @__PURE__ */ J2({
|
|
975
980
|
__name: "index",
|
|
976
981
|
props: {
|
|
977
982
|
modelValue: String,
|
|
@@ -1040,7 +1045,7 @@ const lp = { class: "icon-popover" }, rp = ["onClick"], ap = /* @__PURE__ */ t0(
|
|
|
1040
1045
|
}, 8, ["visible"]);
|
|
1041
1046
|
};
|
|
1042
1047
|
}
|
|
1043
|
-
}), cp = /* @__PURE__ */ P2(ap, [["__scopeId", "data-v-d9981dd9"]]), hp = /* @__PURE__ */
|
|
1048
|
+
}), cp = /* @__PURE__ */ P2(ap, [["__scopeId", "data-v-d9981dd9"]]), hp = /* @__PURE__ */ J2({
|
|
1044
1049
|
__name: "index",
|
|
1045
1050
|
props: {
|
|
1046
1051
|
modelValue: String
|
|
@@ -1065,7 +1070,7 @@ const lp = { class: "icon-popover" }, rp = ["onClick"], ap = /* @__PURE__ */ t0(
|
|
|
1065
1070
|
});
|
|
1066
1071
|
};
|
|
1067
1072
|
}
|
|
1068
|
-
}), dp = /* @__PURE__ */
|
|
1073
|
+
}), dp = /* @__PURE__ */ J2({
|
|
1069
1074
|
__name: "index",
|
|
1070
1075
|
props: {
|
|
1071
1076
|
modelValue: String,
|
|
@@ -1258,7 +1263,7 @@ const lp = { class: "icon-popover" }, rp = ["onClick"], ap = /* @__PURE__ */ t0(
|
|
|
1258
1263
|
g[m.prop] = m.value;
|
|
1259
1264
|
}), g;
|
|
1260
1265
|
}
|
|
1261
|
-
}, mp = ["onClick"], vp = { style: { overflow: "hidden", "text-overflow": "ellipsis", "white-space": "nowrap" } }, wp = { key: 1 }, xp = /* @__PURE__ */
|
|
1266
|
+
}, mp = ["onClick"], vp = { style: { overflow: "hidden", "text-overflow": "ellipsis", "white-space": "nowrap" } }, wp = { key: 1 }, xp = /* @__PURE__ */ J2({
|
|
1262
1267
|
__name: "index",
|
|
1263
1268
|
props: {
|
|
1264
1269
|
value: String,
|
|
@@ -1309,9 +1314,9 @@ const lp = { class: "icon-popover" }, rp = ["onClick"], ap = /* @__PURE__ */ t0(
|
|
|
1309
1314
|
setup(n, { emit: e }) {
|
|
1310
1315
|
const t = n, i = e, s = G(t.value), o = G(), l = G(!1), r = G(), a = G([]), h = G(/* @__PURE__ */ new Map()), c = G(null), d = G(!1);
|
|
1311
1316
|
_e(async () => {
|
|
1312
|
-
var
|
|
1317
|
+
var M;
|
|
1313
1318
|
r.value = t == null ? void 0 : t.content, a.value = t == null ? void 0 : t.selectedTagList, await C0();
|
|
1314
|
-
const A = (
|
|
1319
|
+
const A = (M = c.value) == null ? void 0 : M.$el;
|
|
1315
1320
|
d.value = !!(A != null && A.closest(".el-dialog"));
|
|
1316
1321
|
});
|
|
1317
1322
|
const u = () => {
|
|
@@ -1333,67 +1338,67 @@ const lp = { class: "icon-popover" }, rp = ["onClick"], ap = /* @__PURE__ */ t0(
|
|
|
1333
1338
|
return C.value && A.push("multiple"), A;
|
|
1334
1339
|
}), y = (A) => {
|
|
1335
1340
|
var q;
|
|
1336
|
-
const { value:
|
|
1337
|
-
return Array.isArray(a.value) || (a.value = []), ((q = a.value) == null ? void 0 : q.find((i2) =>
|
|
1338
|
-
},
|
|
1339
|
-
let
|
|
1341
|
+
const { value: M } = A;
|
|
1342
|
+
return Array.isArray(a.value) || (a.value = []), ((q = a.value) == null ? void 0 : q.find((i2) => M == i2)) && C.value ? "active" : "";
|
|
1343
|
+
}, D = (A) => {
|
|
1344
|
+
let M = Ue(a.value);
|
|
1340
1345
|
const L = /* @__PURE__ */ new Set();
|
|
1341
1346
|
for (let q = 0; q < A.length; q++) {
|
|
1342
1347
|
const i2 = A[q];
|
|
1343
1348
|
L.add(i2);
|
|
1344
1349
|
}
|
|
1345
|
-
|
|
1346
|
-
},
|
|
1347
|
-
const { value:
|
|
1348
|
-
return q >= 0 ? L.splice(q, 1) : L.push(
|
|
1350
|
+
M = M.filter((q) => L.has(q)), Bs(a.value, M) || (a.value = M, i("tagChange", M));
|
|
1351
|
+
}, O = (A) => {
|
|
1352
|
+
const { value: M } = A, L = Ue(a.value), q = L.findIndex((i2) => i2 === M);
|
|
1353
|
+
return q >= 0 ? L.splice(q, 1) : L.push(M), L;
|
|
1349
1354
|
}, S = (A) => {
|
|
1350
1355
|
if (!C.value)
|
|
1351
1356
|
return;
|
|
1352
|
-
const
|
|
1353
|
-
a.value =
|
|
1357
|
+
const M = O(A);
|
|
1358
|
+
a.value = M, i("tagChange", M);
|
|
1354
1359
|
}, x = (A) => {
|
|
1355
|
-
i("blurChange"), C.value &&
|
|
1360
|
+
i("blurChange"), C.value && D(A);
|
|
1356
1361
|
}, C = n2(() => {
|
|
1357
1362
|
const A = t.optionUrl;
|
|
1358
1363
|
return !!(A != null && A.multiple);
|
|
1359
1364
|
}), I = n2(() => {
|
|
1360
|
-
var A,
|
|
1361
|
-
return !((A = t.optionUrl) != null && A.multipleLimit) && ((
|
|
1365
|
+
var A, M, L;
|
|
1366
|
+
return !((A = t.optionUrl) != null && A.multipleLimit) && ((M = t.optionUrl) == null ? void 0 : M.multipleLimit) !== 0 ? 1 : parseInt((L = t.optionUrl) == null ? void 0 : L.multipleLimit);
|
|
1362
1367
|
}), R = n2(() => {
|
|
1363
1368
|
var A;
|
|
1364
1369
|
return (A = r.value) == null ? void 0 : A.filter(
|
|
1365
|
-
(
|
|
1370
|
+
(M, L, q) => L === q.findIndex((i2) => i2.value === M.value)
|
|
1366
1371
|
);
|
|
1367
1372
|
}), V = (A) => {
|
|
1368
1373
|
if (!A) return "";
|
|
1369
|
-
const
|
|
1370
|
-
return Object.keys(A).filter((q) => !
|
|
1374
|
+
const M = /* @__PURE__ */ new Set(["id", "create_time", "update_time", "sort", "create_user_id", "update_user_id", "department_id"]);
|
|
1375
|
+
return Object.keys(A).filter((q) => !M.has(q) && A[q] !== void 0 && A[q] !== "").map((q) => `${q}: ${A[q]}`).join("<br/>");
|
|
1371
1376
|
}, j = (A) => {
|
|
1372
1377
|
var q, i2, u2, D2;
|
|
1373
1378
|
if (!(A != null && A.value) || !(((q = t.optionUrl) == null ? void 0 : q.mainKey) && Array.isArray((i2 = t.optionUrl) == null ? void 0 : i2.menus) && t.optionUrl.menus.length > 0) || !((D2 = (u2 = t.optionUrl) == null ? void 0 : u2.words) != null && D2.length)) return "";
|
|
1374
1379
|
const L = h.value.get(A.value);
|
|
1375
1380
|
return L !== void 0 ? L : "加载中...";
|
|
1376
1381
|
}, T = async (A) => {
|
|
1377
|
-
var q, i2, u2, D2, y2, w,
|
|
1378
|
-
if (!((i2 = (q = t.optionUrl) == null ? void 0 : q.menus) != null && i2.length) || !((D2 = (u2 = t.optionUrl) == null ? void 0 : u2.words) != null && D2.length) || !((
|
|
1382
|
+
var q, i2, u2, D2, y2, w, R2, H2;
|
|
1383
|
+
if (!((i2 = (q = t.optionUrl) == null ? void 0 : q.menus) != null && i2.length) || !((D2 = (u2 = t.optionUrl) == null ? void 0 : u2.words) != null && D2.length) || !((H2 = (y2 = t.optionUrl) == null ? void 0 : y2.words) == null ? void 0 : H2[((R2 = (w = t.optionUrl) == null ? void 0 : w.words) == null ? void 0 : R2.length) - 1])) return;
|
|
1379
1384
|
const L = new Map(h.value);
|
|
1380
|
-
A == null || A.forEach((
|
|
1381
|
-
L.has(
|
|
1385
|
+
A == null || A.forEach((I2) => {
|
|
1386
|
+
L.has(I2) || L.set(I2, "加载中...");
|
|
1382
1387
|
}), h.value = L;
|
|
1383
|
-
for (const
|
|
1384
|
-
if (h.value.get(
|
|
1385
|
-
const r0 = { ...t.optionUrl, value:
|
|
1388
|
+
for (const I2 of A || []) {
|
|
1389
|
+
if (h.value.get(I2) !== "加载中...") continue;
|
|
1390
|
+
const r0 = { ...t.optionUrl, value: I2 };
|
|
1386
1391
|
try {
|
|
1387
1392
|
const u0 = await gp(r0), w0 = V(u0), I0 = new Map(h.value);
|
|
1388
|
-
I0.set(
|
|
1393
|
+
I0.set(I2, w0), h.value = I0;
|
|
1389
1394
|
} catch {
|
|
1390
1395
|
const w0 = new Map(h.value);
|
|
1391
|
-
w0.set(
|
|
1396
|
+
w0.set(I2, ""), h.value = w0;
|
|
1392
1397
|
}
|
|
1393
1398
|
}
|
|
1394
1399
|
}, a2 = async () => {
|
|
1395
|
-
var A,
|
|
1396
|
-
if (((
|
|
1400
|
+
var A, M, L, q, i2, u2, D2, y2, w, R2, H2, I2, r0, u0, w0, I0;
|
|
1401
|
+
if (((M = (A = t.optionUrl) == null ? void 0 : A.allSelectionContents) == null ? void 0 : M.length) > 0) {
|
|
1397
1402
|
let O2 = [], q0 = [], M0 = (L = t.optionUrl) == null ? void 0 : L.filterContent;
|
|
1398
1403
|
Array.isArray(M0) || (M0 = (i2 = (q = M0 == null ? void 0 : M0.replaceAll("(", "")) == null ? void 0 : q.replaceAll(")", "")) == null ? void 0 : i2.split("||")), M0 == null || M0.forEach((z2) => {
|
|
1399
1404
|
var a0;
|
|
@@ -1413,22 +1418,22 @@ const lp = { class: "icon-popover" }, rp = ["onClick"], ap = /* @__PURE__ */ t0(
|
|
|
1413
1418
|
Ne[a0] = z2 == null ? void 0 : z2[a0];
|
|
1414
1419
|
});
|
|
1415
1420
|
let nt = q0 == null ? void 0 : q0.findIndex((z2) => JSON.stringify(z2 == null ? void 0 : z2[0]) === JSON.stringify(Ne));
|
|
1416
|
-
r.value = (
|
|
1421
|
+
r.value = (H2 = (R2 = (w = t.optionUrl) == null ? void 0 : w.allSelectionContents) == null ? void 0 : R2[nt]) == null ? void 0 : H2.map((z2) => ({
|
|
1417
1422
|
label: z2,
|
|
1418
1423
|
value: z2
|
|
1419
1424
|
}));
|
|
1420
|
-
} else if (((r0 = (
|
|
1425
|
+
} else if (((r0 = (I2 = t.optionUrl) == null ? void 0 : I2.menus) == null ? void 0 : r0.length) > 0) {
|
|
1421
1426
|
let O2 = await gr(t.optionUrl);
|
|
1422
1427
|
r.value = [...r.value, ...O2 ?? []], s.value = (w0 = (u0 = r.value) == null ? void 0 : u0[0]) == null ? void 0 : w0.value;
|
|
1423
1428
|
}
|
|
1424
1429
|
await T((I0 = r.value) == null ? void 0 : I0.map((O2) => O2 == null ? void 0 : O2.value)), i("click");
|
|
1425
1430
|
};
|
|
1426
|
-
return (A,
|
|
1431
|
+
return (A, M) => {
|
|
1427
1432
|
const L = X("el-tooltip"), q = X("el-option"), i2 = X("el-select");
|
|
1428
1433
|
return l.value ? l.value ? (_(), F(L3, {
|
|
1429
1434
|
key: 1,
|
|
1430
1435
|
modelValue: o.value,
|
|
1431
|
-
"onUpdate:modelValue":
|
|
1436
|
+
"onUpdate:modelValue": M[1] || (M[1] = (u2) => o.value = u2),
|
|
1432
1437
|
onChange: m,
|
|
1433
1438
|
onBlur: p
|
|
1434
1439
|
}, null, 8, ["modelValue"])) : c2("", !0) : (_(), F(i2, {
|
|
@@ -1438,7 +1443,7 @@ const lp = { class: "icon-popover" }, rp = ["onClick"], ap = /* @__PURE__ */ t0(
|
|
|
1438
1443
|
class: Xe(["ss-select", v.value]),
|
|
1439
1444
|
loading: t == null ? void 0 : t.loading,
|
|
1440
1445
|
modelValue: s.value,
|
|
1441
|
-
"onUpdate:modelValue":
|
|
1446
|
+
"onUpdate:modelValue": M[0] || (M[0] = (u2) => s.value = u2),
|
|
1442
1447
|
filterable: "",
|
|
1443
1448
|
"allow-create": "true",
|
|
1444
1449
|
"default-first-option": "true",
|
|
@@ -1548,79 +1553,79 @@ const lp = { class: "icon-popover" }, rp = ["onClick"], ap = /* @__PURE__ */ t0(
|
|
|
1548
1553
|
A();
|
|
1549
1554
|
});
|
|
1550
1555
|
const r = e, a = G(null), h = G(null), c = G(), d = G(), u = G(0), f = n2(() => {
|
|
1551
|
-
var
|
|
1552
|
-
return (
|
|
1556
|
+
var M;
|
|
1557
|
+
return (M = Gs) == null ? void 0 : M.map((L) => ({
|
|
1553
1558
|
value: L == null ? void 0 : L.key,
|
|
1554
1559
|
label: L == null ? void 0 : L.key
|
|
1555
1560
|
}));
|
|
1556
|
-
}), p = (
|
|
1557
|
-
r("routeUrl",
|
|
1561
|
+
}), p = (M) => {
|
|
1562
|
+
r("routeUrl", M);
|
|
1558
1563
|
}, g = n2(() => {
|
|
1559
1564
|
var q;
|
|
1560
|
-
const
|
|
1561
|
-
return (
|
|
1562
|
-
}), m = (
|
|
1565
|
+
const M = (q = l.value) == null ? void 0 : q.split("/");
|
|
1566
|
+
return (M == null ? void 0 : M.some((i2) => (i2 == null ? void 0 : i2.includes("updateLoading")) || (i2 == null ? void 0 : i2.includes("loading")))) ? !1 : s.value === "view" && (t == null ? void 0 : t.showOperator);
|
|
1567
|
+
}), m = (M) => gi(M), v = () => {
|
|
1563
1568
|
r("fixChangeValue");
|
|
1564
|
-
}, y = (
|
|
1565
|
-
r("clickTrigger",
|
|
1566
|
-
},
|
|
1567
|
-
r("preview",
|
|
1568
|
-
},
|
|
1569
|
+
}, y = (M) => {
|
|
1570
|
+
r("clickTrigger", M);
|
|
1571
|
+
}, D = (M) => {
|
|
1572
|
+
r("preview", M);
|
|
1573
|
+
}, O = () => {
|
|
1569
1574
|
r("blur", d.value);
|
|
1570
|
-
}, S = (
|
|
1575
|
+
}, S = (M, L) => {
|
|
1571
1576
|
r("tagChange", {
|
|
1572
|
-
value:
|
|
1577
|
+
value: M,
|
|
1573
1578
|
key: L
|
|
1574
1579
|
});
|
|
1575
|
-
}, x = (
|
|
1580
|
+
}, x = (M) => {
|
|
1576
1581
|
r("blurChange", d.value, {
|
|
1577
|
-
changeProp:
|
|
1582
|
+
changeProp: M
|
|
1578
1583
|
});
|
|
1579
|
-
}, C = (
|
|
1584
|
+
}, C = (M, L) => {
|
|
1580
1585
|
r("create", {
|
|
1581
|
-
item:
|
|
1586
|
+
item: M,
|
|
1582
1587
|
value: L
|
|
1583
1588
|
});
|
|
1584
1589
|
}, I = () => {
|
|
1585
1590
|
C0(() => {
|
|
1586
1591
|
u.value++;
|
|
1587
1592
|
});
|
|
1588
|
-
}, R = (
|
|
1589
|
-
r("changeVisible",
|
|
1590
|
-
}, j = (
|
|
1591
|
-
r("handleColEditChange",
|
|
1592
|
-
}, T = async (
|
|
1593
|
-
await C0(), r("handleColTypeChange",
|
|
1593
|
+
}, R = (M, L) => L, V = (M) => {
|
|
1594
|
+
r("changeVisible", M);
|
|
1595
|
+
}, j = (M, L) => {
|
|
1596
|
+
r("handleColEditChange", M, L);
|
|
1597
|
+
}, T = async (M, L) => {
|
|
1598
|
+
await C0(), r("handleColTypeChange", M, L);
|
|
1594
1599
|
};
|
|
1595
1600
|
q2(
|
|
1596
1601
|
() => t == null ? void 0 : t.rowContents,
|
|
1597
1602
|
() => {
|
|
1598
1603
|
var L, q;
|
|
1599
1604
|
if (((L = t == null ? void 0 : t.rowContents) == null ? void 0 : L.length) === 0) return;
|
|
1600
|
-
const
|
|
1605
|
+
const M = {};
|
|
1601
1606
|
(q = L0(t == null ? void 0 : t.rowContents)) == null || q.forEach((i2) => {
|
|
1602
|
-
|
|
1603
|
-
}), c.value =
|
|
1607
|
+
M[(i2 == null ? void 0 : i2.prop) ?? (i2 == null ? void 0 : i2.name)] = R(i2 == null ? void 0 : i2.type, i2 == null ? void 0 : i2.value);
|
|
1608
|
+
}), c.value = M, d.value = M, I();
|
|
1604
1609
|
},
|
|
1605
1610
|
{ deep: !0, immediate: !0 }
|
|
1606
1611
|
), n2(() => {
|
|
1607
1612
|
var L;
|
|
1608
1613
|
return (L = t == null ? void 0 : t.rowContents) == null ? void 0 : L.find((q) => {
|
|
1609
|
-
const { type: i2, optionUrl: u2 = {} } = q, { multiple: D2, multipleLimit: y2, menuFilter: w = [] } = u2,
|
|
1614
|
+
const { type: i2, optionUrl: u2 = {} } = q, { multiple: D2, multipleLimit: y2, menuFilter: w = [] } = u2, R2 = i2 === "Select", H2 = D2, I2 = "@Type:Manual", r0 = w == null ? void 0 : w.find((w0) => {
|
|
1610
1615
|
const { content: I0 } = w0;
|
|
1611
|
-
return I0.includes(
|
|
1616
|
+
return I0.includes(I2);
|
|
1612
1617
|
}), u0 = y2 && y2 > 1;
|
|
1613
|
-
return
|
|
1618
|
+
return R2 && H2 && r0 && u0;
|
|
1614
1619
|
});
|
|
1615
1620
|
});
|
|
1616
|
-
const a2 = async (
|
|
1621
|
+
const a2 = async (M, L) => {
|
|
1617
1622
|
if (await C0(), !!L) {
|
|
1618
|
-
if (
|
|
1623
|
+
if (M === "取消")
|
|
1619
1624
|
return r(
|
|
1620
1625
|
"onButtonClick",
|
|
1621
1626
|
{
|
|
1622
1627
|
content: null,
|
|
1623
|
-
buttonName:
|
|
1628
|
+
buttonName: M
|
|
1624
1629
|
}
|
|
1625
1630
|
);
|
|
1626
1631
|
await (L == null ? void 0 : L.validate((q, i2) => {
|
|
@@ -1628,7 +1633,7 @@ const lp = { class: "icon-popover" }, rp = ["onClick"], ap = /* @__PURE__ */ t0(
|
|
|
1628
1633
|
"onButtonClick",
|
|
1629
1634
|
{
|
|
1630
1635
|
content: d.value,
|
|
1631
|
-
buttonName:
|
|
1636
|
+
buttonName: M
|
|
1632
1637
|
}
|
|
1633
1638
|
) : console.log("表单校验失败", i2);
|
|
1634
1639
|
}));
|
|
@@ -1639,21 +1644,21 @@ const lp = { class: "icon-popover" }, rp = ["onClick"], ap = /* @__PURE__ */ t0(
|
|
|
1639
1644
|
});
|
|
1640
1645
|
const A = () => {
|
|
1641
1646
|
if (d.value) {
|
|
1642
|
-
let
|
|
1647
|
+
let M = {};
|
|
1643
1648
|
for (let L in d.value)
|
|
1644
|
-
Pi(d.value[L]) ?
|
|
1645
|
-
r("change",
|
|
1649
|
+
Pi(d.value[L]) ? M[L] = ue(d.value[L]).format("YYYY年MM月DD日") : M[L] = d.value[L];
|
|
1650
|
+
r("change", M);
|
|
1646
1651
|
}
|
|
1647
1652
|
};
|
|
1648
1653
|
return q2(
|
|
1649
1654
|
() => d.value,
|
|
1650
1655
|
() => {
|
|
1651
1656
|
if (d.value)
|
|
1652
|
-
for (let
|
|
1653
|
-
Pi(d.value[
|
|
1657
|
+
for (let M in d.value)
|
|
1658
|
+
Pi(d.value[M]) ? ue(d.value[M]).format("YYYY年MM月DD日") : d.value[M];
|
|
1654
1659
|
},
|
|
1655
1660
|
{ deep: !0 }
|
|
1656
|
-
), (
|
|
1661
|
+
), (M, L) => {
|
|
1657
1662
|
var D2;
|
|
1658
1663
|
const q = X("el-form-item"), i2 = X("el-form"), u2 = X("el-button");
|
|
1659
1664
|
return _(), E("div", {
|
|
@@ -1661,7 +1666,7 @@ const lp = { class: "icon-popover" }, rp = ["onClick"], ap = /* @__PURE__ */ t0(
|
|
|
1661
1666
|
style: A0({ flexDirection: n.isButtonRow ? "row" : "column" })
|
|
1662
1667
|
}, [
|
|
1663
1668
|
g.value ? (_(), E("div", bp, [
|
|
1664
|
-
w2(
|
|
1669
|
+
w2(M.$slots, "operateCol", {
|
|
1665
1670
|
renderColumns: n.rowContents,
|
|
1666
1671
|
formDisabled: n.formDisabled,
|
|
1667
1672
|
formLabelsOperable: n.formLabelsOperable
|
|
@@ -1680,8 +1685,8 @@ const lp = { class: "icon-popover" }, rp = ["onClick"], ap = /* @__PURE__ */ t0(
|
|
|
1680
1685
|
default: H(() => {
|
|
1681
1686
|
var y2;
|
|
1682
1687
|
return [
|
|
1683
|
-
(_(!0), E(_2, null, T2(t == null ? void 0 : t.rowContents, (w,
|
|
1684
|
-
key:
|
|
1688
|
+
(_(!0), E(_2, null, T2(t == null ? void 0 : t.rowContents, (w, R2) => $t((_(), F(q, {
|
|
1689
|
+
key: w == null ? void 0 : w.prop,
|
|
1685
1690
|
class: Xe(["form-item", { "form-row-content": !n.isRowFlex }]),
|
|
1686
1691
|
prop: (w == null ? void 0 : w.prop) ?? (w == null ? void 0 : w.name),
|
|
1687
1692
|
disabled: n.formDisabled || (w == null ? void 0 : w.disabled),
|
|
@@ -1694,7 +1699,7 @@ const lp = { class: "icon-popover" }, rp = ["onClick"], ap = /* @__PURE__ */ t0(
|
|
|
1694
1699
|
})
|
|
1695
1700
|
}, ve({
|
|
1696
1701
|
default: H(() => {
|
|
1697
|
-
var
|
|
1702
|
+
var H2, I2, r0, u0, w0, I0, O2, q0, M0, J0, Ne, nt, z2, a0;
|
|
1698
1703
|
return [
|
|
1699
1704
|
!(w != null && w.isFormColHidden) && (w == null ? void 0 : w.type) !== "Url" ? (_(), F(s3(m((w == null ? void 0 : w.type) ?? "Input")), {
|
|
1700
1705
|
modelValue: d.value[(w == null ? void 0 : w.prop) ?? (w == null ? void 0 : w.name)],
|
|
@@ -1706,8 +1711,8 @@ const lp = { class: "icon-popover" }, rp = ["onClick"], ap = /* @__PURE__ */ t0(
|
|
|
1706
1711
|
onClickTrigger: y,
|
|
1707
1712
|
originalValue: d.value[(w == null ? void 0 : w.prop) ?? (w == null ? void 0 : w.name)],
|
|
1708
1713
|
onChange: A,
|
|
1709
|
-
onBlur:
|
|
1710
|
-
key: w == null ? void 0 : w.
|
|
1714
|
+
onBlur: O,
|
|
1715
|
+
key: w == null ? void 0 : w.prop,
|
|
1711
1716
|
optionUrl: w,
|
|
1712
1717
|
onChangeVisible: V,
|
|
1713
1718
|
onBlurChange: (x0) => x((w == null ? void 0 : w.prop) ?? (w == null ? void 0 : w.name)),
|
|
@@ -1724,10 +1729,10 @@ const lp = { class: "icon-popover" }, rp = ["onClick"], ap = /* @__PURE__ */ t0(
|
|
|
1724
1729
|
modelValue: "详情"
|
|
1725
1730
|
}, null, 8, ["onClickTrigger"])
|
|
1726
1731
|
])) : c2("", !0),
|
|
1727
|
-
typeof d.value[(w == null ? void 0 : w.prop) ?? w.name] == "string" && ((
|
|
1732
|
+
typeof d.value[(w == null ? void 0 : w.prop) ?? w.name] == "string" && ((H2 = d.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && H2.includes(".stl") || (I2 = d.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && I2.includes(".obj") || (r0 = d.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && r0.includes(".urdf") || (u0 = d.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && u0.includes(".STL") || (w0 = d.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && w0.includes(".ls") || (I0 = d.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && I0.includes(".uv") || (O2 = d.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && O2.includes(".UV") || (q0 = d.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && q0.includes(".cpt") || (M0 = d.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && M0.includes(".CPT") || (J0 = d.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && J0.includes(".cyd") || (Ne = d.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && Ne.includes(".CYD") || (nt = d.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && nt.includes(".nc") || (z2 = d.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && z2.includes(".NC") || (a0 = d.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && a0.includes(".csv")) ? (_(), F(ge, {
|
|
1728
1733
|
key: 2,
|
|
1729
1734
|
class: "calculator-content form-preview",
|
|
1730
|
-
onClickTrigger: (x0) =>
|
|
1735
|
+
onClickTrigger: (x0) => D(d.value[(w == null ? void 0 : w.prop) ?? w.name]),
|
|
1731
1736
|
modelValue: "预览"
|
|
1732
1737
|
}, null, 8, ["onClickTrigger"])) : c2("", !0)
|
|
1733
1738
|
];
|
|
@@ -1747,7 +1752,7 @@ const lp = { class: "icon-popover" }, rp = ["onClick"], ap = /* @__PURE__ */ t0(
|
|
|
1747
1752
|
value: w == null ? void 0 : w.label,
|
|
1748
1753
|
appendShow: !0,
|
|
1749
1754
|
class: "col-edit-input",
|
|
1750
|
-
onChange: (
|
|
1755
|
+
onChange: (H2) => j(H2, w)
|
|
1751
1756
|
}, {
|
|
1752
1757
|
append: H(() => [
|
|
1753
1758
|
t2(P4, {
|
|
@@ -1755,7 +1760,7 @@ const lp = { class: "icon-popover" }, rp = ["onClick"], ap = /* @__PURE__ */ t0(
|
|
|
1755
1760
|
content: f.value,
|
|
1756
1761
|
placeholder: "类型",
|
|
1757
1762
|
style: { width: "100%" },
|
|
1758
|
-
onChange: (
|
|
1763
|
+
onChange: (H2) => T(H2, w)
|
|
1759
1764
|
}, null, 8, ["value", "content", "onChange"])
|
|
1760
1765
|
]),
|
|
1761
1766
|
_: 2
|
|
@@ -1775,15 +1780,15 @@ const lp = { class: "icon-popover" }, rp = ["onClick"], ap = /* @__PURE__ */ t0(
|
|
|
1775
1780
|
class: "form-button",
|
|
1776
1781
|
style: A0({ paddingTop: n.isRowFlex ? "0" : "26px", justifyContent: n.isStartJustify ? "start" : "end" })
|
|
1777
1782
|
}, [
|
|
1778
|
-
(_(!0), E(_2, null, T2(t == null ? void 0 : t.buttonValue, (w,
|
|
1779
|
-
key:
|
|
1783
|
+
(_(!0), E(_2, null, T2(t == null ? void 0 : t.buttonValue, (w, R2) => (_(), E("div", {
|
|
1784
|
+
key: R2,
|
|
1780
1785
|
class: "form-button-content"
|
|
1781
1786
|
}, [
|
|
1782
1787
|
w ? (_(), E("div", {
|
|
1783
1788
|
key: 0,
|
|
1784
1789
|
class: "form-button-item",
|
|
1785
1790
|
style: A0({ background: (w == null ? void 0 : w.background) ?? "var(--ssComponent-primary-color)" }),
|
|
1786
|
-
onClick: (
|
|
1791
|
+
onClick: (H2) => a2(w == null ? void 0 : w.label, h.value)
|
|
1787
1792
|
}, L2(w == null ? void 0 : w.label), 13, kp)) : c2("", !0)
|
|
1788
1793
|
]))), 128))
|
|
1789
1794
|
], 4)) : c2("", !0)
|
|
@@ -1800,7 +1805,7 @@ const lp = { class: "icon-popover" }, rp = ["onClick"], ap = /* @__PURE__ */ t0(
|
|
|
1800
1805
|
(_(!0), E(_2, null, T2(t == null ? void 0 : t.buttonValue, (y2, w) => (_(), E("div", {
|
|
1801
1806
|
key: w,
|
|
1802
1807
|
class: "form-button-content",
|
|
1803
|
-
onClick: (
|
|
1808
|
+
onClick: (R2) => a2(y2 == null ? void 0 : y2.label, t.isEnableWrap ? a.value : h.value)
|
|
1804
1809
|
}, [
|
|
1805
1810
|
t2(u2, {
|
|
1806
1811
|
id: "themeButton",
|
|
@@ -1816,7 +1821,7 @@ const lp = { class: "icon-popover" }, rp = ["onClick"], ap = /* @__PURE__ */ t0(
|
|
|
1816
1821
|
], 4);
|
|
1817
1822
|
};
|
|
1818
1823
|
}
|
|
1819
|
-
}, Mp = /* @__PURE__ */ P2(Op, [["__scopeId", "data-v-
|
|
1824
|
+
}, Mp = /* @__PURE__ */ P2(Op, [["__scopeId", "data-v-76c86fbc"]]), Tp = {
|
|
1820
1825
|
__name: "index",
|
|
1821
1826
|
props: {
|
|
1822
1827
|
value: String,
|
|
@@ -2039,7 +2044,7 @@ const Lp = /* @__PURE__ */ P2(Ep, [["render", Bp]]), Hp = { class: "extra-button
|
|
|
2039
2044
|
if ((n == null ? void 0 : n.prop) === "operate") return 50;
|
|
2040
2045
|
const e = ((s = n == null ? void 0 : n.label) == null ? void 0 : s.length) || 5, t = document.documentElement.style.fontSize, i = e * parseFloat(t);
|
|
2041
2046
|
return Math.min(Math.max(i, 100), 200);
|
|
2042
|
-
}, Np = ["title"], Rp = /* @__PURE__ */
|
|
2047
|
+
}, Np = ["title"], Rp = /* @__PURE__ */ J2({
|
|
2043
2048
|
__name: "recurseCol",
|
|
2044
2049
|
props: {
|
|
2045
2050
|
column: {
|
|
@@ -2093,12 +2098,12 @@ const Lp = /* @__PURE__ */ P2(Ep, [["render", Bp]]), Hp = { class: "extra-button
|
|
|
2093
2098
|
$index: v.$index,
|
|
2094
2099
|
scope: v
|
|
2095
2100
|
}),
|
|
2096
|
-
(_(!0), E(_2, null, T2(n.column.children, (y,
|
|
2097
|
-
key:
|
|
2101
|
+
(_(!0), E(_2, null, T2(n.column.children, (y, D) => (_(), F(o, {
|
|
2102
|
+
key: D,
|
|
2098
2103
|
column: y,
|
|
2099
2104
|
tableData: n.tableData
|
|
2100
2105
|
}, ve({ _: 2 }, [
|
|
2101
|
-
T2(e.$slots, (
|
|
2106
|
+
T2(e.$slots, (O, S) => ({
|
|
2102
2107
|
name: S,
|
|
2103
2108
|
fn: H(({ row: x, slotData: C, item: I, column: R }) => [
|
|
2104
2109
|
w2(e.$slots, S, u1({ ref_for: !0 }, C ?? x, {
|
|
@@ -2116,7 +2121,7 @@ const Lp = /* @__PURE__ */ P2(Ep, [["render", Bp]]), Hp = { class: "extra-button
|
|
|
2116
2121
|
}, 8, ["label", "prop", "fixed", "header-align", "sortable", "show-overflow-tooltip", "class-name", "min-width"]));
|
|
2117
2122
|
};
|
|
2118
2123
|
}
|
|
2119
|
-
}), $p = ["title"], jp = /* @__PURE__ */
|
|
2124
|
+
}), $p = ["title"], jp = /* @__PURE__ */ J2({
|
|
2120
2125
|
__name: "index",
|
|
2121
2126
|
props: {
|
|
2122
2127
|
column: {
|
|
@@ -2158,7 +2163,7 @@ const Lp = /* @__PURE__ */ P2(Ep, [["render", Bp]]), Hp = { class: "extra-button
|
|
|
2158
2163
|
})) : !1;
|
|
2159
2164
|
};
|
|
2160
2165
|
return (d, u) => {
|
|
2161
|
-
var g, m, v, y,
|
|
2166
|
+
var g, m, v, y, D, O, S, x, C, I;
|
|
2162
2167
|
const f = X("svg-icon"), p = X("el-table-column");
|
|
2163
2168
|
return n.column.isTableColHidden ? c2("", !0) : (_(), F(p, {
|
|
2164
2169
|
key: 0,
|
|
@@ -2167,7 +2172,7 @@ const Lp = /* @__PURE__ */ P2(Ep, [["render", Bp]]), Hp = { class: "extra-button
|
|
|
2167
2172
|
fixed: ((g = n.column) == null ? void 0 : g.prop) === "operate" ? "right" : (m = n.column) == null ? void 0 : m.fixed,
|
|
2168
2173
|
align: "center",
|
|
2169
2174
|
"header-align": (((y = (v = n.column) == null ? void 0 : v.children) == null ? void 0 : y.length) > 0, "center"),
|
|
2170
|
-
sortable: ((
|
|
2175
|
+
sortable: ((D = n.column) == null ? void 0 : D.prop) === "operate" ? !1 : (O = n.column) != null && O.sortable ? "custom" : !1,
|
|
2171
2176
|
filters: (S = n.column) != null && S.filterable ? c(n.column) : null,
|
|
2172
2177
|
"filter-method": l,
|
|
2173
2178
|
"show-overflow-tooltip": ((x = n.column) == null ? void 0 : x.showOverflowTooltip) ?? !0,
|
|
@@ -2232,10 +2237,10 @@ const Lp = /* @__PURE__ */ P2(Ep, [["render", Bp]]), Hp = { class: "extra-button
|
|
|
2232
2237
|
}, ve({ _: 2 }, [
|
|
2233
2238
|
T2(d.$slots, (T, a2) => ({
|
|
2234
2239
|
name: a2,
|
|
2235
|
-
fn: H(({ row: A, slotData:
|
|
2236
|
-
w2(d.$slots, a2, u1({ ref_for: !0 },
|
|
2240
|
+
fn: H(({ row: A, slotData: M, item: L, column: q }) => [
|
|
2241
|
+
w2(d.$slots, a2, u1({ ref_for: !0 }, M ?? A, {
|
|
2237
2242
|
item: L ?? V,
|
|
2238
|
-
slotData:
|
|
2243
|
+
slotData: M ?? A,
|
|
2239
2244
|
row: A,
|
|
2240
2245
|
column: q,
|
|
2241
2246
|
columnProp: V
|
|
@@ -2251,7 +2256,7 @@ const Lp = /* @__PURE__ */ P2(Ep, [["render", Bp]]), Hp = { class: "extra-button
|
|
|
2251
2256
|
}), Wp = {
|
|
2252
2257
|
key: 0,
|
|
2253
2258
|
class: "status-wrap"
|
|
2254
|
-
}, Up = /* @__PURE__ */
|
|
2259
|
+
}, Up = /* @__PURE__ */ J2({
|
|
2255
2260
|
__name: "index",
|
|
2256
2261
|
props: {
|
|
2257
2262
|
showTag: {
|
|
@@ -2401,7 +2406,7 @@ const Lp = /* @__PURE__ */ P2(Ep, [["render", Bp]]), Hp = { class: "extra-button
|
|
|
2401
2406
|
}), d = E3({ x: 0, y: 0 }), u = G([]), f = G([]), p = G(0), g = G(null), m = G(null), v = G(null), y = n2(() => {
|
|
2402
2407
|
var b, k;
|
|
2403
2408
|
return Array.isArray(u.value) && ((k = (b = u.value) == null ? void 0 : b[0]) == null ? void 0 : k.prop) === "disabled";
|
|
2404
|
-
}),
|
|
2409
|
+
}), D = n2(() => t.allowRowAddOrDelete && !y.value), O = e;
|
|
2405
2410
|
Q3("contentRef"), _e(() => {
|
|
2406
2411
|
var k, z, B, Z, e2;
|
|
2407
2412
|
C = x(), u.value = t == null ? void 0 : t.columns, f.value = (k = t == null ? void 0 : t.tableData) == null ? void 0 : k.map((l2) => {
|
|
@@ -2528,9 +2533,9 @@ const Lp = /* @__PURE__ */ P2(Ep, [["render", Bp]]), Hp = { class: "extra-button
|
|
|
2528
2533
|
}, 10));
|
|
2529
2534
|
}, { immediate: !0 });
|
|
2530
2535
|
const R = (b, k) => {
|
|
2531
|
-
|
|
2536
|
+
O("handleColEditChange", b, k);
|
|
2532
2537
|
}, V = (b, k) => {
|
|
2533
|
-
|
|
2538
|
+
O("handleColTypeChange", b, k);
|
|
2534
2539
|
}, j = (b) => {
|
|
2535
2540
|
var z, B, Z, e2;
|
|
2536
2541
|
if (r.value = !1, !t.isEditViewport) return;
|
|
@@ -2538,7 +2543,7 @@ const Lp = /* @__PURE__ */ P2(Ep, [["render", Bp]]), Hp = { class: "extra-button
|
|
|
2538
2543
|
(B = (z = g.value) == null ? void 0 : z.$el) != null && B.contains(k) || (Z = k == null ? void 0 : k.closest) != null && Z.call(k, "#themeButton, #themeBorderButton,#tableHeaderButton") || (e2 = k == null ? void 0 : k.closest) != null && e2.call(
|
|
2539
2544
|
k,
|
|
2540
2545
|
".el-popper, .el-select__popper, .el-select-dropdown, .el-picker__popper, .el-picker-panel,.el-dialog__wrapper, .el-overlay, .el-message-box__wrapper, .el-popover"
|
|
2541
|
-
) ||
|
|
2546
|
+
) || O("submitEditingTable");
|
|
2542
2547
|
}, T = n2(() => {
|
|
2543
2548
|
var b;
|
|
2544
2549
|
return (b = t == null ? void 0 : t.extraButton) == null ? void 0 : b.filter((k) => {
|
|
@@ -2551,20 +2556,20 @@ const Lp = /* @__PURE__ */ P2(Ep, [["render", Bp]]), Hp = { class: "extra-button
|
|
|
2551
2556
|
var z;
|
|
2552
2557
|
return (z = k == null ? void 0 : k.label) == null ? void 0 : z.includes("批量");
|
|
2553
2558
|
});
|
|
2554
|
-
}), A = G(0),
|
|
2559
|
+
}), A = G(0), M = G(!1), L = (b, k, z) => {
|
|
2555
2560
|
A.value = b == null ? void 0 : b.id;
|
|
2556
2561
|
}, q = (b, k, z) => {
|
|
2557
2562
|
A.value = 0;
|
|
2558
2563
|
}, i2 = () => {
|
|
2559
|
-
|
|
2564
|
+
M.value = !1;
|
|
2560
2565
|
}, u2 = Q3("getSuggestListForCell", () => []), D2 = Q3("getSuggestLoadingForCell", () => !1), y2 = (b, k, z, B) => {
|
|
2561
2566
|
const Z = (B == null ? void 0 : B.formType) || (B == null ? void 0 : B.columnType) || "";
|
|
2562
|
-
Z && Z.toUpperCase() !== "INPUT" && Z !== "" ||
|
|
2567
|
+
Z && Z.toUpperCase() !== "INPUT" && Z !== "" || O("cellInput", k, z, b);
|
|
2563
2568
|
}, w = (b, k, z, B) => {
|
|
2564
|
-
|
|
2565
|
-
},
|
|
2566
|
-
|
|
2567
|
-
},
|
|
2569
|
+
O("selectSuggest", k, z, b);
|
|
2570
|
+
}, R2 = (b) => {
|
|
2571
|
+
O("selectChange", b);
|
|
2572
|
+
}, H2 = (b, k) => {
|
|
2568
2573
|
var z, B, Z;
|
|
2569
2574
|
if (typeof t.selectable == "function")
|
|
2570
2575
|
return t.selectable(b, k);
|
|
@@ -2573,31 +2578,31 @@ const Lp = /* @__PURE__ */ P2(Ep, [["render", Bp]]), Hp = { class: "extra-button
|
|
|
2573
2578
|
return e2.length === 0 || ((Z = e2 == null ? void 0 : e2[0]) == null ? void 0 : Z.id) === (b == null ? void 0 : b.id);
|
|
2574
2579
|
}
|
|
2575
2580
|
return !0;
|
|
2576
|
-
},
|
|
2581
|
+
}, I2 = (b, k, z, B) => n2(() => {
|
|
2577
2582
|
var e2, l2, Y, s2, r2, U, h2, M2, j2, g2;
|
|
2578
2583
|
let Z = b != null && b[k == null ? void 0 : k.prop] ? ((l2 = (e2 = b == null ? void 0 : b[k == null ? void 0 : k.prop]) == null ? void 0 : e2[0]) == null ? void 0 : l2.contents) ?? (b == null ? void 0 : b[k == null ? void 0 : k.prop]) : ((s2 = (Y = b == null ? void 0 : b[z == null ? void 0 : z.prop]) == null ? void 0 : Y[0]) == null ? void 0 : s2.contents) ?? (b == null ? void 0 : b[z == null ? void 0 : z.prop]) ?? ((U = (r2 = B == null ? void 0 : B[z == null ? void 0 : z.prop]) == null ? void 0 : r2[0]) == null ? void 0 : U.contents) ?? (B == null ? void 0 : B[z == null ? void 0 : z.prop]) ?? ((j2 = (M2 = b == null ? void 0 : b[(h2 = z == null ? void 0 : z.child) == null ? void 0 : h2.prop]) == null ? void 0 : M2[0]) == null ? void 0 : j2.contents) ?? (b == null ? void 0 : b[(g2 = z == null ? void 0 : z.child) == null ? void 0 : g2.prop]);
|
|
2579
2584
|
return Array.isArray(Z) && !(Z != null && Z.every((b2) => typeof b2 == "string" || typeof b2 == "number")) ? "查看" : Z;
|
|
2580
2585
|
}), r0 = (b) => {
|
|
2581
2586
|
var B, Z, e2;
|
|
2582
2587
|
let k = (Z = (B = u.value) == null ? void 0 : B[0]) == null ? void 0 : Z.prop, z = (e2 = f.value) == null ? void 0 : e2.map((l2) => l2 == null ? void 0 : l2[k]);
|
|
2583
|
-
|
|
2588
|
+
O("rowClick", {
|
|
2584
2589
|
row: b,
|
|
2585
2590
|
type: "table",
|
|
2586
2591
|
usingRow: u.value,
|
|
2587
2592
|
firstContents: z
|
|
2588
2593
|
});
|
|
2589
2594
|
}, u0 = (b, k, z, B) => {
|
|
2590
|
-
if (!
|
|
2595
|
+
if (!D.value) return;
|
|
2591
2596
|
const Z = z == null ? void 0 : z.innerText, e2 = Yp(Z);
|
|
2592
2597
|
d.x = B.clientX, d.y = B.clientY, r.value = !0, e2 && (a.value = z.innerText), h.value = b;
|
|
2593
2598
|
}, w0 = () => {
|
|
2594
|
-
|
|
2599
|
+
O("clickButton", "删除", h.value, { extra: { label: "删除" } }), r.value = !1;
|
|
2595
2600
|
}, I0 = () => {
|
|
2596
|
-
|
|
2601
|
+
O("clickButton", "批量删除", null, { extra: { label: "批量删除" } }), r.value = !1;
|
|
2597
2602
|
}, O2 = (b) => {
|
|
2598
|
-
|
|
2603
|
+
O("buttonClick", b);
|
|
2599
2604
|
}, q0 = ({ prop: b, order: k }) => {
|
|
2600
|
-
|
|
2605
|
+
O("sortChange", { prop: b, order: k });
|
|
2601
2606
|
};
|
|
2602
2607
|
q2(
|
|
2603
2608
|
() => t == null ? void 0 : t.tableData,
|
|
@@ -2620,19 +2625,19 @@ const Lp = /* @__PURE__ */ P2(Ep, [["render", Bp]]), Hp = { class: "extra-button
|
|
|
2620
2625
|
{ deep: !0 }
|
|
2621
2626
|
);
|
|
2622
2627
|
const M0 = (b) => gi(b), J0 = (b, k, z) => {
|
|
2623
|
-
|
|
2628
|
+
O("clickButton", b, k, z);
|
|
2624
2629
|
}, Ne = (b) => {
|
|
2625
|
-
|
|
2630
|
+
O("doCurrentChange", b);
|
|
2626
2631
|
}, nt = (b, k) => {
|
|
2627
|
-
|
|
2632
|
+
O("dbClickRow", b, k);
|
|
2628
2633
|
}, z2 = (b) => {
|
|
2629
|
-
|
|
2634
|
+
O("doSizeChange", b);
|
|
2630
2635
|
}, a0 = (b) => {
|
|
2631
|
-
|
|
2636
|
+
O("fixRow", b);
|
|
2632
2637
|
}, x0 = (b) => {
|
|
2633
|
-
|
|
2638
|
+
O("deleteRow", b);
|
|
2634
2639
|
}, jl = (b, k) => {
|
|
2635
|
-
|
|
2640
|
+
O("clickButton", "删除", b, { extra: { label: "删除" }, index: k });
|
|
2636
2641
|
}, mi = (b, k) => {
|
|
2637
2642
|
var e2, l2, Y, s2;
|
|
2638
2643
|
if ((b == null ? void 0 : b.id) === "__empty__") {
|
|
@@ -2640,7 +2645,7 @@ const Lp = /* @__PURE__ */ P2(Ep, [["render", Bp]]), Hp = { class: "extra-button
|
|
|
2640
2645
|
(e2 = u.value) == null || e2.forEach((U) => {
|
|
2641
2646
|
const h2 = U == null ? void 0 : U.prop;
|
|
2642
2647
|
!h2 || h2 === "operate" || (r2[h2] = "");
|
|
2643
|
-
}), r2.id = `${Date.now()}_${Math.random().toString(16).slice(2)}`, r2._isTemp = !0,
|
|
2648
|
+
}), r2.id = `${Date.now()}_${Math.random().toString(16).slice(2)}`, r2._isTemp = !0, O("addNewRow", { newRow: r2, targetIndex: 0 });
|
|
2644
2649
|
return;
|
|
2645
2650
|
}
|
|
2646
2651
|
const z = {};
|
|
@@ -2649,9 +2654,9 @@ const Lp = /* @__PURE__ */ P2(Ep, [["render", Bp]]), Hp = { class: "extra-button
|
|
|
2649
2654
|
!U || U === "operate" || (z[U] = "");
|
|
2650
2655
|
}), z.id = `${Date.now()}_${Math.random().toString(16).slice(2)}`, z._isTemp = !0, (b == null ? void 0 : b.level) !== void 0 && (z.level = b.level), (b == null ? void 0 : b.tableEditType) !== void 0 && (z.tableEditType = b.tableEditType);
|
|
2651
2656
|
const B = typeof k == "number" ? k : (Y = f.value) == null ? void 0 : Y.findIndex((r2) => (r2 == null ? void 0 : r2.id) === (b == null ? void 0 : b.id)), Z = B >= 0 ? B + 1 : ((s2 = f.value) == null ? void 0 : s2.length) ?? 0;
|
|
2652
|
-
|
|
2657
|
+
O("addNewRow", { newRow: z, targetIndex: Z });
|
|
2653
2658
|
}, Wl = (b, k, z, B) => {
|
|
2654
|
-
|
|
2659
|
+
O("contentClick", b, k, z, B);
|
|
2655
2660
|
}, vi = () => {
|
|
2656
2661
|
var k;
|
|
2657
2662
|
const b = (k = g.value) == null ? void 0 : k.$el.querySelector(".el-table__header-wrapper tr");
|
|
@@ -2826,7 +2831,7 @@ const Lp = /* @__PURE__ */ P2(Ep, [["render", Bp]]), Hp = { class: "extra-button
|
|
|
2826
2831
|
}
|
|
2827
2832
|
k[z.prop] = B;
|
|
2828
2833
|
}
|
|
2829
|
-
|
|
2834
|
+
O("cellChange", k, z, B);
|
|
2830
2835
|
}, tr = (b) => b == null ? void 0 : b.toLocaleString("zh-CN", {
|
|
2831
2836
|
minimumFractionDigits: 2,
|
|
2832
2837
|
maximumFractionDigits: 2
|
|
@@ -2973,7 +2978,7 @@ const Lp = /* @__PURE__ */ P2(Ep, [["render", Bp]]), Hp = { class: "extra-button
|
|
|
2973
2978
|
"empty-text": "暂无数据",
|
|
2974
2979
|
onCellContextmenu: u0,
|
|
2975
2980
|
onPaste: Kl,
|
|
2976
|
-
onSelectionChange:
|
|
2981
|
+
onSelectionChange: R2,
|
|
2977
2982
|
onRowDblclick: nt,
|
|
2978
2983
|
key: p.value,
|
|
2979
2984
|
"row-class-name": Jl,
|
|
@@ -2992,11 +2997,11 @@ const Lp = /* @__PURE__ */ P2(Ep, [["render", Bp]]), Hp = { class: "extra-button
|
|
|
2992
2997
|
empty: H(() => [
|
|
2993
2998
|
o2("div", {
|
|
2994
2999
|
class: "ss-empty-wrapper",
|
|
2995
|
-
onMouseenter: k[1] || (k[1] = (g2) =>
|
|
2996
|
-
onMouseleave: k[2] || (k[2] = (g2) =>
|
|
3000
|
+
onMouseenter: k[1] || (k[1] = (g2) => M.value = !0),
|
|
3001
|
+
onMouseleave: k[2] || (k[2] = (g2) => M.value = !1)
|
|
2997
3002
|
}, [
|
|
2998
3003
|
k[5] || (k[5] = o2("div", { class: "ss-empty-text" }, "暂无数据", -1)),
|
|
2999
|
-
|
|
3004
|
+
D.value ? $t((_(), E("span", {
|
|
3000
3005
|
key: 0,
|
|
3001
3006
|
title: "新增行",
|
|
3002
3007
|
class: "ss-empty-add",
|
|
@@ -3009,14 +3014,14 @@ const Lp = /* @__PURE__ */ P2(Ep, [["render", Bp]]), Hp = { class: "extra-button
|
|
|
3009
3014
|
_: 1
|
|
3010
3015
|
})
|
|
3011
3016
|
], 512)), [
|
|
3012
|
-
[U1,
|
|
3017
|
+
[U1, M.value]
|
|
3013
3018
|
]) : c2("", !0)
|
|
3014
3019
|
], 32)
|
|
3015
3020
|
]),
|
|
3016
3021
|
default: H(() => {
|
|
3017
3022
|
var g2, b2, m2, V2, T0, f0;
|
|
3018
3023
|
return [
|
|
3019
|
-
|
|
3024
|
+
D.value ? (_(), F(Z, {
|
|
3020
3025
|
key: 0,
|
|
3021
3026
|
width: 55,
|
|
3022
3027
|
fixed: "",
|
|
@@ -3066,7 +3071,7 @@ const Lp = /* @__PURE__ */ P2(Ep, [["render", Bp]]), Hp = { class: "extra-button
|
|
|
3066
3071
|
type: "selection",
|
|
3067
3072
|
width: (g2 = n.columns) != null && g2.some(($) => $ == null ? void 0 : $.showSummary) ? 55 : 38,
|
|
3068
3073
|
fixed: "",
|
|
3069
|
-
selectable:
|
|
3074
|
+
selectable: H2
|
|
3070
3075
|
}, null, 8, ["width"])) : c2("", !0),
|
|
3071
3076
|
t != null && t.showIndex && !((b2 = t == null ? void 0 : t.tableData) != null && b2.some(($) => $ == null ? void 0 : $.children)) && ((V2 = (m2 = t == null ? void 0 : t.columns) == null ? void 0 : m2[0]) == null ? void 0 : V2.prop) !== "disabled" ? (_(), F(Z, {
|
|
3072
3077
|
key: 2,
|
|
@@ -3119,7 +3124,7 @@ const Lp = /* @__PURE__ */ P2(Ep, [["render", Bp]]), Hp = { class: "extra-button
|
|
|
3119
3124
|
onClick: (p2) => {
|
|
3120
3125
|
var b1;
|
|
3121
3126
|
return Wl(f2 != null && f2[$ == null ? void 0 : $.prop] ? f2 == null ? void 0 : f2[$ == null ? void 0 : $.prop] : (f2 == null ? void 0 : f2[U2 == null ? void 0 : U2.prop]) ?? (Re == null ? void 0 : Re[U2 == null ? void 0 : U2.prop]) ?? (f2 == null ? void 0 : f2[(b1 = U2 == null ? void 0 : U2.child) == null ? void 0 : b1.prop]), U2 == null ? void 0 : U2.prop, f2 ?? Re, {
|
|
3122
|
-
data:
|
|
3127
|
+
data: I2(f2, $, U2, Re).value,
|
|
3123
3128
|
isExistChild: $ == null ? void 0 : $.isExistChild
|
|
3124
3129
|
});
|
|
3125
3130
|
}
|
|
@@ -3135,7 +3140,7 @@ const Lp = /* @__PURE__ */ P2(Ep, [["render", Bp]]), Hp = { class: "extra-button
|
|
|
3135
3140
|
}, void 0, !0)
|
|
3136
3141
|
])) : c2("", !0)
|
|
3137
3142
|
], 64)) : ((xi = n.columns) == null ? void 0 : xi.findIndex((p2) => (p2 == null ? void 0 : p2.prop) === ($ == null ? void 0 : $.prop))) >= ((f2 == null ? void 0 : f2.level) ?? -1) ? (_(), E(_2, { key: 1 }, [
|
|
3138
|
-
B0(L2(
|
|
3143
|
+
B0(L2(I2(f2, $, U2, Re)), 1)
|
|
3139
3144
|
], 64)) : c2("", !0)
|
|
3140
3145
|
], 12, tg)) : c2("", !0),
|
|
3141
3146
|
(($ == null ? void 0 : $.type) ?? "text") === "operate" ? (_(), E("span", {
|
|
@@ -3180,7 +3185,7 @@ const Lp = /* @__PURE__ */ P2(Ep, [["render", Bp]]), Hp = { class: "extra-button
|
|
|
3180
3185
|
onInput: (p2) => y2(p2, f2, i0, st ?? U2 ?? $),
|
|
3181
3186
|
onSelectSuggest: (p2) => w(p2, f2, i0),
|
|
3182
3187
|
onChange: (p2) => {
|
|
3183
|
-
er(p2, f2, $),
|
|
3188
|
+
er(p2, f2, $), O("cellChange", f2, i0, p2);
|
|
3184
3189
|
}
|
|
3185
3190
|
}, null, 40, ["modelValue", "onUpdate:modelValue", "content", "optionUrl", "suggest-list", "loading", "onFocus", "onInput", "onSelectSuggest", "onChange"]))
|
|
3186
3191
|
])) : c2("", !0)
|
|
@@ -3246,7 +3251,7 @@ const Lp = /* @__PURE__ */ P2(Ep, [["render", Bp]]), Hp = { class: "extra-button
|
|
|
3246
3251
|
]),
|
|
3247
3252
|
_: 1
|
|
3248
3253
|
}, 8, ["style"]), [
|
|
3249
|
-
[U1, r.value &&
|
|
3254
|
+
[U1, r.value && D.value]
|
|
3250
3255
|
])
|
|
3251
3256
|
], 512);
|
|
3252
3257
|
};
|
|
@@ -3328,7 +3333,7 @@ const Lp = /* @__PURE__ */ P2(Ep, [["render", Bp]]), Hp = { class: "extra-button
|
|
|
3328
3333
|
], 64);
|
|
3329
3334
|
};
|
|
3330
3335
|
}
|
|
3331
|
-
}, wg = /* @__PURE__ */
|
|
3336
|
+
}, wg = /* @__PURE__ */ J2({
|
|
3332
3337
|
__name: "index",
|
|
3333
3338
|
props: {
|
|
3334
3339
|
value: String,
|
|
@@ -3401,7 +3406,7 @@ const Lp = /* @__PURE__ */ P2(Ep, [["render", Bp]]), Hp = { class: "extra-button
|
|
|
3401
3406
|
}, 8, ["modelValue"]);
|
|
3402
3407
|
};
|
|
3403
3408
|
}
|
|
3404
|
-
}, bg = /* @__PURE__ */
|
|
3409
|
+
}, bg = /* @__PURE__ */ J2({
|
|
3405
3410
|
__name: "menuItem",
|
|
3406
3411
|
props: {
|
|
3407
3412
|
menuList: {
|
|
@@ -3469,7 +3474,7 @@ const Lp = /* @__PURE__ */ P2(Ep, [["render", Bp]]), Hp = { class: "extra-button
|
|
|
3469
3474
|
], 64))), 256);
|
|
3470
3475
|
};
|
|
3471
3476
|
}
|
|
3472
|
-
}), _g = /* @__PURE__ */
|
|
3477
|
+
}), _g = /* @__PURE__ */ J2({
|
|
3473
3478
|
__name: "index",
|
|
3474
3479
|
props: {
|
|
3475
3480
|
menuList: {
|
|
@@ -3499,8 +3504,8 @@ const Lp = /* @__PURE__ */ P2(Ep, [["render", Bp]]), Hp = { class: "extra-button
|
|
|
3499
3504
|
h("closeMenu", m);
|
|
3500
3505
|
}, p = n2(() => r.value ? (a == null ? void 0 : a.mode) === "vertical" ? r.value : o.value : (a == null ? void 0 : a.mode) === "vertical" ? i.value : o.value), g = n2(() => s.value);
|
|
3501
3506
|
return (m, v) => {
|
|
3502
|
-
const y = X("el-sub-menu"),
|
|
3503
|
-
return _(), F(
|
|
3507
|
+
const y = X("el-sub-menu"), D = X("el-menu-item"), O = X("el-menu");
|
|
3508
|
+
return _(), F(O, {
|
|
3504
3509
|
class: "menu-wrap",
|
|
3505
3510
|
mode: n.mode,
|
|
3506
3511
|
"default-active": p.value,
|
|
@@ -3543,7 +3548,7 @@ const Lp = /* @__PURE__ */ P2(Ep, [["render", Bp]]), Hp = { class: "extra-button
|
|
|
3543
3548
|
]), 1032, ["menuList"])
|
|
3544
3549
|
]),
|
|
3545
3550
|
_: 2
|
|
3546
|
-
}, 1032, ["index", "style"])) : S.show ? (_(), F(
|
|
3551
|
+
}, 1032, ["index", "style"])) : S.show ? (_(), F(D, {
|
|
3547
3552
|
index: S.path,
|
|
3548
3553
|
key: S.path,
|
|
3549
3554
|
style: A0(S.style),
|
|
@@ -6832,28 +6837,28 @@ function fm(n, e, t, i, s, o, l, r) {
|
|
|
6832
6837
|
if (s == "nearest")
|
|
6833
6838
|
e.top < u.top ? (v = e.top - (u.top + l), t > 0 && e.bottom > u.bottom + v && (v = e.bottom - u.bottom + l)) : e.bottom > u.bottom && (v = e.bottom - u.bottom + l, t < 0 && e.top - v < u.top && (v = e.top - (u.top + l)));
|
|
6834
6839
|
else {
|
|
6835
|
-
let y = e.bottom - e.top,
|
|
6836
|
-
v = (s == "center" && y <=
|
|
6840
|
+
let y = e.bottom - e.top, D = u.bottom - u.top;
|
|
6841
|
+
v = (s == "center" && y <= D ? e.top + y / 2 - D / 2 : s == "start" || s == "center" && t < 0 ? e.top - l : e.bottom - D + l) - u.top;
|
|
6837
6842
|
}
|
|
6838
6843
|
if (i == "nearest" ? e.left < u.left ? (m = e.left - (u.left + o), t > 0 && e.right > u.right + m && (m = e.right - u.right + o)) : e.right > u.right && (m = e.right - u.right + o, t < 0 && e.left < u.left + m && (m = e.left - (u.left + o))) : m = (i == "center" ? e.left + (e.right - e.left) / 2 - (u.right - u.left) / 2 : i == "start" == r ? e.left - o : e.right - (u.right - u.left) + o) - u.left, m || v)
|
|
6839
6844
|
if (f)
|
|
6840
6845
|
h.scrollBy(m, v);
|
|
6841
6846
|
else {
|
|
6842
|
-
let y = 0,
|
|
6847
|
+
let y = 0, D = 0;
|
|
6843
6848
|
if (v) {
|
|
6844
|
-
let
|
|
6845
|
-
c.scrollTop += v / g,
|
|
6849
|
+
let O = c.scrollTop;
|
|
6850
|
+
c.scrollTop += v / g, D = (c.scrollTop - O) * g;
|
|
6846
6851
|
}
|
|
6847
6852
|
if (m) {
|
|
6848
|
-
let
|
|
6849
|
-
c.scrollLeft += m / p, y = (c.scrollLeft -
|
|
6853
|
+
let O = c.scrollLeft;
|
|
6854
|
+
c.scrollLeft += m / p, y = (c.scrollLeft - O) * p;
|
|
6850
6855
|
}
|
|
6851
6856
|
e = {
|
|
6852
6857
|
left: e.left - y,
|
|
6853
|
-
top: e.top -
|
|
6858
|
+
top: e.top - D,
|
|
6854
6859
|
right: e.right - y,
|
|
6855
|
-
bottom: e.bottom -
|
|
6856
|
-
}, y && Math.abs(y - m) < 1 && (i = "nearest"),
|
|
6860
|
+
bottom: e.bottom - D
|
|
6861
|
+
}, y && Math.abs(y - m) < 1 && (i = "nearest"), D && Math.abs(D - v) < 1 && (s = "nearest");
|
|
6857
6862
|
}
|
|
6858
6863
|
if (f)
|
|
6859
6864
|
break;
|
|
@@ -8023,10 +8028,10 @@ class St extends Ie {
|
|
|
8023
8028
|
}
|
|
8024
8029
|
St.inline = /* @__PURE__ */ new St("span");
|
|
8025
8030
|
St.block = /* @__PURE__ */ new St("div");
|
|
8026
|
-
var
|
|
8031
|
+
var N2 = /* @__PURE__ */ function(n) {
|
|
8027
8032
|
return n[n.LTR = 0] = "LTR", n[n.RTL = 1] = "RTL", n;
|
|
8028
|
-
}(
|
|
8029
|
-
const et =
|
|
8033
|
+
}(N2 || (N2 = {}));
|
|
8034
|
+
const et = N2.LTR, H4 = N2.RTL;
|
|
8030
8035
|
function Co(n) {
|
|
8031
8036
|
let e = [];
|
|
8032
8037
|
for (let t = 0; t < n.length; t++)
|
|
@@ -8607,14 +8612,14 @@ class Qi extends B2 {
|
|
|
8607
8612
|
break;
|
|
8608
8613
|
let { fromA: a, toA: h, fromB: c, toB: d } = r, u, f, p, g;
|
|
8609
8614
|
if (i && i.range.fromB < d && i.range.toB > c) {
|
|
8610
|
-
let
|
|
8611
|
-
f =
|
|
8615
|
+
let O = Ft.build(this.view.state.doc, c, i.range.fromB, this.decorations, this.dynamicDecorationMap), S = Ft.build(this.view.state.doc, i.range.toB, d, this.decorations, this.dynamicDecorationMap);
|
|
8616
|
+
f = O.breakAtStart, p = O.openStart, g = S.openEnd;
|
|
8612
8617
|
let x = this.compositionView(i);
|
|
8613
|
-
S.breakAtStart ? x.breakAfter = 1 : S.content.length && x.merge(x.length, x.length, S.content[0], !1, S.openStart, 0) && (x.breakAfter = S.content[0].breakAfter, S.content.shift()),
|
|
8618
|
+
S.breakAtStart ? x.breakAfter = 1 : S.content.length && x.merge(x.length, x.length, S.content[0], !1, S.openStart, 0) && (x.breakAfter = S.content[0].breakAfter, S.content.shift()), O.content.length && x.merge(0, 0, O.content[O.content.length - 1], !0, 0, O.openEnd) && O.content.pop(), u = O.content.concat(x).concat(S.content);
|
|
8614
8619
|
} else
|
|
8615
8620
|
({ content: u, breakAtStart: f, openStart: p, openEnd: g } = Ft.build(this.view.state.doc, c, d, this.decorations, this.dynamicDecorationMap));
|
|
8616
|
-
let { i: m, off: v } = o.findPos(h, 1), { i: y, off:
|
|
8617
|
-
mo(this, y,
|
|
8621
|
+
let { i: m, off: v } = o.findPos(h, 1), { i: y, off: D } = o.findPos(a, -1);
|
|
8622
|
+
mo(this, y, D, m, v, u, f, p, g);
|
|
8618
8623
|
}
|
|
8619
8624
|
i && this.fixCompositionDOM(i);
|
|
8620
8625
|
}
|
|
@@ -8796,7 +8801,7 @@ class Qi extends B2 {
|
|
|
8796
8801
|
return null;
|
|
8797
8802
|
}
|
|
8798
8803
|
measureVisibleLineHeights(e) {
|
|
8799
|
-
let t = [], { from: i, to: s } = e, o = this.view.contentDOM.clientWidth, l = o > Math.max(this.view.scrollDOM.clientWidth, this.minWidth) + 1, r = -1, a = this.view.textDirection ==
|
|
8804
|
+
let t = [], { from: i, to: s } = e, o = this.view.contentDOM.clientWidth, l = o > Math.max(this.view.scrollDOM.clientWidth, this.minWidth) + 1, r = -1, a = this.view.textDirection == N2.LTR;
|
|
8800
8805
|
for (let h = 0, c = 0; c < this.children.length; c++) {
|
|
8801
8806
|
let d = this.children[c], u = h + d.length;
|
|
8802
8807
|
if (u > s)
|
|
@@ -8817,7 +8822,7 @@ class Qi extends B2 {
|
|
|
8817
8822
|
}
|
|
8818
8823
|
textDirectionAt(e) {
|
|
8819
8824
|
let { i: t } = this.childPos(e, 1);
|
|
8820
|
-
return getComputedStyle(this.children[t].dom).direction == "rtl" ?
|
|
8825
|
+
return getComputedStyle(this.children[t].dom).direction == "rtl" ? N2.RTL : N2.LTR;
|
|
8821
8826
|
}
|
|
8822
8827
|
measureTextSize() {
|
|
8823
8828
|
for (let o of this.children)
|
|
@@ -8898,7 +8903,7 @@ class Qi extends B2 {
|
|
|
8898
8903
|
right: i.right + o.right,
|
|
8899
8904
|
bottom: i.bottom + o.bottom
|
|
8900
8905
|
}, { offsetWidth: r, offsetHeight: a } = this.view.scrollDOM;
|
|
8901
|
-
fm(this.view.scrollDOM, l, t.head < t.anchor ? -1 : 1, e.x, e.y, Math.max(Math.min(e.xMargin, r), -r), Math.max(Math.min(e.yMargin, a), -a), this.view.textDirection ==
|
|
8906
|
+
fm(this.view.scrollDOM, l, t.head < t.anchor ? -1 : 1, e.x, e.y, Math.max(Math.min(e.xMargin, r), -r), Math.max(Math.min(e.yMargin, a), -a), this.view.textDirection == N2.LTR);
|
|
8902
8907
|
}
|
|
8903
8908
|
}
|
|
8904
8909
|
function Bm(n) {
|
|
@@ -9026,10 +9031,10 @@ function i4(n, e, t) {
|
|
|
9026
9031
|
for (let m = 0; m < g.length; m++) {
|
|
9027
9032
|
let v = g[m];
|
|
9028
9033
|
s && n6(s, v) && (v = Ji(Zi(v, s.bottom), s.top));
|
|
9029
|
-
let y = jm(e, v),
|
|
9030
|
-
if (y == 0 &&
|
|
9034
|
+
let y = jm(e, v), D = Wm(t, v);
|
|
9035
|
+
if (y == 0 && D == 0)
|
|
9031
9036
|
return p.nodeType == 3 ? en(p, e, t) : i4(p, e, t);
|
|
9032
|
-
(!i || l >
|
|
9037
|
+
(!i || l > D || l == D && o > y) && (i = p, s = v, o = y, l = D, r = y ? e < v.left ? m > 0 : m < g.length - 1 : !0), y == 0 ? t > v.bottom && (!c || c.bottom < v.bottom) ? (a = p, c = v) : t < v.top && (!d || d.top > v.top) && (h = p, d = v) : c && n6(c, v) ? c = Zi(c, v.bottom) : d && n6(d, v) && (d = Ji(d, v.top));
|
|
9033
9038
|
}
|
|
9034
9039
|
}
|
|
9035
9040
|
if (c && c.bottom >= t ? (i = a, s = c) : d && d.top <= t && (i = h, s = d), !i)
|
|
@@ -9069,8 +9074,8 @@ function Wo(n, e, t, i = -1) {
|
|
|
9069
9074
|
return 0;
|
|
9070
9075
|
if (u > h)
|
|
9071
9076
|
return n.state.doc.length;
|
|
9072
|
-
for (let
|
|
9073
|
-
for (; u = i > 0 ? a.bottom +
|
|
9077
|
+
for (let O = n.viewState.heightOracle.textHeight / 2, S = !1; a = n.elementAtHeight(u), a.type != m0.Text; )
|
|
9078
|
+
for (; u = i > 0 ? a.bottom + O : a.top - O, !(u >= 0 && u <= h); ) {
|
|
9074
9079
|
if (S)
|
|
9075
9080
|
return t ? null : 0;
|
|
9076
9081
|
S = !0, i = -i;
|
|
@@ -9086,28 +9091,28 @@ function Wo(n, e, t, i = -1) {
|
|
|
9086
9091
|
let v, y = -1;
|
|
9087
9092
|
if (m && ((s = n.docView.nearest(m)) === null || s === void 0 ? void 0 : s.isEditable) != !1) {
|
|
9088
9093
|
if (p.caretPositionFromPoint) {
|
|
9089
|
-
let
|
|
9090
|
-
|
|
9094
|
+
let O = p.caretPositionFromPoint(c, d);
|
|
9095
|
+
O && ({ offsetNode: v, offset: y } = O);
|
|
9091
9096
|
} else if (p.caretRangeFromPoint) {
|
|
9092
|
-
let
|
|
9093
|
-
|
|
9097
|
+
let O = p.caretRangeFromPoint(c, d);
|
|
9098
|
+
O && ({ startContainer: v, startOffset: y } = O, (!n.contentDOM.contains(v) || K.safari && Um(v, y, c) || K.chrome && Fm(v, y, c)) && (v = void 0));
|
|
9094
9099
|
}
|
|
9095
9100
|
v && (y = Math.min(ce(v), y));
|
|
9096
9101
|
}
|
|
9097
9102
|
if (!v || !n.docView.dom.contains(v)) {
|
|
9098
|
-
let
|
|
9099
|
-
if (!
|
|
9103
|
+
let O = F2.find(n.docView, f);
|
|
9104
|
+
if (!O)
|
|
9100
9105
|
return u > a.top + a.height / 2 ? a.to : a.from;
|
|
9101
|
-
({ node: v, offset: y } = i4(
|
|
9106
|
+
({ node: v, offset: y } = i4(O.dom, c, d));
|
|
9102
9107
|
}
|
|
9103
|
-
let
|
|
9104
|
-
if (!
|
|
9108
|
+
let D = n.docView.nearest(v);
|
|
9109
|
+
if (!D)
|
|
9105
9110
|
return null;
|
|
9106
|
-
if (
|
|
9107
|
-
let
|
|
9108
|
-
return e.y <
|
|
9111
|
+
if (D.isWidget && ((o = D.dom) === null || o === void 0 ? void 0 : o.nodeType) == 1) {
|
|
9112
|
+
let O = D.dom.getBoundingClientRect();
|
|
9113
|
+
return e.y < O.top || e.y <= O.bottom && e.x <= (O.left + O.right) / 2 ? D.posAtStart : D.posAtEnd;
|
|
9109
9114
|
} else
|
|
9110
|
-
return
|
|
9115
|
+
return D.localPosFromDOM(v, y) + D.posAtStart;
|
|
9111
9116
|
}
|
|
9112
9117
|
function tn(n, e, t, i, s) {
|
|
9113
9118
|
let o = Math.round((i - e.left) * n.defaultCharacterWidth);
|
|
@@ -9172,7 +9177,7 @@ function qm(n, e, t, i) {
|
|
|
9172
9177
|
let s = n4(n, e.head, e.assoc || -1), o = !i || s.type != m0.Text || !(n.lineWrapping || s.widgetLineBreaks) ? null : n.coordsAtPos(e.assoc < 0 && e.head > s.from ? e.head - 1 : e.head);
|
|
9173
9178
|
if (o) {
|
|
9174
9179
|
let l = n.dom.getBoundingClientRect(), r = n.textDirectionAt(s.from), a = n.posAtCoords({
|
|
9175
|
-
x: t == (r ==
|
|
9180
|
+
x: t == (r == N2.LTR) ? l.right - 1 : l.left + 1,
|
|
9176
9181
|
y: (o.top + o.bottom) / 2
|
|
9177
9182
|
});
|
|
9178
9183
|
if (a != null)
|
|
@@ -10037,9 +10042,9 @@ class oe {
|
|
|
10037
10042
|
return new oe(this.from, this.length + e.length, this.top, this.height + e.height, t);
|
|
10038
10043
|
}
|
|
10039
10044
|
}
|
|
10040
|
-
var
|
|
10045
|
+
var G2 = /* @__PURE__ */ function(n) {
|
|
10041
10046
|
return n[n.ByPos = 0] = "ByPos", n[n.ByHeight = 1] = "ByHeight", n[n.ByPosNoHeight = 2] = "ByPosNoHeight", n;
|
|
10042
|
-
}(
|
|
10047
|
+
}(G2 || (G2 = {}));
|
|
10043
10048
|
const Q1 = 1e-3;
|
|
10044
10049
|
class v0 {
|
|
10045
10050
|
constructor(e, t, i = 2) {
|
|
@@ -10070,9 +10075,9 @@ class v0 {
|
|
|
10070
10075
|
applyChanges(e, t, i, s) {
|
|
10071
10076
|
let o = this, l = i.doc;
|
|
10072
10077
|
for (let r = s.length - 1; r >= 0; r--) {
|
|
10073
|
-
let { fromA: a, toA: h, fromB: c, toB: d } = s[r], u = o.lineAt(a,
|
|
10078
|
+
let { fromA: a, toA: h, fromB: c, toB: d } = s[r], u = o.lineAt(a, G2.ByPosNoHeight, i.setDoc(t), 0, 0), f = u.to >= h ? u : o.lineAt(h, G2.ByPosNoHeight, i, 0, 0);
|
|
10074
10079
|
for (d += f.to - h, h = f.to; r > 0 && u.from <= s[r - 1].toA; )
|
|
10075
|
-
a = s[r - 1].fromA, c = s[r - 1].fromB, r--, a < u.from && (u = o.lineAt(a,
|
|
10080
|
+
a = s[r - 1].fromA, c = s[r - 1].fromB, r--, a < u.from && (u = o.lineAt(a, G2.ByPosNoHeight, i, 0, 0));
|
|
10076
10081
|
c += u.from - a, a = u.from;
|
|
10077
10082
|
let p = W4.build(i.setDoc(l), e, c, d);
|
|
10078
10083
|
o = h3(o, o.replace(a, h, p));
|
|
@@ -10177,9 +10182,9 @@ class n0 extends v0 {
|
|
|
10177
10182
|
}
|
|
10178
10183
|
}
|
|
10179
10184
|
lineAt(e, t, i, s, o) {
|
|
10180
|
-
if (t ==
|
|
10185
|
+
if (t == G2.ByHeight)
|
|
10181
10186
|
return this.blockAt(e, i, s, o);
|
|
10182
|
-
if (t ==
|
|
10187
|
+
if (t == G2.ByPosNoHeight) {
|
|
10183
10188
|
let { from: f, to: p } = i.doc.lineAt(e);
|
|
10184
10189
|
return new oe(f, p - f, 0, 0, 0);
|
|
10185
10190
|
}
|
|
@@ -10251,10 +10256,10 @@ class yv extends v0 {
|
|
|
10251
10256
|
return e < o ? this.left.blockAt(e, t, i, s) : this.right.blockAt(e, t, o, s + this.left.length + this.break);
|
|
10252
10257
|
}
|
|
10253
10258
|
lineAt(e, t, i, s, o) {
|
|
10254
|
-
let l = s + this.left.height, r = o + this.left.length + this.break, a = t ==
|
|
10259
|
+
let l = s + this.left.height, r = o + this.left.length + this.break, a = t == G2.ByHeight ? e < l : e < r, h = a ? this.left.lineAt(e, t, i, s, o) : this.right.lineAt(e, t, i, l, r);
|
|
10255
10260
|
if (this.break || (a ? h.to < r : h.from > r))
|
|
10256
10261
|
return h;
|
|
10257
|
-
let c = t ==
|
|
10262
|
+
let c = t == G2.ByPosNoHeight ? G2.ByPosNoHeight : G2.ByPos;
|
|
10258
10263
|
return a ? h.join(this.right.lineAt(r, c, i, l, r)) : this.left.lineAt(r, c, i, s, o).join(h);
|
|
10259
10264
|
}
|
|
10260
10265
|
forEachLine(e, t, i, s, o, l) {
|
|
@@ -10262,7 +10267,7 @@ class yv extends v0 {
|
|
|
10262
10267
|
if (this.break)
|
|
10263
10268
|
e < a && this.left.forEachLine(e, t, i, s, o, l), t >= a && this.right.forEachLine(e, t, i, r, a, l);
|
|
10264
10269
|
else {
|
|
10265
|
-
let h = this.lineAt(a,
|
|
10270
|
+
let h = this.lineAt(a, G2.ByPos, i, s, o);
|
|
10266
10271
|
e < h.from && this.left.forEachLine(e, h.from - 1, i, s, o, l), h.to >= e && h.from <= t && l(h), t > h.to && this.right.forEachLine(h.to + 1, t, i, r, a, l);
|
|
10267
10272
|
}
|
|
10268
10273
|
}
|
|
@@ -10464,7 +10469,7 @@ class Tv extends Ie {
|
|
|
10464
10469
|
}
|
|
10465
10470
|
class vn {
|
|
10466
10471
|
constructor(e) {
|
|
10467
|
-
this.state = e, this.pixelViewport = { left: 0, right: window.innerWidth, top: 0, bottom: 0 }, this.inView = !0, this.paddingTop = 0, this.paddingBottom = 0, this.contentDOMWidth = 0, this.contentDOMHeight = 0, this.editorHeight = 0, this.editorWidth = 0, this.scrollTop = 0, this.scrolledToBottom = !1, this.scaleX = 1, this.scaleY = 1, this.scrollAnchorPos = 0, this.scrollAnchorHeight = -1, this.scaler = wn, this.scrollTarget = null, this.printing = !1, this.mustMeasureContent = !0, this.defaultTextDirection =
|
|
10472
|
+
this.state = e, this.pixelViewport = { left: 0, right: window.innerWidth, top: 0, bottom: 0 }, this.inView = !0, this.paddingTop = 0, this.paddingBottom = 0, this.contentDOMWidth = 0, this.contentDOMHeight = 0, this.editorHeight = 0, this.editorWidth = 0, this.scrollTop = 0, this.scrolledToBottom = !1, this.scaleX = 1, this.scaleY = 1, this.scrollAnchorPos = 0, this.scrollAnchorHeight = -1, this.scaler = wn, this.scrollTarget = null, this.printing = !1, this.mustMeasureContent = !0, this.defaultTextDirection = N2.LTR, this.visibleRanges = [], this.mustEnforceCursorAssoc = !1;
|
|
10468
10473
|
let t = e.facet(N4).some((i) => typeof i != "function" && i.class == "cm-lineWrapping");
|
|
10469
10474
|
this.heightOracle = new bv(t), this.stateDeco = e.facet(t1).filter((i) => typeof i != "function"), this.heightMap = v0.empty().applyChanges(this.stateDeco, k2.empty, this.heightOracle.setDoc(e.doc), [new j0(0, 0, 0, e.doc.length)]);
|
|
10470
10475
|
for (let i = 0; i < 2 && (this.viewport = this.getViewport(0, null), !!this.updateForViewport()); i++)
|
|
@@ -10504,13 +10509,13 @@ class vn {
|
|
|
10504
10509
|
}
|
|
10505
10510
|
measure(e) {
|
|
10506
10511
|
let t = e.contentDOM, i = window.getComputedStyle(t), s = this.heightOracle, o = i.whiteSpace;
|
|
10507
|
-
this.defaultTextDirection = i.direction == "rtl" ?
|
|
10512
|
+
this.defaultTextDirection = i.direction == "rtl" ? N2.RTL : N2.LTR;
|
|
10508
10513
|
let l = this.heightOracle.mustRefreshForWrapping(o), r = t.getBoundingClientRect(), a = l || this.mustMeasureContent || this.contentDOMHeight != r.height;
|
|
10509
10514
|
this.contentDOMHeight = r.height, this.mustMeasureContent = !1;
|
|
10510
10515
|
let h = 0, c = 0;
|
|
10511
10516
|
if (r.width && r.height) {
|
|
10512
|
-
let { scaleX:
|
|
10513
|
-
(
|
|
10517
|
+
let { scaleX: O, scaleY: S } = ao(t, r);
|
|
10518
|
+
(O > 5e-3 && Math.abs(this.scaleX - O) > 5e-3 || S > 5e-3 && Math.abs(this.scaleY - S) > 5e-3) && (this.scaleX = O, this.scaleY = S, h |= 16, l = a = !0);
|
|
10514
10519
|
}
|
|
10515
10520
|
let d = (parseInt(i.paddingTop) || 0) * this.scaleY, u = (parseInt(i.paddingBottom) || 0) * this.scaleY;
|
|
10516
10521
|
(this.paddingTop != d || this.paddingBottom != u) && (this.paddingTop = d, this.paddingBottom = u, h |= 18), this.editorWidth != e.scrollDOM.clientWidth && (s.lineWrapping && (a = !0), this.editorWidth = e.scrollDOM.clientWidth, h |= 16);
|
|
@@ -10523,20 +10528,20 @@ class vn {
|
|
|
10523
10528
|
return 0;
|
|
10524
10529
|
let y = r.width;
|
|
10525
10530
|
if ((this.contentDOMWidth != y || this.editorHeight != e.scrollDOM.clientHeight) && (this.contentDOMWidth = r.width, this.editorHeight = e.scrollDOM.clientHeight, h |= 16), a) {
|
|
10526
|
-
let
|
|
10527
|
-
if (s.mustRefreshForHeights(
|
|
10531
|
+
let O = e.docView.measureVisibleLineHeights(this.viewport);
|
|
10532
|
+
if (s.mustRefreshForHeights(O) && (l = !0), l || s.lineWrapping && Math.abs(y - this.contentDOMWidth) > s.charWidth) {
|
|
10528
10533
|
let { lineHeight: S, charWidth: x, textHeight: C } = e.docView.measureTextSize();
|
|
10529
|
-
l = S > 0 && s.refresh(o, S, x, C, Math.max(5, y / x),
|
|
10534
|
+
l = S > 0 && s.refresh(o, S, x, C, Math.max(5, y / x), O), l && (e.docView.minWidth = 0, h |= 16);
|
|
10530
10535
|
}
|
|
10531
10536
|
g > 0 && m > 0 ? c = Math.max(g, m) : g < 0 && m < 0 && (c = Math.min(g, m)), gn();
|
|
10532
10537
|
for (let S of this.viewports) {
|
|
10533
|
-
let x = S.from == this.viewport.from ?
|
|
10538
|
+
let x = S.from == this.viewport.from ? O : e.docView.measureVisibleLineHeights(S);
|
|
10534
10539
|
this.heightMap = (l ? v0.empty().applyChanges(this.stateDeco, k2.empty, this.heightOracle, [new j0(0, 0, 0, e.state.doc.length)]) : this.heightMap).updateHeight(s, 0, l, new _v(S.from, x));
|
|
10535
10540
|
}
|
|
10536
10541
|
Ct && (h |= 2);
|
|
10537
10542
|
}
|
|
10538
|
-
let
|
|
10539
|
-
return
|
|
10543
|
+
let D = !this.viewportIsAppropriate(this.viewport, c) || this.scrollTarget && (this.scrollTarget.range.head < this.viewport.from || this.scrollTarget.range.head > this.viewport.to);
|
|
10544
|
+
return D && (h & 2 && (h |= this.updateScaler()), this.viewport = this.getViewport(c, this.scrollTarget), h |= this.updateForViewport()), (h & 2 || D) && this.updateViewportLines(), (this.lineGaps.length || this.viewport.to - this.viewport.from > 4e3) && this.updateLineGaps(this.ensureLineGaps(l ? [] : this.lineGaps, e)), h |= this.computeVisibleRanges(), this.mustEnforceCursorAssoc && (this.mustEnforceCursorAssoc = !1, e.docView.enforceCursorAssoc()), h;
|
|
10540
10545
|
}
|
|
10541
10546
|
get visibleTop() {
|
|
10542
10547
|
return this.scaler.fromDOM(this.pixelViewport.top);
|
|
@@ -10545,26 +10550,26 @@ class vn {
|
|
|
10545
10550
|
return this.scaler.fromDOM(this.pixelViewport.bottom);
|
|
10546
10551
|
}
|
|
10547
10552
|
getViewport(e, t) {
|
|
10548
|
-
let i = 0.5 - Math.max(-0.5, Math.min(0.5, e / 1e3 / 2)), s = this.heightMap, o = this.heightOracle, { visibleTop: l, visibleBottom: r } = this, a = new M1(s.lineAt(l - i * 1e3,
|
|
10553
|
+
let i = 0.5 - Math.max(-0.5, Math.min(0.5, e / 1e3 / 2)), s = this.heightMap, o = this.heightOracle, { visibleTop: l, visibleBottom: r } = this, a = new M1(s.lineAt(l - i * 1e3, G2.ByHeight, o, 0, 0).from, s.lineAt(r + (1 - i) * 1e3, G2.ByHeight, o, 0, 0).to);
|
|
10549
10554
|
if (t) {
|
|
10550
10555
|
let { head: h } = t.range;
|
|
10551
10556
|
if (h < a.from || h > a.to) {
|
|
10552
|
-
let c = Math.min(this.editorHeight, this.pixelViewport.bottom - this.pixelViewport.top), d = s.lineAt(h,
|
|
10553
|
-
t.y == "center" ? u = (d.top + d.bottom) / 2 - c / 2 : t.y == "start" || t.y == "nearest" && h < a.from ? u = d.top : u = d.bottom - c, a = new M1(s.lineAt(u - 1e3 / 2,
|
|
10557
|
+
let c = Math.min(this.editorHeight, this.pixelViewport.bottom - this.pixelViewport.top), d = s.lineAt(h, G2.ByPos, o, 0, 0), u;
|
|
10558
|
+
t.y == "center" ? u = (d.top + d.bottom) / 2 - c / 2 : t.y == "start" || t.y == "nearest" && h < a.from ? u = d.top : u = d.bottom - c, a = new M1(s.lineAt(u - 1e3 / 2, G2.ByHeight, o, 0, 0).from, s.lineAt(u + c + 1e3 / 2, G2.ByHeight, o, 0, 0).to);
|
|
10554
10559
|
}
|
|
10555
10560
|
}
|
|
10556
10561
|
return a;
|
|
10557
10562
|
}
|
|
10558
10563
|
mapViewport(e, t) {
|
|
10559
10564
|
let i = t.mapPos(e.from, -1), s = t.mapPos(e.to, 1);
|
|
10560
|
-
return new M1(this.heightMap.lineAt(i,
|
|
10565
|
+
return new M1(this.heightMap.lineAt(i, G2.ByPos, this.heightOracle, 0, 0).from, this.heightMap.lineAt(s, G2.ByPos, this.heightOracle, 0, 0).to);
|
|
10561
10566
|
}
|
|
10562
10567
|
// Checks if a given viewport covers the visible part of the
|
|
10563
10568
|
// document and not too much beyond that.
|
|
10564
10569
|
viewportIsAppropriate({ from: e, to: t }, i = 0) {
|
|
10565
10570
|
if (!this.inView)
|
|
10566
10571
|
return !0;
|
|
10567
|
-
let { top: s } = this.heightMap.lineAt(e,
|
|
10572
|
+
let { top: s } = this.heightMap.lineAt(e, G2.ByPos, this.heightOracle, 0, 0), { bottom: o } = this.heightMap.lineAt(t, G2.ByPos, this.heightOracle, 0, 0), { visibleTop: l, visibleBottom: r } = this;
|
|
10568
10573
|
return (e == 0 || s <= l - Math.max(10, Math.min(
|
|
10569
10574
|
-i,
|
|
10570
10575
|
250
|
|
@@ -10592,7 +10597,7 @@ class vn {
|
|
|
10592
10597
|
// the artifacts this might produce from the user.
|
|
10593
10598
|
ensureLineGaps(e, t) {
|
|
10594
10599
|
let i = this.heightOracle.lineWrapping, s = i ? 1e4 : 2e3, o = s >> 1, l = s << 1;
|
|
10595
|
-
if (this.defaultTextDirection !=
|
|
10600
|
+
if (this.defaultTextDirection != N2.LTR && !i)
|
|
10596
10601
|
return [];
|
|
10597
10602
|
let r = [], a = (c, d, u, f) => {
|
|
10598
10603
|
if (d - c < o)
|
|
@@ -10606,9 +10611,9 @@ class vn {
|
|
|
10606
10611
|
}
|
|
10607
10612
|
let m = Pv(e, (v) => v.from >= u.from && v.to <= u.to && Math.abs(v.from - c) < o && Math.abs(v.to - d) < o && !g.some((y) => v.from < y && v.to > y));
|
|
10608
10613
|
if (!m) {
|
|
10609
|
-
if (d < u.to && t && i && t.visibleRanges.some((
|
|
10610
|
-
let
|
|
10611
|
-
|
|
10614
|
+
if (d < u.to && t && i && t.visibleRanges.some((D) => D.from <= d && D.to >= d)) {
|
|
10615
|
+
let D = t.moveToLineBoundary(P.cursor(d), !1, !0).head;
|
|
10616
|
+
D > c && (d = D);
|
|
10612
10617
|
}
|
|
10613
10618
|
let v = this.gapSize(u, c, d, f), y = i || v < 2e6 ? v : 2e6;
|
|
10614
10619
|
m = new o6(c, d, v, y);
|
|
@@ -10624,8 +10629,8 @@ class vn {
|
|
|
10624
10629
|
if (i) {
|
|
10625
10630
|
let g = s / this.heightOracle.lineLength * this.heightOracle.lineHeight, m, v;
|
|
10626
10631
|
if (u != null) {
|
|
10627
|
-
let y = z1(d, u),
|
|
10628
|
-
m = y -
|
|
10632
|
+
let y = z1(d, u), D = ((this.visibleBottom - this.visibleTop) / 2 + g) / c.height;
|
|
10633
|
+
m = y - D, v = y + D;
|
|
10629
10634
|
} else
|
|
10630
10635
|
m = (this.visibleTop - c.top - g) / c.height, v = (this.visibleBottom - c.top + g) / c.height;
|
|
10631
10636
|
f = T1(d, m), p = T1(d, v);
|
|
@@ -10634,13 +10639,13 @@ class vn {
|
|
|
10634
10639
|
if (g > 2e6)
|
|
10635
10640
|
for (let x of e)
|
|
10636
10641
|
x.from >= c.from && x.from < c.to && x.size != x.displaySize && x.from * this.heightOracle.charWidth + v < this.pixelViewport.left && (v = x.size - x.displaySize);
|
|
10637
|
-
let y = this.pixelViewport.left + v,
|
|
10642
|
+
let y = this.pixelViewport.left + v, D = this.pixelViewport.right + v, O, S;
|
|
10638
10643
|
if (u != null) {
|
|
10639
|
-
let x = z1(d, u), C = ((
|
|
10640
|
-
|
|
10644
|
+
let x = z1(d, u), C = ((D - y) / 2 + m) / g;
|
|
10645
|
+
O = x - C, S = x + C;
|
|
10641
10646
|
} else
|
|
10642
|
-
|
|
10643
|
-
f = T1(d,
|
|
10647
|
+
O = (y - m) / g, S = (D + m) / g;
|
|
10648
|
+
f = T1(d, O), p = T1(d, S);
|
|
10644
10649
|
}
|
|
10645
10650
|
f > c.from && a(c.from, f, c, d), p < c.to && a(p, c.to, c, d);
|
|
10646
10651
|
};
|
|
@@ -10677,10 +10682,10 @@ class vn {
|
|
|
10677
10682
|
return this.visibleRanges = i, s;
|
|
10678
10683
|
}
|
|
10679
10684
|
lineBlockAt(e) {
|
|
10680
|
-
return e >= this.viewport.from && e <= this.viewport.to && this.viewportLines.find((t) => t.from <= e && t.to >= e) || Nt(this.heightMap.lineAt(e,
|
|
10685
|
+
return e >= this.viewport.from && e <= this.viewport.to && this.viewportLines.find((t) => t.from <= e && t.to >= e) || Nt(this.heightMap.lineAt(e, G2.ByPos, this.heightOracle, 0, 0), this.scaler);
|
|
10681
10686
|
}
|
|
10682
10687
|
lineBlockAtHeight(e) {
|
|
10683
|
-
return e >= this.viewportLines[0].top && e <= this.viewportLines[this.viewportLines.length - 1].bottom && this.viewportLines.find((t) => t.top <= e && t.bottom >= e) || Nt(this.heightMap.lineAt(this.scaler.fromDOM(e),
|
|
10688
|
+
return e >= this.viewportLines[0].top && e <= this.viewportLines[this.viewportLines.length - 1].bottom && this.viewportLines.find((t) => t.top <= e && t.bottom >= e) || Nt(this.heightMap.lineAt(this.scaler.fromDOM(e), G2.ByHeight, this.heightOracle, 0, 0), this.scaler);
|
|
10684
10689
|
}
|
|
10685
10690
|
scrollAnchorAt(e) {
|
|
10686
10691
|
let t = this.lineBlockAtHeight(e + 8);
|
|
@@ -10756,7 +10761,7 @@ class U4 {
|
|
|
10756
10761
|
constructor(e, t, i) {
|
|
10757
10762
|
let s = 0, o = 0, l = 0;
|
|
10758
10763
|
this.viewports = i.map(({ from: r, to: a }) => {
|
|
10759
|
-
let h = t.lineAt(r,
|
|
10764
|
+
let h = t.lineAt(r, G2.ByPos, e, 0, 0).top, c = t.lineAt(a, G2.ByPos, e, 0, 0).bottom;
|
|
10760
10765
|
return s += c - h, { from: r, to: a, top: h, bottom: c, domTop: 0, domBottom: 0 };
|
|
10761
10766
|
}), this.scale = (7e6 - s) / (t.height - s);
|
|
10762
10767
|
for (let r of this.viewports)
|
|
@@ -11971,7 +11976,7 @@ class Q {
|
|
|
11971
11976
|
if (!i || i.left == i.right)
|
|
11972
11977
|
return i;
|
|
11973
11978
|
let s = this.state.doc.lineAt(e), o = this.bidiSpans(s), l = o[Te.find(o, e - s.from, -1, t)];
|
|
11974
|
-
return I3(i, l.dir ==
|
|
11979
|
+
return I3(i, l.dir == N2.LTR == t > 0);
|
|
11975
11980
|
}
|
|
11976
11981
|
/**
|
|
11977
11982
|
Return the rectangle around a given character. If `pos` does not
|
|
@@ -12218,7 +12223,7 @@ class d3 {
|
|
|
12218
12223
|
static update(e, t) {
|
|
12219
12224
|
if (t.empty && !e.some((o) => o.fresh))
|
|
12220
12225
|
return e;
|
|
12221
|
-
let i = [], s = e.length ? e[e.length - 1].dir :
|
|
12226
|
+
let i = [], s = e.length ? e[e.length - 1].dir : N2.LTR;
|
|
12222
12227
|
for (let o = Math.max(0, e.length - 10); o < e.length; o++) {
|
|
12223
12228
|
let l = e[o];
|
|
12224
12229
|
l.dir == s && !t.touchesRange(l.from, l.to) && i.push(new d3(t.mapPos(l.from, 1), t.mapPos(l.to, -1), l.dir, l.isolates, !1, l.order));
|
|
@@ -12288,10 +12293,10 @@ function jv(n, e = Iv) {
|
|
|
12288
12293
|
s(y, !0), f[y] || (f[y] = {
|
|
12289
12294
|
preventDefault: !0,
|
|
12290
12295
|
stopPropagation: !1,
|
|
12291
|
-
run: [(
|
|
12292
|
-
let
|
|
12296
|
+
run: [(D) => {
|
|
12297
|
+
let O = ke = { view: D, prefix: y, scope: l };
|
|
12293
12298
|
return setTimeout(() => {
|
|
12294
|
-
ke ==
|
|
12299
|
+
ke == O && (ke = null);
|
|
12295
12300
|
}, $v), !0;
|
|
12296
12301
|
}]
|
|
12297
12302
|
});
|
|
@@ -12381,7 +12386,7 @@ class m1 {
|
|
|
12381
12386
|
}
|
|
12382
12387
|
function l8(n) {
|
|
12383
12388
|
let e = n.scrollDOM.getBoundingClientRect();
|
|
12384
|
-
return { left: (n.textDirection ==
|
|
12389
|
+
return { left: (n.textDirection == N2.LTR ? e.left : e.right - n.scrollDOM.clientWidth * n.scaleX) - n.scrollDOM.scrollLeft * n.scaleX, top: e.top - n.scrollDOM.scrollTop * n.scaleY };
|
|
12385
12390
|
}
|
|
12386
12391
|
function Cn(n, e, t, i) {
|
|
12387
12392
|
let s = n.coordsAtPos(e, t * 2);
|
|
@@ -12393,11 +12398,11 @@ function Cn(n, e, t, i) {
|
|
|
12393
12398
|
function Wv(n, e, t) {
|
|
12394
12399
|
if (t.to <= n.viewport.from || t.from >= n.viewport.to)
|
|
12395
12400
|
return [];
|
|
12396
|
-
let i = Math.max(t.from, n.viewport.from), s = Math.min(t.to, n.viewport.to), o = n.textDirection ==
|
|
12401
|
+
let i = Math.max(t.from, n.viewport.from), s = Math.min(t.to, n.viewport.to), o = n.textDirection == N2.LTR, l = n.contentDOM, r = l.getBoundingClientRect(), a = l8(n), h = l.querySelector(".cm-line"), c = h && window.getComputedStyle(h), d = r.left + (c ? parseInt(c.paddingLeft) + Math.min(0, parseInt(c.textIndent)) : 0), u = r.right - (c ? parseInt(c.paddingRight) : 0), f = n4(n, i, 1), p = n4(n, s, -1), g = f.type == m0.Text ? f : null, m = p.type == m0.Text ? p : null;
|
|
12397
12402
|
if (g && (n.lineWrapping || f.widgetLineBreaks) && (g = Cn(n, i, 1, g)), m && (n.lineWrapping || p.widgetLineBreaks) && (m = Cn(n, s, -1, m)), g && m && g.from == m.from && g.to == m.to)
|
|
12398
|
-
return y(
|
|
12403
|
+
return y(D(t.from, t.to, g));
|
|
12399
12404
|
{
|
|
12400
|
-
let S = g ?
|
|
12405
|
+
let S = g ? D(t.from, null, g) : O(f, !1), x = m ? D(null, t.to, m) : O(p, !0), C = [];
|
|
12401
12406
|
return (g || f).to < (m || p).from - (g && m ? 1 : 0) || f.widgetLineBreaks > 1 && S.bottom + n.defaultLineHeight / 2 < x.top ? C.push(v(d, S.bottom, u, x.top)) : S.bottom < x.top && n.elementAtHeight((S.bottom + x.top) / 2).type == m0.Text && (S.bottom = x.top = (S.bottom + x.top) / 2), y(S).concat(C).concat(y(x));
|
|
12402
12407
|
}
|
|
12403
12408
|
function v(S, x, C, I) {
|
|
@@ -12409,29 +12414,29 @@ function Wv(n, e, t) {
|
|
|
12409
12414
|
I.push(v(C[R], S, C[R + 1], x));
|
|
12410
12415
|
return I;
|
|
12411
12416
|
}
|
|
12412
|
-
function
|
|
12417
|
+
function D(S, x, C) {
|
|
12413
12418
|
let I = 1e9, R = -1e9, V = [];
|
|
12414
|
-
function j(A,
|
|
12419
|
+
function j(A, M, L, q, i2) {
|
|
12415
12420
|
let u2 = n.coordsAtPos(A, A == C.to ? -2 : 2), D2 = n.coordsAtPos(L, L == C.from ? 2 : -2);
|
|
12416
|
-
!u2 || !D2 || (I = Math.min(u2.top, D2.top, I), R = Math.max(u2.bottom, D2.bottom, R), i2 ==
|
|
12421
|
+
!u2 || !D2 || (I = Math.min(u2.top, D2.top, I), R = Math.max(u2.bottom, D2.bottom, R), i2 == N2.LTR ? V.push(o && M ? d : u2.left, o && q ? u : D2.right) : V.push(!o && q ? d : D2.left, !o && M ? u : u2.right));
|
|
12417
12422
|
}
|
|
12418
12423
|
let T = S ?? C.from, a2 = x ?? C.to;
|
|
12419
12424
|
for (let A of n.visibleRanges)
|
|
12420
12425
|
if (A.to > T && A.from < a2)
|
|
12421
|
-
for (let
|
|
12422
|
-
let q = n.state.doc.lineAt(
|
|
12426
|
+
for (let M = Math.max(A.from, T), L = Math.min(A.to, a2); ; ) {
|
|
12427
|
+
let q = n.state.doc.lineAt(M);
|
|
12423
12428
|
for (let i2 of n.bidiSpans(q)) {
|
|
12424
12429
|
let u2 = i2.from + q.from, D2 = i2.to + q.from;
|
|
12425
12430
|
if (u2 >= L)
|
|
12426
12431
|
break;
|
|
12427
|
-
D2 >
|
|
12432
|
+
D2 > M && j(Math.max(u2, M), S == null && u2 <= T, Math.min(D2, L), x == null && D2 >= a2, i2.dir);
|
|
12428
12433
|
}
|
|
12429
|
-
if (
|
|
12434
|
+
if (M = q.to + 1, M >= L)
|
|
12430
12435
|
break;
|
|
12431
12436
|
}
|
|
12432
12437
|
return V.length == 0 && j(T, S == null, a2, x == null, n.textDirection), { top: I, bottom: R, horizontal: V };
|
|
12433
12438
|
}
|
|
12434
|
-
function
|
|
12439
|
+
function O(S, x) {
|
|
12435
12440
|
let C = r.top + (x ? S.top : S.bottom);
|
|
12436
12441
|
return { top: C, bottom: C, horizontal: [] };
|
|
12437
12442
|
}
|
|
@@ -13088,9 +13093,9 @@ const a6 = /* @__PURE__ */ J.define({
|
|
|
13088
13093
|
c.style.top = Et;
|
|
13089
13094
|
continue;
|
|
13090
13095
|
}
|
|
13091
|
-
let f = a.arrow ? h.dom.querySelector(".cm-tooltip-arrow") : null, p = f ? 7 : 0, g = u.right - u.left, m = (e = Tn.get(h)) !== null && e !== void 0 ? e : u.bottom - u.top, v = h.offset || yw, y = this.view.textDirection ==
|
|
13092
|
-
!a.strictSide && (
|
|
13093
|
-
let S = (
|
|
13096
|
+
let f = a.arrow ? h.dom.querySelector(".cm-tooltip-arrow") : null, p = f ? 7 : 0, g = u.right - u.left, m = (e = Tn.get(h)) !== null && e !== void 0 ? e : u.bottom - u.top, v = h.offset || yw, y = this.view.textDirection == N2.LTR, D = u.width > i.right - i.left ? y ? i.left : i.right - u.width : y ? Math.max(i.left, Math.min(d.left - (f ? 14 : 0) + v.x, i.right - g)) : Math.min(Math.max(i.left, d.left - g + (f ? 14 : 0) - v.x), i.right - g), O = this.above[r];
|
|
13097
|
+
!a.strictSide && (O ? d.top - m - p - v.y < i.top : d.bottom + m + p + v.y > i.bottom) && O == i.bottom - d.bottom > d.top - i.top && (O = this.above[r] = !O);
|
|
13098
|
+
let S = (O ? d.top - i.top : i.bottom - d.bottom) - p;
|
|
13094
13099
|
if (S < m && h.resize !== !1) {
|
|
13095
13100
|
if (S < this.view.defaultLineHeight) {
|
|
13096
13101
|
c.style.top = Et;
|
|
@@ -13098,15 +13103,15 @@ const a6 = /* @__PURE__ */ J.define({
|
|
|
13098
13103
|
}
|
|
13099
13104
|
Tn.set(h, m), c.style.height = (m = S) / o + "px";
|
|
13100
13105
|
} else c.style.height && (c.style.height = "");
|
|
13101
|
-
let x =
|
|
13106
|
+
let x = O ? d.top - m - p - v.y : d.bottom + p + v.y, C = D + g;
|
|
13102
13107
|
if (h.overlap !== !0)
|
|
13103
13108
|
for (let I of l)
|
|
13104
|
-
I.left < C && I.right >
|
|
13105
|
-
if (this.position == "absolute" ? (c.style.top = (x - n.parent.top) / o + "px", zn(c, (
|
|
13106
|
-
let I = d.left + (y ? v.x : -v.x) - (
|
|
13109
|
+
I.left < C && I.right > D && I.top < x + m && I.bottom > x && (x = O ? I.top - m - 2 - p : I.bottom + p + 2);
|
|
13110
|
+
if (this.position == "absolute" ? (c.style.top = (x - n.parent.top) / o + "px", zn(c, (D - n.parent.left) / s)) : (c.style.top = x / o + "px", zn(c, D / s)), f) {
|
|
13111
|
+
let I = d.left + (y ? v.x : -v.x) - (D + 14 - 7);
|
|
13107
13112
|
f.style.left = I / s + "px";
|
|
13108
13113
|
}
|
|
13109
|
-
h.overlap !== !0 && l.push({ left:
|
|
13114
|
+
h.overlap !== !0 && l.push({ left: D, top: x, right: C, bottom: x + m }), c.classList.toggle("cm-tooltip-above", O), c.classList.toggle("cm-tooltip-below", !O), h.positioned && h.positioned(n.space);
|
|
13110
13115
|
}
|
|
13111
13116
|
}
|
|
13112
13117
|
maybeMeasure() {
|
|
@@ -13289,7 +13294,7 @@ class Cw {
|
|
|
13289
13294
|
let r = e.coordsAtPos(s);
|
|
13290
13295
|
if (!r || t.y < r.top || t.y > r.bottom || t.x < r.left - e.defaultCharacterWidth || t.x > r.right + e.defaultCharacterWidth)
|
|
13291
13296
|
return;
|
|
13292
|
-
let a = e.bidiSpans(e.state.doc.lineAt(s)).find((c) => c.from <= s && c.to >= s), h = a && a.dir ==
|
|
13297
|
+
let a = e.bidiSpans(e.state.doc.lineAt(s)).find((c) => c.from <= s && c.to >= s), h = a && a.dir == N2.RTL ? -1 : 1;
|
|
13293
13298
|
o = t.x < r.left ? -h : h;
|
|
13294
13299
|
}
|
|
13295
13300
|
let l = this.source(e, s, o);
|
|
@@ -13616,7 +13621,7 @@ const Vw = /* @__PURE__ */ K2.fromClass(class {
|
|
|
13616
13621
|
if (!t || t.gutters.length == 0 || !t.fixed)
|
|
13617
13622
|
return null;
|
|
13618
13623
|
let i = t.dom.offsetWidth * e.scaleX, s = t.domAfter ? t.domAfter.offsetWidth * e.scaleX : 0;
|
|
13619
|
-
return e.textDirection ==
|
|
13624
|
+
return e.textDirection == N2.LTR ? { left: i, right: s } : { right: i, left: s };
|
|
13620
13625
|
})
|
|
13621
13626
|
});
|
|
13622
13627
|
function En(n) {
|
|
@@ -14009,10 +14014,10 @@ class K4 {
|
|
|
14009
14014
|
}
|
|
14010
14015
|
}
|
|
14011
14016
|
const B1 = /* @__PURE__ */ new WeakMap(), Hn = /* @__PURE__ */ new WeakMap();
|
|
14012
|
-
var
|
|
14017
|
+
var Z2;
|
|
14013
14018
|
(function(n) {
|
|
14014
14019
|
n[n.ExcludeBuffers = 1] = "ExcludeBuffers", n[n.IncludeAnonymous = 2] = "IncludeAnonymous", n[n.IgnoreMounts = 4] = "IgnoreMounts", n[n.IgnoreOverlays = 8] = "IgnoreOverlays";
|
|
14015
|
-
})(
|
|
14020
|
+
})(Z2 || (Z2 = {}));
|
|
14016
14021
|
class Y2 {
|
|
14017
14022
|
/**
|
|
14018
14023
|
Construct a new tree. See also [`Tree.build`](#common.Tree^build).
|
|
@@ -14106,8 +14111,8 @@ class Y2 {
|
|
|
14106
14111
|
not have its children iterated over (or `leave` called).
|
|
14107
14112
|
*/
|
|
14108
14113
|
iterate(e) {
|
|
14109
|
-
let { enter: t, leave: i, from: s = 0, to: o = this.length } = e, l = e.mode || 0, r = (l &
|
|
14110
|
-
for (let a = this.cursor(l |
|
|
14114
|
+
let { enter: t, leave: i, from: s = 0, to: o = this.length } = e, l = e.mode || 0, r = (l & Z2.IncludeAnonymous) > 0;
|
|
14115
|
+
for (let a = this.cursor(l | Z2.IncludeAnonymous); ; ) {
|
|
14111
14116
|
let h = !1;
|
|
14112
14117
|
if (a.from <= o && a.to >= s && (!r && a.type.isAnonymous || t(a) !== !1)) {
|
|
14113
14118
|
if (a.firstChild())
|
|
@@ -14262,7 +14267,7 @@ function o1(n, e, t, i) {
|
|
|
14262
14267
|
return n;
|
|
14263
14268
|
n = l;
|
|
14264
14269
|
}
|
|
14265
|
-
let o = i ? 0 :
|
|
14270
|
+
let o = i ? 0 : Z2.IgnoreOverlays;
|
|
14266
14271
|
if (i)
|
|
14267
14272
|
for (let l = n, r = l.parent; r; l = r, r = l.parent)
|
|
14268
14273
|
l instanceof W0 && l.index < 0 && ((s = r.enter(e, t, o)) === null || s === void 0 ? void 0 : s.from) != l.from && (n = r);
|
|
@@ -14329,21 +14334,21 @@ class W0 extends v8 {
|
|
|
14329
14334
|
let c = r[e], d = a[e] + l.from;
|
|
14330
14335
|
if (m8(s, i, d, d + c.length)) {
|
|
14331
14336
|
if (c instanceof Le) {
|
|
14332
|
-
if (o &
|
|
14337
|
+
if (o & Z2.ExcludeBuffers)
|
|
14333
14338
|
continue;
|
|
14334
14339
|
let u = c.findChild(0, c.buffer.length, t, i - d, s);
|
|
14335
14340
|
if (u > -1)
|
|
14336
14341
|
return new ze(new Ww(l, c, e, d), null, u);
|
|
14337
|
-
} else if (o &
|
|
14342
|
+
} else if (o & Z2.IncludeAnonymous || !c.type.isAnonymous || Q4(c)) {
|
|
14338
14343
|
let u;
|
|
14339
|
-
if (!(o &
|
|
14344
|
+
if (!(o & Z2.IgnoreMounts) && (u = f3.get(c)) && !u.overlay)
|
|
14340
14345
|
return new W0(u.tree, d, e, l);
|
|
14341
14346
|
let f = new W0(c, d, e, l);
|
|
14342
|
-
return o &
|
|
14347
|
+
return o & Z2.IncludeAnonymous || !f.type.isAnonymous ? f : f.nextChild(t < 0 ? c.children.length - 1 : 0, t, i, s);
|
|
14343
14348
|
}
|
|
14344
14349
|
}
|
|
14345
14350
|
}
|
|
14346
|
-
if (o &
|
|
14351
|
+
if (o & Z2.IncludeAnonymous || !l.type.isAnonymous || (l.index >= 0 ? e = l.index + t : e = t < 0 ? -1 : l._parent._tree.children.length, l = l._parent, !l))
|
|
14347
14352
|
return null;
|
|
14348
14353
|
}
|
|
14349
14354
|
}
|
|
@@ -14385,7 +14390,7 @@ class W0 extends v8 {
|
|
|
14385
14390
|
}
|
|
14386
14391
|
enter(e, t, i = 0) {
|
|
14387
14392
|
let s;
|
|
14388
|
-
if (!(i &
|
|
14393
|
+
if (!(i & Z2.IgnoreOverlays) && (s = f3.get(this._tree)) && s.overlay) {
|
|
14389
14394
|
let o = e - this.from;
|
|
14390
14395
|
for (let { from: l, to: r } of s.overlay)
|
|
14391
14396
|
if ((t > 0 ? l <= o : l < o) && (t < 0 ? r >= o : r > o))
|
|
@@ -14516,7 +14521,7 @@ class ze extends v8 {
|
|
|
14516
14521
|
);
|
|
14517
14522
|
}
|
|
14518
14523
|
enter(e, t, i = 0) {
|
|
14519
|
-
if (i &
|
|
14524
|
+
if (i & Z2.ExcludeBuffers)
|
|
14520
14525
|
return null;
|
|
14521
14526
|
let { buffer: s } = this.context, o = s.findChild(this.index + 4, s.buffer[this.index + 3], t > 0 ? 1 : -1, e - this.context.start, t);
|
|
14522
14527
|
return o < 0 ? null : new ze(this.context, this, o);
|
|
@@ -14702,17 +14707,17 @@ class f4 {
|
|
|
14702
14707
|
set to false.
|
|
14703
14708
|
*/
|
|
14704
14709
|
enter(e, t, i = this.mode) {
|
|
14705
|
-
return this.buffer ? i &
|
|
14710
|
+
return this.buffer ? i & Z2.ExcludeBuffers ? !1 : this.enterChild(1, e, t) : this.yield(this._tree.enter(e, t, i));
|
|
14706
14711
|
}
|
|
14707
14712
|
/**
|
|
14708
14713
|
Move to the node's parent node, if this isn't the top node.
|
|
14709
14714
|
*/
|
|
14710
14715
|
parent() {
|
|
14711
14716
|
if (!this.buffer)
|
|
14712
|
-
return this.yieldNode(this.mode &
|
|
14717
|
+
return this.yieldNode(this.mode & Z2.IncludeAnonymous ? this._tree._parent : this._tree.parent);
|
|
14713
14718
|
if (this.stack.length)
|
|
14714
14719
|
return this.yieldBuf(this.stack.pop());
|
|
14715
|
-
let e = this.mode &
|
|
14720
|
+
let e = this.mode & Z2.IncludeAnonymous ? this.buffer.parent : this.buffer.parent.nextSignificantParent();
|
|
14716
14721
|
return this.buffer = null, this.yieldNode(e);
|
|
14717
14722
|
}
|
|
14718
14723
|
/**
|
|
@@ -14769,7 +14774,7 @@ class f4 {
|
|
|
14769
14774
|
if (t > -1)
|
|
14770
14775
|
for (let o = t + e, l = e < 0 ? -1 : i._tree.children.length; o != l; o += e) {
|
|
14771
14776
|
let r = i._tree.children[o];
|
|
14772
|
-
if (this.mode &
|
|
14777
|
+
if (this.mode & Z2.IncludeAnonymous || r instanceof Le || !r.type.isAnonymous || Q4(r))
|
|
14773
14778
|
return !1;
|
|
14774
14779
|
}
|
|
14775
14780
|
return !0;
|
|
@@ -14905,7 +14910,7 @@ function qw(n) {
|
|
|
14905
14910
|
var e;
|
|
14906
14911
|
let { buffer: t, nodeSet: i, maxBufferLength: s = g8, reused: o = [], minRepeatType: l = i.types.length } = n, r = Array.isArray(t) ? new X4(t, t.length) : t, a = i.types, h = 0, c = 0;
|
|
14907
14912
|
function d(S, x, C, I, R, V) {
|
|
14908
|
-
let { id: j, start: T, end: a2, size: A } = r,
|
|
14913
|
+
let { id: j, start: T, end: a2, size: A } = r, M = c, L = h;
|
|
14909
14914
|
for (; A < 0; )
|
|
14910
14915
|
if (r.next(), A == -1) {
|
|
14911
14916
|
let y2 = o[j];
|
|
@@ -14921,29 +14926,29 @@ function qw(n) {
|
|
|
14921
14926
|
throw new RangeError(`Unrecognized record size: ${A}`);
|
|
14922
14927
|
let q = a[j], i2, u2, D2 = T - S;
|
|
14923
14928
|
if (a2 - T <= s && (u2 = m(r.pos - x, R))) {
|
|
14924
|
-
let y2 = new Uint16Array(u2.size - u2.skip), w = r.pos - u2.size,
|
|
14929
|
+
let y2 = new Uint16Array(u2.size - u2.skip), w = r.pos - u2.size, R2 = y2.length;
|
|
14925
14930
|
for (; r.pos > w; )
|
|
14926
|
-
|
|
14931
|
+
R2 = v(u2.start, y2, R2);
|
|
14927
14932
|
i2 = new Le(y2, a2 - u2.start, i), D2 = u2.start - S;
|
|
14928
14933
|
} else {
|
|
14929
14934
|
let y2 = r.pos - A;
|
|
14930
14935
|
r.next();
|
|
14931
|
-
let w = [],
|
|
14936
|
+
let w = [], R2 = [], H2 = j >= l ? j : -1, I2 = 0, r0 = a2;
|
|
14932
14937
|
for (; r.pos > y2; )
|
|
14933
|
-
|
|
14934
|
-
if (
|
|
14938
|
+
H2 >= 0 && r.id == H2 && r.size >= 0 ? (r.end <= r0 - s && (p(w, R2, T, I2, r.end, r0, H2, M, L), I2 = w.length, r0 = r.end), r.next()) : V > 2500 ? u(T, y2, w, R2) : d(T, y2, w, R2, H2, V + 1);
|
|
14939
|
+
if (H2 >= 0 && I2 > 0 && I2 < w.length && p(w, R2, T, I2, T, r0, H2, M, L), w.reverse(), R2.reverse(), H2 > -1 && I2 > 0) {
|
|
14935
14940
|
let u0 = f(q, L);
|
|
14936
|
-
i2 = J4(q, w,
|
|
14941
|
+
i2 = J4(q, w, R2, 0, w.length, 0, a2 - T, u0, u0);
|
|
14937
14942
|
} else
|
|
14938
|
-
i2 = g(q, w,
|
|
14943
|
+
i2 = g(q, w, R2, a2 - T, M - a2, L);
|
|
14939
14944
|
}
|
|
14940
14945
|
C.push(i2), I.push(D2);
|
|
14941
14946
|
}
|
|
14942
14947
|
function u(S, x, C, I) {
|
|
14943
14948
|
let R = [], V = 0, j = -1;
|
|
14944
14949
|
for (; r.pos > x; ) {
|
|
14945
|
-
let { id: T, start: a2, end: A, size:
|
|
14946
|
-
if (
|
|
14950
|
+
let { id: T, start: a2, end: A, size: M } = r;
|
|
14951
|
+
if (M > 4)
|
|
14947
14952
|
r.next();
|
|
14948
14953
|
else {
|
|
14949
14954
|
if (j > -1 && a2 < j)
|
|
@@ -14953,8 +14958,8 @@ function qw(n) {
|
|
|
14953
14958
|
}
|
|
14954
14959
|
if (V) {
|
|
14955
14960
|
let T = new Uint16Array(V * 4), a2 = R[R.length - 2];
|
|
14956
|
-
for (let A = R.length - 3,
|
|
14957
|
-
T[
|
|
14961
|
+
for (let A = R.length - 3, M = 0; A >= 0; A -= 3)
|
|
14962
|
+
T[M++] = R[A], T[M++] = R[A + 1] - a2, T[M++] = R[A + 2] - a2, T[M++] = M;
|
|
14958
14963
|
C.push(new Le(T, R[2] - a2, i)), I.push(a2 - S);
|
|
14959
14964
|
}
|
|
14960
14965
|
}
|
|
@@ -14970,10 +14975,10 @@ function qw(n) {
|
|
|
14970
14975
|
};
|
|
14971
14976
|
}
|
|
14972
14977
|
function p(S, x, C, I, R, V, j, T, a2) {
|
|
14973
|
-
let A = [],
|
|
14978
|
+
let A = [], M = [];
|
|
14974
14979
|
for (; S.length > I; )
|
|
14975
|
-
A.push(S.pop()),
|
|
14976
|
-
S.push(g(i.types[j], A,
|
|
14980
|
+
A.push(S.pop()), M.push(x.pop() + C - R);
|
|
14981
|
+
S.push(g(i.types[j], A, M, V - R, T - V, a2)), x.push(R - C);
|
|
14977
14982
|
}
|
|
14978
14983
|
function g(S, x, C, I, R, V, j) {
|
|
14979
14984
|
if (V) {
|
|
@@ -14994,11 +14999,11 @@ function qw(n) {
|
|
|
14994
14999
|
T.size = I, T.start = R, T.skip = V, V += 4, I += 4, C.next();
|
|
14995
15000
|
continue;
|
|
14996
15001
|
}
|
|
14997
|
-
let
|
|
14998
|
-
if (A < 0 ||
|
|
15002
|
+
let M = C.pos - A;
|
|
15003
|
+
if (A < 0 || M < a2 || C.start < j)
|
|
14999
15004
|
break;
|
|
15000
15005
|
let L = C.id >= l ? 4 : 0, q = C.start;
|
|
15001
|
-
for (C.next(); C.pos >
|
|
15006
|
+
for (C.next(); C.pos > M; ) {
|
|
15002
15007
|
if (C.size < 0)
|
|
15003
15008
|
if (C.size == -3)
|
|
15004
15009
|
L += 4;
|
|
@@ -15024,11 +15029,11 @@ function qw(n) {
|
|
|
15024
15029
|
} else j == -3 ? h = I : j == -4 && (c = I);
|
|
15025
15030
|
return C;
|
|
15026
15031
|
}
|
|
15027
|
-
let y = [],
|
|
15032
|
+
let y = [], D = [];
|
|
15028
15033
|
for (; r.pos > 0; )
|
|
15029
|
-
d(n.start || 0, n.bufferStart || 0, y,
|
|
15030
|
-
let
|
|
15031
|
-
return new Y2(a[n.topID], y.reverse(),
|
|
15034
|
+
d(n.start || 0, n.bufferStart || 0, y, D, -1, 0);
|
|
15035
|
+
let O = (e = n.length) !== null && e !== void 0 ? e : y.length ? D[0] + y[0].length : 0;
|
|
15036
|
+
return new Y2(a[n.topID], y.reverse(), D.reverse(), O);
|
|
15032
15037
|
}
|
|
15033
15038
|
const Gn = /* @__PURE__ */ new WeakMap();
|
|
15034
15039
|
function t3(n, e) {
|
|
@@ -15057,24 +15062,24 @@ function J4(n, e, t, i, s, o, l, r, a) {
|
|
|
15057
15062
|
/* Balance.BranchFactor */
|
|
15058
15063
|
), d = [], u = [];
|
|
15059
15064
|
function f(p, g, m, v, y) {
|
|
15060
|
-
for (let
|
|
15061
|
-
let
|
|
15062
|
-
for (
|
|
15063
|
-
let C = t3(n, p[
|
|
15065
|
+
for (let D = m; D < v; ) {
|
|
15066
|
+
let O = D, S = g[D], x = t3(n, p[D]);
|
|
15067
|
+
for (D++; D < v; D++) {
|
|
15068
|
+
let C = t3(n, p[D]);
|
|
15064
15069
|
if (x + C >= c)
|
|
15065
15070
|
break;
|
|
15066
15071
|
x += C;
|
|
15067
15072
|
}
|
|
15068
|
-
if (
|
|
15073
|
+
if (D == O + 1) {
|
|
15069
15074
|
if (x > c) {
|
|
15070
|
-
let C = p[
|
|
15071
|
-
f(C.children, C.positions, 0, C.children.length, g[
|
|
15075
|
+
let C = p[O];
|
|
15076
|
+
f(C.children, C.positions, 0, C.children.length, g[O] + y);
|
|
15072
15077
|
continue;
|
|
15073
15078
|
}
|
|
15074
|
-
d.push(p[
|
|
15079
|
+
d.push(p[O]);
|
|
15075
15080
|
} else {
|
|
15076
|
-
let C = g[
|
|
15077
|
-
d.push(J4(n, p, g,
|
|
15081
|
+
let C = g[D - 1] + p[D - 1].length - S;
|
|
15082
|
+
d.push(J4(n, p, g, O, D, S, C, null, a));
|
|
15078
15083
|
}
|
|
15079
15084
|
u.push(S + y - o);
|
|
15080
15085
|
}
|
|
@@ -15381,11 +15386,11 @@ class tx {
|
|
|
15381
15386
|
if (u && u.overlay) {
|
|
15382
15387
|
let f = e.node.enter(u.overlay[0].from + r, 1), p = this.highlighters.filter((m) => !m.scope || m.scope(u.tree.type)), g = e.firstChild();
|
|
15383
15388
|
for (let m = 0, v = r; ; m++) {
|
|
15384
|
-
let y = m < u.overlay.length ? u.overlay[m] : null,
|
|
15385
|
-
if (
|
|
15386
|
-
for (; e.from < S && (this.highlightRange(e,
|
|
15389
|
+
let y = m < u.overlay.length ? u.overlay[m] : null, D = y ? y.from + r : a, O = Math.max(t, v), S = Math.min(i, D);
|
|
15390
|
+
if (O < S && g)
|
|
15391
|
+
for (; e.from < S && (this.highlightRange(e, O, S, s, o), this.startSpan(Math.min(S, e.to), h), !(e.to >= D || !e.nextSibling())); )
|
|
15387
15392
|
;
|
|
15388
|
-
if (!y ||
|
|
15393
|
+
if (!y || D > i)
|
|
15389
15394
|
break;
|
|
15390
15395
|
v = y.to + r, v > t && (this.highlightRange(f.cursor(), Math.max(t, y.from + r), Math.min(i, v), "", p), this.startSpan(Math.min(i, v), h));
|
|
15391
15396
|
}
|
|
@@ -15829,7 +15834,7 @@ class Y0 {
|
|
|
15829
15834
|
*/
|
|
15830
15835
|
constructor(e, t, i = [], s = "") {
|
|
15831
15836
|
this.data = e, this.name = s, S2.prototype.hasOwnProperty("tree") || Object.defineProperty(S2.prototype, "tree", { get() {
|
|
15832
|
-
return
|
|
15837
|
+
return t0(this);
|
|
15833
15838
|
} }), this.parser = t, this.extension = [
|
|
15834
15839
|
He.of(this),
|
|
15835
15840
|
S2.languageData.of((o, l, r) => {
|
|
@@ -15891,7 +15896,7 @@ class Y0 {
|
|
|
15891
15896
|
h instanceof Y2 && s(h, o.positions[a] + l);
|
|
15892
15897
|
}
|
|
15893
15898
|
};
|
|
15894
|
-
return s(
|
|
15899
|
+
return s(t0(e), 0), i;
|
|
15895
15900
|
}
|
|
15896
15901
|
/**
|
|
15897
15902
|
Indicates whether this language allows nested languages. The
|
|
@@ -15903,9 +15908,9 @@ class Y0 {
|
|
|
15903
15908
|
}
|
|
15904
15909
|
Y0.setState = /* @__PURE__ */ v2.define();
|
|
15905
15910
|
function $n(n, e, t) {
|
|
15906
|
-
let i = n.facet(He), s =
|
|
15911
|
+
let i = n.facet(He), s = t0(n).topNode;
|
|
15907
15912
|
if (!i || i.allowsNesting)
|
|
15908
|
-
for (let o = s; o; o = o.enter(e, t,
|
|
15913
|
+
for (let o = s; o; o = o.enter(e, t, Z2.ExcludeBuffers))
|
|
15909
15914
|
o.type.isTop && (s = o);
|
|
15910
15915
|
return s;
|
|
15911
15916
|
}
|
|
@@ -15933,7 +15938,7 @@ class m3 extends Y0 {
|
|
|
15933
15938
|
return this.parser.hasWrappers();
|
|
15934
15939
|
}
|
|
15935
15940
|
}
|
|
15936
|
-
function
|
|
15941
|
+
function t0(n) {
|
|
15937
15942
|
let e = n.field(Y0.state, !1);
|
|
15938
15943
|
return e ? e.tree : Y2.empty;
|
|
15939
15944
|
}
|
|
@@ -16255,7 +16260,7 @@ function ei(n, e) {
|
|
|
16255
16260
|
if (s !== void 0)
|
|
16256
16261
|
return s;
|
|
16257
16262
|
}
|
|
16258
|
-
let t =
|
|
16263
|
+
let t = t0(n.state);
|
|
16259
16264
|
return t.length >= e ? cx(n, t, e) : null;
|
|
16260
16265
|
}
|
|
16261
16266
|
class $3 {
|
|
@@ -16476,7 +16481,7 @@ function vx() {
|
|
|
16476
16481
|
}
|
|
16477
16482
|
const wx = /* @__PURE__ */ J.define(), D8 = /* @__PURE__ */ new x2();
|
|
16478
16483
|
function xx(n, e, t) {
|
|
16479
|
-
let i =
|
|
16484
|
+
let i = t0(n);
|
|
16480
16485
|
if (i.length < t)
|
|
16481
16486
|
return null;
|
|
16482
16487
|
let s = i.resolveStack(t, 1), o = null;
|
|
@@ -16686,7 +16691,7 @@ function zx(n = {}) {
|
|
|
16686
16691
|
this.from = l.viewport.from, this.markers = this.buildMarkers(l);
|
|
16687
16692
|
}
|
|
16688
16693
|
update(l) {
|
|
16689
|
-
(l.docChanged || l.viewportChanged || l.startState.facet(He) != l.state.facet(He) || l.startState.field(tt, !1) != l.state.field(tt, !1) ||
|
|
16694
|
+
(l.docChanged || l.viewportChanged || l.startState.facet(He) != l.state.facet(He) || l.startState.field(tt, !1) != l.state.field(tt, !1) || t0(l.startState) != t0(l.state) || e.foldingChanged(l)) && (this.markers = this.buildMarkers(l.view));
|
|
16690
16695
|
}
|
|
16691
16696
|
buildMarkers(l) {
|
|
16692
16697
|
let r = new we();
|
|
@@ -16789,10 +16794,10 @@ function Vx(n, e) {
|
|
|
16789
16794
|
}
|
|
16790
16795
|
class Ax {
|
|
16791
16796
|
constructor(e) {
|
|
16792
|
-
this.markCache = /* @__PURE__ */ Object.create(null), this.tree =
|
|
16797
|
+
this.markCache = /* @__PURE__ */ Object.create(null), this.tree = t0(e.state), this.decorations = this.buildDeco(e, m6(e.state)), this.decoratedTo = e.viewport.to;
|
|
16793
16798
|
}
|
|
16794
16799
|
update(e) {
|
|
16795
|
-
let t =
|
|
16800
|
+
let t = t0(e.state), i = m6(e.state), s = i != m6(e.startState), { viewport: o } = e.view, l = e.changes.mapPos(this.decoratedTo, 1);
|
|
16796
16801
|
t.length < o.to && !s && t.type == this.tree.type && l >= o.to ? (this.decorations = this.decorations.map(e.changes), this.decoratedTo = l) : (t != this.tree || e.viewportChanged || s) && (this.tree = t, this.decorations = this.buildDeco(e.view, i), this.decoratedTo = o.to);
|
|
16797
16802
|
}
|
|
16798
16803
|
buildDeco(e, t) {
|
|
@@ -16944,7 +16949,7 @@ function v4(n) {
|
|
|
16944
16949
|
return e ? e(n.node) : n;
|
|
16945
16950
|
}
|
|
16946
16951
|
function le(n, e, t, i = {}) {
|
|
16947
|
-
let s = i.maxScanDistance || B8, o = i.brackets || L8, l =
|
|
16952
|
+
let s = i.maxScanDistance || B8, o = i.brackets || L8, l = t0(n), r = l.resolveInner(e, t);
|
|
16948
16953
|
for (let a = r; a; a = a.parent) {
|
|
16949
16954
|
let h = m4(a.type, t, o);
|
|
16950
16955
|
if (h && a.from < a.to) {
|
|
@@ -17046,7 +17051,7 @@ function qx(n, e) {
|
|
|
17046
17051
|
});
|
|
17047
17052
|
return Fn.push(l), l.id;
|
|
17048
17053
|
}
|
|
17049
|
-
|
|
17054
|
+
N2.RTL, N2.LTR;
|
|
17050
17055
|
const Yx = (n) => {
|
|
17051
17056
|
let { state: e } = n, t = e.doc.lineAt(e.selection.main.from), i = ni(n.state, t.from);
|
|
17052
17057
|
return i.line ? Kx(n) : i.block ? Qx(n) : !1;
|
|
@@ -17380,7 +17385,7 @@ function U8(n, e) {
|
|
|
17380
17385
|
return Q0(n, (t) => t.empty ? n.moveByChar(t, e) : F3(t, e));
|
|
17381
17386
|
}
|
|
17382
17387
|
function d0(n) {
|
|
17383
|
-
return n.textDirectionAt(n.state.selection.main.head) ==
|
|
17388
|
+
return n.textDirectionAt(n.state.selection.main.head) == N2.LTR;
|
|
17384
17389
|
}
|
|
17385
17390
|
const F8 = (n) => U8(n, !d0(n)), q8 = (n) => U8(n, d0(n));
|
|
17386
17391
|
function Y8(n, e) {
|
|
@@ -17394,7 +17399,7 @@ function gb(n, e, t) {
|
|
|
17394
17399
|
return i && (i > 2 || /[^\s,.;:]/.test(n.sliceDoc(e.from, e.to))) || e.firstChild;
|
|
17395
17400
|
}
|
|
17396
17401
|
function q3(n, e, t) {
|
|
17397
|
-
let i =
|
|
17402
|
+
let i = t0(n).resolveInner(e.head), s = t ? x2.closedBy : x2.openedBy;
|
|
17398
17403
|
for (let a = e.head; ; ) {
|
|
17399
17404
|
let h = t ? i.childAfter(a) : i.childBefore(a);
|
|
17400
17405
|
if (!h)
|
|
@@ -17491,7 +17496,7 @@ const Xn = (n) => rl(n, !1), Qn = (n) => rl(n, !0), zb = (n) => F0(n, (e) => Ge(
|
|
|
17491
17496
|
return e(n.update({ selection: P.create(t), userEvent: "select" })), !0;
|
|
17492
17497
|
}, Ib = ({ state: n, dispatch: e }) => {
|
|
17493
17498
|
let t = Tt(n.selection, (i) => {
|
|
17494
|
-
let s =
|
|
17499
|
+
let s = t0(n), o = s.resolveStack(i.from, 1);
|
|
17495
17500
|
if (i.empty) {
|
|
17496
17501
|
let l = s.resolveStack(i.from, -1);
|
|
17497
17502
|
l.node.from >= o.node.from && l.node.to <= o.node.to && (o = l);
|
|
@@ -17653,7 +17658,7 @@ const Yb = ({ state: n, dispatch: e }) => fl(n, e, !1), Kb = ({ state: n, dispat
|
|
|
17653
17658
|
function Qb(n, e) {
|
|
17654
17659
|
if (/\(\)|\[\]|\{\}/.test(n.sliceDoc(e - 1, e + 1)))
|
|
17655
17660
|
return { from: e, to: e };
|
|
17656
|
-
let t =
|
|
17661
|
+
let t = t0(n).resolveInner(e), i = t.childBefore(e), s = t.childAfter(e), o;
|
|
17657
17662
|
return i && s && i.to <= e && s.from >= e && (o = i.type.prop(x2.closedBy)) && o.indexOf(s.name) > -1 && n.doc.lineAt(i.to).from == n.doc.lineAt(s.from).from && !/\S/.test(n.sliceDoc(i.to, s.from)) ? { from: i.to, to: s.from } : null;
|
|
17658
17663
|
}
|
|
17659
17664
|
const is = /* @__PURE__ */ pl(!1), Jb = /* @__PURE__ */ pl(!0);
|
|
@@ -18642,7 +18647,7 @@ class Cl {
|
|
|
18642
18647
|
token before `this.pos`.
|
|
18643
18648
|
*/
|
|
18644
18649
|
tokenBefore(e) {
|
|
18645
|
-
let t =
|
|
18650
|
+
let t = t0(this.state).resolveInner(this.pos, -1);
|
|
18646
18651
|
for (; t && e.indexOf(t.name) < 0; )
|
|
18647
18652
|
t = t.parent;
|
|
18648
18653
|
return t ? {
|
|
@@ -18767,31 +18772,31 @@ class I_ {
|
|
|
18767
18772
|
return null;
|
|
18768
18773
|
let { chars: t, folded: i, any: s, precise: o, byWord: l } = this;
|
|
18769
18774
|
if (t.length == 1) {
|
|
18770
|
-
let y = _0(e, 0),
|
|
18775
|
+
let y = _0(e, 0), D = se(y), O = D == e.length ? 0 : -100;
|
|
18771
18776
|
if (y != t[0]) if (y == i[0])
|
|
18772
|
-
|
|
18777
|
+
O += -200;
|
|
18773
18778
|
else
|
|
18774
18779
|
return null;
|
|
18775
|
-
return this.ret(
|
|
18780
|
+
return this.ret(O, [0, D]);
|
|
18776
18781
|
}
|
|
18777
18782
|
let r = e.indexOf(this.pattern);
|
|
18778
18783
|
if (r == 0)
|
|
18779
18784
|
return this.ret(e.length == this.pattern.length ? 0 : -100, [0, this.pattern.length]);
|
|
18780
18785
|
let a = t.length, h = 0;
|
|
18781
18786
|
if (r < 0) {
|
|
18782
|
-
for (let y = 0,
|
|
18783
|
-
let
|
|
18784
|
-
(
|
|
18787
|
+
for (let y = 0, D = Math.min(e.length, 200); y < D && h < a; ) {
|
|
18788
|
+
let O = _0(e, y);
|
|
18789
|
+
(O == t[h] || O == i[h]) && (s[h++] = y), y += se(O);
|
|
18785
18790
|
}
|
|
18786
18791
|
if (h < a)
|
|
18787
18792
|
return null;
|
|
18788
18793
|
}
|
|
18789
18794
|
let c = 0, d = 0, u = !1, f = 0, p = -1, g = -1, m = /[a-z]/.test(e), v = !0;
|
|
18790
|
-
for (let y = 0,
|
|
18795
|
+
for (let y = 0, D = Math.min(e.length, 200), O = 0; y < D && d < a; ) {
|
|
18791
18796
|
let S = _0(e, y);
|
|
18792
18797
|
r < 0 && (c < a && S == t[c] && (o[c++] = y), f < a && (S == t[f] || S == i[f] ? (f == 0 && (p = y), g = y + 1, f++) : f = 0));
|
|
18793
18798
|
let x, C = S < 255 ? S >= 48 && S <= 57 || S >= 97 && S <= 122 ? 2 : S >= 65 && S <= 90 ? 1 : 0 : (x = V4(S)) != x.toLowerCase() ? 1 : x != x.toUpperCase() ? 2 : 0;
|
|
18794
|
-
(!y || C == 1 && m ||
|
|
18799
|
+
(!y || C == 1 && m || O == 0 && C != 0) && (t[d] == S || i[d] == S && (u = !0) ? l[d++] = y : l.length && (v = !1)), O = C, y += se(S);
|
|
18795
18800
|
}
|
|
18796
18801
|
return d == a && l[0] == 0 && v ? this.result(-100 + (u ? -200 : 0), l, e) : f == a && p == 0 ? this.ret(-200 - e.length + (g == e.length ? 0 : -100), [0, g]) : r > -1 ? this.ret(-700 - e.length, [r, r + this.pattern.length]) : f == a ? this.ret(-900 - e.length, [p, g]) : d == a ? this.result(-100 + (u ? -200 : 0) + -700 + (v ? 0 : -1100), l, e) : t.length == 2 ? null : this.result((s[0] ? -700 : 0) + -200 + -1100, s, e);
|
|
18797
18802
|
}
|
|
@@ -18815,7 +18820,7 @@ class G_ {
|
|
|
18815
18820
|
return i == null ? null : (this.matched = [0, t.length], this.score = i + (e.length == this.pattern.length ? 0 : -100), this);
|
|
18816
18821
|
}
|
|
18817
18822
|
}
|
|
18818
|
-
const
|
|
18823
|
+
const e0 = /* @__PURE__ */ J.define({
|
|
18819
18824
|
combine(n) {
|
|
18820
18825
|
return he(n, {
|
|
18821
18826
|
activateOnTyping: !0,
|
|
@@ -18851,7 +18856,7 @@ function hs(n, e) {
|
|
|
18851
18856
|
return n ? e ? n + " " + e : n : e;
|
|
18852
18857
|
}
|
|
18853
18858
|
function N_(n, e, t, i, s, o) {
|
|
18854
|
-
let l = n.textDirection ==
|
|
18859
|
+
let l = n.textDirection == N2.RTL, r = l, a = !1, h = "top", c, d, u = e.left - s.left, f = s.right - e.right, p = i.right - i.left, g = i.bottom - i.top;
|
|
18855
18860
|
if (r && u < Math.min(p, f) ? r = !1 : !r && f < Math.min(p, u) && (r = !0), p <= (r ? u : f))
|
|
18856
18861
|
c = Math.max(s.top, Math.min(t.top, s.bottom - g)) - e.top, d = Math.min(400, r ? u : f);
|
|
18857
18862
|
else {
|
|
@@ -18918,7 +18923,7 @@ class $_ {
|
|
|
18918
18923
|
write: (a) => this.placeInfo(a),
|
|
18919
18924
|
key: this
|
|
18920
18925
|
}, this.space = null, this.currentClass = "";
|
|
18921
|
-
let s = e.state.field(t), { options: o, selected: l } = s.open, r = e.state.facet(
|
|
18926
|
+
let s = e.state.field(t), { options: o, selected: l } = s.open, r = e.state.facet(e0);
|
|
18922
18927
|
this.optionContent = R_(r), this.optionClass = r.optionClass, this.tooltipClass = r.tooltipClass, this.range = _6(o.length, l, r.maxRenderedOptions), this.dom = document.createElement("div"), this.dom.className = "cm-tooltip-autocomplete", this.updateTooltipClass(e.state), this.dom.addEventListener("mousedown", (a) => {
|
|
18923
18928
|
let { options: h } = e.state.field(t).open;
|
|
18924
18929
|
for (let c = a.target, d; c && c != this.dom; c = c.parentNode)
|
|
@@ -18928,7 +18933,7 @@ class $_ {
|
|
|
18928
18933
|
}
|
|
18929
18934
|
}), this.dom.addEventListener("focusout", (a) => {
|
|
18930
18935
|
let h = e.state.field(this.stateField, !1);
|
|
18931
|
-
h && h.tooltip && e.state.facet(
|
|
18936
|
+
h && h.tooltip && e.state.facet(e0).closeOnBlur && a.relatedTarget != e.contentDOM && e.dispatch({ effects: a1.of(null) });
|
|
18932
18937
|
}), this.showOptions(o, s.id);
|
|
18933
18938
|
}
|
|
18934
18939
|
mount() {
|
|
@@ -18944,7 +18949,7 @@ class $_ {
|
|
|
18944
18949
|
let i = e.state.field(this.stateField), s = e.startState.field(this.stateField);
|
|
18945
18950
|
if (this.updateTooltipClass(e.state), i != s) {
|
|
18946
18951
|
let { options: o, selected: l, disabled: r } = i.open;
|
|
18947
|
-
(!s.open || s.open.options != o) && (this.range = _6(o.length, l, e.state.facet(
|
|
18952
|
+
(!s.open || s.open.options != o) && (this.range = _6(o.length, l, e.state.facet(e0).maxRenderedOptions), this.showOptions(o, i.id)), this.updateSel(), r != ((t = s.open) === null || t === void 0 ? void 0 : t.disabled) && this.dom.classList.toggle("cm-tooltip-autocomplete-disabled", !!r);
|
|
18948
18953
|
}
|
|
18949
18954
|
}
|
|
18950
18955
|
updateTooltipClass(e) {
|
|
@@ -18962,7 +18967,7 @@ class $_ {
|
|
|
18962
18967
|
}
|
|
18963
18968
|
updateSel() {
|
|
18964
18969
|
let e = this.view.state.field(this.stateField), t = e.open;
|
|
18965
|
-
if ((t.selected > -1 && t.selected < this.range.from || t.selected >= this.range.to) && (this.range = _6(t.options.length, t.selected, this.view.state.facet(
|
|
18970
|
+
if ((t.selected > -1 && t.selected < this.range.from || t.selected >= this.range.to) && (this.range = _6(t.options.length, t.selected, this.view.state.facet(e0).maxRenderedOptions), this.showOptions(t.options, e.id)), this.updateSelectedOption(t.selected)) {
|
|
18966
18971
|
this.destroyInfo();
|
|
18967
18972
|
let { completion: i } = t.options[t.selected], { info: s } = i;
|
|
18968
18973
|
if (!s)
|
|
@@ -19001,7 +19006,7 @@ class $_ {
|
|
|
19001
19006
|
let l = this.dom.ownerDocument.documentElement;
|
|
19002
19007
|
o = { left: 0, top: 0, right: l.clientWidth, bottom: l.clientHeight };
|
|
19003
19008
|
}
|
|
19004
|
-
return s.top > Math.min(o.bottom, t.bottom) - 10 || s.bottom < Math.max(o.top, t.top) + 10 ? null : this.view.state.facet(
|
|
19009
|
+
return s.top > Math.min(o.bottom, t.bottom) - 10 || s.bottom < Math.max(o.top, t.top) + 10 ? null : this.view.state.facet(e0).positionInfo(this.view, t, s, i, o, this.dom);
|
|
19005
19010
|
}
|
|
19006
19011
|
placeInfo(e) {
|
|
19007
19012
|
this.info && (e ? (e.style && (this.info.style.cssText = e.style), this.info.className = "cm-tooltip cm-completionInfo " + (e.class || "")) : this.info.style.cssText = "top: -1e6px");
|
|
@@ -19061,7 +19066,7 @@ function U_(n, e) {
|
|
|
19061
19066
|
let d = typeof c == "string" ? c : c.name;
|
|
19062
19067
|
i.some((u) => u.name == d) || i.push(typeof c == "string" ? { name: d } : c);
|
|
19063
19068
|
}
|
|
19064
|
-
}, o = e.facet(
|
|
19069
|
+
}, o = e.facet(e0);
|
|
19065
19070
|
for (let h of n)
|
|
19066
19071
|
if (h.hasResult()) {
|
|
19067
19072
|
let c = h.result.getMatch;
|
|
@@ -19109,7 +19114,7 @@ class dt {
|
|
|
19109
19114
|
let r = U_(e, t);
|
|
19110
19115
|
if (!r.length)
|
|
19111
19116
|
return s && e.some((h) => h.isPending) ? s.setDisabled() : null;
|
|
19112
|
-
let a = t.facet(
|
|
19117
|
+
let a = t.facet(e0).selectOnOpen ? 0 : -1;
|
|
19113
19118
|
if (s && s.selected != a && s.selected != -1) {
|
|
19114
19119
|
let h = s.options[s.selected].completion;
|
|
19115
19120
|
for (let c = 0; c < r.length; c++)
|
|
@@ -19139,7 +19144,7 @@ class M3 {
|
|
|
19139
19144
|
return new M3(K_, "cm-ac-" + Math.floor(Math.random() * 2e6).toString(36), null);
|
|
19140
19145
|
}
|
|
19141
19146
|
update(e) {
|
|
19142
|
-
let { state: t } = e, i = t.facet(
|
|
19147
|
+
let { state: t } = e, i = t.facet(e0), o = (i.override || t.languageDataAt("autocomplete", Ke(t)).map(H_)).map((a) => (this.active.find((c) => c.source == a) || new $0(
|
|
19143
19148
|
a,
|
|
19144
19149
|
this.active.some(
|
|
19145
19150
|
(c) => c.state != 0
|
|
@@ -19311,7 +19316,7 @@ const Q_ = /* @__PURE__ */ j_(S0, hi);
|
|
|
19311
19316
|
function $1(n, e = "option") {
|
|
19312
19317
|
return (t) => {
|
|
19313
19318
|
let i = t.state.field(S0, !1);
|
|
19314
|
-
if (!i || !i.open || i.open.disabled || Date.now() - i.open.timestamp < t.state.facet(
|
|
19319
|
+
if (!i || !i.open || i.open.disabled || Date.now() - i.open.timestamp < t.state.facet(e0).interactionDelay)
|
|
19315
19320
|
return !1;
|
|
19316
19321
|
let s = 1, o;
|
|
19317
19322
|
e == "page" && (o = d8(t, i.open.tooltip)) && (s = Math.max(2, Math.floor(o.dom.offsetHeight / o.dom.querySelector("li").offsetHeight) - 1));
|
|
@@ -19321,7 +19326,7 @@ function $1(n, e = "option") {
|
|
|
19321
19326
|
}
|
|
19322
19327
|
const J_ = (n) => {
|
|
19323
19328
|
let e = n.state.field(S0, !1);
|
|
19324
|
-
return n.state.readOnly || !e || !e.open || e.open.selected < 0 || e.open.disabled || Date.now() - e.open.timestamp < n.state.facet(
|
|
19329
|
+
return n.state.readOnly || !e || !e.open || e.open.selected < 0 || e.open.disabled || Date.now() - e.open.timestamp < n.state.facet(e0).interactionDelay ? !1 : hi(n, e.open.options[e.open.selected]);
|
|
19325
19330
|
}, fs = (n) => n.state.field(S0, !1) ? (n.dispatch({ effects: O3.of(!0) }), !0) : !1, Z_ = (n) => {
|
|
19326
19331
|
let e = n.state.field(S0, !1);
|
|
19327
19332
|
return !e || !e.active.some(
|
|
@@ -19341,7 +19346,7 @@ const ty = 50, iy = 1e3, ny = /* @__PURE__ */ K2.fromClass(class {
|
|
|
19341
19346
|
e.isPending && this.startQuery(e);
|
|
19342
19347
|
}
|
|
19343
19348
|
update(n) {
|
|
19344
|
-
let e = n.state.field(S0), t = n.state.facet(
|
|
19349
|
+
let e = n.state.field(S0), t = n.state.facet(e0);
|
|
19345
19350
|
if (!n.selectionSet && !n.docChanged && n.startState.field(S0) == e)
|
|
19346
19351
|
return;
|
|
19347
19352
|
let i = n.transactions.some((o) => {
|
|
@@ -19372,7 +19377,7 @@ const ty = 50, iy = 1e3, ny = /* @__PURE__ */ K2.fromClass(class {
|
|
|
19372
19377
|
let { state: n } = this.view, e = n.field(S0);
|
|
19373
19378
|
for (let t of e.active)
|
|
19374
19379
|
t.isPending && !this.running.some((i) => i.active.source == t.source) && this.startQuery(t);
|
|
19375
|
-
this.running.length && e.open && e.open.disabled && (this.debounceAccept = setTimeout(() => this.accept(), this.view.state.facet(
|
|
19380
|
+
this.running.length && e.open && e.open.disabled && (this.debounceAccept = setTimeout(() => this.accept(), this.view.state.facet(e0).updateSyncTime));
|
|
19376
19381
|
}
|
|
19377
19382
|
startQuery(n) {
|
|
19378
19383
|
let { state: e } = this.view, t = Ke(e), i = new Cl(e, t, n.explicit, this.view), s = new ey(n, i);
|
|
@@ -19383,14 +19388,14 @@ const ty = 50, iy = 1e3, ny = /* @__PURE__ */ K2.fromClass(class {
|
|
|
19383
19388
|
});
|
|
19384
19389
|
}
|
|
19385
19390
|
scheduleAccept() {
|
|
19386
|
-
this.running.every((n) => n.done !== void 0) ? this.accept() : this.debounceAccept < 0 && (this.debounceAccept = setTimeout(() => this.accept(), this.view.state.facet(
|
|
19391
|
+
this.running.every((n) => n.done !== void 0) ? this.accept() : this.debounceAccept < 0 && (this.debounceAccept = setTimeout(() => this.accept(), this.view.state.facet(e0).updateSyncTime));
|
|
19387
19392
|
}
|
|
19388
19393
|
// For each finished query in this.running, try to create a result
|
|
19389
19394
|
// or, if appropriate, restart the query.
|
|
19390
19395
|
accept() {
|
|
19391
19396
|
var n;
|
|
19392
19397
|
this.debounceAccept > -1 && clearTimeout(this.debounceAccept), this.debounceAccept = -1;
|
|
19393
|
-
let e = [], t = this.view.state.facet(
|
|
19398
|
+
let e = [], t = this.view.state.facet(e0), i = this.view.state.field(S0);
|
|
19394
19399
|
for (let s = 0; s < this.running.length; s++) {
|
|
19395
19400
|
let o = this.running[s];
|
|
19396
19401
|
if (o.done === void 0)
|
|
@@ -19424,7 +19429,7 @@ const ty = 50, iy = 1e3, ny = /* @__PURE__ */ K2.fromClass(class {
|
|
|
19424
19429
|
eventHandlers: {
|
|
19425
19430
|
blur(n) {
|
|
19426
19431
|
let e = this.view.state.field(S0, !1);
|
|
19427
|
-
if (e && e.tooltip && this.view.state.facet(
|
|
19432
|
+
if (e && e.tooltip && this.view.state.facet(e0).closeOnBlur) {
|
|
19428
19433
|
let t = e.open && d8(this.view, e.open.tooltip);
|
|
19429
19434
|
(!t || !t.dom.contains(n.relatedTarget)) && setTimeout(() => this.view.dispatch({ effects: a1.of(null) }), 10);
|
|
19430
19435
|
}
|
|
@@ -19734,11 +19739,11 @@ function my(n, e, t, i) {
|
|
|
19734
19739
|
});
|
|
19735
19740
|
}
|
|
19736
19741
|
function ps(n, e) {
|
|
19737
|
-
let t =
|
|
19742
|
+
let t = t0(n).resolveInner(e + 1);
|
|
19738
19743
|
return t.parent && t.from == e;
|
|
19739
19744
|
}
|
|
19740
19745
|
function vy(n, e, t, i) {
|
|
19741
|
-
let s =
|
|
19746
|
+
let s = t0(n).resolveInner(e, -1), o = i.reduce((l, r) => Math.max(l, r.length), 0);
|
|
19742
19747
|
for (let l = 0; l < 5; l++) {
|
|
19743
19748
|
let r = n.sliceDoc(s.from, Math.min(s.to, s.from + t.length + o)), a = r.indexOf(t);
|
|
19744
19749
|
if (!a || a > -1 && i.indexOf(r.slice(0, a)) > -1) {
|
|
@@ -19772,7 +19777,7 @@ function wy(n = {}) {
|
|
|
19772
19777
|
return [
|
|
19773
19778
|
oy,
|
|
19774
19779
|
S0,
|
|
19775
|
-
|
|
19780
|
+
e0.of(n),
|
|
19776
19781
|
ny,
|
|
19777
19782
|
xy,
|
|
19778
19783
|
ly
|
|
@@ -19787,7 +19792,7 @@ const Al = [
|
|
|
19787
19792
|
{ key: "PageDown", run: /* @__PURE__ */ $1(!0, "page") },
|
|
19788
19793
|
{ key: "PageUp", run: /* @__PURE__ */ $1(!1, "page") },
|
|
19789
19794
|
{ key: "Enter", run: J_ }
|
|
19790
|
-
], xy = /* @__PURE__ */ it.highest(/* @__PURE__ */ F4.computeN([
|
|
19795
|
+
], xy = /* @__PURE__ */ it.highest(/* @__PURE__ */ F4.computeN([e0], (n) => n.facet(e0).defaultKeymap ? [Al] : []));
|
|
19791
19796
|
class ms {
|
|
19792
19797
|
constructor(e, t, i) {
|
|
19793
19798
|
this.from = e, this.to = t, this.diagnostic = i;
|
|
@@ -20909,7 +20914,7 @@ function Iy(n, e, t, i) {
|
|
|
20909
20914
|
const P0 = typeof process < "u" && process.env && /\bparse\b/.test(process.env.LOG);
|
|
20910
20915
|
let S6 = null;
|
|
20911
20916
|
function ys(n, e, t) {
|
|
20912
|
-
let i = n.cursor(
|
|
20917
|
+
let i = n.cursor(Z2.IncludeAnonymous);
|
|
20913
20918
|
for (i.moveTo(e); ; )
|
|
20914
20919
|
if (!(t < 0 ? i.childBefore(e) : i.childAfter(e)))
|
|
20915
20920
|
for (; ; ) {
|
|
@@ -21644,7 +21649,7 @@ function D6(n) {
|
|
|
21644
21649
|
}
|
|
21645
21650
|
function hS(n, e) {
|
|
21646
21651
|
var t;
|
|
21647
|
-
let i =
|
|
21652
|
+
let i = t0(n).resolveInner(e, -1), s = null;
|
|
21648
21653
|
for (let o = i; !s && o.parent; o = o.parent)
|
|
21649
21654
|
(o.name == "OpenTag" || o.name == "CloseTag" || o.name == "SelfClosingTag" || o.name == "MismatchedCloseTag") && (s = o);
|
|
21650
21655
|
if (s && (s.to > e || s.lastChild.type.isError)) {
|
|
@@ -21743,14 +21748,14 @@ function uS(n, e) {
|
|
|
21743
21748
|
} else if (u == "tag") {
|
|
21744
21749
|
let g = k6(c, p), m = r[g], v = [], y = p && p.lastChild;
|
|
21745
21750
|
g && (!y || y.name != "CloseTag" || n3(c, y) != g) && v.push(m ? m.closeCompletion : { label: "</" + g + ">", type: "type", boost: 2 });
|
|
21746
|
-
let
|
|
21751
|
+
let D = v.concat(((m == null ? void 0 : m.children) || (p ? o : l)).map((O) => O.openCompletion));
|
|
21747
21752
|
if (p && (m != null && m.text.length)) {
|
|
21748
|
-
let
|
|
21749
|
-
|
|
21753
|
+
let O = p.firstChild;
|
|
21754
|
+
O.to > a.pos - 20 && !/\S/.test(a.state.sliceDoc(O.to, a.pos)) && (D = D.concat(m.text));
|
|
21750
21755
|
}
|
|
21751
21756
|
return {
|
|
21752
21757
|
from: f,
|
|
21753
|
-
options:
|
|
21758
|
+
options: D,
|
|
21754
21759
|
validFor: /^<\/?[:\-\.\w\u00b7-\uffff]*$/
|
|
21755
21760
|
};
|
|
21756
21761
|
} else
|
|
@@ -21803,7 +21808,7 @@ const pS = /* @__PURE__ */ Q.inputHandler.of((n, e, t, i, s) => {
|
|
|
21803
21808
|
return !1;
|
|
21804
21809
|
let o = s(), { state: l } = o, r = l.changeByRange((a) => {
|
|
21805
21810
|
var h, c, d;
|
|
21806
|
-
let { head: u } = a, f = l.doc.sliceString(u - 1, u) == i, p =
|
|
21811
|
+
let { head: u } = a, f = l.doc.sliceString(u - 1, u) == i, p = t0(l).resolveInner(u, -1), g;
|
|
21807
21812
|
if (f && i == ">" && p.name == "EndTag") {
|
|
21808
21813
|
let m = p.parent;
|
|
21809
21814
|
if (((c = (h = m.parent) === null || h === void 0 ? void 0 : h.lastChild) === null || c === void 0 ? void 0 : c.name) != "CloseTag" && (g = Ps(l.doc, m.parent, u))) {
|
|
@@ -21984,15 +21989,15 @@ const pS = /* @__PURE__ */ Q.inputHandler.of((n, e, t, i, s) => {
|
|
|
21984
21989
|
isNc: u.value
|
|
21985
21990
|
}));
|
|
21986
21991
|
const h = n2(() => (r == null ? void 0 : r.value) === "cpt"), c = n2(() => (r == null ? void 0 : r.value) === "uv"), d = n2(() => (r == null ? void 0 : r.value) === "cyd"), u = n2(() => (r == null ? void 0 : r.value) === "nc"), f = n2(() => (r == null ? void 0 : r.value) === "txt"), p = n2(() => {
|
|
21987
|
-
var V, j, T, a2, A,
|
|
21988
|
-
return ((j = (V = i.blobUrl) == null ? void 0 : V.toUpperCase()) == null ? void 0 : j.includes(".OBJ")) || ((a2 = (T = i.blobUrl) == null ? void 0 : T.toUpperCase()) == null ? void 0 : a2.includes(".STL")) || ((
|
|
21992
|
+
var V, j, T, a2, A, M;
|
|
21993
|
+
return ((j = (V = i.blobUrl) == null ? void 0 : V.toUpperCase()) == null ? void 0 : j.includes(".OBJ")) || ((a2 = (T = i.blobUrl) == null ? void 0 : T.toUpperCase()) == null ? void 0 : a2.includes(".STL")) || ((M = (A = i.blobUrl) == null ? void 0 : A.toUpperCase()) == null ? void 0 : M.includes(".MTL")) || (r == null ? void 0 : r.value) === "obj" || (r == null ? void 0 : r.value) === "stl";
|
|
21989
21994
|
}), g = n2(() => (r == null ? void 0 : r.value) === "ls"), m = n2(() => {
|
|
21990
21995
|
var V, j;
|
|
21991
21996
|
return ((j = (V = i.blobUrl) == null ? void 0 : V.toUpperCase()) == null ? void 0 : j.includes(".URDF")) || (r == null ? void 0 : r.value) === "urdf";
|
|
21992
|
-
}), v = n2(() => m.value), y = n2(() => (r == null ? void 0 : r.value) === "docx"),
|
|
21997
|
+
}), v = n2(() => m.value), y = n2(() => (r == null ? void 0 : r.value) === "docx"), D = n2(() => (r == null ? void 0 : r.value) === "csv"), O = n2(() => (r == null ? void 0 : r.value) === "xlsx"), S = n2(() => (r == null ? void 0 : r.value) === "pdf"), x = n2(() => {
|
|
21993
21998
|
const V = r == null ? void 0 : r.value;
|
|
21994
21999
|
return V === "jpg" || V === "jpeg" || V === "png" || V === "gif" || V === "webp" || V === "bmp";
|
|
21995
|
-
}), C = n2(() => (r == null ? void 0 : r.value) === "pptx"), I = n2(() => (r == null ? void 0 : r.value) === "mp4"), R = n2(() => !f && !g && !v && !y && !
|
|
22000
|
+
}), C = n2(() => (r == null ? void 0 : r.value) === "pptx"), I = n2(() => (r == null ? void 0 : r.value) === "mp4"), R = n2(() => !f && !g && !v && !y && !O && !S && !x && !C);
|
|
21996
22001
|
return f1(() => {
|
|
21997
22002
|
t("destroy");
|
|
21998
22003
|
}), (V, j) => (_(), E("div", TS, [
|
|
@@ -22023,13 +22028,13 @@ const pS = /* @__PURE__ */ Q.inputHandler.of((n, e, t, i, s) => {
|
|
|
22023
22028
|
key: i == null ? void 0 : i.fullScreen
|
|
22024
22029
|
}, null, 8, ["files"]))
|
|
22025
22030
|
])) : c2("", !0),
|
|
22026
|
-
|
|
22031
|
+
O.value ? (_(), E("div", AS, [
|
|
22027
22032
|
t2(Vg, {
|
|
22028
22033
|
fileName: o.value,
|
|
22029
22034
|
blobUrl: s.value
|
|
22030
22035
|
}, null, 8, ["fileName", "blobUrl"])
|
|
22031
22036
|
])) : c2("", !0),
|
|
22032
|
-
|
|
22037
|
+
D.value ? (_(), E("div", ES, [
|
|
22033
22038
|
t2(Lg, {
|
|
22034
22039
|
fileName: o.value,
|
|
22035
22040
|
blobUrl: s.value
|
|
@@ -22058,7 +22063,7 @@ const pS = /* @__PURE__ */ Q.inputHandler.of((n, e, t, i, s) => {
|
|
|
22058
22063
|
fileName: o.value,
|
|
22059
22064
|
blobUrl: s.value
|
|
22060
22065
|
}, null, 8, ["fileName", "blobUrl"])
|
|
22061
|
-
])) : !y.value && !
|
|
22066
|
+
])) : !y.value && !O.value && !S.value && !m.value && !x.value && !C.value && !p.value && !I.value && !a.value && !D.value ? (_(), E("div", GS, [
|
|
22062
22067
|
t2(wS, {
|
|
22063
22068
|
fileName: o.value,
|
|
22064
22069
|
blobUrl: s.value
|
|
@@ -22072,7 +22077,7 @@ const pS = /* @__PURE__ */ Q.inputHandler.of((n, e, t, i, s) => {
|
|
|
22072
22077
|
}, Gl = /* @__PURE__ */ P2(RS, [["__scopeId", "data-v-c6a41c66"]]), $S = { class: "file-preview-container" }, jS = {
|
|
22073
22078
|
key: 0,
|
|
22074
22079
|
class: "container-left"
|
|
22075
|
-
}, WS = ["title", "onClick"], US = { class: "container-right" }, FS = /* @__PURE__ */
|
|
22080
|
+
}, WS = ["title", "onClick"], US = { class: "container-right" }, FS = /* @__PURE__ */ J2({
|
|
22076
22081
|
__name: "index",
|
|
22077
22082
|
props: {
|
|
22078
22083
|
fileDataList: {},
|
|
@@ -22131,7 +22136,7 @@ const pS = /* @__PURE__ */ Q.inputHandler.of((n, e, t, i, s) => {
|
|
|
22131
22136
|
]);
|
|
22132
22137
|
};
|
|
22133
22138
|
}
|
|
22134
|
-
}), Nl = /* @__PURE__ */ P2(FS, [["__scopeId", "data-v-59c4408e"]]), qS = { class: "file-preview-dialog-header" }, YS = ["title"], KS = { class: "header-right" }, XS = { class: "file-preview-dialog-body" }, QS = /* @__PURE__ */
|
|
22139
|
+
}), Nl = /* @__PURE__ */ P2(FS, [["__scopeId", "data-v-59c4408e"]]), qS = { class: "file-preview-dialog-header" }, YS = ["title"], KS = { class: "header-right" }, XS = { class: "file-preview-dialog-body" }, QS = /* @__PURE__ */ J2({
|
|
22135
22140
|
__name: "index",
|
|
22136
22141
|
props: {
|
|
22137
22142
|
fileDataList: {},
|
|
@@ -22146,9 +22151,9 @@ const pS = /* @__PURE__ */ Q.inputHandler.of((n, e, t, i, s) => {
|
|
|
22146
22151
|
const p = o.value;
|
|
22147
22152
|
return (m = p == null ? void 0 : p[0]) == null ? void 0 : m.name;
|
|
22148
22153
|
}), h = () => {
|
|
22149
|
-
var m, v, y,
|
|
22154
|
+
var m, v, y, D;
|
|
22150
22155
|
var p = document.createElement("a"), g = (v = (m = o.value) == null ? void 0 : m[0]) == null ? void 0 : v.blobUrl;
|
|
22151
|
-
p.style.display = "none", p.href = g, p.download = decodeURI((
|
|
22156
|
+
p.style.display = "none", p.href = g, p.download = decodeURI((D = (y = o.value) == null ? void 0 : y[0]) == null ? void 0 : D.name), document.body.appendChild(p), p.click(), document.body.removeChild(p);
|
|
22152
22157
|
}, c = G(!1), d = () => {
|
|
22153
22158
|
const p = c.value;
|
|
22154
22159
|
c.value = !p;
|
|
@@ -22263,14 +22268,14 @@ const pS = /* @__PURE__ */ Q.inputHandler.of((n, e, t, i, s) => {
|
|
|
22263
22268
|
d.value = x == null ? void 0 : x.url;
|
|
22264
22269
|
return d.value;
|
|
22265
22270
|
}, g = async (x) => {
|
|
22266
|
-
var I, R, V, j, T, a2, A,
|
|
22271
|
+
var I, R, V, j, T, a2, A, M, L;
|
|
22267
22272
|
if ((x == null ? void 0 : x.oldUrl) || (x == null ? void 0 : x.url)) {
|
|
22268
22273
|
const q = Ar.service({
|
|
22269
22274
|
lock: !0,
|
|
22270
22275
|
text: "Loading",
|
|
22271
22276
|
background: "rgba(0, 0, 0, 0.7)"
|
|
22272
22277
|
});
|
|
22273
|
-
c.value = x != null && x.oldUrl ? (V = x == null ? void 0 : x.oldUrl) == null ? void 0 : V.split("/")[((R = (I = x == null ? void 0 : x.oldUrl) == null ? void 0 : I.split("/")) == null ? void 0 : R.length) - 1] : (x == null ? void 0 : x.name) + "." + ((L = (T = (j = L0(x)) == null ? void 0 : j.url) == null ? void 0 : T.split(".")) == null ? void 0 : L[((
|
|
22278
|
+
c.value = x != null && x.oldUrl ? (V = x == null ? void 0 : x.oldUrl) == null ? void 0 : V.split("/")[((R = (I = x == null ? void 0 : x.oldUrl) == null ? void 0 : I.split("/")) == null ? void 0 : R.length) - 1] : (x == null ? void 0 : x.name) + "." + ((L = (T = (j = L0(x)) == null ? void 0 : j.url) == null ? void 0 : T.split(".")) == null ? void 0 : L[((M = (A = (a2 = L0(x)) == null ? void 0 : a2.url) == null ? void 0 : A.split(".")) == null ? void 0 : M.length) - 1]), d.value = await p(x).finally(() => {
|
|
22274
22279
|
q.close();
|
|
22275
22280
|
});
|
|
22276
22281
|
} else {
|
|
@@ -22295,7 +22300,7 @@ const pS = /* @__PURE__ */ Q.inputHandler.of((n, e, t, i, s) => {
|
|
|
22295
22300
|
for (; V--; )
|
|
22296
22301
|
j[V] = R.charCodeAt(V);
|
|
22297
22302
|
return new Blob([j], { type: I });
|
|
22298
|
-
},
|
|
22303
|
+
}, D = async () => {
|
|
22299
22304
|
var R;
|
|
22300
22305
|
s.value = !0;
|
|
22301
22306
|
const x = (R = a.value) == null ? void 0 : R.map(async (V) => {
|
|
@@ -22310,13 +22315,13 @@ const pS = /* @__PURE__ */ Q.inputHandler.of((n, e, t, i, s) => {
|
|
|
22310
22315
|
}), C = await Promise.all(x);
|
|
22311
22316
|
let I = [];
|
|
22312
22317
|
C == null || C.map((V) => {
|
|
22313
|
-
var j, T, a2, A,
|
|
22318
|
+
var j, T, a2, A, M, L;
|
|
22314
22319
|
return I.push({
|
|
22315
22320
|
name: ((T = (j = V == null ? void 0 : V.data) == null ? void 0 : j.result) == null ? void 0 : T.fileName) ?? (V == null ? void 0 : V.name),
|
|
22316
22321
|
url: ((A = (a2 = V == null ? void 0 : V.data) == null ? void 0 : a2.result) == null ? void 0 : A.url) ?? (V == null ? void 0 : V.url)
|
|
22317
|
-
}), (L = (
|
|
22322
|
+
}), (L = (M = V == null ? void 0 : V.data) == null ? void 0 : M.result) == null ? void 0 : L.url;
|
|
22318
22323
|
}), B3.success("上传成功"), o.value = I, i("update:modelValue", I), i("change", I), a.value = [], h.value = !1, s.value = !1;
|
|
22319
|
-
},
|
|
22324
|
+
}, O = () => {
|
|
22320
22325
|
h.value = !1, a.value = o.value, u.value = o.value;
|
|
22321
22326
|
}, S = (x) => {
|
|
22322
22327
|
if (!x) return;
|
|
@@ -22349,7 +22354,7 @@ const pS = /* @__PURE__ */ Q.inputHandler.of((n, e, t, i, s) => {
|
|
|
22349
22354
|
}),
|
|
22350
22355
|
o2("div", ZS, [
|
|
22351
22356
|
(_(!0), E(_2, null, T2(o.value, (T) => {
|
|
22352
|
-
var a2, A,
|
|
22357
|
+
var a2, A, M, L, q, i2;
|
|
22353
22358
|
return _(), E("div", {
|
|
22354
22359
|
class: "upload-content-title",
|
|
22355
22360
|
key: T,
|
|
@@ -22358,7 +22363,7 @@ const pS = /* @__PURE__ */ Q.inputHandler.of((n, e, t, i, s) => {
|
|
|
22358
22363
|
o2("div", {
|
|
22359
22364
|
style: { width: "90%", overflow: "hidden", "text-overflow": "ellipsis", "white-space": "nowrap" },
|
|
22360
22365
|
title: T == null ? void 0 : T.name
|
|
22361
|
-
}, L2((A = (a2 = T == null ? void 0 : T.url) == null ? void 0 : a2.split(".")) != null && A[1] ? (T == null ? void 0 : T.name) + "." + ((i2 = (
|
|
22366
|
+
}, L2((A = (a2 = T == null ? void 0 : T.url) == null ? void 0 : a2.split(".")) != null && A[1] ? (T == null ? void 0 : T.name) + "." + ((i2 = (M = T == null ? void 0 : T.url) == null ? void 0 : M.split(".")) == null ? void 0 : i2[((q = (L = T == null ? void 0 : T.url) == null ? void 0 : L.split(".")) == null ? void 0 : q.length) - 1]) : T == null ? void 0 : T.name), 9, eC),
|
|
22362
22367
|
o2("div", tC, [
|
|
22363
22368
|
t2(I, {
|
|
22364
22369
|
class: "icon-blue",
|
|
@@ -22372,7 +22377,7 @@ const pS = /* @__PURE__ */ Q.inputHandler.of((n, e, t, i, s) => {
|
|
|
22372
22377
|
]),
|
|
22373
22378
|
t2(z4, {
|
|
22374
22379
|
visible: h.value,
|
|
22375
|
-
onBeforeDestroy:
|
|
22380
|
+
onBeforeDestroy: O,
|
|
22376
22381
|
title: "上传文件"
|
|
22377
22382
|
}, {
|
|
22378
22383
|
default: H(() => [
|
|
@@ -22404,10 +22409,10 @@ const pS = /* @__PURE__ */ Q.inputHandler.of((n, e, t, i, s) => {
|
|
|
22404
22409
|
], -1))
|
|
22405
22410
|
]),
|
|
22406
22411
|
file: H(({ file: T, index: a2 }) => {
|
|
22407
|
-
var A,
|
|
22412
|
+
var A, M, L, q;
|
|
22408
22413
|
return [
|
|
22409
22414
|
o2("div", iC, [
|
|
22410
|
-
o2("div", nC, L2((
|
|
22415
|
+
o2("div", nC, L2((M = (A = T == null ? void 0 : T.url) == null ? void 0 : A.split(".")) != null && M[1] ? (T == null ? void 0 : T.name) + "." + ((q = (L = T == null ? void 0 : T.url) == null ? void 0 : L.split(".")) == null ? void 0 : q[1]) : T == null ? void 0 : T.name), 1),
|
|
22411
22416
|
o2("div", sC, [
|
|
22412
22417
|
t2(I, {
|
|
22413
22418
|
class: "icon-blue",
|
|
@@ -22434,14 +22439,14 @@ const pS = /* @__PURE__ */ Q.inputHandler.of((n, e, t, i, s) => {
|
|
|
22434
22439
|
footer: H(() => [
|
|
22435
22440
|
o2("div", oC, [
|
|
22436
22441
|
t2(ge, {
|
|
22437
|
-
onClickTrigger:
|
|
22442
|
+
onClickTrigger: O,
|
|
22438
22443
|
id: "themeBorderButton",
|
|
22439
22444
|
disabled: s.value,
|
|
22440
22445
|
modelValue: "取消"
|
|
22441
22446
|
}, null, 8, ["disabled"]),
|
|
22442
22447
|
t2(ge, {
|
|
22443
22448
|
type: "primary",
|
|
22444
|
-
onClickTrigger:
|
|
22449
|
+
onClickTrigger: D,
|
|
22445
22450
|
id: "themeButton",
|
|
22446
22451
|
disabled: s.value,
|
|
22447
22452
|
modelValue: "确认"
|
|
@@ -22458,7 +22463,7 @@ const pS = /* @__PURE__ */ Q.inputHandler.of((n, e, t, i, s) => {
|
|
|
22458
22463
|
])) : c2("", !0);
|
|
22459
22464
|
};
|
|
22460
22465
|
}
|
|
22461
|
-
}, rC = /* @__PURE__ */ P2(lC, [["__scopeId", "data-v-57fd5f4a"]]), aC = /* @__PURE__ */
|
|
22466
|
+
}, rC = /* @__PURE__ */ P2(lC, [["__scopeId", "data-v-57fd5f4a"]]), aC = /* @__PURE__ */ J2({
|
|
22462
22467
|
__name: "index",
|
|
22463
22468
|
props: {
|
|
22464
22469
|
modelValue: {
|
|
@@ -22469,7 +22474,7 @@ const pS = /* @__PURE__ */ Q.inputHandler.of((n, e, t, i, s) => {
|
|
|
22469
22474
|
emits: ["update:modelValue", "change"],
|
|
22470
22475
|
setup(n, { emit: e }) {
|
|
22471
22476
|
const t = n, i = n2(() => "http://222.92.178.198:62001"), s = e, o = async (h) => {
|
|
22472
|
-
var g, m, v, y,
|
|
22477
|
+
var g, m, v, y, D;
|
|
22473
22478
|
const { file: c, onSuccess: d, onError: u } = h, f = new FormData();
|
|
22474
22479
|
f.append("file", c);
|
|
22475
22480
|
const p = await T6(f);
|
|
@@ -22477,7 +22482,7 @@ const pS = /* @__PURE__ */ Q.inputHandler.of((n, e, t, i, s) => {
|
|
|
22477
22482
|
name: c == null ? void 0 : c.name,
|
|
22478
22483
|
uid: c == null ? void 0 : c.uid,
|
|
22479
22484
|
id: (v = (m = p == null ? void 0 : p.data) == null ? void 0 : m.result) == null ? void 0 : v.id,
|
|
22480
|
-
url: (
|
|
22485
|
+
url: (D = (y = p == null ? void 0 : p.data) == null ? void 0 : y.result) == null ? void 0 : D.url
|
|
22481
22486
|
}]);
|
|
22482
22487
|
}, l = G([]);
|
|
22483
22488
|
q2(() => t == null ? void 0 : t.modelValue, (h) => {
|
|
@@ -22852,7 +22857,7 @@ const As = (n) => JSON.parse(JSON.stringify(n)), Es = {
|
|
|
22852
22857
|
// onBegin: (event) => {},
|
|
22853
22858
|
// onEnd: (event) => {},
|
|
22854
22859
|
};
|
|
22855
|
-
var gC = /* @__PURE__ */
|
|
22860
|
+
var gC = /* @__PURE__ */ J2({
|
|
22856
22861
|
name: "VueSignaturePad",
|
|
22857
22862
|
props: {
|
|
22858
22863
|
modelValue: {
|
|
@@ -22994,10 +22999,10 @@ var gC = /* @__PURE__ */ t0({
|
|
|
22994
22999
|
function y() {
|
|
22995
23000
|
return t.signaturePad.isEmpty();
|
|
22996
23001
|
}
|
|
22997
|
-
function
|
|
23002
|
+
function D() {
|
|
22998
23003
|
return o.value;
|
|
22999
23004
|
}
|
|
23000
|
-
function
|
|
23005
|
+
function O() {
|
|
23001
23006
|
return t.cacheImages = [], t.cacheImages;
|
|
23002
23007
|
}
|
|
23003
23008
|
function S() {
|
|
@@ -23030,8 +23035,8 @@ var gC = /* @__PURE__ */ t0({
|
|
|
23030
23035
|
lockSignaturePad: m,
|
|
23031
23036
|
openSignaturePad: v,
|
|
23032
23037
|
isEmpty: y,
|
|
23033
|
-
getPropImagesAndCacheImages:
|
|
23034
|
-
clearCacheImages:
|
|
23038
|
+
getPropImagesAndCacheImages: D,
|
|
23039
|
+
clearCacheImages: O,
|
|
23035
23040
|
clearSignature: S
|
|
23036
23041
|
};
|
|
23037
23042
|
},
|
|
@@ -23182,7 +23187,7 @@ const vC = { class: "signature-wrap" }, wC = { class: "signature-types" }, xC =
|
|
|
23182
23187
|
], 64);
|
|
23183
23188
|
};
|
|
23184
23189
|
}
|
|
23185
|
-
}, yC = /* @__PURE__ */ P2(_C, [["__scopeId", "data-v-e409734b"]]), SC = /* @__PURE__ */
|
|
23190
|
+
}, yC = /* @__PURE__ */ P2(_C, [["__scopeId", "data-v-e409734b"]]), SC = /* @__PURE__ */ J2({
|
|
23186
23191
|
__name: "index",
|
|
23187
23192
|
setup(n) {
|
|
23188
23193
|
const e = G(null), t = async (i) => {
|
|
@@ -23293,18 +23298,18 @@ const vC = { class: "signature-wrap" }, wC = { class: "signature-types" }, xC =
|
|
|
23293
23298
|
const p = /{\\pict[\s\S]+?({\\\*\\blipuid\s?[\da-fA-F]+)[\s}]*/, g = new RegExp("(?:(" + p.source + "))([\\da-fA-F\\s]+)\\}", "g"), m = f.match(g), v = [];
|
|
23294
23299
|
if (m)
|
|
23295
23300
|
for (const y of m) {
|
|
23296
|
-
let
|
|
23297
|
-
y.includes("\\pngblip") ?
|
|
23301
|
+
let D = !1;
|
|
23302
|
+
y.includes("\\pngblip") ? D = "image/png" : y.includes("\\jpegblip") && (D = "image/jpeg"), D && v.push({
|
|
23298
23303
|
hex: y.replace(p, "").replace(/[^\da-fA-F]/g, ""),
|
|
23299
|
-
type:
|
|
23304
|
+
type: D
|
|
23300
23305
|
});
|
|
23301
23306
|
}
|
|
23302
23307
|
return v;
|
|
23303
23308
|
}, c = (f) => btoa(f.match(/\w{2}/g).map((p) => String.fromCharCode(parseInt(p, 16))).join("")), d = (f, p = "file") => {
|
|
23304
|
-
let g = f.split(","), m = g[0].match(/:(.*?);/)[1], v = m.split("/")[1], y = atob(g[1]),
|
|
23305
|
-
for (;
|
|
23306
|
-
D
|
|
23307
|
-
return new File([
|
|
23309
|
+
let g = f.split(","), m = g[0].match(/:(.*?);/)[1], v = m.split("/")[1], y = atob(g[1]), D = y.length, O = new Uint8Array(D);
|
|
23310
|
+
for (; D--; )
|
|
23311
|
+
O[D] = y.charCodeAt(D);
|
|
23312
|
+
return new File([O], `${p}.${v}`, {
|
|
23308
23313
|
type: m
|
|
23309
23314
|
});
|
|
23310
23315
|
}, u = async (f, p) => {
|
|
@@ -23369,7 +23374,7 @@ const vC = { class: "signature-wrap" }, wC = { class: "signature-types" }, xC =
|
|
|
23369
23374
|
}, null, 8, ["src", "preview-src-list"]);
|
|
23370
23375
|
};
|
|
23371
23376
|
}
|
|
23372
|
-
}, MC = ["onClick"], TC = /* @__PURE__ */
|
|
23377
|
+
}, MC = ["onClick"], TC = /* @__PURE__ */ J2({
|
|
23373
23378
|
__name: "index",
|
|
23374
23379
|
props: {
|
|
23375
23380
|
options: { default: () => [] },
|
|
@@ -23437,7 +23442,7 @@ const vC = { class: "signature-wrap" }, wC = { class: "signature-types" }, xC =
|
|
|
23437
23442
|
}, 8, ["modelValue"]);
|
|
23438
23443
|
};
|
|
23439
23444
|
}
|
|
23440
|
-
}), zC = /* @__PURE__ */ P2(TC, [["__scopeId", "data-v-498cf54b"]]), PC = /* @__PURE__ */
|
|
23445
|
+
}), zC = /* @__PURE__ */ P2(TC, [["__scopeId", "data-v-498cf54b"]]), PC = /* @__PURE__ */ J2({
|
|
23441
23446
|
__name: "index",
|
|
23442
23447
|
props: {
|
|
23443
23448
|
value: String,
|
|
@@ -23503,7 +23508,7 @@ function gi(n) {
|
|
|
23503
23508
|
const AC = ["onDblclick"], EC = {
|
|
23504
23509
|
key: 1,
|
|
23505
23510
|
class: "tabs-label"
|
|
23506
|
-
}, BC = /* @__PURE__ */
|
|
23511
|
+
}, BC = /* @__PURE__ */ J2({
|
|
23507
23512
|
__name: "index",
|
|
23508
23513
|
props: {
|
|
23509
23514
|
tabsContents: {
|
|
@@ -23559,7 +23564,7 @@ const AC = ["onDblclick"], EC = {
|
|
|
23559
23564
|
v != null && v.value || (v == null ? void 0 : v.value) === "" ? (_(), F(s3(l(v == null ? void 0 : v.type)), {
|
|
23560
23565
|
key: 0,
|
|
23561
23566
|
modelValue: v.value,
|
|
23562
|
-
"onUpdate:modelValue": (
|
|
23567
|
+
"onUpdate:modelValue": (D) => v.value = D,
|
|
23563
23568
|
content: (v == null ? void 0 : v.contents) ?? []
|
|
23564
23569
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "content"])) : c2("", !0)
|
|
23565
23570
|
]))), 128))
|