@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.
- package/build/1.js +2 -2
- package/build/2.js +1 -1
- package/build/index.css +2 -2
- package/build/index.js +28 -28
- 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
- package/es/components/BatchAttrMetric/index.js +1 -1
- package/es/components/BatchAttrMetric/setting.js +4 -4
- package/es/components/BatchAttrMetric/utils.js +2 -2
- package/es/components/Drawer/index.js +4 -3
- package/es/components/Drawer/index.module.scss +13 -0
- package/es/components/FormTable/index.js +3 -3
- package/es/components/IndexSettingDrawer/CiList.js +1 -1
- package/es/components/IndexSettingDrawer/CiListItem.js +1 -1
- package/es/components/IndexSettingDrawer/IndexList.js +1 -1
- package/es/components/IndexSettingDrawer/index.js +1 -1
- package/es/components/Link/form.js +6 -6
- package/es/components/Link/index.js +2 -2
- package/es/components/Link/setting.js +4 -4
- package/es/components/MultiResourceDrawer/Content.js +1 -1
- package/es/components/MultiResourceDrawer/ResourceCard/index.js +2 -2
- package/es/components/ResourceList/ResourceSelect.js +3 -2
- package/es/components/ResourceList/ResourceSelect.module.scss +7 -0
- package/es/components/ResourceSelect/ResourceSelectDrawer.js +3 -1
- package/es/components/SingleResourceDrawer/index.js +1 -1
- package/es/core/{editor/components/settings/group/GroupNodeList → common}/icons/defaultIcons.d.ts +15 -0
- package/es/core/{editor/components/settings/group/GroupNodeList → common}/icons/defaultIcons.js +62 -0
- package/es/core/common/text.module.scss +5 -0
- package/es/core/components/TopoView/Topo.js +0 -6
- package/es/core/components/TopoView/TopoContent.js +1 -1
- package/es/core/editor/components/EditorPlugin.js +1 -1
- package/es/core/editor/components/LinkDynamicStyleSettingDrawer/RuleSetting.js +2 -2
- package/es/core/editor/components/LinkDynamicStyleSettingDrawer/rule/ColorPicker.js +1 -1
- package/es/core/editor/components/LinkDynamicStyleSettingDrawer/rule/ColorPicker.module.scss +7 -3
- package/es/core/editor/components/LinkDynamicStyleSettingDrawer/rule/Rule.js +1 -1
- package/es/core/editor/components/LinkDynamicStyleSettingDrawer/rule/RuleCondition.js +2 -2
- package/es/core/editor/components/LinkDynamicStyleSettingDrawer/rule/RuleStyle.js +4 -4
- package/es/core/editor/components/iconManage/RenameDialog.js +4 -4
- package/es/core/editor/components/iconManage/UploadIconDialog.js +6 -6
- package/es/core/editor/components/settings/README.md +2 -0
- package/es/core/editor/components/settings/Settings.js +47 -42
- package/es/core/editor/components/settings/Settings.module.scss +6 -1
- package/es/core/editor/components/settings/SettingsForm.js +2 -2
- package/es/core/editor/components/settings/Style.js +7 -7
- package/es/core/editor/components/settings/common/LayoutSettings.js +1 -1
- package/es/core/editor/components/settings/common/LineType.js +2 -2
- package/es/core/editor/components/settings/common/NodeAlignType.js +2 -2
- package/es/core/editor/components/settings/common/{NodeSizeInput.d.ts → NodeSizeInput/NodeSizeInput.d.ts} +0 -0
- package/es/core/editor/components/settings/common/{NodeSizeInput.js → NodeSizeInput/NodeSizeInput.js} +6 -4
- package/es/core/editor/components/settings/common/NodeSizeInput/img/icon_/350/247/243/351/224/201.svg +16 -0
- package/es/core/editor/components/settings/common/NodeSizeInput/img/icon_/351/224/201.svg +15 -0
- package/es/core/editor/components/settings/common/text/FontStyleCheckbox.d.ts +1 -0
- package/es/core/editor/components/settings/common/text/FontStyleCheckbox.js +50 -0
- package/es/core/editor/components/settings/common/text/FontStyleCheckbox.module.scss +31 -0
- package/es/core/editor/components/settings/common/text/TextStyle.d.ts +1 -0
- package/es/core/editor/components/settings/common/text/TextStyle.js +133 -0
- package/es/core/editor/components/settings/common/text/fontStyleUtil.d.ts +19 -0
- package/es/core/editor/components/settings/common/text/fontStyleUtil.js +53 -0
- package/es/core/editor/components/settings/common/text/img/bold.svg +12 -0
- package/es/core/editor/components/settings/common/text/img/italics.svg +10 -0
- package/es/core/editor/components/settings/common/text/img/underline.svg +12 -0
- package/es/core/editor/components/settings/group/GroupNodeList/ResourceList.js +23 -7
- package/es/core/editor/components/settings/group/GroupNodeList/ResourceList.module.scss +16 -0
- package/es/core/editor/components/settings/group/GroupNodeList/ResourceSelectButton.js +1 -1
- package/es/core/editor/components/settings/group/GroupNodeList/icon.d.ts +10 -0
- package/es/core/editor/components/settings/group/GroupNodeList/icon.js +20 -1
- package/es/core/editor/components/settings/layer/LayerSettingsForm.js +8 -8
- package/es/core/editor/components/settings/link/LinkPropertyView.js +8 -8
- package/es/core/editor/components/settings/node/NodeIconSelect.d.ts +1 -0
- package/es/core/editor/components/settings/node/NodeIconSelect.js +42 -0
- package/es/core/editor/components/settings/node/NodePropertyView.d.ts +1 -1
- package/es/core/editor/components/settings/node/NodePropertyView.js +128 -133
- package/es/core/editor/components/settings/node/NodeRelateResourceButton.d.ts +4 -0
- package/es/core/editor/components/settings/node/NodeRelateResourceButton.js +22 -0
- package/es/core/editor/components/settings/node/TopoTreeSelect.d.ts +1 -0
- package/es/core/editor/components/settings/node/TopoTreeSelect.js +40 -0
- package/es/core/editor/components/settings/text/TextPropertyView.js +32 -146
- package/es/core/editor/components/settings/view/ViewPropertyView.js +7 -7
- package/es/core/editor/components/titlebar/TopoEditorTitleBar.js +3 -4
- package/es/core/editor/{buildContextmenu.d.ts → contextmenu/buildContextmenu.d.ts} +1 -4
- package/es/core/editor/contextmenu/buildContextmenu.js +10 -0
- package/es/core/models/plugins/resourceWebControllUrl.js +1 -1
- package/es/core/utils/showMessage.js +1 -1
- package/es/core/viewer/components/plugins/ResourceDetail/topoDrawer.js +3 -3
- package/es/core/viewer/components/plugins/ResourceWebControllUrlSettingDialog.js +5 -5
- package/es/core/viewer/components/titlebar/TopoViewerTitleBar.js +1 -1
- package/es/core/viewer/components/titlebar/ViewerTools.js +4 -4
- package/es/core/viewer/components/titlebar/widgets/EditButton.js +1 -1
- package/es/core/viewer/components/titlebar/widgets/SearchWidget.js +1 -1
- package/es/hooks/usePolling.js +0 -1
- package/es/hooks/useSelection.js +9 -3
- package/es/hooks/useTopoEdit.js +2 -2
- package/es/models/iconManage.js +2 -2
- package/es/models/linkDynamicStyleConfig.js +1 -1
- package/es/models/topoBizMod.js +1 -1
- package/es/plugins/useSelectionPlugin.d.ts +23 -0
- package/es/plugins/useSelectionPlugin.js +84 -0
- package/es/style.js +30 -42
- package/es/topoCenter/components/Topology.js +2 -2
- package/es/topoCenter/viewer/index.js +2 -2
- package/es/utils/htElementDataUtil.js +1 -1
- package/es/utils/topoData.js +1 -1
- package/es/utils/tree.js +1 -1
- package/lib/common/components/ResourceTable/ResourceTable.js +2 -4
- package/lib/components/BatchAttrMetric/index.js +2 -4
- package/lib/components/BatchAttrMetric/setting.js +2 -4
- package/lib/components/Drawer/index.js +2 -1
- package/lib/components/Drawer/index.module.scss +13 -0
- package/lib/components/IndexSettingDrawer/IndexList.js +2 -4
- package/lib/components/IndexSettingDrawer/index.js +2 -4
- package/lib/components/Link/form.js +2 -4
- package/lib/components/Link/hook.js +2 -4
- package/lib/components/Link/index.js +2 -4
- package/lib/components/Link/setting.js +2 -4
- package/lib/components/MultiResourceDrawer/Content.js +2 -4
- package/lib/components/MultiResourceDrawer/index.js +2 -4
- package/lib/components/ResourceList/ResourceSelect.js +5 -5
- package/lib/components/ResourceList/ResourceSelect.module.scss +7 -0
- package/lib/components/ResourceList/ResourceSelectConnect.js +2 -4
- package/lib/components/ResourceSelect/DefaultResourceSelectDrawer.js +2 -4
- package/lib/components/ResourceSelect/ResourceSelectDrawer.js +5 -5
- package/lib/components/SingleResourceDrawer/index.js +2 -4
- package/lib/core/{editor/components/settings/group/GroupNodeList → common}/icons/defaultIcons.d.ts +15 -0
- package/lib/core/{editor/components/settings/group/GroupNodeList → common}/icons/defaultIcons.js +68 -1
- package/lib/core/common/text.module.scss +5 -0
- package/lib/core/components/TopoApp.js +2 -4
- package/lib/core/components/TopoAppProvider.js +2 -4
- package/lib/core/components/TopoAppView.js +2 -4
- package/lib/core/components/TopoView/Topo.js +2 -16
- package/lib/core/components/TopoView/Topo404.js +2 -4
- package/lib/core/components/TopoView/TopoContent.js +2 -4
- package/lib/core/components/TopoView/TopoNoPermission.js +2 -4
- package/lib/core/components/TopoView/topoView.js +2 -4
- package/lib/core/components/buildProvider.js +2 -4
- package/lib/core/components/titlebar/TitleBar.js +2 -4
- package/lib/core/components/titlebar/widgets/TitleWidget.js +2 -4
- package/lib/core/editor/components/LinkDynamicStyleSettingDrawer/RuleSetting.js +2 -4
- package/lib/core/editor/components/LinkDynamicStyleSettingDrawer/index.js +2 -4
- package/lib/core/editor/components/LinkDynamicStyleSettingDrawer/rule/ColorPicker.js +2 -4
- package/lib/core/editor/components/LinkDynamicStyleSettingDrawer/rule/ColorPicker.module.scss +7 -3
- package/lib/core/editor/components/LinkDynamicStyleSettingDrawer/rule/RuleCondition.js +2 -4
- package/lib/core/editor/components/LinkDynamicStyleSettingDrawer/rule/RuleStyle.js +2 -4
- package/lib/core/editor/components/ResourceViewAttributeSetting/ResourceViewAttributeSettingPlugin.js +2 -4
- package/lib/core/editor/components/ResourceViewAttributeSetting/Setting.js +2 -4
- package/lib/core/editor/components/iconManage/IconManage.js +2 -4
- package/lib/core/editor/components/iconManage/RenameDialog.js +2 -4
- package/lib/core/editor/components/iconManage/UploadIconDialog.js +2 -2
- package/lib/core/editor/components/iconManage/UploadIconDialogWrapper.js +2 -4
- package/lib/core/editor/components/settings/README.md +2 -0
- package/lib/core/editor/components/settings/Settings.js +45 -44
- package/lib/core/editor/components/settings/Settings.module.scss +6 -1
- package/lib/core/editor/components/settings/SettingsForm.js +2 -4
- package/lib/core/editor/components/settings/Style.js +2 -4
- package/lib/core/editor/components/settings/common/LayoutSettings.js +2 -4
- package/lib/core/editor/components/settings/common/LineType.js +2 -4
- package/lib/core/editor/components/settings/common/NodeAlignType.js +2 -4
- package/lib/core/editor/components/settings/common/{NodeSizeInput.d.ts → NodeSizeInput/NodeSizeInput.d.ts} +0 -0
- package/lib/core/editor/components/settings/common/{NodeSizeInput.js → NodeSizeInput/NodeSizeInput.js} +4 -4
- package/lib/core/editor/components/settings/common/NodeSizeInput/img/icon_/350/247/243/351/224/201.svg +16 -0
- package/lib/core/editor/components/settings/common/NodeSizeInput/img/icon_/351/224/201.svg +15 -0
- package/lib/core/editor/components/settings/common/text/FontStyleCheckbox.d.ts +1 -0
- package/lib/core/editor/components/settings/common/text/FontStyleCheckbox.js +68 -0
- package/lib/core/editor/components/settings/common/text/FontStyleCheckbox.module.scss +31 -0
- package/lib/core/editor/components/settings/common/text/TextStyle.d.ts +1 -0
- package/lib/core/editor/components/settings/common/text/TextStyle.js +150 -0
- package/lib/core/editor/components/settings/common/text/fontStyleUtil.d.ts +19 -0
- package/lib/core/editor/components/settings/common/text/fontStyleUtil.js +58 -0
- package/lib/core/editor/components/settings/common/text/img/bold.svg +12 -0
- package/lib/core/editor/components/settings/common/text/img/italics.svg +10 -0
- package/lib/core/editor/components/settings/common/text/img/underline.svg +12 -0
- package/lib/core/editor/components/settings/group/GroupNodeList/GroupNodeList.js +2 -4
- package/lib/core/editor/components/settings/group/GroupNodeList/ResourceList.js +24 -11
- package/lib/core/editor/components/settings/group/GroupNodeList/ResourceList.module.scss +16 -0
- package/lib/core/editor/components/settings/group/GroupNodeList/ResourceSelectButton.js +2 -4
- package/lib/core/editor/components/settings/group/GroupNodeList/icon.d.ts +10 -0
- package/lib/core/editor/components/settings/group/GroupNodeList/icon.js +23 -1
- package/lib/core/editor/components/settings/layer/LayerSettingsForm.js +2 -4
- package/lib/core/editor/components/settings/link/LinkPropertyView.js +2 -4
- package/lib/core/editor/components/settings/node/NodeIconSelect.d.ts +1 -0
- package/lib/core/editor/components/settings/node/NodeIconSelect.js +57 -0
- package/lib/core/editor/components/settings/node/NodePropertyView.d.ts +1 -1
- package/lib/core/editor/components/settings/node/NodePropertyView.js +127 -131
- package/lib/core/editor/components/settings/node/NodeRelateResourceButton.d.ts +4 -0
- package/lib/core/editor/components/settings/node/NodeRelateResourceButton.js +31 -0
- package/lib/core/editor/components/settings/node/TopoTreeSelect.d.ts +1 -0
- package/lib/core/editor/components/settings/node/TopoTreeSelect.js +53 -0
- package/lib/core/editor/components/settings/text/TextPropertyView.js +31 -153
- package/lib/core/editor/components/settings/view/ViewPropertyView.js +3 -5
- package/lib/core/editor/components/titlebar/TopoEditorTitleBar.js +4 -7
- package/lib/core/editor/components/titlebar/widgets/SaveButton.js +2 -4
- package/lib/core/editor/{buildContextmenu.d.ts → contextmenu/buildContextmenu.d.ts} +1 -4
- package/lib/core/editor/{buildContextmenu.js → contextmenu/buildContextmenu.js} +3 -7
- package/lib/core/models/cache/DictCache.js +2 -4
- package/lib/core/viewer/components/plugins/ResourceDetail/ResourceDetailDrawerPlugin.js +2 -4
- package/lib/core/viewer/components/plugins/ResourceDetail/topoDrawer.js +2 -4
- package/lib/core/viewer/components/plugins/ResourceWebControllUrlSettingDialog.js +2 -4
- package/lib/core/viewer/components/titlebar/TopoViewerTitleBar.js +2 -4
- package/lib/core/viewer/components/titlebar/ViewerTools.js +2 -4
- package/lib/core/viewer/components/titlebar/widgets/EditButton.js +2 -4
- package/lib/core/viewer/components/titlebar/widgets/SearchWidget.js +2 -4
- package/lib/hooks/usePolling.js +0 -1
- package/lib/hooks/useSelection.js +9 -3
- package/lib/hooks/useTopoEdit.js +2 -4
- package/lib/models/topoBizMod.js +1 -1
- package/lib/models/topoCreateMod.js +2 -4
- package/lib/plugins/useSelectionPlugin.d.ts +23 -0
- package/lib/plugins/useSelectionPlugin.js +90 -0
- package/lib/style.js +3 -15
- package/lib/topoCenter/components/Topology.js +2 -4
- package/lib/topoCenter/viewer/components/TopologyViewer.js +2 -4
- package/lib/utils/htElementDataUtil.js +1 -1
- package/lib/utils/topoData.js +1 -1
- package/lib/utils/tree.js +1 -1
- package/package.json +6 -6
- package/es/core/editor/buildContextmenu.js +0 -14
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _Button from "@alifd/next/
|
|
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,4 +1,4 @@
|
|
|
1
|
-
import _Message from "@alifd/next/
|
|
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,6 +1,6 @@
|
|
|
1
|
-
import _Drawer from "@alifd/next/
|
|
2
|
-
import _Box from "@alifd/next/
|
|
3
|
-
import _Button from "@alifd/next/
|
|
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/
|
|
2
|
-
import _Loading from "@alifd/next/
|
|
3
|
-
import _Input from "@alifd/next/
|
|
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/
|
|
6
|
-
import _Form from "@alifd/next/
|
|
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/
|
|
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/
|
|
2
|
-
import _Menu from "@alifd/next/
|
|
3
|
-
import _Button from "@alifd/next/
|
|
4
|
-
import _Icon from "@alifd/next/
|
|
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/
|
|
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";
|
package/es/hooks/usePolling.js
CHANGED
package/es/hooks/useSelection.js
CHANGED
|
@@ -10,7 +10,9 @@ function getElementData(element) {
|
|
|
10
10
|
// 业务id
|
|
11
11
|
name: element.getName(),
|
|
12
12
|
attrObject: element.getAttrObject(),
|
|
13
|
-
|
|
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('
|
|
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
|
});
|
package/es/hooks/useTopoEdit.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import _Dialog from "@alifd/next/
|
|
2
|
-
import _Message from "@alifd/next/
|
|
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";
|
package/es/models/iconManage.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import _Message from "@alifd/next/
|
|
2
|
-
import _Dialog from "@alifd/next/
|
|
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/
|
|
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";
|
package/es/models/topoBizMod.js
CHANGED
|
@@ -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
|
-
|
|
2
|
-
import '@alifd/next/
|
|
3
|
-
import '@alifd/next/
|
|
4
|
-
import '@
|
|
5
|
-
import '@
|
|
6
|
-
import '@alifd/next/
|
|
7
|
-
import '@alifd/next/
|
|
8
|
-
import '@alifd/next/
|
|
9
|
-
import '@alifd/next/
|
|
10
|
-
import '@
|
|
11
|
-
import '@
|
|
12
|
-
import '@
|
|
13
|
-
import '@
|
|
14
|
-
import '@
|
|
15
|
-
import '@alifd/next/
|
|
16
|
-
import '@alifd/next/
|
|
17
|
-
import '@alifd/next/
|
|
18
|
-
import '@alifd/next/
|
|
19
|
-
import '@alifd/next/
|
|
20
|
-
import '@alifd/next/
|
|
21
|
-
import '@alifd/next/
|
|
22
|
-
import '@alifd/next/
|
|
23
|
-
import '@alifd/next/
|
|
24
|
-
import '@alifd/next/
|
|
25
|
-
import '@
|
|
26
|
-
import '@alifd/next/
|
|
27
|
-
import '@alifd/next/
|
|
28
|
-
import '@
|
|
29
|
-
import '@
|
|
30
|
-
|
|
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/
|
|
2
|
+
import _Message from "@alifd/next/lib/message";
|
|
3
3
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
4
|
-
import _Dialog from "@alifd/next/
|
|
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
|
|
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.
|
|
14
|
+
return element.className === 'ht.Text' && element.attrObject.isText;
|
|
15
15
|
}
|
package/es/utils/topoData.js
CHANGED
|
@@ -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 (
|
|
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,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 [];
|