agilebuilder-ui 1.0.31 → 1.0.34

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 CHANGED
@@ -12086,7 +12086,7 @@ var api = init(defaultConverter, { path: "/" });
12086
12086
  const jwtKey = "JWT", currentUserNameKey = "USERNAME", currentUserInfoKey = "CURRENT_USER", currentSystemUrlKey = "CURRENT_SYSTEM_URL_", langKey = "CURRENT_LANGUAGE", allLangKey = "AMB_LANG_INFO", versionEnv = "VERSION_ENVIRONMENT", userVersion = "CURRENT_USER_SYSTEM_VERSION", runDevpJwtKey = "_runDevpJWT";
12087
12087
  function getToken$1() {
12088
12088
  let e = isDevpSystem(), t;
12089
- return e ? t = getMyToken() : (t = getSessionCache(runDevpJwtKey), t || (t = getMyToken())), t;
12089
+ return e ? t = getMyToken() : (t = getSessionCache$1(runDevpJwtKey), t || (t = getMyToken())), t;
12090
12090
  }
12091
12091
  function isDevpSystem() {
12092
12092
  let e = !1;
@@ -12095,7 +12095,7 @@ function isDevpSystem() {
12095
12095
  }
12096
12096
  function getMyToken() {
12097
12097
  let e = getCookieCache(jwtKey);
12098
- return e || (e = getSessionCache(jwtKey), console.log("authAPI.getToken---getSessionCache=", e)), e;
12098
+ return e || (e = getSessionCache$1(jwtKey), console.log("authAPI.getToken---getSessionCache=", e)), e;
12099
12099
  }
12100
12100
  function setToken(e) {
12101
12101
  setCookieCache(jwtKey, e), setSessionCache(jwtKey, e);
@@ -12105,7 +12105,7 @@ function removeToken() {
12105
12105
  }
12106
12106
  function getUsername() {
12107
12107
  let e = getRunInfoKey(currentUserNameKey), t = getCookieCache(e);
12108
- return t || (t = getSessionCache(e)), t;
12108
+ return t || (t = getSessionCache$1(e)), t;
12109
12109
  }
12110
12110
  function setUsername(e) {
12111
12111
  let t = getRunInfoKey(currentUserNameKey);
@@ -12120,7 +12120,7 @@ function getCurrentUser() {
12120
12120
  }
12121
12121
  function getCurrentUserByKey(e) {
12122
12122
  let t = getCookieCache(e);
12123
- if (t || (t = getSessionCache(e)), t)
12123
+ if (t || (t = getSessionCache$1(e)), t)
12124
12124
  return JSON.parse(t);
12125
12125
  }
12126
12126
  function setCurrentUser(e) {
@@ -12133,7 +12133,7 @@ function setCurrentUser(e) {
12133
12133
  }
12134
12134
  function getRunInfoKey(e) {
12135
12135
  let t = e;
12136
- return isDevpSystem() || getSessionCache(runDevpJwtKey) && (t = "_run_" + t), t;
12136
+ return isDevpSystem() || getSessionCache$1(runDevpJwtKey) && (t = "_run_" + t), t;
12137
12137
  }
12138
12138
  function removeCurrentUser() {
12139
12139
  removeSessionCache(currentUserInfoKey), removeCookieCache(currentUserInfoKey);
@@ -12151,7 +12151,7 @@ function removeCookieCache(e) {
12151
12151
  path: "/"
12152
12152
  });
12153
12153
  }
12154
- function getSessionCache(e) {
12154
+ function getSessionCache$1(e) {
12155
12155
  return window.sessionStorage.getItem(e);
12156
12156
  }
12157
12157
  function setSessionCache(e, t) {
@@ -12169,7 +12169,7 @@ function getSystemCacheUrlByCode(e) {
12169
12169
  }
12170
12170
  function getSystemCacheUrl() {
12171
12171
  let e = getCookieCache(currentSystemUrlKey);
12172
- if (e || (e = getSessionCache(currentSystemUrlKey)), e)
12172
+ if (e || (e = getSessionCache$1(currentSystemUrlKey)), e)
12173
12173
  return JSON.parse(e);
12174
12174
  }
12175
12175
  function setSystemCacheUrl(e) {
@@ -12184,7 +12184,7 @@ function removeSystemCacheUrl() {
12184
12184
  function getLanguage() {
12185
12185
  let e = getCookieCache(langKey);
12186
12186
  const t = window.$vueApp.config.globalProperties.projectModel;
12187
- return !e && t && t === "developing.model" && (e = getSessionCache(langKey)), e;
12187
+ return !e && t && t === "developing.model" && (e = getSessionCache$1(langKey)), e;
12188
12188
  }
12189
12189
  function setLanguage(e) {
12190
12190
  setCookieCache(langKey, e), setSessionCache(langKey, e);
@@ -12195,7 +12195,7 @@ function removeLanguage() {
12195
12195
  function getAllLanguages$1() {
12196
12196
  let e = getCookieCache(allLangKey);
12197
12197
  const t = window.$vueApp.config.globalProperties.projectModel;
12198
- return !e && t && t === "developing.model" && (e = getSessionCache(allLangKey)), e;
12198
+ return !e && t && t === "developing.model" && (e = getSessionCache$1(allLangKey)), e;
12199
12199
  }
12200
12200
  function setAllLanguages(e) {
12201
12201
  setCookieCache(allLangKey, e), setSessionCache(allLangKey, e);
@@ -12219,7 +12219,7 @@ const authApi = {
12219
12219
  getCookieCache,
12220
12220
  setCookieCache,
12221
12221
  removeCookieCache,
12222
- getSessionCache,
12222
+ getSessionCache: getSessionCache$1,
12223
12223
  setSessionCache,
12224
12224
  removeSessionCache,
12225
12225
  getSystemCacheUrlByCode,
@@ -12239,6 +12239,9 @@ const authApi = {
12239
12239
  function getToken() {
12240
12240
  return authApi.getToken();
12241
12241
  }
12242
+ function getSessionCache(e) {
12243
+ return authApi.getSessionCache(e);
12244
+ }
12242
12245
  function getAllLanguages() {
12243
12246
  return authApi.getAllLanguages();
12244
12247
  }
@@ -17427,7 +17430,13 @@ const ViewImageDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$19, [["render",
17427
17430
  $emit(this, "update:value", null);
17428
17431
  }
17429
17432
  const i = store$1.get(this.listCode);
17430
- i.editProp = this.column.prop, this.column.events && this.column.events[e] ? this.callCustomEvent(e) : isEditOptionFunction(e, this.listCode) && i.options.lineEditOptions[e].call(this, t, this.row, this.column, i.additionalParamMap), $emit(this, "findIndex");
17433
+ i.editProp = this.column.prop, this.column.events && this.column.events[e] ? this.callCustomEvent(e) : isEditOptionFunction(e, this.listCode) && i.options.lineEditOptions[e].call(
17434
+ this,
17435
+ t,
17436
+ this.row,
17437
+ this.column,
17438
+ i.additionalParamMap
17439
+ ), $emit(this, "findIndex");
17431
17440
  },
17432
17441
  blurEvent() {
17433
17442
  (this.innerValue === null || this.innerValue === void 0) && (this.innerValue = null, this.val = null), $emit(this, "update:value", this.innerValue);
@@ -17704,7 +17713,7 @@ const ViewImageDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$19, [["render",
17704
17713
  },
17705
17714
  // 时间格式判断是否是字符串类型,显示格式
17706
17715
  isFormat() {
17707
- return this.type === "time" && this.column.dataType === "TIME" || this.type === "dateTimePicker" ? "YYYY-MM-DD HH:mm:ss" : this.type === "date" && this.column.dataType === "DATE" ? "YYYY-MM-DD" : this.type === "timePicker" ? this.column.originalFormat ? this.column.originalFormat : "hh:mm:ss" : this.type === "year" ? "YYYY" : this.type === "month" ? "MM" : "YYYY-MM-DD";
17716
+ return this.type === "time" && this.column.dataType === "TIME" || this.type === "dateTimePicker" ? "YYYY-MM-DD HH:mm:ss" : this.type === "date" && this.column.dataType === "DATE" ? "YYYY-MM-DD" : this.type === "timePicker" ? this.column.originalFormat ? this.column.originalFormat : "HH:mm:ss" : this.type === "year" ? "YYYY" : this.type === "month" ? "MM" : "YYYY-MM-DD";
17708
17717
  },
17709
17718
  fnProhibitToEdit(e) {
17710
17719
  $emit(this, "prohibitToEdit", e);
@@ -17822,32 +17831,32 @@ function _sfc_render$U(e, t, n, o, i, l) {
17822
17831
  onChange: t[19] || (t[19] = (z) => l.cellEvent("change", z)),
17823
17832
  onFocus: t[20] || (t[20] = (z) => l.cellEvent("focus", z)),
17824
17833
  onInput: t[21] || (t[21] = (z) => l.cellEvent("input", z))
17825
- }, null, 8, ["modelValue", "disabled", "format", "picker-options", "placeholder", "value-format"])) : n.type === "time" || n.column.dataType === "TIME" ? (openBlock(), createBlock(f, {
17834
+ }, null, 8, ["modelValue", "disabled", "format", "picker-options", "placeholder", "value-format"])) : n.type === "timePicker" ? (openBlock(), createBlock(p, {
17826
17835
  key: 4,
17827
17836
  ref: "item",
17828
17837
  modelValue: i.innerValue,
17829
17838
  "onUpdate:modelValue": t[22] || (t[22] = (z) => i.innerValue = z),
17830
17839
  disabled: i.disabled,
17831
- editable: !1,
17832
17840
  format: l.isFormat(),
17833
- placeholder: e.$t("imatrixUIMessage.selectTime"),
17841
+ placeholder: e.$t("imatrixUIMessage.pleaseEnterATimePoint"),
17834
17842
  "value-format": l.isValueFormat(),
17835
17843
  style: { width: "100%" },
17836
- type: "datetime",
17837
17844
  onBlur: t[23] || (t[23] = (z) => l.cellEvent("blur", z)),
17838
17845
  onChange: t[24] || (t[24] = (z) => l.cellEvent("change", z)),
17839
17846
  onFocus: t[25] || (t[25] = (z) => l.cellEvent("focus", z)),
17840
17847
  onInput: t[26] || (t[26] = (z) => l.cellEvent("input", z))
17841
- }, null, 8, ["modelValue", "disabled", "format", "placeholder", "value-format"])) : n.type === "timePicker" ? (openBlock(), createBlock(p, {
17848
+ }, null, 8, ["modelValue", "disabled", "format", "placeholder", "value-format"])) : n.type === "time" || n.column.dataType === "TIME" ? (openBlock(), createBlock(f, {
17842
17849
  key: 5,
17843
17850
  ref: "item",
17844
17851
  modelValue: i.innerValue,
17845
17852
  "onUpdate:modelValue": t[27] || (t[27] = (z) => i.innerValue = z),
17846
17853
  disabled: i.disabled,
17854
+ editable: !1,
17847
17855
  format: l.isFormat(),
17848
- placeholder: e.$t("imatrixUIMessage.pleaseEnterATimePoint"),
17856
+ placeholder: e.$t("imatrixUIMessage.selectTime"),
17849
17857
  "value-format": l.isValueFormat(),
17850
17858
  style: { width: "100%" },
17859
+ type: "datetime",
17851
17860
  onBlur: t[28] || (t[28] = (z) => l.cellEvent("blur", z)),
17852
17861
  onChange: t[29] || (t[29] = (z) => l.cellEvent("change", z)),
17853
17862
  onFocus: t[30] || (t[30] = (z) => l.cellEvent("focus", z)),
@@ -25254,15 +25263,23 @@ const superGridService$1 = {
25254
25263
  n();
25255
25264
  });
25256
25265
  }
25257
- }, permissionKey = "PERMISSION-";
25266
+ }, permissionKey = "PERMISSION-", _RUN_PERMISSION = "_RUN_PERMISSION";
25258
25267
  function getSystemCode() {
25259
25268
  let e;
25260
25269
  return window.$vueApp.config.globalProperties.customSystem ? e = window.$vueApp.config.globalProperties.customSystem : window.$vueApp.config.globalProperties.currentSystem ? e = window.$vueApp.config.globalProperties.currentSystem : e = window.$vueApp.config.globalProperties.systemCode, e;
25261
25270
  }
25262
25271
  function getPermissions() {
25263
25272
  (/* @__PURE__ */ new Date()).getTime();
25264
- const e = getSystemCode(), t = window.sessionStorage.getItem(permissionKey + e);
25265
- return t ? JSON.parse(t) : ((/* @__PURE__ */ new Date()).getTime(), null);
25273
+ let e;
25274
+ const t = getSessionCache(_RUN_PERMISSION);
25275
+ t && (e = JSON.parse(t));
25276
+ let n;
25277
+ const o = getSystemCode(), i = window.sessionStorage.getItem(permissionKey + o);
25278
+ if (i && (n = JSON.parse(i)), (/* @__PURE__ */ new Date()).getTime(), e || n) {
25279
+ let l = {};
25280
+ return e && Object.assign(l, e), n && Object.assign(l, n), console.log("getPermissions----permissions=", l), l;
25281
+ }
25282
+ return null;
25266
25283
  }
25267
25284
  const headerContextMenu_vue_vue_type_style_index_0_scoped_040fcf55_lang = "", _sfc_main$S = {
25268
25285
  name: "HeaderContextMenu",