sun-form-v3 1.0.164 → 1.0.165
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-Bqw5N-IV.js → index-20_m-rQM.js} +1 -1
- package/dist/index-BrLV5x9h.js +1 -0
- package/dist/{index-DDTkVPG2.js → index-CFYnbaA8.js} +1 -1
- package/dist/{index-DJVB3f7t.js → index-CwCAGSe4.js} +1 -1
- package/dist/{index-Bq93J7Ec.js → index-D3mZcxTR.js} +1 -1
- package/dist/{index-C4cZYhvS.js → index-DqBvr_aM.js} +1 -1
- package/dist/{index-Co4AAA5_.js → index-ZgoLmboU.js} +3 -3
- package/dist/{index-BC-MUWQK.js → index-nSMCg6Ur.js} +1 -1
- package/dist/sun-form-v3.es.js +1 -1
- package/dist/sun-form-v3.umd.js +1 -1
- package/package.json +1 -1
- package/dist/index-BODPDmlW.js +0 -1
@@ -1,5 +1,5 @@
|
|
1
1
|
import { computed as N, ref as y, resolveComponent as i, openBlock as C, createElementBlock as k, Fragment as O, createVNode as e, withCtx as l, createTextVNode as m, unref as d, isRef as j, createElementVNode as _, pushScopeId as I, popScopeId as J } from "vue";
|
2
|
-
import { _ as E } from "./index-
|
2
|
+
import { _ as E } from "./index-ZgoLmboU.js";
|
3
3
|
const H = (p) => (I("data-v-4c8b2df2"), p = p(), J(), p), B = /* @__PURE__ */ H(() => /* @__PURE__ */ _("span", null, "数据配置", -1)), T = { class: "h-full flex flex-col" }, D = { class: "flex-1 overflow-hidden" }, F = {
|
4
4
|
__name: "dataConfig",
|
5
5
|
props: {
|
@@ -0,0 +1 @@
|
|
1
|
+
import "./index-ZgoLmboU.js";
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { computed as j, ref as g, onMounted as $, resolveComponent as f, openBlock as _, createElementBlock as v, Fragment as x, createVNode as r, withCtx as o, createTextVNode as C, createElementVNode as u, renderList as B, unref as V, toDisplayString as N, nextTick as U, createBlock as D } from "vue";
|
2
|
-
import { e as E, i as M } from "./index-
|
2
|
+
import { e as E, i as M } from "./index-ZgoLmboU.js";
|
3
3
|
const R = /* @__PURE__ */ u("span", null, "图表选择", -1), S = { class: "flex-wrap flex" }, T = ["onClick"], z = { class: "inner cursor-pointer hover:shadow-md hover:shadow-blue-200 border w-full h-full p-1 flex flex-col overflow-hidden items-center rounded-md shadow-sm" }, F = { class: "lab border-t w-full text-center mt-1 font-bold" }, L = /* @__PURE__ */ Object.assign({ name: "chatChoose" }, {
|
4
4
|
__name: "chartChoose",
|
5
5
|
props: {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { computed as j, ref as y, resolveComponent as i, openBlock as h, createElementBlock as k, Fragment as U, createVNode as e, withCtx as l, createTextVNode as V, unref as d, isRef as z, createElementVNode as m, pushScopeId as I, popScopeId as J } from "vue";
|
2
|
-
import { _ as E, c as H } from "./index-
|
2
|
+
import { _ as E, c as H } from "./index-ZgoLmboU.js";
|
3
3
|
const B = (r) => (I("data-v-657a5bea"), r = r(), J(), r), T = /* @__PURE__ */ B(() => /* @__PURE__ */ m("span", null, "数据配置", -1)), D = { class: "h-full flex flex-col" }, F = { class: "flex-1 overflow-hidden" }, M = /* @__PURE__ */ Object.assign({ name: "commonStyleConfig" }, {
|
4
4
|
__name: "dataConfig",
|
5
5
|
props: {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref as g, resolveComponent as u, openBlock as b, createElementBlock as V, Fragment as w, createVNode as e, withCtx as n, unref as a } from "vue";
|
2
|
-
import { c } from "./index-
|
2
|
+
import { c } from "./index-ZgoLmboU.js";
|
3
3
|
const k = /* @__PURE__ */ Object.assign({ name: "config-text" }, {
|
4
4
|
__name: "index",
|
5
5
|
props: {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref as C, resolveComponent as m, openBlock as H, createElementBlock as S, Fragment as A, createVNode as e, unref as l, withCtx as a, createTextVNode as b, isRef as j, createElementVNode as g, toDisplayString as T, createCommentVNode as D, pushScopeId as c, popScopeId as q } from "vue";
|
2
|
-
import { _ as J } from "./index-
|
2
|
+
import { _ as J } from "./index-ZgoLmboU.js";
|
3
3
|
const E = (_) => (c("data-v-75dc2686"), _ = _(), q(), _), Q = /* @__PURE__ */ E(() => /* @__PURE__ */ g("span", null, "复杂表头配置", -1)), h = {
|
4
4
|
key: 0,
|
5
5
|
class: "flex h-full flex-col"
|
@@ -183755,7 +183755,7 @@ class lHe {
|
|
183755
183755
|
httpErrorHandle: a,
|
183756
183756
|
httpBeforeSendHandle: o,
|
183757
183757
|
headers: l
|
183758
|
-
},
|
183758
|
+
}, this.showMode = Fe(n), this.isDark = Fe(!1), this.$utils = Ve, e ? this.widgetConfig = Zi(e) : this.widgetConfig = Zi(this.$utils.clone(pp.homepage)), this.widgetMap = /* @__PURE__ */ new Map(), this.vueInstanceMap = /* @__PURE__ */ new Map(), this.paramsMap = /* @__PURE__ */ new Map(), c)
|
183759
183759
|
for (const p in c)
|
183760
183760
|
this.paramsMap.set(p, c[p]);
|
183761
183761
|
this.widgetIds = [], this.chosenWidget = Fe(null), this.historyList = [], this.historyIndex = Fe(0), this.isHistory = !1, this.$http = new iLn({
|
@@ -255398,7 +255398,7 @@ const Z6n = { key: 1 }, J6n = /* @__PURE__ */ Object.assign({ name: "widget-sfc"
|
|
255398
255398
|
"element-plus": P8t,
|
255399
255399
|
"@element-plus/icons-vue": f1t,
|
255400
255400
|
echarts: Mcn,
|
255401
|
-
"echarts-gl": () => import("./index-
|
255401
|
+
"echarts-gl": () => import("./index-BrLV5x9h.js")
|
255402
255402
|
},
|
255403
255403
|
async getFile(d) {
|
255404
255404
|
return d === "element-plus" ? "export * from 'element-plus'; export { default } from 'element-plus';" : d === "@element-plus/icons-vue" ? "export * from '@element-plus/icons-vue'; export { default } from '@element-plus/icons-vue';" : d === "echarts" ? "export * from 'echarts'; export { default } from 'echarts';" : d === "echarts-gl" ? "import 'echarts-gl'; export {};" : d === "vue" ? "export * from 'vue'; export { default } from 'vue';" : s();
|
@@ -259248,7 +259248,7 @@ const Z6n = { key: 1 }, J6n = /* @__PURE__ */ Object.assign({ name: "widget-sfc"
|
|
259248
259248
|
},
|
259249
259249
|
setup(t) {
|
259250
259250
|
const n = Object.fromEntries(
|
259251
|
-
Object.entries(/* @__PURE__ */ Object.assign({ "../widgetConfigComps/config-alert/index.vue": () => import("./index-ZVIqhtUw.js"), "../widgetConfigComps/config-button/index.vue": () => import("./index-CvnfmMTc.js"), "../widgetConfigComps/config-card/index.vue": () => import("./index-BJ0vPF5A.js"), "../widgetConfigComps/config-cascader/index.vue": () => import("./index-BcUJtkEW.js"), "../widgetConfigComps/config-checkCode/index.vue": () => import("./index-kUQct_cM.js"), "../widgetConfigComps/config-checkbox/index.vue": () => import("./index-DM5DPltp.js"), "../widgetConfigComps/config-codeEditor/index.vue": () => import("./index-CzkuANsf.js"), "../widgetConfigComps/config-datatable/index.vue": () => import("./index-
|
259251
|
+
Object.entries(/* @__PURE__ */ Object.assign({ "../widgetConfigComps/config-alert/index.vue": () => import("./index-ZVIqhtUw.js"), "../widgetConfigComps/config-button/index.vue": () => import("./index-CvnfmMTc.js"), "../widgetConfigComps/config-card/index.vue": () => import("./index-BJ0vPF5A.js"), "../widgetConfigComps/config-cascader/index.vue": () => import("./index-BcUJtkEW.js"), "../widgetConfigComps/config-checkCode/index.vue": () => import("./index-kUQct_cM.js"), "../widgetConfigComps/config-checkbox/index.vue": () => import("./index-DM5DPltp.js"), "../widgetConfigComps/config-codeEditor/index.vue": () => import("./index-CzkuANsf.js"), "../widgetConfigComps/config-datatable/index.vue": () => import("./index-DqBvr_aM.js"), "../widgetConfigComps/config-date/index.vue": () => import("./index-C0NmmaE2.js"), "../widgetConfigComps/config-div/index.vue": () => import("./index-BAEL_Fhr.js"), "../widgetConfigComps/config-echarts/index.vue": () => import("./index-CFYnbaA8.js"), "../widgetConfigComps/config-editor/index.vue": () => import("./index-CXNYHPLK.js"), "../widgetConfigComps/config-file/index.vue": () => import("./index-BRnMjd7_.js"), "../widgetConfigComps/config-form/index.vue": () => import("./index-CIaeKFCl.js"), "../widgetConfigComps/config-homepage/index.vue": () => import("./index-CifChfEv.js"), "../widgetConfigComps/config-image/index.vue": () => import("./index-dGJDj4ro.js"), "../widgetConfigComps/config-input/index.vue": () => import("./index-kzElMYkk.js"), "../widgetConfigComps/config-modal/index.vue": () => import("./index-CiNAZsvy.js"), "../widgetConfigComps/config-modal2/index.vue": () => import("./index-D7zr1ztZ.js"), "../widgetConfigComps/config-progress/index.vue": () => import("./index-c0zw96Jm.js"), "../widgetConfigComps/config-qrcode/index.vue": () => import("./index-DHjsGntq.js"), "../widgetConfigComps/config-radio/index.vue": () => import("./index-DYFp4hH-.js"), "../widgetConfigComps/config-rate/index.vue": () => import("./index-B0fldwhm.js"), "../widgetConfigComps/config-select/index.vue": () => import("./index-B1b5cejN.js"), "../widgetConfigComps/config-selects/index.vue": () => import("./index-CZZfzYn7.js"), "../widgetConfigComps/config-statistic/index.vue": () => import("./index-CwCAGSe4.js"), "../widgetConfigComps/config-steps/index.vue": () => import("./index-20_m-rQM.js"), "../widgetConfigComps/config-switch/index.vue": () => import("./index-Dag4zSq7.js"), "../widgetConfigComps/config-tag/index.vue": () => import("./index-D3mZcxTR.js"), "../widgetConfigComps/config-text/index.vue": () => import("./index-BYbxnzUx.js"), "../widgetConfigComps/config-time/index.vue": () => import("./index-zkXVDNsL.js"), "../widgetConfigComps/config-timeline/index.vue": () => import("./index-nSMCg6Ur.js"), "../widgetConfigComps/config-title/index.vue": () => import("./index-C78PiK5v.js"), "../widgetConfigComps/config-transfer/index.vue": () => import("./index-DQ3y00Pa.js") })).map(([h, f]) => {
|
259252
259252
|
const m = h.match(/\/([^/]+)\/index\.vue$/);
|
259253
259253
|
return [m ? m[1] : null, FKe(f)];
|
259254
259254
|
})
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { computed as N, ref as h, resolveComponent as u, openBlock as C, createElementBlock as U, Fragment as k, createVNode as e, withCtx as l, createTextVNode as g, unref as d, isRef as j, createElementVNode as c, pushScopeId as I, popScopeId as J } from "vue";
|
2
|
-
import { _ as T } from "./index-
|
2
|
+
import { _ as T } from "./index-ZgoLmboU.js";
|
3
3
|
const E = (m) => (I("data-v-ede8dcab"), m = m(), J(), m), H = /* @__PURE__ */ E(() => /* @__PURE__ */ c("span", null, "数据配置", -1)), B = { class: "h-full flex flex-col" }, D = { class: "flex-1 overflow-hidden" }, F = {
|
4
4
|
__name: "dataConfig",
|
5
5
|
props: {
|
package/dist/sun-form-v3.es.js
CHANGED
package/dist/sun-form-v3.umd.js
CHANGED
@@ -548,7 +548,7 @@ app.getMethodById("${c.id}").open(() => { ${g}})`,u.props.apiSetCreate={method:"
|
|
548
548
|
* @author Chen, Yi-Cyuan [emn178@gmail.com]
|
549
549
|
* @copyright Chen, Yi-Cyuan 2014-2023
|
550
550
|
* @license MIT
|
551
|
-
*/(function(t){(function(){var e="input is invalid type",n="finalize already called",r=typeof window=="object",i=r?window:{};i.JS_MD5_NO_WINDOW&&(r=!1);var o=!r&&typeof self=="object",a=!i.JS_MD5_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;a?i=Qg:o&&(i=self);var l=!i.JS_MD5_NO_COMMON_JS&&!0&&t.exports,c=!i.JS_MD5_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",u="0123456789abcdef".split(""),d=[128,32768,8388608,-2147483648],p=[0,8,16,24],f=["hex","array","digest","buffer","arrayBuffer","base64"],m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),h=[],g;if(c){var v=new ArrayBuffer(68);g=new Uint8Array(v),h=new Uint32Array(v)}var y=Array.isArray;(i.JS_MD5_NO_NODE_JS||!y)&&(y=function(k){return Object.prototype.toString.call(k)==="[object Array]"});var b=ArrayBuffer.isView;c&&(i.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW||!b)&&(b=function(k){return typeof k=="object"&&k.buffer&&k.buffer.constructor===ArrayBuffer});var _=function(k){var L=typeof k;if(L==="string")return[k,!0];if(L!=="object"||k===null)throw new Error(e);if(c&&k.constructor===ArrayBuffer)return[new Uint8Array(k),!1];if(!y(k)&&!b(k))throw new Error(e);return[k,!1]},S=function(k){return function(L){return new N(!0).update(L)[k]()}},E=function(){var k=S("hex");a&&(k=x(k)),k.create=function(){return new N},k.update=function(F){return k.create().update(F)};for(var L=0;L<f.length;++L){var M=f[L];k[M]=S(M)}return k},x=function(k){var L=Wre,M=Wre.Buffer,F;M.from&&!i.JS_MD5_NO_BUFFER_FROM?F=M.from:F=function(z){return new M(z)};var $=function(z){if(typeof z=="string")return L.createHash("md5").update(z,"utf8").digest("hex");if(z==null)throw new Error(e);return z.constructor===ArrayBuffer&&(z=new Uint8Array(z)),y(z)||b(z)||z.constructor===M?L.createHash("md5").update(F(z)).digest("hex"):k(z)};return $},T=function(k){return function(L,M){return new R(L,!0).update(M)[k]()}},O=function(){var k=T("hex");k.create=function(F){return new R(F)},k.update=function(F,$){return k.create(F).update($)};for(var L=0;L<f.length;++L){var M=f[L];k[M]=T(M)}return k};function N(k){if(k)h[0]=h[16]=h[1]=h[2]=h[3]=h[4]=h[5]=h[6]=h[7]=h[8]=h[9]=h[10]=h[11]=h[12]=h[13]=h[14]=h[15]=0,this.blocks=h,this.buffer8=g;else if(c){var L=new ArrayBuffer(68);this.buffer8=new Uint8Array(L),this.blocks=new Uint32Array(L)}else this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}N.prototype.update=function(k){if(this.finalized)throw new Error(n);var L=_(k);k=L[0];for(var M=L[1],F,$=0,z,H=k.length,W=this.blocks,Q=this.buffer8;$<H;){if(this.hashed&&(this.hashed=!1,W[0]=W[16],W[16]=W[1]=W[2]=W[3]=W[4]=W[5]=W[6]=W[7]=W[8]=W[9]=W[10]=W[11]=W[12]=W[13]=W[14]=W[15]=0),M)if(c)for(z=this.start;$<H&&z<64;++$)F=k.charCodeAt($),F<128?Q[z++]=F:F<2048?(Q[z++]=192|F>>>6,Q[z++]=128|F&63):F<55296||F>=57344?(Q[z++]=224|F>>>12,Q[z++]=128|F>>>6&63,Q[z++]=128|F&63):(F=65536+((F&1023)<<10|k.charCodeAt(++$)&1023),Q[z++]=240|F>>>18,Q[z++]=128|F>>>12&63,Q[z++]=128|F>>>6&63,Q[z++]=128|F&63);else for(z=this.start;$<H&&z<64;++$)F=k.charCodeAt($),F<128?W[z>>>2]|=F<<p[z++&3]:F<2048?(W[z>>>2]|=(192|F>>>6)<<p[z++&3],W[z>>>2]|=(128|F&63)<<p[z++&3]):F<55296||F>=57344?(W[z>>>2]|=(224|F>>>12)<<p[z++&3],W[z>>>2]|=(128|F>>>6&63)<<p[z++&3],W[z>>>2]|=(128|F&63)<<p[z++&3]):(F=65536+((F&1023)<<10|k.charCodeAt(++$)&1023),W[z>>>2]|=(240|F>>>18)<<p[z++&3],W[z>>>2]|=(128|F>>>12&63)<<p[z++&3],W[z>>>2]|=(128|F>>>6&63)<<p[z++&3],W[z>>>2]|=(128|F&63)<<p[z++&3]);else if(c)for(z=this.start;$<H&&z<64;++$)Q[z++]=k[$];else for(z=this.start;$<H&&z<64;++$)W[z>>>2]|=k[$]<<p[z++&3];this.lastByteIndex=z,this.bytes+=z-this.start,z>=64?(this.start=z-64,this.hash(),this.hashed=!0):this.start=z}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this},N.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var k=this.blocks,L=this.lastByteIndex;k[L>>>2]|=d[L&3],L>=56&&(this.hashed||this.hash(),k[0]=k[16],k[16]=k[1]=k[2]=k[3]=k[4]=k[5]=k[6]=k[7]=k[8]=k[9]=k[10]=k[11]=k[12]=k[13]=k[14]=k[15]=0),k[14]=this.bytes<<3,k[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},N.prototype.hash=function(){var k,L,M,F,$,z,H=this.blocks;this.first?(k=H[0]-680876937,k=(k<<7|k>>>25)-271733879<<0,F=(-1732584194^k&2004318071)+H[1]-117830708,F=(F<<12|F>>>20)+k<<0,M=(-271733879^F&(k^-271733879))+H[2]-1126478375,M=(M<<17|M>>>15)+F<<0,L=(k^M&(F^k))+H[3]-1316259209,L=(L<<22|L>>>10)+M<<0):(k=this.h0,L=this.h1,M=this.h2,F=this.h3,k+=(F^L&(M^F))+H[0]-680876936,k=(k<<7|k>>>25)+L<<0,F+=(M^k&(L^M))+H[1]-389564586,F=(F<<12|F>>>20)+k<<0,M+=(L^F&(k^L))+H[2]+606105819,M=(M<<17|M>>>15)+F<<0,L+=(k^M&(F^k))+H[3]-1044525330,L=(L<<22|L>>>10)+M<<0),k+=(F^L&(M^F))+H[4]-176418897,k=(k<<7|k>>>25)+L<<0,F+=(M^k&(L^M))+H[5]+1200080426,F=(F<<12|F>>>20)+k<<0,M+=(L^F&(k^L))+H[6]-1473231341,M=(M<<17|M>>>15)+F<<0,L+=(k^M&(F^k))+H[7]-45705983,L=(L<<22|L>>>10)+M<<0,k+=(F^L&(M^F))+H[8]+1770035416,k=(k<<7|k>>>25)+L<<0,F+=(M^k&(L^M))+H[9]-1958414417,F=(F<<12|F>>>20)+k<<0,M+=(L^F&(k^L))+H[10]-42063,M=(M<<17|M>>>15)+F<<0,L+=(k^M&(F^k))+H[11]-1990404162,L=(L<<22|L>>>10)+M<<0,k+=(F^L&(M^F))+H[12]+1804603682,k=(k<<7|k>>>25)+L<<0,F+=(M^k&(L^M))+H[13]-40341101,F=(F<<12|F>>>20)+k<<0,M+=(L^F&(k^L))+H[14]-1502002290,M=(M<<17|M>>>15)+F<<0,L+=(k^M&(F^k))+H[15]+1236535329,L=(L<<22|L>>>10)+M<<0,k+=(M^F&(L^M))+H[1]-165796510,k=(k<<5|k>>>27)+L<<0,F+=(L^M&(k^L))+H[6]-1069501632,F=(F<<9|F>>>23)+k<<0,M+=(k^L&(F^k))+H[11]+643717713,M=(M<<14|M>>>18)+F<<0,L+=(F^k&(M^F))+H[0]-373897302,L=(L<<20|L>>>12)+M<<0,k+=(M^F&(L^M))+H[5]-701558691,k=(k<<5|k>>>27)+L<<0,F+=(L^M&(k^L))+H[10]+38016083,F=(F<<9|F>>>23)+k<<0,M+=(k^L&(F^k))+H[15]-660478335,M=(M<<14|M>>>18)+F<<0,L+=(F^k&(M^F))+H[4]-405537848,L=(L<<20|L>>>12)+M<<0,k+=(M^F&(L^M))+H[9]+568446438,k=(k<<5|k>>>27)+L<<0,F+=(L^M&(k^L))+H[14]-1019803690,F=(F<<9|F>>>23)+k<<0,M+=(k^L&(F^k))+H[3]-187363961,M=(M<<14|M>>>18)+F<<0,L+=(F^k&(M^F))+H[8]+1163531501,L=(L<<20|L>>>12)+M<<0,k+=(M^F&(L^M))+H[13]-1444681467,k=(k<<5|k>>>27)+L<<0,F+=(L^M&(k^L))+H[2]-51403784,F=(F<<9|F>>>23)+k<<0,M+=(k^L&(F^k))+H[7]+1735328473,M=(M<<14|M>>>18)+F<<0,L+=(F^k&(M^F))+H[12]-1926607734,L=(L<<20|L>>>12)+M<<0,$=L^M,k+=($^F)+H[5]-378558,k=(k<<4|k>>>28)+L<<0,F+=($^k)+H[8]-2022574463,F=(F<<11|F>>>21)+k<<0,z=F^k,M+=(z^L)+H[11]+1839030562,M=(M<<16|M>>>16)+F<<0,L+=(z^M)+H[14]-35309556,L=(L<<23|L>>>9)+M<<0,$=L^M,k+=($^F)+H[1]-1530992060,k=(k<<4|k>>>28)+L<<0,F+=($^k)+H[4]+1272893353,F=(F<<11|F>>>21)+k<<0,z=F^k,M+=(z^L)+H[7]-155497632,M=(M<<16|M>>>16)+F<<0,L+=(z^M)+H[10]-1094730640,L=(L<<23|L>>>9)+M<<0,$=L^M,k+=($^F)+H[13]+681279174,k=(k<<4|k>>>28)+L<<0,F+=($^k)+H[0]-358537222,F=(F<<11|F>>>21)+k<<0,z=F^k,M+=(z^L)+H[3]-722521979,M=(M<<16|M>>>16)+F<<0,L+=(z^M)+H[6]+76029189,L=(L<<23|L>>>9)+M<<0,$=L^M,k+=($^F)+H[9]-640364487,k=(k<<4|k>>>28)+L<<0,F+=($^k)+H[12]-421815835,F=(F<<11|F>>>21)+k<<0,z=F^k,M+=(z^L)+H[15]+530742520,M=(M<<16|M>>>16)+F<<0,L+=(z^M)+H[2]-995338651,L=(L<<23|L>>>9)+M<<0,k+=(M^(L|~F))+H[0]-198630844,k=(k<<6|k>>>26)+L<<0,F+=(L^(k|~M))+H[7]+1126891415,F=(F<<10|F>>>22)+k<<0,M+=(k^(F|~L))+H[14]-1416354905,M=(M<<15|M>>>17)+F<<0,L+=(F^(M|~k))+H[5]-57434055,L=(L<<21|L>>>11)+M<<0,k+=(M^(L|~F))+H[12]+1700485571,k=(k<<6|k>>>26)+L<<0,F+=(L^(k|~M))+H[3]-1894986606,F=(F<<10|F>>>22)+k<<0,M+=(k^(F|~L))+H[10]-1051523,M=(M<<15|M>>>17)+F<<0,L+=(F^(M|~k))+H[1]-2054922799,L=(L<<21|L>>>11)+M<<0,k+=(M^(L|~F))+H[8]+1873313359,k=(k<<6|k>>>26)+L<<0,F+=(L^(k|~M))+H[15]-30611744,F=(F<<10|F>>>22)+k<<0,M+=(k^(F|~L))+H[6]-1560198380,M=(M<<15|M>>>17)+F<<0,L+=(F^(M|~k))+H[13]+1309151649,L=(L<<21|L>>>11)+M<<0,k+=(M^(L|~F))+H[4]-145523070,k=(k<<6|k>>>26)+L<<0,F+=(L^(k|~M))+H[11]-1120210379,F=(F<<10|F>>>22)+k<<0,M+=(k^(F|~L))+H[2]+718787259,M=(M<<15|M>>>17)+F<<0,L+=(F^(M|~k))+H[9]-343485551,L=(L<<21|L>>>11)+M<<0,this.first?(this.h0=k+1732584193<<0,this.h1=L-271733879<<0,this.h2=M-1732584194<<0,this.h3=F+271733878<<0,this.first=!1):(this.h0=this.h0+k<<0,this.h1=this.h1+L<<0,this.h2=this.h2+M<<0,this.h3=this.h3+F<<0)},N.prototype.hex=function(){this.finalize();var k=this.h0,L=this.h1,M=this.h2,F=this.h3;return u[k>>>4&15]+u[k&15]+u[k>>>12&15]+u[k>>>8&15]+u[k>>>20&15]+u[k>>>16&15]+u[k>>>28&15]+u[k>>>24&15]+u[L>>>4&15]+u[L&15]+u[L>>>12&15]+u[L>>>8&15]+u[L>>>20&15]+u[L>>>16&15]+u[L>>>28&15]+u[L>>>24&15]+u[M>>>4&15]+u[M&15]+u[M>>>12&15]+u[M>>>8&15]+u[M>>>20&15]+u[M>>>16&15]+u[M>>>28&15]+u[M>>>24&15]+u[F>>>4&15]+u[F&15]+u[F>>>12&15]+u[F>>>8&15]+u[F>>>20&15]+u[F>>>16&15]+u[F>>>28&15]+u[F>>>24&15]},N.prototype.toString=N.prototype.hex,N.prototype.digest=function(){this.finalize();var k=this.h0,L=this.h1,M=this.h2,F=this.h3;return[k&255,k>>>8&255,k>>>16&255,k>>>24&255,L&255,L>>>8&255,L>>>16&255,L>>>24&255,M&255,M>>>8&255,M>>>16&255,M>>>24&255,F&255,F>>>8&255,F>>>16&255,F>>>24&255]},N.prototype.array=N.prototype.digest,N.prototype.arrayBuffer=function(){this.finalize();var k=new ArrayBuffer(16),L=new Uint32Array(k);return L[0]=this.h0,L[1]=this.h1,L[2]=this.h2,L[3]=this.h3,k},N.prototype.buffer=N.prototype.arrayBuffer,N.prototype.base64=function(){for(var k,L,M,F="",$=this.array(),z=0;z<15;)k=$[z++],L=$[z++],M=$[z++],F+=m[k>>>2]+m[(k<<4|L>>>4)&63]+m[(L<<2|M>>>6)&63]+m[M&63];return k=$[z],F+=m[k>>>2]+m[k<<4&63]+"==",F};function R(k,L){var M,F=_(k);if(k=F[0],F[1]){var $=[],z=k.length,H=0,W;for(M=0;M<z;++M)W=k.charCodeAt(M),W<128?$[H++]=W:W<2048?($[H++]=192|W>>>6,$[H++]=128|W&63):W<55296||W>=57344?($[H++]=224|W>>>12,$[H++]=128|W>>>6&63,$[H++]=128|W&63):(W=65536+((W&1023)<<10|k.charCodeAt(++M)&1023),$[H++]=240|W>>>18,$[H++]=128|W>>>12&63,$[H++]=128|W>>>6&63,$[H++]=128|W&63);k=$}k.length>64&&(k=new N(!0).update(k).array());var Q=[],ae=[];for(M=0;M<64;++M){var V=k[M]||0;Q[M]=92^V,ae[M]=54^V}N.call(this,L),this.update(ae),this.oKeyPad=Q,this.inner=!0,this.sharedMemory=L}R.prototype=new N,R.prototype.finalize=function(){if(N.prototype.finalize.call(this),this.inner){this.inner=!1;var k=this.array();N.call(this,this.sharedMemory),this.update(this.oKeyPad),this.update(k),N.prototype.finalize.call(this)}};var P=E();P.md5=P,P.md5.hmac=O(),l?t.exports=P:i.md5=P})()})(s9e);var wNn=s9e.exports;const TNn=Ht(wNn);class l9e{constructor({widgetConfig:e,showMode:n=!1,baseUrl:r="",httpSuccessHandle:i=null,httpErrorHandle:o=null,httpBeforeSendHandle:a=null,parentApp:l=null,headers:c={},params:u={},emit:d,autoInjectTailwind:p=!0}){if(this.$message=Wd,this.$confirm=xB.confirm,this.$prompt=xB.prompt,this.$notify=JD,this.md5=TNn,this.emit=d,this.parentApp=l,this.params=u,this.options={baseUrl:r,httpSuccessHandle:i,httpErrorHandle:o,httpBeforeSendHandle:a,headers:c},p&&this.injectTailwindScript(),this.showMode=s.ref(n),this.isDark=s.ref(!1),this.$utils=Me,e?this.widgetConfig=s.reactive(e):this.widgetConfig=s.reactive(this.$utils.clone(gd.homepage)),this.widgetMap=new Map,this.vueInstanceMap=new Map,this.paramsMap=new Map,u)for(const f in u)this.paramsMap.set(f,u[f]);this.widgetIds=[],this.chosenWidget=s.ref(null),this.historyList=[],this.historyIndex=s.ref(0),this.isHistory=!1,this.$http=new SNn({baseUrl:r,httpSuccessHandle:i,httpErrorHandle:o,httpBeforeSendHandle:a,headers:c}),this.buildWidgetMap(this.widgetConfig),s.watch(()=>this.widgetConfig,f=>{this.rebuildWidgetMap(),this.chosenWidget.value=this.getWidgetById(this.widgetConfig.chosenId)},{deep:!0,immediate:!0}),s.watch(()=>this.widgetConfig.widgetList,f=>{this.isHistory?this.isHistory=!1:(this.historyList.push({widgetConfig:this.$utils.clone(this.widgetConfig,!0),time:this.$utils.toDateString(new Date,"HH:mm:ss"),index:this.historyList.length}),this.historyIndex.value=this.historyList.length-1)},{deep:!0,immediate:!0})}async eventHandle({value:e=null,eventType:n,widget:r,cb:i,tableItemData:o,tableColumn:a,showInDesign:l}){if(!(!this.showMode&&!l)&&r.props[n]){let c=r.props[n],d=await new Function("value","widget","self","tableItemData","tableColumn","app",`return (async function(){
|
551
|
+
*/(function(t){(function(){var e="input is invalid type",n="finalize already called",r=typeof window=="object",i=r?window:{};i.JS_MD5_NO_WINDOW&&(r=!1);var o=!r&&typeof self=="object",a=!i.JS_MD5_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;a?i=Qg:o&&(i=self);var l=!i.JS_MD5_NO_COMMON_JS&&!0&&t.exports,c=!i.JS_MD5_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",u="0123456789abcdef".split(""),d=[128,32768,8388608,-2147483648],p=[0,8,16,24],f=["hex","array","digest","buffer","arrayBuffer","base64"],m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),h=[],g;if(c){var v=new ArrayBuffer(68);g=new Uint8Array(v),h=new Uint32Array(v)}var y=Array.isArray;(i.JS_MD5_NO_NODE_JS||!y)&&(y=function(k){return Object.prototype.toString.call(k)==="[object Array]"});var b=ArrayBuffer.isView;c&&(i.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW||!b)&&(b=function(k){return typeof k=="object"&&k.buffer&&k.buffer.constructor===ArrayBuffer});var _=function(k){var L=typeof k;if(L==="string")return[k,!0];if(L!=="object"||k===null)throw new Error(e);if(c&&k.constructor===ArrayBuffer)return[new Uint8Array(k),!1];if(!y(k)&&!b(k))throw new Error(e);return[k,!1]},S=function(k){return function(L){return new N(!0).update(L)[k]()}},E=function(){var k=S("hex");a&&(k=x(k)),k.create=function(){return new N},k.update=function(F){return k.create().update(F)};for(var L=0;L<f.length;++L){var M=f[L];k[M]=S(M)}return k},x=function(k){var L=Wre,M=Wre.Buffer,F;M.from&&!i.JS_MD5_NO_BUFFER_FROM?F=M.from:F=function(z){return new M(z)};var $=function(z){if(typeof z=="string")return L.createHash("md5").update(z,"utf8").digest("hex");if(z==null)throw new Error(e);return z.constructor===ArrayBuffer&&(z=new Uint8Array(z)),y(z)||b(z)||z.constructor===M?L.createHash("md5").update(F(z)).digest("hex"):k(z)};return $},T=function(k){return function(L,M){return new R(L,!0).update(M)[k]()}},O=function(){var k=T("hex");k.create=function(F){return new R(F)},k.update=function(F,$){return k.create(F).update($)};for(var L=0;L<f.length;++L){var M=f[L];k[M]=T(M)}return k};function N(k){if(k)h[0]=h[16]=h[1]=h[2]=h[3]=h[4]=h[5]=h[6]=h[7]=h[8]=h[9]=h[10]=h[11]=h[12]=h[13]=h[14]=h[15]=0,this.blocks=h,this.buffer8=g;else if(c){var L=new ArrayBuffer(68);this.buffer8=new Uint8Array(L),this.blocks=new Uint32Array(L)}else this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}N.prototype.update=function(k){if(this.finalized)throw new Error(n);var L=_(k);k=L[0];for(var M=L[1],F,$=0,z,H=k.length,W=this.blocks,Q=this.buffer8;$<H;){if(this.hashed&&(this.hashed=!1,W[0]=W[16],W[16]=W[1]=W[2]=W[3]=W[4]=W[5]=W[6]=W[7]=W[8]=W[9]=W[10]=W[11]=W[12]=W[13]=W[14]=W[15]=0),M)if(c)for(z=this.start;$<H&&z<64;++$)F=k.charCodeAt($),F<128?Q[z++]=F:F<2048?(Q[z++]=192|F>>>6,Q[z++]=128|F&63):F<55296||F>=57344?(Q[z++]=224|F>>>12,Q[z++]=128|F>>>6&63,Q[z++]=128|F&63):(F=65536+((F&1023)<<10|k.charCodeAt(++$)&1023),Q[z++]=240|F>>>18,Q[z++]=128|F>>>12&63,Q[z++]=128|F>>>6&63,Q[z++]=128|F&63);else for(z=this.start;$<H&&z<64;++$)F=k.charCodeAt($),F<128?W[z>>>2]|=F<<p[z++&3]:F<2048?(W[z>>>2]|=(192|F>>>6)<<p[z++&3],W[z>>>2]|=(128|F&63)<<p[z++&3]):F<55296||F>=57344?(W[z>>>2]|=(224|F>>>12)<<p[z++&3],W[z>>>2]|=(128|F>>>6&63)<<p[z++&3],W[z>>>2]|=(128|F&63)<<p[z++&3]):(F=65536+((F&1023)<<10|k.charCodeAt(++$)&1023),W[z>>>2]|=(240|F>>>18)<<p[z++&3],W[z>>>2]|=(128|F>>>12&63)<<p[z++&3],W[z>>>2]|=(128|F>>>6&63)<<p[z++&3],W[z>>>2]|=(128|F&63)<<p[z++&3]);else if(c)for(z=this.start;$<H&&z<64;++$)Q[z++]=k[$];else for(z=this.start;$<H&&z<64;++$)W[z>>>2]|=k[$]<<p[z++&3];this.lastByteIndex=z,this.bytes+=z-this.start,z>=64?(this.start=z-64,this.hash(),this.hashed=!0):this.start=z}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this},N.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var k=this.blocks,L=this.lastByteIndex;k[L>>>2]|=d[L&3],L>=56&&(this.hashed||this.hash(),k[0]=k[16],k[16]=k[1]=k[2]=k[3]=k[4]=k[5]=k[6]=k[7]=k[8]=k[9]=k[10]=k[11]=k[12]=k[13]=k[14]=k[15]=0),k[14]=this.bytes<<3,k[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},N.prototype.hash=function(){var k,L,M,F,$,z,H=this.blocks;this.first?(k=H[0]-680876937,k=(k<<7|k>>>25)-271733879<<0,F=(-1732584194^k&2004318071)+H[1]-117830708,F=(F<<12|F>>>20)+k<<0,M=(-271733879^F&(k^-271733879))+H[2]-1126478375,M=(M<<17|M>>>15)+F<<0,L=(k^M&(F^k))+H[3]-1316259209,L=(L<<22|L>>>10)+M<<0):(k=this.h0,L=this.h1,M=this.h2,F=this.h3,k+=(F^L&(M^F))+H[0]-680876936,k=(k<<7|k>>>25)+L<<0,F+=(M^k&(L^M))+H[1]-389564586,F=(F<<12|F>>>20)+k<<0,M+=(L^F&(k^L))+H[2]+606105819,M=(M<<17|M>>>15)+F<<0,L+=(k^M&(F^k))+H[3]-1044525330,L=(L<<22|L>>>10)+M<<0),k+=(F^L&(M^F))+H[4]-176418897,k=(k<<7|k>>>25)+L<<0,F+=(M^k&(L^M))+H[5]+1200080426,F=(F<<12|F>>>20)+k<<0,M+=(L^F&(k^L))+H[6]-1473231341,M=(M<<17|M>>>15)+F<<0,L+=(k^M&(F^k))+H[7]-45705983,L=(L<<22|L>>>10)+M<<0,k+=(F^L&(M^F))+H[8]+1770035416,k=(k<<7|k>>>25)+L<<0,F+=(M^k&(L^M))+H[9]-1958414417,F=(F<<12|F>>>20)+k<<0,M+=(L^F&(k^L))+H[10]-42063,M=(M<<17|M>>>15)+F<<0,L+=(k^M&(F^k))+H[11]-1990404162,L=(L<<22|L>>>10)+M<<0,k+=(F^L&(M^F))+H[12]+1804603682,k=(k<<7|k>>>25)+L<<0,F+=(M^k&(L^M))+H[13]-40341101,F=(F<<12|F>>>20)+k<<0,M+=(L^F&(k^L))+H[14]-1502002290,M=(M<<17|M>>>15)+F<<0,L+=(k^M&(F^k))+H[15]+1236535329,L=(L<<22|L>>>10)+M<<0,k+=(M^F&(L^M))+H[1]-165796510,k=(k<<5|k>>>27)+L<<0,F+=(L^M&(k^L))+H[6]-1069501632,F=(F<<9|F>>>23)+k<<0,M+=(k^L&(F^k))+H[11]+643717713,M=(M<<14|M>>>18)+F<<0,L+=(F^k&(M^F))+H[0]-373897302,L=(L<<20|L>>>12)+M<<0,k+=(M^F&(L^M))+H[5]-701558691,k=(k<<5|k>>>27)+L<<0,F+=(L^M&(k^L))+H[10]+38016083,F=(F<<9|F>>>23)+k<<0,M+=(k^L&(F^k))+H[15]-660478335,M=(M<<14|M>>>18)+F<<0,L+=(F^k&(M^F))+H[4]-405537848,L=(L<<20|L>>>12)+M<<0,k+=(M^F&(L^M))+H[9]+568446438,k=(k<<5|k>>>27)+L<<0,F+=(L^M&(k^L))+H[14]-1019803690,F=(F<<9|F>>>23)+k<<0,M+=(k^L&(F^k))+H[3]-187363961,M=(M<<14|M>>>18)+F<<0,L+=(F^k&(M^F))+H[8]+1163531501,L=(L<<20|L>>>12)+M<<0,k+=(M^F&(L^M))+H[13]-1444681467,k=(k<<5|k>>>27)+L<<0,F+=(L^M&(k^L))+H[2]-51403784,F=(F<<9|F>>>23)+k<<0,M+=(k^L&(F^k))+H[7]+1735328473,M=(M<<14|M>>>18)+F<<0,L+=(F^k&(M^F))+H[12]-1926607734,L=(L<<20|L>>>12)+M<<0,$=L^M,k+=($^F)+H[5]-378558,k=(k<<4|k>>>28)+L<<0,F+=($^k)+H[8]-2022574463,F=(F<<11|F>>>21)+k<<0,z=F^k,M+=(z^L)+H[11]+1839030562,M=(M<<16|M>>>16)+F<<0,L+=(z^M)+H[14]-35309556,L=(L<<23|L>>>9)+M<<0,$=L^M,k+=($^F)+H[1]-1530992060,k=(k<<4|k>>>28)+L<<0,F+=($^k)+H[4]+1272893353,F=(F<<11|F>>>21)+k<<0,z=F^k,M+=(z^L)+H[7]-155497632,M=(M<<16|M>>>16)+F<<0,L+=(z^M)+H[10]-1094730640,L=(L<<23|L>>>9)+M<<0,$=L^M,k+=($^F)+H[13]+681279174,k=(k<<4|k>>>28)+L<<0,F+=($^k)+H[0]-358537222,F=(F<<11|F>>>21)+k<<0,z=F^k,M+=(z^L)+H[3]-722521979,M=(M<<16|M>>>16)+F<<0,L+=(z^M)+H[6]+76029189,L=(L<<23|L>>>9)+M<<0,$=L^M,k+=($^F)+H[9]-640364487,k=(k<<4|k>>>28)+L<<0,F+=($^k)+H[12]-421815835,F=(F<<11|F>>>21)+k<<0,z=F^k,M+=(z^L)+H[15]+530742520,M=(M<<16|M>>>16)+F<<0,L+=(z^M)+H[2]-995338651,L=(L<<23|L>>>9)+M<<0,k+=(M^(L|~F))+H[0]-198630844,k=(k<<6|k>>>26)+L<<0,F+=(L^(k|~M))+H[7]+1126891415,F=(F<<10|F>>>22)+k<<0,M+=(k^(F|~L))+H[14]-1416354905,M=(M<<15|M>>>17)+F<<0,L+=(F^(M|~k))+H[5]-57434055,L=(L<<21|L>>>11)+M<<0,k+=(M^(L|~F))+H[12]+1700485571,k=(k<<6|k>>>26)+L<<0,F+=(L^(k|~M))+H[3]-1894986606,F=(F<<10|F>>>22)+k<<0,M+=(k^(F|~L))+H[10]-1051523,M=(M<<15|M>>>17)+F<<0,L+=(F^(M|~k))+H[1]-2054922799,L=(L<<21|L>>>11)+M<<0,k+=(M^(L|~F))+H[8]+1873313359,k=(k<<6|k>>>26)+L<<0,F+=(L^(k|~M))+H[15]-30611744,F=(F<<10|F>>>22)+k<<0,M+=(k^(F|~L))+H[6]-1560198380,M=(M<<15|M>>>17)+F<<0,L+=(F^(M|~k))+H[13]+1309151649,L=(L<<21|L>>>11)+M<<0,k+=(M^(L|~F))+H[4]-145523070,k=(k<<6|k>>>26)+L<<0,F+=(L^(k|~M))+H[11]-1120210379,F=(F<<10|F>>>22)+k<<0,M+=(k^(F|~L))+H[2]+718787259,M=(M<<15|M>>>17)+F<<0,L+=(F^(M|~k))+H[9]-343485551,L=(L<<21|L>>>11)+M<<0,this.first?(this.h0=k+1732584193<<0,this.h1=L-271733879<<0,this.h2=M-1732584194<<0,this.h3=F+271733878<<0,this.first=!1):(this.h0=this.h0+k<<0,this.h1=this.h1+L<<0,this.h2=this.h2+M<<0,this.h3=this.h3+F<<0)},N.prototype.hex=function(){this.finalize();var k=this.h0,L=this.h1,M=this.h2,F=this.h3;return u[k>>>4&15]+u[k&15]+u[k>>>12&15]+u[k>>>8&15]+u[k>>>20&15]+u[k>>>16&15]+u[k>>>28&15]+u[k>>>24&15]+u[L>>>4&15]+u[L&15]+u[L>>>12&15]+u[L>>>8&15]+u[L>>>20&15]+u[L>>>16&15]+u[L>>>28&15]+u[L>>>24&15]+u[M>>>4&15]+u[M&15]+u[M>>>12&15]+u[M>>>8&15]+u[M>>>20&15]+u[M>>>16&15]+u[M>>>28&15]+u[M>>>24&15]+u[F>>>4&15]+u[F&15]+u[F>>>12&15]+u[F>>>8&15]+u[F>>>20&15]+u[F>>>16&15]+u[F>>>28&15]+u[F>>>24&15]},N.prototype.toString=N.prototype.hex,N.prototype.digest=function(){this.finalize();var k=this.h0,L=this.h1,M=this.h2,F=this.h3;return[k&255,k>>>8&255,k>>>16&255,k>>>24&255,L&255,L>>>8&255,L>>>16&255,L>>>24&255,M&255,M>>>8&255,M>>>16&255,M>>>24&255,F&255,F>>>8&255,F>>>16&255,F>>>24&255]},N.prototype.array=N.prototype.digest,N.prototype.arrayBuffer=function(){this.finalize();var k=new ArrayBuffer(16),L=new Uint32Array(k);return L[0]=this.h0,L[1]=this.h1,L[2]=this.h2,L[3]=this.h3,k},N.prototype.buffer=N.prototype.arrayBuffer,N.prototype.base64=function(){for(var k,L,M,F="",$=this.array(),z=0;z<15;)k=$[z++],L=$[z++],M=$[z++],F+=m[k>>>2]+m[(k<<4|L>>>4)&63]+m[(L<<2|M>>>6)&63]+m[M&63];return k=$[z],F+=m[k>>>2]+m[k<<4&63]+"==",F};function R(k,L){var M,F=_(k);if(k=F[0],F[1]){var $=[],z=k.length,H=0,W;for(M=0;M<z;++M)W=k.charCodeAt(M),W<128?$[H++]=W:W<2048?($[H++]=192|W>>>6,$[H++]=128|W&63):W<55296||W>=57344?($[H++]=224|W>>>12,$[H++]=128|W>>>6&63,$[H++]=128|W&63):(W=65536+((W&1023)<<10|k.charCodeAt(++M)&1023),$[H++]=240|W>>>18,$[H++]=128|W>>>12&63,$[H++]=128|W>>>6&63,$[H++]=128|W&63);k=$}k.length>64&&(k=new N(!0).update(k).array());var Q=[],ae=[];for(M=0;M<64;++M){var V=k[M]||0;Q[M]=92^V,ae[M]=54^V}N.call(this,L),this.update(ae),this.oKeyPad=Q,this.inner=!0,this.sharedMemory=L}R.prototype=new N,R.prototype.finalize=function(){if(N.prototype.finalize.call(this),this.inner){this.inner=!1;var k=this.array();N.call(this,this.sharedMemory),this.update(this.oKeyPad),this.update(k),N.prototype.finalize.call(this)}};var P=E();P.md5=P,P.md5.hmac=O(),l?t.exports=P:i.md5=P})()})(s9e);var wNn=s9e.exports;const TNn=Ht(wNn);class l9e{constructor({widgetConfig:e,showMode:n=!1,baseUrl:r="",httpSuccessHandle:i=null,httpErrorHandle:o=null,httpBeforeSendHandle:a=null,parentApp:l=null,headers:c={},params:u={},emit:d,autoInjectTailwind:p=!0}){if(this.$message=Wd,this.$confirm=xB.confirm,this.$prompt=xB.prompt,this.$notify=JD,this.md5=TNn,this.emit=d,this.parentApp=l,this.params=u,this.options={baseUrl:r,httpSuccessHandle:i,httpErrorHandle:o,httpBeforeSendHandle:a,headers:c},this.showMode=s.ref(n),this.isDark=s.ref(!1),this.$utils=Me,e?this.widgetConfig=s.reactive(e):this.widgetConfig=s.reactive(this.$utils.clone(gd.homepage)),this.widgetMap=new Map,this.vueInstanceMap=new Map,this.paramsMap=new Map,u)for(const f in u)this.paramsMap.set(f,u[f]);this.widgetIds=[],this.chosenWidget=s.ref(null),this.historyList=[],this.historyIndex=s.ref(0),this.isHistory=!1,this.$http=new SNn({baseUrl:r,httpSuccessHandle:i,httpErrorHandle:o,httpBeforeSendHandle:a,headers:c}),this.buildWidgetMap(this.widgetConfig),s.watch(()=>this.widgetConfig,f=>{this.rebuildWidgetMap(),this.chosenWidget.value=this.getWidgetById(this.widgetConfig.chosenId)},{deep:!0,immediate:!0}),s.watch(()=>this.widgetConfig.widgetList,f=>{this.isHistory?this.isHistory=!1:(this.historyList.push({widgetConfig:this.$utils.clone(this.widgetConfig,!0),time:this.$utils.toDateString(new Date,"HH:mm:ss"),index:this.historyList.length}),this.historyIndex.value=this.historyList.length-1)},{deep:!0,immediate:!0})}async eventHandle({value:e=null,eventType:n,widget:r,cb:i,tableItemData:o,tableColumn:a,showInDesign:l}){if(!(!this.showMode&&!l)&&r.props[n]){let c=r.props[n],d=await new Function("value","widget","self","tableItemData","tableColumn","app",`return (async function(){
|
552
552
|
${c}
|
553
553
|
})()`)(e,r,this.getVueInstance(r.id),o,a,this);if(i)return i(d)}}validateInput(e,n){switch(e){case"数字":return/^\d+$/.test(n);case"字母":return/^[A-Za-z]+$/.test(n);case"数字字母":return/^[A-Za-z0-9]+$/.test(n);case"手机号":return/^1[3-9]\d{9}$/.test(n);case"邮箱":return/^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$/.test(n);case"网址":return/^(https?:\/\/)?([\w\-])+\.{1}([a-zA-Z]{2,63})([\w\-\.\~\?\#\/]*)$/.test(n);case"非中文字符":return/^[^\u4e00-\u9fa5]+$/.test(n);case"仅中文字符":return/^[\u4e00-\u9fa5]+$/.test(n);case"正数":return/^[+]?(\d*\.)?\d+$/.test(n);case"正整数":return/^[+]?([1-9]\d*)$/.test(n);case"负数":return/^-((\d*\.)?\d+)$/.test(n);case"负整数":return/^-[1-9]\d*$/.test(n);case"浮点数":return/^-?\d*\.\d+$/.test(n);case"日期":return/^\d{4}-\d{2}-\d{2}$/.test(n);case"时间":return/^([01]\d|2[0-3]):([0-5]\d)$/.test(n);case"身份证号":return/^\d{15}|\d{18}$/.test(n);default:return!1}}componentEvent(e){this.emit("componentEvent",e)}formatStyle(e){let n=e.props;if(n.style){let r={};for(const i in n.style)typeof n.style[i]=="number"?r[i]=`${n.style[i]}px`:n.style[i]!==null&&(r[i]=n.style[i]);return this.showMode||e.type==="datatable"&&r.hasOwnProperty("height")&&delete r.height,r}else return{}}resetWidgetConfig(){this.updateWidget("homepage",this.$utils.clone(gd.homepage,!0),!0)}setWidgetConfig(e){this.updateWidget("homepage",this.$utils.clone(e,!0),!0)}checkWidgetListRequiredById(e){let n=!0,r=[];const i=o=>{o.forEach(a=>{a.props.zdname&&a.isForm&&!a.props.hide&&(a.props.value===null||a.props.value===""||a.props.value===void 0||JSON.stringify(a.props.value)=="[]")&&a.props.required&&(r.push(a.props.label),n=!1),a.type==="datatable"&&a.props.value&&a.props.value.length&&a.widgetList.forEach(l=>{a.props.value.forEach(c=>{c.hasOwnProperty(l.props.zdname)&&l.props.required&&!l.props.hide&&(c[l.props.zdname]===null||c[l.props.zdname]===""||c[l.props.zdname]===void 0||JSON.stringify(c[l.props.zdname])=="[]")&&(r.includes(l.props.label)||r.push(l.props.label),n=!1)})}),a.widgetList&&a.widgetList.length&&a.type!="datatable"&&i(a.widgetList)})};return i(this.getWidgetById(e).widgetList),r.length&&this.$message.warning(r[0]+"不能为空"),n}getWidgetListResultById(e){let n={};const r=i=>{i.forEach(o=>{o.props.zdname&&(n[o.props.zdname]=o.props.value),o.widgetList&&o.widgetList.length&&o.type!="datatable"&&r(o.widgetList)})};return r(this.getWidgetById(e).widgetList),n}resetWidgetListById(e,n){const r=i=>{i.forEach(o=>{o.isForm&&(n===!0?o.props.value=null:o.props.value=o.props.defaultValue),o.widgetList&&o.widgetList.length&&r(o.widgetList)})};r(this.getWidgetById(e).widgetList)}inputWidgetListValueById(e,n){const r=i=>{i.forEach(o=>{o.isForm&&(o.props.value=n[o.props.zdname]),o.widgetList&&o.widgetList.length&&r(o.widgetList)})};r(this.getWidgetById(e).widgetList)}getMethodById(e){const n=this.getVueInstance(e);return n?n.exposed:(console.warn(`组件 ${e} 尚未注册,无法获取其方法`),{})}getPropsById(e){return this.widgetMap.get(e).props}setFormType(e,n){this.widgetMap.get(e).props.formType=n}getFormType(e){return this.widgetMap.get(e).props.formType}setPropsById(e,n,r){this.widgetMap.get(e).props[n]=r}setVisible(e,n){n===!0?this.widgetMap.get(e).props.hide=!1:n===!1?this.widgetMap.get(e).props.hide=!0:console.error("请传true或false来控制显示隐藏")}setVueIncetance(e,n){this.vueInstanceMap.set(e,n)}getVueInstance(e){return this.vueInstanceMap.get(e)}setParam(e,n){this.paramsMap.set(e,n)}getParam(e){return this.paramsMap.get(e)}setChosenWidget(e){this.chosenWidget.value=e}setValue(e,n){this.getWidgetById(e).props.value=n}getValue(e){return this.getWidgetById(e).props.value}setList(e,n){this.getWidgetById(e).props.list=n}setOption(e,n){this.getWidgetById(e).props.options=n}async requestByApisetConfig({type:e="apiSet",widget:n=null,resultCb:r=null,paramCb:i=null,headerCb:o=null,otherCb:a=null}){if(!this.showMode)return;let l=n.props[e];if(!l||!l.apiurl)return;let c={},u={},d=l.method;if(l.contentType=="FormData"&&(d=="post"||d=="put"||d=="patch")&&(d+="FormData"),l.contentType=="file"&&(d+="File"),l.params.length&&l.params.forEach(m=>{c[m.label]=m.value}),l.headers&&l.headers.length&&l.headers.forEach(m=>{u[m.label]=m.value}),i&&(c=i(c)),o&&(u=o(u)),l.paramsFormat){let m=new Function("params","widget","app",`return (async function(){
|
554
554
|
${l.paramsFormat}
|
package/package.json
CHANGED
package/dist/index-BODPDmlW.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
import "./index-Co4AAA5_.js";
|