orion-design 0.1.1 → 0.1.2

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 (65) 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 +3 -0
  30. package/dist/index.js +11 -0
  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 +43 -51
  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 +174 -153
  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 +3 -2
  47. package/dist/style/index.d.ts +3 -0
  48. package/dist/style/index.js +1 -0
  49. package/dist/utils/DateUtil.js +46 -50
  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 +2 -2
  54. package/dist/utils/md5.js +215 -271
  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 +25 -9
  61. package/dist/bignumber-upqAL281.js +0 -2907
  62. package/dist/request/disivion/request.d.ts +0 -21
  63. package/dist/request/disivion/request.js +0 -476
  64. package/dist/request/postByOpenNewWindow.d.ts +0 -1
  65. package/dist/request/postByOpenNewWindow.js +0 -41
@@ -3,9 +3,10 @@ export { default as BizExceptionResponseError } from './error/BizExceptionRespon
3
3
  export { default as SessionExceptionResponseError } from './error/SessionExceptionResponseError.js';
4
4
  export { default as ExceptionResponseError } from './error/ExceptionResponseError.js';
5
5
  import 'axios';
6
+ import 'lodash-es';
6
7
  import 'dayjs';
7
8
  import '../utils/md5.js';
8
- import '../bignumber-upqAL281.js';
9
+ import 'decimal.js';
9
10
  import './ResponseParserChain.js';
10
11
  import './ErrorHandlerChain.js';
11
12
  import './RequestFilterChain.js';
@@ -13,4 +14,4 @@ import './disivion/DateSerializer.js';
13
14
  import './disivion/DivisionResponseParser.js';
14
15
  import './disivion/DivisionErrorHandler.js';
15
16
  import './error/ResponseError.js';
16
- import '../utils/cloneDeep.js';
17
+ import 'element-plus';
@@ -0,0 +1,3 @@
1
+ import './vars-theme.scss';
2
+ import "../components/Space/style/space.scss";
3
+ import "../components/Flex/style/flex.scss";
@@ -0,0 +1 @@
1
+
@@ -2,56 +2,52 @@ import dayjs from 'dayjs';
2
2
  import OrionError from '../error/OrionError.js';
3
3
 
4
4
  const DateUtil = {
5
- format(p1, p2, p3) {
6
- if (p1 instanceof Date && typeof p2 === 'string') {
7
- const value = p1;
8
- const format = p2;
9
- if (!value) {
10
- throw new OrionError('value is null.');
11
- }
12
- if (!format) {
13
- throw new OrionError('format is null.');
14
- }
15
- return dayjs(value).format(format);
16
- }
17
- else if (typeof p1 === 'string' && typeof p2 === 'string' && typeof p3 === 'string') {
18
- const value = p1;
19
- const sourceFormat = p2;
20
- const targetFormat = p3;
21
- if (!value || !sourceFormat || !targetFormat) {
22
- throw new OrionError(`Invalid arguments: ${value}, ${sourceFormat}, ${targetFormat}`);
23
- }
24
- if (dayjs(value, sourceFormat, true).isValid()) {
25
- return dayjs(value, sourceFormat).format(targetFormat);
26
- }
27
- else {
28
- throw new OrionError(`日期[${value}]与格式[${sourceFormat}]不匹配。`);
29
- }
30
- }
31
- else {
32
- throw new OrionError(`入参数量[${arguments.length}]不正确。`);
33
- }
34
- },
35
- stringToDate(value, format) {
36
- if (!value) {
37
- throw new OrionError('value is null.');
38
- }
39
- if (!format) {
40
- throw new OrionError('format is null.');
41
- }
42
- if (typeof value !== 'string') {
43
- throw new OrionError('value is not a string.');
44
- }
45
- if (typeof format !== 'string') {
46
- throw new OrionError('format is not a string.');
47
- }
48
- if (dayjs(value, format, true).isValid()) {
49
- return dayjs(value, format).toDate();
50
- }
51
- else {
52
- throw new OrionError(`日期[${value}]与格式[${format}]不匹配。`);
53
- }
54
- },
5
+ format(p1, p2, p3) {
6
+ if (p1 instanceof Date && typeof p2 === 'string') {
7
+ const value = p1;
8
+ const format = p2;
9
+ if (!value) {
10
+ throw new OrionError('value is null.');
11
+ }
12
+ if (!format) {
13
+ throw new OrionError('format is null.');
14
+ }
15
+ return dayjs(value).format(format);
16
+ } else if (typeof p1 === 'string' && typeof p2 === 'string' && typeof p3 === 'string') {
17
+ const value = p1;
18
+ const sourceFormat = p2;
19
+ const targetFormat = p3;
20
+ if (!value || !sourceFormat || !targetFormat) {
21
+ throw new OrionError(`Invalid arguments: ${value}, ${sourceFormat}, ${targetFormat}`);
22
+ }
23
+ if (dayjs(value, sourceFormat, true).isValid()) {
24
+ return dayjs(value, sourceFormat).format(targetFormat);
25
+ } else {
26
+ throw new OrionError(`日期[${value}]与格式[${sourceFormat}]不匹配。`);
27
+ }
28
+ } else {
29
+ throw new OrionError(`入参数量[${arguments.length}]不正确。`);
30
+ }
31
+ },
32
+ stringToDate(value, format) {
33
+ if (!value) {
34
+ throw new OrionError('value is null.');
35
+ }
36
+ if (!format) {
37
+ throw new OrionError('format is null.');
38
+ }
39
+ if (typeof value !== 'string') {
40
+ throw new OrionError('value is not a string.');
41
+ }
42
+ if (typeof format !== 'string') {
43
+ throw new OrionError('format is not a string.');
44
+ }
45
+ if (dayjs(value, format, true).isValid()) {
46
+ return dayjs(value, format).toDate();
47
+ } else {
48
+ throw new OrionError(`日期[${value}]与格式[${format}]不匹配。`);
49
+ }
50
+ }
55
51
  };
56
52
 
57
53
  export { DateUtil as default };
@@ -1,10 +1,10 @@
1
- import { B as BigNumber } from '../bignumber-upqAL281.js';
1
+ import Decimal from 'decimal.js';
2
2
 
3
3
  const NumberUtil = {
4
- round: (value, how) => {
5
- const bg = new BigNumber(value);
6
- return Number(bg.toFixed(how, 4));
7
- },
4
+ round: (value, how) => {
5
+ const dec = new Decimal(value);
6
+ return Number(dec.toFixed(how, 4));
7
+ }
8
8
  };
9
9
 
10
10
  export { NumberUtil as default };