@steedos-widgets/amis-lib 1.2.15 → 1.2.18
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 +553 -121
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +549 -121
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +555 -125
- 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/dist/types/lib/converter/amis/header.d.ts +0 -5
- package/dist/types/schema/standard_export_excel.amis.d.ts +32 -0
- package/dist/types/standard/button.d.ts +35 -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 = "导出";
|
|
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
|
|
@@ -1417,7 +1761,7 @@
|
|
|
1417
1761
|
* @Description:
|
|
1418
1762
|
*/
|
|
1419
1763
|
|
|
1420
|
-
const getSchema$
|
|
1764
|
+
const getSchema$5 = async (uiSchema, ctx) => {
|
|
1421
1765
|
const schemaApiAdaptor = `
|
|
1422
1766
|
let formSchema = {
|
|
1423
1767
|
"type": "steedos-object-form",
|
|
@@ -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
|
]
|
|
@@ -1591,8 +1935,8 @@
|
|
|
1591
1935
|
* @Description:
|
|
1592
1936
|
*/
|
|
1593
1937
|
|
|
1594
|
-
const getSchema$
|
|
1595
|
-
const title = "
|
|
1938
|
+
const getSchema$4 = async (uiSchema, ctx) => {
|
|
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: {
|
|
@@ -1659,15 +2003,15 @@
|
|
|
1659
2003
|
* @LastEditors: Please set LastEditors
|
|
1660
2004
|
* @LastEditTime: 2023-04-12 10:35:36
|
|
1661
2005
|
*/
|
|
1662
|
-
const getSchema$
|
|
2006
|
+
const getSchema$3 = (uiSchema)=>{
|
|
1663
2007
|
return {
|
|
1664
2008
|
"type": "service",
|
|
1665
2009
|
"className": "p-0",
|
|
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": [
|
|
@@ -1728,13 +2072,13 @@
|
|
|
1728
2072
|
}
|
|
1729
2073
|
};
|
|
1730
2074
|
|
|
1731
|
-
const getSchema$
|
|
2075
|
+
const getSchema$2 = (uiSchema) => {
|
|
1732
2076
|
return {
|
|
1733
2077
|
type: "service",
|
|
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,14 +2372,15 @@
|
|
|
2028
2372
|
* @LastEditTime: 2022-11-07 17:12:20
|
|
2029
2373
|
* @Description:
|
|
2030
2374
|
*/
|
|
2031
|
-
|
|
2375
|
+
|
|
2376
|
+
const getSchema$1 = (uiSchema)=>{
|
|
2032
2377
|
return {
|
|
2033
2378
|
"type": "service",
|
|
2034
2379
|
"className": "p-0",
|
|
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": {
|
|
@@ -2060,6 +2405,94 @@
|
|
|
2060
2405
|
}
|
|
2061
2406
|
};
|
|
2062
2407
|
|
|
2408
|
+
const getSchema = async (uiSchema, ctx) => {
|
|
2409
|
+
const requestAdaptor = `
|
|
2410
|
+
// 获取列表视图的属性
|
|
2411
|
+
let uiSchema = api.body.uiSchema;
|
|
2412
|
+
let list_views = uiSchema.list_views;
|
|
2413
|
+
let list_views_name = api.body.listName;
|
|
2414
|
+
let col = list_views[list_views_name].columns;
|
|
2415
|
+
let sort_test = list_views[list_views_name].sort;
|
|
2416
|
+
|
|
2417
|
+
// 获取下载字段
|
|
2418
|
+
let select = [];
|
|
2419
|
+
_.each(col, (col) => {
|
|
2420
|
+
if (col.field == undefined)
|
|
2421
|
+
select.push(col);
|
|
2422
|
+
else select.push(col.field);
|
|
2423
|
+
});
|
|
2424
|
+
|
|
2425
|
+
// 获取排序字段
|
|
2426
|
+
|
|
2427
|
+
let sort = [];
|
|
2428
|
+
_.forEach(sort_test, (sortField) => {
|
|
2429
|
+
if (sortField.field_name == undefined)
|
|
2430
|
+
sort.push(sortField);
|
|
2431
|
+
else sort.push([sortField.field_name, sortField.order]);
|
|
2432
|
+
})
|
|
2433
|
+
|
|
2434
|
+
let orders = [];
|
|
2435
|
+
_.map(sort, (value) => {
|
|
2436
|
+
let order_tmp = [];
|
|
2437
|
+
if (value[1] == "desc")
|
|
2438
|
+
order_tmp = value[0] + ' desc';
|
|
2439
|
+
else
|
|
2440
|
+
order_tmp = value[0];
|
|
2441
|
+
orders.push(order_tmp);
|
|
2442
|
+
});
|
|
2443
|
+
let order = orders.join(',');
|
|
2444
|
+
|
|
2445
|
+
let filename = uiSchema.label + "-" + list_views[list_views_name].label;
|
|
2446
|
+
|
|
2447
|
+
url_tmp = api.url.split('?')[0];
|
|
2448
|
+
api.url = url_tmp + "?$select=" + select.toString() + "&filename=" + filename;
|
|
2449
|
+
|
|
2450
|
+
// 判断sort 和 filters
|
|
2451
|
+
if (sort.length > 0) {
|
|
2452
|
+
api.url += "&$orderby=" + order;
|
|
2453
|
+
}
|
|
2454
|
+
let filters = list_views[list_views_name].filters;
|
|
2455
|
+
if (filters && filters.length > 0) {
|
|
2456
|
+
api.url = api.url + "&filters=" + JSON.stringify(filters);
|
|
2457
|
+
}
|
|
2458
|
+
return api;
|
|
2459
|
+
`;
|
|
2460
|
+
return {
|
|
2461
|
+
"type": "service",
|
|
2462
|
+
"body": [{
|
|
2463
|
+
"type": "button",
|
|
2464
|
+
"label": i18next__default["default"].t('frontend_export_excel'),
|
|
2465
|
+
"id": "u:standard_export_excel",
|
|
2466
|
+
"level": "default",
|
|
2467
|
+
"onEvent": {
|
|
2468
|
+
"click": {
|
|
2469
|
+
"weight": 0,
|
|
2470
|
+
"actions": [
|
|
2471
|
+
{
|
|
2472
|
+
"args": {
|
|
2473
|
+
"api": {
|
|
2474
|
+
"url": "${context.rootUrl}/api/record/export/${objectName}",
|
|
2475
|
+
"method": "get",
|
|
2476
|
+
"messages": {},
|
|
2477
|
+
"requestAdaptor": requestAdaptor,
|
|
2478
|
+
"data": {
|
|
2479
|
+
"uiSchema": "${uiSchema}",
|
|
2480
|
+
"listName": "${listName}"
|
|
2481
|
+
},
|
|
2482
|
+
"headers": {
|
|
2483
|
+
"Authorization": "Bearer ${context.tenantId},${context.authToken}"
|
|
2484
|
+
}
|
|
2485
|
+
}
|
|
2486
|
+
},
|
|
2487
|
+
"actionType": "download"
|
|
2488
|
+
}
|
|
2489
|
+
]
|
|
2490
|
+
}
|
|
2491
|
+
}
|
|
2492
|
+
}]
|
|
2493
|
+
}
|
|
2494
|
+
};
|
|
2495
|
+
|
|
2063
2496
|
/*
|
|
2064
2497
|
* @Author: baozhoutao@steedos.com
|
|
2065
2498
|
* @Date: 2022-11-01 15:53:07
|
|
@@ -2072,19 +2505,19 @@
|
|
|
2072
2505
|
getStandardNew: async (uiSchema, ctx)=>{
|
|
2073
2506
|
return {
|
|
2074
2507
|
type: 'amis_button',
|
|
2075
|
-
amis_schema: await getSchema$
|
|
2508
|
+
amis_schema: await getSchema$5(uiSchema)
|
|
2076
2509
|
}
|
|
2077
2510
|
},
|
|
2078
2511
|
getStandardEdit: async (uiSchema, ctx)=>{
|
|
2079
2512
|
return {
|
|
2080
2513
|
type: 'amis_button',
|
|
2081
|
-
amis_schema: await getSchema$
|
|
2514
|
+
amis_schema: await getSchema$4(uiSchema, ctx)
|
|
2082
2515
|
}
|
|
2083
2516
|
},
|
|
2084
2517
|
getStandardDelete: async (uiSchema, ctx)=>{
|
|
2085
2518
|
return {
|
|
2086
2519
|
type: 'amis_button',
|
|
2087
|
-
amis_schema: await getSchema$
|
|
2520
|
+
amis_schema: await getSchema$3(uiSchema)
|
|
2088
2521
|
}
|
|
2089
2522
|
},
|
|
2090
2523
|
getStandardDeleteMany: async (uiSchema, ctx)=>{
|
|
@@ -2106,7 +2539,7 @@
|
|
|
2106
2539
|
"items": [
|
|
2107
2540
|
{
|
|
2108
2541
|
"position": "top-right",
|
|
2109
|
-
"body": "
|
|
2542
|
+
"body": i18next__default["default"].t('frontend_delete_many_selected_required')
|
|
2110
2543
|
}
|
|
2111
2544
|
]
|
|
2112
2545
|
}
|
|
@@ -2120,10 +2553,16 @@
|
|
|
2120
2553
|
getStandardImportData: async (uiSchema, ctx)=>{
|
|
2121
2554
|
return {
|
|
2122
2555
|
type: 'amis_button',
|
|
2123
|
-
amis_schema: await getSchema$
|
|
2556
|
+
amis_schema: await getSchema$2()
|
|
2124
2557
|
}
|
|
2125
2558
|
},
|
|
2126
2559
|
getStandardOpenView: async (uiSchema, ctx)=>{
|
|
2560
|
+
return {
|
|
2561
|
+
type: 'amis_button',
|
|
2562
|
+
amis_schema: await getSchema$1()
|
|
2563
|
+
}
|
|
2564
|
+
},
|
|
2565
|
+
getStandardExportExcel: async (uiSchema, ctx)=>{
|
|
2127
2566
|
return {
|
|
2128
2567
|
type: 'amis_button',
|
|
2129
2568
|
amis_schema: await getSchema()
|
|
@@ -2388,6 +2827,16 @@
|
|
|
2388
2827
|
}
|
|
2389
2828
|
}
|
|
2390
2829
|
|
|
2830
|
+
if(button.name === 'standard_export_excel'){
|
|
2831
|
+
return {
|
|
2832
|
+
label: button.label,
|
|
2833
|
+
name: button.name,
|
|
2834
|
+
on: button.on,
|
|
2835
|
+
sort: button.sort,
|
|
2836
|
+
...await StandardButtons.getStandardExportExcel(uiSchema, ctx)
|
|
2837
|
+
}
|
|
2838
|
+
}
|
|
2839
|
+
|
|
2391
2840
|
if(button.name === 'standard_open_view'){
|
|
2392
2841
|
return {
|
|
2393
2842
|
label: button.label,
|
|
@@ -2882,7 +3331,7 @@
|
|
|
2882
3331
|
if(_.isEmpty(defaultSearchableFields) && data.uiSchema){
|
|
2883
3332
|
defaultSearchableFields = _.map(
|
|
2884
3333
|
_.sortBy(_.filter(_.values(data.uiSchema.fields), (field) => {
|
|
2885
|
-
return field.
|
|
3334
|
+
return field.filterable;
|
|
2886
3335
|
}), "sort_no"),
|
|
2887
3336
|
"name"
|
|
2888
3337
|
);
|
|
@@ -3049,7 +3498,7 @@
|
|
|
3049
3498
|
{
|
|
3050
3499
|
"type": "button",
|
|
3051
3500
|
"id": btnSearchId,
|
|
3052
|
-
"label": "
|
|
3501
|
+
"label": i18next__default["default"].t('frontend_fields_filter_button_search'),
|
|
3053
3502
|
"icon": "fa fa-search",
|
|
3054
3503
|
// "visibleOn": "this.filterFormSearchableFields && this.filterFormSearchableFields.length",
|
|
3055
3504
|
"onEvent": {
|
|
@@ -3065,7 +3514,7 @@
|
|
|
3065
3514
|
},
|
|
3066
3515
|
{
|
|
3067
3516
|
"type": "button",
|
|
3068
|
-
"label": "
|
|
3517
|
+
"label": i18next__default["default"].t('frontend_form_cancel'),
|
|
3069
3518
|
"name": "btn_filter_form_cancel",
|
|
3070
3519
|
// "visibleOn": "this.filterFormSearchableFields && this.filterFormSearchableFields.length",
|
|
3071
3520
|
"onEvent": {
|
|
@@ -3081,7 +3530,7 @@
|
|
|
3081
3530
|
},
|
|
3082
3531
|
{
|
|
3083
3532
|
"type": "button",
|
|
3084
|
-
"label": "
|
|
3533
|
+
"label": i18next__default["default"].t('frontend_fields_filter_button_settings'),
|
|
3085
3534
|
"onEvent": {
|
|
3086
3535
|
"click": {
|
|
3087
3536
|
"actions": [
|
|
@@ -3090,7 +3539,7 @@
|
|
|
3090
3539
|
"dialog": {
|
|
3091
3540
|
"type": "dialog",
|
|
3092
3541
|
"size": "md",
|
|
3093
|
-
"title": "
|
|
3542
|
+
"title": i18next__default["default"].t('frontend_fields_filter_button_settings'),
|
|
3094
3543
|
"body": [
|
|
3095
3544
|
{
|
|
3096
3545
|
"type": "form",
|
|
@@ -3158,7 +3607,7 @@
|
|
|
3158
3607
|
"actions": [
|
|
3159
3608
|
{
|
|
3160
3609
|
"type": "button",
|
|
3161
|
-
"label": "
|
|
3610
|
+
"label": i18next__default["default"].t('frontend_form_cancel'),
|
|
3162
3611
|
"onEvent": {
|
|
3163
3612
|
"click": {
|
|
3164
3613
|
"actions": [
|
|
@@ -3174,7 +3623,7 @@
|
|
|
3174
3623
|
},
|
|
3175
3624
|
{
|
|
3176
3625
|
"type": "button",
|
|
3177
|
-
"label": "
|
|
3626
|
+
"label": i18next__default["default"].t('frontend_form_confirm'),
|
|
3178
3627
|
"onEvent": {
|
|
3179
3628
|
"click": {
|
|
3180
3629
|
"actions": [
|
|
@@ -3691,7 +4140,7 @@
|
|
|
3691
4140
|
"className": "bg-white p-2 rounded border-gray-300 text-gray-500",
|
|
3692
4141
|
"tooltipPlacement": "bottom",
|
|
3693
4142
|
"visibleOn": "${!isLookup && global.user.is_space_admin}",
|
|
3694
|
-
"tooltip": "
|
|
4143
|
+
"tooltip": i18next__default["default"].t('frontend_export_excel'),
|
|
3695
4144
|
"onEvent": {
|
|
3696
4145
|
"click": {
|
|
3697
4146
|
"weight": 0,
|
|
@@ -3777,7 +4226,7 @@
|
|
|
3777
4226
|
const getNewListviewButtonSchema = ()=>{
|
|
3778
4227
|
return {
|
|
3779
4228
|
"type": "button",
|
|
3780
|
-
"label": "
|
|
4229
|
+
"label": i18next__default["default"].t('frontend_listview_control_new_label'),
|
|
3781
4230
|
"onEvent": {
|
|
3782
4231
|
"click": {
|
|
3783
4232
|
"weight": 0,
|
|
@@ -3785,7 +4234,7 @@
|
|
|
3785
4234
|
{
|
|
3786
4235
|
"dialog": {
|
|
3787
4236
|
"type": "dialog",
|
|
3788
|
-
"title": "
|
|
4237
|
+
"title": i18next__default["default"].t('frontend_listview_control_new_title'),
|
|
3789
4238
|
"data": {
|
|
3790
4239
|
//"&":"$$",2.7、2.9、3.0在此处失效
|
|
3791
4240
|
"all": "${uiSchema.list_views.all}",
|
|
@@ -3827,8 +4276,8 @@
|
|
|
3827
4276
|
}
|
|
3828
4277
|
},
|
|
3829
4278
|
"messages": {
|
|
3830
|
-
"success": "
|
|
3831
|
-
"failed": "
|
|
4279
|
+
"success": i18next__default["default"].t('frontend_listview_control_new_message_success'),
|
|
4280
|
+
"failed": i18next__default["default"].t('frontend_listview_control_new_message_failed')
|
|
3832
4281
|
},
|
|
3833
4282
|
}
|
|
3834
4283
|
],
|
|
@@ -3927,7 +4376,7 @@
|
|
|
3927
4376
|
const getCopyListviewButtonSchema = ()=>{
|
|
3928
4377
|
return {
|
|
3929
4378
|
"type": "button",
|
|
3930
|
-
"label": "
|
|
4379
|
+
"label": i18next__default["default"].t('frontend_listview_control_clone_label'),
|
|
3931
4380
|
"onEvent": {
|
|
3932
4381
|
"click": {
|
|
3933
4382
|
"weight": 0,
|
|
@@ -3935,7 +4384,7 @@
|
|
|
3935
4384
|
{
|
|
3936
4385
|
"dialog": {
|
|
3937
4386
|
"type": "dialog",
|
|
3938
|
-
"title": "
|
|
4387
|
+
"title": i18next__default["default"].t('frontend_listview_control_clone_title'),
|
|
3939
4388
|
"data": {
|
|
3940
4389
|
//"&":"$$",2.7、2.9、3.0在此处失效
|
|
3941
4390
|
"listName": "${listName}",
|
|
@@ -3955,7 +4404,7 @@
|
|
|
3955
4404
|
"defaultData": {
|
|
3956
4405
|
"&": "${list_view}",
|
|
3957
4406
|
"name":"",
|
|
3958
|
-
"label": "${list_view.label}
|
|
4407
|
+
"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
4408
|
"shared":false
|
|
3960
4409
|
},
|
|
3961
4410
|
"fieldsExtend": fieldsExtend$3(),
|
|
@@ -4072,7 +4521,7 @@
|
|
|
4072
4521
|
const getRenameListviewButtonSchema = ()=>{
|
|
4073
4522
|
return {
|
|
4074
4523
|
"type": "button",
|
|
4075
|
-
"label": "
|
|
4524
|
+
"label": i18next__default["default"].t('frontend_listview_control_rename_label'),
|
|
4076
4525
|
"disabledOn": "!((global.user.is_space_admin || global.userId == uiSchema.list_views[listName].owner) && !!uiSchema.list_views[listName].owner)",
|
|
4077
4526
|
"onEvent": {
|
|
4078
4527
|
"click": {
|
|
@@ -4081,7 +4530,7 @@
|
|
|
4081
4530
|
{
|
|
4082
4531
|
"dialog": {
|
|
4083
4532
|
"type": "dialog",
|
|
4084
|
-
"title": "
|
|
4533
|
+
"title": i18next__default["default"].t('frontend_listview_control_rename_title'),
|
|
4085
4534
|
"data": {
|
|
4086
4535
|
"targetObjectName": "${objectName}",
|
|
4087
4536
|
"recordId": "${uiSchema.list_views[listName]._id}",
|
|
@@ -4131,7 +4580,7 @@
|
|
|
4131
4580
|
const getSetListviewShareButtonSchema = ()=>{
|
|
4132
4581
|
return {
|
|
4133
4582
|
"type": "button",
|
|
4134
|
-
"label": "
|
|
4583
|
+
"label": i18next__default["default"].t('frontend_listview_control_share'),
|
|
4135
4584
|
"disabledOn": "!(global.user.is_space_admin && !!uiSchema.list_views[listName].owner)",
|
|
4136
4585
|
"onEvent": {
|
|
4137
4586
|
"click": {
|
|
@@ -4140,7 +4589,7 @@
|
|
|
4140
4589
|
{
|
|
4141
4590
|
"dialog": {
|
|
4142
4591
|
"type": "dialog",
|
|
4143
|
-
"title": "
|
|
4592
|
+
"title": i18next__default["default"].t('frontend_listview_control_share'),
|
|
4144
4593
|
"data": {
|
|
4145
4594
|
"recordId": "${uiSchema.list_views[listName]._id}",
|
|
4146
4595
|
"context": "${context}"
|
|
@@ -4175,7 +4624,7 @@
|
|
|
4175
4624
|
const getSetListviewFiltersButtonSchema = ()=>{
|
|
4176
4625
|
return {
|
|
4177
4626
|
"type": "button",
|
|
4178
|
-
"label": "
|
|
4627
|
+
"label": i18next__default["default"].t('frontend_listview_control_filters'),
|
|
4179
4628
|
"disabledOn": "!((global.user.is_space_admin || global.userId == uiSchema.list_views[listName].owner) && !!uiSchema.list_views[listName].owner)",
|
|
4180
4629
|
"onEvent": {
|
|
4181
4630
|
"click": {
|
|
@@ -4184,7 +4633,7 @@
|
|
|
4184
4633
|
{
|
|
4185
4634
|
"dialog": {
|
|
4186
4635
|
"type": "dialog",
|
|
4187
|
-
"title": "
|
|
4636
|
+
"title": i18next__default["default"].t('frontend_listview_control_filters'),
|
|
4188
4637
|
"data": {
|
|
4189
4638
|
"targetObjectName": "${objectName}",
|
|
4190
4639
|
"recordId": "${uiSchema.list_views[listName]._id}",
|
|
@@ -4305,7 +4754,7 @@
|
|
|
4305
4754
|
"visible_on": "true",
|
|
4306
4755
|
"amis": {
|
|
4307
4756
|
"type": "condition-builder",
|
|
4308
|
-
"label": "
|
|
4757
|
+
"label": i18next__default["default"].t('frontend_listview_control_filters_fields_extend'),
|
|
4309
4758
|
"source": {
|
|
4310
4759
|
"method": "get",
|
|
4311
4760
|
"url": "${context.rootUrl}/service/api/amis-metadata-listviews/getFilterFields?objectName=${targetObjectName}",
|
|
@@ -4322,7 +4771,7 @@
|
|
|
4322
4771
|
const getSetListviewColumnsButtonSchema = ()=>{
|
|
4323
4772
|
return {
|
|
4324
4773
|
"type": "button",
|
|
4325
|
-
"label": "
|
|
4774
|
+
"label": i18next__default["default"].t('frontend_listview_control_columns'),
|
|
4326
4775
|
"disabledOn": "!((global.user.is_space_admin || global.userId == uiSchema.list_views[listName].owner) && !!uiSchema.list_views[listName].owner)",
|
|
4327
4776
|
"onEvent": {
|
|
4328
4777
|
"click": {
|
|
@@ -4332,7 +4781,7 @@
|
|
|
4332
4781
|
"args": {},
|
|
4333
4782
|
"dialog": {
|
|
4334
4783
|
"type": "dialog",
|
|
4335
|
-
"title": "
|
|
4784
|
+
"title": i18next__default["default"].t('frontend_listview_control_columns'),
|
|
4336
4785
|
"data": {
|
|
4337
4786
|
//"&":"$$",2.7、2.9、3.0在此处失效
|
|
4338
4787
|
"targetObjectName": "${objectName}",
|
|
@@ -4402,7 +4851,7 @@
|
|
|
4402
4851
|
}
|
|
4403
4852
|
},
|
|
4404
4853
|
"mobile_columns": {
|
|
4405
|
-
"group": "
|
|
4854
|
+
"group": i18next__default["default"].t('frontend_listview_control_columns_mobile_group'),
|
|
4406
4855
|
"amis": {
|
|
4407
4856
|
"type": "transfer",
|
|
4408
4857
|
"sortable": true,
|
|
@@ -4477,7 +4926,7 @@
|
|
|
4477
4926
|
const getSetListviewSortButtonSchema = ()=>{
|
|
4478
4927
|
return {
|
|
4479
4928
|
"type": "button",
|
|
4480
|
-
"label": "
|
|
4929
|
+
"label": i18next__default["default"].t('frontend_listview_control_sort'),
|
|
4481
4930
|
"disabledOn": "!((global.user.is_space_admin || global.userId == uiSchema.list_views[listName].owner) && !!uiSchema.list_views[listName].owner)",
|
|
4482
4931
|
"onEvent": {
|
|
4483
4932
|
"click": {
|
|
@@ -4486,7 +4935,7 @@
|
|
|
4486
4935
|
{
|
|
4487
4936
|
"dialog": {
|
|
4488
4937
|
"type": "dialog",
|
|
4489
|
-
"title": "
|
|
4938
|
+
"title": i18next__default["default"].t('frontend_listview_control_sort'),
|
|
4490
4939
|
"data": {
|
|
4491
4940
|
//"&":"$$",2.7、2.9、3.0在此处失效
|
|
4492
4941
|
"targetObjectName": "${objectName}",
|
|
@@ -4602,9 +5051,9 @@
|
|
|
4602
5051
|
const getDeleteListviewButtonSchema = ()=>{
|
|
4603
5052
|
return {
|
|
4604
5053
|
"type": "button",
|
|
4605
|
-
"label": "
|
|
5054
|
+
"label": i18next__default["default"].t('frontend_listview_control_delete_label'),
|
|
4606
5055
|
"disabledOn": "!((global.user.is_space_admin || global.userId == uiSchema.list_views[listName].owner) && !!uiSchema.list_views[listName].owner)",
|
|
4607
|
-
"confirmText": "
|
|
5056
|
+
"confirmText": i18next__default["default"].t('frontend_listview_control_delete_confirm_text'),
|
|
4608
5057
|
"onEvent": {
|
|
4609
5058
|
"click": {
|
|
4610
5059
|
"actions": [
|
|
@@ -4623,7 +5072,7 @@
|
|
|
4623
5072
|
"recordId": "${uiSchema.list_views[listName]._id}"
|
|
4624
5073
|
},
|
|
4625
5074
|
"messages": {
|
|
4626
|
-
"success": "
|
|
5075
|
+
"success": i18next__default["default"].t('frontend_listview_control_delete_message_success')
|
|
4627
5076
|
},
|
|
4628
5077
|
"requestAdaptor": requestAdaptor(),
|
|
4629
5078
|
"adaptor": adaptor(),
|
|
@@ -4670,13 +5119,13 @@
|
|
|
4670
5119
|
"type": "dropdown-button",
|
|
4671
5120
|
"trigger": "click",
|
|
4672
5121
|
"icon": "fa fa-cog",
|
|
4673
|
-
"tooltip": "
|
|
5122
|
+
"tooltip": i18next__default["default"].t('frontend_button_listview_control_tooltip'),
|
|
4674
5123
|
"btnClassName": "antd-Button--iconOnly bg-white p-2 rounded border-gray-300 text-gray-500",
|
|
4675
5124
|
"align": "right",
|
|
4676
5125
|
"visibleOn": "${!isLookup}",
|
|
4677
5126
|
"buttons": [
|
|
4678
5127
|
{
|
|
4679
|
-
"label": "
|
|
5128
|
+
"label": i18next__default["default"].t('frontend_button_listview_control_label'),
|
|
4680
5129
|
"children": [
|
|
4681
5130
|
getNewListviewButtonSchema(),
|
|
4682
5131
|
getCopyListviewButtonSchema(),
|
|
@@ -4697,30 +5146,30 @@
|
|
|
4697
5146
|
let buttons = [
|
|
4698
5147
|
{
|
|
4699
5148
|
"type": "button",
|
|
4700
|
-
"label": "
|
|
5149
|
+
"label": i18next__default["default"].t('frontend_display_type_is_table'),
|
|
4701
5150
|
"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
5151
|
"rightIcon": displayAs != 'split' ? "fa fa-check" : null,
|
|
4703
5152
|
"rightIconClassName": "m-l-sm"
|
|
4704
5153
|
},
|
|
4705
5154
|
{
|
|
4706
5155
|
"type": "button",
|
|
4707
|
-
"label": "
|
|
5156
|
+
"label": i18next__default["default"].t('frontend_display_type_is_split'),
|
|
4708
5157
|
"onClick": "const url = document.location.pathname + '?display=split'; props.env.jumpTo(url);",
|
|
4709
5158
|
"rightIcon": displayAs === 'split' ? "fa fa-check" : null,
|
|
4710
5159
|
"rightIconClassName": "m-l-sm"
|
|
4711
5160
|
}
|
|
4712
5161
|
];
|
|
4713
|
-
const displayAsLabel = displayAs === 'split'? "
|
|
5162
|
+
const displayAsLabel = displayAs === 'split'? i18next__default["default"].t('frontend_display_type_is_split') : i18next__default["default"].t('frontend_display_type_is_table');
|
|
4714
5163
|
return {
|
|
4715
5164
|
"type": "dropdown-button",
|
|
4716
5165
|
"icon": "fa fa-table-columns",
|
|
4717
|
-
"tooltip":
|
|
5166
|
+
"tooltip": `${i18next__default["default"].t('frontend_display_as')} ${displayAsLabel}`,
|
|
4718
5167
|
"btnClassName": "antd-Button--iconOnly bg-white p-2 rounded border-gray-300 text-gray-500",
|
|
4719
5168
|
"align": "right",
|
|
4720
5169
|
"visibleOn": "${window:innerWidth > 768 && !!!isLookup}",
|
|
4721
5170
|
"buttons": [
|
|
4722
5171
|
{
|
|
4723
|
-
"label": "
|
|
5172
|
+
"label": i18next__default["default"].t('frontend_display_as'),
|
|
4724
5173
|
"children": buttons
|
|
4725
5174
|
}
|
|
4726
5175
|
]
|
|
@@ -4788,13 +5237,13 @@ else{
|
|
|
4788
5237
|
...(headerToolbarItems || []),
|
|
4789
5238
|
hiddenCount ? {} :{
|
|
4790
5239
|
"type": "tpl",
|
|
4791
|
-
"tpl": "${count}
|
|
5240
|
+
"tpl": "${count} " + i18next__default["default"].t('frontend_record_sum')
|
|
4792
5241
|
},
|
|
4793
5242
|
{
|
|
4794
5243
|
// "type": "reload",//不可以直接使用reload,因为它不会设置页码到第一页
|
|
4795
5244
|
"type": "button",
|
|
4796
5245
|
"align": "right",
|
|
4797
|
-
"tooltip": "
|
|
5246
|
+
"tooltip": i18next__default["default"].t('frontend_button_reload_tooltip'),
|
|
4798
5247
|
"className": "bg-white p-2 rounded border-gray-300 text-gray-500",
|
|
4799
5248
|
"label": "",
|
|
4800
5249
|
"icon": "fa fa-sync",
|
|
@@ -4814,7 +5263,7 @@ else{
|
|
|
4814
5263
|
"label": "",
|
|
4815
5264
|
"icon": "fa fa-search",
|
|
4816
5265
|
"type": "button",
|
|
4817
|
-
"tooltip": "
|
|
5266
|
+
"tooltip": i18next__default["default"].t('frontend_button_search_tooltip'),
|
|
4818
5267
|
"badge": {
|
|
4819
5268
|
"offset": [
|
|
4820
5269
|
-5,
|
|
@@ -4854,12 +5303,12 @@ else{
|
|
|
4854
5303
|
// },
|
|
4855
5304
|
hiddenCount ? {} : {
|
|
4856
5305
|
"type": "tpl",
|
|
4857
|
-
"tpl": "${count}
|
|
5306
|
+
"tpl": "${count} " + i18next__default["default"].t('frontend_record_sum')
|
|
4858
5307
|
},
|
|
4859
5308
|
{
|
|
4860
5309
|
"type": "reload",
|
|
4861
5310
|
"align": "right",
|
|
4862
|
-
"tooltip": "
|
|
5311
|
+
"tooltip": i18next__default["default"].t('frontend_button_reload_tooltip'),
|
|
4863
5312
|
"tooltipPlacement": "bottom",
|
|
4864
5313
|
"className": "bg-white p-2 rounded border-gray-300 text-gray-500"
|
|
4865
5314
|
},
|
|
@@ -4867,7 +5316,7 @@ else{
|
|
|
4867
5316
|
filterVisible ? {
|
|
4868
5317
|
"label": "",
|
|
4869
5318
|
"icon": "fa fa-search",
|
|
4870
|
-
"tooltip": "
|
|
5319
|
+
"tooltip": i18next__default["default"].t('frontend_button_search_tooltip'),
|
|
4871
5320
|
"tooltipPlacement": "bottom",
|
|
4872
5321
|
"type": "button",
|
|
4873
5322
|
"align": "right",
|
|
@@ -5487,7 +5936,7 @@ else{
|
|
|
5487
5936
|
pickerSchema.headerToolbar = getObjectHeaderToolbar(refObjectConfig, ctx.formFactor, { headerToolbarItems });
|
|
5488
5937
|
const isAllowCreate = refObjectConfig.permissions.allowCreate;
|
|
5489
5938
|
if (isAllowCreate) {
|
|
5490
|
-
const new_button = await getSchema$
|
|
5939
|
+
const new_button = await getSchema$5(refObjectConfig, { appId: ctx.appId, objectName: refObjectConfig.name, formFactor: ctx.formFactor });
|
|
5491
5940
|
new_button.align = "right";
|
|
5492
5941
|
pickerSchema.headerToolbar.push(new_button);
|
|
5493
5942
|
}
|
|
@@ -7370,7 +7819,7 @@ else{
|
|
|
7370
7819
|
}
|
|
7371
7820
|
return {
|
|
7372
7821
|
type: 'operation',
|
|
7373
|
-
label: '
|
|
7822
|
+
label: i18next__default["default"].t('frontend_ercord_operation'),
|
|
7374
7823
|
fixed: 'right',
|
|
7375
7824
|
labelClassName: 'text-center',
|
|
7376
7825
|
className: 'text-center steedos-listview-operation w-20',
|
|
@@ -8419,7 +8868,7 @@ else{
|
|
|
8419
8868
|
// ObjectForm会认作用域下的变量值
|
|
8420
8869
|
// TODO: 待组件支持initValues属性后应该改掉,不应该通过data直接传值
|
|
8421
8870
|
// TODO: 全天事件属性传入doc了但是没有生效,需要手动在ObjectForm中勾选全天事件
|
|
8422
|
-
const title = "
|
|
8871
|
+
const title = "${i18next__default["default"].t('frontend_form_new')} ${objectSchema.label}";
|
|
8423
8872
|
doAction(
|
|
8424
8873
|
{
|
|
8425
8874
|
"actionType": "dialog",
|
|
@@ -8453,33 +8902,6 @@ else{
|
|
|
8453
8902
|
});
|
|
8454
8903
|
`;
|
|
8455
8904
|
|
|
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
8905
|
const recordId = "${event.id}";
|
|
8484
8906
|
const recordPermissionsApi = getCalendarRecordPermissionsApi(objectSchema, recordId);
|
|
8485
8907
|
const recordSaveApi = getCalendarRecordSaveApi(objectSchema, calendarOptions);
|
|
@@ -8525,11 +8947,10 @@ else{
|
|
|
8525
8947
|
"weight": 0,
|
|
8526
8948
|
"actions": [
|
|
8527
8949
|
{
|
|
8528
|
-
"
|
|
8950
|
+
"actionType": "link",
|
|
8529
8951
|
"args": {
|
|
8530
|
-
|
|
8531
|
-
|
|
8532
|
-
"script": onEventClickScript
|
|
8952
|
+
"link": "/app/${appId}/${objectName}/view/${event.id}"
|
|
8953
|
+
}
|
|
8533
8954
|
}
|
|
8534
8955
|
]
|
|
8535
8956
|
},
|
|
@@ -8559,7 +8980,7 @@ else{
|
|
|
8559
8980
|
"expression": "!event.data.editable",
|
|
8560
8981
|
"args": {
|
|
8561
8982
|
"msgType": "error",
|
|
8562
|
-
"msg": "
|
|
8983
|
+
"msg": i18next__default["default"].t('frontend_message_no_permission_to_edit'),
|
|
8563
8984
|
"position": "top-center"
|
|
8564
8985
|
}
|
|
8565
8986
|
},
|
|
@@ -8569,8 +8990,8 @@ else{
|
|
|
8569
8990
|
"args": {
|
|
8570
8991
|
"api": recordSaveApi,
|
|
8571
8992
|
"messages": {
|
|
8572
|
-
"success": objectSchema.label + "
|
|
8573
|
-
"failed": objectSchema.label + "
|
|
8993
|
+
"success": objectSchema.label + i18next__default["default"].t('frontend_message_modification_successful'),
|
|
8994
|
+
"failed": objectSchema.label + i18next__default["default"].t('frontend_message_modification_successful')
|
|
8574
8995
|
}
|
|
8575
8996
|
}
|
|
8576
8997
|
}
|
|
@@ -8642,7 +9063,12 @@ else{
|
|
|
8642
9063
|
"initialView": initialView,
|
|
8643
9064
|
"businessHours": businessHours,
|
|
8644
9065
|
...config,
|
|
8645
|
-
"onEvent": onEvent
|
|
9066
|
+
"onEvent": onEvent,
|
|
9067
|
+
"views":{
|
|
9068
|
+
listWeek: {
|
|
9069
|
+
buttonText: i18next__default["default"].t('frontend_calendar_listWeek')
|
|
9070
|
+
}
|
|
9071
|
+
}
|
|
8646
9072
|
};
|
|
8647
9073
|
return amisSchema;
|
|
8648
9074
|
}
|
|
@@ -8661,7 +9087,7 @@ else{
|
|
|
8661
9087
|
|
|
8662
9088
|
___namespace.forEach(formFields, (field) => {
|
|
8663
9089
|
if (!field.group || field.group == 'null' || field.group == '-')
|
|
8664
|
-
field.group = '
|
|
9090
|
+
field.group = i18next__default["default"].t('frontend_field_group_generalization');
|
|
8665
9091
|
const fieldName = field.name;
|
|
8666
9092
|
let isObjectField = /\w+\.\w+/.test(fieldName);
|
|
8667
9093
|
if (field.type == 'grid' || field.type == 'object') {
|
|
@@ -8826,7 +9252,7 @@ else{
|
|
|
8826
9252
|
"level": "danger",
|
|
8827
9253
|
"label": "批量删除",
|
|
8828
9254
|
"actionType": "ajax",
|
|
8829
|
-
"confirmText": "
|
|
9255
|
+
"confirmText": i18next__default["default"].t('frontend_delete_many_confirm_text'),
|
|
8830
9256
|
"className": "hidden",
|
|
8831
9257
|
"id": "batchDelete",
|
|
8832
9258
|
"api": getBatchDelete(objectSchema.name),
|
|
@@ -10105,7 +10531,7 @@ else{
|
|
|
10105
10531
|
const uiSchema = await getUISchema(objectName);
|
|
10106
10532
|
const relatedLists = await getObjectRelatedList(objectName);
|
|
10107
10533
|
const detailed = {
|
|
10108
|
-
"title": "
|
|
10534
|
+
"title": i18next__default["default"].t('frontend_record_detail_tab_detailed'),
|
|
10109
10535
|
"className": "px-0 py-4",
|
|
10110
10536
|
"body": [
|
|
10111
10537
|
{
|
|
@@ -10120,7 +10546,7 @@ else{
|
|
|
10120
10546
|
"id": "u:5d4e7e3f6ecc"
|
|
10121
10547
|
};
|
|
10122
10548
|
const related = {
|
|
10123
|
-
"title": "
|
|
10549
|
+
"title": i18next__default["default"].t('frontend_record_detail_tab_related'),
|
|
10124
10550
|
"className": "px-0 pt-4",
|
|
10125
10551
|
"body": [
|
|
10126
10552
|
{
|
|
@@ -13072,6 +13498,10 @@ else{
|
|
|
13072
13498
|
};
|
|
13073
13499
|
};
|
|
13074
13500
|
|
|
13501
|
+
Object.defineProperty(exports, 'i18next', {
|
|
13502
|
+
enumerable: true,
|
|
13503
|
+
get: function () { return i18next__default["default"]; }
|
|
13504
|
+
});
|
|
13075
13505
|
exports.Field = index;
|
|
13076
13506
|
exports.Router = Router;
|
|
13077
13507
|
exports.absoluteUrl = absoluteUrl;
|