@das-fed/upf-utils 6.4.0-dev.170 → 6.4.0-dev.172
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/api-services/es5.js +4661 -0
- package/api-services/i18n/es5.js +58 -0
- package/api-services/index.js +593 -611
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/index.js +847 -883
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/index.js +701 -715
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/index.js +882 -882
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/index.js +880 -880
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/index.js +473 -491
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/index.js +490 -508
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/es5.js +4619 -0
- package/api-services/modules/file/index.js +942 -978
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/index.js +701 -715
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +651 -669
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/index.js +1104 -1140
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/index.js +492 -510
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/index.js +698 -712
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/index.js +880 -880
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/index.js +490 -508
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/index.js +463 -481
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/index.js +880 -880
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/index.js +487 -505
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/index.js +881 -881
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/index.js +483 -501
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/index.js +490 -508
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/index.js +880 -880
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/index.js +880 -880
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/index.js +865 -901
- package/api-services/src/create-service/index.js.gz +0 -0
- package/atob/es5.js +12 -0
- package/common-info/es5.js +219 -0
- package/common-info/getIframeUrl/es5.js +18 -0
- package/common-info/getInfoFromUrl/es5.js +94 -0
- package/common-info/index.js +18 -18
- package/common-info/index.js.gz +0 -0
- package/common-info/set-personal-info/es5.js +2212 -0
- package/common-info/set-personal-info/index.js +172 -189
- package/common-info/set-personal-info/index.js.gz +0 -0
- package/common-tools/arr-tools/es5.js +14 -0
- package/common-tools/calc-text-width/es5.js +10 -0
- package/common-tools/date-format/es5.js +20 -0
- package/common-tools/es5.js +128 -0
- package/common-tools/extract-file-name/es5.js +2213 -0
- package/common-tools/extract-file-name/index.js +138 -155
- package/common-tools/extract-file-name/index.js.gz +0 -0
- package/common-tools/get-file-extension/es5.js +7 -0
- package/common-tools/get-url-params/es5.js +109 -0
- package/common-tools/handle-data/es5.js +170 -0
- package/common-tools/handle-data/index.js +28 -28
- package/common-tools/handle-data/index.js.gz +0 -0
- package/common-tools/nest-tree-format/es5.js +58 -0
- package/common-tools/obj-tools/es5.js +15 -0
- package/common-tools/platform-tools/es5.js +24 -0
- package/common-tools/queue-promise/es5.js +15 -0
- package/common-tools/setHtmlMinWH/es5.js +8 -0
- package/common-tools/update-browser-title/es5.js +56 -0
- package/common-tools/update-fav-icon/es5.js +76 -0
- package/config/es5.js +17 -0
- package/create-api-service/check-token/es5.js +2307 -0
- package/create-api-service/check-token/index.js +158 -175
- package/create-api-service/check-token/index.js.gz +0 -0
- package/create-api-service/es5.js +3949 -0
- package/create-api-service/i18n/es5.js +38 -0
- package/create-api-service/index.js +503 -521
- package/create-api-service/index.js.gz +0 -0
- package/create-api-service/proxy-sso/es5.js +35 -0
- package/create-api-service/sso/es5.js +2823 -0
- package/create-api-service/sso/index.js +309 -327
- package/create-api-service/sso/index.js.gz +0 -0
- package/curring-http/es5.js +2915 -0
- package/curring-http/index.js +285 -303
- package/curring-http/index.js.gz +0 -0
- package/dimple-canvas/es5.js +15 -0
- package/directive/auth/es5.js +96 -0
- package/directive/clickOutside/es5.js +87 -0
- package/directive/es5.js +23 -0
- package/directive/hoverInside/es5.js +61 -0
- package/directive/utils/es5.js +38 -0
- package/dom-check-in/es5.js +13 -0
- package/dom-watcher/es5.js +15 -0
- package/hooks/use-get-auth/es5.js +201 -0
- package/hooks/use-get-auth/index.js +22 -22
- package/hooks/use-get-auth/index.js.gz +0 -0
- package/load-js/es5.js +15 -0
- package/nextTiken/es5.js +70 -0
- package/oss/es5.js +13 -0
- package/package.json +17 -4
- package/pinyin-first-character/es5.js +9313 -0
- package/pinyin-first-character/index.js +24 -24
- package/pinyin-first-character/index.js.gz +0 -0
- package/process-engine-info/es5.js +20 -0
- package/pure-image-src/es5.js +30 -0
- package/size-watcher/es5.js +35 -0
- package/style/es5.js +143 -0
- package/token-tools/es5.js +26 -0
- package/use-low-code/es5.js +117 -0
- package/use-low-code/index.js +2 -2
- package/use-low-code/index.js.gz +0 -0
- package/vue/es5.js +9 -0
- package/webSocket-service/es5.js +122 -0
- package/with-install/es5.js +8 -0
|
Binary file
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var o = function o(t, r) {
|
|
4
|
+
var e = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
|
|
5
|
+
return t.length !== r.length ? false : e ? t.sort().toString() === r.sort().toString() : t.toString() === r.toString();
|
|
6
|
+
},
|
|
7
|
+
s = function s(t, r) {
|
|
8
|
+
var e = /* @__PURE__ */new Map();
|
|
9
|
+
return t.filter(function (n) {
|
|
10
|
+
return !e.has(n[r]) && e.set(n[r], 1);
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
exports.arrEqual = o;
|
|
14
|
+
exports.arrUnique = s;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var n = function n(t, i) {
|
|
4
|
+
if (!t) return 0;
|
|
5
|
+
var e = document.createElement("div");
|
|
6
|
+
e.style.visibility = "hidden", e.style.whiteSpace = "pre", e.style.display = "inline-block", e.style.fontSize = i + "px", e.textContent = t, document.body.appendChild(e);
|
|
7
|
+
var d = e.offsetWidth;
|
|
8
|
+
return document.body.removeChild(e), d;
|
|
9
|
+
};
|
|
10
|
+
exports.calcTextWidth = n;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var a = function a(s) {
|
|
4
|
+
var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "yyyy-MM-dd HH:mm:ss";
|
|
5
|
+
var e = s ? new Date(s) : /* @__PURE__ */new Date();
|
|
6
|
+
var r = {
|
|
7
|
+
"M+": e.getMonth() + 1,
|
|
8
|
+
"d+": e.getDate(),
|
|
9
|
+
"H+": e.getHours(),
|
|
10
|
+
"m+": e.getMinutes(),
|
|
11
|
+
"s+": e.getSeconds(),
|
|
12
|
+
"q+": Math.floor((e.getMonth() + 3) / 3),
|
|
13
|
+
S: e.getMilliseconds()
|
|
14
|
+
},
|
|
15
|
+
g = e.getFullYear().toString();
|
|
16
|
+
g = g.length >= 4 ? g : "0000".substr(0, 4 - g.length) + g, /(y+)/.test(t) && (t = t.replace(RegExp.$1, (g + "").substr(4 - RegExp.$1.length)));
|
|
17
|
+
for (var n in r) new RegExp("(" + n + ")").test(t) && (t = t.replace(RegExp.$1, RegExp.$1.length === 1 ? r[n] : ("00" + r[n]).substr(("" + r[n]).length)));
|
|
18
|
+
return t;
|
|
19
|
+
};
|
|
20
|
+
exports.dateFormat = a;
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var dateFormat = require('@das-fed/upf-utils/common-tools/date-format/es5');
|
|
4
|
+
var getUrlParams = require('@das-fed/upf-utils/common-tools/get-url-params/es5');
|
|
5
|
+
var nestTreeFormat = require('@das-fed/upf-utils/common-tools/nest-tree-format/es5');
|
|
6
|
+
var objTools = require('@das-fed/upf-utils/common-tools/obj-tools/es5');
|
|
7
|
+
var arrTools = require('@das-fed/upf-utils/common-tools/arr-tools/es5');
|
|
8
|
+
var handleData = require('@das-fed/upf-utils/common-tools/handle-data/es5');
|
|
9
|
+
var setHtmlMinWH = require('@das-fed/upf-utils/common-tools/setHtmlMinWH/es5');
|
|
10
|
+
var queuePromise = require('@das-fed/upf-utils/common-tools/queue-promise/es5');
|
|
11
|
+
var platformTools = require('@das-fed/upf-utils/common-tools/platform-tools/es5');
|
|
12
|
+
var updateFavIcon = require('@das-fed/upf-utils/common-tools/update-fav-icon/es5');
|
|
13
|
+
var updateBrowserTitle = require('@das-fed/upf-utils/common-tools/update-browser-title/es5');
|
|
14
|
+
var extractFileName = require('@das-fed/upf-utils/common-tools/extract-file-name/es5');
|
|
15
|
+
var getFileExtension = require('@das-fed/upf-utils/common-tools/get-file-extension/es5');
|
|
16
|
+
var calcTextWidth = require('@das-fed/upf-utils/common-tools/calc-text-width/es5');
|
|
17
|
+
Object.keys(dateFormat).forEach(function (k) {
|
|
18
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function get() {
|
|
21
|
+
return dateFormat[k];
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
Object.keys(getUrlParams).forEach(function (k) {
|
|
26
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
27
|
+
enumerable: true,
|
|
28
|
+
get: function get() {
|
|
29
|
+
return getUrlParams[k];
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
Object.keys(nestTreeFormat).forEach(function (k) {
|
|
34
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
35
|
+
enumerable: true,
|
|
36
|
+
get: function get() {
|
|
37
|
+
return nestTreeFormat[k];
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
Object.keys(objTools).forEach(function (k) {
|
|
42
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function get() {
|
|
45
|
+
return objTools[k];
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
Object.keys(arrTools).forEach(function (k) {
|
|
50
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
51
|
+
enumerable: true,
|
|
52
|
+
get: function get() {
|
|
53
|
+
return arrTools[k];
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
Object.keys(handleData).forEach(function (k) {
|
|
58
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
59
|
+
enumerable: true,
|
|
60
|
+
get: function get() {
|
|
61
|
+
return handleData[k];
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
});
|
|
65
|
+
Object.keys(setHtmlMinWH).forEach(function (k) {
|
|
66
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
67
|
+
enumerable: true,
|
|
68
|
+
get: function get() {
|
|
69
|
+
return setHtmlMinWH[k];
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
});
|
|
73
|
+
Object.keys(queuePromise).forEach(function (k) {
|
|
74
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
75
|
+
enumerable: true,
|
|
76
|
+
get: function get() {
|
|
77
|
+
return queuePromise[k];
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
});
|
|
81
|
+
Object.keys(platformTools).forEach(function (k) {
|
|
82
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
83
|
+
enumerable: true,
|
|
84
|
+
get: function get() {
|
|
85
|
+
return platformTools[k];
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
});
|
|
89
|
+
Object.keys(updateFavIcon).forEach(function (k) {
|
|
90
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
91
|
+
enumerable: true,
|
|
92
|
+
get: function get() {
|
|
93
|
+
return updateFavIcon[k];
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
});
|
|
97
|
+
Object.keys(updateBrowserTitle).forEach(function (k) {
|
|
98
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
99
|
+
enumerable: true,
|
|
100
|
+
get: function get() {
|
|
101
|
+
return updateBrowserTitle[k];
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
});
|
|
105
|
+
Object.keys(extractFileName).forEach(function (k) {
|
|
106
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
107
|
+
enumerable: true,
|
|
108
|
+
get: function get() {
|
|
109
|
+
return extractFileName[k];
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
});
|
|
113
|
+
Object.keys(getFileExtension).forEach(function (k) {
|
|
114
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
115
|
+
enumerable: true,
|
|
116
|
+
get: function get() {
|
|
117
|
+
return getFileExtension[k];
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
});
|
|
121
|
+
Object.keys(calcTextWidth).forEach(function (k) {
|
|
122
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
123
|
+
enumerable: true,
|
|
124
|
+
get: function get() {
|
|
125
|
+
return calcTextWidth[k];
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
});
|