@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.esm.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import * as _$1 from 'lodash';
|
|
2
2
|
import ___default, { isEmpty, isArray, each, find, endsWith, cloneDeep, forEach, includes, get, isBoolean, omitBy, isNil, toArray, mergeWith, map, isString, union, has, slice, defaultsDeep as defaultsDeep$1, isObject as isObject$1, filter, startsWith } from 'lodash';
|
|
3
|
+
import i18next from 'i18next';
|
|
4
|
+
export { default as i18next } from 'i18next';
|
|
5
|
+
import { initReactI18next } from 'react-i18next';
|
|
3
6
|
import { Router as Router$1, getSteedosAuth as getSteedosAuth$1, lookupToAmis as lookupToAmis$1, fetchAPI as fetchAPI$1 } from '@steedos-widgets/amis-lib';
|
|
4
7
|
import isPlainObject from 'lodash/isPlainObject';
|
|
5
8
|
|
|
@@ -183,7 +186,7 @@ const amisRender = (root, schema, data = {}, env = {}, options) => {
|
|
|
183
186
|
* @Author: baozhoutao@steedos.com
|
|
184
187
|
* @Date: 2022-07-04 11:24:28
|
|
185
188
|
* @LastEditors: baozhoutao@steedos.com
|
|
186
|
-
* @LastEditTime: 2023-
|
|
189
|
+
* @LastEditTime: 2023-06-12 11:51:15
|
|
187
190
|
* @Description:
|
|
188
191
|
*/
|
|
189
192
|
|
|
@@ -213,7 +216,6 @@ async function fetchAPI(api, options = { credentials: 'include' }) {
|
|
|
213
216
|
|
|
214
217
|
options.headers = Object.assign({}, headers, options.headers);
|
|
215
218
|
options.credentials = 'include';
|
|
216
|
-
|
|
217
219
|
const res = await fetch(`${getRootUrl()}${api}`, options);
|
|
218
220
|
|
|
219
221
|
if(res.status === 401){
|
|
@@ -308,7 +310,7 @@ function getRootUrl(defaultRootUrl){
|
|
|
308
310
|
if(rootUrl){
|
|
309
311
|
return rootUrl
|
|
310
312
|
}
|
|
311
|
-
return defaultRootUrl;
|
|
313
|
+
return defaultRootUrl || '';
|
|
312
314
|
}
|
|
313
315
|
|
|
314
316
|
function setRootUrl(rootUrl){
|
|
@@ -1383,6 +1385,350 @@ const parseSingleExpression = function (func, formData, dataPath, global, userSe
|
|
|
1383
1385
|
}
|
|
1384
1386
|
};
|
|
1385
1387
|
|
|
1388
|
+
var frontend_field_group_generalization$1 = "Generalization";
|
|
1389
|
+
var frontend_download$1 = "Download";
|
|
1390
|
+
var frontend_form_save$1 = "Save";
|
|
1391
|
+
var frontend_form_save_and_new$1 = "Save and New";
|
|
1392
|
+
var frontend_form_cancel$1 = "Cancel";
|
|
1393
|
+
var frontend_form_new$1 = "New";
|
|
1394
|
+
var frontend_form_edit$1 = "Edit";
|
|
1395
|
+
var frontend_form_select$1 = "Select";
|
|
1396
|
+
var frontend_form_confirm$1 = "Confirm";
|
|
1397
|
+
var frontend_form_delete$1 = "Delete";
|
|
1398
|
+
var frontend_form_view$1 = "view";
|
|
1399
|
+
var frontend_delete_confirm_text$1 = "Are you sure you want to delete this item?";
|
|
1400
|
+
var frontend_delete_many_selected_required$1 = "Please select the item to be deleted";
|
|
1401
|
+
var frontend_delete_many_confirm_text$1 = "Are you sure you want to delete?";
|
|
1402
|
+
var frontend_display_type_is_table$1 = "Table";
|
|
1403
|
+
var frontend_display_type_is_split$1 = "Split View";
|
|
1404
|
+
var frontend_display_as$1 = "Displayed as";
|
|
1405
|
+
var frontend_record_sum$1 = "items";
|
|
1406
|
+
var frontend_button_reload_tooltip$1 = "Refresh";
|
|
1407
|
+
var frontend_button_search_tooltip$1 = "Search";
|
|
1408
|
+
var frontend_fields_filter_button_search$1 = "Search";
|
|
1409
|
+
var frontend_fields_filter_button_settings$1 = "Set search options";
|
|
1410
|
+
var frontend_button_listview_control_tooltip$1 = "List View Controls";
|
|
1411
|
+
var frontend_button_listview_control_label$1 = "LIST VIEW CONTROLS";
|
|
1412
|
+
var frontend_listview_control_columns$1 = "Show List";
|
|
1413
|
+
var frontend_listview_control_columns_mobile_group$1 = "Mobile side";
|
|
1414
|
+
var frontend_listview_control_clone_label$1 = "Clone";
|
|
1415
|
+
var frontend_listview_control_clone_title$1 = "Clone List View";
|
|
1416
|
+
var frontend_listview_control_clone_defaultData_label_start$1 = "Copy of";
|
|
1417
|
+
var frontend_listview_control_clone_defaultData_label_end$1 = "";
|
|
1418
|
+
var frontend_listview_control_delete_label$1 = "Delete";
|
|
1419
|
+
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?";
|
|
1420
|
+
var frontend_listview_control_delete_message_success$1 = "Deletion successful";
|
|
1421
|
+
var frontend_listview_control_filters$1 = "Filter settings";
|
|
1422
|
+
var frontend_listview_control_filters_fields_extend$1 = "Conditional component 1";
|
|
1423
|
+
var frontend_listview_control_new_label$1 = "New";
|
|
1424
|
+
var frontend_listview_control_new_title$1 = "New List View";
|
|
1425
|
+
var frontend_listview_control_new_message_success$1 = "Success";
|
|
1426
|
+
var frontend_listview_control_new_message_failed$1 = "Failure";
|
|
1427
|
+
var frontend_listview_control_rename_label$1 = "Rename";
|
|
1428
|
+
var frontend_listview_control_rename_title$1 = "Rename List View";
|
|
1429
|
+
var frontend_listview_control_share$1 = "Sharing Settings";
|
|
1430
|
+
var frontend_listview_control_sort$1 = "Default sorting rule";
|
|
1431
|
+
var frontend_export_excel$1 = "Export Excel";
|
|
1432
|
+
var frontend_ercord_operation$1 = "Operation";
|
|
1433
|
+
var frontend_import_data$1 = "Import data";
|
|
1434
|
+
var frontend_import_data_object_name$1 = "Import object";
|
|
1435
|
+
var frontend_import_data_queue_import$1 = "Data import";
|
|
1436
|
+
var frontend_import_data_queue_import_description$1 = "Import description";
|
|
1437
|
+
var frontend_import_data_queue_import_encoding$1 = "Character code";
|
|
1438
|
+
var frontend_import_data_queue_import_template_url$1 = "Import template";
|
|
1439
|
+
var frontend_import_data_file$1 = "Excel file";
|
|
1440
|
+
var frontend_import_data_message_success$1 = "Importing has started...";
|
|
1441
|
+
var frontend_import_data_message_failed$1 = "Import failed";
|
|
1442
|
+
var frontend_record_detail_tab_detailed$1 = "Details";
|
|
1443
|
+
var frontend_record_detail_tab_related$1 = "Related";
|
|
1444
|
+
var frontend_all_apps$1 = "All apps";
|
|
1445
|
+
var frontend_all_projects$1 = "All projects";
|
|
1446
|
+
var frontend_application_launcher$1 = "Application launcher";
|
|
1447
|
+
var frontend_menu$1 = "Menu";
|
|
1448
|
+
var frontend_help$1 = "Help";
|
|
1449
|
+
var frontend_setup$1 = "Setup";
|
|
1450
|
+
var frontend_notifications$1 = "Notifications";
|
|
1451
|
+
var frontend_notifications_allread$1 = "Mark all as read";
|
|
1452
|
+
var frontend_notifications_allread_message$1 = "All marked as read";
|
|
1453
|
+
var frontend_profile$1 = "Profile";
|
|
1454
|
+
var frontend_about$1 = "About";
|
|
1455
|
+
var frontend_log_out$1 = "Log out";
|
|
1456
|
+
var frontend_listview_warning_start$1 = "The current ";
|
|
1457
|
+
var frontend_listview_warning_end$1 = " view does not exist!";
|
|
1458
|
+
var frontend_record_detail_related_list_warning$1 = "Missing parent object, parent record, or related list object property!";
|
|
1459
|
+
var frontend_record_detail_related_lists_warning$1 = "Missing parent object, or parent record property!";
|
|
1460
|
+
var frontend_record_detail_related_lists_info$1 = "No related child tables found";
|
|
1461
|
+
var frontend_calendar_listWeek$1 = "List";
|
|
1462
|
+
var frontend_message_no_permission_to_edit$1 = "You don't have permission to edit this record!";
|
|
1463
|
+
var frontend_message_modification_successful$1 = "Modification successful!";
|
|
1464
|
+
var frontend_message_modification_failed$1 = "Modification failed!";
|
|
1465
|
+
var en_us = {
|
|
1466
|
+
frontend_field_group_generalization: frontend_field_group_generalization$1,
|
|
1467
|
+
frontend_download: frontend_download$1,
|
|
1468
|
+
frontend_form_save: frontend_form_save$1,
|
|
1469
|
+
frontend_form_save_and_new: frontend_form_save_and_new$1,
|
|
1470
|
+
frontend_form_cancel: frontend_form_cancel$1,
|
|
1471
|
+
frontend_form_new: frontend_form_new$1,
|
|
1472
|
+
frontend_form_edit: frontend_form_edit$1,
|
|
1473
|
+
frontend_form_select: frontend_form_select$1,
|
|
1474
|
+
frontend_form_confirm: frontend_form_confirm$1,
|
|
1475
|
+
frontend_form_delete: frontend_form_delete$1,
|
|
1476
|
+
frontend_form_view: frontend_form_view$1,
|
|
1477
|
+
frontend_delete_confirm_text: frontend_delete_confirm_text$1,
|
|
1478
|
+
frontend_delete_many_selected_required: frontend_delete_many_selected_required$1,
|
|
1479
|
+
frontend_delete_many_confirm_text: frontend_delete_many_confirm_text$1,
|
|
1480
|
+
frontend_display_type_is_table: frontend_display_type_is_table$1,
|
|
1481
|
+
frontend_display_type_is_split: frontend_display_type_is_split$1,
|
|
1482
|
+
frontend_display_as: frontend_display_as$1,
|
|
1483
|
+
frontend_record_sum: frontend_record_sum$1,
|
|
1484
|
+
frontend_button_reload_tooltip: frontend_button_reload_tooltip$1,
|
|
1485
|
+
frontend_button_search_tooltip: frontend_button_search_tooltip$1,
|
|
1486
|
+
frontend_fields_filter_button_search: frontend_fields_filter_button_search$1,
|
|
1487
|
+
frontend_fields_filter_button_settings: frontend_fields_filter_button_settings$1,
|
|
1488
|
+
frontend_button_listview_control_tooltip: frontend_button_listview_control_tooltip$1,
|
|
1489
|
+
frontend_button_listview_control_label: frontend_button_listview_control_label$1,
|
|
1490
|
+
frontend_listview_control_columns: frontend_listview_control_columns$1,
|
|
1491
|
+
frontend_listview_control_columns_mobile_group: frontend_listview_control_columns_mobile_group$1,
|
|
1492
|
+
frontend_listview_control_clone_label: frontend_listview_control_clone_label$1,
|
|
1493
|
+
frontend_listview_control_clone_title: frontend_listview_control_clone_title$1,
|
|
1494
|
+
frontend_listview_control_clone_defaultData_label_start: frontend_listview_control_clone_defaultData_label_start$1,
|
|
1495
|
+
frontend_listview_control_clone_defaultData_label_end: frontend_listview_control_clone_defaultData_label_end$1,
|
|
1496
|
+
frontend_listview_control_delete_label: frontend_listview_control_delete_label$1,
|
|
1497
|
+
frontend_listview_control_delete_confirm_text: frontend_listview_control_delete_confirm_text$1,
|
|
1498
|
+
frontend_listview_control_delete_message_success: frontend_listview_control_delete_message_success$1,
|
|
1499
|
+
frontend_listview_control_filters: frontend_listview_control_filters$1,
|
|
1500
|
+
frontend_listview_control_filters_fields_extend: frontend_listview_control_filters_fields_extend$1,
|
|
1501
|
+
frontend_listview_control_new_label: frontend_listview_control_new_label$1,
|
|
1502
|
+
frontend_listview_control_new_title: frontend_listview_control_new_title$1,
|
|
1503
|
+
frontend_listview_control_new_message_success: frontend_listview_control_new_message_success$1,
|
|
1504
|
+
frontend_listview_control_new_message_failed: frontend_listview_control_new_message_failed$1,
|
|
1505
|
+
frontend_listview_control_rename_label: frontend_listview_control_rename_label$1,
|
|
1506
|
+
frontend_listview_control_rename_title: frontend_listview_control_rename_title$1,
|
|
1507
|
+
frontend_listview_control_share: frontend_listview_control_share$1,
|
|
1508
|
+
frontend_listview_control_sort: frontend_listview_control_sort$1,
|
|
1509
|
+
frontend_export_excel: frontend_export_excel$1,
|
|
1510
|
+
frontend_ercord_operation: frontend_ercord_operation$1,
|
|
1511
|
+
frontend_import_data: frontend_import_data$1,
|
|
1512
|
+
frontend_import_data_object_name: frontend_import_data_object_name$1,
|
|
1513
|
+
frontend_import_data_queue_import: frontend_import_data_queue_import$1,
|
|
1514
|
+
frontend_import_data_queue_import_description: frontend_import_data_queue_import_description$1,
|
|
1515
|
+
frontend_import_data_queue_import_encoding: frontend_import_data_queue_import_encoding$1,
|
|
1516
|
+
frontend_import_data_queue_import_template_url: frontend_import_data_queue_import_template_url$1,
|
|
1517
|
+
frontend_import_data_file: frontend_import_data_file$1,
|
|
1518
|
+
frontend_import_data_message_success: frontend_import_data_message_success$1,
|
|
1519
|
+
frontend_import_data_message_failed: frontend_import_data_message_failed$1,
|
|
1520
|
+
frontend_record_detail_tab_detailed: frontend_record_detail_tab_detailed$1,
|
|
1521
|
+
frontend_record_detail_tab_related: frontend_record_detail_tab_related$1,
|
|
1522
|
+
frontend_all_apps: frontend_all_apps$1,
|
|
1523
|
+
frontend_all_projects: frontend_all_projects$1,
|
|
1524
|
+
frontend_application_launcher: frontend_application_launcher$1,
|
|
1525
|
+
frontend_menu: frontend_menu$1,
|
|
1526
|
+
frontend_help: frontend_help$1,
|
|
1527
|
+
frontend_setup: frontend_setup$1,
|
|
1528
|
+
frontend_notifications: frontend_notifications$1,
|
|
1529
|
+
frontend_notifications_allread: frontend_notifications_allread$1,
|
|
1530
|
+
frontend_notifications_allread_message: frontend_notifications_allread_message$1,
|
|
1531
|
+
frontend_profile: frontend_profile$1,
|
|
1532
|
+
frontend_about: frontend_about$1,
|
|
1533
|
+
frontend_log_out: frontend_log_out$1,
|
|
1534
|
+
frontend_listview_warning_start: frontend_listview_warning_start$1,
|
|
1535
|
+
frontend_listview_warning_end: frontend_listview_warning_end$1,
|
|
1536
|
+
frontend_record_detail_related_list_warning: frontend_record_detail_related_list_warning$1,
|
|
1537
|
+
frontend_record_detail_related_lists_warning: frontend_record_detail_related_lists_warning$1,
|
|
1538
|
+
frontend_record_detail_related_lists_info: frontend_record_detail_related_lists_info$1,
|
|
1539
|
+
frontend_calendar_listWeek: frontend_calendar_listWeek$1,
|
|
1540
|
+
frontend_message_no_permission_to_edit: frontend_message_no_permission_to_edit$1,
|
|
1541
|
+
frontend_message_modification_successful: frontend_message_modification_successful$1,
|
|
1542
|
+
frontend_message_modification_failed: frontend_message_modification_failed$1
|
|
1543
|
+
};
|
|
1544
|
+
|
|
1545
|
+
var frontend_field_group_generalization = "通用";
|
|
1546
|
+
var frontend_download = "下载";
|
|
1547
|
+
var frontend_form_save = "保存";
|
|
1548
|
+
var frontend_form_save_and_new = "保存并新建";
|
|
1549
|
+
var frontend_form_cancel = "取消";
|
|
1550
|
+
var frontend_form_new = "新建";
|
|
1551
|
+
var frontend_form_edit = "编辑";
|
|
1552
|
+
var frontend_form_select = "选择";
|
|
1553
|
+
var frontend_form_confirm = "确认";
|
|
1554
|
+
var frontend_form_delete = "删除";
|
|
1555
|
+
var frontend_form_view = "查看";
|
|
1556
|
+
var frontend_delete_confirm_text = "确定要删除此项目?";
|
|
1557
|
+
var frontend_delete_many_selected_required = "请选择要删除的项";
|
|
1558
|
+
var frontend_delete_many_confirm_text = "确定要删除吗?";
|
|
1559
|
+
var frontend_display_type_is_table = "表格";
|
|
1560
|
+
var frontend_display_type_is_split = "分栏视图";
|
|
1561
|
+
var frontend_display_as = "显示为";
|
|
1562
|
+
var frontend_record_sum = "个项目";
|
|
1563
|
+
var frontend_button_reload_tooltip = "刷新";
|
|
1564
|
+
var frontend_button_search_tooltip = "搜索";
|
|
1565
|
+
var frontend_fields_filter_button_search = "搜索";
|
|
1566
|
+
var frontend_fields_filter_button_settings = "设置搜索项";
|
|
1567
|
+
var frontend_button_listview_control_tooltip = "列表视图控制";
|
|
1568
|
+
var frontend_button_listview_control_label = "列表视图控制";
|
|
1569
|
+
var frontend_listview_control_columns = "显示的列";
|
|
1570
|
+
var frontend_listview_control_columns_mobile_group = "手机端";
|
|
1571
|
+
var frontend_listview_control_clone = "复制";
|
|
1572
|
+
var frontend_listview_control_clone_label = "复制";
|
|
1573
|
+
var frontend_listview_control_clone_title = "复制 列表视图";
|
|
1574
|
+
var frontend_listview_control_clone_defaultData_label_start = "";
|
|
1575
|
+
var frontend_listview_control_clone_defaultData_label_end = "的副本";
|
|
1576
|
+
var frontend_listview_control_delete_label = "删除";
|
|
1577
|
+
var frontend_listview_control_delete_confirm_text = "如果您删除此列表视图,该视图将为所有具备访问权限的用户永久删除。是否确定要删除?";
|
|
1578
|
+
var frontend_listview_control_delete_message_success = "删除成功";
|
|
1579
|
+
var frontend_listview_control_filters = "过滤设置";
|
|
1580
|
+
var frontend_listview_control_filters_fields_extend = "条件组件1";
|
|
1581
|
+
var frontend_listview_control_new_label = "新建";
|
|
1582
|
+
var frontend_listview_control_new_title = "新建 列表视图";
|
|
1583
|
+
var frontend_listview_control_new_message_success = "成功";
|
|
1584
|
+
var frontend_listview_control_new_message_failed = "失败";
|
|
1585
|
+
var frontend_listview_control_rename_label = "重命名";
|
|
1586
|
+
var frontend_listview_control_rename_title = "重命名 列表视图";
|
|
1587
|
+
var frontend_listview_control_share = "共享设置";
|
|
1588
|
+
var frontend_listview_control_sort = "默认排序规则";
|
|
1589
|
+
var frontend_export_excel = "导出excel";
|
|
1590
|
+
var frontend_ercord_operation = "操作";
|
|
1591
|
+
var frontend_import_data = "导入数据";
|
|
1592
|
+
var frontend_import_data_object_name = "导入对象";
|
|
1593
|
+
var frontend_import_data_queue_import = "数据导入";
|
|
1594
|
+
var frontend_import_data_queue_import_description = "导入描述";
|
|
1595
|
+
var frontend_import_data_queue_import_encoding = "字符代码";
|
|
1596
|
+
var frontend_import_data_queue_import_template_url = "导入模板";
|
|
1597
|
+
var frontend_import_data_file = "Excel文件";
|
|
1598
|
+
var frontend_import_data_message_success = "已开始导入...";
|
|
1599
|
+
var frontend_import_data_message_failed = "导入失败";
|
|
1600
|
+
var frontend_record_detail_tab_detailed = "详细";
|
|
1601
|
+
var frontend_record_detail_tab_related = "相关";
|
|
1602
|
+
var frontend_all_apps = "所有应用";
|
|
1603
|
+
var frontend_all_projects = "所有项目";
|
|
1604
|
+
var frontend_application_launcher = "应用程序启动器";
|
|
1605
|
+
var frontend_menu = "菜单";
|
|
1606
|
+
var frontend_help = "帮助";
|
|
1607
|
+
var frontend_setup = "设置";
|
|
1608
|
+
var frontend_notifications = "通知";
|
|
1609
|
+
var frontend_notifications_allread = "全部标记为已读";
|
|
1610
|
+
var frontend_notifications_allread_message = "已全部标记为已读";
|
|
1611
|
+
var frontend_profile = "个人资料";
|
|
1612
|
+
var frontend_about = "关于";
|
|
1613
|
+
var frontend_log_out = "注销";
|
|
1614
|
+
var frontend_listview_warning_start = "当前";
|
|
1615
|
+
var frontend_listview_warning_end = "视图不存在!";
|
|
1616
|
+
var frontend_record_detail_related_list_warning = "缺少父级对象、父级记录或相关列表对象属性!";
|
|
1617
|
+
var frontend_record_detail_related_lists_warning = "缺少父级对象或父级记录属性!";
|
|
1618
|
+
var frontend_record_detail_related_lists_info = "没有相关子表";
|
|
1619
|
+
var frontend_calendar_listWeek = "列表";
|
|
1620
|
+
var frontend_message_no_permission_to_edit = "您没有编辑该记录的权限!";
|
|
1621
|
+
var frontend_message_modification_successful = "修改成功!";
|
|
1622
|
+
var frontend_message_modification_failed = "修改失败!";
|
|
1623
|
+
var zh_cn = {
|
|
1624
|
+
frontend_field_group_generalization: frontend_field_group_generalization,
|
|
1625
|
+
frontend_download: frontend_download,
|
|
1626
|
+
frontend_form_save: frontend_form_save,
|
|
1627
|
+
frontend_form_save_and_new: frontend_form_save_and_new,
|
|
1628
|
+
frontend_form_cancel: frontend_form_cancel,
|
|
1629
|
+
frontend_form_new: frontend_form_new,
|
|
1630
|
+
frontend_form_edit: frontend_form_edit,
|
|
1631
|
+
frontend_form_select: frontend_form_select,
|
|
1632
|
+
frontend_form_confirm: frontend_form_confirm,
|
|
1633
|
+
frontend_form_delete: frontend_form_delete,
|
|
1634
|
+
frontend_form_view: frontend_form_view,
|
|
1635
|
+
frontend_delete_confirm_text: frontend_delete_confirm_text,
|
|
1636
|
+
frontend_delete_many_selected_required: frontend_delete_many_selected_required,
|
|
1637
|
+
frontend_delete_many_confirm_text: frontend_delete_many_confirm_text,
|
|
1638
|
+
frontend_display_type_is_table: frontend_display_type_is_table,
|
|
1639
|
+
frontend_display_type_is_split: frontend_display_type_is_split,
|
|
1640
|
+
frontend_display_as: frontend_display_as,
|
|
1641
|
+
frontend_record_sum: frontend_record_sum,
|
|
1642
|
+
frontend_button_reload_tooltip: frontend_button_reload_tooltip,
|
|
1643
|
+
frontend_button_search_tooltip: frontend_button_search_tooltip,
|
|
1644
|
+
frontend_fields_filter_button_search: frontend_fields_filter_button_search,
|
|
1645
|
+
frontend_fields_filter_button_settings: frontend_fields_filter_button_settings,
|
|
1646
|
+
frontend_button_listview_control_tooltip: frontend_button_listview_control_tooltip,
|
|
1647
|
+
frontend_button_listview_control_label: frontend_button_listview_control_label,
|
|
1648
|
+
frontend_listview_control_columns: frontend_listview_control_columns,
|
|
1649
|
+
frontend_listview_control_columns_mobile_group: frontend_listview_control_columns_mobile_group,
|
|
1650
|
+
frontend_listview_control_clone: frontend_listview_control_clone,
|
|
1651
|
+
frontend_listview_control_clone_label: frontend_listview_control_clone_label,
|
|
1652
|
+
frontend_listview_control_clone_title: frontend_listview_control_clone_title,
|
|
1653
|
+
frontend_listview_control_clone_defaultData_label_start: frontend_listview_control_clone_defaultData_label_start,
|
|
1654
|
+
frontend_listview_control_clone_defaultData_label_end: frontend_listview_control_clone_defaultData_label_end,
|
|
1655
|
+
frontend_listview_control_delete_label: frontend_listview_control_delete_label,
|
|
1656
|
+
frontend_listview_control_delete_confirm_text: frontend_listview_control_delete_confirm_text,
|
|
1657
|
+
frontend_listview_control_delete_message_success: frontend_listview_control_delete_message_success,
|
|
1658
|
+
frontend_listview_control_filters: frontend_listview_control_filters,
|
|
1659
|
+
frontend_listview_control_filters_fields_extend: frontend_listview_control_filters_fields_extend,
|
|
1660
|
+
frontend_listview_control_new_label: frontend_listview_control_new_label,
|
|
1661
|
+
frontend_listview_control_new_title: frontend_listview_control_new_title,
|
|
1662
|
+
frontend_listview_control_new_message_success: frontend_listview_control_new_message_success,
|
|
1663
|
+
frontend_listview_control_new_message_failed: frontend_listview_control_new_message_failed,
|
|
1664
|
+
frontend_listview_control_rename_label: frontend_listview_control_rename_label,
|
|
1665
|
+
frontend_listview_control_rename_title: frontend_listview_control_rename_title,
|
|
1666
|
+
frontend_listview_control_share: frontend_listview_control_share,
|
|
1667
|
+
frontend_listview_control_sort: frontend_listview_control_sort,
|
|
1668
|
+
frontend_export_excel: frontend_export_excel,
|
|
1669
|
+
frontend_ercord_operation: frontend_ercord_operation,
|
|
1670
|
+
frontend_import_data: frontend_import_data,
|
|
1671
|
+
frontend_import_data_object_name: frontend_import_data_object_name,
|
|
1672
|
+
frontend_import_data_queue_import: frontend_import_data_queue_import,
|
|
1673
|
+
frontend_import_data_queue_import_description: frontend_import_data_queue_import_description,
|
|
1674
|
+
frontend_import_data_queue_import_encoding: frontend_import_data_queue_import_encoding,
|
|
1675
|
+
frontend_import_data_queue_import_template_url: frontend_import_data_queue_import_template_url,
|
|
1676
|
+
frontend_import_data_file: frontend_import_data_file,
|
|
1677
|
+
frontend_import_data_message_success: frontend_import_data_message_success,
|
|
1678
|
+
frontend_import_data_message_failed: frontend_import_data_message_failed,
|
|
1679
|
+
frontend_record_detail_tab_detailed: frontend_record_detail_tab_detailed,
|
|
1680
|
+
frontend_record_detail_tab_related: frontend_record_detail_tab_related,
|
|
1681
|
+
frontend_all_apps: frontend_all_apps,
|
|
1682
|
+
frontend_all_projects: frontend_all_projects,
|
|
1683
|
+
frontend_application_launcher: frontend_application_launcher,
|
|
1684
|
+
frontend_menu: frontend_menu,
|
|
1685
|
+
frontend_help: frontend_help,
|
|
1686
|
+
frontend_setup: frontend_setup,
|
|
1687
|
+
frontend_notifications: frontend_notifications,
|
|
1688
|
+
frontend_notifications_allread: frontend_notifications_allread,
|
|
1689
|
+
frontend_notifications_allread_message: frontend_notifications_allread_message,
|
|
1690
|
+
frontend_profile: frontend_profile,
|
|
1691
|
+
frontend_about: frontend_about,
|
|
1692
|
+
frontend_log_out: frontend_log_out,
|
|
1693
|
+
frontend_listview_warning_start: frontend_listview_warning_start,
|
|
1694
|
+
frontend_listview_warning_end: frontend_listview_warning_end,
|
|
1695
|
+
frontend_record_detail_related_list_warning: frontend_record_detail_related_list_warning,
|
|
1696
|
+
frontend_record_detail_related_lists_warning: frontend_record_detail_related_lists_warning,
|
|
1697
|
+
frontend_record_detail_related_lists_info: frontend_record_detail_related_lists_info,
|
|
1698
|
+
frontend_calendar_listWeek: frontend_calendar_listWeek,
|
|
1699
|
+
frontend_message_no_permission_to_edit: frontend_message_no_permission_to_edit,
|
|
1700
|
+
frontend_message_modification_successful: frontend_message_modification_successful,
|
|
1701
|
+
frontend_message_modification_failed: frontend_message_modification_failed
|
|
1702
|
+
};
|
|
1703
|
+
|
|
1704
|
+
const resources = {
|
|
1705
|
+
"en-US": {
|
|
1706
|
+
translation: en_us
|
|
1707
|
+
},
|
|
1708
|
+
"zh-CN": {
|
|
1709
|
+
translation: zh_cn
|
|
1710
|
+
}
|
|
1711
|
+
};
|
|
1712
|
+
var locale = "zh-CN";
|
|
1713
|
+
if (typeof window != 'undefined') {
|
|
1714
|
+
if (window.Builder?.settings.locale == "en-us") {
|
|
1715
|
+
locale = "en-US";
|
|
1716
|
+
} else if (window.Builder?.settings.locale == "zh-cn") {
|
|
1717
|
+
locale = "zh-CN";
|
|
1718
|
+
}
|
|
1719
|
+
}
|
|
1720
|
+
|
|
1721
|
+
|
|
1722
|
+
i18next
|
|
1723
|
+
.use(initReactI18next)
|
|
1724
|
+
.init({
|
|
1725
|
+
resources,
|
|
1726
|
+
lng: locale,
|
|
1727
|
+
interpolation: {
|
|
1728
|
+
escapeValue: false
|
|
1729
|
+
}
|
|
1730
|
+
});
|
|
1731
|
+
|
|
1386
1732
|
/*
|
|
1387
1733
|
* @Author: baozhoutao@steedos.com
|
|
1388
1734
|
* @Date: 2022-11-01 15:51:00
|
|
@@ -1444,7 +1790,7 @@ const getSchema$4 = async (uiSchema, ctx) => {
|
|
|
1444
1790
|
"body": [
|
|
1445
1791
|
{
|
|
1446
1792
|
"type": "button",
|
|
1447
|
-
"label":
|
|
1793
|
+
"label": i18next.t('frontend_form_new'),
|
|
1448
1794
|
"id": "u:standard_new",
|
|
1449
1795
|
"level": "default",
|
|
1450
1796
|
"onEvent": {
|
|
@@ -1470,7 +1816,7 @@ const getSchema$4 = async (uiSchema, ctx) => {
|
|
|
1470
1816
|
"isLookup": "${isLookup}",
|
|
1471
1817
|
"listName": "${listName}"
|
|
1472
1818
|
},
|
|
1473
|
-
"title": "
|
|
1819
|
+
"title":i18next.t('frontend_form_new') + " ${uiSchema.label | raw}",
|
|
1474
1820
|
"body": [
|
|
1475
1821
|
{
|
|
1476
1822
|
"type": "service",
|
|
@@ -1503,11 +1849,11 @@ const getSchema$4 = async (uiSchema, ctx) => {
|
|
|
1503
1849
|
{
|
|
1504
1850
|
type: 'button',
|
|
1505
1851
|
actionType: 'cancel',
|
|
1506
|
-
label:
|
|
1852
|
+
label: i18next.t('frontend_form_cancel')
|
|
1507
1853
|
},
|
|
1508
1854
|
{
|
|
1509
1855
|
type: 'button',
|
|
1510
|
-
label:
|
|
1856
|
+
label: i18next.t('frontend_form_save_and_new'),
|
|
1511
1857
|
actionType: 'confirm',
|
|
1512
1858
|
close: false,
|
|
1513
1859
|
id: "confirmAndNew"
|
|
@@ -1515,7 +1861,7 @@ const getSchema$4 = async (uiSchema, ctx) => {
|
|
|
1515
1861
|
{
|
|
1516
1862
|
type: 'button',
|
|
1517
1863
|
actionType: 'confirm',
|
|
1518
|
-
label:
|
|
1864
|
+
label: i18next.t('frontend_form_save'),
|
|
1519
1865
|
primary: true
|
|
1520
1866
|
},
|
|
1521
1867
|
]
|
|
@@ -1566,7 +1912,7 @@ async function getPage({type, pageId = '', appId, objectName = '', recordId = ''
|
|
|
1566
1912
|
*/
|
|
1567
1913
|
|
|
1568
1914
|
const getSchema$3 = async (uiSchema, ctx) => {
|
|
1569
|
-
const title = "
|
|
1915
|
+
const title = i18next.t('frontend_form_edit') + " " + uiSchema.label;
|
|
1570
1916
|
|
|
1571
1917
|
const defaultFormSchema = {
|
|
1572
1918
|
type: "steedos-object-form",
|
|
@@ -1596,7 +1942,7 @@ const getSchema$3 = async (uiSchema, ctx) => {
|
|
|
1596
1942
|
body: [
|
|
1597
1943
|
{
|
|
1598
1944
|
type: "button",
|
|
1599
|
-
label:
|
|
1945
|
+
label: i18next.t('frontend_form_edit'),
|
|
1600
1946
|
id: "u:standard_edit",
|
|
1601
1947
|
onEvent: {
|
|
1602
1948
|
click: {
|
|
@@ -1640,8 +1986,8 @@ const getSchema$2 = (uiSchema)=>{
|
|
|
1640
1986
|
"body": [
|
|
1641
1987
|
{
|
|
1642
1988
|
"type": "button",
|
|
1643
|
-
"label":
|
|
1644
|
-
"confirmText":
|
|
1989
|
+
"label": i18next.t('frontend_form_delete'),
|
|
1990
|
+
"confirmText": i18next.t('frontend_delete_many_confirm_text'),
|
|
1645
1991
|
"onEvent": {
|
|
1646
1992
|
"click": {
|
|
1647
1993
|
"actions": [
|
|
@@ -1708,7 +2054,7 @@ const getSchema$1 = (uiSchema) => {
|
|
|
1708
2054
|
body: [
|
|
1709
2055
|
{
|
|
1710
2056
|
type: "button",
|
|
1711
|
-
label:
|
|
2057
|
+
label: i18next.t('frontend_import_data'),
|
|
1712
2058
|
id: "u:import_data",
|
|
1713
2059
|
onEvent: {
|
|
1714
2060
|
click: {
|
|
@@ -1721,7 +2067,7 @@ const getSchema$1 = (uiSchema) => {
|
|
|
1721
2067
|
"object_name": "${objectName}"
|
|
1722
2068
|
},
|
|
1723
2069
|
type: "dialog",
|
|
1724
|
-
title:
|
|
2070
|
+
title: i18next.t('frontend_import_data'),
|
|
1725
2071
|
body: [
|
|
1726
2072
|
{
|
|
1727
2073
|
type: "form",
|
|
@@ -1756,12 +2102,12 @@ const getSchema$1 = (uiSchema) => {
|
|
|
1756
2102
|
body: [
|
|
1757
2103
|
{
|
|
1758
2104
|
type: "fieldSet",
|
|
1759
|
-
title:
|
|
2105
|
+
title: i18next.t('frontend_field_group_generalization'),
|
|
1760
2106
|
collapsable: true,
|
|
1761
2107
|
body: [
|
|
1762
2108
|
{
|
|
1763
2109
|
name: "object_name",
|
|
1764
|
-
label:
|
|
2110
|
+
label: i18next.t('frontend_import_data_object_name'),
|
|
1765
2111
|
required: false,
|
|
1766
2112
|
type: "select",
|
|
1767
2113
|
joinValues: false,
|
|
@@ -1797,7 +2143,7 @@ const getSchema$1 = (uiSchema) => {
|
|
|
1797
2143
|
},
|
|
1798
2144
|
{
|
|
1799
2145
|
name: "queue_import",
|
|
1800
|
-
label:
|
|
2146
|
+
label: i18next.t('frontend_import_data_queue_import'),
|
|
1801
2147
|
required: true,
|
|
1802
2148
|
type: "picker",
|
|
1803
2149
|
labelField: "description",
|
|
@@ -1843,7 +2189,7 @@ const getSchema$1 = (uiSchema) => {
|
|
|
1843
2189
|
},
|
|
1844
2190
|
{
|
|
1845
2191
|
name: "description",
|
|
1846
|
-
label:
|
|
2192
|
+
label: i18next.t('frontend_import_data_queue_import_description'),
|
|
1847
2193
|
type: "tpl",
|
|
1848
2194
|
tpl: '<a href="/app/undefined/undefined/view/${undefined}">${description}</a>',
|
|
1849
2195
|
className: "whitespace-nowrap",
|
|
@@ -1851,7 +2197,7 @@ const getSchema$1 = (uiSchema) => {
|
|
|
1851
2197
|
},
|
|
1852
2198
|
{
|
|
1853
2199
|
name: "object_name",
|
|
1854
|
-
label:
|
|
2200
|
+
label: i18next.t('frontend_import_data_object_name'),
|
|
1855
2201
|
type: "tpl",
|
|
1856
2202
|
tpl: '<a href="/app/undefined/${_display.object_name.objectName}/view/${_display.object_name.value}">${_display.object_name.label}</a>',
|
|
1857
2203
|
className: "whitespace-nowrap",
|
|
@@ -1859,7 +2205,7 @@ const getSchema$1 = (uiSchema) => {
|
|
|
1859
2205
|
},
|
|
1860
2206
|
{
|
|
1861
2207
|
name: "encoding",
|
|
1862
|
-
label:
|
|
2208
|
+
label: i18next.t('frontend_import_data_queue_import_encoding'),
|
|
1863
2209
|
type: "tpl",
|
|
1864
2210
|
tpl: "<div>${_display.encoding}</div>",
|
|
1865
2211
|
className: "whitespace-nowrap",
|
|
@@ -1867,12 +2213,12 @@ const getSchema$1 = (uiSchema) => {
|
|
|
1867
2213
|
},
|
|
1868
2214
|
{
|
|
1869
2215
|
name: "template_url",
|
|
1870
|
-
label:
|
|
2216
|
+
label: i18next.t('frontend_import_data_queue_import_template_url'),
|
|
1871
2217
|
type: "button-group",
|
|
1872
2218
|
buttons: [
|
|
1873
2219
|
{
|
|
1874
2220
|
type: "button",
|
|
1875
|
-
label:
|
|
2221
|
+
label: i18next.t('frontend_download'),
|
|
1876
2222
|
visibleOn: "${template_url}",
|
|
1877
2223
|
level: "link",
|
|
1878
2224
|
actionType: "download",
|
|
@@ -1906,7 +2252,7 @@ const getSchema$1 = (uiSchema) => {
|
|
|
1906
2252
|
},
|
|
1907
2253
|
{
|
|
1908
2254
|
name: "file",
|
|
1909
|
-
label:
|
|
2255
|
+
label: i18next.t('frontend_import_data_file'),
|
|
1910
2256
|
required: true,
|
|
1911
2257
|
type: "input-file",
|
|
1912
2258
|
className: "m-1",
|
|
@@ -1962,8 +2308,8 @@ const getSchema$1 = (uiSchema) => {
|
|
|
1962
2308
|
},
|
|
1963
2309
|
},
|
|
1964
2310
|
messages: {
|
|
1965
|
-
success:
|
|
1966
|
-
failed:
|
|
2311
|
+
success: i18next.t('frontend_import_data_message_success'),
|
|
2312
|
+
failed: i18next.t('frontend_import_data_message_failed'),
|
|
1967
2313
|
},
|
|
1968
2314
|
},
|
|
1969
2315
|
actionType: "ajax",
|
|
@@ -2002,6 +2348,7 @@ const getSchema$1 = (uiSchema) => {
|
|
|
2002
2348
|
* @LastEditTime: 2022-11-07 17:12:20
|
|
2003
2349
|
* @Description:
|
|
2004
2350
|
*/
|
|
2351
|
+
|
|
2005
2352
|
const getSchema = (uiSchema)=>{
|
|
2006
2353
|
return {
|
|
2007
2354
|
"type": "service",
|
|
@@ -2009,7 +2356,7 @@ const getSchema = (uiSchema)=>{
|
|
|
2009
2356
|
"body": [
|
|
2010
2357
|
{
|
|
2011
2358
|
"type": "button",
|
|
2012
|
-
"label":
|
|
2359
|
+
"label": i18next.t('frontend_form_view'),
|
|
2013
2360
|
"className": "border-none",
|
|
2014
2361
|
"onEvent": {
|
|
2015
2362
|
"click": {
|
|
@@ -2080,7 +2427,7 @@ const StandardButtons = {
|
|
|
2080
2427
|
"items": [
|
|
2081
2428
|
{
|
|
2082
2429
|
"position": "top-right",
|
|
2083
|
-
"body":
|
|
2430
|
+
"body": i18next.t('frontend_delete_many_selected_required')
|
|
2084
2431
|
}
|
|
2085
2432
|
]
|
|
2086
2433
|
}
|
|
@@ -2856,7 +3203,7 @@ async function getObjectFieldsFilterBarSchema(objectSchema, ctx) {
|
|
|
2856
3203
|
if(_.isEmpty(defaultSearchableFields) && data.uiSchema){
|
|
2857
3204
|
defaultSearchableFields = _.map(
|
|
2858
3205
|
_.sortBy(_.filter(_.values(data.uiSchema.fields), (field) => {
|
|
2859
|
-
return field.
|
|
3206
|
+
return field.filterable;
|
|
2860
3207
|
}), "sort_no"),
|
|
2861
3208
|
"name"
|
|
2862
3209
|
);
|
|
@@ -3023,7 +3370,7 @@ async function getObjectFieldsFilterBarSchema(objectSchema, ctx) {
|
|
|
3023
3370
|
{
|
|
3024
3371
|
"type": "button",
|
|
3025
3372
|
"id": btnSearchId,
|
|
3026
|
-
"label":
|
|
3373
|
+
"label": i18next.t('frontend_fields_filter_button_search'),
|
|
3027
3374
|
"icon": "fa fa-search",
|
|
3028
3375
|
// "visibleOn": "this.filterFormSearchableFields && this.filterFormSearchableFields.length",
|
|
3029
3376
|
"onEvent": {
|
|
@@ -3039,7 +3386,7 @@ async function getObjectFieldsFilterBarSchema(objectSchema, ctx) {
|
|
|
3039
3386
|
},
|
|
3040
3387
|
{
|
|
3041
3388
|
"type": "button",
|
|
3042
|
-
"label":
|
|
3389
|
+
"label": i18next.t('frontend_form_cancel'),
|
|
3043
3390
|
"name": "btn_filter_form_cancel",
|
|
3044
3391
|
// "visibleOn": "this.filterFormSearchableFields && this.filterFormSearchableFields.length",
|
|
3045
3392
|
"onEvent": {
|
|
@@ -3055,7 +3402,7 @@ async function getObjectFieldsFilterBarSchema(objectSchema, ctx) {
|
|
|
3055
3402
|
},
|
|
3056
3403
|
{
|
|
3057
3404
|
"type": "button",
|
|
3058
|
-
"label":
|
|
3405
|
+
"label": i18next.t('frontend_fields_filter_button_settings'),
|
|
3059
3406
|
"onEvent": {
|
|
3060
3407
|
"click": {
|
|
3061
3408
|
"actions": [
|
|
@@ -3064,7 +3411,7 @@ async function getObjectFieldsFilterBarSchema(objectSchema, ctx) {
|
|
|
3064
3411
|
"dialog": {
|
|
3065
3412
|
"type": "dialog",
|
|
3066
3413
|
"size": "md",
|
|
3067
|
-
"title":
|
|
3414
|
+
"title": i18next.t('frontend_fields_filter_button_settings'),
|
|
3068
3415
|
"body": [
|
|
3069
3416
|
{
|
|
3070
3417
|
"type": "form",
|
|
@@ -3132,7 +3479,7 @@ async function getObjectFieldsFilterBarSchema(objectSchema, ctx) {
|
|
|
3132
3479
|
"actions": [
|
|
3133
3480
|
{
|
|
3134
3481
|
"type": "button",
|
|
3135
|
-
"label":
|
|
3482
|
+
"label": i18next.t('frontend_form_cancel'),
|
|
3136
3483
|
"onEvent": {
|
|
3137
3484
|
"click": {
|
|
3138
3485
|
"actions": [
|
|
@@ -3148,7 +3495,7 @@ async function getObjectFieldsFilterBarSchema(objectSchema, ctx) {
|
|
|
3148
3495
|
},
|
|
3149
3496
|
{
|
|
3150
3497
|
"type": "button",
|
|
3151
|
-
"label":
|
|
3498
|
+
"label": i18next.t('frontend_form_confirm'),
|
|
3152
3499
|
"onEvent": {
|
|
3153
3500
|
"click": {
|
|
3154
3501
|
"actions": [
|
|
@@ -3665,7 +4012,7 @@ const getExportExcelToolbarButtonSchema = ()=>{
|
|
|
3665
4012
|
"className": "bg-white p-2 rounded border-gray-300 text-gray-500",
|
|
3666
4013
|
"tooltipPlacement": "bottom",
|
|
3667
4014
|
"visibleOn": "${!isLookup && global.user.is_space_admin}",
|
|
3668
|
-
"tooltip":
|
|
4015
|
+
"tooltip": i18next.t('frontend_export_excel'),
|
|
3669
4016
|
"onEvent": {
|
|
3670
4017
|
"click": {
|
|
3671
4018
|
"weight": 0,
|
|
@@ -3751,7 +4098,7 @@ function requestAdaptor$1(){
|
|
|
3751
4098
|
const getNewListviewButtonSchema = ()=>{
|
|
3752
4099
|
return {
|
|
3753
4100
|
"type": "button",
|
|
3754
|
-
"label":
|
|
4101
|
+
"label": i18next.t('frontend_listview_control_new_label'),
|
|
3755
4102
|
"onEvent": {
|
|
3756
4103
|
"click": {
|
|
3757
4104
|
"weight": 0,
|
|
@@ -3759,7 +4106,7 @@ const getNewListviewButtonSchema = ()=>{
|
|
|
3759
4106
|
{
|
|
3760
4107
|
"dialog": {
|
|
3761
4108
|
"type": "dialog",
|
|
3762
|
-
"title":
|
|
4109
|
+
"title": i18next.t('frontend_listview_control_new_title'),
|
|
3763
4110
|
"data": {
|
|
3764
4111
|
//"&":"$$",2.7、2.9、3.0在此处失效
|
|
3765
4112
|
"all": "${uiSchema.list_views.all}",
|
|
@@ -3801,8 +4148,8 @@ const getNewListviewButtonSchema = ()=>{
|
|
|
3801
4148
|
}
|
|
3802
4149
|
},
|
|
3803
4150
|
"messages": {
|
|
3804
|
-
"success":
|
|
3805
|
-
"failed":
|
|
4151
|
+
"success": i18next.t('frontend_listview_control_new_message_success'),
|
|
4152
|
+
"failed": i18next.t('frontend_listview_control_new_message_failed')
|
|
3806
4153
|
},
|
|
3807
4154
|
}
|
|
3808
4155
|
],
|
|
@@ -3901,7 +4248,7 @@ function fieldsExtend$4(){
|
|
|
3901
4248
|
const getCopyListviewButtonSchema = ()=>{
|
|
3902
4249
|
return {
|
|
3903
4250
|
"type": "button",
|
|
3904
|
-
"label":
|
|
4251
|
+
"label": i18next.t('frontend_listview_control_clone_label'),
|
|
3905
4252
|
"onEvent": {
|
|
3906
4253
|
"click": {
|
|
3907
4254
|
"weight": 0,
|
|
@@ -3909,7 +4256,7 @@ const getCopyListviewButtonSchema = ()=>{
|
|
|
3909
4256
|
{
|
|
3910
4257
|
"dialog": {
|
|
3911
4258
|
"type": "dialog",
|
|
3912
|
-
"title":
|
|
4259
|
+
"title": i18next.t('frontend_listview_control_clone_title'),
|
|
3913
4260
|
"data": {
|
|
3914
4261
|
//"&":"$$",2.7、2.9、3.0在此处失效
|
|
3915
4262
|
"listName": "${listName}",
|
|
@@ -3929,7 +4276,7 @@ const getCopyListviewButtonSchema = ()=>{
|
|
|
3929
4276
|
"defaultData": {
|
|
3930
4277
|
"&": "${list_view}",
|
|
3931
4278
|
"name":"",
|
|
3932
|
-
"label": "${list_view.label}
|
|
4279
|
+
"label": i18next.t('frontend_listview_control_clone_defaultData_label_start') + " ${list_view.label} " + i18next.t('frontend_listview_control_clone_defaultData_label_end'),
|
|
3933
4280
|
"shared":false
|
|
3934
4281
|
},
|
|
3935
4282
|
"fieldsExtend": fieldsExtend$3(),
|
|
@@ -4046,7 +4393,7 @@ function fieldsExtend$3(){
|
|
|
4046
4393
|
const getRenameListviewButtonSchema = ()=>{
|
|
4047
4394
|
return {
|
|
4048
4395
|
"type": "button",
|
|
4049
|
-
"label":
|
|
4396
|
+
"label": i18next.t('frontend_listview_control_rename_label'),
|
|
4050
4397
|
"disabledOn": "!((global.user.is_space_admin || global.userId == uiSchema.list_views[listName].owner) && !!uiSchema.list_views[listName].owner)",
|
|
4051
4398
|
"onEvent": {
|
|
4052
4399
|
"click": {
|
|
@@ -4055,7 +4402,7 @@ const getRenameListviewButtonSchema = ()=>{
|
|
|
4055
4402
|
{
|
|
4056
4403
|
"dialog": {
|
|
4057
4404
|
"type": "dialog",
|
|
4058
|
-
"title":
|
|
4405
|
+
"title": i18next.t('frontend_listview_control_rename_title'),
|
|
4059
4406
|
"data": {
|
|
4060
4407
|
"targetObjectName": "${objectName}",
|
|
4061
4408
|
"recordId": "${uiSchema.list_views[listName]._id}",
|
|
@@ -4105,7 +4452,7 @@ const getRenameListviewButtonSchema = ()=>{
|
|
|
4105
4452
|
const getSetListviewShareButtonSchema = ()=>{
|
|
4106
4453
|
return {
|
|
4107
4454
|
"type": "button",
|
|
4108
|
-
"label":
|
|
4455
|
+
"label": i18next.t('frontend_listview_control_share'),
|
|
4109
4456
|
"disabledOn": "!(global.user.is_space_admin && !!uiSchema.list_views[listName].owner)",
|
|
4110
4457
|
"onEvent": {
|
|
4111
4458
|
"click": {
|
|
@@ -4114,7 +4461,7 @@ const getSetListviewShareButtonSchema = ()=>{
|
|
|
4114
4461
|
{
|
|
4115
4462
|
"dialog": {
|
|
4116
4463
|
"type": "dialog",
|
|
4117
|
-
"title":
|
|
4464
|
+
"title": i18next.t('frontend_listview_control_share'),
|
|
4118
4465
|
"data": {
|
|
4119
4466
|
"recordId": "${uiSchema.list_views[listName]._id}",
|
|
4120
4467
|
"context": "${context}"
|
|
@@ -4149,7 +4496,7 @@ const getSetListviewShareButtonSchema = ()=>{
|
|
|
4149
4496
|
const getSetListviewFiltersButtonSchema = ()=>{
|
|
4150
4497
|
return {
|
|
4151
4498
|
"type": "button",
|
|
4152
|
-
"label":
|
|
4499
|
+
"label": i18next.t('frontend_listview_control_filters'),
|
|
4153
4500
|
"disabledOn": "!((global.user.is_space_admin || global.userId == uiSchema.list_views[listName].owner) && !!uiSchema.list_views[listName].owner)",
|
|
4154
4501
|
"onEvent": {
|
|
4155
4502
|
"click": {
|
|
@@ -4158,7 +4505,7 @@ const getSetListviewFiltersButtonSchema = ()=>{
|
|
|
4158
4505
|
{
|
|
4159
4506
|
"dialog": {
|
|
4160
4507
|
"type": "dialog",
|
|
4161
|
-
"title":
|
|
4508
|
+
"title": i18next.t('frontend_listview_control_filters'),
|
|
4162
4509
|
"data": {
|
|
4163
4510
|
"targetObjectName": "${objectName}",
|
|
4164
4511
|
"recordId": "${uiSchema.list_views[listName]._id}",
|
|
@@ -4279,7 +4626,7 @@ function fieldsExtend$2(){
|
|
|
4279
4626
|
"visible_on": "true",
|
|
4280
4627
|
"amis": {
|
|
4281
4628
|
"type": "condition-builder",
|
|
4282
|
-
"label":
|
|
4629
|
+
"label": i18next.t('frontend_listview_control_filters_fields_extend'),
|
|
4283
4630
|
"source": {
|
|
4284
4631
|
"method": "get",
|
|
4285
4632
|
"url": "${context.rootUrl}/service/api/amis-metadata-listviews/getFilterFields?objectName=${targetObjectName}",
|
|
@@ -4296,7 +4643,7 @@ function fieldsExtend$2(){
|
|
|
4296
4643
|
const getSetListviewColumnsButtonSchema = ()=>{
|
|
4297
4644
|
return {
|
|
4298
4645
|
"type": "button",
|
|
4299
|
-
"label":
|
|
4646
|
+
"label": i18next.t('frontend_listview_control_columns'),
|
|
4300
4647
|
"disabledOn": "!((global.user.is_space_admin || global.userId == uiSchema.list_views[listName].owner) && !!uiSchema.list_views[listName].owner)",
|
|
4301
4648
|
"onEvent": {
|
|
4302
4649
|
"click": {
|
|
@@ -4306,7 +4653,7 @@ const getSetListviewColumnsButtonSchema = ()=>{
|
|
|
4306
4653
|
"args": {},
|
|
4307
4654
|
"dialog": {
|
|
4308
4655
|
"type": "dialog",
|
|
4309
|
-
"title":
|
|
4656
|
+
"title": i18next.t('frontend_listview_control_columns'),
|
|
4310
4657
|
"data": {
|
|
4311
4658
|
//"&":"$$",2.7、2.9、3.0在此处失效
|
|
4312
4659
|
"targetObjectName": "${objectName}",
|
|
@@ -4376,7 +4723,7 @@ function fieldsExtend$1(){
|
|
|
4376
4723
|
}
|
|
4377
4724
|
},
|
|
4378
4725
|
"mobile_columns": {
|
|
4379
|
-
"group":
|
|
4726
|
+
"group": i18next.t('frontend_listview_control_columns_mobile_group'),
|
|
4380
4727
|
"amis": {
|
|
4381
4728
|
"type": "transfer",
|
|
4382
4729
|
"sortable": true,
|
|
@@ -4451,7 +4798,7 @@ function apiRequestAdaptor$1(){
|
|
|
4451
4798
|
const getSetListviewSortButtonSchema = ()=>{
|
|
4452
4799
|
return {
|
|
4453
4800
|
"type": "button",
|
|
4454
|
-
"label":
|
|
4801
|
+
"label": i18next.t('frontend_listview_control_sort'),
|
|
4455
4802
|
"disabledOn": "!((global.user.is_space_admin || global.userId == uiSchema.list_views[listName].owner) && !!uiSchema.list_views[listName].owner)",
|
|
4456
4803
|
"onEvent": {
|
|
4457
4804
|
"click": {
|
|
@@ -4460,7 +4807,7 @@ const getSetListviewSortButtonSchema = ()=>{
|
|
|
4460
4807
|
{
|
|
4461
4808
|
"dialog": {
|
|
4462
4809
|
"type": "dialog",
|
|
4463
|
-
"title":
|
|
4810
|
+
"title": i18next.t('frontend_listview_control_sort'),
|
|
4464
4811
|
"data": {
|
|
4465
4812
|
//"&":"$$",2.7、2.9、3.0在此处失效
|
|
4466
4813
|
"targetObjectName": "${objectName}",
|
|
@@ -4576,9 +4923,9 @@ function apiRequestAdaptor(){
|
|
|
4576
4923
|
const getDeleteListviewButtonSchema = ()=>{
|
|
4577
4924
|
return {
|
|
4578
4925
|
"type": "button",
|
|
4579
|
-
"label":
|
|
4926
|
+
"label": i18next.t('frontend_listview_control_delete_label'),
|
|
4580
4927
|
"disabledOn": "!((global.user.is_space_admin || global.userId == uiSchema.list_views[listName].owner) && !!uiSchema.list_views[listName].owner)",
|
|
4581
|
-
"confirmText":
|
|
4928
|
+
"confirmText": i18next.t('frontend_listview_control_delete_confirm_text'),
|
|
4582
4929
|
"onEvent": {
|
|
4583
4930
|
"click": {
|
|
4584
4931
|
"actions": [
|
|
@@ -4597,7 +4944,7 @@ const getDeleteListviewButtonSchema = ()=>{
|
|
|
4597
4944
|
"recordId": "${uiSchema.list_views[listName]._id}"
|
|
4598
4945
|
},
|
|
4599
4946
|
"messages": {
|
|
4600
|
-
"success":
|
|
4947
|
+
"success": i18next.t('frontend_listview_control_delete_message_success')
|
|
4601
4948
|
},
|
|
4602
4949
|
"requestAdaptor": requestAdaptor(),
|
|
4603
4950
|
"adaptor": adaptor(),
|
|
@@ -4644,13 +4991,13 @@ const getSettingListviewToolbarButtonSchema = ()=>{
|
|
|
4644
4991
|
"type": "dropdown-button",
|
|
4645
4992
|
"trigger": "click",
|
|
4646
4993
|
"icon": "fa fa-cog",
|
|
4647
|
-
"tooltip":
|
|
4994
|
+
"tooltip": i18next.t('frontend_button_listview_control_tooltip'),
|
|
4648
4995
|
"btnClassName": "antd-Button--iconOnly bg-white p-2 rounded border-gray-300 text-gray-500",
|
|
4649
4996
|
"align": "right",
|
|
4650
4997
|
"visibleOn": "${!isLookup}",
|
|
4651
4998
|
"buttons": [
|
|
4652
4999
|
{
|
|
4653
|
-
"label":
|
|
5000
|
+
"label": i18next.t('frontend_button_listview_control_label'),
|
|
4654
5001
|
"children": [
|
|
4655
5002
|
getNewListviewButtonSchema(),
|
|
4656
5003
|
getCopyListviewButtonSchema(),
|
|
@@ -4671,30 +5018,30 @@ const getDisplayAsButton = function(objectName, showDisplayAs){
|
|
|
4671
5018
|
let buttons = [
|
|
4672
5019
|
{
|
|
4673
5020
|
"type": "button",
|
|
4674
|
-
"label":
|
|
5021
|
+
"label": i18next.t('frontend_display_type_is_table'),
|
|
4675
5022
|
"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');",
|
|
4676
5023
|
"rightIcon": displayAs != 'split' ? "fa fa-check" : null,
|
|
4677
5024
|
"rightIconClassName": "m-l-sm"
|
|
4678
5025
|
},
|
|
4679
5026
|
{
|
|
4680
5027
|
"type": "button",
|
|
4681
|
-
"label":
|
|
5028
|
+
"label": i18next.t('frontend_display_type_is_split'),
|
|
4682
5029
|
"onClick": "const url = document.location.pathname + '?display=split'; props.env.jumpTo(url);",
|
|
4683
5030
|
"rightIcon": displayAs === 'split' ? "fa fa-check" : null,
|
|
4684
5031
|
"rightIconClassName": "m-l-sm"
|
|
4685
5032
|
}
|
|
4686
5033
|
];
|
|
4687
|
-
const displayAsLabel = displayAs === 'split'?
|
|
5034
|
+
const displayAsLabel = displayAs === 'split'? i18next.t('frontend_display_type_is_split') : i18next.t('frontend_display_type_is_table');
|
|
4688
5035
|
return {
|
|
4689
5036
|
"type": "dropdown-button",
|
|
4690
5037
|
"icon": "fa fa-table-columns",
|
|
4691
|
-
"tooltip":
|
|
5038
|
+
"tooltip": `${i18next.t('frontend_display_as')} ${displayAsLabel}`,
|
|
4692
5039
|
"btnClassName": "antd-Button--iconOnly bg-white p-2 rounded border-gray-300 text-gray-500",
|
|
4693
5040
|
"align": "right",
|
|
4694
5041
|
"visibleOn": "${window:innerWidth > 768 && !!!isLookup}",
|
|
4695
5042
|
"buttons": [
|
|
4696
5043
|
{
|
|
4697
|
-
"label":
|
|
5044
|
+
"label": i18next.t('frontend_display_as'),
|
|
4698
5045
|
"children": buttons
|
|
4699
5046
|
}
|
|
4700
5047
|
]
|
|
@@ -4762,13 +5109,13 @@ function getObjectHeaderToolbar(mainObject, formFactor, {showDisplayAs = false,
|
|
|
4762
5109
|
...(headerToolbarItems || []),
|
|
4763
5110
|
hiddenCount ? {} :{
|
|
4764
5111
|
"type": "tpl",
|
|
4765
|
-
"tpl": "${count}
|
|
5112
|
+
"tpl": "${count} " + i18next.t('frontend_record_sum')
|
|
4766
5113
|
},
|
|
4767
5114
|
{
|
|
4768
5115
|
// "type": "reload",//不可以直接使用reload,因为它不会设置页码到第一页
|
|
4769
5116
|
"type": "button",
|
|
4770
5117
|
"align": "right",
|
|
4771
|
-
"tooltip":
|
|
5118
|
+
"tooltip": i18next.t('frontend_button_reload_tooltip'),
|
|
4772
5119
|
"className": "bg-white p-2 rounded border-gray-300 text-gray-500",
|
|
4773
5120
|
"label": "",
|
|
4774
5121
|
"icon": "fa fa-sync",
|
|
@@ -4788,7 +5135,7 @@ function getObjectHeaderToolbar(mainObject, formFactor, {showDisplayAs = false,
|
|
|
4788
5135
|
"label": "",
|
|
4789
5136
|
"icon": "fa fa-search",
|
|
4790
5137
|
"type": "button",
|
|
4791
|
-
"tooltip":
|
|
5138
|
+
"tooltip": i18next.t('frontend_button_search_tooltip'),
|
|
4792
5139
|
"badge": {
|
|
4793
5140
|
"offset": [
|
|
4794
5141
|
-5,
|
|
@@ -4828,12 +5175,12 @@ function getObjectHeaderToolbar(mainObject, formFactor, {showDisplayAs = false,
|
|
|
4828
5175
|
// },
|
|
4829
5176
|
hiddenCount ? {} : {
|
|
4830
5177
|
"type": "tpl",
|
|
4831
|
-
"tpl": "${count}
|
|
5178
|
+
"tpl": "${count} " + i18next.t('frontend_record_sum')
|
|
4832
5179
|
},
|
|
4833
5180
|
{
|
|
4834
5181
|
"type": "reload",
|
|
4835
5182
|
"align": "right",
|
|
4836
|
-
"tooltip":
|
|
5183
|
+
"tooltip": i18next.t('frontend_button_reload_tooltip'),
|
|
4837
5184
|
"tooltipPlacement": "bottom",
|
|
4838
5185
|
"className": "bg-white p-2 rounded border-gray-300 text-gray-500"
|
|
4839
5186
|
},
|
|
@@ -4841,7 +5188,7 @@ function getObjectHeaderToolbar(mainObject, formFactor, {showDisplayAs = false,
|
|
|
4841
5188
|
filterVisible ? {
|
|
4842
5189
|
"label": "",
|
|
4843
5190
|
"icon": "fa fa-search",
|
|
4844
|
-
"tooltip":
|
|
5191
|
+
"tooltip": i18next.t('frontend_button_search_tooltip'),
|
|
4845
5192
|
"tooltipPlacement": "bottom",
|
|
4846
5193
|
"type": "button",
|
|
4847
5194
|
"align": "right",
|
|
@@ -7344,7 +7691,7 @@ async function getTableOperation(ctx){
|
|
|
7344
7691
|
}
|
|
7345
7692
|
return {
|
|
7346
7693
|
type: 'operation',
|
|
7347
|
-
label: '
|
|
7694
|
+
label: i18next.t('frontend_ercord_operation'),
|
|
7348
7695
|
fixed: 'right',
|
|
7349
7696
|
labelClassName: 'text-center',
|
|
7350
7697
|
className: 'text-center steedos-listview-operation w-20',
|
|
@@ -8393,7 +8740,7 @@ async function getObjectCalendar(objectSchema, calendarOptions, options) {
|
|
|
8393
8740
|
// ObjectForm会认作用域下的变量值
|
|
8394
8741
|
// TODO: 待组件支持initValues属性后应该改掉,不应该通过data直接传值
|
|
8395
8742
|
// TODO: 全天事件属性传入doc了但是没有生效,需要手动在ObjectForm中勾选全天事件
|
|
8396
|
-
const title = "
|
|
8743
|
+
const title = "${i18next.t('frontend_form_new')} ${objectSchema.label}";
|
|
8397
8744
|
doAction(
|
|
8398
8745
|
{
|
|
8399
8746
|
"actionType": "dialog",
|
|
@@ -8427,33 +8774,6 @@ async function getObjectCalendar(objectSchema, calendarOptions, options) {
|
|
|
8427
8774
|
});
|
|
8428
8775
|
`;
|
|
8429
8776
|
|
|
8430
|
-
const onEventClickScript = `
|
|
8431
|
-
const data = event.data;
|
|
8432
|
-
const eventData = data.event;
|
|
8433
|
-
const appId = data.appId;
|
|
8434
|
-
const objectName = data.objectName;
|
|
8435
|
-
const eventId = data.event && data.event.id;
|
|
8436
|
-
doAction({
|
|
8437
|
-
"actionType": "dialog",
|
|
8438
|
-
"dialog": {
|
|
8439
|
-
"type": "dialog",
|
|
8440
|
-
"title": "",
|
|
8441
|
-
"body": [
|
|
8442
|
-
{
|
|
8443
|
-
"type": "steedos-record-detail",
|
|
8444
|
-
"objectApiName": "\${objectName}",
|
|
8445
|
-
"recordId": data.event && data.event.id
|
|
8446
|
-
}
|
|
8447
|
-
],
|
|
8448
|
-
"closeOnEsc": false,
|
|
8449
|
-
"closeOnOutside": false,
|
|
8450
|
-
"showCloseButton": true,
|
|
8451
|
-
"size": "lg",
|
|
8452
|
-
"actions": []
|
|
8453
|
-
}
|
|
8454
|
-
});
|
|
8455
|
-
`;
|
|
8456
|
-
|
|
8457
8777
|
const recordId = "${event.id}";
|
|
8458
8778
|
const recordPermissionsApi = getCalendarRecordPermissionsApi(objectSchema, recordId);
|
|
8459
8779
|
const recordSaveApi = getCalendarRecordSaveApi(objectSchema, calendarOptions);
|
|
@@ -8499,11 +8819,10 @@ async function getObjectCalendar(objectSchema, calendarOptions, options) {
|
|
|
8499
8819
|
"weight": 0,
|
|
8500
8820
|
"actions": [
|
|
8501
8821
|
{
|
|
8502
|
-
"
|
|
8822
|
+
"actionType": "link",
|
|
8503
8823
|
"args": {
|
|
8504
|
-
|
|
8505
|
-
|
|
8506
|
-
"script": onEventClickScript
|
|
8824
|
+
"link": "/app/${appId}/${objectName}/view/${event.id}"
|
|
8825
|
+
}
|
|
8507
8826
|
}
|
|
8508
8827
|
]
|
|
8509
8828
|
},
|
|
@@ -8533,7 +8852,7 @@ async function getObjectCalendar(objectSchema, calendarOptions, options) {
|
|
|
8533
8852
|
"expression": "!event.data.editable",
|
|
8534
8853
|
"args": {
|
|
8535
8854
|
"msgType": "error",
|
|
8536
|
-
"msg":
|
|
8855
|
+
"msg": i18next.t('frontend_message_no_permission_to_edit'),
|
|
8537
8856
|
"position": "top-center"
|
|
8538
8857
|
}
|
|
8539
8858
|
},
|
|
@@ -8543,8 +8862,8 @@ async function getObjectCalendar(objectSchema, calendarOptions, options) {
|
|
|
8543
8862
|
"args": {
|
|
8544
8863
|
"api": recordSaveApi,
|
|
8545
8864
|
"messages": {
|
|
8546
|
-
"success": objectSchema.label +
|
|
8547
|
-
"failed": objectSchema.label +
|
|
8865
|
+
"success": objectSchema.label + i18next.t('frontend_message_modification_successful'),
|
|
8866
|
+
"failed": objectSchema.label + i18next.t('frontend_message_modification_successful')
|
|
8548
8867
|
}
|
|
8549
8868
|
}
|
|
8550
8869
|
}
|
|
@@ -8616,7 +8935,12 @@ async function getObjectCalendar(objectSchema, calendarOptions, options) {
|
|
|
8616
8935
|
"initialView": initialView,
|
|
8617
8936
|
"businessHours": businessHours,
|
|
8618
8937
|
...config,
|
|
8619
|
-
"onEvent": onEvent
|
|
8938
|
+
"onEvent": onEvent,
|
|
8939
|
+
"views":{
|
|
8940
|
+
listWeek: {
|
|
8941
|
+
buttonText: i18next.t('frontend_calendar_listWeek')
|
|
8942
|
+
}
|
|
8943
|
+
}
|
|
8620
8944
|
};
|
|
8621
8945
|
return amisSchema;
|
|
8622
8946
|
}
|
|
@@ -8635,7 +8959,7 @@ const getFieldSchemaArray = (formFields) => {
|
|
|
8635
8959
|
|
|
8636
8960
|
_$1.forEach(formFields, (field) => {
|
|
8637
8961
|
if (!field.group || field.group == 'null' || field.group == '-')
|
|
8638
|
-
field.group = '
|
|
8962
|
+
field.group = i18next.t('frontend_field_group_generalization');
|
|
8639
8963
|
const fieldName = field.name;
|
|
8640
8964
|
let isObjectField = /\w+\.\w+/.test(fieldName);
|
|
8641
8965
|
if (field.type == 'grid' || field.type == 'object') {
|
|
@@ -8800,7 +9124,7 @@ function getBulkActions(objectSchema){
|
|
|
8800
9124
|
"level": "danger",
|
|
8801
9125
|
"label": "批量删除",
|
|
8802
9126
|
"actionType": "ajax",
|
|
8803
|
-
"confirmText":
|
|
9127
|
+
"confirmText": i18next.t('frontend_delete_many_confirm_text'),
|
|
8804
9128
|
"className": "hidden",
|
|
8805
9129
|
"id": "batchDelete",
|
|
8806
9130
|
"api": getBatchDelete(objectSchema.name),
|
|
@@ -10079,7 +10403,7 @@ async function getRecordDetailSchema(objectName, appId, props = {}){
|
|
|
10079
10403
|
const uiSchema = await getUISchema(objectName);
|
|
10080
10404
|
const relatedLists = await getObjectRelatedList(objectName);
|
|
10081
10405
|
const detailed = {
|
|
10082
|
-
"title":
|
|
10406
|
+
"title": i18next.t('frontend_record_detail_tab_detailed'),
|
|
10083
10407
|
"className": "px-0 py-4",
|
|
10084
10408
|
"body": [
|
|
10085
10409
|
{
|
|
@@ -10094,7 +10418,7 @@ async function getRecordDetailSchema(objectName, appId, props = {}){
|
|
|
10094
10418
|
"id": "u:5d4e7e3f6ecc"
|
|
10095
10419
|
};
|
|
10096
10420
|
const related = {
|
|
10097
|
-
"title":
|
|
10421
|
+
"title": i18next.t('frontend_record_detail_tab_related'),
|
|
10098
10422
|
"className": "px-0 pt-4",
|
|
10099
10423
|
"body": [
|
|
10100
10424
|
{
|