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