@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.umd.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('lodash'), require('@steedos-widgets/amis-lib'), require('lodash/isPlainObject')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', 'lodash', '@steedos-widgets/amis-lib', 'lodash/isPlainObject'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["amis-lib"] = {}, global._$1, global.amisLib, global.isPlainObject));
|
|
5
|
-
})(this, (function (exports, _$1, amisLib, isPlainObject) {
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('lodash'), require('i18next'), require('react-i18next'), require('@steedos-widgets/amis-lib'), require('lodash/isPlainObject')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', 'lodash', 'i18next', 'react-i18next', '@steedos-widgets/amis-lib', 'lodash/isPlainObject'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["amis-lib"] = {}, global._$1, global.i18next, global.reactI18next, global.amisLib, global.isPlainObject));
|
|
5
|
+
})(this, (function (exports, _$1, i18next, reactI18next, amisLib, isPlainObject) {
|
|
6
6
|
const global = window;
|
|
7
7
|
|
|
8
8
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
|
|
28
28
|
var ___namespace = /*#__PURE__*/_interopNamespace(_$1);
|
|
29
29
|
var ___default = /*#__PURE__*/_interopDefaultLegacy(_$1);
|
|
30
|
+
var i18next__default = /*#__PURE__*/_interopDefaultLegacy(i18next);
|
|
30
31
|
var isPlainObject__default = /*#__PURE__*/_interopDefaultLegacy(isPlainObject);
|
|
31
32
|
|
|
32
33
|
/*
|
|
@@ -209,7 +210,7 @@
|
|
|
209
210
|
* @Author: baozhoutao@steedos.com
|
|
210
211
|
* @Date: 2022-07-04 11:24:28
|
|
211
212
|
* @LastEditors: baozhoutao@steedos.com
|
|
212
|
-
* @LastEditTime: 2023-
|
|
213
|
+
* @LastEditTime: 2023-06-12 11:51:15
|
|
213
214
|
* @Description:
|
|
214
215
|
*/
|
|
215
216
|
|
|
@@ -239,7 +240,6 @@
|
|
|
239
240
|
|
|
240
241
|
options.headers = Object.assign({}, headers, options.headers);
|
|
241
242
|
options.credentials = 'include';
|
|
242
|
-
|
|
243
243
|
const res = await fetch(`${getRootUrl()}${api}`, options);
|
|
244
244
|
|
|
245
245
|
if(res.status === 401){
|
|
@@ -334,7 +334,7 @@
|
|
|
334
334
|
if(rootUrl){
|
|
335
335
|
return rootUrl
|
|
336
336
|
}
|
|
337
|
-
return defaultRootUrl;
|
|
337
|
+
return defaultRootUrl || '';
|
|
338
338
|
}
|
|
339
339
|
|
|
340
340
|
function setRootUrl(rootUrl){
|
|
@@ -1409,6 +1409,350 @@
|
|
|
1409
1409
|
}
|
|
1410
1410
|
};
|
|
1411
1411
|
|
|
1412
|
+
var frontend_field_group_generalization$1 = "Generalization";
|
|
1413
|
+
var frontend_download$1 = "Download";
|
|
1414
|
+
var frontend_form_save$1 = "Save";
|
|
1415
|
+
var frontend_form_save_and_new$1 = "Save and New";
|
|
1416
|
+
var frontend_form_cancel$1 = "Cancel";
|
|
1417
|
+
var frontend_form_new$1 = "New";
|
|
1418
|
+
var frontend_form_edit$1 = "Edit";
|
|
1419
|
+
var frontend_form_select$1 = "Select";
|
|
1420
|
+
var frontend_form_confirm$1 = "Confirm";
|
|
1421
|
+
var frontend_form_delete$1 = "Delete";
|
|
1422
|
+
var frontend_form_view$1 = "view";
|
|
1423
|
+
var frontend_delete_confirm_text$1 = "Are you sure you want to delete this item?";
|
|
1424
|
+
var frontend_delete_many_selected_required$1 = "Please select the item to be deleted";
|
|
1425
|
+
var frontend_delete_many_confirm_text$1 = "Are you sure you want to delete?";
|
|
1426
|
+
var frontend_display_type_is_table$1 = "Table";
|
|
1427
|
+
var frontend_display_type_is_split$1 = "Split View";
|
|
1428
|
+
var frontend_display_as$1 = "Displayed as";
|
|
1429
|
+
var frontend_record_sum$1 = "items";
|
|
1430
|
+
var frontend_button_reload_tooltip$1 = "Refresh";
|
|
1431
|
+
var frontend_button_search_tooltip$1 = "Search";
|
|
1432
|
+
var frontend_fields_filter_button_search$1 = "Search";
|
|
1433
|
+
var frontend_fields_filter_button_settings$1 = "Set search options";
|
|
1434
|
+
var frontend_button_listview_control_tooltip$1 = "List View Controls";
|
|
1435
|
+
var frontend_button_listview_control_label$1 = "LIST VIEW CONTROLS";
|
|
1436
|
+
var frontend_listview_control_columns$1 = "Show List";
|
|
1437
|
+
var frontend_listview_control_columns_mobile_group$1 = "Mobile side";
|
|
1438
|
+
var frontend_listview_control_clone_label$1 = "Clone";
|
|
1439
|
+
var frontend_listview_control_clone_title$1 = "Clone List View";
|
|
1440
|
+
var frontend_listview_control_clone_defaultData_label_start$1 = "Copy of";
|
|
1441
|
+
var frontend_listview_control_clone_defaultData_label_end$1 = "";
|
|
1442
|
+
var frontend_listview_control_delete_label$1 = "Delete";
|
|
1443
|
+
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?";
|
|
1444
|
+
var frontend_listview_control_delete_message_success$1 = "Deletion successful";
|
|
1445
|
+
var frontend_listview_control_filters$1 = "Filter settings";
|
|
1446
|
+
var frontend_listview_control_filters_fields_extend$1 = "Conditional component 1";
|
|
1447
|
+
var frontend_listview_control_new_label$1 = "New";
|
|
1448
|
+
var frontend_listview_control_new_title$1 = "New List View";
|
|
1449
|
+
var frontend_listview_control_new_message_success$1 = "Success";
|
|
1450
|
+
var frontend_listview_control_new_message_failed$1 = "Failure";
|
|
1451
|
+
var frontend_listview_control_rename_label$1 = "Rename";
|
|
1452
|
+
var frontend_listview_control_rename_title$1 = "Rename List View";
|
|
1453
|
+
var frontend_listview_control_share$1 = "Sharing Settings";
|
|
1454
|
+
var frontend_listview_control_sort$1 = "Default sorting rule";
|
|
1455
|
+
var frontend_export_excel$1 = "Export Excel";
|
|
1456
|
+
var frontend_ercord_operation$1 = "Operation";
|
|
1457
|
+
var frontend_import_data$1 = "Import data";
|
|
1458
|
+
var frontend_import_data_object_name$1 = "Import object";
|
|
1459
|
+
var frontend_import_data_queue_import$1 = "Data import";
|
|
1460
|
+
var frontend_import_data_queue_import_description$1 = "Import description";
|
|
1461
|
+
var frontend_import_data_queue_import_encoding$1 = "Character code";
|
|
1462
|
+
var frontend_import_data_queue_import_template_url$1 = "Import template";
|
|
1463
|
+
var frontend_import_data_file$1 = "Excel file";
|
|
1464
|
+
var frontend_import_data_message_success$1 = "Importing has started...";
|
|
1465
|
+
var frontend_import_data_message_failed$1 = "Import failed";
|
|
1466
|
+
var frontend_record_detail_tab_detailed$1 = "Details";
|
|
1467
|
+
var frontend_record_detail_tab_related$1 = "Related";
|
|
1468
|
+
var frontend_all_apps$1 = "All apps";
|
|
1469
|
+
var frontend_all_projects$1 = "All projects";
|
|
1470
|
+
var frontend_application_launcher$1 = "Application launcher";
|
|
1471
|
+
var frontend_menu$1 = "Menu";
|
|
1472
|
+
var frontend_help$1 = "Help";
|
|
1473
|
+
var frontend_setup$1 = "Setup";
|
|
1474
|
+
var frontend_notifications$1 = "Notifications";
|
|
1475
|
+
var frontend_notifications_allread$1 = "Mark all as read";
|
|
1476
|
+
var frontend_notifications_allread_message$1 = "All marked as read";
|
|
1477
|
+
var frontend_profile$1 = "Profile";
|
|
1478
|
+
var frontend_about$1 = "About";
|
|
1479
|
+
var frontend_log_out$1 = "Log out";
|
|
1480
|
+
var frontend_listview_warning_start$1 = "The current ";
|
|
1481
|
+
var frontend_listview_warning_end$1 = " view does not exist!";
|
|
1482
|
+
var frontend_record_detail_related_list_warning$1 = "Missing parent object, parent record, or related list object property!";
|
|
1483
|
+
var frontend_record_detail_related_lists_warning$1 = "Missing parent object, or parent record property!";
|
|
1484
|
+
var frontend_record_detail_related_lists_info$1 = "No related child tables found";
|
|
1485
|
+
var frontend_calendar_listWeek$1 = "List";
|
|
1486
|
+
var frontend_message_no_permission_to_edit$1 = "You don't have permission to edit this record!";
|
|
1487
|
+
var frontend_message_modification_successful$1 = "Modification successful!";
|
|
1488
|
+
var frontend_message_modification_failed$1 = "Modification failed!";
|
|
1489
|
+
var en_us = {
|
|
1490
|
+
frontend_field_group_generalization: frontend_field_group_generalization$1,
|
|
1491
|
+
frontend_download: frontend_download$1,
|
|
1492
|
+
frontend_form_save: frontend_form_save$1,
|
|
1493
|
+
frontend_form_save_and_new: frontend_form_save_and_new$1,
|
|
1494
|
+
frontend_form_cancel: frontend_form_cancel$1,
|
|
1495
|
+
frontend_form_new: frontend_form_new$1,
|
|
1496
|
+
frontend_form_edit: frontend_form_edit$1,
|
|
1497
|
+
frontend_form_select: frontend_form_select$1,
|
|
1498
|
+
frontend_form_confirm: frontend_form_confirm$1,
|
|
1499
|
+
frontend_form_delete: frontend_form_delete$1,
|
|
1500
|
+
frontend_form_view: frontend_form_view$1,
|
|
1501
|
+
frontend_delete_confirm_text: frontend_delete_confirm_text$1,
|
|
1502
|
+
frontend_delete_many_selected_required: frontend_delete_many_selected_required$1,
|
|
1503
|
+
frontend_delete_many_confirm_text: frontend_delete_many_confirm_text$1,
|
|
1504
|
+
frontend_display_type_is_table: frontend_display_type_is_table$1,
|
|
1505
|
+
frontend_display_type_is_split: frontend_display_type_is_split$1,
|
|
1506
|
+
frontend_display_as: frontend_display_as$1,
|
|
1507
|
+
frontend_record_sum: frontend_record_sum$1,
|
|
1508
|
+
frontend_button_reload_tooltip: frontend_button_reload_tooltip$1,
|
|
1509
|
+
frontend_button_search_tooltip: frontend_button_search_tooltip$1,
|
|
1510
|
+
frontend_fields_filter_button_search: frontend_fields_filter_button_search$1,
|
|
1511
|
+
frontend_fields_filter_button_settings: frontend_fields_filter_button_settings$1,
|
|
1512
|
+
frontend_button_listview_control_tooltip: frontend_button_listview_control_tooltip$1,
|
|
1513
|
+
frontend_button_listview_control_label: frontend_button_listview_control_label$1,
|
|
1514
|
+
frontend_listview_control_columns: frontend_listview_control_columns$1,
|
|
1515
|
+
frontend_listview_control_columns_mobile_group: frontend_listview_control_columns_mobile_group$1,
|
|
1516
|
+
frontend_listview_control_clone_label: frontend_listview_control_clone_label$1,
|
|
1517
|
+
frontend_listview_control_clone_title: frontend_listview_control_clone_title$1,
|
|
1518
|
+
frontend_listview_control_clone_defaultData_label_start: frontend_listview_control_clone_defaultData_label_start$1,
|
|
1519
|
+
frontend_listview_control_clone_defaultData_label_end: frontend_listview_control_clone_defaultData_label_end$1,
|
|
1520
|
+
frontend_listview_control_delete_label: frontend_listview_control_delete_label$1,
|
|
1521
|
+
frontend_listview_control_delete_confirm_text: frontend_listview_control_delete_confirm_text$1,
|
|
1522
|
+
frontend_listview_control_delete_message_success: frontend_listview_control_delete_message_success$1,
|
|
1523
|
+
frontend_listview_control_filters: frontend_listview_control_filters$1,
|
|
1524
|
+
frontend_listview_control_filters_fields_extend: frontend_listview_control_filters_fields_extend$1,
|
|
1525
|
+
frontend_listview_control_new_label: frontend_listview_control_new_label$1,
|
|
1526
|
+
frontend_listview_control_new_title: frontend_listview_control_new_title$1,
|
|
1527
|
+
frontend_listview_control_new_message_success: frontend_listview_control_new_message_success$1,
|
|
1528
|
+
frontend_listview_control_new_message_failed: frontend_listview_control_new_message_failed$1,
|
|
1529
|
+
frontend_listview_control_rename_label: frontend_listview_control_rename_label$1,
|
|
1530
|
+
frontend_listview_control_rename_title: frontend_listview_control_rename_title$1,
|
|
1531
|
+
frontend_listview_control_share: frontend_listview_control_share$1,
|
|
1532
|
+
frontend_listview_control_sort: frontend_listview_control_sort$1,
|
|
1533
|
+
frontend_export_excel: frontend_export_excel$1,
|
|
1534
|
+
frontend_ercord_operation: frontend_ercord_operation$1,
|
|
1535
|
+
frontend_import_data: frontend_import_data$1,
|
|
1536
|
+
frontend_import_data_object_name: frontend_import_data_object_name$1,
|
|
1537
|
+
frontend_import_data_queue_import: frontend_import_data_queue_import$1,
|
|
1538
|
+
frontend_import_data_queue_import_description: frontend_import_data_queue_import_description$1,
|
|
1539
|
+
frontend_import_data_queue_import_encoding: frontend_import_data_queue_import_encoding$1,
|
|
1540
|
+
frontend_import_data_queue_import_template_url: frontend_import_data_queue_import_template_url$1,
|
|
1541
|
+
frontend_import_data_file: frontend_import_data_file$1,
|
|
1542
|
+
frontend_import_data_message_success: frontend_import_data_message_success$1,
|
|
1543
|
+
frontend_import_data_message_failed: frontend_import_data_message_failed$1,
|
|
1544
|
+
frontend_record_detail_tab_detailed: frontend_record_detail_tab_detailed$1,
|
|
1545
|
+
frontend_record_detail_tab_related: frontend_record_detail_tab_related$1,
|
|
1546
|
+
frontend_all_apps: frontend_all_apps$1,
|
|
1547
|
+
frontend_all_projects: frontend_all_projects$1,
|
|
1548
|
+
frontend_application_launcher: frontend_application_launcher$1,
|
|
1549
|
+
frontend_menu: frontend_menu$1,
|
|
1550
|
+
frontend_help: frontend_help$1,
|
|
1551
|
+
frontend_setup: frontend_setup$1,
|
|
1552
|
+
frontend_notifications: frontend_notifications$1,
|
|
1553
|
+
frontend_notifications_allread: frontend_notifications_allread$1,
|
|
1554
|
+
frontend_notifications_allread_message: frontend_notifications_allread_message$1,
|
|
1555
|
+
frontend_profile: frontend_profile$1,
|
|
1556
|
+
frontend_about: frontend_about$1,
|
|
1557
|
+
frontend_log_out: frontend_log_out$1,
|
|
1558
|
+
frontend_listview_warning_start: frontend_listview_warning_start$1,
|
|
1559
|
+
frontend_listview_warning_end: frontend_listview_warning_end$1,
|
|
1560
|
+
frontend_record_detail_related_list_warning: frontend_record_detail_related_list_warning$1,
|
|
1561
|
+
frontend_record_detail_related_lists_warning: frontend_record_detail_related_lists_warning$1,
|
|
1562
|
+
frontend_record_detail_related_lists_info: frontend_record_detail_related_lists_info$1,
|
|
1563
|
+
frontend_calendar_listWeek: frontend_calendar_listWeek$1,
|
|
1564
|
+
frontend_message_no_permission_to_edit: frontend_message_no_permission_to_edit$1,
|
|
1565
|
+
frontend_message_modification_successful: frontend_message_modification_successful$1,
|
|
1566
|
+
frontend_message_modification_failed: frontend_message_modification_failed$1
|
|
1567
|
+
};
|
|
1568
|
+
|
|
1569
|
+
var frontend_field_group_generalization = "通用";
|
|
1570
|
+
var frontend_download = "下载";
|
|
1571
|
+
var frontend_form_save = "保存";
|
|
1572
|
+
var frontend_form_save_and_new = "保存并新建";
|
|
1573
|
+
var frontend_form_cancel = "取消";
|
|
1574
|
+
var frontend_form_new = "新建";
|
|
1575
|
+
var frontend_form_edit = "编辑";
|
|
1576
|
+
var frontend_form_select = "选择";
|
|
1577
|
+
var frontend_form_confirm = "确认";
|
|
1578
|
+
var frontend_form_delete = "删除";
|
|
1579
|
+
var frontend_form_view = "查看";
|
|
1580
|
+
var frontend_delete_confirm_text = "确定要删除此项目?";
|
|
1581
|
+
var frontend_delete_many_selected_required = "请选择要删除的项";
|
|
1582
|
+
var frontend_delete_many_confirm_text = "确定要删除吗?";
|
|
1583
|
+
var frontend_display_type_is_table = "表格";
|
|
1584
|
+
var frontend_display_type_is_split = "分栏视图";
|
|
1585
|
+
var frontend_display_as = "显示为";
|
|
1586
|
+
var frontend_record_sum = "个项目";
|
|
1587
|
+
var frontend_button_reload_tooltip = "刷新";
|
|
1588
|
+
var frontend_button_search_tooltip = "搜索";
|
|
1589
|
+
var frontend_fields_filter_button_search = "搜索";
|
|
1590
|
+
var frontend_fields_filter_button_settings = "设置搜索项";
|
|
1591
|
+
var frontend_button_listview_control_tooltip = "列表视图控制";
|
|
1592
|
+
var frontend_button_listview_control_label = "列表视图控制";
|
|
1593
|
+
var frontend_listview_control_columns = "显示的列";
|
|
1594
|
+
var frontend_listview_control_columns_mobile_group = "手机端";
|
|
1595
|
+
var frontend_listview_control_clone = "复制";
|
|
1596
|
+
var frontend_listview_control_clone_label = "复制";
|
|
1597
|
+
var frontend_listview_control_clone_title = "复制 列表视图";
|
|
1598
|
+
var frontend_listview_control_clone_defaultData_label_start = "";
|
|
1599
|
+
var frontend_listview_control_clone_defaultData_label_end = "的副本";
|
|
1600
|
+
var frontend_listview_control_delete_label = "删除";
|
|
1601
|
+
var frontend_listview_control_delete_confirm_text = "如果您删除此列表视图,该视图将为所有具备访问权限的用户永久删除。是否确定要删除?";
|
|
1602
|
+
var frontend_listview_control_delete_message_success = "删除成功";
|
|
1603
|
+
var frontend_listview_control_filters = "过滤设置";
|
|
1604
|
+
var frontend_listview_control_filters_fields_extend = "条件组件1";
|
|
1605
|
+
var frontend_listview_control_new_label = "新建";
|
|
1606
|
+
var frontend_listview_control_new_title = "新建 列表视图";
|
|
1607
|
+
var frontend_listview_control_new_message_success = "成功";
|
|
1608
|
+
var frontend_listview_control_new_message_failed = "失败";
|
|
1609
|
+
var frontend_listview_control_rename_label = "重命名";
|
|
1610
|
+
var frontend_listview_control_rename_title = "重命名 列表视图";
|
|
1611
|
+
var frontend_listview_control_share = "共享设置";
|
|
1612
|
+
var frontend_listview_control_sort = "默认排序规则";
|
|
1613
|
+
var frontend_export_excel = "导出excel";
|
|
1614
|
+
var frontend_ercord_operation = "操作";
|
|
1615
|
+
var frontend_import_data = "导入数据";
|
|
1616
|
+
var frontend_import_data_object_name = "导入对象";
|
|
1617
|
+
var frontend_import_data_queue_import = "数据导入";
|
|
1618
|
+
var frontend_import_data_queue_import_description = "导入描述";
|
|
1619
|
+
var frontend_import_data_queue_import_encoding = "字符代码";
|
|
1620
|
+
var frontend_import_data_queue_import_template_url = "导入模板";
|
|
1621
|
+
var frontend_import_data_file = "Excel文件";
|
|
1622
|
+
var frontend_import_data_message_success = "已开始导入...";
|
|
1623
|
+
var frontend_import_data_message_failed = "导入失败";
|
|
1624
|
+
var frontend_record_detail_tab_detailed = "详细";
|
|
1625
|
+
var frontend_record_detail_tab_related = "相关";
|
|
1626
|
+
var frontend_all_apps = "所有应用";
|
|
1627
|
+
var frontend_all_projects = "所有项目";
|
|
1628
|
+
var frontend_application_launcher = "应用程序启动器";
|
|
1629
|
+
var frontend_menu = "菜单";
|
|
1630
|
+
var frontend_help = "帮助";
|
|
1631
|
+
var frontend_setup = "设置";
|
|
1632
|
+
var frontend_notifications = "通知";
|
|
1633
|
+
var frontend_notifications_allread = "全部标记为已读";
|
|
1634
|
+
var frontend_notifications_allread_message = "已全部标记为已读";
|
|
1635
|
+
var frontend_profile = "个人资料";
|
|
1636
|
+
var frontend_about = "关于";
|
|
1637
|
+
var frontend_log_out = "注销";
|
|
1638
|
+
var frontend_listview_warning_start = "当前";
|
|
1639
|
+
var frontend_listview_warning_end = "视图不存在!";
|
|
1640
|
+
var frontend_record_detail_related_list_warning = "缺少父级对象、父级记录或相关列表对象属性!";
|
|
1641
|
+
var frontend_record_detail_related_lists_warning = "缺少父级对象或父级记录属性!";
|
|
1642
|
+
var frontend_record_detail_related_lists_info = "没有相关子表";
|
|
1643
|
+
var frontend_calendar_listWeek = "列表";
|
|
1644
|
+
var frontend_message_no_permission_to_edit = "您没有编辑该记录的权限!";
|
|
1645
|
+
var frontend_message_modification_successful = "修改成功!";
|
|
1646
|
+
var frontend_message_modification_failed = "修改失败!";
|
|
1647
|
+
var zh_cn = {
|
|
1648
|
+
frontend_field_group_generalization: frontend_field_group_generalization,
|
|
1649
|
+
frontend_download: frontend_download,
|
|
1650
|
+
frontend_form_save: frontend_form_save,
|
|
1651
|
+
frontend_form_save_and_new: frontend_form_save_and_new,
|
|
1652
|
+
frontend_form_cancel: frontend_form_cancel,
|
|
1653
|
+
frontend_form_new: frontend_form_new,
|
|
1654
|
+
frontend_form_edit: frontend_form_edit,
|
|
1655
|
+
frontend_form_select: frontend_form_select,
|
|
1656
|
+
frontend_form_confirm: frontend_form_confirm,
|
|
1657
|
+
frontend_form_delete: frontend_form_delete,
|
|
1658
|
+
frontend_form_view: frontend_form_view,
|
|
1659
|
+
frontend_delete_confirm_text: frontend_delete_confirm_text,
|
|
1660
|
+
frontend_delete_many_selected_required: frontend_delete_many_selected_required,
|
|
1661
|
+
frontend_delete_many_confirm_text: frontend_delete_many_confirm_text,
|
|
1662
|
+
frontend_display_type_is_table: frontend_display_type_is_table,
|
|
1663
|
+
frontend_display_type_is_split: frontend_display_type_is_split,
|
|
1664
|
+
frontend_display_as: frontend_display_as,
|
|
1665
|
+
frontend_record_sum: frontend_record_sum,
|
|
1666
|
+
frontend_button_reload_tooltip: frontend_button_reload_tooltip,
|
|
1667
|
+
frontend_button_search_tooltip: frontend_button_search_tooltip,
|
|
1668
|
+
frontend_fields_filter_button_search: frontend_fields_filter_button_search,
|
|
1669
|
+
frontend_fields_filter_button_settings: frontend_fields_filter_button_settings,
|
|
1670
|
+
frontend_button_listview_control_tooltip: frontend_button_listview_control_tooltip,
|
|
1671
|
+
frontend_button_listview_control_label: frontend_button_listview_control_label,
|
|
1672
|
+
frontend_listview_control_columns: frontend_listview_control_columns,
|
|
1673
|
+
frontend_listview_control_columns_mobile_group: frontend_listview_control_columns_mobile_group,
|
|
1674
|
+
frontend_listview_control_clone: frontend_listview_control_clone,
|
|
1675
|
+
frontend_listview_control_clone_label: frontend_listview_control_clone_label,
|
|
1676
|
+
frontend_listview_control_clone_title: frontend_listview_control_clone_title,
|
|
1677
|
+
frontend_listview_control_clone_defaultData_label_start: frontend_listview_control_clone_defaultData_label_start,
|
|
1678
|
+
frontend_listview_control_clone_defaultData_label_end: frontend_listview_control_clone_defaultData_label_end,
|
|
1679
|
+
frontend_listview_control_delete_label: frontend_listview_control_delete_label,
|
|
1680
|
+
frontend_listview_control_delete_confirm_text: frontend_listview_control_delete_confirm_text,
|
|
1681
|
+
frontend_listview_control_delete_message_success: frontend_listview_control_delete_message_success,
|
|
1682
|
+
frontend_listview_control_filters: frontend_listview_control_filters,
|
|
1683
|
+
frontend_listview_control_filters_fields_extend: frontend_listview_control_filters_fields_extend,
|
|
1684
|
+
frontend_listview_control_new_label: frontend_listview_control_new_label,
|
|
1685
|
+
frontend_listview_control_new_title: frontend_listview_control_new_title,
|
|
1686
|
+
frontend_listview_control_new_message_success: frontend_listview_control_new_message_success,
|
|
1687
|
+
frontend_listview_control_new_message_failed: frontend_listview_control_new_message_failed,
|
|
1688
|
+
frontend_listview_control_rename_label: frontend_listview_control_rename_label,
|
|
1689
|
+
frontend_listview_control_rename_title: frontend_listview_control_rename_title,
|
|
1690
|
+
frontend_listview_control_share: frontend_listview_control_share,
|
|
1691
|
+
frontend_listview_control_sort: frontend_listview_control_sort,
|
|
1692
|
+
frontend_export_excel: frontend_export_excel,
|
|
1693
|
+
frontend_ercord_operation: frontend_ercord_operation,
|
|
1694
|
+
frontend_import_data: frontend_import_data,
|
|
1695
|
+
frontend_import_data_object_name: frontend_import_data_object_name,
|
|
1696
|
+
frontend_import_data_queue_import: frontend_import_data_queue_import,
|
|
1697
|
+
frontend_import_data_queue_import_description: frontend_import_data_queue_import_description,
|
|
1698
|
+
frontend_import_data_queue_import_encoding: frontend_import_data_queue_import_encoding,
|
|
1699
|
+
frontend_import_data_queue_import_template_url: frontend_import_data_queue_import_template_url,
|
|
1700
|
+
frontend_import_data_file: frontend_import_data_file,
|
|
1701
|
+
frontend_import_data_message_success: frontend_import_data_message_success,
|
|
1702
|
+
frontend_import_data_message_failed: frontend_import_data_message_failed,
|
|
1703
|
+
frontend_record_detail_tab_detailed: frontend_record_detail_tab_detailed,
|
|
1704
|
+
frontend_record_detail_tab_related: frontend_record_detail_tab_related,
|
|
1705
|
+
frontend_all_apps: frontend_all_apps,
|
|
1706
|
+
frontend_all_projects: frontend_all_projects,
|
|
1707
|
+
frontend_application_launcher: frontend_application_launcher,
|
|
1708
|
+
frontend_menu: frontend_menu,
|
|
1709
|
+
frontend_help: frontend_help,
|
|
1710
|
+
frontend_setup: frontend_setup,
|
|
1711
|
+
frontend_notifications: frontend_notifications,
|
|
1712
|
+
frontend_notifications_allread: frontend_notifications_allread,
|
|
1713
|
+
frontend_notifications_allread_message: frontend_notifications_allread_message,
|
|
1714
|
+
frontend_profile: frontend_profile,
|
|
1715
|
+
frontend_about: frontend_about,
|
|
1716
|
+
frontend_log_out: frontend_log_out,
|
|
1717
|
+
frontend_listview_warning_start: frontend_listview_warning_start,
|
|
1718
|
+
frontend_listview_warning_end: frontend_listview_warning_end,
|
|
1719
|
+
frontend_record_detail_related_list_warning: frontend_record_detail_related_list_warning,
|
|
1720
|
+
frontend_record_detail_related_lists_warning: frontend_record_detail_related_lists_warning,
|
|
1721
|
+
frontend_record_detail_related_lists_info: frontend_record_detail_related_lists_info,
|
|
1722
|
+
frontend_calendar_listWeek: frontend_calendar_listWeek,
|
|
1723
|
+
frontend_message_no_permission_to_edit: frontend_message_no_permission_to_edit,
|
|
1724
|
+
frontend_message_modification_successful: frontend_message_modification_successful,
|
|
1725
|
+
frontend_message_modification_failed: frontend_message_modification_failed
|
|
1726
|
+
};
|
|
1727
|
+
|
|
1728
|
+
const resources = {
|
|
1729
|
+
"en-US": {
|
|
1730
|
+
translation: en_us
|
|
1731
|
+
},
|
|
1732
|
+
"zh-CN": {
|
|
1733
|
+
translation: zh_cn
|
|
1734
|
+
}
|
|
1735
|
+
};
|
|
1736
|
+
var locale = "zh-CN";
|
|
1737
|
+
if (typeof window != 'undefined') {
|
|
1738
|
+
if (window.Builder?.settings.locale == "en-us") {
|
|
1739
|
+
locale = "en-US";
|
|
1740
|
+
} else if (window.Builder?.settings.locale == "zh-cn") {
|
|
1741
|
+
locale = "zh-CN";
|
|
1742
|
+
}
|
|
1743
|
+
}
|
|
1744
|
+
|
|
1745
|
+
|
|
1746
|
+
i18next__default["default"]
|
|
1747
|
+
.use(reactI18next.initReactI18next)
|
|
1748
|
+
.init({
|
|
1749
|
+
resources,
|
|
1750
|
+
lng: locale,
|
|
1751
|
+
interpolation: {
|
|
1752
|
+
escapeValue: false
|
|
1753
|
+
}
|
|
1754
|
+
});
|
|
1755
|
+
|
|
1412
1756
|
/*
|
|
1413
1757
|
* @Author: baozhoutao@steedos.com
|
|
1414
1758
|
* @Date: 2022-11-01 15:51:00
|
|
@@ -1470,7 +1814,7 @@
|
|
|
1470
1814
|
"body": [
|
|
1471
1815
|
{
|
|
1472
1816
|
"type": "button",
|
|
1473
|
-
"label": "
|
|
1817
|
+
"label": i18next__default["default"].t('frontend_form_new'),
|
|
1474
1818
|
"id": "u:standard_new",
|
|
1475
1819
|
"level": "default",
|
|
1476
1820
|
"onEvent": {
|
|
@@ -1496,7 +1840,7 @@
|
|
|
1496
1840
|
"isLookup": "${isLookup}",
|
|
1497
1841
|
"listName": "${listName}"
|
|
1498
1842
|
},
|
|
1499
|
-
"title": "
|
|
1843
|
+
"title":i18next__default["default"].t('frontend_form_new') + " ${uiSchema.label | raw}",
|
|
1500
1844
|
"body": [
|
|
1501
1845
|
{
|
|
1502
1846
|
"type": "service",
|
|
@@ -1529,11 +1873,11 @@
|
|
|
1529
1873
|
{
|
|
1530
1874
|
type: 'button',
|
|
1531
1875
|
actionType: 'cancel',
|
|
1532
|
-
label: "
|
|
1876
|
+
label: i18next__default["default"].t('frontend_form_cancel')
|
|
1533
1877
|
},
|
|
1534
1878
|
{
|
|
1535
1879
|
type: 'button',
|
|
1536
|
-
label: "
|
|
1880
|
+
label: i18next__default["default"].t('frontend_form_save_and_new'),
|
|
1537
1881
|
actionType: 'confirm',
|
|
1538
1882
|
close: false,
|
|
1539
1883
|
id: "confirmAndNew"
|
|
@@ -1541,7 +1885,7 @@
|
|
|
1541
1885
|
{
|
|
1542
1886
|
type: 'button',
|
|
1543
1887
|
actionType: 'confirm',
|
|
1544
|
-
label: "
|
|
1888
|
+
label: i18next__default["default"].t('frontend_form_save'),
|
|
1545
1889
|
primary: true
|
|
1546
1890
|
},
|
|
1547
1891
|
]
|
|
@@ -1592,7 +1936,7 @@
|
|
|
1592
1936
|
*/
|
|
1593
1937
|
|
|
1594
1938
|
const getSchema$3 = async (uiSchema, ctx) => {
|
|
1595
|
-
const title = "
|
|
1939
|
+
const title = i18next__default["default"].t('frontend_form_edit') + " " + uiSchema.label;
|
|
1596
1940
|
|
|
1597
1941
|
const defaultFormSchema = {
|
|
1598
1942
|
type: "steedos-object-form",
|
|
@@ -1622,7 +1966,7 @@
|
|
|
1622
1966
|
body: [
|
|
1623
1967
|
{
|
|
1624
1968
|
type: "button",
|
|
1625
|
-
label: "
|
|
1969
|
+
label: i18next__default["default"].t('frontend_form_edit'),
|
|
1626
1970
|
id: "u:standard_edit",
|
|
1627
1971
|
onEvent: {
|
|
1628
1972
|
click: {
|
|
@@ -1666,8 +2010,8 @@
|
|
|
1666
2010
|
"body": [
|
|
1667
2011
|
{
|
|
1668
2012
|
"type": "button",
|
|
1669
|
-
"label": "
|
|
1670
|
-
"confirmText": "
|
|
2013
|
+
"label": i18next__default["default"].t('frontend_form_delete'),
|
|
2014
|
+
"confirmText": i18next__default["default"].t('frontend_delete_many_confirm_text'),
|
|
1671
2015
|
"onEvent": {
|
|
1672
2016
|
"click": {
|
|
1673
2017
|
"actions": [
|
|
@@ -1734,7 +2078,7 @@
|
|
|
1734
2078
|
body: [
|
|
1735
2079
|
{
|
|
1736
2080
|
type: "button",
|
|
1737
|
-
label: "
|
|
2081
|
+
label: i18next__default["default"].t('frontend_import_data'),
|
|
1738
2082
|
id: "u:import_data",
|
|
1739
2083
|
onEvent: {
|
|
1740
2084
|
click: {
|
|
@@ -1747,7 +2091,7 @@
|
|
|
1747
2091
|
"object_name": "${objectName}"
|
|
1748
2092
|
},
|
|
1749
2093
|
type: "dialog",
|
|
1750
|
-
title: "
|
|
2094
|
+
title: i18next__default["default"].t('frontend_import_data'),
|
|
1751
2095
|
body: [
|
|
1752
2096
|
{
|
|
1753
2097
|
type: "form",
|
|
@@ -1782,12 +2126,12 @@
|
|
|
1782
2126
|
body: [
|
|
1783
2127
|
{
|
|
1784
2128
|
type: "fieldSet",
|
|
1785
|
-
title: "
|
|
2129
|
+
title: i18next__default["default"].t('frontend_field_group_generalization'),
|
|
1786
2130
|
collapsable: true,
|
|
1787
2131
|
body: [
|
|
1788
2132
|
{
|
|
1789
2133
|
name: "object_name",
|
|
1790
|
-
label: "
|
|
2134
|
+
label: i18next__default["default"].t('frontend_import_data_object_name'),
|
|
1791
2135
|
required: false,
|
|
1792
2136
|
type: "select",
|
|
1793
2137
|
joinValues: false,
|
|
@@ -1823,7 +2167,7 @@
|
|
|
1823
2167
|
},
|
|
1824
2168
|
{
|
|
1825
2169
|
name: "queue_import",
|
|
1826
|
-
label: "
|
|
2170
|
+
label: i18next__default["default"].t('frontend_import_data_queue_import'),
|
|
1827
2171
|
required: true,
|
|
1828
2172
|
type: "picker",
|
|
1829
2173
|
labelField: "description",
|
|
@@ -1869,7 +2213,7 @@
|
|
|
1869
2213
|
},
|
|
1870
2214
|
{
|
|
1871
2215
|
name: "description",
|
|
1872
|
-
label: "
|
|
2216
|
+
label: i18next__default["default"].t('frontend_import_data_queue_import_description'),
|
|
1873
2217
|
type: "tpl",
|
|
1874
2218
|
tpl: '<a href="/app/undefined/undefined/view/${undefined}">${description}</a>',
|
|
1875
2219
|
className: "whitespace-nowrap",
|
|
@@ -1877,7 +2221,7 @@
|
|
|
1877
2221
|
},
|
|
1878
2222
|
{
|
|
1879
2223
|
name: "object_name",
|
|
1880
|
-
label: "
|
|
2224
|
+
label: i18next__default["default"].t('frontend_import_data_object_name'),
|
|
1881
2225
|
type: "tpl",
|
|
1882
2226
|
tpl: '<a href="/app/undefined/${_display.object_name.objectName}/view/${_display.object_name.value}">${_display.object_name.label}</a>',
|
|
1883
2227
|
className: "whitespace-nowrap",
|
|
@@ -1885,7 +2229,7 @@
|
|
|
1885
2229
|
},
|
|
1886
2230
|
{
|
|
1887
2231
|
name: "encoding",
|
|
1888
|
-
label: "
|
|
2232
|
+
label: i18next__default["default"].t('frontend_import_data_queue_import_encoding'),
|
|
1889
2233
|
type: "tpl",
|
|
1890
2234
|
tpl: "<div>${_display.encoding}</div>",
|
|
1891
2235
|
className: "whitespace-nowrap",
|
|
@@ -1893,12 +2237,12 @@
|
|
|
1893
2237
|
},
|
|
1894
2238
|
{
|
|
1895
2239
|
name: "template_url",
|
|
1896
|
-
label: "
|
|
2240
|
+
label: i18next__default["default"].t('frontend_import_data_queue_import_template_url'),
|
|
1897
2241
|
type: "button-group",
|
|
1898
2242
|
buttons: [
|
|
1899
2243
|
{
|
|
1900
2244
|
type: "button",
|
|
1901
|
-
label: "
|
|
2245
|
+
label: i18next__default["default"].t('frontend_download'),
|
|
1902
2246
|
visibleOn: "${template_url}",
|
|
1903
2247
|
level: "link",
|
|
1904
2248
|
actionType: "download",
|
|
@@ -1932,7 +2276,7 @@
|
|
|
1932
2276
|
},
|
|
1933
2277
|
{
|
|
1934
2278
|
name: "file",
|
|
1935
|
-
label: "
|
|
2279
|
+
label: i18next__default["default"].t('frontend_import_data_file'),
|
|
1936
2280
|
required: true,
|
|
1937
2281
|
type: "input-file",
|
|
1938
2282
|
className: "m-1",
|
|
@@ -1988,8 +2332,8 @@
|
|
|
1988
2332
|
},
|
|
1989
2333
|
},
|
|
1990
2334
|
messages: {
|
|
1991
|
-
success: "
|
|
1992
|
-
failed: "
|
|
2335
|
+
success: i18next__default["default"].t('frontend_import_data_message_success'),
|
|
2336
|
+
failed: i18next__default["default"].t('frontend_import_data_message_failed'),
|
|
1993
2337
|
},
|
|
1994
2338
|
},
|
|
1995
2339
|
actionType: "ajax",
|
|
@@ -2028,6 +2372,7 @@
|
|
|
2028
2372
|
* @LastEditTime: 2022-11-07 17:12:20
|
|
2029
2373
|
* @Description:
|
|
2030
2374
|
*/
|
|
2375
|
+
|
|
2031
2376
|
const getSchema = (uiSchema)=>{
|
|
2032
2377
|
return {
|
|
2033
2378
|
"type": "service",
|
|
@@ -2035,7 +2380,7 @@
|
|
|
2035
2380
|
"body": [
|
|
2036
2381
|
{
|
|
2037
2382
|
"type": "button",
|
|
2038
|
-
"label": "
|
|
2383
|
+
"label": i18next__default["default"].t('frontend_form_view'),
|
|
2039
2384
|
"className": "border-none",
|
|
2040
2385
|
"onEvent": {
|
|
2041
2386
|
"click": {
|
|
@@ -2106,7 +2451,7 @@
|
|
|
2106
2451
|
"items": [
|
|
2107
2452
|
{
|
|
2108
2453
|
"position": "top-right",
|
|
2109
|
-
"body": "
|
|
2454
|
+
"body": i18next__default["default"].t('frontend_delete_many_selected_required')
|
|
2110
2455
|
}
|
|
2111
2456
|
]
|
|
2112
2457
|
}
|
|
@@ -2882,7 +3227,7 @@
|
|
|
2882
3227
|
if(_.isEmpty(defaultSearchableFields) && data.uiSchema){
|
|
2883
3228
|
defaultSearchableFields = _.map(
|
|
2884
3229
|
_.sortBy(_.filter(_.values(data.uiSchema.fields), (field) => {
|
|
2885
|
-
return field.
|
|
3230
|
+
return field.filterable;
|
|
2886
3231
|
}), "sort_no"),
|
|
2887
3232
|
"name"
|
|
2888
3233
|
);
|
|
@@ -3049,7 +3394,7 @@
|
|
|
3049
3394
|
{
|
|
3050
3395
|
"type": "button",
|
|
3051
3396
|
"id": btnSearchId,
|
|
3052
|
-
"label": "
|
|
3397
|
+
"label": i18next__default["default"].t('frontend_fields_filter_button_search'),
|
|
3053
3398
|
"icon": "fa fa-search",
|
|
3054
3399
|
// "visibleOn": "this.filterFormSearchableFields && this.filterFormSearchableFields.length",
|
|
3055
3400
|
"onEvent": {
|
|
@@ -3065,7 +3410,7 @@
|
|
|
3065
3410
|
},
|
|
3066
3411
|
{
|
|
3067
3412
|
"type": "button",
|
|
3068
|
-
"label": "
|
|
3413
|
+
"label": i18next__default["default"].t('frontend_form_cancel'),
|
|
3069
3414
|
"name": "btn_filter_form_cancel",
|
|
3070
3415
|
// "visibleOn": "this.filterFormSearchableFields && this.filterFormSearchableFields.length",
|
|
3071
3416
|
"onEvent": {
|
|
@@ -3081,7 +3426,7 @@
|
|
|
3081
3426
|
},
|
|
3082
3427
|
{
|
|
3083
3428
|
"type": "button",
|
|
3084
|
-
"label": "
|
|
3429
|
+
"label": i18next__default["default"].t('frontend_fields_filter_button_settings'),
|
|
3085
3430
|
"onEvent": {
|
|
3086
3431
|
"click": {
|
|
3087
3432
|
"actions": [
|
|
@@ -3090,7 +3435,7 @@
|
|
|
3090
3435
|
"dialog": {
|
|
3091
3436
|
"type": "dialog",
|
|
3092
3437
|
"size": "md",
|
|
3093
|
-
"title": "
|
|
3438
|
+
"title": i18next__default["default"].t('frontend_fields_filter_button_settings'),
|
|
3094
3439
|
"body": [
|
|
3095
3440
|
{
|
|
3096
3441
|
"type": "form",
|
|
@@ -3158,7 +3503,7 @@
|
|
|
3158
3503
|
"actions": [
|
|
3159
3504
|
{
|
|
3160
3505
|
"type": "button",
|
|
3161
|
-
"label": "
|
|
3506
|
+
"label": i18next__default["default"].t('frontend_form_cancel'),
|
|
3162
3507
|
"onEvent": {
|
|
3163
3508
|
"click": {
|
|
3164
3509
|
"actions": [
|
|
@@ -3174,7 +3519,7 @@
|
|
|
3174
3519
|
},
|
|
3175
3520
|
{
|
|
3176
3521
|
"type": "button",
|
|
3177
|
-
"label": "
|
|
3522
|
+
"label": i18next__default["default"].t('frontend_form_confirm'),
|
|
3178
3523
|
"onEvent": {
|
|
3179
3524
|
"click": {
|
|
3180
3525
|
"actions": [
|
|
@@ -3691,7 +4036,7 @@
|
|
|
3691
4036
|
"className": "bg-white p-2 rounded border-gray-300 text-gray-500",
|
|
3692
4037
|
"tooltipPlacement": "bottom",
|
|
3693
4038
|
"visibleOn": "${!isLookup && global.user.is_space_admin}",
|
|
3694
|
-
"tooltip": "
|
|
4039
|
+
"tooltip": i18next__default["default"].t('frontend_export_excel'),
|
|
3695
4040
|
"onEvent": {
|
|
3696
4041
|
"click": {
|
|
3697
4042
|
"weight": 0,
|
|
@@ -3777,7 +4122,7 @@
|
|
|
3777
4122
|
const getNewListviewButtonSchema = ()=>{
|
|
3778
4123
|
return {
|
|
3779
4124
|
"type": "button",
|
|
3780
|
-
"label": "
|
|
4125
|
+
"label": i18next__default["default"].t('frontend_listview_control_new_label'),
|
|
3781
4126
|
"onEvent": {
|
|
3782
4127
|
"click": {
|
|
3783
4128
|
"weight": 0,
|
|
@@ -3785,7 +4130,7 @@
|
|
|
3785
4130
|
{
|
|
3786
4131
|
"dialog": {
|
|
3787
4132
|
"type": "dialog",
|
|
3788
|
-
"title": "
|
|
4133
|
+
"title": i18next__default["default"].t('frontend_listview_control_new_title'),
|
|
3789
4134
|
"data": {
|
|
3790
4135
|
//"&":"$$",2.7、2.9、3.0在此处失效
|
|
3791
4136
|
"all": "${uiSchema.list_views.all}",
|
|
@@ -3827,8 +4172,8 @@
|
|
|
3827
4172
|
}
|
|
3828
4173
|
},
|
|
3829
4174
|
"messages": {
|
|
3830
|
-
"success": "
|
|
3831
|
-
"failed": "
|
|
4175
|
+
"success": i18next__default["default"].t('frontend_listview_control_new_message_success'),
|
|
4176
|
+
"failed": i18next__default["default"].t('frontend_listview_control_new_message_failed')
|
|
3832
4177
|
},
|
|
3833
4178
|
}
|
|
3834
4179
|
],
|
|
@@ -3927,7 +4272,7 @@
|
|
|
3927
4272
|
const getCopyListviewButtonSchema = ()=>{
|
|
3928
4273
|
return {
|
|
3929
4274
|
"type": "button",
|
|
3930
|
-
"label": "
|
|
4275
|
+
"label": i18next__default["default"].t('frontend_listview_control_clone_label'),
|
|
3931
4276
|
"onEvent": {
|
|
3932
4277
|
"click": {
|
|
3933
4278
|
"weight": 0,
|
|
@@ -3935,7 +4280,7 @@
|
|
|
3935
4280
|
{
|
|
3936
4281
|
"dialog": {
|
|
3937
4282
|
"type": "dialog",
|
|
3938
|
-
"title": "
|
|
4283
|
+
"title": i18next__default["default"].t('frontend_listview_control_clone_title'),
|
|
3939
4284
|
"data": {
|
|
3940
4285
|
//"&":"$$",2.7、2.9、3.0在此处失效
|
|
3941
4286
|
"listName": "${listName}",
|
|
@@ -3955,7 +4300,7 @@
|
|
|
3955
4300
|
"defaultData": {
|
|
3956
4301
|
"&": "${list_view}",
|
|
3957
4302
|
"name":"",
|
|
3958
|
-
"label": "${list_view.label}
|
|
4303
|
+
"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'),
|
|
3959
4304
|
"shared":false
|
|
3960
4305
|
},
|
|
3961
4306
|
"fieldsExtend": fieldsExtend$3(),
|
|
@@ -4072,7 +4417,7 @@
|
|
|
4072
4417
|
const getRenameListviewButtonSchema = ()=>{
|
|
4073
4418
|
return {
|
|
4074
4419
|
"type": "button",
|
|
4075
|
-
"label": "
|
|
4420
|
+
"label": i18next__default["default"].t('frontend_listview_control_rename_label'),
|
|
4076
4421
|
"disabledOn": "!((global.user.is_space_admin || global.userId == uiSchema.list_views[listName].owner) && !!uiSchema.list_views[listName].owner)",
|
|
4077
4422
|
"onEvent": {
|
|
4078
4423
|
"click": {
|
|
@@ -4081,7 +4426,7 @@
|
|
|
4081
4426
|
{
|
|
4082
4427
|
"dialog": {
|
|
4083
4428
|
"type": "dialog",
|
|
4084
|
-
"title": "
|
|
4429
|
+
"title": i18next__default["default"].t('frontend_listview_control_rename_title'),
|
|
4085
4430
|
"data": {
|
|
4086
4431
|
"targetObjectName": "${objectName}",
|
|
4087
4432
|
"recordId": "${uiSchema.list_views[listName]._id}",
|
|
@@ -4131,7 +4476,7 @@
|
|
|
4131
4476
|
const getSetListviewShareButtonSchema = ()=>{
|
|
4132
4477
|
return {
|
|
4133
4478
|
"type": "button",
|
|
4134
|
-
"label": "
|
|
4479
|
+
"label": i18next__default["default"].t('frontend_listview_control_share'),
|
|
4135
4480
|
"disabledOn": "!(global.user.is_space_admin && !!uiSchema.list_views[listName].owner)",
|
|
4136
4481
|
"onEvent": {
|
|
4137
4482
|
"click": {
|
|
@@ -4140,7 +4485,7 @@
|
|
|
4140
4485
|
{
|
|
4141
4486
|
"dialog": {
|
|
4142
4487
|
"type": "dialog",
|
|
4143
|
-
"title": "
|
|
4488
|
+
"title": i18next__default["default"].t('frontend_listview_control_share'),
|
|
4144
4489
|
"data": {
|
|
4145
4490
|
"recordId": "${uiSchema.list_views[listName]._id}",
|
|
4146
4491
|
"context": "${context}"
|
|
@@ -4175,7 +4520,7 @@
|
|
|
4175
4520
|
const getSetListviewFiltersButtonSchema = ()=>{
|
|
4176
4521
|
return {
|
|
4177
4522
|
"type": "button",
|
|
4178
|
-
"label": "
|
|
4523
|
+
"label": i18next__default["default"].t('frontend_listview_control_filters'),
|
|
4179
4524
|
"disabledOn": "!((global.user.is_space_admin || global.userId == uiSchema.list_views[listName].owner) && !!uiSchema.list_views[listName].owner)",
|
|
4180
4525
|
"onEvent": {
|
|
4181
4526
|
"click": {
|
|
@@ -4184,7 +4529,7 @@
|
|
|
4184
4529
|
{
|
|
4185
4530
|
"dialog": {
|
|
4186
4531
|
"type": "dialog",
|
|
4187
|
-
"title": "
|
|
4532
|
+
"title": i18next__default["default"].t('frontend_listview_control_filters'),
|
|
4188
4533
|
"data": {
|
|
4189
4534
|
"targetObjectName": "${objectName}",
|
|
4190
4535
|
"recordId": "${uiSchema.list_views[listName]._id}",
|
|
@@ -4305,7 +4650,7 @@
|
|
|
4305
4650
|
"visible_on": "true",
|
|
4306
4651
|
"amis": {
|
|
4307
4652
|
"type": "condition-builder",
|
|
4308
|
-
"label": "
|
|
4653
|
+
"label": i18next__default["default"].t('frontend_listview_control_filters_fields_extend'),
|
|
4309
4654
|
"source": {
|
|
4310
4655
|
"method": "get",
|
|
4311
4656
|
"url": "${context.rootUrl}/service/api/amis-metadata-listviews/getFilterFields?objectName=${targetObjectName}",
|
|
@@ -4322,7 +4667,7 @@
|
|
|
4322
4667
|
const getSetListviewColumnsButtonSchema = ()=>{
|
|
4323
4668
|
return {
|
|
4324
4669
|
"type": "button",
|
|
4325
|
-
"label": "
|
|
4670
|
+
"label": i18next__default["default"].t('frontend_listview_control_columns'),
|
|
4326
4671
|
"disabledOn": "!((global.user.is_space_admin || global.userId == uiSchema.list_views[listName].owner) && !!uiSchema.list_views[listName].owner)",
|
|
4327
4672
|
"onEvent": {
|
|
4328
4673
|
"click": {
|
|
@@ -4332,7 +4677,7 @@
|
|
|
4332
4677
|
"args": {},
|
|
4333
4678
|
"dialog": {
|
|
4334
4679
|
"type": "dialog",
|
|
4335
|
-
"title": "
|
|
4680
|
+
"title": i18next__default["default"].t('frontend_listview_control_columns'),
|
|
4336
4681
|
"data": {
|
|
4337
4682
|
//"&":"$$",2.7、2.9、3.0在此处失效
|
|
4338
4683
|
"targetObjectName": "${objectName}",
|
|
@@ -4402,7 +4747,7 @@
|
|
|
4402
4747
|
}
|
|
4403
4748
|
},
|
|
4404
4749
|
"mobile_columns": {
|
|
4405
|
-
"group": "
|
|
4750
|
+
"group": i18next__default["default"].t('frontend_listview_control_columns_mobile_group'),
|
|
4406
4751
|
"amis": {
|
|
4407
4752
|
"type": "transfer",
|
|
4408
4753
|
"sortable": true,
|
|
@@ -4477,7 +4822,7 @@
|
|
|
4477
4822
|
const getSetListviewSortButtonSchema = ()=>{
|
|
4478
4823
|
return {
|
|
4479
4824
|
"type": "button",
|
|
4480
|
-
"label": "
|
|
4825
|
+
"label": i18next__default["default"].t('frontend_listview_control_sort'),
|
|
4481
4826
|
"disabledOn": "!((global.user.is_space_admin || global.userId == uiSchema.list_views[listName].owner) && !!uiSchema.list_views[listName].owner)",
|
|
4482
4827
|
"onEvent": {
|
|
4483
4828
|
"click": {
|
|
@@ -4486,7 +4831,7 @@
|
|
|
4486
4831
|
{
|
|
4487
4832
|
"dialog": {
|
|
4488
4833
|
"type": "dialog",
|
|
4489
|
-
"title": "
|
|
4834
|
+
"title": i18next__default["default"].t('frontend_listview_control_sort'),
|
|
4490
4835
|
"data": {
|
|
4491
4836
|
//"&":"$$",2.7、2.9、3.0在此处失效
|
|
4492
4837
|
"targetObjectName": "${objectName}",
|
|
@@ -4602,9 +4947,9 @@
|
|
|
4602
4947
|
const getDeleteListviewButtonSchema = ()=>{
|
|
4603
4948
|
return {
|
|
4604
4949
|
"type": "button",
|
|
4605
|
-
"label": "
|
|
4950
|
+
"label": i18next__default["default"].t('frontend_listview_control_delete_label'),
|
|
4606
4951
|
"disabledOn": "!((global.user.is_space_admin || global.userId == uiSchema.list_views[listName].owner) && !!uiSchema.list_views[listName].owner)",
|
|
4607
|
-
"confirmText": "
|
|
4952
|
+
"confirmText": i18next__default["default"].t('frontend_listview_control_delete_confirm_text'),
|
|
4608
4953
|
"onEvent": {
|
|
4609
4954
|
"click": {
|
|
4610
4955
|
"actions": [
|
|
@@ -4623,7 +4968,7 @@
|
|
|
4623
4968
|
"recordId": "${uiSchema.list_views[listName]._id}"
|
|
4624
4969
|
},
|
|
4625
4970
|
"messages": {
|
|
4626
|
-
"success": "
|
|
4971
|
+
"success": i18next__default["default"].t('frontend_listview_control_delete_message_success')
|
|
4627
4972
|
},
|
|
4628
4973
|
"requestAdaptor": requestAdaptor(),
|
|
4629
4974
|
"adaptor": adaptor(),
|
|
@@ -4670,13 +5015,13 @@
|
|
|
4670
5015
|
"type": "dropdown-button",
|
|
4671
5016
|
"trigger": "click",
|
|
4672
5017
|
"icon": "fa fa-cog",
|
|
4673
|
-
"tooltip": "
|
|
5018
|
+
"tooltip": i18next__default["default"].t('frontend_button_listview_control_tooltip'),
|
|
4674
5019
|
"btnClassName": "antd-Button--iconOnly bg-white p-2 rounded border-gray-300 text-gray-500",
|
|
4675
5020
|
"align": "right",
|
|
4676
5021
|
"visibleOn": "${!isLookup}",
|
|
4677
5022
|
"buttons": [
|
|
4678
5023
|
{
|
|
4679
|
-
"label": "
|
|
5024
|
+
"label": i18next__default["default"].t('frontend_button_listview_control_label'),
|
|
4680
5025
|
"children": [
|
|
4681
5026
|
getNewListviewButtonSchema(),
|
|
4682
5027
|
getCopyListviewButtonSchema(),
|
|
@@ -4697,30 +5042,30 @@
|
|
|
4697
5042
|
let buttons = [
|
|
4698
5043
|
{
|
|
4699
5044
|
"type": "button",
|
|
4700
|
-
"label": "
|
|
5045
|
+
"label": i18next__default["default"].t('frontend_display_type_is_table'),
|
|
4701
5046
|
"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');",
|
|
4702
5047
|
"rightIcon": displayAs != 'split' ? "fa fa-check" : null,
|
|
4703
5048
|
"rightIconClassName": "m-l-sm"
|
|
4704
5049
|
},
|
|
4705
5050
|
{
|
|
4706
5051
|
"type": "button",
|
|
4707
|
-
"label": "
|
|
5052
|
+
"label": i18next__default["default"].t('frontend_display_type_is_split'),
|
|
4708
5053
|
"onClick": "const url = document.location.pathname + '?display=split'; props.env.jumpTo(url);",
|
|
4709
5054
|
"rightIcon": displayAs === 'split' ? "fa fa-check" : null,
|
|
4710
5055
|
"rightIconClassName": "m-l-sm"
|
|
4711
5056
|
}
|
|
4712
5057
|
];
|
|
4713
|
-
const displayAsLabel = displayAs === 'split'? "
|
|
5058
|
+
const displayAsLabel = displayAs === 'split'? i18next__default["default"].t('frontend_display_type_is_split') : i18next__default["default"].t('frontend_display_type_is_table');
|
|
4714
5059
|
return {
|
|
4715
5060
|
"type": "dropdown-button",
|
|
4716
5061
|
"icon": "fa fa-table-columns",
|
|
4717
|
-
"tooltip":
|
|
5062
|
+
"tooltip": `${i18next__default["default"].t('frontend_display_as')} ${displayAsLabel}`,
|
|
4718
5063
|
"btnClassName": "antd-Button--iconOnly bg-white p-2 rounded border-gray-300 text-gray-500",
|
|
4719
5064
|
"align": "right",
|
|
4720
5065
|
"visibleOn": "${window:innerWidth > 768 && !!!isLookup}",
|
|
4721
5066
|
"buttons": [
|
|
4722
5067
|
{
|
|
4723
|
-
"label": "
|
|
5068
|
+
"label": i18next__default["default"].t('frontend_display_as'),
|
|
4724
5069
|
"children": buttons
|
|
4725
5070
|
}
|
|
4726
5071
|
]
|
|
@@ -4788,13 +5133,13 @@ else{
|
|
|
4788
5133
|
...(headerToolbarItems || []),
|
|
4789
5134
|
hiddenCount ? {} :{
|
|
4790
5135
|
"type": "tpl",
|
|
4791
|
-
"tpl": "${count}
|
|
5136
|
+
"tpl": "${count} " + i18next__default["default"].t('frontend_record_sum')
|
|
4792
5137
|
},
|
|
4793
5138
|
{
|
|
4794
5139
|
// "type": "reload",//不可以直接使用reload,因为它不会设置页码到第一页
|
|
4795
5140
|
"type": "button",
|
|
4796
5141
|
"align": "right",
|
|
4797
|
-
"tooltip": "
|
|
5142
|
+
"tooltip": i18next__default["default"].t('frontend_button_reload_tooltip'),
|
|
4798
5143
|
"className": "bg-white p-2 rounded border-gray-300 text-gray-500",
|
|
4799
5144
|
"label": "",
|
|
4800
5145
|
"icon": "fa fa-sync",
|
|
@@ -4814,7 +5159,7 @@ else{
|
|
|
4814
5159
|
"label": "",
|
|
4815
5160
|
"icon": "fa fa-search",
|
|
4816
5161
|
"type": "button",
|
|
4817
|
-
"tooltip": "
|
|
5162
|
+
"tooltip": i18next__default["default"].t('frontend_button_search_tooltip'),
|
|
4818
5163
|
"badge": {
|
|
4819
5164
|
"offset": [
|
|
4820
5165
|
-5,
|
|
@@ -4854,12 +5199,12 @@ else{
|
|
|
4854
5199
|
// },
|
|
4855
5200
|
hiddenCount ? {} : {
|
|
4856
5201
|
"type": "tpl",
|
|
4857
|
-
"tpl": "${count}
|
|
5202
|
+
"tpl": "${count} " + i18next__default["default"].t('frontend_record_sum')
|
|
4858
5203
|
},
|
|
4859
5204
|
{
|
|
4860
5205
|
"type": "reload",
|
|
4861
5206
|
"align": "right",
|
|
4862
|
-
"tooltip": "
|
|
5207
|
+
"tooltip": i18next__default["default"].t('frontend_button_reload_tooltip'),
|
|
4863
5208
|
"tooltipPlacement": "bottom",
|
|
4864
5209
|
"className": "bg-white p-2 rounded border-gray-300 text-gray-500"
|
|
4865
5210
|
},
|
|
@@ -4867,7 +5212,7 @@ else{
|
|
|
4867
5212
|
filterVisible ? {
|
|
4868
5213
|
"label": "",
|
|
4869
5214
|
"icon": "fa fa-search",
|
|
4870
|
-
"tooltip": "
|
|
5215
|
+
"tooltip": i18next__default["default"].t('frontend_button_search_tooltip'),
|
|
4871
5216
|
"tooltipPlacement": "bottom",
|
|
4872
5217
|
"type": "button",
|
|
4873
5218
|
"align": "right",
|
|
@@ -7370,7 +7715,7 @@ else{
|
|
|
7370
7715
|
}
|
|
7371
7716
|
return {
|
|
7372
7717
|
type: 'operation',
|
|
7373
|
-
label: '
|
|
7718
|
+
label: i18next__default["default"].t('frontend_ercord_operation'),
|
|
7374
7719
|
fixed: 'right',
|
|
7375
7720
|
labelClassName: 'text-center',
|
|
7376
7721
|
className: 'text-center steedos-listview-operation w-20',
|
|
@@ -8419,7 +8764,7 @@ else{
|
|
|
8419
8764
|
// ObjectForm会认作用域下的变量值
|
|
8420
8765
|
// TODO: 待组件支持initValues属性后应该改掉,不应该通过data直接传值
|
|
8421
8766
|
// TODO: 全天事件属性传入doc了但是没有生效,需要手动在ObjectForm中勾选全天事件
|
|
8422
|
-
const title = "
|
|
8767
|
+
const title = "${i18next__default["default"].t('frontend_form_new')} ${objectSchema.label}";
|
|
8423
8768
|
doAction(
|
|
8424
8769
|
{
|
|
8425
8770
|
"actionType": "dialog",
|
|
@@ -8453,33 +8798,6 @@ else{
|
|
|
8453
8798
|
});
|
|
8454
8799
|
`;
|
|
8455
8800
|
|
|
8456
|
-
const onEventClickScript = `
|
|
8457
|
-
const data = event.data;
|
|
8458
|
-
const eventData = data.event;
|
|
8459
|
-
const appId = data.appId;
|
|
8460
|
-
const objectName = data.objectName;
|
|
8461
|
-
const eventId = data.event && data.event.id;
|
|
8462
|
-
doAction({
|
|
8463
|
-
"actionType": "dialog",
|
|
8464
|
-
"dialog": {
|
|
8465
|
-
"type": "dialog",
|
|
8466
|
-
"title": "",
|
|
8467
|
-
"body": [
|
|
8468
|
-
{
|
|
8469
|
-
"type": "steedos-record-detail",
|
|
8470
|
-
"objectApiName": "\${objectName}",
|
|
8471
|
-
"recordId": data.event && data.event.id
|
|
8472
|
-
}
|
|
8473
|
-
],
|
|
8474
|
-
"closeOnEsc": false,
|
|
8475
|
-
"closeOnOutside": false,
|
|
8476
|
-
"showCloseButton": true,
|
|
8477
|
-
"size": "lg",
|
|
8478
|
-
"actions": []
|
|
8479
|
-
}
|
|
8480
|
-
});
|
|
8481
|
-
`;
|
|
8482
|
-
|
|
8483
8801
|
const recordId = "${event.id}";
|
|
8484
8802
|
const recordPermissionsApi = getCalendarRecordPermissionsApi(objectSchema, recordId);
|
|
8485
8803
|
const recordSaveApi = getCalendarRecordSaveApi(objectSchema, calendarOptions);
|
|
@@ -8525,11 +8843,10 @@ else{
|
|
|
8525
8843
|
"weight": 0,
|
|
8526
8844
|
"actions": [
|
|
8527
8845
|
{
|
|
8528
|
-
"
|
|
8846
|
+
"actionType": "link",
|
|
8529
8847
|
"args": {
|
|
8530
|
-
|
|
8531
|
-
|
|
8532
|
-
"script": onEventClickScript
|
|
8848
|
+
"link": "/app/${appId}/${objectName}/view/${event.id}"
|
|
8849
|
+
}
|
|
8533
8850
|
}
|
|
8534
8851
|
]
|
|
8535
8852
|
},
|
|
@@ -8559,7 +8876,7 @@ else{
|
|
|
8559
8876
|
"expression": "!event.data.editable",
|
|
8560
8877
|
"args": {
|
|
8561
8878
|
"msgType": "error",
|
|
8562
|
-
"msg": "
|
|
8879
|
+
"msg": i18next__default["default"].t('frontend_message_no_permission_to_edit'),
|
|
8563
8880
|
"position": "top-center"
|
|
8564
8881
|
}
|
|
8565
8882
|
},
|
|
@@ -8569,8 +8886,8 @@ else{
|
|
|
8569
8886
|
"args": {
|
|
8570
8887
|
"api": recordSaveApi,
|
|
8571
8888
|
"messages": {
|
|
8572
|
-
"success": objectSchema.label + "
|
|
8573
|
-
"failed": objectSchema.label + "
|
|
8889
|
+
"success": objectSchema.label + i18next__default["default"].t('frontend_message_modification_successful'),
|
|
8890
|
+
"failed": objectSchema.label + i18next__default["default"].t('frontend_message_modification_successful')
|
|
8574
8891
|
}
|
|
8575
8892
|
}
|
|
8576
8893
|
}
|
|
@@ -8642,7 +8959,12 @@ else{
|
|
|
8642
8959
|
"initialView": initialView,
|
|
8643
8960
|
"businessHours": businessHours,
|
|
8644
8961
|
...config,
|
|
8645
|
-
"onEvent": onEvent
|
|
8962
|
+
"onEvent": onEvent,
|
|
8963
|
+
"views":{
|
|
8964
|
+
listWeek: {
|
|
8965
|
+
buttonText: i18next__default["default"].t('frontend_calendar_listWeek')
|
|
8966
|
+
}
|
|
8967
|
+
}
|
|
8646
8968
|
};
|
|
8647
8969
|
return amisSchema;
|
|
8648
8970
|
}
|
|
@@ -8661,7 +8983,7 @@ else{
|
|
|
8661
8983
|
|
|
8662
8984
|
___namespace.forEach(formFields, (field) => {
|
|
8663
8985
|
if (!field.group || field.group == 'null' || field.group == '-')
|
|
8664
|
-
field.group = '
|
|
8986
|
+
field.group = i18next__default["default"].t('frontend_field_group_generalization');
|
|
8665
8987
|
const fieldName = field.name;
|
|
8666
8988
|
let isObjectField = /\w+\.\w+/.test(fieldName);
|
|
8667
8989
|
if (field.type == 'grid' || field.type == 'object') {
|
|
@@ -8826,7 +9148,7 @@ else{
|
|
|
8826
9148
|
"level": "danger",
|
|
8827
9149
|
"label": "批量删除",
|
|
8828
9150
|
"actionType": "ajax",
|
|
8829
|
-
"confirmText": "
|
|
9151
|
+
"confirmText": i18next__default["default"].t('frontend_delete_many_confirm_text'),
|
|
8830
9152
|
"className": "hidden",
|
|
8831
9153
|
"id": "batchDelete",
|
|
8832
9154
|
"api": getBatchDelete(objectSchema.name),
|
|
@@ -10105,7 +10427,7 @@ else{
|
|
|
10105
10427
|
const uiSchema = await getUISchema(objectName);
|
|
10106
10428
|
const relatedLists = await getObjectRelatedList(objectName);
|
|
10107
10429
|
const detailed = {
|
|
10108
|
-
"title": "
|
|
10430
|
+
"title": i18next__default["default"].t('frontend_record_detail_tab_detailed'),
|
|
10109
10431
|
"className": "px-0 py-4",
|
|
10110
10432
|
"body": [
|
|
10111
10433
|
{
|
|
@@ -10120,7 +10442,7 @@ else{
|
|
|
10120
10442
|
"id": "u:5d4e7e3f6ecc"
|
|
10121
10443
|
};
|
|
10122
10444
|
const related = {
|
|
10123
|
-
"title": "
|
|
10445
|
+
"title": i18next__default["default"].t('frontend_record_detail_tab_related'),
|
|
10124
10446
|
"className": "px-0 pt-4",
|
|
10125
10447
|
"body": [
|
|
10126
10448
|
{
|
|
@@ -13072,6 +13394,10 @@ else{
|
|
|
13072
13394
|
};
|
|
13073
13395
|
};
|
|
13074
13396
|
|
|
13397
|
+
Object.defineProperty(exports, 'i18next', {
|
|
13398
|
+
enumerable: true,
|
|
13399
|
+
get: function () { return i18next__default["default"]; }
|
|
13400
|
+
});
|
|
13075
13401
|
exports.Field = index;
|
|
13076
13402
|
exports.Router = Router;
|
|
13077
13403
|
exports.absoluteUrl = absoluteUrl;
|