dtable-ui-component 6.0.29-beta8 → 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} +3 -2
  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 -101
  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 -39
  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,196 @@
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 React = _interopRequireWildcard(require("react"));
11
+ var ReactDOM = _interopRequireWildcard(require("react-dom"));
12
+ var _client = require("react-dom/client");
13
+ var _rmcDialog = _interopRequireDefault(require("rmc-dialog"));
14
+ var _rmcFeedback = _interopRequireDefault(require("rmc-feedback"));
15
+ var _getDataAttr = _interopRequireDefault(require("../_util/getDataAttr"));
16
+ var _Badge = _interopRequireDefault(require("../Badge"));
17
+ require("./style/index.css");
18
+ /* tslint:disable:jsx-no-multiline-js */
19
+
20
+ const NORMAL = 'NORMAL';
21
+ const SHARE = 'SHARE';
22
+ // tslint:disable-next-line:no-empty
23
+ function noop() {}
24
+ const queue = [];
25
+ function createActionSheet(flag, config, callback) {
26
+ const props = {
27
+ prefixCls: 'am-action-sheet',
28
+ cancelButtonText: '取消',
29
+ ...config
30
+ };
31
+ const {
32
+ prefixCls,
33
+ className,
34
+ transitionName,
35
+ maskTransitionName,
36
+ maskClosable = true
37
+ } = props;
38
+ const div = document.createElement('div');
39
+ document.body.appendChild(div);
40
+ const root = (0, _client.createRoot)(div);
41
+ queue.push(close);
42
+ function close() {
43
+ if (div) {
44
+ root.unmount();
45
+ if (div.parentNode) {
46
+ div.parentNode.removeChild(div);
47
+ }
48
+ const index = queue.indexOf(close);
49
+ if (index !== -1) {
50
+ queue.splice(index, 1);
51
+ }
52
+ }
53
+ }
54
+ function cb(index) {
55
+ let rowIndex = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
56
+ const res = callback(index, rowIndex);
57
+ if (res && res.then) {
58
+ res.then(() => {
59
+ close();
60
+ });
61
+ } else {
62
+ close();
63
+ }
64
+ }
65
+ const {
66
+ title,
67
+ message,
68
+ options,
69
+ destructiveButtonIndex,
70
+ cancelButtonIndex,
71
+ cancelButtonText,
72
+ badges = []
73
+ } = props;
74
+ const titleMsg = [title ? /*#__PURE__*/React.createElement("h3", {
75
+ key: "0",
76
+ className: "".concat(prefixCls, "-title")
77
+ }, title) : null, message ? /*#__PURE__*/React.createElement("div", {
78
+ key: "1",
79
+ className: "".concat(prefixCls, "-message")
80
+ }, message) : null];
81
+ let children = null;
82
+ let mode = 'normal';
83
+ switch (flag) {
84
+ case NORMAL:
85
+ mode = 'normal';
86
+ const normalOptions = options;
87
+ const badgesMap = {};
88
+ if (badges && badges.length > 0) {
89
+ badges.forEach(element => {
90
+ if (element.index >= 0) {
91
+ badgesMap[element.index] = /*#__PURE__*/React.createElement(_Badge.default, element);
92
+ }
93
+ });
94
+ }
95
+ children = /*#__PURE__*/React.createElement("div", (0, _getDataAttr.default)(props), titleMsg, /*#__PURE__*/React.createElement("div", {
96
+ className: "".concat(prefixCls, "-button-list"),
97
+ role: "group"
98
+ }, normalOptions.map((item, index) => {
99
+ const itemProps = {
100
+ className: (0, _classnames.default)("".concat(prefixCls, "-button-list-item"), {
101
+ ["".concat(prefixCls, "-destructive-button")]: destructiveButtonIndex === index,
102
+ ["".concat(prefixCls, "-cancel-button")]: cancelButtonIndex === index
103
+ }),
104
+ onClick: () => cb(index),
105
+ role: 'button'
106
+ };
107
+ let bContent = /*#__PURE__*/React.createElement("div", itemProps, item);
108
+ // 仅在设置徽标的情况下修改dom结构
109
+ if (badgesMap[index]) {
110
+ bContent = /*#__PURE__*/React.createElement("div", Object.assign({}, itemProps, {
111
+ className: "".concat(itemProps.className, " ").concat(prefixCls, "-button-list-badge")
112
+ }), /*#__PURE__*/React.createElement("span", {
113
+ className: "".concat(prefixCls, "-button-list-item-content")
114
+ }, item), badgesMap[index]);
115
+ }
116
+ let bItem = /*#__PURE__*/React.createElement(_rmcFeedback.default, {
117
+ key: index,
118
+ activeClassName: "".concat(prefixCls, "-button-list-item-active")
119
+ }, bContent);
120
+ if (cancelButtonIndex === index || destructiveButtonIndex === index) {
121
+ bItem = /*#__PURE__*/React.createElement(_rmcFeedback.default, {
122
+ key: index,
123
+ activeClassName: "".concat(prefixCls, "-button-list-item-active")
124
+ }, /*#__PURE__*/React.createElement("div", itemProps, item, cancelButtonIndex === index ? /*#__PURE__*/React.createElement("span", {
125
+ className: "".concat(prefixCls, "-cancel-button-mask")
126
+ }) : null));
127
+ }
128
+ return bItem;
129
+ })));
130
+ break;
131
+ case SHARE:
132
+ mode = 'share';
133
+ const multipleLine = options.length && Array.isArray(options[0]) || false;
134
+ const createList = function (item, index) {
135
+ let rowIndex = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
136
+ return /*#__PURE__*/React.createElement("div", {
137
+ className: "".concat(prefixCls, "-share-list-item"),
138
+ role: "button",
139
+ key: index,
140
+ onClick: () => cb(index, rowIndex)
141
+ }, /*#__PURE__*/React.createElement("div", {
142
+ className: "".concat(prefixCls, "-share-list-item-icon")
143
+ }, item.icon), /*#__PURE__*/React.createElement("div", {
144
+ className: "".concat(prefixCls, "-share-list-item-title")
145
+ }, item.title));
146
+ };
147
+ children = /*#__PURE__*/React.createElement("div", (0, _getDataAttr.default)(props), titleMsg, /*#__PURE__*/React.createElement("div", {
148
+ className: "".concat(prefixCls, "-share")
149
+ }, multipleLine ? options.map((item, index) => /*#__PURE__*/React.createElement("div", {
150
+ key: index,
151
+ className: "".concat(prefixCls, "-share-list")
152
+ }, item.map((ii, ind) => createList(ii, ind, index)))) : /*#__PURE__*/React.createElement("div", {
153
+ className: "".concat(prefixCls, "-share-list")
154
+ }, options.map((item, index) => createList(item, index))), /*#__PURE__*/React.createElement(_rmcFeedback.default, {
155
+ activeClassName: "".concat(prefixCls, "-share-cancel-button-active")
156
+ }, /*#__PURE__*/React.createElement("div", {
157
+ className: "".concat(prefixCls, "-share-cancel-button"),
158
+ role: "button",
159
+ onClick: () => cb(-1)
160
+ }, cancelButtonText))));
161
+ break;
162
+ default:
163
+ break;
164
+ }
165
+ const rootCls = (0, _classnames.default)("".concat(prefixCls, "-").concat(mode), className);
166
+ root.render( /*#__PURE__*/React.createElement(_rmcDialog.default, {
167
+ visible: true,
168
+ title: "",
169
+ footer: "",
170
+ prefixCls: prefixCls,
171
+ className: rootCls,
172
+ transitionName: transitionName || 'am-slide-up',
173
+ maskTransitionName: maskTransitionName || 'am-fade',
174
+ onClose: () => cb(cancelButtonIndex || -1),
175
+ maskClosable: maskClosable,
176
+ wrapProps: props.wrapProps || {}
177
+ }, children));
178
+ return {
179
+ close
180
+ };
181
+ }
182
+
183
+ // eslint-disable-next-line import/no-anonymous-default-export
184
+ var _default = exports.default = {
185
+ showActionSheetWithOptions(config) {
186
+ let callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : noop;
187
+ createActionSheet(NORMAL, config, callback);
188
+ },
189
+ showShareActionSheetWithOptions(config) {
190
+ let callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : noop;
191
+ createActionSheet(SHARE, config, callback);
192
+ },
193
+ close() {
194
+ queue.forEach(q => q());
195
+ }
196
+ };
@@ -0,0 +1,377 @@
1
+ @import url('../../css/am.css');
2
+
3
+ .am-action-sheet-wrap {
4
+ position: fixed;
5
+ overflow: auto;
6
+ top: 0;
7
+ right: 0;
8
+ bottom: 0;
9
+ left: 0;
10
+ z-index: 1000;
11
+ -webkit-overflow-scrolling: touch;
12
+ outline: 0;
13
+ }
14
+
15
+ .am-action-sheet-mask {
16
+ position: fixed;
17
+ top: 0;
18
+ right: 0;
19
+ left: 0;
20
+ bottom: 0;
21
+ background-color: rgba(0, 0, 0, 0.4);
22
+ height: 100%;
23
+ z-index: 1000;
24
+ }
25
+
26
+ .am-action-sheet-mask-hidden {
27
+ display: none;
28
+ }
29
+
30
+ .am-action-sheet-close {
31
+ display: none;
32
+ }
33
+
34
+ .am-action-sheet {
35
+ position: fixed;
36
+ left: 0;
37
+ bottom: 0;
38
+ width: 100%;
39
+ background-color: #fff;
40
+ padding-bottom: env(safe-area-inset-bottom);
41
+ }
42
+
43
+ .am-action-sheet.am-action-sheet-share {
44
+ background-color: #f2f2f2;
45
+ }
46
+
47
+ .am-action-sheet-title,
48
+ .am-action-sheet-message {
49
+ margin: 15px auto;
50
+ padding: 0 15px;
51
+ text-align: center;
52
+ }
53
+
54
+ .am-action-sheet-title {
55
+ font-size: 17px;
56
+ }
57
+
58
+ .am-action-sheet-message {
59
+ color: #888;
60
+ font-size: 14px;
61
+ }
62
+
63
+ .am-action-sheet-button-list {
64
+ text-align: center;
65
+ color: #000;
66
+ }
67
+
68
+ .am-action-sheet-button-list-item {
69
+ font-size: 18px;
70
+ padding: 0 8px;
71
+ margin: 0;
72
+ position: relative;
73
+ height: 50px;
74
+ line-height: 50px;
75
+ -webkit-box-sizing: border-box;
76
+ box-sizing: border-box;
77
+ white-space: nowrap;
78
+ text-overflow: ellipsis;
79
+ overflow-x: hidden;
80
+ border-top: 1PX solid #ddd;
81
+ }
82
+
83
+ @media (-webkit-min-device-pixel-ratio: 2),
84
+ (min-resolution: 2dppx) {
85
+ html:not([data-scale]) .am-action-sheet-button-list-item {
86
+ border-top: none;
87
+ }
88
+
89
+ html:not([data-scale]) .am-action-sheet-button-list-item::before {
90
+ content: '';
91
+ position: absolute;
92
+ background-color: #ddd;
93
+ display: block;
94
+ z-index: 1;
95
+ top: 0;
96
+ right: auto;
97
+ bottom: auto;
98
+ left: 0;
99
+ width: 100%;
100
+ height: 1PX;
101
+ -webkit-transform-origin: 50% 50%;
102
+ -ms-transform-origin: 50% 50%;
103
+ transform-origin: 50% 50%;
104
+ -webkit-transform: scaleY(0.5);
105
+ -ms-transform: scaleY(0.5);
106
+ transform: scaleY(0.5);
107
+ }
108
+ }
109
+
110
+ @media (-webkit-min-device-pixel-ratio: 2) and (-webkit-min-device-pixel-ratio: 3),
111
+ (min-resolution: 2dppx) and (min-resolution: 3dppx) {
112
+ html:not([data-scale]) .am-action-sheet-button-list-item::before {
113
+ -webkit-transform: scaleY(0.33);
114
+ -ms-transform: scaleY(0.33);
115
+ transform: scaleY(0.33);
116
+ }
117
+ }
118
+
119
+ .am-action-sheet-button-list-item.am-action-sheet-button-list-item-active {
120
+ background-color: #ddd;
121
+ }
122
+
123
+ .am-action-sheet-button-list-badge {
124
+ display: -webkit-box;
125
+ display: -webkit-flex;
126
+ display: -ms-flexbox;
127
+ display: flex;
128
+ -webkit-box-align: center;
129
+ -webkit-align-items: center;
130
+ -ms-flex-align: center;
131
+ align-items: center;
132
+ -webkit-box-pack: center;
133
+ -webkit-justify-content: center;
134
+ -ms-flex-pack: center;
135
+ justify-content: center;
136
+ }
137
+
138
+ .am-action-sheet-button-list-badge .am-badge {
139
+ margin-left: 8px;
140
+ -webkit-flex-shrink: 0;
141
+ -ms-flex-negative: 0;
142
+ flex-shrink: 0;
143
+ }
144
+
145
+ .am-action-sheet-button-list-item-content {
146
+ display: inline-block;
147
+ white-space: nowrap;
148
+ overflow: hidden;
149
+ text-overflow: ellipsis;
150
+ }
151
+
152
+ .am-action-sheet-button-list .am-action-sheet-cancel-button {
153
+ padding-top: 6px;
154
+ position: relative;
155
+ }
156
+
157
+ .am-action-sheet-button-list .am-action-sheet-cancel-button-mask {
158
+ position: absolute;
159
+ top: 0;
160
+ left: 0;
161
+ width: 100%;
162
+ height: 6px;
163
+ background-color: #e7e7ed;
164
+ border-top: 1PX solid #ddd;
165
+ border-bottom: 1PX solid #ddd;
166
+ }
167
+
168
+ @media (-webkit-min-device-pixel-ratio: 2),
169
+ (min-resolution: 2dppx) {
170
+ html:not([data-scale]) .am-action-sheet-button-list .am-action-sheet-cancel-button-mask {
171
+ border-top: none;
172
+ }
173
+
174
+ html:not([data-scale]) .am-action-sheet-button-list .am-action-sheet-cancel-button-mask::before {
175
+ content: '';
176
+ position: absolute;
177
+ background-color: #ddd;
178
+ display: block;
179
+ z-index: 1;
180
+ top: 0;
181
+ right: auto;
182
+ bottom: auto;
183
+ left: 0;
184
+ width: 100%;
185
+ height: 1PX;
186
+ -webkit-transform-origin: 50% 50%;
187
+ -ms-transform-origin: 50% 50%;
188
+ transform-origin: 50% 50%;
189
+ -webkit-transform: scaleY(0.5);
190
+ -ms-transform: scaleY(0.5);
191
+ transform: scaleY(0.5);
192
+ }
193
+ }
194
+
195
+ @media (-webkit-min-device-pixel-ratio: 2) and (-webkit-min-device-pixel-ratio: 3),
196
+ (min-resolution: 2dppx) and (min-resolution: 3dppx) {
197
+ html:not([data-scale]) .am-action-sheet-button-list .am-action-sheet-cancel-button-mask::before {
198
+ -webkit-transform: scaleY(0.33);
199
+ -ms-transform: scaleY(0.33);
200
+ transform: scaleY(0.33);
201
+ }
202
+ }
203
+
204
+ @media (-webkit-min-device-pixel-ratio: 2),
205
+ (min-resolution: 2dppx) {
206
+ html:not([data-scale]) .am-action-sheet-button-list .am-action-sheet-cancel-button-mask {
207
+ border-bottom: none;
208
+ }
209
+
210
+ html:not([data-scale]) .am-action-sheet-button-list .am-action-sheet-cancel-button-mask::after {
211
+ content: '';
212
+ position: absolute;
213
+ background-color: #ddd;
214
+ display: block;
215
+ z-index: 1;
216
+ top: auto;
217
+ right: auto;
218
+ bottom: 0;
219
+ left: 0;
220
+ width: 100%;
221
+ height: 1PX;
222
+ -webkit-transform-origin: 50% 100%;
223
+ -ms-transform-origin: 50% 100%;
224
+ transform-origin: 50% 100%;
225
+ -webkit-transform: scaleY(0.5);
226
+ -ms-transform: scaleY(0.5);
227
+ transform: scaleY(0.5);
228
+ }
229
+ }
230
+
231
+ @media (-webkit-min-device-pixel-ratio: 2) and (-webkit-min-device-pixel-ratio: 3),
232
+ (min-resolution: 2dppx) and (min-resolution: 3dppx) {
233
+ html:not([data-scale]) .am-action-sheet-button-list .am-action-sheet-cancel-button-mask::after {
234
+ -webkit-transform: scaleY(0.33);
235
+ -ms-transform: scaleY(0.33);
236
+ transform: scaleY(0.33);
237
+ }
238
+ }
239
+
240
+ .am-action-sheet-button-list .am-action-sheet-destructive-button {
241
+ color: #f4333c;
242
+ }
243
+
244
+ .am-action-sheet-share-list {
245
+ display: -webkit-box;
246
+ display: -webkit-flex;
247
+ display: -ms-flexbox;
248
+ display: flex;
249
+ position: relative;
250
+ border-top: 1PX solid #ddd;
251
+ padding: 21px 0 21px 15px;
252
+ overflow-y: scroll;
253
+ -webkit-overflow-scrolling: touch;
254
+ }
255
+
256
+ @media (-webkit-min-device-pixel-ratio: 2),
257
+ (min-resolution: 2dppx) {
258
+ html:not([data-scale]) .am-action-sheet-share-list {
259
+ border-top: none;
260
+ }
261
+
262
+ html:not([data-scale]) .am-action-sheet-share-list::before {
263
+ content: '';
264
+ position: absolute;
265
+ background-color: #ddd;
266
+ display: block;
267
+ z-index: 1;
268
+ top: 0;
269
+ right: auto;
270
+ bottom: auto;
271
+ left: 0;
272
+ width: 100%;
273
+ height: 1PX;
274
+ -webkit-transform-origin: 50% 50%;
275
+ -ms-transform-origin: 50% 50%;
276
+ transform-origin: 50% 50%;
277
+ -webkit-transform: scaleY(0.5);
278
+ -ms-transform: scaleY(0.5);
279
+ transform: scaleY(0.5);
280
+ }
281
+ }
282
+
283
+ @media (-webkit-min-device-pixel-ratio: 2) and (-webkit-min-device-pixel-ratio: 3),
284
+ (min-resolution: 2dppx) and (min-resolution: 3dppx) {
285
+ html:not([data-scale]) .am-action-sheet-share-list::before {
286
+ -webkit-transform: scaleY(0.33);
287
+ -ms-transform: scaleY(0.33);
288
+ transform: scaleY(0.33);
289
+ }
290
+ }
291
+
292
+ .am-action-sheet-share-list-item {
293
+ -webkit-box-flex: 0;
294
+ -webkit-flex: none;
295
+ -ms-flex: none;
296
+ flex: none;
297
+ margin: 0 12px 0 0;
298
+ }
299
+
300
+ .am-action-sheet-share-list-item-icon {
301
+ margin-bottom: 9px;
302
+ width: 60px;
303
+ height: 60px;
304
+ background-color: #fff;
305
+ border-radius: 3px;
306
+ display: -webkit-box;
307
+ display: -webkit-flex;
308
+ display: -ms-flexbox;
309
+ display: flex;
310
+ -webkit-box-pack: center;
311
+ -webkit-justify-content: center;
312
+ -ms-flex-pack: center;
313
+ justify-content: center;
314
+ -webkit-box-align: center;
315
+ -webkit-align-items: center;
316
+ -ms-flex-align: center;
317
+ align-items: center;
318
+ }
319
+
320
+ .am-action-sheet-share-list-item-title {
321
+ color: #888;
322
+ font-size: 10px;
323
+ text-align: center;
324
+ }
325
+
326
+ .am-action-sheet-share-cancel-button {
327
+ height: 50px;
328
+ line-height: 50px;
329
+ text-align: center;
330
+ background-color: #fff;
331
+ color: #000;
332
+ font-size: 18px;
333
+ position: relative;
334
+ border-top: 1PX solid #ddd;
335
+ -webkit-box-sizing: border-box;
336
+ box-sizing: border-box;
337
+ }
338
+
339
+ @media (-webkit-min-device-pixel-ratio: 2),
340
+ (min-resolution: 2dppx) {
341
+ html:not([data-scale]) .am-action-sheet-share-cancel-button {
342
+ border-top: none;
343
+ }
344
+
345
+ html:not([data-scale]) .am-action-sheet-share-cancel-button::before {
346
+ content: '';
347
+ position: absolute;
348
+ background-color: #ddd;
349
+ display: block;
350
+ z-index: 1;
351
+ top: 0;
352
+ right: auto;
353
+ bottom: auto;
354
+ left: 0;
355
+ width: 100%;
356
+ height: 1PX;
357
+ -webkit-transform-origin: 50% 50%;
358
+ -ms-transform-origin: 50% 50%;
359
+ transform-origin: 50% 50%;
360
+ -webkit-transform: scaleY(0.5);
361
+ -ms-transform: scaleY(0.5);
362
+ transform: scaleY(0.5);
363
+ }
364
+ }
365
+
366
+ @media (-webkit-min-device-pixel-ratio: 2) and (-webkit-min-device-pixel-ratio: 3),
367
+ (min-resolution: 2dppx) and (min-resolution: 3dppx) {
368
+ html:not([data-scale]) .am-action-sheet-share-cancel-button::before {
369
+ -webkit-transform: scaleY(0.33);
370
+ -ms-transform: scaleY(0.33);
371
+ transform: scaleY(0.33);
372
+ }
373
+ }
374
+
375
+ .am-action-sheet-share-cancel-button.am-action-sheet-share-cancel-button-active {
376
+ background-color: #ddd;
377
+ }
@@ -0,0 +1,110 @@
1
+ @import url('../css/am.css');
2
+
3
+ .am-activity-indicator {
4
+ display: -webkit-box;
5
+ display: -webkit-flex;
6
+ display: -ms-flexbox;
7
+ display: flex;
8
+ -webkit-box-align: center;
9
+ -webkit-align-items: center;
10
+ -ms-flex-align: center;
11
+ align-items: center;
12
+ z-index: 99;
13
+ }
14
+
15
+ .am-activity-indicator-spinner {
16
+ display: inline-block;
17
+ width: 20px;
18
+ height: 20px;
19
+ background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%22-2.125%20-1.875%2064%2064%22%3E%3Cpath%20fill%3D%22%23CCC%22%20d%3D%22M29.875-1.875c-17.673%200-32%2014.327-32%2032s14.327%2032%2032%2032%2032-14.327%2032-32-14.327-32-32-32zm0%2060.7c-15.85%200-28.7-12.85-28.7-28.7s12.85-28.7%2028.7-28.7%2028.7%2012.85%2028.7%2028.7-12.85%2028.7-28.7%2028.7z%22%2F%3E%3Cpath%20fill%3D%22%23108ee9%22%20d%3D%22M61.858%2030.34c.003-.102.008-.203.008-.305%200-11.43-5.996-21.452-15.01-27.113l-.013.026c-.24-.137-.515-.22-.81-.22-.912%200-1.65.738-1.65%201.65%200%20.654.384%201.215.937%201.482%207.963%205.1%2013.247%2014.017%2013.247%2024.176%200%20.147-.01.293-.01.44h.022c0%20.01-.004.02-.004.03%200%20.91.74%201.65%201.65%201.65s1.65-.74%201.65-1.65c0-.06-.012-.112-.018-.167z%22%2F%3E%3C%2Fsvg%3E");
20
+ background-position: 50%;
21
+ background-size: 100%;
22
+ background-repeat: no-repeat;
23
+ -webkit-animation: spinner-anime 1s linear infinite;
24
+ animation: spinner-anime 1s linear infinite;
25
+ }
26
+
27
+ .am-activity-indicator-tip {
28
+ font-size: 14px;
29
+ margin-left: 8px;
30
+ color: #000;
31
+ opacity: 0.4;
32
+ }
33
+
34
+ .am-activity-indicator.am-activity-indicator-toast {
35
+ position: fixed;
36
+ top: 0;
37
+ left: 0;
38
+ width: 100%;
39
+ height: 100%;
40
+ display: -webkit-box;
41
+ display: -webkit-flex;
42
+ display: -ms-flexbox;
43
+ display: flex;
44
+ -webkit-box-pack: center;
45
+ -webkit-justify-content: center;
46
+ -ms-flex-pack: center;
47
+ justify-content: center;
48
+ -webkit-box-align: center;
49
+ -webkit-align-items: center;
50
+ -ms-flex-align: center;
51
+ align-items: center;
52
+ text-align: center;
53
+ z-index: 1999;
54
+ }
55
+
56
+ .am-activity-indicator.am-activity-indicator-toast .am-activity-indicator-spinner {
57
+ margin: 0;
58
+ }
59
+
60
+ .am-activity-indicator.am-activity-indicator-toast .am-activity-indicator-toast {
61
+ display: inline-block;
62
+ position: relative;
63
+ top: 4px;
64
+ }
65
+
66
+ .am-activity-indicator-content {
67
+ display: -webkit-box;
68
+ display: -webkit-flex;
69
+ display: -ms-flexbox;
70
+ display: flex;
71
+ -webkit-box-orient: vertical;
72
+ -webkit-box-direction: normal;
73
+ -webkit-flex-direction: column;
74
+ -ms-flex-direction: column;
75
+ flex-direction: column;
76
+ -webkit-box-pack: center;
77
+ -webkit-justify-content: center;
78
+ -ms-flex-pack: center;
79
+ justify-content: center;
80
+ -webkit-box-align: center;
81
+ -webkit-align-items: center;
82
+ -ms-flex-align: center;
83
+ align-items: center;
84
+ padding: 15px 15px;
85
+ border-radius: 7px;
86
+ background-clip: padding-box;
87
+ color: #fff;
88
+ background-color: rgba(58, 58, 58, 0.9);
89
+ font-size: 15px;
90
+ line-height: 20px;
91
+ }
92
+
93
+ .am-activity-indicator-spinner-lg {
94
+ width: 32px;
95
+ height: 32px;
96
+ }
97
+
98
+ @-webkit-keyframes spinner-anime {
99
+ 100% {
100
+ -webkit-transform: rotate(360deg);
101
+ transform: rotate(360deg);
102
+ }
103
+ }
104
+
105
+ @keyframes spinner-anime {
106
+ 100% {
107
+ -webkit-transform: rotate(360deg);
108
+ transform: rotate(360deg);
109
+ }
110
+ }