dtable-ui-component 6.0.29-beta11 → 6.0.29-beta2

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 (282) hide show
  1. package/lib/CheckboxEditor/index.js +118 -24
  2. package/lib/CheckboxFormatter/index.css +1 -1
  3. package/lib/CheckboxFormatter/index.js +25 -10
  4. package/lib/CollaboratorEditor/index.js +11 -23
  5. package/lib/CollaboratorEditor/mb-collaborator-editor/index.css +85 -0
  6. package/lib/CollaboratorEditor/mb-collaborator-editor/index.js +148 -0
  7. package/lib/DTableCommonAddTool/index.js +3 -1
  8. package/lib/DTableFiltersPopover/widgets/department-select-filter/department-multiple-select-filter.js +6 -6
  9. package/lib/DTableFiltersPopover/widgets/department-select-filter/department-single-select-filter.js +6 -6
  10. package/lib/DateEditor/index.js +95 -69
  11. package/lib/DateEditor/mb-date-editor-popover/custom-rc-calendar.css +118 -0
  12. package/lib/DateEditor/mb-date-editor-popover/index.css +45 -0
  13. package/lib/DateEditor/mb-date-editor-popover/index.js +226 -0
  14. package/lib/DateEditor/{pc-editor.js → pc-date-editor-popover.js} +9 -9
  15. package/lib/{DepartmentMultipleSelectEditor → Department-editor/department-multiple-select}/index.js +6 -6
  16. package/lib/{DepartmentSingleSelectEditor/pc-editor → Department-editor}/department-single-select.js +7 -7
  17. package/lib/{DepartmentSingleSelectEditor/pc-editor → Department-editor}/index.css +3 -10
  18. package/lib/{DepartmentSingleSelectEditor/pc-editor → Department-editor}/index.js +25 -8
  19. package/lib/{SelectedDepartments → Department-editor/selected-departments}/index.css +1 -0
  20. package/lib/{SelectedDepartments → Department-editor/selected-departments}/index.js +3 -3
  21. package/lib/DigitalSignEditor/index.js +171 -24
  22. package/lib/FileEditor/addition-previewer/index.css +1 -0
  23. package/lib/FileEditor/{pc-editor/addition-previewer → addition-previewer}/index.js +1 -1
  24. package/lib/FileEditor/addition-previewer/local-file-addition/index.css +1 -0
  25. package/lib/FileEditor/{pc-editor/addition-previewer → addition-previewer}/local-file-addition/index.js +4 -4
  26. package/lib/FileEditor/files-previewer/{pc-previewer/file-previewer → file-previewer}/dropdown-menu.js +1 -1
  27. package/lib/FileEditor/files-previewer/{pc-previewer/file-previewer → file-previewer}/file-name-editor/index.js +1 -1
  28. package/lib/FileEditor/files-previewer/{pc-previewer/file-previewer → file-previewer}/index.css +2 -0
  29. package/lib/FileEditor/files-previewer/{pc-previewer/file-previewer → file-previewer}/index.js +2 -2
  30. package/lib/FileEditor/files-previewer/index.js +268 -26
  31. package/lib/FileEditor/index.css +5 -0
  32. package/lib/FileEditor/index.js +265 -26
  33. package/lib/FormulaFormatter/index.css +5 -5
  34. package/lib/GeolocationEditor/{pc-editor/country-editor.js → country-editor.js} +50 -5
  35. package/lib/GeolocationEditor/{pc-editor/index.css → index.css} +4 -3
  36. package/lib/GeolocationEditor/index.js +230 -90
  37. package/lib/GeolocationEditor/{pc-editor/location-editor.js → location-editor.js} +41 -8
  38. package/lib/GeolocationEditor/{pc-editor/map-editor → map-editor}/index.js +6 -6
  39. package/lib/GeolocationEditor/{pc-editor/map-editor → map-editor}/large-editor/index.js +7 -7
  40. package/lib/GeolocationEditor/map-editor-utils.js +2 -6
  41. package/lib/GeolocationEditor/{pc-editor/map-selection-editor → map-selection-editor}/index.js +7 -7
  42. package/lib/GeolocationEditor/{pc-editor/map-selection-editor → map-selection-editor}/large-editor/index.js +7 -7
  43. package/lib/GeolocationEditor/{pc-editor/province-city-editor.js → province-city-editor.js} +38 -7
  44. package/lib/GeolocationEditor/{pc-editor/province-editor.js → province-editor.js} +31 -7
  45. package/lib/GeolocationEditor/{pc-editor/selector-header-item.js → selector-header-item.js} +1 -1
  46. package/lib/ImageEditor/{pc-editor/addition-previewer → addition-previewer}/image-link/index.js +1 -1
  47. package/lib/ImageEditor/{pc-editor/addition-previewer → addition-previewer}/index.js +1 -1
  48. package/lib/ImageEditor/{pc-editor/addition-previewer → addition-previewer}/local-image-addition/index.js +4 -4
  49. package/lib/ImageEditor/images-previewer/image-preview/index.js +3 -3
  50. package/lib/ImageEditor/images-previewer/index.js +4 -9
  51. package/lib/ImageEditor/index.css +16 -17
  52. package/lib/ImageEditor/index.js +185 -26
  53. package/lib/ImageThumbnail/index.js +1 -2
  54. package/lib/LinkEditor/index.js +5 -5
  55. package/lib/LinkEditor/{mb-popover → mb-link-editor-popover}/index.css +1 -1
  56. package/lib/MultipleSelectEditor/index.js +14 -9
  57. package/lib/RowExpandDialog/column-content/index.js +2 -2
  58. package/lib/RowExpandDialog/index.js +0 -2
  59. package/lib/RowExpandEditor/{add-btn/pc-add-btn → RowExpandAddBtn}/index.js +4 -6
  60. package/lib/RowExpandEditor/{checkbox-editor/pc-editor.js → RowExpandCheckboxEditor/index.js} +13 -9
  61. package/lib/RowExpandEditor/{collaborator-editor/pc-editor → RowExpandCollaboratorEditor}/index.css +1 -1
  62. package/lib/RowExpandEditor/{collaborator-editor/pc-editor → RowExpandCollaboratorEditor}/index.js +7 -6
  63. package/lib/RowExpandEditor/{date-editor/pc-editor.js → RowExpandDateEditor/index.js} +2 -2
  64. package/lib/RowExpandEditor/{department-editor/pc-editor.js → RowExpandDepartmentEditor/index.js} +49 -44
  65. package/lib/RowExpandEditor/{digital-sign-editor/pc-editor → RowExpandDigitalSignEditor}/index.css +1 -1
  66. package/lib/RowExpandEditor/{digital-sign-editor/pc-editor → RowExpandDigitalSignEditor}/index.js +11 -11
  67. package/lib/RowExpandEditor/{duration-editor/pc-editor.js → RowExpandDurationEditor/index.js} +2 -2
  68. package/lib/RowExpandEditor/RowExpandEmailEditor/index.css +2 -0
  69. package/lib/RowExpandEditor/{email-editor/pc-editor → RowExpandEmailEditor}/index.js +3 -3
  70. package/lib/RowExpandEditor/RowExpandFileEditor/index.css +1 -0
  71. package/lib/RowExpandEditor/{file-editor/pc-editor → RowExpandFileEditor}/index.js +9 -9
  72. package/lib/RowExpandEditor/{geolocation-editor/pc-editor → RowExpandGeolocationEditor}/index.js +11 -10
  73. package/lib/RowExpandEditor/{image-editor/pc-editor → RowExpandImageEditor}/index.js +9 -9
  74. package/lib/RowExpandEditor/{long-text-editor/pc-editor → RowExpandLongTextEditor}/index.js +7 -7
  75. package/lib/RowExpandEditor/{multiple-select-editor/pc-editor → RowExpandMultipleSelectEditor}/index.css +1 -1
  76. package/lib/RowExpandEditor/{multiple-select-editor/pc-editor → RowExpandMultipleSelectEditor}/index.js +6 -6
  77. package/lib/RowExpandEditor/{number-editor/pc-editor.js → RowExpandNumberEditor/index.js} +2 -2
  78. package/lib/RowExpandEditor/RowExpandRateEditor/index.css +13 -0
  79. package/lib/RowExpandEditor/{rate-editor/pc-editor.js → RowExpandRateEditor/index.js} +3 -2
  80. package/lib/RowExpandEditor/{single-select-editor/pc-editor → RowExpandSingleSelectorEditor}/index.js +17 -17
  81. package/lib/RowExpandEditor/{text-editor/pc-editor → RowExpandTextEditor}/index.js +7 -7
  82. package/lib/RowExpandEditor/{url-editor/pc-editor → RowExpandUrlEditor}/index.js +6 -6
  83. package/lib/RowExpandEditor/constants.js +34 -34
  84. package/lib/RowExpandFormatter/{department-formatter/pc-formatter.js → RowExpandDepartmentFormatter/index.js} +2 -2
  85. package/lib/RowExpandFormatter/{email-formatter → RowExpandEmailFormatter}/index.css +4 -4
  86. package/lib/RowExpandFormatter/RowExpandRateFormatter/index.css +5 -0
  87. package/lib/RowExpandFormatter/constants.js +17 -17
  88. package/lib/RowExpandFormatter/index.css +18 -33
  89. package/lib/RowExpandFormatter/index.js +1 -1
  90. package/lib/SelectItem/index.js +33 -57
  91. package/lib/SingleSelectEditor/index.js +14 -9
  92. package/lib/SvgIcon/index.js +20 -15
  93. package/lib/assets/icons/check.svg +12 -0
  94. package/lib/assets/icons/cross.svg +13 -0
  95. package/lib/assets/icons/dot.svg +9 -0
  96. package/lib/constants/index.js +2 -3
  97. package/lib/css/mb-cell-editor.css +1 -1
  98. package/lib/index.js +6 -69
  99. package/lib/locales/de.json +1 -3
  100. package/lib/locales/en.json +1 -3
  101. package/lib/locales/es.json +1 -3
  102. package/lib/locales/fr.json +1 -3
  103. package/lib/locales/pt.json +1 -3
  104. package/lib/locales/ru.json +1 -3
  105. package/lib/locales/zh-CN.json +1 -3
  106. package/lib/select-editor/index.js +20 -27
  107. package/lib/select-editor/mb-select-editor/index.css +127 -0
  108. package/lib/select-editor/mb-select-editor/index.js +197 -0
  109. package/lib/select-editor/{pc-editor → pc-select-editor}/index.css +1 -1
  110. package/lib/select-editor/{pc-editor → pc-select-editor}/index.js +7 -7
  111. package/lib/select-editor/select-editor-option.js +84 -0
  112. package/lib/utils/editor-utils.js +2 -6
  113. package/lib/utils/get-event-transfer.js +1 -2
  114. package/lib/utils/utils.js +2 -11
  115. package/package.json +2 -2
  116. package/lib/BodyPortal/index.js +0 -29
  117. package/lib/CheckboxEditor/mb-editor.js +0 -99
  118. package/lib/CheckboxEditor/pc-editor.js +0 -118
  119. package/lib/CollaboratorEditor/mb-editor/index.css +0 -41
  120. package/lib/CollaboratorEditor/mb-editor/index.js +0 -88
  121. package/lib/DateEditor/mb-editor/custom-rc-calendar.css +0 -118
  122. package/lib/DateEditor/mb-editor/index.css +0 -39
  123. package/lib/DateEditor/mb-editor/index.js +0 -215
  124. package/lib/DepartmentSingleSelectEditor/index.js +0 -34
  125. package/lib/DepartmentSingleSelectEditor/mb-editor/index.css +0 -4
  126. package/lib/DepartmentSingleSelectEditor/mb-editor/index.js +0 -227
  127. package/lib/DigitalSignEditor/mb-editor/index.css +0 -35
  128. package/lib/DigitalSignEditor/mb-editor/index.js +0 -144
  129. package/lib/DigitalSignEditor/pc-editor/index.js +0 -181
  130. package/lib/FileEditor/files-previewer/mb-previewer/file-previewer/index.js +0 -122
  131. package/lib/FileEditor/files-previewer/mb-previewer/index.css +0 -39
  132. package/lib/FileEditor/files-previewer/mb-previewer/index.js +0 -64
  133. package/lib/FileEditor/files-previewer/pc-previewer/index.js +0 -276
  134. package/lib/FileEditor/mb-editor/index.css +0 -10
  135. package/lib/FileEditor/mb-editor/index.js +0 -136
  136. package/lib/FileEditor/pc-editor/addition-previewer/index.css +0 -1
  137. package/lib/FileEditor/pc-editor/addition-previewer/local-file-addition/index.css +0 -1
  138. package/lib/FileEditor/pc-editor/index.css +0 -5
  139. package/lib/FileEditor/pc-editor/index.js +0 -274
  140. package/lib/GeolocationEditor/mb-editor/country-editor.js +0 -79
  141. package/lib/GeolocationEditor/mb-editor/index.css +0 -11
  142. package/lib/GeolocationEditor/mb-editor/index.js +0 -125
  143. package/lib/GeolocationEditor/mb-editor/location-editor.js +0 -101
  144. package/lib/GeolocationEditor/mb-editor/map-editor/index.css +0 -11
  145. package/lib/GeolocationEditor/mb-editor/map-editor/index.js +0 -474
  146. package/lib/GeolocationEditor/mb-editor/map-selection-editor/index.css +0 -158
  147. package/lib/GeolocationEditor/mb-editor/map-selection-editor/index.js +0 -530
  148. package/lib/GeolocationEditor/mb-editor/province-city-editor.js +0 -77
  149. package/lib/GeolocationEditor/mb-editor/province-editor.js +0 -76
  150. package/lib/GeolocationEditor/pc-editor/index.js +0 -247
  151. package/lib/ImageEditor/mb-editor/index.css +0 -29
  152. package/lib/ImageEditor/mb-editor/index.js +0 -136
  153. package/lib/ImageEditor/pc-editor/images-previewer/index.js +0 -140
  154. package/lib/ImageEditor/pc-editor/index.css +0 -24
  155. package/lib/ImageEditor/pc-editor/index.js +0 -194
  156. package/lib/MobileFullScreenPage/body/index.css +0 -9
  157. package/lib/MobileFullScreenPage/body/index.js +0 -23
  158. package/lib/MobileFullScreenPage/header/index.css +0 -39
  159. package/lib/MobileFullScreenPage/header/index.js +0 -38
  160. package/lib/MobileFullScreenPage/index.css +0 -13
  161. package/lib/MobileFullScreenPage/index.js +0 -73
  162. package/lib/MobileModal/index.js +0 -41
  163. package/lib/MobileOperationSheet/index.css +0 -27
  164. package/lib/MobileOperationSheet/index.js +0 -92
  165. package/lib/MobileSelector/empty/index.css +0 -3
  166. package/lib/MobileSelector/empty/index.js +0 -23
  167. package/lib/MobileSelector/index.css +0 -32
  168. package/lib/MobileSelector/index.js +0 -57
  169. package/lib/MobileSelector/option/index.css +0 -28
  170. package/lib/MobileSelector/option/index.js +0 -36
  171. package/lib/MobileSelector/options/index.css +0 -8
  172. package/lib/MobileSelector/options/index.js +0 -18
  173. package/lib/MobileSelector/search/index.css +0 -7
  174. package/lib/MobileSelector/search/index.js +0 -26
  175. package/lib/MobileUpload/index.css +0 -1
  176. package/lib/MobileUpload/index.js +0 -160
  177. package/lib/RowExpand/index.js +0 -24
  178. package/lib/RowExpandEditor/add-btn/index.js +0 -24
  179. package/lib/RowExpandEditor/add-btn/mb-add-btn/index.css +0 -3
  180. package/lib/RowExpandEditor/add-btn/mb-add-btn/index.js +0 -19
  181. package/lib/RowExpandEditor/checkbox-editor/index.js +0 -25
  182. package/lib/RowExpandEditor/checkbox-editor/mb-editor/index.css +0 -6
  183. package/lib/RowExpandEditor/checkbox-editor/mb-editor/index.js +0 -36
  184. package/lib/RowExpandEditor/collaborator-editor/index.js +0 -24
  185. package/lib/RowExpandEditor/collaborator-editor/mb-editor/index.css +0 -9
  186. package/lib/RowExpandEditor/collaborator-editor/mb-editor/index.js +0 -163
  187. package/lib/RowExpandEditor/date-editor/index.js +0 -24
  188. package/lib/RowExpandEditor/date-editor/mb-editor.js +0 -82
  189. package/lib/RowExpandEditor/department-editor/index.js +0 -24
  190. package/lib/RowExpandEditor/department-editor/mb-editor.js +0 -65
  191. package/lib/RowExpandEditor/digital-sign-editor/index.js +0 -24
  192. package/lib/RowExpandEditor/digital-sign-editor/mb-editor/index.css +0 -1
  193. package/lib/RowExpandEditor/digital-sign-editor/mb-editor/index.js +0 -130
  194. package/lib/RowExpandEditor/duration-editor/index.js +0 -24
  195. package/lib/RowExpandEditor/duration-editor/mb-editor.js +0 -71
  196. package/lib/RowExpandEditor/email-editor/index.js +0 -24
  197. package/lib/RowExpandEditor/email-editor/mb-editor/index.css +0 -1
  198. package/lib/RowExpandEditor/email-editor/mb-editor/index.js +0 -84
  199. package/lib/RowExpandEditor/email-editor/pc-editor/index.css +0 -1
  200. package/lib/RowExpandEditor/file-editor/index.js +0 -24
  201. package/lib/RowExpandEditor/file-editor/mb-editor/index.js +0 -114
  202. package/lib/RowExpandEditor/file-editor/pc-editor/index.css +0 -1
  203. package/lib/RowExpandEditor/geolocation-editor/index.js +0 -24
  204. package/lib/RowExpandEditor/geolocation-editor/mb-editor/index.js +0 -100
  205. package/lib/RowExpandEditor/image-editor/index.js +0 -24
  206. package/lib/RowExpandEditor/image-editor/mb-editor/index.css +0 -30
  207. package/lib/RowExpandEditor/image-editor/mb-editor/index.js +0 -109
  208. package/lib/RowExpandEditor/long-text-editor/index.js +0 -24
  209. package/lib/RowExpandEditor/long-text-editor/mb-editor/editor/index.css +0 -10
  210. package/lib/RowExpandEditor/long-text-editor/mb-editor/editor/index.js +0 -80
  211. package/lib/RowExpandEditor/long-text-editor/mb-editor/index.css +0 -3
  212. package/lib/RowExpandEditor/long-text-editor/mb-editor/index.js +0 -91
  213. package/lib/RowExpandEditor/multiple-select-editor/index.js +0 -24
  214. package/lib/RowExpandEditor/multiple-select-editor/mb-editor/index.js +0 -154
  215. package/lib/RowExpandEditor/number-editor/index.js +0 -24
  216. package/lib/RowExpandEditor/number-editor/mb-editor/index.css +0 -3
  217. package/lib/RowExpandEditor/number-editor/mb-editor/index.js +0 -76
  218. package/lib/RowExpandEditor/rate-editor/index.css +0 -34
  219. package/lib/RowExpandEditor/rate-editor/index.js +0 -25
  220. package/lib/RowExpandEditor/rate-editor/mb-editor.js +0 -92
  221. package/lib/RowExpandEditor/right-angle/index.css +0 -6
  222. package/lib/RowExpandEditor/right-angle/index.js +0 -17
  223. package/lib/RowExpandEditor/single-select-editor/index.js +0 -24
  224. package/lib/RowExpandEditor/single-select-editor/mb-editor/index.css +0 -8
  225. package/lib/RowExpandEditor/single-select-editor/mb-editor/index.js +0 -134
  226. package/lib/RowExpandEditor/text-editor/index.js +0 -24
  227. package/lib/RowExpandEditor/text-editor/mb-editor/index.css +0 -14
  228. package/lib/RowExpandEditor/text-editor/mb-editor/index.js +0 -37
  229. package/lib/RowExpandEditor/url-editor/index.js +0 -24
  230. package/lib/RowExpandEditor/url-editor/mb-editor/index.css +0 -17
  231. package/lib/RowExpandEditor/url-editor/mb-editor/index.js +0 -87
  232. package/lib/RowExpandFormatter/department-formatter/index.js +0 -19
  233. package/lib/RowExpandFormatter/department-formatter/mb-formatter.js +0 -20
  234. package/lib/RowExpandFormatter/rate-formatter/index.css +0 -5
  235. package/lib/RowExpandView/body/index.css +0 -173
  236. package/lib/RowExpandView/body/index.js +0 -111
  237. package/lib/RowExpandView/column-content/index.css +0 -27
  238. package/lib/RowExpandView/column-content/index.js +0 -25
  239. package/lib/RowExpandView/index.css +0 -3
  240. package/lib/RowExpandView/index.js +0 -178
  241. package/lib/select-editor/mb-editor/index.css +0 -1
  242. package/lib/select-editor/mb-editor/index.js +0 -105
  243. /package/lib/CollaboratorEditor/{pc-editor → pc-collaborator-editor}/index.css +0 -0
  244. /package/lib/CollaboratorEditor/{pc-editor → pc-collaborator-editor}/index.js +0 -0
  245. /package/lib/{constants/departments.js → Department-editor/constants.js} +0 -0
  246. /package/lib/{DepartmentMultipleSelectEditor → Department-editor/department-multiple-select}/index.css +0 -0
  247. /package/lib/{utils/departments.js → Department-editor/utils.js} +0 -0
  248. /package/lib/DigitalSignEditor/{pc-editor/index.css → index.css} +0 -0
  249. /package/lib/FileEditor/files-previewer/{pc-previewer/file-previewer → file-previewer}/file-name-editor/index.css +0 -0
  250. /package/lib/GeolocationEditor/{pc-editor/map-editor → map-editor}/large-editor/index.css +0 -0
  251. /package/lib/GeolocationEditor/{pc-editor/map-selection-editor → map-selection-editor}/large-editor/index.css +0 -0
  252. /package/lib/GeolocationEditor/{pc-editor/parse-geolocation.js → parse-geolocation.js} +0 -0
  253. /package/lib/GeolocationEditor/{pc-editor/selector-list.js → selector-list.js} +0 -0
  254. /package/lib/ImageEditor/{pc-editor/addition-previewer → addition-previewer}/image-link/index.css +0 -0
  255. /package/lib/ImageEditor/{pc-editor/addition-previewer → addition-previewer}/index.css +0 -0
  256. /package/lib/ImageEditor/{pc-editor/addition-previewer → addition-previewer}/local-image-addition/index.css +0 -0
  257. /package/lib/LinkEditor/{mb-popover → mb-link-editor-popover}/index.js +0 -0
  258. /package/lib/LinkEditor/{pc-popover → pc-link-editor-popover}/index.css +0 -0
  259. /package/lib/LinkEditor/{pc-popover → pc-link-editor-popover}/index.js +0 -0
  260. /package/lib/RowExpandEditor/{add-btn/pc-add-btn → RowExpandAddBtn}/index.css +0 -0
  261. /package/lib/RowExpandEditor/{checkbox-editor → RowExpandCheckboxEditor}/index.css +0 -0
  262. /package/lib/RowExpandEditor/{geolocation-editor/pc-editor → RowExpandGeolocationEditor}/index.css +0 -0
  263. /package/lib/RowExpandEditor/{image-editor/pc-editor → RowExpandImageEditor}/index.css +0 -0
  264. /package/lib/RowExpandEditor/{long-text-editor/pc-editor → RowExpandLongTextEditor}/index.css +0 -0
  265. /package/lib/RowExpandEditor/{single-select-editor/pc-editor → RowExpandSingleSelectorEditor}/index.css +0 -0
  266. /package/lib/RowExpandEditor/{text-editor/pc-editor → RowExpandTextEditor}/index.css +0 -0
  267. /package/lib/RowExpandEditor/{url-editor/pc-editor → RowExpandUrlEditor}/index.css +0 -0
  268. /package/lib/RowExpandFormatter/{email-formatter → RowExpandEmailFormatter}/index.js +0 -0
  269. /package/lib/RowExpandFormatter/{file-formatter → RowExpandFileFormatter}/index.css +0 -0
  270. /package/lib/RowExpandFormatter/{file-formatter → RowExpandFileFormatter}/index.js +0 -0
  271. /package/lib/RowExpandFormatter/{file-formatter → RowExpandFileFormatter}/row-expand-file-item-formatter.js +0 -0
  272. /package/lib/RowExpandFormatter/{formula-formatter → RowExpandFormulaFormatter}/index.js +0 -0
  273. /package/lib/RowExpandFormatter/{image-formatter → RowExpandImageFormatter}/index.css +0 -0
  274. /package/lib/RowExpandFormatter/{image-formatter → RowExpandImageFormatter}/index.js +0 -0
  275. /package/lib/RowExpandFormatter/{image-formatter → RowExpandImageFormatter}/row-expand-image-item-formatter.js +0 -0
  276. /package/lib/RowExpandFormatter/{link-formatter → RowExpandLinkFormatter}/collaborator-item-formatter.js +0 -0
  277. /package/lib/RowExpandFormatter/{link-formatter → RowExpandLinkFormatter}/index.css +0 -0
  278. /package/lib/RowExpandFormatter/{link-formatter → RowExpandLinkFormatter}/index.js +0 -0
  279. /package/lib/RowExpandFormatter/{link-formatter → RowExpandLinkFormatter}/value-display-utils.js +0 -0
  280. /package/lib/RowExpandFormatter/{rate-formatter → RowExpandRateFormatter}/index.js +0 -0
  281. /package/lib/RowExpandFormatter/{url-formatter → RowExpandUrlFormatter}/index.css +0 -0
  282. /package/lib/RowExpandFormatter/{url-formatter → RowExpandUrlFormatter}/index.js +0 -0
@@ -7,29 +7,123 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports.default = void 0;
9
9
  var _react = _interopRequireWildcard(require("react"));
10
- var _reactResponsive = _interopRequireDefault(require("react-responsive"));
11
- var _pcEditor = _interopRequireDefault(require("./pc-editor"));
12
- var _mbEditor = _interopRequireDefault(require("./mb-editor"));
10
+ var _classnames = _interopRequireDefault(require("classnames"));
11
+ var _SvgIcon = _interopRequireDefault(require("../SvgIcon"));
12
+ var _utils = require("../utils/utils");
13
+ var _constants = require("../constants");
13
14
  require("./index.css");
14
- const CheckboxEditor = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
15
- let {
16
- isMobile,
17
- ...props
18
- } = _ref;
19
- if (isMobile === false) return /*#__PURE__*/_react.default.createElement(_pcEditor.default, Object.assign({}, props, {
20
- ref: ref
21
- }));
22
- if (isMobile === true) return /*#__PURE__*/_react.default.createElement(_mbEditor.default, Object.assign({}, props, {
23
- ref: ref
24
- }));
25
- return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_reactResponsive.default, {
26
- query: "(min-width: 768px)"
27
- }, /*#__PURE__*/_react.default.createElement(_pcEditor.default, Object.assign({}, props, {
28
- ref: ref
29
- }))), /*#__PURE__*/_react.default.createElement(_reactResponsive.default, {
30
- query: "(max-width: 768px)"
31
- }, /*#__PURE__*/_react.default.createElement(_mbEditor.default, Object.assign({}, props, {
32
- ref: ref
33
- }))));
34
- });
15
+ class CheckboxEditor extends _react.Component {
16
+ constructor(props) {
17
+ super(props);
18
+ this.onKeyDown = event => {
19
+ const {
20
+ isEditorShow,
21
+ readOnly
22
+ } = this.props;
23
+ if (event.keyCode === _constants.KeyCodes.Enter && isEditorShow && !readOnly) {
24
+ this.setState({
25
+ value: !this.state.value
26
+ });
27
+ }
28
+ };
29
+ this.getValue = () => {
30
+ const {
31
+ value
32
+ } = this.state;
33
+ return value;
34
+ };
35
+ this.updateValue = value => {
36
+ if (value === this.state.value) {
37
+ return;
38
+ }
39
+ this.setState({
40
+ value
41
+ });
42
+ };
43
+ this.onChangeCheckboxValue = event => {
44
+ if (event) {
45
+ event.stopPropagation();
46
+ event.nativeEvent.stopImmediatePropagation();
47
+ event.persist();
48
+ }
49
+ const {
50
+ value
51
+ } = this.state;
52
+ const newValue = !value;
53
+ this.setState({
54
+ value: newValue
55
+ }, () => {
56
+ if (this.props.onCommit) {
57
+ this.props.onCommit(event);
58
+ }
59
+ });
60
+ };
61
+ this.renderIcon = (symbol, color) => {
62
+ let className = 'dtable-ui-checkbox-check-mark';
63
+ if (symbol.startsWith('dtable-icon')) {
64
+ return /*#__PURE__*/_react.default.createElement("span", {
65
+ className: "dtable-font ".concat(symbol, " ").concat(className || ''),
66
+ style: {
67
+ color
68
+ }
69
+ });
70
+ }
71
+ className = (0, _classnames.default)(className, {
72
+ 'dtable-ui-checkbox-check-svg': !(symbol !== null && symbol !== void 0 && symbol.startsWith('dtable-icon')),
73
+ 'scale-icon': _utils.isMobile
74
+ });
75
+ return /*#__PURE__*/_react.default.createElement(_SvgIcon.default, {
76
+ className: className,
77
+ symbol: symbol,
78
+ color: color
79
+ });
80
+ };
81
+ this.state = {
82
+ value: props.value || false
83
+ };
84
+ }
85
+ componentDidMount() {
86
+ document.addEventListener('keydown', this.onKeyDown);
87
+ }
88
+ componentWillUnmount() {
89
+ document.removeEventListener('keydown', this.onKeyDown);
90
+ }
91
+ componentDidUpdate(prevProps) {
92
+ const {
93
+ value
94
+ } = this.props;
95
+ if (value !== prevProps.value) {
96
+ this.setState({
97
+ value
98
+ });
99
+ }
100
+ }
101
+ render() {
102
+ var _column$data;
103
+ const {
104
+ className,
105
+ style,
106
+ column
107
+ } = this.props;
108
+ const {
109
+ value
110
+ } = this.state;
111
+ const checkboxProps = {
112
+ ...(!_utils.isMobile && {
113
+ onClick: this.onChangeCheckboxValue
114
+ }),
115
+ ...(_utils.isMobile && {
116
+ onTouchStart: this.onChangeCheckboxValue
117
+ })
118
+ };
119
+ let checkboxStyle = column === null || column === void 0 ? void 0 : (_column$data = column.data) === null || _column$data === void 0 ? void 0 : _column$data.checkbox_style;
120
+ if (!checkboxStyle || Object.keys(checkboxStyle).length < 2) {
121
+ checkboxStyle = _constants.DEFAULT_CHECKBOX_MARK_STYLE;
122
+ }
123
+ return /*#__PURE__*/_react.default.createElement("div", Object.assign({
124
+ className: (0, _classnames.default)('dtable-ui-checkbox-editor', className),
125
+ style: style || {}
126
+ }, checkboxProps), value && this.renderIcon(checkboxStyle.type, checkboxStyle.color));
127
+ }
128
+ }
35
129
  var _default = exports.default = CheckboxEditor;
@@ -1,6 +1,6 @@
1
1
  @import url('../css/cell-formatter.css');
2
2
 
3
- .dtable-ui.checkbox-formatter .checkbox-checked-mark {
3
+ .dtable-ui.checkbox-formatter .dtable-ui-checkbox-check-mark {
4
4
  color: #20c933;
5
5
  display: flex;
6
6
  align-items: center;
@@ -9,8 +9,32 @@ var _react = _interopRequireDefault(require("react"));
9
9
  var _classnames = _interopRequireDefault(require("classnames"));
10
10
  var _SvgIcon = _interopRequireDefault(require("../SvgIcon"));
11
11
  var _constants = require("../constants");
12
+ var _utils = require("../utils/utils");
12
13
  require("./index.css");
13
14
  class CheckboxFormatter extends _react.default.PureComponent {
15
+ constructor() {
16
+ super(...arguments);
17
+ this.renderIcon = (symbol, color) => {
18
+ let className = 'dtable-ui-checkbox-check-mark';
19
+ if (symbol.startsWith('dtable-icon')) {
20
+ return /*#__PURE__*/_react.default.createElement("span", {
21
+ className: "dtable-font ".concat(symbol, " ").concat(className || ''),
22
+ style: {
23
+ color
24
+ }
25
+ });
26
+ }
27
+ className = (0, _classnames.default)(className, {
28
+ 'dtable-ui-checkbox-check-svg': !(symbol !== null && symbol !== void 0 && symbol.startsWith('dtable-icon')),
29
+ 'scale-icon': _utils.isMobile
30
+ });
31
+ return /*#__PURE__*/_react.default.createElement(_SvgIcon.default, {
32
+ className: className,
33
+ symbol: symbol,
34
+ color: color
35
+ });
36
+ };
37
+ }
14
38
  render() {
15
39
  let {
16
40
  value,
@@ -25,16 +49,7 @@ class CheckboxFormatter extends _react.default.PureComponent {
25
49
  const classname = (0, _classnames.default)('dtable-ui cell-formatter-container checkbox-formatter d-flex align-items-center justify-content-center', containerClassName);
26
50
  return /*#__PURE__*/_react.default.createElement("div", {
27
51
  className: classname
28
- }, checkboxStyle.type.startsWith('dtable-icon') ? /*#__PURE__*/_react.default.createElement("span", {
29
- className: "dtable-font ".concat(checkboxStyle.type, " checkbox-checked-mark"),
30
- style: {
31
- color: checkboxStyle.color
32
- }
33
- }) : /*#__PURE__*/_react.default.createElement(_SvgIcon.default, {
34
- className: "dtable-ui-checkbox-check-svg",
35
- symbol: checkboxStyle.type,
36
- color: checkboxStyle.color
37
- }));
52
+ }, this.renderIcon(checkboxStyle.type, checkboxStyle.color));
38
53
  }
39
54
  }
40
55
  CheckboxFormatter.defaultProps = {
@@ -1,41 +1,29 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
- var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports.default = void 0;
9
- var _react = _interopRequireWildcard(require("react"));
8
+ var _react = _interopRequireDefault(require("react"));
10
9
  var _reactResponsive = _interopRequireDefault(require("react-responsive"));
11
- var _pcEditor = _interopRequireDefault(require("./pc-editor"));
12
- var _mbEditor = _interopRequireDefault(require("./mb-editor"));
10
+ var _pcCollaboratorEditor = _interopRequireDefault(require("./pc-collaborator-editor"));
11
+ var _mbCollaboratorEditor = _interopRequireDefault(require("./mb-collaborator-editor"));
13
12
  require("./index.css");
14
- const CollaboratorEditor = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
13
+ const CollaboratorEditor = _ref => {
15
14
  let {
16
- isMobile,
17
15
  value: oldValue,
18
16
  ...props
19
17
  } = _ref;
20
18
  const value = Array.isArray(oldValue) ? oldValue : [];
21
- if (isMobile === false) return /*#__PURE__*/_react.default.createElement(_pcEditor.default, Object.assign({}, props, {
22
- value: value,
23
- ref: ref
24
- }));
25
- if (isMobile === true) return /*#__PURE__*/_react.default.createElement(_mbEditor.default, Object.assign({}, props, {
26
- value: value,
27
- ref: ref
28
- }));
29
19
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_reactResponsive.default, {
30
- query: "(min-width: 768px)"
31
- }, /*#__PURE__*/_react.default.createElement(_pcEditor.default, Object.assign({}, props, {
32
- value: value,
33
- ref: ref
20
+ query: '(min-width: 768px)'
21
+ }, /*#__PURE__*/_react.default.createElement(_pcCollaboratorEditor.default, Object.assign({}, props, {
22
+ value: value
34
23
  }))), /*#__PURE__*/_react.default.createElement(_reactResponsive.default, {
35
- query: "(max-width: 768px)"
36
- }, /*#__PURE__*/_react.default.createElement(_mbEditor.default, Object.assign({}, props, {
37
- value: value,
38
- ref: ref
24
+ query: '(max-width: 767.8px)'
25
+ }, /*#__PURE__*/_react.default.createElement(_mbCollaboratorEditor.default, Object.assign({}, props, {
26
+ value: value
39
27
  }))));
40
- });
28
+ };
41
29
  var _default = exports.default = CollaboratorEditor;
@@ -0,0 +1,85 @@
1
+ @import url('../../css/mb-cell-editor.css');
2
+
3
+ @media screen and (max-width: 767.8px) {
4
+ .dtable-ui-mb-collaborator-editor-body .mb-search-collaborator-items {
5
+ padding: 8px 16px;
6
+ margin-top: 20px;
7
+ border-top: 1px solid #e9e9e9;
8
+ border-bottom: 1px solid #e9e9e9;
9
+ background-color: #fff;
10
+ }
11
+
12
+ .dtable-ui-mb-collaborator-editor-body .mb-search-collaborator-items > input {
13
+ outline: none;
14
+ height: 30px;
15
+ padding: 0;
16
+ line-height: 30px;
17
+ border: none;
18
+ }
19
+
20
+ .dtable-ui-mb-collaborator-editor-body .mb-search-collaborator-items > input:focus,
21
+ .dtable-ui-mb-collaborator-editor-body .mb-search-collaborator-items > input:active {
22
+ outline: none;
23
+ box-shadow: none;
24
+ }
25
+
26
+ .dtable-ui-mb-collaborator-editor-body .mb-collaborators-container {
27
+ flex: 1;
28
+ display: flex;
29
+ flex-direction: column;
30
+ margin-top: 10px;
31
+ min-height: 0;
32
+ }
33
+
34
+ .dtable-ui-mb-collaborator-editor-body .mb-collaborators-container .title {
35
+ padding: 6px 16px;
36
+ border-bottom: 1px solid #e9e9e9;
37
+ }
38
+
39
+ .dtable-ui-mb-collaborator-editor-body .mb-collaborators-container .content {
40
+ flex: 1;
41
+ overflow: auto;
42
+ display: flex;
43
+ flex-direction: column;
44
+ border-bottom: 1px solid #e9e9e9;
45
+ }
46
+
47
+ .dtable-ui-mb-collaborator-editor-body .search-result-none {
48
+ padding: 16px 0 16px 16px;
49
+ }
50
+
51
+ .dtable-ui-mb-collaborator-editor-body .mb-collaborator-option-item {
52
+ display: flex;
53
+ align-items: center;
54
+ justify-content: space-between;
55
+ height: 50px;
56
+ padding: 10px 10px 10px 16px;
57
+ font-size: 13px;
58
+ background-color: #fff;
59
+ }
60
+
61
+ .dtable-ui-mb-collaborator-editor-body .mb-collaborator-option-item {
62
+ border-bottom: 1px solid #e9e9e9;
63
+ }
64
+
65
+ .dtable-ui-mb-collaborator-editor-body .mb-collaborator-option-item .mb-collaborator-info {
66
+ display: flex;
67
+ align-items: center;
68
+ }
69
+
70
+ .dtable-ui-mb-collaborator-editor-body .mb-collaborator-option-item .collaborator-avatar img {
71
+ width: 24px;
72
+ height: 24px;
73
+ border-radius: 50%;
74
+ }
75
+
76
+ .dtable-ui-mb-collaborator-editor-body .mb-collaborator-option-item .collaborator-name {
77
+ padding: 0 10px;
78
+ overflow: hidden;
79
+ }
80
+
81
+ .dtable-ui-mb-collaborator-editor-body .mb-collaborator-option-item .dtable-font {
82
+ font-size: 12px;
83
+ color: #798d99;
84
+ }
85
+ }
@@ -0,0 +1,148 @@
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 _dtableUtils = require("dtable-utils");
10
+ var _MBEditorHeader = _interopRequireDefault(require("../../MBEditorHeader"));
11
+ var _DTableSearchInput = _interopRequireDefault(require("../../DTableSearchInput"));
12
+ var _lang = require("../../lang");
13
+ require("./index.css");
14
+ class MBCollaboratorEditor extends _react.default.Component {
15
+ constructor(props) {
16
+ super(props);
17
+ this.handleHistoryBack = e => {
18
+ e.preventDefault();
19
+ this.props.onClosePopover();
20
+ };
21
+ this.onContainerClick = event => {
22
+ if (this.editorPopover && this.editorPopover.contains(event.target)) {
23
+ event.stopPropagation();
24
+ event.nativeEvent.stopImmediatePropagation();
25
+ return false;
26
+ }
27
+ };
28
+ this.onChangeSearch = newValue => {
29
+ let {
30
+ searchVal
31
+ } = this.state;
32
+ if (searchVal === newValue) return;
33
+ this.setState({
34
+ searchVal: newValue
35
+ });
36
+ };
37
+ this.getSelectedCollaborators = () => {
38
+ let {
39
+ value,
40
+ collaborators
41
+ } = this.props;
42
+ if (!Array.isArray(value)) {
43
+ return [];
44
+ }
45
+ return collaborators.filter(collaborator => {
46
+ return value.indexOf(collaborator.email) > -1;
47
+ });
48
+ };
49
+ this.getFilteredCollaborators = () => {
50
+ let {
51
+ collaborators
52
+ } = this.props;
53
+ let {
54
+ searchVal
55
+ } = this.state;
56
+ return searchVal ? (0, _dtableUtils.searchCollaborators)(collaborators, searchVal) : collaborators;
57
+ };
58
+ this.onCollaboratorClick = collaborator => {
59
+ this.props.onCommit(collaborator);
60
+ };
61
+ this.onRemoveCollaborator = collaborator => {
62
+ this.props.onCommit(collaborator);
63
+ };
64
+ this.renderFilteredCollaborators = collaborators => {
65
+ let {
66
+ value = []
67
+ } = this.props;
68
+ return collaborators.map((collaborator, index) => {
69
+ const isSelected = value.includes(collaborator.email);
70
+ return /*#__PURE__*/_react.default.createElement("div", {
71
+ className: "mb-collaborator-option-item",
72
+ key: index,
73
+ onMouseDown: this.onCollaboratorClick.bind(this, collaborator)
74
+ }, /*#__PURE__*/_react.default.createElement("span", {
75
+ className: "mb-collaborator-info"
76
+ }, /*#__PURE__*/_react.default.createElement("span", {
77
+ className: "collaborator-avatar"
78
+ }, /*#__PURE__*/_react.default.createElement("img", {
79
+ src: collaborator.avatar_url,
80
+ width: "24",
81
+ height: "24",
82
+ alt: "avatar"
83
+ })), /*#__PURE__*/_react.default.createElement("span", {
84
+ className: "collaborator-name"
85
+ }, collaborator.name)), isSelected && /*#__PURE__*/_react.default.createElement("i", {
86
+ className: "mb-collaborator-checked dtable-font dtable-icon-check-mark"
87
+ }));
88
+ });
89
+ };
90
+ this.setEditorPopover = editorPopover => {
91
+ this.editorPopover = editorPopover;
92
+ };
93
+ this.state = {
94
+ searchVal: ''
95
+ };
96
+ }
97
+ componentDidMount() {
98
+ history.pushState(null, null, '#'); // eslint-disable-line
99
+ window.addEventListener('popstate', this.handleHistoryBack, false);
100
+ }
101
+ componentWillUnmount() {
102
+ window.removeEventListener('popstate', this.handleHistoryBack, false);
103
+ }
104
+ render() {
105
+ const {
106
+ column
107
+ } = this.props;
108
+ const {
109
+ searchVal
110
+ } = this.state;
111
+ let filteredCollaborators = this.getFilteredCollaborators();
112
+ return /*#__PURE__*/_react.default.createElement("div", {
113
+ ref: this.setEditorPopover,
114
+ className: "dtable-ui-mb-editor-popover mb-collaborator-editor-popover",
115
+ onClick: this.onContainerClick
116
+ }, /*#__PURE__*/_react.default.createElement(_MBEditorHeader.default, {
117
+ title: column.name,
118
+ leftContent: /*#__PURE__*/_react.default.createElement("i", {
119
+ className: "dtable-font dtable-icon-return"
120
+ }),
121
+ rightContent: /*#__PURE__*/_react.default.createElement("span", null, (0, _lang.getLocale)('Done')),
122
+ onLeftClick: this.props.onClose,
123
+ onRightClick: this.props.onClose
124
+ }), /*#__PURE__*/_react.default.createElement("div", {
125
+ className: "dtable-ui-mb-editor-body dtable-ui-mb-collaborator-editor-body"
126
+ }, /*#__PURE__*/_react.default.createElement("div", {
127
+ className: "mb-search-collaborator-items"
128
+ }, /*#__PURE__*/_react.default.createElement(_DTableSearchInput.default, {
129
+ autoFocus: true,
130
+ value: searchVal,
131
+ placeholder: (0, _lang.getLocale)('Search_collaborator'),
132
+ onChange: this.onChangeSearch
133
+ })), /*#__PURE__*/_react.default.createElement("div", {
134
+ className: "mb-collaborators-container"
135
+ }, /*#__PURE__*/_react.default.createElement("div", {
136
+ className: "title"
137
+ }, (0, _lang.getLocale)('Choose_a_collaborator')), /*#__PURE__*/_react.default.createElement("div", {
138
+ className: "content"
139
+ }, filteredCollaborators.length === 0 && /*#__PURE__*/_react.default.createElement("div", {
140
+ className: "search-result-none"
141
+ }, (0, _lang.getLocale)('No_collaborators_available')), filteredCollaborators.length > 0 && this.renderFilteredCollaborators(filteredCollaborators)))));
142
+ }
143
+ }
144
+ MBCollaboratorEditor.defaultProps = {
145
+ isReadOnly: false,
146
+ value: []
147
+ };
148
+ var _default = exports.default = MBCollaboratorEditor;
@@ -19,7 +19,9 @@ function DTableCommonAddTool(_ref) {
19
19
  return /*#__PURE__*/_react.default.createElement("div", {
20
20
  className: "dtable-ui add-item-btn ".concat(className ? className : ''),
21
21
  style: style,
22
- onClick: e => callBack(e)
22
+ onClick: e => {
23
+ callBack(e);
24
+ }
23
25
  }, !hideIcon && /*#__PURE__*/_react.default.createElement("span", {
24
26
  className: "dtable-font dtable-icon-add-table ".concat(addIconClassName || '')
25
27
  }), /*#__PURE__*/_react.default.createElement("span", {
@@ -8,9 +8,9 @@ Object.defineProperty(exports, "__esModule", {
8
8
  exports.default = void 0;
9
9
  var _react = _interopRequireWildcard(require("react"));
10
10
  var _classnames = _interopRequireDefault(require("classnames"));
11
- var _SelectedDepartments = _interopRequireDefault(require("../../../SelectedDepartments"));
12
- var _DepartmentMultipleSelectEditor = _interopRequireDefault(require("../../../DepartmentMultipleSelectEditor"));
13
- var _departments = require("../../../constants/departments");
11
+ var _selectedDepartments = _interopRequireDefault(require("../../../Department-editor/selected-departments"));
12
+ var _departmentMultipleSelect = _interopRequireDefault(require("../../../Department-editor/department-multiple-select"));
13
+ var _constants = require("../../../Department-editor/constants");
14
14
  var _commonHooks = require("../../../hooks/common-hooks");
15
15
  var _lang = require("../../../lang");
16
16
  function DepartmentMultipleSelectFilter(props) {
@@ -26,7 +26,7 @@ function DepartmentMultipleSelectFilter(props) {
26
26
  onClickOutside: () => setIsShowSelector(false)
27
27
  }, [selectedDepartments]);
28
28
  function renderUserDepartmentOptions() {
29
- return _departments.DEPARTMENT_SELECT_RANGE_OPTIONS.slice(0, 2).map((option, index) => {
29
+ return _constants.DEPARTMENT_SELECT_RANGE_OPTIONS.slice(0, 2).map((option, index) => {
30
30
  const {
31
31
  type,
32
32
  name
@@ -78,14 +78,14 @@ function DepartmentMultipleSelectFilter(props) {
78
78
  className: "selected-option"
79
79
  }, selectedDepartments.length > 0 ? /*#__PURE__*/_react.default.createElement("span", {
80
80
  className: "selected-option-show"
81
- }, /*#__PURE__*/_react.default.createElement(_SelectedDepartments.default, {
81
+ }, /*#__PURE__*/_react.default.createElement(_selectedDepartments.default, {
82
82
  value: selectedDepartments,
83
83
  departments: departments
84
84
  })) : /*#__PURE__*/_react.default.createElement("span", {
85
85
  className: "select-placeholder"
86
86
  }, (0, _lang.getLocale)('Select_department')), /*#__PURE__*/_react.default.createElement("span", {
87
87
  className: "dtable-font dtable-icon-down3"
88
- })), isShowSelector && /*#__PURE__*/_react.default.createElement(_DepartmentMultipleSelectEditor.default, {
88
+ })), isShowSelector && /*#__PURE__*/_react.default.createElement(_departmentMultipleSelect.default, {
89
89
  isShowSelectedDepartments: false,
90
90
  classNamePrefix: "filter",
91
91
  value: selectedDepartments,
@@ -8,9 +8,9 @@ Object.defineProperty(exports, "__esModule", {
8
8
  exports.default = void 0;
9
9
  var _react = _interopRequireWildcard(require("react"));
10
10
  var _classnames = _interopRequireDefault(require("classnames"));
11
- var _SelectedDepartments = _interopRequireDefault(require("../../../SelectedDepartments"));
12
- var _DepartmentSingleSelectEditor = _interopRequireDefault(require("../../../DepartmentSingleSelectEditor"));
13
- var _departments = require("../../../constants/departments");
11
+ var _selectedDepartments = _interopRequireDefault(require("../../../Department-editor/selected-departments"));
12
+ var _departmentSingleSelect = _interopRequireDefault(require("../../../Department-editor/department-single-select"));
13
+ var _constants = require("../../../Department-editor/constants");
14
14
  var _commonHooks = require("../../../hooks/common-hooks");
15
15
  var _lang = require("../../../lang");
16
16
  function DepartmentSingleSelectFilter(props) {
@@ -31,7 +31,7 @@ function DepartmentSingleSelectFilter(props) {
31
31
  }, [selectedDepartment]);
32
32
  function renderUserDepartmentOptions(onSelect) {
33
33
  if (!departments || departments.length === 0) return [];
34
- return _departments.DEPARTMENT_SELECT_RANGE_OPTIONS.slice(0, 2).map((option, index) => {
34
+ return _constants.DEPARTMENT_SELECT_RANGE_OPTIONS.slice(0, 2).map((option, index) => {
35
35
  const {
36
36
  type,
37
37
  name
@@ -76,14 +76,14 @@ function DepartmentSingleSelectFilter(props) {
76
76
  className: "selected-option"
77
77
  }, value ? /*#__PURE__*/_react.default.createElement("span", {
78
78
  className: "selected-option-show"
79
- }, /*#__PURE__*/_react.default.createElement(_SelectedDepartments.default, {
79
+ }, /*#__PURE__*/_react.default.createElement(_selectedDepartments.default, {
80
80
  value: selectedDepartmentIds,
81
81
  departments: departments
82
82
  })) : /*#__PURE__*/_react.default.createElement("span", {
83
83
  className: "select-placeholder"
84
84
  }, (0, _lang.getLocale)('Select_department')), /*#__PURE__*/_react.default.createElement("span", {
85
85
  className: "dtable-font dtable-icon-down3"
86
- })), isShowSelector && /*#__PURE__*/_react.default.createElement(_DepartmentSingleSelectEditor.default, {
86
+ })), isShowSelector && /*#__PURE__*/_react.default.createElement(_departmentSingleSelect.default, {
87
87
  enableSelectRange: false,
88
88
  column: column,
89
89
  value: value,