@aplus-frontend/ui 7.10.6 → 7.11.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.
- package/es/index.mjs +93 -91
- package/es/src/ag-grid/editable/form-item.vue.mjs +75 -63
- package/es/src/ag-grid/editable/index.vue.mjs +80 -72
- package/es/src/ag-grid/editable/interface.d.ts +2 -1
- package/es/src/ag-grid/editable/utils.d.ts +7 -0
- package/es/src/ag-grid/editable/utils.mjs +32 -17
- package/es/src/ap-form/ap-form.vue2.mjs +144 -153
- package/es/src/ap-form/utils/transform.d.ts +6 -0
- package/es/src/ap-form/utils/transform.mjs +30 -0
- package/es/src/ap-pro-card/components/card/index.vue.d.ts +1 -1
- package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +129 -93
- package/es/src/business/ap-appendix/interface.d.ts +4 -0
- package/es/src/business/ap-appendix/style/index.mjs +56 -34
- package/es/src/business/ap-attachment/ApAttachment.mjs +112 -89
- package/es/src/business/ap-attachment/style/index.mjs +21 -7
- package/es/src/business/ap-file-preview/ap-file-preview.vue.d.ts +4 -0
- package/es/src/business/ap-file-preview/ap-file-preview.vue.mjs +4 -0
- package/es/src/business/ap-file-preview/ap-file-preview.vue2.mjs +103 -0
- package/es/src/business/ap-file-preview/components/error-result/index.vue.d.ts +6 -0
- package/es/src/business/ap-file-preview/components/error-result/index.vue.mjs +4 -0
- package/es/src/business/ap-file-preview/components/error-result/index.vue2.mjs +40 -0
- package/es/src/business/ap-file-preview/icons/not-exist-icon.vue.d.ts +3 -0
- package/es/src/business/ap-file-preview/icons/not-exist-icon.vue.mjs +20 -0
- package/es/src/business/ap-file-preview/icons/not-preview-icon.vue.d.ts +3 -0
- package/es/src/business/ap-file-preview/icons/not-preview-icon.vue.mjs +20 -0
- package/es/src/business/ap-file-preview/index.d.ts +7 -0
- package/es/src/business/ap-file-preview/index.mjs +8 -0
- package/es/src/business/ap-file-preview/interface.d.ts +43 -0
- package/es/src/business/ap-file-preview/style/index.d.ts +5 -0
- package/es/src/business/ap-file-preview/style/index.mjs +46 -0
- package/es/src/business/ap-file-preview/utils/create-file-preview-modal.d.ts +2 -0
- package/es/src/business/ap-file-preview/utils/create-file-preview-modal.mjs +18 -0
- package/es/src/business/ap-file-preview/utils/default-parser-plugin.d.ts +4 -0
- package/es/src/business/ap-file-preview/utils/default-parser-plugin.mjs +48 -0
- package/es/src/business/ap-image/ApImage.vue2.mjs +16 -16
- package/es/src/business/ap-upload/apUpload.vue.d.ts +1 -1
- package/es/src/business/ap-upload/apUploadTypes.d.ts +2 -2
- package/es/src/business/ap-upload/components/MultipleFile.vue2.mjs +94 -82
- package/es/src/business/ap-upload/style/multiple-file.mjs +6 -3
- package/es/src/business/index.d.ts +1 -0
- package/es/src/business/index.mjs +16 -14
- package/es/src/config-provider/config-provider-props.d.ts +6 -0
- package/es/src/config-provider/config-provider-props.mjs +6 -2
- package/es/src/config-provider/config-provider.d.ts +17 -1
- package/es/src/config-provider/config-provider.mjs +24 -23
- package/es/src/config-provider/hooks/use-global-config.d.ts +7 -0
- package/es/src/config-provider/index.d.ts +31 -3
- package/es/src/index.mjs +74 -72
- package/es/src/locale/lang/en.mjs +5 -0
- package/es/src/locale/lang/zh-cn.mjs +5 -0
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/index.js +1 -1
- package/lib/src/ag-grid/editable/form-item.vue.js +1 -1
- package/lib/src/ag-grid/editable/index.vue.js +1 -1
- package/lib/src/ag-grid/editable/interface.d.ts +2 -1
- package/lib/src/ag-grid/editable/utils.d.ts +7 -0
- package/lib/src/ag-grid/editable/utils.js +1 -1
- package/lib/src/ap-form/ap-form.vue2.js +1 -1
- package/lib/src/ap-form/utils/transform.d.ts +6 -0
- package/lib/src/ap-form/utils/transform.js +1 -0
- package/lib/src/ap-pro-card/components/card/index.vue.d.ts +1 -1
- package/lib/src/business/ap-appendix/ap-appendix.vue2.js +1 -1
- package/lib/src/business/ap-appendix/interface.d.ts +4 -0
- package/lib/src/business/ap-appendix/style/index.js +1 -1
- package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
- package/lib/src/business/ap-attachment/style/index.js +1 -1
- package/lib/src/business/ap-file-preview/ap-file-preview.vue.d.ts +4 -0
- package/lib/src/business/ap-file-preview/ap-file-preview.vue.js +1 -0
- package/lib/src/business/ap-file-preview/ap-file-preview.vue2.js +1 -0
- package/lib/src/business/ap-file-preview/components/error-result/index.vue.d.ts +6 -0
- package/lib/src/business/ap-file-preview/components/error-result/index.vue.js +1 -0
- package/lib/src/business/ap-file-preview/components/error-result/index.vue2.js +1 -0
- package/lib/src/business/ap-file-preview/icons/not-exist-icon.vue.d.ts +3 -0
- package/lib/src/business/ap-file-preview/icons/not-exist-icon.vue.js +1 -0
- package/lib/src/business/ap-file-preview/icons/not-preview-icon.vue.d.ts +3 -0
- package/lib/src/business/ap-file-preview/icons/not-preview-icon.vue.js +1 -0
- package/lib/src/business/ap-file-preview/index.d.ts +7 -0
- package/lib/src/business/ap-file-preview/index.js +1 -0
- package/lib/src/business/ap-file-preview/interface.d.ts +43 -0
- package/lib/src/business/ap-file-preview/style/index.d.ts +5 -0
- package/lib/src/business/ap-file-preview/style/index.js +1 -0
- package/lib/src/business/ap-file-preview/utils/create-file-preview-modal.d.ts +2 -0
- package/lib/src/business/ap-file-preview/utils/create-file-preview-modal.js +1 -0
- package/lib/src/business/ap-file-preview/utils/default-parser-plugin.d.ts +4 -0
- package/lib/src/business/ap-file-preview/utils/default-parser-plugin.js +1 -0
- package/lib/src/business/ap-image/ApImage.vue2.js +1 -1
- package/lib/src/business/ap-upload/apUpload.vue.d.ts +1 -1
- package/lib/src/business/ap-upload/apUploadTypes.d.ts +2 -2
- package/lib/src/business/ap-upload/components/MultipleFile.vue2.js +1 -1
- package/lib/src/business/ap-upload/style/multiple-file.js +1 -1
- package/lib/src/business/index.d.ts +1 -0
- package/lib/src/business/index.js +1 -1
- package/lib/src/config-provider/config-provider-props.d.ts +6 -0
- package/lib/src/config-provider/config-provider-props.js +1 -1
- package/lib/src/config-provider/config-provider.d.ts +17 -1
- package/lib/src/config-provider/config-provider.js +1 -1
- package/lib/src/config-provider/hooks/use-global-config.d.ts +7 -0
- package/lib/src/config-provider/index.d.ts +31 -3
- package/lib/src/index.js +1 -1
- package/lib/src/locale/lang/en.js +1 -1
- package/lib/src/locale/lang/zh-cn.js +1 -1
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- 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
|
|
9
|
-
import { ConfigProvider as
|
|
10
|
-
import { APConfigProvider as
|
|
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
|
|
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
|
|
36
|
-
import { default as
|
|
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
|
|
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
|
|
62
|
-
import { default as
|
|
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
|
|
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
|
|
88
|
-
import { ApLadder as
|
|
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
|
|
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
|
|
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
|
|
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 {
|
|
127
|
-
import {
|
|
128
|
-
import {
|
|
129
|
-
import { default as Ap } from "./src/editable-table/
|
|
130
|
-
import {
|
|
131
|
-
import {
|
|
132
|
-
import { default as Ip } from "./src/scroll-bar/
|
|
133
|
-
import { default as Tp } from "./src/scroll-
|
|
134
|
-
import { default as Cp } from "./src/
|
|
135
|
-
import { default as Dp } from "./src/
|
|
136
|
-
import { default as
|
|
137
|
-
import {
|
|
138
|
-
import {
|
|
139
|
-
import {
|
|
140
|
-
import { default as
|
|
141
|
-
import { default as kp } from "./src/ap-grid/editable/
|
|
142
|
-
import { default as Up } from "./src/
|
|
143
|
-
import { default as Vp } from "./src/text/
|
|
144
|
-
import { default as _p } from "./src/
|
|
145
|
-
import {
|
|
146
|
-
import {
|
|
147
|
-
import { default as Jp } from "./src/ag-grid/
|
|
148
|
-
import { default as Xp } from "./src/ag-grid/editable/
|
|
149
|
-
import {
|
|
150
|
-
import {
|
|
151
|
-
import {
|
|
152
|
-
import {
|
|
153
|
-
import {
|
|
154
|
-
import {
|
|
155
|
-
import {
|
|
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
|
-
|
|
168
|
-
|
|
169
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
233
|
+
Pe as ApFormProvider,
|
|
232
234
|
Ae as ApFormSearchForm,
|
|
233
235
|
Ie as ApFormSet,
|
|
234
|
-
|
|
236
|
+
yp as ApGrid,
|
|
235
237
|
Dr as ApImage,
|
|
236
|
-
|
|
237
|
-
|
|
238
|
+
Pr as ApInputRadio,
|
|
239
|
+
Pt as ApKeepAlive,
|
|
238
240
|
Gt as ApKeepAliveProps,
|
|
239
241
|
Lr as ApLabel,
|
|
240
242
|
Rr as ApLabelGroup,
|
|
241
|
-
|
|
242
|
-
|
|
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
|
-
|
|
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
|
-
|
|
258
|
+
sp as ApTable,
|
|
257
259
|
Zo as ApTableModal,
|
|
258
260
|
$t as ApTag,
|
|
259
261
|
Wt as ApTagGroup,
|
|
260
|
-
|
|
261
|
-
|
|
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
|
-
|
|
273
|
+
N as ConfigProvider,
|
|
272
274
|
A as DEFAULT_NAMESPACE,
|
|
273
275
|
i as DEFAULT_UIMODE,
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
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
|
-
|
|
284
|
+
Tp as InternalScrollBar,
|
|
283
285
|
Vo as LoadingBar,
|
|
284
286
|
Lt as LruCacher,
|
|
285
|
-
|
|
287
|
+
$p as Mask,
|
|
286
288
|
Jt as NeedNameKeyDefault,
|
|
287
|
-
|
|
288
|
-
|
|
289
|
+
Dp as Portal,
|
|
290
|
+
vp as ROW_SELECTION_FIELD,
|
|
289
291
|
_o as Render,
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
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
|
-
|
|
305
|
-
|
|
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
|
-
|
|
317
|
-
|
|
318
|
+
Nr as locales,
|
|
319
|
+
E as namespaceContextKey,
|
|
318
320
|
g as provideGlobalConfig,
|
|
319
|
-
|
|
321
|
+
Mp as toTreeArray,
|
|
320
322
|
G as translate,
|
|
321
323
|
Ut as useAgGridModal,
|
|
322
324
|
Vt as useAgGridSelectModal,
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
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
|
-
|
|
330
|
-
|
|
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
|
-
|
|
337
|
+
Aa as useResize,
|
|
336
338
|
or as useTableModal,
|
|
337
|
-
|
|
339
|
+
xp as useTablePaging,
|
|
338
340
|
tr as useTableSelectModal,
|
|
339
|
-
|
|
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
|
|
2
|
-
import { cloneDeep as
|
|
3
|
-
import { ApForm as
|
|
4
|
-
import { useInjectForm as
|
|
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
|
|
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
|
|
9
|
-
import { useEditableFormItemApi as
|
|
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
|
|
12
|
-
import { getShadowName as
|
|
13
|
-
import { arrayToObject as
|
|
14
|
-
import { useNamespace as
|
|
15
|
-
import { useGlobalConfig as
|
|
16
|
-
import
|
|
17
|
-
const
|
|
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(
|
|
134
|
+
setup(b, {
|
|
134
135
|
expose: R
|
|
135
136
|
}) {
|
|
136
|
-
const
|
|
137
|
-
b:
|
|
138
|
-
} =
|
|
139
|
-
internalInstance:
|
|
140
|
-
} =
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
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 =
|
|
147
|
-
|
|
148
|
-
|
|
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
|
|
164
|
+
const T = pe("valueTypeMap"), E = re(o, T, i), {
|
|
154
165
|
add: F,
|
|
155
|
-
addMultiple:
|
|
166
|
+
addMultiple: V,
|
|
156
167
|
__addMultiple: _,
|
|
157
168
|
remove: N,
|
|
158
|
-
removeByKey:
|
|
159
|
-
getRowData:
|
|
169
|
+
removeByKey: j,
|
|
170
|
+
getRowData: k,
|
|
160
171
|
getRowsData: D,
|
|
161
|
-
setRowData:
|
|
172
|
+
setRowData: O,
|
|
162
173
|
clear: H,
|
|
163
174
|
refreshRowIds: d
|
|
164
|
-
} =
|
|
175
|
+
} = se(o, l, r, i);
|
|
165
176
|
function K() {
|
|
166
|
-
const e =
|
|
177
|
+
const e = s.value?._internalGridApi;
|
|
167
178
|
if (!d.value?.length || !e)
|
|
168
179
|
return;
|
|
169
|
-
const
|
|
180
|
+
const t = d.value.map((a) => e.getRowNode(a)).filter((a) => !!a);
|
|
170
181
|
e.refreshCells({
|
|
171
|
-
rowNodes:
|
|
182
|
+
rowNodes: t,
|
|
172
183
|
force: !0
|
|
173
184
|
}), d.value = [];
|
|
174
185
|
}
|
|
175
|
-
function
|
|
186
|
+
function f(e) {
|
|
176
187
|
r.value = [...e];
|
|
177
|
-
const
|
|
178
|
-
|
|
188
|
+
const t = C(e, o.rowKey);
|
|
189
|
+
l?.setFieldValue(o.name, [...e]), l?.setFieldValue(i, t);
|
|
179
190
|
}
|
|
180
|
-
function
|
|
181
|
-
const
|
|
182
|
-
|
|
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,
|
|
185
|
-
|
|
195
|
+
function M(e, t) {
|
|
196
|
+
s.value?.scrollToColumn(e, t);
|
|
186
197
|
}
|
|
187
198
|
return R({
|
|
188
199
|
add: F,
|
|
189
|
-
addMultiple:
|
|
200
|
+
addMultiple: V,
|
|
190
201
|
remove: N,
|
|
191
|
-
removeByKey:
|
|
192
|
-
getRowData:
|
|
202
|
+
removeByKey: j,
|
|
203
|
+
getRowData: k,
|
|
193
204
|
getRowsData: D,
|
|
194
|
-
setRowData:
|
|
205
|
+
setRowData: O,
|
|
195
206
|
clear: H,
|
|
196
|
-
setTableData:
|
|
197
|
-
scrollTo:
|
|
198
|
-
scrollToRow:
|
|
207
|
+
setTableData: f,
|
|
208
|
+
scrollTo: w,
|
|
209
|
+
scrollToRow: w,
|
|
199
210
|
scrollToColumn: M
|
|
200
|
-
}), (e,
|
|
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
|
-
|
|
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:
|
|
219
|
+
default: h(() => [p(ce, q(n(oe)(o, ["name", "maxLength", "onChange", "defaultValue", "formItem"]), {
|
|
208
220
|
ref_key: "tableRef",
|
|
209
|
-
ref:
|
|
210
|
-
class: [
|
|
221
|
+
ref: s,
|
|
222
|
+
class: [n(v)(), n(x)],
|
|
211
223
|
size: "mini",
|
|
212
|
-
columns:
|
|
224
|
+
columns: n(E),
|
|
213
225
|
"data-source": r.value,
|
|
214
226
|
"search-form": !1,
|
|
215
227
|
onUpdate: K
|
|
216
|
-
}),
|
|
228
|
+
}), J({
|
|
217
229
|
_: 2
|
|
218
|
-
}, [
|
|
219
|
-
name:
|
|
220
|
-
fn:
|
|
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
|
-
|
|
239
|
+
_e as default
|
|
228
240
|
};
|