aibox-custom-component-packages 0.0.21 → 0.0.22

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