@kengic/vue 0.30.1-beta.70 → 0.30.1-beta.71

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.
@@ -168314,7 +168314,7 @@ function _interopRequireDefault(oe) {
168314
168314
  return oe && oe.__esModule ? oe : { default: oe };
168315
168315
  }
168316
168316
  default_1 = zhTW.default = _zhCHT.default;
168317
- const version = "0.30.1-beta.70", KG = {
168317
+ const version = "0.30.1-beta.71", KG = {
168318
168318
  DB_COLUMN_TYPE: {
168319
168319
  NCHAR: "NCHAR",
168320
168320
  NVARCHAR: "NVARCHAR"
@@ -169013,6 +169013,52 @@ const I18N = {
169013
169013
  ko_KR: ko_KR$1,
169014
169014
  vi_VN: vi_VN$1,
169015
169015
  zh_CN: zh_CN$1
169016
+ }, getConfigFileName = (oe) => `__PRODUCTION__${oe.VITE_GLOB_APP_SHORT_NAME || "__APP"}__CONF__`.toUpperCase().replace(/\s/g, "");
169017
+ function getCommonStoragePrefix() {
169018
+ const { VITE_GLOB_APP_SHORT_NAME: oe } = getAppEnvConfig();
169019
+ return `${oe}__${__ENV__.MODE}`.toUpperCase();
169020
+ }
169021
+ function getStorageShortName() {
169022
+ return `${getCommonStoragePrefix()}__`.toUpperCase();
169023
+ }
169024
+ function getAppEnvConfig() {
169025
+ var sa;
169026
+ const oe = getConfigFileName(__ENV__), ae = (sa = __ENV__.DEV ? __ENV__ : window[oe]) != null ? sa : {}, { VITE_GLOB_APP_TITLE: ie, VITE_GLOB_API_URL: ue, VITE_GLOB_APP_SHORT_NAME: ea, VITE_GLOB_API_URL_PREFIX: ta, VITE_GLOB_APP_OPEN_SSO: na, VITE_GLOB_APP_CAS_BASE_URL: ra, VITE_GLOB_DOMAIN_URL: oa, VITE_GLOB_ONLINE_VIEW_URL: aa, VITE_MODE: la } = ae;
169027
+ return {
169028
+ VITE_GLOB_API_URL: ue,
169029
+ VITE_GLOB_API_URL_PREFIX: ta,
169030
+ VITE_GLOB_APP_CAS_BASE_URL: ra,
169031
+ VITE_GLOB_APP_OPEN_SSO: na,
169032
+ VITE_GLOB_APP_SHORT_NAME: ea,
169033
+ VITE_GLOB_APP_TITLE: ie,
169034
+ VITE_GLOB_DOMAIN_URL: oa,
169035
+ VITE_GLOB_ONLINE_VIEW_URL: aa,
169036
+ VITE_MODE: la
169037
+ };
169038
+ }
169039
+ const devMode = "development", prodMode = "production";
169040
+ function isDevMode() {
169041
+ return __ENV__.DEV;
169042
+ }
169043
+ function isProdMode() {
169044
+ return __ENV__.PROD;
169045
+ }
169046
+ const useGlobSetting = () => {
169047
+ const { VITE_GLOB_APP_TITLE: oe, VITE_GLOB_API_URL: ae, VITE_GLOB_APP_SHORT_NAME: ie, VITE_GLOB_API_URL_PREFIX: ue, VITE_GLOB_APP_CAS_BASE_URL: ea, VITE_GLOB_APP_OPEN_SSO: ta, VITE_GLOB_DOMAIN_URL: na, VITE_GLOB_ONLINE_VIEW_URL: ra, VITE_MODE: oa } = getAppEnvConfig();
169048
+ /[a-zA-Z_]*/.test(ie);
169049
+ const aa = {
169050
+ title: oe,
169051
+ domainUrl: na,
169052
+ apiUrl: ae,
169053
+ shortName: ie,
169054
+ openSso: ta,
169055
+ casBaseUrl: ea,
169056
+ urlPrefix: ue,
169057
+ uploadUrl: na,
169058
+ viewUrl: ra,
169059
+ VITE_MODE: oa
169060
+ };
169061
+ return window._CONFIG.domianURL = na, aa;
169016
169062
  }, SIDE_BAR_MINI_WIDTH = 48, SIDE_BAR_SHOW_TIT_MINI_WIDTH = 80;
169017
169063
  var TabsThemeEnum = /* @__PURE__ */ ((oe) => (oe.SMOOTH = "smooth", oe.CARD = "card", oe.SIMPLE = "simple", oe))(TabsThemeEnum || {}), ContentEnum = /* @__PURE__ */ ((oe) => (oe.FULL = "full", oe.FIXED = "fixed", oe))(ContentEnum || {}), ThemeEnum = /* @__PURE__ */ ((oe) => (oe.DARK = "dark", oe.LIGHT = "light", oe))(ThemeEnum || {}), SettingButtonPositionEnum = /* @__PURE__ */ ((oe) => (oe.AUTO = "auto", oe.HEADER = "header", oe.FIXED = "fixed", oe))(SettingButtonPositionEnum || {}), SessionTimeoutProcessingEnum = /* @__PURE__ */ ((oe) => (oe[oe.ROUTE_JUMP = 0] = "ROUTE_JUMP", oe[oe.PAGE_COVERAGE = 1] = "PAGE_COVERAGE", oe))(SessionTimeoutProcessingEnum || {}), PermissionModeEnum = /* @__PURE__ */ ((oe) => (oe.ROLE = "ROLE", oe.BACK = "BACK", oe.ROUTE_MAPPING = "ROUTE_MAPPING", oe))(PermissionModeEnum || {}), RouterTransitionEnum = /* @__PURE__ */ ((oe) => (oe.ZOOM_FADE = "zoom-fade", oe.ZOOM_OUT = "zoom-out", oe.FADE_SIDE = "fade-slide", oe.FADE = "fade", oe.FADE_BOTTOM = "fade-bottom", oe.FADE_SCALE = "fade-scale", oe))(RouterTransitionEnum || {}), sizeEnum = /* @__PURE__ */ ((oe) => (oe.XS = "XS", oe.SM = "SM", oe.MD = "MD", oe.LG = "LG", oe.XL = "XL", oe.XXL = "XXL", oe))(sizeEnum || {}), screenEnum = /* @__PURE__ */ ((oe) => (oe[oe.XS = 480] = "XS", oe[oe.SM = 576] = "SM", oe[oe.MD = 768] = "MD", oe[oe.LG = 992] = "LG", oe[oe.XL = 1200] = "XL", oe[oe.XXL = 1600] = "XXL", oe))(screenEnum || {});
169018
169064
  const screenMap = /* @__PURE__ */ new Map();
@@ -169151,35 +169197,7 @@ const prefixCls = "jeecg", darkMode = ThemeEnum.LIGHT, APP_PRESET_COLOR_LIST = [
169151
169197
  canEmbedIFramePage: !0,
169152
169198
  closeMessageOnSwitch: !0,
169153
169199
  removeAllHttpPending: !1
169154
- }, getConfigFileName = (oe) => `__PRODUCTION__${oe.VITE_GLOB_APP_SHORT_NAME || "__APP"}__CONF__`.toUpperCase().replace(/\s/g, "");
169155
- function getCommonStoragePrefix() {
169156
- const { VITE_GLOB_APP_SHORT_NAME: oe } = getAppEnvConfig();
169157
- return `${oe}__${__ENV__.MODE}`.toUpperCase();
169158
- }
169159
- function getStorageShortName() {
169160
- return `${getCommonStoragePrefix()}__`.toUpperCase();
169161
- }
169162
- function getAppEnvConfig() {
169163
- var la;
169164
- const oe = getConfigFileName(__ENV__), ae = (la = __ENV__.DEV ? __ENV__ : window[oe]) != null ? la : {}, { VITE_GLOB_APP_TITLE: ie, VITE_GLOB_API_URL: ue, VITE_GLOB_APP_SHORT_NAME: ea, VITE_GLOB_API_URL_PREFIX: ta, VITE_GLOB_APP_OPEN_SSO: na, VITE_GLOB_APP_CAS_BASE_URL: ra, VITE_GLOB_DOMAIN_URL: oa, VITE_GLOB_ONLINE_VIEW_URL: aa } = ae;
169165
- return {
169166
- VITE_GLOB_APP_TITLE: ie,
169167
- VITE_GLOB_API_URL: ue,
169168
- VITE_GLOB_APP_SHORT_NAME: ea,
169169
- VITE_GLOB_API_URL_PREFIX: ta,
169170
- VITE_GLOB_APP_OPEN_SSO: na,
169171
- VITE_GLOB_APP_CAS_BASE_URL: ra,
169172
- VITE_GLOB_DOMAIN_URL: oa,
169173
- VITE_GLOB_ONLINE_VIEW_URL: aa
169174
- };
169175
- }
169176
- const devMode = "development", prodMode = "production";
169177
- function isDevMode() {
169178
- return __ENV__.DEV;
169179
- }
169180
- function isProdMode() {
169181
- return __ENV__.PROD;
169182
- }
169200
+ };
169183
169201
  var aes = { exports: {} };
169184
169202
  function commonjsRequire(oe) {
169185
169203
  throw new Error('Could not dynamically require "' + oe + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
@@ -169374,55 +169392,54 @@ function requireCore() {
169374
169392
  });
169375
169393
  }(core)), core.exports;
169376
169394
  }
169377
- var encBase64 = { exports: {} }, hasRequiredEncBase64;
169378
- function requireEncBase64() {
169379
- return hasRequiredEncBase64 || (hasRequiredEncBase64 = 1, function(oe, ae) {
169380
- (function(ie, ue) {
169381
- oe.exports = ue(requireCore());
169382
- })(commonjsGlobal, function(ie) {
169383
- return function() {
169384
- var ue = ie, ea = ue.lib, ta = ea.WordArray, na = ue.enc;
169385
- na.Base64 = {
169386
- stringify: function(oa) {
169387
- var aa = oa.words, la = oa.sigBytes, sa = this._map;
169388
- oa.clamp();
169389
- for (var ca = [], ua = 0; ua < la; ua += 3)
169390
- for (var ga = aa[ua >>> 2] >>> 24 - ua % 4 * 8 & 255, da = aa[ua + 1 >>> 2] >>> 24 - (ua + 1) % 4 * 8 & 255, fa = aa[ua + 2 >>> 2] >>> 24 - (ua + 2) % 4 * 8 & 255, ma = ga << 16 | da << 8 | fa, ha = 0; ha < 4 && ua + ha * 0.75 < la; ha++)
169391
- ca.push(sa.charAt(ma >>> 6 * (3 - ha) & 63));
169392
- var va = sa.charAt(64);
169393
- if (va)
169394
- for (; ca.length % 4; )
169395
- ca.push(va);
169396
- return ca.join("");
169397
- },
169398
- parse: function(oa) {
169399
- var aa = oa.length, la = this._map, sa = this._reverseMap;
169400
- if (!sa) {
169401
- sa = this._reverseMap = [];
169402
- for (var ca = 0; ca < la.length; ca++)
169403
- sa[la.charCodeAt(ca)] = ca;
169404
- }
169405
- var ua = la.charAt(64);
169406
- if (ua) {
169407
- var ga = oa.indexOf(ua);
169408
- ga !== -1 && (aa = ga);
169409
- }
169410
- return ra(oa, aa, sa);
169411
- },
169412
- _map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
169413
- };
169414
- function ra(oa, aa, la) {
169415
- for (var sa = [], ca = 0, ua = 0; ua < aa; ua++)
169416
- if (ua % 4) {
169417
- var ga = la[oa.charCodeAt(ua - 1)] << ua % 4 * 2, da = la[oa.charCodeAt(ua)] >>> 6 - ua % 4 * 2, fa = ga | da;
169418
- sa[ca >>> 2] |= fa << 24 - ca % 4 * 8, ca++;
169419
- }
169420
- return ta.create(sa, ca);
169421
- }
169422
- }(), ie.enc.Base64;
169423
- });
169424
- }(encBase64)), encBase64.exports;
169425
- }
169395
+ var encBase64 = { exports: {} };
169396
+ (function(oe, ae) {
169397
+ (function(ie, ue) {
169398
+ oe.exports = ue(requireCore());
169399
+ })(commonjsGlobal, function(ie) {
169400
+ return function() {
169401
+ var ue = ie, ea = ue.lib, ta = ea.WordArray, na = ue.enc;
169402
+ na.Base64 = {
169403
+ stringify: function(oa) {
169404
+ var aa = oa.words, la = oa.sigBytes, sa = this._map;
169405
+ oa.clamp();
169406
+ for (var ca = [], ua = 0; ua < la; ua += 3)
169407
+ for (var ga = aa[ua >>> 2] >>> 24 - ua % 4 * 8 & 255, da = aa[ua + 1 >>> 2] >>> 24 - (ua + 1) % 4 * 8 & 255, fa = aa[ua + 2 >>> 2] >>> 24 - (ua + 2) % 4 * 8 & 255, ma = ga << 16 | da << 8 | fa, ha = 0; ha < 4 && ua + ha * 0.75 < la; ha++)
169408
+ ca.push(sa.charAt(ma >>> 6 * (3 - ha) & 63));
169409
+ var va = sa.charAt(64);
169410
+ if (va)
169411
+ for (; ca.length % 4; )
169412
+ ca.push(va);
169413
+ return ca.join("");
169414
+ },
169415
+ parse: function(oa) {
169416
+ var aa = oa.length, la = this._map, sa = this._reverseMap;
169417
+ if (!sa) {
169418
+ sa = this._reverseMap = [];
169419
+ for (var ca = 0; ca < la.length; ca++)
169420
+ sa[la.charCodeAt(ca)] = ca;
169421
+ }
169422
+ var ua = la.charAt(64);
169423
+ if (ua) {
169424
+ var ga = oa.indexOf(ua);
169425
+ ga !== -1 && (aa = ga);
169426
+ }
169427
+ return ra(oa, aa, sa);
169428
+ },
169429
+ _map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
169430
+ };
169431
+ function ra(oa, aa, la) {
169432
+ for (var sa = [], ca = 0, ua = 0; ua < aa; ua++)
169433
+ if (ua % 4) {
169434
+ var ga = la[oa.charCodeAt(ua - 1)] << ua % 4 * 2, da = la[oa.charCodeAt(ua)] >>> 6 - ua % 4 * 2, fa = ga | da;
169435
+ sa[ca >>> 2] |= fa << 24 - ca % 4 * 8, ca++;
169436
+ }
169437
+ return ta.create(sa, ca);
169438
+ }
169439
+ }(), ie.enc.Base64;
169440
+ });
169441
+ })(encBase64);
169442
+ const Base64 = encBase64.exports;
169426
169443
  var md5$1 = { exports: {} }, hasRequiredMd5;
169427
169444
  function requireMd5() {
169428
169445
  return hasRequiredMd5 || (hasRequiredMd5 = 1, function(oe, ae) {
@@ -169794,7 +169811,7 @@ function requireCipherCore() {
169794
169811
  }
169795
169812
  (function(oe, ae) {
169796
169813
  (function(ie, ue, ea) {
169797
- oe.exports = ue(requireCore(), requireEncBase64(), requireMd5(), requireEvpkdf(), requireCipherCore());
169814
+ oe.exports = ue(requireCore(), encBase64.exports, requireMd5(), requireEvpkdf(), requireCipherCore());
169798
169815
  })(commonjsGlobal, function(ie) {
169799
169816
  return function() {
169800
169817
  var ue = ie, ea = ue.lib, ta = ea.BlockCipher, na = ue.algo, ra = [], oa = [], aa = [], la = [], sa = [], ca = [], ua = [], ga = [], da = [], fa = [];
@@ -169849,7 +169866,7 @@ function requireCipherCore() {
169849
169866
  }(), ie.AES;
169850
169867
  });
169851
169868
  })(aes);
169852
- var encBase64Exports = requireEncBase64(), encUtf8 = { exports: {} };
169869
+ var encUtf8 = { exports: {} };
169853
169870
  (function(oe, ae) {
169854
169871
  (function(ie, ue) {
169855
169872
  oe.exports = ue(requireCore());
@@ -169911,10 +169928,10 @@ class AesEncryption {
169911
169928
  }
169912
169929
  }
169913
169930
  function encryptByBase64(oe) {
169914
- return UTF8.parse(oe).toString(encBase64Exports);
169931
+ return UTF8.parse(oe).toString(Base64);
169915
169932
  }
169916
169933
  function decodeByBase64(oe) {
169917
- return encBase64Exports.parse(oe).toString(UTF8);
169934
+ return Base64.parse(oe).toString(UTF8);
169918
169935
  }
169919
169936
  function encryptByMd5(oe) {
169920
169937
  return md5Exports(oe).toString();
@@ -173862,17 +173879,19 @@ const pinia = createPinia();
173862
173879
  Spin.setDefaultIndicator({
173863
173880
  indicator: h$4(Icon$3, { height: 14, icon: "eos-icons:bubble-loading", width: 14 })
173864
173881
  });
173865
- __ENV__.PROD && setInterval(async () => {
173866
- var ae, ie, ue, ea, ta, na;
173867
- const oe = (ea = (ue = (ie = (ae = document.querySelector('script[type="module"][crossorigin]')) == null ? void 0 : ae.src) == null ? void 0 : ie.match(/(.*)?index\.(.*)?\.js/)) == null ? void 0 : ue[2]) != null ? ea : "";
173868
- ai(`\u65E7\u811A\u672C\u54C8\u5E0C\u300C${oe}\u300D`);
173869
- try {
173870
- const ra = await (await fetch("/index.html")).text(), oa = (na = (ta = ra == null ? void 0 : ra.match(/(.*)?<script type="module" crossorigin="" src="\/assets\/index\.(.*)?\.js/)) == null ? void 0 : ta[2]) != null ? na : "";
173871
- ai(`\u65B0\u811A\u672C\u54C8\u5E0C\u300C${oa}\u300D`), oe !== oa && ai("\u68C0\u6D4B\u5230\u65B0\u7248\u672C");
173872
- } catch {
173873
- Ne("\u83B7\u53D6\u6700\u65B0\u9875\u9762\u5185\u5BB9\u5931\u8D25");
173874
- }
173875
- }, 1e3 * 60);
173882
+ setTimeout(() => {
173883
+ useGlobSetting().VITE_MODE === "production" && setInterval(async () => {
173884
+ var ie, ue, ea, ta, na, ra;
173885
+ const ae = (ta = (ea = (ue = (ie = document.querySelector('script[type="module"][crossorigin]')) == null ? void 0 : ie.src) == null ? void 0 : ue.match(/(.*)?index\.(.*)?\.js/)) == null ? void 0 : ea[2]) != null ? ta : "";
173886
+ ai(`\u65E7\u811A\u672C\u54C8\u5E0C\u300C${ae}\u300D`);
173887
+ try {
173888
+ const oa = await (await fetch("/index.html")).text(), aa = (ra = (na = oa == null ? void 0 : oa.match(/(.*)?<script type="module" crossorigin="" src="\/assets\/index\.(.*)?\.js/)) == null ? void 0 : na[2]) != null ? ra : "";
173889
+ ai(`\u65B0\u811A\u672C\u54C8\u5E0C\u300C${aa}\u300D`), ae !== aa && ai("\u68C0\u6D4B\u5230\u65B0\u7248\u672C");
173890
+ } catch {
173891
+ Ne("\u83B7\u53D6\u6700\u65B0\u9875\u9762\u5185\u5BB9\u5931\u8D25");
173892
+ }
173893
+ }, 1e3 * 60);
173894
+ });
173876
173895
  async function setup(oe) {
173877
173896
  var ie, ue;
173878
173897
  if (ai(`${version}`), !oe.pFunction)
@@ -193906,31 +193925,6 @@ function useDrawerAdaptiveWidth() {
193906
193925
  !1
193907
193926
  );
193908
193927
  }
193909
- const useGlobSetting = () => {
193910
- const {
193911
- VITE_GLOB_APP_TITLE: oe,
193912
- VITE_GLOB_API_URL: ae,
193913
- VITE_GLOB_APP_SHORT_NAME: ie,
193914
- VITE_GLOB_API_URL_PREFIX: ue,
193915
- VITE_GLOB_APP_CAS_BASE_URL: ea,
193916
- VITE_GLOB_APP_OPEN_SSO: ta,
193917
- VITE_GLOB_DOMAIN_URL: na,
193918
- VITE_GLOB_ONLINE_VIEW_URL: ra
193919
- } = getAppEnvConfig();
193920
- /[a-zA-Z_]*/.test(ie);
193921
- const oa = {
193922
- title: oe,
193923
- domainUrl: na,
193924
- apiUrl: ae,
193925
- shortName: ie,
193926
- openSso: ta,
193927
- casBaseUrl: ea,
193928
- urlPrefix: ue,
193929
- uploadUrl: na,
193930
- viewUrl: ra
193931
- };
193932
- return window._CONFIG.domianURL = na, oa;
193933
- };
193934
193928
  function useAppInject() {
193935
193929
  const oe = useAppProviderContext();
193936
193930
  return {
@@ -1,14 +1,15 @@
1
1
  export declare function getCommonStoragePrefix(): string;
2
2
  export declare function getStorageShortName(): string;
3
3
  export declare function getAppEnvConfig(): {
4
- VITE_GLOB_APP_TITLE: string;
5
4
  VITE_GLOB_API_URL: string;
6
- VITE_GLOB_APP_SHORT_NAME: string;
7
5
  VITE_GLOB_API_URL_PREFIX: string | undefined;
8
- VITE_GLOB_APP_OPEN_SSO: string;
9
6
  VITE_GLOB_APP_CAS_BASE_URL: string;
7
+ VITE_GLOB_APP_OPEN_SSO: string;
8
+ VITE_GLOB_APP_SHORT_NAME: string;
9
+ VITE_GLOB_APP_TITLE: string;
10
10
  VITE_GLOB_DOMAIN_URL: string;
11
11
  VITE_GLOB_ONLINE_VIEW_URL: string | undefined;
12
+ VITE_MODE: string | undefined;
12
13
  };
13
14
  export declare const devMode = "development";
14
15
  export declare const prodMode = "production";
@@ -105,6 +105,10 @@ export interface GlobConfig {
105
105
  viewUrl?: string;
106
106
  urlPrefix?: string;
107
107
  shortName: string;
108
+ /**
109
+ * 环境.
110
+ */
111
+ VITE_MODE?: string;
108
112
  }
109
113
  export interface GlobEnvConfig {
110
114
  VITE_GLOB_APP_TITLE: string;
@@ -116,4 +120,8 @@ export interface GlobEnvConfig {
116
120
  VITE_GLOB_DOMAIN_URL: string;
117
121
  VITE_GLOB_UPLOAD_URL?: string;
118
122
  VITE_GLOB_ONLINE_VIEW_URL?: string;
123
+ /**
124
+ * 环境.
125
+ */
126
+ VITE_MODE?: string;
119
127
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.30.1-beta.70",
3
+ "version": "0.30.1-beta.71",
4
4
  "scripts": {
5
5
  "build": "npm run use-node && rimraf dist && vue-tsc && vite build",
6
6
  "build:dev": "npm run use-node && rimraf dist && vue-tsc && vite build --mode development",