@riil-frontend/component-topology 2.7.5 → 2.10.0-alpha-2
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 +2 -2
- package/build/index.css +1 -1
- package/build/index.js +40 -40
- package/es/components/LayoutDirectionSelect/Item.js +11 -0
- package/es/components/LayoutDirectionSelect/Item.module.scss +9 -0
- package/es/components/LayoutDirectionSelect/LayoutDirectionSelect.js +48 -0
- package/es/components/LayoutDirectionSelect/LayoutDirectionSelect.module.scss +4 -0
- package/es/components/LayoutDirectionSelect/index.js +2 -0
- package/es/components/LayoutSelect/LayoutSelect.js +46 -0
- package/es/components/LayoutSelect/LayoutSelect.module.scss +4 -0
- package/es/components/LayoutSelect/README.md +1 -0
- package/es/components/LayoutSelect/index.js +2 -0
- package/es/components/{TemplateSelect → TagImageSelect}/index.js +6 -23
- package/es/components/{TemplateGroup → TagImageSelect}/index.module.scss +0 -0
- package/es/components/TagSelect/index.js +2 -2
- package/es/components/TagSelect/index.scss +0 -4
- package/es/components/TemplateButton/Icon.js +2 -1
- package/es/components/TemplateButton/assets/index.js +1 -5
- package/es/components/TemplateButton/index.js +7 -15
- package/es/core/editor/components/settings/common/LayoutSettings.js +1 -1
- package/es/core/models/utils/linkUtils.js +2 -2
- package/es/core/viewer/components/titlebar/ViewerTools.js +5 -1
- package/es/core/viewer/components/titlebar/useSetDefaultTopo.js +30 -0
- package/es/models/topoMod.js +3 -2
- package/es/style.js +1 -1
- package/es/topoCenter/store/topoTreeMod.js +4 -26
- package/es/utils/tree.js +19 -0
- package/lib/components/LayoutDirectionSelect/Item.js +25 -0
- package/lib/components/LayoutDirectionSelect/Item.module.scss +9 -0
- package/lib/components/LayoutDirectionSelect/LayoutDirectionSelect.js +64 -0
- package/lib/components/LayoutDirectionSelect/LayoutDirectionSelect.module.scss +4 -0
- package/lib/components/LayoutDirectionSelect/index.js +11 -0
- package/lib/components/LayoutSelect/LayoutSelect.js +61 -0
- package/lib/components/LayoutSelect/LayoutSelect.module.scss +4 -0
- package/lib/components/LayoutSelect/README.md +1 -0
- package/lib/components/LayoutSelect/index.js +11 -0
- package/lib/components/{TemplateSelect → TagImageSelect}/index.js +6 -27
- package/{es/components/TemplateSelect → lib/components/TagImageSelect}/index.module.scss +0 -0
- package/lib/components/TagSelect/index.js +2 -2
- package/lib/components/TagSelect/index.scss +0 -4
- package/lib/components/TemplateButton/Icon.js +2 -1
- package/lib/components/TemplateButton/assets/index.js +0 -6
- package/lib/components/TemplateButton/index.js +7 -15
- package/lib/core/editor/components/settings/common/LayoutSettings.js +2 -2
- package/lib/core/models/utils/linkUtils.js +2 -2
- package/lib/core/viewer/components/titlebar/ViewerTools.js +6 -1
- package/lib/core/viewer/components/titlebar/useSetDefaultTopo.js +40 -0
- package/lib/models/topoMod.js +3 -2
- package/lib/style.js +1 -1
- package/lib/topoCenter/store/topoTreeMod.js +3 -25
- package/lib/utils/tree.js +21 -0
- package/package.json +7 -6
- package/es/components/TemplateButton/assets/topo_tpl_blank.svg +0 -9
- package/es/components/TemplateButton/assets/topo_tpl_region.svg +0 -14
- package/es/components/TemplateGroup/index.js +0 -28
- package/lib/components/TemplateButton/assets/topo_tpl_blank.svg +0 -9
- package/lib/components/TemplateButton/assets/topo_tpl_region.svg +0 -14
- package/lib/components/TemplateGroup/index.js +0 -40
- package/lib/components/TemplateGroup/index.module.scss +0 -3
- package/lib/components/TemplateSelect/index.module.scss +0 -3
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
|
-
exports.__esModule = true;
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
|
|
8
|
-
var _box = _interopRequireDefault(require("@alifd/next/lib/box"));
|
|
9
|
-
|
|
10
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
|
-
|
|
12
|
-
var _react = _interopRequireDefault(require("react"));
|
|
13
|
-
|
|
14
|
-
var _TemplateButton = _interopRequireDefault(require("../TemplateButton"));
|
|
15
|
-
|
|
16
|
-
var _indexModule = _interopRequireDefault(require("./index.module.scss"));
|
|
17
|
-
|
|
18
|
-
var TemplateGroup = function TemplateGroup(props) {
|
|
19
|
-
var name = props.name,
|
|
20
|
-
_props$data = props.data,
|
|
21
|
-
data = _props$data === void 0 ? [] : _props$data,
|
|
22
|
-
size = props.size,
|
|
23
|
-
_props$itemProps = props.itemProps,
|
|
24
|
-
itemProps = _props$itemProps === void 0 ? {} : _props$itemProps;
|
|
25
|
-
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, name && /*#__PURE__*/_react["default"].createElement("div", {
|
|
26
|
-
className: _indexModule["default"].name
|
|
27
|
-
}, name), /*#__PURE__*/_react["default"].createElement(_box["default"], {
|
|
28
|
-
direction: "row",
|
|
29
|
-
spacing: 32
|
|
30
|
-
}, data.map(function (item) {
|
|
31
|
-
return /*#__PURE__*/_react["default"].createElement(_TemplateButton["default"], (0, _extends2["default"])({
|
|
32
|
-
key: item.id
|
|
33
|
-
}, item, {
|
|
34
|
-
size: size
|
|
35
|
-
}, itemProps), item.name);
|
|
36
|
-
})));
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
var _default = TemplateGroup;
|
|
40
|
-
exports["default"] = _default;
|