@steedos-widgets/amis-lib 1.2.15 → 1.2.17
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 +439 -111
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +435 -111
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +441 -115
- package/dist/index.umd.js.map +1 -1
- package/dist/types/i18n.d.ts +2 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +5 -3
package/dist/index.cjs.js
CHANGED
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var _$1 = require('lodash');
|
|
6
|
+
var i18next = require('i18next');
|
|
7
|
+
var reactI18next = require('react-i18next');
|
|
6
8
|
var amisLib = require('@steedos-widgets/amis-lib');
|
|
7
9
|
var isPlainObject = require('lodash/isPlainObject');
|
|
8
10
|
|
|
@@ -28,6 +30,7 @@ function _interopNamespace(e) {
|
|
|
28
30
|
|
|
29
31
|
var ___namespace = /*#__PURE__*/_interopNamespace(_$1);
|
|
30
32
|
var ___default = /*#__PURE__*/_interopDefaultLegacy(_$1);
|
|
33
|
+
var i18next__default = /*#__PURE__*/_interopDefaultLegacy(i18next);
|
|
31
34
|
var isPlainObject__default = /*#__PURE__*/_interopDefaultLegacy(isPlainObject);
|
|
32
35
|
|
|
33
36
|
/*
|
|
@@ -210,7 +213,7 @@ const amisRender = (root, schema, data = {}, env = {}, options) => {
|
|
|
210
213
|
* @Author: baozhoutao@steedos.com
|
|
211
214
|
* @Date: 2022-07-04 11:24:28
|
|
212
215
|
* @LastEditors: baozhoutao@steedos.com
|
|
213
|
-
* @LastEditTime: 2023-
|
|
216
|
+
* @LastEditTime: 2023-06-12 11:51:15
|
|
214
217
|
* @Description:
|
|
215
218
|
*/
|
|
216
219
|
|
|
@@ -240,7 +243,6 @@ async function fetchAPI(api, options = { credentials: 'include' }) {
|
|
|
240
243
|
|
|
241
244
|
options.headers = Object.assign({}, headers, options.headers);
|
|
242
245
|
options.credentials = 'include';
|
|
243
|
-
|
|
244
246
|
const res = await fetch(`${getRootUrl()}${api}`, options);
|
|
245
247
|
|
|
246
248
|
if(res.status === 401){
|
|
@@ -335,7 +337,7 @@ function getRootUrl(defaultRootUrl){
|
|
|
335
337
|
if(rootUrl){
|
|
336
338
|
return rootUrl
|
|
337
339
|
}
|
|
338
|
-
return defaultRootUrl;
|
|
340
|
+
return defaultRootUrl || '';
|
|
339
341
|
}
|
|
340
342
|
|
|
341
343
|
function setRootUrl(rootUrl){
|
|
@@ -1410,6 +1412,350 @@ const parseSingleExpression = function (func, formData, dataPath, global, userSe
|
|
|
1410
1412
|
}
|
|
1411
1413
|
};
|
|
1412
1414
|
|
|
1415
|
+
var frontend_field_group_generalization$1 = "Generalization";
|
|
1416
|
+
var frontend_download$1 = "Download";
|
|
1417
|
+
var frontend_form_save$1 = "Save";
|
|
1418
|
+
var frontend_form_save_and_new$1 = "Save and New";
|
|
1419
|
+
var frontend_form_cancel$1 = "Cancel";
|
|
1420
|
+
var frontend_form_new$1 = "New";
|
|
1421
|
+
var frontend_form_edit$1 = "Edit";
|
|
1422
|
+
var frontend_form_select$1 = "Select";
|
|
1423
|
+
var frontend_form_confirm$1 = "Confirm";
|
|
1424
|
+
var frontend_form_delete$1 = "Delete";
|
|
1425
|
+
var frontend_form_view$1 = "view";
|
|
1426
|
+
var frontend_delete_confirm_text$1 = "Are you sure you want to delete this item?";
|
|
1427
|
+
var frontend_delete_many_selected_required$1 = "Please select the item to be deleted";
|
|
1428
|
+
var frontend_delete_many_confirm_text$1 = "Are you sure you want to delete?";
|
|
1429
|
+
var frontend_display_type_is_table$1 = "Table";
|
|
1430
|
+
var frontend_display_type_is_split$1 = "Split View";
|
|
1431
|
+
var frontend_display_as$1 = "Displayed as";
|
|
1432
|
+
var frontend_record_sum$1 = "items";
|
|
1433
|
+
var frontend_button_reload_tooltip$1 = "Refresh";
|
|
1434
|
+
var frontend_button_search_tooltip$1 = "Search";
|
|
1435
|
+
var frontend_fields_filter_button_search$1 = "Search";
|
|
1436
|
+
var frontend_fields_filter_button_settings$1 = "Set search options";
|
|
1437
|
+
var frontend_button_listview_control_tooltip$1 = "List View Controls";
|
|
1438
|
+
var frontend_button_listview_control_label$1 = "LIST VIEW CONTROLS";
|
|
1439
|
+
var frontend_listview_control_columns$1 = "Show List";
|
|
1440
|
+
var frontend_listview_control_columns_mobile_group$1 = "Mobile side";
|
|
1441
|
+
var frontend_listview_control_clone_label$1 = "Clone";
|
|
1442
|
+
var frontend_listview_control_clone_title$1 = "Clone List View";
|
|
1443
|
+
var frontend_listview_control_clone_defaultData_label_start$1 = "Copy of";
|
|
1444
|
+
var frontend_listview_control_clone_defaultData_label_end$1 = "";
|
|
1445
|
+
var frontend_listview_control_delete_label$1 = "Delete";
|
|
1446
|
+
var frontend_listview_control_delete_confirm_text$1 = "If you delete this list view it will be permanently removed for all users with access. Are you sure you want to delete?";
|
|
1447
|
+
var frontend_listview_control_delete_message_success$1 = "Deletion successful";
|
|
1448
|
+
var frontend_listview_control_filters$1 = "Filter settings";
|
|
1449
|
+
var frontend_listview_control_filters_fields_extend$1 = "Conditional component 1";
|
|
1450
|
+
var frontend_listview_control_new_label$1 = "New";
|
|
1451
|
+
var frontend_listview_control_new_title$1 = "New List View";
|
|
1452
|
+
var frontend_listview_control_new_message_success$1 = "Success";
|
|
1453
|
+
var frontend_listview_control_new_message_failed$1 = "Failure";
|
|
1454
|
+
var frontend_listview_control_rename_label$1 = "Rename";
|
|
1455
|
+
var frontend_listview_control_rename_title$1 = "Rename List View";
|
|
1456
|
+
var frontend_listview_control_share$1 = "Sharing Settings";
|
|
1457
|
+
var frontend_listview_control_sort$1 = "Default sorting rule";
|
|
1458
|
+
var frontend_export_excel$1 = "Export Excel";
|
|
1459
|
+
var frontend_ercord_operation$1 = "Operation";
|
|
1460
|
+
var frontend_import_data$1 = "Import data";
|
|
1461
|
+
var frontend_import_data_object_name$1 = "Import object";
|
|
1462
|
+
var frontend_import_data_queue_import$1 = "Data import";
|
|
1463
|
+
var frontend_import_data_queue_import_description$1 = "Import description";
|
|
1464
|
+
var frontend_import_data_queue_import_encoding$1 = "Character code";
|
|
1465
|
+
var frontend_import_data_queue_import_template_url$1 = "Import template";
|
|
1466
|
+
var frontend_import_data_file$1 = "Excel file";
|
|
1467
|
+
var frontend_import_data_message_success$1 = "Importing has started...";
|
|
1468
|
+
var frontend_import_data_message_failed$1 = "Import failed";
|
|
1469
|
+
var frontend_record_detail_tab_detailed$1 = "Details";
|
|
1470
|
+
var frontend_record_detail_tab_related$1 = "Related";
|
|
1471
|
+
var frontend_all_apps$1 = "All apps";
|
|
1472
|
+
var frontend_all_projects$1 = "All projects";
|
|
1473
|
+
var frontend_application_launcher$1 = "Application launcher";
|
|
1474
|
+
var frontend_menu$1 = "Menu";
|
|
1475
|
+
var frontend_help$1 = "Help";
|
|
1476
|
+
var frontend_setup$1 = "Setup";
|
|
1477
|
+
var frontend_notifications$1 = "Notifications";
|
|
1478
|
+
var frontend_notifications_allread$1 = "Mark all as read";
|
|
1479
|
+
var frontend_notifications_allread_message$1 = "All marked as read";
|
|
1480
|
+
var frontend_profile$1 = "Profile";
|
|
1481
|
+
var frontend_about$1 = "About";
|
|
1482
|
+
var frontend_log_out$1 = "Log out";
|
|
1483
|
+
var frontend_listview_warning_start$1 = "The current ";
|
|
1484
|
+
var frontend_listview_warning_end$1 = " view does not exist!";
|
|
1485
|
+
var frontend_record_detail_related_list_warning$1 = "Missing parent object, parent record, or related list object property!";
|
|
1486
|
+
var frontend_record_detail_related_lists_warning$1 = "Missing parent object, or parent record property!";
|
|
1487
|
+
var frontend_record_detail_related_lists_info$1 = "No related child tables found";
|
|
1488
|
+
var frontend_calendar_listWeek$1 = "List";
|
|
1489
|
+
var frontend_message_no_permission_to_edit$1 = "You don't have permission to edit this record!";
|
|
1490
|
+
var frontend_message_modification_successful$1 = "Modification successful!";
|
|
1491
|
+
var frontend_message_modification_failed$1 = "Modification failed!";
|
|
1492
|
+
var en_us = {
|
|
1493
|
+
frontend_field_group_generalization: frontend_field_group_generalization$1,
|
|
1494
|
+
frontend_download: frontend_download$1,
|
|
1495
|
+
frontend_form_save: frontend_form_save$1,
|
|
1496
|
+
frontend_form_save_and_new: frontend_form_save_and_new$1,
|
|
1497
|
+
frontend_form_cancel: frontend_form_cancel$1,
|
|
1498
|
+
frontend_form_new: frontend_form_new$1,
|
|
1499
|
+
frontend_form_edit: frontend_form_edit$1,
|
|
1500
|
+
frontend_form_select: frontend_form_select$1,
|
|
1501
|
+
frontend_form_confirm: frontend_form_confirm$1,
|
|
1502
|
+
frontend_form_delete: frontend_form_delete$1,
|
|
1503
|
+
frontend_form_view: frontend_form_view$1,
|
|
1504
|
+
frontend_delete_confirm_text: frontend_delete_confirm_text$1,
|
|
1505
|
+
frontend_delete_many_selected_required: frontend_delete_many_selected_required$1,
|
|
1506
|
+
frontend_delete_many_confirm_text: frontend_delete_many_confirm_text$1,
|
|
1507
|
+
frontend_display_type_is_table: frontend_display_type_is_table$1,
|
|
1508
|
+
frontend_display_type_is_split: frontend_display_type_is_split$1,
|
|
1509
|
+
frontend_display_as: frontend_display_as$1,
|
|
1510
|
+
frontend_record_sum: frontend_record_sum$1,
|
|
1511
|
+
frontend_button_reload_tooltip: frontend_button_reload_tooltip$1,
|
|
1512
|
+
frontend_button_search_tooltip: frontend_button_search_tooltip$1,
|
|
1513
|
+
frontend_fields_filter_button_search: frontend_fields_filter_button_search$1,
|
|
1514
|
+
frontend_fields_filter_button_settings: frontend_fields_filter_button_settings$1,
|
|
1515
|
+
frontend_button_listview_control_tooltip: frontend_button_listview_control_tooltip$1,
|
|
1516
|
+
frontend_button_listview_control_label: frontend_button_listview_control_label$1,
|
|
1517
|
+
frontend_listview_control_columns: frontend_listview_control_columns$1,
|
|
1518
|
+
frontend_listview_control_columns_mobile_group: frontend_listview_control_columns_mobile_group$1,
|
|
1519
|
+
frontend_listview_control_clone_label: frontend_listview_control_clone_label$1,
|
|
1520
|
+
frontend_listview_control_clone_title: frontend_listview_control_clone_title$1,
|
|
1521
|
+
frontend_listview_control_clone_defaultData_label_start: frontend_listview_control_clone_defaultData_label_start$1,
|
|
1522
|
+
frontend_listview_control_clone_defaultData_label_end: frontend_listview_control_clone_defaultData_label_end$1,
|
|
1523
|
+
frontend_listview_control_delete_label: frontend_listview_control_delete_label$1,
|
|
1524
|
+
frontend_listview_control_delete_confirm_text: frontend_listview_control_delete_confirm_text$1,
|
|
1525
|
+
frontend_listview_control_delete_message_success: frontend_listview_control_delete_message_success$1,
|
|
1526
|
+
frontend_listview_control_filters: frontend_listview_control_filters$1,
|
|
1527
|
+
frontend_listview_control_filters_fields_extend: frontend_listview_control_filters_fields_extend$1,
|
|
1528
|
+
frontend_listview_control_new_label: frontend_listview_control_new_label$1,
|
|
1529
|
+
frontend_listview_control_new_title: frontend_listview_control_new_title$1,
|
|
1530
|
+
frontend_listview_control_new_message_success: frontend_listview_control_new_message_success$1,
|
|
1531
|
+
frontend_listview_control_new_message_failed: frontend_listview_control_new_message_failed$1,
|
|
1532
|
+
frontend_listview_control_rename_label: frontend_listview_control_rename_label$1,
|
|
1533
|
+
frontend_listview_control_rename_title: frontend_listview_control_rename_title$1,
|
|
1534
|
+
frontend_listview_control_share: frontend_listview_control_share$1,
|
|
1535
|
+
frontend_listview_control_sort: frontend_listview_control_sort$1,
|
|
1536
|
+
frontend_export_excel: frontend_export_excel$1,
|
|
1537
|
+
frontend_ercord_operation: frontend_ercord_operation$1,
|
|
1538
|
+
frontend_import_data: frontend_import_data$1,
|
|
1539
|
+
frontend_import_data_object_name: frontend_import_data_object_name$1,
|
|
1540
|
+
frontend_import_data_queue_import: frontend_import_data_queue_import$1,
|
|
1541
|
+
frontend_import_data_queue_import_description: frontend_import_data_queue_import_description$1,
|
|
1542
|
+
frontend_import_data_queue_import_encoding: frontend_import_data_queue_import_encoding$1,
|
|
1543
|
+
frontend_import_data_queue_import_template_url: frontend_import_data_queue_import_template_url$1,
|
|
1544
|
+
frontend_import_data_file: frontend_import_data_file$1,
|
|
1545
|
+
frontend_import_data_message_success: frontend_import_data_message_success$1,
|
|
1546
|
+
frontend_import_data_message_failed: frontend_import_data_message_failed$1,
|
|
1547
|
+
frontend_record_detail_tab_detailed: frontend_record_detail_tab_detailed$1,
|
|
1548
|
+
frontend_record_detail_tab_related: frontend_record_detail_tab_related$1,
|
|
1549
|
+
frontend_all_apps: frontend_all_apps$1,
|
|
1550
|
+
frontend_all_projects: frontend_all_projects$1,
|
|
1551
|
+
frontend_application_launcher: frontend_application_launcher$1,
|
|
1552
|
+
frontend_menu: frontend_menu$1,
|
|
1553
|
+
frontend_help: frontend_help$1,
|
|
1554
|
+
frontend_setup: frontend_setup$1,
|
|
1555
|
+
frontend_notifications: frontend_notifications$1,
|
|
1556
|
+
frontend_notifications_allread: frontend_notifications_allread$1,
|
|
1557
|
+
frontend_notifications_allread_message: frontend_notifications_allread_message$1,
|
|
1558
|
+
frontend_profile: frontend_profile$1,
|
|
1559
|
+
frontend_about: frontend_about$1,
|
|
1560
|
+
frontend_log_out: frontend_log_out$1,
|
|
1561
|
+
frontend_listview_warning_start: frontend_listview_warning_start$1,
|
|
1562
|
+
frontend_listview_warning_end: frontend_listview_warning_end$1,
|
|
1563
|
+
frontend_record_detail_related_list_warning: frontend_record_detail_related_list_warning$1,
|
|
1564
|
+
frontend_record_detail_related_lists_warning: frontend_record_detail_related_lists_warning$1,
|
|
1565
|
+
frontend_record_detail_related_lists_info: frontend_record_detail_related_lists_info$1,
|
|
1566
|
+
frontend_calendar_listWeek: frontend_calendar_listWeek$1,
|
|
1567
|
+
frontend_message_no_permission_to_edit: frontend_message_no_permission_to_edit$1,
|
|
1568
|
+
frontend_message_modification_successful: frontend_message_modification_successful$1,
|
|
1569
|
+
frontend_message_modification_failed: frontend_message_modification_failed$1
|
|
1570
|
+
};
|
|
1571
|
+
|
|
1572
|
+
var frontend_field_group_generalization = "通用";
|
|
1573
|
+
var frontend_download = "下载";
|
|
1574
|
+
var frontend_form_save = "保存";
|
|
1575
|
+
var frontend_form_save_and_new = "保存并新建";
|
|
1576
|
+
var frontend_form_cancel = "取消";
|
|
1577
|
+
var frontend_form_new = "新建";
|
|
1578
|
+
var frontend_form_edit = "编辑";
|
|
1579
|
+
var frontend_form_select = "选择";
|
|
1580
|
+
var frontend_form_confirm = "确认";
|
|
1581
|
+
var frontend_form_delete = "删除";
|
|
1582
|
+
var frontend_form_view = "查看";
|
|
1583
|
+
var frontend_delete_confirm_text = "确定要删除此项目?";
|
|
1584
|
+
var frontend_delete_many_selected_required = "请选择要删除的项";
|
|
1585
|
+
var frontend_delete_many_confirm_text = "确定要删除吗?";
|
|
1586
|
+
var frontend_display_type_is_table = "表格";
|
|
1587
|
+
var frontend_display_type_is_split = "分栏视图";
|
|
1588
|
+
var frontend_display_as = "显示为";
|
|
1589
|
+
var frontend_record_sum = "个项目";
|
|
1590
|
+
var frontend_button_reload_tooltip = "刷新";
|
|
1591
|
+
var frontend_button_search_tooltip = "搜索";
|
|
1592
|
+
var frontend_fields_filter_button_search = "搜索";
|
|
1593
|
+
var frontend_fields_filter_button_settings = "设置搜索项";
|
|
1594
|
+
var frontend_button_listview_control_tooltip = "列表视图控制";
|
|
1595
|
+
var frontend_button_listview_control_label = "列表视图控制";
|
|
1596
|
+
var frontend_listview_control_columns = "显示的列";
|
|
1597
|
+
var frontend_listview_control_columns_mobile_group = "手机端";
|
|
1598
|
+
var frontend_listview_control_clone = "复制";
|
|
1599
|
+
var frontend_listview_control_clone_label = "复制";
|
|
1600
|
+
var frontend_listview_control_clone_title = "复制 列表视图";
|
|
1601
|
+
var frontend_listview_control_clone_defaultData_label_start = "";
|
|
1602
|
+
var frontend_listview_control_clone_defaultData_label_end = "的副本";
|
|
1603
|
+
var frontend_listview_control_delete_label = "删除";
|
|
1604
|
+
var frontend_listview_control_delete_confirm_text = "如果您删除此列表视图,该视图将为所有具备访问权限的用户永久删除。是否确定要删除?";
|
|
1605
|
+
var frontend_listview_control_delete_message_success = "删除成功";
|
|
1606
|
+
var frontend_listview_control_filters = "过滤设置";
|
|
1607
|
+
var frontend_listview_control_filters_fields_extend = "条件组件1";
|
|
1608
|
+
var frontend_listview_control_new_label = "新建";
|
|
1609
|
+
var frontend_listview_control_new_title = "新建 列表视图";
|
|
1610
|
+
var frontend_listview_control_new_message_success = "成功";
|
|
1611
|
+
var frontend_listview_control_new_message_failed = "失败";
|
|
1612
|
+
var frontend_listview_control_rename_label = "重命名";
|
|
1613
|
+
var frontend_listview_control_rename_title = "重命名 列表视图";
|
|
1614
|
+
var frontend_listview_control_share = "共享设置";
|
|
1615
|
+
var frontend_listview_control_sort = "默认排序规则";
|
|
1616
|
+
var frontend_export_excel = "导出excel";
|
|
1617
|
+
var frontend_ercord_operation = "操作";
|
|
1618
|
+
var frontend_import_data = "导入数据";
|
|
1619
|
+
var frontend_import_data_object_name = "导入对象";
|
|
1620
|
+
var frontend_import_data_queue_import = "数据导入";
|
|
1621
|
+
var frontend_import_data_queue_import_description = "导入描述";
|
|
1622
|
+
var frontend_import_data_queue_import_encoding = "字符代码";
|
|
1623
|
+
var frontend_import_data_queue_import_template_url = "导入模板";
|
|
1624
|
+
var frontend_import_data_file = "Excel文件";
|
|
1625
|
+
var frontend_import_data_message_success = "已开始导入...";
|
|
1626
|
+
var frontend_import_data_message_failed = "导入失败";
|
|
1627
|
+
var frontend_record_detail_tab_detailed = "详细";
|
|
1628
|
+
var frontend_record_detail_tab_related = "相关";
|
|
1629
|
+
var frontend_all_apps = "所有应用";
|
|
1630
|
+
var frontend_all_projects = "所有项目";
|
|
1631
|
+
var frontend_application_launcher = "应用程序启动器";
|
|
1632
|
+
var frontend_menu = "菜单";
|
|
1633
|
+
var frontend_help = "帮助";
|
|
1634
|
+
var frontend_setup = "设置";
|
|
1635
|
+
var frontend_notifications = "通知";
|
|
1636
|
+
var frontend_notifications_allread = "全部标记为已读";
|
|
1637
|
+
var frontend_notifications_allread_message = "已全部标记为已读";
|
|
1638
|
+
var frontend_profile = "个人资料";
|
|
1639
|
+
var frontend_about = "关于";
|
|
1640
|
+
var frontend_log_out = "注销";
|
|
1641
|
+
var frontend_listview_warning_start = "当前";
|
|
1642
|
+
var frontend_listview_warning_end = "视图不存在!";
|
|
1643
|
+
var frontend_record_detail_related_list_warning = "缺少父级对象、父级记录或相关列表对象属性!";
|
|
1644
|
+
var frontend_record_detail_related_lists_warning = "缺少父级对象或父级记录属性!";
|
|
1645
|
+
var frontend_record_detail_related_lists_info = "没有相关子表";
|
|
1646
|
+
var frontend_calendar_listWeek = "列表";
|
|
1647
|
+
var frontend_message_no_permission_to_edit = "您没有编辑该记录的权限!";
|
|
1648
|
+
var frontend_message_modification_successful = "修改成功!";
|
|
1649
|
+
var frontend_message_modification_failed = "修改失败!";
|
|
1650
|
+
var zh_cn = {
|
|
1651
|
+
frontend_field_group_generalization: frontend_field_group_generalization,
|
|
1652
|
+
frontend_download: frontend_download,
|
|
1653
|
+
frontend_form_save: frontend_form_save,
|
|
1654
|
+
frontend_form_save_and_new: frontend_form_save_and_new,
|
|
1655
|
+
frontend_form_cancel: frontend_form_cancel,
|
|
1656
|
+
frontend_form_new: frontend_form_new,
|
|
1657
|
+
frontend_form_edit: frontend_form_edit,
|
|
1658
|
+
frontend_form_select: frontend_form_select,
|
|
1659
|
+
frontend_form_confirm: frontend_form_confirm,
|
|
1660
|
+
frontend_form_delete: frontend_form_delete,
|
|
1661
|
+
frontend_form_view: frontend_form_view,
|
|
1662
|
+
frontend_delete_confirm_text: frontend_delete_confirm_text,
|
|
1663
|
+
frontend_delete_many_selected_required: frontend_delete_many_selected_required,
|
|
1664
|
+
frontend_delete_many_confirm_text: frontend_delete_many_confirm_text,
|
|
1665
|
+
frontend_display_type_is_table: frontend_display_type_is_table,
|
|
1666
|
+
frontend_display_type_is_split: frontend_display_type_is_split,
|
|
1667
|
+
frontend_display_as: frontend_display_as,
|
|
1668
|
+
frontend_record_sum: frontend_record_sum,
|
|
1669
|
+
frontend_button_reload_tooltip: frontend_button_reload_tooltip,
|
|
1670
|
+
frontend_button_search_tooltip: frontend_button_search_tooltip,
|
|
1671
|
+
frontend_fields_filter_button_search: frontend_fields_filter_button_search,
|
|
1672
|
+
frontend_fields_filter_button_settings: frontend_fields_filter_button_settings,
|
|
1673
|
+
frontend_button_listview_control_tooltip: frontend_button_listview_control_tooltip,
|
|
1674
|
+
frontend_button_listview_control_label: frontend_button_listview_control_label,
|
|
1675
|
+
frontend_listview_control_columns: frontend_listview_control_columns,
|
|
1676
|
+
frontend_listview_control_columns_mobile_group: frontend_listview_control_columns_mobile_group,
|
|
1677
|
+
frontend_listview_control_clone: frontend_listview_control_clone,
|
|
1678
|
+
frontend_listview_control_clone_label: frontend_listview_control_clone_label,
|
|
1679
|
+
frontend_listview_control_clone_title: frontend_listview_control_clone_title,
|
|
1680
|
+
frontend_listview_control_clone_defaultData_label_start: frontend_listview_control_clone_defaultData_label_start,
|
|
1681
|
+
frontend_listview_control_clone_defaultData_label_end: frontend_listview_control_clone_defaultData_label_end,
|
|
1682
|
+
frontend_listview_control_delete_label: frontend_listview_control_delete_label,
|
|
1683
|
+
frontend_listview_control_delete_confirm_text: frontend_listview_control_delete_confirm_text,
|
|
1684
|
+
frontend_listview_control_delete_message_success: frontend_listview_control_delete_message_success,
|
|
1685
|
+
frontend_listview_control_filters: frontend_listview_control_filters,
|
|
1686
|
+
frontend_listview_control_filters_fields_extend: frontend_listview_control_filters_fields_extend,
|
|
1687
|
+
frontend_listview_control_new_label: frontend_listview_control_new_label,
|
|
1688
|
+
frontend_listview_control_new_title: frontend_listview_control_new_title,
|
|
1689
|
+
frontend_listview_control_new_message_success: frontend_listview_control_new_message_success,
|
|
1690
|
+
frontend_listview_control_new_message_failed: frontend_listview_control_new_message_failed,
|
|
1691
|
+
frontend_listview_control_rename_label: frontend_listview_control_rename_label,
|
|
1692
|
+
frontend_listview_control_rename_title: frontend_listview_control_rename_title,
|
|
1693
|
+
frontend_listview_control_share: frontend_listview_control_share,
|
|
1694
|
+
frontend_listview_control_sort: frontend_listview_control_sort,
|
|
1695
|
+
frontend_export_excel: frontend_export_excel,
|
|
1696
|
+
frontend_ercord_operation: frontend_ercord_operation,
|
|
1697
|
+
frontend_import_data: frontend_import_data,
|
|
1698
|
+
frontend_import_data_object_name: frontend_import_data_object_name,
|
|
1699
|
+
frontend_import_data_queue_import: frontend_import_data_queue_import,
|
|
1700
|
+
frontend_import_data_queue_import_description: frontend_import_data_queue_import_description,
|
|
1701
|
+
frontend_import_data_queue_import_encoding: frontend_import_data_queue_import_encoding,
|
|
1702
|
+
frontend_import_data_queue_import_template_url: frontend_import_data_queue_import_template_url,
|
|
1703
|
+
frontend_import_data_file: frontend_import_data_file,
|
|
1704
|
+
frontend_import_data_message_success: frontend_import_data_message_success,
|
|
1705
|
+
frontend_import_data_message_failed: frontend_import_data_message_failed,
|
|
1706
|
+
frontend_record_detail_tab_detailed: frontend_record_detail_tab_detailed,
|
|
1707
|
+
frontend_record_detail_tab_related: frontend_record_detail_tab_related,
|
|
1708
|
+
frontend_all_apps: frontend_all_apps,
|
|
1709
|
+
frontend_all_projects: frontend_all_projects,
|
|
1710
|
+
frontend_application_launcher: frontend_application_launcher,
|
|
1711
|
+
frontend_menu: frontend_menu,
|
|
1712
|
+
frontend_help: frontend_help,
|
|
1713
|
+
frontend_setup: frontend_setup,
|
|
1714
|
+
frontend_notifications: frontend_notifications,
|
|
1715
|
+
frontend_notifications_allread: frontend_notifications_allread,
|
|
1716
|
+
frontend_notifications_allread_message: frontend_notifications_allread_message,
|
|
1717
|
+
frontend_profile: frontend_profile,
|
|
1718
|
+
frontend_about: frontend_about,
|
|
1719
|
+
frontend_log_out: frontend_log_out,
|
|
1720
|
+
frontend_listview_warning_start: frontend_listview_warning_start,
|
|
1721
|
+
frontend_listview_warning_end: frontend_listview_warning_end,
|
|
1722
|
+
frontend_record_detail_related_list_warning: frontend_record_detail_related_list_warning,
|
|
1723
|
+
frontend_record_detail_related_lists_warning: frontend_record_detail_related_lists_warning,
|
|
1724
|
+
frontend_record_detail_related_lists_info: frontend_record_detail_related_lists_info,
|
|
1725
|
+
frontend_calendar_listWeek: frontend_calendar_listWeek,
|
|
1726
|
+
frontend_message_no_permission_to_edit: frontend_message_no_permission_to_edit,
|
|
1727
|
+
frontend_message_modification_successful: frontend_message_modification_successful,
|
|
1728
|
+
frontend_message_modification_failed: frontend_message_modification_failed
|
|
1729
|
+
};
|
|
1730
|
+
|
|
1731
|
+
const resources = {
|
|
1732
|
+
"en-US": {
|
|
1733
|
+
translation: en_us
|
|
1734
|
+
},
|
|
1735
|
+
"zh-CN": {
|
|
1736
|
+
translation: zh_cn
|
|
1737
|
+
}
|
|
1738
|
+
};
|
|
1739
|
+
var locale = "zh-CN";
|
|
1740
|
+
if (typeof window != 'undefined') {
|
|
1741
|
+
if (window.Builder?.settings.locale == "en-us") {
|
|
1742
|
+
locale = "en-US";
|
|
1743
|
+
} else if (window.Builder?.settings.locale == "zh-cn") {
|
|
1744
|
+
locale = "zh-CN";
|
|
1745
|
+
}
|
|
1746
|
+
}
|
|
1747
|
+
|
|
1748
|
+
|
|
1749
|
+
i18next__default["default"]
|
|
1750
|
+
.use(reactI18next.initReactI18next)
|
|
1751
|
+
.init({
|
|
1752
|
+
resources,
|
|
1753
|
+
lng: locale,
|
|
1754
|
+
interpolation: {
|
|
1755
|
+
escapeValue: false
|
|
1756
|
+
}
|
|
1757
|
+
});
|
|
1758
|
+
|
|
1413
1759
|
/*
|
|
1414
1760
|
* @Author: baozhoutao@steedos.com
|
|
1415
1761
|
* @Date: 2022-11-01 15:51:00
|
|
@@ -1471,7 +1817,7 @@ const getSchema$4 = async (uiSchema, ctx) => {
|
|
|
1471
1817
|
"body": [
|
|
1472
1818
|
{
|
|
1473
1819
|
"type": "button",
|
|
1474
|
-
"label": "
|
|
1820
|
+
"label": i18next__default["default"].t('frontend_form_new'),
|
|
1475
1821
|
"id": "u:standard_new",
|
|
1476
1822
|
"level": "default",
|
|
1477
1823
|
"onEvent": {
|
|
@@ -1497,7 +1843,7 @@ const getSchema$4 = async (uiSchema, ctx) => {
|
|
|
1497
1843
|
"isLookup": "${isLookup}",
|
|
1498
1844
|
"listName": "${listName}"
|
|
1499
1845
|
},
|
|
1500
|
-
"title": "
|
|
1846
|
+
"title":i18next__default["default"].t('frontend_form_new') + " ${uiSchema.label | raw}",
|
|
1501
1847
|
"body": [
|
|
1502
1848
|
{
|
|
1503
1849
|
"type": "service",
|
|
@@ -1530,11 +1876,11 @@ const getSchema$4 = async (uiSchema, ctx) => {
|
|
|
1530
1876
|
{
|
|
1531
1877
|
type: 'button',
|
|
1532
1878
|
actionType: 'cancel',
|
|
1533
|
-
label: "
|
|
1879
|
+
label: i18next__default["default"].t('frontend_form_cancel')
|
|
1534
1880
|
},
|
|
1535
1881
|
{
|
|
1536
1882
|
type: 'button',
|
|
1537
|
-
label: "
|
|
1883
|
+
label: i18next__default["default"].t('frontend_form_save_and_new'),
|
|
1538
1884
|
actionType: 'confirm',
|
|
1539
1885
|
close: false,
|
|
1540
1886
|
id: "confirmAndNew"
|
|
@@ -1542,7 +1888,7 @@ const getSchema$4 = async (uiSchema, ctx) => {
|
|
|
1542
1888
|
{
|
|
1543
1889
|
type: 'button',
|
|
1544
1890
|
actionType: 'confirm',
|
|
1545
|
-
label: "
|
|
1891
|
+
label: i18next__default["default"].t('frontend_form_save'),
|
|
1546
1892
|
primary: true
|
|
1547
1893
|
},
|
|
1548
1894
|
]
|
|
@@ -1593,7 +1939,7 @@ async function getPage({type, pageId = '', appId, objectName = '', recordId = ''
|
|
|
1593
1939
|
*/
|
|
1594
1940
|
|
|
1595
1941
|
const getSchema$3 = async (uiSchema, ctx) => {
|
|
1596
|
-
const title = "
|
|
1942
|
+
const title = i18next__default["default"].t('frontend_form_edit') + " " + uiSchema.label;
|
|
1597
1943
|
|
|
1598
1944
|
const defaultFormSchema = {
|
|
1599
1945
|
type: "steedos-object-form",
|
|
@@ -1623,7 +1969,7 @@ const getSchema$3 = async (uiSchema, ctx) => {
|
|
|
1623
1969
|
body: [
|
|
1624
1970
|
{
|
|
1625
1971
|
type: "button",
|
|
1626
|
-
label: "
|
|
1972
|
+
label: i18next__default["default"].t('frontend_form_edit'),
|
|
1627
1973
|
id: "u:standard_edit",
|
|
1628
1974
|
onEvent: {
|
|
1629
1975
|
click: {
|
|
@@ -1667,8 +2013,8 @@ const getSchema$2 = (uiSchema)=>{
|
|
|
1667
2013
|
"body": [
|
|
1668
2014
|
{
|
|
1669
2015
|
"type": "button",
|
|
1670
|
-
"label": "
|
|
1671
|
-
"confirmText": "
|
|
2016
|
+
"label": i18next__default["default"].t('frontend_form_delete'),
|
|
2017
|
+
"confirmText": i18next__default["default"].t('frontend_delete_many_confirm_text'),
|
|
1672
2018
|
"onEvent": {
|
|
1673
2019
|
"click": {
|
|
1674
2020
|
"actions": [
|
|
@@ -1735,7 +2081,7 @@ const getSchema$1 = (uiSchema) => {
|
|
|
1735
2081
|
body: [
|
|
1736
2082
|
{
|
|
1737
2083
|
type: "button",
|
|
1738
|
-
label: "
|
|
2084
|
+
label: i18next__default["default"].t('frontend_import_data'),
|
|
1739
2085
|
id: "u:import_data",
|
|
1740
2086
|
onEvent: {
|
|
1741
2087
|
click: {
|
|
@@ -1748,7 +2094,7 @@ const getSchema$1 = (uiSchema) => {
|
|
|
1748
2094
|
"object_name": "${objectName}"
|
|
1749
2095
|
},
|
|
1750
2096
|
type: "dialog",
|
|
1751
|
-
title: "
|
|
2097
|
+
title: i18next__default["default"].t('frontend_import_data'),
|
|
1752
2098
|
body: [
|
|
1753
2099
|
{
|
|
1754
2100
|
type: "form",
|
|
@@ -1783,12 +2129,12 @@ const getSchema$1 = (uiSchema) => {
|
|
|
1783
2129
|
body: [
|
|
1784
2130
|
{
|
|
1785
2131
|
type: "fieldSet",
|
|
1786
|
-
title: "
|
|
2132
|
+
title: i18next__default["default"].t('frontend_field_group_generalization'),
|
|
1787
2133
|
collapsable: true,
|
|
1788
2134
|
body: [
|
|
1789
2135
|
{
|
|
1790
2136
|
name: "object_name",
|
|
1791
|
-
label: "
|
|
2137
|
+
label: i18next__default["default"].t('frontend_import_data_object_name'),
|
|
1792
2138
|
required: false,
|
|
1793
2139
|
type: "select",
|
|
1794
2140
|
joinValues: false,
|
|
@@ -1824,7 +2170,7 @@ const getSchema$1 = (uiSchema) => {
|
|
|
1824
2170
|
},
|
|
1825
2171
|
{
|
|
1826
2172
|
name: "queue_import",
|
|
1827
|
-
label: "
|
|
2173
|
+
label: i18next__default["default"].t('frontend_import_data_queue_import'),
|
|
1828
2174
|
required: true,
|
|
1829
2175
|
type: "picker",
|
|
1830
2176
|
labelField: "description",
|
|
@@ -1870,7 +2216,7 @@ const getSchema$1 = (uiSchema) => {
|
|
|
1870
2216
|
},
|
|
1871
2217
|
{
|
|
1872
2218
|
name: "description",
|
|
1873
|
-
label: "
|
|
2219
|
+
label: i18next__default["default"].t('frontend_import_data_queue_import_description'),
|
|
1874
2220
|
type: "tpl",
|
|
1875
2221
|
tpl: '<a href="/app/undefined/undefined/view/${undefined}">${description}</a>',
|
|
1876
2222
|
className: "whitespace-nowrap",
|
|
@@ -1878,7 +2224,7 @@ const getSchema$1 = (uiSchema) => {
|
|
|
1878
2224
|
},
|
|
1879
2225
|
{
|
|
1880
2226
|
name: "object_name",
|
|
1881
|
-
label: "
|
|
2227
|
+
label: i18next__default["default"].t('frontend_import_data_object_name'),
|
|
1882
2228
|
type: "tpl",
|
|
1883
2229
|
tpl: '<a href="/app/undefined/${_display.object_name.objectName}/view/${_display.object_name.value}">${_display.object_name.label}</a>',
|
|
1884
2230
|
className: "whitespace-nowrap",
|
|
@@ -1886,7 +2232,7 @@ const getSchema$1 = (uiSchema) => {
|
|
|
1886
2232
|
},
|
|
1887
2233
|
{
|
|
1888
2234
|
name: "encoding",
|
|
1889
|
-
label: "
|
|
2235
|
+
label: i18next__default["default"].t('frontend_import_data_queue_import_encoding'),
|
|
1890
2236
|
type: "tpl",
|
|
1891
2237
|
tpl: "<div>${_display.encoding}</div>",
|
|
1892
2238
|
className: "whitespace-nowrap",
|
|
@@ -1894,12 +2240,12 @@ const getSchema$1 = (uiSchema) => {
|
|
|
1894
2240
|
},
|
|
1895
2241
|
{
|
|
1896
2242
|
name: "template_url",
|
|
1897
|
-
label: "
|
|
2243
|
+
label: i18next__default["default"].t('frontend_import_data_queue_import_template_url'),
|
|
1898
2244
|
type: "button-group",
|
|
1899
2245
|
buttons: [
|
|
1900
2246
|
{
|
|
1901
2247
|
type: "button",
|
|
1902
|
-
label: "
|
|
2248
|
+
label: i18next__default["default"].t('frontend_download'),
|
|
1903
2249
|
visibleOn: "${template_url}",
|
|
1904
2250
|
level: "link",
|
|
1905
2251
|
actionType: "download",
|
|
@@ -1933,7 +2279,7 @@ const getSchema$1 = (uiSchema) => {
|
|
|
1933
2279
|
},
|
|
1934
2280
|
{
|
|
1935
2281
|
name: "file",
|
|
1936
|
-
label: "
|
|
2282
|
+
label: i18next__default["default"].t('frontend_import_data_file'),
|
|
1937
2283
|
required: true,
|
|
1938
2284
|
type: "input-file",
|
|
1939
2285
|
className: "m-1",
|
|
@@ -1989,8 +2335,8 @@ const getSchema$1 = (uiSchema) => {
|
|
|
1989
2335
|
},
|
|
1990
2336
|
},
|
|
1991
2337
|
messages: {
|
|
1992
|
-
success: "
|
|
1993
|
-
failed: "
|
|
2338
|
+
success: i18next__default["default"].t('frontend_import_data_message_success'),
|
|
2339
|
+
failed: i18next__default["default"].t('frontend_import_data_message_failed'),
|
|
1994
2340
|
},
|
|
1995
2341
|
},
|
|
1996
2342
|
actionType: "ajax",
|
|
@@ -2029,6 +2375,7 @@ const getSchema$1 = (uiSchema) => {
|
|
|
2029
2375
|
* @LastEditTime: 2022-11-07 17:12:20
|
|
2030
2376
|
* @Description:
|
|
2031
2377
|
*/
|
|
2378
|
+
|
|
2032
2379
|
const getSchema = (uiSchema)=>{
|
|
2033
2380
|
return {
|
|
2034
2381
|
"type": "service",
|
|
@@ -2036,7 +2383,7 @@ const getSchema = (uiSchema)=>{
|
|
|
2036
2383
|
"body": [
|
|
2037
2384
|
{
|
|
2038
2385
|
"type": "button",
|
|
2039
|
-
"label": "
|
|
2386
|
+
"label": i18next__default["default"].t('frontend_form_view'),
|
|
2040
2387
|
"className": "border-none",
|
|
2041
2388
|
"onEvent": {
|
|
2042
2389
|
"click": {
|
|
@@ -2107,7 +2454,7 @@ const StandardButtons = {
|
|
|
2107
2454
|
"items": [
|
|
2108
2455
|
{
|
|
2109
2456
|
"position": "top-right",
|
|
2110
|
-
"body": "
|
|
2457
|
+
"body": i18next__default["default"].t('frontend_delete_many_selected_required')
|
|
2111
2458
|
}
|
|
2112
2459
|
]
|
|
2113
2460
|
}
|
|
@@ -2883,7 +3230,7 @@ async function getObjectFieldsFilterBarSchema(objectSchema, ctx) {
|
|
|
2883
3230
|
if(_.isEmpty(defaultSearchableFields) && data.uiSchema){
|
|
2884
3231
|
defaultSearchableFields = _.map(
|
|
2885
3232
|
_.sortBy(_.filter(_.values(data.uiSchema.fields), (field) => {
|
|
2886
|
-
return field.
|
|
3233
|
+
return field.filterable;
|
|
2887
3234
|
}), "sort_no"),
|
|
2888
3235
|
"name"
|
|
2889
3236
|
);
|
|
@@ -3050,7 +3397,7 @@ async function getObjectFieldsFilterBarSchema(objectSchema, ctx) {
|
|
|
3050
3397
|
{
|
|
3051
3398
|
"type": "button",
|
|
3052
3399
|
"id": btnSearchId,
|
|
3053
|
-
"label": "
|
|
3400
|
+
"label": i18next__default["default"].t('frontend_fields_filter_button_search'),
|
|
3054
3401
|
"icon": "fa fa-search",
|
|
3055
3402
|
// "visibleOn": "this.filterFormSearchableFields && this.filterFormSearchableFields.length",
|
|
3056
3403
|
"onEvent": {
|
|
@@ -3066,7 +3413,7 @@ async function getObjectFieldsFilterBarSchema(objectSchema, ctx) {
|
|
|
3066
3413
|
},
|
|
3067
3414
|
{
|
|
3068
3415
|
"type": "button",
|
|
3069
|
-
"label": "
|
|
3416
|
+
"label": i18next__default["default"].t('frontend_form_cancel'),
|
|
3070
3417
|
"name": "btn_filter_form_cancel",
|
|
3071
3418
|
// "visibleOn": "this.filterFormSearchableFields && this.filterFormSearchableFields.length",
|
|
3072
3419
|
"onEvent": {
|
|
@@ -3082,7 +3429,7 @@ async function getObjectFieldsFilterBarSchema(objectSchema, ctx) {
|
|
|
3082
3429
|
},
|
|
3083
3430
|
{
|
|
3084
3431
|
"type": "button",
|
|
3085
|
-
"label": "
|
|
3432
|
+
"label": i18next__default["default"].t('frontend_fields_filter_button_settings'),
|
|
3086
3433
|
"onEvent": {
|
|
3087
3434
|
"click": {
|
|
3088
3435
|
"actions": [
|
|
@@ -3091,7 +3438,7 @@ async function getObjectFieldsFilterBarSchema(objectSchema, ctx) {
|
|
|
3091
3438
|
"dialog": {
|
|
3092
3439
|
"type": "dialog",
|
|
3093
3440
|
"size": "md",
|
|
3094
|
-
"title": "
|
|
3441
|
+
"title": i18next__default["default"].t('frontend_fields_filter_button_settings'),
|
|
3095
3442
|
"body": [
|
|
3096
3443
|
{
|
|
3097
3444
|
"type": "form",
|
|
@@ -3159,7 +3506,7 @@ async function getObjectFieldsFilterBarSchema(objectSchema, ctx) {
|
|
|
3159
3506
|
"actions": [
|
|
3160
3507
|
{
|
|
3161
3508
|
"type": "button",
|
|
3162
|
-
"label": "
|
|
3509
|
+
"label": i18next__default["default"].t('frontend_form_cancel'),
|
|
3163
3510
|
"onEvent": {
|
|
3164
3511
|
"click": {
|
|
3165
3512
|
"actions": [
|
|
@@ -3175,7 +3522,7 @@ async function getObjectFieldsFilterBarSchema(objectSchema, ctx) {
|
|
|
3175
3522
|
},
|
|
3176
3523
|
{
|
|
3177
3524
|
"type": "button",
|
|
3178
|
-
"label": "
|
|
3525
|
+
"label": i18next__default["default"].t('frontend_form_confirm'),
|
|
3179
3526
|
"onEvent": {
|
|
3180
3527
|
"click": {
|
|
3181
3528
|
"actions": [
|
|
@@ -3692,7 +4039,7 @@ const getExportExcelToolbarButtonSchema = ()=>{
|
|
|
3692
4039
|
"className": "bg-white p-2 rounded border-gray-300 text-gray-500",
|
|
3693
4040
|
"tooltipPlacement": "bottom",
|
|
3694
4041
|
"visibleOn": "${!isLookup && global.user.is_space_admin}",
|
|
3695
|
-
"tooltip": "
|
|
4042
|
+
"tooltip": i18next__default["default"].t('frontend_export_excel'),
|
|
3696
4043
|
"onEvent": {
|
|
3697
4044
|
"click": {
|
|
3698
4045
|
"weight": 0,
|
|
@@ -3778,7 +4125,7 @@ function requestAdaptor$1(){
|
|
|
3778
4125
|
const getNewListviewButtonSchema = ()=>{
|
|
3779
4126
|
return {
|
|
3780
4127
|
"type": "button",
|
|
3781
|
-
"label": "
|
|
4128
|
+
"label": i18next__default["default"].t('frontend_listview_control_new_label'),
|
|
3782
4129
|
"onEvent": {
|
|
3783
4130
|
"click": {
|
|
3784
4131
|
"weight": 0,
|
|
@@ -3786,7 +4133,7 @@ const getNewListviewButtonSchema = ()=>{
|
|
|
3786
4133
|
{
|
|
3787
4134
|
"dialog": {
|
|
3788
4135
|
"type": "dialog",
|
|
3789
|
-
"title": "
|
|
4136
|
+
"title": i18next__default["default"].t('frontend_listview_control_new_title'),
|
|
3790
4137
|
"data": {
|
|
3791
4138
|
//"&":"$$",2.7、2.9、3.0在此处失效
|
|
3792
4139
|
"all": "${uiSchema.list_views.all}",
|
|
@@ -3828,8 +4175,8 @@ const getNewListviewButtonSchema = ()=>{
|
|
|
3828
4175
|
}
|
|
3829
4176
|
},
|
|
3830
4177
|
"messages": {
|
|
3831
|
-
"success": "
|
|
3832
|
-
"failed": "
|
|
4178
|
+
"success": i18next__default["default"].t('frontend_listview_control_new_message_success'),
|
|
4179
|
+
"failed": i18next__default["default"].t('frontend_listview_control_new_message_failed')
|
|
3833
4180
|
},
|
|
3834
4181
|
}
|
|
3835
4182
|
],
|
|
@@ -3928,7 +4275,7 @@ function fieldsExtend$4(){
|
|
|
3928
4275
|
const getCopyListviewButtonSchema = ()=>{
|
|
3929
4276
|
return {
|
|
3930
4277
|
"type": "button",
|
|
3931
|
-
"label": "
|
|
4278
|
+
"label": i18next__default["default"].t('frontend_listview_control_clone_label'),
|
|
3932
4279
|
"onEvent": {
|
|
3933
4280
|
"click": {
|
|
3934
4281
|
"weight": 0,
|
|
@@ -3936,7 +4283,7 @@ const getCopyListviewButtonSchema = ()=>{
|
|
|
3936
4283
|
{
|
|
3937
4284
|
"dialog": {
|
|
3938
4285
|
"type": "dialog",
|
|
3939
|
-
"title": "
|
|
4286
|
+
"title": i18next__default["default"].t('frontend_listview_control_clone_title'),
|
|
3940
4287
|
"data": {
|
|
3941
4288
|
//"&":"$$",2.7、2.9、3.0在此处失效
|
|
3942
4289
|
"listName": "${listName}",
|
|
@@ -3956,7 +4303,7 @@ const getCopyListviewButtonSchema = ()=>{
|
|
|
3956
4303
|
"defaultData": {
|
|
3957
4304
|
"&": "${list_view}",
|
|
3958
4305
|
"name":"",
|
|
3959
|
-
"label": "${list_view.label}
|
|
4306
|
+
"label": i18next__default["default"].t('frontend_listview_control_clone_defaultData_label_start') + " ${list_view.label} " + i18next__default["default"].t('frontend_listview_control_clone_defaultData_label_end'),
|
|
3960
4307
|
"shared":false
|
|
3961
4308
|
},
|
|
3962
4309
|
"fieldsExtend": fieldsExtend$3(),
|
|
@@ -4073,7 +4420,7 @@ function fieldsExtend$3(){
|
|
|
4073
4420
|
const getRenameListviewButtonSchema = ()=>{
|
|
4074
4421
|
return {
|
|
4075
4422
|
"type": "button",
|
|
4076
|
-
"label": "
|
|
4423
|
+
"label": i18next__default["default"].t('frontend_listview_control_rename_label'),
|
|
4077
4424
|
"disabledOn": "!((global.user.is_space_admin || global.userId == uiSchema.list_views[listName].owner) && !!uiSchema.list_views[listName].owner)",
|
|
4078
4425
|
"onEvent": {
|
|
4079
4426
|
"click": {
|
|
@@ -4082,7 +4429,7 @@ const getRenameListviewButtonSchema = ()=>{
|
|
|
4082
4429
|
{
|
|
4083
4430
|
"dialog": {
|
|
4084
4431
|
"type": "dialog",
|
|
4085
|
-
"title": "
|
|
4432
|
+
"title": i18next__default["default"].t('frontend_listview_control_rename_title'),
|
|
4086
4433
|
"data": {
|
|
4087
4434
|
"targetObjectName": "${objectName}",
|
|
4088
4435
|
"recordId": "${uiSchema.list_views[listName]._id}",
|
|
@@ -4132,7 +4479,7 @@ const getRenameListviewButtonSchema = ()=>{
|
|
|
4132
4479
|
const getSetListviewShareButtonSchema = ()=>{
|
|
4133
4480
|
return {
|
|
4134
4481
|
"type": "button",
|
|
4135
|
-
"label": "
|
|
4482
|
+
"label": i18next__default["default"].t('frontend_listview_control_share'),
|
|
4136
4483
|
"disabledOn": "!(global.user.is_space_admin && !!uiSchema.list_views[listName].owner)",
|
|
4137
4484
|
"onEvent": {
|
|
4138
4485
|
"click": {
|
|
@@ -4141,7 +4488,7 @@ const getSetListviewShareButtonSchema = ()=>{
|
|
|
4141
4488
|
{
|
|
4142
4489
|
"dialog": {
|
|
4143
4490
|
"type": "dialog",
|
|
4144
|
-
"title": "
|
|
4491
|
+
"title": i18next__default["default"].t('frontend_listview_control_share'),
|
|
4145
4492
|
"data": {
|
|
4146
4493
|
"recordId": "${uiSchema.list_views[listName]._id}",
|
|
4147
4494
|
"context": "${context}"
|
|
@@ -4176,7 +4523,7 @@ const getSetListviewShareButtonSchema = ()=>{
|
|
|
4176
4523
|
const getSetListviewFiltersButtonSchema = ()=>{
|
|
4177
4524
|
return {
|
|
4178
4525
|
"type": "button",
|
|
4179
|
-
"label": "
|
|
4526
|
+
"label": i18next__default["default"].t('frontend_listview_control_filters'),
|
|
4180
4527
|
"disabledOn": "!((global.user.is_space_admin || global.userId == uiSchema.list_views[listName].owner) && !!uiSchema.list_views[listName].owner)",
|
|
4181
4528
|
"onEvent": {
|
|
4182
4529
|
"click": {
|
|
@@ -4185,7 +4532,7 @@ const getSetListviewFiltersButtonSchema = ()=>{
|
|
|
4185
4532
|
{
|
|
4186
4533
|
"dialog": {
|
|
4187
4534
|
"type": "dialog",
|
|
4188
|
-
"title": "
|
|
4535
|
+
"title": i18next__default["default"].t('frontend_listview_control_filters'),
|
|
4189
4536
|
"data": {
|
|
4190
4537
|
"targetObjectName": "${objectName}",
|
|
4191
4538
|
"recordId": "${uiSchema.list_views[listName]._id}",
|
|
@@ -4306,7 +4653,7 @@ function fieldsExtend$2(){
|
|
|
4306
4653
|
"visible_on": "true",
|
|
4307
4654
|
"amis": {
|
|
4308
4655
|
"type": "condition-builder",
|
|
4309
|
-
"label": "
|
|
4656
|
+
"label": i18next__default["default"].t('frontend_listview_control_filters_fields_extend'),
|
|
4310
4657
|
"source": {
|
|
4311
4658
|
"method": "get",
|
|
4312
4659
|
"url": "${context.rootUrl}/service/api/amis-metadata-listviews/getFilterFields?objectName=${targetObjectName}",
|
|
@@ -4323,7 +4670,7 @@ function fieldsExtend$2(){
|
|
|
4323
4670
|
const getSetListviewColumnsButtonSchema = ()=>{
|
|
4324
4671
|
return {
|
|
4325
4672
|
"type": "button",
|
|
4326
|
-
"label": "
|
|
4673
|
+
"label": i18next__default["default"].t('frontend_listview_control_columns'),
|
|
4327
4674
|
"disabledOn": "!((global.user.is_space_admin || global.userId == uiSchema.list_views[listName].owner) && !!uiSchema.list_views[listName].owner)",
|
|
4328
4675
|
"onEvent": {
|
|
4329
4676
|
"click": {
|
|
@@ -4333,7 +4680,7 @@ const getSetListviewColumnsButtonSchema = ()=>{
|
|
|
4333
4680
|
"args": {},
|
|
4334
4681
|
"dialog": {
|
|
4335
4682
|
"type": "dialog",
|
|
4336
|
-
"title": "
|
|
4683
|
+
"title": i18next__default["default"].t('frontend_listview_control_columns'),
|
|
4337
4684
|
"data": {
|
|
4338
4685
|
//"&":"$$",2.7、2.9、3.0在此处失效
|
|
4339
4686
|
"targetObjectName": "${objectName}",
|
|
@@ -4403,7 +4750,7 @@ function fieldsExtend$1(){
|
|
|
4403
4750
|
}
|
|
4404
4751
|
},
|
|
4405
4752
|
"mobile_columns": {
|
|
4406
|
-
"group": "
|
|
4753
|
+
"group": i18next__default["default"].t('frontend_listview_control_columns_mobile_group'),
|
|
4407
4754
|
"amis": {
|
|
4408
4755
|
"type": "transfer",
|
|
4409
4756
|
"sortable": true,
|
|
@@ -4478,7 +4825,7 @@ function apiRequestAdaptor$1(){
|
|
|
4478
4825
|
const getSetListviewSortButtonSchema = ()=>{
|
|
4479
4826
|
return {
|
|
4480
4827
|
"type": "button",
|
|
4481
|
-
"label": "
|
|
4828
|
+
"label": i18next__default["default"].t('frontend_listview_control_sort'),
|
|
4482
4829
|
"disabledOn": "!((global.user.is_space_admin || global.userId == uiSchema.list_views[listName].owner) && !!uiSchema.list_views[listName].owner)",
|
|
4483
4830
|
"onEvent": {
|
|
4484
4831
|
"click": {
|
|
@@ -4487,7 +4834,7 @@ const getSetListviewSortButtonSchema = ()=>{
|
|
|
4487
4834
|
{
|
|
4488
4835
|
"dialog": {
|
|
4489
4836
|
"type": "dialog",
|
|
4490
|
-
"title": "
|
|
4837
|
+
"title": i18next__default["default"].t('frontend_listview_control_sort'),
|
|
4491
4838
|
"data": {
|
|
4492
4839
|
//"&":"$$",2.7、2.9、3.0在此处失效
|
|
4493
4840
|
"targetObjectName": "${objectName}",
|
|
@@ -4603,9 +4950,9 @@ function apiRequestAdaptor(){
|
|
|
4603
4950
|
const getDeleteListviewButtonSchema = ()=>{
|
|
4604
4951
|
return {
|
|
4605
4952
|
"type": "button",
|
|
4606
|
-
"label": "
|
|
4953
|
+
"label": i18next__default["default"].t('frontend_listview_control_delete_label'),
|
|
4607
4954
|
"disabledOn": "!((global.user.is_space_admin || global.userId == uiSchema.list_views[listName].owner) && !!uiSchema.list_views[listName].owner)",
|
|
4608
|
-
"confirmText": "
|
|
4955
|
+
"confirmText": i18next__default["default"].t('frontend_listview_control_delete_confirm_text'),
|
|
4609
4956
|
"onEvent": {
|
|
4610
4957
|
"click": {
|
|
4611
4958
|
"actions": [
|
|
@@ -4624,7 +4971,7 @@ const getDeleteListviewButtonSchema = ()=>{
|
|
|
4624
4971
|
"recordId": "${uiSchema.list_views[listName]._id}"
|
|
4625
4972
|
},
|
|
4626
4973
|
"messages": {
|
|
4627
|
-
"success": "
|
|
4974
|
+
"success": i18next__default["default"].t('frontend_listview_control_delete_message_success')
|
|
4628
4975
|
},
|
|
4629
4976
|
"requestAdaptor": requestAdaptor(),
|
|
4630
4977
|
"adaptor": adaptor(),
|
|
@@ -4671,13 +5018,13 @@ const getSettingListviewToolbarButtonSchema = ()=>{
|
|
|
4671
5018
|
"type": "dropdown-button",
|
|
4672
5019
|
"trigger": "click",
|
|
4673
5020
|
"icon": "fa fa-cog",
|
|
4674
|
-
"tooltip": "
|
|
5021
|
+
"tooltip": i18next__default["default"].t('frontend_button_listview_control_tooltip'),
|
|
4675
5022
|
"btnClassName": "antd-Button--iconOnly bg-white p-2 rounded border-gray-300 text-gray-500",
|
|
4676
5023
|
"align": "right",
|
|
4677
5024
|
"visibleOn": "${!isLookup}",
|
|
4678
5025
|
"buttons": [
|
|
4679
5026
|
{
|
|
4680
|
-
"label": "
|
|
5027
|
+
"label": i18next__default["default"].t('frontend_button_listview_control_label'),
|
|
4681
5028
|
"children": [
|
|
4682
5029
|
getNewListviewButtonSchema(),
|
|
4683
5030
|
getCopyListviewButtonSchema(),
|
|
@@ -4698,30 +5045,30 @@ const getDisplayAsButton = function(objectName, showDisplayAs){
|
|
|
4698
5045
|
let buttons = [
|
|
4699
5046
|
{
|
|
4700
5047
|
"type": "button",
|
|
4701
|
-
"label": "
|
|
5048
|
+
"label": i18next__default["default"].t('frontend_display_type_is_table'),
|
|
4702
5049
|
"onClick": "let url = document.location.pathname; var urlSearch = new URLSearchParams(document.location.search); if(urlSearch.get(\"side_object\") && urlSearch.get(\"side_listview_id\")){url=`/app/${props.data.appId}/${urlSearch.get(\"side_object\")}/grid/${urlSearch.get(\"side_listview_id\")}`;}; props.env.jumpTo(url + '?display=grid');",
|
|
4703
5050
|
"rightIcon": displayAs != 'split' ? "fa fa-check" : null,
|
|
4704
5051
|
"rightIconClassName": "m-l-sm"
|
|
4705
5052
|
},
|
|
4706
5053
|
{
|
|
4707
5054
|
"type": "button",
|
|
4708
|
-
"label": "
|
|
5055
|
+
"label": i18next__default["default"].t('frontend_display_type_is_split'),
|
|
4709
5056
|
"onClick": "const url = document.location.pathname + '?display=split'; props.env.jumpTo(url);",
|
|
4710
5057
|
"rightIcon": displayAs === 'split' ? "fa fa-check" : null,
|
|
4711
5058
|
"rightIconClassName": "m-l-sm"
|
|
4712
5059
|
}
|
|
4713
5060
|
];
|
|
4714
|
-
const displayAsLabel = displayAs === 'split'? "
|
|
5061
|
+
const displayAsLabel = displayAs === 'split'? i18next__default["default"].t('frontend_display_type_is_split') : i18next__default["default"].t('frontend_display_type_is_table');
|
|
4715
5062
|
return {
|
|
4716
5063
|
"type": "dropdown-button",
|
|
4717
5064
|
"icon": "fa fa-table-columns",
|
|
4718
|
-
"tooltip":
|
|
5065
|
+
"tooltip": `${i18next__default["default"].t('frontend_display_as')} ${displayAsLabel}`,
|
|
4719
5066
|
"btnClassName": "antd-Button--iconOnly bg-white p-2 rounded border-gray-300 text-gray-500",
|
|
4720
5067
|
"align": "right",
|
|
4721
5068
|
"visibleOn": "${window:innerWidth > 768 && !!!isLookup}",
|
|
4722
5069
|
"buttons": [
|
|
4723
5070
|
{
|
|
4724
|
-
"label": "
|
|
5071
|
+
"label": i18next__default["default"].t('frontend_display_as'),
|
|
4725
5072
|
"children": buttons
|
|
4726
5073
|
}
|
|
4727
5074
|
]
|
|
@@ -4789,13 +5136,13 @@ function getObjectHeaderToolbar(mainObject, formFactor, {showDisplayAs = false,
|
|
|
4789
5136
|
...(headerToolbarItems || []),
|
|
4790
5137
|
hiddenCount ? {} :{
|
|
4791
5138
|
"type": "tpl",
|
|
4792
|
-
"tpl": "${count}
|
|
5139
|
+
"tpl": "${count} " + i18next__default["default"].t('frontend_record_sum')
|
|
4793
5140
|
},
|
|
4794
5141
|
{
|
|
4795
5142
|
// "type": "reload",//不可以直接使用reload,因为它不会设置页码到第一页
|
|
4796
5143
|
"type": "button",
|
|
4797
5144
|
"align": "right",
|
|
4798
|
-
"tooltip": "
|
|
5145
|
+
"tooltip": i18next__default["default"].t('frontend_button_reload_tooltip'),
|
|
4799
5146
|
"className": "bg-white p-2 rounded border-gray-300 text-gray-500",
|
|
4800
5147
|
"label": "",
|
|
4801
5148
|
"icon": "fa fa-sync",
|
|
@@ -4815,7 +5162,7 @@ function getObjectHeaderToolbar(mainObject, formFactor, {showDisplayAs = false,
|
|
|
4815
5162
|
"label": "",
|
|
4816
5163
|
"icon": "fa fa-search",
|
|
4817
5164
|
"type": "button",
|
|
4818
|
-
"tooltip": "
|
|
5165
|
+
"tooltip": i18next__default["default"].t('frontend_button_search_tooltip'),
|
|
4819
5166
|
"badge": {
|
|
4820
5167
|
"offset": [
|
|
4821
5168
|
-5,
|
|
@@ -4855,12 +5202,12 @@ function getObjectHeaderToolbar(mainObject, formFactor, {showDisplayAs = false,
|
|
|
4855
5202
|
// },
|
|
4856
5203
|
hiddenCount ? {} : {
|
|
4857
5204
|
"type": "tpl",
|
|
4858
|
-
"tpl": "${count}
|
|
5205
|
+
"tpl": "${count} " + i18next__default["default"].t('frontend_record_sum')
|
|
4859
5206
|
},
|
|
4860
5207
|
{
|
|
4861
5208
|
"type": "reload",
|
|
4862
5209
|
"align": "right",
|
|
4863
|
-
"tooltip": "
|
|
5210
|
+
"tooltip": i18next__default["default"].t('frontend_button_reload_tooltip'),
|
|
4864
5211
|
"tooltipPlacement": "bottom",
|
|
4865
5212
|
"className": "bg-white p-2 rounded border-gray-300 text-gray-500"
|
|
4866
5213
|
},
|
|
@@ -4868,7 +5215,7 @@ function getObjectHeaderToolbar(mainObject, formFactor, {showDisplayAs = false,
|
|
|
4868
5215
|
filterVisible ? {
|
|
4869
5216
|
"label": "",
|
|
4870
5217
|
"icon": "fa fa-search",
|
|
4871
|
-
"tooltip": "
|
|
5218
|
+
"tooltip": i18next__default["default"].t('frontend_button_search_tooltip'),
|
|
4872
5219
|
"tooltipPlacement": "bottom",
|
|
4873
5220
|
"type": "button",
|
|
4874
5221
|
"align": "right",
|
|
@@ -7371,7 +7718,7 @@ async function getTableOperation(ctx){
|
|
|
7371
7718
|
}
|
|
7372
7719
|
return {
|
|
7373
7720
|
type: 'operation',
|
|
7374
|
-
label: '
|
|
7721
|
+
label: i18next__default["default"].t('frontend_ercord_operation'),
|
|
7375
7722
|
fixed: 'right',
|
|
7376
7723
|
labelClassName: 'text-center',
|
|
7377
7724
|
className: 'text-center steedos-listview-operation w-20',
|
|
@@ -8420,7 +8767,7 @@ async function getObjectCalendar(objectSchema, calendarOptions, options) {
|
|
|
8420
8767
|
// ObjectForm会认作用域下的变量值
|
|
8421
8768
|
// TODO: 待组件支持initValues属性后应该改掉,不应该通过data直接传值
|
|
8422
8769
|
// TODO: 全天事件属性传入doc了但是没有生效,需要手动在ObjectForm中勾选全天事件
|
|
8423
|
-
const title = "
|
|
8770
|
+
const title = "${i18next__default["default"].t('frontend_form_new')} ${objectSchema.label}";
|
|
8424
8771
|
doAction(
|
|
8425
8772
|
{
|
|
8426
8773
|
"actionType": "dialog",
|
|
@@ -8454,33 +8801,6 @@ async function getObjectCalendar(objectSchema, calendarOptions, options) {
|
|
|
8454
8801
|
});
|
|
8455
8802
|
`;
|
|
8456
8803
|
|
|
8457
|
-
const onEventClickScript = `
|
|
8458
|
-
const data = event.data;
|
|
8459
|
-
const eventData = data.event;
|
|
8460
|
-
const appId = data.appId;
|
|
8461
|
-
const objectName = data.objectName;
|
|
8462
|
-
const eventId = data.event && data.event.id;
|
|
8463
|
-
doAction({
|
|
8464
|
-
"actionType": "dialog",
|
|
8465
|
-
"dialog": {
|
|
8466
|
-
"type": "dialog",
|
|
8467
|
-
"title": "",
|
|
8468
|
-
"body": [
|
|
8469
|
-
{
|
|
8470
|
-
"type": "steedos-record-detail",
|
|
8471
|
-
"objectApiName": "\${objectName}",
|
|
8472
|
-
"recordId": data.event && data.event.id
|
|
8473
|
-
}
|
|
8474
|
-
],
|
|
8475
|
-
"closeOnEsc": false,
|
|
8476
|
-
"closeOnOutside": false,
|
|
8477
|
-
"showCloseButton": true,
|
|
8478
|
-
"size": "lg",
|
|
8479
|
-
"actions": []
|
|
8480
|
-
}
|
|
8481
|
-
});
|
|
8482
|
-
`;
|
|
8483
|
-
|
|
8484
8804
|
const recordId = "${event.id}";
|
|
8485
8805
|
const recordPermissionsApi = getCalendarRecordPermissionsApi(objectSchema, recordId);
|
|
8486
8806
|
const recordSaveApi = getCalendarRecordSaveApi(objectSchema, calendarOptions);
|
|
@@ -8526,11 +8846,10 @@ async function getObjectCalendar(objectSchema, calendarOptions, options) {
|
|
|
8526
8846
|
"weight": 0,
|
|
8527
8847
|
"actions": [
|
|
8528
8848
|
{
|
|
8529
|
-
"
|
|
8849
|
+
"actionType": "link",
|
|
8530
8850
|
"args": {
|
|
8531
|
-
|
|
8532
|
-
|
|
8533
|
-
"script": onEventClickScript
|
|
8851
|
+
"link": "/app/${appId}/${objectName}/view/${event.id}"
|
|
8852
|
+
}
|
|
8534
8853
|
}
|
|
8535
8854
|
]
|
|
8536
8855
|
},
|
|
@@ -8560,7 +8879,7 @@ async function getObjectCalendar(objectSchema, calendarOptions, options) {
|
|
|
8560
8879
|
"expression": "!event.data.editable",
|
|
8561
8880
|
"args": {
|
|
8562
8881
|
"msgType": "error",
|
|
8563
|
-
"msg": "
|
|
8882
|
+
"msg": i18next__default["default"].t('frontend_message_no_permission_to_edit'),
|
|
8564
8883
|
"position": "top-center"
|
|
8565
8884
|
}
|
|
8566
8885
|
},
|
|
@@ -8570,8 +8889,8 @@ async function getObjectCalendar(objectSchema, calendarOptions, options) {
|
|
|
8570
8889
|
"args": {
|
|
8571
8890
|
"api": recordSaveApi,
|
|
8572
8891
|
"messages": {
|
|
8573
|
-
"success": objectSchema.label + "
|
|
8574
|
-
"failed": objectSchema.label + "
|
|
8892
|
+
"success": objectSchema.label + i18next__default["default"].t('frontend_message_modification_successful'),
|
|
8893
|
+
"failed": objectSchema.label + i18next__default["default"].t('frontend_message_modification_successful')
|
|
8575
8894
|
}
|
|
8576
8895
|
}
|
|
8577
8896
|
}
|
|
@@ -8643,7 +8962,12 @@ async function getObjectCalendar(objectSchema, calendarOptions, options) {
|
|
|
8643
8962
|
"initialView": initialView,
|
|
8644
8963
|
"businessHours": businessHours,
|
|
8645
8964
|
...config,
|
|
8646
|
-
"onEvent": onEvent
|
|
8965
|
+
"onEvent": onEvent,
|
|
8966
|
+
"views":{
|
|
8967
|
+
listWeek: {
|
|
8968
|
+
buttonText: i18next__default["default"].t('frontend_calendar_listWeek')
|
|
8969
|
+
}
|
|
8970
|
+
}
|
|
8647
8971
|
};
|
|
8648
8972
|
return amisSchema;
|
|
8649
8973
|
}
|
|
@@ -8662,7 +8986,7 @@ const getFieldSchemaArray = (formFields) => {
|
|
|
8662
8986
|
|
|
8663
8987
|
___namespace.forEach(formFields, (field) => {
|
|
8664
8988
|
if (!field.group || field.group == 'null' || field.group == '-')
|
|
8665
|
-
field.group = '
|
|
8989
|
+
field.group = i18next__default["default"].t('frontend_field_group_generalization');
|
|
8666
8990
|
const fieldName = field.name;
|
|
8667
8991
|
let isObjectField = /\w+\.\w+/.test(fieldName);
|
|
8668
8992
|
if (field.type == 'grid' || field.type == 'object') {
|
|
@@ -8827,7 +9151,7 @@ function getBulkActions(objectSchema){
|
|
|
8827
9151
|
"level": "danger",
|
|
8828
9152
|
"label": "批量删除",
|
|
8829
9153
|
"actionType": "ajax",
|
|
8830
|
-
"confirmText": "
|
|
9154
|
+
"confirmText": i18next__default["default"].t('frontend_delete_many_confirm_text'),
|
|
8831
9155
|
"className": "hidden",
|
|
8832
9156
|
"id": "batchDelete",
|
|
8833
9157
|
"api": getBatchDelete(objectSchema.name),
|
|
@@ -10106,7 +10430,7 @@ async function getRecordDetailSchema(objectName, appId, props = {}){
|
|
|
10106
10430
|
const uiSchema = await getUISchema(objectName);
|
|
10107
10431
|
const relatedLists = await getObjectRelatedList(objectName);
|
|
10108
10432
|
const detailed = {
|
|
10109
|
-
"title": "
|
|
10433
|
+
"title": i18next__default["default"].t('frontend_record_detail_tab_detailed'),
|
|
10110
10434
|
"className": "px-0 py-4",
|
|
10111
10435
|
"body": [
|
|
10112
10436
|
{
|
|
@@ -10121,7 +10445,7 @@ async function getRecordDetailSchema(objectName, appId, props = {}){
|
|
|
10121
10445
|
"id": "u:5d4e7e3f6ecc"
|
|
10122
10446
|
};
|
|
10123
10447
|
const related = {
|
|
10124
|
-
"title": "
|
|
10448
|
+
"title": i18next__default["default"].t('frontend_record_detail_tab_related'),
|
|
10125
10449
|
"className": "px-0 pt-4",
|
|
10126
10450
|
"body": [
|
|
10127
10451
|
{
|
|
@@ -13073,6 +13397,10 @@ const getInstanceInfo = async ({ instanceId, box }) => {
|
|
|
13073
13397
|
};
|
|
13074
13398
|
};
|
|
13075
13399
|
|
|
13400
|
+
Object.defineProperty(exports, 'i18next', {
|
|
13401
|
+
enumerable: true,
|
|
13402
|
+
get: function () { return i18next__default["default"]; }
|
|
13403
|
+
});
|
|
13076
13404
|
exports.Field = index;
|
|
13077
13405
|
exports.Router = Router;
|
|
13078
13406
|
exports.absoluteUrl = absoluteUrl;
|