@aplus-frontend/ui 0.1.31 → 0.1.33

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 (179) hide show
  1. package/es/index.mjs +77 -72
  2. package/es/src/ap-button/ap-action-button.vue.d.ts +43 -0
  3. package/es/src/ap-button/ap-action-button.vue.mjs +43 -0
  4. package/es/src/ap-button/ap-action-button.vue2.mjs +4 -0
  5. package/es/src/ap-button/ap-button.vue.mjs +52 -50
  6. package/es/src/ap-button/index.d.ts +2 -1
  7. package/es/src/ap-button/index.mjs +1 -0
  8. package/es/src/ap-button/interface.d.ts +1 -0
  9. package/es/src/ap-descriptions/ap-descriptions.vue.mjs +43 -45
  10. package/es/src/ap-descriptions/formatter/index.d.ts +2 -2
  11. package/es/src/ap-descriptions/helper.d.ts +19 -1
  12. package/es/src/ap-descriptions/helper.mjs +22 -12
  13. package/es/src/ap-descriptions/style/ap-descriptions.css +1 -5
  14. package/es/src/ap-download/ap-download.vue.mjs +51 -40
  15. package/es/src/ap-download/utils/getFileInfo.d.ts +4 -1
  16. package/es/src/ap-download/utils/getFileInfo.mjs +51 -26
  17. package/es/src/ap-form/ap-form-item.vue.d.ts +1 -1
  18. package/es/src/ap-form/ap-form-item.vue.mjs +68 -62
  19. package/es/src/ap-form/ap-form-list.vue.mjs +23 -21
  20. package/es/src/ap-form/ap-form.vue.d.ts +3 -1
  21. package/es/src/ap-form/ap-form.vue2.mjs +130 -80
  22. package/es/src/ap-form/interface.d.ts +51 -1
  23. package/es/src/ap-form/items/checkbox/index.vue.mjs +6 -5
  24. package/es/src/ap-form/items/date/index.vue.mjs +10 -9
  25. package/es/src/ap-form/items/date-range/index.vue.mjs +8 -7
  26. package/es/src/ap-form/items/number/index.vue.mjs +12 -11
  27. package/es/src/ap-form/items/radio/index.vue.mjs +5 -4
  28. package/es/src/ap-form/items/select/index.vue.mjs +1 -0
  29. package/es/src/ap-form/items/switch/index.vue.mjs +10 -9
  30. package/es/src/ap-form/items/text/index.vue2.mjs +1 -0
  31. package/es/src/ap-form/items/text/password.vue.mjs +1 -0
  32. package/es/src/ap-form/items/text-area/index.vue.mjs +7 -6
  33. package/es/src/ap-form/modal-form/index.vue.d.ts +7 -3
  34. package/es/src/ap-form/search-form/index.vue.d.ts +7 -3
  35. package/es/src/ap-form/utils/get.d.ts +1 -0
  36. package/es/src/ap-form/utils/get.mjs +12 -0
  37. package/es/src/ap-form/utils/set.d.ts +6 -0
  38. package/es/src/ap-form/utils/set.mjs +41 -0
  39. package/es/src/ap-list/index.vue.d.ts +3 -0
  40. package/es/src/ap-list/index.vue.mjs +51 -49
  41. package/es/src/ap-table/ap-table.vue.d.ts +4 -1
  42. package/es/src/ap-table/ap-table.vue.mjs +65 -59
  43. package/es/src/ap-table/constants.d.ts +121 -1
  44. package/es/src/ap-table/interface.d.ts +6 -1
  45. package/es/src/ap-table/utils.d.ts +121 -1
  46. package/es/src/business/ap-attachment/ApAttachment.mjs +76 -68
  47. package/es/src/business/ap-card/ApCard.vue.d.ts +27 -0
  48. package/es/src/business/ap-card/ApCard.vue.mjs +4 -0
  49. package/es/src/business/ap-card/ApCard.vue2.mjs +65 -0
  50. package/es/src/business/ap-card/index.css +10 -0
  51. package/es/src/business/ap-card/interface.d.ts +9 -0
  52. package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +30 -100
  53. package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +104 -64
  54. package/es/src/business/ap-expand-alert/interface.d.ts +24 -6
  55. package/es/src/business/ap-expand-alert/style.css +9 -0
  56. package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +59 -70
  57. package/es/src/business/ap-export-group/handleExportDownload.d.ts +1 -0
  58. package/es/src/business/ap-export-group/handleExportDownload.mjs +14 -0
  59. package/es/src/business/{title → ap-title}/style.css +4 -4
  60. package/es/src/business/hooks/usePageListApTable.d.ts +2 -0
  61. package/es/src/business/index.d.ts +105 -188
  62. package/es/src/business/index.mjs +28 -23
  63. package/es/src/check-card/group.vue.d.ts +7 -1
  64. package/es/src/check-card/group.vue.mjs +26 -22
  65. package/es/src/check-card/index.vue.d.ts +5 -2
  66. package/es/src/check-card/index.vue2.mjs +69 -60
  67. package/es/src/check-card/interface.d.ts +12 -0
  68. package/es/src/check-card/style/index.css +8 -5
  69. package/es/src/config-provider/config-provider-props.d.ts +5 -1
  70. package/es/src/config-provider/config-provider-props.mjs +6 -2
  71. package/es/src/config-provider/config-provider.d.ts +10 -1
  72. package/es/src/config-provider/config-provider.mjs +20 -19
  73. package/es/src/config-provider/constants.d.ts +9 -0
  74. package/es/src/config-provider/hooks/use-global-config.d.ts +5 -1
  75. package/es/src/config-provider/index.d.ts +20 -1
  76. package/es/src/editable-table/interface.d.ts +3 -2
  77. package/es/src/index.mjs +215 -210
  78. package/es/src/locale/lang/en.mjs +4 -0
  79. package/es/src/locale/lang/zh-cn.mjs +4 -0
  80. package/es/src/theme/ap-card/ap-card.css +10 -0
  81. package/es/src/theme/ap-descriptions/ap-descriptions.css +1 -5
  82. package/es/src/theme/ap-expand-alert/ap-expand-alert.css +9 -0
  83. package/es/src/theme/ap-title/ap-title.css +4 -4
  84. package/es/src/theme/check-card/index.css +8 -5
  85. package/es/src/theme/css-var/index.mjs +33 -15
  86. package/lib/index.js +1 -1
  87. package/lib/src/ap-button/ap-action-button.vue.d.ts +43 -0
  88. package/lib/src/ap-button/ap-action-button.vue.js +1 -0
  89. package/lib/src/ap-button/ap-action-button.vue2.js +1 -0
  90. package/lib/src/ap-button/ap-button.vue.js +1 -1
  91. package/lib/src/ap-button/index.d.ts +2 -1
  92. package/lib/src/ap-button/index.js +1 -1
  93. package/lib/src/ap-button/interface.d.ts +1 -0
  94. package/lib/src/ap-descriptions/ap-descriptions.vue.js +1 -1
  95. package/lib/src/ap-descriptions/formatter/index.d.ts +2 -2
  96. package/lib/src/ap-descriptions/helper.d.ts +19 -1
  97. package/lib/src/ap-descriptions/helper.js +1 -1
  98. package/lib/src/ap-descriptions/style/ap-descriptions.css +1 -5
  99. package/lib/src/ap-download/ap-download.vue.js +1 -1
  100. package/lib/src/ap-download/utils/getFileInfo.d.ts +4 -1
  101. package/lib/src/ap-download/utils/getFileInfo.js +1 -1
  102. package/lib/src/ap-form/ap-form-item.vue.d.ts +1 -1
  103. package/lib/src/ap-form/ap-form-item.vue.js +1 -1
  104. package/lib/src/ap-form/ap-form-list.vue.js +1 -1
  105. package/lib/src/ap-form/ap-form.vue.d.ts +3 -1
  106. package/lib/src/ap-form/ap-form.vue2.js +1 -1
  107. package/lib/src/ap-form/interface.d.ts +51 -1
  108. package/lib/src/ap-form/items/checkbox/index.vue.js +1 -1
  109. package/lib/src/ap-form/items/date/index.vue.js +1 -1
  110. package/lib/src/ap-form/items/date-range/index.vue.js +1 -1
  111. package/lib/src/ap-form/items/number/index.vue.js +1 -1
  112. package/lib/src/ap-form/items/radio/index.vue.js +1 -1
  113. package/lib/src/ap-form/items/select/index.vue.js +1 -1
  114. package/lib/src/ap-form/items/switch/index.vue.js +1 -1
  115. package/lib/src/ap-form/items/text/index.vue2.js +1 -1
  116. package/lib/src/ap-form/items/text/password.vue.js +1 -1
  117. package/lib/src/ap-form/items/text-area/index.vue.js +1 -1
  118. package/lib/src/ap-form/modal-form/index.vue.d.ts +7 -3
  119. package/lib/src/ap-form/search-form/index.vue.d.ts +7 -3
  120. package/lib/src/ap-form/utils/get.d.ts +1 -0
  121. package/lib/src/ap-form/utils/get.js +1 -0
  122. package/lib/src/ap-form/utils/set.d.ts +6 -0
  123. package/lib/src/ap-form/utils/set.js +1 -0
  124. package/lib/src/ap-list/index.vue.d.ts +3 -0
  125. package/lib/src/ap-list/index.vue.js +1 -1
  126. package/lib/src/ap-table/ap-table.vue.d.ts +4 -1
  127. package/lib/src/ap-table/ap-table.vue.js +1 -1
  128. package/lib/src/ap-table/constants.d.ts +121 -1
  129. package/lib/src/ap-table/interface.d.ts +6 -1
  130. package/lib/src/ap-table/utils.d.ts +121 -1
  131. package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
  132. package/lib/src/business/ap-card/ApCard.vue.d.ts +27 -0
  133. package/lib/src/business/ap-card/ApCard.vue.js +1 -0
  134. package/lib/src/business/ap-card/ApCard.vue2.js +1 -0
  135. package/lib/src/business/ap-card/index.css +10 -0
  136. package/lib/src/business/ap-card/interface.d.ts +9 -0
  137. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +30 -100
  138. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
  139. package/lib/src/business/ap-expand-alert/interface.d.ts +24 -6
  140. package/lib/src/business/ap-expand-alert/style.css +9 -0
  141. package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
  142. package/lib/src/business/ap-export-group/handleExportDownload.d.ts +1 -0
  143. package/lib/src/business/ap-export-group/handleExportDownload.js +1 -0
  144. package/lib/src/business/{title → ap-title}/style.css +4 -4
  145. package/lib/src/business/hooks/usePageListApTable.d.ts +2 -0
  146. package/lib/src/business/index.d.ts +105 -188
  147. package/lib/src/business/index.js +1 -1
  148. package/lib/src/check-card/group.vue.d.ts +7 -1
  149. package/lib/src/check-card/group.vue.js +1 -1
  150. package/lib/src/check-card/index.vue.d.ts +5 -2
  151. package/lib/src/check-card/index.vue2.js +1 -1
  152. package/lib/src/check-card/interface.d.ts +12 -0
  153. package/lib/src/check-card/style/index.css +8 -5
  154. package/lib/src/config-provider/config-provider-props.d.ts +5 -1
  155. package/lib/src/config-provider/config-provider-props.js +1 -1
  156. package/lib/src/config-provider/config-provider.d.ts +10 -1
  157. package/lib/src/config-provider/config-provider.js +1 -1
  158. package/lib/src/config-provider/constants.d.ts +9 -0
  159. package/lib/src/config-provider/hooks/use-global-config.d.ts +5 -1
  160. package/lib/src/config-provider/index.d.ts +20 -1
  161. package/lib/src/editable-table/interface.d.ts +3 -2
  162. package/lib/src/index.js +1 -1
  163. package/lib/src/locale/lang/en.js +1 -1
  164. package/lib/src/locale/lang/zh-cn.js +1 -1
  165. package/lib/src/theme/ap-card/ap-card.css +10 -0
  166. package/lib/src/theme/ap-descriptions/ap-descriptions.css +1 -5
  167. package/lib/src/theme/ap-expand-alert/ap-expand-alert.css +9 -0
  168. package/lib/src/theme/ap-title/ap-title.css +4 -4
  169. package/lib/src/theme/check-card/index.css +8 -5
  170. package/lib/src/theme/css-var/index.js +1 -1
  171. package/package.json +1 -1
  172. /package/es/src/business/{title → ap-title}/ApTitle.vue.d.ts +0 -0
  173. /package/es/src/business/{title → ap-title}/ApTitle.vue.mjs +0 -0
  174. /package/es/src/business/{title → ap-title}/ApTitle.vue2.mjs +0 -0
  175. /package/es/src/business/{title → ap-title}/interface.d.ts +0 -0
  176. /package/lib/src/business/{title → ap-title}/ApTitle.vue.d.ts +0 -0
  177. /package/lib/src/business/{title → ap-title}/ApTitle.vue.js +0 -0
  178. /package/lib/src/business/{title → ap-title}/ApTitle.vue2.js +0 -0
  179. /package/lib/src/business/{title → ap-title}/interface.d.ts +0 -0
package/es/index.mjs CHANGED
@@ -2,11 +2,11 @@ import * as o from "./src/index.mjs";
2
2
  import "./src/hooks/index.mjs";
3
3
  import { Icon as l, SvgIcon as s } from "./src/icon/index.mjs";
4
4
  import { configProviderProps as x } from "./src/config-provider/config-provider-props.mjs";
5
- import { configProviderContextKey as i, tableDefaultConfig as n } from "./src/config-provider/constants.mjs";
5
+ import { configProviderContextKey as n, tableDefaultConfig as i } from "./src/config-provider/constants.mjs";
6
6
  import { keysOf as c, provideGlobalConfig as T, useGlobalConfig as F } from "./src/config-provider/hooks/use-global-config.mjs";
7
7
  import { buildLocaleContext as b, buildTranslator as S, localeContextKey as I, translate as g, useLocale as D } from "./src/config-provider/hooks/use-locale.mjs";
8
- import { defaultNamespace as h, namespaceContextKey as M, useGetDerivedNamespace as R, useNamespace as B } from "./src/config-provider/hooks/use-namespace.mjs";
9
- import { ConfigProvider as v, globalConfigCached as L } from "./src/config-provider/config-provider.mjs";
8
+ import { defaultNamespace as P, namespaceContextKey as M, useGetDerivedNamespace as R, useNamespace as B } from "./src/config-provider/hooks/use-namespace.mjs";
9
+ import { ConfigProvider as v, globalConfigCached as w } from "./src/config-provider/config-provider.mjs";
10
10
  import { APConfigProvider as k } from "./src/config-provider/index.mjs";
11
11
  import { Scrollbar as N } from "./src/scroll-bar/index.mjs";
12
12
  import { CollapseContainer as K, ScrollContainer as X } from "./src/container/index.mjs";
@@ -16,16 +16,16 @@ import { default as U } from "./src/locale/lang/en.mjs";
16
16
  import { BasicArrow as $, BasicHelp as j, BasicTitle as q } from "./src/basic/index.mjs";
17
17
  import { default as Q } from "./src/transition/collapse-transition.vue.mjs";
18
18
  import { ExpandTransition as _, ExpandXTransition as ee, FadeTransition as oe, ScaleRotateTransition as re, ScaleTransition as te, ScrollXReverseTransition as ae, ScrollXTransition as pe, ScrollYReverseTransition as fe, ScrollYTransition as me, SlideXReverseTransition as le, SlideXTransition as se, SlideYReverseTransition as de, SlideYTransition as xe } from "./src/transition/index.mjs";
19
- import { useDescription as ie } from "./src/description/use-description.mjs";
19
+ import { useDescription as ne } from "./src/description/use-description.mjs";
20
20
  import { Description as Ae } from "./src/description/index.mjs";
21
21
  import { useComponentRegister as Te } from "./src/pro-form/hooks/use-component-register.mjs";
22
22
  import { useForm as Ce } from "./src/pro-form/hooks/use-form.mjs";
23
23
  import { isComponentFormSchema as Se, isSlotFormSchema as Ie } from "./src/pro-form/types/form.mjs";
24
24
  import { Field as De } from "./src/pro-form/index.mjs";
25
- import { default as he } from "./src/pro-form/components/api-cascader.vue.mjs";
25
+ import { default as Pe } from "./src/pro-form/components/api-cascader.vue.mjs";
26
26
  import { default as Re } from "./src/pro-form/components/api-radio-group.vue.mjs";
27
27
  import { default as Ge } from "./src/pro-form/components/api-select.vue.mjs";
28
- import { default as Le } from "./src/pro-form/components/api-transfer.vue.mjs";
28
+ import { default as we } from "./src/pro-form/components/api-transfer.vue.mjs";
29
29
  import { default as ke } from "./src/pro-form/components/api-tree.vue.mjs";
30
30
  import { default as Ne } from "./src/pro-form/components/radio-button-group.vue.mjs";
31
31
  import { default as Ke } from "./src/pro-form/pro-form.vue.mjs";
@@ -41,16 +41,16 @@ import { useModal as ro, useModalInner as to } from "./src/modal/hooks/use-modal
41
41
  import { BaseModal as po } from "./src/modal/index.mjs";
42
42
  import { CropperAvatar as mo, CropperImage as lo } from "./src/cropper/index.mjs";
43
43
  import { CountdownButton as xo, CountdownInput as uo } from "./src/count-down/index.mjs";
44
- import { createPrompt as no } from "./src/prompt/index.mjs";
44
+ import { createPrompt as io } from "./src/prompt/index.mjs";
45
45
  import { Dropdown as co } from "./src/dropdown/index.mjs";
46
46
  import { default as Fo } from "./src/pro-table/pro-table.vue.mjs";
47
47
  import { default as bo } from "./src/pro-table/components/table-action.vue.mjs";
48
48
  import { default as Io } from "./src/pro-table/components/edit-table-header-icon.vue.mjs";
49
49
  import { default as Do } from "./src/pro-table/components/table-image.vue.mjs";
50
- import { useTable as ho } from "./src/pro-table/hooks/use-table.mjs";
50
+ import { useTable as Po } from "./src/pro-table/hooks/use-table.mjs";
51
51
  import { ApFormItemText as Ro } from "./src/ap-form/items/text/index.mjs";
52
52
  import { default as Go } from "./src/ap-form/items/text-area/index.vue.mjs";
53
- import { default as Lo } from "./src/ap-form/items/number/index.vue.mjs";
53
+ import { default as wo } from "./src/ap-form/items/number/index.vue.mjs";
54
54
  import { default as ko } from "./src/ap-form/items/date/index.vue.mjs";
55
55
  import { default as No } from "./src/ap-form/items/date-range/index.vue.mjs";
56
56
  import { default as Ko } from "./src/ap-form/items/radio/index.vue.mjs";
@@ -68,16 +68,16 @@ import { default as fr } from "./src/ap-form/dependency/index.vue.mjs";
68
68
  import { ApField as lr } from "./src/ap-field/index.mjs";
69
69
  import { ApFieldText as dr } from "./src/ap-field/text/index.mjs";
70
70
  import { default as ur } from "./src/ap-field/checkbox/index.vue.mjs";
71
- import { default as nr } from "./src/ap-field/date/index.vue.mjs";
71
+ import { default as ir } from "./src/ap-field/date/index.vue.mjs";
72
72
  import { default as cr } from "./src/ap-field/number/index.vue.mjs";
73
73
  import { default as Fr } from "./src/ap-field/radio/index.vue.mjs";
74
74
  import { default as br } from "./src/ap-field/switch/index.vue.mjs";
75
75
  import { default as Ir } from "./src/ap-field/text-area/index.vue.mjs";
76
76
  import { default as Dr } from "./src/ap-field/date-range/index.vue.mjs";
77
- import { default as hr } from "./src/ap-field/select/index.vue.mjs";
77
+ import { default as Pr } from "./src/ap-field/select/index.vue.mjs";
78
78
  import { default as Rr } from "./src/ap-field/text/password.vue.mjs";
79
79
  import { default as Gr } from "./src/ap-field/slider/index.vue.mjs";
80
- import { default as Lr } from "./src/ap-field/segmented/index.vue.mjs";
80
+ import { default as wr } from "./src/ap-field/segmented/index.vue.mjs";
81
81
  import { default as kr } from "./src/ap-field/rate/index.vue.mjs";
82
82
  import { adminToken as Nr, aplusToken as Er } from "./src/design-token/index.mjs";
83
83
  import { ApActionItem as Xr } from "./src/ap-action/index.mjs";
@@ -94,30 +94,32 @@ import { createWorkOrderModal as ft } from "./src/work-order-modal/createWorkOrd
94
94
  import { default as lt } from "./src/work-order-modal/work-order-modal.vue.mjs";
95
95
  import { default as dt } from "./src/ap-tag/ap-tag.vue.mjs";
96
96
  import { default as ut } from "./src/ap-tag/ap-tag-group.vue.mjs";
97
- import { default as nt } from "./src/ap-layout/ApInfoLayout.vue.mjs";
97
+ import { default as it } from "./src/ap-layout/ApInfoLayout.vue.mjs";
98
98
  import { NeedNameKeyDefault as ct } from "./src/ap-upload/apUploadTypes.mjs";
99
99
  import { default as Ft } from "./src/ap-upload/apUpload.vue.mjs";
100
100
  import { ApDownLoadNeedNameKeyDefault as bt } from "./src/ap-download/interface.mjs";
101
101
  import { default as It } from "./src/ap-download/ap-download.vue.mjs";
102
102
  import { CheckCard as Dt } from "./src/check-card/index.mjs";
103
- import { default as ht } from "./src/check-card/group.vue.mjs";
103
+ import { default as Pt } from "./src/check-card/group.vue.mjs";
104
104
  import { ApModal as Rt } from "./src/ap-modal/index.mjs";
105
105
  import { default as Gt } from "./src/ap-list/index.vue.mjs";
106
- import { default as Lt } from "./src/ap-button/ap-button.vue.mjs";
107
- import { usePageListApTable as kt } from "./src/business/hooks/usePageListApTable.mjs";
108
- import { useTableRefresh as Nt } from "./src/business/hooks/useTableRefresh.mjs";
109
- import { default as Kt } from "./src/business/ap-table-modal/index.mjs";
110
- import { useTableModal as Yt } from "./src/business/ap-table-modal/hooks/use-table-modal.mjs";
111
- import { useTableSelectModal as Ot } from "./src/business/ap-table-modal/hooks/use-table-select-modal.mjs";
112
- import { ApAttachment as zt, ApBatchAction as Ut, ApBatchActionGroup as Vt, ApExpandAlert as $t, ApExportGroup as jt, ApImage as qt, ApInputRadio as Jt, ApLabel as Qt, ApLabelGroup as Zt, ApLadder as _t, ApSelectLayout as ea, ApStatus as oa, ApStatusGroup as ra, ApTitle as ta } from "./src/business/index.mjs";
113
- import { ApTransformDataHelper as pa } from "./src/utils/ap-trans-data/index.mjs";
114
- import { useTablePaging as ma } from "./src/ap-table/hooks/use-table-paging.mjs";
115
- import { default as sa } from "./src/ap-table/ap-table.vue.mjs";
116
- import { default as xa } from "./src/editable-table/index.vue.mjs";
117
- import { default as ia } from "./src/editable-table/form-item.vue.mjs";
118
- import { default as Aa } from "./src/ap-descriptions/ap-descriptions.vue.mjs";
119
- import { useMessage as Ta } from "./src/hooks/useMessage.mjs";
120
- import { useControllableValue as Ca } from "./src/hooks/useControllableValue.mjs";
106
+ import { default as wt } from "./src/ap-button/ap-button.vue.mjs";
107
+ import { default as kt } from "./src/ap-button/ap-action-button.vue.mjs";
108
+ import { usePageListApTable as Nt } from "./src/business/hooks/usePageListApTable.mjs";
109
+ import { useTableRefresh as Kt } from "./src/business/hooks/useTableRefresh.mjs";
110
+ import { handleExportDownload as Yt } from "./src/business/ap-export-group/handleExportDownload.mjs";
111
+ import { default as Ot } from "./src/business/ap-table-modal/index.mjs";
112
+ import { useTableModal as zt } from "./src/business/ap-table-modal/hooks/use-table-modal.mjs";
113
+ import { useTableSelectModal as Vt } from "./src/business/ap-table-modal/hooks/use-table-select-modal.mjs";
114
+ import { ApAttachment as jt, ApBatchAction as qt, ApBatchActionGroup as Jt, ApCard as Qt, ApExpandAlert as Zt, ApExportGroup as _t, ApImage as ea, ApInputRadio as oa, ApLabel as ra, ApLabelGroup as ta, ApLadder as aa, ApSelectLayout as pa, ApStatus as fa, ApStatusGroup as ma, ApTitle as la } from "./src/business/index.mjs";
115
+ import { ApTransformDataHelper as da } from "./src/utils/ap-trans-data/index.mjs";
116
+ import { useTablePaging as ua } from "./src/ap-table/hooks/use-table-paging.mjs";
117
+ import { default as ia } from "./src/ap-table/ap-table.vue.mjs";
118
+ import { default as ca } from "./src/editable-table/index.vue.mjs";
119
+ import { default as Fa } from "./src/editable-table/form-item.vue.mjs";
120
+ import { default as ba } from "./src/ap-descriptions/ap-descriptions.vue.mjs";
121
+ import { useMessage as Ia } from "./src/hooks/useMessage.mjs";
122
+ import { useControllableValue as Da } from "./src/hooks/useControllableValue.mjs";
121
123
  const p = {
122
124
  install: (r) => {
123
125
  for (const t in o) {
@@ -128,32 +130,34 @@ const p = {
128
130
  };
129
131
  export {
130
132
  k as APConfigProvider,
133
+ kt as ApActionButton,
131
134
  $r as ApActionGroup,
132
135
  Xr as ApActionItem,
133
136
  Ur as ApActionItemDropdown,
134
137
  Hr as ApActionItemModal,
135
138
  Wr as ApActionItemPopconfirm,
136
- zt as ApAttachment,
137
- Ut as ApBatchAction,
138
- Vt as ApBatchActionGroup,
139
- Lt as ApButton,
139
+ jt as ApAttachment,
140
+ qt as ApBatchAction,
141
+ Jt as ApBatchActionGroup,
142
+ wt as ApButton,
143
+ Qt as ApCard,
140
144
  _r as ApCustomColumn,
141
145
  ot as ApCustomSelect,
142
- Aa as ApDescriptions,
146
+ ba as ApDescriptions,
143
147
  bt as ApDownLoadNeedNameKeyDefault,
144
148
  It as ApDownload,
145
- $t as ApExpandAlert,
146
- jt as ApExportGroup,
149
+ Zt as ApExpandAlert,
150
+ _t as ApExportGroup,
147
151
  lr as ApField,
148
152
  ur as ApFieldCheckbox,
149
- nr as ApFieldDate,
153
+ ir as ApFieldDate,
150
154
  Dr as ApFieldDateRange,
151
155
  cr as ApFieldNumber,
152
156
  Rr as ApFieldPassword,
153
157
  Fr as ApFieldRadio,
154
158
  kr as ApFieldRate,
155
- Lr as ApFieldSegmented,
156
- hr as ApFieldSelect,
159
+ wr as ApFieldSegmented,
160
+ Pr as ApFieldSelect,
157
161
  Gr as ApFieldSlider,
158
162
  br as ApFieldSwitch,
159
163
  dr as ApFieldText,
@@ -165,7 +169,7 @@ export {
165
169
  ko as ApFormItemDate,
166
170
  No as ApFormItemDateRange,
167
171
  Zo as ApFormItemGroup,
168
- Lo as ApFormItemNumber,
172
+ wo as ApFormItemNumber,
169
173
  Ko as ApFormItemRadio,
170
174
  Yo as ApFormItemSelect,
171
175
  Oo as ApFormItemSwitch,
@@ -175,28 +179,28 @@ export {
175
179
  er as ApFormList,
176
180
  ar as ApFormModalForm,
177
181
  rr as ApFormSearchForm,
178
- qt as ApImage,
179
- nt as ApInfoLayout,
180
- Jt as ApInputRadio,
181
- Qt as ApLabel,
182
- Zt as ApLabelGroup,
183
- _t as ApLadder,
182
+ ea as ApImage,
183
+ it as ApInfoLayout,
184
+ oa as ApInputRadio,
185
+ ra as ApLabel,
186
+ ta as ApLabelGroup,
187
+ aa as ApLadder,
184
188
  Gt as ApList,
185
189
  Rt as ApModal,
186
- ea as ApSelectLayout,
187
- oa as ApStatus,
188
- ra as ApStatusGroup,
189
- sa as ApTable,
190
- Kt as ApTableModal,
190
+ pa as ApSelectLayout,
191
+ fa as ApStatus,
192
+ ma as ApStatusGroup,
193
+ ia as ApTable,
194
+ Ot as ApTableModal,
191
195
  dt as ApTag,
192
196
  ut as ApTagGroup,
193
- ta as ApTitle,
194
- pa as ApTransformDataHelper,
197
+ la as ApTitle,
198
+ da as ApTransformDataHelper,
195
199
  Ft as ApUpload,
196
- he as ApiCascader,
200
+ Pe as ApiCascader,
197
201
  Re as ApiRadioGroup,
198
202
  Ge as ApiSelect,
199
- Le as ApiTransfer,
203
+ we as ApiTransfer,
200
204
  ke as ApiTree,
201
205
  Ye as ApiTreeSelect,
202
206
  Je as BaseButton,
@@ -205,7 +209,7 @@ export {
205
209
  j as BasicHelp,
206
210
  q as BasicTitle,
207
211
  Dt as CheckCard,
208
- ht as CheckCardGroup,
212
+ Pt as CheckCardGroup,
209
213
  K as CollapseContainer,
210
214
  Q as CollapseTransition,
211
215
  v as ConfigProvider,
@@ -217,8 +221,8 @@ export {
217
221
  tt as DictCode,
218
222
  co as Dropdown,
219
223
  Io as EditTableHeaderIcon,
220
- xa as EditableTable,
221
- ia as EditableTableFormItem,
224
+ ca as EditableTable,
225
+ Fa as EditableTableFormItem,
222
226
  _ as ExpandTransition,
223
227
  ee as ExpandXTransition,
224
228
  oe as FadeTransition,
@@ -254,15 +258,16 @@ export {
254
258
  Er as aplusToken,
255
259
  b as buildLocaleContext,
256
260
  S as buildTranslator,
257
- i as configProviderContextKey,
261
+ n as configProviderContextKey,
258
262
  x as configProviderProps,
259
- no as createPrompt,
263
+ io as createPrompt,
260
264
  ft as createWorkOrderModal,
261
265
  p as default,
262
- h as defaultNamespace,
266
+ P as defaultNamespace,
263
267
  U as en,
264
268
  qr as generateTableList,
265
- L as globalConfigCached,
269
+ w as globalConfigCached,
270
+ Yt as handleExportDownload,
266
271
  Se as isComponentFormSchema,
267
272
  Ie as isSlotFormSchema,
268
273
  c as keysOf,
@@ -270,26 +275,26 @@ export {
270
275
  I as localeContextKey,
271
276
  M as namespaceContextKey,
272
277
  T as provideGlobalConfig,
273
- n as tableDefaultConfig,
278
+ i as tableDefaultConfig,
274
279
  g as translate,
275
280
  Qr as useCacheColumnSetting,
276
281
  Te as useComponentRegister,
277
- Ca as useControllableValue,
278
- ie as useDescription,
282
+ Da as useControllableValue,
283
+ ne as useDescription,
279
284
  Ce as useForm,
280
285
  R as useGetDerivedNamespace,
281
286
  F as useGlobalConfig,
282
287
  D as useLocale,
283
- Ta as useMessage,
288
+ Ia as useMessage,
284
289
  ro as useModal,
285
290
  eo as useModalContext,
286
291
  to as useModalInner,
287
292
  B as useNamespace,
288
- kt as usePageListApTable,
289
- ho as useTable,
290
- Yt as useTableModal,
291
- ma as useTablePaging,
292
- Nt as useTableRefresh,
293
- Ot as useTableSelectModal,
293
+ Nt as usePageListApTable,
294
+ Po as useTable,
295
+ zt as useTableModal,
296
+ ua as useTablePaging,
297
+ Kt as useTableRefresh,
298
+ Vt as useTableSelectModal,
294
299
  W as zhCn
295
300
  };
@@ -0,0 +1,43 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
+ import { ApButtonProps } from './interface';
3
+ import { ButtonType } from 'ant-design-vue/es/button';
4
+ declare function __VLS_template(): {
5
+ slots: Partial<Record<string, (_: any) => any>>;
6
+ refs: {};
7
+ attrs: Partial<{}>;
8
+ };
9
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
+ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption< ApButtonProps>, {
11
+ type: string;
12
+ minWidth: boolean;
13
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption< ApButtonProps>, {
14
+ type: string;
15
+ minWidth: boolean;
16
+ }>>>, {
17
+ type: ButtonType | "borderLink";
18
+ minWidth: boolean | number | string;
19
+ }, {}>;
20
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
21
+ export default _default;
22
+ type __VLS_WithDefaults<P, D> = {
23
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
24
+ default: D[K];
25
+ }> : P[K];
26
+ };
27
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
28
+ type __VLS_TypePropsToOption<T> = {
29
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
30
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
31
+ } : {
32
+ type: PropType<T[K]>;
33
+ required: true;
34
+ };
35
+ };
36
+ type __VLS_WithTemplateSlots<T, S> = T & {
37
+ new (): {
38
+ $slots: S;
39
+ };
40
+ };
41
+ type __VLS_PrettifyLocal<T> = {
42
+ [K in keyof T]: T[K];
43
+ } & {};
@@ -0,0 +1,43 @@
1
+ import { defineComponent as s, openBlock as l, createBlock as i, normalizeProps as t, guardReactiveProps as r, createSlots as c, renderList as d, withCtx as m, renderSlot as u } from "vue";
2
+ import "./ap-button.vue2.mjs";
3
+ import f from "./ap-button.vue.mjs";
4
+ const k = /* @__PURE__ */ s({
5
+ __name: "ap-action-button",
6
+ props: {
7
+ prefixCls: {},
8
+ htmlType: {},
9
+ shape: {},
10
+ size: {},
11
+ loading: { type: [Boolean, Object] },
12
+ disabled: { type: Boolean },
13
+ ghost: { type: Boolean },
14
+ block: { type: Boolean },
15
+ danger: { type: Boolean },
16
+ icon: {},
17
+ href: {},
18
+ target: {},
19
+ title: {},
20
+ onMousedown: {},
21
+ type: { default: "borderLink" },
22
+ borderLinkColor: {},
23
+ minWidth: { type: [Boolean, Number, String], default: !0 },
24
+ onClick: {}
25
+ },
26
+ setup(n) {
27
+ const a = n;
28
+ return (e, y) => (l(), i(f, t(r({
29
+ ...e.$attrs,
30
+ ...a
31
+ })), c({ _: 2 }, [
32
+ d(Object.keys(e.$slots), (o) => ({
33
+ name: o,
34
+ fn: m((p) => [
35
+ u(e.$slots, o, t(r(p || {})))
36
+ ])
37
+ }))
38
+ ]), 1040));
39
+ }
40
+ });
41
+ export {
42
+ k as default
43
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./ap-action-button.vue.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -1,11 +1,11 @@
1
- import { defineComponent as x, ref as _, computed as r, openBlock as w, createBlock as z, unref as c, mergeProps as A, createSlots as F, renderList as O, withCtx as S, renderSlot as T, normalizeProps as j, guardReactiveProps as G } from "vue";
1
+ import { defineComponent as L, ref as $, computed as a, openBlock as M, createBlock as j, unref as c, mergeProps as w, createSlots as P, renderList as x, withCtx as _, renderSlot as N, normalizeProps as z, guardReactiveProps as A } from "vue";
2
2
  import "./index.css";
3
- import { Button as I } from "ant-design-vue";
3
+ import { Button as F } from "ant-design-vue";
4
4
  import "../config-provider/index.mjs";
5
- import { omit as N } from "lodash-unified";
6
- import { useNamespace as R } from "../config-provider/hooks/use-namespace.mjs";
7
- import { useGlobalConfig as q } from "../config-provider/hooks/use-global-config.mjs";
8
- const D = 88, X = /* @__PURE__ */ x({
5
+ import { omit as O } from "lodash-unified";
6
+ import { useNamespace as S } from "../config-provider/hooks/use-namespace.mjs";
7
+ import { useGlobalConfig as T } from "../config-provider/hooks/use-global-config.mjs";
8
+ const G = 88, Q = /* @__PURE__ */ L({
9
9
  __name: "ap-button",
10
10
  props: {
11
11
  prefixCls: {},
@@ -27,90 +27,92 @@ const D = 88, X = /* @__PURE__ */ x({
27
27
  minWidth: { type: [Boolean, Number, String], default: !1 },
28
28
  onClick: {}
29
29
  },
30
- setup(k) {
31
- const e = k, d = {
30
+ setup(y) {
31
+ const e = y, d = {
32
32
  aplus: "#0070FF",
33
33
  admin: "#34b77c"
34
- }, { b: p } = R("ap-action-button"), B = q("uiMode"), l = _(!1), W = r(
35
- () => e.borderLinkColor || d[B.value] || d.aplus
36
- ), f = r(
37
- () => e.type === "borderLink" ? W.value : void 0
38
- ), m = r(() => P(f.value)), L = r(() => e.minWidth === !0 ? `${D}px` : typeof e.minWidth == "number" ? `${e.minWidth}px` : typeof e.minWidth == "string" ? e.minWidth : void 0), $ = r(
34
+ }, { b: p } = S("ap-action-button"), g = T("uiMode"), s = $(!1), h = a(
35
+ () => e.borderLinkColor || d[g.value] || d.aplus
36
+ ), f = a(
37
+ () => e.type === "borderLink" ? h.value : void 0
38
+ ), m = a(() => W(f.value)), v = a(() => e.minWidth === !0 ? `${G}px` : typeof e.minWidth == "number" ? `${e.minWidth}px` : typeof e.minWidth == "string" ? e.minWidth : void 0), k = a(
39
39
  () => (e.type === "borderLink" ? "default" : e.type) || "default"
40
- ), b = r(() => e.loading ?? l.value ?? !1);
41
- function h() {
42
- const n = N(e, [
40
+ ), b = a(() => e.loading ?? s.value ?? !1);
41
+ function C() {
42
+ const t = O(e, [
43
43
  "type",
44
44
  "borderLinkColor",
45
45
  "minWidth",
46
46
  "onClick",
47
47
  "loading"
48
48
  ]);
49
- return n ? {
50
- ...n,
51
- type: $.value,
52
- onclick: M
49
+ return t ? {
50
+ ...t,
51
+ type: k.value,
52
+ onclick: B
53
53
  } : {};
54
54
  }
55
- async function M() {
56
- var n;
55
+ async function B() {
56
+ var t;
57
57
  if (!b.value) {
58
- l.value = !0;
58
+ s.value = !0;
59
59
  try {
60
- await ((n = e.onClick) == null ? void 0 : n.call(e));
60
+ await ((t = e.onClick) == null ? void 0 : t.call(e));
61
61
  } finally {
62
- l.value = !1;
62
+ s.value = !1;
63
63
  }
64
64
  }
65
65
  }
66
- function P(n, u = "0.7") {
67
- var g;
66
+ function W(t, u = "0.7") {
67
+ var i;
68
68
  try {
69
- var t = n == null ? void 0 : n.toLowerCase(), s = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
70
- if (t && s.test(t)) {
71
- if (t.length === 4) {
72
- for (var v = "#", o = 1; o < 4; o += 1)
73
- v += t.slice(o, o + 1).concat(t.slice(o, o + 1));
74
- t = v;
69
+ let o = t == null ? void 0 : t.toLowerCase();
70
+ if (o && /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(o)) {
71
+ if (o.length === 4) {
72
+ let r = "#";
73
+ for (let l = 1; l < 4; l += 1)
74
+ r += o.slice(l, l + 1).concat(o.slice(l, l + 1));
75
+ o = r;
75
76
  }
76
- for (var y = [], i = 1; i < 7; i += 2)
77
- y.push(parseInt("0x" + t.slice(i, i + 2)));
78
- return "rgba(" + y.join(",") + "," + u + ")";
77
+ const n = [];
78
+ for (let r = 1; r < 7; r += 2)
79
+ n.push(parseInt("0x" + o.slice(r, r + 2)));
80
+ return "rgba(" + n.join(",") + "," + u + ")";
79
81
  }
80
- if (t && t.startsWith("rgb")) {
81
- let a = t.match(/(\d(\.\d+)?)+/g);
82
- return a = (g = a == null ? void 0 : a.slice(0, 3)) == null ? void 0 : g.concat(u), "rgba(" + a.join(",") + ")";
82
+ if (o && o.startsWith("rgb")) {
83
+ let n = o.match(/(\d(\.\d+)?)+/g);
84
+ return n = (i = n == null ? void 0 : n.slice(0, 3)) == null ? void 0 : i.concat(u), "rgba(" + n.join(",") + ")";
83
85
  }
84
- return t;
86
+ return o;
85
87
  } catch {
86
88
  return;
87
89
  }
88
90
  }
89
- return (n, u) => (w(), z(c(I), A({
91
+ return (t, u) => (M(), j(c(F), w({
90
92
  class: {
91
93
  [c(p)()]: !0,
92
94
  [`${c(p)()}-border-link`]: m.value
93
95
  }
94
96
  }, {
95
- ...n.$attrs,
96
- ...h()
97
+ ...t.$attrs,
98
+ ...C()
97
99
  }, {
98
100
  style: {
99
101
  color: f.value,
100
- minWidth: L.value,
102
+ minWidth: v.value,
101
103
  "--button-border-color": m.value
102
104
  },
103
105
  loading: b.value
104
- }), F({ _: 2 }, [
105
- O(Object.keys(n.$slots), (t) => ({
106
- name: t,
107
- fn: S((s) => [
108
- T(n.$slots, t, j(G(s || {})))
106
+ }), P({ _: 2 }, [
107
+ x(Object.keys(t.$slots), (i) => ({
108
+ name: i,
109
+ fn: _((o) => [
110
+ N(t.$slots, i, z(A(o || {})))
109
111
  ])
110
112
  }))
111
113
  ]), 1040, ["class", "style", "loading"]));
112
114
  }
113
115
  });
114
116
  export {
115
- X as default
117
+ Q as default
116
118
  };
@@ -1,3 +1,4 @@
1
1
  import { default as ApButton } from './ap-button.vue';
2
+ import { default as ApActionButton } from './ap-action-button.vue';
2
3
  export * from './interface';
3
- export { ApButton };
4
+ export { ApButton, ApActionButton };
@@ -1,2 +1,3 @@
1
1
  import "./ap-button.vue2.mjs";
2
+ import "./ap-action-button.vue2.mjs";
2
3
  import "./interface.mjs";
@@ -5,3 +5,4 @@ export type ApButtonProps = Omit<ButtonProps, 'type' | 'onClick'> & {
5
5
  minWidth?: boolean | number | string;
6
6
  onClick?: () => any | Promise<any>;
7
7
  };
8
+ export type ApActionButtonProps = ApButtonProps;