@steedos-widgets/amis-lib 6.10.1-beta.36 → 6.10.1-beta.37
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/dist/cjs/tsconfig.tsbuildinfo +1 -1
- package/dist/index.cjs.js +30 -7
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +30 -7
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +4 -4
- package/dist/index.umd.js.map +1 -1
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -1546,6 +1546,7 @@ var frontend_objects_related_alert_start$1 = "No related table fields associated
|
|
|
1546
1546
|
var frontend_objects_related_alert_end$1 = "were found.";
|
|
1547
1547
|
var frontend_no_records_found$1 = "No records found.";
|
|
1548
1548
|
var frontend_records_no_allowedit$1 = "You do not have edit permission for this record";
|
|
1549
|
+
var frontend_app_menu_save_order_group_nesting_error$1 = "Group nesting is not supported";
|
|
1549
1550
|
var en_us = {
|
|
1550
1551
|
frontend_field_group_generalization: frontend_field_group_generalization$1,
|
|
1551
1552
|
frontend_download: frontend_download$1,
|
|
@@ -1636,7 +1637,8 @@ var en_us = {
|
|
|
1636
1637
|
frontend_objects_related_alert_start: frontend_objects_related_alert_start$1,
|
|
1637
1638
|
frontend_objects_related_alert_end: frontend_objects_related_alert_end$1,
|
|
1638
1639
|
frontend_no_records_found: frontend_no_records_found$1,
|
|
1639
|
-
frontend_records_no_allowedit: frontend_records_no_allowedit$1
|
|
1640
|
+
frontend_records_no_allowedit: frontend_records_no_allowedit$1,
|
|
1641
|
+
frontend_app_menu_save_order_group_nesting_error: frontend_app_menu_save_order_group_nesting_error$1
|
|
1640
1642
|
};
|
|
1641
1643
|
|
|
1642
1644
|
var frontend_field_group_generalization = "通用";
|
|
@@ -1730,6 +1732,7 @@ var frontend_objects_related_alert_start = "未找到与相关列表对象";
|
|
|
1730
1732
|
var frontend_objects_related_alert_end = "关联的相关表字段";
|
|
1731
1733
|
var frontend_no_records_found = "无法找到记录";
|
|
1732
1734
|
var frontend_records_no_allowedit = "您对这条记录没有编辑权限";
|
|
1735
|
+
var frontend_app_menu_save_order_group_nesting_error = "不支持分组嵌套";
|
|
1733
1736
|
var zh_cn = {
|
|
1734
1737
|
frontend_field_group_generalization: frontend_field_group_generalization,
|
|
1735
1738
|
frontend_download: frontend_download,
|
|
@@ -1821,7 +1824,8 @@ var zh_cn = {
|
|
|
1821
1824
|
frontend_objects_related_alert_start: frontend_objects_related_alert_start,
|
|
1822
1825
|
frontend_objects_related_alert_end: frontend_objects_related_alert_end,
|
|
1823
1826
|
frontend_no_records_found: frontend_no_records_found,
|
|
1824
|
-
frontend_records_no_allowedit: frontend_records_no_allowedit
|
|
1827
|
+
frontend_records_no_allowedit: frontend_records_no_allowedit,
|
|
1828
|
+
frontend_app_menu_save_order_group_nesting_error: frontend_app_menu_save_order_group_nesting_error
|
|
1825
1829
|
};
|
|
1826
1830
|
|
|
1827
1831
|
const resources = {
|
|
@@ -9216,7 +9220,7 @@ function getObjectHeaderToolbar(mainObject, fields, formFactor, {
|
|
|
9216
9220
|
//TODO: dropdown-button只支持在按钮上方配置提示,对于上方按钮的点击会有影响,为保持统一,暂时去除,等待amis优化,https://github.com/baidu/amis/issues/7330
|
|
9217
9221
|
// "tooltip": i18next.t('frontend_button_reload_tooltip'),
|
|
9218
9222
|
"tooltipPlacement": "top",
|
|
9219
|
-
"className": "bg-white p-2 rounded text-gray-500",
|
|
9223
|
+
"className": "bg-white p-2 rounded text-gray-500 list-view-btn-reload",
|
|
9220
9224
|
"label": "",
|
|
9221
9225
|
"icon": "fa fa-sync",
|
|
9222
9226
|
// "visibleOn": "${!showFieldsFilter}",
|
|
@@ -17913,18 +17917,37 @@ const getFieldEditTpl = async (field, label)=>{
|
|
|
17913
17917
|
tpl.type = "input-rich-text";
|
|
17914
17918
|
}
|
|
17915
17919
|
break;
|
|
17920
|
+
// case "table":
|
|
17921
|
+
// tpl.type = "input-table"; //TODO
|
|
17922
|
+
// tpl.addable = field.permission === "editable";
|
|
17923
|
+
// tpl.editable = tpl.addable;
|
|
17924
|
+
// tpl.copyable = tpl.addable;
|
|
17925
|
+
// tpl.removable = tpl.addable;
|
|
17926
|
+
// tpl.columns = [];
|
|
17927
|
+
// for (const sField of field.fields) {
|
|
17928
|
+
// if (sField.type != "hidden") {
|
|
17929
|
+
// sField.permission = field.permission
|
|
17930
|
+
// const column = await getTdInputTpl(sField, true);
|
|
17931
|
+
// tpl.columns.push(column);
|
|
17932
|
+
// }
|
|
17933
|
+
// }
|
|
17934
|
+
// break;
|
|
17916
17935
|
case "table":
|
|
17917
|
-
tpl.type = "input-table"; //TODO
|
|
17936
|
+
tpl.type = "steedos-input-table"; //TODO
|
|
17918
17937
|
tpl.addable = field.permission === "editable";
|
|
17919
17938
|
tpl.editable = tpl.addable;
|
|
17920
17939
|
tpl.copyable = tpl.addable;
|
|
17921
17940
|
tpl.removable = tpl.addable;
|
|
17922
|
-
tpl.
|
|
17941
|
+
tpl.fields = [];
|
|
17923
17942
|
for (const sField of field.fields) {
|
|
17924
17943
|
if (sField.type != "hidden") {
|
|
17925
17944
|
sField.permission = field.permission;
|
|
17926
17945
|
const column = await getTdInputTpl(sField, true);
|
|
17927
|
-
|
|
17946
|
+
if(column.type === 'steedos-field'){
|
|
17947
|
+
tpl.fields.push(column.config);
|
|
17948
|
+
}else {
|
|
17949
|
+
tpl.fields.push(column);
|
|
17950
|
+
}
|
|
17928
17951
|
}
|
|
17929
17952
|
}
|
|
17930
17953
|
break;
|
|
@@ -17933,7 +17956,7 @@ const getFieldEditTpl = async (field, label)=>{
|
|
|
17933
17956
|
break;
|
|
17934
17957
|
default:
|
|
17935
17958
|
tpl.type = 'steedos-field';
|
|
17936
|
-
tpl.config = field.steedos_field;
|
|
17959
|
+
tpl.config = field.steedos_field || field.config;
|
|
17937
17960
|
break;
|
|
17938
17961
|
}
|
|
17939
17962
|
}
|