@onereach/ui-components 26.4.1-beta.5878.0 → 26.4.1-beta.5879.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,23 +1,23 @@
1
- import { O as ee } from "./OrCheckbox-WPBzlvaV.mjs";
2
- import { O as re } from "./OrPagination-BXzDa-Su.mjs";
3
- import { O as oe } from "./OrSearch-CRFuNmg2.mjs";
4
- import { O as ne } from "./OrSkeletonArea.vue_vue_type_script_lang-jgRhbZ0X.mjs";
5
- import { defineComponent as G, ref as D, computed as l, openBlock as r, createElementBlock as p, normalizeClass as f, renderSlot as i, createCommentVNode as g, resolveComponent as m, normalizeStyle as K, Fragment as q, createBlock as y, watch as te, createElementVNode as le, withModifiers as x, createVNode as H, mergeProps as se, withCtx as b, onMounted as ie, createSlots as Y, normalizeProps as de, guardReactiveProps as ue, renderList as Q, createTextVNode as Z, toDisplayString as _ } from "vue";
6
- import { _ as C } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
7
- import { O as ce } from "./OrDatePicker-D-Do0tSf.mjs";
8
- import { O as me } from "./OrDateTimePicker-myqJkQxy.mjs";
1
+ import { O as te } from "./OrCheckbox-WPBzlvaV.mjs";
2
+ import { O as ne } from "./OrPagination-BXzDa-Su.mjs";
3
+ import { O as le } from "./OrSearch-CRFuNmg2.mjs";
4
+ import { O as se } from "./OrSkeletonArea.vue_vue_type_script_lang-jgRhbZ0X.mjs";
5
+ import { defineComponent as M, ref as D, computed as n, openBlock as r, createElementBlock as h, normalizeClass as f, renderSlot as d, createCommentVNode as p, resolveComponent as m, normalizeStyle as K, Fragment as q, createBlock as y, watch as ae, createElementVNode as ie, withModifiers as ee, createVNode as z, mergeProps as de, withCtx as b, onMounted as ue, createSlots as Y, normalizeProps as ce, guardReactiveProps as me, renderList as Q, createTextVNode as Z, toDisplayString as _ } from "vue";
6
+ import { _ as R } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
7
+ import { O as fe } from "./OrDatePicker-D-Do0tSf.mjs";
8
+ import { O as ge } from "./OrDateTimePicker-myqJkQxy.mjs";
9
9
  import "./OrDateTimePicker.vue_vue_type_script_lang-xnGNoSUB.mjs";
10
10
  import "@onereach/ui-components-common/types";
11
- import { O as fe } from "./OrInput-nExtCSw8.mjs";
12
- import { O as ge } from "./OrRating-CAwz23JA.mjs";
13
- import { O as pe } from "./OrSelect-BeL73iXu.mjs";
14
- import { O as he } from "./OrSwitch-BtoXDsZx.mjs";
15
- import { O as ve } from "./OrTagInput-B2U22gXE.mjs";
16
- import { O as be } from "./OrTimePicker-QPUb8olp.mjs";
17
- import { O as ye } from "./OrIcon-k8cyvh-D.mjs";
18
- import { useElementSize as ke } from "@vueuse/core";
19
- import { O as Oe } from "./OrNotification-BkjmRseb.mjs";
20
- const $e = [
11
+ import { O as pe } from "./OrInput-nExtCSw8.mjs";
12
+ import { O as he } from "./OrRating-CAwz23JA.mjs";
13
+ import { O as ve } from "./OrSelect-BeL73iXu.mjs";
14
+ import { O as be } from "./OrSwitch-BtoXDsZx.mjs";
15
+ import { O as ye } from "./OrTagInput-B2U22gXE.mjs";
16
+ import { O as ke } from "./OrTimePicker-QPUb8olp.mjs";
17
+ import { O as Oe } from "./OrIcon-k8cyvh-D.mjs";
18
+ import { useElementSize as $e } from "@vueuse/core";
19
+ import { O as we } from "./OrNotification-BkjmRseb.mjs";
20
+ const De = [
21
21
  // Layout
22
22
  "layout-row",
23
23
  // Interactivity
@@ -31,98 +31,98 @@ const $e = [
31
31
  // Theme
32
32
  "theme-border-disabled border-t-1",
33
33
  "dark:theme-border-disabled-dark"
34
- ], we = [
34
+ ], Se = [
35
35
  // Typography
36
36
  "typography-body-2-semibold"
37
- ], De = G({
37
+ ], Te = M({
38
38
  name: "OrDataGridFooter",
39
39
  expose: [
40
40
  "root"
41
41
  ],
42
42
  setup() {
43
- const e = D(), t = l(() => [
43
+ const e = D(), t = n(() => [
44
44
  "or-data-grid-footer-v3",
45
- ...$e
46
- ]), n = l(() => [
47
- ...we
45
+ ...De
46
+ ]), l = n(() => [
47
+ ...Se
48
48
  ]);
49
49
  return {
50
50
  root: e,
51
51
  rootStyles: t,
52
- statusStyles: n
52
+ statusStyles: l
53
53
  };
54
54
  }
55
- }), Se = {
55
+ }), Ge = {
56
56
  key: 1,
57
57
  class: /* @__PURE__ */ f(["grow"])
58
58
  };
59
- function Te(e, t, n, h, v, u) {
60
- return r(), p("div", {
59
+ function Ce(e, t, l, v, g, u) {
60
+ return r(), h("div", {
61
61
  ref: "root",
62
62
  class: f(e.rootStyles)
63
63
  }, [
64
- e.$slots.status ? (r(), p("div", {
64
+ e.$slots.status ? (r(), h("div", {
65
65
  key: 0,
66
66
  class: f(e.statusStyles)
67
67
  }, [
68
- i(e.$slots, "status")
69
- ], 2)) : g("", !0),
70
- i(e.$slots, "actions"),
71
- e.$slots.paging ? (r(), p("div", Se)) : g("", !0),
72
- i(e.$slots, "paging")
68
+ d(e.$slots, "status")
69
+ ], 2)) : p("", !0),
70
+ d(e.$slots, "actions"),
71
+ e.$slots.paging ? (r(), h("div", Ge)) : p("", !0),
72
+ d(e.$slots, "paging")
73
73
  ], 2);
74
74
  }
75
- const Ge = /* @__PURE__ */ C(De, [["render", Te]]), Ce = [
75
+ const Ve = /* @__PURE__ */ R(Te, [["render", Ce]]), Me = [
76
76
  // Layout
77
77
  "layout-row items-start gap-md",
78
78
  // Interactivity
79
79
  "interactivity-default",
80
80
  // Box
81
81
  "h-3xl"
82
- ], Ve = [
82
+ ], Re = [
83
83
  // Typography
84
84
  "typography-headline-2"
85
- ], Me = G({
85
+ ], Ie = M({
86
86
  name: "OrDataGridHeader",
87
87
  expose: [
88
88
  "root"
89
89
  ],
90
90
  setup() {
91
- const e = D(), t = l(() => [
91
+ const e = D(), t = n(() => [
92
92
  "or-data-grid-header-v3",
93
- ...Ce
94
- ]), n = l(() => [
95
- ...Ve
93
+ ...Me
94
+ ]), l = n(() => [
95
+ ...Re
96
96
  ]);
97
97
  return {
98
98
  root: e,
99
99
  rootStyles: t,
100
- titleStyles: n
100
+ titleStyles: l
101
101
  };
102
102
  }
103
- }), Re = {
103
+ }), ze = {
104
104
  key: 1,
105
105
  class: /* @__PURE__ */ f(["grow"])
106
106
  };
107
- function Ie(e, t, n, h, v, u) {
108
- return r(), p("div", {
107
+ function He(e, t, l, v, g, u) {
108
+ return r(), h("div", {
109
109
  ref: "root",
110
110
  class: f(e.rootStyles)
111
111
  }, [
112
- e.$slots.title ? (r(), p("div", {
112
+ e.$slots.title ? (r(), h("div", {
113
113
  key: 0,
114
114
  class: f(e.titleStyles)
115
115
  }, [
116
- i(e.$slots, "title")
117
- ], 2)) : g("", !0),
118
- e.$slots.searching || e.$slots.extraActions ? (r(), p("div", Re)) : g("", !0),
119
- i(e.$slots, "searching"),
120
- e.$slots.extraActions ? i(e.$slots, "extraActions", { key: 2 }) : g("", !0)
116
+ d(e.$slots, "title")
117
+ ], 2)) : p("", !0),
118
+ e.$slots.searching || e.$slots.extraActions ? (r(), h("div", ze)) : p("", !0),
119
+ d(e.$slots, "searching"),
120
+ e.$slots.extraActions ? d(e.$slots, "extraActions", { key: 2 }) : p("", !0)
121
121
  ], 2);
122
122
  }
123
- const He = /* @__PURE__ */ C(Me, [["render", Ie]]);
123
+ const Fe = /* @__PURE__ */ R(Ie, [["render", He]]);
124
124
  var k = /* @__PURE__ */ ((e) => (e.Standard = "standard", e.Comfortable = "comfortable", e.Compact = "compact", e.Dynamic = "dynamic", e))(k || {});
125
- const B = "52px", Fe = [
125
+ const B = "52px", We = [
126
126
  // Layout
127
127
  "layout-row items-center",
128
128
  // Spacing
@@ -150,24 +150,27 @@ const B = "52px", Fe = [
150
150
  "dark:[&.sticky-end]:theme-background-default-dark dark:[&.sticky-end]:border-s-disabled-dark",
151
151
  "hover:[&.sticky-end]:theme-background-surface-1 dark:hover:[&.sticky-end]:theme-background-surface-1-dark",
152
152
  "selected:[&.sticky-end]:theme-background-surface-2 dark:selected:[&.sticky-end]:theme-background-surface-2-dark",
153
- "hover:selected:[&.sticky-end]:theme-background-surface-3 dark:hover:selected:[&.sticky-end]:theme-background-surface-3-dark"
154
- ], We = [
153
+ "hover:selected:[&.sticky-end]:theme-background-surface-3 dark:hover:selected:[&.sticky-end]:theme-background-surface-3-dark",
154
+ // Theme (.resizable)
155
+ "[&.resizable]:border-e-disabled [&.resizable]:border-solid",
156
+ "dark:[&.resizable]:border-e-disabled-dark"
157
+ ], Pe = [
155
158
  // interactivity
156
159
  "interactivity-select",
157
160
  // Typography
158
161
  "truncate"
159
- ], Ee = G({
162
+ ], Ee = M({
160
163
  name: "OrDataGridTableContentCell",
161
164
  components: {
162
- OrCheckbox: ee,
163
- OrDatePicker: ce,
164
- OrDateTimePicker: me,
165
- OrInput: fe,
166
- OrRating: ge,
167
- OrSelect: pe,
168
- OrSwitch: he,
169
- OrTagInput: ve,
170
- OrTimePicker: be
165
+ OrCheckbox: te,
166
+ OrDatePicker: fe,
167
+ OrDateTimePicker: ge,
168
+ OrInput: pe,
169
+ OrRating: he,
170
+ OrSelect: ve,
171
+ OrSwitch: be,
172
+ OrTagInput: ye,
173
+ OrTimePicker: ke
171
174
  },
172
175
  model: {
173
176
  prop: "modelValue",
@@ -203,14 +206,15 @@ const B = "52px", Fe = [
203
206
  "root"
204
207
  ],
205
208
  setup(e, t) {
206
- const n = D(), h = l(() => {
207
- var O;
209
+ const l = D(), v = n(() => {
210
+ var O, T, C, V;
208
211
  return [
209
212
  "or-data-grid-table-content-cell-v3",
210
- ...Fe,
211
- ...(O = e.column) != null && O.stickiness ? [`sticky-${e.column.stickiness}`] : []
213
+ ...We,
214
+ ...(O = e.column) != null && O.stickiness ? [`sticky-${e.column.stickiness}`] : [],
215
+ ...(T = e.features) != null && T.resizing && ((C = e.column) != null && C.name) && ((V = e.column) == null ? void 0 : V.resizing) !== !1 ? ["resizable"] : []
212
216
  ];
213
- }), v = l(() => {
217
+ }), g = n(() => {
214
218
  if (e.column)
215
219
  switch (e.column.stickiness) {
216
220
  case "start":
@@ -236,119 +240,119 @@ const B = "52px", Fe = [
236
240
  return {
237
241
  justifyContent: "center"
238
242
  };
239
- }), u = l(() => {
240
- var V, R;
241
- const O = ((V = e.column) == null ? void 0 : V.wrapping) ?? (e.variant === k.Dynamic && !((R = e.column) != null && R.control));
243
+ }), u = n(() => {
244
+ var T, C;
245
+ const O = ((T = e.column) == null ? void 0 : T.wrapping) ?? (e.variant === k.Dynamic && !((C = e.column) != null && C.control));
242
246
  return [
243
- ...We.filter((I) => I !== "truncate"),
247
+ ...Pe.filter((V) => V !== "truncate"),
244
248
  ...O ? ["whitespace-pre-wrap break-words"] : ["truncate"]
245
249
  ];
246
- }), T = l(() => ({
250
+ }), G = n(() => ({
247
251
  minWidth: e.column && e.column.minWidth || B,
248
252
  maxWidth: e.column && e.column.maxWidth
249
- })), M = l({
253
+ })), I = n({
250
254
  get: () => e.modelValue,
251
255
  set: (O) => {
252
256
  t.emit("input", O);
253
257
  }
254
- }), S = l(() => {
258
+ }), S = n(() => {
255
259
  var O;
256
260
  return (O = e.column) == null ? void 0 : O.control;
257
261
  });
258
262
  return {
259
- root: n,
260
- rootStyles: h,
261
- rootInlineStyles: v,
263
+ root: l,
264
+ rootStyles: v,
265
+ rootInlineStyles: g,
262
266
  contentStyles: u,
263
- contentInlineStyles: T,
264
- model: M,
267
+ contentInlineStyles: G,
268
+ model: I,
265
269
  control: S,
266
270
  DATA_GRID_DEFAULT_MIN_WIDTH: B
267
271
  };
268
272
  }
269
273
  });
270
- function Pe(e, t, n, h, v, u) {
271
- const T = m("OrInput"), M = m("OrRating"), S = m("OrSelect"), O = m("OrCheckbox"), V = m("OrSwitch"), R = m("OrDatePicker"), I = m("OrTimePicker"), o = m("OrDateTimePicker"), c = m("OrTagInput");
272
- return r(), p("div", {
274
+ function je(e, t, l, v, g, u) {
275
+ const G = m("OrInput"), I = m("OrRating"), S = m("OrSelect"), O = m("OrCheckbox"), T = m("OrSwitch"), C = m("OrDatePicker"), V = m("OrTimePicker"), o = m("OrDateTimePicker"), c = m("OrTagInput");
276
+ return r(), h("div", {
273
277
  ref: "root",
274
278
  class: f(e.rootStyles),
275
279
  style: K(e.rootInlineStyles)
276
280
  }, [
277
- e.override ? i(e.$slots, "default", { key: 0 }) : e.control ? (r(), p(q, { key: 1 }, [
278
- e.control.type === "text" ? (r(), y(T, {
281
+ e.override ? d(e.$slots, "default", { key: 0 }) : e.control ? (r(), h(q, { key: 1 }, [
282
+ e.control.type === "text" ? (r(), y(G, {
279
283
  key: 0,
280
284
  modelValue: e.model,
281
- "onUpdate:modelValue": t[0] || (t[0] = (d) => e.model = d),
285
+ "onUpdate:modelValue": t[0] || (t[0] = (s) => e.model = s),
282
286
  type: "text",
283
287
  variant: "embedded"
284
- }, null, 8, ["modelValue"])) : g("", !0),
285
- e.control.type === "number" ? (r(), y(T, {
288
+ }, null, 8, ["modelValue"])) : p("", !0),
289
+ e.control.type === "number" ? (r(), y(G, {
286
290
  key: 1,
287
291
  modelValue: e.model,
288
- "onUpdate:modelValue": t[1] || (t[1] = (d) => e.model = d),
292
+ "onUpdate:modelValue": t[1] || (t[1] = (s) => e.model = s),
289
293
  type: "number",
290
294
  variant: "embedded"
291
- }, null, 8, ["modelValue"])) : g("", !0),
292
- e.control.type === "rating" ? (r(), y(M, {
295
+ }, null, 8, ["modelValue"])) : p("", !0),
296
+ e.control.type === "rating" ? (r(), y(I, {
293
297
  key: 2,
294
298
  modelValue: e.model,
295
- "onUpdate:modelValue": t[2] || (t[2] = (d) => e.model = d)
296
- }, null, 8, ["modelValue"])) : g("", !0),
299
+ "onUpdate:modelValue": t[2] || (t[2] = (s) => e.model = s)
300
+ }, null, 8, ["modelValue"])) : p("", !0),
297
301
  e.control.type === "select" ? (r(), y(S, {
298
302
  key: 3,
299
303
  modelValue: e.model,
300
- "onUpdate:modelValue": t[3] || (t[3] = (d) => e.model = d),
304
+ "onUpdate:modelValue": t[3] || (t[3] = (s) => e.model = s),
301
305
  options: e.control.options,
302
306
  variant: "embedded",
303
307
  anchor: e.root
304
- }, null, 8, ["modelValue", "options", "anchor"])) : g("", !0),
308
+ }, null, 8, ["modelValue", "options", "anchor"])) : p("", !0),
305
309
  e.control.type === "checkbox" ? (r(), y(O, {
306
310
  key: 4,
307
311
  modelValue: e.model,
308
- "onUpdate:modelValue": t[4] || (t[4] = (d) => e.model = d)
309
- }, null, 8, ["modelValue"])) : g("", !0),
310
- e.control.type === "switch" ? (r(), y(V, {
312
+ "onUpdate:modelValue": t[4] || (t[4] = (s) => e.model = s)
313
+ }, null, 8, ["modelValue"])) : p("", !0),
314
+ e.control.type === "switch" ? (r(), y(T, {
311
315
  key: 5,
312
316
  modelValue: e.model,
313
- "onUpdate:modelValue": t[5] || (t[5] = (d) => e.model = d)
314
- }, null, 8, ["modelValue"])) : g("", !0),
315
- e.control.type === "date" ? (r(), y(R, {
317
+ "onUpdate:modelValue": t[5] || (t[5] = (s) => e.model = s)
318
+ }, null, 8, ["modelValue"])) : p("", !0),
319
+ e.control.type === "date" ? (r(), y(C, {
316
320
  key: 6,
317
321
  modelValue: e.model,
318
- "onUpdate:modelValue": t[6] || (t[6] = (d) => e.model = d),
322
+ "onUpdate:modelValue": t[6] || (t[6] = (s) => e.model = s),
319
323
  variant: "embedded",
320
324
  anchor: e.root
321
- }, null, 8, ["modelValue", "anchor"])) : g("", !0),
322
- e.control.type === "time" ? (r(), y(I, {
325
+ }, null, 8, ["modelValue", "anchor"])) : p("", !0),
326
+ e.control.type === "time" ? (r(), y(V, {
323
327
  key: 7,
324
328
  modelValue: e.model,
325
- "onUpdate:modelValue": t[7] || (t[7] = (d) => e.model = d),
329
+ "onUpdate:modelValue": t[7] || (t[7] = (s) => e.model = s),
326
330
  variant: "embedded",
327
331
  anchor: e.root
328
- }, null, 8, ["modelValue", "anchor"])) : g("", !0),
332
+ }, null, 8, ["modelValue", "anchor"])) : p("", !0),
329
333
  e.control.type === "datetime" ? (r(), y(o, {
330
334
  key: 8,
331
335
  modelValue: e.model,
332
- "onUpdate:modelValue": t[8] || (t[8] = (d) => e.model = d),
336
+ "onUpdate:modelValue": t[8] || (t[8] = (s) => e.model = s),
333
337
  variant: "embedded",
334
338
  anchor: e.root
335
- }, null, 8, ["modelValue", "anchor"])) : g("", !0),
339
+ }, null, 8, ["modelValue", "anchor"])) : p("", !0),
336
340
  e.control.type === "tags" ? (r(), y(c, {
337
341
  key: 9,
338
342
  modelValue: e.model,
339
- "onUpdate:modelValue": t[9] || (t[9] = (d) => e.model = d),
343
+ "onUpdate:modelValue": t[9] || (t[9] = (s) => e.model = s),
340
344
  variant: "embedded"
341
- }, null, 8, ["modelValue"])) : g("", !0)
342
- ], 64)) : (r(), p("div", {
345
+ }, null, 8, ["modelValue"])) : p("", !0)
346
+ ], 64)) : (r(), h("div", {
343
347
  key: 2,
344
348
  class: f(e.contentStyles),
345
349
  style: K(e.contentInlineStyles)
346
350
  }, [
347
- i(e.$slots, "default")
351
+ d(e.$slots, "default")
348
352
  ], 6))
349
353
  ], 6);
350
354
  }
351
- const ze = /* @__PURE__ */ C(Ee, [["render", Pe]]), je = [
355
+ const Ne = /* @__PURE__ */ R(Ee, [["render", je]]), Ue = [
352
356
  // Layout
353
357
  "grid grid-cols-[subgrid] col-span-full",
354
358
  // Typography
@@ -370,7 +374,7 @@ const ze = /* @__PURE__ */ C(Ee, [["render", Pe]]), je = [
370
374
  // Theme (selected + hover / children)
371
375
  "children:hover:selected:theme-background-surface-3",
372
376
  "dark:children:hover:selected:theme-background-surface-3-dark"
373
- ], Ne = {
377
+ ], Le = {
374
378
  [k.Standard]: [
375
379
  // Box
376
380
  "min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
@@ -387,7 +391,7 @@ const ze = /* @__PURE__ */ C(Ee, [["render", Pe]]), je = [
387
391
  // Box
388
392
  "min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
389
393
  ]
390
- }, Ue = G({
394
+ }, Ae = M({
391
395
  name: "OrDataGridTableContentRow",
392
396
  props: {
393
397
  variant: {
@@ -407,39 +411,39 @@ const ze = /* @__PURE__ */ C(Ee, [["render", Pe]]), je = [
407
411
  "root"
408
412
  ],
409
413
  setup(e) {
410
- const t = D(), n = l(() => [
414
+ const t = D(), l = n(() => [
411
415
  "or-data-grid-table-content-row-v3",
412
- ...je,
413
- ...Ne[e.variant],
416
+ ...Ue,
417
+ ...Le[e.variant],
414
418
  ...e.interactive ? ["cursor-pointer"] : []
415
419
  ]);
416
420
  return {
417
421
  root: t,
418
- rootStyles: n
422
+ rootStyles: l
419
423
  };
420
424
  }
421
- }), Le = ["selected"];
422
- function Ae(e, t, n, h, v, u) {
423
- return r(), p("div", {
425
+ }), qe = ["selected"];
426
+ function Be(e, t, l, v, g, u) {
427
+ return r(), h("div", {
424
428
  ref: "root",
425
429
  class: f(e.rootStyles),
426
430
  selected: e.selected
427
431
  }, [
428
- i(e.$slots, "default")
429
- ], 10, Le);
432
+ d(e.$slots, "default")
433
+ ], 10, qe);
430
434
  }
431
- const qe = /* @__PURE__ */ C(Ue, [["render", Ae]]), Be = [
435
+ const Ke = /* @__PURE__ */ R(Ae, [["render", Be]]), Xe = [
432
436
  // Layout
433
437
  "contents"
434
- ], Ke = G({
438
+ ], Je = M({
435
439
  name: "OrDataGridTableContent",
436
440
  expose: [
437
441
  "root"
438
442
  ],
439
443
  setup() {
440
- const e = D(), t = l(() => [
444
+ const e = D(), t = n(() => [
441
445
  "or-data-grid-table-content-v3",
442
- ...Be
446
+ ...Xe
443
447
  ]);
444
448
  return {
445
449
  root: e,
@@ -447,15 +451,15 @@ const qe = /* @__PURE__ */ C(Ue, [["render", Ae]]), Be = [
447
451
  };
448
452
  }
449
453
  });
450
- function Xe(e, t, n, h, v, u) {
451
- return r(), p("div", {
454
+ function Qe(e, t, l, v, g, u) {
455
+ return r(), h("div", {
452
456
  ref: "root",
453
457
  class: f(e.rootStyles)
454
458
  }, [
455
- i(e.$slots, "default")
459
+ d(e.$slots, "default")
456
460
  ], 2);
457
461
  }
458
- const Je = /* @__PURE__ */ C(Ke, [["render", Xe]]), Qe = [
462
+ const Ye = /* @__PURE__ */ R(Je, [["render", Qe]]), Ze = [
459
463
  // Layout
460
464
  "layout-row",
461
465
  // Spacing
@@ -465,15 +469,15 @@ const Je = /* @__PURE__ */ C(Ke, [["render", Xe]]), Qe = [
465
469
  // Theme
466
470
  "theme-border-transparent border-1",
467
471
  "dark:theme-border-transparent-dark"
468
- ], Ye = G({
472
+ ], _e = M({
469
473
  name: "OrDataGridTableFooterCell",
470
474
  expose: [
471
475
  "root"
472
476
  ],
473
477
  setup() {
474
- const e = D(), t = l(() => [
478
+ const e = D(), t = n(() => [
475
479
  "or-data-grid-table-footer-cell-v3",
476
- ...Qe
480
+ ...Ze
477
481
  ]);
478
482
  return {
479
483
  root: e,
@@ -481,15 +485,15 @@ const Je = /* @__PURE__ */ C(Ke, [["render", Xe]]), Qe = [
481
485
  };
482
486
  }
483
487
  });
484
- function Ze(e, t, n, h, v, u) {
485
- return r(), p("div", {
488
+ function xe(e, t, l, v, g, u) {
489
+ return r(), h("div", {
486
490
  ref: "root",
487
491
  class: f(e.rootStyles)
488
492
  }, [
489
- i(e.$slots, "default")
493
+ d(e.$slots, "default")
490
494
  ], 2);
491
495
  }
492
- const _e = /* @__PURE__ */ C(Ye, [["render", Ze]]), xe = [
496
+ const et = /* @__PURE__ */ R(_e, [["render", xe]]), tt = [
493
497
  // Layout
494
498
  "grid grid-cols-1",
495
499
  // Typography
@@ -502,7 +506,7 @@ const _e = /* @__PURE__ */ C(Ye, [["render", Ze]]), xe = [
502
506
  "dark:children:theme-foreground-default-dark",
503
507
  "children:theme-background-default",
504
508
  "dark:children:theme-background-default-dark"
505
- ], et = {
509
+ ], at = {
506
510
  [k.Standard]: [
507
511
  // Box
508
512
  "min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
@@ -519,7 +523,7 @@ const _e = /* @__PURE__ */ C(Ye, [["render", Ze]]), xe = [
519
523
  // Box
520
524
  "min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
521
525
  ]
522
- }, tt = G({
526
+ }, rt = M({
523
527
  name: "OrDataGridTableFooterRow",
524
528
  props: {
525
529
  variant: {
@@ -531,37 +535,37 @@ const _e = /* @__PURE__ */ C(Ye, [["render", Ze]]), xe = [
531
535
  "root"
532
536
  ],
533
537
  setup(e) {
534
- const t = D(), n = l(() => [
538
+ const t = D(), l = n(() => [
535
539
  "or-data-grid-table-footer-row-v3",
536
- ...xe,
537
- ...et[e.variant]
540
+ ...tt,
541
+ ...at[e.variant]
538
542
  ]);
539
543
  return {
540
544
  root: t,
541
- rootStyles: n
545
+ rootStyles: l
542
546
  };
543
547
  }
544
548
  });
545
- function at(e, t, n, h, v, u) {
546
- return r(), p("div", {
549
+ function ot(e, t, l, v, g, u) {
550
+ return r(), h("div", {
547
551
  ref: "root",
548
552
  class: f(e.rootStyles)
549
553
  }, [
550
- i(e.$slots, "default")
554
+ d(e.$slots, "default")
551
555
  ], 2);
552
556
  }
553
- const rt = /* @__PURE__ */ C(tt, [["render", at]]), ot = [
557
+ const nt = /* @__PURE__ */ R(rt, [["render", ot]]), lt = [
554
558
  // Layout
555
559
  "contents"
556
- ], nt = G({
560
+ ], st = M({
557
561
  name: "OrDataGridTableFooter",
558
562
  expose: [
559
563
  "root"
560
564
  ],
561
565
  setup() {
562
- const e = D(), t = l(() => [
566
+ const e = D(), t = n(() => [
563
567
  "or-data-grid-table-footer-v3",
564
- ...ot
568
+ ...lt
565
569
  ]);
566
570
  return {
567
571
  root: e,
@@ -569,15 +573,15 @@ const rt = /* @__PURE__ */ C(tt, [["render", at]]), ot = [
569
573
  };
570
574
  }
571
575
  });
572
- function lt(e, t, n, h, v, u) {
573
- return r(), p("div", {
576
+ function it(e, t, l, v, g, u) {
577
+ return r(), h("div", {
574
578
  ref: "root",
575
579
  class: f(e.rootStyles)
576
580
  }, [
577
- i(e.$slots, "default")
581
+ d(e.$slots, "default")
578
582
  ], 2);
579
583
  }
580
- const st = /* @__PURE__ */ C(nt, [["render", lt]]), it = [
584
+ const dt = /* @__PURE__ */ R(st, [["render", it]]), ut = [
581
585
  // Layout
582
586
  "layout-row items-center",
583
587
  // Spacing
@@ -596,8 +600,11 @@ const st = /* @__PURE__ */ C(nt, [["render", lt]]), it = [
596
600
  "dark:[&.sticky-start]:theme-background-surface-variant-1-dark dark:[&.sticky-start]:border-e-disabled-dark",
597
601
  // Theme (.sticky-end)
598
602
  "[&.sticky-end]:theme-background-surface-variant-1 [&.sticky-end]:border-s-disabled [&.sticky-end]:border-solid z-20 hover:z-30",
599
- "dark:[&.sticky-end]:theme-background-surface-variant-1-dark dark:[&.sticky-end]:border-s-disabled-dark"
600
- ], dt = [
603
+ "dark:[&.sticky-end]:theme-background-surface-variant-1-dark dark:[&.sticky-end]:border-s-disabled-dark",
604
+ // Theme (.resizable)
605
+ "[&.resizable]:border-e-disabled [&.resizable]:border-solid",
606
+ "dark:[&.resizable]:border-e-disabled-dark"
607
+ ], ct = [
601
608
  // Position
602
609
  "absolute top-0 bottom-0 end-0 z-50",
603
610
  // Box
@@ -608,10 +615,10 @@ const st = /* @__PURE__ */ C(nt, [["render", lt]]), it = [
608
615
  "dark:hover:theme-background-primary-dark",
609
616
  "active:theme-background-primary",
610
617
  "dark:active:theme-background-primary-dark"
611
- ], ut = G({
618
+ ], mt = M({
612
619
  name: "OrDataGridTableHeaderCell",
613
620
  components: {
614
- OrIcon: ye
621
+ OrIcon: Oe
615
622
  },
616
623
  model: {
617
624
  prop: "modelValue",
@@ -641,31 +648,32 @@ const st = /* @__PURE__ */ C(nt, [["render", lt]]), it = [
641
648
  "root"
642
649
  ],
643
650
  setup(e, t) {
644
- const n = D(), h = l(() => {
645
- var o, c, d;
646
- return !!((o = e.features) != null && o.sorting) && !!((c = e.column) != null && c.name) && ((d = e.column) == null ? void 0 : d.sorting) !== !1;
647
- }), v = l(() => {
648
- var o, c;
649
- return !!((o = e.features) != null && o.resizing) && !!((c = e.column) != null && c.name);
650
- }), u = l(() => {
651
+ const l = D(), v = n(() => {
652
+ var o, c, s;
653
+ return !!((o = e.features) != null && o.sorting) && !!((c = e.column) != null && c.name) && ((s = e.column) == null ? void 0 : s.sorting) !== !1;
654
+ }), g = n(() => {
655
+ var o, c, s;
656
+ return !!((o = e.features) != null && o.resizing) && !!((c = e.column) != null && c.name) && ((s = e.column) == null ? void 0 : s.resizing) !== !1;
657
+ }), u = n(() => {
651
658
  var o;
652
659
  return [
653
660
  "or-data-grid-table-header-cell-v3",
654
661
  "relative",
655
- ...it,
662
+ ...ut,
656
663
  ...(o = e.column) != null && o.stickiness ? [`sticky-${e.column.stickiness}`] : [],
657
- ...h.value ? ["interactivity-click"] : []
664
+ ...g.value ? ["resizable"] : [],
665
+ ...v.value ? ["interactivity-click"] : []
658
666
  ];
659
- }), T = l(() => [
667
+ }), G = n(() => [
660
668
  "or-data-grid-table-header-cell-resize-handle-v3",
661
- ...dt
662
- ]), M = l(() => {
669
+ ...ct
670
+ ]), I = n(() => {
663
671
  var o, c;
664
672
  return {
665
673
  minWidth: ((o = e.column) == null ? void 0 : o.minWidth) || B,
666
674
  maxWidth: (c = e.column) == null ? void 0 : c.maxWidth
667
675
  };
668
- }), S = l(() => {
676
+ }), S = n(() => {
669
677
  if (e.column)
670
678
  switch (e.column.stickiness) {
671
679
  case "start":
@@ -691,19 +699,19 @@ const st = /* @__PURE__ */ C(nt, [["render", lt]]), it = [
691
699
  return {
692
700
  justifyContent: "center"
693
701
  };
694
- }), O = l({
702
+ }), O = n({
695
703
  get: () => {
696
704
  var o, c;
697
- if (h.value)
705
+ if (v.value)
698
706
  return ((o = e.modelValue) == null ? void 0 : o.column) === ((c = e.column) == null ? void 0 : c.name) ? e.modelValue : void 0;
699
707
  },
700
708
  set: (o) => {
701
709
  t.emit("update:modelValue", o);
702
710
  }
703
711
  });
704
- function V() {
712
+ function T() {
705
713
  var o;
706
- if (h.value)
714
+ if (v.value)
707
715
  if (O.value)
708
716
  O.value = {
709
717
  ...O.value,
@@ -718,31 +726,31 @@ const st = /* @__PURE__ */ C(nt, [["render", lt]]), it = [
718
726
  };
719
727
  }
720
728
  }
721
- function R(o) {
722
- var j;
723
- const c = o.pageX, d = ((j = n.value) == null ? void 0 : j.offsetWidth) || 0, W = (X) => {
724
- var U, L;
725
- const J = X.pageX - c;
726
- let E = Math.max(0, d + J);
727
- const P = ((U = e.column) == null ? void 0 : U.minWidth) || B;
729
+ function C(o) {
730
+ var H;
731
+ const c = o.pageX, s = ((H = l.value) == null ? void 0 : H.offsetWidth) || 0, F = (U) => {
732
+ var L, A;
733
+ const X = U.pageX - c;
734
+ let W = Math.max(0, s + X);
735
+ const P = ((L = e.column) == null ? void 0 : L.minWidth) || B;
728
736
  if (P && (P.endsWith("px") || !isNaN(Number(P)))) {
729
- const N = parseInt(P, 10);
730
- E = Math.max(E, N);
737
+ const j = parseInt(P, 10);
738
+ W = Math.max(W, j);
731
739
  }
732
- if ((L = e.column) != null && L.maxWidth && (e.column.maxWidth.endsWith("px") || !isNaN(Number(e.column.maxWidth)))) {
733
- const N = parseInt(e.column.maxWidth, 10);
734
- E = Math.min(E, N);
740
+ if ((A = e.column) != null && A.maxWidth && (e.column.maxWidth.endsWith("px") || !isNaN(Number(e.column.maxWidth)))) {
741
+ const j = parseInt(e.column.maxWidth, 10);
742
+ W = Math.min(W, j);
735
743
  }
736
- t.emit("update:column-width", E);
737
- }, z = () => {
738
- document.removeEventListener("mousemove", W), document.removeEventListener("mouseup", z);
744
+ t.emit("update:column-width", W);
745
+ }, E = () => {
746
+ document.removeEventListener("mousemove", F), document.removeEventListener("mouseup", E);
739
747
  };
740
- document.addEventListener("mousemove", W), document.addEventListener("mouseup", z);
748
+ document.addEventListener("mousemove", F), document.addEventListener("mouseup", E);
741
749
  }
742
- const { width: I } = ke(n, void 0, { box: "border-box" });
743
- return te([
744
- n,
745
- I,
750
+ const { width: V } = $e(l, void 0, { box: "border-box" });
751
+ return ae([
752
+ l,
753
+ V,
746
754
  () => {
747
755
  var o;
748
756
  return (o = e.column) == null ? void 0 : o.stickiness;
@@ -751,52 +759,52 @@ const st = /* @__PURE__ */ C(nt, [["render", lt]]), it = [
751
759
  o,
752
760
  c
753
761
  ], [
754
- d
762
+ s
755
763
  ]) => {
756
- d && d !== o && t.emit("remove:scrollOffset", d), t.emit("update:scrollOffset", o, c, e.column);
764
+ s && s !== o && t.emit("remove:scrollOffset", s), t.emit("update:scrollOffset", o, c, e.column);
757
765
  }), {
758
- root: n,
766
+ root: l,
759
767
  rootStyles: u,
760
768
  rootInlineStyles: S,
761
- wrapInlineStyle: M,
762
- resizeHandleStyles: T,
763
- isSortable: h,
764
- isResizable: v,
769
+ wrapInlineStyle: I,
770
+ resizeHandleStyles: G,
771
+ isSortable: v,
772
+ isResizable: g,
765
773
  model: O,
766
- toggleSorting: V,
767
- onResizeStart: R,
774
+ toggleSorting: T,
775
+ onResizeStart: C,
768
776
  DATA_GRID_DEFAULT_MIN_WIDTH: B
769
777
  };
770
778
  }
771
779
  });
772
- function ct(e, t, n, h, v, u) {
773
- const T = m("OrIcon");
774
- return r(), p("div", {
780
+ function ft(e, t, l, v, g, u) {
781
+ const G = m("OrIcon");
782
+ return r(), h("div", {
775
783
  ref: "root",
776
784
  class: f(e.rootStyles),
777
785
  style: K(e.rootInlineStyles),
778
- onClick: t[2] || (t[2] = (M) => e.toggleSorting())
786
+ onClick: t[2] || (t[2] = (I) => e.toggleSorting())
779
787
  }, [
780
- le("div", {
788
+ ie("div", {
781
789
  class: f(["truncate"]),
782
790
  style: K(e.wrapInlineStyle)
783
791
  }, [
784
- i(e.$slots, "default")
792
+ d(e.$slots, "default")
785
793
  ], 4),
786
- e.model ? (r(), y(T, {
794
+ e.model ? (r(), y(G, {
787
795
  key: 0,
788
796
  icon: e.model.direction === "asc" ? "arrow_upward" : "arrow_downward"
789
- }, null, 8, ["icon"])) : g("", !0),
790
- e.isResizable ? (r(), p("div", {
797
+ }, null, 8, ["icon"])) : p("", !0),
798
+ e.isResizable ? (r(), h("div", {
791
799
  key: 1,
792
800
  class: f(e.resizeHandleStyles),
793
- onMousedown: t[0] || (t[0] = x((...M) => e.onResizeStart && e.onResizeStart(...M), ["stop", "prevent"])),
794
- onClick: t[1] || (t[1] = x(() => {
801
+ onMousedown: t[0] || (t[0] = ee((...I) => e.onResizeStart && e.onResizeStart(...I), ["stop", "prevent"])),
802
+ onClick: t[1] || (t[1] = ee(() => {
795
803
  }, ["stop"]))
796
- }, null, 34)) : g("", !0)
804
+ }, null, 34)) : p("", !0)
797
805
  ], 6);
798
806
  }
799
- const mt = /* @__PURE__ */ C(ut, [["render", ct]]), ft = [
807
+ const gt = /* @__PURE__ */ R(mt, [["render", ft]]), pt = [
800
808
  // Position
801
809
  "sticky top-0 z-10",
802
810
  // Layout
@@ -808,7 +816,7 @@ const mt = /* @__PURE__ */ C(ut, [["render", ct]]), ft = [
808
816
  "dark:children:theme-foreground-default-dark",
809
817
  "children:theme-background-surface-variant-1",
810
818
  "dark:children:theme-background-surface-variant-1-dark"
811
- ], gt = {
819
+ ], ht = {
812
820
  [k.Standard]: [
813
821
  // Box
814
822
  "min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
@@ -825,7 +833,7 @@ const mt = /* @__PURE__ */ C(ut, [["render", ct]]), ft = [
825
833
  // Box
826
834
  "min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
827
835
  ]
828
- }, pt = G({
836
+ }, vt = M({
829
837
  name: "OrDataGridTableHeaderRow",
830
838
  props: {
831
839
  variant: {
@@ -837,37 +845,37 @@ const mt = /* @__PURE__ */ C(ut, [["render", ct]]), ft = [
837
845
  "root"
838
846
  ],
839
847
  setup(e) {
840
- const t = D(), n = l(() => [
848
+ const t = D(), l = n(() => [
841
849
  "or-data-grid-table-header-row-v3",
842
- ...ft,
843
- ...gt[e.variant]
850
+ ...pt,
851
+ ...ht[e.variant]
844
852
  ]);
845
853
  return {
846
854
  root: t,
847
- rootStyles: n
855
+ rootStyles: l
848
856
  };
849
857
  }
850
858
  });
851
- function ht(e, t, n, h, v, u) {
852
- return r(), p("div", {
859
+ function bt(e, t, l, v, g, u) {
860
+ return r(), h("div", {
853
861
  ref: "root",
854
862
  class: f(e.rootStyles)
855
863
  }, [
856
- i(e.$slots, "default")
864
+ d(e.$slots, "default")
857
865
  ], 2);
858
866
  }
859
- const vt = /* @__PURE__ */ C(pt, [["render", ht]]), bt = [
867
+ const yt = /* @__PURE__ */ R(vt, [["render", bt]]), kt = [
860
868
  // Layout
861
869
  "contents"
862
- ], yt = G({
870
+ ], Ot = M({
863
871
  name: "OrDataGridTableHeader",
864
872
  expose: [
865
873
  "root"
866
874
  ],
867
875
  setup() {
868
- const e = D(), t = l(() => [
876
+ const e = D(), t = n(() => [
869
877
  "or-data-grid-table-header-v3",
870
- ...bt
878
+ ...kt
871
879
  ]);
872
880
  return {
873
881
  root: e,
@@ -875,15 +883,15 @@ const vt = /* @__PURE__ */ C(pt, [["render", ht]]), bt = [
875
883
  };
876
884
  }
877
885
  });
878
- function kt(e, t, n, h, v, u) {
879
- return r(), p("div", {
886
+ function $t(e, t, l, v, g, u) {
887
+ return r(), h("div", {
880
888
  ref: "root",
881
889
  class: f(e.rootStyles)
882
890
  }, [
883
- i(e.$slots, "default")
891
+ d(e.$slots, "default")
884
892
  ], 2);
885
893
  }
886
- const Ot = /* @__PURE__ */ C(yt, [["render", kt]]), $t = [
894
+ const wt = /* @__PURE__ */ R(Ot, [["render", $t]]), Dt = [
887
895
  // Layout
888
896
  "layout-row justify-center items-center",
889
897
  // Spacing
@@ -897,7 +905,7 @@ const Ot = /* @__PURE__ */ C(yt, [["render", kt]]), $t = [
897
905
  "dark:theme-foreground-default-dark",
898
906
  "theme-background-default",
899
907
  "dark:theme-background-default-dark"
900
- ], wt = {
908
+ ], St = {
901
909
  [k.Standard]: [
902
910
  // Box
903
911
  "min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
@@ -914,7 +922,7 @@ const Ot = /* @__PURE__ */ C(yt, [["render", kt]]), $t = [
914
922
  // Box
915
923
  "min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
916
924
  ]
917
- }, Dt = G({
925
+ }, Tt = M({
918
926
  name: "OrDataGridTablePlaceholder",
919
927
  props: {
920
928
  variant: {
@@ -926,26 +934,26 @@ const Ot = /* @__PURE__ */ C(yt, [["render", kt]]), $t = [
926
934
  "root"
927
935
  ],
928
936
  setup(e) {
929
- const t = D(), n = l(() => [
937
+ const t = D(), l = n(() => [
930
938
  "or-data-grid-table-placeholder-v3",
931
- ...$t,
932
- ...wt[e.variant]
939
+ ...Dt,
940
+ ...St[e.variant]
933
941
  ]);
934
942
  return {
935
943
  root: t,
936
- rootStyles: n
944
+ rootStyles: l
937
945
  };
938
946
  }
939
947
  });
940
- function St(e, t, n, h, v, u) {
941
- return r(), p("div", {
948
+ function Gt(e, t, l, v, g, u) {
949
+ return r(), h("div", {
942
950
  ref: "root",
943
951
  class: f(e.rootStyles)
944
952
  }, [
945
- i(e.$slots, "default")
953
+ d(e.$slots, "default")
946
954
  ], 2);
947
955
  }
948
- const Tt = /* @__PURE__ */ C(Dt, [["render", St]]), Gt = [
956
+ const Ct = /* @__PURE__ */ R(Tt, [["render", Gt]]), Vt = [
949
957
  // Layout
950
958
  "grid content-start",
951
959
  "w-full min-w-0",
@@ -953,7 +961,7 @@ const Tt = /* @__PURE__ */ C(Dt, [["render", St]]), Gt = [
953
961
  "overflow-auto",
954
962
  // Interactivity
955
963
  "interactivity-default"
956
- ], Ct = G({
964
+ ], Mt = M({
957
965
  name: "OrDataGridTable",
958
966
  props: {
959
967
  columns: {
@@ -969,51 +977,51 @@ const Tt = /* @__PURE__ */ C(Dt, [["render", St]]), Gt = [
969
977
  "root"
970
978
  ],
971
979
  setup(e) {
972
- const t = D(), n = l(() => [
980
+ const t = D(), l = n(() => [
973
981
  "or-data-grid-table-v3",
974
- ...Gt
975
- ]), h = l(() => {
976
- const v = e.columns.map((u) => {
982
+ ...Vt
983
+ ]), v = n(() => {
984
+ const g = e.columns.map((u) => {
977
985
  if (u.width && (u.width.includes("minmax") || u.width.includes("calc")))
978
986
  return u.width;
979
- const T = u.width ?? "1fr", M = u.minWidth || (u.width ? B : "120px");
980
- let S = u.maxWidth || T;
981
- return T.endsWith("px") ? T : `minmax(${M}, ${S})`;
987
+ const G = u.width ?? "1fr", I = u.minWidth || (u.width ? B : "120px");
988
+ let S = u.maxWidth || G;
989
+ return G.endsWith("px") ? G : `minmax(${I}, ${S})`;
982
990
  });
983
- return e.features.selecting ? { gridTemplateColumns: `min-content ${v.join(" ")}` } : { gridTemplateColumns: v.join(" ") };
991
+ return e.features.selecting ? { gridTemplateColumns: `min-content ${g.join(" ")}` } : { gridTemplateColumns: g.join(" ") };
984
992
  });
985
993
  return {
986
994
  root: t,
987
- rootStyles: n,
988
- rootInlineStyles: h
995
+ rootStyles: l,
996
+ rootInlineStyles: v
989
997
  };
990
998
  }
991
999
  });
992
- function Vt(e, t, n, h, v, u) {
993
- return r(), p("div", {
1000
+ function Rt(e, t, l, v, g, u) {
1001
+ return r(), h("div", {
994
1002
  ref: "root",
995
1003
  class: f(e.rootStyles),
996
1004
  style: K(e.rootInlineStyles)
997
1005
  }, [
998
- i(e.$slots, "default")
1006
+ d(e.$slots, "default")
999
1007
  ], 6);
1000
1008
  }
1001
- const Mt = /* @__PURE__ */ C(Ct, [["render", Vt]]), Rt = [
1009
+ const It = /* @__PURE__ */ R(Mt, [["render", Rt]]), zt = [
1002
1010
  // Layout
1003
1011
  "layout-row",
1004
1012
  // Box
1005
1013
  "h-2xl",
1006
1014
  // Spacing
1007
1015
  "gap-xl"
1008
- ], It = G({
1016
+ ], Ht = M({
1009
1017
  name: "OrDataGridToolbar",
1010
1018
  expose: [
1011
1019
  "root"
1012
1020
  ],
1013
1021
  setup() {
1014
- const e = D(), t = l(() => [
1022
+ const e = D(), t = n(() => [
1015
1023
  "or-data-grid-toolbar-v3",
1016
- ...Rt
1024
+ ...zt
1017
1025
  ]);
1018
1026
  return {
1019
1027
  root: e,
@@ -1021,15 +1029,15 @@ const Mt = /* @__PURE__ */ C(Ct, [["render", Vt]]), Rt = [
1021
1029
  };
1022
1030
  }
1023
1031
  });
1024
- function Ht(e, t, n, h, v, u) {
1025
- return r(), p("div", {
1032
+ function Ft(e, t, l, v, g, u) {
1033
+ return r(), h("div", {
1026
1034
  ref: "root",
1027
1035
  class: f(e.rootStyles)
1028
1036
  }, [
1029
- i(e.$slots, "default")
1037
+ d(e.$slots, "default")
1030
1038
  ], 2);
1031
1039
  }
1032
- const Ft = /* @__PURE__ */ C(It, [["render", Ht]]), Wt = [
1040
+ const Wt = /* @__PURE__ */ R(Ht, [["render", Ft]]), Pt = [
1033
1041
  // Position
1034
1042
  "grid sticky z-10",
1035
1043
  // Layout
@@ -1051,9 +1059,9 @@ const Ft = /* @__PURE__ */ C(It, [["render", Ht]]), Wt = [
1051
1059
  // Position
1052
1060
  "top-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
1053
1061
  ]
1054
- }, Pt = G({
1062
+ }, jt = M({
1055
1063
  components: {
1056
- OrNotification: Oe
1064
+ OrNotification: we
1057
1065
  },
1058
1066
  props: {
1059
1067
  notification: {
@@ -1070,31 +1078,31 @@ const Ft = /* @__PURE__ */ C(It, [["render", Ht]]), Wt = [
1070
1078
  ],
1071
1079
  setup(e) {
1072
1080
  return {
1073
- rootStyles: l(() => [
1081
+ rootStyles: n(() => [
1074
1082
  "or-data-grid-notification-v3",
1075
- ...Wt,
1083
+ ...Pt,
1076
1084
  ...Et[e.variant]
1077
1085
  ])
1078
1086
  };
1079
1087
  }
1080
1088
  });
1081
- function zt(e, t, n, h, v, u) {
1082
- const T = m("OrNotification");
1083
- return r(), p("div", {
1089
+ function Nt(e, t, l, v, g, u) {
1090
+ const G = m("OrNotification");
1091
+ return r(), h("div", {
1084
1092
  class: f(e.rootStyles)
1085
1093
  }, [
1086
- H(T, se(e.notification, {
1094
+ z(G, de(e.notification, {
1087
1095
  class: "rounded-0 shadow-none",
1088
- onClose: t[0] || (t[0] = (M) => e.$emit("close-notification"))
1096
+ onClose: t[0] || (t[0] = (I) => e.$emit("close-notification"))
1089
1097
  }), {
1090
1098
  default: b(() => [
1091
- e.$slots.notification ? i(e.$slots, "notification", { key: 0 }) : g("", !0)
1099
+ e.$slots.notification ? d(e.$slots, "notification", { key: 0 }) : p("", !0)
1092
1100
  ]),
1093
1101
  _: 3
1094
1102
  }, 16)
1095
1103
  ], 2);
1096
1104
  }
1097
- const jt = /* @__PURE__ */ C(Pt, [["render", zt]]), Nt = [
1105
+ const Ut = /* @__PURE__ */ R(jt, [["render", Nt]]), Lt = [
1098
1106
  // Layout
1099
1107
  "grid col-span-full grid-cols-[subgrid]",
1100
1108
  // Typography
@@ -1107,7 +1115,7 @@ const jt = /* @__PURE__ */ C(Pt, [["render", zt]]), Nt = [
1107
1115
  "dark:children:theme-foreground-default-dark",
1108
1116
  "children:theme-background-default",
1109
1117
  "dark:children:theme-background-default-dark"
1110
- ], Ut = {
1118
+ ], At = {
1111
1119
  [k.Standard]: [
1112
1120
  // Box
1113
1121
  "min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
@@ -1124,7 +1132,7 @@ const jt = /* @__PURE__ */ C(Pt, [["render", zt]]), Nt = [
1124
1132
  // Box
1125
1133
  "min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
1126
1134
  ]
1127
- }, Lt = G({
1135
+ }, qt = M({
1128
1136
  name: "OrDataGridTableExtraRow",
1129
1137
  props: {
1130
1138
  variant: {
@@ -1136,51 +1144,51 @@ const jt = /* @__PURE__ */ C(Pt, [["render", zt]]), Nt = [
1136
1144
  "root"
1137
1145
  ],
1138
1146
  setup(e) {
1139
- const t = D(), n = l(() => [
1147
+ const t = D(), l = n(() => [
1140
1148
  "or-data-grid-table-extra-row-v3",
1141
- ...Nt,
1142
- ...Ut[e.variant]
1149
+ ...Lt,
1150
+ ...At[e.variant]
1143
1151
  ]);
1144
1152
  return {
1145
1153
  root: t,
1146
- rootStyles: n
1154
+ rootStyles: l
1147
1155
  };
1148
1156
  }
1149
1157
  });
1150
- function At(e, t, n, h, v, u) {
1151
- return r(), p("div", {
1158
+ function Bt(e, t, l, v, g, u) {
1159
+ return r(), h("div", {
1152
1160
  ref: "root",
1153
1161
  class: f(e.rootStyles)
1154
1162
  }, [
1155
- i(e.$slots, "default")
1163
+ d(e.$slots, "default")
1156
1164
  ], 2);
1157
1165
  }
1158
- const qt = /* @__PURE__ */ C(Lt, [["render", At]]), Bt = [
1166
+ const Kt = /* @__PURE__ */ R(qt, [["render", Bt]]), Xt = [
1159
1167
  // Layout
1160
1168
  "layout-column"
1161
- ], Kt = G({
1169
+ ], Jt = M({
1162
1170
  name: "OrDataGrid",
1163
1171
  components: {
1164
- OrCheckbox: ee,
1165
- OrDataGridFooter: Ge,
1166
- OrDataGridHeader: He,
1167
- OrDataGridTable: Mt,
1168
- OrDataGridTableContent: Je,
1169
- OrDataGridTableContentCell: ze,
1170
- OrDataGridTableContentRow: qe,
1171
- OrDataGridTableFooter: st,
1172
- OrDataGridTableFooterCell: _e,
1173
- OrDataGridTableFooterRow: rt,
1174
- OrDataGridTableExtraRow: qt,
1175
- OrDataGridTableHeader: Ot,
1176
- OrDataGridTableHeaderCell: mt,
1177
- OrDataGridTableHeaderRow: vt,
1178
- OrDataGridTablePlaceholder: Tt,
1179
- OrDataGridToolbar: Ft,
1180
- OrDataGridNotification: jt,
1181
- OrPagination: re,
1182
- OrSearch: oe,
1183
- OrSkeletonText: ne
1172
+ OrCheckbox: te,
1173
+ OrDataGridFooter: Ve,
1174
+ OrDataGridHeader: Fe,
1175
+ OrDataGridTable: It,
1176
+ OrDataGridTableContent: Ye,
1177
+ OrDataGridTableContentCell: Ne,
1178
+ OrDataGridTableContentRow: Ke,
1179
+ OrDataGridTableFooter: dt,
1180
+ OrDataGridTableFooterCell: et,
1181
+ OrDataGridTableFooterRow: nt,
1182
+ OrDataGridTableExtraRow: Kt,
1183
+ OrDataGridTableHeader: wt,
1184
+ OrDataGridTableHeaderCell: gt,
1185
+ OrDataGridTableHeaderRow: yt,
1186
+ OrDataGridTablePlaceholder: Ct,
1187
+ OrDataGridToolbar: Wt,
1188
+ OrDataGridNotification: Ut,
1189
+ OrPagination: ne,
1190
+ OrSearch: le,
1191
+ OrSkeletonText: se
1184
1192
  },
1185
1193
  model: {
1186
1194
  prop: "modelValue",
@@ -1234,23 +1242,23 @@ const qt = /* @__PURE__ */ C(Lt, [["render", At]]), Bt = [
1234
1242
  "root"
1235
1243
  ],
1236
1244
  setup(e, t) {
1237
- const n = D(), h = D(), v = D(), u = l(() => [
1245
+ const l = D(), v = D(), g = D(), u = n(() => [
1238
1246
  "or-data-grid-v3",
1239
- ...Bt
1240
- ]), T = l(() => ({
1241
- scrollPaddingInlineStart: `${[...o.value.values()].reduce((a, $) => a + $, 0)}px`,
1242
- scrollPaddingInlineEnd: `${[...c.value.values()].reduce((a, $) => a + $, 0)}px`
1243
- })), M = l({
1247
+ ...Xt
1248
+ ]), G = n(() => ({
1249
+ scrollPaddingInlineStart: `${[...o.value.values()].reduce((a, w) => a + w, 0)}px`,
1250
+ scrollPaddingInlineEnd: `${[...c.value.values()].reduce((a, w) => a + w, 0)}px`
1251
+ })), I = n({
1244
1252
  get: () => !!e.items.length && e.items.every((a) => S.value.includes(a.id)),
1245
1253
  set: (a) => {
1246
1254
  a ? S.value = [
1247
1255
  .../* @__PURE__ */ new Set([
1248
1256
  ...S.value,
1249
- ...e.items.map(($) => $.id)
1257
+ ...e.items.map((w) => w.id)
1250
1258
  ])
1251
1259
  ] : S.value = [];
1252
1260
  }
1253
- }), S = l({
1261
+ }), S = n({
1254
1262
  get: () => {
1255
1263
  var a;
1256
1264
  return ((a = e.modelValue) == null ? void 0 : a.selecting) ?? [];
@@ -1259,12 +1267,12 @@ const qt = /* @__PURE__ */ C(Lt, [["render", At]]), Bt = [
1259
1267
  t.emit("update:modelValue", {
1260
1268
  selecting: a,
1261
1269
  filtering: O.value,
1262
- searching: V.value,
1263
- sorting: R.value,
1264
- paging: I.value
1270
+ searching: T.value,
1271
+ sorting: C.value,
1272
+ paging: V.value
1265
1273
  });
1266
1274
  }
1267
- }), O = l({
1275
+ }), O = n({
1268
1276
  get: () => {
1269
1277
  var a;
1270
1278
  return (a = e.modelValue) == null ? void 0 : a.filtering;
@@ -1273,15 +1281,15 @@ const qt = /* @__PURE__ */ C(Lt, [["render", At]]), Bt = [
1273
1281
  t.emit("update:modelValue", {
1274
1282
  selecting: S.value,
1275
1283
  filtering: a,
1276
- searching: V.value,
1277
- sorting: R.value,
1284
+ searching: T.value,
1285
+ sorting: C.value,
1278
1286
  paging: {
1279
- ...I.value,
1287
+ ...V.value,
1280
1288
  offset: 0
1281
1289
  }
1282
1290
  });
1283
1291
  }
1284
- }), V = l({
1292
+ }), T = n({
1285
1293
  get: () => {
1286
1294
  var a;
1287
1295
  return (a = e.modelValue) == null ? void 0 : a.searching;
@@ -1291,14 +1299,14 @@ const qt = /* @__PURE__ */ C(Lt, [["render", At]]), Bt = [
1291
1299
  selecting: S.value,
1292
1300
  filtering: O.value,
1293
1301
  searching: a,
1294
- sorting: R.value,
1302
+ sorting: C.value,
1295
1303
  paging: {
1296
- ...I.value,
1304
+ ...V.value,
1297
1305
  offset: 0
1298
1306
  }
1299
1307
  });
1300
1308
  }
1301
- }), R = l({
1309
+ }), C = n({
1302
1310
  get: () => {
1303
1311
  var a;
1304
1312
  return (a = e.modelValue) == null ? void 0 : a.sorting;
@@ -1307,15 +1315,15 @@ const qt = /* @__PURE__ */ C(Lt, [["render", At]]), Bt = [
1307
1315
  t.emit("update:modelValue", {
1308
1316
  selecting: S.value,
1309
1317
  filtering: O.value,
1310
- searching: V.value,
1318
+ searching: T.value,
1311
1319
  sorting: a,
1312
1320
  paging: {
1313
- ...I.value,
1321
+ ...V.value,
1314
1322
  offset: 0
1315
1323
  }
1316
1324
  });
1317
1325
  }
1318
- }), I = l({
1326
+ }), V = n({
1319
1327
  get: () => {
1320
1328
  var a;
1321
1329
  return (a = e.modelValue) == null ? void 0 : a.paging;
@@ -1324,159 +1332,164 @@ const qt = /* @__PURE__ */ C(Lt, [["render", At]]), Bt = [
1324
1332
  t.emit("update:modelValue", {
1325
1333
  selecting: S.value,
1326
1334
  filtering: O.value,
1327
- searching: V.value,
1328
- sorting: R.value,
1335
+ searching: T.value,
1336
+ sorting: C.value,
1329
1337
  paging: a
1330
1338
  });
1331
1339
  }
1332
1340
  });
1333
- te(() => {
1341
+ ae(() => {
1334
1342
  var a;
1335
- return (a = I.value) == null ? void 0 : a.offset;
1343
+ return (a = V.value) == null ? void 0 : a.offset;
1336
1344
  }, () => {
1337
1345
  var a;
1338
- (a = v.value) != null && a.root && v.value.root.scrollTo({
1346
+ (a = g.value) != null && a.root && g.value.root.scrollTo({
1339
1347
  top: 0,
1340
1348
  behavior: "smooth"
1341
1349
  });
1342
1350
  });
1343
- const o = D(/* @__PURE__ */ new Map()), c = D(/* @__PURE__ */ new Map()), d = l(() => e.features.selecting && (typeof e.features.selecting == "object" ? e.features.selecting.showCounter !== !1 : !0)), W = l(() => e.items.length === 0 || e.loading || typeof e.features.selecting == "object" && e.features.selecting.disabled), z = l(() => {
1351
+ const o = D(/* @__PURE__ */ new Map()), c = D(/* @__PURE__ */ new Map()), s = n(() => e.features.selecting && (typeof e.features.selecting == "object" ? e.features.selecting.showCounter !== !1 : !0)), F = n(() => e.items.length === 0 || e.loading || typeof e.features.selecting == "object" && e.features.selecting.disabled), E = n(() => {
1344
1352
  var a;
1345
- return ((a = h.value) == null ? void 0 : a.currentLimit) || 10;
1346
- });
1347
- function j(a) {
1348
- V.value = a;
1353
+ return ((a = v.value) == null ? void 0 : a.currentLimit) || 10;
1354
+ }), H = D({}), U = n(() => e.columns.map((a) => ({
1355
+ ...a,
1356
+ width: H.value[a.name] || a.width
1357
+ })));
1358
+ function X(a) {
1359
+ T.value = a;
1349
1360
  }
1350
- function X(a, $, F) {
1351
- switch (F.stickiness) {
1361
+ function W(a, w, N) {
1362
+ switch (N.stickiness) {
1352
1363
  case "start":
1353
- o.value.set(a, $), o.value = new Map(o.value), c.value.delete(a), c.value = new Map(c.value);
1364
+ o.value.set(a, w), o.value = new Map(o.value), c.value.delete(a), c.value = new Map(c.value);
1354
1365
  break;
1355
1366
  case "end":
1356
- o.value.delete(a), o.value = new Map(o.value), c.value.set(a, $), c.value = new Map(c.value);
1367
+ o.value.delete(a), o.value = new Map(o.value), c.value.set(a, w), c.value = new Map(c.value);
1357
1368
  break;
1358
1369
  default:
1359
- A(a);
1370
+ x(a);
1360
1371
  break;
1361
1372
  }
1362
1373
  }
1363
- function J(a) {
1374
+ function P(a) {
1364
1375
  e.interactiveRows && t.emit("hover:row", a);
1365
1376
  }
1366
- function E(a) {
1377
+ function L(a) {
1367
1378
  e.interactiveRows && t.emit("blur:row", a);
1368
1379
  }
1369
- function P(a, $, F) {
1380
+ function A(a, w, N) {
1370
1381
  e.interactiveRows && t.emit("hover:cell", {
1371
1382
  item: a,
1372
- columnName: $,
1373
- value: F
1383
+ columnName: w,
1384
+ value: N
1374
1385
  });
1375
1386
  }
1376
- function U(a, $, F) {
1387
+ function j(a, w, N) {
1377
1388
  e.interactiveRows && t.emit("blur:cell", {
1378
1389
  item: a,
1379
- columnName: $,
1380
- value: F
1390
+ columnName: w,
1391
+ value: N
1381
1392
  });
1382
1393
  }
1383
- function L(a) {
1394
+ function i(a) {
1384
1395
  e.interactiveRows && t.emit("click:row", a);
1385
1396
  }
1386
- function N(a, $) {
1387
- a.width = `${$}px`, e.features.storageKey && s();
1397
+ function $(a, w) {
1398
+ H.value = {
1399
+ ...H.value,
1400
+ [a.name]: `${w}px`
1401
+ }, e.features.storageKey && J();
1388
1402
  }
1389
- function s() {
1403
+ function J() {
1390
1404
  if (typeof window > "u" || !e.features.storageKey) return;
1391
1405
  const a = {};
1392
- e.columns.forEach(($) => {
1393
- $.name && $.width && (a[$.name] = $.width);
1406
+ U.value.forEach((w) => {
1407
+ w.name && w.width && (a[w.name] = w.width);
1394
1408
  }), localStorage.setItem(`or-data-grid-v3-widths-${e.features.storageKey}`, JSON.stringify(a));
1395
1409
  }
1396
- function w() {
1410
+ function re() {
1397
1411
  if (!(typeof window > "u" || !e.features.storageKey))
1398
1412
  try {
1399
1413
  const a = localStorage.getItem(`or-data-grid-v3-widths-${e.features.storageKey}`);
1400
1414
  if (a) {
1401
- const $ = JSON.parse(a);
1402
- e.columns.forEach((F) => {
1403
- F.name && $[F.name] && (F.width = $[F.name]);
1404
- });
1415
+ const w = JSON.parse(a);
1416
+ H.value = w;
1405
1417
  }
1406
1418
  } catch (a) {
1407
1419
  console.error("[OrDataGrid]: Failed to load column widths from localStorage", a);
1408
1420
  }
1409
1421
  }
1410
- ie(() => {
1411
- w();
1422
+ ue(() => {
1423
+ re();
1412
1424
  });
1413
- function A(a) {
1425
+ function x(a) {
1414
1426
  o.value.delete(a), o.value = new Map(o.value), c.value.delete(a), c.value = new Map(c.value);
1415
1427
  }
1416
- function ae(a) {
1428
+ function oe(a) {
1417
1429
  a.currentTarget.scrollIntoView({ block: "nearest" });
1418
1430
  }
1419
1431
  return {
1420
- root: n,
1432
+ root: l,
1421
1433
  rootStyles: u,
1422
- pagination: h,
1423
- tableInlineStyles: T,
1424
- selectingIndicator: M,
1425
- showSelectingCouter: d,
1426
- selectingDisabled: W,
1427
- skeletonsLength: z,
1428
- handleMouseEnterRow: J,
1429
- handleMouseLeaveRow: E,
1430
- handleMouseEnterCell: P,
1431
- handleMouseLeaveCell: U,
1432
- handleRowClick: L,
1433
- updateColumnWidth: N,
1434
+ pagination: v,
1435
+ tableInlineStyles: G,
1436
+ selectingIndicator: I,
1437
+ showSelectingCouter: s,
1438
+ selectingDisabled: F,
1439
+ skeletonsLength: E,
1440
+ actualColumns: U,
1441
+ handleMouseEnterRow: P,
1442
+ handleMouseLeaveRow: L,
1443
+ handleMouseEnterCell: A,
1444
+ handleMouseLeaveCell: j,
1445
+ handleRowClick: i,
1446
+ updateColumnWidth: $,
1434
1447
  selectingModel: S,
1435
1448
  filteringModel: O,
1436
- searchingModel: V,
1437
- sortingModel: R,
1438
- pagingModel: I,
1439
- updateScrollOffset: X,
1440
- removeScrollOffset: A,
1441
- updateSearchingModel: j,
1449
+ searchingModel: T,
1450
+ sortingModel: C,
1451
+ pagingModel: V,
1452
+ updateScrollOffset: W,
1453
+ removeScrollOffset: x,
1454
+ updateSearchingModel: X,
1442
1455
  scrollToTop: () => {
1443
1456
  var a;
1444
- (a = v.value) != null && a.root && v.value.root.scrollTo({
1457
+ (a = g.value) != null && a.root && g.value.root.scrollTo({
1445
1458
  top: 0,
1446
1459
  behavior: "smooth"
1447
1460
  });
1448
1461
  },
1449
- scrollTo: ae,
1450
- onInput: (a, $, F) => {
1451
- a[$] = F, t.emit("update:item", a);
1462
+ scrollTo: oe,
1463
+ onInput: (a, w, N) => {
1464
+ a[w] = N, t.emit("update:item", a);
1452
1465
  }
1453
1466
  };
1454
1467
  }
1455
1468
  });
1456
- function Xt(e, t, n, h, v, u) {
1457
- const T = m("OrSearch"), M = m("OrDataGridHeader"), S = m("OrDataGridToolbar"), O = m("OrCheckbox"), V = m("OrDataGridTableHeaderCell"), R = m("OrDataGridTableHeaderRow"), I = m("OrDataGridTableHeader"), o = m("OrDataGridNotification"), c = m("OrDataGridTableExtraRow"), d = m("OrSkeletonText"), W = m("OrDataGridTableContentCell"), z = m("OrDataGridTableContentRow"), j = m("OrDataGridTablePlaceholder"), X = m("OrDataGridTableContent"), J = m("OrDataGridTable"), E = m("OrDataGridTableFooterCell"), P = m("OrDataGridTableFooterRow"), U = m("OrDataGridTableFooter"), L = m("OrPagination"), N = m("OrDataGridFooter");
1458
- return r(), p("div", {
1469
+ function Qt(e, t, l, v, g, u) {
1470
+ const G = m("OrSearch"), I = m("OrDataGridHeader"), S = m("OrDataGridToolbar"), O = m("OrCheckbox"), T = m("OrDataGridTableHeaderCell"), C = m("OrDataGridTableHeaderRow"), V = m("OrDataGridTableHeader"), o = m("OrDataGridNotification"), c = m("OrDataGridTableExtraRow"), s = m("OrSkeletonText"), F = m("OrDataGridTableContentCell"), E = m("OrDataGridTableContentRow"), H = m("OrDataGridTablePlaceholder"), U = m("OrDataGridTableContent"), X = m("OrDataGridTable"), W = m("OrDataGridTableFooterCell"), P = m("OrDataGridTableFooterRow"), L = m("OrDataGridTableFooter"), A = m("OrPagination"), j = m("OrDataGridFooter");
1471
+ return r(), h("div", {
1459
1472
  ref: "root",
1460
1473
  class: f(e.rootStyles)
1461
1474
  }, [
1462
- e.$slots.title || e.features.searching || e.$slots.search || e.$slots.extraActions ? (r(), y(M, {
1475
+ e.$slots.title || e.features.searching || e.$slots.search || e.$slots.extraActions ? (r(), y(I, {
1463
1476
  key: 0,
1464
1477
  class: f(["shrink-0"])
1465
1478
  }, Y({ _: 2 }, [
1466
1479
  e.$slots.title ? {
1467
1480
  name: "title",
1468
1481
  fn: b(() => [
1469
- i(e.$slots, "title")
1482
+ d(e.$slots, "title")
1470
1483
  ]),
1471
1484
  key: "0"
1472
1485
  } : void 0,
1473
1486
  e.features.searching ? {
1474
1487
  name: "searching",
1475
1488
  fn: b(() => [
1476
- i(e.$slots, "search", de(ue({ updateSearchingModel: e.updateSearchingModel, searchingModel: e.searchingModel })), () => [
1477
- H(T, {
1489
+ d(e.$slots, "search", ce(me({ updateSearchingModel: e.updateSearchingModel, searchingModel: e.searchingModel })), () => [
1490
+ z(G, {
1478
1491
  modelValue: e.searchingModel,
1479
- "onUpdate:modelValue": t[0] || (t[0] = (s) => e.searchingModel = s)
1492
+ "onUpdate:modelValue": t[0] || (t[0] = (i) => e.searchingModel = i)
1480
1493
  }, null, 8, ["modelValue"])
1481
1494
  ])
1482
1495
  ]),
@@ -1485,33 +1498,33 @@ function Xt(e, t, n, h, v, u) {
1485
1498
  e.$slots.extraActions ? {
1486
1499
  name: "extraActions",
1487
1500
  fn: b(() => [
1488
- i(e.$slots, "extraActions")
1501
+ d(e.$slots, "extraActions")
1489
1502
  ]),
1490
1503
  key: "2"
1491
1504
  } : void 0
1492
- ]), 1024)) : g("", !0),
1505
+ ]), 1024)) : p("", !0),
1493
1506
  e.$slots.toolbar ? (r(), y(S, {
1494
1507
  key: 1,
1495
1508
  class: f(["shrink-0"])
1496
1509
  }, {
1497
1510
  default: b(() => [
1498
- i(e.$slots, "toolbar")
1511
+ d(e.$slots, "toolbar")
1499
1512
  ]),
1500
1513
  _: 3
1501
- })) : g("", !0),
1502
- H(J, {
1514
+ })) : p("", !0),
1515
+ z(X, {
1503
1516
  ref: "table",
1504
1517
  class: f(["grow", { "grid-rows-[auto_1fr]": e.items.length === 0 }]),
1505
1518
  style: K(e.tableInlineStyles),
1506
- columns: e.columns,
1519
+ columns: e.actualColumns,
1507
1520
  features: e.features
1508
1521
  }, {
1509
1522
  default: b(() => [
1510
- H(I, null, {
1523
+ z(V, null, {
1511
1524
  default: b(() => [
1512
- H(R, { variant: e.variant }, {
1525
+ z(C, { variant: e.variant }, {
1513
1526
  default: b(() => [
1514
- e.features.selecting ? (r(), y(V, {
1527
+ e.features.selecting ? (r(), y(T, {
1515
1528
  key: 0,
1516
1529
  column: { stickiness: "start" },
1517
1530
  class: "md:!py-none",
@@ -1519,27 +1532,27 @@ function Xt(e, t, n, h, v, u) {
1519
1532
  "onRemove:scrollOffset": e.removeScrollOffset
1520
1533
  }, {
1521
1534
  default: b(() => [
1522
- H(O, {
1535
+ z(O, {
1523
1536
  modelValue: e.selectingIndicator,
1524
- "onUpdate:modelValue": t[1] || (t[1] = (s) => e.selectingIndicator = s),
1537
+ "onUpdate:modelValue": t[1] || (t[1] = (i) => e.selectingIndicator = i),
1525
1538
  indeterminate: !e.selectingIndicator && e.selectingModel.length > 0,
1526
1539
  disabled: e.selectingDisabled
1527
1540
  }, null, 8, ["modelValue", "indeterminate", "disabled"])
1528
1541
  ]),
1529
1542
  _: 1
1530
- }, 8, ["onUpdate:scrollOffset", "onRemove:scrollOffset"])) : g("", !0),
1531
- (r(!0), p(q, null, Q(e.columns, (s) => (r(), y(V, {
1532
- key: s.name,
1543
+ }, 8, ["onUpdate:scrollOffset", "onRemove:scrollOffset"])) : p("", !0),
1544
+ (r(!0), h(q, null, Q(e.actualColumns, (i) => (r(), y(T, {
1545
+ key: i.name,
1533
1546
  modelValue: e.sortingModel,
1534
- "onUpdate:modelValue": t[2] || (t[2] = (w) => e.sortingModel = w),
1535
- column: s,
1547
+ "onUpdate:modelValue": t[2] || (t[2] = ($) => e.sortingModel = $),
1548
+ column: i,
1536
1549
  features: e.features,
1537
1550
  "onUpdate:scrollOffset": e.updateScrollOffset,
1538
1551
  "onRemove:scrollOffset": e.removeScrollOffset,
1539
- "onUpdate:columnWidth": (w) => e.updateColumnWidth(s, w)
1552
+ "onUpdate:columnWidth": ($) => e.updateColumnWidth(i, $)
1540
1553
  }, {
1541
1554
  default: b(() => [
1542
- Z(_(s.label), 1)
1555
+ Z(_(i.label), 1)
1543
1556
  ]),
1544
1557
  _: 2
1545
1558
  }, 1032, ["modelValue", "column", "features", "onUpdate:scrollOffset", "onRemove:scrollOffset", "onUpdate:columnWidth"]))), 128))
@@ -1553,17 +1566,17 @@ function Xt(e, t, n, h, v, u) {
1553
1566
  key: 0,
1554
1567
  notification: e.notification,
1555
1568
  variant: e.variant,
1556
- onCloseNotification: t[3] || (t[3] = (s) => e.$emit("close-notification"))
1569
+ onCloseNotification: t[3] || (t[3] = (i) => e.$emit("close-notification"))
1557
1570
  }, Y({ _: 2 }, [
1558
1571
  e.$slots.notification ? {
1559
1572
  name: "notification",
1560
1573
  fn: b(() => [
1561
- i(e.$slots, "notification")
1574
+ d(e.$slots, "notification")
1562
1575
  ]),
1563
1576
  key: "0"
1564
1577
  } : void 0
1565
- ]), 1032, ["notification", "variant"])) : g("", !0),
1566
- H(X, null, {
1578
+ ]), 1032, ["notification", "variant"])) : p("", !0),
1579
+ z(U, null, {
1567
1580
  default: b(() => [
1568
1581
  e.$slots["before-rows"] ? (r(), y(c, {
1569
1582
  key: 0,
@@ -1571,143 +1584,143 @@ function Xt(e, t, n, h, v, u) {
1571
1584
  class: "border-b-1"
1572
1585
  }, {
1573
1586
  default: b(() => [
1574
- i(e.$slots, "before-rows")
1587
+ d(e.$slots, "before-rows")
1575
1588
  ]),
1576
1589
  _: 3
1577
- }, 8, ["variant"])) : g("", !0),
1578
- e.loading ? (r(!0), p(q, { key: 1 }, Q(e.skeletonsLength, (s) => (r(), y(z, {
1579
- key: s,
1590
+ }, 8, ["variant"])) : p("", !0),
1591
+ e.loading ? (r(!0), h(q, { key: 1 }, Q(e.skeletonsLength, (i) => (r(), y(E, {
1592
+ key: i,
1580
1593
  variant: e.variant,
1581
1594
  interactive: e.interactiveRows
1582
1595
  }, {
1583
1596
  default: b(() => [
1584
- e.features.selecting ? (r(), y(W, {
1597
+ e.features.selecting ? (r(), y(F, {
1585
1598
  key: 0,
1586
1599
  column: { stickiness: "start" },
1587
1600
  variant: e.variant,
1588
1601
  override: !0
1589
1602
  }, {
1590
1603
  default: b(() => [
1591
- H(d)
1604
+ z(s)
1592
1605
  ]),
1593
1606
  _: 1
1594
- }, 8, ["variant"])) : g("", !0),
1595
- (r(!0), p(q, null, Q(e.columns, (w) => (r(), y(W, {
1596
- key: w.name,
1597
- column: w,
1607
+ }, 8, ["variant"])) : p("", !0),
1608
+ (r(!0), h(q, null, Q(e.actualColumns, ($) => (r(), y(F, {
1609
+ key: $.name,
1610
+ column: $,
1598
1611
  features: e.features,
1599
1612
  variant: e.variant,
1600
1613
  override: !0
1601
1614
  }, {
1602
1615
  default: b(() => [
1603
- i(e.$slots, "column-loading", { column: w }, () => [
1604
- H(d)
1616
+ d(e.$slots, "column-loading", { column: $ }, () => [
1617
+ z(s)
1605
1618
  ])
1606
1619
  ]),
1607
1620
  _: 2
1608
1621
  }, 1032, ["column", "features", "variant"]))), 128))
1609
1622
  ]),
1610
1623
  _: 2
1611
- }, 1032, ["variant", "interactive"]))), 128)) : e.items.length > 0 ? (r(!0), p(q, { key: 2 }, Q(e.items, (s) => (r(), y(z, {
1612
- key: s.id,
1624
+ }, 1032, ["variant", "interactive"]))), 128)) : e.items.length > 0 ? (r(!0), h(q, { key: 2 }, Q(e.items, (i) => (r(), y(E, {
1625
+ key: i.id,
1613
1626
  variant: e.variant,
1614
- selected: e.selectingModel.includes(s.id),
1627
+ selected: e.selectingModel.includes(i.id),
1615
1628
  interactive: e.interactiveRows,
1616
- onMouseenter: () => e.handleMouseEnterRow(s),
1617
- onMouseleave: () => e.handleMouseLeaveRow(s),
1618
- onClick: () => e.handleRowClick(s)
1629
+ onMouseenter: () => e.handleMouseEnterRow(i),
1630
+ onMouseleave: () => e.handleMouseLeaveRow(i),
1631
+ onClick: () => e.handleRowClick(i)
1619
1632
  }, {
1620
1633
  default: b(() => [
1621
- e.features.selecting ? (r(), y(W, {
1634
+ e.features.selecting ? (r(), y(F, {
1622
1635
  key: 0,
1623
1636
  column: { stickiness: "start" },
1624
1637
  variant: e.variant,
1625
1638
  override: !0,
1626
1639
  "force-state": "none",
1627
1640
  class: "md:!py-none",
1628
- onMouseenter: () => e.handleMouseEnterCell(s, "selecting", e.selectingModel.includes(s.id)),
1629
- onMouseleave: () => e.handleMouseLeaveCell(s, "selecting", e.selectingModel.includes(s.id))
1641
+ onMouseenter: () => e.handleMouseEnterCell(i, "selecting", e.selectingModel.includes(i.id)),
1642
+ onMouseleave: () => e.handleMouseLeaveCell(i, "selecting", e.selectingModel.includes(i.id))
1630
1643
  }, {
1631
1644
  default: b(() => [
1632
- H(O, {
1645
+ z(O, {
1633
1646
  modelValue: e.selectingModel,
1634
- "onUpdate:modelValue": t[4] || (t[4] = (w) => e.selectingModel = w),
1635
- value: s.id,
1647
+ "onUpdate:modelValue": t[4] || (t[4] = ($) => e.selectingModel = $),
1648
+ value: i.id,
1636
1649
  disabled: e.selectingDisabled
1637
1650
  }, null, 8, ["modelValue", "value", "disabled"])
1638
1651
  ]),
1639
1652
  _: 2
1640
- }, 1032, ["variant", "onMouseenter", "onMouseleave"])) : g("", !0),
1641
- (r(!0), p(q, null, Q(e.columns, (w) => (r(), y(W, {
1642
- key: w.name,
1643
- "model-value": s[w.name],
1644
- column: w,
1653
+ }, 1032, ["variant", "onMouseenter", "onMouseleave"])) : p("", !0),
1654
+ (r(!0), h(q, null, Q(e.actualColumns, ($) => (r(), y(F, {
1655
+ key: $.name,
1656
+ "model-value": i[$.name],
1657
+ column: $,
1645
1658
  features: e.features,
1646
1659
  variant: e.variant,
1647
- onInput: (A) => e.onInput(s, w.name, A),
1648
- onFocusin: t[5] || (t[5] = (A) => e.scrollTo(A)),
1649
- onMouseenter: () => e.handleMouseEnterCell(s, w.name, s[w.name]),
1650
- onMouseleave: () => e.handleMouseLeaveCell(s, w.name, s[w.name])
1660
+ onInput: (J) => e.onInput(i, $.name, J),
1661
+ onFocusin: t[5] || (t[5] = (J) => e.scrollTo(J)),
1662
+ onMouseenter: () => e.handleMouseEnterCell(i, $.name, i[$.name]),
1663
+ onMouseleave: () => e.handleMouseLeaveCell(i, $.name, i[$.name])
1651
1664
  }, {
1652
1665
  default: b(() => [
1653
- i(e.$slots, w.name, {
1654
- column: w,
1655
- item: s
1666
+ d(e.$slots, $.name, {
1667
+ column: $,
1668
+ item: i
1656
1669
  }, () => [
1657
- Z(_(s[w.name]), 1)
1670
+ Z(_(i[$.name]), 1)
1658
1671
  ])
1659
1672
  ]),
1660
1673
  _: 2
1661
1674
  }, 1032, ["model-value", "column", "features", "variant", "onInput", "onMouseenter", "onMouseleave"]))), 128))
1662
1675
  ]),
1663
1676
  _: 2
1664
- }, 1032, ["variant", "selected", "interactive", "onMouseenter", "onMouseleave", "onClick"]))), 128)) : e.$slots.noSearchResults && (e.features.filtering && e.filteringModel || e.features.searching && e.searchingModel) ? (r(), y(j, {
1677
+ }, 1032, ["variant", "selected", "interactive", "onMouseenter", "onMouseleave", "onClick"]))), 128)) : e.$slots.noSearchResults && (e.features.filtering && e.filteringModel || e.features.searching && e.searchingModel) ? (r(), y(H, {
1665
1678
  key: 3,
1666
1679
  class: f(["col-span-full"]),
1667
1680
  variant: e.variant
1668
1681
  }, {
1669
1682
  default: b(() => [
1670
- i(e.$slots, "noSearchResults", {
1683
+ d(e.$slots, "noSearchResults", {
1671
1684
  filter: e.filteringModel,
1672
1685
  search: e.searchingModel
1673
1686
  })
1674
1687
  ]),
1675
1688
  _: 3
1676
- }, 8, ["variant"])) : e.$slots.empty ? (r(), y(j, {
1689
+ }, 8, ["variant"])) : e.$slots.empty ? (r(), y(H, {
1677
1690
  key: 4,
1678
1691
  class: f(["col-span-full"]),
1679
1692
  variant: e.variant
1680
1693
  }, {
1681
1694
  default: b(() => [
1682
- i(e.$slots, "empty")
1695
+ d(e.$slots, "empty")
1683
1696
  ]),
1684
1697
  _: 3
1685
- }, 8, ["variant"])) : g("", !0),
1698
+ }, 8, ["variant"])) : p("", !0),
1686
1699
  e.$slots["after-rows"] ? (r(), y(c, {
1687
1700
  key: 5,
1688
1701
  variant: e.variant
1689
1702
  }, {
1690
1703
  default: b(() => [
1691
- i(e.$slots, "after-rows")
1704
+ d(e.$slots, "after-rows")
1692
1705
  ]),
1693
1706
  _: 3
1694
- }, 8, ["variant"])) : g("", !0)
1707
+ }, 8, ["variant"])) : p("", !0)
1695
1708
  ]),
1696
1709
  _: 3
1697
1710
  })
1698
1711
  ]),
1699
1712
  _: 3
1700
1713
  }, 8, ["class", "style", "columns", "features"]),
1701
- e.$slots["extra-row"] ? (r(), y(U, { key: 2 }, {
1714
+ e.$slots["extra-row"] ? (r(), y(L, { key: 2 }, {
1702
1715
  default: b(() => [
1703
- H(P, {
1716
+ z(P, {
1704
1717
  class: f(["shrink-0"]),
1705
1718
  variant: e.variant
1706
1719
  }, {
1707
1720
  default: b(() => [
1708
- H(E, null, {
1721
+ z(W, null, {
1709
1722
  default: b(() => [
1710
- i(e.$slots, "extra-row")
1723
+ d(e.$slots, "extra-row")
1711
1724
  ]),
1712
1725
  _: 3
1713
1726
  })
@@ -1716,8 +1729,8 @@ function Xt(e, t, n, h, v, u) {
1716
1729
  }, 8, ["variant"])
1717
1730
  ]),
1718
1731
  _: 3
1719
- })) : g("", !0),
1720
- e.$slots.actions || e.showSelectingCouter || e.features.paging ? (r(), y(N, {
1732
+ })) : p("", !0),
1733
+ e.$slots.actions || e.showSelectingCouter || e.features.paging ? (r(), y(j, {
1721
1734
  key: 3,
1722
1735
  class: f(["shrink-0"])
1723
1736
  }, Y({ _: 2 }, [
@@ -1731,46 +1744,46 @@ function Xt(e, t, n, h, v, u) {
1731
1744
  e.$slots.actions ? {
1732
1745
  name: "actions",
1733
1746
  fn: b(() => [
1734
- i(e.$slots, "actions")
1747
+ d(e.$slots, "actions")
1735
1748
  ]),
1736
1749
  key: "1"
1737
1750
  } : void 0,
1738
1751
  e.features.paging ? {
1739
1752
  name: "paging",
1740
1753
  fn: b(() => [
1741
- H(L, {
1754
+ z(A, {
1742
1755
  ref: "pagination",
1743
1756
  modelValue: e.pagingModel,
1744
- "onUpdate:modelValue": t[6] || (t[6] = (s) => e.pagingModel = s),
1757
+ "onUpdate:modelValue": t[6] || (t[6] = (i) => e.pagingModel = i),
1745
1758
  length: e.features.paging.length,
1746
1759
  options: e.features.paging.options
1747
1760
  }, null, 8, ["modelValue", "length", "options"])
1748
1761
  ]),
1749
1762
  key: "2"
1750
1763
  } : void 0
1751
- ]), 1024)) : g("", !0)
1764
+ ]), 1024)) : p("", !0)
1752
1765
  ], 2);
1753
1766
  }
1754
- const fa = /* @__PURE__ */ C(Kt, [["render", Xt]]);
1767
+ const pa = /* @__PURE__ */ R(Jt, [["render", Qt]]);
1755
1768
  export {
1756
1769
  k as D,
1757
- fa as O,
1770
+ pa as O,
1758
1771
  B as a,
1759
- Ge as b,
1760
- He as c,
1761
- ze as d,
1762
- qe as e,
1763
- Je as f,
1764
- _e as g,
1765
- rt as h,
1766
- st as i,
1767
- mt as j,
1768
- vt as k,
1769
- Ot as l,
1770
- Tt as m,
1771
- Mt as n,
1772
- Ft as o,
1773
- jt as p,
1774
- qt as q
1772
+ Ve as b,
1773
+ Fe as c,
1774
+ Ne as d,
1775
+ Ke as e,
1776
+ Ye as f,
1777
+ et as g,
1778
+ nt as h,
1779
+ dt as i,
1780
+ gt as j,
1781
+ yt as k,
1782
+ wt as l,
1783
+ Ct as m,
1784
+ It as n,
1785
+ Wt as o,
1786
+ Ut as p,
1787
+ Kt as q
1775
1788
  };
1776
- //# sourceMappingURL=OrDataGrid-C_RY7OZe.mjs.map
1789
+ //# sourceMappingURL=OrDataGrid-D8ZLdtGb.mjs.map