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.
Files changed (67) hide show
  1. package/dist/components/Flex/Col.d.ts +25 -0
  2. package/dist/components/Flex/Item.d.ts +25 -0
  3. package/dist/components/Flex/Row.d.ts +25 -0
  4. package/dist/components/Flex/index.d.ts +10 -0
  5. package/dist/components/Flex/index.js +151 -0
  6. package/dist/components/Modal/Modal.d.ts +2 -0
  7. package/dist/components/Space/index.d.ts +76 -0
  8. package/dist/components/_util/classNames.d.ts +2 -0
  9. package/dist/components/_util/classNames.js +31 -0
  10. package/dist/components/_util/isValid.d.ts +2 -0
  11. package/dist/components/_util/isValid.js +5 -0
  12. package/dist/components/_util/props-util/index.d.ts +6 -0
  13. package/dist/components/_util/props-util/index.js +53 -0
  14. package/dist/components/_util/props-util/initDefaultProps.d.ts +6 -0
  15. package/dist/components/_util/props-util/initDefaultProps.js +25 -0
  16. package/dist/components/_util/type.d.ts +62 -0
  17. package/dist/components/_util/type.js +66 -0
  18. package/dist/components/_util/util.d.ts +18 -0
  19. package/dist/components/_util/util.js +83 -0
  20. package/dist/components/_util/vue-types/index.d.ts +12 -0
  21. package/dist/components/_util/vue-types/index.js +473 -0
  22. package/dist/components/components.d.ts +4 -0
  23. package/dist/components/components.js +10 -0
  24. package/dist/components/index.d.ts +3 -0
  25. package/dist/components/index.js +23 -0
  26. package/dist/components-O4L3qYfM.js +61 -0
  27. package/dist/error/OrionError.js +9 -7
  28. package/dist/index.css +44 -0
  29. package/dist/index.d.ts +4 -1
  30. package/dist/index.js +12 -3
  31. package/dist/print/LodopFuncs.js +109 -140
  32. package/dist/print/index.js +204 -199
  33. package/dist/request/ErrorHandlerChain.js +13 -13
  34. package/dist/request/RequestFilterChain.js +13 -13
  35. package/dist/request/ResponseParserChain.js +13 -13
  36. package/dist/request/disivion/DateSerializer.js +44 -53
  37. package/dist/request/disivion/DivisionErrorHandler.js +42 -42
  38. package/dist/request/disivion/DivisionResponseParser.js +22 -18
  39. package/dist/request/disivion/index.d.ts +21 -1
  40. package/dist/request/disivion/index.js +493 -24
  41. package/dist/request/error/BizExceptionResponseError.js +10 -10
  42. package/dist/request/error/ExceptionResponseError.js +10 -10
  43. package/dist/request/error/ResponseError.js +11 -9
  44. package/dist/request/error/SessionExceptionResponseError.js +10 -10
  45. package/dist/request/index.d.ts +3 -0
  46. package/dist/request/index.js +9 -20
  47. package/dist/style/index.d.ts +3 -0
  48. package/dist/style/index.js +1 -0
  49. package/dist/utils/DateUtil.js +47 -52
  50. package/dist/utils/NumberUtil.js +5 -5
  51. package/dist/utils/cloneDeep.js +1 -2255
  52. package/dist/utils/delay.js +1 -1
  53. package/dist/utils/index.js +3 -4
  54. package/dist/utils/md5.js +218 -272
  55. package/dist/version/index.d.ts +2 -0
  56. package/dist/version/index.js +6 -0
  57. package/dist/version/version.d.ts +2 -0
  58. package/dist/version/version.js +3 -0
  59. package/global.d.ts +9 -0
  60. package/package.json +28 -10
  61. package/dist/_commonjsHelpers-BFTU3MAI.js +0 -7
  62. package/dist/bignumber-upqAL281.js +0 -2907
  63. package/dist/dayjs.min-CYqA_arp.js +0 -12
  64. package/dist/request/disivion/request.d.ts +0 -21
  65. package/dist/request/disivion/request.js +0 -19345
  66. package/dist/request/postByOpenNewWindow.d.ts +0 -1
  67. package/dist/request/postByOpenNewWindow.js +0 -41
@@ -1 +0,0 @@
1
- export default function postByOpenNewWindow(url: string): void;
@@ -1,41 +0,0 @@
1
- function postByOpenNewWindow(url) {
2
- if (!url) {
3
- throw new Error('url is null.');
4
- }
5
- if (!(typeof url == 'string')) {
6
- throw new Error('url is not string.');
7
- }
8
- // 1. 通过原生FORM发起下载文件的请求
9
- // a. 动态创建一个FORM并追加到body
10
- const submitDataForm = document.createElement('FORM');
11
- submitDataForm.method = 'POST';
12
- document.body.appendChild(submitDataForm);
13
- // b. 将URL中的各字段分解为FORM中的实体并追加到动态创建的FORM中
14
- const questionMarkPos = url.indexOf('?');
15
- let action = '';
16
- let params = '';
17
- if (questionMarkPos != -1) {
18
- action = url.substring(0, questionMarkPos);
19
- params = url.substring(questionMarkPos + 1);
20
- const urlArray = params.split('&');
21
- for (let i = 0; i < urlArray.length; i++) {
22
- const [key, value] = urlArray[i].split('=');
23
- const o = document.createElement('INPUT');
24
- o.type = 'hidden';
25
- o.name = key;
26
- o.id = key;
27
- o.value = decodeURIComponent(value);
28
- submitDataForm.appendChild(o);
29
- }
30
- }
31
- else {
32
- action = url;
33
- }
34
- // c. 通过FORM的submit方法发起请求
35
- submitDataForm.action = action;
36
- submitDataForm.target = '_blank';
37
- submitDataForm.submit();
38
- submitDataForm.outerHTML = '';
39
- }
40
-
41
- export { postByOpenNewWindow as default };