amis 6.12.0-beta.11 → 6.12.0-beta.12

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 (388) hide show
  1. package/esm/compat.js +2 -2
  2. package/esm/index.js +2 -2
  3. package/esm/minimal.js +2 -2
  4. package/esm/preset.js +2 -2
  5. package/esm/renderers/AMIS.js +2 -2
  6. package/esm/renderers/Action.js +2 -2
  7. package/esm/renderers/Alert.js +2 -2
  8. package/esm/renderers/AnchorNav.js +2 -2
  9. package/esm/renderers/App.js +2 -2
  10. package/esm/renderers/Audio.js +2 -2
  11. package/esm/renderers/Avatar.js +2 -2
  12. package/esm/renderers/BarCode.js +2 -2
  13. package/esm/renderers/Breadcrumb.js +2 -2
  14. package/esm/renderers/ButtonGroup.js +2 -2
  15. package/esm/renderers/CRUD.js +5 -5
  16. package/esm/renderers/CRUD2.js +2 -2
  17. package/esm/renderers/Calendar.js +2 -2
  18. package/esm/renderers/Card.js +2 -2
  19. package/esm/renderers/Card2.js +2 -2
  20. package/esm/renderers/Cards.d.ts +2 -2
  21. package/esm/renderers/Cards.js +16 -11
  22. package/esm/renderers/Carousel.js +2 -2
  23. package/esm/renderers/Chart.js +2 -2
  24. package/esm/renderers/Code.js +2 -2
  25. package/esm/renderers/Collapse.js +2 -2
  26. package/esm/renderers/CollapseGroup.js +2 -2
  27. package/esm/renderers/Color.js +2 -2
  28. package/esm/renderers/Container.js +2 -2
  29. package/esm/renderers/Copyable.js +2 -2
  30. package/esm/renderers/Custom.js +2 -2
  31. package/esm/renderers/Date.js +2 -2
  32. package/esm/renderers/DateRange.js +2 -2
  33. package/esm/renderers/Dialog.d.ts +80 -80
  34. package/esm/renderers/Dialog.js +2 -2
  35. package/esm/renderers/Divider.js +2 -2
  36. package/esm/renderers/Drawer.js +2 -2
  37. package/esm/renderers/DropDownButton.js +2 -2
  38. package/esm/renderers/Each.js +2 -2
  39. package/esm/renderers/Flex.js +2 -2
  40. package/esm/renderers/Form/ButtonGroupSelect.js +2 -2
  41. package/esm/renderers/Form/ButtonToolbar.js +2 -2
  42. package/esm/renderers/Form/ChainedSelect.js +2 -2
  43. package/esm/renderers/Form/ChartRadios.js +2 -2
  44. package/esm/renderers/Form/Checkbox.js +2 -2
  45. package/esm/renderers/Form/Checkboxes.js +2 -2
  46. package/esm/renderers/Form/Combo.js +2 -2
  47. package/esm/renderers/Form/ConditionBuilder.js +2 -2
  48. package/esm/renderers/Form/Control.js +2 -2
  49. package/esm/renderers/Form/DiffEditor.js +2 -2
  50. package/esm/renderers/Form/Editor.js +2 -2
  51. package/esm/renderers/Form/FieldSet.js +2 -2
  52. package/esm/renderers/Form/Formula.js +2 -2
  53. package/esm/renderers/Form/Group.js +2 -2
  54. package/esm/renderers/Form/Hidden.js +2 -2
  55. package/esm/renderers/Form/IconPicker.js +2 -2
  56. package/esm/renderers/Form/IconPickerIcons.js +2 -2
  57. package/esm/renderers/Form/IconSelect.js +2 -2
  58. package/esm/renderers/Form/IconSelectStore.js +2 -2
  59. package/esm/renderers/Form/InputArray.js +2 -2
  60. package/esm/renderers/Form/InputCity.js +2 -2
  61. package/esm/renderers/Form/InputColor.d.ts +40 -40
  62. package/esm/renderers/Form/InputColor.js +2 -2
  63. package/esm/renderers/Form/InputDate.js +2 -2
  64. package/esm/renderers/Form/InputDateRange.js +2 -2
  65. package/esm/renderers/Form/InputExcel.js +2 -2
  66. package/esm/renderers/Form/InputFile.js +2 -2
  67. package/esm/renderers/Form/InputFormula.js +2 -2
  68. package/esm/renderers/Form/InputGroup.js +2 -2
  69. package/esm/renderers/Form/InputImage.js +2 -2
  70. package/esm/renderers/Form/InputMonthRange.js +2 -2
  71. package/esm/renderers/Form/InputNumber.js +2 -2
  72. package/esm/renderers/Form/InputQuarterRange.js +2 -2
  73. package/esm/renderers/Form/InputRange.js +2 -2
  74. package/esm/renderers/Form/InputRating.js +2 -2
  75. package/esm/renderers/Form/InputRepeat.js +2 -2
  76. package/esm/renderers/Form/InputRichText.js +2 -2
  77. package/esm/renderers/Form/InputSignature.js +3 -3
  78. package/esm/renderers/Form/InputSubForm.js +2 -2
  79. package/esm/renderers/Form/InputTable.js +2 -2
  80. package/esm/renderers/Form/InputTag.js +2 -2
  81. package/esm/renderers/Form/InputText.js +2 -2
  82. package/esm/renderers/Form/InputTree.js +2 -2
  83. package/esm/renderers/Form/InputVerificationCode.js +2 -2
  84. package/esm/renderers/Form/InputYearRange.js +2 -2
  85. package/esm/renderers/Form/JSONSchema.js +2 -2
  86. package/esm/renderers/Form/JSONSchemaEditor.js +2 -2
  87. package/esm/renderers/Form/ListSelect.js +2 -2
  88. package/esm/renderers/Form/LocationPicker.js +2 -2
  89. package/esm/renderers/Form/MatrixCheckboxes.js +2 -2
  90. package/esm/renderers/Form/NestedSelect.js +2 -2
  91. package/esm/renderers/Form/Picker.js +2 -2
  92. package/esm/renderers/Form/Radio.js +2 -2
  93. package/esm/renderers/Form/Radios.js +2 -2
  94. package/esm/renderers/Form/Select.js +2 -2
  95. package/esm/renderers/Form/Static.js +2 -2
  96. package/esm/renderers/Form/StaticHoc.js +2 -2
  97. package/esm/renderers/Form/Switch.js +2 -2
  98. package/esm/renderers/Form/TabsTransfer.js +2 -2
  99. package/esm/renderers/Form/TabsTransferPicker.js +2 -2
  100. package/esm/renderers/Form/Textarea.js +2 -2
  101. package/esm/renderers/Form/Transfer.js +2 -2
  102. package/esm/renderers/Form/TransferPicker.js +2 -2
  103. package/esm/renderers/Form/TreeSelect.js +2 -2
  104. package/esm/renderers/Form/UUID.js +2 -2
  105. package/esm/renderers/Form/UserSelect.js +2 -2
  106. package/esm/renderers/Grid.js +2 -2
  107. package/esm/renderers/Grid2D.js +2 -2
  108. package/esm/renderers/GridNav.js +2 -2
  109. package/esm/renderers/HBox.js +2 -2
  110. package/esm/renderers/IFrame.js +2 -2
  111. package/esm/renderers/Icon.js +2 -2
  112. package/esm/renderers/Image.js +2 -2
  113. package/esm/renderers/Images.js +2 -2
  114. package/esm/renderers/Json.js +2 -2
  115. package/esm/renderers/Link.js +2 -2
  116. package/esm/renderers/List.d.ts +2 -2
  117. package/esm/renderers/List.js +3 -3
  118. package/esm/renderers/Log.js +2 -2
  119. package/esm/renderers/Mapping.js +2 -2
  120. package/esm/renderers/Markdown.js +2 -2
  121. package/esm/renderers/MultilineText.js +2 -2
  122. package/esm/renderers/Nav.js +2 -2
  123. package/esm/renderers/Number.js +2 -2
  124. package/esm/renderers/OfficeViewer.js +2 -2
  125. package/esm/renderers/Operation.js +2 -2
  126. package/esm/renderers/Page.js +2 -2
  127. package/esm/renderers/Pagination.js +2 -2
  128. package/esm/renderers/PaginationWrapper.js +2 -2
  129. package/esm/renderers/Panel.js +2 -2
  130. package/esm/renderers/Password.js +2 -2
  131. package/esm/renderers/PdfViewer.js +2 -2
  132. package/esm/renderers/Plain.js +2 -2
  133. package/esm/renderers/PopOver.js +2 -2
  134. package/esm/renderers/Portlet.js +2 -2
  135. package/esm/renderers/Progress.js +2 -2
  136. package/esm/renderers/Property.js +2 -2
  137. package/esm/renderers/QRCode.js +2 -2
  138. package/esm/renderers/QuickEdit.js +2 -2
  139. package/esm/renderers/Remark.js +2 -2
  140. package/esm/renderers/SearchBox.js +2 -2
  141. package/esm/renderers/Service.d.ts +1 -1
  142. package/esm/renderers/Service.js +4 -4
  143. package/esm/renderers/Shape.js +2 -2
  144. package/esm/renderers/Slider.js +2 -2
  145. package/esm/renderers/SparkLine.js +2 -2
  146. package/esm/renderers/Spinner.js +2 -2
  147. package/esm/renderers/Status.js +2 -2
  148. package/esm/renderers/Steps.js +2 -2
  149. package/esm/renderers/SwitchContainer.js +2 -2
  150. package/esm/renderers/Table/AutoFilterForm.js +2 -2
  151. package/esm/renderers/Table/Cell.js +2 -2
  152. package/esm/renderers/Table/ColGroup.js +2 -2
  153. package/esm/renderers/Table/ColumnToggler.js +2 -2
  154. package/esm/renderers/Table/HeadCellFilterDropdown.js +2 -2
  155. package/esm/renderers/Table/HeadCellSearchDropdown.js +2 -2
  156. package/esm/renderers/Table/ItemActionsWrapper.js +2 -2
  157. package/esm/renderers/Table/TableBody.js +2 -2
  158. package/esm/renderers/Table/TableCell.js +2 -2
  159. package/esm/renderers/Table/TableContent.js +2 -2
  160. package/esm/renderers/Table/TableRow.js +2 -2
  161. package/esm/renderers/Table/exportExcel.js +2 -2
  162. package/esm/renderers/Table/index.js +2 -2
  163. package/esm/renderers/Table2/ColumnToggler.js +2 -2
  164. package/esm/renderers/Table2/HeadCellSearchDropdown.js +2 -2
  165. package/esm/renderers/Table2/TableCell.js +2 -2
  166. package/esm/renderers/Table2/index.d.ts +1 -1
  167. package/esm/renderers/Table2/index.js +3 -3
  168. package/esm/renderers/TableView.js +2 -2
  169. package/esm/renderers/Tabs.js +2 -2
  170. package/esm/renderers/Tag.js +2 -2
  171. package/esm/renderers/Tasks.js +2 -2
  172. package/esm/renderers/Timeline.js +2 -2
  173. package/esm/renderers/TooltipWrapper.js +2 -2
  174. package/esm/renderers/Tpl.js +2 -2
  175. package/esm/renderers/VBox.js +2 -2
  176. package/esm/renderers/Video.js +2 -2
  177. package/esm/renderers/WebComponent.js +2 -2
  178. package/esm/renderers/Wizard.d.ts +2 -2
  179. package/esm/renderers/Wizard.js +5 -5
  180. package/esm/renderers/Words.js +2 -2
  181. package/esm/renderers/Wrapper.js +2 -2
  182. package/esm/renderers/icons/mk.js +2 -2
  183. package/esm/schemaExtend.js +2 -2
  184. package/lib/compat.js +2 -2
  185. package/lib/index.js +2 -2
  186. package/lib/minimal.js +2 -2
  187. package/lib/preset.js +2 -2
  188. package/lib/renderers/AMIS.js +2 -2
  189. package/lib/renderers/Action.js +2 -2
  190. package/lib/renderers/Alert.js +2 -2
  191. package/lib/renderers/AnchorNav.js +2 -2
  192. package/lib/renderers/App.js +2 -2
  193. package/lib/renderers/Audio.js +2 -2
  194. package/lib/renderers/Avatar.js +2 -2
  195. package/lib/renderers/BarCode.js +2 -2
  196. package/lib/renderers/Breadcrumb.js +2 -2
  197. package/lib/renderers/ButtonGroup.js +2 -2
  198. package/lib/renderers/CRUD.js +5 -5
  199. package/lib/renderers/CRUD2.js +2 -2
  200. package/lib/renderers/Calendar.js +2 -2
  201. package/lib/renderers/Card.js +2 -2
  202. package/lib/renderers/Card2.js +2 -2
  203. package/lib/renderers/Cards.d.ts +2 -2
  204. package/lib/renderers/Cards.js +16 -9
  205. package/lib/renderers/Carousel.js +2 -2
  206. package/lib/renderers/Chart.js +2 -2
  207. package/lib/renderers/Code.js +2 -2
  208. package/lib/renderers/Collapse.js +2 -2
  209. package/lib/renderers/CollapseGroup.js +2 -2
  210. package/lib/renderers/Color.js +2 -2
  211. package/lib/renderers/Container.js +2 -2
  212. package/lib/renderers/Copyable.js +2 -2
  213. package/lib/renderers/Custom.js +2 -2
  214. package/lib/renderers/Date.js +2 -2
  215. package/lib/renderers/DateRange.js +2 -2
  216. package/lib/renderers/Dialog.d.ts +80 -80
  217. package/lib/renderers/Dialog.js +2 -2
  218. package/lib/renderers/Divider.js +2 -2
  219. package/lib/renderers/Drawer.js +2 -2
  220. package/lib/renderers/DropDownButton.js +2 -2
  221. package/lib/renderers/Each.js +2 -2
  222. package/lib/renderers/Flex.js +2 -2
  223. package/lib/renderers/Form/ButtonGroupSelect.js +2 -2
  224. package/lib/renderers/Form/ButtonToolbar.js +2 -2
  225. package/lib/renderers/Form/ChainedSelect.js +2 -2
  226. package/lib/renderers/Form/ChartRadios.js +2 -2
  227. package/lib/renderers/Form/Checkbox.js +2 -2
  228. package/lib/renderers/Form/Checkboxes.js +2 -2
  229. package/lib/renderers/Form/Combo.js +2 -2
  230. package/lib/renderers/Form/ConditionBuilder.js +2 -2
  231. package/lib/renderers/Form/Control.js +2 -2
  232. package/lib/renderers/Form/DiffEditor.js +2 -2
  233. package/lib/renderers/Form/Editor.js +2 -2
  234. package/lib/renderers/Form/FieldSet.js +2 -2
  235. package/lib/renderers/Form/Formula.js +2 -2
  236. package/lib/renderers/Form/Group.js +2 -2
  237. package/lib/renderers/Form/Hidden.js +2 -2
  238. package/lib/renderers/Form/IconPicker.js +2 -2
  239. package/lib/renderers/Form/IconPickerIcons.js +2 -2
  240. package/lib/renderers/Form/IconSelect.js +2 -2
  241. package/lib/renderers/Form/IconSelectStore.js +2 -2
  242. package/lib/renderers/Form/InputArray.js +2 -2
  243. package/lib/renderers/Form/InputCity.js +2 -2
  244. package/lib/renderers/Form/InputColor.d.ts +40 -40
  245. package/lib/renderers/Form/InputColor.js +2 -2
  246. package/lib/renderers/Form/InputDate.js +2 -2
  247. package/lib/renderers/Form/InputDateRange.js +2 -2
  248. package/lib/renderers/Form/InputExcel.js +2 -2
  249. package/lib/renderers/Form/InputFile.js +2 -2
  250. package/lib/renderers/Form/InputFormula.js +2 -2
  251. package/lib/renderers/Form/InputGroup.js +2 -2
  252. package/lib/renderers/Form/InputImage.js +2 -2
  253. package/lib/renderers/Form/InputMonthRange.js +2 -2
  254. package/lib/renderers/Form/InputNumber.js +2 -2
  255. package/lib/renderers/Form/InputQuarterRange.js +2 -2
  256. package/lib/renderers/Form/InputRange.js +2 -2
  257. package/lib/renderers/Form/InputRating.js +2 -2
  258. package/lib/renderers/Form/InputRepeat.js +2 -2
  259. package/lib/renderers/Form/InputRichText.js +2 -2
  260. package/lib/renderers/Form/InputSignature.js +3 -3
  261. package/lib/renderers/Form/InputSubForm.js +2 -2
  262. package/lib/renderers/Form/InputTable.js +2 -2
  263. package/lib/renderers/Form/InputTag.js +2 -2
  264. package/lib/renderers/Form/InputText.js +2 -2
  265. package/lib/renderers/Form/InputTree.js +2 -2
  266. package/lib/renderers/Form/InputVerificationCode.js +2 -2
  267. package/lib/renderers/Form/InputYearRange.js +2 -2
  268. package/lib/renderers/Form/JSONSchema.js +2 -2
  269. package/lib/renderers/Form/JSONSchemaEditor.js +2 -2
  270. package/lib/renderers/Form/ListSelect.js +2 -2
  271. package/lib/renderers/Form/LocationPicker.js +2 -2
  272. package/lib/renderers/Form/MatrixCheckboxes.js +2 -2
  273. package/lib/renderers/Form/NestedSelect.js +2 -2
  274. package/lib/renderers/Form/Picker.js +2 -2
  275. package/lib/renderers/Form/Radio.js +2 -2
  276. package/lib/renderers/Form/Radios.js +2 -2
  277. package/lib/renderers/Form/Select.js +2 -2
  278. package/lib/renderers/Form/Static.js +2 -2
  279. package/lib/renderers/Form/StaticHoc.js +2 -2
  280. package/lib/renderers/Form/Switch.js +2 -2
  281. package/lib/renderers/Form/TabsTransfer.js +2 -2
  282. package/lib/renderers/Form/TabsTransferPicker.js +2 -2
  283. package/lib/renderers/Form/Textarea.js +2 -2
  284. package/lib/renderers/Form/Transfer.js +2 -2
  285. package/lib/renderers/Form/TransferPicker.js +2 -2
  286. package/lib/renderers/Form/TreeSelect.js +2 -2
  287. package/lib/renderers/Form/UUID.js +2 -2
  288. package/lib/renderers/Form/UserSelect.js +2 -2
  289. package/lib/renderers/Grid.js +2 -2
  290. package/lib/renderers/Grid2D.js +2 -2
  291. package/lib/renderers/GridNav.js +2 -2
  292. package/lib/renderers/HBox.js +2 -2
  293. package/lib/renderers/IFrame.js +2 -2
  294. package/lib/renderers/Icon.js +2 -2
  295. package/lib/renderers/Image.js +2 -2
  296. package/lib/renderers/Images.js +2 -2
  297. package/lib/renderers/Json.js +2 -2
  298. package/lib/renderers/Link.js +2 -2
  299. package/lib/renderers/List.d.ts +2 -2
  300. package/lib/renderers/List.js +3 -3
  301. package/lib/renderers/Log.js +2 -2
  302. package/lib/renderers/Mapping.js +2 -2
  303. package/lib/renderers/Markdown.js +2 -2
  304. package/lib/renderers/MultilineText.js +2 -2
  305. package/lib/renderers/Nav.js +2 -2
  306. package/lib/renderers/Number.js +2 -2
  307. package/lib/renderers/OfficeViewer.js +2 -2
  308. package/lib/renderers/Operation.js +2 -2
  309. package/lib/renderers/Page.js +2 -2
  310. package/lib/renderers/Pagination.js +2 -2
  311. package/lib/renderers/PaginationWrapper.js +2 -2
  312. package/lib/renderers/Panel.js +2 -2
  313. package/lib/renderers/Password.js +2 -2
  314. package/lib/renderers/PdfViewer.js +2 -2
  315. package/lib/renderers/Plain.js +2 -2
  316. package/lib/renderers/PopOver.js +2 -2
  317. package/lib/renderers/Portlet.js +2 -2
  318. package/lib/renderers/Progress.js +2 -2
  319. package/lib/renderers/Property.js +2 -2
  320. package/lib/renderers/QRCode.js +2 -2
  321. package/lib/renderers/QuickEdit.js +2 -2
  322. package/lib/renderers/Remark.js +2 -2
  323. package/lib/renderers/SearchBox.js +2 -2
  324. package/lib/renderers/Service.d.ts +1 -1
  325. package/lib/renderers/Service.js +4 -4
  326. package/lib/renderers/Shape.js +2 -2
  327. package/lib/renderers/Slider.js +2 -2
  328. package/lib/renderers/SparkLine.js +2 -2
  329. package/lib/renderers/Spinner.js +2 -2
  330. package/lib/renderers/Status.js +2 -2
  331. package/lib/renderers/Steps.js +2 -2
  332. package/lib/renderers/SwitchContainer.js +2 -2
  333. package/lib/renderers/Table/AutoFilterForm.js +2 -2
  334. package/lib/renderers/Table/Cell.js +2 -2
  335. package/lib/renderers/Table/ColGroup.js +2 -2
  336. package/lib/renderers/Table/ColumnToggler.js +2 -2
  337. package/lib/renderers/Table/HeadCellFilterDropdown.js +2 -2
  338. package/lib/renderers/Table/HeadCellSearchDropdown.js +2 -2
  339. package/lib/renderers/Table/ItemActionsWrapper.js +2 -2
  340. package/lib/renderers/Table/TableBody.js +2 -2
  341. package/lib/renderers/Table/TableCell.js +2 -2
  342. package/lib/renderers/Table/TableContent.js +2 -2
  343. package/lib/renderers/Table/TableRow.js +2 -2
  344. package/lib/renderers/Table/exportExcel.js +2 -2
  345. package/lib/renderers/Table/index.js +2 -2
  346. package/lib/renderers/Table2/ColumnToggler.js +2 -2
  347. package/lib/renderers/Table2/HeadCellSearchDropdown.js +2 -2
  348. package/lib/renderers/Table2/TableCell.js +2 -2
  349. package/lib/renderers/Table2/index.d.ts +1 -1
  350. package/lib/renderers/Table2/index.js +3 -3
  351. package/lib/renderers/TableView.js +2 -2
  352. package/lib/renderers/Tabs.js +2 -2
  353. package/lib/renderers/Tag.js +2 -2
  354. package/lib/renderers/Tasks.js +2 -2
  355. package/lib/renderers/Timeline.js +2 -2
  356. package/lib/renderers/TooltipWrapper.js +2 -2
  357. package/lib/renderers/Tpl.js +2 -2
  358. package/lib/renderers/VBox.js +2 -2
  359. package/lib/renderers/Video.js +2 -2
  360. package/lib/renderers/WebComponent.js +2 -2
  361. package/lib/renderers/Wizard.d.ts +2 -2
  362. package/lib/renderers/Wizard.js +5 -5
  363. package/lib/renderers/Words.js +2 -2
  364. package/lib/renderers/Wrapper.js +2 -2
  365. package/lib/renderers/icons/mk.js +2 -2
  366. package/lib/schemaExtend.js +2 -2
  367. package/package.json +1 -1
  368. package/revision.json +4 -4
  369. package/sdk/barcode.js +50 -50
  370. package/sdk/charts.js +17 -17
  371. package/sdk/codemirror.js +8 -8
  372. package/sdk/color-picker.js +65 -65
  373. package/sdk/cropperjs.js +2 -2
  374. package/sdk/exceljs.js +1 -1
  375. package/sdk/fomula-doc.js +1 -1
  376. package/sdk/json-view.js +1 -1
  377. package/sdk/markdown.js +68 -68
  378. package/sdk/office-viewer.js +408 -408
  379. package/sdk/papaparse.js +1 -1
  380. package/sdk/pdf-viewer.js +28 -28
  381. package/sdk/rest.js +586 -586
  382. package/sdk/rich-text.js +62 -62
  383. package/sdk/sdk.js +1104 -1102
  384. package/sdk/thirds/hls.js/hls.js +1 -1
  385. package/sdk/thirds/mpegts.js/mpegts.js +1 -1
  386. package/sdk/thirds/pdfjs-dist/build/pdf.js +1 -1
  387. package/sdk/tinymce.js +58 -58
  388. package/sdk/xlsx.js +3 -3
package/esm/compat.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
- * amis v6.12.0-beta.11
3
- * build time: 2025-03-26
2
+ * amis v6.12.0-beta.12
3
+ * build time: 2025-03-28
4
4
  * Copyright 2018-2025 baidu
5
5
  */
6
6
 
package/esm/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
- * amis v6.12.0-beta.11
3
- * build time: 2025-03-26
2
+ * amis v6.12.0-beta.12
3
+ * build time: 2025-03-28
4
4
  * Copyright 2018-2025 baidu
5
5
  */
6
6
 
package/esm/minimal.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
- * amis v6.12.0-beta.11
3
- * build time: 2025-03-26
2
+ * amis v6.12.0-beta.12
3
+ * build time: 2025-03-28
4
4
  * Copyright 2018-2025 baidu
5
5
  */
6
6
 
package/esm/preset.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
- * amis v6.12.0-beta.11
3
- * build time: 2025-03-26
2
+ * amis v6.12.0-beta.12
3
+ * build time: 2025-03-28
4
4
  * Copyright 2018-2025 baidu
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /**
2
- * amis v6.12.0-beta.11
3
- * build time: 2025-03-26
2
+ * amis v6.12.0-beta.12
3
+ * build time: 2025-03-28
4
4
  * Copyright 2018-2025 baidu
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /**
2
- * amis v6.12.0-beta.11
3
- * build time: 2025-03-26
2
+ * amis v6.12.0-beta.12
3
+ * build time: 2025-03-28
4
4
  * Copyright 2018-2025 baidu
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /**
2
- * amis v6.12.0-beta.11
3
- * build time: 2025-03-26
2
+ * amis v6.12.0-beta.12
3
+ * build time: 2025-03-28
4
4
  * Copyright 2018-2025 baidu
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /**
2
- * amis v6.12.0-beta.11
3
- * build time: 2025-03-26
2
+ * amis v6.12.0-beta.12
3
+ * build time: 2025-03-28
4
4
  * Copyright 2018-2025 baidu
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /**
2
- * amis v6.12.0-beta.11
3
- * build time: 2025-03-26
2
+ * amis v6.12.0-beta.12
3
+ * build time: 2025-03-28
4
4
  * Copyright 2018-2025 baidu
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /**
2
- * amis v6.12.0-beta.11
3
- * build time: 2025-03-26
2
+ * amis v6.12.0-beta.12
3
+ * build time: 2025-03-28
4
4
  * Copyright 2018-2025 baidu
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /**
2
- * amis v6.12.0-beta.11
3
- * build time: 2025-03-26
2
+ * amis v6.12.0-beta.12
3
+ * build time: 2025-03-28
4
4
  * Copyright 2018-2025 baidu
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /**
2
- * amis v6.12.0-beta.11
3
- * build time: 2025-03-26
2
+ * amis v6.12.0-beta.12
3
+ * build time: 2025-03-28
4
4
  * Copyright 2018-2025 baidu
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /**
2
- * amis v6.12.0-beta.11
3
- * build time: 2025-03-26
2
+ * amis v6.12.0-beta.12
3
+ * build time: 2025-03-28
4
4
  * Copyright 2018-2025 baidu
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /**
2
- * amis v6.12.0-beta.11
3
- * build time: 2025-03-26
2
+ * amis v6.12.0-beta.12
3
+ * build time: 2025-03-28
4
4
  * Copyright 2018-2025 baidu
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /**
2
- * amis v6.12.0-beta.11
3
- * build time: 2025-03-26
2
+ * amis v6.12.0-beta.12
3
+ * build time: 2025-03-28
4
4
  * Copyright 2018-2025 baidu
5
5
  */
6
6
 
@@ -100,7 +100,7 @@ var CRUD = /** @class */ (function (_super) {
100
100
  // 另外autoGenerateFilter时,table 里面会单独处理这块逻辑
101
101
  // 所以这里应该忽略 autoGenerateFilter 情况
102
102
  if ((!this.props.filter && !autoGenerateFilter) ||
103
- (store.filterTogggable && !store.filterVisible)) {
103
+ (store.filterTogglable && !store.filterVisible)) {
104
104
  this.handleFilterInit({});
105
105
  }
106
106
  this.parentContainer = this.getClosestParentContainer();
@@ -1333,7 +1333,7 @@ var CRUD = /** @class */ (function (_super) {
1333
1333
  CRUD.prototype.renderFilterToggler = function () {
1334
1334
  var _a, _b, _c;
1335
1335
  var _d = this.props, store = _d.store, cx = _d.classnames, __ = _d.translate, filterTogglable = _d.filterTogglable;
1336
- if (!store.filterTogggable) {
1336
+ if (!store.filterTogglable) {
1337
1337
  return null;
1338
1338
  }
1339
1339
  var custom = isPlainObject(filterTogglable)
@@ -1543,7 +1543,7 @@ var CRUD = /** @class */ (function (_super) {
1543
1543
  CRUD.prototype.renderFilter = function () {
1544
1544
  var _a;
1545
1545
  var _b = this.props, store = _b.store, render = _b.render, cx = _b.classnames, filter = _b.filter, __ = _b.translate, testIdBuilder = _b.testIdBuilder, _c = _b.filterCanAccessSuperData, filterCanAccessSuperData = _c === void 0 ? true : _c;
1546
- if (!filter && (!store.filterTogggable || store.filterVisible)) {
1546
+ if (!filter || (store.filterTogglable && !store.filterVisible)) {
1547
1547
  return null;
1548
1548
  }
1549
1549
  return render('filter', __assign(__assign({ title: __('CRUD.filter'), mode: 'inline', submitText: __('search') }, filter), { type: 'form', api: null, testIdBuilder: testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild('filter') }), {
@@ -1,6 +1,6 @@
1
1
  /**
2
- * amis v6.12.0-beta.11
3
- * build time: 2025-03-26
2
+ * amis v6.12.0-beta.12
3
+ * build time: 2025-03-28
4
4
  * Copyright 2018-2025 baidu
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /**
2
- * amis v6.12.0-beta.11
3
- * build time: 2025-03-26
2
+ * amis v6.12.0-beta.12
3
+ * build time: 2025-03-28
4
4
  * Copyright 2018-2025 baidu
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /**
2
- * amis v6.12.0-beta.11
3
- * build time: 2025-03-26
2
+ * amis v6.12.0-beta.12
3
+ * build time: 2025-03-28
4
4
  * Copyright 2018-2025 baidu
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /**
2
- * amis v6.12.0-beta.11
3
- * build time: 2025-03-26
2
+ * amis v6.12.0-beta.12
3
+ * build time: 2025-03-28
4
4
  * Copyright 2018-2025 baidu
5
5
  */
6
6
 
@@ -135,7 +135,7 @@ export default class Cards extends React.Component<GridProps, object> {
135
135
  static syncItems(store: IListStore, props: GridProps, prevProps?: GridProps): boolean;
136
136
  componentDidUpdate(prevProps: GridProps): void;
137
137
  bodyRef(ref: HTMLDivElement): void;
138
- handleAction(e: React.UIEvent<any> | undefined, action: ActionObject, ctx: object): void;
138
+ handleAction(e: React.UIEvent<any> | undefined, action: ActionObject, ctx: object): any;
139
139
  handleCheck(item: IItem): void;
140
140
  handleClick(item: IItem): Promise<import("amis-core").RendererEvent<any, any>>;
141
141
  handleCheckAll(): void;
@@ -185,5 +185,5 @@ export declare class CardsRenderer extends Cards {
185
185
  setData(values: any, replace?: boolean, index?: number | string, condition?: any): Promise<any>;
186
186
  getData(): any;
187
187
  hasModifiedItems(): number;
188
- doAction(action: ActionObject, ctx: any, throwErrors: boolean, args: any): Promise<void>;
188
+ doAction(action: ActionObject, ctx: any, throwErrors: boolean, args: any): Promise<any>;
189
189
  }
@@ -1,6 +1,6 @@
1
1
  /**
2
- * amis v6.12.0-beta.11
3
- * build time: 2025-03-26
2
+ * amis v6.12.0-beta.12
3
+ * build time: 2025-03-28
4
4
  * Copyright 2018-2025 baidu
5
5
  */
6
6
 
@@ -111,7 +111,7 @@ var Cards = /** @class */ (function (_super) {
111
111
  Cards.prototype.handleAction = function (e, action, ctx) {
112
112
  var onAction = this.props.onAction;
113
113
  // 需要支持特殊事件吗?
114
- onAction(e, action, ctx);
114
+ return onAction === null || onAction === void 0 ? void 0 : onAction(e, action, ctx);
115
115
  };
116
116
  Cards.prototype.handleCheck = function (item) {
117
117
  item.toggle();
@@ -438,9 +438,19 @@ var Cards = /** @class */ (function (_super) {
438
438
  var _this = this;
439
439
  var _a = this.props, className = _a.className, style = _a.style, store = _a.store, columnsCount = _a.columnsCount, itemClassName = _a.itemClassName, placeholder = _a.placeholder, card = _a.card, data = _a.data, render = _a.render, affixHeader = _a.affixHeader, masonryLayout = _a.masonryLayout, itemsClassName = _a.itemsClassName, cx = _a.classnames, __ = _a.translate, _b = _a.loading, loading = _b === void 0 ? false : _b, loadingConfig = _a.loadingConfig, env = _a.env, id = _a.id, wrapperCustomStyle = _a.wrapperCustomStyle, themeCss = _a.themeCss, mobileUI = _a.mobileUI;
440
440
  this.renderedToolbars = []; // 用来记录哪些 toolbar 已经渲染了,已经渲染了就不重复渲染了。
441
- var itemFinalClassName = columnsCount
442
- ? "Grid-col--xs".concat(Math.round(12 / columnsCount), " Grid-col--sm").concat(Math.round(12 / columnsCount), " Grid-col--md").concat(Math.round(12 / columnsCount), " Grid-col--lg").concat(Math.round(12 / columnsCount))
443
- : itemClassName || '';
441
+ var itemFinalClassName = (function () {
442
+ // 移动端且非砖石布局时不使用网格类名
443
+ if (mobileUI && !masonryLayout) {
444
+ return '';
445
+ }
446
+ // 砖石布局且设置了固定列数时使用计算的网格类名
447
+ if (masonryLayout && columnsCount) {
448
+ var colWidth = Math.round(12 / columnsCount);
449
+ return "Grid-col--xs".concat(colWidth, " Grid-col--sm").concat(colWidth, " Grid-col--md").concat(colWidth, " Grid-col--lg").concat(colWidth);
450
+ }
451
+ // 其他情况使用配置的类名或空字符串
452
+ return itemClassName || '';
453
+ })();
444
454
  var header = this.renderHeader();
445
455
  var heading = this.renderHeading();
446
456
  var footer = this.renderFooter();
@@ -470,11 +480,6 @@ var Cards = /** @class */ (function (_super) {
470
480
  if ((style === null || style === void 0 ? void 0 : style.gutterY) >= 0) {
471
481
  itemStyles.marginBottom = (style === null || style === void 0 ? void 0 : style.gutterY) + 'px';
472
482
  }
473
- // 修正grid多列计算错误,另外移动端目前只显示一列
474
- if (columnsCount && !masonryLayout && !mobileUI) {
475
- itemStyles.flex = "0 0 ".concat(100 / columnsCount, "%");
476
- itemStyles.maxWidth = "".concat(100 / columnsCount, "%");
477
- }
478
483
  return (React.createElement("div", { ref: this.bodyRef, className: cx('Cards', className, {
479
484
  'Cards--unsaved': !!store.modified || !!store.moved
480
485
  }, setThemeClassName(__assign(__assign({}, this.props), { name: 'baseControlClassName', id: id, themeCss: themeCss })), setThemeClassName(__assign(__assign({}, this.props), { name: 'wrapperCustomStyle', id: id, themeCss: wrapperCustomStyle }))), style: buildStyle(style, data) },
@@ -1,6 +1,6 @@
1
1
  /**
2
- * amis v6.12.0-beta.11
3
- * build time: 2025-03-26
2
+ * amis v6.12.0-beta.12
3
+ * build time: 2025-03-28
4
4
  * Copyright 2018-2025 baidu
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /**
2
- * amis v6.12.0-beta.11
3
- * build time: 2025-03-26
2
+ * amis v6.12.0-beta.12
3
+ * build time: 2025-03-28
4
4
  * Copyright 2018-2025 baidu
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /**
2
- * amis v6.12.0-beta.11
3
- * build time: 2025-03-26
2
+ * amis v6.12.0-beta.12
3
+ * build time: 2025-03-28
4
4
  * Copyright 2018-2025 baidu
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /**
2
- * amis v6.12.0-beta.11
3
- * build time: 2025-03-26
2
+ * amis v6.12.0-beta.12
3
+ * build time: 2025-03-28
4
4
  * Copyright 2018-2025 baidu
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /**
2
- * amis v6.12.0-beta.11
3
- * build time: 2025-03-26
2
+ * amis v6.12.0-beta.12
3
+ * build time: 2025-03-28
4
4
  * Copyright 2018-2025 baidu
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /**
2
- * amis v6.12.0-beta.11
3
- * build time: 2025-03-26
2
+ * amis v6.12.0-beta.12
3
+ * build time: 2025-03-28
4
4
  * Copyright 2018-2025 baidu
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /**
2
- * amis v6.12.0-beta.11
3
- * build time: 2025-03-26
2
+ * amis v6.12.0-beta.12
3
+ * build time: 2025-03-28
4
4
  * Copyright 2018-2025 baidu
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /**
2
- * amis v6.12.0-beta.11
3
- * build time: 2025-03-26
2
+ * amis v6.12.0-beta.12
3
+ * build time: 2025-03-28
4
4
  * Copyright 2018-2025 baidu
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /**
2
- * amis v6.12.0-beta.11
3
- * build time: 2025-03-26
2
+ * amis v6.12.0-beta.12
3
+ * build time: 2025-03-28
4
4
  * Copyright 2018-2025 baidu
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /**
2
- * amis v6.12.0-beta.11
3
- * build time: 2025-03-26
2
+ * amis v6.12.0-beta.12
3
+ * build time: 2025-03-28
4
4
  * Copyright 2018-2025 baidu
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /**
2
- * amis v6.12.0-beta.11
3
- * build time: 2025-03-26
2
+ * amis v6.12.0-beta.12
3
+ * build time: 2025-03-28
4
4
  * Copyright 2018-2025 baidu
5
5
  */
6
6