@newview/ui 1.1.12 → 1.1.13
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/newview-ui.js +626 -461
- package/dist/newview-ui.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +6 -4
- package/types/Grid.d.ts +8 -0
- package/types/Toolbar.d.ts +2 -2
package/dist/newview-ui.js
CHANGED
|
@@ -5,7 +5,7 @@ var __publicField2 = (obj, key2, value) => {
|
|
|
5
5
|
return value;
|
|
6
6
|
};
|
|
7
7
|
import { BaseInstance } from "@newview/base-vue";
|
|
8
|
-
import { openBlock, createElementBlock, normalizeStyle, defineComponent, ref, resolveComponent, createVNode, reactive, watch, onMounted, onUnmounted, createBlock, withCtx, createElementVNode, Fragment, renderList, normalizeClass, withDirectives, createTextVNode, toDisplayString, renderSlot, createCommentVNode, createSlots, vShow, h, computed, nextTick, mergeProps, toHandlers,
|
|
8
|
+
import { openBlock, createElementBlock, normalizeStyle, defineComponent, ref, resolveComponent, createVNode, reactive, watch, onMounted, onUnmounted, createBlock, withCtx, createElementVNode, Fragment, renderList, normalizeClass, withDirectives, createTextVNode, toDisplayString, renderSlot, createCommentVNode, createSlots, vShow, h, computed, nextTick, mergeProps, toHandlers, pushScopeId, popScopeId, withModifiers, createApp, getCurrentInstance } from "vue";
|
|
9
9
|
import { VxeColumn, VxeColgroup, VxeGrid, VxeTable } from "vxe-table";
|
|
10
10
|
import { utilities } from "@newview/tools";
|
|
11
11
|
import { Space, Icon, Drawer, Button } from "view-ui-plus";
|
|
@@ -17805,7 +17805,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
17805
17805
|
}
|
|
17806
17806
|
return target;
|
|
17807
17807
|
};
|
|
17808
|
-
const _sfc_main$
|
|
17808
|
+
const _sfc_main$i = {
|
|
17809
17809
|
name: "BAceEditor",
|
|
17810
17810
|
props: {
|
|
17811
17811
|
modelValue: String,
|
|
@@ -17944,13 +17944,13 @@ const _sfc_main$h = {
|
|
|
17944
17944
|
}
|
|
17945
17945
|
}
|
|
17946
17946
|
};
|
|
17947
|
-
function _sfc_render$
|
|
17947
|
+
function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
17948
17948
|
return openBlock(), createElementBlock("div", {
|
|
17949
17949
|
class: "bin-editor-next",
|
|
17950
17950
|
style: normalizeStyle($options.wrapStyles)
|
|
17951
17951
|
}, null, 4);
|
|
17952
17952
|
}
|
|
17953
|
-
const BinEditor = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17953
|
+
const BinEditor = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$i]]);
|
|
17954
17954
|
var ace$1 = { exports: {} };
|
|
17955
17955
|
(function(module, exports) {
|
|
17956
17956
|
(function() {
|
|
@@ -18181,20 +18181,6 @@ var ace$1 = { exports: {} };
|
|
|
18181
18181
|
}, i3.isPending = function() {
|
|
18182
18182
|
return n2;
|
|
18183
18183
|
}, i3;
|
|
18184
|
-
}, t.supportsLookbehind = function() {
|
|
18185
|
-
try {
|
|
18186
|
-
new RegExp("(?<=.)");
|
|
18187
|
-
} catch (e2) {
|
|
18188
|
-
return false;
|
|
18189
|
-
}
|
|
18190
|
-
return true;
|
|
18191
|
-
}, t.supportsUnicodeFlag = function() {
|
|
18192
|
-
try {
|
|
18193
|
-
new RegExp("^.$", "u");
|
|
18194
|
-
} catch (e2) {
|
|
18195
|
-
return false;
|
|
18196
|
-
}
|
|
18197
|
-
return true;
|
|
18198
18184
|
};
|
|
18199
18185
|
}), ace.define("ace/lib/useragent", ["require", "exports", "module"], function(e, t, n) {
|
|
18200
18186
|
t.OS = { LINUX: "LINUX", MAC: "MAC", WINDOWS: "WINDOWS" }, t.getOS = function() {
|
|
@@ -18609,7 +18595,7 @@ var ace$1 = { exports: {} };
|
|
|
18609
18595
|
!u.basePath && !u.workerPath && !u.modePath && !u.themePath && !Object.keys(u.$moduleUrls).length && (console.error("Unable to infer path to ace from script src,", "use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes", "or with webpack use ace/webpack-resolver"), l = function() {
|
|
18610
18596
|
});
|
|
18611
18597
|
};
|
|
18612
|
-
t.version = "1.
|
|
18598
|
+
t.version = "1.23.1";
|
|
18613
18599
|
}), ace.define("ace/loader_build", ["require", "exports", "module", "ace/lib/fixoldbrowsers", "ace/config"], function(e, t, n) {
|
|
18614
18600
|
function s(t2) {
|
|
18615
18601
|
if (!i2 || !i2.document)
|
|
@@ -18931,18 +18917,30 @@ var ace$1 = { exports: {} };
|
|
|
18931
18917
|
} };
|
|
18932
18918
|
}), ace.define("ace/keyboard/textinput", ["require", "exports", "module", "ace/lib/event", "ace/config", "ace/lib/useragent", "ace/lib/dom", "ace/lib/lang", "ace/clipboard", "ace/lib/keys"], function(e, t, n) {
|
|
18933
18919
|
var r2 = e("../lib/event"), i2 = e("../config").nls, s = e("../lib/useragent"), o = e("../lib/dom"), u = e("../lib/lang"), a = e("../clipboard"), f2 = s.isChrome < 18, l = s.isIE, c2 = s.isChrome > 63, h2 = 400, p = e("../lib/keys"), d = p.KEY_MODS, v = s.isIOS, m = v ? /\s/ : /\n/, g = s.isMobile, y = function(e2, t2) {
|
|
18934
|
-
function
|
|
18920
|
+
function P(e3) {
|
|
18921
|
+
(!n2 || !n2.parentNode) && document.removeEventListener("selectionchange", P);
|
|
18922
|
+
if (w)
|
|
18923
|
+
return;
|
|
18924
|
+
if (n2.selectionStart !== n2.selectionEnd)
|
|
18925
|
+
return;
|
|
18926
|
+
var r3 = n2.selectionStart - C, i3 = k - C;
|
|
18927
|
+
r3 > 0 ? r3 = Math.max(r3 - i3, 1) : r3 === 0 && i3 && (r3 = -1);
|
|
18928
|
+
var s2 = Math.abs(r3), o2 = r3 > 0 ? p.right : p.left;
|
|
18929
|
+
for (var u2 = 0; u2 < s2; u2++)
|
|
18930
|
+
t2.onCommandKey({}, 0, o2);
|
|
18931
|
+
}
|
|
18932
|
+
function $2() {
|
|
18935
18933
|
T2 = true, n2.blur(), n2.focus(), T2 = false;
|
|
18936
18934
|
}
|
|
18937
|
-
function
|
|
18938
|
-
e3.keyCode == 27 && n2.value.length < n2.selectionStart && (w || (N2 = n2.value), C = k = -1,
|
|
18935
|
+
function K(e3) {
|
|
18936
|
+
e3.keyCode == 27 && n2.value.length < n2.selectionStart && (w || (N2 = n2.value), C = k = -1, M()), J();
|
|
18939
18937
|
}
|
|
18940
|
-
function
|
|
18941
|
-
clearTimeout(
|
|
18938
|
+
function G() {
|
|
18939
|
+
clearTimeout(Q), Q = setTimeout(function() {
|
|
18942
18940
|
S && (n2.style.cssText = S, S = ""), t2.renderer.$isMousePressed = false, t2.renderer.$keepTextAreaAtCursor && t2.renderer.$moveTextAreaToCursor();
|
|
18943
18941
|
}, 0);
|
|
18944
18942
|
}
|
|
18945
|
-
function
|
|
18943
|
+
function Z(e3, t3, n3) {
|
|
18946
18944
|
var r3 = null, i3 = false;
|
|
18947
18945
|
n3.addEventListener("keydown", function(e4) {
|
|
18948
18946
|
r3 && clearTimeout(r3), i3 = true;
|
|
@@ -18983,7 +18981,7 @@ var ace$1 = { exports: {} };
|
|
|
18983
18981
|
var f3 = t3.commands.findKeyCommand(u2, o2);
|
|
18984
18982
|
f3 && t3.execCommand(f3);
|
|
18985
18983
|
}
|
|
18986
|
-
C = r4, k = s3,
|
|
18984
|
+
C = r4, k = s3, M("");
|
|
18987
18985
|
}
|
|
18988
18986
|
};
|
|
18989
18987
|
document.addEventListener("selectionchange", s2), t3.on("destroy", function() {
|
|
@@ -18994,60 +18992,52 @@ var ace$1 = { exports: {} };
|
|
|
18994
18992
|
n2.className = "ace_text-input", n2.setAttribute("wrap", "off"), n2.setAttribute("autocorrect", "off"), n2.setAttribute("autocapitalize", "off"), n2.setAttribute("spellcheck", false), n2.style.opacity = "0", e2.insertBefore(n2, e2.firstChild);
|
|
18995
18993
|
var y2 = false, b = false, w = false, E = false, S = "";
|
|
18996
18994
|
g || (n2.style.fontSize = "1px");
|
|
18997
|
-
var x = false, T2 = false, N2 = "", C = 0, k = 0, L = 0
|
|
18995
|
+
var x = false, T2 = false, N2 = "", C = 0, k = 0, L = 0;
|
|
18998
18996
|
try {
|
|
18999
|
-
var
|
|
19000
|
-
} catch (
|
|
18997
|
+
var A = document.activeElement === n2;
|
|
18998
|
+
} catch (O) {
|
|
19001
18999
|
}
|
|
19002
|
-
this.
|
|
19003
|
-
A = Number.MAX_SAFE_INTEGER, O = Number.MIN_SAFE_INTEGER;
|
|
19004
|
-
if (e3 < 0) {
|
|
19005
|
-
M = 0;
|
|
19006
|
-
return;
|
|
19007
|
-
}
|
|
19008
|
-
M = e3;
|
|
19009
|
-
}, this.setAriaOptions = function(e3) {
|
|
19000
|
+
this.setAriaOptions = function(e3) {
|
|
19010
19001
|
e3.activeDescendant ? (n2.setAttribute("aria-haspopup", "true"), n2.setAttribute("aria-autocomplete", e3.inline ? "both" : "list"), n2.setAttribute("aria-activedescendant", e3.activeDescendant)) : (n2.setAttribute("aria-haspopup", "false"), n2.setAttribute("aria-autocomplete", "both"), n2.removeAttribute("aria-activedescendant")), e3.role && n2.setAttribute("role", e3.role);
|
|
19011
|
-
|
|
19012
|
-
|
|
19013
|
-
|
|
19014
|
-
|
|
19015
|
-
|
|
19016
|
-
|
|
19017
|
-
|
|
19018
|
-
}, this.setAriaOptions({ role: "textbox" }), r2.addListener(n2, "blur", function(e3) {
|
|
19002
|
+
}, this.setAriaLabel = function() {
|
|
19003
|
+
if (t2.session && t2.renderer.enableKeyboardAccessibility) {
|
|
19004
|
+
var e3 = t2.session.selection.cursor.row;
|
|
19005
|
+
n2.setAttribute("aria-roledescription", i2("editor")), n2.setAttribute("aria-label", i2("Cursor at row $0", [e3 + 1]));
|
|
19006
|
+
} else
|
|
19007
|
+
n2.removeAttribute("aria-roledescription"), n2.removeAttribute("aria-label");
|
|
19008
|
+
}, this.setAriaOptions({ role: "textbox" }), this.setAriaLabel(), r2.addListener(n2, "blur", function(e3) {
|
|
19019
19009
|
if (T2)
|
|
19020
19010
|
return;
|
|
19021
|
-
t2.onBlur(e3),
|
|
19011
|
+
t2.onBlur(e3), A = false, g && !v && document.removeEventListener("selectionchange", P);
|
|
19022
19012
|
}, t2), r2.addListener(n2, "focus", function(e3) {
|
|
19023
19013
|
if (T2)
|
|
19024
19014
|
return;
|
|
19025
|
-
|
|
19015
|
+
A = true;
|
|
19026
19016
|
if (s.isEdge)
|
|
19027
19017
|
try {
|
|
19028
19018
|
if (!document.hasFocus())
|
|
19029
19019
|
return;
|
|
19030
19020
|
} catch (e4) {
|
|
19031
19021
|
}
|
|
19032
|
-
t2.onFocus(e3), s.isEdge ? setTimeout(
|
|
19022
|
+
t2.onFocus(e3), s.isEdge ? setTimeout(M) : M(), g && !v && document.addEventListener("selectionchange", P);
|
|
19033
19023
|
}, t2), this.$focusScroll = false, this.focus = function() {
|
|
19034
|
-
this.
|
|
19024
|
+
this.setAriaLabel();
|
|
19035
19025
|
if (S || c2 || this.$focusScroll == "browser")
|
|
19036
19026
|
return n2.focus({ preventScroll: true });
|
|
19037
19027
|
var e3 = n2.style.top;
|
|
19038
19028
|
n2.style.position = "fixed", n2.style.top = "0px";
|
|
19039
19029
|
try {
|
|
19040
|
-
var
|
|
19041
|
-
} catch (
|
|
19030
|
+
var t3 = n2.getBoundingClientRect().top != 0;
|
|
19031
|
+
} catch (r3) {
|
|
19042
19032
|
return;
|
|
19043
19033
|
}
|
|
19044
|
-
var
|
|
19045
|
-
if (
|
|
19046
|
-
var
|
|
19047
|
-
while (
|
|
19048
|
-
|
|
19034
|
+
var i3 = [];
|
|
19035
|
+
if (t3) {
|
|
19036
|
+
var s2 = n2.parentElement;
|
|
19037
|
+
while (s2 && s2.nodeType == 1)
|
|
19038
|
+
i3.push(s2), s2.setAttribute("ace_nocontext", true), !s2.parentElement && s2.getRootNode ? s2 = s2.getRootNode().host : s2 = s2.parentElement;
|
|
19049
19039
|
}
|
|
19050
|
-
n2.focus({ preventScroll: true }),
|
|
19040
|
+
n2.focus({ preventScroll: true }), t3 && i3.forEach(function(e4) {
|
|
19051
19041
|
e4.removeAttribute("ace_nocontext");
|
|
19052
19042
|
}), setTimeout(function() {
|
|
19053
19043
|
n2.style.position = "", n2.style.top == "0px" && (n2.style.top = e3);
|
|
@@ -19055,21 +19045,16 @@ var ace$1 = { exports: {} };
|
|
|
19055
19045
|
}, this.blur = function() {
|
|
19056
19046
|
n2.blur();
|
|
19057
19047
|
}, this.isFocused = function() {
|
|
19058
|
-
return
|
|
19048
|
+
return A;
|
|
19059
19049
|
}, t2.on("beforeEndOperation", function() {
|
|
19060
19050
|
var e3 = t2.curOp, r3 = e3 && e3.command && e3.command.name;
|
|
19061
19051
|
if (r3 == "insertstring")
|
|
19062
19052
|
return;
|
|
19063
19053
|
var i3 = r3 && (e3.docChanged || e3.selectionChanged);
|
|
19064
|
-
w && i3 && (N2 = n2.value = "",
|
|
19054
|
+
w && i3 && (N2 = n2.value = "", V()), M();
|
|
19065
19055
|
});
|
|
19066
|
-
var
|
|
19067
|
-
|
|
19068
|
-
for (var i3 = 1; i3 <= e3 - A && i3 < 2 * M + 1; i3++)
|
|
19069
|
-
r3 += t2.session.getLine(e3 - i3).length + 1;
|
|
19070
|
-
return r3;
|
|
19071
|
-
}, H = v ? function(e3) {
|
|
19072
|
-
if (!_ || y2 && !e3 || E)
|
|
19056
|
+
var M = v ? function(e3) {
|
|
19057
|
+
if (!A || y2 && !e3 || E)
|
|
19073
19058
|
return;
|
|
19074
19059
|
e3 || (e3 = "");
|
|
19075
19060
|
var r3 = "\n ab" + e3 + "cde fg\n";
|
|
@@ -19079,59 +19064,49 @@ var ace$1 = { exports: {} };
|
|
|
19079
19064
|
} : function() {
|
|
19080
19065
|
if (w || E)
|
|
19081
19066
|
return;
|
|
19082
|
-
if (!
|
|
19067
|
+
if (!A && !B)
|
|
19083
19068
|
return;
|
|
19084
19069
|
w = true;
|
|
19085
19070
|
var e3 = 0, r3 = 0, i3 = "";
|
|
19086
19071
|
if (t2.session) {
|
|
19087
19072
|
var s2 = t2.selection, o2 = s2.getRange(), u2 = s2.cursor.row;
|
|
19088
|
-
|
|
19089
|
-
|
|
19090
|
-
|
|
19091
|
-
|
|
19092
|
-
else if (
|
|
19093
|
-
|
|
19094
|
-
|
|
19095
|
-
for (var f3 = A; f3 <= O; f3++)
|
|
19096
|
-
a2.push(t2.session.getLine(f3));
|
|
19097
|
-
i3 = a2.join("\n"), e3 = P(o2.start.row, o2.start.column), r3 = P(o2.end.row, o2.end.column);
|
|
19098
|
-
if (o2.start.row < A) {
|
|
19099
|
-
var l2 = t2.session.getLine(A - 1);
|
|
19100
|
-
e3 = o2.start.row < A - 1 ? 0 : e3, r3 += l2.length + 1, i3 = l2 + "\n" + i3;
|
|
19101
|
-
} else if (o2.end.row > O) {
|
|
19102
|
-
var c3 = t2.session.getLine(O + 1);
|
|
19103
|
-
r3 = o2.end.row > O + 1 ? c3.length : o2.end.column, r3 += i3.length + 1, i3 = i3 + "\n" + c3;
|
|
19073
|
+
e3 = o2.start.column, r3 = o2.end.column, i3 = t2.session.getLine(u2);
|
|
19074
|
+
if (o2.start.row != u2) {
|
|
19075
|
+
var a2 = t2.session.getLine(u2 - 1);
|
|
19076
|
+
e3 = o2.start.row < u2 - 1 ? 0 : e3, r3 += a2.length + 1, i3 = a2 + "\n" + i3;
|
|
19077
|
+
} else if (o2.end.row != u2) {
|
|
19078
|
+
var f3 = t2.session.getLine(u2 + 1);
|
|
19079
|
+
r3 = o2.end.row > u2 + 1 ? f3.length : r3, r3 += i3.length + 1, i3 = i3 + "\n" + f3;
|
|
19104
19080
|
} else
|
|
19105
19081
|
g && u2 > 0 && (i3 = "\n" + i3, r3 += 1, e3 += 1);
|
|
19106
19082
|
i3.length > h2 && (e3 < h2 && r3 < h2 ? i3 = i3.slice(0, h2) : (i3 = "\n", e3 == r3 ? e3 = r3 = 0 : (e3 = 0, r3 = 1)));
|
|
19107
|
-
var p2 = i3 + "\n\n";
|
|
19108
|
-
p2 != N2 && (n2.value = N2 = p2, C = k = p2.length);
|
|
19109
19083
|
}
|
|
19110
|
-
|
|
19084
|
+
var l2 = i3 + "\n\n";
|
|
19085
|
+
l2 != N2 && (n2.value = N2 = l2, C = k = l2.length), B && (C = n2.selectionStart, k = n2.selectionEnd);
|
|
19111
19086
|
if (k != r3 || C != e3 || n2.selectionEnd != k)
|
|
19112
19087
|
try {
|
|
19113
19088
|
n2.setSelectionRange(e3, r3), C = e3, k = r3;
|
|
19114
|
-
} catch (
|
|
19089
|
+
} catch (c3) {
|
|
19115
19090
|
}
|
|
19116
19091
|
w = false;
|
|
19117
19092
|
};
|
|
19118
|
-
this.resetSelection =
|
|
19119
|
-
var
|
|
19093
|
+
this.resetSelection = M, A && t2.onFocus();
|
|
19094
|
+
var _ = function(e3) {
|
|
19120
19095
|
return e3.selectionStart === 0 && e3.selectionEnd >= N2.length && e3.value === N2 && N2 && e3.selectionEnd !== k;
|
|
19121
|
-
},
|
|
19096
|
+
}, D = function(e3) {
|
|
19122
19097
|
if (w)
|
|
19123
19098
|
return;
|
|
19124
|
-
y2 ? y2 = false :
|
|
19125
|
-
},
|
|
19099
|
+
y2 ? y2 = false : _(n2) ? (t2.selectAll(), M()) : g && n2.selectionStart != C && M();
|
|
19100
|
+
}, H = null;
|
|
19126
19101
|
this.setInputHandler = function(e3) {
|
|
19127
|
-
|
|
19102
|
+
H = e3;
|
|
19128
19103
|
}, this.getInputHandler = function() {
|
|
19129
|
-
return
|
|
19104
|
+
return H;
|
|
19130
19105
|
};
|
|
19131
|
-
var
|
|
19132
|
-
|
|
19106
|
+
var B = false, j2 = function(e3, r3) {
|
|
19107
|
+
B && (B = false);
|
|
19133
19108
|
if (b)
|
|
19134
|
-
return
|
|
19109
|
+
return M(), e3 && t2.onPaste(e3), b = false, "";
|
|
19135
19110
|
var i3 = n2.selectionStart, o2 = n2.selectionEnd, u2 = C, a2 = N2.length - k, f3 = e3, l2 = e3.length - i3, c3 = e3.length - o2, h3 = 0;
|
|
19136
19111
|
while (u2 > 0 && N2[h3] == e3[h3])
|
|
19137
19112
|
h3++, u2--;
|
|
@@ -19146,18 +19121,18 @@ var ace$1 = { exports: {} };
|
|
|
19146
19121
|
E = true;
|
|
19147
19122
|
var d2 = false;
|
|
19148
19123
|
return s.isAndroid && f3 == ". " && (f3 = " ", d2 = true), f3 && !u2 && !a2 && !l2 && !c3 || x ? t2.onTextInput(f3) : t2.onTextInput(f3, { extendLeft: u2, extendRight: a2, restoreStart: l2, restoreEnd: c3 }), E = false, N2 = e3, C = i3, k = o2, L = c3, d2 ? "\n" : f3;
|
|
19149
|
-
},
|
|
19124
|
+
}, F = function(e3) {
|
|
19150
19125
|
if (w)
|
|
19151
|
-
return
|
|
19126
|
+
return X();
|
|
19152
19127
|
if (e3 && e3.inputType) {
|
|
19153
19128
|
if (e3.inputType == "historyUndo")
|
|
19154
19129
|
return t2.execCommand("undo");
|
|
19155
19130
|
if (e3.inputType == "historyRedo")
|
|
19156
19131
|
return t2.execCommand("redo");
|
|
19157
19132
|
}
|
|
19158
|
-
var r3 = n2.value, i3 =
|
|
19159
|
-
(r3.length > h2 + 100 || m.test(i3) || g && C < 1 && C == k) &&
|
|
19160
|
-
},
|
|
19133
|
+
var r3 = n2.value, i3 = j2(r3, true);
|
|
19134
|
+
(r3.length > h2 + 100 || m.test(i3) || g && C < 1 && C == k) && M();
|
|
19135
|
+
}, I = function(e3, t3, n3) {
|
|
19161
19136
|
var r3 = e3.clipboardData || window.clipboardData;
|
|
19162
19137
|
if (!r3 || f2)
|
|
19163
19138
|
return;
|
|
@@ -19166,67 +19141,67 @@ var ace$1 = { exports: {} };
|
|
|
19166
19141
|
return t3 ? r3.setData(i3, t3) !== false : r3.getData(i3);
|
|
19167
19142
|
} catch (e4) {
|
|
19168
19143
|
if (!n3)
|
|
19169
|
-
return
|
|
19144
|
+
return I(e4, t3, true);
|
|
19170
19145
|
}
|
|
19171
|
-
},
|
|
19146
|
+
}, q2 = function(e3, i3) {
|
|
19172
19147
|
var s2 = t2.getCopyText();
|
|
19173
19148
|
if (!s2)
|
|
19174
19149
|
return r2.preventDefault(e3);
|
|
19175
|
-
|
|
19150
|
+
I(e3, s2) ? (v && (M(s2), y2 = s2, setTimeout(function() {
|
|
19176
19151
|
y2 = false;
|
|
19177
19152
|
}, 10)), i3 ? t2.onCut() : t2.onCopy(), r2.preventDefault(e3)) : (y2 = true, n2.value = s2, n2.select(), setTimeout(function() {
|
|
19178
|
-
y2 = false,
|
|
19153
|
+
y2 = false, M(), i3 ? t2.onCut() : t2.onCopy();
|
|
19179
19154
|
}));
|
|
19180
|
-
},
|
|
19181
|
-
|
|
19182
|
-
},
|
|
19183
|
-
|
|
19184
|
-
},
|
|
19185
|
-
var i3 =
|
|
19155
|
+
}, R2 = function(e3) {
|
|
19156
|
+
q2(e3, true);
|
|
19157
|
+
}, U = function(e3) {
|
|
19158
|
+
q2(e3, false);
|
|
19159
|
+
}, z = function(e3) {
|
|
19160
|
+
var i3 = I(e3);
|
|
19186
19161
|
if (a.pasteCancelled())
|
|
19187
19162
|
return;
|
|
19188
|
-
typeof i3 == "string" ? (i3 && t2.onPaste(i3, e3), s.isIE && setTimeout(
|
|
19163
|
+
typeof i3 == "string" ? (i3 && t2.onPaste(i3, e3), s.isIE && setTimeout(M), r2.preventDefault(e3)) : (n2.value = "", b = true);
|
|
19189
19164
|
};
|
|
19190
|
-
r2.addCommandKeyListener(n2, t2.onCommandKey.bind(t2), t2), r2.addListener(n2, "select",
|
|
19165
|
+
r2.addCommandKeyListener(n2, t2.onCommandKey.bind(t2), t2), r2.addListener(n2, "select", D, t2), r2.addListener(n2, "input", F, t2), r2.addListener(n2, "cut", R2, t2), r2.addListener(n2, "copy", U, t2), r2.addListener(n2, "paste", z, t2), (!("oncut" in n2) || !("oncopy" in n2) || !("onpaste" in n2)) && r2.addListener(e2, "keydown", function(e3) {
|
|
19191
19166
|
if (s.isMac && !e3.metaKey || !e3.ctrlKey)
|
|
19192
19167
|
return;
|
|
19193
19168
|
switch (e3.keyCode) {
|
|
19194
19169
|
case 67:
|
|
19195
|
-
|
|
19170
|
+
U(e3);
|
|
19196
19171
|
break;
|
|
19197
19172
|
case 86:
|
|
19198
|
-
|
|
19173
|
+
z(e3);
|
|
19199
19174
|
break;
|
|
19200
19175
|
case 88:
|
|
19201
|
-
|
|
19176
|
+
R2(e3);
|
|
19202
19177
|
}
|
|
19203
19178
|
}, t2);
|
|
19204
|
-
var
|
|
19179
|
+
var W = function(e3) {
|
|
19205
19180
|
if (w || !t2.onCompositionStart || t2.$readOnly)
|
|
19206
19181
|
return;
|
|
19207
19182
|
w = {};
|
|
19208
19183
|
if (x)
|
|
19209
19184
|
return;
|
|
19210
|
-
e3.data && (w.useTextareaForIME = false), setTimeout(
|
|
19185
|
+
e3.data && (w.useTextareaForIME = false), setTimeout(X, 0), t2._signal("compositionStart"), t2.on("mousedown", $2);
|
|
19211
19186
|
var r3 = t2.getSelectionRange();
|
|
19212
19187
|
r3.end.row = r3.start.row, r3.end.column = r3.start.column, w.markerRange = r3, w.selectionStart = C, t2.onCompositionStart(w), w.useTextareaForIME ? (N2 = n2.value = "", C = 0, k = 0) : (n2.msGetInputContext && (w.context = n2.msGetInputContext()), n2.getInputContext && (w.context = n2.getInputContext()));
|
|
19213
|
-
},
|
|
19188
|
+
}, X = function() {
|
|
19214
19189
|
if (!w || !t2.onCompositionUpdate || t2.$readOnly)
|
|
19215
19190
|
return;
|
|
19216
19191
|
if (x)
|
|
19217
|
-
return
|
|
19192
|
+
return $2();
|
|
19218
19193
|
if (w.useTextareaForIME)
|
|
19219
19194
|
t2.onCompositionUpdate(n2.value);
|
|
19220
19195
|
else {
|
|
19221
19196
|
var e3 = n2.value;
|
|
19222
|
-
|
|
19197
|
+
j2(e3), w.markerRange && (w.context && (w.markerRange.start.column = w.selectionStart = w.context.compositionStartOffset), w.markerRange.end.column = w.markerRange.start.column + k - w.selectionStart + L);
|
|
19223
19198
|
}
|
|
19224
|
-
},
|
|
19199
|
+
}, V = function(e3) {
|
|
19225
19200
|
if (!t2.onCompositionEnd || t2.$readOnly)
|
|
19226
19201
|
return;
|
|
19227
|
-
w = false, t2.onCompositionEnd(), t2.off("mousedown",
|
|
19228
|
-
},
|
|
19229
|
-
r2.addListener(n2, "compositionstart",
|
|
19202
|
+
w = false, t2.onCompositionEnd(), t2.off("mousedown", $2), e3 && F();
|
|
19203
|
+
}, J = u.delayedCall(X, 50).schedule.bind(null, null);
|
|
19204
|
+
r2.addListener(n2, "compositionstart", W, t2), r2.addListener(n2, "compositionupdate", X, t2), r2.addListener(n2, "keyup", K, t2), r2.addListener(n2, "keydown", J, t2), r2.addListener(n2, "compositionend", V, t2), this.getElement = function() {
|
|
19230
19205
|
return n2;
|
|
19231
19206
|
}, this.setCommandMode = function(e3) {
|
|
19232
19207
|
x = e3, n2.readOnly = false;
|
|
@@ -19234,7 +19209,7 @@ var ace$1 = { exports: {} };
|
|
|
19234
19209
|
x || (n2.readOnly = e3);
|
|
19235
19210
|
}, this.setCopyWithEmptySelection = function(e3) {
|
|
19236
19211
|
}, this.onContextMenu = function(e3) {
|
|
19237
|
-
|
|
19212
|
+
B = true, M(), t2._emit("nativecontextmenu", { target: t2, domEvent: e3 }), this.moveToMouse(e3, true);
|
|
19238
19213
|
}, this.moveToMouse = function(e3, i3) {
|
|
19239
19214
|
S || (S = n2.style.cssText), n2.style.cssText = (i3 ? "z-index:100000;" : "") + (s.isIE ? "opacity:0.1;" : "") + "text-indent: -" + (C + k) * t2.renderer.characterWidth * 0.5 + "px;";
|
|
19240
19215
|
var u2 = t2.container.getBoundingClientRect(), a2 = o.computedStyle(t2.container), f3 = u2.top + (parseInt(a2.borderTopWidth) || 0), l2 = u2.left + (parseInt(u2.borderLeftWidth) || 0), c3 = u2.bottom - f3 - n2.clientHeight - 2, h3 = function(e4) {
|
|
@@ -19243,14 +19218,14 @@ var ace$1 = { exports: {} };
|
|
|
19243
19218
|
h3(e3);
|
|
19244
19219
|
if (e3.type != "mousedown")
|
|
19245
19220
|
return;
|
|
19246
|
-
t2.renderer.$isMousePressed = true, clearTimeout(
|
|
19247
|
-
}, this.onContextMenuClose =
|
|
19248
|
-
var
|
|
19249
|
-
t2.textInput.onContextMenu(e3),
|
|
19221
|
+
t2.renderer.$isMousePressed = true, clearTimeout(Q), s.isWin && r2.capture(t2.container, h3, G);
|
|
19222
|
+
}, this.onContextMenuClose = G;
|
|
19223
|
+
var Q, Y = function(e3) {
|
|
19224
|
+
t2.textInput.onContextMenu(e3), G();
|
|
19250
19225
|
};
|
|
19251
|
-
r2.addListener(n2, "mouseup",
|
|
19252
|
-
e3.preventDefault(),
|
|
19253
|
-
}, t2), r2.addListener(t2.renderer.scroller, "contextmenu",
|
|
19226
|
+
r2.addListener(n2, "mouseup", Y, t2), r2.addListener(n2, "mousedown", function(e3) {
|
|
19227
|
+
e3.preventDefault(), G();
|
|
19228
|
+
}, t2), r2.addListener(t2.renderer.scroller, "contextmenu", Y, t2), r2.addListener(n2, "contextmenu", Y, t2), v && Z(e2, t2, n2), this.destroy = function() {
|
|
19254
19229
|
n2.parentElement && n2.parentElement.removeChild(n2);
|
|
19255
19230
|
};
|
|
19256
19231
|
};
|
|
@@ -19581,12 +19556,8 @@ var ace$1 = { exports: {} };
|
|
|
19581
19556
|
if (e2.$tooltipFollowsMouse)
|
|
19582
19557
|
c2(u2);
|
|
19583
19558
|
else {
|
|
19584
|
-
var l2 =
|
|
19585
|
-
|
|
19586
|
-
var p = h2.element.querySelector(".ace_gutter_annotation"), d = p.getBoundingClientRect(), v = r3.getElement().style;
|
|
19587
|
-
v.left = d.right + "px", v.top = d.bottom + "px";
|
|
19588
|
-
} else
|
|
19589
|
-
c2(u2);
|
|
19559
|
+
var l2 = n2.$lines.cells[i4].element.querySelector("[class*=ace_icon]"), h2 = l2.getBoundingClientRect(), p = r3.getElement().style;
|
|
19560
|
+
p.left = h2.right + "px", p.top = h2.bottom + "px";
|
|
19590
19561
|
}
|
|
19591
19562
|
}
|
|
19592
19563
|
function f3() {
|
|
@@ -19745,9 +19716,6 @@ var ace$1 = { exports: {} };
|
|
|
19745
19716
|
this.stopPropagation(), this.preventDefault();
|
|
19746
19717
|
}, e2.prototype.getDocumentPosition = function() {
|
|
19747
19718
|
return this.$pos ? this.$pos : (this.$pos = this.editor.renderer.screenToTextCoordinates(this.clientX, this.clientY), this.$pos);
|
|
19748
|
-
}, e2.prototype.getGutterRow = function() {
|
|
19749
|
-
var e3 = this.getDocumentPosition().row, t2 = this.editor.session.documentToScreenRow(e3, 0), n2 = this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row, 0);
|
|
19750
|
-
return t2 - n2;
|
|
19751
19719
|
}, e2.prototype.inSelection = function() {
|
|
19752
19720
|
if (this.$inSelection !== null)
|
|
19753
19721
|
return this.$inSelection;
|
|
@@ -20440,129 +20408,129 @@ var ace$1 = { exports: {} };
|
|
|
20440
20408
|
}();
|
|
20441
20409
|
t.BidiHandler = o;
|
|
20442
20410
|
}), ace.define("ace/selection", ["require", "exports", "module", "ace/lib/oop", "ace/lib/lang", "ace/lib/event_emitter", "ace/range"], function(e, t, n) {
|
|
20443
|
-
var r2 = e("./lib/oop"), i2 = e("./lib/lang"), s = e("./lib/event_emitter").EventEmitter, o = e("./range").Range, u = function() {
|
|
20444
|
-
|
|
20445
|
-
|
|
20446
|
-
|
|
20447
|
-
|
|
20448
|
-
|
|
20449
|
-
|
|
20450
|
-
|
|
20451
|
-
|
|
20452
|
-
|
|
20453
|
-
|
|
20411
|
+
var r2 = e("./lib/oop"), i2 = e("./lib/lang"), s = e("./lib/event_emitter").EventEmitter, o = e("./range").Range, u = function(e2) {
|
|
20412
|
+
this.session = e2, this.doc = e2.getDocument(), this.clearSelection(), this.cursor = this.lead = this.doc.createAnchor(0, 0), this.anchor = this.doc.createAnchor(0, 0), this.$silent = false;
|
|
20413
|
+
var t2 = this;
|
|
20414
|
+
this.cursor.on("change", function(e3) {
|
|
20415
|
+
t2.$cursorChanged = true, t2.$silent || t2._emit("changeCursor"), !t2.$isEmpty && !t2.$silent && t2._emit("changeSelection"), !t2.$keepDesiredColumnOnChange && e3.old.column != e3.value.column && (t2.$desiredColumn = null);
|
|
20416
|
+
}), this.anchor.on("change", function() {
|
|
20417
|
+
t2.$anchorChanged = true, !t2.$isEmpty && !t2.$silent && t2._emit("changeSelection");
|
|
20418
|
+
});
|
|
20419
|
+
};
|
|
20420
|
+
(function() {
|
|
20421
|
+
r2.implement(this, s), this.isEmpty = function() {
|
|
20454
20422
|
return this.$isEmpty || this.anchor.row == this.lead.row && this.anchor.column == this.lead.column;
|
|
20455
|
-
},
|
|
20423
|
+
}, this.isMultiLine = function() {
|
|
20456
20424
|
return !this.$isEmpty && this.anchor.row != this.cursor.row;
|
|
20457
|
-
},
|
|
20425
|
+
}, this.getCursor = function() {
|
|
20458
20426
|
return this.lead.getPosition();
|
|
20459
|
-
},
|
|
20460
|
-
this.$isEmpty = false, this.anchor.setPosition(
|
|
20461
|
-
},
|
|
20427
|
+
}, this.setAnchor = function(e2, t2) {
|
|
20428
|
+
this.$isEmpty = false, this.anchor.setPosition(e2, t2);
|
|
20429
|
+
}, this.setSelectionAnchor = this.setAnchor, this.getAnchor = function() {
|
|
20462
20430
|
return this.$isEmpty ? this.getSelectionLead() : this.anchor.getPosition();
|
|
20463
|
-
},
|
|
20431
|
+
}, this.getSelectionAnchor = this.getAnchor, this.getSelectionLead = function() {
|
|
20464
20432
|
return this.lead.getPosition();
|
|
20465
|
-
},
|
|
20466
|
-
var
|
|
20467
|
-
return
|
|
20468
|
-
},
|
|
20469
|
-
var
|
|
20470
|
-
return this.$isEmpty ? o.fromPoints(t2, t2) : this.isBackwards() ? o.fromPoints(t2,
|
|
20471
|
-
},
|
|
20433
|
+
}, this.isBackwards = function() {
|
|
20434
|
+
var e2 = this.anchor, t2 = this.lead;
|
|
20435
|
+
return e2.row > t2.row || e2.row == t2.row && e2.column > t2.column;
|
|
20436
|
+
}, this.getRange = function() {
|
|
20437
|
+
var e2 = this.anchor, t2 = this.lead;
|
|
20438
|
+
return this.$isEmpty ? o.fromPoints(t2, t2) : this.isBackwards() ? o.fromPoints(t2, e2) : o.fromPoints(e2, t2);
|
|
20439
|
+
}, this.clearSelection = function() {
|
|
20472
20440
|
this.$isEmpty || (this.$isEmpty = true, this._emit("changeSelection"));
|
|
20473
|
-
},
|
|
20441
|
+
}, this.selectAll = function() {
|
|
20474
20442
|
this.$setSelection(0, 0, Number.MAX_VALUE, Number.MAX_VALUE);
|
|
20475
|
-
},
|
|
20476
|
-
var n2 = t2 ?
|
|
20443
|
+
}, this.setRange = this.setSelectionRange = function(e2, t2) {
|
|
20444
|
+
var n2 = t2 ? e2.end : e2.start, r3 = t2 ? e2.start : e2.end;
|
|
20477
20445
|
this.$setSelection(n2.row, n2.column, r3.row, r3.column);
|
|
20478
|
-
},
|
|
20446
|
+
}, this.$setSelection = function(e2, t2, n2, r3) {
|
|
20479
20447
|
if (this.$silent)
|
|
20480
20448
|
return;
|
|
20481
20449
|
var i3 = this.$isEmpty, s2 = this.inMultiSelectMode;
|
|
20482
|
-
this.$silent = true, this.$cursorChanged = this.$anchorChanged = false, this.anchor.setPosition(
|
|
20483
|
-
},
|
|
20450
|
+
this.$silent = true, this.$cursorChanged = this.$anchorChanged = false, this.anchor.setPosition(e2, t2), this.cursor.setPosition(n2, r3), this.$isEmpty = !o.comparePoints(this.anchor, this.cursor), this.$silent = false, this.$cursorChanged && this._emit("changeCursor"), (this.$cursorChanged || this.$anchorChanged || i3 != this.$isEmpty || s2) && this._emit("changeSelection");
|
|
20451
|
+
}, this.$moveSelection = function(e2) {
|
|
20484
20452
|
var t2 = this.lead;
|
|
20485
|
-
this.$isEmpty && this.setSelectionAnchor(t2.row, t2.column),
|
|
20486
|
-
},
|
|
20453
|
+
this.$isEmpty && this.setSelectionAnchor(t2.row, t2.column), e2.call(this);
|
|
20454
|
+
}, this.selectTo = function(e2, t2) {
|
|
20487
20455
|
this.$moveSelection(function() {
|
|
20488
|
-
this.moveCursorTo(
|
|
20456
|
+
this.moveCursorTo(e2, t2);
|
|
20489
20457
|
});
|
|
20490
|
-
},
|
|
20458
|
+
}, this.selectToPosition = function(e2) {
|
|
20491
20459
|
this.$moveSelection(function() {
|
|
20492
|
-
this.moveCursorToPosition(
|
|
20460
|
+
this.moveCursorToPosition(e2);
|
|
20493
20461
|
});
|
|
20494
|
-
},
|
|
20495
|
-
this.clearSelection(), this.moveCursorTo(
|
|
20496
|
-
},
|
|
20497
|
-
this.clearSelection(), this.moveCursorToPosition(
|
|
20498
|
-
},
|
|
20462
|
+
}, this.moveTo = function(e2, t2) {
|
|
20463
|
+
this.clearSelection(), this.moveCursorTo(e2, t2);
|
|
20464
|
+
}, this.moveToPosition = function(e2) {
|
|
20465
|
+
this.clearSelection(), this.moveCursorToPosition(e2);
|
|
20466
|
+
}, this.selectUp = function() {
|
|
20499
20467
|
this.$moveSelection(this.moveCursorUp);
|
|
20500
|
-
},
|
|
20468
|
+
}, this.selectDown = function() {
|
|
20501
20469
|
this.$moveSelection(this.moveCursorDown);
|
|
20502
|
-
},
|
|
20470
|
+
}, this.selectRight = function() {
|
|
20503
20471
|
this.$moveSelection(this.moveCursorRight);
|
|
20504
|
-
},
|
|
20472
|
+
}, this.selectLeft = function() {
|
|
20505
20473
|
this.$moveSelection(this.moveCursorLeft);
|
|
20506
|
-
},
|
|
20474
|
+
}, this.selectLineStart = function() {
|
|
20507
20475
|
this.$moveSelection(this.moveCursorLineStart);
|
|
20508
|
-
},
|
|
20476
|
+
}, this.selectLineEnd = function() {
|
|
20509
20477
|
this.$moveSelection(this.moveCursorLineEnd);
|
|
20510
|
-
},
|
|
20478
|
+
}, this.selectFileEnd = function() {
|
|
20511
20479
|
this.$moveSelection(this.moveCursorFileEnd);
|
|
20512
|
-
},
|
|
20480
|
+
}, this.selectFileStart = function() {
|
|
20513
20481
|
this.$moveSelection(this.moveCursorFileStart);
|
|
20514
|
-
},
|
|
20482
|
+
}, this.selectWordRight = function() {
|
|
20515
20483
|
this.$moveSelection(this.moveCursorWordRight);
|
|
20516
|
-
},
|
|
20484
|
+
}, this.selectWordLeft = function() {
|
|
20517
20485
|
this.$moveSelection(this.moveCursorWordLeft);
|
|
20518
|
-
},
|
|
20486
|
+
}, this.getWordRange = function(e2, t2) {
|
|
20519
20487
|
if (typeof t2 == "undefined") {
|
|
20520
|
-
var n2 =
|
|
20521
|
-
|
|
20488
|
+
var n2 = e2 || this.lead;
|
|
20489
|
+
e2 = n2.row, t2 = n2.column;
|
|
20522
20490
|
}
|
|
20523
|
-
return this.session.getWordRange(
|
|
20524
|
-
},
|
|
20491
|
+
return this.session.getWordRange(e2, t2);
|
|
20492
|
+
}, this.selectWord = function() {
|
|
20525
20493
|
this.setSelectionRange(this.getWordRange());
|
|
20526
|
-
},
|
|
20527
|
-
var
|
|
20494
|
+
}, this.selectAWord = function() {
|
|
20495
|
+
var e2 = this.getCursor(), t2 = this.session.getAWordRange(e2.row, e2.column);
|
|
20528
20496
|
this.setSelectionRange(t2);
|
|
20529
|
-
},
|
|
20530
|
-
var n2 = typeof
|
|
20497
|
+
}, this.getLineRange = function(e2, t2) {
|
|
20498
|
+
var n2 = typeof e2 == "number" ? e2 : this.lead.row, r3, i3 = this.session.getFoldLine(n2);
|
|
20531
20499
|
return i3 ? (n2 = i3.start.row, r3 = i3.end.row) : r3 = n2, t2 === true ? new o(n2, 0, r3, this.session.getLine(r3).length) : new o(n2, 0, r3 + 1, 0);
|
|
20532
|
-
},
|
|
20500
|
+
}, this.selectLine = function() {
|
|
20533
20501
|
this.setSelectionRange(this.getLineRange());
|
|
20534
|
-
},
|
|
20502
|
+
}, this.moveCursorUp = function() {
|
|
20535
20503
|
this.moveCursorBy(-1, 0);
|
|
20536
|
-
},
|
|
20504
|
+
}, this.moveCursorDown = function() {
|
|
20537
20505
|
this.moveCursorBy(1, 0);
|
|
20538
|
-
},
|
|
20539
|
-
var r3 =
|
|
20540
|
-
return n2 < 0 && (r3 =
|
|
20541
|
-
},
|
|
20542
|
-
var
|
|
20543
|
-
if (t2 = this.session.getFoldAt(
|
|
20506
|
+
}, this.wouldMoveIntoSoftTab = function(e2, t2, n2) {
|
|
20507
|
+
var r3 = e2.column, i3 = e2.column + t2;
|
|
20508
|
+
return n2 < 0 && (r3 = e2.column - t2, i3 = e2.column), this.session.isTabStop(e2) && this.doc.getLine(e2.row).slice(r3, i3).split(" ").length - 1 == t2;
|
|
20509
|
+
}, this.moveCursorLeft = function() {
|
|
20510
|
+
var e2 = this.lead.getPosition(), t2;
|
|
20511
|
+
if (t2 = this.session.getFoldAt(e2.row, e2.column, -1))
|
|
20544
20512
|
this.moveCursorTo(t2.start.row, t2.start.column);
|
|
20545
|
-
else if (
|
|
20546
|
-
|
|
20513
|
+
else if (e2.column === 0)
|
|
20514
|
+
e2.row > 0 && this.moveCursorTo(e2.row - 1, this.doc.getLine(e2.row - 1).length);
|
|
20547
20515
|
else {
|
|
20548
20516
|
var n2 = this.session.getTabSize();
|
|
20549
|
-
this.wouldMoveIntoSoftTab(
|
|
20517
|
+
this.wouldMoveIntoSoftTab(e2, n2, -1) && !this.session.getNavigateWithinSoftTabs() ? this.moveCursorBy(0, -n2) : this.moveCursorBy(0, -1);
|
|
20550
20518
|
}
|
|
20551
|
-
},
|
|
20552
|
-
var
|
|
20553
|
-
if (t2 = this.session.getFoldAt(
|
|
20519
|
+
}, this.moveCursorRight = function() {
|
|
20520
|
+
var e2 = this.lead.getPosition(), t2;
|
|
20521
|
+
if (t2 = this.session.getFoldAt(e2.row, e2.column, 1))
|
|
20554
20522
|
this.moveCursorTo(t2.end.row, t2.end.column);
|
|
20555
20523
|
else if (this.lead.column == this.doc.getLine(this.lead.row).length)
|
|
20556
20524
|
this.lead.row < this.doc.getLength() - 1 && this.moveCursorTo(this.lead.row + 1, 0);
|
|
20557
20525
|
else {
|
|
20558
|
-
var n2 = this.session.getTabSize(),
|
|
20559
|
-
this.wouldMoveIntoSoftTab(
|
|
20526
|
+
var n2 = this.session.getTabSize(), e2 = this.lead;
|
|
20527
|
+
this.wouldMoveIntoSoftTab(e2, n2, 1) && !this.session.getNavigateWithinSoftTabs() ? this.moveCursorBy(0, n2) : this.moveCursorBy(0, 1);
|
|
20560
20528
|
}
|
|
20561
|
-
},
|
|
20562
|
-
var
|
|
20529
|
+
}, this.moveCursorLineStart = function() {
|
|
20530
|
+
var e2 = this.lead.row, t2 = this.lead.column, n2 = this.session.documentToScreenRow(e2, t2), r3 = this.session.screenToDocumentPosition(n2, 0), i3 = this.session.getDisplayLine(e2, null, r3.row, r3.column), s2 = i3.match(/^\s*/);
|
|
20563
20531
|
s2[0].length != t2 && !this.session.$useEmacsStyleLineStart && (r3.column += s2[0].length), this.moveCursorToPosition(r3);
|
|
20564
|
-
},
|
|
20565
|
-
var
|
|
20532
|
+
}, this.moveCursorLineEnd = function() {
|
|
20533
|
+
var e2 = this.lead, t2 = this.session.getDocumentLastRowColumnPosition(e2.row, e2.column);
|
|
20566
20534
|
if (this.lead.column == t2.column) {
|
|
20567
20535
|
var n2 = this.session.getLine(t2.row);
|
|
20568
20536
|
if (t2.column == n2.length) {
|
|
@@ -20571,58 +20539,58 @@ var ace$1 = { exports: {} };
|
|
|
20571
20539
|
}
|
|
20572
20540
|
}
|
|
20573
20541
|
this.moveCursorTo(t2.row, t2.column);
|
|
20574
|
-
},
|
|
20575
|
-
var
|
|
20576
|
-
this.moveCursorTo(
|
|
20577
|
-
},
|
|
20542
|
+
}, this.moveCursorFileEnd = function() {
|
|
20543
|
+
var e2 = this.doc.getLength() - 1, t2 = this.doc.getLine(e2).length;
|
|
20544
|
+
this.moveCursorTo(e2, t2);
|
|
20545
|
+
}, this.moveCursorFileStart = function() {
|
|
20578
20546
|
this.moveCursorTo(0, 0);
|
|
20579
|
-
},
|
|
20580
|
-
var
|
|
20547
|
+
}, this.moveCursorLongWordRight = function() {
|
|
20548
|
+
var e2 = this.lead.row, t2 = this.lead.column, n2 = this.doc.getLine(e2), r3 = n2.substring(t2);
|
|
20581
20549
|
this.session.nonTokenRe.lastIndex = 0, this.session.tokenRe.lastIndex = 0;
|
|
20582
|
-
var i3 = this.session.getFoldAt(
|
|
20550
|
+
var i3 = this.session.getFoldAt(e2, t2, 1);
|
|
20583
20551
|
if (i3) {
|
|
20584
20552
|
this.moveCursorTo(i3.end.row, i3.end.column);
|
|
20585
20553
|
return;
|
|
20586
20554
|
}
|
|
20587
20555
|
this.session.nonTokenRe.exec(r3) && (t2 += this.session.nonTokenRe.lastIndex, this.session.nonTokenRe.lastIndex = 0, r3 = n2.substring(t2));
|
|
20588
20556
|
if (t2 >= n2.length) {
|
|
20589
|
-
this.moveCursorTo(
|
|
20557
|
+
this.moveCursorTo(e2, n2.length), this.moveCursorRight(), e2 < this.doc.getLength() - 1 && this.moveCursorWordRight();
|
|
20590
20558
|
return;
|
|
20591
20559
|
}
|
|
20592
|
-
this.session.tokenRe.exec(r3) && (t2 += this.session.tokenRe.lastIndex, this.session.tokenRe.lastIndex = 0), this.moveCursorTo(
|
|
20593
|
-
},
|
|
20594
|
-
var
|
|
20595
|
-
if (n2 = this.session.getFoldAt(
|
|
20560
|
+
this.session.tokenRe.exec(r3) && (t2 += this.session.tokenRe.lastIndex, this.session.tokenRe.lastIndex = 0), this.moveCursorTo(e2, t2);
|
|
20561
|
+
}, this.moveCursorLongWordLeft = function() {
|
|
20562
|
+
var e2 = this.lead.row, t2 = this.lead.column, n2;
|
|
20563
|
+
if (n2 = this.session.getFoldAt(e2, t2, -1)) {
|
|
20596
20564
|
this.moveCursorTo(n2.start.row, n2.start.column);
|
|
20597
20565
|
return;
|
|
20598
20566
|
}
|
|
20599
|
-
var r3 = this.session.getFoldStringAt(
|
|
20600
|
-
r3 == null && (r3 = this.doc.getLine(
|
|
20567
|
+
var r3 = this.session.getFoldStringAt(e2, t2, -1);
|
|
20568
|
+
r3 == null && (r3 = this.doc.getLine(e2).substring(0, t2));
|
|
20601
20569
|
var s2 = i2.stringReverse(r3);
|
|
20602
20570
|
this.session.nonTokenRe.lastIndex = 0, this.session.tokenRe.lastIndex = 0, this.session.nonTokenRe.exec(s2) && (t2 -= this.session.nonTokenRe.lastIndex, s2 = s2.slice(this.session.nonTokenRe.lastIndex), this.session.nonTokenRe.lastIndex = 0);
|
|
20603
20571
|
if (t2 <= 0) {
|
|
20604
|
-
this.moveCursorTo(
|
|
20572
|
+
this.moveCursorTo(e2, 0), this.moveCursorLeft(), e2 > 0 && this.moveCursorWordLeft();
|
|
20605
20573
|
return;
|
|
20606
20574
|
}
|
|
20607
|
-
this.session.tokenRe.exec(s2) && (t2 -= this.session.tokenRe.lastIndex, this.session.tokenRe.lastIndex = 0), this.moveCursorTo(
|
|
20608
|
-
},
|
|
20575
|
+
this.session.tokenRe.exec(s2) && (t2 -= this.session.tokenRe.lastIndex, this.session.tokenRe.lastIndex = 0), this.moveCursorTo(e2, t2);
|
|
20576
|
+
}, this.$shortWordEndIndex = function(e2) {
|
|
20609
20577
|
var t2 = 0, n2, r3 = /\s/, i3 = this.session.tokenRe;
|
|
20610
20578
|
i3.lastIndex = 0;
|
|
20611
|
-
if (this.session.tokenRe.exec(
|
|
20579
|
+
if (this.session.tokenRe.exec(e2))
|
|
20612
20580
|
t2 = this.session.tokenRe.lastIndex;
|
|
20613
20581
|
else {
|
|
20614
|
-
while ((n2 =
|
|
20582
|
+
while ((n2 = e2[t2]) && r3.test(n2))
|
|
20615
20583
|
t2++;
|
|
20616
20584
|
if (t2 < 1) {
|
|
20617
20585
|
i3.lastIndex = 0;
|
|
20618
|
-
while ((n2 =
|
|
20586
|
+
while ((n2 = e2[t2]) && !i3.test(n2)) {
|
|
20619
20587
|
i3.lastIndex = 0, t2++;
|
|
20620
20588
|
if (r3.test(n2)) {
|
|
20621
20589
|
if (t2 > 2) {
|
|
20622
20590
|
t2--;
|
|
20623
20591
|
break;
|
|
20624
20592
|
}
|
|
20625
|
-
while ((n2 =
|
|
20593
|
+
while ((n2 = e2[t2]) && r3.test(n2))
|
|
20626
20594
|
t2++;
|
|
20627
20595
|
if (t2 > 2)
|
|
20628
20596
|
break;
|
|
@@ -20631,66 +20599,66 @@ var ace$1 = { exports: {} };
|
|
|
20631
20599
|
}
|
|
20632
20600
|
}
|
|
20633
20601
|
return i3.lastIndex = 0, t2;
|
|
20634
|
-
},
|
|
20635
|
-
var
|
|
20602
|
+
}, this.moveCursorShortWordRight = function() {
|
|
20603
|
+
var e2 = this.lead.row, t2 = this.lead.column, n2 = this.doc.getLine(e2), r3 = n2.substring(t2), i3 = this.session.getFoldAt(e2, t2, 1);
|
|
20636
20604
|
if (i3)
|
|
20637
20605
|
return this.moveCursorTo(i3.end.row, i3.end.column);
|
|
20638
20606
|
if (t2 == n2.length) {
|
|
20639
20607
|
var s2 = this.doc.getLength();
|
|
20640
20608
|
do
|
|
20641
|
-
|
|
20642
|
-
while (
|
|
20609
|
+
e2++, r3 = this.doc.getLine(e2);
|
|
20610
|
+
while (e2 < s2 && /^\s*$/.test(r3));
|
|
20643
20611
|
/^\s+/.test(r3) || (r3 = ""), t2 = 0;
|
|
20644
20612
|
}
|
|
20645
20613
|
var o2 = this.$shortWordEndIndex(r3);
|
|
20646
|
-
this.moveCursorTo(
|
|
20647
|
-
},
|
|
20648
|
-
var
|
|
20649
|
-
if (n2 = this.session.getFoldAt(
|
|
20614
|
+
this.moveCursorTo(e2, t2 + o2);
|
|
20615
|
+
}, this.moveCursorShortWordLeft = function() {
|
|
20616
|
+
var e2 = this.lead.row, t2 = this.lead.column, n2;
|
|
20617
|
+
if (n2 = this.session.getFoldAt(e2, t2, -1))
|
|
20650
20618
|
return this.moveCursorTo(n2.start.row, n2.start.column);
|
|
20651
|
-
var r3 = this.session.getLine(
|
|
20619
|
+
var r3 = this.session.getLine(e2).substring(0, t2);
|
|
20652
20620
|
if (t2 === 0) {
|
|
20653
20621
|
do
|
|
20654
|
-
|
|
20655
|
-
while (
|
|
20622
|
+
e2--, r3 = this.doc.getLine(e2);
|
|
20623
|
+
while (e2 > 0 && /^\s*$/.test(r3));
|
|
20656
20624
|
t2 = r3.length, /\s+$/.test(r3) || (r3 = "");
|
|
20657
20625
|
}
|
|
20658
20626
|
var s2 = i2.stringReverse(r3), o2 = this.$shortWordEndIndex(s2);
|
|
20659
|
-
return this.moveCursorTo(
|
|
20660
|
-
},
|
|
20627
|
+
return this.moveCursorTo(e2, t2 - o2);
|
|
20628
|
+
}, this.moveCursorWordRight = function() {
|
|
20661
20629
|
this.session.$selectLongWords ? this.moveCursorLongWordRight() : this.moveCursorShortWordRight();
|
|
20662
|
-
},
|
|
20630
|
+
}, this.moveCursorWordLeft = function() {
|
|
20663
20631
|
this.session.$selectLongWords ? this.moveCursorLongWordLeft() : this.moveCursorShortWordLeft();
|
|
20664
|
-
},
|
|
20632
|
+
}, this.moveCursorBy = function(e2, t2) {
|
|
20665
20633
|
var n2 = this.session.documentToScreenPosition(this.lead.row, this.lead.column), r3;
|
|
20666
|
-
t2 === 0 && (
|
|
20667
|
-
if (
|
|
20634
|
+
t2 === 0 && (e2 !== 0 && (this.session.$bidiHandler.isBidiRow(n2.row, this.lead.row) ? (r3 = this.session.$bidiHandler.getPosLeft(n2.column), n2.column = Math.round(r3 / this.session.$bidiHandler.charWidths[0])) : r3 = n2.column * this.session.$bidiHandler.charWidths[0]), this.$desiredColumn ? n2.column = this.$desiredColumn : this.$desiredColumn = n2.column);
|
|
20635
|
+
if (e2 != 0 && this.session.lineWidgets && this.session.lineWidgets[this.lead.row]) {
|
|
20668
20636
|
var i3 = this.session.lineWidgets[this.lead.row];
|
|
20669
|
-
|
|
20670
|
-
}
|
|
20671
|
-
var s2 = this.session.screenToDocumentPosition(n2.row +
|
|
20672
|
-
|
|
20673
|
-
},
|
|
20674
|
-
this.moveCursorTo(
|
|
20675
|
-
},
|
|
20676
|
-
var r3 = this.session.getFoldAt(
|
|
20677
|
-
r3 && (
|
|
20678
|
-
var i3 = this.session.getLine(
|
|
20679
|
-
/[\uDC00-\uDFFF]/.test(i3.charAt(t2)) && i3.charAt(t2 - 1) && (this.lead.row ==
|
|
20680
|
-
},
|
|
20681
|
-
var r3 = this.session.screenToDocumentPosition(
|
|
20637
|
+
e2 < 0 ? e2 -= i3.rowsAbove || 0 : e2 > 0 && (e2 += i3.rowCount - (i3.rowsAbove || 0));
|
|
20638
|
+
}
|
|
20639
|
+
var s2 = this.session.screenToDocumentPosition(n2.row + e2, n2.column, r3);
|
|
20640
|
+
e2 !== 0 && t2 === 0 && s2.row === this.lead.row && s2.column === this.lead.column, this.moveCursorTo(s2.row, s2.column + t2, t2 === 0);
|
|
20641
|
+
}, this.moveCursorToPosition = function(e2) {
|
|
20642
|
+
this.moveCursorTo(e2.row, e2.column);
|
|
20643
|
+
}, this.moveCursorTo = function(e2, t2, n2) {
|
|
20644
|
+
var r3 = this.session.getFoldAt(e2, t2, 1);
|
|
20645
|
+
r3 && (e2 = r3.start.row, t2 = r3.start.column), this.$keepDesiredColumnOnChange = true;
|
|
20646
|
+
var i3 = this.session.getLine(e2);
|
|
20647
|
+
/[\uDC00-\uDFFF]/.test(i3.charAt(t2)) && i3.charAt(t2 - 1) && (this.lead.row == e2 && this.lead.column == t2 + 1 ? t2 -= 1 : t2 += 1), this.lead.setPosition(e2, t2), this.$keepDesiredColumnOnChange = false, n2 || (this.$desiredColumn = null);
|
|
20648
|
+
}, this.moveCursorToScreen = function(e2, t2, n2) {
|
|
20649
|
+
var r3 = this.session.screenToDocumentPosition(e2, t2);
|
|
20682
20650
|
this.moveCursorTo(r3.row, r3.column, n2);
|
|
20683
|
-
},
|
|
20651
|
+
}, this.detach = function() {
|
|
20684
20652
|
this.lead.detach(), this.anchor.detach();
|
|
20685
|
-
},
|
|
20686
|
-
this.setSelectionRange(
|
|
20687
|
-
},
|
|
20653
|
+
}, this.fromOrientedRange = function(e2) {
|
|
20654
|
+
this.setSelectionRange(e2, e2.cursor == e2.start), this.$desiredColumn = e2.desiredColumn || this.$desiredColumn;
|
|
20655
|
+
}, this.toOrientedRange = function(e2) {
|
|
20688
20656
|
var t2 = this.getRange();
|
|
20689
|
-
return
|
|
20690
|
-
},
|
|
20657
|
+
return e2 ? (e2.start.column = t2.start.column, e2.start.row = t2.start.row, e2.end.column = t2.end.column, e2.end.row = t2.end.row) : e2 = t2, e2.cursor = this.isBackwards() ? e2.start : e2.end, e2.desiredColumn = this.$desiredColumn, e2;
|
|
20658
|
+
}, this.getRangeOfMovements = function(e2) {
|
|
20691
20659
|
var t2 = this.getCursor();
|
|
20692
20660
|
try {
|
|
20693
|
-
|
|
20661
|
+
e2(this);
|
|
20694
20662
|
var n2 = this.getCursor();
|
|
20695
20663
|
return o.fromPoints(t2, n2);
|
|
20696
20664
|
} catch (r3) {
|
|
@@ -20698,42 +20666,41 @@ var ace$1 = { exports: {} };
|
|
|
20698
20666
|
} finally {
|
|
20699
20667
|
this.moveCursorToPosition(t2);
|
|
20700
20668
|
}
|
|
20701
|
-
},
|
|
20669
|
+
}, this.toJSON = function() {
|
|
20702
20670
|
if (this.rangeCount)
|
|
20703
|
-
var
|
|
20704
|
-
var t2 =
|
|
20705
|
-
return t2.isBackwards =
|
|
20671
|
+
var e2 = this.ranges.map(function(e3) {
|
|
20672
|
+
var t2 = e3.clone();
|
|
20673
|
+
return t2.isBackwards = e3.cursor == e3.start, t2;
|
|
20706
20674
|
});
|
|
20707
20675
|
else {
|
|
20708
|
-
var
|
|
20709
|
-
|
|
20676
|
+
var e2 = this.getRange();
|
|
20677
|
+
e2.isBackwards = this.isBackwards();
|
|
20710
20678
|
}
|
|
20711
|
-
return
|
|
20712
|
-
},
|
|
20713
|
-
if (
|
|
20714
|
-
if (this.rangeList &&
|
|
20715
|
-
this.toSingleRange(
|
|
20716
|
-
for (var t2 =
|
|
20717
|
-
var n2 = o.fromPoints(
|
|
20718
|
-
|
|
20679
|
+
return e2;
|
|
20680
|
+
}, this.fromJSON = function(e2) {
|
|
20681
|
+
if (e2.start == void 0) {
|
|
20682
|
+
if (this.rangeList && e2.length > 1) {
|
|
20683
|
+
this.toSingleRange(e2[0]);
|
|
20684
|
+
for (var t2 = e2.length; t2--; ) {
|
|
20685
|
+
var n2 = o.fromPoints(e2[t2].start, e2[t2].end);
|
|
20686
|
+
e2[t2].isBackwards && (n2.cursor = n2.start), this.addRange(n2, true);
|
|
20719
20687
|
}
|
|
20720
20688
|
return;
|
|
20721
20689
|
}
|
|
20722
|
-
|
|
20690
|
+
e2 = e2[0];
|
|
20723
20691
|
}
|
|
20724
|
-
this.rangeList && this.toSingleRange(
|
|
20725
|
-
},
|
|
20726
|
-
if ((
|
|
20692
|
+
this.rangeList && this.toSingleRange(e2), this.setSelectionRange(e2, e2.isBackwards);
|
|
20693
|
+
}, this.isEqual = function(e2) {
|
|
20694
|
+
if ((e2.length || this.rangeCount) && e2.length != this.rangeCount)
|
|
20727
20695
|
return false;
|
|
20728
|
-
if (!
|
|
20729
|
-
return this.getRange().isEqual(
|
|
20696
|
+
if (!e2.length || !this.ranges)
|
|
20697
|
+
return this.getRange().isEqual(e2);
|
|
20730
20698
|
for (var t2 = this.ranges.length; t2--; )
|
|
20731
|
-
if (!this.ranges[t2].isEqual(
|
|
20699
|
+
if (!this.ranges[t2].isEqual(e2[t2]))
|
|
20732
20700
|
return false;
|
|
20733
20701
|
return true;
|
|
20734
|
-
}
|
|
20735
|
-
}();
|
|
20736
|
-
u.prototype.setSelectionAnchor = u.prototype.setAnchor, u.prototype.getSelectionAnchor = u.prototype.getAnchor, u.prototype.setSelectionRange = u.prototype.setRange, r2.implement(u.prototype, s), t.Selection = u;
|
|
20702
|
+
};
|
|
20703
|
+
}).call(u.prototype), t.Selection = u;
|
|
20737
20704
|
}), ace.define("ace/tokenizer", ["require", "exports", "module", "ace/config"], function(e, t, n) {
|
|
20738
20705
|
var r2 = e("./config"), i2 = 2e3, s = function() {
|
|
20739
20706
|
function e2(e3) {
|
|
@@ -23361,15 +23328,10 @@ var ace$1 = { exports: {} };
|
|
|
23361
23328
|
}, handlesSet: true } }), t.EditSession = d;
|
|
23362
23329
|
}), ace.define("ace/search", ["require", "exports", "module", "ace/lib/lang", "ace/lib/oop", "ace/range"], function(e, t, n) {
|
|
23363
23330
|
function u(e2, t2) {
|
|
23364
|
-
function
|
|
23365
|
-
|
|
23366
|
-
var i4 = n2 && t2.$supportsUnicodeFlag ? new RegExp("[\\p{L}\\p{N}_]", "u") : new RegExp("\\w");
|
|
23367
|
-
if (i4.test(e3) || t2.regExp)
|
|
23368
|
-
return n2 && t2.$supportsUnicodeFlag ? r3 ? "(?<=^|[^\\p{L}\\p{N}_])" : "(?=[^\\p{L}\\p{N}_]|$)" : "\\b";
|
|
23369
|
-
return "";
|
|
23331
|
+
function n2(e3) {
|
|
23332
|
+
return /\w/.test(e3) || t2.regExp ? "\\b" : "";
|
|
23370
23333
|
}
|
|
23371
|
-
|
|
23372
|
-
return i3(o2) + e2 + i3(u2, false);
|
|
23334
|
+
return n2(e2[0]) + e2 + n2(e2[e2.length - 1]);
|
|
23373
23335
|
}
|
|
23374
23336
|
var r2 = e("./lib/lang"), i2 = e("./lib/oop"), s = e("./range").Range, o = function() {
|
|
23375
23337
|
function e2() {
|
|
@@ -23452,23 +23414,17 @@ var ace$1 = { exports: {} };
|
|
|
23452
23414
|
var n2 = e3.needle;
|
|
23453
23415
|
if (!e3.needle)
|
|
23454
23416
|
return e3.re = false;
|
|
23455
|
-
e3.$supportsUnicodeFlag === void 0 && (e3.$supportsUnicodeFlag = r2.supportsUnicodeFlag());
|
|
23456
|
-
try {
|
|
23457
|
-
new RegExp(n2, "u");
|
|
23458
|
-
} catch (i3) {
|
|
23459
|
-
e3.$supportsUnicodeFlag = false;
|
|
23460
|
-
}
|
|
23461
23417
|
e3.regExp || (n2 = r2.escapeRegExp(n2)), e3.wholeWord && (n2 = u(n2, e3));
|
|
23462
|
-
var
|
|
23463
|
-
e3.$
|
|
23418
|
+
var i3 = e3.caseSensitive ? "gm" : "gmi";
|
|
23419
|
+
e3.$isMultiLine = !t2 && /[\n\r]/.test(n2);
|
|
23464
23420
|
if (e3.$isMultiLine)
|
|
23465
|
-
return e3.re = this.$assembleMultilineRegExp(n2,
|
|
23421
|
+
return e3.re = this.$assembleMultilineRegExp(n2, i3);
|
|
23466
23422
|
try {
|
|
23467
|
-
var
|
|
23468
|
-
} catch (
|
|
23469
|
-
|
|
23423
|
+
var s2 = new RegExp(n2, i3);
|
|
23424
|
+
} catch (o2) {
|
|
23425
|
+
s2 = false;
|
|
23470
23426
|
}
|
|
23471
|
-
return e3.re =
|
|
23427
|
+
return e3.re = s2;
|
|
23472
23428
|
}, e2.prototype.$assembleMultilineRegExp = function(e3, t2) {
|
|
23473
23429
|
var n2 = e3.replace(/\r\n|\r|\n/g, "$\n^").split("\n"), r3 = [];
|
|
23474
23430
|
for (var i3 = 0; i3 < n2.length; i3++)
|
|
@@ -25359,7 +25315,7 @@ var ace$1 = { exports: {} };
|
|
|
25359
25315
|
this.isRowVisible(t3) || this.scrollToLine(t3, true, true), this.focus();
|
|
25360
25316
|
}
|
|
25361
25317
|
}, r3;
|
|
25362
|
-
e2 ? (this.renderer.enableKeyboardAccessibility = true, this.renderer.keyboardFocusClassName = "ace_keyboard-focus", this.textInput.getElement().setAttribute("tabindex", -1), this.
|
|
25318
|
+
e2 ? (this.renderer.enableKeyboardAccessibility = true, this.renderer.keyboardFocusClassName = "ace_keyboard-focus", this.textInput.getElement().setAttribute("tabindex", -1), this.renderer.scroller.setAttribute("tabindex", 0), this.renderer.scroller.setAttribute("role", "group"), this.renderer.scroller.setAttribute("aria-roledescription", S("editor")), this.renderer.scroller.classList.add(this.renderer.keyboardFocusClassName), this.renderer.scroller.setAttribute("aria-label", S("Editor content, press Enter to start editing, press Escape to exit")), this.renderer.scroller.addEventListener("keyup", n2.bind(this)), this.commands.addCommand(t2), this.renderer.$gutter.setAttribute("tabindex", 0), this.renderer.$gutter.setAttribute("aria-hidden", false), this.renderer.$gutter.setAttribute("role", "group"), this.renderer.$gutter.setAttribute("aria-roledescription", S("editor")), this.renderer.$gutter.setAttribute("aria-label", S("Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit")), this.renderer.$gutter.classList.add(this.renderer.keyboardFocusClassName), this.renderer.content.setAttribute("aria-hidden", true), r3 || (r3 = new E(this)), r3.addListener()) : (this.renderer.enableKeyboardAccessibility = false, this.textInput.getElement().setAttribute("tabindex", 0), this.renderer.scroller.setAttribute("tabindex", -1), this.renderer.scroller.removeAttribute("role"), this.renderer.scroller.removeAttribute("aria-roledescription"), this.renderer.scroller.classList.remove(this.renderer.keyboardFocusClassName), this.renderer.scroller.removeAttribute("aria-label"), this.renderer.scroller.removeEventListener("keyup", n2.bind(this)), this.commands.removeCommand(t2), this.renderer.content.removeAttribute("aria-hidden"), this.renderer.$gutter.setAttribute("tabindex", -1), this.renderer.$gutter.setAttribute("aria-hidden", true), this.renderer.$gutter.removeAttribute("role"), this.renderer.$gutter.removeAttribute("aria-roledescription"), this.renderer.$gutter.removeAttribute("aria-label"), this.renderer.$gutter.classList.remove(this.renderer.keyboardFocusClassName), r3 && r3.removeListener());
|
|
25363
25319
|
}, initialValue: false }, customScrollbar: "renderer", hScrollBarAlwaysVisible: "renderer", vScrollBarAlwaysVisible: "renderer", highlightGutterLine: "renderer", animatedScroll: "renderer", showInvisibles: "renderer", showPrintMargin: "renderer", printMarginColumn: "renderer", printMargin: "renderer", fadeFoldWidgets: "renderer", showFoldWidgets: "renderer", displayIndentGuides: "renderer", highlightIndentGuides: "renderer", showGutter: "renderer", fontSize: "renderer", fontFamily: "renderer", maxLines: "renderer", minLines: "renderer", scrollPastEnd: "renderer", fixedWidthGutter: "renderer", theme: "renderer", hasCssTransforms: "renderer", maxPixelHeight: "renderer", useTextareaForIME: "renderer", useResizeObserver: "renderer", useSvgGutterIcons: "renderer", showFoldedAnnotations: "renderer", scrollSpeed: "$mouseHandler", dragDelay: "$mouseHandler", dragEnabled: "$mouseHandler", focusTimeout: "$mouseHandler", tooltipFollowsMouse: "$mouseHandler", firstLineNumber: "session", overwrite: "session", newLineMode: "session", useWorker: "session", useSoftTabs: "session", navigateWithinSoftTabs: "session", tabSize: "session", wrap: "session", indentedSoftWrap: "session", foldStyle: "session", mode: "session" });
|
|
25364
25320
|
var C = { getText: function(e2, t2) {
|
|
25365
25321
|
return (Math.abs(e2.selection.lead.row - t2) || t2 + 1 + (t2 < 9 ? "·" : "")) + "";
|
|
@@ -27437,7 +27393,7 @@ var ace$1 = { exports: {} };
|
|
|
27437
27393
|
this.setOption("showInvisibles", e3), this.session.$bidiHandler.setShowInvisibles(e3);
|
|
27438
27394
|
}, e2.prototype.getShowInvisibles = function() {
|
|
27439
27395
|
return this.getOption("showInvisibles");
|
|
27440
|
-
}, e2.prototype.
|
|
27396
|
+
}, e2.prototype.getDisplayIndentGuide = function() {
|
|
27441
27397
|
return this.getOption("displayIndentGuides");
|
|
27442
27398
|
}, e2.prototype.setDisplayIndentGuides = function(e3) {
|
|
27443
27399
|
this.setOption("displayIndentGuides", e3);
|
|
@@ -28704,21 +28660,14 @@ var ace$1 = { exports: {} };
|
|
|
28704
28660
|
a.config.init(true);
|
|
28705
28661
|
a.define = ace.define;
|
|
28706
28662
|
}
|
|
28707
|
-
|
|
28708
|
-
|
|
28709
|
-
}();
|
|
28710
|
-
if (!global2 && typeof window != "undefined")
|
|
28711
|
-
global2 = window;
|
|
28712
|
-
if (!global2 && typeof self != "undefined")
|
|
28713
|
-
global2 = self;
|
|
28714
|
-
if (!global2.ace)
|
|
28715
|
-
global2.ace = a;
|
|
28663
|
+
if (!window.ace)
|
|
28664
|
+
window.ace = a;
|
|
28716
28665
|
for (var key2 in a)
|
|
28717
28666
|
if (a.hasOwnProperty(key2))
|
|
28718
|
-
|
|
28719
|
-
|
|
28667
|
+
window.ace[key2] = a[key2];
|
|
28668
|
+
window.ace["default"] = window.ace;
|
|
28720
28669
|
if (module) {
|
|
28721
|
-
module.exports =
|
|
28670
|
+
module.exports = window.ace;
|
|
28722
28671
|
}
|
|
28723
28672
|
});
|
|
28724
28673
|
})();
|
|
@@ -28971,11 +28920,14 @@ var extLanguage_tools = { exports: {} };
|
|
|
28971
28920
|
return n2.text;
|
|
28972
28921
|
}, e2.prototype.insertSnippetForSelection = function(e3, t2, n2) {
|
|
28973
28922
|
n2 === void 0 && (n2 = {});
|
|
28974
|
-
var r3 = v.call(this, e3, t2, n2), i3 = e3.getSelectionRange()
|
|
28923
|
+
var r3 = v.call(this, e3, t2, n2), i3 = e3.getSelectionRange();
|
|
28924
|
+
n2.range && n2.range.compareRange(i3) === 0 && (i3 = n2.range);
|
|
28925
|
+
var s2 = e3.session.replace(i3, r3.text), o2 = new m(e3), u2 = e3.inVirtualSelectionMode && e3.selection.index;
|
|
28975
28926
|
o2.addTabstops(r3.tabstops, i3.start, s2, u2);
|
|
28976
28927
|
}, e2.prototype.insertSnippet = function(e3, t2, n2) {
|
|
28977
28928
|
n2 === void 0 && (n2 = {});
|
|
28978
28929
|
var r3 = this;
|
|
28930
|
+
n2.range && !(n2.range instanceof u) && (n2.range = u.fromPoints(n2.range.start, n2.range.end));
|
|
28979
28931
|
if (e3.inVirtualSelectionMode)
|
|
28980
28932
|
return r3.insertSnippetForSelection(e3, t2, n2);
|
|
28981
28933
|
e3.forEachSelection(function() {
|
|
@@ -29291,7 +29243,7 @@ var extLanguage_tools = { exports: {} };
|
|
|
29291
29243
|
}, h2 = function() {
|
|
29292
29244
|
function e2(e3) {
|
|
29293
29245
|
var t2 = a.createElement("div"), n2 = new c2(t2);
|
|
29294
|
-
e3 && e3.appendChild(t2), t2.style.display = "none", n2.renderer.content.style.cursor = "default", n2.renderer.setStyle("ace_autocomplete"), n2.renderer
|
|
29246
|
+
e3 && e3.appendChild(t2), t2.style.display = "none", n2.renderer.content.style.cursor = "default", n2.renderer.setStyle("ace_autocomplete"), n2.renderer.container.setAttribute("role", "listbox"), n2.renderer.container.setAttribute("aria-label", f2("Autocomplete suggestions")), n2.setOption("displayIndentGuides", false), n2.setOption("dragDelay", 150);
|
|
29295
29247
|
var r3 = function() {
|
|
29296
29248
|
};
|
|
29297
29249
|
n2.focus = r3, n2.$isFocused = true, n2.renderer.$cursorLayer.restartTimer = r3, n2.renderer.$cursorLayer.element.style.opacity = 0, n2.renderer.$maxLines = 8, n2.renderer.$keepTextAreaAtCursor = false, n2.setHighlightActiveLine(false), n2.session.highlight(""), n2.session.$searchHighlight.clazz = "ace_highlight-marker", n2.on("mousedown", function(e4) {
|
|
@@ -29323,7 +29275,7 @@ var extLanguage_tools = { exports: {} };
|
|
|
29323
29275
|
if (r4) {
|
|
29324
29276
|
a.addCssClass(r4, "ace_selected");
|
|
29325
29277
|
var s2 = l(e4);
|
|
29326
|
-
r4.id = s2,
|
|
29278
|
+
r4.id = s2, n2.renderer.container.setAttribute("aria-activedescendant", s2), i4.setAttribute("aria-activedescendant", s2), r4.setAttribute("role", "option"), r4.setAttribute("aria-label", n2.getData(e4).value), r4.setAttribute("aria-setsize", n2.data.length), r4.setAttribute("aria-posinset", e4), r4.setAttribute("aria-describedby", "doc-tooltip");
|
|
29327
29279
|
}
|
|
29328
29280
|
});
|
|
29329
29281
|
var d = function() {
|
|
@@ -29553,8 +29505,8 @@ var extLanguage_tools = { exports: {} };
|
|
|
29553
29505
|
return this.completions == n2 && this.detach(), r3;
|
|
29554
29506
|
}, e2.prototype.showPopup = function(e3, t2) {
|
|
29555
29507
|
this.editor && this.detach(), this.activated = true, this.editor = e3, e3.completer != this && (e3.completer && e3.completer.detach(), e3.completer = this), e3.on("changeSelection", this.changeListener), e3.on("blur", this.blurListener), e3.on("mousedown", this.mousedownListener), e3.on("mousewheel", this.mousewheelListener), this.updateCompletions(false, t2);
|
|
29556
|
-
}, e2.prototype.getCompletionProvider = function(
|
|
29557
|
-
return this.completionProvider || (this.completionProvider = new d(
|
|
29508
|
+
}, e2.prototype.getCompletionProvider = function() {
|
|
29509
|
+
return this.completionProvider || (this.completionProvider = new d()), this.completionProvider;
|
|
29558
29510
|
}, e2.prototype.gatherCompletions = function(e3, t2) {
|
|
29559
29511
|
return this.getCompletionProvider().gatherCompletions(e3, t2);
|
|
29560
29512
|
}, e2.prototype.updateCompletions = function(e3, t2) {
|
|
@@ -29577,7 +29529,7 @@ var extLanguage_tools = { exports: {} };
|
|
|
29577
29529
|
var i3 = this.editor.getSession(), n2 = this.editor.getCursorPosition(), r3 = u.getCompletionPrefix(this.editor);
|
|
29578
29530
|
this.base = i3.doc.createAnchor(n2.row, n2.column - r3.length), this.base.$insertRight = true;
|
|
29579
29531
|
var s2 = { exactMatch: this.exactMatch };
|
|
29580
|
-
this.getCompletionProvider(
|
|
29532
|
+
this.getCompletionProvider().provideCompletions(this.editor, s2, function(t3, n3, r4) {
|
|
29581
29533
|
var i4 = n3.filtered, s3 = u.getCompletionPrefix(this.editor);
|
|
29582
29534
|
if (r4) {
|
|
29583
29535
|
if (!i4.length) {
|
|
@@ -29678,8 +29630,8 @@ var extLanguage_tools = { exports: {} };
|
|
|
29678
29630
|
n2.autoInsert = false, n2.autoSelect = true, n2.autoShown = false, n2.showPopup(e2, t2), n2.cancelContextMenu();
|
|
29679
29631
|
}, bindKey: "Ctrl-Space|Ctrl-Shift-Space|Alt-Space" };
|
|
29680
29632
|
var d = function() {
|
|
29681
|
-
function e2(
|
|
29682
|
-
this.
|
|
29633
|
+
function e2() {
|
|
29634
|
+
this.active = true;
|
|
29683
29635
|
}
|
|
29684
29636
|
return e2.prototype.insertByIndex = function(e3, t2, n2) {
|
|
29685
29637
|
return !this.completions || !this.completions.filtered ? false : this.insertMatch(e3, this.completions.filtered[t2], n2);
|
|
@@ -29692,20 +29644,26 @@ var extLanguage_tools = { exports: {} };
|
|
|
29692
29644
|
else {
|
|
29693
29645
|
if (!this.completions)
|
|
29694
29646
|
return false;
|
|
29695
|
-
|
|
29696
|
-
|
|
29697
|
-
|
|
29698
|
-
var s2;
|
|
29699
|
-
|
|
29700
|
-
for (var o2 = 0, u2; u2 = s2[o2]; o2++)
|
|
29701
|
-
u2.start.column -= r3, u2.end.column += i3, e3.session.remove(u2);
|
|
29647
|
+
if (this.completions.filterText) {
|
|
29648
|
+
var r3;
|
|
29649
|
+
e3.selection.getAllRanges ? r3 = e3.selection.getAllRanges() : r3 = [e3.getSelectionRange()];
|
|
29650
|
+
for (var i3 = 0, s2; s2 = r3[i3]; i3++)
|
|
29651
|
+
s2.start.column -= this.completions.filterText.length, e3.session.remove(s2);
|
|
29702
29652
|
}
|
|
29703
|
-
t2.snippet ? l.insertSnippet(e3, t2.snippet) : this.$insertString(e3, t2), t2.command && t2.command === "startAutocomplete" && e3.execCommand(t2.command);
|
|
29653
|
+
t2.snippet ? l.insertSnippet(e3, t2.snippet, { range: t2.range }) : this.$insertString(e3, t2), t2.command && t2.command === "startAutocomplete" && e3.execCommand(t2.command);
|
|
29704
29654
|
}
|
|
29705
29655
|
return e3.endOperation(), true;
|
|
29706
29656
|
}, e2.prototype.$insertString = function(e3, t2) {
|
|
29707
29657
|
var n2 = t2.value || t2;
|
|
29708
|
-
|
|
29658
|
+
if (t2.range) {
|
|
29659
|
+
if (e3.inVirtualSelectionMode)
|
|
29660
|
+
return e3.session.replace(t2.range, n2);
|
|
29661
|
+
e3.forEachSelection(function() {
|
|
29662
|
+
var r3 = e3.getSelectionRange();
|
|
29663
|
+
t2.range.compareRange(r3) === 0 ? e3.session.replace(t2.range, n2) : e3.insert(n2);
|
|
29664
|
+
}, null, { keepOrder: true });
|
|
29665
|
+
} else
|
|
29666
|
+
e3.execCommand("insertstring", n2);
|
|
29709
29667
|
}, e2.prototype.gatherCompletions = function(e3, t2) {
|
|
29710
29668
|
var n2 = e3.getSession(), r3 = e3.getCursorPosition(), i3 = u.getCompletionPrefix(e3), s2 = [];
|
|
29711
29669
|
this.completers = e3.completers;
|
|
@@ -29878,7 +29836,7 @@ var extLanguage_tools = { exports: {} };
|
|
|
29878
29836
|
w(y);
|
|
29879
29837
|
}, 0), w = function(e2) {
|
|
29880
29838
|
var t2 = e2.editor, n2 = u.getCompletionPrefix(t2), r3 = u.triggerAutocomplete(t2);
|
|
29881
|
-
if (n2 && n2.length >= t2.$liveAutocompletionThreshold
|
|
29839
|
+
if ((n2 || r3) && n2.length >= t2.$liveAutocompletionThreshold) {
|
|
29882
29840
|
var s2 = i2.for(t2);
|
|
29883
29841
|
s2.autoShown = true, s2.showPopup(t2);
|
|
29884
29842
|
}
|
|
@@ -30038,7 +29996,7 @@ var json$1 = { exports: {} };
|
|
|
30038
29996
|
});
|
|
30039
29997
|
})();
|
|
30040
29998
|
})(json$1);
|
|
30041
|
-
const propDefine$
|
|
29999
|
+
const propDefine$r = {
|
|
30042
30000
|
lang: {
|
|
30043
30001
|
// 代码编辑器语言 json/javascript/java/sql/elixir/html/css
|
|
30044
30002
|
type: String,
|
|
@@ -30075,12 +30033,12 @@ const propDefine$q = {
|
|
|
30075
30033
|
default: {}
|
|
30076
30034
|
}
|
|
30077
30035
|
};
|
|
30078
|
-
const _sfc_main$
|
|
30036
|
+
const _sfc_main$h = defineComponent({
|
|
30079
30037
|
name: "NvEditor",
|
|
30080
30038
|
components: { BinEditor },
|
|
30081
30039
|
emits: [""],
|
|
30082
30040
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
30083
|
-
props: propDefine$
|
|
30041
|
+
props: propDefine$r,
|
|
30084
30042
|
setup(props, ctx) {
|
|
30085
30043
|
return new EditorInstance$1(props, ctx);
|
|
30086
30044
|
}
|
|
@@ -30123,7 +30081,7 @@ let EditorInstance$1 = class EditorInstance2 extends BaseInstance {
|
|
|
30123
30081
|
};
|
|
30124
30082
|
const Editor_vue_vue_type_style_index_0_scoped_cf6872cf_lang = "";
|
|
30125
30083
|
const _hoisted_1$c = { class: "monacoEditor" };
|
|
30126
|
-
function _sfc_render$
|
|
30084
|
+
function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
30127
30085
|
const _component_BinEditor = resolveComponent("BinEditor");
|
|
30128
30086
|
return openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
30129
30087
|
createVNode(_component_BinEditor, {
|
|
@@ -30141,8 +30099,8 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
30141
30099
|
}, null, 8, ["modelValue", "lang", "readonly", "font-size", "wrap", "snippets", "options", "styles"])
|
|
30142
30100
|
]);
|
|
30143
30101
|
}
|
|
30144
|
-
const Editor = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
30145
|
-
const propDefine$
|
|
30102
|
+
const Editor = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$h], ["__scopeId", "data-v-cf6872cf"]]);
|
|
30103
|
+
const propDefine$q = {
|
|
30146
30104
|
placeholder: {
|
|
30147
30105
|
// 占位文本
|
|
30148
30106
|
type: String,
|
|
@@ -30169,12 +30127,12 @@ const propDefine$p = {
|
|
|
30169
30127
|
default: false
|
|
30170
30128
|
}
|
|
30171
30129
|
};
|
|
30172
|
-
const _sfc_main$
|
|
30130
|
+
const _sfc_main$g = defineComponent({
|
|
30173
30131
|
name: "NvIconSelect",
|
|
30174
30132
|
components: {},
|
|
30175
30133
|
emits: ["update:modelValue", "change"],
|
|
30176
30134
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
30177
|
-
props: propDefine$
|
|
30135
|
+
props: propDefine$q,
|
|
30178
30136
|
setup(props, ctx) {
|
|
30179
30137
|
return new IconSelectInstance(props, ctx);
|
|
30180
30138
|
}
|
|
@@ -31098,7 +31056,7 @@ const _hoisted_1$b = { class: "icon-select" };
|
|
|
31098
31056
|
const _hoisted_2$9 = { class: "icon-select-search" };
|
|
31099
31057
|
const _hoisted_3$7 = { class: "icon-select-list" };
|
|
31100
31058
|
const _hoisted_4$6 = ["onClick", "title"];
|
|
31101
|
-
function _sfc_render$
|
|
31059
|
+
function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
31102
31060
|
const _component_Icon = resolveComponent("Icon");
|
|
31103
31061
|
const _component_Input = resolveComponent("Input");
|
|
31104
31062
|
const _component_Poptip = resolveComponent("Poptip");
|
|
@@ -31163,8 +31121,8 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
31163
31121
|
}, 8, ["modelValue"]))
|
|
31164
31122
|
]);
|
|
31165
31123
|
}
|
|
31166
|
-
const NvIconSelect = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
31167
|
-
const propDefine$
|
|
31124
|
+
const NvIconSelect = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$g]]);
|
|
31125
|
+
const propDefine$p = {
|
|
31168
31126
|
onlyView: {
|
|
31169
31127
|
// 是否只读
|
|
31170
31128
|
type: Boolean,
|
|
@@ -31182,11 +31140,11 @@ const propDefine$o = {
|
|
|
31182
31140
|
}
|
|
31183
31141
|
}
|
|
31184
31142
|
};
|
|
31185
|
-
const _sfc_main$
|
|
31143
|
+
const _sfc_main$f = defineComponent({
|
|
31186
31144
|
name: "NvComForm",
|
|
31187
31145
|
components: { NvIconSelect },
|
|
31188
31146
|
emits: [""],
|
|
31189
|
-
props: propDefine$
|
|
31147
|
+
props: propDefine$p,
|
|
31190
31148
|
setup(props, ctx) {
|
|
31191
31149
|
return new ComFormInstance$1(props, ctx);
|
|
31192
31150
|
}
|
|
@@ -31323,7 +31281,7 @@ let ComFormInstance$1 = class ComFormInstance2 extends BaseInstance {
|
|
|
31323
31281
|
const ComForm_vue_vue_type_style_index_0_scoped_f1e7ddce_lang = "";
|
|
31324
31282
|
const _hoisted_1$a = { class: "comForm" };
|
|
31325
31283
|
const _hoisted_2$8 = { key: 1 };
|
|
31326
|
-
function _sfc_render$
|
|
31284
|
+
function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
31327
31285
|
const _component_com_form = resolveComponent("com-form", true);
|
|
31328
31286
|
const _component_Card = resolveComponent("Card");
|
|
31329
31287
|
const _component_Switch = resolveComponent("Switch");
|
|
@@ -31840,9 +31798,9 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
31840
31798
|
], 2)
|
|
31841
31799
|
]);
|
|
31842
31800
|
}
|
|
31843
|
-
const ComForm = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
31801
|
+
const ComForm = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$f], ["__scopeId", "data-v-f1e7ddce"]]);
|
|
31844
31802
|
const style = "";
|
|
31845
|
-
const propDefine$
|
|
31803
|
+
const propDefine$o = {
|
|
31846
31804
|
options: {
|
|
31847
31805
|
// SearchCom 配置项
|
|
31848
31806
|
type: Array,
|
|
@@ -31859,11 +31817,11 @@ const propDefine$n = {
|
|
|
31859
31817
|
default: () => 80
|
|
31860
31818
|
}
|
|
31861
31819
|
};
|
|
31862
|
-
const _sfc_main$
|
|
31820
|
+
const _sfc_main$e = defineComponent({
|
|
31863
31821
|
name: "NvSearchCom",
|
|
31864
31822
|
components: {},
|
|
31865
31823
|
emits: ["search"],
|
|
31866
|
-
props: propDefine$
|
|
31824
|
+
props: propDefine$o,
|
|
31867
31825
|
setup(props, ctx) {
|
|
31868
31826
|
return new SearchComInstance$1(props, ctx);
|
|
31869
31827
|
}
|
|
@@ -31979,7 +31937,7 @@ let SearchComInstance$1 = class SearchComInstance2 extends BaseInstance {
|
|
|
31979
31937
|
//#endregion AutoComplete END
|
|
31980
31938
|
};
|
|
31981
31939
|
const SearchCom_vue_vue_type_style_index_0_scoped_cda08489_lang = "";
|
|
31982
|
-
function _sfc_render$
|
|
31940
|
+
function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
31983
31941
|
const _component_Input = resolveComponent("Input");
|
|
31984
31942
|
const _component_Radio = resolveComponent("Radio");
|
|
31985
31943
|
const _component_RadioGroup = resolveComponent("RadioGroup");
|
|
@@ -32166,8 +32124,8 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
32166
32124
|
_: 1
|
|
32167
32125
|
}, 8, ["model", "label-width"]);
|
|
32168
32126
|
}
|
|
32169
|
-
const SearchCom = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
32170
|
-
const propDefine$
|
|
32127
|
+
const SearchCom = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render$e], ["__scopeId", "data-v-cda08489"]]);
|
|
32128
|
+
const propDefine$n = {
|
|
32171
32129
|
options: {
|
|
32172
32130
|
// 配置项
|
|
32173
32131
|
type: Array,
|
|
@@ -32189,11 +32147,11 @@ const propDefine$m = {
|
|
|
32189
32147
|
default: 3
|
|
32190
32148
|
}
|
|
32191
32149
|
};
|
|
32192
|
-
const _sfc_main$
|
|
32150
|
+
const _sfc_main$d = defineComponent({
|
|
32193
32151
|
name: "NvToolbar",
|
|
32194
32152
|
components: {},
|
|
32195
32153
|
emits: [""],
|
|
32196
|
-
props: propDefine$
|
|
32154
|
+
props: propDefine$n,
|
|
32197
32155
|
setup(props, ctx) {
|
|
32198
32156
|
return new ToolbarInstance$1(props, ctx);
|
|
32199
32157
|
}
|
|
@@ -32265,6 +32223,28 @@ let ToolbarInstance$1 = class ToolbarInstance2 extends BaseInstance {
|
|
|
32265
32223
|
}
|
|
32266
32224
|
return isShow;
|
|
32267
32225
|
});
|
|
32226
|
+
/**
|
|
32227
|
+
* 获取Icon
|
|
32228
|
+
* @param item
|
|
32229
|
+
* @returns
|
|
32230
|
+
*/
|
|
32231
|
+
__publicField2(this, "getIcon", (item2) => {
|
|
32232
|
+
if (this.utilities.isNull(item2.icon) || item2.icon.indexOf("fa-") != -1) {
|
|
32233
|
+
return "";
|
|
32234
|
+
}
|
|
32235
|
+
return item2.icon;
|
|
32236
|
+
});
|
|
32237
|
+
/**
|
|
32238
|
+
* 是否为Fa Icon
|
|
32239
|
+
* @param item
|
|
32240
|
+
* @returns
|
|
32241
|
+
*/
|
|
32242
|
+
__publicField2(this, "isFaIcon", (item2) => {
|
|
32243
|
+
if (this.utilities.isNull(item2.icon)) {
|
|
32244
|
+
return false;
|
|
32245
|
+
}
|
|
32246
|
+
return item2.icon.indexOf("fa-") != -1;
|
|
32247
|
+
});
|
|
32268
32248
|
this.props = props;
|
|
32269
32249
|
this.ctx = ctx;
|
|
32270
32250
|
this.useToolbar();
|
|
@@ -32301,13 +32281,14 @@ let ToolbarInstance$1 = class ToolbarInstance2 extends BaseInstance {
|
|
|
32301
32281
|
}
|
|
32302
32282
|
//#endregion 业务逻辑 END
|
|
32303
32283
|
};
|
|
32304
|
-
const
|
|
32284
|
+
const Toolbar_vue_vue_type_style_index_0_scoped_69337cbe_lang = "";
|
|
32305
32285
|
const _hoisted_1$9 = { class: "toolbar" };
|
|
32306
32286
|
const _hoisted_2$7 = { style: { "display": "none" } };
|
|
32307
32287
|
const _hoisted_3$6 = { key: 0 };
|
|
32308
|
-
function _sfc_render$
|
|
32288
|
+
function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
32309
32289
|
const _component_Button = resolveComponent("Button");
|
|
32310
32290
|
const _component_ButtonGroup = resolveComponent("ButtonGroup");
|
|
32291
|
+
const _component_Divider = resolveComponent("Divider");
|
|
32311
32292
|
const _component_Icon = resolveComponent("Icon");
|
|
32312
32293
|
const _component_DropdownItem = resolveComponent("DropdownItem");
|
|
32313
32294
|
const _component_DropdownMenu = resolveComponent("DropdownMenu");
|
|
@@ -32350,24 +32331,27 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
32350
32331
|
default: withCtx(() => [
|
|
32351
32332
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.showOptions, (item2, index2) => {
|
|
32352
32333
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
32353
|
-
|
|
32334
|
+
item2.type == "divider" ? (openBlock(), createBlock(_component_Divider, {
|
|
32354
32335
|
key: 0,
|
|
32336
|
+
type: "vertical"
|
|
32337
|
+
})) : _ctx.isIconButton ? (openBlock(), createBlock(_component_Button, {
|
|
32355
32338
|
disabled: _ctx.getIsEnable(item2),
|
|
32356
|
-
icon: item2
|
|
32339
|
+
icon: _ctx.getIcon(item2),
|
|
32357
32340
|
"custom-icon": item2.icon,
|
|
32358
32341
|
onClick: ($event) => item2.onclick ? item2.onclick() : {},
|
|
32359
32342
|
title: item2.text,
|
|
32360
|
-
loading: item2.loading ? item2.loading() : false
|
|
32343
|
+
loading: item2.loading ? item2.loading() : false,
|
|
32344
|
+
key: item2.name
|
|
32361
32345
|
}, null, 8, ["disabled", "icon", "custom-icon", "onClick", "title", "loading"])) : (openBlock(), createBlock(_component_Button, {
|
|
32362
|
-
key: 1,
|
|
32363
32346
|
disabled: _ctx.getIsEnable(item2),
|
|
32364
|
-
icon: item2
|
|
32347
|
+
icon: _ctx.getIcon(item2),
|
|
32365
32348
|
"custom-icon": item2.icon,
|
|
32366
32349
|
type: item2.type ? item2.type : "default",
|
|
32367
32350
|
onClick: ($event) => item2.onclick ? item2.onclick() : {},
|
|
32368
32351
|
size: item2.size ? item2.size : "default",
|
|
32369
32352
|
title: item2.name,
|
|
32370
|
-
loading: item2.loading ? item2.loading() : false
|
|
32353
|
+
loading: item2.loading ? item2.loading() : false,
|
|
32354
|
+
key: item2.name
|
|
32371
32355
|
}, {
|
|
32372
32356
|
default: withCtx(() => [
|
|
32373
32357
|
createTextVNode(toDisplayString(_ctx.isIconButton ? "" : item2.text), 1)
|
|
@@ -32389,9 +32373,13 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
32389
32373
|
name: item2.name
|
|
32390
32374
|
}, {
|
|
32391
32375
|
default: withCtx(() => [
|
|
32392
|
-
|
|
32376
|
+
_ctx.isFaIcon(item2) ? (openBlock(), createElementBlock("i", {
|
|
32377
|
+
key: 0,
|
|
32378
|
+
class: normalizeClass(item2.icon)
|
|
32379
|
+
}, null, 2)) : (openBlock(), createBlock(_component_Icon, {
|
|
32380
|
+
key: 1,
|
|
32393
32381
|
type: item2.icon
|
|
32394
|
-
}, null, 8, ["type"]),
|
|
32382
|
+
}, null, 8, ["type"])),
|
|
32395
32383
|
createTextVNode(" " + toDisplayString(item2.text), 1)
|
|
32396
32384
|
]),
|
|
32397
32385
|
_: 2
|
|
@@ -32417,7 +32405,7 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
32417
32405
|
}))
|
|
32418
32406
|
]);
|
|
32419
32407
|
}
|
|
32420
|
-
const Toolbar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
32408
|
+
const Toolbar = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$d], ["__scopeId", "data-v-69337cbe"]]);
|
|
32421
32409
|
const GridCellContent = defineComponent({
|
|
32422
32410
|
name: "GridCellContent",
|
|
32423
32411
|
props: {
|
|
@@ -32453,7 +32441,7 @@ const GridTitleContent = defineComponent({
|
|
|
32453
32441
|
return this.$props.column.titleFormat(h, this.$props.column);
|
|
32454
32442
|
}
|
|
32455
32443
|
});
|
|
32456
|
-
const propDefine$
|
|
32444
|
+
const propDefine$m = {
|
|
32457
32445
|
columns: {
|
|
32458
32446
|
// 列配置项
|
|
32459
32447
|
type: Array,
|
|
@@ -32465,11 +32453,11 @@ const propDefine$l = {
|
|
|
32465
32453
|
}
|
|
32466
32454
|
}
|
|
32467
32455
|
};
|
|
32468
|
-
const _sfc_main$
|
|
32456
|
+
const _sfc_main$c = defineComponent({
|
|
32469
32457
|
name: "GridColumn",
|
|
32470
32458
|
components: { VxeColumn, VxeColgroup, GridCellContent, GridTitleContent },
|
|
32471
32459
|
emits: ["clearRadioRow", "change", "delete", "addchild"],
|
|
32472
|
-
props: propDefine$
|
|
32460
|
+
props: propDefine$m,
|
|
32473
32461
|
setup(props, ctx) {
|
|
32474
32462
|
return new GridColumnInstance(props, ctx);
|
|
32475
32463
|
}
|
|
@@ -32827,9 +32815,9 @@ class GridColumnInstance extends BaseInstance {
|
|
|
32827
32815
|
//#endregion 事件 END
|
|
32828
32816
|
}
|
|
32829
32817
|
const GridColumn_vue_vue_type_style_index_0_lang = "";
|
|
32830
|
-
const
|
|
32818
|
+
const GridColumn_vue_vue_type_style_index_1_scoped_edaf2a4d_lang = "";
|
|
32831
32819
|
const _hoisted_1$8 = { class: "gridColumn" };
|
|
32832
|
-
function _sfc_render$
|
|
32820
|
+
function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
32833
32821
|
const _component_GridTitleContent = resolveComponent("GridTitleContent");
|
|
32834
32822
|
const _component_grid_column = resolveComponent("grid-column", true);
|
|
32835
32823
|
const _component_vxe_colgroup = resolveComponent("vxe-colgroup");
|
|
@@ -33061,6 +33049,7 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
33061
33049
|
_: 2
|
|
33062
33050
|
}, 1032, ["field", "min-width", "width", "resizable", "visible", "fixed", "align", "header-align", "footer-align", "show-overflow", "show-header-overflow", "show-footer-overflow", "class-name", "header-class-name", "footer-class-name", "formatter", "sortable", "sort-by", "sort-type", "tree-node"])) : _ctx.getHasRowButton(column) ? (openBlock(), createBlock(_component_vxe_column, {
|
|
33063
33051
|
key: 5,
|
|
33052
|
+
field: column.field,
|
|
33064
33053
|
"min-width": column.minWidth,
|
|
33065
33054
|
width: column.width,
|
|
33066
33055
|
align: "center",
|
|
@@ -33091,7 +33080,7 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
33091
33080
|
}, 1024)
|
|
33092
33081
|
]),
|
|
33093
33082
|
_: 2
|
|
33094
|
-
}, 1032, ["min-width", "width"])) : (openBlock(), createBlock(_component_vxe_column, {
|
|
33083
|
+
}, 1032, ["field", "min-width", "width"])) : (openBlock(), createBlock(_component_vxe_column, {
|
|
33095
33084
|
key: 6,
|
|
33096
33085
|
field: column.field,
|
|
33097
33086
|
"min-width": column.minWidth,
|
|
@@ -33130,8 +33119,8 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
33130
33119
|
}), 256))
|
|
33131
33120
|
]);
|
|
33132
33121
|
}
|
|
33133
|
-
const GridColumn = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
33134
|
-
const propDefine$
|
|
33122
|
+
const GridColumn = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$c], ["__scopeId", "data-v-edaf2a4d"]]);
|
|
33123
|
+
const propDefine$l = {
|
|
33135
33124
|
option: {
|
|
33136
33125
|
// Gird 配置项
|
|
33137
33126
|
type: Object,
|
|
@@ -33167,7 +33156,7 @@ const propDefine$k = {
|
|
|
33167
33156
|
default: ""
|
|
33168
33157
|
}
|
|
33169
33158
|
};
|
|
33170
|
-
const _sfc_main$
|
|
33159
|
+
const _sfc_main$b = defineComponent({
|
|
33171
33160
|
name: "NvGrid",
|
|
33172
33161
|
components: {
|
|
33173
33162
|
VxeGrid,
|
|
@@ -33178,7 +33167,7 @@ const _sfc_main$a = defineComponent({
|
|
|
33178
33167
|
GridColumn
|
|
33179
33168
|
},
|
|
33180
33169
|
emits: [""],
|
|
33181
|
-
props: propDefine$
|
|
33170
|
+
props: propDefine$l,
|
|
33182
33171
|
setup(props, ctx) {
|
|
33183
33172
|
return new GridInstance$1(props, ctx);
|
|
33184
33173
|
}
|
|
@@ -33549,6 +33538,26 @@ let GridInstance$1 = class GridInstance2 extends BaseInstance {
|
|
|
33549
33538
|
}
|
|
33550
33539
|
return true;
|
|
33551
33540
|
});
|
|
33541
|
+
/**
|
|
33542
|
+
* 行附加 className
|
|
33543
|
+
* @returns
|
|
33544
|
+
*/
|
|
33545
|
+
__publicField2(this, "getRowClassName", () => {
|
|
33546
|
+
if (this.props.option.setting) {
|
|
33547
|
+
return this.props.option.setting.rowClassName;
|
|
33548
|
+
}
|
|
33549
|
+
return "";
|
|
33550
|
+
});
|
|
33551
|
+
/**
|
|
33552
|
+
* 单元格附加 className
|
|
33553
|
+
* @returns
|
|
33554
|
+
*/
|
|
33555
|
+
__publicField2(this, "getCellClassName", () => {
|
|
33556
|
+
if (this.props.option.setting) {
|
|
33557
|
+
return this.props.option.setting.cellClassName;
|
|
33558
|
+
}
|
|
33559
|
+
return "";
|
|
33560
|
+
});
|
|
33552
33561
|
/**
|
|
33553
33562
|
* 启用双击展开行
|
|
33554
33563
|
* @returns
|
|
@@ -34269,7 +34278,8 @@ let GridInstance$1 = class GridInstance2 extends BaseInstance {
|
|
|
34269
34278
|
}
|
|
34270
34279
|
//#endregion 公开方法 END
|
|
34271
34280
|
};
|
|
34272
|
-
const
|
|
34281
|
+
const Grid_vue_vue_type_style_index_0_scoped_636503f8_lang = "";
|
|
34282
|
+
const _withScopeId$1 = (n) => (pushScopeId("data-v-636503f8"), n = n(), popScopeId(), n);
|
|
34273
34283
|
const _hoisted_1$7 = { class: "nv-crud" };
|
|
34274
34284
|
const _hoisted_2$6 = { class: "nv-crud-body" };
|
|
34275
34285
|
const _hoisted_3$5 = { class: "nv-crud-body-search" };
|
|
@@ -34285,11 +34295,12 @@ const _hoisted_6$1 = {
|
|
|
34285
34295
|
class: "nv-crud-body-table",
|
|
34286
34296
|
ref: "crudTable"
|
|
34287
34297
|
};
|
|
34288
|
-
const _hoisted_7$1 = {
|
|
34298
|
+
const _hoisted_7$1 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("span", { class: "grid-msg" }, "加载中...", -1));
|
|
34299
|
+
const _hoisted_8$1 = {
|
|
34289
34300
|
key: 0,
|
|
34290
34301
|
class: "nv-crud-footer"
|
|
34291
34302
|
};
|
|
34292
|
-
function _sfc_render$
|
|
34303
|
+
function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
34293
34304
|
const _component_search_com = resolveComponent("search-com");
|
|
34294
34305
|
const _component_Divider = resolveComponent("Divider");
|
|
34295
34306
|
const _component_toolbar = resolveComponent("toolbar");
|
|
@@ -34297,6 +34308,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
34297
34308
|
const _component_Col = resolveComponent("Col");
|
|
34298
34309
|
const _component_Button = resolveComponent("Button");
|
|
34299
34310
|
const _component_Row = resolveComponent("Row");
|
|
34311
|
+
const _component_Icon = resolveComponent("Icon");
|
|
34300
34312
|
const _component_Spin = resolveComponent("Spin");
|
|
34301
34313
|
const _component_grid_column = resolveComponent("grid-column");
|
|
34302
34314
|
const _component_vxe_table = resolveComponent("vxe-table");
|
|
@@ -34372,10 +34384,20 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
34372
34384
|
})
|
|
34373
34385
|
])) : createCommentVNode("", true),
|
|
34374
34386
|
createElementVNode("div", _hoisted_6$1, [
|
|
34375
|
-
|
|
34376
|
-
|
|
34377
|
-
|
|
34378
|
-
}
|
|
34387
|
+
createVNode(_component_Spin, {
|
|
34388
|
+
fix: "",
|
|
34389
|
+
show: _ctx.loadDataing
|
|
34390
|
+
}, {
|
|
34391
|
+
default: withCtx(() => [
|
|
34392
|
+
createVNode(_component_Icon, {
|
|
34393
|
+
type: "ios-loading",
|
|
34394
|
+
size: "24",
|
|
34395
|
+
class: "grid-icon-load"
|
|
34396
|
+
}),
|
|
34397
|
+
_hoisted_7$1
|
|
34398
|
+
]),
|
|
34399
|
+
_: 1
|
|
34400
|
+
}, 8, ["show"]),
|
|
34379
34401
|
withDirectives(createVNode(_component_vxe_table, mergeProps(toHandlers(_ctx.gridEvents), {
|
|
34380
34402
|
ref: "xTable",
|
|
34381
34403
|
size: "small",
|
|
@@ -34385,6 +34407,8 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
34385
34407
|
"column-config": { resizable: true },
|
|
34386
34408
|
border: _ctx.getBorder(),
|
|
34387
34409
|
"show-header": _ctx.getShowHeader(),
|
|
34410
|
+
"row-class-name": _ctx.getRowClassName(),
|
|
34411
|
+
"cell-class-name": _ctx.getCellClassName(),
|
|
34388
34412
|
"row-config": _ctx.getRowConfig(),
|
|
34389
34413
|
"edit-config": _ctx.getEditConfig(),
|
|
34390
34414
|
"tree-config": _ctx.getTreeConfig(),
|
|
@@ -34437,12 +34461,12 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
34437
34461
|
}, null, 8, ["columns", "xTable", "onClearRadioRow", "onDelete", "onAddchild"])
|
|
34438
34462
|
]),
|
|
34439
34463
|
_: 1
|
|
34440
|
-
}, 16, ["data", "border", "show-header", "row-config", "edit-config", "tree-config", "edit-rules", "menu-config", "onKeydownStart", "onKeydown", "onKeydownEnd", "onPaste", "onCopy", "onCut", "onCurrentChange", "onRadioChange", "onCheckboxChange", "onCheckboxAll", "onCheckboxRangeStart", "onCheckboxRangeChange", "onCheckboxRangeEnd", "onCellClick", "onCellDblclick", "onCellMenu", "onCellMouseenter", "onCellMouseleave", "onHeaderCellClick", "onHeaderCellDblclick", "onHeaderCellMenu", "onFooterCellClick", "onFooterCellDblclick", "onFooterCellMenu", "onSortChange", "onFilterChange", "onResizableChange", "onToggleRowExpand", "onToggleTreeExpand", "onMenuClick", "onEditClosed", "onEditActived", "onEditDisabled", "onValidError", "onScroll", "onCustom"]), [
|
|
34464
|
+
}, 16, ["data", "border", "show-header", "row-class-name", "cell-class-name", "row-config", "edit-config", "tree-config", "edit-rules", "menu-config", "onKeydownStart", "onKeydown", "onKeydownEnd", "onPaste", "onCopy", "onCut", "onCurrentChange", "onRadioChange", "onCheckboxChange", "onCheckboxAll", "onCheckboxRangeStart", "onCheckboxRangeChange", "onCheckboxRangeEnd", "onCellClick", "onCellDblclick", "onCellMenu", "onCellMouseenter", "onCellMouseleave", "onHeaderCellClick", "onHeaderCellDblclick", "onHeaderCellMenu", "onFooterCellClick", "onFooterCellDblclick", "onFooterCellMenu", "onSortChange", "onFilterChange", "onResizableChange", "onToggleRowExpand", "onToggleTreeExpand", "onMenuClick", "onEditClosed", "onEditActived", "onEditDisabled", "onValidError", "onScroll", "onCustom"]), [
|
|
34441
34465
|
[vShow, _ctx.showTable]
|
|
34442
34466
|
])
|
|
34443
34467
|
], 512)
|
|
34444
34468
|
]),
|
|
34445
|
-
_ctx.getIsPagination() ? (openBlock(), createElementBlock("div",
|
|
34469
|
+
_ctx.getIsPagination() ? (openBlock(), createElementBlock("div", _hoisted_8$1, [
|
|
34446
34470
|
createVNode(_component_Page, {
|
|
34447
34471
|
modelValue: _ctx.pageIndex,
|
|
34448
34472
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.pageIndex = $event),
|
|
@@ -34455,8 +34479,8 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
34455
34479
|
])) : createCommentVNode("", true)
|
|
34456
34480
|
]);
|
|
34457
34481
|
}
|
|
34458
|
-
const Grid = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
34459
|
-
const propDefine$
|
|
34482
|
+
const Grid = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$b], ["__scopeId", "data-v-636503f8"]]);
|
|
34483
|
+
const propDefine$k = {
|
|
34460
34484
|
width: {
|
|
34461
34485
|
// Box 宽度
|
|
34462
34486
|
type: String,
|
|
@@ -34491,11 +34515,11 @@ const propDefine$j = {
|
|
|
34491
34515
|
default: false
|
|
34492
34516
|
}
|
|
34493
34517
|
};
|
|
34494
|
-
const _sfc_main$
|
|
34518
|
+
const _sfc_main$a = defineComponent({
|
|
34495
34519
|
name: "NvBox",
|
|
34496
34520
|
components: {},
|
|
34497
34521
|
emits: ["change", "on-back"],
|
|
34498
|
-
props: propDefine$
|
|
34522
|
+
props: propDefine$k,
|
|
34499
34523
|
setup(props, ctx) {
|
|
34500
34524
|
return new BoxInstance$1(props, ctx);
|
|
34501
34525
|
}
|
|
@@ -34591,7 +34615,7 @@ const _hoisted_5$3 = {
|
|
|
34591
34615
|
key: 3,
|
|
34592
34616
|
class: "nv-box-footer"
|
|
34593
34617
|
};
|
|
34594
|
-
function _sfc_render$
|
|
34618
|
+
function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
34595
34619
|
const _component_Icon = resolveComponent("Icon");
|
|
34596
34620
|
const _component_Divider = resolveComponent("Divider");
|
|
34597
34621
|
const _component_Col = resolveComponent("Col");
|
|
@@ -34661,19 +34685,19 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
34661
34685
|
_: 3
|
|
34662
34686
|
}, 8, ["style"]);
|
|
34663
34687
|
}
|
|
34664
|
-
const Box = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
34665
|
-
const propDefine$
|
|
34688
|
+
const Box = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_render$a], ["__scopeId", "data-v-46073643"]]);
|
|
34689
|
+
const propDefine$j = {
|
|
34666
34690
|
gutter: {
|
|
34667
34691
|
// 栅格间的间距
|
|
34668
34692
|
type: Number,
|
|
34669
34693
|
default: 0
|
|
34670
34694
|
}
|
|
34671
34695
|
};
|
|
34672
|
-
const _sfc_main$
|
|
34696
|
+
const _sfc_main$9 = defineComponent({
|
|
34673
34697
|
name: "NvPage",
|
|
34674
34698
|
components: {},
|
|
34675
34699
|
emits: [""],
|
|
34676
|
-
props: propDefine$
|
|
34700
|
+
props: propDefine$j,
|
|
34677
34701
|
setup(props, ctx) {
|
|
34678
34702
|
return new PageInstance$1(props, ctx);
|
|
34679
34703
|
}
|
|
@@ -34690,7 +34714,7 @@ let PageInstance$1 = class PageInstance2 extends BaseInstance {
|
|
|
34690
34714
|
}
|
|
34691
34715
|
};
|
|
34692
34716
|
const Page_vue_vue_type_style_index_0_scoped_22d5952e_lang = "";
|
|
34693
|
-
function _sfc_render$
|
|
34717
|
+
function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
34694
34718
|
const _component_Row = resolveComponent("Row");
|
|
34695
34719
|
return openBlock(), createBlock(_component_Row, {
|
|
34696
34720
|
class: "page",
|
|
@@ -34702,8 +34726,8 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
34702
34726
|
_: 3
|
|
34703
34727
|
}, 8, ["gutter"]);
|
|
34704
34728
|
}
|
|
34705
|
-
const Page$1 = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
34706
|
-
const propDefine$
|
|
34729
|
+
const Page$1 = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$9], ["__scopeId", "data-v-22d5952e"]]);
|
|
34730
|
+
const propDefine$i = {
|
|
34707
34731
|
splitValue: {
|
|
34708
34732
|
// 分割值大小
|
|
34709
34733
|
type: Number,
|
|
@@ -34720,12 +34744,12 @@ const propDefine$h = {
|
|
|
34720
34744
|
default: "200px"
|
|
34721
34745
|
}
|
|
34722
34746
|
};
|
|
34723
|
-
const _sfc_main$
|
|
34747
|
+
const _sfc_main$8 = defineComponent({
|
|
34724
34748
|
name: "NvPage2L",
|
|
34725
34749
|
components: {},
|
|
34726
34750
|
emits: [""],
|
|
34727
34751
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
34728
|
-
props: propDefine$
|
|
34752
|
+
props: propDefine$i,
|
|
34729
34753
|
setup(props, ctx) {
|
|
34730
34754
|
return new Page2LInstance$1(props, ctx);
|
|
34731
34755
|
}
|
|
@@ -34759,7 +34783,7 @@ let Page2LInstance$1 = class Page2LInstance2 extends BaseInstance {
|
|
|
34759
34783
|
const Page2L_vue_vue_type_style_index_0_scoped_92af6688_lang = "";
|
|
34760
34784
|
const _hoisted_1$5 = { class: "page2L" };
|
|
34761
34785
|
const _hoisted_2$4 = { class: "md-content" };
|
|
34762
|
-
function _sfc_render$
|
|
34786
|
+
function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
34763
34787
|
const _component_Split = resolveComponent("Split");
|
|
34764
34788
|
const _component_NvPage = resolveComponent("NvPage");
|
|
34765
34789
|
return openBlock(), createElementBlock("div", _hoisted_1$5, [
|
|
@@ -34786,7 +34810,7 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
34786
34810
|
])
|
|
34787
34811
|
]);
|
|
34788
34812
|
}
|
|
34789
|
-
const Page2L = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
34813
|
+
const Page2L = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$8], ["__scopeId", "data-v-92af6688"]]);
|
|
34790
34814
|
const ListContent = defineComponent({
|
|
34791
34815
|
name: "ListContent",
|
|
34792
34816
|
props: {
|
|
@@ -34814,19 +34838,19 @@ const ListContent = defineComponent({
|
|
|
34814
34838
|
return "";
|
|
34815
34839
|
}
|
|
34816
34840
|
});
|
|
34817
|
-
const propDefine$
|
|
34841
|
+
const propDefine$h = {
|
|
34818
34842
|
option: {
|
|
34819
34843
|
// List 配置项
|
|
34820
34844
|
type: Object,
|
|
34821
34845
|
default: () => ({})
|
|
34822
34846
|
}
|
|
34823
34847
|
};
|
|
34824
|
-
const _sfc_main$
|
|
34848
|
+
const _sfc_main$7 = defineComponent({
|
|
34825
34849
|
name: "NvList",
|
|
34826
34850
|
components: { ListContent },
|
|
34827
34851
|
emits: ["select"],
|
|
34828
34852
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
34829
|
-
props: propDefine$
|
|
34853
|
+
props: propDefine$h,
|
|
34830
34854
|
setup(props, ctx) {
|
|
34831
34855
|
return new ListInstance$1(props, ctx);
|
|
34832
34856
|
}
|
|
@@ -34981,7 +35005,7 @@ let ListInstance$1 = class ListInstance2 extends BaseInstance {
|
|
|
34981
35005
|
};
|
|
34982
35006
|
const List_vue_vue_type_style_index_0_scoped_9d6c9980_lang = "";
|
|
34983
35007
|
const _hoisted_1$4 = { class: "list" };
|
|
34984
|
-
function _sfc_render$
|
|
35008
|
+
function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
34985
35009
|
const _component_Spin = resolveComponent("Spin");
|
|
34986
35010
|
const _component_ListContent = resolveComponent("ListContent");
|
|
34987
35011
|
const _component_Cell = resolveComponent("Cell");
|
|
@@ -35032,7 +35056,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
35032
35056
|
}, 8, ["onOnClick"])
|
|
35033
35057
|
]);
|
|
35034
35058
|
}
|
|
35035
|
-
const List = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
35059
|
+
const List = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$7], ["__scopeId", "data-v-9d6c9980"]]);
|
|
35036
35060
|
/*! @preserve
|
|
35037
35061
|
* luckysheet
|
|
35038
35062
|
* version: 2.1.13
|
|
@@ -189034,7 +189058,7 @@ class ReportApi extends BaseInstance {
|
|
|
189034
189058
|
}
|
|
189035
189059
|
class LuckySheet extends ReportApi {
|
|
189036
189060
|
}
|
|
189037
|
-
const propDefine$
|
|
189061
|
+
const propDefine$g = {
|
|
189038
189062
|
width: {
|
|
189039
189063
|
// 宽度
|
|
189040
189064
|
type: String,
|
|
@@ -189056,12 +189080,12 @@ const propDefine$f = {
|
|
|
189056
189080
|
default: ""
|
|
189057
189081
|
}
|
|
189058
189082
|
};
|
|
189059
|
-
const _sfc_main$
|
|
189083
|
+
const _sfc_main$6 = defineComponent({
|
|
189060
189084
|
name: "NvControlGroup",
|
|
189061
189085
|
components: {},
|
|
189062
189086
|
emits: ["click"],
|
|
189063
189087
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
189064
|
-
props: propDefine$
|
|
189088
|
+
props: propDefine$g,
|
|
189065
189089
|
setup(props, ctx) {
|
|
189066
189090
|
return new ControlGroupInstance(props, ctx);
|
|
189067
189091
|
}
|
|
@@ -189099,7 +189123,7 @@ class ControlGroupInstance extends BaseInstance {
|
|
|
189099
189123
|
//#endregion 控件组 END
|
|
189100
189124
|
}
|
|
189101
189125
|
const ControlGroup_vue_vue_type_style_index_0_scoped_fd687636_lang = "";
|
|
189102
|
-
function _sfc_render$
|
|
189126
|
+
function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
189103
189127
|
const _component_Button = resolveComponent("Button");
|
|
189104
189128
|
return openBlock(), createElementBlock("div", {
|
|
189105
189129
|
class: "controlGroup",
|
|
@@ -189123,8 +189147,8 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
189123
189147
|
}, null, 8, ["icon", "onClick"])) : createCommentVNode("", true)
|
|
189124
189148
|
], 4);
|
|
189125
189149
|
}
|
|
189126
|
-
const ControlGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
189127
|
-
const propDefine$
|
|
189150
|
+
const ControlGroup = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$6], ["__scopeId", "data-v-fd687636"]]);
|
|
189151
|
+
const propDefine$f = {
|
|
189128
189152
|
linkParam: {
|
|
189129
189153
|
// 带入的参数
|
|
189130
189154
|
type: String,
|
|
@@ -189136,12 +189160,12 @@ const propDefine$e = {
|
|
|
189136
189160
|
default: "-"
|
|
189137
189161
|
}
|
|
189138
189162
|
};
|
|
189139
|
-
const _sfc_main$
|
|
189163
|
+
const _sfc_main$5 = defineComponent({
|
|
189140
189164
|
name: "LogPanel",
|
|
189141
189165
|
components: {},
|
|
189142
189166
|
emits: [""],
|
|
189143
189167
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
189144
|
-
props: propDefine$
|
|
189168
|
+
props: propDefine$f,
|
|
189145
189169
|
setup(props, ctx) {
|
|
189146
189170
|
return new LogPanelInstance(props, ctx);
|
|
189147
189171
|
}
|
|
@@ -189245,7 +189269,7 @@ const _hoisted_8 = { key: 2 };
|
|
|
189245
189269
|
const _hoisted_9 = ["innerHTML"];
|
|
189246
189270
|
const _hoisted_10 = { key: 3 };
|
|
189247
189271
|
const _hoisted_11 = ["innerHTML"];
|
|
189248
|
-
function _sfc_render$
|
|
189272
|
+
function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
189249
189273
|
return openBlock(), createElementBlock("div", _hoisted_1$3, [
|
|
189250
189274
|
createElementVNode("div", _hoisted_2$3, [
|
|
189251
189275
|
createElementVNode("div", {
|
|
@@ -189314,8 +189338,8 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
189314
189338
|
])
|
|
189315
189339
|
]);
|
|
189316
189340
|
}
|
|
189317
|
-
const LogPanel = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
189318
|
-
const propDefine$
|
|
189341
|
+
const LogPanel = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$5], ["__scopeId", "data-v-0df58132"]]);
|
|
189342
|
+
const propDefine$e = {
|
|
189319
189343
|
isSheetGroup: {
|
|
189320
189344
|
// 是否按sheet页分组返回导入数据
|
|
189321
189345
|
// 传入true时则不提供选择sheet页下拉列表,会将所有sheet页数据全部返回
|
|
@@ -189338,12 +189362,12 @@ const propDefine$d = {
|
|
|
189338
189362
|
default: false
|
|
189339
189363
|
}
|
|
189340
189364
|
};
|
|
189341
|
-
const _sfc_main$
|
|
189365
|
+
const _sfc_main$4 = defineComponent({
|
|
189342
189366
|
name: "NvExcelImport",
|
|
189343
189367
|
components: { LogPanel },
|
|
189344
189368
|
emits: ["import"],
|
|
189345
189369
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
189346
|
-
props: propDefine$
|
|
189370
|
+
props: propDefine$e,
|
|
189347
189371
|
setup(props, ctx) {
|
|
189348
189372
|
return new ExcelImportInstance$1(props, ctx);
|
|
189349
189373
|
}
|
|
@@ -189496,7 +189520,7 @@ const _hoisted_1$2 = { class: "excelImport" };
|
|
|
189496
189520
|
const _hoisted_2$2 = { class: "excel-header" };
|
|
189497
189521
|
const _hoisted_3$2 = ["id", "accept"];
|
|
189498
189522
|
const _hoisted_4$2 = { class: "excel-log" };
|
|
189499
|
-
function _sfc_render$
|
|
189523
|
+
function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
189500
189524
|
const _component_Button = resolveComponent("Button");
|
|
189501
189525
|
const _component_Option = resolveComponent("Option");
|
|
189502
189526
|
const _component_Select = resolveComponent("Select");
|
|
@@ -189589,7 +189613,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
189589
189613
|
])
|
|
189590
189614
|
]);
|
|
189591
189615
|
}
|
|
189592
|
-
const ExcelImport = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
189616
|
+
const ExcelImport = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-8f25f8b7"]]);
|
|
189593
189617
|
class HtmlBase {
|
|
189594
189618
|
constructor() {
|
|
189595
189619
|
__publicField2(this, "textAlign", {
|
|
@@ -210591,7 +210615,7 @@ async function GetDoc(i1, i2) {
|
|
|
210591
210615
|
]
|
|
210592
210616
|
});
|
|
210593
210617
|
}
|
|
210594
|
-
const propDefine$
|
|
210618
|
+
const propDefine$d = {
|
|
210595
210619
|
ContentDatas: {
|
|
210596
210620
|
type: Array,
|
|
210597
210621
|
default: () => []
|
|
@@ -210601,12 +210625,12 @@ const propDefine$c = {
|
|
|
210601
210625
|
default: 0
|
|
210602
210626
|
}
|
|
210603
210627
|
};
|
|
210604
|
-
const _sfc_main$
|
|
210628
|
+
const _sfc_main$3 = defineComponent({
|
|
210605
210629
|
name: "ContentTreeView",
|
|
210606
210630
|
components: { draggable: draggable__default },
|
|
210607
210631
|
emits: ["onDataChange"],
|
|
210608
210632
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
210609
|
-
props: propDefine$
|
|
210633
|
+
props: propDefine$d,
|
|
210610
210634
|
setup(props, ctx) {
|
|
210611
210635
|
return new ContentTreeViewInstance(props, ctx);
|
|
210612
210636
|
}
|
|
@@ -210642,7 +210666,7 @@ class ContentTreeViewInstance extends BaseInstance {
|
|
|
210642
210666
|
this.ctx = ctx;
|
|
210643
210667
|
}
|
|
210644
210668
|
}
|
|
210645
|
-
function _sfc_render$
|
|
210669
|
+
function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
210646
210670
|
const _component_Button = resolveComponent("Button");
|
|
210647
210671
|
const _component_ContentTreeView = resolveComponent("ContentTreeView", true);
|
|
210648
210672
|
const _component_draggable = resolveComponent("draggable");
|
|
@@ -210696,14 +210720,14 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
210696
210720
|
}, 8, ["modelValue"])
|
|
210697
210721
|
], 64);
|
|
210698
210722
|
}
|
|
210699
|
-
const ContentTreeView = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
210700
|
-
const propDefine$
|
|
210701
|
-
const _sfc_main$
|
|
210723
|
+
const ContentTreeView = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3]]);
|
|
210724
|
+
const propDefine$c = {};
|
|
210725
|
+
const _sfc_main$2 = defineComponent({
|
|
210702
210726
|
name: "ContentTree",
|
|
210703
210727
|
components: { draggable, ContentTreeView },
|
|
210704
210728
|
emits: ["onDocChange"],
|
|
210705
210729
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
210706
|
-
props: propDefine$
|
|
210730
|
+
props: propDefine$c,
|
|
210707
210731
|
setup(props, ctx) {
|
|
210708
210732
|
return new ContentTreeInstance(props, ctx);
|
|
210709
210733
|
}
|
|
@@ -211000,7 +211024,7 @@ const _hoisted_2$1 = { style: { "width": "30%" } };
|
|
|
211000
211024
|
const _hoisted_3$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", null, "文档组件列表", -1));
|
|
211001
211025
|
const _hoisted_4$1 = { class: "content" };
|
|
211002
211026
|
const _hoisted_5$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", null, "文档结构", -1));
|
|
211003
|
-
function _sfc_render$
|
|
211027
|
+
function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
211004
211028
|
const _component_draggable = resolveComponent("draggable");
|
|
211005
211029
|
const _component_ContentTreeView = resolveComponent("ContentTreeView");
|
|
211006
211030
|
return openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
@@ -211032,14 +211056,14 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
211032
211056
|
])
|
|
211033
211057
|
]);
|
|
211034
211058
|
}
|
|
211035
|
-
const ContentTree = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
211036
|
-
const propDefine$
|
|
211037
|
-
const _sfc_main = defineComponent({
|
|
211059
|
+
const ContentTree = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-d63251e3"]]);
|
|
211060
|
+
const propDefine$b = {};
|
|
211061
|
+
const _sfc_main$1 = defineComponent({
|
|
211038
211062
|
name: "NvDocxDesigner",
|
|
211039
211063
|
components: { ContentTree, VueOfficeDocx },
|
|
211040
211064
|
emits: [""],
|
|
211041
211065
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
211042
|
-
props: propDefine$
|
|
211066
|
+
props: propDefine$b,
|
|
211043
211067
|
setup(props, ctx) {
|
|
211044
211068
|
return new DocxDesignerInstance(props, ctx);
|
|
211045
211069
|
}
|
|
@@ -211087,7 +211111,7 @@ const _hoisted_2 = { class: "doc-plane-left" };
|
|
|
211087
211111
|
const _hoisted_3 = { class: "doc-plane-child" };
|
|
211088
211112
|
const _hoisted_4 = { style: { "padding": "30px" } };
|
|
211089
211113
|
const _hoisted_5 = { style: { "overflow": "auto" } };
|
|
211090
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
211114
|
+
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
211091
211115
|
const _component_ContentTree = resolveComponent("ContentTree");
|
|
211092
211116
|
const _component_Button = resolveComponent("Button");
|
|
211093
211117
|
const _component_VueOfficeDocx = resolveComponent("VueOfficeDocx");
|
|
@@ -211116,7 +211140,104 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
211116
211140
|
])
|
|
211117
211141
|
]);
|
|
211118
211142
|
}
|
|
211119
|
-
const DocxDesigner = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-18b6c486"]]);
|
|
211143
|
+
const DocxDesigner = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-18b6c486"]]);
|
|
211144
|
+
const propDefine$a = {
|
|
211145
|
+
type: {
|
|
211146
|
+
// 按钮类型,可选值为 default、primary、dashed、text、info、success、warning、error
|
|
211147
|
+
type: String,
|
|
211148
|
+
default: "default"
|
|
211149
|
+
},
|
|
211150
|
+
ghost: {
|
|
211151
|
+
// 幽灵属性,使按钮背景透明
|
|
211152
|
+
type: Boolean,
|
|
211153
|
+
default: false
|
|
211154
|
+
},
|
|
211155
|
+
shape: {
|
|
211156
|
+
//按钮形状,可选值为 circle 或者不设置 //注:iview版本存在问题导致形状不生效
|
|
211157
|
+
type: String,
|
|
211158
|
+
default: "-"
|
|
211159
|
+
},
|
|
211160
|
+
size: {
|
|
211161
|
+
// 按钮大小,可选值为 large、small、default 或者不设置
|
|
211162
|
+
type: String,
|
|
211163
|
+
default: "default"
|
|
211164
|
+
},
|
|
211165
|
+
disabled: {
|
|
211166
|
+
// 设置按钮为禁用状态
|
|
211167
|
+
type: Boolean,
|
|
211168
|
+
default: false
|
|
211169
|
+
},
|
|
211170
|
+
loading: {
|
|
211171
|
+
// 设置按钮为加载中状态
|
|
211172
|
+
type: Boolean,
|
|
211173
|
+
default: false
|
|
211174
|
+
},
|
|
211175
|
+
icon: {
|
|
211176
|
+
//图表 参考ivew图表库
|
|
211177
|
+
type: String,
|
|
211178
|
+
default: null
|
|
211179
|
+
},
|
|
211180
|
+
timeOut: {
|
|
211181
|
+
// 限制时间
|
|
211182
|
+
type: Number,
|
|
211183
|
+
default: 300
|
|
211184
|
+
}
|
|
211185
|
+
};
|
|
211186
|
+
const _sfc_main = defineComponent({
|
|
211187
|
+
name: "NvButton",
|
|
211188
|
+
components: {},
|
|
211189
|
+
emits: ["click"],
|
|
211190
|
+
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
211191
|
+
props: propDefine$a,
|
|
211192
|
+
setup(props, ctx) {
|
|
211193
|
+
return new ButtonInstance(props, ctx);
|
|
211194
|
+
}
|
|
211195
|
+
});
|
|
211196
|
+
class ButtonInstance extends BaseInstance {
|
|
211197
|
+
// API实例化
|
|
211198
|
+
// private platformApi: PlatformApi = new PlatformApi();
|
|
211199
|
+
// 全局属性
|
|
211200
|
+
constructor(props, ctx) {
|
|
211201
|
+
super();
|
|
211202
|
+
__publicField2(this, "props");
|
|
211203
|
+
__publicField2(this, "ctx");
|
|
211204
|
+
//#region BinEditor 编辑器
|
|
211205
|
+
// 私有属性 | private
|
|
211206
|
+
// 响应属性 | ref、reactive、computed
|
|
211207
|
+
// 私有方法 | private 方法名() {}
|
|
211208
|
+
// 响应式方法 | xxx = () => {}
|
|
211209
|
+
/**
|
|
211210
|
+
* 按钮点击事件
|
|
211211
|
+
*/
|
|
211212
|
+
__publicField2(this, "doClick", () => {
|
|
211213
|
+
this.utilities.debounce(() => {
|
|
211214
|
+
this.ctx.emit("click");
|
|
211215
|
+
}, this.props.timeOut)();
|
|
211216
|
+
});
|
|
211217
|
+
this.props = props;
|
|
211218
|
+
this.ctx = ctx;
|
|
211219
|
+
}
|
|
211220
|
+
//#endregion BinEditor 编辑器 END
|
|
211221
|
+
}
|
|
211222
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
211223
|
+
const _component_Button = resolveComponent("Button");
|
|
211224
|
+
return openBlock(), createBlock(_component_Button, {
|
|
211225
|
+
type: _ctx.type,
|
|
211226
|
+
ghost: _ctx.ghost,
|
|
211227
|
+
size: _ctx.size,
|
|
211228
|
+
shape: _ctx.shape,
|
|
211229
|
+
disabled: _ctx.disabled,
|
|
211230
|
+
loading: _ctx.loading,
|
|
211231
|
+
icon: _ctx.icon,
|
|
211232
|
+
onClick: _ctx.doClick
|
|
211233
|
+
}, {
|
|
211234
|
+
default: withCtx(() => [
|
|
211235
|
+
renderSlot(_ctx.$slots, "default")
|
|
211236
|
+
]),
|
|
211237
|
+
_: 3
|
|
211238
|
+
}, 8, ["type", "ghost", "size", "shape", "disabled", "loading", "icon", "onClick"]);
|
|
211239
|
+
}
|
|
211240
|
+
const NvButton = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
211120
211241
|
const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
211121
211242
|
__proto__: null,
|
|
211122
211243
|
DocxTemplat: index$1,
|
|
@@ -211125,6 +211246,7 @@ const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
|
|
|
211125
211246
|
HtmlJson,
|
|
211126
211247
|
LuckySheet,
|
|
211127
211248
|
NvBox: Box,
|
|
211249
|
+
NvButton,
|
|
211128
211250
|
NvComForm: ComForm,
|
|
211129
211251
|
NvControlGroup: ControlGroup,
|
|
211130
211252
|
NvDocxDesigner: DocxDesigner,
|
|
@@ -211830,6 +211952,26 @@ class GridInstance extends BaseInstance {
|
|
|
211830
211952
|
}
|
|
211831
211953
|
return true;
|
|
211832
211954
|
});
|
|
211955
|
+
/**
|
|
211956
|
+
* 行附加 className
|
|
211957
|
+
* @returns
|
|
211958
|
+
*/
|
|
211959
|
+
__publicField2(this, "getRowClassName", () => {
|
|
211960
|
+
if (this.props.option.setting) {
|
|
211961
|
+
return this.props.option.setting.rowClassName;
|
|
211962
|
+
}
|
|
211963
|
+
return "";
|
|
211964
|
+
});
|
|
211965
|
+
/**
|
|
211966
|
+
* 单元格附加 className
|
|
211967
|
+
* @returns
|
|
211968
|
+
*/
|
|
211969
|
+
__publicField2(this, "getCellClassName", () => {
|
|
211970
|
+
if (this.props.option.setting) {
|
|
211971
|
+
return this.props.option.setting.cellClassName;
|
|
211972
|
+
}
|
|
211973
|
+
return "";
|
|
211974
|
+
});
|
|
211833
211975
|
/**
|
|
211834
211976
|
* 启用双击展开行
|
|
211835
211977
|
* @returns
|
|
@@ -212984,6 +213126,28 @@ class ToolbarInstance extends BaseInstance {
|
|
|
212984
213126
|
}
|
|
212985
213127
|
return isShow;
|
|
212986
213128
|
});
|
|
213129
|
+
/**
|
|
213130
|
+
* 获取Icon
|
|
213131
|
+
* @param item
|
|
213132
|
+
* @returns
|
|
213133
|
+
*/
|
|
213134
|
+
__publicField2(this, "getIcon", (item2) => {
|
|
213135
|
+
if (this.utilities.isNull(item2.icon) || item2.icon.indexOf("fa-") != -1) {
|
|
213136
|
+
return "";
|
|
213137
|
+
}
|
|
213138
|
+
return item2.icon;
|
|
213139
|
+
});
|
|
213140
|
+
/**
|
|
213141
|
+
* 是否为Fa Icon
|
|
213142
|
+
* @param item
|
|
213143
|
+
* @returns
|
|
213144
|
+
*/
|
|
213145
|
+
__publicField2(this, "isFaIcon", (item2) => {
|
|
213146
|
+
if (this.utilities.isNull(item2.icon)) {
|
|
213147
|
+
return false;
|
|
213148
|
+
}
|
|
213149
|
+
return item2.icon.indexOf("fa-") != -1;
|
|
213150
|
+
});
|
|
212987
213151
|
this.props = props;
|
|
212988
213152
|
this.ctx = ctx;
|
|
212989
213153
|
this.useToolbar();
|
|
@@ -213414,6 +213578,7 @@ export {
|
|
|
213414
213578
|
ListInstance,
|
|
213415
213579
|
LuckySheet,
|
|
213416
213580
|
Box as NvBox,
|
|
213581
|
+
NvButton,
|
|
213417
213582
|
ComForm as NvComForm,
|
|
213418
213583
|
ControlGroup as NvControlGroup,
|
|
213419
213584
|
DocxDesigner as NvDocxDesigner,
|