@onereach/ui-components 26.3.3-beta.5868.0 → 26.3.3-beta.5869.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-B-yWa8xy.mjs → OrDataGrid-Dg_tGOqf.mjs} +104 -104
- package/dist/esm/OrDataGrid-Dg_tGOqf.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/types.d.ts +1 -0
- package/package.json +3 -3
- package/dist/esm/OrDataGrid-B-yWa8xy.mjs.map +0 -1
|
@@ -2,8 +2,8 @@ import { O as X } from "./OrCheckbox-WPBzlvaV.mjs";
|
|
|
2
2
|
import { O as Y } from "./OrPagination-BXzDa-Su.mjs";
|
|
3
3
|
import { O as Z } from "./OrSearch-CRFuNmg2.mjs";
|
|
4
4
|
import { O as _ } from "./OrSkeletonArea.vue_vue_type_script_lang-jgRhbZ0X.mjs";
|
|
5
|
-
import { defineComponent as
|
|
6
|
-
import { _ as
|
|
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
7
|
import { O as re } from "./OrDatePicker-D-Do0tSf.mjs";
|
|
8
8
|
import { O as ne } from "./OrDateTimePicker-myqJkQxy.mjs";
|
|
9
9
|
import "./OrDateTimePicker.vue_vue_type_script_lang-xnGNoSUB.mjs";
|
|
@@ -34,13 +34,13 @@ const ge = [
|
|
|
34
34
|
], ve = [
|
|
35
35
|
// Typography
|
|
36
36
|
"typography-body-2-semibold"
|
|
37
|
-
], he =
|
|
37
|
+
], he = S({
|
|
38
38
|
name: "OrDataGridFooter",
|
|
39
39
|
expose: [
|
|
40
40
|
"root"
|
|
41
41
|
],
|
|
42
42
|
setup() {
|
|
43
|
-
const e =
|
|
43
|
+
const e = w(), t = n(() => [
|
|
44
44
|
"or-data-grid-footer-v3",
|
|
45
45
|
...ge
|
|
46
46
|
]), r = n(() => [
|
|
@@ -72,7 +72,7 @@ function ye(e, t, r, m, h, b) {
|
|
|
72
72
|
i(e.$slots, "paging")
|
|
73
73
|
], 2);
|
|
74
74
|
}
|
|
75
|
-
const ke = /* @__PURE__ */
|
|
75
|
+
const ke = /* @__PURE__ */ T(he, [["render", ye]]), Oe = [
|
|
76
76
|
// Layout
|
|
77
77
|
"layout-row items-start gap-md",
|
|
78
78
|
// Interactivity
|
|
@@ -82,13 +82,13 @@ const ke = /* @__PURE__ */ C(he, [["render", ye]]), Oe = [
|
|
|
82
82
|
], $e = [
|
|
83
83
|
// Typography
|
|
84
84
|
"typography-headline-2"
|
|
85
|
-
], De =
|
|
85
|
+
], De = S({
|
|
86
86
|
name: "OrDataGridHeader",
|
|
87
87
|
expose: [
|
|
88
88
|
"root"
|
|
89
89
|
],
|
|
90
90
|
setup() {
|
|
91
|
-
const e =
|
|
91
|
+
const e = w(), t = n(() => [
|
|
92
92
|
"or-data-grid-header-v3",
|
|
93
93
|
...Oe
|
|
94
94
|
]), r = n(() => [
|
|
@@ -120,7 +120,7 @@ function Ge(e, t, r, m, h, b) {
|
|
|
120
120
|
e.$slots.extraActions ? i(e.$slots, "extraActions", { key: 2 }) : g("", !0)
|
|
121
121
|
], 2);
|
|
122
122
|
}
|
|
123
|
-
const Se = /* @__PURE__ */
|
|
123
|
+
const Se = /* @__PURE__ */ T(De, [["render", Ge]]);
|
|
124
124
|
var c = /* @__PURE__ */ ((e) => (e.Standard = "standard", e.Comfortable = "comfortable", e.Compact = "compact", e.Dynamic = "dynamic", e))(c || {});
|
|
125
125
|
const Te = [
|
|
126
126
|
// Layout
|
|
@@ -150,7 +150,7 @@ const Te = [
|
|
|
150
150
|
"interactivity-select",
|
|
151
151
|
// Typography
|
|
152
152
|
"truncate"
|
|
153
|
-
], Ve =
|
|
153
|
+
], Ve = S({
|
|
154
154
|
name: "OrDataGridTableContentCell",
|
|
155
155
|
components: {
|
|
156
156
|
OrCheckbox: X,
|
|
@@ -197,7 +197,7 @@ const Te = [
|
|
|
197
197
|
"root"
|
|
198
198
|
],
|
|
199
199
|
setup(e, t) {
|
|
200
|
-
const r =
|
|
200
|
+
const r = w(), m = n(() => {
|
|
201
201
|
var k;
|
|
202
202
|
return [
|
|
203
203
|
"or-data-grid-table-content-cell-v3",
|
|
@@ -232,11 +232,11 @@ const Te = [
|
|
|
232
232
|
justifyContent: "center"
|
|
233
233
|
};
|
|
234
234
|
}), b = n(() => {
|
|
235
|
-
var
|
|
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));
|
|
236
237
|
return [
|
|
237
|
-
...Ce,
|
|
238
|
-
...
|
|
239
|
-
...e.variant === c.Dynamic && !((S = e.column) != null && S.control) ? ["whitespace-pre-wrap break-words"] : ["truncate"]
|
|
238
|
+
...Ce.filter((G) => G !== "truncate"),
|
|
239
|
+
...k ? ["whitespace-pre-wrap break-words"] : ["truncate"]
|
|
240
240
|
];
|
|
241
241
|
}), $ = n({
|
|
242
242
|
get: () => e.modelValue,
|
|
@@ -258,7 +258,7 @@ const Te = [
|
|
|
258
258
|
}
|
|
259
259
|
});
|
|
260
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"),
|
|
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
262
|
return o(), v("div", {
|
|
263
263
|
ref: "root",
|
|
264
264
|
class: u(e.rootStyles),
|
|
@@ -302,14 +302,14 @@ function Me(e, t, r, m, h, b) {
|
|
|
302
302
|
modelValue: e.model,
|
|
303
303
|
"onUpdate:modelValue": t[5] || (t[5] = (y) => e.model = y)
|
|
304
304
|
}, null, 8, ["modelValue"])) : g("", !0),
|
|
305
|
-
e.control.type === "date" ? (o(), p(
|
|
305
|
+
e.control.type === "date" ? (o(), p(G, {
|
|
306
306
|
key: 6,
|
|
307
307
|
modelValue: e.model,
|
|
308
308
|
"onUpdate:modelValue": t[6] || (t[6] = (y) => e.model = y),
|
|
309
309
|
variant: "embedded",
|
|
310
310
|
anchor: e.root
|
|
311
311
|
}, null, 8, ["modelValue", "anchor"])) : g("", !0),
|
|
312
|
-
e.control.type === "time" ? (o(), p(
|
|
312
|
+
e.control.type === "time" ? (o(), p(C, {
|
|
313
313
|
key: 7,
|
|
314
314
|
modelValue: e.model,
|
|
315
315
|
"onUpdate:modelValue": t[7] || (t[7] = (y) => e.model = y),
|
|
@@ -337,7 +337,7 @@ function Me(e, t, r, m, h, b) {
|
|
|
337
337
|
], 2))
|
|
338
338
|
], 6);
|
|
339
339
|
}
|
|
340
|
-
const Re = /* @__PURE__ */
|
|
340
|
+
const Re = /* @__PURE__ */ T(Ve, [["render", Me]]), Ie = [
|
|
341
341
|
// Layout
|
|
342
342
|
"grid grid-cols-[subgrid] col-span-full",
|
|
343
343
|
// Typography
|
|
@@ -362,21 +362,21 @@ const Re = /* @__PURE__ */ C(Ve, [["render", Me]]), Ie = [
|
|
|
362
362
|
], Fe = {
|
|
363
363
|
[c.Standard]: [
|
|
364
364
|
// Box
|
|
365
|
-
"h-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
|
|
365
|
+
"min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
|
|
366
366
|
],
|
|
367
367
|
[c.Comfortable]: [
|
|
368
368
|
// Box
|
|
369
|
-
"h-[calc(theme(spacing.3xl)+theme(spacing.xs))]"
|
|
369
|
+
"min-h-[calc(theme(spacing.3xl)+theme(spacing.xs))]"
|
|
370
370
|
],
|
|
371
371
|
[c.Compact]: [
|
|
372
372
|
// Box
|
|
373
|
-
"h-[calc(theme(spacing.xl)+theme(spacing.xs))]"
|
|
373
|
+
"min-h-[calc(theme(spacing.xl)+theme(spacing.xs))]"
|
|
374
374
|
],
|
|
375
375
|
[c.Dynamic]: [
|
|
376
376
|
// Box
|
|
377
377
|
"min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
|
|
378
378
|
]
|
|
379
|
-
}, He =
|
|
379
|
+
}, He = S({
|
|
380
380
|
name: "OrDataGridTableContentRow",
|
|
381
381
|
props: {
|
|
382
382
|
variant: {
|
|
@@ -396,7 +396,7 @@ const Re = /* @__PURE__ */ C(Ve, [["render", Me]]), Ie = [
|
|
|
396
396
|
"root"
|
|
397
397
|
],
|
|
398
398
|
setup(e) {
|
|
399
|
-
const t =
|
|
399
|
+
const t = w(), r = n(() => [
|
|
400
400
|
"or-data-grid-table-content-row-v3",
|
|
401
401
|
...Ie,
|
|
402
402
|
...Fe[e.variant],
|
|
@@ -417,16 +417,16 @@ function je(e, t, r, m, h, b) {
|
|
|
417
417
|
i(e.$slots, "default")
|
|
418
418
|
], 10, Pe);
|
|
419
419
|
}
|
|
420
|
-
const Ee = /* @__PURE__ */
|
|
420
|
+
const Ee = /* @__PURE__ */ T(He, [["render", je]]), Ue = [
|
|
421
421
|
// Layout
|
|
422
422
|
"contents"
|
|
423
|
-
], Ne =
|
|
423
|
+
], Ne = S({
|
|
424
424
|
name: "OrDataGridTableContent",
|
|
425
425
|
expose: [
|
|
426
426
|
"root"
|
|
427
427
|
],
|
|
428
428
|
setup() {
|
|
429
|
-
const e =
|
|
429
|
+
const e = w(), t = n(() => [
|
|
430
430
|
"or-data-grid-table-content-v3",
|
|
431
431
|
...Ue
|
|
432
432
|
]);
|
|
@@ -444,7 +444,7 @@ function qe(e, t, r, m, h, b) {
|
|
|
444
444
|
i(e.$slots, "default")
|
|
445
445
|
], 2);
|
|
446
446
|
}
|
|
447
|
-
const Ae = /* @__PURE__ */
|
|
447
|
+
const Ae = /* @__PURE__ */ T(Ne, [["render", qe]]), Le = [
|
|
448
448
|
// Layout
|
|
449
449
|
"layout-row",
|
|
450
450
|
// Spacing
|
|
@@ -454,13 +454,13 @@ const Ae = /* @__PURE__ */ C(Ne, [["render", qe]]), Le = [
|
|
|
454
454
|
// Theme
|
|
455
455
|
"theme-border-transparent border-1",
|
|
456
456
|
"dark:theme-border-transparent-dark"
|
|
457
|
-
], Be =
|
|
457
|
+
], Be = S({
|
|
458
458
|
name: "OrDataGridTableFooterCell",
|
|
459
459
|
expose: [
|
|
460
460
|
"root"
|
|
461
461
|
],
|
|
462
462
|
setup() {
|
|
463
|
-
const e =
|
|
463
|
+
const e = w(), t = n(() => [
|
|
464
464
|
"or-data-grid-table-footer-cell-v3",
|
|
465
465
|
...Le
|
|
466
466
|
]);
|
|
@@ -478,7 +478,7 @@ function ze(e, t, r, m, h, b) {
|
|
|
478
478
|
i(e.$slots, "default")
|
|
479
479
|
], 2);
|
|
480
480
|
}
|
|
481
|
-
const
|
|
481
|
+
const We = /* @__PURE__ */ T(Be, [["render", ze]]), Je = [
|
|
482
482
|
// Layout
|
|
483
483
|
"grid grid-cols-1",
|
|
484
484
|
// Typography
|
|
@@ -491,24 +491,24 @@ const Je = /* @__PURE__ */ C(Be, [["render", ze]]), Ke = [
|
|
|
491
491
|
"dark:children:theme-foreground-default-dark",
|
|
492
492
|
"children:theme-background-default",
|
|
493
493
|
"dark:children:theme-background-default-dark"
|
|
494
|
-
],
|
|
494
|
+
], Ke = {
|
|
495
495
|
[c.Standard]: [
|
|
496
496
|
// Box
|
|
497
|
-
"h-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
|
|
497
|
+
"min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
|
|
498
498
|
],
|
|
499
499
|
[c.Comfortable]: [
|
|
500
500
|
// Box
|
|
501
|
-
"h-[calc(theme(spacing.3xl)+theme(spacing.xs))]"
|
|
501
|
+
"min-h-[calc(theme(spacing.3xl)+theme(spacing.xs))]"
|
|
502
502
|
],
|
|
503
503
|
[c.Compact]: [
|
|
504
504
|
// Box
|
|
505
|
-
"h-[calc(theme(spacing.xl)+theme(spacing.xs))]"
|
|
505
|
+
"min-h-[calc(theme(spacing.xl)+theme(spacing.xs))]"
|
|
506
506
|
],
|
|
507
507
|
[c.Dynamic]: [
|
|
508
508
|
// Box
|
|
509
509
|
"min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
|
|
510
510
|
]
|
|
511
|
-
},
|
|
511
|
+
}, Qe = S({
|
|
512
512
|
name: "OrDataGridTableFooterRow",
|
|
513
513
|
props: {
|
|
514
514
|
variant: {
|
|
@@ -520,10 +520,10 @@ const Je = /* @__PURE__ */ C(Be, [["render", ze]]), Ke = [
|
|
|
520
520
|
"root"
|
|
521
521
|
],
|
|
522
522
|
setup(e) {
|
|
523
|
-
const t =
|
|
523
|
+
const t = w(), r = n(() => [
|
|
524
524
|
"or-data-grid-table-footer-row-v3",
|
|
525
|
-
...
|
|
526
|
-
...
|
|
525
|
+
...Je,
|
|
526
|
+
...Ke[e.variant]
|
|
527
527
|
]);
|
|
528
528
|
return {
|
|
529
529
|
root: t,
|
|
@@ -539,16 +539,16 @@ function Xe(e, t, r, m, h, b) {
|
|
|
539
539
|
i(e.$slots, "default")
|
|
540
540
|
], 2);
|
|
541
541
|
}
|
|
542
|
-
const Ye = /* @__PURE__ */
|
|
542
|
+
const Ye = /* @__PURE__ */ T(Qe, [["render", Xe]]), Ze = [
|
|
543
543
|
// Layout
|
|
544
544
|
"contents"
|
|
545
|
-
], _e =
|
|
545
|
+
], _e = S({
|
|
546
546
|
name: "OrDataGridTableFooter",
|
|
547
547
|
expose: [
|
|
548
548
|
"root"
|
|
549
549
|
],
|
|
550
550
|
setup() {
|
|
551
|
-
const e =
|
|
551
|
+
const e = w(), t = n(() => [
|
|
552
552
|
"or-data-grid-table-footer-v3",
|
|
553
553
|
...Ze
|
|
554
554
|
]);
|
|
@@ -566,7 +566,7 @@ function xe(e, t, r, m, h, b) {
|
|
|
566
566
|
i(e.$slots, "default")
|
|
567
567
|
], 2);
|
|
568
568
|
}
|
|
569
|
-
const et = /* @__PURE__ */
|
|
569
|
+
const et = /* @__PURE__ */ T(_e, [["render", xe]]), tt = [
|
|
570
570
|
// Layout
|
|
571
571
|
"layout-row",
|
|
572
572
|
// Spacing
|
|
@@ -582,7 +582,7 @@ const et = /* @__PURE__ */ C(_e, [["render", xe]]), tt = [
|
|
|
582
582
|
// Theme (.sticky-end)
|
|
583
583
|
"[&.sticky-end]:border-s-disabled",
|
|
584
584
|
"dark:[&.sticky-end]:border-s-disabled-dark"
|
|
585
|
-
], at =
|
|
585
|
+
], at = S({
|
|
586
586
|
name: "OrDataGridTableHeaderCell",
|
|
587
587
|
components: {
|
|
588
588
|
OrIcon: me
|
|
@@ -614,9 +614,9 @@ const et = /* @__PURE__ */ C(_e, [["render", xe]]), tt = [
|
|
|
614
614
|
"root"
|
|
615
615
|
],
|
|
616
616
|
setup(e, t) {
|
|
617
|
-
const r =
|
|
618
|
-
var l, O,
|
|
619
|
-
return !!((l = e.features) != null && l.sorting) && !!((O = e.column) != null && O.name) && ((
|
|
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
620
|
}), h = n(() => {
|
|
621
621
|
var l;
|
|
622
622
|
return [
|
|
@@ -690,9 +690,9 @@ const et = /* @__PURE__ */ C(_e, [["render", xe]]), tt = [
|
|
|
690
690
|
l,
|
|
691
691
|
O
|
|
692
692
|
], [
|
|
693
|
-
|
|
693
|
+
G
|
|
694
694
|
]) => {
|
|
695
|
-
|
|
695
|
+
G && G !== l && t.emit("remove:scrollOffset", G), t.emit("update:scrollOffset", l, O, e.column);
|
|
696
696
|
}), {
|
|
697
697
|
root: r,
|
|
698
698
|
rootStyles: h,
|
|
@@ -722,7 +722,7 @@ function rt(e, t, r, m, h, b) {
|
|
|
722
722
|
}, null, 8, ["icon"])) : g("", !0)
|
|
723
723
|
], 6);
|
|
724
724
|
}
|
|
725
|
-
const nt = /* @__PURE__ */
|
|
725
|
+
const nt = /* @__PURE__ */ T(at, [["render", rt]]), lt = [
|
|
726
726
|
// Position
|
|
727
727
|
"sticky top-0 z-10",
|
|
728
728
|
// Layout
|
|
@@ -737,21 +737,21 @@ const nt = /* @__PURE__ */ C(at, [["render", rt]]), lt = [
|
|
|
737
737
|
], st = {
|
|
738
738
|
[c.Standard]: [
|
|
739
739
|
// Box
|
|
740
|
-
"h-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
|
|
740
|
+
"min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
|
|
741
741
|
],
|
|
742
742
|
[c.Comfortable]: [
|
|
743
743
|
// Box
|
|
744
|
-
"h-[calc(theme(spacing.3xl)+theme(spacing.xs))]"
|
|
744
|
+
"min-h-[calc(theme(spacing.3xl)+theme(spacing.xs))]"
|
|
745
745
|
],
|
|
746
746
|
[c.Compact]: [
|
|
747
747
|
// Box
|
|
748
|
-
"h-[calc(theme(spacing.xl)+theme(spacing.xs))]"
|
|
748
|
+
"min-h-[calc(theme(spacing.xl)+theme(spacing.xs))]"
|
|
749
749
|
],
|
|
750
750
|
[c.Dynamic]: [
|
|
751
751
|
// Box
|
|
752
752
|
"min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
|
|
753
753
|
]
|
|
754
|
-
}, it =
|
|
754
|
+
}, it = S({
|
|
755
755
|
name: "OrDataGridTableHeaderRow",
|
|
756
756
|
props: {
|
|
757
757
|
variant: {
|
|
@@ -763,7 +763,7 @@ const nt = /* @__PURE__ */ C(at, [["render", rt]]), lt = [
|
|
|
763
763
|
"root"
|
|
764
764
|
],
|
|
765
765
|
setup(e) {
|
|
766
|
-
const t =
|
|
766
|
+
const t = w(), r = n(() => [
|
|
767
767
|
"or-data-grid-table-header-row-v3",
|
|
768
768
|
...lt,
|
|
769
769
|
...st[e.variant]
|
|
@@ -782,16 +782,16 @@ function dt(e, t, r, m, h, b) {
|
|
|
782
782
|
i(e.$slots, "default")
|
|
783
783
|
], 2);
|
|
784
784
|
}
|
|
785
|
-
const ut = /* @__PURE__ */
|
|
785
|
+
const ut = /* @__PURE__ */ T(it, [["render", dt]]), ct = [
|
|
786
786
|
// Layout
|
|
787
787
|
"contents"
|
|
788
|
-
], mt =
|
|
788
|
+
], mt = S({
|
|
789
789
|
name: "OrDataGridTableHeader",
|
|
790
790
|
expose: [
|
|
791
791
|
"root"
|
|
792
792
|
],
|
|
793
793
|
setup() {
|
|
794
|
-
const e =
|
|
794
|
+
const e = w(), t = n(() => [
|
|
795
795
|
"or-data-grid-table-header-v3",
|
|
796
796
|
...ct
|
|
797
797
|
]);
|
|
@@ -809,7 +809,7 @@ function ft(e, t, r, m, h, b) {
|
|
|
809
809
|
i(e.$slots, "default")
|
|
810
810
|
], 2);
|
|
811
811
|
}
|
|
812
|
-
const pt = /* @__PURE__ */
|
|
812
|
+
const pt = /* @__PURE__ */ T(mt, [["render", ft]]), gt = [
|
|
813
813
|
// Layout
|
|
814
814
|
"layout-row justify-center",
|
|
815
815
|
// Spacing
|
|
@@ -840,7 +840,7 @@ const pt = /* @__PURE__ */ C(mt, [["render", ft]]), gt = [
|
|
|
840
840
|
// Box
|
|
841
841
|
"min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
|
|
842
842
|
]
|
|
843
|
-
}, ht =
|
|
843
|
+
}, ht = S({
|
|
844
844
|
name: "OrDataGridTablePlaceholder",
|
|
845
845
|
props: {
|
|
846
846
|
variant: {
|
|
@@ -852,7 +852,7 @@ const pt = /* @__PURE__ */ C(mt, [["render", ft]]), gt = [
|
|
|
852
852
|
"root"
|
|
853
853
|
],
|
|
854
854
|
setup(e) {
|
|
855
|
-
const t =
|
|
855
|
+
const t = w(), r = n(() => [
|
|
856
856
|
"or-data-grid-table-placeholder-v3",
|
|
857
857
|
...gt,
|
|
858
858
|
...vt[e.variant]
|
|
@@ -871,14 +871,14 @@ function bt(e, t, r, m, h, b) {
|
|
|
871
871
|
i(e.$slots, "default")
|
|
872
872
|
], 2);
|
|
873
873
|
}
|
|
874
|
-
const yt = /* @__PURE__ */
|
|
874
|
+
const yt = /* @__PURE__ */ T(ht, [["render", bt]]), kt = [
|
|
875
875
|
// Layout
|
|
876
876
|
"grid content-start",
|
|
877
877
|
// Overflow
|
|
878
878
|
"overflow-auto",
|
|
879
879
|
// Interactivity
|
|
880
880
|
"interactivity-default"
|
|
881
|
-
], Ot =
|
|
881
|
+
], Ot = S({
|
|
882
882
|
name: "OrDataGridTable",
|
|
883
883
|
props: {
|
|
884
884
|
columns: {
|
|
@@ -894,7 +894,7 @@ const yt = /* @__PURE__ */ C(ht, [["render", bt]]), kt = [
|
|
|
894
894
|
"root"
|
|
895
895
|
],
|
|
896
896
|
setup(e) {
|
|
897
|
-
const t =
|
|
897
|
+
const t = w(), r = n(() => [
|
|
898
898
|
"or-data-grid-table-v3",
|
|
899
899
|
...kt
|
|
900
900
|
]), m = n(() => {
|
|
@@ -917,20 +917,20 @@ function $t(e, t, r, m, h, b) {
|
|
|
917
917
|
i(e.$slots, "default")
|
|
918
918
|
], 6);
|
|
919
919
|
}
|
|
920
|
-
const Dt = /* @__PURE__ */
|
|
920
|
+
const Dt = /* @__PURE__ */ T(Ot, [["render", $t]]), wt = [
|
|
921
921
|
// Layout
|
|
922
922
|
"layout-row",
|
|
923
923
|
// Box
|
|
924
924
|
"h-2xl",
|
|
925
925
|
// Spacing
|
|
926
926
|
"gap-xl"
|
|
927
|
-
], Gt =
|
|
927
|
+
], Gt = S({
|
|
928
928
|
name: "OrDataGridToolbar",
|
|
929
929
|
expose: [
|
|
930
930
|
"root"
|
|
931
931
|
],
|
|
932
932
|
setup() {
|
|
933
|
-
const e =
|
|
933
|
+
const e = w(), t = n(() => [
|
|
934
934
|
"or-data-grid-toolbar-v3",
|
|
935
935
|
...wt
|
|
936
936
|
]);
|
|
@@ -948,7 +948,7 @@ function St(e, t, r, m, h, b) {
|
|
|
948
948
|
i(e.$slots, "default")
|
|
949
949
|
], 2);
|
|
950
950
|
}
|
|
951
|
-
const Tt = /* @__PURE__ */
|
|
951
|
+
const Tt = /* @__PURE__ */ T(Gt, [["render", St]]), Ct = [
|
|
952
952
|
// Position
|
|
953
953
|
"grid sticky z-10",
|
|
954
954
|
// Layout
|
|
@@ -970,7 +970,7 @@ const Tt = /* @__PURE__ */ C(Gt, [["render", St]]), Ct = [
|
|
|
970
970
|
// Position
|
|
971
971
|
"top-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
|
|
972
972
|
]
|
|
973
|
-
}, Mt =
|
|
973
|
+
}, Mt = S({
|
|
974
974
|
components: {
|
|
975
975
|
OrNotification: pe
|
|
976
976
|
},
|
|
@@ -1013,7 +1013,7 @@ function Rt(e, t, r, m, h, b) {
|
|
|
1013
1013
|
}, 16)
|
|
1014
1014
|
], 2);
|
|
1015
1015
|
}
|
|
1016
|
-
const It = /* @__PURE__ */
|
|
1016
|
+
const It = /* @__PURE__ */ T(Mt, [["render", Rt]]), Ft = [
|
|
1017
1017
|
// Layout
|
|
1018
1018
|
"grid col-span-full grid-cols-[subgrid]",
|
|
1019
1019
|
// Typography
|
|
@@ -1029,21 +1029,21 @@ const It = /* @__PURE__ */ C(Mt, [["render", Rt]]), Ft = [
|
|
|
1029
1029
|
], Ht = {
|
|
1030
1030
|
[c.Standard]: [
|
|
1031
1031
|
// Box
|
|
1032
|
-
"h-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
|
|
1032
|
+
"min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
|
|
1033
1033
|
],
|
|
1034
1034
|
[c.Comfortable]: [
|
|
1035
1035
|
// Box
|
|
1036
|
-
"h-[calc(theme(spacing.3xl)+theme(spacing.xs))]"
|
|
1036
|
+
"min-h-[calc(theme(spacing.3xl)+theme(spacing.xs))]"
|
|
1037
1037
|
],
|
|
1038
1038
|
[c.Compact]: [
|
|
1039
1039
|
// Box
|
|
1040
|
-
"h-[calc(theme(spacing.xl)+theme(spacing.xs))]"
|
|
1040
|
+
"min-h-[calc(theme(spacing.xl)+theme(spacing.xs))]"
|
|
1041
1041
|
],
|
|
1042
1042
|
[c.Dynamic]: [
|
|
1043
1043
|
// Box
|
|
1044
1044
|
"min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
|
|
1045
1045
|
]
|
|
1046
|
-
}, Pt =
|
|
1046
|
+
}, Pt = S({
|
|
1047
1047
|
name: "OrDataGridTableExtraRow",
|
|
1048
1048
|
props: {
|
|
1049
1049
|
variant: {
|
|
@@ -1055,7 +1055,7 @@ const It = /* @__PURE__ */ C(Mt, [["render", Rt]]), Ft = [
|
|
|
1055
1055
|
"root"
|
|
1056
1056
|
],
|
|
1057
1057
|
setup(e) {
|
|
1058
|
-
const t =
|
|
1058
|
+
const t = w(), r = n(() => [
|
|
1059
1059
|
"or-data-grid-table-extra-row-v3",
|
|
1060
1060
|
...Ft,
|
|
1061
1061
|
...Ht[e.variant]
|
|
@@ -1074,10 +1074,10 @@ function jt(e, t, r, m, h, b) {
|
|
|
1074
1074
|
i(e.$slots, "default")
|
|
1075
1075
|
], 2);
|
|
1076
1076
|
}
|
|
1077
|
-
const Et = /* @__PURE__ */
|
|
1077
|
+
const Et = /* @__PURE__ */ T(Pt, [["render", jt]]), Ut = [
|
|
1078
1078
|
// Layout
|
|
1079
1079
|
"layout-column"
|
|
1080
|
-
], Nt =
|
|
1080
|
+
], Nt = S({
|
|
1081
1081
|
name: "OrDataGrid",
|
|
1082
1082
|
components: {
|
|
1083
1083
|
OrCheckbox: X,
|
|
@@ -1088,7 +1088,7 @@ const Et = /* @__PURE__ */ C(Pt, [["render", jt]]), Ut = [
|
|
|
1088
1088
|
OrDataGridTableContentCell: Re,
|
|
1089
1089
|
OrDataGridTableContentRow: Ee,
|
|
1090
1090
|
OrDataGridTableFooter: et,
|
|
1091
|
-
OrDataGridTableFooterCell:
|
|
1091
|
+
OrDataGridTableFooterCell: We,
|
|
1092
1092
|
OrDataGridTableFooterRow: Ye,
|
|
1093
1093
|
OrDataGridTableExtraRow: Et,
|
|
1094
1094
|
OrDataGridTableHeader: pt,
|
|
@@ -1153,11 +1153,11 @@ const Et = /* @__PURE__ */ C(Pt, [["render", jt]]), Ut = [
|
|
|
1153
1153
|
"root"
|
|
1154
1154
|
],
|
|
1155
1155
|
setup(e, t) {
|
|
1156
|
-
const r =
|
|
1156
|
+
const r = w(), m = w(), h = n(() => [
|
|
1157
1157
|
"or-data-grid-v3",
|
|
1158
1158
|
...Ut
|
|
1159
1159
|
]), b = n(() => ({
|
|
1160
|
-
scrollPaddingInlineStart: `${[...
|
|
1160
|
+
scrollPaddingInlineStart: `${[...C.value.values()].reduce((a, s) => a + s, 0)}px`,
|
|
1161
1161
|
scrollPaddingInlineEnd: `${[...V.value.values()].reduce((a, s) => a + s, 0)}px`
|
|
1162
1162
|
})), $ = n({
|
|
1163
1163
|
get: () => !!e.items.length && e.items.every((a) => D.value.includes(a.id)),
|
|
@@ -1180,7 +1180,7 @@ const Et = /* @__PURE__ */ C(Pt, [["render", jt]]), Ut = [
|
|
|
1180
1180
|
filtering: k.value,
|
|
1181
1181
|
searching: l.value,
|
|
1182
1182
|
sorting: O.value,
|
|
1183
|
-
paging:
|
|
1183
|
+
paging: G.value
|
|
1184
1184
|
});
|
|
1185
1185
|
}
|
|
1186
1186
|
}), k = n({
|
|
@@ -1195,7 +1195,7 @@ const Et = /* @__PURE__ */ C(Pt, [["render", jt]]), Ut = [
|
|
|
1195
1195
|
searching: l.value,
|
|
1196
1196
|
sorting: O.value,
|
|
1197
1197
|
paging: {
|
|
1198
|
-
...
|
|
1198
|
+
...G.value,
|
|
1199
1199
|
offset: 0
|
|
1200
1200
|
}
|
|
1201
1201
|
});
|
|
@@ -1212,7 +1212,7 @@ const Et = /* @__PURE__ */ C(Pt, [["render", jt]]), Ut = [
|
|
|
1212
1212
|
searching: a,
|
|
1213
1213
|
sorting: O.value,
|
|
1214
1214
|
paging: {
|
|
1215
|
-
...
|
|
1215
|
+
...G.value,
|
|
1216
1216
|
offset: 0
|
|
1217
1217
|
}
|
|
1218
1218
|
});
|
|
@@ -1229,12 +1229,12 @@ const Et = /* @__PURE__ */ C(Pt, [["render", jt]]), Ut = [
|
|
|
1229
1229
|
searching: l.value,
|
|
1230
1230
|
sorting: a,
|
|
1231
1231
|
paging: {
|
|
1232
|
-
...
|
|
1232
|
+
...G.value,
|
|
1233
1233
|
offset: 0
|
|
1234
1234
|
}
|
|
1235
1235
|
});
|
|
1236
1236
|
}
|
|
1237
|
-
}),
|
|
1237
|
+
}), G = n({
|
|
1238
1238
|
get: () => {
|
|
1239
1239
|
var a;
|
|
1240
1240
|
return (a = e.modelValue) == null ? void 0 : a.paging;
|
|
@@ -1248,7 +1248,7 @@ const Et = /* @__PURE__ */ C(Pt, [["render", jt]]), Ut = [
|
|
|
1248
1248
|
paging: a
|
|
1249
1249
|
});
|
|
1250
1250
|
}
|
|
1251
|
-
}),
|
|
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
1252
|
var a;
|
|
1253
1253
|
return ((a = m.value) == null ? void 0 : a.currentLimit) || 10;
|
|
1254
1254
|
});
|
|
@@ -1258,10 +1258,10 @@ const Et = /* @__PURE__ */ C(Pt, [["render", jt]]), Ut = [
|
|
|
1258
1258
|
function E(a, s, R) {
|
|
1259
1259
|
switch (R.stickiness) {
|
|
1260
1260
|
case "start":
|
|
1261
|
-
|
|
1261
|
+
C.value.set(a, s), C.value = new Map(C.value), V.value.delete(a), V.value = new Map(V.value);
|
|
1262
1262
|
break;
|
|
1263
1263
|
case "end":
|
|
1264
|
-
|
|
1264
|
+
C.value.delete(a), C.value = new Map(C.value), V.value.set(a, s), V.value = new Map(V.value);
|
|
1265
1265
|
break;
|
|
1266
1266
|
default:
|
|
1267
1267
|
U(a);
|
|
@@ -1292,9 +1292,9 @@ const Et = /* @__PURE__ */ C(Pt, [["render", jt]]), Ut = [
|
|
|
1292
1292
|
e.interactiveRows && t.emit("click:row", a);
|
|
1293
1293
|
}
|
|
1294
1294
|
function U(a) {
|
|
1295
|
-
|
|
1295
|
+
C.value.delete(a), C.value = new Map(C.value), V.value.delete(a), V.value = new Map(V.value);
|
|
1296
1296
|
}
|
|
1297
|
-
function
|
|
1297
|
+
function W(a) {
|
|
1298
1298
|
a.currentTarget.scrollIntoView({ block: "nearest" });
|
|
1299
1299
|
}
|
|
1300
1300
|
return {
|
|
@@ -1315,11 +1315,11 @@ const Et = /* @__PURE__ */ C(Pt, [["render", jt]]), Ut = [
|
|
|
1315
1315
|
filteringModel: k,
|
|
1316
1316
|
searchingModel: l,
|
|
1317
1317
|
sortingModel: O,
|
|
1318
|
-
pagingModel:
|
|
1318
|
+
pagingModel: G,
|
|
1319
1319
|
updateScrollOffset: E,
|
|
1320
1320
|
removeScrollOffset: U,
|
|
1321
1321
|
updateSearchingModel: j,
|
|
1322
|
-
scrollTo:
|
|
1322
|
+
scrollTo: W,
|
|
1323
1323
|
onInput: (a, s, R) => {
|
|
1324
1324
|
a[s] = R, t.emit("update:item", a);
|
|
1325
1325
|
}
|
|
@@ -1327,7 +1327,7 @@ const Et = /* @__PURE__ */ C(Pt, [["render", jt]]), Ut = [
|
|
|
1327
1327
|
}
|
|
1328
1328
|
});
|
|
1329
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"),
|
|
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
1331
|
return o(), v("div", {
|
|
1332
1332
|
ref: "root",
|
|
1333
1333
|
class: u(e.rootStyles)
|
|
@@ -1335,7 +1335,7 @@ function qt(e, t, r, m, h, b) {
|
|
|
1335
1335
|
e.$slots.title || e.features.searching || e.$slots.search || e.$slots.extraActions ? (o(), p(D, {
|
|
1336
1336
|
key: 0,
|
|
1337
1337
|
class: u(["shrink-0"])
|
|
1338
|
-
},
|
|
1338
|
+
}, J({ _: 2 }, [
|
|
1339
1339
|
e.$slots.title ? {
|
|
1340
1340
|
name: "title",
|
|
1341
1341
|
fn: f(() => [
|
|
@@ -1379,9 +1379,9 @@ function qt(e, t, r, m, h, b) {
|
|
|
1379
1379
|
features: e.features
|
|
1380
1380
|
}, {
|
|
1381
1381
|
default: f(() => [
|
|
1382
|
-
M(
|
|
1382
|
+
M(C, null, {
|
|
1383
1383
|
default: f(() => [
|
|
1384
|
-
M(
|
|
1384
|
+
M(G, { variant: e.variant }, {
|
|
1385
1385
|
default: f(() => [
|
|
1386
1386
|
e.features.selecting ? (o(), p(O, {
|
|
1387
1387
|
key: 0,
|
|
@@ -1410,7 +1410,7 @@ function qt(e, t, r, m, h, b) {
|
|
|
1410
1410
|
"onRemove:scrollOffset": e.removeScrollOffset
|
|
1411
1411
|
}, {
|
|
1412
1412
|
default: f(() => [
|
|
1413
|
-
Q(
|
|
1413
|
+
K(Q(a.label), 1)
|
|
1414
1414
|
]),
|
|
1415
1415
|
_: 2
|
|
1416
1416
|
}, 1032, ["modelValue", "column", "features", "onUpdate:scrollOffset", "onRemove:scrollOffset"]))), 128))
|
|
@@ -1425,7 +1425,7 @@ function qt(e, t, r, m, h, b) {
|
|
|
1425
1425
|
notification: e.notification,
|
|
1426
1426
|
variant: e.variant,
|
|
1427
1427
|
onCloseNotification: t[3] || (t[3] = (a) => e.$emit("close-notification"))
|
|
1428
|
-
},
|
|
1428
|
+
}, J({ _: 2 }, [
|
|
1429
1429
|
e.$slots.notification ? {
|
|
1430
1430
|
name: "notification",
|
|
1431
1431
|
fn: f(() => [
|
|
@@ -1525,7 +1525,7 @@ function qt(e, t, r, m, h, b) {
|
|
|
1525
1525
|
column: s,
|
|
1526
1526
|
item: a
|
|
1527
1527
|
}, () => [
|
|
1528
|
-
Q(
|
|
1528
|
+
K(Q(a[s.name]), 1)
|
|
1529
1529
|
])
|
|
1530
1530
|
]),
|
|
1531
1531
|
_: 2
|
|
@@ -1588,14 +1588,14 @@ function qt(e, t, r, m, h, b) {
|
|
|
1588
1588
|
]),
|
|
1589
1589
|
_: 3
|
|
1590
1590
|
})) : g("", !0),
|
|
1591
|
-
e.$slots.actions || e.showSelectingCouter || e.features.paging ? (o(), p(
|
|
1591
|
+
e.$slots.actions || e.showSelectingCouter || e.features.paging ? (o(), p(W, {
|
|
1592
1592
|
key: 3,
|
|
1593
1593
|
class: u(["shrink-0"])
|
|
1594
|
-
},
|
|
1594
|
+
}, J({ _: 2 }, [
|
|
1595
1595
|
e.features.selecting && e.selectingModel.length > 0 ? {
|
|
1596
1596
|
name: "status",
|
|
1597
1597
|
fn: f(() => [
|
|
1598
|
-
Q(
|
|
1598
|
+
K(Q(e.selectingModel.length) + " row(s) selected ", 1)
|
|
1599
1599
|
]),
|
|
1600
1600
|
key: "0"
|
|
1601
1601
|
} : void 0,
|
|
@@ -1622,7 +1622,7 @@ function qt(e, t, r, m, h, b) {
|
|
|
1622
1622
|
]), 1024)) : g("", !0)
|
|
1623
1623
|
], 2);
|
|
1624
1624
|
}
|
|
1625
|
-
const la = /* @__PURE__ */
|
|
1625
|
+
const la = /* @__PURE__ */ T(Nt, [["render", qt]]);
|
|
1626
1626
|
export {
|
|
1627
1627
|
c as D,
|
|
1628
1628
|
la as O,
|
|
@@ -1631,7 +1631,7 @@ export {
|
|
|
1631
1631
|
Re as c,
|
|
1632
1632
|
Ee as d,
|
|
1633
1633
|
Ae as e,
|
|
1634
|
-
|
|
1634
|
+
We as f,
|
|
1635
1635
|
Ye as g,
|
|
1636
1636
|
et as h,
|
|
1637
1637
|
nt as i,
|
|
@@ -1643,4 +1643,4 @@ export {
|
|
|
1643
1643
|
It as o,
|
|
1644
1644
|
Et as p
|
|
1645
1645
|
};
|
|
1646
|
-
//# sourceMappingURL=OrDataGrid-
|
|
1646
|
+
//# sourceMappingURL=OrDataGrid-Dg_tGOqf.mjs.map
|