@zgfe/modules-dm 1.0.42-alpha.9 → 1.0.56-zhongyuan.5

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 (115) hide show
  1. package/es/components/demo.js +1 -1
  2. package/es/constants/api.d.ts +37 -0
  3. package/es/constants/api.js +62 -1
  4. package/es/index.d.ts +3 -1
  5. package/es/index.js +3 -1
  6. package/es/modules/CutsModal.d.ts +66 -0
  7. package/es/modules/CutsModal.js +52 -0
  8. package/es/modules/dataManage/collectionAttributeList.d.ts +3 -0
  9. package/es/modules/dataManage/collectionAttributeList.js +524 -80
  10. package/es/modules/dataManage/collectionEventList.d.ts +6 -0
  11. package/es/modules/dataManage/collectionEventList.js +482 -62
  12. package/es/modules/dataManage/components/createAttrDrawer.d.ts +4 -0
  13. package/es/modules/dataManage/components/createAttrDrawer.js +264 -0
  14. package/es/modules/dataManage/components/createMetaDrawer.d.ts +4 -0
  15. package/es/modules/dataManage/components/createMetaDrawer.js +618 -0
  16. package/es/modules/dataManage/components/createVirtualDrawer.js +19 -19
  17. package/es/modules/dataManage/components/creditPop/imgs/link.png +0 -0
  18. package/es/modules/dataManage/components/creditPop/imgs/png01.png +0 -0
  19. package/es/modules/dataManage/components/creditPop/imgs/png02.png +0 -0
  20. package/es/modules/dataManage/components/creditPop/imgs/png03.png +0 -0
  21. package/es/modules/dataManage/components/creditPop/imgs/png04.png +0 -0
  22. package/es/modules/dataManage/components/creditPop/index.d.ts +6 -0
  23. package/es/modules/dataManage/components/creditPop/index.js +89 -0
  24. package/es/modules/dataManage/components/creditPop/index.less +121 -0
  25. package/es/modules/dataManage/components/deleteConfirm.d.ts +9 -0
  26. package/es/modules/dataManage/components/deleteConfirm.js +36 -0
  27. package/es/modules/dataManage/components/deleteUserAttrConfirm.d.ts +9 -0
  28. package/es/modules/dataManage/components/deleteUserAttrConfirm.js +57 -0
  29. package/es/modules/dataManage/components/depositPop/imgs/link.png +0 -0
  30. package/es/modules/dataManage/components/depositPop/imgs/png01.png +0 -0
  31. package/es/modules/dataManage/components/depositPop/imgs/png02.png +0 -0
  32. package/es/modules/dataManage/components/depositPop/index.d.ts +6 -0
  33. package/es/modules/dataManage/components/depositPop/index.js +89 -0
  34. package/es/modules/dataManage/components/depositPop/index.less +115 -0
  35. package/es/modules/dataManage/components/developModal/index.css +36 -0
  36. package/es/modules/dataManage/components/developModal/index.d.ts +6 -0
  37. package/es/modules/dataManage/components/developModal/index.js +224 -0
  38. package/es/modules/dataManage/components/developModal/index.less +36 -0
  39. package/es/modules/dataManage/components/editTxt/index.d.ts +3 -0
  40. package/es/modules/dataManage/components/editTxt/index.js +123 -0
  41. package/es/modules/dataManage/components/editTxt/index.less +44 -0
  42. package/es/modules/dataManage/components/editTxt/types.d.ts +48 -0
  43. package/es/modules/dataManage/components/editTxt/types.js +1 -0
  44. package/es/modules/dataManage/components/eventFilter/index.js +13 -13
  45. package/es/modules/dataManage/components/eventFilter/styles/index.less +72 -72
  46. package/es/modules/dataManage/components/eventGroupingDrawer.js +41 -44
  47. package/es/modules/dataManage/components/importAttrDialog/demo/index.d.ts +3 -0
  48. package/es/modules/dataManage/components/importAttrDialog/demo/index.js +28 -0
  49. package/es/modules/dataManage/components/importAttrDialog/index.d.ts +7 -0
  50. package/es/modules/dataManage/components/importAttrDialog/index.js +159 -0
  51. package/es/modules/dataManage/components/importAttrDialog/styles/index.less +90 -0
  52. package/es/modules/dataManage/components/importMetaDialog/demo/index.d.ts +3 -0
  53. package/es/modules/dataManage/components/importMetaDialog/demo/index.js +28 -0
  54. package/es/modules/dataManage/components/importMetaDialog/index.d.ts +7 -0
  55. package/es/modules/dataManage/components/importMetaDialog/index.js +159 -0
  56. package/es/modules/dataManage/components/importMetaDialog/styles/index.less +91 -0
  57. package/es/modules/dataManage/components/selectAttributes.js +10 -10
  58. package/es/modules/dataManage/components/tablePlus.d.ts +4 -0
  59. package/es/modules/dataManage/components/tablePlus.js +625 -94
  60. package/es/modules/dataManage/components/virtualTablePlus.js +7 -7
  61. package/es/modules/dataManage/demo/index.d.ts +2 -1
  62. package/es/modules/dataManage/demo/index.js +79 -16
  63. package/es/modules/dataManage/detailedData/DetailedDataForm.d.ts +5 -0
  64. package/es/modules/dataManage/detailedData/DetailedDataForm.js +216 -0
  65. package/es/modules/dataManage/detailedData/index.d.ts +24 -0
  66. package/es/modules/dataManage/detailedData/index.js +403 -0
  67. package/es/modules/dataManage/detailedData/useColumns.d.ts +34 -0
  68. package/es/modules/dataManage/detailedData/useColumns.js +135 -0
  69. package/es/modules/dataManage/index.d.ts +9 -4
  70. package/es/modules/dataManage/index.js +142 -50
  71. package/es/modules/dataManage/styles/detailed.less +74 -0
  72. package/es/modules/dataManage/styles/index.less +1195 -841
  73. package/es/modules/dataManage/types.d.ts +8 -0
  74. package/es/modules/dataManage/virtualEventList.js +13 -13
  75. package/es/modules/dataMap/component/data.d.ts +7 -0
  76. package/es/modules/dataMap/component/data.js +257 -0
  77. package/es/modules/dataMap/component/drawerAdd.d.ts +6 -0
  78. package/es/modules/dataMap/component/drawerAdd.js +379 -0
  79. package/es/modules/dataMap/component/leftTree.d.ts +6 -0
  80. package/es/modules/dataMap/component/leftTree.js +232 -0
  81. package/es/modules/dataMap/component/rightDetail.d.ts +7 -0
  82. package/es/modules/dataMap/component/rightDetail.js +694 -0
  83. package/es/modules/dataMap/component/selectAttr.d.ts +7 -0
  84. package/es/modules/dataMap/component/selectAttr.js +92 -0
  85. package/es/modules/dataMap/css/index.css +163 -0
  86. package/es/modules/dataMap/css/index.less +177 -0
  87. package/es/modules/dataMap/demo/index.d.ts +3 -0
  88. package/es/modules/dataMap/demo/index.js +6 -0
  89. package/es/modules/dataMap/img/empty-data.png +0 -0
  90. package/es/modules/dataMap/index.d.ts +3 -0
  91. package/es/modules/dataMap/index.js +80 -0
  92. package/es/modules/dataMap/mapDetail.d.ts +3 -0
  93. package/es/modules/dataMap/mapDetail.js +44 -0
  94. package/es/modules/dataMap/mapSetting.d.ts +6 -0
  95. package/es/modules/dataMap/mapSetting.js +156 -0
  96. package/es/modules/dataPlan/addEventOrUser.js +31 -30
  97. package/es/modules/dataPlan/addPlan.js +29 -27
  98. package/es/modules/dataPlan/eventList.js +2 -2
  99. package/es/modules/dataPlan/index.js +10 -10
  100. package/es/modules/dataPlan/search.js +6 -5
  101. package/es/modules/dataPlan/styles/index.less +316 -316
  102. package/es/modules/dataPlan/tablePlus.js +3 -3
  103. package/es/modules/dataPlan/userAttributeList.js +5 -5
  104. package/es/modules/dataReal/css/index.css +48 -0
  105. package/es/modules/dataReal/css/index.less +51 -0
  106. package/es/modules/dataReal/demo/index.d.ts +3 -0
  107. package/es/modules/dataReal/demo/index.js +6 -0
  108. package/es/modules/dataReal/index1.d.ts +28 -0
  109. package/es/modules/dataReal/index1.js +247 -0
  110. package/es/modules/dataReal/table.d.ts +5 -0
  111. package/es/modules/dataReal/table.js +260 -0
  112. package/es/store/index.js +11 -11
  113. package/es/utils/index.d.ts +1 -0
  114. package/es/utils/index.js +9 -1
  115. package/package.json +64 -58
package/es/store/index.js CHANGED
@@ -1,15 +1,15 @@
1
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
3
3
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
4
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
5
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
6
- function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
7
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
8
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
9
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
10
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
11
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
12
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
4
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
5
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
6
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
7
+ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
8
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
9
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
10
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
11
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
12
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
13
13
  import { useReducer, createContext } from 'react';
14
14
  import { initState } from './state';
15
15
  import { ActionType } from './action';
@@ -54,3 +54,4 @@ export declare const nullToEmptyString: (data: any) => any;
54
54
  * @param {*} id 当前页面中有多个table时需要制定table的id
55
55
  */
56
56
  export declare function getTableScroll(extraHeight?: any, id?: any): string;
57
+ export declare const guid: () => string;
package/es/utils/index.js CHANGED
@@ -40,6 +40,8 @@ export var getVirtualContentChange = function getVirtualContentChange(oldData, n
40
40
  if (oldData.eventName != newData.eventName) {
41
41
  return true;
42
42
  }
43
+ //数据兼容,部分数据返回的是null,应统一使用 -1,做未分组情况的判断
44
+ if (oldData.groupId === null) oldData.groupId = -1;
43
45
  if (oldData.groupId != newData.eventGroupId) {
44
46
  return true;
45
47
  }
@@ -347,4 +349,10 @@ export function getTableScroll(extraHeight, id) {
347
349
  // let height = document.body.clientHeight - tHeaderBottom - extraHeight
348
350
  var height = "calc(100vh - ".concat(tHeaderBottom + extraHeight, "px)");
349
351
  return height;
350
- }
352
+ }
353
+ export var guid = function guid() {
354
+ function s4() {
355
+ return Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1);
356
+ }
357
+ return s4() + s4() + '-' + s4() + '-' + s4() + '-' + s4() + '-' + s4() + s4() + s4();
358
+ };
package/package.json CHANGED
@@ -1,58 +1,64 @@
1
- {
2
- "name": "@zgfe/modules-dm",
3
- "version": "1.0.42-alpha.9",
4
- "license": "ISC",
5
- "module": "es/index.js",
6
- "typings": "es/index.d.ts",
7
- "files": [
8
- "es"
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
- "array-move": "^4.0.0",
32
- "react": "^16.12.0 || ^17.0.0",
33
- "react-sortable-hoc": "^2.0.0"
34
- },
35
- "devDependencies": {
36
- "@testing-library/jest-dom": "^5.15.1",
37
- "@testing-library/react": "^12.1.2",
38
- "@types/jest": "^27.0.3",
39
- "@types/lodash": "^4.14.182",
40
- "@umijs/fabric": "^2.8.1",
41
- "@umijs/test": "^3.0.5",
42
- "@zgfe/business-lib": "1.2.3-heyh.1",
43
- "antd": "4.24.10",
44
- "dumi": "^1.1.0",
45
- "father-build": "^1.17.2",
46
- "gh-pages": "^3.0.0",
47
- "lerna": "^4.0.0",
48
- "lint-staged": "^10.0.7",
49
- "lodash": "^4.17.21",
50
- "prettier": "^2.2.1",
51
- "umi-request": "^1.4.0",
52
- "yorkie": "^2.0.0"
53
- },
54
- "gitHead": "951170e644a46fd388269e91dea5d98e9f52bb2b",
55
- "gitHooks": {
56
- "pre-commit": "lint-staged"
57
- }
58
- }
1
+ {
2
+ "name": "@zgfe/modules-dm",
3
+ "version": "1.0.56-zhongyuan.5",
4
+ "license": "ISC",
5
+ "module": "es/index.js",
6
+ "typings": "es/index.d.ts",
7
+ "files": [
8
+ "es"
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/lodash-es": "^4.17.12",
32
+ "@visactor/react-vtable": "^1.12.0",
33
+ "@visactor/vtable": "^1.12.0",
34
+ "array-move": "^4.0.0",
35
+ "echarts": "^5.6.0",
36
+ "echarts-for-react": "^3.0.2",
37
+ "lodash-es": "^4.17.21",
38
+ "moment": "^2.30.1",
39
+ "react": "^16.12.0 || ^17.0.0",
40
+ "react-sortable-hoc": "^2.0.0"
41
+ },
42
+ "devDependencies": {
43
+ "@testing-library/jest-dom": "^5.15.1",
44
+ "@testing-library/react": "^12.1.2",
45
+ "@types/jest": "^27.0.3",
46
+ "@types/lodash": "^4.14.182",
47
+ "@umijs/fabric": "^2.8.1",
48
+ "@umijs/test": "^3.0.5",
49
+ "@zgfe/business-lib": "1.2.70-hxd.1",
50
+ "antd": "4.24.10",
51
+ "dumi": "^1.1.0",
52
+ "father-build": "^1.17.2",
53
+ "gh-pages": "^3.0.0",
54
+ "lerna": "^4.0.0",
55
+ "lint-staged": "^10.0.7",
56
+ "prettier": "^2.2.1",
57
+ "umi-request": "^1.4.0",
58
+ "yorkie": "^2.0.0"
59
+ },
60
+ "gitHead": "339a76fd443f518e13146db123a56d382700599b",
61
+ "gitHooks": {
62
+ "pre-commit": "lint-staged"
63
+ }
64
+ }