@bytenew/bn-bus-ui 1.1.422 → 1.1.424
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/{assocTableSearch-VsqthLfz.js → assocTableSearch-C8Fbjcoj.js} +1 -1
- package/dist/bn-bus-ui.es.js +1 -1
- package/dist/bn-bus-ui.umd.js +14 -14
- package/dist/{chooseIPaasData-B6WpxBOb.js → chooseIPaasData-CZPXX_X0.js} +1 -1
- package/dist/{defaultSet-sET-VogQ.js → defaultSet-C-cw4OiQ.js} +1 -1
- package/dist/{formItemFooter-wEU-en69.js → formItemFooter-D8ZaJwV4.js} +1 -1
- package/dist/{funcExprDialog-BU6R8M5s.js → funcExprDialog-Dm6TNNnl.js} +1 -1
- package/dist/{index-Bv5FiojT.js → index-B9WaI4sO.js} +3 -3
- package/dist/{index-BGk2s4rO.js → index-BEEwe5nU.js} +3 -3
- package/dist/{index-CKLH4aLl.js → index-BL7aA9xR.js} +2 -2
- package/dist/{index-CetkR9d-.js → index-C0gQEapY.js} +2 -2
- package/dist/{index-DItHwH3c.js → index-C6cetivU.js} +2 -2
- package/dist/{index-Cidhd-jJ.js → index-CBE9YALu.js} +2 -2
- package/dist/{index-DzC7Bfw-.js → index-CepT1ysf.js} +1 -1
- package/dist/{index-Dvp9cTpE.js → index-CpICvBnF.js} +3 -3
- package/dist/{index-CnQaSkA-.js → index-CqDSQWKQ.js} +2 -2
- package/dist/{index-R6eNoq74.js → index-DDKPKT2M.js} +2 -2
- package/dist/{index-Dkg3LYgN.js → index-DNxffpsF.js} +1 -1
- package/dist/{index-BjRC2ruX.js → index-Dgi60wFT.js} +2 -2
- package/dist/{index-BuYExPjE.js → index-OCeVbvJD.js} +2 -2
- package/dist/{index-DWzrdTW1.js → index-ewef4hsB.js} +1 -1
- package/dist/{index-2tyM4uoz.js → index-gu6qPQW6.js} +2 -2
- package/dist/{index-9PBPa5pV.js → index-uSsx5ZNP.js} +2 -2
- package/dist/{index-BaQARvn0.js → index-xATmvM0d.js} +2 -2
- package/dist/{install-Bw4MSuRH.js → install-DvZ_zqVC.js} +666 -656
- package/dist/install.css +1 -1
- package/dist/{setOption-lGPuCRp4.js → setOption-Cv02pow7.js} +1 -1
- package/dist/{setRelationOption-DMvXz0ld.js → setRelationOption-BOdqgiKP.js} +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { resolveComponent as P, openBlock as b, createElementBlock as F, normalizeClass as Me, Fragment as oe, renderList as me, createVNode as L, withCtx as O, withDirectives as De, createBlock as R, vShow as We, createElementVNode as y, normalizeStyle as bt, createCommentVNode as
|
|
2
|
-
import { isEmpty as
|
|
1
|
+
import { resolveComponent as P, openBlock as b, createElementBlock as F, normalizeClass as Me, Fragment as oe, renderList as me, createVNode as L, withCtx as O, withDirectives as De, createBlock as R, vShow as We, createElementVNode as y, normalizeStyle as bt, createCommentVNode as _, toDisplayString as G, renderSlot as dt, createSlots as Zr, Transition as wd, withModifiers as Tn, resolveDynamicComponent as $r, createTextVNode as q, resolveDirective as Ft, Teleport as kd, defineAsyncComponent as ce, mergeProps as Wl } from "vue";
|
|
2
|
+
import { isEmpty as Ze, debounce as Wt, cloneDeep as he, toLower as Xr, includes as xd, map as Td, last as ca, get as xn } from "lodash";
|
|
3
3
|
const ie = (n, i) => {
|
|
4
4
|
const s = n.__vccOpts || n;
|
|
5
5
|
for (const [c, u] of i)
|
|
@@ -210,11 +210,11 @@ const Pd = /* @__PURE__ */ ie(Id, [["render", Ld], ["__scopeId", "data-v-0e9cc2d
|
|
|
210
210
|
this.disableFold || this.bnMenus.toggleSubMenu(this.menu);
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
|
-
}, Md = { class: "BnMenus-sub-title-inner" }, Fd = ["title"], Ad = { class: "BnMenus-item-folder" }, Bd = { class: "BnMenus-sub-list" }, Vd = ["title"], Ed = { class: "BnMenus-item-text" },
|
|
213
|
+
}, Md = { class: "BnMenus-sub-title-inner" }, Fd = ["title"], Ad = { class: "BnMenus-item-folder" }, Bd = { class: "BnMenus-sub-list" }, Vd = ["title"], Ed = { class: "BnMenus-item-text" }, _d = {
|
|
214
214
|
key: 1,
|
|
215
215
|
class: "BnMenus-item-stick bnUIcon bnUIcon-stick"
|
|
216
216
|
};
|
|
217
|
-
function
|
|
217
|
+
function Nd(n, i, s, c, u, d) {
|
|
218
218
|
var k, x, C, T;
|
|
219
219
|
const g = P("menu-item", !0);
|
|
220
220
|
return d.hasChildren ? (b(), F("div", {
|
|
@@ -234,7 +234,7 @@ function _d(n, i, s, c, u, d) {
|
|
|
234
234
|
d.menuIcon ? (b(), F("span", {
|
|
235
235
|
key: 0,
|
|
236
236
|
class: Me(["BnMenus-item-icon", d.menuIcon])
|
|
237
|
-
}, null, 2)) :
|
|
237
|
+
}, null, 2)) : _("", !0),
|
|
238
238
|
y("span", Ad, G(s.menu.title || ((x = s.menu.meta) == null ? void 0 : x.title)), 1)
|
|
239
239
|
], 8, Fd),
|
|
240
240
|
d.disableFold ? (b(), F("span", {
|
|
@@ -273,13 +273,13 @@ function _d(n, i, s, c, u, d) {
|
|
|
273
273
|
d.menuIcon ? (b(), F("span", {
|
|
274
274
|
key: 0,
|
|
275
275
|
class: Me(["BnMenus-item-icon", d.menuIcon])
|
|
276
|
-
}, null, 2)) :
|
|
276
|
+
}, null, 2)) : _("", !0),
|
|
277
277
|
y("span", Ed, G(s.menu.title || ((T = s.menu.meta) == null ? void 0 : T.title)), 1),
|
|
278
|
-
d.active ? (b(), F("span",
|
|
278
|
+
d.active ? (b(), F("span", _d)) : _("", !0)
|
|
279
279
|
], 8, Vd)
|
|
280
280
|
], 6));
|
|
281
281
|
}
|
|
282
|
-
const Hd = /* @__PURE__ */ ie(Od, [["render",
|
|
282
|
+
const Hd = /* @__PURE__ */ ie(Od, [["render", Nd], ["__scopeId", "data-v-6544baca"]]), ia = [
|
|
283
283
|
"#1890ff",
|
|
284
284
|
// 蓝
|
|
285
285
|
"#4f46e5",
|
|
@@ -417,7 +417,7 @@ const Hd = /* @__PURE__ */ ie(Od, [["render", _d], ["__scopeId", "data-v-6544bac
|
|
|
417
417
|
*/
|
|
418
418
|
isRouteMatch(n, i) {
|
|
419
419
|
if (n.name !== i.name) return !1;
|
|
420
|
-
const s = i.params || {}, c = i.query || {}, u =
|
|
420
|
+
const s = i.params || {}, c = i.query || {}, u = !Ze(n.params), d = !Ze(n.query), g = n.id != null && n.id !== "", k = !Ze(s), x = !Ze(c);
|
|
421
421
|
if (u) {
|
|
422
422
|
if (!this.matchRouteRecord(n.params, s)) return !1;
|
|
423
423
|
} else if (k)
|
|
@@ -437,7 +437,7 @@ const Hd = /* @__PURE__ */ ie(Od, [["render", _d], ["__scopeId", "data-v-6544bac
|
|
|
437
437
|
* @returns {Boolean}
|
|
438
438
|
*/
|
|
439
439
|
hasRouteIdentity(n) {
|
|
440
|
-
return n.id != null && n.id !== "" ||
|
|
440
|
+
return n.id != null && n.id !== "" || !Ze(n.query) || !Ze(n.params);
|
|
441
441
|
},
|
|
442
442
|
/**
|
|
443
443
|
* 判断菜单项是否处于选中高亮状态
|
|
@@ -899,7 +899,7 @@ const Gd = /* @__PURE__ */ ie(zd, [["render", Xd], ["__scopeId", "data-v-d363a28
|
|
|
899
899
|
// select的value
|
|
900
900
|
val: {
|
|
901
901
|
get() {
|
|
902
|
-
return this.labelInValue &&
|
|
902
|
+
return this.labelInValue && Ze(this.modelValue) ? null : this.multiple && !Array.isArray(this.modelValue) ? [] : this.modelValue;
|
|
903
903
|
},
|
|
904
904
|
set(n) {
|
|
905
905
|
if (this.labelInValue)
|
|
@@ -927,7 +927,7 @@ const Gd = /* @__PURE__ */ ie(zd, [["render", Xd], ["__scopeId", "data-v-d363a28
|
|
|
927
927
|
// 隐藏展示的下拉列表
|
|
928
928
|
temporaryOption: {
|
|
929
929
|
get() {
|
|
930
|
-
if (
|
|
930
|
+
if (Ze(this.modelValue))
|
|
931
931
|
return [];
|
|
932
932
|
if (this.labelInValue)
|
|
933
933
|
return (Array.isArray(this.modelValue) ? this.modelValue : [this.modelValue]).filter((i) => !this.optionList.some(
|
|
@@ -1936,7 +1936,7 @@ const Vf = /* @__PURE__ */ ie(Af, [["render", Bf]]), Ef = {
|
|
|
1936
1936
|
}
|
|
1937
1937
|
}
|
|
1938
1938
|
};
|
|
1939
|
-
function
|
|
1939
|
+
function _f(n, i, s, c, u, d) {
|
|
1940
1940
|
return b(), R($r(d.checkFilter()), {
|
|
1941
1941
|
modelValue: d.val,
|
|
1942
1942
|
"onUpdate:modelValue": i[0] || (i[0] = (g) => d.val = g),
|
|
@@ -1948,7 +1948,7 @@ function Nf(n, i, s, c, u, d) {
|
|
|
1948
1948
|
postData: s.columnInfo.postData
|
|
1949
1949
|
}, null, 8, ["modelValue", "optionProps", "columnInfo", "postFunc", "otherColumns", "pathUrl", "postData"]);
|
|
1950
1950
|
}
|
|
1951
|
-
const ha = /* @__PURE__ */ ie(Ef, [["render",
|
|
1951
|
+
const ha = /* @__PURE__ */ ie(Ef, [["render", _f]]), Nf = {
|
|
1952
1952
|
name: "BnAdvancedFilter",
|
|
1953
1953
|
components: { BnCondVal: ha },
|
|
1954
1954
|
props: {
|
|
@@ -2182,7 +2182,7 @@ function jf(n, i, s, c, u, d) {
|
|
|
2182
2182
|
options: d.searchOptions,
|
|
2183
2183
|
labelInValue: !1,
|
|
2184
2184
|
canUncheck: !1
|
|
2185
|
-
}, null, 8, ["onChange", "modelValue", "options"])) :
|
|
2185
|
+
}, null, 8, ["onChange", "modelValue", "options"])) : _("", !0)
|
|
2186
2186
|
], 2),
|
|
2187
2187
|
s.allowDel ? (b(), F("div", {
|
|
2188
2188
|
key: 0,
|
|
@@ -2190,7 +2190,7 @@ function jf(n, i, s, c, u, d) {
|
|
|
2190
2190
|
onClick: i[2] || (i[2] = (...x) => d.del && d.del(...x))
|
|
2191
2191
|
}, [...i[4] || (i[4] = [
|
|
2192
2192
|
y("span", { class: "bnUIcon bnUIcon-delete" }, null, -1)
|
|
2193
|
-
])])) :
|
|
2193
|
+
])])) : _("", !0)
|
|
2194
2194
|
]),
|
|
2195
2195
|
y("div", Uf, [
|
|
2196
2196
|
L(k, {
|
|
@@ -2204,7 +2204,7 @@ function jf(n, i, s, c, u, d) {
|
|
|
2204
2204
|
])
|
|
2205
2205
|
]);
|
|
2206
2206
|
}
|
|
2207
|
-
const Wf = /* @__PURE__ */ ie(
|
|
2207
|
+
const Wf = /* @__PURE__ */ ie(Nf, [["render", jf], ["__scopeId", "data-v-24032be0"]]), Kf = {
|
|
2208
2208
|
name: "BnFilterView",
|
|
2209
2209
|
props: {
|
|
2210
2210
|
conditions: {
|
|
@@ -2254,7 +2254,7 @@ function qf(n, i, s, c, u, d) {
|
|
|
2254
2254
|
class: "search-tag"
|
|
2255
2255
|
}, [
|
|
2256
2256
|
y("span", Yf, G(d.formatDisplay(g)), 1),
|
|
2257
|
-
s.notDelCodes.includes(g.columnCode) ?
|
|
2257
|
+
s.notDelCodes.includes(g.columnCode) ? _("", !0) : (b(), F("span", {
|
|
2258
2258
|
key: 0,
|
|
2259
2259
|
class: "search-tag-close",
|
|
2260
2260
|
onClick: (x) => d.handleClose(k)
|
|
@@ -2558,7 +2558,7 @@ function nc(n, i, s, c, u, d) {
|
|
|
2558
2558
|
class: "bnChecked-label",
|
|
2559
2559
|
style: bt(s.labelStyle),
|
|
2560
2560
|
title: d.title
|
|
2561
|
-
}, G(d.title), 13, ic)) :
|
|
2561
|
+
}, G(d.title), 13, ic)) : _("", !0)
|
|
2562
2562
|
], !0)
|
|
2563
2563
|
], 2);
|
|
2564
2564
|
}
|
|
@@ -3032,7 +3032,7 @@ function Ec(n, i, s, c, u, d) {
|
|
|
3032
3032
|
y("div", Cc, [
|
|
3033
3033
|
i[6] || (i[6] = y("span", { class: "bnOrder-info-title" }, "昵称:", -1)),
|
|
3034
3034
|
y("span", wc, G(u.orderData.CRMTRADE.buyerNick.slice(0, 10)), 1),
|
|
3035
|
-
u.decryptIs.includes("buyerNick") ?
|
|
3035
|
+
u.decryptIs.includes("buyerNick") ? _("", !0) : (b(), F("span", {
|
|
3036
3036
|
key: 0,
|
|
3037
3037
|
class: "bnUIcon bnUIcon-openLock w-color-blue w-cursor-pointer",
|
|
3038
3038
|
onClick: i[1] || (i[1] = (H) => d.decryptData("buyerNick"))
|
|
@@ -3047,7 +3047,7 @@ function Ec(n, i, s, c, u, d) {
|
|
|
3047
3047
|
key: U
|
|
3048
3048
|
}, [
|
|
3049
3049
|
y("span", null, G(u.orderData.CRMTRADE[H]), 1),
|
|
3050
|
-
u.decryptIs.includes(H) ?
|
|
3050
|
+
u.decryptIs.includes(H) ? _("", !0) : (b(), F("span", {
|
|
3051
3051
|
key: 0,
|
|
3052
3052
|
class: "bnUIcon bnUIcon-openLock w-color-blue w-cursor-pointer",
|
|
3053
3053
|
onClick: (se) => d.decryptData(H)
|
|
@@ -3114,7 +3114,7 @@ function Ec(n, i, s, c, u, d) {
|
|
|
3114
3114
|
u.orderData.CRMTRADE.sellerFlag && d.sellerRemarksColor ? (b(), F("span", {
|
|
3115
3115
|
key: 0,
|
|
3116
3116
|
class: Me(["bnUIcon bnUIcon-flag", [`flag-color-${d.sellerRemarksColor}`]])
|
|
3117
|
-
}, null, 2)) :
|
|
3117
|
+
}, null, 2)) : _("", !0),
|
|
3118
3118
|
y("span", Vc, G(u.orderData.CRMTRADE.sellerMemo), 1),
|
|
3119
3119
|
y("span", {
|
|
3120
3120
|
class: "w-color-blue w-cursor-pointer w-font14",
|
|
@@ -3125,10 +3125,10 @@ function Ec(n, i, s, c, u, d) {
|
|
|
3125
3125
|
];
|
|
3126
3126
|
}),
|
|
3127
3127
|
_: 1
|
|
3128
|
-
})) :
|
|
3128
|
+
})) : _("", !0)
|
|
3129
3129
|
]);
|
|
3130
3130
|
}
|
|
3131
|
-
const
|
|
3131
|
+
const _c = /* @__PURE__ */ ie(cc, [["render", Ec], ["__scopeId", "data-v-88cfaf09"]]), Nc = {
|
|
3132
3132
|
name: "BnDrop",
|
|
3133
3133
|
props: {
|
|
3134
3134
|
//最终选中的value
|
|
@@ -3555,7 +3555,7 @@ function Zc(n, i, s, c, u, d) {
|
|
|
3555
3555
|
key: 2,
|
|
3556
3556
|
class: "bnUIcon bnUIcon-clear bnDrop-select-clear",
|
|
3557
3557
|
onClick: i[0] || (i[0] = Tn((...B) => d.clear && d.clear(...B), ["stop"]))
|
|
3558
|
-
})) :
|
|
3558
|
+
})) : _("", !0)
|
|
3559
3559
|
])),
|
|
3560
3560
|
De(y("span", jc, null, 512), [
|
|
3561
3561
|
[T, u.loading]
|
|
@@ -3597,13 +3597,13 @@ function Zc(n, i, s, c, u, d) {
|
|
|
3597
3597
|
stop: "",
|
|
3598
3598
|
"true-data": B[s.optionProps.value],
|
|
3599
3599
|
"is-checked": d.isChecked
|
|
3600
|
-
}, null, 8, ["modelValue", "true-data", "is-checked"])) :
|
|
3600
|
+
}, null, 8, ["modelValue", "true-data", "is-checked"])) : _("", !0),
|
|
3601
3601
|
y("span", {
|
|
3602
3602
|
title: B[s.optionProps.label]
|
|
3603
3603
|
}, G(B[s.optionProps.label]), 9, Kc)
|
|
3604
3604
|
], 8, Wc))), 128)),
|
|
3605
|
-
d.optionList.length == 0 && !u.loading ? (b(), F("div", Xc, G(s.noDataText), 1)) :
|
|
3606
|
-
u.loading ? (b(), F("div", Gc, "加载中")) :
|
|
3605
|
+
d.optionList.length == 0 && !u.loading ? (b(), F("div", Xc, G(s.noDataText), 1)) : _("", !0),
|
|
3606
|
+
u.loading ? (b(), F("div", Gc, "加载中")) : _("", !0)
|
|
3607
3607
|
]),
|
|
3608
3608
|
_: 1
|
|
3609
3609
|
}, 8, ["onEndReached"]),
|
|
@@ -3621,14 +3621,14 @@ function Zc(n, i, s, c, u, d) {
|
|
|
3621
3621
|
]),
|
|
3622
3622
|
_: 1
|
|
3623
3623
|
}, 8, ["is-checked", "onClick"])
|
|
3624
|
-
])) :
|
|
3624
|
+
])) : _("", !0),
|
|
3625
3625
|
dt(n.$slots, "dropdown-bottom", {}, void 0, !0)
|
|
3626
3626
|
], 4)
|
|
3627
3627
|
]),
|
|
3628
3628
|
_: 3
|
|
3629
3629
|
}, 8, ["placement", "onShow", "disabled"]);
|
|
3630
3630
|
}
|
|
3631
|
-
const $c = /* @__PURE__ */ ie(
|
|
3631
|
+
const $c = /* @__PURE__ */ ie(Nc, [["render", Zc], ["__scopeId", "data-v-8865344c"]]), eh = {
|
|
3632
3632
|
data() {
|
|
3633
3633
|
return {
|
|
3634
3634
|
url: "",
|
|
@@ -3665,7 +3665,7 @@ function lh(n, i, s, c, u, d) {
|
|
|
3665
3665
|
autoplay: ""
|
|
3666
3666
|
}, null, 8, nh)
|
|
3667
3667
|
])
|
|
3668
|
-
])) :
|
|
3668
|
+
])) : _("", !0)
|
|
3669
3669
|
]);
|
|
3670
3670
|
}
|
|
3671
3671
|
const rh = /* @__PURE__ */ ie(eh, [["render", lh], ["__scopeId", "data-v-b9506480"]]), oh = {
|
|
@@ -3715,7 +3715,7 @@ function ph(n, i, s, c, u, d) {
|
|
|
3715
3715
|
onClick: i[0] || (i[0] = (g) => n.$emit("lookFile", s.file)),
|
|
3716
3716
|
title: s.file.title
|
|
3717
3717
|
}, G(s.file.title), 9, uh),
|
|
3718
|
-
s.showSize ? (b(), F("div", dh, G(d.returnSizeText(s.file.size)), 1)) :
|
|
3718
|
+
s.showSize ? (b(), F("div", dh, G(d.returnSizeText(s.file.size)), 1)) : _("", !0)
|
|
3719
3719
|
]),
|
|
3720
3720
|
y("div", fh, [
|
|
3721
3721
|
s.file.id != -1 ? (b(), F("div", ch, [
|
|
@@ -3726,14 +3726,14 @@ function ph(n, i, s, c, u, d) {
|
|
|
3726
3726
|
}, [...i[2] || (i[2] = [
|
|
3727
3727
|
y("span", { class: "bnUIcon bnUIcon-download" }, null, -1)
|
|
3728
3728
|
])], 8, hh)
|
|
3729
|
-
])) :
|
|
3729
|
+
])) : _("", !0),
|
|
3730
3730
|
s.isDel && !s.disabled ? (b(), F("div", {
|
|
3731
3731
|
key: 1,
|
|
3732
3732
|
class: "fileDetail-btn-item",
|
|
3733
3733
|
onClick: i[1] || (i[1] = (g) => n.$emit("delFile", s.index))
|
|
3734
3734
|
}, [...i[3] || (i[3] = [
|
|
3735
3735
|
y("span", { class: "bnUIcon bnUIcon-delete w-font-more" }, null, -1)
|
|
3736
|
-
])])) :
|
|
3736
|
+
])])) : _("", !0)
|
|
3737
3737
|
])
|
|
3738
3738
|
]);
|
|
3739
3739
|
}
|
|
@@ -3898,7 +3898,7 @@ function kh(n, i, s, c, u, d) {
|
|
|
3898
3898
|
style: { width: "180px", height: "180px" },
|
|
3899
3899
|
src: d.getFileImg(T)
|
|
3900
3900
|
}, null, 8, Ch)
|
|
3901
|
-
])) :
|
|
3901
|
+
])) : _("", !0),
|
|
3902
3902
|
s.isMini ? (b(), R(x, {
|
|
3903
3903
|
key: 1,
|
|
3904
3904
|
file: T,
|
|
@@ -3909,12 +3909,12 @@ function kh(n, i, s, c, u, d) {
|
|
|
3909
3909
|
showSize: s.showSize,
|
|
3910
3910
|
disabled: s.disabled,
|
|
3911
3911
|
downType: s.downType
|
|
3912
|
-
}, null, 8, ["file", "index", "onLookFile", "onDelFile", "isDel", "showSize", "disabled", "downType"])) :
|
|
3912
|
+
}, null, 8, ["file", "index", "onLookFile", "onDelFile", "isDel", "showSize", "disabled", "downType"])) : _("", !0)
|
|
3913
3913
|
]),
|
|
3914
3914
|
_: 2
|
|
3915
3915
|
}, 1032, ["disabled"])
|
|
3916
3916
|
], 8, yh),
|
|
3917
|
-
s.isMini ?
|
|
3917
|
+
s.isMini ? _("", !0) : (b(), R(x, {
|
|
3918
3918
|
key: 0,
|
|
3919
3919
|
style: bt(d.detailStyle),
|
|
3920
3920
|
file: T,
|
|
@@ -4151,7 +4151,7 @@ function Ph(n, i, s, c, u, d) {
|
|
|
4151
4151
|
class: "BnRadio-label",
|
|
4152
4152
|
style: bt(s.labelStyle),
|
|
4153
4153
|
title: d.title
|
|
4154
|
-
}, G(d.title), 13, Lh)) :
|
|
4154
|
+
}, G(d.title), 13, Lh)) : _("", !0)
|
|
4155
4155
|
], !0)
|
|
4156
4156
|
], 2);
|
|
4157
4157
|
}
|
|
@@ -4460,7 +4460,7 @@ const Ah = /* @__PURE__ */ ie(Mh, [["render", Fh]]), Bh = {
|
|
|
4460
4460
|
{ id: "4", title: "未来x天" }
|
|
4461
4461
|
//部分支持 {id: '6', title: '过去x时'}, {id: '7', title: '未来x时'}, {id: '8', title: '过去x月'}, {id: '9', title: '未来x月'},
|
|
4462
4462
|
]
|
|
4463
|
-
},
|
|
4463
|
+
}, _h = {
|
|
4464
4464
|
name: "BnCondition",
|
|
4465
4465
|
components: { BnCondVal: ha },
|
|
4466
4466
|
props: {
|
|
@@ -4802,7 +4802,7 @@ const Ah = /* @__PURE__ */ ie(Mh, [["render", Fh]]), Bh = {
|
|
|
4802
4802
|
});
|
|
4803
4803
|
}
|
|
4804
4804
|
}
|
|
4805
|
-
},
|
|
4805
|
+
}, Nh = { class: "bnCon clearFix" }, Hh = { class: "bnCon-setting" }, zh = { class: "bnCon-setting-left" }, Rh = ["title"], Uh = { class: "bnCon-condition" }, jh = {
|
|
4806
4806
|
key: 0,
|
|
4807
4807
|
class: "bnCon-condition-valType"
|
|
4808
4808
|
}, Wh = {
|
|
@@ -4811,7 +4811,7 @@ const Ah = /* @__PURE__ */ ie(Mh, [["render", Fh]]), Bh = {
|
|
|
4811
4811
|
}, Kh = { class: "bnCon-condition-valSet" };
|
|
4812
4812
|
function Xh(n, i, s, c, u, d) {
|
|
4813
4813
|
const g = P("BnDrop"), k = P("el-option"), x = P("el-select"), C = P("BnCondVal");
|
|
4814
|
-
return b(), F("div",
|
|
4814
|
+
return b(), F("div", Nh, [
|
|
4815
4815
|
y("div", Hh, [
|
|
4816
4816
|
y("div", zh, [
|
|
4817
4817
|
dt(n.$slots, "selectComponent", {}, () => [
|
|
@@ -4844,7 +4844,7 @@ function Xh(n, i, s, c, u, d) {
|
|
|
4844
4844
|
onClick: i[2] || (i[2] = (...T) => d.del && d.del(...T))
|
|
4845
4845
|
}, [...i[6] || (i[6] = [
|
|
4846
4846
|
y("span", { class: "bnUIcon bnUIcon-delete" }, null, -1)
|
|
4847
|
-
])])) :
|
|
4847
|
+
])])) : _("", !0)
|
|
4848
4848
|
]),
|
|
4849
4849
|
y("div", Uh, [
|
|
4850
4850
|
s.allowValueType ? (b(), F("div", jh, [
|
|
@@ -4864,7 +4864,7 @@ function Xh(n, i, s, c, u, d) {
|
|
|
4864
4864
|
]),
|
|
4865
4865
|
_: 1
|
|
4866
4866
|
}, 8, ["modelValue", "disabled", "onChange"])
|
|
4867
|
-
])) :
|
|
4867
|
+
])) : _("", !0),
|
|
4868
4868
|
d.ruleVal.behaviorType == 7 && s.allowSubType ? (b(), F("div", Wh, [
|
|
4869
4869
|
L(x, {
|
|
4870
4870
|
modelValue: d.ruleVal[s.optionProps.subType],
|
|
@@ -4882,7 +4882,7 @@ function Xh(n, i, s, c, u, d) {
|
|
|
4882
4882
|
]),
|
|
4883
4883
|
_: 1
|
|
4884
4884
|
}, 8, ["modelValue", "disabled", "onChange"])
|
|
4885
|
-
])) :
|
|
4885
|
+
])) : _("", !0),
|
|
4886
4886
|
y("div", Kh, [
|
|
4887
4887
|
L(C, {
|
|
4888
4888
|
modelValue: d.ruleVal,
|
|
@@ -4899,7 +4899,7 @@ function Xh(n, i, s, c, u, d) {
|
|
|
4899
4899
|
])
|
|
4900
4900
|
]);
|
|
4901
4901
|
}
|
|
4902
|
-
const Gh = /* @__PURE__ */ ie(
|
|
4902
|
+
const Gh = /* @__PURE__ */ ie(_h, [["render", Xh], ["__scopeId", "data-v-acf59911"]]), Ul = {
|
|
4903
4903
|
1: "stringForm",
|
|
4904
4904
|
// 单行文本输入框
|
|
4905
4905
|
2: "numberForm",
|
|
@@ -4976,7 +4976,7 @@ function Jh(n) {
|
|
|
4976
4976
|
if ([3, 4, 6].includes(g.behaviorType) && k && x && x != "[]") {
|
|
4977
4977
|
let C = JSON.parse(x);
|
|
4978
4978
|
if (!s.defaultColumn[k]) {
|
|
4979
|
-
let B = n.find((H) => H.columnCode == k), W = Array.isArray(B.value) &&
|
|
4979
|
+
let B = n.find((H) => H.columnCode == k), W = Array.isArray(B.value) && !Ze(B.value) ? { code: ca(B.value), value: B.value } : xn(B, "value.code") ? B.value : {};
|
|
4980
4980
|
s.defaultColumn[k] = W;
|
|
4981
4981
|
}
|
|
4982
4982
|
s.column = Array.from(/* @__PURE__ */ new Set([k, ...s.column])), s.setColumn[k] || (s.setColumn[k] = {}), s.setColumn[k][g.columnCode] = C;
|
|
@@ -5088,7 +5088,7 @@ function va(n, i) {
|
|
|
5088
5088
|
case 10:
|
|
5089
5089
|
//附件
|
|
5090
5090
|
case 7: {
|
|
5091
|
-
k &&
|
|
5091
|
+
k && Ze(n.value[x][u.columnCode]) && (C = !0, g = n.name + " 的第" + (parseInt(x) + 1) + "条,没有给 " + u.name + " 填值");
|
|
5092
5092
|
break;
|
|
5093
5093
|
}
|
|
5094
5094
|
case 2: {
|
|
@@ -5505,7 +5505,7 @@ function Cp(n, i, s, c, u, d) {
|
|
|
5505
5505
|
])]),
|
|
5506
5506
|
_: 1
|
|
5507
5507
|
}))
|
|
5508
|
-
])) :
|
|
5508
|
+
])) : _("", !0),
|
|
5509
5509
|
L(C, {
|
|
5510
5510
|
ref: "packageTable",
|
|
5511
5511
|
border: "",
|
|
@@ -5557,13 +5557,13 @@ function Cp(n, i, s, c, u, d) {
|
|
|
5557
5557
|
"show-overflow": "title"
|
|
5558
5558
|
}, {
|
|
5559
5559
|
default: O((U) => [
|
|
5560
|
-
W.behaviorType != 10 ? (b(), F("span", vp, G(d.getTitle(W, U.row[W.columnCode])), 1)) :
|
|
5560
|
+
W.behaviorType != 10 ? (b(), F("span", vp, G(d.getTitle(W, U.row[W.columnCode])), 1)) : _("", !0),
|
|
5561
5561
|
W.behaviorType == 10 && U.row[W.columnCode] ? (b(), R(x, {
|
|
5562
5562
|
key: 1,
|
|
5563
5563
|
"file-list": U.row[W.columnCode],
|
|
5564
5564
|
"is-mini": !0,
|
|
5565
5565
|
"no-warp": !0
|
|
5566
|
-
}, null, 8, ["file-list"])) :
|
|
5566
|
+
}, null, 8, ["file-list"])) : _("", !0)
|
|
5567
5567
|
]),
|
|
5568
5568
|
_: 2
|
|
5569
5569
|
}, 1032, ["title"]))), 128))
|
|
@@ -5573,7 +5573,7 @@ function Cp(n, i, s, c, u, d) {
|
|
|
5573
5573
|
])
|
|
5574
5574
|
]),
|
|
5575
5575
|
_: 1
|
|
5576
|
-
})) :
|
|
5576
|
+
})) : _("", !0),
|
|
5577
5577
|
(b(!0), F(oe, null, me(u.packageColumns.filter((B) => {
|
|
5578
5578
|
var W;
|
|
5579
5579
|
return B.behaviorType != 13 && ((W = B.extraInfo) == null ? void 0 : W.isSelectShow) !== 1;
|
|
@@ -5585,13 +5585,13 @@ function Cp(n, i, s, c, u, d) {
|
|
|
5585
5585
|
"show-overflow": "title"
|
|
5586
5586
|
}, {
|
|
5587
5587
|
default: O((H) => [
|
|
5588
|
-
B.behaviorType != 10 ? (b(), F("span", gp, G(d.getTitle(B, H.row[B.columnCode])), 1)) :
|
|
5588
|
+
B.behaviorType != 10 ? (b(), F("span", gp, G(d.getTitle(B, H.row[B.columnCode])), 1)) : _("", !0),
|
|
5589
5589
|
B.behaviorType == 10 && H.row[B.columnCode] ? (b(), R(x, {
|
|
5590
5590
|
key: 1,
|
|
5591
5591
|
"file-list": H.row[B.columnCode],
|
|
5592
5592
|
"is-mini": !0,
|
|
5593
5593
|
"no-warp": !0
|
|
5594
|
-
}, null, 8, ["file-list"])) :
|
|
5594
|
+
}, null, 8, ["file-list"])) : _("", !0)
|
|
5595
5595
|
]),
|
|
5596
5596
|
_: 2
|
|
5597
5597
|
}, 1032, ["title"]))), 128))
|
|
@@ -5725,13 +5725,13 @@ function Dp(n, i, s, c, u, d) {
|
|
|
5725
5725
|
"show-footer-overflow": ""
|
|
5726
5726
|
}, {
|
|
5727
5727
|
default: O((H) => [
|
|
5728
|
-
B.behaviorType != 10 ? (b(), F("span", Tp, G(d.getTitle(B, H.row[B.columnCode])), 1)) :
|
|
5728
|
+
B.behaviorType != 10 ? (b(), F("span", Tp, G(d.getTitle(B, H.row[B.columnCode])), 1)) : _("", !0),
|
|
5729
5729
|
B.behaviorType == 10 && H.row[B.columnCode] ? (b(), R(k, {
|
|
5730
5730
|
key: 1,
|
|
5731
5731
|
"file-list": H.row[B.columnCode],
|
|
5732
5732
|
"is-mini": !0,
|
|
5733
5733
|
"no-warp": !0
|
|
5734
|
-
}, null, 8, ["file-list"])) :
|
|
5734
|
+
}, null, 8, ["file-list"])) : _("", !0)
|
|
5735
5735
|
]),
|
|
5736
5736
|
_: 2
|
|
5737
5737
|
}, 1032, ["title"]))), 128))
|
|
@@ -5946,7 +5946,7 @@ function Bp(n, i, s, c, u, d) {
|
|
|
5946
5946
|
"show-header-overflow": "title",
|
|
5947
5947
|
"show-overflow": "title",
|
|
5948
5948
|
"show-footer-overflow": ""
|
|
5949
|
-
}, null, 8, ["title", "field"])) :
|
|
5949
|
+
}, null, 8, ["title", "field"])) : _("", !0),
|
|
5950
5950
|
H.behaviorType == 10 ? (b(), R(g, {
|
|
5951
5951
|
key: U,
|
|
5952
5952
|
title: H.name,
|
|
@@ -5958,10 +5958,10 @@ function Bp(n, i, s, c, u, d) {
|
|
|
5958
5958
|
"file-list": se.row.inside[H.columnCode],
|
|
5959
5959
|
"is-mini": !0,
|
|
5960
5960
|
"no-warp": !0
|
|
5961
|
-
}, null, 8, ["file-list"])) :
|
|
5961
|
+
}, null, 8, ["file-list"])) : _("", !0)
|
|
5962
5962
|
]),
|
|
5963
5963
|
_: 2
|
|
5964
|
-
}, 1032, ["title"])) :
|
|
5964
|
+
}, 1032, ["title"])) : _("", !0)
|
|
5965
5965
|
], 64))), 256))
|
|
5966
5966
|
]),
|
|
5967
5967
|
_: 1
|
|
@@ -6003,7 +6003,7 @@ function Bp(n, i, s, c, u, d) {
|
|
|
6003
6003
|
"show-header-overflow": "title",
|
|
6004
6004
|
"show-overflow": "title",
|
|
6005
6005
|
"show-footer-overflow": ""
|
|
6006
|
-
}, null, 8, ["title", "field"])) :
|
|
6006
|
+
}, null, 8, ["title", "field"])) : _("", !0),
|
|
6007
6007
|
H.behaviorType == 10 ? (b(), R(g, {
|
|
6008
6008
|
key: U,
|
|
6009
6009
|
title: H.name,
|
|
@@ -6015,10 +6015,10 @@ function Bp(n, i, s, c, u, d) {
|
|
|
6015
6015
|
"file-list": se.row.inside[H.columnCode],
|
|
6016
6016
|
"is-mini": !0,
|
|
6017
6017
|
"no-warp": !0
|
|
6018
|
-
}, null, 8, ["file-list"])) :
|
|
6018
|
+
}, null, 8, ["file-list"])) : _("", !0)
|
|
6019
6019
|
]),
|
|
6020
6020
|
_: 2
|
|
6021
|
-
}, 1032, ["title"])) :
|
|
6021
|
+
}, 1032, ["title"])) : _("", !0)
|
|
6022
6022
|
], 64))), 256))
|
|
6023
6023
|
]),
|
|
6024
6024
|
_: 1
|
|
@@ -6080,7 +6080,7 @@ const Vp = /* @__PURE__ */ ie(Pp, [["render", Bp], ["__scopeId", "data-v-918e611
|
|
|
6080
6080
|
}
|
|
6081
6081
|
}
|
|
6082
6082
|
};
|
|
6083
|
-
function
|
|
6083
|
+
function _p(n, i, s, c, u, d) {
|
|
6084
6084
|
return De((b(), F("div", {
|
|
6085
6085
|
class: "worksheetCopy",
|
|
6086
6086
|
style: bt(u.style),
|
|
@@ -6091,7 +6091,7 @@ function Np(n, i, s, c, u, d) {
|
|
|
6091
6091
|
[We, u.visiable || u.isMouseIn]
|
|
6092
6092
|
]);
|
|
6093
6093
|
}
|
|
6094
|
-
const
|
|
6094
|
+
const Np = /* @__PURE__ */ ie(Ep, [["render", _p], ["__scopeId", "data-v-ea01cce7"]]), rl = {
|
|
6095
6095
|
// API基础URL
|
|
6096
6096
|
apiBaseUrl: ""
|
|
6097
6097
|
// 其他配置项可以在这里添加
|
|
@@ -6953,7 +6953,7 @@ function e0(n) {
|
|
|
6953
6953
|
}
|
|
6954
6954
|
const Xp = {
|
|
6955
6955
|
name: "chooseAssocTable",
|
|
6956
|
-
components: { chooseChildGood: Vp, tableCellCopy:
|
|
6956
|
+
components: { chooseChildGood: Vp, tableCellCopy: Np },
|
|
6957
6957
|
props: {
|
|
6958
6958
|
// 接口请求外部转发
|
|
6959
6959
|
postFunc: Function,
|
|
@@ -7268,17 +7268,17 @@ function im(n, i, s, c, u, d) {
|
|
|
7268
7268
|
}, null, 8, ["onSetChildGood"]),
|
|
7269
7269
|
y("div", Gp, [
|
|
7270
7270
|
y("div", Yp, [
|
|
7271
|
-
(b(!0), F(oe, null, me(u.searchPost.conditions, (be,
|
|
7272
|
-
key:
|
|
7271
|
+
(b(!0), F(oe, null, me(u.searchPost.conditions, (be, Oe) => (b(), F("div", {
|
|
7272
|
+
key: Oe,
|
|
7273
7273
|
class: "chooseAssocTable-search-item"
|
|
7274
7274
|
}, [
|
|
7275
7275
|
L(x, {
|
|
7276
|
-
modelValue: u.searchPost.conditions[
|
|
7277
|
-
"onUpdate:modelValue": (
|
|
7276
|
+
modelValue: u.searchPost.conditions[Oe],
|
|
7277
|
+
"onUpdate:modelValue": ($e) => u.searchPost.conditions[Oe] = $e,
|
|
7278
7278
|
"column-data": be,
|
|
7279
|
-
onValueChange: i[0] || (i[0] = (
|
|
7279
|
+
onValueChange: i[0] || (i[0] = ($e) => d.search()),
|
|
7280
7280
|
allowDel: "",
|
|
7281
|
-
onDel: (
|
|
7281
|
+
onDel: ($e) => u.searchPost.conditions.splice(Oe, 1),
|
|
7282
7282
|
postFunc: s.postFunc,
|
|
7283
7283
|
pathUrl: be.pathUrl,
|
|
7284
7284
|
postData: be.postData
|
|
@@ -7307,11 +7307,11 @@ function im(n, i, s, c, u, d) {
|
|
|
7307
7307
|
]),
|
|
7308
7308
|
_: 1
|
|
7309
7309
|
}, 8, ["modelValue", "options"]),
|
|
7310
|
-
(b(!0), F(oe, null, me(u.searchList, (be,
|
|
7310
|
+
(b(!0), F(oe, null, me(u.searchList, (be, Oe) => (b(), R(B, {
|
|
7311
7311
|
closable: "",
|
|
7312
7312
|
type: "success",
|
|
7313
|
-
onClick: (
|
|
7314
|
-
onClose: (
|
|
7313
|
+
onClick: ($e) => d.chooseSearch(be),
|
|
7314
|
+
onClose: ($e) => d.delSearch(be, Oe),
|
|
7315
7315
|
class: "w-margin-left8 w-cursor-pointer"
|
|
7316
7316
|
}, {
|
|
7317
7317
|
default: O(() => [
|
|
@@ -7391,25 +7391,25 @@ function im(n, i, s, c, u, d) {
|
|
|
7391
7391
|
]),
|
|
7392
7392
|
_: 1
|
|
7393
7393
|
}),
|
|
7394
|
-
(b(!0), F(oe, null, me(u.headerColumns, (be,
|
|
7394
|
+
(b(!0), F(oe, null, me(u.headerColumns, (be, Oe) => (b(), R(W, {
|
|
7395
7395
|
visible: be.extraInfo.isAddable == 1,
|
|
7396
7396
|
title: be.name,
|
|
7397
7397
|
field: be.columnCode,
|
|
7398
7398
|
"min-width": "160",
|
|
7399
|
-
key:
|
|
7399
|
+
key: Oe,
|
|
7400
7400
|
"show-header-overflow": "title",
|
|
7401
7401
|
"show-overflow": "title",
|
|
7402
7402
|
"show-footer-overflow": ""
|
|
7403
7403
|
}, Zr({ _: 2 }, [
|
|
7404
7404
|
be.behaviorType == 10 && be.extraInfo.isAddable == 1 ? {
|
|
7405
7405
|
name: "default",
|
|
7406
|
-
fn: O((
|
|
7407
|
-
|
|
7406
|
+
fn: O(($e) => [
|
|
7407
|
+
$e.row.inside[be.columnCode] ? (b(), R(U, {
|
|
7408
7408
|
key: 0,
|
|
7409
|
-
"file-list":
|
|
7409
|
+
"file-list": $e.row.inside[be.columnCode],
|
|
7410
7410
|
"is-mini": !0,
|
|
7411
7411
|
"no-warp": !0
|
|
7412
|
-
}, null, 8, ["file-list"])) :
|
|
7412
|
+
}, null, 8, ["file-list"])) : _("", !0)
|
|
7413
7413
|
]),
|
|
7414
7414
|
key: "0"
|
|
7415
7415
|
} : void 0
|
|
@@ -7802,19 +7802,19 @@ function Yr(n, i, s) {
|
|
|
7802
7802
|
return c = Array.from(/* @__PURE__ */ new Set([...n, ...i])), c;
|
|
7803
7803
|
}
|
|
7804
7804
|
const Jr = {
|
|
7805
|
-
stringForm: ce(() => import("./index-
|
|
7806
|
-
numberForm: ce(() => import("./index-
|
|
7807
|
-
selectForm: ce(() => import("./index-
|
|
7808
|
-
radioForm: ce(() => import("./index-
|
|
7809
|
-
checkboxForm: ce(() => import("./index-
|
|
7810
|
-
dateForm: ce(() => import("./index-
|
|
7811
|
-
dateDualForm: ce(() => import("./index-
|
|
7812
|
-
fileForm: ce(() => import("./index-
|
|
7813
|
-
childrenForm: ce(() => import("./index-
|
|
7814
|
-
addressForm: ce(() => import("./index-
|
|
7815
|
-
receiveForm: ce(() => import("./index-
|
|
7816
|
-
relationForm: ce(() => import("./index-
|
|
7817
|
-
scoreForm: ce(() => import("./index-
|
|
7805
|
+
stringForm: ce(() => import("./index-gu6qPQW6.js")),
|
|
7806
|
+
numberForm: ce(() => import("./index-Dgi60wFT.js")),
|
|
7807
|
+
selectForm: ce(() => import("./index-CqDSQWKQ.js")),
|
|
7808
|
+
radioForm: ce(() => import("./index-xATmvM0d.js")),
|
|
7809
|
+
checkboxForm: ce(() => import("./index-DDKPKT2M.js")),
|
|
7810
|
+
dateForm: ce(() => import("./index-uSsx5ZNP.js")),
|
|
7811
|
+
dateDualForm: ce(() => import("./index-OCeVbvJD.js")),
|
|
7812
|
+
fileForm: ce(() => import("./index-BL7aA9xR.js")),
|
|
7813
|
+
childrenForm: ce(() => import("./index-C0gQEapY.js")),
|
|
7814
|
+
addressForm: ce(() => import("./index-CpICvBnF.js")),
|
|
7815
|
+
receiveForm: ce(() => import("./index-BEEwe5nU.js")),
|
|
7816
|
+
relationForm: ce(() => import("./index-CBE9YALu.js")),
|
|
7817
|
+
scoreForm: ce(() => import("./index-C6cetivU.js"))
|
|
7818
7818
|
}, cm = {
|
|
7819
7819
|
name: "BnSmartForm",
|
|
7820
7820
|
components: {
|
|
@@ -7822,7 +7822,7 @@ const Jr = {
|
|
|
7822
7822
|
choosePackage: wp,
|
|
7823
7823
|
chooseChildOrder: Lp,
|
|
7824
7824
|
chooseAssocTable: nm,
|
|
7825
|
-
chooseIPaasData: ce(() => import("./chooseIPaasData-
|
|
7825
|
+
chooseIPaasData: ce(() => import("./chooseIPaasData-CZPXX_X0.js"))
|
|
7826
7826
|
},
|
|
7827
7827
|
props: {
|
|
7828
7828
|
// 表单id 涉及编辑表单
|
|
@@ -8018,7 +8018,7 @@ const Jr = {
|
|
|
8018
8018
|
case 1:
|
|
8019
8019
|
//文本
|
|
8020
8020
|
case 2: {
|
|
8021
|
-
s.extraInfo.valueEmptyCheck == 1 && s.behaviorType == 1 &&
|
|
8021
|
+
s.extraInfo.valueEmptyCheck == 1 && s.behaviorType == 1 && Ze(s.value) && (this.componentList[i].error = s.name + "的值不能为空"), s.extraInfo.valueEmptyCheck == 1 && s.behaviorType == 2 && (s.value === void 0 || s.value === null || s.value === "") && (this.componentList[i].error = s.name + "的值不能为空"), s.extraInfo.regular && (new RegExp(s.extraInfo.regular).test(s.value) || (this.componentList[i].error = s.extraInfo.paraExplain || "请输入符合要求的" + s.name));
|
|
8022
8022
|
break;
|
|
8023
8023
|
}
|
|
8024
8024
|
case 3:
|
|
@@ -8042,12 +8042,12 @@ const Jr = {
|
|
|
8042
8042
|
case 7:
|
|
8043
8043
|
//日期
|
|
8044
8044
|
case 11: {
|
|
8045
|
-
s.extraInfo.valueEmptyCheck == 1 &&
|
|
8045
|
+
s.extraInfo.valueEmptyCheck == 1 && Ze(s.value) && (this.componentList[i].error = s.name + "的值不能为空");
|
|
8046
8046
|
break;
|
|
8047
8047
|
}
|
|
8048
8048
|
case 13: {
|
|
8049
8049
|
if (s.extraInfo.valueEmptyCheck == 1)
|
|
8050
|
-
if (
|
|
8050
|
+
if (Ze(s.value))
|
|
8051
8051
|
this.componentList[i].error = s.name + "至少要有一条内容";
|
|
8052
8052
|
else {
|
|
8053
8053
|
let u = va(s, this.id);
|
|
@@ -8060,7 +8060,7 @@ const Jr = {
|
|
|
8060
8060
|
case 15: {
|
|
8061
8061
|
if (s.extraInfo.valueEmptyCheck == 1) {
|
|
8062
8062
|
for (let u in s.value)
|
|
8063
|
-
if (
|
|
8063
|
+
if (Ze(s.value[u])) {
|
|
8064
8064
|
this.componentList[i].error = `请输入完整的${s.name}`;
|
|
8065
8065
|
break;
|
|
8066
8066
|
}
|
|
@@ -8480,7 +8480,7 @@ function ym(n, i, s, c, u, d) {
|
|
|
8480
8480
|
onCheckedPackage: d.checkedPackage,
|
|
8481
8481
|
componentList: d.componentList,
|
|
8482
8482
|
dataBack: s.dataBack
|
|
8483
|
-
}, null, 8, ["orderList", "onCheckedPackage", "componentList", "dataBack"])) :
|
|
8483
|
+
}, null, 8, ["orderList", "onCheckedPackage", "componentList", "dataBack"])) : _("", !0),
|
|
8484
8484
|
s.dataBack ? (b(), R(C, {
|
|
8485
8485
|
key: 1,
|
|
8486
8486
|
ref: "chooseChildOrder",
|
|
@@ -8488,7 +8488,7 @@ function ym(n, i, s, c, u, d) {
|
|
|
8488
8488
|
onSetChildrenForm: d.setChildrenForm,
|
|
8489
8489
|
componentList: d.componentList,
|
|
8490
8490
|
dataBack: s.dataBack
|
|
8491
|
-
}, null, 8, ["childOrders", "onSetChildrenForm", "componentList", "dataBack"])) :
|
|
8491
|
+
}, null, 8, ["childOrders", "onSetChildrenForm", "componentList", "dataBack"])) : _("", !0),
|
|
8492
8492
|
u.loading ? (b(), F("div", pm, [
|
|
8493
8493
|
L(T, {
|
|
8494
8494
|
percentage: 70,
|
|
@@ -8496,7 +8496,7 @@ function ym(n, i, s, c, u, d) {
|
|
|
8496
8496
|
"show-text": !1,
|
|
8497
8497
|
striped: ""
|
|
8498
8498
|
})
|
|
8499
|
-
])) :
|
|
8499
|
+
])) : _("", !0),
|
|
8500
8500
|
y("div", mm, [
|
|
8501
8501
|
L(B, {
|
|
8502
8502
|
ref: "formScroll",
|
|
@@ -8524,7 +8524,7 @@ function ym(n, i, s, c, u, d) {
|
|
|
8524
8524
|
onOnInput: d.comInput,
|
|
8525
8525
|
onBlur: d.comBlur
|
|
8526
8526
|
}, null, 40, ["column", "postFunc", "taskId", "extraInfo", "defaultLink", "componentList", "dataBack", "disabled", "onOperate", "onOnChange", "onOnInput", "onBlur"]))
|
|
8527
|
-
], 10, vm)) :
|
|
8527
|
+
], 10, vm)) : _("", !0)
|
|
8528
8528
|
], 64))), 256))
|
|
8529
8529
|
]),
|
|
8530
8530
|
_: 1
|
|
@@ -8535,7 +8535,7 @@ function ym(n, i, s, c, u, d) {
|
|
|
8535
8535
|
logs: u.formLogs,
|
|
8536
8536
|
onClose: i[0] || (i[0] = (H) => u.showElf = !1)
|
|
8537
8537
|
}, null, 8, ["logs"])
|
|
8538
|
-
])) :
|
|
8538
|
+
])) : _("", !0)
|
|
8539
8539
|
]);
|
|
8540
8540
|
}
|
|
8541
8541
|
const bm = /* @__PURE__ */ ie(cm, [["render", ym], ["__scopeId", "data-v-b3f35ae1"]]), Cm = {
|
|
@@ -8628,7 +8628,7 @@ const bm = /* @__PURE__ */ ie(cm, [["render", ym], ["__scopeId", "data-v-b3f35ae
|
|
|
8628
8628
|
case 1:
|
|
8629
8629
|
//文本
|
|
8630
8630
|
case 2: {
|
|
8631
|
-
s.extraInfo.valueEmptyCheck == 1 && s.behaviorType == 1 &&
|
|
8631
|
+
s.extraInfo.valueEmptyCheck == 1 && s.behaviorType == 1 && Ze(s.value) && (this.componentList[i].error = s.name + "的值不能为空"), s.extraInfo.valueEmptyCheck == 1 && s.behaviorType == 2 && (s.value === void 0 || s.value === null || s.value === "") && (this.componentList[i].error = s.name + "的值不能为空"), s.extraInfo.regular && (new RegExp(s.extraInfo.regular).test(s.value) || (this.componentList[i].error = s.extraInfo.paraExplain || "请输入符合要求的" + s.name));
|
|
8632
8632
|
break;
|
|
8633
8633
|
}
|
|
8634
8634
|
case 3:
|
|
@@ -8652,12 +8652,12 @@ const bm = /* @__PURE__ */ ie(cm, [["render", ym], ["__scopeId", "data-v-b3f35ae
|
|
|
8652
8652
|
case 7:
|
|
8653
8653
|
//日期
|
|
8654
8654
|
case 11: {
|
|
8655
|
-
s.extraInfo.valueEmptyCheck == 1 &&
|
|
8655
|
+
s.extraInfo.valueEmptyCheck == 1 && Ze(s.value) && (this.componentList[i].error = s.name + "的值不能为空");
|
|
8656
8656
|
break;
|
|
8657
8657
|
}
|
|
8658
8658
|
case 13: {
|
|
8659
8659
|
if (s.extraInfo.valueEmptyCheck == 1)
|
|
8660
|
-
if (
|
|
8660
|
+
if (Ze(s.value))
|
|
8661
8661
|
this.componentList[i].error = s.name + "至少要有一条内容";
|
|
8662
8662
|
else {
|
|
8663
8663
|
let u = va(s, this.id);
|
|
@@ -8670,7 +8670,7 @@ const bm = /* @__PURE__ */ ie(cm, [["render", ym], ["__scopeId", "data-v-b3f35ae
|
|
|
8670
8670
|
case 15: {
|
|
8671
8671
|
if (s.extraInfo.valueEmptyCheck == 1) {
|
|
8672
8672
|
for (let u in s.value)
|
|
8673
|
-
if (
|
|
8673
|
+
if (Ze(s.value[u])) {
|
|
8674
8674
|
this.componentList[i].error = `请输入完整的${s.name}`;
|
|
8675
8675
|
break;
|
|
8676
8676
|
}
|
|
@@ -8707,18 +8707,18 @@ const bm = /* @__PURE__ */ ie(cm, [["render", ym], ["__scopeId", "data-v-b3f35ae
|
|
|
8707
8707
|
* */
|
|
8708
8708
|
componentView(n) {
|
|
8709
8709
|
const i = {
|
|
8710
|
-
stringForm: ce(() => import("./index-
|
|
8711
|
-
numberForm: ce(() => import("./index-
|
|
8712
|
-
selectForm: ce(() => import("./index-
|
|
8713
|
-
radioForm: ce(() => import("./index-
|
|
8714
|
-
checkboxForm: ce(() => import("./index-
|
|
8715
|
-
dateForm: ce(() => import("./index-
|
|
8716
|
-
dateDualForm: ce(() => import("./index-
|
|
8717
|
-
fileForm: ce(() => import("./index-
|
|
8718
|
-
childrenForm: ce(() => import("./index-
|
|
8719
|
-
addressForm: ce(() => import("./index-
|
|
8720
|
-
receiveForm: ce(() => import("./index-
|
|
8721
|
-
relationForm: ce(() => import("./index-
|
|
8710
|
+
stringForm: ce(() => import("./index-gu6qPQW6.js")),
|
|
8711
|
+
numberForm: ce(() => import("./index-Dgi60wFT.js")),
|
|
8712
|
+
selectForm: ce(() => import("./index-CqDSQWKQ.js")),
|
|
8713
|
+
radioForm: ce(() => import("./index-xATmvM0d.js")),
|
|
8714
|
+
checkboxForm: ce(() => import("./index-DDKPKT2M.js")),
|
|
8715
|
+
dateForm: ce(() => import("./index-uSsx5ZNP.js")),
|
|
8716
|
+
dateDualForm: ce(() => import("./index-OCeVbvJD.js")),
|
|
8717
|
+
fileForm: ce(() => import("./index-BL7aA9xR.js")),
|
|
8718
|
+
childrenForm: ce(() => import("./index-C0gQEapY.js")),
|
|
8719
|
+
addressForm: ce(() => import("./index-CpICvBnF.js")),
|
|
8720
|
+
receiveForm: ce(() => import("./index-BEEwe5nU.js")),
|
|
8721
|
+
relationForm: ce(() => import("./index-CBE9YALu.js"))
|
|
8722
8722
|
// showValForm: defineAsyncComponent(() => import('./showValForm/index.vue')),
|
|
8723
8723
|
};
|
|
8724
8724
|
let s = Ul[n.behaviorType] || null;
|
|
@@ -8791,9 +8791,9 @@ function ba() {
|
|
|
8791
8791
|
(function(s, c) {
|
|
8792
8792
|
n.exports = c();
|
|
8793
8793
|
})(Dm, (function() {
|
|
8794
|
-
var s = navigator.userAgent, c = navigator.platform, u = /gecko\/\d/i.test(s), d = /MSIE \d/.test(s), g = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(s), k = /Edge\/(\d+)/.exec(s), x = d || g || k, C = x && (d ? document.documentMode || 6 : +(k || g)[1]), T = !k && /WebKit\//.test(s), B = T && /Qt\/\d+\.\d+/.test(s), W = !k && /Chrome\/(\d+)/.exec(s), H = W && +W[1], U = /Opera\//.test(s), se = /Apple Computer/.test(navigator.vendor), ve = /Mac OS X 1\d\D([8-9]|\d\d)\D/.test(s), pe = /PhantomJS/.test(s), Te = se && (/Mobile\/\w+/.test(s) || navigator.maxTouchPoints > 2), ue = /Android/.test(s), be = Te || ue || /webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(s),
|
|
8794
|
+
var s = navigator.userAgent, c = navigator.platform, u = /gecko\/\d/i.test(s), d = /MSIE \d/.test(s), g = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(s), k = /Edge\/(\d+)/.exec(s), x = d || g || k, C = x && (d ? document.documentMode || 6 : +(k || g)[1]), T = !k && /WebKit\//.test(s), B = T && /Qt\/\d+\.\d+/.test(s), W = !k && /Chrome\/(\d+)/.exec(s), H = W && +W[1], U = /Opera\//.test(s), se = /Apple Computer/.test(navigator.vendor), ve = /Mac OS X 1\d\D([8-9]|\d\d)\D/.test(s), pe = /PhantomJS/.test(s), Te = se && (/Mobile\/\w+/.test(s) || navigator.maxTouchPoints > 2), ue = /Android/.test(s), be = Te || ue || /webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(s), Oe = Te || /Mac/.test(c), $e = /\bCrOS\b/.test(s), In = /win/i.test(c), ot = U && s.match(/Version\/(\d*\.\d*)/);
|
|
8795
8795
|
ot && (ot = Number(ot[1])), ot && ot >= 15 && (U = !1, T = !0);
|
|
8796
|
-
var Ai =
|
|
8796
|
+
var Ai = Oe && (B || U && (ot == null || ot < 12.11)), ti = u || x && C >= 9;
|
|
8797
8797
|
function we(e) {
|
|
8798
8798
|
return new RegExp("(^|\\s)" + e + "(?:$|\\s)\\s*");
|
|
8799
8799
|
}
|
|
@@ -8881,9 +8881,9 @@ function ba() {
|
|
|
8881
8881
|
return e.display.wrapper.ownerDocument;
|
|
8882
8882
|
}
|
|
8883
8883
|
function Bt(e) {
|
|
8884
|
-
return
|
|
8884
|
+
return Ke(e.display.wrapper);
|
|
8885
8885
|
}
|
|
8886
|
-
function
|
|
8886
|
+
function Ke(e) {
|
|
8887
8887
|
return e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
8888
8888
|
}
|
|
8889
8889
|
function fe(e) {
|
|
@@ -8901,7 +8901,7 @@ function ba() {
|
|
|
8901
8901
|
Object.prototype.hasOwnProperty.call(e, l) && (r !== !1 || !Object.prototype.hasOwnProperty.call(t, l)) && (t[l] = e[l]);
|
|
8902
8902
|
return t;
|
|
8903
8903
|
}
|
|
8904
|
-
function
|
|
8904
|
+
function Le(e, t, r, l, o) {
|
|
8905
8905
|
t == null && (t = e.search(/[^\s\u00a0]/), t == -1 && (t = e.length));
|
|
8906
8906
|
for (var a = l || 0, f = o || 0; ; ) {
|
|
8907
8907
|
var h = e.indexOf(" ", a);
|
|
@@ -9046,10 +9046,10 @@ function ba() {
|
|
|
9046
9046
|
ye == "+" && te == "1" && M[re + 1] == "1" ? M[re] = "1" : ye == "," && te == M[re + 1] && (te == "1" || te == "n") && (M[re] = te), te = ye;
|
|
9047
9047
|
}
|
|
9048
9048
|
for (var Fe = 0; Fe < A; ++Fe) {
|
|
9049
|
-
var
|
|
9050
|
-
if (
|
|
9049
|
+
var qe = M[Fe];
|
|
9050
|
+
if (qe == ",")
|
|
9051
9051
|
M[Fe] = "N";
|
|
9052
|
-
else if (
|
|
9052
|
+
else if (qe == "%") {
|
|
9053
9053
|
var Be = void 0;
|
|
9054
9054
|
for (Be = Fe + 1; Be < A && M[Be] == "%"; ++Be)
|
|
9055
9055
|
;
|
|
@@ -9067,30 +9067,30 @@ function ba() {
|
|
|
9067
9067
|
var Ue = void 0;
|
|
9068
9068
|
for (Ue = je + 1; Ue < A && o.test(M[Ue]); ++Ue)
|
|
9069
9069
|
;
|
|
9070
|
-
for (var
|
|
9070
|
+
for (var Ne = (je ? M[je - 1] : S) == "L", yt = (Ue < A ? M[Ue] : S) == "L", Cn = Ne == yt ? Ne ? "L" : "R" : S, Mi = je; Mi < Ue; ++Mi)
|
|
9071
9071
|
M[Mi] = Cn;
|
|
9072
9072
|
je = Ue - 1;
|
|
9073
9073
|
}
|
|
9074
|
-
for (var rt = [], ei,
|
|
9075
|
-
if (f.test(M[
|
|
9076
|
-
var Wr =
|
|
9077
|
-
for (++
|
|
9074
|
+
for (var rt = [], ei, Qe = 0; Qe < A; )
|
|
9075
|
+
if (f.test(M[Qe])) {
|
|
9076
|
+
var Wr = Qe;
|
|
9077
|
+
for (++Qe; Qe < A && f.test(M[Qe]); ++Qe)
|
|
9078
9078
|
;
|
|
9079
|
-
rt.push(new p(0, Wr,
|
|
9079
|
+
rt.push(new p(0, Wr, Qe));
|
|
9080
9080
|
} else {
|
|
9081
|
-
var hi =
|
|
9082
|
-
for (++
|
|
9081
|
+
var hi = Qe, Xi = rt.length, Gi = w == "rtl" ? 1 : 0;
|
|
9082
|
+
for (++Qe; Qe < A && M[Qe] != "L"; ++Qe)
|
|
9083
9083
|
;
|
|
9084
|
-
for (var ut = hi; ut <
|
|
9084
|
+
for (var ut = hi; ut < Qe; )
|
|
9085
9085
|
if (h.test(M[ut])) {
|
|
9086
9086
|
hi < ut && (rt.splice(Xi, 0, new p(1, hi, ut)), Xi += Gi);
|
|
9087
9087
|
var wn = ut;
|
|
9088
|
-
for (++ut; ut <
|
|
9088
|
+
for (++ut; ut < Qe && h.test(M[ut]); ++ut)
|
|
9089
9089
|
;
|
|
9090
9090
|
rt.splice(Xi, 0, new p(2, wn, ut)), Xi += Gi, hi = ut;
|
|
9091
9091
|
} else
|
|
9092
9092
|
++ut;
|
|
9093
|
-
hi <
|
|
9093
|
+
hi < Qe && rt.splice(Xi, 0, new p(1, hi, Qe));
|
|
9094
9094
|
}
|
|
9095
9095
|
return w == "ltr" && (rt[0].level == 1 && (ei = m.match(/^\s+/)) && (rt[0].from = ei[0].length, rt.unshift(new p(0, 0, ei[0].length))), xe(rt).level == 1 && (ei = m.match(/\s+$/)) && (xe(rt).to -= ei[0].length, rt.push(new p(0, A - ei[0].length, A)))), w == "rtl" ? rt.reverse() : rt;
|
|
9096
9096
|
};
|
|
@@ -9169,7 +9169,7 @@ function ba() {
|
|
|
9169
9169
|
}
|
|
9170
9170
|
function Et(e) {
|
|
9171
9171
|
var t = e.which;
|
|
9172
|
-
return t == null && (e.button & 1 ? t = 1 : e.button & 2 ? t = 3 : e.button & 4 && (t = 2)),
|
|
9172
|
+
return t == null && (e.button & 1 ? t = 1 : e.button & 2 ? t = 3 : e.button & 4 && (t = 2)), Oe && e.ctrlKey && t == 1 && (t = 3), t;
|
|
9173
9173
|
}
|
|
9174
9174
|
var Ql = (function() {
|
|
9175
9175
|
if (x && C < 9)
|
|
@@ -9221,25 +9221,25 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
9221
9221
|
}, fl = (function() {
|
|
9222
9222
|
var e = D("div");
|
|
9223
9223
|
return "oncopy" in e ? !0 : (e.setAttribute("oncopy", "return;"), typeof e.oncopy == "function");
|
|
9224
|
-
})(),
|
|
9224
|
+
})(), _t = null;
|
|
9225
9225
|
function Zl(e) {
|
|
9226
|
-
if (
|
|
9227
|
-
return
|
|
9226
|
+
if (_t != null)
|
|
9227
|
+
return _t;
|
|
9228
9228
|
var t = ne(e, D("span", "x")), r = t.getBoundingClientRect(), l = Ct(t, 0, 1).getBoundingClientRect();
|
|
9229
|
-
return
|
|
9229
|
+
return _t = Math.abs(r.left - l.left) > 1;
|
|
9230
9230
|
}
|
|
9231
|
-
var qi = {},
|
|
9231
|
+
var qi = {}, Nt = {};
|
|
9232
9232
|
function Ht(e, t) {
|
|
9233
9233
|
arguments.length > 2 && (t.dependencies = Array.prototype.slice.call(arguments, 2)), qi[e] = t;
|
|
9234
9234
|
}
|
|
9235
|
-
function
|
|
9236
|
-
|
|
9235
|
+
function _i(e, t) {
|
|
9236
|
+
Nt[e] = t;
|
|
9237
9237
|
}
|
|
9238
9238
|
function Qi(e) {
|
|
9239
|
-
if (typeof e == "string" &&
|
|
9240
|
-
e =
|
|
9241
|
-
else if (e && typeof e.name == "string" &&
|
|
9242
|
-
var t =
|
|
9239
|
+
if (typeof e == "string" && Nt.hasOwnProperty(e))
|
|
9240
|
+
e = Nt[e];
|
|
9241
|
+
else if (e && typeof e.name == "string" && Nt.hasOwnProperty(e.name)) {
|
|
9242
|
+
var t = Nt[e.name];
|
|
9243
9243
|
typeof t == "string" && (t = { name: t }), e = sl(t, e), e.name = t.name;
|
|
9244
9244
|
} else {
|
|
9245
9245
|
if (typeof e == "string" && /^[\w\-]+\/[\w\-]+\+xml$/.test(e))
|
|
@@ -9290,43 +9290,43 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
9290
9290
|
function en(e, t, r) {
|
|
9291
9291
|
return e.startState ? e.startState(t, r) : !0;
|
|
9292
9292
|
}
|
|
9293
|
-
var
|
|
9293
|
+
var _e = function(e, t, r) {
|
|
9294
9294
|
this.pos = this.start = 0, this.string = e, this.tabSize = t || 8, this.lastColumnPos = this.lastColumnValue = 0, this.lineStart = 0, this.lineOracle = r;
|
|
9295
9295
|
};
|
|
9296
|
-
|
|
9296
|
+
_e.prototype.eol = function() {
|
|
9297
9297
|
return this.pos >= this.string.length;
|
|
9298
|
-
},
|
|
9298
|
+
}, _e.prototype.sol = function() {
|
|
9299
9299
|
return this.pos == this.lineStart;
|
|
9300
|
-
},
|
|
9300
|
+
}, _e.prototype.peek = function() {
|
|
9301
9301
|
return this.string.charAt(this.pos) || void 0;
|
|
9302
|
-
},
|
|
9302
|
+
}, _e.prototype.next = function() {
|
|
9303
9303
|
if (this.pos < this.string.length)
|
|
9304
9304
|
return this.string.charAt(this.pos++);
|
|
9305
|
-
},
|
|
9305
|
+
}, _e.prototype.eat = function(e) {
|
|
9306
9306
|
var t = this.string.charAt(this.pos), r;
|
|
9307
9307
|
if (typeof e == "string" ? r = t == e : r = t && (e.test ? e.test(t) : e(t)), r)
|
|
9308
9308
|
return ++this.pos, t;
|
|
9309
|
-
},
|
|
9309
|
+
}, _e.prototype.eatWhile = function(e) {
|
|
9310
9310
|
for (var t = this.pos; this.eat(e); )
|
|
9311
9311
|
;
|
|
9312
9312
|
return this.pos > t;
|
|
9313
|
-
},
|
|
9313
|
+
}, _e.prototype.eatSpace = function() {
|
|
9314
9314
|
for (var e = this.pos; /[\s\u00a0]/.test(this.string.charAt(this.pos)); )
|
|
9315
9315
|
++this.pos;
|
|
9316
9316
|
return this.pos > e;
|
|
9317
|
-
},
|
|
9317
|
+
}, _e.prototype.skipToEnd = function() {
|
|
9318
9318
|
this.pos = this.string.length;
|
|
9319
|
-
},
|
|
9319
|
+
}, _e.prototype.skipTo = function(e) {
|
|
9320
9320
|
var t = this.string.indexOf(e, this.pos);
|
|
9321
9321
|
if (t > -1)
|
|
9322
9322
|
return this.pos = t, !0;
|
|
9323
|
-
},
|
|
9323
|
+
}, _e.prototype.backUp = function(e) {
|
|
9324
9324
|
this.pos -= e;
|
|
9325
|
-
},
|
|
9326
|
-
return this.lastColumnPos < this.start && (this.lastColumnValue =
|
|
9327
|
-
},
|
|
9328
|
-
return
|
|
9329
|
-
},
|
|
9325
|
+
}, _e.prototype.column = function() {
|
|
9326
|
+
return this.lastColumnPos < this.start && (this.lastColumnValue = Le(this.string, this.start, this.tabSize, this.lastColumnPos, this.lastColumnValue), this.lastColumnPos = this.start), this.lastColumnValue - (this.lineStart ? Le(this.string, this.lineStart, this.tabSize) : 0);
|
|
9327
|
+
}, _e.prototype.indentation = function() {
|
|
9328
|
+
return Le(this.string, null, this.tabSize) - (this.lineStart ? Le(this.string, this.lineStart, this.tabSize) : 0);
|
|
9329
|
+
}, _e.prototype.match = function(e, t, r) {
|
|
9330
9330
|
if (typeof e == "string") {
|
|
9331
9331
|
var l = function(f) {
|
|
9332
9332
|
return r ? f.toLowerCase() : f;
|
|
@@ -9337,19 +9337,19 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
9337
9337
|
var a = this.string.slice(this.pos).match(e);
|
|
9338
9338
|
return a && a.index > 0 ? null : (a && t !== !1 && (this.pos += a[0].length), a);
|
|
9339
9339
|
}
|
|
9340
|
-
},
|
|
9340
|
+
}, _e.prototype.current = function() {
|
|
9341
9341
|
return this.string.slice(this.start, this.pos);
|
|
9342
|
-
},
|
|
9342
|
+
}, _e.prototype.hideFirstChars = function(e, t) {
|
|
9343
9343
|
this.lineStart += e;
|
|
9344
9344
|
try {
|
|
9345
9345
|
return t();
|
|
9346
9346
|
} finally {
|
|
9347
9347
|
this.lineStart -= e;
|
|
9348
9348
|
}
|
|
9349
|
-
},
|
|
9349
|
+
}, _e.prototype.lookAhead = function(e) {
|
|
9350
9350
|
var t = this.lineOracle;
|
|
9351
9351
|
return t && t.lookAhead(e);
|
|
9352
|
-
},
|
|
9352
|
+
}, _e.prototype.baseToken = function() {
|
|
9353
9353
|
var e = this.lineOracle;
|
|
9354
9354
|
return e && e.baseToken(this.pos);
|
|
9355
9355
|
};
|
|
@@ -9415,7 +9415,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
9415
9415
|
}
|
|
9416
9416
|
return r + f;
|
|
9417
9417
|
}
|
|
9418
|
-
function
|
|
9418
|
+
function N(e, t) {
|
|
9419
9419
|
return t >= e.first && t < e.first + e.size;
|
|
9420
9420
|
}
|
|
9421
9421
|
function K(e, t) {
|
|
@@ -9432,7 +9432,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
9432
9432
|
function Ie(e, t) {
|
|
9433
9433
|
return e.sticky == t.sticky && Q(e, t) == 0;
|
|
9434
9434
|
}
|
|
9435
|
-
function
|
|
9435
|
+
function Xe(e) {
|
|
9436
9436
|
return V(e.line, e.ch);
|
|
9437
9437
|
}
|
|
9438
9438
|
function ht(e, t) {
|
|
@@ -9537,7 +9537,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
9537
9537
|
}), r && (l.modeFrontier = h.line), h;
|
|
9538
9538
|
}
|
|
9539
9539
|
function $l(e, t, r, l) {
|
|
9540
|
-
var o = e.doc.mode, a = new
|
|
9540
|
+
var o = e.doc.mode, a = new _e(t, e.options.tabSize, r);
|
|
9541
9541
|
for (a.start = a.pos = l || 0, t == "" && oo(o, r.state); !a.eol(); )
|
|
9542
9542
|
er(o, a, r.state), a.start = a.pos;
|
|
9543
9543
|
}
|
|
@@ -9565,7 +9565,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
9565
9565
|
function ao(e, t, r, l) {
|
|
9566
9566
|
var o = e.doc, a = o.mode, f;
|
|
9567
9567
|
t = de(o, t);
|
|
9568
|
-
var h = ee(o, t.line), p = Fn(e, t.line, r), m = new
|
|
9568
|
+
var h = ee(o, t.line), p = Fn(e, t.line, r), m = new _e(h.text, e.options.tabSize, p), w;
|
|
9569
9569
|
for (l && (w = []); (l || m.pos < t.ch) && !m.eol(); )
|
|
9570
9570
|
m.start = m.pos, f = er(a, m, p.state), l && w.push(new so(m, f, qt(o.mode, p.state)));
|
|
9571
9571
|
return l ? w : new so(m, f, p.state);
|
|
@@ -9585,7 +9585,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
9585
9585
|
function fo(e, t, r, l, o, a, f) {
|
|
9586
9586
|
var h = r.flattenSpans;
|
|
9587
9587
|
h == null && (h = e.options.flattenSpans);
|
|
9588
|
-
var p = 0, m = null, w = new
|
|
9588
|
+
var p = 0, m = null, w = new _e(t, e.options.tabSize, l), S, A = e.options.addModeClass && [null];
|
|
9589
9589
|
for (t == "" && uo(oo(r, l.state), a); !w.eol(); ) {
|
|
9590
9590
|
if (w.pos > e.options.maxHighlightLength ? (h = !1, f && $l(e, t, l, w.pos), w.pos = t.length, S = null) : S = uo(er(r, w, l.state, A), a), A) {
|
|
9591
9591
|
var M = A[0].name;
|
|
@@ -9610,7 +9610,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
9610
9610
|
var p = ee(a, h - 1), m = p.stateAfter;
|
|
9611
9611
|
if (m && (!r || h + (m instanceof cl ? m.lookAhead : 0) <= a.modeFrontier))
|
|
9612
9612
|
return h;
|
|
9613
|
-
var w =
|
|
9613
|
+
var w = Le(p.text, null, e.options.tabSize);
|
|
9614
9614
|
(o == null || l > w) && (o = h - 1, l = w);
|
|
9615
9615
|
}
|
|
9616
9616
|
return o;
|
|
@@ -9685,7 +9685,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
9685
9685
|
function tr(e, t) {
|
|
9686
9686
|
if (t.full)
|
|
9687
9687
|
return null;
|
|
9688
|
-
var r =
|
|
9688
|
+
var r = N(e, t.from.line) && ee(e, t.from.line).markedSpans, l = N(e, t.to.line) && ee(e, t.to.line).markedSpans;
|
|
9689
9689
|
if (!r && !l)
|
|
9690
9690
|
return null;
|
|
9691
9691
|
var o = t.from.ch, a = t.to.ch, f = Q(t.from, t.to) == 0, h = Pa(r, o, f), p = Oa(l, a, f), m = t.text.length == 1, w = xe(t.text).length + (m ? o : 0);
|
|
@@ -9914,11 +9914,11 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
9914
9914
|
function Ea(e) {
|
|
9915
9915
|
e.parent = null, po(e);
|
|
9916
9916
|
}
|
|
9917
|
-
var
|
|
9917
|
+
var _a = {}, Na = {};
|
|
9918
9918
|
function Co(e, t) {
|
|
9919
9919
|
if (!e || /^\s*$/.test(e))
|
|
9920
9920
|
return null;
|
|
9921
|
-
var r = t.addModeClass ?
|
|
9921
|
+
var r = t.addModeClass ? Na : _a;
|
|
9922
9922
|
return r[e] || (r[e] = e.replace(/\S+/g, "cm-$&"));
|
|
9923
9923
|
}
|
|
9924
9924
|
function wo(e, t) {
|
|
@@ -10033,8 +10033,8 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
10033
10033
|
} else te.from > p && M > te.from && (M = te.from);
|
|
10034
10034
|
}
|
|
10035
10035
|
if ($)
|
|
10036
|
-
for (var
|
|
10037
|
-
$[
|
|
10036
|
+
for (var qe = 0; qe < $.length; qe += 2)
|
|
10037
|
+
$[qe + 1] == M && (z += " " + $[qe]);
|
|
10038
10038
|
if (!Y || Y.from == p)
|
|
10039
10039
|
for (var Be = 0; Be < J.length; ++Be)
|
|
10040
10040
|
ko(t, 0, J[Be]);
|
|
@@ -10116,7 +10116,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
10116
10116
|
}
|
|
10117
10117
|
}
|
|
10118
10118
|
var Bn = null;
|
|
10119
|
-
function
|
|
10119
|
+
function Ge(e, t) {
|
|
10120
10120
|
var r = oi(e, t);
|
|
10121
10121
|
if (r.length) {
|
|
10122
10122
|
var l = Array.prototype.slice.call(arguments, 2), o;
|
|
@@ -10218,7 +10218,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
10218
10218
|
if (t.widgets)
|
|
10219
10219
|
for (var a = Vn(r), f = 0, h = t.widgets; f < h.length; ++f) {
|
|
10220
10220
|
var p = h[f], m = D("div", [p.node], "CodeMirror-linewidget" + (p.className ? " " + p.className : ""));
|
|
10221
|
-
p.handleMouseEvents || m.setAttribute("cm-ignore-events", "true"), Za(p, m, r, l), e.display.input.setUneditable(m), o && p.above ? a.insertBefore(m, r.gutter || r.text) : a.appendChild(m),
|
|
10221
|
+
p.handleMouseEvents || m.setAttribute("cm-ignore-events", "true"), Za(p, m, r, l), e.display.input.setUneditable(m), o && p.above ? a.insertBefore(m, r.gutter || r.text) : a.appendChild(m), Ge(p, "redraw");
|
|
10222
10222
|
}
|
|
10223
10223
|
}
|
|
10224
10224
|
function Za(e, t, r, l) {
|
|
@@ -10261,14 +10261,14 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
10261
10261
|
function Zt(e) {
|
|
10262
10262
|
return st - e.display.nativeBarWidth;
|
|
10263
10263
|
}
|
|
10264
|
-
function
|
|
10264
|
+
function Ni(e) {
|
|
10265
10265
|
return e.display.scroller.clientWidth - Zt(e) - e.display.barWidth;
|
|
10266
10266
|
}
|
|
10267
10267
|
function ar(e) {
|
|
10268
10268
|
return e.display.scroller.clientHeight - Zt(e) - e.display.barHeight;
|
|
10269
10269
|
}
|
|
10270
10270
|
function $a(e, t, r) {
|
|
10271
|
-
var l = e.options.lineWrapping, o = l &&
|
|
10271
|
+
var l = e.options.lineWrapping, o = l && Ni(e);
|
|
10272
10272
|
if (!t.measure.heights || l && t.measure.width != o) {
|
|
10273
10273
|
var a = t.measure.heights = [];
|
|
10274
10274
|
if (l) {
|
|
@@ -10411,13 +10411,13 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
10411
10411
|
for (var t = 0; t < e.display.view.length; t++)
|
|
10412
10412
|
Bo(e.display.view[t]);
|
|
10413
10413
|
}
|
|
10414
|
-
function
|
|
10414
|
+
function _n(e) {
|
|
10415
10415
|
Vo(e), e.display.cachedCharWidth = e.display.cachedTextHeight = e.display.cachedPaddingH = null, e.options.lineWrapping || (e.display.maxLineChanged = !0), e.display.lineNumChars = null;
|
|
10416
10416
|
}
|
|
10417
10417
|
function Eo(e) {
|
|
10418
10418
|
return W && ue ? -(e.body.getBoundingClientRect().left - parseInt(getComputedStyle(e.body).marginLeft)) : e.defaultView.pageXOffset || (e.documentElement || e.body).scrollLeft;
|
|
10419
10419
|
}
|
|
10420
|
-
function
|
|
10420
|
+
function _o(e) {
|
|
10421
10421
|
return W && ue ? -(e.body.getBoundingClientRect().top - parseInt(getComputedStyle(e.body).marginTop)) : e.defaultView.pageYOffset || (e.documentElement || e.body).scrollTop;
|
|
10422
10422
|
}
|
|
10423
10423
|
function dr(e) {
|
|
@@ -10438,18 +10438,18 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
10438
10438
|
var f = ui(t);
|
|
10439
10439
|
if (l == "local" ? f += bl(e.display) : f -= e.display.viewOffset, l == "page" || l == "window") {
|
|
10440
10440
|
var h = e.display.lineSpace.getBoundingClientRect();
|
|
10441
|
-
f += h.top + (l == "window" ? 0 :
|
|
10441
|
+
f += h.top + (l == "window" ? 0 : _o(It(e)));
|
|
10442
10442
|
var p = h.left + (l == "window" ? 0 : Eo(It(e)));
|
|
10443
10443
|
r.left += p, r.right += p;
|
|
10444
10444
|
}
|
|
10445
10445
|
return r.top += f, r.bottom += f, r;
|
|
10446
10446
|
}
|
|
10447
|
-
function
|
|
10447
|
+
function No(e, t, r) {
|
|
10448
10448
|
if (r == "div")
|
|
10449
10449
|
return t;
|
|
10450
10450
|
var l = t.left, o = t.top;
|
|
10451
10451
|
if (r == "page")
|
|
10452
|
-
l -= Eo(It(e)), o -=
|
|
10452
|
+
l -= Eo(It(e)), o -= _o(It(e));
|
|
10453
10453
|
else if (r == "local" || !r) {
|
|
10454
10454
|
var a = e.display.sizer.getBoundingClientRect();
|
|
10455
10455
|
l += a.left, o += a.top;
|
|
@@ -10646,7 +10646,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
10646
10646
|
}
|
|
10647
10647
|
var p = cr(e, a, f), m;
|
|
10648
10648
|
if (l && p.xRel > 0 && (m = ee(e.doc, p.line).text).length == p.ch) {
|
|
10649
|
-
var w =
|
|
10649
|
+
var w = Le(m, m.length, e.options.tabSize) - m.length;
|
|
10650
10650
|
p = V(p.line, Math.max(0, Math.round((a - Po(e.display).left) / sn(e.display)) - w));
|
|
10651
10651
|
}
|
|
10652
10652
|
return p;
|
|
@@ -10727,7 +10727,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
10727
10727
|
}
|
|
10728
10728
|
return r;
|
|
10729
10729
|
}
|
|
10730
|
-
function
|
|
10730
|
+
function Nn(e) {
|
|
10731
10731
|
e.display.input.showSelection(e.display.input.prepareSelection());
|
|
10732
10732
|
}
|
|
10733
10733
|
function Wo(e, t) {
|
|
@@ -10763,33 +10763,33 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
10763
10763
|
return e.top - t.top || e.left - t.left;
|
|
10764
10764
|
}
|
|
10765
10765
|
function au(e, t, r) {
|
|
10766
|
-
var l = e.display, o = e.doc, a = document.createDocumentFragment(), f = Po(e.display), h = f.left, p = Math.max(l.sizerWidth,
|
|
10766
|
+
var l = e.display, o = e.doc, a = document.createDocumentFragment(), f = Po(e.display), h = f.left, p = Math.max(l.sizerWidth, Ni(e) - l.sizer.offsetLeft) - f.right, m = o.direction == "ltr";
|
|
10767
10767
|
function w(J, $, re, te) {
|
|
10768
10768
|
$ < 0 && ($ = 0), $ = Math.round($), te = Math.round(te), a.appendChild(D("div", null, "CodeMirror-selected", "position: absolute; left: " + J + `px;
|
|
10769
10769
|
top: ` + $ + "px; width: " + (re ?? p - J) + `px;
|
|
10770
10770
|
height: ` + (te - $) + "px"));
|
|
10771
10771
|
}
|
|
10772
10772
|
function S(J, $, re) {
|
|
10773
|
-
var te = ee(o, J), ye = te.text.length, Fe,
|
|
10773
|
+
var te = ee(o, J), ye = te.text.length, Fe, qe;
|
|
10774
10774
|
function Be(Re, gt) {
|
|
10775
10775
|
return wl(e, V(J, Re), "div", te, gt);
|
|
10776
10776
|
}
|
|
10777
10777
|
function xt(Re, gt, et) {
|
|
10778
|
-
var je = Ro(e, te, null, Re), Ue = gt == "ltr" == (et == "after") ? "left" : "right",
|
|
10779
|
-
return Be(
|
|
10778
|
+
var je = Ro(e, te, null, Re), Ue = gt == "ltr" == (et == "after") ? "left" : "right", Ne = et == "after" ? je.begin : je.end - (/\s/.test(te.text.charAt(je.end - 1)) ? 2 : 1);
|
|
10779
|
+
return Be(Ne, Ue)[Ue];
|
|
10780
10780
|
}
|
|
10781
10781
|
var vt = ke(te, o.direction);
|
|
10782
10782
|
return gi(vt, $ || 0, re ?? ye, function(Re, gt, et, je) {
|
|
10783
|
-
var Ue = et == "ltr",
|
|
10784
|
-
if (yt.top -
|
|
10785
|
-
var
|
|
10786
|
-
w(hi,
|
|
10783
|
+
var Ue = et == "ltr", Ne = Be(Re, Ue ? "left" : "right"), yt = Be(gt - 1, Ue ? "right" : "left"), Cn = $ == null && Re == 0, Mi = re == null && gt == ye, rt = je == 0, ei = !vt || je == vt.length - 1;
|
|
10784
|
+
if (yt.top - Ne.top <= 3) {
|
|
10785
|
+
var Qe = (m ? Cn : Mi) && rt, Wr = (m ? Mi : Cn) && ei, hi = Qe ? h : (Ue ? Ne : yt).left, Xi = Wr ? p : (Ue ? yt : Ne).right;
|
|
10786
|
+
w(hi, Ne.top, Xi - hi, Ne.bottom);
|
|
10787
10787
|
} else {
|
|
10788
10788
|
var Gi, ut, wn, Kr;
|
|
10789
|
-
Ue ? (Gi = m && Cn && rt ? h :
|
|
10789
|
+
Ue ? (Gi = m && Cn && rt ? h : Ne.left, ut = m ? p : xt(Re, et, "before"), wn = m ? h : xt(gt, et, "after"), Kr = m && Mi && ei ? p : yt.right) : (Gi = m ? xt(Re, et, "before") : h, ut = !m && Cn && rt ? p : Ne.right, wn = !m && Mi && ei ? h : yt.left, Kr = m ? xt(gt, et, "after") : p), w(Gi, Ne.top, ut - Gi, Ne.bottom), Ne.bottom < yt.top && w(h, Ne.bottom, null, yt.top), w(wn, yt.top, Kr - wn, yt.bottom);
|
|
10790
10790
|
}
|
|
10791
|
-
(!Fe || xl(
|
|
10792
|
-
}), { start: Fe, end:
|
|
10791
|
+
(!Fe || xl(Ne, Fe) < 0) && (Fe = Ne), xl(yt, Fe) < 0 && (Fe = yt), (!qe || xl(Ne, qe) < 0) && (qe = Ne), xl(yt, qe) < 0 && (qe = yt);
|
|
10792
|
+
}), { start: Fe, end: qe };
|
|
10793
10793
|
}
|
|
10794
10794
|
var A = t.from(), M = t.to();
|
|
10795
10795
|
if (A.line == M.line)
|
|
@@ -10914,7 +10914,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
10914
10914
|
var w = Math.min(t.top, (m ? h : t.bottom) - a);
|
|
10915
10915
|
w != o && (f.scrollTop = w);
|
|
10916
10916
|
}
|
|
10917
|
-
var S = e.options.fixedGutter ? 0 : r.gutters.offsetWidth, A = e.curOp && e.curOp.scrollLeft != null ? e.curOp.scrollLeft : r.scroller.scrollLeft - S, M =
|
|
10917
|
+
var S = e.options.fixedGutter ? 0 : r.gutters.offsetWidth, A = e.curOp && e.curOp.scrollLeft != null ? e.curOp.scrollLeft : r.scroller.scrollLeft - S, M = Ni(e) - r.gutters.offsetWidth, E = t.right - t.left > M;
|
|
10918
10918
|
return E && (t.right = t.left + M), t.left < 10 ? f.scrollLeft = 0 : t.left < A ? f.scrollLeft = Math.max(0, t.left + S - (E ? 0 : 10)) : t.right > M + A - 3 && (f.scrollLeft = t.right + (E ? 0 : 10) - M), f;
|
|
10919
10919
|
}
|
|
10920
10920
|
function kr(e, t) {
|
|
@@ -11001,7 +11001,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
11001
11001
|
}, ji.prototype.setScrollTop = function(e) {
|
|
11002
11002
|
this.vert.scrollTop != e && (this.vert.scrollTop = e), this.disableVert && this.enableZeroWidthBar(this.vert, this.disableVert, "vert");
|
|
11003
11003
|
}, ji.prototype.zeroWidthHack = function() {
|
|
11004
|
-
var e =
|
|
11004
|
+
var e = Oe && !ve ? "12px" : "18px";
|
|
11005
11005
|
this.horiz.style.height = this.vert.style.width = e, this.horiz.style.visibility = this.vert.style.visibility = "hidden", this.disableHoriz = new Xt(), this.disableVert = new Xt();
|
|
11006
11006
|
}, ji.prototype.enableZeroWidthBar = function(e, t, r) {
|
|
11007
11007
|
e.style.visibility = "";
|
|
@@ -11110,7 +11110,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
11110
11110
|
}
|
|
11111
11111
|
function gu(e) {
|
|
11112
11112
|
var t = e.cm, r = t.display;
|
|
11113
|
-
e.updatedDisplay && Tl(t), e.barMeasure = Rn(t), r.maxLineChanged && !t.options.lineWrapping && (e.adjustWidthTo = Mo(t, r.maxLine, r.maxLine.text.length).left + 3, t.display.sizerWidth = e.adjustWidthTo, e.barMeasure.scrollWidth = Math.max(r.scroller.clientWidth, r.sizer.offsetLeft + e.adjustWidthTo + Zt(t) + t.display.barWidth), e.maxScrollLeft = Math.max(0, r.sizer.offsetLeft + e.adjustWidthTo -
|
|
11113
|
+
e.updatedDisplay && Tl(t), e.barMeasure = Rn(t), r.maxLineChanged && !t.options.lineWrapping && (e.adjustWidthTo = Mo(t, r.maxLine, r.maxLine.text.length).left + 3, t.display.sizerWidth = e.adjustWidthTo, e.barMeasure.scrollWidth = Math.max(r.scroller.clientWidth, r.sizer.offsetLeft + e.adjustWidthTo + Zt(t) + t.display.barWidth), e.maxScrollLeft = Math.max(0, r.sizer.offsetLeft + e.adjustWidthTo - Ni(t))), (e.updatedDisplay || e.selectionChanged) && (e.preparedSelection = r.input.prepareSelection());
|
|
11114
11114
|
}
|
|
11115
11115
|
function yu(e) {
|
|
11116
11116
|
var t = e.cm;
|
|
@@ -11148,7 +11148,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
11148
11148
|
Ki(e);
|
|
11149
11149
|
}
|
|
11150
11150
|
}
|
|
11151
|
-
function
|
|
11151
|
+
function Ye(e, t) {
|
|
11152
11152
|
return function() {
|
|
11153
11153
|
if (e.curOp)
|
|
11154
11154
|
return t.apply(e, arguments);
|
|
@@ -11172,7 +11172,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
11172
11172
|
}
|
|
11173
11173
|
};
|
|
11174
11174
|
}
|
|
11175
|
-
function
|
|
11175
|
+
function Je(e) {
|
|
11176
11176
|
return function() {
|
|
11177
11177
|
var t = this.cm;
|
|
11178
11178
|
if (!t || t.curOp)
|
|
@@ -11213,7 +11213,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
11213
11213
|
}
|
|
11214
11214
|
var Dl = function(e, t, r) {
|
|
11215
11215
|
var l = e.display;
|
|
11216
|
-
this.viewport = t, this.visible = Il(l, e.doc, t), this.editorIsHidden = !l.wrapper.offsetWidth, this.wrapperHeight = l.wrapper.clientHeight, this.wrapperWidth = l.wrapper.clientWidth, this.oldDisplayWidth =
|
|
11216
|
+
this.viewport = t, this.visible = Il(l, e.doc, t), this.editorIsHidden = !l.wrapper.offsetWidth, this.wrapperHeight = l.wrapper.clientHeight, this.wrapperWidth = l.wrapper.clientWidth, this.oldDisplayWidth = Ni(e), this.force = r, this.dims = pr(e), this.events = [];
|
|
11217
11217
|
};
|
|
11218
11218
|
Dl.prototype.signal = function(e, t) {
|
|
11219
11219
|
wt(e, t) && this.events.push(arguments);
|
|
@@ -11239,7 +11239,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
11239
11239
|
return r;
|
|
11240
11240
|
}
|
|
11241
11241
|
function xu(e) {
|
|
11242
|
-
if (!(!e || !e.activeElt || e.activeElt == tt(
|
|
11242
|
+
if (!(!e || !e.activeElt || e.activeElt == tt(Ke(e.activeElt))) && (e.activeElt.focus(), !/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName) && e.anchorNode && At(document.body, e.anchorNode) && At(document.body, e.focusNode))) {
|
|
11243
11243
|
var t = e.activeElt.ownerDocument, r = t.defaultView.getSelection(), l = t.createRange();
|
|
11244
11244
|
l.setEnd(e.anchorNode, e.anchorOffset), l.collapse(!1), r.removeAllRanges(), r.addRange(l), r.extend(e.focusNode, e.focusOffset);
|
|
11245
11245
|
}
|
|
@@ -11263,7 +11263,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
11263
11263
|
}
|
|
11264
11264
|
function Zo(e, t) {
|
|
11265
11265
|
for (var r = t.viewport, l = !0; ; l = !1) {
|
|
11266
|
-
if (!l || !e.options.lineWrapping || t.oldDisplayWidth ==
|
|
11266
|
+
if (!l || !e.options.lineWrapping || t.oldDisplayWidth == Ni(e)) {
|
|
11267
11267
|
if (r && r.top != null && (r = { top: Math.min(e.doc.height + sr(e.display) - ar(e), r.top) }), t.visible = Il(e.display, e.doc, r), t.visible.from >= e.display.viewFrom && t.visible.to <= e.display.viewTo)
|
|
11268
11268
|
break;
|
|
11269
11269
|
} else l && (t.visible = Il(e.display, e.doc, r));
|
|
@@ -11271,7 +11271,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
11271
11271
|
break;
|
|
11272
11272
|
Tl(e);
|
|
11273
11273
|
var o = Rn(e);
|
|
11274
|
-
|
|
11274
|
+
Nn(e), dn(e, o), Sr(e, o), t.force = !1;
|
|
11275
11275
|
}
|
|
11276
11276
|
t.signal(e, "update", e), (e.display.viewFrom != e.display.reportedViewFrom || e.display.viewTo != e.display.reportedViewTo) && (t.signal(e, "viewportChange", e, e.display.viewFrom, e.display.viewTo), e.display.reportedViewFrom = e.display.viewFrom, e.display.reportedViewTo = e.display.viewTo);
|
|
11277
11277
|
}
|
|
@@ -11280,14 +11280,14 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
11280
11280
|
if (xr(e, r)) {
|
|
11281
11281
|
Tl(e), Zo(e, r);
|
|
11282
11282
|
var l = Rn(e);
|
|
11283
|
-
|
|
11283
|
+
Nn(e), dn(e, l), Sr(e, l), r.finish();
|
|
11284
11284
|
}
|
|
11285
11285
|
}
|
|
11286
11286
|
function Tu(e, t, r) {
|
|
11287
11287
|
var l = e.display, o = e.options.lineNumbers, a = l.lineDiv, f = a.firstChild;
|
|
11288
11288
|
function h(E) {
|
|
11289
11289
|
var z = E.nextSibling;
|
|
11290
|
-
return T &&
|
|
11290
|
+
return T && Oe && e.display.currentWheelTarget == E ? E.style.display = "none" : E.parentNode.removeChild(E), z;
|
|
11291
11291
|
}
|
|
11292
11292
|
for (var p = l.view, m = l.viewFrom, w = 0; w < p.length; w++) {
|
|
11293
11293
|
var S = p[w];
|
|
@@ -11307,7 +11307,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
11307
11307
|
}
|
|
11308
11308
|
function Ir(e) {
|
|
11309
11309
|
var t = e.gutters.offsetWidth;
|
|
11310
|
-
e.sizer.style.marginLeft = t + "px",
|
|
11310
|
+
e.sizer.style.marginLeft = t + "px", Ge(e, "gutterChanged", e);
|
|
11311
11311
|
}
|
|
11312
11312
|
function Sr(e, t) {
|
|
11313
11313
|
e.display.sizer.style.minHeight = t.docHeight + "px", e.display.heightForcer.style.top = t.docHeight + "px", e.display.gutters.style.height = t.docHeight + e.display.barHeight + Zt(e) + "px";
|
|
@@ -11393,7 +11393,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
11393
11393
|
t.deltaMode === 0 && (l = t.deltaX, o = t.deltaY, a = 1);
|
|
11394
11394
|
var f = e.display, h = f.scroller, p = h.scrollWidth > h.clientWidth, m = h.scrollHeight > h.clientHeight;
|
|
11395
11395
|
if (l && p || o && m) {
|
|
11396
|
-
if (o &&
|
|
11396
|
+
if (o && Oe && T) {
|
|
11397
11397
|
e: for (var w = t.target, S = f.view; w != h; w = w.parentNode)
|
|
11398
11398
|
for (var A = 0; A < S.length; A++)
|
|
11399
11399
|
if (S[A].node == w) {
|
|
@@ -11435,7 +11435,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
11435
11435
|
return !0;
|
|
11436
11436
|
}, Pt.prototype.deepCopy = function() {
|
|
11437
11437
|
for (var e = [], t = 0; t < this.ranges.length; t++)
|
|
11438
|
-
e[t] = new Se(
|
|
11438
|
+
e[t] = new Se(Xe(this.ranges[t].anchor), Xe(this.ranges[t].head));
|
|
11439
11439
|
return new Pt(e, this.primIndex);
|
|
11440
11440
|
}, Pt.prototype.somethingSelected = function() {
|
|
11441
11441
|
for (var e = 0; e < this.ranges.length; e++)
|
|
@@ -11532,7 +11532,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
11532
11532
|
return r ? r[Z] : null;
|
|
11533
11533
|
}
|
|
11534
11534
|
function a(Z, J, $) {
|
|
11535
|
-
Va(Z, J, $, l),
|
|
11535
|
+
Va(Z, J, $, l), Ge(Z, "change", Z, t);
|
|
11536
11536
|
}
|
|
11537
11537
|
function f(Z, J) {
|
|
11538
11538
|
for (var $ = [], re = Z; re < J; ++re)
|
|
@@ -11559,7 +11559,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
11559
11559
|
var Y = f(1, m.length - 1);
|
|
11560
11560
|
E > 1 && e.remove(h.line + 1, E - 1), e.insert(h.line + 1, Y);
|
|
11561
11561
|
}
|
|
11562
|
-
|
|
11562
|
+
Ge(e, "change", e, t);
|
|
11563
11563
|
}
|
|
11564
11564
|
function Li(e, t, r) {
|
|
11565
11565
|
function l(o, a, f) {
|
|
@@ -11591,7 +11591,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
11591
11591
|
this.done = [], this.undone = [], this.undoDepth = e ? e.undoDepth : 1 / 0, this.lastModTime = this.lastSelTime = 0, this.lastOp = this.lastSelOp = null, this.lastOrigin = this.lastSelOrigin = null, this.generation = this.maxGeneration = e ? e.maxGeneration : 1;
|
|
11592
11592
|
}
|
|
11593
11593
|
function Mr(e, t) {
|
|
11594
|
-
var r = { from:
|
|
11594
|
+
var r = { from: Xe(t.from), to: Di(t), text: si(e, t.from, t.to) };
|
|
11595
11595
|
return fs(e, r, t.from.line, t.to.line + 1), Li(e, function(l) {
|
|
11596
11596
|
return fs(l, r, t.from.line, t.to.line + 1);
|
|
11597
11597
|
}, !0), r;
|
|
@@ -11754,7 +11754,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
11754
11754
|
vs(e, ys(e, t, l, !0)), !(r && r.scroll === !1) && e.cm && e.cm.getOption("readOnly") != "nocursor" && un(e.cm);
|
|
11755
11755
|
}
|
|
11756
11756
|
function vs(e, t) {
|
|
11757
|
-
t.equals(e.sel) || (e.sel = t, e.cm && (e.cm.curOp.updateInput = 1, e.cm.curOp.selectionChanged = !0, Ot(e.cm)),
|
|
11757
|
+
t.equals(e.sel) || (e.sel = t, e.cm && (e.cm.curOp.updateInput = 1, e.cm.curOp.selectionChanged = !0, Ot(e.cm)), Ge(e, "cursorActivity", e));
|
|
11758
11758
|
}
|
|
11759
11759
|
function gs(e) {
|
|
11760
11760
|
vs(e, ys(e, e.sel, null, !1));
|
|
@@ -11819,7 +11819,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
11819
11819
|
function hn(e, t, r) {
|
|
11820
11820
|
if (e.cm) {
|
|
11821
11821
|
if (!e.cm.curOp)
|
|
11822
|
-
return
|
|
11822
|
+
return Ye(e.cm, hn)(e, t, r);
|
|
11823
11823
|
if (e.cm.state.suppressEdits)
|
|
11824
11824
|
return;
|
|
11825
11825
|
}
|
|
@@ -11894,7 +11894,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
11894
11894
|
}
|
|
11895
11895
|
function Xn(e, t, r, l) {
|
|
11896
11896
|
if (e.cm && !e.cm.curOp)
|
|
11897
|
-
return
|
|
11897
|
+
return Ye(e.cm, Xn)(e, t, r, l);
|
|
11898
11898
|
if (t.to.line < e.first) {
|
|
11899
11899
|
xs(e, t.text.length - 1 - (t.to.line - t.from.line));
|
|
11900
11900
|
return;
|
|
@@ -11938,7 +11938,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
11938
11938
|
removed: t.removed,
|
|
11939
11939
|
origin: t.origin
|
|
11940
11940
|
};
|
|
11941
|
-
S &&
|
|
11941
|
+
S && Ge(e, "change", e, A), w && (e.curOp.changeObjs || (e.curOp.changeObjs = [])).push(A);
|
|
11942
11942
|
}
|
|
11943
11943
|
e.display.selForContextMenu = null;
|
|
11944
11944
|
}
|
|
@@ -11992,7 +11992,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
11992
11992
|
removeInner: function(e, t) {
|
|
11993
11993
|
for (var r = e, l = e + t; r < l; ++r) {
|
|
11994
11994
|
var o = this.lines[r];
|
|
11995
|
-
this.height -= o.height, Ea(o),
|
|
11995
|
+
this.height -= o.height, Ea(o), Ge(o, "delete");
|
|
11996
11996
|
}
|
|
11997
11997
|
this.lines.splice(e, t);
|
|
11998
11998
|
},
|
|
@@ -12113,14 +12113,14 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
12113
12113
|
var a = En(this);
|
|
12114
12114
|
Lt(r, Math.max(0, r.height - a)), e && (kt(e, function() {
|
|
12115
12115
|
Ds(e, r, -a), Ti(e, l, "widget");
|
|
12116
|
-
}),
|
|
12116
|
+
}), Ge(e, "lineWidgetCleared", e, this, l));
|
|
12117
12117
|
}
|
|
12118
12118
|
}, qn.prototype.changed = function() {
|
|
12119
12119
|
var e = this, t = this.height, r = this.doc.cm, l = this.line;
|
|
12120
12120
|
this.height = null;
|
|
12121
12121
|
var o = En(this) - t;
|
|
12122
12122
|
o && (xi(this.doc, l) || Lt(l, l.height + o), r && kt(r, function() {
|
|
12123
|
-
r.curOp.forceUpdate = !0, Ds(r, l, o),
|
|
12123
|
+
r.curOp.forceUpdate = !0, Ds(r, l, o), Ge(r, "lineWidgetChanged", r, e, v(l));
|
|
12124
12124
|
}));
|
|
12125
12125
|
}, Vt(qn);
|
|
12126
12126
|
function Ds(e, t, r) {
|
|
@@ -12135,7 +12135,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
12135
12135
|
Lt(f, f.height + En(o)), p && kr(a, o.height), a.curOp.forceUpdate = !0;
|
|
12136
12136
|
}
|
|
12137
12137
|
return !0;
|
|
12138
|
-
}), a &&
|
|
12138
|
+
}), a && Ge(a, "lineWidgetAdded", a, o, typeof t == "number" ? t : v(t)), o;
|
|
12139
12139
|
}
|
|
12140
12140
|
var Ls = 0, Pi = function(e, t) {
|
|
12141
12141
|
this.lines = [], this.type = t, this.doc = e, this.id = ++Ls;
|
|
@@ -12145,7 +12145,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
12145
12145
|
var e = this.doc.cm, t = e && !e.curOp;
|
|
12146
12146
|
if (t && Wi(e), wt(this, "clear")) {
|
|
12147
12147
|
var r = this.find();
|
|
12148
|
-
r &&
|
|
12148
|
+
r && Ge(this, "clear", r.from, r.to);
|
|
12149
12149
|
}
|
|
12150
12150
|
for (var l = null, o = null, a = 0; a < this.lines.length; ++a) {
|
|
12151
12151
|
var f = this.lines[a], h = An(f.markedSpans, this);
|
|
@@ -12156,7 +12156,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
12156
12156
|
var m = zt(this.lines[p]), w = gl(m);
|
|
12157
12157
|
w > e.display.maxLineLength && (e.display.maxLine = m, e.display.maxLineLength = w, e.display.maxLineChanged = !0);
|
|
12158
12158
|
}
|
|
12159
|
-
l != null && e && this.collapsed && pt(e, l, o + 1), this.lines.length = 0, this.explicitlyCleared = !0, this.atomic && this.doc.cantEdit && (this.doc.cantEdit = !1, e && gs(e.doc)), e &&
|
|
12159
|
+
l != null && e && this.collapsed && pt(e, l, o + 1), this.lines.length = 0, this.explicitlyCleared = !0, this.atomic && this.doc.cantEdit && (this.doc.cantEdit = !1, e && gs(e.doc)), e && Ge(e, "markerCleared", e, this, l, o), t && Ki(e), this.parent && this.parent.clear();
|
|
12160
12160
|
}
|
|
12161
12161
|
}, Pi.prototype.find = function(e, t) {
|
|
12162
12162
|
e == null && this.type == "bookmark" && (e = 1);
|
|
@@ -12178,7 +12178,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
12178
12178
|
var p = En(r) - h;
|
|
12179
12179
|
p && Lt(o, o.height + p);
|
|
12180
12180
|
}
|
|
12181
|
-
|
|
12181
|
+
Ge(l, "markerChanged", l, e);
|
|
12182
12182
|
});
|
|
12183
12183
|
}, Pi.prototype.attachLine = function(e) {
|
|
12184
12184
|
if (!this.lines.length && this.doc.cm) {
|
|
@@ -12194,9 +12194,9 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
12194
12194
|
}, Vt(Pi);
|
|
12195
12195
|
function mn(e, t, r, l, o) {
|
|
12196
12196
|
if (l && l.shared)
|
|
12197
|
-
return
|
|
12197
|
+
return _u(e, t, r, l, o);
|
|
12198
12198
|
if (e.cm && !e.cm.curOp)
|
|
12199
|
-
return
|
|
12199
|
+
return Ye(e.cm, mn)(e, t, r, l, o);
|
|
12200
12200
|
var a = new Pi(e, o), f = Q(t, r);
|
|
12201
12201
|
if (l && Ce(l, a, !1), f > 0 || f == 0 && a.clearWhenEmpty !== !1)
|
|
12202
12202
|
return a;
|
|
@@ -12223,7 +12223,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
12223
12223
|
else if (a.className || a.startStyle || a.endStyle || a.css || a.attributes || a.title)
|
|
12224
12224
|
for (var w = t.line; w <= r.line; w++)
|
|
12225
12225
|
Ti(p, w, "text");
|
|
12226
|
-
a.atomic && gs(p.doc),
|
|
12226
|
+
a.atomic && gs(p.doc), Ge(p, "markerAdded", p, a);
|
|
12227
12227
|
}
|
|
12228
12228
|
return a;
|
|
12229
12229
|
}
|
|
@@ -12237,12 +12237,12 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
12237
12237
|
this.explicitlyCleared = !0;
|
|
12238
12238
|
for (var e = 0; e < this.markers.length; ++e)
|
|
12239
12239
|
this.markers[e].clear();
|
|
12240
|
-
|
|
12240
|
+
Ge(this, "clear");
|
|
12241
12241
|
}
|
|
12242
12242
|
}, Qn.prototype.find = function(e, t) {
|
|
12243
12243
|
return this.primary.find(e, t);
|
|
12244
12244
|
}, Vt(Qn);
|
|
12245
|
-
function
|
|
12245
|
+
function _u(e, t, r, l, o) {
|
|
12246
12246
|
l = Ce(l), l.shared = !1;
|
|
12247
12247
|
var a = [mn(e, t, r, l, o)], f = a[0], h = l.widgetNode;
|
|
12248
12248
|
return Li(e, function(p) {
|
|
@@ -12258,7 +12258,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
12258
12258
|
return t.parent;
|
|
12259
12259
|
});
|
|
12260
12260
|
}
|
|
12261
|
-
function
|
|
12261
|
+
function Nu(e, t) {
|
|
12262
12262
|
for (var r = 0; r < t.length; r++) {
|
|
12263
12263
|
var l = t[r], o = l.find(), a = e.clipPos(o.from), f = e.clipPos(o.to);
|
|
12264
12264
|
if (Q(a, f)) {
|
|
@@ -12310,7 +12310,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
12310
12310
|
var t = Mn(this, this.first, this.first + this.size);
|
|
12311
12311
|
return e === !1 ? t : t.join(e || this.lineSeparator());
|
|
12312
12312
|
},
|
|
12313
|
-
setValue:
|
|
12313
|
+
setValue: Je(function(e) {
|
|
12314
12314
|
var t = V(this.first, 0), r = this.first + this.size - 1;
|
|
12315
12315
|
hn(this, {
|
|
12316
12316
|
from: t,
|
|
@@ -12332,7 +12332,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
12332
12332
|
return t && t.text;
|
|
12333
12333
|
},
|
|
12334
12334
|
getLineHandle: function(e) {
|
|
12335
|
-
if (
|
|
12335
|
+
if (N(this, e))
|
|
12336
12336
|
return ee(this, e);
|
|
12337
12337
|
},
|
|
12338
12338
|
getLineNumber: function(e) {
|
|
@@ -12363,23 +12363,23 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
12363
12363
|
somethingSelected: function() {
|
|
12364
12364
|
return this.sel.somethingSelected();
|
|
12365
12365
|
},
|
|
12366
|
-
setCursor:
|
|
12366
|
+
setCursor: Je(function(e, t, r) {
|
|
12367
12367
|
ps(this, de(this, typeof e == "number" ? V(e, t || 0) : e), null, r);
|
|
12368
12368
|
}),
|
|
12369
|
-
setSelection:
|
|
12369
|
+
setSelection: Je(function(e, t, r) {
|
|
12370
12370
|
ps(this, de(this, e), de(this, t || e), r);
|
|
12371
12371
|
}),
|
|
12372
|
-
extendSelection:
|
|
12372
|
+
extendSelection: Je(function(e, t, r) {
|
|
12373
12373
|
Ml(this, de(this, e), t && de(this, t), r);
|
|
12374
12374
|
}),
|
|
12375
|
-
extendSelections:
|
|
12375
|
+
extendSelections: Je(function(e, t) {
|
|
12376
12376
|
hs(this, no(this, e), t);
|
|
12377
12377
|
}),
|
|
12378
|
-
extendSelectionsBy:
|
|
12378
|
+
extendSelectionsBy: Je(function(e, t) {
|
|
12379
12379
|
var r = Vi(this.sel.ranges, e);
|
|
12380
12380
|
hs(this, no(this, r), t);
|
|
12381
12381
|
}),
|
|
12382
|
-
setSelections:
|
|
12382
|
+
setSelections: Je(function(e, t, r) {
|
|
12383
12383
|
if (e.length) {
|
|
12384
12384
|
for (var l = [], o = 0; o < e.length; o++)
|
|
12385
12385
|
l[o] = new Se(
|
|
@@ -12389,7 +12389,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
12389
12389
|
t == null && (t = Math.min(e.length - 1, this.sel.primIndex)), lt(this, Ut(this.cm, l, t), r);
|
|
12390
12390
|
}
|
|
12391
12391
|
}),
|
|
12392
|
-
addSelection:
|
|
12392
|
+
addSelection: Je(function(e, t, r) {
|
|
12393
12393
|
var l = this.sel.ranges.slice(0);
|
|
12394
12394
|
l.push(new Se(de(this, e), de(this, t || e))), lt(this, Ut(this.cm, l, l.length - 1), r);
|
|
12395
12395
|
}),
|
|
@@ -12412,7 +12412,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
12412
12412
|
l[o] = e;
|
|
12413
12413
|
this.replaceSelections(l, t, r || "+input");
|
|
12414
12414
|
},
|
|
12415
|
-
replaceSelections:
|
|
12415
|
+
replaceSelections: Je(function(e, t, r) {
|
|
12416
12416
|
for (var l = [], o = this.sel, a = 0; a < o.ranges.length; a++) {
|
|
12417
12417
|
var f = o.ranges[a];
|
|
12418
12418
|
l[a] = { from: f.from(), to: f.to(), text: this.splitLines(e[a]), origin: r };
|
|
@@ -12421,16 +12421,16 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
12421
12421
|
hn(this, l[p]);
|
|
12422
12422
|
h ? ms(this, h) : this.cm && un(this.cm);
|
|
12423
12423
|
}),
|
|
12424
|
-
undo:
|
|
12424
|
+
undo: Je(function() {
|
|
12425
12425
|
Bl(this, "undo");
|
|
12426
12426
|
}),
|
|
12427
|
-
redo:
|
|
12427
|
+
redo: Je(function() {
|
|
12428
12428
|
Bl(this, "redo");
|
|
12429
12429
|
}),
|
|
12430
|
-
undoSelection:
|
|
12430
|
+
undoSelection: Je(function() {
|
|
12431
12431
|
Bl(this, "undo", !0);
|
|
12432
12432
|
}),
|
|
12433
|
-
redoSelection:
|
|
12433
|
+
redoSelection: Je(function() {
|
|
12434
12434
|
Bl(this, "redo", !0);
|
|
12435
12435
|
}),
|
|
12436
12436
|
setExtending: function(e) {
|
|
@@ -12471,13 +12471,13 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
12471
12471
|
var t = this.history = new Pl(this.history);
|
|
12472
12472
|
t.done = fn(e.done.slice(0), null, !0), t.undone = fn(e.undone.slice(0), null, !0);
|
|
12473
12473
|
},
|
|
12474
|
-
setGutterMarker:
|
|
12474
|
+
setGutterMarker: Je(function(e, t, r) {
|
|
12475
12475
|
return Gn(this, e, "gutter", function(l) {
|
|
12476
12476
|
var o = l.gutterMarkers || (l.gutterMarkers = {});
|
|
12477
12477
|
return o[t] = r, !r && al(o) && (l.gutterMarkers = null), !0;
|
|
12478
12478
|
});
|
|
12479
12479
|
}),
|
|
12480
|
-
clearGutter:
|
|
12480
|
+
clearGutter: Je(function(e) {
|
|
12481
12481
|
var t = this;
|
|
12482
12482
|
this.iter(function(r) {
|
|
12483
12483
|
r.gutterMarkers && r.gutterMarkers[e] && Gn(t, r, "gutter", function() {
|
|
@@ -12488,7 +12488,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
12488
12488
|
lineInfo: function(e) {
|
|
12489
12489
|
var t;
|
|
12490
12490
|
if (typeof e == "number") {
|
|
12491
|
-
if (!
|
|
12491
|
+
if (!N(this, e) || (t = e, e = ee(this, e), !e))
|
|
12492
12492
|
return null;
|
|
12493
12493
|
} else if (t = v(e), t == null)
|
|
12494
12494
|
return null;
|
|
@@ -12503,7 +12503,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
12503
12503
|
widgets: e.widgets
|
|
12504
12504
|
};
|
|
12505
12505
|
},
|
|
12506
|
-
addLineClass:
|
|
12506
|
+
addLineClass: Je(function(e, t, r) {
|
|
12507
12507
|
return Gn(this, e, t == "gutter" ? "gutter" : "class", function(l) {
|
|
12508
12508
|
var o = t == "text" ? "textClass" : t == "background" ? "bgClass" : t == "gutter" ? "gutterClass" : "wrapClass";
|
|
12509
12509
|
if (!l[o])
|
|
@@ -12516,7 +12516,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
12516
12516
|
return !0;
|
|
12517
12517
|
});
|
|
12518
12518
|
}),
|
|
12519
|
-
removeLineClass:
|
|
12519
|
+
removeLineClass: Je(function(e, t, r) {
|
|
12520
12520
|
return Gn(this, e, t == "gutter" ? "gutter" : "class", function(l) {
|
|
12521
12521
|
var o = t == "text" ? "textClass" : t == "background" ? "bgClass" : t == "gutter" ? "gutterClass" : "wrapClass", a = l[o];
|
|
12522
12522
|
if (a)
|
|
@@ -12533,7 +12533,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
12533
12533
|
return !0;
|
|
12534
12534
|
});
|
|
12535
12535
|
}),
|
|
12536
|
-
addLineWidget:
|
|
12536
|
+
addLineWidget: Je(function(e, t, r) {
|
|
12537
12537
|
return Eu(this, e, t, r);
|
|
12538
12538
|
}),
|
|
12539
12539
|
removeLineWidget: function(e) {
|
|
@@ -12618,7 +12618,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
12618
12618
|
var t = this.first, r = this.first + this.size;
|
|
12619
12619
|
e.from != null && e.from > t && (t = e.from), e.to != null && e.to < r && (r = e.to);
|
|
12620
12620
|
var l = new mt(Mn(this, t, r), e.mode || this.modeOption, t, this.lineSep, this.direction);
|
|
12621
|
-
return e.sharedHist && (l.history = this.history), (this.linked || (this.linked = [])).push({ doc: l, sharedHist: e.sharedHist }), l.linked = [{ doc: this, isParent: !0, sharedHist: e.sharedHist }],
|
|
12621
|
+
return e.sharedHist && (l.history = this.history), (this.linked || (this.linked = [])).push({ doc: l, sharedHist: e.sharedHist }), l.linked = [{ doc: this, isParent: !0, sharedHist: e.sharedHist }], Nu(l, Ps(this)), l;
|
|
12622
12622
|
},
|
|
12623
12623
|
unlinkDoc: function(e) {
|
|
12624
12624
|
if (e instanceof Ae && (e = e.doc), this.linked)
|
|
@@ -12652,7 +12652,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
12652
12652
|
return this.lineSep || `
|
|
12653
12653
|
`;
|
|
12654
12654
|
},
|
|
12655
|
-
setDirection:
|
|
12655
|
+
setDirection: Je(function(e) {
|
|
12656
12656
|
e != "rtl" && (e = "ltr"), e != this.direction && (this.direction = e, this.iter(function(t) {
|
|
12657
12657
|
return t.order = null;
|
|
12658
12658
|
}), this.cm && Lu(this.cm));
|
|
@@ -12667,7 +12667,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
12667
12667
|
if (!(!r || t.isReadOnly()))
|
|
12668
12668
|
if (l && l.length && window.FileReader && window.File)
|
|
12669
12669
|
for (var o = l.length, a = Array(o), f = 0, h = function() {
|
|
12670
|
-
++f == o &&
|
|
12670
|
+
++f == o && Ye(t, function() {
|
|
12671
12671
|
r = de(t.doc, r);
|
|
12672
12672
|
var M = {
|
|
12673
12673
|
from: r,
|
|
@@ -12926,7 +12926,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
12926
12926
|
"Ctrl-Up": "goDocStart",
|
|
12927
12927
|
"Ctrl-Down": "goDocEnd",
|
|
12928
12928
|
fallthrough: ["basic", "emacsy"]
|
|
12929
|
-
}, ci.default =
|
|
12929
|
+
}, ci.default = Oe ? ci.macDefault : ci.pcDefault;
|
|
12930
12930
|
function Gu(e) {
|
|
12931
12931
|
var t = e.split(/-(?!$)/);
|
|
12932
12932
|
e = t[t.length - 1];
|
|
@@ -13073,8 +13073,8 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
13073
13073
|
}
|
|
13074
13074
|
}
|
|
13075
13075
|
var E = function(Y, Z, J) {
|
|
13076
|
-
for (var $ = function(Fe,
|
|
13077
|
-
return
|
|
13076
|
+
for (var $ = function(Fe, qe) {
|
|
13077
|
+
return qe ? new V(r.line, h(Fe, 1), "before") : new V(r.line, Fe, "after");
|
|
13078
13078
|
}; Y >= 0 && Y < o.length; Y += Z) {
|
|
13079
13079
|
var re = o[Y], te = Z > 0 == (re.level != 1), ye = te ? J.begin : h(J.end, -1);
|
|
13080
13080
|
if (re.from <= ye && ye < re.to || (ye = te ? re.from : h(re.to, -1), J.begin <= ye && ye < J.end))
|
|
@@ -13149,7 +13149,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
13149
13149
|
goLineStart: function(e) {
|
|
13150
13150
|
return e.extendSelectionsBy(
|
|
13151
13151
|
function(t) {
|
|
13152
|
-
return
|
|
13152
|
+
return _s(e, t.head.line);
|
|
13153
13153
|
},
|
|
13154
13154
|
{ origin: "+move", bias: 1 }
|
|
13155
13155
|
);
|
|
@@ -13157,7 +13157,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
13157
13157
|
goLineStartSmart: function(e) {
|
|
13158
13158
|
return e.extendSelectionsBy(
|
|
13159
13159
|
function(t) {
|
|
13160
|
-
return
|
|
13160
|
+
return Ns(e, t.head);
|
|
13161
13161
|
},
|
|
13162
13162
|
{ origin: "+move", bias: 1 }
|
|
13163
13163
|
);
|
|
@@ -13185,7 +13185,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
13185
13185
|
goLineLeftSmart: function(e) {
|
|
13186
13186
|
return e.extendSelectionsBy(function(t) {
|
|
13187
13187
|
var r = e.cursorCoords(t.head, "div").top + 5, l = e.coordsChar({ left: 0, top: r }, "div");
|
|
13188
|
-
return l.ch < e.getLine(l.line).search(/\S/) ?
|
|
13188
|
+
return l.ch < e.getLine(l.line).search(/\S/) ? Ns(e, t.head) : l;
|
|
13189
13189
|
}, Dt);
|
|
13190
13190
|
},
|
|
13191
13191
|
goLineUp: function(e) {
|
|
@@ -13256,7 +13256,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
13256
13256
|
},
|
|
13257
13257
|
insertSoftTab: function(e) {
|
|
13258
13258
|
for (var t = [], r = e.listSelections(), l = e.options.tabSize, o = 0; o < r.length; o++) {
|
|
13259
|
-
var a = r[o].from(), f =
|
|
13259
|
+
var a = r[o].from(), f = Le(e.getLine(a.line), a.ch, l);
|
|
13260
13260
|
t.push(Sn(l - f % l));
|
|
13261
13261
|
}
|
|
13262
13262
|
e.replaceSelections(t);
|
|
@@ -13317,7 +13317,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
13317
13317
|
return e.toggleOverwrite();
|
|
13318
13318
|
}
|
|
13319
13319
|
};
|
|
13320
|
-
function
|
|
13320
|
+
function _s(e, t) {
|
|
13321
13321
|
var r = ee(e.doc, t), l = zt(r);
|
|
13322
13322
|
return l != r && (t = v(l)), Er(!0, e, l, t, 1);
|
|
13323
13323
|
}
|
|
@@ -13325,15 +13325,15 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
13325
13325
|
var r = ee(e.doc, t), l = Aa(r);
|
|
13326
13326
|
return l != r && (t = v(l)), Er(!0, e, r, t, -1);
|
|
13327
13327
|
}
|
|
13328
|
-
function
|
|
13329
|
-
var r =
|
|
13328
|
+
function Ns(e, t) {
|
|
13329
|
+
var r = _s(e, t.line), l = ee(e.doc, r.line), o = ke(l, e.doc.direction);
|
|
13330
13330
|
if (!o || o[0].level == 0) {
|
|
13331
13331
|
var a = Math.max(r.ch, l.text.search(/\S/)), f = t.line == r.line && t.ch <= a && t.ch;
|
|
13332
13332
|
return V(r.line, f ? 0 : a, r.sticky);
|
|
13333
13333
|
}
|
|
13334
13334
|
return r;
|
|
13335
13335
|
}
|
|
13336
|
-
function
|
|
13336
|
+
function _l(e, t, r) {
|
|
13337
13337
|
if (typeof t == "string" && (t = el[t], !t))
|
|
13338
13338
|
return !1;
|
|
13339
13339
|
e.display.input.ensurePolled();
|
|
@@ -13368,25 +13368,25 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
13368
13368
|
}
|
|
13369
13369
|
function Hs(e, t, r, l) {
|
|
13370
13370
|
var o = Qu(e, t, l);
|
|
13371
|
-
return o == "multi" && (e.state.keySeq = t), o == "handled" &&
|
|
13371
|
+
return o == "multi" && (e.state.keySeq = t), o == "handled" && Ge(e, "keyHandled", e, t, r), (o == "handled" || o == "multi") && (nt(r), yr(e)), !!o;
|
|
13372
13372
|
}
|
|
13373
13373
|
function zs(e, t) {
|
|
13374
13374
|
var r = Es(t, !0);
|
|
13375
13375
|
return r ? t.shiftKey && !e.state.keySeq ? tl(e, "Shift-" + r, t, function(l) {
|
|
13376
|
-
return
|
|
13376
|
+
return _l(e, l, !0);
|
|
13377
13377
|
}) || tl(e, r, t, function(l) {
|
|
13378
13378
|
if (typeof l == "string" ? /^go[A-Z]/.test(l) : l.motion)
|
|
13379
|
-
return
|
|
13379
|
+
return _l(e, l);
|
|
13380
13380
|
}) : tl(e, r, t, function(l) {
|
|
13381
|
-
return
|
|
13381
|
+
return _l(e, l);
|
|
13382
13382
|
}) : !1;
|
|
13383
13383
|
}
|
|
13384
13384
|
function $u(e, t, r) {
|
|
13385
13385
|
return tl(e, "'" + r + "'", t, function(l) {
|
|
13386
|
-
return
|
|
13386
|
+
return _l(e, l, !0);
|
|
13387
13387
|
});
|
|
13388
13388
|
}
|
|
13389
|
-
var
|
|
13389
|
+
var _r = null;
|
|
13390
13390
|
function Rs(e) {
|
|
13391
13391
|
var t = this;
|
|
13392
13392
|
if (!(e.target && e.target != t.display.input.getField()) && (t.curOp.focus = tt(Bt(t)), !Ee(t, e))) {
|
|
@@ -13394,7 +13394,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
13394
13394
|
var r = e.keyCode;
|
|
13395
13395
|
t.display.shift = r == 16 || e.shiftKey;
|
|
13396
13396
|
var l = zs(t, e);
|
|
13397
|
-
U && (
|
|
13397
|
+
U && (_r = l ? r : null, !l && r == 88 && !fl && (Oe ? e.metaKey : e.ctrlKey) && t.replaceSelection("", null, "cut")), u && !Oe && !l && r == 46 && e.shiftKey && !e.ctrlKey && document.execCommand && document.execCommand("cut"), r == 18 && !/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className) && ed(t);
|
|
13398
13398
|
}
|
|
13399
13399
|
}
|
|
13400
13400
|
function ed(e) {
|
|
@@ -13410,10 +13410,10 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
13410
13410
|
}
|
|
13411
13411
|
function js(e) {
|
|
13412
13412
|
var t = this;
|
|
13413
|
-
if (!(e.target && e.target != t.display.input.getField()) && !(di(t.display, e) || Ee(t, e) || e.ctrlKey && !e.altKey ||
|
|
13413
|
+
if (!(e.target && e.target != t.display.input.getField()) && !(di(t.display, e) || Ee(t, e) || e.ctrlKey && !e.altKey || Oe && e.metaKey)) {
|
|
13414
13414
|
var r = e.keyCode, l = e.charCode;
|
|
13415
|
-
if (U && r ==
|
|
13416
|
-
|
|
13415
|
+
if (U && r == _r) {
|
|
13416
|
+
_r = null, nt(e);
|
|
13417
13417
|
return;
|
|
13418
13418
|
}
|
|
13419
13419
|
if (!(U && (!e.which || e.which < 10) && zs(t, e))) {
|
|
@@ -13422,16 +13422,16 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
13422
13422
|
}
|
|
13423
13423
|
}
|
|
13424
13424
|
}
|
|
13425
|
-
var td = 400,
|
|
13425
|
+
var td = 400, Nr = function(e, t, r) {
|
|
13426
13426
|
this.time = e, this.pos = t, this.button = r;
|
|
13427
13427
|
};
|
|
13428
|
-
|
|
13428
|
+
Nr.prototype.compare = function(e, t, r) {
|
|
13429
13429
|
return this.time + td > e && Q(t, this.pos) == 0 && r == this.button;
|
|
13430
13430
|
};
|
|
13431
13431
|
var il, nl;
|
|
13432
13432
|
function id(e, t) {
|
|
13433
13433
|
var r = +/* @__PURE__ */ new Date();
|
|
13434
|
-
return nl && nl.compare(r, e, t) ? (il = nl = null, "triple") : il && il.compare(r, e, t) ? (nl = new
|
|
13434
|
+
return nl && nl.compare(r, e, t) ? (il = nl = null, "triple") : il && il.compare(r, e, t) ? (nl = new Nr(r, e, t), il = null, "double") : (il = new Nr(r, e, t), nl = null, "single");
|
|
13435
13435
|
}
|
|
13436
13436
|
function Ws(e) {
|
|
13437
13437
|
var t = this, r = t.display;
|
|
@@ -13467,10 +13467,10 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
13467
13467
|
function ld(e, t, r) {
|
|
13468
13468
|
var l = e.getOption("configureMouse"), o = l ? l(e, t, r) : {};
|
|
13469
13469
|
if (o.unit == null) {
|
|
13470
|
-
var a =
|
|
13470
|
+
var a = $e ? r.shiftKey && r.metaKey : r.altKey;
|
|
13471
13471
|
o.unit = a ? "rectangle" : t == "single" ? "char" : t == "double" ? "word" : "line";
|
|
13472
13472
|
}
|
|
13473
|
-
return (o.extend == null || e.doc.extend) && (o.extend = e.doc.extend || r.shiftKey), o.addNew == null && (o.addNew =
|
|
13473
|
+
return (o.extend == null || e.doc.extend) && (o.extend = e.doc.extend || r.shiftKey), o.addNew == null && (o.addNew = Oe ? r.metaKey : r.ctrlKey), o.moveOnDrag == null && (o.moveOnDrag = !(Oe ? r.altKey : r.ctrlKey)), o;
|
|
13474
13474
|
}
|
|
13475
13475
|
function rd(e, t, r, l) {
|
|
13476
13476
|
x ? setTimeout(ae(Ko, e), 0) : e.curOp.focus = tt(Bt(e));
|
|
@@ -13478,7 +13478,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
13478
13478
|
e.options.dragDrop && Ql && !e.isReadOnly() && r == "single" && (f = a.contains(t)) > -1 && (Q((f = a.ranges[f]).from(), t) < 0 || t.xRel > 0) && (Q(f.to(), t) > 0 || t.xRel < 0) ? od(e, l, t, o) : sd(e, l, t, o);
|
|
13479
13479
|
}
|
|
13480
13480
|
function od(e, t, r, l) {
|
|
13481
|
-
var o = e.display, a = !1, f =
|
|
13481
|
+
var o = e.display, a = !1, f = Ye(e, function(m) {
|
|
13482
13482
|
T && (o.scroller.draggable = !1), e.state.draggingText = !1, e.state.delayingBlurEvent && (e.hasFocus() ? e.state.delayingBlurEvent = !1 : br(e)), it(o.wrapper.ownerDocument, "mouseup", f), it(o.wrapper.ownerDocument, "mousemove", h), it(o.scroller, "dragstart", p), it(o.scroller, "drop", f), a || (nt(m), l.addNew || Ml(e.doc, r, null, null, l.extend), T && !se || x && C == 9 ? setTimeout(function() {
|
|
13483
13483
|
o.wrapper.ownerDocument.body.focus({ preventScroll: !0 }), o.input.focus();
|
|
13484
13484
|
}, 20) : o.input.focus());
|
|
@@ -13525,9 +13525,9 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
13525
13525
|
function A(J) {
|
|
13526
13526
|
if (Q(S, J) != 0)
|
|
13527
13527
|
if (S = J, l.unit == "rectangle") {
|
|
13528
|
-
for (var $ = [], re = e.options.tabSize, te =
|
|
13528
|
+
for (var $ = [], re = e.options.tabSize, te = Le(ee(a, r.line).text, r.ch, re), ye = Le(ee(a, J.line).text, J.ch, re), Fe = Math.min(te, ye), qe = Math.max(te, ye), Be = Math.min(r.line, J.line), xt = Math.min(e.lastLine(), Math.max(r.line, J.line)); Be <= xt; Be++) {
|
|
13529
13529
|
var vt = ee(a, Be).text, Re = Yt(vt, Fe, re);
|
|
13530
|
-
Fe ==
|
|
13530
|
+
Fe == qe ? $.push(new Se(V(Be, Re), V(Be, Re))) : vt.length > Re && $.push(new Se(V(Be, Re), V(Be, Yt(vt, qe, re))));
|
|
13531
13531
|
}
|
|
13532
13532
|
$.length || $.push(new Se(r, r)), lt(
|
|
13533
13533
|
a,
|
|
@@ -13537,8 +13537,8 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
13537
13537
|
} else {
|
|
13538
13538
|
var gt = f, et = Ks(e, J, l.unit), je = gt.anchor, Ue;
|
|
13539
13539
|
Q(et.anchor, je) > 0 ? (Ue = et.head, je = tn(gt.from(), et.anchor)) : (Ue = et.anchor, je = ht(gt.to(), et.head));
|
|
13540
|
-
var
|
|
13541
|
-
|
|
13540
|
+
var Ne = p.ranges.slice(0);
|
|
13541
|
+
Ne[h] = ad(e, new Se(de(a, je), Ue)), lt(a, Ut(e, Ne, h), Gt);
|
|
13542
13542
|
}
|
|
13543
13543
|
}
|
|
13544
13544
|
var M = o.wrapper.getBoundingClientRect(), E = 0;
|
|
@@ -13548,12 +13548,12 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
13548
13548
|
if (Q(re, S) != 0) {
|
|
13549
13549
|
e.curOp.focus = tt(Bt(e)), A(re);
|
|
13550
13550
|
var te = Il(o, a);
|
|
13551
|
-
(re.line >= te.to || re.line < te.from) && setTimeout(
|
|
13551
|
+
(re.line >= te.to || re.line < te.from) && setTimeout(Ye(e, function() {
|
|
13552
13552
|
E == $ && z(J);
|
|
13553
13553
|
}), 150);
|
|
13554
13554
|
} else {
|
|
13555
13555
|
var ye = J.clientY < M.top ? -20 : J.clientY > M.bottom ? 20 : 0;
|
|
13556
|
-
ye && setTimeout(
|
|
13556
|
+
ye && setTimeout(Ye(e, function() {
|
|
13557
13557
|
E == $ && (o.scroller.scrollTop += ye, z(J));
|
|
13558
13558
|
}), 50);
|
|
13559
13559
|
}
|
|
@@ -13561,9 +13561,9 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
13561
13561
|
function X(J) {
|
|
13562
13562
|
e.state.selectingText = !1, E = 1 / 0, J && (nt(J), o.input.focus()), it(o.wrapper.ownerDocument, "mousemove", Y), it(o.wrapper.ownerDocument, "mouseup", Z), a.history.lastSelOrigin = null;
|
|
13563
13563
|
}
|
|
13564
|
-
var Y =
|
|
13564
|
+
var Y = Ye(e, function(J) {
|
|
13565
13565
|
J.buttons === 0 || !Et(J) ? X(J) : z(J);
|
|
13566
|
-
}), Z =
|
|
13566
|
+
}), Z = Ye(e, X);
|
|
13567
13567
|
e.state.selectingText = Z, le(o.wrapper.ownerDocument, "mousemove", Y), le(o.wrapper.ownerDocument, "mouseup", Z);
|
|
13568
13568
|
}
|
|
13569
13569
|
function ad(e, t) {
|
|
@@ -13624,11 +13624,11 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
13624
13624
|
return wt(e, "gutterContextMenu") ? Xs(e, t, "gutterContextMenu", !1) : !1;
|
|
13625
13625
|
}
|
|
13626
13626
|
function Ys(e) {
|
|
13627
|
-
e.display.wrapper.className = e.display.wrapper.className.replace(/\s*cm-s-\S+/g, "") + e.options.theme.replace(/(^|\s)\s*/g, " cm-s-"),
|
|
13627
|
+
e.display.wrapper.className = e.display.wrapper.className.replace(/\s*cm-s-\S+/g, "") + e.options.theme.replace(/(^|\s)\s*/g, " cm-s-"), _n(e);
|
|
13628
13628
|
}
|
|
13629
13629
|
var yn = { toString: function() {
|
|
13630
13630
|
return "CodeMirror.Init";
|
|
13631
|
-
} }, Js = {},
|
|
13631
|
+
} }, Js = {}, Nl = {};
|
|
13632
13632
|
function dd(e) {
|
|
13633
13633
|
var t = e.optionHandlers;
|
|
13634
13634
|
function r(l, o, a, f) {
|
|
@@ -13641,7 +13641,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
13641
13641
|
}, !0), r("mode", null, function(l, o) {
|
|
13642
13642
|
l.doc.modeOption = o, Pr(l);
|
|
13643
13643
|
}, !0), r("indentUnit", 2, Pr, !0), r("indentWithTabs", !1), r("smartIndent", !0), r("tabSize", 4, function(l) {
|
|
13644
|
-
Kn(l),
|
|
13644
|
+
Kn(l), _n(l), pt(l);
|
|
13645
13645
|
}, !0), r("lineSeparator", null, function(l, o) {
|
|
13646
13646
|
if (l.doc.lineSep = o, !!o) {
|
|
13647
13647
|
var a = [], f = l.doc.first;
|
|
@@ -13686,13 +13686,13 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
13686
13686
|
l.display.gutterSpecs = Dr(l.options.gutters, o), Wn(l);
|
|
13687
13687
|
}, !0), r("firstLineNumber", 1, Wn, !0), r("lineNumberFormatter", function(l) {
|
|
13688
13688
|
return l;
|
|
13689
|
-
}, Wn, !0), r("showCursorWhenSelecting", !1,
|
|
13689
|
+
}, Wn, !0), r("showCursorWhenSelecting", !1, Nn, !0), r("resetSelectionOnContextMenu", !0), r("lineWiseCopyCut", !0), r("pasteLinesPerSelection", !0), r("selectionsMayTouch", !1), r("readOnly", !1, function(l, o) {
|
|
13690
13690
|
o == "nocursor" && (an(l), l.display.input.blur()), l.display.input.readOnlyChanged(o);
|
|
13691
13691
|
}), r("screenReaderLabel", null, function(l, o) {
|
|
13692
13692
|
o = o === "" ? null : o, l.display.input.screenReaderLabelChanged(o);
|
|
13693
13693
|
}), r("disableInput", !1, function(l, o) {
|
|
13694
13694
|
o || l.display.input.reset();
|
|
13695
|
-
}, !0), r("dragDrop", !0, fd), r("allowDropFileTypes", null), r("cursorBlinkRate", 530), r("cursorScrollMargin", 0), r("cursorHeight", 1,
|
|
13695
|
+
}, !0), r("dragDrop", !0, fd), r("allowDropFileTypes", null), r("cursorBlinkRate", 530), r("cursorScrollMargin", 0), r("cursorHeight", 1, Nn, !0), r("singleCursorHeightPerLine", !0, Nn, !0), r("workTime", 100), r("workDelay", 100), r("flattenSpans", !0, Kn, !0), r("addModeClass", !1, Kn, !0), r("pollInterval", 100), r("undoDepth", 200, function(l, o) {
|
|
13696
13696
|
return l.doc.history.undoDepth = o;
|
|
13697
13697
|
}), r("historyEventDelay", 1250), r("viewportMargin", 10, function(l) {
|
|
13698
13698
|
return l.refresh();
|
|
@@ -13712,7 +13712,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
13712
13712
|
}
|
|
13713
13713
|
}
|
|
13714
13714
|
function cd(e) {
|
|
13715
|
-
e.options.lineWrapping ? (Tt(e.display.wrapper, "CodeMirror-wrap"), e.display.sizer.style.minWidth = "", e.display.sizerWidth = null) : (ft(e.display.wrapper, "CodeMirror-wrap"), rr(e)), vr(e), pt(e),
|
|
13715
|
+
e.options.lineWrapping ? (Tt(e.display.wrapper, "CodeMirror-wrap"), e.display.sizer.style.minWidth = "", e.display.sizerWidth = null) : (ft(e.display.wrapper, "CodeMirror-wrap"), rr(e)), vr(e), pt(e), _n(e), setTimeout(function() {
|
|
13716
13716
|
return dn(e);
|
|
13717
13717
|
}, 100);
|
|
13718
13718
|
}
|
|
@@ -13751,17 +13751,17 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
13751
13751
|
}, 20), hd(this), Wu(), Wi(this), this.curOp.forceUpdate = !0, ss(this, l), t.autofocus && !be || this.hasFocus() ? setTimeout(function() {
|
|
13752
13752
|
r.hasFocus() && !r.state.focused && Cr(r);
|
|
13753
13753
|
}, 20) : an(this);
|
|
13754
|
-
for (var f in
|
|
13755
|
-
|
|
13754
|
+
for (var f in Nl)
|
|
13755
|
+
Nl.hasOwnProperty(f) && Nl[f](this, t[f], yn);
|
|
13756
13756
|
es(this), t.finishInit && t.finishInit(this);
|
|
13757
13757
|
for (var h = 0; h < zr.length; ++h)
|
|
13758
13758
|
zr[h](this);
|
|
13759
13759
|
Ki(this), T && t.lineWrapping && getComputedStyle(a.lineDiv).textRendering == "optimizelegibility" && (a.lineDiv.style.textRendering = "auto");
|
|
13760
13760
|
}
|
|
13761
|
-
Ae.defaults = Js, Ae.optionHandlers =
|
|
13761
|
+
Ae.defaults = Js, Ae.optionHandlers = Nl;
|
|
13762
13762
|
function hd(e) {
|
|
13763
13763
|
var t = e.display;
|
|
13764
|
-
le(t.scroller, "mousedown",
|
|
13764
|
+
le(t.scroller, "mousedown", Ye(e, Ws)), x && C < 11 ? le(t.scroller, "dblclick", Ye(e, function(p) {
|
|
13765
13765
|
if (!Ee(e, p)) {
|
|
13766
13766
|
var m = zi(e, p);
|
|
13767
13767
|
if (!(!m || Hr(e, p) || di(e.display, p))) {
|
|
@@ -13832,7 +13832,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
13832
13832
|
start: function(p) {
|
|
13833
13833
|
return Uu(e, p);
|
|
13834
13834
|
},
|
|
13835
|
-
drop:
|
|
13835
|
+
drop: Ye(e, Ru),
|
|
13836
13836
|
leave: function(p) {
|
|
13837
13837
|
Ee(e, p) || Ms(e);
|
|
13838
13838
|
}
|
|
@@ -13840,7 +13840,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
13840
13840
|
var h = t.input.getField();
|
|
13841
13841
|
le(h, "keyup", function(p) {
|
|
13842
13842
|
return Us.call(e, p);
|
|
13843
|
-
}), le(h, "keydown",
|
|
13843
|
+
}), le(h, "keydown", Ye(e, Rs)), le(h, "keypress", Ye(e, js)), le(h, "focus", function(p) {
|
|
13844
13844
|
return Cr(e, p);
|
|
13845
13845
|
}), le(h, "blur", function(p) {
|
|
13846
13846
|
return an(e, p);
|
|
@@ -13853,7 +13853,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
13853
13853
|
function ll(e, t, r, l) {
|
|
13854
13854
|
var o = e.doc, a;
|
|
13855
13855
|
r == null && (r = "add"), r == "smart" && (o.mode.indent ? a = Fn(e, t).state : r = "prev");
|
|
13856
|
-
var f = e.options.tabSize, h = ee(o, t), p =
|
|
13856
|
+
var f = e.options.tabSize, h = ee(o, t), p = Le(h.text, null, f);
|
|
13857
13857
|
h.stateAfter && (h.stateAfter = null);
|
|
13858
13858
|
var m = h.text.match(/^\s*/)[0], w;
|
|
13859
13859
|
if (!l && !/\S/.test(h.text))
|
|
@@ -13863,7 +13863,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
13863
13863
|
return;
|
|
13864
13864
|
r = "prev";
|
|
13865
13865
|
}
|
|
13866
|
-
r == "prev" ? t > o.first ? w =
|
|
13866
|
+
r == "prev" ? t > o.first ? w = Le(ee(o, t - 1).text, null, f) : w = 0 : r == "add" ? w = p + e.options.indentUnit : r == "subtract" ? w = p - e.options.indentUnit : typeof r == "number" && (w = p + r), w = Math.max(0, w);
|
|
13867
13867
|
var S = "", A = 0;
|
|
13868
13868
|
if (e.options.indentWithTabs)
|
|
13869
13869
|
for (var M = Math.floor(w / f); M; --M)
|
|
@@ -13909,7 +13909,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
13909
13909
|
text: m ? m[A % m.length] : p,
|
|
13910
13910
|
origin: o || (h ? "paste" : e.state.cutIncoming > f ? "cut" : "+input")
|
|
13911
13911
|
};
|
|
13912
|
-
hn(e.doc, X),
|
|
13912
|
+
hn(e.doc, X), Ge(e, "inputRead", e, X);
|
|
13913
13913
|
}
|
|
13914
13914
|
t && !h && Qs(e, t), un(e), e.curOp.updateInput < 2 && (e.curOp.updateInput = S), e.curOp.typing = !0, e.state.pasteIncoming = e.state.cutIncoming = -1;
|
|
13915
13915
|
}
|
|
@@ -13933,7 +13933,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
13933
13933
|
break;
|
|
13934
13934
|
}
|
|
13935
13935
|
} else a.electricInput && a.electricInput.test(ee(e.doc, o.head.line).text.slice(0, o.head.ch)) && (f = ll(e, o.head.line, "smart"));
|
|
13936
|
-
f &&
|
|
13936
|
+
f && Ge(e, "electricInput", e, o.head.line);
|
|
13937
13937
|
}
|
|
13938
13938
|
}
|
|
13939
13939
|
}
|
|
@@ -13960,7 +13960,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
13960
13960
|
},
|
|
13961
13961
|
setOption: function(l, o) {
|
|
13962
13962
|
var a = this.options, f = a[l];
|
|
13963
|
-
a[l] == o && l != "mode" || (a[l] = o, t.hasOwnProperty(l) &&
|
|
13963
|
+
a[l] == o && l != "mode" || (a[l] = o, t.hasOwnProperty(l) && Ye(this, t[l])(this, o, f), Ve(this, "optionChange", this, l));
|
|
13964
13964
|
},
|
|
13965
13965
|
getOption: function(l) {
|
|
13966
13966
|
return this.options[l];
|
|
@@ -14003,7 +14003,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
14003
14003
|
}
|
|
14004
14004
|
}),
|
|
14005
14005
|
indentLine: at(function(l, o, a) {
|
|
14006
|
-
typeof o != "string" && typeof o != "number" && (o == null ? o = this.options.smartIndent ? "smart" : "prev" : o = o ? "add" : "subtract"),
|
|
14006
|
+
typeof o != "string" && typeof o != "number" && (o == null ? o = this.options.smartIndent ? "smart" : "prev" : o = o ? "add" : "subtract"), N(this.doc, l) && ll(this, l, o, a);
|
|
14007
14007
|
}),
|
|
14008
14008
|
indentSelection: at(function(l) {
|
|
14009
14009
|
for (var o = this.doc.sel.ranges, a = -1, f = 0; f < o.length; f++) {
|
|
@@ -14086,10 +14086,10 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
14086
14086
|
return wl(this, de(this.doc, l), o || "page");
|
|
14087
14087
|
},
|
|
14088
14088
|
coordsChar: function(l, o) {
|
|
14089
|
-
return l =
|
|
14089
|
+
return l = No(this, l, o || "page"), cr(this, l.left, l.top);
|
|
14090
14090
|
},
|
|
14091
14091
|
lineAtHeight: function(l, o) {
|
|
14092
|
-
return l =
|
|
14092
|
+
return l = No(this, { top: l, left: 0 }, o || "page").top, I(this.doc, l + this.display.viewOffset);
|
|
14093
14093
|
},
|
|
14094
14094
|
heightAtLine: function(l, o, a) {
|
|
14095
14095
|
var f = !1, h;
|
|
@@ -14214,7 +14214,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
14214
14214
|
height: l.scrollHeight - Zt(this) - this.display.barHeight,
|
|
14215
14215
|
width: l.scrollWidth - Zt(this) - this.display.barWidth,
|
|
14216
14216
|
clientHeight: ar(this),
|
|
14217
|
-
clientWidth:
|
|
14217
|
+
clientWidth: Ni(this)
|
|
14218
14218
|
};
|
|
14219
14219
|
},
|
|
14220
14220
|
scrollIntoView: at(function(l, o) {
|
|
@@ -14248,11 +14248,11 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
14248
14248
|
},
|
|
14249
14249
|
refresh: at(function() {
|
|
14250
14250
|
var l = this.display.cachedTextHeight;
|
|
14251
|
-
pt(this), this.curOp.forceUpdate = !0,
|
|
14251
|
+
pt(this), this.curOp.forceUpdate = !0, _n(this), Hn(this, this.doc.scrollLeft, this.doc.scrollTop), Ir(this.display), (l == null || Math.abs(l - on(this.display)) > 0.5 || this.options.lineWrapping) && vr(this), Ve(this, "refresh", this);
|
|
14252
14252
|
}),
|
|
14253
14253
|
swapDoc: at(function(l) {
|
|
14254
14254
|
var o = this.doc;
|
|
14255
|
-
return o.cm = null, this.state.selectingText && this.state.selectingText(), ss(this, l),
|
|
14255
|
+
return o.cm = null, this.state.selectingText && this.state.selectingText(), ss(this, l), _n(this), this.display.input.reset(), Hn(this, l.scrollLeft, l.scrollTop), this.curOp.forceScroll = !0, Ge(this, "swapDoc", this, o), o;
|
|
14256
14256
|
}),
|
|
14257
14257
|
phrase: function(l) {
|
|
14258
14258
|
var o = this.options.phrases;
|
|
@@ -14336,10 +14336,10 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
14336
14336
|
}
|
|
14337
14337
|
return m;
|
|
14338
14338
|
}
|
|
14339
|
-
var
|
|
14339
|
+
var Pe = function(e) {
|
|
14340
14340
|
this.cm = e, this.lastAnchorNode = this.lastAnchorOffset = this.lastFocusNode = this.lastFocusOffset = null, this.polling = new Xt(), this.composing = null, this.gracePeriod = !1, this.readDOMTimeout = null;
|
|
14341
14341
|
};
|
|
14342
|
-
|
|
14342
|
+
Pe.prototype.init = function(e) {
|
|
14343
14343
|
var t = this, r = this, l = r.cm, o = r.div = e.lineDiv;
|
|
14344
14344
|
o.contentEditable = !0, Ur(o, l.options.spellcheck, l.options.autocorrect, l.options.autocapitalize);
|
|
14345
14345
|
function a(h) {
|
|
@@ -14352,7 +14352,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
14352
14352
|
return !1;
|
|
14353
14353
|
}
|
|
14354
14354
|
le(o, "paste", function(h) {
|
|
14355
|
-
!a(h) || Ee(l, h) || qs(h, l) || C <= 11 && setTimeout(
|
|
14355
|
+
!a(h) || Ee(l, h) || qs(h, l) || C <= 11 && setTimeout(Ye(l, function() {
|
|
14356
14356
|
return t.updateFromDOM();
|
|
14357
14357
|
}), 20);
|
|
14358
14358
|
}), le(o, "compositionstart", function(h) {
|
|
@@ -14389,23 +14389,23 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
14389
14389
|
var w = $s(), S = w.firstChild;
|
|
14390
14390
|
Ur(S), l.display.lineSpace.insertBefore(w, l.display.lineSpace.firstChild), S.value = jt.text.join(`
|
|
14391
14391
|
`);
|
|
14392
|
-
var A = tt(
|
|
14392
|
+
var A = tt(Ke(o));
|
|
14393
14393
|
Bi(S), setTimeout(function() {
|
|
14394
14394
|
l.display.lineSpace.removeChild(w), A.focus(), A == o && r.showPrimarySelection();
|
|
14395
14395
|
}, 50);
|
|
14396
14396
|
}
|
|
14397
14397
|
}
|
|
14398
14398
|
le(o, "copy", f), le(o, "cut", f);
|
|
14399
|
-
},
|
|
14399
|
+
}, Pe.prototype.screenReaderLabelChanged = function(e) {
|
|
14400
14400
|
e ? this.div.setAttribute("aria-label", e) : this.div.removeAttribute("aria-label");
|
|
14401
|
-
},
|
|
14401
|
+
}, Pe.prototype.prepareSelection = function() {
|
|
14402
14402
|
var e = Wo(this.cm, !1);
|
|
14403
|
-
return e.focus = tt(
|
|
14404
|
-
},
|
|
14403
|
+
return e.focus = tt(Ke(this.div)) == this.div, e;
|
|
14404
|
+
}, Pe.prototype.showSelection = function(e, t) {
|
|
14405
14405
|
!e || !this.cm.display.view.length || ((e.focus || t) && this.showPrimarySelection(), this.showMultipleSelections(e));
|
|
14406
|
-
},
|
|
14406
|
+
}, Pe.prototype.getSelection = function() {
|
|
14407
14407
|
return this.cm.display.wrapper.ownerDocument.getSelection();
|
|
14408
|
-
},
|
|
14408
|
+
}, Pe.prototype.showPrimarySelection = function() {
|
|
14409
14409
|
var e = this.getSelection(), t = this.cm, r = t.doc.sel.primary(), l = r.from(), o = r.to();
|
|
14410
14410
|
if (t.display.viewTo == t.display.viewFrom || l.line >= t.display.viewTo || o.line < t.display.viewFrom) {
|
|
14411
14411
|
e.removeAllRanges();
|
|
@@ -14429,33 +14429,33 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
14429
14429
|
}
|
|
14430
14430
|
M && (!u && t.state.focused ? (e.collapse(p.node, p.offset), M.collapsed || (e.removeAllRanges(), e.addRange(M))) : (e.removeAllRanges(), e.addRange(M)), A && e.anchorNode == null ? e.addRange(A) : u && this.startGracePeriod()), this.rememberSelection();
|
|
14431
14431
|
}
|
|
14432
|
-
},
|
|
14432
|
+
}, Pe.prototype.startGracePeriod = function() {
|
|
14433
14433
|
var e = this;
|
|
14434
14434
|
clearTimeout(this.gracePeriod), this.gracePeriod = setTimeout(function() {
|
|
14435
14435
|
e.gracePeriod = !1, e.selectionChanged() && e.cm.operation(function() {
|
|
14436
14436
|
return e.cm.curOp.selectionChanged = !0;
|
|
14437
14437
|
});
|
|
14438
14438
|
}, 20);
|
|
14439
|
-
},
|
|
14439
|
+
}, Pe.prototype.showMultipleSelections = function(e) {
|
|
14440
14440
|
ne(this.cm.display.cursorDiv, e.cursors), ne(this.cm.display.selectionDiv, e.selection);
|
|
14441
|
-
},
|
|
14441
|
+
}, Pe.prototype.rememberSelection = function() {
|
|
14442
14442
|
var e = this.getSelection();
|
|
14443
14443
|
this.lastAnchorNode = e.anchorNode, this.lastAnchorOffset = e.anchorOffset, this.lastFocusNode = e.focusNode, this.lastFocusOffset = e.focusOffset;
|
|
14444
|
-
},
|
|
14444
|
+
}, Pe.prototype.selectionInEditor = function() {
|
|
14445
14445
|
var e = this.getSelection();
|
|
14446
14446
|
if (!e.rangeCount)
|
|
14447
14447
|
return !1;
|
|
14448
14448
|
var t = e.getRangeAt(0).commonAncestorContainer;
|
|
14449
14449
|
return At(this.div, t);
|
|
14450
|
-
},
|
|
14451
|
-
this.cm.options.readOnly != "nocursor" && ((!this.selectionInEditor() || tt(
|
|
14452
|
-
},
|
|
14450
|
+
}, Pe.prototype.focus = function() {
|
|
14451
|
+
this.cm.options.readOnly != "nocursor" && ((!this.selectionInEditor() || tt(Ke(this.div)) != this.div) && this.showSelection(this.prepareSelection(), !0), this.div.focus());
|
|
14452
|
+
}, Pe.prototype.blur = function() {
|
|
14453
14453
|
this.div.blur();
|
|
14454
|
-
},
|
|
14454
|
+
}, Pe.prototype.getField = function() {
|
|
14455
14455
|
return this.div;
|
|
14456
|
-
},
|
|
14456
|
+
}, Pe.prototype.supportsTouch = function() {
|
|
14457
14457
|
return !0;
|
|
14458
|
-
},
|
|
14458
|
+
}, Pe.prototype.receivedFocus = function() {
|
|
14459
14459
|
var e = this, t = this;
|
|
14460
14460
|
this.selectionInEditor() ? setTimeout(function() {
|
|
14461
14461
|
return e.pollSelection();
|
|
@@ -14466,10 +14466,10 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
14466
14466
|
t.cm.state.focused && (t.pollSelection(), t.polling.set(t.cm.options.pollInterval, r));
|
|
14467
14467
|
}
|
|
14468
14468
|
this.polling.set(this.cm.options.pollInterval, r);
|
|
14469
|
-
},
|
|
14469
|
+
}, Pe.prototype.selectionChanged = function() {
|
|
14470
14470
|
var e = this.getSelection();
|
|
14471
14471
|
return e.anchorNode != this.lastAnchorNode || e.anchorOffset != this.lastAnchorOffset || e.focusNode != this.lastFocusNode || e.focusOffset != this.lastFocusOffset;
|
|
14472
|
-
},
|
|
14472
|
+
}, Pe.prototype.pollSelection = function() {
|
|
14473
14473
|
if (!(this.readDOMTimeout != null || this.gracePeriod || !this.selectionChanged())) {
|
|
14474
14474
|
var e = this.getSelection(), t = this.cm;
|
|
14475
14475
|
if (ue && W && this.cm.display.gutterSpecs.length && md(e.anchorNode)) {
|
|
@@ -14484,7 +14484,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
14484
14484
|
});
|
|
14485
14485
|
}
|
|
14486
14486
|
}
|
|
14487
|
-
},
|
|
14487
|
+
}, Pe.prototype.pollContent = function() {
|
|
14488
14488
|
this.readDOMTimeout != null && (clearTimeout(this.readDOMTimeout), this.readDOMTimeout = null);
|
|
14489
14489
|
var e = this.cm, t = e.display, r = e.doc.sel.primary(), l = r.from(), o = r.to();
|
|
14490
14490
|
if (l.ch == 0 && l.line > e.firstLine() && (l = V(l.line - 1, ee(e.doc, l.line - 1).length)), o.ch == ee(e.doc, o.line).text.length && o.line < e.lastLine() && (o = V(o.line + 1, 0)), l.line < t.viewFrom || o.line > t.viewTo - 1)
|
|
@@ -14515,13 +14515,13 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
14515
14515
|
var re = V(f, M), te = V(m, A.length ? xe(A).length - E : 0);
|
|
14516
14516
|
if (S.length > 1 || S[0] || Q(re, te))
|
|
14517
14517
|
return pn(e.doc, S, re, te, "+input"), !0;
|
|
14518
|
-
},
|
|
14518
|
+
}, Pe.prototype.ensurePolled = function() {
|
|
14519
14519
|
this.forceCompositionEnd();
|
|
14520
|
-
},
|
|
14520
|
+
}, Pe.prototype.reset = function() {
|
|
14521
14521
|
this.forceCompositionEnd();
|
|
14522
|
-
},
|
|
14522
|
+
}, Pe.prototype.forceCompositionEnd = function() {
|
|
14523
14523
|
this.composing && (clearTimeout(this.readDOMTimeout), this.composing = null, this.updateFromDOM(), this.div.blur(), this.div.focus());
|
|
14524
|
-
},
|
|
14524
|
+
}, Pe.prototype.readFromDOMSoon = function() {
|
|
14525
14525
|
var e = this;
|
|
14526
14526
|
this.readDOMTimeout == null && (this.readDOMTimeout = setTimeout(function() {
|
|
14527
14527
|
if (e.readDOMTimeout = null, e.composing)
|
|
@@ -14531,20 +14531,20 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
14531
14531
|
return;
|
|
14532
14532
|
e.updateFromDOM();
|
|
14533
14533
|
}, 80));
|
|
14534
|
-
},
|
|
14534
|
+
}, Pe.prototype.updateFromDOM = function() {
|
|
14535
14535
|
var e = this;
|
|
14536
14536
|
(this.cm.isReadOnly() || !this.pollContent()) && kt(this.cm, function() {
|
|
14537
14537
|
return pt(e.cm);
|
|
14538
14538
|
});
|
|
14539
|
-
},
|
|
14539
|
+
}, Pe.prototype.setUneditable = function(e) {
|
|
14540
14540
|
e.contentEditable = "false";
|
|
14541
|
-
},
|
|
14542
|
-
e.charCode == 0 || this.composing || (e.preventDefault(), this.cm.isReadOnly() ||
|
|
14543
|
-
},
|
|
14541
|
+
}, Pe.prototype.onKeyPress = function(e) {
|
|
14542
|
+
e.charCode == 0 || this.composing || (e.preventDefault(), this.cm.isReadOnly() || Ye(this.cm, Rr)(this.cm, String.fromCharCode(e.charCode == null ? e.keyCode : e.charCode), 0));
|
|
14543
|
+
}, Pe.prototype.readOnlyChanged = function(e) {
|
|
14544
14544
|
this.div.contentEditable = String(e != "nocursor");
|
|
14545
|
-
},
|
|
14546
|
-
},
|
|
14547
|
-
},
|
|
14545
|
+
}, Pe.prototype.onContextMenu = function() {
|
|
14546
|
+
}, Pe.prototype.resetPosition = function() {
|
|
14547
|
+
}, Pe.prototype.needsContentAttribute = !0;
|
|
14548
14548
|
function ta(e, t) {
|
|
14549
14549
|
var r = ur(e, t.line);
|
|
14550
14550
|
if (!r || r.hidden)
|
|
@@ -14744,7 +14744,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
14744
14744
|
}, He.prototype.supportsTouch = function() {
|
|
14745
14745
|
return !1;
|
|
14746
14746
|
}, He.prototype.focus = function() {
|
|
14747
|
-
if (this.cm.options.readOnly != "nocursor" && (!be || tt(
|
|
14747
|
+
if (this.cm.options.readOnly != "nocursor" && (!be || tt(Ke(this.textarea)) != this.textarea))
|
|
14748
14748
|
try {
|
|
14749
14749
|
this.textarea.focus();
|
|
14750
14750
|
} catch {
|
|
@@ -14775,7 +14775,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
14775
14775
|
var o = r.value;
|
|
14776
14776
|
if (o == l && !t.somethingSelected())
|
|
14777
14777
|
return !1;
|
|
14778
|
-
if (x && C >= 9 && this.hasSelection === o ||
|
|
14778
|
+
if (x && C >= 9 && this.hasSelection === o || Oe && /[\uf700-\uf7ff]/.test(o))
|
|
14779
14779
|
return t.display.input.reset(), !1;
|
|
14780
14780
|
if (t.doc.sel == t.display.selForContextMenu) {
|
|
14781
14781
|
var a = o.charCodeAt(0);
|
|
@@ -14809,7 +14809,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
14809
14809
|
if (!a || U)
|
|
14810
14810
|
return;
|
|
14811
14811
|
var h = r.options.resetSelectionOnContextMenu;
|
|
14812
|
-
h && r.doc.sel.contains(a) == -1 &&
|
|
14812
|
+
h && r.doc.sel.contains(a) == -1 && Ye(r, lt)(r.doc, Si(a), St);
|
|
14813
14813
|
var p = o.style.cssText, m = t.wrapper.style.cssText, w = t.wrapper.offsetParent.getBoundingClientRect();
|
|
14814
14814
|
t.wrapper.style.cssText = "position: static", o.style.cssText = `position: absolute; width: 30px; height: 30px;
|
|
14815
14815
|
top: ` + (e.clientY - w.top - 5) + "px; left: " + (e.clientX - w.left - 5) + `px;
|
|
@@ -14827,7 +14827,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
14827
14827
|
if (t.contextMenuPending == M && (t.contextMenuPending = !1, t.wrapper.style.cssText = m, o.style.cssText = p, x && C < 9 && l.scrollbars.setScrollTop(l.scroller.scrollTop = f), o.selectionStart != null)) {
|
|
14828
14828
|
(!x || x && C < 9) && A();
|
|
14829
14829
|
var z = 0, X = function() {
|
|
14830
|
-
l.selForContextMenu == r.doc.sel && o.selectionStart == 0 && o.selectionEnd > 0 && t.prevInput == "" ?
|
|
14830
|
+
l.selForContextMenu == r.doc.sel && o.selectionStart == 0 && o.selectionEnd > 0 && t.prevInput == "" ? Ye(r, Cs)(r) : z++ < 10 ? l.detectingSelectAll = setTimeout(X, 500) : (l.selForContextMenu = null, l.input.reset());
|
|
14831
14831
|
};
|
|
14832
14832
|
l.detectingSelectAll = setTimeout(X, 200);
|
|
14833
14833
|
}
|
|
@@ -14846,7 +14846,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
14846
14846
|
}, He.prototype.needsContentAttribute = !1;
|
|
14847
14847
|
function yd(e, t) {
|
|
14848
14848
|
if (t = t ? Ce(t) : {}, t.value = e.value, !t.tabindex && e.tabIndex && (t.tabindex = e.tabIndex), !t.placeholder && e.placeholder && (t.placeholder = e.placeholder), t.autofocus == null) {
|
|
14849
|
-
var r = tt(
|
|
14849
|
+
var r = tt(Ke(e));
|
|
14850
14850
|
t.autofocus = r == e || e.getAttribute("autofocus") != null && r == document.body;
|
|
14851
14851
|
}
|
|
14852
14852
|
function l() {
|
|
@@ -14879,7 +14879,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
14879
14879
|
return h;
|
|
14880
14880
|
}
|
|
14881
14881
|
function bd(e) {
|
|
14882
|
-
e.off = it, e.on = le, e.wheelEventPixels = Su, e.Doc = mt, e.splitLines = Mt, e.countColumn =
|
|
14882
|
+
e.off = it, e.on = le, e.wheelEventPixels = Su, e.Doc = mt, e.splitLines = Mt, e.countColumn = Le, e.findColumn = Yt, e.isWordChar = Dn, e.Pass = mi, e.signal = Ve, e.Line = nn, e.changeEnd = Di, e.scrollbarModel = qo, e.Pos = V, e.cmpPos = Q, e.modes = qi, e.mimeModes = Nt, e.resolveMode = Qi, e.getMode = Zi, e.modeExtensions = ki, e.extendMode = $i, e.copyState = qt, e.startState = en, e.innerMode = On, e.commands = el, e.keyMap = ci, e.keyName = Es, e.isModifierKey = Bs, e.lookupKey = vn, e.normalizeKeyMap = Yu, e.StringStream = _e, e.SharedTextMarker = Qn, e.TextMarker = Pi, e.LineWidget = qn, e.e_preventDefault = nt, e.e_stopPropagation = Yi, e.e_stop = bi, e.addClass = Tt, e.contains = At, e.rmClass = ft, e.keyNames = Oi;
|
|
14883
14883
|
}
|
|
14884
14884
|
dd(Ae), pd(Ae);
|
|
14885
14885
|
var Cd = "iter insert remove copy getEditor constructor".split(" ");
|
|
@@ -14889,9 +14889,9 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
14889
14889
|
return e.apply(this.doc, arguments);
|
|
14890
14890
|
};
|
|
14891
14891
|
})(mt.prototype[Rl]));
|
|
14892
|
-
return Vt(mt), Ae.inputStyles = { textarea: He, contenteditable:
|
|
14892
|
+
return Vt(mt), Ae.inputStyles = { textarea: He, contenteditable: Pe }, Ae.defineMode = function(e) {
|
|
14893
14893
|
!Ae.defaults.mode && e != "null" && (Ae.defaults.mode = e), Ht.apply(this, arguments);
|
|
14894
|
-
}, Ae.defineMIME =
|
|
14894
|
+
}, Ae.defineMIME = _i, Ae.defineMode("null", function() {
|
|
14895
14895
|
return { token: function(e) {
|
|
14896
14896
|
return e.skipToEnd();
|
|
14897
14897
|
} };
|
|
@@ -14911,18 +14911,18 @@ function Lm() {
|
|
|
14911
14911
|
})(function(s) {
|
|
14912
14912
|
s.defineMode("javascript", function(c, u) {
|
|
14913
14913
|
var d = c.indentUnit, g = u.statementIndent, k = u.jsonld, x = u.json || k, C = u.trackScope !== !1, T = u.typescript, B = u.wordCharacters || /[\w$\xa1-\uffff]/, W = (function() {
|
|
14914
|
-
function v(
|
|
14915
|
-
return { type:
|
|
14914
|
+
function v(Xe) {
|
|
14915
|
+
return { type: Xe, style: "keyword" };
|
|
14916
14916
|
}
|
|
14917
|
-
var I = v("keyword a"),
|
|
14917
|
+
var I = v("keyword a"), N = v("keyword b"), K = v("keyword c"), V = v("keyword d"), Q = v("operator"), Ie = { type: "atom", style: "atom" };
|
|
14918
14918
|
return {
|
|
14919
14919
|
if: v("if"),
|
|
14920
14920
|
while: I,
|
|
14921
14921
|
with: I,
|
|
14922
|
-
else:
|
|
14923
|
-
do:
|
|
14924
|
-
try:
|
|
14925
|
-
finally:
|
|
14922
|
+
else: N,
|
|
14923
|
+
do: N,
|
|
14924
|
+
try: N,
|
|
14925
|
+
finally: N,
|
|
14926
14926
|
return: V,
|
|
14927
14927
|
break: V,
|
|
14928
14928
|
continue: V,
|
|
@@ -14960,47 +14960,47 @@ function Lm() {
|
|
|
14960
14960
|
};
|
|
14961
14961
|
})(), H = /[+\-*&%=<>!?|~^@]/, U = /^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;
|
|
14962
14962
|
function se(v) {
|
|
14963
|
-
for (var I = !1,
|
|
14963
|
+
for (var I = !1, N, K = !1; (N = v.next()) != null; ) {
|
|
14964
14964
|
if (!I) {
|
|
14965
|
-
if (
|
|
14966
|
-
|
|
14965
|
+
if (N == "/" && !K) return;
|
|
14966
|
+
N == "[" ? K = !0 : K && N == "]" && (K = !1);
|
|
14967
14967
|
}
|
|
14968
|
-
I = !I &&
|
|
14968
|
+
I = !I && N == "\\";
|
|
14969
14969
|
}
|
|
14970
14970
|
}
|
|
14971
14971
|
var ve, pe;
|
|
14972
|
-
function Te(v, I,
|
|
14973
|
-
return ve = v, pe =
|
|
14972
|
+
function Te(v, I, N) {
|
|
14973
|
+
return ve = v, pe = N, I;
|
|
14974
14974
|
}
|
|
14975
14975
|
function ue(v, I) {
|
|
14976
|
-
var
|
|
14977
|
-
if (
|
|
14978
|
-
return I.tokenize = be(
|
|
14979
|
-
if (
|
|
14976
|
+
var N = v.next();
|
|
14977
|
+
if (N == '"' || N == "'")
|
|
14978
|
+
return I.tokenize = be(N), I.tokenize(v, I);
|
|
14979
|
+
if (N == "." && v.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))
|
|
14980
14980
|
return Te("number", "number");
|
|
14981
|
-
if (
|
|
14981
|
+
if (N == "." && v.match(".."))
|
|
14982
14982
|
return Te("spread", "meta");
|
|
14983
|
-
if (/[\[\]{}\(\),;\:\.]/.test(
|
|
14984
|
-
return Te(
|
|
14985
|
-
if (
|
|
14983
|
+
if (/[\[\]{}\(\),;\:\.]/.test(N))
|
|
14984
|
+
return Te(N);
|
|
14985
|
+
if (N == "=" && v.eat(">"))
|
|
14986
14986
|
return Te("=>", "operator");
|
|
14987
|
-
if (
|
|
14987
|
+
if (N == "0" && v.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))
|
|
14988
14988
|
return Te("number", "number");
|
|
14989
|
-
if (/\d/.test(
|
|
14989
|
+
if (/\d/.test(N))
|
|
14990
14990
|
return v.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/), Te("number", "number");
|
|
14991
|
-
if (
|
|
14992
|
-
return v.eat("*") ? (I.tokenize =
|
|
14993
|
-
if (
|
|
14994
|
-
return I.tokenize =
|
|
14995
|
-
if (
|
|
14991
|
+
if (N == "/")
|
|
14992
|
+
return v.eat("*") ? (I.tokenize = Oe, Oe(v, I)) : v.eat("/") ? (v.skipToEnd(), Te("comment", "comment")) : Lt(v, I, 1) ? (se(v), v.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/), Te("regexp", "string-2")) : (v.eat("="), Te("operator", "operator", v.current()));
|
|
14993
|
+
if (N == "`")
|
|
14994
|
+
return I.tokenize = $e, $e(v, I);
|
|
14995
|
+
if (N == "#" && v.peek() == "!")
|
|
14996
14996
|
return v.skipToEnd(), Te("meta", "meta");
|
|
14997
|
-
if (
|
|
14997
|
+
if (N == "#" && v.eatWhile(B))
|
|
14998
14998
|
return Te("variable", "property");
|
|
14999
|
-
if (
|
|
14999
|
+
if (N == "<" && v.match("!--") || N == "-" && v.match("->") && !/\S/.test(v.string.slice(0, v.start)))
|
|
15000
15000
|
return v.skipToEnd(), Te("comment", "comment");
|
|
15001
|
-
if (H.test(
|
|
15002
|
-
return (
|
|
15003
|
-
if (B.test(
|
|
15001
|
+
if (H.test(N))
|
|
15002
|
+
return (N != ">" || !I.lexical || I.lexical.type != ">") && (v.eat("=") ? (N == "!" || N == "=") && v.eat("=") : /[<>*+\-|&?]/.test(N) && (v.eat(N), N == ">" && v.eat(N))), N == "?" && v.eat(".") ? Te(".") : Te("operator", "operator", v.current());
|
|
15003
|
+
if (B.test(N)) {
|
|
15004
15004
|
v.eatWhile(B);
|
|
15005
15005
|
var K = v.current();
|
|
15006
15006
|
if (I.lastType != ".") {
|
|
@@ -15015,64 +15015,64 @@ function Lm() {
|
|
|
15015
15015
|
}
|
|
15016
15016
|
}
|
|
15017
15017
|
function be(v) {
|
|
15018
|
-
return function(I,
|
|
15018
|
+
return function(I, N) {
|
|
15019
15019
|
var K = !1, V;
|
|
15020
15020
|
if (k && I.peek() == "@" && I.match(U))
|
|
15021
|
-
return
|
|
15021
|
+
return N.tokenize = ue, Te("jsonld-keyword", "meta");
|
|
15022
15022
|
for (; (V = I.next()) != null && !(V == v && !K); )
|
|
15023
15023
|
K = !K && V == "\\";
|
|
15024
|
-
return K || (
|
|
15024
|
+
return K || (N.tokenize = ue), Te("string", "string");
|
|
15025
15025
|
};
|
|
15026
15026
|
}
|
|
15027
|
-
function
|
|
15028
|
-
for (var
|
|
15029
|
-
if (K == "/" &&
|
|
15027
|
+
function Oe(v, I) {
|
|
15028
|
+
for (var N = !1, K; K = v.next(); ) {
|
|
15029
|
+
if (K == "/" && N) {
|
|
15030
15030
|
I.tokenize = ue;
|
|
15031
15031
|
break;
|
|
15032
15032
|
}
|
|
15033
|
-
|
|
15033
|
+
N = K == "*";
|
|
15034
15034
|
}
|
|
15035
15035
|
return Te("comment", "comment");
|
|
15036
15036
|
}
|
|
15037
|
-
function
|
|
15038
|
-
for (var
|
|
15039
|
-
if (!
|
|
15037
|
+
function $e(v, I) {
|
|
15038
|
+
for (var N = !1, K; (K = v.next()) != null; ) {
|
|
15039
|
+
if (!N && (K == "`" || K == "$" && v.eat("{"))) {
|
|
15040
15040
|
I.tokenize = ue;
|
|
15041
15041
|
break;
|
|
15042
15042
|
}
|
|
15043
|
-
|
|
15043
|
+
N = !N && K == "\\";
|
|
15044
15044
|
}
|
|
15045
15045
|
return Te("quasi", "string-2", v.current());
|
|
15046
15046
|
}
|
|
15047
15047
|
var In = "([{}])";
|
|
15048
15048
|
function ot(v, I) {
|
|
15049
15049
|
I.fatArrowAt && (I.fatArrowAt = null);
|
|
15050
|
-
var
|
|
15051
|
-
if (!(
|
|
15050
|
+
var N = v.string.indexOf("=>", v.start);
|
|
15051
|
+
if (!(N < 0)) {
|
|
15052
15052
|
if (T) {
|
|
15053
|
-
var K = /:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(v.string.slice(v.start,
|
|
15054
|
-
K && (
|
|
15053
|
+
var K = /:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(v.string.slice(v.start, N));
|
|
15054
|
+
K && (N = K.index);
|
|
15055
15055
|
}
|
|
15056
|
-
for (var V = 0, Q = !1, Ie =
|
|
15057
|
-
var
|
|
15056
|
+
for (var V = 0, Q = !1, Ie = N - 1; Ie >= 0; --Ie) {
|
|
15057
|
+
var Xe = v.string.charAt(Ie), ht = In.indexOf(Xe);
|
|
15058
15058
|
if (ht >= 0 && ht < 3) {
|
|
15059
15059
|
if (!V) {
|
|
15060
15060
|
++Ie;
|
|
15061
15061
|
break;
|
|
15062
15062
|
}
|
|
15063
15063
|
if (--V == 0) {
|
|
15064
|
-
|
|
15064
|
+
Xe == "(" && (Q = !0);
|
|
15065
15065
|
break;
|
|
15066
15066
|
}
|
|
15067
15067
|
} else if (ht >= 3 && ht < 6)
|
|
15068
15068
|
++V;
|
|
15069
|
-
else if (B.test(
|
|
15069
|
+
else if (B.test(Xe))
|
|
15070
15070
|
Q = !0;
|
|
15071
|
-
else if (/["'\/`]/.test(
|
|
15071
|
+
else if (/["'\/`]/.test(Xe))
|
|
15072
15072
|
for (; ; --Ie) {
|
|
15073
15073
|
if (Ie == 0) return;
|
|
15074
15074
|
var tn = v.string.charAt(Ie - 1);
|
|
15075
|
-
if (tn ==
|
|
15075
|
+
if (tn == Xe && v.string.charAt(Ie - 2) != "\\") {
|
|
15076
15076
|
Ie--;
|
|
15077
15077
|
break;
|
|
15078
15078
|
}
|
|
@@ -15095,25 +15095,25 @@ function Lm() {
|
|
|
15095
15095
|
import: !0,
|
|
15096
15096
|
"jsonld-keyword": !0
|
|
15097
15097
|
};
|
|
15098
|
-
function ti(v, I,
|
|
15099
|
-
this.indented = v, this.column = I, this.type =
|
|
15098
|
+
function ti(v, I, N, K, V, Q) {
|
|
15099
|
+
this.indented = v, this.column = I, this.type = N, this.prev = V, this.info = Q, K != null && (this.align = K);
|
|
15100
15100
|
}
|
|
15101
15101
|
function we(v, I) {
|
|
15102
15102
|
if (!C) return !1;
|
|
15103
|
-
for (var
|
|
15104
|
-
if (
|
|
15103
|
+
for (var N = v.localVars; N; N = N.next)
|
|
15104
|
+
if (N.name == I) return !0;
|
|
15105
15105
|
for (var K = v.context; K; K = K.prev)
|
|
15106
|
-
for (var
|
|
15107
|
-
if (
|
|
15106
|
+
for (var N = K.vars; N; N = N.next)
|
|
15107
|
+
if (N.name == I) return !0;
|
|
15108
15108
|
}
|
|
15109
|
-
function ft(v, I,
|
|
15109
|
+
function ft(v, I, N, K, V) {
|
|
15110
15110
|
var Q = v.cc;
|
|
15111
15111
|
for (j.state = v, j.stream = V, j.marked = null, j.cc = Q, j.style = I, v.lexical.hasOwnProperty("align") || (v.lexical.align = !0); ; ) {
|
|
15112
|
-
var Ie = Q.length ? Q.pop() : x ? ge :
|
|
15113
|
-
if (Ie(
|
|
15112
|
+
var Ie = Q.length ? Q.pop() : x ? ge : Le;
|
|
15113
|
+
if (Ie(N, K)) {
|
|
15114
15114
|
for (; Q.length && Q[Q.length - 1].lex; )
|
|
15115
15115
|
Q.pop()();
|
|
15116
|
-
return j.marked ? j.marked :
|
|
15116
|
+
return j.marked ? j.marked : N == "variable" && we(v, K) ? "variable-2" : I;
|
|
15117
15117
|
}
|
|
15118
15118
|
}
|
|
15119
15119
|
}
|
|
@@ -15125,7 +15125,7 @@ function Lm() {
|
|
|
15125
15125
|
return ne.apply(null, arguments), !0;
|
|
15126
15126
|
}
|
|
15127
15127
|
function Kt(v, I) {
|
|
15128
|
-
for (var
|
|
15128
|
+
for (var N = I; N; N = N.next) if (N.name == v) return !0;
|
|
15129
15129
|
return !1;
|
|
15130
15130
|
}
|
|
15131
15131
|
function Ct(v) {
|
|
@@ -15133,9 +15133,9 @@ function Lm() {
|
|
|
15133
15133
|
if (j.marked = "def", !!C) {
|
|
15134
15134
|
if (I.context) {
|
|
15135
15135
|
if (I.lexical.info == "var" && I.context && I.context.block) {
|
|
15136
|
-
var
|
|
15137
|
-
if (
|
|
15138
|
-
I.context =
|
|
15136
|
+
var N = At(v, I.context);
|
|
15137
|
+
if (N != null) {
|
|
15138
|
+
I.context = N;
|
|
15139
15139
|
return;
|
|
15140
15140
|
}
|
|
15141
15141
|
} else if (!Kt(v, I.localVars)) {
|
|
@@ -15149,16 +15149,16 @@ function Lm() {
|
|
|
15149
15149
|
function At(v, I) {
|
|
15150
15150
|
if (I)
|
|
15151
15151
|
if (I.block) {
|
|
15152
|
-
var
|
|
15153
|
-
return
|
|
15152
|
+
var N = At(v, I.prev);
|
|
15153
|
+
return N ? N == I.prev ? I : new Tt(N, I.vars, !0) : null;
|
|
15154
15154
|
} else return Kt(v, I.vars) ? I : new Tt(I.prev, new ii(v, I.vars), !1);
|
|
15155
15155
|
else return null;
|
|
15156
15156
|
}
|
|
15157
15157
|
function tt(v) {
|
|
15158
15158
|
return v == "public" || v == "private" || v == "protected" || v == "abstract" || v == "readonly";
|
|
15159
15159
|
}
|
|
15160
|
-
function Tt(v, I,
|
|
15161
|
-
this.prev = v, this.vars = I, this.block =
|
|
15160
|
+
function Tt(v, I, N) {
|
|
15161
|
+
this.prev = v, this.vars = I, this.block = N;
|
|
15162
15162
|
}
|
|
15163
15163
|
function ii(v, I) {
|
|
15164
15164
|
this.name = v, this.next = I;
|
|
@@ -15171,19 +15171,19 @@ function Lm() {
|
|
|
15171
15171
|
j.state.context = new Tt(j.state.context, j.state.localVars, !0), j.state.localVars = null;
|
|
15172
15172
|
}
|
|
15173
15173
|
It.lex = Bt.lex = !0;
|
|
15174
|
-
function
|
|
15174
|
+
function Ke() {
|
|
15175
15175
|
j.state.localVars = j.state.context.vars, j.state.context = j.state.context.prev;
|
|
15176
15176
|
}
|
|
15177
|
-
|
|
15177
|
+
Ke.lex = !0;
|
|
15178
15178
|
function fe(v, I) {
|
|
15179
|
-
var
|
|
15179
|
+
var N = function() {
|
|
15180
15180
|
var K = j.state, V = K.indented;
|
|
15181
15181
|
if (K.lexical.type == "stat") V = K.lexical.indented;
|
|
15182
15182
|
else for (var Q = K.lexical; Q && Q.type == ")" && Q.align; Q = Q.prev)
|
|
15183
15183
|
V = Q.indented;
|
|
15184
15184
|
K.lexical = new ti(V, j.stream.column(), v, null, K.lexical, I);
|
|
15185
15185
|
};
|
|
15186
|
-
return
|
|
15186
|
+
return N.lex = !0, N;
|
|
15187
15187
|
}
|
|
15188
15188
|
function ae() {
|
|
15189
15189
|
var v = j.state;
|
|
@@ -15191,13 +15191,13 @@ function Lm() {
|
|
|
15191
15191
|
}
|
|
15192
15192
|
ae.lex = !0;
|
|
15193
15193
|
function Ce(v) {
|
|
15194
|
-
function I(
|
|
15195
|
-
return
|
|
15194
|
+
function I(N) {
|
|
15195
|
+
return N == v ? D() : v == ";" || N == "}" || N == ")" || N == "]" ? ne() : D(I);
|
|
15196
15196
|
}
|
|
15197
15197
|
return I;
|
|
15198
15198
|
}
|
|
15199
|
-
function
|
|
15200
|
-
return v == "var" ? D(fe("vardef", I), Yi, Ce(";"), ae) : v == "keyword a" ? D(fe("form"), mi,
|
|
15199
|
+
function Le(v, I) {
|
|
15200
|
+
return v == "var" ? D(fe("vardef", I), Yi, Ce(";"), ae) : v == "keyword a" ? D(fe("form"), mi, Le, ae) : v == "keyword b" ? D(fe("form"), Le, ae) : v == "keyword d" ? j.stream.match(/^\s*$/, !1) ? D() : D(fe("stat"), Gt, Ce(";"), ae) : v == "debugger" ? D(Ce(";")) : v == "{" ? D(fe("}"), Bt, Jt, ae, Ke) : v == ";" ? D() : v == "if" ? (j.state.lexical.info == "else" && j.state.cc[j.state.cc.length - 1] == ae && j.state.cc.pop()(), D(fe("form"), mi, Le, ae, Ji)) : v == "function" ? D(Mt) : v == "for" ? D(fe("form"), Bt, dl, Le, Ke, ae) : v == "class" || T && I == "interface" ? (j.marked = "keyword", D(fe("form", v == "class" ? v : I), qi, ae)) : v == "variable" ? T && I == "declare" ? (j.marked = "keyword", D(Le)) : T && (I == "module" || I == "enum" || I == "type") && j.stream.match(/^\s*\w/, !1) ? (j.marked = "keyword", I == "enum" ? D(ee) : I == "type" ? D(fl, Ce("operator"), ke, Ce(";")) : D(fe("form"), ct, Ce("{"), fe("}"), Jt, ae, ae)) : T && I == "namespace" ? (j.marked = "keyword", D(fe("form"), ge, Le, ae)) : T && I == "abstract" ? (j.marked = "keyword", D(Le)) : D(fe("stat"), Jl) : v == "switch" ? D(
|
|
15201
15201
|
fe("form"),
|
|
15202
15202
|
mi,
|
|
15203
15203
|
Ce("{"),
|
|
@@ -15206,11 +15206,11 @@ function Lm() {
|
|
|
15206
15206
|
Jt,
|
|
15207
15207
|
ae,
|
|
15208
15208
|
ae,
|
|
15209
|
-
|
|
15210
|
-
) : v == "case" ? D(ge, Ce(":")) : v == "default" ? D(Ce(":")) : v == "catch" ? D(fe("form"), It, Xt,
|
|
15209
|
+
Ke
|
|
15210
|
+
) : v == "case" ? D(ge, Ce(":")) : v == "default" ? D(Ce(":")) : v == "catch" ? D(fe("form"), It, Xt, Le, ae, Ke) : v == "export" ? D(fe("stat"), Qi, ae) : v == "import" ? D(fe("stat"), ki, ae) : v == "async" ? D(Le) : I == "@" ? D(ge, Le) : ne(fe("stat"), ge, Ce(";"), ae);
|
|
15211
15211
|
}
|
|
15212
15212
|
function Xt(v) {
|
|
15213
|
-
if (v == "(") return D(
|
|
15213
|
+
if (v == "(") return D(_t, Ce(")"));
|
|
15214
15214
|
}
|
|
15215
15215
|
function ge(v, I) {
|
|
15216
15216
|
return St(v, I, !1);
|
|
@@ -15221,14 +15221,14 @@ function Lm() {
|
|
|
15221
15221
|
function mi(v) {
|
|
15222
15222
|
return v != "(" ? ne() : D(fe(")"), Gt, Ce(")"), ae);
|
|
15223
15223
|
}
|
|
15224
|
-
function St(v, I,
|
|
15224
|
+
function St(v, I, N) {
|
|
15225
15225
|
if (j.state.fatArrowAt == j.stream.start) {
|
|
15226
|
-
var K =
|
|
15227
|
-
if (v == "(") return D(It, fe(")"), ze(
|
|
15228
|
-
if (v == "variable") return ne(It, ct, Ce("=>"), K,
|
|
15226
|
+
var K = N ? Vi : xe;
|
|
15227
|
+
if (v == "(") return D(It, fe(")"), ze(_t, ")"), ae, Ce("=>"), K, Ke);
|
|
15228
|
+
if (v == "variable") return ne(It, ct, Ce("=>"), K, Ke);
|
|
15229
15229
|
}
|
|
15230
|
-
var V =
|
|
15231
|
-
return Ai.hasOwnProperty(v) ? D(V) : v == "function" ? D(Mt, V) : v == "class" || T && I == "interface" ? (j.marked = "keyword", D(fe("form"), Zl, ae)) : v == "keyword c" || v == "async" ? D(
|
|
15230
|
+
var V = N ? Yt : Dt;
|
|
15231
|
+
return Ai.hasOwnProperty(v) ? D(V) : v == "function" ? D(Mt, V) : v == "class" || T && I == "interface" ? (j.marked = "keyword", D(fe("form"), Zl, ae)) : v == "keyword c" || v == "async" ? D(N ? st : ge) : v == "(" ? D(fe(")"), Gt, Ce(")"), ae, V) : v == "operator" || v == "spread" ? D(N ? st : ge) : v == "[" ? D(fe("]"), _e, ae, V) : v == "{" ? vi(li, "}", null, V) : v == "quasi" ? ne(ni, V) : v == "new" ? D(Yl(N)) : D();
|
|
15232
15232
|
}
|
|
15233
15233
|
function Gt(v) {
|
|
15234
15234
|
return v.match(/[;\}\)\],]/) ? ne() : ne(ge);
|
|
@@ -15236,9 +15236,9 @@ function Lm() {
|
|
|
15236
15236
|
function Dt(v, I) {
|
|
15237
15237
|
return v == "," ? D(Gt) : Yt(v, I, !1);
|
|
15238
15238
|
}
|
|
15239
|
-
function Yt(v, I,
|
|
15240
|
-
var K =
|
|
15241
|
-
if (v == "=>") return D(It,
|
|
15239
|
+
function Yt(v, I, N) {
|
|
15240
|
+
var K = N == !1 ? Dt : Yt, V = N == !1 ? ge : st;
|
|
15241
|
+
if (v == "=>") return D(It, N ? Vi : xe, Ke);
|
|
15242
15242
|
if (v == "operator")
|
|
15243
15243
|
return /\+\+|--/.test(I) || T && I == "!" ? D(K) : T && I == "<" && j.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/, !1) ? D(fe(">"), ze(ke, ">"), ae, K) : I == "?" ? D(ge, Ce(":"), V) : D(V);
|
|
15244
15244
|
if (v == "quasi")
|
|
@@ -15258,13 +15258,13 @@ function Lm() {
|
|
|
15258
15258
|
}
|
|
15259
15259
|
function Sn(v) {
|
|
15260
15260
|
if (v == "}")
|
|
15261
|
-
return j.marked = "string-2", j.state.tokenize =
|
|
15261
|
+
return j.marked = "string-2", j.state.tokenize = $e, D(ni);
|
|
15262
15262
|
}
|
|
15263
15263
|
function xe(v) {
|
|
15264
|
-
return ot(j.stream, j.state), ne(v == "{" ?
|
|
15264
|
+
return ot(j.stream, j.state), ne(v == "{" ? Le : ge);
|
|
15265
15265
|
}
|
|
15266
15266
|
function Vi(v) {
|
|
15267
|
-
return ot(j.stream, j.state), ne(v == "{" ?
|
|
15267
|
+
return ot(j.stream, j.state), ne(v == "{" ? Le : st);
|
|
15268
15268
|
}
|
|
15269
15269
|
function Yl(v) {
|
|
15270
15270
|
return function(I) {
|
|
@@ -15280,7 +15280,7 @@ function Lm() {
|
|
|
15280
15280
|
return j.marked = "keyword", D(Yt);
|
|
15281
15281
|
}
|
|
15282
15282
|
function Jl(v) {
|
|
15283
|
-
return v == ":" ? D(ae,
|
|
15283
|
+
return v == ":" ? D(ae, Le) : ne(Dt, Ce(";"), ae);
|
|
15284
15284
|
}
|
|
15285
15285
|
function Dn(v) {
|
|
15286
15286
|
if (v == "variable")
|
|
@@ -15291,8 +15291,8 @@ function Lm() {
|
|
|
15291
15291
|
return j.marked = "property", D(li);
|
|
15292
15292
|
if (v == "variable" || j.style == "keyword") {
|
|
15293
15293
|
if (j.marked = "property", I == "get" || I == "set") return D(al);
|
|
15294
|
-
var
|
|
15295
|
-
return T && j.state.fatArrowAt == j.stream.start && (
|
|
15294
|
+
var N;
|
|
15295
|
+
return T && j.state.fatArrowAt == j.stream.start && (N = j.stream.match(/^\s*:\s*/, !1)) && (j.state.fatArrowAt = j.stream.pos + N[0].length), D(ri);
|
|
15296
15296
|
} else {
|
|
15297
15297
|
if (v == "number" || v == "string")
|
|
15298
15298
|
return j.marked = k ? "property" : j.style + " property", D(ri);
|
|
@@ -15317,27 +15317,27 @@ function Lm() {
|
|
|
15317
15317
|
if (v == ":") return D(st);
|
|
15318
15318
|
if (v == "(") return ne(Mt);
|
|
15319
15319
|
}
|
|
15320
|
-
function ze(v, I,
|
|
15320
|
+
function ze(v, I, N) {
|
|
15321
15321
|
function K(V, Q) {
|
|
15322
|
-
if (
|
|
15322
|
+
if (N ? N.indexOf(V) > -1 : V == ",") {
|
|
15323
15323
|
var Ie = j.state.lexical;
|
|
15324
|
-
return Ie.info == "call" && (Ie.pos = (Ie.pos || 0) + 1), D(function(
|
|
15325
|
-
return
|
|
15324
|
+
return Ie.info == "call" && (Ie.pos = (Ie.pos || 0) + 1), D(function(Xe, ht) {
|
|
15325
|
+
return Xe == I || ht == I ? ne() : ne(v);
|
|
15326
15326
|
}, K);
|
|
15327
15327
|
}
|
|
15328
|
-
return V == I || Q == I ? D() :
|
|
15328
|
+
return V == I || Q == I ? D() : N && N.indexOf(";") > -1 ? ne(v) : D(Ce(I));
|
|
15329
15329
|
}
|
|
15330
15330
|
return function(V, Q) {
|
|
15331
15331
|
return V == I || Q == I ? D() : ne(v, K);
|
|
15332
15332
|
};
|
|
15333
15333
|
}
|
|
15334
|
-
function vi(v, I,
|
|
15334
|
+
function vi(v, I, N) {
|
|
15335
15335
|
for (var K = 3; K < arguments.length; K++)
|
|
15336
15336
|
j.cc.push(arguments[K]);
|
|
15337
|
-
return D(fe(I,
|
|
15337
|
+
return D(fe(I, N), ze(v, I), ae);
|
|
15338
15338
|
}
|
|
15339
15339
|
function Jt(v) {
|
|
15340
|
-
return v == "}" ? D() : ne(
|
|
15340
|
+
return v == "}" ? D() : ne(Le, Jt);
|
|
15341
15341
|
}
|
|
15342
15342
|
function gi(v, I) {
|
|
15343
15343
|
if (T) {
|
|
@@ -15395,7 +15395,7 @@ function Lm() {
|
|
|
15395
15395
|
}
|
|
15396
15396
|
function Ve(v) {
|
|
15397
15397
|
if (v == "}")
|
|
15398
|
-
return j.marked = "string-2", j.state.tokenize =
|
|
15398
|
+
return j.marked = "string-2", j.state.tokenize = $e, D(it);
|
|
15399
15399
|
}
|
|
15400
15400
|
function Ee(v, I) {
|
|
15401
15401
|
return v == "variable" && j.stream.match(/^\s*[?:]/, !1) || I == "?" ? D(Ee) : v == ":" ? D(ke) : v == "spread" ? D(Ee) : ne(ke);
|
|
@@ -15442,7 +15442,7 @@ function Lm() {
|
|
|
15442
15442
|
if (v == ",") return D(Yi);
|
|
15443
15443
|
}
|
|
15444
15444
|
function Ji(v, I) {
|
|
15445
|
-
if (v == "keyword b" && I == "else") return D(fe("form", "else"),
|
|
15445
|
+
if (v == "keyword b" && I == "else") return D(fe("form", "else"), Le, ae);
|
|
15446
15446
|
}
|
|
15447
15447
|
function dl(v, I) {
|
|
15448
15448
|
if (I == "await") return D(dl);
|
|
@@ -15459,7 +15459,7 @@ function Lm() {
|
|
|
15459
15459
|
return j.marked = "keyword", D(Mt);
|
|
15460
15460
|
if (v == "variable")
|
|
15461
15461
|
return Ct(I), D(Mt);
|
|
15462
|
-
if (v == "(") return D(It, fe(")"), ze(
|
|
15462
|
+
if (v == "(") return D(It, fe(")"), ze(_t, ")"), ae, yi, Le, Ke);
|
|
15463
15463
|
if (T && I == "<") return D(fe(">"), ze(Vt, ">"), ae, Mt);
|
|
15464
15464
|
}
|
|
15465
15465
|
function wi(v, I) {
|
|
@@ -15467,7 +15467,7 @@ function Lm() {
|
|
|
15467
15467
|
return j.marked = "keyword", D(wi);
|
|
15468
15468
|
if (v == "variable")
|
|
15469
15469
|
return Ct(I), D(wi);
|
|
15470
|
-
if (v == "(") return D(It, fe(")"), ze(
|
|
15470
|
+
if (v == "(") return D(It, fe(")"), ze(_t, ")"), ae, yi, Ke);
|
|
15471
15471
|
if (T && I == "<") return D(fe(">"), ze(Vt, ">"), ae, wi);
|
|
15472
15472
|
}
|
|
15473
15473
|
function fl(v, I) {
|
|
@@ -15476,30 +15476,30 @@ function Lm() {
|
|
|
15476
15476
|
if (I == "<")
|
|
15477
15477
|
return D(fe(">"), ze(Vt, ">"), ae);
|
|
15478
15478
|
}
|
|
15479
|
-
function
|
|
15480
|
-
return I == "@" && D(ge,
|
|
15479
|
+
function _t(v, I) {
|
|
15480
|
+
return I == "@" && D(ge, _t), v == "spread" ? D(_t) : T && tt(I) ? (j.marked = "keyword", D(_t)) : T && v == "this" ? D(gi, Et) : ne(ct, gi, Et);
|
|
15481
15481
|
}
|
|
15482
15482
|
function Zl(v, I) {
|
|
15483
|
-
return v == "variable" ? qi(v, I) :
|
|
15483
|
+
return v == "variable" ? qi(v, I) : Nt(v, I);
|
|
15484
15484
|
}
|
|
15485
15485
|
function qi(v, I) {
|
|
15486
15486
|
if (v == "variable")
|
|
15487
|
-
return Ct(I), D(
|
|
15487
|
+
return Ct(I), D(Nt);
|
|
15488
15488
|
}
|
|
15489
|
-
function
|
|
15490
|
-
if (I == "<") return D(fe(">"), ze(Vt, ">"), ae,
|
|
15489
|
+
function Nt(v, I) {
|
|
15490
|
+
if (I == "<") return D(fe(">"), ze(Vt, ">"), ae, Nt);
|
|
15491
15491
|
if (I == "extends" || I == "implements" || T && v == ",")
|
|
15492
|
-
return I == "implements" && (j.marked = "keyword"), D(T ? ke : ge,
|
|
15492
|
+
return I == "implements" && (j.marked = "keyword"), D(T ? ke : ge, Nt);
|
|
15493
15493
|
if (v == "{") return D(fe("}"), Ht, ae);
|
|
15494
15494
|
}
|
|
15495
15495
|
function Ht(v, I) {
|
|
15496
15496
|
if (v == "async" || v == "variable" && (I == "static" || I == "get" || I == "set" || T && tt(I)) && j.stream.match(/^\s+#?[\w$\xa1-\uffff]/, !1))
|
|
15497
15497
|
return j.marked = "keyword", D(Ht);
|
|
15498
15498
|
if (v == "variable" || j.style == "keyword")
|
|
15499
|
-
return j.marked = "property", D(
|
|
15500
|
-
if (v == "number" || v == "string") return D(
|
|
15499
|
+
return j.marked = "property", D(_i, Ht);
|
|
15500
|
+
if (v == "number" || v == "string") return D(_i, Ht);
|
|
15501
15501
|
if (v == "[")
|
|
15502
|
-
return D(ge, gi, Ce("]"),
|
|
15502
|
+
return D(ge, gi, Ce("]"), _i, Ht);
|
|
15503
15503
|
if (I == "*")
|
|
15504
15504
|
return j.marked = "keyword", D(Ht);
|
|
15505
15505
|
if (T && v == "(") return ne(wi, Ht);
|
|
@@ -15507,15 +15507,15 @@ function Lm() {
|
|
|
15507
15507
|
if (v == "}") return D();
|
|
15508
15508
|
if (I == "@") return D(ge, Ht);
|
|
15509
15509
|
}
|
|
15510
|
-
function
|
|
15511
|
-
if (I == "!" || I == "?") return D(
|
|
15510
|
+
function _i(v, I) {
|
|
15511
|
+
if (I == "!" || I == "?") return D(_i);
|
|
15512
15512
|
if (v == ":") return D(ke, Et);
|
|
15513
15513
|
if (I == "=") return D(st);
|
|
15514
|
-
var
|
|
15514
|
+
var N = j.state.lexical.prev, K = N && N.info == "interface";
|
|
15515
15515
|
return ne(K ? wi : Mt);
|
|
15516
15516
|
}
|
|
15517
15517
|
function Qi(v, I) {
|
|
15518
|
-
return I == "*" ? (j.marked = "keyword", D(en, Ce(";"))) : I == "default" ? (j.marked = "keyword", D(ge, Ce(";"))) : v == "{" ? D(ze(Zi, "}"), en, Ce(";")) : ne(
|
|
15518
|
+
return I == "*" ? (j.marked = "keyword", D(en, Ce(";"))) : I == "default" ? (j.marked = "keyword", D(ge, Ce(";"))) : v == "{" ? D(ze(Zi, "}"), en, Ce(";")) : ne(Le);
|
|
15519
15519
|
}
|
|
15520
15520
|
function Zi(v, I) {
|
|
15521
15521
|
if (I == "as")
|
|
@@ -15539,7 +15539,7 @@ function Lm() {
|
|
|
15539
15539
|
if (I == "from")
|
|
15540
15540
|
return j.marked = "keyword", D(ge);
|
|
15541
15541
|
}
|
|
15542
|
-
function
|
|
15542
|
+
function _e(v) {
|
|
15543
15543
|
return v == "]" ? D() : ne(ze(st, "]"));
|
|
15544
15544
|
}
|
|
15545
15545
|
function ee() {
|
|
@@ -15551,8 +15551,8 @@ function Lm() {
|
|
|
15551
15551
|
function Mn(v, I) {
|
|
15552
15552
|
return v.lastType == "operator" || v.lastType == "," || H.test(I.charAt(0)) || /[,.]/.test(I.charAt(0));
|
|
15553
15553
|
}
|
|
15554
|
-
function Lt(v, I,
|
|
15555
|
-
return I.tokenize == ue && /^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(I.lastType) || I.lastType == "quasi" && /\{\s*$/.test(v.string.slice(0, v.pos - (
|
|
15554
|
+
function Lt(v, I, N) {
|
|
15555
|
+
return I.tokenize == ue && /^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(I.lastType) || I.lastType == "quasi" && /\{\s*$/.test(v.string.slice(0, v.pos - (N || 0)));
|
|
15556
15556
|
}
|
|
15557
15557
|
return {
|
|
15558
15558
|
startState: function(v) {
|
|
@@ -15568,24 +15568,24 @@ function Lm() {
|
|
|
15568
15568
|
return u.globalVars && typeof u.globalVars == "object" && (I.globalVars = u.globalVars), I;
|
|
15569
15569
|
},
|
|
15570
15570
|
token: function(v, I) {
|
|
15571
|
-
if (v.sol() && (I.lexical.hasOwnProperty("align") || (I.lexical.align = !1), I.indented = v.indentation(), ot(v, I)), I.tokenize !=
|
|
15572
|
-
var
|
|
15573
|
-
return ve == "comment" ?
|
|
15571
|
+
if (v.sol() && (I.lexical.hasOwnProperty("align") || (I.lexical.align = !1), I.indented = v.indentation(), ot(v, I)), I.tokenize != Oe && v.eatSpace()) return null;
|
|
15572
|
+
var N = I.tokenize(v, I);
|
|
15573
|
+
return ve == "comment" ? N : (I.lastType = ve == "operator" && (pe == "++" || pe == "--") ? "incdec" : ve, ft(I, N, ve, pe, v));
|
|
15574
15574
|
},
|
|
15575
15575
|
indent: function(v, I) {
|
|
15576
|
-
if (v.tokenize ==
|
|
15576
|
+
if (v.tokenize == Oe || v.tokenize == $e) return s.Pass;
|
|
15577
15577
|
if (v.tokenize != ue) return 0;
|
|
15578
|
-
var
|
|
15578
|
+
var N = I && I.charAt(0), K = v.lexical, V;
|
|
15579
15579
|
if (!/^\s*else\b/.test(I)) for (var Q = v.cc.length - 1; Q >= 0; --Q) {
|
|
15580
15580
|
var Ie = v.cc[Q];
|
|
15581
15581
|
if (Ie == ae) K = K.prev;
|
|
15582
|
-
else if (Ie != Ji && Ie !=
|
|
15582
|
+
else if (Ie != Ji && Ie != Ke) break;
|
|
15583
15583
|
}
|
|
15584
|
-
for (; (K.type == "stat" || K.type == "form") && (
|
|
15584
|
+
for (; (K.type == "stat" || K.type == "form") && (N == "}" || (V = v.cc[v.cc.length - 1]) && (V == Dt || V == Yt) && !/^[,\.=+\-*:?[\(]/.test(I)); )
|
|
15585
15585
|
K = K.prev;
|
|
15586
15586
|
g && K.type == ")" && K.prev.type == "stat" && (K = K.prev);
|
|
15587
|
-
var
|
|
15588
|
-
return
|
|
15587
|
+
var Xe = K.type, ht = N == Xe;
|
|
15588
|
+
return Xe == "vardef" ? K.indented + (v.lastType == "operator" || v.lastType == "," ? K.info.length + 1 : 0) : Xe == "form" && N == "{" ? K.indented : Xe == "form" ? K.indented + d : Xe == "stat" ? K.indented + (Mn(v, I) ? g || d : 0) : K.info == "switch" && !ht && u.doubleIndentSwitch != !1 ? K.indented + (/^(?:case|default)\b/.test(I) ? d : 2 * d) : K.align ? K.column + (ht ? 0 : 1) : K.indented + (ht ? 0 : d);
|
|
15589
15589
|
},
|
|
15590
15590
|
electricInput: /^\s*(?:case .*?:|default:|\{|\})$/,
|
|
15591
15591
|
blockCommentStart: x ? null : "/*",
|
|
@@ -15884,10 +15884,10 @@ const Om = {
|
|
|
15884
15884
|
mounted() {
|
|
15885
15885
|
this.init();
|
|
15886
15886
|
}
|
|
15887
|
-
}, Mm = { class: "BnFunExpr" }, Fm = { class: "BnFunExpr-left" }, Am = { class: "BnFunExpr-left-top" }, Bm = { class: "BnFunExpr-left-top-btns" }, Vm = { class: "BnFunExpr-left-top-input" }, Em = { class: "BnFunExpr-left-body" },
|
|
15887
|
+
}, Mm = { class: "BnFunExpr" }, Fm = { class: "BnFunExpr-left" }, Am = { class: "BnFunExpr-left-top" }, Bm = { class: "BnFunExpr-left-top-btns" }, Vm = { class: "BnFunExpr-left-top-input" }, Em = { class: "BnFunExpr-left-body" }, _m = {
|
|
15888
15888
|
key: 0,
|
|
15889
15889
|
class: "BnFunExpr-left-body-list"
|
|
15890
|
-
},
|
|
15890
|
+
}, Nm = ["onClick", "title"], Hm = { key: 0 }, zm = ["onClick", "onMouseenter"], Rm = ["title"], Um = ["title"], jm = {
|
|
15891
15891
|
key: 1,
|
|
15892
15892
|
class: "BnFunExpr-left-body-list"
|
|
15893
15893
|
}, Wm = ["onClick", "title"], Km = { key: 0 }, Xm = ["onClick"], Gm = ["title"], Ym = { class: "BnFunExpr-right" }, Jm = { class: "BnFunExpr-right-desc" }, qm = { class: "BnFunExpr-right-desc-title" }, Qm = { class: "BnFunExpr-right-desc-content" };
|
|
@@ -15919,7 +15919,7 @@ function Zm(n, i, s, c, u, d) {
|
|
|
15919
15919
|
])
|
|
15920
15920
|
]),
|
|
15921
15921
|
y("div", Em, [
|
|
15922
|
-
u.listType == 1 ? (b(), F("div",
|
|
15922
|
+
u.listType == 1 ? (b(), F("div", _m, [
|
|
15923
15923
|
(b(!0), F(oe, null, me(u.functionList, (C, T) => (b(), F("div", { key: T }, [
|
|
15924
15924
|
y("div", {
|
|
15925
15925
|
class: "BnFunExpr-left-body-class",
|
|
@@ -15931,7 +15931,7 @@ function Zm(n, i, s, c, u, d) {
|
|
|
15931
15931
|
style: { color: "rgba(0,0,0,.5)", "margin-right": "5px" }
|
|
15932
15932
|
}, null, 2),
|
|
15933
15933
|
q(" " + G(C.name), 1)
|
|
15934
|
-
], 8,
|
|
15934
|
+
], 8, Nm),
|
|
15935
15935
|
C.children && C.children.length > 0 && u.openFunClass.indexOf(C.name) > -1 ? (b(), F("div", Hm, [
|
|
15936
15936
|
(b(!0), F(oe, null, me(C.children, (B, W) => (b(), F("div", {
|
|
15937
15937
|
class: "BnFunExpr-left-body-item-out",
|
|
@@ -15955,9 +15955,9 @@ function Zm(n, i, s, c, u, d) {
|
|
|
15955
15955
|
[We, B.name.indexOf(u.searchInput) > -1 || B.usage.indexOf(u.searchInput) > -1]
|
|
15956
15956
|
])
|
|
15957
15957
|
]))), 128))
|
|
15958
|
-
])) :
|
|
15958
|
+
])) : _("", !0)
|
|
15959
15959
|
]))), 128))
|
|
15960
|
-
])) :
|
|
15960
|
+
])) : _("", !0),
|
|
15961
15961
|
u.listType == 2 ? (b(), F("div", jm, [
|
|
15962
15962
|
(b(!0), F(oe, null, me(s.columnList, (C, T) => (b(), F("div", { key: T }, [
|
|
15963
15963
|
y("div", {
|
|
@@ -15988,9 +15988,9 @@ function Zm(n, i, s, c, u, d) {
|
|
|
15988
15988
|
[We, B.name.indexOf(u.searchInput) > -1]
|
|
15989
15989
|
])
|
|
15990
15990
|
]))), 128))
|
|
15991
|
-
])) :
|
|
15991
|
+
])) : _("", !0)
|
|
15992
15992
|
]))), 128))
|
|
15993
|
-
])) :
|
|
15993
|
+
])) : _("", !0)
|
|
15994
15994
|
])
|
|
15995
15995
|
]),
|
|
15996
15996
|
y("div", Ym, [
|
|
@@ -16008,7 +16008,7 @@ function Zm(n, i, s, c, u, d) {
|
|
|
16008
16008
|
"onUpdate:value": i[3] || (i[3] = (C) => u.exprExec = C),
|
|
16009
16009
|
options: u.cmOptions,
|
|
16010
16010
|
onBeforeChange: d.handleBeforeChange
|
|
16011
|
-
}, null, 8, ["value", "options", "onBeforeChange"])) :
|
|
16011
|
+
}, null, 8, ["value", "options", "onBeforeChange"])) : _("", !0)
|
|
16012
16012
|
]),
|
|
16013
16013
|
y("div", Jm, [
|
|
16014
16014
|
y("div", qm, G(u.checkFun.name), 1),
|
|
@@ -16177,13 +16177,13 @@ const $m = /* @__PURE__ */ ie(Om, [["render", Zm], ["__scopeId", "data-v-8214601
|
|
|
16177
16177
|
isChildren: Boolean
|
|
16178
16178
|
},
|
|
16179
16179
|
components: {
|
|
16180
|
-
paraExplainSet: ce(() => import("./index-
|
|
16181
|
-
defaultSet: ce(() => import("./defaultSet-
|
|
16182
|
-
funcExprDialog: ce(() => import("./funcExprDialog-
|
|
16183
|
-
setOption: ce(() => import("./setOption-
|
|
16184
|
-
setRelationOption: ce(() => import("./setRelationOption-
|
|
16185
|
-
childrenFormSetting: ce(() => import("./index-
|
|
16186
|
-
packageFilter: ce(() => import("./index-
|
|
16180
|
+
paraExplainSet: ce(() => import("./index-DNxffpsF.js")),
|
|
16181
|
+
defaultSet: ce(() => import("./defaultSet-C-cw4OiQ.js")),
|
|
16182
|
+
funcExprDialog: ce(() => import("./funcExprDialog-Dm6TNNnl.js")),
|
|
16183
|
+
setOption: ce(() => import("./setOption-Cv02pow7.js")),
|
|
16184
|
+
setRelationOption: ce(() => import("./setRelationOption-BOdqgiKP.js")),
|
|
16185
|
+
childrenFormSetting: ce(() => import("./index-B9WaI4sO.js")),
|
|
16186
|
+
packageFilter: ce(() => import("./index-CepT1ysf.js"))
|
|
16187
16187
|
},
|
|
16188
16188
|
data() {
|
|
16189
16189
|
return {
|
|
@@ -16260,7 +16260,7 @@ const $m = /* @__PURE__ */ ie(Om, [["render", Zm], ["__scopeId", "data-v-8214601
|
|
|
16260
16260
|
style: { height: "32px" }
|
|
16261
16261
|
}, Lv = { key: 0 }, Pv = { key: 1 }, Ov = { class: "columnConfig-item" }, Mv = { class: "columnConfig-item" }, Fv = { class: "columnConfig-item" }, Av = { class: "column-item-body w-flex-center" }, Bv = { class: "columnConfig-item" };
|
|
16262
16262
|
function Vv(n, i, s, c, u, d) {
|
|
16263
|
-
const g = P("funcExprDialog"), k = P("setRelationOption"), x = P("el-input"), C = P("el-col"), T = P("BnSelect"), B = P("BnDrop"), W = P("defaultSet"), H = P("el-button"), U = P("el-tooltip"), se = P("el-popover"), ve = P("BnCheck"), pe = P("el-option"), Te = P("el-select"), ue = P("setOption"), be = P("childrenFormSetting"),
|
|
16263
|
+
const g = P("funcExprDialog"), k = P("setRelationOption"), x = P("el-input"), C = P("el-col"), T = P("BnSelect"), B = P("BnDrop"), W = P("defaultSet"), H = P("el-button"), U = P("el-tooltip"), se = P("el-popover"), ve = P("BnCheck"), pe = P("el-option"), Te = P("el-select"), ue = P("setOption"), be = P("childrenFormSetting"), Oe = P("paraExplainSet"), $e = P("packageFilter"), In = P("el-row");
|
|
16264
16264
|
return b(), F("div", nv, [
|
|
16265
16265
|
L(g, {
|
|
16266
16266
|
ref: "funcExpr",
|
|
@@ -16291,7 +16291,7 @@ function Vv(n, i, s, c, u, d) {
|
|
|
16291
16291
|
y("div", lv, [
|
|
16292
16292
|
y("div", rv, [
|
|
16293
16293
|
i[16] || (i[16] = y("div", { class: "columnConfig-item-top-title" }, "标题", -1)),
|
|
16294
|
-
d.columnInfo.behaviorType ? (b(), F("div", ov, G(d.columnInfo.behaviorType == 5 && ((we = d.columnInfo.extraInfo) == null ? void 0 : we.valueType) == "select" ? "下拉多选" : u.columnTypeMap[d.columnInfo.behaviorType]), 1)) :
|
|
16294
|
+
d.columnInfo.behaviorType ? (b(), F("div", ov, G(d.columnInfo.behaviorType == 5 && ((we = d.columnInfo.extraInfo) == null ? void 0 : we.valueType) == "select" ? "下拉多选" : u.columnTypeMap[d.columnInfo.behaviorType]), 1)) : _("", !0)
|
|
16295
16295
|
]),
|
|
16296
16296
|
y("div", sv, [
|
|
16297
16297
|
L(x, {
|
|
@@ -16333,7 +16333,7 @@ function Vv(n, i, s, c, u, d) {
|
|
|
16333
16333
|
])
|
|
16334
16334
|
]),
|
|
16335
16335
|
_: 1
|
|
16336
|
-
}, 8, ["span"])) :
|
|
16336
|
+
}, 8, ["span"])) : _("", !0),
|
|
16337
16337
|
!s.hideFiled.includes("default") && [1, 2, 3, 4, 5, 6, 7, 8].includes(d.columnInfo.behaviorType) ? (b(), R(C, {
|
|
16338
16338
|
key: 1,
|
|
16339
16339
|
span: 24 / s.row
|
|
@@ -16352,7 +16352,7 @@ function Vv(n, i, s, c, u, d) {
|
|
|
16352
16352
|
placement: "bottom-end",
|
|
16353
16353
|
labelInValue: !1,
|
|
16354
16354
|
disabled: s.disabled
|
|
16355
|
-
}, null, 8, ["modelValue", "onChange", "disabled"])) :
|
|
16355
|
+
}, null, 8, ["modelValue", "onChange", "disabled"])) : _("", !0)
|
|
16356
16356
|
])
|
|
16357
16357
|
]),
|
|
16358
16358
|
y("div", hv, [
|
|
@@ -16365,7 +16365,7 @@ function Vv(n, i, s, c, u, d) {
|
|
|
16365
16365
|
columnList: s.columnList,
|
|
16366
16366
|
extendPost: s.extendPost,
|
|
16367
16367
|
defaultType: u.defaultType
|
|
16368
|
-
}, null, 8, ["modelValue", "disabled", "postFunc", "columnList", "extendPost", "defaultType"])) :
|
|
16368
|
+
}, null, 8, ["modelValue", "disabled", "postFunc", "columnList", "extendPost", "defaultType"])) : _("", !0),
|
|
16369
16369
|
u.defaultType == 2 ? (b(), R(x, {
|
|
16370
16370
|
key: 1,
|
|
16371
16371
|
disabled: "",
|
|
@@ -16395,12 +16395,12 @@ function Vv(n, i, s, c, u, d) {
|
|
|
16395
16395
|
})
|
|
16396
16396
|
]),
|
|
16397
16397
|
_: 1
|
|
16398
|
-
}, 8, ["modelValue"])) :
|
|
16398
|
+
}, 8, ["modelValue"])) : _("", !0)
|
|
16399
16399
|
])
|
|
16400
16400
|
])
|
|
16401
16401
|
]),
|
|
16402
16402
|
_: 1
|
|
16403
|
-
}, 8, ["span"])) :
|
|
16403
|
+
}, 8, ["span"])) : _("", !0),
|
|
16404
16404
|
!s.isChildren && !s.hideFiled.includes("defaultCover") && [1, 2, 3, 4, 5, 6, 7, 8].includes(d.columnInfo.behaviorType) && d.columnInfo.extraInfo.searchKey != 2 ? (b(), R(C, {
|
|
16405
16405
|
key: 2,
|
|
16406
16406
|
span: 24 / s.row
|
|
@@ -16441,8 +16441,8 @@ function Vv(n, i, s, c, u, d) {
|
|
|
16441
16441
|
])
|
|
16442
16442
|
]),
|
|
16443
16443
|
_: 1
|
|
16444
|
-
}, 8, ["span"])) :
|
|
16445
|
-
s.hideFiled.includes("isAddable") ?
|
|
16444
|
+
}, 8, ["span"])) : _("", !0),
|
|
16445
|
+
s.hideFiled.includes("isAddable") ? _("", !0) : (b(), R(C, {
|
|
16446
16446
|
key: 3,
|
|
16447
16447
|
span: 24 / s.row
|
|
16448
16448
|
}, {
|
|
@@ -16474,7 +16474,7 @@ function Vv(n, i, s, c, u, d) {
|
|
|
16474
16474
|
]),
|
|
16475
16475
|
_: 1
|
|
16476
16476
|
}, 8, ["span"])),
|
|
16477
|
-
s.hideFiled.includes("isEditable") ?
|
|
16477
|
+
s.hideFiled.includes("isEditable") ? _("", !0) : (b(), R(C, {
|
|
16478
16478
|
key: 4,
|
|
16479
16479
|
span: 24 / s.row
|
|
16480
16480
|
}, {
|
|
@@ -16506,7 +16506,7 @@ function Vv(n, i, s, c, u, d) {
|
|
|
16506
16506
|
]),
|
|
16507
16507
|
_: 1
|
|
16508
16508
|
}, 8, ["span"])),
|
|
16509
|
-
s.hideFiled.includes("valueEmptyCheck") ?
|
|
16509
|
+
s.hideFiled.includes("valueEmptyCheck") ? _("", !0) : (b(), R(C, {
|
|
16510
16510
|
key: 5,
|
|
16511
16511
|
span: 24 / s.row
|
|
16512
16512
|
}, {
|
|
@@ -16566,7 +16566,7 @@ function Vv(n, i, s, c, u, d) {
|
|
|
16566
16566
|
])
|
|
16567
16567
|
]),
|
|
16568
16568
|
_: 1
|
|
16569
|
-
}, 8, ["span"])) :
|
|
16569
|
+
}, 8, ["span"])) : _("", !0),
|
|
16570
16570
|
(!s.hideFiled.includes("moduleDefinition") || d.columnInfo.extraInfo.fixedOption === 0) && [6, 20].includes(d.columnInfo.behaviorType) ? (b(), R(C, {
|
|
16571
16571
|
key: 7,
|
|
16572
16572
|
span: 24 / s.row
|
|
@@ -16596,7 +16596,7 @@ function Vv(n, i, s, c, u, d) {
|
|
|
16596
16596
|
])
|
|
16597
16597
|
]),
|
|
16598
16598
|
_: 1
|
|
16599
|
-
}, 8, ["span"])) :
|
|
16599
|
+
}, 8, ["span"])) : _("", !0),
|
|
16600
16600
|
(!s.hideFiled.includes("moduleDefinition") || d.columnInfo.extraInfo.fixedOption === 0) && [3, 4, 5].includes(d.columnInfo.behaviorType) ? (b(), R(C, {
|
|
16601
16601
|
key: 8,
|
|
16602
16602
|
span: 24
|
|
@@ -16612,7 +16612,7 @@ function Vv(n, i, s, c, u, d) {
|
|
|
16612
16612
|
])
|
|
16613
16613
|
]),
|
|
16614
16614
|
_: 1
|
|
16615
|
-
})) :
|
|
16615
|
+
})) : _("", !0),
|
|
16616
16616
|
d.columnInfo.behaviorType == 13 ? (b(), R(C, {
|
|
16617
16617
|
key: 9,
|
|
16618
16618
|
span: 24
|
|
@@ -16623,7 +16623,7 @@ function Vv(n, i, s, c, u, d) {
|
|
|
16623
16623
|
])
|
|
16624
16624
|
]),
|
|
16625
16625
|
_: 1
|
|
16626
|
-
})) :
|
|
16626
|
+
})) : _("", !0),
|
|
16627
16627
|
!s.hideFiled.includes("paraExplain") && !s.isChildren ? (b(), R(C, {
|
|
16628
16628
|
key: 10,
|
|
16629
16629
|
span: 24
|
|
@@ -16637,7 +16637,7 @@ function Vv(n, i, s, c, u, d) {
|
|
|
16637
16637
|
])
|
|
16638
16638
|
], -1)),
|
|
16639
16639
|
y("div", Av, [
|
|
16640
|
-
L(
|
|
16640
|
+
L(Oe, {
|
|
16641
16641
|
columnData: d.columnInfo,
|
|
16642
16642
|
extendPost: s.extendPost,
|
|
16643
16643
|
postFunc: s.postFunc
|
|
@@ -16646,25 +16646,25 @@ function Vv(n, i, s, c, u, d) {
|
|
|
16646
16646
|
])
|
|
16647
16647
|
]),
|
|
16648
16648
|
_: 1
|
|
16649
|
-
})) :
|
|
16649
|
+
})) : _("", !0),
|
|
16650
16650
|
(Ai = d.columnInfo.extraInfo) != null && Ai.filterColumn && ((ti = d.columnInfo.extraInfo) != null && ti.filterColumn.length) ? (b(), R(C, {
|
|
16651
16651
|
key: 11,
|
|
16652
16652
|
span: 24
|
|
16653
16653
|
}, {
|
|
16654
16654
|
default: O(() => [
|
|
16655
16655
|
y("div", Bv, [
|
|
16656
|
-
L(
|
|
16656
|
+
L($e, Wl({ columnData: d.columnInfo }, n.$props), null, 16, ["columnData"])
|
|
16657
16657
|
])
|
|
16658
16658
|
]),
|
|
16659
16659
|
_: 1
|
|
16660
|
-
})) :
|
|
16660
|
+
})) : _("", !0)
|
|
16661
16661
|
];
|
|
16662
16662
|
}),
|
|
16663
16663
|
_: 1
|
|
16664
16664
|
})
|
|
16665
16665
|
]);
|
|
16666
16666
|
}
|
|
16667
|
-
const Ev = /* @__PURE__ */ ie(iv, [["render", Vv], ["__scopeId", "data-v-48651ce6"]]),
|
|
16667
|
+
const Ev = /* @__PURE__ */ ie(iv, [["render", Vv], ["__scopeId", "data-v-48651ce6"]]), _v = {
|
|
16668
16668
|
name: "FuncExprDialog",
|
|
16669
16669
|
props: {
|
|
16670
16670
|
componentList: Array,
|
|
@@ -16750,7 +16750,7 @@ const Ev = /* @__PURE__ */ ie(iv, [["render", Vv], ["__scopeId", "data-v-48651ce
|
|
|
16750
16750
|
});
|
|
16751
16751
|
}
|
|
16752
16752
|
}
|
|
16753
|
-
},
|
|
16753
|
+
}, Nv = { class: "w-flex-right" };
|
|
16754
16754
|
function Hv(n, i, s, c, u, d) {
|
|
16755
16755
|
const g = P("BnColumnConfig"), k = P("el-scrollbar"), x = P("el-button"), C = P("el-dialog");
|
|
16756
16756
|
return b(), R(C, {
|
|
@@ -16765,7 +16765,7 @@ function Hv(n, i, s, c, u, d) {
|
|
|
16765
16765
|
"append-to-body": ""
|
|
16766
16766
|
}, {
|
|
16767
16767
|
footer: O(() => [
|
|
16768
|
-
y("div",
|
|
16768
|
+
y("div", Nv, [
|
|
16769
16769
|
L(x, {
|
|
16770
16770
|
onClick: i[1] || (i[1] = (T) => u.visible = !1)
|
|
16771
16771
|
}, {
|
|
@@ -16801,7 +16801,7 @@ function Hv(n, i, s, c, u, d) {
|
|
|
16801
16801
|
_: 1
|
|
16802
16802
|
}, 8, ["modelValue", "title"]);
|
|
16803
16803
|
}
|
|
16804
|
-
const Ca = /* @__PURE__ */ ie(
|
|
16804
|
+
const Ca = /* @__PURE__ */ ie(_v, [["render", Hv]]), t0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
16805
16805
|
__proto__: null,
|
|
16806
16806
|
default: Ca
|
|
16807
16807
|
}, Symbol.toStringTag, { value: "Module" })), zv = {
|
|
@@ -16990,7 +16990,7 @@ function Xv(n, i, s, c, u, d) {
|
|
|
16990
16990
|
_: 2
|
|
16991
16991
|
}, 1032, ["onClick", "closable", "onClose"]);
|
|
16992
16992
|
}), 128)),
|
|
16993
|
-
u.filterList.length == 0 ? (b(), F("div", Kv, "没有数据")) :
|
|
16993
|
+
u.filterList.length == 0 ? (b(), F("div", Kv, "没有数据")) : _("", !0)
|
|
16994
16994
|
])
|
|
16995
16995
|
]),
|
|
16996
16996
|
_: 1
|
|
@@ -17129,6 +17129,10 @@ const Gv = /* @__PURE__ */ ie(zv, [["render", Xv], ["__scopeId", "data-v-da6a93a
|
|
|
17129
17129
|
* 确定导入
|
|
17130
17130
|
* */
|
|
17131
17131
|
importFile() {
|
|
17132
|
+
if (!this.fileData) {
|
|
17133
|
+
this.$message.warning("请先上传文件");
|
|
17134
|
+
return;
|
|
17135
|
+
}
|
|
17132
17136
|
this.loading = !0;
|
|
17133
17137
|
let n = {
|
|
17134
17138
|
...this.importSetting,
|
|
@@ -17210,7 +17214,7 @@ function ug(n, i, s, c, u, d) {
|
|
|
17210
17214
|
]),
|
|
17211
17215
|
_: 1
|
|
17212
17216
|
}, 8, ["modelValue", "loading"])
|
|
17213
|
-
])) :
|
|
17217
|
+
])) : _("", !0),
|
|
17214
17218
|
y("div", tg, [
|
|
17215
17219
|
i[16] || (i[16] = y("div", { class: "w-margin-right10 w-line-height22" }, "选择导入方式", -1)),
|
|
17216
17220
|
y("div", null, [
|
|
@@ -17231,7 +17235,7 @@ function ug(n, i, s, c, u, d) {
|
|
|
17231
17235
|
disabled: d.isImportTypeDisabled
|
|
17232
17236
|
}, null, 8, ["modelValue", "disabled"])
|
|
17233
17237
|
]),
|
|
17234
|
-
d.hasSelectedTemplate ?
|
|
17238
|
+
d.hasSelectedTemplate ? _("", !0) : (b(), F("div", ng, [
|
|
17235
17239
|
L(C, {
|
|
17236
17240
|
modelValue: u.importSetting.ext.mergeImport,
|
|
17237
17241
|
"onUpdate:modelValue": i[3] || (i[3] = (se) => u.importSetting.ext.mergeImport = se),
|
|
@@ -17259,7 +17263,7 @@ function ug(n, i, s, c, u, d) {
|
|
|
17259
17263
|
_: 1
|
|
17260
17264
|
})
|
|
17261
17265
|
])),
|
|
17262
|
-
d.hasSelectedTemplate ?
|
|
17266
|
+
d.hasSelectedTemplate ? _("", !0) : (b(), F("div", lg, [
|
|
17263
17267
|
L(C, {
|
|
17264
17268
|
modelValue: u.importSetting.ext.checkMust,
|
|
17265
17269
|
"onUpdate:modelValue": i[4] || (i[4] = (se) => u.importSetting.ext.checkMust = se),
|
|
@@ -17290,7 +17294,7 @@ function ug(n, i, s, c, u, d) {
|
|
|
17290
17294
|
"show-file-list": !1
|
|
17291
17295
|
}, {
|
|
17292
17296
|
default: O(() => [
|
|
17293
|
-
u.fileData ?
|
|
17297
|
+
u.fileData ? _("", !0) : (b(), F("div", og, [...i[17] || (i[17] = [
|
|
17294
17298
|
q(" 拖拽文件到这里上传,或", -1),
|
|
17295
17299
|
y("span", { class: "w-color-blue w-margin-left5" }, [
|
|
17296
17300
|
y("i", { class: "anwIcon aIcon-download" }),
|
|
@@ -17307,7 +17311,7 @@ function ug(n, i, s, c, u, d) {
|
|
|
17307
17311
|
q(G(u.fileData.fileName), 1)
|
|
17308
17312
|
]),
|
|
17309
17313
|
i[20] || (i[20] = y("div", { class: "w-color-blue w-cursor-pointer w-margin-top5" }, "重新上传", -1))
|
|
17310
|
-
])) :
|
|
17314
|
+
])) : _("", !0)
|
|
17311
17315
|
]),
|
|
17312
17316
|
_: 1
|
|
17313
17317
|
}, 8, ["action", "on-success", "before-upload"])
|
|
@@ -17337,7 +17341,7 @@ function ug(n, i, s, c, u, d) {
|
|
|
17337
17341
|
_: 1
|
|
17338
17342
|
}, 8, ["modelValue"]);
|
|
17339
17343
|
}
|
|
17340
|
-
const wa = /* @__PURE__ */ ie(Yv, [["render", ug], ["__scopeId", "data-v-
|
|
17344
|
+
const wa = /* @__PURE__ */ ie(Yv, [["render", ug], ["__scopeId", "data-v-7460ba20"]]), dg = {
|
|
17341
17345
|
name: "ImportTemplateTrigger",
|
|
17342
17346
|
props: {
|
|
17343
17347
|
// 父组件传入的 Popover 显隐状态,对应 v-model。
|
|
@@ -17817,7 +17821,7 @@ const Ig = /* @__PURE__ */ ie(bg, [["render", Tg], ["__scopeId", "data-v-e070aed
|
|
|
17817
17821
|
}, Dg = { class: "BnImportTemplate-fields-content" }, Lg = { class: "BnImportTemplate-fields-header" }, Pg = { class: "BnImportTemplate-field-show" }, Og = { class: "BnImportTemplate-field-other" }, Mg = { class: "BnImportTemplate-field-other" }, Fg = { class: "BnImportTemplate-fields-content-view" }, Ag = { class: "BnImportTemplate-field-row" }, Bg = ["onClick"], Vg = {
|
|
17818
17822
|
key: 0,
|
|
17819
17823
|
class: "BnImportTemplate-expand"
|
|
17820
|
-
}, Eg = { class: "BnImportTemplate-field-show" },
|
|
17824
|
+
}, Eg = { class: "BnImportTemplate-field-show" }, _g = { class: "BnImportTemplate-field-other" }, Ng = { class: "BnImportTemplate-field-other" }, Hg = { key: 0 }, zg = { class: "BnImportTemplate-field-name" }, Rg = { class: "BnImportTemplate-field-show" }, Ug = { class: "BnImportTemplate-field-other" }, jg = { class: "BnImportTemplate-field-other" };
|
|
17821
17825
|
function Wg(n, i, s, c, u, d) {
|
|
17822
17826
|
const g = P("el-input"), k = P("BnCheck"), x = P("el-tooltip"), C = P("el-scrollbar");
|
|
17823
17827
|
return b(), F("div", {
|
|
@@ -17889,7 +17893,7 @@ function Wg(n, i, s, c, u, d) {
|
|
|
17889
17893
|
class: Me(["BnImportTemplate-field-name", { "is-leaf": T.behaviorType !== 13 }]),
|
|
17890
17894
|
onClick: (B) => d.showOrCloseChildList(T)
|
|
17891
17895
|
}, [
|
|
17892
|
-
T.behaviorType === 13 ? (b(), F("span", Vg, G(T.childOpen ? "▾" : "▸"), 1)) :
|
|
17896
|
+
T.behaviorType === 13 ? (b(), F("span", Vg, G(T.childOpen ? "▾" : "▸"), 1)) : _("", !0),
|
|
17893
17897
|
q(" " + G(T.columnName), 1)
|
|
17894
17898
|
], 10, Bg),
|
|
17895
17899
|
y("div", Eg, [
|
|
@@ -17900,7 +17904,7 @@ function Wg(n, i, s, c, u, d) {
|
|
|
17900
17904
|
onChange: (B) => d.itemCheckChange(T, "show")
|
|
17901
17905
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled", "onChange"])
|
|
17902
17906
|
]),
|
|
17903
|
-
y("div",
|
|
17907
|
+
y("div", _g, [
|
|
17904
17908
|
L(k, {
|
|
17905
17909
|
modelValue: T.checkMust,
|
|
17906
17910
|
"onUpdate:modelValue": (B) => T.checkMust = B,
|
|
@@ -17908,7 +17912,7 @@ function Wg(n, i, s, c, u, d) {
|
|
|
17908
17912
|
onChange: (B) => d.itemCheckChange(T, "checkMust")
|
|
17909
17913
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled", "onChange"])
|
|
17910
17914
|
]),
|
|
17911
|
-
De(y("div",
|
|
17915
|
+
De(y("div", Ng, [
|
|
17912
17916
|
L(k, {
|
|
17913
17917
|
modelValue: T.key,
|
|
17914
17918
|
"onUpdate:modelValue": (B) => T.key = B,
|
|
@@ -17951,7 +17955,7 @@ function Wg(n, i, s, c, u, d) {
|
|
|
17951
17955
|
[We, s.importType === 1 || s.importType === 3]
|
|
17952
17956
|
])
|
|
17953
17957
|
]))), 128))
|
|
17954
|
-
])) :
|
|
17958
|
+
])) : _("", !0)
|
|
17955
17959
|
]))), 128))
|
|
17956
17960
|
])
|
|
17957
17961
|
]),
|
|
@@ -18119,7 +18123,7 @@ function ty(n, i, s, c, u, d) {
|
|
|
18119
18123
|
}, null, 8, ["modelValue"])
|
|
18120
18124
|
])
|
|
18121
18125
|
]),
|
|
18122
|
-
|
|
18126
|
+
_("", !0),
|
|
18123
18127
|
y("div", qg, [
|
|
18124
18128
|
i[25] || (i[25] = y("div", { class: "BnImportTemplate-edit-title" }, "选择导入方式", -1)),
|
|
18125
18129
|
y("div", Qg, [
|
|
@@ -18134,7 +18138,7 @@ function ty(n, i, s, c, u, d) {
|
|
|
18134
18138
|
])]),
|
|
18135
18139
|
_: 1
|
|
18136
18140
|
}),
|
|
18137
|
-
s.isWorkflow ?
|
|
18141
|
+
s.isWorkflow ? _("", !0) : (b(), R(k, {
|
|
18138
18142
|
key: 0,
|
|
18139
18143
|
value: 2
|
|
18140
18144
|
}, {
|
|
@@ -19068,7 +19072,7 @@ function By(n, i, s, c, u, d) {
|
|
|
19068
19072
|
falseData: "0",
|
|
19069
19073
|
label: "多选联动以及子表单组件导出时拆分成多行数据"
|
|
19070
19074
|
}, null, 8, ["modelValue"])
|
|
19071
|
-
])) :
|
|
19075
|
+
])) : _("", !0),
|
|
19072
19076
|
u.hasSubRow ? (b(), F("div", ky, [
|
|
19073
19077
|
L(g, {
|
|
19074
19078
|
modelValue: u.postParams.ext.splitSubformToSingleCol,
|
|
@@ -19077,7 +19081,7 @@ function By(n, i, s, c, u, d) {
|
|
|
19077
19081
|
falseData: "0",
|
|
19078
19082
|
label: "子表单组件导出时合并成单列数据"
|
|
19079
19083
|
}, null, 8, ["modelValue"])
|
|
19080
|
-
])) :
|
|
19084
|
+
])) : _("", !0),
|
|
19081
19085
|
y("div", xy, [
|
|
19082
19086
|
L(g, {
|
|
19083
19087
|
modelValue: u.postParams.ext.exportImgData,
|
|
@@ -19096,7 +19100,7 @@ function By(n, i, s, c, u, d) {
|
|
|
19096
19100
|
falseData: "0",
|
|
19097
19101
|
label: "拆分收获地址、收寄信息"
|
|
19098
19102
|
}, null, 8, ["modelValue"])
|
|
19099
|
-
])) :
|
|
19103
|
+
])) : _("", !0)
|
|
19100
19104
|
]),
|
|
19101
19105
|
s.postData.all ? (b(), F("div", Iy, [
|
|
19102
19106
|
i[16] || (i[16] = q("已全选 ", -1)),
|
|
@@ -19106,7 +19110,7 @@ function By(n, i, s, c, u, d) {
|
|
|
19106
19110
|
i[18] || (i[18] = q("已选择 ", -1)),
|
|
19107
19111
|
y("span", Ly, G(s.postData.ids.length), 1),
|
|
19108
19112
|
i[19] || (i[19] = q("条数据,请选择导出字段", -1))
|
|
19109
|
-
])) :
|
|
19113
|
+
])) : _("", !0),
|
|
19110
19114
|
y("div", Py, [
|
|
19111
19115
|
y("div", Oy, [
|
|
19112
19116
|
L(k, {
|
|
@@ -19126,7 +19130,7 @@ function By(n, i, s, c, u, d) {
|
|
|
19126
19130
|
key: 0,
|
|
19127
19131
|
class: "w-color-blue w-cursor-pointer w-margin-left5",
|
|
19128
19132
|
onClick: i[6] || (i[6] = (U) => u.postParams.columns = [])
|
|
19129
|
-
}, " 取消选中")) :
|
|
19133
|
+
}, " 取消选中")) : _("", !0)
|
|
19130
19134
|
])
|
|
19131
19135
|
]),
|
|
19132
19136
|
y("div", Fy, [
|
|
@@ -19148,7 +19152,7 @@ function By(n, i, s, c, u, d) {
|
|
|
19148
19152
|
}, null, 8, ["modelValue", "trueData", "label"])
|
|
19149
19153
|
]),
|
|
19150
19154
|
_: 2
|
|
19151
|
-
}, 1024)) :
|
|
19155
|
+
}, 1024)) : _("", !0)
|
|
19152
19156
|
], 64))), 256))
|
|
19153
19157
|
]),
|
|
19154
19158
|
_: 1
|
|
@@ -19159,7 +19163,7 @@ function By(n, i, s, c, u, d) {
|
|
|
19159
19163
|
ref: "validatorCode",
|
|
19160
19164
|
postFunc: s.postFunc,
|
|
19161
19165
|
"post-data": { appId: u.appId, projectId: u.tableId }
|
|
19162
|
-
}, null, 8, ["postFunc", "post-data"])) :
|
|
19166
|
+
}, null, 8, ["postFunc", "post-data"])) : _("", !0)
|
|
19163
19167
|
])), [
|
|
19164
19168
|
[H, u.loading]
|
|
19165
19169
|
]),
|
|
@@ -19205,11 +19209,11 @@ const Vy = /* @__PURE__ */ ie(vy, [["render", By], ["__scopeId", "data-v-389bf78
|
|
|
19205
19209
|
});
|
|
19206
19210
|
}
|
|
19207
19211
|
}
|
|
19208
|
-
},
|
|
19212
|
+
}, _y = { class: "shareUrlInp" }, Ny = { class: "shareUrlInp-url" }, Hy = ["href"], zy = { ref: "canvasRef" };
|
|
19209
19213
|
function Ry(n, i, s, c, u, d) {
|
|
19210
19214
|
const g = P("el-text"), k = P("el-popover");
|
|
19211
|
-
return b(), F("div",
|
|
19212
|
-
y("div",
|
|
19215
|
+
return b(), F("div", _y, [
|
|
19216
|
+
y("div", Ny, G(s.url), 1),
|
|
19213
19217
|
y("div", null, [
|
|
19214
19218
|
L(g, {
|
|
19215
19219
|
class: "w-cursor-pointer",
|
|
@@ -19468,7 +19472,7 @@ function rb(n, i, s, c, u, d) {
|
|
|
19468
19472
|
q("编辑", -1)
|
|
19469
19473
|
])]),
|
|
19470
19474
|
_: 1
|
|
19471
|
-
})) :
|
|
19475
|
+
})) : _("", !0)
|
|
19472
19476
|
]),
|
|
19473
19477
|
_: 1
|
|
19474
19478
|
}, 8, ["modelValue", "onChange", "disabled"])
|
|
@@ -19484,7 +19488,7 @@ function rb(n, i, s, c, u, d) {
|
|
|
19484
19488
|
href: "https://fuwu.taobao.com/ser/detail.htm?service_code=FW_GOODS-1001101627&code=FW_GOODS-1001101627",
|
|
19485
19489
|
target: "_blank"
|
|
19486
19490
|
}, "去订购", -1)
|
|
19487
|
-
])])) :
|
|
19491
|
+
])])) : _("", !0),
|
|
19488
19492
|
u.postData.type == 3 ? (b(), F("span", Yy, [...i[12] || (i[12] = [
|
|
19489
19493
|
q(" 若你没有可用的京东POP店铺可前往平台市场 ", -1),
|
|
19490
19494
|
y("a", {
|
|
@@ -19492,7 +19496,7 @@ function rb(n, i, s, c, u, d) {
|
|
|
19492
19496
|
href: "https://fw.jd.com/main/detail/FW_GOODS-325402?rdct=true",
|
|
19493
19497
|
target: "_blank"
|
|
19494
19498
|
}, "去订购", -1)
|
|
19495
|
-
])])) :
|
|
19499
|
+
])])) : _("", !0),
|
|
19496
19500
|
u.postData.type != 1 && u.postData.type != 3 ? (b(), F("span", Jy, [...i[13] || (i[13] = [
|
|
19497
19501
|
q(" 抖音(极速配置版)、京东自营生成的平台链接可以我们的班牛服务大厅统一管理 ", -1),
|
|
19498
19502
|
y("a", {
|
|
@@ -19500,7 +19504,7 @@ function rb(n, i, s, c, u, d) {
|
|
|
19500
19504
|
href: "https://work.bytenew.com/app.html#/applet/serviceHallNew/shortChainManage",
|
|
19501
19505
|
target: "_blank"
|
|
19502
19506
|
}, "前往查看", -1)
|
|
19503
|
-
])])) :
|
|
19507
|
+
])])) : _("", !0)
|
|
19504
19508
|
]),
|
|
19505
19509
|
L(x, { label: "平台类型" }, {
|
|
19506
19510
|
default: O(() => [
|
|
@@ -19536,7 +19540,7 @@ function rb(n, i, s, c, u, d) {
|
|
|
19536
19540
|
])
|
|
19537
19541
|
]),
|
|
19538
19542
|
_: 1
|
|
19539
|
-
})) :
|
|
19543
|
+
})) : _("", !0),
|
|
19540
19544
|
u.postData.type == 2 ? (b(), R(x, {
|
|
19541
19545
|
key: 1,
|
|
19542
19546
|
label: "抖音"
|
|
@@ -19560,7 +19564,7 @@ function rb(n, i, s, c, u, d) {
|
|
|
19560
19564
|
])
|
|
19561
19565
|
]),
|
|
19562
19566
|
_: 1
|
|
19563
|
-
})) :
|
|
19567
|
+
})) : _("", !0),
|
|
19564
19568
|
u.postData.type == 3 ? (b(), R(x, {
|
|
19565
19569
|
key: 2,
|
|
19566
19570
|
label: "京东POP"
|
|
@@ -19587,7 +19591,7 @@ function rb(n, i, s, c, u, d) {
|
|
|
19587
19591
|
])
|
|
19588
19592
|
]),
|
|
19589
19593
|
_: 1
|
|
19590
|
-
})) :
|
|
19594
|
+
})) : _("", !0),
|
|
19591
19595
|
u.postData.type == 4 ? (b(), R(x, {
|
|
19592
19596
|
key: 3,
|
|
19593
19597
|
label: "京东自营"
|
|
@@ -19614,7 +19618,7 @@ function rb(n, i, s, c, u, d) {
|
|
|
19614
19618
|
])
|
|
19615
19619
|
]),
|
|
19616
19620
|
_: 1
|
|
19617
|
-
})) :
|
|
19621
|
+
})) : _("", !0),
|
|
19618
19622
|
this.url.endDate ? (b(), R(x, { key: 4 }, {
|
|
19619
19623
|
default: O(() => [
|
|
19620
19624
|
L(W, { span: 24 }, {
|
|
@@ -19640,7 +19644,7 @@ function rb(n, i, s, c, u, d) {
|
|
|
19640
19644
|
})
|
|
19641
19645
|
]),
|
|
19642
19646
|
_: 1
|
|
19643
|
-
})) :
|
|
19647
|
+
})) : _("", !0)
|
|
19644
19648
|
]),
|
|
19645
19649
|
_: 1
|
|
19646
19650
|
})
|
|
@@ -19660,14 +19664,14 @@ function rb(n, i, s, c, u, d) {
|
|
|
19660
19664
|
L(U, {
|
|
19661
19665
|
url: u.url.long
|
|
19662
19666
|
}, null, 8, ["url"])
|
|
19663
|
-
])) :
|
|
19667
|
+
])) : _("", !0),
|
|
19664
19668
|
u.url.short ? (b(), F("div", lb, [
|
|
19665
19669
|
i[21] || (i[21] = y("div", { class: "w-padding-tb10" }, "平台短链接", -1)),
|
|
19666
19670
|
L(U, {
|
|
19667
19671
|
url: u.url.short
|
|
19668
19672
|
}, null, 8, ["url"])
|
|
19669
|
-
])) :
|
|
19670
|
-
], 64)) :
|
|
19673
|
+
])) : _("", !0)
|
|
19674
|
+
], 64)) : _("", !0)
|
|
19671
19675
|
])
|
|
19672
19676
|
])), [
|
|
19673
19677
|
[ve, u.loading]
|
|
@@ -19806,7 +19810,7 @@ function fb(n, i, s, c, u, d) {
|
|
|
19806
19810
|
width: 32,
|
|
19807
19811
|
"is-mini": !0,
|
|
19808
19812
|
"no-warp": !0
|
|
19809
|
-
}, null, 8, ["file-list"])) :
|
|
19813
|
+
}, null, 8, ["file-list"])) : _("", !0)
|
|
19810
19814
|
]),
|
|
19811
19815
|
key: "0"
|
|
19812
19816
|
} : void 0
|
|
@@ -19894,7 +19898,7 @@ function wb(n, i, s, c, u, d) {
|
|
|
19894
19898
|
}, 1032, ["content", "disabled"])
|
|
19895
19899
|
]),
|
|
19896
19900
|
_: 2
|
|
19897
|
-
}, 1024)) :
|
|
19901
|
+
}, 1024)) : _("", !0)
|
|
19898
19902
|
], 64))), 128))
|
|
19899
19903
|
]),
|
|
19900
19904
|
_: 2
|
|
@@ -19922,10 +19926,10 @@ function wb(n, i, s, c, u, d) {
|
|
|
19922
19926
|
])
|
|
19923
19927
|
]),
|
|
19924
19928
|
_: 2
|
|
19925
|
-
}, 1024)) :
|
|
19929
|
+
}, 1024)) : _("", !0)
|
|
19926
19930
|
]),
|
|
19927
19931
|
_: 2
|
|
19928
|
-
}, 1024)) :
|
|
19932
|
+
}, 1024)) : _("", !0)
|
|
19929
19933
|
], 64))), 128)),
|
|
19930
19934
|
(b(!0), F(oe, null, me(d.editorList, (ve, pe) => (b(), F(oe, { key: pe }, [
|
|
19931
19935
|
U[ve.columnCode] ? (b(), R(x, {
|
|
@@ -19945,10 +19949,10 @@ function wb(n, i, s, c, u, d) {
|
|
|
19945
19949
|
}, null, 8, bb)
|
|
19946
19950
|
]),
|
|
19947
19951
|
_: 2
|
|
19948
|
-
}, 1024)) :
|
|
19952
|
+
}, 1024)) : _("", !0)
|
|
19949
19953
|
]),
|
|
19950
19954
|
_: 2
|
|
19951
|
-
}, 1024)) :
|
|
19955
|
+
}, 1024)) : _("", !0)
|
|
19952
19956
|
], 64))), 128))
|
|
19953
19957
|
]),
|
|
19954
19958
|
_: 2
|
|
@@ -19970,7 +19974,7 @@ function wb(n, i, s, c, u, d) {
|
|
|
19970
19974
|
]),
|
|
19971
19975
|
_: 1
|
|
19972
19976
|
}, 8, ["onClick"])
|
|
19973
|
-
])) :
|
|
19977
|
+
])) : _("", !0)
|
|
19974
19978
|
]);
|
|
19975
19979
|
}
|
|
19976
19980
|
const kb = /* @__PURE__ */ ie(hb, [["render", wb], ["__scopeId", "data-v-11a3fde7"]]), xb = {
|
|
@@ -20042,7 +20046,7 @@ const Sb = /* @__PURE__ */ ie(xb, [["render", Ib], ["__scopeId", "data-v-854a53b
|
|
|
20042
20046
|
function Ob(n, i, s, c, u, d) {
|
|
20043
20047
|
const g = P("BnEmptyTip"), k = P("el-card"), x = P("el-timeline-item"), C = P("el-timeline");
|
|
20044
20048
|
return b(), F("div", Lb, [
|
|
20045
|
-
d.logList.length ?
|
|
20049
|
+
d.logList.length ? _("", !0) : (b(), R(g, { key: 0 })),
|
|
20046
20050
|
L(C, null, {
|
|
20047
20051
|
default: O(() => [
|
|
20048
20052
|
(b(!0), F(oe, null, me(d.logList, (T, B) => (b(), R(x, {
|
|
@@ -20165,7 +20169,7 @@ function Vb(n, i, s, c, u, d) {
|
|
|
20165
20169
|
q("清空", -1)
|
|
20166
20170
|
])]),
|
|
20167
20171
|
_: 1
|
|
20168
|
-
})) :
|
|
20172
|
+
})) : _("", !0),
|
|
20169
20173
|
L(g, {
|
|
20170
20174
|
onClick: i[2] || (i[2] = (x) => d.cancel())
|
|
20171
20175
|
}, {
|
|
@@ -20196,12 +20200,12 @@ function Vb(n, i, s, c, u, d) {
|
|
|
20196
20200
|
y("span", { class: "bnUIcon bnUIcon-search" }),
|
|
20197
20201
|
q(" 筛选")
|
|
20198
20202
|
], -1)),
|
|
20199
|
-
s.modelValue.length ? (b(), F("span", Ab, "(已选" + G(s.modelValue.length) + "人)", 1)) :
|
|
20203
|
+
s.modelValue.length ? (b(), F("span", Ab, "(已选" + G(s.modelValue.length) + "人)", 1)) : _("", !0),
|
|
20200
20204
|
s.modelValue.length ? (b(), F("span", {
|
|
20201
20205
|
key: 1,
|
|
20202
20206
|
class: "bnUIcon bnUIcon-clear filter-btn-icon w-color-red w-margin-left4",
|
|
20203
20207
|
onClick: i[0] || (i[0] = Tn((x) => d.clear(), ["stop"]))
|
|
20204
|
-
})) :
|
|
20208
|
+
})) : _("", !0)
|
|
20205
20209
|
]),
|
|
20206
20210
|
_: 1
|
|
20207
20211
|
})
|
|
@@ -20210,7 +20214,7 @@ function Vb(n, i, s, c, u, d) {
|
|
|
20210
20214
|
_: 3
|
|
20211
20215
|
}, 8, ["postData", "postFunc", "options", "modelValue"]);
|
|
20212
20216
|
}
|
|
20213
|
-
const Eb = /* @__PURE__ */ ie(Fb, [["render", Vb], ["__scopeId", "data-v-d541a9f6"]]),
|
|
20217
|
+
const Eb = /* @__PURE__ */ ie(Fb, [["render", Vb], ["__scopeId", "data-v-d541a9f6"]]), _b = {
|
|
20214
20218
|
name: "BnOrderDetail",
|
|
20215
20219
|
components: { showSubForm: Sb, orderLogs: Mb, filterLogByUser: Eb },
|
|
20216
20220
|
props: {
|
|
@@ -20269,7 +20273,16 @@ const Eb = /* @__PURE__ */ ie(Fb, [["render", Vb], ["__scopeId", "data-v-d541a9f
|
|
|
20269
20273
|
};
|
|
20270
20274
|
},
|
|
20271
20275
|
methods: {
|
|
20272
|
-
isEmpty:
|
|
20276
|
+
isEmpty: Ze,
|
|
20277
|
+
/**
|
|
20278
|
+
* 判断字段是否被 AI 打标(beneben_ai_marking 为逗号分隔的 columnId 字符串)
|
|
20279
|
+
*/
|
|
20280
|
+
isAiMarkingColumn(n) {
|
|
20281
|
+
const i = this.taskDetail.beneben_ai_marking;
|
|
20282
|
+
if (!i) return !1;
|
|
20283
|
+
const s = String(n.id);
|
|
20284
|
+
return typeof i == "string" ? i.split(",").some((c) => c.trim() === s) : Array.isArray(i) ? i.some((c) => String(c) === s) : !!i[s];
|
|
20285
|
+
},
|
|
20273
20286
|
/**
|
|
20274
20287
|
* 打开编辑弹框
|
|
20275
20288
|
* */
|
|
@@ -20329,7 +20342,7 @@ const Eb = /* @__PURE__ */ ie(Fb, [["render", Vb], ["__scopeId", "data-v-d541a9f
|
|
|
20329
20342
|
i.value = n, document.body.appendChild(i), i.select(), document.execCommand("copy"), document.body.removeChild(i), this.$message.success("复制成功");
|
|
20330
20343
|
}
|
|
20331
20344
|
}
|
|
20332
|
-
},
|
|
20345
|
+
}, Nb = { class: "BnOrderDetail-main-top" }, Hb = { class: "BnOrderDetail-main-top-btn w-flex-center" }, zb = { class: "BnOrderDetail-main-body" }, Rb = { class: "BnOrderDetail-main-detail" }, Ub = {
|
|
20333
20346
|
key: 0,
|
|
20334
20347
|
class: "BnOrderDetail-item"
|
|
20335
20348
|
}, jb = { class: "BnOrderDetail-item-header" }, Wb = {
|
|
@@ -20364,7 +20377,7 @@ function Zb(n, i, s, c, u, d) {
|
|
|
20364
20377
|
onClick: i[6] || (i[6] = Tn(() => {
|
|
20365
20378
|
}, ["stop"]))
|
|
20366
20379
|
}, [
|
|
20367
|
-
y("div",
|
|
20380
|
+
y("div", Nb, [
|
|
20368
20381
|
dt(n.$slots, "top", {
|
|
20369
20382
|
taskDetail: u.taskDetail,
|
|
20370
20383
|
components: d.componentList,
|
|
@@ -20382,13 +20395,13 @@ function Zb(n, i, s, c, u, d) {
|
|
|
20382
20395
|
]),
|
|
20383
20396
|
_: 2
|
|
20384
20397
|
}, 1032, ["onClick"]))), 256)),
|
|
20385
|
-
s.noPower.includes("copy") ?
|
|
20398
|
+
s.noPower.includes("copy") ? _("", !0) : (b(), F("span", {
|
|
20386
20399
|
key: 0,
|
|
20387
20400
|
class: "bnUIcon bnUIcon-copy w-color-blue",
|
|
20388
20401
|
title: "复制",
|
|
20389
20402
|
onClick: i[0] || (i[0] = (ue) => d.operate("copy"))
|
|
20390
20403
|
})),
|
|
20391
|
-
s.noPower.includes("edit") ?
|
|
20404
|
+
s.noPower.includes("edit") ? _("", !0) : (b(), F("span", {
|
|
20392
20405
|
key: 1,
|
|
20393
20406
|
class: "bnUIcon bnUIcon-edit w-color-blue",
|
|
20394
20407
|
onClick: i[1] || (i[1] = (ue) => d.operate("edit"))
|
|
@@ -20413,56 +20426,53 @@ function Zb(n, i, s, c, u, d) {
|
|
|
20413
20426
|
]),
|
|
20414
20427
|
De((b(), F("div", zb, [
|
|
20415
20428
|
y("div", Rb, [
|
|
20416
|
-
u.taskDetail.id ?
|
|
20417
|
-
(b(!0), F(oe, null, me(d.componentList, (ue, be) => {
|
|
20418
|
-
|
|
20419
|
-
|
|
20420
|
-
|
|
20421
|
-
|
|
20422
|
-
|
|
20423
|
-
|
|
20424
|
-
|
|
20425
|
-
|
|
20426
|
-
|
|
20427
|
-
|
|
20428
|
-
|
|
20429
|
-
|
|
20430
|
-
|
|
20431
|
-
|
|
20432
|
-
|
|
20433
|
-
|
|
20434
|
-
|
|
20435
|
-
|
|
20436
|
-
|
|
20437
|
-
|
|
20438
|
-
|
|
20439
|
-
|
|
20440
|
-
|
|
20441
|
-
|
|
20442
|
-
|
|
20443
|
-
|
|
20444
|
-
|
|
20445
|
-
|
|
20446
|
-
|
|
20447
|
-
|
|
20448
|
-
|
|
20449
|
-
|
|
20450
|
-
|
|
20451
|
-
|
|
20452
|
-
|
|
20453
|
-
|
|
20454
|
-
|
|
20455
|
-
|
|
20456
|
-
|
|
20457
|
-
|
|
20458
|
-
])) : N("", !0)
|
|
20459
|
-
], 64);
|
|
20460
|
-
}), 128)),
|
|
20429
|
+
u.taskDetail.id ? _("", !0) : (b(), R(x, { key: 0 })),
|
|
20430
|
+
(b(!0), F(oe, null, me(d.componentList, (ue, be) => (b(), F(oe, { key: be }, [
|
|
20431
|
+
u.showEmpty || !d.isEmpty(u.taskDetail[ue.columnCode]) ? (b(), F("div", Ub, [
|
|
20432
|
+
y("div", jb, [
|
|
20433
|
+
q(G(ue.name) + " ", 1),
|
|
20434
|
+
d.isAiMarkingColumn(ue) ? (b(), F("div", Wb, [...i[8] || (i[8] = [
|
|
20435
|
+
y("img", {
|
|
20436
|
+
style: { width: "72px", height: "16px" },
|
|
20437
|
+
src: "https://banniu-work.oss-cn-zhangjiakou.aliyuncs.com/125_10030158_10c0871f0e3550f1297a850a1a9ecabd.jpg"
|
|
20438
|
+
}, null, -1)
|
|
20439
|
+
])])) : _("", !0)
|
|
20440
|
+
]),
|
|
20441
|
+
d.isEmpty(u.taskDetail[ue.columnCode]) ? _("", !0) : (b(), F("div", Kb, [
|
|
20442
|
+
dt(n.$slots, "columnDetail_" + ue.columnCode, {
|
|
20443
|
+
item: ue,
|
|
20444
|
+
value: u.taskDetail[ue.columnCode],
|
|
20445
|
+
row: u.taskDetail
|
|
20446
|
+
}, () => [
|
|
20447
|
+
ue.behaviorType != 13 && ue.behaviorType != 10 ? (b(), F("div", Xb, [
|
|
20448
|
+
q(G(u.taskDetail[ue.columnCode]) + " ", 1),
|
|
20449
|
+
y("span", {
|
|
20450
|
+
class: "w-color-blue w-cursor-pointer",
|
|
20451
|
+
onClick: (Oe) => d.copyVal(u.taskDetail[ue.columnCode])
|
|
20452
|
+
}, "复制", 8, Gb)
|
|
20453
|
+
])) : ue.behaviorType == 10 ? (b(), F("div", Yb, [
|
|
20454
|
+
L(C, {
|
|
20455
|
+
"file-list": u.taskDetail.inside[ue.columnCode],
|
|
20456
|
+
"is-mini": !0,
|
|
20457
|
+
"no-warp": !0,
|
|
20458
|
+
width: "50px"
|
|
20459
|
+
}, null, 8, ["file-list"])
|
|
20460
|
+
])) : ue.behaviorType == 13 ? (b(), F("div", Jb, [
|
|
20461
|
+
L(T, {
|
|
20462
|
+
column: ue,
|
|
20463
|
+
row: u.taskDetail,
|
|
20464
|
+
maxHeight: 300
|
|
20465
|
+
}, null, 8, ["column", "row"])
|
|
20466
|
+
])) : _("", !0)
|
|
20467
|
+
], !0)
|
|
20468
|
+
]))
|
|
20469
|
+
])) : _("", !0)
|
|
20470
|
+
], 64))), 128)),
|
|
20461
20471
|
u.taskDetail.tid ? (b(), R(B, {
|
|
20462
20472
|
key: 1,
|
|
20463
20473
|
postFunc: s.postFunc,
|
|
20464
20474
|
extendPost: { tid: u.taskDetail.tid, taskId: u.id, appId: s.tableInfo.appId, projectId: s.tableInfo.tableId }
|
|
20465
|
-
}, null, 8, ["postFunc", "extendPost"])) :
|
|
20475
|
+
}, null, 8, ["postFunc", "extendPost"])) : _("", !0)
|
|
20466
20476
|
]),
|
|
20467
20477
|
y("div", qb, [
|
|
20468
20478
|
L(se, {
|
|
@@ -20492,7 +20502,7 @@ function Zb(n, i, s, c, u, d) {
|
|
|
20492
20502
|
key: 0,
|
|
20493
20503
|
modelValue: u.filterUsers,
|
|
20494
20504
|
"onUpdate:modelValue": i[5] || (i[5] = (ue) => u.filterUsers = ue)
|
|
20495
|
-
}, n.$props), null, 16, ["modelValue"])) :
|
|
20505
|
+
}, n.$props), null, 16, ["modelValue"])) : _("", !0)
|
|
20496
20506
|
])
|
|
20497
20507
|
]),
|
|
20498
20508
|
_: 1
|
|
@@ -20503,7 +20513,7 @@ function Zb(n, i, s, c, u, d) {
|
|
|
20503
20513
|
filterUsers: u.filterUsers,
|
|
20504
20514
|
id: u.id,
|
|
20505
20515
|
postFunc: s.postFunc
|
|
20506
|
-
}, null, 8, ["table-info", "filterUsers", "id", "postFunc"])) :
|
|
20516
|
+
}, null, 8, ["table-info", "filterUsers", "id", "postFunc"])) : _("", !0),
|
|
20507
20517
|
dt(n.$slots, "tabPane", {
|
|
20508
20518
|
chooseTab: u.defaultTab,
|
|
20509
20519
|
taskDetail: u.taskDetail,
|
|
@@ -20520,9 +20530,9 @@ function Zb(n, i, s, c, u, d) {
|
|
|
20520
20530
|
[Te, u.loading]
|
|
20521
20531
|
])
|
|
20522
20532
|
])
|
|
20523
|
-
])) :
|
|
20533
|
+
])) : _("", !0);
|
|
20524
20534
|
}
|
|
20525
|
-
const $b = /* @__PURE__ */ ie(
|
|
20535
|
+
const $b = /* @__PURE__ */ ie(_b, [["render", Zb], ["__scopeId", "data-v-11c9e35d"]]), kn = {
|
|
20526
20536
|
no: {
|
|
20527
20537
|
url: "https://banniu-work.oss-cn-zhangjiakou.aliyuncs.com/125_110527787_41d59fbd8671cfd9a5d2449ccdbfa03f.png",
|
|
20528
20538
|
tip: "呀~没有内容呢~",
|
|
@@ -20753,19 +20763,19 @@ function D1(n, i, s, c, u, d) {
|
|
|
20753
20763
|
})
|
|
20754
20764
|
]),
|
|
20755
20765
|
y("div", h1, [
|
|
20756
|
-
u.sessionInfo.userName ? (b(), F("div", p1, "用户名:" + G(u.sessionInfo.userName), 1)) :
|
|
20757
|
-
u.sessionInfo.userId ? (b(), F("div", m1, "用户id:" + G(u.sessionInfo.userId), 1)) :
|
|
20758
|
-
u.sessionInfo.companyName ? (b(), F("div", v1, "公司名称:" + G(u.sessionInfo.companyName), 1)) :
|
|
20759
|
-
u.sessionInfo.companyId ? (b(), F("div", g1, "公司id:" + G(u.sessionInfo.companyId), 1)) :
|
|
20760
|
-
u.sessionInfo.tableCode ? (b(), F("div", y1, "表code:" + G(u.sessionInfo.tableCode), 1)) :
|
|
20761
|
-
u.sessionInfo.appId ? (b(), F("div", b1, "小程序id:" + G(u.sessionInfo.appId), 1)) :
|
|
20762
|
-
u.sessionInfo.tableId ? (b(), F("div", C1, "工作表id:" + G(u.sessionInfo.tableId), 1)) :
|
|
20763
|
-
u.sessionInfo.taskId ? (b(), F("div", w1, "任务id:" + G(u.sessionInfo.taskId), 1)) :
|
|
20764
|
-
u.sessionInfo.workflowId ? (b(), F("div", k1, "流程模板id:" + G(u.sessionInfo.workflowId), 1)) :
|
|
20765
|
-
u.sessionInfo.instanceId ? (b(), F("div", x1, "流程实例id:" + G(u.sessionInfo.instanceId), 1)) :
|
|
20766
|
-
u.sessionInfo.workFlowNodeId ? (b(), F("div", T1, "流程节点id:" + G(u.sessionInfo.workFlowNodeId), 1)) :
|
|
20767
|
-
u.sessionInfo.processCode ? (b(), F("div", I1, "流程节点code:" + G(u.sessionInfo.processCode), 1)) :
|
|
20768
|
-
u.sessionInfo.url ? (b(), F("div", S1, "工作表i地址:" + G(u.sessionInfo.url), 1)) :
|
|
20766
|
+
u.sessionInfo.userName ? (b(), F("div", p1, "用户名:" + G(u.sessionInfo.userName), 1)) : _("", !0),
|
|
20767
|
+
u.sessionInfo.userId ? (b(), F("div", m1, "用户id:" + G(u.sessionInfo.userId), 1)) : _("", !0),
|
|
20768
|
+
u.sessionInfo.companyName ? (b(), F("div", v1, "公司名称:" + G(u.sessionInfo.companyName), 1)) : _("", !0),
|
|
20769
|
+
u.sessionInfo.companyId ? (b(), F("div", g1, "公司id:" + G(u.sessionInfo.companyId), 1)) : _("", !0),
|
|
20770
|
+
u.sessionInfo.tableCode ? (b(), F("div", y1, "表code:" + G(u.sessionInfo.tableCode), 1)) : _("", !0),
|
|
20771
|
+
u.sessionInfo.appId ? (b(), F("div", b1, "小程序id:" + G(u.sessionInfo.appId), 1)) : _("", !0),
|
|
20772
|
+
u.sessionInfo.tableId ? (b(), F("div", C1, "工作表id:" + G(u.sessionInfo.tableId), 1)) : _("", !0),
|
|
20773
|
+
u.sessionInfo.taskId ? (b(), F("div", w1, "任务id:" + G(u.sessionInfo.taskId), 1)) : _("", !0),
|
|
20774
|
+
u.sessionInfo.workflowId ? (b(), F("div", k1, "流程模板id:" + G(u.sessionInfo.workflowId), 1)) : _("", !0),
|
|
20775
|
+
u.sessionInfo.instanceId ? (b(), F("div", x1, "流程实例id:" + G(u.sessionInfo.instanceId), 1)) : _("", !0),
|
|
20776
|
+
u.sessionInfo.workFlowNodeId ? (b(), F("div", T1, "流程节点id:" + G(u.sessionInfo.workFlowNodeId), 1)) : _("", !0),
|
|
20777
|
+
u.sessionInfo.processCode ? (b(), F("div", I1, "流程节点code:" + G(u.sessionInfo.processCode), 1)) : _("", !0),
|
|
20778
|
+
u.sessionInfo.url ? (b(), F("div", S1, "工作表i地址:" + G(u.sessionInfo.url), 1)) : _("", !0)
|
|
20769
20779
|
])
|
|
20770
20780
|
]),
|
|
20771
20781
|
_: 1
|
|
@@ -20775,9 +20785,9 @@ function D1(n, i, s, c, u, d) {
|
|
|
20775
20785
|
])
|
|
20776
20786
|
]);
|
|
20777
20787
|
}
|
|
20778
|
-
const L1 = /* @__PURE__ */ ie(o1, [["render", D1], ["__scopeId", "data-v-8d25baf6"]]), P1 = ce(() => import("./index-
|
|
20788
|
+
const L1 = /* @__PURE__ */ ie(o1, [["render", D1], ["__scopeId", "data-v-8d25baf6"]]), P1 = ce(() => import("./index-gu6qPQW6.js")), O1 = ce(() => import("./index-Dgi60wFT.js")), M1 = ce(() => import("./index-CqDSQWKQ.js")), F1 = ce(() => import("./index-xATmvM0d.js")), A1 = ce(() => import("./index-DDKPKT2M.js")), B1 = ce(() => import("./index-uSsx5ZNP.js")), V1 = ce(() => import("./index-OCeVbvJD.js")), E1 = ce(() => import("./index-BL7aA9xR.js")), _1 = ce(() => import("./index-C0gQEapY.js")), N1 = ce(() => import("./chooseIPaasData-CZPXX_X0.js")), H1 = ce(() => import("./index-CpICvBnF.js")), z1 = ce(() => import("./index-BEEwe5nU.js")), R1 = ce(() => import("./index-CBE9YALu.js")), U1 = {
|
|
20779
20789
|
install: (n) => {
|
|
20780
|
-
n.component("BnAddress", Pd), n.component("BnMenus", Gd), n.component("BnSelect", nf), n.component("BnVirtPopover", of), n.component("BnAdvancedFilter", Wf), n.component("BnFilterView", Qf), n.component("BnDatePicker", ec), n.component("BnCheck", lc), n.component("BnOrderCard",
|
|
20790
|
+
n.component("BnAddress", Pd), n.component("BnMenus", Gd), n.component("BnSelect", nf), n.component("BnVirtPopover", of), n.component("BnAdvancedFilter", Wf), n.component("BnFilterView", Qf), n.component("BnDatePicker", ec), n.component("BnCheck", lc), n.component("BnOrderCard", _c), n.component("BnDrop", $c), n.component("BnFileView", xh), n.component("BnInpNum", Sh), n.component("BnRadio", Oh), n.component("BnRelation", Ah), n.component("BnCondition", Gh), n.component("BnSmartForm", bm), n.component("BnBatchForm", Sm), n.component("BnStringForm", P1), n.component("BnNumberForm", O1), n.component("BnSelectForm", M1), n.component("BnRadioForm", F1), n.component("BnCheckboxForm", A1), n.component("BnDateForm", B1), n.component("BnDateDualForm", V1), n.component("BnFileForm", E1), n.component("BnChildrenForm", _1), n.component("BnChooseIPaasData", N1), n.component("BnAddressForm", H1), n.component("BnReceiveForm", z1), n.component("BnRelationForm", R1), n.component("BnFunExpr", $m), n.component("BnColumnConfig", Ev), n.component("BnColumnConfigDialog", Ca), n.component("BnFilterOption", Gv), n.component("BnImportOrder", wa), n.component("BnImportTemplate", ay), n.component("BnExportOrder", Vy), n.component("BnOrderShare", ob), n.component("BnOrderDetail", $b), n.component("BnEmptyTip", r1), n.component("BnWebLog", L1);
|
|
20781
20791
|
}
|
|
20782
20792
|
};
|
|
20783
20793
|
typeof window < "u" && window.Vue && window.Vue.use(U1);
|
|
@@ -20785,7 +20795,7 @@ export {
|
|
|
20785
20795
|
e0 as $,
|
|
20786
20796
|
O1 as A,
|
|
20787
20797
|
Pd as B,
|
|
20788
|
-
|
|
20798
|
+
_c as C,
|
|
20789
20799
|
$b as D,
|
|
20790
20800
|
ob as E,
|
|
20791
20801
|
Oh as F,
|
|
@@ -20824,8 +20834,8 @@ export {
|
|
|
20824
20834
|
U1 as d,
|
|
20825
20835
|
lc as e,
|
|
20826
20836
|
A1 as f,
|
|
20827
|
-
|
|
20828
|
-
|
|
20837
|
+
_1 as g,
|
|
20838
|
+
N1 as h,
|
|
20829
20839
|
Ev as i,
|
|
20830
20840
|
Ca as j,
|
|
20831
20841
|
Gh as k,
|