dtable-ui-component 6.0.29-beta9 → 6.0.29

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 (346) hide show
  1. package/lib/ActionSheet/index.js +196 -0
  2. package/lib/ActionSheet/style/index.css +377 -0
  3. package/lib/ActivityIndicator/index.css +110 -0
  4. package/lib/ActivityIndicator/index.js +76 -0
  5. package/lib/Badge/index.css +98 -0
  6. package/lib/Badge/index.js +65 -0
  7. package/lib/CheckboxEditor/index.js +116 -24
  8. package/lib/CollaboratorEditor/index.js +11 -23
  9. package/lib/CollaboratorEditor/mb-collaborator-editor/index.css +85 -0
  10. package/lib/CollaboratorEditor/mb-collaborator-editor/index.js +148 -0
  11. package/lib/DTableCommonAddTool/index.js +3 -1
  12. package/lib/DTableFiltersPopover/widgets/department-select-filter/department-multiple-select-filter.js +6 -6
  13. package/lib/DTableFiltersPopover/widgets/department-select-filter/department-single-select-filter.js +6 -6
  14. package/lib/DateEditor/index.js +95 -69
  15. package/lib/DateEditor/mb-date-editor-popover/custom-rc-calendar.css +118 -0
  16. package/lib/DateEditor/mb-date-editor-popover/index.css +45 -0
  17. package/lib/DateEditor/mb-date-editor-popover/index.js +226 -0
  18. package/lib/DateEditor/{pc-editor.js → pc-date-editor-popover.js} +9 -9
  19. package/lib/DatePicker/index.js +120 -0
  20. package/lib/DatePicker/locale/en_US.js +14 -0
  21. package/lib/DatePicker/locale/ru_RU.js +14 -0
  22. package/lib/DatePicker/locale/sv_SE.js +14 -0
  23. package/lib/DatePicker/locale/zh_CN.js +14 -0
  24. package/lib/DatePicker/style/index.css +298 -0
  25. package/lib/DatePicker/utils.js +36 -0
  26. package/lib/{DepartmentMultipleSelectEditor → Department-editor/department-multiple-select}/index.js +6 -6
  27. package/lib/{DepartmentSingleSelectEditor/pc-editor → Department-editor}/department-single-select.js +7 -7
  28. package/lib/{DepartmentSingleSelectEditor/pc-editor → Department-editor}/index.css +3 -10
  29. package/lib/{DepartmentSingleSelectEditor/pc-editor → Department-editor}/index.js +25 -8
  30. package/lib/{SelectedDepartments → Department-editor/selected-departments}/index.css +1 -0
  31. package/lib/{SelectedDepartments → Department-editor/selected-departments}/index.js +3 -3
  32. package/lib/DigitalSignEditor/index.js +171 -24
  33. package/lib/Drawer/index.css +144 -0
  34. package/lib/Drawer/index.js +21 -0
  35. package/lib/FileEditor/addition-previewer/index.css +1 -0
  36. package/lib/FileEditor/{pc-editor/addition-previewer → addition-previewer}/index.js +1 -1
  37. package/lib/FileEditor/addition-previewer/local-file-addition/index.css +1 -0
  38. package/lib/FileEditor/{pc-editor/addition-previewer → addition-previewer}/local-file-addition/index.js +4 -4
  39. package/lib/FileEditor/files-previewer/{pc-previewer/file-previewer → file-previewer}/dropdown-menu.js +1 -1
  40. package/lib/FileEditor/files-previewer/{pc-previewer/file-previewer → file-previewer}/file-name-editor/index.js +1 -1
  41. package/lib/FileEditor/files-previewer/{pc-previewer/file-previewer → file-previewer}/index.css +2 -0
  42. package/lib/FileEditor/files-previewer/{pc-previewer/file-previewer → file-previewer}/index.js +2 -2
  43. package/lib/FileEditor/files-previewer/index.js +268 -26
  44. package/lib/FileEditor/index.css +5 -0
  45. package/lib/FileEditor/index.js +265 -26
  46. package/lib/FormulaFormatter/index.css +5 -5
  47. package/lib/GeolocationEditor/{pc-editor/country-editor.js → country-editor.js} +49 -5
  48. package/lib/GeolocationEditor/{pc-editor/index.css → index.css} +4 -3
  49. package/lib/GeolocationEditor/index.js +230 -90
  50. package/lib/GeolocationEditor/{pc-editor/location-editor.js → location-editor.js} +41 -8
  51. package/lib/GeolocationEditor/{pc-editor/map-editor → map-editor}/index.js +6 -6
  52. package/lib/GeolocationEditor/{pc-editor/map-editor → map-editor}/large-editor/index.js +7 -7
  53. package/lib/GeolocationEditor/map-editor-utils.js +4 -10
  54. package/lib/GeolocationEditor/{pc-editor/map-selection-editor → map-selection-editor}/index.js +7 -7
  55. package/lib/GeolocationEditor/{pc-editor/map-selection-editor → map-selection-editor}/large-editor/index.js +7 -7
  56. package/lib/GeolocationEditor/{pc-editor/province-city-editor.js → province-city-editor.js} +38 -7
  57. package/lib/GeolocationEditor/{pc-editor/province-editor.js → province-editor.js} +31 -7
  58. package/lib/GeolocationEditor/{pc-editor/selector-header-item.js → selector-header-item.js} +1 -1
  59. package/lib/Icon/index.css +50 -0
  60. package/lib/Icon/index.js +35 -0
  61. package/lib/Icon/load-sprite.js +56 -0
  62. package/lib/ImageEditor/{pc-editor/addition-previewer → addition-previewer}/image-link/index.js +1 -1
  63. package/lib/ImageEditor/{pc-editor/addition-previewer → addition-previewer}/index.js +1 -1
  64. package/lib/ImageEditor/{pc-editor/addition-previewer → addition-previewer}/local-image-addition/index.js +4 -4
  65. package/lib/ImageEditor/images-previewer/image-preview/index.js +3 -3
  66. package/lib/ImageEditor/images-previewer/index.js +4 -9
  67. package/lib/ImageEditor/index.css +16 -17
  68. package/lib/ImageEditor/index.js +185 -26
  69. package/lib/ImageThumbnail/index.js +1 -2
  70. package/lib/InputItem/custom-input.js +321 -0
  71. package/lib/InputItem/custom-keyboard.js +162 -0
  72. package/lib/InputItem/index.js +389 -0
  73. package/lib/InputItem/input.js +45 -0
  74. package/lib/InputItem/locale/en_US.js +12 -0
  75. package/lib/InputItem/locale/ru_RU.js +12 -0
  76. package/lib/InputItem/locale/sv_SE.js +12 -0
  77. package/lib/InputItem/locale/zh_CN.js +12 -0
  78. package/lib/InputItem/portal.js +23 -0
  79. package/lib/InputItem/style/index.css +524 -0
  80. package/lib/LinkEditor/index.js +5 -5
  81. package/lib/LinkEditor/{mb-popover → mb-link-editor-popover}/index.css +1 -1
  82. package/lib/List/index.css +389 -0
  83. package/lib/List/index.js +41 -0
  84. package/lib/List/list-item.js +169 -0
  85. package/lib/Modal/alert.js +86 -0
  86. package/lib/Modal/index.js +16 -0
  87. package/lib/Modal/modal.js +118 -0
  88. package/lib/Modal/operation.js +81 -0
  89. package/lib/Modal/prompt.js +211 -0
  90. package/lib/Modal/style/index.css +593 -0
  91. package/lib/MultipleSelectEditor/index.js +14 -9
  92. package/lib/Picker/AbstractPicker.js +190 -0
  93. package/lib/Picker/index.js +28 -0
  94. package/lib/Picker/locale/en_US.js +12 -0
  95. package/lib/Picker/locale/ru_RU.js +12 -0
  96. package/lib/Picker/locale/sv_SE.js +12 -0
  97. package/lib/Picker/locale/zh_CN.js +12 -0
  98. package/lib/Picker/popupProps.js +12 -0
  99. package/lib/Picker/style/index.css +145 -0
  100. package/lib/Popover/index.js +63 -0
  101. package/lib/Popover/item.js +55 -0
  102. package/lib/Popover/style/index.css +233 -0
  103. package/lib/Progress/index.css +24 -0
  104. package/lib/Progress/index.js +66 -0
  105. package/lib/Radio/Radio.js +47 -0
  106. package/lib/Radio/RadioItem.js +57 -0
  107. package/lib/Radio/index.css +92 -0
  108. package/lib/Radio/index.js +12 -0
  109. package/lib/RowExpandDialog/column-content/index.js +2 -2
  110. package/lib/RowExpandDialog/index.js +0 -2
  111. package/lib/RowExpandEditor/{add-btn/pc-add-btn → RowExpandAddBtn}/index.js +4 -6
  112. package/lib/RowExpandEditor/{checkbox-editor/pc-editor.js → RowExpandCheckboxEditor/index.js} +13 -9
  113. package/lib/RowExpandEditor/{collaborator-editor/pc-editor → RowExpandCollaboratorEditor}/index.css +1 -1
  114. package/lib/RowExpandEditor/{collaborator-editor/pc-editor → RowExpandCollaboratorEditor}/index.js +7 -6
  115. package/lib/RowExpandEditor/{date-editor/pc-editor.js → RowExpandDateEditor/index.js} +2 -2
  116. package/lib/RowExpandEditor/{department-editor/pc-editor.js → RowExpandDepartmentEditor/index.js} +49 -44
  117. package/lib/RowExpandEditor/{digital-sign-editor/pc-editor → RowExpandDigitalSignEditor}/index.css +1 -1
  118. package/lib/RowExpandEditor/{digital-sign-editor/pc-editor → RowExpandDigitalSignEditor}/index.js +11 -11
  119. package/lib/RowExpandEditor/{duration-editor/pc-editor.js → RowExpandDurationEditor/index.js} +2 -2
  120. package/lib/RowExpandEditor/RowExpandEmailEditor/index.css +2 -0
  121. package/lib/RowExpandEditor/{email-editor/pc-editor → RowExpandEmailEditor}/index.js +3 -3
  122. package/lib/RowExpandEditor/RowExpandFileEditor/index.css +1 -0
  123. package/lib/RowExpandEditor/{file-editor/pc-editor → RowExpandFileEditor}/index.js +9 -9
  124. package/lib/RowExpandEditor/{geolocation-editor/pc-editor → RowExpandGeolocationEditor}/index.js +13 -17
  125. package/lib/RowExpandEditor/{image-editor/pc-editor → RowExpandImageEditor}/index.js +9 -9
  126. package/lib/RowExpandEditor/{long-text-editor/pc-editor → RowExpandLongTextEditor}/index.js +7 -7
  127. package/lib/RowExpandEditor/{multiple-select-editor/pc-editor → RowExpandMultipleSelectEditor}/index.css +1 -1
  128. package/lib/RowExpandEditor/{multiple-select-editor/pc-editor → RowExpandMultipleSelectEditor}/index.js +6 -6
  129. package/lib/RowExpandEditor/{number-editor/pc-editor.js → RowExpandNumberEditor/index.js} +2 -2
  130. package/lib/RowExpandEditor/RowExpandRateEditor/index.css +13 -0
  131. package/lib/RowExpandEditor/{rate-editor/pc-editor.js → RowExpandRateEditor/index.js} +3 -2
  132. package/lib/RowExpandEditor/{single-select-editor/pc-editor → RowExpandSingleSelectorEditor}/index.js +17 -17
  133. package/lib/RowExpandEditor/{text-editor/pc-editor → RowExpandTextEditor}/index.js +7 -7
  134. package/lib/RowExpandEditor/{url-editor/pc-editor → RowExpandUrlEditor}/index.js +6 -6
  135. package/lib/RowExpandEditor/constants.js +34 -34
  136. package/lib/RowExpandFormatter/{department-formatter/pc-formatter.js → RowExpandDepartmentFormatter/index.js} +2 -2
  137. package/lib/RowExpandFormatter/{email-formatter → RowExpandEmailFormatter}/index.css +4 -4
  138. package/lib/RowExpandFormatter/RowExpandRateFormatter/index.css +5 -0
  139. package/lib/RowExpandFormatter/constants.js +17 -17
  140. package/lib/RowExpandFormatter/index.css +18 -33
  141. package/lib/RowExpandFormatter/index.js +1 -1
  142. package/lib/SelectItem/index.js +33 -57
  143. package/lib/SingleSelectEditor/index.js +14 -9
  144. package/lib/SvgIcon/index.js +1 -2
  145. package/lib/TabBar/Tab.js +76 -0
  146. package/lib/TabBar/index.css +142 -0
  147. package/lib/TabBar/index.js +129 -0
  148. package/lib/Tabs/index.css +453 -0
  149. package/lib/Tabs/index.js +39 -0
  150. package/lib/TextareaItem/index.css +235 -0
  151. package/lib/TextareaItem/index.js +231 -0
  152. package/lib/Toast/index.css +67 -0
  153. package/lib/Toast/index.js +131 -0
  154. package/lib/_util/class.js +34 -0
  155. package/lib/_util/closest.js +17 -0
  156. package/lib/_util/exenv.js +8 -0
  157. package/lib/_util/getDataAttr.js +15 -0
  158. package/lib/_util/getLocale.js +42 -0
  159. package/lib/constants/index.js +2 -3
  160. package/lib/css/am.css +390 -0
  161. package/lib/css/mb-cell-editor.css +1 -1
  162. package/lib/index.js +100 -51
  163. package/lib/locales/de.json +1 -3
  164. package/lib/locales/en.json +1 -3
  165. package/lib/locales/es.json +1 -3
  166. package/lib/locales/fr.json +1 -3
  167. package/lib/locales/pt.json +1 -3
  168. package/lib/locales/ru.json +1 -3
  169. package/lib/locales/zh-CN.json +1 -3
  170. package/lib/select-editor/index.js +20 -27
  171. package/lib/select-editor/mb-select-editor/index.css +127 -0
  172. package/lib/select-editor/mb-select-editor/index.js +197 -0
  173. package/lib/select-editor/{pc-editor → pc-select-editor}/index.css +1 -1
  174. package/lib/select-editor/{pc-editor → pc-select-editor}/index.js +7 -7
  175. package/lib/select-editor/select-editor-option.js +84 -0
  176. package/lib/utils/editor-utils.js +2 -6
  177. package/lib/utils/get-event-transfer.js +1 -2
  178. package/lib/utils/utils.js +2 -11
  179. package/package.json +25 -16
  180. package/lib/BodyPortal/index.js +0 -29
  181. package/lib/CheckboxEditor/mb-editor.js +0 -99
  182. package/lib/CheckboxEditor/pc-editor.js +0 -118
  183. package/lib/CollaboratorEditor/mb-editor/index.css +0 -41
  184. package/lib/CollaboratorEditor/mb-editor/index.js +0 -88
  185. package/lib/DateEditor/mb-editor/custom-rc-calendar.css +0 -118
  186. package/lib/DateEditor/mb-editor/index.css +0 -39
  187. package/lib/DateEditor/mb-editor/index.js +0 -215
  188. package/lib/DepartmentSingleSelectEditor/index.js +0 -34
  189. package/lib/DepartmentSingleSelectEditor/mb-editor/index.css +0 -4
  190. package/lib/DepartmentSingleSelectEditor/mb-editor/index.js +0 -230
  191. package/lib/DigitalSignEditor/mb-editor/index.css +0 -35
  192. package/lib/DigitalSignEditor/mb-editor/index.js +0 -144
  193. package/lib/DigitalSignEditor/pc-editor/index.js +0 -181
  194. package/lib/FileEditor/files-previewer/mb-previewer/file-previewer/index.js +0 -122
  195. package/lib/FileEditor/files-previewer/mb-previewer/index.css +0 -39
  196. package/lib/FileEditor/files-previewer/mb-previewer/index.js +0 -64
  197. package/lib/FileEditor/files-previewer/pc-previewer/index.js +0 -276
  198. package/lib/FileEditor/mb-editor/index.css +0 -10
  199. package/lib/FileEditor/mb-editor/index.js +0 -136
  200. package/lib/FileEditor/pc-editor/addition-previewer/index.css +0 -1
  201. package/lib/FileEditor/pc-editor/addition-previewer/local-file-addition/index.css +0 -1
  202. package/lib/FileEditor/pc-editor/index.css +0 -5
  203. package/lib/FileEditor/pc-editor/index.js +0 -274
  204. package/lib/GeolocationEditor/mb-editor/country-editor.js +0 -79
  205. package/lib/GeolocationEditor/mb-editor/index.css +0 -11
  206. package/lib/GeolocationEditor/mb-editor/index.js +0 -125
  207. package/lib/GeolocationEditor/mb-editor/location-editor.js +0 -101
  208. package/lib/GeolocationEditor/mb-editor/map-editor/index.css +0 -11
  209. package/lib/GeolocationEditor/mb-editor/map-editor/index.js +0 -474
  210. package/lib/GeolocationEditor/mb-editor/map-selection-editor/index.css +0 -158
  211. package/lib/GeolocationEditor/mb-editor/map-selection-editor/index.js +0 -530
  212. package/lib/GeolocationEditor/mb-editor/province-city-editor.js +0 -77
  213. package/lib/GeolocationEditor/mb-editor/province-editor.js +0 -76
  214. package/lib/GeolocationEditor/pc-editor/index.js +0 -247
  215. package/lib/ImageEditor/mb-editor/index.css +0 -29
  216. package/lib/ImageEditor/mb-editor/index.js +0 -136
  217. package/lib/ImageEditor/pc-editor/images-previewer/index.js +0 -140
  218. package/lib/ImageEditor/pc-editor/index.css +0 -24
  219. package/lib/ImageEditor/pc-editor/index.js +0 -194
  220. package/lib/MobileFullScreenPage/body/index.css +0 -9
  221. package/lib/MobileFullScreenPage/body/index.js +0 -23
  222. package/lib/MobileFullScreenPage/header/index.css +0 -39
  223. package/lib/MobileFullScreenPage/header/index.js +0 -38
  224. package/lib/MobileFullScreenPage/index.css +0 -13
  225. package/lib/MobileFullScreenPage/index.js +0 -73
  226. package/lib/MobileModal/index.js +0 -41
  227. package/lib/MobileOperationSheet/index.css +0 -27
  228. package/lib/MobileOperationSheet/index.js +0 -92
  229. package/lib/MobileSelector/empty/index.css +0 -3
  230. package/lib/MobileSelector/empty/index.js +0 -23
  231. package/lib/MobileSelector/index.css +0 -32
  232. package/lib/MobileSelector/index.js +0 -57
  233. package/lib/MobileSelector/option/index.css +0 -28
  234. package/lib/MobileSelector/option/index.js +0 -36
  235. package/lib/MobileSelector/options/index.css +0 -8
  236. package/lib/MobileSelector/options/index.js +0 -18
  237. package/lib/MobileSelector/search/index.css +0 -7
  238. package/lib/MobileSelector/search/index.js +0 -26
  239. package/lib/MobileUpload/index.css +0 -1
  240. package/lib/MobileUpload/index.js +0 -160
  241. package/lib/RowExpand/index.js +0 -24
  242. package/lib/RowExpandEditor/add-btn/index.js +0 -24
  243. package/lib/RowExpandEditor/add-btn/mb-add-btn/index.css +0 -3
  244. package/lib/RowExpandEditor/add-btn/mb-add-btn/index.js +0 -19
  245. package/lib/RowExpandEditor/checkbox-editor/index.js +0 -25
  246. package/lib/RowExpandEditor/checkbox-editor/mb-editor/index.css +0 -6
  247. package/lib/RowExpandEditor/checkbox-editor/mb-editor/index.js +0 -36
  248. package/lib/RowExpandEditor/collaborator-editor/index.js +0 -24
  249. package/lib/RowExpandEditor/collaborator-editor/mb-editor/index.css +0 -9
  250. package/lib/RowExpandEditor/collaborator-editor/mb-editor/index.js +0 -163
  251. package/lib/RowExpandEditor/date-editor/index.js +0 -24
  252. package/lib/RowExpandEditor/date-editor/mb-editor.js +0 -82
  253. package/lib/RowExpandEditor/department-editor/index.js +0 -24
  254. package/lib/RowExpandEditor/department-editor/mb-editor.js +0 -65
  255. package/lib/RowExpandEditor/digital-sign-editor/index.js +0 -24
  256. package/lib/RowExpandEditor/digital-sign-editor/mb-editor/index.css +0 -1
  257. package/lib/RowExpandEditor/digital-sign-editor/mb-editor/index.js +0 -130
  258. package/lib/RowExpandEditor/duration-editor/index.js +0 -24
  259. package/lib/RowExpandEditor/duration-editor/mb-editor.js +0 -71
  260. package/lib/RowExpandEditor/email-editor/index.js +0 -24
  261. package/lib/RowExpandEditor/email-editor/mb-editor/index.css +0 -1
  262. package/lib/RowExpandEditor/email-editor/mb-editor/index.js +0 -84
  263. package/lib/RowExpandEditor/email-editor/pc-editor/index.css +0 -1
  264. package/lib/RowExpandEditor/file-editor/index.js +0 -24
  265. package/lib/RowExpandEditor/file-editor/mb-editor/index.js +0 -114
  266. package/lib/RowExpandEditor/file-editor/pc-editor/index.css +0 -1
  267. package/lib/RowExpandEditor/geolocation-editor/index.js +0 -24
  268. package/lib/RowExpandEditor/geolocation-editor/mb-editor/index.js +0 -100
  269. package/lib/RowExpandEditor/image-editor/index.js +0 -24
  270. package/lib/RowExpandEditor/image-editor/mb-editor/index.css +0 -30
  271. package/lib/RowExpandEditor/image-editor/mb-editor/index.js +0 -109
  272. package/lib/RowExpandEditor/long-text-editor/index.js +0 -24
  273. package/lib/RowExpandEditor/long-text-editor/mb-editor/editor/index.css +0 -10
  274. package/lib/RowExpandEditor/long-text-editor/mb-editor/editor/index.js +0 -80
  275. package/lib/RowExpandEditor/long-text-editor/mb-editor/index.css +0 -3
  276. package/lib/RowExpandEditor/long-text-editor/mb-editor/index.js +0 -91
  277. package/lib/RowExpandEditor/multiple-select-editor/index.js +0 -24
  278. package/lib/RowExpandEditor/multiple-select-editor/mb-editor/index.js +0 -154
  279. package/lib/RowExpandEditor/number-editor/index.js +0 -24
  280. package/lib/RowExpandEditor/number-editor/mb-editor/index.css +0 -3
  281. package/lib/RowExpandEditor/number-editor/mb-editor/index.js +0 -76
  282. package/lib/RowExpandEditor/rate-editor/index.css +0 -34
  283. package/lib/RowExpandEditor/rate-editor/index.js +0 -25
  284. package/lib/RowExpandEditor/rate-editor/mb-editor.js +0 -92
  285. package/lib/RowExpandEditor/right-angle/index.css +0 -6
  286. package/lib/RowExpandEditor/right-angle/index.js +0 -17
  287. package/lib/RowExpandEditor/single-select-editor/index.js +0 -24
  288. package/lib/RowExpandEditor/single-select-editor/mb-editor/index.css +0 -8
  289. package/lib/RowExpandEditor/single-select-editor/mb-editor/index.js +0 -134
  290. package/lib/RowExpandEditor/text-editor/index.js +0 -24
  291. package/lib/RowExpandEditor/text-editor/mb-editor/index.css +0 -14
  292. package/lib/RowExpandEditor/text-editor/mb-editor/index.js +0 -37
  293. package/lib/RowExpandEditor/url-editor/index.js +0 -24
  294. package/lib/RowExpandEditor/url-editor/mb-editor/index.css +0 -17
  295. package/lib/RowExpandEditor/url-editor/mb-editor/index.js +0 -87
  296. package/lib/RowExpandFormatter/department-formatter/index.js +0 -19
  297. package/lib/RowExpandFormatter/department-formatter/mb-formatter.js +0 -20
  298. package/lib/RowExpandFormatter/rate-formatter/index.css +0 -5
  299. package/lib/RowExpandView/body/index.css +0 -173
  300. package/lib/RowExpandView/body/index.js +0 -111
  301. package/lib/RowExpandView/column-content/index.css +0 -27
  302. package/lib/RowExpandView/column-content/index.js +0 -25
  303. package/lib/RowExpandView/index.css +0 -3
  304. package/lib/RowExpandView/index.js +0 -178
  305. package/lib/select-editor/mb-editor/index.css +0 -1
  306. package/lib/select-editor/mb-editor/index.js +0 -105
  307. /package/lib/CollaboratorEditor/{pc-editor → pc-collaborator-editor}/index.css +0 -0
  308. /package/lib/CollaboratorEditor/{pc-editor → pc-collaborator-editor}/index.js +0 -0
  309. /package/lib/{constants/departments.js → Department-editor/constants.js} +0 -0
  310. /package/lib/{DepartmentMultipleSelectEditor → Department-editor/department-multiple-select}/index.css +0 -0
  311. /package/lib/{utils/departments.js → Department-editor/utils.js} +0 -0
  312. /package/lib/DigitalSignEditor/{pc-editor/index.css → index.css} +0 -0
  313. /package/lib/FileEditor/files-previewer/{pc-previewer/file-previewer → file-previewer}/file-name-editor/index.css +0 -0
  314. /package/lib/GeolocationEditor/{pc-editor/map-editor → map-editor}/large-editor/index.css +0 -0
  315. /package/lib/GeolocationEditor/{pc-editor/map-selection-editor → map-selection-editor}/large-editor/index.css +0 -0
  316. /package/lib/GeolocationEditor/{pc-editor/parse-geolocation.js → parse-geolocation.js} +0 -0
  317. /package/lib/GeolocationEditor/{pc-editor/selector-list.js → selector-list.js} +0 -0
  318. /package/lib/ImageEditor/{pc-editor/addition-previewer → addition-previewer}/image-link/index.css +0 -0
  319. /package/lib/ImageEditor/{pc-editor/addition-previewer → addition-previewer}/index.css +0 -0
  320. /package/lib/ImageEditor/{pc-editor/addition-previewer → addition-previewer}/local-image-addition/index.css +0 -0
  321. /package/lib/LinkEditor/{mb-popover → mb-link-editor-popover}/index.js +0 -0
  322. /package/lib/LinkEditor/{pc-popover → pc-link-editor-popover}/index.css +0 -0
  323. /package/lib/LinkEditor/{pc-popover → pc-link-editor-popover}/index.js +0 -0
  324. /package/lib/RowExpandEditor/{add-btn/pc-add-btn → RowExpandAddBtn}/index.css +0 -0
  325. /package/lib/RowExpandEditor/{checkbox-editor → RowExpandCheckboxEditor}/index.css +0 -0
  326. /package/lib/RowExpandEditor/{geolocation-editor/pc-editor → RowExpandGeolocationEditor}/index.css +0 -0
  327. /package/lib/RowExpandEditor/{image-editor/pc-editor → RowExpandImageEditor}/index.css +0 -0
  328. /package/lib/RowExpandEditor/{long-text-editor/pc-editor → RowExpandLongTextEditor}/index.css +0 -0
  329. /package/lib/RowExpandEditor/{single-select-editor/pc-editor → RowExpandSingleSelectorEditor}/index.css +0 -0
  330. /package/lib/RowExpandEditor/{text-editor/pc-editor → RowExpandTextEditor}/index.css +0 -0
  331. /package/lib/RowExpandEditor/{url-editor/pc-editor → RowExpandUrlEditor}/index.css +0 -0
  332. /package/lib/RowExpandFormatter/{email-formatter → RowExpandEmailFormatter}/index.js +0 -0
  333. /package/lib/RowExpandFormatter/{file-formatter → RowExpandFileFormatter}/index.css +0 -0
  334. /package/lib/RowExpandFormatter/{file-formatter → RowExpandFileFormatter}/index.js +0 -0
  335. /package/lib/RowExpandFormatter/{file-formatter → RowExpandFileFormatter}/row-expand-file-item-formatter.js +0 -0
  336. /package/lib/RowExpandFormatter/{formula-formatter → RowExpandFormulaFormatter}/index.js +0 -0
  337. /package/lib/RowExpandFormatter/{image-formatter → RowExpandImageFormatter}/index.css +0 -0
  338. /package/lib/RowExpandFormatter/{image-formatter → RowExpandImageFormatter}/index.js +0 -0
  339. /package/lib/RowExpandFormatter/{image-formatter → RowExpandImageFormatter}/row-expand-image-item-formatter.js +0 -0
  340. /package/lib/RowExpandFormatter/{link-formatter → RowExpandLinkFormatter}/collaborator-item-formatter.js +0 -0
  341. /package/lib/RowExpandFormatter/{link-formatter → RowExpandLinkFormatter}/index.css +0 -0
  342. /package/lib/RowExpandFormatter/{link-formatter → RowExpandLinkFormatter}/index.js +0 -0
  343. /package/lib/RowExpandFormatter/{link-formatter → RowExpandLinkFormatter}/value-display-utils.js +0 -0
  344. /package/lib/RowExpandFormatter/{rate-formatter → RowExpandRateFormatter}/index.js +0 -0
  345. /package/lib/RowExpandFormatter/{url-formatter → RowExpandUrlFormatter}/index.css +0 -0
  346. /package/lib/RowExpandFormatter/{url-formatter → RowExpandUrlFormatter}/index.js +0 -0
@@ -0,0 +1,162 @@
1
+ "use strict";
2
+
3
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
4
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.default = exports.KeyboardItem = void 0;
9
+ var _classnames = _interopRequireDefault(require("classnames"));
10
+ var React = _interopRequireWildcard(require("react"));
11
+ var _rmcFeedback = _interopRequireDefault(require("rmc-feedback"));
12
+ var _exenv = require("../_util/exenv");
13
+ /**
14
+ * determines whether an array includes a certain value among its entries, returning true or false as appropriate.
15
+ * @param {array} arr The array to search in
16
+ * @param {any} item The value to search for
17
+ */
18
+ function includes(arr, item) {
19
+ if (!arr || !arr.length || !item) {
20
+ return false;
21
+ }
22
+ for (let i = 0, len = arr.length; i < len; i++) {
23
+ if (arr[i] === item) {
24
+ return true;
25
+ }
26
+ }
27
+ return false;
28
+ }
29
+ class KeyboardItem extends React.Component {
30
+ render() {
31
+ const {
32
+ prefixCls,
33
+ onClick,
34
+ className,
35
+ disabled,
36
+ children,
37
+ tdRef,
38
+ label,
39
+ iconOnly,
40
+ ...restProps
41
+ } = this.props;
42
+ let value = children;
43
+ if (className === 'keyboard-delete') {
44
+ value = 'delete';
45
+ } else if (className === 'keyboard-hide') {
46
+ value = 'hide';
47
+ } else if (className === 'keyboard-confirm') {
48
+ value = 'confirm';
49
+ }
50
+ const extraCls = {
51
+ ["".concat(prefixCls, "-item-disabled")]: disabled
52
+ };
53
+ const wrapCls = (0, _classnames.default)("".concat(prefixCls, "-item"), className, extraCls);
54
+ return /*#__PURE__*/React.createElement(_rmcFeedback.default, {
55
+ disabled: disabled,
56
+ activeClassName: "".concat(prefixCls, "-item-active")
57
+ }, /*#__PURE__*/React.createElement("td", Object.assign({
58
+ ref: tdRef
59
+ // tslint:disable-next-line:jsx-no-multiline-js
60
+ ,
61
+ onTouchEnd: e => {
62
+ onClick(e, value);
63
+ },
64
+ className: wrapCls
65
+ }, restProps), children, iconOnly && /*#__PURE__*/React.createElement("i", {
66
+ className: "sr-only"
67
+ }, label)));
68
+ }
69
+ }
70
+ exports.KeyboardItem = KeyboardItem;
71
+ KeyboardItem.defaultProps = {
72
+ prefixCls: 'am-number-keyboard',
73
+ onClick: () => {},
74
+ disabled: false
75
+ };
76
+ class CustomKeyboard extends React.Component {
77
+ constructor() {
78
+ var _this;
79
+ super(...arguments);
80
+ _this = this;
81
+ this.onKeyboardClick = function (e) {
82
+ let value = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
83
+ e.nativeEvent.stopImmediatePropagation();
84
+ if (_this.props.disabledKeys && includes(_this.props.disabledKeys, value)) {
85
+ return null;
86
+ }
87
+ if (value === 'confirm' && _this.confirmDisabled) {
88
+ return null;
89
+ } else {
90
+ if (_this.linkedInput) {
91
+ _this.linkedInput.onKeyboardClick(value);
92
+ }
93
+ }
94
+ };
95
+ this.renderKeyboardItem = (item, index) => {
96
+ let disabled = false;
97
+ if (this.props.disabledKeys && includes(this.props.disabledKeys, item)) {
98
+ disabled = true;
99
+ }
100
+ return /*#__PURE__*/React.createElement(KeyboardItem, {
101
+ onClick: this.onKeyboardClick,
102
+ key: "item-".concat(item, "-").concat(index),
103
+ disabled: disabled
104
+ }, item);
105
+ };
106
+ }
107
+ render() {
108
+ const {
109
+ prefixCls,
110
+ confirmLabel,
111
+ backspaceLabel,
112
+ cancelKeyboardLabel,
113
+ wrapProps,
114
+ header
115
+ } = this.props;
116
+ const wrapperCls = (0, _classnames.default)("".concat(prefixCls, "-wrapper"), "".concat(prefixCls, "-wrapper-hide"));
117
+ return /*#__PURE__*/React.createElement("div", Object.assign({
118
+ className: wrapperCls,
119
+ ref: el => this.antmKeyboard = el
120
+ }, wrapProps), header && /*#__PURE__*/React.cloneElement(header, {
121
+ onClick: this.onKeyboardClick
122
+ }), /*#__PURE__*/React.createElement("table", null, /*#__PURE__*/React.createElement("tbody", null, /*#__PURE__*/React.createElement("tr", null, ['1', '2', '3'].map((item, index) =>
123
+ // tslint:disable-next-line:jsx-no-multiline-js
124
+ this.renderKeyboardItem(item, index)), /*#__PURE__*/React.createElement(KeyboardItem, Object.assign({
125
+ className: "keyboard-delete",
126
+ rowSpan: 2,
127
+ onClick: this.onKeyboardClick
128
+ }, this.getAriaAttr(backspaceLabel)))), /*#__PURE__*/React.createElement("tr", null, ['4', '5', '6'].map((item, index) =>
129
+ // tslint:disable-next-line:jsx-no-multiline-js
130
+ this.renderKeyboardItem(item, index))), /*#__PURE__*/React.createElement("tr", null, ['7', '8', '9'].map((item, index) =>
131
+ // tslint:disable-next-line:jsx-no-multiline-js
132
+ this.renderKeyboardItem(item, index)), /*#__PURE__*/React.createElement(KeyboardItem, {
133
+ className: "keyboard-confirm",
134
+ rowSpan: 2,
135
+ onClick: this.onKeyboardClick,
136
+ tdRef: el => this.confirmKeyboardItem = el
137
+ }, confirmLabel)), /*#__PURE__*/React.createElement("tr", null, ['.', '0'].map((item, index) =>
138
+ // tslint:disable-next-line:jsx-no-multiline-js
139
+ this.renderKeyboardItem(item, index)), /*#__PURE__*/React.createElement(KeyboardItem, Object.assign({
140
+ className: "keyboard-hide",
141
+ onClick: this.onKeyboardClick
142
+ }, this.getAriaAttr(cancelKeyboardLabel)))))));
143
+ }
144
+ getAriaAttr(label) {
145
+ if (_exenv.IS_IOS) {
146
+ return {
147
+ label,
148
+ iconOnly: true
149
+ };
150
+ } else {
151
+ return {
152
+ role: 'button',
153
+ 'aria-label': label
154
+ };
155
+ }
156
+ }
157
+ }
158
+ CustomKeyboard.defaultProps = {
159
+ prefixCls: 'am-number-keyboard',
160
+ disabledKeys: null
161
+ };
162
+ var _default = exports.default = CustomKeyboard;
@@ -0,0 +1,389 @@
1
+ "use strict";
2
+
3
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
4
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.default = void 0;
9
+ var _classnames = _interopRequireDefault(require("classnames"));
10
+ var PropTypes = _interopRequireWildcard(require("prop-types"));
11
+ var React = _interopRequireWildcard(require("react"));
12
+ var _rmcFeedback = _interopRequireDefault(require("rmc-feedback"));
13
+ var _getLocale = require("../_util/getLocale");
14
+ var _customInput = _interopRequireDefault(require("./custom-input"));
15
+ var _input = _interopRequireDefault(require("./input"));
16
+ require("./style/index.css");
17
+ /* tslint:disable:jsx-no-multiline-js */
18
+
19
+ function noop() {}
20
+ function normalizeValue(value) {
21
+ if (typeof value === 'undefined' || value === null) {
22
+ return '';
23
+ }
24
+ return value + '';
25
+ }
26
+ class InputItem extends React.Component {
27
+ constructor(props) {
28
+ var _this;
29
+ super(props);
30
+ _this = this;
31
+ this.onInputChange = e => {
32
+ const el = e.target;
33
+ const {
34
+ value: rawVal
35
+ } = el;
36
+ let prePos = 0;
37
+ try {
38
+ // some input type do not support selection, see https://html.spec.whatwg.org/multipage/input.html#do-not-apply
39
+ prePos = el.selectionEnd || 0;
40
+ } catch (error) {
41
+ console.warn('Get selection error:', error);
42
+ }
43
+ const {
44
+ value: preCtrlVal = ''
45
+ } = this.state;
46
+ const {
47
+ type
48
+ } = this.props;
49
+ let ctrlValue = rawVal;
50
+ switch (type) {
51
+ case 'bankCard':
52
+ ctrlValue = rawVal.replace(/\D/g, '').replace(/(....)(?=.)/g, '$1 ');
53
+ break;
54
+ case 'phone':
55
+ ctrlValue = rawVal.replace(/\D/g, '').substring(0, 11);
56
+ const valueLen = ctrlValue.length;
57
+ if (valueLen > 3 && valueLen < 8) {
58
+ ctrlValue = "".concat(ctrlValue.substr(0, 3), " ").concat(ctrlValue.substr(3));
59
+ } else if (valueLen >= 8) {
60
+ ctrlValue = "".concat(ctrlValue.substr(0, 3), " ").concat(ctrlValue.substr(3, 4), " ").concat(ctrlValue.substr(7));
61
+ }
62
+ break;
63
+ case 'number':
64
+ ctrlValue = rawVal.replace(/\D/g, '');
65
+ break;
66
+ case 'text':
67
+ case 'password':
68
+ default:
69
+ break;
70
+ }
71
+ this.handleOnChange(ctrlValue, ctrlValue !== rawVal, () => {
72
+ switch (type) {
73
+ case 'bankCard':
74
+ case 'phone':
75
+ case 'number':
76
+ // controlled input type needs to adjust the position of the caret
77
+ try {
78
+ // some input type do not support selection, see https://html.spec.whatwg.org/multipage/input.html#do-not-apply
79
+ let pos = this.calcPos(prePos, preCtrlVal, rawVal, ctrlValue, [' '], /\D/g);
80
+ if (type === 'phone' && (pos === 4 || pos === 9) || type === 'bankCard' && pos > 0 && pos % 5 === 0) {
81
+ pos -= 1;
82
+ }
83
+ el.selectionStart = el.selectionEnd = pos;
84
+ } catch (error) {
85
+ console.warn('Set selection error:', error);
86
+ }
87
+ break;
88
+ default:
89
+ break;
90
+ }
91
+ });
92
+ };
93
+ this.handleOnChange = function (value) {
94
+ let isMutated = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
95
+ let adjustPos = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : noop;
96
+ const {
97
+ onChange
98
+ } = _this.props;
99
+ if (!('value' in _this.props)) {
100
+ _this.setState({
101
+ value
102
+ });
103
+ } else {
104
+ _this.setState({
105
+ value: _this.props.value
106
+ });
107
+ }
108
+ if (onChange) {
109
+ if (isMutated) {
110
+ setTimeout(() => {
111
+ onChange(value);
112
+ adjustPos();
113
+ });
114
+ } else {
115
+ onChange(value);
116
+ adjustPos();
117
+ }
118
+ } else {
119
+ adjustPos();
120
+ }
121
+ };
122
+ this.onInputFocus = value => {
123
+ if (this.debounceTimeout) {
124
+ clearTimeout(this.debounceTimeout);
125
+ this.debounceTimeout = null;
126
+ }
127
+ this.setState({
128
+ focus: true
129
+ });
130
+ if (this.props.onFocus) {
131
+ this.props.onFocus(value);
132
+ }
133
+ };
134
+ this.onInputBlur = value => {
135
+ if (this.inputRef) {
136
+ // this.inputRef may be null if customKeyboard unmount
137
+ this.debounceTimeout = window.setTimeout(() => {
138
+ if (document.activeElement !== (this.inputRef && this.inputRef.inputRef)) {
139
+ this.setState({
140
+ focus: false
141
+ });
142
+ }
143
+ }, 200);
144
+ }
145
+ if (this.props.onBlur) {
146
+ // fix autoFocus item blur with flash
147
+ setTimeout(() => {
148
+ // fix ios12 wechat browser click failure after input
149
+ if (document.body) {
150
+ // eslint-disable-next-line no-self-assign
151
+ document.body.scrollTop = document.body.scrollTop;
152
+ }
153
+ }, 100);
154
+ this.props.onBlur(value);
155
+ }
156
+ };
157
+ this.clearInput = () => {
158
+ if (this.props.type !== 'password' && this.props.updatePlaceholder) {
159
+ this.setState({
160
+ placeholder: this.props.value
161
+ });
162
+ }
163
+ this.setState({
164
+ value: ''
165
+ });
166
+ if (this.props.onChange) {
167
+ this.props.onChange('');
168
+ }
169
+ this.focus();
170
+ };
171
+ // this is instance method for user to use
172
+ this.focus = () => {
173
+ if (this.inputRef) {
174
+ this.inputRef.focus();
175
+ }
176
+ };
177
+ // calculate the position of the caret
178
+ this.calcPos = (prePos, preCtrlVal, rawVal, ctrlVal, placeholderChars, maskReg) => {
179
+ const editLength = rawVal.length - preCtrlVal.length;
180
+ const isAddition = editLength > 0;
181
+ let pos = prePos;
182
+ if (isAddition) {
183
+ const additionStr = rawVal.substr(pos - editLength, editLength);
184
+ let ctrlCharCount = additionStr.replace(maskReg, '').length;
185
+ pos -= editLength - ctrlCharCount;
186
+ let placeholderCharCount = 0;
187
+ while (ctrlCharCount > 0) {
188
+ if (placeholderChars.indexOf(ctrlVal.charAt(pos - ctrlCharCount + placeholderCharCount)) === -1) {
189
+ ctrlCharCount--;
190
+ } else {
191
+ placeholderCharCount++;
192
+ }
193
+ }
194
+ pos += placeholderCharCount;
195
+ }
196
+ return pos;
197
+ };
198
+ this.state = {
199
+ placeholder: props.placeholder,
200
+ value: normalizeValue(props.value || props.defaultValue)
201
+ };
202
+ }
203
+ componentWillReceiveProps(nextProps) {
204
+ if ('placeholder' in nextProps && !nextProps.updatePlaceholder) {
205
+ this.setState({
206
+ placeholder: nextProps.placeholder
207
+ });
208
+ }
209
+ if ('value' in nextProps) {
210
+ this.setState({
211
+ value: nextProps.value
212
+ });
213
+ }
214
+ }
215
+ componentWillUnmount() {
216
+ if (this.debounceTimeout) {
217
+ window.clearTimeout(this.debounceTimeout);
218
+ this.debounceTimeout = null;
219
+ }
220
+ }
221
+ render() {
222
+ const props = {
223
+ ...this.props
224
+ };
225
+ delete props.updatePlaceholder;
226
+ const {
227
+ prefixCls,
228
+ prefixListCls,
229
+ editable,
230
+ style,
231
+ clear,
232
+ children,
233
+ error,
234
+ className,
235
+ extra,
236
+ labelNumber,
237
+ type,
238
+ onExtraClick,
239
+ onErrorClick,
240
+ moneyKeyboardAlign,
241
+ moneyKeyboardWrapProps,
242
+ moneyKeyboardHeader,
243
+ onVirtualKeyboardConfirm,
244
+ autoAdjustHeight,
245
+ disabledKeys,
246
+ ...restProps
247
+ } = props;
248
+ const {
249
+ name,
250
+ disabled,
251
+ maxLength
252
+ } = restProps;
253
+ const {
254
+ value
255
+ } = this.state;
256
+
257
+ // tslint:disable-next-line:variable-name
258
+ const _locale = (0, _getLocale.getComponentLocale)(this.props, this.context, 'InputItem', () => require('./locale/zh_CN'));
259
+ const {
260
+ confirmLabel,
261
+ backspaceLabel,
262
+ cancelKeyboardLabel
263
+ } = _locale;
264
+ const {
265
+ focus,
266
+ placeholder
267
+ } = this.state;
268
+ const wrapCls = (0, _classnames.default)("".concat(prefixListCls, "-item"), "".concat(prefixCls, "-item"), "".concat(prefixListCls, "-item-middle"), className, {
269
+ ["".concat(prefixCls, "-disabled")]: disabled,
270
+ ["".concat(prefixCls, "-error")]: error,
271
+ ["".concat(prefixCls, "-focus")]: focus,
272
+ ["".concat(prefixCls, "-android")]: focus
273
+ });
274
+ const labelCls = (0, _classnames.default)("".concat(prefixCls, "-label"), {
275
+ ["".concat(prefixCls, "-label-2")]: labelNumber === 2,
276
+ ["".concat(prefixCls, "-label-3")]: labelNumber === 3,
277
+ ["".concat(prefixCls, "-label-4")]: labelNumber === 4,
278
+ ["".concat(prefixCls, "-label-5")]: labelNumber === 5,
279
+ ["".concat(prefixCls, "-label-6")]: labelNumber === 6,
280
+ ["".concat(prefixCls, "-label-7")]: labelNumber === 7
281
+ });
282
+ const controlCls = "".concat(prefixCls, "-control");
283
+ let inputType = 'text';
284
+ if (type === 'bankCard' || type === 'phone') {
285
+ inputType = 'tel';
286
+ } else if (type === 'password') {
287
+ inputType = 'password';
288
+ } else if (type === 'digit') {
289
+ inputType = 'number';
290
+ } else if (type !== 'text' && type !== 'number') {
291
+ inputType = type;
292
+ }
293
+ let patternProps;
294
+ if (type === 'number') {
295
+ patternProps = {
296
+ pattern: '[0-9]*'
297
+ };
298
+ }
299
+ let classNameProps;
300
+ if (type === 'digit') {
301
+ classNameProps = {
302
+ className: 'h5numInput' // the name is bad! todos rename.
303
+ };
304
+ }
305
+ return /*#__PURE__*/React.createElement("div", {
306
+ className: wrapCls
307
+ }, /*#__PURE__*/React.createElement("div", {
308
+ className: "".concat(prefixListCls, "-line")
309
+ }, children ? /*#__PURE__*/React.createElement("div", {
310
+ className: labelCls
311
+ }, children) : null, /*#__PURE__*/React.createElement("div", {
312
+ className: controlCls
313
+ }, type === 'money' ? /*#__PURE__*/React.createElement(_customInput.default, {
314
+ value: normalizeValue(value),
315
+ type: type,
316
+ ref: el => this.inputRef = el,
317
+ maxLength: maxLength,
318
+ placeholder: placeholder,
319
+ onChange: this.onInputChange,
320
+ onFocus: this.onInputFocus,
321
+ onBlur: this.onInputBlur,
322
+ onVirtualKeyboardConfirm: onVirtualKeyboardConfirm,
323
+ disabled: disabled,
324
+ editable: editable,
325
+ prefixCls: prefixCls,
326
+ style: style,
327
+ confirmLabel: confirmLabel,
328
+ backspaceLabel: backspaceLabel,
329
+ cancelKeyboardLabel: cancelKeyboardLabel,
330
+ moneyKeyboardAlign: moneyKeyboardAlign,
331
+ moneyKeyboardWrapProps: moneyKeyboardWrapProps,
332
+ moneyKeyboardHeader: moneyKeyboardHeader,
333
+ autoAdjustHeight: autoAdjustHeight,
334
+ disabledKeys: disabledKeys
335
+ }) : /*#__PURE__*/React.createElement(_input.default, Object.assign({}, patternProps, restProps, classNameProps, {
336
+ value: normalizeValue(value),
337
+ defaultValue: undefined,
338
+ ref: el => this.inputRef = el,
339
+ style: style,
340
+ type: inputType,
341
+ maxLength: maxLength,
342
+ name: name,
343
+ placeholder: placeholder,
344
+ onChange: this.onInputChange,
345
+ onFocus: this.onInputFocus,
346
+ onBlur: this.onInputBlur,
347
+ readOnly: !editable,
348
+ disabled: disabled
349
+ }))), clear && editable && !disabled && value && "".concat(value).length > 0 ? /*#__PURE__*/React.createElement(_rmcFeedback.default, {
350
+ activeClassName: "".concat(prefixCls, "-clear-active")
351
+ }, /*#__PURE__*/React.createElement("div", {
352
+ className: "".concat(prefixCls, "-clear"),
353
+ onClick: this.clearInput
354
+ })) : null, error ? /*#__PURE__*/React.createElement("div", {
355
+ className: "".concat(prefixCls, "-error-extra"),
356
+ onClick: onErrorClick
357
+ }) : null, extra !== '' ? /*#__PURE__*/React.createElement("div", {
358
+ className: "".concat(prefixCls, "-extra"),
359
+ onClick: onExtraClick
360
+ }, extra) : null));
361
+ }
362
+ }
363
+ InputItem.defaultProps = {
364
+ prefixCls: 'am-input',
365
+ prefixListCls: 'am-list',
366
+ type: 'text',
367
+ editable: true,
368
+ disabled: false,
369
+ placeholder: '',
370
+ clear: false,
371
+ onChange: noop,
372
+ onBlur: noop,
373
+ onFocus: noop,
374
+ extra: '',
375
+ onExtraClick: noop,
376
+ error: false,
377
+ onErrorClick: noop,
378
+ onVirtualKeyboardConfirm: noop,
379
+ labelNumber: 5,
380
+ updatePlaceholder: false,
381
+ moneyKeyboardAlign: 'right',
382
+ moneyKeyboardWrapProps: {},
383
+ moneyKeyboardHeader: null,
384
+ disabledKeys: null
385
+ };
386
+ InputItem.contextTypes = {
387
+ antLocale: PropTypes.object
388
+ };
389
+ var _default = exports.default = InputItem;
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+
3
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.default = void 0;
8
+ var React = _interopRequireWildcard(require("react"));
9
+ require("./style/index.css");
10
+ class Input extends React.Component {
11
+ constructor() {
12
+ super(...arguments);
13
+ this.onInputBlur = e => {
14
+ const value = e.target.value;
15
+ if (this.props.onBlur) {
16
+ this.props.onBlur(value);
17
+ }
18
+ };
19
+ this.onInputFocus = e => {
20
+ // here should have a value definition but none.
21
+ const value = e.target.value;
22
+ if (this.props.onFocus) {
23
+ this.props.onFocus(value);
24
+ }
25
+ };
26
+ this.focus = () => {
27
+ if (this.inputRef) {
28
+ this.inputRef.focus();
29
+ }
30
+ };
31
+ }
32
+ render() {
33
+ const {
34
+ onBlur,
35
+ onFocus,
36
+ ...restProps
37
+ } = this.props;
38
+ return /*#__PURE__*/React.createElement("input", Object.assign({
39
+ ref: el => this.inputRef = el,
40
+ onBlur: this.onInputBlur,
41
+ onFocus: this.onInputFocus
42
+ }, restProps));
43
+ }
44
+ }
45
+ var _default = exports.default = Input;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ // eslint-disable-next-line import/no-anonymous-default-export
8
+ var _default = exports.default = {
9
+ confirmLabel: 'Done',
10
+ backspaceLabel: 'Backspace',
11
+ cancelKeyboardLabel: 'CancelKeyboard'
12
+ };
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ // eslint-disable-next-line import/no-anonymous-default-export
8
+ var _default = exports.default = {
9
+ confirmLabel: 'Ок',
10
+ backspaceLabel: 'возврат на одну позицию',
11
+ cancelKeyboardLabel: 'Отменить клавиатуру'
12
+ };
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ // eslint-disable-next-line import/no-anonymous-default-export
8
+ var _default = exports.default = {
9
+ confirmLabel: 'Ok',
10
+ backspaceLabel: 'Backspace',
11
+ cancelKeyboardLabel: 'CancelKeyboard'
12
+ };
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ // eslint-disable-next-line import/no-anonymous-default-export
8
+ var _default = exports.default = {
9
+ confirmLabel: '确定',
10
+ backspaceLabel: '退格',
11
+ cancelKeyboardLabel: '收起键盘'
12
+ };
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+
3
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.default = void 0;
8
+ var React = _interopRequireWildcard(require("react"));
9
+ var ReactDOM = _interopRequireWildcard(require("react-dom"));
10
+ const createPortal = ReactDOM.createPortal;
11
+ class Portal extends React.Component {
12
+ constructor(props) {
13
+ super(props);
14
+ this.container = this.props.getContainer();
15
+ }
16
+ render() {
17
+ if (this.props.children) {
18
+ return createPortal(this.props.children, this.container);
19
+ }
20
+ return null;
21
+ }
22
+ }
23
+ exports.default = Portal;