@onereach/ui-components 26.4.1-beta.5886.0 → 26.4.1-beta.5887.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.
@@ -1,8 +1,8 @@
1
- import { O as le } from "./OrCheckbox-WPBzlvaV.mjs";
2
- import { O as me } from "./OrPagination-BXzDa-Su.mjs";
3
- import { O as fe } from "./OrSearch-CRFuNmg2.mjs";
4
- import { O as ge } from "./OrSkeletonArea.vue_vue_type_script_lang-jgRhbZ0X.mjs";
5
- import { defineComponent as M, ref as S, computed as n, openBlock as o, createElementBlock as p, normalizeClass as u, renderSlot as c, createCommentVNode as h, resolveComponent as m, normalizeStyle as A, createBlock as y, watch as ie, createElementVNode as ne, withModifiers as se, createVNode as W, mergeProps as he, withCtx as v, onMounted as pe, createSlots as _, normalizeProps as ke, guardReactiveProps as be, Fragment as Q, renderList as Y, createTextVNode as x, toDisplayString as ee } from "vue";
1
+ import { O as se } from "./OrCheckbox-WPBzlvaV.mjs";
2
+ import { O as ue } from "./OrPagination-BXzDa-Su.mjs";
3
+ import { O as me } from "./OrSearch-CRFuNmg2.mjs";
4
+ import { O as fe } from "./OrSkeletonArea.vue_vue_type_script_lang-jgRhbZ0X.mjs";
5
+ import { defineComponent as M, ref as S, computed as n, openBlock as o, createElementBlock as h, normalizeClass as f, renderSlot as d, createCommentVNode as k, resolveComponent as g, normalizeStyle as A, createBlock as y, watch as le, createElementVNode as ge, withModifiers as ne, createVNode as W, mergeProps as he, withCtx as v, onMounted as pe, createSlots as _, normalizeProps as ke, guardReactiveProps as be, Fragment as Q, renderList as Y, createTextVNode as x, toDisplayString as ee } from "vue";
6
6
  import { _ as R } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
7
7
  import { O as ve } from "./OrDatePicker-D-Do0tSf.mjs";
8
8
  import { O as ye } from "./OrDateTimePicker-myqJkQxy.mjs";
@@ -54,22 +54,22 @@ const Me = [
54
54
  }
55
55
  }), ze = {
56
56
  key: 1,
57
- class: /* @__PURE__ */ u(["grow"])
57
+ class: /* @__PURE__ */ f(["grow"])
58
58
  };
59
- function He(e, t, s, k, g, i) {
60
- return o(), p("div", {
59
+ function He(e, t, s, b, p, i) {
60
+ return o(), h("div", {
61
61
  ref: "root",
62
- class: u(e.rootStyles)
62
+ class: f(e.rootStyles)
63
63
  }, [
64
- e.$slots.status ? (o(), p("div", {
64
+ e.$slots.status ? (o(), h("div", {
65
65
  key: 0,
66
- class: u(e.statusStyles)
66
+ class: f(e.statusStyles)
67
67
  }, [
68
- c(e.$slots, "status")
69
- ], 2)) : h("", !0),
70
- c(e.$slots, "actions"),
71
- e.$slots.paging ? (o(), p("div", ze)) : h("", !0),
72
- c(e.$slots, "paging")
68
+ d(e.$slots, "status")
69
+ ], 2)) : k("", !0),
70
+ d(e.$slots, "actions"),
71
+ e.$slots.paging ? (o(), h("div", ze)) : k("", !0),
72
+ d(e.$slots, "paging")
73
73
  ], 2);
74
74
  }
75
75
  const Ee = /* @__PURE__ */ R(Ie, [["render", He]]), We = [
@@ -102,22 +102,22 @@ const Ee = /* @__PURE__ */ R(Ie, [["render", He]]), We = [
102
102
  }
103
103
  }), Pe = {
104
104
  key: 1,
105
- class: /* @__PURE__ */ u(["grow"])
105
+ class: /* @__PURE__ */ f(["grow"])
106
106
  };
107
- function Ue(e, t, s, k, g, i) {
108
- return o(), p("div", {
107
+ function Ue(e, t, s, b, p, i) {
108
+ return o(), h("div", {
109
109
  ref: "root",
110
- class: u(e.rootStyles)
110
+ class: f(e.rootStyles)
111
111
  }, [
112
- e.$slots.title ? (o(), p("div", {
112
+ e.$slots.title ? (o(), h("div", {
113
113
  key: 0,
114
- class: u(e.titleStyles)
114
+ class: f(e.titleStyles)
115
115
  }, [
116
- c(e.$slots, "title")
117
- ], 2)) : h("", !0),
118
- e.$slots.searching || e.$slots.extraActions ? (o(), p("div", Pe)) : h("", !0),
119
- c(e.$slots, "searching"),
120
- e.$slots.extraActions ? c(e.$slots, "extraActions", { key: 2 }) : h("", !0)
116
+ d(e.$slots, "title")
117
+ ], 2)) : k("", !0),
118
+ e.$slots.searching || e.$slots.extraActions ? (o(), h("div", Pe)) : k("", !0),
119
+ d(e.$slots, "searching"),
120
+ e.$slots.extraActions ? d(e.$slots, "extraActions", { key: 2 }) : k("", !0)
121
121
  ], 2);
122
122
  }
123
123
  const je = /* @__PURE__ */ R(Ne, [["render", Ue]]);
@@ -167,7 +167,7 @@ const K = "52px", Z = "42px", Le = [
167
167
  ], qe = M({
168
168
  name: "OrDataGridTableContentCell",
169
169
  components: {
170
- OrCheckbox: le,
170
+ OrCheckbox: se,
171
171
  OrDatePicker: ve,
172
172
  OrDateTimePicker: ye,
173
173
  OrInput: Oe,
@@ -215,62 +215,66 @@ const K = "52px", Z = "42px", Le = [
215
215
  "root"
216
216
  ],
217
217
  setup(e, t) {
218
- const s = S(), k = n(() => {
219
- var f, D, I, G;
218
+ const s = S(), b = n(() => {
219
+ var c, w, I, G;
220
220
  return [
221
221
  "or-data-grid-table-content-cell-v3",
222
222
  ...Le,
223
- ...(f = e.column) != null && f.stickiness ? ["overflow-hidden", `sticky-${e.column.stickiness}`] : [],
224
- ...(D = e.features) != null && D.resizing && ((I = e.column) != null && I.name) && ((G = e.column) == null ? void 0 : G.resizing) !== !1 ? ["resizable"] : []
223
+ ...(c = e.column) != null && c.stickiness ? ["overflow-hidden", `sticky-${e.column.stickiness}`] : [],
224
+ ...(w = e.features) != null && w.resizing && ((I = e.column) != null && I.name) && ((G = e.column) == null ? void 0 : G.resizing) !== !1 ? ["resizable"] : []
225
225
  ];
226
- }), g = n(() => {
226
+ }), p = n(() => {
227
+ var w;
228
+ const c = {
229
+ justifyContent: ((w = e.column) == null ? void 0 : w.alignment) || (e.column ? void 0 : "center")
230
+ };
227
231
  if (e.column)
228
232
  switch (e.column.stickiness) {
229
233
  case "start":
230
- return {
234
+ Object.assign(c, {
231
235
  position: "sticky",
232
236
  insetInlineStart: `${e.stickyOffset}px`,
233
237
  zIndex: "30"
234
- };
238
+ });
239
+ break;
235
240
  case "end":
236
- return {
241
+ Object.assign(c, {
237
242
  position: "sticky",
238
243
  insetInlineEnd: `${e.stickyOffset}px`,
239
244
  zIndex: "30"
240
- };
241
- default:
242
- return {};
245
+ });
246
+ break;
243
247
  }
244
- return {};
248
+ return c;
245
249
  }), i = n(() => {
246
- var G, N, F, r, b;
247
- const f = ((G = e.column) == null ? void 0 : G.wrapping) ?? (e.variant === O.Dynamic && !((N = e.column) != null && N.control)), D = ((r = (F = e.column) == null ? void 0 : F.control) == null ? void 0 : r.type) === "tags", I = (b = e.column) == null ? void 0 : b.fitContent;
250
+ var G, N, F, r, u;
251
+ const c = ((G = e.column) == null ? void 0 : G.wrapping) ?? (e.variant === O.Dynamic && !((N = e.column) != null && N.control)), w = ((r = (F = e.column) == null ? void 0 : F.control) == null ? void 0 : r.type) === "tags", I = (u = e.column) == null ? void 0 : u.fitContent;
248
252
  return [
249
253
  "layout-row items-center w-full min-w-0",
250
- ...D ? ["overflow-hidden"] : [],
251
- ...Ae.filter((w) => w !== "truncate"),
252
- ...f ? ["whitespace-pre-wrap break-words"] : I ? ["overflow-hidden"] : ["truncate"]
254
+ ...w ? ["overflow-hidden"] : [],
255
+ ...Ae.filter((D) => D !== "truncate"),
256
+ ...c ? ["whitespace-pre-wrap break-words"] : I ? ["overflow-hidden"] : ["truncate"]
253
257
  ];
254
258
  }), T = n(() => {
255
- var f, D;
259
+ var c, w;
256
260
  return {
257
- minWidth: e.column && e.column.minWidth || (((f = e.column) == null ? void 0 : f.name) === "_check" ? Z : K),
261
+ minWidth: e.column && e.column.minWidth || (((c = e.column) == null ? void 0 : c.name) === "_check" ? Z : K),
258
262
  maxWidth: e.column && e.column.maxWidth,
259
- justifyContent: ((D = e.column) == null ? void 0 : D.alignment) || (e.column ? void 0 : "center")
263
+ justifyContent: ((w = e.column) == null ? void 0 : w.alignment) || (e.column ? void 0 : "center")
260
264
  };
261
265
  }), E = n({
262
266
  get: () => e.modelValue,
263
- set: (f) => {
264
- t.emit("input", f);
267
+ set: (c) => {
268
+ t.emit("input", c);
265
269
  }
266
270
  }), C = n(() => {
267
- var f;
268
- return (f = e.column) == null ? void 0 : f.control;
271
+ var c;
272
+ return (c = e.column) == null ? void 0 : c.control;
269
273
  });
270
274
  return {
271
275
  root: s,
272
- rootStyles: k,
273
- rootInlineStyles: g,
276
+ rootStyles: b,
277
+ rootInlineStyles: p,
274
278
  contentStyles: i,
275
279
  contentInlineStyles: T,
276
280
  model: E,
@@ -279,16 +283,16 @@ const K = "52px", Z = "42px", Le = [
279
283
  };
280
284
  }
281
285
  });
282
- function Be(e, t, s, k, g, i) {
283
- const T = m("OrInput"), E = m("OrRating"), C = m("OrSelect"), f = m("OrCheckbox"), D = m("OrSwitch"), I = m("OrDatePicker"), G = m("OrTimePicker"), N = m("OrDateTimePicker"), F = m("OrTagInput");
284
- return o(), p("div", {
286
+ function Be(e, t, s, b, p, i) {
287
+ const T = g("OrInput"), E = g("OrRating"), C = g("OrSelect"), c = g("OrCheckbox"), w = g("OrSwitch"), I = g("OrDatePicker"), G = g("OrTimePicker"), N = g("OrDateTimePicker"), F = g("OrTagInput");
288
+ return o(), h("div", {
285
289
  ref: "root",
286
- class: u(e.rootStyles),
290
+ class: f(e.rootStyles),
287
291
  style: A(e.rootInlineStyles)
288
292
  }, [
289
- e.override ? c(e.$slots, "default", { key: 0 }) : e.control ? (o(), p("div", {
293
+ e.override ? d(e.$slots, "default", { key: 0 }) : e.control ? (o(), h("div", {
290
294
  key: 1,
291
- class: u(e.contentStyles),
295
+ class: f(e.contentStyles),
292
296
  style: A(e.contentInlineStyles)
293
297
  }, [
294
298
  e.control.type === "text" ? (o(), y(T, {
@@ -297,19 +301,19 @@ function Be(e, t, s, k, g, i) {
297
301
  "onUpdate:modelValue": t[0] || (t[0] = (r) => e.model = r),
298
302
  type: "text",
299
303
  variant: "embedded"
300
- }, null, 8, ["modelValue"])) : h("", !0),
304
+ }, null, 8, ["modelValue"])) : k("", !0),
301
305
  e.control.type === "number" ? (o(), y(T, {
302
306
  key: 1,
303
307
  modelValue: e.model,
304
308
  "onUpdate:modelValue": t[1] || (t[1] = (r) => e.model = r),
305
309
  type: "number",
306
310
  variant: "embedded"
307
- }, null, 8, ["modelValue"])) : h("", !0),
311
+ }, null, 8, ["modelValue"])) : k("", !0),
308
312
  e.control.type === "rating" ? (o(), y(E, {
309
313
  key: 2,
310
314
  modelValue: e.model,
311
315
  "onUpdate:modelValue": t[2] || (t[2] = (r) => e.model = r)
312
- }, null, 8, ["modelValue"])) : h("", !0),
316
+ }, null, 8, ["modelValue"])) : k("", !0),
313
317
  e.control.type === "select" ? (o(), y(C, {
314
318
  key: 3,
315
319
  modelValue: e.model,
@@ -317,51 +321,51 @@ function Be(e, t, s, k, g, i) {
317
321
  options: e.control.options,
318
322
  variant: "embedded",
319
323
  anchor: e.root
320
- }, null, 8, ["modelValue", "options", "anchor"])) : h("", !0),
321
- e.control.type === "checkbox" ? (o(), y(f, {
324
+ }, null, 8, ["modelValue", "options", "anchor"])) : k("", !0),
325
+ e.control.type === "checkbox" ? (o(), y(c, {
322
326
  key: 4,
323
327
  modelValue: e.model,
324
328
  "onUpdate:modelValue": t[4] || (t[4] = (r) => e.model = r)
325
- }, null, 8, ["modelValue"])) : h("", !0),
326
- e.control.type === "switch" ? (o(), y(D, {
329
+ }, null, 8, ["modelValue"])) : k("", !0),
330
+ e.control.type === "switch" ? (o(), y(w, {
327
331
  key: 5,
328
332
  modelValue: e.model,
329
333
  "onUpdate:modelValue": t[5] || (t[5] = (r) => e.model = r)
330
- }, null, 8, ["modelValue"])) : h("", !0),
334
+ }, null, 8, ["modelValue"])) : k("", !0),
331
335
  e.control.type === "date" ? (o(), y(I, {
332
336
  key: 6,
333
337
  modelValue: e.model,
334
338
  "onUpdate:modelValue": t[6] || (t[6] = (r) => e.model = r),
335
339
  variant: "embedded",
336
340
  anchor: e.root
337
- }, null, 8, ["modelValue", "anchor"])) : h("", !0),
341
+ }, null, 8, ["modelValue", "anchor"])) : k("", !0),
338
342
  e.control.type === "time" ? (o(), y(G, {
339
343
  key: 7,
340
344
  modelValue: e.model,
341
345
  "onUpdate:modelValue": t[7] || (t[7] = (r) => e.model = r),
342
346
  variant: "embedded",
343
347
  anchor: e.root
344
- }, null, 8, ["modelValue", "anchor"])) : h("", !0),
348
+ }, null, 8, ["modelValue", "anchor"])) : k("", !0),
345
349
  e.control.type === "datetime" ? (o(), y(N, {
346
350
  key: 8,
347
351
  modelValue: e.model,
348
352
  "onUpdate:modelValue": t[8] || (t[8] = (r) => e.model = r),
349
353
  variant: "embedded",
350
354
  anchor: e.root
351
- }, null, 8, ["modelValue", "anchor"])) : h("", !0),
355
+ }, null, 8, ["modelValue", "anchor"])) : k("", !0),
352
356
  e.control.type === "tags" ? (o(), y(F, {
353
357
  key: 9,
354
358
  modelValue: e.model,
355
359
  "onUpdate:modelValue": t[9] || (t[9] = (r) => e.model = r),
356
360
  variant: "embedded",
357
- class: u(["grow min-w-0"])
358
- }, null, 8, ["modelValue"])) : h("", !0)
359
- ], 6)) : (o(), p("div", {
361
+ class: f(["grow min-w-0"])
362
+ }, null, 8, ["modelValue"])) : k("", !0)
363
+ ], 6)) : (o(), h("div", {
360
364
  key: 2,
361
- class: u(e.contentStyles),
365
+ class: f(e.contentStyles),
362
366
  style: A(e.contentInlineStyles)
363
367
  }, [
364
- c(e.$slots, "default")
368
+ d(e.$slots, "default")
365
369
  ], 6))
366
370
  ], 6);
367
371
  }
@@ -435,13 +439,13 @@ const Ke = /* @__PURE__ */ R(qe, [["render", Be]]), Xe = [
435
439
  };
436
440
  }
437
441
  }), Ye = ["selected"];
438
- function Ze(e, t, s, k, g, i) {
439
- return o(), p("div", {
442
+ function Ze(e, t, s, b, p, i) {
443
+ return o(), h("div", {
440
444
  ref: "root",
441
- class: u(e.rootStyles),
445
+ class: f(e.rootStyles),
442
446
  selected: e.selected
443
447
  }, [
444
- c(e.$slots, "default")
448
+ d(e.$slots, "default")
445
449
  ], 10, Ye);
446
450
  }
447
451
  const _e = /* @__PURE__ */ R(Qe, [["render", Ze]]), xe = [
@@ -463,12 +467,12 @@ const _e = /* @__PURE__ */ R(Qe, [["render", Ze]]), xe = [
463
467
  };
464
468
  }
465
469
  });
466
- function tt(e, t, s, k, g, i) {
467
- return o(), p("div", {
470
+ function tt(e, t, s, b, p, i) {
471
+ return o(), h("div", {
468
472
  ref: "root",
469
- class: u(e.rootStyles)
473
+ class: f(e.rootStyles)
470
474
  }, [
471
- c(e.$slots, "default")
475
+ d(e.$slots, "default")
472
476
  ], 2);
473
477
  }
474
478
  const at = /* @__PURE__ */ R(et, [["render", tt]]), rt = [
@@ -497,12 +501,12 @@ const at = /* @__PURE__ */ R(et, [["render", tt]]), rt = [
497
501
  };
498
502
  }
499
503
  });
500
- function nt(e, t, s, k, g, i) {
501
- return o(), p("div", {
504
+ function nt(e, t, s, b, p, i) {
505
+ return o(), h("div", {
502
506
  ref: "root",
503
- class: u(e.rootStyles)
507
+ class: f(e.rootStyles)
504
508
  }, [
505
- c(e.$slots, "default")
509
+ d(e.$slots, "default")
506
510
  ], 2);
507
511
  }
508
512
  const st = /* @__PURE__ */ R(ot, [["render", nt]]), lt = [
@@ -558,12 +562,12 @@ const st = /* @__PURE__ */ R(ot, [["render", nt]]), lt = [
558
562
  };
559
563
  }
560
564
  });
561
- function ct(e, t, s, k, g, i) {
562
- return o(), p("div", {
565
+ function ct(e, t, s, b, p, i) {
566
+ return o(), h("div", {
563
567
  ref: "root",
564
- class: u(e.rootStyles)
568
+ class: f(e.rootStyles)
565
569
  }, [
566
- c(e.$slots, "default")
570
+ d(e.$slots, "default")
567
571
  ], 2);
568
572
  }
569
573
  const ut = /* @__PURE__ */ R(dt, [["render", ct]]), mt = [
@@ -585,12 +589,12 @@ const ut = /* @__PURE__ */ R(dt, [["render", ct]]), mt = [
585
589
  };
586
590
  }
587
591
  });
588
- function gt(e, t, s, k, g, i) {
589
- return o(), p("div", {
592
+ function gt(e, t, s, b, p, i) {
593
+ return o(), h("div", {
590
594
  ref: "root",
591
- class: u(e.rootStyles)
595
+ class: f(e.rootStyles)
592
596
  }, [
593
- c(e.$slots, "default")
597
+ d(e.$slots, "default")
594
598
  ], 2);
595
599
  }
596
600
  const ht = /* @__PURE__ */ R(ft, [["render", gt]]), pt = [
@@ -654,6 +658,10 @@ const ht = /* @__PURE__ */ R(ft, [["render", gt]]), pt = [
654
658
  stickyOffset: {
655
659
  type: Number,
656
660
  default: 0
661
+ },
662
+ override: {
663
+ type: Boolean,
664
+ default: !1
657
665
  }
658
666
  },
659
667
  emits: [
@@ -666,12 +674,12 @@ const ht = /* @__PURE__ */ R(ft, [["render", gt]]), pt = [
666
674
  "root"
667
675
  ],
668
676
  setup(e, t) {
669
- const s = S(), k = n(() => {
670
- var r, b, w;
671
- return !!((r = e.features) != null && r.sorting) && !!((b = e.column) != null && b.name) && ((w = e.column) == null ? void 0 : w.sorting) !== !1;
672
- }), g = n(() => {
673
- var r, b, w;
674
- return !!((r = e.features) != null && r.resizing) && !!((b = e.column) != null && b.name) && ((w = e.column) == null ? void 0 : w.resizing) !== !1;
677
+ const s = S(), b = n(() => {
678
+ var r, u, D;
679
+ return !!((r = e.features) != null && r.sorting) && !!((u = e.column) != null && u.name) && ((D = e.column) == null ? void 0 : D.sorting) !== !1;
680
+ }), p = n(() => {
681
+ var r, u, D;
682
+ return !!((r = e.features) != null && r.resizing) && !!((u = e.column) != null && u.name) && ((D = e.column) == null ? void 0 : D.resizing) !== !1;
675
683
  }), i = n(() => {
676
684
  var r;
677
685
  return [
@@ -679,73 +687,75 @@ const ht = /* @__PURE__ */ R(ft, [["render", gt]]), pt = [
679
687
  "relative",
680
688
  ...pt,
681
689
  ...(r = e.column) != null && r.stickiness ? ["overflow-hidden", `sticky-${e.column.stickiness}`] : [],
682
- ...g.value ? ["resizable"] : [],
683
- ...k.value ? ["interactivity-click"] : []
690
+ ...p.value ? ["resizable"] : [],
691
+ ...b.value ? ["interactivity-click"] : []
684
692
  ];
685
693
  }), T = n(() => [
686
694
  "or-data-grid-table-header-cell-resize-handle-v3",
687
695
  ...kt
688
696
  ]), E = n(() => {
689
- var r, b, w;
697
+ var r, u, D;
690
698
  return {
691
- minWidth: ((r = e.column) == null ? void 0 : r.minWidth) || (((b = e.column) == null ? void 0 : b.name) === "_check" ? Z : K),
692
- maxWidth: (w = e.column) == null ? void 0 : w.maxWidth,
699
+ minWidth: ((r = e.column) == null ? void 0 : r.minWidth) || (((u = e.column) == null ? void 0 : u.name) === "_check" ? Z : K),
700
+ maxWidth: (D = e.column) == null ? void 0 : D.maxWidth,
693
701
  overflow: "hidden"
694
702
  };
695
703
  }), C = n(() => {
704
+ var u;
705
+ const r = {
706
+ justifyContent: ((u = e.column) == null ? void 0 : u.alignment) || (e.column ? void 0 : "center")
707
+ };
696
708
  if (e.column)
697
709
  switch (e.column.stickiness) {
698
710
  case "start":
699
- return {
711
+ Object.assign(r, {
700
712
  position: "sticky",
701
713
  insetInlineStart: `${e.stickyOffset}px`,
702
714
  zIndex: "120"
703
- };
715
+ });
716
+ break;
704
717
  case "end":
705
- return {
718
+ Object.assign(r, {
706
719
  position: "sticky",
707
720
  insetInlineEnd: `${e.stickyOffset}px`,
708
721
  zIndex: "120"
709
- };
710
- default:
711
- return {};
722
+ });
723
+ break;
712
724
  }
713
- return {
714
- justifyContent: "center"
715
- };
716
- }), f = n({
725
+ return r;
726
+ }), c = n({
717
727
  get: () => {
718
- var r, b;
719
- if (k.value)
720
- return ((r = e.modelValue) == null ? void 0 : r.column) === ((b = e.column) == null ? void 0 : b.name) ? e.modelValue : void 0;
728
+ var r, u;
729
+ if (b.value)
730
+ return ((r = e.modelValue) == null ? void 0 : r.column) === ((u = e.column) == null ? void 0 : u.name) ? e.modelValue : void 0;
721
731
  },
722
732
  set: (r) => {
723
733
  t.emit("update:modelValue", r);
724
734
  }
725
- }), D = n(() => {
735
+ }), w = n(() => {
726
736
  var r;
727
737
  return [
728
738
  "layout-row items-center w-full min-w-0",
729
739
  ...((r = e.column) == null ? void 0 : r.alignment) === "end" ? ["flex-row-reverse"] : []
730
740
  ];
731
741
  }), I = n(() => {
732
- var r;
742
+ var r, u;
733
743
  return {
734
- justifyContent: (r = e.column) == null ? void 0 : r.alignment
744
+ justifyContent: ((r = e.column) == null ? void 0 : r.alignment) === "end" || (u = e.column) == null ? void 0 : u.alignment
735
745
  };
736
746
  });
737
747
  function G() {
738
748
  var r;
739
- if (k.value)
740
- if (f.value)
741
- f.value = {
742
- ...f.value,
743
- direction: f.value.direction === "asc" ? "desc" : "asc"
749
+ if (b.value)
750
+ if (c.value)
751
+ c.value = {
752
+ ...c.value,
753
+ direction: c.value.direction === "asc" ? "desc" : "asc"
744
754
  };
745
755
  else {
746
756
  if (!e.column)
747
757
  throw new Error("[OrDataGridTableHeaderCell]: `column` must be specified.");
748
- f.value = {
758
+ c.value = {
749
759
  column: ((r = e.column) == null ? void 0 : r.name) || "_check",
750
760
  direction: "asc"
751
761
  };
@@ -753,16 +763,16 @@ const ht = /* @__PURE__ */ R(ft, [["render", gt]]), pt = [
753
763
  }
754
764
  function N(r) {
755
765
  var q;
756
- const b = r.pageX, w = ((q = s.value) == null ? void 0 : q.offsetWidth) || 0, V = (X) => {
757
- var B, l, d;
758
- const J = X.pageX - b;
759
- let U = Math.max(0, w + J);
766
+ const u = r.pageX, D = ((q = s.value) == null ? void 0 : q.offsetWidth) || 0, V = (X) => {
767
+ var B, l, m;
768
+ const J = X.pageX - u;
769
+ let U = Math.max(0, D + J);
760
770
  const L = ((B = e.column) == null ? void 0 : B.minWidth) || (((l = e.column) == null ? void 0 : l.name) === "_check" ? Z : K);
761
771
  if (L && (L.endsWith("px") || !isNaN(Number(L)))) {
762
772
  const j = parseInt(L, 10);
763
773
  U = Math.max(U, j);
764
774
  }
765
- if ((d = e.column) != null && d.maxWidth && (e.column.maxWidth.endsWith("px") || !isNaN(Number(e.column.maxWidth)))) {
775
+ if ((m = e.column) != null && m.maxWidth && (e.column.maxWidth.endsWith("px") || !isNaN(Number(e.column.maxWidth)))) {
766
776
  const j = parseInt(e.column.maxWidth, 10);
767
777
  U = Math.min(U, j);
768
778
  }
@@ -773,7 +783,7 @@ const ht = /* @__PURE__ */ R(ft, [["render", gt]]), pt = [
773
783
  document.addEventListener("mousemove", V), document.addEventListener("mouseup", z);
774
784
  }
775
785
  const { width: F } = Ge(s, void 0, { box: "border-box" });
776
- return ie([
786
+ return le([
777
787
  s,
778
788
  F,
779
789
  () => {
@@ -782,58 +792,59 @@ const ht = /* @__PURE__ */ R(ft, [["render", gt]]), pt = [
782
792
  }
783
793
  ], ([
784
794
  r,
785
- b
795
+ u
786
796
  ], [
787
- w
797
+ D
788
798
  ]) => {
789
- w && w !== r && t.emit("remove:scrollOffset", w), t.emit("update:scrollOffset", r, b, e.column);
799
+ D && D !== r && t.emit("remove:scrollOffset", D), t.emit("update:scrollOffset", r, u, e.column);
790
800
  }), {
791
801
  root: s,
792
802
  rootStyles: i,
793
803
  rootInlineStyles: C,
794
- headerContentStyles: D,
804
+ headerContentStyles: w,
795
805
  headerContentInlineStyles: I,
796
806
  wrapInlineStyle: E,
797
807
  resizeHandleStyles: T,
798
- isSortable: k,
799
- isResizable: g,
800
- model: f,
808
+ isSortable: b,
809
+ isResizable: p,
810
+ model: c,
801
811
  toggleSorting: G,
802
812
  onResizeStart: N,
803
813
  DATA_GRID_DEFAULT_MIN_WIDTH: K
804
814
  };
805
815
  }
806
816
  });
807
- function vt(e, t, s, k, g, i) {
808
- const T = m("OrIcon");
809
- return o(), p("div", {
817
+ function vt(e, t, s, b, p, i) {
818
+ const T = g("OrIcon");
819
+ return o(), h("div", {
810
820
  ref: "root",
811
- class: u(e.rootStyles),
821
+ class: f(e.rootStyles),
812
822
  style: A(e.rootInlineStyles),
813
823
  onClick: t[2] || (t[2] = (E) => e.toggleSorting())
814
824
  }, [
815
- ne("div", {
816
- class: u(e.headerContentStyles),
825
+ e.override ? d(e.$slots, "default", { key: 0 }) : (o(), h("div", {
826
+ key: 1,
827
+ class: f(e.headerContentStyles),
817
828
  style: A(e.headerContentInlineStyles)
818
829
  }, [
819
- ne("div", {
820
- class: u(["truncate"]),
830
+ ge("div", {
831
+ class: f(["truncate"]),
821
832
  style: A(e.wrapInlineStyle)
822
833
  }, [
823
- c(e.$slots, "default")
834
+ d(e.$slots, "default")
824
835
  ], 4),
825
836
  e.model ? (o(), y(T, {
826
837
  key: 0,
827
838
  icon: e.model.direction === "asc" ? "arrow_upward" : "arrow_downward"
828
- }, null, 8, ["icon"])) : h("", !0)
829
- ], 6),
830
- e.isResizable ? (o(), p("div", {
831
- key: 0,
832
- class: u(e.resizeHandleStyles),
833
- onMousedown: t[0] || (t[0] = se((...E) => e.onResizeStart && e.onResizeStart(...E), ["stop", "prevent"])),
834
- onClick: t[1] || (t[1] = se(() => {
839
+ }, null, 8, ["icon"])) : k("", !0)
840
+ ], 6)),
841
+ e.isResizable ? (o(), h("div", {
842
+ key: 2,
843
+ class: f(e.resizeHandleStyles),
844
+ onMousedown: t[0] || (t[0] = ne((...E) => e.onResizeStart && e.onResizeStart(...E), ["stop", "prevent"])),
845
+ onClick: t[1] || (t[1] = ne(() => {
835
846
  }, ["stop"]))
836
- }, null, 34)) : h("", !0)
847
+ }, null, 34)) : k("", !0)
837
848
  ], 6);
838
849
  }
839
850
  const yt = /* @__PURE__ */ R(bt, [["render", vt]]), Ot = [
@@ -888,12 +899,12 @@ const yt = /* @__PURE__ */ R(bt, [["render", vt]]), Ot = [
888
899
  };
889
900
  }
890
901
  });
891
- function Dt(e, t, s, k, g, i) {
892
- return o(), p("div", {
902
+ function Dt(e, t, s, b, p, i) {
903
+ return o(), h("div", {
893
904
  ref: "root",
894
- class: u(e.rootStyles)
905
+ class: f(e.rootStyles)
895
906
  }, [
896
- c(e.$slots, "default")
907
+ d(e.$slots, "default")
897
908
  ], 2);
898
909
  }
899
910
  const St = /* @__PURE__ */ R(wt, [["render", Dt]]), Tt = [
@@ -915,12 +926,12 @@ const St = /* @__PURE__ */ R(wt, [["render", Dt]]), Tt = [
915
926
  };
916
927
  }
917
928
  });
918
- function Gt(e, t, s, k, g, i) {
919
- return o(), p("div", {
929
+ function Gt(e, t, s, b, p, i) {
930
+ return o(), h("div", {
920
931
  ref: "root",
921
- class: u(e.rootStyles)
932
+ class: f(e.rootStyles)
922
933
  }, [
923
- c(e.$slots, "default")
934
+ d(e.$slots, "default")
924
935
  ], 2);
925
936
  }
926
937
  const Vt = /* @__PURE__ */ R(Ct, [["render", Gt]]), Mt = [
@@ -977,12 +988,12 @@ const Vt = /* @__PURE__ */ R(Ct, [["render", Gt]]), Mt = [
977
988
  };
978
989
  }
979
990
  });
980
- function zt(e, t, s, k, g, i) {
981
- return o(), p("div", {
991
+ function zt(e, t, s, b, p, i) {
992
+ return o(), h("div", {
982
993
  ref: "root",
983
- class: u(e.rootStyles)
994
+ class: f(e.rootStyles)
984
995
  }, [
985
- c(e.$slots, "default")
996
+ d(e.$slots, "default")
986
997
  ], 2);
987
998
  }
988
999
  const Ht = /* @__PURE__ */ R(It, [["render", zt]]), Et = [
@@ -1012,29 +1023,29 @@ const Ht = /* @__PURE__ */ R(It, [["render", zt]]), Et = [
1012
1023
  const t = S(), s = n(() => [
1013
1024
  "or-data-grid-table-v3",
1014
1025
  ...Et
1015
- ]), k = n(() => {
1016
- const g = e.columns.map((i) => {
1026
+ ]), b = n(() => {
1027
+ const p = e.columns.map((i) => {
1017
1028
  if (i.width && (i.width.includes("minmax") || i.width.includes("calc")))
1018
1029
  return i.width;
1019
1030
  const T = i.width ?? "1fr", E = i.minWidth || (i.width ? K : i.fitContent || i.stickiness ? "max-content" : "120px"), C = i.maxWidth || (i.width ? T === "max-content" ? "max-content" : T : i.fitContent || i.minWidth || i.stickiness ? "max-content" : "1fr");
1020
1031
  return i.fitContent ? "max-content" : T.endsWith("px") ? T : `minmax(${E}, ${C})`;
1021
1032
  });
1022
- return e.features.selecting ? { gridTemplateColumns: `${Z} ${g.join(" ")}` } : { gridTemplateColumns: g.join(" ") };
1033
+ return e.features.selecting ? { gridTemplateColumns: `${Z} ${p.join(" ")}` } : { gridTemplateColumns: p.join(" ") };
1023
1034
  });
1024
1035
  return {
1025
1036
  root: t,
1026
1037
  rootStyles: s,
1027
- rootInlineStyles: k
1038
+ rootInlineStyles: b
1028
1039
  };
1029
1040
  }
1030
1041
  });
1031
- function Ft(e, t, s, k, g, i) {
1032
- return o(), p("div", {
1042
+ function Ft(e, t, s, b, p, i) {
1043
+ return o(), h("div", {
1033
1044
  ref: "root",
1034
- class: u(e.rootStyles),
1045
+ class: f(e.rootStyles),
1035
1046
  style: A(e.rootInlineStyles)
1036
1047
  }, [
1037
- c(e.$slots, "default")
1048
+ d(e.$slots, "default")
1038
1049
  ], 6);
1039
1050
  }
1040
1051
  const Nt = /* @__PURE__ */ R(Wt, [["render", Ft]]), Pt = [
@@ -1060,12 +1071,12 @@ const Nt = /* @__PURE__ */ R(Wt, [["render", Ft]]), Pt = [
1060
1071
  };
1061
1072
  }
1062
1073
  });
1063
- function jt(e, t, s, k, g, i) {
1064
- return o(), p("div", {
1074
+ function jt(e, t, s, b, p, i) {
1075
+ return o(), h("div", {
1065
1076
  ref: "root",
1066
- class: u(e.rootStyles)
1077
+ class: f(e.rootStyles)
1067
1078
  }, [
1068
- c(e.$slots, "default")
1079
+ d(e.$slots, "default")
1069
1080
  ], 2);
1070
1081
  }
1071
1082
  const Lt = /* @__PURE__ */ R(Ut, [["render", jt]]), At = [
@@ -1117,17 +1128,17 @@ const Lt = /* @__PURE__ */ R(Ut, [["render", jt]]), At = [
1117
1128
  };
1118
1129
  }
1119
1130
  });
1120
- function Kt(e, t, s, k, g, i) {
1121
- const T = m("OrNotification");
1122
- return o(), p("div", {
1123
- class: u(e.rootStyles)
1131
+ function Kt(e, t, s, b, p, i) {
1132
+ const T = g("OrNotification");
1133
+ return o(), h("div", {
1134
+ class: f(e.rootStyles)
1124
1135
  }, [
1125
1136
  W(T, he(e.notification, {
1126
1137
  class: "rounded-0 shadow-none",
1127
1138
  onClose: t[0] || (t[0] = (E) => e.$emit("close-notification"))
1128
1139
  }), {
1129
1140
  default: v(() => [
1130
- e.$slots.notification ? c(e.$slots, "notification", { key: 0 }) : h("", !0)
1141
+ e.$slots.notification ? d(e.$slots, "notification", { key: 0 }) : k("", !0)
1131
1142
  ]),
1132
1143
  _: 3
1133
1144
  }, 16)
@@ -1186,12 +1197,12 @@ const Xt = /* @__PURE__ */ R(Bt, [["render", Kt]]), Jt = [
1186
1197
  };
1187
1198
  }
1188
1199
  });
1189
- function Zt(e, t, s, k, g, i) {
1190
- return o(), p("div", {
1200
+ function Zt(e, t, s, b, p, i) {
1201
+ return o(), h("div", {
1191
1202
  ref: "root",
1192
- class: u(e.rootStyles)
1203
+ class: f(e.rootStyles)
1193
1204
  }, [
1194
- c(e.$slots, "default")
1205
+ d(e.$slots, "default")
1195
1206
  ], 2);
1196
1207
  }
1197
1208
  const _t = /* @__PURE__ */ R(Yt, [["render", Zt]]), xt = [
@@ -1200,7 +1211,7 @@ const _t = /* @__PURE__ */ R(Yt, [["render", Zt]]), xt = [
1200
1211
  ], ea = M({
1201
1212
  name: "OrDataGrid",
1202
1213
  components: {
1203
- OrCheckbox: le,
1214
+ OrCheckbox: se,
1204
1215
  OrDataGridFooter: Ee,
1205
1216
  OrDataGridHeader: je,
1206
1217
  OrDataGridTable: Nt,
@@ -1217,9 +1228,9 @@ const _t = /* @__PURE__ */ R(Yt, [["render", Zt]]), xt = [
1217
1228
  OrDataGridTablePlaceholder: Ht,
1218
1229
  OrDataGridToolbar: Lt,
1219
1230
  OrDataGridNotification: Xt,
1220
- OrPagination: me,
1221
- OrSearch: fe,
1222
- OrSkeletonText: ge
1231
+ OrPagination: ue,
1232
+ OrSearch: me,
1233
+ OrSkeletonText: fe
1223
1234
  },
1224
1235
  model: {
1225
1236
  prop: "modelValue",
@@ -1273,7 +1284,7 @@ const _t = /* @__PURE__ */ R(Yt, [["render", Zt]]), xt = [
1273
1284
  "root"
1274
1285
  ],
1275
1286
  setup(e, t) {
1276
- const s = S(), k = S(), g = S(), i = n(() => [
1287
+ const s = S(), b = S(), p = S(), i = n(() => [
1277
1288
  "or-data-grid-v3",
1278
1289
  ...xt
1279
1290
  ]), T = n(() => ({
@@ -1297,13 +1308,13 @@ const _t = /* @__PURE__ */ R(Yt, [["render", Zt]]), xt = [
1297
1308
  set: (a) => {
1298
1309
  t.emit("update:modelValue", {
1299
1310
  selecting: a,
1300
- filtering: f.value,
1301
- searching: D.value,
1311
+ filtering: c.value,
1312
+ searching: w.value,
1302
1313
  sorting: I.value,
1303
1314
  paging: G.value
1304
1315
  });
1305
1316
  }
1306
- }), f = n({
1317
+ }), c = n({
1307
1318
  get: () => {
1308
1319
  var a;
1309
1320
  return (a = e.modelValue) == null ? void 0 : a.filtering;
@@ -1312,7 +1323,7 @@ const _t = /* @__PURE__ */ R(Yt, [["render", Zt]]), xt = [
1312
1323
  t.emit("update:modelValue", {
1313
1324
  selecting: C.value,
1314
1325
  filtering: a,
1315
- searching: D.value,
1326
+ searching: w.value,
1316
1327
  sorting: I.value,
1317
1328
  paging: {
1318
1329
  ...G.value,
@@ -1320,7 +1331,7 @@ const _t = /* @__PURE__ */ R(Yt, [["render", Zt]]), xt = [
1320
1331
  }
1321
1332
  });
1322
1333
  }
1323
- }), D = n({
1334
+ }), w = n({
1324
1335
  get: () => {
1325
1336
  var a;
1326
1337
  return (a = e.modelValue) == null ? void 0 : a.searching;
@@ -1328,7 +1339,7 @@ const _t = /* @__PURE__ */ R(Yt, [["render", Zt]]), xt = [
1328
1339
  set: (a) => {
1329
1340
  t.emit("update:modelValue", {
1330
1341
  selecting: C.value,
1331
- filtering: f.value,
1342
+ filtering: c.value,
1332
1343
  searching: a,
1333
1344
  sorting: I.value,
1334
1345
  paging: {
@@ -1345,8 +1356,8 @@ const _t = /* @__PURE__ */ R(Yt, [["render", Zt]]), xt = [
1345
1356
  set: (a) => {
1346
1357
  t.emit("update:modelValue", {
1347
1358
  selecting: C.value,
1348
- filtering: f.value,
1349
- searching: D.value,
1359
+ filtering: c.value,
1360
+ searching: w.value,
1350
1361
  sorting: a,
1351
1362
  paging: {
1352
1363
  ...G.value,
@@ -1362,35 +1373,36 @@ const _t = /* @__PURE__ */ R(Yt, [["render", Zt]]), xt = [
1362
1373
  set: (a) => {
1363
1374
  t.emit("update:modelValue", {
1364
1375
  selecting: C.value,
1365
- filtering: f.value,
1366
- searching: D.value,
1376
+ filtering: c.value,
1377
+ searching: w.value,
1367
1378
  sorting: I.value,
1368
1379
  paging: a
1369
1380
  });
1370
1381
  }
1371
1382
  });
1372
- ie(() => {
1383
+ le(() => {
1373
1384
  var a;
1374
1385
  return (a = G.value) == null ? void 0 : a.offset;
1375
1386
  }, () => {
1376
1387
  var a;
1377
- (a = g.value) != null && a.root && g.value.root.scrollTo({
1388
+ (a = p.value) != null && a.root && p.value.root.scrollTo({
1378
1389
  top: 0,
1379
1390
  behavior: "smooth"
1380
1391
  });
1381
1392
  });
1382
1393
  const N = n(() => e.features.selecting && (typeof e.features.selecting == "object" ? e.features.selecting.showCounter !== !1 : !0)), F = n(() => e.items.length === 0 || e.loading || typeof e.features.selecting == "object" && e.features.selecting.disabled), r = n(() => {
1383
1394
  var a;
1384
- return ((a = k.value) == null ? void 0 : a.currentLimit) || 10;
1385
- }), b = S({}), w = n(() => e.columns.map((a) => ({
1395
+ return ((a = b.value) == null ? void 0 : a.currentLimit) || 10;
1396
+ }), u = S({}), D = n(() => e.columns.map((a) => ({
1386
1397
  ...a,
1387
- width: b.value[a.name] || a.width
1398
+ width: u.value[a.name] || a.width
1388
1399
  }))), V = S(/* @__PURE__ */ new Map()), z = S(/* @__PURE__ */ new Map()), q = n(() => {
1389
1400
  const a = /* @__PURE__ */ new Map(), $ = /* @__PURE__ */ new Map(), H = [], ae = [];
1390
1401
  e.features.selecting && H.push({
1391
1402
  name: "_check",
1392
- stickiness: "start"
1393
- }), w.value.forEach((P) => {
1403
+ stickiness: "start",
1404
+ alignment: "center"
1405
+ }), D.value.forEach((P) => {
1394
1406
  P.stickiness === "start" ? H.push(P) : P.stickiness === "end" && ae.push(P);
1395
1407
  });
1396
1408
  let re = 0;
@@ -1406,7 +1418,7 @@ const _t = /* @__PURE__ */ R(Yt, [["render", Zt]]), xt = [
1406
1418
  };
1407
1419
  });
1408
1420
  function X(a) {
1409
- D.value = a;
1421
+ w.value = a;
1410
1422
  }
1411
1423
  function J(a, $, H) {
1412
1424
  switch (H.stickiness) {
@@ -1441,62 +1453,62 @@ const _t = /* @__PURE__ */ R(Yt, [["render", Zt]]), xt = [
1441
1453
  value: H
1442
1454
  });
1443
1455
  }
1444
- function d(a) {
1456
+ function m(a) {
1445
1457
  e.interactiveRows && t.emit("click:row", a);
1446
1458
  }
1447
1459
  function j(a, $) {
1448
- b.value = {
1449
- ...b.value,
1460
+ u.value = {
1461
+ ...u.value,
1450
1462
  [a.name]: `${$}px`
1451
- }, e.features.storageKey && de();
1463
+ }, e.features.storageKey && ie();
1452
1464
  }
1453
- function de() {
1465
+ function ie() {
1454
1466
  if (typeof window > "u" || !e.features.storageKey) return;
1455
1467
  const a = {};
1456
- w.value.forEach(($) => {
1468
+ D.value.forEach(($) => {
1457
1469
  $.name && $.width && (a[$.name] = $.width);
1458
1470
  }), localStorage.setItem(`or-data-grid-v3-widths-${e.features.storageKey}`, JSON.stringify(a));
1459
1471
  }
1460
- function ce() {
1472
+ function de() {
1461
1473
  if (!(typeof window > "u" || !e.features.storageKey))
1462
1474
  try {
1463
1475
  const a = localStorage.getItem(`or-data-grid-v3-widths-${e.features.storageKey}`);
1464
1476
  if (a) {
1465
1477
  const $ = JSON.parse(a);
1466
- b.value = $;
1478
+ u.value = $;
1467
1479
  }
1468
1480
  } catch (a) {
1469
1481
  console.error("[OrDataGrid]: Failed to load column widths from localStorage", a);
1470
1482
  }
1471
1483
  }
1472
1484
  pe(() => {
1473
- ce();
1485
+ de();
1474
1486
  });
1475
1487
  function te(a) {
1476
1488
  V.value.delete(a), V.value = new Map(V.value), z.value.delete(a), z.value = new Map(z.value);
1477
1489
  }
1478
- function ue(a) {
1490
+ function ce(a) {
1479
1491
  a.currentTarget.scrollIntoView({ block: "nearest" });
1480
1492
  }
1481
1493
  return {
1482
1494
  root: s,
1483
1495
  rootStyles: i,
1484
- pagination: k,
1496
+ pagination: b,
1485
1497
  tableInlineStyles: T,
1486
1498
  selectingIndicator: E,
1487
1499
  showSelectingCouter: N,
1488
1500
  selectingDisabled: F,
1489
1501
  skeletonsLength: r,
1490
- actualColumns: w,
1502
+ actualColumns: D,
1491
1503
  handleMouseEnterRow: U,
1492
1504
  handleMouseLeaveRow: L,
1493
1505
  handleMouseEnterCell: B,
1494
1506
  handleMouseLeaveCell: l,
1495
- handleRowClick: d,
1507
+ handleRowClick: m,
1496
1508
  updateColumnWidth: j,
1497
1509
  selectingModel: C,
1498
- filteringModel: f,
1499
- searchingModel: D,
1510
+ filteringModel: c,
1511
+ searchingModel: w,
1500
1512
  sortingModel: I,
1501
1513
  pagingModel: G,
1502
1514
  stickyOffsets: q,
@@ -1505,39 +1517,39 @@ const _t = /* @__PURE__ */ R(Yt, [["render", Zt]]), xt = [
1505
1517
  updateSearchingModel: X,
1506
1518
  scrollToTop: () => {
1507
1519
  var a;
1508
- (a = g.value) != null && a.root && g.value.root.scrollTo({
1520
+ (a = p.value) != null && a.root && p.value.root.scrollTo({
1509
1521
  top: 0,
1510
1522
  behavior: "smooth"
1511
1523
  });
1512
1524
  },
1513
- scrollTo: ue,
1525
+ scrollTo: ce,
1514
1526
  onInput: (a, $, H) => {
1515
1527
  a[$] = H, t.emit("update:item", a);
1516
1528
  }
1517
1529
  };
1518
1530
  }
1519
1531
  });
1520
- function ta(e, t, s, k, g, i) {
1521
- const T = m("OrSearch"), E = m("OrDataGridHeader"), C = m("OrDataGridToolbar"), f = m("OrCheckbox"), D = m("OrDataGridTableHeaderCell"), I = m("OrDataGridTableHeaderRow"), G = m("OrDataGridTableHeader"), N = m("OrDataGridNotification"), F = m("OrDataGridTableExtraRow"), r = m("OrSkeletonText"), b = m("OrDataGridTableContentCell"), w = m("OrDataGridTableContentRow"), V = m("OrDataGridTablePlaceholder"), z = m("OrDataGridTableContent"), q = m("OrDataGridTable"), X = m("OrDataGridTableFooterCell"), J = m("OrDataGridTableFooterRow"), U = m("OrDataGridTableFooter"), L = m("OrPagination"), B = m("OrDataGridFooter");
1522
- return o(), p("div", {
1532
+ function ta(e, t, s, b, p, i) {
1533
+ const T = g("OrSearch"), E = g("OrDataGridHeader"), C = g("OrDataGridToolbar"), c = g("OrCheckbox"), w = g("OrDataGridTableHeaderCell"), I = g("OrDataGridTableHeaderRow"), G = g("OrDataGridTableHeader"), N = g("OrDataGridNotification"), F = g("OrDataGridTableExtraRow"), r = g("OrSkeletonText"), u = g("OrDataGridTableContentCell"), D = g("OrDataGridTableContentRow"), V = g("OrDataGridTablePlaceholder"), z = g("OrDataGridTableContent"), q = g("OrDataGridTable"), X = g("OrDataGridTableFooterCell"), J = g("OrDataGridTableFooterRow"), U = g("OrDataGridTableFooter"), L = g("OrPagination"), B = g("OrDataGridFooter");
1534
+ return o(), h("div", {
1523
1535
  ref: "root",
1524
- class: u(e.rootStyles)
1536
+ class: f(e.rootStyles)
1525
1537
  }, [
1526
1538
  e.$slots.title || e.features.searching || e.$slots.search || e.$slots.extraActions ? (o(), y(E, {
1527
1539
  key: 0,
1528
- class: u(["shrink-0"])
1540
+ class: f(["shrink-0"])
1529
1541
  }, _({ _: 2 }, [
1530
1542
  e.$slots.title ? {
1531
1543
  name: "title",
1532
1544
  fn: v(() => [
1533
- c(e.$slots, "title")
1545
+ d(e.$slots, "title")
1534
1546
  ]),
1535
1547
  key: "0"
1536
1548
  } : void 0,
1537
1549
  e.features.searching ? {
1538
1550
  name: "searching",
1539
1551
  fn: v(() => [
1540
- c(e.$slots, "search", ke(be({ updateSearchingModel: e.updateSearchingModel, searchingModel: e.searchingModel })), () => [
1552
+ d(e.$slots, "search", ke(be({ updateSearchingModel: e.updateSearchingModel, searchingModel: e.searchingModel })), () => [
1541
1553
  W(T, {
1542
1554
  modelValue: e.searchingModel,
1543
1555
  "onUpdate:modelValue": t[0] || (t[0] = (l) => e.searchingModel = l)
@@ -1549,23 +1561,23 @@ function ta(e, t, s, k, g, i) {
1549
1561
  e.$slots.extraActions ? {
1550
1562
  name: "extraActions",
1551
1563
  fn: v(() => [
1552
- c(e.$slots, "extraActions")
1564
+ d(e.$slots, "extraActions")
1553
1565
  ]),
1554
1566
  key: "2"
1555
1567
  } : void 0
1556
- ]), 1024)) : h("", !0),
1568
+ ]), 1024)) : k("", !0),
1557
1569
  e.$slots.toolbar ? (o(), y(C, {
1558
1570
  key: 1,
1559
- class: u(["shrink-0"])
1571
+ class: f(["shrink-0"])
1560
1572
  }, {
1561
1573
  default: v(() => [
1562
- c(e.$slots, "toolbar")
1574
+ d(e.$slots, "toolbar")
1563
1575
  ]),
1564
1576
  _: 3
1565
- })) : h("", !0),
1577
+ })) : k("", !0),
1566
1578
  W(q, {
1567
1579
  ref: "table",
1568
- class: u(["grow", { "grid-rows-[auto_1fr]": e.items.length === 0 }]),
1580
+ class: f(["grow", { "grid-rows-[auto_1fr]": e.items.length === 0 }]),
1569
1581
  style: A(e.tableInlineStyles),
1570
1582
  columns: e.actualColumns,
1571
1583
  features: e.features
@@ -1575,16 +1587,17 @@ function ta(e, t, s, k, g, i) {
1575
1587
  default: v(() => [
1576
1588
  W(I, { variant: e.variant }, {
1577
1589
  default: v(() => [
1578
- e.features.selecting ? (o(), y(D, {
1590
+ e.features.selecting ? (o(), y(w, {
1579
1591
  key: 0,
1580
- column: { name: "_check", stickiness: "start" },
1592
+ column: { name: "_check", stickiness: "start", alignment: "center" },
1581
1593
  "sticky-offset": e.stickyOffsets.start.get("_check"),
1582
- class: "md:!py-none",
1594
+ override: !0,
1595
+ class: "!px-none",
1583
1596
  "onUpdate:scrollOffset": e.updateScrollOffset,
1584
1597
  "onRemove:scrollOffset": e.removeScrollOffset
1585
1598
  }, {
1586
1599
  default: v(() => [
1587
- W(f, {
1600
+ W(c, {
1588
1601
  modelValue: e.selectingIndicator,
1589
1602
  "onUpdate:modelValue": t[1] || (t[1] = (l) => e.selectingIndicator = l),
1590
1603
  indeterminate: !e.selectingIndicator && e.selectingModel.length > 0,
@@ -1592,17 +1605,17 @@ function ta(e, t, s, k, g, i) {
1592
1605
  }, null, 8, ["modelValue", "indeterminate", "disabled"])
1593
1606
  ]),
1594
1607
  _: 1
1595
- }, 8, ["sticky-offset", "onUpdate:scrollOffset", "onRemove:scrollOffset"])) : h("", !0),
1596
- (o(!0), p(Q, null, Y(e.actualColumns, (l) => (o(), y(D, {
1608
+ }, 8, ["sticky-offset", "onUpdate:scrollOffset", "onRemove:scrollOffset"])) : k("", !0),
1609
+ (o(!0), h(Q, null, Y(e.actualColumns, (l) => (o(), y(w, {
1597
1610
  key: l.name,
1598
1611
  modelValue: e.sortingModel,
1599
- "onUpdate:modelValue": t[2] || (t[2] = (d) => e.sortingModel = d),
1612
+ "onUpdate:modelValue": t[2] || (t[2] = (m) => e.sortingModel = m),
1600
1613
  column: l,
1601
1614
  features: e.features,
1602
1615
  "sticky-offset": l.stickiness === "start" ? e.stickyOffsets.start.get(l.name) : l.stickiness === "end" ? e.stickyOffsets.end.get(l.name) : void 0,
1603
1616
  "onUpdate:scrollOffset": e.updateScrollOffset,
1604
1617
  "onRemove:scrollOffset": e.removeScrollOffset,
1605
- "onUpdate:columnWidth": (d) => e.updateColumnWidth(l, d)
1618
+ "onUpdate:columnWidth": (m) => e.updateColumnWidth(l, m)
1606
1619
  }, {
1607
1620
  default: v(() => [
1608
1621
  x(ee(l.label), 1)
@@ -1624,11 +1637,11 @@ function ta(e, t, s, k, g, i) {
1624
1637
  e.$slots.notification ? {
1625
1638
  name: "notification",
1626
1639
  fn: v(() => [
1627
- c(e.$slots, "notification")
1640
+ d(e.$slots, "notification")
1628
1641
  ]),
1629
1642
  key: "0"
1630
1643
  } : void 0
1631
- ]), 1032, ["notification", "variant"])) : h("", !0),
1644
+ ]), 1032, ["notification", "variant"])) : k("", !0),
1632
1645
  W(z, null, {
1633
1646
  default: v(() => [
1634
1647
  e.$slots["before-rows"] ? (o(), y(F, {
@@ -1637,38 +1650,39 @@ function ta(e, t, s, k, g, i) {
1637
1650
  class: "border-b-1"
1638
1651
  }, {
1639
1652
  default: v(() => [
1640
- c(e.$slots, "before-rows")
1653
+ d(e.$slots, "before-rows")
1641
1654
  ]),
1642
1655
  _: 3
1643
- }, 8, ["variant"])) : h("", !0),
1644
- e.loading ? (o(!0), p(Q, { key: 1 }, Y(e.skeletonsLength, (l) => (o(), y(w, {
1656
+ }, 8, ["variant"])) : k("", !0),
1657
+ e.loading ? (o(!0), h(Q, { key: 1 }, Y(e.skeletonsLength, (l) => (o(), y(D, {
1645
1658
  key: l,
1646
1659
  variant: e.variant,
1647
1660
  interactive: e.interactiveRows
1648
1661
  }, {
1649
1662
  default: v(() => [
1650
- e.features.selecting ? (o(), y(b, {
1663
+ e.features.selecting ? (o(), y(u, {
1651
1664
  key: 0,
1652
- column: { name: "_check", stickiness: "start" },
1665
+ column: { name: "_check", stickiness: "start", alignment: "center" },
1653
1666
  "sticky-offset": e.stickyOffsets.start.get("_check"),
1654
1667
  variant: e.variant,
1655
- override: !0
1668
+ override: !0,
1669
+ class: "!px-none"
1656
1670
  }, {
1657
1671
  default: v(() => [
1658
1672
  W(r)
1659
1673
  ]),
1660
1674
  _: 1
1661
- }, 8, ["sticky-offset", "variant"])) : h("", !0),
1662
- (o(!0), p(Q, null, Y(e.actualColumns, (d) => (o(), y(b, {
1663
- key: d.name,
1664
- column: d,
1675
+ }, 8, ["sticky-offset", "variant"])) : k("", !0),
1676
+ (o(!0), h(Q, null, Y(e.actualColumns, (m) => (o(), y(u, {
1677
+ key: m.name,
1678
+ column: m,
1665
1679
  features: e.features,
1666
- "sticky-offset": d.stickiness === "start" ? e.stickyOffsets.start.get(d.name) : d.stickiness === "end" ? e.stickyOffsets.end.get(d.name) : void 0,
1680
+ "sticky-offset": m.stickiness === "start" ? e.stickyOffsets.start.get(m.name) : m.stickiness === "end" ? e.stickyOffsets.end.get(m.name) : void 0,
1667
1681
  variant: e.variant,
1668
1682
  override: !0
1669
1683
  }, {
1670
1684
  default: v(() => [
1671
- c(e.$slots, "column-loading", { column: d }, () => [
1685
+ d(e.$slots, "column-loading", { column: m }, () => [
1672
1686
  W(r)
1673
1687
  ])
1674
1688
  ]),
@@ -1676,7 +1690,7 @@ function ta(e, t, s, k, g, i) {
1676
1690
  }, 1032, ["column", "features", "sticky-offset", "variant"]))), 128))
1677
1691
  ]),
1678
1692
  _: 2
1679
- }, 1032, ["variant", "interactive"]))), 128)) : e.items.length > 0 ? (o(!0), p(Q, { key: 2 }, Y(e.items, (l) => (o(), y(w, {
1693
+ }, 1032, ["variant", "interactive"]))), 128)) : e.items.length > 0 ? (o(!0), h(Q, { key: 2 }, Y(e.items, (l) => (o(), y(D, {
1680
1694
  key: l.id,
1681
1695
  variant: e.variant,
1682
1696
  selected: e.selectingModel.includes(l.id),
@@ -1686,45 +1700,45 @@ function ta(e, t, s, k, g, i) {
1686
1700
  onClick: () => e.handleRowClick(l)
1687
1701
  }, {
1688
1702
  default: v(() => [
1689
- e.features.selecting ? (o(), y(b, {
1703
+ e.features.selecting ? (o(), y(u, {
1690
1704
  key: 0,
1691
- column: { name: "_check", stickiness: "start" },
1705
+ column: { name: "_check", stickiness: "start", alignment: "center" },
1692
1706
  "sticky-offset": e.stickyOffsets.start.get("_check"),
1693
1707
  variant: e.variant,
1694
1708
  override: !0,
1695
1709
  "force-state": "none",
1696
- class: "md:!py-none",
1710
+ class: "!px-none",
1697
1711
  onMouseenter: () => e.handleMouseEnterCell(l, "selecting", e.selectingModel.includes(l.id)),
1698
1712
  onMouseleave: () => e.handleMouseLeaveCell(l, "selecting", e.selectingModel.includes(l.id))
1699
1713
  }, {
1700
1714
  default: v(() => [
1701
- W(f, {
1715
+ W(c, {
1702
1716
  modelValue: e.selectingModel,
1703
- "onUpdate:modelValue": t[4] || (t[4] = (d) => e.selectingModel = d),
1717
+ "onUpdate:modelValue": t[4] || (t[4] = (m) => e.selectingModel = m),
1704
1718
  value: l.id,
1705
1719
  disabled: e.selectingDisabled
1706
1720
  }, null, 8, ["modelValue", "value", "disabled"])
1707
1721
  ]),
1708
1722
  _: 2
1709
- }, 1032, ["sticky-offset", "variant", "onMouseenter", "onMouseleave"])) : h("", !0),
1710
- (o(!0), p(Q, null, Y(e.actualColumns, (d) => (o(), y(b, {
1711
- key: d.name,
1712
- "model-value": l[d.name],
1713
- column: d,
1723
+ }, 1032, ["sticky-offset", "variant", "onMouseenter", "onMouseleave"])) : k("", !0),
1724
+ (o(!0), h(Q, null, Y(e.actualColumns, (m) => (o(), y(u, {
1725
+ key: m.name,
1726
+ "model-value": l[m.name],
1727
+ column: m,
1714
1728
  features: e.features,
1715
- "sticky-offset": d.stickiness === "start" ? e.stickyOffsets.start.get(d.name) : d.stickiness === "end" ? e.stickyOffsets.end.get(d.name) : void 0,
1729
+ "sticky-offset": m.stickiness === "start" ? e.stickyOffsets.start.get(m.name) : m.stickiness === "end" ? e.stickyOffsets.end.get(m.name) : void 0,
1716
1730
  variant: e.variant,
1717
- onInput: (j) => e.onInput(l, d.name, j),
1731
+ onInput: (j) => e.onInput(l, m.name, j),
1718
1732
  onFocusin: t[5] || (t[5] = (j) => e.scrollTo(j)),
1719
- onMouseenter: () => e.handleMouseEnterCell(l, d.name, l[d.name]),
1720
- onMouseleave: () => e.handleMouseLeaveCell(l, d.name, l[d.name])
1733
+ onMouseenter: () => e.handleMouseEnterCell(l, m.name, l[m.name]),
1734
+ onMouseleave: () => e.handleMouseLeaveCell(l, m.name, l[m.name])
1721
1735
  }, {
1722
1736
  default: v(() => [
1723
- c(e.$slots, d.name, {
1724
- column: d,
1737
+ d(e.$slots, m.name, {
1738
+ column: m,
1725
1739
  item: l
1726
1740
  }, () => [
1727
- x(ee(l[d.name]), 1)
1741
+ x(ee(l[m.name]), 1)
1728
1742
  ])
1729
1743
  ]),
1730
1744
  _: 2
@@ -1733,11 +1747,11 @@ function ta(e, t, s, k, g, i) {
1733
1747
  _: 2
1734
1748
  }, 1032, ["variant", "selected", "interactive", "onMouseenter", "onMouseleave", "onClick"]))), 128)) : e.$slots.noSearchResults && (e.features.filtering && e.filteringModel || e.features.searching && e.searchingModel) ? (o(), y(V, {
1735
1749
  key: 3,
1736
- class: u(["col-span-full"]),
1750
+ class: f(["col-span-full"]),
1737
1751
  variant: e.variant
1738
1752
  }, {
1739
1753
  default: v(() => [
1740
- c(e.$slots, "noSearchResults", {
1754
+ d(e.$slots, "noSearchResults", {
1741
1755
  filter: e.filteringModel,
1742
1756
  search: e.searchingModel
1743
1757
  })
@@ -1745,23 +1759,23 @@ function ta(e, t, s, k, g, i) {
1745
1759
  _: 3
1746
1760
  }, 8, ["variant"])) : e.$slots.empty ? (o(), y(V, {
1747
1761
  key: 4,
1748
- class: u(["col-span-full"]),
1762
+ class: f(["col-span-full"]),
1749
1763
  variant: e.variant
1750
1764
  }, {
1751
1765
  default: v(() => [
1752
- c(e.$slots, "empty")
1766
+ d(e.$slots, "empty")
1753
1767
  ]),
1754
1768
  _: 3
1755
- }, 8, ["variant"])) : h("", !0),
1769
+ }, 8, ["variant"])) : k("", !0),
1756
1770
  e.$slots["after-rows"] ? (o(), y(F, {
1757
1771
  key: 5,
1758
1772
  variant: e.variant
1759
1773
  }, {
1760
1774
  default: v(() => [
1761
- c(e.$slots, "after-rows")
1775
+ d(e.$slots, "after-rows")
1762
1776
  ]),
1763
1777
  _: 3
1764
- }, 8, ["variant"])) : h("", !0)
1778
+ }, 8, ["variant"])) : k("", !0)
1765
1779
  ]),
1766
1780
  _: 3
1767
1781
  })
@@ -1771,13 +1785,13 @@ function ta(e, t, s, k, g, i) {
1771
1785
  e.$slots["extra-row"] ? (o(), y(U, { key: 2 }, {
1772
1786
  default: v(() => [
1773
1787
  W(J, {
1774
- class: u(["shrink-0"]),
1788
+ class: f(["shrink-0"]),
1775
1789
  variant: e.variant
1776
1790
  }, {
1777
1791
  default: v(() => [
1778
1792
  W(X, null, {
1779
1793
  default: v(() => [
1780
- c(e.$slots, "extra-row")
1794
+ d(e.$slots, "extra-row")
1781
1795
  ]),
1782
1796
  _: 3
1783
1797
  })
@@ -1786,10 +1800,10 @@ function ta(e, t, s, k, g, i) {
1786
1800
  }, 8, ["variant"])
1787
1801
  ]),
1788
1802
  _: 3
1789
- })) : h("", !0),
1803
+ })) : k("", !0),
1790
1804
  e.$slots.actions || e.showSelectingCouter || e.features.paging ? (o(), y(B, {
1791
1805
  key: 3,
1792
- class: u(["shrink-0"])
1806
+ class: f(["shrink-0"])
1793
1807
  }, _({ _: 2 }, [
1794
1808
  e.features.selecting && e.selectingModel.length > 0 ? {
1795
1809
  name: "status",
@@ -1801,7 +1815,7 @@ function ta(e, t, s, k, g, i) {
1801
1815
  e.$slots.actions ? {
1802
1816
  name: "actions",
1803
1817
  fn: v(() => [
1804
- c(e.$slots, "actions")
1818
+ d(e.$slots, "actions")
1805
1819
  ]),
1806
1820
  key: "1"
1807
1821
  } : void 0,
@@ -1818,7 +1832,7 @@ function ta(e, t, s, k, g, i) {
1818
1832
  ]),
1819
1833
  key: "2"
1820
1834
  } : void 0
1821
- ]), 1024)) : h("", !0)
1835
+ ]), 1024)) : k("", !0)
1822
1836
  ], 2);
1823
1837
  }
1824
1838
  const Oa = /* @__PURE__ */ R(ea, [["render", ta]]);
@@ -1844,4 +1858,4 @@ export {
1844
1858
  Xt as q,
1845
1859
  _t as r
1846
1860
  };
1847
- //# sourceMappingURL=OrDataGrid-Ci188YMU.mjs.map
1861
+ //# sourceMappingURL=OrDataGrid-CSiAvIZi.mjs.map