@aplus-frontend/ui 0.2.4 → 0.2.6

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 (47) hide show
  1. package/es/index.mjs +133 -131
  2. package/es/src/ap-form/interface.d.ts +1 -0
  3. package/es/src/ap-scroll-bar/ap-scroll-bar.vue.d.ts +27 -0
  4. package/es/src/ap-scroll-bar/ap-scroll-bar.vue.mjs +4 -0
  5. package/es/src/ap-scroll-bar/ap-scroll-bar.vue2.mjs +116 -0
  6. package/es/src/ap-scroll-bar/index.d.ts +62 -0
  7. package/es/src/ap-scroll-bar/index.mjs +8 -0
  8. package/es/src/ap-scroll-bar/interface.d.ts +4 -0
  9. package/es/src/ap-scroll-bar/interface.mjs +1 -0
  10. package/es/src/ap-scroll-bar/style/css.d.ts +0 -0
  11. package/es/src/ap-scroll-bar/style/css.js +1 -0
  12. package/es/src/ap-scroll-bar/style/index.d.ts +0 -0
  13. package/es/src/ap-scroll-bar/style/index.js +1 -0
  14. package/es/src/ap-table/ap-table.vue.d.ts +2 -0
  15. package/es/src/ap-table/ap-table.vue2.mjs +116 -123
  16. package/es/src/ap-table/components/setting/modal/index.vue.d.ts +1 -1
  17. package/es/src/ap-table/components/setting/modal/index.vue2.mjs +62 -56
  18. package/es/src/ap-table/constants.d.ts +40 -40
  19. package/es/src/ap-table/utils.d.ts +40 -40
  20. package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +70 -63
  21. package/es/src/index.d.ts +1 -0
  22. package/es/src/index.mjs +192 -190
  23. package/es/src/path-map.mjs +1 -0
  24. package/lib/index.js +1 -1
  25. package/lib/src/ap-form/interface.d.ts +1 -0
  26. package/lib/src/ap-scroll-bar/ap-scroll-bar.vue.d.ts +27 -0
  27. package/lib/src/ap-scroll-bar/ap-scroll-bar.vue.js +1 -0
  28. package/lib/src/ap-scroll-bar/ap-scroll-bar.vue2.js +1 -0
  29. package/lib/src/ap-scroll-bar/index.d.ts +62 -0
  30. package/lib/src/ap-scroll-bar/index.js +1 -0
  31. package/lib/src/ap-scroll-bar/interface.d.ts +4 -0
  32. package/lib/src/ap-scroll-bar/interface.js +1 -0
  33. package/lib/src/ap-scroll-bar/style/css.d.ts +0 -0
  34. package/lib/src/ap-scroll-bar/style/css.js +1 -0
  35. package/lib/src/ap-scroll-bar/style/index.d.ts +0 -0
  36. package/lib/src/ap-scroll-bar/style/index.js +1 -0
  37. package/lib/src/ap-table/ap-table.vue.d.ts +2 -0
  38. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  39. package/lib/src/ap-table/components/setting/modal/index.vue.d.ts +1 -1
  40. package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
  41. package/lib/src/ap-table/constants.d.ts +40 -40
  42. package/lib/src/ap-table/utils.d.ts +40 -40
  43. package/lib/src/business/ap-appendix/ap-appendix.vue2.js +1 -1
  44. package/lib/src/index.d.ts +1 -0
  45. package/lib/src/index.js +1 -1
  46. package/lib/src/path-map.js +1 -1
  47. package/package.json +6 -4
package/es/index.mjs CHANGED
@@ -1,16 +1,16 @@
1
- import * as o from "./src/index.mjs";
1
+ import * as e from "./src/index.mjs";
2
2
  import { default as l } from "./src/path-map.mjs";
3
3
  import "./src/hooks/index.mjs";
4
4
  import { configProviderProps as d } from "./src/config-provider/config-provider-props.mjs";
5
5
  import { configProviderContextKey as u } from "./src/config-provider/constants.mjs";
6
6
  import { keysOf as i, provideGlobalConfig as n, useGlobalConfig as c } from "./src/config-provider/hooks/use-global-config.mjs";
7
7
  import { buildLocaleContext as b, buildTranslator as T, localeContextKey as I, translate as C, useLocale as g } from "./src/config-provider/hooks/use-locale.mjs";
8
- import { defaultNamespace as h, namespaceContextKey as G, useGetDerivedNamespace as S, useNamespace as y } from "./src/config-provider/hooks/use-namespace.mjs";
8
+ import { defaultNamespace as h, namespaceContextKey as S, useGetDerivedNamespace as G, useNamespace as y } from "./src/config-provider/hooks/use-namespace.mjs";
9
9
  import { ConfigProvider as L, globalConfigCached as M } from "./src/config-provider/config-provider.mjs";
10
10
  import { APConfigProvider as k } from "./src/config-provider/index.mjs";
11
11
  import { ApFormItemText as R } from "./src/ap-form/items/text/index.mjs";
12
- import { default as E } from "./src/ap-form/items/text-area/index.vue.mjs";
13
- import { default as B } from "./src/ap-form/items/number/index.vue.mjs";
12
+ import { default as B } from "./src/ap-form/items/text-area/index.vue.mjs";
13
+ import { default as K } from "./src/ap-form/items/number/index.vue.mjs";
14
14
  import { default as W } from "./src/ap-form/items/date/index.vue.mjs";
15
15
  import { default as U } from "./src/ap-form/items/date-range/index.vue.mjs";
16
16
  import { default as $ } from "./src/ap-form/items/radio/index.vue.mjs";
@@ -18,60 +18,60 @@ import { default as q } from "./src/ap-form/items/select/index.vue.mjs";
18
18
  import { default as J } from "./src/ap-form/items/switch/index.vue.mjs";
19
19
  import { default as X } from "./src/ap-form/items/checkbox/index.vue.mjs";
20
20
  import { default as Z } from "./src/ap-form/items/text/password.vue.mjs";
21
- import { ApForm as ee } from "./src/ap-form/index.mjs";
22
- import { default as re } from "./src/ap-form/item/index.vue.mjs";
23
- import { default as pe } from "./src/ap-form/item-group/index.vue.mjs";
24
- import { default as fe } from "./src/ap-form/list/index.vue.mjs";
25
- import { default as le } from "./src/ap-form/search-form/index.vue.mjs";
26
- import { default as de } from "./src/ap-form/modal-form/index.vue.mjs";
27
- import { default as ue } from "./src/ap-form/dependency/index.vue.mjs";
28
- import { default as ie } from "./src/ap-form/set/index.vue.mjs";
29
- import { default as ce } from "./src/ap-form/drawer-form/index.vue.mjs";
30
- import { ApField as be } from "./src/ap-field/index.mjs";
31
- import { ApFieldText as Ie } from "./src/ap-field/text/index.mjs";
32
- import { default as ge } from "./src/ap-field/checkbox/index.vue.mjs";
33
- import { default as he } from "./src/ap-field/date/index.vue.mjs";
34
- import { default as Se } from "./src/ap-field/number/index.vue.mjs";
35
- import { default as Ne } from "./src/ap-field/radio/index.vue.mjs";
36
- import { default as Me } from "./src/ap-field/switch/index.vue.mjs";
37
- import { default as ke } from "./src/ap-field/text-area/index.vue.mjs";
38
- import { default as Re } from "./src/ap-field/date-range/index.vue.mjs";
39
- import { default as Ee } from "./src/ap-field/select/index.vue.mjs";
40
- import { default as Be } from "./src/ap-field/text/password.vue.mjs";
41
- import { default as We } from "./src/ap-field/slider/index.vue.mjs";
42
- import { default as Ue } from "./src/ap-field/segmented/index.vue.mjs";
43
- import { default as $e } from "./src/ap-field/rate/index.vue.mjs";
44
- import { adminToken as qe, aplusToken as ze } from "./src/design-token/index.mjs";
45
- import { ApActionItem as Qe } from "./src/ap-action/index.mjs";
46
- import { default as Ye } from "./src/ap-action/item-modal/index.vue.mjs";
47
- import { default as _e } from "./src/ap-action/item-popconfirm/index.vue.mjs";
48
- import { default as oo } from "./src/ap-action/item-dropdown/index.vue.mjs";
49
- import { default as to } from "./src/ap-action/group/index.vue.mjs";
50
- import { DictCode as ao, langMap as fo } from "./src/work-order-modal/interfaces.mjs";
51
- import { createWorkOrderModal as lo } from "./src/work-order-modal/createWorkOrder.mjs";
52
- import { default as so } from "./src/work-order-modal/work-order-modal.vue.mjs";
53
- import { default as Ao } from "./src/ap-tag/ap-tag.vue.mjs";
54
- import { default as no } from "./src/ap-tag/ap-tag-group.vue.mjs";
55
- import { default as Fo } from "./src/ap-info-layout/ApInfoLayout.vue.mjs";
56
- import { NeedNameKeyDefault as To } from "./src/ap-upload/apUploadTypes.mjs";
57
- import { default as Co } from "./src/ap-upload/apUpload.vue.mjs";
58
- import { ApDownLoadNeedNameKeyDefault as Do } from "./src/ap-download/interface.mjs";
59
- import { default as Go } from "./src/ap-download/ap-download.vue.mjs";
60
- import { CheckCard as yo } from "./src/check-card/index.mjs";
61
- import { default as Lo } from "./src/check-card/group.vue.mjs";
62
- import { ApModal as Po } from "./src/ap-modal/index.mjs";
63
- import { default as wo } from "./src/ap-list/index.vue.mjs";
64
- import { default as vo } from "./src/ap-button/ap-button.vue.mjs";
65
- import { default as Ko } from "./src/ap-button/ap-action-button.vue.mjs";
66
- import { ApTransformDataHelper as Oo } from "./src/utils/ap-trans-data/index.mjs";
67
- import { default as Ho } from "./src/business/ap-table-modal/index.mjs";
68
- import { useTableModal as Vo } from "./src/business/ap-table-modal/hooks/use-table-modal.mjs";
69
- import { useTableSelectModal as jo } from "./src/business/ap-table-modal/hooks/use-table-select-modal.mjs";
70
- import { ApAttachment as zo } from "./src/business/ap-attachment/index.mjs";
71
- import { ApBatchAction as Qo } from "./src/business/ap-batch-action/index.mjs";
72
- import { ApBatchActionGroup as Yo } from "./src/business/ap-batch-action-group/index.mjs";
73
- import { ApButtonGroup as _o } from "./src/business/ap-button-group/index.mjs";
74
- import { ApCard as or } from "./src/business/ap-card/index.mjs";
21
+ import { ApForm as oo } from "./src/ap-form/index.mjs";
22
+ import { default as ro } from "./src/ap-form/item/index.vue.mjs";
23
+ import { default as po } from "./src/ap-form/item-group/index.vue.mjs";
24
+ import { default as fo } from "./src/ap-form/list/index.vue.mjs";
25
+ import { default as lo } from "./src/ap-form/search-form/index.vue.mjs";
26
+ import { default as so } from "./src/ap-form/modal-form/index.vue.mjs";
27
+ import { default as Ao } from "./src/ap-form/dependency/index.vue.mjs";
28
+ import { default as no } from "./src/ap-form/set/index.vue.mjs";
29
+ import { default as Fo } from "./src/ap-form/drawer-form/index.vue.mjs";
30
+ import { ApField as To } from "./src/ap-field/index.mjs";
31
+ import { ApFieldText as Co } from "./src/ap-field/text/index.mjs";
32
+ import { default as Do } from "./src/ap-field/checkbox/index.vue.mjs";
33
+ import { default as So } from "./src/ap-field/date/index.vue.mjs";
34
+ import { default as yo } from "./src/ap-field/number/index.vue.mjs";
35
+ import { default as Lo } from "./src/ap-field/radio/index.vue.mjs";
36
+ import { default as Po } from "./src/ap-field/switch/index.vue.mjs";
37
+ import { default as wo } from "./src/ap-field/text-area/index.vue.mjs";
38
+ import { default as vo } from "./src/ap-field/date-range/index.vue.mjs";
39
+ import { default as Eo } from "./src/ap-field/select/index.vue.mjs";
40
+ import { default as Oo } from "./src/ap-field/text/password.vue.mjs";
41
+ import { default as Ho } from "./src/ap-field/slider/index.vue.mjs";
42
+ import { default as Vo } from "./src/ap-field/segmented/index.vue.mjs";
43
+ import { default as jo } from "./src/ap-field/rate/index.vue.mjs";
44
+ import { adminToken as zo, aplusToken as Jo } from "./src/design-token/index.mjs";
45
+ import { ApActionItem as Xo } from "./src/ap-action/index.mjs";
46
+ import { default as Zo } from "./src/ap-action/item-modal/index.vue.mjs";
47
+ import { default as oe } from "./src/ap-action/item-popconfirm/index.vue.mjs";
48
+ import { default as re } from "./src/ap-action/item-dropdown/index.vue.mjs";
49
+ import { default as pe } from "./src/ap-action/group/index.vue.mjs";
50
+ import { DictCode as fe, langMap as me } from "./src/work-order-modal/interfaces.mjs";
51
+ import { createWorkOrderModal as xe } from "./src/work-order-modal/createWorkOrder.mjs";
52
+ import { default as se } from "./src/work-order-modal/work-order-modal.vue.mjs";
53
+ import { default as Ae } from "./src/ap-tag/ap-tag.vue.mjs";
54
+ import { default as ne } from "./src/ap-tag/ap-tag-group.vue.mjs";
55
+ import { default as Fe } from "./src/ap-info-layout/ApInfoLayout.vue.mjs";
56
+ import { NeedNameKeyDefault as Te } from "./src/ap-upload/apUploadTypes.mjs";
57
+ import { default as Ce } from "./src/ap-upload/apUpload.vue.mjs";
58
+ import { ApDownLoadNeedNameKeyDefault as De } from "./src/ap-download/interface.mjs";
59
+ import { default as Se } from "./src/ap-download/ap-download.vue.mjs";
60
+ import { CheckCard as ye } from "./src/check-card/index.mjs";
61
+ import { default as Le } from "./src/check-card/group.vue.mjs";
62
+ import { ApModal as Pe } from "./src/ap-modal/index.mjs";
63
+ import { default as we } from "./src/ap-list/index.vue.mjs";
64
+ import { default as ve } from "./src/ap-button/ap-button.vue.mjs";
65
+ import { default as Ee } from "./src/ap-button/ap-action-button.vue.mjs";
66
+ import { ApTransformDataHelper as Oe } from "./src/utils/ap-trans-data/index.mjs";
67
+ import { default as He } from "./src/business/ap-table-modal/index.mjs";
68
+ import { useTableModal as Ve } from "./src/business/ap-table-modal/hooks/use-table-modal.mjs";
69
+ import { useTableSelectModal as je } from "./src/business/ap-table-modal/hooks/use-table-select-modal.mjs";
70
+ import { ApAttachment as ze } from "./src/business/ap-attachment/index.mjs";
71
+ import { ApBatchAction as Qe } from "./src/business/ap-batch-action/index.mjs";
72
+ import { ApBatchActionGroup as Ye } from "./src/business/ap-batch-action-group/index.mjs";
73
+ import { ApButtonGroup as _e } from "./src/business/ap-button-group/index.mjs";
74
+ import { ApCard as er } from "./src/business/ap-card/index.mjs";
75
75
  import { ApExpandAlert as tr } from "./src/business/ap-expand-alert/index.mjs";
76
76
  import { ApExportGroupActionType as ar } from "./src/business/ap-export-group/interface.mjs";
77
77
  import { ApExportGroup as mr } from "./src/business/ap-export-group/index.mjs";
@@ -82,12 +82,12 @@ import { ApLabel as nr, ApLabelGroup as cr } from "./src/business/ap-label/index
82
82
  import { locales as br } from "./src/business/ap-ladder/interface.mjs";
83
83
  import { ApLadder as Ir } from "./src/business/ap-ladder/index.mjs";
84
84
  import { ApSelectLayout as gr } from "./src/business/ap-select-layout/index.mjs";
85
- import { ApStatus as hr, ApStatusGroup as Gr } from "./src/business/ap-status/index.mjs";
85
+ import { ApStatus as hr, ApStatusGroup as Sr } from "./src/business/ap-status/index.mjs";
86
86
  import { ApTitle as yr } from "./src/business/ap-title/index.mjs";
87
87
  import { usePageListApTable as Lr } from "./src/business/hooks/usePageListApTable.mjs";
88
88
  import { useTableRefresh as Pr } from "./src/business/hooks/useTableRefresh.mjs";
89
- import { computedRecords as wr, flattenColumns as Rr, formatDataIndex as vr, formatNumber as Er } from "./src/business/ap-summary/utils.mjs";
90
- import { ApSummary as Br } from "./src/business/ap-summary/index.mjs";
89
+ import { computedRecords as wr, flattenColumns as Rr, formatDataIndex as vr, formatNumber as Br } from "./src/business/ap-summary/utils.mjs";
90
+ import { ApSummary as Kr } from "./src/business/ap-summary/index.mjs";
91
91
  import { ApNeedNameKeyDefault as Wr } from "./src/business/ap-appendix/interface.mjs";
92
92
  import { ApAppendix as Ur } from "./src/business/ap-appendix/index.mjs";
93
93
  import { useTablePaging as $r } from "./src/ap-table/hooks/use-table-paging.mjs";
@@ -95,130 +95,132 @@ import { ApTable as qr } from "./src/ap-table/index.mjs";
95
95
  import { default as Jr } from "./src/editable-table/index.vue.mjs";
96
96
  import { default as Xr } from "./src/editable-table/form-item.vue.mjs";
97
97
  import { default as Zr } from "./src/ap-descriptions/ap-descriptions.vue.mjs";
98
- import { useMessage as et } from "./src/hooks/useMessage.mjs";
99
- import { useControllableValue as rt } from "./src/hooks/useControllableValue.mjs";
98
+ import { ApScrollBar as ot } from "./src/ap-scroll-bar/index.mjs";
99
+ import { useMessage as rt } from "./src/hooks/useMessage.mjs";
100
+ import { useControllableValue as pt } from "./src/hooks/useControllableValue.mjs";
100
101
  const a = {
101
102
  install: (r) => {
102
- for (const t in o) {
103
- const e = o[t];
104
- e.install && r.use(e);
103
+ for (const t in e) {
104
+ const o = e[t];
105
+ o.install && r.use(o);
105
106
  }
106
107
  }
107
108
  };
108
109
  export {
109
110
  k as APConfigProvider,
110
- Ko as ApActionButton,
111
- to as ApActionGroup,
112
- Qe as ApActionItem,
113
- oo as ApActionItemDropdown,
114
- Ye as ApActionItemModal,
115
- _e as ApActionItemPopconfirm,
111
+ Ee as ApActionButton,
112
+ pe as ApActionGroup,
113
+ Xo as ApActionItem,
114
+ re as ApActionItemDropdown,
115
+ Zo as ApActionItemModal,
116
+ oe as ApActionItemPopconfirm,
116
117
  Ur as ApAppendix,
117
- zo as ApAttachment,
118
- Qo as ApBatchAction,
119
- Yo as ApBatchActionGroup,
120
- vo as ApButton,
121
- _o as ApButtonGroup,
122
- or as ApCard,
118
+ ze as ApAttachment,
119
+ Qe as ApBatchAction,
120
+ Ye as ApBatchActionGroup,
121
+ ve as ApButton,
122
+ _e as ApButtonGroup,
123
+ er as ApCard,
123
124
  Zr as ApDescriptions,
124
- Do as ApDownLoadNeedNameKeyDefault,
125
- Go as ApDownload,
125
+ De as ApDownLoadNeedNameKeyDefault,
126
+ Se as ApDownload,
126
127
  tr as ApExpandAlert,
127
128
  mr as ApExportGroup,
128
129
  ar as ApExportGroupActionType,
129
- be as ApField,
130
- ge as ApFieldCheckbox,
131
- he as ApFieldDate,
132
- Re as ApFieldDateRange,
133
- Se as ApFieldNumber,
134
- Be as ApFieldPassword,
135
- Ne as ApFieldRadio,
136
- $e as ApFieldRate,
137
- Ue as ApFieldSegmented,
138
- Ee as ApFieldSelect,
139
- We as ApFieldSlider,
140
- Me as ApFieldSwitch,
141
- Ie as ApFieldText,
142
- ke as ApFieldTextArea,
143
- ee as ApForm,
144
- ue as ApFormDependency,
145
- ce as ApFormDrawerForm,
146
- re as ApFormItem,
130
+ To as ApField,
131
+ Do as ApFieldCheckbox,
132
+ So as ApFieldDate,
133
+ vo as ApFieldDateRange,
134
+ yo as ApFieldNumber,
135
+ Oo as ApFieldPassword,
136
+ Lo as ApFieldRadio,
137
+ jo as ApFieldRate,
138
+ Vo as ApFieldSegmented,
139
+ Eo as ApFieldSelect,
140
+ Ho as ApFieldSlider,
141
+ Po as ApFieldSwitch,
142
+ Co as ApFieldText,
143
+ wo as ApFieldTextArea,
144
+ oo as ApForm,
145
+ Ao as ApFormDependency,
146
+ Fo as ApFormDrawerForm,
147
+ ro as ApFormItem,
147
148
  X as ApFormItemCheckbox,
148
149
  W as ApFormItemDate,
149
150
  U as ApFormItemDateRange,
150
- pe as ApFormItemGroup,
151
- B as ApFormItemNumber,
151
+ po as ApFormItemGroup,
152
+ K as ApFormItemNumber,
152
153
  $ as ApFormItemRadio,
153
154
  q as ApFormItemSelect,
154
155
  J as ApFormItemSwitch,
155
156
  R as ApFormItemText,
156
- E as ApFormItemTextArea,
157
+ B as ApFormItemTextArea,
157
158
  Z as ApFormItemTextPassword,
158
- fe as ApFormList,
159
- de as ApFormModalForm,
160
- le as ApFormSearchForm,
161
- ie as ApFormSet,
159
+ fo as ApFormList,
160
+ so as ApFormModalForm,
161
+ lo as ApFormSearchForm,
162
+ no as ApFormSet,
162
163
  sr as ApImage,
163
- Fo as ApInfoLayout,
164
+ Fe as ApInfoLayout,
164
165
  Ar as ApInputRadio,
165
166
  nr as ApLabel,
166
167
  cr as ApLabelGroup,
167
168
  Ir as ApLadder,
168
- wo as ApList,
169
- Po as ApModal,
169
+ we as ApList,
170
+ Pe as ApModal,
170
171
  Wr as ApNeedNameKeyDefault,
172
+ ot as ApScrollBar,
171
173
  gr as ApSelectLayout,
172
174
  hr as ApStatus,
173
- Gr as ApStatusGroup,
174
- Br as ApSummary,
175
+ Sr as ApStatusGroup,
176
+ Kr as ApSummary,
175
177
  qr as ApTable,
176
- Ho as ApTableModal,
177
- Ao as ApTag,
178
- no as ApTagGroup,
178
+ He as ApTableModal,
179
+ Ae as ApTag,
180
+ ne as ApTagGroup,
179
181
  yr as ApTitle,
180
- Oo as ApTransformDataHelper,
181
- Co as ApUpload,
182
- yo as CheckCard,
183
- Lo as CheckCardGroup,
182
+ Oe as ApTransformDataHelper,
183
+ Ce as ApUpload,
184
+ ye as CheckCard,
185
+ Le as CheckCardGroup,
184
186
  L as ConfigProvider,
185
- ao as DictCode,
187
+ fe as DictCode,
186
188
  Jr as EditableTable,
187
189
  Xr as EditableTableFormItem,
188
- To as NeedNameKeyDefault,
189
- so as WorkOrderModal,
190
- qe as adminToken,
191
- ze as aplusToken,
190
+ Te as NeedNameKeyDefault,
191
+ se as WorkOrderModal,
192
+ zo as adminToken,
193
+ Jo as aplusToken,
192
194
  b as buildLocaleContext,
193
195
  T as buildTranslator,
194
196
  wr as computedRecords,
195
197
  u as configProviderContextKey,
196
198
  d as configProviderProps,
197
- lo as createWorkOrderModal,
199
+ xe as createWorkOrderModal,
198
200
  a as default,
199
201
  h as defaultNamespace,
200
202
  Rr as flattenColumns,
201
203
  vr as formatDataIndex,
202
- Er as formatNumber,
204
+ Br as formatNumber,
203
205
  M as globalConfigCached,
204
206
  xr as handleExportDownload,
205
207
  i as keysOf,
206
- fo as langMap,
208
+ me as langMap,
207
209
  I as localeContextKey,
208
210
  br as locales,
209
- G as namespaceContextKey,
211
+ S as namespaceContextKey,
210
212
  l as pathMap,
211
213
  n as provideGlobalConfig,
212
214
  C as translate,
213
- rt as useControllableValue,
214
- S as useGetDerivedNamespace,
215
+ pt as useControllableValue,
216
+ G as useGetDerivedNamespace,
215
217
  c as useGlobalConfig,
216
218
  g as useLocale,
217
- et as useMessage,
219
+ rt as useMessage,
218
220
  y as useNamespace,
219
221
  Lr as usePageListApTable,
220
- Vo as useTableModal,
222
+ Ve as useTableModal,
221
223
  $r as useTablePaging,
222
224
  Pr as useTableRefresh,
223
- jo as useTableSelectModal
225
+ je as useTableSelectModal
224
226
  };
@@ -32,6 +32,7 @@ export type ApFormItemProps = FormItemProps & Partial<ApFormColProps> & {
32
32
  * @returns
33
33
  */
34
34
  transform?: ApFormItemTransformType;
35
+ tooltip?: any;
35
36
  };
36
37
  export type ApFormItemGroupProps = RowProps & {
37
38
  countPerRow?: number;
@@ -0,0 +1,27 @@
1
+ import { ApScrollBarProps } from './interface';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
3
+ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ApScrollBarProps>, {
4
+ type: string;
5
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ApScrollBarProps>, {
6
+ type: string;
7
+ }>>>, {
8
+ type: "horizontal" | "vertical";
9
+ }, {}>;
10
+ export default _default;
11
+ type __VLS_WithDefaults<P, D> = {
12
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
13
+ default: D[K];
14
+ }> : P[K];
15
+ };
16
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
17
+ type __VLS_TypePropsToOption<T> = {
18
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
19
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
20
+ } : {
21
+ type: PropType<T[K]>;
22
+ required: true;
23
+ };
24
+ };
25
+ type __VLS_PrettifyLocal<T> = {
26
+ [K in keyof T]: T[K];
27
+ } & {};
@@ -0,0 +1,4 @@
1
+ import f from "./ap-scroll-bar.vue2.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,116 @@
1
+ import { defineComponent as O, ref as a, nextTick as $, onMounted as Q, watch as Z, onUnmounted as ee, openBlock as te, createElementBlock as le, normalizeClass as N, unref as u, normalizeStyle as U, createElementVNode as oe } from "vue";
2
+ import "../config-provider/index.mjs";
3
+ import { Subject as ae, fromEvent as v, map as _, takeUntil as h, throttleTime as X, concatAll as Y, withLatestFrom as ne } from "rxjs";
4
+ import { useNamespace as ce } from "../config-provider/hooks/use-namespace.mjs";
5
+ const ve = /* @__PURE__ */ O({
6
+ __name: "ap-scroll-bar",
7
+ props: {
8
+ target: {},
9
+ type: {
10
+ default: "horizontal"
11
+ }
12
+ },
13
+ setup(j) {
14
+ const o = j, r = a(), H = a(0), T = a(0), p = a(0), d = a(0), g = a(), y = a(), b = a(), W = a(), t = a(), w = a(!1), f = new ae(), z = a();
15
+ let k = 0, B = 0;
16
+ const E = (e) => e / y.value, S = (e) => e * y.value, R = () => {
17
+ if (t.value)
18
+ if (o.type === "horizontal") {
19
+ const e = t.value.scrollWidth, l = t.value.clientWidth;
20
+ w.value = l >= e;
21
+ } else {
22
+ const e = t.value.scrollHeight, l = t.value.clientHeight;
23
+ w.value = l >= e;
24
+ }
25
+ }, L = () => {
26
+ if (t.value && r.value)
27
+ if (o.type === "horizontal") {
28
+ const e = t.value.scrollWidth, l = t.value.clientWidth, n = t.value.scrollLeft, s = r.value.clientWidth;
29
+ g.value = l / e, y.value = s / e, H.value = Math.round(s * g.value), p.value = S(n);
30
+ } else {
31
+ const e = t.value.scrollHeight, l = t.value.clientHeight, n = t.value.scrollTop, s = r.value.clientHeight;
32
+ g.value = l / e, y.value = s / e, T.value = Math.floor(s * g.value), d.value = E(n);
33
+ }
34
+ }, P = () => {
35
+ const e = v(W.value, "mousedown"), l = v(b.value, "mousemove"), n = v(b.value, "mouseup"), s = v(b.value, "selectstart");
36
+ e.pipe(_(() => s.pipe(h(n), h(f), X(16))), Y()).subscribe((c) => c.preventDefault()), e.pipe(_(() => l.pipe(h(n), h(f), X(16))), Y(), ne(e), _(([c, x]) => {
37
+ console.log("move!!!", c);
38
+ const m = c, i = x, C = m.pageX - z.value.left - i.offsetX, M = m.pageY - z.value.top - i.offsetY, J = r.value.clientWidth, K = r.value.clientHeight;
39
+ return {
40
+ x: C > 0 ? Math.min(C, J - H.value) : Math.max(C, 0),
41
+ y: M > 0 ? Math.min(M, K - T.value) : Math.max(M, 0)
42
+ };
43
+ })).subscribe((c) => {
44
+ var x, m;
45
+ if (o.type === "horizontal") {
46
+ const i = E(c.x);
47
+ c.x !== p.value && t.value && ((x = t.value) == null || x.scrollTo({
48
+ left: i
49
+ })), p.value = c.x;
50
+ } else {
51
+ const i = E(c.y);
52
+ c.y !== d.value && t.value && ((m = t.value) == null || m.scrollTo({
53
+ top: i
54
+ })), d.value = c.y;
55
+ }
56
+ });
57
+ }, q = () => {
58
+ t.value && v(t.value, "scroll").pipe(h(f)).subscribe((l) => {
59
+ var s;
60
+ const n = l.target;
61
+ n && o.type === "horizontal" && (k = n.scrollLeft, p.value = S(k)), n && o.type === "vertical" && B !== ((s = t == null ? void 0 : t.value) == null ? void 0 : s.scrollTop) && (B = n.scrollTop, d.value = S(B));
62
+ });
63
+ }, A = () => {
64
+ v(window, "resize").pipe(h(f)).subscribe(() => {
65
+ R(), $(() => {
66
+ var l;
67
+ z.value = (l = r.value) == null ? void 0 : l.getBoundingClientRect(), L();
68
+ });
69
+ });
70
+ }, F = () => {
71
+ console.log("targetEle.value", t.value), t.value && W.value && (R(), $(() => {
72
+ var e;
73
+ z.value = (e = r.value) == null ? void 0 : e.getBoundingClientRect(), L(), P(), q(), A();
74
+ }));
75
+ };
76
+ Q(() => {
77
+ Z(() => o.target, () => {
78
+ $(() => {
79
+ var e, l;
80
+ typeof o.target == "string" ? t.value = document.querySelector(o.target) : t.value = (e = o.target) == null ? void 0 : e.call(o), b.value = (l = document.getElementsByTagName("body")) == null ? void 0 : l[0], W.value = document.getElementById("bar"), F();
81
+ });
82
+ }, {
83
+ immediate: !0
84
+ });
85
+ }), ee(() => {
86
+ f.next(0);
87
+ });
88
+ const {
89
+ b: V,
90
+ e: G,
91
+ m: D,
92
+ em: I
93
+ } = ce("ap-scroll-bar");
94
+ return (e, l) => (te(), le("div", {
95
+ class: N(`${u(V)()} ${o.type === "horizontal" ? u(D)("horizontal") : u(D)("vertical")}`),
96
+ style: U({
97
+ display: w.value ? "none" : "block"
98
+ }),
99
+ ref_key: "containerRef",
100
+ ref: r
101
+ }, [oe("div", {
102
+ id: "bar",
103
+ class: N(`${u(G)("bar")} ${o.type === "horizontal" ? u(I)("bar", "horizontal") : u(I)("bar", "vertical")}`),
104
+ style: U(o.type === "horizontal" ? {
105
+ width: `${H.value}px`,
106
+ left: `${p.value}px`
107
+ } : {
108
+ height: `${T.value}px`,
109
+ top: `${d.value}px`
110
+ })
111
+ }, null, 6)], 6));
112
+ }
113
+ });
114
+ export {
115
+ ve as default
116
+ };
@@ -0,0 +1,62 @@
1
+ import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Plugin } from 'vue';
2
+ export * from './interface';
3
+ declare const ApScrollBar: {
4
+ new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
5
+ type: {
6
+ type: PropType<"horizontal" | "vertical">;
7
+ default: string;
8
+ };
9
+ target: {
10
+ type: PropType<string | (() => Element)>;
11
+ required: true;
12
+ };
13
+ }>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
14
+ type: {
15
+ type: PropType<"horizontal" | "vertical">;
16
+ default: string;
17
+ };
18
+ target: {
19
+ type: PropType<string | (() => Element)>;
20
+ required: true;
21
+ };
22
+ }>>, {
23
+ type: "horizontal" | "vertical";
24
+ }, true, {}, {}, {
25
+ P: {};
26
+ B: {};
27
+ D: {};
28
+ C: {};
29
+ M: {};
30
+ Defaults: {};
31
+ }, Readonly< ExtractPropTypes<{
32
+ type: {
33
+ type: PropType<"horizontal" | "vertical">;
34
+ default: string;
35
+ };
36
+ target: {
37
+ type: PropType<string | (() => Element)>;
38
+ required: true;
39
+ };
40
+ }>>, {}, {}, {}, {}, {
41
+ type: "horizontal" | "vertical";
42
+ }>;
43
+ __isFragment?: never;
44
+ __isTeleport?: never;
45
+ __isSuspense?: never;
46
+ } & ComponentOptionsBase<Readonly< ExtractPropTypes<{
47
+ type: {
48
+ type: PropType<"horizontal" | "vertical">;
49
+ default: string;
50
+ };
51
+ target: {
52
+ type: PropType<string | (() => Element)>;
53
+ required: true;
54
+ };
55
+ }>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
56
+ type: "horizontal" | "vertical";
57
+ }, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & ( Plugin & (new (...args: any[]) => {
58
+ $props: {
59
+ onClick?: () => void;
60
+ };
61
+ }));
62
+ export { ApScrollBar };
@@ -0,0 +1,8 @@
1
+ import "./interface.mjs";
2
+ import { withInstall as o } from "@aplus-frontend/utils";
3
+ import "./ap-scroll-bar.vue.mjs";
4
+ import r from "./ap-scroll-bar.vue2.mjs";
5
+ const l = o(r);
6
+ export {
7
+ l as ApScrollBar
8
+ };
@@ -0,0 +1,4 @@
1
+ export interface ApScrollBarProps {
2
+ target: string | (() => Element);
3
+ type?: 'horizontal' | 'vertical';
4
+ }
@@ -0,0 +1 @@
1
+
File without changes
@@ -0,0 +1 @@
1
+ import '@aplus-frontend/ui-theme/dist/ap-scroll-bar/index.css';
File without changes
@@ -0,0 +1 @@
1
+ import '@aplus-frontend/ui-theme/src/ap-scroll-bar/index.less';
@@ -44,6 +44,7 @@ declare const _default: <RecordType>(__VLS_props: NonNullable<Awaited<typeof __V
44
44
  customFilterIcon?: any;
45
45
  customFilterDropdown?: any;
46
46
  searchFormExtra?: any;
47
+ bottomPaginationTop?: any;
47
48
  headerCell?: (props: {
48
49
  title: any;
49
50
  column: ApColumnType;
@@ -68,6 +69,7 @@ declare const _default: <RecordType>(__VLS_props: NonNullable<Awaited<typeof __V
68
69
  customFilterIcon?: any;
69
70
  customFilterDropdown?: any;
70
71
  searchFormExtra?: any;
72
+ bottomPaginationTop?: any;
71
73
  headerCell?: (props: {
72
74
  title: any;
73
75
  column: ApColumnType;