dtable-ui-component 5.3.1-beta1 → 6.0.0
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/lib/CheckboxEditor/index.css +20 -3
- package/lib/CheckboxEditor/index.js +35 -98
- package/lib/CheckboxFormatter/index.js +9 -6
- package/lib/CollaboratorEditor/index.css +35 -12
- package/lib/CollaboratorEditor/index.js +212 -18
- package/lib/CollaboratorEditor/{mb-collaborator-editor → mb-collaborator-editor-popover}/index.js +29 -26
- package/lib/CollaboratorEditor/pc-collaborator-editor-popover/index.js +97 -0
- package/lib/CollaboratorItem/index.css +1 -1
- package/lib/CollaboratorItem/index.js +2 -6
- package/lib/DTableFiltersPopover/utils/index.js +7 -1
- package/lib/DTableFiltersPopover/widgets/filter-calendar.js +2 -2
- package/lib/DTableSelect/index.js +1 -3
- package/lib/DateEditor/index.js +51 -14
- package/lib/DateEditor/pc-date-editor-popover.js +12 -145
- package/lib/Department-editor/department-single-select.js +1 -1
- package/lib/Department-editor/index.js +4 -3
- package/lib/DepartmentSingleSelectFormatter/index.js +1 -2
- package/lib/FileEditor/index.js +11 -244
- package/lib/FileEditor/pc-files-addition/index.js +1 -0
- package/lib/FileEditor/pc-files-addition/pc-file-uploaded-item.js +1 -0
- package/lib/FileEditor/pc-files-preview/index.js +1 -0
- package/lib/FileEditor/pc-files-preview/pc-file-item-preview.js +1 -0
- package/lib/FileItemFormatter/assets/file/192/excel.png +0 -0
- package/lib/FileItemFormatter/assets/file/192/file.png +0 -0
- package/lib/FileItemFormatter/assets/file/192/music.png +0 -0
- package/lib/FileItemFormatter/assets/file/192/pdf.png +0 -0
- package/lib/FileItemFormatter/assets/file/192/pic.png +0 -0
- package/lib/FileItemFormatter/assets/file/192/ppt.png +0 -0
- package/lib/FileItemFormatter/assets/file/192/txt.png +0 -0
- package/lib/FileItemFormatter/assets/file/192/video.png +0 -0
- package/lib/FileItemFormatter/assets/file/192/word.png +0 -0
- package/lib/FileItemFormatter/assets/file/24/excel.png +0 -0
- package/lib/FileItemFormatter/assets/file/24/file.png +0 -0
- package/lib/FileItemFormatter/assets/file/24/music.png +0 -0
- package/lib/FileItemFormatter/assets/file/24/pdf.png +0 -0
- package/lib/FileItemFormatter/assets/file/24/pic.png +0 -0
- package/lib/FileItemFormatter/assets/file/24/ppt.png +0 -0
- package/lib/FileItemFormatter/assets/file/24/txt.png +0 -0
- package/lib/FileItemFormatter/assets/file/24/video.png +0 -0
- package/lib/FileItemFormatter/assets/file/24/word.png +0 -0
- package/lib/FileItemFormatter/assets/folder/folder-192.png +0 -0
- package/lib/FileItemFormatter/assets/folder/folder-24.png +0 -0
- package/lib/FileItemFormatter/index.js +20 -19
- package/lib/FileItemFormatter/utils.js +99 -0
- package/lib/FileUploader/index.js +14 -268
- package/lib/FormulaFormatter/index.js +1 -2
- package/lib/FormulaFormatter/utils.js +31 -0
- package/lib/LinkEditor/pc-link-editor-popover/index.js +1 -1
- package/lib/LongTextFormatter/index.js +4 -7
- package/lib/MultipleSelectEditor/index.css +9 -0
- package/lib/MultipleSelectEditor/index.js +177 -16
- package/lib/NumberEditor/index.js +77 -64
- package/lib/RoleStatusEditor/index.js +5 -4
- package/lib/{RowExpandFormatter/RowExpandEmailFormatter → RowExpandEmailFormatter}/index.css +1 -1
- package/lib/{RowExpandFormatter/RowExpandEmailFormatter → RowExpandEmailFormatter}/index.js +1 -1
- package/lib/{RowExpandFormatter/RowExpandFileFormatter → RowExpandFileFormatter}/index.css +6 -6
- package/lib/{RowExpandFormatter/RowExpandFileFormatter → RowExpandFileFormatter}/index.js +1 -3
- package/lib/{RowExpandFormatter/RowExpandFileFormatter → RowExpandFileFormatter}/row-expand-file-item-formatter.js +11 -10
- package/lib/RowExpandFormatter/index.css +0 -26
- package/lib/RowExpandFormatter/index.js +100 -84
- package/lib/{RowExpandFormatter/RowExpandFormulaFormatter → RowExpandFormulaFormatter}/index.js +10 -11
- package/lib/{RowExpandFormatter/RowExpandImageFormatter → RowExpandImageFormatter}/index.css +6 -6
- package/lib/{RowExpandFormatter/RowExpandImageFormatter → RowExpandImageFormatter}/index.js +1 -1
- package/lib/{RowExpandFormatter/RowExpandImageFormatter → RowExpandImageFormatter}/row-expand-image-item-formatter.js +3 -3
- package/lib/{RowExpandFormatter/RowExpandLinkFormatter → RowExpandLinkFormatter}/collaborator-item-formatter.js +1 -1
- package/lib/{RowExpandFormatter/RowExpandLinkFormatter → RowExpandLinkFormatter}/index.js +5 -5
- package/lib/{RowExpandFormatter/RowExpandLinkFormatter → RowExpandLinkFormatter}/utils.js +1 -1
- package/lib/{RowExpandFormatter/RowExpandRateFormatter → RowExpandRateFormatter}/index.css +1 -1
- package/lib/RowExpandUrlFormatter/index.css +1 -0
- package/lib/{RowExpandFormatter/RowExpandUrlFormatter → RowExpandUrlFormatter}/index.js +3 -4
- package/lib/SingleSelectEditor/index.css +14 -0
- package/lib/SingleSelectEditor/index.js +156 -16
- package/lib/TextEditor/index.js +42 -113
- package/lib/constants/index.js +2 -34
- package/lib/css/cell-editor.css +2 -18
- package/lib/index.js +46 -74
- package/lib/lang/index.js +14 -16
- package/lib/locals/de.js +103 -0
- package/lib/locals/en.js +104 -0
- package/lib/locals/es.js +103 -0
- package/lib/locals/fr.js +103 -0
- package/lib/locals/pt.js +103 -0
- package/lib/locals/ru.js +103 -0
- package/lib/locals/zh-CN.js +104 -0
- package/lib/select-editor/index.js +6 -6
- package/lib/select-editor/{mb-select-editor → mb-select-editor-popover}/index.js +3 -3
- package/lib/select-editor/pc-select-editor-popover/index.css +71 -0
- package/lib/select-editor/pc-select-editor-popover/index.js +122 -0
- package/lib/toaster/toaster.js +4 -3
- package/lib/utils/editor-utils.js +6 -1
- package/lib/utils/url.js +8 -119
- package/lib/utils/utils.js +2 -89
- package/package.json +13 -14
- package/lib/CollaboratorEditor/pc-collaborator-editor/index.js +0 -257
- package/lib/DeleteTip/index.js +0 -50
- package/lib/DigitalSignEditor/constants.js +0 -7
- package/lib/DigitalSignEditor/index.css +0 -69
- package/lib/DigitalSignEditor/index.js +0 -182
- package/lib/DigitalSignEditor/service.js +0 -38
- package/lib/DigitalSignEditor/signature-board/index.css +0 -35
- package/lib/DigitalSignEditor/signature-board/index.js +0 -135
- package/lib/DigitalSignEditor/signature-board/signature-tool.js +0 -396
- package/lib/DigitalSignEditor/utils.js +0 -29
- package/lib/DurationEditor/index.js +0 -111
- package/lib/EmailEditor/index.js +0 -59
- package/lib/FileEditor/addition-previewer/index.css +0 -1
- package/lib/FileEditor/addition-previewer/index.js +0 -52
- package/lib/FileEditor/addition-previewer/local-file-addition/index.css +0 -1
- package/lib/FileEditor/addition-previewer/local-file-addition/index.js +0 -252
- package/lib/FileEditor/constants.js +0 -7
- package/lib/FileEditor/files-previewer/file-previewer/dropdown-menu.js +0 -74
- package/lib/FileEditor/files-previewer/file-previewer/file-name-editor/index.css +0 -5
- package/lib/FileEditor/files-previewer/file-previewer/file-name-editor/index.js +0 -77
- package/lib/FileEditor/files-previewer/file-previewer/index.css +0 -88
- package/lib/FileEditor/files-previewer/file-previewer/index.js +0 -167
- package/lib/FileEditor/files-previewer/index.css +0 -56
- package/lib/FileEditor/files-previewer/index.js +0 -277
- package/lib/FileEditor/index.css +0 -6
- package/lib/FileEditor/utils.js +0 -22
- package/lib/FileUploader/index.css +0 -9
- package/lib/GeolocationEditor/country-editor.js +0 -319
- package/lib/GeolocationEditor/index.css +0 -641
- package/lib/GeolocationEditor/index.js +0 -241
- package/lib/GeolocationEditor/location-editor.js +0 -368
- package/lib/GeolocationEditor/map-editor/index.js +0 -456
- package/lib/GeolocationEditor/map-editor/large-editor/index.css +0 -137
- package/lib/GeolocationEditor/map-editor/large-editor/index.js +0 -461
- package/lib/GeolocationEditor/map-editor-utils.js +0 -153
- package/lib/GeolocationEditor/map-selection-editor/index.js +0 -455
- package/lib/GeolocationEditor/map-selection-editor/large-editor/index.css +0 -1
- package/lib/GeolocationEditor/map-selection-editor/large-editor/index.js +0 -447
- package/lib/GeolocationEditor/parse-geolocation.js +0 -282
- package/lib/GeolocationEditor/province-city-editor.js +0 -292
- package/lib/GeolocationEditor/province-editor.js +0 -226
- package/lib/GeolocationEditor/selector-header-item.js +0 -28
- package/lib/GeolocationEditor/selector-list.js +0 -33
- package/lib/GeolocationEditor/with-ref.js +0 -27
- package/lib/ImageEditor/addition-previewer/image-link/index.css +0 -45
- package/lib/ImageEditor/addition-previewer/image-link/index.js +0 -73
- package/lib/ImageEditor/addition-previewer/index.css +0 -106
- package/lib/ImageEditor/addition-previewer/index.js +0 -63
- package/lib/ImageEditor/addition-previewer/local-image-addition/index.css +0 -125
- package/lib/ImageEditor/addition-previewer/local-image-addition/index.js +0 -254
- package/lib/ImageEditor/constants.js +0 -7
- package/lib/ImageEditor/images-previewer/image-preview/index.css +0 -59
- package/lib/ImageEditor/images-previewer/image-preview/index.js +0 -155
- package/lib/ImageEditor/images-previewer/index.css +0 -18
- package/lib/ImageEditor/images-previewer/index.js +0 -140
- package/lib/ImageEditor/index.css +0 -24
- package/lib/ImageEditor/index.js +0 -194
- package/lib/ImageThumbnail/index.css +0 -20
- package/lib/ImageThumbnail/index.js +0 -136
- package/lib/RowExpandDialog/body/index.css +0 -21
- package/lib/RowExpandDialog/body/index.js +0 -279
- package/lib/RowExpandDialog/column-content/index.css +0 -43
- package/lib/RowExpandDialog/column-content/index.js +0 -50
- package/lib/RowExpandDialog/constants.js +0 -114
- package/lib/RowExpandDialog/header/index.css +0 -31
- package/lib/RowExpandDialog/header/index.js +0 -33
- package/lib/RowExpandDialog/index.css +0 -24
- package/lib/RowExpandDialog/index.js +0 -272
- package/lib/RowExpandDialog/utils.js +0 -83
- package/lib/RowExpandEditor/RowExpandAddBtn/index.css +0 -22
- package/lib/RowExpandEditor/RowExpandAddBtn/index.js +0 -24
- package/lib/RowExpandEditor/RowExpandCheckboxEditor/index.css +0 -18
- package/lib/RowExpandEditor/RowExpandCheckboxEditor/index.js +0 -43
- package/lib/RowExpandEditor/RowExpandCollaboratorEditor/index.css +0 -5
- package/lib/RowExpandEditor/RowExpandCollaboratorEditor/index.js +0 -232
- package/lib/RowExpandEditor/RowExpandDateEditor/index.js +0 -130
- package/lib/RowExpandEditor/RowExpandDepartmentEditor/index.js +0 -129
- package/lib/RowExpandEditor/RowExpandDigitalSignEditor/index.css +0 -13
- package/lib/RowExpandEditor/RowExpandDigitalSignEditor/index.js +0 -208
- package/lib/RowExpandEditor/RowExpandDurationEditor/index.js +0 -105
- package/lib/RowExpandEditor/RowExpandEmailEditor/index.css +0 -2
- package/lib/RowExpandEditor/RowExpandEmailEditor/index.js +0 -125
- package/lib/RowExpandEditor/RowExpandFileEditor/index.css +0 -1
- package/lib/RowExpandEditor/RowExpandFileEditor/index.js +0 -146
- package/lib/RowExpandEditor/RowExpandGeolocationEditor/index.css +0 -17
- package/lib/RowExpandEditor/RowExpandGeolocationEditor/index.js +0 -165
- package/lib/RowExpandEditor/RowExpandImageEditor/index.css +0 -6
- package/lib/RowExpandEditor/RowExpandImageEditor/index.js +0 -170
- package/lib/RowExpandEditor/RowExpandLongTextEditor/index.css +0 -6
- package/lib/RowExpandEditor/RowExpandLongTextEditor/index.js +0 -124
- package/lib/RowExpandEditor/RowExpandMultipleSelectEditor/index.css +0 -44
- package/lib/RowExpandEditor/RowExpandMultipleSelectEditor/index.js +0 -224
- package/lib/RowExpandEditor/RowExpandNumberEditor/index.js +0 -105
- package/lib/RowExpandEditor/RowExpandRateEditor/index.css +0 -13
- package/lib/RowExpandEditor/RowExpandRateEditor/index.js +0 -152
- package/lib/RowExpandEditor/RowExpandSingleSelectorEditor/index.css +0 -58
- package/lib/RowExpandEditor/RowExpandSingleSelectorEditor/index.js +0 -192
- package/lib/RowExpandEditor/RowExpandTextEditor/index.css +0 -4
- package/lib/RowExpandEditor/RowExpandTextEditor/index.js +0 -127
- package/lib/RowExpandEditor/RowExpandUrlEditor/index.css +0 -31
- package/lib/RowExpandEditor/RowExpandUrlEditor/index.js +0 -130
- package/lib/RowExpandEditor/constants.js +0 -44
- package/lib/RowExpandEditor/index.css +0 -0
- package/lib/RowExpandEditor/index.js +0 -32
- package/lib/RowExpandFormatter/RowExpandDepartmentFormatter/index.js +0 -27
- package/lib/RowExpandFormatter/RowExpandUrlFormatter/index.css +0 -1
- package/lib/RowExpandFormatter/constants.js +0 -60
- package/lib/UploadProgress/index.js +0 -38
- package/lib/UrlEditor/index.js +0 -62
- package/lib/common/editor-base.js +0 -53
- package/lib/constants/file.js +0 -96
- package/lib/constants/key-codes.js +0 -109
- package/lib/hooks/index.js +0 -16
- package/lib/locales/de.json +0 -163
- package/lib/locales/en.json +0 -163
- package/lib/locales/es.json +0 -163
- package/lib/locales/fr.json +0 -163
- package/lib/locales/pt.json +0 -163
- package/lib/locales/ru.json +0 -163
- package/lib/locales/zh-CN.json +0 -163
- package/lib/select-editor/pc-select-editor/index.css +0 -85
- package/lib/select-editor/pc-select-editor/index.js +0 -290
- package/lib/utils/cell-comparer.js +0 -35
- package/lib/utils/cell.js +0 -55
- package/lib/utils/column-utils.js +0 -25
- package/lib/utils/get-event-transfer.js +0 -75
- package/lib/utils/object-utils.js +0 -61
- /package/lib/CollaboratorEditor/{mb-collaborator-editor → mb-collaborator-editor-popover}/index.css +0 -0
- /package/lib/CollaboratorEditor/{pc-collaborator-editor → pc-collaborator-editor-popover}/index.css +0 -0
- /package/lib/{RowExpandFormatter/RowExpandLinkFormatter → RowExpandLinkFormatter}/index.css +0 -0
- /package/lib/{RowExpandFormatter/RowExpandLinkFormatter → RowExpandLinkFormatter}/value-display-utils.js +0 -0
- /package/lib/{RowExpandFormatter/RowExpandRateFormatter → RowExpandRateFormatter}/index.js +0 -0
- /package/lib/select-editor/{mb-select-editor → mb-select-editor-popover}/index.css +0 -0
package/lib/locals/ru.js
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
/* eslint-disable quotes */
|
|
8
|
+
const ru = {
|
|
9
|
+
"Add_an_option": "Add an option",
|
|
10
|
+
"Search_option": "Search option",
|
|
11
|
+
"No_options_available": "Нет доступных вариантов.",
|
|
12
|
+
"Current_option": "Текущая опция",
|
|
13
|
+
"No_option": "Нет опций",
|
|
14
|
+
"Choose_an_option": "Choose an option",
|
|
15
|
+
"Add_a_collaborator": "Add a collaborator",
|
|
16
|
+
"Search_collaborator": "Найти сотрудников",
|
|
17
|
+
"No_collaborators_available": "Нет сотрудников.",
|
|
18
|
+
"Done": "Выполнено",
|
|
19
|
+
"Choose_a_collaborator": "Choose a collaborator",
|
|
20
|
+
"Please_input": "Please input",
|
|
21
|
+
"Please_select": "Please select",
|
|
22
|
+
"Clear": "Очистить",
|
|
23
|
+
"Are_you_sure_you_want_to_delete_this_image": "Are you sure you want to delete this image?",
|
|
24
|
+
"Are_you_sure_you_want_to_delete_this_file": "Are you sure you want to delete this file?",
|
|
25
|
+
"Cancel": "Отменить",
|
|
26
|
+
"Delete": "Удалить",
|
|
27
|
+
"Search_department": "Search department",
|
|
28
|
+
"No_departments_available": "No departments available",
|
|
29
|
+
"Current_user_department": "Current user's department",
|
|
30
|
+
"Current_user_department_and_sub": "Current user's department and sub-departments",
|
|
31
|
+
"Specific_departments": "Specific departments",
|
|
32
|
+
"Deleted_department": "Deleted department",
|
|
33
|
+
"Add_filter": "Добавить фильтр",
|
|
34
|
+
"Submit": "Сохранить",
|
|
35
|
+
"No_filters": "No filters",
|
|
36
|
+
"Select_an_option": "Выберите опцию",
|
|
37
|
+
"Add_collaborator": "Add collaborator",
|
|
38
|
+
"Add_a_creator": "Добавить создателя",
|
|
39
|
+
"Add_a_last_modifier": "Добавить последний изменивший",
|
|
40
|
+
"Invalid_filter": "Invalid filter",
|
|
41
|
+
"Search_column": "Search column",
|
|
42
|
+
"No_results": "Нет результатов.",
|
|
43
|
+
"Select_option(s)": "Выберите опцию(и)",
|
|
44
|
+
"contains": "содержит",
|
|
45
|
+
"does_not_contain": "не содержит",
|
|
46
|
+
"is": "является",
|
|
47
|
+
"is_not": "не является",
|
|
48
|
+
"equal": "=",
|
|
49
|
+
"not_equal": "≠",
|
|
50
|
+
"less": "<",
|
|
51
|
+
"greater": ">",
|
|
52
|
+
"less_or_equal": "≤",
|
|
53
|
+
"greater_or_equal": "≥",
|
|
54
|
+
"is_empty": "пусто",
|
|
55
|
+
"is_not_empty": "не пусто",
|
|
56
|
+
"include_me": "включить текущего пользователя",
|
|
57
|
+
"is_within": "внутри...",
|
|
58
|
+
"is_before": "раньше ...",
|
|
59
|
+
"is_after": "после ...",
|
|
60
|
+
"is_on_or_before": "сейчас или раньше ...",
|
|
61
|
+
"is_on_or_after": "сейчас или после ...",
|
|
62
|
+
"has_any_of": "имеет какой-либо из ...",
|
|
63
|
+
"has_all_of": "есть все ...",
|
|
64
|
+
"has_none_of": "не имеет ни одного из них...",
|
|
65
|
+
"is_exactly": "точно ...",
|
|
66
|
+
"is_current_user_ID": "это идентификатор текущего пользователя",
|
|
67
|
+
"Current_date": "Current date",
|
|
68
|
+
"Specific_date": "Specific date",
|
|
69
|
+
"x_days_before_current_date": "X days before current date",
|
|
70
|
+
"x_days_after_current_date": "X days after current date",
|
|
71
|
+
"is_any_of": "любой из ...",
|
|
72
|
+
"is_none_of": "кроме ...",
|
|
73
|
+
"today": "Сегодня",
|
|
74
|
+
"tomorrow": "завтра",
|
|
75
|
+
"yesterday": "вчера",
|
|
76
|
+
"one_week_ago": "неделю назад",
|
|
77
|
+
"one_week_from_now": "через неделю",
|
|
78
|
+
"one_month_ago": "месяц назад",
|
|
79
|
+
"one_month_from_now": "через месяц",
|
|
80
|
+
"number_of_days_ago": "количество дней назад",
|
|
81
|
+
"number_of_days_from_now": "количество дней с этого момента",
|
|
82
|
+
"exact_date": "точная дата",
|
|
83
|
+
"the_past_week": "прошлая неделя",
|
|
84
|
+
"the_past_month": "прошлый месяц",
|
|
85
|
+
"the_past_year": "прошлый год",
|
|
86
|
+
"the_next_week": "на следующей неделе",
|
|
87
|
+
"the_next_month": "в следующем месяце",
|
|
88
|
+
"the_next_year": "в следующем году",
|
|
89
|
+
"the_next_numbers_of_days": "через дней...",
|
|
90
|
+
"the_past_numbers_of_days": "до дней ...",
|
|
91
|
+
"this_week": "на этой неделе",
|
|
92
|
+
"this_month": "в этом месяце",
|
|
93
|
+
"this_year": "в этом году",
|
|
94
|
+
"last_week": "last week",
|
|
95
|
+
"last_month": "last month",
|
|
96
|
+
"last_year": "last year",
|
|
97
|
+
"URL_is_invalid": "URL-адрес недействителен",
|
|
98
|
+
"Select_department": "Select department",
|
|
99
|
+
"Default": "Нарушение обязательств",
|
|
100
|
+
"Custom": "Обычаи",
|
|
101
|
+
"Recently_used": "Недавно использованный"
|
|
102
|
+
};
|
|
103
|
+
var _default = exports.default = ru;
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
/* eslint-disable quotes */
|
|
8
|
+
const zh_CN = {
|
|
9
|
+
"Add_an_option": "添加一个选项",
|
|
10
|
+
"Search_option": "查找标签",
|
|
11
|
+
"No_options_available": "没有找到标签。",
|
|
12
|
+
"Current_option": "当前标签",
|
|
13
|
+
"No_option": "没有标签",
|
|
14
|
+
"Choose_an_option": "选择一个标签",
|
|
15
|
+
"Add_a_collaborator": "添加协作者",
|
|
16
|
+
"Search_collaborator": "搜索协作者",
|
|
17
|
+
"No_collaborators_available": "没有找到协作者",
|
|
18
|
+
"Done": "完成",
|
|
19
|
+
"Choose_a_collaborator": "选择一个协作者",
|
|
20
|
+
"Please_input": "请输入",
|
|
21
|
+
"Please_select": "请选择",
|
|
22
|
+
"Clear": "清空",
|
|
23
|
+
"Are_you_sure_you_want_to_delete_this_file": "你确定要删除此文件吗?",
|
|
24
|
+
"Are_you_sure_you_want_to_delete_this_image": "你确定要删除此图片吗?",
|
|
25
|
+
"Cancel": "取消",
|
|
26
|
+
"Delete": "删除",
|
|
27
|
+
"Search_department": "查找部门",
|
|
28
|
+
"No_departments_available": "没有可用的部门",
|
|
29
|
+
"Current_user_department": "当前用户的部门",
|
|
30
|
+
"Current_user_department_and_sub": "当前用户的部门和子部门",
|
|
31
|
+
"Specific_departments": "具体部门",
|
|
32
|
+
"Deleted_department": "已经删除的部门",
|
|
33
|
+
"View_original_image": "查看原图",
|
|
34
|
+
"Add_filter": "添加过滤",
|
|
35
|
+
"Submit": "提交",
|
|
36
|
+
"No_filters": "没有过滤条件",
|
|
37
|
+
"Select_an_option": "选择标签",
|
|
38
|
+
"Add_collaborator": "添加协作人",
|
|
39
|
+
"Add_a_creator": "增加创建者",
|
|
40
|
+
"Add_a_last_modifier": "增加最后修改者",
|
|
41
|
+
"Invalid_filter": "无效的过滤器",
|
|
42
|
+
"Search_column": "查找列",
|
|
43
|
+
"No_results": "没有结果",
|
|
44
|
+
"Select_option(s)": "选择标签",
|
|
45
|
+
"contains": "包含",
|
|
46
|
+
"does_not_contain": "不包含",
|
|
47
|
+
"is": "是",
|
|
48
|
+
"is_not": "不是",
|
|
49
|
+
"equal": "=",
|
|
50
|
+
"not_equal": "≠",
|
|
51
|
+
"less": "<",
|
|
52
|
+
"greater": ">",
|
|
53
|
+
"less_or_equal": "≤",
|
|
54
|
+
"greater_or_equal": "≥",
|
|
55
|
+
"is_empty": "是空",
|
|
56
|
+
"is_not_empty": "不是空",
|
|
57
|
+
"is_within": "在某段时间内",
|
|
58
|
+
"is_before": "在某天之前",
|
|
59
|
+
"is_after": "在某天之后",
|
|
60
|
+
"is_on_or_before": "在某天或之前",
|
|
61
|
+
"is_on_or_after": "在某天或之后",
|
|
62
|
+
"has_any_of": "包含其中一个",
|
|
63
|
+
"has_all_of": "包含所有",
|
|
64
|
+
"has_none_of": "不包含",
|
|
65
|
+
"is_exactly": "精确筛选",
|
|
66
|
+
"is_current_user_ID": "是当前用户的 ID",
|
|
67
|
+
"Current_date": "当前日期",
|
|
68
|
+
"Specific_date": "指定日期",
|
|
69
|
+
"x_days_before_current_date": "当前日期的前 X 天",
|
|
70
|
+
"x_days_after_current_date": "当前日期的后 X 天",
|
|
71
|
+
"is_any_of": "是任意一个...",
|
|
72
|
+
"is_none_of": "不是任意一个...",
|
|
73
|
+
"include_me": "包括当前用户",
|
|
74
|
+
"today": "今天",
|
|
75
|
+
"tomorrow": "明天",
|
|
76
|
+
"yesterday": "昨天",
|
|
77
|
+
"one_week_ago": "一周前",
|
|
78
|
+
"one_week_from_now": "一周后",
|
|
79
|
+
"one_month_ago": "一个月前",
|
|
80
|
+
"one_month_from_now": "一个月后",
|
|
81
|
+
"number_of_days_ago": "特定天数前",
|
|
82
|
+
"number_of_days_from_now": "特定天数后",
|
|
83
|
+
"exact_date": "精确日期",
|
|
84
|
+
"the_past_week": "上个星期",
|
|
85
|
+
"the_past_month": "上个月",
|
|
86
|
+
"the_past_year": "去年",
|
|
87
|
+
"the_next_week": "下个星期",
|
|
88
|
+
"the_next_month": "下个月",
|
|
89
|
+
"the_next_year": "下一年",
|
|
90
|
+
"the_next_numbers_of_days": "今天之后的指定天数",
|
|
91
|
+
"the_past_numbers_of_days": "今天之前的指定天数",
|
|
92
|
+
"this_week": "这个星期",
|
|
93
|
+
"this_month": "这个月",
|
|
94
|
+
"this_year": "今年",
|
|
95
|
+
"last_week": "上个星期",
|
|
96
|
+
"last_month": "上个月",
|
|
97
|
+
"last_year": "去年",
|
|
98
|
+
"URL_is_invalid": "URL 无效",
|
|
99
|
+
"Select_department": "选择部门",
|
|
100
|
+
"Default": "默认",
|
|
101
|
+
"Custom": "自定义",
|
|
102
|
+
"Recently_used": "最近使用"
|
|
103
|
+
};
|
|
104
|
+
var _default = exports.default = zh_CN;
|
|
@@ -4,16 +4,16 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
Object.defineProperty(exports, "
|
|
7
|
+
Object.defineProperty(exports, "MBSelectEditorPopover", {
|
|
8
8
|
enumerable: true,
|
|
9
9
|
get: function () {
|
|
10
|
-
return
|
|
10
|
+
return _mbSelectEditorPopover.default;
|
|
11
11
|
}
|
|
12
12
|
});
|
|
13
|
-
Object.defineProperty(exports, "
|
|
13
|
+
Object.defineProperty(exports, "PCSelectEditorPopover", {
|
|
14
14
|
enumerable: true,
|
|
15
15
|
get: function () {
|
|
16
|
-
return
|
|
16
|
+
return _pcSelectEditorPopover.default;
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "SelectEditorOption", {
|
|
@@ -22,6 +22,6 @@ Object.defineProperty(exports, "SelectEditorOption", {
|
|
|
22
22
|
return _selectEditorOption.default;
|
|
23
23
|
}
|
|
24
24
|
});
|
|
25
|
-
var
|
|
26
|
-
var
|
|
25
|
+
var _mbSelectEditorPopover = _interopRequireDefault(require("./mb-select-editor-popover"));
|
|
26
|
+
var _pcSelectEditorPopover = _interopRequireDefault(require("./pc-select-editor-popover"));
|
|
27
27
|
var _selectEditorOption = _interopRequireDefault(require("./select-editor-option"));
|
|
@@ -14,7 +14,7 @@ require("./index.css");
|
|
|
14
14
|
class MBSelectEditorPopover extends _react.default.Component {
|
|
15
15
|
constructor(props) {
|
|
16
16
|
super(props);
|
|
17
|
-
this.
|
|
17
|
+
this.handleHistaryBack = e => {
|
|
18
18
|
e.preventDefault();
|
|
19
19
|
this.props.onClosePopover();
|
|
20
20
|
};
|
|
@@ -109,10 +109,10 @@ class MBSelectEditorPopover extends _react.default.Component {
|
|
|
109
109
|
}
|
|
110
110
|
componentDidMount() {
|
|
111
111
|
history.pushState(null, null, '#'); // eslint-disable-line
|
|
112
|
-
window.addEventListener('popstate', this.
|
|
112
|
+
window.addEventListener('popstate', this.handleHistaryBack, false);
|
|
113
113
|
}
|
|
114
114
|
componentWillUnmount() {
|
|
115
|
-
window.removeEventListener('popstate', this.
|
|
115
|
+
window.removeEventListener('popstate', this.handleHistaryBack, false);
|
|
116
116
|
}
|
|
117
117
|
render() {
|
|
118
118
|
const {
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
@import url('../../css/cell-editor.css');
|
|
2
|
+
|
|
3
|
+
.dtable-ui-select-editor-popover .select-options-search {
|
|
4
|
+
padding: 10px 10px 0 10px;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.dtable-ui-select-editor-popover .select-options-search input {
|
|
8
|
+
height: 28px;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.dtable-ui-select-editor-popover .select-options-container {
|
|
12
|
+
min-height: 160px;
|
|
13
|
+
max-height: 200px;
|
|
14
|
+
margin: 10px 0;
|
|
15
|
+
padding: 0 10px;
|
|
16
|
+
overflow: auto;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/* option item */
|
|
20
|
+
.dtable-ui-select-editor-popover .select-option-item {
|
|
21
|
+
display: flex;
|
|
22
|
+
height: 30px;
|
|
23
|
+
padding-left: 12px;
|
|
24
|
+
font-size: 14px;
|
|
25
|
+
line-height: 30px;
|
|
26
|
+
cursor: pointer;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.dtable-ui-select-editor-popover .select-option-item:hover {
|
|
30
|
+
background-color: #f5f5f5;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.dtable-ui-select-editor-popover .option-info {
|
|
34
|
+
flex: 1;
|
|
35
|
+
display: flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.dtable-ui-select-editor-popover .option-checked {
|
|
40
|
+
width: 20px;
|
|
41
|
+
text-align: center;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.dtable-ui-select-editor-popover .option-checked .dtable-font {
|
|
45
|
+
font-size: 12px;
|
|
46
|
+
color: #798d99;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.dtable-ui-select-editor-popover .select-options-add {
|
|
50
|
+
display: flex;
|
|
51
|
+
align-items: center;
|
|
52
|
+
padding: 0 10px;
|
|
53
|
+
height: 30px;
|
|
54
|
+
border-top: 1px solid #ccc;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.dtable-ui-select-editor-popover .select-options-add .dtable-font {
|
|
58
|
+
margin-right: 5px;
|
|
59
|
+
font-size: 12px;
|
|
60
|
+
font-weight: 600;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.dtable-ui-select-editor-popover .select-options-add > span {
|
|
64
|
+
display: inline-block;
|
|
65
|
+
font-size: 14px;
|
|
66
|
+
font-weight: 500;
|
|
67
|
+
color: #212529;
|
|
68
|
+
white-space: nowrap;
|
|
69
|
+
overflow: hidden;
|
|
70
|
+
text-overflow: ellipsis;
|
|
71
|
+
}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _lang = require("../../lang");
|
|
10
|
+
require("./index.css");
|
|
11
|
+
class PCSelectEditorPopover extends _react.default.Component {
|
|
12
|
+
constructor(props) {
|
|
13
|
+
super(props);
|
|
14
|
+
this.onValueChanged = event => {
|
|
15
|
+
let value = event.target.value;
|
|
16
|
+
this.setState({
|
|
17
|
+
searchValue: value
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
this.onInputClick = event => {
|
|
21
|
+
event.nativeEvent.stopImmediatePropagation();
|
|
22
|
+
event.stopPropagation();
|
|
23
|
+
};
|
|
24
|
+
this.onAddNewOption = () => {
|
|
25
|
+
let name = this.state.searchValue.trim();
|
|
26
|
+
this.props.onAddNewOption(name);
|
|
27
|
+
};
|
|
28
|
+
this.onOptionItemToggle = item => {
|
|
29
|
+
this.props.onOptionItemToggle(item);
|
|
30
|
+
};
|
|
31
|
+
this.getFilterOptions = () => {
|
|
32
|
+
let {
|
|
33
|
+
options
|
|
34
|
+
} = this.props;
|
|
35
|
+
let filter = this.state.searchValue.toLowerCase();
|
|
36
|
+
if (!filter) {
|
|
37
|
+
return options;
|
|
38
|
+
}
|
|
39
|
+
return options.filter(option => {
|
|
40
|
+
return option.name.toString().toLowerCase().indexOf(filter) > -1;
|
|
41
|
+
});
|
|
42
|
+
};
|
|
43
|
+
this.getOptionStyle = option => {
|
|
44
|
+
const textColor = option.textColor || null;
|
|
45
|
+
return {
|
|
46
|
+
display: 'inline-block',
|
|
47
|
+
padding: '0px 10px',
|
|
48
|
+
height: '20px',
|
|
49
|
+
lineHeight: '20px',
|
|
50
|
+
borderRadius: '10px',
|
|
51
|
+
fontSize: '13px',
|
|
52
|
+
backgroundColor: option.color,
|
|
53
|
+
color: textColor
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
this.state = {
|
|
57
|
+
searchValue: ''
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
render() {
|
|
61
|
+
let options = this.getFilterOptions();
|
|
62
|
+
let {
|
|
63
|
+
popoverPosition,
|
|
64
|
+
selectedOptions,
|
|
65
|
+
isSupportNewOption
|
|
66
|
+
} = this.props;
|
|
67
|
+
let {
|
|
68
|
+
searchValue
|
|
69
|
+
} = this.state;
|
|
70
|
+
let popoverStyle = Object.assign({}, {
|
|
71
|
+
...popoverPosition
|
|
72
|
+
}, {
|
|
73
|
+
position: 'absolute'
|
|
74
|
+
});
|
|
75
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
76
|
+
className: "dtable-ui-editor-popover dtable-ui-select-editor-popover",
|
|
77
|
+
style: popoverStyle
|
|
78
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
79
|
+
className: "select-options-search"
|
|
80
|
+
}, /*#__PURE__*/_react.default.createElement("input", {
|
|
81
|
+
className: "form-control",
|
|
82
|
+
onChange: this.onValueChanged,
|
|
83
|
+
onClick: this.onInputClick,
|
|
84
|
+
placeholder: (0, _lang.getLocale)('Search_option')
|
|
85
|
+
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
86
|
+
className: "select-options-container"
|
|
87
|
+
}, options.length > 0 && options.map((option, index) => {
|
|
88
|
+
let optionStyle = this.getOptionStyle(option);
|
|
89
|
+
let isSelect = selectedOptions.some(selectedOption => {
|
|
90
|
+
return selectedOption.id === option.id;
|
|
91
|
+
});
|
|
92
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
93
|
+
key: index,
|
|
94
|
+
className: "select-option-item",
|
|
95
|
+
onClick: this.onOptionItemToggle.bind(this, option)
|
|
96
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
97
|
+
className: "option-info"
|
|
98
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
99
|
+
className: "option-name",
|
|
100
|
+
style: optionStyle,
|
|
101
|
+
title: option.name
|
|
102
|
+
}, option.name)), /*#__PURE__*/_react.default.createElement("div", {
|
|
103
|
+
className: "option-checked"
|
|
104
|
+
}, isSelect && /*#__PURE__*/_react.default.createElement("i", {
|
|
105
|
+
className: "dtable-font dtable-icon-check-mark"
|
|
106
|
+
})));
|
|
107
|
+
}), options.length === 0 && /*#__PURE__*/_react.default.createElement("div", {
|
|
108
|
+
className: "no-search-result"
|
|
109
|
+
}, (0, _lang.getLocale)('No_options_available'))), isSupportNewOption && !!searchValue && /*#__PURE__*/_react.default.createElement("div", {
|
|
110
|
+
className: "select-options-add",
|
|
111
|
+
onClick: this.onAddNewOption
|
|
112
|
+
}, /*#__PURE__*/_react.default.createElement("i", {
|
|
113
|
+
className: "dtable-font dtable-icon-add-table"
|
|
114
|
+
}), /*#__PURE__*/_react.default.createElement("span", null, (0, _lang.getLocale)('Add_an_option'), ' ', searchValue)));
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
PCSelectEditorPopover.defaultProps = {
|
|
118
|
+
popoverPosition: {},
|
|
119
|
+
options: [],
|
|
120
|
+
isShowAddBtn: false
|
|
121
|
+
};
|
|
122
|
+
var _default = exports.default = PCSelectEditorPopover;
|
package/lib/toaster/toaster.js
CHANGED
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var
|
|
9
|
+
var _client = require("react-dom/client");
|
|
10
10
|
var _toastManager = _interopRequireDefault(require("./toastManager"));
|
|
11
11
|
require("./index.css");
|
|
12
12
|
const isBrowser = typeof window !== 'undefined' && typeof window.document !== 'undefined';
|
|
@@ -65,11 +65,12 @@ class Toaster {
|
|
|
65
65
|
const container = document.createElement('div');
|
|
66
66
|
container.setAttribute('data-evergreen-toaster-container', '');
|
|
67
67
|
document.body.appendChild(container);
|
|
68
|
-
|
|
68
|
+
const root = (0, _client.createRoot)(container);
|
|
69
|
+
root.render( /*#__PURE__*/_react.default.createElement(_toastManager.default, {
|
|
69
70
|
bindNotify: this._bindNotify,
|
|
70
71
|
bindGetToasts: this._bindGetToasts,
|
|
71
72
|
bindCloseAll: this._bindCloseAll
|
|
72
|
-
})
|
|
73
|
+
}));
|
|
73
74
|
}
|
|
74
75
|
}
|
|
75
76
|
exports.default = Toaster;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.initDateEditorLanguage = exports.getTrimmedString = exports.getSelectOptionItem = void 0;
|
|
6
|
+
exports.isValidUrl = exports.initDateEditorLanguage = exports.getTrimmedString = exports.getSelectOptionItem = void 0;
|
|
7
7
|
const zhCN = require('@seafile/seafile-calendar/lib/locale/zh_CN');
|
|
8
8
|
const zhTW = require('@seafile/seafile-calendar/lib/locale/zh_TW');
|
|
9
9
|
const enUS = require('@seafile/seafile-calendar/lib/locale/en_US');
|
|
@@ -63,6 +63,11 @@ const getSelectOptionItem = (options, optionId) => {
|
|
|
63
63
|
return options.find(option => option.id === optionId);
|
|
64
64
|
};
|
|
65
65
|
exports.getSelectOptionItem = getSelectOptionItem;
|
|
66
|
+
const isValidUrl = url => {
|
|
67
|
+
const reg = /^(([-a-zA-Z0-9+.]+):\/\/)[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]/;
|
|
68
|
+
return reg.test(url);
|
|
69
|
+
};
|
|
70
|
+
exports.isValidUrl = isValidUrl;
|
|
66
71
|
const getTrimmedString = value => {
|
|
67
72
|
return typeof value === 'string' ? value.trim() : '';
|
|
68
73
|
};
|