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