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