@aplus-frontend/ui 0.6.0-beta.20 → 0.6.0-beta.21

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 (43) hide show
  1. package/es/index.mjs +156 -154
  2. package/es/src/ap-drawer/ApDrawer.vue.d.ts +29 -0
  3. package/es/src/ap-drawer/ApDrawer.vue.mjs +91 -0
  4. package/es/src/ap-drawer/ApDrawer.vue2.mjs +4 -0
  5. package/es/src/ap-drawer/components/ApDrawerClose.vue.d.ts +8 -0
  6. package/es/src/ap-drawer/components/ApDrawerClose.vue.mjs +25 -0
  7. package/es/src/ap-drawer/components/ApDrawerClose.vue2.mjs +4 -0
  8. package/es/src/ap-drawer/index.d.ts +3 -7
  9. package/es/src/ap-drawer/index.mjs +10 -5
  10. package/es/src/ap-drawer/interface.d.ts +4 -0
  11. package/es/src/ap-drawer/style/css.d.ts +0 -1
  12. package/es/src/ap-drawer/style/css.js +1 -1
  13. package/es/src/ap-drawer/style/index.d.ts +0 -1
  14. package/es/src/ap-drawer/style/index.js +1 -1
  15. package/es/src/ap-drawer/utils/createDrawer.mjs +36 -31
  16. package/es/src/index.mjs +285 -282
  17. package/es/src/version.d.ts +1 -1
  18. package/es/src/version.mjs +1 -1
  19. package/lib/index.js +1 -1
  20. package/lib/src/ap-drawer/ApDrawer.vue.d.ts +29 -0
  21. package/lib/src/ap-drawer/ApDrawer.vue.js +1 -0
  22. package/lib/src/ap-drawer/ApDrawer.vue2.js +1 -0
  23. package/lib/src/ap-drawer/components/ApDrawerClose.vue.d.ts +8 -0
  24. package/lib/src/ap-drawer/components/ApDrawerClose.vue.js +1 -0
  25. package/lib/src/ap-drawer/components/ApDrawerClose.vue2.js +1 -0
  26. package/lib/src/ap-drawer/index.d.ts +3 -7
  27. package/lib/src/ap-drawer/index.js +1 -1
  28. package/lib/src/ap-drawer/interface.d.ts +4 -0
  29. package/lib/src/ap-drawer/style/css.cjs +1 -1
  30. package/lib/src/ap-drawer/style/css.d.ts +0 -1
  31. package/lib/src/ap-drawer/style/index.cjs +1 -1
  32. package/lib/src/ap-drawer/style/index.d.ts +0 -1
  33. package/lib/src/ap-drawer/utils/createDrawer.js +1 -1
  34. package/lib/src/index.js +1 -1
  35. package/lib/src/version.d.ts +1 -1
  36. package/lib/src/version.js +1 -1
  37. package/package.json +7 -4
  38. package/theme/ap-drawer/ap-drawer.css +75 -0
  39. package/theme/ap-drawer/ap-drawer.less +42 -0
  40. package/theme/ap-grid/index.css +4 -4
  41. package/theme/ap-grid/index.less +4 -4
  42. package/theme/index.css +33 -4
  43. package/theme/index.less +1 -0
package/es/index.mjs CHANGED
@@ -7,7 +7,7 @@ import { DEFAULT_NAMESPACE as n, DEFAULT_UIMODE as c, configProviderContextKey a
7
7
  import { keysOf as T, provideGlobalConfig as S, useGlobalConfig as b } from "./src/config-provider/hooks/use-global-config.mjs";
8
8
  import { buildLocaleContext as g, buildTranslator as D, localeContextKey as G, translate as h, useLocale as P } from "./src/config-provider/hooks/use-locale.mjs";
9
9
  import { defaultNamespace as R, namespaceContextKey as L, useGetDerivedNamespace as v, useNamespace as M } from "./src/config-provider/hooks/use-namespace.mjs";
10
- import { ConfigProvider as y, globalConfigCached as w } from "./src/config-provider/config-provider.mjs";
10
+ import { ConfigProvider as w, globalConfigCached as y } from "./src/config-provider/config-provider.mjs";
11
11
  import { APConfigProvider as B } from "./src/config-provider/index.mjs";
12
12
  import { ApFormItemText as O } from "./src/ap-form/items/text/index.mjs";
13
13
  import { default as V } from "./src/ap-form/items/text-area/index.vue.mjs";
@@ -34,7 +34,7 @@ import { default as Pe } from "./src/ap-form/render/item.vue.mjs";
34
34
  import { default as Re } from "./src/ap-form/provider/index.vue.mjs";
35
35
  import { ApField as ve } from "./src/ap-field/index.mjs";
36
36
  import { ApFieldText as Ne } from "./src/ap-field/text/index.mjs";
37
- import { default as we } from "./src/ap-field/checkbox/index.vue.mjs";
37
+ import { default as ye } from "./src/ap-field/checkbox/index.vue.mjs";
38
38
  import { default as Be } from "./src/ap-field/date/index.vue.mjs";
39
39
  import { default as Oe } from "./src/ap-field/number/index.vue.mjs";
40
40
  import { default as Ve } from "./src/ap-field/radio/index.vue.mjs";
@@ -59,7 +59,7 @@ import { default as ho } from "./src/work-order-modal/work-order-modal.vue.mjs";
59
59
  import { default as Eo } from "./src/ap-tag/ap-tag.vue.mjs";
60
60
  import { default as Lo } from "./src/ap-tag/ap-tag-group.vue.mjs";
61
61
  import { default as Mo } from "./src/ap-info-layout/ApInfoLayout.vue.mjs";
62
- import { NeedNameKeyDefault as yo } from "./src/ap-upload/apUploadTypes.mjs";
62
+ import { NeedNameKeyDefault as wo } from "./src/ap-upload/apUploadTypes.mjs";
63
63
  import { default as ko } from "./src/ap-upload/apUpload.vue.mjs";
64
64
  import { ApDownLoadNeedNameKeyDefault as Ko } from "./src/ap-download/interface.mjs";
65
65
  import { default as Uo } from "./src/ap-download/ap-download.vue.mjs";
@@ -70,76 +70,77 @@ import { default as qo } from "./src/ap-list/index.vue.mjs";
70
70
  import { default as Qo } from "./src/ap-button/ap-button.vue.mjs";
71
71
  import { default as Yo } from "./src/ap-button/ap-action-button.vue.mjs";
72
72
  import { default as er } from "./src/ap-button/ap-confirm-button.vue.mjs";
73
- import { ApDrawer as rr } from "./src/ap-drawer/index.mjs";
74
- import { ApTransformDataHelper as pr } from "./src/utils/ap-trans-data/index.mjs";
75
- import { default as fr } from "./src/business/ap-table-modal/index.mjs";
76
- import { useTableModal as lr } from "./src/business/ap-table-modal/hooks/use-table-modal.mjs";
77
- import { useTableSelectModal as dr } from "./src/business/ap-table-modal/hooks/use-table-select-modal.mjs";
78
- import { ApAttachment as ur } from "./src/business/ap-attachment/index.mjs";
79
- import { ApBatchAction as ir } from "./src/business/ap-batch-action/index.mjs";
80
- import { ApBatchActionGroup as cr } from "./src/business/ap-batch-action-group/index.mjs";
81
- import { ApButtonGroup as Ir } from "./src/business/ap-button-group/index.mjs";
82
- import { ApCard as Sr } from "./src/business/ap-card/index.mjs";
83
- import { ApExpandAlert as Cr } from "./src/business/ap-expand-alert/index.mjs";
84
- import { ApExportGroupActionType as Dr } from "./src/business/ap-export-group/interface.mjs";
85
- import { ApExportGroup as hr } from "./src/business/ap-export-group/index.mjs";
86
- import { handleExportDownload as Er } from "./src/business/ap-export-group/handleExportDownload.mjs";
87
- import { convertExportField as Lr } from "./src/business/ap-export-group/convertExportField.mjs";
88
- import { ApImage as Mr } from "./src/business/ap-image/index.mjs";
89
- import { ApInputRadio as yr } from "./src/business/ap-input-radio/index.mjs";
90
- import { ApLabel as kr, ApLabelGroup as Br } from "./src/business/ap-label/index.mjs";
91
- import { locales as Or } from "./src/business/ap-ladder/interface.mjs";
92
- import { ApLadder as Vr } from "./src/business/ap-ladder/index.mjs";
93
- import { ApSelectLayout as zr } from "./src/business/ap-select-layout/index.mjs";
94
- import { ApStatus as $r, ApStatusGroup as jr } from "./src/business/ap-status/index.mjs";
95
- import { ApTitle as qr } from "./src/business/ap-title/index.mjs";
96
- import { usePageListApTable as Qr } from "./src/business/hooks/usePageListApTable.mjs";
97
- import { useTableRefresh as Yr } from "./src/business/hooks/useTableRefresh.mjs";
98
- import { usePageListApGrid as et } from "./src/business/hooks/usePageListApGrid.mjs";
99
- import { useGridRefresh as rt } from "./src/business/hooks/useGridRefresh.mjs";
100
- import { computedRecords as pt, flattenColumns as at, formatDataIndex as ft, formatNumber as mt } from "./src/business/ap-summary/utils.mjs";
101
- import { ApSummary as xt } from "./src/business/ap-summary/index.mjs";
102
- import { ApNeedNameKeyDefault as st } from "./src/business/ap-appendix/interface.mjs";
103
- import { ApAppendix as At } from "./src/business/ap-appendix/index.mjs";
104
- import { ApExtensionSelect as nt, ApGroupSearch as ct, ApPopoverSelect as Ft } from "./src/business/ap-group-search/index.mjs";
105
- import { default as Tt } from "./src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs";
106
- import { default as bt } from "./src/business/batch-input-group/index.vue.mjs";
107
- import { default as gt } from "./src/business/batch-input-group/form-item.vue.mjs";
108
- import { ApSizeInput as Gt } from "./src/business/ap-size-input/index.mjs";
109
- import { ApProductInfo as Pt } from "./src/business/ap-product-info/index.mjs";
110
- import { ApCopy as Rt } from "./src/business/ap-copy/index.mjs";
111
- import { ApView as vt } from "./src/business/ap-view/index.mjs";
112
- import { ApRadioGroup as Nt } from "./src/business/ap-radio-group/index.mjs";
113
- import { ApKeepAliveProps as wt, forceStopTags as kt } from "./src/business/ap-keep-alive/interface.mjs";
114
- import { ApKeepAlive as Kt } from "./src/business/ap-keep-alive/index.mjs";
115
- import { LruCacher as Ut } from "./src/business/ap-keep-alive/cacher/lru-cacher.mjs";
116
- import { useApKeepAliveInject as _t } from "./src/business/ap-keep-alive/hook.mjs";
117
- import { useTablePaging as Wt } from "./src/ap-table/hooks/use-table-paging.mjs";
118
- import { ApTable as jt } from "./src/ap-table/index.mjs";
119
- import { default as qt } from "./src/editable-table/index.vue.mjs";
120
- import { default as Qt } from "./src/editable-table/form-item.vue.mjs";
121
- import { default as Yt } from "./src/ap-descriptions/ap-descriptions.vue.mjs";
122
- import { ensureRangeValue as ep } from "./src/scroll-bar/utils/index.mjs";
123
- import { default as rp } from "./src/scroll-bar/index.vue.mjs";
124
- import { default as pp } from "./src/scroll-bar/internal.vue.mjs";
125
- import { default as fp } from "./src/scroll-view/index.vue.mjs";
126
- import { default as lp } from "./src/portal/index.vue.mjs";
127
- import { default as dp } from "./src/full-screen/index.vue.mjs";
128
- import { default as up } from "./src/resize-observer/index.vue.mjs";
129
- import { ROW_SELECTION_FIELD as ip } from "./src/ap-grid/constants.mjs";
130
- import { default as cp } from "./src/ap-grid/index.vue.mjs";
131
- import { default as Ip } from "./src/ap-grid/editable/index.vue.mjs";
132
- import { default as Sp } from "./src/ap-grid/editable/form-item.vue.mjs";
133
- import { default as Cp } from "./src/text/index.vue.mjs";
134
- import { default as Dp } from "./src/text/group.vue.mjs";
135
- import { default as hp } from "./src/mask/index.vue.mjs";
136
- import { Splitter as Ep } from "./src/splitter/index.mjs";
137
- import { useMessage as Lp } from "./src/hooks/useMessage.mjs";
138
- import { useControllableValue as Mp } from "./src/hooks/useControllableValue.mjs";
139
- import { useManualRef as yp } from "./src/hooks/useManualRef.mjs";
140
- import { useThrottleRef as kp } from "./src/hooks/useThrottleRef.mjs";
141
- import { useFullScreen as Kp } from "./src/hooks/useFullScreen.mjs";
142
- import { useResize as Up } from "./src/hooks/useResize.mjs";
73
+ import { default as rr } from "./src/ap-drawer/ApDrawer.vue.mjs";
74
+ import { default as pr } from "./src/ap-drawer/components/ApDrawerClose.vue.mjs";
75
+ import { ApTransformDataHelper as fr } from "./src/utils/ap-trans-data/index.mjs";
76
+ import { default as lr } from "./src/business/ap-table-modal/index.mjs";
77
+ import { useTableModal as dr } from "./src/business/ap-table-modal/hooks/use-table-modal.mjs";
78
+ import { useTableSelectModal as ur } from "./src/business/ap-table-modal/hooks/use-table-select-modal.mjs";
79
+ import { ApAttachment as ir } from "./src/business/ap-attachment/index.mjs";
80
+ import { ApBatchAction as cr } from "./src/business/ap-batch-action/index.mjs";
81
+ import { ApBatchActionGroup as Ir } from "./src/business/ap-batch-action-group/index.mjs";
82
+ import { ApButtonGroup as Sr } from "./src/business/ap-button-group/index.mjs";
83
+ import { ApCard as Cr } from "./src/business/ap-card/index.mjs";
84
+ import { ApExpandAlert as Dr } from "./src/business/ap-expand-alert/index.mjs";
85
+ import { ApExportGroupActionType as hr } from "./src/business/ap-export-group/interface.mjs";
86
+ import { ApExportGroup as Er } from "./src/business/ap-export-group/index.mjs";
87
+ import { handleExportDownload as Lr } from "./src/business/ap-export-group/handleExportDownload.mjs";
88
+ import { convertExportField as Mr } from "./src/business/ap-export-group/convertExportField.mjs";
89
+ import { ApImage as wr } from "./src/business/ap-image/index.mjs";
90
+ import { ApInputRadio as kr } from "./src/business/ap-input-radio/index.mjs";
91
+ import { ApLabel as Kr, ApLabelGroup as Or } from "./src/business/ap-label/index.mjs";
92
+ import { locales as Vr } from "./src/business/ap-ladder/interface.mjs";
93
+ import { ApLadder as zr } from "./src/business/ap-ladder/index.mjs";
94
+ import { ApSelectLayout as $r } from "./src/business/ap-select-layout/index.mjs";
95
+ import { ApStatus as Hr, ApStatusGroup as qr } from "./src/business/ap-status/index.mjs";
96
+ import { ApTitle as Qr } from "./src/business/ap-title/index.mjs";
97
+ import { usePageListApTable as Yr } from "./src/business/hooks/usePageListApTable.mjs";
98
+ import { useTableRefresh as et } from "./src/business/hooks/useTableRefresh.mjs";
99
+ import { usePageListApGrid as rt } from "./src/business/hooks/usePageListApGrid.mjs";
100
+ import { useGridRefresh as pt } from "./src/business/hooks/useGridRefresh.mjs";
101
+ import { computedRecords as ft, flattenColumns as mt, formatDataIndex as lt, formatNumber as xt } from "./src/business/ap-summary/utils.mjs";
102
+ import { ApSummary as st } from "./src/business/ap-summary/index.mjs";
103
+ import { ApNeedNameKeyDefault as At } from "./src/business/ap-appendix/interface.mjs";
104
+ import { ApAppendix as nt } from "./src/business/ap-appendix/index.mjs";
105
+ import { ApExtensionSelect as Ft, ApGroupSearch as It, ApPopoverSelect as Tt } from "./src/business/ap-group-search/index.mjs";
106
+ import { default as bt } from "./src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs";
107
+ import { default as gt } from "./src/business/batch-input-group/index.vue.mjs";
108
+ import { default as Gt } from "./src/business/batch-input-group/form-item.vue.mjs";
109
+ import { ApSizeInput as Pt } from "./src/business/ap-size-input/index.mjs";
110
+ import { ApProductInfo as Rt } from "./src/business/ap-product-info/index.mjs";
111
+ import { ApCopy as vt } from "./src/business/ap-copy/index.mjs";
112
+ import { ApView as Nt } from "./src/business/ap-view/index.mjs";
113
+ import { ApRadioGroup as yt } from "./src/business/ap-radio-group/index.mjs";
114
+ import { ApKeepAliveProps as Bt, forceStopTags as Kt } from "./src/business/ap-keep-alive/interface.mjs";
115
+ import { ApKeepAlive as Ut } from "./src/business/ap-keep-alive/index.mjs";
116
+ import { LruCacher as _t } from "./src/business/ap-keep-alive/cacher/lru-cacher.mjs";
117
+ import { useApKeepAliveInject as Wt } from "./src/business/ap-keep-alive/hook.mjs";
118
+ import { useTablePaging as jt } from "./src/ap-table/hooks/use-table-paging.mjs";
119
+ import { ApTable as qt } from "./src/ap-table/index.mjs";
120
+ import { default as Qt } from "./src/editable-table/index.vue.mjs";
121
+ import { default as Yt } from "./src/editable-table/form-item.vue.mjs";
122
+ import { default as ep } from "./src/ap-descriptions/ap-descriptions.vue.mjs";
123
+ import { ensureRangeValue as rp } from "./src/scroll-bar/utils/index.mjs";
124
+ import { default as pp } from "./src/scroll-bar/index.vue.mjs";
125
+ import { default as fp } from "./src/scroll-bar/internal.vue.mjs";
126
+ import { default as lp } from "./src/scroll-view/index.vue.mjs";
127
+ import { default as dp } from "./src/portal/index.vue.mjs";
128
+ import { default as up } from "./src/full-screen/index.vue.mjs";
129
+ import { default as ip } from "./src/resize-observer/index.vue.mjs";
130
+ import { ROW_SELECTION_FIELD as cp } from "./src/ap-grid/constants.mjs";
131
+ import { default as Ip } from "./src/ap-grid/index.vue.mjs";
132
+ import { default as Sp } from "./src/ap-grid/editable/index.vue.mjs";
133
+ import { default as Cp } from "./src/ap-grid/editable/form-item.vue.mjs";
134
+ import { default as Dp } from "./src/text/index.vue.mjs";
135
+ import { default as hp } from "./src/text/group.vue.mjs";
136
+ import { default as Ep } from "./src/mask/index.vue.mjs";
137
+ import { Splitter as Lp } from "./src/splitter/index.mjs";
138
+ import { useMessage as Mp } from "./src/hooks/useMessage.mjs";
139
+ import { useControllableValue as wp } from "./src/hooks/useControllableValue.mjs";
140
+ import { useManualRef as kp } from "./src/hooks/useManualRef.mjs";
141
+ import { useThrottleRef as Kp } from "./src/hooks/useThrottleRef.mjs";
142
+ import { useFullScreen as Up } from "./src/hooks/useFullScreen.mjs";
143
+ import { useResize as _p } from "./src/hooks/useResize.mjs";
143
144
  const a = console.log;
144
145
  a(`APlus-UI version ${p}`);
145
146
  const l = {
@@ -158,25 +159,26 @@ export {
158
159
  Fo as ApActionItemDropdown,
159
160
  Ao as ApActionItemModal,
160
161
  no as ApActionItemPopconfirm,
161
- At as ApAppendix,
162
- ur as ApAttachment,
163
- ir as ApBatchAction,
164
- cr as ApBatchActionGroup,
162
+ nt as ApAppendix,
163
+ ir as ApAttachment,
164
+ cr as ApBatchAction,
165
+ Ir as ApBatchActionGroup,
165
166
  Qo as ApButton,
166
- Ir as ApButtonGroup,
167
- Sr as ApCard,
167
+ Sr as ApButtonGroup,
168
+ Cr as ApCard,
168
169
  er as ApConfirmButton,
169
- Rt as ApCopy,
170
- Yt as ApDescriptions,
170
+ vt as ApCopy,
171
+ ep as ApDescriptions,
171
172
  Ko as ApDownLoadNeedNameKeyDefault,
172
173
  Uo as ApDownload,
173
174
  rr as ApDrawer,
174
- Cr as ApExpandAlert,
175
- hr as ApExportGroup,
176
- Dr as ApExportGroupActionType,
177
- nt as ApExtensionSelect,
175
+ pr as ApDrawerClose,
176
+ Dr as ApExpandAlert,
177
+ Er as ApExportGroup,
178
+ hr as ApExportGroupActionType,
179
+ Ft as ApExtensionSelect,
178
180
  ve as ApField,
179
- we as ApFieldCheckbox,
181
+ ye as ApFieldCheckbox,
180
182
  Be as ApFieldDate,
181
183
  He as ApFieldDateRange,
182
184
  Oe as ApFieldNumber,
@@ -195,7 +197,7 @@ export {
195
197
  Te as ApFormDependency,
196
198
  ge as ApFormDrawerForm,
197
199
  xe as ApFormItem,
198
- gt as ApFormItemBatchInput,
200
+ Gt as ApFormItemBatchInput,
199
201
  oe as ApFormItemCheckbox,
200
202
  $ as ApFormItemDate,
201
203
  H as ApFormItemDateRange,
@@ -214,103 +216,103 @@ export {
214
216
  Re as ApFormProvider,
215
217
  ne as ApFormSearchForm,
216
218
  be as ApFormSet,
217
- cp as ApGrid,
218
- ct as ApGroupSearch,
219
- Mr as ApImage,
219
+ Ip as ApGrid,
220
+ It as ApGroupSearch,
221
+ wr as ApImage,
220
222
  Mo as ApInfoLayout,
221
- yr as ApInputRadio,
222
- Kt as ApKeepAlive,
223
- wt as ApKeepAliveProps,
224
- kr as ApLabel,
225
- Br as ApLabelGroup,
226
- Vr as ApLadder,
223
+ kr as ApInputRadio,
224
+ Ut as ApKeepAlive,
225
+ Bt as ApKeepAliveProps,
226
+ Kr as ApLabel,
227
+ Or as ApLabelGroup,
228
+ zr as ApLadder,
227
229
  qo as ApList,
228
230
  jo as ApModal,
229
- st as ApNeedNameKeyDefault,
230
- Ft as ApPopoverSelect,
231
- Pt as ApProductInfo,
232
- Nt as ApRadioGroup,
233
- zr as ApSelectLayout,
234
- Gt as ApSizeInput,
235
- $r as ApStatus,
236
- jr as ApStatusGroup,
237
- xt as ApSummary,
238
- jt as ApTable,
239
- fr as ApTableModal,
231
+ At as ApNeedNameKeyDefault,
232
+ Tt as ApPopoverSelect,
233
+ Rt as ApProductInfo,
234
+ yt as ApRadioGroup,
235
+ $r as ApSelectLayout,
236
+ Pt as ApSizeInput,
237
+ Hr as ApStatus,
238
+ qr as ApStatusGroup,
239
+ st as ApSummary,
240
+ qt as ApTable,
241
+ lr as ApTableModal,
240
242
  Eo as ApTag,
241
243
  Lo as ApTagGroup,
242
- Cp as ApText,
243
- Dp as ApTextGroup,
244
- qr as ApTitle,
245
- pr as ApTransformDataHelper,
244
+ Dp as ApText,
245
+ hp as ApTextGroup,
246
+ Qr as ApTitle,
247
+ fr as ApTransformDataHelper,
246
248
  ko as ApUpload,
247
- Tt as ApUploadSingle,
248
- vt as ApView,
249
- bt as BatchInputGroup,
249
+ bt as ApUploadSingle,
250
+ Nt as ApView,
251
+ gt as BatchInputGroup,
250
252
  _o as CheckCard,
251
253
  Wo as CheckCardGroup,
252
- y as ConfigProvider,
254
+ w as ConfigProvider,
253
255
  n as DEFAULT_NAMESPACE,
254
256
  c as DEFAULT_UIMODE,
255
257
  bo as DictCode,
256
- Ip as EditableGrid,
257
- Sp as EditableGridFormItem,
258
- qt as EditableTable,
259
- Qt as EditableTableFormItem,
260
- dp as FullScreen,
261
- pp as InternalScrollBar,
262
- Ut as LruCacher,
263
- hp as Mask,
264
- yo as NeedNameKeyDefault,
265
- lp as Portal,
266
- ip as ROW_SELECTION_FIELD,
267
- up as ResizeObserver,
268
- rp as ScrollBar,
269
- fp as ScrollView,
270
- Ep as Splitter,
258
+ Sp as EditableGrid,
259
+ Cp as EditableGridFormItem,
260
+ Qt as EditableTable,
261
+ Yt as EditableTableFormItem,
262
+ up as FullScreen,
263
+ fp as InternalScrollBar,
264
+ _t as LruCacher,
265
+ Ep as Mask,
266
+ wo as NeedNameKeyDefault,
267
+ dp as Portal,
268
+ cp as ROW_SELECTION_FIELD,
269
+ ip as ResizeObserver,
270
+ pp as ScrollBar,
271
+ lp as ScrollView,
272
+ Lp as Splitter,
271
273
  ho as WorkOrderModal,
272
274
  mo as adminToken,
273
275
  lo as aplusToken,
274
276
  g as buildLocaleContext,
275
277
  D as buildTranslator,
276
- pt as computedRecords,
278
+ ft as computedRecords,
277
279
  F as configProviderContextKey,
278
280
  A as configProviderProps,
279
- Lr as convertExportField,
281
+ Mr as convertExportField,
280
282
  Do as createWorkOrderModal,
281
283
  l as default,
282
284
  R as defaultNamespace,
283
- ep as ensureRangeValue,
284
- at as flattenColumns,
285
- kt as forceStopTags,
286
- ft as formatDataIndex,
287
- mt as formatNumber,
288
- w as globalConfigCached,
289
- Er as handleExportDownload,
285
+ rp as ensureRangeValue,
286
+ mt as flattenColumns,
287
+ Kt as forceStopTags,
288
+ lt as formatDataIndex,
289
+ xt as formatNumber,
290
+ y as globalConfigCached,
291
+ Lr as handleExportDownload,
290
292
  T as keysOf,
291
293
  Co as langMap,
292
294
  G as localeContextKey,
293
- Or as locales,
295
+ Vr as locales,
294
296
  L as namespaceContextKey,
295
297
  s as pathMap,
296
298
  S as provideGlobalConfig,
297
299
  h as translate,
298
- _t as useApKeepAliveInject,
299
- Mp as useControllableValue,
300
- Kp as useFullScreen,
300
+ Wt as useApKeepAliveInject,
301
+ wp as useControllableValue,
302
+ Up as useFullScreen,
301
303
  v as useGetDerivedNamespace,
302
304
  b as useGlobalConfig,
303
- rt as useGridRefresh,
305
+ pt as useGridRefresh,
304
306
  P as useLocale,
305
- yp as useManualRef,
306
- Lp as useMessage,
307
+ kp as useManualRef,
308
+ Mp as useMessage,
307
309
  M as useNamespace,
308
- et as usePageListApGrid,
309
- Qr as usePageListApTable,
310
- Up as useResize,
311
- lr as useTableModal,
312
- Wt as useTablePaging,
313
- Yr as useTableRefresh,
314
- dr as useTableSelectModal,
315
- kp as useThrottleRef
310
+ rt as usePageListApGrid,
311
+ Yr as usePageListApTable,
312
+ _p as useResize,
313
+ dr as useTableModal,
314
+ jt as useTablePaging,
315
+ et as useTableRefresh,
316
+ ur as useTableSelectModal,
317
+ Kp as useThrottleRef
316
318
  };
@@ -0,0 +1,29 @@
1
+ import { ApDrawerMixedProps } from './interface';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, CSSProperties, ComponentProvideOptions } from 'vue';
3
+ declare function __VLS_template(): {
4
+ attrs: Partial<{}>;
5
+ slots: {
6
+ default?(_: {}): any;
7
+ };
8
+ refs: {};
9
+ rootEl: any;
10
+ };
11
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
12
+ declare const __VLS_component: DefineComponent<ApDrawerMixedProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
13
+ "update:open": (value: boolean) => any;
14
+ }, string, PublicProps, Readonly<ApDrawerMixedProps> & Readonly<{
15
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
16
+ }>, {
17
+ mask: boolean;
18
+ closable: boolean;
19
+ getContainer: string | false | HTMLElement | (() => HTMLElement);
20
+ rootStyle: CSSProperties;
21
+ outSideClick: boolean;
22
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
23
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
24
+ export default _default;
25
+ type __VLS_WithTemplateSlots<T, S> = T & {
26
+ new (): {
27
+ $slots: S;
28
+ };
29
+ };
@@ -0,0 +1,91 @@
1
+ import { defineComponent as d, h as m, watch as u, onBeforeUnmount as f, createBlock as y, openBlock as C, unref as t, mergeProps as k, withCtx as h, renderSlot as B } from "vue";
2
+ import { Drawer as S } from "@aplus-frontend/antdv";
3
+ import "../config-provider/index.mjs";
4
+ import "./components/ApDrawerClose.vue2.mjs";
5
+ import { omit as b } from "lodash-unified";
6
+ import { useGlobalConfig as w } from "../config-provider/hooks/use-global-config.mjs";
7
+ import { useNamespace as x } from "../config-provider/hooks/use-namespace.mjs";
8
+ import v from "./components/ApDrawerClose.vue.mjs";
9
+ const U = /* @__PURE__ */ d({
10
+ name: "ApDrawer",
11
+ __name: "ApDrawer",
12
+ props: {
13
+ autofocus: { type: Boolean },
14
+ closable: { type: Boolean, default: !1 },
15
+ closeIcon: {},
16
+ destroyOnClose: { type: Boolean },
17
+ forceRender: { type: Boolean },
18
+ getContainer: { type: [String, Boolean, Function], default: () => document.body },
19
+ maskClosable: { type: Boolean },
20
+ mask: { type: Boolean, default: !1 },
21
+ maskStyle: {},
22
+ rootClassName: {},
23
+ rootStyle: { default: () => ({
24
+ top: "0px"
25
+ }) },
26
+ size: {},
27
+ drawerStyle: {},
28
+ headerStyle: {},
29
+ bodyStyle: {},
30
+ contentWrapperStyle: {},
31
+ title: {},
32
+ visible: { type: Boolean },
33
+ open: { type: Boolean },
34
+ width: {},
35
+ height: {},
36
+ zIndex: {},
37
+ prefixCls: {},
38
+ push: {},
39
+ placement: {},
40
+ keyboard: { type: Boolean },
41
+ extra: {},
42
+ footer: {},
43
+ footerStyle: {},
44
+ level: {},
45
+ levelMove: {},
46
+ handle: {},
47
+ afterVisibleChange: {},
48
+ onAfterVisibleChange: {},
49
+ onAfterOpenChange: {},
50
+ "onUpdate:visible": {},
51
+ "onUpdate:open": {},
52
+ onClose: {},
53
+ createDrawer: {},
54
+ outSideClick: { type: Boolean, default: !0 }
55
+ },
56
+ emits: ["update:open"],
57
+ setup(l, { emit: s }) {
58
+ const r = s, i = w("uiMode"), { b: c } = x("ap-drawer"), p = m(v, {
59
+ onClose: () => {
60
+ r("update:open", !1);
61
+ }
62
+ }), e = l, n = (o) => {
63
+ if (!e.open || !e.outSideClick) return;
64
+ const a = document.querySelector(".ant-drawer-open");
65
+ if (!a) return;
66
+ !a.contains(o.target) && (e.onClose ? e.onClose(o) : r("update:open", !1));
67
+ };
68
+ return u(
69
+ () => e.open,
70
+ (o) => {
71
+ o && e.outSideClick ? setTimeout(() => {
72
+ document.addEventListener("click", n);
73
+ }, 0) : document.removeEventListener("click", n);
74
+ },
75
+ { immediate: !0 }
76
+ ), f(() => {
77
+ document.removeEventListener("click", n);
78
+ }), (o, a) => (C(), y(t(S), k(t(b)(e, ["class", "extra", "outSideClick"]), {
79
+ class: t(c)(t(i)),
80
+ extra: e.extra ? e.extra : t(p)
81
+ }), {
82
+ default: h(() => [
83
+ B(o.$slots, "default")
84
+ ]),
85
+ _: 3
86
+ }, 16, ["class", "extra"]));
87
+ }
88
+ });
89
+ export {
90
+ U as default
91
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./ApDrawer.vue.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,8 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ type __VLS_Props = {
3
+ onClose: () => void;
4
+ };
5
+ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
6
+ onClose: () => void;
7
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
8
+ export default _default;
@@ -0,0 +1,25 @@
1
+ import { defineComponent as p, createElementBlock as a, openBlock as l, normalizeClass as m, unref as r, createVNode as c } from "vue";
2
+ import "../../config-provider/index.mjs";
3
+ import { IconApAdLineCloseDrawer as i } from "@aplus-frontend/icon";
4
+ import { useNamespace as C } from "../../config-provider/hooks/use-namespace.mjs";
5
+ const _ = /* @__PURE__ */ p({
6
+ name: "ApDrawerClose",
7
+ __name: "ApDrawerClose",
8
+ props: {
9
+ onClose: { type: Function, default: () => {
10
+ } }
11
+ },
12
+ setup(n) {
13
+ const { b: s } = C("ap-drawer"), e = n;
14
+ return (f, o) => (l(), a("div", {
15
+ class: m([r(s)("close")]),
16
+ onClick: o[0] || (o[0] = //@ts-ignore
17
+ (...t) => e.onClose && e.onClose(...t))
18
+ }, [
19
+ c(r(i))
20
+ ], 2));
21
+ }
22
+ });
23
+ export {
24
+ _ as default
25
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./ApDrawerClose.vue.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -1,8 +1,4 @@
1
- import { Drawer as _Drawer } from '@aplus-frontend/antdv';
2
- import { CreateDrawerFunc } from './interface';
1
+ import { default as ApDrawer } from './ApDrawer.vue';
2
+ import { default as ApDrawerClose } from './components/ApDrawerClose.vue';
3
3
  export * from './interface';
4
- type ApDrawerMixedProps = typeof _Drawer & {
5
- createDrawer: CreateDrawerFunc;
6
- };
7
- declare const ApDrawer: ApDrawerMixedProps;
8
- export { ApDrawer };
4
+ export { ApDrawer, ApDrawerClose };
@@ -1,10 +1,15 @@
1
- import { Drawer as e } from "@aplus-frontend/antdv";
2
1
  import "./utils/index.mjs";
2
+ import "./ApDrawer.vue2.mjs";
3
+ import "./components/ApDrawerClose.vue2.mjs";
3
4
  import "./interface.mjs";
4
- import { createDrawer as a } from "./utils/createDrawer.mjs";
5
- const r = e;
6
- r.createDrawer = a;
5
+ import { createDrawer as e } from "./utils/createDrawer.mjs";
6
+ import r from "./ApDrawer.vue.mjs";
7
+ import o from "./components/ApDrawerClose.vue.mjs";
8
+ r.createDrawer = e;
7
9
  r.name = "ApDrawer";
10
+ r.Close = o;
11
+ r.Close.name = "ApDrawerClose";
8
12
  export {
9
- r as ApDrawer
13
+ r as ApDrawer,
14
+ o as ApDrawerClose
10
15
  };
@@ -14,3 +14,7 @@ export type CreateDrawerFuncReturn = {
14
14
  close: () => void;
15
15
  };
16
16
  export type CreateDrawerFunc = (props: CreateDrawerFuncProps) => CreateDrawerFuncReturn;
17
+ export type ApDrawerMixedProps = DrawerProps & {
18
+ createDrawer?: CreateDrawerFunc;
19
+ outSideClick?: boolean;
20
+ };
@@ -1 +0,0 @@
1
- export {};
@@ -1 +1 @@
1
- export {};
1
+ import '@aplus-frontend/ui/theme/ap-drawer/ap-drawer.css';
@@ -1 +0,0 @@
1
- export {};
@@ -1 +1 @@
1
- export {};
1
+ import '@aplus-frontend/ui/theme/ap-drawer/ap-drawer.less';