@luck-design-biz/luckda 0.0.25-6 → 0.0.25-8
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/es/components/LDActions/index.js +8 -10
- package/es/components/LDActions/index.less +7 -4
- package/es/components/LdAutoForm/index.js +26 -8
- package/es/components/LdFormList/index.js +37 -22
- package/es/components/LdGrid/index.js +14 -7
- package/es/components/LdGridForm/index.js +18 -6
- package/es/components/LdTree/index.js +33 -15
- package/es/helper/form.js +15 -8
- package/es/locales/zh-CN.js +16 -10
- package/es/lowcode/constants/api-url.js +120 -32
- package/es/lowcode/constants/event-topics.js +2 -0
- package/es/lowcode/engine/factory/panel-item-factory/SelectStrategy.js +4 -2
- package/es/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +4 -2
- package/es/lowcode/engine/meta/box.props.json +3 -3
- package/es/lowcode/engine/meta/button.props.json +3 -3
- package/es/lowcode/engine/meta/components-list.json +6 -0
- package/es/lowcode/engine/meta/dialog.props.default.json +10 -5
- package/es/lowcode/engine/meta/dialog.props.json +72 -42
- package/es/lowcode/engine/meta/drawer.props.json +8 -20
- package/es/lowcode/engine/meta/form.props.json +16 -10
- package/es/lowcode/engine/meta/imex.props.default.json +8 -1
- package/es/lowcode/engine/meta/imex.props.json +54 -22
- package/es/lowcode/engine/meta/js-editor/auto-complete.json +53 -3
- package/es/lowcode/engine/meta/layout.props.json +2 -2
- package/es/lowcode/engine/meta/page.props.json +2 -2
- package/es/lowcode/engine/meta/pagelayout.props.default.json +14 -0
- package/es/lowcode/engine/meta/pagelayout.props.json +47 -0
- package/es/lowcode/engine/meta/section.props.json +2 -2
- package/es/lowcode/engine/meta/split.props.default.json +1 -1
- package/es/lowcode/engine/meta/split.props.json +4 -4
- package/es/lowcode/engine/meta/table.props.json +17 -11
- package/es/lowcode/engine/meta/tabs.props.json +3 -3
- package/es/lowcode/engine/meta/tree.props.default.json +2 -0
- package/es/lowcode/engine/meta/tree.props.json +62 -6
- package/es/lowcode/engine/provider/ContextProvider/index.js +20 -43
- package/es/lowcode/engine/provider/RemoteSourceProvider.js +69 -24
- package/es/lowcode/engine/tools/dataProcess.js +4 -0
- package/es/lowcode/engine/tools/helper.js +2 -3
- package/es/lowcode/engine/tools/useCanvasRender.js +3 -2
- package/es/lowcode/engine/tools/usePageDataStore.js +176 -0
- package/es/lowcode/engine/tools/usePromiseState.js +12 -23
- package/es/lowcode/engine/tools/useTodo.js +20 -10
- package/es/lowcode/painter/DesignOperator.js +12 -23
- package/es/lowcode/painter/DesignToolbar.js +10 -45
- package/es/lowcode/painter/Outline.js +2 -4
- package/es/lowcode/painter/Panel.js +29 -28
- package/es/lowcode/painter/components/ActionBindModal.js +30 -24
- package/es/lowcode/painter/components/AdvancePanel.js +6 -1
- package/es/lowcode/painter/components/AttrsPanel.js +38 -29
- package/es/lowcode/painter/components/DragDrop/DragDropContext.js +1 -1
- package/es/lowcode/painter/components/code-editor/BaseEditor.js +3 -2
- package/es/lowcode/painter/components/field-setting/CheckFrontRules.js +108 -0
- package/es/lowcode/painter/components/field-setting/CheckRules.js +1 -26
- package/es/lowcode/painter/components/field-setting/FieldRulesModal.js +33 -13
- package/es/lowcode/painter/components/field-setting/SettingUI.js +162 -30
- package/es/lowcode/painter/components/field-setting/index.js +32 -63
- package/es/lowcode/painter/components/field-setting/meta/frontRules.js +53 -0
- package/es/lowcode/painter/panel-section/BlocksEditor/index.js +14 -17
- package/es/lowcode/painter/panel-section/ButtonType.js +4 -2
- package/es/lowcode/painter/panel-section/DataSetSelector.js +4 -1
- package/es/lowcode/painter/panel-section/FieldsSetting.js +53 -8
- package/es/lowcode/painter/panel-section/ImpExp.js +93 -6
- package/es/lowcode/painter/panel-section/ImpExpAlone.js +109 -0
- package/es/lowcode/painter/panel-section/PageLayoutDisplay.js +95 -0
- package/es/lowcode/painter/panel-section/SerialsSelector.js +4 -2
- package/es/lowcode/painter/panel-section/SplitDisplay.js +25 -110
- package/es/lowcode/painter/panel-section/StylePanel/index.js +10 -4
- package/es/lowcode/painter/panel-section/TreeRootEditor.js +2 -2
- package/es/lowcode/painter/style/action-bind-modal.less +3 -3
- package/es/lowcode/painter/style/design.less +1 -1
- package/es/lowcode/painter/style/page-layout-display.less +28 -0
- package/es/lowcode/painter/style/panel-item.less +1 -1
- package/es/lowcode/painter/style/split-display.less +0 -9
- package/es/lowcode/preview/index.js +4 -2
- package/es/lowcode/view/Canvas.js +6 -7
- package/es/lowcode/view/Page.js +2 -3
- package/es/lowcode/view/lc-components/Box/FunctionDesign.js +3 -2
- package/es/lowcode/view/lc-components/Box/meta.json +3 -3
- package/es/lowcode/view/lc-components/Button/index.js +2 -6
- package/es/lowcode/view/lc-components/Button/meta.json +3 -3
- package/es/lowcode/view/lc-components/Dialog/FunctionDesign.js +3 -10
- package/es/lowcode/view/lc-components/Dialog/index.js +114 -19
- package/es/lowcode/view/lc-components/Dialog/meta.json +65 -42
- package/es/lowcode/view/lc-components/Drawer/meta.json +8 -20
- package/es/lowcode/view/lc-components/Form/FunctionDesign.js +23 -33
- package/es/lowcode/view/lc-components/Form/FunctionPreview.js +8 -1
- package/es/lowcode/view/lc-components/Form/index.js +113 -21
- package/es/lowcode/view/lc-components/Form/meta.json +16 -10
- package/es/lowcode/view/lc-components/ImEx/FunctionDesign.js +8 -3
- package/es/lowcode/view/lc-components/ImEx/index.js +260 -10
- package/es/lowcode/view/lc-components/ImEx/index.less +7 -0
- package/es/lowcode/view/lc-components/ImEx/meta.json +55 -23
- package/es/lowcode/view/lc-components/Layout/FunctionDesign.js +12 -19
- package/es/lowcode/view/lc-components/Layout/meta.json +2 -2
- package/es/lowcode/view/lc-components/Page/meta.json +2 -2
- package/es/lowcode/view/lc-components/PageContent/index.js +8 -9
- package/es/lowcode/view/lc-components/PageFooter/index.js +2 -5
- package/es/lowcode/view/lc-components/PageHeader/index.js +5 -6
- package/es/lowcode/view/lc-components/PageLayout/FunctionDesign.js +63 -0
- package/es/lowcode/view/lc-components/PageLayout/FunctionLive.js +10 -0
- package/es/lowcode/view/lc-components/PageLayout/FunctionPreview.js +10 -0
- package/es/lowcode/view/lc-components/PageLayout/index.js +32 -0
- package/es/lowcode/view/lc-components/PageLayout/meta.json +47 -0
- package/es/lowcode/view/lc-components/PageModal/index.js +12 -15
- package/es/lowcode/view/lc-components/Section/FunctionDesign.js +3 -9
- package/es/lowcode/view/lc-components/Section/meta.json +2 -2
- package/es/lowcode/view/lc-components/Split/FunctionDesign.js +19 -20
- package/es/lowcode/view/lc-components/Split/index.js +5 -9
- package/es/lowcode/view/lc-components/Split/meta.json +4 -4
- package/es/lowcode/view/lc-components/Table/components/TopImex.js +138 -0
- package/es/lowcode/view/lc-components/Table/index.js +124 -39
- package/es/lowcode/view/lc-components/Table/meta.json +17 -11
- package/es/lowcode/view/lc-components/Tabs/FunctionDesign.js +10 -17
- package/es/lowcode/view/lc-components/Tabs/index.js +3 -1
- package/es/lowcode/view/lc-components/Tabs/meta.json +3 -3
- package/es/lowcode/view/lc-components/Tree/FunctionDesign.js +2 -1
- package/es/lowcode/view/lc-components/Tree/index.js +67 -18
- package/es/lowcode/view/lc-components/Tree/meta.json +62 -7
- package/es/lowcode/view/lc-components/Wrapper.js +9 -11
- package/es/services.js +0 -24
- package/es/upload/FilesWall/file.png +0 -0
- package/es/upload/FilesWall/index.js +422 -0
- package/es/upload/FilesWall/index.less +74 -0
- package/es/upload/Form/index.js +2 -1
- package/es/upload/FormItem/index.js +3 -5
- package/es/upload/index.js +2 -1
- package/es/utils/action.js +2 -2
- package/lib/components/LDActions/index.js +7 -9
- package/lib/components/LDActions/index.less +7 -4
- package/lib/components/LdAutoForm/index.js +25 -7
- package/lib/components/LdFormList/index.js +36 -21
- package/lib/components/LdGrid/index.js +14 -7
- package/lib/components/LdGridForm/index.js +16 -4
- package/lib/components/LdTree/index.js +33 -15
- package/lib/helper/form.js +14 -7
- package/lib/locales/zh-CN.js +16 -10
- package/lib/lowcode/constants/api-url.js +123 -32
- package/lib/lowcode/constants/event-topics.js +3 -1
- package/lib/lowcode/engine/factory/panel-item-factory/SelectStrategy.js +4 -2
- package/lib/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +4 -2
- package/lib/lowcode/engine/meta/box.props.json +3 -3
- package/lib/lowcode/engine/meta/button.props.json +3 -3
- package/lib/lowcode/engine/meta/components-list.json +6 -0
- package/lib/lowcode/engine/meta/dialog.props.default.json +10 -5
- package/lib/lowcode/engine/meta/dialog.props.json +72 -42
- package/lib/lowcode/engine/meta/drawer.props.json +8 -20
- package/lib/lowcode/engine/meta/form.props.json +16 -10
- package/lib/lowcode/engine/meta/imex.props.default.json +8 -1
- package/lib/lowcode/engine/meta/imex.props.json +54 -22
- package/lib/lowcode/engine/meta/js-editor/auto-complete.json +53 -3
- package/lib/lowcode/engine/meta/layout.props.json +2 -2
- package/lib/lowcode/engine/meta/page.props.json +2 -2
- package/lib/lowcode/engine/meta/pagelayout.props.default.json +14 -0
- package/lib/lowcode/engine/meta/pagelayout.props.json +47 -0
- package/lib/lowcode/engine/meta/section.props.json +2 -2
- package/lib/lowcode/engine/meta/split.props.default.json +1 -1
- package/lib/lowcode/engine/meta/split.props.json +4 -4
- package/lib/lowcode/engine/meta/table.props.json +17 -11
- package/lib/lowcode/engine/meta/tabs.props.json +3 -3
- package/lib/lowcode/engine/meta/tree.props.default.json +2 -0
- package/lib/lowcode/engine/meta/tree.props.json +62 -6
- package/lib/lowcode/engine/provider/ContextProvider/index.js +36 -43
- package/lib/lowcode/engine/provider/RemoteSourceProvider.js +68 -23
- package/lib/lowcode/engine/tools/dataProcess.js +4 -0
- package/lib/lowcode/engine/tools/helper.js +2 -3
- package/lib/lowcode/engine/tools/useCanvasRender.js +3 -2
- package/lib/lowcode/engine/tools/usePageDataStore.js +183 -0
- package/lib/lowcode/engine/tools/usePromiseState.js +11 -21
- package/lib/lowcode/engine/tools/useTodo.js +19 -9
- package/lib/lowcode/painter/DesignOperator.js +11 -22
- package/lib/lowcode/painter/DesignToolbar.js +9 -44
- package/lib/lowcode/painter/Outline.js +1 -3
- package/lib/lowcode/painter/Panel.js +28 -27
- package/lib/lowcode/painter/components/ActionBindModal.js +28 -22
- package/lib/lowcode/painter/components/AdvancePanel.js +6 -1
- package/lib/lowcode/painter/components/AttrsPanel.js +37 -28
- package/lib/lowcode/painter/components/DragDrop/DragDropContext.js +1 -1
- package/lib/lowcode/painter/components/code-editor/BaseEditor.js +3 -2
- package/lib/lowcode/painter/components/field-setting/CheckFrontRules.js +116 -0
- package/lib/lowcode/painter/components/field-setting/CheckRules.js +1 -26
- package/lib/lowcode/painter/components/field-setting/FieldRulesModal.js +34 -13
- package/lib/lowcode/painter/components/field-setting/SettingUI.js +159 -27
- package/lib/lowcode/painter/components/field-setting/index.js +32 -63
- package/lib/lowcode/painter/components/field-setting/meta/frontRules.js +59 -0
- package/lib/lowcode/painter/panel-section/BlocksEditor/index.js +13 -16
- package/lib/lowcode/painter/panel-section/ButtonType.js +4 -2
- package/lib/lowcode/painter/panel-section/DataSetSelector.js +4 -1
- package/lib/lowcode/painter/panel-section/FieldsSetting.js +53 -8
- package/lib/lowcode/painter/panel-section/ImpExp.js +92 -5
- package/lib/lowcode/painter/panel-section/ImpExpAlone.js +115 -0
- package/lib/lowcode/painter/panel-section/PageLayoutDisplay.js +103 -0
- package/lib/lowcode/painter/panel-section/SerialsSelector.js +4 -2
- package/lib/lowcode/painter/panel-section/SplitDisplay.js +24 -109
- package/lib/lowcode/painter/panel-section/StylePanel/index.js +10 -4
- package/lib/lowcode/painter/panel-section/TreeRootEditor.js +2 -2
- package/lib/lowcode/painter/style/action-bind-modal.less +3 -3
- package/lib/lowcode/painter/style/design.less +1 -1
- package/lib/lowcode/painter/style/page-layout-display.less +28 -0
- package/lib/lowcode/painter/style/panel-item.less +1 -1
- package/lib/lowcode/painter/style/split-display.less +0 -9
- package/lib/lowcode/preview/index.js +4 -2
- package/lib/lowcode/view/Canvas.js +5 -6
- package/lib/lowcode/view/Page.js +2 -3
- package/lib/lowcode/view/lc-components/Box/FunctionDesign.js +3 -2
- package/lib/lowcode/view/lc-components/Box/meta.json +3 -3
- package/lib/lowcode/view/lc-components/Button/index.js +2 -6
- package/lib/lowcode/view/lc-components/Button/meta.json +3 -3
- package/lib/lowcode/view/lc-components/Dialog/FunctionDesign.js +2 -9
- package/lib/lowcode/view/lc-components/Dialog/index.js +114 -19
- package/lib/lowcode/view/lc-components/Dialog/meta.json +65 -42
- package/lib/lowcode/view/lc-components/Drawer/meta.json +8 -20
- package/lib/lowcode/view/lc-components/Form/FunctionDesign.js +20 -31
- package/lib/lowcode/view/lc-components/Form/FunctionPreview.js +8 -1
- package/lib/lowcode/view/lc-components/Form/index.js +110 -18
- package/lib/lowcode/view/lc-components/Form/meta.json +16 -10
- package/lib/lowcode/view/lc-components/ImEx/FunctionDesign.js +8 -3
- package/lib/lowcode/view/lc-components/ImEx/index.js +257 -8
- package/lib/lowcode/view/lc-components/ImEx/index.less +7 -0
- package/lib/lowcode/view/lc-components/ImEx/meta.json +55 -23
- package/lib/lowcode/view/lc-components/Layout/FunctionDesign.js +11 -18
- package/lib/lowcode/view/lc-components/Layout/meta.json +2 -2
- package/lib/lowcode/view/lc-components/Page/meta.json +2 -2
- package/lib/lowcode/view/lc-components/PageContent/index.js +7 -8
- package/lib/lowcode/view/lc-components/PageFooter/index.js +2 -5
- package/lib/lowcode/view/lc-components/PageHeader/index.js +4 -5
- package/lib/lowcode/view/lc-components/PageLayout/FunctionDesign.js +71 -0
- package/lib/lowcode/view/lc-components/PageLayout/FunctionLive.js +17 -0
- package/lib/lowcode/view/lc-components/PageLayout/FunctionPreview.js +17 -0
- package/lib/lowcode/view/lc-components/PageLayout/index.js +40 -0
- package/lib/lowcode/view/lc-components/PageLayout/meta.json +47 -0
- package/lib/lowcode/view/lc-components/PageModal/index.js +11 -14
- package/lib/lowcode/view/lc-components/Section/FunctionDesign.js +2 -8
- package/lib/lowcode/view/lc-components/Section/meta.json +2 -2
- package/lib/lowcode/view/lc-components/Split/FunctionDesign.js +19 -20
- package/lib/lowcode/view/lc-components/Split/index.js +2 -6
- package/lib/lowcode/view/lc-components/Split/meta.json +4 -4
- package/lib/lowcode/view/lc-components/Table/components/TopImex.js +145 -0
- package/lib/lowcode/view/lc-components/Table/index.js +123 -38
- package/lib/lowcode/view/lc-components/Table/meta.json +17 -11
- package/lib/lowcode/view/lc-components/Tabs/FunctionDesign.js +11 -18
- package/lib/lowcode/view/lc-components/Tabs/index.js +3 -1
- package/lib/lowcode/view/lc-components/Tabs/meta.json +3 -3
- package/lib/lowcode/view/lc-components/Tree/FunctionDesign.js +2 -1
- package/lib/lowcode/view/lc-components/Tree/index.js +65 -16
- package/lib/lowcode/view/lc-components/Tree/meta.json +62 -7
- package/lib/lowcode/view/lc-components/Wrapper.js +8 -10
- package/lib/services.js +0 -25
- package/lib/upload/FilesWall/file.png +0 -0
- package/lib/upload/FilesWall/index.js +429 -0
- package/lib/upload/FilesWall/index.less +74 -0
- package/lib/upload/Form/index.js +2 -1
- package/lib/upload/FormItem/index.js +3 -5
- package/lib/upload/index.js +8 -1
- package/lib/utils/action.js +2 -2
- package/package.json +5 -4
|
@@ -7,15 +7,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
|
-
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
11
10
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
11
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
12
12
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
13
13
|
var _react = _interopRequireWildcard(require("react"));
|
|
14
14
|
var _index = _interopRequireDefault(require("./index"));
|
|
15
15
|
var _ahooks = require("ahooks");
|
|
16
|
+
var _lodash = require("lodash");
|
|
16
17
|
var _utils = require("@luck-design-biz/base/utils");
|
|
17
18
|
var _ContextProvider = require("../../../engine/provider/ContextProvider");
|
|
18
|
-
var _dataProcess = require("../../../engine/tools/dataProcess");
|
|
19
19
|
var _boxPropsDefault = _interopRequireDefault(require("../../../engine/meta/box.props.default.json"));
|
|
20
20
|
var _excluded = ["children", "id", "items"];
|
|
21
21
|
var FunctionDesign = function FunctionDesign(_ref) {
|
|
@@ -24,52 +24,45 @@ var FunctionDesign = function FunctionDesign(_ref) {
|
|
|
24
24
|
items = _ref.items,
|
|
25
25
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
26
26
|
var ctx = (0, _ContextProvider.useContext)();
|
|
27
|
-
var
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
var current = (0, _ContextProvider.useGet)({
|
|
28
|
+
id: id
|
|
29
|
+
});
|
|
30
30
|
(0, _ahooks.useCreation)(function () {
|
|
31
31
|
if (children !== null && children !== void 0 && children.length) return;
|
|
32
32
|
ctx.$subscriber(ctx.topics.COMPONENT_APPEND).once(function (_ref2) {
|
|
33
|
-
var compId = _ref2.id
|
|
34
|
-
pageData = _ref2.pageData;
|
|
33
|
+
var compId = _ref2.id;
|
|
35
34
|
if (compId !== id) return;
|
|
36
35
|
var boxId = "box_".concat((0, _utils.suid)());
|
|
37
|
-
(0,
|
|
36
|
+
(0, _ContextProvider.addNode)(id, boxId, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, _boxPropsDefault.default), {}, {
|
|
38
37
|
buildIn: true,
|
|
39
38
|
tabId: items[0].id
|
|
40
39
|
}));
|
|
41
|
-
setPageData(pageData);
|
|
42
40
|
}).watch();
|
|
43
41
|
}, []);
|
|
44
42
|
(0, _react.useEffect)(function () {
|
|
45
43
|
var cmid = ctx.$subscriber(ctx.topics.COMPONENT_MODIFY).on(function (_ref3) {
|
|
46
44
|
var compId = _ref3.id,
|
|
47
|
-
pageData = _ref3.pageData,
|
|
48
45
|
newValue = _ref3.newValue,
|
|
49
46
|
oldValue = _ref3.oldValue;
|
|
50
47
|
if (compId !== id || !newValue.hasOwnProperty('items')) return;
|
|
51
48
|
if (newValue.items.length > oldValue.items.length) {
|
|
52
|
-
var _differenceBy = differenceBy(newValue.items, oldValue.items, 'id'),
|
|
49
|
+
var _differenceBy = (0, _lodash.differenceBy)(newValue.items, oldValue.items, 'id'),
|
|
53
50
|
_differenceBy2 = (0, _slicedToArray2.default)(_differenceBy, 1),
|
|
54
51
|
newItem = _differenceBy2[0];
|
|
55
52
|
var boxId = "box_".concat((0, _utils.suid)());
|
|
56
|
-
(0,
|
|
53
|
+
(0, _ContextProvider.addNode)(id, boxId, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, _boxPropsDefault.default), {}, {
|
|
57
54
|
buildIn: true,
|
|
58
55
|
tabId: newItem.id
|
|
59
56
|
}));
|
|
60
|
-
setPageData(pageData);
|
|
61
57
|
} else if (newValue.items.length < oldValue.items.length) {
|
|
62
|
-
var _differenceBy3 = differenceBy(oldValue.items, newValue.items, 'id'),
|
|
58
|
+
var _differenceBy3 = (0, _lodash.differenceBy)(oldValue.items, newValue.items, 'id'),
|
|
63
59
|
_differenceBy4 = (0, _slicedToArray2.default)(_differenceBy3, 1),
|
|
64
60
|
removeItem = _differenceBy4[0];
|
|
65
|
-
var _findNodeAndParent = (0, _dataProcess.findNodeAndParent)(id, pageData),
|
|
66
|
-
current = _findNodeAndParent.node;
|
|
67
61
|
var _boxId = current.children.find(function (childId) {
|
|
68
62
|
return current[childId].props.tabId === removeItem.id;
|
|
69
63
|
});
|
|
70
64
|
ctx.$publisher(ctx.topics.COMPONENT_DELETE, {
|
|
71
|
-
id: _boxId
|
|
72
|
-
pageData: pageData
|
|
65
|
+
id: _boxId
|
|
73
66
|
});
|
|
74
67
|
}
|
|
75
68
|
}).watch();
|
|
@@ -20,7 +20,9 @@ var _tabsPropsDefault = _interopRequireDefault(require("../../../engine/meta/tab
|
|
|
20
20
|
var StyledTabs = (0, _styledComponents.default)(_antd.Tabs).withConfig({
|
|
21
21
|
displayName: "StyledTabs",
|
|
22
22
|
componentId: "luckda-6530__sc-ht1jge-0"
|
|
23
|
-
})(["", ""], function (props) {
|
|
23
|
+
})([".ant-tabs-content{", " overflow-x:hidden;overflow-y:auto;}", ""], function (props) {
|
|
24
|
+
return props.type === 'line' ? 'height: calc(100% - 62px);' : 'height: calc(100% - 56px);';
|
|
25
|
+
}, function (props) {
|
|
24
26
|
return props.$css;
|
|
25
27
|
});
|
|
26
28
|
var LCTabs = function LCTabs(_ref) {
|
|
@@ -94,19 +94,19 @@
|
|
|
94
94
|
"key": "onMount",
|
|
95
95
|
"name": "组件首次渲染时",
|
|
96
96
|
"desc": "在组件首次渲染时,执行方法",
|
|
97
|
-
"func": "(
|
|
97
|
+
"func": "function onMount() {\n\t\n}"
|
|
98
98
|
},
|
|
99
99
|
{
|
|
100
100
|
"key": "onUnmount",
|
|
101
101
|
"name": "组件卸载时",
|
|
102
102
|
"desc": "在组件卸载时,执行方法。",
|
|
103
|
-
"func": "(
|
|
103
|
+
"func": "function onUnmount() {\n\t\n}"
|
|
104
104
|
},
|
|
105
105
|
{
|
|
106
106
|
"key": "onTabClick",
|
|
107
107
|
"name": "tab被点击的回调",
|
|
108
108
|
"desc": "当tab被点击时, 执行方法",
|
|
109
|
-
"func": "(tabKey, e)
|
|
109
|
+
"func": "function onTabClick(tabKey, e) {\n\t\n}"
|
|
110
110
|
}
|
|
111
111
|
]
|
|
112
112
|
}
|
|
@@ -71,7 +71,8 @@ var FunctionDesign = function FunctionDesign(_ref) {
|
|
|
71
71
|
className: _index2.default['runtime-tree'],
|
|
72
72
|
draggable: false,
|
|
73
73
|
suppressInit: true,
|
|
74
|
-
onDataSetChange: handleDataSetChange
|
|
74
|
+
onDataSetChange: handleDataSetChange,
|
|
75
|
+
asyncLoad: false
|
|
75
76
|
}), children);
|
|
76
77
|
};
|
|
77
78
|
var _default = exports.default = FunctionDesign;
|
|
@@ -8,6 +8,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
11
12
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
12
13
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
14
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
@@ -22,7 +23,8 @@ var _index = require("../../../../index");
|
|
|
22
23
|
var _helper = require("../../../engine/tools/helper");
|
|
23
24
|
var _treePropsDefault = _interopRequireDefault(require("../../../engine/meta/tree.props.default.json"));
|
|
24
25
|
var _index2 = _interopRequireDefault(require("./index.less"));
|
|
25
|
-
var _excluded = ["id", "wrapperRef", "className", "dataset", "width", "height", "showLine", "defaultExpandDeep", "actions", "editable", "showRootAdd", "rootAddSetting", "doubleClickExpand", "onDoubleClick", "treeNodeCheckable", "treeNodeDisableCheckbox", "treeNodeDisable", "onTreeNodeRender", "treeNodeIcon", "advance"];
|
|
26
|
+
var _excluded = ["id", "wrapperRef", "className", "dataset", "width", "height", "showLine", "defaultExpandDeep", "actions", "editable", "showRootAdd", "onlyRoot", "rootAddSetting", "doubleClickExpand", "onDoubleClick", "treeNodeCheckable", "treeNodeDisableCheckbox", "treeNodeDisable", "onTreeNodeRender", "treeNodeIcon", "advance", "cancelSelect", "defaultSelect"];
|
|
27
|
+
var PRIMARY = window.appConfig.constraintKeys.PRIMARY;
|
|
26
28
|
var LCTree = function LCTree(_ref) {
|
|
27
29
|
var id = _ref.id,
|
|
28
30
|
wrapperRef = _ref.wrapperRef,
|
|
@@ -35,6 +37,7 @@ var LCTree = function LCTree(_ref) {
|
|
|
35
37
|
actions = _ref.actions,
|
|
36
38
|
editable = _ref.editable,
|
|
37
39
|
showRootAdd = _ref.showRootAdd,
|
|
40
|
+
onlyRoot = _ref.onlyRoot,
|
|
38
41
|
rootAddSetting = _ref.rootAddSetting,
|
|
39
42
|
doubleClickExpand = _ref.doubleClickExpand,
|
|
40
43
|
onDoubleClick = _ref.onDoubleClick,
|
|
@@ -44,16 +47,36 @@ var LCTree = function LCTree(_ref) {
|
|
|
44
47
|
onTreeNodeRender = _ref.onTreeNodeRender,
|
|
45
48
|
_treeNodeIcon = _ref.treeNodeIcon,
|
|
46
49
|
advance = _ref.advance,
|
|
50
|
+
cancelSelect = _ref.cancelSelect,
|
|
51
|
+
defaultSelect = _ref.defaultSelect,
|
|
47
52
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
48
53
|
var ctx = (0, _ContextProvider.useContext)();
|
|
49
54
|
var boxRef = (0, _react.useRef)();
|
|
50
55
|
var treeRef = (0, _react.useRef)();
|
|
56
|
+
var _useState = (0, _react.useState)([]),
|
|
57
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
58
|
+
selectedKeys = _useState2[0],
|
|
59
|
+
setSelectedKeys = _useState2[1];
|
|
51
60
|
var getTargetDom = (0, _ahooks.useMemoizedFn)(function () {
|
|
52
61
|
return boxRef.current;
|
|
53
62
|
});
|
|
54
63
|
(0, _react.useImperativeHandle)(wrapperRef, function () {
|
|
55
64
|
return treeRef.current;
|
|
56
65
|
});
|
|
66
|
+
(0, _react.useEffect)(function () {
|
|
67
|
+
var tid = ctx.$subscriber(ctx.topics.PAGE_PUBLIC_RESOURCE_CHANGED).on(function (_ref2) {
|
|
68
|
+
var resource = _ref2.resource,
|
|
69
|
+
prevResource = _ref2.prevResource;
|
|
70
|
+
ctx.doAction(advance.events.onPagePublicResourceChanged, {
|
|
71
|
+
resource: resource,
|
|
72
|
+
prevResource: prevResource,
|
|
73
|
+
instance: treeRef.current
|
|
74
|
+
});
|
|
75
|
+
}).watch();
|
|
76
|
+
return function () {
|
|
77
|
+
ctx.$unsubscriber(ctx.topics.PAGE_PUBLIC_RESOURCE_CHANGED, tid);
|
|
78
|
+
};
|
|
79
|
+
}, []);
|
|
57
80
|
var handleMount = (0, _ahooks.useMemoizedFn)(function (params) {
|
|
58
81
|
ctx.doAction(advance.events.onMount, {
|
|
59
82
|
params: params
|
|
@@ -79,6 +102,12 @@ var LCTree = function LCTree(_ref) {
|
|
|
79
102
|
e: e
|
|
80
103
|
});
|
|
81
104
|
});
|
|
105
|
+
var handleDrop = (0, _ahooks.useMemoizedFn)(function (info, dragInfo) {
|
|
106
|
+
ctx.doAction(advance.events.onCheck, {
|
|
107
|
+
info: info,
|
|
108
|
+
dragInfo: dragInfo
|
|
109
|
+
});
|
|
110
|
+
});
|
|
82
111
|
var events = (0, _ahooks.useCreation)(function () {
|
|
83
112
|
if (advance !== null && advance !== void 0 && advance.events) {
|
|
84
113
|
var _events = {};
|
|
@@ -87,24 +116,31 @@ var LCTree = function LCTree(_ref) {
|
|
|
87
116
|
if (advance.events.processDataSource) _events.dataToTreeFormat = handleProcessDataSource;
|
|
88
117
|
if (advance.events.onDoubleClick) _events.onNodeDoubleClick = handleNodeDoubleClick;
|
|
89
118
|
if (advance.events.onCheck) _events.onCheck = handleCheck;
|
|
119
|
+
if (advance.events.onDrop) _events.onDrop = handleDrop;
|
|
90
120
|
return _events;
|
|
91
121
|
}
|
|
92
122
|
return {};
|
|
93
123
|
}, [advance === null || advance === void 0 ? void 0 : advance.events]);
|
|
94
|
-
var
|
|
95
|
-
if (
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
// fromId: info.dragNode.props.dataRef[PRIMARY],
|
|
101
|
-
// toId: info.node.props.dataRef[PRIMARY],
|
|
102
|
-
// }
|
|
103
|
-
// }, {
|
|
104
|
-
// showConfirm: false,
|
|
105
|
-
// callback: (success) => success && onLdQuery()
|
|
106
|
-
// });
|
|
124
|
+
var handleSelect = (0, _ahooks.useMemoizedFn)(function (_selectedKeys, e) {
|
|
125
|
+
if (cancelSelect || e.selected) {
|
|
126
|
+
setSelectedKeys(_selectedKeys);
|
|
127
|
+
ctx.setPagePublicResource((0, _defineProperty2.default)({}, id, {
|
|
128
|
+
selectedNodes: e.selectedNodes
|
|
129
|
+
}));
|
|
107
130
|
}
|
|
131
|
+
ctx.doAction(advance.events.onSelect, {
|
|
132
|
+
checkedKeys: _selectedKeys,
|
|
133
|
+
e: e
|
|
134
|
+
});
|
|
135
|
+
});
|
|
136
|
+
var afterInit = (0, _ahooks.useMemoizedFn)(function (treeData, data) {
|
|
137
|
+
var selected = !(0, _lodash.isNil)(defaultSelect) ? (0, _helper.executeCode)(ctx, defaultSelect, ['treeData'], treeData) : null;
|
|
138
|
+
selected && handleSelect(selected, {
|
|
139
|
+
selected: true,
|
|
140
|
+
selectedNodes: selected.map(function (key) {
|
|
141
|
+
return (0, _lodash.keyBy)(data, PRIMARY)[key];
|
|
142
|
+
})
|
|
143
|
+
});
|
|
108
144
|
});
|
|
109
145
|
return /*#__PURE__*/_react.default.createElement(_Wrapper.default, {
|
|
110
146
|
id: id,
|
|
@@ -133,6 +169,7 @@ var LCTree = function LCTree(_ref) {
|
|
|
133
169
|
return ctx.doAction(rootAddSetting.actionPool);
|
|
134
170
|
}
|
|
135
171
|
} : null,
|
|
172
|
+
onlyRoot: onlyRoot,
|
|
136
173
|
rightMenus: function rightMenus() {
|
|
137
174
|
return actions.todoList.map(function (action) {
|
|
138
175
|
return {
|
|
@@ -181,7 +218,9 @@ var LCTree = function LCTree(_ref) {
|
|
|
181
218
|
onTreeNodeRender: onTreeNodeRender ? function (title, i) {
|
|
182
219
|
return (0, _helper.executeCode)(ctx, onTreeNodeRender, ['title', 'item'], title, i);
|
|
183
220
|
} : null,
|
|
184
|
-
|
|
221
|
+
selectedKeys: selectedKeys,
|
|
222
|
+
onSelect: handleSelect,
|
|
223
|
+
afterInit: afterInit
|
|
185
224
|
}, events, props))));
|
|
186
225
|
};
|
|
187
226
|
LCTree.propTypes = {
|
|
@@ -265,6 +304,11 @@ LCTree.propTypes = {
|
|
|
265
304
|
* @type bool
|
|
266
305
|
*/
|
|
267
306
|
showRootAdd: _propTypes.default.bool,
|
|
307
|
+
/**
|
|
308
|
+
* @name 是否只有唯一一个根节点
|
|
309
|
+
* @type bool
|
|
310
|
+
*/
|
|
311
|
+
onlyRoot: _propTypes.default.bool,
|
|
268
312
|
/**
|
|
269
313
|
* @name 根节点配置
|
|
270
314
|
* @type object
|
|
@@ -333,7 +377,12 @@ LCTree.propTypes = {
|
|
|
333
377
|
* @name 复选框选择事件
|
|
334
378
|
* @type _JSEditor
|
|
335
379
|
*/
|
|
336
|
-
onCheck: _propTypes.default.string
|
|
380
|
+
onCheck: _propTypes.default.string,
|
|
381
|
+
/**
|
|
382
|
+
* @name 选中事件
|
|
383
|
+
* @type _JSEditor
|
|
384
|
+
*/
|
|
385
|
+
onSelect: _propTypes.default.string
|
|
337
386
|
};
|
|
338
387
|
LCTree.defaultProps = (0, _helper.omitBadProps)(_treePropsDefault.default);
|
|
339
388
|
var _default = exports.default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
@@ -17,7 +17,18 @@
|
|
|
17
17
|
"key": "dataset",
|
|
18
18
|
"name": "数据集",
|
|
19
19
|
"desc": "选择系统中的可用树形数据集",
|
|
20
|
-
"type": "_DataSetSelector"
|
|
20
|
+
"type": "_DataSetSelector",
|
|
21
|
+
"next": {
|
|
22
|
+
"name": "字段配置",
|
|
23
|
+
"props": [
|
|
24
|
+
{
|
|
25
|
+
"key": "fields",
|
|
26
|
+
"name": "#字段配置器",
|
|
27
|
+
"type": "_FieldsSetting",
|
|
28
|
+
"component": "tree"
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
}
|
|
21
32
|
},
|
|
22
33
|
{
|
|
23
34
|
"key": "title",
|
|
@@ -118,6 +129,31 @@
|
|
|
118
129
|
"default": "0"
|
|
119
130
|
}
|
|
120
131
|
]
|
|
132
|
+
}, {
|
|
133
|
+
"key": "selectSetting",
|
|
134
|
+
"name": "选中设置",
|
|
135
|
+
"type": "group",
|
|
136
|
+
"props": [
|
|
137
|
+
{
|
|
138
|
+
"key": "cancelSelect",
|
|
139
|
+
"name": "取消选中",
|
|
140
|
+
"desc": "是否可以取消选中",
|
|
141
|
+
"type": "switch",
|
|
142
|
+
"default": true
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"key": "defaultSelect",
|
|
146
|
+
"name": "默认选中",
|
|
147
|
+
"desc": "返回默认选中的数据主键",
|
|
148
|
+
"type": "_JSEditor",
|
|
149
|
+
"defaultCode": "function defaultSelect(treeData) { \n return []; \n}",
|
|
150
|
+
"mustConfirm": true,
|
|
151
|
+
"wrapper": "collapse",
|
|
152
|
+
"wrapperProps": {
|
|
153
|
+
"suppressIcon": true
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
]
|
|
121
157
|
},
|
|
122
158
|
{
|
|
123
159
|
"key": "IconSetting",
|
|
@@ -168,6 +204,13 @@
|
|
|
168
204
|
"type": "switch",
|
|
169
205
|
"default": true
|
|
170
206
|
},
|
|
207
|
+
{
|
|
208
|
+
"key": "onlyRoot",
|
|
209
|
+
"name": "根节点唯一",
|
|
210
|
+
"desc": "树组件仅一个根节点,如数据根节点数大于0,则不允许根节点新增",
|
|
211
|
+
"type": "switch",
|
|
212
|
+
"default": false
|
|
213
|
+
},
|
|
171
214
|
{
|
|
172
215
|
"key": "rootAddSetting",
|
|
173
216
|
"name": "根节点配置",
|
|
@@ -270,32 +313,44 @@
|
|
|
270
313
|
"key": "onMount",
|
|
271
314
|
"name": "组件首次渲染时",
|
|
272
315
|
"desc": "在组件首次渲染时,执行方法",
|
|
273
|
-
"func": "(params)
|
|
316
|
+
"func": "function onMount(params) {\n\t\n}"
|
|
274
317
|
},
|
|
275
318
|
{
|
|
276
319
|
"key": "onUnmount",
|
|
277
320
|
"name": "组件卸载时",
|
|
278
321
|
"desc": "在组件卸载时,执行方法。",
|
|
279
|
-
"func": "()
|
|
322
|
+
"func": "function onUnmount() {\n\t\n}"
|
|
280
323
|
},
|
|
281
324
|
{
|
|
282
325
|
"key": "processDataSource",
|
|
283
326
|
"name": "数据预处理",
|
|
284
327
|
"desc": "数据渲染前预处理",
|
|
285
|
-
"func": "(data)
|
|
328
|
+
"func": "function processDataSource(data) {\n\t\n}"
|
|
286
329
|
},
|
|
287
330
|
{
|
|
288
331
|
"key": "onDoubleClick",
|
|
289
332
|
"name": "双击事件",
|
|
290
333
|
"desc": "树节点双击事件",
|
|
291
|
-
"func": "(e, rowData)
|
|
334
|
+
"func": "function onDoubleClick(e, rowData) {\n\t\n}"
|
|
292
335
|
},
|
|
293
336
|
{
|
|
294
337
|
"key": "onCheck",
|
|
295
338
|
"name": "复选框选择事件",
|
|
296
339
|
"desc": "点击复选框触发",
|
|
297
|
-
"func": "(checkedKeys, e)
|
|
340
|
+
"func": "function onCheck(checkedKeys, e) {\n\t\n}"
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
"key": "onSelect",
|
|
344
|
+
"name": "选中事件",
|
|
345
|
+
"desc": "节点选中事件",
|
|
346
|
+
"func": "function onSelect(checkedKeys, e) {\n\t\n}"
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
"key": "onDrop",
|
|
350
|
+
"name": "拖拽事件",
|
|
351
|
+
"desc": "节点拖拽事件",
|
|
352
|
+
"func": "function onDrop(info, dragInfo) {\n\t\n}"
|
|
298
353
|
}
|
|
299
354
|
]
|
|
300
355
|
}
|
|
301
|
-
}
|
|
356
|
+
}
|
|
@@ -7,12 +7,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
10
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
11
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
12
11
|
var _ahooks = require("ahooks");
|
|
13
12
|
var _lodash = require("lodash");
|
|
14
13
|
var _ContextProvider = require("../../engine/provider/ContextProvider");
|
|
15
|
-
var _dataProcess = require("../../engine/tools/dataProcess");
|
|
16
14
|
var _constants = require("../../constants");
|
|
17
15
|
var _DragDropWrapper = _interopRequireDefault(require("../../painter/components/DragDrop/DragDropWrapper"));
|
|
18
16
|
var LCWrapper = function LCWrapper(_ref) {
|
|
@@ -22,23 +20,23 @@ var LCWrapper = function LCWrapper(_ref) {
|
|
|
22
20
|
getTargetDom = _ref.getTargetDom,
|
|
23
21
|
api = _ref.api;
|
|
24
22
|
var ctx = (0, _ContextProvider.useContext)();
|
|
25
|
-
var
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
var
|
|
23
|
+
var selfData = (0, _ContextProvider.useGet)({
|
|
24
|
+
id: id
|
|
25
|
+
});
|
|
26
|
+
var _selfData = (0, _ahooks.useLatest)(selfData);
|
|
29
27
|
(0, _ahooks.useCreation)(function () {
|
|
30
28
|
var meta = displayName ? require("../../engine/meta/".concat(displayName.toLowerCase(), ".props.json")) : {};
|
|
31
29
|
var _api = {
|
|
32
30
|
self: children,
|
|
33
31
|
getSelfData: function getSelfData() {
|
|
34
|
-
return
|
|
32
|
+
return _selfData.current;
|
|
35
33
|
},
|
|
36
34
|
getSelfDom: getTargetDom,
|
|
37
|
-
|
|
38
|
-
return (0,
|
|
35
|
+
getSelfAndParentData: function getSelfAndParentData() {
|
|
36
|
+
return (0, _ContextProvider.getSelfAndParent)(id);
|
|
39
37
|
},
|
|
40
38
|
getLevelNodes: function getLevelNodes() {
|
|
41
|
-
return (0,
|
|
39
|
+
return (0, _ContextProvider.getLevelNodes)(id);
|
|
42
40
|
}
|
|
43
41
|
};
|
|
44
42
|
ctx._register(id, new Proxy({
|
package/lib/services.js
CHANGED
|
@@ -4,11 +4,9 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.readBehaviorCall = readBehaviorCall;
|
|
8
7
|
exports.readModlue = readModlue;
|
|
9
8
|
var _regeneratorRuntime2 = _interopRequireDefault(require("@babel/runtime/helpers/regeneratorRuntime"));
|
|
10
9
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
11
|
-
var _querystring = require("querystring");
|
|
12
10
|
var _utils = require("@luck-design-biz/base/utils");
|
|
13
11
|
var _ApiConfig = _interopRequireDefault(require("@/services/ApiConfig"));
|
|
14
12
|
function readModlue(_x) {
|
|
@@ -29,27 +27,4 @@ function _readModlue() {
|
|
|
29
27
|
}, _callee);
|
|
30
28
|
}));
|
|
31
29
|
return _readModlue.apply(this, arguments);
|
|
32
|
-
}
|
|
33
|
-
function readBehaviorCall(_x2, _x3) {
|
|
34
|
-
return _readBehaviorCall.apply(this, arguments);
|
|
35
|
-
}
|
|
36
|
-
function _readBehaviorCall() {
|
|
37
|
-
_readBehaviorCall = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee2(get, post) {
|
|
38
|
-
return (0, _regeneratorRuntime2.default)().wrap(function _callee2$(_context2) {
|
|
39
|
-
while (1) switch (_context2.prev = _context2.next) {
|
|
40
|
-
case 0:
|
|
41
|
-
return _context2.abrupt("return", (0, _utils.request)("".concat(_ApiConfig.default.API_HOST, "/lowcode/to/behavior/call?").concat((0, _querystring.stringify)(get)), {
|
|
42
|
-
method: 'POST',
|
|
43
|
-
body: post,
|
|
44
|
-
headers: {
|
|
45
|
-
'Content-Type': 'application/json;charset=UTF-8'
|
|
46
|
-
}
|
|
47
|
-
}));
|
|
48
|
-
case 1:
|
|
49
|
-
case "end":
|
|
50
|
-
return _context2.stop();
|
|
51
|
-
}
|
|
52
|
-
}, _callee2);
|
|
53
|
-
}));
|
|
54
|
-
return _readBehaviorCall.apply(this, arguments);
|
|
55
30
|
}
|
|
Binary file
|