@aplus-frontend/ui 0.5.30 → 0.5.32
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 +104 -100
- package/es/src/ap-grid/constants.d.ts +1 -0
- package/es/src/ap-grid/constants.mjs +4 -3
- package/es/src/ap-grid/editable/form-item.vue.mjs +42 -34
- package/es/src/ap-grid/editable/index.vue.mjs +24 -16
- package/es/src/ap-grid/editable/style/css.js +1 -0
- package/es/src/ap-grid/editable/style/index.js +1 -0
- package/es/src/ap-grid/index.d.ts +1 -0
- package/es/src/ap-grid/index.mjs +4 -0
- package/es/src/ap-grid/index.vue.mjs +94 -94
- package/es/src/ap-grid/utils/col.mjs +77 -88
- package/es/src/business/ap-product-info/ApProductInfo.mjs +33 -27
- package/es/src/editable-table/form-item.vue.mjs +15 -7
- package/es/src/editable-table/index.vue.mjs +36 -28
- package/es/src/index.d.ts +1 -0
- package/es/src/index.mjs +247 -243
- package/es/src/path-map.mjs +2 -1
- package/es/src/splitter/Panel.vue.d.ts +21 -0
- package/es/src/splitter/Panel.vue.mjs +4 -0
- package/es/src/splitter/Panel.vue2.mjs +36 -0
- package/es/src/splitter/SplitBar.vue.d.ts +4 -0
- package/es/src/splitter/SplitBar.vue.mjs +4 -0
- package/es/src/splitter/SplitBar.vue2.mjs +129 -0
- package/es/src/splitter/Splitter.vue.d.ts +6 -0
- package/es/src/splitter/Splitter.vue.mjs +4 -0
- package/es/src/splitter/Splitter.vue2.mjs +131 -0
- package/es/src/splitter/_Panel.vue.d.ts +4 -0
- package/es/src/splitter/_Panel.vue.mjs +4 -0
- package/es/src/splitter/_Panel.vue2.mjs +22 -0
- package/es/src/splitter/hooks/useItems.d.ts +10 -0
- package/es/src/splitter/hooks/useItems.mjs +26 -0
- package/es/src/splitter/hooks/useResizable.d.ts +8 -0
- package/es/src/splitter/hooks/useResizable.mjs +37 -0
- package/es/src/splitter/hooks/useResize.d.ts +4 -0
- package/es/src/splitter/hooks/useResize.mjs +72 -0
- package/es/src/splitter/hooks/useSizes.d.ts +4 -0
- package/es/src/splitter/hooks/useSizes.mjs +58 -0
- package/es/src/splitter/index.d.ts +8 -0
- package/es/src/splitter/index.mjs +10 -0
- package/es/src/splitter/interface.d.ts +70 -0
- package/es/src/splitter/interface.mjs +1 -0
- package/es/src/splitter/style/css.d.ts +0 -0
- package/es/src/splitter/style/css.js +1 -0
- package/es/src/splitter/style/index.d.ts +0 -0
- package/es/src/splitter/style/index.js +1 -0
- package/lib/index.js +1 -1
- package/lib/src/ap-grid/constants.d.ts +1 -0
- package/lib/src/ap-grid/constants.js +1 -1
- package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
- package/lib/src/ap-grid/editable/index.vue.js +1 -1
- package/lib/src/ap-grid/editable/style/css.cjs +1 -0
- package/lib/src/ap-grid/editable/style/index.cjs +1 -0
- package/lib/src/ap-grid/index.d.ts +1 -0
- package/lib/src/ap-grid/index.js +1 -1
- package/lib/src/ap-grid/index.vue.js +1 -1
- package/lib/src/ap-grid/utils/col.js +1 -1
- package/lib/src/business/ap-product-info/ApProductInfo.js +1 -1
- package/lib/src/editable-table/form-item.vue.js +1 -1
- package/lib/src/editable-table/index.vue.js +1 -1
- package/lib/src/index.d.ts +1 -0
- package/lib/src/index.js +1 -1
- package/lib/src/path-map.js +1 -1
- package/lib/src/splitter/Panel.vue.d.ts +21 -0
- package/lib/src/splitter/Panel.vue.js +1 -0
- package/lib/src/splitter/Panel.vue2.js +1 -0
- package/lib/src/splitter/SplitBar.vue.d.ts +4 -0
- package/lib/src/splitter/SplitBar.vue.js +1 -0
- package/lib/src/splitter/SplitBar.vue2.js +1 -0
- package/lib/src/splitter/Splitter.vue.d.ts +6 -0
- package/lib/src/splitter/Splitter.vue.js +1 -0
- package/lib/src/splitter/Splitter.vue2.js +1 -0
- package/lib/src/splitter/_Panel.vue.d.ts +4 -0
- package/lib/src/splitter/_Panel.vue.js +1 -0
- package/lib/src/splitter/_Panel.vue2.js +1 -0
- package/lib/src/splitter/hooks/useItems.d.ts +10 -0
- package/lib/src/splitter/hooks/useItems.js +1 -0
- package/lib/src/splitter/hooks/useResizable.d.ts +8 -0
- package/lib/src/splitter/hooks/useResizable.js +1 -0
- package/lib/src/splitter/hooks/useResize.d.ts +4 -0
- package/lib/src/splitter/hooks/useResize.js +1 -0
- package/lib/src/splitter/hooks/useSizes.d.ts +4 -0
- package/lib/src/splitter/hooks/useSizes.js +1 -0
- package/lib/src/splitter/index.d.ts +8 -0
- package/lib/src/splitter/index.js +1 -0
- package/lib/src/splitter/interface.d.ts +70 -0
- package/lib/src/splitter/interface.js +1 -0
- package/lib/src/splitter/style/css.cjs +1 -0
- package/lib/src/splitter/style/css.d.ts +0 -0
- package/lib/src/splitter/style/index.cjs +1 -0
- package/lib/src/splitter/style/index.d.ts +0 -0
- package/package.json +1 -1
- package/theme/ap-grid/index.css +9 -0
- package/theme/ap-grid/index.less +10 -0
- package/theme/ap-product-info/ap-product-info.css +0 -1
- package/theme/ap-product-info/ap-product-info.less +1 -1
- package/theme/index.css +243 -5
- package/theme/index.less +1 -0
- package/theme/mixins/config.less +11 -0
- package/theme/splitter/index.css +230 -0
- package/theme/splitter/index.less +240 -0
package/es/index.mjs
CHANGED
|
@@ -4,15 +4,15 @@ import "./src/hooks/index.mjs";
|
|
|
4
4
|
import { configProviderProps as d } from "./src/config-provider/config-provider-props.mjs";
|
|
5
5
|
import { DEFAULT_NAMESPACE as s, DEFAULT_UIMODE as A, configProviderContextKey as i } from "./src/config-provider/constants.mjs";
|
|
6
6
|
import { keysOf as c, provideGlobalConfig as F, useGlobalConfig as I } from "./src/config-provider/hooks/use-global-config.mjs";
|
|
7
|
-
import { buildLocaleContext as
|
|
8
|
-
import { defaultNamespace as h, namespaceContextKey as
|
|
9
|
-
import { ConfigProvider as
|
|
7
|
+
import { buildLocaleContext as S, buildTranslator as b, localeContextKey as C, translate as D, useLocale as g } from "./src/config-provider/hooks/use-locale.mjs";
|
|
8
|
+
import { defaultNamespace as h, namespaceContextKey as E, useGetDerivedNamespace as P, useNamespace as R } from "./src/config-provider/hooks/use-namespace.mjs";
|
|
9
|
+
import { ConfigProvider as M, globalConfigCached as N } from "./src/config-provider/config-provider.mjs";
|
|
10
10
|
import { APConfigProvider as w } from "./src/config-provider/index.mjs";
|
|
11
11
|
import { ApFormItemText as v } from "./src/ap-form/items/text/index.mjs";
|
|
12
|
-
import { default as
|
|
12
|
+
import { default as O } from "./src/ap-form/items/text-area/index.vue.mjs";
|
|
13
13
|
import { default as U } from "./src/ap-form/items/number/index.vue.mjs";
|
|
14
|
-
import { default as
|
|
15
|
-
import { default as
|
|
14
|
+
import { default as z } from "./src/ap-form/items/date/index.vue.mjs";
|
|
15
|
+
import { default as W } from "./src/ap-form/items/date-range/index.vue.mjs";
|
|
16
16
|
import { default as $ } from "./src/ap-form/items/radio/index.vue.mjs";
|
|
17
17
|
import { default as q } from "./src/ap-form/items/select/index.vue.mjs";
|
|
18
18
|
import { default as Q } from "./src/ap-form/items/switch/index.vue.mjs";
|
|
@@ -27,19 +27,19 @@ import { default as se } from "./src/ap-form/search-form/index.vue.mjs";
|
|
|
27
27
|
import { default as ie } from "./src/ap-form/modal-form/index.vue.mjs";
|
|
28
28
|
import { default as ce } from "./src/ap-form/dependency/index.vue.mjs";
|
|
29
29
|
import { default as Ie } from "./src/ap-form/set/index.vue.mjs";
|
|
30
|
-
import { default as
|
|
30
|
+
import { default as Se } from "./src/ap-form/drawer-form/index.vue.mjs";
|
|
31
31
|
import { default as Ce } from "./src/ap-form/render/control.vue.mjs";
|
|
32
|
-
import { default as
|
|
32
|
+
import { default as ge } from "./src/ap-form/render/item.vue.mjs";
|
|
33
33
|
import { default as he } from "./src/ap-form/provider/index.vue.mjs";
|
|
34
|
-
import { ApField as
|
|
35
|
-
import { ApFieldText as
|
|
34
|
+
import { ApField as Pe } from "./src/ap-field/index.mjs";
|
|
35
|
+
import { ApFieldText as Le } from "./src/ap-field/text/index.mjs";
|
|
36
36
|
import { default as Ne } from "./src/ap-field/checkbox/index.vue.mjs";
|
|
37
37
|
import { default as we } from "./src/ap-field/date/index.vue.mjs";
|
|
38
38
|
import { default as ve } from "./src/ap-field/number/index.vue.mjs";
|
|
39
|
-
import { default as
|
|
39
|
+
import { default as Oe } from "./src/ap-field/radio/index.vue.mjs";
|
|
40
40
|
import { default as Ue } from "./src/ap-field/switch/index.vue.mjs";
|
|
41
|
-
import { default as
|
|
42
|
-
import { default as
|
|
41
|
+
import { default as ze } from "./src/ap-field/text-area/index.vue.mjs";
|
|
42
|
+
import { default as We } from "./src/ap-field/date-range/index.vue.mjs";
|
|
43
43
|
import { default as $e } from "./src/ap-field/select/index.vue.mjs";
|
|
44
44
|
import { default as qe } from "./src/ap-field/text/password.vue.mjs";
|
|
45
45
|
import { default as Qe } from "./src/ap-field/slider/index.vue.mjs";
|
|
@@ -53,18 +53,18 @@ import { default as so } from "./src/ap-action/item-popconfirm/index.vue.mjs";
|
|
|
53
53
|
import { default as io } from "./src/ap-action/item-dropdown/index.vue.mjs";
|
|
54
54
|
import { default as co } from "./src/ap-action/group/index.vue.mjs";
|
|
55
55
|
import { DictCode as Io, langMap as To } from "./src/work-order-modal/interfaces.mjs";
|
|
56
|
-
import { createWorkOrderModal as
|
|
57
|
-
import { default as
|
|
56
|
+
import { createWorkOrderModal as bo } from "./src/work-order-modal/createWorkOrder.mjs";
|
|
57
|
+
import { default as Do } from "./src/work-order-modal/work-order-modal.vue.mjs";
|
|
58
58
|
import { default as Go } from "./src/ap-tag/ap-tag.vue.mjs";
|
|
59
|
-
import { default as
|
|
60
|
-
import { default as
|
|
61
|
-
import { NeedNameKeyDefault as
|
|
59
|
+
import { default as Eo } from "./src/ap-tag/ap-tag-group.vue.mjs";
|
|
60
|
+
import { default as Ro } from "./src/ap-info-layout/ApInfoLayout.vue.mjs";
|
|
61
|
+
import { NeedNameKeyDefault as Mo } from "./src/ap-upload/apUploadTypes.mjs";
|
|
62
62
|
import { default as yo } from "./src/ap-upload/apUpload.vue.mjs";
|
|
63
63
|
import { ApDownLoadNeedNameKeyDefault as ko } from "./src/ap-download/interface.mjs";
|
|
64
64
|
import { default as Bo } from "./src/ap-download/ap-download.vue.mjs";
|
|
65
|
-
import { CheckCard as
|
|
66
|
-
import { default as
|
|
67
|
-
import { ApModal as
|
|
65
|
+
import { CheckCard as Ko } from "./src/check-card/index.mjs";
|
|
66
|
+
import { default as _o } from "./src/check-card/group.vue.mjs";
|
|
67
|
+
import { ApModal as Vo } from "./src/ap-modal/index.mjs";
|
|
68
68
|
import { default as Ho } from "./src/ap-list/index.vue.mjs";
|
|
69
69
|
import { default as jo } from "./src/ap-button/ap-button.vue.mjs";
|
|
70
70
|
import { default as Jo } from "./src/ap-button/ap-action-button.vue.mjs";
|
|
@@ -80,17 +80,17 @@ import { ApBatchActionGroup as Ar } from "./src/business/ap-batch-action-group/i
|
|
|
80
80
|
import { ApButtonGroup as nr } from "./src/business/ap-button-group/index.mjs";
|
|
81
81
|
import { ApCard as Fr } from "./src/business/ap-card/index.mjs";
|
|
82
82
|
import { ApExpandAlert as Tr } from "./src/business/ap-expand-alert/index.mjs";
|
|
83
|
-
import { ApExportGroupActionType as
|
|
84
|
-
import { ApExportGroup as
|
|
83
|
+
import { ApExportGroupActionType as br } from "./src/business/ap-export-group/interface.mjs";
|
|
84
|
+
import { ApExportGroup as Dr } from "./src/business/ap-export-group/index.mjs";
|
|
85
85
|
import { handleExportDownload as Gr } from "./src/business/ap-export-group/handleExportDownload.mjs";
|
|
86
|
-
import { convertExportField as
|
|
87
|
-
import { ApImage as
|
|
88
|
-
import { ApInputRadio as
|
|
86
|
+
import { convertExportField as Er } from "./src/business/ap-export-group/convertExportField.mjs";
|
|
87
|
+
import { ApImage as Rr } from "./src/business/ap-image/index.mjs";
|
|
88
|
+
import { ApInputRadio as Mr } from "./src/business/ap-input-radio/index.mjs";
|
|
89
89
|
import { ApLabel as yr, ApLabelGroup as wr } from "./src/business/ap-label/index.mjs";
|
|
90
90
|
import { locales as vr } from "./src/business/ap-ladder/interface.mjs";
|
|
91
|
-
import { ApLadder as
|
|
91
|
+
import { ApLadder as Or } from "./src/business/ap-ladder/index.mjs";
|
|
92
92
|
import { ApSelectLayout as Ur } from "./src/business/ap-select-layout/index.mjs";
|
|
93
|
-
import { ApStatus as
|
|
93
|
+
import { ApStatus as zr, ApStatusGroup as Vr } from "./src/business/ap-status/index.mjs";
|
|
94
94
|
import { ApTitle as Hr } from "./src/business/ap-title/index.mjs";
|
|
95
95
|
import { usePageListApTable as jr } from "./src/business/hooks/usePageListApTable.mjs";
|
|
96
96
|
import { useTableRefresh as Jr } from "./src/business/hooks/useTableRefresh.mjs";
|
|
@@ -103,33 +103,35 @@ import { ApAppendix as dt } from "./src/business/ap-appendix/index.mjs";
|
|
|
103
103
|
import { ApExtensionSelect as st, ApGroupSearch as At, ApPopoverSelect as it } from "./src/business/ap-group-search/index.mjs";
|
|
104
104
|
import { default as ct } from "./src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs";
|
|
105
105
|
import { default as It } from "./src/business/batch-input-group/index.vue.mjs";
|
|
106
|
-
import { default as
|
|
106
|
+
import { default as St } from "./src/business/batch-input-group/form-item.vue.mjs";
|
|
107
107
|
import { ApSizeInput as Ct } from "./src/business/ap-size-input/index.mjs";
|
|
108
|
-
import { ApProductInfo as
|
|
108
|
+
import { ApProductInfo as gt } from "./src/business/ap-product-info/index.mjs";
|
|
109
109
|
import { useTablePaging as ht } from "./src/ap-table/hooks/use-table-paging.mjs";
|
|
110
|
-
import { ApTable as
|
|
111
|
-
import { default as
|
|
110
|
+
import { ApTable as Pt } from "./src/ap-table/index.mjs";
|
|
111
|
+
import { default as Lt } from "./src/editable-table/index.vue.mjs";
|
|
112
112
|
import { default as Nt } from "./src/editable-table/form-item.vue.mjs";
|
|
113
113
|
import { default as wt } from "./src/ap-descriptions/ap-descriptions.vue.mjs";
|
|
114
114
|
import { ensureRangeValue as vt } from "./src/scroll-bar/utils/index.mjs";
|
|
115
|
-
import { default as
|
|
115
|
+
import { default as Ot } from "./src/scroll-bar/index.vue.mjs";
|
|
116
116
|
import { default as Ut } from "./src/scroll-bar/internal.vue.mjs";
|
|
117
|
-
import { default as
|
|
118
|
-
import { default as
|
|
117
|
+
import { default as zt } from "./src/scroll-view/index.vue.mjs";
|
|
118
|
+
import { default as Wt } from "./src/portal/index.vue.mjs";
|
|
119
119
|
import { default as $t } from "./src/full-screen/index.vue.mjs";
|
|
120
120
|
import { default as qt } from "./src/resize-observer/index.vue.mjs";
|
|
121
|
-
import {
|
|
122
|
-
import { default as Yt } from "./src/ap-grid/
|
|
123
|
-
import { default as ep } from "./src/ap-grid/editable/
|
|
124
|
-
import { default as rp } from "./src/
|
|
125
|
-
import { default as pp } from "./src/text/
|
|
126
|
-
import { default as fp } from "./src/
|
|
127
|
-
import {
|
|
128
|
-
import {
|
|
129
|
-
import {
|
|
130
|
-
import {
|
|
131
|
-
import {
|
|
132
|
-
import {
|
|
121
|
+
import { ROW_SELECTION_FIELD as Qt } from "./src/ap-grid/constants.mjs";
|
|
122
|
+
import { default as Yt } from "./src/ap-grid/index.vue.mjs";
|
|
123
|
+
import { default as ep } from "./src/ap-grid/editable/index.vue.mjs";
|
|
124
|
+
import { default as rp } from "./src/ap-grid/editable/form-item.vue.mjs";
|
|
125
|
+
import { default as pp } from "./src/text/index.vue.mjs";
|
|
126
|
+
import { default as fp } from "./src/text/group.vue.mjs";
|
|
127
|
+
import { default as lp } from "./src/mask/index.vue.mjs";
|
|
128
|
+
import { Splitter as dp } from "./src/splitter/index.mjs";
|
|
129
|
+
import { useMessage as sp } from "./src/hooks/useMessage.mjs";
|
|
130
|
+
import { useControllableValue as ip } from "./src/hooks/useControllableValue.mjs";
|
|
131
|
+
import { useManualRef as cp } from "./src/hooks/useManualRef.mjs";
|
|
132
|
+
import { useThrottleRef as Ip } from "./src/hooks/useThrottleRef.mjs";
|
|
133
|
+
import { useFullScreen as Sp } from "./src/hooks/useFullScreen.mjs";
|
|
134
|
+
import { useResize as Cp } from "./src/hooks/useResize.mjs";
|
|
133
135
|
const a = {
|
|
134
136
|
install: (r) => {
|
|
135
137
|
for (const t in o) {
|
|
@@ -159,41 +161,41 @@ export {
|
|
|
159
161
|
Bo as ApDownload,
|
|
160
162
|
Zo as ApDrawer,
|
|
161
163
|
Tr as ApExpandAlert,
|
|
162
|
-
|
|
163
|
-
|
|
164
|
+
Dr as ApExportGroup,
|
|
165
|
+
br as ApExportGroupActionType,
|
|
164
166
|
st as ApExtensionSelect,
|
|
165
|
-
|
|
167
|
+
Pe as ApField,
|
|
166
168
|
Ne as ApFieldCheckbox,
|
|
167
169
|
we as ApFieldDate,
|
|
168
|
-
|
|
170
|
+
We as ApFieldDateRange,
|
|
169
171
|
ve as ApFieldNumber,
|
|
170
172
|
qe as ApFieldPassword,
|
|
171
|
-
|
|
173
|
+
Oe as ApFieldRadio,
|
|
172
174
|
eo as ApFieldRate,
|
|
173
175
|
Ye as ApFieldSegmented,
|
|
174
176
|
$e as ApFieldSelect,
|
|
175
177
|
Qe as ApFieldSlider,
|
|
176
178
|
Ue as ApFieldSwitch,
|
|
177
|
-
|
|
178
|
-
|
|
179
|
+
Le as ApFieldText,
|
|
180
|
+
ze as ApFieldTextArea,
|
|
179
181
|
ro as ApFieldTreeSelect,
|
|
180
182
|
pe as ApForm,
|
|
181
183
|
Ce as ApFormControlRender,
|
|
182
184
|
ce as ApFormDependency,
|
|
183
|
-
|
|
185
|
+
Se as ApFormDrawerForm,
|
|
184
186
|
fe as ApFormItem,
|
|
185
|
-
|
|
187
|
+
St as ApFormItemBatchInput,
|
|
186
188
|
Y as ApFormItemCheckbox,
|
|
187
|
-
|
|
188
|
-
|
|
189
|
+
z as ApFormItemDate,
|
|
190
|
+
W as ApFormItemDateRange,
|
|
189
191
|
le as ApFormItemGroup,
|
|
190
192
|
U as ApFormItemNumber,
|
|
191
193
|
$ as ApFormItemRadio,
|
|
192
|
-
|
|
194
|
+
ge as ApFormItemRender,
|
|
193
195
|
q as ApFormItemSelect,
|
|
194
196
|
Q as ApFormItemSwitch,
|
|
195
197
|
v as ApFormItemText,
|
|
196
|
-
|
|
198
|
+
O as ApFormItemTextArea,
|
|
197
199
|
ee as ApFormItemTextPassword,
|
|
198
200
|
re as ApFormItemTreeSelect,
|
|
199
201
|
de as ApFormList,
|
|
@@ -201,63 +203,65 @@ export {
|
|
|
201
203
|
he as ApFormProvider,
|
|
202
204
|
se as ApFormSearchForm,
|
|
203
205
|
Ie as ApFormSet,
|
|
204
|
-
|
|
206
|
+
Yt as ApGrid,
|
|
205
207
|
At as ApGroupSearch,
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
208
|
+
Rr as ApImage,
|
|
209
|
+
Ro as ApInfoLayout,
|
|
210
|
+
Mr as ApInputRadio,
|
|
209
211
|
yr as ApLabel,
|
|
210
212
|
wr as ApLabelGroup,
|
|
211
|
-
|
|
213
|
+
Or as ApLadder,
|
|
212
214
|
Ho as ApList,
|
|
213
|
-
|
|
215
|
+
Vo as ApModal,
|
|
214
216
|
lt as ApNeedNameKeyDefault,
|
|
215
217
|
it as ApPopoverSelect,
|
|
216
|
-
|
|
218
|
+
gt as ApProductInfo,
|
|
217
219
|
Ur as ApSelectLayout,
|
|
218
220
|
Ct as ApSizeInput,
|
|
219
|
-
|
|
220
|
-
|
|
221
|
+
zr as ApStatus,
|
|
222
|
+
Vr as ApStatusGroup,
|
|
221
223
|
ft as ApSummary,
|
|
222
|
-
|
|
224
|
+
Pt as ApTable,
|
|
223
225
|
tr as ApTableModal,
|
|
224
226
|
Go as ApTag,
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
227
|
+
Eo as ApTagGroup,
|
|
228
|
+
pp as ApText,
|
|
229
|
+
fp as ApTextGroup,
|
|
228
230
|
Hr as ApTitle,
|
|
229
231
|
or as ApTransformDataHelper,
|
|
230
232
|
yo as ApUpload,
|
|
231
233
|
ct as ApUploadSingle,
|
|
232
234
|
It as BatchInputGroup,
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
235
|
+
Ko as CheckCard,
|
|
236
|
+
_o as CheckCardGroup,
|
|
237
|
+
M as ConfigProvider,
|
|
236
238
|
s as DEFAULT_NAMESPACE,
|
|
237
239
|
A as DEFAULT_UIMODE,
|
|
238
240
|
Io as DictCode,
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
241
|
+
ep as EditableGrid,
|
|
242
|
+
rp as EditableGridFormItem,
|
|
243
|
+
Lt as EditableTable,
|
|
242
244
|
Nt as EditableTableFormItem,
|
|
243
245
|
$t as FullScreen,
|
|
244
246
|
Ut as InternalScrollBar,
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
247
|
+
lp as Mask,
|
|
248
|
+
Mo as NeedNameKeyDefault,
|
|
249
|
+
Wt as Portal,
|
|
250
|
+
Qt as ROW_SELECTION_FIELD,
|
|
248
251
|
qt as ResizeObserver,
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
+
Ot as ScrollBar,
|
|
253
|
+
zt as ScrollView,
|
|
254
|
+
dp as Splitter,
|
|
255
|
+
Do as WorkOrderModal,
|
|
252
256
|
po as adminToken,
|
|
253
257
|
ao as aplusToken,
|
|
254
|
-
|
|
255
|
-
|
|
258
|
+
S as buildLocaleContext,
|
|
259
|
+
b as buildTranslator,
|
|
256
260
|
ot as computedRecords,
|
|
257
261
|
i as configProviderContextKey,
|
|
258
262
|
d as configProviderProps,
|
|
259
|
-
|
|
260
|
-
|
|
263
|
+
Er as convertExportField,
|
|
264
|
+
bo as createWorkOrderModal,
|
|
261
265
|
a as default,
|
|
262
266
|
h as defaultNamespace,
|
|
263
267
|
vt as ensureRangeValue,
|
|
@@ -270,25 +274,25 @@ export {
|
|
|
270
274
|
To as langMap,
|
|
271
275
|
C as localeContextKey,
|
|
272
276
|
vr as locales,
|
|
273
|
-
|
|
277
|
+
E as namespaceContextKey,
|
|
274
278
|
l as pathMap,
|
|
275
279
|
F as provideGlobalConfig,
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
+
D as translate,
|
|
281
|
+
ip as useControllableValue,
|
|
282
|
+
Sp as useFullScreen,
|
|
283
|
+
P as useGetDerivedNamespace,
|
|
280
284
|
I as useGlobalConfig,
|
|
281
285
|
Zr as useGridRefresh,
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
+
g as useLocale,
|
|
287
|
+
cp as useManualRef,
|
|
288
|
+
sp as useMessage,
|
|
289
|
+
R as useNamespace,
|
|
286
290
|
Xr as usePageListApGrid,
|
|
287
291
|
jr as usePageListApTable,
|
|
288
|
-
|
|
292
|
+
Cp as useResize,
|
|
289
293
|
ar as useTableModal,
|
|
290
294
|
ht as useTablePaging,
|
|
291
295
|
Jr as useTableRefresh,
|
|
292
296
|
mr as useTableSelectModal,
|
|
293
|
-
|
|
297
|
+
Ip as useThrottleRef
|
|
294
298
|
};
|
|
@@ -2,11 +2,12 @@ const l = {
|
|
|
2
2
|
mini: "small",
|
|
3
3
|
small: "small",
|
|
4
4
|
medium: "small"
|
|
5
|
-
},
|
|
5
|
+
}, e = {
|
|
6
6
|
small: "medium",
|
|
7
7
|
middle: void 0
|
|
8
|
-
};
|
|
8
|
+
}, s = "_ap-grid-row-selection-field";
|
|
9
9
|
export {
|
|
10
|
+
s as ROW_SELECTION_FIELD,
|
|
10
11
|
l as sizeMap,
|
|
11
|
-
|
|
12
|
+
e as sizeReverseMap
|
|
12
13
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as P, useSlots as A, toRef as H, ref as h, unref as
|
|
1
|
+
import { defineComponent as P, useSlots as A, toRef as H, ref as h, unref as f, watch as W, nextTick as G, createBlock as K, openBlock as U, mergeProps as C, withCtx as g, createVNode as $, createSlots as q, renderList as J, renderSlot as Q, normalizeProps as X, guardReactiveProps as Y } from "vue";
|
|
2
2
|
import { ApForm as y } from "../../ap-form/index.mjs";
|
|
3
3
|
import { isArray as Z, isUndefined as I, isNumber as m, cloneDeep as M, omit as ee } from "lodash-unified";
|
|
4
4
|
import "../../config-provider/index.mjs";
|
|
5
5
|
import { isDef as w } from "../../utils/index.mjs";
|
|
6
6
|
import { useGetEditableColumns as oe } from "../hooks/use-editable-columns.mjs";
|
|
7
7
|
import "../index.vue2.mjs";
|
|
8
|
-
import { useInjectForm as
|
|
9
|
-
import { useNamespace as
|
|
8
|
+
import { useInjectForm as te } from "../../ap-form/context.mjs";
|
|
9
|
+
import { useNamespace as ae } from "../../config-provider/hooks/use-namespace.mjs";
|
|
10
10
|
import { useGlobalConfig as le } from "../../config-provider/hooks/use-global-config.mjs";
|
|
11
11
|
import ne from "../index.vue.mjs";
|
|
12
12
|
const ge = /* @__PURE__ */ P({
|
|
@@ -159,14 +159,14 @@ const ge = /* @__PURE__ */ P({
|
|
|
159
159
|
}) {
|
|
160
160
|
const R = A(), l = x, {
|
|
161
161
|
b: B
|
|
162
|
-
} =
|
|
162
|
+
} = ae("editable-grid");
|
|
163
163
|
function S(e, o) {
|
|
164
|
-
return Z(o) ? o.reduce((n,
|
|
164
|
+
return Z(o) ? o.reduce((n, a) => n == null ? void 0 : n[a], e) : e == null ? void 0 : e[o];
|
|
165
165
|
}
|
|
166
166
|
const {
|
|
167
|
-
internalInstance:
|
|
167
|
+
internalInstance: t,
|
|
168
168
|
model: F
|
|
169
|
-
} =
|
|
169
|
+
} = te(), p = H(l.name), d = h(S(f(F), p.value) || []), N = y.useWatch(p);
|
|
170
170
|
W(() => N.value, async (e) => {
|
|
171
171
|
var o;
|
|
172
172
|
await G(), d.value = e, (o = l.onChange) == null || o.call(l, e);
|
|
@@ -175,50 +175,58 @@ const ge = /* @__PURE__ */ P({
|
|
|
175
175
|
});
|
|
176
176
|
const c = h(), v = le("valueTypeMap"), D = oe(l, v);
|
|
177
177
|
function L(e, o) {
|
|
178
|
-
var
|
|
179
|
-
const n = ((
|
|
178
|
+
var r;
|
|
179
|
+
const n = ((r = f(d)) == null ? void 0 : r.length) || 0;
|
|
180
180
|
if (w(l.maxLength) && n >= l.maxLength)
|
|
181
181
|
return;
|
|
182
|
-
const
|
|
182
|
+
const a = {
|
|
183
183
|
...e || {}
|
|
184
184
|
};
|
|
185
|
-
|
|
186
|
-
|
|
185
|
+
t == null || t.setFieldValue(l.name, a, !0, (u, s) => {
|
|
186
|
+
if (!u[s]) {
|
|
187
|
+
u[s] = [a];
|
|
188
|
+
return;
|
|
189
|
+
}
|
|
190
|
+
I(o) ? u[s].push(a) : u[s].splice(o, 0, a);
|
|
187
191
|
});
|
|
188
192
|
}
|
|
189
193
|
function V(e, o = "suffix") {
|
|
190
|
-
var
|
|
191
|
-
const n = ((
|
|
192
|
-
if (w(l.maxLength) && n +
|
|
194
|
+
var u;
|
|
195
|
+
const n = ((u = f(d)) == null ? void 0 : u.length) || 0, a = m(e) ? e : e.length;
|
|
196
|
+
if (w(l.maxLength) && n + a > l.maxLength)
|
|
193
197
|
return;
|
|
194
|
-
const
|
|
195
|
-
|
|
196
|
-
|
|
198
|
+
const r = m(e) ? new Array(e).fill(0).map(() => ({})) : M(e);
|
|
199
|
+
t == null || t.setFieldValue(l.name, r, !0, (s, i) => {
|
|
200
|
+
if (!s[i]) {
|
|
201
|
+
s[i] = [...r];
|
|
202
|
+
return;
|
|
203
|
+
}
|
|
204
|
+
o === "suffix" ? s[i].push(...r) : s[i].unshift(...r);
|
|
197
205
|
});
|
|
198
206
|
}
|
|
199
207
|
function T(e) {
|
|
200
208
|
const o = new Set(m(e) ? [e] : e);
|
|
201
|
-
|
|
202
|
-
n[
|
|
209
|
+
t == null || t.setFieldValue(l.name, void 0, !0, (n, a) => {
|
|
210
|
+
n[a] = n[a].filter((r, u) => !o.has(u));
|
|
203
211
|
});
|
|
204
212
|
}
|
|
205
213
|
function _() {
|
|
206
|
-
return
|
|
214
|
+
return f(d);
|
|
207
215
|
}
|
|
208
216
|
function E(e) {
|
|
209
217
|
var o;
|
|
210
|
-
return (o =
|
|
218
|
+
return (o = f(d)) == null ? void 0 : o[e];
|
|
211
219
|
}
|
|
212
220
|
function k(e, o, n = !0) {
|
|
213
|
-
|
|
214
|
-
!
|
|
215
|
-
...n ?
|
|
221
|
+
t == null || t.setFieldValue(l.name, void 0, !0, (a, r) => {
|
|
222
|
+
!a[r] || !a[r][e] || (a[r][e] = {
|
|
223
|
+
...n ? a[r][e] : {},
|
|
216
224
|
...o
|
|
217
225
|
});
|
|
218
226
|
});
|
|
219
227
|
}
|
|
220
228
|
function j(e) {
|
|
221
|
-
|
|
229
|
+
t == null || t.setFieldValue(l.name, e);
|
|
222
230
|
}
|
|
223
231
|
function z(e) {
|
|
224
232
|
var n;
|
|
@@ -227,7 +235,7 @@ const ge = /* @__PURE__ */ P({
|
|
|
227
235
|
}
|
|
228
236
|
function O() {
|
|
229
237
|
var e;
|
|
230
|
-
(e =
|
|
238
|
+
(e = t == null ? void 0 : t.setFieldValue) == null || e.call(t, l.name, []);
|
|
231
239
|
}
|
|
232
240
|
return b({
|
|
233
241
|
add: L,
|
|
@@ -239,22 +247,22 @@ const ge = /* @__PURE__ */ P({
|
|
|
239
247
|
scrollTo: z,
|
|
240
248
|
setTableData: j,
|
|
241
249
|
clear: O
|
|
242
|
-
}), (e, o) => (U(), K(
|
|
250
|
+
}), (e, o) => (U(), K(f(y).FormItem, C(e.formItem, {
|
|
243
251
|
name: e.name,
|
|
244
252
|
label: e.label
|
|
245
253
|
}), {
|
|
246
|
-
default: g(() => [$(ne, C(
|
|
254
|
+
default: g(() => [$(ne, C(f(ee)(l, ["name", "value", "onUpdate:value", "maxLength", "onChange", "defaultValue", "formItem"]), {
|
|
247
255
|
ref_key: "tableRef",
|
|
248
256
|
ref: c,
|
|
249
|
-
class:
|
|
250
|
-
columns:
|
|
257
|
+
class: f(B)(),
|
|
258
|
+
columns: f(D),
|
|
251
259
|
"data-source": d.value,
|
|
252
260
|
"search-form": !1
|
|
253
261
|
}), q({
|
|
254
262
|
_: 2
|
|
255
|
-
}, [J(R, (n,
|
|
256
|
-
name:
|
|
257
|
-
fn: g((
|
|
263
|
+
}, [J(R, (n, a) => ({
|
|
264
|
+
name: a,
|
|
265
|
+
fn: g((r) => [Q(e.$slots, a, X(Y(r || {})))])
|
|
258
266
|
}))]), 1040, ["class", "columns", "data-source"])]),
|
|
259
267
|
_: 3
|
|
260
268
|
}, 16, ["name", "label"]));
|
|
@@ -6,8 +6,8 @@ import "../../hooks/index.mjs";
|
|
|
6
6
|
import { isDef as b } from "../../utils/index.mjs";
|
|
7
7
|
import { useGetEditableColumns as ne } from "../hooks/use-editable-columns.mjs";
|
|
8
8
|
import "../index.vue2.mjs";
|
|
9
|
-
import { useNamespace as
|
|
10
|
-
import { useControllableValue as
|
|
9
|
+
import { useNamespace as re } from "../../config-provider/hooks/use-namespace.mjs";
|
|
10
|
+
import { useControllableValue as se } from "../../hooks/useControllableValue.mjs";
|
|
11
11
|
import { useGlobalConfig as ue } from "../../config-provider/hooks/use-global-config.mjs";
|
|
12
12
|
import ie from "../index.vue.mjs";
|
|
13
13
|
const Re = /* @__PURE__ */ U({
|
|
@@ -160,10 +160,10 @@ const Re = /* @__PURE__ */ U({
|
|
|
160
160
|
}) {
|
|
161
161
|
const N = $(), t = B, {
|
|
162
162
|
b: V
|
|
163
|
-
} =
|
|
163
|
+
} = re("editable-grid"), _ = F, y = w(), {
|
|
164
164
|
value: m,
|
|
165
165
|
updateValue: L
|
|
166
|
-
} =
|
|
166
|
+
} = se(t, _), i = w(), E = ue("valueTypeMap"), c = g.useWatch(t.name, i);
|
|
167
167
|
x(() => c.value, (e) => {
|
|
168
168
|
var a;
|
|
169
169
|
L(e), (a = t.onChange) == null || a.call(t, e);
|
|
@@ -190,32 +190,40 @@ const Re = /* @__PURE__ */ U({
|
|
|
190
190
|
return l == null ? void 0 : l[t.name];
|
|
191
191
|
}
|
|
192
192
|
function j(e, a) {
|
|
193
|
-
var n,
|
|
193
|
+
var n, r, s;
|
|
194
194
|
const l = ((n = u(m)) == null ? void 0 : n.length) || 0;
|
|
195
195
|
if (b(t.maxLength) && l >= t.maxLength)
|
|
196
196
|
return;
|
|
197
197
|
const o = {
|
|
198
198
|
...e || {}
|
|
199
199
|
};
|
|
200
|
-
(
|
|
201
|
-
|
|
200
|
+
(s = (r = i.value) == null ? void 0 : r.setFieldValue) == null || s.call(r, t.name, o, !0, (d, f) => {
|
|
201
|
+
if (!d[f]) {
|
|
202
|
+
d[f] = [o];
|
|
203
|
+
return;
|
|
204
|
+
}
|
|
205
|
+
te(a) ? d[f].push(o) : d[f].splice(a, 0, o);
|
|
202
206
|
});
|
|
203
207
|
}
|
|
204
208
|
function z(e, a = "suffix") {
|
|
205
|
-
var
|
|
206
|
-
const l = ((
|
|
209
|
+
var r, s, d;
|
|
210
|
+
const l = ((r = u(m)) == null ? void 0 : r.length) || 0, o = C(e) ? e : e.length;
|
|
207
211
|
if (b(t.maxLength) && l + o > t.maxLength)
|
|
208
212
|
return;
|
|
209
213
|
const n = C(e) ? new Array(e).fill(0).map(() => ({})) : le(e);
|
|
210
|
-
(d = (
|
|
211
|
-
|
|
214
|
+
(d = (s = i.value) == null ? void 0 : s.setFieldValue) == null || d.call(s, t.name, n, !0, (f, p) => {
|
|
215
|
+
if (!f[p]) {
|
|
216
|
+
f[p] = [...n];
|
|
217
|
+
return;
|
|
218
|
+
}
|
|
219
|
+
a === "suffix" ? f[p].push(...n) : f[p].unshift(...n);
|
|
212
220
|
});
|
|
213
221
|
}
|
|
214
222
|
function I(e) {
|
|
215
223
|
var l, o;
|
|
216
224
|
const a = new Set(C(e) ? [e] : e);
|
|
217
|
-
(o = (l = i.value) == null ? void 0 : l.setFieldValue) == null || o.call(l, t.name, void 0, !0, (n,
|
|
218
|
-
n[
|
|
225
|
+
(o = (l = i.value) == null ? void 0 : l.setFieldValue) == null || o.call(l, t.name, void 0, !0, (n, r) => {
|
|
226
|
+
n[r] = n[r].filter((s, d) => !a.has(d));
|
|
219
227
|
});
|
|
220
228
|
}
|
|
221
229
|
function O() {
|
|
@@ -231,9 +239,9 @@ const Re = /* @__PURE__ */ U({
|
|
|
231
239
|
}
|
|
232
240
|
function W(e, a, l = !0) {
|
|
233
241
|
var o, n;
|
|
234
|
-
(n = (o = i.value) == null ? void 0 : o.setFieldValue) == null || n.call(o, t.name, void 0, !0, (
|
|
235
|
-
!s
|
|
236
|
-
...l ? s
|
|
242
|
+
(n = (o = i.value) == null ? void 0 : o.setFieldValue) == null || n.call(o, t.name, void 0, !0, (r, s) => {
|
|
243
|
+
!r[s] || !r[s][e] || (r[s][e] = {
|
|
244
|
+
...l ? r[s][e] : {},
|
|
237
245
|
...a
|
|
238
246
|
});
|
|
239
247
|
});
|
package/es/src/ap-grid/index.mjs
CHANGED