aibox-custom-component-packages 0.0.21 → 0.0.23

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 (122) hide show
  1. package/es/AiboxTabs.mjs +71 -0
  2. package/es/DocSyncSelect.mjs +1 -1
  3. package/es/ExampleComponent.mjs +35 -0
  4. package/es/SourcePublish.mjs +1 -1
  5. package/es/assets/AiboxTabs.css +1 -0
  6. package/es/assets/BackBar.css +1 -0
  7. package/es/assets/DocSyncSelect.css +1 -1
  8. package/es/assets/ExampleComponent.css +1 -0
  9. package/es/assets/SourcePublish.css +1 -1
  10. package/es/assets/index.css +1 -0
  11. package/es/assets/index2.css +1 -0
  12. package/es/assets/index3.css +1 -0
  13. package/es/assets/index4.css +1 -0
  14. package/es/chunks/AiboxTable.CF4T_OCu.js +645 -0
  15. package/es/chunks/BackBar.Bc2NIuzk.js +645 -0
  16. package/es/chunks/{DocSyncSelect.DlJXL1lq.js → DocSyncSelect.dhZh4w45.js} +3 -3
  17. package/es/chunks/{SourcePublish.BjY8OTLS.js → SourcePublish.CjzqOFwj.js} +23 -10
  18. package/es/chunks/_plugin-vue_export-helper.CHgC5LLL.js +9 -0
  19. package/es/chunks/config.8htFF04x.js +325 -0
  20. package/es/chunks/config.BU21Gda2.js +49 -0
  21. package/es/chunks/config.DPkdwjwD.js +49 -0
  22. package/es/chunks/config.gNZ_rT87.js +325 -0
  23. package/es/chunks/enums.CfSBDD6u.js +83 -0
  24. package/es/chunks/enums.WrpwbF4w.js +14 -0
  25. package/es/chunks/field-types.CPnMOjle.js +13 -0
  26. package/es/chunks/files.cduUqjHX.js +16 -0
  27. package/es/chunks/i18n.DmqkiK-h.js +444 -0
  28. package/es/chunks/i18n.k9Q_HVMs.js +443 -0
  29. package/es/chunks/index.BDd6hHiU.js +172 -0
  30. package/es/chunks/index.CF_YHLP5.js +257 -0
  31. package/es/chunks/index.DM3o2YX3.js +398 -0
  32. package/es/chunks/index.Dx-mCS4E.js +1298 -0
  33. package/es/chunks/index.bCzIhWFw.js +7 -0
  34. package/es/chunks/index.ml5i7aB5.js +257 -0
  35. package/es/chunks/layout.CygCXa6s.js +26 -0
  36. package/es/chunks/publish.D6friivo.js +50 -0
  37. package/es/chunks/publish.DlD0o09n.js +50 -0
  38. package/es/chunks/request.24c3shPx.js +5 -0
  39. package/es/chunks/usePreview.BHvXwaNi.js +157 -0
  40. package/es/index.mjs +2 -2
  41. package/lib/AiboxTabs.js +1 -0
  42. package/lib/DocSyncSelect.js +1 -1
  43. package/lib/ExampleComponent.js +1 -0
  44. package/lib/SourcePublish.js +1 -1
  45. package/lib/assets/AiboxTabs.css +1 -0
  46. package/lib/assets/BackBar.css +1 -0
  47. package/lib/assets/DocSyncSelect.css +1 -1
  48. package/lib/assets/ExampleComponent.css +1 -0
  49. package/lib/assets/SourcePublish.css +1 -1
  50. package/lib/assets/index.css +1 -0
  51. package/lib/assets/index2.css +1 -0
  52. package/lib/assets/index3.css +1 -0
  53. package/lib/assets/index4.css +1 -0
  54. package/lib/chunks/AiboxTable.CJOPGJtU.js +1 -0
  55. package/lib/chunks/BackBar.CZsNxoX1.js +1 -0
  56. package/lib/chunks/{DocSyncSelect.1gaXRzps.js → DocSyncSelect.kDNcepY-.js} +2 -2
  57. package/lib/chunks/SourcePublish.eOSEULjP.js +1 -0
  58. package/lib/chunks/_plugin-vue_export-helper.BHFhmbuH.js +1 -0
  59. package/lib/chunks/config.1oaIKLGn.js +1 -0
  60. package/lib/chunks/config.B0XKkp1w.js +1 -0
  61. package/lib/chunks/config.BCAuBVxV.js +1 -0
  62. package/lib/chunks/config.BF7MO0O5.js +1 -0
  63. package/lib/chunks/enums.Dmq4PdUc.js +1 -0
  64. package/lib/chunks/enums.DpU2er5r.js +1 -0
  65. package/lib/chunks/field-types.Ch_2yDfg.js +1 -0
  66. package/lib/chunks/files.B3-8UC0v.js +1 -0
  67. package/lib/chunks/i18n.CL5L6nx6.js +1 -0
  68. package/lib/chunks/i18n.DgOp_D7R.js +1 -0
  69. package/lib/chunks/index.4hFddClT.js +6 -0
  70. package/lib/chunks/index.BNivYbtq.js +1 -0
  71. package/lib/chunks/index.B_keI1Aq.js +1 -0
  72. package/lib/chunks/index.Bk-RwmaH.js +1 -0
  73. package/lib/chunks/index.CJFk1R2u.js +59 -0
  74. package/lib/chunks/index.CkihWzK6.js +1 -0
  75. package/lib/chunks/layout.DbBSbLgm.js +1 -0
  76. package/lib/chunks/publish.3TrK3fZf.js +1 -0
  77. package/lib/chunks/publish.Bw1acrSu.js +1 -0
  78. package/lib/chunks/request.D8T4MgGX.js +1 -0
  79. package/lib/chunks/usePreview.BojIDW7Z.js +1 -0
  80. package/lib/index.js +1 -1
  81. package/package.json +5 -5
  82. package/es/chunks/AddOrEditSupplierDialog.BCiXcUBu.js +0 -721
  83. package/es/chunks/AiboxTable.B_Yli5E8.js +0 -635
  84. package/es/chunks/ApplicationTypeTag.BbJwXyVa.js +0 -47
  85. package/es/chunks/AuthSection.CLi8HcIx.js +0 -201
  86. package/es/chunks/AvailableRangePreview.BgeL_bMq.js +0 -194
  87. package/es/chunks/AvailableRangeSetting.CGJxgfPT.js +0 -229
  88. package/es/chunks/CodeView.CWbewuHs.js +0 -148
  89. package/es/chunks/CommonTagsList.CJdBie2N.js +0 -156
  90. package/es/chunks/CreateMcpForm.C0HqvD-g.js +0 -308
  91. package/es/chunks/FileUploader.BSIhrd9M.js +0 -216
  92. package/es/chunks/McpFormDialog.CDH31D2Q.js +0 -297
  93. package/es/chunks/McpParamsSet.Bx3aRL9j.js +0 -501
  94. package/es/chunks/MdEditor.Bb9S_hso.js +0 -163
  95. package/es/chunks/ParameterTable.CoRz_932.js +0 -2010
  96. package/es/chunks/PublishRecord.C8h1tu3w.js +0 -133
  97. package/es/chunks/SourcePublish.CebmryAz.js +0 -966
  98. package/es/chunks/SourcePublish.Dk7O9GzI.js +0 -968
  99. package/es/chunks/config.CIQoQGOb.js +0 -35
  100. package/es/chunks/config.lm2B-n0s.js +0 -270
  101. package/es/chunks/i18n.CIhVBbR3.js +0 -418
  102. package/lib/chunks/AddOrEditSupplierDialog.XtPxc5yr.js +0 -1
  103. package/lib/chunks/AiboxTable.DFyqwoGc.js +0 -1
  104. package/lib/chunks/ApplicationTypeTag.CZReMt-9.js +0 -1
  105. package/lib/chunks/AuthSection.CP9c-YTW.js +0 -1
  106. package/lib/chunks/AvailableRangePreview.DvREyHNH.js +0 -1
  107. package/lib/chunks/AvailableRangeSetting.DDHTOLJA.js +0 -1
  108. package/lib/chunks/CodeView.DeBxLqyC.js +0 -1
  109. package/lib/chunks/CommonTagsList.QEP4G-Em.js +0 -1
  110. package/lib/chunks/CreateMcpForm.B2o0Ghjg.js +0 -1
  111. package/lib/chunks/FileUploader.6IW_QL-h.js +0 -1
  112. package/lib/chunks/McpFormDialog.FwXnBBd2.js +0 -6
  113. package/lib/chunks/McpParamsSet.BYrxVvDL.js +0 -1
  114. package/lib/chunks/MdEditor.Cp24y4DJ.js +0 -1
  115. package/lib/chunks/ParameterTable.CeufAEXh.js +0 -1
  116. package/lib/chunks/PublishRecord.BVndvj7F.js +0 -5
  117. package/lib/chunks/SourcePublish.Bz8MaRPm.js +0 -1
  118. package/lib/chunks/SourcePublish.I7ORXPok.js +0 -1
  119. package/lib/chunks/SourcePublish.OeB6i-Iu.js +0 -1
  120. package/lib/chunks/config.B9Di8LtU.js +0 -1
  121. package/lib/chunks/config.CZl1kYtI.js +0 -1
  122. package/lib/chunks/i18n.BGe5gOau.js +0 -1
@@ -0,0 +1,645 @@
1
+ import { createElementBlock as c, openBlock as o, normalizeStyle as le, createElementVNode as h, renderSlot as b, createCommentVNode as B, createVNode as w, unref as n, withModifiers as te, withCtx as s, toDisplayString as m, computed as T, Fragment as _, renderList as N, createBlock as i, createTextVNode as A, normalizeClass as z, ref as H, createSlots as W } from "vue";
2
+ import { useRouter as ae } from "vue-router";
3
+ import { IconZuo as oe, IconTip as ne, IconMore as se } from "color-message-aibox-vue";
4
+ import { ElIcon as D, ElTooltip as re, ElButton as L, ElDropdown as de, ElDropdownMenu as ie, ElDropdownItem as ce, ElTable as ue, ElTableColumn as f, ElEmpty as he, ElPagination as pe } from "element-plus";
5
+ import { u as I } from "./i18n.k9Q_HVMs.js";
6
+ import { _ as F } from "./_plugin-vue_export-helper.CHgC5LLL.js";
7
+ import '../assets/AiboxTable.css';const fe = { class: "back-bar__icon" }, be = {
8
+ key: 0,
9
+ class: "back-bar__title"
10
+ }, we = {
11
+ key: 1,
12
+ class: "back-bar__tip"
13
+ }, Ve = {
14
+ __name: "BackBar",
15
+ props: {
16
+ goBackFn: {
17
+ type: Function,
18
+ default: null
19
+ },
20
+ backBarStyle: {
21
+ type: String,
22
+ default: "#fff"
23
+ },
24
+ title: {
25
+ type: String,
26
+ default: ""
27
+ },
28
+ tipContent: {
29
+ type: String,
30
+ default: ""
31
+ }
32
+ },
33
+ setup(a) {
34
+ const k = a, $ = ae(), r = () => {
35
+ k.goBackFn ? k.goBackFn() : $.back();
36
+ };
37
+ return (y, C) => (o(), c("div", {
38
+ class: "back-bar",
39
+ style: le({ "background-color": a.backBarStyle })
40
+ }, [
41
+ h("div", fe, [
42
+ w(n(D), {
43
+ onClick: te(r, ["stop"])
44
+ }, {
45
+ default: s(() => [
46
+ w(n(oe))
47
+ ]),
48
+ _: 1
49
+ })
50
+ ]),
51
+ b(y.$slots, "default"),
52
+ a.title ? (o(), c("div", be, m(a.title), 1)) : B("", !0),
53
+ a.tipContent ? (o(), c("div", we, [
54
+ w(n(re), {
55
+ content: a.tipContent,
56
+ placement: "right"
57
+ }, {
58
+ default: s(() => [
59
+ w(n(D), { size: "14" }, {
60
+ default: s(() => [
61
+ w(n(ne))
62
+ ]),
63
+ _: 1
64
+ })
65
+ ]),
66
+ _: 1
67
+ }, 8, ["content"])
68
+ ])) : B("", !0)
69
+ ], 4));
70
+ }
71
+ }, ye = { class: "table-btns" }, ge = { class: "btn-box" }, ke = {
72
+ __name: "TableBtns",
73
+ props: {
74
+ config: {
75
+ type: Array,
76
+ required: !0,
77
+ default() {
78
+ return [];
79
+ }
80
+ },
81
+ showNums: {
82
+ type: Number,
83
+ default: 0,
84
+ validator(a) {
85
+ return a % 1 === 0 && a >= 0;
86
+ }
87
+ },
88
+ row: {
89
+ type: Object,
90
+ default: () => ({})
91
+ }
92
+ },
93
+ setup(a) {
94
+ const k = a, { t: $ } = I(), r = (p, x) => {
95
+ p && p(x);
96
+ }, y = T(() => k.config.filter((p) => {
97
+ const x = p.permission !== void 0 ? p.permission : !0;
98
+ let d = !0;
99
+ return p.dataPermission && (d = p.dataPermission), x && d;
100
+ })), C = T(() => ({
101
+ show: y.value.slice(0, k.showNums),
102
+ hide: y.value.slice(k.showNums)
103
+ }));
104
+ return (p, x) => (o(), c("div", ye, [
105
+ y.value.length > a.showNums ? (o(), c(_, { key: 0 }, [
106
+ (o(!0), c(_, null, N(C.value.show, (d, v) => (o(), i(n(L), {
107
+ key: v,
108
+ type: "primary",
109
+ link: "",
110
+ onClick: (M) => r(d.fn, d.row)
111
+ }, {
112
+ default: s(() => [
113
+ A(m(d.label), 1)
114
+ ]),
115
+ _: 2
116
+ }, 1032, ["onClick"]))), 128)),
117
+ w(n(de), {
118
+ "popper-class": "custom-dropdown",
119
+ trigger: "click"
120
+ }, {
121
+ dropdown: s(() => [
122
+ w(n(ie), { style: { padding: "14px 0" } }, {
123
+ default: s(() => [
124
+ (o(!0), c(_, null, N(C.value.hide, (d, v) => (o(), i(n(ce), {
125
+ key: v,
126
+ class: z({
127
+ "is-delete": d.label === n($)("COMMON_BUTTON.DELETE_TEXT") || d.label === n($)("COMMON_BUTTON.DISABLE_TEXT") || d.isDanger
128
+ }),
129
+ onClick: (M) => r(d.fn, d.row)
130
+ }, {
131
+ default: s(() => [
132
+ A(m(d.label), 1)
133
+ ]),
134
+ _: 2
135
+ }, 1032, ["class", "onClick"]))), 128))
136
+ ]),
137
+ _: 1
138
+ })
139
+ ]),
140
+ default: s(() => [
141
+ h("div", ge, [
142
+ w(n(D), { style: { "font-size": "20px", color: "#999" } }, {
143
+ default: s(() => [
144
+ w(n(se))
145
+ ]),
146
+ _: 1
147
+ })
148
+ ])
149
+ ]),
150
+ _: 1
151
+ })
152
+ ], 64)) : (o(!0), c(_, { key: 1 }, N(y.value, (d, v) => (o(), i(n(L), {
153
+ type: "primary",
154
+ link: "",
155
+ key: v,
156
+ onClick: (M) => r(d.fn, d.row)
157
+ }, {
158
+ default: s(() => [
159
+ A(m(d.label), 1)
160
+ ]),
161
+ _: 2
162
+ }, 1032, ["onClick"]))), 128))
163
+ ]));
164
+ }
165
+ }, Ce = /* @__PURE__ */ F(ke, [["__scopeId", "data-v-552341e3"]]), xe = {
166
+ key: 0,
167
+ class: "aibox-table__handle"
168
+ }, _e = { class: "handle-left" }, ve = { class: "handle-right" }, Se = { class: "aibox-table__content" }, Te = { key: 0 }, me = { class: "aibox-table__slot-wrapper" }, $e = { class: "aibox-table__slot-wrapper" }, Be = ["innerHTML"], Ne = ["innerHTML"], Me = { class: "aibox-table__slot-wrapper" }, Ee = ["onClick"], Ae = { class: "aibox-table__slot-wrapper" }, ze = ["onClick"], De = { class: "aibox-table__slot-wrapper" }, Oe = { class: "flex items-center" }, Pe = { class: "aibox-table__slot-wrapper" }, Re = {
169
+ key: 0,
170
+ class: "aibox-table__slot-wrapper"
171
+ }, He = {
172
+ __name: "AiboxTable",
173
+ props: {
174
+ columns: {
175
+ type: Array,
176
+ default: () => []
177
+ },
178
+ data: {
179
+ type: Array,
180
+ default: () => []
181
+ },
182
+ total: {
183
+ type: [String, Number],
184
+ default: 0
185
+ },
186
+ hasPage: {
187
+ type: Boolean,
188
+ default: !0
189
+ },
190
+ onRowKey: {
191
+ type: Function,
192
+ default: () => {
193
+ }
194
+ },
195
+ onRowClassName: {
196
+ type: Function,
197
+ default: () => {
198
+ }
199
+ },
200
+ maxHeight: {
201
+ type: [String, Number],
202
+ default: null
203
+ },
204
+ isLoading: {
205
+ type: Boolean,
206
+ default: !1
207
+ },
208
+ pages: {
209
+ type: Object,
210
+ default: () => ({
211
+ page: 1,
212
+ size: 10
213
+ })
214
+ },
215
+ showChangeSize: {
216
+ type: Boolean,
217
+ default: !0
218
+ },
219
+ isCustomEmpty: {
220
+ type: Boolean,
221
+ default: !1
222
+ },
223
+ hasBorder: {
224
+ type: Boolean,
225
+ default: !1
226
+ },
227
+ hasHeaderHandle: {
228
+ type: Boolean,
229
+ default: !1
230
+ },
231
+ isSecondaryHeader: {
232
+ type: Boolean,
233
+ default: !1
234
+ },
235
+ defaultSort: {
236
+ type: Object
237
+ },
238
+ spanMethod: {
239
+ type: Function,
240
+ default: () => {
241
+ }
242
+ },
243
+ showSummary: {
244
+ type: Boolean,
245
+ default: !1
246
+ },
247
+ summaryMethod: {
248
+ type: Function,
249
+ default: () => []
250
+ },
251
+ showHandleNums: {
252
+ type: Number,
253
+ default: 0
254
+ },
255
+ selectionType: {
256
+ type: String,
257
+ default: "checkbox"
258
+ },
259
+ expandRowKeys: {
260
+ type: Array,
261
+ default: () => []
262
+ },
263
+ isCanRowClick: {
264
+ type: Boolean,
265
+ default: !1
266
+ },
267
+ isPagePostion: {
268
+ type: Boolean,
269
+ default: !0
270
+ },
271
+ treeProps: {
272
+ type: Object,
273
+ default: () => ({ children: "children", hasChildren: "hasChildren" })
274
+ },
275
+ defaultExpandAll: {
276
+ type: Boolean,
277
+ default: !0
278
+ },
279
+ pagerCount: {
280
+ type: Number,
281
+ default: 7
282
+ },
283
+ size: {
284
+ type: String,
285
+ default: "default"
286
+ }
287
+ },
288
+ emits: [
289
+ "onPageChange",
290
+ "onMultiSelection",
291
+ "onSortChange",
292
+ "onCellDblclick",
293
+ "onRowClick"
294
+ ],
295
+ setup(a, { expose: k, emit: $ }) {
296
+ const r = a, { t: y } = I(), C = H(null), p = H([]), x = T(() => typeof r.total == "string" ? Number(r.total) : r.total), d = T(() => r.showChangeSize ? "total, sizes, prev, pager, next, jumper" : "total, prev, pager, next, jumper"), v = T(() => x.value > 10 && r.hasPage), M = T(() => r.columns?.find?.((u) => u?.type === "selection")?.selectable || O), j = T(() => {
297
+ const t = r.data || [];
298
+ if (!t.length) return !1;
299
+ const u = M.value;
300
+ return !t.some((e, l) => u(e, l));
301
+ }), K = ({ column: t }) => t?.type === "selection" && j.value ? "aibox-table__select-all-disabled" : "", g = $, O = () => !0, V = (t) => r.onRowKey(t, (u) => u), X = (t) => r.onRowClassName(t), U = (t) => {
302
+ g("onPageChange", { ...r.pages, page: t });
303
+ }, G = (t) => {
304
+ g("onPageChange", { page: 1, size: t });
305
+ }, q = (t) => {
306
+ r.selectionType !== "radio" && g("onMultiSelection", t);
307
+ }, P = (t) => {
308
+ if (r.selectionType === "radio") {
309
+ const u = p.value;
310
+ if (R(), u.length == 1) {
311
+ const [e] = u, l = e.id !== t.id;
312
+ l ? (p.value = [t], g("onMultiSelection", [t])) : (p.value = [], g("onMultiSelection", [])), E(t, l);
313
+ } else
314
+ E(t, !0), p.value = [t], g("onMultiSelection", [t]);
315
+ }
316
+ }, R = () => {
317
+ C.value?.clearSelection(), g("onMultiSelection", []);
318
+ }, Y = () => {
319
+ C.value?.clearSort();
320
+ }, Z = (t) => {
321
+ g("onSortChange", t);
322
+ }, J = (t, u, e, l) => {
323
+ g("onCellDblclick", t, u, e, l);
324
+ }, Q = (t) => {
325
+ r.selectionType === "radio" && P(t);
326
+ }, ee = (t, u, e) => {
327
+ u?.type === "action" || !r.isCanRowClick || g("onRowClick", t, u, e);
328
+ }, E = (t, u) => {
329
+ C.value?.toggleRowSelection(t, u);
330
+ };
331
+ return k({
332
+ handleClearSelection: R,
333
+ handleToggleRowSelection: E,
334
+ clearSort: Y
335
+ }), (t, u) => (o(), c("div", {
336
+ class: z([{
337
+ "row-click-style": a.isCanRowClick,
338
+ "no-pagination": !v.value
339
+ }, "aibox-table"])
340
+ }, [
341
+ a.hasHeaderHandle ? (o(), c("div", xe, [
342
+ h("div", _e, [
343
+ b(t.$slots, "handleLeft", {}, void 0, !0)
344
+ ]),
345
+ h("div", ve, [
346
+ b(t.$slots, "handleRight", {}, void 0, !0)
347
+ ])
348
+ ])) : B("", !0),
349
+ h("div", Se, [
350
+ w(n(ue), {
351
+ ref_key: "aiboxTable",
352
+ ref: C,
353
+ "element-loading-text": n(y)("COMMON_DATA.LOADING_SUFFIX"),
354
+ "tree-props": a.treeProps,
355
+ "header-row-class-name": a.isSecondaryHeader ? "aibox-table__header secondary-header" : "aibox-table__header",
356
+ "header-cell-class-name": K,
357
+ "row-class-name": X,
358
+ data: a.data,
359
+ border: a.hasBorder,
360
+ style: { width: "100%" },
361
+ "row-key": V,
362
+ height: a.maxHeight,
363
+ "default-sort": a.defaultSort,
364
+ "span-method": a.spanMethod,
365
+ "expand-row-keys": a.expandRowKeys,
366
+ onSelectionChange: q,
367
+ onSortChange: Z,
368
+ onCellDblclick: J,
369
+ onCurrentChange: P,
370
+ "show-summary": a.showSummary,
371
+ "summary-method": a.summaryMethod,
372
+ onSelect: Q,
373
+ onRowClick: ee,
374
+ "default-expand-all": a.defaultExpandAll
375
+ }, {
376
+ empty: s(() => [
377
+ a.isCustomEmpty ? (o(), c("div", Re, [
378
+ b(t.$slots, "customEmpty", {}, void 0, !0)
379
+ ])) : (o(), i(n(he), {
380
+ key: 1,
381
+ description: n(y)("COMMON_DATA.EMPTY"),
382
+ "image-size": 80
383
+ }, null, 8, ["description"]))
384
+ ]),
385
+ default: s(() => [
386
+ (o(!0), c(_, null, N(a.columns, (e) => (o(), c(_, null, [
387
+ e.type === "selection" ? (o(), i(n(f), {
388
+ key: e.type,
389
+ type: "selection",
390
+ fixed: "left",
391
+ width: e.width || "50px",
392
+ "reserve-selection": !0,
393
+ selectable: e.selectable || O
394
+ }, null, 8, ["width", "selectable"])) : e.type === "index" ? (o(), i(n(f), {
395
+ key: `${e.type - e.label}`,
396
+ type: "index",
397
+ label: n(y)("COMMON_DATA.SNO_INDEX"),
398
+ fixed: "left",
399
+ width: e.width || "100px"
400
+ }, {
401
+ default: s((l) => [
402
+ a.isLoading ? B("", !0) : (o(), c("span", Te, m((a.pages.page - 1) * a.pages.size + l.$index + 1), 1))
403
+ ]),
404
+ _: 1
405
+ }, 8, ["label", "width"])) : e.slot ? (o(), i(n(f), {
406
+ align: e.align || "left",
407
+ key: e.prop,
408
+ prop: e.prop,
409
+ label: e.label,
410
+ width: e.width,
411
+ "min-width": e.minWidth,
412
+ "label-class-name": "label-space-style",
413
+ "class-name": "multi-row",
414
+ fixed: e.fixed,
415
+ sortable: e.sortable,
416
+ "show-overflow-tooltip": e.showOverflowTooltip
417
+ }, W({
418
+ default: s((l) => [
419
+ h("div", $e, [
420
+ b(t.$slots, e.slot, {
421
+ row: l.row,
422
+ index: l.$index,
423
+ minWidth: e.minWidth
424
+ }, void 0, !0)
425
+ ])
426
+ ]),
427
+ _: 2
428
+ }, [
429
+ e.headerSlot ? {
430
+ name: "header",
431
+ fn: s(() => [
432
+ h("div", me, [
433
+ b(t.$slots, e.headerSlot, {
434
+ item: e,
435
+ minWidth: e.minWidth
436
+ }, void 0, !0)
437
+ ])
438
+ ]),
439
+ key: "0"
440
+ } : void 0
441
+ ]), 1032, ["align", "prop", "label", "width", "min-width", "fixed", "sortable", "show-overflow-tooltip"])) : e.callback ? (o(), i(n(f), {
442
+ align: e.align || "left",
443
+ key: e.callback,
444
+ prop: e.prop,
445
+ label: e.label,
446
+ width: e.width,
447
+ "min-width": e.minWidth,
448
+ "show-overflow-tooltip": "",
449
+ fixed: e.fixed,
450
+ sortable: e.sortable
451
+ }, {
452
+ default: s((l) => [
453
+ h("span", {
454
+ innerHTML: e.callback && e.callback(l.row)
455
+ }, null, 8, Be)
456
+ ]),
457
+ _: 2
458
+ }, 1032, ["align", "prop", "label", "width", "min-width", "fixed", "sortable"])) : e.type === "multistage" ? (o(), i(n(f), {
459
+ key: `${e.prop}`,
460
+ label: e.label,
461
+ prop: e.prop,
462
+ width: e.width,
463
+ "min-width": e.minWidth,
464
+ "show-overflow-tooltip": "",
465
+ align: e.align || "left",
466
+ "header-align": e.headerAlign || "left"
467
+ }, {
468
+ default: s(() => [
469
+ (o(!0), c(_, null, N(e.children, (l) => (o(), c(_, null, [
470
+ l.callback ? (o(), i(n(f), {
471
+ key: l.callback,
472
+ prop: l.prop,
473
+ label: l.label,
474
+ "min-width": l.minWidth,
475
+ "show-overflow-tooltip": ""
476
+ }, {
477
+ default: s((S) => [
478
+ h("span", {
479
+ innerHTML: l.callback && l.callback(S.row)
480
+ }, null, 8, Ne)
481
+ ]),
482
+ _: 2
483
+ }, 1032, ["prop", "label", "min-width"])) : l.slot ? (o(), i(n(f), {
484
+ key: l.prop,
485
+ "min-width": l.minWidth,
486
+ prop: l.prop,
487
+ label: l.label
488
+ }, {
489
+ default: s((S) => [
490
+ h("div", Me, [
491
+ b(t.$slots, l.slot, {
492
+ row: S.row,
493
+ column: S.column,
494
+ index: S.$index
495
+ }, void 0, !0)
496
+ ])
497
+ ]),
498
+ _: 2
499
+ }, 1032, ["min-width", "prop", "label"])) : l.custom ? (o(), i(n(f), {
500
+ key: `${l.prop}`,
501
+ prop: l.prop,
502
+ label: l.label,
503
+ "min-width": l.minWidth,
504
+ "show-overflow-tooltip": ""
505
+ }, {
506
+ header: s(() => [
507
+ h("span", {
508
+ onClick: () => l.headerClick({ parent: e.label, ...l }),
509
+ style: { color: "#5b9bd1", cursor: "pointer" }
510
+ }, m(l.label), 9, Ee)
511
+ ]),
512
+ default: s((S) => [
513
+ h("div", Ae, [
514
+ b(t.$slots, "custom", {
515
+ data: {
516
+ col: { parent: e.label, ...l },
517
+ row: S.row
518
+ }
519
+ }, void 0, !0)
520
+ ])
521
+ ]),
522
+ _: 2
523
+ }, 1032, ["prop", "label", "min-width"])) : (o(), i(n(f), {
524
+ key: `${l.prop}-${l.label}`,
525
+ prop: l.prop,
526
+ label: l.label,
527
+ width: l.width,
528
+ "min-width": l.minWidth,
529
+ "show-overflow-tooltip": "",
530
+ "header-align": l.headerAlign ? l.headerAlign : "left",
531
+ align: l.align ? l.align : "left"
532
+ }, null, 8, ["prop", "label", "width", "min-width", "header-align", "align"]))
533
+ ], 64))), 256))
534
+ ]),
535
+ _: 2
536
+ }, 1032, ["label", "prop", "width", "min-width", "align", "header-align"])) : e.custom ? (o(), i(n(f), {
537
+ key: `${e.prop}-${e.custom}`,
538
+ prop: e.prop,
539
+ label: e.label,
540
+ "min-width": e.minWidth,
541
+ "show-overflow-tooltip": ""
542
+ }, {
543
+ header: s(() => [
544
+ h("span", {
545
+ onClick: () => e.headerClick({ parent: "", ...e }),
546
+ style: { color: "#5b9bd1", cursor: "pointer" }
547
+ }, m(e.label), 9, ze)
548
+ ]),
549
+ default: s((l) => [
550
+ h("div", De, [
551
+ b(t.$slots, "custom", {
552
+ data: {
553
+ col: { parent: "", ...e },
554
+ row: l.row
555
+ }
556
+ }, void 0, !0)
557
+ ])
558
+ ]),
559
+ _: 2
560
+ }, 1032, ["prop", "label", "min-width"])) : e.type === "action" ? (o(), i(n(f), {
561
+ key: `${e.prop - Math.random()}`,
562
+ label: e.label,
563
+ width: e.width,
564
+ type: "action",
565
+ fixed: "right"
566
+ }, {
567
+ default: s((l) => [
568
+ h("div", Oe, [
569
+ b(t.$slots, "goto", {
570
+ row: l.row
571
+ }, void 0, !0),
572
+ e?.config?.(l.row)?.length ? (o(), i(Ce, {
573
+ key: 0,
574
+ "show-nums": a.showHandleNums,
575
+ config: e.config(l.row, l.$index),
576
+ row: l.row
577
+ }, null, 8, ["show-nums", "config", "row"])) : B("", !0)
578
+ ])
579
+ ]),
580
+ _: 2
581
+ }, 1032, ["label", "width"])) : e.type === "expand" ? (o(), i(n(f), {
582
+ type: "expand",
583
+ key: "expand" + e.prop,
584
+ width: e.width
585
+ }, {
586
+ default: s((l) => [
587
+ h("div", Pe, [
588
+ b(t.$slots, "expand", {
589
+ row: l.row,
590
+ column: l.column
591
+ }, void 0, !0)
592
+ ])
593
+ ]),
594
+ _: 3
595
+ }, 8, ["width"])) : (o(), i(n(f), {
596
+ key: `${e.prop - e.label}`,
597
+ prop: e.prop,
598
+ label: e.label,
599
+ width: e.width,
600
+ "min-width": e.minWidth,
601
+ fixed: e.fixed,
602
+ sortable: e.sortable,
603
+ "show-overflow-tooltip": "",
604
+ align: e.align || "left"
605
+ }, W({ _: 2 }, [
606
+ e.headerSlot ? {
607
+ name: "header",
608
+ fn: s(() => [
609
+ b(t.$slots, e.headerSlot, {
610
+ item: e,
611
+ minWidth: e.minWidth
612
+ }, void 0, !0)
613
+ ]),
614
+ key: "0"
615
+ } : void 0
616
+ ]), 1032, ["prop", "label", "width", "min-width", "fixed", "sortable", "align"]))
617
+ ], 64))), 256))
618
+ ]),
619
+ _: 3
620
+ }, 8, ["element-loading-text", "tree-props", "header-row-class-name", "data", "border", "height", "default-sort", "span-method", "expand-row-keys", "show-summary", "summary-method", "default-expand-all"])
621
+ ]),
622
+ x.value > 10 && a.hasPage ? (o(), c("div", {
623
+ key: 1,
624
+ class: z([a.isPagePostion ? "aibox-table__pages" : "aibox-table__page"])
625
+ }, [
626
+ w(n(pe), {
627
+ layout: d.value,
628
+ "current-page": a.pages.page,
629
+ "page-sizes": [10, 20, 50, 100],
630
+ "page-size": a.pages.size,
631
+ total: x.value,
632
+ "pager-count": a.pagerCount,
633
+ size: a.size,
634
+ onSizeChange: G,
635
+ onCurrentChange: U
636
+ }, null, 8, ["layout", "current-page", "page-size", "total", "pager-count", "size"])
637
+ ], 2)) : B("", !0)
638
+ ], 2));
639
+ }
640
+ }, Xe = /* @__PURE__ */ F(He, [["__scopeId", "data-v-1d0bcb93"]]);
641
+ export {
642
+ Xe as A,
643
+ Ce as T,
644
+ Ve as _
645
+ };