@riil-frontend/component-topology 12.1.2 → 13.0.0-dev.10

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 (35) hide show
  1. package/build/index.css +1 -1
  2. package/build/index.js +29 -29
  3. package/es/components/ColorPanel/index.js +68 -58
  4. package/es/core/editor/components/Toolbar/widgets/FontColorButton.js +10 -91
  5. package/es/core/editor/components/Toolbar/widgets/components/FontColorDropdown.js +120 -0
  6. package/es/core/editor/components/Toolbar/widgets/components/FontStyleSelect.js +21 -15
  7. package/es/core/hooks/useResourceConfig.js +1 -2
  8. package/es/core/hooks/useTopoEdit.js +2 -1
  9. package/es/core/models/TopoApp.js +1 -1
  10. package/es/core/models/topoData.js +3 -4
  11. package/es/core/models/utils/linkUtils.js +29 -24
  12. package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/EventsCard.js +4 -2
  13. package/es/networkTopo/services/topo/basic.js +27 -17
  14. package/es/networkTopo/utils/__tests__/relateTopoData.js +205 -0
  15. package/es/networkTopo/utils/exitLinkUtil.js +2 -2
  16. package/es/networkTopo/utils/relateTopoDataUtil.js +149 -0
  17. package/es/utils/ResourceConfigUtil.js +1 -16
  18. package/lib/components/ColorPanel/index.js +71 -59
  19. package/lib/core/editor/components/Toolbar/widgets/FontColorButton.js +11 -95
  20. package/lib/core/editor/components/Toolbar/widgets/components/FontColorDropdown.js +136 -0
  21. package/lib/core/editor/components/Toolbar/widgets/components/FontStyleSelect.js +21 -15
  22. package/lib/core/hooks/useResourceConfig.js +1 -2
  23. package/lib/core/hooks/useTopoEdit.js +2 -1
  24. package/lib/core/models/TopoApp.js +1 -1
  25. package/lib/core/models/topoData.js +3 -4
  26. package/lib/core/models/utils/linkUtils.js +29 -24
  27. package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/EventsCard.js +6 -2
  28. package/lib/networkTopo/services/topo/basic.js +32 -18
  29. package/lib/networkTopo/utils/__tests__/relateTopoData.js +210 -0
  30. package/lib/networkTopo/utils/exitLinkUtil.js +2 -2
  31. package/lib/networkTopo/utils/relateTopoDataUtil.js +164 -0
  32. package/lib/utils/ResourceConfigUtil.js +1 -16
  33. package/package.json +2 -2
  34. /package/es/core/editor/components/Toolbar/widgets/{FontColorButton.module.scss → components/FontColorDropdown.module.scss} +0 -0
  35. /package/lib/core/editor/components/Toolbar/widgets/{FontColorButton.module.scss → components/FontColorDropdown.module.scss} +0 -0
@@ -52,23 +52,8 @@ function getResourceConfigFromHt(topo) {
52
52
  return {
53
53
  layers: (0, _sortBy["default"])(layers, 'order'),
54
54
  groups: groups,
55
- resources: resources,
56
- relateTopoIdList: getRelateTopoIdList(dataModel)
55
+ resources: resources
57
56
  };
58
- } // 查询关联拓扑id列表
59
-
60
-
61
- function getRelateTopoIdList(dataModel) {
62
- return (0, _htElementUtils.getNodes)(dataModel).reduce(function (topoIds, node) {
63
- var bindType = node.a('bindType');
64
- var bindTopo = node.a('bindTopo');
65
-
66
- if (bindType === 'topo' && bindTopo && !topoIds.includes(bindTopo)) {
67
- return [].concat(topoIds, [bindTopo]);
68
- }
69
-
70
- return topoIds;
71
- }, []);
72
57
  }
73
58
 
74
59
  function getLayerDatas(dataModel) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riil-frontend/component-topology",
3
- "version": "12.1.2",
3
+ "version": "13.0.0-dev.10",
4
4
  "description": "拓扑",
5
5
  "scripts": {
6
6
  "start": "build-scripts start",
@@ -123,6 +123,6 @@
123
123
  "access": "public"
124
124
  },
125
125
  "license": "MIT",
126
- "homepage": "https://unpkg.com/@riil-frontend/component-topology@12.1.2/build/index.html",
126
+ "homepage": "https://unpkg.com/@riil-frontend/component-topology@13.0.0-dev.10/build/index.html",
127
127
  "gitHead": "2da19ffccbb7ca60a8acf396e39f542c68bb33f5"
128
128
  }