@onereach/ui-components 26.4.1-beta.5878.0 → 26.4.1-beta.5879.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-C_RY7OZe.mjs → OrDataGrid-D8ZLdtGb.mjs} +511 -498
- package/dist/esm/OrDataGrid-D8ZLdtGb.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/OrDataGrid.vue.d.ts +16 -0
- package/dist/types/components/or-data-grid-v3/partials/or-data-grid-table-content-cell/OrDataGridTableContentCell.vue.d.ts +9 -3
- package/dist/types/components/or-data-grid-v3/types.d.ts +1 -0
- package/package.json +3 -3
- package/dist/esm/OrDataGrid-C_RY7OZe.mjs.map +0 -1
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { O as
|
|
2
|
-
import { O as
|
|
3
|
-
import { O as
|
|
4
|
-
import { O as
|
|
5
|
-
import { defineComponent as
|
|
6
|
-
import { _ as
|
|
7
|
-
import { O as
|
|
8
|
-
import { O as
|
|
1
|
+
import { O as te } from "./OrCheckbox-WPBzlvaV.mjs";
|
|
2
|
+
import { O as ne } from "./OrPagination-BXzDa-Su.mjs";
|
|
3
|
+
import { O as le } from "./OrSearch-CRFuNmg2.mjs";
|
|
4
|
+
import { O as se } from "./OrSkeletonArea.vue_vue_type_script_lang-jgRhbZ0X.mjs";
|
|
5
|
+
import { defineComponent as M, ref as D, computed as n, openBlock as r, createElementBlock as h, normalizeClass as f, renderSlot as d, createCommentVNode as p, resolveComponent as m, normalizeStyle as K, Fragment as q, createBlock as y, watch as ae, createElementVNode as ie, withModifiers as ee, createVNode as z, mergeProps as de, withCtx as b, onMounted as ue, createSlots as Y, normalizeProps as ce, guardReactiveProps as me, renderList as Q, createTextVNode as Z, toDisplayString as _ } from "vue";
|
|
6
|
+
import { _ as R } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
7
|
+
import { O as fe } from "./OrDatePicker-D-Do0tSf.mjs";
|
|
8
|
+
import { O as ge } from "./OrDateTimePicker-myqJkQxy.mjs";
|
|
9
9
|
import "./OrDateTimePicker.vue_vue_type_script_lang-xnGNoSUB.mjs";
|
|
10
10
|
import "@onereach/ui-components-common/types";
|
|
11
|
-
import { O as
|
|
12
|
-
import { O as
|
|
13
|
-
import { O as
|
|
14
|
-
import { O as
|
|
15
|
-
import { O as
|
|
16
|
-
import { O as
|
|
17
|
-
import { O as
|
|
18
|
-
import { useElementSize as
|
|
19
|
-
import { O as
|
|
20
|
-
const
|
|
11
|
+
import { O as pe } from "./OrInput-nExtCSw8.mjs";
|
|
12
|
+
import { O as he } from "./OrRating-CAwz23JA.mjs";
|
|
13
|
+
import { O as ve } from "./OrSelect-BeL73iXu.mjs";
|
|
14
|
+
import { O as be } from "./OrSwitch-BtoXDsZx.mjs";
|
|
15
|
+
import { O as ye } from "./OrTagInput-B2U22gXE.mjs";
|
|
16
|
+
import { O as ke } from "./OrTimePicker-QPUb8olp.mjs";
|
|
17
|
+
import { O as Oe } from "./OrIcon-k8cyvh-D.mjs";
|
|
18
|
+
import { useElementSize as $e } from "@vueuse/core";
|
|
19
|
+
import { O as we } from "./OrNotification-BkjmRseb.mjs";
|
|
20
|
+
const De = [
|
|
21
21
|
// Layout
|
|
22
22
|
"layout-row",
|
|
23
23
|
// Interactivity
|
|
@@ -31,98 +31,98 @@ const $e = [
|
|
|
31
31
|
// Theme
|
|
32
32
|
"theme-border-disabled border-t-1",
|
|
33
33
|
"dark:theme-border-disabled-dark"
|
|
34
|
-
],
|
|
34
|
+
], Se = [
|
|
35
35
|
// Typography
|
|
36
36
|
"typography-body-2-semibold"
|
|
37
|
-
],
|
|
37
|
+
], Te = M({
|
|
38
38
|
name: "OrDataGridFooter",
|
|
39
39
|
expose: [
|
|
40
40
|
"root"
|
|
41
41
|
],
|
|
42
42
|
setup() {
|
|
43
|
-
const e = D(), t =
|
|
43
|
+
const e = D(), t = n(() => [
|
|
44
44
|
"or-data-grid-footer-v3",
|
|
45
|
-
|
|
46
|
-
]),
|
|
47
|
-
...
|
|
45
|
+
...De
|
|
46
|
+
]), l = n(() => [
|
|
47
|
+
...Se
|
|
48
48
|
]);
|
|
49
49
|
return {
|
|
50
50
|
root: e,
|
|
51
51
|
rootStyles: t,
|
|
52
|
-
statusStyles:
|
|
52
|
+
statusStyles: l
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
|
-
}),
|
|
55
|
+
}), Ge = {
|
|
56
56
|
key: 1,
|
|
57
57
|
class: /* @__PURE__ */ f(["grow"])
|
|
58
58
|
};
|
|
59
|
-
function
|
|
60
|
-
return r(),
|
|
59
|
+
function Ce(e, t, l, v, g, u) {
|
|
60
|
+
return r(), h("div", {
|
|
61
61
|
ref: "root",
|
|
62
62
|
class: f(e.rootStyles)
|
|
63
63
|
}, [
|
|
64
|
-
e.$slots.status ? (r(),
|
|
64
|
+
e.$slots.status ? (r(), h("div", {
|
|
65
65
|
key: 0,
|
|
66
66
|
class: f(e.statusStyles)
|
|
67
67
|
}, [
|
|
68
|
-
|
|
69
|
-
], 2)) :
|
|
70
|
-
|
|
71
|
-
e.$slots.paging ? (r(),
|
|
72
|
-
|
|
68
|
+
d(e.$slots, "status")
|
|
69
|
+
], 2)) : p("", !0),
|
|
70
|
+
d(e.$slots, "actions"),
|
|
71
|
+
e.$slots.paging ? (r(), h("div", Ge)) : p("", !0),
|
|
72
|
+
d(e.$slots, "paging")
|
|
73
73
|
], 2);
|
|
74
74
|
}
|
|
75
|
-
const
|
|
75
|
+
const Ve = /* @__PURE__ */ R(Te, [["render", Ce]]), Me = [
|
|
76
76
|
// Layout
|
|
77
77
|
"layout-row items-start gap-md",
|
|
78
78
|
// Interactivity
|
|
79
79
|
"interactivity-default",
|
|
80
80
|
// Box
|
|
81
81
|
"h-3xl"
|
|
82
|
-
],
|
|
82
|
+
], Re = [
|
|
83
83
|
// Typography
|
|
84
84
|
"typography-headline-2"
|
|
85
|
-
],
|
|
85
|
+
], Ie = M({
|
|
86
86
|
name: "OrDataGridHeader",
|
|
87
87
|
expose: [
|
|
88
88
|
"root"
|
|
89
89
|
],
|
|
90
90
|
setup() {
|
|
91
|
-
const e = D(), t =
|
|
91
|
+
const e = D(), t = n(() => [
|
|
92
92
|
"or-data-grid-header-v3",
|
|
93
|
-
...
|
|
94
|
-
]),
|
|
95
|
-
...
|
|
93
|
+
...Me
|
|
94
|
+
]), l = n(() => [
|
|
95
|
+
...Re
|
|
96
96
|
]);
|
|
97
97
|
return {
|
|
98
98
|
root: e,
|
|
99
99
|
rootStyles: t,
|
|
100
|
-
titleStyles:
|
|
100
|
+
titleStyles: l
|
|
101
101
|
};
|
|
102
102
|
}
|
|
103
|
-
}),
|
|
103
|
+
}), ze = {
|
|
104
104
|
key: 1,
|
|
105
105
|
class: /* @__PURE__ */ f(["grow"])
|
|
106
106
|
};
|
|
107
|
-
function
|
|
108
|
-
return r(),
|
|
107
|
+
function He(e, t, l, v, g, u) {
|
|
108
|
+
return r(), h("div", {
|
|
109
109
|
ref: "root",
|
|
110
110
|
class: f(e.rootStyles)
|
|
111
111
|
}, [
|
|
112
|
-
e.$slots.title ? (r(),
|
|
112
|
+
e.$slots.title ? (r(), h("div", {
|
|
113
113
|
key: 0,
|
|
114
114
|
class: f(e.titleStyles)
|
|
115
115
|
}, [
|
|
116
|
-
|
|
117
|
-
], 2)) :
|
|
118
|
-
e.$slots.searching || e.$slots.extraActions ? (r(),
|
|
119
|
-
|
|
120
|
-
e.$slots.extraActions ?
|
|
116
|
+
d(e.$slots, "title")
|
|
117
|
+
], 2)) : p("", !0),
|
|
118
|
+
e.$slots.searching || e.$slots.extraActions ? (r(), h("div", ze)) : p("", !0),
|
|
119
|
+
d(e.$slots, "searching"),
|
|
120
|
+
e.$slots.extraActions ? d(e.$slots, "extraActions", { key: 2 }) : p("", !0)
|
|
121
121
|
], 2);
|
|
122
122
|
}
|
|
123
|
-
const
|
|
123
|
+
const Fe = /* @__PURE__ */ R(Ie, [["render", He]]);
|
|
124
124
|
var k = /* @__PURE__ */ ((e) => (e.Standard = "standard", e.Comfortable = "comfortable", e.Compact = "compact", e.Dynamic = "dynamic", e))(k || {});
|
|
125
|
-
const B = "52px",
|
|
125
|
+
const B = "52px", We = [
|
|
126
126
|
// Layout
|
|
127
127
|
"layout-row items-center",
|
|
128
128
|
// Spacing
|
|
@@ -150,24 +150,27 @@ const B = "52px", Fe = [
|
|
|
150
150
|
"dark:[&.sticky-end]:theme-background-default-dark dark:[&.sticky-end]:border-s-disabled-dark",
|
|
151
151
|
"hover:[&.sticky-end]:theme-background-surface-1 dark:hover:[&.sticky-end]:theme-background-surface-1-dark",
|
|
152
152
|
"selected:[&.sticky-end]:theme-background-surface-2 dark:selected:[&.sticky-end]:theme-background-surface-2-dark",
|
|
153
|
-
"hover:selected:[&.sticky-end]:theme-background-surface-3 dark:hover:selected:[&.sticky-end]:theme-background-surface-3-dark"
|
|
154
|
-
|
|
153
|
+
"hover:selected:[&.sticky-end]:theme-background-surface-3 dark:hover:selected:[&.sticky-end]:theme-background-surface-3-dark",
|
|
154
|
+
// Theme (.resizable)
|
|
155
|
+
"[&.resizable]:border-e-disabled [&.resizable]:border-solid",
|
|
156
|
+
"dark:[&.resizable]:border-e-disabled-dark"
|
|
157
|
+
], Pe = [
|
|
155
158
|
// interactivity
|
|
156
159
|
"interactivity-select",
|
|
157
160
|
// Typography
|
|
158
161
|
"truncate"
|
|
159
|
-
], Ee =
|
|
162
|
+
], Ee = M({
|
|
160
163
|
name: "OrDataGridTableContentCell",
|
|
161
164
|
components: {
|
|
162
|
-
OrCheckbox:
|
|
163
|
-
OrDatePicker:
|
|
164
|
-
OrDateTimePicker:
|
|
165
|
-
OrInput:
|
|
166
|
-
OrRating:
|
|
167
|
-
OrSelect:
|
|
168
|
-
OrSwitch:
|
|
169
|
-
OrTagInput:
|
|
170
|
-
OrTimePicker:
|
|
165
|
+
OrCheckbox: te,
|
|
166
|
+
OrDatePicker: fe,
|
|
167
|
+
OrDateTimePicker: ge,
|
|
168
|
+
OrInput: pe,
|
|
169
|
+
OrRating: he,
|
|
170
|
+
OrSelect: ve,
|
|
171
|
+
OrSwitch: be,
|
|
172
|
+
OrTagInput: ye,
|
|
173
|
+
OrTimePicker: ke
|
|
171
174
|
},
|
|
172
175
|
model: {
|
|
173
176
|
prop: "modelValue",
|
|
@@ -203,14 +206,15 @@ const B = "52px", Fe = [
|
|
|
203
206
|
"root"
|
|
204
207
|
],
|
|
205
208
|
setup(e, t) {
|
|
206
|
-
const
|
|
207
|
-
var O;
|
|
209
|
+
const l = D(), v = n(() => {
|
|
210
|
+
var O, T, C, V;
|
|
208
211
|
return [
|
|
209
212
|
"or-data-grid-table-content-cell-v3",
|
|
210
|
-
...
|
|
211
|
-
...(O = e.column) != null && O.stickiness ? [`sticky-${e.column.stickiness}`] : []
|
|
213
|
+
...We,
|
|
214
|
+
...(O = e.column) != null && O.stickiness ? [`sticky-${e.column.stickiness}`] : [],
|
|
215
|
+
...(T = e.features) != null && T.resizing && ((C = e.column) != null && C.name) && ((V = e.column) == null ? void 0 : V.resizing) !== !1 ? ["resizable"] : []
|
|
212
216
|
];
|
|
213
|
-
}),
|
|
217
|
+
}), g = n(() => {
|
|
214
218
|
if (e.column)
|
|
215
219
|
switch (e.column.stickiness) {
|
|
216
220
|
case "start":
|
|
@@ -236,119 +240,119 @@ const B = "52px", Fe = [
|
|
|
236
240
|
return {
|
|
237
241
|
justifyContent: "center"
|
|
238
242
|
};
|
|
239
|
-
}), u =
|
|
240
|
-
var
|
|
241
|
-
const O = ((
|
|
243
|
+
}), u = n(() => {
|
|
244
|
+
var T, C;
|
|
245
|
+
const O = ((T = e.column) == null ? void 0 : T.wrapping) ?? (e.variant === k.Dynamic && !((C = e.column) != null && C.control));
|
|
242
246
|
return [
|
|
243
|
-
...
|
|
247
|
+
...Pe.filter((V) => V !== "truncate"),
|
|
244
248
|
...O ? ["whitespace-pre-wrap break-words"] : ["truncate"]
|
|
245
249
|
];
|
|
246
|
-
}),
|
|
250
|
+
}), G = n(() => ({
|
|
247
251
|
minWidth: e.column && e.column.minWidth || B,
|
|
248
252
|
maxWidth: e.column && e.column.maxWidth
|
|
249
|
-
})),
|
|
253
|
+
})), I = n({
|
|
250
254
|
get: () => e.modelValue,
|
|
251
255
|
set: (O) => {
|
|
252
256
|
t.emit("input", O);
|
|
253
257
|
}
|
|
254
|
-
}), S =
|
|
258
|
+
}), S = n(() => {
|
|
255
259
|
var O;
|
|
256
260
|
return (O = e.column) == null ? void 0 : O.control;
|
|
257
261
|
});
|
|
258
262
|
return {
|
|
259
|
-
root:
|
|
260
|
-
rootStyles:
|
|
261
|
-
rootInlineStyles:
|
|
263
|
+
root: l,
|
|
264
|
+
rootStyles: v,
|
|
265
|
+
rootInlineStyles: g,
|
|
262
266
|
contentStyles: u,
|
|
263
|
-
contentInlineStyles:
|
|
264
|
-
model:
|
|
267
|
+
contentInlineStyles: G,
|
|
268
|
+
model: I,
|
|
265
269
|
control: S,
|
|
266
270
|
DATA_GRID_DEFAULT_MIN_WIDTH: B
|
|
267
271
|
};
|
|
268
272
|
}
|
|
269
273
|
});
|
|
270
|
-
function
|
|
271
|
-
const
|
|
272
|
-
return r(),
|
|
274
|
+
function je(e, t, l, v, g, u) {
|
|
275
|
+
const G = m("OrInput"), I = m("OrRating"), S = m("OrSelect"), O = m("OrCheckbox"), T = m("OrSwitch"), C = m("OrDatePicker"), V = m("OrTimePicker"), o = m("OrDateTimePicker"), c = m("OrTagInput");
|
|
276
|
+
return r(), h("div", {
|
|
273
277
|
ref: "root",
|
|
274
278
|
class: f(e.rootStyles),
|
|
275
279
|
style: K(e.rootInlineStyles)
|
|
276
280
|
}, [
|
|
277
|
-
e.override ?
|
|
278
|
-
e.control.type === "text" ? (r(), y(
|
|
281
|
+
e.override ? d(e.$slots, "default", { key: 0 }) : e.control ? (r(), h(q, { key: 1 }, [
|
|
282
|
+
e.control.type === "text" ? (r(), y(G, {
|
|
279
283
|
key: 0,
|
|
280
284
|
modelValue: e.model,
|
|
281
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
285
|
+
"onUpdate:modelValue": t[0] || (t[0] = (s) => e.model = s),
|
|
282
286
|
type: "text",
|
|
283
287
|
variant: "embedded"
|
|
284
|
-
}, null, 8, ["modelValue"])) :
|
|
285
|
-
e.control.type === "number" ? (r(), y(
|
|
288
|
+
}, null, 8, ["modelValue"])) : p("", !0),
|
|
289
|
+
e.control.type === "number" ? (r(), y(G, {
|
|
286
290
|
key: 1,
|
|
287
291
|
modelValue: e.model,
|
|
288
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
292
|
+
"onUpdate:modelValue": t[1] || (t[1] = (s) => e.model = s),
|
|
289
293
|
type: "number",
|
|
290
294
|
variant: "embedded"
|
|
291
|
-
}, null, 8, ["modelValue"])) :
|
|
292
|
-
e.control.type === "rating" ? (r(), y(
|
|
295
|
+
}, null, 8, ["modelValue"])) : p("", !0),
|
|
296
|
+
e.control.type === "rating" ? (r(), y(I, {
|
|
293
297
|
key: 2,
|
|
294
298
|
modelValue: e.model,
|
|
295
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
296
|
-
}, null, 8, ["modelValue"])) :
|
|
299
|
+
"onUpdate:modelValue": t[2] || (t[2] = (s) => e.model = s)
|
|
300
|
+
}, null, 8, ["modelValue"])) : p("", !0),
|
|
297
301
|
e.control.type === "select" ? (r(), y(S, {
|
|
298
302
|
key: 3,
|
|
299
303
|
modelValue: e.model,
|
|
300
|
-
"onUpdate:modelValue": t[3] || (t[3] = (
|
|
304
|
+
"onUpdate:modelValue": t[3] || (t[3] = (s) => e.model = s),
|
|
301
305
|
options: e.control.options,
|
|
302
306
|
variant: "embedded",
|
|
303
307
|
anchor: e.root
|
|
304
|
-
}, null, 8, ["modelValue", "options", "anchor"])) :
|
|
308
|
+
}, null, 8, ["modelValue", "options", "anchor"])) : p("", !0),
|
|
305
309
|
e.control.type === "checkbox" ? (r(), y(O, {
|
|
306
310
|
key: 4,
|
|
307
311
|
modelValue: e.model,
|
|
308
|
-
"onUpdate:modelValue": t[4] || (t[4] = (
|
|
309
|
-
}, null, 8, ["modelValue"])) :
|
|
310
|
-
e.control.type === "switch" ? (r(), y(
|
|
312
|
+
"onUpdate:modelValue": t[4] || (t[4] = (s) => e.model = s)
|
|
313
|
+
}, null, 8, ["modelValue"])) : p("", !0),
|
|
314
|
+
e.control.type === "switch" ? (r(), y(T, {
|
|
311
315
|
key: 5,
|
|
312
316
|
modelValue: e.model,
|
|
313
|
-
"onUpdate:modelValue": t[5] || (t[5] = (
|
|
314
|
-
}, null, 8, ["modelValue"])) :
|
|
315
|
-
e.control.type === "date" ? (r(), y(
|
|
317
|
+
"onUpdate:modelValue": t[5] || (t[5] = (s) => e.model = s)
|
|
318
|
+
}, null, 8, ["modelValue"])) : p("", !0),
|
|
319
|
+
e.control.type === "date" ? (r(), y(C, {
|
|
316
320
|
key: 6,
|
|
317
321
|
modelValue: e.model,
|
|
318
|
-
"onUpdate:modelValue": t[6] || (t[6] = (
|
|
322
|
+
"onUpdate:modelValue": t[6] || (t[6] = (s) => e.model = s),
|
|
319
323
|
variant: "embedded",
|
|
320
324
|
anchor: e.root
|
|
321
|
-
}, null, 8, ["modelValue", "anchor"])) :
|
|
322
|
-
e.control.type === "time" ? (r(), y(
|
|
325
|
+
}, null, 8, ["modelValue", "anchor"])) : p("", !0),
|
|
326
|
+
e.control.type === "time" ? (r(), y(V, {
|
|
323
327
|
key: 7,
|
|
324
328
|
modelValue: e.model,
|
|
325
|
-
"onUpdate:modelValue": t[7] || (t[7] = (
|
|
329
|
+
"onUpdate:modelValue": t[7] || (t[7] = (s) => e.model = s),
|
|
326
330
|
variant: "embedded",
|
|
327
331
|
anchor: e.root
|
|
328
|
-
}, null, 8, ["modelValue", "anchor"])) :
|
|
332
|
+
}, null, 8, ["modelValue", "anchor"])) : p("", !0),
|
|
329
333
|
e.control.type === "datetime" ? (r(), y(o, {
|
|
330
334
|
key: 8,
|
|
331
335
|
modelValue: e.model,
|
|
332
|
-
"onUpdate:modelValue": t[8] || (t[8] = (
|
|
336
|
+
"onUpdate:modelValue": t[8] || (t[8] = (s) => e.model = s),
|
|
333
337
|
variant: "embedded",
|
|
334
338
|
anchor: e.root
|
|
335
|
-
}, null, 8, ["modelValue", "anchor"])) :
|
|
339
|
+
}, null, 8, ["modelValue", "anchor"])) : p("", !0),
|
|
336
340
|
e.control.type === "tags" ? (r(), y(c, {
|
|
337
341
|
key: 9,
|
|
338
342
|
modelValue: e.model,
|
|
339
|
-
"onUpdate:modelValue": t[9] || (t[9] = (
|
|
343
|
+
"onUpdate:modelValue": t[9] || (t[9] = (s) => e.model = s),
|
|
340
344
|
variant: "embedded"
|
|
341
|
-
}, null, 8, ["modelValue"])) :
|
|
342
|
-
], 64)) : (r(),
|
|
345
|
+
}, null, 8, ["modelValue"])) : p("", !0)
|
|
346
|
+
], 64)) : (r(), h("div", {
|
|
343
347
|
key: 2,
|
|
344
348
|
class: f(e.contentStyles),
|
|
345
349
|
style: K(e.contentInlineStyles)
|
|
346
350
|
}, [
|
|
347
|
-
|
|
351
|
+
d(e.$slots, "default")
|
|
348
352
|
], 6))
|
|
349
353
|
], 6);
|
|
350
354
|
}
|
|
351
|
-
const
|
|
355
|
+
const Ne = /* @__PURE__ */ R(Ee, [["render", je]]), Ue = [
|
|
352
356
|
// Layout
|
|
353
357
|
"grid grid-cols-[subgrid] col-span-full",
|
|
354
358
|
// Typography
|
|
@@ -370,7 +374,7 @@ const ze = /* @__PURE__ */ C(Ee, [["render", Pe]]), je = [
|
|
|
370
374
|
// Theme (selected + hover / children)
|
|
371
375
|
"children:hover:selected:theme-background-surface-3",
|
|
372
376
|
"dark:children:hover:selected:theme-background-surface-3-dark"
|
|
373
|
-
],
|
|
377
|
+
], Le = {
|
|
374
378
|
[k.Standard]: [
|
|
375
379
|
// Box
|
|
376
380
|
"min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
|
|
@@ -387,7 +391,7 @@ const ze = /* @__PURE__ */ C(Ee, [["render", Pe]]), je = [
|
|
|
387
391
|
// Box
|
|
388
392
|
"min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
|
|
389
393
|
]
|
|
390
|
-
},
|
|
394
|
+
}, Ae = M({
|
|
391
395
|
name: "OrDataGridTableContentRow",
|
|
392
396
|
props: {
|
|
393
397
|
variant: {
|
|
@@ -407,39 +411,39 @@ const ze = /* @__PURE__ */ C(Ee, [["render", Pe]]), je = [
|
|
|
407
411
|
"root"
|
|
408
412
|
],
|
|
409
413
|
setup(e) {
|
|
410
|
-
const t = D(),
|
|
414
|
+
const t = D(), l = n(() => [
|
|
411
415
|
"or-data-grid-table-content-row-v3",
|
|
412
|
-
...
|
|
413
|
-
...
|
|
416
|
+
...Ue,
|
|
417
|
+
...Le[e.variant],
|
|
414
418
|
...e.interactive ? ["cursor-pointer"] : []
|
|
415
419
|
]);
|
|
416
420
|
return {
|
|
417
421
|
root: t,
|
|
418
|
-
rootStyles:
|
|
422
|
+
rootStyles: l
|
|
419
423
|
};
|
|
420
424
|
}
|
|
421
|
-
}),
|
|
422
|
-
function
|
|
423
|
-
return r(),
|
|
425
|
+
}), qe = ["selected"];
|
|
426
|
+
function Be(e, t, l, v, g, u) {
|
|
427
|
+
return r(), h("div", {
|
|
424
428
|
ref: "root",
|
|
425
429
|
class: f(e.rootStyles),
|
|
426
430
|
selected: e.selected
|
|
427
431
|
}, [
|
|
428
|
-
|
|
429
|
-
], 10,
|
|
432
|
+
d(e.$slots, "default")
|
|
433
|
+
], 10, qe);
|
|
430
434
|
}
|
|
431
|
-
const
|
|
435
|
+
const Ke = /* @__PURE__ */ R(Ae, [["render", Be]]), Xe = [
|
|
432
436
|
// Layout
|
|
433
437
|
"contents"
|
|
434
|
-
],
|
|
438
|
+
], Je = M({
|
|
435
439
|
name: "OrDataGridTableContent",
|
|
436
440
|
expose: [
|
|
437
441
|
"root"
|
|
438
442
|
],
|
|
439
443
|
setup() {
|
|
440
|
-
const e = D(), t =
|
|
444
|
+
const e = D(), t = n(() => [
|
|
441
445
|
"or-data-grid-table-content-v3",
|
|
442
|
-
...
|
|
446
|
+
...Xe
|
|
443
447
|
]);
|
|
444
448
|
return {
|
|
445
449
|
root: e,
|
|
@@ -447,15 +451,15 @@ const qe = /* @__PURE__ */ C(Ue, [["render", Ae]]), Be = [
|
|
|
447
451
|
};
|
|
448
452
|
}
|
|
449
453
|
});
|
|
450
|
-
function
|
|
451
|
-
return r(),
|
|
454
|
+
function Qe(e, t, l, v, g, u) {
|
|
455
|
+
return r(), h("div", {
|
|
452
456
|
ref: "root",
|
|
453
457
|
class: f(e.rootStyles)
|
|
454
458
|
}, [
|
|
455
|
-
|
|
459
|
+
d(e.$slots, "default")
|
|
456
460
|
], 2);
|
|
457
461
|
}
|
|
458
|
-
const
|
|
462
|
+
const Ye = /* @__PURE__ */ R(Je, [["render", Qe]]), Ze = [
|
|
459
463
|
// Layout
|
|
460
464
|
"layout-row",
|
|
461
465
|
// Spacing
|
|
@@ -465,15 +469,15 @@ const Je = /* @__PURE__ */ C(Ke, [["render", Xe]]), Qe = [
|
|
|
465
469
|
// Theme
|
|
466
470
|
"theme-border-transparent border-1",
|
|
467
471
|
"dark:theme-border-transparent-dark"
|
|
468
|
-
],
|
|
472
|
+
], _e = M({
|
|
469
473
|
name: "OrDataGridTableFooterCell",
|
|
470
474
|
expose: [
|
|
471
475
|
"root"
|
|
472
476
|
],
|
|
473
477
|
setup() {
|
|
474
|
-
const e = D(), t =
|
|
478
|
+
const e = D(), t = n(() => [
|
|
475
479
|
"or-data-grid-table-footer-cell-v3",
|
|
476
|
-
...
|
|
480
|
+
...Ze
|
|
477
481
|
]);
|
|
478
482
|
return {
|
|
479
483
|
root: e,
|
|
@@ -481,15 +485,15 @@ const Je = /* @__PURE__ */ C(Ke, [["render", Xe]]), Qe = [
|
|
|
481
485
|
};
|
|
482
486
|
}
|
|
483
487
|
});
|
|
484
|
-
function
|
|
485
|
-
return r(),
|
|
488
|
+
function xe(e, t, l, v, g, u) {
|
|
489
|
+
return r(), h("div", {
|
|
486
490
|
ref: "root",
|
|
487
491
|
class: f(e.rootStyles)
|
|
488
492
|
}, [
|
|
489
|
-
|
|
493
|
+
d(e.$slots, "default")
|
|
490
494
|
], 2);
|
|
491
495
|
}
|
|
492
|
-
const
|
|
496
|
+
const et = /* @__PURE__ */ R(_e, [["render", xe]]), tt = [
|
|
493
497
|
// Layout
|
|
494
498
|
"grid grid-cols-1",
|
|
495
499
|
// Typography
|
|
@@ -502,7 +506,7 @@ const _e = /* @__PURE__ */ C(Ye, [["render", Ze]]), xe = [
|
|
|
502
506
|
"dark:children:theme-foreground-default-dark",
|
|
503
507
|
"children:theme-background-default",
|
|
504
508
|
"dark:children:theme-background-default-dark"
|
|
505
|
-
],
|
|
509
|
+
], at = {
|
|
506
510
|
[k.Standard]: [
|
|
507
511
|
// Box
|
|
508
512
|
"min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
|
|
@@ -519,7 +523,7 @@ const _e = /* @__PURE__ */ C(Ye, [["render", Ze]]), xe = [
|
|
|
519
523
|
// Box
|
|
520
524
|
"min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
|
|
521
525
|
]
|
|
522
|
-
},
|
|
526
|
+
}, rt = M({
|
|
523
527
|
name: "OrDataGridTableFooterRow",
|
|
524
528
|
props: {
|
|
525
529
|
variant: {
|
|
@@ -531,37 +535,37 @@ const _e = /* @__PURE__ */ C(Ye, [["render", Ze]]), xe = [
|
|
|
531
535
|
"root"
|
|
532
536
|
],
|
|
533
537
|
setup(e) {
|
|
534
|
-
const t = D(),
|
|
538
|
+
const t = D(), l = n(() => [
|
|
535
539
|
"or-data-grid-table-footer-row-v3",
|
|
536
|
-
...
|
|
537
|
-
...
|
|
540
|
+
...tt,
|
|
541
|
+
...at[e.variant]
|
|
538
542
|
]);
|
|
539
543
|
return {
|
|
540
544
|
root: t,
|
|
541
|
-
rootStyles:
|
|
545
|
+
rootStyles: l
|
|
542
546
|
};
|
|
543
547
|
}
|
|
544
548
|
});
|
|
545
|
-
function
|
|
546
|
-
return r(),
|
|
549
|
+
function ot(e, t, l, v, g, u) {
|
|
550
|
+
return r(), h("div", {
|
|
547
551
|
ref: "root",
|
|
548
552
|
class: f(e.rootStyles)
|
|
549
553
|
}, [
|
|
550
|
-
|
|
554
|
+
d(e.$slots, "default")
|
|
551
555
|
], 2);
|
|
552
556
|
}
|
|
553
|
-
const
|
|
557
|
+
const nt = /* @__PURE__ */ R(rt, [["render", ot]]), lt = [
|
|
554
558
|
// Layout
|
|
555
559
|
"contents"
|
|
556
|
-
],
|
|
560
|
+
], st = M({
|
|
557
561
|
name: "OrDataGridTableFooter",
|
|
558
562
|
expose: [
|
|
559
563
|
"root"
|
|
560
564
|
],
|
|
561
565
|
setup() {
|
|
562
|
-
const e = D(), t =
|
|
566
|
+
const e = D(), t = n(() => [
|
|
563
567
|
"or-data-grid-table-footer-v3",
|
|
564
|
-
...
|
|
568
|
+
...lt
|
|
565
569
|
]);
|
|
566
570
|
return {
|
|
567
571
|
root: e,
|
|
@@ -569,15 +573,15 @@ const rt = /* @__PURE__ */ C(tt, [["render", at]]), ot = [
|
|
|
569
573
|
};
|
|
570
574
|
}
|
|
571
575
|
});
|
|
572
|
-
function
|
|
573
|
-
return r(),
|
|
576
|
+
function it(e, t, l, v, g, u) {
|
|
577
|
+
return r(), h("div", {
|
|
574
578
|
ref: "root",
|
|
575
579
|
class: f(e.rootStyles)
|
|
576
580
|
}, [
|
|
577
|
-
|
|
581
|
+
d(e.$slots, "default")
|
|
578
582
|
], 2);
|
|
579
583
|
}
|
|
580
|
-
const
|
|
584
|
+
const dt = /* @__PURE__ */ R(st, [["render", it]]), ut = [
|
|
581
585
|
// Layout
|
|
582
586
|
"layout-row items-center",
|
|
583
587
|
// Spacing
|
|
@@ -596,8 +600,11 @@ const st = /* @__PURE__ */ C(nt, [["render", lt]]), it = [
|
|
|
596
600
|
"dark:[&.sticky-start]:theme-background-surface-variant-1-dark dark:[&.sticky-start]:border-e-disabled-dark",
|
|
597
601
|
// Theme (.sticky-end)
|
|
598
602
|
"[&.sticky-end]:theme-background-surface-variant-1 [&.sticky-end]:border-s-disabled [&.sticky-end]:border-solid z-20 hover:z-30",
|
|
599
|
-
"dark:[&.sticky-end]:theme-background-surface-variant-1-dark dark:[&.sticky-end]:border-s-disabled-dark"
|
|
600
|
-
|
|
603
|
+
"dark:[&.sticky-end]:theme-background-surface-variant-1-dark dark:[&.sticky-end]:border-s-disabled-dark",
|
|
604
|
+
// Theme (.resizable)
|
|
605
|
+
"[&.resizable]:border-e-disabled [&.resizable]:border-solid",
|
|
606
|
+
"dark:[&.resizable]:border-e-disabled-dark"
|
|
607
|
+
], ct = [
|
|
601
608
|
// Position
|
|
602
609
|
"absolute top-0 bottom-0 end-0 z-50",
|
|
603
610
|
// Box
|
|
@@ -608,10 +615,10 @@ const st = /* @__PURE__ */ C(nt, [["render", lt]]), it = [
|
|
|
608
615
|
"dark:hover:theme-background-primary-dark",
|
|
609
616
|
"active:theme-background-primary",
|
|
610
617
|
"dark:active:theme-background-primary-dark"
|
|
611
|
-
],
|
|
618
|
+
], mt = M({
|
|
612
619
|
name: "OrDataGridTableHeaderCell",
|
|
613
620
|
components: {
|
|
614
|
-
OrIcon:
|
|
621
|
+
OrIcon: Oe
|
|
615
622
|
},
|
|
616
623
|
model: {
|
|
617
624
|
prop: "modelValue",
|
|
@@ -641,31 +648,32 @@ const st = /* @__PURE__ */ C(nt, [["render", lt]]), it = [
|
|
|
641
648
|
"root"
|
|
642
649
|
],
|
|
643
650
|
setup(e, t) {
|
|
644
|
-
const
|
|
645
|
-
var o, c,
|
|
646
|
-
return !!((o = e.features) != null && o.sorting) && !!((c = e.column) != null && c.name) && ((
|
|
647
|
-
}),
|
|
648
|
-
var o, c;
|
|
649
|
-
return !!((o = e.features) != null && o.resizing) && !!((c = e.column) != null && c.name);
|
|
650
|
-
}), u =
|
|
651
|
+
const l = D(), v = n(() => {
|
|
652
|
+
var o, c, s;
|
|
653
|
+
return !!((o = e.features) != null && o.sorting) && !!((c = e.column) != null && c.name) && ((s = e.column) == null ? void 0 : s.sorting) !== !1;
|
|
654
|
+
}), g = n(() => {
|
|
655
|
+
var o, c, s;
|
|
656
|
+
return !!((o = e.features) != null && o.resizing) && !!((c = e.column) != null && c.name) && ((s = e.column) == null ? void 0 : s.resizing) !== !1;
|
|
657
|
+
}), u = n(() => {
|
|
651
658
|
var o;
|
|
652
659
|
return [
|
|
653
660
|
"or-data-grid-table-header-cell-v3",
|
|
654
661
|
"relative",
|
|
655
|
-
...
|
|
662
|
+
...ut,
|
|
656
663
|
...(o = e.column) != null && o.stickiness ? [`sticky-${e.column.stickiness}`] : [],
|
|
657
|
-
...
|
|
664
|
+
...g.value ? ["resizable"] : [],
|
|
665
|
+
...v.value ? ["interactivity-click"] : []
|
|
658
666
|
];
|
|
659
|
-
}),
|
|
667
|
+
}), G = n(() => [
|
|
660
668
|
"or-data-grid-table-header-cell-resize-handle-v3",
|
|
661
|
-
...
|
|
662
|
-
]),
|
|
669
|
+
...ct
|
|
670
|
+
]), I = n(() => {
|
|
663
671
|
var o, c;
|
|
664
672
|
return {
|
|
665
673
|
minWidth: ((o = e.column) == null ? void 0 : o.minWidth) || B,
|
|
666
674
|
maxWidth: (c = e.column) == null ? void 0 : c.maxWidth
|
|
667
675
|
};
|
|
668
|
-
}), S =
|
|
676
|
+
}), S = n(() => {
|
|
669
677
|
if (e.column)
|
|
670
678
|
switch (e.column.stickiness) {
|
|
671
679
|
case "start":
|
|
@@ -691,19 +699,19 @@ const st = /* @__PURE__ */ C(nt, [["render", lt]]), it = [
|
|
|
691
699
|
return {
|
|
692
700
|
justifyContent: "center"
|
|
693
701
|
};
|
|
694
|
-
}), O =
|
|
702
|
+
}), O = n({
|
|
695
703
|
get: () => {
|
|
696
704
|
var o, c;
|
|
697
|
-
if (
|
|
705
|
+
if (v.value)
|
|
698
706
|
return ((o = e.modelValue) == null ? void 0 : o.column) === ((c = e.column) == null ? void 0 : c.name) ? e.modelValue : void 0;
|
|
699
707
|
},
|
|
700
708
|
set: (o) => {
|
|
701
709
|
t.emit("update:modelValue", o);
|
|
702
710
|
}
|
|
703
711
|
});
|
|
704
|
-
function
|
|
712
|
+
function T() {
|
|
705
713
|
var o;
|
|
706
|
-
if (
|
|
714
|
+
if (v.value)
|
|
707
715
|
if (O.value)
|
|
708
716
|
O.value = {
|
|
709
717
|
...O.value,
|
|
@@ -718,31 +726,31 @@ const st = /* @__PURE__ */ C(nt, [["render", lt]]), it = [
|
|
|
718
726
|
};
|
|
719
727
|
}
|
|
720
728
|
}
|
|
721
|
-
function
|
|
722
|
-
var
|
|
723
|
-
const c = o.pageX,
|
|
724
|
-
var
|
|
725
|
-
const
|
|
726
|
-
let
|
|
727
|
-
const P = ((
|
|
729
|
+
function C(o) {
|
|
730
|
+
var H;
|
|
731
|
+
const c = o.pageX, s = ((H = l.value) == null ? void 0 : H.offsetWidth) || 0, F = (U) => {
|
|
732
|
+
var L, A;
|
|
733
|
+
const X = U.pageX - c;
|
|
734
|
+
let W = Math.max(0, s + X);
|
|
735
|
+
const P = ((L = e.column) == null ? void 0 : L.minWidth) || B;
|
|
728
736
|
if (P && (P.endsWith("px") || !isNaN(Number(P)))) {
|
|
729
|
-
const
|
|
730
|
-
|
|
737
|
+
const j = parseInt(P, 10);
|
|
738
|
+
W = Math.max(W, j);
|
|
731
739
|
}
|
|
732
|
-
if ((
|
|
733
|
-
const
|
|
734
|
-
|
|
740
|
+
if ((A = e.column) != null && A.maxWidth && (e.column.maxWidth.endsWith("px") || !isNaN(Number(e.column.maxWidth)))) {
|
|
741
|
+
const j = parseInt(e.column.maxWidth, 10);
|
|
742
|
+
W = Math.min(W, j);
|
|
735
743
|
}
|
|
736
|
-
t.emit("update:column-width",
|
|
737
|
-
},
|
|
738
|
-
document.removeEventListener("mousemove",
|
|
744
|
+
t.emit("update:column-width", W);
|
|
745
|
+
}, E = () => {
|
|
746
|
+
document.removeEventListener("mousemove", F), document.removeEventListener("mouseup", E);
|
|
739
747
|
};
|
|
740
|
-
document.addEventListener("mousemove",
|
|
748
|
+
document.addEventListener("mousemove", F), document.addEventListener("mouseup", E);
|
|
741
749
|
}
|
|
742
|
-
const { width:
|
|
743
|
-
return
|
|
744
|
-
|
|
745
|
-
|
|
750
|
+
const { width: V } = $e(l, void 0, { box: "border-box" });
|
|
751
|
+
return ae([
|
|
752
|
+
l,
|
|
753
|
+
V,
|
|
746
754
|
() => {
|
|
747
755
|
var o;
|
|
748
756
|
return (o = e.column) == null ? void 0 : o.stickiness;
|
|
@@ -751,52 +759,52 @@ const st = /* @__PURE__ */ C(nt, [["render", lt]]), it = [
|
|
|
751
759
|
o,
|
|
752
760
|
c
|
|
753
761
|
], [
|
|
754
|
-
|
|
762
|
+
s
|
|
755
763
|
]) => {
|
|
756
|
-
|
|
764
|
+
s && s !== o && t.emit("remove:scrollOffset", s), t.emit("update:scrollOffset", o, c, e.column);
|
|
757
765
|
}), {
|
|
758
|
-
root:
|
|
766
|
+
root: l,
|
|
759
767
|
rootStyles: u,
|
|
760
768
|
rootInlineStyles: S,
|
|
761
|
-
wrapInlineStyle:
|
|
762
|
-
resizeHandleStyles:
|
|
763
|
-
isSortable:
|
|
764
|
-
isResizable:
|
|
769
|
+
wrapInlineStyle: I,
|
|
770
|
+
resizeHandleStyles: G,
|
|
771
|
+
isSortable: v,
|
|
772
|
+
isResizable: g,
|
|
765
773
|
model: O,
|
|
766
|
-
toggleSorting:
|
|
767
|
-
onResizeStart:
|
|
774
|
+
toggleSorting: T,
|
|
775
|
+
onResizeStart: C,
|
|
768
776
|
DATA_GRID_DEFAULT_MIN_WIDTH: B
|
|
769
777
|
};
|
|
770
778
|
}
|
|
771
779
|
});
|
|
772
|
-
function
|
|
773
|
-
const
|
|
774
|
-
return r(),
|
|
780
|
+
function ft(e, t, l, v, g, u) {
|
|
781
|
+
const G = m("OrIcon");
|
|
782
|
+
return r(), h("div", {
|
|
775
783
|
ref: "root",
|
|
776
784
|
class: f(e.rootStyles),
|
|
777
785
|
style: K(e.rootInlineStyles),
|
|
778
|
-
onClick: t[2] || (t[2] = (
|
|
786
|
+
onClick: t[2] || (t[2] = (I) => e.toggleSorting())
|
|
779
787
|
}, [
|
|
780
|
-
|
|
788
|
+
ie("div", {
|
|
781
789
|
class: f(["truncate"]),
|
|
782
790
|
style: K(e.wrapInlineStyle)
|
|
783
791
|
}, [
|
|
784
|
-
|
|
792
|
+
d(e.$slots, "default")
|
|
785
793
|
], 4),
|
|
786
|
-
e.model ? (r(), y(
|
|
794
|
+
e.model ? (r(), y(G, {
|
|
787
795
|
key: 0,
|
|
788
796
|
icon: e.model.direction === "asc" ? "arrow_upward" : "arrow_downward"
|
|
789
|
-
}, null, 8, ["icon"])) :
|
|
790
|
-
e.isResizable ? (r(),
|
|
797
|
+
}, null, 8, ["icon"])) : p("", !0),
|
|
798
|
+
e.isResizable ? (r(), h("div", {
|
|
791
799
|
key: 1,
|
|
792
800
|
class: f(e.resizeHandleStyles),
|
|
793
|
-
onMousedown: t[0] || (t[0] =
|
|
794
|
-
onClick: t[1] || (t[1] =
|
|
801
|
+
onMousedown: t[0] || (t[0] = ee((...I) => e.onResizeStart && e.onResizeStart(...I), ["stop", "prevent"])),
|
|
802
|
+
onClick: t[1] || (t[1] = ee(() => {
|
|
795
803
|
}, ["stop"]))
|
|
796
|
-
}, null, 34)) :
|
|
804
|
+
}, null, 34)) : p("", !0)
|
|
797
805
|
], 6);
|
|
798
806
|
}
|
|
799
|
-
const
|
|
807
|
+
const gt = /* @__PURE__ */ R(mt, [["render", ft]]), pt = [
|
|
800
808
|
// Position
|
|
801
809
|
"sticky top-0 z-10",
|
|
802
810
|
// Layout
|
|
@@ -808,7 +816,7 @@ const mt = /* @__PURE__ */ C(ut, [["render", ct]]), ft = [
|
|
|
808
816
|
"dark:children:theme-foreground-default-dark",
|
|
809
817
|
"children:theme-background-surface-variant-1",
|
|
810
818
|
"dark:children:theme-background-surface-variant-1-dark"
|
|
811
|
-
],
|
|
819
|
+
], ht = {
|
|
812
820
|
[k.Standard]: [
|
|
813
821
|
// Box
|
|
814
822
|
"min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
|
|
@@ -825,7 +833,7 @@ const mt = /* @__PURE__ */ C(ut, [["render", ct]]), ft = [
|
|
|
825
833
|
// Box
|
|
826
834
|
"min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
|
|
827
835
|
]
|
|
828
|
-
},
|
|
836
|
+
}, vt = M({
|
|
829
837
|
name: "OrDataGridTableHeaderRow",
|
|
830
838
|
props: {
|
|
831
839
|
variant: {
|
|
@@ -837,37 +845,37 @@ const mt = /* @__PURE__ */ C(ut, [["render", ct]]), ft = [
|
|
|
837
845
|
"root"
|
|
838
846
|
],
|
|
839
847
|
setup(e) {
|
|
840
|
-
const t = D(),
|
|
848
|
+
const t = D(), l = n(() => [
|
|
841
849
|
"or-data-grid-table-header-row-v3",
|
|
842
|
-
...
|
|
843
|
-
...
|
|
850
|
+
...pt,
|
|
851
|
+
...ht[e.variant]
|
|
844
852
|
]);
|
|
845
853
|
return {
|
|
846
854
|
root: t,
|
|
847
|
-
rootStyles:
|
|
855
|
+
rootStyles: l
|
|
848
856
|
};
|
|
849
857
|
}
|
|
850
858
|
});
|
|
851
|
-
function
|
|
852
|
-
return r(),
|
|
859
|
+
function bt(e, t, l, v, g, u) {
|
|
860
|
+
return r(), h("div", {
|
|
853
861
|
ref: "root",
|
|
854
862
|
class: f(e.rootStyles)
|
|
855
863
|
}, [
|
|
856
|
-
|
|
864
|
+
d(e.$slots, "default")
|
|
857
865
|
], 2);
|
|
858
866
|
}
|
|
859
|
-
const
|
|
867
|
+
const yt = /* @__PURE__ */ R(vt, [["render", bt]]), kt = [
|
|
860
868
|
// Layout
|
|
861
869
|
"contents"
|
|
862
|
-
],
|
|
870
|
+
], Ot = M({
|
|
863
871
|
name: "OrDataGridTableHeader",
|
|
864
872
|
expose: [
|
|
865
873
|
"root"
|
|
866
874
|
],
|
|
867
875
|
setup() {
|
|
868
|
-
const e = D(), t =
|
|
876
|
+
const e = D(), t = n(() => [
|
|
869
877
|
"or-data-grid-table-header-v3",
|
|
870
|
-
...
|
|
878
|
+
...kt
|
|
871
879
|
]);
|
|
872
880
|
return {
|
|
873
881
|
root: e,
|
|
@@ -875,15 +883,15 @@ const vt = /* @__PURE__ */ C(pt, [["render", ht]]), bt = [
|
|
|
875
883
|
};
|
|
876
884
|
}
|
|
877
885
|
});
|
|
878
|
-
function
|
|
879
|
-
return r(),
|
|
886
|
+
function $t(e, t, l, v, g, u) {
|
|
887
|
+
return r(), h("div", {
|
|
880
888
|
ref: "root",
|
|
881
889
|
class: f(e.rootStyles)
|
|
882
890
|
}, [
|
|
883
|
-
|
|
891
|
+
d(e.$slots, "default")
|
|
884
892
|
], 2);
|
|
885
893
|
}
|
|
886
|
-
const
|
|
894
|
+
const wt = /* @__PURE__ */ R(Ot, [["render", $t]]), Dt = [
|
|
887
895
|
// Layout
|
|
888
896
|
"layout-row justify-center items-center",
|
|
889
897
|
// Spacing
|
|
@@ -897,7 +905,7 @@ const Ot = /* @__PURE__ */ C(yt, [["render", kt]]), $t = [
|
|
|
897
905
|
"dark:theme-foreground-default-dark",
|
|
898
906
|
"theme-background-default",
|
|
899
907
|
"dark:theme-background-default-dark"
|
|
900
|
-
],
|
|
908
|
+
], St = {
|
|
901
909
|
[k.Standard]: [
|
|
902
910
|
// Box
|
|
903
911
|
"min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
|
|
@@ -914,7 +922,7 @@ const Ot = /* @__PURE__ */ C(yt, [["render", kt]]), $t = [
|
|
|
914
922
|
// Box
|
|
915
923
|
"min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
|
|
916
924
|
]
|
|
917
|
-
},
|
|
925
|
+
}, Tt = M({
|
|
918
926
|
name: "OrDataGridTablePlaceholder",
|
|
919
927
|
props: {
|
|
920
928
|
variant: {
|
|
@@ -926,26 +934,26 @@ const Ot = /* @__PURE__ */ C(yt, [["render", kt]]), $t = [
|
|
|
926
934
|
"root"
|
|
927
935
|
],
|
|
928
936
|
setup(e) {
|
|
929
|
-
const t = D(),
|
|
937
|
+
const t = D(), l = n(() => [
|
|
930
938
|
"or-data-grid-table-placeholder-v3",
|
|
931
|
-
|
|
932
|
-
...
|
|
939
|
+
...Dt,
|
|
940
|
+
...St[e.variant]
|
|
933
941
|
]);
|
|
934
942
|
return {
|
|
935
943
|
root: t,
|
|
936
|
-
rootStyles:
|
|
944
|
+
rootStyles: l
|
|
937
945
|
};
|
|
938
946
|
}
|
|
939
947
|
});
|
|
940
|
-
function
|
|
941
|
-
return r(),
|
|
948
|
+
function Gt(e, t, l, v, g, u) {
|
|
949
|
+
return r(), h("div", {
|
|
942
950
|
ref: "root",
|
|
943
951
|
class: f(e.rootStyles)
|
|
944
952
|
}, [
|
|
945
|
-
|
|
953
|
+
d(e.$slots, "default")
|
|
946
954
|
], 2);
|
|
947
955
|
}
|
|
948
|
-
const
|
|
956
|
+
const Ct = /* @__PURE__ */ R(Tt, [["render", Gt]]), Vt = [
|
|
949
957
|
// Layout
|
|
950
958
|
"grid content-start",
|
|
951
959
|
"w-full min-w-0",
|
|
@@ -953,7 +961,7 @@ const Tt = /* @__PURE__ */ C(Dt, [["render", St]]), Gt = [
|
|
|
953
961
|
"overflow-auto",
|
|
954
962
|
// Interactivity
|
|
955
963
|
"interactivity-default"
|
|
956
|
-
],
|
|
964
|
+
], Mt = M({
|
|
957
965
|
name: "OrDataGridTable",
|
|
958
966
|
props: {
|
|
959
967
|
columns: {
|
|
@@ -969,51 +977,51 @@ const Tt = /* @__PURE__ */ C(Dt, [["render", St]]), Gt = [
|
|
|
969
977
|
"root"
|
|
970
978
|
],
|
|
971
979
|
setup(e) {
|
|
972
|
-
const t = D(),
|
|
980
|
+
const t = D(), l = n(() => [
|
|
973
981
|
"or-data-grid-table-v3",
|
|
974
|
-
...
|
|
975
|
-
]),
|
|
976
|
-
const
|
|
982
|
+
...Vt
|
|
983
|
+
]), v = n(() => {
|
|
984
|
+
const g = e.columns.map((u) => {
|
|
977
985
|
if (u.width && (u.width.includes("minmax") || u.width.includes("calc")))
|
|
978
986
|
return u.width;
|
|
979
|
-
const
|
|
980
|
-
let S = u.maxWidth ||
|
|
981
|
-
return
|
|
987
|
+
const G = u.width ?? "1fr", I = u.minWidth || (u.width ? B : "120px");
|
|
988
|
+
let S = u.maxWidth || G;
|
|
989
|
+
return G.endsWith("px") ? G : `minmax(${I}, ${S})`;
|
|
982
990
|
});
|
|
983
|
-
return e.features.selecting ? { gridTemplateColumns: `min-content ${
|
|
991
|
+
return e.features.selecting ? { gridTemplateColumns: `min-content ${g.join(" ")}` } : { gridTemplateColumns: g.join(" ") };
|
|
984
992
|
});
|
|
985
993
|
return {
|
|
986
994
|
root: t,
|
|
987
|
-
rootStyles:
|
|
988
|
-
rootInlineStyles:
|
|
995
|
+
rootStyles: l,
|
|
996
|
+
rootInlineStyles: v
|
|
989
997
|
};
|
|
990
998
|
}
|
|
991
999
|
});
|
|
992
|
-
function
|
|
993
|
-
return r(),
|
|
1000
|
+
function Rt(e, t, l, v, g, u) {
|
|
1001
|
+
return r(), h("div", {
|
|
994
1002
|
ref: "root",
|
|
995
1003
|
class: f(e.rootStyles),
|
|
996
1004
|
style: K(e.rootInlineStyles)
|
|
997
1005
|
}, [
|
|
998
|
-
|
|
1006
|
+
d(e.$slots, "default")
|
|
999
1007
|
], 6);
|
|
1000
1008
|
}
|
|
1001
|
-
const
|
|
1009
|
+
const It = /* @__PURE__ */ R(Mt, [["render", Rt]]), zt = [
|
|
1002
1010
|
// Layout
|
|
1003
1011
|
"layout-row",
|
|
1004
1012
|
// Box
|
|
1005
1013
|
"h-2xl",
|
|
1006
1014
|
// Spacing
|
|
1007
1015
|
"gap-xl"
|
|
1008
|
-
],
|
|
1016
|
+
], Ht = M({
|
|
1009
1017
|
name: "OrDataGridToolbar",
|
|
1010
1018
|
expose: [
|
|
1011
1019
|
"root"
|
|
1012
1020
|
],
|
|
1013
1021
|
setup() {
|
|
1014
|
-
const e = D(), t =
|
|
1022
|
+
const e = D(), t = n(() => [
|
|
1015
1023
|
"or-data-grid-toolbar-v3",
|
|
1016
|
-
...
|
|
1024
|
+
...zt
|
|
1017
1025
|
]);
|
|
1018
1026
|
return {
|
|
1019
1027
|
root: e,
|
|
@@ -1021,15 +1029,15 @@ const Mt = /* @__PURE__ */ C(Ct, [["render", Vt]]), Rt = [
|
|
|
1021
1029
|
};
|
|
1022
1030
|
}
|
|
1023
1031
|
});
|
|
1024
|
-
function
|
|
1025
|
-
return r(),
|
|
1032
|
+
function Ft(e, t, l, v, g, u) {
|
|
1033
|
+
return r(), h("div", {
|
|
1026
1034
|
ref: "root",
|
|
1027
1035
|
class: f(e.rootStyles)
|
|
1028
1036
|
}, [
|
|
1029
|
-
|
|
1037
|
+
d(e.$slots, "default")
|
|
1030
1038
|
], 2);
|
|
1031
1039
|
}
|
|
1032
|
-
const
|
|
1040
|
+
const Wt = /* @__PURE__ */ R(Ht, [["render", Ft]]), Pt = [
|
|
1033
1041
|
// Position
|
|
1034
1042
|
"grid sticky z-10",
|
|
1035
1043
|
// Layout
|
|
@@ -1051,9 +1059,9 @@ const Ft = /* @__PURE__ */ C(It, [["render", Ht]]), Wt = [
|
|
|
1051
1059
|
// Position
|
|
1052
1060
|
"top-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
|
|
1053
1061
|
]
|
|
1054
|
-
},
|
|
1062
|
+
}, jt = M({
|
|
1055
1063
|
components: {
|
|
1056
|
-
OrNotification:
|
|
1064
|
+
OrNotification: we
|
|
1057
1065
|
},
|
|
1058
1066
|
props: {
|
|
1059
1067
|
notification: {
|
|
@@ -1070,31 +1078,31 @@ const Ft = /* @__PURE__ */ C(It, [["render", Ht]]), Wt = [
|
|
|
1070
1078
|
],
|
|
1071
1079
|
setup(e) {
|
|
1072
1080
|
return {
|
|
1073
|
-
rootStyles:
|
|
1081
|
+
rootStyles: n(() => [
|
|
1074
1082
|
"or-data-grid-notification-v3",
|
|
1075
|
-
...
|
|
1083
|
+
...Pt,
|
|
1076
1084
|
...Et[e.variant]
|
|
1077
1085
|
])
|
|
1078
1086
|
};
|
|
1079
1087
|
}
|
|
1080
1088
|
});
|
|
1081
|
-
function
|
|
1082
|
-
const
|
|
1083
|
-
return r(),
|
|
1089
|
+
function Nt(e, t, l, v, g, u) {
|
|
1090
|
+
const G = m("OrNotification");
|
|
1091
|
+
return r(), h("div", {
|
|
1084
1092
|
class: f(e.rootStyles)
|
|
1085
1093
|
}, [
|
|
1086
|
-
|
|
1094
|
+
z(G, de(e.notification, {
|
|
1087
1095
|
class: "rounded-0 shadow-none",
|
|
1088
|
-
onClose: t[0] || (t[0] = (
|
|
1096
|
+
onClose: t[0] || (t[0] = (I) => e.$emit("close-notification"))
|
|
1089
1097
|
}), {
|
|
1090
1098
|
default: b(() => [
|
|
1091
|
-
e.$slots.notification ?
|
|
1099
|
+
e.$slots.notification ? d(e.$slots, "notification", { key: 0 }) : p("", !0)
|
|
1092
1100
|
]),
|
|
1093
1101
|
_: 3
|
|
1094
1102
|
}, 16)
|
|
1095
1103
|
], 2);
|
|
1096
1104
|
}
|
|
1097
|
-
const
|
|
1105
|
+
const Ut = /* @__PURE__ */ R(jt, [["render", Nt]]), Lt = [
|
|
1098
1106
|
// Layout
|
|
1099
1107
|
"grid col-span-full grid-cols-[subgrid]",
|
|
1100
1108
|
// Typography
|
|
@@ -1107,7 +1115,7 @@ const jt = /* @__PURE__ */ C(Pt, [["render", zt]]), Nt = [
|
|
|
1107
1115
|
"dark:children:theme-foreground-default-dark",
|
|
1108
1116
|
"children:theme-background-default",
|
|
1109
1117
|
"dark:children:theme-background-default-dark"
|
|
1110
|
-
],
|
|
1118
|
+
], At = {
|
|
1111
1119
|
[k.Standard]: [
|
|
1112
1120
|
// Box
|
|
1113
1121
|
"min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
|
|
@@ -1124,7 +1132,7 @@ const jt = /* @__PURE__ */ C(Pt, [["render", zt]]), Nt = [
|
|
|
1124
1132
|
// Box
|
|
1125
1133
|
"min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
|
|
1126
1134
|
]
|
|
1127
|
-
},
|
|
1135
|
+
}, qt = M({
|
|
1128
1136
|
name: "OrDataGridTableExtraRow",
|
|
1129
1137
|
props: {
|
|
1130
1138
|
variant: {
|
|
@@ -1136,51 +1144,51 @@ const jt = /* @__PURE__ */ C(Pt, [["render", zt]]), Nt = [
|
|
|
1136
1144
|
"root"
|
|
1137
1145
|
],
|
|
1138
1146
|
setup(e) {
|
|
1139
|
-
const t = D(),
|
|
1147
|
+
const t = D(), l = n(() => [
|
|
1140
1148
|
"or-data-grid-table-extra-row-v3",
|
|
1141
|
-
...
|
|
1142
|
-
...
|
|
1149
|
+
...Lt,
|
|
1150
|
+
...At[e.variant]
|
|
1143
1151
|
]);
|
|
1144
1152
|
return {
|
|
1145
1153
|
root: t,
|
|
1146
|
-
rootStyles:
|
|
1154
|
+
rootStyles: l
|
|
1147
1155
|
};
|
|
1148
1156
|
}
|
|
1149
1157
|
});
|
|
1150
|
-
function
|
|
1151
|
-
return r(),
|
|
1158
|
+
function Bt(e, t, l, v, g, u) {
|
|
1159
|
+
return r(), h("div", {
|
|
1152
1160
|
ref: "root",
|
|
1153
1161
|
class: f(e.rootStyles)
|
|
1154
1162
|
}, [
|
|
1155
|
-
|
|
1163
|
+
d(e.$slots, "default")
|
|
1156
1164
|
], 2);
|
|
1157
1165
|
}
|
|
1158
|
-
const
|
|
1166
|
+
const Kt = /* @__PURE__ */ R(qt, [["render", Bt]]), Xt = [
|
|
1159
1167
|
// Layout
|
|
1160
1168
|
"layout-column"
|
|
1161
|
-
],
|
|
1169
|
+
], Jt = M({
|
|
1162
1170
|
name: "OrDataGrid",
|
|
1163
1171
|
components: {
|
|
1164
|
-
OrCheckbox:
|
|
1165
|
-
OrDataGridFooter:
|
|
1166
|
-
OrDataGridHeader:
|
|
1167
|
-
OrDataGridTable:
|
|
1168
|
-
OrDataGridTableContent:
|
|
1169
|
-
OrDataGridTableContentCell:
|
|
1170
|
-
OrDataGridTableContentRow:
|
|
1171
|
-
OrDataGridTableFooter:
|
|
1172
|
-
OrDataGridTableFooterCell:
|
|
1173
|
-
OrDataGridTableFooterRow:
|
|
1174
|
-
OrDataGridTableExtraRow:
|
|
1175
|
-
OrDataGridTableHeader:
|
|
1176
|
-
OrDataGridTableHeaderCell:
|
|
1177
|
-
OrDataGridTableHeaderRow:
|
|
1178
|
-
OrDataGridTablePlaceholder:
|
|
1179
|
-
OrDataGridToolbar:
|
|
1180
|
-
OrDataGridNotification:
|
|
1181
|
-
OrPagination:
|
|
1182
|
-
OrSearch:
|
|
1183
|
-
OrSkeletonText:
|
|
1172
|
+
OrCheckbox: te,
|
|
1173
|
+
OrDataGridFooter: Ve,
|
|
1174
|
+
OrDataGridHeader: Fe,
|
|
1175
|
+
OrDataGridTable: It,
|
|
1176
|
+
OrDataGridTableContent: Ye,
|
|
1177
|
+
OrDataGridTableContentCell: Ne,
|
|
1178
|
+
OrDataGridTableContentRow: Ke,
|
|
1179
|
+
OrDataGridTableFooter: dt,
|
|
1180
|
+
OrDataGridTableFooterCell: et,
|
|
1181
|
+
OrDataGridTableFooterRow: nt,
|
|
1182
|
+
OrDataGridTableExtraRow: Kt,
|
|
1183
|
+
OrDataGridTableHeader: wt,
|
|
1184
|
+
OrDataGridTableHeaderCell: gt,
|
|
1185
|
+
OrDataGridTableHeaderRow: yt,
|
|
1186
|
+
OrDataGridTablePlaceholder: Ct,
|
|
1187
|
+
OrDataGridToolbar: Wt,
|
|
1188
|
+
OrDataGridNotification: Ut,
|
|
1189
|
+
OrPagination: ne,
|
|
1190
|
+
OrSearch: le,
|
|
1191
|
+
OrSkeletonText: se
|
|
1184
1192
|
},
|
|
1185
1193
|
model: {
|
|
1186
1194
|
prop: "modelValue",
|
|
@@ -1234,23 +1242,23 @@ const qt = /* @__PURE__ */ C(Lt, [["render", At]]), Bt = [
|
|
|
1234
1242
|
"root"
|
|
1235
1243
|
],
|
|
1236
1244
|
setup(e, t) {
|
|
1237
|
-
const
|
|
1245
|
+
const l = D(), v = D(), g = D(), u = n(() => [
|
|
1238
1246
|
"or-data-grid-v3",
|
|
1239
|
-
...
|
|
1240
|
-
]),
|
|
1241
|
-
scrollPaddingInlineStart: `${[...o.value.values()].reduce((a,
|
|
1242
|
-
scrollPaddingInlineEnd: `${[...c.value.values()].reduce((a,
|
|
1243
|
-
})),
|
|
1247
|
+
...Xt
|
|
1248
|
+
]), G = n(() => ({
|
|
1249
|
+
scrollPaddingInlineStart: `${[...o.value.values()].reduce((a, w) => a + w, 0)}px`,
|
|
1250
|
+
scrollPaddingInlineEnd: `${[...c.value.values()].reduce((a, w) => a + w, 0)}px`
|
|
1251
|
+
})), I = n({
|
|
1244
1252
|
get: () => !!e.items.length && e.items.every((a) => S.value.includes(a.id)),
|
|
1245
1253
|
set: (a) => {
|
|
1246
1254
|
a ? S.value = [
|
|
1247
1255
|
.../* @__PURE__ */ new Set([
|
|
1248
1256
|
...S.value,
|
|
1249
|
-
...e.items.map((
|
|
1257
|
+
...e.items.map((w) => w.id)
|
|
1250
1258
|
])
|
|
1251
1259
|
] : S.value = [];
|
|
1252
1260
|
}
|
|
1253
|
-
}), S =
|
|
1261
|
+
}), S = n({
|
|
1254
1262
|
get: () => {
|
|
1255
1263
|
var a;
|
|
1256
1264
|
return ((a = e.modelValue) == null ? void 0 : a.selecting) ?? [];
|
|
@@ -1259,12 +1267,12 @@ const qt = /* @__PURE__ */ C(Lt, [["render", At]]), Bt = [
|
|
|
1259
1267
|
t.emit("update:modelValue", {
|
|
1260
1268
|
selecting: a,
|
|
1261
1269
|
filtering: O.value,
|
|
1262
|
-
searching:
|
|
1263
|
-
sorting:
|
|
1264
|
-
paging:
|
|
1270
|
+
searching: T.value,
|
|
1271
|
+
sorting: C.value,
|
|
1272
|
+
paging: V.value
|
|
1265
1273
|
});
|
|
1266
1274
|
}
|
|
1267
|
-
}), O =
|
|
1275
|
+
}), O = n({
|
|
1268
1276
|
get: () => {
|
|
1269
1277
|
var a;
|
|
1270
1278
|
return (a = e.modelValue) == null ? void 0 : a.filtering;
|
|
@@ -1273,15 +1281,15 @@ const qt = /* @__PURE__ */ C(Lt, [["render", At]]), Bt = [
|
|
|
1273
1281
|
t.emit("update:modelValue", {
|
|
1274
1282
|
selecting: S.value,
|
|
1275
1283
|
filtering: a,
|
|
1276
|
-
searching:
|
|
1277
|
-
sorting:
|
|
1284
|
+
searching: T.value,
|
|
1285
|
+
sorting: C.value,
|
|
1278
1286
|
paging: {
|
|
1279
|
-
...
|
|
1287
|
+
...V.value,
|
|
1280
1288
|
offset: 0
|
|
1281
1289
|
}
|
|
1282
1290
|
});
|
|
1283
1291
|
}
|
|
1284
|
-
}),
|
|
1292
|
+
}), T = n({
|
|
1285
1293
|
get: () => {
|
|
1286
1294
|
var a;
|
|
1287
1295
|
return (a = e.modelValue) == null ? void 0 : a.searching;
|
|
@@ -1291,14 +1299,14 @@ const qt = /* @__PURE__ */ C(Lt, [["render", At]]), Bt = [
|
|
|
1291
1299
|
selecting: S.value,
|
|
1292
1300
|
filtering: O.value,
|
|
1293
1301
|
searching: a,
|
|
1294
|
-
sorting:
|
|
1302
|
+
sorting: C.value,
|
|
1295
1303
|
paging: {
|
|
1296
|
-
...
|
|
1304
|
+
...V.value,
|
|
1297
1305
|
offset: 0
|
|
1298
1306
|
}
|
|
1299
1307
|
});
|
|
1300
1308
|
}
|
|
1301
|
-
}),
|
|
1309
|
+
}), C = n({
|
|
1302
1310
|
get: () => {
|
|
1303
1311
|
var a;
|
|
1304
1312
|
return (a = e.modelValue) == null ? void 0 : a.sorting;
|
|
@@ -1307,15 +1315,15 @@ const qt = /* @__PURE__ */ C(Lt, [["render", At]]), Bt = [
|
|
|
1307
1315
|
t.emit("update:modelValue", {
|
|
1308
1316
|
selecting: S.value,
|
|
1309
1317
|
filtering: O.value,
|
|
1310
|
-
searching:
|
|
1318
|
+
searching: T.value,
|
|
1311
1319
|
sorting: a,
|
|
1312
1320
|
paging: {
|
|
1313
|
-
...
|
|
1321
|
+
...V.value,
|
|
1314
1322
|
offset: 0
|
|
1315
1323
|
}
|
|
1316
1324
|
});
|
|
1317
1325
|
}
|
|
1318
|
-
}),
|
|
1326
|
+
}), V = n({
|
|
1319
1327
|
get: () => {
|
|
1320
1328
|
var a;
|
|
1321
1329
|
return (a = e.modelValue) == null ? void 0 : a.paging;
|
|
@@ -1324,159 +1332,164 @@ const qt = /* @__PURE__ */ C(Lt, [["render", At]]), Bt = [
|
|
|
1324
1332
|
t.emit("update:modelValue", {
|
|
1325
1333
|
selecting: S.value,
|
|
1326
1334
|
filtering: O.value,
|
|
1327
|
-
searching:
|
|
1328
|
-
sorting:
|
|
1335
|
+
searching: T.value,
|
|
1336
|
+
sorting: C.value,
|
|
1329
1337
|
paging: a
|
|
1330
1338
|
});
|
|
1331
1339
|
}
|
|
1332
1340
|
});
|
|
1333
|
-
|
|
1341
|
+
ae(() => {
|
|
1334
1342
|
var a;
|
|
1335
|
-
return (a =
|
|
1343
|
+
return (a = V.value) == null ? void 0 : a.offset;
|
|
1336
1344
|
}, () => {
|
|
1337
1345
|
var a;
|
|
1338
|
-
(a =
|
|
1346
|
+
(a = g.value) != null && a.root && g.value.root.scrollTo({
|
|
1339
1347
|
top: 0,
|
|
1340
1348
|
behavior: "smooth"
|
|
1341
1349
|
});
|
|
1342
1350
|
});
|
|
1343
|
-
const o = D(/* @__PURE__ */ new Map()), c = D(/* @__PURE__ */ new Map()),
|
|
1351
|
+
const o = D(/* @__PURE__ */ new Map()), c = D(/* @__PURE__ */ new Map()), s = n(() => e.features.selecting && (typeof e.features.selecting == "object" ? e.features.selecting.showCounter !== !1 : !0)), F = n(() => e.items.length === 0 || e.loading || typeof e.features.selecting == "object" && e.features.selecting.disabled), E = n(() => {
|
|
1344
1352
|
var a;
|
|
1345
|
-
return ((a =
|
|
1346
|
-
})
|
|
1347
|
-
|
|
1348
|
-
|
|
1353
|
+
return ((a = v.value) == null ? void 0 : a.currentLimit) || 10;
|
|
1354
|
+
}), H = D({}), U = n(() => e.columns.map((a) => ({
|
|
1355
|
+
...a,
|
|
1356
|
+
width: H.value[a.name] || a.width
|
|
1357
|
+
})));
|
|
1358
|
+
function X(a) {
|
|
1359
|
+
T.value = a;
|
|
1349
1360
|
}
|
|
1350
|
-
function
|
|
1351
|
-
switch (
|
|
1361
|
+
function W(a, w, N) {
|
|
1362
|
+
switch (N.stickiness) {
|
|
1352
1363
|
case "start":
|
|
1353
|
-
o.value.set(a,
|
|
1364
|
+
o.value.set(a, w), o.value = new Map(o.value), c.value.delete(a), c.value = new Map(c.value);
|
|
1354
1365
|
break;
|
|
1355
1366
|
case "end":
|
|
1356
|
-
o.value.delete(a), o.value = new Map(o.value), c.value.set(a,
|
|
1367
|
+
o.value.delete(a), o.value = new Map(o.value), c.value.set(a, w), c.value = new Map(c.value);
|
|
1357
1368
|
break;
|
|
1358
1369
|
default:
|
|
1359
|
-
|
|
1370
|
+
x(a);
|
|
1360
1371
|
break;
|
|
1361
1372
|
}
|
|
1362
1373
|
}
|
|
1363
|
-
function
|
|
1374
|
+
function P(a) {
|
|
1364
1375
|
e.interactiveRows && t.emit("hover:row", a);
|
|
1365
1376
|
}
|
|
1366
|
-
function
|
|
1377
|
+
function L(a) {
|
|
1367
1378
|
e.interactiveRows && t.emit("blur:row", a);
|
|
1368
1379
|
}
|
|
1369
|
-
function
|
|
1380
|
+
function A(a, w, N) {
|
|
1370
1381
|
e.interactiveRows && t.emit("hover:cell", {
|
|
1371
1382
|
item: a,
|
|
1372
|
-
columnName:
|
|
1373
|
-
value:
|
|
1383
|
+
columnName: w,
|
|
1384
|
+
value: N
|
|
1374
1385
|
});
|
|
1375
1386
|
}
|
|
1376
|
-
function
|
|
1387
|
+
function j(a, w, N) {
|
|
1377
1388
|
e.interactiveRows && t.emit("blur:cell", {
|
|
1378
1389
|
item: a,
|
|
1379
|
-
columnName:
|
|
1380
|
-
value:
|
|
1390
|
+
columnName: w,
|
|
1391
|
+
value: N
|
|
1381
1392
|
});
|
|
1382
1393
|
}
|
|
1383
|
-
function
|
|
1394
|
+
function i(a) {
|
|
1384
1395
|
e.interactiveRows && t.emit("click:row", a);
|
|
1385
1396
|
}
|
|
1386
|
-
function
|
|
1387
|
-
|
|
1397
|
+
function $(a, w) {
|
|
1398
|
+
H.value = {
|
|
1399
|
+
...H.value,
|
|
1400
|
+
[a.name]: `${w}px`
|
|
1401
|
+
}, e.features.storageKey && J();
|
|
1388
1402
|
}
|
|
1389
|
-
function
|
|
1403
|
+
function J() {
|
|
1390
1404
|
if (typeof window > "u" || !e.features.storageKey) return;
|
|
1391
1405
|
const a = {};
|
|
1392
|
-
|
|
1393
|
-
|
|
1406
|
+
U.value.forEach((w) => {
|
|
1407
|
+
w.name && w.width && (a[w.name] = w.width);
|
|
1394
1408
|
}), localStorage.setItem(`or-data-grid-v3-widths-${e.features.storageKey}`, JSON.stringify(a));
|
|
1395
1409
|
}
|
|
1396
|
-
function
|
|
1410
|
+
function re() {
|
|
1397
1411
|
if (!(typeof window > "u" || !e.features.storageKey))
|
|
1398
1412
|
try {
|
|
1399
1413
|
const a = localStorage.getItem(`or-data-grid-v3-widths-${e.features.storageKey}`);
|
|
1400
1414
|
if (a) {
|
|
1401
|
-
const
|
|
1402
|
-
|
|
1403
|
-
F.name && $[F.name] && (F.width = $[F.name]);
|
|
1404
|
-
});
|
|
1415
|
+
const w = JSON.parse(a);
|
|
1416
|
+
H.value = w;
|
|
1405
1417
|
}
|
|
1406
1418
|
} catch (a) {
|
|
1407
1419
|
console.error("[OrDataGrid]: Failed to load column widths from localStorage", a);
|
|
1408
1420
|
}
|
|
1409
1421
|
}
|
|
1410
|
-
|
|
1411
|
-
|
|
1422
|
+
ue(() => {
|
|
1423
|
+
re();
|
|
1412
1424
|
});
|
|
1413
|
-
function
|
|
1425
|
+
function x(a) {
|
|
1414
1426
|
o.value.delete(a), o.value = new Map(o.value), c.value.delete(a), c.value = new Map(c.value);
|
|
1415
1427
|
}
|
|
1416
|
-
function
|
|
1428
|
+
function oe(a) {
|
|
1417
1429
|
a.currentTarget.scrollIntoView({ block: "nearest" });
|
|
1418
1430
|
}
|
|
1419
1431
|
return {
|
|
1420
|
-
root:
|
|
1432
|
+
root: l,
|
|
1421
1433
|
rootStyles: u,
|
|
1422
|
-
pagination:
|
|
1423
|
-
tableInlineStyles:
|
|
1424
|
-
selectingIndicator:
|
|
1425
|
-
showSelectingCouter:
|
|
1426
|
-
selectingDisabled:
|
|
1427
|
-
skeletonsLength:
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
+
pagination: v,
|
|
1435
|
+
tableInlineStyles: G,
|
|
1436
|
+
selectingIndicator: I,
|
|
1437
|
+
showSelectingCouter: s,
|
|
1438
|
+
selectingDisabled: F,
|
|
1439
|
+
skeletonsLength: E,
|
|
1440
|
+
actualColumns: U,
|
|
1441
|
+
handleMouseEnterRow: P,
|
|
1442
|
+
handleMouseLeaveRow: L,
|
|
1443
|
+
handleMouseEnterCell: A,
|
|
1444
|
+
handleMouseLeaveCell: j,
|
|
1445
|
+
handleRowClick: i,
|
|
1446
|
+
updateColumnWidth: $,
|
|
1434
1447
|
selectingModel: S,
|
|
1435
1448
|
filteringModel: O,
|
|
1436
|
-
searchingModel:
|
|
1437
|
-
sortingModel:
|
|
1438
|
-
pagingModel:
|
|
1439
|
-
updateScrollOffset:
|
|
1440
|
-
removeScrollOffset:
|
|
1441
|
-
updateSearchingModel:
|
|
1449
|
+
searchingModel: T,
|
|
1450
|
+
sortingModel: C,
|
|
1451
|
+
pagingModel: V,
|
|
1452
|
+
updateScrollOffset: W,
|
|
1453
|
+
removeScrollOffset: x,
|
|
1454
|
+
updateSearchingModel: X,
|
|
1442
1455
|
scrollToTop: () => {
|
|
1443
1456
|
var a;
|
|
1444
|
-
(a =
|
|
1457
|
+
(a = g.value) != null && a.root && g.value.root.scrollTo({
|
|
1445
1458
|
top: 0,
|
|
1446
1459
|
behavior: "smooth"
|
|
1447
1460
|
});
|
|
1448
1461
|
},
|
|
1449
|
-
scrollTo:
|
|
1450
|
-
onInput: (a,
|
|
1451
|
-
a[
|
|
1462
|
+
scrollTo: oe,
|
|
1463
|
+
onInput: (a, w, N) => {
|
|
1464
|
+
a[w] = N, t.emit("update:item", a);
|
|
1452
1465
|
}
|
|
1453
1466
|
};
|
|
1454
1467
|
}
|
|
1455
1468
|
});
|
|
1456
|
-
function
|
|
1457
|
-
const
|
|
1458
|
-
return r(),
|
|
1469
|
+
function Qt(e, t, l, v, g, u) {
|
|
1470
|
+
const G = m("OrSearch"), I = m("OrDataGridHeader"), S = m("OrDataGridToolbar"), O = m("OrCheckbox"), T = m("OrDataGridTableHeaderCell"), C = m("OrDataGridTableHeaderRow"), V = m("OrDataGridTableHeader"), o = m("OrDataGridNotification"), c = m("OrDataGridTableExtraRow"), s = m("OrSkeletonText"), F = m("OrDataGridTableContentCell"), E = m("OrDataGridTableContentRow"), H = m("OrDataGridTablePlaceholder"), U = m("OrDataGridTableContent"), X = m("OrDataGridTable"), W = m("OrDataGridTableFooterCell"), P = m("OrDataGridTableFooterRow"), L = m("OrDataGridTableFooter"), A = m("OrPagination"), j = m("OrDataGridFooter");
|
|
1471
|
+
return r(), h("div", {
|
|
1459
1472
|
ref: "root",
|
|
1460
1473
|
class: f(e.rootStyles)
|
|
1461
1474
|
}, [
|
|
1462
|
-
e.$slots.title || e.features.searching || e.$slots.search || e.$slots.extraActions ? (r(), y(
|
|
1475
|
+
e.$slots.title || e.features.searching || e.$slots.search || e.$slots.extraActions ? (r(), y(I, {
|
|
1463
1476
|
key: 0,
|
|
1464
1477
|
class: f(["shrink-0"])
|
|
1465
1478
|
}, Y({ _: 2 }, [
|
|
1466
1479
|
e.$slots.title ? {
|
|
1467
1480
|
name: "title",
|
|
1468
1481
|
fn: b(() => [
|
|
1469
|
-
|
|
1482
|
+
d(e.$slots, "title")
|
|
1470
1483
|
]),
|
|
1471
1484
|
key: "0"
|
|
1472
1485
|
} : void 0,
|
|
1473
1486
|
e.features.searching ? {
|
|
1474
1487
|
name: "searching",
|
|
1475
1488
|
fn: b(() => [
|
|
1476
|
-
|
|
1477
|
-
|
|
1489
|
+
d(e.$slots, "search", ce(me({ updateSearchingModel: e.updateSearchingModel, searchingModel: e.searchingModel })), () => [
|
|
1490
|
+
z(G, {
|
|
1478
1491
|
modelValue: e.searchingModel,
|
|
1479
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
1492
|
+
"onUpdate:modelValue": t[0] || (t[0] = (i) => e.searchingModel = i)
|
|
1480
1493
|
}, null, 8, ["modelValue"])
|
|
1481
1494
|
])
|
|
1482
1495
|
]),
|
|
@@ -1485,33 +1498,33 @@ function Xt(e, t, n, h, v, u) {
|
|
|
1485
1498
|
e.$slots.extraActions ? {
|
|
1486
1499
|
name: "extraActions",
|
|
1487
1500
|
fn: b(() => [
|
|
1488
|
-
|
|
1501
|
+
d(e.$slots, "extraActions")
|
|
1489
1502
|
]),
|
|
1490
1503
|
key: "2"
|
|
1491
1504
|
} : void 0
|
|
1492
|
-
]), 1024)) :
|
|
1505
|
+
]), 1024)) : p("", !0),
|
|
1493
1506
|
e.$slots.toolbar ? (r(), y(S, {
|
|
1494
1507
|
key: 1,
|
|
1495
1508
|
class: f(["shrink-0"])
|
|
1496
1509
|
}, {
|
|
1497
1510
|
default: b(() => [
|
|
1498
|
-
|
|
1511
|
+
d(e.$slots, "toolbar")
|
|
1499
1512
|
]),
|
|
1500
1513
|
_: 3
|
|
1501
|
-
})) :
|
|
1502
|
-
|
|
1514
|
+
})) : p("", !0),
|
|
1515
|
+
z(X, {
|
|
1503
1516
|
ref: "table",
|
|
1504
1517
|
class: f(["grow", { "grid-rows-[auto_1fr]": e.items.length === 0 }]),
|
|
1505
1518
|
style: K(e.tableInlineStyles),
|
|
1506
|
-
columns: e.
|
|
1519
|
+
columns: e.actualColumns,
|
|
1507
1520
|
features: e.features
|
|
1508
1521
|
}, {
|
|
1509
1522
|
default: b(() => [
|
|
1510
|
-
|
|
1523
|
+
z(V, null, {
|
|
1511
1524
|
default: b(() => [
|
|
1512
|
-
|
|
1525
|
+
z(C, { variant: e.variant }, {
|
|
1513
1526
|
default: b(() => [
|
|
1514
|
-
e.features.selecting ? (r(), y(
|
|
1527
|
+
e.features.selecting ? (r(), y(T, {
|
|
1515
1528
|
key: 0,
|
|
1516
1529
|
column: { stickiness: "start" },
|
|
1517
1530
|
class: "md:!py-none",
|
|
@@ -1519,27 +1532,27 @@ function Xt(e, t, n, h, v, u) {
|
|
|
1519
1532
|
"onRemove:scrollOffset": e.removeScrollOffset
|
|
1520
1533
|
}, {
|
|
1521
1534
|
default: b(() => [
|
|
1522
|
-
|
|
1535
|
+
z(O, {
|
|
1523
1536
|
modelValue: e.selectingIndicator,
|
|
1524
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
1537
|
+
"onUpdate:modelValue": t[1] || (t[1] = (i) => e.selectingIndicator = i),
|
|
1525
1538
|
indeterminate: !e.selectingIndicator && e.selectingModel.length > 0,
|
|
1526
1539
|
disabled: e.selectingDisabled
|
|
1527
1540
|
}, null, 8, ["modelValue", "indeterminate", "disabled"])
|
|
1528
1541
|
]),
|
|
1529
1542
|
_: 1
|
|
1530
|
-
}, 8, ["onUpdate:scrollOffset", "onRemove:scrollOffset"])) :
|
|
1531
|
-
(r(!0),
|
|
1532
|
-
key:
|
|
1543
|
+
}, 8, ["onUpdate:scrollOffset", "onRemove:scrollOffset"])) : p("", !0),
|
|
1544
|
+
(r(!0), h(q, null, Q(e.actualColumns, (i) => (r(), y(T, {
|
|
1545
|
+
key: i.name,
|
|
1533
1546
|
modelValue: e.sortingModel,
|
|
1534
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
1535
|
-
column:
|
|
1547
|
+
"onUpdate:modelValue": t[2] || (t[2] = ($) => e.sortingModel = $),
|
|
1548
|
+
column: i,
|
|
1536
1549
|
features: e.features,
|
|
1537
1550
|
"onUpdate:scrollOffset": e.updateScrollOffset,
|
|
1538
1551
|
"onRemove:scrollOffset": e.removeScrollOffset,
|
|
1539
|
-
"onUpdate:columnWidth": (
|
|
1552
|
+
"onUpdate:columnWidth": ($) => e.updateColumnWidth(i, $)
|
|
1540
1553
|
}, {
|
|
1541
1554
|
default: b(() => [
|
|
1542
|
-
Z(_(
|
|
1555
|
+
Z(_(i.label), 1)
|
|
1543
1556
|
]),
|
|
1544
1557
|
_: 2
|
|
1545
1558
|
}, 1032, ["modelValue", "column", "features", "onUpdate:scrollOffset", "onRemove:scrollOffset", "onUpdate:columnWidth"]))), 128))
|
|
@@ -1553,17 +1566,17 @@ function Xt(e, t, n, h, v, u) {
|
|
|
1553
1566
|
key: 0,
|
|
1554
1567
|
notification: e.notification,
|
|
1555
1568
|
variant: e.variant,
|
|
1556
|
-
onCloseNotification: t[3] || (t[3] = (
|
|
1569
|
+
onCloseNotification: t[3] || (t[3] = (i) => e.$emit("close-notification"))
|
|
1557
1570
|
}, Y({ _: 2 }, [
|
|
1558
1571
|
e.$slots.notification ? {
|
|
1559
1572
|
name: "notification",
|
|
1560
1573
|
fn: b(() => [
|
|
1561
|
-
|
|
1574
|
+
d(e.$slots, "notification")
|
|
1562
1575
|
]),
|
|
1563
1576
|
key: "0"
|
|
1564
1577
|
} : void 0
|
|
1565
|
-
]), 1032, ["notification", "variant"])) :
|
|
1566
|
-
|
|
1578
|
+
]), 1032, ["notification", "variant"])) : p("", !0),
|
|
1579
|
+
z(U, null, {
|
|
1567
1580
|
default: b(() => [
|
|
1568
1581
|
e.$slots["before-rows"] ? (r(), y(c, {
|
|
1569
1582
|
key: 0,
|
|
@@ -1571,143 +1584,143 @@ function Xt(e, t, n, h, v, u) {
|
|
|
1571
1584
|
class: "border-b-1"
|
|
1572
1585
|
}, {
|
|
1573
1586
|
default: b(() => [
|
|
1574
|
-
|
|
1587
|
+
d(e.$slots, "before-rows")
|
|
1575
1588
|
]),
|
|
1576
1589
|
_: 3
|
|
1577
|
-
}, 8, ["variant"])) :
|
|
1578
|
-
e.loading ? (r(!0),
|
|
1579
|
-
key:
|
|
1590
|
+
}, 8, ["variant"])) : p("", !0),
|
|
1591
|
+
e.loading ? (r(!0), h(q, { key: 1 }, Q(e.skeletonsLength, (i) => (r(), y(E, {
|
|
1592
|
+
key: i,
|
|
1580
1593
|
variant: e.variant,
|
|
1581
1594
|
interactive: e.interactiveRows
|
|
1582
1595
|
}, {
|
|
1583
1596
|
default: b(() => [
|
|
1584
|
-
e.features.selecting ? (r(), y(
|
|
1597
|
+
e.features.selecting ? (r(), y(F, {
|
|
1585
1598
|
key: 0,
|
|
1586
1599
|
column: { stickiness: "start" },
|
|
1587
1600
|
variant: e.variant,
|
|
1588
1601
|
override: !0
|
|
1589
1602
|
}, {
|
|
1590
1603
|
default: b(() => [
|
|
1591
|
-
|
|
1604
|
+
z(s)
|
|
1592
1605
|
]),
|
|
1593
1606
|
_: 1
|
|
1594
|
-
}, 8, ["variant"])) :
|
|
1595
|
-
(r(!0),
|
|
1596
|
-
key:
|
|
1597
|
-
column:
|
|
1607
|
+
}, 8, ["variant"])) : p("", !0),
|
|
1608
|
+
(r(!0), h(q, null, Q(e.actualColumns, ($) => (r(), y(F, {
|
|
1609
|
+
key: $.name,
|
|
1610
|
+
column: $,
|
|
1598
1611
|
features: e.features,
|
|
1599
1612
|
variant: e.variant,
|
|
1600
1613
|
override: !0
|
|
1601
1614
|
}, {
|
|
1602
1615
|
default: b(() => [
|
|
1603
|
-
|
|
1604
|
-
|
|
1616
|
+
d(e.$slots, "column-loading", { column: $ }, () => [
|
|
1617
|
+
z(s)
|
|
1605
1618
|
])
|
|
1606
1619
|
]),
|
|
1607
1620
|
_: 2
|
|
1608
1621
|
}, 1032, ["column", "features", "variant"]))), 128))
|
|
1609
1622
|
]),
|
|
1610
1623
|
_: 2
|
|
1611
|
-
}, 1032, ["variant", "interactive"]))), 128)) : e.items.length > 0 ? (r(!0),
|
|
1612
|
-
key:
|
|
1624
|
+
}, 1032, ["variant", "interactive"]))), 128)) : e.items.length > 0 ? (r(!0), h(q, { key: 2 }, Q(e.items, (i) => (r(), y(E, {
|
|
1625
|
+
key: i.id,
|
|
1613
1626
|
variant: e.variant,
|
|
1614
|
-
selected: e.selectingModel.includes(
|
|
1627
|
+
selected: e.selectingModel.includes(i.id),
|
|
1615
1628
|
interactive: e.interactiveRows,
|
|
1616
|
-
onMouseenter: () => e.handleMouseEnterRow(
|
|
1617
|
-
onMouseleave: () => e.handleMouseLeaveRow(
|
|
1618
|
-
onClick: () => e.handleRowClick(
|
|
1629
|
+
onMouseenter: () => e.handleMouseEnterRow(i),
|
|
1630
|
+
onMouseleave: () => e.handleMouseLeaveRow(i),
|
|
1631
|
+
onClick: () => e.handleRowClick(i)
|
|
1619
1632
|
}, {
|
|
1620
1633
|
default: b(() => [
|
|
1621
|
-
e.features.selecting ? (r(), y(
|
|
1634
|
+
e.features.selecting ? (r(), y(F, {
|
|
1622
1635
|
key: 0,
|
|
1623
1636
|
column: { stickiness: "start" },
|
|
1624
1637
|
variant: e.variant,
|
|
1625
1638
|
override: !0,
|
|
1626
1639
|
"force-state": "none",
|
|
1627
1640
|
class: "md:!py-none",
|
|
1628
|
-
onMouseenter: () => e.handleMouseEnterCell(
|
|
1629
|
-
onMouseleave: () => e.handleMouseLeaveCell(
|
|
1641
|
+
onMouseenter: () => e.handleMouseEnterCell(i, "selecting", e.selectingModel.includes(i.id)),
|
|
1642
|
+
onMouseleave: () => e.handleMouseLeaveCell(i, "selecting", e.selectingModel.includes(i.id))
|
|
1630
1643
|
}, {
|
|
1631
1644
|
default: b(() => [
|
|
1632
|
-
|
|
1645
|
+
z(O, {
|
|
1633
1646
|
modelValue: e.selectingModel,
|
|
1634
|
-
"onUpdate:modelValue": t[4] || (t[4] = (
|
|
1635
|
-
value:
|
|
1647
|
+
"onUpdate:modelValue": t[4] || (t[4] = ($) => e.selectingModel = $),
|
|
1648
|
+
value: i.id,
|
|
1636
1649
|
disabled: e.selectingDisabled
|
|
1637
1650
|
}, null, 8, ["modelValue", "value", "disabled"])
|
|
1638
1651
|
]),
|
|
1639
1652
|
_: 2
|
|
1640
|
-
}, 1032, ["variant", "onMouseenter", "onMouseleave"])) :
|
|
1641
|
-
(r(!0),
|
|
1642
|
-
key:
|
|
1643
|
-
"model-value":
|
|
1644
|
-
column:
|
|
1653
|
+
}, 1032, ["variant", "onMouseenter", "onMouseleave"])) : p("", !0),
|
|
1654
|
+
(r(!0), h(q, null, Q(e.actualColumns, ($) => (r(), y(F, {
|
|
1655
|
+
key: $.name,
|
|
1656
|
+
"model-value": i[$.name],
|
|
1657
|
+
column: $,
|
|
1645
1658
|
features: e.features,
|
|
1646
1659
|
variant: e.variant,
|
|
1647
|
-
onInput: (
|
|
1648
|
-
onFocusin: t[5] || (t[5] = (
|
|
1649
|
-
onMouseenter: () => e.handleMouseEnterCell(
|
|
1650
|
-
onMouseleave: () => e.handleMouseLeaveCell(
|
|
1660
|
+
onInput: (J) => e.onInput(i, $.name, J),
|
|
1661
|
+
onFocusin: t[5] || (t[5] = (J) => e.scrollTo(J)),
|
|
1662
|
+
onMouseenter: () => e.handleMouseEnterCell(i, $.name, i[$.name]),
|
|
1663
|
+
onMouseleave: () => e.handleMouseLeaveCell(i, $.name, i[$.name])
|
|
1651
1664
|
}, {
|
|
1652
1665
|
default: b(() => [
|
|
1653
|
-
|
|
1654
|
-
column:
|
|
1655
|
-
item:
|
|
1666
|
+
d(e.$slots, $.name, {
|
|
1667
|
+
column: $,
|
|
1668
|
+
item: i
|
|
1656
1669
|
}, () => [
|
|
1657
|
-
Z(_(
|
|
1670
|
+
Z(_(i[$.name]), 1)
|
|
1658
1671
|
])
|
|
1659
1672
|
]),
|
|
1660
1673
|
_: 2
|
|
1661
1674
|
}, 1032, ["model-value", "column", "features", "variant", "onInput", "onMouseenter", "onMouseleave"]))), 128))
|
|
1662
1675
|
]),
|
|
1663
1676
|
_: 2
|
|
1664
|
-
}, 1032, ["variant", "selected", "interactive", "onMouseenter", "onMouseleave", "onClick"]))), 128)) : e.$slots.noSearchResults && (e.features.filtering && e.filteringModel || e.features.searching && e.searchingModel) ? (r(), y(
|
|
1677
|
+
}, 1032, ["variant", "selected", "interactive", "onMouseenter", "onMouseleave", "onClick"]))), 128)) : e.$slots.noSearchResults && (e.features.filtering && e.filteringModel || e.features.searching && e.searchingModel) ? (r(), y(H, {
|
|
1665
1678
|
key: 3,
|
|
1666
1679
|
class: f(["col-span-full"]),
|
|
1667
1680
|
variant: e.variant
|
|
1668
1681
|
}, {
|
|
1669
1682
|
default: b(() => [
|
|
1670
|
-
|
|
1683
|
+
d(e.$slots, "noSearchResults", {
|
|
1671
1684
|
filter: e.filteringModel,
|
|
1672
1685
|
search: e.searchingModel
|
|
1673
1686
|
})
|
|
1674
1687
|
]),
|
|
1675
1688
|
_: 3
|
|
1676
|
-
}, 8, ["variant"])) : e.$slots.empty ? (r(), y(
|
|
1689
|
+
}, 8, ["variant"])) : e.$slots.empty ? (r(), y(H, {
|
|
1677
1690
|
key: 4,
|
|
1678
1691
|
class: f(["col-span-full"]),
|
|
1679
1692
|
variant: e.variant
|
|
1680
1693
|
}, {
|
|
1681
1694
|
default: b(() => [
|
|
1682
|
-
|
|
1695
|
+
d(e.$slots, "empty")
|
|
1683
1696
|
]),
|
|
1684
1697
|
_: 3
|
|
1685
|
-
}, 8, ["variant"])) :
|
|
1698
|
+
}, 8, ["variant"])) : p("", !0),
|
|
1686
1699
|
e.$slots["after-rows"] ? (r(), y(c, {
|
|
1687
1700
|
key: 5,
|
|
1688
1701
|
variant: e.variant
|
|
1689
1702
|
}, {
|
|
1690
1703
|
default: b(() => [
|
|
1691
|
-
|
|
1704
|
+
d(e.$slots, "after-rows")
|
|
1692
1705
|
]),
|
|
1693
1706
|
_: 3
|
|
1694
|
-
}, 8, ["variant"])) :
|
|
1707
|
+
}, 8, ["variant"])) : p("", !0)
|
|
1695
1708
|
]),
|
|
1696
1709
|
_: 3
|
|
1697
1710
|
})
|
|
1698
1711
|
]),
|
|
1699
1712
|
_: 3
|
|
1700
1713
|
}, 8, ["class", "style", "columns", "features"]),
|
|
1701
|
-
e.$slots["extra-row"] ? (r(), y(
|
|
1714
|
+
e.$slots["extra-row"] ? (r(), y(L, { key: 2 }, {
|
|
1702
1715
|
default: b(() => [
|
|
1703
|
-
|
|
1716
|
+
z(P, {
|
|
1704
1717
|
class: f(["shrink-0"]),
|
|
1705
1718
|
variant: e.variant
|
|
1706
1719
|
}, {
|
|
1707
1720
|
default: b(() => [
|
|
1708
|
-
|
|
1721
|
+
z(W, null, {
|
|
1709
1722
|
default: b(() => [
|
|
1710
|
-
|
|
1723
|
+
d(e.$slots, "extra-row")
|
|
1711
1724
|
]),
|
|
1712
1725
|
_: 3
|
|
1713
1726
|
})
|
|
@@ -1716,8 +1729,8 @@ function Xt(e, t, n, h, v, u) {
|
|
|
1716
1729
|
}, 8, ["variant"])
|
|
1717
1730
|
]),
|
|
1718
1731
|
_: 3
|
|
1719
|
-
})) :
|
|
1720
|
-
e.$slots.actions || e.showSelectingCouter || e.features.paging ? (r(), y(
|
|
1732
|
+
})) : p("", !0),
|
|
1733
|
+
e.$slots.actions || e.showSelectingCouter || e.features.paging ? (r(), y(j, {
|
|
1721
1734
|
key: 3,
|
|
1722
1735
|
class: f(["shrink-0"])
|
|
1723
1736
|
}, Y({ _: 2 }, [
|
|
@@ -1731,46 +1744,46 @@ function Xt(e, t, n, h, v, u) {
|
|
|
1731
1744
|
e.$slots.actions ? {
|
|
1732
1745
|
name: "actions",
|
|
1733
1746
|
fn: b(() => [
|
|
1734
|
-
|
|
1747
|
+
d(e.$slots, "actions")
|
|
1735
1748
|
]),
|
|
1736
1749
|
key: "1"
|
|
1737
1750
|
} : void 0,
|
|
1738
1751
|
e.features.paging ? {
|
|
1739
1752
|
name: "paging",
|
|
1740
1753
|
fn: b(() => [
|
|
1741
|
-
|
|
1754
|
+
z(A, {
|
|
1742
1755
|
ref: "pagination",
|
|
1743
1756
|
modelValue: e.pagingModel,
|
|
1744
|
-
"onUpdate:modelValue": t[6] || (t[6] = (
|
|
1757
|
+
"onUpdate:modelValue": t[6] || (t[6] = (i) => e.pagingModel = i),
|
|
1745
1758
|
length: e.features.paging.length,
|
|
1746
1759
|
options: e.features.paging.options
|
|
1747
1760
|
}, null, 8, ["modelValue", "length", "options"])
|
|
1748
1761
|
]),
|
|
1749
1762
|
key: "2"
|
|
1750
1763
|
} : void 0
|
|
1751
|
-
]), 1024)) :
|
|
1764
|
+
]), 1024)) : p("", !0)
|
|
1752
1765
|
], 2);
|
|
1753
1766
|
}
|
|
1754
|
-
const
|
|
1767
|
+
const pa = /* @__PURE__ */ R(Jt, [["render", Qt]]);
|
|
1755
1768
|
export {
|
|
1756
1769
|
k as D,
|
|
1757
|
-
|
|
1770
|
+
pa as O,
|
|
1758
1771
|
B as a,
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1772
|
+
Ve as b,
|
|
1773
|
+
Fe as c,
|
|
1774
|
+
Ne as d,
|
|
1775
|
+
Ke as e,
|
|
1776
|
+
Ye as f,
|
|
1777
|
+
et as g,
|
|
1778
|
+
nt as h,
|
|
1779
|
+
dt as i,
|
|
1780
|
+
gt as j,
|
|
1781
|
+
yt as k,
|
|
1782
|
+
wt as l,
|
|
1783
|
+
Ct as m,
|
|
1784
|
+
It as n,
|
|
1785
|
+
Wt as o,
|
|
1786
|
+
Ut as p,
|
|
1787
|
+
Kt as q
|
|
1775
1788
|
};
|
|
1776
|
-
//# sourceMappingURL=OrDataGrid-
|
|
1789
|
+
//# sourceMappingURL=OrDataGrid-D8ZLdtGb.mjs.map
|