orion-design 0.1.32 → 0.1.34

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