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

feat: 插件更新

上级 090ad9ad
var Q = Object.defineProperty; var X = 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 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) => (X(e, typeof t != "symbol" ? t + "" : t, s), s); var k = (e, t, s) => (Z(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"; 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 { 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 { 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 j, isImage as me, uploadFile as pe, RuntimeError as he } from "@ibiz-template/core"; 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 { 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"; import { ViewType as be } from "@ibiz-template/model";
const ve = U({ const ve = U({
name: "CodeListGridColumn", name: "CodeListGridColumn",
...@@ -16,7 +16,7 @@ const ve = U({ ...@@ -16,7 +16,7 @@ const ve = U({
required: !0 required: !0
}, },
row: { row: {
type: Z, type: ee,
required: !0 required: !0
} }
}, },
...@@ -82,7 +82,7 @@ const ve = U({ ...@@ -82,7 +82,7 @@ const ve = U({
}, [t])]); }, [t])]);
} }
}); });
class we extends ee { class we extends te {
constructor() { constructor() {
super(...arguments); super(...arguments);
k(this, "imgSrc"); k(this, "imgSrc");
...@@ -114,7 +114,7 @@ const ye = U({ ...@@ -114,7 +114,7 @@ const ye = U({
setup(e) { setup(e) {
const t = S("preset-wf-chart-view"), { const t = S("preset-wf-chart-view"), {
proxy: s 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)), { return z(s, "deName", o.setDeName.bind(o)), {
c: o, c: o,
ns: t ns: t
...@@ -198,7 +198,7 @@ const Ee = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (t) => 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); 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); 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) { function Ie(e, t, s) {
const o = m([]), r = m({ const o = m([]), r = m({
Authorization: `Bearer ${fe("access_token")}` Authorization: `Bearer ${fe("access_token")}`
...@@ -252,7 +252,7 @@ function Ie(e, t, s) { ...@@ -252,7 +252,7 @@ function Ie(e, t, s) {
id: i.fileid id: i.fileid
}), d.count -= 1, d.count === 0 && p()); }), d.count -= 1, d.count === 0 && p());
}, h = (i, a) => { }, h = (i, a) => {
throw d.count -= 1, new j({ throw d.count -= 1, new R({
response: { data: a, status: i.status } response: { data: a, status: i.status }
}); });
}, C = (i) => { }, C = (i) => {
...@@ -285,7 +285,7 @@ function Ie(e, t, s) { ...@@ -285,7 +285,7 @@ function Ie(e, t, s) {
const a = window.Environment.previewFileUrl; const a = window.Environment.previewFileUrl;
if (a) { if (a) {
const b = encodeURIComponent( const b = encodeURIComponent(
$( H(
`${window.location.origin}${i.url}?fullfilename=${i.name}` `${window.location.origin}${i.url}?fullfilename=${i.name}`
) )
); );
...@@ -296,8 +296,8 @@ function Ie(e, t, s) { ...@@ -296,8 +296,8 @@ function Ie(e, t, s) {
} }
const De = U({ const De = U({
name: "SyFileUpload", name: "SyFileUpload",
props: se(), props: oe(),
emits: oe(), emits: ie(),
setup(e, { setup(e, {
emit: t emit: t
}) { }) {
...@@ -437,7 +437,7 @@ function P(e, t) { ...@@ -437,7 +437,7 @@ function P(e, t) {
} }
return e; return e;
} }
function H(e) { function J(e) {
const t = m(""), s = m(""), o = m([]); const t = m(""), s = m(""), o = m([]);
return T( return T(
e.data, e.data,
...@@ -470,7 +470,7 @@ function H(e) { ...@@ -470,7 +470,7 @@ function H(e) {
valueList: o valueList: o
}; };
} }
function J(e) { function Y(e) {
const t = m("undo"), s = m([]), { downloadUrl: o, value: r, uploadUrl: n } = e; const t = m("undo"), s = m([]), { downloadUrl: o, value: r, uploadUrl: n } = e;
T( T(
r, r,
...@@ -488,7 +488,7 @@ function J(e) { ...@@ -488,7 +488,7 @@ function J(e) {
const i = ["html", "js", "exe", "sh"], a = []; const i = ["html", "js", "exe", "sh"], a = [];
return w.forEach((b, I) => { return w.forEach((b, I) => {
const L = b.name.trim().toLowerCase(); const L = b.name.trim().toLowerCase();
if (i.some((K) => L.endsWith(`.${K}`))) { if (i.some((Q) => L.endsWith(`.${Q}`))) {
a.push(I); a.push(I);
return; return;
} }
...@@ -515,7 +515,7 @@ function J(e) { ...@@ -515,7 +515,7 @@ function J(e) {
u.forEach((b) => { u.forEach((b) => {
s.value.find((I) => I.id === b.uid ? (I.status = b.status, !0) : !1); 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({ ibiz.notification.error({
title: (a = i.status) == null ? void 0 : a.toString(), title: (a = i.status) == null ? void 0 : a.toString(),
desc: i.message, desc: i.message,
...@@ -550,7 +550,7 @@ function J(e) { ...@@ -550,7 +550,7 @@ function J(e) {
const w = window.Environment.previewFileUrl; const w = window.Environment.previewFileUrl;
if (w) { if (w) {
const i = encodeURIComponent( const i = encodeURIComponent(
$( H(
`${window.location.origin}${u.url}?fullfilename=${u.name}` `${window.location.origin}${u.url}?fullfilename=${u.name}`
) )
); );
...@@ -571,7 +571,7 @@ const Pe = U({ ...@@ -571,7 +571,7 @@ const Pe = U({
downloadUrl: n, downloadUrl: n,
uploadUrl: l, uploadUrl: l,
valueList: d valueList: d
} = H({ } = J({
value: s, value: s,
data: o, data: o,
controller: r controller: r
...@@ -582,7 +582,7 @@ const Pe = U({ ...@@ -582,7 +582,7 @@ const Pe = U({
iframeUrl: h, iframeUrl: h,
previewFile: C, previewFile: C,
onModalCancel: g onModalCancel: g
} = J({ } = Y({
downloadUrl: n, downloadUrl: n,
uploadUrl: l, uploadUrl: l,
value: d value: d
...@@ -655,6 +655,7 @@ const Pe = U({ ...@@ -655,6 +655,7 @@ const Pe = U({
}), Ne = U({ }), Ne = U({
name: "SyGridFileUploadContainer", name: "SyGridFileUploadContainer",
props: A(), props: A(),
emits: j(),
render(e) { render(e) {
return this.disabled || this.readonly ? e("SyGridFileUpload", { return this.disabled || this.readonly ? e("SyGridFileUpload", {
props: { props: {
...@@ -663,6 +664,14 @@ const Pe = U({ ...@@ -663,6 +664,14 @@ const Pe = U({
}) : e("SyEditGridFileUpload", { }) : e("SyEditGridFileUpload", {
props: { props: {
...this.$props ...this.$props
},
on: {
change: (t, s) => {
this.$emit("change", t, s);
},
rowSave: () => {
this.$emit("rowSave");
}
} }
}); });
} }
...@@ -701,11 +710,11 @@ const Le = U({ ...@@ -701,11 +710,11 @@ const Le = U({
fileList: l, fileList: l,
uploadState: d, uploadState: d,
selectFile: p selectFile: p
} = J({ } = Y({
downloadUrl: o, downloadUrl: o,
value: r, value: r,
uploadUrl: n uploadUrl: n
}), v = m(), y = m(!1), h = ie(v, async (f) => { }), v = m(), y = m(!1), h = re(v, async (f) => {
t("close", { t("close", {
isModified: y.value, isModified: y.value,
resultFiles: l.value resultFiles: l.value
...@@ -766,7 +775,7 @@ const Le = U({ ...@@ -766,7 +775,7 @@ const Le = U({
const _e = U({ const _e = U({
name: "SyEditGridFileUpload", name: "SyEditGridFileUpload",
props: A(), props: A(),
emits: re(), emits: j(),
setup(e, { setup(e, {
emit: t emit: t
}) { }) {
...@@ -778,7 +787,7 @@ const _e = U({ ...@@ -778,7 +787,7 @@ const _e = U({
downloadUrl: l, downloadUrl: l,
uploadUrl: d, uploadUrl: d,
valueList: p valueList: p
} = H({ } = J({
value: o, value: o,
data: r, data: r,
controller: n controller: n
...@@ -863,7 +872,7 @@ class Ge { ...@@ -863,7 +872,7 @@ class Ge {
k(this, "component", "IndexView"); k(this, "component", "IndexView");
} }
} }
const Y = U({ const K = U({
name: "WFStepTraceGrid", name: "WFStepTraceGrid",
props: { props: {
context: Object, context: Object,
...@@ -996,7 +1005,7 @@ const Y = U({ ...@@ -996,7 +1005,7 @@ const Y = U({
} }
if (this.c.complete && this.c.model.drTab.pages[0]) { 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]; const s = this.c.model.drTab.pages[0], o = this.c.drPages[s.source.name];
t.push(e(Y, { t.push(e(K, {
attrs: { attrs: {
context: o.context, context: o.context,
params: o.params, params: o.params,
...@@ -1052,7 +1061,7 @@ const Y = U({ ...@@ -1052,7 +1061,7 @@ const Y = U({
context: o.context, context: o.context,
params: o.params, params: o.params,
modal: { modal: {
mode: R.EMBED mode: $.EMBED
}, },
modelPath: s.embedView.source.modelPath, modelPath: s.embedView.source.modelPath,
deName: this.c.model.appEntity.source.codeName deName: this.c.model.appEntity.source.codeName
...@@ -1130,7 +1139,7 @@ const Oe = U({ ...@@ -1130,7 +1139,7 @@ const Oe = U({
on: { on: {
neuronInit: this.c.nerve.onNeuronInit(this.c.model.form.source.name) neuronInit: this.c.nerve.onNeuronInit(this.c.model.form.source.name)
} }
}), e(Y, { }), e(K, {
attrs: { attrs: {
context: this.c.drPages[this.c.model.drTab.pages[0].source.name].context, 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, params: this.c.drPages[this.c.model.drTab.pages[0].source.name].params,
...@@ -1154,7 +1163,7 @@ const Oe = U({ ...@@ -1154,7 +1163,7 @@ const Oe = U({
context: s.context, context: s.context,
params: s.params, params: s.params,
modal: { modal: {
mode: R.EMBED mode: $.EMBED
}, },
modelPath: t.embedView.source.modelPath, modelPath: t.embedView.source.modelPath,
deName: this.c.model.appEntity.source.codeName deName: this.c.model.appEntity.source.codeName
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册