@onereach/ui-components 25.3.4 → 25.3.5-beta.5813.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,8 +1,8 @@
1
1
  import { O as X } from "./OrCheckbox-WPBzlvaV.mjs";
2
- import { O as Y } from "./OrPagination-pcDCKc9g.mjs";
3
- import { O as Z } from "./OrSearch-CRFuNmg2.mjs";
4
- import { O as _ } from "./OrSkeletonArea.vue_vue_type_script_lang-jgRhbZ0X.mjs";
5
- import { defineComponent as G, ref as D, computed as n, openBlock as a, createElementBlock as f, normalizeClass as u, renderSlot as s, createCommentVNode as g, resolveComponent as d, normalizeStyle as N, Fragment as H, createBlock as m, watch as x, createElementVNode as ee, createVNode as M, mergeProps as te, withCtx as p, createSlots as K, normalizeProps as oe, guardReactiveProps as ae, renderList as P, createTextVNode as Q, toDisplayString as W } from "vue";
2
+ import { O as Z } from "./OrPagination-pcDCKc9g.mjs";
3
+ import { O as _ } from "./OrSearch-CRFuNmg2.mjs";
4
+ import { O as x } from "./OrSkeletonArea.vue_vue_type_script_lang-jgRhbZ0X.mjs";
5
+ import { defineComponent as G, ref as D, computed as n, openBlock as a, createElementBlock as f, normalizeClass as u, renderSlot as s, createCommentVNode as g, resolveComponent as d, normalizeStyle as N, Fragment as H, createBlock as m, watch as ee, createElementVNode as Y, createVNode as M, mergeProps as te, withCtx as p, createSlots as K, normalizeProps as oe, guardReactiveProps as ae, renderList as P, createTextVNode as Q, toDisplayString as W } from "vue";
6
6
  import { _ as T } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
7
7
  import { O as re } from "./OrDatePicker-B_N24Q-T.mjs";
8
8
  import { O as ne } from "./OrDateTimePicker-CNt_o1Js.mjs";
@@ -31,10 +31,10 @@ const ge = [
31
31
  // Theme
32
32
  "theme-border-disabled border-t-1",
33
33
  "dark:theme-border-disabled-dark"
34
- ], be = [
34
+ ], ve = [
35
35
  // Typography
36
36
  "typography-body-2-semibold"
37
- ], ve = G({
37
+ ], be = G({
38
38
  name: "OrDataGridFooter",
39
39
  expose: [
40
40
  "root"
@@ -44,7 +44,7 @@ const ge = [
44
44
  "or-data-grid-footer-v3",
45
45
  ...ge
46
46
  ]), r = n(() => [
47
- ...be
47
+ ...ve
48
48
  ]);
49
49
  return {
50
50
  root: e,
@@ -56,7 +56,7 @@ const ge = [
56
56
  key: 1,
57
57
  class: /* @__PURE__ */ u(["grow"])
58
58
  };
59
- function ye(e, t, r, c, b, v) {
59
+ function ye(e, t, r, c, v, b) {
60
60
  return a(), f("div", {
61
61
  ref: "root",
62
62
  class: u(e.rootStyles)
@@ -72,7 +72,7 @@ function ye(e, t, r, c, b, v) {
72
72
  s(e.$slots, "paging")
73
73
  ], 2);
74
74
  }
75
- const ke = /* @__PURE__ */ T(ve, [["render", ye]]), Oe = [
75
+ const ke = /* @__PURE__ */ T(be, [["render", ye]]), Oe = [
76
76
  // Layout
77
77
  "layout-row items-start",
78
78
  // Interactivity
@@ -104,7 +104,7 @@ const ke = /* @__PURE__ */ T(ve, [["render", ye]]), Oe = [
104
104
  key: 1,
105
105
  class: /* @__PURE__ */ u(["grow"])
106
106
  };
107
- function Ge(e, t, r, c, b, v) {
107
+ function Ge(e, t, r, c, v, b) {
108
108
  return a(), f("div", {
109
109
  ref: "root",
110
110
  class: u(e.rootStyles)
@@ -196,7 +196,7 @@ const Te = /* @__PURE__ */ T(De, [["render", Ge]]), Se = [
196
196
  ...Se,
197
197
  ...($ = e.column) != null && $.stickiness ? [`sticky-${e.column.stickiness}`] : []
198
198
  ];
199
- }), b = n(() => {
199
+ }), v = n(() => {
200
200
  if (e.column)
201
201
  switch (e.column.stickiness) {
202
202
  case "start":
@@ -222,7 +222,7 @@ const Te = /* @__PURE__ */ T(De, [["render", Ge]]), Se = [
222
222
  return {
223
223
  justifyContent: "center"
224
224
  };
225
- }), v = n(() => [
225
+ }), b = n(() => [
226
226
  ...Ce
227
227
  ]), k = n({
228
228
  get: () => e.modelValue,
@@ -236,14 +236,14 @@ const Te = /* @__PURE__ */ T(De, [["render", Ge]]), Se = [
236
236
  return {
237
237
  root: r,
238
238
  rootStyles: c,
239
- rootInlineStyles: b,
240
- contentStyles: v,
239
+ rootInlineStyles: v,
240
+ contentStyles: b,
241
241
  model: k,
242
242
  control: O
243
243
  };
244
244
  }
245
245
  });
246
- function Me(e, t, r, c, b, v) {
246
+ function Me(e, t, r, c, v, b) {
247
247
  const k = d("OrInput"), O = d("OrRating"), $ = d("OrSelect"), i = d("OrCheckbox"), w = d("OrSwitch"), S = d("OrDatePicker"), C = d("OrTimePicker"), V = d("OrDateTimePicker"), I = d("OrTagInput");
248
248
  return a(), f("div", {
249
249
  ref: "root",
@@ -392,7 +392,7 @@ const Ie = [
392
392
  };
393
393
  }
394
394
  }), Pe = ["selected"];
395
- function je(e, t, r, c, b, v) {
395
+ function je(e, t, r, c, v, b) {
396
396
  return a(), f("div", {
397
397
  ref: "root",
398
398
  class: u(e.rootStyles),
@@ -420,7 +420,7 @@ const Ee = /* @__PURE__ */ T(He, [["render", je]]), Ue = [
420
420
  };
421
421
  }
422
422
  });
423
- function qe(e, t, r, c, b, v) {
423
+ function qe(e, t, r, c, v, b) {
424
424
  return a(), f("div", {
425
425
  ref: "root",
426
426
  class: u(e.rootStyles)
@@ -454,7 +454,7 @@ const Le = /* @__PURE__ */ T(Ne, [["render", qe]]), Be = [
454
454
  };
455
455
  }
456
456
  });
457
- function Ae(e, t, r, c, b, v) {
457
+ function Ae(e, t, r, c, v, b) {
458
458
  return a(), f("div", {
459
459
  ref: "root",
460
460
  class: u(e.rootStyles)
@@ -511,7 +511,7 @@ const Je = /* @__PURE__ */ T(ze, [["render", Ae]]), Ke = [
511
511
  };
512
512
  }
513
513
  });
514
- function Xe(e, t, r, c, b, v) {
514
+ function Xe(e, t, r, c, v, b) {
515
515
  return a(), f("div", {
516
516
  ref: "root",
517
517
  class: u(e.rootStyles)
@@ -538,7 +538,7 @@ const Ye = /* @__PURE__ */ T(We, [["render", Xe]]), Ze = [
538
538
  };
539
539
  }
540
540
  });
541
- function xe(e, t, r, c, b, v) {
541
+ function xe(e, t, r, c, v, b) {
542
542
  return a(), f("div", {
543
543
  ref: "root",
544
544
  class: u(e.rootStyles)
@@ -597,7 +597,7 @@ const et = /* @__PURE__ */ T(_e, [["render", xe]]), tt = [
597
597
  const r = D(), c = n(() => {
598
598
  var i, w, S;
599
599
  return !!((i = e.features) != null && i.sorting) && !!((w = e.column) != null && w.name) && ((S = e.column) == null ? void 0 : S.sorting) !== !1;
600
- }), b = n(() => {
600
+ }), v = n(() => {
601
601
  var i;
602
602
  return [
603
603
  "or-data-grid-table-header-cell-v3",
@@ -605,7 +605,7 @@ const et = /* @__PURE__ */ T(_e, [["render", xe]]), tt = [
605
605
  ...(i = e.column) != null && i.stickiness ? [`sticky-${e.column.stickiness}`] : [],
606
606
  ...c.value ? ["interactivity-click"] : []
607
607
  ];
608
- }), v = n(() => {
608
+ }), b = n(() => {
609
609
  if (e.column)
610
610
  switch (e.column.stickiness) {
611
611
  case "start":
@@ -659,7 +659,7 @@ const et = /* @__PURE__ */ T(_e, [["render", xe]]), tt = [
659
659
  }
660
660
  }
661
661
  const { width: $ } = fe(r, void 0, { box: "border-box" });
662
- return x([
662
+ return ee([
663
663
  r,
664
664
  $,
665
665
  () => {
@@ -675,8 +675,8 @@ const et = /* @__PURE__ */ T(_e, [["render", xe]]), tt = [
675
675
  S && S !== i && t.emit("remove:scrollOffset", S), t.emit("update:scrollOffset", i, w, e.column);
676
676
  }), {
677
677
  root: r,
678
- rootStyles: b,
679
- rootInlineStyles: v,
678
+ rootStyles: v,
679
+ rootInlineStyles: b,
680
680
  isSortable: c,
681
681
  model: k,
682
682
  toggleSorting: O
@@ -685,7 +685,7 @@ const et = /* @__PURE__ */ T(_e, [["render", xe]]), tt = [
685
685
  }), at = {
686
686
  class: /* @__PURE__ */ u(["truncate"])
687
687
  };
688
- function rt(e, t, r, c, b, v) {
688
+ function rt(e, t, r, c, v, b) {
689
689
  const k = d("OrIcon");
690
690
  return a(), f("div", {
691
691
  ref: "root",
@@ -693,7 +693,7 @@ function rt(e, t, r, c, b, v) {
693
693
  style: N(e.rootInlineStyles),
694
694
  onClick: t[0] || (t[0] = (O) => e.toggleSorting())
695
695
  }, [
696
- ee("div", at, [
696
+ Y("div", at, [
697
697
  s(e.$slots, "default")
698
698
  ]),
699
699
  e.model ? (a(), m(k, {
@@ -750,7 +750,7 @@ const nt = /* @__PURE__ */ T(ot, [["render", rt]]), lt = [
750
750
  };
751
751
  }
752
752
  });
753
- function dt(e, t, r, c, b, v) {
753
+ function dt(e, t, r, c, v, b) {
754
754
  return a(), f("div", {
755
755
  ref: "root",
756
756
  class: u(e.rootStyles)
@@ -777,7 +777,7 @@ const ut = /* @__PURE__ */ T(it, [["render", dt]]), ct = [
777
777
  };
778
778
  }
779
779
  });
780
- function ft(e, t, r, c, b, v) {
780
+ function ft(e, t, r, c, v, b) {
781
781
  return a(), f("div", {
782
782
  ref: "root",
783
783
  class: u(e.rootStyles)
@@ -799,7 +799,7 @@ const pt = /* @__PURE__ */ T(mt, [["render", ft]]), gt = [
799
799
  "dark:theme-foreground-default-dark",
800
800
  "theme-background-default",
801
801
  "dark:theme-background-default-dark"
802
- ], bt = {
802
+ ], vt = {
803
803
  [y.Standard]: [
804
804
  // Box
805
805
  "min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
@@ -812,7 +812,7 @@ const pt = /* @__PURE__ */ T(mt, [["render", ft]]), gt = [
812
812
  // Box
813
813
  "min-h-[calc(theme(spacing.xl)+theme(spacing.xs))]"
814
814
  ]
815
- }, vt = G({
815
+ }, bt = G({
816
816
  name: "OrDataGridTablePlaceholder",
817
817
  props: {
818
818
  variant: {
@@ -827,7 +827,7 @@ const pt = /* @__PURE__ */ T(mt, [["render", ft]]), gt = [
827
827
  const t = D(), r = n(() => [
828
828
  "or-data-grid-table-placeholder-v3",
829
829
  ...gt,
830
- ...bt[e.variant]
830
+ ...vt[e.variant]
831
831
  ]);
832
832
  return {
833
833
  root: t,
@@ -835,7 +835,7 @@ const pt = /* @__PURE__ */ T(mt, [["render", ft]]), gt = [
835
835
  };
836
836
  }
837
837
  });
838
- function ht(e, t, r, c, b, v) {
838
+ function ht(e, t, r, c, v, b) {
839
839
  return a(), f("div", {
840
840
  ref: "root",
841
841
  class: u(e.rootStyles)
@@ -843,7 +843,7 @@ function ht(e, t, r, c, b, v) {
843
843
  s(e.$slots, "default")
844
844
  ], 2);
845
845
  }
846
- const yt = /* @__PURE__ */ T(vt, [["render", ht]]), kt = [
846
+ const yt = /* @__PURE__ */ T(bt, [["render", ht]]), kt = [
847
847
  // Layout
848
848
  "grid content-start",
849
849
  // Overflow
@@ -870,8 +870,8 @@ const yt = /* @__PURE__ */ T(vt, [["render", ht]]), kt = [
870
870
  "or-data-grid-table-v3",
871
871
  ...kt
872
872
  ]), c = n(() => {
873
- const b = e.columns.map((v) => v.width ?? "auto");
874
- return e.features.selecting ? { gridTemplateColumns: `0fr ${b.join(" ")}` } : { gridTemplateColumns: b.join(" ") };
873
+ const v = e.columns.map((b) => b.width ?? "auto");
874
+ return e.features.selecting ? { gridTemplateColumns: `0fr ${v.join(" ")}` } : { gridTemplateColumns: v.join(" ") };
875
875
  });
876
876
  return {
877
877
  root: t,
@@ -880,7 +880,7 @@ const yt = /* @__PURE__ */ T(vt, [["render", ht]]), kt = [
880
880
  };
881
881
  }
882
882
  });
883
- function $t(e, t, r, c, b, v) {
883
+ function $t(e, t, r, c, v, b) {
884
884
  return a(), f("div", {
885
885
  ref: "root",
886
886
  class: u(e.rootStyles),
@@ -912,7 +912,7 @@ const Dt = /* @__PURE__ */ T(Ot, [["render", $t]]), wt = [
912
912
  };
913
913
  }
914
914
  });
915
- function Tt(e, t, r, c, b, v) {
915
+ function Tt(e, t, r, c, v, b) {
916
916
  return a(), f("div", {
917
917
  ref: "root",
918
918
  class: u(e.rootStyles)
@@ -965,7 +965,7 @@ const St = /* @__PURE__ */ T(Gt, [["render", Tt]]), Ct = [
965
965
  };
966
966
  }
967
967
  });
968
- function Rt(e, t, r, c, b, v) {
968
+ function Rt(e, t, r, c, v, b) {
969
969
  const k = d("OrNotification");
970
970
  return a(), f("div", {
971
971
  class: u(e.rootStyles)
@@ -1030,7 +1030,7 @@ const It = /* @__PURE__ */ T(Mt, [["render", Rt]]), Ft = [
1030
1030
  };
1031
1031
  }
1032
1032
  });
1033
- function jt(e, t, r, c, b, v) {
1033
+ function jt(e, t, r, c, v, b) {
1034
1034
  return a(), f("div", {
1035
1035
  ref: "root",
1036
1036
  class: u(e.rootStyles)
@@ -1040,7 +1040,8 @@ function jt(e, t, r, c, b, v) {
1040
1040
  }
1041
1041
  const Et = /* @__PURE__ */ T(Pt, [["render", jt]]), Ut = [
1042
1042
  // Layout
1043
- "layout-column"
1043
+ "layout-column",
1044
+ "justify-between"
1044
1045
  ], Nt = G({
1045
1046
  name: "OrDataGrid",
1046
1047
  components: {
@@ -1061,9 +1062,9 @@ const Et = /* @__PURE__ */ T(Pt, [["render", jt]]), Ut = [
1061
1062
  OrDataGridTablePlaceholder: yt,
1062
1063
  OrDataGridToolbar: St,
1063
1064
  OrDataGridNotification: It,
1064
- OrPagination: Y,
1065
- OrSearch: Z,
1066
- OrSkeletonText: _
1065
+ OrPagination: Z,
1066
+ OrSearch: _,
1067
+ OrSkeletonText: x
1067
1068
  },
1068
1069
  model: {
1069
1070
  prop: "modelValue",
@@ -1117,10 +1118,10 @@ const Et = /* @__PURE__ */ T(Pt, [["render", jt]]), Ut = [
1117
1118
  "root"
1118
1119
  ],
1119
1120
  setup(e, t) {
1120
- const r = D(), c = D(), b = n(() => [
1121
+ const r = D(), c = D(), v = n(() => [
1121
1122
  "or-data-grid-v3",
1122
1123
  ...Ut
1123
- ]), v = n(() => ({
1124
+ ]), b = n(() => ({
1124
1125
  scrollPaddingInlineStart: `${[...C.value.values()].reduce((o, l) => o + l, 0)}px`,
1125
1126
  scrollPaddingInlineEnd: `${[...V.value.values()].reduce((o, l) => o + l, 0)}px`
1126
1127
  })), k = n({
@@ -1263,9 +1264,9 @@ const Et = /* @__PURE__ */ T(Pt, [["render", jt]]), Ut = [
1263
1264
  }
1264
1265
  return {
1265
1266
  root: r,
1266
- rootStyles: b,
1267
+ rootStyles: v,
1267
1268
  pagination: c,
1268
- tableInlineStyles: v,
1269
+ tableInlineStyles: b,
1269
1270
  selectingIndicator: k,
1270
1271
  showSelectingCouter: I,
1271
1272
  selectingDisabled: h,
@@ -1289,259 +1290,261 @@ const Et = /* @__PURE__ */ T(Pt, [["render", jt]]), Ut = [
1289
1290
  }
1290
1291
  };
1291
1292
  }
1292
- });
1293
- function qt(e, t, r, c, b, v) {
1293
+ }), qt = { class: "layout-column overflow-hidden" };
1294
+ function Lt(e, t, r, c, v, b) {
1294
1295
  const k = d("OrSearch"), O = d("OrDataGridHeader"), $ = d("OrDataGridToolbar"), i = d("OrCheckbox"), w = d("OrDataGridTableHeaderCell"), S = d("OrDataGridTableHeaderRow"), C = d("OrDataGridTableHeader"), V = d("OrDataGridNotification"), I = d("OrDataGridTableExtraRow"), h = d("OrSkeletonText"), F = d("OrDataGridTableContentCell"), j = d("OrDataGridTableContentRow"), E = d("OrDataGridTablePlaceholder"), q = d("OrDataGridTableContent"), L = d("OrDataGridTable"), B = d("OrDataGridTableFooterCell"), z = d("OrDataGridTableFooterRow"), A = d("OrDataGridTableFooter"), U = d("OrPagination"), J = d("OrDataGridFooter");
1295
1296
  return a(), f("div", {
1296
1297
  ref: "root",
1297
1298
  class: u(e.rootStyles)
1298
1299
  }, [
1299
- e.$slots.title || e.features.searching || e.$slots.search ? (a(), m(O, {
1300
- key: 0,
1301
- class: u(["shrink-0"])
1302
- }, K({ _: 2 }, [
1303
- e.$slots.title ? {
1304
- name: "title",
1305
- fn: p(() => [
1306
- s(e.$slots, "title")
1307
- ]),
1308
- key: "0"
1309
- } : void 0,
1310
- e.features.searching ? {
1311
- name: "searching",
1312
- fn: p(() => [
1313
- s(e.$slots, "search", oe(ae({ updateSearchingModel: e.updateSearchingModel, searchingModel: e.searchingModel })), () => [
1314
- M(k, {
1315
- modelValue: e.searchingModel,
1316
- "onUpdate:modelValue": t[0] || (t[0] = (o) => e.searchingModel = o)
1317
- }, null, 8, ["modelValue"])
1318
- ])
1319
- ]),
1320
- key: "1"
1321
- } : void 0
1322
- ]), 1024)) : g("", !0),
1323
- e.$slots.toolbar ? (a(), m($, {
1324
- key: 1,
1325
- class: u(["shrink-0"])
1326
- }, {
1327
- default: p(() => [
1328
- s(e.$slots, "toolbar")
1329
- ]),
1330
- _: 3
1331
- })) : g("", !0),
1332
- M(L, {
1333
- class: u(["grow", { "grid-rows-[auto_1fr]": e.items.length === 0 }]),
1334
- style: N(e.tableInlineStyles),
1335
- columns: e.columns,
1336
- features: e.features
1337
- }, {
1338
- default: p(() => [
1339
- M(C, null, {
1340
- default: p(() => [
1341
- M(S, { variant: e.variant }, {
1342
- default: p(() => [
1343
- e.features.selecting ? (a(), m(w, {
1344
- key: 0,
1345
- column: { stickiness: "start" },
1346
- class: "!py-xs !px-xs md:!py-none md:!px-sm+",
1347
- "onUpdate:scrollOffset": e.updateScrollOffset,
1348
- "onRemove:scrollOffset": e.removeScrollOffset
1349
- }, {
1350
- default: p(() => [
1351
- M(i, {
1352
- modelValue: e.selectingIndicator,
1353
- "onUpdate:modelValue": t[1] || (t[1] = (o) => e.selectingIndicator = o),
1354
- indeterminate: !e.selectingIndicator && e.selectingModel.length > 0,
1355
- disabled: e.selectingDisabled
1356
- }, null, 8, ["modelValue", "indeterminate", "disabled"])
1357
- ]),
1358
- _: 1
1359
- }, 8, ["onUpdate:scrollOffset", "onRemove:scrollOffset"])) : g("", !0),
1360
- (a(!0), f(H, null, P(e.columns, (o) => (a(), m(w, {
1361
- key: o.name,
1362
- modelValue: e.sortingModel,
1363
- "onUpdate:modelValue": t[2] || (t[2] = (l) => e.sortingModel = l),
1364
- column: o,
1365
- features: e.features,
1366
- "onUpdate:scrollOffset": e.updateScrollOffset,
1367
- "onRemove:scrollOffset": e.removeScrollOffset
1368
- }, {
1369
- default: p(() => [
1370
- Q(W(o.label), 1)
1371
- ]),
1372
- _: 2
1373
- }, 1032, ["modelValue", "column", "features", "onUpdate:scrollOffset", "onRemove:scrollOffset"]))), 128))
1374
- ]),
1375
- _: 1
1376
- }, 8, ["variant"])
1300
+ Y("div", qt, [
1301
+ e.$slots.title || e.features.searching || e.$slots.search ? (a(), m(O, {
1302
+ key: 0,
1303
+ class: u(["shrink-0"])
1304
+ }, K({ _: 2 }, [
1305
+ e.$slots.title ? {
1306
+ name: "title",
1307
+ fn: p(() => [
1308
+ s(e.$slots, "title")
1377
1309
  ]),
1378
- _: 1
1379
- }),
1380
- e.notification ? (a(), m(V, {
1381
- key: 0,
1382
- notification: e.notification,
1383
- variant: e.variant,
1384
- onCloseNotification: t[3] || (t[3] = (o) => e.$emit("close-notification"))
1385
- }, K({ _: 2 }, [
1386
- e.$slots.notification ? {
1387
- name: "notification",
1388
- fn: p(() => [
1389
- s(e.$slots, "notification")
1310
+ key: "0"
1311
+ } : void 0,
1312
+ e.features.searching ? {
1313
+ name: "searching",
1314
+ fn: p(() => [
1315
+ s(e.$slots, "search", oe(ae({ updateSearchingModel: e.updateSearchingModel, searchingModel: e.searchingModel })), () => [
1316
+ M(k, {
1317
+ modelValue: e.searchingModel,
1318
+ "onUpdate:modelValue": t[0] || (t[0] = (o) => e.searchingModel = o)
1319
+ }, null, 8, ["modelValue"])
1320
+ ])
1321
+ ]),
1322
+ key: "1"
1323
+ } : void 0
1324
+ ]), 1024)) : g("", !0),
1325
+ e.$slots.toolbar ? (a(), m($, {
1326
+ key: 1,
1327
+ class: u(["shrink-0"])
1328
+ }, {
1329
+ default: p(() => [
1330
+ s(e.$slots, "toolbar")
1331
+ ]),
1332
+ _: 3
1333
+ })) : g("", !0),
1334
+ M(L, {
1335
+ class: u(["grow", { "grid-rows-[auto_1fr]": e.items.length === 0 }]),
1336
+ style: N(e.tableInlineStyles),
1337
+ columns: e.columns,
1338
+ features: e.features
1339
+ }, {
1340
+ default: p(() => [
1341
+ M(C, null, {
1342
+ default: p(() => [
1343
+ M(S, { variant: e.variant }, {
1344
+ default: p(() => [
1345
+ e.features.selecting ? (a(), m(w, {
1346
+ key: 0,
1347
+ column: { stickiness: "start" },
1348
+ class: "!py-xs !px-xs md:!py-none md:!px-sm+",
1349
+ "onUpdate:scrollOffset": e.updateScrollOffset,
1350
+ "onRemove:scrollOffset": e.removeScrollOffset
1351
+ }, {
1352
+ default: p(() => [
1353
+ M(i, {
1354
+ modelValue: e.selectingIndicator,
1355
+ "onUpdate:modelValue": t[1] || (t[1] = (o) => e.selectingIndicator = o),
1356
+ indeterminate: !e.selectingIndicator && e.selectingModel.length > 0,
1357
+ disabled: e.selectingDisabled
1358
+ }, null, 8, ["modelValue", "indeterminate", "disabled"])
1359
+ ]),
1360
+ _: 1
1361
+ }, 8, ["onUpdate:scrollOffset", "onRemove:scrollOffset"])) : g("", !0),
1362
+ (a(!0), f(H, null, P(e.columns, (o) => (a(), m(w, {
1363
+ key: o.name,
1364
+ modelValue: e.sortingModel,
1365
+ "onUpdate:modelValue": t[2] || (t[2] = (l) => e.sortingModel = l),
1366
+ column: o,
1367
+ features: e.features,
1368
+ "onUpdate:scrollOffset": e.updateScrollOffset,
1369
+ "onRemove:scrollOffset": e.removeScrollOffset
1370
+ }, {
1371
+ default: p(() => [
1372
+ Q(W(o.label), 1)
1373
+ ]),
1374
+ _: 2
1375
+ }, 1032, ["modelValue", "column", "features", "onUpdate:scrollOffset", "onRemove:scrollOffset"]))), 128))
1376
+ ]),
1377
+ _: 1
1378
+ }, 8, ["variant"])
1390
1379
  ]),
1391
- key: "0"
1392
- } : void 0
1393
- ]), 1032, ["notification", "variant"])) : g("", !0),
1394
- M(q, null, {
1395
- default: p(() => [
1396
- e.$slots["before-rows"] ? (a(), m(I, {
1397
- key: 0,
1398
- variant: e.variant,
1399
- class: "border-b-1"
1400
- }, {
1401
- default: p(() => [
1402
- s(e.$slots, "before-rows")
1380
+ _: 1
1381
+ }),
1382
+ e.notification ? (a(), m(V, {
1383
+ key: 0,
1384
+ notification: e.notification,
1385
+ variant: e.variant,
1386
+ onCloseNotification: t[3] || (t[3] = (o) => e.$emit("close-notification"))
1387
+ }, K({ _: 2 }, [
1388
+ e.$slots.notification ? {
1389
+ name: "notification",
1390
+ fn: p(() => [
1391
+ s(e.$slots, "notification")
1403
1392
  ]),
1404
- _: 3
1405
- }, 8, ["variant"])) : g("", !0),
1406
- e.loading ? (a(!0), f(H, { key: 1 }, P(e.skeletonsLength, (o) => (a(), m(j, {
1407
- key: o,
1408
- variant: e.variant,
1409
- interactive: e.interactiveRows
1410
- }, {
1411
- default: p(() => [
1412
- e.features.selecting ? (a(), m(F, {
1413
- key: 0,
1414
- column: { stickiness: "start" },
1415
- override: !0
1416
- }, {
1417
- default: p(() => [
1418
- M(h)
1419
- ]),
1420
- _: 1
1421
- })) : g("", !0),
1422
- (a(!0), f(H, null, P(e.columns, (l) => (a(), m(F, {
1423
- key: l.name,
1424
- column: l,
1425
- features: e.features,
1426
- override: !0
1427
- }, {
1428
- default: p(() => [
1429
- s(e.$slots, "column-loading", { column: l }, () => [
1393
+ key: "0"
1394
+ } : void 0
1395
+ ]), 1032, ["notification", "variant"])) : g("", !0),
1396
+ M(q, null, {
1397
+ default: p(() => [
1398
+ e.$slots["before-rows"] ? (a(), m(I, {
1399
+ key: 0,
1400
+ variant: e.variant,
1401
+ class: "border-b-1"
1402
+ }, {
1403
+ default: p(() => [
1404
+ s(e.$slots, "before-rows")
1405
+ ]),
1406
+ _: 3
1407
+ }, 8, ["variant"])) : g("", !0),
1408
+ e.loading ? (a(!0), f(H, { key: 1 }, P(e.skeletonsLength, (o) => (a(), m(j, {
1409
+ key: o,
1410
+ variant: e.variant,
1411
+ interactive: e.interactiveRows
1412
+ }, {
1413
+ default: p(() => [
1414
+ e.features.selecting ? (a(), m(F, {
1415
+ key: 0,
1416
+ column: { stickiness: "start" },
1417
+ override: !0
1418
+ }, {
1419
+ default: p(() => [
1430
1420
  M(h)
1431
- ])
1432
- ]),
1433
- _: 2
1434
- }, 1032, ["column", "features"]))), 128))
1435
- ]),
1436
- _: 2
1437
- }, 1032, ["variant", "interactive"]))), 128)) : e.items.length > 0 ? (a(!0), f(H, { key: 2 }, P(e.items, (o) => (a(), m(j, {
1438
- key: o.id,
1439
- variant: e.variant,
1440
- selected: e.selectingModel.includes(o.id),
1441
- interactive: e.interactiveRows,
1442
- onMouseenter: () => e.handleMouseEnterRow(o),
1443
- onMouseleave: () => e.handleMouseLeaveRow(o),
1444
- onClick: () => e.handleRowClick(o)
1445
- }, {
1446
- default: p(() => [
1447
- e.features.selecting ? (a(), m(F, {
1448
- key: 0,
1449
- column: { stickiness: "start" },
1450
- "force-state": "none",
1451
- class: "!py-xs !px-xs md:!py-none md:!px-sm+",
1452
- onMouseenter: () => e.handleMouseEnterCell(o, "selecting", e.selectingModel.includes(o.id)),
1453
- onMouseleave: () => e.handleMouseLeaveCell(o, "selecting", e.selectingModel.includes(o.id))
1454
- }, {
1455
- default: p(() => [
1456
- M(i, {
1457
- modelValue: e.selectingModel,
1458
- "onUpdate:modelValue": t[4] || (t[4] = (l) => e.selectingModel = l),
1459
- value: o.id,
1460
- disabled: e.selectingDisabled
1461
- }, null, 8, ["modelValue", "value", "disabled"])
1462
- ]),
1463
- _: 2
1464
- }, 1032, ["onMouseenter", "onMouseleave"])) : g("", !0),
1465
- (a(!0), f(H, null, P(e.columns, (l) => (a(), m(F, {
1466
- key: l.name,
1467
- "model-value": o[l.name],
1468
- column: l,
1469
- features: e.features,
1470
- onInput: (R) => e.onInput(o, l.name, R),
1471
- onFocusin: t[5] || (t[5] = (R) => e.scrollTo(R)),
1472
- onMouseenter: () => e.handleMouseEnterCell(o, l.name, o[l.name]),
1473
- onMouseleave: () => e.handleMouseLeaveCell(o, l.name, o[l.name])
1474
- }, {
1475
- default: p(() => [
1476
- s(e.$slots, l.name, {
1477
- column: l,
1478
- item: o
1479
- }, () => [
1480
- Q(W(o[l.name]), 1)
1481
- ])
1482
- ]),
1483
- _: 2
1484
- }, 1032, ["model-value", "column", "features", "onInput", "onMouseenter", "onMouseleave"]))), 128))
1485
- ]),
1486
- _: 2
1487
- }, 1032, ["variant", "selected", "interactive", "onMouseenter", "onMouseleave", "onClick"]))), 128)) : e.$slots.noSearchResults && (e.features.filtering && e.filteringModel || e.features.searching && e.searchingModel) ? (a(), m(E, {
1488
- key: 3,
1489
- class: u(["col-span-full"]),
1490
- variant: e.variant
1491
- }, {
1492
- default: p(() => [
1493
- s(e.$slots, "noSearchResults", {
1494
- filter: e.filteringModel,
1495
- search: e.searchingModel
1496
- })
1497
- ]),
1498
- _: 3
1499
- }, 8, ["variant"])) : e.$slots.empty ? (a(), m(E, {
1500
- key: 4,
1501
- class: u(["col-span-full"]),
1502
- variant: e.variant
1503
- }, {
1504
- default: p(() => [
1505
- s(e.$slots, "empty")
1506
- ]),
1507
- _: 3
1508
- }, 8, ["variant"])) : g("", !0),
1509
- e.$slots["after-rows"] ? (a(), m(I, {
1510
- key: 5,
1511
- variant: e.variant
1512
- }, {
1513
- default: p(() => [
1514
- s(e.$slots, "after-rows")
1515
- ]),
1516
- _: 3
1517
- }, 8, ["variant"])) : g("", !0)
1518
- ]),
1519
- _: 3
1520
- })
1521
- ]),
1522
- _: 3
1523
- }, 8, ["class", "style", "columns", "features"]),
1524
- e.$slots["extra-row"] ? (a(), m(A, { key: 2 }, {
1525
- default: p(() => [
1526
- M(z, {
1527
- class: u(["shrink-0"]),
1528
- variant: e.variant
1529
- }, {
1530
- default: p(() => [
1531
- M(B, null, {
1532
- default: p(() => [
1533
- s(e.$slots, "extra-row")
1534
- ]),
1535
- _: 3
1536
- })
1537
- ]),
1538
- _: 3
1539
- }, 8, ["variant"])
1540
- ]),
1541
- _: 3
1542
- })) : g("", !0),
1421
+ ]),
1422
+ _: 1
1423
+ })) : g("", !0),
1424
+ (a(!0), f(H, null, P(e.columns, (l) => (a(), m(F, {
1425
+ key: l.name,
1426
+ column: l,
1427
+ features: e.features,
1428
+ override: !0
1429
+ }, {
1430
+ default: p(() => [
1431
+ s(e.$slots, "column-loading", { column: l }, () => [
1432
+ M(h)
1433
+ ])
1434
+ ]),
1435
+ _: 2
1436
+ }, 1032, ["column", "features"]))), 128))
1437
+ ]),
1438
+ _: 2
1439
+ }, 1032, ["variant", "interactive"]))), 128)) : e.items.length > 0 ? (a(!0), f(H, { key: 2 }, P(e.items, (o) => (a(), m(j, {
1440
+ key: o.id,
1441
+ variant: e.variant,
1442
+ selected: e.selectingModel.includes(o.id),
1443
+ interactive: e.interactiveRows,
1444
+ onMouseenter: () => e.handleMouseEnterRow(o),
1445
+ onMouseleave: () => e.handleMouseLeaveRow(o),
1446
+ onClick: () => e.handleRowClick(o)
1447
+ }, {
1448
+ default: p(() => [
1449
+ e.features.selecting ? (a(), m(F, {
1450
+ key: 0,
1451
+ column: { stickiness: "start" },
1452
+ "force-state": "none",
1453
+ class: "!py-xs !px-xs md:!py-none md:!px-sm+",
1454
+ onMouseenter: () => e.handleMouseEnterCell(o, "selecting", e.selectingModel.includes(o.id)),
1455
+ onMouseleave: () => e.handleMouseLeaveCell(o, "selecting", e.selectingModel.includes(o.id))
1456
+ }, {
1457
+ default: p(() => [
1458
+ M(i, {
1459
+ modelValue: e.selectingModel,
1460
+ "onUpdate:modelValue": t[4] || (t[4] = (l) => e.selectingModel = l),
1461
+ value: o.id,
1462
+ disabled: e.selectingDisabled
1463
+ }, null, 8, ["modelValue", "value", "disabled"])
1464
+ ]),
1465
+ _: 2
1466
+ }, 1032, ["onMouseenter", "onMouseleave"])) : g("", !0),
1467
+ (a(!0), f(H, null, P(e.columns, (l) => (a(), m(F, {
1468
+ key: l.name,
1469
+ "model-value": o[l.name],
1470
+ column: l,
1471
+ features: e.features,
1472
+ onInput: (R) => e.onInput(o, l.name, R),
1473
+ onFocusin: t[5] || (t[5] = (R) => e.scrollTo(R)),
1474
+ onMouseenter: () => e.handleMouseEnterCell(o, l.name, o[l.name]),
1475
+ onMouseleave: () => e.handleMouseLeaveCell(o, l.name, o[l.name])
1476
+ }, {
1477
+ default: p(() => [
1478
+ s(e.$slots, l.name, {
1479
+ column: l,
1480
+ item: o
1481
+ }, () => [
1482
+ Q(W(o[l.name]), 1)
1483
+ ])
1484
+ ]),
1485
+ _: 2
1486
+ }, 1032, ["model-value", "column", "features", "onInput", "onMouseenter", "onMouseleave"]))), 128))
1487
+ ]),
1488
+ _: 2
1489
+ }, 1032, ["variant", "selected", "interactive", "onMouseenter", "onMouseleave", "onClick"]))), 128)) : e.$slots.noSearchResults && (e.features.filtering && e.filteringModel || e.features.searching && e.searchingModel) ? (a(), m(E, {
1490
+ key: 3,
1491
+ class: u(["col-span-full"]),
1492
+ variant: e.variant
1493
+ }, {
1494
+ default: p(() => [
1495
+ s(e.$slots, "noSearchResults", {
1496
+ filter: e.filteringModel,
1497
+ search: e.searchingModel
1498
+ })
1499
+ ]),
1500
+ _: 3
1501
+ }, 8, ["variant"])) : e.$slots.empty ? (a(), m(E, {
1502
+ key: 4,
1503
+ class: u(["col-span-full"]),
1504
+ variant: e.variant
1505
+ }, {
1506
+ default: p(() => [
1507
+ s(e.$slots, "empty")
1508
+ ]),
1509
+ _: 3
1510
+ }, 8, ["variant"])) : g("", !0),
1511
+ e.$slots["after-rows"] ? (a(), m(I, {
1512
+ key: 5,
1513
+ variant: e.variant
1514
+ }, {
1515
+ default: p(() => [
1516
+ s(e.$slots, "after-rows")
1517
+ ]),
1518
+ _: 3
1519
+ }, 8, ["variant"])) : g("", !0)
1520
+ ]),
1521
+ _: 3
1522
+ })
1523
+ ]),
1524
+ _: 3
1525
+ }, 8, ["class", "style", "columns", "features"]),
1526
+ e.$slots["extra-row"] ? (a(), m(A, { key: 2 }, {
1527
+ default: p(() => [
1528
+ M(z, {
1529
+ class: u(["shrink-0"]),
1530
+ variant: e.variant
1531
+ }, {
1532
+ default: p(() => [
1533
+ M(B, null, {
1534
+ default: p(() => [
1535
+ s(e.$slots, "extra-row")
1536
+ ]),
1537
+ _: 3
1538
+ })
1539
+ ]),
1540
+ _: 3
1541
+ }, 8, ["variant"])
1542
+ ]),
1543
+ _: 3
1544
+ })) : g("", !0)
1545
+ ]),
1543
1546
  e.$slots.actions || e.showSelectingCouter || e.features.paging ? (a(), m(J, {
1544
- key: 3,
1547
+ key: 0,
1545
1548
  class: u(["shrink-0"])
1546
1549
  }, K({ _: 2 }, [
1547
1550
  e.features.selecting && e.selectingModel.length > 0 ? {
@@ -1574,10 +1577,10 @@ function qt(e, t, r, c, b, v) {
1574
1577
  ]), 1024)) : g("", !0)
1575
1578
  ], 2);
1576
1579
  }
1577
- const lo = /* @__PURE__ */ T(Nt, [["render", qt]]);
1580
+ const so = /* @__PURE__ */ T(Nt, [["render", Lt]]);
1578
1581
  export {
1579
1582
  y as D,
1580
- lo as O,
1583
+ so as O,
1581
1584
  ke as a,
1582
1585
  Te as b,
1583
1586
  Re as c,
@@ -1595,4 +1598,4 @@ export {
1595
1598
  It as o,
1596
1599
  Et as p
1597
1600
  };
1598
- //# sourceMappingURL=OrDataGrid-BYojYWqx.mjs.map
1601
+ //# sourceMappingURL=OrDataGrid-DB59ZWE9.mjs.map