aibox-custom-component-packages 0.0.6 → 0.0.7

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 (153) hide show
  1. package/es/AddOrEditSupplierDialog.mjs +786 -0
  2. package/es/ApplicationTypeTag.mjs +58 -0
  3. package/es/AuthSection.mjs +199 -0
  4. package/es/AutoShowTooltip.mjs +90 -0
  5. package/es/AvailableRangePreview.mjs +1 -1
  6. package/es/AvailableRangeSetting.mjs +11 -10
  7. package/es/CodeView.mjs +7 -0
  8. package/es/CommonTagsList.mjs +4 -4
  9. package/es/CreateMcpForm.mjs +384 -0
  10. package/es/CustomSidebar.mjs +712 -0
  11. package/es/CustomTitle.mjs +7 -0
  12. package/es/CustomToggle.mjs +170 -0
  13. package/es/DialogContainer.mjs +21 -21
  14. package/es/FileDisplay.mjs +6 -0
  15. package/es/FilePreview.mjs +179 -0
  16. package/es/FileUploader.mjs +266 -9
  17. package/es/McpFormDialog.mjs +8 -0
  18. package/es/McpParamsSet.mjs +630 -0
  19. package/es/MdEditor.mjs +201 -0
  20. package/es/PageContainer.mjs +360 -11
  21. package/es/ParameterTable.mjs +2288 -0
  22. package/es/PublishRecord.mjs +6 -6
  23. package/es/RadioGroup.mjs +119 -0
  24. package/es/SourcePublish.mjs +6 -6
  25. package/es/Table.mjs +2 -2
  26. package/es/assets/AddOrEditSupplierDialog.css +1 -0
  27. package/es/assets/AiboxTable.css +1 -0
  28. package/es/assets/ApplicationTypeTag.css +1 -0
  29. package/es/assets/AuthSection.css +1 -0
  30. package/es/assets/AutoShowTooltip.css +1 -0
  31. package/es/assets/CreateMcpForm.css +1 -0
  32. package/es/assets/CustomSidebar.css +1 -0
  33. package/es/assets/CustomToggle.css +1 -0
  34. package/es/assets/FilePreview.css +1 -0
  35. package/es/assets/FileUploader.css +1 -0
  36. package/es/assets/McpParamsSet.css +1 -0
  37. package/es/assets/MdEditor.css +1 -0
  38. package/es/assets/PageContainer.css +1 -0
  39. package/es/assets/ParameterTable.css +1 -0
  40. package/es/assets/RadioGroup.css +1 -0
  41. package/es/assets/index.css +1 -1
  42. package/es/assets/index2.css +1 -1
  43. package/es/assets/index3.css +1 -0
  44. package/es/assets/index4.css +1 -0
  45. package/es/assets/index5.css +1 -0
  46. package/es/assets/index6.css +1 -0
  47. package/es/assets/layout.css +1 -0
  48. package/es/assets/usePreview.css +1 -0
  49. package/es/chunks/AiboxTable.DUGBBVXh.js +645 -0
  50. package/es/chunks/BackBar.B5Er8ZdJ.js +645 -0
  51. package/es/chunks/config.DPkdwjwD.js +49 -0
  52. package/es/chunks/config.Dklrsn-B.js +49 -0
  53. package/es/chunks/config.DqhQdkz7.js +325 -0
  54. package/es/chunks/config.RrNwuFkQ.js +325 -0
  55. package/es/chunks/config.gNZ_rT87.js +325 -0
  56. package/es/chunks/enums.DuBbLcd-.js +83 -0
  57. package/es/chunks/enums.Dvec-maC.js +62 -0
  58. package/es/chunks/field-types.CPnMOjle.js +13 -0
  59. package/es/chunks/files.cduUqjHX.js +16 -0
  60. package/es/chunks/i18n.DDMVloiU.js +443 -0
  61. package/es/chunks/i18n.k9Q_HVMs.js +443 -0
  62. package/es/chunks/index.BSA3IKSF.js +111 -0
  63. package/es/chunks/index.BT1khSY9.js +111 -0
  64. package/es/chunks/index.CDvh263l.js +257 -0
  65. package/es/chunks/index.CLyfh6p1.js +257 -0
  66. package/es/chunks/index.CSjjAi3w.js +396 -0
  67. package/es/chunks/index.CdEBk4F_.js +134 -0
  68. package/es/chunks/index.CgbxJCEU.js +265 -0
  69. package/es/chunks/index.CuDwuRO7.js +265 -0
  70. package/es/chunks/index.DWR4lc30.js +203 -0
  71. package/es/chunks/index.GuEzdh6b.js +257 -0
  72. package/es/chunks/index.uOZzvHrF.js +135 -0
  73. package/es/chunks/layout.BREUWPEJ.js +26 -0
  74. package/es/chunks/publish.DlD0o09n.js +50 -0
  75. package/es/chunks/request.24c3shPx.js +5 -0
  76. package/es/chunks/usePreview.B5lboHeg.js +153 -0
  77. package/es/chunks/usePreview.C36fNlVd.js +153 -0
  78. package/es/index.mjs +325 -312
  79. package/index.css +1 -1
  80. package/lib/AddOrEditSupplierDialog.js +1 -0
  81. package/lib/ApplicationTypeTag.js +1 -0
  82. package/lib/AuthSection.js +1 -0
  83. package/lib/AutoShowTooltip.js +1 -0
  84. package/lib/AvailableRangePreview.js +1 -1
  85. package/lib/AvailableRangeSetting.js +1 -1
  86. package/lib/CodeView.js +1 -0
  87. package/lib/CommonTagsList.js +1 -1
  88. package/lib/CreateMcpForm.js +1 -0
  89. package/lib/CustomSidebar.js +1 -0
  90. package/lib/CustomTitle.js +1 -0
  91. package/lib/CustomToggle.js +1 -0
  92. package/lib/DialogContainer.js +1 -1
  93. package/lib/FileDisplay.js +1 -0
  94. package/lib/FilePreview.js +1 -0
  95. package/lib/FileUploader.js +1 -1
  96. package/lib/McpFormDialog.js +1 -0
  97. package/lib/McpParamsSet.js +1 -0
  98. package/lib/MdEditor.js +1 -0
  99. package/lib/PageContainer.js +1 -1
  100. package/lib/ParameterTable.js +1 -0
  101. package/lib/PublishRecord.js +4 -4
  102. package/lib/RadioGroup.js +1 -0
  103. package/lib/SourcePublish.js +1 -1
  104. package/lib/Table.js +1 -1
  105. package/lib/assets/AddOrEditSupplierDialog.css +1 -0
  106. package/lib/assets/AiboxTable.css +1 -0
  107. package/lib/assets/ApplicationTypeTag.css +1 -0
  108. package/lib/assets/AuthSection.css +1 -0
  109. package/lib/assets/AutoShowTooltip.css +1 -0
  110. package/lib/assets/CreateMcpForm.css +1 -0
  111. package/lib/assets/CustomSidebar.css +1 -0
  112. package/lib/assets/CustomToggle.css +1 -0
  113. package/lib/assets/FilePreview.css +1 -0
  114. package/lib/assets/FileUploader.css +1 -0
  115. package/lib/assets/McpParamsSet.css +1 -0
  116. package/lib/assets/MdEditor.css +1 -0
  117. package/lib/assets/PageContainer.css +1 -0
  118. package/lib/assets/ParameterTable.css +1 -0
  119. package/lib/assets/RadioGroup.css +1 -0
  120. package/lib/assets/index.css +1 -1
  121. package/lib/assets/index2.css +1 -1
  122. package/lib/assets/index3.css +1 -0
  123. package/lib/assets/index4.css +1 -0
  124. package/lib/assets/index5.css +1 -0
  125. package/lib/assets/index6.css +1 -0
  126. package/lib/assets/layout.css +1 -0
  127. package/lib/assets/usePreview.css +1 -0
  128. package/lib/chunks/AiboxTable.BnoHJ7xL.js +1 -0
  129. package/lib/chunks/BackBar.C8Xrc6qW.js +1 -0
  130. package/lib/chunks/config.1oaIKLGn.js +1 -0
  131. package/lib/chunks/config.BF7MO0O5.js +1 -0
  132. package/lib/chunks/enums.DnuzPZCR.js +1 -0
  133. package/lib/chunks/field-types.Ch_2yDfg.js +1 -0
  134. package/lib/chunks/files.B3-8UC0v.js +1 -0
  135. package/lib/chunks/i18n.DgOp_D7R.js +1 -0
  136. package/lib/chunks/index.BZcSlgOO.js +1 -0
  137. package/lib/chunks/index.Bc71XWQn.js +1 -0
  138. package/lib/chunks/index.CH7XdMru.js +1 -0
  139. package/lib/chunks/index.CaidDlAx.js +1 -0
  140. package/lib/chunks/index.D7wBInWr.js +1 -0
  141. package/lib/chunks/index.DGWHQFdx.js +6 -0
  142. package/lib/chunks/index.DME62Yfo.js +1 -0
  143. package/lib/chunks/index.DWohILMv.js +1 -0
  144. package/lib/chunks/index.LK2ulXTE.js +1 -0
  145. package/lib/chunks/index.qDAoOzk9.js +1 -0
  146. package/lib/chunks/index.s8vGOJKG.js +1 -0
  147. package/lib/chunks/layout.sgE9JoNq.js +1 -0
  148. package/lib/chunks/publish.3TrK3fZf.js +1 -0
  149. package/lib/chunks/request.D8T4MgGX.js +1 -0
  150. package/lib/chunks/usePreview.2PZJSy5w.js +1 -0
  151. package/lib/chunks/usePreview.E5SeS2uw.js +1 -0
  152. package/lib/index.js +1 -4
  153. package/package.json +2 -2
@@ -0,0 +1,201 @@
1
+ import { w as M } from "./chunks/index.bCzIhWFw.js";
2
+ import { ref as O, watch as A, computed as I, createElementBlock as F, openBlock as L, createVNode as V, unref as c, normalizeStyle as k } from "vue";
3
+ import { MdEditor as B } from "md-editor-v3";
4
+ import { f as D } from "./chunks/files.cduUqjHX.js";
5
+ import { ElMessage as x } from "element-plus";
6
+ import { t as i, e as C } from "./chunks/i18n.DDMVloiU.js";
7
+ import { emitsMap as o } from "color-star-custom-methods";
8
+ import { _ as N } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
9
+ import './assets/MdEditor.css';const P = { class: "md-editor-container" }, U = {
10
+ __name: "index",
11
+ props: {
12
+ // v-model绑定值
13
+ modelValue: {
14
+ type: String,
15
+ default: ""
16
+ },
17
+ // 编辑器高度
18
+ height: {
19
+ type: String,
20
+ default: "500px"
21
+ },
22
+ // 主题 'light' | 'dark'
23
+ theme: {
24
+ type: String,
25
+ default: "light"
26
+ },
27
+ // 预览主题
28
+ previewTheme: {
29
+ type: String,
30
+ default: "default"
31
+ },
32
+ // 代码主题
33
+ codeTheme: {
34
+ type: String,
35
+ default: "atom-one-dark"
36
+ },
37
+ // 语言
38
+ language: {
39
+ type: String,
40
+ default: "zh-CN"
41
+ },
42
+ // 是否显示工具栏
43
+ showToolbars: {
44
+ type: Boolean,
45
+ default: !0
46
+ },
47
+ // 业务类型
48
+ businessType: {
49
+ type: String,
50
+ default: "common"
51
+ },
52
+ // 工具栏
53
+ toolbars: {
54
+ type: Array,
55
+ default: () => []
56
+ },
57
+ // 是否禁用
58
+ disabled: {
59
+ type: Boolean,
60
+ default: !1
61
+ },
62
+ // 占位文本
63
+ placeholder: {
64
+ type: String,
65
+ default: () => i("COMMON_DATA.PLACEHOLDER_CONTENT")
66
+ },
67
+ // 代码高亮主题
68
+ highlightTheme: {
69
+ type: String,
70
+ default: "atom-one-dark"
71
+ },
72
+ // 自动聚焦
73
+ autoFocus: {
74
+ type: Boolean,
75
+ default: !1
76
+ },
77
+ // 是否只预览
78
+ previewOnly: {
79
+ type: Boolean,
80
+ default: !0
81
+ },
82
+ // 预览
83
+ preview: {
84
+ type: Boolean,
85
+ default: !0
86
+ },
87
+ //底部工具栏
88
+ footers: {
89
+ type: Array,
90
+ default: () => ["markdownTotal", "htmlTotal"]
91
+ }
92
+ },
93
+ emits: [
94
+ o.updateModelValue,
95
+ o.change,
96
+ o.save,
97
+ o.blur,
98
+ o.focus
99
+ ],
100
+ setup(t, { emit: h }) {
101
+ const { commonUpload: f } = D(), p = C(), a = t, l = O(a.modelValue);
102
+ A(
103
+ () => a.modelValue,
104
+ (e) => {
105
+ e !== l.value && (l.value = e);
106
+ }
107
+ );
108
+ const r = h, g = I(() => {
109
+ if (!a.showToolbars) return [];
110
+ const e = [
111
+ "bold",
112
+ "underline",
113
+ "italic",
114
+ "strikeThrough",
115
+ "-",
116
+ "title",
117
+ "sub",
118
+ "sup",
119
+ "quote",
120
+ "unorderedList",
121
+ "orderedList",
122
+ "task",
123
+ "-",
124
+ "codeRow",
125
+ "code",
126
+ "link",
127
+ "image",
128
+ "table",
129
+ "mermaid",
130
+ "katex",
131
+ "-",
132
+ "revoke",
133
+ "next",
134
+ "save",
135
+ "-",
136
+ "pageFullscreen",
137
+ "fullscreen",
138
+ "preview",
139
+ "htmlPreview",
140
+ "catalog"
141
+ ];
142
+ return a.toolbars.length ? a.toolbars : e;
143
+ }), y = (e) => {
144
+ l.value = e, r(o.updateModelValue, e), r(o.change, e);
145
+ }, w = (e) => {
146
+ r(o.save, e);
147
+ }, v = (e) => {
148
+ r(o.blur, e);
149
+ }, b = (e) => {
150
+ r(o.focus, e);
151
+ }, E = async (e, n) => {
152
+ try {
153
+ const d = e.map(async (s) => {
154
+ const u = new FormData();
155
+ u.append("file", s);
156
+ const { code: S, data: m } = await f(u, a.businessType);
157
+ if (S === 0)
158
+ return {
159
+ url: `${m.url}?id="${m.bnid}"`,
160
+ desc: s.name
161
+ };
162
+ throw new Error(i("MESSAGE_REMIND.FILE_UPLOAD_FAIL") || "上传失败");
163
+ }), T = await Promise.all(d);
164
+ n(T);
165
+ } catch {
166
+ x.error(i("MESSAGE_REMIND.FILE_UPLOAD_FAIL_TIP") || "上传图片失败"), n([]);
167
+ }
168
+ };
169
+ return (e, n) => (L(), F("div", P, [
170
+ V(c(B), {
171
+ modelValue: l.value,
172
+ "onUpdate:modelValue": n[0] || (n[0] = (d) => l.value = d),
173
+ theme: t.theme,
174
+ toolbars: g.value,
175
+ "preview-theme": t.previewTheme,
176
+ "code-theme": t.codeTheme,
177
+ preview: t.preview,
178
+ "preview-only": t.previewOnly,
179
+ style: k({ height: t.height }),
180
+ disabled: t.disabled,
181
+ placeholder: t.placeholder,
182
+ "highlight-theme": t.highlightTheme,
183
+ "show-code-row-number": !0,
184
+ "auto-focus": t.autoFocus,
185
+ "tab-width": 2,
186
+ footers: t.footers,
187
+ language: c(p),
188
+ onOnChange: y,
189
+ onOnSave: w,
190
+ onOnUploadImg: E,
191
+ onOnBlur: v,
192
+ onOnFocus: b,
193
+ class: "custom-md-editor"
194
+ }, null, 8, ["modelValue", "theme", "toolbars", "preview-theme", "code-theme", "preview", "preview-only", "style", "disabled", "placeholder", "highlight-theme", "auto-focus", "footers", "language"])
195
+ ]));
196
+ }
197
+ }, R = /* @__PURE__ */ N(U, [["__scopeId", "data-v-a540493a"]]), Q = M(R);
198
+ export {
199
+ Q as MdEditor,
200
+ Q as default
201
+ };
@@ -1,13 +1,362 @@
1
- const t = {
2
- ACTION: "action"
3
- }, o = {
4
- TABLE: "table",
5
- CARD_INFINITE: "card-infinite"
6
- }, T = {
7
- BOTTOM: "bottom"
8
- };
1
+ import { w as ue } from "./chunks/index.bCzIhWFw.js";
2
+ import { useSlots as ce, ref as h, watch as fe, computed as T, onMounted as pe, createElementBlock as c, openBlock as o, createCommentVNode as m, createElementVNode as g, createVNode as f, unref as l, withCtx as i, createBlock as p, resolveDynamicComponent as me, toDisplayString as z, normalizeClass as W, renderSlot as k, mergeProps as U, toHandlers as ye, createSlots as H, normalizeStyle as he, Fragment as P, renderList as S, withModifiers as B, createTextVNode as Y, normalizeProps as ge, guardReactiveProps as ve } from "vue";
3
+ import { C as Z } from "./chunks/layout.BREUWPEJ.js";
4
+ import { SearchBar as be, IconEmpty as we } from "color-star-custom-components";
5
+ import { ElIcon as I, ElAutoResizer as ke, ElTable as xe, ElTableColumn as M, ElButton as Ce, ElDropdown as Se, ElDropdownMenu as Ee, ElDropdownItem as ze, ElScrollbar as Pe, ElPagination as Ie } from "element-plus";
6
+ import { IconZuo as Oe, IconMore as Ae, IconZuoCopy as Re, IconYou as Te, Loading as Be } from "color-message-aibox-vue";
7
+ import { D as Me, M as j, C as q } from "./chunks/field-types.CPnMOjle.js";
8
+ import { useRouter as je } from "vue-router";
9
+ import { _ as De } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
10
+ import './assets/PageContainer.css';const $e = { class: "page-container flex flex-col overflow-hidden h-full" }, Ne = { class: "text-1f2329 pd-l-4" }, Ve = { class: "action-buttons flex items-center" }, Fe = { class: "flex items-center w-full" }, Ke = { class: "flex-1" }, Le = {
11
+ key: 0,
12
+ class: "flex items-center justify-center w-full"
13
+ }, We = {
14
+ key: 1,
15
+ class: "card-list"
16
+ }, Ue = {
17
+ key: 2,
18
+ class: "loading-indicator flex items-center justify-center pd-t-20 pd-b-20"
19
+ }, He = {
20
+ key: 3,
21
+ class: "pagination-section flex items-center justify-end pd-t-16"
22
+ }, Ye = /* @__PURE__ */ Object.assign({
23
+ name: "PageContainer"
24
+ }, {
25
+ __name: "layout",
26
+ props: {
27
+ title: { type: String, default: "" },
28
+ columns: { type: Array, default: () => [] },
29
+ api: { type: Function, default: null },
30
+ apiParams: { type: Object, default: () => ({}) },
31
+ searchModel: { type: Object, default: () => ({}) },
32
+ searchFields: { type: Array, default: () => [] },
33
+ minWidth: { type: Number, default: 220 },
34
+ showPagination: { type: Boolean, default: !0 },
35
+ pageSizes: { type: Array, default: () => [10, 20, 30, 50] },
36
+ tableProps: { type: Object, default: () => ({}) },
37
+ tableEvents: { type: Object, default: () => ({}) },
38
+ mode: { type: String, default: j.TABLE },
39
+ enableInfiniteScroll: { type: Boolean, default: !1 },
40
+ direction: { type: String, default: Me.BOTTOM },
41
+ showSelection: { type: Boolean, default: !1 },
42
+ treeProps: { type: Object, default: () => ({ children: "children", hasChildren: "hasChildren", value: "" }) },
43
+ breadcrumb: { type: Object, default: () => ({ show: !1, text: "", icon: null, to: null }) },
44
+ isSeparate: { type: Boolean, default: !1 }
45
+ },
46
+ emits: ["action-click", "selection-change", "search", "reset", "page-change", "size-change"],
47
+ setup(n, { expose: G, emit: J }) {
48
+ const v = J, y = n, Q = je(), O = ce(), D = h(null), $ = h(null), N = h(null), b = h({ ...y.searchModel });
49
+ fe(
50
+ () => y.searchModel,
51
+ (e) => {
52
+ b.value = { ...e || {} };
53
+ },
54
+ { deep: !0 }
55
+ );
56
+ const u = h({ current: 1, size: 10, total: 0 }), E = h(!1), x = h([]), V = T(() => typeof O.expand == "function"), C = h([]), X = T(() => Object.keys(O).filter((e) => !["default", "title", "title-actions", "expand", "card"].includes(e))), _ = (e) => !!O[e], ee = (e, t) => {
57
+ const r = t.prop;
58
+ return r ? e?.[r] ?? "" : "";
59
+ }, A = (e, t) => typeof e.config == "function" ? e.config(t) || [] : e.actions || [], te = (e) => e.filter((t) => !t.dropdown && (t.permission === void 0 || t.permission)), F = (e) => e.filter((t) => t.dropdown && (t.permission === void 0 || t.permission)), K = (e, t, r) => {
60
+ typeof e.fn == "function" && e.fn(t, r), v("action-click", { action: e, row: t, index: r });
61
+ }, le = (e) => {
62
+ v("selection-change", e);
63
+ }, ae = (e) => {
64
+ e === "search" ? (u.value.current = 1, v("search", b.value), w()) : e === "reset" && (b.value = {}, u.value.current = 1, v("reset"), w());
65
+ }, ne = (e) => {
66
+ u.value.current = e, v("page-change", e), w();
67
+ }, oe = (e) => {
68
+ u.value.size = e, u.value.current = 1, v("size-change", e), w();
69
+ }, w = async () => {
70
+ if (y.api) {
71
+ E.value = !0;
72
+ try {
73
+ const e = {
74
+ ...y.apiParams || {},
75
+ ...b.value || {},
76
+ page: u.value.current,
77
+ size: u.value.size
78
+ }, t = await y.api(e), r = t?.data?.data || t?.data || [], a = t?.data?.total ?? t?.total ?? 0;
79
+ x.value = Array.isArray(r) ? r : [], u.value.total = a;
80
+ } finally {
81
+ E.value = !1;
82
+ }
83
+ }
84
+ }, re = () => {
85
+ }, se = (e, t) => e?.bnid || e?.id || t, ie = (e) => {
86
+ const t = y.tableProps?.rowKey, r = t ? e?.[t] : void 0;
87
+ if (!r) return;
88
+ const a = C.value.indexOf(r);
89
+ a >= 0 ? C.value.splice(a, 1) : C.value.push(r);
90
+ }, de = () => {
91
+ y.breadcrumb?.to && Q.push(y.breadcrumb.to);
92
+ }, L = T(() => y.columns || []);
93
+ return pe(() => {
94
+ w();
95
+ }), G({
96
+ fetchData: w,
97
+ tableRef: $,
98
+ searchFormRef: D,
99
+ scrollbarRef: N
100
+ }), (e, t) => (o(), c("div", $e, [
101
+ n.breadcrumb.show ? (o(), c("div", {
102
+ key: 0,
103
+ class: "flex items-center fz-14 pd-b-20 pointer",
104
+ onClick: de
105
+ }, [
106
+ f(l(I), { size: 16 }, {
107
+ default: i(() => [
108
+ (o(), p(me(n.breadcrumb.icon || l(Oe))))
109
+ ]),
110
+ _: 1
111
+ }),
112
+ g("span", Ne, z(n.breadcrumb.text), 1)
113
+ ])) : m("", !0),
114
+ n.searchFields?.length ? (o(), c("div", {
115
+ key: 1,
116
+ class: W({
117
+ "search-section pd-b-16 mg-b-16": !n.isSeparate,
118
+ "bg-fff radius-4 pd-l-16 pd-r-16 pd-t-16 pd-b-16": n.isSeparate
119
+ })
120
+ }, [
121
+ f(Z, { title: "查询" }),
122
+ f(l(be), {
123
+ ref_key: "searchFormRef",
124
+ ref: D,
125
+ items: n.searchFields,
126
+ "filter-mode": !1,
127
+ minWidth: n.minWidth,
128
+ hideExpandButton: !1,
129
+ fixedWidth: !0,
130
+ maxHeight: 32,
131
+ modelValue: b.value,
132
+ "onUpdate:modelValue": t[0] || (t[0] = (r) => b.value = r),
133
+ onOperation: ae
134
+ }, null, 8, ["items", "minWidth", "modelValue"])
135
+ ], 2)) : m("", !0),
136
+ g("div", {
137
+ class: W(["data-section flex-1 overflow-hidden flex flex-col", { "bg-fff radius-4 pd-l-16 pd-r-16 pd-t-16 pd-b-16 mg-t-16": n.isSeparate }])
138
+ }, [
139
+ n.title ? k(e.$slots, "title", { key: 0 }, () => [
140
+ f(Z, { title: n.title }, {
141
+ default: i(() => [
142
+ k(e.$slots, "title-actions", {}, void 0, !0)
143
+ ]),
144
+ _: 3
145
+ }, 8, ["title"])
146
+ ], !0) : m("", !0),
147
+ n.mode === l(j).TABLE ? (o(), p(l(ke), {
148
+ key: 1,
149
+ class: "flex-1 overflow-hidden"
150
+ }, {
151
+ default: i(({ width: r }) => [
152
+ f(l(xe), U({
153
+ ref_key: "tableRef",
154
+ ref: $,
155
+ data: x.value,
156
+ columns: L.value,
157
+ "tree-props": n.treeProps,
158
+ "show-overflow-tooltip": !0,
159
+ "row-key": n.treeProps.value || n.tableProps?.rowKey
160
+ }, {
161
+ loading: E.value,
162
+ expandRowKeys: C.value,
163
+ ...n.tableProps
164
+ }, ye(n.tableEvents), {
165
+ class: "w-full h-full admin-dashboard-table",
166
+ border: "",
167
+ onSelectionChange: le
168
+ }), H({
169
+ default: i(() => [
170
+ n.showSelection ? (o(), p(l(M), {
171
+ key: 0,
172
+ type: "selection",
173
+ width: "55",
174
+ fixed: "left"
175
+ })) : m("", !0),
176
+ V.value ? (o(), p(l(M), {
177
+ key: 1,
178
+ width: "1",
179
+ type: "expand",
180
+ fixed: "left"
181
+ }, {
182
+ default: i((a) => [
183
+ g("div", {
184
+ class: "sticky-left",
185
+ style: he({ width: r + "px" })
186
+ }, [
187
+ k(e.$slots, "expand", {
188
+ row: a.row
189
+ }, void 0, !0)
190
+ ], 4)
191
+ ]),
192
+ _: 2
193
+ }, 1024)) : m("", !0),
194
+ (o(!0), c(P, null, S(L.value, (a, R) => (o(), p(l(M), U({
195
+ key: a.prop
196
+ }, { ref_for: !0 }, a, {
197
+ "show-overflow-tooltip": a.type === l(q).ACTION ? !1 : a?.showOverflowTooltip
198
+ }), H({ _: 2 }, [
199
+ a.type === l(q).ACTION ? {
200
+ name: "default",
201
+ fn: i((d) => [
202
+ g("div", Ve, [
203
+ (o(!0), c(P, null, S(te(A(a, d.row)), (s) => (o(), p(l(Ce), {
204
+ key: s.key || s.label,
205
+ type: s.type || "primary",
206
+ size: s.size || "small",
207
+ disabled: s.disabled,
208
+ loading: s.loading,
209
+ text: s.text,
210
+ link: s.link,
211
+ icon: s.icon,
212
+ onClick: B((qe) => K(s, d.row, d.$index), ["stop"]),
213
+ style: { "margin-left": "0" }
214
+ }, {
215
+ default: i(() => [
216
+ Y(z(s.label), 1)
217
+ ]),
218
+ _: 2
219
+ }, 1032, ["type", "size", "disabled", "loading", "text", "link", "icon", "onClick"]))), 128)),
220
+ F(A(a, d.row)).length > 0 ? (o(), p(l(Se), {
221
+ key: 0,
222
+ onCommand: (s) => K(s, d.row, d.$index),
223
+ onClick: t[1] || (t[1] = B(() => {
224
+ }, ["stop"])),
225
+ trigger: "click"
226
+ }, {
227
+ dropdown: i(() => [
228
+ f(l(Ee), null, {
229
+ default: i(() => [
230
+ (o(!0), c(P, null, S(F(A(a, d.row)), (s) => (o(), p(l(ze), {
231
+ key: s.key || s.label,
232
+ command: s,
233
+ disabled: s.disabled
234
+ }, {
235
+ default: i(() => [
236
+ Y(z(s.label), 1)
237
+ ]),
238
+ _: 2
239
+ }, 1032, ["command", "disabled"]))), 128))
240
+ ]),
241
+ _: 2
242
+ }, 1024)
243
+ ]),
244
+ default: i(() => [
245
+ f(l(I), null, {
246
+ default: i(() => [
247
+ f(l(Ae))
248
+ ]),
249
+ _: 1
250
+ })
251
+ ]),
252
+ _: 2
253
+ }, 1032, ["onCommand"])) : m("", !0)
254
+ ])
255
+ ]),
256
+ key: "0"
257
+ } : _(a.prop) ? {
258
+ name: "default",
259
+ fn: i((d) => [
260
+ g("div", Fe, [
261
+ R === 0 && V.value ? (o(), p(l(I), {
262
+ key: 0,
263
+ class: "mg-r-10",
264
+ onClick: B((s) => ie(d.row), ["stop"])
265
+ }, {
266
+ default: i(() => [
267
+ C.value.includes(d.row?.[n.tableProps?.rowKey]) ? (o(), p(l(Re), { key: 0 })) : (o(), p(l(Te), { key: 1 }))
268
+ ]),
269
+ _: 2
270
+ }, 1032, ["onClick"])) : m("", !0),
271
+ g("div", Ke, [
272
+ k(e.$slots, a.prop, {
273
+ row: d.row,
274
+ index: d.$index,
275
+ column: a
276
+ }, void 0, !0)
277
+ ])
278
+ ])
279
+ ]),
280
+ key: "1"
281
+ } : {
282
+ name: "default",
283
+ fn: i((d) => [
284
+ g("span", null, z(ee(d.row, a)), 1)
285
+ ]),
286
+ key: "2"
287
+ }
288
+ ]), 1040, ["show-overflow-tooltip"]))), 128))
289
+ ]),
290
+ _: 2
291
+ }, [
292
+ S(X.value, (a) => ({
293
+ name: a,
294
+ fn: i((R) => [
295
+ k(e.$slots, a, ge(ve(R)), void 0, !0)
296
+ ])
297
+ }))
298
+ ]), 1040, ["data", "columns", "tree-props", "row-key"])
299
+ ]),
300
+ _: 3
301
+ })) : n.mode === l(j).CARD_INFINITE ? (o(), p(l(Pe), {
302
+ key: 2,
303
+ ref_key: "scrollbarRef",
304
+ ref: N,
305
+ class: "card-container flex-1",
306
+ onEndReached: re
307
+ }, {
308
+ default: i(() => [
309
+ x.value.length === 0 ? (o(), c("div", Le, [
310
+ f(l(we))
311
+ ])) : (o(), c("div", We, [
312
+ (o(!0), c(P, null, S(x.value, (r, a) => (o(), c("div", {
313
+ key: se(r, a),
314
+ class: "card-item"
315
+ }, [
316
+ k(e.$slots, "card", {
317
+ item: r,
318
+ index: a,
319
+ data: x.value,
320
+ loading: E.value
321
+ }, void 0, !0)
322
+ ]))), 128))
323
+ ])),
324
+ n.enableInfiniteScroll && e.isLoadingMore ? (o(), c("div", Ue, [
325
+ f(l(I), {
326
+ class: "is-loading",
327
+ color: "var(--primary-color-1)"
328
+ }, {
329
+ default: i(() => [
330
+ f(l(Be))
331
+ ]),
332
+ _: 1
333
+ })
334
+ ])) : m("", !0)
335
+ ]),
336
+ _: 3
337
+ }, 512)) : m("", !0),
338
+ n.showPagination ? (o(), c("div", He, [
339
+ f(l(Ie), {
340
+ "current-page": u.value.current,
341
+ "onUpdate:currentPage": t[2] || (t[2] = (r) => u.value.current = r),
342
+ "page-size": u.value.size,
343
+ "onUpdate:pageSize": t[3] || (t[3] = (r) => u.value.size = r),
344
+ total: u.value.total,
345
+ "page-sizes": n.pageSizes,
346
+ background: "",
347
+ layout: "total, sizes, prev, pager, next, jumper",
348
+ onCurrentChange: ne,
349
+ onSizeChange: oe
350
+ }, null, 8, ["current-page", "page-size", "total", "page-sizes"])
351
+ ])) : m("", !0)
352
+ ], 2)
353
+ ]));
354
+ }
355
+ }), Ze = /* @__PURE__ */ De(Ye, [["__scopeId", "data-v-1b7e7423"]]), nt = ue(Ze);
9
356
  export {
10
- t as COLUMN_TYPES,
11
- T as DIRECTION,
12
- o as MODES
357
+ q as COLUMN_TYPES,
358
+ Me as DIRECTION,
359
+ j as MODES,
360
+ nt as PageContainer,
361
+ nt as default
13
362
  };