@luck-design-biz/luckda 1.0.2-9 → 1.0.3-13tl
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 +1 -0
- package/es/components/LdFormList/index.js +6 -4
- package/es/components/LdGrid/index.js +1 -4
- package/es/helper/action.js +2 -0
- package/es/locales/zh-CN.js +18 -1
- package/es/lowcode/constants/api-url.js +329 -187
- 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.api.json +0 -0
- package/es/lowcode/engine/meta/dialog.props.default.json +4 -1
- package/es/lowcode/engine/meta/dialog.props.json +24 -4
- package/es/lowcode/engine/meta/drawer.props.json +1 -1
- package/es/lowcode/engine/meta/form.props.json +1 -1
- package/es/lowcode/engine/provider/ContextProvider/router.js +21 -1
- package/es/lowcode/painter/DesignOperator.js +4 -3
- package/es/lowcode/painter/History.js +300 -0
- package/es/lowcode/painter/Ribbon.js +37 -1
- package/es/lowcode/painter/components/AdvancePanel.js +1 -1
- package/es/lowcode/painter/components/code-editor/DiffEditor.js +41 -0
- package/es/lowcode/painter/components/field-setting/FieldAttrs.js +2 -2
- package/es/lowcode/painter/components/field-setting/SettingUI.js +0 -1
- package/es/lowcode/painter/panel-section/ConditionCheck.js +71 -0
- package/es/lowcode/painter/panel-section/DialogSize.js +76 -0
- package/es/lowcode/painter/panel-section/DialogWidthHeight.js +60 -0
- package/es/lowcode/painter/panel-section/JSEditor/ToolBar.js +61 -6
- package/es/lowcode/painter/panel-section/JSEditor/index.js +37 -5
- package/es/lowcode/painter/panel-section/PageLayoutDisplay.js +7 -2
- package/es/lowcode/painter/style/action-bind-modal.less +1 -1
- package/es/lowcode/painter/style/history.less +46 -0
- package/es/lowcode/painter/style/outline.less +1 -1
- package/es/lowcode/view/lc-components/Box/meta.json +1 -1
- package/es/lowcode/view/lc-components/Dialog/index.js +12 -5
- package/es/lowcode/view/lc-components/Dialog/meta.json +24 -4
- package/es/lowcode/view/lc-components/Drawer/index.js +3 -3
- package/es/lowcode/view/lc-components/Drawer/meta.json +1 -1
- package/es/lowcode/view/lc-components/Form/index.js +12 -19
- package/es/lowcode/view/lc-components/Form/meta.json +1 -1
- package/es/lowcode/view/lc-components/PageLayout/index.js +1 -1
- package/es/lowcode/view/lc-components/Table/components/TopImex.js +33 -16
- package/es/lowcode/view/lc-components/Table/index.js +5 -4
- package/es/upload/FilesWall/index.js +16 -6
- package/es/upload/Form/gridForm.js +16 -6
- package/es/upload/FormItem/index.js +16 -4
- package/es/utils/form.js +4 -3
- package/es/utils/grid.js +10 -2
- package/lib/components/LDActions/index.js +1 -0
- package/lib/components/LdFormList/index.js +6 -4
- package/lib/components/LdGrid/index.js +1 -4
- package/lib/helper/action.js +2 -0
- package/lib/locales/zh-CN.js +18 -1
- package/lib/lowcode/constants/api-url.js +329 -188
- 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.api.json +0 -0
- package/lib/lowcode/engine/meta/dialog.props.default.json +4 -1
- package/lib/lowcode/engine/meta/dialog.props.json +24 -4
- package/lib/lowcode/engine/meta/drawer.props.json +1 -1
- package/lib/lowcode/engine/meta/form.props.json +1 -1
- package/lib/lowcode/engine/provider/ContextProvider/router.js +22 -1
- package/lib/lowcode/painter/DesignOperator.js +4 -3
- package/lib/lowcode/painter/History.js +308 -0
- package/lib/lowcode/painter/Ribbon.js +37 -1
- package/lib/lowcode/painter/components/AdvancePanel.js +1 -1
- package/lib/lowcode/painter/components/code-editor/DiffEditor.js +49 -0
- package/lib/lowcode/painter/components/field-setting/FieldAttrs.js +2 -2
- package/lib/lowcode/painter/components/field-setting/SettingUI.js +0 -1
- package/lib/lowcode/painter/panel-section/ConditionCheck.js +79 -0
- package/lib/lowcode/painter/panel-section/DialogSize.js +83 -0
- package/lib/lowcode/painter/panel-section/DialogWidthHeight.js +67 -0
- package/lib/lowcode/painter/panel-section/JSEditor/ToolBar.js +61 -6
- package/lib/lowcode/painter/panel-section/JSEditor/index.js +36 -4
- package/lib/lowcode/painter/panel-section/PageLayoutDisplay.js +7 -2
- package/lib/lowcode/painter/style/action-bind-modal.less +1 -1
- package/lib/lowcode/painter/style/history.less +46 -0
- package/lib/lowcode/painter/style/outline.less +1 -1
- package/lib/lowcode/view/lc-components/Box/meta.json +1 -1
- package/lib/lowcode/view/lc-components/Dialog/index.js +10 -3
- package/lib/lowcode/view/lc-components/Dialog/meta.json +24 -4
- package/lib/lowcode/view/lc-components/Drawer/index.js +1 -1
- package/lib/lowcode/view/lc-components/Drawer/meta.json +1 -1
- package/lib/lowcode/view/lc-components/Form/index.js +12 -19
- package/lib/lowcode/view/lc-components/Form/meta.json +1 -1
- package/lib/lowcode/view/lc-components/PageLayout/index.js +1 -1
- package/lib/lowcode/view/lc-components/Table/components/TopImex.js +32 -15
- package/lib/lowcode/view/lc-components/Table/index.js +5 -4
- package/lib/upload/FilesWall/index.js +13 -3
- package/lib/upload/Form/gridForm.js +13 -3
- package/lib/upload/FormItem/index.js +15 -3
- package/lib/utils/form.js +3 -2
- package/lib/utils/grid.js +11 -3
- package/package.json +1 -2
- package/es/lowcode/engine/meta/fielddatadic.props.default.json +0 -16
- package/es/lowcode/engine/meta/fielddatadic.props.json +0 -73
- package/lib/lowcode/engine/meta/fielddatadic.props.default.json +0 -16
- package/lib/lowcode/engine/meta/fielddatadic.props.json +0 -73
|
@@ -28,6 +28,7 @@ var DisplayComp = function DisplayComp(_ref) {
|
|
|
28
28
|
return /*#__PURE__*/React.createElement(Button, _extends({}, props, {
|
|
29
29
|
disabled: action.serialEffect === 'disable',
|
|
30
30
|
className: classNames(styles[action.riskLevel], _defineProperty({}, className, !!className)),
|
|
31
|
+
type: action.riskLevel,
|
|
31
32
|
onClick: onClick
|
|
32
33
|
}), children);
|
|
33
34
|
};
|
|
@@ -6,7 +6,7 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
|
6
6
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
7
7
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
8
8
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
9
|
-
var _excluded = ["namespace", "formState", "formMode", "formOperates", "loading", "apiRef", "wrapperRef", "readOnly", "mainFormLdId", "renderFormList", "renderAffixLeft", "renderAffixRight", "beforeSubmit", "showSaveBtn", "saveBtnTitle", "affixLayout", "getContainer", "onValueChange", "afterSubmit", "renderFormExtra", "bpmButtonProps", "setVerifyRules", "afterSubmitLoading", "showConfigBtn", "affixBarZIndex"],
|
|
9
|
+
var _excluded = ["namespace", "formState", "formMode", "formOperates", "loading", "apiRef", "wrapperRef", "readOnly", "mainFormLdId", "renderFormList", "renderAffixLeft", "renderAffixRight", "beforeSubmit", "showSaveBtn", "saveBtnTitle", "affixLayout", "getContainer", "onValueChange", "afterSubmit", "renderFormExtra", "bpmButtonProps", "setVerifyRules", "afterSubmitLoading", "validateErrorCallback", "showConfigBtn", "affixBarZIndex"],
|
|
10
10
|
_excluded2 = ["dataSets", "doAction", "resources"],
|
|
11
11
|
_excluded3 = ["id", "header", "title", "readOnly", "extraConfig", "renderTopLeft", "serial"],
|
|
12
12
|
_excluded4 = ["ldId", "initData", "overModel"];
|
|
@@ -59,6 +59,7 @@ var LdFormList = function LdFormList(_ref) {
|
|
|
59
59
|
bpmButtonProps = _ref$bpmButtonProps === void 0 ? {} : _ref$bpmButtonProps,
|
|
60
60
|
setVerifyRules = _ref.setVerifyRules,
|
|
61
61
|
afterSubmitLoading = _ref.afterSubmitLoading,
|
|
62
|
+
validateErrorCallback = _ref.validateErrorCallback,
|
|
62
63
|
_ref$showConfigBtn = _ref.showConfigBtn,
|
|
63
64
|
showConfigBtn = _ref$showConfigBtn === void 0 ? true : _ref$showConfigBtn,
|
|
64
65
|
affixBarZIndex = _ref.affixBarZIndex,
|
|
@@ -221,9 +222,9 @@ var LdFormList = function LdFormList(_ref) {
|
|
|
221
222
|
formUid: formUid,
|
|
222
223
|
mainDataSetKey: mainDataSetKey
|
|
223
224
|
}, function (success, mainKey, res) {
|
|
224
|
-
afterSubmitLoading && afterSubmitLoading(res);
|
|
225
225
|
setSubmitLoading(false);
|
|
226
226
|
if (success) {
|
|
227
|
+
afterSubmitLoading === null || afterSubmitLoading === void 0 || afterSubmitLoading(res);
|
|
227
228
|
var mainFormData = res.detail[res.list[0]];
|
|
228
229
|
if (afterSubmit) {
|
|
229
230
|
afterSubmit(success, mainKey, res);
|
|
@@ -231,10 +232,11 @@ var LdFormList = function LdFormList(_ref) {
|
|
|
231
232
|
var _formListRef$current, _formListRef$current2;
|
|
232
233
|
props.parentModelName && ((_formListRef$current = formListRef.current) === null || _formListRef$current === void 0 ? void 0 : _formListRef$current.doParentsQuery());
|
|
233
234
|
(_formListRef$current2 = formListRef.current) === null || _formListRef$current2 === void 0 || _formListRef$current2.onQuery(null, _defineProperty({}, mainFormLdId, mainFormData), function () {
|
|
234
|
-
|
|
235
|
+
var _formListRef$current4;
|
|
236
|
+
(_formListRef$current4 = formListRef.current) === null || _formListRef$current4 === void 0 || _formListRef$current4.setFormMode('info');
|
|
235
237
|
});
|
|
236
238
|
}
|
|
237
|
-
}
|
|
239
|
+
} else validateErrorCallback === null || validateErrorCallback === void 0 || validateErrorCallback();
|
|
238
240
|
});
|
|
239
241
|
};
|
|
240
242
|
var formConfig = _objectSpread(_objectSpread({
|
|
@@ -100,7 +100,7 @@ var LdGrid = function LdGrid(_ref) {
|
|
|
100
100
|
*/
|
|
101
101
|
var _columns = useCreation(function () {
|
|
102
102
|
if (columnsReset) {
|
|
103
|
-
if (isFunction) {
|
|
103
|
+
if (isFunction(columnsReset)) {
|
|
104
104
|
return columnsReset(columns);
|
|
105
105
|
}
|
|
106
106
|
return columnsReset;
|
|
@@ -144,9 +144,6 @@ var LdGrid = function LdGrid(_ref) {
|
|
|
144
144
|
unclosableSet: unclosableSet,
|
|
145
145
|
onQuery: onQuery
|
|
146
146
|
});
|
|
147
|
-
|
|
148
|
-
// console.log('_columns',columns,_columns)
|
|
149
|
-
|
|
150
147
|
return /*#__PURE__*/React.createElement(GridList, _extends({
|
|
151
148
|
columns: _columns
|
|
152
149
|
// 资源串、行为配置
|
package/es/helper/action.js
CHANGED
package/es/locales/zh-CN.js
CHANGED
|
@@ -16,12 +16,22 @@ export default {
|
|
|
16
16
|
"luckda.lowcode.modal": "模态视图层",
|
|
17
17
|
"luckda.lowcode.painter.I18n.search": "搜索文案",
|
|
18
18
|
"luckda.lowcode.painter.I18n.add": "新增文案",
|
|
19
|
+
"luckda.lowcode.version.delete": "你确定要删除该历史版本吗?",
|
|
20
|
+
"luckda.lowcode.version.confirm.recover": "你确定要还原到该历史版本吗?",
|
|
21
|
+
"luckda.lowcode.version.recover": "还原版本",
|
|
22
|
+
"luckda.lowcode.error.pagedata": "页面数据错误",
|
|
23
|
+
"luckda.lowcode.version.placeholder.search": "请输入查询内容",
|
|
24
|
+
"app.base.operate.delete": "删除",
|
|
25
|
+
"luckda.lowcode.version.diff": "差异比对",
|
|
26
|
+
"luckda.lowcode.version.use": "使用",
|
|
27
|
+
"luckda.lowcode.version.add": "添加到历史版本",
|
|
28
|
+
"luckda.lowcode.version.placeholder.title": "请输入版本标题",
|
|
29
|
+
"luckda.lowcode.version.placeholder.note": "请输入版本描述",
|
|
19
30
|
"luckda.lowcode.design.toolbar.save.on": "保存中...",
|
|
20
31
|
"luckda.lowcode.design.toolbar.save.success": "保存成功",
|
|
21
32
|
"luckda.lowcode.design.toolbar.save.error": "保存失败",
|
|
22
33
|
"luckda.lowcode.design.toolbar.clear.tip": "清除提示",
|
|
23
34
|
"luckda.lowcode.design.toolbar.clear": "清除缓存",
|
|
24
|
-
"luckda.lowcode.error.pagedata": "页面数据错误",
|
|
25
35
|
"luckda.lowcode.not.mobile": "此功能暂未开放",
|
|
26
36
|
"luckda.lowcode.design.toolbar.pageAttrs": "页面属性",
|
|
27
37
|
"luckda.lowcode.design.toolbar.debug": "调试",
|
|
@@ -83,6 +93,11 @@ export default {
|
|
|
83
93
|
"luckda.lowcode.painter.panel-section.fieldsSetting.field": "数据字段",
|
|
84
94
|
"luckda.lowcode.painter.panel-section.fieldsSetting.title": "标题",
|
|
85
95
|
"luckda.lowcode.painter.panel-section.fieldsSetting.batch": "批量设置",
|
|
96
|
+
"luckda.lowcode.painter.panel-section.dialogSize.size.small": "小",
|
|
97
|
+
"luckda.lowcode.painter.panel-section.dialogSize.size.default": "中",
|
|
98
|
+
"luckda.lowcode.painter.panel-section.dialogSize.size.large": "大",
|
|
99
|
+
"luckda.lowcode.painter.panel-section.dialogSize.size.full": "全屏",
|
|
100
|
+
"luckda.lowcode.painter.panel-section.dialogSize.size.custom": "定制",
|
|
86
101
|
"luckda.lowcode.painter.dateSetSelector.setting": "配置字段",
|
|
87
102
|
"luckda.lowcode.painter.dateSetSelector.sync": "同步数据",
|
|
88
103
|
"luckda.lowcode.painter.panel-section.complexPop.assisted": "辅助选择",
|
|
@@ -168,7 +183,9 @@ export default {
|
|
|
168
183
|
"luckda.lowcode.painter.panel-section.style-panel.border.width.ph": "线宽",
|
|
169
184
|
"luckda.lowcode.painter.panel-section.style-panel.border.color": "颜色",
|
|
170
185
|
"luckda.lowcode.painter.panel-section.style-panel.background": "背景",
|
|
186
|
+
"luckda.lowcode.painter.panel-section.jseditor.clear": "确定执行操作吗?",
|
|
171
187
|
"luckda.lowcode.painter.panel-section.jseditor.saveto": "保存为",
|
|
188
|
+
"app.base.operate.clear": "清空",
|
|
172
189
|
"app.base.operate.ok": "确定",
|
|
173
190
|
"luckda.lowcode.painter.panel-section.blocksEditor.auto": "表单",
|
|
174
191
|
"luckda.lowcode.painter.panel-section.blocksEditor.grid": "表格",
|