@aplus-frontend/ui 7.5.0 → 7.7.0

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 (367) hide show
  1. package/es/index.mjs +200 -198
  2. package/es/src/ag-grid/editable/form-item.vue.mjs +14 -14
  3. package/es/src/ag-grid/editable/index.vue.mjs +20 -20
  4. package/es/src/ag-grid/hooks/use-columns-def.mjs +32 -31
  5. package/es/src/ag-grid/hooks/use-editable-api.mjs +9 -8
  6. package/es/src/ag-grid/hooks/use-editable-columns.mjs +26 -25
  7. package/es/src/ag-grid/hooks/use-editable-form-item-api.mjs +11 -10
  8. package/es/src/ag-grid/index.vue.mjs +37 -36
  9. package/es/src/ag-grid/renderer/number.mjs +7 -7
  10. package/es/src/ag-grid/style/custom-header.mjs +3 -3
  11. package/es/src/ag-grid/style/index.mjs +1 -1
  12. package/es/src/ap-action/style/index.mjs +1 -1
  13. package/es/src/ap-drawer/style/index.mjs +12 -12
  14. package/es/src/ap-field/date/index.vue.mjs +14 -14
  15. package/es/src/ap-field/date/read.vue2.mjs +3 -3
  16. package/es/src/ap-field/date-range/index.vue.mjs +8 -8
  17. package/es/src/ap-field/date-range/read.vue2.mjs +3 -3
  18. package/es/src/ap-field/hooks/use-default-placeholder.mjs +5 -4
  19. package/es/src/ap-field/number/helper.mjs +1 -1
  20. package/es/src/ap-field/number/index.vue.mjs +9 -9
  21. package/es/src/ap-field/number/read.vue2.mjs +5 -5
  22. package/es/src/ap-field/style/checkbox.d.ts +2 -2
  23. package/es/src/ap-field/style/number.d.ts +2 -2
  24. package/es/src/ap-field/style/radio.d.ts +2 -2
  25. package/es/src/ap-field/style/textarea.d.ts +2 -2
  26. package/es/src/ap-field/switch/index.vue.mjs +4 -3
  27. package/es/src/ap-form/ap-form.vue2.mjs +18 -17
  28. package/es/src/ap-form/item/index.vue.mjs +6 -6
  29. package/es/src/ap-form/item-group/helper.mjs +8 -7
  30. package/es/src/ap-form/item-group/index.vue.mjs +15 -14
  31. package/es/src/ap-form/items/number/index.vue.d.ts +2 -2
  32. package/es/src/ap-form/items/select/index.vue.d.ts +2 -2
  33. package/es/src/ap-form/items/text/index.vue.d.ts +2 -2
  34. package/es/src/ap-form/items/text/password.vue.d.ts +2 -2
  35. package/es/src/ap-form/items/tree-select/index.vue.d.ts +2 -2
  36. package/es/src/ap-form/search-form/components/popover-filter.vue.d.ts +1 -1
  37. package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +24 -22
  38. package/es/src/ap-form/search-form/components/popover-sorter/index.vue2.mjs +4 -1
  39. package/es/src/ap-form/search-form/hooks/use-sorter.mjs +9 -8
  40. package/es/src/ap-form/search-form/index.vue.mjs +12 -11
  41. package/es/src/ap-form/set/index.vue.mjs +1 -1
  42. package/es/src/ap-form/style/item.mjs +15 -15
  43. package/es/src/ap-form/style/modal-form.mjs +2 -1
  44. package/es/src/ap-form/style/search-form-sorter.mjs +1 -1
  45. package/es/src/ap-form/style/search-form.d.ts +7 -1
  46. package/es/src/ap-form/style/search-form.mjs +37 -34
  47. package/es/src/ap-grid/editable/form-item.vue.mjs +11 -10
  48. package/es/src/ap-grid/editable/index.vue.mjs +42 -41
  49. package/es/src/ap-grid/index.vue.mjs +14 -13
  50. package/es/src/ap-grid/style/editable.mjs +7 -7
  51. package/es/src/ap-grid/style/index.mjs +11 -11
  52. package/es/src/ap-grid/utils/table.mjs +14 -13
  53. package/es/src/ap-list/hooks/use-offline-list.d.ts +2 -2
  54. package/es/src/ap-list/hooks/use-offline-list.mjs +13 -12
  55. package/es/src/ap-list/style/index.mjs +1 -1
  56. package/es/src/ap-pro-card/style/divider.mjs +2 -2
  57. package/es/src/ap-pro-card/style/index.mjs +14 -14
  58. package/es/src/ap-pro-card/style/operation.mjs +1 -2
  59. package/es/src/ap-pro-card/style/statistic.mjs +12 -12
  60. package/es/src/ap-pro-card/style/statistics-card.mjs +13 -13
  61. package/es/src/ap-pro-card/style/title.mjs +13 -33
  62. package/es/src/ap-table/ap-table.vue2.mjs +4 -3
  63. package/es/src/ap-table/constants.d.ts +5 -5
  64. package/es/src/ap-table/hooks/use-table-column-state.mjs +23 -22
  65. package/es/src/ap-table/hooks/use-table-paging-ng.d.ts +2 -2
  66. package/es/src/ap-table/hooks/use-table-paging-ng.mjs +4 -3
  67. package/es/src/ap-table/style/index-comp.d.ts +2 -1
  68. package/es/src/ap-table/style/index-comp.mjs +15 -12
  69. package/es/src/ap-table/style/index.d.ts +3 -0
  70. package/es/src/ap-table/style/index.mjs +14 -11
  71. package/es/src/ap-table/style/setting.d.ts +2 -1
  72. package/es/src/ap-table/style/setting.mjs +73 -61
  73. package/es/src/ap-table/utils.mjs +61 -62
  74. package/es/src/business/ag-grid-modal/modal-layout/index.vue2.mjs +15 -15
  75. package/es/src/business/ag-grid-modal/style/index.d.ts +3 -0
  76. package/es/src/business/ag-grid-modal/style/index.mjs +24 -20
  77. package/es/src/business/ag-grid-modal/style/selected-items.mjs +8 -8
  78. package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +26 -27
  79. package/es/src/business/ap-appendix/style/index.mjs +20 -21
  80. package/es/src/business/ap-attachment/style/index.d.ts +6 -0
  81. package/es/src/business/ap-attachment/style/index.mjs +28 -25
  82. package/es/src/business/ap-batch-action/style/index.d.ts +2 -2
  83. package/es/src/business/ap-batch-action/style/index.mjs +18 -18
  84. package/es/src/business/ap-card/style/index.d.ts +2 -2
  85. package/es/src/business/ap-card/style/index.mjs +8 -8
  86. package/es/src/business/ap-copy/style/index.mjs +16 -22
  87. package/es/src/business/ap-descriptions/formatter/index.mjs +1 -1
  88. package/es/src/business/ap-descriptions/style/index.mjs +8 -6
  89. package/es/src/business/ap-download/style/index.mjs +4 -4
  90. package/es/src/business/ap-draggable-grid/style/index.mjs +7 -7
  91. package/es/src/business/ap-expand-alert/style/index.mjs +30 -26
  92. package/es/src/business/ap-image/style/index.d.ts +2 -2
  93. package/es/src/business/ap-image/style/index.mjs +8 -7
  94. package/es/src/business/ap-input-radio/style/index.mjs +1 -1
  95. package/es/src/business/ap-label/style/index.d.ts +14 -0
  96. package/es/src/business/ap-label/style/index.mjs +29 -19
  97. package/es/src/business/ap-ladder/style/index.mjs +7 -6
  98. package/es/src/business/ap-product-info/style/index.d.ts +10 -0
  99. package/es/src/business/ap-product-info/style/index.mjs +35 -28
  100. package/es/src/business/ap-radio-group/style/index.mjs +3 -3
  101. package/es/src/business/ap-select-layout/select-layout.vue2.mjs +6 -6
  102. package/es/src/business/ap-select-layout/style/index.d.ts +6 -0
  103. package/es/src/business/ap-select-layout/style/index.mjs +59 -53
  104. package/es/src/business/ap-size-input/style/index.mjs +3 -3
  105. package/es/src/business/ap-status/style/index.mjs +1 -1
  106. package/es/src/business/ap-summary/style/index.d.ts +10 -0
  107. package/es/src/business/ap-summary/style/index.mjs +18 -11
  108. package/es/src/business/ap-table-modal/style/index.d.ts +11 -1
  109. package/es/src/business/ap-table-modal/style/index.mjs +17 -12
  110. package/es/src/business/ap-tag/ap-tag-group.vue.mjs +2 -2
  111. package/es/src/business/ap-tag/style/index.mjs +33 -31
  112. package/es/src/business/ap-title/style/index.d.ts +2 -1
  113. package/es/src/business/ap-title/style/index.mjs +41 -49
  114. package/es/src/business/ap-upload/style/index.mjs +10 -5
  115. package/es/src/business/ap-upload/style/multiple-file.d.ts +2 -2
  116. package/es/src/business/ap-upload/style/multiple-file.mjs +8 -7
  117. package/es/src/business/ap-upload/style/picture.d.ts +3 -2
  118. package/es/src/business/ap-upload/style/picture.mjs +26 -26
  119. package/es/src/business/ap-upload/style/single-file.d.ts +3 -2
  120. package/es/src/business/ap-upload/style/single-file.mjs +30 -29
  121. package/es/src/business/ap-upload/style/token.d.ts +19 -0
  122. package/es/src/business/ap-upload/style/token.mjs +9 -0
  123. package/es/src/business/ap-upload-file/ap-upload-single/style/index.d.ts +24 -2
  124. package/es/src/business/ap-upload-file/ap-upload-single/style/index.mjs +51 -42
  125. package/es/src/business/ap-upload-file/icon/delete-icon.vue.mjs +2 -2
  126. package/es/src/business/ap-upload-file/icon/file-icon.vue.mjs +2 -2
  127. package/es/src/business/ap-value-select-card/style/index.mjs +45 -43
  128. package/es/src/business/ap-view/components/main-button-content.vue2.mjs +14 -14
  129. package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +35 -34
  130. package/es/src/business/ap-view/icons/line-delete.vue.mjs +2 -2
  131. package/es/src/business/ap-view/icons/line-down.vue.mjs +2 -2
  132. package/es/src/business/ap-view/icons/line-eye.vue.mjs +2 -2
  133. package/es/src/business/ap-view/style/index.d.ts +6 -2
  134. package/es/src/business/ap-view/style/index.mjs +43 -35
  135. package/es/src/business/batch-input-group/index.vue.d.ts +1 -1
  136. package/es/src/business/batch-input-group/index.vue.mjs +23 -22
  137. package/es/src/business/batch-input-group/style/index.mjs +2 -2
  138. package/es/src/check-card/style/index.mjs +17 -17
  139. package/es/src/design-token/constants.mjs +9 -1
  140. package/es/src/design-token/interface.d.ts +139 -12
  141. package/es/src/editable-table/form-item.vue.mjs +4 -3
  142. package/es/src/editable-table/index.vue.mjs +4 -3
  143. package/es/src/editable-table/style/index.mjs +11 -11
  144. package/es/src/editable-table/utils.d.ts +1 -1
  145. package/es/src/editable-table/utils.mjs +27 -26
  146. package/es/src/highlight/index.d.ts +3 -0
  147. package/es/src/highlight/index.mjs +2 -0
  148. package/es/src/highlight/index.vue.d.ts +31 -0
  149. package/es/src/highlight/index.vue.mjs +49 -0
  150. package/es/src/highlight/index.vue2.mjs +4 -0
  151. package/es/src/highlight/interface.d.ts +14 -0
  152. package/es/src/highlight/interface.mjs +1 -0
  153. package/es/src/highlight/style/index.d.ts +8 -0
  154. package/es/src/highlight/style/index.mjs +23 -0
  155. package/es/src/hooks/useMessage.mjs +4 -4
  156. package/es/src/index.d.ts +1 -0
  157. package/es/src/index.mjs +296 -293
  158. package/es/src/loading-bar/index.vue2.mjs +4 -3
  159. package/es/src/loading-bar/style/index.mjs +10 -10
  160. package/es/src/scroll-view/hooks/use-scroll-smooth.mjs +10 -9
  161. package/es/src/scroll-view/index.vue.mjs +4 -3
  162. package/es/src/splitter/style/index.mjs +11 -11
  163. package/es/src/text/index.vue.mjs +8 -7
  164. package/es/src/time-ago/index.vue.mjs +17 -16
  165. package/es/src/time-ago/useTimeAgo.mjs +31 -30
  166. package/es/src/utils/cssinjs/TokenUtil.d.ts +1 -0
  167. package/es/src/utils/cssinjs/TokenUtil.mjs +3 -0
  168. package/es/src/utils/decimal.d.ts +36 -0
  169. package/es/src/utils/decimal.mjs +45 -0
  170. package/es/src/utils/format.d.ts +21 -0
  171. package/es/src/utils/format.mjs +32 -0
  172. package/es/src/utils/index.d.ts +2 -1
  173. package/es/src/utils/index.mjs +20 -22
  174. package/es/src/utils/is.d.ts +54 -0
  175. package/es/src/utils/is.mjs +26 -0
  176. package/es/src/utils/slot.mjs +1 -2
  177. package/es/src/version.d.ts +1 -1
  178. package/es/src/version.mjs +1 -1
  179. package/lib/index.js +1 -1
  180. package/lib/src/ag-grid/editable/form-item.vue.js +1 -1
  181. package/lib/src/ag-grid/editable/index.vue.js +1 -1
  182. package/lib/src/ag-grid/hooks/use-columns-def.js +1 -1
  183. package/lib/src/ag-grid/hooks/use-editable-api.js +1 -1
  184. package/lib/src/ag-grid/hooks/use-editable-columns.js +1 -1
  185. package/lib/src/ag-grid/hooks/use-editable-form-item-api.js +1 -1
  186. package/lib/src/ag-grid/index.vue.js +1 -1
  187. package/lib/src/ag-grid/renderer/number.js +1 -1
  188. package/lib/src/ag-grid/style/custom-header.js +1 -1
  189. package/lib/src/ag-grid/style/index.js +1 -1
  190. package/lib/src/ap-action/style/index.js +1 -1
  191. package/lib/src/ap-drawer/style/index.js +1 -1
  192. package/lib/src/ap-field/date/index.vue.js +1 -1
  193. package/lib/src/ap-field/date/read.vue2.js +1 -1
  194. package/lib/src/ap-field/date-range/index.vue.js +1 -1
  195. package/lib/src/ap-field/date-range/read.vue2.js +1 -1
  196. package/lib/src/ap-field/hooks/use-default-placeholder.js +1 -1
  197. package/lib/src/ap-field/number/helper.js +1 -1
  198. package/lib/src/ap-field/number/index.vue.js +1 -1
  199. package/lib/src/ap-field/number/read.vue2.js +1 -1
  200. package/lib/src/ap-field/style/checkbox.d.ts +2 -2
  201. package/lib/src/ap-field/style/number.d.ts +2 -2
  202. package/lib/src/ap-field/style/radio.d.ts +2 -2
  203. package/lib/src/ap-field/style/textarea.d.ts +2 -2
  204. package/lib/src/ap-field/switch/index.vue.js +1 -1
  205. package/lib/src/ap-form/ap-form.vue2.js +1 -1
  206. package/lib/src/ap-form/item/index.vue.js +1 -1
  207. package/lib/src/ap-form/item-group/helper.js +1 -1
  208. package/lib/src/ap-form/item-group/index.vue.js +1 -1
  209. package/lib/src/ap-form/items/number/index.vue.d.ts +2 -2
  210. package/lib/src/ap-form/items/select/index.vue.d.ts +2 -2
  211. package/lib/src/ap-form/items/text/index.vue.d.ts +2 -2
  212. package/lib/src/ap-form/items/text/password.vue.d.ts +2 -2
  213. package/lib/src/ap-form/items/tree-select/index.vue.d.ts +2 -2
  214. package/lib/src/ap-form/search-form/components/popover-filter.vue.d.ts +1 -1
  215. package/lib/src/ap-form/search-form/components/popover-filter.vue2.js +1 -1
  216. package/lib/src/ap-form/search-form/components/popover-sorter/index.vue2.js +1 -1
  217. package/lib/src/ap-form/search-form/hooks/use-sorter.js +1 -1
  218. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  219. package/lib/src/ap-form/set/index.vue.js +1 -1
  220. package/lib/src/ap-form/style/item.js +1 -1
  221. package/lib/src/ap-form/style/modal-form.js +1 -1
  222. package/lib/src/ap-form/style/search-form-sorter.js +1 -1
  223. package/lib/src/ap-form/style/search-form.d.ts +7 -1
  224. package/lib/src/ap-form/style/search-form.js +1 -1
  225. package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
  226. package/lib/src/ap-grid/editable/index.vue.js +1 -1
  227. package/lib/src/ap-grid/index.vue.js +1 -1
  228. package/lib/src/ap-grid/style/editable.js +1 -1
  229. package/lib/src/ap-grid/style/index.js +1 -1
  230. package/lib/src/ap-grid/utils/table.js +1 -1
  231. package/lib/src/ap-list/hooks/use-offline-list.d.ts +2 -2
  232. package/lib/src/ap-list/hooks/use-offline-list.js +1 -1
  233. package/lib/src/ap-list/style/index.js +1 -1
  234. package/lib/src/ap-pro-card/style/divider.js +1 -1
  235. package/lib/src/ap-pro-card/style/index.js +1 -1
  236. package/lib/src/ap-pro-card/style/operation.js +1 -1
  237. package/lib/src/ap-pro-card/style/statistic.js +1 -1
  238. package/lib/src/ap-pro-card/style/statistics-card.js +1 -1
  239. package/lib/src/ap-pro-card/style/title.js +1 -1
  240. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  241. package/lib/src/ap-table/constants.d.ts +5 -5
  242. package/lib/src/ap-table/hooks/use-table-column-state.js +1 -1
  243. package/lib/src/ap-table/hooks/use-table-paging-ng.d.ts +2 -2
  244. package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
  245. package/lib/src/ap-table/style/index-comp.d.ts +2 -1
  246. package/lib/src/ap-table/style/index-comp.js +1 -1
  247. package/lib/src/ap-table/style/index.d.ts +3 -0
  248. package/lib/src/ap-table/style/index.js +1 -1
  249. package/lib/src/ap-table/style/setting.d.ts +2 -1
  250. package/lib/src/ap-table/style/setting.js +1 -1
  251. package/lib/src/ap-table/utils.js +1 -1
  252. package/lib/src/business/ag-grid-modal/modal-layout/index.vue2.js +1 -1
  253. package/lib/src/business/ag-grid-modal/style/index.d.ts +3 -0
  254. package/lib/src/business/ag-grid-modal/style/index.js +1 -1
  255. package/lib/src/business/ag-grid-modal/style/selected-items.js +1 -1
  256. package/lib/src/business/ap-appendix/ap-appendix.vue2.js +1 -1
  257. package/lib/src/business/ap-appendix/style/index.js +1 -1
  258. package/lib/src/business/ap-attachment/style/index.d.ts +6 -0
  259. package/lib/src/business/ap-attachment/style/index.js +1 -1
  260. package/lib/src/business/ap-batch-action/style/index.d.ts +2 -2
  261. package/lib/src/business/ap-batch-action/style/index.js +1 -1
  262. package/lib/src/business/ap-card/style/index.d.ts +2 -2
  263. package/lib/src/business/ap-card/style/index.js +1 -1
  264. package/lib/src/business/ap-copy/style/index.js +1 -1
  265. package/lib/src/business/ap-descriptions/formatter/index.js +1 -1
  266. package/lib/src/business/ap-descriptions/style/index.js +1 -1
  267. package/lib/src/business/ap-download/style/index.js +1 -1
  268. package/lib/src/business/ap-draggable-grid/style/index.js +1 -1
  269. package/lib/src/business/ap-expand-alert/style/index.js +1 -1
  270. package/lib/src/business/ap-image/style/index.d.ts +2 -2
  271. package/lib/src/business/ap-image/style/index.js +1 -1
  272. package/lib/src/business/ap-input-radio/style/index.js +1 -1
  273. package/lib/src/business/ap-label/style/index.d.ts +14 -0
  274. package/lib/src/business/ap-label/style/index.js +1 -1
  275. package/lib/src/business/ap-ladder/style/index.js +1 -1
  276. package/lib/src/business/ap-product-info/style/index.d.ts +10 -0
  277. package/lib/src/business/ap-product-info/style/index.js +1 -1
  278. package/lib/src/business/ap-radio-group/style/index.js +1 -1
  279. package/lib/src/business/ap-select-layout/select-layout.vue2.js +1 -1
  280. package/lib/src/business/ap-select-layout/style/index.d.ts +6 -0
  281. package/lib/src/business/ap-select-layout/style/index.js +1 -1
  282. package/lib/src/business/ap-size-input/style/index.js +1 -1
  283. package/lib/src/business/ap-status/style/index.js +1 -1
  284. package/lib/src/business/ap-summary/style/index.d.ts +10 -0
  285. package/lib/src/business/ap-summary/style/index.js +1 -1
  286. package/lib/src/business/ap-table-modal/style/index.d.ts +11 -1
  287. package/lib/src/business/ap-table-modal/style/index.js +1 -1
  288. package/lib/src/business/ap-tag/ap-tag-group.vue.js +1 -1
  289. package/lib/src/business/ap-tag/style/index.js +1 -1
  290. package/lib/src/business/ap-title/style/index.d.ts +2 -1
  291. package/lib/src/business/ap-title/style/index.js +1 -1
  292. package/lib/src/business/ap-upload/style/index.js +1 -1
  293. package/lib/src/business/ap-upload/style/multiple-file.d.ts +2 -2
  294. package/lib/src/business/ap-upload/style/multiple-file.js +1 -1
  295. package/lib/src/business/ap-upload/style/picture.d.ts +3 -2
  296. package/lib/src/business/ap-upload/style/picture.js +1 -1
  297. package/lib/src/business/ap-upload/style/single-file.d.ts +3 -2
  298. package/lib/src/business/ap-upload/style/single-file.js +1 -1
  299. package/lib/src/business/ap-upload/style/token.d.ts +19 -0
  300. package/lib/src/business/ap-upload/style/token.js +1 -0
  301. package/lib/src/business/ap-upload-file/ap-upload-single/style/index.d.ts +24 -2
  302. package/lib/src/business/ap-upload-file/ap-upload-single/style/index.js +1 -1
  303. package/lib/src/business/ap-upload-file/icon/delete-icon.vue.js +1 -1
  304. package/lib/src/business/ap-upload-file/icon/file-icon.vue.js +1 -1
  305. package/lib/src/business/ap-value-select-card/style/index.js +1 -1
  306. package/lib/src/business/ap-view/components/main-button-content.vue2.js +1 -1
  307. package/lib/src/business/ap-view/components/menu-list-content.vue2.js +1 -1
  308. package/lib/src/business/ap-view/icons/line-delete.vue.js +1 -1
  309. package/lib/src/business/ap-view/icons/line-down.vue.js +1 -1
  310. package/lib/src/business/ap-view/icons/line-eye.vue.js +1 -1
  311. package/lib/src/business/ap-view/style/index.d.ts +6 -2
  312. package/lib/src/business/ap-view/style/index.js +1 -1
  313. package/lib/src/business/batch-input-group/index.vue.d.ts +1 -1
  314. package/lib/src/business/batch-input-group/index.vue.js +2 -2
  315. package/lib/src/business/batch-input-group/style/index.js +1 -1
  316. package/lib/src/check-card/style/index.js +1 -1
  317. package/lib/src/design-token/constants.js +1 -1
  318. package/lib/src/design-token/interface.d.ts +139 -12
  319. package/lib/src/editable-table/form-item.vue.js +1 -1
  320. package/lib/src/editable-table/index.vue.js +1 -1
  321. package/lib/src/editable-table/style/index.js +1 -1
  322. package/lib/src/editable-table/utils.d.ts +1 -1
  323. package/lib/src/editable-table/utils.js +1 -1
  324. package/lib/src/highlight/index.d.ts +3 -0
  325. package/lib/src/highlight/index.js +1 -0
  326. package/lib/src/highlight/index.vue.d.ts +31 -0
  327. package/lib/src/highlight/index.vue.js +1 -0
  328. package/lib/src/highlight/index.vue2.js +1 -0
  329. package/lib/src/highlight/interface.d.ts +14 -0
  330. package/lib/src/highlight/interface.js +1 -0
  331. package/lib/src/highlight/style/index.d.ts +8 -0
  332. package/lib/src/highlight/style/index.js +1 -0
  333. package/lib/src/hooks/useMessage.js +1 -1
  334. package/lib/src/index.d.ts +1 -0
  335. package/lib/src/index.js +1 -1
  336. package/lib/src/loading-bar/index.vue2.js +1 -1
  337. package/lib/src/loading-bar/style/index.js +3 -3
  338. package/lib/src/scroll-view/hooks/use-scroll-smooth.js +1 -1
  339. package/lib/src/scroll-view/index.vue.js +1 -1
  340. package/lib/src/splitter/style/index.js +1 -1
  341. package/lib/src/text/index.vue.js +1 -1
  342. package/lib/src/time-ago/index.vue.js +1 -1
  343. package/lib/src/time-ago/useTimeAgo.js +1 -1
  344. package/lib/src/utils/cssinjs/TokenUtil.d.ts +1 -0
  345. package/lib/src/utils/cssinjs/TokenUtil.js +1 -1
  346. package/lib/src/utils/decimal.d.ts +36 -0
  347. package/lib/src/utils/decimal.js +1 -0
  348. package/lib/src/utils/format.d.ts +21 -0
  349. package/lib/src/utils/format.js +1 -0
  350. package/lib/src/utils/index.d.ts +2 -1
  351. package/lib/src/utils/index.js +1 -1
  352. package/lib/src/utils/is.d.ts +54 -0
  353. package/lib/src/utils/is.js +1 -0
  354. package/lib/src/utils/slot.js +1 -1
  355. package/lib/src/version.d.ts +1 -1
  356. package/lib/src/version.js +1 -1
  357. package/package.json +6 -6
  358. package/es/src/business/ap-appendix/icons/file-icon.vue.d.ts +0 -3
  359. package/es/src/business/ap-appendix/icons/file-icon.vue.mjs +0 -18
  360. package/es/src/utils/copy-text-to-clipboard.d.ts +0 -1
  361. package/es/src/utils/tree.d.ts +0 -38
  362. package/es/src/utils/uuid.d.ts +0 -2
  363. package/lib/src/business/ap-appendix/icons/file-icon.vue.d.ts +0 -3
  364. package/lib/src/business/ap-appendix/icons/file-icon.vue.js +0 -1
  365. package/lib/src/utils/copy-text-to-clipboard.d.ts +0 -1
  366. package/lib/src/utils/tree.d.ts +0 -38
  367. package/lib/src/utils/uuid.d.ts +0 -2
@@ -1,10 +1,10 @@
1
- import { genComponentStyleHook as n } from "../../utils/cssinjs/index.mjs";
2
- const a = (o) => {
3
- const { namespace: r } = o, e = `.${r}-ap-form-search-form__popover`;
1
+ import { genComponentStyleHook as a } from "../../utils/cssinjs/index.mjs";
2
+ const i = (r) => {
3
+ const { namespace: e } = r, o = `.${e}-ap-form-search-form__popover`;
4
4
  return {
5
- [e]: {
5
+ [o]: {
6
6
  ".ant-form-item": {
7
- marginBlockEnd: o.space
7
+ marginBlockEnd: r.space
8
8
  },
9
9
  ".ant-popover-arrow": {
10
10
  display: "none"
@@ -12,29 +12,26 @@ const a = (o) => {
12
12
  ".ant-popover-inner": {
13
13
  padding: 0
14
14
  },
15
- [`${e}-content`]: {
16
- padding: `${o.spaceLG} ${o.spaceXL} ${o.spaceXL}`,
15
+ [`${o}-content`]: {
16
+ padding: `${r.spaceLG} ${r.spaceXL} ${r.spaceXL}`,
17
17
  textarea: {
18
18
  padding: 0
19
19
  }
20
20
  },
21
- [`${e}-footer`]: {
22
- padding: `${o.spaceLG} ${o.spaceXL}`,
23
- "&-confirm-btn": {
24
- marginLeft: "10px"
25
- },
21
+ [`${o}-footer`]: {
22
+ padding: `${r.spaceLG} ${r.spaceXL}`,
26
23
  "& button.ant-btn": {
27
- paddingInline: o.spaceXL
24
+ paddingInline: r.spaceXL
28
25
  }
29
26
  }
30
27
  }
31
28
  };
32
- }, t = (o) => {
33
- const { componentCls: r } = o;
29
+ }, t = (r) => {
30
+ const { componentCls: e } = r;
34
31
  return {
35
- [r]: {
32
+ [e]: {
36
33
  ".ant-form-item": {
37
- marginBlockEnd: o.space
34
+ marginBlockEnd: r.space
38
35
  },
39
36
  ".ant-form-item-control": {
40
37
  ".ant-picker": {
@@ -45,22 +42,22 @@ const a = (o) => {
45
42
  }
46
43
  },
47
44
  // for more filter trigger button
48
- [`${r}-trigger-btn`]: {
45
+ [`${e}-trigger-btn`]: {
49
46
  fontSize: 0,
50
47
  "&-active": {
51
- color: o.hoverColorBase,
52
- borderColor: o.hoverColorBase,
48
+ color: r.hoverColorBase,
49
+ borderColor: r.hoverColorBase,
53
50
  zIndex: 1
54
51
  },
55
52
  "&-badge": {
56
53
  display: "inline-block",
57
- padding: o.spaceXXS,
58
- minWidth: "14px",
59
- height: "14px",
60
- backgroundColor: o.colorPrimary,
61
- fontSize: "10px",
54
+ padding: r.spaceXXS,
55
+ minWidth: r.searchFormPopoverFilterBadgeSize,
56
+ height: r.searchFormPopoverFilterBadgeSize,
57
+ backgroundColor: r.colorPrimary,
58
+ fontSize: r.fontSizeSM,
62
59
  lineHeight: 1,
63
- borderRadius: "7px",
60
+ borderRadius: r.calc(r.searchFormPopoverFilterBadgeSize).div(2).equal(),
64
61
  color: "#fff",
65
62
  position: "absolute",
66
63
  top: 0,
@@ -69,7 +66,7 @@ const a = (o) => {
69
66
  boxShadow: "0 0 0 1px #fff"
70
67
  }
71
68
  },
72
- [`${r}-column-setting-trigger-wrapper`]: {
69
+ [`${e}-column-setting-trigger-wrapper`]: {
73
70
  flexShrink: 0,
74
71
  ".ant-btn:not(:only-child)": {
75
72
  "&:first-child": {
@@ -89,18 +86,24 @@ const a = (o) => {
89
86
  }
90
87
  }
91
88
  },
92
- [`${r}-action-btn`]: {
93
- paddingInline: o.spaceLG
89
+ [`${e}-action-btn`]: {
90
+ paddingInline: r.spaceLG
94
91
  },
95
- [`${r}-action-btn-reset`]: {
96
- backgroundColor: o.colorBg1
92
+ [`${e}-action-btn-reset`]: {
93
+ backgroundColor: r.colorBg1
97
94
  }
98
95
  },
99
- ...a(o)
96
+ ...i(r)
100
97
  };
101
- }, p = n("ApForm.SearchForm", (o) => [t(o)]);
98
+ }, p = a(
99
+ "ApForm.SearchForm",
100
+ (r) => [t(r)],
101
+ {
102
+ searchFormPopoverFilterBadgeSize: 14
103
+ }
104
+ );
102
105
  export {
103
106
  p as default,
104
- a as genPopoverStyle,
107
+ i as genPopoverStyle,
105
108
  t as genSearchFormStyle
106
109
  };
@@ -2,7 +2,7 @@ import { defineComponent as z, useSlots as G, toRef as K, ref as c, unref as s,
2
2
  import { ApForm as y } from "../../ap-form/index.mjs";
3
3
  import { isUndefined as Y, isNumber as d, cloneDeep as Z, isArray as M, omit as ee } from "lodash-unified";
4
4
  import "../../config-provider/index.mjs";
5
- import { isDef as C } from "../../utils/index.mjs";
5
+ import "../../utils/index.mjs";
6
6
  import { useGetEditableColumns as te } from "../hooks/use-editable-columns.mjs";
7
7
  import "../index.vue2.mjs";
8
8
  import { useInjectForm as ae } from "../../ap-form/context.mjs";
@@ -11,8 +11,9 @@ import { useDevWarning as ne } from "../../utils/warning.mjs";
11
11
  import le from "../style/editable.mjs";
12
12
  import { useNamespace as re } from "../../config-provider/hooks/use-namespace.mjs";
13
13
  import { useGlobalConfig as se } from "../../config-provider/hooks/use-global-config.mjs";
14
+ import { isDef as C } from "../../utils/is.mjs";
14
15
  import ie from "../index.vue.mjs";
15
- const Se = /* @__PURE__ */ z({
16
+ const Fe = /* @__PURE__ */ z({
16
17
  name: "EditableGridFormItem",
17
18
  __name: "form-item",
18
19
  props: {
@@ -115,7 +116,7 @@ const Se = /* @__PURE__ */ z({
115
116
  type: Boolean
116
117
  },
117
118
  rowSelection: {
118
- type: Boolean,
119
+ type: [Boolean, Object],
119
120
  default: void 0
120
121
  },
121
122
  onLoadingChange: {},
@@ -242,14 +243,14 @@ const Se = /* @__PURE__ */ z({
242
243
  }
243
244
  });
244
245
  }
245
- function _(e) {
246
+ function j(e) {
246
247
  i?.setFieldValue(o.name, e);
247
248
  }
248
- function j(e) {
249
+ function O(e) {
249
250
  const n = e === "end" ? f.value.length - 1 : e;
250
251
  p.value?.scrollToRow(n);
251
252
  }
252
- function O() {
253
+ function _() {
253
254
  i?.setFieldValue?.(o.name, []);
254
255
  }
255
256
  return b({
@@ -259,9 +260,9 @@ const Se = /* @__PURE__ */ z({
259
260
  getRowsData: L,
260
261
  setRowData: T,
261
262
  addMultiple: D,
262
- scrollTo: j,
263
- setTableData: _,
264
- clear: O,
263
+ scrollTo: O,
264
+ setTableData: j,
265
+ clear: _,
265
266
  removeByKey: k
266
267
  }), (e, n) => (W(), H(s(y).FormItem, g(e.formItem, {
267
268
  name: e.name,
@@ -285,5 +286,5 @@ const Se = /* @__PURE__ */ z({
285
286
  }
286
287
  });
287
288
  export {
288
- Se as default
289
+ Fe as default
289
290
  };
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as W, useSlots as U, ref as y, watch as C, unref as s, createBlock as $, openBlock as q, withCtx as p, createVNode as w, mergeProps as J, createSlots as Q, renderList as X, renderSlot as Y, normalizeProps as Z, guardReactiveProps as M } from "vue";
2
2
  import { ApForm as m } from "../../ap-form/index.mjs";
3
- import { isEqual as ee, isArray as c, isUndefined as ae, isNumber as g, cloneDeep as te, omit as oe } from "lodash-unified";
3
+ import { isEqual as ee, isArray as c, isUndefined as te, isNumber as g, cloneDeep as ae, omit as oe } from "lodash-unified";
4
4
  import "../../config-provider/index.mjs";
5
5
  import "../../hooks/index.mjs";
6
- import { isDef as b } from "../../utils/index.mjs";
6
+ import "../../utils/index.mjs";
7
7
  import { useGetEditableColumns as ne } from "../hooks/use-editable-columns.mjs";
8
8
  import "../index.vue2.mjs";
9
9
  import { useDevWarning as le } from "../../utils/warning.mjs";
@@ -11,8 +11,9 @@ import se from "../style/editable.mjs";
11
11
  import { useNamespace as re } from "../../config-provider/hooks/use-namespace.mjs";
12
12
  import { useControllableValue as ie } from "../../hooks/useControllableValue.mjs";
13
13
  import { useGlobalConfig as ue } from "../../config-provider/hooks/use-global-config.mjs";
14
+ import { isDef as b } from "../../utils/is.mjs";
14
15
  import de from "../index.vue.mjs";
15
- const Fe = /* @__PURE__ */ W({
16
+ const Ee = /* @__PURE__ */ W({
16
17
  name: "EditableGrid",
17
18
  __name: "index",
18
19
  props: {
@@ -115,7 +116,7 @@ const Fe = /* @__PURE__ */ W({
115
116
  type: Boolean
116
117
  },
117
118
  rowSelection: {
118
- type: Boolean,
119
+ type: [Boolean, Object],
119
120
  default: void 0
120
121
  },
121
122
  onLoadingChange: {},
@@ -168,55 +169,55 @@ const Fe = /* @__PURE__ */ W({
168
169
  expose: x,
169
170
  emit: R
170
171
  }) {
171
- const B = U(), a = v, {
172
+ const B = U(), t = v, {
172
173
  b: S
173
174
  } = re("editable-grid"), F = se("editable-grid"), E = R;
174
175
  le("EditableGrid")(!1, "breaking", "EditableGrid has been EOL, Please use EditableAgGrid(https://aplus.aplnk.com/aplus-ui/components/ag-grid/editable/) instead.");
175
176
  const h = y(), {
176
177
  value: u,
177
178
  updateValue: N
178
- } = ie(a, E), i = y(), V = ue("valueTypeMap"), f = m.useWatch(a.name, i);
179
+ } = ie(t, E), i = y(), V = ue("valueTypeMap"), f = m.useWatch(t.name, i);
179
180
  C(() => f.value, (e) => {
180
- N(e), a.onChange?.(e);
181
+ N(e), t.onChange?.(e);
181
182
  }, {
182
183
  deep: !0,
183
184
  flush: "post"
184
185
  }), C(u, (e) => {
185
- e !== s(f) && (ee(e, s(f)) || i.value?.setFieldValue(a.name, e));
186
+ e !== s(f) && (ee(e, s(f)) || i.value?.setFieldValue(t.name, e));
186
187
  }, {
187
188
  deep: !0
188
189
  });
189
- const k = ne(a, V);
190
+ const k = ne(t, V);
190
191
  function L() {
191
192
  i.value?.resetFields();
192
193
  }
193
194
  function _(e) {
194
- return e ? (c(e) ? e : [e]).map((l) => c(l) ? [a.name, ...l] : [a.name, l]) : void 0;
195
+ return e ? (c(e) ? e : [e]).map((l) => c(l) ? [t.name, ...l] : [t.name, l]) : void 0;
195
196
  }
196
197
  async function D(e, n) {
197
- return (await i.value?.validateFields(_(e), n))?.[a.name];
198
+ return (await i.value?.validateFields(_(e), n))?.[t.name];
198
199
  }
199
- function T(e, n) {
200
+ function O(e, n) {
200
201
  const l = s(u)?.length || 0;
201
- if (b(a.maxLength) && l >= a.maxLength)
202
+ if (b(t.maxLength) && l >= t.maxLength)
202
203
  return;
203
- const t = {
204
+ const a = {
204
205
  ...e || {}
205
206
  };
206
- i.value?.setFieldValue?.(a.name, t, !0, (o, r) => {
207
+ i.value?.setFieldValue?.(t.name, a, !0, (o, r) => {
207
208
  if (!o[r]) {
208
- o[r] = [t];
209
+ o[r] = [a];
209
210
  return;
210
211
  }
211
- ae(n) ? o[r].push(t) : o[r].splice(n, 0, t);
212
+ te(n) ? o[r].push(a) : o[r].splice(n, 0, a);
212
213
  });
213
214
  }
214
- function O(e, n = "suffix") {
215
- const l = s(u)?.length || 0, t = g(e) ? e : e.length;
216
- if (b(a.maxLength) && l + t > a.maxLength)
215
+ function T(e, n = "suffix") {
216
+ const l = s(u)?.length || 0, a = g(e) ? e : e.length;
217
+ if (b(t.maxLength) && l + a > t.maxLength)
217
218
  return;
218
- const o = g(e) ? new Array(e).fill(0).map(() => ({})) : te(e);
219
- i.value?.setFieldValue?.(a.name, o, !0, (r, d) => {
219
+ const o = g(e) ? new Array(e).fill(0).map(() => ({})) : ae(e);
220
+ i.value?.setFieldValue?.(t.name, o, !0, (r, d) => {
220
221
  if (!r[d]) {
221
222
  r[d] = [...o];
222
223
  return;
@@ -226,34 +227,34 @@ const Fe = /* @__PURE__ */ W({
226
227
  }
227
228
  function j(e) {
228
229
  const n = new Set(g(e) ? [e] : e);
229
- i.value?.setFieldValue?.(a.name, void 0, !0, (l, t) => {
230
- l[t] = l[t].filter((o, r) => !n.has(r));
230
+ i.value?.setFieldValue?.(t.name, void 0, !0, (l, a) => {
231
+ l[a] = l[a].filter((o, r) => !n.has(r));
231
232
  });
232
233
  }
233
234
  function A(e) {
234
235
  const n = new Set(c(e) ? e : [e]);
235
- n.size !== 0 && i.value?.setFieldValue?.(a.name, void 0, !0, (l, t) => {
236
- l[t] = l[t].filter((o) => !n.has(o[a.rowKey]));
236
+ n.size !== 0 && i.value?.setFieldValue?.(t.name, void 0, !0, (l, a) => {
237
+ l[a] = l[a].filter((o) => !n.has(o[t.rowKey]));
237
238
  });
238
239
  }
239
240
  function z() {
240
241
  return s(u);
241
242
  }
242
243
  function G(e) {
243
- i.value?.setFieldValue(a.name, e);
244
+ i.value?.setFieldValue(t.name, e);
244
245
  }
245
246
  function I(e) {
246
247
  return s(u)?.[e];
247
248
  }
248
249
  function K(e, n, l = !0) {
249
- i.value?.setFieldValue?.(a.name, void 0, !0, (t, o) => {
250
- if (!(!t[o] || !t[o][e])) {
250
+ i.value?.setFieldValue?.(t.name, void 0, !0, (a, o) => {
251
+ if (!(!a[o] || !a[o][e])) {
251
252
  if (!l) {
252
- const r = Object.keys(t[o][e]);
253
+ const r = Object.keys(a[o][e]);
253
254
  for (const d of r)
254
- d !== a.rowKey && delete t[o][e][d];
255
+ d !== t.rowKey && delete a[o][e][d];
255
256
  }
256
- Object.assign(t[o][e], {
257
+ Object.assign(a[o][e], {
257
258
  ...n
258
259
  });
259
260
  }
@@ -264,17 +265,17 @@ const Fe = /* @__PURE__ */ W({
264
265
  h.value?.scrollToRow(n);
265
266
  }
266
267
  function H() {
267
- i.value?.setFieldValue?.(a.name, []);
268
+ i.value?.setFieldValue?.(t.name, []);
268
269
  }
269
270
  return x({
270
271
  resetFields: L,
271
272
  validateFields: D,
272
- add: T,
273
+ add: O,
273
274
  remove: j,
274
275
  getRowData: I,
275
276
  getRowsData: z,
276
277
  setRowData: K,
277
- addMultiple: O,
278
+ addMultiple: T,
278
279
  scrollTo: P,
279
280
  clear: H,
280
281
  setTableData: G,
@@ -283,7 +284,7 @@ const Fe = /* @__PURE__ */ W({
283
284
  ref_key: "formRef",
284
285
  ref: i,
285
286
  "initial-values": {
286
- [a.name]: s(u)
287
+ [t.name]: s(u)
287
288
  },
288
289
  style: {
289
290
  height: "100%"
@@ -293,7 +294,7 @@ const Fe = /* @__PURE__ */ W({
293
294
  name: e.name,
294
295
  "no-style": ""
295
296
  }, {
296
- default: p(() => [w(de, J(s(oe)(a, ["name", "value", "onUpdate:value", "maxLength", "onChange", "defaultValue"]), {
297
+ default: p(() => [w(de, J(s(oe)(t, ["name", "value", "onUpdate:value", "maxLength", "onChange", "defaultValue"]), {
297
298
  ref_key: "tableRef",
298
299
  ref: h,
299
300
  class: [s(S)(), s(F)],
@@ -302,9 +303,9 @@ const Fe = /* @__PURE__ */ W({
302
303
  "search-form": !1
303
304
  }), Q({
304
305
  _: 2
305
- }, [X(B, (l, t) => ({
306
- name: t,
307
- fn: p((o) => [Y(e.$slots, t, Z(M(o || {})))])
306
+ }, [X(B, (l, a) => ({
307
+ name: a,
308
+ fn: p((o) => [Y(e.$slots, a, Z(M(o || {})))])
308
309
  }))]), 1040, ["class", "columns", "data-source"])]),
309
310
  _: 3
310
311
  }, 8, ["name"])]),
@@ -313,5 +314,5 @@ const Fe = /* @__PURE__ */ W({
313
314
  }
314
315
  });
315
316
  export {
316
- Fe as default
317
+ Ee as default
317
318
  };
@@ -16,16 +16,17 @@ import { DEFAULT_ROW_SELECTION_CONFIG as ue, sizeReverseMap as wt, sizeMap as St
16
16
  import { useRenderColumns as bt } from "./hooks/use-render-columns.mjs";
17
17
  import { useToken as xt } from "@aplus-frontend/antdv/es/theme/internal";
18
18
  import "../scroll-bar/index.mjs";
19
- import { isDef as kt } from "../utils/index.mjs";
20
- import { getValidVNodeList as Ft } from "../utils/slot.mjs";
21
- import { useTableStyle as Et } from "./hooks/use-table-style.mjs";
22
- import { useDevWarning as It } from "../utils/warning.mjs";
23
- import Bt from "./style/index.mjs";
24
- import { useNamespace as Tt } from "../config-provider/hooks/use-namespace.mjs";
19
+ import "../utils/index.mjs";
20
+ import { getValidVNodeList as kt } from "../utils/slot.mjs";
21
+ import { useTableStyle as Ft } from "./hooks/use-table-style.mjs";
22
+ import { useDevWarning as Et } from "../utils/warning.mjs";
23
+ import It from "./style/index.mjs";
24
+ import { useNamespace as Bt } from "../config-provider/hooks/use-namespace.mjs";
25
25
  import { useGlobalConfig as ce } from "../config-provider/hooks/use-global-config.mjs";
26
- import { useLocale as Nt } from "../config-provider/hooks/use-locale.mjs";
26
+ import { useLocale as Tt } from "../config-provider/hooks/use-locale.mjs";
27
+ import { isDef as Nt } from "../utils/is.mjs";
27
28
  import Pt from "../scroll-bar/index.vue.mjs";
28
- const so = /* @__PURE__ */ Qe({
29
+ const io = /* @__PURE__ */ Qe({
29
30
  name: "ApGrid",
30
31
  __name: "index",
31
32
  props: {
@@ -90,7 +91,7 @@ const so = /* @__PURE__ */ Qe({
90
91
  footerCellConfig: {},
91
92
  round: { type: Boolean, default: void 0 },
92
93
  columns: {},
93
- rowSelection: { type: Boolean },
94
+ rowSelection: { type: [Boolean, Object] },
94
95
  card: { type: Boolean, default: !1 },
95
96
  params: {},
96
97
  request: {},
@@ -119,12 +120,12 @@ const so = /* @__PURE__ */ Qe({
119
120
  },
120
121
  setup(pe, { expose: fe }) {
121
122
  const T = Ye(), o = pe, x = Ze()?.appContext.app;
122
- x && !x.__VXE_PC_UI_INSTALLED__ && (x.use(ne), x.__VXE_PC_UI_INSTALLED__ = !0), It("ApGrid")(
123
+ x && !x.__VXE_PC_UI_INSTALLED__ && (x.use(ne), x.__VXE_PC_UI_INSTALLED__ = !0), Et("ApGrid")(
123
124
  !1,
124
125
  "breaking",
125
126
  "AgGrid has been EOL, Please use AgGrid(https://aplus.aplnk.com/aplus-ui/components/ag-grid/) instead."
126
127
  );
127
- const { e: k, b: u, be: me } = Tt("ap-grid"), ge = Bt("ap-grid"), he = ce("valueTypeMap"), Ce = ce("apGrid"), i = y([]), W = y([]), l = y(), F = y(o.size), ve = Et(), [, ye] = xt(), { t: we } = Nt(), N = y(!0);
128
+ const { e: k, b: u, be: me } = Bt("ap-grid"), ge = It("ap-grid"), he = ce("valueTypeMap"), Ce = ce("apGrid"), i = y([]), W = y([]), l = y(), F = y(o.size), ve = Ft(), [, ye] = xt(), { t: we } = Tt(), N = y(!0);
128
129
  ne.setConfig({
129
130
  i18n: (e, a) => we(`ap.${e}`, a)
130
131
  });
@@ -167,7 +168,7 @@ const so = /* @__PURE__ */ Qe({
167
168
  r,
168
169
  t(he)
169
170
  ), r;
170
- }) || [])), xe = n(() => kt(o.manual) ? o.manual : Ft(T.searchFormExtra?.() || []).some((a) => a.type?.name === "ApView")), ke = n(() => [
171
+ }) || [])), xe = n(() => Nt(o.manual) ? o.manual : kt(T.searchFormExtra?.() || []).some((a) => a.type?.name === "ApView")), ke = n(() => [
171
172
  u(),
172
173
  o.card ? null : u("wrapper"),
173
174
  o.adaptive ? u("adaptive") : null,
@@ -548,5 +549,5 @@ const so = /* @__PURE__ */ Qe({
548
549
  }
549
550
  });
550
551
  export {
551
- so as default
552
+ io as default
552
553
  };
@@ -1,16 +1,16 @@
1
- import { multiRows as i } from "../../style/index.mjs";
1
+ import { multiRows as r } from "../../style/index.mjs";
2
2
  import { genComponentStyleHook as l } from "../../utils/cssinjs/index.mjs";
3
- const o = (e) => {
3
+ const i = (e) => {
4
4
  const { componentCls: t } = e;
5
5
  return {
6
6
  [t]: {
7
7
  [`${t}__header-cell--required`]: {
8
- color: "#FF4D4F",
9
- paddingRight: "2px"
8
+ color: e.colorError,
9
+ paddingRight: e.spaceXXS
10
10
  },
11
11
  [`${t}-table-header`]: {
12
12
  "&__title": {
13
- ...i(e),
13
+ ...r(e),
14
14
  textAlign: "right"
15
15
  }
16
16
  },
@@ -24,9 +24,9 @@ const o = (e) => {
24
24
  }
25
25
  };
26
26
  }, d = l("EditableGrid", (e) => [
27
- o(e)
27
+ i(e)
28
28
  ]);
29
29
  export {
30
30
  d as default,
31
- o as genEditableGridStyle
31
+ i as genEditableGridStyle
32
32
  };
@@ -1,9 +1,9 @@
1
- import { genSettingTriggerBtnStyle as r } from "../../ap-table/style/index.mjs";
1
+ import { genSettingTriggerBtnStyle as n } from "../../ap-table/style/index.mjs";
2
2
  import { multiRows as o, resetScrollbar as d } from "../../style/index.mjs";
3
3
  import { genComponentStyleHook as p } from "../../utils/cssinjs/index.mjs";
4
4
  import { aplusApGridIconFont as c } from "./font.mjs";
5
5
  const g = (e) => {
6
- const { componentCls: i, namespace: t } = e, l = `${i}-vxe-wrapper`, a = `${i}-pagination-wrapper`, n = `.${t}-scroll-bar`;
6
+ const { componentCls: i, namespace: t } = e, l = `${i}-vxe-wrapper`, a = `${i}-pagination-wrapper`, r = `.${t}-scroll-bar`;
7
7
  return [
8
8
  c,
9
9
  {
@@ -50,11 +50,11 @@ const g = (e) => {
50
50
  position: "sticky",
51
51
  bottom: 0
52
52
  },
53
- [`&:has(${n})`]: {
53
+ [`&:has(${r})`]: {
54
54
  [a]: {
55
55
  "ul.ant-pagination": {
56
56
  marginBlockStart: 0,
57
- paddingBlockStart: "4px"
57
+ paddingBlockStart: e.spaceXS
58
58
  }
59
59
  },
60
60
  ".vxe-table--scroll-x-wrapper": {
@@ -85,7 +85,7 @@ const g = (e) => {
85
85
  paddingBlockEnd: 0,
86
86
  backgroundColor: "#fff",
87
87
  borderRadius: e.borderRadius,
88
- marginBlockEnd: "10px"
88
+ marginBlockEnd: e.spaceMD
89
89
  },
90
90
  [`${i}__table-wrapper`]: {
91
91
  flex: 1,
@@ -109,7 +109,7 @@ const g = (e) => {
109
109
  display: "flex",
110
110
  flexWrap: "wrap",
111
111
  alignItems: "center",
112
- rowGap: "8px",
112
+ rowGap: e.space,
113
113
  ".ant-pagination-total-text": {
114
114
  flex: 1,
115
115
  height: "unset",
@@ -142,7 +142,7 @@ const g = (e) => {
142
142
  color: e.textColor1
143
143
  },
144
144
  [`${i}-pagination--total-right`]: {
145
- paddingInlineStart: "12px"
145
+ paddingInlineStart: e.spaceLG
146
146
  },
147
147
  [`${i}-pagination-total-wrapper`]: {
148
148
  color: e.textColor2
@@ -157,7 +157,7 @@ const g = (e) => {
157
157
  }
158
158
  }
159
159
  },
160
- ...r(e),
160
+ ...n(e),
161
161
  // 实现表头不换行排列
162
162
  "th.vxe-header--column .vxe-cell--wrapper": {
163
163
  display: "flex",
@@ -196,7 +196,7 @@ const g = (e) => {
196
196
  },
197
197
  ".vxe-cell--checkbox.is--disabled > .vxe-checkbox--icon": {
198
198
  backgroundColor: e.tableHeaderBg,
199
- borderRadius: "4px"
199
+ borderRadius: e.borderRadius
200
200
  },
201
201
  ".vxe-cell--checkbox span.vxe-checkbox--icon": {
202
202
  verticalAlign: "text-wrap"
@@ -208,7 +208,7 @@ const g = (e) => {
208
208
  }
209
209
  }
210
210
  ];
211
- }, m = p(
211
+ }, b = p(
212
212
  "ApGrid",
213
213
  (e) => [g(e)],
214
214
  {
@@ -216,6 +216,6 @@ const g = (e) => {
216
216
  }
217
217
  );
218
218
  export {
219
- m as default,
219
+ b as default,
220
220
  g as genApGridStyle
221
221
  };
@@ -1,7 +1,8 @@
1
1
  import { omit as d, isUndefined as s, isFunction as g, isNumber as m } from "lodash-unified";
2
- import { isDef as C } from "../../utils/index.mjs";
2
+ import "../../utils/index.mjs";
3
+ import { isDef as C } from "../../utils/is.mjs";
3
4
  const b = 20, y = 50, v = (e) => e.some((i) => !!i.html);
4
- function k(e, i) {
5
+ function z(e, i) {
5
6
  const t = {
6
7
  ...d(e, [
7
8
  "columns",
@@ -62,9 +63,9 @@ function k(e, i) {
62
63
  }, t;
63
64
  }
64
65
  function l(e, i, t) {
65
- const n = i === "X", r = n ? "x" : "y", a = n ? "virtualXConfig" : "virtualYConfig", u = t?.[r], o = u !== !1, f = n ? b : y, c = m(u) && u >= 0 ? u : f;
66
+ const n = i === "X", r = n ? "x" : "y", a = n ? "virtualXConfig" : "virtualYConfig", o = t?.[r], u = o !== !1, f = n ? b : y, c = m(o) && o >= 0 ? o : f;
66
67
  e[a] = {
67
- enabled: o,
68
+ enabled: u,
68
69
  gt: c,
69
70
  oSize: t?.oSize || 0
70
71
  };
@@ -72,18 +73,18 @@ function l(e, i, t) {
72
73
  function x(e) {
73
74
  return e === !0 ? "left" : e;
74
75
  }
75
- function z(e, i, t) {
76
+ function F(e, i, t) {
76
77
  const n = e === !0 || !e.type ? "checkbox" : e.type, r = (t === "mini" ? 9 * 2 : 12 * 2) + 16, a = e === !0 ? r : e.columnWidth || r;
77
- let u = e === !0 ? void 0 : x(e.fixed);
78
- return u || (u === !1 ? u = void 0 : u = i.some(
79
- (o) => o.fixed === "left" || o.fixed === !0
78
+ let o = e === !0 ? void 0 : x(e.fixed);
79
+ return o || (o === !1 ? o = void 0 : o = i.some(
80
+ (u) => u.fixed === "left" || u.fixed === !0
80
81
  ) ? "left" : void 0), {
81
82
  type: n,
82
83
  width: a,
83
- fixed: u
84
+ fixed: o
84
85
  };
85
86
  }
86
- function F(e) {
87
+ function K(e) {
87
88
  const i = e?.width || "auto";
88
89
  return {
89
90
  type: "expand",
@@ -106,7 +107,7 @@ function R(e, i) {
106
107
  return n += r, e.querySelector("span.anticon-question-circle") && (n += 20), n += h(e.querySelector(".vxe-cell--sort")) + h(e.querySelector(".vxe-cell--filter")), Math.ceil(n);
107
108
  }
108
109
  export {
109
- F as getRowExpandProps,
110
- z as getRowSelectionProps,
111
- k as toVxeProps
110
+ K as getRowExpandProps,
111
+ F as getRowSelectionProps,
112
+ z as toVxeProps
112
113
  };
@@ -12,8 +12,8 @@ export declare const useOfflineList: <DataType = Recordable>(params: ApListProps
12
12
  current: number;
13
13
  pageSize: number;
14
14
  total: number;
15
- showSizeChanger: boolean;
16
- showQuickJumper: boolean;
15
+ showSizeChanger: NonNullable<boolean | undefined>;
16
+ showQuickJumper: NonNullable<boolean | undefined>;
17
17
  showLessItems: boolean | undefined;
18
18
  size: "default" | "small";
19
19
  pageSizeOptions: (string | number)[];