@web-utils/component 2.7.22 → 2.7.28

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/index.es.js CHANGED
@@ -19,7 +19,7 @@ var __objRest = (source, exclude) => {
19
19
  exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop) && (target[prop] = source[prop]);
20
20
  return target;
21
21
  };
22
- var __async2 = (__this, __arguments, generator) => new Promise((resolve2, reject2) => {
22
+ var __async = (__this, __arguments, generator) => new Promise((resolve2, reject2) => {
23
23
  var fulfilled = (value2) => {
24
24
  try {
25
25
  step(generator.next(value2));
@@ -35,7 +35,8 @@ var __async2 = (__this, __arguments, generator) => new Promise((resolve2, reject
35
35
  }, step = (x) => x.done ? resolve2(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
36
36
  step((generator = generator.apply(__this, __arguments)).next());
37
37
  });
38
- import { isFunction, error, isBlank, getObjType, getComputedHeight, drag, hasOwn, isObject as isObject$1, isString, isPlainObject, isArray, camelize, isEmpty, fastClone, validateNumber, validateIdCard, validatePhoneNum, isVerticalScrollbarVisible, scrollbarWidth, computePosition, isUndefined, isNotEmpty, delay, findTreeChildren, setParent, warning, toStringArray, animate, isInContainer, createLogger, escapeHtml, setPx as setPx$1, copy, treeToArray, findFirstMatchNode, debug, getEleWidth, trace, guid, NOOP } from "@web-utils/core";
38
+ import { isFunction, error, isBlank, getObjType, isObject as isObject$1, isString, hasOwn, isPlainObject, isArray, camelize, isEmpty, fastClone, validateNumber, validateIdCard, validatePhoneNum, isVerticalScrollbarVisible, scrollbarWidth, computePosition, isUndefined, isNotEmpty, delay, findTreeChildren, setParent, warning, toStringArray, animate, isInContainer, createLogger, escapeHtml, setPx as setPx$1, copy, treeToArray, findFirstMatchNode, debug, getEleWidth, trace, guid, NOOP } from "@web-utils/core";
39
+ import { formatDate, toDate } from "@web-utils/integrations/dayjs";
39
40
  import Uploader from "simple-uploader.js";
40
41
  import CodeMirror from "codemirror";
41
42
  import "codemirror/lib/codemirror.css";
@@ -57,6 +58,7 @@ import { MessageBox, Loading, Dialog, Col, FormItem as FormItem$1, Cascader, Che
57
58
  import { CountUp as CountUp$1 } from "countup.js";
58
59
  import OverlayScrollbars from "overlayscrollbars";
59
60
  import "overlayscrollbars/css/OverlayScrollbars.css";
61
+ import { dialog } from "@web-utils/vue/mixin/dialog";
60
62
  import Vue from "vue";
61
63
  import * as echarts from "echarts/core";
62
64
  import { BarChart, LineChart, PieChart, RadarChart, MapChart, ScatterChart, EffectScatterChart, PictorialBarChart } from "echarts/charts";
@@ -64,8 +66,10 @@ import { TitleComponent, TooltipComponent, GridComponent, LegendComponent, Datas
64
66
  import { CanvasRenderer } from "echarts/renderers";
65
67
  import { debounce, cloneDeep, merge } from "@web-utils/integrations/lodash";
66
68
  import { addListener, removeListener } from "resize-detector";
69
+ import { addResizeListener, removeResizeListener } from "@web-utils/integrations/resize";
67
70
  import Emitter from "element-ui/src/mixins/emitter";
68
71
  import { generateId } from "element-ui/src/utils/util";
72
+ import { dialogDrag } from "@web-utils/vue/directives/dialog-drag";
69
73
  import BpmnViewer from "bpmn-js/lib/NavigatedViewer";
70
74
  import ZoomScroll from "diagram-js/lib/navigation/zoomscroll/ZoomScroll";
71
75
  import ElScrollbar from "element-ui/lib/scrollbar";
@@ -530,7 +534,7 @@ const Avatar = /* @__PURE__ */ function() {
530
534
  },
531
535
  methods: {
532
536
  onClick(e2) {
533
- return __async2(this, null, function* () {
537
+ return __async(this, null, function* () {
534
538
  this.isLoading = !0;
535
539
  const { click } = this.$listeners;
536
540
  if (isFunction(click))
@@ -811,249 +815,7 @@ function __vue2_injectStyles$3h(context) {
811
815
  }
812
816
  const Carousel = /* @__PURE__ */ function() {
813
817
  return __component__$3h.exports;
814
- }();
815
- var commonjsGlobal = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {}, dayjs_minExports = {}, dayjs_min = {
816
- get exports() {
817
- return dayjs_minExports;
818
- },
819
- set exports(v) {
820
- dayjs_minExports = v;
821
- }
822
- };
823
- (function(module, exports) {
824
- (function(t, e2) {
825
- module.exports = e2();
826
- })(commonjsGlobal, function() {
827
- var t = 1e3, e2 = 6e4, n = 36e5, r = "millisecond", i2 = "second", s = "minute", u = "hour", a = "day", o = "week", f = "month", h = "quarter", c = "year", d = "date", l = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t2) {
828
- var e3 = ["th", "st", "nd", "rd"], n2 = t2 % 100;
829
- return "[" + t2 + (e3[(n2 - 20) % 10] || e3[n2] || e3[0]) + "]";
830
- } }, m = function(t2, e3, n2) {
831
- var r2 = String(t2);
832
- return !r2 || r2.length >= e3 ? t2 : "" + Array(e3 + 1 - r2.length).join(n2) + t2;
833
- }, v = { s: m, z: function(t2) {
834
- var e3 = -t2.utcOffset(), n2 = Math.abs(e3), r2 = Math.floor(n2 / 60), i3 = n2 % 60;
835
- return (e3 <= 0 ? "+" : "-") + m(r2, 2, "0") + ":" + m(i3, 2, "0");
836
- }, m: function t2(e3, n2) {
837
- if (e3.date() < n2.date())
838
- return -t2(n2, e3);
839
- var r2 = 12 * (n2.year() - e3.year()) + (n2.month() - e3.month()), i3 = e3.clone().add(r2, f), s2 = n2 - i3 < 0, u2 = e3.clone().add(r2 + (s2 ? -1 : 1), f);
840
- return +(-(r2 + (n2 - i3) / (s2 ? i3 - u2 : u2 - i3)) || 0);
841
- }, a: function(t2) {
842
- return t2 < 0 ? Math.ceil(t2) || 0 : Math.floor(t2);
843
- }, p: function(t2) {
844
- return { M: f, y: c, w: o, d: a, D: d, h: u, m: s, s: i2, ms: r, Q: h }[t2] || String(t2 || "").toLowerCase().replace(/s$/, "");
845
- }, u: function(t2) {
846
- return t2 === void 0;
847
- } }, g = "en", D = {};
848
- D[g] = M;
849
- var p = function(t2) {
850
- return t2 instanceof _;
851
- }, S = function t2(e3, n2, r2) {
852
- var i3;
853
- if (!e3)
854
- return g;
855
- if (typeof e3 == "string") {
856
- var s2 = e3.toLowerCase();
857
- D[s2] && (i3 = s2), n2 && (D[s2] = n2, i3 = s2);
858
- var u2 = e3.split("-");
859
- if (!i3 && u2.length > 1)
860
- return t2(u2[0]);
861
- } else {
862
- var a2 = e3.name;
863
- D[a2] = e3, i3 = a2;
864
- }
865
- return !r2 && i3 && (g = i3), i3 || !r2 && g;
866
- }, w = function(t2, e3) {
867
- if (p(t2))
868
- return t2.clone();
869
- var n2 = typeof e3 == "object" ? e3 : {};
870
- return n2.date = t2, n2.args = arguments, new _(n2);
871
- }, O = v;
872
- O.l = S, O.i = p, O.w = function(t2, e3) {
873
- return w(t2, { locale: e3.$L, utc: e3.$u, x: e3.$x, $offset: e3.$offset });
874
- };
875
- var _ = function() {
876
- function M2(t2) {
877
- this.$L = S(t2.locale, null, !0), this.parse(t2);
878
- }
879
- var m2 = M2.prototype;
880
- return m2.parse = function(t2) {
881
- this.$d = function(t3) {
882
- var e3 = t3.date, n2 = t3.utc;
883
- if (e3 === null)
884
- return new Date(NaN);
885
- if (O.u(e3))
886
- return new Date();
887
- if (e3 instanceof Date)
888
- return new Date(e3);
889
- if (typeof e3 == "string" && !/Z$/i.test(e3)) {
890
- var r2 = e3.match($);
891
- if (r2) {
892
- var i3 = r2[2] - 1 || 0, s2 = (r2[7] || "0").substring(0, 3);
893
- return n2 ? new Date(Date.UTC(r2[1], i3, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s2)) : new Date(r2[1], i3, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s2);
894
- }
895
- }
896
- return new Date(e3);
897
- }(t2), this.$x = t2.x || {}, this.init();
898
- }, m2.init = function() {
899
- var t2 = this.$d;
900
- this.$y = t2.getFullYear(), this.$M = t2.getMonth(), this.$D = t2.getDate(), this.$W = t2.getDay(), this.$H = t2.getHours(), this.$m = t2.getMinutes(), this.$s = t2.getSeconds(), this.$ms = t2.getMilliseconds();
901
- }, m2.$utils = function() {
902
- return O;
903
- }, m2.isValid = function() {
904
- return this.$d.toString() !== l;
905
- }, m2.isSame = function(t2, e3) {
906
- var n2 = w(t2);
907
- return this.startOf(e3) <= n2 && n2 <= this.endOf(e3);
908
- }, m2.isAfter = function(t2, e3) {
909
- return w(t2) < this.startOf(e3);
910
- }, m2.isBefore = function(t2, e3) {
911
- return this.endOf(e3) < w(t2);
912
- }, m2.$g = function(t2, e3, n2) {
913
- return O.u(t2) ? this[e3] : this.set(n2, t2);
914
- }, m2.unix = function() {
915
- return Math.floor(this.valueOf() / 1e3);
916
- }, m2.valueOf = function() {
917
- return this.$d.getTime();
918
- }, m2.startOf = function(t2, e3) {
919
- var n2 = this, r2 = !!O.u(e3) || e3, h2 = O.p(t2), l2 = function(t3, e4) {
920
- var i3 = O.w(n2.$u ? Date.UTC(n2.$y, e4, t3) : new Date(n2.$y, e4, t3), n2);
921
- return r2 ? i3 : i3.endOf(a);
922
- }, $2 = function(t3, e4) {
923
- return O.w(n2.toDate()[t3].apply(n2.toDate("s"), (r2 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e4)), n2);
924
- }, y2 = this.$W, M3 = this.$M, m3 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
925
- switch (h2) {
926
- case c:
927
- return r2 ? l2(1, 0) : l2(31, 11);
928
- case f:
929
- return r2 ? l2(1, M3) : l2(0, M3 + 1);
930
- case o:
931
- var g2 = this.$locale().weekStart || 0, D2 = (y2 < g2 ? y2 + 7 : y2) - g2;
932
- return l2(r2 ? m3 - D2 : m3 + (6 - D2), M3);
933
- case a:
934
- case d:
935
- return $2(v2 + "Hours", 0);
936
- case u:
937
- return $2(v2 + "Minutes", 1);
938
- case s:
939
- return $2(v2 + "Seconds", 2);
940
- case i2:
941
- return $2(v2 + "Milliseconds", 3);
942
- default:
943
- return this.clone();
944
- }
945
- }, m2.endOf = function(t2) {
946
- return this.startOf(t2, !1);
947
- }, m2.$set = function(t2, e3) {
948
- var n2, o2 = O.p(t2), h2 = "set" + (this.$u ? "UTC" : ""), l2 = (n2 = {}, n2[a] = h2 + "Date", n2[d] = h2 + "Date", n2[f] = h2 + "Month", n2[c] = h2 + "FullYear", n2[u] = h2 + "Hours", n2[s] = h2 + "Minutes", n2[i2] = h2 + "Seconds", n2[r] = h2 + "Milliseconds", n2)[o2], $2 = o2 === a ? this.$D + (e3 - this.$W) : e3;
949
- if (o2 === f || o2 === c) {
950
- var y2 = this.clone().set(d, 1);
951
- y2.$d[l2]($2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
952
- } else
953
- l2 && this.$d[l2]($2);
954
- return this.init(), this;
955
- }, m2.set = function(t2, e3) {
956
- return this.clone().$set(t2, e3);
957
- }, m2.get = function(t2) {
958
- return this[O.p(t2)]();
959
- }, m2.add = function(r2, h2) {
960
- var d2, l2 = this;
961
- r2 = Number(r2);
962
- var $2 = O.p(h2), y2 = function(t2) {
963
- var e3 = w(l2);
964
- return O.w(e3.date(e3.date() + Math.round(t2 * r2)), l2);
965
- };
966
- if ($2 === f)
967
- return this.set(f, this.$M + r2);
968
- if ($2 === c)
969
- return this.set(c, this.$y + r2);
970
- if ($2 === a)
971
- return y2(1);
972
- if ($2 === o)
973
- return y2(7);
974
- var M3 = (d2 = {}, d2[s] = e2, d2[u] = n, d2[i2] = t, d2)[$2] || 1, m3 = this.$d.getTime() + r2 * M3;
975
- return O.w(m3, this);
976
- }, m2.subtract = function(t2, e3) {
977
- return this.add(-1 * t2, e3);
978
- }, m2.format = function(t2) {
979
- var e3 = this, n2 = this.$locale();
980
- if (!this.isValid())
981
- return n2.invalidDate || l;
982
- var r2 = t2 || "YYYY-MM-DDTHH:mm:ssZ", i3 = O.z(this), s2 = this.$H, u2 = this.$m, a2 = this.$M, o2 = n2.weekdays, f2 = n2.months, h2 = function(t3, n3, i4, s3) {
983
- return t3 && (t3[n3] || t3(e3, r2)) || i4[n3].slice(0, s3);
984
- }, c2 = function(t3) {
985
- return O.s(s2 % 12 || 12, t3, "0");
986
- }, d2 = n2.meridiem || function(t3, e4, n3) {
987
- var r3 = t3 < 12 ? "AM" : "PM";
988
- return n3 ? r3.toLowerCase() : r3;
989
- }, $2 = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: a2 + 1, MM: O.s(a2 + 1, 2, "0"), MMM: h2(n2.monthsShort, a2, f2, 3), MMMM: h2(f2, a2), D: this.$D, DD: O.s(this.$D, 2, "0"), d: String(this.$W), dd: h2(n2.weekdaysMin, this.$W, o2, 2), ddd: h2(n2.weekdaysShort, this.$W, o2, 3), dddd: o2[this.$W], H: String(s2), HH: O.s(s2, 2, "0"), h: c2(1), hh: c2(2), a: d2(s2, u2, !0), A: d2(s2, u2, !1), m: String(u2), mm: O.s(u2, 2, "0"), s: String(this.$s), ss: O.s(this.$s, 2, "0"), SSS: O.s(this.$ms, 3, "0"), Z: i3 };
990
- return r2.replace(y, function(t3, e4) {
991
- return e4 || $2[t3] || i3.replace(":", "");
992
- });
993
- }, m2.utcOffset = function() {
994
- return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
995
- }, m2.diff = function(r2, d2, l2) {
996
- var $2, y2 = O.p(d2), M3 = w(r2), m3 = (M3.utcOffset() - this.utcOffset()) * e2, v2 = this - M3, g2 = O.m(this, M3);
997
- return g2 = ($2 = {}, $2[c] = g2 / 12, $2[f] = g2, $2[h] = g2 / 3, $2[o] = (v2 - m3) / 6048e5, $2[a] = (v2 - m3) / 864e5, $2[u] = v2 / n, $2[s] = v2 / e2, $2[i2] = v2 / t, $2)[y2] || v2, l2 ? g2 : O.a(g2);
998
- }, m2.daysInMonth = function() {
999
- return this.endOf(f).$D;
1000
- }, m2.$locale = function() {
1001
- return D[this.$L];
1002
- }, m2.locale = function(t2, e3) {
1003
- if (!t2)
1004
- return this.$L;
1005
- var n2 = this.clone(), r2 = S(t2, e3, !0);
1006
- return r2 && (n2.$L = r2), n2;
1007
- }, m2.clone = function() {
1008
- return O.w(this.$d, this);
1009
- }, m2.toDate = function() {
1010
- return new Date(this.valueOf());
1011
- }, m2.toJSON = function() {
1012
- return this.isValid() ? this.toISOString() : null;
1013
- }, m2.toISOString = function() {
1014
- return this.$d.toISOString();
1015
- }, m2.toString = function() {
1016
- return this.$d.toUTCString();
1017
- }, M2;
1018
- }(), T = _.prototype;
1019
- return w.prototype = T, [["$ms", r], ["$s", i2], ["$m", s], ["$H", u], ["$W", a], ["$M", f], ["$y", c], ["$D", d]].forEach(function(t2) {
1020
- T[t2[1]] = function(e3) {
1021
- return this.$g(e3, t2[0], t2[1]);
1022
- };
1023
- }), w.extend = function(t2, e3) {
1024
- return t2.$i || (t2(e3, _, w), t2.$i = !0), w;
1025
- }, w.locale = S, w.isDayjs = p, w.unix = function(t2) {
1026
- return w(1e3 * t2);
1027
- }, w.en = D[g], w.Ls = D, w.p = {}, w;
1028
- });
1029
- })(dayjs_min);
1030
- const dayjs = dayjs_minExports;
1031
- var zhCnExports = {}, zhCn = {
1032
- get exports() {
1033
- return zhCnExports;
1034
- },
1035
- set exports(v) {
1036
- zhCnExports = v;
1037
- }
1038
- };
1039
- (function(module, exports) {
1040
- (function(e2, _) {
1041
- module.exports = _(dayjs_minExports);
1042
- })(commonjsGlobal, function(e2) {
1043
- function _(e3) {
1044
- return e3 && typeof e3 == "object" && "default" in e3 ? e3 : { default: e3 };
1045
- }
1046
- var t = _(e2), d = { name: "zh-cn", weekdays: "星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"), weekdaysShort: "周日_周一_周二_周三_周四_周五_周六".split("_"), weekdaysMin: "日_一_二_三_四_五_六".split("_"), months: "一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"), monthsShort: "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"), ordinal: function(e3, _2) {
1047
- return _2 === "W" ? e3 + "周" : e3 + "日";
1048
- }, weekStart: 1, yearStart: 4, formats: { LT: "HH:mm", LTS: "HH:mm:ss", L: "YYYY/MM/DD", LL: "YYYY年M月D日", LLL: "YYYY年M月D日Ah点mm分", LLLL: "YYYY年M月D日ddddAh点mm分", l: "YYYY/M/D", ll: "YYYY年M月D日", lll: "YYYY年M月D日 HH:mm", llll: "YYYY年M月D日dddd HH:mm" }, relativeTime: { future: "%s内", past: "%s前", s: "几秒", m: "1 分钟", mm: "%d 分钟", h: "1 小时", hh: "%d 小时", d: "1 天", dd: "%d 天", M: "1 个月", MM: "%d 个月", y: "1 年", yy: "%d 年" }, meridiem: function(e3, _2) {
1049
- var t2 = 100 * e3 + _2;
1050
- return t2 < 600 ? "凌晨" : t2 < 900 ? "早上" : t2 < 1100 ? "上午" : t2 < 1300 ? "中午" : t2 < 1800 ? "下午" : "晚上";
1051
- } };
1052
- return t.default.locale(d, null, !0), d;
1053
- });
1054
- })(zhCn);
1055
- dayjs.locale("zh-cn");
1056
- const toDate = (date) => dayjs(date).toDate(), formatDate = (date, pattern = "YYYY-MM-DD HH:mm:ss") => date ? dayjs(date).format(pattern) : "", KEY_COMPONENT_NAME = "fy-", DIC_PROPS = {
818
+ }(), KEY_COMPONENT_NAME = "fy-", DIC_PROPS = {
1057
819
  rowKey: "id",
1058
820
  rowParentKey: "parentId",
1059
821
  nodeKey: "id",
@@ -2062,7 +1824,7 @@ const ChunkFileUploaderDrop_vue_vue_type_style_index_0_lang = "", __vue2_script$
2062
1824
  };
2063
1825
  },
2064
1826
  mounted() {
2065
- return __async2(this, null, function* () {
1827
+ return __async(this, null, function* () {
2066
1828
  yield this.$nextTick();
2067
1829
  const dropEle = this.$refs.drop, uploader = this.uploader.uploader;
2068
1830
  uploader.assignDrop(dropEle), uploader.on("dragenter", this.onDragEnter), uploader.on("dragleave", this.onDragLeave), uploader.on("drop", this.onDrop);
@@ -2901,7 +2663,7 @@ const __vue2_script$37 = {
2901
2663
  visible: {
2902
2664
  immediate: !0,
2903
2665
  handler(newVal) {
2904
- return __async2(this, null, function* () {
2666
+ return __async(this, null, function* () {
2905
2667
  newVal ? (yield this.$nextTick(), this.$refs.dropdown.referenceElm = this.anchor) : this.$refs.dropdown && this.$refs.dropdown.doDestroy(!0), this.showPicker = newVal;
2906
2668
  });
2907
2669
  }
@@ -4096,7 +3858,7 @@ const Comment = /* @__PURE__ */ function() {
4096
3858
  return __component__$31.exports;
4097
3859
  }();
4098
3860
  function onClick(e2, props2, listeners) {
4099
- return __async2(this, null, function* () {
3861
+ return __async(this, null, function* () {
4100
3862
  const { stop, prevent, message, loadable, loadingText, confirmable, confirmType, confirmText } = props2;
4101
3863
  stop && e2.stopPropagation(), prevent && e2.preventDefault();
4102
3864
  const { before, click, cancel, after } = listeners;
@@ -5900,104 +5662,7 @@ function __vue2_injectStyles$2M(context) {
5900
5662
  }
5901
5663
  const DataRotate = /* @__PURE__ */ function() {
5902
5664
  return __component__$2M.exports;
5903
- }(), nodeList = /* @__PURE__ */ new Map();
5904
- let startClick;
5905
- document.addEventListener("mousedown", (e2) => startClick = e2);
5906
- document.addEventListener("mouseup", (e2) => {
5907
- for (const { documentHandler } of nodeList.values())
5908
- documentHandler(e2, startClick);
5909
- });
5910
- function bindDrag$1(el, binding) {
5911
- var _a, _b;
5912
- const dialogHeaderEl = el.querySelector(".el-dialog__header"), dragDom = el.querySelector(".el-dialog");
5913
- dialogHeaderEl && (binding.arg ? dialogHeaderEl.style.cssText += ";cursor:default;" : dialogHeaderEl.style.cssText += ";cursor:move;", drag(dragDom, dialogHeaderEl, hasOwn(binding.value, "limit") ? (_a = binding.value) == null ? void 0 : _a.limit : !0, { onMove: (_b = binding.value) == null ? void 0 : _b.onMove }));
5914
- }
5915
- const dialogDrag$1 = {
5916
- bind: (el, binding) => bindDrag$1(el, binding),
5917
- update: (el, binding) => bindDrag$1(el, binding)
5918
- };
5919
- var __async = (__this, __arguments, generator) => new Promise((resolve2, reject2) => {
5920
- var fulfilled = (value2) => {
5921
- try {
5922
- step(generator.next(value2));
5923
- } catch (e2) {
5924
- reject2(e2);
5925
- }
5926
- }, rejected = (value2) => {
5927
- try {
5928
- step(generator.throw(value2));
5929
- } catch (e2) {
5930
- reject2(e2);
5931
- }
5932
- }, step = (x) => x.done ? resolve2(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
5933
- step((generator = generator.apply(__this, __arguments)).next());
5934
- });
5935
- const dialog = {
5936
- directives: {
5937
- dialogDrag: dialogDrag$1,
5938
- alignCenter: {
5939
- inserted(el, binding, vNode) {
5940
- return __async(this, null, function* () {
5941
- yield vNode.componentInstance.$nextTick();
5942
- const dialogHeight = getComputedHeight(vNode.componentInstance.$refs.dialog), availableHeight = window.document.body.offsetHeight - dialogHeight;
5943
- vNode.componentInstance.$refs.dialog.style.marginTop = `${availableHeight / 2}px`;
5944
- });
5945
- }
5946
- }
5947
- },
5948
- props: {
5949
- visible: {
5950
- type: Boolean,
5951
- default: !1
5952
- },
5953
- closeOnClickModal: Boolean,
5954
- reservePositionOnClose: {
5955
- type: Boolean,
5956
- default: !0
5957
- }
5958
- },
5959
- data() {
5960
- return {
5961
- show: !1,
5962
- fullScreen: !1
5963
- };
5964
- },
5965
- methods: {
5966
- closed() {
5967
- if (!this.reservePositionOnClose && this.$refs.dialog) {
5968
- const { dialog: dialog2 } = this.$refs.dialog.$refs;
5969
- dialog2.style.top = "unset", dialog2.style.left = "unset";
5970
- }
5971
- this.exitFullScreen(), this.$emit("closed");
5972
- },
5973
- close() {
5974
- this.show = !1;
5975
- },
5976
- toggleFullScreen() {
5977
- this.fullScreen = !this.fullScreen;
5978
- },
5979
- enterFullScreen() {
5980
- this.fullScreen = !0;
5981
- },
5982
- exitFullScreen() {
5983
- this.fullScreen = !1;
5984
- }
5985
- },
5986
- watch: {
5987
- visible: {
5988
- immediate: !0,
5989
- handler(newVal) {
5990
- this.show = newVal;
5991
- }
5992
- },
5993
- show(newVal) {
5994
- newVal !== this.visible && this.$emit("update:visible", newVal), newVal || this.$emit("close");
5995
- }
5996
- },
5997
- beforeDestroy() {
5998
- this.show && this.close();
5999
- }
6000
- }, util = "", index$2 = "", getClass = (customClass, fixedClass) => isPlainObject(customClass) || isString(customClass) ? [fixedClass, customClass] : isArray(customClass) ? [fixedClass, ...customClass] : [fixedClass];
5665
+ }(), util = "", index$1 = "", getClass = (customClass, fixedClass) => isPlainObject(customClass) || isString(customClass) ? [fixedClass, customClass] : isArray(customClass) ? [fixedClass, ...customClass] : [fixedClass];
6001
5666
  function getInternetExplorerVersion() {
6002
5667
  const ua = window.navigator.userAgent, msie = ua.indexOf("MSIE ");
6003
5668
  if (msie > 0)
@@ -7743,305 +7408,6 @@ function __vue2_injectStyles$2C(context) {
7743
7408
  const EditableProgress = /* @__PURE__ */ function() {
7744
7409
  return __component__$2C.exports;
7745
7410
  }();
7746
- var MapShim = function() {
7747
- if (typeof Map != "undefined")
7748
- return Map;
7749
- function getIndex(arr, key2) {
7750
- var result2 = -1;
7751
- return arr.some(function(entry, index2) {
7752
- return entry[0] === key2 ? (result2 = index2, !0) : !1;
7753
- }), result2;
7754
- }
7755
- return (
7756
- /** @class */
7757
- function() {
7758
- function class_1() {
7759
- this.__entries__ = [];
7760
- }
7761
- return Object.defineProperty(class_1.prototype, "size", {
7762
- /**
7763
- * @returns {boolean}
7764
- */
7765
- get: function() {
7766
- return this.__entries__.length;
7767
- },
7768
- enumerable: !0,
7769
- configurable: !0
7770
- }), class_1.prototype.get = function(key2) {
7771
- var index2 = getIndex(this.__entries__, key2), entry = this.__entries__[index2];
7772
- return entry && entry[1];
7773
- }, class_1.prototype.set = function(key2, value2) {
7774
- var index2 = getIndex(this.__entries__, key2);
7775
- ~index2 ? this.__entries__[index2][1] = value2 : this.__entries__.push([key2, value2]);
7776
- }, class_1.prototype.delete = function(key2) {
7777
- var entries = this.__entries__, index2 = getIndex(entries, key2);
7778
- ~index2 && entries.splice(index2, 1);
7779
- }, class_1.prototype.has = function(key2) {
7780
- return !!~getIndex(this.__entries__, key2);
7781
- }, class_1.prototype.clear = function() {
7782
- this.__entries__.splice(0);
7783
- }, class_1.prototype.forEach = function(callback, ctx2) {
7784
- ctx2 === void 0 && (ctx2 = null);
7785
- for (var _i = 0, _a = this.__entries__; _i < _a.length; _i++) {
7786
- var entry = _a[_i];
7787
- callback.call(ctx2, entry[1], entry[0]);
7788
- }
7789
- }, class_1;
7790
- }()
7791
- );
7792
- }(), isBrowser = typeof window != "undefined" && typeof document != "undefined" && window.document === document, global$1 = function() {
7793
- return typeof global != "undefined" && global.Math === Math ? global : typeof self != "undefined" && self.Math === Math ? self : typeof window != "undefined" && window.Math === Math ? window : Function("return this")();
7794
- }(), requestAnimationFrame$1 = function() {
7795
- return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(global$1) : function(callback) {
7796
- return setTimeout(function() {
7797
- return callback(Date.now());
7798
- }, 1e3 / 60);
7799
- };
7800
- }(), trailingTimeout = 2;
7801
- function throttle(callback, delay2) {
7802
- var leadingCall = !1, trailingCall = !1, lastCallTime = 0;
7803
- function resolvePending() {
7804
- leadingCall && (leadingCall = !1, callback()), trailingCall && proxy();
7805
- }
7806
- function timeoutCallback() {
7807
- requestAnimationFrame$1(resolvePending);
7808
- }
7809
- function proxy() {
7810
- var timeStamp = Date.now();
7811
- if (leadingCall) {
7812
- if (timeStamp - lastCallTime < trailingTimeout)
7813
- return;
7814
- trailingCall = !0;
7815
- } else
7816
- leadingCall = !0, trailingCall = !1, setTimeout(timeoutCallback, delay2);
7817
- lastCallTime = timeStamp;
7818
- }
7819
- return proxy;
7820
- }
7821
- var REFRESH_DELAY = 20, transitionKeys = ["top", "right", "bottom", "left", "width", "height", "size", "weight"], mutationObserverSupported = typeof MutationObserver != "undefined", ResizeObserverController = (
7822
- /** @class */
7823
- function() {
7824
- function ResizeObserverController2() {
7825
- this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = throttle(this.refresh.bind(this), REFRESH_DELAY);
7826
- }
7827
- return ResizeObserverController2.prototype.addObserver = function(observer) {
7828
- ~this.observers_.indexOf(observer) || this.observers_.push(observer), this.connected_ || this.connect_();
7829
- }, ResizeObserverController2.prototype.removeObserver = function(observer) {
7830
- var observers2 = this.observers_, index2 = observers2.indexOf(observer);
7831
- ~index2 && observers2.splice(index2, 1), !observers2.length && this.connected_ && this.disconnect_();
7832
- }, ResizeObserverController2.prototype.refresh = function() {
7833
- var changesDetected = this.updateObservers_();
7834
- changesDetected && this.refresh();
7835
- }, ResizeObserverController2.prototype.updateObservers_ = function() {
7836
- var activeObservers = this.observers_.filter(function(observer) {
7837
- return observer.gatherActive(), observer.hasActive();
7838
- });
7839
- return activeObservers.forEach(function(observer) {
7840
- return observer.broadcastActive();
7841
- }), activeObservers.length > 0;
7842
- }, ResizeObserverController2.prototype.connect_ = function() {
7843
- !isBrowser || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), mutationObserverSupported ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
7844
- attributes: !0,
7845
- childList: !0,
7846
- characterData: !0,
7847
- subtree: !0
7848
- })) : (document.addEventListener("DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0), this.connected_ = !0);
7849
- }, ResizeObserverController2.prototype.disconnect_ = function() {
7850
- !isBrowser || !this.connected_ || (document.removeEventListener("transitionend", this.onTransitionEnd_), window.removeEventListener("resize", this.refresh), this.mutationsObserver_ && this.mutationsObserver_.disconnect(), this.mutationEventsAdded_ && document.removeEventListener("DOMSubtreeModified", this.refresh), this.mutationsObserver_ = null, this.mutationEventsAdded_ = !1, this.connected_ = !1);
7851
- }, ResizeObserverController2.prototype.onTransitionEnd_ = function(_a) {
7852
- var _b = _a.propertyName, propertyName = _b === void 0 ? "" : _b, isReflowProperty = transitionKeys.some(function(key2) {
7853
- return !!~propertyName.indexOf(key2);
7854
- });
7855
- isReflowProperty && this.refresh();
7856
- }, ResizeObserverController2.getInstance = function() {
7857
- return this.instance_ || (this.instance_ = new ResizeObserverController2()), this.instance_;
7858
- }, ResizeObserverController2.instance_ = null, ResizeObserverController2;
7859
- }()
7860
- ), defineConfigurable = function(target, props2) {
7861
- for (var _i = 0, _a = Object.keys(props2); _i < _a.length; _i++) {
7862
- var key2 = _a[_i];
7863
- Object.defineProperty(target, key2, {
7864
- value: props2[key2],
7865
- enumerable: !1,
7866
- writable: !1,
7867
- configurable: !0
7868
- });
7869
- }
7870
- return target;
7871
- }, getWindowOf = function(target) {
7872
- var ownerGlobal = target && target.ownerDocument && target.ownerDocument.defaultView;
7873
- return ownerGlobal || global$1;
7874
- }, emptyRect = createRectInit(0, 0, 0, 0);
7875
- function toFloat(value2) {
7876
- return parseFloat(value2) || 0;
7877
- }
7878
- function getBordersSize(styles) {
7879
- for (var positions = [], _i = 1; _i < arguments.length; _i++)
7880
- positions[_i - 1] = arguments[_i];
7881
- return positions.reduce(function(size2, position) {
7882
- var value2 = styles["border-" + position + "-width"];
7883
- return size2 + toFloat(value2);
7884
- }, 0);
7885
- }
7886
- function getPaddings(styles) {
7887
- for (var positions = ["top", "right", "bottom", "left"], paddings = {}, _i = 0, positions_1 = positions; _i < positions_1.length; _i++) {
7888
- var position = positions_1[_i], value2 = styles["padding-" + position];
7889
- paddings[position] = toFloat(value2);
7890
- }
7891
- return paddings;
7892
- }
7893
- function getSVGContentRect(target) {
7894
- var bbox = target.getBBox();
7895
- return createRectInit(0, 0, bbox.width, bbox.height);
7896
- }
7897
- function getHTMLElementContentRect(target) {
7898
- var clientWidth = target.clientWidth, clientHeight = target.clientHeight;
7899
- if (!clientWidth && !clientHeight)
7900
- return emptyRect;
7901
- var styles = getWindowOf(target).getComputedStyle(target), paddings = getPaddings(styles), horizPad = paddings.left + paddings.right, vertPad = paddings.top + paddings.bottom, width = toFloat(styles.width), height = toFloat(styles.height);
7902
- if (styles.boxSizing === "border-box" && (Math.round(width + horizPad) !== clientWidth && (width -= getBordersSize(styles, "left", "right") + horizPad), Math.round(height + vertPad) !== clientHeight && (height -= getBordersSize(styles, "top", "bottom") + vertPad)), !isDocumentElement(target)) {
7903
- var vertScrollbar = Math.round(width + horizPad) - clientWidth, horizScrollbar = Math.round(height + vertPad) - clientHeight;
7904
- Math.abs(vertScrollbar) !== 1 && (width -= vertScrollbar), Math.abs(horizScrollbar) !== 1 && (height -= horizScrollbar);
7905
- }
7906
- return createRectInit(paddings.left, paddings.top, width, height);
7907
- }
7908
- var isSVGGraphicsElement = function() {
7909
- return typeof SVGGraphicsElement != "undefined" ? function(target) {
7910
- return target instanceof getWindowOf(target).SVGGraphicsElement;
7911
- } : function(target) {
7912
- return target instanceof getWindowOf(target).SVGElement && typeof target.getBBox == "function";
7913
- };
7914
- }();
7915
- function isDocumentElement(target) {
7916
- return target === getWindowOf(target).document.documentElement;
7917
- }
7918
- function getContentRect(target) {
7919
- return isBrowser ? isSVGGraphicsElement(target) ? getSVGContentRect(target) : getHTMLElementContentRect(target) : emptyRect;
7920
- }
7921
- function createReadOnlyRect(_a) {
7922
- var x = _a.x, y = _a.y, width = _a.width, height = _a.height, Constr = typeof DOMRectReadOnly != "undefined" ? DOMRectReadOnly : Object, rect = Object.create(Constr.prototype);
7923
- return defineConfigurable(rect, {
7924
- x,
7925
- y,
7926
- width,
7927
- height,
7928
- top: y,
7929
- right: x + width,
7930
- bottom: height + y,
7931
- left: x
7932
- }), rect;
7933
- }
7934
- function createRectInit(x, y, width, height) {
7935
- return { x, y, width, height };
7936
- }
7937
- var ResizeObservation = (
7938
- /** @class */
7939
- function() {
7940
- function ResizeObservation2(target) {
7941
- this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = createRectInit(0, 0, 0, 0), this.target = target;
7942
- }
7943
- return ResizeObservation2.prototype.isActive = function() {
7944
- var rect = getContentRect(this.target);
7945
- return this.contentRect_ = rect, rect.width !== this.broadcastWidth || rect.height !== this.broadcastHeight;
7946
- }, ResizeObservation2.prototype.broadcastRect = function() {
7947
- var rect = this.contentRect_;
7948
- return this.broadcastWidth = rect.width, this.broadcastHeight = rect.height, rect;
7949
- }, ResizeObservation2;
7950
- }()
7951
- ), ResizeObserverEntry = (
7952
- /** @class */
7953
- function() {
7954
- function ResizeObserverEntry2(target, rectInit) {
7955
- var contentRect = createReadOnlyRect(rectInit);
7956
- defineConfigurable(this, { target, contentRect });
7957
- }
7958
- return ResizeObserverEntry2;
7959
- }()
7960
- ), ResizeObserverSPI = (
7961
- /** @class */
7962
- function() {
7963
- function ResizeObserverSPI2(callback, controller, callbackCtx) {
7964
- if (this.activeObservations_ = [], this.observations_ = new MapShim(), typeof callback != "function")
7965
- throw new TypeError("The callback provided as parameter 1 is not a function.");
7966
- this.callback_ = callback, this.controller_ = controller, this.callbackCtx_ = callbackCtx;
7967
- }
7968
- return ResizeObserverSPI2.prototype.observe = function(target) {
7969
- if (!arguments.length)
7970
- throw new TypeError("1 argument required, but only 0 present.");
7971
- if (!(typeof Element == "undefined" || !(Element instanceof Object))) {
7972
- if (!(target instanceof getWindowOf(target).Element))
7973
- throw new TypeError('parameter 1 is not of type "Element".');
7974
- var observations = this.observations_;
7975
- observations.has(target) || (observations.set(target, new ResizeObservation(target)), this.controller_.addObserver(this), this.controller_.refresh());
7976
- }
7977
- }, ResizeObserverSPI2.prototype.unobserve = function(target) {
7978
- if (!arguments.length)
7979
- throw new TypeError("1 argument required, but only 0 present.");
7980
- if (!(typeof Element == "undefined" || !(Element instanceof Object))) {
7981
- if (!(target instanceof getWindowOf(target).Element))
7982
- throw new TypeError('parameter 1 is not of type "Element".');
7983
- var observations = this.observations_;
7984
- observations.has(target) && (observations.delete(target), observations.size || this.controller_.removeObserver(this));
7985
- }
7986
- }, ResizeObserverSPI2.prototype.disconnect = function() {
7987
- this.clearActive(), this.observations_.clear(), this.controller_.removeObserver(this);
7988
- }, ResizeObserverSPI2.prototype.gatherActive = function() {
7989
- var _this = this;
7990
- this.clearActive(), this.observations_.forEach(function(observation) {
7991
- observation.isActive() && _this.activeObservations_.push(observation);
7992
- });
7993
- }, ResizeObserverSPI2.prototype.broadcastActive = function() {
7994
- if (this.hasActive()) {
7995
- var ctx2 = this.callbackCtx_, entries = this.activeObservations_.map(function(observation) {
7996
- return new ResizeObserverEntry(observation.target, observation.broadcastRect());
7997
- });
7998
- this.callback_.call(ctx2, entries, ctx2), this.clearActive();
7999
- }
8000
- }, ResizeObserverSPI2.prototype.clearActive = function() {
8001
- this.activeObservations_.splice(0);
8002
- }, ResizeObserverSPI2.prototype.hasActive = function() {
8003
- return this.activeObservations_.length > 0;
8004
- }, ResizeObserverSPI2;
8005
- }()
8006
- ), observers = typeof WeakMap != "undefined" ? /* @__PURE__ */ new WeakMap() : new MapShim(), ResizeObserver$1 = (
8007
- /** @class */
8008
- function() {
8009
- function ResizeObserver2(callback) {
8010
- if (!(this instanceof ResizeObserver2))
8011
- throw new TypeError("Cannot call a class as a function.");
8012
- if (!arguments.length)
8013
- throw new TypeError("1 argument required, but only 0 present.");
8014
- var controller = ResizeObserverController.getInstance(), observer = new ResizeObserverSPI(callback, controller, this);
8015
- observers.set(this, observer);
8016
- }
8017
- return ResizeObserver2;
8018
- }()
8019
- );
8020
- [
8021
- "observe",
8022
- "unobserve",
8023
- "disconnect"
8024
- ].forEach(function(method) {
8025
- ResizeObserver$1.prototype[method] = function() {
8026
- var _a;
8027
- return (_a = observers.get(this))[method].apply(_a, arguments);
8028
- };
8029
- });
8030
- var index$1 = function() {
8031
- return typeof global$1.ResizeObserver != "undefined" ? global$1.ResizeObserver : ResizeObserver$1;
8032
- }();
8033
- const isServer = typeof window == "undefined", resizeHandler = (entries) => {
8034
- for (const entry of entries) {
8035
- const listeners = entry.target.__resizeListeners__ || [];
8036
- listeners.length && listeners.forEach((fn) => {
8037
- fn();
8038
- });
8039
- }
8040
- }, addResizeListener = (element, fn) => {
8041
- isServer || (element.__resizeListeners__ || (element.__resizeListeners__ = [], element.__ro__ = new index$1(resizeHandler), element.__ro__.observe(element)), element.__resizeListeners__.push(fn));
8042
- }, removeResizeListener = (element, fn) => {
8043
- !element || !element.__resizeListeners__ || (element.__resizeListeners__.splice(element.__resizeListeners__.indexOf(fn), 1), element.__resizeListeners__.length || element.__ro__.disconnect());
8044
- };
8045
7411
  var render$2p = function() {
8046
7412
  var _vm = this, _h = _vm.$createElement, _c = _vm._self._c || _h;
8047
7413
  return _c("div", {
@@ -8541,7 +7907,7 @@ const EditableTree_vue_vue_type_style_index_0_lang = "", __vue2_script$2B = {
8541
7907
  isVerticalScrollbarVisible(this.$refs.treeWrapper) ? this.right = 4 + scrollbarWidth : this.right = 4;
8542
7908
  },
8543
7909
  showContextMenu(event2, data2, node) {
8544
- return __async2(this, null, function* () {
7910
+ return __async(this, null, function* () {
8545
7911
  data2.contextmenu === !1 || data2.id === -1 || data2.id === 0 || data2.edit === !0 || this.contextMenu && (this.curNode = node, this.curData = data2, this.showMenu = !0, this.$refs.tree.setCurrentKey(data2.id), yield this.$nextTick(), this.position = computePosition(event2, this.$refs.contextMenu), window.addEventListener("click", this.hideContextMenu));
8546
7912
  });
8547
7913
  },
@@ -8549,7 +7915,7 @@ const EditableTree_vue_vue_type_style_index_0_lang = "", __vue2_script$2B = {
8549
7915
  this.showMenu = !1, window.removeEventListener("click", this.hideContextMenu);
8550
7916
  },
8551
7917
  tryFetch() {
8552
- return __async2(this, null, function* () {
7918
+ return __async(this, null, function* () {
8553
7919
  var _a, _b;
8554
7920
  if (this.lazy === !1 && this.fetchApi) {
8555
7921
  const res = yield this.fetchApi((_b = (_a = this.rootNode) == null ? void 0 : _a.id) != null ? _b : -1, {});
@@ -8565,7 +7931,7 @@ const EditableTree_vue_vue_type_style_index_0_lang = "", __vue2_script$2B = {
8565
7931
  });
8566
7932
  },
8567
7933
  loadNode(node, resolve2) {
8568
- return __async2(this, null, function* () {
7934
+ return __async(this, null, function* () {
8569
7935
  var _a, _b, _c, _d;
8570
7936
  if (node.level === 0) {
8571
7937
  const res = yield this.fetchApi((_b = (_a = this.rootNode) == null ? void 0 : _a.id) != null ? _b : -1, node);
@@ -8599,10 +7965,10 @@ const EditableTree_vue_vue_type_style_index_0_lang = "", __vue2_script$2B = {
8599
7965
  this.editData && (isUndefined(this.editData.edit) ? this.$set(this.editData, "edit", !0) : this.editData.edit = !1);
8600
7966
  },
8601
7967
  editNode(node, data2) {
8602
- return __async2(this, null, function* () {
7968
+ return __async(this, null, function* () {
8603
7969
  !this.contextMenu || this.contextMenuIcon || this.contextMenuInline ? (this.clear(), this.editData = data2, this.text = data2[this.treeProps.label], isUndefined(data2.edit) ? this.$set(data2, "edit", !0) : data2.edit = !0, yield this.$nextTick(), this.$refs.labelTxt.focus()) : yield this.$prompt(`请输入新的${this.label}名:`, __spreadProps(__spreadValues({}, this.defaultOptions), {
8604
7970
  inputValue: data2[this.treeProps.label],
8605
- beforeClose: (action, instance, done) => __async2(this, null, function* () {
7971
+ beforeClose: (action, instance, done) => __async(this, null, function* () {
8606
7972
  if (action === "confirm") {
8607
7973
  try {
8608
7974
  instance.confirmButtonLoading = !0, instance.confirmButtonText = "处理中...", this.text = instance.inputValue, yield this.onConfirm(this.curNode, this.curData), done();
@@ -8617,9 +7983,9 @@ const EditableTree_vue_vue_type_style_index_0_lang = "", __vue2_script$2B = {
8617
7983
  });
8618
7984
  },
8619
7985
  appendRootNode() {
8620
- return __async2(this, null, function* () {
7986
+ return __async(this, null, function* () {
8621
7987
  this.text = "", !this.contextMenu || this.contextMenuIcon || this.contextMenuInline ? (this.clear(), this.createNewChild(void 0), this.$refs.tree.root.insertChild({ data: this.newChild }, void 0, !0), yield this.scrollIntoView(!0)) : yield this.$prompt(`请输入${this.label}名:`, __spreadProps(__spreadValues({}, this.defaultOptions), {
8622
- beforeClose: (action, instance, done) => __async2(this, null, function* () {
7988
+ beforeClose: (action, instance, done) => __async(this, null, function* () {
8623
7989
  if (action === "confirm") {
8624
7990
  try {
8625
7991
  this.createNewChild(-1), instance.confirmButtonLoading = !0, instance.confirmButtonText = "处理中...";
@@ -8638,9 +8004,9 @@ const EditableTree_vue_vue_type_style_index_0_lang = "", __vue2_script$2B = {
8638
8004
  appendChildNode(node) {
8639
8005
  this.text = "";
8640
8006
  const expanded = node.expanded;
8641
- node.expand(() => __async2(this, null, function* () {
8007
+ node.expand(() => __async(this, null, function* () {
8642
8008
  !this.contextMenu || this.contextMenuIcon || this.contextMenuInline ? (this.clear(), this.createNewChild(node.data.id), this.$refs.tree.append(this.newChild, node), yield this.scrollIntoView(expanded)) : yield this.$prompt(`请输入${this.label}名:`, __spreadProps(__spreadValues({}, this.defaultOptions), {
8643
- beforeClose: (action, instance, done) => __async2(this, null, function* () {
8009
+ beforeClose: (action, instance, done) => __async(this, null, function* () {
8644
8010
  if (action === "confirm") {
8645
8011
  try {
8646
8012
  this.createNewChild(node.data.id), instance.confirmButtonLoading = !0, instance.confirmButtonText = "处理中...";
@@ -8659,7 +8025,7 @@ const EditableTree_vue_vue_type_style_index_0_lang = "", __vue2_script$2B = {
8659
8025
  appendChildNodeWithData(node, parentId, label) {
8660
8026
  this.text = "";
8661
8027
  const expanded = node.expanded;
8662
- node.expand(() => __async2(this, null, function* () {
8028
+ node.expand(() => __async(this, null, function* () {
8663
8029
  this.clear(), this.newChild = {
8664
8030
  id: -1,
8665
8031
  parentId,
@@ -8674,20 +8040,20 @@ const EditableTree_vue_vue_type_style_index_0_lang = "", __vue2_script$2B = {
8674
8040
  node.parent && node.parent.level !== 0 ? this.appendChildNode(node.parent) : this.appendRootNode();
8675
8041
  },
8676
8042
  addRootNode(data2) {
8677
- return __async2(this, null, function* () {
8043
+ return __async(this, null, function* () {
8678
8044
  this.$refs.tree.remove(data2), yield this.$nextTick(), this.$refs.tree.root.insertChild({ data: data2 }, void 0, !0);
8679
8045
  });
8680
8046
  },
8681
8047
  addChildNode(data2) {
8682
- return __async2(this, null, function* () {
8683
- this.curNode && this.curNode.level !== 0 ? this.curNode.expand(() => __async2(this, null, function* () {
8048
+ return __async(this, null, function* () {
8049
+ this.curNode && this.curNode.level !== 0 ? this.curNode.expand(() => __async(this, null, function* () {
8684
8050
  this.$refs.tree.remove(data2), yield this.$nextTick(), this.$refs.tree.append(data2, this.curNode);
8685
8051
  })) : yield this.addRootNode(data2);
8686
8052
  });
8687
8053
  },
8688
8054
  addPeerNode(data2) {
8689
- return __async2(this, null, function* () {
8690
- this.curNode && this.curNode.parent && this.curNode.parent.level !== 0 ? this.curNode.parent.expand(() => __async2(this, null, function* () {
8055
+ return __async(this, null, function* () {
8056
+ this.curNode && this.curNode.parent && this.curNode.parent.level !== 0 ? this.curNode.parent.expand(() => __async(this, null, function* () {
8691
8057
  this.$refs.tree.remove(data2), yield this.$nextTick(), this.$refs.tree.append(data2, this.curNode.parent);
8692
8058
  })) : yield this.addRootNode(data2);
8693
8059
  });
@@ -8710,7 +8076,7 @@ const EditableTree_vue_vue_type_style_index_0_lang = "", __vue2_script$2B = {
8710
8076
  }, this.$emit("create-new-node", this.newChild);
8711
8077
  },
8712
8078
  removeNodeModal(node) {
8713
- return __async2(this, null, function* () {
8079
+ return __async(this, null, function* () {
8714
8080
  yield this.$confirm(
8715
8081
  `你确定要删除${this.label}[<span class="break-word" style="color: orange">${node.data[this.treeProps.label]}</span>]吗?`,
8716
8082
  "系统提示",
@@ -8722,7 +8088,7 @@ const EditableTree_vue_vue_type_style_index_0_lang = "", __vue2_script$2B = {
8722
8088
  closeOnClickModal: !1,
8723
8089
  confirmButtonClass: "el-button--danger",
8724
8090
  cancelButtonClass: "el-button--primary is-plain",
8725
- beforeClose: (action, instance, done) => __async2(this, null, function* () {
8091
+ beforeClose: (action, instance, done) => __async(this, null, function* () {
8726
8092
  if (action === "confirm") {
8727
8093
  try {
8728
8094
  instance.confirmButtonLoading = !0, instance.confirmButtonText = "删除...";
@@ -8739,7 +8105,7 @@ const EditableTree_vue_vue_type_style_index_0_lang = "", __vue2_script$2B = {
8739
8105
  });
8740
8106
  },
8741
8107
  removeNode(node) {
8742
- return __async2(this, null, function* () {
8108
+ return __async(this, null, function* () {
8743
8109
  try {
8744
8110
  const parentNode = node.parent;
8745
8111
  if (this.deleteApi) {
@@ -8752,7 +8118,7 @@ const EditableTree_vue_vue_type_style_index_0_lang = "", __vue2_script$2B = {
8752
8118
  });
8753
8119
  },
8754
8120
  onConfirm(node, data2) {
8755
- return __async2(this, null, function* () {
8121
+ return __async(this, null, function* () {
8756
8122
  if (data2[this.treeProps.label] === this.text || !isNotEmpty(this.text)) {
8757
8123
  this.clear();
8758
8124
  return;
@@ -8780,14 +8146,14 @@ const EditableTree_vue_vue_type_style_index_0_lang = "", __vue2_script$2B = {
8780
8146
  return this.$refs.tree.getCurrentNode();
8781
8147
  },
8782
8148
  locateView() {
8783
- return __async2(this, null, function* () {
8149
+ return __async(this, null, function* () {
8784
8150
  yield this.$nextTick();
8785
8151
  const el = this.$el.querySelector(`[data-id="${this.newChild.id}"]`);
8786
8152
  el && el.scrollIntoView();
8787
8153
  });
8788
8154
  },
8789
8155
  scrollIntoView(expanded) {
8790
- return __async2(this, null, function* () {
8156
+ return __async(this, null, function* () {
8791
8157
  var _a, _b;
8792
8158
  yield this.$nextTick(), expanded || (yield delay(300)), (_b = (_a = this.$refs) == null ? void 0 : _a.labelTxt) == null || _b.focus();
8793
8159
  });
@@ -8827,7 +8193,7 @@ const EditableTree_vue_vue_type_style_index_0_lang = "", __vue2_script$2B = {
8827
8193
  node.store.registerNode(node), delete node.store.nodesMap[-1];
8828
8194
  },
8829
8195
  reloadTree() {
8830
- return __async2(this, null, function* () {
8196
+ return __async(this, null, function* () {
8831
8197
  this.lazy ? this.treeKey = Date.now() : yield this.tryFetch();
8832
8198
  });
8833
8199
  }
@@ -9051,15 +8417,6 @@ function __vue2_injectStyles$2z(context) {
9051
8417
  const EgdCollapseItem = /* @__PURE__ */ function() {
9052
8418
  return __component__$2z.exports;
9053
8419
  }();
9054
- function bindDrag(el, binding) {
9055
- var _a, _b;
9056
- const dialogHeaderEl = el.querySelector(".el-dialog__header"), dragDom = el.querySelector(".el-dialog");
9057
- dialogHeaderEl && (binding.arg ? dialogHeaderEl.style.cssText += ";cursor:default;" : dialogHeaderEl.style.cssText += ";cursor:move;", drag(dragDom, dialogHeaderEl, hasOwn(binding.value, "limit") ? (_a = binding.value) == null ? void 0 : _a.limit : !0, { onMove: (_b = binding.value) == null ? void 0 : _b.onMove }));
9058
- }
9059
- const dialogDrag = {
9060
- bind: (el, binding) => bindDrag(el, binding),
9061
- update: (el, binding) => bindDrag(el, binding)
9062
- };
9063
8420
  var render$2m = function() {
9064
8421
  var _vm = this, _h = _vm.$createElement, _c = _vm._self._c || _h;
9065
8422
  return _c("Transition", {
@@ -10062,7 +9419,7 @@ const ZoomScrollModule = {
10062
9419
  const error2 = event2.error, warnings = event2.warnings;
10063
9420
  error2 ? this.$emit("error", error2) : this.$emit("shown", warnings), this.bpmnViewer.get("canvas").zoom("fit-viewport", "center");
10064
9421
  const eventBus = this.bpmnViewer.get("eventBus");
10065
- this.canvas = this.bpmnViewer.get("canvas"), eventBus.on("element.mousemove", (e2) => __async2(this, null, function* () {
9422
+ this.canvas = this.bpmnViewer.get("canvas"), eventBus.on("element.mousemove", (e2) => __async(this, null, function* () {
10066
9423
  e2.element.type === "bpmn:UserTask" && (this.element = e2.element, yield this.$nextTick(), this.$refs.popup.show(e2.originalEvent));
10067
9424
  })), eventBus.on("element.out", () => {
10068
9425
  this.$refs.popup.hide(), this.element = {};
@@ -11011,7 +10368,7 @@ const __vue2_script$2j = {
11011
10368
  (_a = this.$refs.form) == null || _a.clearValidate(fields2);
11012
10369
  },
11013
10370
  validate() {
11014
- return __async2(this, null, function* () {
10371
+ return __async(this, null, function* () {
11015
10372
  return this.$refs.form.validate();
11016
10373
  });
11017
10374
  },
@@ -11762,13 +11119,13 @@ const FormInputTime = /* @__PURE__ */ function() {
11762
11119
  }) : h("div", [(_c = $scopedSlots.default) == null ? void 0 : _c.call($scopedSlots)]);
11763
11120
  },
11764
11121
  clearValidate() {
11765
- return __async2(this, null, function* () {
11122
+ return __async(this, null, function* () {
11766
11123
  var _a, _b;
11767
11124
  yield this.$nextTick(), (_b = (_a = this.$refs.formItem).clearValidate) == null || _b.call(_a);
11768
11125
  });
11769
11126
  },
11770
11127
  validate() {
11771
- return __async2(this, null, function* () {
11128
+ return __async(this, null, function* () {
11772
11129
  var _a, _b;
11773
11130
  yield this.$nextTick(), (_b = (_a = this.$refs.formItem).validate) == null || _b.call(_a);
11774
11131
  });
@@ -13117,7 +12474,7 @@ const FormView_vue_vue_type_style_index_0_lang = "", builtInButtons$1 = ["back",
13117
12474
  }), this.onFormResize({ width: window.document.body.clientWidth });
13118
12475
  },
13119
12476
  activated() {
13120
- return __async2(this, null, function* () {
12477
+ return __async(this, null, function* () {
13121
12478
  this.$refs.formScroller && (yield this.$nextTick(), this.scrollTo(this.formScrollTop, this.formScrollLeft));
13122
12479
  });
13123
12480
  },
@@ -13138,7 +12495,7 @@ const FormView_vue_vue_type_style_index_0_lang = "", builtInButtons$1 = ["back",
13138
12495
  !this.toolbarListeners.edit && hasOwn(this.$parent, "disabled") && (this.$parent.disabled = !1);
13139
12496
  },
13140
12497
  navItemClick(item, index2) {
13141
- return __async2(this, null, function* () {
12498
+ return __async(this, null, function* () {
13142
12499
  this.showNav && (yield this.$nextTick(), this.activeFormItemGroup(item, index2), item.expand || item.open());
13143
12500
  });
13144
12501
  },
@@ -13146,7 +12503,7 @@ const FormView_vue_vue_type_style_index_0_lang = "", builtInButtons$1 = ["back",
13146
12503
  this.$refs.formScroller.scrollTop = tab.$el.offsetTop - 10, animate(tab.$el, "breathe-indicator-animation"), this.tryByClick = !0, this.activeIndex = index2;
13147
12504
  },
13148
12505
  tryActive() {
13149
- return __async2(this, null, function* () {
12506
+ return __async(this, null, function* () {
13150
12507
  if (this.showNav) {
13151
12508
  for (let i2 = 0; i2 < this.groups.length; i2++)
13152
12509
  if (isInContainer(this.groups[i2].$el, this.$refs.formScroller, { bottomOffset: 10 })) {
@@ -16651,7 +16008,7 @@ const FyForm_vue_vue_type_style_index_0_lang = "", __vue2_script$1U = {
16651
16008
  return isBlank(column.display) ? this.isAdd ? key2 = "addDisplay" : this.isEdit ? key2 = "editDisplay" : this.isView && (key2 = "viewDisplay") : key2 = "display", key2 ? optVal(column[key2], !0) : !0;
16652
16009
  },
16653
16010
  clearValidate(list2) {
16654
- return __async2(this, null, function* () {
16011
+ return __async(this, null, function* () {
16655
16012
  var _a;
16656
16013
  (_a = this.$refs.form) == null || _a.clearValidate(list2);
16657
16014
  });
@@ -24144,7 +23501,7 @@ const FyFormDesign_vue_vue_type_style_index_0_lang = "", __vue2_script$1s = {
24144
23501
  methods: {
24145
23502
  // 组件初始化时加载本地存储中的options(需开启storage),若不存在则读取用户配置的options
24146
23503
  handleLoadStorage() {
24147
- return __async2(this, null, function* () {
23504
+ return __async(this, null, function* () {
24148
23505
  let options = this.options;
24149
23506
  if (typeof options == "string")
24150
23507
  try {
@@ -24423,7 +23780,7 @@ const FyFormDesign_vue_vue_type_style_index_0_lang = "", __vue2_script$1s = {
24423
23780
  });
24424
23781
  },
24425
23782
  getData() {
24426
- return __async2(this, arguments, function* (type2 = "json", option = {}) {
23783
+ return __async(this, arguments, function* (type2 = "json", option = {}) {
24427
23784
  if (type2 === "string")
24428
23785
  return convert(yield this.transformToAvueOptions(this.widgetForm), __spreadValues({
24429
23786
  minify: !0
@@ -27227,13 +26584,13 @@ const FyUEditor_vue_vue_type_style_index_0_lang = "", __vue2_script$19 = {
27227
26584
  readOnly: this.disabled,
27228
26585
  MENU_CONF: {
27229
26586
  uploadImage: {
27230
- customUpload: (file) => __async2(this, null, function* () {
26587
+ customUpload: (file) => __async(this, null, function* () {
27231
26588
  const res = yield this.uploadFile(file);
27232
26589
  this.editor.dangerouslyInsertHtml(res);
27233
26590
  })
27234
26591
  },
27235
26592
  uploadVideo: {
27236
- customUpload: (file) => __async2(this, null, function* () {
26593
+ customUpload: (file) => __async(this, null, function* () {
27237
26594
  const res = yield this.uploadFile(file);
27238
26595
  this.editor.dangerouslyInsertHtml(res);
27239
26596
  })
@@ -31196,7 +30553,7 @@ const PageableTable_vue_vue_type_style_index_0_lang = "", TABLE_STATUS$1 = {
31196
30553
  body && ((_a = body.$refs.tooltip) == null || _a.hide()), this.$emit("row-dblclick", ...args);
31197
30554
  },
31198
30555
  updateTableScrollPosition() {
31199
- return __async2(this, null, function* () {
30556
+ return __async(this, null, function* () {
31200
30557
  this.$refs.table.bodyWrapper && this.scrollTo(this.tableScrollTop, this.tableScrollLeft);
31201
30558
  });
31202
30559
  },
@@ -31262,7 +30619,7 @@ const PageableTable_vue_vue_type_style_index_0_lang = "", TABLE_STATUS$1 = {
31262
30619
  this.setModel(this.model), this.getPage();
31263
30620
  },
31264
30621
  getPage() {
31265
- return __async2(this, null, function* () {
30622
+ return __async(this, null, function* () {
31266
30623
  var _b;
31267
30624
  if (hasOwn(this.$attrs, "data")) {
31268
30625
  this.records = this.$attrs.data, this.page.page = 1, this.page.total = this.records.length, this.page.limit = this.page.total;
@@ -31291,12 +30648,12 @@ const PageableTable_vue_vue_type_style_index_0_lang = "", TABLE_STATUS$1 = {
31291
30648
  });
31292
30649
  },
31293
30650
  refresh() {
31294
- return __async2(this, null, function* () {
30651
+ return __async(this, null, function* () {
31295
30652
  yield this.getPage();
31296
30653
  });
31297
30654
  },
31298
30655
  reload() {
31299
- return __async2(this, null, function* () {
30656
+ return __async(this, null, function* () {
31300
30657
  this.page = __spreadProps(__spreadValues({}, this.$options.data.call(this).page), {
31301
30658
  total: this.page.total
31302
30659
  });
@@ -31530,7 +30887,7 @@ const TABLE_STATUS = {
31530
30887
  },
31531
30888
  methods: {
31532
30889
  updateTableScrollPosition() {
31533
- return __async2(this, null, function* () {
30890
+ return __async(this, null, function* () {
31534
30891
  this.$refs.scroller && this.scrollTo(this.tableScrollTop, this.tableScrollLeft);
31535
30892
  });
31536
30893
  },
@@ -31597,7 +30954,7 @@ const TABLE_STATUS = {
31597
30954
  this.setModel(this.model), this.getPage();
31598
30955
  },
31599
30956
  getPage() {
31600
- return __async2(this, null, function* () {
30957
+ return __async(this, null, function* () {
31601
30958
  var _b;
31602
30959
  if (hasOwn(this.$attrs, "data")) {
31603
30960
  this.records = this.$attrs.data, this.page.page = 1, this.page.total = this.records.length, this.page.limit = this.page.total;
@@ -31626,12 +30983,12 @@ const TABLE_STATUS = {
31626
30983
  });
31627
30984
  },
31628
30985
  refresh() {
31629
- return __async2(this, null, function* () {
30986
+ return __async(this, null, function* () {
31630
30987
  yield this.getPage();
31631
30988
  });
31632
30989
  },
31633
30990
  reload() {
31634
- return __async2(this, null, function* () {
30991
+ return __async(this, null, function* () {
31635
30992
  this.page = __spreadProps(__spreadValues({}, this.$options.data.call(this).page), {
31636
30993
  total: this.page.total
31637
30994
  });
@@ -31818,7 +31175,7 @@ const PageIndex_vue_vue_type_style_index_0_lang = "", __vue2_script$K = {
31818
31175
  },
31819
31176
  methods: {
31820
31177
  activeFirstMenu() {
31821
- return __async2(this, null, function* () {
31178
+ return __async(this, null, function* () {
31822
31179
  if (treeToArray(this.menus).map((value2) => value2.path).filter((value2) => value2).includes(this.$route.path))
31823
31180
  yield this.setCurrentKey(this.$route.path);
31824
31181
  else {
@@ -31828,17 +31185,17 @@ const PageIndex_vue_vue_type_style_index_0_lang = "", __vue2_script$K = {
31828
31185
  });
31829
31186
  },
31830
31187
  onNodeClick(node) {
31831
- return __async2(this, null, function* () {
31188
+ return __async(this, null, function* () {
31832
31189
  node.path && node.path.indexOf("/") > -1 && (yield this.$router.push({ path: node.path, query: node.query })), yield this.setCurrentKey(node.key);
31833
31190
  });
31834
31191
  },
31835
31192
  setCurrentKey(path) {
31836
- return __async2(this, null, function* () {
31193
+ return __async(this, null, function* () {
31837
31194
  yield this.$nextTick(), this.$refs.menuTree && this.$refs.menuTree.setCurrentKey(path);
31838
31195
  });
31839
31196
  },
31840
31197
  beforeRouteUpdate(to, from, next) {
31841
- return __async2(this, null, function* () {
31198
+ return __async(this, null, function* () {
31842
31199
  if (to.path === this.schema) {
31843
31200
  const menuItem = findFirstMatchNode(this.menus, (node) => node.path);
31844
31201
  menuItem ? (yield next({ path: menuItem.path, query: menuItem.query }), yield this.setCurrentKey(menuItem.path)) : yield next(!1);
@@ -31943,7 +31300,7 @@ const __vue2_script$J = {
31943
31300
  },
31944
31301
  methods: {
31945
31302
  activeFirstMenu() {
31946
- return __async2(this, null, function* () {
31303
+ return __async(this, null, function* () {
31947
31304
  if (treeToArray(this.menus).map((value2) => value2.path).filter((value2) => value2).includes(this.$route.path))
31948
31305
  this.activeTab = this.$route.path;
31949
31306
  else {
@@ -31953,12 +31310,12 @@ const __vue2_script$J = {
31953
31310
  });
31954
31311
  },
31955
31312
  tabClick(tab) {
31956
- return __async2(this, null, function* () {
31313
+ return __async(this, null, function* () {
31957
31314
  yield this.$router.push(tab.name);
31958
31315
  });
31959
31316
  },
31960
31317
  beforeRouteUpdate(to, from, next) {
31961
- return __async2(this, null, function* () {
31318
+ return __async(this, null, function* () {
31962
31319
  if (to.path === this.schema) {
31963
31320
  const menuItem = findFirstMatchNode(this.menus, (node) => node.path);
31964
31321
  menuItem ? (yield next({ path: menuItem.path, query: menuItem.query }), this.activeTab = menuItem.path) : yield next(!1);
@@ -32135,7 +31492,7 @@ function initPhotoSwipe(options2) {
32135
31492
  new PhotoSwipe$1(options2).init();
32136
31493
  }
32137
31494
  function photoswipe(_0, _1) {
32138
- return __async2(this, arguments, function* (event2, thumbnailsWrapperDom, options2 = { selector: "chat-image" }) {
31495
+ return __async(this, arguments, function* (event2, thumbnailsWrapperDom, options2 = { selector: "chat-image" }) {
32139
31496
  const target = event2.target;
32140
31497
  if (!(!target || target.classList.contains(options2.selector) || target.tagName === "IMG"))
32141
31498
  return;
@@ -32146,7 +31503,7 @@ function photoswipe(_0, _1) {
32146
31503
  });
32147
31504
  }
32148
31505
  function getDataSource(images) {
32149
- return __async2(this, null, function* () {
31506
+ return __async(this, null, function* () {
32150
31507
  const dataSource = [];
32151
31508
  for (let i2 = 0, length = images.length; i2 < length; i2++) {
32152
31509
  const image = images[i2], src = image.getAttribute("data-src") || image.getAttribute("src"), item = {
@@ -32215,7 +31572,7 @@ const __vue2_script$G = {
32215
31572
  },
32216
31573
  methods: {
32217
31574
  preview(e2) {
32218
- return __async2(this, null, function* () {
31575
+ return __async(this, null, function* () {
32219
31576
  yield photoswipe(e2, this.$refs.wrapper, { selector: this.selector });
32220
31577
  });
32221
31578
  }
@@ -36069,10 +35426,10 @@ const translationsCN = {
36069
35426
  emumerations
36070
35427
  }, WILDCARD = "*";
36071
35428
  function CamundaModdleExtension$1(eventBus) {
36072
- const self2 = this;
35429
+ const self = this;
36073
35430
  eventBus.on("moddleCopy.canCopyProperty", function(context) {
36074
35431
  const property = context.property, parent = context.parent;
36075
- return self2.canCopyProperty(property, parent);
35432
+ return self.canCopyProperty(property, parent);
36076
35433
  });
36077
35434
  }
36078
35435
  CamundaModdleExtension$1.$inject = ["eventBus"];
@@ -36692,7 +36049,7 @@ const __vue2_script$F = {
36692
36049
  const eventName = event2.replace(/\./g, "-"), element = eventObj ? eventObj.element : null;
36693
36050
  that.$emit(eventName, element, eventObj);
36694
36051
  });
36695
- }), EventBus.on("commandStack.changed", (event2) => __async2(this, null, function* () {
36052
+ }), EventBus.on("commandStack.changed", (event2) => __async(this, null, function* () {
36696
36053
  try {
36697
36054
  this.recoverable = this.bpmnModeler.get("commandStack").canRedo(), this.revocable = this.bpmnModeler.get("commandStack").canUndo();
36698
36055
  const { xml: xml2 } = yield this.bpmnModeler.saveXML({ format: !0 });
@@ -36708,7 +36065,7 @@ const __vue2_script$F = {
36708
36065
  },
36709
36066
  /* 创建新的流程图 */
36710
36067
  createNewDiagram(xml2) {
36711
- return __async2(this, null, function* () {
36068
+ return __async(this, null, function* () {
36712
36069
  const newId = this.processId || `Process_${new Date().getTime()}`, newName = this.processName || `业务流程_${new Date().getTime()}`, xmlString = xml2 || DefaultEmptyXML(newId, newName, this.prefix);
36713
36070
  try {
36714
36071
  const { warnings } = yield this.bpmnModeler.importXML(xmlString);
@@ -36724,7 +36081,7 @@ const __vue2_script$F = {
36724
36081
  * @param {*} name
36725
36082
  */
36726
36083
  downloadProcess(type2, name2) {
36727
- return __async2(this, null, function* () {
36084
+ return __async(this, null, function* () {
36728
36085
  try {
36729
36086
  const _this = this;
36730
36087
  if (type2 === "xml" || type2 === "bpmn") {
@@ -38747,16 +38104,16 @@ function uuid(length = 8, chars) {
38747
38104
  return result2;
38748
38105
  }
38749
38106
  function initListenerForm(listener) {
38750
- let self2 = __spreadValues({}, listener);
38751
- if (listener.script && (self2 = __spreadProps(__spreadValues(__spreadValues({}, listener), listener.script), {
38107
+ let self = __spreadValues({}, listener);
38108
+ if (listener.script && (self = __spreadProps(__spreadValues(__spreadValues({}, listener), listener.script), {
38752
38109
  scriptType: listener.script.resource ? "externalScript" : "inlineScript"
38753
38110
  })), listener.event === "timeout" && listener.eventDefinitions && listener.eventDefinitions.length) {
38754
38111
  let k = "";
38755
38112
  for (const key2 in listener.eventDefinitions[0])
38756
- console.log(listener.eventDefinitions, key2), key2.indexOf("time") !== -1 && (k = key2, self2.eventDefinitionType = key2.replace("time", "").toLowerCase());
38757
- console.log(k), self2.eventTimeDefinitions = listener.eventDefinitions[0][k].body;
38113
+ console.log(listener.eventDefinitions, key2), key2.indexOf("time") !== -1 && (k = key2, self.eventDefinitionType = key2.replace("time", "").toLowerCase());
38114
+ console.log(k), self.eventTimeDefinitions = listener.eventDefinitions[0][k].body;
38758
38115
  }
38759
- return self2;
38116
+ return self;
38760
38117
  }
38761
38118
  function initListenerType(listener) {
38762
38119
  var _a;
@@ -39412,7 +38769,7 @@ const __vue2_script$v = {
39412
38769
  },
39413
38770
  // 保存监听器注入字段
39414
38771
  saveListenerFiled() {
39415
- return __async2(this, null, function* () {
38772
+ return __async(this, null, function* () {
39416
38773
  (yield this.$refs.listenerFieldFormRef.validate()) && (this.editingListenerFieldIndex === -1 ? (this.fieldsListOfListener.push(this.listenerFieldForm), this.listenerForm.fields.push(this.listenerFieldForm)) : (this.fieldsListOfListener.splice(this.editingListenerFieldIndex, 1, this.listenerFieldForm), this.listenerForm.fields.splice(this.editingListenerFieldIndex, 1, this.listenerFieldForm)), this.listenerFieldFormModelVisible = !1, this.$nextTick(() => this.listenerFieldForm = {}));
39417
38774
  });
39418
38775
  },
@@ -39436,7 +38793,7 @@ const __vue2_script$v = {
39436
38793
  },
39437
38794
  // 保存监听器配置
39438
38795
  saveListenerConfig() {
39439
- return __async2(this, null, function* () {
38796
+ return __async(this, null, function* () {
39440
38797
  var _a, _b, _c, _d;
39441
38798
  if (!(yield this.$refs.listenerFormRef.validate()))
39442
38799
  return;
@@ -41242,7 +40599,7 @@ const __vue2_script$s = {
41242
40599
  },
41243
40600
  // 保存监听器
41244
40601
  saveListenerConfig() {
41245
- return __async2(this, null, function* () {
40602
+ return __async(this, null, function* () {
41246
40603
  var _a, _b, _c, _d;
41247
40604
  if (!(yield this.$refs.listenerFormRef.validate()))
41248
40605
  return;
@@ -41258,7 +40615,7 @@ const __vue2_script$s = {
41258
40615
  },
41259
40616
  // 保存监听器注入字段
41260
40617
  saveListenerFiled() {
41261
- return __async2(this, null, function* () {
40618
+ return __async(this, null, function* () {
41262
40619
  (yield this.$refs.listenerFieldFormRef.validate()) && (this.editingListenerFieldIndex === -1 ? (this.fieldsListOfListener.push(this.listenerFieldForm), this.listenerForm.fields.push(this.listenerFieldForm)) : (this.fieldsListOfListener.splice(this.editingListenerFieldIndex, 1, this.listenerFieldForm), this.listenerForm.fields.splice(this.editingListenerFieldIndex, 1, this.listenerFieldForm)), this.listenerFieldFormModelVisible = !1, this.$nextTick(() => this.listenerFieldForm = {}));
41263
40620
  });
41264
40621
  },
@@ -42392,7 +41749,7 @@ const SearchPopover_vue_vue_type_style_index_0_lang = "", __vue2_script$m = {
42392
41749
  },
42393
41750
  methods: {
42394
41751
  onItemClick(item) {
42395
- return __async2(this, null, function* () {
41752
+ return __async(this, null, function* () {
42396
41753
  item.path && (this.hidePopover(), yield this.$router.push(item.path));
42397
41754
  });
42398
41755
  },
@@ -42409,7 +41766,7 @@ const SearchPopover_vue_vue_type_style_index_0_lang = "", __vue2_script$m = {
42409
41766
  this.currentIndex = index2;
42410
41767
  },
42411
41768
  keydown(event2) {
42412
- return __async2(this, null, function* () {
41769
+ return __async(this, null, function* () {
42413
41770
  if (event2.key === "Shift") {
42414
41771
  const cost = Date.now() - this.last;
42415
41772
  cost > 0 && cost < 500 ? (this.showPopover = !0, yield this.$nextTick(), this.$refs.searchInput.focus()) : this.last = Date.now();
@@ -43063,7 +42420,7 @@ const SplitPane_vue_vue_type_style_index_0_lang = "", __vue2_script$i = {
43063
42420
  value: "resetOffset"
43064
42421
  },
43065
42422
  mounted() {
43066
- return __async2(this, null, function* () {
42423
+ return __async(this, null, function* () {
43067
42424
  yield this.$nextTick(), this.resetOffset();
43068
42425
  });
43069
42426
  },
@@ -43343,7 +42700,7 @@ const Swiper_vue_vue_type_style_index_0_lang = "", __vue2_script$f = {
43343
42700
  };
43344
42701
  },
43345
42702
  mounted() {
43346
- return __async2(this, null, function* () {
42703
+ return __async(this, null, function* () {
43347
42704
  yield this.layout();
43348
42705
  });
43349
42706
  },
@@ -43352,7 +42709,7 @@ const Swiper_vue_vue_type_style_index_0_lang = "", __vue2_script$f = {
43352
42709
  },
43353
42710
  methods: {
43354
42711
  layout() {
43355
- return __async2(this, null, function* () {
42712
+ return __async(this, null, function* () {
43356
42713
  yield this.$nextTick(), this.computeContentWidth(), this.resize();
43357
42714
  });
43358
42715
  },
@@ -44206,7 +43563,7 @@ const TableView_vue_vue_type_style_index_0_lang = "", builtInButtons = ["back",
44206
43563
  this._viewIds = [], this.viewId && this._viewIds.push(this.viewId), this._viewIds.includes(this.$parent.$options.name) || this._viewIds.push(this.$parent.$options.name);
44207
43564
  },
44208
43565
  activated() {
44209
- return __async2(this, null, function* () {
43566
+ return __async(this, null, function* () {
44210
43567
  this.$refs.treeScroller && (this.treeScrollTop && (this.$refs.treeScroller.scrollTop = this.treeScrollTop), this.treeScrollLeft && (this.$refs.treeScroller.scrollLeft = this.treeScrollLeft));
44211
43568
  });
44212
43569
  },
@@ -44218,12 +43575,12 @@ const TableView_vue_vue_type_style_index_0_lang = "", builtInButtons = ["back",
44218
43575
  this.right = this.right === 0 ? -this.searchPanelProps.width : 0;
44219
43576
  },
44220
43577
  onSearchClick() {
44221
- return __async2(this, null, function* () {
43578
+ return __async(this, null, function* () {
44222
43579
  this.$refs.table.setModel(this.searchModel || this.searchPanelProps.model), yield this.refreshTable();
44223
43580
  });
44224
43581
  },
44225
43582
  onClearClick() {
44226
- return __async2(this, null, function* () {
43583
+ return __async(this, null, function* () {
44227
43584
  this.$emit("reset"), this.$refs.form.resetFields(), this.$refs.table.setModel(this.searchModel || this.searchPanelProps.model), yield this.refreshTable();
44228
43585
  });
44229
43586
  },
@@ -44242,7 +43599,7 @@ const TableView_vue_vue_type_style_index_0_lang = "", builtInButtons = ["back",
44242
43599
  !((_a = this.toolbarListeners) != null && _a.create) && this.formPath && this.openFrom();
44243
43600
  },
44244
43601
  del() {
44245
- return __async2(this, null, function* () {
43602
+ return __async(this, null, function* () {
44246
43603
  var _a;
44247
43604
  const api = this.deleteApi || this.$parent.del;
44248
43605
  if (!((_a = this.toolbarListeners) != null && _a.del) && isFunction(api)) {
@@ -44258,7 +43615,7 @@ const TableView_vue_vue_type_style_index_0_lang = "", builtInButtons = ["back",
44258
43615
  modal: !0,
44259
43616
  dangerouslyUseHTMLString: !0,
44260
43617
  closeOnClickModal: !1,
44261
- beforeClose: (action, instance, done) => __async2(this, null, function* () {
43618
+ beforeClose: (action, instance, done) => __async(this, null, function* () {
44262
43619
  if (action === "confirm")
44263
43620
  try {
44264
43621
  instance.confirmButtonLoading = !0, instance.confirmButtonText = "删除...", yield api.call(this, this.selectedRows.map((value2) => value2.id).join(",")), this.$message.success("删除成功"), yield this.reloadTable(), yield this.refreshTree();
@@ -44276,7 +43633,7 @@ const TableView_vue_vue_type_style_index_0_lang = "", builtInButtons = ["back",
44276
43633
  (_a = this.$refs.table) == null || _a.reload();
44277
43634
  },
44278
43635
  refreshTable() {
44279
- return __async2(this, null, function* () {
43636
+ return __async(this, null, function* () {
44280
43637
  var _a;
44281
43638
  yield (_a = this.$refs.table) == null ? void 0 : _a.getPage();
44282
43639
  });
@@ -44640,7 +43997,7 @@ const TinymceEditor_vue_vue_type_style_index_0_lang = "", __vue2_script$7 = {
44640
43997
  return this.$refs.editor.$refs.editor.editor;
44641
43998
  },
44642
43999
  onEditorShadowClick() {
44643
- return __async2(this, null, function* () {
44000
+ return __async(this, null, function* () {
44644
44001
  if (this.inputDisabled)
44645
44002
  return;
44646
44003
  this.focus = !0, yield this.$nextTick();
@@ -45541,7 +44898,7 @@ const ToolbarButton_vue_vue_type_style_index_0_lang = "", __vue2_script$4 = {
45541
44898
  },
45542
44899
  methods: {
45543
44900
  onClick(e2) {
45544
- return __async2(this, null, function* () {
44901
+ return __async(this, null, function* () {
45545
44902
  this.loading = !0;
45546
44903
  const { click } = this.$listeners;
45547
44904
  if (isFunction(click))
@@ -46338,7 +45695,7 @@ function __vue2_injectStyles(context) {
46338
45695
  }
46339
45696
  const Watermark = /* @__PURE__ */ function() {
46340
45697
  return __component__.exports;
46341
- }(), version = "2.7.22";
45698
+ }(), version = "2.7.28";
46342
45699
  function index(Vue2) {
46343
45700
  Vue2.component(AddressInput.name, AddressInput), Vue2.component(Affix.name, Affix), Vue2.component(AsideMenu.name, AsideMenu), Vue2.component(Avatar.name, Avatar), Vue2.component(AwesomeButton.name, AwesomeButton), Vue2.component(CapsuleTab.name, CapsuleTab), Vue2.component(Card.name, Card), Vue2.component(Carousel.name, Carousel), Vue2.component(Chat.name, Chat), Vue2.component(ChunkFileUploader.name, ChunkFileUploader), Vue2.component(ChunkFileUploaderButton.name, ChunkFileUploaderButton), Vue2.component(ChunkFileUploaderDrop.name, ChunkFileUploaderDrop), Vue2.component(ChunkFileUploaderFile.name, ChunkFileUploaderFile), Vue2.component(ChunkFileUploaderFiles.name, ChunkFileUploaderFiles), Vue2.component(ChunkFileUploaderList.name, ChunkFileUploaderList), Vue2.component(ChunkFileUploaderUnSupport.name, ChunkFileUploaderUnSupport), Vue2.component(CodeMirrorEditor.name, CodeMirrorEditor), Vue2.component(ColorPicker.name, ColorPicker), Vue2.component(Column.name, Column), Vue2.component(ColumnDefault.name, ColumnDefault), Vue2.component(ColumnDynamic.name, ColumnDynamic), Vue2.component(ColumnMenu.name, ColumnMenu), Vue2.component(ColumnSlot.name, ColumnSlot), Vue2.component(Comment.name, Comment), Vue2.component(Confirmable.name, Confirmable), Vue2.component(ConfirmButton.name, ConfirmButton), Vue2.component(ContextMenu.name, ContextMenu), Vue2.component(CountUp.name, CountUp), Vue2.component(CustomScrollbar.name, CustomScrollbar), Vue2.component(DataBox.name, DataBox), Vue2.component(DataCard.name, DataCard), Vue2.component(DataCardtext.name, DataCardtext), Vue2.component(DataDisplay.name, DataDisplay), Vue2.component(DataIcons.name, DataIcons), Vue2.component(DataImgtext.name, DataImgtext), Vue2.component(DataOperatext.name, DataOperatext), Vue2.component(DataPanel.name, DataPanel), Vue2.component(DataPay.name, DataPay), Vue2.component(DataPrice.name, DataPrice), Vue2.component(DataProgress.name, DataProgress), Vue2.component(DataRotate.name, DataRotate), Vue2.component(DataTablePicker.name, DataTablePicker), Vue2.component(DataTabs.name, DataTabs), Vue2.component(DialogColumn.name, DialogColumn), Vue2.component(DialogExcel.name, DialogExcel), Vue2.component(DialogFilter.name, DialogFilter), Vue2.component(DialogForm.name, DialogForm), Vue2.component(DynamicTable.name, DynamicTable), Vue2.component(EasyPopup.name, EasyPopup), Vue2.component(ECharts.name, ECharts), Vue2.component(EditableProgress.name, EditableProgress), Vue2.component(EditableTree.name, EditableTree), Vue2.component(EgdCollapse.name, EgdCollapse), Vue2.component(EgdCollapseItem.name, EgdCollapseItem), Vue2.component(ElementDialog.name, ElementDialog), Vue2.component(EmptyView.name, EmptyView), Vue2.component(ErrorView.name, ErrorView), Vue2.component(FlexColumn.name, FlexColumn), Vue2.component(FlexItem.name, FlexItem), Vue2.component(FlexRow.name, FlexRow), Vue2.component(FlexScroller.name, FlexScroller), Vue2.component(Flow.name, Flow), Vue2.component(FlowNode.name, FlowNode), Vue2.component(FlowViewer.name, FlowViewer), Vue2.component(FormButton.name, FormButton), Vue2.component(FormCascader.name, FormCascader), Vue2.component(FormCheckboxGroup.name, FormCheckboxGroup), Vue2.component(FormDatePicker.name, FormDatePicker), Vue2.component(FormGroup.name, FormGroup), Vue2.component(FormHolder.name, FormHolder), Vue2.component(FormInput.name, FormInput), Vue2.component(FormInputEmail.name, FormInputEmail), Vue2.component(FormInputIdCard.name, FormInputIdCard), Vue2.component(FormInputNumber.name, FormInputNumber), Vue2.component(FormInputPhoneNumber.name, FormInputPhoneNumber), Vue2.component(FormInputTime.name, FormInputTime), Vue2.component(FormItem.name, FormItem), Vue2.component(FormItemConfigProvider.name, FormItemConfigProvider), Vue2.component(FormItemGroup.name, FormItemGroup), Vue2.component(FormRadioGroup.name, FormRadioGroup), Vue2.component(FormSelect.name, FormSelect), Vue2.component(FormSwitch.name, FormSwitch), Vue2.component(FormTemp.name, FormTemp), Vue2.component(FormTextarea.name, FormTextarea), Vue2.component(FormView.name, FormView), Vue2.component(FyArray.name, FyArray), Vue2.component(FyArticle.name, FyArticle), Vue2.component(FyCascader.name, FyCascader), Vue2.component(FyCheckbox.name, FyCheckbox), Vue2.component(FyCode.name, FyCode), Vue2.component(FyCurd.name, FyCurd), Vue2.component(FyDate.name, FyDate), Vue2.component(FyDialogForm.name, FyDialogForm), Vue2.component(FyDraggable.name, FyDraggable), Vue2.component(FyDynamic.name, FyDynamic), Vue2.component(FyEmpty.name, FyEmpty), Vue2.component(FyForm.name, FyForm), Vue2.component(FyFormDesign.name, FyFormDesign), Vue2.component(FyFormMenu.name, FyFormMenu), Vue2.component(FyInput.name, FyInput), Vue2.component(FyInputColor.name, FyInputColor), Vue2.component(FyInputIcon.name, FyInputIcon), Vue2.component(FyInputMap.name, FyInputMap), Vue2.component(FyInputNumber.name, FyInputNumber), Vue2.component(FyInputTable.name, FyInputTable), Vue2.component(FyInputTree.name, FyInputTree), Vue2.component(FyProgress.name, FyProgress), Vue2.component(FyRadio.name, FyRadio), Vue2.component(FyRate.name, FyRate), Vue2.component(FySelect.name, FySelect), Vue2.component(FySlider.name, FySlider), Vue2.component(FySwitch.name, FySwitch), Vue2.component(FyTabs.name, FyTabs), Vue2.component(FyTime.name, FyTime), Vue2.component(FyTitle.name, FyTitle), Vue2.component(FyTree.name, FyTree), Vue2.component(FyUEditor.name, FyUEditor), Vue2.component(FyUpload.name, FyUpload), Vue2.component(GuideSteps.name, GuideSteps), Vue2.component(HeaderMenu.name, HeaderMenu), Vue2.component(HeaderSearch.name, HeaderSearch), Vue2.component(HighlightJS.name, HighlightJS), Vue2.component(IconCard.name, IconCard), Vue2.component(IconTemp.name, IconTemp), Vue2.component(IframeWindow.name, IframeWindow), Vue2.component(ImageCropper.name, ImageCropper), Vue2.component(ImagePreview.name, ImagePreview), Vue2.component(ImageViewer.name, ImageViewer), Vue2.component(InputNumber.name, InputNumber), Vue2.component(InputNumberRange.name, InputNumberRange), Vue2.component(JSXComponent.name, JSXComponent), Vue2.component(KeepViewAlive.name, KeepViewAlive), Vue2.component(Keyboard.name, Keyboard), Vue2.component(License.name, License), Vue2.component(LoadingView.name, LoadingView), Vue2.component(Login.name, Login), Vue2.component(NameAvatar.name, NameAvatar), Vue2.component(NavBar.name, NavBar), Vue2.component(Notice.name, Notice), Vue2.component(NotImplement.name, NotImplement), Vue2.component(Page.name, Page), Vue2.component(PageableTable.name, PageableTable), Vue2.component(PageableView.name, PageableView), Vue2.component(PageHeader.name, PageHeader), Vue2.component(PageIndex.name, PageIndex), Vue2.component(PageIndexTop.name, PageIndexTop), Vue2.component(PageSkeleton.name, PageSkeleton), Vue2.component(PageSkeletonNew.name, PageSkeletonNew), Vue2.component(PhotoSwipe.name, PhotoSwipe), Vue2.component(ProcessDesigner.name, ProcessDesigner), Vue2.component(PropertiesPanel.name, PropertiesPanel), Vue2.component(Queue.name, Queue), Vue2.component(RecordVideo.name, RecordVideo), Vue2.component(ResizeObserver.name, ResizeObserver), Vue2.component(Search.name, Search), Vue2.component(SearchPopover.name, SearchPopover), Vue2.component(Sign.name, Sign), Vue2.component(SignPanel.name, SignPanel), Vue2.component(Skeleton.name, Skeleton), Vue2.component(SplitPane.name, SplitPane), Vue2.component(Stateful.name, Stateful), Vue2.component(StaticPageableTable.name, StaticPageableTable), Vue2.component(Swiper.name, Swiper), Vue2.component(Tab.name, Tab), Vue2.component(TabItem.name, TabItem), Vue2.component(TableColumn.name, TableColumn), Vue2.component(TablePage.name, TablePage), Vue2.component(TableView.name, TableView), Vue2.component(TagRender.name, TagRender), Vue2.component(TextEllipsis.name, TextEllipsis), Vue2.component(TinymceEditor.name, TinymceEditor), Vue2.component(TinymceWrapper.name, TinymceWrapper), Vue2.component(Toolbar.name, Toolbar), Vue2.component(ToolbarButton.name, ToolbarButton), Vue2.component(Trigger.name, Trigger), Vue2.component(Verify.name, Verify), Vue2.component(VueTagsInput.name, VueTagsInput), Vue2.component(Watermark.name, Watermark);
46344
45701
  }