@onereach/ui-components 27.0.8 → 27.0.9-beta.6150.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-BJiaRanm.mjs → OrDataGrid-DWrS5m_m.mjs} +368 -355
- package/dist/esm/OrDataGrid-DWrS5m_m.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 +2 -0
- package/dist/types/components/or-data-grid-v3/types.d.ts +7 -1
- package/package.json +3 -3
- package/dist/esm/OrDataGrid-BJiaRanm.mjs.map +0 -1
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { flatten as
|
|
1
|
+
import { flatten as Ge } from "@onereach/ui-components-common/helpers";
|
|
2
2
|
import { O as fe } from "./OrCheckbox-B_121oYu.mjs";
|
|
3
|
-
import { O as
|
|
4
|
-
import { O as
|
|
5
|
-
import { O as
|
|
6
|
-
import { O as
|
|
7
|
-
import { defineComponent as M, ref as T, computed as r, openBlock as n, createElementBlock as b, normalizeClass as u, renderSlot as m, createCommentVNode as k, resolveComponent as v, normalizeStyle as
|
|
8
|
-
import { useElementSize as
|
|
3
|
+
import { O as Ve } from "./OrIconButton-D1pxfMA_.mjs";
|
|
4
|
+
import { O as Ie } from "./OrPagination-DRBRRL2g.mjs";
|
|
5
|
+
import { O as Me } from "./OrSearch-Csld1hBq.mjs";
|
|
6
|
+
import { O as Re } from "./OrSkeletonArea.vue_vue_type_script_lang-jgRhbZ0X.mjs";
|
|
7
|
+
import { defineComponent as M, ref as T, computed as r, openBlock as n, createElementBlock as b, normalizeClass as u, renderSlot as m, createCommentVNode as k, resolveComponent as v, normalizeStyle as J, createBlock as O, watch as ge, onUnmounted as We, createElementVNode as le, withModifiers as ae, createVNode as U, mergeProps as Ee, withCtx as $, reactive as ue, onMounted as ze, createSlots as oe, normalizeProps as Fe, guardReactiveProps as He, Fragment as ee, renderList as te, createTextVNode as re, toDisplayString as se } from "vue";
|
|
8
|
+
import { useElementSize as je, useDebounceFn as me, useResizeObserver as Ne } from "@vueuse/core";
|
|
9
9
|
import { _ as R } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
10
|
-
import { O as
|
|
11
|
-
import { O as
|
|
10
|
+
import { O as Pe } from "./OrDatePicker-Ifk1LBLg.mjs";
|
|
11
|
+
import { O as Ue } from "./OrDateTimePicker-D9QS_dRK.mjs";
|
|
12
12
|
import "./OrDateTimePicker.vue_vue_type_script_lang-8aFx3wpJ.mjs";
|
|
13
13
|
import "@onereach/ui-components-common/types";
|
|
14
|
-
import { O as
|
|
15
|
-
import { O as
|
|
16
|
-
import { O as
|
|
17
|
-
import { O as
|
|
18
|
-
import { O as
|
|
19
|
-
import { O as
|
|
20
|
-
import { O as
|
|
21
|
-
import { O as
|
|
22
|
-
const
|
|
14
|
+
import { O as Ae } from "./OrInput-CzRxZM3i.mjs";
|
|
15
|
+
import { O as Le } from "./OrRating-CAwz23JA.mjs";
|
|
16
|
+
import { O as qe } from "./OrSelect-DBhNKmRX.mjs";
|
|
17
|
+
import { O as Be } from "./OrSwitch-BtoXDsZx.mjs";
|
|
18
|
+
import { O as Ke } from "./OrTagInput-DIMSvMNK.mjs";
|
|
19
|
+
import { O as Xe } from "./OrTimePicker-C_pYA5Yn.mjs";
|
|
20
|
+
import { O as Je } from "./OrIcon-k8cyvh-D.mjs";
|
|
21
|
+
import { O as Qe } from "./OrNotification-DObxgRie.mjs";
|
|
22
|
+
const Ye = [
|
|
23
23
|
// Layout
|
|
24
24
|
"layout-row",
|
|
25
25
|
// Interactivity
|
|
@@ -33,10 +33,10 @@ const Xe = [
|
|
|
33
33
|
// Theme
|
|
34
34
|
"theme-border-disabled border-t-1",
|
|
35
35
|
"dark:theme-border-disabled-dark"
|
|
36
|
-
],
|
|
36
|
+
], Ze = [
|
|
37
37
|
// Typography
|
|
38
38
|
"typography-body-2-semibold"
|
|
39
|
-
],
|
|
39
|
+
], xe = M({
|
|
40
40
|
name: "OrDataGridFooter",
|
|
41
41
|
expose: [
|
|
42
42
|
"root"
|
|
@@ -44,21 +44,21 @@ const Xe = [
|
|
|
44
44
|
setup() {
|
|
45
45
|
const e = T(), t = r(() => [
|
|
46
46
|
"or-data-grid-footer-v3",
|
|
47
|
-
...
|
|
48
|
-
]),
|
|
49
|
-
...
|
|
47
|
+
...Ye
|
|
48
|
+
]), i = r(() => [
|
|
49
|
+
...Ze
|
|
50
50
|
]);
|
|
51
51
|
return {
|
|
52
52
|
root: e,
|
|
53
53
|
rootStyles: t,
|
|
54
|
-
statusStyles:
|
|
54
|
+
statusStyles: i
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
|
-
}),
|
|
57
|
+
}), _e = {
|
|
58
58
|
key: 1,
|
|
59
59
|
class: /* @__PURE__ */ u(["grow"])
|
|
60
60
|
};
|
|
61
|
-
function
|
|
61
|
+
function et(e, t, i, D, g, f) {
|
|
62
62
|
return n(), b("div", {
|
|
63
63
|
ref: "root",
|
|
64
64
|
class: u(e.rootStyles)
|
|
@@ -70,21 +70,21 @@ function Ze(e, t, l, D, g, f) {
|
|
|
70
70
|
m(e.$slots, "status")
|
|
71
71
|
], 2)) : k("", !0),
|
|
72
72
|
m(e.$slots, "actions"),
|
|
73
|
-
e.$slots.paging ? (n(), b("div",
|
|
73
|
+
e.$slots.paging ? (n(), b("div", _e)) : k("", !0),
|
|
74
74
|
m(e.$slots, "paging")
|
|
75
75
|
], 2);
|
|
76
76
|
}
|
|
77
|
-
const
|
|
77
|
+
const tt = /* @__PURE__ */ R(xe, [["render", et]]), at = [
|
|
78
78
|
// Layout
|
|
79
79
|
"layout-row items-start gap-md",
|
|
80
80
|
// Interactivity
|
|
81
81
|
"interactivity-default",
|
|
82
82
|
// Spacing
|
|
83
83
|
"pb-md"
|
|
84
|
-
],
|
|
84
|
+
], nt = [
|
|
85
85
|
// Typography
|
|
86
86
|
"typography-headline-2"
|
|
87
|
-
],
|
|
87
|
+
], ot = M({
|
|
88
88
|
name: "OrDataGridHeader",
|
|
89
89
|
expose: [
|
|
90
90
|
"root"
|
|
@@ -92,21 +92,21 @@ const xe = /* @__PURE__ */ R(Qe, [["render", Ze]]), _e = [
|
|
|
92
92
|
setup() {
|
|
93
93
|
const e = T(), t = r(() => [
|
|
94
94
|
"or-data-grid-header-v3",
|
|
95
|
-
...
|
|
96
|
-
]),
|
|
97
|
-
...
|
|
95
|
+
...at
|
|
96
|
+
]), i = r(() => [
|
|
97
|
+
...nt
|
|
98
98
|
]);
|
|
99
99
|
return {
|
|
100
100
|
root: e,
|
|
101
101
|
rootStyles: t,
|
|
102
|
-
titleStyles:
|
|
102
|
+
titleStyles: i
|
|
103
103
|
};
|
|
104
104
|
}
|
|
105
|
-
}),
|
|
105
|
+
}), rt = {
|
|
106
106
|
key: 1,
|
|
107
107
|
class: /* @__PURE__ */ u(["grow"])
|
|
108
108
|
};
|
|
109
|
-
function
|
|
109
|
+
function st(e, t, i, D, g, f) {
|
|
110
110
|
return n(), b("div", {
|
|
111
111
|
ref: "root",
|
|
112
112
|
class: u(e.rootStyles)
|
|
@@ -117,14 +117,14 @@ function nt(e, t, l, D, g, f) {
|
|
|
117
117
|
}, [
|
|
118
118
|
m(e.$slots, "title")
|
|
119
119
|
], 2)) : k("", !0),
|
|
120
|
-
e.$slots.searching || e.$slots.extraActions ? (n(), b("div",
|
|
120
|
+
e.$slots.searching || e.$slots.extraActions ? (n(), b("div", rt)) : k("", !0),
|
|
121
121
|
m(e.$slots, "searching"),
|
|
122
122
|
e.$slots.extraActions ? m(e.$slots, "extraActions", { key: 2 }) : k("", !0)
|
|
123
123
|
], 2);
|
|
124
124
|
}
|
|
125
|
-
const
|
|
125
|
+
const lt = /* @__PURE__ */ R(ot, [["render", st]]);
|
|
126
126
|
var w = /* @__PURE__ */ ((e) => (e.Standard = "standard", e.Comfortable = "comfortable", e.Compact = "compact", e.Dynamic = "dynamic", e))(w || {});
|
|
127
|
-
const ie = "52px", he = "42px",
|
|
127
|
+
const ie = "52px", he = "42px", it = [
|
|
128
128
|
// Layout
|
|
129
129
|
"layout-row items-center",
|
|
130
130
|
// Spacing
|
|
@@ -160,23 +160,23 @@ const ie = "52px", he = "42px", rt = [
|
|
|
160
160
|
// Border (conditional override for last row/column)
|
|
161
161
|
"group-last:border-b-0",
|
|
162
162
|
"last:border-r-0"
|
|
163
|
-
],
|
|
163
|
+
], dt = [
|
|
164
164
|
// interactivity
|
|
165
165
|
"interactivity-select",
|
|
166
166
|
// Typography
|
|
167
167
|
"truncate"
|
|
168
|
-
],
|
|
168
|
+
], ct = M({
|
|
169
169
|
name: "OrDataGridTableContentCell",
|
|
170
170
|
components: {
|
|
171
171
|
OrCheckbox: fe,
|
|
172
|
-
OrDatePicker:
|
|
173
|
-
OrDateTimePicker:
|
|
174
|
-
OrInput:
|
|
175
|
-
OrRating:
|
|
176
|
-
OrSelect:
|
|
177
|
-
OrSwitch:
|
|
178
|
-
OrTagInput:
|
|
179
|
-
OrTimePicker:
|
|
172
|
+
OrDatePicker: Pe,
|
|
173
|
+
OrDateTimePicker: Ue,
|
|
174
|
+
OrInput: Ae,
|
|
175
|
+
OrRating: Le,
|
|
176
|
+
OrSelect: qe,
|
|
177
|
+
OrSwitch: Be,
|
|
178
|
+
OrTagInput: Ke,
|
|
179
|
+
OrTimePicker: Xe
|
|
180
180
|
},
|
|
181
181
|
model: {
|
|
182
182
|
prop: "modelValue",
|
|
@@ -216,15 +216,15 @@ const ie = "52px", he = "42px", rt = [
|
|
|
216
216
|
"root"
|
|
217
217
|
],
|
|
218
218
|
setup(e, t) {
|
|
219
|
-
const
|
|
220
|
-
var p, S, W, V, E,
|
|
219
|
+
const i = T(), D = r(() => {
|
|
220
|
+
var p, S, W, V, E, H, h, o, y, G;
|
|
221
221
|
return [
|
|
222
222
|
"or-data-grid-table-content-cell-v3",
|
|
223
|
-
...
|
|
223
|
+
...it,
|
|
224
224
|
...(p = e.column) != null && p.stickiness ? [`sticky-${e.column.stickiness}`] : [],
|
|
225
225
|
...(S = e.features) != null && S.resizing && ((W = e.column) != null && W.name) && ((V = e.column) == null ? void 0 : V.resizing) !== !1 ? ["resizable"] : [],
|
|
226
226
|
...((E = e.column) == null ? void 0 : E.stickiness) === "start" ? ["border-r-1"] : [],
|
|
227
|
-
...((
|
|
227
|
+
...((H = e.column) == null ? void 0 : H.stickiness) === "end" ? ["border-l-1"] : [],
|
|
228
228
|
...(h = e.features) != null && h.resizing && ((o = e.column) != null && o.name) && ((y = e.column) == null ? void 0 : y.resizing) !== !1 ? ["border-r-1"] : [],
|
|
229
229
|
...(G = e.column) != null && G.control ? [] : ["!theme-outline-transparent", "dark:!theme-outline-transparent-dark", "!theme-border-disabled", "dark:!theme-border-disabled-dark"]
|
|
230
230
|
];
|
|
@@ -252,12 +252,12 @@ const ie = "52px", he = "42px", rt = [
|
|
|
252
252
|
}
|
|
253
253
|
return p;
|
|
254
254
|
}), f = r(() => {
|
|
255
|
-
var W, V, E,
|
|
255
|
+
var W, V, E, H, h;
|
|
256
256
|
const p = ((W = e.column) == null ? void 0 : W.wrapping) ?? (e.variant === w.Dynamic && !((V = e.column) != null && V.control)), S = (E = e.column) == null ? void 0 : E.fitContent;
|
|
257
257
|
return [
|
|
258
258
|
"layout-row items-center w-full min-w-0 overflow-hidden",
|
|
259
|
-
...((
|
|
260
|
-
...
|
|
259
|
+
...((H = e.column) == null ? void 0 : H.alignment) === "end" ? ["justify-end", "text-end"] : ((h = e.column) == null ? void 0 : h.alignment) === "center" ? ["justify-center", "text-center"] : [],
|
|
260
|
+
...dt.filter((o) => o !== "truncate"),
|
|
261
261
|
...p ? ["whitespace-pre-wrap break-words"] : S ? [] : ["truncate"]
|
|
262
262
|
];
|
|
263
263
|
}), C = r(() => {
|
|
@@ -272,32 +272,32 @@ const ie = "52px", he = "42px", rt = [
|
|
|
272
272
|
set: (p) => {
|
|
273
273
|
t.emit("input", p);
|
|
274
274
|
}
|
|
275
|
-
}),
|
|
275
|
+
}), F = r(() => {
|
|
276
276
|
var p;
|
|
277
277
|
return (p = e.column) == null ? void 0 : p.control;
|
|
278
278
|
});
|
|
279
279
|
return {
|
|
280
|
-
root:
|
|
280
|
+
root: i,
|
|
281
281
|
rootStyles: D,
|
|
282
282
|
rootInlineStyles: g,
|
|
283
283
|
contentStyles: f,
|
|
284
284
|
contentInlineStyles: C,
|
|
285
285
|
model: I,
|
|
286
|
-
control:
|
|
286
|
+
control: F
|
|
287
287
|
};
|
|
288
288
|
}
|
|
289
289
|
});
|
|
290
|
-
function
|
|
291
|
-
const C = v("OrInput"), I = v("OrRating"),
|
|
290
|
+
function ut(e, t, i, D, g, f) {
|
|
291
|
+
const C = v("OrInput"), I = v("OrRating"), F = v("OrSelect"), p = v("OrCheckbox"), S = v("OrSwitch"), W = v("OrDatePicker"), V = v("OrTimePicker"), E = v("OrDateTimePicker"), H = v("OrTagInput");
|
|
292
292
|
return n(), b("div", {
|
|
293
293
|
ref: "root",
|
|
294
294
|
class: u(e.rootStyles),
|
|
295
|
-
style:
|
|
295
|
+
style: J(e.rootInlineStyles)
|
|
296
296
|
}, [
|
|
297
297
|
e.override ? m(e.$slots, "default", { key: 0 }) : e.control ? (n(), b("div", {
|
|
298
298
|
key: 1,
|
|
299
299
|
class: u(e.contentStyles),
|
|
300
|
-
style:
|
|
300
|
+
style: J(e.contentInlineStyles)
|
|
301
301
|
}, [
|
|
302
302
|
e.control.type === "text" ? (n(), O(C, {
|
|
303
303
|
key: 0,
|
|
@@ -318,7 +318,7 @@ function it(e, t, l, D, g, f) {
|
|
|
318
318
|
modelValue: e.model,
|
|
319
319
|
"onUpdate:modelValue": t[2] || (t[2] = (h) => e.model = h)
|
|
320
320
|
}, null, 8, ["modelValue"])) : k("", !0),
|
|
321
|
-
e.control.type === "select" ? (n(), O(
|
|
321
|
+
e.control.type === "select" ? (n(), O(F, {
|
|
322
322
|
key: 3,
|
|
323
323
|
modelValue: e.model,
|
|
324
324
|
"onUpdate:modelValue": t[3] || (t[3] = (h) => e.model = h),
|
|
@@ -357,7 +357,7 @@ function it(e, t, l, D, g, f) {
|
|
|
357
357
|
variant: "embedded",
|
|
358
358
|
anchor: e.root
|
|
359
359
|
}, null, 8, ["modelValue", "anchor"])) : k("", !0),
|
|
360
|
-
e.control.type === "tags" ? (n(), O(
|
|
360
|
+
e.control.type === "tags" ? (n(), O(H, {
|
|
361
361
|
key: 9,
|
|
362
362
|
modelValue: e.model,
|
|
363
363
|
"onUpdate:modelValue": t[9] || (t[9] = (h) => e.model = h),
|
|
@@ -367,13 +367,13 @@ function it(e, t, l, D, g, f) {
|
|
|
367
367
|
], 6)) : (n(), b("div", {
|
|
368
368
|
key: 2,
|
|
369
369
|
class: u(e.contentStyles),
|
|
370
|
-
style:
|
|
370
|
+
style: J(e.contentInlineStyles)
|
|
371
371
|
}, [
|
|
372
372
|
m(e.$slots, "default")
|
|
373
373
|
], 6))
|
|
374
374
|
], 6);
|
|
375
375
|
}
|
|
376
|
-
const
|
|
376
|
+
const mt = /* @__PURE__ */ R(ct, [["render", ut]]), ft = [
|
|
377
377
|
// Layout
|
|
378
378
|
"grid grid-cols-[subgrid] col-span-full",
|
|
379
379
|
// Stacking context
|
|
@@ -394,7 +394,7 @@ const dt = /* @__PURE__ */ R(lt, [["render", it]]), ct = [
|
|
|
394
394
|
// Theme (selected + hover / children)
|
|
395
395
|
"children:hover:selected:theme-background-surface-3",
|
|
396
396
|
"dark:children:hover:selected:theme-background-surface-3-dark"
|
|
397
|
-
],
|
|
397
|
+
], gt = {
|
|
398
398
|
[w.Standard]: [
|
|
399
399
|
// Box
|
|
400
400
|
"min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
|
|
@@ -411,7 +411,7 @@ const dt = /* @__PURE__ */ R(lt, [["render", it]]), ct = [
|
|
|
411
411
|
// Box
|
|
412
412
|
"min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
|
|
413
413
|
]
|
|
414
|
-
},
|
|
414
|
+
}, ht = M({
|
|
415
415
|
name: "OrDataGridTableContentRow",
|
|
416
416
|
props: {
|
|
417
417
|
variant: {
|
|
@@ -431,31 +431,31 @@ const dt = /* @__PURE__ */ R(lt, [["render", it]]), ct = [
|
|
|
431
431
|
"root"
|
|
432
432
|
],
|
|
433
433
|
setup(e) {
|
|
434
|
-
const t = T(),
|
|
434
|
+
const t = T(), i = r(() => [
|
|
435
435
|
"or-data-grid-table-content-row-v3",
|
|
436
|
-
...
|
|
437
|
-
...
|
|
436
|
+
...ft,
|
|
437
|
+
...gt[e.variant],
|
|
438
438
|
...e.interactive ? ["cursor-pointer"] : []
|
|
439
439
|
]);
|
|
440
440
|
return {
|
|
441
441
|
root: t,
|
|
442
|
-
rootStyles:
|
|
442
|
+
rootStyles: i
|
|
443
443
|
};
|
|
444
444
|
}
|
|
445
|
-
}),
|
|
446
|
-
function
|
|
445
|
+
}), yt = ["selected"];
|
|
446
|
+
function vt(e, t, i, D, g, f) {
|
|
447
447
|
return n(), b("div", {
|
|
448
448
|
ref: "root",
|
|
449
449
|
class: u(e.rootStyles),
|
|
450
450
|
selected: e.selected
|
|
451
451
|
}, [
|
|
452
452
|
m(e.$slots, "default")
|
|
453
|
-
], 10,
|
|
453
|
+
], 10, yt);
|
|
454
454
|
}
|
|
455
|
-
const
|
|
455
|
+
const kt = /* @__PURE__ */ R(ht, [["render", vt]]), bt = [
|
|
456
456
|
// Layout
|
|
457
457
|
"contents"
|
|
458
|
-
],
|
|
458
|
+
], pt = M({
|
|
459
459
|
name: "OrDataGridTableContent",
|
|
460
460
|
expose: [
|
|
461
461
|
"root"
|
|
@@ -463,7 +463,7 @@ const ht = /* @__PURE__ */ R(mt, [["render", gt]]), yt = [
|
|
|
463
463
|
setup() {
|
|
464
464
|
const e = T(), t = r(() => [
|
|
465
465
|
"or-data-grid-table-content-v3",
|
|
466
|
-
...
|
|
466
|
+
...bt
|
|
467
467
|
]);
|
|
468
468
|
return {
|
|
469
469
|
root: e,
|
|
@@ -471,7 +471,7 @@ const ht = /* @__PURE__ */ R(mt, [["render", gt]]), yt = [
|
|
|
471
471
|
};
|
|
472
472
|
}
|
|
473
473
|
});
|
|
474
|
-
function
|
|
474
|
+
function Ot(e, t, i, D, g, f) {
|
|
475
475
|
return n(), b("div", {
|
|
476
476
|
ref: "root",
|
|
477
477
|
class: u(e.rootStyles)
|
|
@@ -479,7 +479,7 @@ function kt(e, t, l, D, g, f) {
|
|
|
479
479
|
m(e.$slots, "default")
|
|
480
480
|
], 2);
|
|
481
481
|
}
|
|
482
|
-
const
|
|
482
|
+
const $t = /* @__PURE__ */ R(pt, [["render", Ot]]), wt = [
|
|
483
483
|
// Layout
|
|
484
484
|
"layout-row",
|
|
485
485
|
// Spacing
|
|
@@ -489,7 +489,7 @@ const bt = /* @__PURE__ */ R(vt, [["render", kt]]), pt = [
|
|
|
489
489
|
// Theme
|
|
490
490
|
"theme-border-transparent border-1",
|
|
491
491
|
"dark:theme-border-transparent-dark"
|
|
492
|
-
],
|
|
492
|
+
], Dt = M({
|
|
493
493
|
name: "OrDataGridTableFooterCell",
|
|
494
494
|
expose: [
|
|
495
495
|
"root"
|
|
@@ -497,7 +497,7 @@ const bt = /* @__PURE__ */ R(vt, [["render", kt]]), pt = [
|
|
|
497
497
|
setup() {
|
|
498
498
|
const e = T(), t = r(() => [
|
|
499
499
|
"or-data-grid-table-footer-cell-v3",
|
|
500
|
-
...
|
|
500
|
+
...wt
|
|
501
501
|
]);
|
|
502
502
|
return {
|
|
503
503
|
root: e,
|
|
@@ -505,7 +505,7 @@ const bt = /* @__PURE__ */ R(vt, [["render", kt]]), pt = [
|
|
|
505
505
|
};
|
|
506
506
|
}
|
|
507
507
|
});
|
|
508
|
-
function
|
|
508
|
+
function St(e, t, i, D, g, f) {
|
|
509
509
|
return n(), b("div", {
|
|
510
510
|
ref: "root",
|
|
511
511
|
class: u(e.rootStyles)
|
|
@@ -513,7 +513,7 @@ function $t(e, t, l, D, g, f) {
|
|
|
513
513
|
m(e.$slots, "default")
|
|
514
514
|
], 2);
|
|
515
515
|
}
|
|
516
|
-
const
|
|
516
|
+
const Ct = /* @__PURE__ */ R(Dt, [["render", St]]), Tt = [
|
|
517
517
|
// Layout
|
|
518
518
|
"grid grid-cols-1",
|
|
519
519
|
// Typography
|
|
@@ -526,7 +526,7 @@ const wt = /* @__PURE__ */ R(Ot, [["render", $t]]), Dt = [
|
|
|
526
526
|
"dark:children:theme-foreground-default-dark",
|
|
527
527
|
"children:theme-background-default",
|
|
528
528
|
"dark:children:theme-background-default-dark"
|
|
529
|
-
],
|
|
529
|
+
], Gt = {
|
|
530
530
|
[w.Standard]: [
|
|
531
531
|
// Box
|
|
532
532
|
"min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
|
|
@@ -543,7 +543,7 @@ const wt = /* @__PURE__ */ R(Ot, [["render", $t]]), Dt = [
|
|
|
543
543
|
// Box
|
|
544
544
|
"min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
|
|
545
545
|
]
|
|
546
|
-
},
|
|
546
|
+
}, Vt = M({
|
|
547
547
|
name: "OrDataGridTableFooterRow",
|
|
548
548
|
props: {
|
|
549
549
|
variant: {
|
|
@@ -555,18 +555,18 @@ const wt = /* @__PURE__ */ R(Ot, [["render", $t]]), Dt = [
|
|
|
555
555
|
"root"
|
|
556
556
|
],
|
|
557
557
|
setup(e) {
|
|
558
|
-
const t = T(),
|
|
558
|
+
const t = T(), i = r(() => [
|
|
559
559
|
"or-data-grid-table-footer-row-v3",
|
|
560
|
-
...
|
|
561
|
-
...
|
|
560
|
+
...Tt,
|
|
561
|
+
...Gt[e.variant]
|
|
562
562
|
]);
|
|
563
563
|
return {
|
|
564
564
|
root: t,
|
|
565
|
-
rootStyles:
|
|
565
|
+
rootStyles: i
|
|
566
566
|
};
|
|
567
567
|
}
|
|
568
568
|
});
|
|
569
|
-
function
|
|
569
|
+
function It(e, t, i, D, g, f) {
|
|
570
570
|
return n(), b("div", {
|
|
571
571
|
ref: "root",
|
|
572
572
|
class: u(e.rootStyles)
|
|
@@ -574,10 +574,10 @@ function Tt(e, t, l, D, g, f) {
|
|
|
574
574
|
m(e.$slots, "default")
|
|
575
575
|
], 2);
|
|
576
576
|
}
|
|
577
|
-
const
|
|
577
|
+
const Mt = /* @__PURE__ */ R(Vt, [["render", It]]), Rt = [
|
|
578
578
|
// Layout
|
|
579
579
|
"contents"
|
|
580
|
-
],
|
|
580
|
+
], Wt = M({
|
|
581
581
|
name: "OrDataGridTableFooter",
|
|
582
582
|
expose: [
|
|
583
583
|
"root"
|
|
@@ -585,7 +585,7 @@ const Gt = /* @__PURE__ */ R(Ct, [["render", Tt]]), Vt = [
|
|
|
585
585
|
setup() {
|
|
586
586
|
const e = T(), t = r(() => [
|
|
587
587
|
"or-data-grid-table-footer-v3",
|
|
588
|
-
...
|
|
588
|
+
...Rt
|
|
589
589
|
]);
|
|
590
590
|
return {
|
|
591
591
|
root: e,
|
|
@@ -593,7 +593,7 @@ const Gt = /* @__PURE__ */ R(Ct, [["render", Tt]]), Vt = [
|
|
|
593
593
|
};
|
|
594
594
|
}
|
|
595
595
|
});
|
|
596
|
-
function
|
|
596
|
+
function Et(e, t, i, D, g, f) {
|
|
597
597
|
return n(), b("div", {
|
|
598
598
|
ref: "root",
|
|
599
599
|
class: u(e.rootStyles)
|
|
@@ -601,7 +601,7 @@ function Mt(e, t, l, D, g, f) {
|
|
|
601
601
|
m(e.$slots, "default")
|
|
602
602
|
], 2);
|
|
603
603
|
}
|
|
604
|
-
const
|
|
604
|
+
const zt = /* @__PURE__ */ R(Wt, [["render", Et]]), Ft = [
|
|
605
605
|
// Layout
|
|
606
606
|
"layout-row items-center",
|
|
607
607
|
// Spacing
|
|
@@ -625,7 +625,7 @@ const Rt = /* @__PURE__ */ R(It, [["render", Mt]]), Wt = [
|
|
|
625
625
|
"relative",
|
|
626
626
|
// Border (conditional override for last column)
|
|
627
627
|
"last:border-r-0"
|
|
628
|
-
],
|
|
628
|
+
], Ht = [
|
|
629
629
|
// Position
|
|
630
630
|
"absolute top-0 bottom-0 end-0 z-50",
|
|
631
631
|
// Box
|
|
@@ -636,10 +636,10 @@ const Rt = /* @__PURE__ */ R(It, [["render", Mt]]), Wt = [
|
|
|
636
636
|
"dark:hover:theme-background-primary-dark",
|
|
637
637
|
"active:theme-background-primary",
|
|
638
638
|
"dark:active:theme-background-primary-dark"
|
|
639
|
-
],
|
|
639
|
+
], jt = M({
|
|
640
640
|
name: "OrDataGridTableHeaderCell",
|
|
641
641
|
components: {
|
|
642
|
-
OrIcon:
|
|
642
|
+
OrIcon: Je
|
|
643
643
|
},
|
|
644
644
|
model: {
|
|
645
645
|
prop: "modelValue",
|
|
@@ -677,7 +677,7 @@ const Rt = /* @__PURE__ */ R(It, [["render", Mt]]), Wt = [
|
|
|
677
677
|
"root"
|
|
678
678
|
],
|
|
679
679
|
setup(e, t) {
|
|
680
|
-
const
|
|
680
|
+
const i = T(), D = r(() => {
|
|
681
681
|
var o, y, G;
|
|
682
682
|
return !!((o = e.features) != null && o.sorting) && !!((y = e.column) != null && y.name) && ((G = e.column) == null ? void 0 : G.sorting) !== !1;
|
|
683
683
|
}), g = r(() => {
|
|
@@ -688,7 +688,7 @@ const Rt = /* @__PURE__ */ R(It, [["render", Mt]]), Wt = [
|
|
|
688
688
|
return [
|
|
689
689
|
"or-data-grid-table-header-cell-v3",
|
|
690
690
|
"relative",
|
|
691
|
-
...
|
|
691
|
+
...Ft,
|
|
692
692
|
...(o = e.column) != null && o.stickiness ? [`sticky-${e.column.stickiness}`] : [],
|
|
693
693
|
...g.value ? ["resizable"] : [],
|
|
694
694
|
...D.value ? ["interactivity-click"] : [],
|
|
@@ -698,7 +698,7 @@ const Rt = /* @__PURE__ */ R(It, [["render", Mt]]), Wt = [
|
|
|
698
698
|
];
|
|
699
699
|
}), C = r(() => [
|
|
700
700
|
"or-data-grid-table-header-cell-resize-handle-v3",
|
|
701
|
-
...
|
|
701
|
+
...Ht
|
|
702
702
|
]), I = r(() => {
|
|
703
703
|
var o, y;
|
|
704
704
|
return {
|
|
@@ -706,7 +706,7 @@ const Rt = /* @__PURE__ */ R(It, [["render", Mt]]), Wt = [
|
|
|
706
706
|
maxWidth: (y = e.column) == null ? void 0 : y.maxWidth,
|
|
707
707
|
overflow: "hidden"
|
|
708
708
|
};
|
|
709
|
-
}),
|
|
709
|
+
}), F = r(() => {
|
|
710
710
|
var y;
|
|
711
711
|
const o = {
|
|
712
712
|
justifyContent: ((y = e.column) == null ? void 0 : y.alignment) || (e.column ? void 0 : "center")
|
|
@@ -767,36 +767,36 @@ const Rt = /* @__PURE__ */ R(It, [["render", Mt]]), Wt = [
|
|
|
767
767
|
};
|
|
768
768
|
}
|
|
769
769
|
}
|
|
770
|
-
function
|
|
771
|
-
var
|
|
772
|
-
const y = o.pageX, G = ((
|
|
773
|
-
let
|
|
774
|
-
const
|
|
775
|
-
p.value = !0,
|
|
776
|
-
var s,
|
|
777
|
-
const
|
|
778
|
-
let
|
|
779
|
-
const
|
|
780
|
-
if (
|
|
781
|
-
const
|
|
782
|
-
|
|
770
|
+
function H(o) {
|
|
771
|
+
var Q;
|
|
772
|
+
const y = o.pageX, G = ((Q = i.value) == null ? void 0 : Q.offsetWidth) || 0;
|
|
773
|
+
let j = null;
|
|
774
|
+
const A = (Y) => {
|
|
775
|
+
p.value = !0, j === null && (j = requestAnimationFrame(() => {
|
|
776
|
+
var s, l, K;
|
|
777
|
+
const Z = Y.pageX - y;
|
|
778
|
+
let P = Math.max(0, G + Z);
|
|
779
|
+
const L = ((s = e.column) == null ? void 0 : s.minWidth) || (((l = e.column) == null ? void 0 : l.name) === "_check" ? he : ie);
|
|
780
|
+
if (L && (L.endsWith("px") || !isNaN(Number(L)))) {
|
|
781
|
+
const x = parseInt(L, 10);
|
|
782
|
+
P = Math.max(P, x);
|
|
783
783
|
}
|
|
784
|
-
if ((
|
|
785
|
-
const
|
|
786
|
-
|
|
784
|
+
if ((K = e.column) != null && K.maxWidth && (e.column.maxWidth.endsWith("px") || !isNaN(Number(e.column.maxWidth)))) {
|
|
785
|
+
const x = parseInt(e.column.maxWidth, 10);
|
|
786
|
+
P = Math.min(P, x);
|
|
787
787
|
}
|
|
788
|
-
t.emit("update:column-width",
|
|
788
|
+
t.emit("update:column-width", P), j = null;
|
|
789
789
|
}));
|
|
790
|
-
},
|
|
791
|
-
|
|
790
|
+
}, B = () => {
|
|
791
|
+
j !== null && (cancelAnimationFrame(j), j = null), document.removeEventListener("mousemove", A), document.removeEventListener("mouseup", B), setTimeout(() => {
|
|
792
792
|
p.value = !1;
|
|
793
793
|
}, 0);
|
|
794
794
|
};
|
|
795
|
-
document.addEventListener("mousemove",
|
|
795
|
+
document.addEventListener("mousemove", A), document.addEventListener("mouseup", B);
|
|
796
796
|
}
|
|
797
|
-
const { width: h } =
|
|
797
|
+
const { width: h } = je(i, void 0, { box: "border-box" });
|
|
798
798
|
return ge([
|
|
799
|
-
|
|
799
|
+
i,
|
|
800
800
|
h,
|
|
801
801
|
() => {
|
|
802
802
|
var o;
|
|
@@ -815,15 +815,15 @@ const Rt = /* @__PURE__ */ R(It, [["render", Mt]]), Wt = [
|
|
|
815
815
|
,
|
|
816
816
|
G
|
|
817
817
|
]) => {
|
|
818
|
-
var
|
|
819
|
-
G && G !== ((
|
|
820
|
-
}),
|
|
818
|
+
var j;
|
|
819
|
+
G && G !== ((j = e.column) == null ? void 0 : j.name) && t.emit("remove:scrollOffset", G), t.emit("update:scrollOffset", o, y, e.column);
|
|
820
|
+
}), We(() => {
|
|
821
821
|
var o;
|
|
822
822
|
(o = e.column) != null && o.name && t.emit("remove:scrollOffset", e.column.name);
|
|
823
823
|
}), {
|
|
824
|
-
root:
|
|
824
|
+
root: i,
|
|
825
825
|
rootStyles: f,
|
|
826
|
-
rootInlineStyles:
|
|
826
|
+
rootInlineStyles: F,
|
|
827
827
|
headerContentStyles: W,
|
|
828
828
|
headerContentInlineStyles: V,
|
|
829
829
|
wrapInlineStyle: I,
|
|
@@ -832,27 +832,27 @@ const Rt = /* @__PURE__ */ R(It, [["render", Mt]]), Wt = [
|
|
|
832
832
|
isResizable: g,
|
|
833
833
|
model: S,
|
|
834
834
|
toggleSorting: E,
|
|
835
|
-
onResizeStart:
|
|
835
|
+
onResizeStart: H,
|
|
836
836
|
DATA_GRID_DEFAULT_MIN_WIDTH: ie
|
|
837
837
|
};
|
|
838
838
|
}
|
|
839
839
|
});
|
|
840
|
-
function
|
|
840
|
+
function Nt(e, t, i, D, g, f) {
|
|
841
841
|
const C = v("OrIcon");
|
|
842
842
|
return n(), b("div", {
|
|
843
843
|
ref: "root",
|
|
844
844
|
class: u(e.rootStyles),
|
|
845
|
-
style:
|
|
845
|
+
style: J(e.rootInlineStyles),
|
|
846
846
|
onClick: t[2] || (t[2] = (I) => e.toggleSorting())
|
|
847
847
|
}, [
|
|
848
848
|
e.override ? m(e.$slots, "default", { key: 0 }) : (n(), b("div", {
|
|
849
849
|
key: 1,
|
|
850
850
|
class: u(e.headerContentStyles),
|
|
851
|
-
style:
|
|
851
|
+
style: J(e.headerContentInlineStyles)
|
|
852
852
|
}, [
|
|
853
853
|
le("div", {
|
|
854
854
|
class: u(["truncate"]),
|
|
855
|
-
style:
|
|
855
|
+
style: J(e.wrapInlineStyle)
|
|
856
856
|
}, [
|
|
857
857
|
m(e.$slots, "default")
|
|
858
858
|
], 4),
|
|
@@ -870,7 +870,7 @@ function Ft(e, t, l, D, g, f) {
|
|
|
870
870
|
}, null, 34)) : k("", !0)
|
|
871
871
|
], 6);
|
|
872
872
|
}
|
|
873
|
-
const
|
|
873
|
+
const Pt = /* @__PURE__ */ R(jt, [["render", Nt]]), Ut = [
|
|
874
874
|
// Position
|
|
875
875
|
"sticky top-0 z-[10]",
|
|
876
876
|
// Layout
|
|
@@ -882,7 +882,7 @@ const Ht = /* @__PURE__ */ R(zt, [["render", Ft]]), jt = [
|
|
|
882
882
|
"dark:children:theme-foreground-default-dark",
|
|
883
883
|
"children:theme-background-surface-variant-1",
|
|
884
884
|
"dark:children:theme-background-surface-variant-1-dark"
|
|
885
|
-
],
|
|
885
|
+
], At = {
|
|
886
886
|
[w.Standard]: [
|
|
887
887
|
// Box
|
|
888
888
|
"min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
|
|
@@ -899,7 +899,7 @@ const Ht = /* @__PURE__ */ R(zt, [["render", Ft]]), jt = [
|
|
|
899
899
|
// Box
|
|
900
900
|
"min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
|
|
901
901
|
]
|
|
902
|
-
},
|
|
902
|
+
}, Lt = M({
|
|
903
903
|
name: "OrDataGridTableHeaderRow",
|
|
904
904
|
props: {
|
|
905
905
|
variant: {
|
|
@@ -911,18 +911,18 @@ const Ht = /* @__PURE__ */ R(zt, [["render", Ft]]), jt = [
|
|
|
911
911
|
"root"
|
|
912
912
|
],
|
|
913
913
|
setup(e) {
|
|
914
|
-
const t = T(),
|
|
914
|
+
const t = T(), i = r(() => [
|
|
915
915
|
"or-data-grid-table-header-row-v3",
|
|
916
|
-
...
|
|
917
|
-
...
|
|
916
|
+
...Ut,
|
|
917
|
+
...At[e.variant]
|
|
918
918
|
]);
|
|
919
919
|
return {
|
|
920
920
|
root: t,
|
|
921
|
-
rootStyles:
|
|
921
|
+
rootStyles: i
|
|
922
922
|
};
|
|
923
923
|
}
|
|
924
924
|
});
|
|
925
|
-
function
|
|
925
|
+
function qt(e, t, i, D, g, f) {
|
|
926
926
|
return n(), b("div", {
|
|
927
927
|
ref: "root",
|
|
928
928
|
class: u(e.rootStyles)
|
|
@@ -930,10 +930,10 @@ function Ut(e, t, l, D, g, f) {
|
|
|
930
930
|
m(e.$slots, "default")
|
|
931
931
|
], 2);
|
|
932
932
|
}
|
|
933
|
-
const
|
|
933
|
+
const Bt = /* @__PURE__ */ R(Lt, [["render", qt]]), Kt = [
|
|
934
934
|
// Layout
|
|
935
935
|
"contents"
|
|
936
|
-
],
|
|
936
|
+
], Xt = M({
|
|
937
937
|
name: "OrDataGridTableHeader",
|
|
938
938
|
expose: [
|
|
939
939
|
"root"
|
|
@@ -941,7 +941,7 @@ const At = /* @__PURE__ */ R(Nt, [["render", Ut]]), Lt = [
|
|
|
941
941
|
setup() {
|
|
942
942
|
const e = T(), t = r(() => [
|
|
943
943
|
"or-data-grid-table-header-v3",
|
|
944
|
-
...
|
|
944
|
+
...Kt
|
|
945
945
|
]);
|
|
946
946
|
return {
|
|
947
947
|
root: e,
|
|
@@ -949,7 +949,7 @@ const At = /* @__PURE__ */ R(Nt, [["render", Ut]]), Lt = [
|
|
|
949
949
|
};
|
|
950
950
|
}
|
|
951
951
|
});
|
|
952
|
-
function
|
|
952
|
+
function Jt(e, t, i, D, g, f) {
|
|
953
953
|
return n(), b("div", {
|
|
954
954
|
ref: "root",
|
|
955
955
|
class: u(e.rootStyles)
|
|
@@ -957,7 +957,7 @@ function Bt(e, t, l, D, g, f) {
|
|
|
957
957
|
m(e.$slots, "default")
|
|
958
958
|
], 2);
|
|
959
959
|
}
|
|
960
|
-
const
|
|
960
|
+
const Qt = /* @__PURE__ */ R(Xt, [["render", Jt]]), Yt = [
|
|
961
961
|
// Layout
|
|
962
962
|
"layout-row justify-center items-center",
|
|
963
963
|
// Spacing
|
|
@@ -971,7 +971,7 @@ const Kt = /* @__PURE__ */ R(qt, [["render", Bt]]), Xt = [
|
|
|
971
971
|
"dark:theme-foreground-default-dark",
|
|
972
972
|
"theme-background-default",
|
|
973
973
|
"dark:theme-background-default-dark"
|
|
974
|
-
],
|
|
974
|
+
], Zt = {
|
|
975
975
|
[w.Standard]: [
|
|
976
976
|
// Box
|
|
977
977
|
"min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
|
|
@@ -988,7 +988,7 @@ const Kt = /* @__PURE__ */ R(qt, [["render", Bt]]), Xt = [
|
|
|
988
988
|
// Box
|
|
989
989
|
"min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
|
|
990
990
|
]
|
|
991
|
-
},
|
|
991
|
+
}, xt = M({
|
|
992
992
|
name: "OrDataGridTablePlaceholder",
|
|
993
993
|
props: {
|
|
994
994
|
variant: {
|
|
@@ -1000,18 +1000,18 @@ const Kt = /* @__PURE__ */ R(qt, [["render", Bt]]), Xt = [
|
|
|
1000
1000
|
"root"
|
|
1001
1001
|
],
|
|
1002
1002
|
setup(e) {
|
|
1003
|
-
const t = T(),
|
|
1003
|
+
const t = T(), i = r(() => [
|
|
1004
1004
|
"or-data-grid-table-placeholder-v3",
|
|
1005
|
-
...
|
|
1006
|
-
...
|
|
1005
|
+
...Yt,
|
|
1006
|
+
...Zt[e.variant]
|
|
1007
1007
|
]);
|
|
1008
1008
|
return {
|
|
1009
1009
|
root: t,
|
|
1010
|
-
rootStyles:
|
|
1010
|
+
rootStyles: i
|
|
1011
1011
|
};
|
|
1012
1012
|
}
|
|
1013
1013
|
});
|
|
1014
|
-
function
|
|
1014
|
+
function _t(e, t, i, D, g, f) {
|
|
1015
1015
|
return n(), b("div", {
|
|
1016
1016
|
ref: "root",
|
|
1017
1017
|
class: u(e.rootStyles)
|
|
@@ -1019,7 +1019,7 @@ function Yt(e, t, l, D, g, f) {
|
|
|
1019
1019
|
m(e.$slots, "default")
|
|
1020
1020
|
], 2);
|
|
1021
1021
|
}
|
|
1022
|
-
const
|
|
1022
|
+
const ea = /* @__PURE__ */ R(xt, [["render", _t]]), ta = [
|
|
1023
1023
|
// Layout
|
|
1024
1024
|
"grid content-start",
|
|
1025
1025
|
"w-full min-w-0 min-h-0",
|
|
@@ -1027,7 +1027,7 @@ const Zt = /* @__PURE__ */ R(Qt, [["render", Yt]]), xt = [
|
|
|
1027
1027
|
"overflow-auto",
|
|
1028
1028
|
// Interactivity
|
|
1029
1029
|
"interactivity-default"
|
|
1030
|
-
],
|
|
1030
|
+
], aa = M({
|
|
1031
1031
|
name: "OrDataGridTable",
|
|
1032
1032
|
props: {
|
|
1033
1033
|
columns: {
|
|
@@ -1047,42 +1047,42 @@ const Zt = /* @__PURE__ */ R(Qt, [["render", Yt]]), xt = [
|
|
|
1047
1047
|
"root"
|
|
1048
1048
|
],
|
|
1049
1049
|
setup(e) {
|
|
1050
|
-
const t = T(),
|
|
1050
|
+
const t = T(), i = r(() => [
|
|
1051
1051
|
"or-data-grid-table-v3",
|
|
1052
|
-
...
|
|
1052
|
+
...ta
|
|
1053
1053
|
]), D = r(() => {
|
|
1054
1054
|
const g = e.columns.map((f) => {
|
|
1055
1055
|
const C = e.columnWidths[f.name] || f.width;
|
|
1056
1056
|
if (C && (C.includes("minmax") || C.includes("calc")))
|
|
1057
1057
|
return C;
|
|
1058
|
-
const I = C ?? "1fr",
|
|
1059
|
-
return f.fitContent ? "max-content" : I.endsWith("px") ? I : `minmax(${
|
|
1058
|
+
const I = C ?? "1fr", F = f.minWidth || (C ? ie : f.fitContent || f.stickiness ? "max-content" : "120px"), p = f.maxWidth || (C ? I === "max-content" ? "max-content" : I : f.fitContent || f.minWidth || f.stickiness ? "max-content" : "1fr");
|
|
1059
|
+
return f.fitContent ? "max-content" : I.endsWith("px") ? I : `minmax(${F}, ${p})`;
|
|
1060
1060
|
});
|
|
1061
1061
|
return e.features.selecting ? { gridTemplateColumns: `${he} ${g.join(" ")}` } : { gridTemplateColumns: g.join(" ") };
|
|
1062
1062
|
});
|
|
1063
1063
|
return {
|
|
1064
1064
|
root: t,
|
|
1065
|
-
rootStyles:
|
|
1065
|
+
rootStyles: i,
|
|
1066
1066
|
rootInlineStyles: D
|
|
1067
1067
|
};
|
|
1068
1068
|
}
|
|
1069
1069
|
});
|
|
1070
|
-
function
|
|
1070
|
+
function na(e, t, i, D, g, f) {
|
|
1071
1071
|
return n(), b("div", {
|
|
1072
1072
|
ref: "root",
|
|
1073
1073
|
class: u(e.rootStyles),
|
|
1074
|
-
style:
|
|
1074
|
+
style: J(e.rootInlineStyles)
|
|
1075
1075
|
}, [
|
|
1076
1076
|
m(e.$slots, "default")
|
|
1077
1077
|
], 6);
|
|
1078
1078
|
}
|
|
1079
|
-
const
|
|
1079
|
+
const oa = /* @__PURE__ */ R(aa, [["render", na]]), ra = [
|
|
1080
1080
|
// Layout
|
|
1081
1081
|
"layout-row",
|
|
1082
1082
|
// Spacing
|
|
1083
1083
|
"gap-xl",
|
|
1084
1084
|
"pb-md"
|
|
1085
|
-
],
|
|
1085
|
+
], sa = M({
|
|
1086
1086
|
name: "OrDataGridToolbar",
|
|
1087
1087
|
expose: [
|
|
1088
1088
|
"root"
|
|
@@ -1090,7 +1090,7 @@ const ta = /* @__PURE__ */ R(_t, [["render", ea]]), aa = [
|
|
|
1090
1090
|
setup() {
|
|
1091
1091
|
const e = T(), t = r(() => [
|
|
1092
1092
|
"or-data-grid-toolbar-v3",
|
|
1093
|
-
...
|
|
1093
|
+
...ra
|
|
1094
1094
|
]);
|
|
1095
1095
|
return {
|
|
1096
1096
|
root: e,
|
|
@@ -1098,7 +1098,7 @@ const ta = /* @__PURE__ */ R(_t, [["render", ea]]), aa = [
|
|
|
1098
1098
|
};
|
|
1099
1099
|
}
|
|
1100
1100
|
});
|
|
1101
|
-
function
|
|
1101
|
+
function la(e, t, i, D, g, f) {
|
|
1102
1102
|
return n(), b("div", {
|
|
1103
1103
|
ref: "root",
|
|
1104
1104
|
class: u(e.rootStyles)
|
|
@@ -1106,12 +1106,12 @@ function oa(e, t, l, D, g, f) {
|
|
|
1106
1106
|
m(e.$slots, "default")
|
|
1107
1107
|
], 2);
|
|
1108
1108
|
}
|
|
1109
|
-
const
|
|
1109
|
+
const ia = /* @__PURE__ */ R(sa, [["render", la]]), da = [
|
|
1110
1110
|
// Position
|
|
1111
1111
|
"grid sticky z-10",
|
|
1112
1112
|
// Layout
|
|
1113
1113
|
"col-span-full"
|
|
1114
|
-
],
|
|
1114
|
+
], ca = {
|
|
1115
1115
|
[w.Standard]: [
|
|
1116
1116
|
// Position
|
|
1117
1117
|
"top-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
|
|
@@ -1128,9 +1128,9 @@ const ra = /* @__PURE__ */ R(na, [["render", oa]]), sa = [
|
|
|
1128
1128
|
// Position
|
|
1129
1129
|
"top-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
|
|
1130
1130
|
]
|
|
1131
|
-
},
|
|
1131
|
+
}, ua = M({
|
|
1132
1132
|
components: {
|
|
1133
|
-
OrNotification:
|
|
1133
|
+
OrNotification: Qe
|
|
1134
1134
|
},
|
|
1135
1135
|
props: {
|
|
1136
1136
|
notification: {
|
|
@@ -1149,18 +1149,18 @@ const ra = /* @__PURE__ */ R(na, [["render", oa]]), sa = [
|
|
|
1149
1149
|
return {
|
|
1150
1150
|
rootStyles: r(() => [
|
|
1151
1151
|
"or-data-grid-notification-v3",
|
|
1152
|
-
...
|
|
1153
|
-
...
|
|
1152
|
+
...da,
|
|
1153
|
+
...ca[e.variant]
|
|
1154
1154
|
])
|
|
1155
1155
|
};
|
|
1156
1156
|
}
|
|
1157
1157
|
});
|
|
1158
|
-
function
|
|
1158
|
+
function ma(e, t, i, D, g, f) {
|
|
1159
1159
|
const C = v("OrNotification");
|
|
1160
1160
|
return n(), b("div", {
|
|
1161
1161
|
class: u(e.rootStyles)
|
|
1162
1162
|
}, [
|
|
1163
|
-
|
|
1163
|
+
U(C, Ee(e.notification, {
|
|
1164
1164
|
class: "rounded-0 shadow-none",
|
|
1165
1165
|
onClose: t[0] || (t[0] = (I) => e.$emit("close-notification"))
|
|
1166
1166
|
}), {
|
|
@@ -1171,7 +1171,7 @@ function da(e, t, l, D, g, f) {
|
|
|
1171
1171
|
}, 16)
|
|
1172
1172
|
], 2);
|
|
1173
1173
|
}
|
|
1174
|
-
const
|
|
1174
|
+
const fa = /* @__PURE__ */ R(ua, [["render", ma]]), ga = [
|
|
1175
1175
|
// Layout
|
|
1176
1176
|
"grid col-span-full grid-cols-[subgrid]",
|
|
1177
1177
|
// Typography
|
|
@@ -1184,7 +1184,7 @@ const ca = /* @__PURE__ */ R(ia, [["render", da]]), ua = [
|
|
|
1184
1184
|
"dark:children:theme-foreground-default-dark",
|
|
1185
1185
|
"children:theme-background-default",
|
|
1186
1186
|
"dark:children:theme-background-default-dark"
|
|
1187
|
-
],
|
|
1187
|
+
], ha = {
|
|
1188
1188
|
[w.Standard]: [
|
|
1189
1189
|
// Box
|
|
1190
1190
|
"min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
|
|
@@ -1201,7 +1201,7 @@ const ca = /* @__PURE__ */ R(ia, [["render", da]]), ua = [
|
|
|
1201
1201
|
// Box
|
|
1202
1202
|
"min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
|
|
1203
1203
|
]
|
|
1204
|
-
},
|
|
1204
|
+
}, ya = M({
|
|
1205
1205
|
name: "OrDataGridTableExtraRow",
|
|
1206
1206
|
props: {
|
|
1207
1207
|
variant: {
|
|
@@ -1213,18 +1213,18 @@ const ca = /* @__PURE__ */ R(ia, [["render", da]]), ua = [
|
|
|
1213
1213
|
"root"
|
|
1214
1214
|
],
|
|
1215
1215
|
setup(e) {
|
|
1216
|
-
const t = T(),
|
|
1216
|
+
const t = T(), i = r(() => [
|
|
1217
1217
|
"or-data-grid-table-extra-row-v3",
|
|
1218
|
-
...
|
|
1219
|
-
...
|
|
1218
|
+
...ga,
|
|
1219
|
+
...ha[e.variant]
|
|
1220
1220
|
]);
|
|
1221
1221
|
return {
|
|
1222
1222
|
root: t,
|
|
1223
|
-
rootStyles:
|
|
1223
|
+
rootStyles: i
|
|
1224
1224
|
};
|
|
1225
1225
|
}
|
|
1226
1226
|
});
|
|
1227
|
-
function
|
|
1227
|
+
function va(e, t, i, D, g, f) {
|
|
1228
1228
|
return n(), b("div", {
|
|
1229
1229
|
ref: "root",
|
|
1230
1230
|
class: u(e.rootStyles)
|
|
@@ -1232,33 +1232,33 @@ function ga(e, t, l, D, g, f) {
|
|
|
1232
1232
|
m(e.$slots, "default")
|
|
1233
1233
|
], 2);
|
|
1234
1234
|
}
|
|
1235
|
-
const
|
|
1235
|
+
const ka = /* @__PURE__ */ R(ya, [["render", va]]), ba = [
|
|
1236
1236
|
// Layout
|
|
1237
1237
|
"layout-column min-h-0 w-full"
|
|
1238
|
-
],
|
|
1238
|
+
], pa = M({
|
|
1239
1239
|
name: "OrDataGrid",
|
|
1240
1240
|
components: {
|
|
1241
1241
|
OrCheckbox: fe,
|
|
1242
|
-
OrDataGridFooter:
|
|
1243
|
-
OrDataGridHeader:
|
|
1244
|
-
OrDataGridTable:
|
|
1245
|
-
OrDataGridTableContent:
|
|
1246
|
-
OrDataGridTableContentCell:
|
|
1247
|
-
OrDataGridTableContentRow:
|
|
1248
|
-
OrDataGridTableFooter:
|
|
1249
|
-
OrDataGridTableFooterCell:
|
|
1250
|
-
OrDataGridTableFooterRow:
|
|
1251
|
-
OrDataGridTableExtraRow:
|
|
1252
|
-
OrDataGridTableHeader:
|
|
1253
|
-
OrDataGridTableHeaderCell:
|
|
1254
|
-
OrDataGridTableHeaderRow:
|
|
1255
|
-
OrDataGridTablePlaceholder:
|
|
1256
|
-
OrDataGridToolbar:
|
|
1257
|
-
OrDataGridNotification:
|
|
1258
|
-
OrIconButton:
|
|
1259
|
-
OrPagination:
|
|
1260
|
-
OrSearch:
|
|
1261
|
-
OrSkeletonText:
|
|
1242
|
+
OrDataGridFooter: tt,
|
|
1243
|
+
OrDataGridHeader: lt,
|
|
1244
|
+
OrDataGridTable: oa,
|
|
1245
|
+
OrDataGridTableContent: $t,
|
|
1246
|
+
OrDataGridTableContentCell: mt,
|
|
1247
|
+
OrDataGridTableContentRow: kt,
|
|
1248
|
+
OrDataGridTableFooter: zt,
|
|
1249
|
+
OrDataGridTableFooterCell: Ct,
|
|
1250
|
+
OrDataGridTableFooterRow: Mt,
|
|
1251
|
+
OrDataGridTableExtraRow: ka,
|
|
1252
|
+
OrDataGridTableHeader: Qt,
|
|
1253
|
+
OrDataGridTableHeaderCell: Pt,
|
|
1254
|
+
OrDataGridTableHeaderRow: Bt,
|
|
1255
|
+
OrDataGridTablePlaceholder: ea,
|
|
1256
|
+
OrDataGridToolbar: ia,
|
|
1257
|
+
OrDataGridNotification: fa,
|
|
1258
|
+
OrIconButton: Ve,
|
|
1259
|
+
OrPagination: Ie,
|
|
1260
|
+
OrSearch: Me,
|
|
1261
|
+
OrSkeletonText: Re
|
|
1262
1262
|
},
|
|
1263
1263
|
model: {
|
|
1264
1264
|
prop: "modelValue",
|
|
@@ -1316,30 +1316,30 @@ const ha = /* @__PURE__ */ R(fa, [["render", ga]]), ya = [
|
|
|
1316
1316
|
"root"
|
|
1317
1317
|
],
|
|
1318
1318
|
setup(e, t) {
|
|
1319
|
-
const
|
|
1319
|
+
const i = T(), D = T(), g = T(), f = r(() => [
|
|
1320
1320
|
"or-data-grid-v3",
|
|
1321
|
-
...
|
|
1321
|
+
...ba
|
|
1322
1322
|
]), C = r(() => {
|
|
1323
1323
|
const a = {
|
|
1324
|
-
scrollPaddingInlineStart: `${[...
|
|
1325
|
-
scrollPaddingInlineEnd: `${[...
|
|
1324
|
+
scrollPaddingInlineStart: `${[...P.values()].reduce((d, c) => d + c, 0)}px`,
|
|
1325
|
+
scrollPaddingInlineEnd: `${[...L.values()].reduce((d, c) => d + c, 0)}px`
|
|
1326
1326
|
};
|
|
1327
|
-
return
|
|
1327
|
+
return P.forEach((d, c) => {
|
|
1328
1328
|
a[`--or-dg-col-width-${c}`] = `${d}px`;
|
|
1329
|
-
}),
|
|
1329
|
+
}), L.forEach((d, c) => {
|
|
1330
1330
|
a[`--or-dg-col-width-${c}`] = `${d}px`;
|
|
1331
1331
|
}), a;
|
|
1332
1332
|
}), I = r({
|
|
1333
|
-
get: () => !!(e.items && e.items.length) && e.items.every((a) =>
|
|
1333
|
+
get: () => !!(e.items && e.items.length) && e.items.every((a) => F.value.includes(_(a))),
|
|
1334
1334
|
set: (a) => {
|
|
1335
|
-
a && e.items ?
|
|
1335
|
+
a && e.items ? F.value = [
|
|
1336
1336
|
.../* @__PURE__ */ new Set([
|
|
1337
|
-
...
|
|
1337
|
+
...F.value,
|
|
1338
1338
|
...e.items.map((d) => _(d))
|
|
1339
1339
|
])
|
|
1340
|
-
] :
|
|
1340
|
+
] : F.value = [];
|
|
1341
1341
|
}
|
|
1342
|
-
}),
|
|
1342
|
+
}), F = r({
|
|
1343
1343
|
get: () => e.modelValue && e.modelValue.selecting || [],
|
|
1344
1344
|
set: (a) => {
|
|
1345
1345
|
t.emit("update:modelValue", {
|
|
@@ -1399,10 +1399,10 @@ const ha = /* @__PURE__ */ R(fa, [["render", ga]]), ya = [
|
|
|
1399
1399
|
expanded: a
|
|
1400
1400
|
});
|
|
1401
1401
|
}
|
|
1402
|
-
}),
|
|
1402
|
+
}), H = (a) => E.value.indexOf(_(a)) !== -1, h = (a) => {
|
|
1403
1403
|
if (!a.children || a.children.length === 0) return;
|
|
1404
1404
|
const d = _(a), c = E.value;
|
|
1405
|
-
c.indexOf(d) === -1 ? E.value = [...c, d] : E.value = c.filter((
|
|
1405
|
+
c.indexOf(d) === -1 ? E.value = [...c, d] : E.value = c.filter((X) => X !== d);
|
|
1406
1406
|
};
|
|
1407
1407
|
ge(() => V.value && V.value.offset, () => {
|
|
1408
1408
|
g.value && g.value.root && g.value.root.scrollTo({
|
|
@@ -1410,126 +1410,137 @@ const ha = /* @__PURE__ */ R(fa, [["render", ga]]), ya = [
|
|
|
1410
1410
|
behavior: "smooth"
|
|
1411
1411
|
});
|
|
1412
1412
|
});
|
|
1413
|
-
const o = r(() => !e.features.hierarchy || !e.items ? e.items || [] :
|
|
1413
|
+
const o = r(() => !e.features.hierarchy || !e.items ? e.items || [] : Ge(e.items, H)), y = r(() => e.features.selecting && (typeof e.features.selecting == "object" ? e.features.selecting.showCounter !== !1 : !0)), G = r(() => !e.items || e.items.length === 0 || e.loading || typeof e.features.selecting == "object" && e.features.selecting.disabled), j = r(() => {
|
|
1414
1414
|
const a = V.value;
|
|
1415
1415
|
return a && a.limit || 10;
|
|
1416
|
-
}),
|
|
1417
|
-
|
|
1416
|
+
}), A = T({}), B = r(() => e.columns), Q = r(() => typeof e.features.hierarchy == "object" ? e.features.hierarchy : void 0), Y = r(() => {
|
|
1417
|
+
var d;
|
|
1418
|
+
const a = (d = Q.value) == null ? void 0 : d.indent;
|
|
1419
|
+
return typeof a == "number" && Number.isFinite(a) && a >= 0 ? a : 24;
|
|
1420
|
+
}), Z = r(() => {
|
|
1421
|
+
var z, X;
|
|
1422
|
+
const a = new Set(B.value.map((q) => q.name)), d = (z = B.value[0]) == null ? void 0 : z.name, c = (X = Q.value) == null ? void 0 : X.column;
|
|
1423
|
+
return new Map(o.value.map((q) => {
|
|
1424
|
+
const N = typeof c == "function" ? c(q) : c;
|
|
1425
|
+
return [q, N !== void 0 && a.has(N) ? N : d];
|
|
1426
|
+
}));
|
|
1427
|
+
}), P = ue(/* @__PURE__ */ new Map()), L = ue(/* @__PURE__ */ new Map()), s = r(() => {
|
|
1428
|
+
const a = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Map(), c = [], z = [];
|
|
1418
1429
|
e.features.selecting && c.push({
|
|
1419
1430
|
name: "_check",
|
|
1420
1431
|
stickiness: "start",
|
|
1421
1432
|
alignment: "center"
|
|
1422
|
-
}),
|
|
1423
|
-
|
|
1433
|
+
}), B.value.forEach((N) => {
|
|
1434
|
+
N.stickiness === "start" ? c.push(N) : N.stickiness === "end" && z.push(N);
|
|
1424
1435
|
});
|
|
1425
|
-
let
|
|
1426
|
-
c.forEach((
|
|
1427
|
-
a.set(
|
|
1436
|
+
let X = "0px";
|
|
1437
|
+
c.forEach((N) => {
|
|
1438
|
+
a.set(N.name, X), X = `calc(${X} + var(--or-dg-col-width-${N.name}, 0px))`;
|
|
1428
1439
|
});
|
|
1429
|
-
let
|
|
1430
|
-
return [...
|
|
1431
|
-
d.set(
|
|
1440
|
+
let q = "0px";
|
|
1441
|
+
return [...z].reverse().forEach((N) => {
|
|
1442
|
+
d.set(N.name, q), q = `calc(${q} + var(--or-dg-col-width-${N.name}, 0px))`;
|
|
1432
1443
|
}), {
|
|
1433
1444
|
start: a,
|
|
1434
1445
|
end: d
|
|
1435
1446
|
};
|
|
1436
1447
|
});
|
|
1437
|
-
function
|
|
1448
|
+
function l(a) {
|
|
1438
1449
|
S.value = a;
|
|
1439
1450
|
}
|
|
1440
|
-
function
|
|
1451
|
+
function K(a, d, c) {
|
|
1441
1452
|
switch (c.stickiness) {
|
|
1442
1453
|
case "start":
|
|
1443
|
-
|
|
1454
|
+
P.set(c.name, d), L.delete(c.name);
|
|
1444
1455
|
break;
|
|
1445
1456
|
case "end":
|
|
1446
|
-
|
|
1457
|
+
P.delete(c.name), L.set(c.name, d);
|
|
1447
1458
|
break;
|
|
1448
1459
|
default:
|
|
1449
1460
|
de(c.name);
|
|
1450
1461
|
break;
|
|
1451
1462
|
}
|
|
1452
1463
|
}
|
|
1453
|
-
function
|
|
1464
|
+
function x(a) {
|
|
1454
1465
|
e.interactiveRows && t.emit("hover:row", a);
|
|
1455
1466
|
}
|
|
1456
|
-
function
|
|
1467
|
+
function ye(a) {
|
|
1457
1468
|
e.interactiveRows && t.emit("blur:row", a);
|
|
1458
1469
|
}
|
|
1459
|
-
function
|
|
1470
|
+
function ve(a, d, c) {
|
|
1460
1471
|
e.interactiveRows && t.emit("hover:cell", {
|
|
1461
1472
|
item: a,
|
|
1462
1473
|
columnName: d,
|
|
1463
1474
|
value: c
|
|
1464
1475
|
});
|
|
1465
1476
|
}
|
|
1466
|
-
function
|
|
1477
|
+
function ke(a, d, c) {
|
|
1467
1478
|
e.interactiveRows && t.emit("blur:cell", {
|
|
1468
1479
|
item: a,
|
|
1469
1480
|
columnName: d,
|
|
1470
1481
|
value: c
|
|
1471
1482
|
});
|
|
1472
1483
|
}
|
|
1473
|
-
function
|
|
1484
|
+
function be(a) {
|
|
1474
1485
|
e.interactiveRows && t.emit("click:row", a);
|
|
1475
1486
|
}
|
|
1476
|
-
const
|
|
1477
|
-
function
|
|
1487
|
+
const pe = me(Oe, 500);
|
|
1488
|
+
function Oe() {
|
|
1478
1489
|
var d;
|
|
1479
1490
|
if (typeof window > "u" || !e.features.storageKey) return;
|
|
1480
1491
|
const a = {};
|
|
1481
|
-
|
|
1482
|
-
const
|
|
1483
|
-
c.name &&
|
|
1492
|
+
B.value.forEach((c) => {
|
|
1493
|
+
const z = A.value[c.name] || c.width;
|
|
1494
|
+
c.name && z && (a[c.name] = z);
|
|
1484
1495
|
}), localStorage.setItem(`or-data-grid-v3-widths-${e.features.storageKey}`, JSON.stringify({
|
|
1485
1496
|
widths: a,
|
|
1486
|
-
containerWidth: (d =
|
|
1497
|
+
containerWidth: (d = i.value) == null ? void 0 : d.offsetWidth
|
|
1487
1498
|
}));
|
|
1488
1499
|
}
|
|
1489
1500
|
const ne = T(!1);
|
|
1490
|
-
function
|
|
1491
|
-
ne.value = !0,
|
|
1492
|
-
...
|
|
1501
|
+
function $e(a, d) {
|
|
1502
|
+
ne.value = !0, A.value = {
|
|
1503
|
+
...A.value,
|
|
1493
1504
|
[a.name]: `${d}px`
|
|
1494
|
-
}, e.features.storageKey &&
|
|
1505
|
+
}, e.features.storageKey && pe(), we();
|
|
1495
1506
|
}
|
|
1496
|
-
const
|
|
1507
|
+
const we = me(() => {
|
|
1497
1508
|
ne.value = !1;
|
|
1498
|
-
}, 1e3),
|
|
1499
|
-
function
|
|
1509
|
+
}, 1e3), De = T(0);
|
|
1510
|
+
function Se() {
|
|
1500
1511
|
if (!(typeof window > "u" || !e.features.storageKey))
|
|
1501
1512
|
try {
|
|
1502
1513
|
const a = localStorage.getItem(`or-data-grid-v3-widths-${e.features.storageKey}`);
|
|
1503
1514
|
if (a) {
|
|
1504
|
-
const d = JSON.parse(a), c = d.widths || d,
|
|
1505
|
-
if (
|
|
1506
|
-
|
|
1515
|
+
const d = JSON.parse(a), c = d.widths || d, z = d.containerWidth;
|
|
1516
|
+
if (z && i.value && Math.abs(i.value.offsetWidth - z) > 10) {
|
|
1517
|
+
De.value = z;
|
|
1507
1518
|
return;
|
|
1508
1519
|
}
|
|
1509
|
-
|
|
1520
|
+
A.value = c;
|
|
1510
1521
|
}
|
|
1511
1522
|
} catch (a) {
|
|
1512
1523
|
console.error("[OrDataGrid]: Failed to load column widths from localStorage", a);
|
|
1513
1524
|
}
|
|
1514
1525
|
}
|
|
1515
|
-
|
|
1526
|
+
Ne(i, (a) => {
|
|
1516
1527
|
const d = a[0], { width: c } = d.contentRect;
|
|
1517
|
-
if (!(c <= 0 || ne.value || !e.features.storageKey) && Object.keys(
|
|
1518
|
-
const
|
|
1519
|
-
if (
|
|
1528
|
+
if (!(c <= 0 || ne.value || !e.features.storageKey) && Object.keys(A.value).length > 0) {
|
|
1529
|
+
const z = localStorage.getItem(`or-data-grid-v3-widths-${e.features.storageKey}`);
|
|
1530
|
+
if (z)
|
|
1520
1531
|
try {
|
|
1521
|
-
const
|
|
1522
|
-
|
|
1532
|
+
const q = JSON.parse(z).containerWidth;
|
|
1533
|
+
q && Math.abs(c - q) > 10 && (A.value = {});
|
|
1523
1534
|
} catch {
|
|
1524
1535
|
}
|
|
1525
1536
|
}
|
|
1526
|
-
}),
|
|
1527
|
-
|
|
1537
|
+
}), ze(() => {
|
|
1538
|
+
Se();
|
|
1528
1539
|
});
|
|
1529
1540
|
function de(a) {
|
|
1530
|
-
|
|
1541
|
+
P.delete(a), L.delete(a);
|
|
1531
1542
|
}
|
|
1532
|
-
function
|
|
1543
|
+
function Ce(a) {
|
|
1533
1544
|
a.currentTarget.scrollIntoView({ block: "nearest" });
|
|
1534
1545
|
}
|
|
1535
1546
|
function ce(a, d) {
|
|
@@ -1538,38 +1549,40 @@ const ha = /* @__PURE__ */ R(fa, [["render", ga]]), ya = [
|
|
|
1538
1549
|
function _(a) {
|
|
1539
1550
|
return typeof e.itemKey == "function" ? e.itemKey(a) : ce(a, e.itemKey);
|
|
1540
1551
|
}
|
|
1541
|
-
function
|
|
1552
|
+
function Te(a, d, c) {
|
|
1542
1553
|
a[d] = c;
|
|
1543
1554
|
}
|
|
1544
1555
|
return {
|
|
1545
|
-
root:
|
|
1556
|
+
root: i,
|
|
1546
1557
|
rootStyles: f,
|
|
1547
1558
|
pagination: D,
|
|
1548
1559
|
tableInlineStyles: C,
|
|
1549
1560
|
selectingIndicator: I,
|
|
1550
1561
|
showSelectingCouter: y,
|
|
1551
1562
|
selectingDisabled: G,
|
|
1552
|
-
skeletonsLength:
|
|
1553
|
-
actualColumns:
|
|
1563
|
+
skeletonsLength: j,
|
|
1564
|
+
actualColumns: B,
|
|
1554
1565
|
actualItems: o,
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1566
|
+
hierarchyColumns: Z,
|
|
1567
|
+
hierarchyIndent: Y,
|
|
1568
|
+
handleMouseEnterRow: x,
|
|
1569
|
+
handleMouseLeaveRow: ye,
|
|
1570
|
+
handleMouseEnterCell: ve,
|
|
1571
|
+
handleMouseLeaveCell: ke,
|
|
1572
|
+
handleRowClick: be,
|
|
1560
1573
|
toggleExpand: h,
|
|
1561
|
-
isExpanded:
|
|
1562
|
-
updateColumnWidth:
|
|
1563
|
-
columnWidths:
|
|
1564
|
-
selectingModel:
|
|
1574
|
+
isExpanded: H,
|
|
1575
|
+
updateColumnWidth: $e,
|
|
1576
|
+
columnWidths: A,
|
|
1577
|
+
selectingModel: F,
|
|
1565
1578
|
filteringModel: p,
|
|
1566
1579
|
searchingModel: S,
|
|
1567
1580
|
sortingModel: W,
|
|
1568
1581
|
pagingModel: V,
|
|
1569
|
-
stickyOffsets:
|
|
1570
|
-
updateScrollOffset:
|
|
1582
|
+
stickyOffsets: s,
|
|
1583
|
+
updateScrollOffset: K,
|
|
1571
1584
|
removeScrollOffset: de,
|
|
1572
|
-
updateSearchingModel:
|
|
1585
|
+
updateSearchingModel: l,
|
|
1573
1586
|
getItemValue: ce,
|
|
1574
1587
|
getItemId: _,
|
|
1575
1588
|
scrollToTop: () => {
|
|
@@ -1578,18 +1591,18 @@ const ha = /* @__PURE__ */ R(fa, [["render", ga]]), ya = [
|
|
|
1578
1591
|
behavior: "smooth"
|
|
1579
1592
|
});
|
|
1580
1593
|
},
|
|
1581
|
-
scrollTo:
|
|
1594
|
+
scrollTo: Ce,
|
|
1582
1595
|
onInput: (a, d, c) => {
|
|
1583
|
-
|
|
1596
|
+
Te(a, d, c), t.emit("update:item", a);
|
|
1584
1597
|
}
|
|
1585
1598
|
};
|
|
1586
1599
|
}
|
|
1587
|
-
}),
|
|
1600
|
+
}), Oa = {
|
|
1588
1601
|
key: 0,
|
|
1589
1602
|
class: "flex items-center justify-center w-6 h-6 shrink-0"
|
|
1590
1603
|
};
|
|
1591
|
-
function
|
|
1592
|
-
const C = v("OrSearch"), I = v("OrDataGridHeader"),
|
|
1604
|
+
function $a(e, t, i, D, g, f) {
|
|
1605
|
+
const C = v("OrSearch"), I = v("OrDataGridHeader"), F = v("OrDataGridToolbar"), p = v("OrCheckbox"), S = v("OrDataGridTableHeaderCell"), W = v("OrDataGridTableHeaderRow"), V = v("OrDataGridTableHeader"), E = v("OrDataGridNotification"), H = v("OrDataGridTableExtraRow"), h = v("OrSkeletonText"), o = v("OrDataGridTableContentCell"), y = v("OrDataGridTableContentRow"), G = v("OrIconButton"), j = v("OrDataGridTablePlaceholder"), A = v("OrDataGridTableContent"), B = v("OrDataGridTable"), Q = v("OrDataGridTableFooterCell"), Y = v("OrDataGridTableFooterRow"), Z = v("OrDataGridTableFooter"), P = v("OrPagination"), L = v("OrDataGridFooter");
|
|
1593
1606
|
return n(), b("div", {
|
|
1594
1607
|
ref: "root",
|
|
1595
1608
|
class: u(e.rootStyles)
|
|
@@ -1608,8 +1621,8 @@ function ba(e, t, l, D, g, f) {
|
|
|
1608
1621
|
e.features.searching ? {
|
|
1609
1622
|
name: "searching",
|
|
1610
1623
|
fn: $(() => [
|
|
1611
|
-
m(e.$slots, "search",
|
|
1612
|
-
|
|
1624
|
+
m(e.$slots, "search", Fe(He({ updateSearchingModel: e.updateSearchingModel, searchingModel: e.searchingModel })), () => [
|
|
1625
|
+
U(C, {
|
|
1613
1626
|
modelValue: e.searchingModel,
|
|
1614
1627
|
"onUpdate:modelValue": t[0] || (t[0] = (s) => e.searchingModel = s)
|
|
1615
1628
|
}, null, 8, ["modelValue"])
|
|
@@ -1625,7 +1638,7 @@ function ba(e, t, l, D, g, f) {
|
|
|
1625
1638
|
key: "2"
|
|
1626
1639
|
} : void 0
|
|
1627
1640
|
]), 1024)) : k("", !0),
|
|
1628
|
-
e.$slots.toolbar ? (n(), O(
|
|
1641
|
+
e.$slots.toolbar ? (n(), O(F, {
|
|
1629
1642
|
key: 1,
|
|
1630
1643
|
class: u(["shrink-0"])
|
|
1631
1644
|
}, {
|
|
@@ -1634,18 +1647,18 @@ function ba(e, t, l, D, g, f) {
|
|
|
1634
1647
|
]),
|
|
1635
1648
|
_: 3
|
|
1636
1649
|
})) : k("", !0),
|
|
1637
|
-
|
|
1650
|
+
U(B, {
|
|
1638
1651
|
ref: "table",
|
|
1639
1652
|
class: u(["grow", "overscroll-none", { "grid-rows-[auto_1fr]": e.items.length === 0 }]),
|
|
1640
|
-
style:
|
|
1653
|
+
style: J(e.tableInlineStyles),
|
|
1641
1654
|
columns: e.actualColumns,
|
|
1642
1655
|
"column-widths": e.columnWidths,
|
|
1643
1656
|
features: e.features
|
|
1644
1657
|
}, {
|
|
1645
1658
|
default: $(() => [
|
|
1646
|
-
|
|
1659
|
+
U(V, null, {
|
|
1647
1660
|
default: $(() => [
|
|
1648
|
-
|
|
1661
|
+
U(W, { variant: e.variant }, {
|
|
1649
1662
|
default: $(() => [
|
|
1650
1663
|
e.features.selecting ? (n(), O(S, {
|
|
1651
1664
|
key: 0,
|
|
@@ -1657,7 +1670,7 @@ function ba(e, t, l, D, g, f) {
|
|
|
1657
1670
|
"onRemove:scrollOffset": e.removeScrollOffset
|
|
1658
1671
|
}, {
|
|
1659
1672
|
default: $(() => [
|
|
1660
|
-
|
|
1673
|
+
U(p, {
|
|
1661
1674
|
modelValue: e.selectingIndicator,
|
|
1662
1675
|
"onUpdate:modelValue": t[1] || (t[1] = (s) => e.selectingIndicator = s),
|
|
1663
1676
|
indeterminate: !e.selectingIndicator && e.selectingModel.length > 0,
|
|
@@ -1669,13 +1682,13 @@ function ba(e, t, l, D, g, f) {
|
|
|
1669
1682
|
(n(!0), b(ee, null, te(e.actualColumns, (s) => (n(), O(S, {
|
|
1670
1683
|
key: s.name,
|
|
1671
1684
|
modelValue: e.sortingModel,
|
|
1672
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
1685
|
+
"onUpdate:modelValue": t[2] || (t[2] = (l) => e.sortingModel = l),
|
|
1673
1686
|
column: s,
|
|
1674
1687
|
features: e.features,
|
|
1675
1688
|
"sticky-offset": s.stickiness === "start" ? e.stickyOffsets.start.get(s.name) : s.stickiness === "end" ? e.stickyOffsets.end.get(s.name) : void 0,
|
|
1676
1689
|
"onUpdate:scrollOffset": e.updateScrollOffset,
|
|
1677
1690
|
"onRemove:scrollOffset": e.removeScrollOffset,
|
|
1678
|
-
"onUpdate:columnWidth": (
|
|
1691
|
+
"onUpdate:columnWidth": (l) => e.updateColumnWidth(s, l)
|
|
1679
1692
|
}, {
|
|
1680
1693
|
default: $(() => [
|
|
1681
1694
|
re(se(s.label), 1)
|
|
@@ -1702,9 +1715,9 @@ function ba(e, t, l, D, g, f) {
|
|
|
1702
1715
|
key: "0"
|
|
1703
1716
|
} : void 0
|
|
1704
1717
|
]), 1032, ["notification", "variant"])) : k("", !0),
|
|
1705
|
-
|
|
1718
|
+
U(A, null, {
|
|
1706
1719
|
default: $(() => [
|
|
1707
|
-
e.$slots["before-rows"] ? (n(), O(
|
|
1720
|
+
e.$slots["before-rows"] ? (n(), O(H, {
|
|
1708
1721
|
key: 0,
|
|
1709
1722
|
variant: e.variant,
|
|
1710
1723
|
class: "border-b-1"
|
|
@@ -1729,21 +1742,21 @@ function ba(e, t, l, D, g, f) {
|
|
|
1729
1742
|
class: "!px-none"
|
|
1730
1743
|
}, {
|
|
1731
1744
|
default: $(() => [
|
|
1732
|
-
|
|
1745
|
+
U(h)
|
|
1733
1746
|
]),
|
|
1734
1747
|
_: 1
|
|
1735
1748
|
}, 8, ["sticky-offset", "variant"])) : k("", !0),
|
|
1736
|
-
(n(!0), b(ee, null, te(e.actualColumns, (
|
|
1737
|
-
key:
|
|
1738
|
-
column:
|
|
1749
|
+
(n(!0), b(ee, null, te(e.actualColumns, (l) => (n(), O(o, {
|
|
1750
|
+
key: l.name,
|
|
1751
|
+
column: l,
|
|
1739
1752
|
features: e.features,
|
|
1740
|
-
"sticky-offset":
|
|
1753
|
+
"sticky-offset": l.stickiness === "start" ? e.stickyOffsets.start.get(l.name) : l.stickiness === "end" ? e.stickyOffsets.end.get(l.name) : void 0,
|
|
1741
1754
|
variant: e.variant,
|
|
1742
1755
|
override: !0
|
|
1743
1756
|
}, {
|
|
1744
1757
|
default: $(() => [
|
|
1745
|
-
m(e.$slots, "column-loading", { column:
|
|
1746
|
-
|
|
1758
|
+
m(e.$slots, "column-loading", { column: l }, () => [
|
|
1759
|
+
U(h)
|
|
1747
1760
|
])
|
|
1748
1761
|
]),
|
|
1749
1762
|
_: 2
|
|
@@ -1772,57 +1785,57 @@ function ba(e, t, l, D, g, f) {
|
|
|
1772
1785
|
onMouseleave: () => e.handleMouseLeaveCell(s, "selecting", e.selectingModel.indexOf(e.getItemId(s)) !== -1)
|
|
1773
1786
|
}, {
|
|
1774
1787
|
default: $(() => [
|
|
1775
|
-
|
|
1788
|
+
U(p, {
|
|
1776
1789
|
modelValue: e.selectingModel,
|
|
1777
|
-
"onUpdate:modelValue": t[4] || (t[4] = (
|
|
1790
|
+
"onUpdate:modelValue": t[4] || (t[4] = (l) => e.selectingModel = l),
|
|
1778
1791
|
value: e.getItemId(s),
|
|
1779
1792
|
disabled: e.selectingDisabled
|
|
1780
1793
|
}, null, 8, ["modelValue", "value", "disabled"])
|
|
1781
1794
|
]),
|
|
1782
1795
|
_: 2
|
|
1783
1796
|
}, 1032, ["sticky-offset", "variant", "onMouseenter", "onMouseleave"])) : k("", !0),
|
|
1784
|
-
(n(!0), b(ee, null, te(e.actualColumns, (
|
|
1785
|
-
key:
|
|
1786
|
-
"model-value": e.getItemValue(s,
|
|
1787
|
-
column:
|
|
1797
|
+
(n(!0), b(ee, null, te(e.actualColumns, (l) => (n(), O(o, {
|
|
1798
|
+
key: l.name,
|
|
1799
|
+
"model-value": e.getItemValue(s, l.name),
|
|
1800
|
+
column: l,
|
|
1788
1801
|
features: e.features,
|
|
1789
|
-
"sticky-offset":
|
|
1802
|
+
"sticky-offset": l.stickiness === "start" ? e.stickyOffsets.start.get(l.name) : l.stickiness === "end" ? e.stickyOffsets.end.get(l.name) : void 0,
|
|
1790
1803
|
variant: e.variant,
|
|
1791
|
-
onInput: (
|
|
1792
|
-
onFocusin: t[6] || (t[6] = (
|
|
1793
|
-
onMouseenter: () => e.handleMouseEnterCell(s,
|
|
1794
|
-
onMouseleave: () => e.handleMouseLeaveCell(s,
|
|
1804
|
+
onInput: (K) => e.onInput(s, l.name, K),
|
|
1805
|
+
onFocusin: t[6] || (t[6] = (K) => e.scrollTo(K)),
|
|
1806
|
+
onMouseenter: () => e.handleMouseEnterCell(s, l.name, e.getItemValue(s, l.name)),
|
|
1807
|
+
onMouseleave: () => e.handleMouseLeaveCell(s, l.name, e.getItemValue(s, l.name))
|
|
1795
1808
|
}, {
|
|
1796
1809
|
default: $(() => [
|
|
1797
1810
|
le("div", {
|
|
1798
1811
|
class: u(["flex items-center gap-xs h-full w-full min-w-0", [
|
|
1799
|
-
|
|
1812
|
+
l.alignment === "end" ? "justify-end" : l.alignment === "center" ? "justify-center" : "justify-start"
|
|
1800
1813
|
]]),
|
|
1801
|
-
style:
|
|
1814
|
+
style: J(l.name === e.hierarchyColumns.get(s) ? { paddingLeft: (s.level || 0) * e.hierarchyIndent + "px" } : void 0)
|
|
1802
1815
|
}, [
|
|
1803
|
-
|
|
1816
|
+
l.name === e.hierarchyColumns.get(s) && e.features.hierarchy ? (n(), b("div", Oa, [
|
|
1804
1817
|
s.children && s.children.length > 0 ? (n(), O(G, {
|
|
1805
1818
|
key: 0,
|
|
1806
1819
|
icon: "chevron_right",
|
|
1807
1820
|
size: "m",
|
|
1808
1821
|
class: u(["transition-transform duration-200", { "rotate-90": e.isExpanded(s) }]),
|
|
1809
|
-
onClick: ae((
|
|
1822
|
+
onClick: ae((K) => e.toggleExpand(s), ["stop"]),
|
|
1810
1823
|
onMousedown: t[5] || (t[5] = ae(() => {
|
|
1811
1824
|
}, ["prevent"]))
|
|
1812
1825
|
}, null, 8, ["class", "onClick"])) : k("", !0)
|
|
1813
1826
|
])) : k("", !0),
|
|
1814
1827
|
le("div", {
|
|
1815
1828
|
class: u(["min-w-0", [
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
(
|
|
1829
|
+
l.name === e.hierarchyColumns.get(s) ? "flex-grow" : "",
|
|
1830
|
+
l.alignment === "end" ? "text-end" : l.alignment === "center" ? "text-center" : "text-start",
|
|
1831
|
+
(l.wrapping !== void 0 && l.wrapping !== null ? l.wrapping : e.variant === "dynamic" && !l.control) ? "whitespace-pre-wrap break-words" : l.fitContent ? "" : "truncate"
|
|
1819
1832
|
]])
|
|
1820
1833
|
}, [
|
|
1821
|
-
m(e.$slots,
|
|
1822
|
-
column:
|
|
1834
|
+
m(e.$slots, l.name, {
|
|
1835
|
+
column: l,
|
|
1823
1836
|
item: s
|
|
1824
1837
|
}, () => [
|
|
1825
|
-
re(se(e.getItemValue(s,
|
|
1838
|
+
re(se(e.getItemValue(s, l.name)), 1)
|
|
1826
1839
|
])
|
|
1827
1840
|
], 2)
|
|
1828
1841
|
], 6)
|
|
@@ -1831,7 +1844,7 @@ function ba(e, t, l, D, g, f) {
|
|
|
1831
1844
|
}, 1032, ["model-value", "column", "features", "sticky-offset", "variant", "onInput", "onMouseenter", "onMouseleave"]))), 128))
|
|
1832
1845
|
]),
|
|
1833
1846
|
_: 2
|
|
1834
|
-
}, 1032, ["variant", "selected", "interactive", "onMouseenter", "onMouseleave", "onClick"]))), 128)) : e.$slots.noSearchResults && (e.features.filtering && e.filteringModel || e.features.searching && e.searchingModel) ? (n(), O(
|
|
1847
|
+
}, 1032, ["variant", "selected", "interactive", "onMouseenter", "onMouseleave", "onClick"]))), 128)) : e.$slots.noSearchResults && (e.features.filtering && e.filteringModel || e.features.searching && e.searchingModel) ? (n(), O(j, {
|
|
1835
1848
|
key: 3,
|
|
1836
1849
|
class: u(["col-span-full"]),
|
|
1837
1850
|
variant: e.variant
|
|
@@ -1843,7 +1856,7 @@ function ba(e, t, l, D, g, f) {
|
|
|
1843
1856
|
})
|
|
1844
1857
|
]),
|
|
1845
1858
|
_: 3
|
|
1846
|
-
}, 8, ["variant"])) : e.$slots.empty ? (n(), O(
|
|
1859
|
+
}, 8, ["variant"])) : e.$slots.empty ? (n(), O(j, {
|
|
1847
1860
|
key: 4,
|
|
1848
1861
|
class: u(["col-span-full"]),
|
|
1849
1862
|
variant: e.variant
|
|
@@ -1853,7 +1866,7 @@ function ba(e, t, l, D, g, f) {
|
|
|
1853
1866
|
]),
|
|
1854
1867
|
_: 3
|
|
1855
1868
|
}, 8, ["variant"])) : k("", !0),
|
|
1856
|
-
e.$slots["after-rows"] ? (n(), O(
|
|
1869
|
+
e.$slots["after-rows"] ? (n(), O(H, {
|
|
1857
1870
|
key: 5,
|
|
1858
1871
|
variant: e.variant
|
|
1859
1872
|
}, {
|
|
@@ -1868,14 +1881,14 @@ function ba(e, t, l, D, g, f) {
|
|
|
1868
1881
|
]),
|
|
1869
1882
|
_: 3
|
|
1870
1883
|
}, 8, ["class", "style", "columns", "column-widths", "features"]),
|
|
1871
|
-
e.$slots["extra-row"] ? (n(), O(
|
|
1884
|
+
e.$slots["extra-row"] ? (n(), O(Z, { key: 2 }, {
|
|
1872
1885
|
default: $(() => [
|
|
1873
|
-
|
|
1886
|
+
U(Y, {
|
|
1874
1887
|
class: u(["shrink-0"]),
|
|
1875
1888
|
variant: e.variant
|
|
1876
1889
|
}, {
|
|
1877
1890
|
default: $(() => [
|
|
1878
|
-
|
|
1891
|
+
U(Q, null, {
|
|
1879
1892
|
default: $(() => [
|
|
1880
1893
|
m(e.$slots, "extra-row")
|
|
1881
1894
|
]),
|
|
@@ -1887,7 +1900,7 @@ function ba(e, t, l, D, g, f) {
|
|
|
1887
1900
|
]),
|
|
1888
1901
|
_: 3
|
|
1889
1902
|
})) : k("", !0),
|
|
1890
|
-
e.$slots.actions || e.showSelectingCouter || e.features.paging ? (n(), O(
|
|
1903
|
+
e.$slots.actions || e.showSelectingCouter || e.features.paging ? (n(), O(L, {
|
|
1891
1904
|
key: 3,
|
|
1892
1905
|
class: u(["shrink-0"])
|
|
1893
1906
|
}, oe({ _: 2 }, [
|
|
@@ -1908,7 +1921,7 @@ function ba(e, t, l, D, g, f) {
|
|
|
1908
1921
|
e.features.paging ? {
|
|
1909
1922
|
name: "paging",
|
|
1910
1923
|
fn: $(() => [
|
|
1911
|
-
P
|
|
1924
|
+
U(P, {
|
|
1912
1925
|
ref: "pagination",
|
|
1913
1926
|
modelValue: e.pagingModel,
|
|
1914
1927
|
"onUpdate:modelValue": t[7] || (t[7] = (s) => e.pagingModel = s),
|
|
@@ -1921,27 +1934,27 @@ function ba(e, t, l, D, g, f) {
|
|
|
1921
1934
|
]), 1024)) : k("", !0)
|
|
1922
1935
|
], 2);
|
|
1923
1936
|
}
|
|
1924
|
-
const
|
|
1937
|
+
const qa = /* @__PURE__ */ R(pa, [["render", $a]]);
|
|
1925
1938
|
export {
|
|
1926
1939
|
w as D,
|
|
1927
|
-
|
|
1940
|
+
qa as O,
|
|
1928
1941
|
ie as a,
|
|
1929
1942
|
he as b,
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1943
|
+
tt as c,
|
|
1944
|
+
lt as d,
|
|
1945
|
+
mt as e,
|
|
1946
|
+
kt as f,
|
|
1947
|
+
$t as g,
|
|
1948
|
+
Ct as h,
|
|
1949
|
+
Mt as i,
|
|
1950
|
+
zt as j,
|
|
1951
|
+
Pt as k,
|
|
1952
|
+
Bt as l,
|
|
1953
|
+
Qt as m,
|
|
1954
|
+
ea as n,
|
|
1955
|
+
oa as o,
|
|
1956
|
+
ia as p,
|
|
1957
|
+
fa as q,
|
|
1958
|
+
ka as r
|
|
1946
1959
|
};
|
|
1947
|
-
//# sourceMappingURL=OrDataGrid-
|
|
1960
|
+
//# sourceMappingURL=OrDataGrid-DWrS5m_m.mjs.map
|