提交 91d093a1 编写于 作者: lxm1993's avatar lxm1993

feat: 插件更新

上级 090ad9ad
var Q = Object.defineProperty;
var X = (e, t, s) => t in e ? Q(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;
var k = (e, t, s) => (X(e, typeof t != "symbol" ? t + "" : t, s), s);
import { GridFieldColumnController as O, GridRowController as Z, WFStepTraceViewController as ee, UploadEditorController as V } from "@ibiz-template/controller";
var X = Object.defineProperty;
var Z = (e, t, s) => t in e ? X(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;
var k = (e, t, s) => (Z(e, typeof t != "symbol" ? t + "" : t, s), s);
import { GridFieldColumnController as O, GridRowController as ee, WFStepTraceViewController as te, UploadEditorController as V } from "@ibiz-template/controller";
import { defineComponent as U, computed as G, h as c, getCurrentInstance as N, ref as m, watch as T, toRefs as _ } from "vue";
import { useNamespace as S, useViewController as te, usePropsWatch as z, getUploadProps as se, getEditorEmits as oe, getGridUploadProps as A, useClickOutside as ie, getGridEditorEmits as re, useEventListener as ne, useWFStepTraceViewController as ae, useWFDynaEditView3Controller as le, useEditView3Controller as ce } from "@ibiz-template/vue-util";
import { colorBlend as de, IBizContext as ue, HttpError as j, isImage as me, uploadFile as pe, RuntimeError as he } from "@ibiz-template/core";
import { useNamespace as S, useViewController as se, usePropsWatch as z, getUploadProps as oe, getEditorEmits as ie, getGridUploadProps as A, getGridEditorEmits as j, useClickOutside as re, useEventListener as ne, useWFStepTraceViewController as ae, useWFDynaEditView3Controller as le, useEditView3Controller as ce } from "@ibiz-template/vue-util";
import { colorBlend as de, IBizContext as ue, HttpError as R, isImage as me, uploadFile as pe, RuntimeError as he } from "@ibiz-template/core";
import { getCookie as fe } from "qx-util";
import { ViewMode as R } from "@ibiz-template/runtime";
import { ViewMode as $ } from "@ibiz-template/runtime";
import { ViewType as be } from "@ibiz-template/model";
const ve = U({
name: "CodeListGridColumn",
......@@ -16,7 +16,7 @@ const ve = U({
required: !0
},
row: {
type: Z,
type: ee,
required: !0
}
},
......@@ -82,7 +82,7 @@ const ve = U({
}, [t])]);
}
});
class we extends ee {
class we extends te {
constructor() {
super(...arguments);
k(this, "imgSrc");
......@@ -114,7 +114,7 @@ const ye = U({
setup(e) {
const t = S("preset-wf-chart-view"), {
proxy: s
} = N(), o = te(s, (r, n) => new we(e.modelPath, r, n));
} = N(), o = se(s, (r, n) => new we(e.modelPath, r, n));
return z(s, "deName", o.setDeName.bind(o)), {
c: o,
ns: t
......@@ -198,7 +198,7 @@ const Ee = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (t) => t == "+" ? "-" :
var t = 65536 + (e.charCodeAt(0) - 55296) * 1024 + (e.charCodeAt(1) - 56320);
return x(240 | t >>> 18 & 7) + x(128 | t >>> 12 & 63) + x(128 | t >>> 6 & 63) + x(128 | t & 63);
}
}, ke = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g, Te = (e) => e.replace(ke, Se), M = B ? (e) => Buffer.from(e, "utf8").toString("base64") : W ? (e) => xe(W.encode(e)) : (e) => q(Te(e)), $ = (e, t = !1) => t ? Ee(M(e)) : M(e);
}, ke = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g, Te = (e) => e.replace(ke, Se), M = B ? (e) => Buffer.from(e, "utf8").toString("base64") : W ? (e) => xe(W.encode(e)) : (e) => q(Te(e)), H = (e, t = !1) => t ? Ee(M(e)) : M(e);
function Ie(e, t, s) {
const o = m([]), r = m({
Authorization: `Bearer ${fe("access_token")}`
......@@ -252,7 +252,7 @@ function Ie(e, t, s) {
id: i.fileid
}), d.count -= 1, d.count === 0 && p());
}, h = (i, a) => {
throw d.count -= 1, new j({
throw d.count -= 1, new R({
response: { data: a, status: i.status }
});
}, C = (i) => {
......@@ -285,7 +285,7 @@ function Ie(e, t, s) {
const a = window.Environment.previewFileUrl;
if (a) {
const b = encodeURIComponent(
$(
H(
`${window.location.origin}${i.url}?fullfilename=${i.name}`
)
);
......@@ -296,8 +296,8 @@ function Ie(e, t, s) {
}
const De = U({
name: "SyFileUpload",
props: se(),
emits: oe(),
props: oe(),
emits: ie(),
setup(e, {
emit: t
}) {
......@@ -437,7 +437,7 @@ function P(e, t) {
}
return e;
}
function H(e) {
function J(e) {
const t = m(""), s = m(""), o = m([]);
return T(
e.data,
......@@ -470,7 +470,7 @@ function H(e) {
valueList: o
};
}
function J(e) {
function Y(e) {
const t = m("undo"), s = m([]), { downloadUrl: o, value: r, uploadUrl: n } = e;
T(
r,
......@@ -488,7 +488,7 @@ function J(e) {
const i = ["html", "js", "exe", "sh"], a = [];
return w.forEach((b, I) => {
const L = b.name.trim().toLowerCase();
if (i.some((K) => L.endsWith(`.${K}`))) {
if (i.some((Q) => L.endsWith(`.${Q}`))) {
a.push(I);
return;
}
......@@ -515,7 +515,7 @@ function J(e) {
u.forEach((b) => {
s.value.find((I) => I.id === b.uid ? (I.status = b.status, !0) : !1);
});
const i = new j(w);
const i = new R(w);
ibiz.notification.error({
title: (a = i.status) == null ? void 0 : a.toString(),
desc: i.message,
......@@ -550,7 +550,7 @@ function J(e) {
const w = window.Environment.previewFileUrl;
if (w) {
const i = encodeURIComponent(
$(
H(
`${window.location.origin}${u.url}?fullfilename=${u.name}`
)
);
......@@ -571,7 +571,7 @@ const Pe = U({
downloadUrl: n,
uploadUrl: l,
valueList: d
} = H({
} = J({
value: s,
data: o,
controller: r
......@@ -582,7 +582,7 @@ const Pe = U({
iframeUrl: h,
previewFile: C,
onModalCancel: g
} = J({
} = Y({
downloadUrl: n,
uploadUrl: l,
value: d
......@@ -655,6 +655,7 @@ const Pe = U({
}), Ne = U({
name: "SyGridFileUploadContainer",
props: A(),
emits: j(),
render(e) {
return this.disabled || this.readonly ? e("SyGridFileUpload", {
props: {
......@@ -663,6 +664,14 @@ const Pe = U({
}) : e("SyEditGridFileUpload", {
props: {
...this.$props
},
on: {
change: (t, s) => {
this.$emit("change", t, s);
},
rowSave: () => {
this.$emit("rowSave");
}
}
});
}
......@@ -701,11 +710,11 @@ const Le = U({
fileList: l,
uploadState: d,
selectFile: p
} = J({
} = Y({
downloadUrl: o,
value: r,
uploadUrl: n
}), v = m(), y = m(!1), h = ie(v, async (f) => {
}), v = m(), y = m(!1), h = re(v, async (f) => {
t("close", {
isModified: y.value,
resultFiles: l.value
......@@ -766,7 +775,7 @@ const Le = U({
const _e = U({
name: "SyEditGridFileUpload",
props: A(),
emits: re(),
emits: j(),
setup(e, {
emit: t
}) {
......@@ -778,7 +787,7 @@ const _e = U({
downloadUrl: l,
uploadUrl: d,
valueList: p
} = H({
} = J({
value: o,
data: r,
controller: n
......@@ -863,7 +872,7 @@ class Ge {
k(this, "component", "IndexView");
}
}
const Y = U({
const K = U({
name: "WFStepTraceGrid",
props: {
context: Object,
......@@ -996,7 +1005,7 @@ const Y = U({
}
if (this.c.complete && this.c.model.drTab.pages[0]) {
const s = this.c.model.drTab.pages[0], o = this.c.drPages[s.source.name];
t.push(e(Y, {
t.push(e(K, {
attrs: {
context: o.context,
params: o.params,
......@@ -1052,7 +1061,7 @@ const Y = U({
context: o.context,
params: o.params,
modal: {
mode: R.EMBED
mode: $.EMBED
},
modelPath: s.embedView.source.modelPath,
deName: this.c.model.appEntity.source.codeName
......@@ -1130,7 +1139,7 @@ const Oe = U({
on: {
neuronInit: this.c.nerve.onNeuronInit(this.c.model.form.source.name)
}
}), e(Y, {
}), e(K, {
attrs: {
context: this.c.drPages[this.c.model.drTab.pages[0].source.name].context,
params: this.c.drPages[this.c.model.drTab.pages[0].source.name].params,
......@@ -1154,7 +1163,7 @@ const Oe = U({
context: s.context,
params: s.params,
modal: {
mode: R.EMBED
mode: $.EMBED
},
modelPath: t.embedView.source.modelPath,
deName: this.c.model.appEntity.source.codeName
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册