orion-design 0.1.0 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/Flex/Col.d.ts +25 -0
- package/dist/components/Flex/Item.d.ts +25 -0
- package/dist/components/Flex/Row.d.ts +25 -0
- package/dist/components/Flex/index.d.ts +10 -0
- package/dist/components/Flex/index.js +151 -0
- package/dist/components/Modal/Modal.d.ts +2 -0
- package/dist/components/Space/index.d.ts +76 -0
- package/dist/components/_util/classNames.d.ts +2 -0
- package/dist/components/_util/classNames.js +31 -0
- package/dist/components/_util/isValid.d.ts +2 -0
- package/dist/components/_util/isValid.js +5 -0
- package/dist/components/_util/props-util/index.d.ts +6 -0
- package/dist/components/_util/props-util/index.js +53 -0
- package/dist/components/_util/props-util/initDefaultProps.d.ts +6 -0
- package/dist/components/_util/props-util/initDefaultProps.js +25 -0
- package/dist/components/_util/type.d.ts +62 -0
- package/dist/components/_util/type.js +66 -0
- package/dist/components/_util/util.d.ts +18 -0
- package/dist/components/_util/util.js +83 -0
- package/dist/components/_util/vue-types/index.d.ts +12 -0
- package/dist/components/_util/vue-types/index.js +473 -0
- package/dist/components/components.d.ts +4 -0
- package/dist/components/components.js +10 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/components/index.js +23 -0
- package/dist/components-O4L3qYfM.js +61 -0
- package/dist/error/OrionError.js +9 -7
- package/dist/index.css +44 -0
- package/dist/index.d.ts +4 -1
- package/dist/index.js +12 -3
- package/dist/print/LodopFuncs.js +109 -140
- package/dist/print/index.js +204 -199
- package/dist/request/ErrorHandlerChain.js +13 -13
- package/dist/request/RequestFilterChain.js +13 -13
- package/dist/request/ResponseParserChain.js +13 -13
- package/dist/request/disivion/DateSerializer.js +44 -53
- package/dist/request/disivion/DivisionErrorHandler.js +42 -42
- package/dist/request/disivion/DivisionResponseParser.js +22 -18
- package/dist/request/disivion/index.d.ts +21 -1
- package/dist/request/disivion/index.js +493 -24
- package/dist/request/error/BizExceptionResponseError.js +10 -10
- package/dist/request/error/ExceptionResponseError.js +10 -10
- package/dist/request/error/ResponseError.js +11 -9
- package/dist/request/error/SessionExceptionResponseError.js +10 -10
- package/dist/request/index.d.ts +3 -0
- package/dist/request/index.js +9 -20
- package/dist/style/index.d.ts +3 -0
- package/dist/style/index.js +1 -0
- package/dist/utils/DateUtil.js +47 -52
- package/dist/utils/NumberUtil.js +5 -5
- package/dist/utils/cloneDeep.js +1 -2255
- package/dist/utils/delay.js +1 -1
- package/dist/utils/index.js +3 -4
- package/dist/utils/md5.js +218 -272
- package/dist/version/index.d.ts +2 -0
- package/dist/version/index.js +6 -0
- package/dist/version/version.d.ts +2 -0
- package/dist/version/version.js +3 -0
- package/global.d.ts +9 -0
- package/package.json +28 -10
- package/dist/_commonjsHelpers-BFTU3MAI.js +0 -7
- package/dist/bignumber-upqAL281.js +0 -2907
- package/dist/dayjs.min-CYqA_arp.js +0 -12
- package/dist/request/disivion/request.d.ts +0 -21
- package/dist/request/disivion/request.js +0 -19345
- package/dist/request/postByOpenNewWindow.d.ts +0 -1
- package/dist/request/postByOpenNewWindow.js +0 -41
package/dist/index.css
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
:root {
|
2
|
+
--orion-flex-gutter: 8px;
|
3
|
+
--orion-space-gutter: 8px;
|
4
|
+
}/* flexbox */
|
5
|
+
.orion-flex {
|
6
|
+
display: flex;
|
7
|
+
outline: none;
|
8
|
+
}
|
9
|
+
.orion-flex-row {
|
10
|
+
flex-direction: row;
|
11
|
+
width: 100%;
|
12
|
+
overflow: auto;
|
13
|
+
}
|
14
|
+
.orion-flex-justify-start {
|
15
|
+
justify-content: start;
|
16
|
+
}
|
17
|
+
.orion-flex-column {
|
18
|
+
width: 100%;
|
19
|
+
flex-direction: column;
|
20
|
+
overflow: auto;
|
21
|
+
}
|
22
|
+
.orion-flex > .orion-flexitem {
|
23
|
+
overflow: auto;
|
24
|
+
outline: none;
|
25
|
+
}
|
26
|
+
.orion-flex > .orion-flexitem-auto {
|
27
|
+
flex: 0 0 auto;
|
28
|
+
}
|
29
|
+
.orion-flex > .orion-flexitem-fixed {
|
30
|
+
flex: none;
|
31
|
+
}
|
32
|
+
.orion-flex > .orion-flexitem-fill {
|
33
|
+
flex: 1 1 0px;
|
34
|
+
}.orion-space {
|
35
|
+
display: inline-flex;
|
36
|
+
align-items: center;
|
37
|
+
gap: var(--orion-space-gutter);
|
38
|
+
}
|
39
|
+
.orion-space.vertical {
|
40
|
+
display: flex;
|
41
|
+
flex-direction: column;
|
42
|
+
align-items: center;
|
43
|
+
gap: var(--orion-space-gutter);
|
44
|
+
}
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
export {
|
1
|
+
export { default as OrionError } from './error/OrionError.js';
|
2
|
+
export { install } from './components/index.js';
|
3
|
+
export { default as version } from './version/version.js';
|
4
|
+
export { i as Space } from './components-O4L3qYfM.js';
|
5
|
+
export { Colflex, Flexitem, Rowflex } from './components/Flex/index.js';
|
6
|
+
import 'vue';
|
7
|
+
import './components/_util/props-util/index.js';
|
8
|
+
import './components/_util/isValid.js';
|
9
|
+
import './components/_util/props-util/initDefaultProps.js';
|
10
|
+
import './components/_util/type.js';
|
11
|
+
import './components/_util/classNames.js';
|
12
|
+
import './components/_util/util.js';
|
package/dist/print/LodopFuncs.js
CHANGED
@@ -3,157 +3,126 @@
|
|
3
3
|
var CreatedOKLodopObject, CLodopIsLocal;
|
4
4
|
//==判断是否需要CLodop(那些不支持插件的浏览器):==
|
5
5
|
function needCLodop() {
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
verOPR = verOPR[0].match(/\d+/);
|
30
|
-
if (verOPR[0] >= 32)
|
31
|
-
return true;
|
32
|
-
}
|
33
|
-
else if (!verTrident && !verIE) {
|
34
|
-
var verChrome = ua.match(/Chrome\D?\d+/i);
|
35
|
-
if (verChrome) {
|
36
|
-
verChrome = verChrome[0].match(/\d+/);
|
37
|
-
if (verChrome[0] >= 41)
|
38
|
-
return true;
|
39
|
-
}
|
40
|
-
}
|
41
|
-
return false;
|
42
|
-
}
|
43
|
-
catch (err) {
|
44
|
-
return true;
|
6
|
+
try {
|
7
|
+
var ua = navigator.userAgent;
|
8
|
+
if (ua.match(/Windows\sPhone/i)) return true;
|
9
|
+
if (ua.match(/iPhone|iPod|iPad/i)) return true;
|
10
|
+
if (ua.match(/Android/i)) return true;
|
11
|
+
if (ua.match(/Edge\D?\d+/i)) return true;
|
12
|
+
var verTrident = ua.match(/Trident\D?\d+/i);
|
13
|
+
var verIE = ua.match(/MSIE\D?\d+/i);
|
14
|
+
var verOPR = ua.match(/OPR\D?\d+/i);
|
15
|
+
var verFF = ua.match(/Firefox\D?\d+/i);
|
16
|
+
var x64 = ua.match(/x64/i);
|
17
|
+
if (!verTrident && !verIE && x64) return true;else if (verFF) {
|
18
|
+
verFF = verFF[0].match(/\d+/);
|
19
|
+
if (verFF[0] >= 41 || x64) return true;
|
20
|
+
} else if (verOPR) {
|
21
|
+
verOPR = verOPR[0].match(/\d+/);
|
22
|
+
if (verOPR[0] >= 32) return true;
|
23
|
+
} else if (!verTrident && !verIE) {
|
24
|
+
var verChrome = ua.match(/Chrome\D?\d+/i);
|
25
|
+
if (verChrome) {
|
26
|
+
verChrome = verChrome[0].match(/\d+/);
|
27
|
+
if (verChrome[0] >= 41) return true;
|
28
|
+
}
|
45
29
|
}
|
30
|
+
return false;
|
31
|
+
} catch (err) {
|
32
|
+
return true;
|
33
|
+
}
|
46
34
|
}
|
47
35
|
//==引用CLodop的主JS,用双端口8000和18000(以防其中一个被占):==
|
48
36
|
if (needCLodop()) {
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
}
|
37
|
+
var head = document.head || document.getElementsByTagName('head')[0] || document.documentElement;
|
38
|
+
var JS1 = document.createElement('script');
|
39
|
+
JS1.src = 'http://localhost:8000/CLodopfuncs.js?priority=1';
|
40
|
+
JS1.async = true;
|
41
|
+
JS1.defer = true;
|
42
|
+
head.insertBefore(JS1, head.firstChild);
|
43
|
+
var JS2 = document.createElement('script');
|
44
|
+
JS2.async = true;
|
45
|
+
JS2.defer = true;
|
46
|
+
JS2.src = 'http://localhost:18000/CLodopfuncs.js?priority=0';
|
47
|
+
head.insertBefore(JS2, head.firstChild);
|
48
|
+
CLodopIsLocal = !!(JS1.src + JS2.src).match(/\/\/localho|\/\/127.0.0./i);
|
49
|
+
if (JS1.attachEvent) {
|
50
|
+
var onChange = function () {
|
51
|
+
if (window.event.srcElement.readyState == 'loaded') ;
|
52
|
+
};
|
53
|
+
JS1.attachEvent('onreadystatechange', onChange);
|
54
|
+
JS2.attachEvent('onreadystatechange', onChange);
|
55
|
+
}
|
69
56
|
}
|
70
57
|
//==获取LODOP对象主过程,判断是否安装、需否升级:==
|
71
58
|
function getLodop(oOBJECT, oEMBED) {
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
if (CLODOP.CVERSION < '4.0.8.8') {
|
103
|
-
document.body.innerHTML = strCLodopUpdate + document.body.innerHTML;
|
104
|
-
}
|
105
|
-
if (oEMBED && oEMBED.parentNode)
|
106
|
-
oEMBED.parentNode.removeChild(oEMBED);
|
107
|
-
if (oOBJECT && oOBJECT.parentNode)
|
108
|
-
oOBJECT.parentNode.removeChild(oOBJECT);
|
109
|
-
}
|
110
|
-
}
|
111
|
-
else {
|
112
|
-
var is64IE = isIE && !!ua.match(/x64/i);
|
113
|
-
//==如果页面有Lodop就直接使用,否则新建:==
|
114
|
-
if (oOBJECT || oEMBED) {
|
115
|
-
if (isIE)
|
116
|
-
LODOP = oOBJECT;
|
117
|
-
else
|
118
|
-
LODOP = oEMBED;
|
119
|
-
}
|
120
|
-
else if (!CreatedOKLodopObject) {
|
121
|
-
LODOP = document.createElement('object');
|
122
|
-
LODOP.setAttribute('width', 0);
|
123
|
-
LODOP.setAttribute('height', 0);
|
124
|
-
LODOP.setAttribute('style', 'position:absolute;left:0px;top:-100px;width:0px;height:0px;');
|
125
|
-
if (isIE)
|
126
|
-
LODOP.setAttribute('classid', 'clsid:2105C259-1E0C-4534-8141-A753534CB4CA');
|
127
|
-
else
|
128
|
-
LODOP.setAttribute('type', 'application/x-print-lodop');
|
129
|
-
document.documentElement.appendChild(LODOP);
|
130
|
-
CreatedOKLodopObject = LODOP;
|
131
|
-
}
|
132
|
-
else
|
133
|
-
LODOP = CreatedOKLodopObject;
|
134
|
-
//==Lodop插件未安装时提示下载地址:==
|
135
|
-
if (!LODOP || !LODOP.VERSION) {
|
136
|
-
if (ua.indexOf('Chrome') >= 0)
|
137
|
-
document.body.innerHTML = strHtmChrome + document.body.innerHTML;
|
138
|
-
if (ua.indexOf('Firefox') >= 0)
|
139
|
-
document.body.innerHTML = strHtmFireFox + document.body.innerHTML;
|
140
|
-
document.body.innerHTML = (is64IE ? strHtm64_Install : strHtmInstall) + document.body.innerHTML;
|
141
|
-
return LODOP;
|
142
|
-
}
|
143
|
-
}
|
144
|
-
if (LODOP.VERSION < '6.2.2.6') {
|
145
|
-
if (!needCLodop())
|
146
|
-
document.body.innerHTML = (is64IE ? strHtm64_Update : strHtmUpdate) + document.body.innerHTML;
|
59
|
+
// dareway
|
60
|
+
var strHtmInstall = "<br><font color='#FF00FF'>打印控件未安装!安装后请刷新页面或重新进入。</font>";
|
61
|
+
var strHtmUpdate = "<br><font color='#FF00FF'>打印控件需要升级!升级后请重新进入。</font>";
|
62
|
+
var strHtm64_Install = "<br><font color='#FF00FF'>打印控件未安装!安装后请刷新页面或重新进入。</font>";
|
63
|
+
var strHtm64_Update = "<br><font color='#FF00FF'>打印控件需要升级!升级后请重新进入。</font>";
|
64
|
+
var strHtmFireFox = "<br><br><font color='#FF00FF'>(注意:如曾安装过Lodop旧版附件npActiveXPLugin,请在【工具】->【附加组件】->【扩展】中先卸它)</font>";
|
65
|
+
var strHtmChrome = "<br><br><font color='#FF00FF'>(如果此前正常,仅因浏览器升级或重安装而出问题,需重新执行以上安装)</font>";
|
66
|
+
var strCLodopInstall_1 = "<br><font color='#FF00FF'>Web打印服务CLodop未安装启动";
|
67
|
+
var strCLodopInstall_2 = '<br>(若此前已安装过,请确认是否打开)';
|
68
|
+
var strCLodopInstall_3 = ',成功后请刷新本页面。</font>';
|
69
|
+
var strCLodopUpdate = "<br><font color='#FF00FF'>Web打印服务CLodop需升级!升级后请刷新页面。</font>";
|
70
|
+
// dareway
|
71
|
+
var LODOP;
|
72
|
+
try {
|
73
|
+
var ua = navigator.userAgent;
|
74
|
+
var isIE = !!ua.match(/MSIE/i) || !!ua.match(/Trident/i);
|
75
|
+
if (needCLodop()) {
|
76
|
+
try {
|
77
|
+
LODOP = getCLodop();
|
78
|
+
} catch (err) {}
|
79
|
+
if (!LODOP /* && (document.readyState !== "complete" || (isIE && CLodopJsState == "loading"))*/) {
|
80
|
+
console.log('lodop控件加载失败,请检查lodop控件是否已经安装并启动,如未启动可以在系统托盘中【右键->启动智慧医院打印服务】手动启动。');
|
81
|
+
return;
|
82
|
+
}
|
83
|
+
if (!LODOP) {
|
84
|
+
document.body.innerHTML = strCLodopInstall_1 + (CLodopIsLocal ? strCLodopInstall_2 : '') + strCLodopInstall_3 + document.body.innerHTML;
|
85
|
+
return;
|
86
|
+
} else {
|
87
|
+
if (CLODOP.CVERSION < '4.0.8.8') {
|
88
|
+
document.body.innerHTML = strCLodopUpdate + document.body.innerHTML;
|
147
89
|
}
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
90
|
+
if (oEMBED && oEMBED.parentNode) oEMBED.parentNode.removeChild(oEMBED);
|
91
|
+
if (oOBJECT && oOBJECT.parentNode) oOBJECT.parentNode.removeChild(oOBJECT);
|
92
|
+
}
|
93
|
+
} else {
|
94
|
+
var is64IE = isIE && !!ua.match(/x64/i);
|
95
|
+
//==如果页面有Lodop就直接使用,否则新建:==
|
96
|
+
if (oOBJECT || oEMBED) {
|
97
|
+
if (isIE) LODOP = oOBJECT;else LODOP = oEMBED;
|
98
|
+
} else if (!CreatedOKLodopObject) {
|
99
|
+
LODOP = document.createElement('object');
|
100
|
+
LODOP.setAttribute('width', 0);
|
101
|
+
LODOP.setAttribute('height', 0);
|
102
|
+
LODOP.setAttribute('style', 'position:absolute;left:0px;top:-100px;width:0px;height:0px;');
|
103
|
+
if (isIE) LODOP.setAttribute('classid', 'clsid:2105C259-1E0C-4534-8141-A753534CB4CA');else LODOP.setAttribute('type', 'application/x-print-lodop');
|
104
|
+
document.documentElement.appendChild(LODOP);
|
105
|
+
CreatedOKLodopObject = LODOP;
|
106
|
+
} else LODOP = CreatedOKLodopObject;
|
107
|
+
//==Lodop插件未安装时提示下载地址:==
|
108
|
+
if (!LODOP || !LODOP.VERSION) {
|
109
|
+
if (ua.indexOf('Chrome') >= 0) document.body.innerHTML = strHtmChrome + document.body.innerHTML;
|
110
|
+
if (ua.indexOf('Firefox') >= 0) document.body.innerHTML = strHtmFireFox + document.body.innerHTML;
|
111
|
+
document.body.innerHTML = (is64IE ? strHtm64_Install : strHtmInstall) + document.body.innerHTML;
|
152
112
|
return LODOP;
|
113
|
+
}
|
153
114
|
}
|
154
|
-
|
155
|
-
|
115
|
+
if (LODOP.VERSION < '6.2.2.6') {
|
116
|
+
if (!needCLodop()) document.body.innerHTML = (is64IE ? strHtm64_Update : strHtmUpdate) + document.body.innerHTML;
|
156
117
|
}
|
118
|
+
//===如下空白位置适合调用统一功能(如注册语句、语言选择等):==
|
119
|
+
LODOP.SET_LICENSES('山大地纬软件股份有限公司', 'CC9365E1BB34FA000175B357CD91F188454', '山大地緯軟件股份有限公司', '82F5D8E72ECF427F20ADD7E937E13D817E1');
|
120
|
+
LODOP.SET_LICENSES('THIRD LICENSE', '', 'Shanda DareWay Software Co., Ltd', '1485033B74404D944BEA7FFAFB213175AF4');
|
121
|
+
//=======================================================
|
122
|
+
return LODOP;
|
123
|
+
} catch (err) {
|
124
|
+
alert('getLodop出错:' + err);
|
125
|
+
}
|
157
126
|
}
|
158
127
|
|
159
128
|
export { getLodop };
|