aibox-custom-component-packages 0.0.32 → 0.0.34

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 (192) hide show
  1. package/README.md +64 -64
  2. package/es/AddOrEditSupplierDialog.mjs +3 -3
  3. package/es/ApplicationTypeTag.mjs +1 -1
  4. package/es/AuthSection.mjs +1 -1
  5. package/es/AutoShowTooltip.mjs +1 -1
  6. package/es/AvailableRangePreview.mjs +1 -1
  7. package/es/AvailableRangeSetting.mjs +2 -2
  8. package/es/CodeView.mjs +1 -1
  9. package/es/CommonTagsList.mjs +1 -1
  10. package/es/CreateMcpForm.mjs +1 -1
  11. package/es/CustomSidebar.mjs +1 -1
  12. package/es/CustomTitle.mjs +1 -1
  13. package/es/CustomToggle.mjs +1 -1
  14. package/es/DocSyncSelect.mjs +1 -1
  15. package/es/FileDisplay.mjs +1 -1
  16. package/es/FilePreview.mjs +2 -2
  17. package/es/FileUploader.mjs +1 -1
  18. package/es/LoginRedirectScreen.mjs +1 -1
  19. package/es/Logo.mjs +1 -1
  20. package/es/McpFormDialog.mjs +1 -1
  21. package/es/McpParamsSet.mjs +1 -1
  22. package/es/MdEditor.mjs +1 -1
  23. package/es/PageContainer.mjs +1 -1
  24. package/es/ParameterTable.mjs +1 -1
  25. package/es/PublishRecord.mjs +1 -1
  26. package/es/RadioGroup.mjs +1 -1
  27. package/es/SourcePublish.mjs +3 -3
  28. package/es/Table.mjs +3 -3
  29. package/es/assets/AddOrEditSupplierDialog.css +1 -1
  30. package/es/assets/AiboxTable.css +1 -0
  31. package/es/assets/ApplicationTypeTag.css +1 -1
  32. package/es/assets/AuthSection.css +1 -1
  33. package/es/assets/AutoShowTooltip.css +1 -1
  34. package/es/assets/AvailableRangePreview.css +1 -1
  35. package/es/assets/CodeView.css +1 -1
  36. package/es/assets/CommonTagsList.css +1 -1
  37. package/es/assets/CreateMcpForm.css +1 -1
  38. package/es/assets/CustomSidebar.css +1 -1
  39. package/es/assets/CustomToggle.css +1 -1
  40. package/es/assets/DocSyncSelect.css +1 -1
  41. package/es/assets/FileDisplay.css +1 -1
  42. package/es/assets/FilePreview.css +1 -1
  43. package/es/assets/LoginRedirectScreen.css +1 -1
  44. package/es/assets/Logo.css +1 -1
  45. package/es/assets/McpFormDialog.css +1 -1
  46. package/es/assets/McpParamsSet.css +1 -1
  47. package/es/assets/MdEditor.css +1 -1
  48. package/es/assets/PageContainer.css +1 -1
  49. package/es/assets/ParameterTable.css +1 -1
  50. package/es/assets/PublishRecord.css +1 -1
  51. package/es/assets/RadioGroup.css +1 -1
  52. package/es/assets/SourcePublish.css +1 -1
  53. package/es/assets/layout.css +1 -1
  54. package/es/chunks/{AddOrEditSupplierDialog.DhGagQdN.js → AddOrEditSupplierDialog.D0WrS7zb.js} +6 -6
  55. package/es/chunks/AddOrEditSupplierDialog.u9M_J9ps.js +779 -0
  56. package/es/chunks/{BackBar.DzJ2OzUe.js → AiboxTable.CNJGTKaO.js} +84 -84
  57. package/es/chunks/{ApplicationTypeTag.BP3y2wxh.js → ApplicationTypeTag.Ctbs4Cfh.js} +2 -2
  58. package/es/chunks/{AuthSection.jrp3zawz.js → AuthSection.DoHCPqfe.js} +3 -3
  59. package/es/chunks/{AutoShowTooltip.Duo0-HYn.js → AutoShowTooltip.DKVXyaU4.js} +1 -1
  60. package/es/chunks/{AvailableRangePreview.Cc_D7qn-.js → AvailableRangePreview.Daug_hry.js} +3 -3
  61. package/es/chunks/{AvailableRangeSetting.BjNvRqad.js → AvailableRangeSetting.F8v_IaDj.js} +3 -3
  62. package/es/chunks/{CodeView.Du-CTWN-.js → CodeView.CrofMsZq.js} +2 -2
  63. package/es/chunks/{CommonTagsList.B4UNIT4z.js → CommonTagsList.CaDCnfaw.js} +5 -5
  64. package/es/chunks/CommonTagsList.DsAsA9Ul.js +159 -0
  65. package/es/chunks/{CreateMcpForm.B0jFYT0_.js → CreateMcpForm.CmDJvBZn.js} +8 -8
  66. package/es/chunks/CustomSidebar.CcOD8-wi.js +594 -0
  67. package/es/chunks/{CustomSidebar.ByfCcFOC.js → CustomSidebar.SNazR8Qi.js} +6 -6
  68. package/es/chunks/CustomToggle.DKRF3u_m.js +190 -0
  69. package/es/chunks/{CustomToggle.DBXPEHY5.js → CustomToggle.Da9-ySi3.js} +1 -1
  70. package/es/chunks/{DocSyncSelect.tbtnTok_.js → DocSyncSelect.BXAEaFps.js} +13 -15
  71. package/es/chunks/{FileDisplay.CqgQ3rtu.js → FileDisplay.D308Pw4L.js} +10 -12
  72. package/es/chunks/{FilePreview.CwdS-fNc.js → FilePreview.CZGtuNLk.js} +2 -2
  73. package/es/chunks/{FileUploader.0a_MfmvR.js → FileUploader.Dzz9qaG4.js} +9 -10
  74. package/es/chunks/{LoginRedirectScreen.B7kkQoP_.js → LoginRedirectScreen.DWykKkE4.js} +1 -1
  75. package/es/chunks/{Logo.zn-NFPWL.js → Logo.CSphmM19.js} +1 -1
  76. package/es/chunks/{McpFormDialog.BxxfxU1y.js → McpFormDialog.BFdJy9Aa.js} +3 -3
  77. package/es/chunks/{McpParamsSet.CZkVuUuD.js → McpParamsSet.Dpsku0Bq.js} +11 -13
  78. package/es/chunks/{MdEditor.mj5o3zYF.js → MdEditor.DXniUyrY.js} +2 -2
  79. package/es/chunks/PageContainer.Bf0DWQNo.js +462 -0
  80. package/es/chunks/{PageContainer.B400LILM.js → PageContainer.D_aKk9S0.js} +2 -2
  81. package/es/chunks/{ParameterTable.CPlrR4n_.js → ParameterTable.DIzML7kY.js} +14 -16
  82. package/es/chunks/{PublishRecord.nJhg5VCt.js → PublishRecord.B8_7fRU8.js} +4 -4
  83. package/es/chunks/PublishRecord.MUK6tcgd.js +136 -0
  84. package/es/chunks/{RadioGroup.BGO267-v.js → RadioGroup.CB4jkuR3.js} +1 -1
  85. package/es/chunks/SourcePublish.01DUJyfK.js +987 -0
  86. package/es/chunks/{SourcePublish.Bf25XcZi.js → SourcePublish.CyBDYK5p.js} +25 -22
  87. package/es/chunks/{config.C9iiPD4U.js → config.BVTdMgQ9.js} +2 -2
  88. package/es/chunks/config.DbvuSKlD.js +270 -0
  89. package/es/chunks/{config.DnXRhz1z.js → config.rFstR-MG.js} +1 -1
  90. package/es/chunks/{i18n.CFUdEPHr.js → i18n.CfGGAcJH.js} +1 -1
  91. package/es/chunks/{layout.D9PXutv4.js → layout.CUSAJyQL.js} +1 -1
  92. package/es/chunks/{usePreview.BbNxKBck.js → usePreview.yIUda0Hv.js} +7 -9
  93. package/es/index.mjs +65 -65
  94. package/lib/AddOrEditSupplierDialog.js +1 -1
  95. package/lib/ApplicationTypeTag.js +1 -1
  96. package/lib/AuthSection.js +1 -1
  97. package/lib/AutoShowTooltip.js +1 -1
  98. package/lib/AvailableRangePreview.js +1 -1
  99. package/lib/AvailableRangeSetting.js +1 -1
  100. package/lib/CodeView.js +1 -1
  101. package/lib/CommonTagsList.js +1 -1
  102. package/lib/CreateMcpForm.js +1 -1
  103. package/lib/CustomSidebar.js +1 -1
  104. package/lib/CustomTitle.js +1 -1
  105. package/lib/CustomToggle.js +1 -1
  106. package/lib/DocSyncSelect.js +1 -1
  107. package/lib/FileDisplay.js +1 -1
  108. package/lib/FilePreview.js +1 -1
  109. package/lib/FileUploader.js +1 -1
  110. package/lib/LoginRedirectScreen.js +1 -1
  111. package/lib/Logo.js +1 -1
  112. package/lib/McpFormDialog.js +1 -1
  113. package/lib/McpParamsSet.js +1 -1
  114. package/lib/MdEditor.js +1 -1
  115. package/lib/PageContainer.js +1 -1
  116. package/lib/ParameterTable.js +1 -1
  117. package/lib/PublishRecord.js +1 -1
  118. package/lib/RadioGroup.js +1 -1
  119. package/lib/SourcePublish.js +1 -1
  120. package/lib/Table.js +1 -1
  121. package/lib/assets/AddOrEditSupplierDialog.css +1 -1
  122. package/lib/assets/AiboxTable.css +1 -0
  123. package/lib/assets/ApplicationTypeTag.css +1 -1
  124. package/lib/assets/AuthSection.css +1 -1
  125. package/lib/assets/AutoShowTooltip.css +1 -1
  126. package/lib/assets/AvailableRangePreview.css +1 -1
  127. package/lib/assets/CodeView.css +1 -1
  128. package/lib/assets/CommonTagsList.css +1 -1
  129. package/lib/assets/CreateMcpForm.css +1 -1
  130. package/lib/assets/CustomSidebar.css +1 -1
  131. package/lib/assets/CustomToggle.css +1 -1
  132. package/lib/assets/DocSyncSelect.css +1 -1
  133. package/lib/assets/FileDisplay.css +1 -1
  134. package/lib/assets/FilePreview.css +1 -1
  135. package/lib/assets/LoginRedirectScreen.css +1 -1
  136. package/lib/assets/Logo.css +1 -1
  137. package/lib/assets/McpFormDialog.css +1 -1
  138. package/lib/assets/McpParamsSet.css +1 -1
  139. package/lib/assets/MdEditor.css +1 -1
  140. package/lib/assets/PageContainer.css +1 -1
  141. package/lib/assets/ParameterTable.css +1 -1
  142. package/lib/assets/PublishRecord.css +1 -1
  143. package/lib/assets/RadioGroup.css +1 -1
  144. package/lib/assets/SourcePublish.css +1 -1
  145. package/lib/assets/layout.css +1 -1
  146. package/lib/chunks/AddOrEditSupplierDialog.DfOMS_bh.js +1 -0
  147. package/lib/chunks/{AddOrEditSupplierDialog.CdbWF4S7.js → AddOrEditSupplierDialog.tSju0y-W.js} +1 -1
  148. package/lib/chunks/AiboxTable.B-VuIQSp.js +1 -0
  149. package/lib/chunks/{ApplicationTypeTag.Bbb9onnO.js → ApplicationTypeTag.ctv_-FsI.js} +1 -1
  150. package/lib/chunks/{AuthSection.BqnII7Zc.js → AuthSection.aaNWUYhk.js} +1 -1
  151. package/lib/chunks/{AutoShowTooltip.BCg_5NZ0.js → AutoShowTooltip.DIrXDh7U.js} +1 -1
  152. package/lib/chunks/{AvailableRangePreview.CgkgcULo.js → AvailableRangePreview.CiOxEA4F.js} +1 -1
  153. package/lib/chunks/{AvailableRangeSetting.B8UyU_gN.js → AvailableRangeSetting.Bb32NVYo.js} +1 -1
  154. package/lib/chunks/{CodeView.DAWK7jtf.js → CodeView.Ct9TXiwX.js} +1 -1
  155. package/lib/chunks/CommonTagsList.Boc8vbyY.js +1 -0
  156. package/lib/chunks/{CommonTagsList.BabaB3RQ.js → CommonTagsList.CKstJRCG.js} +1 -1
  157. package/lib/chunks/{CreateMcpForm.D7lh0uKb.js → CreateMcpForm.BWs-4Onu.js} +1 -1
  158. package/lib/chunks/CustomSidebar.Cygx-8nO.js +1 -0
  159. package/lib/chunks/{CustomSidebar.Dc22wPkh.js → CustomSidebar.DCW29MKi.js} +1 -1
  160. package/lib/chunks/{CustomToggle.Cd7F_zwB.js → CustomToggle.BF7s0G8h.js} +1 -1
  161. package/lib/chunks/CustomToggle.HbP41BJh.js +1 -0
  162. package/lib/chunks/DocSyncSelect.ZlOVqBG1.js +1 -0
  163. package/lib/chunks/{FileDisplay.C3x1xoJt.js → FileDisplay.B3CFfeuo.js} +3 -3
  164. package/lib/chunks/{FilePreview.D9d-eoIn.js → FilePreview.T-kQ_iiJ.js} +1 -1
  165. package/lib/chunks/FileUploader.yvoUFzla.js +1 -0
  166. package/lib/chunks/{LoginRedirectScreen.247pzgjB.js → LoginRedirectScreen.DE21-wqJ.js} +1 -1
  167. package/lib/chunks/{Logo.DYRnRQYI.js → Logo.BvlHIPja.js} +1 -1
  168. package/lib/chunks/{McpFormDialog.BMLlvDii.js → McpFormDialog.CuYkPlUY.js} +2 -2
  169. package/lib/chunks/McpParamsSet.BZ3lptGl.js +1 -0
  170. package/lib/chunks/{MdEditor.CXIDWs1-.js → MdEditor.BSUp8pUb.js} +1 -1
  171. package/lib/chunks/{PageContainer.D_p3Rz5e.js → PageContainer.BYyJE7u_.js} +1 -1
  172. package/lib/chunks/PageContainer.CE8Pz6hD.js +1 -0
  173. package/lib/chunks/ParameterTable.CLnOL3k_.js +1 -0
  174. package/lib/chunks/PublishRecord.BZH5_Usb.js +5 -0
  175. package/lib/chunks/{PublishRecord.BQ_eSDcv.js → PublishRecord.DXoKtUn0.js} +1 -1
  176. package/lib/chunks/{RadioGroup.BYy3omgq.js → RadioGroup.CLHduGxc.js} +1 -1
  177. package/lib/chunks/SourcePublish.B23eXpNS.js +1 -0
  178. package/lib/chunks/SourcePublish.QB3O6fdx.js +1 -0
  179. package/lib/chunks/config.C0x1xjU-.js +1 -0
  180. package/lib/chunks/{layout.CFYuqtHu.js → layout.CNYc7QUj.js} +1 -1
  181. package/lib/chunks/usePreview.C3f_R7Np.js +1 -0
  182. package/lib/index.js +2 -2
  183. package/package.json +6 -6
  184. package/es/assets/BackBar.css +0 -1
  185. package/lib/assets/BackBar.css +0 -1
  186. package/lib/chunks/BackBar.BO_3ReYW.js +0 -1
  187. package/lib/chunks/DocSyncSelect.--DSxOmn.js +0 -1
  188. package/lib/chunks/FileUploader.TkV0c3Xt.js +0 -1
  189. package/lib/chunks/McpParamsSet.gd9UXa8L.js +0 -1
  190. package/lib/chunks/ParameterTable.BevV6CXV.js +0 -1
  191. package/lib/chunks/SourcePublish.BlG6iYjM.js +0 -1
  192. package/lib/chunks/usePreview.Byl992Ne.js +0 -1
@@ -0,0 +1,462 @@
1
+ import { t as e } from "./withinstall.CMngc-br.js";
2
+ import { t } from "./_plugin-vue_export-helper.B3ysoDQm.js";
3
+ import { t as n } from "./layout.CUSAJyQL.js";
4
+ import { n as r, r as i, t as a } from "./field-types.xGpJxVGP.js";
5
+ import { Fragment as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createSlots as f, createTextVNode as p, createVNode as m, guardReactiveProps as ee, mergeProps as h, normalizeClass as g, normalizeProps as te, normalizeStyle as ne, onMounted as re, openBlock as _, ref as v, renderList as y, renderSlot as b, resolveDynamicComponent as ie, toDisplayString as x, toHandlers as ae, unref as S, useSlots as oe, watch as C, withCtx as w, withModifiers as T } from "vue";
6
+ import { ElAutoResizer as se, ElButton as ce, ElDropdown as le, ElDropdownItem as ue, ElDropdownMenu as de, ElIcon as E, ElPagination as fe, ElScrollbar as pe, ElTable as me, ElTableColumn as D } from "element-plus";
7
+ import { IconMore as he, IconYou as ge, IconZuo as _e, IconZuoCopy as ve, Loading as ye } from "color-message-aibox-vue";
8
+ import { IconEmpty as be, SearchBar as xe } from "color-star-custom-components";
9
+ import { useRouter as Se } from "vue-router";
10
+ import { emitsMap as O, operationConfigMap as k, pageParams as A, paginationConfig as j } from "color-star-custom-methods";
11
+ import '../assets/PageContainer.css';//#region components/PageContainer/layout.vue
12
+ var Ce = { class: "page-container flex flex-col overflow-hidden h-full" }, we = { class: "text-1f2329 pd-l-4" }, Te = { class: "action-buttons flex items-center" }, Ee = { class: "flex items-center w-full" }, De = { class: "flex-1" }, Oe = {
13
+ key: 0,
14
+ class: "flex items-center justify-center w-full"
15
+ }, ke = {
16
+ key: 1,
17
+ class: "card-list"
18
+ }, Ae = {
19
+ key: 2,
20
+ class: "loading-indicator flex items-center justify-center pd-t-20 pd-b-20"
21
+ }, je = {
22
+ key: 3,
23
+ class: "pagination-section pd-t-16 flex justify-center"
24
+ }, M = /*@__PURE__*/ Object.assign({ name: "PageContainer" }, {
25
+ __name: "layout",
26
+ props: {
27
+ breadcrumb: {
28
+ type: Object,
29
+ default: () => ({
30
+ show: !1,
31
+ text: ""
32
+ })
33
+ },
34
+ title: {
35
+ type: String,
36
+ default: ""
37
+ },
38
+ searchFields: {
39
+ type: Array,
40
+ default: () => []
41
+ },
42
+ modelValue: {
43
+ type: Object,
44
+ default: () => ({})
45
+ },
46
+ columns: {
47
+ type: Array,
48
+ default: () => []
49
+ },
50
+ tableData: {
51
+ type: Array,
52
+ default: () => []
53
+ },
54
+ tableProps: {
55
+ type: Object,
56
+ default: () => ({
57
+ stripe: !0,
58
+ border: !1
59
+ })
60
+ },
61
+ treeProps: {
62
+ type: Object,
63
+ default: () => ({})
64
+ },
65
+ tableEvents: {
66
+ type: Object,
67
+ default: () => ({})
68
+ },
69
+ showPagination: {
70
+ type: Boolean,
71
+ default: !0
72
+ },
73
+ pagination: {
74
+ type: Object,
75
+ default: () => ({
76
+ page: A.pageNum,
77
+ size: A.pageSize,
78
+ total: 0,
79
+ pageSizes: j.pageSizes,
80
+ layout: j.layout
81
+ })
82
+ },
83
+ customSlots: {
84
+ type: Array,
85
+ default: () => []
86
+ },
87
+ api: {
88
+ type: Function,
89
+ default: null
90
+ },
91
+ autoLoad: {
92
+ type: Boolean,
93
+ default: !0
94
+ },
95
+ apiParams: {
96
+ type: Object,
97
+ default: () => ({})
98
+ },
99
+ isSeparate: {
100
+ type: Boolean,
101
+ default: !1
102
+ },
103
+ minWidth: {
104
+ type: Number,
105
+ default: 290
106
+ },
107
+ mode: {
108
+ type: String,
109
+ default: i.TABLE,
110
+ validator: (e) => Object.values(i).includes(e)
111
+ },
112
+ showSelection: {
113
+ type: Boolean,
114
+ default: !1
115
+ },
116
+ selection: {
117
+ type: Array,
118
+ default: () => []
119
+ },
120
+ hasExpand: {
121
+ type: Boolean,
122
+ default: !1
123
+ },
124
+ requestParamsCallback: {
125
+ type: Function,
126
+ default: null
127
+ }
128
+ },
129
+ emits: [
130
+ O.search,
131
+ O.reset,
132
+ O.actionClick,
133
+ O.paginationChange,
134
+ O.sizeChange,
135
+ O.dataLoaded,
136
+ O.dataError,
137
+ O.updateModelValue,
138
+ "selection-change",
139
+ "expand-change"
140
+ ],
141
+ setup(e, { expose: t, emit: M }) {
142
+ let N = Se(), P = e, F = M, Me = v(null), I = v(null), Ne = v(null), Pe = oe(), L = v(!1), R = v([]), z = v({
143
+ page: A.pageNum,
144
+ size: A.pageSize,
145
+ total: 0,
146
+ pageSizes: j.pageSizes,
147
+ layout: j.layout
148
+ }), B = 0, V = v({ ...P.modelValue }), H = v(!1), U = v(!0), W = v([...P.selection]), G = v([...P.tableProps?.expandRowKeys || []]), K = s(() => P.api ? R.value : P.tableData), q = s(() => P.api ? z.value : P.pagination), J = s(() => P.api ? L.value || H.value : P.tableProps.loading || H.value || !1), Y = s(() => P.mode === i.CARD_INFINITE), X = s(() => P.columns?.map((e) => {
149
+ if (e.type === a.ACTION && (Array.isArray(e.actions) || typeof e.actions == "function")) return {
150
+ ...e,
151
+ align: "center",
152
+ fixed: "right"
153
+ };
154
+ let { width: t, ...n } = e;
155
+ return {
156
+ ...n,
157
+ minWidth: t
158
+ };
159
+ })), Fe = (e) => {
160
+ e === r.BOTTOM && (!Y.value || !U.value || J.value || $({}, !0));
161
+ }, Ie = (e, t) => e.id || e.bnid || e.key || `item-${t}`, Le = () => {
162
+ N.back();
163
+ }, Re = (e) => {
164
+ let t = e[P.tableProps?.rowKey];
165
+ G.value.includes(t) ? G.value = G.value.filter((e) => e !== t) : G.value.push(t);
166
+ }, ze = (e, t) => t.formatter ? t.formatter(e[t.prop], e, t) : e[t.prop], Be = (e) => Pe[e] !== void 0, Z = (e, t) => typeof e.actions == "function" ? e.actions(t) || [] : e.actions || [], Ve = (e) => e.length < 3 ? e : e.slice(0, 1), Q = (e) => e.length < 3 ? [] : e.slice(1), $ = (e = {}, t = !1) => {
167
+ if (!P.api) return;
168
+ if (t) {
169
+ if (!U.value || H.value) return;
170
+ H.value = !0;
171
+ } else L.value = !0, Y.value && (U.value = !0, H.value = !1);
172
+ let n = {};
173
+ typeof P.requestParamsCallback == "function" && (n = P.requestParamsCallback(V.value, P.apiParams));
174
+ let r = {
175
+ ...e,
176
+ ...P.apiParams,
177
+ ...V.value,
178
+ ...n
179
+ };
180
+ P.showPagination && (r.page = t ? q.value.page + 1 : q.value.page, r.size = q.value.size), console.log("requestParams", r?.publishStatus);
181
+ let i = ++B;
182
+ P.api(r).then((e) => {
183
+ if (i !== B) return;
184
+ let n = e?.data?.memberSo?.data || e?.data?.data || e?.data || [];
185
+ if (console.log("newData", n), t) {
186
+ if (!n || n.length === 0) {
187
+ U.value = !1;
188
+ return;
189
+ }
190
+ R.value = [...R.value, ...n], z.value.page = r.page, z.value.total = e?.data?.memberSo?.total || e?.data?.total || R.value.length, n.length < q.value.size && (U.value = !1);
191
+ } else R.value = n, z.value.total = e?.data?.memberSo?.total || e?.data?.total || 0;
192
+ F(O.dataLoaded, {
193
+ data: R.value,
194
+ pagination: z.value,
195
+ params: r,
196
+ response: e?.data,
197
+ isLoadMore: t
198
+ });
199
+ }).catch((e) => {
200
+ i === B && (t ? U.value = !1 : (R.value = [], z.value.total = 0), F(O.dataError, e));
201
+ }).finally(() => {
202
+ i === B && (t ? H.value = !1 : L.value = !1);
203
+ });
204
+ }, He = () => {
205
+ P.mode === i.CARD_INFINITE && (R.value = []);
206
+ }, Ue = () => {
207
+ P.api ? (He(), z.value.page = A.pageNum, $()) : F(O.search, V.value);
208
+ }, We = () => {
209
+ let e = {};
210
+ Object.keys(V.value).forEach((t) => {
211
+ e[t] = void 0;
212
+ }), V.value = e, P.api ? (He(), z.value.page = A.pageNum, $()) : F(O.reset);
213
+ }, Ge = (e, t, n) => {
214
+ F(O.actionClick, {
215
+ action: e,
216
+ row: t,
217
+ index: n
218
+ });
219
+ }, Ke = (e) => {
220
+ W.value = e, F("selection-change", e);
221
+ }, qe = (e, t) => {
222
+ switch (e) {
223
+ case k.search:
224
+ Ue();
225
+ break;
226
+ case k.reset: We();
227
+ }
228
+ };
229
+ return C(() => P.modelValue, (e) => {
230
+ V.value = { ...e };
231
+ }, {
232
+ deep: !0,
233
+ immediate: !0
234
+ }), C(() => P.selection, (e) => {
235
+ W.value = [...e];
236
+ }, {
237
+ deep: !0,
238
+ immediate: !0
239
+ }), C(() => P.tableProps?.expandRowKeys, (e) => {
240
+ e && (G.value = [...e]);
241
+ }, {
242
+ deep: !0,
243
+ immediate: !0
244
+ }), C(() => G.value, (e) => {
245
+ F("expand-change", e);
246
+ }, { deep: !0 }), C(() => V.value, (e) => {
247
+ F(O.updateModelValue, { ...e });
248
+ }, { deep: !0 }), re(() => {
249
+ P.autoLoad && P.api && $();
250
+ }), t({
251
+ loadData: $,
252
+ handleSearch: Ue,
253
+ handleReset: We,
254
+ clearSelection: () => I.value?.clearSelection?.(),
255
+ toggleAllSelection: () => I.value?.toggleAllSelection?.(),
256
+ getSelectionRows: () => W.value
257
+ }), (t, r) => (_(), u("div", Ce, [
258
+ e.breadcrumb.show ? (_(), u("div", {
259
+ key: 0,
260
+ class: "flex items-center fz-14 pd-b-20 pointer",
261
+ onClick: Le
262
+ }, [m(S(E), { size: 16 }, {
263
+ default: w(() => [(_(), c(ie(e.breadcrumb.icon || S(_e))))]),
264
+ _: 1
265
+ }), d("span", we, x(e.breadcrumb.text), 1)])) : l("", !0),
266
+ e.searchFields?.length ? (_(), u("div", {
267
+ key: 1,
268
+ class: g({
269
+ "search-section pd-b-16 mg-b-16": !e.isSeparate,
270
+ "bg-fff radius-4 pd-l-16 pd-r-16 pd-t-16 pd-b-16": e.isSeparate
271
+ })
272
+ }, [m(n, { title: "查询" }), m(S(xe), {
273
+ ref_key: "searchFormRef",
274
+ ref: Me,
275
+ items: e.searchFields,
276
+ "filter-mode": !1,
277
+ minWidth: e.minWidth,
278
+ hideExpandButton: !1,
279
+ fixedWidth: !0,
280
+ maxHeight: 32,
281
+ modelValue: V.value,
282
+ "onUpdate:modelValue": r[0] ||= (e) => V.value = e,
283
+ onOperation: qe
284
+ }, null, 8, [
285
+ "items",
286
+ "minWidth",
287
+ "modelValue"
288
+ ])], 2)) : l("", !0),
289
+ d("div", { class: g(["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": e.isSeparate }]) }, [
290
+ e.title ? b(t.$slots, "title", {}, () => [m(n, { title: e.title }, {
291
+ default: w(() => [b(t.$slots, "title-actions", {}, void 0, !0)]),
292
+ _: 3
293
+ }, 8, ["title"])], !0, 0) : l("", !0),
294
+ e.mode === S(i).TABLE ? (_(), c(S(se), {
295
+ key: 1,
296
+ class: "flex-1 overflow-hidden"
297
+ }, {
298
+ default: w(({ width: n }) => [m(S(me), h({
299
+ ref_key: "tableRef",
300
+ ref: I,
301
+ data: K.value,
302
+ columns: X.value,
303
+ "tree-props": e.treeProps,
304
+ "show-overflow-tooltip": !0,
305
+ "row-key": e.treeProps.value || e.tableProps?.rowKey
306
+ }, {
307
+ loading: J.value,
308
+ expandRowKeys: G.value,
309
+ ...e.tableProps
310
+ }, ae(e.tableEvents), {
311
+ class: "w-full h-full admin-dashboard-table",
312
+ border: "",
313
+ onSelectionChange: Ke
314
+ }), f({
315
+ default: w(() => [
316
+ e.showSelection ? (_(), c(S(D), {
317
+ key: 0,
318
+ type: "selection",
319
+ width: "55",
320
+ fixed: "left"
321
+ })) : l("", !0),
322
+ e.hasExpand ? (_(), c(S(D), {
323
+ key: 1,
324
+ width: "1",
325
+ type: "expand",
326
+ fixed: "left"
327
+ }, {
328
+ default: w((e) => [d("div", {
329
+ class: "sticky-left",
330
+ style: ne({ width: n + "px" })
331
+ }, [b(t.$slots, "expand", { row: e.row }, void 0, !0)], 4)]),
332
+ _: 2
333
+ }, 1024)) : l("", !0),
334
+ (_(!0), u(o, null, y(X.value, (n, i) => (_(), c(S(D), h({ key: n.prop }, { ref_for: !0 }, n, { "show-overflow-tooltip": n.type !== S(a).ACTION && n?.showOverflowTooltip }), f({ _: 2 }, [n.type === S(a).ACTION ? {
335
+ name: "default",
336
+ fn: w((e) => [d("div", Te, [(_(!0), u(o, null, y(Ve(Z(n, e.row)), (t) => (_(), c(S(ce), {
337
+ key: t.key || t.label,
338
+ type: t.type || "primary",
339
+ size: t.size || "small",
340
+ disabled: t.disabled,
341
+ loading: t.loading,
342
+ text: t.text,
343
+ link: t.link,
344
+ icon: t.icon,
345
+ onClick: T((n) => Ge(t, e.row, e.$index), ["stop"]),
346
+ style: { "margin-left": "0" }
347
+ }, {
348
+ default: w(() => [p(x(t.label), 1)]),
349
+ _: 2
350
+ }, 1032, [
351
+ "type",
352
+ "size",
353
+ "disabled",
354
+ "loading",
355
+ "text",
356
+ "link",
357
+ "icon",
358
+ "onClick"
359
+ ]))), 128)), Q(Z(n, e.row)).length > 0 ? (_(), c(S(le), {
360
+ key: 0,
361
+ onCommand: (t) => Ge(t, e.row, e.$index),
362
+ onClick: r[1] ||= T(() => {}, ["stop"]),
363
+ trigger: "click"
364
+ }, {
365
+ dropdown: w(() => [m(S(de), null, {
366
+ default: w(() => [(_(!0), u(o, null, y(Q(Z(n, e.row)), (e) => (_(), c(S(ue), {
367
+ key: e.key || e.label,
368
+ command: e,
369
+ disabled: e.disabled
370
+ }, {
371
+ default: w(() => [p(x(e.label), 1)]),
372
+ _: 2
373
+ }, 1032, ["command", "disabled"]))), 128))]),
374
+ _: 2
375
+ }, 1024)]),
376
+ default: w(() => [m(S(E), null, {
377
+ default: w(() => [m(S(he))]),
378
+ _: 1
379
+ })]),
380
+ _: 2
381
+ }, 1032, ["onCommand"])) : l("", !0)])]),
382
+ key: "0"
383
+ } : Be(n.prop) ? {
384
+ name: "default",
385
+ fn: w((r) => [d("div", Ee, [i === 0 && e.hasExpand ? (_(), c(S(E), {
386
+ key: 0,
387
+ class: "mg-r-10",
388
+ onClick: T((e) => Re(r.row), ["stop"])
389
+ }, {
390
+ default: w(() => [G.value.includes(r.row?.[e.tableProps?.rowKey]) ? (_(), c(S(ve), { key: 0 })) : (_(), c(S(ge), { key: 1 }))]),
391
+ _: 2
392
+ }, 1032, ["onClick"])) : l("", !0), d("div", De, [b(t.$slots, n.prop, {
393
+ row: r.row,
394
+ index: r.$index,
395
+ column: n
396
+ }, void 0, !0)])])]),
397
+ key: "1"
398
+ } : {
399
+ name: "default",
400
+ fn: w((e) => [d("span", null, x(ze(e.row, n)), 1)]),
401
+ key: "2"
402
+ }]), 1040, ["show-overflow-tooltip"]))), 128))
403
+ ]),
404
+ _: 2
405
+ }, [y(e.customSlots, (e) => ({
406
+ name: e,
407
+ fn: w((n) => [b(t.$slots, e, te(ee(n)), void 0, !0)])
408
+ }))]), 1040, [
409
+ "data",
410
+ "columns",
411
+ "tree-props",
412
+ "row-key"
413
+ ])]),
414
+ _: 3
415
+ })) : e.mode === S(i).CARD_INFINITE ? (_(), c(S(pe), {
416
+ key: 2,
417
+ ref_key: "scrollbarRef",
418
+ ref: Ne,
419
+ class: "card-container flex-1",
420
+ onEndReached: Fe
421
+ }, {
422
+ default: w(() => [K.value.length === 0 ? (_(), u("div", Oe, [m(S(be))])) : (_(), u("div", ke, [(_(!0), u(o, null, y(K.value, (e, n) => (_(), u("div", {
423
+ key: Ie(e, n),
424
+ class: "card-item"
425
+ }, [b(t.$slots, "card", {
426
+ item: e,
427
+ index: n,
428
+ data: K.value,
429
+ loading: J.value
430
+ }, void 0, !0)]))), 128))])), Y.value && H.value ? (_(), u("div", Ae, [m(S(E), {
431
+ class: "is-loading",
432
+ color: "var(--primary-color-1)"
433
+ }, {
434
+ default: w(() => [m(S(ye))]),
435
+ _: 1
436
+ }), r[4] ||= d("span", { class: "fz-14 text-3271fe pd-l-8" }, "加载中...", -1)])) : l("", !0)]),
437
+ _: 3
438
+ }, 512)) : l("", !0),
439
+ e.showPagination && !Y.value && q.value?.total ? (_(), u("div", je, [m(S(fe), {
440
+ "current-page": q.value.page,
441
+ "onUpdate:currentPage": r[2] ||= (e) => q.value.page = e,
442
+ "page-size": q.value.size,
443
+ "onUpdate:pageSize": r[3] ||= (e) => q.value.size = e,
444
+ "page-sizes": q.value.pageSizes,
445
+ total: q.value.total,
446
+ layout: q.value.layout,
447
+ onSizeChange: $,
448
+ onCurrentChange: $
449
+ }, null, 8, [
450
+ "current-page",
451
+ "page-size",
452
+ "page-sizes",
453
+ "total",
454
+ "layout"
455
+ ])])) : l("", !0)
456
+ ], 2),
457
+ b(t.$slots, "default", {}, void 0, !0)
458
+ ]));
459
+ }
460
+ }), N = e(/* @__PURE__ */ t(M, [["__scopeId", "data-v-c48474f1"]]));
461
+ //#endregion
462
+ export { N as t };
@@ -1,6 +1,6 @@
1
1
  import { t as e } from "./withinstall.CMngc-br.js";
2
2
  import { t } from "./_plugin-vue_export-helper.B3ysoDQm.js";
3
- import { t as n } from "./layout.D9PXutv4.js";
3
+ import { t as n } from "./layout.CUSAJyQL.js";
4
4
  import { n as r, r as i, t as a } from "./field-types.xGpJxVGP.js";
5
5
  import { Fragment as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createSlots as f, createTextVNode as p, createVNode as m, guardReactiveProps as ee, mergeProps as h, normalizeClass as g, normalizeProps as te, normalizeStyle as ne, onMounted as re, openBlock as _, ref as v, renderList as y, renderSlot as b, resolveDynamicComponent as ie, toDisplayString as x, toHandlers as ae, unref as S, useSlots as oe, watch as C, withCtx as w, withModifiers as T } from "vue";
6
6
  import { ElAutoResizer as se, ElButton as ce, ElDropdown as le, ElDropdownItem as ue, ElDropdownMenu as de, ElIcon as E, ElPagination as fe, ElScrollbar as pe, ElTable as me, ElTableColumn as D } from "element-plus";
@@ -454,6 +454,6 @@ var Ce = { class: "page-container flex flex-col overflow-hidden h-full" }, we =
454
454
  b(t.$slots, "default", {}, void 0, !0)
455
455
  ]));
456
456
  }
457
- }), N = e(/* @__PURE__ */ t(M, [["__scopeId", "data-v-a21d4109"]]));
457
+ }), N = e(/* @__PURE__ */ t(M, [["__scopeId", "data-v-a804a996"]]));
458
458
  //#endregion
459
459
  export { N as t };
@@ -1,9 +1,9 @@
1
1
  import { t as e } from "./withinstall.CMngc-br.js";
2
- import { l as n, m as r } from "./i18n.CFUdEPHr.js";
2
+ import { l as n, m as r } from "./i18n.CfGGAcJH.js";
3
3
  import { t as i } from "./_plugin-vue_export-helper.B3ysoDQm.js";
4
4
  import { n as a, t as o } from "./DialogContainer.Bgf3f2T5.js";
5
- import { a as s, i as c, r as l, t as u } from "./FileUploader.0a_MfmvR.js";
6
- import { t as d } from "./AutoShowTooltip.Duo0-HYn.js";
5
+ import { a as s, i as c, r as l, t as u } from "./FileUploader.Dzz9qaG4.js";
6
+ import { t as d } from "./AutoShowTooltip.DKVXyaU4.js";
7
7
  import { AiboxTable as f } from "../Table.mjs";
8
8
  import { Fragment as p, computed as m, createBlock as h, createCommentVNode as g, createElementBlock as _, createElementVNode as v, createSlots as y, createTextVNode as b, createVNode as x, inject as S, mergeModels as C, nextTick as w, normalizeClass as T, onMounted as E, openBlock as D, provide as O, ref as k, renderList as A, resolveComponent as j, toDisplayString as M, unref as N, useModel as P, watch as F, withCtx as I } from "vue";
9
9
  import { ElButton as L, ElCheckbox as ee, ElDatePicker as te, ElIcon as R, ElInput as z, ElMessage as ne, ElOption as B, ElSelect as V, ElTag as H, ElTooltip as U } from "element-plus";
@@ -170,7 +170,7 @@ var ce = { class: "action-header" }, le = { class: "dialog-footer" }, ue = /*#__
170
170
  }, 8, ["title"]);
171
171
  };
172
172
  }
173
- }, [["__scopeId", "data-v-b4bdf264"]]);
173
+ }, [["__scopeId", "data-v-2681e3ba"]]);
174
174
  //#endregion
175
175
  //#region components/ParameterTable/composables/useModeStrategy.js
176
176
  function de(e) {
@@ -393,7 +393,7 @@ var me = { class: "parameter-format-selector" }, he = /*#__PURE__*/ i({
393
393
  ]);
394
394
  };
395
395
  }
396
- }, [["__scopeId", "data-v-a2cb7b14"]]), Y = [
396
+ }, [["__scopeId", "data-v-acb7ffce"]]), Y = [
397
397
  {
398
398
  label: "String",
399
399
  value: "string",
@@ -510,12 +510,10 @@ var me = { class: "parameter-format-selector" }, he = /*#__PURE__*/ i({
510
510
  let o = {};
511
511
  return e.children.forEach((e) => {
512
512
  let s = e[r];
513
- if (!(!s || s === "[Array Item]")) {
514
- if (e.children && e.children.length > 0) o[s] = Q(e, n);
515
- else {
516
- let r = e[a], c = r !== void 0 && r !== "" ? r : "", l = e[i];
517
- l === "number" || l === "integer" ? c = c === "" ? 0 : Number(c) : l === "boolean" ? c = c !== "" && !!c : l === "object" ? c = Q(e, n) || {} : Z(l) && (c = Q(e, n) || []), o[s] = c;
518
- }
513
+ if (!(!s || s === "[Array Item]")) if (e.children && e.children.length > 0) o[s] = Q(e, n);
514
+ else {
515
+ let r = e[a], c = r !== void 0 && r !== "" ? r : "", l = e[i];
516
+ l === "number" || l === "integer" ? c = c === "" ? 0 : Number(c) : l === "boolean" ? c = c !== "" && !!c : l === "object" ? c = Q(e, n) || {} : Z(l) && (c = Q(e, n) || []), o[s] = c;
519
517
  }
520
518
  }), o;
521
519
  }
@@ -838,7 +836,7 @@ var me = { class: "parameter-format-selector" }, he = /*#__PURE__*/ i({
838
836
  "class"
839
837
  ]))], 64))], 64)) : g("", !0), k.value ? (D(), _("div", Se, M(k.value), 1)) : g("", !0)]));
840
838
  }
841
- }, [["__scopeId", "data-v-240d7784"]]), we = { class: "name-input-container" }, Te = {
839
+ }, [["__scopeId", "data-v-36fe7764"]]), we = { class: "name-input-container" }, Te = {
842
840
  key: 0,
843
841
  class: "array-item-display"
844
842
  }, Ee = {
@@ -896,7 +894,7 @@ var me = { class: "parameter-format-selector" }, he = /*#__PURE__*/ i({
896
894
  "class"
897
895
  ])), w.value ? (D(), _("div", Ee, M(S.value), 1)) : g("", !0)]));
898
896
  }
899
- }, [["__scopeId", "data-v-027403ba"]]), Oe = { class: "type-select-container" }, ke = { key: 1 }, Ae = {
897
+ }, [["__scopeId", "data-v-526e0290"]]), Oe = { class: "type-select-container" }, ke = { key: 1 }, Ae = {
900
898
  key: 2,
901
899
  class: "error-message"
902
900
  }, je = /*#__PURE__*/ i({
@@ -945,7 +943,7 @@ var me = { class: "parameter-format-selector" }, he = /*#__PURE__*/ i({
945
943
  "class"
946
944
  ])) : (D(), _("span", ke, M(S.value), 1)), E.value ? (D(), _("div", Ae, M(C.value), 1)) : g("", !0)]));
947
945
  }
948
- }, [["__scopeId", "data-v-576ed41c"]]), Me = {
946
+ }, [["__scopeId", "data-v-210bfeea"]]), Me = {
949
947
  key: 0,
950
948
  class: "action-buttons"
951
949
  }, Ne = /*#__PURE__*/ i({
@@ -1031,7 +1029,7 @@ var me = { class: "parameter-format-selector" }, he = /*#__PURE__*/ i({
1031
1029
  }, 8, ["title"])) : g("", !0)
1032
1030
  ]));
1033
1031
  }
1034
- }, [["__scopeId", "data-v-4e2d0024"]]), Pe = {
1032
+ }, [["__scopeId", "data-v-d76e5a0b"]]), Pe = {
1035
1033
  name: {
1036
1034
  get label() {
1037
1035
  return n("COMMON_PARAMETERTABLE.ARGUMENT_PARAM_NAME");
@@ -2010,6 +2008,6 @@ var Ue = {
2010
2008
  "max-height"
2011
2009
  ]));
2012
2010
  }
2013
- }, [["__scopeId", "data-v-b6ab0217"]]));
2011
+ }, [["__scopeId", "data-v-f39799d3"]]));
2014
2012
  //#endregion
2015
2013
  export { ve as a, Y as c, ge as i, Q as n, _e as o, Z as r, X as s, at as t };
@@ -1,9 +1,9 @@
1
1
  import { t as e } from "./withinstall.CMngc-br.js";
2
- import { m as t } from "./i18n.CFUdEPHr.js";
2
+ import { m as t } from "./i18n.CfGGAcJH.js";
3
3
  import { n } from "./enums.ICkM62f8.js";
4
4
  import { t as r } from "./_plugin-vue_export-helper.B3ysoDQm.js";
5
- import { r as i } from "./config.DnXRhz1z.js";
6
- import { m as a } from "./config.C9iiPD4U.js";
5
+ import { r as i } from "./config.rFstR-MG.js";
6
+ import { m as a } from "./config.DbvuSKlD.js";
7
7
  import { n as ee } from "./field-types.xGpJxVGP.js";
8
8
  import { t as o } from "./publish.BNhXzUgD.js";
9
9
  import { Fragment as te, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createTextVNode as f, createVNode as p, normalizeClass as m, onMounted as h, openBlock as g, reactive as _, ref as v, renderList as y, resolveDirective as b, toDisplayString as x, unref as S, withCtx as C, withDirectives as w } from "vue";
@@ -131,6 +131,6 @@ var N = { class: "publish-record overflow-hidden" }, P = { class: "publish-recor
131
131
  }), d("span", null, x(S(V)("COM_SPM.NO_PUBLISH_RECORD")), 1)]))])), [[r, J.value]]);
132
132
  };
133
133
  }
134
- }, [["__scopeId", "data-v-83a1934b"]]));
134
+ }, [["__scopeId", "data-v-112db468"]]));
135
135
  //#endregion
136
136
  export { V as t };