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