orion-design 0.1.28 → 0.1.30

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