@zgfe/business-lib 1.2.66-hxd.2 → 1.2.70-hxd.1

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 (150) hide show
  1. package/README.md +12 -12
  2. package/config.js +41 -41
  3. package/es/AUMFormulaTarget/components/formula/index.less +86 -86
  4. package/es/AUMFormulaTarget/components/panel/index.less +269 -269
  5. package/es/AUMFormulaTarget/components/symbol/index.less +49 -49
  6. package/es/AUMFormulaTarget/styles/index.less +74 -74
  7. package/es/addToPanel/styles/addPanel.less +25 -25
  8. package/es/addToPanel/styles/index.less +17 -17
  9. package/es/addToPanel/styles/style.less +66 -66
  10. package/es/addToScene/styles/index.less +30 -30
  11. package/es/assets/colorIcon/demo.css +539 -539
  12. package/es/assets/colorIcon/demo_index.html +1454 -1454
  13. package/es/assets/colorIcon/iconfont.css +236 -236
  14. package/es/assets/colorIcon/iconfont.json +394 -394
  15. package/es/assets/colorIcon/iconfont.svg +129 -129
  16. package/es/assets/iconfont/demo.css +539 -539
  17. package/es/assets/iconfont/demo_index.html +5593 -5363
  18. package/es/assets/iconfont/iconfont.css +955 -915
  19. package/es/assets/iconfont/iconfont.js +8 -8
  20. package/es/assets/iconfont/iconfont.json +1654 -1584
  21. package/es/assets/iconfont/iconfont.ttf +0 -0
  22. package/es/assets/iconfont/iconfont.woff +0 -0
  23. package/es/assets/iconfont/iconfont.woff2 +0 -0
  24. package/es/assets/styles/chunks.less +183 -183
  25. package/es/assets/styles/inner.less +3 -3
  26. package/es/assets/styles/resetAntd.less +564 -551
  27. package/es/assets/styles/variable.less +21 -21
  28. package/es/attrCondition/styles/index.less +101 -101
  29. package/es/attrConditions/components/operateList.js +4 -4
  30. package/es/attrConditions/components/valuesList.js +1 -1
  31. package/es/attrConditions/styles/group.less +49 -49
  32. package/es/attrConditions/styles/index.less +151 -151
  33. package/es/attributeSelector/index.js +3 -1
  34. package/es/attributeSelector/listPanel.js +2 -2
  35. package/es/attributeSelector/styles/index.less +141 -141
  36. package/es/attributeSelector/types.d.ts +1 -0
  37. package/es/attributeSelector/util.js +1 -0
  38. package/es/chart/demo/data/data7.d.ts +54 -0
  39. package/es/chart/demo/data/data7.js +1527 -0
  40. package/es/chart/demo/stack.d.ts +3 -0
  41. package/es/chart/demo/stack.js +31 -0
  42. package/es/chart/index.js +16 -6
  43. package/es/chart/styles/index.less +113 -113
  44. package/es/chart/types.d.ts +4 -1
  45. package/es/chart/util/chartOptionConfig.d.ts +4 -3
  46. package/es/chart/util/chartOptionConfig.js +84 -4
  47. package/es/chart/util/data/china.js +17 -17
  48. package/es/chart/util/formatData.d.ts +1 -0
  49. package/es/chart/util/formatData.js +13 -0
  50. package/es/cycleTime/index.js +1 -1
  51. package/es/cycleTime/styles/index.less +24 -24
  52. package/es/cycleTime/styles/month.less +95 -95
  53. package/es/dataSetGroup/styles/index.less +146 -146
  54. package/es/datePicker/index.js +6 -6
  55. package/es/datePicker/styles/index.less +53 -53
  56. package/es/datePickerV2/index.js +6 -3
  57. package/es/datePickerV2/popoverContent.d.ts +1 -0
  58. package/es/datePickerV2/popoverContent.js +3 -1
  59. package/es/datePickerV2/shortcut.d.ts +2 -0
  60. package/es/datePickerV2/shortcut.js +4 -3
  61. package/es/datePickerV2/styles/index.less +194 -194
  62. package/es/datePickerV2/types.d.ts +2 -0
  63. package/es/datePickerV2/utils.d.ts +1 -1
  64. package/es/datePickerV2/utils.js +5 -5
  65. package/es/demoWrapper/index.less +3 -3
  66. package/es/dialog/styles/index.less +22 -22
  67. package/es/dnd/styles/index.less +19 -19
  68. package/es/eventSelector/styles/index.less +123 -123
  69. package/es/formulaTarget/components/formula/index.less +76 -76
  70. package/es/formulaTarget/components/panel/index.less +139 -139
  71. package/es/formulaTarget/components/symbol/index.less +49 -49
  72. package/es/formulaTarget/styles/index.less +74 -74
  73. package/es/hooks/types/subject.d.ts +14 -14
  74. package/es/hooks/useBizStore.js +5 -2
  75. package/es/icon/demo/list.less +32 -32
  76. package/es/index.d.ts +4 -1
  77. package/es/index.js +4 -1
  78. package/es/layout/analysisLayout/demo/index.less +12 -12
  79. package/es/layout/analysisLayout/index.less +118 -118
  80. package/es/layout/columnLayout/demo/index.less +15 -15
  81. package/es/layout/columnLayout/index.less +81 -81
  82. package/es/layout/detail/index.less +27 -27
  83. package/es/layout/optionTitle/components/changePanelModal/styles/index.less +92 -92
  84. package/es/layout/optionTitle/demo/index.less +12 -12
  85. package/es/loading/styles/index.less +20 -20
  86. package/es/loginForm/index.less +7 -7
  87. package/es/platformSelector/styles/index.less +26 -26
  88. package/es/productCondition/conditions/order/runPeriodCondition.js +1 -1
  89. package/es/productCondition/conditions/periodCondition.js +1 -1
  90. package/es/productCondition/conditions/runTimesCondition.js +1 -1
  91. package/es/productCondition/conditions/styles/cdpCondition.less +31 -31
  92. package/es/productCondition/conditions/styles/cdpCshCondition.less +41 -41
  93. package/es/productCondition/conditions/styles/eventCondition.less +51 -51
  94. package/es/productCondition/conditions/styles/periodCondition.less +26 -26
  95. package/es/productCondition/conditions/styles/propCondition.less +43 -43
  96. package/es/productCondition/conditions/styles/runTimesCondition.less +19 -19
  97. package/es/productCondition/conditions/styles/tagsCondition.less +20 -20
  98. package/es/productCondition/conditions/styles/textDesc.less +17 -17
  99. package/es/productCondition/styles/conditionTypeList.less +30 -30
  100. package/es/productCondition/styles/conditionWrap.less +18 -18
  101. package/es/productCondition/styles/index.less +33 -33
  102. package/es/productCondition/styles/orConditions.less +34 -34
  103. package/es/productCondition/styles/relationLabel.less +19 -19
  104. package/es/quickDatePicker/styles/index.less +138 -138
  105. package/es/select/index.js +9 -1
  106. package/es/select/styles/handle.less +193 -193
  107. package/es/select/styles/index.less +129 -129
  108. package/es/select/types.d.ts +3 -2
  109. package/es/socket/demo/index.less +27 -27
  110. package/es/subjectWrapper/demo/index.d.ts +3 -0
  111. package/es/subjectWrapper/demo/index.js +28 -0
  112. package/es/subjectWrapper/index.d.ts +5 -0
  113. package/es/subjectWrapper/index.js +98 -0
  114. package/es/subjectWrapper/index.less +12 -0
  115. package/es/subjectWrapper/types.d.ts +14 -0
  116. package/es/subjectWrapper/types.js +4 -0
  117. package/es/table/styles/index.less +5 -5
  118. package/es/targetConditionGroup/demo/styles/index.less +29 -29
  119. package/es/targetConditionGroup/styles/index.less +53 -53
  120. package/es/targetSelector/styles/index.less +110 -110
  121. package/es/userCondition/conditions/cdpCshCondition.js +0 -1
  122. package/es/userCondition/conditions/order/runPeriodCondition.js +1 -1
  123. package/es/userCondition/conditions/periodCondition.js +1 -1
  124. package/es/userCondition/conditions/runTimesCondition.js +1 -1
  125. package/es/userCondition/conditions/styles/cdpCondition.less +37 -37
  126. package/es/userCondition/conditions/styles/cdpCshCondition.less +47 -47
  127. package/es/userCondition/conditions/styles/eventCondition.less +57 -57
  128. package/es/userCondition/conditions/styles/periodCondition.less +26 -26
  129. package/es/userCondition/conditions/styles/propCondition.less +43 -43
  130. package/es/userCondition/conditions/styles/runTimesCondition.less +19 -19
  131. package/es/userCondition/conditions/styles/tagsCondition.less +20 -20
  132. package/es/userCondition/conditions/styles/textDesc.less +17 -17
  133. package/es/userCondition/styles/conditionTypeList.less +30 -30
  134. package/es/userCondition/styles/conditionWrap.less +18 -18
  135. package/es/userCondition/styles/index.less +33 -33
  136. package/es/userCondition/styles/orConditions.less +34 -34
  137. package/es/userCondition/styles/relationLabel.less +19 -19
  138. package/es/userGroup/index.js +2 -2
  139. package/es/userGroup/styles/index.less +145 -145
  140. package/es/userGroupHeader/demo/index.js +1 -1
  141. package/es/userGroupHeader/styles/index.less +31 -31
  142. package/es/userTagsSelector/components/search/index.less +6 -6
  143. package/es/userTagsSelector/components/tagList/index.less +13 -13
  144. package/es/userTagsSelector/groups/styles/option.less +55 -55
  145. package/es/userTagsSelector/multipleCheckPanel/styles/option.less +40 -40
  146. package/es/userTagsSelector/styles/cascaderOverlay.less +34 -34
  147. package/es/userTagsSelector/styles/index.less +10 -10
  148. package/es/utils/util.d.ts +3 -0
  149. package/es/utils/util.js +10 -0
  150. package/package.json +62 -62
@@ -1,55 +1,55 @@
1
- @import '../../../assets/styles/inner.less';
2
- .biz-user-tags-selector {
3
- &-group-option {
4
- display: flex;
5
- align-items: center;
6
- justify-content: space-between;
7
- height: @height-base;
8
- padding: 0 16px;
9
- border-radius: @border-radius-normal;
10
-
11
- cursor: pointer;
12
- &-label {
13
- .__default-overflow();
14
- margin-right: @margin-xs;
15
- }
16
- &-count {
17
- .ant-badge-count {
18
- color: @text-color;
19
- background: none;
20
- }
21
- }
22
- &.checked {
23
- color: @primary-color;
24
- .biz-user-tags-selector-group-option-count {
25
- .ant-badge-count {
26
- color: @primary-color;
27
- }
28
- }
29
- }
30
- &:hover {
31
- .__default-hover();
32
- .biz-user-tags-selector-group-option-count {
33
- .ant-badge-count {
34
- color: #fff;
35
- background: @primary-color;
36
- }
37
- }
38
- }
39
- &.active {
40
- color: #fff !important;
41
- background: @primary-color;
42
- .biz-user-tags-selector-group-option-count {
43
- .ant-badge-count {
44
- color: #fff;
45
- background: @primary-color;
46
- }
47
- }
48
- .biz-user-tags-selector-group-option-label {
49
- * {
50
- color: #fff !important;
51
- }
52
- }
53
- }
54
- }
55
- }
1
+ @import '../../../assets/styles/inner.less';
2
+ .biz-user-tags-selector {
3
+ &-group-option {
4
+ display: flex;
5
+ align-items: center;
6
+ justify-content: space-between;
7
+ height: @height-base;
8
+ padding: 0 16px;
9
+ border-radius: @border-radius-normal;
10
+
11
+ cursor: pointer;
12
+ &-label {
13
+ .__default-overflow();
14
+ margin-right: @margin-xs;
15
+ }
16
+ &-count {
17
+ .ant-badge-count {
18
+ color: @text-color;
19
+ background: none;
20
+ }
21
+ }
22
+ &.checked {
23
+ color: @primary-color;
24
+ .biz-user-tags-selector-group-option-count {
25
+ .ant-badge-count {
26
+ color: @primary-color;
27
+ }
28
+ }
29
+ }
30
+ &:hover {
31
+ .__default-hover();
32
+ .biz-user-tags-selector-group-option-count {
33
+ .ant-badge-count {
34
+ color: #fff;
35
+ background: @primary-color;
36
+ }
37
+ }
38
+ }
39
+ &.active {
40
+ color: #fff !important;
41
+ background: @primary-color;
42
+ .biz-user-tags-selector-group-option-count {
43
+ .ant-badge-count {
44
+ color: #fff;
45
+ background: @primary-color;
46
+ }
47
+ }
48
+ .biz-user-tags-selector-group-option-label {
49
+ * {
50
+ color: #fff !important;
51
+ }
52
+ }
53
+ }
54
+ }
55
+ }
@@ -1,40 +1,40 @@
1
- @import '../../../assets/styles/inner.less';
2
- .biz-user-tags-selector {
3
- &-check-option {
4
- display: flex;
5
- align-items: center;
6
- height: @height-base;
7
- padding: 0 12px;
8
- border-radius: @border-radius-normal;
9
- &:hover {
10
- .__default-hover();
11
- }
12
- &-label {
13
- flex: 1;
14
- min-width: 0;
15
- height: @height-base;
16
- line-height: @height-base;
17
- .__default-overflow();
18
- }
19
- &&-disabled {
20
- .__default-disabled();
21
- }
22
- .ant-checkbox-wrapper {
23
- width: 100%;
24
- min-width: 0;
25
- > span {
26
- &:not(.ant-checkbox) {
27
- flex: 1;
28
- min-width: 0;
29
- }
30
- }
31
- .ant-checkbox-checked {
32
- & + span {
33
- .biz-user-tags-selector-check-option-label {
34
- color: @primary-color;
35
- }
36
- }
37
- }
38
- }
39
- }
40
- }
1
+ @import '../../../assets/styles/inner.less';
2
+ .biz-user-tags-selector {
3
+ &-check-option {
4
+ display: flex;
5
+ align-items: center;
6
+ height: @height-base;
7
+ padding: 0 12px;
8
+ border-radius: @border-radius-normal;
9
+ &:hover {
10
+ .__default-hover();
11
+ }
12
+ &-label {
13
+ flex: 1;
14
+ min-width: 0;
15
+ height: @height-base;
16
+ line-height: @height-base;
17
+ .__default-overflow();
18
+ }
19
+ &&-disabled {
20
+ .__default-disabled();
21
+ }
22
+ .ant-checkbox-wrapper {
23
+ width: 100%;
24
+ min-width: 0;
25
+ > span {
26
+ &:not(.ant-checkbox) {
27
+ flex: 1;
28
+ min-width: 0;
29
+ }
30
+ }
31
+ .ant-checkbox-checked {
32
+ & + span {
33
+ .biz-user-tags-selector-check-option-label {
34
+ color: @primary-color;
35
+ }
36
+ }
37
+ }
38
+ }
39
+ }
40
+ }
@@ -1,34 +1,34 @@
1
- @import '../../assets/styles/inner.less';
2
- .biz-user-tags-selector {
3
- &-overlay {
4
- max-height: 425px;
5
- background-color: #fff;
6
- border-radius: @border-radius-normal;
7
- box-shadow: @box-shadow-base;
8
- &-search {
9
- padding: @margin-xs @margin-xs 0;
10
- }
11
- &-panel {
12
- display: flex;
13
- }
14
- &-groups {
15
- width: 204px;
16
- padding: @margin-xs;
17
- border-right: 1px solid @border-color-base;
18
- &:last-of-type {
19
- border-right: none;
20
- }
21
- }
22
- &-selections {
23
- width: 204px;
24
- min-width: 0;
25
- padding: @padding-xs;
26
- }
27
- // .rc-virtual-list-scrollbar {
28
- // display: block !important;
29
- // }
30
- // .rc-virtual-list-scrollbar-thumb {
31
- // background-color: #cacdd4 !important;
32
- // }
33
- }
34
- }
1
+ @import '../../assets/styles/inner.less';
2
+ .biz-user-tags-selector {
3
+ &-overlay {
4
+ max-height: 425px;
5
+ background-color: #fff;
6
+ border-radius: @border-radius-normal;
7
+ box-shadow: @box-shadow-base;
8
+ &-search {
9
+ padding: @margin-xs @margin-xs 0;
10
+ }
11
+ &-panel {
12
+ display: flex;
13
+ }
14
+ &-groups {
15
+ width: 204px;
16
+ padding: @margin-xs;
17
+ border-right: 1px solid @border-color-base;
18
+ &:last-of-type {
19
+ border-right: none;
20
+ }
21
+ }
22
+ &-selections {
23
+ width: 204px;
24
+ min-width: 0;
25
+ padding: @padding-xs;
26
+ }
27
+ // .rc-virtual-list-scrollbar {
28
+ // display: block !important;
29
+ // }
30
+ // .rc-virtual-list-scrollbar-thumb {
31
+ // background-color: #cacdd4 !important;
32
+ // }
33
+ }
34
+ }
@@ -1,10 +1,10 @@
1
- @import '../../assets/styles/inner.less';
2
- .biz-user-tags-selector {
3
- > .ant-dropdown-trigger.biz-user-tags-selector-handle {
4
- > .biz-select-handle-input-multiple {
5
- .ant-input.biz-select-handle-search {
6
- height: auto !important;
7
- }
8
- }
9
- }
10
- }
1
+ @import '../../assets/styles/inner.less';
2
+ .biz-user-tags-selector {
3
+ > .ant-dropdown-trigger.biz-user-tags-selector-handle {
4
+ > .biz-select-handle-input-multiple {
5
+ .ant-input.biz-select-handle-search {
6
+ height: auto !important;
7
+ }
8
+ }
9
+ }
10
+ }
@@ -5,6 +5,8 @@ declare let util: {
5
5
  isArray(obj: any): boolean;
6
6
  isString(obj: any): boolean;
7
7
  isNumber(obj: any): boolean;
8
+ isFloatNumber(str: any): boolean;
9
+ formatNumberWithCommas(number: any): any;
8
10
  isDate(obj: any): boolean;
9
11
  isFunction(obj: any): boolean;
10
12
  isBlob(obj: any): boolean;
@@ -34,5 +36,6 @@ declare let util: {
34
36
  transformRequest(param: {
35
37
  [prop: string]: any;
36
38
  }): string;
39
+ isMobile(): boolean;
37
40
  };
38
41
  export default util;
package/es/utils/util.js CHANGED
@@ -16,6 +16,12 @@ var util = {
16
16
  isNumber: function isNumber(obj) {
17
17
  return this.type(obj) === '[object Number]';
18
18
  },
19
+ isFloatNumber: function isFloatNumber(str) {
20
+ return /^-?\d+(\.\d+)?$/.test(str);
21
+ },
22
+ formatNumberWithCommas: function formatNumberWithCommas(number) {
23
+ return number.toLocaleString();
24
+ },
19
25
  isDate: function isDate(obj) {
20
26
  return this.type(obj) === '[object Date]';
21
27
  },
@@ -173,6 +179,10 @@ var util = {
173
179
  arr.push("".concat(key, "=").concat(encodeURIComponent(param[key])));
174
180
  }
175
181
  return arr.join('&');
182
+ },
183
+ isMobile: function isMobile() {
184
+ var userAgent = navigator.userAgent || navigator.vendor;
185
+ return /android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(userAgent);
176
186
  }
177
187
  };
178
188
  export default util;
package/package.json CHANGED
@@ -1,62 +1,62 @@
1
- {
2
- "name": "@zgfe/business-lib",
3
- "version": "1.2.66-hxd.2",
4
- "module": "es/index.js",
5
- "typings": "es/index.d.ts",
6
- "files": [
7
- "es",
8
- "config.js"
9
- ],
10
- "scripts": {
11
- "build": "father-build",
12
- "deploy": "npm run docs:build && npm run docs:deploy",
13
- "docs:build": "dumi build",
14
- "docs:deploy": "gh-pages -d docs-dist",
15
- "prepublishOnly": "npm run build",
16
- "prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
17
- "pub": "lerna publish",
18
- "start": "dumi dev",
19
- "test": "umi-test",
20
- "test:coverage": "umi-test --coverage"
21
- },
22
- "lint-staged": {
23
- "*.{js,jsx,less,md,json}": [
24
- "prettier --write"
25
- ],
26
- "*.ts?(x)": [
27
- "prettier --parser=typescript --write"
28
- ]
29
- },
30
- "dependencies": {
31
- "@types/qs": "^6.9.7",
32
- "axios": "^0.26.1",
33
- "babel-plugin-import": "^1.13.3",
34
- "echarts": "^5.3.2",
35
- "echarts-for-react": "^3.0.2",
36
- "lerna": "^4.0.0",
37
- "rc-virtual-list": "^3.4.8",
38
- "react-infinite-scroll-component": "^6.1.0",
39
- "umi-request": "^1.4.0"
40
- },
41
- "devDependencies": {
42
- "@testing-library/jest-dom": "^5.15.1",
43
- "@testing-library/react": "^12.1.2",
44
- "@types/jest": "^27.0.3",
45
- "@types/lodash": "^4.14.182",
46
- "@umijs/fabric": "^2.8.1",
47
- "@umijs/test": "^3.0.5",
48
- "antd": "4.24.16",
49
- "dumi": "^1.1.0",
50
- "father-build": "^1.17.2",
51
- "gh-pages": "^3.0.0",
52
- "lint-staged": "^10.0.7",
53
- "lodash": "^4.17.21",
54
- "prettier": "^2.2.1",
55
- "react": "^16.12.0 || ^17.0.0",
56
- "yorkie": "^2.0.0"
57
- },
58
- "gitHead": "9608e92d175153d6375e3ae49f6649ff886175dc",
59
- "gitHooks": {
60
- "pre-commit": "lint-staged"
61
- }
62
- }
1
+ {
2
+ "name": "@zgfe/business-lib",
3
+ "version": "1.2.70-hxd.1",
4
+ "module": "es/index.js",
5
+ "typings": "es/index.d.ts",
6
+ "files": [
7
+ "es",
8
+ "config.js"
9
+ ],
10
+ "scripts": {
11
+ "build": "father-build",
12
+ "deploy": "npm run docs:build && npm run docs:deploy",
13
+ "docs:build": "dumi build",
14
+ "docs:deploy": "gh-pages -d docs-dist",
15
+ "prepublishOnly": "npm run build",
16
+ "prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
17
+ "pub": "lerna publish",
18
+ "start": "dumi dev",
19
+ "test": "umi-test",
20
+ "test:coverage": "umi-test --coverage"
21
+ },
22
+ "lint-staged": {
23
+ "*.{js,jsx,less,md,json}": [
24
+ "prettier --write"
25
+ ],
26
+ "*.ts?(x)": [
27
+ "prettier --parser=typescript --write"
28
+ ]
29
+ },
30
+ "dependencies": {
31
+ "@types/qs": "^6.9.7",
32
+ "axios": "^0.26.1",
33
+ "babel-plugin-import": "^1.13.3",
34
+ "lerna": "^4.0.0",
35
+ "rc-virtual-list": "^3.4.8",
36
+ "react-infinite-scroll-component": "^6.1.0",
37
+ "umi-request": "^1.4.0"
38
+ },
39
+ "devDependencies": {
40
+ "@testing-library/jest-dom": "^5.15.1",
41
+ "@testing-library/react": "^12.1.2",
42
+ "@types/jest": "^27.0.3",
43
+ "@types/lodash": "^4.14.182",
44
+ "@umijs/fabric": "^2.8.1",
45
+ "@umijs/test": "^3.0.5",
46
+ "antd": "4.24.16",
47
+ "dumi": "^1.1.0",
48
+ "echarts": "^5.3.2",
49
+ "echarts-for-react": "^3.0.2",
50
+ "father-build": "^1.17.2",
51
+ "gh-pages": "^3.0.0",
52
+ "lint-staged": "^10.0.7",
53
+ "lodash": "^4.17.21",
54
+ "prettier": "^2.2.1",
55
+ "react": "^16.12.0 || ^17.0.0",
56
+ "yorkie": "^2.0.0"
57
+ },
58
+ "gitHead": "66a5af78d07673c2ca148d3ee25b0a24624ea31e",
59
+ "gitHooks": {
60
+ "pre-commit": "lint-staged"
61
+ }
62
+ }