@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.
Files changed (61) hide show
  1. package/build/1.js +2 -2
  2. package/build/2.js +2 -2
  3. package/build/index.css +1 -1
  4. package/build/index.js +40 -40
  5. package/es/components/LayoutDirectionSelect/Item.js +11 -0
  6. package/es/components/LayoutDirectionSelect/Item.module.scss +9 -0
  7. package/es/components/LayoutDirectionSelect/LayoutDirectionSelect.js +48 -0
  8. package/es/components/LayoutDirectionSelect/LayoutDirectionSelect.module.scss +4 -0
  9. package/es/components/LayoutDirectionSelect/index.js +2 -0
  10. package/es/components/LayoutSelect/LayoutSelect.js +46 -0
  11. package/es/components/LayoutSelect/LayoutSelect.module.scss +4 -0
  12. package/es/components/LayoutSelect/README.md +1 -0
  13. package/es/components/LayoutSelect/index.js +2 -0
  14. package/es/components/{TemplateSelect → TagImageSelect}/index.js +6 -23
  15. package/es/components/{TemplateGroup → TagImageSelect}/index.module.scss +0 -0
  16. package/es/components/TagSelect/index.js +2 -2
  17. package/es/components/TagSelect/index.scss +0 -4
  18. package/es/components/TemplateButton/Icon.js +2 -1
  19. package/es/components/TemplateButton/assets/index.js +1 -5
  20. package/es/components/TemplateButton/index.js +7 -15
  21. package/es/core/editor/components/settings/common/LayoutSettings.js +1 -1
  22. package/es/core/models/utils/linkUtils.js +2 -2
  23. package/es/core/viewer/components/titlebar/ViewerTools.js +5 -1
  24. package/es/core/viewer/components/titlebar/useSetDefaultTopo.js +30 -0
  25. package/es/models/topoMod.js +3 -2
  26. package/es/style.js +1 -1
  27. package/es/topoCenter/store/topoTreeMod.js +4 -26
  28. package/es/utils/tree.js +19 -0
  29. package/lib/components/LayoutDirectionSelect/Item.js +25 -0
  30. package/lib/components/LayoutDirectionSelect/Item.module.scss +9 -0
  31. package/lib/components/LayoutDirectionSelect/LayoutDirectionSelect.js +64 -0
  32. package/lib/components/LayoutDirectionSelect/LayoutDirectionSelect.module.scss +4 -0
  33. package/lib/components/LayoutDirectionSelect/index.js +11 -0
  34. package/lib/components/LayoutSelect/LayoutSelect.js +61 -0
  35. package/lib/components/LayoutSelect/LayoutSelect.module.scss +4 -0
  36. package/lib/components/LayoutSelect/README.md +1 -0
  37. package/lib/components/LayoutSelect/index.js +11 -0
  38. package/lib/components/{TemplateSelect → TagImageSelect}/index.js +6 -27
  39. package/{es/components/TemplateSelect → lib/components/TagImageSelect}/index.module.scss +0 -0
  40. package/lib/components/TagSelect/index.js +2 -2
  41. package/lib/components/TagSelect/index.scss +0 -4
  42. package/lib/components/TemplateButton/Icon.js +2 -1
  43. package/lib/components/TemplateButton/assets/index.js +0 -6
  44. package/lib/components/TemplateButton/index.js +7 -15
  45. package/lib/core/editor/components/settings/common/LayoutSettings.js +2 -2
  46. package/lib/core/models/utils/linkUtils.js +2 -2
  47. package/lib/core/viewer/components/titlebar/ViewerTools.js +6 -1
  48. package/lib/core/viewer/components/titlebar/useSetDefaultTopo.js +40 -0
  49. package/lib/models/topoMod.js +3 -2
  50. package/lib/style.js +1 -1
  51. package/lib/topoCenter/store/topoTreeMod.js +3 -25
  52. package/lib/utils/tree.js +21 -0
  53. package/package.json +7 -6
  54. package/es/components/TemplateButton/assets/topo_tpl_blank.svg +0 -9
  55. package/es/components/TemplateButton/assets/topo_tpl_region.svg +0 -14
  56. package/es/components/TemplateGroup/index.js +0 -28
  57. package/lib/components/TemplateButton/assets/topo_tpl_blank.svg +0 -9
  58. package/lib/components/TemplateButton/assets/topo_tpl_region.svg +0 -14
  59. package/lib/components/TemplateGroup/index.js +0 -40
  60. package/lib/components/TemplateGroup/index.module.scss +0 -3
  61. 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;
@@ -1,3 +0,0 @@
1
- .name {
2
- margin: 20px 0 0 10px;
3
- }
@@ -1,3 +0,0 @@
1
- .name {
2
- margin: 20px 0 0 10px;
3
- }