dtable-ui-component 6.0.126-beta.s1 → 6.0.126

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 (307) hide show
  1. package/lib/ActionSheet/index.js +14 -16
  2. package/lib/ActivityIndicator/index.js +7 -8
  3. package/lib/AsyncUserSelect/index.css +19 -46
  4. package/lib/AsyncUserSelect/index.js +58 -41
  5. package/lib/AsyncUserSelect/user-item.js +5 -6
  6. package/lib/AutoNumberFormatter/index.js +3 -4
  7. package/lib/Badge/index.js +9 -11
  8. package/lib/ButtonFormatter/index.js +6 -8
  9. package/lib/CTimeFormatter/index.js +3 -4
  10. package/lib/CheckboxEditor/index.js +1 -3
  11. package/lib/CheckboxEditor/mb-editor.js +9 -20
  12. package/lib/CheckboxEditor/pc-editor.js +12 -24
  13. package/lib/CheckboxFormatter/index.js +4 -5
  14. package/lib/CollaboratorEditor/index.js +2 -4
  15. package/lib/CollaboratorEditor/mb-editor/index.js +11 -19
  16. package/lib/CollaboratorEditor/pc-editor/index.js +25 -34
  17. package/lib/CollaboratorFormatter/index.js +8 -10
  18. package/lib/CollaboratorItem/index.js +4 -5
  19. package/lib/CollapsibleSettingLayout/index.js +9 -7
  20. package/lib/Comment/body/comment.js +10 -18
  21. package/lib/Comment/body/index.js +2 -4
  22. package/lib/Comment/footer/btns/index.js +4 -7
  23. package/lib/Comment/footer/index.js +9 -20
  24. package/lib/Comment/footer/input/index.js +29 -50
  25. package/lib/Comment/footer/input/participant/index.js +4 -5
  26. package/lib/Comment/footer/participants/index.js +4 -5
  27. package/lib/Comment/footer/participants/participant/index.js +1 -3
  28. package/lib/Comment/footer/participants/participant-select/index.js +8 -24
  29. package/lib/Comment/index.js +39 -57
  30. package/lib/Comment/utils/utilities.js +15 -21
  31. package/lib/CreatorFormatter/index.js +6 -8
  32. package/lib/DTableColorPicker/ColorPickerPortal/index.js +23 -19
  33. package/lib/DTableColorPicker/index.css +0 -2
  34. package/lib/DTableColorPicker/index.js +56 -41
  35. package/lib/DTableColorPicker/utils.js +4 -6
  36. package/lib/DTableColumnIcon/index.js +6 -7
  37. package/lib/DTableCommonAddTool/index.css +1 -3
  38. package/lib/DTableCommonAddTool/index.js +6 -8
  39. package/lib/DTableCustomFooter/index.css +1 -3
  40. package/lib/DTableCustomFooter/index.js +1 -3
  41. package/lib/DTableCustomizeCollaboratorSelect/index.js +17 -20
  42. package/lib/DTableCustomizeSelect/index.css +43 -67
  43. package/lib/DTableCustomizeSelect/index.js +29 -40
  44. package/lib/DTableDropdownItem/index.js +16 -18
  45. package/lib/DTableDropdownMenu/index.js +8 -10
  46. package/lib/DTableEmptyTip/index.js +4 -5
  47. package/lib/DTableFiltersPopover/index.css +0 -2
  48. package/lib/DTableFiltersPopover/index.js +26 -41
  49. package/lib/DTableFiltersPopover/utils/filter-item-utils.js +3 -5
  50. package/lib/DTableFiltersPopover/utils/index.js +63 -113
  51. package/lib/DTableFiltersPopover/widgets/collaborator-filter/index.js +9 -10
  52. package/lib/DTableFiltersPopover/widgets/department-select-filter/department-multiple-select-filter.js +16 -13
  53. package/lib/DTableFiltersPopover/widgets/department-select-filter/department-single-select-filter.js +18 -15
  54. package/lib/DTableFiltersPopover/widgets/filter-calendar.js +8 -14
  55. package/lib/DTableFiltersPopover/widgets/filter-group.js +34 -55
  56. package/lib/DTableFiltersPopover/widgets/filter-item.js +107 -170
  57. package/lib/DTableFiltersPopover/widgets/filter-list/index.css +5 -5
  58. package/lib/DTableFiltersPopover/widgets/filter-list/index.js +136 -161
  59. package/lib/DTableFiltersPopover/widgets/rate-item.js +15 -20
  60. package/lib/DTableGroupSelect/index.css +5 -31
  61. package/lib/DTableGroupSelect/index.js +13 -17
  62. package/lib/DTableGroupSelect/select-option-group.css +15 -11
  63. package/lib/DTableGroupSelect/select-option-group.js +31 -43
  64. package/lib/DTableIcon/index.js +6 -7
  65. package/lib/DTableIcon/svg-icon.js +5 -7
  66. package/lib/DTableModalHeader/index.js +1 -3
  67. package/lib/DTablePopover/index.js +13 -16
  68. package/lib/DTableRadio/index.js +10 -9
  69. package/lib/DTableRadioGroup/index.js +8 -17
  70. package/lib/DTableSearchInput/index.js +19 -29
  71. package/lib/DTableSelect/dtable-select-label.css +4 -4
  72. package/lib/DTableSelect/dtable-select-label.js +7 -6
  73. package/lib/DTableSelect/index.js +24 -25
  74. package/lib/DTableSelect/user-select.css +46 -7
  75. package/lib/DTableSelect/utils.js +82 -179
  76. package/lib/DTableSubDropdownMenu/index.js +8 -10
  77. package/lib/DTableSubDropdownToggle/index.js +12 -12
  78. package/lib/DTableSwitch/index.css +0 -1
  79. package/lib/DTableSwitch/index.js +12 -11
  80. package/lib/DTableToolTip/index.js +7 -8
  81. package/lib/DateEditor/index.js +20 -15
  82. package/lib/DateEditor/mb-editor/index.js +18 -31
  83. package/lib/DateEditor/pc-editor.js +26 -45
  84. package/lib/DateFormatter/index.js +4 -5
  85. package/lib/DatePicker/index.js +9 -15
  86. package/lib/DatePicker/utils.js +1 -3
  87. package/lib/DeleteTip/index.js +5 -6
  88. package/lib/DepartmentMultipleSelectEditor/index.js +25 -23
  89. package/lib/DepartmentSelectFilter/index.js +6 -8
  90. package/lib/DepartmentSingleSelectEditor/index.js +1 -3
  91. package/lib/DepartmentSingleSelectEditor/mb-editor/index.js +48 -47
  92. package/lib/DepartmentSingleSelectEditor/pc-editor/department-single-select.js +36 -58
  93. package/lib/DepartmentSingleSelectEditor/pc-editor/index.js +13 -19
  94. package/lib/DepartmentSingleSelectFormatter/index.js +4 -6
  95. package/lib/DigitalSignEditor/index.js +1 -3
  96. package/lib/DigitalSignEditor/mb-editor/index.js +12 -20
  97. package/lib/DigitalSignEditor/pc-editor/index.js +17 -24
  98. package/lib/DigitalSignEditor/service.js +2 -4
  99. package/lib/DigitalSignEditor/signature-board/index.js +5 -8
  100. package/lib/DigitalSignEditor/utils.js +2 -4
  101. package/lib/DigitalSignFormatter/index.js +12 -15
  102. package/lib/DigitalSignFormatter/utils.js +4 -5
  103. package/lib/DurationEditor/index.js +21 -31
  104. package/lib/DurationFormatter/index.js +4 -5
  105. package/lib/EditEditorButton/index.js +1 -3
  106. package/lib/EmailFormatter/index.js +3 -4
  107. package/lib/FieldDisplaySetting/field-item.js +12 -12
  108. package/lib/FieldDisplaySetting/index.js +11 -9
  109. package/lib/FileEditor/files-previewer/index.js +1 -3
  110. package/lib/FileEditor/files-previewer/mb-previewer/file-previewer/index.js +10 -18
  111. package/lib/FileEditor/files-previewer/mb-previewer/index.js +7 -8
  112. package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/dropdown-menu.js +3 -4
  113. package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/file-name-editor/index.js +5 -6
  114. package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/index.js +14 -21
  115. package/lib/FileEditor/files-previewer/pc-previewer/index.js +29 -57
  116. package/lib/FileEditor/index.js +1 -3
  117. package/lib/FileEditor/mb-editor/index.js +28 -20
  118. package/lib/FileEditor/pc-editor/addition-previewer/index.js +1 -3
  119. package/lib/FileEditor/pc-editor/addition-previewer/local-file-addition/index.js +11 -25
  120. package/lib/FileEditor/pc-editor/index.js +19 -27
  121. package/lib/FileFormatter/index.js +26 -19
  122. package/lib/FileItemFormatter/index.js +6 -9
  123. package/lib/FileUploader/index.js +28 -45
  124. package/lib/FormulaFormatter/index.js +15 -29
  125. package/lib/GeolocationEditor/index.js +11 -12
  126. package/lib/GeolocationEditor/map-editor-utils.js +17 -15
  127. package/lib/GeolocationEditor/mb-editor/country-editor.js +17 -14
  128. package/lib/GeolocationEditor/mb-editor/index.js +4 -6
  129. package/lib/GeolocationEditor/mb-editor/location-editor.js +18 -15
  130. package/lib/GeolocationEditor/mb-editor/map-editor/index.js +41 -68
  131. package/lib/GeolocationEditor/mb-editor/map-selection-editor/index.js +50 -89
  132. package/lib/GeolocationEditor/mb-editor/province-city-editor.js +17 -14
  133. package/lib/GeolocationEditor/mb-editor/province-editor.js +17 -14
  134. package/lib/GeolocationEditor/pc-editor/country-editor.js +10 -23
  135. package/lib/GeolocationEditor/pc-editor/index.js +12 -20
  136. package/lib/GeolocationEditor/pc-editor/location-editor.js +26 -31
  137. package/lib/GeolocationEditor/pc-editor/map-editor/index.js +34 -54
  138. package/lib/GeolocationEditor/pc-editor/map-editor/large-editor/index.js +36 -60
  139. package/lib/GeolocationEditor/pc-editor/map-selection-editor/index.js +35 -62
  140. package/lib/GeolocationEditor/pc-editor/map-selection-editor/large-editor/index.js +36 -65
  141. package/lib/GeolocationEditor/pc-editor/province-city-editor.js +19 -25
  142. package/lib/GeolocationEditor/pc-editor/province-editor.js +6 -13
  143. package/lib/GeolocationEditor/pc-editor/selector-header-item.js +5 -6
  144. package/lib/GeolocationEditor/pc-editor/selector-list.js +6 -7
  145. package/lib/GeolocationFormatter/index.js +4 -5
  146. package/lib/HtmlLongTextFormatter/index.js +4 -12
  147. package/lib/Icon/index.js +3 -5
  148. package/lib/IconButton/index.js +4 -6
  149. package/lib/ImageEditor/images-previewer/image-preview/index.js +12 -21
  150. package/lib/ImageEditor/images-previewer/index.js +3 -9
  151. package/lib/ImageEditor/index.js +1 -3
  152. package/lib/ImageEditor/mb-editor/index.js +28 -20
  153. package/lib/ImageEditor/pc-editor/addition-previewer/image-link/index.js +2 -6
  154. package/lib/ImageEditor/pc-editor/addition-previewer/index.js +1 -3
  155. package/lib/ImageEditor/pc-editor/addition-previewer/local-image-addition/index.js +7 -21
  156. package/lib/ImageEditor/pc-editor/images-previewer/index.js +3 -9
  157. package/lib/ImageEditor/pc-editor/index.js +11 -16
  158. package/lib/ImageFormatter/images-lazy-load.js +19 -11
  159. package/lib/ImageFormatter/index.js +11 -13
  160. package/lib/ImagePreviewerLightbox/index.js +15 -13
  161. package/lib/ImageThumbnail/index.js +10 -13
  162. package/lib/InputItem/custom-input.js +26 -46
  163. package/lib/InputItem/custom-keyboard.js +15 -18
  164. package/lib/InputItem/index.js +34 -50
  165. package/lib/InputItem/input.js +2 -4
  166. package/lib/LastModifierFormatter/index.js +6 -8
  167. package/lib/LinkEditor/index.js +33 -53
  168. package/lib/LinkEditor/link-editor-option.js +3 -4
  169. package/lib/LinkEditor/mb-popover/index.js +9 -22
  170. package/lib/LinkEditor/pc-popover/index.js +5 -10
  171. package/lib/LinkFormatter/index.js +21 -37
  172. package/lib/List/index.js +6 -8
  173. package/lib/List/list-item.js +22 -28
  174. package/lib/LongTextFormatter/index.js +4 -5
  175. package/lib/MBEditorHeader/index.js +7 -8
  176. package/lib/MTimeFormatter/index.js +3 -4
  177. package/lib/MobileFullScreenPage/body/index.js +3 -5
  178. package/lib/MobileFullScreenPage/header/index.js +4 -6
  179. package/lib/MobileFullScreenPage/index.js +13 -11
  180. package/lib/MobileModal/index.js +1 -3
  181. package/lib/MobileOperationSheet/index.js +7 -8
  182. package/lib/MobileSelector/empty/index.js +1 -3
  183. package/lib/MobileSelector/index.js +5 -7
  184. package/lib/MobileSelector/option/index.js +3 -5
  185. package/lib/MobileSelector/options/index.js +1 -3
  186. package/lib/MobileSelector/search/index.js +3 -5
  187. package/lib/MobileUpload/index.js +4 -5
  188. package/lib/Modal/modal.js +14 -15
  189. package/lib/Modal/prompt.js +4 -4
  190. package/lib/MultipleSelectEditor/index.js +1 -3
  191. package/lib/MultipleSelectFormatter/index.js +6 -8
  192. package/lib/NotificationPopover/index.css +1 -6
  193. package/lib/NotificationPopover/index.js +6 -7
  194. package/lib/NumberEditor/index.js +12 -21
  195. package/lib/NumberFormatter/index.js +4 -5
  196. package/lib/PhoneNumberLink/index.js +2 -4
  197. package/lib/Picker/AbstractPicker.js +23 -27
  198. package/lib/Popover/index.js +3 -4
  199. package/lib/Popover/item.js +7 -9
  200. package/lib/Progress/index.js +9 -8
  201. package/lib/Radio/Radio.js +4 -8
  202. package/lib/Radio/RadioItem.js +8 -12
  203. package/lib/RateFormatter/index.js +13 -13
  204. package/lib/RoleStatusEditor/index.js +18 -17
  205. package/lib/RowExpandDialog/body/index.js +32 -49
  206. package/lib/RowExpandDialog/column-content/index.js +5 -9
  207. package/lib/RowExpandDialog/header/index.js +6 -8
  208. package/lib/RowExpandDialog/index.js +49 -34
  209. package/lib/RowExpandEditor/checkbox-editor/mb-editor/index.js +4 -5
  210. package/lib/RowExpandEditor/checkbox-editor/pc-editor.js +8 -10
  211. package/lib/RowExpandEditor/collaborator-editor/mb-editor/index.js +22 -33
  212. package/lib/RowExpandEditor/collaborator-editor/pc-editor/index.js +26 -40
  213. package/lib/RowExpandEditor/date-editor/mb-editor.js +12 -18
  214. package/lib/RowExpandEditor/date-editor/pc-editor.js +15 -20
  215. package/lib/RowExpandEditor/department-editor/mb-editor.js +16 -11
  216. package/lib/RowExpandEditor/department-editor/pc-editor.js +19 -14
  217. package/lib/RowExpandEditor/digital-sign-editor/mb-editor/index.js +20 -34
  218. package/lib/RowExpandEditor/digital-sign-editor/pc-editor/index.js +21 -35
  219. package/lib/RowExpandEditor/duration-editor/mb-editor.js +10 -17
  220. package/lib/RowExpandEditor/duration-editor/pc-editor.js +13 -19
  221. package/lib/RowExpandEditor/email-editor/mb-editor/index.js +9 -19
  222. package/lib/RowExpandEditor/email-editor/pc-editor/index.js +13 -24
  223. package/lib/RowExpandEditor/file-editor/mb-editor/index.js +18 -31
  224. package/lib/RowExpandEditor/file-editor/pc-editor/index.js +16 -23
  225. package/lib/RowExpandEditor/geolocation-editor/mb-editor/index.js +17 -29
  226. package/lib/RowExpandEditor/geolocation-editor/pc-editor/index.js +13 -26
  227. package/lib/RowExpandEditor/image-editor/mb-editor/index.js +15 -25
  228. package/lib/RowExpandEditor/image-editor/pc-editor/index.js +13 -23
  229. package/lib/RowExpandEditor/index.js +4 -8
  230. package/lib/RowExpandEditor/long-text-editor/mb-editor/editor/index.js +17 -18
  231. package/lib/RowExpandEditor/long-text-editor/mb-editor/index.js +10 -16
  232. package/lib/RowExpandEditor/long-text-editor/pc-editor/index.js +16 -23
  233. package/lib/RowExpandEditor/multiple-select-editor/mb-editor/index.js +11 -19
  234. package/lib/RowExpandEditor/multiple-select-editor/pc-editor/index.js +22 -33
  235. package/lib/RowExpandEditor/number-editor/mb-editor/index.js +8 -14
  236. package/lib/RowExpandEditor/number-editor/pc-editor.js +13 -20
  237. package/lib/RowExpandEditor/rate-editor/mb-editor.js +12 -25
  238. package/lib/RowExpandEditor/rate-editor/pc-editor.js +20 -36
  239. package/lib/RowExpandEditor/single-select-editor/mb-editor/index.js +17 -28
  240. package/lib/RowExpandEditor/single-select-editor/pc-editor/index.js +22 -34
  241. package/lib/RowExpandEditor/text-editor/mb-editor/index.js +4 -5
  242. package/lib/RowExpandEditor/text-editor/pc-editor/index.js +15 -26
  243. package/lib/RowExpandEditor/url-editor/mb-editor/index.js +5 -13
  244. package/lib/RowExpandEditor/url-editor/pc-editor/index.js +9 -18
  245. package/lib/RowExpandFormatter/department-formatter/mb-formatter.js +2 -4
  246. package/lib/RowExpandFormatter/department-formatter/pc-formatter.js +2 -4
  247. package/lib/RowExpandFormatter/email-formatter/index.js +4 -7
  248. package/lib/RowExpandFormatter/file-formatter/index.js +8 -9
  249. package/lib/RowExpandFormatter/file-formatter/row-expand-file-item-formatter.js +10 -12
  250. package/lib/RowExpandFormatter/formula-formatter/index.js +19 -34
  251. package/lib/RowExpandFormatter/image-formatter/index.js +9 -11
  252. package/lib/RowExpandFormatter/image-formatter/row-expand-image-item-formatter.js +7 -8
  253. package/lib/RowExpandFormatter/index.js +27 -41
  254. package/lib/RowExpandFormatter/link-formatter/collaborator-item-formatter.js +8 -14
  255. package/lib/RowExpandFormatter/link-formatter/index.js +11 -19
  256. package/lib/RowExpandFormatter/link-formatter/value-display-utils.js +3 -5
  257. package/lib/RowExpandFormatter/rate-formatter/index.js +11 -12
  258. package/lib/RowExpandFormatter/text/index.js +4 -5
  259. package/lib/RowExpandFormatter/url-formatter/index.js +4 -7
  260. package/lib/RowExpandView/body/index.js +22 -35
  261. package/lib/RowExpandView/column-content/index.js +3 -7
  262. package/lib/RowExpandView/index.js +42 -30
  263. package/lib/SelectItem/index.js +5 -7
  264. package/lib/SelectOptionGroup/index.css +25 -53
  265. package/lib/SelectOptionGroup/index.js +36 -84
  266. package/lib/SelectedDepartments/index.js +7 -9
  267. package/lib/SimpleLongTextFormatter/index.js +10 -16
  268. package/lib/SimpleLongTextFormatter/normalize-long-text-value.js +3 -4
  269. package/lib/SimpleLongTextFormatter/widgets/LongTextPreview.js +12 -21
  270. package/lib/SimpleLongTextFormatter/widgets/dtable-markdown-viewer.js +3 -4
  271. package/lib/SingleSelectEditor/index.js +1 -3
  272. package/lib/SingleSelectFormatter/index.js +8 -9
  273. package/lib/TabBar/Tab.js +14 -16
  274. package/lib/TabBar/index.js +18 -21
  275. package/lib/Tabs/index.js +1 -3
  276. package/lib/TextEditor/index.js +14 -23
  277. package/lib/TextFormatter/index.js +3 -4
  278. package/lib/TextareaItem/index.js +19 -26
  279. package/lib/Toast/index.js +3 -4
  280. package/lib/UrlFormatter/index.js +3 -4
  281. package/lib/common/editor-base.js +7 -12
  282. package/lib/hooks/common-hooks.js +2 -4
  283. package/lib/index.js +0 -7
  284. package/lib/select-editor/index.js +1 -3
  285. package/lib/select-editor/mb-editor/index.js +17 -28
  286. package/lib/select-editor/pc-editor/index.js +27 -42
  287. package/lib/toaster/alert.js +6 -7
  288. package/lib/toaster/toast.js +2 -3
  289. package/lib/toaster/toastManager.js +2 -4
  290. package/lib/utils/cell.js +8 -11
  291. package/lib/utils/column-utils.js +8 -14
  292. package/lib/utils/departments.js +1 -3
  293. package/lib/utils/url.js +24 -31
  294. package/lib/utils/utils.js +2 -6
  295. package/package.json +8 -8
  296. package/lib/DTableCustomizeSearchInput/index.css +0 -81
  297. package/lib/DTableCustomizeSearchInput/index.js +0 -141
  298. package/lib/DTableCustomizeSelect/select-option-group/KeyCodes.js +0 -109
  299. package/lib/DTableCustomizeSelect/select-option-group/index.css +0 -134
  300. package/lib/DTableCustomizeSelect/select-option-group/index.js +0 -260
  301. package/lib/DTableCustomizeSelect/select-option-group/option.js +0 -48
  302. package/lib/DTableCustomizeSelect/util.js +0 -12
  303. package/lib/DTableSelect/select-dropdown-indicator/index.css +0 -16
  304. package/lib/DTableSelect/select-dropdown-indicator/index.js +0 -26
  305. package/lib/DTableSelect/select-style.js +0 -133
  306. package/lib/assets/icons/close.svg +0 -1
  307. package/lib/assets/icons/down.svg +0 -3
@@ -1,124 +1,100 @@
1
- .seatable-customize-select {
1
+ .dtable-select {
2
2
  position: relative;
3
+ }
4
+
5
+ .dtable-select.custom-select {
3
6
  display: flex;
4
- padding: 0 16px;
5
- border-radius: 4px;
7
+ padding: 0 10px;
8
+ border-radius: 3px;
6
9
  align-items: center;
7
10
  justify-content: space-between;
8
11
  max-width: 900px;
9
12
  user-select: none;
13
+ -webkit-user-select: none;
14
+ -moz-user-select: none;
15
+ -o-user-select: none;
16
+ -ms-user-select: none;
10
17
  text-align: left;
11
- line-height: 1.5;
12
- background-image: none;
13
- font-size: 14px;
14
- color: var(--bs-body-color);
15
- border: 1px solid rgba(0, 40, 100, 0.12);
16
18
  }
17
19
 
18
- .seatable-customize-select:focus,
19
- .seatable-customize-select.focus {
20
- border-color: #3E84F7 !important;
20
+ .dtable-select.custom-select:focus,
21
+ .dtable-select.custom-select.focus {
22
+ border-color: #1991eb !important;
23
+ box-shadow: 0 0 0 2px rgba(70, 127, 207, 0.25);
21
24
  }
22
25
 
23
- .seatable-customize-select.disabled:focus,
24
- .seatable-customize-select.focus.disabled,
25
- .seatable-customize-select.disabled:hover {
26
+ .dtable-select.custom-select.disabled:focus,
27
+ .dtable-select.custom-select.focus.disabled,
28
+ .dtable-select.custom-select.disabled:hover {
26
29
  border-color: rgba(0, 40, 100, 0.12) !important;
27
30
  box-shadow: unset;
28
31
  cursor: default;
29
32
  }
30
33
 
31
- .seatable-customize-select:hover {
34
+ .dtable-select.custom-select:hover {
32
35
  cursor: pointer;
33
- border-color: var(--bs-border-color);
36
+ border-color: rgb(179, 179, 179);
37
+ }
38
+
39
+ .dtable-select .dtable-icon-down3 {
40
+ display: inline-block;
41
+ font-size: 12px;
42
+ color: #999;
43
+ transition: all 0.1s;
34
44
  }
35
45
 
36
- .seatable-customize-select .seatable-multicolor-icon-down {
37
- width: 12px;
38
- height: 12px;
39
- color: var(--bs-icon-color);
46
+ .dtable-select .dtable-icon-down3:hover {
47
+ color: #555;
40
48
  }
41
49
 
42
- .seatable-customize-select .selected-option {
50
+ .dtable-select .selected-option {
43
51
  display: flex;
44
52
  flex: 1;
45
53
  overflow: hidden;
46
54
  flex-wrap: nowrap;
47
55
  align-items: center;
48
56
  justify-content: space-between;
49
- background: inherit;
57
+ background: #fff;
50
58
  }
51
59
 
52
- .seatable-check-color {
53
- color: var(--bs-icon-color);
54
- }
55
-
56
- .seatable-customize-select.dtable-ui-collaborator-selector .seatable-option-group .seatable-option-group-content,
57
- .seatable-customize-select.selector-group .seatable-option-group .seatable-option-group-content {
60
+ .dtable-select.dtable-ui-collaborator-selector .option-group .option-group-content,
61
+ .dtable-select.selector-group .option-group .option-group-content {
58
62
  padding: 10px;
59
63
  }
60
64
 
61
- .seatable-customize-select.dtable-ui-collaborator-selector .seatable-option-group .seatable-option-group-content {
65
+ .dtable-select.custom-select.dtable-ui-collaborator-selector .option-group .option-group-content {
62
66
  padding: 10px 0;
63
67
  }
64
68
 
65
- .seatable-customize-select.dtable-ui-collaborator-selector .option {
69
+ .dtable-select.custom-select.dtable-ui-collaborator-selector .option {
66
70
  padding: 5px 0 5px 10px !important;
67
71
  line-height: 20px;
68
72
  }
69
73
 
70
- .seatable-customize-select.selector-group .option {
74
+ .dtable-select.selector-group .option {
71
75
  height: 30px;
72
76
  display: flex;
73
77
  align-items: center;
74
78
  }
75
79
 
76
- .seatable-customize-select.selector-group .select-group-option {
80
+ .dtable-select.selector-group .select-group-option {
77
81
  justify-content: space-between;
78
82
  }
79
83
 
80
- .seatable-customize-select.selector-group .selected-option .selected-group {
84
+ .dtable-select.selector-group .selected-option .selected-group {
81
85
  padding: 0 2px;
82
86
  background: #eceff4;
83
87
  border-radius: 3px;
84
88
  }
85
89
 
86
- .seatable-customize-select .select-placeholder {
87
- line-height: 1;
88
- font-size: 14px;
89
- white-space: nowrap;
90
- color: #868E96;
91
- margin-right: 8px;
92
- }
93
-
94
- .seatable-customize-select .disabled .select-placeholder {
95
- opacity: 0.65;
96
- }
97
-
98
- .seatable-customize-select .selected-option-show {
99
- height: 20px;
100
- line-height: 20px;
101
- margin-right: 8px;
102
- width: calc(100% - 20px);
103
- white-space: nowrap;
104
- text-overflow: ellipsis;
90
+ .dtable-select .selected-option-show {
105
91
  overflow: hidden;
92
+ text-overflow: ellipsis;
93
+ white-space: nowrap;
106
94
  }
107
95
 
108
- .seatable-customize-select .selected-option .multicolor-icon {
109
- font-size: 12px;
110
- }
111
-
112
- .seatable-customize-select .multiple-check-icon,
113
- .seatable-customize-select .header-icon .dtable-font,
114
- .seatable-option-group .select-label .header-icon .dtable-font {
115
- color: var(--bs-icon-secondary-color) !important;
116
- cursor: default;
96
+ .dtable-select .select-placeholder {
97
+ line-height: 1;
117
98
  font-size: 14px;
118
- }
119
-
120
- .seatable-customize-select .header-icon {
121
- display: inline-block;
122
- padding: 0 .5rem 0 0!important;
123
- margin-left: 0 !important;
99
+ white-space: nowrap;
124
100
  }
@@ -7,11 +7,9 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports.default = void 0;
9
9
  var _react = _interopRequireWildcard(require("react"));
10
+ var _SelectOptionGroup = _interopRequireDefault(require("../SelectOptionGroup"));
10
11
  var _classnames = _interopRequireDefault(require("classnames"));
11
- var _selectOptionGroup = _interopRequireDefault(require("./select-option-group"));
12
12
  var _ModalPortal = _interopRequireDefault(require("../ModalPortal"));
13
- var _util = require("./util");
14
- var _DTableIcon = _interopRequireDefault(require("../DTableIcon"));
15
13
  require("./index.css");
16
14
  var _jsxRuntime = require("react/jsx-runtime");
17
15
  class DTableCustomizeSelect extends _react.Component {
@@ -25,8 +23,8 @@ class DTableCustomizeSelect extends _react.Component {
25
23
  */
26
24
  if (this.state.isShowSelectOptions) event.stopPropagation();
27
25
  let eventClassName = event.target.className;
28
- if (this.props.isLocked || eventClassName.indexOf('option-search-control') > -1 || eventClassName === 'seatable-option-group-search') return;
29
- // Prevent closing by pressing the space bar in the search input
26
+ if (this.props.isLocked || eventClassName.indexOf('option-search-control') > -1 || eventClassName === 'option-group-search') return;
27
+ // Prevent closing by pressing the spacebar in the search input
30
28
  if (event.target.value === '') return;
31
29
  this.setState({
32
30
  isShowSelectOptions: !this.state.isShowSelectOptions
@@ -47,24 +45,20 @@ class DTableCustomizeSelect extends _react.Component {
47
45
  };
48
46
  this.getSelectedOptionTop = () => {
49
47
  if (!this.selector) return 38;
50
- const {
51
- height
52
- } = this.selector.getBoundingClientRect();
48
+ const _this$selector$getBou = this.selector.getBoundingClientRect(),
49
+ height = _this$selector$getBou.height;
53
50
  return height;
54
51
  };
55
52
  this.getFilterOptions = searchValue => {
56
- const {
57
- options,
58
- searchable
59
- } = this.props;
53
+ const _this$props = this.props,
54
+ options = _this$props.options,
55
+ searchable = _this$props.searchable;
60
56
  if (!searchable) return options || [];
61
57
  const validSearchVal = searchValue.trim().toLowerCase();
62
58
  if (!validSearchVal) return options || [];
63
59
  return options.filter(option => {
64
- const {
65
- value,
66
- name
67
- } = option;
60
+ const value = option.value,
61
+ name = option.name;
68
62
  if (typeof name === 'string') {
69
63
  return name.toLowerCase().indexOf(validSearchVal) > -1;
70
64
  }
@@ -85,29 +79,26 @@ class DTableCustomizeSelect extends _react.Component {
85
79
  };
86
80
  }
87
81
  render() {
88
- const {
89
- className,
90
- value,
91
- options,
92
- placeholder,
93
- searchable,
94
- searchPlaceholder,
95
- noOptionsPlaceholder,
96
- isLocked,
97
- isInModal,
98
- component
99
- } = this.props;
82
+ let _this$props2 = this.props,
83
+ className = _this$props2.className,
84
+ value = _this$props2.value,
85
+ options = _this$props2.options,
86
+ placeholder = _this$props2.placeholder,
87
+ searchable = _this$props2.searchable,
88
+ searchPlaceholder = _this$props2.searchPlaceholder,
89
+ noOptionsPlaceholder = _this$props2.noOptionsPlaceholder,
90
+ isLocked = _this$props2.isLocked,
91
+ isInModal = _this$props2.isInModal,
92
+ addOptionAble = _this$props2.addOptionAble,
93
+ component = _this$props2.component;
100
94
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
101
- tabIndex: "0",
102
- role: "button",
103
95
  ref: node => this.selector = node,
104
- className: (0, _classnames.default)('seatable-customize-select custom-select', {
96
+ className: (0, _classnames.default)('dtable-select custom-select', {
105
97
  'focus': this.state.isShowSelectOptions
106
98
  }, {
107
99
  'disabled': isLocked
108
100
  }, className),
109
101
  onClick: this.onSelectToggle,
110
- onKeyDown: _util.onKeyDown,
111
102
  children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
112
103
  className: "selected-option",
113
104
  children: [value && value.label ? /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
@@ -116,15 +107,12 @@ class DTableCustomizeSelect extends _react.Component {
116
107
  }) : /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
117
108
  className: "select-placeholder",
118
109
  children: placeholder
119
- }), !isLocked && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
120
- className: "d-inline-flex align-items-center",
121
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableIcon.default, {
122
- symbol: "down",
123
- color: "var(--bs-icon-color)"
124
- })
110
+ }), !isLocked && /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
111
+ className: "dtable-font dtable-icon-down3"
125
112
  })]
126
- }), this.state.isShowSelectOptions && !isInModal && /*#__PURE__*/(0, _jsxRuntime.jsx)(_selectOptionGroup.default, {
113
+ }), this.state.isShowSelectOptions && !isInModal && /*#__PURE__*/(0, _jsxRuntime.jsx)(_SelectOptionGroup.default, {
127
114
  value: value,
115
+ addOptionAble: addOptionAble,
128
116
  component: component,
129
117
  isShowSelected: this.props.isShowSelected,
130
118
  top: this.getSelectedOptionTop(),
@@ -138,9 +126,10 @@ class DTableCustomizeSelect extends _react.Component {
138
126
  getFilterOptions: this.getFilterOptions,
139
127
  supportMultipleSelect: this.props.supportMultipleSelect
140
128
  }), this.state.isShowSelectOptions && isInModal && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ModalPortal.default, {
141
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_selectOptionGroup.default, {
129
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SelectOptionGroup.default, {
142
130
  className: className,
143
131
  value: value,
132
+ addOptionAble: addOptionAble,
144
133
  component: component,
145
134
  isShowSelected: this.props.isShowSelected,
146
135
  position: this.selector.getBoundingClientRect(),
@@ -13,24 +13,22 @@ var _DTableToolTip = _interopRequireDefault(require("../DTableToolTip"));
13
13
  var _svgIcon = _interopRequireDefault(require("../DTableIcon/svg-icon"));
14
14
  var _jsxRuntime = require("react/jsx-runtime");
15
15
  const DTableDropdownItem = _ref => {
16
- let {
17
- className,
18
- divider,
19
- id,
20
- toggle,
21
- disabled,
22
- tooltip,
23
- itemProps,
24
- showChecked,
25
- checked,
26
- leftSlotContent,
27
- rightSlotContent,
28
- icon,
29
- content,
30
- onClick,
31
- style,
32
- tabIndex
33
- } = _ref;
16
+ let className = _ref.className,
17
+ divider = _ref.divider,
18
+ id = _ref.id,
19
+ toggle = _ref.toggle,
20
+ disabled = _ref.disabled,
21
+ tooltip = _ref.tooltip,
22
+ itemProps = _ref.itemProps,
23
+ showChecked = _ref.showChecked,
24
+ checked = _ref.checked,
25
+ leftSlotContent = _ref.leftSlotContent,
26
+ rightSlotContent = _ref.rightSlotContent,
27
+ icon = _ref.icon,
28
+ content = _ref.content,
29
+ onClick = _ref.onClick,
30
+ style = _ref.style,
31
+ tabIndex = _ref.tabIndex;
34
32
  if (divider) {
35
33
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.DropdownItem, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, itemProps), {}, {
36
34
  divider: true,
@@ -10,16 +10,14 @@ var _reactstrap = require("reactstrap");
10
10
  var _classnames = _interopRequireDefault(require("classnames"));
11
11
  var _jsxRuntime = require("react/jsx-runtime");
12
12
  const DTableDropdownMenu = _ref => {
13
- let {
14
- id,
15
- className,
16
- container,
17
- modifiers,
18
- flip,
19
- style,
20
- menuProps,
21
- children
22
- } = _ref;
13
+ let id = _ref.id,
14
+ className = _ref.className,
15
+ container = _ref.container,
16
+ modifiers = _ref.modifiers,
17
+ flip = _ref.flip,
18
+ style = _ref.style,
19
+ menuProps = _ref.menuProps,
20
+ children = _ref.children;
23
21
  let customMenuProps = (0, _objectSpread2.default)({}, menuProps);
24
22
  customMenuProps.modifiers = [{
25
23
  name: 'preventOverflow',
@@ -10,11 +10,10 @@ require("./index.css");
10
10
  var _jsxRuntime = require("react/jsx-runtime");
11
11
  class DTableEmptyTip extends _react.default.Component {
12
12
  render() {
13
- const {
14
- text,
15
- title,
16
- type
17
- } = this.props;
13
+ const _this$props = this.props,
14
+ text = _this$props.text,
15
+ title = _this$props.title,
16
+ type = _this$props.type;
18
17
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
19
18
  className: "empty-tip",
20
19
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
@@ -29,8 +29,6 @@
29
29
  font-weight: 500;
30
30
  background: #fff;
31
31
  color: #666;
32
- border-bottom-left-radius: 3px;
33
- border-bottom-right-radius: 3px;
34
32
  position: relative;
35
33
  }
36
34
 
@@ -29,10 +29,8 @@ var _jsxRuntime = require("react/jsx-runtime");
29
29
  constructor(props) {
30
30
  super(props);
31
31
  this.updateFilters = _ref => {
32
- let {
33
- filter_conjunction,
34
- filters
35
- } = _ref;
32
+ let filter_conjunction = _ref.filter_conjunction,
33
+ filters = _ref.filters;
36
34
  const filterConjunction = filter_conjunction || this.state.filterConjunction;
37
35
  if (this.isNeedSubmit) {
38
36
  const isSubmitDisabled = false;
@@ -54,12 +52,8 @@ var _jsxRuntime = require("react/jsx-runtime");
54
52
  });
55
53
  };
56
54
  this.addFilter = () => {
57
- const {
58
- columns
59
- } = this.props;
60
- const {
61
- filters
62
- } = this.state;
55
+ const columns = this.props.columns;
56
+ const filters = this.state.filters;
63
57
  const newFilter = (0, _utils.getDefaultFilter)(columns);
64
58
  if (!newFilter) {
65
59
  return;
@@ -69,12 +63,8 @@ var _jsxRuntime = require("react/jsx-runtime");
69
63
  });
70
64
  };
71
65
  this.addFilterGroup = () => {
72
- const {
73
- columns
74
- } = this.props;
75
- const {
76
- filters
77
- } = this.state;
66
+ const columns = this.props.columns;
67
+ const filters = this.state.filters;
78
68
  const newFilterGroup = (0, _utils.getDefaultFilterGroup)(columns);
79
69
  if (!newFilterGroup) {
80
70
  return;
@@ -87,10 +77,9 @@ var _jsxRuntime = require("react/jsx-runtime");
87
77
  this.props.hidePopover();
88
78
  };
89
79
  this.onSubmitFilters = () => {
90
- const {
91
- filters,
92
- filterConjunction
93
- } = this.state;
80
+ const _this$state = this.state,
81
+ filters = _this$state.filters,
82
+ filterConjunction = _this$state.filterConjunction;
94
83
  const update = {
95
84
  filters,
96
85
  filter_conjunction: filterConjunction
@@ -101,12 +90,10 @@ var _jsxRuntime = require("react/jsx-runtime");
101
90
  this.onPopoverInsideClick = e => {
102
91
  e.stopPropagation();
103
92
  };
104
- const {
105
- filterConjunction: _filterConjunction,
106
- filters: _filters,
107
- columns: _columns,
108
- isNeedSubmit
109
- } = props;
93
+ const _filterConjunction = props.filterConjunction,
94
+ _filters = props.filters,
95
+ _columns = props.columns,
96
+ isNeedSubmit = props.isNeedSubmit;
110
97
  this.state = {
111
98
  filters: (0, _dtableUtils.getValidFilters)(_filters, _columns),
112
99
  filterConjunction: _constants.SUPPORT_CONJUNCTIONS.includes(_filterConjunction) ? _filterConjunction : _dtableUtils.FILTER_CONJUNCTION_TYPE.AND,
@@ -115,21 +102,19 @@ var _jsxRuntime = require("react/jsx-runtime");
115
102
  this.isNeedSubmit = isNeedSubmit;
116
103
  }
117
104
  render() {
118
- const {
119
- target,
120
- columns,
121
- placement,
122
- isSupportAdvanced,
123
- departments,
124
- lang,
125
- readOnly,
126
- userDepartmentIdsMap,
127
- firstDayOfWeek
128
- } = this.props;
129
- const {
130
- filters,
131
- filterConjunction
132
- } = this.state;
105
+ const _this$props = this.props,
106
+ target = _this$props.target,
107
+ columns = _this$props.columns,
108
+ placement = _this$props.placement,
109
+ isSupportAdvanced = _this$props.isSupportAdvanced,
110
+ departments = _this$props.departments,
111
+ lang = _this$props.lang,
112
+ readOnly = _this$props.readOnly,
113
+ userDepartmentIdsMap = _this$props.userDepartmentIdsMap,
114
+ firstDayOfWeek = _this$props.firstDayOfWeek;
115
+ const _this$state2 = this.state,
116
+ filters = _this$state2.filters,
117
+ filterConjunction = _this$state2.filterConjunction;
133
118
  const canAddFilter = columns.length > 0;
134
119
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_DTablePopover.default, {
135
120
  target: target,
@@ -13,9 +13,7 @@ var _jsxRuntime = require("react/jsx-runtime");
13
13
  class FilterItemUtils {
14
14
  static generatorColumnOption(column) {
15
15
  if (!column) return null;
16
- const {
17
- name
18
- } = column;
16
+ const name = column.name;
19
17
  return {
20
18
  value: {
21
19
  column
@@ -107,7 +105,7 @@ class FilterItemUtils {
107
105
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
108
106
  className: "single-select-check-icon",
109
107
  children: (selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.id) === option.id && /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
110
- className: "option-edit dtable-font dtable-icon-check"
108
+ className: "option-edit dtable-font dtable-icon-check-mark"
111
109
  })
112
110
  })]
113
111
  })
@@ -132,7 +130,7 @@ class FilterItemUtils {
132
130
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
133
131
  className: "multiple-check-icon",
134
132
  children: filterTerm.indexOf(option.id) > -1 && /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
135
- className: "option-edit dtable-font dtable-icon-check"
133
+ className: "option-edit dtable-font dtable-icon-check-mark"
136
134
  })
137
135
  })]
138
136
  })