@onereach/ui-components 26.3.2 → 26.3.3-beta.5867.0
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.
- package/dist/esm/{OrDataGrid-MuOX0_U6.mjs → OrDataGrid-CCz56Bn1.mjs} +473 -438
- package/dist/esm/OrDataGrid-CCz56Bn1.mjs.map +1 -0
- package/dist/esm/components/index.mjs +1 -1
- package/dist/esm/components/or-data-grid-v3/index.mjs +1 -1
- package/dist/esm/index.mjs +1 -1
- package/dist/types/components/or-data-grid-v3/partials/or-data-grid-table-content-cell/OrDataGridTableContentCell.vue.d.ts +8 -8
- package/dist/types/components/or-data-grid-v3/types.d.ts +2 -1
- package/package.json +4 -5
- package/dist/esm/OrDataGrid-MuOX0_U6.mjs.map +0 -1
|
@@ -2,8 +2,8 @@ import { O as X } from "./OrCheckbox-WPBzlvaV.mjs";
|
|
|
2
2
|
import { O as Y } from "./OrPagination-BXzDa-Su.mjs";
|
|
3
3
|
import { O as Z } from "./OrSearch-CRFuNmg2.mjs";
|
|
4
4
|
import { O as _ } from "./OrSkeletonArea.vue_vue_type_script_lang-jgRhbZ0X.mjs";
|
|
5
|
-
import { defineComponent as
|
|
6
|
-
import { _ as
|
|
5
|
+
import { defineComponent as T, ref as G, computed as n, openBlock as o, createElementBlock as v, normalizeClass as u, renderSlot as i, createCommentVNode as g, resolveComponent as d, normalizeStyle as N, Fragment as H, createBlock as p, watch as x, createElementVNode as ee, createVNode as M, mergeProps as te, withCtx as f, createSlots as K, normalizeProps as ae, guardReactiveProps as oe, renderList as P, createTextVNode as Q, toDisplayString as W } from "vue";
|
|
6
|
+
import { _ as C } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
7
7
|
import { O as re } from "./OrDatePicker-D-Do0tSf.mjs";
|
|
8
8
|
import { O as ne } from "./OrDateTimePicker-myqJkQxy.mjs";
|
|
9
9
|
import "./OrDateTimePicker.vue_vue_type_script_lang-xnGNoSUB.mjs";
|
|
@@ -34,13 +34,13 @@ const ge = [
|
|
|
34
34
|
], ve = [
|
|
35
35
|
// Typography
|
|
36
36
|
"typography-body-2-semibold"
|
|
37
|
-
],
|
|
37
|
+
], he = T({
|
|
38
38
|
name: "OrDataGridFooter",
|
|
39
39
|
expose: [
|
|
40
40
|
"root"
|
|
41
41
|
],
|
|
42
42
|
setup() {
|
|
43
|
-
const e =
|
|
43
|
+
const e = G(), t = n(() => [
|
|
44
44
|
"or-data-grid-footer-v3",
|
|
45
45
|
...ge
|
|
46
46
|
]), r = n(() => [
|
|
@@ -52,27 +52,27 @@ const ge = [
|
|
|
52
52
|
statusStyles: r
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
|
-
}),
|
|
55
|
+
}), be = {
|
|
56
56
|
key: 1,
|
|
57
57
|
class: /* @__PURE__ */ u(["grow"])
|
|
58
58
|
};
|
|
59
|
-
function ye(e, t, r,
|
|
60
|
-
return
|
|
59
|
+
function ye(e, t, r, m, h, b) {
|
|
60
|
+
return o(), v("div", {
|
|
61
61
|
ref: "root",
|
|
62
62
|
class: u(e.rootStyles)
|
|
63
63
|
}, [
|
|
64
|
-
e.$slots.status ? (
|
|
64
|
+
e.$slots.status ? (o(), v("div", {
|
|
65
65
|
key: 0,
|
|
66
66
|
class: u(e.statusStyles)
|
|
67
67
|
}, [
|
|
68
|
-
|
|
69
|
-
], 2)) :
|
|
70
|
-
|
|
71
|
-
e.$slots.paging ? (
|
|
72
|
-
|
|
68
|
+
i(e.$slots, "status")
|
|
69
|
+
], 2)) : g("", !0),
|
|
70
|
+
i(e.$slots, "actions"),
|
|
71
|
+
e.$slots.paging ? (o(), v("div", be)) : g("", !0),
|
|
72
|
+
i(e.$slots, "paging")
|
|
73
73
|
], 2);
|
|
74
74
|
}
|
|
75
|
-
const ke = /* @__PURE__ */
|
|
75
|
+
const ke = /* @__PURE__ */ C(he, [["render", ye]]), Oe = [
|
|
76
76
|
// Layout
|
|
77
77
|
"layout-row items-start gap-md",
|
|
78
78
|
// Interactivity
|
|
@@ -82,13 +82,13 @@ const ke = /* @__PURE__ */ T(be, [["render", ye]]), Oe = [
|
|
|
82
82
|
], $e = [
|
|
83
83
|
// Typography
|
|
84
84
|
"typography-headline-2"
|
|
85
|
-
], De =
|
|
85
|
+
], De = T({
|
|
86
86
|
name: "OrDataGridHeader",
|
|
87
87
|
expose: [
|
|
88
88
|
"root"
|
|
89
89
|
],
|
|
90
90
|
setup() {
|
|
91
|
-
const e =
|
|
91
|
+
const e = G(), t = n(() => [
|
|
92
92
|
"or-data-grid-header-v3",
|
|
93
93
|
...Oe
|
|
94
94
|
]), r = n(() => [
|
|
@@ -104,25 +104,27 @@ const ke = /* @__PURE__ */ T(be, [["render", ye]]), Oe = [
|
|
|
104
104
|
key: 1,
|
|
105
105
|
class: /* @__PURE__ */ u(["grow"])
|
|
106
106
|
};
|
|
107
|
-
function Ge(e, t, r,
|
|
108
|
-
return
|
|
107
|
+
function Ge(e, t, r, m, h, b) {
|
|
108
|
+
return o(), v("div", {
|
|
109
109
|
ref: "root",
|
|
110
110
|
class: u(e.rootStyles)
|
|
111
111
|
}, [
|
|
112
|
-
e.$slots.title ? (
|
|
112
|
+
e.$slots.title ? (o(), v("div", {
|
|
113
113
|
key: 0,
|
|
114
114
|
class: u(e.titleStyles)
|
|
115
115
|
}, [
|
|
116
|
-
|
|
117
|
-
], 2)) :
|
|
118
|
-
e.$slots.searching || e.$slots.extraActions ? (
|
|
119
|
-
|
|
120
|
-
e.$slots.extraActions ?
|
|
116
|
+
i(e.$slots, "title")
|
|
117
|
+
], 2)) : g("", !0),
|
|
118
|
+
e.$slots.searching || e.$slots.extraActions ? (o(), v("div", we)) : g("", !0),
|
|
119
|
+
i(e.$slots, "searching"),
|
|
120
|
+
e.$slots.extraActions ? i(e.$slots, "extraActions", { key: 2 }) : g("", !0)
|
|
121
121
|
], 2);
|
|
122
122
|
}
|
|
123
|
-
const
|
|
123
|
+
const Se = /* @__PURE__ */ C(De, [["render", Ge]]);
|
|
124
|
+
var c = /* @__PURE__ */ ((e) => (e.Standard = "standard", e.Comfortable = "comfortable", e.Compact = "compact", e.Dynamic = "dynamic", e))(c || {});
|
|
125
|
+
const Te = [
|
|
124
126
|
// Layout
|
|
125
|
-
"layout-row",
|
|
127
|
+
"layout-row items-center",
|
|
126
128
|
// Spacing
|
|
127
129
|
"px-sm+",
|
|
128
130
|
"py-0",
|
|
@@ -148,7 +150,7 @@ const Te = /* @__PURE__ */ T(De, [["render", Ge]]), Se = [
|
|
|
148
150
|
"interactivity-select",
|
|
149
151
|
// Typography
|
|
150
152
|
"truncate"
|
|
151
|
-
], Ve =
|
|
153
|
+
], Ve = T({
|
|
152
154
|
name: "OrDataGridTableContentCell",
|
|
153
155
|
components: {
|
|
154
156
|
OrCheckbox: X,
|
|
@@ -167,6 +169,7 @@ const Te = /* @__PURE__ */ T(De, [["render", Ge]]), Se = [
|
|
|
167
169
|
},
|
|
168
170
|
props: {
|
|
169
171
|
modelValue: {
|
|
172
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
170
173
|
type: void 0,
|
|
171
174
|
default: void 0
|
|
172
175
|
},
|
|
@@ -178,9 +181,9 @@ const Te = /* @__PURE__ */ T(De, [["render", Ge]]), Se = [
|
|
|
178
181
|
type: Object,
|
|
179
182
|
default: void 0
|
|
180
183
|
},
|
|
181
|
-
|
|
182
|
-
type:
|
|
183
|
-
default:
|
|
184
|
+
variant: {
|
|
185
|
+
type: String,
|
|
186
|
+
default: c.Standard
|
|
184
187
|
}
|
|
185
188
|
},
|
|
186
189
|
emits: [
|
|
@@ -190,14 +193,15 @@ const Te = /* @__PURE__ */ T(De, [["render", Ge]]), Se = [
|
|
|
190
193
|
"root"
|
|
191
194
|
],
|
|
192
195
|
setup(e, t) {
|
|
193
|
-
const r =
|
|
194
|
-
var
|
|
196
|
+
const r = G(), m = n(() => {
|
|
197
|
+
var k;
|
|
195
198
|
return [
|
|
196
199
|
"or-data-grid-table-content-cell-v3",
|
|
197
|
-
...
|
|
198
|
-
...(
|
|
200
|
+
...Te,
|
|
201
|
+
...(k = e.column) != null && k.stickiness ? [`sticky-${e.column.stickiness}`] : [],
|
|
202
|
+
...e.variant === c.Dynamic ? ["!py-xs"] : []
|
|
199
203
|
];
|
|
200
|
-
}),
|
|
204
|
+
}), h = n(() => {
|
|
201
205
|
if (e.column)
|
|
202
206
|
switch (e.column.stickiness) {
|
|
203
207
|
case "start":
|
|
@@ -223,110 +227,113 @@ const Te = /* @__PURE__ */ T(De, [["render", Ge]]), Se = [
|
|
|
223
227
|
return {
|
|
224
228
|
justifyContent: "center"
|
|
225
229
|
};
|
|
226
|
-
}), b = n(() =>
|
|
227
|
-
|
|
228
|
-
|
|
230
|
+
}), b = n(() => {
|
|
231
|
+
var k, l, O, w, S;
|
|
232
|
+
return [
|
|
233
|
+
...Ce,
|
|
234
|
+
...((l = (k = e.column) == null ? void 0 : k.control) == null ? void 0 : l.type) !== "text" && ((w = (O = e.column) == null ? void 0 : O.control) == null ? void 0 : w.type) !== "number" ? [] : ["grow"],
|
|
235
|
+
...e.variant === c.Dynamic && !((S = e.column) != null && S.control) ? ["whitespace-pre-wrap break-words"] : ["truncate"]
|
|
236
|
+
];
|
|
237
|
+
}), $ = n({
|
|
229
238
|
get: () => e.modelValue,
|
|
230
|
-
set: (
|
|
231
|
-
t.emit("input",
|
|
239
|
+
set: (k) => {
|
|
240
|
+
t.emit("input", k);
|
|
232
241
|
}
|
|
233
|
-
}),
|
|
234
|
-
var
|
|
235
|
-
return (
|
|
242
|
+
}), D = n(() => {
|
|
243
|
+
var k;
|
|
244
|
+
return (k = e.column) == null ? void 0 : k.control;
|
|
236
245
|
});
|
|
237
246
|
return {
|
|
238
247
|
root: r,
|
|
239
|
-
rootStyles:
|
|
240
|
-
rootInlineStyles:
|
|
248
|
+
rootStyles: m,
|
|
249
|
+
rootInlineStyles: h,
|
|
241
250
|
contentStyles: b,
|
|
242
|
-
model:
|
|
243
|
-
control:
|
|
251
|
+
model: $,
|
|
252
|
+
control: D
|
|
244
253
|
};
|
|
245
254
|
}
|
|
246
255
|
});
|
|
247
|
-
function Me(e, t, r,
|
|
248
|
-
const
|
|
249
|
-
return
|
|
256
|
+
function Me(e, t, r, m, h, b) {
|
|
257
|
+
const $ = d("OrInput"), D = d("OrRating"), k = d("OrSelect"), l = d("OrCheckbox"), O = d("OrSwitch"), w = d("OrDatePicker"), S = d("OrTimePicker"), V = d("OrDateTimePicker"), I = d("OrTagInput");
|
|
258
|
+
return o(), v("div", {
|
|
250
259
|
ref: "root",
|
|
251
260
|
class: u(e.rootStyles),
|
|
252
261
|
style: N(e.rootInlineStyles)
|
|
253
262
|
}, [
|
|
254
|
-
e.override ?
|
|
255
|
-
e.control.type === "text" ? (
|
|
263
|
+
e.override ? i(e.$slots, "default", { key: 0 }) : e.control ? (o(), v(H, { key: 1 }, [
|
|
264
|
+
e.control.type === "text" ? (o(), p($, {
|
|
256
265
|
key: 0,
|
|
257
266
|
modelValue: e.model,
|
|
258
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
267
|
+
"onUpdate:modelValue": t[0] || (t[0] = (y) => e.model = y),
|
|
259
268
|
type: "text",
|
|
260
269
|
variant: "embedded"
|
|
261
|
-
}, null, 8, ["modelValue"])) :
|
|
262
|
-
e.control.type === "number" ? (
|
|
270
|
+
}, null, 8, ["modelValue"])) : g("", !0),
|
|
271
|
+
e.control.type === "number" ? (o(), p($, {
|
|
263
272
|
key: 1,
|
|
264
273
|
modelValue: e.model,
|
|
265
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
274
|
+
"onUpdate:modelValue": t[1] || (t[1] = (y) => e.model = y),
|
|
266
275
|
type: "number",
|
|
267
276
|
variant: "embedded"
|
|
268
|
-
}, null, 8, ["modelValue"])) :
|
|
269
|
-
e.control.type === "rating" ? (
|
|
277
|
+
}, null, 8, ["modelValue"])) : g("", !0),
|
|
278
|
+
e.control.type === "rating" ? (o(), p(D, {
|
|
270
279
|
key: 2,
|
|
271
280
|
modelValue: e.model,
|
|
272
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
273
|
-
}, null, 8, ["modelValue"])) :
|
|
274
|
-
e.control.type === "select" ? (
|
|
281
|
+
"onUpdate:modelValue": t[2] || (t[2] = (y) => e.model = y)
|
|
282
|
+
}, null, 8, ["modelValue"])) : g("", !0),
|
|
283
|
+
e.control.type === "select" ? (o(), p(k, {
|
|
275
284
|
key: 3,
|
|
276
285
|
modelValue: e.model,
|
|
277
|
-
"onUpdate:modelValue": t[3] || (t[3] = (
|
|
286
|
+
"onUpdate:modelValue": t[3] || (t[3] = (y) => e.model = y),
|
|
278
287
|
options: e.control.options,
|
|
279
288
|
variant: "embedded",
|
|
280
289
|
anchor: e.root
|
|
281
|
-
}, null, 8, ["modelValue", "options", "anchor"])) :
|
|
282
|
-
e.control.type === "checkbox" ? (
|
|
290
|
+
}, null, 8, ["modelValue", "options", "anchor"])) : g("", !0),
|
|
291
|
+
e.control.type === "checkbox" ? (o(), p(l, {
|
|
283
292
|
key: 4,
|
|
284
293
|
modelValue: e.model,
|
|
285
|
-
"onUpdate:modelValue": t[4] || (t[4] = (
|
|
286
|
-
}, null, 8, ["modelValue"])) :
|
|
287
|
-
e.control.type === "switch" ? (
|
|
294
|
+
"onUpdate:modelValue": t[4] || (t[4] = (y) => e.model = y)
|
|
295
|
+
}, null, 8, ["modelValue"])) : g("", !0),
|
|
296
|
+
e.control.type === "switch" ? (o(), p(O, {
|
|
288
297
|
key: 5,
|
|
289
298
|
modelValue: e.model,
|
|
290
|
-
"onUpdate:modelValue": t[5] || (t[5] = (
|
|
291
|
-
}, null, 8, ["modelValue"])) :
|
|
292
|
-
e.control.type === "date" ? (
|
|
299
|
+
"onUpdate:modelValue": t[5] || (t[5] = (y) => e.model = y)
|
|
300
|
+
}, null, 8, ["modelValue"])) : g("", !0),
|
|
301
|
+
e.control.type === "date" ? (o(), p(w, {
|
|
293
302
|
key: 6,
|
|
294
303
|
modelValue: e.model,
|
|
295
|
-
"onUpdate:modelValue": t[6] || (t[6] = (
|
|
304
|
+
"onUpdate:modelValue": t[6] || (t[6] = (y) => e.model = y),
|
|
296
305
|
variant: "embedded",
|
|
297
306
|
anchor: e.root
|
|
298
|
-
}, null, 8, ["modelValue", "anchor"])) :
|
|
299
|
-
e.control.type === "time" ? (
|
|
307
|
+
}, null, 8, ["modelValue", "anchor"])) : g("", !0),
|
|
308
|
+
e.control.type === "time" ? (o(), p(S, {
|
|
300
309
|
key: 7,
|
|
301
310
|
modelValue: e.model,
|
|
302
|
-
"onUpdate:modelValue": t[7] || (t[7] = (
|
|
311
|
+
"onUpdate:modelValue": t[7] || (t[7] = (y) => e.model = y),
|
|
303
312
|
variant: "embedded",
|
|
304
313
|
anchor: e.root
|
|
305
|
-
}, null, 8, ["modelValue", "anchor"])) :
|
|
306
|
-
e.control.type === "datetime" ? (
|
|
314
|
+
}, null, 8, ["modelValue", "anchor"])) : g("", !0),
|
|
315
|
+
e.control.type === "datetime" ? (o(), p(V, {
|
|
307
316
|
key: 8,
|
|
308
317
|
modelValue: e.model,
|
|
309
|
-
"onUpdate:modelValue": t[8] || (t[8] = (
|
|
318
|
+
"onUpdate:modelValue": t[8] || (t[8] = (y) => e.model = y),
|
|
310
319
|
variant: "embedded",
|
|
311
320
|
anchor: e.root
|
|
312
|
-
}, null, 8, ["modelValue", "anchor"])) :
|
|
313
|
-
e.control.type === "tags" ? (
|
|
321
|
+
}, null, 8, ["modelValue", "anchor"])) : g("", !0),
|
|
322
|
+
e.control.type === "tags" ? (o(), p(I, {
|
|
314
323
|
key: 9,
|
|
315
324
|
modelValue: e.model,
|
|
316
|
-
"onUpdate:modelValue": t[9] || (t[9] = (
|
|
325
|
+
"onUpdate:modelValue": t[9] || (t[9] = (y) => e.model = y),
|
|
317
326
|
variant: "embedded"
|
|
318
|
-
}, null, 8, ["modelValue"])) :
|
|
319
|
-
], 64)) : (
|
|
327
|
+
}, null, 8, ["modelValue"])) : g("", !0)
|
|
328
|
+
], 64)) : (o(), v("div", {
|
|
320
329
|
key: 2,
|
|
321
330
|
class: u(e.contentStyles)
|
|
322
331
|
}, [
|
|
323
|
-
|
|
332
|
+
i(e.$slots, "default")
|
|
324
333
|
], 2))
|
|
325
334
|
], 6);
|
|
326
335
|
}
|
|
327
|
-
const Re = /* @__PURE__ */
|
|
328
|
-
var y = /* @__PURE__ */ ((e) => (e.Standard = "standard", e.Comfortable = "comfortable", e.Compact = "compact", e))(y || {});
|
|
329
|
-
const Ie = [
|
|
336
|
+
const Re = /* @__PURE__ */ C(Ve, [["render", Me]]), Ie = [
|
|
330
337
|
// Layout
|
|
331
338
|
"grid grid-cols-[subgrid] col-span-full",
|
|
332
339
|
// Typography
|
|
@@ -349,19 +356,23 @@ const Ie = [
|
|
|
349
356
|
"children:hover:selected:theme-background-surface-3",
|
|
350
357
|
"dark:children:hover:selected:theme-background-surface-3-dark"
|
|
351
358
|
], Fe = {
|
|
352
|
-
[
|
|
359
|
+
[c.Standard]: [
|
|
353
360
|
// Box
|
|
354
361
|
"h-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
|
|
355
362
|
],
|
|
356
|
-
[
|
|
363
|
+
[c.Comfortable]: [
|
|
357
364
|
// Box
|
|
358
365
|
"h-[calc(theme(spacing.3xl)+theme(spacing.xs))]"
|
|
359
366
|
],
|
|
360
|
-
[
|
|
367
|
+
[c.Compact]: [
|
|
361
368
|
// Box
|
|
362
369
|
"h-[calc(theme(spacing.xl)+theme(spacing.xs))]"
|
|
370
|
+
],
|
|
371
|
+
[c.Dynamic]: [
|
|
372
|
+
// Box
|
|
373
|
+
"min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
|
|
363
374
|
]
|
|
364
|
-
}, He =
|
|
375
|
+
}, He = T({
|
|
365
376
|
name: "OrDataGridTableContentRow",
|
|
366
377
|
props: {
|
|
367
378
|
variant: {
|
|
@@ -381,7 +392,7 @@ const Ie = [
|
|
|
381
392
|
"root"
|
|
382
393
|
],
|
|
383
394
|
setup(e) {
|
|
384
|
-
const t =
|
|
395
|
+
const t = G(), r = n(() => [
|
|
385
396
|
"or-data-grid-table-content-row-v3",
|
|
386
397
|
...Ie,
|
|
387
398
|
...Fe[e.variant],
|
|
@@ -393,25 +404,25 @@ const Ie = [
|
|
|
393
404
|
};
|
|
394
405
|
}
|
|
395
406
|
}), Pe = ["selected"];
|
|
396
|
-
function je(e, t, r,
|
|
397
|
-
return
|
|
407
|
+
function je(e, t, r, m, h, b) {
|
|
408
|
+
return o(), v("div", {
|
|
398
409
|
ref: "root",
|
|
399
410
|
class: u(e.rootStyles),
|
|
400
411
|
selected: e.selected
|
|
401
412
|
}, [
|
|
402
|
-
|
|
413
|
+
i(e.$slots, "default")
|
|
403
414
|
], 10, Pe);
|
|
404
415
|
}
|
|
405
|
-
const Ee = /* @__PURE__ */
|
|
416
|
+
const Ee = /* @__PURE__ */ C(He, [["render", je]]), Ue = [
|
|
406
417
|
// Layout
|
|
407
418
|
"contents"
|
|
408
|
-
], Ne =
|
|
419
|
+
], Ne = T({
|
|
409
420
|
name: "OrDataGridTableContent",
|
|
410
421
|
expose: [
|
|
411
422
|
"root"
|
|
412
423
|
],
|
|
413
424
|
setup() {
|
|
414
|
-
const e =
|
|
425
|
+
const e = G(), t = n(() => [
|
|
415
426
|
"or-data-grid-table-content-v3",
|
|
416
427
|
...Ue
|
|
417
428
|
]);
|
|
@@ -421,15 +432,15 @@ const Ee = /* @__PURE__ */ T(He, [["render", je]]), Ue = [
|
|
|
421
432
|
};
|
|
422
433
|
}
|
|
423
434
|
});
|
|
424
|
-
function qe(e, t, r,
|
|
425
|
-
return
|
|
435
|
+
function qe(e, t, r, m, h, b) {
|
|
436
|
+
return o(), v("div", {
|
|
426
437
|
ref: "root",
|
|
427
438
|
class: u(e.rootStyles)
|
|
428
439
|
}, [
|
|
429
|
-
|
|
440
|
+
i(e.$slots, "default")
|
|
430
441
|
], 2);
|
|
431
442
|
}
|
|
432
|
-
const Ae = /* @__PURE__ */
|
|
443
|
+
const Ae = /* @__PURE__ */ C(Ne, [["render", qe]]), Le = [
|
|
433
444
|
// Layout
|
|
434
445
|
"layout-row",
|
|
435
446
|
// Spacing
|
|
@@ -439,13 +450,13 @@ const Ae = /* @__PURE__ */ T(Ne, [["render", qe]]), Le = [
|
|
|
439
450
|
// Theme
|
|
440
451
|
"theme-border-transparent border-1",
|
|
441
452
|
"dark:theme-border-transparent-dark"
|
|
442
|
-
], Be =
|
|
453
|
+
], Be = T({
|
|
443
454
|
name: "OrDataGridTableFooterCell",
|
|
444
455
|
expose: [
|
|
445
456
|
"root"
|
|
446
457
|
],
|
|
447
458
|
setup() {
|
|
448
|
-
const e =
|
|
459
|
+
const e = G(), t = n(() => [
|
|
449
460
|
"or-data-grid-table-footer-cell-v3",
|
|
450
461
|
...Le
|
|
451
462
|
]);
|
|
@@ -455,15 +466,15 @@ const Ae = /* @__PURE__ */ T(Ne, [["render", qe]]), Le = [
|
|
|
455
466
|
};
|
|
456
467
|
}
|
|
457
468
|
});
|
|
458
|
-
function ze(e, t, r,
|
|
459
|
-
return
|
|
469
|
+
function ze(e, t, r, m, h, b) {
|
|
470
|
+
return o(), v("div", {
|
|
460
471
|
ref: "root",
|
|
461
472
|
class: u(e.rootStyles)
|
|
462
473
|
}, [
|
|
463
|
-
|
|
474
|
+
i(e.$slots, "default")
|
|
464
475
|
], 2);
|
|
465
476
|
}
|
|
466
|
-
const Je = /* @__PURE__ */
|
|
477
|
+
const Je = /* @__PURE__ */ C(Be, [["render", ze]]), Ke = [
|
|
467
478
|
// Layout
|
|
468
479
|
"grid grid-cols-1",
|
|
469
480
|
// Typography
|
|
@@ -477,19 +488,23 @@ const Je = /* @__PURE__ */ T(Be, [["render", ze]]), Ke = [
|
|
|
477
488
|
"children:theme-background-default",
|
|
478
489
|
"dark:children:theme-background-default-dark"
|
|
479
490
|
], Qe = {
|
|
480
|
-
[
|
|
491
|
+
[c.Standard]: [
|
|
481
492
|
// Box
|
|
482
493
|
"h-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
|
|
483
494
|
],
|
|
484
|
-
[
|
|
495
|
+
[c.Comfortable]: [
|
|
485
496
|
// Box
|
|
486
497
|
"h-[calc(theme(spacing.3xl)+theme(spacing.xs))]"
|
|
487
498
|
],
|
|
488
|
-
[
|
|
499
|
+
[c.Compact]: [
|
|
489
500
|
// Box
|
|
490
501
|
"h-[calc(theme(spacing.xl)+theme(spacing.xs))]"
|
|
502
|
+
],
|
|
503
|
+
[c.Dynamic]: [
|
|
504
|
+
// Box
|
|
505
|
+
"min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
|
|
491
506
|
]
|
|
492
|
-
}, We =
|
|
507
|
+
}, We = T({
|
|
493
508
|
name: "OrDataGridTableFooterRow",
|
|
494
509
|
props: {
|
|
495
510
|
variant: {
|
|
@@ -501,7 +516,7 @@ const Je = /* @__PURE__ */ T(Be, [["render", ze]]), Ke = [
|
|
|
501
516
|
"root"
|
|
502
517
|
],
|
|
503
518
|
setup(e) {
|
|
504
|
-
const t =
|
|
519
|
+
const t = G(), r = n(() => [
|
|
505
520
|
"or-data-grid-table-footer-row-v3",
|
|
506
521
|
...Ke,
|
|
507
522
|
...Qe[e.variant]
|
|
@@ -512,24 +527,24 @@ const Je = /* @__PURE__ */ T(Be, [["render", ze]]), Ke = [
|
|
|
512
527
|
};
|
|
513
528
|
}
|
|
514
529
|
});
|
|
515
|
-
function Xe(e, t, r,
|
|
516
|
-
return
|
|
530
|
+
function Xe(e, t, r, m, h, b) {
|
|
531
|
+
return o(), v("div", {
|
|
517
532
|
ref: "root",
|
|
518
533
|
class: u(e.rootStyles)
|
|
519
534
|
}, [
|
|
520
|
-
|
|
535
|
+
i(e.$slots, "default")
|
|
521
536
|
], 2);
|
|
522
537
|
}
|
|
523
|
-
const Ye = /* @__PURE__ */
|
|
538
|
+
const Ye = /* @__PURE__ */ C(We, [["render", Xe]]), Ze = [
|
|
524
539
|
// Layout
|
|
525
540
|
"contents"
|
|
526
|
-
], _e =
|
|
541
|
+
], _e = T({
|
|
527
542
|
name: "OrDataGridTableFooter",
|
|
528
543
|
expose: [
|
|
529
544
|
"root"
|
|
530
545
|
],
|
|
531
546
|
setup() {
|
|
532
|
-
const e =
|
|
547
|
+
const e = G(), t = n(() => [
|
|
533
548
|
"or-data-grid-table-footer-v3",
|
|
534
549
|
...Ze
|
|
535
550
|
]);
|
|
@@ -539,15 +554,15 @@ const Ye = /* @__PURE__ */ T(We, [["render", Xe]]), Ze = [
|
|
|
539
554
|
};
|
|
540
555
|
}
|
|
541
556
|
});
|
|
542
|
-
function xe(e, t, r,
|
|
543
|
-
return
|
|
557
|
+
function xe(e, t, r, m, h, b) {
|
|
558
|
+
return o(), v("div", {
|
|
544
559
|
ref: "root",
|
|
545
560
|
class: u(e.rootStyles)
|
|
546
561
|
}, [
|
|
547
|
-
|
|
562
|
+
i(e.$slots, "default")
|
|
548
563
|
], 2);
|
|
549
564
|
}
|
|
550
|
-
const et = /* @__PURE__ */
|
|
565
|
+
const et = /* @__PURE__ */ C(_e, [["render", xe]]), tt = [
|
|
551
566
|
// Layout
|
|
552
567
|
"layout-row",
|
|
553
568
|
// Spacing
|
|
@@ -563,7 +578,7 @@ const et = /* @__PURE__ */ T(_e, [["render", xe]]), tt = [
|
|
|
563
578
|
// Theme (.sticky-end)
|
|
564
579
|
"[&.sticky-end]:border-s-disabled",
|
|
565
580
|
"dark:[&.sticky-end]:border-s-disabled-dark"
|
|
566
|
-
],
|
|
581
|
+
], at = T({
|
|
567
582
|
name: "OrDataGridTableHeaderCell",
|
|
568
583
|
components: {
|
|
569
584
|
OrIcon: me
|
|
@@ -595,16 +610,16 @@ const et = /* @__PURE__ */ T(_e, [["render", xe]]), tt = [
|
|
|
595
610
|
"root"
|
|
596
611
|
],
|
|
597
612
|
setup(e, t) {
|
|
598
|
-
const r =
|
|
599
|
-
var
|
|
600
|
-
return !!((
|
|
601
|
-
}),
|
|
602
|
-
var
|
|
613
|
+
const r = G(), m = n(() => {
|
|
614
|
+
var l, O, w;
|
|
615
|
+
return !!((l = e.features) != null && l.sorting) && !!((O = e.column) != null && O.name) && ((w = e.column) == null ? void 0 : w.sorting) !== !1;
|
|
616
|
+
}), h = n(() => {
|
|
617
|
+
var l;
|
|
603
618
|
return [
|
|
604
619
|
"or-data-grid-table-header-cell-v3",
|
|
605
620
|
...tt,
|
|
606
|
-
...(
|
|
607
|
-
...
|
|
621
|
+
...(l = e.column) != null && l.stickiness ? [`sticky-${e.column.stickiness}`] : [],
|
|
622
|
+
...m.value ? ["interactivity-click"] : []
|
|
608
623
|
];
|
|
609
624
|
}), b = n(() => {
|
|
610
625
|
if (e.column)
|
|
@@ -632,78 +647,78 @@ const et = /* @__PURE__ */ T(_e, [["render", xe]]), tt = [
|
|
|
632
647
|
return {
|
|
633
648
|
justifyContent: "center"
|
|
634
649
|
};
|
|
635
|
-
}),
|
|
650
|
+
}), $ = n({
|
|
636
651
|
get: () => {
|
|
637
|
-
var
|
|
638
|
-
if (
|
|
639
|
-
return ((
|
|
652
|
+
var l, O;
|
|
653
|
+
if (m.value)
|
|
654
|
+
return ((l = e.modelValue) == null ? void 0 : l.column) === ((O = e.column) == null ? void 0 : O.name) ? e.modelValue : void 0;
|
|
640
655
|
},
|
|
641
|
-
set: (
|
|
642
|
-
t.emit("update:modelValue",
|
|
656
|
+
set: (l) => {
|
|
657
|
+
t.emit("update:modelValue", l);
|
|
643
658
|
}
|
|
644
659
|
});
|
|
645
|
-
function
|
|
646
|
-
var
|
|
647
|
-
if (
|
|
648
|
-
if (
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
direction:
|
|
660
|
+
function D() {
|
|
661
|
+
var l;
|
|
662
|
+
if (m.value)
|
|
663
|
+
if ($.value)
|
|
664
|
+
$.value = {
|
|
665
|
+
...$.value,
|
|
666
|
+
direction: $.value.direction === "asc" ? "desc" : "asc"
|
|
652
667
|
};
|
|
653
668
|
else {
|
|
654
669
|
if (!e.column)
|
|
655
670
|
throw new Error("[OrDataGridTableHeaderCell]: `column` must be specified.");
|
|
656
|
-
|
|
657
|
-
column: ((
|
|
671
|
+
$.value = {
|
|
672
|
+
column: ((l = e.column) == null ? void 0 : l.name) || "_check",
|
|
658
673
|
direction: "asc"
|
|
659
674
|
};
|
|
660
675
|
}
|
|
661
676
|
}
|
|
662
|
-
const { width:
|
|
677
|
+
const { width: k } = fe(r, void 0, { box: "border-box" });
|
|
663
678
|
return x([
|
|
664
679
|
r,
|
|
665
|
-
|
|
680
|
+
k,
|
|
666
681
|
() => {
|
|
667
|
-
var
|
|
668
|
-
return (
|
|
682
|
+
var l;
|
|
683
|
+
return (l = e.column) == null ? void 0 : l.stickiness;
|
|
669
684
|
}
|
|
670
685
|
], ([
|
|
671
|
-
|
|
672
|
-
|
|
686
|
+
l,
|
|
687
|
+
O
|
|
673
688
|
], [
|
|
674
|
-
|
|
689
|
+
w
|
|
675
690
|
]) => {
|
|
676
|
-
|
|
691
|
+
w && w !== l && t.emit("remove:scrollOffset", w), t.emit("update:scrollOffset", l, O, e.column);
|
|
677
692
|
}), {
|
|
678
693
|
root: r,
|
|
679
|
-
rootStyles:
|
|
694
|
+
rootStyles: h,
|
|
680
695
|
rootInlineStyles: b,
|
|
681
|
-
isSortable:
|
|
682
|
-
model:
|
|
683
|
-
toggleSorting:
|
|
696
|
+
isSortable: m,
|
|
697
|
+
model: $,
|
|
698
|
+
toggleSorting: D
|
|
684
699
|
};
|
|
685
700
|
}
|
|
686
|
-
}),
|
|
701
|
+
}), ot = {
|
|
687
702
|
class: /* @__PURE__ */ u(["truncate"])
|
|
688
703
|
};
|
|
689
|
-
function rt(e, t, r,
|
|
690
|
-
const
|
|
691
|
-
return
|
|
704
|
+
function rt(e, t, r, m, h, b) {
|
|
705
|
+
const $ = d("OrIcon");
|
|
706
|
+
return o(), v("div", {
|
|
692
707
|
ref: "root",
|
|
693
708
|
class: u(e.rootStyles),
|
|
694
709
|
style: N(e.rootInlineStyles),
|
|
695
|
-
onClick: t[0] || (t[0] = (
|
|
710
|
+
onClick: t[0] || (t[0] = (D) => e.toggleSorting())
|
|
696
711
|
}, [
|
|
697
|
-
ee("div",
|
|
698
|
-
|
|
712
|
+
ee("div", ot, [
|
|
713
|
+
i(e.$slots, "default")
|
|
699
714
|
]),
|
|
700
|
-
e.model ? (
|
|
715
|
+
e.model ? (o(), p($, {
|
|
701
716
|
key: 0,
|
|
702
717
|
icon: e.model.direction === "asc" ? "arrow_upward" : "arrow_downward"
|
|
703
|
-
}, null, 8, ["icon"])) :
|
|
718
|
+
}, null, 8, ["icon"])) : g("", !0)
|
|
704
719
|
], 6);
|
|
705
720
|
}
|
|
706
|
-
const nt = /* @__PURE__ */
|
|
721
|
+
const nt = /* @__PURE__ */ C(at, [["render", rt]]), lt = [
|
|
707
722
|
// Position
|
|
708
723
|
"sticky top-0 z-10",
|
|
709
724
|
// Layout
|
|
@@ -716,19 +731,23 @@ const nt = /* @__PURE__ */ T(ot, [["render", rt]]), lt = [
|
|
|
716
731
|
"children:theme-background-surface-variant-1",
|
|
717
732
|
"dark:children:theme-background-surface-variant-1-dark"
|
|
718
733
|
], st = {
|
|
719
|
-
[
|
|
734
|
+
[c.Standard]: [
|
|
720
735
|
// Box
|
|
721
736
|
"h-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
|
|
722
737
|
],
|
|
723
|
-
[
|
|
738
|
+
[c.Comfortable]: [
|
|
724
739
|
// Box
|
|
725
740
|
"h-[calc(theme(spacing.3xl)+theme(spacing.xs))]"
|
|
726
741
|
],
|
|
727
|
-
[
|
|
742
|
+
[c.Compact]: [
|
|
728
743
|
// Box
|
|
729
744
|
"h-[calc(theme(spacing.xl)+theme(spacing.xs))]"
|
|
745
|
+
],
|
|
746
|
+
[c.Dynamic]: [
|
|
747
|
+
// Box
|
|
748
|
+
"min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
|
|
730
749
|
]
|
|
731
|
-
}, it =
|
|
750
|
+
}, it = T({
|
|
732
751
|
name: "OrDataGridTableHeaderRow",
|
|
733
752
|
props: {
|
|
734
753
|
variant: {
|
|
@@ -740,7 +759,7 @@ const nt = /* @__PURE__ */ T(ot, [["render", rt]]), lt = [
|
|
|
740
759
|
"root"
|
|
741
760
|
],
|
|
742
761
|
setup(e) {
|
|
743
|
-
const t =
|
|
762
|
+
const t = G(), r = n(() => [
|
|
744
763
|
"or-data-grid-table-header-row-v3",
|
|
745
764
|
...lt,
|
|
746
765
|
...st[e.variant]
|
|
@@ -751,24 +770,24 @@ const nt = /* @__PURE__ */ T(ot, [["render", rt]]), lt = [
|
|
|
751
770
|
};
|
|
752
771
|
}
|
|
753
772
|
});
|
|
754
|
-
function dt(e, t, r,
|
|
755
|
-
return
|
|
773
|
+
function dt(e, t, r, m, h, b) {
|
|
774
|
+
return o(), v("div", {
|
|
756
775
|
ref: "root",
|
|
757
776
|
class: u(e.rootStyles)
|
|
758
777
|
}, [
|
|
759
|
-
|
|
778
|
+
i(e.$slots, "default")
|
|
760
779
|
], 2);
|
|
761
780
|
}
|
|
762
|
-
const ut = /* @__PURE__ */
|
|
781
|
+
const ut = /* @__PURE__ */ C(it, [["render", dt]]), ct = [
|
|
763
782
|
// Layout
|
|
764
783
|
"contents"
|
|
765
|
-
], mt =
|
|
784
|
+
], mt = T({
|
|
766
785
|
name: "OrDataGridTableHeader",
|
|
767
786
|
expose: [
|
|
768
787
|
"root"
|
|
769
788
|
],
|
|
770
789
|
setup() {
|
|
771
|
-
const e =
|
|
790
|
+
const e = G(), t = n(() => [
|
|
772
791
|
"or-data-grid-table-header-v3",
|
|
773
792
|
...ct
|
|
774
793
|
]);
|
|
@@ -778,15 +797,15 @@ const ut = /* @__PURE__ */ T(it, [["render", dt]]), ct = [
|
|
|
778
797
|
};
|
|
779
798
|
}
|
|
780
799
|
});
|
|
781
|
-
function ft(e, t, r,
|
|
782
|
-
return
|
|
800
|
+
function ft(e, t, r, m, h, b) {
|
|
801
|
+
return o(), v("div", {
|
|
783
802
|
ref: "root",
|
|
784
803
|
class: u(e.rootStyles)
|
|
785
804
|
}, [
|
|
786
|
-
|
|
805
|
+
i(e.$slots, "default")
|
|
787
806
|
], 2);
|
|
788
807
|
}
|
|
789
|
-
const pt = /* @__PURE__ */
|
|
808
|
+
const pt = /* @__PURE__ */ C(mt, [["render", ft]]), gt = [
|
|
790
809
|
// Layout
|
|
791
810
|
"layout-row justify-center",
|
|
792
811
|
// Spacing
|
|
@@ -801,19 +820,23 @@ const pt = /* @__PURE__ */ T(mt, [["render", ft]]), gt = [
|
|
|
801
820
|
"theme-background-default",
|
|
802
821
|
"dark:theme-background-default-dark"
|
|
803
822
|
], vt = {
|
|
804
|
-
[
|
|
823
|
+
[c.Standard]: [
|
|
805
824
|
// Box
|
|
806
825
|
"min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
|
|
807
826
|
],
|
|
808
|
-
[
|
|
827
|
+
[c.Comfortable]: [
|
|
809
828
|
// Box
|
|
810
829
|
"min-h-[calc(theme(spacing.3xl)+theme(spacing.xs))]"
|
|
811
830
|
],
|
|
812
|
-
[
|
|
831
|
+
[c.Compact]: [
|
|
813
832
|
// Box
|
|
814
833
|
"min-h-[calc(theme(spacing.xl)+theme(spacing.xs))]"
|
|
834
|
+
],
|
|
835
|
+
[c.Dynamic]: [
|
|
836
|
+
// Box
|
|
837
|
+
"min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
|
|
815
838
|
]
|
|
816
|
-
},
|
|
839
|
+
}, ht = T({
|
|
817
840
|
name: "OrDataGridTablePlaceholder",
|
|
818
841
|
props: {
|
|
819
842
|
variant: {
|
|
@@ -825,7 +848,7 @@ const pt = /* @__PURE__ */ T(mt, [["render", ft]]), gt = [
|
|
|
825
848
|
"root"
|
|
826
849
|
],
|
|
827
850
|
setup(e) {
|
|
828
|
-
const t =
|
|
851
|
+
const t = G(), r = n(() => [
|
|
829
852
|
"or-data-grid-table-placeholder-v3",
|
|
830
853
|
...gt,
|
|
831
854
|
...vt[e.variant]
|
|
@@ -836,22 +859,22 @@ const pt = /* @__PURE__ */ T(mt, [["render", ft]]), gt = [
|
|
|
836
859
|
};
|
|
837
860
|
}
|
|
838
861
|
});
|
|
839
|
-
function
|
|
840
|
-
return
|
|
862
|
+
function bt(e, t, r, m, h, b) {
|
|
863
|
+
return o(), v("div", {
|
|
841
864
|
ref: "root",
|
|
842
865
|
class: u(e.rootStyles)
|
|
843
866
|
}, [
|
|
844
|
-
|
|
867
|
+
i(e.$slots, "default")
|
|
845
868
|
], 2);
|
|
846
869
|
}
|
|
847
|
-
const yt = /* @__PURE__ */
|
|
870
|
+
const yt = /* @__PURE__ */ C(ht, [["render", bt]]), kt = [
|
|
848
871
|
// Layout
|
|
849
872
|
"grid content-start",
|
|
850
873
|
// Overflow
|
|
851
874
|
"overflow-auto",
|
|
852
875
|
// Interactivity
|
|
853
876
|
"interactivity-default"
|
|
854
|
-
], Ot =
|
|
877
|
+
], Ot = T({
|
|
855
878
|
name: "OrDataGridTable",
|
|
856
879
|
props: {
|
|
857
880
|
columns: {
|
|
@@ -867,43 +890,43 @@ const yt = /* @__PURE__ */ T(bt, [["render", ht]]), kt = [
|
|
|
867
890
|
"root"
|
|
868
891
|
],
|
|
869
892
|
setup(e) {
|
|
870
|
-
const t =
|
|
893
|
+
const t = G(), r = n(() => [
|
|
871
894
|
"or-data-grid-table-v3",
|
|
872
895
|
...kt
|
|
873
|
-
]),
|
|
874
|
-
const
|
|
875
|
-
return e.features.selecting ? { gridTemplateColumns: `0fr ${
|
|
896
|
+
]), m = n(() => {
|
|
897
|
+
const h = e.columns.map((b) => b.width ?? "auto");
|
|
898
|
+
return e.features.selecting ? { gridTemplateColumns: `0fr ${h.join(" ")}` } : { gridTemplateColumns: h.join(" ") };
|
|
876
899
|
});
|
|
877
900
|
return {
|
|
878
901
|
root: t,
|
|
879
902
|
rootStyles: r,
|
|
880
|
-
rootInlineStyles:
|
|
903
|
+
rootInlineStyles: m
|
|
881
904
|
};
|
|
882
905
|
}
|
|
883
906
|
});
|
|
884
|
-
function $t(e, t, r,
|
|
885
|
-
return
|
|
907
|
+
function $t(e, t, r, m, h, b) {
|
|
908
|
+
return o(), v("div", {
|
|
886
909
|
ref: "root",
|
|
887
910
|
class: u(e.rootStyles),
|
|
888
911
|
style: N(e.rootInlineStyles)
|
|
889
912
|
}, [
|
|
890
|
-
|
|
913
|
+
i(e.$slots, "default")
|
|
891
914
|
], 6);
|
|
892
915
|
}
|
|
893
|
-
const Dt = /* @__PURE__ */
|
|
916
|
+
const Dt = /* @__PURE__ */ C(Ot, [["render", $t]]), wt = [
|
|
894
917
|
// Layout
|
|
895
918
|
"layout-row",
|
|
896
919
|
// Box
|
|
897
920
|
"h-2xl",
|
|
898
921
|
// Spacing
|
|
899
922
|
"gap-xl"
|
|
900
|
-
], Gt =
|
|
923
|
+
], Gt = T({
|
|
901
924
|
name: "OrDataGridToolbar",
|
|
902
925
|
expose: [
|
|
903
926
|
"root"
|
|
904
927
|
],
|
|
905
928
|
setup() {
|
|
906
|
-
const e =
|
|
929
|
+
const e = G(), t = n(() => [
|
|
907
930
|
"or-data-grid-toolbar-v3",
|
|
908
931
|
...wt
|
|
909
932
|
]);
|
|
@@ -913,33 +936,37 @@ const Dt = /* @__PURE__ */ T(Ot, [["render", $t]]), wt = [
|
|
|
913
936
|
};
|
|
914
937
|
}
|
|
915
938
|
});
|
|
916
|
-
function
|
|
917
|
-
return
|
|
939
|
+
function St(e, t, r, m, h, b) {
|
|
940
|
+
return o(), v("div", {
|
|
918
941
|
ref: "root",
|
|
919
942
|
class: u(e.rootStyles)
|
|
920
943
|
}, [
|
|
921
|
-
|
|
944
|
+
i(e.$slots, "default")
|
|
922
945
|
], 2);
|
|
923
946
|
}
|
|
924
|
-
const
|
|
947
|
+
const Tt = /* @__PURE__ */ C(Gt, [["render", St]]), Ct = [
|
|
925
948
|
// Position
|
|
926
949
|
"grid sticky z-10",
|
|
927
950
|
// Layout
|
|
928
951
|
"col-span-full"
|
|
929
952
|
], Vt = {
|
|
930
|
-
[
|
|
953
|
+
[c.Standard]: [
|
|
931
954
|
// Position
|
|
932
955
|
"top-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
|
|
933
956
|
],
|
|
934
|
-
[
|
|
957
|
+
[c.Comfortable]: [
|
|
935
958
|
// Position
|
|
936
959
|
"top-[calc(theme(spacing.3xl)+theme(spacing.xs))]"
|
|
937
960
|
],
|
|
938
|
-
[
|
|
961
|
+
[c.Compact]: [
|
|
939
962
|
// Position
|
|
940
963
|
"top-[calc(theme(spacing.xl)+theme(spacing.xs))]"
|
|
964
|
+
],
|
|
965
|
+
[c.Dynamic]: [
|
|
966
|
+
// Position
|
|
967
|
+
"top-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
|
|
941
968
|
]
|
|
942
|
-
}, Mt =
|
|
969
|
+
}, Mt = T({
|
|
943
970
|
components: {
|
|
944
971
|
OrNotification: pe
|
|
945
972
|
},
|
|
@@ -966,23 +993,23 @@ const St = /* @__PURE__ */ T(Gt, [["render", Tt]]), Ct = [
|
|
|
966
993
|
};
|
|
967
994
|
}
|
|
968
995
|
});
|
|
969
|
-
function Rt(e, t, r,
|
|
970
|
-
const
|
|
971
|
-
return
|
|
996
|
+
function Rt(e, t, r, m, h, b) {
|
|
997
|
+
const $ = d("OrNotification");
|
|
998
|
+
return o(), v("div", {
|
|
972
999
|
class: u(e.rootStyles)
|
|
973
1000
|
}, [
|
|
974
|
-
M(
|
|
1001
|
+
M($, te(e.notification, {
|
|
975
1002
|
class: "rounded-0 shadow-none",
|
|
976
|
-
onClose: t[0] || (t[0] = (
|
|
1003
|
+
onClose: t[0] || (t[0] = (D) => e.$emit("close-notification"))
|
|
977
1004
|
}), {
|
|
978
|
-
default:
|
|
979
|
-
e.$slots.notification ?
|
|
1005
|
+
default: f(() => [
|
|
1006
|
+
e.$slots.notification ? i(e.$slots, "notification", { key: 0 }) : g("", !0)
|
|
980
1007
|
]),
|
|
981
1008
|
_: 3
|
|
982
1009
|
}, 16)
|
|
983
1010
|
], 2);
|
|
984
1011
|
}
|
|
985
|
-
const It = /* @__PURE__ */
|
|
1012
|
+
const It = /* @__PURE__ */ C(Mt, [["render", Rt]]), Ft = [
|
|
986
1013
|
// Layout
|
|
987
1014
|
"grid col-span-full grid-cols-[subgrid]",
|
|
988
1015
|
// Typography
|
|
@@ -996,19 +1023,23 @@ const It = /* @__PURE__ */ T(Mt, [["render", Rt]]), Ft = [
|
|
|
996
1023
|
"children:theme-background-default",
|
|
997
1024
|
"dark:children:theme-background-default-dark"
|
|
998
1025
|
], Ht = {
|
|
999
|
-
[
|
|
1026
|
+
[c.Standard]: [
|
|
1000
1027
|
// Box
|
|
1001
1028
|
"h-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
|
|
1002
1029
|
],
|
|
1003
|
-
[
|
|
1030
|
+
[c.Comfortable]: [
|
|
1004
1031
|
// Box
|
|
1005
1032
|
"h-[calc(theme(spacing.3xl)+theme(spacing.xs))]"
|
|
1006
1033
|
],
|
|
1007
|
-
[
|
|
1034
|
+
[c.Compact]: [
|
|
1008
1035
|
// Box
|
|
1009
1036
|
"h-[calc(theme(spacing.xl)+theme(spacing.xs))]"
|
|
1037
|
+
],
|
|
1038
|
+
[c.Dynamic]: [
|
|
1039
|
+
// Box
|
|
1040
|
+
"min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
|
|
1010
1041
|
]
|
|
1011
|
-
}, Pt =
|
|
1042
|
+
}, Pt = T({
|
|
1012
1043
|
name: "OrDataGridTableExtraRow",
|
|
1013
1044
|
props: {
|
|
1014
1045
|
variant: {
|
|
@@ -1020,7 +1051,7 @@ const It = /* @__PURE__ */ T(Mt, [["render", Rt]]), Ft = [
|
|
|
1020
1051
|
"root"
|
|
1021
1052
|
],
|
|
1022
1053
|
setup(e) {
|
|
1023
|
-
const t =
|
|
1054
|
+
const t = G(), r = n(() => [
|
|
1024
1055
|
"or-data-grid-table-extra-row-v3",
|
|
1025
1056
|
...Ft,
|
|
1026
1057
|
...Ht[e.variant]
|
|
@@ -1031,23 +1062,23 @@ const It = /* @__PURE__ */ T(Mt, [["render", Rt]]), Ft = [
|
|
|
1031
1062
|
};
|
|
1032
1063
|
}
|
|
1033
1064
|
});
|
|
1034
|
-
function jt(e, t, r,
|
|
1035
|
-
return
|
|
1065
|
+
function jt(e, t, r, m, h, b) {
|
|
1066
|
+
return o(), v("div", {
|
|
1036
1067
|
ref: "root",
|
|
1037
1068
|
class: u(e.rootStyles)
|
|
1038
1069
|
}, [
|
|
1039
|
-
|
|
1070
|
+
i(e.$slots, "default")
|
|
1040
1071
|
], 2);
|
|
1041
1072
|
}
|
|
1042
|
-
const Et = /* @__PURE__ */
|
|
1073
|
+
const Et = /* @__PURE__ */ C(Pt, [["render", jt]]), Ut = [
|
|
1043
1074
|
// Layout
|
|
1044
1075
|
"layout-column"
|
|
1045
|
-
], Nt =
|
|
1076
|
+
], Nt = T({
|
|
1046
1077
|
name: "OrDataGrid",
|
|
1047
1078
|
components: {
|
|
1048
1079
|
OrCheckbox: X,
|
|
1049
1080
|
OrDataGridFooter: ke,
|
|
1050
|
-
OrDataGridHeader:
|
|
1081
|
+
OrDataGridHeader: Se,
|
|
1051
1082
|
OrDataGridTable: Dt,
|
|
1052
1083
|
OrDataGridTableContent: Ae,
|
|
1053
1084
|
OrDataGridTableContentCell: Re,
|
|
@@ -1060,7 +1091,7 @@ const Et = /* @__PURE__ */ T(Pt, [["render", jt]]), Ut = [
|
|
|
1060
1091
|
OrDataGridTableHeaderCell: nt,
|
|
1061
1092
|
OrDataGridTableHeaderRow: ut,
|
|
1062
1093
|
OrDataGridTablePlaceholder: yt,
|
|
1063
|
-
OrDataGridToolbar:
|
|
1094
|
+
OrDataGridToolbar: Tt,
|
|
1064
1095
|
OrDataGridNotification: It,
|
|
1065
1096
|
OrPagination: Y,
|
|
1066
1097
|
OrSearch: Z,
|
|
@@ -1085,7 +1116,7 @@ const Et = /* @__PURE__ */ T(Pt, [["render", jt]]), Ut = [
|
|
|
1085
1116
|
},
|
|
1086
1117
|
variant: {
|
|
1087
1118
|
type: String,
|
|
1088
|
-
default: () =>
|
|
1119
|
+
default: () => c.Standard
|
|
1089
1120
|
},
|
|
1090
1121
|
features: {
|
|
1091
1122
|
type: Object,
|
|
@@ -1118,203 +1149,203 @@ const Et = /* @__PURE__ */ T(Pt, [["render", jt]]), Ut = [
|
|
|
1118
1149
|
"root"
|
|
1119
1150
|
],
|
|
1120
1151
|
setup(e, t) {
|
|
1121
|
-
const r =
|
|
1152
|
+
const r = G(), m = G(), h = n(() => [
|
|
1122
1153
|
"or-data-grid-v3",
|
|
1123
1154
|
...Ut
|
|
1124
1155
|
]), b = n(() => ({
|
|
1125
|
-
scrollPaddingInlineStart: `${[...
|
|
1126
|
-
scrollPaddingInlineEnd: `${[...V.value.values()].reduce((
|
|
1127
|
-
})),
|
|
1128
|
-
get: () => !!e.items.length && e.items.every((
|
|
1129
|
-
set: (
|
|
1130
|
-
|
|
1156
|
+
scrollPaddingInlineStart: `${[...S.value.values()].reduce((a, s) => a + s, 0)}px`,
|
|
1157
|
+
scrollPaddingInlineEnd: `${[...V.value.values()].reduce((a, s) => a + s, 0)}px`
|
|
1158
|
+
})), $ = n({
|
|
1159
|
+
get: () => !!e.items.length && e.items.every((a) => D.value.includes(a.id)),
|
|
1160
|
+
set: (a) => {
|
|
1161
|
+
a ? D.value = [
|
|
1131
1162
|
.../* @__PURE__ */ new Set([
|
|
1132
|
-
...
|
|
1133
|
-
...e.items.map((
|
|
1163
|
+
...D.value,
|
|
1164
|
+
...e.items.map((s) => s.id)
|
|
1134
1165
|
])
|
|
1135
|
-
] :
|
|
1166
|
+
] : D.value = [];
|
|
1136
1167
|
}
|
|
1137
|
-
}),
|
|
1168
|
+
}), D = n({
|
|
1138
1169
|
get: () => {
|
|
1139
|
-
var
|
|
1140
|
-
return ((
|
|
1170
|
+
var a;
|
|
1171
|
+
return ((a = e.modelValue) == null ? void 0 : a.selecting) ?? [];
|
|
1141
1172
|
},
|
|
1142
|
-
set: (
|
|
1173
|
+
set: (a) => {
|
|
1143
1174
|
t.emit("update:modelValue", {
|
|
1144
|
-
selecting:
|
|
1145
|
-
filtering:
|
|
1146
|
-
searching:
|
|
1147
|
-
sorting:
|
|
1148
|
-
paging:
|
|
1175
|
+
selecting: a,
|
|
1176
|
+
filtering: k.value,
|
|
1177
|
+
searching: l.value,
|
|
1178
|
+
sorting: O.value,
|
|
1179
|
+
paging: w.value
|
|
1149
1180
|
});
|
|
1150
1181
|
}
|
|
1151
|
-
}),
|
|
1182
|
+
}), k = n({
|
|
1152
1183
|
get: () => {
|
|
1153
|
-
var
|
|
1154
|
-
return (
|
|
1184
|
+
var a;
|
|
1185
|
+
return (a = e.modelValue) == null ? void 0 : a.filtering;
|
|
1155
1186
|
},
|
|
1156
|
-
set: (
|
|
1187
|
+
set: (a) => {
|
|
1157
1188
|
t.emit("update:modelValue", {
|
|
1158
|
-
selecting:
|
|
1159
|
-
filtering:
|
|
1160
|
-
searching:
|
|
1161
|
-
sorting:
|
|
1189
|
+
selecting: D.value,
|
|
1190
|
+
filtering: a,
|
|
1191
|
+
searching: l.value,
|
|
1192
|
+
sorting: O.value,
|
|
1162
1193
|
paging: {
|
|
1163
|
-
...
|
|
1194
|
+
...w.value,
|
|
1164
1195
|
offset: 0
|
|
1165
1196
|
}
|
|
1166
1197
|
});
|
|
1167
1198
|
}
|
|
1168
|
-
}),
|
|
1199
|
+
}), l = n({
|
|
1169
1200
|
get: () => {
|
|
1170
|
-
var
|
|
1171
|
-
return (
|
|
1201
|
+
var a;
|
|
1202
|
+
return (a = e.modelValue) == null ? void 0 : a.searching;
|
|
1172
1203
|
},
|
|
1173
|
-
set: (
|
|
1204
|
+
set: (a) => {
|
|
1174
1205
|
t.emit("update:modelValue", {
|
|
1175
|
-
selecting:
|
|
1176
|
-
filtering:
|
|
1177
|
-
searching:
|
|
1178
|
-
sorting:
|
|
1206
|
+
selecting: D.value,
|
|
1207
|
+
filtering: k.value,
|
|
1208
|
+
searching: a,
|
|
1209
|
+
sorting: O.value,
|
|
1179
1210
|
paging: {
|
|
1180
|
-
...
|
|
1211
|
+
...w.value,
|
|
1181
1212
|
offset: 0
|
|
1182
1213
|
}
|
|
1183
1214
|
});
|
|
1184
1215
|
}
|
|
1185
|
-
}),
|
|
1216
|
+
}), O = n({
|
|
1186
1217
|
get: () => {
|
|
1187
|
-
var
|
|
1188
|
-
return (
|
|
1218
|
+
var a;
|
|
1219
|
+
return (a = e.modelValue) == null ? void 0 : a.sorting;
|
|
1189
1220
|
},
|
|
1190
|
-
set: (
|
|
1221
|
+
set: (a) => {
|
|
1191
1222
|
t.emit("update:modelValue", {
|
|
1192
|
-
selecting:
|
|
1193
|
-
filtering:
|
|
1194
|
-
searching:
|
|
1195
|
-
sorting:
|
|
1223
|
+
selecting: D.value,
|
|
1224
|
+
filtering: k.value,
|
|
1225
|
+
searching: l.value,
|
|
1226
|
+
sorting: a,
|
|
1196
1227
|
paging: {
|
|
1197
|
-
...
|
|
1228
|
+
...w.value,
|
|
1198
1229
|
offset: 0
|
|
1199
1230
|
}
|
|
1200
1231
|
});
|
|
1201
1232
|
}
|
|
1202
|
-
}),
|
|
1233
|
+
}), w = n({
|
|
1203
1234
|
get: () => {
|
|
1204
|
-
var
|
|
1205
|
-
return (
|
|
1235
|
+
var a;
|
|
1236
|
+
return (a = e.modelValue) == null ? void 0 : a.paging;
|
|
1206
1237
|
},
|
|
1207
|
-
set: (
|
|
1238
|
+
set: (a) => {
|
|
1208
1239
|
t.emit("update:modelValue", {
|
|
1209
|
-
selecting:
|
|
1210
|
-
filtering:
|
|
1211
|
-
searching:
|
|
1212
|
-
sorting:
|
|
1213
|
-
paging:
|
|
1240
|
+
selecting: D.value,
|
|
1241
|
+
filtering: k.value,
|
|
1242
|
+
searching: l.value,
|
|
1243
|
+
sorting: O.value,
|
|
1244
|
+
paging: a
|
|
1214
1245
|
});
|
|
1215
1246
|
}
|
|
1216
|
-
}),
|
|
1217
|
-
var
|
|
1218
|
-
return ((
|
|
1247
|
+
}), S = G(/* @__PURE__ */ new Map()), V = G(/* @__PURE__ */ new Map()), I = n(() => e.features.selecting && (typeof e.features.selecting == "object" ? e.features.selecting.showCounter !== !1 : !0)), y = n(() => e.items.length === 0 || e.loading || typeof e.features.selecting == "object" && e.features.selecting.disabled), F = n(() => {
|
|
1248
|
+
var a;
|
|
1249
|
+
return ((a = m.value) == null ? void 0 : a.currentLimit) || 10;
|
|
1219
1250
|
});
|
|
1220
|
-
function j(
|
|
1221
|
-
|
|
1251
|
+
function j(a) {
|
|
1252
|
+
l.value = a;
|
|
1222
1253
|
}
|
|
1223
|
-
function E(
|
|
1254
|
+
function E(a, s, R) {
|
|
1224
1255
|
switch (R.stickiness) {
|
|
1225
1256
|
case "start":
|
|
1226
|
-
|
|
1257
|
+
S.value.set(a, s), S.value = new Map(S.value), V.value.delete(a), V.value = new Map(V.value);
|
|
1227
1258
|
break;
|
|
1228
1259
|
case "end":
|
|
1229
|
-
|
|
1260
|
+
S.value.delete(a), S.value = new Map(S.value), V.value.set(a, s), V.value = new Map(V.value);
|
|
1230
1261
|
break;
|
|
1231
1262
|
default:
|
|
1232
|
-
U(
|
|
1263
|
+
U(a);
|
|
1233
1264
|
break;
|
|
1234
1265
|
}
|
|
1235
1266
|
}
|
|
1236
|
-
function q(
|
|
1237
|
-
e.interactiveRows && t.emit("hover:row",
|
|
1267
|
+
function q(a) {
|
|
1268
|
+
e.interactiveRows && t.emit("hover:row", a);
|
|
1238
1269
|
}
|
|
1239
|
-
function A(
|
|
1240
|
-
e.interactiveRows && t.emit("blur:row",
|
|
1270
|
+
function A(a) {
|
|
1271
|
+
e.interactiveRows && t.emit("blur:row", a);
|
|
1241
1272
|
}
|
|
1242
|
-
function L(
|
|
1273
|
+
function L(a, s, R) {
|
|
1243
1274
|
e.interactiveRows && t.emit("hover:cell", {
|
|
1244
|
-
item:
|
|
1245
|
-
columnName:
|
|
1275
|
+
item: a,
|
|
1276
|
+
columnName: s,
|
|
1246
1277
|
value: R
|
|
1247
1278
|
});
|
|
1248
1279
|
}
|
|
1249
|
-
function B(
|
|
1280
|
+
function B(a, s, R) {
|
|
1250
1281
|
e.interactiveRows && t.emit("blur:cell", {
|
|
1251
|
-
item:
|
|
1252
|
-
columnName:
|
|
1282
|
+
item: a,
|
|
1283
|
+
columnName: s,
|
|
1253
1284
|
value: R
|
|
1254
1285
|
});
|
|
1255
1286
|
}
|
|
1256
|
-
function z(
|
|
1257
|
-
e.interactiveRows && t.emit("click:row",
|
|
1287
|
+
function z(a) {
|
|
1288
|
+
e.interactiveRows && t.emit("click:row", a);
|
|
1258
1289
|
}
|
|
1259
|
-
function U(
|
|
1260
|
-
|
|
1290
|
+
function U(a) {
|
|
1291
|
+
S.value.delete(a), S.value = new Map(S.value), V.value.delete(a), V.value = new Map(V.value);
|
|
1261
1292
|
}
|
|
1262
|
-
function J(
|
|
1263
|
-
|
|
1293
|
+
function J(a) {
|
|
1294
|
+
a.currentTarget.scrollIntoView({ block: "nearest" });
|
|
1264
1295
|
}
|
|
1265
1296
|
return {
|
|
1266
1297
|
root: r,
|
|
1267
|
-
rootStyles:
|
|
1268
|
-
pagination:
|
|
1298
|
+
rootStyles: h,
|
|
1299
|
+
pagination: m,
|
|
1269
1300
|
tableInlineStyles: b,
|
|
1270
|
-
selectingIndicator:
|
|
1301
|
+
selectingIndicator: $,
|
|
1271
1302
|
showSelectingCouter: I,
|
|
1272
|
-
selectingDisabled:
|
|
1303
|
+
selectingDisabled: y,
|
|
1273
1304
|
skeletonsLength: F,
|
|
1274
1305
|
handleMouseEnterRow: q,
|
|
1275
1306
|
handleMouseLeaveRow: A,
|
|
1276
1307
|
handleMouseEnterCell: L,
|
|
1277
1308
|
handleMouseLeaveCell: B,
|
|
1278
1309
|
handleRowClick: z,
|
|
1279
|
-
selectingModel:
|
|
1280
|
-
filteringModel:
|
|
1281
|
-
searchingModel:
|
|
1282
|
-
sortingModel:
|
|
1283
|
-
pagingModel:
|
|
1310
|
+
selectingModel: D,
|
|
1311
|
+
filteringModel: k,
|
|
1312
|
+
searchingModel: l,
|
|
1313
|
+
sortingModel: O,
|
|
1314
|
+
pagingModel: w,
|
|
1284
1315
|
updateScrollOffset: E,
|
|
1285
1316
|
removeScrollOffset: U,
|
|
1286
1317
|
updateSearchingModel: j,
|
|
1287
1318
|
scrollTo: J,
|
|
1288
|
-
onInput: (
|
|
1289
|
-
|
|
1319
|
+
onInput: (a, s, R) => {
|
|
1320
|
+
a[s] = R, t.emit("update:item", a);
|
|
1290
1321
|
}
|
|
1291
1322
|
};
|
|
1292
1323
|
}
|
|
1293
1324
|
});
|
|
1294
|
-
function qt(e, t, r,
|
|
1295
|
-
const
|
|
1296
|
-
return
|
|
1325
|
+
function qt(e, t, r, m, h, b) {
|
|
1326
|
+
const $ = d("OrSearch"), D = d("OrDataGridHeader"), k = d("OrDataGridToolbar"), l = d("OrCheckbox"), O = d("OrDataGridTableHeaderCell"), w = d("OrDataGridTableHeaderRow"), S = d("OrDataGridTableHeader"), V = d("OrDataGridNotification"), I = d("OrDataGridTableExtraRow"), y = d("OrSkeletonText"), F = d("OrDataGridTableContentCell"), j = d("OrDataGridTableContentRow"), E = d("OrDataGridTablePlaceholder"), q = d("OrDataGridTableContent"), A = d("OrDataGridTable"), L = d("OrDataGridTableFooterCell"), B = d("OrDataGridTableFooterRow"), z = d("OrDataGridTableFooter"), U = d("OrPagination"), J = d("OrDataGridFooter");
|
|
1327
|
+
return o(), v("div", {
|
|
1297
1328
|
ref: "root",
|
|
1298
1329
|
class: u(e.rootStyles)
|
|
1299
1330
|
}, [
|
|
1300
|
-
e.$slots.title || e.features.searching || e.$slots.search || e.$slots.extraActions ? (
|
|
1331
|
+
e.$slots.title || e.features.searching || e.$slots.search || e.$slots.extraActions ? (o(), p(D, {
|
|
1301
1332
|
key: 0,
|
|
1302
1333
|
class: u(["shrink-0"])
|
|
1303
1334
|
}, K({ _: 2 }, [
|
|
1304
1335
|
e.$slots.title ? {
|
|
1305
1336
|
name: "title",
|
|
1306
|
-
fn:
|
|
1307
|
-
|
|
1337
|
+
fn: f(() => [
|
|
1338
|
+
i(e.$slots, "title")
|
|
1308
1339
|
]),
|
|
1309
1340
|
key: "0"
|
|
1310
1341
|
} : void 0,
|
|
1311
1342
|
e.features.searching ? {
|
|
1312
1343
|
name: "searching",
|
|
1313
|
-
fn:
|
|
1314
|
-
|
|
1315
|
-
M(
|
|
1344
|
+
fn: f(() => [
|
|
1345
|
+
i(e.$slots, "search", ae(oe({ updateSearchingModel: e.updateSearchingModel, searchingModel: e.searchingModel })), () => [
|
|
1346
|
+
M($, {
|
|
1316
1347
|
modelValue: e.searchingModel,
|
|
1317
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
1348
|
+
"onUpdate:modelValue": t[0] || (t[0] = (a) => e.searchingModel = a)
|
|
1318
1349
|
}, null, 8, ["modelValue"])
|
|
1319
1350
|
])
|
|
1320
1351
|
]),
|
|
@@ -1322,60 +1353,60 @@ function qt(e, t, r, c, v, b) {
|
|
|
1322
1353
|
} : void 0,
|
|
1323
1354
|
e.$slots.extraActions ? {
|
|
1324
1355
|
name: "extraActions",
|
|
1325
|
-
fn:
|
|
1326
|
-
|
|
1356
|
+
fn: f(() => [
|
|
1357
|
+
i(e.$slots, "extraActions")
|
|
1327
1358
|
]),
|
|
1328
1359
|
key: "2"
|
|
1329
1360
|
} : void 0
|
|
1330
|
-
]), 1024)) :
|
|
1331
|
-
e.$slots.toolbar ? (
|
|
1361
|
+
]), 1024)) : g("", !0),
|
|
1362
|
+
e.$slots.toolbar ? (o(), p(k, {
|
|
1332
1363
|
key: 1,
|
|
1333
1364
|
class: u(["shrink-0"])
|
|
1334
1365
|
}, {
|
|
1335
|
-
default:
|
|
1336
|
-
|
|
1366
|
+
default: f(() => [
|
|
1367
|
+
i(e.$slots, "toolbar")
|
|
1337
1368
|
]),
|
|
1338
1369
|
_: 3
|
|
1339
|
-
})) :
|
|
1370
|
+
})) : g("", !0),
|
|
1340
1371
|
M(A, {
|
|
1341
1372
|
class: u(["grow", { "grid-rows-[auto_1fr]": e.items.length === 0 }]),
|
|
1342
1373
|
style: N(e.tableInlineStyles),
|
|
1343
1374
|
columns: e.columns,
|
|
1344
1375
|
features: e.features
|
|
1345
1376
|
}, {
|
|
1346
|
-
default:
|
|
1347
|
-
M(
|
|
1348
|
-
default:
|
|
1349
|
-
M(
|
|
1350
|
-
default:
|
|
1351
|
-
e.features.selecting ? (
|
|
1377
|
+
default: f(() => [
|
|
1378
|
+
M(S, null, {
|
|
1379
|
+
default: f(() => [
|
|
1380
|
+
M(w, { variant: e.variant }, {
|
|
1381
|
+
default: f(() => [
|
|
1382
|
+
e.features.selecting ? (o(), p(O, {
|
|
1352
1383
|
key: 0,
|
|
1353
1384
|
column: { stickiness: "start" },
|
|
1354
1385
|
class: "!py-xs !px-xs md:!py-none md:!px-sm+",
|
|
1355
1386
|
"onUpdate:scrollOffset": e.updateScrollOffset,
|
|
1356
1387
|
"onRemove:scrollOffset": e.removeScrollOffset
|
|
1357
1388
|
}, {
|
|
1358
|
-
default:
|
|
1359
|
-
M(
|
|
1389
|
+
default: f(() => [
|
|
1390
|
+
M(l, {
|
|
1360
1391
|
modelValue: e.selectingIndicator,
|
|
1361
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
1392
|
+
"onUpdate:modelValue": t[1] || (t[1] = (a) => e.selectingIndicator = a),
|
|
1362
1393
|
indeterminate: !e.selectingIndicator && e.selectingModel.length > 0,
|
|
1363
1394
|
disabled: e.selectingDisabled
|
|
1364
1395
|
}, null, 8, ["modelValue", "indeterminate", "disabled"])
|
|
1365
1396
|
]),
|
|
1366
1397
|
_: 1
|
|
1367
|
-
}, 8, ["onUpdate:scrollOffset", "onRemove:scrollOffset"])) :
|
|
1368
|
-
(
|
|
1369
|
-
key:
|
|
1398
|
+
}, 8, ["onUpdate:scrollOffset", "onRemove:scrollOffset"])) : g("", !0),
|
|
1399
|
+
(o(!0), v(H, null, P(e.columns, (a) => (o(), p(O, {
|
|
1400
|
+
key: a.name,
|
|
1370
1401
|
modelValue: e.sortingModel,
|
|
1371
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
1372
|
-
column:
|
|
1402
|
+
"onUpdate:modelValue": t[2] || (t[2] = (s) => e.sortingModel = s),
|
|
1403
|
+
column: a,
|
|
1373
1404
|
features: e.features,
|
|
1374
1405
|
"onUpdate:scrollOffset": e.updateScrollOffset,
|
|
1375
1406
|
"onRemove:scrollOffset": e.removeScrollOffset
|
|
1376
1407
|
}, {
|
|
1377
|
-
default:
|
|
1378
|
-
Q(W(
|
|
1408
|
+
default: f(() => [
|
|
1409
|
+
Q(W(a.label), 1)
|
|
1379
1410
|
]),
|
|
1380
1411
|
_: 2
|
|
1381
1412
|
}, 1032, ["modelValue", "column", "features", "onUpdate:scrollOffset", "onRemove:scrollOffset"]))), 128))
|
|
@@ -1385,160 +1416,164 @@ function qt(e, t, r, c, v, b) {
|
|
|
1385
1416
|
]),
|
|
1386
1417
|
_: 1
|
|
1387
1418
|
}),
|
|
1388
|
-
e.notification ? (
|
|
1419
|
+
e.notification ? (o(), p(V, {
|
|
1389
1420
|
key: 0,
|
|
1390
1421
|
notification: e.notification,
|
|
1391
1422
|
variant: e.variant,
|
|
1392
|
-
onCloseNotification: t[3] || (t[3] = (
|
|
1423
|
+
onCloseNotification: t[3] || (t[3] = (a) => e.$emit("close-notification"))
|
|
1393
1424
|
}, K({ _: 2 }, [
|
|
1394
1425
|
e.$slots.notification ? {
|
|
1395
1426
|
name: "notification",
|
|
1396
|
-
fn:
|
|
1397
|
-
|
|
1427
|
+
fn: f(() => [
|
|
1428
|
+
i(e.$slots, "notification")
|
|
1398
1429
|
]),
|
|
1399
1430
|
key: "0"
|
|
1400
1431
|
} : void 0
|
|
1401
|
-
]), 1032, ["notification", "variant"])) :
|
|
1432
|
+
]), 1032, ["notification", "variant"])) : g("", !0),
|
|
1402
1433
|
M(q, null, {
|
|
1403
|
-
default:
|
|
1404
|
-
e.$slots["before-rows"] ? (
|
|
1434
|
+
default: f(() => [
|
|
1435
|
+
e.$slots["before-rows"] ? (o(), p(I, {
|
|
1405
1436
|
key: 0,
|
|
1406
1437
|
variant: e.variant,
|
|
1407
1438
|
class: "border-b-1"
|
|
1408
1439
|
}, {
|
|
1409
|
-
default:
|
|
1410
|
-
|
|
1440
|
+
default: f(() => [
|
|
1441
|
+
i(e.$slots, "before-rows")
|
|
1411
1442
|
]),
|
|
1412
1443
|
_: 3
|
|
1413
|
-
}, 8, ["variant"])) :
|
|
1414
|
-
e.loading ? (
|
|
1415
|
-
key:
|
|
1444
|
+
}, 8, ["variant"])) : g("", !0),
|
|
1445
|
+
e.loading ? (o(!0), v(H, { key: 1 }, P(e.skeletonsLength, (a) => (o(), p(j, {
|
|
1446
|
+
key: a,
|
|
1416
1447
|
variant: e.variant,
|
|
1417
1448
|
interactive: e.interactiveRows
|
|
1418
1449
|
}, {
|
|
1419
|
-
default:
|
|
1420
|
-
e.features.selecting ? (
|
|
1450
|
+
default: f(() => [
|
|
1451
|
+
e.features.selecting ? (o(), p(F, {
|
|
1421
1452
|
key: 0,
|
|
1422
1453
|
column: { stickiness: "start" },
|
|
1454
|
+
variant: e.variant,
|
|
1423
1455
|
override: !0
|
|
1424
1456
|
}, {
|
|
1425
|
-
default:
|
|
1426
|
-
M(
|
|
1457
|
+
default: f(() => [
|
|
1458
|
+
M(y)
|
|
1427
1459
|
]),
|
|
1428
1460
|
_: 1
|
|
1429
|
-
})) :
|
|
1430
|
-
(
|
|
1431
|
-
key:
|
|
1432
|
-
column:
|
|
1461
|
+
}, 8, ["variant"])) : g("", !0),
|
|
1462
|
+
(o(!0), v(H, null, P(e.columns, (s) => (o(), p(F, {
|
|
1463
|
+
key: s.name,
|
|
1464
|
+
column: s,
|
|
1433
1465
|
features: e.features,
|
|
1466
|
+
variant: e.variant,
|
|
1434
1467
|
override: !0
|
|
1435
1468
|
}, {
|
|
1436
|
-
default:
|
|
1437
|
-
|
|
1438
|
-
M(
|
|
1469
|
+
default: f(() => [
|
|
1470
|
+
i(e.$slots, "column-loading", { column: s }, () => [
|
|
1471
|
+
M(y)
|
|
1439
1472
|
])
|
|
1440
1473
|
]),
|
|
1441
1474
|
_: 2
|
|
1442
|
-
}, 1032, ["column", "features"]))), 128))
|
|
1475
|
+
}, 1032, ["column", "features", "variant"]))), 128))
|
|
1443
1476
|
]),
|
|
1444
1477
|
_: 2
|
|
1445
|
-
}, 1032, ["variant", "interactive"]))), 128)) : e.items.length > 0 ? (
|
|
1446
|
-
key:
|
|
1478
|
+
}, 1032, ["variant", "interactive"]))), 128)) : e.items.length > 0 ? (o(!0), v(H, { key: 2 }, P(e.items, (a) => (o(), p(j, {
|
|
1479
|
+
key: a.id,
|
|
1447
1480
|
variant: e.variant,
|
|
1448
|
-
selected: e.selectingModel.includes(
|
|
1481
|
+
selected: e.selectingModel.includes(a.id),
|
|
1449
1482
|
interactive: e.interactiveRows,
|
|
1450
|
-
onMouseenter: () => e.handleMouseEnterRow(
|
|
1451
|
-
onMouseleave: () => e.handleMouseLeaveRow(
|
|
1452
|
-
onClick: () => e.handleRowClick(
|
|
1483
|
+
onMouseenter: () => e.handleMouseEnterRow(a),
|
|
1484
|
+
onMouseleave: () => e.handleMouseLeaveRow(a),
|
|
1485
|
+
onClick: () => e.handleRowClick(a)
|
|
1453
1486
|
}, {
|
|
1454
|
-
default:
|
|
1455
|
-
e.features.selecting ? (
|
|
1487
|
+
default: f(() => [
|
|
1488
|
+
e.features.selecting ? (o(), p(F, {
|
|
1456
1489
|
key: 0,
|
|
1457
1490
|
column: { stickiness: "start" },
|
|
1491
|
+
variant: e.variant,
|
|
1458
1492
|
"force-state": "none",
|
|
1459
1493
|
class: "!py-xs !px-xs md:!py-none md:!px-sm+",
|
|
1460
|
-
onMouseenter: () => e.handleMouseEnterCell(
|
|
1461
|
-
onMouseleave: () => e.handleMouseLeaveCell(
|
|
1494
|
+
onMouseenter: () => e.handleMouseEnterCell(a, "selecting", e.selectingModel.includes(a.id)),
|
|
1495
|
+
onMouseleave: () => e.handleMouseLeaveCell(a, "selecting", e.selectingModel.includes(a.id))
|
|
1462
1496
|
}, {
|
|
1463
|
-
default:
|
|
1464
|
-
M(
|
|
1497
|
+
default: f(() => [
|
|
1498
|
+
M(l, {
|
|
1465
1499
|
modelValue: e.selectingModel,
|
|
1466
|
-
"onUpdate:modelValue": t[4] || (t[4] = (
|
|
1467
|
-
value:
|
|
1500
|
+
"onUpdate:modelValue": t[4] || (t[4] = (s) => e.selectingModel = s),
|
|
1501
|
+
value: a.id,
|
|
1468
1502
|
disabled: e.selectingDisabled
|
|
1469
1503
|
}, null, 8, ["modelValue", "value", "disabled"])
|
|
1470
1504
|
]),
|
|
1471
1505
|
_: 2
|
|
1472
|
-
}, 1032, ["onMouseenter", "onMouseleave"])) :
|
|
1473
|
-
(
|
|
1474
|
-
key:
|
|
1475
|
-
"model-value":
|
|
1476
|
-
column:
|
|
1506
|
+
}, 1032, ["variant", "onMouseenter", "onMouseleave"])) : g("", !0),
|
|
1507
|
+
(o(!0), v(H, null, P(e.columns, (s) => (o(), p(F, {
|
|
1508
|
+
key: s.name,
|
|
1509
|
+
"model-value": a[s.name],
|
|
1510
|
+
column: s,
|
|
1477
1511
|
features: e.features,
|
|
1478
|
-
|
|
1512
|
+
variant: e.variant,
|
|
1513
|
+
onInput: (R) => e.onInput(a, s.name, R),
|
|
1479
1514
|
onFocusin: t[5] || (t[5] = (R) => e.scrollTo(R)),
|
|
1480
|
-
onMouseenter: () => e.handleMouseEnterCell(
|
|
1481
|
-
onMouseleave: () => e.handleMouseLeaveCell(
|
|
1515
|
+
onMouseenter: () => e.handleMouseEnterCell(a, s.name, a[s.name]),
|
|
1516
|
+
onMouseleave: () => e.handleMouseLeaveCell(a, s.name, a[s.name])
|
|
1482
1517
|
}, {
|
|
1483
|
-
default:
|
|
1484
|
-
|
|
1485
|
-
column:
|
|
1486
|
-
item:
|
|
1518
|
+
default: f(() => [
|
|
1519
|
+
i(e.$slots, s.name, {
|
|
1520
|
+
column: s,
|
|
1521
|
+
item: a
|
|
1487
1522
|
}, () => [
|
|
1488
|
-
Q(W(
|
|
1523
|
+
Q(W(a[s.name]), 1)
|
|
1489
1524
|
])
|
|
1490
1525
|
]),
|
|
1491
1526
|
_: 2
|
|
1492
|
-
}, 1032, ["model-value", "column", "features", "onInput", "onMouseenter", "onMouseleave"]))), 128))
|
|
1527
|
+
}, 1032, ["model-value", "column", "features", "variant", "onInput", "onMouseenter", "onMouseleave"]))), 128))
|
|
1493
1528
|
]),
|
|
1494
1529
|
_: 2
|
|
1495
|
-
}, 1032, ["variant", "selected", "interactive", "onMouseenter", "onMouseleave", "onClick"]))), 128)) : e.$slots.noSearchResults && (e.features.filtering && e.filteringModel || e.features.searching && e.searchingModel) ? (
|
|
1530
|
+
}, 1032, ["variant", "selected", "interactive", "onMouseenter", "onMouseleave", "onClick"]))), 128)) : e.$slots.noSearchResults && (e.features.filtering && e.filteringModel || e.features.searching && e.searchingModel) ? (o(), p(E, {
|
|
1496
1531
|
key: 3,
|
|
1497
1532
|
class: u(["col-span-full"]),
|
|
1498
1533
|
variant: e.variant
|
|
1499
1534
|
}, {
|
|
1500
|
-
default:
|
|
1501
|
-
|
|
1535
|
+
default: f(() => [
|
|
1536
|
+
i(e.$slots, "noSearchResults", {
|
|
1502
1537
|
filter: e.filteringModel,
|
|
1503
1538
|
search: e.searchingModel
|
|
1504
1539
|
})
|
|
1505
1540
|
]),
|
|
1506
1541
|
_: 3
|
|
1507
|
-
}, 8, ["variant"])) : e.$slots.empty ? (
|
|
1542
|
+
}, 8, ["variant"])) : e.$slots.empty ? (o(), p(E, {
|
|
1508
1543
|
key: 4,
|
|
1509
1544
|
class: u(["col-span-full"]),
|
|
1510
1545
|
variant: e.variant
|
|
1511
1546
|
}, {
|
|
1512
|
-
default:
|
|
1513
|
-
|
|
1547
|
+
default: f(() => [
|
|
1548
|
+
i(e.$slots, "empty")
|
|
1514
1549
|
]),
|
|
1515
1550
|
_: 3
|
|
1516
|
-
}, 8, ["variant"])) :
|
|
1517
|
-
e.$slots["after-rows"] ? (
|
|
1551
|
+
}, 8, ["variant"])) : g("", !0),
|
|
1552
|
+
e.$slots["after-rows"] ? (o(), p(I, {
|
|
1518
1553
|
key: 5,
|
|
1519
1554
|
variant: e.variant
|
|
1520
1555
|
}, {
|
|
1521
|
-
default:
|
|
1522
|
-
|
|
1556
|
+
default: f(() => [
|
|
1557
|
+
i(e.$slots, "after-rows")
|
|
1523
1558
|
]),
|
|
1524
1559
|
_: 3
|
|
1525
|
-
}, 8, ["variant"])) :
|
|
1560
|
+
}, 8, ["variant"])) : g("", !0)
|
|
1526
1561
|
]),
|
|
1527
1562
|
_: 3
|
|
1528
1563
|
})
|
|
1529
1564
|
]),
|
|
1530
1565
|
_: 3
|
|
1531
1566
|
}, 8, ["class", "style", "columns", "features"]),
|
|
1532
|
-
e.$slots["extra-row"] ? (
|
|
1533
|
-
default:
|
|
1567
|
+
e.$slots["extra-row"] ? (o(), p(z, { key: 2 }, {
|
|
1568
|
+
default: f(() => [
|
|
1534
1569
|
M(B, {
|
|
1535
1570
|
class: u(["shrink-0"]),
|
|
1536
1571
|
variant: e.variant
|
|
1537
1572
|
}, {
|
|
1538
|
-
default:
|
|
1573
|
+
default: f(() => [
|
|
1539
1574
|
M(L, null, {
|
|
1540
|
-
default:
|
|
1541
|
-
|
|
1575
|
+
default: f(() => [
|
|
1576
|
+
i(e.$slots, "extra-row")
|
|
1542
1577
|
]),
|
|
1543
1578
|
_: 3
|
|
1544
1579
|
})
|
|
@@ -1547,47 +1582,47 @@ function qt(e, t, r, c, v, b) {
|
|
|
1547
1582
|
}, 8, ["variant"])
|
|
1548
1583
|
]),
|
|
1549
1584
|
_: 3
|
|
1550
|
-
})) :
|
|
1551
|
-
e.$slots.actions || e.showSelectingCouter || e.features.paging ? (
|
|
1585
|
+
})) : g("", !0),
|
|
1586
|
+
e.$slots.actions || e.showSelectingCouter || e.features.paging ? (o(), p(J, {
|
|
1552
1587
|
key: 3,
|
|
1553
1588
|
class: u(["shrink-0"])
|
|
1554
1589
|
}, K({ _: 2 }, [
|
|
1555
1590
|
e.features.selecting && e.selectingModel.length > 0 ? {
|
|
1556
1591
|
name: "status",
|
|
1557
|
-
fn:
|
|
1592
|
+
fn: f(() => [
|
|
1558
1593
|
Q(W(e.selectingModel.length) + " row(s) selected ", 1)
|
|
1559
1594
|
]),
|
|
1560
1595
|
key: "0"
|
|
1561
1596
|
} : void 0,
|
|
1562
1597
|
e.$slots.actions ? {
|
|
1563
1598
|
name: "actions",
|
|
1564
|
-
fn:
|
|
1565
|
-
|
|
1599
|
+
fn: f(() => [
|
|
1600
|
+
i(e.$slots, "actions")
|
|
1566
1601
|
]),
|
|
1567
1602
|
key: "1"
|
|
1568
1603
|
} : void 0,
|
|
1569
1604
|
e.features.paging ? {
|
|
1570
1605
|
name: "paging",
|
|
1571
|
-
fn:
|
|
1606
|
+
fn: f(() => [
|
|
1572
1607
|
M(U, {
|
|
1573
1608
|
ref: "pagination",
|
|
1574
1609
|
modelValue: e.pagingModel,
|
|
1575
|
-
"onUpdate:modelValue": t[6] || (t[6] = (
|
|
1610
|
+
"onUpdate:modelValue": t[6] || (t[6] = (a) => e.pagingModel = a),
|
|
1576
1611
|
length: e.features.paging.length,
|
|
1577
1612
|
options: e.features.paging.options
|
|
1578
1613
|
}, null, 8, ["modelValue", "length", "options"])
|
|
1579
1614
|
]),
|
|
1580
1615
|
key: "2"
|
|
1581
1616
|
} : void 0
|
|
1582
|
-
]), 1024)) :
|
|
1617
|
+
]), 1024)) : g("", !0)
|
|
1583
1618
|
], 2);
|
|
1584
1619
|
}
|
|
1585
|
-
const
|
|
1620
|
+
const la = /* @__PURE__ */ C(Nt, [["render", qt]]);
|
|
1586
1621
|
export {
|
|
1587
|
-
|
|
1588
|
-
|
|
1622
|
+
c as D,
|
|
1623
|
+
la as O,
|
|
1589
1624
|
ke as a,
|
|
1590
|
-
|
|
1625
|
+
Se as b,
|
|
1591
1626
|
Re as c,
|
|
1592
1627
|
Ee as d,
|
|
1593
1628
|
Ae as e,
|
|
@@ -1599,8 +1634,8 @@ export {
|
|
|
1599
1634
|
pt as k,
|
|
1600
1635
|
yt as l,
|
|
1601
1636
|
Dt as m,
|
|
1602
|
-
|
|
1637
|
+
Tt as n,
|
|
1603
1638
|
It as o,
|
|
1604
1639
|
Et as p
|
|
1605
1640
|
};
|
|
1606
|
-
//# sourceMappingURL=OrDataGrid-
|
|
1641
|
+
//# sourceMappingURL=OrDataGrid-CCz56Bn1.mjs.map
|