@aplus-frontend/ui 7.10.6 → 7.11.1

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 (113) hide show
  1. package/es/index.mjs +93 -91
  2. package/es/src/ag-grid/editable/form-item.vue.mjs +75 -63
  3. package/es/src/ag-grid/editable/index.vue.mjs +80 -72
  4. package/es/src/ag-grid/editable/interface.d.ts +2 -1
  5. package/es/src/ag-grid/editable/utils.d.ts +7 -0
  6. package/es/src/ag-grid/editable/utils.mjs +32 -17
  7. package/es/src/ap-form/ap-form.vue2.mjs +144 -153
  8. package/es/src/ap-form/utils/transform.d.ts +6 -0
  9. package/es/src/ap-form/utils/transform.mjs +30 -0
  10. package/es/src/ap-pro-card/components/card/index.vue.d.ts +1 -1
  11. package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +129 -93
  12. package/es/src/business/ap-appendix/interface.d.ts +4 -0
  13. package/es/src/business/ap-appendix/style/index.mjs +56 -34
  14. package/es/src/business/ap-attachment/ApAttachment.mjs +112 -89
  15. package/es/src/business/ap-attachment/style/index.mjs +21 -7
  16. package/es/src/business/ap-download/ap-download.vue.d.ts +1 -0
  17. package/es/src/business/ap-download/ap-download.vue.mjs +86 -45
  18. package/es/src/business/ap-download/interface.d.ts +4 -0
  19. package/es/src/business/ap-download/style/index.mjs +8 -4
  20. package/es/src/business/ap-file-preview/ap-file-preview.vue.d.ts +4 -0
  21. package/es/src/business/ap-file-preview/ap-file-preview.vue.mjs +4 -0
  22. package/es/src/business/ap-file-preview/ap-file-preview.vue2.mjs +104 -0
  23. package/es/src/business/ap-file-preview/components/error-result/index.vue.d.ts +6 -0
  24. package/es/src/business/ap-file-preview/components/error-result/index.vue.mjs +4 -0
  25. package/es/src/business/ap-file-preview/components/error-result/index.vue2.mjs +40 -0
  26. package/es/src/business/ap-file-preview/icons/not-exist-icon.vue.d.ts +3 -0
  27. package/es/src/business/ap-file-preview/icons/not-exist-icon.vue.mjs +20 -0
  28. package/es/src/business/ap-file-preview/icons/not-preview-icon.vue.d.ts +3 -0
  29. package/es/src/business/ap-file-preview/icons/not-preview-icon.vue.mjs +20 -0
  30. package/es/src/business/ap-file-preview/index.d.ts +7 -0
  31. package/es/src/business/ap-file-preview/index.mjs +8 -0
  32. package/es/src/business/ap-file-preview/interface.d.ts +45 -0
  33. package/es/src/business/ap-file-preview/style/index.d.ts +5 -0
  34. package/es/src/business/ap-file-preview/style/index.mjs +46 -0
  35. package/es/src/business/ap-file-preview/utils/create-file-preview-modal.d.ts +2 -0
  36. package/es/src/business/ap-file-preview/utils/create-file-preview-modal.mjs +18 -0
  37. package/es/src/business/ap-file-preview/utils/default-parser-plugin.d.ts +4 -0
  38. package/es/src/business/ap-file-preview/utils/default-parser-plugin.mjs +48 -0
  39. package/es/src/business/ap-image/ApImage.vue2.mjs +16 -16
  40. package/es/src/business/ap-upload/apUpload.vue.d.ts +1 -1
  41. package/es/src/business/ap-upload/apUploadTypes.d.ts +2 -2
  42. package/es/src/business/ap-upload/components/MultipleFile.vue2.mjs +94 -82
  43. package/es/src/business/ap-upload/style/multiple-file.mjs +6 -3
  44. package/es/src/business/index.d.ts +1 -0
  45. package/es/src/business/index.mjs +16 -14
  46. package/es/src/config-provider/config-provider-props.d.ts +6 -0
  47. package/es/src/config-provider/config-provider-props.mjs +6 -2
  48. package/es/src/config-provider/config-provider.d.ts +17 -1
  49. package/es/src/config-provider/config-provider.mjs +24 -23
  50. package/es/src/config-provider/hooks/use-global-config.d.ts +7 -0
  51. package/es/src/config-provider/index.d.ts +31 -3
  52. package/es/src/index.mjs +74 -72
  53. package/es/src/locale/lang/en.mjs +5 -0
  54. package/es/src/locale/lang/zh-cn.mjs +5 -0
  55. package/es/src/version.d.ts +1 -1
  56. package/es/src/version.mjs +1 -1
  57. package/lib/index.js +1 -1
  58. package/lib/src/ag-grid/editable/form-item.vue.js +1 -1
  59. package/lib/src/ag-grid/editable/index.vue.js +1 -1
  60. package/lib/src/ag-grid/editable/interface.d.ts +2 -1
  61. package/lib/src/ag-grid/editable/utils.d.ts +7 -0
  62. package/lib/src/ag-grid/editable/utils.js +1 -1
  63. package/lib/src/ap-form/ap-form.vue2.js +1 -1
  64. package/lib/src/ap-form/utils/transform.d.ts +6 -0
  65. package/lib/src/ap-form/utils/transform.js +1 -0
  66. package/lib/src/ap-pro-card/components/card/index.vue.d.ts +1 -1
  67. package/lib/src/business/ap-appendix/ap-appendix.vue2.js +1 -1
  68. package/lib/src/business/ap-appendix/interface.d.ts +4 -0
  69. package/lib/src/business/ap-appendix/style/index.js +1 -1
  70. package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
  71. package/lib/src/business/ap-attachment/style/index.js +1 -1
  72. package/lib/src/business/ap-download/ap-download.vue.d.ts +1 -0
  73. package/lib/src/business/ap-download/ap-download.vue.js +1 -1
  74. package/lib/src/business/ap-download/interface.d.ts +4 -0
  75. package/lib/src/business/ap-download/style/index.js +1 -1
  76. package/lib/src/business/ap-file-preview/ap-file-preview.vue.d.ts +4 -0
  77. package/lib/src/business/ap-file-preview/ap-file-preview.vue.js +1 -0
  78. package/lib/src/business/ap-file-preview/ap-file-preview.vue2.js +1 -0
  79. package/lib/src/business/ap-file-preview/components/error-result/index.vue.d.ts +6 -0
  80. package/lib/src/business/ap-file-preview/components/error-result/index.vue.js +1 -0
  81. package/lib/src/business/ap-file-preview/components/error-result/index.vue2.js +1 -0
  82. package/lib/src/business/ap-file-preview/icons/not-exist-icon.vue.d.ts +3 -0
  83. package/lib/src/business/ap-file-preview/icons/not-exist-icon.vue.js +1 -0
  84. package/lib/src/business/ap-file-preview/icons/not-preview-icon.vue.d.ts +3 -0
  85. package/lib/src/business/ap-file-preview/icons/not-preview-icon.vue.js +1 -0
  86. package/lib/src/business/ap-file-preview/index.d.ts +7 -0
  87. package/lib/src/business/ap-file-preview/index.js +1 -0
  88. package/lib/src/business/ap-file-preview/interface.d.ts +45 -0
  89. package/lib/src/business/ap-file-preview/style/index.d.ts +5 -0
  90. package/lib/src/business/ap-file-preview/style/index.js +1 -0
  91. package/lib/src/business/ap-file-preview/utils/create-file-preview-modal.d.ts +2 -0
  92. package/lib/src/business/ap-file-preview/utils/create-file-preview-modal.js +1 -0
  93. package/lib/src/business/ap-file-preview/utils/default-parser-plugin.d.ts +4 -0
  94. package/lib/src/business/ap-file-preview/utils/default-parser-plugin.js +1 -0
  95. package/lib/src/business/ap-image/ApImage.vue2.js +1 -1
  96. package/lib/src/business/ap-upload/apUpload.vue.d.ts +1 -1
  97. package/lib/src/business/ap-upload/apUploadTypes.d.ts +2 -2
  98. package/lib/src/business/ap-upload/components/MultipleFile.vue2.js +1 -1
  99. package/lib/src/business/ap-upload/style/multiple-file.js +1 -1
  100. package/lib/src/business/index.d.ts +1 -0
  101. package/lib/src/business/index.js +1 -1
  102. package/lib/src/config-provider/config-provider-props.d.ts +6 -0
  103. package/lib/src/config-provider/config-provider-props.js +1 -1
  104. package/lib/src/config-provider/config-provider.d.ts +17 -1
  105. package/lib/src/config-provider/config-provider.js +1 -1
  106. package/lib/src/config-provider/hooks/use-global-config.d.ts +7 -0
  107. package/lib/src/config-provider/index.d.ts +31 -3
  108. package/lib/src/index.js +1 -1
  109. package/lib/src/locale/lang/en.js +1 -1
  110. package/lib/src/locale/lang/zh-cn.js +1 -1
  111. package/lib/src/version.d.ts +1 -1
  112. package/lib/src/version.js +1 -1
  113. package/package.json +1 -1
package/es/index.mjs CHANGED
@@ -5,9 +5,9 @@ import { configProviderProps as s } from "./src/config-provider/config-provider-
5
5
  import { DEFAULT_NAMESPACE as A, DEFAULT_UIMODE as i, configProviderContextKey as n } from "./src/config-provider/constants.mjs";
6
6
  import { keysOf as F, provideGlobalConfig as g, useGlobalConfig as I } from "./src/config-provider/hooks/use-global-config.mjs";
7
7
  import { buildLocaleContext as T, buildTranslator as b, localeContextKey as C, translate as G, useLocale as D } from "./src/config-provider/hooks/use-locale.mjs";
8
- import { defaultNamespace as E, namespaceContextKey as P, useGetDerivedNamespace as L, useNamespace as R } from "./src/config-provider/hooks/use-namespace.mjs";
9
- import { ConfigProvider as v, globalConfigCached as M } from "./src/config-provider/config-provider.mjs";
10
- import { APConfigProvider as w } from "./src/config-provider/index.mjs";
8
+ import { defaultNamespace as P, namespaceContextKey as E, useGetDerivedNamespace as L, useNamespace as R } from "./src/config-provider/hooks/use-namespace.mjs";
9
+ import { ConfigProvider as N, globalConfigCached as M } from "./src/config-provider/config-provider.mjs";
10
+ import { APConfigProvider as y } from "./src/config-provider/index.mjs";
11
11
  import { ApFormItemText as k } from "./src/ap-form/items/text/index.mjs";
12
12
  import { default as U } from "./src/ap-form/items/text-area/index.vue.mjs";
13
13
  import { default as V } from "./src/ap-form/items/number/index.vue.mjs";
@@ -30,10 +30,10 @@ import { default as Ie } from "./src/ap-form/set/index.vue.mjs";
30
30
  import { default as Te } from "./src/ap-form/drawer-form/index.vue.mjs";
31
31
  import { default as Ce } from "./src/ap-form/render/control.vue.mjs";
32
32
  import { default as De } from "./src/ap-form/render/item.vue.mjs";
33
- import { default as Ee } from "./src/ap-form/provider/index.vue.mjs";
33
+ import { default as Pe } from "./src/ap-form/provider/index.vue.mjs";
34
34
  import { ApField as Le, ApFieldRead as Re } from "./src/ap-field/index.mjs";
35
- import { ApFieldText as ve } from "./src/ap-field/text/index.mjs";
36
- import { default as ye } from "./src/ap-field/checkbox/index.vue.mjs";
35
+ import { ApFieldText as Ne } from "./src/ap-field/text/index.mjs";
36
+ import { default as we } from "./src/ap-field/checkbox/index.vue.mjs";
37
37
  import { default as Be } from "./src/ap-field/date/index.vue.mjs";
38
38
  import { default as Ke } from "./src/ap-field/number/index.vue.mjs";
39
39
  import { default as Oe } from "./src/ap-field/radio/index.vue.mjs";
@@ -56,10 +56,10 @@ import { default as So } from "./src/ap-action/group/index.vue.mjs";
56
56
  import { CheckCard as bo } from "./src/check-card/index.mjs";
57
57
  import { default as Go } from "./src/check-card/group.vue.mjs";
58
58
  import { ApModal as ho } from "./src/ap-modal/index.mjs";
59
- import { default as Po } from "./src/ap-list/index.vue.mjs";
59
+ import { default as Eo } from "./src/ap-list/index.vue.mjs";
60
60
  import { default as Ro } from "./src/ap-button/ap-button.vue.mjs";
61
- import { default as vo } from "./src/ap-button/ap-action-button.vue.mjs";
62
- import { default as yo } from "./src/ap-button/ap-confirm-button.vue.mjs";
61
+ import { default as No } from "./src/ap-button/ap-action-button.vue.mjs";
62
+ import { default as wo } from "./src/ap-button/ap-confirm-button.vue.mjs";
63
63
  import { ApDrawer as Bo } from "./src/ap-drawer/index.mjs";
64
64
  import { ApProCard as Ko, ApStatisticCard as Uo } from "./src/ap-pro-card/index.mjs";
65
65
  import { LoadingBar as Vo } from "./src/loading-bar/index.mjs";
@@ -82,10 +82,10 @@ import { ApExportGroup as Ir } from "./src/business/ap-export-group/index.mjs";
82
82
  import { handleExportDownload as Tr } from "./src/business/ap-export-group/handleExportDownload.mjs";
83
83
  import { convertExportField as Cr } from "./src/business/ap-export-group/convertExportField.mjs";
84
84
  import { ApImage as Dr } from "./src/business/ap-image/index.mjs";
85
- import { ApInputRadio as Er } from "./src/business/ap-input-radio/index.mjs";
85
+ import { ApInputRadio as Pr } from "./src/business/ap-input-radio/index.mjs";
86
86
  import { ApLabel as Lr, ApLabelGroup as Rr } from "./src/business/ap-label/index.mjs";
87
- import { locales as vr } from "./src/business/ap-ladder/interface.mjs";
88
- import { ApLadder as yr } from "./src/business/ap-ladder/index.mjs";
87
+ import { locales as Nr } from "./src/business/ap-ladder/interface.mjs";
88
+ import { ApLadder as wr } from "./src/business/ap-ladder/index.mjs";
89
89
  import { ApSelectLayout as Br } from "./src/business/ap-select-layout/index.mjs";
90
90
  import { ApStatus as Kr, ApStatusGroup as Ur } from "./src/business/ap-status/index.mjs";
91
91
  import { ApTitle as Vr } from "./src/business/ap-title/index.mjs";
@@ -106,11 +106,11 @@ import { ApCopy as gt } from "./src/business/ap-copy/index.mjs";
106
106
  import { ApView as St } from "./src/business/ap-view/index.mjs";
107
107
  import { ApRadioGroup as bt } from "./src/business/ap-radio-group/index.mjs";
108
108
  import { ApKeepAliveProps as Gt, forceStopTags as Dt } from "./src/business/ap-keep-alive/interface.mjs";
109
- import { ApKeepAlive as Et } from "./src/business/ap-keep-alive/index.mjs";
109
+ import { ApKeepAlive as Pt } from "./src/business/ap-keep-alive/index.mjs";
110
110
  import { LruCacher as Lt } from "./src/business/ap-keep-alive/cacher/lru-cacher.mjs";
111
- import { useApKeepAliveInject as Nt } from "./src/business/ap-keep-alive/hook.mjs";
111
+ import { useApKeepAliveInject as vt } from "./src/business/ap-keep-alive/hook.mjs";
112
112
  import { matches as Mt } from "./src/business/ap-keep-alive/utils.mjs";
113
- import { ApDraggableGrid as wt } from "./src/business/ap-draggable-grid/index.mjs";
113
+ import { ApDraggableGrid as yt } from "./src/business/ap-draggable-grid/index.mjs";
114
114
  import { ApValueSelectCard as kt } from "./src/business/ap-value-select-card/index.mjs";
115
115
  import { useAgGridModal as Ut } from "./src/business/ag-grid-modal/hooks/use-ag-grid-modal.mjs";
116
116
  import { useAgGridSelectModal as Vt } from "./src/business/ag-grid-modal/hooks/use-ag-grid-select-modal.mjs";
@@ -123,36 +123,37 @@ import { ApDownLoadNeedNameKeyDefault as Zt } from "./src/business/ap-download/i
123
123
  import { default as op } from "./src/business/ap-download/ap-download.vue.mjs";
124
124
  import { formatString as tp } from "./src/business/ap-descriptions/formatter/utils.mjs";
125
125
  import { default as ap } from "./src/business/ap-descriptions/ap-descriptions.vue.mjs";
126
- import { useTablePaging as mp } from "./src/ap-table/hooks/use-table-paging.mjs";
127
- import { ApTable as xp } from "./src/ap-table/index.mjs";
128
- import { default as sp } from "./src/editable-table/index.vue.mjs";
129
- import { default as Ap } from "./src/editable-table/form-item.vue.mjs";
130
- import { ensureRangeValue as np } from "./src/scroll-bar/utils/index.mjs";
131
- import { default as Fp } from "./src/scroll-bar/index.vue.mjs";
132
- import { default as Ip } from "./src/scroll-bar/internal.vue.mjs";
133
- import { default as Tp } from "./src/scroll-view/index.vue.mjs";
134
- import { default as Cp } from "./src/portal/index.vue.mjs";
135
- import { default as Dp } from "./src/full-screen/index.vue.mjs";
136
- import { default as Ep } from "./src/resize-observer/index.vue.mjs";
137
- import { ROW_SELECTION_FIELD as Lp } from "./src/ap-grid/constants.mjs";
138
- import { toTreeArray as Np } from "./src/ap-grid/utils/to-tree-array.mjs";
139
- import { default as Mp } from "./src/ap-grid/index.vue.mjs";
140
- import { default as wp } from "./src/ap-grid/editable/index.vue.mjs";
141
- import { default as kp } from "./src/ap-grid/editable/form-item.vue.mjs";
142
- import { default as Up } from "./src/text/index.vue.mjs";
143
- import { default as Vp } from "./src/text/group.vue.mjs";
144
- import { default as _p } from "./src/mask/index.vue.mjs";
145
- import { Splitter as $p } from "./src/splitter/index.mjs";
146
- import { default as Wp } from "./src/ag-grid/index.vue.mjs";
147
- import { default as Jp } from "./src/ag-grid/editable/index.vue.mjs";
148
- import { default as Xp } from "./src/ag-grid/editable/form-item.vue.mjs";
149
- import { ApSkeleton as Zp } from "./src/skeleton/index.mjs";
150
- import { useMessage as oa } from "./src/hooks/useMessage.mjs";
151
- import { useControllableValue as ta } from "./src/hooks/useControllableValue.mjs";
152
- import { useManualRef as aa } from "./src/hooks/useManualRef.mjs";
153
- import { useThrottleRef as ma } from "./src/hooks/useThrottleRef.mjs";
154
- import { useFullScreen as xa } from "./src/hooks/useFullScreen.mjs";
155
- import { useResize as sa } from "./src/hooks/useResize.mjs";
126
+ import { ApFilePreview as mp } from "./src/business/ap-file-preview/index.mjs";
127
+ import { useTablePaging as xp } from "./src/ap-table/hooks/use-table-paging.mjs";
128
+ import { ApTable as sp } from "./src/ap-table/index.mjs";
129
+ import { default as Ap } from "./src/editable-table/index.vue.mjs";
130
+ import { default as np } from "./src/editable-table/form-item.vue.mjs";
131
+ import { ensureRangeValue as Fp } from "./src/scroll-bar/utils/index.mjs";
132
+ import { default as Ip } from "./src/scroll-bar/index.vue.mjs";
133
+ import { default as Tp } from "./src/scroll-bar/internal.vue.mjs";
134
+ import { default as Cp } from "./src/scroll-view/index.vue.mjs";
135
+ import { default as Dp } from "./src/portal/index.vue.mjs";
136
+ import { default as Pp } from "./src/full-screen/index.vue.mjs";
137
+ import { default as Lp } from "./src/resize-observer/index.vue.mjs";
138
+ import { ROW_SELECTION_FIELD as vp } from "./src/ap-grid/constants.mjs";
139
+ import { toTreeArray as Mp } from "./src/ap-grid/utils/to-tree-array.mjs";
140
+ import { default as yp } from "./src/ap-grid/index.vue.mjs";
141
+ import { default as kp } from "./src/ap-grid/editable/index.vue.mjs";
142
+ import { default as Up } from "./src/ap-grid/editable/form-item.vue.mjs";
143
+ import { default as Vp } from "./src/text/index.vue.mjs";
144
+ import { default as _p } from "./src/text/group.vue.mjs";
145
+ import { default as $p } from "./src/mask/index.vue.mjs";
146
+ import { Splitter as Wp } from "./src/splitter/index.mjs";
147
+ import { default as Jp } from "./src/ag-grid/index.vue.mjs";
148
+ import { default as Xp } from "./src/ag-grid/editable/index.vue.mjs";
149
+ import { default as Zp } from "./src/ag-grid/editable/form-item.vue.mjs";
150
+ import { ApSkeleton as oa } from "./src/skeleton/index.mjs";
151
+ import { useMessage as ta } from "./src/hooks/useMessage.mjs";
152
+ import { useControllableValue as aa } from "./src/hooks/useControllableValue.mjs";
153
+ import { useManualRef as ma } from "./src/hooks/useManualRef.mjs";
154
+ import { useThrottleRef as xa } from "./src/hooks/useThrottleRef.mjs";
155
+ import { useFullScreen as sa } from "./src/hooks/useFullScreen.mjs";
156
+ import { useResize as Aa } from "./src/hooks/useResize.mjs";
156
157
  const a = console.log;
157
158
  a(`UI version: ${p}`);
158
159
  const l = {
@@ -164,9 +165,9 @@ const l = {
164
165
  }
165
166
  };
166
167
  export {
167
- w as APConfigProvider,
168
- Wp as AgGrid,
169
- vo as ApActionButton,
168
+ y as APConfigProvider,
169
+ Jp as AgGrid,
170
+ No as ApActionButton,
170
171
  So as ApActionGroup,
171
172
  uo as ApActionItem,
172
173
  go as ApActionItemDropdown,
@@ -179,18 +180,18 @@ export {
179
180
  Ro as ApButton,
180
181
  sr as ApButtonGroup,
181
182
  Ar as ApCard,
182
- yo as ApConfirmButton,
183
+ wo as ApConfirmButton,
183
184
  gt as ApCopy,
184
185
  ap as ApDescriptions,
185
186
  Zt as ApDownLoadNeedNameKeyDefault,
186
187
  op as ApDownload,
187
- wt as ApDraggableGrid,
188
+ yt as ApDraggableGrid,
188
189
  Bo as ApDrawer,
189
190
  nr as ApExpandAlert,
190
191
  Ir as ApExportGroup,
191
192
  Fr as ApExportGroupActionType,
192
193
  Le as ApField,
193
- ye as ApFieldCheckbox,
194
+ we as ApFieldCheckbox,
194
195
  Be as ApFieldDate,
195
196
  je as ApFieldDateRange,
196
197
  Ke as ApFieldNumber,
@@ -203,9 +204,10 @@ export {
203
204
  qe as ApFieldSelect,
204
205
  Ye as ApFieldSlider,
205
206
  ze as ApFieldSwitch,
206
- ve as ApFieldText,
207
+ Ne as ApFieldText,
207
208
  He as ApFieldTextArea,
208
209
  po as ApFieldTreeSelect,
210
+ mp as ApFilePreview,
209
211
  ae as ApForm,
210
212
  Ce as ApFormControlRender,
211
213
  Fe as ApFormDependency,
@@ -228,18 +230,18 @@ export {
228
230
  te as ApFormItemTreeSelect,
229
231
  se as ApFormList,
230
232
  ne as ApFormModalForm,
231
- Ee as ApFormProvider,
233
+ Pe as ApFormProvider,
232
234
  Ae as ApFormSearchForm,
233
235
  Ie as ApFormSet,
234
- Mp as ApGrid,
236
+ yp as ApGrid,
235
237
  Dr as ApImage,
236
- Er as ApInputRadio,
237
- Et as ApKeepAlive,
238
+ Pr as ApInputRadio,
239
+ Pt as ApKeepAlive,
238
240
  Gt as ApKeepAliveProps,
239
241
  Lr as ApLabel,
240
242
  Rr as ApLabelGroup,
241
- yr as ApLadder,
242
- Po as ApList,
243
+ wr as ApLadder,
244
+ Eo as ApList,
243
245
  ho as ApModal,
244
246
  rt as ApNeedNameKeyDefault,
245
247
  Ko as ApProCard,
@@ -248,17 +250,17 @@ export {
248
250
  Br as ApSelectLayout,
249
251
  _t as ApSelectedItems,
250
252
  ut as ApSizeInput,
251
- Zp as ApSkeleton,
253
+ oa as ApSkeleton,
252
254
  Uo as ApStatisticCard,
253
255
  Kr as ApStatus,
254
256
  Ur as ApStatusGroup,
255
257
  et as ApSummary,
256
- xp as ApTable,
258
+ sp as ApTable,
257
259
  Zo as ApTableModal,
258
260
  $t as ApTag,
259
261
  Wt as ApTagGroup,
260
- Up as ApText,
261
- Vp as ApTextGroup,
262
+ Vp as ApText,
263
+ _p as ApTextGroup,
262
264
  Vr as ApTitle,
263
265
  Xo as ApTransformDataHelper,
264
266
  Xt as ApUpload,
@@ -268,29 +270,29 @@ export {
268
270
  lt as BatchInputGroup,
269
271
  bo as CheckCard,
270
272
  Go as CheckCardGroup,
271
- v as ConfigProvider,
273
+ N as ConfigProvider,
272
274
  A as DEFAULT_NAMESPACE,
273
275
  i as DEFAULT_UIMODE,
274
- Jp as EditableAgGrid,
275
- Xp as EditableAgGridFormItem,
276
- wp as EditableGrid,
277
- kp as EditableGridFormItem,
278
- sp as EditableTable,
279
- Ap as EditableTableFormItem,
280
- Dp as FullScreen,
276
+ Xp as EditableAgGrid,
277
+ Zp as EditableAgGridFormItem,
278
+ kp as EditableGrid,
279
+ Up as EditableGridFormItem,
280
+ Ap as EditableTable,
281
+ np as EditableTableFormItem,
282
+ Pp as FullScreen,
281
283
  Jo as Highlight,
282
- Ip as InternalScrollBar,
284
+ Tp as InternalScrollBar,
283
285
  Vo as LoadingBar,
284
286
  Lt as LruCacher,
285
- _p as Mask,
287
+ $p as Mask,
286
288
  Jt as NeedNameKeyDefault,
287
- Cp as Portal,
288
- Lp as ROW_SELECTION_FIELD,
289
+ Dp as Portal,
290
+ vp as ROW_SELECTION_FIELD,
289
291
  _o as Render,
290
- Ep as ResizeObserver,
291
- Fp as ScrollBar,
292
- Tp as ScrollView,
293
- $p as Splitter,
292
+ Lp as ResizeObserver,
293
+ Ip as ScrollBar,
294
+ Cp as ScrollView,
295
+ Wp as Splitter,
294
296
  $o as TimeAgo,
295
297
  lo as adminToken,
296
298
  xo as aplusToken,
@@ -301,8 +303,8 @@ export {
301
303
  s as configProviderProps,
302
304
  Cr as convertExportField,
303
305
  l as default,
304
- E as defaultNamespace,
305
- np as ensureRangeValue,
306
+ P as defaultNamespace,
307
+ Fp as ensureRangeValue,
306
308
  Qr as flattenColumns,
307
309
  Dt as forceStopTags,
308
310
  Xr as formatDataIndex,
@@ -313,29 +315,29 @@ export {
313
315
  Mt as isNameMatches,
314
316
  F as keysOf,
315
317
  C as localeContextKey,
316
- vr as locales,
317
- P as namespaceContextKey,
318
+ Nr as locales,
319
+ E as namespaceContextKey,
318
320
  g as provideGlobalConfig,
319
- Np as toTreeArray,
321
+ Mp as toTreeArray,
320
322
  G as translate,
321
323
  Ut as useAgGridModal,
322
324
  Vt as useAgGridSelectModal,
323
- Nt as useApKeepAliveInject,
324
- ta as useControllableValue,
325
- xa as useFullScreen,
325
+ vt as useApKeepAliveInject,
326
+ aa as useControllableValue,
327
+ sa as useFullScreen,
326
328
  L as useGetDerivedNamespace,
327
329
  I as useGlobalConfig,
328
330
  D as useLocale,
329
- aa as useManualRef,
330
- oa as useMessage,
331
+ ma as useManualRef,
332
+ ta as useMessage,
331
333
  R as useNamespace,
332
334
  Wr as usePageListAgGrid,
333
335
  $r as usePageListApGrid,
334
336
  _r as usePageListApTable,
335
- sa as useResize,
337
+ Aa as useResize,
336
338
  or as useTableModal,
337
- mp as useTablePaging,
339
+ xp as useTablePaging,
338
340
  tr as useTableSelectModal,
339
- ma as useThrottleRef,
341
+ xa as useThrottleRef,
340
342
  Wo as useTimeAgo
341
343
  };
@@ -1,20 +1,21 @@
1
- import { defineComponent as A, useSlots as L, ref as y, onMounted as O, watch as P, createElementBlock as G, openBlock as W, Fragment as U, createVNode as u, unref as l, withCtx as g, mergeProps as $, createSlots as q, renderList as J, renderSlot as Q, normalizeProps as X, guardReactiveProps as Y } from "vue";
2
- import { cloneDeep as m, isEqual as Z, omit as ee } from "lodash-unified";
3
- import { ApForm as h } from "../../ap-form/index.mjs";
4
- import { useInjectForm as oe } from "../../ap-form/context.mjs";
1
+ import { defineComponent as A, useSlots as L, ref as g, onMounted as P, watch as G, createElementBlock as W, openBlock as U, Fragment as $, createVNode as p, unref as n, withCtx as h, mergeProps as q, createSlots as J, renderList as Q, renderSlot as X, normalizeProps as Y, guardReactiveProps as Z } from "vue";
2
+ import { cloneDeep as u, isEqual as ee, omit as oe } from "lodash-unified";
3
+ import { ApForm as y } from "../../ap-form/index.mjs";
4
+ import { useInjectForm as te } from "../../ap-form/context.mjs";
5
5
  import { useWatch as ae } from "../../ap-form/hooks/use-watch.mjs";
6
- import { getModelValue as te } from "../../ap-form/utils/get.mjs";
6
+ import { getModelValue as ne } from "../../ap-form/utils/get.mjs";
7
+ import { transformValues as le } from "../../ap-form/utils/transform.mjs";
7
8
  import "../../config-provider/index.mjs";
8
- import { useGetEditableColumns as le } from "../hooks/use-editable-columns.mjs";
9
- import { useEditableFormItemApi as ne } from "../hooks/use-editable-form-item-api.mjs";
9
+ import { useGetEditableColumns as re } from "../hooks/use-editable-columns.mjs";
10
+ import { useEditableFormItemApi as se } from "../hooks/use-editable-form-item-api.mjs";
10
11
  import "../index.vue2.mjs";
11
- import re from "../style/editable.mjs";
12
- import { getShadowName as ie } from "../utils.mjs";
13
- import { arrayToObject as b } from "./utils.mjs";
14
- import { useNamespace as se } from "../../config-provider/hooks/use-namespace.mjs";
15
- import { useGlobalConfig as me } from "../../config-provider/hooks/use-global-config.mjs";
16
- import de from "../index.vue.mjs";
17
- const Ee = /* @__PURE__ */ A({
12
+ import ie from "../style/editable.mjs";
13
+ import { getShadowName as me } from "../utils.mjs";
14
+ import { getColumnTransformOptions as ue, arrayToObject as C } from "./utils.mjs";
15
+ import { useNamespace as de } from "../../config-provider/hooks/use-namespace.mjs";
16
+ import { useGlobalConfig as pe } from "../../config-provider/hooks/use-global-config.mjs";
17
+ import ce from "../index.vue.mjs";
18
+ const _e = /* @__PURE__ */ A({
18
19
  name: "EditableGrid",
19
20
  __name: "form-item",
20
21
  props: {
@@ -130,99 +131,110 @@ const Ee = /* @__PURE__ */ A({
130
131
  name: {},
131
132
  formItem: {}
132
133
  },
133
- setup(C, {
134
+ setup(b, {
134
135
  expose: R
135
136
  }) {
136
- const v = L(), o = C, {
137
- b: B
138
- } = se("editable-aggrid"), x = re("editable-aggrid"), i = y(), {
139
- internalInstance: n
140
- } = oe(), s = ie(o.name);
141
- let p = [];
142
- O(() => {
143
- const e = o.formItem?.initialValue ?? te(n?.getInitialValues() ?? {}, o.name);
144
- e && (n?.updateInitialModel(s, b(m(e), o.rowKey)), p = m(e), _(m(e), "suffix", !0));
137
+ const B = L(), o = b, {
138
+ b: v
139
+ } = de("editable-aggrid"), x = ie("editable-aggrid"), s = g(), {
140
+ internalInstance: l
141
+ } = te();
142
+ function I(e) {
143
+ const t = ue(o.columns || []);
144
+ if (!Object.keys(t).length)
145
+ return e;
146
+ let a = [];
147
+ for (const m of e)
148
+ a.push(le(m, t));
149
+ return a;
150
+ }
151
+ const i = me(o.name);
152
+ let c = [];
153
+ P(() => {
154
+ const e = o.formItem?.initialValue ?? ne(l?.getInitialValues() ?? {}, o.name);
155
+ e && (l?.updateInitialModel(i, C(u(e), o.rowKey)), c = u(e), _(u(e), "suffix", !0));
145
156
  });
146
- const r = y([]), I = ae(o.name);
147
- P(() => I.value, (e) => {
148
- Z(e, r.value) || c(e ?? m(p));
157
+ const r = g([]), S = ae(o.name);
158
+ G(() => S.value, (e) => {
159
+ ee(e, r.value) || f(e ?? u(c));
149
160
  }, {
150
161
  deep: !0,
151
162
  flush: "post"
152
163
  });
153
- const S = me("valueTypeMap"), E = le(o, S, s), {
164
+ const T = pe("valueTypeMap"), E = re(o, T, i), {
154
165
  add: F,
155
- addMultiple: T,
166
+ addMultiple: V,
156
167
  __addMultiple: _,
157
168
  remove: N,
158
- removeByKey: V,
159
- getRowData: j,
169
+ removeByKey: j,
170
+ getRowData: k,
160
171
  getRowsData: D,
161
- setRowData: k,
172
+ setRowData: O,
162
173
  clear: H,
163
174
  refreshRowIds: d
164
- } = ne(o, n, r, s);
175
+ } = se(o, l, r, i);
165
176
  function K() {
166
- const e = i.value?._internalGridApi;
177
+ const e = s.value?._internalGridApi;
167
178
  if (!d.value?.length || !e)
168
179
  return;
169
- const a = d.value.map((t) => e.getRowNode(t)).filter((t) => !!t);
180
+ const t = d.value.map((a) => e.getRowNode(a)).filter((a) => !!a);
170
181
  e.refreshCells({
171
- rowNodes: a,
182
+ rowNodes: t,
172
183
  force: !0
173
184
  }), d.value = [];
174
185
  }
175
- function c(e) {
186
+ function f(e) {
176
187
  r.value = [...e];
177
- const a = b(e, o.rowKey);
178
- n?.setFieldValue(o.name, [...e]), n?.setFieldValue(s, a);
188
+ const t = C(e, o.rowKey);
189
+ l?.setFieldValue(o.name, [...e]), l?.setFieldValue(i, t);
179
190
  }
180
- function f(e, a) {
181
- const t = e === "end" ? r.value.length - 1 : e;
182
- i.value?.scrollToRow(t, a);
191
+ function w(e, t) {
192
+ const a = e === "end" ? r.value.length - 1 : e;
193
+ s.value?.scrollToRow(a, t);
183
194
  }
184
- function M(e, a) {
185
- i.value?.scrollToColumn(e, a);
195
+ function M(e, t) {
196
+ s.value?.scrollToColumn(e, t);
186
197
  }
187
198
  return R({
188
199
  add: F,
189
- addMultiple: T,
200
+ addMultiple: V,
190
201
  remove: N,
191
- removeByKey: V,
192
- getRowData: j,
202
+ removeByKey: j,
203
+ getRowData: k,
193
204
  getRowsData: D,
194
- setRowData: k,
205
+ setRowData: O,
195
206
  clear: H,
196
- setTableData: c,
197
- scrollTo: f,
198
- scrollToRow: f,
207
+ setTableData: f,
208
+ scrollTo: w,
209
+ scrollToRow: w,
199
210
  scrollToColumn: M
200
- }), (e, a) => (W(), G(U, null, [u(l(h).FormItem, {
211
+ }), (e, t) => (U(), W($, null, [p(n(y).FormItem, {
201
212
  hidden: "",
202
213
  name: e.name,
203
- "initial-value": e.formItem?.initialValue
204
- }, null, 8, ["name", "initial-value"]), u(l(h).FormItem, {
214
+ "initial-value": e.formItem?.initialValue,
215
+ transform: I
216
+ }, null, 8, ["name", "initial-value"]), p(n(y).FormItem, {
205
217
  label: e.label
206
218
  }, {
207
- default: g(() => [u(de, $(l(ee)(o, ["name", "maxLength", "onChange", "defaultValue", "formItem"]), {
219
+ default: h(() => [p(ce, q(n(oe)(o, ["name", "maxLength", "onChange", "defaultValue", "formItem"]), {
208
220
  ref_key: "tableRef",
209
- ref: i,
210
- class: [l(B)(), l(x)],
221
+ ref: s,
222
+ class: [n(v)(), n(x)],
211
223
  size: "mini",
212
- columns: l(E),
224
+ columns: n(E),
213
225
  "data-source": r.value,
214
226
  "search-form": !1,
215
227
  onUpdate: K
216
- }), q({
228
+ }), J({
217
229
  _: 2
218
- }, [J(v, (t, w) => ({
219
- name: w,
220
- fn: g((z) => [Q(e.$slots, w, X(Y(z || {})))])
230
+ }, [Q(B, (a, m) => ({
231
+ name: m,
232
+ fn: h((z) => [X(e.$slots, m, Y(Z(z || {})))])
221
233
  }))]), 1040, ["class", "columns", "data-source"])]),
222
234
  _: 3
223
235
  }, 8, ["label"])], 64));
224
236
  }
225
237
  });
226
238
  export {
227
- Ee as default
239
+ _e as default
228
240
  };