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