@riil-frontend/component-topology 2.3.20-dev.1 → 2.4.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 (214) hide show
  1. package/build/1.js +2 -2
  2. package/build/2.js +1 -1
  3. package/build/index.css +2 -2
  4. package/build/index.js +28 -28
  5. package/demo/5/345/205/266/344/273/226/347/273/204/344/273/266//345/233/276/346/240/207/351/200/211/346/213/251.md +5 -5
  6. package/es/components/BatchAttrMetric/index.js +1 -1
  7. package/es/components/BatchAttrMetric/setting.js +4 -4
  8. package/es/components/BatchAttrMetric/utils.js +2 -2
  9. package/es/components/Drawer/index.js +4 -3
  10. package/es/components/Drawer/index.module.scss +13 -0
  11. package/es/components/FormTable/index.js +3 -3
  12. package/es/components/IndexSettingDrawer/CiList.js +1 -1
  13. package/es/components/IndexSettingDrawer/CiListItem.js +1 -1
  14. package/es/components/IndexSettingDrawer/IndexList.js +1 -1
  15. package/es/components/IndexSettingDrawer/index.js +1 -1
  16. package/es/components/Link/form.js +6 -6
  17. package/es/components/Link/index.js +2 -2
  18. package/es/components/Link/setting.js +4 -4
  19. package/es/components/MultiResourceDrawer/Content.js +1 -1
  20. package/es/components/MultiResourceDrawer/ResourceCard/index.js +2 -2
  21. package/es/components/ResourceList/ResourceSelect.js +3 -2
  22. package/es/components/ResourceList/ResourceSelect.module.scss +7 -0
  23. package/es/components/ResourceSelect/ResourceSelectDrawer.js +3 -1
  24. package/es/components/SingleResourceDrawer/index.js +1 -1
  25. package/es/core/{editor/components/settings/group/GroupNodeList → common}/icons/defaultIcons.d.ts +15 -0
  26. package/es/core/{editor/components/settings/group/GroupNodeList → common}/icons/defaultIcons.js +62 -0
  27. package/es/core/common/text.module.scss +5 -0
  28. package/es/core/components/TopoView/Topo.js +0 -6
  29. package/es/core/components/TopoView/TopoContent.js +1 -1
  30. package/es/core/editor/components/EditorPlugin.js +1 -1
  31. package/es/core/editor/components/LinkDynamicStyleSettingDrawer/RuleSetting.js +2 -2
  32. package/es/core/editor/components/LinkDynamicStyleSettingDrawer/rule/ColorPicker.js +1 -1
  33. package/es/core/editor/components/LinkDynamicStyleSettingDrawer/rule/ColorPicker.module.scss +7 -3
  34. package/es/core/editor/components/LinkDynamicStyleSettingDrawer/rule/Rule.js +1 -1
  35. package/es/core/editor/components/LinkDynamicStyleSettingDrawer/rule/RuleCondition.js +2 -2
  36. package/es/core/editor/components/LinkDynamicStyleSettingDrawer/rule/RuleStyle.js +4 -4
  37. package/es/core/editor/components/iconManage/RenameDialog.js +4 -4
  38. package/es/core/editor/components/iconManage/UploadIconDialog.js +6 -6
  39. package/es/core/editor/components/settings/README.md +2 -0
  40. package/es/core/editor/components/settings/Settings.js +47 -42
  41. package/es/core/editor/components/settings/Settings.module.scss +6 -1
  42. package/es/core/editor/components/settings/SettingsForm.js +2 -2
  43. package/es/core/editor/components/settings/Style.js +7 -7
  44. package/es/core/editor/components/settings/common/LayoutSettings.js +1 -1
  45. package/es/core/editor/components/settings/common/LineType.js +2 -2
  46. package/es/core/editor/components/settings/common/NodeAlignType.js +2 -2
  47. package/es/core/editor/components/settings/common/{NodeSizeInput.d.ts → NodeSizeInput/NodeSizeInput.d.ts} +0 -0
  48. package/es/core/editor/components/settings/common/{NodeSizeInput.js → NodeSizeInput/NodeSizeInput.js} +6 -4
  49. package/es/core/editor/components/settings/common/NodeSizeInput/img/icon_/350/247/243/351/224/201.svg +16 -0
  50. package/es/core/editor/components/settings/common/NodeSizeInput/img/icon_/351/224/201.svg +15 -0
  51. package/es/core/editor/components/settings/common/text/FontStyleCheckbox.d.ts +1 -0
  52. package/es/core/editor/components/settings/common/text/FontStyleCheckbox.js +50 -0
  53. package/es/core/editor/components/settings/common/text/FontStyleCheckbox.module.scss +31 -0
  54. package/es/core/editor/components/settings/common/text/TextStyle.d.ts +1 -0
  55. package/es/core/editor/components/settings/common/text/TextStyle.js +133 -0
  56. package/es/core/editor/components/settings/common/text/fontStyleUtil.d.ts +19 -0
  57. package/es/core/editor/components/settings/common/text/fontStyleUtil.js +53 -0
  58. package/es/core/editor/components/settings/common/text/img/bold.svg +12 -0
  59. package/es/core/editor/components/settings/common/text/img/italics.svg +10 -0
  60. package/es/core/editor/components/settings/common/text/img/underline.svg +12 -0
  61. package/es/core/editor/components/settings/group/GroupNodeList/ResourceList.js +23 -7
  62. package/es/core/editor/components/settings/group/GroupNodeList/ResourceList.module.scss +16 -0
  63. package/es/core/editor/components/settings/group/GroupNodeList/ResourceSelectButton.js +1 -1
  64. package/es/core/editor/components/settings/group/GroupNodeList/icon.d.ts +10 -0
  65. package/es/core/editor/components/settings/group/GroupNodeList/icon.js +20 -1
  66. package/es/core/editor/components/settings/layer/LayerSettingsForm.js +8 -8
  67. package/es/core/editor/components/settings/link/LinkPropertyView.js +8 -8
  68. package/es/core/editor/components/settings/node/NodeIconSelect.d.ts +1 -0
  69. package/es/core/editor/components/settings/node/NodeIconSelect.js +42 -0
  70. package/es/core/editor/components/settings/node/NodePropertyView.d.ts +1 -1
  71. package/es/core/editor/components/settings/node/NodePropertyView.js +128 -133
  72. package/es/core/editor/components/settings/node/NodeRelateResourceButton.d.ts +4 -0
  73. package/es/core/editor/components/settings/node/NodeRelateResourceButton.js +22 -0
  74. package/es/core/editor/components/settings/node/TopoTreeSelect.d.ts +1 -0
  75. package/es/core/editor/components/settings/node/TopoTreeSelect.js +40 -0
  76. package/es/core/editor/components/settings/text/TextPropertyView.js +32 -146
  77. package/es/core/editor/components/settings/view/ViewPropertyView.js +7 -7
  78. package/es/core/editor/components/titlebar/TopoEditorTitleBar.js +3 -4
  79. package/es/core/editor/{buildContextmenu.d.ts → contextmenu/buildContextmenu.d.ts} +1 -4
  80. package/es/core/editor/contextmenu/buildContextmenu.js +10 -0
  81. package/es/core/models/plugins/resourceWebControllUrl.js +1 -1
  82. package/es/core/utils/showMessage.js +1 -1
  83. package/es/core/viewer/components/plugins/ResourceDetail/topoDrawer.js +3 -3
  84. package/es/core/viewer/components/plugins/ResourceWebControllUrlSettingDialog.js +5 -5
  85. package/es/core/viewer/components/titlebar/TopoViewerTitleBar.js +1 -1
  86. package/es/core/viewer/components/titlebar/ViewerTools.js +4 -4
  87. package/es/core/viewer/components/titlebar/widgets/EditButton.js +1 -1
  88. package/es/core/viewer/components/titlebar/widgets/SearchWidget.js +1 -1
  89. package/es/hooks/usePolling.js +0 -1
  90. package/es/hooks/useSelection.js +9 -3
  91. package/es/hooks/useTopoEdit.js +2 -2
  92. package/es/models/iconManage.js +2 -2
  93. package/es/models/linkDynamicStyleConfig.js +1 -1
  94. package/es/models/topoBizMod.js +1 -1
  95. package/es/plugins/useSelectionPlugin.d.ts +23 -0
  96. package/es/plugins/useSelectionPlugin.js +84 -0
  97. package/es/style.js +30 -42
  98. package/es/topoCenter/components/Topology.js +2 -2
  99. package/es/topoCenter/viewer/index.js +2 -2
  100. package/es/utils/htElementDataUtil.js +1 -1
  101. package/es/utils/topoData.js +1 -1
  102. package/es/utils/tree.js +1 -1
  103. package/lib/common/components/ResourceTable/ResourceTable.js +2 -4
  104. package/lib/components/BatchAttrMetric/index.js +2 -4
  105. package/lib/components/BatchAttrMetric/setting.js +2 -4
  106. package/lib/components/Drawer/index.js +2 -1
  107. package/lib/components/Drawer/index.module.scss +13 -0
  108. package/lib/components/IndexSettingDrawer/IndexList.js +2 -4
  109. package/lib/components/IndexSettingDrawer/index.js +2 -4
  110. package/lib/components/Link/form.js +2 -4
  111. package/lib/components/Link/hook.js +2 -4
  112. package/lib/components/Link/index.js +2 -4
  113. package/lib/components/Link/setting.js +2 -4
  114. package/lib/components/MultiResourceDrawer/Content.js +2 -4
  115. package/lib/components/MultiResourceDrawer/index.js +2 -4
  116. package/lib/components/ResourceList/ResourceSelect.js +5 -5
  117. package/lib/components/ResourceList/ResourceSelect.module.scss +7 -0
  118. package/lib/components/ResourceList/ResourceSelectConnect.js +2 -4
  119. package/lib/components/ResourceSelect/DefaultResourceSelectDrawer.js +2 -4
  120. package/lib/components/ResourceSelect/ResourceSelectDrawer.js +5 -5
  121. package/lib/components/SingleResourceDrawer/index.js +2 -4
  122. package/lib/core/{editor/components/settings/group/GroupNodeList → common}/icons/defaultIcons.d.ts +15 -0
  123. package/lib/core/{editor/components/settings/group/GroupNodeList → common}/icons/defaultIcons.js +68 -1
  124. package/lib/core/common/text.module.scss +5 -0
  125. package/lib/core/components/TopoApp.js +2 -4
  126. package/lib/core/components/TopoAppProvider.js +2 -4
  127. package/lib/core/components/TopoAppView.js +2 -4
  128. package/lib/core/components/TopoView/Topo.js +2 -16
  129. package/lib/core/components/TopoView/Topo404.js +2 -4
  130. package/lib/core/components/TopoView/TopoContent.js +2 -4
  131. package/lib/core/components/TopoView/TopoNoPermission.js +2 -4
  132. package/lib/core/components/TopoView/topoView.js +2 -4
  133. package/lib/core/components/buildProvider.js +2 -4
  134. package/lib/core/components/titlebar/TitleBar.js +2 -4
  135. package/lib/core/components/titlebar/widgets/TitleWidget.js +2 -4
  136. package/lib/core/editor/components/LinkDynamicStyleSettingDrawer/RuleSetting.js +2 -4
  137. package/lib/core/editor/components/LinkDynamicStyleSettingDrawer/index.js +2 -4
  138. package/lib/core/editor/components/LinkDynamicStyleSettingDrawer/rule/ColorPicker.js +2 -4
  139. package/lib/core/editor/components/LinkDynamicStyleSettingDrawer/rule/ColorPicker.module.scss +7 -3
  140. package/lib/core/editor/components/LinkDynamicStyleSettingDrawer/rule/RuleCondition.js +2 -4
  141. package/lib/core/editor/components/LinkDynamicStyleSettingDrawer/rule/RuleStyle.js +2 -4
  142. package/lib/core/editor/components/ResourceViewAttributeSetting/ResourceViewAttributeSettingPlugin.js +2 -4
  143. package/lib/core/editor/components/ResourceViewAttributeSetting/Setting.js +2 -4
  144. package/lib/core/editor/components/iconManage/IconManage.js +2 -4
  145. package/lib/core/editor/components/iconManage/RenameDialog.js +2 -4
  146. package/lib/core/editor/components/iconManage/UploadIconDialog.js +2 -2
  147. package/lib/core/editor/components/iconManage/UploadIconDialogWrapper.js +2 -4
  148. package/lib/core/editor/components/settings/README.md +2 -0
  149. package/lib/core/editor/components/settings/Settings.js +45 -44
  150. package/lib/core/editor/components/settings/Settings.module.scss +6 -1
  151. package/lib/core/editor/components/settings/SettingsForm.js +2 -4
  152. package/lib/core/editor/components/settings/Style.js +2 -4
  153. package/lib/core/editor/components/settings/common/LayoutSettings.js +2 -4
  154. package/lib/core/editor/components/settings/common/LineType.js +2 -4
  155. package/lib/core/editor/components/settings/common/NodeAlignType.js +2 -4
  156. package/lib/core/editor/components/settings/common/{NodeSizeInput.d.ts → NodeSizeInput/NodeSizeInput.d.ts} +0 -0
  157. package/lib/core/editor/components/settings/common/{NodeSizeInput.js → NodeSizeInput/NodeSizeInput.js} +4 -4
  158. package/lib/core/editor/components/settings/common/NodeSizeInput/img/icon_/350/247/243/351/224/201.svg +16 -0
  159. package/lib/core/editor/components/settings/common/NodeSizeInput/img/icon_/351/224/201.svg +15 -0
  160. package/lib/core/editor/components/settings/common/text/FontStyleCheckbox.d.ts +1 -0
  161. package/lib/core/editor/components/settings/common/text/FontStyleCheckbox.js +68 -0
  162. package/lib/core/editor/components/settings/common/text/FontStyleCheckbox.module.scss +31 -0
  163. package/lib/core/editor/components/settings/common/text/TextStyle.d.ts +1 -0
  164. package/lib/core/editor/components/settings/common/text/TextStyle.js +150 -0
  165. package/lib/core/editor/components/settings/common/text/fontStyleUtil.d.ts +19 -0
  166. package/lib/core/editor/components/settings/common/text/fontStyleUtil.js +58 -0
  167. package/lib/core/editor/components/settings/common/text/img/bold.svg +12 -0
  168. package/lib/core/editor/components/settings/common/text/img/italics.svg +10 -0
  169. package/lib/core/editor/components/settings/common/text/img/underline.svg +12 -0
  170. package/lib/core/editor/components/settings/group/GroupNodeList/GroupNodeList.js +2 -4
  171. package/lib/core/editor/components/settings/group/GroupNodeList/ResourceList.js +24 -11
  172. package/lib/core/editor/components/settings/group/GroupNodeList/ResourceList.module.scss +16 -0
  173. package/lib/core/editor/components/settings/group/GroupNodeList/ResourceSelectButton.js +2 -4
  174. package/lib/core/editor/components/settings/group/GroupNodeList/icon.d.ts +10 -0
  175. package/lib/core/editor/components/settings/group/GroupNodeList/icon.js +23 -1
  176. package/lib/core/editor/components/settings/layer/LayerSettingsForm.js +2 -4
  177. package/lib/core/editor/components/settings/link/LinkPropertyView.js +2 -4
  178. package/lib/core/editor/components/settings/node/NodeIconSelect.d.ts +1 -0
  179. package/lib/core/editor/components/settings/node/NodeIconSelect.js +57 -0
  180. package/lib/core/editor/components/settings/node/NodePropertyView.d.ts +1 -1
  181. package/lib/core/editor/components/settings/node/NodePropertyView.js +127 -131
  182. package/lib/core/editor/components/settings/node/NodeRelateResourceButton.d.ts +4 -0
  183. package/lib/core/editor/components/settings/node/NodeRelateResourceButton.js +31 -0
  184. package/lib/core/editor/components/settings/node/TopoTreeSelect.d.ts +1 -0
  185. package/lib/core/editor/components/settings/node/TopoTreeSelect.js +53 -0
  186. package/lib/core/editor/components/settings/text/TextPropertyView.js +31 -153
  187. package/lib/core/editor/components/settings/view/ViewPropertyView.js +3 -5
  188. package/lib/core/editor/components/titlebar/TopoEditorTitleBar.js +4 -7
  189. package/lib/core/editor/components/titlebar/widgets/SaveButton.js +2 -4
  190. package/lib/core/editor/{buildContextmenu.d.ts → contextmenu/buildContextmenu.d.ts} +1 -4
  191. package/lib/core/editor/{buildContextmenu.js → contextmenu/buildContextmenu.js} +3 -7
  192. package/lib/core/models/cache/DictCache.js +2 -4
  193. package/lib/core/viewer/components/plugins/ResourceDetail/ResourceDetailDrawerPlugin.js +2 -4
  194. package/lib/core/viewer/components/plugins/ResourceDetail/topoDrawer.js +2 -4
  195. package/lib/core/viewer/components/plugins/ResourceWebControllUrlSettingDialog.js +2 -4
  196. package/lib/core/viewer/components/titlebar/TopoViewerTitleBar.js +2 -4
  197. package/lib/core/viewer/components/titlebar/ViewerTools.js +2 -4
  198. package/lib/core/viewer/components/titlebar/widgets/EditButton.js +2 -4
  199. package/lib/core/viewer/components/titlebar/widgets/SearchWidget.js +2 -4
  200. package/lib/hooks/usePolling.js +0 -1
  201. package/lib/hooks/useSelection.js +9 -3
  202. package/lib/hooks/useTopoEdit.js +2 -4
  203. package/lib/models/topoBizMod.js +1 -1
  204. package/lib/models/topoCreateMod.js +2 -4
  205. package/lib/plugins/useSelectionPlugin.d.ts +23 -0
  206. package/lib/plugins/useSelectionPlugin.js +90 -0
  207. package/lib/style.js +3 -15
  208. package/lib/topoCenter/components/Topology.js +2 -4
  209. package/lib/topoCenter/viewer/components/TopologyViewer.js +2 -4
  210. package/lib/utils/htElementDataUtil.js +1 -1
  211. package/lib/utils/topoData.js +1 -1
  212. package/lib/utils/tree.js +1 -1
  213. package/package.json +6 -6
  214. package/es/core/editor/buildContextmenu.js +0 -14
@@ -1,4 +1,4 @@
1
- import _Button from "@alifd/next/es/button";
1
+ import _Button from "@alifd/next/lib/button";
2
2
  import React, { useState, useEffect, useRef, useCallback } from 'react';
3
3
  import TitleWidget from "../../../components/titlebar/widgets/TitleWidget";
4
4
  import styles from "../../../components/titlebar/TitleBar.module.scss";
@@ -22,16 +22,15 @@ export default function TopoEditorTitleBar(props) {
22
22
  topoEditApi.addResourceToView();
23
23
  }
24
24
  }, "\u6DFB\u52A0\u8D44\u6E90"), /*#__PURE__*/React.createElement(_Button, {
25
- type: "primary",
26
25
  className: styles.button,
27
26
  onClick: function onClick() {
28
27
  topo.save();
29
28
  }
30
29
  }, "\u4FDD\u5B58"), /*#__PURE__*/React.createElement(_Button, {
30
+ className: styles.button,
31
31
  onClick: function onClick() {
32
32
  topo.exitEditMode();
33
- },
34
- className: styles.button
33
+ }
35
34
  }, "\u9000\u51FA"))));
36
35
  }
37
36
  ;
@@ -1,9 +1,6 @@
1
1
  export default function buildContextmenu(topoApp: any): {
2
2
  node: {
3
3
  enable: boolean;
4
- items: {
5
- label: string;
6
- id: string;
7
- }[];
4
+ items: any[];
8
5
  };
9
6
  };
@@ -0,0 +1,10 @@
1
+ export default function buildContextmenu(topoApp) {
2
+ return {
3
+ node: {
4
+ enable: true,
5
+ items: [// { label: '打开属性设置', id: 'openSet' },
6
+ // { label: '打开全局属性设置', id: 'openAllSet' },
7
+ ]
8
+ }
9
+ };
10
+ }
@@ -1,4 +1,4 @@
1
- import _Message from "@alifd/next/es/message";
1
+ import _Message from "@alifd/next/lib/message";
2
2
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
3
3
  import _regeneratorRuntime from "@babel/runtime/regenerator";
4
4
  import topoService from '@riil-frontend/component-topology-utils/es/services/topo';
@@ -1,4 +1,4 @@
1
- import _Message from "@alifd/next/es/message";
1
+ import _Message from "@alifd/next/lib/message";
2
2
  import rlog from '@riil-frontend/component-topology-utils/es/utils/rlog';
3
3
  var MSG_TYPES = {
4
4
  info: 'notice',
@@ -1,6 +1,6 @@
1
- import _Drawer from "@alifd/next/es/drawer";
2
- import _Box from "@alifd/next/es/box";
3
- import _Button from "@alifd/next/es/button";
1
+ import _Drawer from "@alifd/next/lib/drawer";
2
+ import _Box from "@alifd/next/lib/box";
3
+ import _Button from "@alifd/next/lib/button";
4
4
  import _extends from "@babel/runtime/helpers/extends";
5
5
  import React, { useState, useEffect } from 'react';
6
6
  import { Link } from 'react-router-dom';
@@ -1,9 +1,9 @@
1
- import _Dialog from "@alifd/next/es/dialog";
2
- import _Loading from "@alifd/next/es/loading";
3
- import _Input from "@alifd/next/es/input";
1
+ import _Dialog from "@alifd/next/lib/dialog";
2
+ import _Loading from "@alifd/next/lib/loading";
3
+ import _Input from "@alifd/next/lib/input";
4
4
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
5
- import _Field from "@alifd/next/es/field";
6
- import _Form from "@alifd/next/es/form";
5
+ import _Field from "@alifd/next/lib/field";
6
+ import _Form from "@alifd/next/lib/form";
7
7
  import _regeneratorRuntime from "@babel/runtime/regenerator";
8
8
  import React, { useEffect } from 'react';
9
9
  import styles from "./ResourceWebControllUrlSettingDialog.module.scss";
@@ -1,4 +1,4 @@
1
- import _MenuButton from "@alifd/next/es/menu-button";
1
+ import _MenuButton from "@alifd/next/lib/menu-button";
2
2
  import React, { useState, useEffect, useRef, useCallback } from 'react';
3
3
  import ViewerTools from "./ViewerTools";
4
4
  import TitleWidget from "../../../components/titlebar/widgets/TitleWidget";
@@ -1,7 +1,7 @@
1
- import _Dropdown from "@alifd/next/es/dropdown";
2
- import _Menu from "@alifd/next/es/menu";
3
- import _Button from "@alifd/next/es/button";
4
- import _Icon from "@alifd/next/es/icon";
1
+ import _Dropdown from "@alifd/next/lib/dropdown";
2
+ import _Menu from "@alifd/next/lib/menu";
3
+ import _Button from "@alifd/next/lib/button";
4
+ import _Icon from "@alifd/next/lib/icon";
5
5
  import _extends from "@babel/runtime/helpers/extends";
6
6
  import React, { useState, useEffect, useRef, useCallback } from 'react';
7
7
  import SearchWidget from "./widgets/SearchWidget";
@@ -1,4 +1,4 @@
1
- import _Button from "@alifd/next/es/button";
1
+ import _Button from "@alifd/next/lib/button";
2
2
  import React, { useState, useEffect, useRef, useCallback } from 'react';
3
3
  import topoPermissonUtil from "../../../../../utils/topoPermissionUtil";
4
4
  import styles from "../../../../components/titlebar/TitleBar.module.scss";
@@ -1,4 +1,4 @@
1
- import _Search from "@alifd/next/es/search";
1
+ import _Search from "@alifd/next/lib/search";
2
2
  import React, { useState, useEffect, useRef, useCallback } from 'react';
3
3
  import PropTypes from "prop-types";
4
4
  var searchTypes = [{
@@ -44,7 +44,6 @@ var usePolling = function usePolling(props) {
44
44
  sendMetricsData(dd);
45
45
  sendAttributesData(dd); // 刷新链路动态样式
46
46
 
47
- // 刷新链路动态样式
48
47
  linkDynamicStyleDispatcher.execute();
49
48
  }
50
49
  }
@@ -10,7 +10,9 @@ function getElementData(element) {
10
10
  // 业务id
11
11
  name: element.getName(),
12
12
  attrObject: element.getAttrObject(),
13
- styleMap: element.getStyleMap()
13
+ attr: element.getAttrObject(),
14
+ styleMap: element.getStyleMap(),
15
+ style: element.getStyleMap()
14
16
  };
15
17
 
16
18
  if (className === 'ht.Edge') {
@@ -51,18 +53,22 @@ export default function (props) {
51
53
  var selectionModel = topoApp.getSelectionModel();
52
54
  updateSelection();
53
55
  selectionModel.addSelectionChangeListener(function (e) {
54
- // console.info('SelectionChange');
56
+ // console.info('selectionChangeListener', e);
55
57
  updateSelection();
56
58
  });
57
59
  dataModel.addDataPropertyChangeListener(function (e) {
58
60
  var property = e.property,
59
61
  data = e.data;
62
+
63
+ if (['position'].indexOf(property) !== -1) {
64
+ return;
65
+ }
66
+
60
67
  var selectionIds = selectionModel.getSelection().getArray().map(function (item) {
61
68
  return item.getId();
62
69
  });
63
70
 
64
71
  if (selectionIds.indexOf(data.getId()) > -1) {
65
- // console.info('DataPropertyChange');
66
72
  updateSelection();
67
73
  }
68
74
  });
@@ -1,5 +1,5 @@
1
- import _Dialog from "@alifd/next/es/dialog";
2
- import _Message from "@alifd/next/es/message";
1
+ import _Dialog from "@alifd/next/lib/dialog";
2
+ import _Message from "@alifd/next/lib/message";
3
3
  import _extends from "@babel/runtime/helpers/extends";
4
4
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
5
5
  import _regeneratorRuntime from "@babel/runtime/regenerator";
@@ -1,5 +1,5 @@
1
- import _Message from "@alifd/next/es/message";
2
- import _Dialog from "@alifd/next/es/dialog";
1
+ import _Message from "@alifd/next/lib/message";
2
+ import _Dialog from "@alifd/next/lib/dialog";
3
3
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
4
4
  import _extends from "@babel/runtime/helpers/extends";
5
5
  import _regeneratorRuntime from "@babel/runtime/regenerator";
@@ -1,4 +1,4 @@
1
- import _Message from "@alifd/next/es/message";
1
+ import _Message from "@alifd/next/lib/message";
2
2
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
3
3
  import _extends from "@babel/runtime/helpers/extends";
4
4
  import _regeneratorRuntime from "@babel/runtime/regenerator";
@@ -355,7 +355,7 @@ export default function (engine) {
355
355
  } else {// rlog.debug('重复告警', item);
356
356
  }
357
357
  } else {// rlog.debug('这条告警不属于当前拓扑', resIdsList, item.id);
358
- }
358
+ }
359
359
  } // rlog.debug('准备发送的告警', doc, record);
360
360
 
361
361
 
@@ -0,0 +1,23 @@
1
+ export default useTableSelectionPlugin;
2
+ /**
3
+ * Modified version of @ahooksjs/use-selection-plugin.
4
+ * Selected keys can be persistent across page changes, if not be reset.
5
+ */
6
+ declare function useTableSelectionPlugin(options?: {}): {
7
+ middlewares: (ctx: any, next: any) => any;
8
+ props: () => {
9
+ tableProps: {
10
+ rowSelection: {
11
+ onChange: (selectedRowKeys: any, records: any) => void;
12
+ selectedRowKeys: any;
13
+ mode: any;
14
+ getProps: (record: any) => {
15
+ disabled: any;
16
+ };
17
+ };
18
+ primaryKey: any;
19
+ };
20
+ getSelectedRowKeys: () => any;
21
+ setSelectedRowKeys: (selectedRowKeys: any) => void;
22
+ };
23
+ };
@@ -0,0 +1,84 @@
1
+ import { useState } from 'react';
2
+ /**
3
+ * Modified version of @ahooksjs/use-selection-plugin.
4
+ * Selected keys can be persistent across page changes, if not be reset.
5
+ */
6
+
7
+ var useTableSelectionPlugin = function useTableSelectionPlugin(options) {
8
+ if (options === void 0) {
9
+ options = {};
10
+ }
11
+
12
+ var _useState = useState({
13
+ selectedRowKeys: options.defaultSelectedRowKeys || []
14
+ }),
15
+ state = _useState[0],
16
+ setSelectedRowKeys = _useState[1];
17
+
18
+ var _options = options,
19
+ _options$primaryKey = _options.primaryKey,
20
+ primaryKey = _options$primaryKey === void 0 ? 'id' : _options$primaryKey,
21
+ _options$mode = _options.mode,
22
+ mode = _options$mode === void 0 ? 'multiple' : _options$mode,
23
+ _options$checkIsNeedR = _options.checkIsNeedReset,
24
+ checkIsNeedReset = _options$checkIsNeedR === void 0 ? function () {
25
+ return true;
26
+ } : _options$checkIsNeedR,
27
+ checkIsDisabled = _options.checkIsDisabled;
28
+
29
+ var onChange = function onChange(selectedRowKeys, records) {
30
+ setSelectedRowKeys({
31
+ selectedRowKeys: selectedRowKeys
32
+ });
33
+ };
34
+
35
+ var getSelectedRowKeys = function getSelectedRowKeys() {
36
+ return state.selectedRowKeys;
37
+ };
38
+
39
+ var $setSelectedRowKeys = function $setSelectedRowKeys(selectedRowKeys) {
40
+ setSelectedRowKeys({
41
+ selectedRowKeys: selectedRowKeys
42
+ });
43
+ };
44
+
45
+ return {
46
+ middlewares: function middlewares(ctx, next) {
47
+ var isNeedReset = checkIsNeedReset(ctx);
48
+
49
+ if (isNeedReset) {
50
+ return next().then(function () {
51
+ setSelectedRowKeys({
52
+ selectedRowKeys: []
53
+ });
54
+ });
55
+ }
56
+
57
+ return next();
58
+ },
59
+ props: function props() {
60
+ var getProps = checkIsDisabled ? function (record) {
61
+ return {
62
+ disabled: checkIsDisabled(record)
63
+ };
64
+ } : undefined;
65
+ return {
66
+ tableProps: {
67
+ rowSelection: {
68
+ // onSelect,
69
+ // onSelectAll,
70
+ onChange: onChange,
71
+ selectedRowKeys: state.selectedRowKeys,
72
+ mode: mode,
73
+ getProps: getProps
74
+ },
75
+ primaryKey: primaryKey
76
+ },
77
+ getSelectedRowKeys: getSelectedRowKeys,
78
+ setSelectedRowKeys: $setSelectedRowKeys
79
+ };
80
+ }
81
+ };
82
+ };
83
+
84
+ export default useTableSelectionPlugin;
package/es/style.js CHANGED
@@ -1,43 +1,31 @@
1
- import '@riil-frontend/component-topology-graph/es/style';
2
- import '@alifd/next/es/dialog/style';
3
- import '@alifd/next/es/message/style';
4
- import '@riil-frontend/utils/es/style';
5
- import '@riil-frontend/component-riil-event-emitter/es/style';
6
- import '@alifd/next/es/drawer/style';
7
- import '@alifd/next/es/button/style';
8
- import '@alifd/next/es/table/style';
9
- import '@alifd/next/es/search/style';
10
- import '@riil-frontend/component-pager/es/style';
11
- import '@riil-frontend/component-more-buttons-menu/es/style';
12
- import '@riil-frontend/component-table-filter-tags/es/style';
13
- import '@riil-frontend/component-table-layout/es/style';
14
- import '@riil-frontend/component-res-advanced-search/es/style';
15
- import '@alifd/next/es/card/style';
16
- import '@alifd/next/es/checkbox/style';
17
- import '@alifd/next/es/loading/style';
18
- import '@alifd/next/es/upload/style';
19
- import '@alifd/next/es/icon/style';
20
- import '@alifd/next/es/input/style';
21
- import '@alifd/next/es/field/style';
22
- import '@alifd/next/es/form/style';
23
- import '@alifd/next/es/number-picker/style';
24
- import '@alifd/next/es/select/style';
25
- import '@riil-frontend/component-riil-rule-tree/es/style';
26
- import '@alifd/next/es/balloon/style';
27
- import '@alifd/next/es/grid/style';
28
- import '@riil-frontend/component-action-tree/es/style';
29
- import '@riil-frontend/hooks/es/style';
30
- import '@riil-frontend/component-extra-title/es/style';
31
- import '@riil-frontend/next-collapse/es/style';
32
- import '@riil-frontend/component-row-delete-ballon/es/style';
33
- import '@alifd/next/es/box/style';
34
- import '@alifd/next/es/menu-button/style';
35
- import '@alifd/next/es/dropdown/style';
36
- import '@alifd/next/es/menu/style';
37
- import '@alifd/next/es/tab/style';
38
- import '@alifd/next/es/radio/style';
39
- import '@alifd/next/es/collapse/style';
40
- import '@alifd/next/es/list/style';
41
- import '@alifd/next/es/avatar/style';
42
- import '@riil-frontend/component-topology-utils/es/style';
1
+
2
+ import '@alifd/next/lib/dialog/style';
3
+ import '@alifd/next/lib/message/style';
4
+ import '@alifd/next/lib/drawer/style';
5
+ import '@alifd/next/lib/button/style';
6
+ import '@alifd/next/lib/table/style';
7
+ import '@alifd/next/lib/search/style';
8
+ import '@alifd/next/lib/card/style';
9
+ import '@alifd/next/lib/checkbox/style';
10
+ import '@alifd/next/lib/loading/style';
11
+ import '@alifd/next/lib/upload/style';
12
+ import '@alifd/next/lib/icon/style';
13
+ import '@alifd/next/lib/input/style';
14
+ import '@alifd/next/lib/field/style';
15
+ import '@alifd/next/lib/form/style';
16
+ import '@alifd/next/lib/number-picker/style';
17
+ import '@alifd/next/lib/select/style';
18
+ import '@alifd/next/lib/balloon/style';
19
+ import '@alifd/next/lib/grid/style';
20
+ import '@alifd/next/lib/box/style';
21
+ import '@alifd/next/lib/menu-button/style';
22
+ import '@alifd/next/lib/dropdown/style';
23
+ import '@alifd/next/lib/menu/style';
24
+ import '@alifd/next/lib/tab/style';
25
+ import '@alifd/next/lib/radio/style';
26
+ import '@alifd/next/lib/collapse/style';
27
+ import '@alifd/next/lib/list/style';
28
+ import '@alifd/next/lib/tree-select/style';
29
+ import '@alifd/next/lib/avatar/style';
30
+
43
31
  import './index.scss';
@@ -1,7 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
- import _Message from "@alifd/next/es/message";
2
+ import _Message from "@alifd/next/lib/message";
3
3
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
4
- import _Dialog from "@alifd/next/es/dialog";
4
+ import _Dialog from "@alifd/next/lib/dialog";
5
5
  import _regeneratorRuntime from "@babel/runtime/regenerator";
6
6
  import React, { useState, useEffect, useRef, useCallback } from 'react';
7
7
  import Topo from "../../core/components/TopoView/Topo";
@@ -2,5 +2,5 @@ import TopologyViewer from "./components/TopologyViewer";
2
2
  import TitleBar from "./components/TitleBar";
3
3
  import TitleWidget from "../../core/components/titlebar/widgets/TitleWidget";
4
4
  export * from "./createTopoViewer";
5
- export { TopologyViewer, TitleBar, // widgets
6
- TitleWidget };
5
+ export { TopologyViewer, TitleBar // widgets
6
+ , TitleWidget };
@@ -11,5 +11,5 @@ export function isEdge(element) {
11
11
  return element.className === 'ht.Edge';
12
12
  }
13
13
  export function isText(element) {
14
- return element.className === 'ht.Node' && element.attrObject.isText;
14
+ return element.className === 'ht.Text' && element.attrObject.isText;
15
15
  }
@@ -4,7 +4,7 @@ import { isAvailableArray } from '@riil-frontend/utils';
4
4
  import _ from 'lodash';
5
5
  import topoPermissionUtil from "./topoPermissionUtil";
6
6
  import buildViewerContextMenu from "../core/viewer/contextmenu/buildContextmenu";
7
- import buildEditorContextMenu from "../core/editor/buildContextmenu";
7
+ import buildEditorContextMenu from "../core/editor/contextmenu/buildContextmenu";
8
8
  import { getDefaultNodeIcon as _getDefaultNodeIcon } from "./topoIconUtil";
9
9
  import mergeContextmenu from "../core/common/contextmenu/mergeContextmenu";
10
10
  /**
package/es/utils/tree.js CHANGED
@@ -129,7 +129,7 @@ export var treeNodeCount = function treeNodeCount(data) {
129
129
  children = item.children;
130
130
  var count = 0;
131
131
 
132
- if (type === 0 && children !== null && children !== void 0 && children.length) {
132
+ if (children !== null && children !== void 0 && children.length) {
133
133
  loopTreeFun(children, function (item) {
134
134
  if (item.type === 1) {
135
135
  count++;
@@ -2,6 +2,8 @@
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
4
 
5
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
6
+
5
7
  exports.__esModule = true;
6
8
  exports["default"] = void 0;
7
9
 
@@ -17,10 +19,6 @@ var _ResourceTableModule = _interopRequireDefault(require("./ResourceTable.modul
17
19
 
18
20
  var _excluded = ["selectionMode", "defaultSelected", "disabledKeys", "typeDicts", "getTableData"];
19
21
 
20
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
21
-
22
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
23
-
24
22
  function ResourceTable(props, ref) {
25
23
  var selectionMode = props.selectionMode,
26
24
  _props$defaultSelecte = props.defaultSelected,
@@ -2,6 +2,8 @@
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
4
 
5
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
6
+
5
7
  exports.__esModule = true;
6
8
  exports["default"] = void 0;
7
9
 
@@ -26,10 +28,6 @@ var _constant = require("./constant");
26
28
  var _excluded = ["saveCb"],
27
29
  _excluded2 = ["drawerTitle", "drawerWidth"];
28
30
 
29
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
30
-
31
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
32
-
33
31
  /**
34
32
  * 属性指标配置抽屉
35
33
  */
@@ -2,6 +2,8 @@
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
4
 
5
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
6
+
5
7
  exports.__esModule = true;
6
8
  exports["default"] = void 0;
7
9
 
@@ -35,10 +37,6 @@ var _indexModule = _interopRequireDefault(require("./index.module.scss"));
35
37
 
36
38
  var _excluded = ["defaultSet", "dataType"];
37
39
 
38
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
39
-
40
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
41
-
42
40
  var Setting = function Setting(_ref) {
43
41
  var _allCiSet$ciType;
44
42
 
@@ -44,7 +44,8 @@ var Drawer = function Drawer(props) {
44
44
  width: "40%",
45
45
  headerStyle: headerStyle,
46
46
  bodyStyle: bodyStyle,
47
- closeMode: ['close', 'esc']
47
+ closeMode: ['close', 'esc'],
48
+ className: _indexModule["default"].drawer
48
49
  }, drawerProps, {
49
50
  visible: visible,
50
51
  onClose: onClose
@@ -1,3 +1,16 @@
1
+ .drawer {
2
+ & > div {
3
+ display: flex;
4
+ }
5
+
6
+ :global {
7
+ .next-drawer-body {
8
+ flex: 1;
9
+ }
10
+ }
11
+ }
12
+
13
+
1
14
  .footer {
2
15
  position: absolute;
3
16
  bottom: 0;
@@ -1,5 +1,7 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
4
+
3
5
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
6
 
5
7
  exports.__esModule = true;
@@ -15,10 +17,6 @@ var _NoDataPage = _interopRequireDefault(require("@riil-frontend/component-topol
15
17
 
16
18
  var _table2 = require("@riil-frontend/component-topology-utils/es/utils/table");
17
19
 
18
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
19
-
20
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
21
-
22
20
  // import styles from './index.module.scss';
23
21
  var TYPES_NAME = {
24
22
  attributes: '属性',
@@ -1,5 +1,7 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
4
+
3
5
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
6
 
5
7
  exports.__esModule = true;
@@ -21,10 +23,6 @@ var _IndexList = _interopRequireDefault(require("./IndexList"));
21
23
 
22
24
  var _indexModule = _interopRequireDefault(require("./index.module.scss"));
23
25
 
24
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
25
-
26
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
27
-
28
26
  var IndexSettingDrawer = function IndexSettingDrawer(props) {
29
27
  var visible = props.visible,
30
28
  initialData = props.initialData,
@@ -2,6 +2,8 @@
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
4
 
5
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
6
+
5
7
  exports.__esModule = true;
6
8
  exports["default"] = void 0;
7
9
 
@@ -31,10 +33,6 @@ var _indexModule = _interopRequireDefault(require("./index.module.scss"));
31
33
 
32
34
  var _excluded = ["isAddMode", "link"];
33
35
 
34
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
35
-
36
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
37
-
38
36
  var mainDs = function mainDs(mainList) {
39
37
  if ((0, _utils.isAvailableArray)(mainList)) {
40
38
  return mainList.map(function (_ref) {
@@ -2,6 +2,8 @@
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
4
 
5
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
6
+
5
7
  exports.__esModule = true;
6
8
  exports.useSubs = exports.useSave = void 0;
7
9
 
@@ -23,10 +25,6 @@ var _utils = require("@riil-frontend/utils");
23
25
 
24
26
  var _excluded = ["run"];
25
27
 
26
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
27
-
28
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
29
-
30
28
  function queryCiWithComponents(ids) {
31
29
  if (!(0, _utils.isAvailableArray)(ids)) {
32
30
  return [];