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