china-mobile-international-custom-components 0.0.28 → 0.0.30

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 (68) hide show
  1. package/es/ApplicationIcon.mjs +30 -28
  2. package/es/PageContainer.mjs +178 -149
  3. package/es/assets/PageContainer.css +1 -1
  4. package/es/index.mjs +2 -2
  5. package/lib/ApplicationIcon.js +1 -1
  6. package/lib/PageContainer.js +1 -1
  7. package/lib/assets/PageContainer.css +1 -1
  8. package/lib/index.js +2 -2
  9. package/package.json +4 -4
  10. package/es/assets/AvailableRangePreview.css +0 -1
  11. package/es/assets/AvailableRangeSetting.css +0 -1
  12. package/es/assets/CustomSidebar.css +0 -1
  13. package/es/chunks/AvailableRangePreview.D4mZe1lQ.js +0 -217
  14. package/es/chunks/AvailableRangeSetting.BkSLnQ6N.js +0 -215
  15. package/es/chunks/CustomSidebar.BWGoPtLi.js +0 -506
  16. package/es/chunks/CustomTitle.BLZ7evms.js +0 -5
  17. package/es/chunks/CustomToggle.CP3M2_f3.js +0 -165
  18. package/es/chunks/PageContainer.D-G32lvP.js +0 -329
  19. package/es/chunks/_plugin-vue_export-helper.CVVE_0_F.js +0 -13
  20. package/es/chunks/_plugin-vue_export-helper.Cf-_TWPK.js +0 -6
  21. package/es/chunks/index.39AUVSwV.js +0 -288
  22. package/es/chunks/index.AHEDCg43.js +0 -160
  23. package/es/chunks/index.B67AnSJI.js +0 -154
  24. package/es/chunks/index.B9F4VYQK.js +0 -118
  25. package/es/chunks/index.BPxF6Amx.js +0 -157
  26. package/es/chunks/index.C2gKjqoA.js +0 -209
  27. package/es/chunks/index.DTtNnKDH.js +0 -288
  28. package/es/chunks/index.DtBeJlu6.js +0 -142
  29. package/es/chunks/index.kR57MtNP.js +0 -211
  30. package/es/chunks/index.wQj5YKPy.js +0 -288
  31. package/es/chunks/layout.BE8_kCeR.js +0 -619
  32. package/es/chunks/layout.BNqqXOrs.js +0 -639
  33. package/es/chunks/layout.C6AMos7n.js +0 -17
  34. package/es/chunks/layout.CWFXohJu.js +0 -622
  35. package/es/chunks/layout.ClkgLsEw.js +0 -640
  36. package/es/chunks/layout.R5FQNRjS.js +0 -619
  37. package/es/chunks/layout.nKB_kc-U.js +0 -26
  38. package/es/chunks/utils.BhlZXNZ6.js +0 -19
  39. package/lib/assets/AvailableRangePreview.css +0 -1
  40. package/lib/assets/AvailableRangeSetting.css +0 -1
  41. package/lib/assets/CustomSidebar.css +0 -1
  42. package/lib/chunks/AvailableRangePreview.CkgZsXP0.js +0 -1
  43. package/lib/chunks/AvailableRangeSetting.CF-jHm4x.js +0 -1
  44. package/lib/chunks/CustomSidebar.CMYJFb2P.js +0 -1
  45. package/lib/chunks/CustomTitle.BkFZ-ZIq.js +0 -1
  46. package/lib/chunks/CustomToggle.C0PpzKPP.js +0 -1
  47. package/lib/chunks/PageContainer.GH56wASV.js +0 -1
  48. package/lib/chunks/_plugin-vue_export-helper.C55-DZV2.js +0 -1
  49. package/lib/chunks/_plugin-vue_export-helper.DAGvX2Jf.js +0 -1
  50. package/lib/chunks/index.BfHfKST0.js +0 -1
  51. package/lib/chunks/index.BlXappa4.js +0 -1
  52. package/lib/chunks/index.CCxHaoi4.js +0 -1
  53. package/lib/chunks/index.CSYGhK9M.js +0 -1
  54. package/lib/chunks/index.C_IlZrzE.js +0 -1
  55. package/lib/chunks/index.DUGtabLJ.js +0 -1
  56. package/lib/chunks/index.Dakz8S3g.js +0 -1
  57. package/lib/chunks/index.DsmgWFv8.js +0 -1
  58. package/lib/chunks/index.DydPD8Lc.js +0 -1
  59. package/lib/chunks/index.k_hSuA6i.js +0 -1
  60. package/lib/chunks/layout.BEW4Cgni.js +0 -1
  61. package/lib/chunks/layout.BJjU9nKW.js +0 -1
  62. package/lib/chunks/layout.BQigNrr5.js +0 -1
  63. package/lib/chunks/layout.ClFtiz-t.js +0 -1
  64. package/lib/chunks/layout.CmDwUHZo.js +0 -1
  65. package/lib/chunks/layout.CqbDoD_v.js +0 -1
  66. package/lib/chunks/layout.CwJgDGuR.js +0 -1
  67. package/lib/chunks/layout.D0zeFdw9.js +0 -1
  68. package/lib/chunks/utils.BT5Uuz2Q.js +0 -1
@@ -1,6 +1,7 @@
1
- import { w as I } from "./chunks/index.bCzIhWFw.js";
2
- import { computed as s, resolveComponent as p, createBlock as n, openBlock as c, normalizeStyle as T, withCtx as i, createVNode as g, resolveDynamicComponent as u } from "vue";
3
- import { WorkflowIcon3 as w, WorkflowIcon1 as z, Model as M, McpIcon as O, Plugin as P, Workflow as _ } from "color-message-aibox-vue";
1
+ import { w as y } from "./chunks/index.bCzIhWFw.js";
2
+ import { computed as p, createElementBlock as I, openBlock as n, createBlock as c, unref as i, normalizeStyle as E, withCtx as a, createVNode as T, resolveDynamicComponent as s } from "vue";
3
+ import { WorkflowIcon3 as g, WorkflowIcon1 as w, Model as z, McpIcon as M, Plugin as O, Workflow as P } from "color-message-aibox-vue";
4
+ import { ElImage as k, ElIcon as u } from "element-plus";
4
5
  const e = {
5
6
  AGENT: "3",
6
7
  // 智能体
@@ -16,7 +17,9 @@ const e = {
16
17
  all: "all",
17
18
  autonomous: 1,
18
19
  dialogue: 3
19
- }, C = {
20
+ }, N = /* @__PURE__ */ Object.assign({
21
+ name: "ApplicationIcon"
22
+ }, {
20
23
  __name: "layout",
21
24
  props: {
22
25
  row: {
@@ -38,48 +41,47 @@ const e = {
38
41
  }
39
42
  },
40
43
  setup(o) {
41
- const t = o, a = s(() => t.row?.[t.iconField]), l = s(() => t.applicationType === e.AGENT ? {
42
- [m.autonomous]: z,
43
- [m.dialogue]: w
44
+ const t = o, l = p(() => t.row?.[t.iconField]), r = p(() => t.applicationType === e.AGENT ? {
45
+ [m.autonomous]: w,
46
+ [m.dialogue]: g
44
47
  }[t.row?.type] : {
45
- [e.WORKFLOW]: _,
46
- [e.PLUGIN]: P,
47
- [e.MCP]: O,
48
- [e.MODEL]: M
48
+ [e.WORKFLOW]: P,
49
+ [e.PLUGIN]: O,
50
+ [e.MCP]: M,
51
+ [e.MODEL]: z
49
52
  }[t.applicationType]);
50
- return (d, y) => {
51
- const r = p("el-icon"), f = p("el-image");
52
- return a.value ? (c(), n(f, {
53
+ return (d, f) => (n(), I("div", null, [
54
+ l.value ? (n(), c(i(k), {
53
55
  key: 0,
54
- style: T({ width: o.size + "px", height: o.size + "px" }),
55
- src: a.value,
56
+ style: E({ width: o.size + "px", height: o.size + "px" }),
57
+ src: l.value,
56
58
  fit: "cover",
57
59
  class: "radius-8"
58
60
  }, {
59
- error: i(() => [
60
- g(r, { size: o.size }, {
61
- default: i(() => [
62
- (c(), n(u(l.value)))
61
+ error: a(() => [
62
+ T(i(u), { size: o.size }, {
63
+ default: a(() => [
64
+ (n(), c(s(r.value)))
63
65
  ]),
64
66
  _: 1
65
67
  }, 8, ["size"])
66
68
  ]),
67
69
  _: 1
68
- }, 8, ["style", "src"])) : (c(), n(r, {
70
+ }, 8, ["style", "src"])) : (n(), c(i(u), {
69
71
  key: 1,
70
72
  size: o.size
71
73
  }, {
72
- default: i(() => [
73
- (c(), n(u(l.value)))
74
+ default: a(() => [
75
+ (n(), c(s(r.value)))
74
76
  ]),
75
77
  _: 1
76
- }, 8, ["size"]));
77
- };
78
+ }, 8, ["size"]))
79
+ ]));
78
80
  }
79
- }, v = I(C);
81
+ }), W = y(N);
80
82
  export {
81
83
  m as APPLICATION_TYPE,
82
- v as ApplicationIcon,
84
+ W as ApplicationIcon,
83
85
  e as SOURCE_TYPE,
84
- v as default
86
+ W as default
85
87
  };
@@ -1,21 +1,21 @@
1
- import { w as pe } from "./chunks/index.bCzIhWFw.js";
2
- import { ref as c, useSlots as me, computed as x, watch as W, onMounted as ge, createElementBlock as p, openBlock as i, createCommentVNode as w, createElementVNode as P, renderSlot as z, createVNode as v, unref as u, withCtx as s, createBlock as h, resolveDynamicComponent as ve, toDisplayString as A, normalizeClass as U, mergeProps as H, toHandlers as ye, createSlots as K, Fragment as D, renderList as I, createTextVNode as q, normalizeProps as be, guardReactiveProps as he } from "vue";
3
- import { C as Y } from "./chunks/layout.CWL6NVjA.js";
4
- import { SearchBar as ke } from "color-star-custom-components";
5
- import { IconZuo as Ce, IconMore as Se } from "color-message-aibox-vue";
6
- import { emitsMap as d, paginationConfig as O, pageParams as E, operationConfigMap as Z } from "color-star-custom-methods";
7
- import { ElIcon as G, ElTable as we, ElTableColumn as ze, ElButton as Ee, ElDropdown as xe, ElDropdownMenu as Pe, ElDropdownItem as Ie, ElScrollbar as Ne, ElPagination as Ae } from "element-plus";
8
- import { useRouter as De } from "vue-router";
9
- import { _ as Oe } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
10
- import './assets/PageContainer.css';const J = {
1
+ import { w as me } from "./chunks/index.bCzIhWFw.js";
2
+ import { ref as c, useSlots as ve, computed as A, watch as M, onMounted as ye, createElementBlock as p, openBlock as i, createCommentVNode as S, createElementVNode as I, renderSlot as z, createVNode as y, unref as u, withCtx as s, createBlock as h, resolveDynamicComponent as he, toDisplayString as N, normalizeClass as q, mergeProps as Y, toHandlers as be, createSlots as Z, Fragment as D, renderList as P, createTextVNode as G, normalizeProps as ke, guardReactiveProps as Se } from "vue";
3
+ import { C as J } from "./chunks/layout.CWL6NVjA.js";
4
+ import { SearchBar as Ce } from "color-star-custom-components";
5
+ import { IconZuo as we, IconMore as ze } from "color-message-aibox-vue";
6
+ import { emitsMap as d, paginationConfig as O, pageParams as E, operationConfigMap as Q } from "color-star-custom-methods";
7
+ import { ElIcon as X, ElTable as Ee, ElTableColumn as _, ElButton as xe, ElDropdown as Ae, ElDropdownMenu as Ie, ElDropdownItem as Pe, ElScrollbar as Ne, ElPagination as De } from "element-plus";
8
+ import { useRouter as Oe } from "vue-router";
9
+ import { _ as Re } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
10
+ import './assets/PageContainer.css';const ee = {
11
11
  ACTION: "action"
12
- }, N = {
12
+ }, x = {
13
13
  TABLE: "table",
14
14
  CARD_INFINITE: "card-infinite"
15
- }, Te = { class: "page-container flex flex-col overflow-hidden h-full" }, Re = { class: "text-1f2329 pd-l-4" }, Ve = { class: "action-buttons flex items-center" }, Be = { class: "card-list" }, Fe = {
15
+ }, Te = { class: "page-container flex flex-col overflow-hidden h-full" }, Be = { class: "text-1f2329 pd-l-4" }, Ve = { class: "action-buttons flex items-center" }, je = { class: "card-list" }, Fe = {
16
16
  key: 3,
17
17
  class: "pagination-section pd-t-16 flex justify-center"
18
- }, je = /* @__PURE__ */ Object.assign({
18
+ }, $e = /* @__PURE__ */ Object.assign({
19
19
  name: "PageContainer"
20
20
  }, {
21
21
  __name: "layout",
@@ -120,8 +120,18 @@ import './assets/PageContainer.css';const J = {
120
120
  // 显示模式:MODES.TABLE(表格) | MODES.CARD_INFINITE(无限滚动卡片)
121
121
  mode: {
122
122
  type: String,
123
- default: N.TABLE,
124
- validator: (r) => Object.values(N).includes(r)
123
+ default: x.TABLE,
124
+ validator: (r) => Object.values(x).includes(r)
125
+ },
126
+ // 是否显示复选框
127
+ showSelection: {
128
+ type: Boolean,
129
+ default: !1
130
+ },
131
+ // 选中的行数据
132
+ selection: {
133
+ type: Array,
134
+ default: () => []
125
135
  }
126
136
  },
127
137
  emits: [
@@ -132,110 +142,123 @@ import './assets/PageContainer.css';const J = {
132
142
  d.sizeChange,
133
143
  d.dataLoaded,
134
144
  d.dataError,
135
- d.updateModelValue
145
+ d.updateModelValue,
146
+ "selection-change"
136
147
  // 'card-click',
137
148
  ],
138
- setup(r, { expose: Q, emit: X }) {
139
- const _ = De(), o = r, k = X, ee = c(null), ae = c(null), te = c(null), le = me(), T = c(!1), y = c([]), m = c({
149
+ setup(r, { expose: te, emit: ae }) {
150
+ const le = Oe(), o = r, b = ae, ne = c(null), R = c(null), re = c(null), oe = ve(), T = c(!1), g = c([]), m = c({
140
151
  page: E.pageNum,
141
152
  size: E.pageSize,
142
153
  total: 0,
143
154
  pageSizes: O.pageSizes,
144
155
  layout: O.layout
145
- }), g = c({ ...o.modelValue }), C = c(!1), S = c(!0), R = x(
146
- () => o.api ? y.value : o.tableData
147
- ), f = x(
156
+ }), v = c({ ...o.modelValue }), C = c(!1), w = c(!0), B = c([...o.selection]), V = A(
157
+ () => o.api ? g.value : o.tableData
158
+ ), f = A(
148
159
  () => o.api ? m.value : o.pagination
149
- ), V = x(
160
+ ), j = A(
150
161
  () => o.api ? T.value || C.value : o.tableProps.loading || C.value || !1
151
- ), B = x(() => o.mode === N.CARD_INFINITE), j = x(() => o.columns?.map((e) => {
152
- if (e.type === J.ACTION && (Array.isArray(e.actions) || typeof e.actions == "function"))
162
+ ), F = A(() => o.mode === x.CARD_INFINITE), L = A(() => o.columns?.map((e) => {
163
+ if (e.type === ee.ACTION && (Array.isArray(e.actions) || typeof e.actions == "function"))
153
164
  return {
154
165
  ...e,
155
166
  align: "center",
156
167
  fixed: "right"
157
168
  };
158
- const { width: t, ...a } = e;
169
+ const { width: a, ...t } = e;
159
170
  return {
160
- ...a,
161
- minWidth: t
171
+ ...t,
172
+ minWidth: a
162
173
  };
163
- })), ne = (e) => {
164
- !B.value || !S.value || V.value || b({}, !0);
165
- }, re = (e, t) => e.id || e.bnid || e.key || `item-${t}`, oe = () => {
166
- _.back();
167
- }, ie = (e, t) => t.formatter ? t.formatter(e[t.prop], e, t) : e[t.prop], ue = (e) => le[e] !== void 0, F = (e, t) => typeof e.actions == "function" ? e.actions(t) || [] : e.actions || [], se = (e) => e.length < 3 ? e : e.slice(0, 1), $ = (e) => e.length < 3 ? [] : e.slice(1), b = (e = {}, t = !1) => {
174
+ })), ie = (e) => {
175
+ !F.value || !w.value || j.value || k({}, !0);
176
+ }, ue = (e, a) => e.id || e.bnid || e.key || `item-${a}`, se = () => {
177
+ le.back();
178
+ }, de = (e, a) => a.formatter ? a.formatter(e[a.prop], e, a) : e[a.prop], fe = (e) => oe[e] !== void 0, $ = (e, a) => typeof e.actions == "function" ? e.actions(a) || [] : e.actions || [], ce = (e) => e.length < 3 ? e : e.slice(0, 1), W = (e) => e.length < 3 ? [] : e.slice(1), k = (e = {}, a = !1) => {
168
179
  if (!o.api) return;
169
- if (t) {
170
- if (!S.value || C.value) return;
180
+ if (a) {
181
+ if (!w.value || C.value) return;
171
182
  C.value = !0;
172
183
  } else
173
- T.value = !0, B.value && (S.value = !0, C.value = !1);
174
- const a = {
184
+ T.value = !0, F.value && (w.value = !0, C.value = !1);
185
+ const t = {
175
186
  ...e,
176
187
  // 搜索参数等
177
188
  ...o.apiParams,
178
- ...g.value
189
+ ...v.value
179
190
  };
180
- o.showPagination && (t ? a.page = f.value.page + 1 : a.page = f.value.page, a.size = f.value.size), o.api(a).then((l) => {
191
+ o.showPagination && (a ? t.page = f.value.page + 1 : t.page = f.value.page, t.size = f.value.size), o.api(t).then((l) => {
181
192
  const n = l?.data?.memberSo?.data || l?.data?.data || l?.data || [];
182
- if (t) {
193
+ if (a) {
183
194
  if (!n || n.length === 0) {
184
- S.value = !1;
195
+ w.value = !1;
185
196
  return;
186
197
  }
187
- y.value = [...y.value, ...n], m.value.page = a.page, m.value.total = l?.data?.totalNum || l?.data?.total || y.value.length, n.length < f.value.size && (S.value = !1);
198
+ g.value = [...g.value, ...n], m.value.page = t.page, m.value.total = l?.data?.totalNum || l?.data?.total || g.value.length, n.length < f.value.size && (w.value = !1);
188
199
  } else
189
- y.value = n, m.value.total = l?.data?.totalNum || l?.data?.total || 0;
190
- k(d.dataLoaded, {
191
- data: y.value,
200
+ g.value = n, m.value.total = l?.data?.totalNum || l?.data?.total || 0;
201
+ b(d.dataLoaded, {
202
+ data: g.value,
192
203
  pagination: m.value,
193
- params: a,
204
+ params: t,
194
205
  response: l?.data,
195
- isLoadMore: t
206
+ isLoadMore: a
196
207
  });
197
208
  }).catch((l) => {
198
- t ? S.value = !1 : (y.value = [], m.value.total = 0), k(d.dataError, l);
209
+ a ? w.value = !1 : (g.value = [], m.value.total = 0), b(d.dataError, l);
199
210
  }).finally(() => {
200
- t ? C.value = !1 : T.value = !1;
211
+ a ? C.value = !1 : T.value = !1;
201
212
  });
202
- }, M = () => {
203
- o.api ? (m.value.page = E.pageNum, b()) : k(d.search, g.value);
204
- }, de = () => {
213
+ }, U = () => {
214
+ o.api ? (m.value.page = E.pageNum, k()) : b(d.search, v.value);
215
+ }, H = () => {
205
216
  const e = {};
206
- Object.keys(g.value).forEach((t) => {
207
- e[t] = void 0;
208
- }), g.value = e, o.api ? (m.value.page = E.pageNum, b()) : k(d.reset);
209
- }, L = (e, t, a) => {
210
- k(d.actionClick, { action: e, row: t, index: a });
211
- }, fe = (e, t) => {
212
- switch (e) {
213
- case Z.search:
214
- M();
217
+ Object.keys(v.value).forEach((a) => {
218
+ e[a] = void 0;
219
+ }), v.value = e, o.api ? (m.value.page = E.pageNum, k()) : b(d.reset);
220
+ }, K = (e, a, t) => {
221
+ b(d.actionClick, { action: e, row: a, index: t });
222
+ }, pe = (e) => {
223
+ B.value = e, b("selection-change", e);
224
+ }, ge = (e, a) => {
225
+ switch (o.mode === x.CARD_INFINITE && (g.value = []), e) {
226
+ case Q.search:
227
+ U();
215
228
  break;
216
- case Z.reset:
217
- de();
229
+ case Q.reset:
230
+ H();
218
231
  break;
219
232
  }
220
- }, ce = (e, t) => {
221
233
  };
222
- return W(
234
+ return M(
223
235
  () => o.modelValue,
224
236
  (e) => {
225
- g.value = { ...e };
237
+ v.value = { ...e };
238
+ },
239
+ { deep: !0, immediate: !0 }
240
+ ), M(
241
+ () => o.selection,
242
+ (e) => {
243
+ B.value = [...e];
226
244
  },
227
245
  { deep: !0, immediate: !0 }
228
- ), W(
229
- () => g.value,
246
+ ), M(
247
+ () => v.value,
230
248
  (e) => {
231
- k(d.updateModelValue, { ...e });
249
+ b(d.updateModelValue, { ...e });
232
250
  },
233
251
  { deep: !0 }
234
- ), ge(() => {
235
- o.autoLoad && o.api && b();
236
- }), Q({
237
- loadData: b,
238
- handleSearch: M
252
+ ), ye(() => {
253
+ o.autoLoad && o.api && k();
254
+ }), te({
255
+ loadData: k,
256
+ handleSearch: U,
257
+ handleReset: H,
258
+ // 复选框相关方法
259
+ clearSelection: () => R.value?.clearSelection?.(),
260
+ toggleAllSelection: () => R.value?.toggleAllSelection?.(),
261
+ getSelectionRows: () => B.value
239
262
  // SearchBar相关方法
240
263
  // validate: () => searchFormRef.value?.validate?.(),
241
264
  // getFormData: () =>
@@ -247,80 +270,86 @@ import './assets/PageContainer.css';const J = {
247
270
  // handleReset()
248
271
  // }
249
272
  // },
250
- }), (e, t) => (i(), p("div", Te, [
273
+ }), (e, a) => (i(), p("div", Te, [
251
274
  r.breadcrumb.show ? (i(), p("div", {
252
275
  key: 0,
253
276
  class: "flex items-center fz-14 pd-b-20 pointer",
254
- onClick: oe
277
+ onClick: se
255
278
  }, [
256
- v(u(G), { size: 16 }, {
279
+ y(u(X), { size: 16 }, {
257
280
  default: s(() => [
258
- (i(), h(ve(r.breadcrumb.icon || u(Ce))))
281
+ (i(), h(he(r.breadcrumb.icon || u(we))))
259
282
  ]),
260
283
  _: 1
261
284
  }),
262
- P("span", Re, A(r.breadcrumb.text), 1)
263
- ])) : w("", !0),
264
- r.searchFields && r.searchFields.length > 0 ? (i(), p("div", {
285
+ I("span", Be, N(r.breadcrumb.text), 1)
286
+ ])) : S("", !0),
287
+ r.searchFields?.length ? (i(), p("div", {
265
288
  key: 1,
266
- class: U({
289
+ class: q({
267
290
  "search-section pd-b-12 mg-b-12": !r.isSeparate,
268
291
  "bg-fff radius-4 pd-l-16 pd-r-16 pd-t-16 pd-b-16": r.isSeparate
269
292
  })
270
293
  }, [
271
- v(Y, { title: "查询" }),
272
- v(u(ke), {
294
+ y(J, { title: "查询" }),
295
+ y(u(Ce), {
273
296
  ref_key: "searchFormRef",
274
- ref: ee,
297
+ ref: ne,
275
298
  items: r.searchFields,
276
299
  "filter-mode": !1,
277
300
  minWidth: r.minWidth,
278
301
  hideExpandButton: !1,
279
302
  fixedWidth: !0,
280
303
  maxHeight: 32,
281
- modelValue: g.value,
282
- "onUpdate:modelValue": t[0] || (t[0] = (a) => g.value = a),
283
- onOperation: fe,
284
- onChange: ce
304
+ modelValue: v.value,
305
+ "onUpdate:modelValue": a[0] || (a[0] = (t) => v.value = t),
306
+ onOperation: ge
285
307
  }, null, 8, ["items", "minWidth", "modelValue"])
286
- ], 2)) : w("", !0),
287
- P("div", {
288
- class: U(["data-section flex-1 overflow-hidden flex flex-col", {
308
+ ], 2)) : S("", !0),
309
+ I("div", {
310
+ class: q(["data-section flex-1 overflow-hidden flex flex-col", {
289
311
  "bg-fff radius-4 pd-l-16 pd-r-16 pd-t-16 pd-b-16 mg-t-16": r.isSeparate
290
312
  }])
291
313
  }, [
292
314
  r.title ? z(e.$slots, "title", { key: 0 }, () => [
293
- v(Y, { title: r.title }, {
315
+ y(J, { title: r.title }, {
294
316
  default: s(() => [
295
317
  z(e.$slots, "title-actions", {}, void 0, !0)
296
318
  ]),
297
319
  _: 3
298
320
  }, 8, ["title"])
299
- ], !0) : w("", !0),
300
- r.mode === u(N).TABLE ? (i(), h(u(we), H({
321
+ ], !0) : S("", !0),
322
+ r.mode === u(x).TABLE ? (i(), h(u(Ee), Y({
301
323
  key: 1,
302
324
  ref_key: "tableRef",
303
- ref: ae,
304
- data: R.value,
305
- columns: j.value,
325
+ ref: R,
326
+ data: V.value,
327
+ columns: L.value,
306
328
  "row-key": r.treeProps.rowKey,
307
329
  "tree-props": r.treeProps,
308
330
  "show-overflow-tooltip": !0
309
- }, { ...r.tableProps, loading: V.value }, ye(r.tableEvents), {
331
+ }, { ...r.tableProps, loading: j.value }, be(r.tableEvents), {
310
332
  class: "flex-1 admin-dashboard-table",
311
- border: ""
312
- }), K({
333
+ border: "",
334
+ onSelectionChange: pe
335
+ }), Z({
313
336
  default: s(() => [
314
- (i(!0), p(D, null, I(j.value, (a) => (i(), h(u(ze), H({
315
- key: a.prop
316
- }, { ref_for: !0 }, a), K({ _: 2 }, [
317
- a.type === u(J).ACTION ? {
337
+ r.showSelection ? (i(), h(u(_), {
338
+ key: 0,
339
+ type: "selection",
340
+ width: "55",
341
+ fixed: "left"
342
+ })) : S("", !0),
343
+ (i(!0), p(D, null, P(L.value, (t) => (i(), h(u(_), Y({
344
+ key: t.prop
345
+ }, { ref_for: !0 }, t), Z({ _: 2 }, [
346
+ t.type === u(ee).ACTION ? {
318
347
  name: "default",
319
348
  fn: s((l) => [
320
- P("div", Ve, [
321
- (i(!0), p(D, null, I(se(
322
- F(a, l.row)
323
- ), (n) => (i(), h(u(Ee), {
349
+ I("div", Ve, [
350
+ (i(!0), p(D, null, P(ce(
351
+ $(t, l.row)
352
+ ), (n) => (i(), h(u(xe), {
324
353
  key: n.key || n.label,
325
354
  type: n.type || "primary",
326
355
  size: n.size || "small",
@@ -329,30 +358,30 @@ import './assets/PageContainer.css';const J = {
329
358
  text: n.text,
330
359
  link: n.link,
331
360
  icon: n.icon,
332
- onClick: (Me) => L(n, l.row, l.$index)
361
+ onClick: (Le) => K(n, l.row, l.$index)
333
362
  }, {
334
363
  default: s(() => [
335
- q(A(n.label), 1)
364
+ G(N(n.label), 1)
336
365
  ]),
337
366
  _: 2
338
367
  }, 1032, ["type", "size", "disabled", "loading", "text", "link", "icon", "onClick"]))), 128)),
339
- $(F(a, l.row)).length > 0 ? (i(), h(u(xe), {
368
+ W($(t, l.row)).length > 0 ? (i(), h(u(Ae), {
340
369
  key: 0,
341
- onCommand: (n) => L(n, l.row, l.$index),
370
+ onCommand: (n) => K(n, l.row, l.$index),
342
371
  trigger: "click"
343
372
  }, {
344
373
  dropdown: s(() => [
345
- v(u(Pe), null, {
374
+ y(u(Ie), null, {
346
375
  default: s(() => [
347
- (i(!0), p(D, null, I($(
348
- F(a, l.row)
349
- ), (n) => (i(), h(u(Ie), {
376
+ (i(!0), p(D, null, P(W(
377
+ $(t, l.row)
378
+ ), (n) => (i(), h(u(Pe), {
350
379
  key: n.key || n.label,
351
380
  command: n,
352
381
  disabled: n.disabled
353
382
  }, {
354
383
  default: s(() => [
355
- q(A(n.label), 1)
384
+ G(N(n.label), 1)
356
385
  ]),
357
386
  _: 2
358
387
  }, 1032, ["command", "disabled"]))), 128))
@@ -361,32 +390,32 @@ import './assets/PageContainer.css';const J = {
361
390
  }, 1024)
362
391
  ]),
363
392
  default: s(() => [
364
- v(u(G), null, {
393
+ y(u(X), null, {
365
394
  default: s(() => [
366
- v(u(Se))
395
+ y(u(ze))
367
396
  ]),
368
397
  _: 1
369
398
  })
370
399
  ]),
371
400
  _: 2
372
- }, 1032, ["onCommand"])) : w("", !0)
401
+ }, 1032, ["onCommand"])) : S("", !0)
373
402
  ])
374
403
  ]),
375
404
  key: "0"
376
- } : ue(a.prop) ? {
405
+ } : fe(t.prop) ? {
377
406
  name: "default",
378
407
  fn: s((l) => [
379
- z(e.$slots, a.prop, {
408
+ z(e.$slots, t.prop, {
380
409
  row: l.row,
381
410
  index: l.$index,
382
- column: a
411
+ column: t
383
412
  }, void 0, !0)
384
413
  ]),
385
414
  key: "1"
386
415
  } : {
387
416
  name: "default",
388
417
  fn: s((l) => [
389
- P("span", null, A(ie(l.row, a)), 1)
418
+ I("span", null, N(de(l.row, t)), 1)
390
419
  ]),
391
420
  key: "2"
392
421
  }
@@ -394,57 +423,57 @@ import './assets/PageContainer.css';const J = {
394
423
  ]),
395
424
  _: 2
396
425
  }, [
397
- I(r.customSlots, (a) => ({
398
- name: a,
426
+ P(r.customSlots, (t) => ({
427
+ name: t,
399
428
  fn: s((l) => [
400
- z(e.$slots, a, be(he(l)), void 0, !0)
429
+ z(e.$slots, t, ke(Se(l)), void 0, !0)
401
430
  ])
402
431
  }))
403
- ]), 1040, ["data", "columns", "row-key", "tree-props"])) : r.mode === u(N).CARD_INFINITE ? (i(), h(u(Ne), {
432
+ ]), 1040, ["data", "columns", "row-key", "tree-props"])) : r.mode === u(x).CARD_INFINITE ? (i(), h(u(Ne), {
404
433
  key: 2,
405
434
  ref_key: "scrollbarRef",
406
- ref: te,
435
+ ref: re,
407
436
  class: "card-container flex-1",
408
- onEndReached: ne
437
+ onEndReached: ie
409
438
  }, {
410
439
  default: s(() => [
411
- P("div", Be, [
412
- (i(!0), p(D, null, I(R.value, (a, l) => (i(), p("div", {
413
- key: re(a, l),
440
+ I("div", je, [
441
+ (i(!0), p(D, null, P(V.value, (t, l) => (i(), p("div", {
442
+ key: ue(t, l),
414
443
  class: "card-item"
415
444
  }, [
416
445
  z(e.$slots, "card", {
417
- item: a,
446
+ item: t,
418
447
  index: l,
419
- data: R.value,
420
- loading: V.value
448
+ data: V.value,
449
+ loading: j.value
421
450
  }, void 0, !0)
422
451
  ]))), 128))
423
452
  ])
424
453
  ]),
425
454
  _: 3
426
- }, 512)) : w("", !0),
427
- r.showPagination && !B.value ? (i(), p("div", Fe, [
428
- v(u(Ae), {
455
+ }, 512)) : S("", !0),
456
+ r.showPagination && !F.value ? (i(), p("div", Fe, [
457
+ y(u(De), {
429
458
  "current-page": f.value.page,
430
- "onUpdate:currentPage": t[1] || (t[1] = (a) => f.value.page = a),
459
+ "onUpdate:currentPage": a[1] || (a[1] = (t) => f.value.page = t),
431
460
  "page-size": f.value.size,
432
- "onUpdate:pageSize": t[2] || (t[2] = (a) => f.value.size = a),
461
+ "onUpdate:pageSize": a[2] || (a[2] = (t) => f.value.size = t),
433
462
  "page-sizes": f.value.pageSizes,
434
463
  total: f.value.total,
435
464
  layout: f.value.layout,
436
- onSizeChange: b,
437
- onCurrentChange: b
465
+ onSizeChange: k,
466
+ onCurrentChange: k
438
467
  }, null, 8, ["current-page", "page-size", "page-sizes", "total", "layout"])
439
- ])) : w("", !0)
468
+ ])) : S("", !0)
440
469
  ], 2),
441
470
  z(e.$slots, "default", {}, void 0, !0)
442
471
  ]));
443
472
  }
444
- }), $e = /* @__PURE__ */ Oe(je, [["__scopeId", "data-v-a5fcd112"]]), Je = pe($e);
473
+ }), Me = /* @__PURE__ */ Re($e, [["__scopeId", "data-v-de37bf4c"]]), Qe = me(Me);
445
474
  export {
446
- J as COLUMN_TYPES,
447
- N as MODES,
448
- Je as PageContainer,
449
- Je as default
475
+ ee as COLUMN_TYPES,
476
+ x as MODES,
477
+ Qe as PageContainer,
478
+ Qe as default
450
479
  };
@@ -1 +1 @@
1
- .search-section[data-v-a5fcd112]{border-bottom:1px solid var(--border-color)}.action-buttons[data-v-a5fcd112]{gap:8px;flex-wrap:wrap}.bg-fff[data-v-a5fcd112]{background-color:var(--background-color-2);border:1px solid var(--border-color)}.card-list[data-v-a5fcd112]{display:grid;grid-template-columns:repeat(auto-fill,minmax(306px,1fr));gap:16px}
1
+ .search-section[data-v-de37bf4c]{border-bottom:1px solid var(--border-color)}.action-buttons[data-v-de37bf4c]{gap:8px;flex-wrap:wrap}.bg-fff[data-v-de37bf4c]{background-color:var(--background-color-2);border:1px solid var(--border-color)}.card-list[data-v-de37bf4c]{display:grid;grid-template-columns:repeat(auto-fill,minmax(306px,1fr));gap:16px}
package/es/index.mjs CHANGED
@@ -1675,7 +1675,7 @@ const Z = {
1675
1675
  function Le(e, ...t) {
1676
1676
  return ze(Fs[e], ...t);
1677
1677
  }
1678
- const ys = "11.2.7", tt = -1, Be = "en-US", Ze = "", _n = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
1678
+ const ys = "11.2.8", tt = -1, Be = "en-US", Ze = "", _n = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
1679
1679
  function Rs() {
1680
1680
  return {
1681
1681
  upper: (e, t) => t === "text" && O(e) ? e.toUpperCase() : t === "vnode" && k(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
@@ -2272,7 +2272,7 @@ function io(e, t) {
2272
2272
  }), o && t(o.proxiedTarget);
2273
2273
  }
2274
2274
  }
2275
- const uo = "11.2.7";
2275
+ const uo = "11.2.8";
2276
2276
  function co() {
2277
2277
  typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (he().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (he().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (he().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (he().__INTLIFY_PROD_DEVTOOLS__ = !1);
2278
2278
  }