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