@fmdeui/fmui 1.0.6 → 1.0.8

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.
Files changed (52) hide show
  1. package/es/components/chart/index.d.ts +1 -1
  2. package/es/components/chart/src/index.vue.d.ts +1 -1
  3. package/es/components/index.d.ts +1 -0
  4. package/es/components/svgIcon/index.d.ts +26 -0
  5. package/es/components/svgIcon/index.vue.d.ts +27 -0
  6. package/es/hooks/commonFunction.d.ts +24 -0
  7. package/es/hooks/index.d.ts +5 -0
  8. package/es/index.d.ts +3 -0
  9. package/es/index.mjs +6 -1
  10. package/es/packages/hooks/commonFunction.mjs +182 -0
  11. package/es/packages/hooks/dateTimeShortCust.mjs +23 -0
  12. package/es/packages/hooks/idleTimeout.mjs +127 -0
  13. package/es/packages/hooks/index.mjs +4 -0
  14. package/es/packages/hooks/sysInfo.mjs +59 -0
  15. package/es/packages/hooks/useInfo.mjs +44 -0
  16. package/es/packages/theme-chalk/assets/logo.png.mjs +3 -0
  17. package/es/packages/utils/signalR.mjs +47 -0
  18. package/es/types/layout/index.d.ts +47 -1
  19. package/es/types/pinia/index.d.ts +1 -0
  20. package/index.js +329 -2
  21. package/index.min.js +4 -4
  22. package/index.min.mjs +4 -4
  23. package/index.mjs +307 -5
  24. package/lib/components/chart/index.d.ts +1 -1
  25. package/lib/components/chart/src/index.vue.d.ts +1 -1
  26. package/lib/components/index.d.ts +1 -0
  27. package/lib/components/svgIcon/index.d.ts +26 -0
  28. package/lib/components/svgIcon/index.vue.d.ts +27 -0
  29. package/lib/hooks/commonFunction.d.ts +24 -0
  30. package/lib/hooks/index.d.ts +5 -0
  31. package/lib/index.d.ts +3 -0
  32. package/lib/index.js +33 -3
  33. package/lib/packages/hooks/commonFunction.js +186 -0
  34. package/lib/packages/hooks/dateTimeShortCust.js +25 -0
  35. package/lib/packages/hooks/idleTimeout.js +131 -0
  36. package/lib/packages/hooks/index.js +27 -0
  37. package/lib/packages/hooks/sysInfo.js +62 -0
  38. package/lib/packages/hooks/useInfo.js +64 -0
  39. package/lib/packages/theme-chalk/assets/logo.png.js +7 -0
  40. package/lib/packages/utils/signalR.js +68 -0
  41. package/lib/types/layout/index.d.ts +47 -1
  42. package/lib/types/pinia/index.d.ts +1 -0
  43. package/locale/en.js +1 -1
  44. package/locale/en.min.js +1 -1
  45. package/locale/en.min.mjs +1 -1
  46. package/locale/en.mjs +1 -1
  47. package/locale/zh-cn.js +1 -1
  48. package/locale/zh-cn.min.js +1 -1
  49. package/locale/zh-cn.min.mjs +1 -1
  50. package/locale/zh-cn.mjs +1 -1
  51. package/package.json +1 -1
  52. /package/lib/{component.css → version.css} +0 -0
package/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! fmdeui-fmui v1.0.6 */
1
+ /*! fmdeui-fmui v1.0.8 */
2
2
  import { createPinia, defineStore, storeToRefs } from 'pinia';
3
3
  import CryptoJS from 'crypto-js';
4
4
  import XLSXS from 'xlsx-js-style';
@@ -12,10 +12,10 @@ import VxeUITable from 'vxe-table';
12
12
  import VxeUIPluginRenderElement from '@vxe-ui/plugin-render-element';
13
13
  import VxeUIPluginExportXLSX from '@vxe-ui/plugin-export-xlsx';
14
14
  import VxeUI from 'vxe-pc-ui';
15
- import { createI18n } from 'vue-i18n';
15
+ import { createI18n, useI18n } from 'vue-i18n';
16
16
  import ExcelJS from 'exceljs';
17
17
  import { get, merge } from 'lodash-es';
18
- import { isClient, useResizeObserver } from '@vueuse/core';
18
+ import { useClipboard, isClient, useResizeObserver } from '@vueuse/core';
19
19
  import { createRouter, createWebHashHistory } from 'vue-router';
20
20
  import NProgress from 'nprogress';
21
21
 
@@ -1177,7 +1177,7 @@ const NextLoading = {
1177
1177
  }
1178
1178
  };
1179
1179
 
1180
- mitt();
1180
+ const emitter = mitt();
1181
1181
 
1182
1182
  const Local = {
1183
1183
  // 查看 v2.4.3版本更新日志
@@ -1483,6 +1483,16 @@ function setJsCdn() {
1483
1483
  document.body.appendChild(link);
1484
1484
  });
1485
1485
  }
1486
+ const setIntroduction = {
1487
+ // 设置css
1488
+ cssCdn: () => {
1489
+ setCssCdn();
1490
+ },
1491
+ // 设置js
1492
+ jsCdn: () => {
1493
+ setJsCdn();
1494
+ }
1495
+ };
1486
1496
 
1487
1497
  function useChangeColor() {
1488
1498
  const hexToRgb = (str) => {
@@ -18743,6 +18753,298 @@ const useVxeTable = (opt, extras) => {
18743
18753
  return extras ? merge(options, extras) : options;
18744
18754
  };
18745
18755
 
18756
+ var img = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEEAAABBCAYAAACO98lFAAAACXBIWXMAAAsTAAALEwEAmpwYAAAFwmlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDIgNzkuMTYwOTI0LCAyMDE3LzA3LzEzLTAxOjA2OjM5ICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdEV2dD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlRXZlbnQjIiB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iIHhtbG5zOnBob3Rvc2hvcD0iaHR0cDovL25zLmFkb2JlLmNvbS9waG90b3Nob3AvMS4wLyIgeG1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VjNwMMBMD6OVTdRbBL4jkUfS8gBPnd0xZ1m4NZNNJAmDzcuuDZYaR5xAWG8meXnaP7SG6VkhtqCIC1+fmCYr0r40WFNcZ4+ab88yWcckqNeFaaVpWZptFNStOmTUjRZKQnqzNTNKoMHMdUjABODyNYSFp02AOC1+LjGbOXEz+b/7Nb8kfuWwKCHOWUGnAcw7Fdz94aY+XoewXhh0I/mj+HRqPbIGAY9j88X5w73RopXgAAAABJRU5ErkJggg==";
18757
+
18758
+ const { t } = useLocale();
18759
+ function updateIdleTimeout(timeout) {
18760
+ if (window.__IDLE_TIMEOUT__) {
18761
+ window.__IDLE_TIMEOUT__.updateIdleTimeout(timeout);
18762
+ }
18763
+ }
18764
+
18765
+ const storesThemeConfig$1 = useThemeConfig();
18766
+ const { themeConfig: themeConfig$1 } = storeToRefs(storesThemeConfig$1);
18767
+ async function loadSysInfo(tenantid) {
18768
+ var _a;
18769
+ const [err, res] = await feature(useBaseApi("sysTenant").gcomm(null, "sysInfo/" + Number(tenantid)));
18770
+ if (err) {
18771
+ themeConfig$1.value.logoUrl = img;
18772
+ Local.remove("themeConfig");
18773
+ Local.set("themeConfig", storesThemeConfig$1.themeConfig);
18774
+ return;
18775
+ } else {
18776
+ if (res.data.type != "success" || res.data.result == null) return;
18777
+ const data = res.data.result;
18778
+ themeConfig$1.value.logoUrl = data.logo;
18779
+ themeConfig$1.value.globalTitle = data.title;
18780
+ themeConfig$1.value.globalViceTitle = data.viceTitle;
18781
+ themeConfig$1.value.globalViceTitleMsg = data.viceDesc;
18782
+ themeConfig$1.value.icp = data.icp;
18783
+ themeConfig$1.value.icpUrl = data.icpUrl;
18784
+ themeConfig$1.value.isWatermark = data.watermark != null;
18785
+ themeConfig$1.value.watermarkText = data.watermark;
18786
+ themeConfig$1.value.copyright = data.copyright;
18787
+ themeConfig$1.value.version = data.version;
18788
+ themeConfig$1.value.carouselFiles = data.carouselFiles;
18789
+ themeConfig$1.value.primary = data.themeColor;
18790
+ themeConfig$1.value.layout = data.layout;
18791
+ themeConfig$1.value.animation = data.animation;
18792
+ themeConfig$1.value.secondVer = data.secondVer;
18793
+ themeConfig$1.value.captcha = data.captcha;
18794
+ themeConfig$1.value.forceChangePassword = data.forceChangePassword;
18795
+ themeConfig$1.value.passwordExpirationTime = data.passwordExpirationTime;
18796
+ themeConfig$1.value.i18NSwitch = data.i18NSwitch;
18797
+ themeConfig$1.value.idleTimeout = data.idleTimeout;
18798
+ themeConfig$1.value.onlineNotice = data.onlineNotice;
18799
+ themeConfig$1.value.mobileLogin = data.mobileLogin;
18800
+ themeConfig$1.value.scanLogin = data.scanLogin;
18801
+ themeConfig$1.value.signUp = data.signUp;
18802
+ window.__env__.VITE_SM_PUBLIC_KEY = data.publicKey;
18803
+ updateFavicon(data.logo);
18804
+ updateIdleTimeout((_a = themeConfig$1.value.idleTimeout) != null ? _a : 0);
18805
+ Local.remove("themeConfig");
18806
+ Local.set("themeConfig", storesThemeConfig$1.themeConfig);
18807
+ }
18808
+ }
18809
+ const updateFavicon = (url) => {
18810
+ const favicon = document.getElementById("favicon");
18811
+ favicon.href = url ? url : "data:;base64,=";
18812
+ };
18813
+
18814
+ const { userInfos } = useUserInfo();
18815
+ const isSupperAdmin = () => {
18816
+ return (userInfos == null ? void 0 : userInfos.accountType) === 999;
18817
+ };
18818
+ const isTenantAdmin = () => {
18819
+ return (userInfos == null ? void 0 : userInfos.accountType) === 888;
18820
+ };
18821
+ const isAdmin = () => {
18822
+ return isSupperAdmin() || isTenantAdmin();
18823
+ };
18824
+ const isNormalUser = () => {
18825
+ return (userInfos == null ? void 0 : userInfos.accountType) === 777;
18826
+ };
18827
+ const isMember = () => {
18828
+ return (userInfos == null ? void 0 : userInfos.accountType) === 666;
18829
+ };
18830
+ const userEmail = () => {
18831
+ return userInfos == null ? void 0 : userInfos.email;
18832
+ };
18833
+ const userName = () => {
18834
+ return userInfos == null ? void 0 : userInfos.userName;
18835
+ };
18836
+ const userFriendName = () => (userInfos == null ? void 0 : userInfos.realName) ? userInfos == null ? void 0 : userInfos.realName : (userInfos == null ? void 0 : userInfos.account) ? userInfos == null ? void 0 : userInfos.account : userInfos == null ? void 0 : userInfos.email;
18837
+ const tenantId = () => {
18838
+ return userInfos == null ? void 0 : userInfos.tenantId;
18839
+ };
18840
+ const userAccount = () => userInfos == null ? void 0 : userInfos.account;
18841
+ const userPhone = () => userInfos == null ? void 0 : userInfos.phone;
18842
+ const userId = () => userInfos == null ? void 0 : userInfos.id;
18843
+ const orgId = () => userInfos == null ? void 0 : userInfos.orgId;
18844
+ const orgName = () => userInfos == null ? void 0 : userInfos.orgName;
18845
+ const posId = () => userInfos == null ? void 0 : userInfos.posId;
18846
+ const posName = () => userInfos == null ? void 0 : userInfos.posName;
18847
+ const roles = () => userInfos == null ? void 0 : userInfos.roles;
18848
+ const hasRoleCode = (code) => {
18849
+ return userInfos.roles.find((u) => u.code === code) ? true : false;
18850
+ };
18851
+ const hasPrivilege = (privilege) => {
18852
+ return userInfos.authApiList.includes(privilege);
18853
+ };
18854
+
18855
+ const useDateTimeShortCust = () => {
18856
+ return [
18857
+ { text: "\u4ECA\u5929", value: /* @__PURE__ */ new Date() },
18858
+ {
18859
+ text: "\u6628\u5929",
18860
+ value: () => {
18861
+ const date = /* @__PURE__ */ new Date();
18862
+ date.setTime(date.getTime() - 3600 * 1e3 * 24);
18863
+ return date;
18864
+ }
18865
+ },
18866
+ {
18867
+ text: "\u4E0A\u5468",
18868
+ value: () => {
18869
+ const date = /* @__PURE__ */ new Date();
18870
+ date.setTime(date.getTime() - 3600 * 1e3 * 24 * 7);
18871
+ return date;
18872
+ }
18873
+ }
18874
+ ];
18875
+ };
18876
+
18877
+ const themeStore = useThemeConfig();
18878
+ function commonFunction() {
18879
+ const { t } = useI18n();
18880
+ const { copy, isSupported } = useClipboard();
18881
+ const percentFormat = (row, column, cellValue) => {
18882
+ return cellValue ? `${cellValue}%` : "-";
18883
+ };
18884
+ const dateFormatYMD = (row, column, cellValue) => {
18885
+ if (!cellValue) return "-";
18886
+ return formatDate(new Date(cellValue), "YYYY-mm-dd");
18887
+ };
18888
+ const dateFormatYMDHMS = (row, column, cellValue) => {
18889
+ if (!cellValue) return "-";
18890
+ return formatDate(new Date(cellValue), "YYYY-mm-dd HH:MM:SS");
18891
+ };
18892
+ const dateFormatHMS = (row, column, cellValue) => {
18893
+ if (!cellValue) return "-";
18894
+ let time = 0;
18895
+ if (typeof row === "number") time = row;
18896
+ if (typeof cellValue === "number") time = cellValue;
18897
+ return formatDate(new Date(time * 1e3), "HH:MM:SS");
18898
+ };
18899
+ const scaleFormat = (value = "0", scale = 4) => {
18900
+ return Number.parseFloat(value).toFixed(scale);
18901
+ };
18902
+ const scale2Format = (value = "0") => {
18903
+ return Number.parseFloat(value).toFixed(2);
18904
+ };
18905
+ const groupSeparator = (value, minimumFractionDigits = 2) => {
18906
+ return value.toLocaleString("en-US", {
18907
+ minimumFractionDigits,
18908
+ maximumFractionDigits: 2
18909
+ });
18910
+ };
18911
+ const copyText = (text) => {
18912
+ return new Promise((resolve, reject) => {
18913
+ try {
18914
+ if (!isSupported.value) {
18915
+ console.error("\u6D4F\u89C8\u5668\u4E0D\u652F\u6301\u526A\u8D34\u677F API");
18916
+ reject("\u6D4F\u89C8\u5668\u4E0D\u652F\u6301\u526A\u8D34\u677F API");
18917
+ } else {
18918
+ copy(text);
18919
+ ElMessage.success(t("message.layout.copyTextSuccess"));
18920
+ resolve(text);
18921
+ }
18922
+ } catch (e) {
18923
+ ElMessage.error(t("message.layout.copyTextError"));
18924
+ reject(e);
18925
+ }
18926
+ });
18927
+ };
18928
+ const removeHtmlSub = (value) => {
18929
+ var str = value.replace(/<[^>]+>/g, "");
18930
+ if (str.length > 50) return str.substring(0, 50) + "......";
18931
+ else return str;
18932
+ };
18933
+ const removeHtml = (value) => {
18934
+ return value.replace(/<[^>]+>/g, "");
18935
+ };
18936
+ const getEnumDesc = (key, lstEnum) => {
18937
+ var _a;
18938
+ return (_a = lstEnum.find((x) => x.value == key)) == null ? void 0 : _a.describe;
18939
+ };
18940
+ const appendQueryParams = (url, params) => {
18941
+ if (!params || Object.keys(params).length == 0) return url;
18942
+ const queryString = Object.keys(params).map((key) => `${encodeURIComponent(key)}=${encodeURIComponent(params[key])}`).join("&");
18943
+ return `${url}${url.includes("?") ? "&" : "?"}${queryString}`;
18944
+ };
18945
+ const getNameAbbr = (text, callback) => {
18946
+ if (!text) return ElMessage.error("\u83B7\u53D6\u7B80\u79F0\u6587\u672C\u4E0D\u80FD\u4E3A\u7A7A");
18947
+ try {
18948
+ return useBaseApi("sysCommon").post({ text }, "nameAbbr").then((res) => {
18949
+ if (callback) callback(res.data.result);
18950
+ return res.data.result;
18951
+ });
18952
+ } catch (e) {
18953
+ ElMessage.error("\u83B7\u53D6\u5931\u8D25");
18954
+ }
18955
+ };
18956
+ const handleConditionalClear = (condition, fieldValue, clearValue = void 0) => {
18957
+ if (condition) {
18958
+ return clearValue;
18959
+ }
18960
+ return fieldValue;
18961
+ };
18962
+ const getTimeRangePickerShortcuts = () => {
18963
+ return [
18964
+ {
18965
+ text: "\u8FD1\u4E00\u5468",
18966
+ value: () => {
18967
+ const now = new Date(themeStore.themeConfig.serverTime);
18968
+ const end = new Date(now.getFullYear(), now.getMonth(), now.getDate(), 23, 59, 59, 999);
18969
+ const start = new Date(now.getFullYear(), now.getMonth(), now.getDate() - 7);
18970
+ return [start, end];
18971
+ }
18972
+ },
18973
+ {
18974
+ text: "\u8FD1\u4E00\u6708",
18975
+ value: () => {
18976
+ const now = new Date(themeStore.themeConfig.serverTime);
18977
+ const end = new Date(now.getFullYear(), now.getMonth(), now.getDate(), 23, 59, 59, 999);
18978
+ const start = new Date(now.getFullYear(), now.getMonth() - 1, now.getDate());
18979
+ return [start, end];
18980
+ }
18981
+ },
18982
+ {
18983
+ text: "\u8FD1\u4E09\u6708",
18984
+ value: () => {
18985
+ const now = new Date(themeStore.themeConfig.serverTime);
18986
+ const end = new Date(now.getFullYear(), now.getMonth(), now.getDate(), 23, 59, 59, 999);
18987
+ const start = new Date(now.getFullYear(), now.getMonth() - 3, now.getDate());
18988
+ return [start, end];
18989
+ }
18990
+ },
18991
+ {
18992
+ text: "\u8FD1\u534A\u5E74",
18993
+ value: () => {
18994
+ const now = new Date(themeStore.themeConfig.serverTime);
18995
+ const end = new Date(now.getFullYear(), now.getMonth(), now.getDate(), 23, 59, 59, 999);
18996
+ const start = new Date(now.getFullYear(), now.getMonth() - 6, now.getDate());
18997
+ return [start, end];
18998
+ }
18999
+ },
19000
+ {
19001
+ text: "\u672C\u5E74",
19002
+ value: () => {
19003
+ const now = new Date(themeStore.themeConfig.serverTime);
19004
+ const end = new Date(now.getFullYear(), 11, 31, 23, 59, 59, 999);
19005
+ const start = new Date(now.getFullYear(), 0, 1);
19006
+ return [start, end];
19007
+ }
19008
+ },
19009
+ {
19010
+ text: "\u8FD1\u4E24\u5E74",
19011
+ value: () => {
19012
+ const now = new Date(themeStore.themeConfig.serverTime);
19013
+ const end = new Date(now.getFullYear(), 11, 31, 23, 59, 59, 999);
19014
+ const start = new Date(now.getFullYear() - 1, 0, 1);
19015
+ return [start, end];
19016
+ }
19017
+ },
19018
+ {
19019
+ text: "\u8FD1\u4E09\u5E74",
19020
+ value: () => {
19021
+ const now = new Date(themeStore.themeConfig.serverTime);
19022
+ const end = new Date(now.getFullYear(), 11, 31, 23, 59, 59, 999);
19023
+ const start = new Date(now.getFullYear() - 2, 0, 1);
19024
+ return [start, end];
19025
+ }
19026
+ }
19027
+ ];
19028
+ };
19029
+ return {
19030
+ percentFormat,
19031
+ dateFormatYMD,
19032
+ dateFormatYMDHMS,
19033
+ dateFormatHMS,
19034
+ scaleFormat,
19035
+ scale2Format,
19036
+ groupSeparator,
19037
+ copyText,
19038
+ removeHtmlSub,
19039
+ removeHtml,
19040
+ getEnumDesc,
19041
+ appendQueryParams,
19042
+ getNameAbbr,
19043
+ handleConditionalClear,
19044
+ getTimeRangePickerShortcuts
19045
+ };
19046
+ }
19047
+
18746
19048
  const _hoisted_1$6 = { key: 0 };
18747
19049
  const _hoisted_2$3 = { key: 0 };
18748
19050
  var _sfc_main$c = /* @__PURE__ */ defineComponent({
@@ -22278,4 +22580,4 @@ const version = "1.0.0";
22278
22580
 
22279
22581
  const install = installer.install;
22280
22582
 
22281
- export { AccountTypeEnum, HttpMethodEnum, JobCreateTypeEnum, Local, NextLoading, Session, StringToObj, accessTokenKey, auth, authAll, auths, axiosInstance, base64ToFile, blobToFile, buildLocaleContext, buildTranslator, cancelAllRequest, cancelRequest, clearAccessTokens, clearTokens, clone, configureRoutes, dataURLtoBlob, decryptJWT, installer as default, downloadByBase64, downloadByData, downloadByOnlineUrl, downloadByUrl, downloadStreamFile, en, exportExcel, feature, fileToBase64, flowLoading, formatAxis, formatDate, formatPast, gcj02ToBd09, getCountryCode, getFileName, getHeader, getJWTDate, getToken, getWeek, hAuth, hAuthAll, hAuths, i18n, initBackEndControlRoutes, initFrontEndControlRoutes, initRouter, install, isObjectValueEqual, iso_3166_1_CountryList, judgementIdCard, judgementSameArr, languageList, mergMessage, openWindow, reLoadLoginAccessToken, refreshAccessTokenKey, removeDuplicate, request2, saulVModel, service, setCssCdn, setDynamicViewsModules, setJsCdn, setPathPrefix, setupI18n, signatureByKSort, sleep, tansParams, translate, urlToBase64, useApi, useBaseApi, useChangeColor, useFormRulePresets, useKeepALiveNames, useLocale, useRequestOldRoutes, useRoutesList, useSysApi, useTagsViewRoutes, useThemeConfig, useUserInfo, useVxeTable, validateFormWithScroll, validateFormWithScrollCallback, verifiyNumberInteger, verifyAccount, verifyAndSpace, verifyCarNum, verifyCnAndSpace, verifyEmail, verifyEnAndSpace, verifyFullName, verifyIPAddress, verifyIdCard, verifyNumberCnUppercase, verifyNumberComma, verifyNumberIntegerAndFloat, verifyNumberPercentage, verifyNumberPercentageFloat, verifyPassword, verifyPasswordPowerful, verifyPasswordStrength, verifyPhone, verifyPostalCode, verifyTelPhone, verifyTextColor, verifyUrl, version, wgs84ToBd09, wgs84ToGcj02, plusZhCn as zhCn };
22583
+ export { AccountTypeEnum, HttpMethodEnum, JobCreateTypeEnum, Local, NextLoading, Session, StringToObj, accessTokenKey, auth, authAll, auths, axiosInstance, base64ToFile, blobToFile, buildLocaleContext, buildTranslator, cancelAllRequest, cancelRequest, clearAccessTokens, clearTokens, clone, commonFunction, configureRoutes, dataURLtoBlob, decryptJWT, installer as default, downloadByBase64, downloadByData, downloadByOnlineUrl, downloadByUrl, downloadStreamFile, en, exportExcel, feature, fileToBase64, flowLoading, formatAxis, formatDate, formatPast, gcj02ToBd09, getCountryCode, getFileName, getHeader, getJWTDate, getToken, getWeek, hAuth, hAuthAll, hAuths, hasPrivilege, hasRoleCode, i18n, initBackEndControlRoutes, initFrontEndControlRoutes, initRouter, install, isAdmin, isMember, isNormalUser, isObjectValueEqual, isSupperAdmin, isTenantAdmin, iso_3166_1_CountryList, judgementIdCard, judgementSameArr, languageList, loadSysInfo, mergMessage, emitter as mittBus, openWindow, orgId, orgName, posId, posName, reLoadLoginAccessToken, refreshAccessTokenKey, removeDuplicate, request2, roles, saulVModel, service, setCssCdn, setDynamicViewsModules, setIntroduction, setJsCdn, setPathPrefix, setupI18n, signatureByKSort, sleep, tansParams, tenantId, translate, updateFavicon, urlToBase64, useApi, useBaseApi, useChangeColor, useDateTimeShortCust, useFormRulePresets, useKeepALiveNames, useLocale, useRequestOldRoutes, useRoutesList, useSysApi, useTagsViewRoutes, useThemeConfig, useUserInfo, useVxeTable, userAccount, userEmail, userFriendName, userId, userName, userPhone, validateFormWithScroll, validateFormWithScrollCallback, verifiyNumberInteger, verifyAccount, verifyAndSpace, verifyCarNum, verifyCnAndSpace, verifyEmail, verifyEnAndSpace, verifyFullName, verifyIPAddress, verifyIdCard, verifyNumberCnUppercase, verifyNumberComma, verifyNumberIntegerAndFloat, verifyNumberPercentage, verifyNumberPercentageFloat, verifyPassword, verifyPasswordPowerful, verifyPasswordStrength, verifyPhone, verifyPostalCode, verifyTelPhone, verifyTextColor, verifyUrl, version, wgs84ToBd09, wgs84ToGcj02, plusZhCn as zhCn };
@@ -9,8 +9,8 @@ export declare const FChart: {
9
9
  id: string;
10
10
  options: Record<string, any>;
11
11
  theme: string;
12
- isEmpty: boolean | ((options: Record<string, any>) => boolean);
13
12
  description: string;
13
+ isEmpty: boolean | ((options: Record<string, any>) => boolean);
14
14
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
15
15
  $slots: {
16
16
  empty?(_: {}): any;
@@ -16,8 +16,8 @@ declare const __VLS_component: DefineComponent<FChartProps, {}, {}, {}, {}, Comp
16
16
  id: string;
17
17
  options: Record<string, any>;
18
18
  theme: string;
19
- isEmpty: boolean | ((options: Record<string, any>) => boolean);
20
19
  description: string;
20
+ isEmpty: boolean | ((options: Record<string, any>) => boolean);
21
21
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
22
22
  echartRef: HTMLDivElement;
23
23
  }, HTMLDivElement>;
@@ -7,3 +7,4 @@ export * from './select';
7
7
  export * from './select-table';
8
8
  export * from './query-condition';
9
9
  export * from './form';
10
+ export * from './svgIcon';
@@ -0,0 +1,26 @@
1
+ import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ export declare const FSvgIcon: DefineComponent<ExtractPropTypes<{
3
+ name: {
4
+ type: StringConstructor;
5
+ };
6
+ size: {
7
+ type: NumberConstructor;
8
+ default: () => number;
9
+ };
10
+ color: {
11
+ type: StringConstructor;
12
+ };
13
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
14
+ name: {
15
+ type: StringConstructor;
16
+ };
17
+ size: {
18
+ type: NumberConstructor;
19
+ default: () => number;
20
+ };
21
+ color: {
22
+ type: StringConstructor;
23
+ };
24
+ }>> & Readonly<{}>, {
25
+ size: number;
26
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,27 @@
1
+ import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ declare const _default: DefineComponent<ExtractPropTypes<{
3
+ name: {
4
+ type: StringConstructor;
5
+ };
6
+ size: {
7
+ type: NumberConstructor;
8
+ default: () => number;
9
+ };
10
+ color: {
11
+ type: StringConstructor;
12
+ };
13
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
14
+ name: {
15
+ type: StringConstructor;
16
+ };
17
+ size: {
18
+ type: NumberConstructor;
19
+ default: () => number;
20
+ };
21
+ color: {
22
+ type: StringConstructor;
23
+ };
24
+ }>> & Readonly<{}>, {
25
+ size: number;
26
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
27
+ export default _default;
@@ -0,0 +1,24 @@
1
+ import { EmptyArrayType } from 'fmdeui-fmui/es/types';
2
+ import { MessageHandler } from 'element-plus';
3
+ export default function (): {
4
+ percentFormat: (row: EmptyArrayType, column: number, cellValue: string) => string;
5
+ dateFormatYMD: (row: EmptyArrayType, column: number, cellValue: string) => string;
6
+ dateFormatYMDHMS: (row: EmptyArrayType, column: number, cellValue: string) => string;
7
+ dateFormatHMS: (row: EmptyArrayType, column: number, cellValue: string) => string;
8
+ scaleFormat: (value?: string, scale?: number) => string;
9
+ scale2Format: (value?: string) => string;
10
+ groupSeparator: (value: number, minimumFractionDigits?: number) => string;
11
+ copyText: (text: string) => Promise<unknown>;
12
+ removeHtmlSub: (value: string) => string;
13
+ removeHtml: (value: string) => string;
14
+ getEnumDesc: (key: any, lstEnum: any) => any;
15
+ appendQueryParams: (url: string, params: {
16
+ [key: string]: any;
17
+ }) => string;
18
+ getNameAbbr: (text: string, callback?: (abbr: any) => void) => Promise<any> | MessageHandler | undefined;
19
+ handleConditionalClear: (condition: boolean, fieldValue: any, clearValue?: any) => any;
20
+ getTimeRangePickerShortcuts: () => {
21
+ text: string;
22
+ value: () => Date[];
23
+ }[];
24
+ };
@@ -1,3 +1,8 @@
1
+ import { default as commonFunction } from './commonFunction';
1
2
  export * from './useLocale';
2
3
  export * from './authFunction';
3
4
  export * from './useVxeTableOptionsHook';
5
+ export * from './sysInfo';
6
+ export * from './useInfo';
7
+ export * from './dateTimeShortCust';
8
+ export { commonFunction };
package/lib/index.d.ts CHANGED
@@ -1,5 +1,8 @@
1
1
  import { default as installer } from './defaults';
2
+ import { default as mittBus } from './utils/mitt';
3
+ import { default as setIntroduction } from './utils/setIconfont';
2
4
  import { App } from 'vue';
5
+ export { mittBus, setIntroduction };
3
6
  export * from './types';
4
7
  export * from './api';
5
8
  export * from './utils';
package/lib/index.js CHANGED
@@ -3,6 +3,8 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var defaults = require('./defaults.js');
6
+ var mitt = require('./packages/utils/mitt.js');
7
+ var setIconfont = require('./packages/utils/setIconfont.js');
6
8
  require('./packages/types/index.js');
7
9
  var index = require('./packages/api/index.js');
8
10
  require('./packages/utils/index.js');
@@ -19,6 +21,7 @@ var authFunction = require('./packages/hooks/authFunction.js');
19
21
  var base64Conver = require('./packages/utils/base64Conver.js');
20
22
  var useLocale = require('./packages/hooks/useLocale.js');
21
23
  var arrayOperation = require('./packages/utils/arrayOperation.js');
24
+ var commonFunction = require('./packages/hooks/commonFunction.js');
22
25
  var route = require('./packages/router/route.js');
23
26
  var download = require('./packages/utils/download.js');
24
27
  var en = require('./packages/locale/lang/en.js');
@@ -27,14 +30,16 @@ var index$1 = require('./packages/api/sys/index.js');
27
30
  var flowLoading = require('./packages/utils/flowLoading.js');
28
31
  var formatTime = require('./packages/utils/formatTime.js');
29
32
  var gpsConvertor = require('./packages/utils/gpsConvertor.js');
33
+ var useInfo = require('./packages/hooks/useInfo.js');
30
34
  var backEnd = require('./packages/router/backEnd.js');
31
35
  var frontEnd = require('./packages/router/frontEnd.js');
32
36
  var toolsValidate = require('./packages/utils/toolsValidate.js');
37
+ var sysInfo = require('./packages/hooks/sysInfo.js');
33
38
  var saulVModel = require('./packages/utils/saulVModel.js');
34
- var setIconfont = require('./packages/utils/setIconfont.js');
35
39
  var dataSignature = require('./packages/utils/data-signature.js');
36
40
  var index$4 = require('./packages/api/base/index.js');
37
41
  var theme = require('./packages/utils/theme.js');
42
+ var dateTimeShortCust = require('./packages/hooks/dateTimeShortCust.js');
38
43
  var formRule = require('./packages/utils/formRule.js');
39
44
  var keepAliveNames = require('./packages/stores/keepAliveNames.js');
40
45
  var requestOldRoutes = require('./packages/stores/requestOldRoutes.js');
@@ -49,6 +54,10 @@ var zhCn = require('./packages/locale/lang/zh-cn.js');
49
54
  const install = defaults.default.install;
50
55
 
51
56
  exports.default = defaults.default;
57
+ exports.mittBus = mitt.default;
58
+ exports.setCssCdn = setIconfont.setCssCdn;
59
+ exports.setIntroduction = setIconfont.default;
60
+ exports.setJsCdn = setIconfont.setJsCdn;
52
61
  exports.AccountTypeEnum = index.AccountTypeEnum;
53
62
  exports.HttpMethodEnum = index.HttpMethodEnum;
54
63
  exports.JobCreateTypeEnum = index.JobCreateTypeEnum;
@@ -99,6 +108,7 @@ exports.clone = arrayOperation.clone;
99
108
  exports.isObjectValueEqual = arrayOperation.isObjectValueEqual;
100
109
  exports.judgementSameArr = arrayOperation.judgementSameArr;
101
110
  exports.removeDuplicate = arrayOperation.removeDuplicate;
111
+ exports.commonFunction = commonFunction.default;
102
112
  exports.configureRoutes = route.configureRoutes;
103
113
  exports.setPathPrefix = route.setPathPrefix;
104
114
  exports.downloadByBase64 = download.downloadByBase64;
@@ -120,6 +130,25 @@ exports.getWeek = formatTime.getWeek;
120
130
  exports.gcj02ToBd09 = gpsConvertor.gcj02ToBd09;
121
131
  exports.wgs84ToBd09 = gpsConvertor.wgs84ToBd09;
122
132
  exports.wgs84ToGcj02 = gpsConvertor.wgs84ToGcj02;
133
+ exports.hasPrivilege = useInfo.hasPrivilege;
134
+ exports.hasRoleCode = useInfo.hasRoleCode;
135
+ exports.isAdmin = useInfo.isAdmin;
136
+ exports.isMember = useInfo.isMember;
137
+ exports.isNormalUser = useInfo.isNormalUser;
138
+ exports.isSupperAdmin = useInfo.isSupperAdmin;
139
+ exports.isTenantAdmin = useInfo.isTenantAdmin;
140
+ exports.orgId = useInfo.orgId;
141
+ exports.orgName = useInfo.orgName;
142
+ exports.posId = useInfo.posId;
143
+ exports.posName = useInfo.posName;
144
+ exports.roles = useInfo.roles;
145
+ exports.tenantId = useInfo.tenantId;
146
+ exports.userAccount = useInfo.userAccount;
147
+ exports.userEmail = useInfo.userEmail;
148
+ exports.userFriendName = useInfo.userFriendName;
149
+ exports.userId = useInfo.userId;
150
+ exports.userName = useInfo.userName;
151
+ exports.userPhone = useInfo.userPhone;
123
152
  exports.initBackEndControlRoutes = backEnd.initBackEndControlRoutes;
124
153
  exports.setDynamicViewsModules = backEnd.setDynamicViewsModules;
125
154
  exports.initFrontEndControlRoutes = frontEnd.initFrontEndControlRoutes;
@@ -147,13 +176,14 @@ exports.verifyPostalCode = toolsValidate.verifyPostalCode;
147
176
  exports.verifyTelPhone = toolsValidate.verifyTelPhone;
148
177
  exports.verifyTextColor = toolsValidate.verifyTextColor;
149
178
  exports.verifyUrl = toolsValidate.verifyUrl;
179
+ exports.loadSysInfo = sysInfo.loadSysInfo;
180
+ exports.updateFavicon = sysInfo.updateFavicon;
150
181
  exports.saulVModel = saulVModel.saulVModel;
151
- exports.setCssCdn = setIconfont.setCssCdn;
152
- exports.setJsCdn = setIconfont.setJsCdn;
153
182
  exports.signatureByKSort = dataSignature.signatureByKSort;
154
183
  exports.useApi = index$4.useApi;
155
184
  exports.useBaseApi = index$4.useBaseApi;
156
185
  exports.useChangeColor = theme.useChangeColor;
186
+ exports.useDateTimeShortCust = dateTimeShortCust.useDateTimeShortCust;
157
187
  exports.useFormRulePresets = formRule.useFormRulePresets;
158
188
  exports.useKeepALiveNames = keepAliveNames.useKeepALiveNames;
159
189
  exports.useRequestOldRoutes = requestOldRoutes.useRequestOldRoutes;