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