@onereach/ui-components 27.0.9-beta.6149.0 → 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-Bj4g3ZW0.mjs → OrDataGrid-DWrS5m_m.mjs} +396 -400
- 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 -21
- package/dist/types/components/or-data-grid-v3/types.d.ts +4 -1
- package/package.json +3 -3
- package/dist/esm/OrDataGrid-Bj4g3ZW0.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
|
|
8
|
-
import { useElementSize as
|
|
9
|
-
import { _ as
|
|
10
|
-
import { O as
|
|
11
|
-
import { O 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
|
+
import { _ as R } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
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,20 +33,20 @@ const Je = [
|
|
|
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"
|
|
43
43
|
],
|
|
44
44
|
setup() {
|
|
45
|
-
const e = T(), t =
|
|
45
|
+
const e = T(), t = r(() => [
|
|
46
46
|
"or-data-grid-footer-v3",
|
|
47
|
-
...
|
|
48
|
-
]), i =
|
|
49
|
-
...
|
|
47
|
+
...Ye
|
|
48
|
+
]), i = r(() => [
|
|
49
|
+
...Ze
|
|
50
50
|
]);
|
|
51
51
|
return {
|
|
52
52
|
root: e,
|
|
@@ -54,11 +54,11 @@ const Je = [
|
|
|
54
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,31 +70,31 @@ function xe(e, t, i, 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"
|
|
91
91
|
],
|
|
92
92
|
setup() {
|
|
93
|
-
const e = T(), t =
|
|
93
|
+
const e = T(), t = r(() => [
|
|
94
94
|
"or-data-grid-header-v3",
|
|
95
|
-
...
|
|
96
|
-
]), i =
|
|
97
|
-
...
|
|
95
|
+
...at
|
|
96
|
+
]), i = r(() => [
|
|
97
|
+
...nt
|
|
98
98
|
]);
|
|
99
99
|
return {
|
|
100
100
|
root: e,
|
|
@@ -102,11 +102,11 @@ const _e = /* @__PURE__ */ W(Ye, [["render", xe]]), et = [
|
|
|
102
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 ot(e, t, i, 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", st = [
|
|
|
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,19 +216,19 @@ const ie = "52px", he = "42px", st = [
|
|
|
216
216
|
"root"
|
|
217
217
|
],
|
|
218
218
|
setup(e, t) {
|
|
219
|
-
const i = T(), D =
|
|
220
|
-
var p, S,
|
|
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
|
-
...(S = e.features) != null && S.resizing && ((
|
|
226
|
-
...((
|
|
225
|
+
...(S = e.features) != null && S.resizing && ((W = e.column) != null && W.name) && ((V = e.column) == null ? void 0 : V.resizing) !== !1 ? ["resizable"] : [],
|
|
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
|
];
|
|
231
|
-
}), g =
|
|
231
|
+
}), g = r(() => {
|
|
232
232
|
var S;
|
|
233
233
|
const p = {
|
|
234
234
|
justifyContent: ((S = e.column) == null ? void 0 : S.alignment) || (e.column ? void 0 : "center")
|
|
@@ -251,28 +251,28 @@ const ie = "52px", he = "42px", st = [
|
|
|
251
251
|
break;
|
|
252
252
|
}
|
|
253
253
|
return p;
|
|
254
|
-
}), f =
|
|
255
|
-
var
|
|
256
|
-
const p = ((
|
|
254
|
+
}), f = r(() => {
|
|
255
|
+
var W, V, E, H, h;
|
|
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
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
|
-
...
|
|
260
|
+
...dt.filter((o) => o !== "truncate"),
|
|
261
261
|
...p ? ["whitespace-pre-wrap break-words"] : S ? [] : ["truncate"]
|
|
262
262
|
];
|
|
263
|
-
}), C =
|
|
264
|
-
var p, S,
|
|
263
|
+
}), C = r(() => {
|
|
264
|
+
var p, S, W, V;
|
|
265
265
|
return {
|
|
266
266
|
minWidth: (p = e.column) == null ? void 0 : p.minWidth,
|
|
267
267
|
maxWidth: (S = e.column) == null ? void 0 : S.maxWidth,
|
|
268
|
-
justifyContent: ((
|
|
268
|
+
justifyContent: ((W = e.column) == null ? void 0 : W.alignment) === "end" ? void 0 : ((V = e.column) == null ? void 0 : V.alignment) || (e.column ? void 0 : "center")
|
|
269
269
|
};
|
|
270
|
-
}), I =
|
|
270
|
+
}), I = r({
|
|
271
271
|
get: () => e.modelValue,
|
|
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
|
});
|
|
@@ -283,12 +283,12 @@ const ie = "52px", he = "42px", st = [
|
|
|
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),
|
|
@@ -318,7 +318,7 @@ function dt(e, t, i, 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),
|
|
@@ -336,7 +336,7 @@ function dt(e, t, i, D, g, f) {
|
|
|
336
336
|
modelValue: e.model,
|
|
337
337
|
"onUpdate:modelValue": t[5] || (t[5] = (h) => e.model = h)
|
|
338
338
|
}, null, 8, ["modelValue"])) : k("", !0),
|
|
339
|
-
e.control.type === "date" ? (n(), O(
|
|
339
|
+
e.control.type === "date" ? (n(), O(W, {
|
|
340
340
|
key: 6,
|
|
341
341
|
modelValue: e.model,
|
|
342
342
|
"onUpdate:modelValue": t[6] || (t[6] = (h) => e.model = h),
|
|
@@ -350,7 +350,7 @@ function dt(e, t, i, D, g, f) {
|
|
|
350
350
|
variant: "embedded",
|
|
351
351
|
anchor: e.root
|
|
352
352
|
}, null, 8, ["modelValue", "anchor"])) : k("", !0),
|
|
353
|
-
e.control.type === "datetime" ? (n(), O(
|
|
353
|
+
e.control.type === "datetime" ? (n(), O(E, {
|
|
354
354
|
key: 8,
|
|
355
355
|
modelValue: e.model,
|
|
356
356
|
"onUpdate:modelValue": t[8] || (t[8] = (h) => e.model = h),
|
|
@@ -373,7 +373,7 @@ function dt(e, t, i, D, g, f) {
|
|
|
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 ct = /* @__PURE__ */ W(it, [["render", dt]]), ut = [
|
|
|
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 ct = /* @__PURE__ */ W(it, [["render", dt]]), ut = [
|
|
|
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,10 +431,10 @@ const ct = /* @__PURE__ */ W(it, [["render", dt]]), ut = [
|
|
|
431
431
|
"root"
|
|
432
432
|
],
|
|
433
433
|
setup(e) {
|
|
434
|
-
const t = T(), i =
|
|
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 {
|
|
@@ -442,28 +442,28 @@ const ct = /* @__PURE__ */ W(it, [["render", dt]]), ut = [
|
|
|
442
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"
|
|
462
462
|
],
|
|
463
463
|
setup() {
|
|
464
|
-
const e = T(), t =
|
|
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 yt = /* @__PURE__ */ W(ft, [["render", ht]]), vt = [
|
|
|
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 bt(e, t, i, 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,15 +489,15 @@ const pt = /* @__PURE__ */ W(kt, [["render", bt]]), Ot = [
|
|
|
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"
|
|
496
496
|
],
|
|
497
497
|
setup() {
|
|
498
|
-
const e = T(), t =
|
|
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 pt = /* @__PURE__ */ W(kt, [["render", bt]]), Ot = [
|
|
|
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 wt(e, t, i, 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 Dt = /* @__PURE__ */ W($t, [["render", wt]]), St = [
|
|
|
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 Dt = /* @__PURE__ */ W($t, [["render", wt]]), St = [
|
|
|
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,10 +555,10 @@ const Dt = /* @__PURE__ */ W($t, [["render", wt]]), St = [
|
|
|
555
555
|
"root"
|
|
556
556
|
],
|
|
557
557
|
setup(e) {
|
|
558
|
-
const t = T(), i =
|
|
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,
|
|
@@ -566,7 +566,7 @@ const Dt = /* @__PURE__ */ W($t, [["render", wt]]), St = [
|
|
|
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,18 +574,18 @@ function Gt(e, t, i, 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"
|
|
584
584
|
],
|
|
585
585
|
setup() {
|
|
586
|
-
const e = T(), t =
|
|
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 Vt = /* @__PURE__ */ W(Tt, [["render", Gt]]), It = [
|
|
|
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 Rt(e, t, i, 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 Wt = /* @__PURE__ */ W(Mt, [["render", Rt]]), Et = [
|
|
|
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 Wt = /* @__PURE__ */ W(Mt, [["render", Rt]]), Et = [
|
|
|
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,18 +677,18 @@ const Wt = /* @__PURE__ */ W(Mt, [["render", Rt]]), Et = [
|
|
|
677
677
|
"root"
|
|
678
678
|
],
|
|
679
679
|
setup(e, t) {
|
|
680
|
-
const i = T(), D =
|
|
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
|
-
}), g =
|
|
683
|
+
}), g = r(() => {
|
|
684
684
|
var o, y, G;
|
|
685
685
|
return !!((o = e.features) != null && o.resizing) && !!((y = e.column) != null && y.name) && ((G = e.column) == null ? void 0 : G.resizing) !== !1;
|
|
686
|
-
}), f =
|
|
686
|
+
}), f = r(() => {
|
|
687
687
|
var o, y, G;
|
|
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"] : [],
|
|
@@ -696,17 +696,17 @@ const Wt = /* @__PURE__ */ W(Mt, [["render", Rt]]), Et = [
|
|
|
696
696
|
...((G = e.column) == null ? void 0 : G.stickiness) === "end" ? ["border-l-1"] : [],
|
|
697
697
|
...g.value ? ["border-r-1"] : []
|
|
698
698
|
];
|
|
699
|
-
}), C =
|
|
699
|
+
}), C = r(() => [
|
|
700
700
|
"or-data-grid-table-header-cell-resize-handle-v3",
|
|
701
|
-
...
|
|
702
|
-
]), I =
|
|
701
|
+
...Ht
|
|
702
|
+
]), I = r(() => {
|
|
703
703
|
var o, y;
|
|
704
704
|
return {
|
|
705
705
|
minWidth: (o = e.column) == null ? void 0 : o.minWidth,
|
|
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")
|
|
@@ -729,7 +729,7 @@ const Wt = /* @__PURE__ */ W(Mt, [["render", Rt]]), Et = [
|
|
|
729
729
|
break;
|
|
730
730
|
}
|
|
731
731
|
return o;
|
|
732
|
-
}), p = T(!1), S =
|
|
732
|
+
}), p = T(!1), S = r({
|
|
733
733
|
get: () => {
|
|
734
734
|
var o, y;
|
|
735
735
|
if (D.value)
|
|
@@ -738,19 +738,19 @@ const Wt = /* @__PURE__ */ W(Mt, [["render", Rt]]), Et = [
|
|
|
738
738
|
set: (o) => {
|
|
739
739
|
t.emit("update:modelValue", o);
|
|
740
740
|
}
|
|
741
|
-
}),
|
|
741
|
+
}), W = r(() => {
|
|
742
742
|
var o;
|
|
743
743
|
return [
|
|
744
744
|
"layout-row items-center w-full min-w-0 overflow-hidden",
|
|
745
745
|
...((o = e.column) == null ? void 0 : o.alignment) === "end" ? ["flex-row-reverse"] : []
|
|
746
746
|
];
|
|
747
|
-
}), V =
|
|
747
|
+
}), V = r(() => {
|
|
748
748
|
var o, y;
|
|
749
749
|
return {
|
|
750
750
|
justifyContent: ((o = e.column) == null ? void 0 : o.alignment) === "end" || (y = e.column) == null ? void 0 : y.alignment
|
|
751
751
|
};
|
|
752
752
|
});
|
|
753
|
-
function
|
|
753
|
+
function E() {
|
|
754
754
|
var o;
|
|
755
755
|
if (!(!D.value || p.value))
|
|
756
756
|
if (S.value)
|
|
@@ -768,33 +768,33 @@ const Wt = /* @__PURE__ */ W(Mt, [["render", Rt]]), Et = [
|
|
|
768
768
|
}
|
|
769
769
|
}
|
|
770
770
|
function H(o) {
|
|
771
|
-
var
|
|
772
|
-
const y = o.pageX, G = ((
|
|
771
|
+
var Q;
|
|
772
|
+
const y = o.pageX, G = ((Q = i.value) == null ? void 0 : Q.offsetWidth) || 0;
|
|
773
773
|
let j = null;
|
|
774
|
-
const
|
|
774
|
+
const A = (Y) => {
|
|
775
775
|
p.value = !0, j === null && (j = requestAnimationFrame(() => {
|
|
776
|
-
var
|
|
777
|
-
const
|
|
778
|
-
let
|
|
779
|
-
const
|
|
780
|
-
if (
|
|
781
|
-
const x = parseInt(
|
|
782
|
-
|
|
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 ((
|
|
784
|
+
if ((K = e.column) != null && K.maxWidth && (e.column.maxWidth.endsWith("px") || !isNaN(Number(e.column.maxWidth)))) {
|
|
785
785
|
const x = parseInt(e.column.maxWidth, 10);
|
|
786
|
-
|
|
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
|
-
j !== null && (cancelAnimationFrame(j), j = null), document.removeEventListener("mousemove",
|
|
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,
|
|
@@ -817,27 +817,27 @@ const Wt = /* @__PURE__ */ W(Mt, [["render", Rt]]), Et = [
|
|
|
817
817
|
]) => {
|
|
818
818
|
var j;
|
|
819
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
|
-
}),
|
|
820
|
+
}), We(() => {
|
|
821
821
|
var o;
|
|
822
822
|
(o = e.column) != null && o.name && t.emit("remove:scrollOffset", e.column.name);
|
|
823
823
|
}), {
|
|
824
824
|
root: i,
|
|
825
825
|
rootStyles: f,
|
|
826
|
-
rootInlineStyles:
|
|
827
|
-
headerContentStyles:
|
|
826
|
+
rootInlineStyles: F,
|
|
827
|
+
headerContentStyles: W,
|
|
828
828
|
headerContentInlineStyles: V,
|
|
829
829
|
wrapInlineStyle: I,
|
|
830
830
|
resizeHandleStyles: C,
|
|
831
831
|
isSortable: D,
|
|
832
832
|
isResizable: g,
|
|
833
833
|
model: S,
|
|
834
|
-
toggleSorting:
|
|
834
|
+
toggleSorting: E,
|
|
835
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",
|
|
@@ -870,7 +870,7 @@ function Ht(e, t, i, 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 jt = /* @__PURE__ */ W(zt, [["render", Ht]]), Nt = [
|
|
|
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 jt = /* @__PURE__ */ W(zt, [["render", Ht]]), Nt = [
|
|
|
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,10 +911,10 @@ const jt = /* @__PURE__ */ W(zt, [["render", Ht]]), Nt = [
|
|
|
911
911
|
"root"
|
|
912
912
|
],
|
|
913
913
|
setup(e) {
|
|
914
|
-
const t = T(), i =
|
|
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,
|
|
@@ -922,7 +922,7 @@ const jt = /* @__PURE__ */ W(zt, [["render", Ht]]), Nt = [
|
|
|
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,18 +930,18 @@ function At(e, t, i, 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"
|
|
940
940
|
],
|
|
941
941
|
setup() {
|
|
942
|
-
const e = T(), t =
|
|
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 Lt = /* @__PURE__ */ W(Ut, [["render", At]]), qt = [
|
|
|
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 Kt(e, t, i, 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 Xt = /* @__PURE__ */ W(Bt, [["render", Kt]]), Jt = [
|
|
|
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 Xt = /* @__PURE__ */ W(Bt, [["render", Kt]]), Jt = [
|
|
|
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,10 +1000,10 @@ const Xt = /* @__PURE__ */ W(Bt, [["render", Kt]]), Jt = [
|
|
|
1000
1000
|
"root"
|
|
1001
1001
|
],
|
|
1002
1002
|
setup(e) {
|
|
1003
|
-
const t = T(), i =
|
|
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,
|
|
@@ -1011,7 +1011,7 @@ const Xt = /* @__PURE__ */ W(Bt, [["render", Kt]]), Jt = [
|
|
|
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 Zt(e, t, i, 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 xt = /* @__PURE__ */ W(Yt, [["render", Zt]]), _t = [
|
|
|
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,16 +1047,16 @@ const xt = /* @__PURE__ */ W(Yt, [["render", Zt]]), _t = [
|
|
|
1047
1047
|
"root"
|
|
1048
1048
|
],
|
|
1049
1049
|
setup(e) {
|
|
1050
|
-
const t = T(), i =
|
|
1050
|
+
const t = T(), i = r(() => [
|
|
1051
1051
|
"or-data-grid-table-v3",
|
|
1052
|
-
...
|
|
1053
|
-
]), D =
|
|
1052
|
+
...ta
|
|
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
|
});
|
|
@@ -1067,7 +1067,7 @@ const xt = /* @__PURE__ */ W(Yt, [["render", Zt]]), _t = [
|
|
|
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),
|
|
@@ -1076,21 +1076,21 @@ function ta(e, t, i, D, g, f) {
|
|
|
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"
|
|
1089
1089
|
],
|
|
1090
1090
|
setup() {
|
|
1091
|
-
const e = T(), t =
|
|
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 aa = /* @__PURE__ */ W(ea, [["render", ta]]), na = [
|
|
|
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 ra(e, t, i, 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 sa = /* @__PURE__ */ W(oa, [["render", ra]]), la = [
|
|
|
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: {
|
|
@@ -1147,20 +1147,20 @@ const sa = /* @__PURE__ */ W(oa, [["render", ra]]), la = [
|
|
|
1147
1147
|
],
|
|
1148
1148
|
setup(e) {
|
|
1149
1149
|
return {
|
|
1150
|
-
rootStyles:
|
|
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 ca(e, t, i, 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 ua = /* @__PURE__ */ W(da, [["render", ca]]), ma = [
|
|
|
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 ua = /* @__PURE__ */ W(da, [["render", ca]]), ma = [
|
|
|
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,10 +1213,10 @@ const ua = /* @__PURE__ */ W(da, [["render", ca]]), ma = [
|
|
|
1213
1213
|
"root"
|
|
1214
1214
|
],
|
|
1215
1215
|
setup(e) {
|
|
1216
|
-
const t = T(), i =
|
|
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,
|
|
@@ -1224,7 +1224,7 @@ const ua = /* @__PURE__ */ W(da, [["render", ca]]), ma = [
|
|
|
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 ha(e, t, i, 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",
|
|
@@ -1277,15 +1277,6 @@ const ya = /* @__PURE__ */ W(ga, [["render", ha]]), va = [
|
|
|
1277
1277
|
type: [String, Function],
|
|
1278
1278
|
default: "id"
|
|
1279
1279
|
},
|
|
1280
|
-
hierarchyColumn: {
|
|
1281
|
-
type: [String, Function],
|
|
1282
|
-
default: void 0
|
|
1283
|
-
},
|
|
1284
|
-
hierarchyIndent: {
|
|
1285
|
-
type: Number,
|
|
1286
|
-
default: 24,
|
|
1287
|
-
validator: (e) => Number.isFinite(e) && e >= 0
|
|
1288
|
-
},
|
|
1289
1280
|
columns: {
|
|
1290
1281
|
type: Array,
|
|
1291
1282
|
required: !0
|
|
@@ -1325,30 +1316,30 @@ const ya = /* @__PURE__ */ W(ga, [["render", ha]]), va = [
|
|
|
1325
1316
|
"root"
|
|
1326
1317
|
],
|
|
1327
1318
|
setup(e, t) {
|
|
1328
|
-
const i = T(), D = T(), g = T(), f =
|
|
1319
|
+
const i = T(), D = T(), g = T(), f = r(() => [
|
|
1329
1320
|
"or-data-grid-v3",
|
|
1330
|
-
...
|
|
1331
|
-
]), C =
|
|
1321
|
+
...ba
|
|
1322
|
+
]), C = r(() => {
|
|
1332
1323
|
const a = {
|
|
1333
|
-
scrollPaddingInlineStart: `${[...
|
|
1334
|
-
scrollPaddingInlineEnd: `${[...
|
|
1324
|
+
scrollPaddingInlineStart: `${[...P.values()].reduce((d, c) => d + c, 0)}px`,
|
|
1325
|
+
scrollPaddingInlineEnd: `${[...L.values()].reduce((d, c) => d + c, 0)}px`
|
|
1335
1326
|
};
|
|
1336
|
-
return
|
|
1337
|
-
a[`--or-dg-col-width-${
|
|
1338
|
-
}),
|
|
1339
|
-
a[`--or-dg-col-width-${
|
|
1327
|
+
return P.forEach((d, c) => {
|
|
1328
|
+
a[`--or-dg-col-width-${c}`] = `${d}px`;
|
|
1329
|
+
}), L.forEach((d, c) => {
|
|
1330
|
+
a[`--or-dg-col-width-${c}`] = `${d}px`;
|
|
1340
1331
|
}), a;
|
|
1341
|
-
}), I =
|
|
1342
|
-
get: () => !!(e.items && e.items.length) && e.items.every((a) =>
|
|
1332
|
+
}), I = r({
|
|
1333
|
+
get: () => !!(e.items && e.items.length) && e.items.every((a) => F.value.includes(_(a))),
|
|
1343
1334
|
set: (a) => {
|
|
1344
|
-
a && e.items ?
|
|
1335
|
+
a && e.items ? F.value = [
|
|
1345
1336
|
.../* @__PURE__ */ new Set([
|
|
1346
|
-
...
|
|
1347
|
-
...e.items.map((
|
|
1337
|
+
...F.value,
|
|
1338
|
+
...e.items.map((d) => _(d))
|
|
1348
1339
|
])
|
|
1349
|
-
] :
|
|
1340
|
+
] : F.value = [];
|
|
1350
1341
|
}
|
|
1351
|
-
}),
|
|
1342
|
+
}), F = r({
|
|
1352
1343
|
get: () => e.modelValue && e.modelValue.selecting || [],
|
|
1353
1344
|
set: (a) => {
|
|
1354
1345
|
t.emit("update:modelValue", {
|
|
@@ -1356,7 +1347,7 @@ const ya = /* @__PURE__ */ W(ga, [["render", ha]]), va = [
|
|
|
1356
1347
|
selecting: a
|
|
1357
1348
|
});
|
|
1358
1349
|
}
|
|
1359
|
-
}), p =
|
|
1350
|
+
}), p = r({
|
|
1360
1351
|
get: () => e.modelValue && e.modelValue.filtering,
|
|
1361
1352
|
set: (a) => {
|
|
1362
1353
|
t.emit("update:modelValue", {
|
|
@@ -1368,7 +1359,7 @@ const ya = /* @__PURE__ */ W(ga, [["render", ha]]), va = [
|
|
|
1368
1359
|
} : void 0
|
|
1369
1360
|
});
|
|
1370
1361
|
}
|
|
1371
|
-
}), S =
|
|
1362
|
+
}), S = r({
|
|
1372
1363
|
get: () => e.modelValue && e.modelValue.searching,
|
|
1373
1364
|
set: (a) => {
|
|
1374
1365
|
t.emit("update:modelValue", {
|
|
@@ -1380,7 +1371,7 @@ const ya = /* @__PURE__ */ W(ga, [["render", ha]]), va = [
|
|
|
1380
1371
|
} : void 0
|
|
1381
1372
|
});
|
|
1382
1373
|
}
|
|
1383
|
-
}),
|
|
1374
|
+
}), W = r({
|
|
1384
1375
|
get: () => e.modelValue && e.modelValue.sorting,
|
|
1385
1376
|
set: (a) => {
|
|
1386
1377
|
t.emit("update:modelValue", {
|
|
@@ -1392,7 +1383,7 @@ const ya = /* @__PURE__ */ W(ga, [["render", ha]]), va = [
|
|
|
1392
1383
|
} : void 0
|
|
1393
1384
|
});
|
|
1394
1385
|
}
|
|
1395
|
-
}), V =
|
|
1386
|
+
}), V = r({
|
|
1396
1387
|
get: () => e.modelValue && e.modelValue.paging,
|
|
1397
1388
|
set: (a) => {
|
|
1398
1389
|
t.emit("update:modelValue", {
|
|
@@ -1400,7 +1391,7 @@ const ya = /* @__PURE__ */ W(ga, [["render", ha]]), va = [
|
|
|
1400
1391
|
paging: a
|
|
1401
1392
|
});
|
|
1402
1393
|
}
|
|
1403
|
-
}),
|
|
1394
|
+
}), E = r({
|
|
1404
1395
|
get: () => e.modelValue && e.modelValue.expanded || [],
|
|
1405
1396
|
set: (a) => {
|
|
1406
1397
|
t.emit("update:modelValue", {
|
|
@@ -1408,10 +1399,10 @@ const ya = /* @__PURE__ */ W(ga, [["render", ha]]), va = [
|
|
|
1408
1399
|
expanded: a
|
|
1409
1400
|
});
|
|
1410
1401
|
}
|
|
1411
|
-
}), H = (a) =>
|
|
1402
|
+
}), H = (a) => E.value.indexOf(_(a)) !== -1, h = (a) => {
|
|
1412
1403
|
if (!a.children || a.children.length === 0) return;
|
|
1413
|
-
const
|
|
1414
|
-
|
|
1404
|
+
const d = _(a), c = E.value;
|
|
1405
|
+
c.indexOf(d) === -1 ? E.value = [...c, d] : E.value = c.filter((X) => X !== d);
|
|
1415
1406
|
};
|
|
1416
1407
|
ge(() => V.value && V.value.offset, () => {
|
|
1417
1408
|
g.value && g.value.root && g.value.root.scrollTo({
|
|
@@ -1419,143 +1410,147 @@ const ya = /* @__PURE__ */ W(ga, [["render", ha]]), va = [
|
|
|
1419
1410
|
behavior: "smooth"
|
|
1420
1411
|
});
|
|
1421
1412
|
});
|
|
1422
|
-
const o =
|
|
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(() => {
|
|
1423
1414
|
const a = V.value;
|
|
1424
1415
|
return a && a.limit || 10;
|
|
1425
|
-
}),
|
|
1416
|
+
}), A = T({}), B = r(() => e.columns), Q = r(() => typeof e.features.hierarchy == "object" ? e.features.hierarchy : void 0), Y = r(() => {
|
|
1426
1417
|
var d;
|
|
1427
|
-
const a =
|
|
1428
|
-
return
|
|
1429
|
-
|
|
1430
|
-
|
|
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];
|
|
1431
1426
|
}));
|
|
1432
|
-
}),
|
|
1433
|
-
const a = /* @__PURE__ */ new Map(),
|
|
1434
|
-
e.features.selecting &&
|
|
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 = [];
|
|
1429
|
+
e.features.selecting && c.push({
|
|
1435
1430
|
name: "_check",
|
|
1436
1431
|
stickiness: "start",
|
|
1437
1432
|
alignment: "center"
|
|
1438
|
-
}),
|
|
1439
|
-
|
|
1433
|
+
}), B.value.forEach((N) => {
|
|
1434
|
+
N.stickiness === "start" ? c.push(N) : N.stickiness === "end" && z.push(N);
|
|
1440
1435
|
});
|
|
1441
|
-
let
|
|
1442
|
-
|
|
1443
|
-
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))`;
|
|
1444
1439
|
});
|
|
1445
|
-
let
|
|
1446
|
-
return [...
|
|
1447
|
-
|
|
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))`;
|
|
1448
1443
|
}), {
|
|
1449
1444
|
start: a,
|
|
1450
|
-
end:
|
|
1445
|
+
end: d
|
|
1451
1446
|
};
|
|
1452
1447
|
});
|
|
1453
|
-
function
|
|
1448
|
+
function l(a) {
|
|
1454
1449
|
S.value = a;
|
|
1455
1450
|
}
|
|
1456
|
-
function
|
|
1457
|
-
switch (
|
|
1451
|
+
function K(a, d, c) {
|
|
1452
|
+
switch (c.stickiness) {
|
|
1458
1453
|
case "start":
|
|
1459
|
-
|
|
1454
|
+
P.set(c.name, d), L.delete(c.name);
|
|
1460
1455
|
break;
|
|
1461
1456
|
case "end":
|
|
1462
|
-
|
|
1457
|
+
P.delete(c.name), L.set(c.name, d);
|
|
1463
1458
|
break;
|
|
1464
1459
|
default:
|
|
1465
|
-
de(
|
|
1460
|
+
de(c.name);
|
|
1466
1461
|
break;
|
|
1467
1462
|
}
|
|
1468
1463
|
}
|
|
1469
|
-
function
|
|
1464
|
+
function x(a) {
|
|
1470
1465
|
e.interactiveRows && t.emit("hover:row", a);
|
|
1471
1466
|
}
|
|
1472
|
-
function
|
|
1467
|
+
function ye(a) {
|
|
1473
1468
|
e.interactiveRows && t.emit("blur:row", a);
|
|
1474
1469
|
}
|
|
1475
|
-
function
|
|
1470
|
+
function ve(a, d, c) {
|
|
1476
1471
|
e.interactiveRows && t.emit("hover:cell", {
|
|
1477
1472
|
item: a,
|
|
1478
|
-
columnName:
|
|
1479
|
-
value:
|
|
1473
|
+
columnName: d,
|
|
1474
|
+
value: c
|
|
1480
1475
|
});
|
|
1481
1476
|
}
|
|
1482
|
-
function
|
|
1477
|
+
function ke(a, d, c) {
|
|
1483
1478
|
e.interactiveRows && t.emit("blur:cell", {
|
|
1484
1479
|
item: a,
|
|
1485
|
-
columnName:
|
|
1486
|
-
value:
|
|
1480
|
+
columnName: d,
|
|
1481
|
+
value: c
|
|
1487
1482
|
});
|
|
1488
1483
|
}
|
|
1489
|
-
function
|
|
1484
|
+
function be(a) {
|
|
1490
1485
|
e.interactiveRows && t.emit("click:row", a);
|
|
1491
1486
|
}
|
|
1492
|
-
const
|
|
1493
|
-
function
|
|
1494
|
-
var
|
|
1487
|
+
const pe = me(Oe, 500);
|
|
1488
|
+
function Oe() {
|
|
1489
|
+
var d;
|
|
1495
1490
|
if (typeof window > "u" || !e.features.storageKey) return;
|
|
1496
1491
|
const a = {};
|
|
1497
|
-
|
|
1498
|
-
const
|
|
1499
|
-
|
|
1492
|
+
B.value.forEach((c) => {
|
|
1493
|
+
const z = A.value[c.name] || c.width;
|
|
1494
|
+
c.name && z && (a[c.name] = z);
|
|
1500
1495
|
}), localStorage.setItem(`or-data-grid-v3-widths-${e.features.storageKey}`, JSON.stringify({
|
|
1501
1496
|
widths: a,
|
|
1502
|
-
containerWidth: (
|
|
1497
|
+
containerWidth: (d = i.value) == null ? void 0 : d.offsetWidth
|
|
1503
1498
|
}));
|
|
1504
1499
|
}
|
|
1505
1500
|
const ne = T(!1);
|
|
1506
|
-
function
|
|
1507
|
-
ne.value = !0,
|
|
1508
|
-
...
|
|
1509
|
-
[a.name]: `${
|
|
1510
|
-
}, e.features.storageKey &&
|
|
1501
|
+
function $e(a, d) {
|
|
1502
|
+
ne.value = !0, A.value = {
|
|
1503
|
+
...A.value,
|
|
1504
|
+
[a.name]: `${d}px`
|
|
1505
|
+
}, e.features.storageKey && pe(), we();
|
|
1511
1506
|
}
|
|
1512
|
-
const
|
|
1507
|
+
const we = me(() => {
|
|
1513
1508
|
ne.value = !1;
|
|
1514
|
-
}, 1e3),
|
|
1515
|
-
function
|
|
1509
|
+
}, 1e3), De = T(0);
|
|
1510
|
+
function Se() {
|
|
1516
1511
|
if (!(typeof window > "u" || !e.features.storageKey))
|
|
1517
1512
|
try {
|
|
1518
1513
|
const a = localStorage.getItem(`or-data-grid-v3-widths-${e.features.storageKey}`);
|
|
1519
1514
|
if (a) {
|
|
1520
|
-
const
|
|
1521
|
-
if (
|
|
1522
|
-
|
|
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;
|
|
1523
1518
|
return;
|
|
1524
1519
|
}
|
|
1525
|
-
|
|
1520
|
+
A.value = c;
|
|
1526
1521
|
}
|
|
1527
1522
|
} catch (a) {
|
|
1528
1523
|
console.error("[OrDataGrid]: Failed to load column widths from localStorage", a);
|
|
1529
1524
|
}
|
|
1530
1525
|
}
|
|
1531
|
-
|
|
1532
|
-
const
|
|
1533
|
-
if (!(
|
|
1534
|
-
const
|
|
1535
|
-
if (
|
|
1526
|
+
Ne(i, (a) => {
|
|
1527
|
+
const d = a[0], { width: c } = d.contentRect;
|
|
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)
|
|
1536
1531
|
try {
|
|
1537
|
-
const
|
|
1538
|
-
|
|
1532
|
+
const q = JSON.parse(z).containerWidth;
|
|
1533
|
+
q && Math.abs(c - q) > 10 && (A.value = {});
|
|
1539
1534
|
} catch {
|
|
1540
1535
|
}
|
|
1541
1536
|
}
|
|
1542
|
-
}),
|
|
1543
|
-
|
|
1537
|
+
}), ze(() => {
|
|
1538
|
+
Se();
|
|
1544
1539
|
});
|
|
1545
1540
|
function de(a) {
|
|
1546
|
-
|
|
1541
|
+
P.delete(a), L.delete(a);
|
|
1547
1542
|
}
|
|
1548
|
-
function
|
|
1543
|
+
function Ce(a) {
|
|
1549
1544
|
a.currentTarget.scrollIntoView({ block: "nearest" });
|
|
1550
1545
|
}
|
|
1551
|
-
function ce(a,
|
|
1552
|
-
return a[
|
|
1546
|
+
function ce(a, d) {
|
|
1547
|
+
return a[d];
|
|
1553
1548
|
}
|
|
1554
1549
|
function _(a) {
|
|
1555
1550
|
return typeof e.itemKey == "function" ? e.itemKey(a) : ce(a, e.itemKey);
|
|
1556
1551
|
}
|
|
1557
|
-
function
|
|
1558
|
-
a[
|
|
1552
|
+
function Te(a, d, c) {
|
|
1553
|
+
a[d] = c;
|
|
1559
1554
|
}
|
|
1560
1555
|
return {
|
|
1561
1556
|
root: i,
|
|
@@ -1566,27 +1561,28 @@ const ya = /* @__PURE__ */ W(ga, [["render", ha]]), va = [
|
|
|
1566
1561
|
showSelectingCouter: y,
|
|
1567
1562
|
selectingDisabled: G,
|
|
1568
1563
|
skeletonsLength: j,
|
|
1569
|
-
actualColumns:
|
|
1564
|
+
actualColumns: B,
|
|
1570
1565
|
actualItems: o,
|
|
1571
|
-
hierarchyColumns:
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1566
|
+
hierarchyColumns: Z,
|
|
1567
|
+
hierarchyIndent: Y,
|
|
1568
|
+
handleMouseEnterRow: x,
|
|
1569
|
+
handleMouseLeaveRow: ye,
|
|
1570
|
+
handleMouseEnterCell: ve,
|
|
1571
|
+
handleMouseLeaveCell: ke,
|
|
1572
|
+
handleRowClick: be,
|
|
1577
1573
|
toggleExpand: h,
|
|
1578
1574
|
isExpanded: H,
|
|
1579
|
-
updateColumnWidth:
|
|
1580
|
-
columnWidths:
|
|
1581
|
-
selectingModel:
|
|
1575
|
+
updateColumnWidth: $e,
|
|
1576
|
+
columnWidths: A,
|
|
1577
|
+
selectingModel: F,
|
|
1582
1578
|
filteringModel: p,
|
|
1583
1579
|
searchingModel: S,
|
|
1584
|
-
sortingModel:
|
|
1580
|
+
sortingModel: W,
|
|
1585
1581
|
pagingModel: V,
|
|
1586
|
-
stickyOffsets:
|
|
1587
|
-
updateScrollOffset:
|
|
1582
|
+
stickyOffsets: s,
|
|
1583
|
+
updateScrollOffset: K,
|
|
1588
1584
|
removeScrollOffset: de,
|
|
1589
|
-
updateSearchingModel:
|
|
1585
|
+
updateSearchingModel: l,
|
|
1590
1586
|
getItemValue: ce,
|
|
1591
1587
|
getItemId: _,
|
|
1592
1588
|
scrollToTop: () => {
|
|
@@ -1595,18 +1591,18 @@ const ya = /* @__PURE__ */ W(ga, [["render", ha]]), va = [
|
|
|
1595
1591
|
behavior: "smooth"
|
|
1596
1592
|
});
|
|
1597
1593
|
},
|
|
1598
|
-
scrollTo:
|
|
1599
|
-
onInput: (a,
|
|
1600
|
-
|
|
1594
|
+
scrollTo: Ce,
|
|
1595
|
+
onInput: (a, d, c) => {
|
|
1596
|
+
Te(a, d, c), t.emit("update:item", a);
|
|
1601
1597
|
}
|
|
1602
1598
|
};
|
|
1603
1599
|
}
|
|
1604
|
-
}),
|
|
1600
|
+
}), Oa = {
|
|
1605
1601
|
key: 0,
|
|
1606
1602
|
class: "flex items-center justify-center w-6 h-6 shrink-0"
|
|
1607
1603
|
};
|
|
1608
|
-
function
|
|
1609
|
-
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");
|
|
1610
1606
|
return n(), b("div", {
|
|
1611
1607
|
ref: "root",
|
|
1612
1608
|
class: u(e.rootStyles)
|
|
@@ -1625,10 +1621,10 @@ function pa(e, t, i, D, g, f) {
|
|
|
1625
1621
|
e.features.searching ? {
|
|
1626
1622
|
name: "searching",
|
|
1627
1623
|
fn: $(() => [
|
|
1628
|
-
m(e.$slots, "search",
|
|
1629
|
-
|
|
1624
|
+
m(e.$slots, "search", Fe(He({ updateSearchingModel: e.updateSearchingModel, searchingModel: e.searchingModel })), () => [
|
|
1625
|
+
U(C, {
|
|
1630
1626
|
modelValue: e.searchingModel,
|
|
1631
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
1627
|
+
"onUpdate:modelValue": t[0] || (t[0] = (s) => e.searchingModel = s)
|
|
1632
1628
|
}, null, 8, ["modelValue"])
|
|
1633
1629
|
])
|
|
1634
1630
|
]),
|
|
@@ -1642,7 +1638,7 @@ function pa(e, t, i, D, g, f) {
|
|
|
1642
1638
|
key: "2"
|
|
1643
1639
|
} : void 0
|
|
1644
1640
|
]), 1024)) : k("", !0),
|
|
1645
|
-
e.$slots.toolbar ? (n(), O(
|
|
1641
|
+
e.$slots.toolbar ? (n(), O(F, {
|
|
1646
1642
|
key: 1,
|
|
1647
1643
|
class: u(["shrink-0"])
|
|
1648
1644
|
}, {
|
|
@@ -1651,7 +1647,7 @@ function pa(e, t, i, D, g, f) {
|
|
|
1651
1647
|
]),
|
|
1652
1648
|
_: 3
|
|
1653
1649
|
})) : k("", !0),
|
|
1654
|
-
|
|
1650
|
+
U(B, {
|
|
1655
1651
|
ref: "table",
|
|
1656
1652
|
class: u(["grow", "overscroll-none", { "grid-rows-[auto_1fr]": e.items.length === 0 }]),
|
|
1657
1653
|
style: J(e.tableInlineStyles),
|
|
@@ -1660,9 +1656,9 @@ function pa(e, t, i, D, g, f) {
|
|
|
1660
1656
|
features: e.features
|
|
1661
1657
|
}, {
|
|
1662
1658
|
default: $(() => [
|
|
1663
|
-
|
|
1659
|
+
U(V, null, {
|
|
1664
1660
|
default: $(() => [
|
|
1665
|
-
|
|
1661
|
+
U(W, { variant: e.variant }, {
|
|
1666
1662
|
default: $(() => [
|
|
1667
1663
|
e.features.selecting ? (n(), O(S, {
|
|
1668
1664
|
key: 0,
|
|
@@ -1674,28 +1670,28 @@ function pa(e, t, i, D, g, f) {
|
|
|
1674
1670
|
"onRemove:scrollOffset": e.removeScrollOffset
|
|
1675
1671
|
}, {
|
|
1676
1672
|
default: $(() => [
|
|
1677
|
-
|
|
1673
|
+
U(p, {
|
|
1678
1674
|
modelValue: e.selectingIndicator,
|
|
1679
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
1675
|
+
"onUpdate:modelValue": t[1] || (t[1] = (s) => e.selectingIndicator = s),
|
|
1680
1676
|
indeterminate: !e.selectingIndicator && e.selectingModel.length > 0,
|
|
1681
1677
|
disabled: e.selectingDisabled
|
|
1682
1678
|
}, null, 8, ["modelValue", "indeterminate", "disabled"])
|
|
1683
1679
|
]),
|
|
1684
1680
|
_: 1
|
|
1685
1681
|
}, 8, ["sticky-offset", "onUpdate:scrollOffset", "onRemove:scrollOffset"])) : k("", !0),
|
|
1686
|
-
(n(!0), b(ee, null, te(e.actualColumns, (
|
|
1687
|
-
key:
|
|
1682
|
+
(n(!0), b(ee, null, te(e.actualColumns, (s) => (n(), O(S, {
|
|
1683
|
+
key: s.name,
|
|
1688
1684
|
modelValue: e.sortingModel,
|
|
1689
1685
|
"onUpdate:modelValue": t[2] || (t[2] = (l) => e.sortingModel = l),
|
|
1690
|
-
column:
|
|
1686
|
+
column: s,
|
|
1691
1687
|
features: e.features,
|
|
1692
|
-
"sticky-offset":
|
|
1688
|
+
"sticky-offset": s.stickiness === "start" ? e.stickyOffsets.start.get(s.name) : s.stickiness === "end" ? e.stickyOffsets.end.get(s.name) : void 0,
|
|
1693
1689
|
"onUpdate:scrollOffset": e.updateScrollOffset,
|
|
1694
1690
|
"onRemove:scrollOffset": e.removeScrollOffset,
|
|
1695
|
-
"onUpdate:columnWidth": (l) => e.updateColumnWidth(
|
|
1691
|
+
"onUpdate:columnWidth": (l) => e.updateColumnWidth(s, l)
|
|
1696
1692
|
}, {
|
|
1697
1693
|
default: $(() => [
|
|
1698
|
-
re(se(
|
|
1694
|
+
re(se(s.label), 1)
|
|
1699
1695
|
]),
|
|
1700
1696
|
_: 2
|
|
1701
1697
|
}, 1032, ["modelValue", "column", "features", "sticky-offset", "onUpdate:scrollOffset", "onRemove:scrollOffset", "onUpdate:columnWidth"]))), 128))
|
|
@@ -1705,11 +1701,11 @@ function pa(e, t, i, D, g, f) {
|
|
|
1705
1701
|
]),
|
|
1706
1702
|
_: 1
|
|
1707
1703
|
}),
|
|
1708
|
-
e.notification ? (n(), O(
|
|
1704
|
+
e.notification ? (n(), O(E, {
|
|
1709
1705
|
key: 0,
|
|
1710
1706
|
notification: e.notification,
|
|
1711
1707
|
variant: e.variant,
|
|
1712
|
-
onCloseNotification: t[3] || (t[3] = (
|
|
1708
|
+
onCloseNotification: t[3] || (t[3] = (s) => e.$emit("close-notification"))
|
|
1713
1709
|
}, oe({ _: 2 }, [
|
|
1714
1710
|
e.$slots.notification ? {
|
|
1715
1711
|
name: "notification",
|
|
@@ -1719,7 +1715,7 @@ function pa(e, t, i, D, g, f) {
|
|
|
1719
1715
|
key: "0"
|
|
1720
1716
|
} : void 0
|
|
1721
1717
|
]), 1032, ["notification", "variant"])) : k("", !0),
|
|
1722
|
-
|
|
1718
|
+
U(A, null, {
|
|
1723
1719
|
default: $(() => [
|
|
1724
1720
|
e.$slots["before-rows"] ? (n(), O(H, {
|
|
1725
1721
|
key: 0,
|
|
@@ -1731,8 +1727,8 @@ function pa(e, t, i, D, g, f) {
|
|
|
1731
1727
|
]),
|
|
1732
1728
|
_: 3
|
|
1733
1729
|
}, 8, ["variant"])) : k("", !0),
|
|
1734
|
-
e.loading ? (n(!0), b(ee, { key: 1 }, te(e.skeletonsLength, (
|
|
1735
|
-
key:
|
|
1730
|
+
e.loading ? (n(!0), b(ee, { key: 1 }, te(e.skeletonsLength, (s) => (n(), O(y, {
|
|
1731
|
+
key: s,
|
|
1736
1732
|
variant: e.variant,
|
|
1737
1733
|
interactive: e.interactiveRows
|
|
1738
1734
|
}, {
|
|
@@ -1746,7 +1742,7 @@ function pa(e, t, i, D, g, f) {
|
|
|
1746
1742
|
class: "!px-none"
|
|
1747
1743
|
}, {
|
|
1748
1744
|
default: $(() => [
|
|
1749
|
-
|
|
1745
|
+
U(h)
|
|
1750
1746
|
]),
|
|
1751
1747
|
_: 1
|
|
1752
1748
|
}, 8, ["sticky-offset", "variant"])) : k("", !0),
|
|
@@ -1760,21 +1756,21 @@ function pa(e, t, i, D, g, f) {
|
|
|
1760
1756
|
}, {
|
|
1761
1757
|
default: $(() => [
|
|
1762
1758
|
m(e.$slots, "column-loading", { column: l }, () => [
|
|
1763
|
-
|
|
1759
|
+
U(h)
|
|
1764
1760
|
])
|
|
1765
1761
|
]),
|
|
1766
1762
|
_: 2
|
|
1767
1763
|
}, 1032, ["column", "features", "sticky-offset", "variant"]))), 128))
|
|
1768
1764
|
]),
|
|
1769
1765
|
_: 2
|
|
1770
|
-
}, 1032, ["variant", "interactive"]))), 128)) : e.items.length > 0 ? (n(!0), b(ee, { key: 2 }, te(e.actualItems, (
|
|
1771
|
-
key: e.getItemId(
|
|
1766
|
+
}, 1032, ["variant", "interactive"]))), 128)) : e.items.length > 0 ? (n(!0), b(ee, { key: 2 }, te(e.actualItems, (s) => (n(), O(y, {
|
|
1767
|
+
key: e.getItemId(s),
|
|
1772
1768
|
variant: e.variant,
|
|
1773
|
-
selected: e.selectingModel.includes(e.getItemId(
|
|
1769
|
+
selected: e.selectingModel.includes(e.getItemId(s)),
|
|
1774
1770
|
interactive: e.interactiveRows,
|
|
1775
|
-
onMouseenter: () => e.handleMouseEnterRow(
|
|
1776
|
-
onMouseleave: () => e.handleMouseLeaveRow(
|
|
1777
|
-
onClick: () => e.handleRowClick(
|
|
1771
|
+
onMouseenter: () => e.handleMouseEnterRow(s),
|
|
1772
|
+
onMouseleave: () => e.handleMouseLeaveRow(s),
|
|
1773
|
+
onClick: () => e.handleRowClick(s)
|
|
1778
1774
|
}, {
|
|
1779
1775
|
default: $(() => [
|
|
1780
1776
|
e.features.selecting ? (n(), O(o, {
|
|
@@ -1785,14 +1781,14 @@ function pa(e, t, i, D, g, f) {
|
|
|
1785
1781
|
override: !0,
|
|
1786
1782
|
"force-state": "none",
|
|
1787
1783
|
class: "!px-none",
|
|
1788
|
-
onMouseenter: () => e.handleMouseEnterCell(
|
|
1789
|
-
onMouseleave: () => e.handleMouseLeaveCell(
|
|
1784
|
+
onMouseenter: () => e.handleMouseEnterCell(s, "selecting", e.selectingModel.indexOf(e.getItemId(s)) !== -1),
|
|
1785
|
+
onMouseleave: () => e.handleMouseLeaveCell(s, "selecting", e.selectingModel.indexOf(e.getItemId(s)) !== -1)
|
|
1790
1786
|
}, {
|
|
1791
1787
|
default: $(() => [
|
|
1792
|
-
|
|
1788
|
+
U(p, {
|
|
1793
1789
|
modelValue: e.selectingModel,
|
|
1794
1790
|
"onUpdate:modelValue": t[4] || (t[4] = (l) => e.selectingModel = l),
|
|
1795
|
-
value: e.getItemId(
|
|
1791
|
+
value: e.getItemId(s),
|
|
1796
1792
|
disabled: e.selectingDisabled
|
|
1797
1793
|
}, null, 8, ["modelValue", "value", "disabled"])
|
|
1798
1794
|
]),
|
|
@@ -1800,46 +1796,46 @@ function pa(e, t, i, D, g, f) {
|
|
|
1800
1796
|
}, 1032, ["sticky-offset", "variant", "onMouseenter", "onMouseleave"])) : k("", !0),
|
|
1801
1797
|
(n(!0), b(ee, null, te(e.actualColumns, (l) => (n(), O(o, {
|
|
1802
1798
|
key: l.name,
|
|
1803
|
-
"model-value": e.getItemValue(
|
|
1799
|
+
"model-value": e.getItemValue(s, l.name),
|
|
1804
1800
|
column: l,
|
|
1805
1801
|
features: e.features,
|
|
1806
1802
|
"sticky-offset": l.stickiness === "start" ? e.stickyOffsets.start.get(l.name) : l.stickiness === "end" ? e.stickyOffsets.end.get(l.name) : void 0,
|
|
1807
1803
|
variant: e.variant,
|
|
1808
|
-
onInput: (
|
|
1809
|
-
onFocusin: t[6] || (t[6] = (
|
|
1810
|
-
onMouseenter: () => e.handleMouseEnterCell(
|
|
1811
|
-
onMouseleave: () => e.handleMouseLeaveCell(
|
|
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))
|
|
1812
1808
|
}, {
|
|
1813
1809
|
default: $(() => [
|
|
1814
1810
|
le("div", {
|
|
1815
1811
|
class: u(["flex items-center gap-xs h-full w-full min-w-0", [
|
|
1816
1812
|
l.alignment === "end" ? "justify-end" : l.alignment === "center" ? "justify-center" : "justify-start"
|
|
1817
1813
|
]]),
|
|
1818
|
-
style: J(l.name === e.hierarchyColumns.get(
|
|
1814
|
+
style: J(l.name === e.hierarchyColumns.get(s) ? { paddingLeft: (s.level || 0) * e.hierarchyIndent + "px" } : void 0)
|
|
1819
1815
|
}, [
|
|
1820
|
-
l.name === e.hierarchyColumns.get(
|
|
1821
|
-
|
|
1816
|
+
l.name === e.hierarchyColumns.get(s) && e.features.hierarchy ? (n(), b("div", Oa, [
|
|
1817
|
+
s.children && s.children.length > 0 ? (n(), O(G, {
|
|
1822
1818
|
key: 0,
|
|
1823
1819
|
icon: "chevron_right",
|
|
1824
1820
|
size: "m",
|
|
1825
|
-
class: u(["transition-transform duration-200", { "rotate-90": e.isExpanded(
|
|
1826
|
-
onClick: ae((
|
|
1821
|
+
class: u(["transition-transform duration-200", { "rotate-90": e.isExpanded(s) }]),
|
|
1822
|
+
onClick: ae((K) => e.toggleExpand(s), ["stop"]),
|
|
1827
1823
|
onMousedown: t[5] || (t[5] = ae(() => {
|
|
1828
1824
|
}, ["prevent"]))
|
|
1829
1825
|
}, null, 8, ["class", "onClick"])) : k("", !0)
|
|
1830
1826
|
])) : k("", !0),
|
|
1831
1827
|
le("div", {
|
|
1832
1828
|
class: u(["min-w-0", [
|
|
1833
|
-
l.name === e.hierarchyColumns.get(
|
|
1829
|
+
l.name === e.hierarchyColumns.get(s) ? "flex-grow" : "",
|
|
1834
1830
|
l.alignment === "end" ? "text-end" : l.alignment === "center" ? "text-center" : "text-start",
|
|
1835
1831
|
(l.wrapping !== void 0 && l.wrapping !== null ? l.wrapping : e.variant === "dynamic" && !l.control) ? "whitespace-pre-wrap break-words" : l.fitContent ? "" : "truncate"
|
|
1836
1832
|
]])
|
|
1837
1833
|
}, [
|
|
1838
1834
|
m(e.$slots, l.name, {
|
|
1839
1835
|
column: l,
|
|
1840
|
-
item:
|
|
1836
|
+
item: s
|
|
1841
1837
|
}, () => [
|
|
1842
|
-
re(se(e.getItemValue(
|
|
1838
|
+
re(se(e.getItemValue(s, l.name)), 1)
|
|
1843
1839
|
])
|
|
1844
1840
|
], 2)
|
|
1845
1841
|
], 6)
|
|
@@ -1885,14 +1881,14 @@ function pa(e, t, i, D, g, f) {
|
|
|
1885
1881
|
]),
|
|
1886
1882
|
_: 3
|
|
1887
1883
|
}, 8, ["class", "style", "columns", "column-widths", "features"]),
|
|
1888
|
-
e.$slots["extra-row"] ? (n(), O(
|
|
1884
|
+
e.$slots["extra-row"] ? (n(), O(Z, { key: 2 }, {
|
|
1889
1885
|
default: $(() => [
|
|
1890
|
-
|
|
1886
|
+
U(Y, {
|
|
1891
1887
|
class: u(["shrink-0"]),
|
|
1892
1888
|
variant: e.variant
|
|
1893
1889
|
}, {
|
|
1894
1890
|
default: $(() => [
|
|
1895
|
-
|
|
1891
|
+
U(Q, null, {
|
|
1896
1892
|
default: $(() => [
|
|
1897
1893
|
m(e.$slots, "extra-row")
|
|
1898
1894
|
]),
|
|
@@ -1904,7 +1900,7 @@ function pa(e, t, i, D, g, f) {
|
|
|
1904
1900
|
]),
|
|
1905
1901
|
_: 3
|
|
1906
1902
|
})) : k("", !0),
|
|
1907
|
-
e.$slots.actions || e.showSelectingCouter || e.features.paging ? (n(), O(
|
|
1903
|
+
e.$slots.actions || e.showSelectingCouter || e.features.paging ? (n(), O(L, {
|
|
1908
1904
|
key: 3,
|
|
1909
1905
|
class: u(["shrink-0"])
|
|
1910
1906
|
}, oe({ _: 2 }, [
|
|
@@ -1925,10 +1921,10 @@ function pa(e, t, i, D, g, f) {
|
|
|
1925
1921
|
e.features.paging ? {
|
|
1926
1922
|
name: "paging",
|
|
1927
1923
|
fn: $(() => [
|
|
1928
|
-
|
|
1924
|
+
U(P, {
|
|
1929
1925
|
ref: "pagination",
|
|
1930
1926
|
modelValue: e.pagingModel,
|
|
1931
|
-
"onUpdate:modelValue": t[7] || (t[7] = (
|
|
1927
|
+
"onUpdate:modelValue": t[7] || (t[7] = (s) => e.pagingModel = s),
|
|
1932
1928
|
length: e.features.paging.length,
|
|
1933
1929
|
options: e.features.paging.options
|
|
1934
1930
|
}, null, 8, ["modelValue", "length", "options"])
|
|
@@ -1938,27 +1934,27 @@ function pa(e, t, i, D, g, f) {
|
|
|
1938
1934
|
]), 1024)) : k("", !0)
|
|
1939
1935
|
], 2);
|
|
1940
1936
|
}
|
|
1941
|
-
const
|
|
1937
|
+
const qa = /* @__PURE__ */ R(pa, [["render", $a]]);
|
|
1942
1938
|
export {
|
|
1943
1939
|
w as D,
|
|
1944
|
-
|
|
1940
|
+
qa as O,
|
|
1945
1941
|
ie as a,
|
|
1946
1942
|
he as b,
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
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
|
|
1963
1959
|
};
|
|
1964
|
-
//# sourceMappingURL=OrDataGrid-
|
|
1960
|
+
//# sourceMappingURL=OrDataGrid-DWrS5m_m.mjs.map
|