dtable-ui-component 5.3.1-beta6 → 5.3.2-alpha1

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.
Files changed (248) hide show
  1. package/lib/CheckboxEditor/index.css +20 -3
  2. package/lib/CheckboxEditor/index.js +35 -98
  3. package/lib/CheckboxFormatter/index.js +9 -6
  4. package/lib/CollaboratorEditor/index.css +35 -12
  5. package/lib/CollaboratorEditor/index.js +212 -18
  6. package/lib/CollaboratorEditor/{mb-collaborator-editor → mb-collaborator-editor-popover}/index.js +29 -26
  7. package/lib/CollaboratorEditor/pc-collaborator-editor-popover/index.js +97 -0
  8. package/lib/CollaboratorItem/index.css +1 -1
  9. package/lib/CollaboratorItem/index.js +2 -6
  10. package/lib/DTableCustomizeSelect/index.css +1 -1
  11. package/lib/DTableFiltersPopover/utils/index.js +7 -1
  12. package/lib/DTableFiltersPopover/widgets/filter-calendar.js +2 -2
  13. package/lib/DTableGroupSelect/select-option-group.css +17 -17
  14. package/lib/DTableGroupSelect/select-option-group.js +1 -1
  15. package/lib/DTableSelect/index.js +1 -3
  16. package/lib/DateEditor/index.js +51 -14
  17. package/lib/DateEditor/pc-date-editor-popover.js +12 -145
  18. package/lib/Department-editor/department-single-select.js +1 -1
  19. package/lib/Department-editor/index.js +4 -3
  20. package/lib/DepartmentSingleSelectFormatter/index.js +1 -2
  21. package/lib/FileEditor/index.js +11 -258
  22. package/lib/FileEditor/pc-files-addition/index.js +1 -0
  23. package/lib/FileEditor/pc-files-addition/pc-file-uploaded-item.js +1 -0
  24. package/lib/FileEditor/pc-files-preview/index.js +1 -0
  25. package/lib/FileEditor/pc-files-preview/pc-file-item-preview.js +1 -0
  26. package/lib/FileItemFormatter/assets/file/192/excel.png +0 -0
  27. package/lib/FileItemFormatter/assets/file/192/file.png +0 -0
  28. package/lib/FileItemFormatter/assets/file/192/music.png +0 -0
  29. package/lib/FileItemFormatter/assets/file/192/pdf.png +0 -0
  30. package/lib/FileItemFormatter/assets/file/192/pic.png +0 -0
  31. package/lib/FileItemFormatter/assets/file/192/ppt.png +0 -0
  32. package/lib/FileItemFormatter/assets/file/192/txt.png +0 -0
  33. package/lib/FileItemFormatter/assets/file/192/video.png +0 -0
  34. package/lib/FileItemFormatter/assets/file/192/word.png +0 -0
  35. package/lib/FileItemFormatter/assets/file/24/excel.png +0 -0
  36. package/lib/FileItemFormatter/assets/file/24/file.png +0 -0
  37. package/lib/FileItemFormatter/assets/file/24/music.png +0 -0
  38. package/lib/FileItemFormatter/assets/file/24/pdf.png +0 -0
  39. package/lib/FileItemFormatter/assets/file/24/pic.png +0 -0
  40. package/lib/FileItemFormatter/assets/file/24/ppt.png +0 -0
  41. package/lib/FileItemFormatter/assets/file/24/txt.png +0 -0
  42. package/lib/FileItemFormatter/assets/file/24/video.png +0 -0
  43. package/lib/FileItemFormatter/assets/file/24/word.png +0 -0
  44. package/lib/FileItemFormatter/assets/folder/folder-192.png +0 -0
  45. package/lib/FileItemFormatter/assets/folder/folder-24.png +0 -0
  46. package/lib/FileItemFormatter/index.js +20 -19
  47. package/lib/FileItemFormatter/utils.js +99 -0
  48. package/lib/FileUploader/index.js +14 -268
  49. package/lib/FormulaFormatter/index.js +1 -2
  50. package/lib/FormulaFormatter/utils.js +31 -0
  51. package/lib/LinkEditor/pc-link-editor-popover/index.js +1 -1
  52. package/lib/MultipleSelectEditor/index.css +9 -0
  53. package/lib/MultipleSelectEditor/index.js +177 -16
  54. package/lib/NumberEditor/index.js +77 -64
  55. package/lib/{RowExpandFormatter/RowExpandEmailFormatter → RowExpandEmailFormatter}/index.css +1 -1
  56. package/lib/{RowExpandFormatter/RowExpandEmailFormatter → RowExpandEmailFormatter}/index.js +1 -1
  57. package/lib/{RowExpandFormatter/RowExpandFileFormatter → RowExpandFileFormatter}/index.css +6 -6
  58. package/lib/{RowExpandFormatter/RowExpandFileFormatter → RowExpandFileFormatter}/index.js +1 -3
  59. package/lib/{RowExpandFormatter/RowExpandFileFormatter → RowExpandFileFormatter}/row-expand-file-item-formatter.js +11 -10
  60. package/lib/RowExpandFormatter/index.css +1 -27
  61. package/lib/RowExpandFormatter/index.js +100 -83
  62. package/lib/{RowExpandFormatter/RowExpandFormulaFormatter → RowExpandFormulaFormatter}/index.js +10 -11
  63. package/lib/{RowExpandFormatter/RowExpandImageFormatter → RowExpandImageFormatter}/index.css +6 -6
  64. package/lib/{RowExpandFormatter/RowExpandImageFormatter → RowExpandImageFormatter}/index.js +1 -1
  65. package/lib/{RowExpandFormatter/RowExpandImageFormatter → RowExpandImageFormatter}/row-expand-image-item-formatter.js +3 -3
  66. package/lib/{RowExpandFormatter/RowExpandLinkFormatter → RowExpandLinkFormatter}/collaborator-item-formatter.js +1 -1
  67. package/lib/{RowExpandFormatter/RowExpandLinkFormatter → RowExpandLinkFormatter}/index.js +6 -6
  68. package/lib/RowExpandLinkFormatter/utils.js +71 -0
  69. package/lib/{RowExpandFormatter/RowExpandRateFormatter → RowExpandRateFormatter}/index.css +1 -1
  70. package/lib/RowExpandUrlFormatter/index.css +1 -0
  71. package/lib/{RowExpandFormatter/RowExpandUrlFormatter → RowExpandUrlFormatter}/index.js +3 -4
  72. package/lib/SingleSelectEditor/index.css +14 -0
  73. package/lib/SingleSelectEditor/index.js +156 -16
  74. package/lib/TextEditor/index.js +42 -113
  75. package/lib/constants/index.js +2 -34
  76. package/lib/css/cell-editor.css +2 -18
  77. package/lib/index.js +46 -74
  78. package/lib/lang/index.js +16 -19
  79. package/lib/locals/de.js +103 -0
  80. package/lib/locals/en.js +104 -0
  81. package/lib/locals/es.js +103 -0
  82. package/lib/locals/fr.js +103 -0
  83. package/lib/locals/pt.js +103 -0
  84. package/lib/locals/ru.js +103 -0
  85. package/lib/locals/zh-CN.js +104 -0
  86. package/lib/select-editor/index.js +6 -6
  87. package/lib/select-editor/{mb-select-editor → mb-select-editor-popover}/index.js +3 -3
  88. package/lib/select-editor/pc-select-editor-popover/index.css +71 -0
  89. package/lib/select-editor/pc-select-editor-popover/index.js +122 -0
  90. package/lib/utils/editor-utils.js +6 -1
  91. package/lib/utils/url.js +8 -121
  92. package/lib/utils/utils.js +2 -145
  93. package/package.json +2 -3
  94. package/lib/CollaboratorEditor/pc-collaborator-editor/index.js +0 -257
  95. package/lib/Comment/body/comment.js +0 -190
  96. package/lib/Comment/body/index.css +0 -95
  97. package/lib/Comment/body/index.js +0 -32
  98. package/lib/Comment/footer/btns/index.css +0 -40
  99. package/lib/Comment/footer/btns/index.js +0 -113
  100. package/lib/Comment/footer/index.css +0 -157
  101. package/lib/Comment/footer/index.js +0 -170
  102. package/lib/Comment/footer/input/index.css +0 -52
  103. package/lib/Comment/footer/input/index.js +0 -448
  104. package/lib/Comment/footer/input/participant/index.css +0 -0
  105. package/lib/Comment/footer/input/participant/index.js +0 -53
  106. package/lib/Comment/footer/participants/index.css +0 -22
  107. package/lib/Comment/footer/participants/index.js +0 -68
  108. package/lib/Comment/footer/participants/participant/index.css +0 -5
  109. package/lib/Comment/footer/participants/participant/index.js +0 -32
  110. package/lib/Comment/footer/participants/participant-select/index.css +0 -104
  111. package/lib/Comment/footer/participants/participant-select/index.js +0 -182
  112. package/lib/Comment/index.css +0 -19
  113. package/lib/Comment/index.js +0 -305
  114. package/lib/Comment/model.js +0 -25
  115. package/lib/Comment/utils/common.js +0 -62
  116. package/lib/Comment/utils/index.js +0 -27
  117. package/lib/Comment/utils/utilities.js +0 -176
  118. package/lib/DeleteTip/index.js +0 -50
  119. package/lib/DigitalSignEditor/constants.js +0 -7
  120. package/lib/DigitalSignEditor/index.css +0 -69
  121. package/lib/DigitalSignEditor/index.js +0 -182
  122. package/lib/DigitalSignEditor/service.js +0 -38
  123. package/lib/DigitalSignEditor/signature-board/index.css +0 -35
  124. package/lib/DigitalSignEditor/signature-board/index.js +0 -135
  125. package/lib/DigitalSignEditor/signature-board/signature-tool.js +0 -396
  126. package/lib/DigitalSignEditor/utils.js +0 -29
  127. package/lib/DurationEditor/index.js +0 -111
  128. package/lib/EmailEditor/index.js +0 -59
  129. package/lib/FileEditor/addition-previewer/index.css +0 -1
  130. package/lib/FileEditor/addition-previewer/index.js +0 -52
  131. package/lib/FileEditor/addition-previewer/local-file-addition/index.css +0 -1
  132. package/lib/FileEditor/addition-previewer/local-file-addition/index.js +0 -252
  133. package/lib/FileEditor/constants.js +0 -7
  134. package/lib/FileEditor/files-previewer/file-previewer/dropdown-menu.js +0 -74
  135. package/lib/FileEditor/files-previewer/file-previewer/file-name-editor/index.css +0 -5
  136. package/lib/FileEditor/files-previewer/file-previewer/file-name-editor/index.js +0 -77
  137. package/lib/FileEditor/files-previewer/file-previewer/index.css +0 -88
  138. package/lib/FileEditor/files-previewer/file-previewer/index.js +0 -167
  139. package/lib/FileEditor/files-previewer/index.css +0 -56
  140. package/lib/FileEditor/files-previewer/index.js +0 -277
  141. package/lib/FileEditor/index.css +0 -6
  142. package/lib/FileEditor/utils.js +0 -22
  143. package/lib/FileUploader/index.css +0 -9
  144. package/lib/GeolocationEditor/country-editor.js +0 -319
  145. package/lib/GeolocationEditor/index.css +0 -641
  146. package/lib/GeolocationEditor/index.js +0 -241
  147. package/lib/GeolocationEditor/location-editor.js +0 -368
  148. package/lib/GeolocationEditor/map-editor/index.js +0 -456
  149. package/lib/GeolocationEditor/map-editor/large-editor/index.css +0 -137
  150. package/lib/GeolocationEditor/map-editor/large-editor/index.js +0 -461
  151. package/lib/GeolocationEditor/map-editor-utils.js +0 -153
  152. package/lib/GeolocationEditor/map-selection-editor/index.js +0 -455
  153. package/lib/GeolocationEditor/map-selection-editor/large-editor/index.css +0 -1
  154. package/lib/GeolocationEditor/map-selection-editor/large-editor/index.js +0 -447
  155. package/lib/GeolocationEditor/parse-geolocation.js +0 -282
  156. package/lib/GeolocationEditor/province-city-editor.js +0 -292
  157. package/lib/GeolocationEditor/province-editor.js +0 -226
  158. package/lib/GeolocationEditor/selector-header-item.js +0 -28
  159. package/lib/GeolocationEditor/selector-list.js +0 -33
  160. package/lib/GeolocationEditor/with-ref.js +0 -27
  161. package/lib/ImageEditor/addition-previewer/image-link/index.css +0 -45
  162. package/lib/ImageEditor/addition-previewer/image-link/index.js +0 -73
  163. package/lib/ImageEditor/addition-previewer/index.css +0 -106
  164. package/lib/ImageEditor/addition-previewer/index.js +0 -63
  165. package/lib/ImageEditor/addition-previewer/local-image-addition/index.css +0 -125
  166. package/lib/ImageEditor/addition-previewer/local-image-addition/index.js +0 -254
  167. package/lib/ImageEditor/constants.js +0 -7
  168. package/lib/ImageEditor/images-previewer/image-preview/index.css +0 -59
  169. package/lib/ImageEditor/images-previewer/image-preview/index.js +0 -155
  170. package/lib/ImageEditor/images-previewer/index.css +0 -18
  171. package/lib/ImageEditor/images-previewer/index.js +0 -140
  172. package/lib/ImageEditor/index.css +0 -24
  173. package/lib/ImageEditor/index.js +0 -194
  174. package/lib/ImageThumbnail/index.css +0 -20
  175. package/lib/ImageThumbnail/index.js +0 -136
  176. package/lib/RowExpandDialog/body/index.css +0 -21
  177. package/lib/RowExpandDialog/body/index.js +0 -262
  178. package/lib/RowExpandDialog/column-content/index.css +0 -44
  179. package/lib/RowExpandDialog/column-content/index.js +0 -50
  180. package/lib/RowExpandDialog/header/index.css +0 -31
  181. package/lib/RowExpandDialog/header/index.js +0 -55
  182. package/lib/RowExpandDialog/index.css +0 -24
  183. package/lib/RowExpandDialog/index.js +0 -252
  184. package/lib/RowExpandEditor/RowExpandAddBtn/index.css +0 -22
  185. package/lib/RowExpandEditor/RowExpandAddBtn/index.js +0 -24
  186. package/lib/RowExpandEditor/RowExpandCheckboxEditor/index.css +0 -18
  187. package/lib/RowExpandEditor/RowExpandCheckboxEditor/index.js +0 -43
  188. package/lib/RowExpandEditor/RowExpandCollaboratorEditor/index.css +0 -5
  189. package/lib/RowExpandEditor/RowExpandCollaboratorEditor/index.js +0 -232
  190. package/lib/RowExpandEditor/RowExpandDateEditor/index.js +0 -130
  191. package/lib/RowExpandEditor/RowExpandDepartmentEditor/index.js +0 -129
  192. package/lib/RowExpandEditor/RowExpandDigitalSignEditor/index.css +0 -13
  193. package/lib/RowExpandEditor/RowExpandDigitalSignEditor/index.js +0 -208
  194. package/lib/RowExpandEditor/RowExpandDurationEditor/index.js +0 -105
  195. package/lib/RowExpandEditor/RowExpandEmailEditor/index.css +0 -2
  196. package/lib/RowExpandEditor/RowExpandEmailEditor/index.js +0 -125
  197. package/lib/RowExpandEditor/RowExpandFileEditor/index.css +0 -1
  198. package/lib/RowExpandEditor/RowExpandFileEditor/index.js +0 -146
  199. package/lib/RowExpandEditor/RowExpandGeolocationEditor/index.css +0 -17
  200. package/lib/RowExpandEditor/RowExpandGeolocationEditor/index.js +0 -165
  201. package/lib/RowExpandEditor/RowExpandImageEditor/index.css +0 -6
  202. package/lib/RowExpandEditor/RowExpandImageEditor/index.js +0 -170
  203. package/lib/RowExpandEditor/RowExpandLongTextEditor/index.css +0 -6
  204. package/lib/RowExpandEditor/RowExpandLongTextEditor/index.js +0 -123
  205. package/lib/RowExpandEditor/RowExpandMultipleSelectEditor/index.css +0 -44
  206. package/lib/RowExpandEditor/RowExpandMultipleSelectEditor/index.js +0 -224
  207. package/lib/RowExpandEditor/RowExpandNumberEditor/index.js +0 -105
  208. package/lib/RowExpandEditor/RowExpandRateEditor/index.css +0 -13
  209. package/lib/RowExpandEditor/RowExpandRateEditor/index.js +0 -152
  210. package/lib/RowExpandEditor/RowExpandSingleSelectorEditor/index.css +0 -58
  211. package/lib/RowExpandEditor/RowExpandSingleSelectorEditor/index.js +0 -192
  212. package/lib/RowExpandEditor/RowExpandTextEditor/index.css +0 -4
  213. package/lib/RowExpandEditor/RowExpandTextEditor/index.js +0 -127
  214. package/lib/RowExpandEditor/RowExpandUrlEditor/index.css +0 -31
  215. package/lib/RowExpandEditor/RowExpandUrlEditor/index.js +0 -130
  216. package/lib/RowExpandEditor/constants.js +0 -44
  217. package/lib/RowExpandEditor/index.css +0 -0
  218. package/lib/RowExpandEditor/index.js +0 -32
  219. package/lib/RowExpandFormatter/RowExpandDepartmentFormatter/index.js +0 -27
  220. package/lib/RowExpandFormatter/RowExpandUrlFormatter/index.css +0 -1
  221. package/lib/RowExpandFormatter/constants.js +0 -60
  222. package/lib/UploadProgress/index.js +0 -38
  223. package/lib/UrlEditor/index.js +0 -62
  224. package/lib/common/editor-base.js +0 -53
  225. package/lib/constants/file.js +0 -96
  226. package/lib/constants/key-codes.js +0 -109
  227. package/lib/hooks/index.js +0 -16
  228. package/lib/locales/de.json +0 -167
  229. package/lib/locales/en.json +0 -167
  230. package/lib/locales/es.json +0 -167
  231. package/lib/locales/fr.json +0 -167
  232. package/lib/locales/pt.json +0 -167
  233. package/lib/locales/ru.json +0 -167
  234. package/lib/locales/zh-CN.json +0 -167
  235. package/lib/select-editor/pc-select-editor/index.css +0 -85
  236. package/lib/select-editor/pc-select-editor/index.js +0 -290
  237. package/lib/utils/cell-comparer.js +0 -35
  238. package/lib/utils/cell.js +0 -55
  239. package/lib/utils/column-utils.js +0 -25
  240. package/lib/utils/get-event-transfer.js +0 -75
  241. package/lib/utils/hotkey.js +0 -37
  242. package/lib/utils/object-utils.js +0 -61
  243. /package/lib/CollaboratorEditor/{mb-collaborator-editor → mb-collaborator-editor-popover}/index.css +0 -0
  244. /package/lib/CollaboratorEditor/{pc-collaborator-editor → pc-collaborator-editor-popover}/index.css +0 -0
  245. /package/lib/{RowExpandFormatter/RowExpandLinkFormatter → RowExpandLinkFormatter}/index.css +0 -0
  246. /package/lib/{RowExpandFormatter/RowExpandLinkFormatter → RowExpandLinkFormatter}/value-display-utils.js +0 -0
  247. /package/lib/{RowExpandFormatter/RowExpandRateFormatter → RowExpandRateFormatter}/index.js +0 -0
  248. /package/lib/select-editor/{mb-select-editor → mb-select-editor-popover}/index.css +0 -0
@@ -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 fr = {
9
+ "Add_an_option": "Ajouter une option",
10
+ "Search_option": "Trouver une option",
11
+ "No_options_available": "Il n'y a pas d'options disponibles.",
12
+ "Current_option": "Option actuelle",
13
+ "No_option": "Aucune option",
14
+ "Choose_an_option": "Choisis une option",
15
+ "Add_a_collaborator": "Ajouter un collaborateur",
16
+ "Search_collaborator": "Trouver un collaborateur",
17
+ "No_collaborators_available": "Aucun collaborateur n'est disponible.",
18
+ "Done": "Fait",
19
+ "Choose_a_collaborator": "Choisissez un collaborateur",
20
+ "Please_input": "Veuillez saisir",
21
+ "Please_select": "Veuillez sélectionner",
22
+ "Clear": "Effacer",
23
+ "Are_you_sure_you_want_to_delete_this_image": "Êtes-vous sûr de vouloir supprimer cette image?",
24
+ "Are_you_sure_you_want_to_delete_this_file": "Êtes-vous sûr de vouloir supprimer ce fichier?",
25
+ "Cancel": "Annuler",
26
+ "Delete": "Supprimer",
27
+ "Search_department": "Chercher un département",
28
+ "No_departments_available": "Aucun département n'est disponible.",
29
+ "Current_user_department": "Département de l'utilisateur actuel",
30
+ "Current_user_department_and_sub": "Département et sous-départements de l'utilisateur actuel",
31
+ "Specific_departments": "Départements spécifiques",
32
+ "Deleted_department": "Le département a été supprimé.",
33
+ "Add_filter": "Ajouter un filtre",
34
+ "No_filters": "Aucun filtre",
35
+ "Submit": "Soumettre",
36
+ "Select_an_option": "Sélectionner une option",
37
+ "Add_collaborator": "Ajouter un collaborateur",
38
+ "Add_a_creator": "Ajouter un créateur",
39
+ "Add_a_last_modifier": "Ajouter un dernier éditeur",
40
+ "Invalid_filter": "Filtre invalide",
41
+ "Search_column": "Rechercher une colonne",
42
+ "No_results": "Aucun résultat",
43
+ "Select_option(s)": "Selectionner une ou plusieurs options",
44
+ "contains": "contient",
45
+ "does_not_contain": "ne contient pas",
46
+ "is": "est égale à",
47
+ "is_not": "est différente de",
48
+ "equal": "=",
49
+ "not_equal": "≠",
50
+ "less": "<",
51
+ "greater": ">",
52
+ "less_or_equal": "≤",
53
+ "greater_or_equal": "≥",
54
+ "is_empty": "est vide",
55
+ "is_not_empty": "n'est pas vide",
56
+ "is_within": "est pendant",
57
+ "is_before": "est avant",
58
+ "is_after": "est après",
59
+ "is_on_or_before": "est le ou avant",
60
+ "is_on_or_after": "est le ou après",
61
+ "has_any_of": "contient au moins un",
62
+ "has_all_of": "contient tout",
63
+ "has_none_of": "ne contient aucun",
64
+ "is_exactly": "est exactement",
65
+ "is_current_user_ID": "est l'ID de l'utilisateur connecté",
66
+ "Current_date": "Date actuelle",
67
+ "Specific_date": "Date spécifique",
68
+ "x_days_before_current_date": "Jour avant la date actuelle",
69
+ "x_days_after_current_date": "Jour après la data actuelle",
70
+ "is_any_of": "contient au moins un",
71
+ "is_none_of": "ne contient aucun",
72
+ "include_me": " Inclure l'utilisateur actuel",
73
+ "today": "aujourd'hui",
74
+ "tomorrow": "demain",
75
+ "yesterday": "hier",
76
+ "one_week_ago": "il y a une semaine",
77
+ "one_week_from_now": "dans une semaine",
78
+ "one_month_ago": "il y a un mois",
79
+ "one_month_from_now": "dans un mois",
80
+ "number_of_days_ago": "il y a tels jours",
81
+ "number_of_days_from_now": "dans tels jours",
82
+ "exact_date": "date exacte",
83
+ "the_past_week": "la semaine dernière",
84
+ "the_past_month": "le mois dernier",
85
+ "the_past_year": "l'année dernière",
86
+ "the_next_week": "la semaine prochaine",
87
+ "the_next_month": "le mois prochain",
88
+ "the_next_year": "l'année prochaine",
89
+ "the_next_numbers_of_days": "au cours de tels prochains jours",
90
+ "the_past_numbers_of_days": "au cours de tels derniers jours",
91
+ "this_week": "cette semaine",
92
+ "this_month": "ce mois",
93
+ "this_year": "cette année",
94
+ "last_week": "la semaine dernière",
95
+ "last_month": "le mois dernier",
96
+ "last_year": "l'année dernière",
97
+ "URL_is_invalid": "L'URL est invalide.",
98
+ "Select_department": "Sélectionner un département",
99
+ "Default": "Violation",
100
+ "Custom": "Les coutumes",
101
+ "Recently_used": "Utilisé récemment"
102
+ };
103
+ var _default = exports.default = fr;
@@ -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 pt = {
9
+ "Add_an_option": "Adicione uma opção",
10
+ "Search_option": "Encontre uma opção",
11
+ "No_options_available": "Sem opções disponíveis",
12
+ "Current_option": "Opção atual",
13
+ "No_option": "Nenhuma opção",
14
+ "Choose_an_option": "Escolha uma opção",
15
+ "Add_a_collaborator": "Adicionar um colaborador",
16
+ "Search_collaborator": "Encontre um colaborador",
17
+ "No_collaborators_available": "Nenhum colaborador disponível.",
18
+ "Done": "Feita",
19
+ "Choose_a_collaborator": "Choose a collaborator",
20
+ "Please_input": "Please input",
21
+ "Please_select": "Please select",
22
+ "Clear": "Clara",
23
+ "Are_you_sure_you_want_to_delete_this_image": "Tem certeza de que deseja apagar esta imagem?",
24
+ "Are_you_sure_you_want_to_delete_this_file": "Tem certeza de que deseja excluir este arquivo?",
25
+ "Cancel": "Cancelar",
26
+ "Delete": "Excluir",
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": "Adicione o filtro",
34
+ "Submit": "Enviar",
35
+ "No_filters": "Sem filtros",
36
+ "Select_an_option": "Selecione uma opção",
37
+ "Add_collaborator": "Adicione o colaborador",
38
+ "Add_a_creator": "Adicione um Criador",
39
+ "Add_a_last_modifier": "Adicione um último modificador",
40
+ "Invalid_filter": "Filtro inválido",
41
+ "Search_column": "Encontrar coluna",
42
+ "No_results": "Sem resultados.",
43
+ "Select_option(s)": "Selecione as opções)",
44
+ "contains": "contém",
45
+ "does_not_contain": "não contém",
46
+ "is": "é",
47
+ "is_not": "não é",
48
+ "equal": "=",
49
+ "not_equal": "≠",
50
+ "less": "<",
51
+ "greater": ">",
52
+ "less_or_equal": "≤",
53
+ "greater_or_equal": "≥",
54
+ "is_empty": "está vazia",
55
+ "is_not_empty": "não está vazio",
56
+ "is_within": "está dentro",
57
+ "is_before": "é antes",
58
+ "is_after": "é depois",
59
+ "is_on_or_before": "está ligado ou antes",
60
+ "is_on_or_after": "está ligado ou depois",
61
+ "has_any_of": "tem qualquer um",
62
+ "has_all_of": "tem tudo de",
63
+ "has_none_of": "não tem nenhum",
64
+ "is_exactly": "é exatamente",
65
+ "is_current_user_ID": "é o ID do usuário atual",
66
+ "Current_date": "Data atua",
67
+ "Specific_date": "Específico",
68
+ "x_days_before_current_date": "x dias antes da data atual",
69
+ "x_days_after_current_date": "x dias após a data atual",
70
+ "is_any_of": "é qualquer um",
71
+ "is_none_of": "não é nenhum",
72
+ "include_me": "incluir o usuário atual",
73
+ "today": "hoje",
74
+ "tomorrow": "amanhã",
75
+ "yesterday": "ontem",
76
+ "one_week_ago": "uma semana atrás",
77
+ "one_week_from_now": "daqui a uma semana",
78
+ "one_month_ago": "um mês atrás",
79
+ "one_month_from_now": "um mês atrás",
80
+ "number_of_days_ago": "número de dias atrás",
81
+ "number_of_days_from_now": "número de dias a partir de agora",
82
+ "exact_date": "data exata",
83
+ "the_past_week": "semana anterior",
84
+ "the_past_month": "mês passado",
85
+ "the_past_year": "ano passado",
86
+ "the_next_week": "a próxima semana",
87
+ "the_next_month": "o próximo mês",
88
+ "the_next_year": "no próximo ano",
89
+ "the_next_numbers_of_days": "os próximos números de dias",
90
+ "the_past_numbers_of_days": "os últimos números de dias",
91
+ "this_week": "essa semana",
92
+ "this_month": "este mês",
93
+ "this_year": "este ano",
94
+ "last_week": "semana anterior",
95
+ "last_month": "mês passado",
96
+ "last_year": "ano passado",
97
+ "URL_is_invalid": "URL é inválido",
98
+ "Select_department": "Select department",
99
+ "Default": "por omissão",
100
+ "Custom": "personalizado",
101
+ "Recently_used": "usado recentemente"
102
+ };
103
+ var _default = exports.default = pt;
@@ -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, "MBSelectEditor", {
7
+ Object.defineProperty(exports, "MBSelectEditorPopover", {
8
8
  enumerable: true,
9
9
  get: function () {
10
- return _mbSelectEditor.default;
10
+ return _mbSelectEditorPopover.default;
11
11
  }
12
12
  });
13
- Object.defineProperty(exports, "PCSelectEditor", {
13
+ Object.defineProperty(exports, "PCSelectEditorPopover", {
14
14
  enumerable: true,
15
15
  get: function () {
16
- return _pcSelectEditor.default;
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 _mbSelectEditor = _interopRequireDefault(require("./mb-select-editor"));
26
- var _pcSelectEditor = _interopRequireDefault(require("./pc-select-editor"));
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.handleHistoryBack = e => {
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.handleHistoryBack, false);
112
+ window.addEventListener('popstate', this.handleHistaryBack, false);
113
113
  }
114
114
  componentWillUnmount() {
115
- window.removeEventListener('popstate', this.handleHistoryBack, false);
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;