@onereach/ui-components 27.0.9-beta.6149.0 → 27.0.9-beta.6151.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 Ce } from "@onereach/ui-components-common/helpers";
1
+ import { flatten as Ge } from "@onereach/ui-components-common/helpers";
2
2
  import { O as fe } from "./OrCheckbox-B_121oYu.mjs";
3
- import { O as Te } from "./OrIconButton-D1pxfMA_.mjs";
4
- import { O as Ge } from "./OrPagination-DRBRRL2g.mjs";
5
- import { O as Ve } from "./OrSearch-Csld1hBq.mjs";
6
- import { O as Ie } from "./OrSkeletonArea.vue_vue_type_script_lang-jgRhbZ0X.mjs";
7
- import { defineComponent as R, ref as T, computed as s, openBlock as n, createElementBlock as b, normalizeClass as u, renderSlot as m, createCommentVNode as k, resolveComponent as v, normalizeStyle as J, createBlock as O, watch as ge, onUnmounted as Me, createElementVNode as le, withModifiers as ae, createVNode as N, mergeProps as Re, withCtx as $, reactive as ue, onMounted as We, createSlots as oe, normalizeProps as Ee, guardReactiveProps as Fe, Fragment as ee, renderList as te, createTextVNode as re, toDisplayString as se } from "vue";
8
- import { useElementSize as ze, useDebounceFn as me, useResizeObserver as He } from "@vueuse/core";
9
- import { _ as W } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
10
- import { O as je } from "./OrDatePicker-Ifk1LBLg.mjs";
11
- import { O as Ne } from "./OrDateTimePicker-D9QS_dRK.mjs";
3
+ import { O as Ve } from "./OrIconButton-D1pxfMA_.mjs";
4
+ import { O as Ie } from "./OrPagination-DRBRRL2g.mjs";
5
+ import { O as Me } from "./OrSearch-Csld1hBq.mjs";
6
+ import { O as Re } from "./OrSkeletonArea.vue_vue_type_script_lang-jgRhbZ0X.mjs";
7
+ import { defineComponent as M, ref as T, computed as r, openBlock as n, createElementBlock as b, normalizeClass as u, renderSlot as m, createCommentVNode as k, resolveComponent as v, normalizeStyle as J, createBlock as O, watch as ge, onUnmounted as We, createElementVNode as le, withModifiers as ae, createVNode as U, mergeProps as Ee, withCtx as $, reactive as ue, onMounted as ze, createSlots as oe, normalizeProps as Fe, guardReactiveProps as He, Fragment as ee, renderList as te, createTextVNode as re, toDisplayString as se } from "vue";
8
+ import { useElementSize as je, useDebounceFn as me, useResizeObserver as Ne } from "@vueuse/core";
9
+ import { _ as R } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
10
+ import { O as Pe } from "./OrDatePicker-Ifk1LBLg.mjs";
11
+ import { O as Ue } from "./OrDateTimePicker-D9QS_dRK.mjs";
12
12
  import "./OrDateTimePicker.vue_vue_type_script_lang-8aFx3wpJ.mjs";
13
13
  import "@onereach/ui-components-common/types";
14
- import { O as Pe } from "./OrInput-CzRxZM3i.mjs";
15
- import { O as Ue } from "./OrRating-CAwz23JA.mjs";
16
- import { O as Ae } from "./OrSelect-DBhNKmRX.mjs";
17
- import { O as Le } from "./OrSwitch-BtoXDsZx.mjs";
18
- import { O as qe } from "./OrTagInput-DIMSvMNK.mjs";
19
- import { O as Be } from "./OrTimePicker-C_pYA5Yn.mjs";
20
- import { O as Ke } from "./OrIcon-k8cyvh-D.mjs";
21
- import { O as Xe } from "./OrNotification-DObxgRie.mjs";
22
- const Je = [
14
+ import { O as Ae } from "./OrInput-CzRxZM3i.mjs";
15
+ import { O as Le } from "./OrRating-CAwz23JA.mjs";
16
+ import { O as qe } from "./OrSelect-DBhNKmRX.mjs";
17
+ import { O as Be } from "./OrSwitch-BtoXDsZx.mjs";
18
+ import { O as Ke } from "./OrTagInput-DIMSvMNK.mjs";
19
+ import { O as Xe } from "./OrTimePicker-C_pYA5Yn.mjs";
20
+ import { O as Je } from "./OrIcon-k8cyvh-D.mjs";
21
+ import { O as Qe } from "./OrNotification-DObxgRie.mjs";
22
+ const Ye = [
23
23
  // Layout
24
24
  "layout-row",
25
25
  // Interactivity
@@ -33,20 +33,20 @@ const Je = [
33
33
  // Theme
34
34
  "theme-border-disabled border-t-1",
35
35
  "dark:theme-border-disabled-dark"
36
- ], Qe = [
36
+ ], Ze = [
37
37
  // Typography
38
38
  "typography-body-2-semibold"
39
- ], Ye = R({
39
+ ], xe = M({
40
40
  name: "OrDataGridFooter",
41
41
  expose: [
42
42
  "root"
43
43
  ],
44
44
  setup() {
45
- const e = T(), t = s(() => [
45
+ const e = T(), t = r(() => [
46
46
  "or-data-grid-footer-v3",
47
- ...Je
48
- ]), i = s(() => [
49
- ...Qe
47
+ ...Ye
48
+ ]), i = r(() => [
49
+ ...Ze
50
50
  ]);
51
51
  return {
52
52
  root: e,
@@ -54,11 +54,11 @@ const Je = [
54
54
  statusStyles: i
55
55
  };
56
56
  }
57
- }), Ze = {
57
+ }), _e = {
58
58
  key: 1,
59
59
  class: /* @__PURE__ */ u(["grow"])
60
60
  };
61
- function xe(e, t, i, D, g, f) {
61
+ function et(e, t, i, D, g, f) {
62
62
  return n(), b("div", {
63
63
  ref: "root",
64
64
  class: u(e.rootStyles)
@@ -70,31 +70,31 @@ function xe(e, t, i, D, g, f) {
70
70
  m(e.$slots, "status")
71
71
  ], 2)) : k("", !0),
72
72
  m(e.$slots, "actions"),
73
- e.$slots.paging ? (n(), b("div", Ze)) : k("", !0),
73
+ e.$slots.paging ? (n(), b("div", _e)) : k("", !0),
74
74
  m(e.$slots, "paging")
75
75
  ], 2);
76
76
  }
77
- const _e = /* @__PURE__ */ W(Ye, [["render", xe]]), et = [
77
+ const tt = /* @__PURE__ */ R(xe, [["render", et]]), at = [
78
78
  // Layout
79
79
  "layout-row items-start gap-md",
80
80
  // Interactivity
81
81
  "interactivity-default",
82
82
  // Spacing
83
83
  "pb-md"
84
- ], tt = [
84
+ ], nt = [
85
85
  // Typography
86
86
  "typography-headline-2"
87
- ], at = R({
87
+ ], ot = M({
88
88
  name: "OrDataGridHeader",
89
89
  expose: [
90
90
  "root"
91
91
  ],
92
92
  setup() {
93
- const e = T(), t = s(() => [
93
+ const e = T(), t = r(() => [
94
94
  "or-data-grid-header-v3",
95
- ...et
96
- ]), i = s(() => [
97
- ...tt
95
+ ...at
96
+ ]), i = r(() => [
97
+ ...nt
98
98
  ]);
99
99
  return {
100
100
  root: e,
@@ -102,11 +102,11 @@ const _e = /* @__PURE__ */ W(Ye, [["render", xe]]), et = [
102
102
  titleStyles: i
103
103
  };
104
104
  }
105
- }), nt = {
105
+ }), rt = {
106
106
  key: 1,
107
107
  class: /* @__PURE__ */ u(["grow"])
108
108
  };
109
- function ot(e, t, i, D, g, f) {
109
+ function st(e, t, i, D, g, f) {
110
110
  return n(), b("div", {
111
111
  ref: "root",
112
112
  class: u(e.rootStyles)
@@ -117,14 +117,14 @@ function ot(e, t, i, D, g, f) {
117
117
  }, [
118
118
  m(e.$slots, "title")
119
119
  ], 2)) : k("", !0),
120
- e.$slots.searching || e.$slots.extraActions ? (n(), b("div", nt)) : k("", !0),
120
+ e.$slots.searching || e.$slots.extraActions ? (n(), b("div", rt)) : k("", !0),
121
121
  m(e.$slots, "searching"),
122
122
  e.$slots.extraActions ? m(e.$slots, "extraActions", { key: 2 }) : k("", !0)
123
123
  ], 2);
124
124
  }
125
- const rt = /* @__PURE__ */ W(at, [["render", ot]]);
125
+ const lt = /* @__PURE__ */ R(ot, [["render", st]]);
126
126
  var w = /* @__PURE__ */ ((e) => (e.Standard = "standard", e.Comfortable = "comfortable", e.Compact = "compact", e.Dynamic = "dynamic", e))(w || {});
127
- const ie = "52px", he = "42px", st = [
127
+ const ie = "52px", he = "42px", it = [
128
128
  // Layout
129
129
  "layout-row items-center",
130
130
  // Spacing
@@ -160,23 +160,23 @@ const ie = "52px", he = "42px", st = [
160
160
  // Border (conditional override for last row/column)
161
161
  "group-last:border-b-0",
162
162
  "last:border-r-0"
163
- ], lt = [
163
+ ], dt = [
164
164
  // interactivity
165
165
  "interactivity-select",
166
166
  // Typography
167
167
  "truncate"
168
- ], it = R({
168
+ ], ct = M({
169
169
  name: "OrDataGridTableContentCell",
170
170
  components: {
171
171
  OrCheckbox: fe,
172
- OrDatePicker: je,
173
- OrDateTimePicker: Ne,
174
- OrInput: Pe,
175
- OrRating: Ue,
176
- OrSelect: Ae,
177
- OrSwitch: Le,
178
- OrTagInput: qe,
179
- OrTimePicker: Be
172
+ OrDatePicker: Pe,
173
+ OrDateTimePicker: Ue,
174
+ OrInput: Ae,
175
+ OrRating: Le,
176
+ OrSelect: qe,
177
+ OrSwitch: Be,
178
+ OrTagInput: Ke,
179
+ OrTimePicker: Xe
180
180
  },
181
181
  model: {
182
182
  prop: "modelValue",
@@ -216,19 +216,19 @@ const ie = "52px", he = "42px", st = [
216
216
  "root"
217
217
  ],
218
218
  setup(e, t) {
219
- const i = T(), D = s(() => {
220
- var p, S, E, V, F, H, h, o, y, G;
219
+ const i = T(), D = r(() => {
220
+ var p, S, W, V, E, H, h, o, y, G;
221
221
  return [
222
222
  "or-data-grid-table-content-cell-v3",
223
- ...st,
223
+ ...it,
224
224
  ...(p = e.column) != null && p.stickiness ? [`sticky-${e.column.stickiness}`] : [],
225
- ...(S = e.features) != null && S.resizing && ((E = e.column) != null && E.name) && ((V = e.column) == null ? void 0 : V.resizing) !== !1 ? ["resizable"] : [],
226
- ...((F = e.column) == null ? void 0 : F.stickiness) === "start" ? ["border-r-1"] : [],
225
+ ...(S = e.features) != null && S.resizing && ((W = e.column) != null && W.name) && ((V = e.column) == null ? void 0 : V.resizing) !== !1 ? ["resizable"] : [],
226
+ ...((E = e.column) == null ? void 0 : E.stickiness) === "start" ? ["border-r-1"] : [],
227
227
  ...((H = e.column) == null ? void 0 : H.stickiness) === "end" ? ["border-l-1"] : [],
228
228
  ...(h = e.features) != null && h.resizing && ((o = e.column) != null && o.name) && ((y = e.column) == null ? void 0 : y.resizing) !== !1 ? ["border-r-1"] : [],
229
229
  ...(G = e.column) != null && G.control ? [] : ["!theme-outline-transparent", "dark:!theme-outline-transparent-dark", "!theme-border-disabled", "dark:!theme-border-disabled-dark"]
230
230
  ];
231
- }), g = s(() => {
231
+ }), g = r(() => {
232
232
  var S;
233
233
  const p = {
234
234
  justifyContent: ((S = e.column) == null ? void 0 : S.alignment) || (e.column ? void 0 : "center")
@@ -251,28 +251,28 @@ const ie = "52px", he = "42px", st = [
251
251
  break;
252
252
  }
253
253
  return p;
254
- }), f = s(() => {
255
- var E, V, F, H, h;
256
- const p = ((E = e.column) == null ? void 0 : E.wrapping) ?? (e.variant === w.Dynamic && !((V = e.column) != null && V.control)), S = (F = e.column) == null ? void 0 : F.fitContent;
254
+ }), f = r(() => {
255
+ var W, V, E, H, h;
256
+ const p = ((W = e.column) == null ? void 0 : W.wrapping) ?? (e.variant === w.Dynamic && !((V = e.column) != null && V.control)), S = (E = e.column) == null ? void 0 : E.fitContent;
257
257
  return [
258
258
  "layout-row items-center w-full min-w-0 overflow-hidden",
259
259
  ...((H = e.column) == null ? void 0 : H.alignment) === "end" ? ["justify-end", "text-end"] : ((h = e.column) == null ? void 0 : h.alignment) === "center" ? ["justify-center", "text-center"] : [],
260
- ...lt.filter((o) => o !== "truncate"),
260
+ ...dt.filter((o) => o !== "truncate"),
261
261
  ...p ? ["whitespace-pre-wrap break-words"] : S ? [] : ["truncate"]
262
262
  ];
263
- }), C = s(() => {
264
- var p, S, E, V;
263
+ }), C = r(() => {
264
+ var p, S, W, V;
265
265
  return {
266
266
  minWidth: (p = e.column) == null ? void 0 : p.minWidth,
267
267
  maxWidth: (S = e.column) == null ? void 0 : S.maxWidth,
268
- justifyContent: ((E = e.column) == null ? void 0 : E.alignment) === "end" ? void 0 : ((V = e.column) == null ? void 0 : V.alignment) || (e.column ? void 0 : "center")
268
+ justifyContent: ((W = e.column) == null ? void 0 : W.alignment) === "end" ? void 0 : ((V = e.column) == null ? void 0 : V.alignment) || (e.column ? void 0 : "center")
269
269
  };
270
- }), I = s({
270
+ }), I = r({
271
271
  get: () => e.modelValue,
272
272
  set: (p) => {
273
273
  t.emit("input", p);
274
274
  }
275
- }), z = s(() => {
275
+ }), F = r(() => {
276
276
  var p;
277
277
  return (p = e.column) == null ? void 0 : p.control;
278
278
  });
@@ -283,12 +283,12 @@ const ie = "52px", he = "42px", st = [
283
283
  contentStyles: f,
284
284
  contentInlineStyles: C,
285
285
  model: I,
286
- control: z
286
+ control: F
287
287
  };
288
288
  }
289
289
  });
290
- function dt(e, t, i, D, g, f) {
291
- const C = v("OrInput"), I = v("OrRating"), z = v("OrSelect"), p = v("OrCheckbox"), S = v("OrSwitch"), E = v("OrDatePicker"), V = v("OrTimePicker"), F = v("OrDateTimePicker"), H = v("OrTagInput");
290
+ function ut(e, t, i, D, g, f) {
291
+ const C = v("OrInput"), I = v("OrRating"), F = v("OrSelect"), p = v("OrCheckbox"), S = v("OrSwitch"), W = v("OrDatePicker"), V = v("OrTimePicker"), E = v("OrDateTimePicker"), H = v("OrTagInput");
292
292
  return n(), b("div", {
293
293
  ref: "root",
294
294
  class: u(e.rootStyles),
@@ -318,7 +318,7 @@ function dt(e, t, i, D, g, f) {
318
318
  modelValue: e.model,
319
319
  "onUpdate:modelValue": t[2] || (t[2] = (h) => e.model = h)
320
320
  }, null, 8, ["modelValue"])) : k("", !0),
321
- e.control.type === "select" ? (n(), O(z, {
321
+ e.control.type === "select" ? (n(), O(F, {
322
322
  key: 3,
323
323
  modelValue: e.model,
324
324
  "onUpdate:modelValue": t[3] || (t[3] = (h) => e.model = h),
@@ -336,7 +336,7 @@ function dt(e, t, i, D, g, f) {
336
336
  modelValue: e.model,
337
337
  "onUpdate:modelValue": t[5] || (t[5] = (h) => e.model = h)
338
338
  }, null, 8, ["modelValue"])) : k("", !0),
339
- e.control.type === "date" ? (n(), O(E, {
339
+ e.control.type === "date" ? (n(), O(W, {
340
340
  key: 6,
341
341
  modelValue: e.model,
342
342
  "onUpdate:modelValue": t[6] || (t[6] = (h) => e.model = h),
@@ -350,7 +350,7 @@ function dt(e, t, i, D, g, f) {
350
350
  variant: "embedded",
351
351
  anchor: e.root
352
352
  }, null, 8, ["modelValue", "anchor"])) : k("", !0),
353
- e.control.type === "datetime" ? (n(), O(F, {
353
+ e.control.type === "datetime" ? (n(), O(E, {
354
354
  key: 8,
355
355
  modelValue: e.model,
356
356
  "onUpdate:modelValue": t[8] || (t[8] = (h) => e.model = h),
@@ -373,7 +373,7 @@ function dt(e, t, i, D, g, f) {
373
373
  ], 6))
374
374
  ], 6);
375
375
  }
376
- const ct = /* @__PURE__ */ W(it, [["render", dt]]), ut = [
376
+ const mt = /* @__PURE__ */ R(ct, [["render", ut]]), ft = [
377
377
  // Layout
378
378
  "grid grid-cols-[subgrid] col-span-full",
379
379
  // Stacking context
@@ -394,7 +394,7 @@ const ct = /* @__PURE__ */ W(it, [["render", dt]]), ut = [
394
394
  // Theme (selected + hover / children)
395
395
  "children:hover:selected:theme-background-surface-3",
396
396
  "dark:children:hover:selected:theme-background-surface-3-dark"
397
- ], mt = {
397
+ ], gt = {
398
398
  [w.Standard]: [
399
399
  // Box
400
400
  "min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
@@ -411,7 +411,7 @@ const ct = /* @__PURE__ */ W(it, [["render", dt]]), ut = [
411
411
  // Box
412
412
  "min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
413
413
  ]
414
- }, ft = R({
414
+ }, ht = M({
415
415
  name: "OrDataGridTableContentRow",
416
416
  props: {
417
417
  variant: {
@@ -431,10 +431,10 @@ const ct = /* @__PURE__ */ W(it, [["render", dt]]), ut = [
431
431
  "root"
432
432
  ],
433
433
  setup(e) {
434
- const t = T(), i = s(() => [
434
+ const t = T(), i = r(() => [
435
435
  "or-data-grid-table-content-row-v3",
436
- ...ut,
437
- ...mt[e.variant],
436
+ ...ft,
437
+ ...gt[e.variant],
438
438
  ...e.interactive ? ["cursor-pointer"] : []
439
439
  ]);
440
440
  return {
@@ -442,28 +442,28 @@ const ct = /* @__PURE__ */ W(it, [["render", dt]]), ut = [
442
442
  rootStyles: i
443
443
  };
444
444
  }
445
- }), gt = ["selected"];
446
- function ht(e, t, i, D, g, f) {
445
+ }), yt = ["selected"];
446
+ function vt(e, t, i, D, g, f) {
447
447
  return n(), b("div", {
448
448
  ref: "root",
449
449
  class: u(e.rootStyles),
450
450
  selected: e.selected
451
451
  }, [
452
452
  m(e.$slots, "default")
453
- ], 10, gt);
453
+ ], 10, yt);
454
454
  }
455
- const yt = /* @__PURE__ */ W(ft, [["render", ht]]), vt = [
455
+ const kt = /* @__PURE__ */ R(ht, [["render", vt]]), bt = [
456
456
  // Layout
457
457
  "contents"
458
- ], kt = R({
458
+ ], pt = M({
459
459
  name: "OrDataGridTableContent",
460
460
  expose: [
461
461
  "root"
462
462
  ],
463
463
  setup() {
464
- const e = T(), t = s(() => [
464
+ const e = T(), t = r(() => [
465
465
  "or-data-grid-table-content-v3",
466
- ...vt
466
+ ...bt
467
467
  ]);
468
468
  return {
469
469
  root: e,
@@ -471,7 +471,7 @@ const yt = /* @__PURE__ */ W(ft, [["render", ht]]), vt = [
471
471
  };
472
472
  }
473
473
  });
474
- function bt(e, t, i, D, g, f) {
474
+ function Ot(e, t, i, D, g, f) {
475
475
  return n(), b("div", {
476
476
  ref: "root",
477
477
  class: u(e.rootStyles)
@@ -479,7 +479,7 @@ function bt(e, t, i, D, g, f) {
479
479
  m(e.$slots, "default")
480
480
  ], 2);
481
481
  }
482
- const pt = /* @__PURE__ */ W(kt, [["render", bt]]), Ot = [
482
+ const $t = /* @__PURE__ */ R(pt, [["render", Ot]]), wt = [
483
483
  // Layout
484
484
  "layout-row",
485
485
  // Spacing
@@ -489,15 +489,15 @@ const pt = /* @__PURE__ */ W(kt, [["render", bt]]), Ot = [
489
489
  // Theme
490
490
  "theme-border-transparent border-1",
491
491
  "dark:theme-border-transparent-dark"
492
- ], $t = R({
492
+ ], Dt = M({
493
493
  name: "OrDataGridTableFooterCell",
494
494
  expose: [
495
495
  "root"
496
496
  ],
497
497
  setup() {
498
- const e = T(), t = s(() => [
498
+ const e = T(), t = r(() => [
499
499
  "or-data-grid-table-footer-cell-v3",
500
- ...Ot
500
+ ...wt
501
501
  ]);
502
502
  return {
503
503
  root: e,
@@ -505,7 +505,7 @@ const pt = /* @__PURE__ */ W(kt, [["render", bt]]), Ot = [
505
505
  };
506
506
  }
507
507
  });
508
- function wt(e, t, i, D, g, f) {
508
+ function St(e, t, i, D, g, f) {
509
509
  return n(), b("div", {
510
510
  ref: "root",
511
511
  class: u(e.rootStyles)
@@ -513,7 +513,7 @@ function wt(e, t, i, D, g, f) {
513
513
  m(e.$slots, "default")
514
514
  ], 2);
515
515
  }
516
- const Dt = /* @__PURE__ */ W($t, [["render", wt]]), St = [
516
+ const Ct = /* @__PURE__ */ R(Dt, [["render", St]]), Tt = [
517
517
  // Layout
518
518
  "grid grid-cols-1",
519
519
  // Typography
@@ -526,7 +526,7 @@ const Dt = /* @__PURE__ */ W($t, [["render", wt]]), St = [
526
526
  "dark:children:theme-foreground-default-dark",
527
527
  "children:theme-background-default",
528
528
  "dark:children:theme-background-default-dark"
529
- ], Ct = {
529
+ ], Gt = {
530
530
  [w.Standard]: [
531
531
  // Box
532
532
  "min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
@@ -543,7 +543,7 @@ const Dt = /* @__PURE__ */ W($t, [["render", wt]]), St = [
543
543
  // Box
544
544
  "min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
545
545
  ]
546
- }, Tt = R({
546
+ }, Vt = M({
547
547
  name: "OrDataGridTableFooterRow",
548
548
  props: {
549
549
  variant: {
@@ -555,10 +555,10 @@ const Dt = /* @__PURE__ */ W($t, [["render", wt]]), St = [
555
555
  "root"
556
556
  ],
557
557
  setup(e) {
558
- const t = T(), i = s(() => [
558
+ const t = T(), i = r(() => [
559
559
  "or-data-grid-table-footer-row-v3",
560
- ...St,
561
- ...Ct[e.variant]
560
+ ...Tt,
561
+ ...Gt[e.variant]
562
562
  ]);
563
563
  return {
564
564
  root: t,
@@ -566,7 +566,7 @@ const Dt = /* @__PURE__ */ W($t, [["render", wt]]), St = [
566
566
  };
567
567
  }
568
568
  });
569
- function Gt(e, t, i, D, g, f) {
569
+ function It(e, t, i, D, g, f) {
570
570
  return n(), b("div", {
571
571
  ref: "root",
572
572
  class: u(e.rootStyles)
@@ -574,18 +574,18 @@ function Gt(e, t, i, D, g, f) {
574
574
  m(e.$slots, "default")
575
575
  ], 2);
576
576
  }
577
- const Vt = /* @__PURE__ */ W(Tt, [["render", Gt]]), It = [
577
+ const Mt = /* @__PURE__ */ R(Vt, [["render", It]]), Rt = [
578
578
  // Layout
579
579
  "contents"
580
- ], Mt = R({
580
+ ], Wt = M({
581
581
  name: "OrDataGridTableFooter",
582
582
  expose: [
583
583
  "root"
584
584
  ],
585
585
  setup() {
586
- const e = T(), t = s(() => [
586
+ const e = T(), t = r(() => [
587
587
  "or-data-grid-table-footer-v3",
588
- ...It
588
+ ...Rt
589
589
  ]);
590
590
  return {
591
591
  root: e,
@@ -593,7 +593,7 @@ const Vt = /* @__PURE__ */ W(Tt, [["render", Gt]]), It = [
593
593
  };
594
594
  }
595
595
  });
596
- function Rt(e, t, i, D, g, f) {
596
+ function Et(e, t, i, D, g, f) {
597
597
  return n(), b("div", {
598
598
  ref: "root",
599
599
  class: u(e.rootStyles)
@@ -601,7 +601,7 @@ function Rt(e, t, i, D, g, f) {
601
601
  m(e.$slots, "default")
602
602
  ], 2);
603
603
  }
604
- const Wt = /* @__PURE__ */ W(Mt, [["render", Rt]]), Et = [
604
+ const zt = /* @__PURE__ */ R(Wt, [["render", Et]]), Ft = [
605
605
  // Layout
606
606
  "layout-row items-center",
607
607
  // Spacing
@@ -625,7 +625,7 @@ const Wt = /* @__PURE__ */ W(Mt, [["render", Rt]]), Et = [
625
625
  "relative",
626
626
  // Border (conditional override for last column)
627
627
  "last:border-r-0"
628
- ], Ft = [
628
+ ], Ht = [
629
629
  // Position
630
630
  "absolute top-0 bottom-0 end-0 z-50",
631
631
  // Box
@@ -636,10 +636,10 @@ const Wt = /* @__PURE__ */ W(Mt, [["render", Rt]]), Et = [
636
636
  "dark:hover:theme-background-primary-dark",
637
637
  "active:theme-background-primary",
638
638
  "dark:active:theme-background-primary-dark"
639
- ], zt = R({
639
+ ], jt = M({
640
640
  name: "OrDataGridTableHeaderCell",
641
641
  components: {
642
- OrIcon: Ke
642
+ OrIcon: Je
643
643
  },
644
644
  model: {
645
645
  prop: "modelValue",
@@ -677,18 +677,18 @@ const Wt = /* @__PURE__ */ W(Mt, [["render", Rt]]), Et = [
677
677
  "root"
678
678
  ],
679
679
  setup(e, t) {
680
- const i = T(), D = s(() => {
680
+ const i = T(), D = r(() => {
681
681
  var o, y, G;
682
682
  return !!((o = e.features) != null && o.sorting) && !!((y = e.column) != null && y.name) && ((G = e.column) == null ? void 0 : G.sorting) !== !1;
683
- }), g = s(() => {
683
+ }), g = r(() => {
684
684
  var o, y, G;
685
685
  return !!((o = e.features) != null && o.resizing) && !!((y = e.column) != null && y.name) && ((G = e.column) == null ? void 0 : G.resizing) !== !1;
686
- }), f = s(() => {
686
+ }), f = r(() => {
687
687
  var o, y, G;
688
688
  return [
689
689
  "or-data-grid-table-header-cell-v3",
690
690
  "relative",
691
- ...Et,
691
+ ...Ft,
692
692
  ...(o = e.column) != null && o.stickiness ? [`sticky-${e.column.stickiness}`] : [],
693
693
  ...g.value ? ["resizable"] : [],
694
694
  ...D.value ? ["interactivity-click"] : [],
@@ -696,17 +696,17 @@ const Wt = /* @__PURE__ */ W(Mt, [["render", Rt]]), Et = [
696
696
  ...((G = e.column) == null ? void 0 : G.stickiness) === "end" ? ["border-l-1"] : [],
697
697
  ...g.value ? ["border-r-1"] : []
698
698
  ];
699
- }), C = s(() => [
699
+ }), C = r(() => [
700
700
  "or-data-grid-table-header-cell-resize-handle-v3",
701
- ...Ft
702
- ]), I = s(() => {
701
+ ...Ht
702
+ ]), I = r(() => {
703
703
  var o, y;
704
704
  return {
705
705
  minWidth: (o = e.column) == null ? void 0 : o.minWidth,
706
706
  maxWidth: (y = e.column) == null ? void 0 : y.maxWidth,
707
707
  overflow: "hidden"
708
708
  };
709
- }), z = s(() => {
709
+ }), F = r(() => {
710
710
  var y;
711
711
  const o = {
712
712
  justifyContent: ((y = e.column) == null ? void 0 : y.alignment) || (e.column ? void 0 : "center")
@@ -729,7 +729,7 @@ const Wt = /* @__PURE__ */ W(Mt, [["render", Rt]]), Et = [
729
729
  break;
730
730
  }
731
731
  return o;
732
- }), p = T(!1), S = s({
732
+ }), p = T(!1), S = r({
733
733
  get: () => {
734
734
  var o, y;
735
735
  if (D.value)
@@ -738,19 +738,19 @@ const Wt = /* @__PURE__ */ W(Mt, [["render", Rt]]), Et = [
738
738
  set: (o) => {
739
739
  t.emit("update:modelValue", o);
740
740
  }
741
- }), E = s(() => {
741
+ }), W = r(() => {
742
742
  var o;
743
743
  return [
744
744
  "layout-row items-center w-full min-w-0 overflow-hidden",
745
745
  ...((o = e.column) == null ? void 0 : o.alignment) === "end" ? ["flex-row-reverse"] : []
746
746
  ];
747
- }), V = s(() => {
747
+ }), V = r(() => {
748
748
  var o, y;
749
749
  return {
750
750
  justifyContent: ((o = e.column) == null ? void 0 : o.alignment) === "end" || (y = e.column) == null ? void 0 : y.alignment
751
751
  };
752
752
  });
753
- function F() {
753
+ function E() {
754
754
  var o;
755
755
  if (!(!D.value || p.value))
756
756
  if (S.value)
@@ -768,33 +768,33 @@ const Wt = /* @__PURE__ */ W(Mt, [["render", Rt]]), Et = [
768
768
  }
769
769
  }
770
770
  function H(o) {
771
- var Y;
772
- const y = o.pageX, G = ((Y = i.value) == null ? void 0 : Y.offsetWidth) || 0;
771
+ var Q;
772
+ const y = o.pageX, G = ((Q = i.value) == null ? void 0 : Q.offsetWidth) || 0;
773
773
  let j = null;
774
- const P = (q) => {
774
+ const A = (Y) => {
775
775
  p.value = !0, j === null && (j = requestAnimationFrame(() => {
776
- var r, l, X;
777
- const B = q.pageX - y;
778
- let K = Math.max(0, G + B);
779
- const Q = ((r = e.column) == null ? void 0 : r.minWidth) || (((l = e.column) == null ? void 0 : l.name) === "_check" ? he : ie);
780
- if (Q && (Q.endsWith("px") || !isNaN(Number(Q)))) {
781
- const x = parseInt(Q, 10);
782
- K = Math.max(K, x);
776
+ var s, l, K;
777
+ const Z = Y.pageX - y;
778
+ let P = Math.max(0, G + Z);
779
+ const L = ((s = e.column) == null ? void 0 : s.minWidth) || (((l = e.column) == null ? void 0 : l.name) === "_check" ? he : ie);
780
+ if (L && (L.endsWith("px") || !isNaN(Number(L)))) {
781
+ const x = parseInt(L, 10);
782
+ P = Math.max(P, x);
783
783
  }
784
- if ((X = e.column) != null && X.maxWidth && (e.column.maxWidth.endsWith("px") || !isNaN(Number(e.column.maxWidth)))) {
784
+ if ((K = e.column) != null && K.maxWidth && (e.column.maxWidth.endsWith("px") || !isNaN(Number(e.column.maxWidth)))) {
785
785
  const x = parseInt(e.column.maxWidth, 10);
786
- K = Math.min(K, x);
786
+ P = Math.min(P, x);
787
787
  }
788
- t.emit("update:column-width", K), j = null;
788
+ t.emit("update:column-width", P), j = null;
789
789
  }));
790
- }, U = () => {
791
- j !== null && (cancelAnimationFrame(j), j = null), document.removeEventListener("mousemove", P), document.removeEventListener("mouseup", U), setTimeout(() => {
790
+ }, B = () => {
791
+ j !== null && (cancelAnimationFrame(j), j = null), document.removeEventListener("mousemove", A), document.removeEventListener("mouseup", B), setTimeout(() => {
792
792
  p.value = !1;
793
793
  }, 0);
794
794
  };
795
- document.addEventListener("mousemove", P), document.addEventListener("mouseup", U);
795
+ document.addEventListener("mousemove", A), document.addEventListener("mouseup", B);
796
796
  }
797
- const { width: h } = ze(i, void 0, { box: "border-box" });
797
+ const { width: h } = je(i, void 0, { box: "border-box" });
798
798
  return ge([
799
799
  i,
800
800
  h,
@@ -817,27 +817,27 @@ const Wt = /* @__PURE__ */ W(Mt, [["render", Rt]]), Et = [
817
817
  ]) => {
818
818
  var j;
819
819
  G && G !== ((j = e.column) == null ? void 0 : j.name) && t.emit("remove:scrollOffset", G), t.emit("update:scrollOffset", o, y, e.column);
820
- }), Me(() => {
820
+ }), We(() => {
821
821
  var o;
822
822
  (o = e.column) != null && o.name && t.emit("remove:scrollOffset", e.column.name);
823
823
  }), {
824
824
  root: i,
825
825
  rootStyles: f,
826
- rootInlineStyles: z,
827
- headerContentStyles: E,
826
+ rootInlineStyles: F,
827
+ headerContentStyles: W,
828
828
  headerContentInlineStyles: V,
829
829
  wrapInlineStyle: I,
830
830
  resizeHandleStyles: C,
831
831
  isSortable: D,
832
832
  isResizable: g,
833
833
  model: S,
834
- toggleSorting: F,
834
+ toggleSorting: E,
835
835
  onResizeStart: H,
836
836
  DATA_GRID_DEFAULT_MIN_WIDTH: ie
837
837
  };
838
838
  }
839
839
  });
840
- function Ht(e, t, i, D, g, f) {
840
+ function Nt(e, t, i, D, g, f) {
841
841
  const C = v("OrIcon");
842
842
  return n(), b("div", {
843
843
  ref: "root",
@@ -870,7 +870,7 @@ function Ht(e, t, i, D, g, f) {
870
870
  }, null, 34)) : k("", !0)
871
871
  ], 6);
872
872
  }
873
- const jt = /* @__PURE__ */ W(zt, [["render", Ht]]), Nt = [
873
+ const Pt = /* @__PURE__ */ R(jt, [["render", Nt]]), Ut = [
874
874
  // Position
875
875
  "sticky top-0 z-[10]",
876
876
  // Layout
@@ -882,7 +882,7 @@ const jt = /* @__PURE__ */ W(zt, [["render", Ht]]), Nt = [
882
882
  "dark:children:theme-foreground-default-dark",
883
883
  "children:theme-background-surface-variant-1",
884
884
  "dark:children:theme-background-surface-variant-1-dark"
885
- ], Pt = {
885
+ ], At = {
886
886
  [w.Standard]: [
887
887
  // Box
888
888
  "min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
@@ -899,7 +899,7 @@ const jt = /* @__PURE__ */ W(zt, [["render", Ht]]), Nt = [
899
899
  // Box
900
900
  "min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
901
901
  ]
902
- }, Ut = R({
902
+ }, Lt = M({
903
903
  name: "OrDataGridTableHeaderRow",
904
904
  props: {
905
905
  variant: {
@@ -911,10 +911,10 @@ const jt = /* @__PURE__ */ W(zt, [["render", Ht]]), Nt = [
911
911
  "root"
912
912
  ],
913
913
  setup(e) {
914
- const t = T(), i = s(() => [
914
+ const t = T(), i = r(() => [
915
915
  "or-data-grid-table-header-row-v3",
916
- ...Nt,
917
- ...Pt[e.variant]
916
+ ...Ut,
917
+ ...At[e.variant]
918
918
  ]);
919
919
  return {
920
920
  root: t,
@@ -922,7 +922,7 @@ const jt = /* @__PURE__ */ W(zt, [["render", Ht]]), Nt = [
922
922
  };
923
923
  }
924
924
  });
925
- function At(e, t, i, D, g, f) {
925
+ function qt(e, t, i, D, g, f) {
926
926
  return n(), b("div", {
927
927
  ref: "root",
928
928
  class: u(e.rootStyles)
@@ -930,18 +930,18 @@ function At(e, t, i, D, g, f) {
930
930
  m(e.$slots, "default")
931
931
  ], 2);
932
932
  }
933
- const Lt = /* @__PURE__ */ W(Ut, [["render", At]]), qt = [
933
+ const Bt = /* @__PURE__ */ R(Lt, [["render", qt]]), Kt = [
934
934
  // Layout
935
935
  "contents"
936
- ], Bt = R({
936
+ ], Xt = M({
937
937
  name: "OrDataGridTableHeader",
938
938
  expose: [
939
939
  "root"
940
940
  ],
941
941
  setup() {
942
- const e = T(), t = s(() => [
942
+ const e = T(), t = r(() => [
943
943
  "or-data-grid-table-header-v3",
944
- ...qt
944
+ ...Kt
945
945
  ]);
946
946
  return {
947
947
  root: e,
@@ -949,7 +949,7 @@ const Lt = /* @__PURE__ */ W(Ut, [["render", At]]), qt = [
949
949
  };
950
950
  }
951
951
  });
952
- function Kt(e, t, i, D, g, f) {
952
+ function Jt(e, t, i, D, g, f) {
953
953
  return n(), b("div", {
954
954
  ref: "root",
955
955
  class: u(e.rootStyles)
@@ -957,7 +957,7 @@ function Kt(e, t, i, D, g, f) {
957
957
  m(e.$slots, "default")
958
958
  ], 2);
959
959
  }
960
- const Xt = /* @__PURE__ */ W(Bt, [["render", Kt]]), Jt = [
960
+ const Qt = /* @__PURE__ */ R(Xt, [["render", Jt]]), Yt = [
961
961
  // Layout
962
962
  "layout-row justify-center items-center",
963
963
  // Spacing
@@ -971,7 +971,7 @@ const Xt = /* @__PURE__ */ W(Bt, [["render", Kt]]), Jt = [
971
971
  "dark:theme-foreground-default-dark",
972
972
  "theme-background-default",
973
973
  "dark:theme-background-default-dark"
974
- ], Qt = {
974
+ ], Zt = {
975
975
  [w.Standard]: [
976
976
  // Box
977
977
  "min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
@@ -988,7 +988,7 @@ const Xt = /* @__PURE__ */ W(Bt, [["render", Kt]]), Jt = [
988
988
  // Box
989
989
  "min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
990
990
  ]
991
- }, Yt = R({
991
+ }, xt = M({
992
992
  name: "OrDataGridTablePlaceholder",
993
993
  props: {
994
994
  variant: {
@@ -1000,10 +1000,10 @@ const Xt = /* @__PURE__ */ W(Bt, [["render", Kt]]), Jt = [
1000
1000
  "root"
1001
1001
  ],
1002
1002
  setup(e) {
1003
- const t = T(), i = s(() => [
1003
+ const t = T(), i = r(() => [
1004
1004
  "or-data-grid-table-placeholder-v3",
1005
- ...Jt,
1006
- ...Qt[e.variant]
1005
+ ...Yt,
1006
+ ...Zt[e.variant]
1007
1007
  ]);
1008
1008
  return {
1009
1009
  root: t,
@@ -1011,7 +1011,7 @@ const Xt = /* @__PURE__ */ W(Bt, [["render", Kt]]), Jt = [
1011
1011
  };
1012
1012
  }
1013
1013
  });
1014
- function Zt(e, t, i, D, g, f) {
1014
+ function _t(e, t, i, D, g, f) {
1015
1015
  return n(), b("div", {
1016
1016
  ref: "root",
1017
1017
  class: u(e.rootStyles)
@@ -1019,7 +1019,7 @@ function Zt(e, t, i, D, g, f) {
1019
1019
  m(e.$slots, "default")
1020
1020
  ], 2);
1021
1021
  }
1022
- const xt = /* @__PURE__ */ W(Yt, [["render", Zt]]), _t = [
1022
+ const ea = /* @__PURE__ */ R(xt, [["render", _t]]), ta = [
1023
1023
  // Layout
1024
1024
  "grid content-start",
1025
1025
  "w-full min-w-0 min-h-0",
@@ -1027,7 +1027,7 @@ const xt = /* @__PURE__ */ W(Yt, [["render", Zt]]), _t = [
1027
1027
  "overflow-auto",
1028
1028
  // Interactivity
1029
1029
  "interactivity-default"
1030
- ], ea = R({
1030
+ ], aa = M({
1031
1031
  name: "OrDataGridTable",
1032
1032
  props: {
1033
1033
  columns: {
@@ -1047,16 +1047,16 @@ const xt = /* @__PURE__ */ W(Yt, [["render", Zt]]), _t = [
1047
1047
  "root"
1048
1048
  ],
1049
1049
  setup(e) {
1050
- const t = T(), i = s(() => [
1050
+ const t = T(), i = r(() => [
1051
1051
  "or-data-grid-table-v3",
1052
- ..._t
1053
- ]), D = s(() => {
1052
+ ...ta
1053
+ ]), D = r(() => {
1054
1054
  const g = e.columns.map((f) => {
1055
1055
  const C = e.columnWidths[f.name] || f.width;
1056
1056
  if (C && (C.includes("minmax") || C.includes("calc")))
1057
1057
  return C;
1058
- const I = C ?? "1fr", 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})`;
1058
+ const I = C ?? "1fr", F = f.minWidth || (C ? ie : f.fitContent || f.stickiness ? "max-content" : "120px"), p = f.maxWidth || (C ? I === "max-content" ? "max-content" : I : f.fitContent || f.minWidth || f.stickiness ? "max-content" : "1fr");
1059
+ return f.fitContent ? "max-content" : I.endsWith("px") ? I : `minmax(${F}, ${p})`;
1060
1060
  });
1061
1061
  return e.features.selecting ? { gridTemplateColumns: `${he} ${g.join(" ")}` } : { gridTemplateColumns: g.join(" ") };
1062
1062
  });
@@ -1067,7 +1067,7 @@ const xt = /* @__PURE__ */ W(Yt, [["render", Zt]]), _t = [
1067
1067
  };
1068
1068
  }
1069
1069
  });
1070
- function ta(e, t, i, D, g, f) {
1070
+ function na(e, t, i, D, g, f) {
1071
1071
  return n(), b("div", {
1072
1072
  ref: "root",
1073
1073
  class: u(e.rootStyles),
@@ -1076,21 +1076,21 @@ function ta(e, t, i, D, g, f) {
1076
1076
  m(e.$slots, "default")
1077
1077
  ], 6);
1078
1078
  }
1079
- const aa = /* @__PURE__ */ W(ea, [["render", ta]]), na = [
1079
+ const oa = /* @__PURE__ */ R(aa, [["render", na]]), ra = [
1080
1080
  // Layout
1081
1081
  "layout-row",
1082
1082
  // Spacing
1083
1083
  "gap-xl",
1084
1084
  "pb-md"
1085
- ], oa = R({
1085
+ ], sa = M({
1086
1086
  name: "OrDataGridToolbar",
1087
1087
  expose: [
1088
1088
  "root"
1089
1089
  ],
1090
1090
  setup() {
1091
- const e = T(), t = s(() => [
1091
+ const e = T(), t = r(() => [
1092
1092
  "or-data-grid-toolbar-v3",
1093
- ...na
1093
+ ...ra
1094
1094
  ]);
1095
1095
  return {
1096
1096
  root: e,
@@ -1098,7 +1098,7 @@ const aa = /* @__PURE__ */ W(ea, [["render", ta]]), na = [
1098
1098
  };
1099
1099
  }
1100
1100
  });
1101
- function ra(e, t, i, D, g, f) {
1101
+ function la(e, t, i, D, g, f) {
1102
1102
  return n(), b("div", {
1103
1103
  ref: "root",
1104
1104
  class: u(e.rootStyles)
@@ -1106,12 +1106,12 @@ function ra(e, t, i, D, g, f) {
1106
1106
  m(e.$slots, "default")
1107
1107
  ], 2);
1108
1108
  }
1109
- const sa = /* @__PURE__ */ W(oa, [["render", ra]]), la = [
1109
+ const ia = /* @__PURE__ */ R(sa, [["render", la]]), da = [
1110
1110
  // Position
1111
1111
  "grid sticky z-10",
1112
1112
  // Layout
1113
1113
  "col-span-full"
1114
- ], ia = {
1114
+ ], ca = {
1115
1115
  [w.Standard]: [
1116
1116
  // Position
1117
1117
  "top-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
@@ -1128,9 +1128,9 @@ const sa = /* @__PURE__ */ W(oa, [["render", ra]]), la = [
1128
1128
  // Position
1129
1129
  "top-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
1130
1130
  ]
1131
- }, da = R({
1131
+ }, ua = M({
1132
1132
  components: {
1133
- OrNotification: Xe
1133
+ OrNotification: Qe
1134
1134
  },
1135
1135
  props: {
1136
1136
  notification: {
@@ -1147,20 +1147,20 @@ const sa = /* @__PURE__ */ W(oa, [["render", ra]]), la = [
1147
1147
  ],
1148
1148
  setup(e) {
1149
1149
  return {
1150
- rootStyles: s(() => [
1150
+ rootStyles: r(() => [
1151
1151
  "or-data-grid-notification-v3",
1152
- ...la,
1153
- ...ia[e.variant]
1152
+ ...da,
1153
+ ...ca[e.variant]
1154
1154
  ])
1155
1155
  };
1156
1156
  }
1157
1157
  });
1158
- function ca(e, t, i, D, g, f) {
1158
+ function ma(e, t, i, D, g, f) {
1159
1159
  const C = v("OrNotification");
1160
1160
  return n(), b("div", {
1161
1161
  class: u(e.rootStyles)
1162
1162
  }, [
1163
- N(C, Re(e.notification, {
1163
+ U(C, Ee(e.notification, {
1164
1164
  class: "rounded-0 shadow-none",
1165
1165
  onClose: t[0] || (t[0] = (I) => e.$emit("close-notification"))
1166
1166
  }), {
@@ -1171,7 +1171,7 @@ function ca(e, t, i, D, g, f) {
1171
1171
  }, 16)
1172
1172
  ], 2);
1173
1173
  }
1174
- const ua = /* @__PURE__ */ W(da, [["render", ca]]), ma = [
1174
+ const fa = /* @__PURE__ */ R(ua, [["render", ma]]), ga = [
1175
1175
  // Layout
1176
1176
  "grid col-span-full grid-cols-[subgrid]",
1177
1177
  // Typography
@@ -1184,7 +1184,7 @@ const ua = /* @__PURE__ */ W(da, [["render", ca]]), ma = [
1184
1184
  "dark:children:theme-foreground-default-dark",
1185
1185
  "children:theme-background-default",
1186
1186
  "dark:children:theme-background-default-dark"
1187
- ], fa = {
1187
+ ], ha = {
1188
1188
  [w.Standard]: [
1189
1189
  // Box
1190
1190
  "min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
@@ -1201,7 +1201,7 @@ const ua = /* @__PURE__ */ W(da, [["render", ca]]), ma = [
1201
1201
  // Box
1202
1202
  "min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
1203
1203
  ]
1204
- }, ga = R({
1204
+ }, ya = M({
1205
1205
  name: "OrDataGridTableExtraRow",
1206
1206
  props: {
1207
1207
  variant: {
@@ -1213,10 +1213,10 @@ const ua = /* @__PURE__ */ W(da, [["render", ca]]), ma = [
1213
1213
  "root"
1214
1214
  ],
1215
1215
  setup(e) {
1216
- const t = T(), i = s(() => [
1216
+ const t = T(), i = r(() => [
1217
1217
  "or-data-grid-table-extra-row-v3",
1218
- ...ma,
1219
- ...fa[e.variant]
1218
+ ...ga,
1219
+ ...ha[e.variant]
1220
1220
  ]);
1221
1221
  return {
1222
1222
  root: t,
@@ -1224,7 +1224,7 @@ const ua = /* @__PURE__ */ W(da, [["render", ca]]), ma = [
1224
1224
  };
1225
1225
  }
1226
1226
  });
1227
- function ha(e, t, i, D, g, f) {
1227
+ function va(e, t, i, D, g, f) {
1228
1228
  return n(), b("div", {
1229
1229
  ref: "root",
1230
1230
  class: u(e.rootStyles)
@@ -1232,33 +1232,33 @@ function ha(e, t, i, D, g, f) {
1232
1232
  m(e.$slots, "default")
1233
1233
  ], 2);
1234
1234
  }
1235
- const ya = /* @__PURE__ */ W(ga, [["render", ha]]), va = [
1235
+ const ka = /* @__PURE__ */ R(ya, [["render", va]]), ba = [
1236
1236
  // Layout
1237
1237
  "layout-column min-h-0 w-full"
1238
- ], ka = R({
1238
+ ], pa = M({
1239
1239
  name: "OrDataGrid",
1240
1240
  components: {
1241
1241
  OrCheckbox: fe,
1242
- OrDataGridFooter: _e,
1243
- OrDataGridHeader: rt,
1244
- OrDataGridTable: aa,
1245
- OrDataGridTableContent: pt,
1246
- OrDataGridTableContentCell: ct,
1247
- OrDataGridTableContentRow: yt,
1248
- OrDataGridTableFooter: Wt,
1249
- OrDataGridTableFooterCell: Dt,
1250
- OrDataGridTableFooterRow: Vt,
1251
- OrDataGridTableExtraRow: ya,
1252
- OrDataGridTableHeader: Xt,
1253
- OrDataGridTableHeaderCell: jt,
1254
- OrDataGridTableHeaderRow: Lt,
1255
- OrDataGridTablePlaceholder: xt,
1256
- OrDataGridToolbar: sa,
1257
- OrDataGridNotification: ua,
1258
- OrIconButton: Te,
1259
- OrPagination: Ge,
1260
- OrSearch: Ve,
1261
- OrSkeletonText: Ie
1242
+ OrDataGridFooter: tt,
1243
+ OrDataGridHeader: lt,
1244
+ OrDataGridTable: oa,
1245
+ OrDataGridTableContent: $t,
1246
+ OrDataGridTableContentCell: mt,
1247
+ OrDataGridTableContentRow: kt,
1248
+ OrDataGridTableFooter: zt,
1249
+ OrDataGridTableFooterCell: Ct,
1250
+ OrDataGridTableFooterRow: Mt,
1251
+ OrDataGridTableExtraRow: ka,
1252
+ OrDataGridTableHeader: Qt,
1253
+ OrDataGridTableHeaderCell: Pt,
1254
+ OrDataGridTableHeaderRow: Bt,
1255
+ OrDataGridTablePlaceholder: ea,
1256
+ OrDataGridToolbar: ia,
1257
+ OrDataGridNotification: fa,
1258
+ OrIconButton: Ve,
1259
+ OrPagination: Ie,
1260
+ OrSearch: Me,
1261
+ OrSkeletonText: Re
1262
1262
  },
1263
1263
  model: {
1264
1264
  prop: "modelValue",
@@ -1277,15 +1277,6 @@ const ya = /* @__PURE__ */ W(ga, [["render", ha]]), va = [
1277
1277
  type: [String, Function],
1278
1278
  default: "id"
1279
1279
  },
1280
- hierarchyColumn: {
1281
- type: [String, Function],
1282
- default: void 0
1283
- },
1284
- hierarchyIndent: {
1285
- type: Number,
1286
- default: 24,
1287
- validator: (e) => Number.isFinite(e) && e >= 0
1288
- },
1289
1280
  columns: {
1290
1281
  type: Array,
1291
1282
  required: !0
@@ -1325,30 +1316,30 @@ const ya = /* @__PURE__ */ W(ga, [["render", ha]]), va = [
1325
1316
  "root"
1326
1317
  ],
1327
1318
  setup(e, t) {
1328
- const i = T(), D = T(), g = T(), f = s(() => [
1319
+ const i = T(), D = T(), g = T(), f = r(() => [
1329
1320
  "or-data-grid-v3",
1330
- ...va
1331
- ]), C = s(() => {
1321
+ ...ba
1322
+ ]), C = r(() => {
1332
1323
  const a = {
1333
- scrollPaddingInlineStart: `${[...q.values()].reduce((c, d) => c + d, 0)}px`,
1334
- scrollPaddingInlineEnd: `${[...B.values()].reduce((c, d) => c + d, 0)}px`
1324
+ scrollPaddingInlineStart: `${[...P.values()].reduce((d, c) => d + c, 0)}px`,
1325
+ scrollPaddingInlineEnd: `${[...L.values()].reduce((d, c) => d + c, 0)}px`
1335
1326
  };
1336
- return q.forEach((c, d) => {
1337
- a[`--or-dg-col-width-${d}`] = `${c}px`;
1338
- }), B.forEach((c, d) => {
1339
- a[`--or-dg-col-width-${d}`] = `${c}px`;
1327
+ return P.forEach((d, c) => {
1328
+ a[`--or-dg-col-width-${c}`] = `${d}px`;
1329
+ }), L.forEach((d, c) => {
1330
+ a[`--or-dg-col-width-${c}`] = `${d}px`;
1340
1331
  }), a;
1341
- }), I = s({
1342
- get: () => !!(e.items && e.items.length) && e.items.every((a) => z.value.includes(_(a))),
1332
+ }), I = r({
1333
+ get: () => !!(e.items && e.items.length) && e.items.every((a) => F.value.includes(_(a))),
1343
1334
  set: (a) => {
1344
- a && e.items ? z.value = [
1335
+ a && e.items ? F.value = [
1345
1336
  .../* @__PURE__ */ new Set([
1346
- ...z.value,
1347
- ...e.items.map((c) => _(c))
1337
+ ...F.value,
1338
+ ...e.items.map((d) => _(d))
1348
1339
  ])
1349
- ] : z.value = [];
1340
+ ] : F.value = [];
1350
1341
  }
1351
- }), z = s({
1342
+ }), F = r({
1352
1343
  get: () => e.modelValue && e.modelValue.selecting || [],
1353
1344
  set: (a) => {
1354
1345
  t.emit("update:modelValue", {
@@ -1356,7 +1347,7 @@ const ya = /* @__PURE__ */ W(ga, [["render", ha]]), va = [
1356
1347
  selecting: a
1357
1348
  });
1358
1349
  }
1359
- }), p = s({
1350
+ }), p = r({
1360
1351
  get: () => e.modelValue && e.modelValue.filtering,
1361
1352
  set: (a) => {
1362
1353
  t.emit("update:modelValue", {
@@ -1368,7 +1359,7 @@ const ya = /* @__PURE__ */ W(ga, [["render", ha]]), va = [
1368
1359
  } : void 0
1369
1360
  });
1370
1361
  }
1371
- }), S = s({
1362
+ }), S = r({
1372
1363
  get: () => e.modelValue && e.modelValue.searching,
1373
1364
  set: (a) => {
1374
1365
  t.emit("update:modelValue", {
@@ -1380,7 +1371,7 @@ const ya = /* @__PURE__ */ W(ga, [["render", ha]]), va = [
1380
1371
  } : void 0
1381
1372
  });
1382
1373
  }
1383
- }), E = s({
1374
+ }), W = r({
1384
1375
  get: () => e.modelValue && e.modelValue.sorting,
1385
1376
  set: (a) => {
1386
1377
  t.emit("update:modelValue", {
@@ -1392,7 +1383,7 @@ const ya = /* @__PURE__ */ W(ga, [["render", ha]]), va = [
1392
1383
  } : void 0
1393
1384
  });
1394
1385
  }
1395
- }), V = s({
1386
+ }), V = r({
1396
1387
  get: () => e.modelValue && e.modelValue.paging,
1397
1388
  set: (a) => {
1398
1389
  t.emit("update:modelValue", {
@@ -1400,7 +1391,7 @@ const ya = /* @__PURE__ */ W(ga, [["render", ha]]), va = [
1400
1391
  paging: a
1401
1392
  });
1402
1393
  }
1403
- }), F = s({
1394
+ }), E = r({
1404
1395
  get: () => e.modelValue && e.modelValue.expanded || [],
1405
1396
  set: (a) => {
1406
1397
  t.emit("update:modelValue", {
@@ -1408,10 +1399,10 @@ const ya = /* @__PURE__ */ W(ga, [["render", ha]]), va = [
1408
1399
  expanded: a
1409
1400
  });
1410
1401
  }
1411
- }), H = (a) => F.value.indexOf(_(a)) !== -1, h = (a) => {
1402
+ }), H = (a) => E.value.indexOf(_(a)) !== -1, h = (a) => {
1412
1403
  if (!a.children || a.children.length === 0) return;
1413
- const c = _(a), d = F.value;
1414
- d.indexOf(c) === -1 ? F.value = [...d, c] : F.value = d.filter((A) => A !== c);
1404
+ const d = _(a), c = E.value;
1405
+ c.indexOf(d) === -1 ? E.value = [...c, d] : E.value = c.filter((X) => X !== d);
1415
1406
  };
1416
1407
  ge(() => V.value && V.value.offset, () => {
1417
1408
  g.value && g.value.root && g.value.root.scrollTo({
@@ -1419,143 +1410,147 @@ const ya = /* @__PURE__ */ W(ga, [["render", ha]]), va = [
1419
1410
  behavior: "smooth"
1420
1411
  });
1421
1412
  });
1422
- const o = s(() => !e.features.hierarchy || !e.items ? e.items || [] : Ce(e.items, H)), y = s(() => e.features.selecting && (typeof e.features.selecting == "object" ? e.features.selecting.showCounter !== !1 : !0)), G = s(() => !e.items || e.items.length === 0 || e.loading || typeof e.features.selecting == "object" && e.features.selecting.disabled), j = s(() => {
1413
+ const o = r(() => !e.features.hierarchy || !e.items ? e.items || [] : Ge(e.items, H)), y = r(() => e.features.selecting && (typeof e.features.selecting == "object" ? e.features.selecting.showCounter !== !1 : !0)), G = r(() => !e.items || e.items.length === 0 || e.loading || typeof e.features.selecting == "object" && e.features.selecting.disabled), j = r(() => {
1423
1414
  const a = V.value;
1424
1415
  return a && a.limit || 10;
1425
- }), P = T({}), U = s(() => e.columns), Y = s(() => {
1416
+ }), A = T({}), B = r(() => e.columns), Q = r(() => typeof e.features.hierarchy == "object" ? e.features.hierarchy : void 0), Y = r(() => {
1426
1417
  var d;
1427
- const a = new Set(U.value.map((M) => M.name)), c = (d = U.value[0]) == null ? void 0 : d.name;
1428
- return new Map(o.value.map((M) => {
1429
- const A = e.features.hierarchy ? typeof e.hierarchyColumn == "function" ? e.hierarchyColumn(M) : e.hierarchyColumn : void 0;
1430
- return [M, A !== void 0 && a.has(A) ? A : c];
1418
+ const a = (d = Q.value) == null ? void 0 : d.indent;
1419
+ return typeof a == "number" && Number.isFinite(a) && a >= 0 ? a : 24;
1420
+ }), Z = r(() => {
1421
+ var z, X;
1422
+ const a = new Set(B.value.map((q) => q.name)), d = (z = B.value[0]) == null ? void 0 : z.name, c = (X = Q.value) == null ? void 0 : X.column;
1423
+ return new Map(o.value.map((q) => {
1424
+ const N = typeof c == "function" ? c(q) : c;
1425
+ return [q, N !== void 0 && a.has(N) ? N : d];
1431
1426
  }));
1432
- }), q = ue(/* @__PURE__ */ new Map()), B = ue(/* @__PURE__ */ new Map()), K = s(() => {
1433
- const a = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map(), d = [], M = [];
1434
- e.features.selecting && d.push({
1427
+ }), P = ue(/* @__PURE__ */ new Map()), L = ue(/* @__PURE__ */ new Map()), s = r(() => {
1428
+ const a = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Map(), c = [], z = [];
1429
+ e.features.selecting && c.push({
1435
1430
  name: "_check",
1436
1431
  stickiness: "start",
1437
1432
  alignment: "center"
1438
- }), U.value.forEach((L) => {
1439
- L.stickiness === "start" ? d.push(L) : L.stickiness === "end" && M.push(L);
1433
+ }), B.value.forEach((N) => {
1434
+ N.stickiness === "start" ? c.push(N) : N.stickiness === "end" && z.push(N);
1440
1435
  });
1441
- let A = "0px";
1442
- d.forEach((L) => {
1443
- a.set(L.name, A), A = `calc(${A} + var(--or-dg-col-width-${L.name}, 0px))`;
1436
+ let X = "0px";
1437
+ c.forEach((N) => {
1438
+ a.set(N.name, X), X = `calc(${X} + var(--or-dg-col-width-${N.name}, 0px))`;
1444
1439
  });
1445
- let Z = "0px";
1446
- return [...M].reverse().forEach((L) => {
1447
- c.set(L.name, Z), Z = `calc(${Z} + var(--or-dg-col-width-${L.name}, 0px))`;
1440
+ let q = "0px";
1441
+ return [...z].reverse().forEach((N) => {
1442
+ d.set(N.name, q), q = `calc(${q} + var(--or-dg-col-width-${N.name}, 0px))`;
1448
1443
  }), {
1449
1444
  start: a,
1450
- end: c
1445
+ end: d
1451
1446
  };
1452
1447
  });
1453
- function Q(a) {
1448
+ function l(a) {
1454
1449
  S.value = a;
1455
1450
  }
1456
- function r(a, c, d) {
1457
- switch (d.stickiness) {
1451
+ function K(a, d, c) {
1452
+ switch (c.stickiness) {
1458
1453
  case "start":
1459
- q.set(d.name, c), B.delete(d.name);
1454
+ P.set(c.name, d), L.delete(c.name);
1460
1455
  break;
1461
1456
  case "end":
1462
- q.delete(d.name), B.set(d.name, c);
1457
+ P.delete(c.name), L.set(c.name, d);
1463
1458
  break;
1464
1459
  default:
1465
- de(d.name);
1460
+ de(c.name);
1466
1461
  break;
1467
1462
  }
1468
1463
  }
1469
- function l(a) {
1464
+ function x(a) {
1470
1465
  e.interactiveRows && t.emit("hover:row", a);
1471
1466
  }
1472
- function X(a) {
1467
+ function ye(a) {
1473
1468
  e.interactiveRows && t.emit("blur:row", a);
1474
1469
  }
1475
- function x(a, c, d) {
1470
+ function ve(a, d, c) {
1476
1471
  e.interactiveRows && t.emit("hover:cell", {
1477
1472
  item: a,
1478
- columnName: c,
1479
- value: d
1473
+ columnName: d,
1474
+ value: c
1480
1475
  });
1481
1476
  }
1482
- function ye(a, c, d) {
1477
+ function ke(a, d, c) {
1483
1478
  e.interactiveRows && t.emit("blur:cell", {
1484
1479
  item: a,
1485
- columnName: c,
1486
- value: d
1480
+ columnName: d,
1481
+ value: c
1487
1482
  });
1488
1483
  }
1489
- function ve(a) {
1484
+ function be(a) {
1490
1485
  e.interactiveRows && t.emit("click:row", a);
1491
1486
  }
1492
- const ke = me(be, 500);
1493
- function be() {
1494
- var c;
1487
+ const pe = me(Oe, 500);
1488
+ function Oe() {
1489
+ var d;
1495
1490
  if (typeof window > "u" || !e.features.storageKey) return;
1496
1491
  const a = {};
1497
- U.value.forEach((d) => {
1498
- const M = P.value[d.name] || d.width;
1499
- d.name && M && (a[d.name] = M);
1492
+ B.value.forEach((c) => {
1493
+ const z = A.value[c.name] || c.width;
1494
+ c.name && z && (a[c.name] = z);
1500
1495
  }), localStorage.setItem(`or-data-grid-v3-widths-${e.features.storageKey}`, JSON.stringify({
1501
1496
  widths: a,
1502
- containerWidth: (c = i.value) == null ? void 0 : c.offsetWidth
1497
+ containerWidth: (d = i.value) == null ? void 0 : d.offsetWidth
1503
1498
  }));
1504
1499
  }
1505
1500
  const ne = T(!1);
1506
- function pe(a, c) {
1507
- ne.value = !0, P.value = {
1508
- ...P.value,
1509
- [a.name]: `${c}px`
1510
- }, e.features.storageKey && ke(), Oe();
1501
+ function $e(a, d) {
1502
+ ne.value = !0, A.value = {
1503
+ ...A.value,
1504
+ [a.name]: `${d}px`
1505
+ }, e.features.storageKey && pe(), we();
1511
1506
  }
1512
- const Oe = me(() => {
1507
+ const we = me(() => {
1513
1508
  ne.value = !1;
1514
- }, 1e3), $e = T(0);
1515
- function we() {
1509
+ }, 1e3), De = T(0);
1510
+ function Se() {
1516
1511
  if (!(typeof window > "u" || !e.features.storageKey))
1517
1512
  try {
1518
1513
  const a = localStorage.getItem(`or-data-grid-v3-widths-${e.features.storageKey}`);
1519
1514
  if (a) {
1520
- const c = JSON.parse(a), d = c.widths || c, M = c.containerWidth;
1521
- if (M && i.value && Math.abs(i.value.offsetWidth - M) > 10) {
1522
- $e.value = M;
1515
+ const d = JSON.parse(a), c = d.widths || d, z = d.containerWidth;
1516
+ if (z && i.value && Math.abs(i.value.offsetWidth - z) > 10) {
1517
+ De.value = z;
1523
1518
  return;
1524
1519
  }
1525
- P.value = d;
1520
+ A.value = c;
1526
1521
  }
1527
1522
  } catch (a) {
1528
1523
  console.error("[OrDataGrid]: Failed to load column widths from localStorage", a);
1529
1524
  }
1530
1525
  }
1531
- He(i, (a) => {
1532
- const c = a[0], { width: d } = c.contentRect;
1533
- if (!(d <= 0 || ne.value || !e.features.storageKey) && Object.keys(P.value).length > 0) {
1534
- const M = localStorage.getItem(`or-data-grid-v3-widths-${e.features.storageKey}`);
1535
- if (M)
1526
+ Ne(i, (a) => {
1527
+ const d = a[0], { width: c } = d.contentRect;
1528
+ if (!(c <= 0 || ne.value || !e.features.storageKey) && Object.keys(A.value).length > 0) {
1529
+ const z = localStorage.getItem(`or-data-grid-v3-widths-${e.features.storageKey}`);
1530
+ if (z)
1536
1531
  try {
1537
- const Z = JSON.parse(M).containerWidth;
1538
- Z && Math.abs(d - Z) > 10 && (P.value = {});
1532
+ const q = JSON.parse(z).containerWidth;
1533
+ q && Math.abs(c - q) > 10 && (A.value = {});
1539
1534
  } catch {
1540
1535
  }
1541
1536
  }
1542
- }), We(() => {
1543
- we();
1537
+ }), ze(() => {
1538
+ Se();
1544
1539
  });
1545
1540
  function de(a) {
1546
- q.delete(a), B.delete(a);
1541
+ P.delete(a), L.delete(a);
1547
1542
  }
1548
- function De(a) {
1543
+ function Ce(a) {
1549
1544
  a.currentTarget.scrollIntoView({ block: "nearest" });
1550
1545
  }
1551
- function ce(a, c) {
1552
- return a[c];
1546
+ function ce(a, d) {
1547
+ return a[d];
1553
1548
  }
1554
1549
  function _(a) {
1555
1550
  return typeof e.itemKey == "function" ? e.itemKey(a) : ce(a, e.itemKey);
1556
1551
  }
1557
- function Se(a, c, d) {
1558
- a[c] = d;
1552
+ function Te(a, d, c) {
1553
+ a[d] = c;
1559
1554
  }
1560
1555
  return {
1561
1556
  root: i,
@@ -1566,27 +1561,28 @@ const ya = /* @__PURE__ */ W(ga, [["render", ha]]), va = [
1566
1561
  showSelectingCouter: y,
1567
1562
  selectingDisabled: G,
1568
1563
  skeletonsLength: j,
1569
- actualColumns: U,
1564
+ actualColumns: B,
1570
1565
  actualItems: o,
1571
- hierarchyColumns: Y,
1572
- handleMouseEnterRow: l,
1573
- handleMouseLeaveRow: X,
1574
- handleMouseEnterCell: x,
1575
- handleMouseLeaveCell: ye,
1576
- handleRowClick: ve,
1566
+ hierarchyColumns: Z,
1567
+ hierarchyIndent: Y,
1568
+ handleMouseEnterRow: x,
1569
+ handleMouseLeaveRow: ye,
1570
+ handleMouseEnterCell: ve,
1571
+ handleMouseLeaveCell: ke,
1572
+ handleRowClick: be,
1577
1573
  toggleExpand: h,
1578
1574
  isExpanded: H,
1579
- updateColumnWidth: pe,
1580
- columnWidths: P,
1581
- selectingModel: z,
1575
+ updateColumnWidth: $e,
1576
+ columnWidths: A,
1577
+ selectingModel: F,
1582
1578
  filteringModel: p,
1583
1579
  searchingModel: S,
1584
- sortingModel: E,
1580
+ sortingModel: W,
1585
1581
  pagingModel: V,
1586
- stickyOffsets: K,
1587
- updateScrollOffset: r,
1582
+ stickyOffsets: s,
1583
+ updateScrollOffset: K,
1588
1584
  removeScrollOffset: de,
1589
- updateSearchingModel: Q,
1585
+ updateSearchingModel: l,
1590
1586
  getItemValue: ce,
1591
1587
  getItemId: _,
1592
1588
  scrollToTop: () => {
@@ -1595,18 +1591,18 @@ const ya = /* @__PURE__ */ W(ga, [["render", ha]]), va = [
1595
1591
  behavior: "smooth"
1596
1592
  });
1597
1593
  },
1598
- scrollTo: De,
1599
- onInput: (a, c, d) => {
1600
- Se(a, c, d), t.emit("update:item", a);
1594
+ scrollTo: Ce,
1595
+ onInput: (a, d, c) => {
1596
+ Te(a, d, c), t.emit("update:item", a);
1601
1597
  }
1602
1598
  };
1603
1599
  }
1604
- }), ba = {
1600
+ }), Oa = {
1605
1601
  key: 0,
1606
1602
  class: "flex items-center justify-center w-6 h-6 shrink-0"
1607
1603
  };
1608
- function pa(e, t, i, D, g, f) {
1609
- const C = v("OrSearch"), I = v("OrDataGridHeader"), z = v("OrDataGridToolbar"), p = v("OrCheckbox"), S = v("OrDataGridTableHeaderCell"), E = v("OrDataGridTableHeaderRow"), V = v("OrDataGridTableHeader"), F = v("OrDataGridNotification"), H = v("OrDataGridTableExtraRow"), h = v("OrSkeletonText"), o = v("OrDataGridTableContentCell"), y = v("OrDataGridTableContentRow"), G = v("OrIconButton"), j = v("OrDataGridTablePlaceholder"), P = v("OrDataGridTableContent"), U = v("OrDataGridTable"), Y = v("OrDataGridTableFooterCell"), q = v("OrDataGridTableFooterRow"), B = v("OrDataGridTableFooter"), K = v("OrPagination"), Q = v("OrDataGridFooter");
1604
+ function $a(e, t, i, D, g, f) {
1605
+ const C = v("OrSearch"), I = v("OrDataGridHeader"), F = v("OrDataGridToolbar"), p = v("OrCheckbox"), S = v("OrDataGridTableHeaderCell"), W = v("OrDataGridTableHeaderRow"), V = v("OrDataGridTableHeader"), E = v("OrDataGridNotification"), H = v("OrDataGridTableExtraRow"), h = v("OrSkeletonText"), o = v("OrDataGridTableContentCell"), y = v("OrDataGridTableContentRow"), G = v("OrIconButton"), j = v("OrDataGridTablePlaceholder"), A = v("OrDataGridTableContent"), B = v("OrDataGridTable"), Q = v("OrDataGridTableFooterCell"), Y = v("OrDataGridTableFooterRow"), Z = v("OrDataGridTableFooter"), P = v("OrPagination"), L = v("OrDataGridFooter");
1610
1606
  return n(), b("div", {
1611
1607
  ref: "root",
1612
1608
  class: u(e.rootStyles)
@@ -1625,10 +1621,10 @@ function pa(e, t, i, D, g, f) {
1625
1621
  e.features.searching ? {
1626
1622
  name: "searching",
1627
1623
  fn: $(() => [
1628
- m(e.$slots, "search", Ee(Fe({ updateSearchingModel: e.updateSearchingModel, searchingModel: e.searchingModel })), () => [
1629
- N(C, {
1624
+ m(e.$slots, "search", Fe(He({ updateSearchingModel: e.updateSearchingModel, searchingModel: e.searchingModel })), () => [
1625
+ U(C, {
1630
1626
  modelValue: e.searchingModel,
1631
- "onUpdate:modelValue": t[0] || (t[0] = (r) => e.searchingModel = r)
1627
+ "onUpdate:modelValue": t[0] || (t[0] = (s) => e.searchingModel = s)
1632
1628
  }, null, 8, ["modelValue"])
1633
1629
  ])
1634
1630
  ]),
@@ -1642,7 +1638,7 @@ function pa(e, t, i, D, g, f) {
1642
1638
  key: "2"
1643
1639
  } : void 0
1644
1640
  ]), 1024)) : k("", !0),
1645
- e.$slots.toolbar ? (n(), O(z, {
1641
+ e.$slots.toolbar ? (n(), O(F, {
1646
1642
  key: 1,
1647
1643
  class: u(["shrink-0"])
1648
1644
  }, {
@@ -1651,7 +1647,7 @@ function pa(e, t, i, D, g, f) {
1651
1647
  ]),
1652
1648
  _: 3
1653
1649
  })) : k("", !0),
1654
- N(U, {
1650
+ U(B, {
1655
1651
  ref: "table",
1656
1652
  class: u(["grow", "overscroll-none", { "grid-rows-[auto_1fr]": e.items.length === 0 }]),
1657
1653
  style: J(e.tableInlineStyles),
@@ -1660,9 +1656,9 @@ function pa(e, t, i, D, g, f) {
1660
1656
  features: e.features
1661
1657
  }, {
1662
1658
  default: $(() => [
1663
- N(V, null, {
1659
+ U(V, null, {
1664
1660
  default: $(() => [
1665
- N(E, { variant: e.variant }, {
1661
+ U(W, { variant: e.variant }, {
1666
1662
  default: $(() => [
1667
1663
  e.features.selecting ? (n(), O(S, {
1668
1664
  key: 0,
@@ -1674,28 +1670,28 @@ function pa(e, t, i, D, g, f) {
1674
1670
  "onRemove:scrollOffset": e.removeScrollOffset
1675
1671
  }, {
1676
1672
  default: $(() => [
1677
- N(p, {
1673
+ U(p, {
1678
1674
  modelValue: e.selectingIndicator,
1679
- "onUpdate:modelValue": t[1] || (t[1] = (r) => e.selectingIndicator = r),
1675
+ "onUpdate:modelValue": t[1] || (t[1] = (s) => e.selectingIndicator = s),
1680
1676
  indeterminate: !e.selectingIndicator && e.selectingModel.length > 0,
1681
1677
  disabled: e.selectingDisabled
1682
1678
  }, null, 8, ["modelValue", "indeterminate", "disabled"])
1683
1679
  ]),
1684
1680
  _: 1
1685
1681
  }, 8, ["sticky-offset", "onUpdate:scrollOffset", "onRemove:scrollOffset"])) : k("", !0),
1686
- (n(!0), b(ee, null, te(e.actualColumns, (r) => (n(), O(S, {
1687
- key: r.name,
1682
+ (n(!0), b(ee, null, te(e.actualColumns, (s) => (n(), O(S, {
1683
+ key: s.name,
1688
1684
  modelValue: e.sortingModel,
1689
1685
  "onUpdate:modelValue": t[2] || (t[2] = (l) => e.sortingModel = l),
1690
- column: r,
1686
+ column: s,
1691
1687
  features: e.features,
1692
- "sticky-offset": r.stickiness === "start" ? e.stickyOffsets.start.get(r.name) : r.stickiness === "end" ? e.stickyOffsets.end.get(r.name) : void 0,
1688
+ "sticky-offset": s.stickiness === "start" ? e.stickyOffsets.start.get(s.name) : s.stickiness === "end" ? e.stickyOffsets.end.get(s.name) : void 0,
1693
1689
  "onUpdate:scrollOffset": e.updateScrollOffset,
1694
1690
  "onRemove:scrollOffset": e.removeScrollOffset,
1695
- "onUpdate:columnWidth": (l) => e.updateColumnWidth(r, l)
1691
+ "onUpdate:columnWidth": (l) => e.updateColumnWidth(s, l)
1696
1692
  }, {
1697
1693
  default: $(() => [
1698
- re(se(r.label), 1)
1694
+ re(se(s.label), 1)
1699
1695
  ]),
1700
1696
  _: 2
1701
1697
  }, 1032, ["modelValue", "column", "features", "sticky-offset", "onUpdate:scrollOffset", "onRemove:scrollOffset", "onUpdate:columnWidth"]))), 128))
@@ -1705,11 +1701,11 @@ function pa(e, t, i, D, g, f) {
1705
1701
  ]),
1706
1702
  _: 1
1707
1703
  }),
1708
- e.notification ? (n(), O(F, {
1704
+ e.notification ? (n(), O(E, {
1709
1705
  key: 0,
1710
1706
  notification: e.notification,
1711
1707
  variant: e.variant,
1712
- onCloseNotification: t[3] || (t[3] = (r) => e.$emit("close-notification"))
1708
+ onCloseNotification: t[3] || (t[3] = (s) => e.$emit("close-notification"))
1713
1709
  }, oe({ _: 2 }, [
1714
1710
  e.$slots.notification ? {
1715
1711
  name: "notification",
@@ -1719,7 +1715,7 @@ function pa(e, t, i, D, g, f) {
1719
1715
  key: "0"
1720
1716
  } : void 0
1721
1717
  ]), 1032, ["notification", "variant"])) : k("", !0),
1722
- N(P, null, {
1718
+ U(A, null, {
1723
1719
  default: $(() => [
1724
1720
  e.$slots["before-rows"] ? (n(), O(H, {
1725
1721
  key: 0,
@@ -1731,8 +1727,8 @@ function pa(e, t, i, D, g, f) {
1731
1727
  ]),
1732
1728
  _: 3
1733
1729
  }, 8, ["variant"])) : k("", !0),
1734
- e.loading ? (n(!0), b(ee, { key: 1 }, te(e.skeletonsLength, (r) => (n(), O(y, {
1735
- key: r,
1730
+ e.loading ? (n(!0), b(ee, { key: 1 }, te(e.skeletonsLength, (s) => (n(), O(y, {
1731
+ key: s,
1736
1732
  variant: e.variant,
1737
1733
  interactive: e.interactiveRows
1738
1734
  }, {
@@ -1746,7 +1742,7 @@ function pa(e, t, i, D, g, f) {
1746
1742
  class: "!px-none"
1747
1743
  }, {
1748
1744
  default: $(() => [
1749
- N(h)
1745
+ U(h)
1750
1746
  ]),
1751
1747
  _: 1
1752
1748
  }, 8, ["sticky-offset", "variant"])) : k("", !0),
@@ -1760,21 +1756,21 @@ function pa(e, t, i, D, g, f) {
1760
1756
  }, {
1761
1757
  default: $(() => [
1762
1758
  m(e.$slots, "column-loading", { column: l }, () => [
1763
- N(h)
1759
+ U(h)
1764
1760
  ])
1765
1761
  ]),
1766
1762
  _: 2
1767
1763
  }, 1032, ["column", "features", "sticky-offset", "variant"]))), 128))
1768
1764
  ]),
1769
1765
  _: 2
1770
- }, 1032, ["variant", "interactive"]))), 128)) : e.items.length > 0 ? (n(!0), b(ee, { key: 2 }, te(e.actualItems, (r) => (n(), O(y, {
1771
- key: e.getItemId(r),
1766
+ }, 1032, ["variant", "interactive"]))), 128)) : e.items.length > 0 ? (n(!0), b(ee, { key: 2 }, te(e.actualItems, (s) => (n(), O(y, {
1767
+ key: e.getItemId(s),
1772
1768
  variant: e.variant,
1773
- selected: e.selectingModel.includes(e.getItemId(r)),
1769
+ selected: e.selectingModel.includes(e.getItemId(s)),
1774
1770
  interactive: e.interactiveRows,
1775
- onMouseenter: () => e.handleMouseEnterRow(r),
1776
- onMouseleave: () => e.handleMouseLeaveRow(r),
1777
- onClick: () => e.handleRowClick(r)
1771
+ onMouseenter: () => e.handleMouseEnterRow(s),
1772
+ onMouseleave: () => e.handleMouseLeaveRow(s),
1773
+ onClick: () => e.handleRowClick(s)
1778
1774
  }, {
1779
1775
  default: $(() => [
1780
1776
  e.features.selecting ? (n(), O(o, {
@@ -1785,14 +1781,14 @@ function pa(e, t, i, D, g, f) {
1785
1781
  override: !0,
1786
1782
  "force-state": "none",
1787
1783
  class: "!px-none",
1788
- onMouseenter: () => e.handleMouseEnterCell(r, "selecting", e.selectingModel.indexOf(e.getItemId(r)) !== -1),
1789
- onMouseleave: () => e.handleMouseLeaveCell(r, "selecting", e.selectingModel.indexOf(e.getItemId(r)) !== -1)
1784
+ onMouseenter: () => e.handleMouseEnterCell(s, "selecting", e.selectingModel.indexOf(e.getItemId(s)) !== -1),
1785
+ onMouseleave: () => e.handleMouseLeaveCell(s, "selecting", e.selectingModel.indexOf(e.getItemId(s)) !== -1)
1790
1786
  }, {
1791
1787
  default: $(() => [
1792
- N(p, {
1788
+ U(p, {
1793
1789
  modelValue: e.selectingModel,
1794
1790
  "onUpdate:modelValue": t[4] || (t[4] = (l) => e.selectingModel = l),
1795
- value: e.getItemId(r),
1791
+ value: e.getItemId(s),
1796
1792
  disabled: e.selectingDisabled
1797
1793
  }, null, 8, ["modelValue", "value", "disabled"])
1798
1794
  ]),
@@ -1800,46 +1796,46 @@ function pa(e, t, i, D, g, f) {
1800
1796
  }, 1032, ["sticky-offset", "variant", "onMouseenter", "onMouseleave"])) : k("", !0),
1801
1797
  (n(!0), b(ee, null, te(e.actualColumns, (l) => (n(), O(o, {
1802
1798
  key: l.name,
1803
- "model-value": e.getItemValue(r, l.name),
1799
+ "model-value": e.getItemValue(s, l.name),
1804
1800
  column: l,
1805
1801
  features: e.features,
1806
1802
  "sticky-offset": l.stickiness === "start" ? e.stickyOffsets.start.get(l.name) : l.stickiness === "end" ? e.stickyOffsets.end.get(l.name) : void 0,
1807
1803
  variant: e.variant,
1808
- onInput: (X) => e.onInput(r, l.name, X),
1809
- onFocusin: t[6] || (t[6] = (X) => e.scrollTo(X)),
1810
- onMouseenter: () => e.handleMouseEnterCell(r, l.name, e.getItemValue(r, l.name)),
1811
- onMouseleave: () => e.handleMouseLeaveCell(r, l.name, e.getItemValue(r, l.name))
1804
+ onInput: (K) => e.onInput(s, l.name, K),
1805
+ onFocusin: t[6] || (t[6] = (K) => e.scrollTo(K)),
1806
+ onMouseenter: () => e.handleMouseEnterCell(s, l.name, e.getItemValue(s, l.name)),
1807
+ onMouseleave: () => e.handleMouseLeaveCell(s, l.name, e.getItemValue(s, l.name))
1812
1808
  }, {
1813
1809
  default: $(() => [
1814
1810
  le("div", {
1815
1811
  class: u(["flex items-center gap-xs h-full w-full min-w-0", [
1816
1812
  l.alignment === "end" ? "justify-end" : l.alignment === "center" ? "justify-center" : "justify-start"
1817
1813
  ]]),
1818
- style: J(l.name === e.hierarchyColumns.get(r) ? { paddingLeft: (r.level || 0) * e.hierarchyIndent + "px" } : void 0)
1814
+ style: J(l.name === e.hierarchyColumns.get(s) ? { paddingLeft: (s.level || 0) * e.hierarchyIndent + "px" } : void 0)
1819
1815
  }, [
1820
- l.name === e.hierarchyColumns.get(r) && e.features.hierarchy ? (n(), b("div", ba, [
1821
- r.children && r.children.length > 0 ? (n(), O(G, {
1816
+ l.name === e.hierarchyColumns.get(s) && e.features.hierarchy ? (n(), b("div", Oa, [
1817
+ s.children && s.children.length > 0 ? (n(), O(G, {
1822
1818
  key: 0,
1823
1819
  icon: "chevron_right",
1824
1820
  size: "m",
1825
- class: u(["transition-transform duration-200", { "rotate-90": e.isExpanded(r) }]),
1826
- onClick: ae((X) => e.toggleExpand(r), ["stop"]),
1821
+ class: u(["transition-transform duration-200", { "rotate-90": e.isExpanded(s) }]),
1822
+ onClick: ae((K) => e.toggleExpand(s), ["stop"]),
1827
1823
  onMousedown: t[5] || (t[5] = ae(() => {
1828
1824
  }, ["prevent"]))
1829
1825
  }, null, 8, ["class", "onClick"])) : k("", !0)
1830
1826
  ])) : k("", !0),
1831
1827
  le("div", {
1832
1828
  class: u(["min-w-0", [
1833
- l.name === e.hierarchyColumns.get(r) ? "flex-grow" : "",
1829
+ l.name === e.hierarchyColumns.get(s) ? "flex-grow" : "",
1834
1830
  l.alignment === "end" ? "text-end" : l.alignment === "center" ? "text-center" : "text-start",
1835
1831
  (l.wrapping !== void 0 && l.wrapping !== null ? l.wrapping : e.variant === "dynamic" && !l.control) ? "whitespace-pre-wrap break-words" : l.fitContent ? "" : "truncate"
1836
1832
  ]])
1837
1833
  }, [
1838
1834
  m(e.$slots, l.name, {
1839
1835
  column: l,
1840
- item: r
1836
+ item: s
1841
1837
  }, () => [
1842
- re(se(e.getItemValue(r, l.name)), 1)
1838
+ re(se(e.getItemValue(s, l.name)), 1)
1843
1839
  ])
1844
1840
  ], 2)
1845
1841
  ], 6)
@@ -1885,14 +1881,14 @@ function pa(e, t, i, D, g, f) {
1885
1881
  ]),
1886
1882
  _: 3
1887
1883
  }, 8, ["class", "style", "columns", "column-widths", "features"]),
1888
- e.$slots["extra-row"] ? (n(), O(B, { key: 2 }, {
1884
+ e.$slots["extra-row"] ? (n(), O(Z, { key: 2 }, {
1889
1885
  default: $(() => [
1890
- N(q, {
1886
+ U(Y, {
1891
1887
  class: u(["shrink-0"]),
1892
1888
  variant: e.variant
1893
1889
  }, {
1894
1890
  default: $(() => [
1895
- N(Y, null, {
1891
+ U(Q, null, {
1896
1892
  default: $(() => [
1897
1893
  m(e.$slots, "extra-row")
1898
1894
  ]),
@@ -1904,7 +1900,7 @@ function pa(e, t, i, D, g, f) {
1904
1900
  ]),
1905
1901
  _: 3
1906
1902
  })) : k("", !0),
1907
- e.$slots.actions || e.showSelectingCouter || e.features.paging ? (n(), O(Q, {
1903
+ e.$slots.actions || e.showSelectingCouter || e.features.paging ? (n(), O(L, {
1908
1904
  key: 3,
1909
1905
  class: u(["shrink-0"])
1910
1906
  }, oe({ _: 2 }, [
@@ -1925,10 +1921,10 @@ function pa(e, t, i, D, g, f) {
1925
1921
  e.features.paging ? {
1926
1922
  name: "paging",
1927
1923
  fn: $(() => [
1928
- N(K, {
1924
+ U(P, {
1929
1925
  ref: "pagination",
1930
1926
  modelValue: e.pagingModel,
1931
- "onUpdate:modelValue": t[7] || (t[7] = (r) => e.pagingModel = r),
1927
+ "onUpdate:modelValue": t[7] || (t[7] = (s) => e.pagingModel = s),
1932
1928
  length: e.features.paging.length,
1933
1929
  options: e.features.paging.options
1934
1930
  }, null, 8, ["modelValue", "length", "options"])
@@ -1938,27 +1934,27 @@ function pa(e, t, i, D, g, f) {
1938
1934
  ]), 1024)) : k("", !0)
1939
1935
  ], 2);
1940
1936
  }
1941
- const Aa = /* @__PURE__ */ W(ka, [["render", pa]]);
1937
+ const qa = /* @__PURE__ */ R(pa, [["render", $a]]);
1942
1938
  export {
1943
1939
  w as D,
1944
- Aa as O,
1940
+ qa as O,
1945
1941
  ie as a,
1946
1942
  he as b,
1947
- _e as c,
1948
- rt as d,
1949
- ct as e,
1950
- yt as f,
1951
- pt as g,
1952
- Dt as h,
1953
- Vt as i,
1954
- Wt as j,
1955
- jt as k,
1956
- Lt as l,
1957
- Xt as m,
1958
- xt as n,
1959
- aa as o,
1960
- sa as p,
1961
- ua as q,
1962
- ya as r
1943
+ tt as c,
1944
+ lt as d,
1945
+ mt as e,
1946
+ kt as f,
1947
+ $t as g,
1948
+ Ct as h,
1949
+ Mt as i,
1950
+ zt as j,
1951
+ Pt as k,
1952
+ Bt as l,
1953
+ Qt as m,
1954
+ ea as n,
1955
+ oa as o,
1956
+ ia as p,
1957
+ fa as q,
1958
+ ka as r
1963
1959
  };
1964
- //# sourceMappingURL=OrDataGrid-Bj4g3ZW0.mjs.map
1960
+ //# sourceMappingURL=OrDataGrid-DWrS5m_m.mjs.map