@aplus-frontend/ui 0.1.29 → 0.1.30

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 (51) hide show
  1. package/es/index.mjs +78 -76
  2. package/es/src/ap-form/ap-form.vue.d.ts +1 -1
  3. package/es/src/ap-form/modal-form/index.vue.d.ts +2 -2
  4. package/es/src/ap-form/search-form/index.vue.d.ts +2 -2
  5. package/es/src/ap-table/ap-table.vue.mjs +1 -1
  6. package/es/src/ap-table/components/setting/sorter/index.vue2.mjs +84 -89
  7. package/es/src/ap-table/utils.mjs +42 -42
  8. package/es/src/business/ap-action-button/ApActionButton.vue.d.ts +43 -0
  9. package/es/src/business/ap-action-button/ApActionButton.vue.mjs +4 -0
  10. package/es/src/business/ap-action-button/ApActionButton.vue2.mjs +97 -0
  11. package/es/src/business/ap-action-button/index.css +6 -0
  12. package/es/src/business/ap-action-button/interface.d.ts +6 -0
  13. package/es/src/business/ap-action-button/interface.mjs +1 -0
  14. package/es/src/business/index.d.ts +265 -0
  15. package/es/src/business/index.mjs +25 -21
  16. package/es/src/editable-table/form-item.vue.d.ts +1 -1
  17. package/es/src/editable-table/form-item.vue.mjs +41 -41
  18. package/es/src/editable-table/index.vue.d.ts +1 -1
  19. package/es/src/editable-table/index.vue.mjs +29 -29
  20. package/es/src/index.mjs +209 -207
  21. package/es/src/theme/ap-action-button/ap-action-button.css +6 -0
  22. package/es/src/work-order-modal/index.mjs +4 -3
  23. package/es/src/work-order-modal/interfaces.d.ts +3 -0
  24. package/es/src/work-order-modal/interfaces.mjs +6 -1
  25. package/es/src/work-order-modal/work-order-modal.vue.mjs +28 -28
  26. package/lib/index.js +1 -1
  27. package/lib/src/ap-form/ap-form.vue.d.ts +1 -1
  28. package/lib/src/ap-form/modal-form/index.vue.d.ts +2 -2
  29. package/lib/src/ap-form/search-form/index.vue.d.ts +2 -2
  30. package/lib/src/ap-table/ap-table.vue.js +1 -1
  31. package/lib/src/ap-table/components/setting/sorter/index.vue2.js +1 -1
  32. package/lib/src/ap-table/utils.js +1 -1
  33. package/lib/src/business/ap-action-button/ApActionButton.vue.d.ts +43 -0
  34. package/lib/src/business/ap-action-button/ApActionButton.vue.js +1 -0
  35. package/lib/src/business/ap-action-button/ApActionButton.vue2.js +1 -0
  36. package/lib/src/business/ap-action-button/index.css +6 -0
  37. package/lib/src/business/ap-action-button/interface.d.ts +6 -0
  38. package/lib/src/business/ap-action-button/interface.js +1 -0
  39. package/lib/src/business/index.d.ts +265 -0
  40. package/lib/src/business/index.js +1 -1
  41. package/lib/src/editable-table/form-item.vue.d.ts +1 -1
  42. package/lib/src/editable-table/form-item.vue.js +1 -1
  43. package/lib/src/editable-table/index.vue.d.ts +1 -1
  44. package/lib/src/editable-table/index.vue.js +1 -1
  45. package/lib/src/index.js +1 -1
  46. package/lib/src/theme/ap-action-button/ap-action-button.css +6 -0
  47. package/lib/src/work-order-modal/index.js +1 -1
  48. package/lib/src/work-order-modal/interfaces.d.ts +3 -0
  49. package/lib/src/work-order-modal/interfaces.js +1 -1
  50. package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
  51. package/package.json +1 -1
package/es/index.mjs CHANGED
@@ -5,8 +5,8 @@ import { configProviderProps as x } from "./src/config-provider/config-provider-
5
5
  import { configProviderContextKey as u, tableDefaultConfig as n } from "./src/config-provider/constants.mjs";
6
6
  import { keysOf as c, provideGlobalConfig as T, useGlobalConfig as F } from "./src/config-provider/hooks/use-global-config.mjs";
7
7
  import { buildLocaleContext as b, buildTranslator as S, localeContextKey as I, translate as g, useLocale as P } from "./src/config-provider/hooks/use-locale.mjs";
8
- import { defaultNamespace as D, namespaceContextKey as M, useGetDerivedNamespace as R, useNamespace as G } from "./src/config-provider/hooks/use-namespace.mjs";
9
- import { ConfigProvider as B, globalConfigCached as L } from "./src/config-provider/config-provider.mjs";
8
+ import { defaultNamespace as D, namespaceContextKey as M, useGetDerivedNamespace as R, useNamespace as B } from "./src/config-provider/hooks/use-namespace.mjs";
9
+ import { ConfigProvider as v, globalConfigCached as L } from "./src/config-provider/config-provider.mjs";
10
10
  import { APConfigProvider as k } from "./src/config-provider/index.mjs";
11
11
  import { Scrollbar as y } from "./src/scroll-bar/index.mjs";
12
12
  import { CollapseContainer as K, ScrollContainer as X } from "./src/container/index.mjs";
@@ -24,7 +24,7 @@ import { isComponentFormSchema as Se, isSlotFormSchema as Ie } from "./src/pro-f
24
24
  import { Field as Pe } from "./src/pro-form/index.mjs";
25
25
  import { default as De } from "./src/pro-form/components/api-cascader.vue.mjs";
26
26
  import { default as Re } from "./src/pro-form/components/api-radio-group.vue.mjs";
27
- import { default as ve } from "./src/pro-form/components/api-select.vue.mjs";
27
+ import { default as Ge } from "./src/pro-form/components/api-select.vue.mjs";
28
28
  import { default as Le } from "./src/pro-form/components/api-transfer.vue.mjs";
29
29
  import { default as ke } from "./src/pro-form/components/api-tree.vue.mjs";
30
30
  import { default as ye } from "./src/pro-form/components/radio-button-group.vue.mjs";
@@ -49,7 +49,7 @@ import { default as Io } from "./src/pro-table/components/edit-table-header-icon
49
49
  import { default as Po } from "./src/pro-table/components/table-image.vue.mjs";
50
50
  import { useTable as Do } from "./src/pro-table/hooks/use-table.mjs";
51
51
  import { ApFormItemText as Ro } from "./src/ap-form/items/text/index.mjs";
52
- import { default as vo } from "./src/ap-form/items/text-area/index.vue.mjs";
52
+ import { default as Go } from "./src/ap-form/items/text-area/index.vue.mjs";
53
53
  import { default as Lo } from "./src/ap-form/items/number/index.vue.mjs";
54
54
  import { default as ko } from "./src/ap-form/items/date/index.vue.mjs";
55
55
  import { default as yo } from "./src/ap-form/items/date-range/index.vue.mjs";
@@ -76,7 +76,7 @@ import { default as Ir } from "./src/ap-field/date-range/index.vue.mjs";
76
76
  import { default as Pr } from "./src/ap-field/select/index.vue.mjs";
77
77
  import { default as Dr } from "./src/ap-field/text/password.vue.mjs";
78
78
  import { default as Rr } from "./src/ap-field/slider/index.vue.mjs";
79
- import { default as vr } from "./src/ap-field/segmented/index.vue.mjs";
79
+ import { default as Gr } from "./src/ap-field/segmented/index.vue.mjs";
80
80
  import { default as Lr } from "./src/ap-field/rate/index.vue.mjs";
81
81
  import { adminToken as kr, aplusToken as Nr } from "./src/design-token/index.mjs";
82
82
  import { ApActionItem as Er } from "./src/ap-action/index.mjs";
@@ -88,34 +88,34 @@ import { generateTableList as $r } from "./src/ap-custom-column/utils.mjs";
88
88
  import { useCacheColumnSetting as qr } from "./src/ap-custom-column/useCacheColumnSetting.mjs";
89
89
  import { default as Qr } from "./src/ap-custom-column/custom-column.vue.mjs";
90
90
  import { default as _r } from "./src/ap-custom-column/column-select.vue.mjs";
91
- import { DictCode as ot } from "./src/work-order-modal/interfaces.mjs";
92
- import { createWorkOrderModal as tt } from "./src/work-order-modal/createWorkOrder.mjs";
93
- import { default as pt } from "./src/work-order-modal/work-order-modal.vue.mjs";
94
- import { default as mt } from "./src/ap-tag/ap-tag.vue.mjs";
95
- import { default as st } from "./src/ap-tag/ap-tag-group.vue.mjs";
96
- import { default as xt } from "./src/ap-layout/ApInfoLayout.vue.mjs";
97
- import { NeedNameKeyDefault as ut } from "./src/ap-upload/apUploadTypes.mjs";
98
- import { default as At } from "./src/ap-upload/apUpload.vue.mjs";
99
- import { ApDownLoadNeedNameKeyDefault as Tt } from "./src/ap-download/interface.mjs";
100
- import { default as Ct } from "./src/ap-download/ap-download.vue.mjs";
101
- import { CheckCard as St } from "./src/check-card/index.mjs";
102
- import { default as gt } from "./src/check-card/group.vue.mjs";
103
- import { ApModal as ht } from "./src/ap-modal/index.mjs";
104
- import { default as Mt } from "./src/ap-list/index.vue.mjs";
91
+ import { DictCode as ot, langMap as rt } from "./src/work-order-modal/interfaces.mjs";
92
+ import { createWorkOrderModal as at } from "./src/work-order-modal/createWorkOrder.mjs";
93
+ import { default as ft } from "./src/work-order-modal/work-order-modal.vue.mjs";
94
+ import { default as lt } from "./src/ap-tag/ap-tag.vue.mjs";
95
+ import { default as dt } from "./src/ap-tag/ap-tag-group.vue.mjs";
96
+ import { default as it } from "./src/ap-layout/ApInfoLayout.vue.mjs";
97
+ import { NeedNameKeyDefault as nt } from "./src/ap-upload/apUploadTypes.mjs";
98
+ import { default as ct } from "./src/ap-upload/apUpload.vue.mjs";
99
+ import { ApDownLoadNeedNameKeyDefault as Ft } from "./src/ap-download/interface.mjs";
100
+ import { default as bt } from "./src/ap-download/ap-download.vue.mjs";
101
+ import { CheckCard as It } from "./src/check-card/index.mjs";
102
+ import { default as Pt } from "./src/check-card/group.vue.mjs";
103
+ import { ApModal as Dt } from "./src/ap-modal/index.mjs";
104
+ import { default as Rt } from "./src/ap-list/index.vue.mjs";
105
105
  import { usePageListApTable as Gt } from "./src/business/hooks/usePageListApTable.mjs";
106
- import { useTableRefresh as Bt } from "./src/business/hooks/useTableRefresh.mjs";
107
- import { default as wt } from "./src/business/ap-table-modal/index.mjs";
108
- import { useTableModal as Nt } from "./src/business/ap-table-modal/hooks/use-table-modal.mjs";
109
- import { useTableSelectModal as Et } from "./src/business/ap-table-modal/hooks/use-table-select-modal.mjs";
110
- import { ApAttachment as Xt, ApBatchAction as Yt, ApBatchActionGroup as Ht, ApExpandAlert as Ot, ApExportGroup as Wt, ApImage as zt, ApInputRadio as Ut, ApLabel as Vt, ApLabelGroup as $t, ApLadder as jt, ApSelectLayout as qt, ApStatus as Jt, ApStatusGroup as Qt, ApTitle as Zt } from "./src/business/index.mjs";
111
- import { ApTransformDataHelper as ea } from "./src/utils/ap-trans-data/index.mjs";
112
- import { useTablePaging as ra } from "./src/ap-table/hooks/use-table-paging.mjs";
113
- import { default as aa } from "./src/ap-table/ap-table.vue.mjs";
114
- import { default as fa } from "./src/editable-table/index.vue.mjs";
115
- import { default as la } from "./src/editable-table/form-item.vue.mjs";
116
- import { default as da } from "./src/ap-descriptions/ap-descriptions.vue.mjs";
117
- import { useMessage as ia } from "./src/hooks/useMessage.mjs";
118
- import { useControllableValue as na } from "./src/hooks/useControllableValue.mjs";
106
+ import { useTableRefresh as Lt } from "./src/business/hooks/useTableRefresh.mjs";
107
+ import { default as kt } from "./src/business/ap-table-modal/index.mjs";
108
+ import { useTableModal as yt } from "./src/business/ap-table-modal/hooks/use-table-modal.mjs";
109
+ import { useTableSelectModal as Kt } from "./src/business/ap-table-modal/hooks/use-table-select-modal.mjs";
110
+ import { ApActionButton as Yt, ApAttachment as Ht, ApBatchAction as Ot, ApBatchActionGroup as Wt, ApExpandAlert as zt, ApExportGroup as Ut, ApImage as Vt, ApInputRadio as $t, ApLabel as jt, ApLabelGroup as qt, ApLadder as Jt, ApSelectLayout as Qt, ApStatus as Zt, ApStatusGroup as _t, ApTitle as ea } from "./src/business/index.mjs";
111
+ import { ApTransformDataHelper as ra } from "./src/utils/ap-trans-data/index.mjs";
112
+ import { useTablePaging as aa } from "./src/ap-table/hooks/use-table-paging.mjs";
113
+ import { default as fa } from "./src/ap-table/ap-table.vue.mjs";
114
+ import { default as la } from "./src/editable-table/index.vue.mjs";
115
+ import { default as da } from "./src/editable-table/form-item.vue.mjs";
116
+ import { default as ia } from "./src/ap-descriptions/ap-descriptions.vue.mjs";
117
+ import { useMessage as na } from "./src/hooks/useMessage.mjs";
118
+ import { useControllableValue as ca } from "./src/hooks/useControllableValue.mjs";
119
119
  const p = {
120
120
  install: (r) => {
121
121
  for (const t in o) {
@@ -126,21 +126,22 @@ const p = {
126
126
  };
127
127
  export {
128
128
  k as APConfigProvider,
129
+ Yt as ApActionButton,
129
130
  Ur as ApActionGroup,
130
131
  Er as ApActionItem,
131
132
  Wr as ApActionItemDropdown,
132
133
  Xr as ApActionItemModal,
133
134
  Hr as ApActionItemPopconfirm,
134
- Xt as ApAttachment,
135
- Yt as ApBatchAction,
136
- Ht as ApBatchActionGroup,
135
+ Ht as ApAttachment,
136
+ Ot as ApBatchAction,
137
+ Wt as ApBatchActionGroup,
137
138
  Qr as ApCustomColumn,
138
139
  _r as ApCustomSelect,
139
- da as ApDescriptions,
140
- Tt as ApDownLoadNeedNameKeyDefault,
141
- Ct as ApDownload,
142
- Ot as ApExpandAlert,
143
- Wt as ApExportGroup,
140
+ ia as ApDescriptions,
141
+ Ft as ApDownLoadNeedNameKeyDefault,
142
+ bt as ApDownload,
143
+ zt as ApExpandAlert,
144
+ Ut as ApExportGroup,
144
145
  fr as ApField,
145
146
  dr as ApFieldCheckbox,
146
147
  ir as ApFieldDate,
@@ -149,7 +150,7 @@ export {
149
150
  Dr as ApFieldPassword,
150
151
  cr as ApFieldRadio,
151
152
  Lr as ApFieldRate,
152
- vr as ApFieldSegmented,
153
+ Gr as ApFieldSegmented,
153
154
  Pr as ApFieldSelect,
154
155
  Rr as ApFieldSlider,
155
156
  Fr as ApFieldSwitch,
@@ -166,32 +167,32 @@ export {
166
167
  Yo as ApFormItemSelect,
167
168
  Oo as ApFormItemSwitch,
168
169
  Ro as ApFormItemText,
169
- vo as ApFormItemTextArea,
170
+ Go as ApFormItemTextArea,
170
171
  Vo as ApFormItemTextPassword,
171
172
  er as ApFormList,
172
173
  ar as ApFormModalForm,
173
174
  rr as ApFormSearchForm,
174
- zt as ApImage,
175
- xt as ApInfoLayout,
176
- Ut as ApInputRadio,
177
- Vt as ApLabel,
178
- $t as ApLabelGroup,
179
- jt as ApLadder,
180
- Mt as ApList,
181
- ht as ApModal,
182
- qt as ApSelectLayout,
183
- Jt as ApStatus,
184
- Qt as ApStatusGroup,
185
- aa as ApTable,
186
- wt as ApTableModal,
187
- mt as ApTag,
188
- st as ApTagGroup,
189
- Zt as ApTitle,
190
- ea as ApTransformDataHelper,
191
- At as ApUpload,
175
+ Vt as ApImage,
176
+ it as ApInfoLayout,
177
+ $t as ApInputRadio,
178
+ jt as ApLabel,
179
+ qt as ApLabelGroup,
180
+ Jt as ApLadder,
181
+ Rt as ApList,
182
+ Dt as ApModal,
183
+ Qt as ApSelectLayout,
184
+ Zt as ApStatus,
185
+ _t as ApStatusGroup,
186
+ fa as ApTable,
187
+ kt as ApTableModal,
188
+ lt as ApTag,
189
+ dt as ApTagGroup,
190
+ ea as ApTitle,
191
+ ra as ApTransformDataHelper,
192
+ ct as ApUpload,
192
193
  De as ApiCascader,
193
194
  Re as ApiRadioGroup,
194
- ve as ApiSelect,
195
+ Ge as ApiSelect,
195
196
  Le as ApiTransfer,
196
197
  ke as ApiTree,
197
198
  Ye as ApiTreeSelect,
@@ -200,11 +201,11 @@ export {
200
201
  $ as BasicArrow,
201
202
  j as BasicHelp,
202
203
  q as BasicTitle,
203
- St as CheckCard,
204
- gt as CheckCardGroup,
204
+ It as CheckCard,
205
+ Pt as CheckCardGroup,
205
206
  K as CollapseContainer,
206
207
  Q as CollapseTransition,
207
- B as ConfigProvider,
208
+ v as ConfigProvider,
208
209
  xo as CountdownButton,
209
210
  io as CountdownInput,
210
211
  mo as CropperAvatar,
@@ -213,8 +214,8 @@ export {
213
214
  ot as DictCode,
214
215
  co as Dropdown,
215
216
  Io as EditTableHeaderIcon,
216
- fa as EditableTable,
217
- la as EditableTableFormItem,
217
+ la as EditableTable,
218
+ da as EditableTableFormItem,
218
219
  _ as ExpandTransition,
219
220
  ee as ExpandXTransition,
220
221
  oe as FadeTransition,
@@ -222,7 +223,7 @@ export {
222
223
  l as Icon,
223
224
  H as IconPicker,
224
225
  Ve as ModalButton,
225
- ut as NeedNameKeyDefault,
226
+ nt as NeedNameKeyDefault,
226
227
  je as PopConfirmButton,
227
228
  Ke as ProForm,
228
229
  Fo as ProTable,
@@ -245,7 +246,7 @@ export {
245
246
  s as SvgIcon,
246
247
  bo as TableAction,
247
248
  Po as TableImg,
248
- pt as WorkOrderModal,
249
+ ft as WorkOrderModal,
249
250
  kr as adminToken,
250
251
  Nr as aplusToken,
251
252
  b as buildLocaleContext,
@@ -253,7 +254,7 @@ export {
253
254
  u as configProviderContextKey,
254
255
  x as configProviderProps,
255
256
  no as createPrompt,
256
- tt as createWorkOrderModal,
257
+ at as createWorkOrderModal,
257
258
  p as default,
258
259
  D as defaultNamespace,
259
260
  U as en,
@@ -262,6 +263,7 @@ export {
262
263
  Se as isComponentFormSchema,
263
264
  Ie as isSlotFormSchema,
264
265
  c as keysOf,
266
+ rt as langMap,
265
267
  I as localeContextKey,
266
268
  M as namespaceContextKey,
267
269
  T as provideGlobalConfig,
@@ -269,22 +271,22 @@ export {
269
271
  g as translate,
270
272
  qr as useCacheColumnSetting,
271
273
  Te as useComponentRegister,
272
- na as useControllableValue,
274
+ ca as useControllableValue,
273
275
  ue as useDescription,
274
276
  Ce as useForm,
275
277
  R as useGetDerivedNamespace,
276
278
  F as useGlobalConfig,
277
279
  P as useLocale,
278
- ia as useMessage,
280
+ na as useMessage,
279
281
  ro as useModal,
280
282
  eo as useModalContext,
281
283
  to as useModalInner,
282
- G as useNamespace,
284
+ B as useNamespace,
283
285
  Gt as usePageListApTable,
284
286
  Do as useTable,
285
- Nt as useTableModal,
286
- ra as useTablePaging,
287
- Bt as useTableRefresh,
288
- Et as useTableSelectModal,
287
+ yt as useTableModal,
288
+ aa as useTablePaging,
289
+ Lt as useTableRefresh,
290
+ Kt as useTableSelectModal,
289
291
  W as zhCn
290
292
  };
@@ -897,7 +897,7 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
897
897
  validateTrigger: string;
898
898
  }>, {
899
899
  resetFields: () => Promise<void>;
900
- clearValidate: (name?: NamePath) => void;
900
+ clearValidate: (name?: NamePath | NamePath[]) => void;
901
901
  validateFields: (nameList?: NamePath[] | string, options?: ValidateOptions) => Promise<{
902
902
  [key: string]: any;
903
903
  }> | undefined;
@@ -428,7 +428,7 @@ declare function __VLS_template(): {
428
428
  };
429
429
  }>>, {
430
430
  resetFields: () => Promise<void>;
431
- clearValidate: (name?: NamePath) => void;
431
+ clearValidate: (name?: NamePath | NamePath[]) => void;
432
432
  validateFields: (nameList?: NamePath[] | string, options?: ValidateOptions) => Promise<{
433
433
  [key: string]: any;
434
434
  }> | undefined;
@@ -620,7 +620,7 @@ declare function __VLS_template(): {
620
620
  };
621
621
  }>>, "validate" | "setFieldsValue" | "resetFields" | "getFieldsValue" | "clearValidate" | "validateFields" | "scrollToField" | "setFieldValue" | "getInternalInstance" | "registerWatch"> & ShallowUnwrapRef<{
622
622
  resetFields: () => Promise<void>;
623
- clearValidate: (name?: NamePath) => void;
623
+ clearValidate: (name?: NamePath | NamePath[]) => void;
624
624
  validateFields: (nameList?: NamePath[] | string, options?: ValidateOptions) => Promise<{
625
625
  [key: string]: any;
626
626
  }> | undefined;
@@ -423,7 +423,7 @@ declare function __VLS_template(): {
423
423
  };
424
424
  }>>, {
425
425
  resetFields: () => Promise<void>;
426
- clearValidate: (name?: NamePath) => void;
426
+ clearValidate: (name?: NamePath | NamePath[]) => void;
427
427
  validateFields: (nameList?: NamePath[] | string, options?: ValidateOptions) => Promise<{
428
428
  [key: string]: any;
429
429
  }> | undefined;
@@ -615,7 +615,7 @@ declare function __VLS_template(): {
615
615
  };
616
616
  }>>, "validate" | "setFieldsValue" | "resetFields" | "getFieldsValue" | "clearValidate" | "validateFields" | "scrollToField" | "setFieldValue" | "getInternalInstance" | "registerWatch"> & ShallowUnwrapRef<{
617
617
  resetFields: () => Promise<void>;
618
- clearValidate: (name?: NamePath) => void;
618
+ clearValidate: (name?: NamePath | NamePath[]) => void;
619
619
  validateFields: (nameList?: NamePath[] | string, options?: ValidateOptions) => Promise<{
620
620
  [key: string]: any;
621
621
  }> | undefined;
@@ -415,7 +415,7 @@ const Ca = /* @__PURE__ */ Re({
415
415
  records: W.value.dataSource
416
416
  })]),
417
417
  _: 2
418
- }, [Q(l(_)(S, ["title", "searchFormExtra", "headerCell"]), (t, r) => ({
418
+ }, [Q(l(_)(S, ["title", "searchFormExtra", "headerCell", "summary"]), (t, r) => ({
419
419
  name: r,
420
420
  fn: b((d) => [w(e.$slots, r, Be(xe(d || {})))])
421
421
  }))]), 1040, ["class", "size", "table-layout", "columns"])], 6)], 2));
@@ -1,14 +1,14 @@
1
- import { defineComponent as O, ref as x, unref as n, computed as $, watch as q, onMounted as G, openBlock as i, createElementBlock as _, normalizeClass as f, createVNode as N, withCtx as h, createElementVNode as g, toDisplayString as k, createTextVNode as H, createBlock as p, createCommentVNode as s } from "vue";
2
- import { Flex as J, Button as K, Divider as P } from "ant-design-vue";
3
- import M from "vuedraggable";
1
+ import { defineComponent as A, ref as L, unref as n, computed as O, watch as $, openBlock as c, createElementBlock as y, normalizeClass as d, createVNode as m, withCtx as v, createElementVNode as g, toDisplayString as k, createTextVNode as q, createBlock as b, createCommentVNode as p } from "vue";
2
+ import { Flex as G, Button as H, Divider as J } from "ant-design-vue";
3
+ import N from "vuedraggable";
4
4
  import "../sortable/index.vue.mjs";
5
5
  import "../../../../config-provider/index.mjs";
6
6
  import "../../style/setting/sorter.css";
7
- import { useProvideSorterMethods as Q } from "./context.mjs";
8
- import { useNamespace as W } from "../../../../config-provider/hooks/use-namespace.mjs";
9
- import { useLocale as X } from "../../../../config-provider/hooks/use-locale.mjs";
7
+ import { useProvideSorterMethods as K } from "./context.mjs";
8
+ import { useNamespace as P } from "../../../../config-provider/hooks/use-namespace.mjs";
9
+ import { useLocale as Q } from "../../../../config-provider/hooks/use-locale.mjs";
10
10
  import R from "../sortable/index.vue2.mjs";
11
- const Y = { key: 0 }, Z = { key: 1 }, ee = { key: 2 }, fe = /* @__PURE__ */ O({
11
+ const W = { key: 0 }, X = { key: 1 }, Y = { key: 2 }, ce = /* @__PURE__ */ A({
12
12
  __name: "index",
13
13
  props: {
14
14
  value: {},
@@ -16,11 +16,11 @@ const Y = { key: 0 }, Z = { key: 1 }, ee = { key: 2 }, fe = /* @__PURE__ */ O({
16
16
  },
17
17
  emits: ["update:value"],
18
18
  setup(V, { emit: B }) {
19
- const u = x([]), r = x([]), c = x([]), y = x(!1), { b: d } = W("column-setting-sorter"), { t: v } = X(), C = V, S = B;
20
- Q({
19
+ const i = L([]), s = L([]), r = L([]), { b: u } = P("column-setting-sorter"), { t: h } = Q(), x = V, S = B;
20
+ K({
21
21
  fixedToLeft: I,
22
- fixedToRight: U,
23
- unFixed: z
22
+ fixedToRight: M,
23
+ unFixed: U
24
24
  });
25
25
  function F(e, t) {
26
26
  const o = t[0].findIndex(
@@ -35,8 +35,8 @@ const Y = { key: 0 }, Z = { key: 1 }, ee = { key: 2 }, fe = /* @__PURE__ */ O({
35
35
  t[1].splice(a, 1);
36
36
  }
37
37
  }
38
- function T(e, t) {
39
- const o = [...n(u.value)], a = [...n(c.value)], l = [...n(r.value)], b = {
38
+ function _(e, t) {
39
+ const o = [...n(i.value)], a = [...n(r.value)], l = [...n(s.value)], w = {
40
40
  left: {
41
41
  target: o,
42
42
  search: [l, a]
@@ -50,154 +50,149 @@ const Y = { key: 0 }, Z = { key: 1 }, ee = { key: 2 }, fe = /* @__PURE__ */ O({
50
50
  search: [o, a]
51
51
  }
52
52
  }[t];
53
- return t === "right" ? b.target.unshift(e) : b.target.push(e), F(
53
+ return t === "right" ? w.target.unshift(e) : w.target.push(e), F(
54
54
  e,
55
- b.search
55
+ w.search
56
56
  ), [...o, ...l, ...a];
57
57
  }
58
58
  function I(e) {
59
- const t = T(e, "left");
60
- m(t);
59
+ const t = _(e, "left");
60
+ f(t);
61
61
  }
62
- function U(e) {
63
- const t = T(e, "right");
64
- m(t);
62
+ function M(e) {
63
+ const t = _(e, "right");
64
+ f(t);
65
65
  }
66
- function z(e) {
67
- const t = T(e, "normal");
68
- m(t);
66
+ function U(e) {
67
+ const t = _(e, "normal");
68
+ f(t);
69
69
  }
70
- function w(e) {
70
+ function C(e) {
71
71
  var t;
72
72
  return (t = e.children) != null && t.length ? e.children.some((o) => o.show) : e.show;
73
73
  }
74
- function L(e, t) {
74
+ function T(e, t) {
75
75
  e.value ? e.value.push(t) : e.value = [t];
76
76
  }
77
- const D = $(() => {
77
+ const z = O(() => {
78
78
  let e = 0;
79
79
  function t(o) {
80
80
  var a;
81
81
  for (const l of o)
82
82
  (a = l.children) != null && a.length ? t(l.children) : l.show && (e += 1);
83
83
  }
84
- return t(C.value), e;
84
+ return t(x.value), e;
85
85
  });
86
+ function D(e) {
87
+ f([...e, ...n(s), ...n(r)]);
88
+ }
86
89
  function E(e) {
87
- m([...e, ...n(r), ...n(c)]);
90
+ f([...n(i), ...e, ...n(r)]);
88
91
  }
89
92
  function j(e) {
90
- m([...n(u), ...e, ...n(c)]);
91
- }
92
- function A(e) {
93
- m([...n(u), ...n(r), ...e]);
93
+ f([...n(i), ...n(s), ...e]);
94
94
  }
95
- function m(e) {
95
+ function f(e) {
96
96
  S("update:value", e);
97
97
  }
98
- return q(
99
- () => C.value,
98
+ return $(
99
+ () => x.value,
100
100
  (e) => {
101
101
  if (e) {
102
- u.value = [], r.value = [], c.value = [];
102
+ i.value = [], s.value = [], r.value = [];
103
103
  for (const t of e)
104
- t.fixed === "left" ? L(u, t) : t.fixed === "right" ? L(c, t) : L(r, t);
104
+ t.fixed === "left" ? T(i, t) : t.fixed === "right" ? T(r, t) : T(s, t);
105
105
  }
106
106
  },
107
107
  { immediate: !0 }
108
- ), G(() => {
109
- y.value = !0;
110
- }), (e, t) => (i(), _("div", {
111
- class: f(n(d)())
108
+ ), (e, t) => (c(), y("div", {
109
+ class: d(n(u)())
112
110
  }, [
113
- N(n(J), {
114
- class: f(n(d)("header")),
111
+ m(n(G), {
112
+ class: d(n(u)("header")),
115
113
  align: "center",
116
114
  justify: "space-between"
117
115
  }, {
118
- default: h(() => [
116
+ default: v(() => [
119
117
  g("span", {
120
- class: f(n(d)("header-title"))
121
- }, k(n(v)("ap.apTable.setting.selectCount", { count: D.value })), 3),
122
- N(n(K), {
118
+ class: d(n(u)("header-title"))
119
+ }, k(n(h)("ap.apTable.setting.selectCount", { count: z.value })), 3),
120
+ m(n(H), {
123
121
  type: "link",
124
122
  size: "small",
125
123
  style: { padding: "0" },
126
- onClick: C.onReset
124
+ onClick: x.onReset
127
125
  }, {
128
- default: h(() => [
129
- H(k(n(v)("ap.apTable.setting.reset")), 1)
126
+ default: v(() => [
127
+ q(k(n(h)("ap.apTable.setting.reset")), 1)
130
128
  ]),
131
129
  _: 1
132
130
  }, 8, ["onClick"])
133
131
  ]),
134
132
  _: 1
135
133
  }, 8, ["class"]),
136
- N(n(P), { style: { margin: "0px" } }),
134
+ m(n(J), { style: { margin: "0px" } }),
137
135
  g("div", {
138
- class: f(n(d)("content"))
136
+ class: d(n(u)("content"))
139
137
  }, [
140
- u.value.length ? (i(), _("div", Y, [
138
+ i.value.length ? (c(), y("div", W, [
141
139
  g("span", {
142
- class: f(n(d)("section-title"))
143
- }, k(n(v)("ap.apTable.setting.fixToLeft")), 3),
144
- y.value ? (i(), p(n(M), {
145
- key: 0,
146
- "model-value": u.value,
147
- "onUpdate:modelValue": E,
140
+ class: d(n(u)("section-title"))
141
+ }, k(n(h)("ap.apTable.setting.fixToLeft")), 3),
142
+ m(n(N), {
143
+ "model-value": i.value,
144
+ "onUpdate:modelValue": D,
148
145
  "item-key": "key"
149
146
  }, {
150
- item: h(({ element: o }) => [
151
- w(o) ? (i(), p(R, {
147
+ item: v(({ element: o }) => [
148
+ C(o) ? (c(), b(R, {
152
149
  key: 0,
153
150
  value: o
154
- }, null, 8, ["value"])) : s("", !0)
151
+ }, null, 8, ["value"])) : p("", !0)
155
152
  ]),
156
153
  _: 1
157
- }, 8, ["model-value"])) : s("", !0)
158
- ])) : s("", !0),
159
- r.value.length ? (i(), _("div", Z, [
154
+ }, 8, ["model-value"])
155
+ ])) : p("", !0),
156
+ s.value.length ? (c(), y("div", X, [
160
157
  g("span", {
161
- class: f(n(d)("section-title"))
162
- }, k(n(v)("ap.apTable.setting.unFixed")), 3),
163
- y.value ? (i(), p(n(M), {
164
- key: 0,
165
- "model-value": r.value,
166
- "onUpdate:modelValue": j,
158
+ class: d(n(u)("section-title"))
159
+ }, k(n(h)("ap.apTable.setting.unFixed")), 3),
160
+ m(n(N), {
161
+ "model-value": s.value,
162
+ "onUpdate:modelValue": E,
167
163
  "item-key": "key"
168
164
  }, {
169
- item: h(({ element: o }) => [
170
- w(o) ? (i(), p(R, {
165
+ item: v(({ element: o }) => [
166
+ C(o) ? (c(), b(R, {
171
167
  key: 0,
172
168
  value: o
173
- }, null, 8, ["value"])) : s("", !0)
169
+ }, null, 8, ["value"])) : p("", !0)
174
170
  ]),
175
171
  _: 1
176
- }, 8, ["model-value"])) : s("", !0)
177
- ])) : s("", !0),
178
- c.value.length ? (i(), _("div", ee, [
172
+ }, 8, ["model-value"])
173
+ ])) : p("", !0),
174
+ r.value.length ? (c(), y("div", Y, [
179
175
  g("span", {
180
- class: f(n(d)("section-title"))
181
- }, k(n(v)("ap.apTable.setting.fixToRight")), 3),
182
- y.value ? (i(), p(n(M), {
183
- key: 0,
184
- "model-value": c.value,
185
- "onUpdate:modelValue": A,
176
+ class: d(n(u)("section-title"))
177
+ }, k(n(h)("ap.apTable.setting.fixToRight")), 3),
178
+ m(n(N), {
179
+ "model-value": r.value,
180
+ "onUpdate:modelValue": j,
186
181
  "item-key": "key"
187
182
  }, {
188
- item: h(({ element: o }) => [
189
- w(o) ? (i(), p(R, {
183
+ item: v(({ element: o }) => [
184
+ C(o) ? (c(), b(R, {
190
185
  key: 0,
191
186
  value: o
192
- }, null, 8, ["value"])) : s("", !0)
187
+ }, null, 8, ["value"])) : p("", !0)
193
188
  ]),
194
189
  _: 1
195
- }, 8, ["model-value"])) : s("", !0)
196
- ])) : s("", !0)
190
+ }, 8, ["model-value"])
191
+ ])) : p("", !0)
197
192
  ], 2)
198
193
  ], 2));
199
194
  }
200
195
  });
201
196
  export {
202
- fe as default
197
+ ce as default
203
198
  };