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