@luck-design-biz/luckda 0.0.25-1 → 0.0.25-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/es/locales/zh-CN.js +9 -0
- package/es/lowcode/constants/api-url.js +184 -100
- package/es/lowcode/constants/index.js +2 -1
- package/es/lowcode/engine/meta/box.props.default.json +1 -1
- package/es/lowcode/engine/meta/box.props.json +1 -1
- package/es/lowcode/engine/meta/button.props.json +1 -1
- package/es/lowcode/engine/meta/cardlist.props.json +1 -1
- package/es/lowcode/engine/meta/components-list.json +1 -1
- package/es/lowcode/engine/meta/dialog.props.json +1 -1
- package/es/lowcode/engine/meta/drawer.props.json +1 -1
- package/es/lowcode/engine/meta/form.props.default.json +4 -5
- package/es/lowcode/engine/meta/form.props.json +33 -30
- package/es/lowcode/engine/meta/image.props.json +2 -2
- package/es/lowcode/engine/meta/imex.props.json +1 -1
- package/es/lowcode/engine/meta/link.props.json +1 -1
- package/es/lowcode/engine/meta/section.props.default.json +4 -6
- package/es/lowcode/engine/meta/section.props.json +52 -49
- package/es/lowcode/engine/meta/text.props.json +2 -2
- package/es/lowcode/engine/meta/tree.props.json +2 -2
- package/es/lowcode/engine/provider/ContextProvider/index.js +10 -2
- package/es/lowcode/engine/provider/RemoteSourceProvider.js +28 -15
- package/es/lowcode/engine/tools/helper.js +23 -21
- package/es/lowcode/engine/tools/useCanvasRender.js +5 -7
- package/es/lowcode/engine/tools/usePromiseState.js +23 -14
- package/es/lowcode/painter/Design.js +34 -2
- package/es/lowcode/painter/DesignOperator.js +6 -8
- package/es/lowcode/painter/DesignToolbar.js +258 -21
- package/es/lowcode/painter/Panel.js +8 -9
- package/es/lowcode/painter/components/AttrsPanel.js +6 -6
- package/es/lowcode/painter/components/DragDrop/DragDropWrapper.js +5 -2
- package/es/lowcode/painter/components/ListEditor.js +8 -2
- package/es/lowcode/painter/components/field-setting/BatchSetting.js +13 -3
- package/es/lowcode/painter/components/field-setting/SettingUI.js +26 -7
- package/es/lowcode/painter/components/field-setting/index.js +18 -8
- package/es/lowcode/painter/index.js +1 -28
- package/es/lowcode/painter/panel-section/ActionsColumnWidth.js +25 -0
- package/es/lowcode/painter/panel-section/BlockEditor/index.js +7 -4
- package/es/lowcode/painter/panel-section/BlocksEditor/BlockEditorItem.js +4 -3
- package/es/lowcode/painter/panel-section/BlocksEditor/index.js +48 -15
- package/es/lowcode/painter/panel-section/FieldsSetting.js +48 -27
- package/es/lowcode/painter/panel-section/I18nInput.js +20 -0
- package/es/lowcode/painter/style/design.less +6 -2
- package/es/lowcode/painter/style/list-editor.less +36 -0
- package/es/lowcode/preview/index.js +17 -4
- package/es/lowcode/view/lc-components/Box/meta.json +1 -1
- package/es/lowcode/view/lc-components/Button/meta.json +1 -1
- package/es/lowcode/view/lc-components/CardList/meta.json +1 -1
- package/es/lowcode/view/lc-components/Dialog/FunctionDesign.js +2 -4
- package/es/lowcode/view/lc-components/Dialog/meta.json +1 -1
- package/es/lowcode/view/lc-components/Drawer/meta.json +1 -1
- package/es/lowcode/view/lc-components/Form/FunctionDesign.js +66 -4
- package/es/lowcode/view/lc-components/Form/index.js +232 -61
- package/es/lowcode/view/lc-components/Form/meta.json +33 -30
- package/es/lowcode/view/lc-components/ImEx/meta.json +1 -1
- package/es/lowcode/view/lc-components/Image/meta.json +2 -2
- package/es/lowcode/view/lc-components/Layout/FunctionDesign.js +6 -7
- package/es/lowcode/view/lc-components/Link/meta.json +1 -1
- package/es/lowcode/view/lc-components/Section/FunctionDesign.js +31 -2
- package/es/lowcode/view/lc-components/Section/index.js +114 -24
- package/es/lowcode/view/lc-components/Section/index.less +7 -0
- package/es/lowcode/view/lc-components/Section/meta.json +48 -49
- package/es/lowcode/view/lc-components/Split/FunctionDesign.js +4 -6
- package/es/lowcode/view/lc-components/Split/index.js +4 -4
- package/es/lowcode/view/lc-components/Table/index.js +7 -6
- package/es/lowcode/view/lc-components/Tabs/FunctionDesign.js +2 -4
- package/es/lowcode/view/lc-components/Text/meta.json +2 -2
- package/es/lowcode/view/lc-components/Tree/meta.json +2 -2
- package/es/upload/Form/gridForm.js +7 -3
- package/lib/locales/zh-CN.js +9 -0
- package/lib/lowcode/constants/api-url.js +183 -100
- package/lib/lowcode/constants/index.js +3 -2
- package/lib/lowcode/engine/meta/box.props.default.json +1 -1
- package/lib/lowcode/engine/meta/box.props.json +1 -1
- package/lib/lowcode/engine/meta/button.props.json +1 -1
- package/lib/lowcode/engine/meta/cardlist.props.json +1 -1
- package/lib/lowcode/engine/meta/components-list.json +1 -1
- package/lib/lowcode/engine/meta/dialog.props.json +1 -1
- package/lib/lowcode/engine/meta/drawer.props.json +1 -1
- package/lib/lowcode/engine/meta/form.props.default.json +4 -5
- package/lib/lowcode/engine/meta/form.props.json +33 -30
- package/lib/lowcode/engine/meta/image.props.json +2 -2
- package/lib/lowcode/engine/meta/imex.props.json +1 -1
- package/lib/lowcode/engine/meta/link.props.json +1 -1
- package/lib/lowcode/engine/meta/section.props.default.json +4 -6
- package/lib/lowcode/engine/meta/section.props.json +52 -49
- package/lib/lowcode/engine/meta/text.props.json +2 -2
- package/lib/lowcode/engine/meta/tree.props.json +2 -2
- package/lib/lowcode/engine/provider/ContextProvider/index.js +10 -2
- package/lib/lowcode/engine/provider/RemoteSourceProvider.js +24 -11
- package/lib/lowcode/engine/tools/helper.js +23 -21
- package/lib/lowcode/engine/tools/useCanvasRender.js +3 -5
- package/lib/lowcode/engine/tools/usePromiseState.js +22 -14
- package/lib/lowcode/painter/Design.js +32 -0
- package/lib/lowcode/painter/DesignOperator.js +5 -7
- package/lib/lowcode/painter/DesignToolbar.js +256 -19
- package/lib/lowcode/painter/Panel.js +7 -8
- package/lib/lowcode/painter/components/AttrsPanel.js +6 -6
- package/lib/lowcode/painter/components/DragDrop/DragDropWrapper.js +5 -2
- package/lib/lowcode/painter/components/ListEditor.js +8 -2
- package/lib/lowcode/painter/components/field-setting/BatchSetting.js +13 -3
- package/lib/lowcode/painter/components/field-setting/SettingUI.js +26 -7
- package/lib/lowcode/painter/components/field-setting/index.js +18 -8
- package/lib/lowcode/painter/index.js +1 -30
- package/lib/lowcode/painter/panel-section/ActionsColumnWidth.js +32 -0
- package/lib/lowcode/painter/panel-section/BlockEditor/index.js +7 -4
- package/lib/lowcode/painter/panel-section/BlocksEditor/BlockEditorItem.js +4 -3
- package/lib/lowcode/painter/panel-section/BlocksEditor/index.js +47 -13
- package/lib/lowcode/painter/panel-section/FieldsSetting.js +46 -25
- package/lib/lowcode/painter/panel-section/I18nInput.js +27 -0
- package/lib/lowcode/painter/style/design.less +6 -2
- package/lib/lowcode/painter/style/list-editor.less +36 -0
- package/lib/lowcode/preview/index.js +18 -4
- package/lib/lowcode/view/lc-components/Box/meta.json +1 -1
- package/lib/lowcode/view/lc-components/Button/meta.json +1 -1
- package/lib/lowcode/view/lc-components/CardList/meta.json +1 -1
- package/lib/lowcode/view/lc-components/Dialog/FunctionDesign.js +2 -4
- package/lib/lowcode/view/lc-components/Dialog/meta.json +1 -1
- package/lib/lowcode/view/lc-components/Drawer/meta.json +1 -1
- package/lib/lowcode/view/lc-components/Form/FunctionDesign.js +64 -2
- package/lib/lowcode/view/lc-components/Form/index.js +230 -59
- package/lib/lowcode/view/lc-components/Form/meta.json +33 -30
- package/lib/lowcode/view/lc-components/ImEx/meta.json +1 -1
- package/lib/lowcode/view/lc-components/Image/meta.json +2 -2
- package/lib/lowcode/view/lc-components/Layout/FunctionDesign.js +5 -6
- package/lib/lowcode/view/lc-components/Link/meta.json +1 -1
- package/lib/lowcode/view/lc-components/Section/FunctionDesign.js +31 -2
- package/lib/lowcode/view/lc-components/Section/index.js +113 -23
- package/lib/lowcode/view/lc-components/Section/index.less +7 -0
- package/lib/lowcode/view/lc-components/Section/meta.json +48 -49
- package/lib/lowcode/view/lc-components/Split/FunctionDesign.js +5 -7
- package/lib/lowcode/view/lc-components/Split/index.js +4 -4
- package/lib/lowcode/view/lc-components/Table/index.js +7 -6
- package/lib/lowcode/view/lc-components/Tabs/FunctionDesign.js +4 -6
- package/lib/lowcode/view/lc-components/Text/meta.json +2 -2
- package/lib/lowcode/view/lc-components/Tree/meta.json +2 -2
- package/lib/upload/Form/gridForm.js +7 -3
- package/package.json +1 -1
- package/es/lowcode/painter/services/toolbar.js +0 -25
- package/lib/lowcode/painter/services/toolbar.js +0 -32
|
@@ -12,13 +12,16 @@ exports.fetchAllDataset = fetchAllDataset;
|
|
|
12
12
|
exports.fetchAllSerials = fetchAllSerials;
|
|
13
13
|
exports.fetchAttrs = fetchAttrs;
|
|
14
14
|
exports.fetchCallBehavior = fetchCallBehavior;
|
|
15
|
+
exports.fetchClearCache = fetchClearCache;
|
|
15
16
|
exports.fetchDelAttrs = fetchDelAttrs;
|
|
16
17
|
exports.fetchDesignModlueData = fetchDesignModlueData;
|
|
17
18
|
exports.fetchFieldCondition = fetchFieldCondition;
|
|
18
19
|
exports.fetchFieldsByDataset = fetchFieldsByDataset;
|
|
19
20
|
exports.fetchModlueData = fetchModlueData;
|
|
20
21
|
exports.fetchPageData = fetchPageData;
|
|
22
|
+
exports.fetchPreviewModlueData = fetchPreviewModlueData;
|
|
21
23
|
exports.fetchUpdateFieldAttrs = fetchUpdateFieldAttrs;
|
|
24
|
+
exports.fetchUpdatePageData = fetchUpdatePageData;
|
|
22
25
|
exports.fetchUpdateTitleField = fetchUpdateTitleField;
|
|
23
26
|
exports.fetchUpdateUniqueField = fetchUpdateUniqueField;
|
|
24
27
|
var _regeneratorRuntime2 = _interopRequireDefault(require("@babel/runtime/helpers/regeneratorRuntime"));
|
|
@@ -66,8 +69,10 @@ function fetchDesignModlueData(_x2, _x3) {
|
|
|
66
69
|
return _fetchDesignModlueData.apply(this, arguments);
|
|
67
70
|
}
|
|
68
71
|
/**
|
|
69
|
-
*
|
|
70
|
-
* @param {
|
|
72
|
+
* 获取preview时模块数据
|
|
73
|
+
* @param {*} dmCode
|
|
74
|
+
* @param {*} params
|
|
75
|
+
* @returns
|
|
71
76
|
*/
|
|
72
77
|
function _fetchDesignModlueData() {
|
|
73
78
|
_fetchDesignModlueData = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee2(_, params) {
|
|
@@ -85,19 +90,19 @@ function _fetchDesignModlueData() {
|
|
|
85
90
|
}));
|
|
86
91
|
return _fetchDesignModlueData.apply(this, arguments);
|
|
87
92
|
}
|
|
88
|
-
function
|
|
89
|
-
return
|
|
93
|
+
function fetchPreviewModlueData(_x4, _x5) {
|
|
94
|
+
return _fetchPreviewModlueData.apply(this, arguments);
|
|
90
95
|
}
|
|
91
96
|
/**
|
|
92
|
-
*
|
|
93
|
-
* @param {{
|
|
97
|
+
* 获取live时模块数据
|
|
98
|
+
* @param {{moduleCode: string}} params
|
|
94
99
|
*/
|
|
95
|
-
function
|
|
96
|
-
|
|
100
|
+
function _fetchPreviewModlueData() {
|
|
101
|
+
_fetchPreviewModlueData = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee3(dmCode, params) {
|
|
97
102
|
return (0, _regeneratorRuntime2.default)().wrap(function _callee3$(_context3) {
|
|
98
103
|
while (1) switch (_context3.prev = _context3.next) {
|
|
99
104
|
case 0:
|
|
100
|
-
return _context3.abrupt("return", (0, _utils.request)("".concat(_ApiConfig.default.API_HOST, "/").concat(dmCode, "/ui/builder/
|
|
105
|
+
return _context3.abrupt("return", (0, _utils.request)("".concat(_ApiConfig.default.API_HOST, "/").concat(dmCode, "/ui/builder/fetchModuleForPreview"), {
|
|
101
106
|
params: params
|
|
102
107
|
}));
|
|
103
108
|
case 1:
|
|
@@ -106,9 +111,32 @@ function _fetchModlueData() {
|
|
|
106
111
|
}
|
|
107
112
|
}, _callee3);
|
|
108
113
|
}));
|
|
114
|
+
return _fetchPreviewModlueData.apply(this, arguments);
|
|
115
|
+
}
|
|
116
|
+
function fetchModlueData(_x6, _x7) {
|
|
109
117
|
return _fetchModlueData.apply(this, arguments);
|
|
110
118
|
}
|
|
111
|
-
|
|
119
|
+
/**
|
|
120
|
+
* 获取数据模型下的所有数据集
|
|
121
|
+
* @param {{ dataModelKey }} params
|
|
122
|
+
*/
|
|
123
|
+
function _fetchModlueData() {
|
|
124
|
+
_fetchModlueData = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee4(dmCode, params) {
|
|
125
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee4$(_context4) {
|
|
126
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
127
|
+
case 0:
|
|
128
|
+
return _context4.abrupt("return", (0, _utils.request)("".concat(_ApiConfig.default.API_HOST, "/").concat(dmCode, "/ui/builder/noAuthFetchModule"), {
|
|
129
|
+
params: params
|
|
130
|
+
}));
|
|
131
|
+
case 1:
|
|
132
|
+
case "end":
|
|
133
|
+
return _context4.stop();
|
|
134
|
+
}
|
|
135
|
+
}, _callee4);
|
|
136
|
+
}));
|
|
137
|
+
return _fetchModlueData.apply(this, arguments);
|
|
138
|
+
}
|
|
139
|
+
function fetchAllDataset(_x8) {
|
|
112
140
|
return _fetchAllDataset.apply(this, arguments);
|
|
113
141
|
}
|
|
114
142
|
/**
|
|
@@ -116,22 +144,22 @@ function fetchAllDataset(_x6) {
|
|
|
116
144
|
* @data {{ uid, dataModelKey, addList: { code, datasetUid }}} body数据
|
|
117
145
|
*/
|
|
118
146
|
function _fetchAllDataset() {
|
|
119
|
-
_fetchAllDataset = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function
|
|
120
|
-
return (0, _regeneratorRuntime2.default)().wrap(function
|
|
121
|
-
while (1) switch (
|
|
147
|
+
_fetchAllDataset = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee5(params) {
|
|
148
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee5$(_context5) {
|
|
149
|
+
while (1) switch (_context5.prev = _context5.next) {
|
|
122
150
|
case 0:
|
|
123
|
-
return
|
|
151
|
+
return _context5.abrupt("return", (0, _utils.request)("".concat(API_PREFIX_PAGE, "/option/noAuthGetDataset"), {
|
|
124
152
|
params: params
|
|
125
153
|
}));
|
|
126
154
|
case 1:
|
|
127
155
|
case "end":
|
|
128
|
-
return
|
|
156
|
+
return _context5.stop();
|
|
129
157
|
}
|
|
130
|
-
},
|
|
158
|
+
}, _callee5);
|
|
131
159
|
}));
|
|
132
160
|
return _fetchAllDataset.apply(this, arguments);
|
|
133
161
|
}
|
|
134
|
-
function fetchAddDataset(
|
|
162
|
+
function fetchAddDataset(_x9) {
|
|
135
163
|
return _fetchAddDataset.apply(this, arguments);
|
|
136
164
|
}
|
|
137
165
|
/**
|
|
@@ -139,23 +167,23 @@ function fetchAddDataset(_x7) {
|
|
|
139
167
|
* @param {{datasetUid}} params
|
|
140
168
|
*/
|
|
141
169
|
function _fetchAddDataset() {
|
|
142
|
-
_fetchAddDataset = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function
|
|
143
|
-
return (0, _regeneratorRuntime2.default)().wrap(function
|
|
144
|
-
while (1) switch (
|
|
170
|
+
_fetchAddDataset = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee6(data) {
|
|
171
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee6$(_context6) {
|
|
172
|
+
while (1) switch (_context6.prev = _context6.next) {
|
|
145
173
|
case 0:
|
|
146
|
-
return
|
|
174
|
+
return _context6.abrupt("return", (0, _utils.request)("".concat(API_RREFIX_DATASET, "/add"), {
|
|
147
175
|
data: data,
|
|
148
176
|
method: 'POST'
|
|
149
177
|
}));
|
|
150
178
|
case 1:
|
|
151
179
|
case "end":
|
|
152
|
-
return
|
|
180
|
+
return _context6.stop();
|
|
153
181
|
}
|
|
154
|
-
},
|
|
182
|
+
}, _callee6);
|
|
155
183
|
}));
|
|
156
184
|
return _fetchAddDataset.apply(this, arguments);
|
|
157
185
|
}
|
|
158
|
-
function fetchFieldsByDataset(
|
|
186
|
+
function fetchFieldsByDataset(_x10) {
|
|
159
187
|
return _fetchFieldsByDataset.apply(this, arguments);
|
|
160
188
|
}
|
|
161
189
|
/**
|
|
@@ -164,22 +192,22 @@ function fetchFieldsByDataset(_x8) {
|
|
|
164
192
|
* @returns
|
|
165
193
|
*/
|
|
166
194
|
function _fetchFieldsByDataset() {
|
|
167
|
-
_fetchFieldsByDataset = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function
|
|
168
|
-
return (0, _regeneratorRuntime2.default)().wrap(function
|
|
169
|
-
while (1) switch (
|
|
195
|
+
_fetchFieldsByDataset = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee7(params) {
|
|
196
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee7$(_context7) {
|
|
197
|
+
while (1) switch (_context7.prev = _context7.next) {
|
|
170
198
|
case 0:
|
|
171
|
-
return
|
|
199
|
+
return _context7.abrupt("return", (0, _utils.request)("".concat(API_RREFIX_DATASET, "/field/readAll"), {
|
|
172
200
|
params: params
|
|
173
201
|
}));
|
|
174
202
|
case 1:
|
|
175
203
|
case "end":
|
|
176
|
-
return
|
|
204
|
+
return _context7.stop();
|
|
177
205
|
}
|
|
178
|
-
},
|
|
206
|
+
}, _callee7);
|
|
179
207
|
}));
|
|
180
208
|
return _fetchFieldsByDataset.apply(this, arguments);
|
|
181
209
|
}
|
|
182
|
-
function fetchFieldCondition(
|
|
210
|
+
function fetchFieldCondition(_x11) {
|
|
183
211
|
return _fetchFieldCondition.apply(this, arguments);
|
|
184
212
|
}
|
|
185
213
|
/**
|
|
@@ -187,22 +215,22 @@ function fetchFieldCondition(_x9) {
|
|
|
187
215
|
* @param {{moduleId,datasetId,moduleFieldId}} params
|
|
188
216
|
*/
|
|
189
217
|
function _fetchFieldCondition() {
|
|
190
|
-
_fetchFieldCondition = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function
|
|
191
|
-
return (0, _regeneratorRuntime2.default)().wrap(function
|
|
192
|
-
while (1) switch (
|
|
218
|
+
_fetchFieldCondition = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee8(params) {
|
|
219
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee8$(_context8) {
|
|
220
|
+
while (1) switch (_context8.prev = _context8.next) {
|
|
193
221
|
case 0:
|
|
194
|
-
return
|
|
222
|
+
return _context8.abrupt("return", (0, _utils.request)("".concat(API_PREFIX_PAGE, "/readFieldCondition"), {
|
|
195
223
|
params: params
|
|
196
224
|
}));
|
|
197
225
|
case 1:
|
|
198
226
|
case "end":
|
|
199
|
-
return
|
|
227
|
+
return _context8.stop();
|
|
200
228
|
}
|
|
201
|
-
},
|
|
229
|
+
}, _callee8);
|
|
202
230
|
}));
|
|
203
231
|
return _fetchFieldCondition.apply(this, arguments);
|
|
204
232
|
}
|
|
205
|
-
function fetchUpdateTitleField(
|
|
233
|
+
function fetchUpdateTitleField(_x12) {
|
|
206
234
|
return _fetchUpdateTitleField.apply(this, arguments);
|
|
207
235
|
}
|
|
208
236
|
/**
|
|
@@ -211,23 +239,23 @@ function fetchUpdateTitleField(_x10) {
|
|
|
211
239
|
* @returns
|
|
212
240
|
*/
|
|
213
241
|
function _fetchUpdateTitleField() {
|
|
214
|
-
_fetchUpdateTitleField = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function
|
|
215
|
-
return (0, _regeneratorRuntime2.default)().wrap(function
|
|
216
|
-
while (1) switch (
|
|
242
|
+
_fetchUpdateTitleField = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee9(data) {
|
|
243
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee9$(_context9) {
|
|
244
|
+
while (1) switch (_context9.prev = _context9.next) {
|
|
217
245
|
case 0:
|
|
218
|
-
return
|
|
246
|
+
return _context9.abrupt("return", (0, _utils.request)("".concat(API_RREFIX_DATASET, "/field/updateTitleField"), {
|
|
219
247
|
method: 'POST',
|
|
220
248
|
data: data
|
|
221
249
|
}));
|
|
222
250
|
case 1:
|
|
223
251
|
case "end":
|
|
224
|
-
return
|
|
252
|
+
return _context9.stop();
|
|
225
253
|
}
|
|
226
|
-
},
|
|
254
|
+
}, _callee9);
|
|
227
255
|
}));
|
|
228
256
|
return _fetchUpdateTitleField.apply(this, arguments);
|
|
229
257
|
}
|
|
230
|
-
function fetchUpdateUniqueField(
|
|
258
|
+
function fetchUpdateUniqueField(_x13) {
|
|
231
259
|
return _fetchUpdateUniqueField.apply(this, arguments);
|
|
232
260
|
}
|
|
233
261
|
/**
|
|
@@ -235,23 +263,23 @@ function fetchUpdateUniqueField(_x11) {
|
|
|
235
263
|
* @param {*} data
|
|
236
264
|
*/
|
|
237
265
|
function _fetchUpdateUniqueField() {
|
|
238
|
-
_fetchUpdateUniqueField = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function
|
|
239
|
-
return (0, _regeneratorRuntime2.default)().wrap(function
|
|
240
|
-
while (1) switch (
|
|
266
|
+
_fetchUpdateUniqueField = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee10(data) {
|
|
267
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee10$(_context10) {
|
|
268
|
+
while (1) switch (_context10.prev = _context10.next) {
|
|
241
269
|
case 0:
|
|
242
|
-
return
|
|
270
|
+
return _context10.abrupt("return", (0, _utils.request)("".concat(API_RREFIX_DATASET, "/field/updateUniqueField"), {
|
|
243
271
|
method: 'POST',
|
|
244
272
|
data: data
|
|
245
273
|
}));
|
|
246
274
|
case 1:
|
|
247
275
|
case "end":
|
|
248
|
-
return
|
|
276
|
+
return _context10.stop();
|
|
249
277
|
}
|
|
250
|
-
},
|
|
278
|
+
}, _callee10);
|
|
251
279
|
}));
|
|
252
280
|
return _fetchUpdateUniqueField.apply(this, arguments);
|
|
253
281
|
}
|
|
254
|
-
function fetchAddFieldAttrs(
|
|
282
|
+
function fetchAddFieldAttrs(_x14) {
|
|
255
283
|
return _fetchAddFieldAttrs.apply(this, arguments);
|
|
256
284
|
}
|
|
257
285
|
/**
|
|
@@ -259,23 +287,23 @@ function fetchAddFieldAttrs(_x12) {
|
|
|
259
287
|
* @param {*} data
|
|
260
288
|
*/
|
|
261
289
|
function _fetchAddFieldAttrs() {
|
|
262
|
-
_fetchAddFieldAttrs = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function
|
|
263
|
-
return (0, _regeneratorRuntime2.default)().wrap(function
|
|
264
|
-
while (1) switch (
|
|
290
|
+
_fetchAddFieldAttrs = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee11(data) {
|
|
291
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee11$(_context11) {
|
|
292
|
+
while (1) switch (_context11.prev = _context11.next) {
|
|
265
293
|
case 0:
|
|
266
|
-
return
|
|
294
|
+
return _context11.abrupt("return", (0, _utils.request)("".concat(API_RREFIX_DATASET, "/field/addAttributes"), {
|
|
267
295
|
data: data,
|
|
268
296
|
method: 'POST'
|
|
269
297
|
}));
|
|
270
298
|
case 1:
|
|
271
299
|
case "end":
|
|
272
|
-
return
|
|
300
|
+
return _context11.stop();
|
|
273
301
|
}
|
|
274
|
-
},
|
|
302
|
+
}, _callee11);
|
|
275
303
|
}));
|
|
276
304
|
return _fetchAddFieldAttrs.apply(this, arguments);
|
|
277
305
|
}
|
|
278
|
-
function fetchDelAttrs(
|
|
306
|
+
function fetchDelAttrs(_x15) {
|
|
279
307
|
return _fetchDelAttrs.apply(this, arguments);
|
|
280
308
|
}
|
|
281
309
|
/**
|
|
@@ -283,23 +311,23 @@ function fetchDelAttrs(_x13) {
|
|
|
283
311
|
* @param {*} params
|
|
284
312
|
*/
|
|
285
313
|
function _fetchDelAttrs() {
|
|
286
|
-
_fetchDelAttrs = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function
|
|
287
|
-
return (0, _regeneratorRuntime2.default)().wrap(function
|
|
288
|
-
while (1) switch (
|
|
314
|
+
_fetchDelAttrs = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee12(data) {
|
|
315
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee12$(_context12) {
|
|
316
|
+
while (1) switch (_context12.prev = _context12.next) {
|
|
289
317
|
case 0:
|
|
290
|
-
return
|
|
318
|
+
return _context12.abrupt("return", (0, _utils.request)("".concat(API_RREFIX_DATASET, "/field/deleteAttributes"), {
|
|
291
319
|
data: data,
|
|
292
320
|
method: 'POST'
|
|
293
321
|
}));
|
|
294
322
|
case 1:
|
|
295
323
|
case "end":
|
|
296
|
-
return
|
|
324
|
+
return _context12.stop();
|
|
297
325
|
}
|
|
298
|
-
},
|
|
326
|
+
}, _callee12);
|
|
299
327
|
}));
|
|
300
328
|
return _fetchDelAttrs.apply(this, arguments);
|
|
301
329
|
}
|
|
302
|
-
function fetchUpdateFieldAttrs(
|
|
330
|
+
function fetchUpdateFieldAttrs(_x16) {
|
|
303
331
|
return _fetchUpdateFieldAttrs.apply(this, arguments);
|
|
304
332
|
}
|
|
305
333
|
/**
|
|
@@ -308,23 +336,23 @@ function fetchUpdateFieldAttrs(_x14) {
|
|
|
308
336
|
* @returns
|
|
309
337
|
*/
|
|
310
338
|
function _fetchUpdateFieldAttrs() {
|
|
311
|
-
_fetchUpdateFieldAttrs = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function
|
|
312
|
-
return (0, _regeneratorRuntime2.default)().wrap(function
|
|
313
|
-
while (1) switch (
|
|
339
|
+
_fetchUpdateFieldAttrs = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee13(data) {
|
|
340
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee13$(_context13) {
|
|
341
|
+
while (1) switch (_context13.prev = _context13.next) {
|
|
314
342
|
case 0:
|
|
315
|
-
return
|
|
343
|
+
return _context13.abrupt("return", (0, _utils.request)("".concat(API_RREFIX_DATASET, "/field/updateAttributes"), {
|
|
316
344
|
data: data,
|
|
317
345
|
method: 'POST'
|
|
318
346
|
}));
|
|
319
347
|
case 1:
|
|
320
348
|
case "end":
|
|
321
|
-
return
|
|
349
|
+
return _context13.stop();
|
|
322
350
|
}
|
|
323
|
-
},
|
|
351
|
+
}, _callee13);
|
|
324
352
|
}));
|
|
325
353
|
return _fetchUpdateFieldAttrs.apply(this, arguments);
|
|
326
354
|
}
|
|
327
|
-
function fetchAttrs(
|
|
355
|
+
function fetchAttrs(_x17) {
|
|
328
356
|
return _fetchAttrs.apply(this, arguments);
|
|
329
357
|
}
|
|
330
358
|
/**
|
|
@@ -333,22 +361,22 @@ function fetchAttrs(_x15) {
|
|
|
333
361
|
* @returns
|
|
334
362
|
*/
|
|
335
363
|
function _fetchAttrs() {
|
|
336
|
-
_fetchAttrs = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function
|
|
337
|
-
return (0, _regeneratorRuntime2.default)().wrap(function
|
|
338
|
-
while (1) switch (
|
|
364
|
+
_fetchAttrs = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee14(params) {
|
|
365
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee14$(_context14) {
|
|
366
|
+
while (1) switch (_context14.prev = _context14.next) {
|
|
339
367
|
case 0:
|
|
340
|
-
return
|
|
368
|
+
return _context14.abrupt("return", (0, _utils.request)("".concat(API_RREFIX_DATASET, "/field/readAttributes"), {
|
|
341
369
|
params: params
|
|
342
370
|
}));
|
|
343
371
|
case 1:
|
|
344
372
|
case "end":
|
|
345
|
-
return
|
|
373
|
+
return _context14.stop();
|
|
346
374
|
}
|
|
347
|
-
},
|
|
375
|
+
}, _callee14);
|
|
348
376
|
}));
|
|
349
377
|
return _fetchAttrs.apply(this, arguments);
|
|
350
378
|
}
|
|
351
|
-
function fetchAllBehavior(
|
|
379
|
+
function fetchAllBehavior(_x18) {
|
|
352
380
|
return _fetchAllBehavior.apply(this, arguments);
|
|
353
381
|
}
|
|
354
382
|
/**
|
|
@@ -357,51 +385,62 @@ function fetchAllBehavior(_x16) {
|
|
|
357
385
|
* @returns
|
|
358
386
|
*/
|
|
359
387
|
function _fetchAllBehavior() {
|
|
360
|
-
_fetchAllBehavior = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function
|
|
361
|
-
return (0, _regeneratorRuntime2.default)().wrap(function
|
|
362
|
-
while (1) switch (
|
|
388
|
+
_fetchAllBehavior = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee15(params) {
|
|
389
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee15$(_context15) {
|
|
390
|
+
while (1) switch (_context15.prev = _context15.next) {
|
|
363
391
|
case 0:
|
|
364
|
-
return
|
|
392
|
+
return _context15.abrupt("return", (0, _utils.request)("".concat(API_PREFIX_MODULE, "/behavior/readAll"), {
|
|
365
393
|
params: params
|
|
366
394
|
}));
|
|
367
395
|
case 1:
|
|
368
396
|
case "end":
|
|
369
|
-
return
|
|
397
|
+
return _context15.stop();
|
|
370
398
|
}
|
|
371
|
-
},
|
|
399
|
+
}, _callee15);
|
|
372
400
|
}));
|
|
373
401
|
return _fetchAllBehavior.apply(this, arguments);
|
|
374
402
|
}
|
|
375
|
-
function fetchAllSerials(
|
|
403
|
+
function fetchAllSerials(_x19) {
|
|
376
404
|
return _fetchAllSerials.apply(this, arguments);
|
|
377
405
|
}
|
|
406
|
+
/**
|
|
407
|
+
* 执行行为
|
|
408
|
+
* @param {*} params
|
|
409
|
+
* @param {*} data
|
|
410
|
+
* @returns
|
|
411
|
+
*/
|
|
378
412
|
function _fetchAllSerials() {
|
|
379
|
-
_fetchAllSerials = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function
|
|
380
|
-
return (0, _regeneratorRuntime2.default)().wrap(function
|
|
381
|
-
while (1) switch (
|
|
413
|
+
_fetchAllSerials = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee16(params) {
|
|
414
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee16$(_context16) {
|
|
415
|
+
while (1) switch (_context16.prev = _context16.next) {
|
|
382
416
|
case 0:
|
|
383
|
-
return
|
|
417
|
+
return _context16.abrupt("return", (0, _utils.request)("".concat(API_PREFIX_MODULE, "/Serials/readAll"), {
|
|
384
418
|
params: params
|
|
385
419
|
}));
|
|
386
420
|
case 1:
|
|
387
421
|
case "end":
|
|
388
|
-
return
|
|
422
|
+
return _context16.stop();
|
|
389
423
|
}
|
|
390
|
-
},
|
|
424
|
+
}, _callee16);
|
|
391
425
|
}));
|
|
392
426
|
return _fetchAllSerials.apply(this, arguments);
|
|
393
427
|
}
|
|
394
|
-
function fetchCallBehavior(
|
|
428
|
+
function fetchCallBehavior(_x20, _x21) {
|
|
395
429
|
return _fetchCallBehavior.apply(this, arguments);
|
|
396
430
|
}
|
|
431
|
+
/**
|
|
432
|
+
* 清除当前模块缓存
|
|
433
|
+
* @param {{moduleCode}} params
|
|
434
|
+
* @returns
|
|
435
|
+
*/
|
|
397
436
|
function _fetchCallBehavior() {
|
|
398
|
-
_fetchCallBehavior = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function
|
|
437
|
+
_fetchCallBehavior = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee17(params, data) {
|
|
399
438
|
var mdCode;
|
|
400
|
-
return (0, _regeneratorRuntime2.default)().wrap(function
|
|
401
|
-
while (1) switch (
|
|
439
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee17$(_context17) {
|
|
440
|
+
while (1) switch (_context17.prev = _context17.next) {
|
|
402
441
|
case 0:
|
|
403
442
|
mdCode = window[_constants.DATA_MODEL_CODE_KEY];
|
|
404
|
-
return
|
|
443
|
+
return _context17.abrupt("return", (0, _utils.request)("".concat(_ApiConfig.default.API_HOST, "/").concat(mdCode, "/to/behavior/call"), {
|
|
405
444
|
method: 'POST',
|
|
406
445
|
data: data,
|
|
407
446
|
params: params,
|
|
@@ -411,9 +450,53 @@ function _fetchCallBehavior() {
|
|
|
411
450
|
}));
|
|
412
451
|
case 2:
|
|
413
452
|
case "end":
|
|
414
|
-
return
|
|
453
|
+
return _context17.stop();
|
|
415
454
|
}
|
|
416
|
-
},
|
|
455
|
+
}, _callee17);
|
|
417
456
|
}));
|
|
418
457
|
return _fetchCallBehavior.apply(this, arguments);
|
|
458
|
+
}
|
|
459
|
+
function fetchClearCache(_x22) {
|
|
460
|
+
return _fetchClearCache.apply(this, arguments);
|
|
461
|
+
}
|
|
462
|
+
/**
|
|
463
|
+
* 更新页面配置数据
|
|
464
|
+
* @param {*} data
|
|
465
|
+
* @returns
|
|
466
|
+
*/
|
|
467
|
+
function _fetchClearCache() {
|
|
468
|
+
_fetchClearCache = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee18(params) {
|
|
469
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee18$(_context18) {
|
|
470
|
+
while (1) switch (_context18.prev = _context18.next) {
|
|
471
|
+
case 0:
|
|
472
|
+
return _context18.abrupt("return", (0, _utils.request)("".concat(_ApiConfig.default.LUCKDA_HOST, "/cache/manage/noAuthModuleConfigClear"), {
|
|
473
|
+
params: params
|
|
474
|
+
}));
|
|
475
|
+
case 1:
|
|
476
|
+
case "end":
|
|
477
|
+
return _context18.stop();
|
|
478
|
+
}
|
|
479
|
+
}, _callee18);
|
|
480
|
+
}));
|
|
481
|
+
return _fetchClearCache.apply(this, arguments);
|
|
482
|
+
}
|
|
483
|
+
function fetchUpdatePageData(_x23) {
|
|
484
|
+
return _fetchUpdatePageData.apply(this, arguments);
|
|
485
|
+
}
|
|
486
|
+
function _fetchUpdatePageData() {
|
|
487
|
+
_fetchUpdatePageData = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee19(data) {
|
|
488
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee19$(_context19) {
|
|
489
|
+
while (1) switch (_context19.prev = _context19.next) {
|
|
490
|
+
case 0:
|
|
491
|
+
return _context19.abrupt("return", (0, _utils.request)("".concat(API_PREFIX_PAGE, "/data/update"), {
|
|
492
|
+
method: 'POST',
|
|
493
|
+
data: data
|
|
494
|
+
}));
|
|
495
|
+
case 1:
|
|
496
|
+
case "end":
|
|
497
|
+
return _context19.stop();
|
|
498
|
+
}
|
|
499
|
+
}, _callee19);
|
|
500
|
+
}));
|
|
501
|
+
return _fetchUpdatePageData.apply(this, arguments);
|
|
419
502
|
}
|
|
@@ -3,13 +3,14 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.RUNTIME = exports.NO_DROPABLE = exports.NO_DRAGABLE = exports.LC_COMPONENT_UNIT_KEY = exports.LC_COMPONENT_UNIT = exports.LC_BUILDIN_UNIT_KEY_LIST = exports.LC_BUILDIN_UNIT_KEY = exports.FIELD_SCOPES = exports.DATA_MODEL_CODE_KEY = exports.COOKIE_VIRTUAL_ACCOUNT_KEY = exports.COOKIE_RUNTIME_KEY = exports.CONTAINER_UNITS = void 0;
|
|
7
7
|
var RUNTIME = exports.RUNTIME = {
|
|
8
8
|
LIVE: 'live',
|
|
9
9
|
DESIGN: 'design',
|
|
10
10
|
PREVIEW: 'preview'
|
|
11
11
|
};
|
|
12
|
-
var
|
|
12
|
+
var COOKIE_RUNTIME_KEY = exports.COOKIE_RUNTIME_KEY = 'Lowcode-Runtime';
|
|
13
|
+
var COOKIE_VIRTUAL_ACCOUNT_KEY = exports.COOKIE_VIRTUAL_ACCOUNT_KEY = 'Lowcode-Account';
|
|
13
14
|
var DATA_MODEL_CODE_KEY = exports.DATA_MODEL_CODE_KEY = 'Lowcode-Data-Model-Code';
|
|
14
15
|
var LC_COMPONENT_UNIT_KEY = exports.LC_COMPONENT_UNIT_KEY = 'luckda-unitmark';
|
|
15
16
|
var LC_COMPONENT_UNIT = exports.LC_COMPONENT_UNIT = 'lc-component';
|
|
@@ -23,7 +23,8 @@
|
|
|
23
23
|
"info"
|
|
24
24
|
],
|
|
25
25
|
"cols": 4,
|
|
26
|
-
"readOnly": false
|
|
26
|
+
"readOnly": false,
|
|
27
|
+
"order": 1
|
|
27
28
|
}
|
|
28
29
|
],
|
|
29
30
|
"serialEffect": "hidden",
|
|
@@ -36,7 +37,6 @@
|
|
|
36
37
|
"table": {
|
|
37
38
|
"readOnly": false,
|
|
38
39
|
"suppressPreset": false,
|
|
39
|
-
"width": "100%",
|
|
40
40
|
"height": "100%",
|
|
41
41
|
"bordered": false,
|
|
42
42
|
"popTitleKey": "title",
|
|
@@ -48,12 +48,11 @@
|
|
|
48
48
|
"uploadForm": {
|
|
49
49
|
"readOnly": false,
|
|
50
50
|
"suppressPreset": false,
|
|
51
|
-
"
|
|
52
|
-
"height": "100%",
|
|
51
|
+
"height": "300px",
|
|
53
52
|
"bordered": false,
|
|
54
53
|
"showNote": false,
|
|
55
54
|
"zipName": "download",
|
|
56
|
-
"useResetActions":
|
|
55
|
+
"useResetActions": false
|
|
57
56
|
}
|
|
58
57
|
},
|
|
59
58
|
"advance": {
|