orion-design 0.1.30 → 0.1.32

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 (26) hide show
  1. package/dist/components/Form/hooks/index.js +14 -11
  2. package/dist/components/Form/hooks/index.js.map +1 -1
  3. package/dist/components/LovTable/LovPagetable.vue.d.ts +492 -0
  4. package/dist/components/LovTable/index.d.ts +246 -0
  5. package/dist/components/LovTable/index.js +2 -1
  6. package/dist/components/LovTable/index.js.map +1 -1
  7. package/dist/components/Modal/index.js.map +1 -1
  8. package/dist/components/Modal/types.d.ts +1 -1
  9. package/dist/components/Modal/types.js.map +1 -1
  10. package/dist/components/Pagetable/Pagetable.d.ts +92 -1
  11. package/dist/components/Pagetable/columns/PagetableColumnButtongroup.d.ts +13 -0
  12. package/dist/components/Pagetable/columns/PagetableColumnDate.d.ts +13 -0
  13. package/dist/components/Pagetable/columns/PagetableColumnLink.d.ts +13 -0
  14. package/dist/components/Pagetable/columns/PagetableColumnMultiselect.d.ts +13 -0
  15. package/dist/components/Pagetable/columns/PagetableColumnNumber.d.ts +13 -0
  16. package/dist/components/Pagetable/columns/PagetableColumnSingleselect.d.ts +13 -0
  17. package/dist/components/Pagetable/columns/PagetableColumnString.d.ts +13 -0
  18. package/dist/components/Pagetable/hooks/useColumns.js +20 -15
  19. package/dist/components/Pagetable/hooks/useColumns.js.map +1 -1
  20. package/dist/components/Pagetable/index.d.ts +155 -0
  21. package/dist/components/Pagetable/index.js +509 -451
  22. package/dist/components/Pagetable/index.js.map +1 -1
  23. package/dist/version/version.d.ts +1 -1
  24. package/dist/version/version.js +1 -1
  25. package/dist/version/version.js.map +1 -1
  26. package/package.json +1 -1
@@ -1,667 +1,725 @@
1
1
  import "lodash-es";
2
- import { defineComponent as y, ref as oe, computed as M, createVNode as r, createTextVNode as re, isVNode as F } from "vue";
3
- import { withInstall as ae } from "../_util/vue/install.js";
4
- import { ElTable as ie, ElPagination as se, ElTableColumn as x, ElButton as ue } from "element-plus";
5
- import pe from "../_util/classNames.js";
6
- import { arrayType as ce, objectType as I, booleanType as N, stringType as l, someType as i, numberType as de } from "../_util/type.js";
7
- import { number2string as ge, formatDate as $, getSingleCodeContent as V, getMultiCodeContent as E } from "./utils/index.js";
8
- import me from "dayjs";
9
- import { S as fe } from "../../index-BbsXWo7C.js";
10
- import L from "../../error/OrionError.js";
11
- import he from "./hooks/useColumns.js";
12
- import Y from "../../Throne/index.js";
13
- function be(o) {
14
- return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !F(o);
2
+ import { defineComponent as S, ref as pe, computed as V, createVNode as a, createTextVNode as ce, isVNode as J } from "vue";
3
+ import { withInstall as de } from "../_util/vue/install.js";
4
+ import { ElTable as ge, ElPagination as me, ElTableColumn as A, ElButton as fe } from "element-plus";
5
+ import he from "../_util/classNames.js";
6
+ import { arrayType as be, objectType as Y, booleanType as k, stringType as n, someType as r, numberType as we } from "../_util/type.js";
7
+ import { number2string as ye, formatDate as F, getSingleCodeContent as H, getMultiCodeContent as U } from "./utils/index.js";
8
+ import Ce from "dayjs";
9
+ import { S as Se } from "../../index-BbsXWo7C.js";
10
+ import q from "../../error/OrionError.js";
11
+ import xe from "./hooks/useColumns.js";
12
+ import G from "../../Throne/index.js";
13
+ function Ae(l) {
14
+ return typeof l == "function" || Object.prototype.toString.call(l) === "[object Object]" && !J(l);
15
15
  }
16
- const we = () => ({
17
- data: ce(),
18
- tailData: I(),
19
- pagination: I(),
20
- showRowNumber: N(!0),
21
- selectionMode: N(!1),
22
- currentRowMode: N(!1),
23
- size: l()
24
- }), Ce = /* @__PURE__ */ y({
16
+ const Pe = () => ({
17
+ data: be(),
18
+ tailData: Y(),
19
+ pagination: Y(),
20
+ paginationTeleported: k(!0),
21
+ showRowNumber: k(!0),
22
+ selectionMode: k(!1),
23
+ currentRowMode: k(!1),
24
+ size: n(),
25
+ rowClassName: r(),
26
+ rowStyle: r(),
27
+ cellClassName: r(),
28
+ cellStyle: r()
29
+ }), Oe = /* @__PURE__ */ S({
25
30
  name: "OPagetable",
26
31
  inheritAttrs: !1,
27
- props: we(),
32
+ props: Pe(),
28
33
  emits: ["selectionChange", "currentRowChange", "update:pagination", "rowClick", "rowDblclick", "cellClick", "cellDblclick"],
29
- setup(o, {
30
- slots: f,
31
- attrs: b,
34
+ setup(l, {
35
+ slots: h,
36
+ attrs: w,
32
37
  emit: p,
33
- expose: S
38
+ expose: C
34
39
  }) {
35
- const A = oe(), T = M(() => ({})), k = he(f), _ = M(() => {
40
+ const O = pe(), _ = V(() => ({})), N = xe(h), I = V(() => {
36
41
  let g = [];
37
- o.showRowNumber && g.push({
42
+ l.showRowNumber && g.push({
38
43
  type: "__showRowNumber__"
39
- }), o.selectionMode && g.push({
44
+ }), l.selectionMode && g.push({
40
45
  type: "__selectionMode__"
41
46
  });
42
- function D(m) {
47
+ function T(m) {
43
48
  if (m)
44
- for (let P = 0; P < m.length; P++) {
45
- const R = m[P];
46
- R.type === "OPagetableColumngroup" ? D(R.children) : g.push({
49
+ for (let x = 0; x < m.length; x++) {
50
+ const R = m[x];
51
+ R.type === "OPagetableColumngroup" ? T(R.children) : g.push({
47
52
  ...R
48
53
  });
49
54
  }
50
55
  }
51
- return D(k.value), g;
52
- }), H = M(() => {
53
- function g(D) {
54
- if (!D)
56
+ return T(N.value), g;
57
+ }), K = V(() => {
58
+ function g(T) {
59
+ if (!T)
55
60
  return !1;
56
- for (let m = 0; m < D.length; m++) {
57
- const P = D[m];
58
- if (P.type === "OPagetableColumngroup") {
59
- if (g(P.children))
61
+ for (let m = 0; m < T.length; m++) {
62
+ const x = T[m];
63
+ if (x.type === "OPagetableColumngroup") {
64
+ if (g(x.children))
60
65
  return !0;
61
- } else if (P.tail === "" || P.tail === !0 || P.tail)
66
+ } else if (x.tail === "" || x.tail === !0 || x.tail)
62
67
  return !0;
63
68
  }
64
69
  return !1;
65
70
  }
66
- return g(k.value);
71
+ return g(N.value);
67
72
  });
68
- return S({
73
+ return C({
69
74
  clearSelection: () => {
70
- A.value.clearSelection();
75
+ O.value.clearSelection();
71
76
  },
72
- getSelectionRows: () => A.value.getSelectionRows(),
73
- toggleRowSelection: (...g) => A.value.toggleRowSelection(...g),
74
- toggleAllSelection: () => A.value.toggleAllSelection(),
75
- setCurrentRow: (...g) => A.value.setCurrentRow(...g),
76
- scrollTo: (...g) => A.value.scrollTo(...g)
77
+ getSelectionRows: () => O.value.getSelectionRows(),
78
+ toggleRowSelection: (...g) => O.value.toggleRowSelection(...g),
79
+ toggleAllSelection: () => O.value.toggleAllSelection(),
80
+ setCurrentRow: (...g) => O.value.setCurrentRow(...g),
81
+ scrollTo: (...g) => O.value.scrollTo(...g)
77
82
  }), () => {
78
83
  const {
79
84
  data: g
80
- } = o, {
81
- selectionMode: D = !1
82
- } = o, {
83
- pagination: m
84
- } = o, {
85
- showRowNumber: P = !0
86
- } = o, {
87
- currentRowMode: R = !1
88
- } = o, {
89
- size: z = "default"
90
- } = o, U = (t) => {
91
- const e = M(() => o.tailData);
92
- return _.value.map((n) => {
93
- if (n.type === "__showRowNumber__")
85
+ } = l, {
86
+ selectionMode: T = !1
87
+ } = l, {
88
+ pagination: m,
89
+ paginationTeleported: x
90
+ } = l, {
91
+ showRowNumber: R = !0
92
+ } = l, {
93
+ currentRowMode: Q = !1
94
+ } = l, {
95
+ size: E = "default"
96
+ } = l, {
97
+ rowClassName: M,
98
+ rowStyle: j,
99
+ cellClassName: z,
100
+ cellStyle: $
101
+ } = l, W = (e) => {
102
+ const t = V(() => l.tailData);
103
+ return I.value.map((o) => {
104
+ if (o.type === "__showRowNumber__")
94
105
  return "Σ";
95
- if (n.type === "__selectionMode__" || !e.value)
106
+ if (o.type === "__selectionMode__" || !t.value)
96
107
  return;
97
- const a = n.name, s = n.tail;
108
+ const i = o.name, s = o.tail;
98
109
  if (s != null && s !== !1)
99
110
  if (s === "" || s === !0) {
100
- if (e.value[a] != null)
101
- return e.value[a];
111
+ if (t.value[i] != null)
112
+ return t.value[i];
102
113
  } else {
103
114
  if (typeof s == "string")
104
- return s.replace("{}", e.value[a]);
105
- throw new L(`列[${a}]的tail属性配置错误,只能是 Boolean、String 类型,当前是[${typeof s}]类型。`);
115
+ return s.replace("{}", t.value[i]);
116
+ throw new q(`列[${i}]的tail属性配置错误,只能是 Boolean、String 类型,当前是[${typeof s}]类型。`);
106
117
  }
107
118
  });
108
- }, q = pe("orion-pagetbale"), G = () => r(x, {
119
+ }, X = he("orion-pagetbale"), Z = () => a(A, {
109
120
  type: "index",
110
121
  label: "No",
111
122
  width: 56,
112
123
  fixed: "left",
113
124
  showOverflowTooltip: !0,
114
- index: (t) => (m.currentPage - 1) * m.pageSize + t + 1
115
- }, null), J = () => r(x, {
125
+ index: (e) => (m.currentPage - 1) * m.pageSize + e + 1
126
+ }, null), ee = () => a(A, {
116
127
  type: "selection",
117
128
  width: 40,
118
129
  fixed: "left"
119
- }, null), K = (t) => {
130
+ }, null), te = (e) => {
120
131
  const {
121
- name: e,
122
- head: n,
123
- headAlign: a,
124
- width: s,
125
- fixed: h
126
- } = t;
127
- return r(x, {
128
- label: n,
129
- headerAlign: a,
130
- prop: e,
131
- width: s,
132
- fixed: h,
132
+ name: t,
133
+ head: o,
134
+ headAlign: i,
135
+ bodyAlign: s,
136
+ width: b,
137
+ fixed: f
138
+ } = e;
139
+ return a(A, {
140
+ label: o,
141
+ headerAlign: i,
142
+ align: s,
143
+ prop: t,
144
+ width: b,
145
+ fixed: f,
133
146
  showOverflowTooltip: !0
134
147
  }, null);
135
- }, Q = (t) => {
148
+ }, ne = (e) => {
136
149
  const {
137
- name: e,
138
- head: n,
139
- headAlign: a,
140
- width: s,
141
- fixed: h
142
- } = t;
143
- return r(x, {
144
- label: n,
145
- headerAlign: a,
146
- prop: e,
147
- width: s,
148
- fixed: h,
150
+ name: t,
151
+ head: o,
152
+ headAlign: i,
153
+ bodyAlign: s,
154
+ width: b,
155
+ fixed: f
156
+ } = e;
157
+ return a(A, {
158
+ label: o,
159
+ headerAlign: i,
160
+ align: s,
161
+ prop: t,
162
+ width: b,
163
+ fixed: f,
149
164
  showOverflowTooltip: !0
150
165
  }, {
151
166
  default: (u) => {
152
167
  const {
153
- row: d,
154
- column: c
168
+ row: c,
169
+ column: d
155
170
  } = u;
156
- return r("span", {
171
+ return a("span", {
157
172
  class: "cell-linkcolumn"
158
- }, [d[c.property]]);
173
+ }, [c[d.property]]);
159
174
  }
160
175
  });
161
- }, W = (t) => {
176
+ }, le = (e) => {
162
177
  const {
163
- name: e,
164
- head: n,
165
- headAlign: a,
166
- width: s,
167
- fixed: h
168
- } = t, {
178
+ name: t,
179
+ head: o,
180
+ headAlign: i,
181
+ bodyAlign: s = "right",
182
+ width: b,
183
+ fixed: f
184
+ } = e, {
169
185
  thousandsSeparator: u = !0,
170
- precision: d = -1,
171
- percentage: c = !1
172
- } = t;
173
- return r(x, {
174
- label: n,
175
- headerAlign: a,
176
- align: "right",
177
- prop: e,
178
- width: s,
179
- fixed: h,
186
+ precision: c = -1,
187
+ percentage: d = !1
188
+ } = e;
189
+ return a(A, {
190
+ label: o,
191
+ headerAlign: i,
192
+ align: s,
193
+ prop: t,
194
+ width: b,
195
+ fixed: f,
180
196
  showOverflowTooltip: !0
181
197
  }, {
182
- default: (w) => {
198
+ default: (P) => {
183
199
  const {
184
- row: O,
185
- column: C
186
- } = w;
187
- return r("span", {
200
+ row: v,
201
+ column: y
202
+ } = P;
203
+ return a("span", {
188
204
  class: "cell-numbercolumn"
189
- }, [ge(O[C.property], u, d, c === !0 || c === "")]);
205
+ }, [ye(v[y.property], u, c, d === !0 || d === "")]);
190
206
  }
191
207
  });
192
- }, X = (t) => {
208
+ }, oe = (e) => {
193
209
  const {
194
- name: e,
195
- head: n,
196
- headAlign: a,
197
- width: s,
198
- fixed: h,
210
+ name: t,
211
+ head: o,
212
+ headAlign: i,
213
+ bodyAlign: s,
214
+ width: b,
215
+ fixed: f,
199
216
  sourceFormat: u,
200
- format: d = "YYYYMMDDHHmmss"
201
- } = t;
202
- return r(x, {
203
- label: n,
204
- headerAlign: a,
205
- prop: e,
206
- width: s,
207
- fixed: h,
217
+ format: c = "YYYYMMDDHHmmss"
218
+ } = e;
219
+ return a(A, {
220
+ label: o,
221
+ headerAlign: i,
222
+ align: s,
223
+ prop: t,
224
+ width: b,
225
+ fixed: f,
208
226
  showOverflowTooltip: !0
209
227
  }, {
210
- default: (c) => {
228
+ default: (d) => {
211
229
  const {
212
- row: w,
213
- column: O
214
- } = c, C = w[O.property];
215
- return C instanceof Date || me.isDayjs(C) ? r("div", null, [$(C, d)]) : u && d ? r("div", null, [$(C, u, d)]) : r("div", null, [C]);
230
+ row: P,
231
+ column: v
232
+ } = d, y = P[v.property];
233
+ return y instanceof Date || Ce.isDayjs(y) ? a("div", null, [F(y, c)]) : u && c ? a("div", null, [F(y, u, c)]) : a("div", null, [y]);
216
234
  }
217
235
  });
218
- }, Z = (t) => {
236
+ }, re = (e) => {
219
237
  const {
220
- name: e,
221
- head: n,
222
- headAlign: a,
223
- width: s,
224
- fixed: h
225
- } = t, {
238
+ name: t,
239
+ head: o,
240
+ headAlign: i,
241
+ bodyAlign: s,
242
+ width: b,
243
+ fixed: f
244
+ } = e, {
226
245
  code: u
227
- } = t;
228
- return r(x, {
229
- label: n,
230
- headerAlign: a,
231
- prop: e,
232
- width: s,
233
- fixed: h,
246
+ } = e;
247
+ return a(A, {
248
+ label: o,
249
+ headerAlign: i,
250
+ align: s,
251
+ prop: t,
252
+ width: b,
253
+ fixed: f,
234
254
  showOverflowTooltip: !0
235
255
  }, {
236
- default: (d) => {
256
+ default: (c) => {
237
257
  const {
238
- row: c,
239
- column: w
240
- } = d, O = c[w.property];
241
- let C, v, B;
242
- return u ? typeof u == "string" ? (C = u, v = Y.getCode(C), B = V(v.value, O)) : (v = u, B = V(v, O)) : B = null, r("span", {
258
+ row: d,
259
+ column: P
260
+ } = c, v = d[P.property];
261
+ let y, B, D;
262
+ return u ? typeof u == "string" ? (y = u, B = G.getCode(y), D = H(B.value, v)) : (B = u, D = H(B, v)) : D = null, a("span", {
243
263
  class: "cell-singleselect"
244
- }, [B]);
264
+ }, [D]);
245
265
  }
246
266
  });
247
- }, ee = (t) => {
267
+ }, ae = (e) => {
248
268
  const {
249
- name: e,
250
- head: n,
251
- headAlign: a,
252
- width: s,
253
- fixed: h
254
- } = t, {
269
+ name: t,
270
+ head: o,
271
+ headAlign: i,
272
+ bodyAlign: s,
273
+ width: b,
274
+ fixed: f
275
+ } = e, {
255
276
  code: u
256
- } = t;
257
- return r(x, {
258
- label: n,
259
- headerAlign: a,
260
- prop: e,
261
- width: s,
262
- fixed: h,
277
+ } = e;
278
+ return a(A, {
279
+ label: o,
280
+ headerAlign: i,
281
+ align: s,
282
+ prop: t,
283
+ width: b,
284
+ fixed: f,
263
285
  showOverflowTooltip: !0
264
286
  }, {
265
- default: (d) => {
287
+ default: (c) => {
266
288
  const {
267
- row: c,
268
- column: w
269
- } = d, O = c[w.property];
270
- let C, v, B;
271
- return u ? typeof u == "string" ? (C = u, v = Y.getCode(C), B = E(v.value, O)) : (v = u, B = E(v, O)) : B = null, r("span", {
289
+ row: d,
290
+ column: P
291
+ } = c, v = d[P.property];
292
+ let y, B, D;
293
+ return u ? typeof u == "string" ? (y = u, B = G.getCode(y), D = U(B.value, v)) : (B = u, D = U(B, v)) : D = null, a("span", {
272
294
  class: "cell-multiselect"
273
- }, [B]);
295
+ }, [D]);
274
296
  }
275
297
  });
276
- }, te = (t) => {
298
+ }, ie = (e) => {
277
299
  const {
278
- name: e,
279
- head: n,
280
- headAlign: a,
281
- width: s,
282
- fixed: h
283
- } = t;
284
- return r(x, {
285
- label: n,
286
- headerAlign: a,
287
- prop: e,
288
- width: s,
289
- fixed: h
300
+ name: t,
301
+ head: o,
302
+ headAlign: i,
303
+ bodyAlign: s,
304
+ width: b,
305
+ fixed: f
306
+ } = e;
307
+ return a(A, {
308
+ label: o,
309
+ headerAlign: i,
310
+ align: s,
311
+ prop: t,
312
+ width: b,
313
+ fixed: f
290
314
  }, {
291
315
  default: (u) => {
292
- var c, w;
293
- const d = (w = (c = t.children) == null ? void 0 : c.default) == null ? void 0 : w.call(c, {
316
+ var d, P;
317
+ const c = (P = (d = e.children) == null ? void 0 : d.default) == null ? void 0 : P.call(d, {
294
318
  rowData: u.row,
295
- column: t,
319
+ column: e,
296
320
  rowIndex: u.$index
297
321
  });
298
- return r("div", {
322
+ return a("div", {
299
323
  class: "cell-buttongroup"
300
- }, [r(fe, null, be(d) ? d : {
301
- default: () => [d]
324
+ }, [a(Se, null, Ae(c) ? c : {
325
+ default: () => [c]
302
326
  })]);
303
327
  }
304
328
  });
305
- }, ne = (t) => {
329
+ }, se = (e) => {
306
330
  const {
307
- head: e,
308
- headAlign: n
309
- } = t, {
310
- children: a
311
- } = t;
312
- return r(x, {
313
- label: e,
314
- headerAlign: n
331
+ head: t,
332
+ headAlign: o
333
+ } = e, {
334
+ children: i
335
+ } = e;
336
+ return a(A, {
337
+ label: t,
338
+ headerAlign: o
315
339
  }, {
316
- default: (s) => j(a)
340
+ default: (s) => L(i)
317
341
  });
318
- }, le = (t) => {
342
+ }, ue = (e) => {
319
343
  const {
320
- name: e,
321
- head: n,
322
- headAlign: a,
344
+ name: t,
345
+ head: o,
346
+ headAlign: i,
323
347
  width: s,
324
- fixed: h
325
- } = t;
326
- return r(x, {
327
- label: n,
328
- headerAlign: a,
329
- prop: e,
348
+ fixed: b
349
+ } = e;
350
+ return a(A, {
351
+ label: o,
352
+ headerAlign: i,
353
+ prop: t,
330
354
  width: s,
331
- fixed: h
355
+ fixed: b
332
356
  }, {
333
- default: (u) => {
334
- var c, w;
335
- const d = (w = (c = t.children) == null ? void 0 : c.default) == null ? void 0 : w.call(c, {
336
- rowData: u.row,
337
- column: t,
338
- rowIndex: u.$index
357
+ default: (f) => {
358
+ var c, d;
359
+ const u = (d = (c = e.children) == null ? void 0 : c.default) == null ? void 0 : d.call(c, {
360
+ rowData: f.row,
361
+ column: e,
362
+ rowIndex: f.$index
339
363
  });
340
- return r("div", {
364
+ return a("div", {
341
365
  class: "cell-diy"
342
- }, [d, re(" ")]);
366
+ }, [u, ce(" ")]);
343
367
  }
344
368
  });
345
- }, j = (t) => t == null ? void 0 : t.map((e) => {
346
- if (e.type === "OPagetableColumnString")
347
- return K(e);
348
- if (e.type === "OPagetableColumnLink")
349
- return Q(e);
350
- if (e.type === "OPagetableColumnNumber")
351
- return W(e);
352
- if (e.type === "OPagetableColumnDate")
353
- return X(e);
354
- if (e.type === "OPagetableColumnSingleselect")
355
- return Z(e);
356
- if (e.type === "OPagetableColumnMultiselect")
357
- return ee(e);
358
- if (e.type === "OPagetableColumnButtongroup")
359
- return te(e);
360
- if (e.type === "OPagetableColumngroup")
361
- return ne(e);
362
- if (e.type === "OPagetableColumnDiy")
363
- return le(e);
364
- throw new L(`OPagetable不能正确渲染'${e.type.name}'子组件。`);
369
+ }, L = (e) => e == null ? void 0 : e.map((t) => {
370
+ if (t.type === "OPagetableColumnString")
371
+ return te(t);
372
+ if (t.type === "OPagetableColumnLink")
373
+ return ne(t);
374
+ if (t.type === "OPagetableColumnNumber")
375
+ return le(t);
376
+ if (t.type === "OPagetableColumnDate")
377
+ return oe(t);
378
+ if (t.type === "OPagetableColumnSingleselect")
379
+ return re(t);
380
+ if (t.type === "OPagetableColumnMultiselect")
381
+ return ae(t);
382
+ if (t.type === "OPagetableColumnButtongroup")
383
+ return ie(t);
384
+ if (t.type === "OPagetableColumngroup")
385
+ return se(t);
386
+ if (t.type === "OPagetableColumnDiy")
387
+ return ue(t);
388
+ throw new q(`OPagetable不能正确渲染'${t.type.name}'子组件。`);
365
389
  });
366
- return r("div", {
367
- class: [q, b.class],
368
- style: [T.value, b.style]
369
- }, [r("div", {
390
+ return a("div", {
391
+ class: [X, w.class],
392
+ style: [_.value, w.style]
393
+ }, [a("div", {
370
394
  class: "pagetable-wrapper"
371
- }, [r(ie, {
372
- showSummary: H.value,
373
- summaryMethod: U,
395
+ }, [a(ge, {
396
+ showSummary: K.value,
397
+ summaryMethod: W,
374
398
  border: !0,
375
- ref: A,
399
+ ref: O,
376
400
  data: g,
377
401
  height: "100%",
378
402
  style: {
379
403
  width: "100%"
380
404
  },
381
- "onSelection-change": (t) => p("selectionChange", t),
382
- "highlight-current-row": R,
383
- "onCurrent-change": (t, e) => p("currentRowChange", t, e),
384
- "onRow-click": (t, e, n) => p("rowClick", t, {
385
- name: e.property,
386
- head: e.label
387
- }, n),
388
- "onRow-dblclick": (t, e, n) => p("rowDblclick", t, {
389
- name: e.property,
390
- head: e.label
391
- }, n),
392
- "onCell-click": (t, e, n, a) => p("cellClick", t, {
393
- name: e.property,
394
- head: e.label
395
- }, n, a),
396
- "onCell-dblclick": (t, e, n, a) => p("cellDblclick", t, {
397
- name: e.property,
398
- head: e.label
399
- }, n, a),
400
- size: z
405
+ "onSelection-change": (e) => p("selectionChange", e),
406
+ "highlight-current-row": Q,
407
+ "onCurrent-change": (e, t) => p("currentRowChange", e, t),
408
+ "onRow-click": (e, t, o) => p("rowClick", e, {
409
+ name: t.property,
410
+ head: t.label
411
+ }, o),
412
+ "onRow-dblclick": (e, t, o) => p("rowDblclick", e, {
413
+ name: t.property,
414
+ head: t.label
415
+ }, o),
416
+ "onCell-click": (e, t, o, i) => p("cellClick", e, {
417
+ name: t.property,
418
+ head: t.label
419
+ }, o, i),
420
+ "onCell-dblclick": (e, t, o, i) => p("cellDblclick", e, {
421
+ name: t.property,
422
+ head: t.label
423
+ }, o, i),
424
+ size: E,
425
+ rowClassName: (e) => typeof M == "string" ? M : typeof M == "function" ? M({
426
+ rowData: e.row,
427
+ rowIndex: e.rowIndex
428
+ }) : "row-class-name_not_valid",
429
+ rowStyle: (e) => typeof j == "function" ? j({
430
+ rowData: e.row,
431
+ rowIndex: e.rowIndex
432
+ }) : typeof j == "object" ? j : {},
433
+ cellClassName: (e) => typeof z == "string" ? z : typeof z == "function" ? z({
434
+ rowData: e.row,
435
+ column: {
436
+ name: e.column.property,
437
+ head: e.column.label
438
+ },
439
+ rowIndex: e.rowIndex,
440
+ columnIndex: e.columnIndex
441
+ }) : "cell-class-name_not_valid",
442
+ cellStyle: (e) => typeof $ == "function" ? $({
443
+ rowData: e.row,
444
+ column: {
445
+ name: e.column.property,
446
+ head: e.column.label
447
+ },
448
+ rowIndex: e.rowIndex,
449
+ columnIndex: e.columnIndex
450
+ }) : typeof $ == "object" ? $ : {}
401
451
  }, {
402
- default: () => [P && G(), D && J(), j(k.value)]
403
- })]), r("div", {
452
+ default: () => [R && Z(), T && ee(), L(N.value)]
453
+ })]), a("div", {
404
454
  class: "pagination-wrapper"
405
- }, [r(se, {
455
+ }, [a(me, {
406
456
  currentPage: m.currentPage,
407
- "onUpdate:current-page": (t) => {
457
+ "onUpdate:current-page": (e) => {
408
458
  p("update:pagination", {
409
459
  ...m,
410
- currentPage: t
460
+ currentPage: e
411
461
  });
412
462
  },
413
463
  pageSize: m.pageSize,
414
464
  pageSizes: m.pageSizes,
415
- "onUpdate:page-size": (t) => {
465
+ "onUpdate:page-size": (e) => {
416
466
  p("update:pagination", {
417
467
  ...m,
418
- pageSize: t
468
+ pageSize: e
419
469
  });
420
470
  },
421
471
  total: m.total,
422
472
  layout: "total, ->, sizes, prev, pager, next, jumper",
423
- size: z
473
+ size: E,
474
+ teleported: x
424
475
  }, null)])]);
425
476
  };
426
477
  }
427
- }), Se = () => ({}), ye = /* @__PURE__ */ y({
478
+ }), ve = () => ({}), Be = /* @__PURE__ */ S({
428
479
  name: "OPagetableColumnIndex",
429
480
  inheritAttrs: !1,
430
- props: Se(),
431
- setup(o, {
432
- slots: f,
433
- attrs: b,
481
+ props: ve(),
482
+ setup(l, {
483
+ slots: h,
484
+ attrs: w,
434
485
  emit: p,
435
- expose: S
486
+ expose: C
436
487
  }) {
437
488
  return () => null;
438
489
  }
439
- }), Pe = () => ({
440
- head: l(),
441
- headAlign: l(),
442
- name: l(),
443
- width: i([Boolean, String]),
444
- fixed: i([Boolean, String]),
445
- tail: i([Boolean, String])
446
- }), xe = /* @__PURE__ */ y({
490
+ }), De = () => ({
491
+ head: n(),
492
+ headAlign: n(),
493
+ bodyAlign: n(),
494
+ name: n(),
495
+ width: r([Boolean, String]),
496
+ fixed: r([Boolean, String]),
497
+ tail: r([Boolean, String])
498
+ }), Te = /* @__PURE__ */ S({
447
499
  name: "OPagetableColumnString",
448
500
  inheritAttrs: !1,
449
- props: Pe(),
450
- setup(o, {
451
- slots: f,
452
- attrs: b,
501
+ props: De(),
502
+ setup(l, {
503
+ slots: h,
504
+ attrs: w,
453
505
  emit: p,
454
- expose: S
506
+ expose: C
455
507
  }) {
456
508
  return () => null;
457
509
  }
458
- }), Ae = () => ({
459
- head: l(),
460
- headAlign: l(),
461
- name: l(),
462
- width: i([Boolean, String]),
463
- fixed: i([Boolean, String]),
464
- tail: i([Boolean, String])
465
- }), Oe = /* @__PURE__ */ y({
510
+ }), Ne = () => ({
511
+ head: n(),
512
+ headAlign: n(),
513
+ bodyAlign: n(),
514
+ name: n(),
515
+ width: r([Boolean, String]),
516
+ fixed: r([Boolean, String]),
517
+ tail: r([Boolean, String])
518
+ }), ke = /* @__PURE__ */ S({
466
519
  name: "OPagetableColumnLink",
467
520
  inheritAttrs: !1,
468
- props: Ae(),
469
- setup(o, {
470
- slots: f,
471
- attrs: b,
521
+ props: Ne(),
522
+ setup(l, {
523
+ slots: h,
524
+ attrs: w,
472
525
  emit: p,
473
- expose: S
526
+ expose: C
474
527
  }) {
475
528
  return () => null;
476
529
  }
477
- }), ve = () => ({
478
- head: l(),
479
- headAlign: l(),
480
- name: l(),
481
- width: i([Boolean, String]),
482
- fixed: i([Boolean, String]),
483
- tail: i([Boolean, String]),
484
- thousandsSeparator: N(!0),
485
- precision: de(-1),
486
- percentage: N(!1)
487
- }), Be = /* @__PURE__ */ y({
530
+ }), _e = () => ({
531
+ head: n(),
532
+ headAlign: n(),
533
+ bodyAlign: n(),
534
+ name: n(),
535
+ width: r([Boolean, String]),
536
+ fixed: r([Boolean, String]),
537
+ tail: r([Boolean, String]),
538
+ thousandsSeparator: k(!0),
539
+ precision: we(-1),
540
+ percentage: k(!1)
541
+ }), Re = /* @__PURE__ */ S({
488
542
  name: "OPagetableColumnNumber",
489
543
  inheritAttrs: !1,
490
- props: ve(),
491
- setup(o, {
492
- slots: f,
493
- attrs: b,
544
+ props: _e(),
545
+ setup(l, {
546
+ slots: h,
547
+ attrs: w,
494
548
  emit: p,
495
- expose: S
549
+ expose: C
496
550
  }) {
497
551
  return () => null;
498
552
  }
499
- }), De = () => ({
500
- head: l(),
501
- headAlign: l(),
502
- name: l(),
503
- width: i([Boolean, String]),
504
- fixed: i([Boolean, String]),
505
- tail: i([Boolean, String]),
553
+ }), Ie = () => ({
554
+ head: n(),
555
+ headAlign: n(),
556
+ bodyAlign: n(),
557
+ name: n(),
558
+ width: r([Boolean, String]),
559
+ fixed: r([Boolean, String]),
560
+ tail: r([Boolean, String]),
506
561
  // Date
507
- format: l(),
508
- sourceFormat: l()
509
- }), ke = /* @__PURE__ */ y({
562
+ format: n(),
563
+ sourceFormat: n()
564
+ }), Me = /* @__PURE__ */ S({
510
565
  name: "OPagetableColumnDate",
511
566
  inheritAttrs: !1,
512
- props: De(),
513
- setup(o, {
514
- slots: f,
515
- attrs: b,
567
+ props: Ie(),
568
+ setup(l, {
569
+ slots: h,
570
+ attrs: w,
516
571
  emit: p,
517
- expose: S
572
+ expose: C
518
573
  }) {
519
574
  return () => null;
520
575
  }
521
- }), Te = () => ({
522
- head: l(),
523
- headAlign: l(),
524
- name: l(),
525
- width: i([Boolean, String]),
526
- fixed: i([Boolean, String]),
527
- tail: i([Boolean, String]),
528
- code: i([String, Array])
529
- }), Re = /* @__PURE__ */ y({
576
+ }), je = () => ({
577
+ head: n(),
578
+ headAlign: n(),
579
+ bodyAlign: n(),
580
+ name: n(),
581
+ width: r([Boolean, String]),
582
+ fixed: r([Boolean, String]),
583
+ tail: r([Boolean, String]),
584
+ code: r([String, Array])
585
+ }), ze = /* @__PURE__ */ S({
530
586
  name: "OPagetableColumnSingleselect",
531
587
  inheritAttrs: !1,
532
- props: Te(),
533
- setup(o, {
534
- slots: f,
535
- attrs: b,
588
+ props: je(),
589
+ setup(l, {
590
+ slots: h,
591
+ attrs: w,
536
592
  emit: p,
537
- expose: S
593
+ expose: C
538
594
  }) {
539
595
  return () => null;
540
596
  }
541
- }), Ne = () => ({
542
- head: l(),
543
- headAlign: l(),
544
- name: l(),
545
- width: i([Boolean, String]),
546
- fixed: i([Boolean, String]),
547
- tail: i([Boolean, String]),
548
- code: i([String, Array])
549
- }), _e = /* @__PURE__ */ y({
597
+ }), $e = () => ({
598
+ head: n(),
599
+ headAlign: n(),
600
+ bodyAlign: n(),
601
+ name: n(),
602
+ width: r([Boolean, String]),
603
+ fixed: r([Boolean, String]),
604
+ tail: r([Boolean, String]),
605
+ code: r([String, Array])
606
+ }), Ve = /* @__PURE__ */ S({
550
607
  name: "OPagetableColumnMultiselect",
551
608
  inheritAttrs: !1,
552
- props: Ne(),
553
- setup(o, {
554
- slots: f,
555
- attrs: b,
609
+ props: $e(),
610
+ setup(l, {
611
+ slots: h,
612
+ attrs: w,
556
613
  emit: p,
557
- expose: S
614
+ expose: C
558
615
  }) {
559
616
  return () => null;
560
617
  }
561
- }), Me = () => ({
562
- head: l(),
563
- headAlign: l(),
564
- name: l(),
565
- width: i([Boolean, String]),
566
- fixed: i([Boolean, String]),
567
- tail: i([Boolean, String])
568
- }), ze = /* @__PURE__ */ y({
618
+ }), Ee = () => ({
619
+ head: n(),
620
+ headAlign: n(),
621
+ bodyAlign: n(),
622
+ name: n(),
623
+ width: r([Boolean, String]),
624
+ fixed: r([Boolean, String]),
625
+ tail: r([Boolean, String])
626
+ }), Le = /* @__PURE__ */ S({
569
627
  name: "OPagetableColumnButtongroup",
570
628
  inheritAttrs: !1,
571
- props: Me(),
629
+ props: Ee(),
572
630
  slots: Object,
573
- setup(o, {
574
- slots: f,
575
- attrs: b,
631
+ setup(l, {
632
+ slots: h,
633
+ attrs: w,
576
634
  emit: p,
577
- expose: S
635
+ expose: C
578
636
  }) {
579
637
  return () => null;
580
638
  }
581
639
  });
582
- function je(o) {
583
- return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !F(o);
640
+ function Ye(l) {
641
+ return typeof l == "function" || Object.prototype.toString.call(l) === "[object Object]" && !J(l);
584
642
  }
585
- const Ie = () => ({
586
- type: l()
587
- }), $e = /* @__PURE__ */ y({
643
+ const Fe = () => ({
644
+ type: n()
645
+ }), He = /* @__PURE__ */ S({
588
646
  name: "OPagetableCellButton",
589
647
  inheritAttrs: !1,
590
- props: Ie(),
648
+ props: Fe(),
591
649
  emits: ["click"],
592
- setup(o, {
593
- slots: f,
594
- attrs: b,
650
+ setup(l, {
651
+ slots: h,
652
+ attrs: w,
595
653
  emit: p,
596
- expose: S
654
+ expose: C
597
655
  }) {
598
- const A = (T) => {
599
- p("click", T);
656
+ const O = (_) => {
657
+ p("click", _);
600
658
  };
601
659
  return () => {
602
- var _;
660
+ var I;
603
661
  const {
604
- type: T
605
- } = o, k = (_ = f.default) == null ? void 0 : _.call(f);
606
- return r(ue, {
662
+ type: _
663
+ } = l, N = (I = h.default) == null ? void 0 : I.call(h);
664
+ return a(fe, {
607
665
  link: !0,
608
- type: T,
666
+ type: _,
609
667
  size: "small",
610
- onClick: A
611
- }, je(k) ? k : {
612
- default: () => [k]
668
+ onClick: O
669
+ }, Ye(N) ? N : {
670
+ default: () => [N]
613
671
  });
614
672
  };
615
673
  }
616
- }), Ve = () => ({
617
- head: l(),
618
- headAlign: l()
619
- }), Ee = /* @__PURE__ */ y({
674
+ }), Ue = () => ({
675
+ head: n(),
676
+ headAlign: n()
677
+ }), qe = /* @__PURE__ */ S({
620
678
  name: "OPagetableColumngroup",
621
679
  inheritAttrs: !1,
622
- props: Ve(),
623
- setup(o, {
624
- slots: f,
625
- attrs: b,
680
+ props: Ue(),
681
+ setup(l, {
682
+ slots: h,
683
+ attrs: w,
626
684
  emit: p,
627
- expose: S
685
+ expose: C
628
686
  }) {
629
687
  return () => null;
630
688
  }
631
- }), Le = () => ({
632
- head: l(),
633
- headAlign: l(),
634
- name: l(),
635
- width: i([Boolean, String]),
636
- fixed: i([Boolean, String]),
637
- tail: i([Boolean, String])
638
- }), Ye = /* @__PURE__ */ y({
689
+ }), Ge = () => ({
690
+ head: n(),
691
+ headAlign: n(),
692
+ name: n(),
693
+ width: r([Boolean, String]),
694
+ fixed: r([Boolean, String]),
695
+ tail: r([Boolean, String])
696
+ }), Je = /* @__PURE__ */ S({
639
697
  name: "OPagetableColumnDiy",
640
698
  inheritAttrs: !1,
641
- props: Le(),
699
+ props: Ge(),
642
700
  slots: Object,
643
- setup(o, {
644
- slots: f,
645
- attrs: b,
701
+ setup(l, {
702
+ slots: h,
703
+ attrs: w,
646
704
  emit: p,
647
- expose: S
705
+ expose: C
648
706
  }) {
649
707
  return () => null;
650
708
  }
651
- }), it = ae(Ce, {
652
- PagetableColumnIndex: ye,
653
- PagetableColumnString: xe,
654
- PagetableColumnLink: Oe,
655
- PagetableColumnNumber: Be,
656
- PagetableColumnDate: ke,
657
- PagetableColumnSingleselect: Re,
658
- PagetableColumnMultiselect: _e,
659
- PagetableColumnButtongroup: ze,
660
- PagetableCellButton: $e,
661
- PagetableColumngroup: Ee,
662
- PagetableColumnDiy: Ye
709
+ }), gt = de(Oe, {
710
+ PagetableColumnIndex: Be,
711
+ PagetableColumnString: Te,
712
+ PagetableColumnLink: ke,
713
+ PagetableColumnNumber: Re,
714
+ PagetableColumnDate: Me,
715
+ PagetableColumnSingleselect: ze,
716
+ PagetableColumnMultiselect: Ve,
717
+ PagetableColumnButtongroup: Le,
718
+ PagetableCellButton: He,
719
+ PagetableColumngroup: qe,
720
+ PagetableColumnDiy: Je
663
721
  });
664
722
  export {
665
- it as default
723
+ gt as default
666
724
  };
667
725
  //# sourceMappingURL=index.js.map