agilebuilder-ui 1.0.77 → 1.0.79-temp1
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/lib/super-ui.js +14 -40
- package/lib/super-ui.umd.cjs +82 -82
- package/package.json +1 -1
- package/packages/plugins/export-data-new.js +1 -1
- package/packages/super-grid/src/utils.js +36 -118
- package/src/utils/permissionAuth.js +1 -1
package/lib/super-ui.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as Vue
|
|
1
|
+
import * as Vue from "vue";
|
|
2
2
|
import { resolveComponent, openBlock, createBlock, withCtx, createVNode, TransitionGroup, createElementBlock, Fragment, renderList, toDisplayString as toDisplayString$1, createTextVNode, createElementVNode, createStaticVNode, defineComponent, h, getCurrentInstance, effectScope, inject, onMounted, onUnmounted, shallowRef, ref, computed, onBeforeMount, watch, isRef, Text, createCommentVNode, resolveDirective, withKeys, withDirectives, normalizeClass, unref, getCurrentScope, onScopeDispose, readonly, nextTick, warn as warn$1, provide, renderSlot, mergeProps, Transition, vShow, shallowReactive, normalizeStyle, resolveDynamicComponent, withModifiers, isVNode as isVNode$1, render, createSlots, reactive, toRefs, onBeforeUnmount, onActivated, onDeactivated, pushScopeId, popScopeId } from "vue";
|
|
3
3
|
function lexer(e) {
|
|
4
4
|
for (var t = [], n = 0; n < e.length; ) {
|
|
@@ -12295,7 +12295,7 @@ function getTotalPermissions() {
|
|
|
12295
12295
|
const m = localStorage.getItem(mobilePermissionKey);
|
|
12296
12296
|
m && (s = JSON.parse(m));
|
|
12297
12297
|
}
|
|
12298
|
-
if ((/* @__PURE__ */ new Date()).getTime(), e || n) {
|
|
12298
|
+
if ((/* @__PURE__ */ new Date()).getTime(), e || n || s) {
|
|
12299
12299
|
let m = {};
|
|
12300
12300
|
return e && Object.assign(m, e), n && Object.assign(m, n), s && Object.assign(m, s), m;
|
|
12301
12301
|
}
|
|
@@ -16747,10 +16747,7 @@ const ArrowKeyAction = {
|
|
|
16747
16747
|
function setCurrentRow(e, t) {
|
|
16748
16748
|
t || (t = store$1.get("_list_code"));
|
|
16749
16749
|
const n = store$1.get(t);
|
|
16750
|
-
e < n.gridData.length && (n.isMulitiSelect ? (n.superGrid.clearSelection(), n.superGrid.toggleRowSelection(
|
|
16751
|
-
n.gridData[e],
|
|
16752
|
-
!0
|
|
16753
|
-
)) : n.superGrid.setCurrentRow(n.gridData[e]));
|
|
16750
|
+
e < n.gridData.length && (n.isMulitiSelect ? (n.superGrid.clearSelection(), n.superGrid.toggleRowSelection(n.gridData[e], !0)) : n.superGrid.setCurrentRow(n.gridData[e]));
|
|
16754
16751
|
}
|
|
16755
16752
|
function isObjectValueEqual(e, t) {
|
|
16756
16753
|
if (!e && !t)
|
|
@@ -16980,7 +16977,7 @@ function getGridParams$3() {
|
|
|
16980
16977
|
// hiddenColumns:['operation','xx]
|
|
16981
16978
|
}
|
|
16982
16979
|
};
|
|
16983
|
-
return Vue
|
|
16980
|
+
return Vue.reactive(e);
|
|
16984
16981
|
}
|
|
16985
16982
|
function addDynamicProp$1(e, t, n) {
|
|
16986
16983
|
const o = t.split(".");
|
|
@@ -17032,10 +17029,7 @@ function otherFilesToStandard(e, t, n, o) {
|
|
|
17032
17029
|
if (n) {
|
|
17033
17030
|
if (n && n.length > 0)
|
|
17034
17031
|
for (var s = 0; s < n.length; s++) {
|
|
17035
|
-
const m = n[s], y = packageFile(
|
|
17036
|
-
m[t.showName],
|
|
17037
|
-
m[t.serverPath]
|
|
17038
|
-
);
|
|
17032
|
+
const m = n[s], y = packageFile(m[t.showName], m[t.serverPath]);
|
|
17039
17033
|
l.push(y);
|
|
17040
17034
|
}
|
|
17041
17035
|
} else if (o) {
|
|
@@ -17053,9 +17047,7 @@ function otherFilesToStandard(e, t, n, o) {
|
|
|
17053
17047
|
function packageFile(e, t) {
|
|
17054
17048
|
e && (e = e.replace("#", "~~").replace("?", "~$").replace("&", "$"));
|
|
17055
17049
|
const n = {};
|
|
17056
|
-
n.showName = e, n.serverPath = t, n.showName && /\.(jpg|JPG|jpeg|JPEG|png|PNG|gif|GIF|bmp|BMP|psd|PSD|tif|TIF)$/.test(
|
|
17057
|
-
e
|
|
17058
|
-
) && (n.isImg = !0);
|
|
17050
|
+
n.showName = e, n.serverPath = t, n.showName && /\.(jpg|JPG|jpeg|JPEG|png|PNG|gif|GIF|bmp|BMP|psd|PSD|tif|TIF)$/.test(e) && (n.isImg = !0);
|
|
17059
17051
|
const o = getToken();
|
|
17060
17052
|
let l = window.$vueApp.config.globalProperties.baseURL + "/common/super-form/downloads?jwt=" + o;
|
|
17061
17053
|
isPlateSys(window.$vueApp.config.globalProperties.systemCode) && (l = window.$vueApp.config.globalProperties.baseAPI + "/component/super-form/downloads?jwt=" + o);
|
|
@@ -17069,23 +17061,13 @@ function getFileList(e, t, n) {
|
|
|
17069
17061
|
if (l && l.multiple)
|
|
17070
17062
|
if (l.childAnnexDataTableCode) {
|
|
17071
17063
|
const d = e[t.prop];
|
|
17072
|
-
o = otherFilesToStandard(
|
|
17073
|
-
l,
|
|
17074
|
-
s,
|
|
17075
|
-
d,
|
|
17076
|
-
null
|
|
17077
|
-
);
|
|
17064
|
+
o = otherFilesToStandard(l, s, d, null);
|
|
17078
17065
|
} else {
|
|
17079
17066
|
const d = {
|
|
17080
17067
|
showName: getEntityFieldValue(e, s.showName),
|
|
17081
17068
|
serverPath: getEntityFieldValue(e, s.serverPath)
|
|
17082
17069
|
};
|
|
17083
|
-
o = otherFilesToStandard(
|
|
17084
|
-
l,
|
|
17085
|
-
s,
|
|
17086
|
-
null,
|
|
17087
|
-
d
|
|
17088
|
-
);
|
|
17070
|
+
o = otherFilesToStandard(l, s, null, d);
|
|
17089
17071
|
}
|
|
17090
17072
|
else {
|
|
17091
17073
|
const d = getEntityFieldValue(e, s.showName), m = getEntityFieldValue(e, s.serverPath);
|
|
@@ -17096,10 +17078,7 @@ function getFileList(e, t, n) {
|
|
|
17096
17078
|
}
|
|
17097
17079
|
function getDynamicDataSourceOptions(e, t, n) {
|
|
17098
17080
|
let o;
|
|
17099
|
-
n && (console.log(
|
|
17100
|
-
"getDynamicDataSourceOptions--additionalParamMap=",
|
|
17101
|
-
n
|
|
17102
|
-
), n && typeof n == "object" ? o = JSON.stringify(n) : n && n !== "" && (o = n));
|
|
17081
|
+
n && (console.log("getDynamicDataSourceOptions--additionalParamMap=", n), n && typeof n == "object" ? o = JSON.stringify(n) : n && n !== "" && (o = n));
|
|
17103
17082
|
const l = {
|
|
17104
17083
|
isSql: t,
|
|
17105
17084
|
additionalParameter: o
|
|
@@ -17117,20 +17096,15 @@ function getLastPageNum(e, t) {
|
|
|
17117
17096
|
return e == null || e === 0 || t == null || t === 0 ? 1 : Math.ceil(e / t);
|
|
17118
17097
|
}
|
|
17119
17098
|
function scrollYToBottom(e) {
|
|
17120
|
-
const t = document.querySelector(
|
|
17121
|
-
|
|
17122
|
-
);
|
|
17123
|
-
console.log("scrollDivElement==", t), t && t !== null && (console.log(
|
|
17124
|
-
"scrollDivElement==scrollDivElement.scrollHeight=",
|
|
17125
|
-
t.scrollHeight
|
|
17126
|
-
), t.scrollTop = t.scrollHeight);
|
|
17099
|
+
const t = document.querySelector("." + e + " .el-table--scrollable-y .el-table__body-wrapper");
|
|
17100
|
+
console.log("scrollDivElement==", t), t && t !== null && (console.log("scrollDivElement==scrollDivElement.scrollHeight=", t.scrollHeight), t.scrollTop = t.scrollHeight);
|
|
17127
17101
|
}
|
|
17128
17102
|
function getAdditionalParamMap(e) {
|
|
17129
17103
|
let t = null;
|
|
17130
17104
|
return e.additionalParamMap && typeof e.additionalParamMap == "object" ? t = e.additionalParamMap : e.additionalParamMap && e.additionalParamMap !== "" && (t = JSON.parse(e.additionalParamMap)), t;
|
|
17131
17105
|
}
|
|
17132
17106
|
function getControlConfig(e) {
|
|
17133
|
-
let t;
|
|
17107
|
+
let t = {};
|
|
17134
17108
|
return e && e.controlConfig && (t = JSON.parse(e.controlConfig)), t;
|
|
17135
17109
|
}
|
|
17136
17110
|
const dynamicSourceSelectService = {
|
|
@@ -35593,7 +35567,7 @@ function exportListData(e, t, n, o, l, s, d, m, y) {
|
|
|
35593
35567
|
}
|
|
35594
35568
|
function getDcExportPageUrl() {
|
|
35595
35569
|
let e;
|
|
35596
|
-
const t =
|
|
35570
|
+
const t = window.$vueApp.config.globalProperties.baseAPI;
|
|
35597
35571
|
if (t) {
|
|
35598
35572
|
const n = t.split("/");
|
|
35599
35573
|
e = n[0] + "//" + n[2] + "/document-center/#/file-task/file-export-task/list";
|
|
@@ -37094,7 +37068,7 @@ function getGridParams() {
|
|
|
37094
37068
|
// ]
|
|
37095
37069
|
}
|
|
37096
37070
|
};
|
|
37097
|
-
return Vue
|
|
37071
|
+
return Vue.reactive(e);
|
|
37098
37072
|
}
|
|
37099
37073
|
function addDynamicProp(e, t, n) {
|
|
37100
37074
|
const o = t.split(".");
|