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