@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
@@ -3,11 +3,11 @@ import { genComponentStyleHook as t } from "../../utils/cssinjs/index.mjs";
3
3
  const s = (e) => {
4
4
  const {
5
5
  componentCls: i,
6
- checkCardDisabledOutlineColor: c,
7
- checkCardIndicatorSize: d,
6
+ checkCardDisabledOutlineColor: l,
7
+ checkCardIndicatorSize: c,
8
8
  checkCardOutlineWidth: r,
9
- checkCardIndicatorOffset: l
10
- } = e, a = e.calc(d).mul(2).equal();
9
+ checkCardIndicatorOffset: d
10
+ } = e, a = e.calc(c).mul(2).equal();
11
11
  return {
12
12
  [`${i}`]: {
13
13
  ...o(e),
@@ -18,11 +18,11 @@ const s = (e) => {
18
18
  cursor: "not-allowed !important"
19
19
  },
20
20
  "&--bordered": {
21
- outline: `1px solid ${e.borderColorBase}`
21
+ outline: `${e.lineWidth} ${e.lineType} ${e.borderColorBase}`
22
22
  },
23
23
  [`&:hover:not(${i}--disabled)`]: {
24
24
  cursor: "pointer",
25
- outline: `1px solid ${e.colorPrimary}`
25
+ outline: `${e.lineWidth} ${e.lineType} ${e.colorPrimary}`
26
26
  },
27
27
  "&::after": {
28
28
  content: '""',
@@ -36,21 +36,21 @@ const s = (e) => {
36
36
  borderRadius: e.calc(e.borderRadius).add("2px").equal()
37
37
  },
38
38
  "&--checked": {
39
- outline: `${r} solid ${e.colorPrimary}`,
39
+ outline: `${r} ${e.lineType} ${e.colorPrimary}`,
40
40
  [`&:hover:not(${i}--disabled)`]: {
41
- outline: `${r} solid ${e.colorPrimary}`
41
+ outline: `${r} ${e.lineType} ${e.colorPrimary}`
42
42
  },
43
43
  "&::after": {
44
44
  width: a,
45
45
  height: a,
46
- insetBlockStart: l,
47
- insetInlineEnd: l,
46
+ insetBlockStart: d,
47
+ insetInlineEnd: d,
48
48
  transition: "width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), height 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), inset 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"
49
49
  },
50
50
  [`&${i}--disabled`]: {
51
- outlineColor: c,
51
+ outlineColor: l,
52
52
  "&::after": {
53
- backgroundColor: c
53
+ backgroundColor: l
54
54
  }
55
55
  }
56
56
  },
@@ -63,7 +63,7 @@ const s = (e) => {
63
63
  [`${i}__title`]: {
64
64
  ...o(e),
65
65
  marginBottom: e.spaceXS,
66
- color: "#333",
66
+ color: e.textColor1,
67
67
  fontWeight: "bold",
68
68
  "&--disabled": {
69
69
  color: e.textColor4
@@ -71,7 +71,7 @@ const s = (e) => {
71
71
  },
72
72
  [`${i}__content`]: {
73
73
  ...o(e),
74
- color: "#333",
74
+ color: e.textColor1,
75
75
  "&--disabled": {
76
76
  color: e.textColor4
77
77
  }
@@ -84,13 +84,13 @@ const s = (e) => {
84
84
  lineHeight: 1,
85
85
  userSelect: "none",
86
86
  "& > img": {
87
- width: e.calc(d).sub(r).equal(),
87
+ width: e.calc(c).sub(r).equal(),
88
88
  verticalAlign: "top"
89
89
  }
90
90
  }
91
91
  }
92
92
  };
93
- }, h = t(
93
+ }, u = t(
94
94
  "CheckCard",
95
95
  (e) => [s(e)],
96
96
  {
@@ -102,5 +102,5 @@ const s = (e) => {
102
102
  }
103
103
  );
104
104
  export {
105
- h as default
105
+ u as default
106
106
  };
@@ -27,10 +27,12 @@ const o = {
27
27
  fontSize: 12,
28
28
  fontSizeLG: 14,
29
29
  fontSizeXL: 16,
30
+ fontSizeXXL: 20,
30
31
  lineHeightSM: 16,
31
32
  lineHeight: 18,
32
33
  lineHeightLG: 22,
33
34
  borderRadiusXS: 1,
35
+ borderRadiusSM: 2,
34
36
  borderRadius: 4,
35
37
  spaceXXS: 2,
36
38
  spaceXS: 4,
@@ -44,7 +46,13 @@ const o = {
44
46
  scrollbarThumbColorHover: "#959ca7",
45
47
  scrollbarTrackColorHover: "#f2f6f9",
46
48
  tableHeaderBg: "#f2f6f9",
47
- lineClamp: 2
49
+ lineClamp: 2,
50
+ motionDurationFast: "0.1s",
51
+ motionDurationMid: "0.2s",
52
+ motionDurationSlow: "0.3s",
53
+ lineWidth: 1,
54
+ lineType: "solid",
55
+ controlHeight: 30
48
56
  };
49
57
  export {
50
58
  o as defaultToken
@@ -14,8 +14,53 @@ import { ApRadioGroupToken } from '../business/ap-radio-group/style';
14
14
  import { ApGridToken } from '../ap-grid/style';
15
15
  import { TokenUtil } from '../utils/cssinjs/TokenUtil';
16
16
  import { LoadingBarToken } from '../loading-bar/style';
17
- /** 基础token */
18
- export type BaseToken = {
17
+ import { HighlightToken } from '../highlight/style';
18
+ import { SearchFormToken } from '../ap-form/style/search-form';
19
+ import { ApUploadToken } from '../business/ap-upload/style/token';
20
+ import { ApUploadSingleToken } from '../business/ap-upload-file/ap-upload-single/style';
21
+ import { ApAttachmentToken } from '../business/ap-attachment/style';
22
+ import { ApLabelToken } from '../business/ap-label/style';
23
+ import { ApSelectLayoutToken } from '../business/ap-select-layout/style';
24
+ import { ApTableModalToken } from '../business/ap-table-modal/style';
25
+ import { ApSummaryToken } from '../business/ap-summary/style';
26
+ import { AppendixToken } from '../business/ap-appendix/style/token';
27
+ import { ApProductInfoToken } from '../business/ap-product-info/style';
28
+ import { ApViewToken } from '../business/ap-view/style';
29
+ export type FontToken = {
30
+ /**
31
+ * 最大号字体
32
+ */
33
+ fontSizeXXL: number;
34
+ /**
35
+ * 超大号字体
36
+ */
37
+ fontSizeXL: number;
38
+ /**
39
+ * 大号字体
40
+ */
41
+ fontSizeLG: number;
42
+ /**
43
+ * 中等尺寸字体
44
+ */
45
+ fontSize: number;
46
+ /**
47
+ * 小尺寸字体
48
+ */
49
+ fontSizeSM: number;
50
+ /**
51
+ * 大型文本行高
52
+ */
53
+ lineHeightLG: number;
54
+ /**
55
+ * 基础行高
56
+ */
57
+ lineHeight: number;
58
+ /**
59
+ * 小型文本行高
60
+ */
61
+ lineHeightSM: number;
62
+ };
63
+ export type ColorToken = {
19
64
  /**
20
65
  * 基础边框色
21
66
  */
@@ -112,37 +157,108 @@ export type BaseToken = {
112
157
  * 控件背景色(一般同主系,但是更浅,适用块选中效果)
113
158
  */
114
159
  colorBgControl: string;
115
- fontSizeXL: number;
116
- fontSizeLG: number;
117
- fontSize: number;
118
- fontSizeSM: number;
119
- lineHeightLG: number;
120
- lineHeight: number;
121
- lineHeightSM: number;
122
- borderRadiusXS: number;
123
- borderRadius: number;
160
+ /**
161
+ * 表格表头背景色
162
+ */
163
+ tableHeaderBg: string;
164
+ };
165
+ export type HeightToken = {
166
+ /**
167
+ * 最小尺寸间距
168
+ */
124
169
  spaceXXS: number;
170
+ /**
171
+ * 极小尺寸间距
172
+ */
125
173
  spaceXS: number;
174
+ /**
175
+ * 小尺寸间距
176
+ */
126
177
  spaceSM: number;
178
+ /**
179
+ * 标准尺寸间距
180
+ */
127
181
  space: number;
182
+ /**
183
+ * 较大尺寸间距
184
+ */
128
185
  spaceMD: number;
186
+ /**
187
+ * 大尺寸间距
188
+ */
129
189
  spaceLG: number;
190
+ /**
191
+ * 极大尺寸间距
192
+ */
130
193
  spaceXL: number;
194
+ /**
195
+ * 最大尺寸间距
196
+ */
131
197
  spaceXXL: number;
198
+ };
199
+ export type MotionToken = {
200
+ /**
201
+ * 动画持续时间-快速,适用于小型元素
202
+ */
203
+ motionDurationFast: string;
204
+ /**
205
+ * 动画持续时间-中等,适用于中型元素
206
+ */
207
+ motionDurationMid: string;
208
+ /**
209
+ * 动画持续时间-慢速,适用于大型元素
210
+ */
211
+ motionDurationSlow: string;
212
+ };
213
+ /** 基础token */
214
+ export type BaseToken = FontToken & ColorToken & HeightToken & MotionToken & {
215
+ /**
216
+ * 最小尺寸圆角
217
+ */
218
+ borderRadiusXS: number;
219
+ /**
220
+ * 小尺寸圆角
221
+ */
222
+ borderRadiusSM: number;
223
+ /**
224
+ * 标准尺寸圆角
225
+ */
226
+ borderRadius: number;
227
+ /**
228
+ * 滚动条滑块颜色
229
+ */
132
230
  scrollbarThumbColorBase: string;
231
+ /**
232
+ * hover时滚动条滑块颜色
233
+ */
133
234
  scrollbarThumbColorHover: string;
235
+ /**
236
+ * hover时滚动条滑轨颜色
237
+ */
134
238
  scrollbarTrackColorHover: string;
135
- tableHeaderBg: string;
239
+ /**
240
+ * 基础线宽
241
+ */
242
+ lineWidth: number;
243
+ /**
244
+ * 线条样式
245
+ */
246
+ lineType: string;
136
247
  /**
137
248
  * 多行文本显示时指定显示的最大行数
138
249
  */
139
250
  lineClamp: number;
251
+ /**
252
+ * 控件高度
253
+ */
254
+ controlHeight: number;
140
255
  };
141
256
  /** 组件token */
142
257
  export type ComponentsToken = {
143
258
  ApAction: ActionToken;
144
259
  CheckCard: CheckCardToken;
145
260
  ApForm: ApFormToken;
261
+ SearchForm: SearchFormToken;
146
262
  ApList: ApListToken;
147
263
  Scrollbar: ScrollbarToken;
148
264
  Mask: MaskToken;
@@ -154,6 +270,17 @@ export type ComponentsToken = {
154
270
  ApRadioGroup: ApRadioGroupToken;
155
271
  ApGrid: ApGridToken;
156
272
  LoadingBar: LoadingBarToken;
273
+ Highlight: HighlightToken;
274
+ ApUpload: ApUploadToken;
275
+ ApUploadSingle: ApUploadSingleToken;
276
+ ApAttachment: ApAttachmentToken;
277
+ ApLabel: ApLabelToken;
278
+ ApSelectLayout: ApSelectLayoutToken;
279
+ ApTableModal: ApTableModalToken;
280
+ ApSummary: ApSummaryToken;
281
+ ApAppendix: AppendixToken;
282
+ ApProductInfo: ApProductInfoToken;
283
+ ApView: ApViewToken;
157
284
  };
158
285
  /** 全量token */
159
286
  export type FullToken = BaseToken & {
@@ -4,7 +4,7 @@ import { ApForm as b } from "../ap-form/index.mjs";
4
4
  import { isUndefined as M, isNumber as f, cloneDeep as ee, isArray as te, omit as g } from "lodash-unified";
5
5
  import "../config-provider/index.mjs";
6
6
  import { useInjectForm as ae } from "../ap-form/context.mjs";
7
- import { isDef as w } from "../utils/index.mjs";
7
+ import "../utils/index.mjs";
8
8
  import oe from "./hooks/use-get-columns.mjs";
9
9
  import { scrollToRowIndex as ne } from "./utils.mjs";
10
10
  import { getModelValue as le } from "../ap-form/utils/get.mjs";
@@ -12,7 +12,8 @@ import { useDevWarning as se } from "../utils/warning.mjs";
12
12
  import re from "./style/index.mjs";
13
13
  import { useNamespace as ie } from "../config-provider/hooks/use-namespace.mjs";
14
14
  import { useGlobalConfig as ue } from "../config-provider/hooks/use-global-config.mjs";
15
- const Ie = /* @__PURE__ */ A({
15
+ import { isDef as w } from "../utils/is.mjs";
16
+ const Te = /* @__PURE__ */ A({
16
17
  name: "EditableTableFormItem",
17
18
  __name: "form-item",
18
19
  props: {
@@ -226,5 +227,5 @@ const Ie = /* @__PURE__ */ A({
226
227
  }
227
228
  });
228
229
  export {
229
- Ie as default
230
+ Te as default
230
231
  };
@@ -4,7 +4,7 @@ import { ApForm as m } from "../ap-form/index.mjs";
4
4
  import { isEqual as ae, isArray as c, isUndefined as ne, isNumber as h, cloneDeep as oe, omit as x } from "lodash-unified";
5
5
  import "../config-provider/index.mjs";
6
6
  import "../hooks/index.mjs";
7
- import { isDef as y } from "../utils/index.mjs";
7
+ import "../utils/index.mjs";
8
8
  import { scrollToRowIndex as le } from "./utils.mjs";
9
9
  import se from "./hooks/use-get-columns.mjs";
10
10
  import { useDevWarning as re } from "../utils/warning.mjs";
@@ -12,7 +12,8 @@ import ue from "./style/index.mjs";
12
12
  import { useNamespace as ie } from "../config-provider/hooks/use-namespace.mjs";
13
13
  import { useControllableValue as de } from "../hooks/useControllableValue.mjs";
14
14
  import { useGlobalConfig as fe } from "../config-provider/hooks/use-global-config.mjs";
15
- const Ee = /* @__PURE__ */ H({
15
+ import { isDef as y } from "../utils/is.mjs";
16
+ const Ve = /* @__PURE__ */ H({
16
17
  name: "EditableTable",
17
18
  __name: "index",
18
19
  props: {
@@ -251,5 +252,5 @@ const Ee = /* @__PURE__ */ H({
251
252
  }
252
253
  });
253
254
  export {
254
- Ee as default
255
+ Ve as default
255
256
  };
@@ -5,11 +5,11 @@ const n = (a) => {
5
5
  return {
6
6
  [t]: {
7
7
  ".ant-form-item": {
8
- marginBlockEnd: "16px"
8
+ marginBlockEnd: a.spaceXL
9
9
  },
10
10
  [`${t}__header-cell--required`]: {
11
- color: "#FF4D4F",
12
- paddingInlineEnd: "2px"
11
+ color: a.colorError,
12
+ paddingInlineEnd: a.spaceXXS
13
13
  },
14
14
  ".ant-pagination": {
15
15
  marginBlockEnd: "0 !important",
@@ -24,24 +24,24 @@ const n = (a) => {
24
24
  backgroundColor: a.editableTableHeaderBg
25
25
  },
26
26
  ".ant-table.ant-table-middle .ant-table-row .ant-table-cell:has(.is-editable)": {
27
- paddingBlockStart: "16px",
27
+ paddingBlockStart: a.spaceXL,
28
28
  paddingBlockEnd: 0
29
29
  },
30
30
  ".ant-table.ant-table-middle .ant-table-row .ant-table-cell": {
31
- padding: "12px"
31
+ padding: a.spaceLG
32
32
  },
33
33
  ".ant-table.ant-table-middle .ant-table-thead .ant-table-cell": {
34
- padding: "12px"
34
+ padding: a.spaceLG
35
35
  },
36
36
  ".ant-table.ant-table-small .ant-table-row .ant-table-cell:has(.is-editable)": {
37
- paddingBlockStart: "16px",
37
+ paddingBlockStart: a.spaceXL,
38
38
  paddingBlockEnd: 0
39
39
  },
40
40
  ".ant-table.ant-table-small .ant-table-row .ant-table-cell": {
41
- padding: "8px"
41
+ padding: a.space
42
42
  },
43
43
  ".ant-table.ant-table-small .ant-table-thead .ant-table-cell": {
44
- padding: "8px"
44
+ padding: a.space
45
45
  },
46
46
  ".ant-table-placeholder .ant-table-expanded-row-fixed": {
47
47
  "&::after": {
@@ -62,7 +62,7 @@ const n = (a) => {
62
62
  }
63
63
  }
64
64
  };
65
- }, o = l(
65
+ }, r = l(
66
66
  "EditableTable",
67
67
  (a) => [n(a)],
68
68
  {
@@ -70,6 +70,6 @@ const n = (a) => {
70
70
  }
71
71
  );
72
72
  export {
73
- o as default,
73
+ r as default,
74
74
  n as genEditableTableStyle
75
75
  };
@@ -16,7 +16,7 @@ export declare function getEditableComponent(valueType: EditableColumnType['valu
16
16
  * @param column
17
17
  * @returns
18
18
  */
19
- export declare function getColumnIsRequired(column: EditableColumnType<any, 'text', 'text'>): boolean;
19
+ export declare function getColumnIsRequired(column: EditableColumnType<any, 'text', 'text'>): NonNullable<boolean | undefined>;
20
20
  /**
21
21
  * 获取ellipsis模式下最终需要渲染的字符串
22
22
  * @param column
@@ -1,15 +1,16 @@
1
1
  import { isVNode as C, createVNode as i, mergeProps as R, createTextVNode as h, Fragment as I } from "vue";
2
2
  import { isFunction as c, isArray as T, isBoolean as S, omit as F, isString as x } from "lodash-unified";
3
3
  import { apTableFormItemMap as q, noRenderAsFormItemValueList as w, apTableRenderItemMap as P } from "../ap-table/constants.mjs";
4
- import { isDef as V } from "../utils/index.mjs";
5
- import { getValueStr as N } from "../ap-field/number/helper.mjs";
6
- import j from "scroll-into-view-if-needed";
7
- import { Typography as v, Tooltip as A } from "@aplus-frontend/antdv";
4
+ import "../utils/index.mjs";
5
+ import { getValueStr as V } from "../ap-field/number/helper.mjs";
6
+ import N from "scroll-into-view-if-needed";
7
+ import { Typography as j, Tooltip as v } from "@aplus-frontend/antdv";
8
8
  import "../ap-form/index.mjs";
9
- import { objectToString as M, getTableRenderType as O } from "../ap-table/utils.mjs";
10
- import { QuestionCircleOutlined as W } from "@ant-design/icons-vue";
11
- import y from "../ap-form/item/index.vue.mjs";
12
- function m(e) {
9
+ import { objectToString as A, getTableRenderType as M } from "../ap-table/utils.mjs";
10
+ import { QuestionCircleOutlined as O } from "@ant-design/icons-vue";
11
+ import { isDef as W } from "../utils/is.mjs";
12
+ import m from "../ap-form/item/index.vue.mjs";
13
+ function y(e) {
13
14
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !C(e);
14
15
  }
15
16
  function _(e) {
@@ -21,18 +22,18 @@ function k(e) {
21
22
  if (!e.fieldProps)
22
23
  return !1;
23
24
  const t = c(e.fieldProps) ? e.fieldProps({}) : e.fieldProps;
24
- return V(t.required) ? t.required : (T(t.rules) ? t.rules : t.rules ? [t.rules] : []).some((o) => o.required);
25
+ return W(t.required) ? t.required : (T(t.rules) ? t.rules : t.rules ? [t.rules] : []).some((o) => o.required);
25
26
  }
26
27
  function D(e, t) {
27
28
  if (e.valueType === "text" || e.valueType === "textArea")
28
29
  return t || "--";
29
30
  if (e.valueType === "number") {
30
31
  const r = e.fieldProps ? c(e.fieldProps) ? e.fieldProps({}) : e.fieldProps : {};
31
- return N(t, r) || "--";
32
+ return V(t, r) || "--";
32
33
  }
33
- return M(t);
34
+ return A(t);
34
35
  }
35
- function $(e, t) {
36
+ function ee(e, t) {
36
37
  const r = [e];
37
38
  if (t) {
38
39
  const o = T(t) ? t : [t];
@@ -40,9 +41,9 @@ function $(e, t) {
40
41
  }
41
42
  return r.join(" ");
42
43
  }
43
- function ee(e, t = document.body, r = {}) {
44
+ function te(e, t = document.body, r = {}) {
44
45
  const o = t.querySelectorAll("tr.ant-table-row")[e];
45
- o && j(o, {
46
+ o && N(o, {
46
47
  scrollMode: "if-needed",
47
48
  block: "nearest",
48
49
  behavior: "smooth",
@@ -50,7 +51,7 @@ function ee(e, t = document.body, r = {}) {
50
51
  });
51
52
  }
52
53
  function E(e, t, r) {
53
- return w.includes(e.valueType) ? r : e.copyable || e.ellipsis ? i(v.Paragraph, {
54
+ return w.includes(e.valueType) ? r : e.copyable || e.ellipsis ? i(j.Paragraph, {
54
55
  copyable: e.copyable ? {
55
56
  text: t,
56
57
  tooltip: !1
@@ -64,11 +65,11 @@ function E(e, t, r) {
64
65
  content: e.ellipsis ? D(e, t) : r
65
66
  }, null) : r;
66
67
  }
67
- function te(e, t, r, o, p, n) {
68
+ function re(e, t, r, o, p, n) {
68
69
  if (t) {
69
70
  if (e.customRenderFormItem) {
70
71
  const f = e.customRenderFormItem(e, r.field, t, p);
71
- return i(y, F(r, ["field"]), m(f) ? f : {
72
+ return i(m, F(r, ["field"]), y(f) ? f : {
72
73
  default: () => [f]
73
74
  });
74
75
  }
@@ -76,17 +77,17 @@ function te(e, t, r, o, p, n) {
76
77
  if (a)
77
78
  return i(a, r, null);
78
79
  const l = n?.[e.valueType]?.renderFormItem?.(r.field);
79
- return l ? i(y, r, m(l) ? l : {
80
+ return l ? i(m, r, y(l) ? l : {
80
81
  default: () => [l]
81
82
  }) : null;
82
83
  }
83
84
  let s;
84
- const u = O(e), d = P[u];
85
+ const u = M(e), d = P[u];
85
86
  return d ? s = i(d, R(r.field, {
86
87
  mode: "read"
87
88
  }), null) : s = n?.[u]?.render?.(o, p, r.field), s ? E(e, o, s) : null;
88
89
  }
89
- function re(e, t, r, o, p) {
90
+ function oe(e, t, r, o, p) {
90
91
  const n = o?.({
91
92
  title: e.title,
92
93
  column: e
@@ -105,11 +106,11 @@ function re(e, t, r, o, p) {
105
106
  alignItems: "center",
106
107
  maxWidth: "100%"
107
108
  }
108
- }, [l, i(A, {
109
+ }, [l, i(v, {
109
110
  title: f,
110
111
  placement: "bottom"
111
112
  }, {
112
- default: () => [i(W, {
113
+ default: () => [i(O, {
113
114
  style: {
114
115
  padding: "4px",
115
116
  color: p,
@@ -121,9 +122,9 @@ function re(e, t, r, o, p) {
121
122
  export {
122
123
  k as getColumnIsRequired,
123
124
  _ as getEditableComponent,
124
- re as getEditableTableTitle,
125
- te as getFinalNode,
125
+ oe as getEditableTableTitle,
126
+ re as getFinalNode,
126
127
  D as getRawDisplayValue,
127
- $ as mergeClass,
128
- ee as scrollToRowIndex
128
+ ee as mergeClass,
129
+ te as scrollToRowIndex
129
130
  };
@@ -0,0 +1,3 @@
1
+ import { default as Highlight } from './index.vue';
2
+ export * from './interface';
3
+ export { Highlight };
@@ -0,0 +1,2 @@
1
+ import "./index.vue2.mjs";
2
+ import "./interface.mjs";
@@ -0,0 +1,31 @@
1
+ import { HighlightProps } from './interface';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ declare function __VLS_template(): {
4
+ attrs: Partial<{}>;
5
+ slots: Readonly<Partial<{
6
+ default: (options: {
7
+ text: string;
8
+ }) => any;
9
+ keywords: (options: {
10
+ text: string;
11
+ }) => any;
12
+ }>> & Partial<{
13
+ default: (options: {
14
+ text: string;
15
+ }) => any;
16
+ keywords: (options: {
17
+ text: string;
18
+ }) => any;
19
+ }>;
20
+ refs: {};
21
+ rootEl: HTMLDivElement;
22
+ };
23
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
24
+ declare const __VLS_component: DefineComponent<HighlightProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<HighlightProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
25
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
26
+ export default _default;
27
+ type __VLS_WithTemplateSlots<T, S> = T & {
28
+ new (): {
29
+ $slots: S;
30
+ };
31
+ };
@@ -0,0 +1,49 @@
1
+ import { defineComponent as v, computed as c, createElementBlock as s, openBlock as n, normalizeClass as p, unref as i, Fragment as u, renderList as C, renderSlot as d, createTextVNode as m, toDisplayString as y } from "vue";
2
+ import "../config-provider/index.mjs";
3
+ import S from "./style/index.mjs";
4
+ import { useNamespace as $ } from "../config-provider/hooks/use-namespace.mjs";
5
+ const B = { key: 1 }, N = /* @__PURE__ */ v({
6
+ name: "Highlight",
7
+ __name: "index",
8
+ props: {
9
+ content: {},
10
+ keywords: {},
11
+ ignoreCase: { type: Boolean }
12
+ },
13
+ setup(g) {
14
+ const o = g, { b: h, e: k } = $("highlight"), f = S("highlight"), l = c(() => {
15
+ const e = o.keywords;
16
+ if (!e)
17
+ return null;
18
+ let t = Array.isArray(e) ? e : [e];
19
+ return t = t.sort((r, a) => a.length - r.length), new RegExp(
20
+ `(${t.join("|")})`,
21
+ `${o.ignoreCase ? "i" : ""}g`
22
+ );
23
+ }), w = c(() => {
24
+ const e = o.content;
25
+ return !l.value || !e ? [{ keywords: !1, text: e }] : e.split(l.value).map((t) => ({ keywords: l.value.test(t), text: t }));
26
+ });
27
+ return (e, t) => (n(), s("div", {
28
+ class: p([i(h)(), i(f)])
29
+ }, [
30
+ (n(!0), s(u, null, C(w.value, ({ text: r, keywords: a }, _) => (n(), s(u, { key: _ }, [
31
+ a ? (n(), s("span", {
32
+ key: 0,
33
+ class: p(i(k)("keywords"))
34
+ }, [
35
+ d(e.$slots, "keywords", { text: r }, () => [
36
+ m(y(r), 1)
37
+ ])
38
+ ], 2)) : (n(), s("span", B, [
39
+ d(e.$slots, "default", { text: r }, () => [
40
+ m(y(r), 1)
41
+ ])
42
+ ]))
43
+ ], 64))), 128))
44
+ ], 2));
45
+ }
46
+ });
47
+ export {
48
+ N as default
49
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./index.vue.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,14 @@
1
+ export type HighlightProps = {
2
+ /**
3
+ * 当前渲染的段落内容
4
+ */
5
+ content: string;
6
+ /**
7
+ * 需要高亮的关键字
8
+ */
9
+ keywords?: string | string[];
10
+ /**
11
+ * 是否忽略大小写
12
+ */
13
+ ignoreCase?: boolean;
14
+ };