@updog/data-editor 0.1.67 → 0.1.68

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.
Files changed (4) hide show
  1. package/index.css +1 -1
  2. package/index.d.ts +19 -0
  3. package/index.js +290 -229
  4. package/package.json +1 -1
package/index.js CHANGED
@@ -2,7 +2,7 @@ import { r as e } from "./encoding-DEo41qNz.js";
2
2
  import t, { Children as n, Component as r, Fragment as i, Suspense as a, cloneElement as o, createContext as s, createElement as c, forwardRef as l, isValidElement as u, memo as d, useCallback as f, useContext as p, useEffect as m, useId as h, useImperativeHandle as g, useLayoutEffect as _, useMemo as v, useRef as y, useState as b, useSyncExternalStore as x } from "react";
3
3
  import { Fragment as S, jsx as C, jsxs as w } from "react/jsx-runtime";
4
4
  import T, { clsx as E } from "clsx";
5
- import { AlertTriangleIcon as D, ArrowDown as O, ArrowDownZA as k, ArrowRightIcon as A, ArrowUp as j, ArrowUpAZ as M, CalendarIcon as N, CaseSensitiveIcon as P, Check as F, CheckIcon as I, ChevronDown as L, ChevronDownIcon as R, ChevronLeft as ee, ChevronLeftIcon as te, ChevronRight as z, ChevronRightIcon as B, CircleAlertIcon as ne, CircleCheck as V, CircleX as re, ClipboardPaste as ie, Copy as ae, CopyPlus as oe, DownloadIcon as se, Eraser as ce, Eye as le, EyeOff as ue, FunctionSquare as de, FunnelIcon as fe, Info as pe, InfoIcon as me, LayoutGridIcon as he, ListPlus as ge, LockKeyholeIcon as _e, LockKeyholeOpen as ve, Merge as ye, Minus as be, Pencil as xe, PinIcon as Se, PinOffIcon as Ce, PlusIcon as we, Redo2Icon as Te, RefreshCwIcon as Ee, ReplaceIcon as De, RotateCcwIcon as Oe, Scissors as ke, SearchIcon as Ae, SendIcon as je, Split as Me, SquareIcon as Ne, Trash2 as Pe, Trash2Icon as Fe, TriangleAlert as Ie, Undo2 as Le, Undo2Icon as Re, UploadIcon as ze, Wand2 as Be, WholeWordIcon as Ve, X as He, XIcon as Ue } from "lucide-react";
5
+ import { AlertTriangleIcon as D, ArrowDown as O, ArrowDownZA as k, ArrowRightIcon as A, ArrowUp as j, ArrowUpAZ as M, CalendarIcon as N, CaseSensitiveIcon as P, Check as F, CheckIcon as I, ChevronDown as L, ChevronDownIcon as R, ChevronLeft as ee, ChevronLeftIcon as z, ChevronRight as B, ChevronRightIcon as V, CircleAlertIcon as te, CircleCheck as ne, CircleX as re, ClipboardPaste as ie, Copy as ae, CopyPlus as oe, DownloadIcon as se, Eraser as ce, Eye as le, EyeOff as ue, FunctionSquare as de, FunnelIcon as fe, Info as pe, InfoIcon as me, LayoutGridIcon as he, ListPlus as ge, LockKeyholeIcon as _e, LockKeyholeOpen as ve, Merge as ye, Minus as be, Pencil as xe, PinIcon as Se, PinOffIcon as Ce, PlusIcon as we, Redo2Icon as Te, RefreshCwIcon as Ee, ReplaceIcon as De, RotateCcwIcon as Oe, Scissors as ke, SearchIcon as Ae, SendIcon as je, Split as Me, SquareIcon as Ne, Trash2 as Pe, Trash2Icon as Fe, TriangleAlert as Ie, Undo2 as Le, Undo2Icon as Re, UploadIcon as ze, Wand2 as Be, WholeWordIcon as Ve, X as He, XIcon as Ue } from "lucide-react";
6
6
  import { FloatingFocusManager as We, FloatingNode as Ge, FloatingOverlay as Ke, FloatingPortal as qe, FloatingTree as Je, autoPlacement as Ye, autoUpdate as Xe, flip as Ze, offset as Qe, safePolygon as $e, shift as et, size as tt, useClick as nt, useDismiss as rt, useFloating as it, useFloatingNodeId as at, useFloatingTree as ot, useFocus as st, useHover as ct, useInteractions as lt, useListNavigation as ut, useRole as dt, useTransitionStyles as ft, useTypeahead as pt } from "@floating-ui/react";
7
7
  import { useDropzone as mt } from "react-dropzone";
8
8
  import { v4 as ht } from "uuid";
@@ -91,7 +91,24 @@ var Wr = {
91
91
  confirmDialog: { cancel: "Cancel" },
92
92
  menu: { submenuAriaLabel: "{{text}} submenu" },
93
93
  formField: { optional: "Optional" },
94
- segment: { segmentControl: "Segment control" }
94
+ pagination: {
95
+ goToNextPage: "Go to next page",
96
+ goToPage: "Go to page {{pageNumber}}",
97
+ goToPrevPage: "Go to previous page",
98
+ itemsPerPage: "Items per page",
99
+ itemsRange: "{{from}}–{{to}} of {{total}}",
100
+ pagination: "Pagination",
101
+ show: "Show"
102
+ },
103
+ segment: { segmentControl: "Segment control" },
104
+ table: {
105
+ clickableRow: "Select row",
106
+ dataTableAriaLabel: "Data table",
107
+ selectAllButton: "Select all {{total}}",
108
+ selectAllItemsOnPageAriaLabel: "Select all items on this page",
109
+ selectionSummary: "{{count}} of {{total}} selected",
110
+ selectionSummaryAll: "All {{total}} selected"
111
+ }
95
112
  },
96
113
  dataEditor: {
97
114
  modal: {
@@ -427,6 +444,7 @@ var Wr = {
427
444
  csvWarning_one: "{{count}} row had formatting issues (row {{rows}})",
428
445
  csvWarning_other: "{{count}} rows had formatting issues (rows {{rows}})",
429
446
  downloadExample: "Download sample file",
447
+ fileInputLabel: "Choose files to upload",
430
448
  fileTooLarge: "The file is too large to process",
431
449
  reset: "Reset",
432
450
  uploading: "Uploading file"
@@ -436,7 +454,10 @@ var Wr = {
436
454
  emptyData: "The source returned no data",
437
455
  fetchError: "Failed to load data"
438
456
  },
439
- headerSelection: { noHeaderLabel: "My data has no header row" },
457
+ headerSelection: {
458
+ noHeaderLabel: "My data has no header row",
459
+ previewGridLabel: "File preview"
460
+ },
440
461
  import: {
441
462
  collapsedFiles_one: "{{count}} file added no new rows. All of its rows are already in the table.",
442
463
  collapsedFiles_other: "{{count}} files added no new rows. All of their rows are already in the table."
@@ -617,7 +638,7 @@ var $r = (e) => {
617
638
  let { variant: t = "card", color: n = "neutral", layout: r = "inline", icon: i, title: a, text: s, role: c, className: l } = e, u = c ?? (n === "red" || n === "yellow" ? "alert" : "status"), d = E("updog-banner", `updog-banner--${t}`, `updog-banner--${n}`, `updog-banner--layout-${r}`, l), f = () => {
618
639
  if (i !== void 0) return o(i, { size: "1.125rem" });
619
640
  switch (n) {
620
- case "green": return /* @__PURE__ */ C(V, { size: 18 });
641
+ case "green": return /* @__PURE__ */ C(ne, { size: 18 });
621
642
  case "red": return /* @__PURE__ */ C(re, { size: 18 });
622
643
  case "yellow": return /* @__PURE__ */ C(Ie, { size: 18 });
623
644
  default: return /* @__PURE__ */ C(pe, { size: 18 });
@@ -943,29 +964,29 @@ var Ti = () => {
943
964
  }, e.date.getTime());
944
965
  })
945
966
  }, r));
946
- return /* @__PURE__ */ w("div", {
967
+ return /* @__PURE__ */ C("div", {
947
968
  className: "updog-calendar__days-wrapper updog-text--sm",
948
- children: [/* @__PURE__ */ C("div", {
949
- role: "row",
950
- className: "updog-calendar__weekDays",
951
- children: vi.map((e) => {
952
- let t = s(`ui.calendar.weekDays.${e}`);
953
- return /* @__PURE__ */ C("div", {
954
- role: "columnheader",
955
- className: "updog-calendar__weekDay",
956
- children: /* @__PURE__ */ C("abbr", {
957
- title: s(`ui.calendar.weekDaysFull.${e}`),
958
- children: t
959
- })
960
- }, e);
961
- })
962
- }), /* @__PURE__ */ C("div", {
969
+ children: /* @__PURE__ */ w("div", {
963
970
  ref: c,
964
971
  role: "grid",
965
972
  className: "updog-calendar__dates",
966
973
  onKeyDown: d,
967
- children: g
968
- })]
974
+ children: [/* @__PURE__ */ C("div", {
975
+ role: "row",
976
+ className: "updog-calendar__weekDays",
977
+ children: vi.map((e) => {
978
+ let t = s(`ui.calendar.weekDays.${e}`);
979
+ return /* @__PURE__ */ C("div", {
980
+ role: "columnheader",
981
+ className: "updog-calendar__weekDay",
982
+ children: /* @__PURE__ */ C("abbr", {
983
+ title: s(`ui.calendar.weekDaysFull.${e}`),
984
+ children: t
985
+ })
986
+ }, e);
987
+ })
988
+ }), g]
989
+ })
969
990
  });
970
991
  }, Ei = () => {
971
992
  let { handleTimePeriodChange: e, value: t, onDateForPeriodChange: n, dateForPeriod: r, min: i, max: a } = gi(), { t: o } = G(), s = f((t) => () => {
@@ -1036,7 +1057,7 @@ var Ti = () => {
1036
1057
  variant: "filled",
1037
1058
  color: "neutral",
1038
1059
  onClick: a(1),
1039
- content: /* @__PURE__ */ C(z, {
1060
+ content: /* @__PURE__ */ C(B, {
1040
1061
  className: "rtl-mirror",
1041
1062
  size: "1rem"
1042
1063
  }),
@@ -1479,27 +1500,27 @@ var ea = l(({ children: e, ...t }, r) => {
1479
1500
  if (!e) throw Error("useDropdownContext must be used within a DropdownProvider");
1480
1501
  return e;
1481
1502
  }, ia = s({}), aa = () => p(ia), oa = (e) => {
1482
- let { open: t, onOpenChange: n, defaultIsOpen: r, disabled: i = !1, animation: a = !0, placement: o = "bottom", offset: s = 8, flip: c = !0, shift: l = !0, autoPlacement: u = !1, closeOnScroll: d = !0, interactions: p = ["click", "dismiss"], role: g = "dialog", minWidth: _, maxWidth: v, minHeight: x, maxHeight: S, matchTriggerWidth: C = !1, typeaheadListRef: w, triggerId: T, contentId: E, middleware: D, clickOptions: O, hoverOptions: k, focusOptions: A, dismissOptions: j, roleOptions: M, listNavigationOptions: N, typeaheadOptions: P } = e, F = h(), I = `${F}-trigger`, L = `${F}-content`, R = T || I, ee = E || L, { value: te, onChange: z } = Mi({
1503
+ let { open: t, onOpenChange: n, defaultIsOpen: r, disabled: i = !1, animation: a = !0, placement: o = "bottom", offset: s = 8, flip: c = !0, shift: l = !0, autoPlacement: u = !1, closeOnScroll: d = !0, interactions: p = ["click", "dismiss"], role: g = "dialog", minWidth: _, maxWidth: v, minHeight: x, maxHeight: S, matchTriggerWidth: C = !1, typeaheadListRef: w, triggerId: T, contentId: E, middleware: D, clickOptions: O, hoverOptions: k, focusOptions: A, dismissOptions: j, roleOptions: M, listNavigationOptions: N, typeaheadOptions: P } = e, F = h(), I = `${F}-trigger`, L = `${F}-content`, R = T || I, ee = E || L, { value: z, onChange: B } = Mi({
1483
1504
  controlledValue: t,
1484
1505
  controlledOnChange: n,
1485
1506
  defaultValue: r
1486
- }), B = ot(), ne = f(() => {
1487
- z(!1), B && B.events.emit("dismissAll");
1488
- }, [z, B]);
1507
+ }), V = ot(), te = f(() => {
1508
+ B(!1), V && V.events.emit("dismissAll");
1509
+ }, [B, V]);
1489
1510
  m(() => {
1490
- if (!B) return;
1511
+ if (!V) return;
1491
1512
  let e = () => {
1492
- z(!1);
1513
+ B(!1);
1493
1514
  };
1494
- return B.events.on("dismissAll", e), () => {
1495
- B.events.off("dismissAll", e);
1515
+ return V.events.on("dismissAll", e), () => {
1516
+ V.events.off("dismissAll", e);
1496
1517
  };
1497
- }, [B, z]);
1498
- let V = y([]), re = f((e) => (t) => {
1499
- V.current[e] = t;
1518
+ }, [V, B]);
1519
+ let ne = y([]), re = f((e) => (t) => {
1520
+ ne.current[e] = t;
1500
1521
  }, []), [ie, ae] = b(null), { refs: oe, floatingStyles: se, context: ce, placement: le } = it({
1501
- open: te,
1502
- onOpenChange: z,
1522
+ open: z,
1523
+ onOpenChange: B,
1503
1524
  placement: o,
1504
1525
  middleware: D ?? [
1505
1526
  Qe(s),
@@ -1556,7 +1577,7 @@ var ea = l(({ children: e, ...t }, r) => {
1556
1577
  ut(ce, {
1557
1578
  ...N,
1558
1579
  enabled: N?.enabled || pe("listNavigation") && !i,
1559
- listRef: N?.listRef || V,
1580
+ listRef: N?.listRef || ne,
1560
1581
  activeIndex: N?.activeIndex || ie,
1561
1582
  onNavigate: N?.onNavigate || ae,
1562
1583
  loop: N?.loop || !0,
@@ -1580,14 +1601,14 @@ var ea = l(({ children: e, ...t }, r) => {
1580
1601
  getReferenceProps: me,
1581
1602
  getFloatingProps: he,
1582
1603
  getItemProps: pe("listNavigation") ? ge : void 0,
1583
- open: !!te,
1584
- setOpen: z,
1604
+ open: !!z,
1605
+ setOpen: B,
1585
1606
  placement: le,
1586
1607
  activeIndex: ie,
1587
1608
  setActiveIndex: ae,
1588
1609
  navigationRef: re,
1589
1610
  props: e,
1590
- dismiss: ne,
1611
+ dismiss: te,
1591
1612
  isMounted: de,
1592
1613
  transitionStyles: fe,
1593
1614
  triggerId: R,
@@ -1653,7 +1674,7 @@ var ea = l(({ children: e, ...t }, r) => {
1653
1674
  j,
1654
1675
  I,
1655
1676
  L
1656
- ]), te = v(() => {
1677
+ ]), z = v(() => {
1657
1678
  if (!k) return null;
1658
1679
  let e = /* @__PURE__ */ C("div", {
1659
1680
  ref: u.setFloating,
@@ -1695,8 +1716,8 @@ var ea = l(({ children: e, ...t }, r) => {
1695
1716
  id: N,
1696
1717
  children: [/* @__PURE__ */ C(S, { children: ee }), c ? /* @__PURE__ */ C(qe, {
1697
1718
  root: typeof c == "boolean" ? void 0 : c,
1698
- children: te
1699
- }) : /* @__PURE__ */ C(S, { children: te })]
1719
+ children: z
1720
+ }) : /* @__PURE__ */ C(S, { children: z })]
1700
1721
  })
1701
1722
  });
1702
1723
  }, ca = ({ item: e }) => /* @__PURE__ */ C("div", {
@@ -1754,7 +1775,7 @@ function da(e, t) {
1754
1775
  onTouchCancel: (e) => {
1755
1776
  k.onTouchCancel();
1756
1777
  }
1757
- } : {}, [S, k]), { onClick: R, ...ee } = x, te = f((e) => {
1778
+ } : {}, [S, k]), { onClick: R, ...ee } = x, z = f((e) => {
1758
1779
  R?.(e), N();
1759
1780
  }, [R, N]);
1760
1781
  return /* @__PURE__ */ C(sa, {
@@ -1763,7 +1784,7 @@ function da(e, t) {
1763
1784
  ref: t,
1764
1785
  ...ee,
1765
1786
  ...D ? { "aria-describedby": M } : {},
1766
- onClick: te,
1787
+ onClick: z,
1767
1788
  onBlur: P,
1768
1789
  onMouseLeave: F,
1769
1790
  ...L,
@@ -1773,7 +1794,7 @@ function da(e, t) {
1773
1794
  ee,
1774
1795
  D,
1775
1796
  M,
1776
- te,
1797
+ z,
1777
1798
  P,
1778
1799
  F,
1779
1800
  L,
@@ -1842,7 +1863,7 @@ var Y = l(da), fa = (e) => !("type" in e), pa = (e) => "type" in e && e.type ===
1842
1863
  e.accessory && e.accessory,
1843
1864
  e.options && !e.disabled && /* @__PURE__ */ C("span", {
1844
1865
  className: "updog-menu__option-endAccessory",
1845
- children: C(i ? te : B, { size: "1rem" })
1866
+ children: C(i ? z : V, { size: "1rem" })
1846
1867
  })
1847
1868
  ]
1848
1869
  });
@@ -1920,11 +1941,11 @@ var Y = l(da), fa = (e) => !("type" in e), pa = (e) => "type" in e && e.type ===
1920
1941
  N.events.off("dismissAll", e);
1921
1942
  };
1922
1943
  }, [N]);
1923
- let I = h(), L = `${I}-context-trigger`, R = `${I}-context-content`, ee = y([]), te = f((e) => (t) => {
1944
+ let I = h(), L = `${I}-context-trigger`, R = `${I}-context-content`, ee = y([]), z = f((e) => (t) => {
1924
1945
  ee.current[e] = t;
1925
- }, []), z = y([]);
1926
- z.current = n.filter(fa).map((e) => e.text);
1927
- let { refs: B, floatingStyles: ne, context: V, placement: re } = it({
1946
+ }, []), B = y([]);
1947
+ B.current = n.filter(fa).map((e) => e.text);
1948
+ let { refs: V, floatingStyles: te, context: ne, placement: re } = it({
1928
1949
  open: k,
1929
1950
  onOpenChange: A,
1930
1951
  placement: p,
@@ -1946,7 +1967,7 @@ var Y = l(da), fa = (e) => !("type" in e), pa = (e) => "type" in e && e.type ===
1946
1967
  whileElementsMounted: Xe
1947
1968
  });
1948
1969
  m(() => {
1949
- D && B.setPositionReference({ getBoundingClientRect: () => ({
1970
+ D && V.setPositionReference({ getBoundingClientRect: () => ({
1950
1971
  x: D.x,
1951
1972
  y: D.y,
1952
1973
  width: 0,
@@ -1956,18 +1977,18 @@ var Y = l(da), fa = (e) => !("type" in e), pa = (e) => "type" in e && e.type ===
1956
1977
  bottom: D.y,
1957
1978
  left: D.x
1958
1979
  }) });
1959
- }, [D, B]);
1960
- let ie = typeof window < "u" && window.matchMedia("(prefers-reduced-motion: reduce)").matches, { isMounted: ae, styles: oe } = ft(V, {
1980
+ }, [D, V]);
1981
+ let ie = typeof window < "u" && window.matchMedia("(prefers-reduced-motion: reduce)").matches, { isMounted: ae, styles: oe } = ft(ne, {
1961
1982
  duration: !a || ie ? 0 : 100,
1962
1983
  initial: { opacity: 0 }
1963
1984
  }), { getReferenceProps: se, getFloatingProps: ce, getItemProps: le } = lt([
1964
- rt(V, {
1985
+ rt(ne, {
1965
1986
  escapeKey: !0,
1966
1987
  outsidePress: !0,
1967
1988
  bubbles: { escapeKey: !1 }
1968
1989
  }),
1969
- dt(V, { role: "menu" }),
1970
- ut(V, {
1990
+ dt(ne, { role: "menu" }),
1991
+ ut(ne, {
1971
1992
  listRef: ee,
1972
1993
  activeIndex: j,
1973
1994
  onNavigate: M,
@@ -1975,14 +1996,14 @@ var Y = l(da), fa = (e) => !("type" in e), pa = (e) => "type" in e && e.type ===
1975
1996
  parentOrientation: "vertical",
1976
1997
  rtl: O
1977
1998
  }),
1978
- pt(V, {
1979
- listRef: z,
1999
+ pt(ne, {
2000
+ listRef: B,
1980
2001
  activeIndex: j,
1981
2002
  onMatch: M,
1982
2003
  resetMs: 750
1983
2004
  })
1984
2005
  ]), ue = y(null), de = f((e) => {
1985
- i || (g !== !1 && e.preventDefault(), _ && e.stopPropagation(), B.setPositionReference({ getBoundingClientRect() {
2006
+ i || (g !== !1 && e.preventDefault(), _ && e.stopPropagation(), V.setPositionReference({ getBoundingClientRect() {
1986
2007
  return {
1987
2008
  x: e.clientX,
1988
2009
  y: e.clientY,
@@ -1998,24 +2019,24 @@ var Y = l(da), fa = (e) => !("type" in e), pa = (e) => "type" in e && e.type ===
1998
2019
  i,
1999
2020
  g,
2000
2021
  _,
2001
- B
2022
+ V
2002
2023
  ]), fe = v(() => ({
2003
2024
  open: k ?? !1,
2004
2025
  setOpen: A,
2005
2026
  dismiss: F,
2006
2027
  placement: re,
2007
- floatingStyles: ne,
2028
+ floatingStyles: te,
2008
2029
  refs: {
2009
- setReference: B.setReference,
2010
- setFloating: B.setFloating
2030
+ setReference: V.setReference,
2031
+ setFloating: V.setFloating
2011
2032
  },
2012
2033
  getReferenceProps: se,
2013
2034
  getFloatingProps: ce,
2014
2035
  getItemProps: le,
2015
2036
  activeIndex: j,
2016
2037
  setActiveIndex: M,
2017
- navigationRef: te,
2018
- context: V,
2038
+ navigationRef: z,
2039
+ context: ne,
2019
2040
  isMounted: ae,
2020
2041
  transitionStyles: oe,
2021
2042
  triggerId: L,
@@ -2025,15 +2046,15 @@ var Y = l(da), fa = (e) => !("type" in e), pa = (e) => "type" in e && e.type ===
2025
2046
  k,
2026
2047
  F,
2027
2048
  re,
2028
- ne,
2029
- B.setReference,
2030
- B.setFloating,
2049
+ te,
2050
+ V.setReference,
2051
+ V.setFloating,
2031
2052
  se,
2032
2053
  ce,
2033
2054
  le,
2034
2055
  j,
2035
- te,
2036
- V,
2056
+ z,
2057
+ ne,
2037
2058
  ae,
2038
2059
  oe,
2039
2060
  L,
@@ -2052,15 +2073,15 @@ var Y = l(da), fa = (e) => !("type" in e), pa = (e) => "type" in e && e.type ===
2052
2073
  s,
2053
2074
  c
2054
2075
  ]), me = v(() => ae ? /* @__PURE__ */ C(We, {
2055
- context: V,
2076
+ context: ne,
2056
2077
  initialFocus: -1,
2057
2078
  returnFocus: !0,
2058
2079
  restoreFocus: !1,
2059
2080
  modal: !1,
2060
2081
  children: /* @__PURE__ */ C("div", {
2061
- ref: B.setFloating,
2082
+ ref: V.setFloating,
2062
2083
  style: {
2063
- ...ne,
2084
+ ...te,
2064
2085
  ...oe
2065
2086
  },
2066
2087
  className: E("updog-dropdown__content-element", o),
@@ -2072,13 +2093,13 @@ var Y = l(da), fa = (e) => !("type" in e), pa = (e) => "type" in e && e.type ===
2072
2093
  })
2073
2094
  }) : null, [
2074
2095
  ae,
2075
- B.setFloating,
2076
- ne,
2096
+ V.setFloating,
2097
+ te,
2077
2098
  oe,
2078
2099
  o,
2079
2100
  ce,
2080
2101
  R,
2081
- V,
2102
+ ne,
2082
2103
  n
2083
2104
  ]), he = /* @__PURE__ */ C(na, {
2084
2105
  value: fe,
@@ -2550,7 +2571,7 @@ var Y = l(da), fa = (e) => !("type" in e), pa = (e) => "type" in e && e.type ===
2550
2571
  "Tab",
2551
2572
  "Enter"
2552
2573
  ].includes(e.key) && e.preventDefault();
2553
- }, [i]), te = v(() => Gi(_, ee), [_, ee]);
2574
+ }, [i]), z = v(() => Gi(_, ee), [_, ee]);
2554
2575
  return /* @__PURE__ */ w("div", {
2555
2576
  className: A,
2556
2577
  children: [
@@ -2564,7 +2585,7 @@ var Y = l(da), fa = (e) => !("type" in e), pa = (e) => "type" in e && e.type ===
2564
2585
  size: void 0,
2565
2586
  className: j,
2566
2587
  onChange: L,
2567
- onKeyDown: te,
2588
+ onKeyDown: z,
2568
2589
  value: g,
2569
2590
  "aria-invalid": l
2570
2591
  }),
@@ -2696,7 +2717,7 @@ var Y = l(da), fa = (e) => !("type" in e), pa = (e) => "type" in e && e.type ===
2696
2717
  //#endregion
2697
2718
  //#region ../ui-kit/src/components/Menu/index.tsx
2698
2719
  function Va(e, t) {
2699
- let { open: n, onOpenChange: r, defaultIsOpen: i, trigger: a, children: o, options: s, onSelect: c, placement: l = "bottom-start", offset: u = 8, contentClassName: d, preventDefaultOnTrigger: p, stopPropagationOnTrigger: m, minHeight: g, maxHeight: _, minWidth: b, maxWidth: x, disabled: S, middleware: w, flip: T, shift: D, autoPlacement: O, clickOptions: k, hoverOptions: A, focusOptions: j, dismissOptions: M, roleOptions: N, listNavigationOptions: P, typeaheadOptions: F, floatingFocusManager: I, ariaLabel: L, triggerId: R, contentId: ee, matchTriggerWidth: te, typeaheadListRef: z, portal: B, ...ne } = e, { rtl: V } = G(), { value: re, onChange: ie } = Mi({
2720
+ let { open: n, onOpenChange: r, defaultIsOpen: i, trigger: a, children: o, options: s, onSelect: c, placement: l = "bottom-start", offset: u = 8, contentClassName: d, preventDefaultOnTrigger: p, stopPropagationOnTrigger: m, minHeight: g, maxHeight: _, minWidth: b, maxWidth: x, disabled: S, middleware: w, flip: T, shift: D, autoPlacement: O, clickOptions: k, hoverOptions: A, focusOptions: j, dismissOptions: M, roleOptions: N, listNavigationOptions: P, typeaheadOptions: F, floatingFocusManager: I, ariaLabel: L, triggerId: R, contentId: ee, matchTriggerWidth: z, typeaheadListRef: B, portal: V, ...te } = e, { rtl: ne } = G(), { value: re, onChange: ie } = Mi({
2700
2721
  controlledValue: n,
2701
2722
  controlledOnChange: r,
2702
2723
  defaultValue: i
@@ -2708,24 +2729,24 @@ function Va(e, t) {
2708
2729
  ae.current = e;
2709
2730
  }, [])), de = a || o, fe = v(() => /* @__PURE__ */ C(ea, {
2710
2731
  ref: ue,
2711
- ...ne,
2732
+ ...te,
2712
2733
  children: de
2713
2734
  }), [
2714
2735
  ue,
2715
- ne,
2736
+ te,
2716
2737
  de
2717
2738
  ]);
2718
2739
  return /* @__PURE__ */ C(Je, { children: /* @__PURE__ */ C(ia.Provider, {
2719
2740
  value: {
2720
2741
  onSelect: c,
2721
2742
  options: s,
2722
- rtl: V,
2743
+ rtl: ne,
2723
2744
  rootTriggerRef: ae,
2724
- portal: B,
2745
+ portal: V,
2725
2746
  minWidth: b
2726
2747
  },
2727
2748
  children: /* @__PURE__ */ C(sa, {
2728
- portal: B,
2749
+ portal: V,
2729
2750
  trigger: fe,
2730
2751
  content: /* @__PURE__ */ C(_a, { options: s }),
2731
2752
  triggerId: se,
@@ -2753,7 +2774,7 @@ function Va(e, t) {
2753
2774
  roleOptions: N,
2754
2775
  typeaheadOptions: F,
2755
2776
  ariaLabel: L,
2756
- matchTriggerWidth: te,
2777
+ matchTriggerWidth: z,
2757
2778
  floatingFocusManager: {
2758
2779
  initialFocus: -1,
2759
2780
  returnFocus: !0,
@@ -2764,11 +2785,11 @@ function Va(e, t) {
2764
2785
  contentClassName: E("", d),
2765
2786
  listNavigationOptions: {
2766
2787
  parentOrientation: "vertical",
2767
- rtl: V,
2788
+ rtl: ne,
2768
2789
  loop: !0,
2769
2790
  ...P
2770
2791
  },
2771
- typeaheadListRef: z ?? le,
2792
+ typeaheadListRef: B ?? le,
2772
2793
  preventDefaultOnTrigger: p,
2773
2794
  stopPropagationOnTrigger: m,
2774
2795
  minHeight: g,
@@ -2782,22 +2803,22 @@ var Ha = l(Va);
2782
2803
  //#endregion
2783
2804
  //#region ../ui-kit/src/components/Popover/index.tsx
2784
2805
  function Ua(e, t) {
2785
- let { trigger: n, children: r, content: i, open: a, onOpenChange: o, defaultIsOpen: s, placement: c = "bottom-start", offset: l = 8, maxWidth: d = 320, contentClassName: f, flip: p, shift: m, autoPlacement: g, middleware: _, clickOptions: v, hoverOptions: y, focusOptions: b, dismissOptions: x, roleOptions: S, listNavigationOptions: w, typeaheadOptions: T, floatingFocusManager: D, ariaLabel: O, triggerId: k, contentId: A, minWidth: j, minHeight: M, maxHeight: N, matchTriggerWidth: P, typeaheadListRef: F, disabled: I, preventDefaultOnTrigger: L, stopPropagationOnTrigger: R, portal: ee, ...te } = e, { value: z, onChange: B } = Mi({
2806
+ let { trigger: n, children: r, content: i, open: a, onOpenChange: o, defaultIsOpen: s, placement: c = "bottom-start", offset: l = 8, maxWidth: d = 320, contentClassName: f, flip: p, shift: m, autoPlacement: g, middleware: _, clickOptions: v, hoverOptions: y, focusOptions: b, dismissOptions: x, roleOptions: S, listNavigationOptions: w, typeaheadOptions: T, floatingFocusManager: D, ariaLabel: O, triggerId: k, contentId: A, minWidth: j, minHeight: M, maxHeight: N, matchTriggerWidth: P, typeaheadListRef: F, disabled: I, preventDefaultOnTrigger: L, stopPropagationOnTrigger: R, portal: ee, ...z } = e, { value: B, onChange: V } = Mi({
2786
2807
  controlledValue: a,
2787
2808
  controlledOnChange: o,
2788
2809
  defaultValue: s
2789
- }), ne = h(), V = k || r.props.id || `${ne}-trigger`, re = A || (u(i) && i.props.id ? i.props.id : `${ne}-content`), ie = n || r;
2810
+ }), te = h(), ne = k || r.props.id || `${te}-trigger`, re = A || (u(i) && i.props.id ? i.props.id : `${te}-content`), ie = n || r;
2790
2811
  return /* @__PURE__ */ C(sa, {
2791
2812
  trigger: /* @__PURE__ */ C(ea, {
2792
2813
  ref: t,
2793
- ...te,
2814
+ ...z,
2794
2815
  children: ie
2795
2816
  }),
2796
2817
  content: i,
2797
- triggerId: V,
2818
+ triggerId: ne,
2798
2819
  contentId: re,
2799
- open: z,
2800
- onOpenChange: B,
2820
+ open: B,
2821
+ onOpenChange: V,
2801
2822
  interactions: ["click", "dismiss"],
2802
2823
  role: "dialog",
2803
2824
  placement: c,
@@ -3011,7 +3032,7 @@ var Ja = () => {
3011
3032
  size: s
3012
3033
  };
3013
3034
  }, Xa = l((e = {}, t) => {
3014
- let { t: n } = G(), { disabled: r, size: i, placeholder: a, inputId: o, searchValue: s, setSearchValue: c, onClear: l, showClearButton: u, invalid: d, loading: p, onSelect: m, multiple: h, value: g, open: _, contentId: y, activeDescId: b, onInputKeyDownCapture: x, onInputFocus: S, dataAttributes: T, searchInputRef: D } = Ya(), O = v(() => !h || !g ? [] : Array.isArray(g) ? g : [g], [h, g]), { onClick: k, onFocus: A, onKeyDown: j, onMouseDown: M, onPointerDown: N, onPointerEnter: P, id: F, className: I, role: L, tabIndex: R, "aria-expanded": ee, "aria-haspopup": te, "aria-controls": z, "aria-activedescendant": B, ...ne } = e, V = f((e) => {
3035
+ let { t: n } = G(), { disabled: r, size: i, placeholder: a, inputId: o, searchValue: s, setSearchValue: c, onClear: l, showClearButton: u, invalid: d, loading: p, onSelect: m, multiple: h, value: g, open: _, contentId: y, activeDescId: b, onInputKeyDownCapture: x, onInputFocus: S, dataAttributes: T, searchInputRef: D } = Ya(), O = v(() => !h || !g ? [] : Array.isArray(g) ? g : [g], [h, g]), { onClick: k, onFocus: A, onKeyDown: j, onMouseDown: M, onPointerDown: N, onPointerEnter: P, id: F, className: I, role: L, tabIndex: R, "aria-expanded": ee, "aria-haspopup": z, "aria-controls": B, "aria-activedescendant": V, ...te } = e, ne = f((e) => {
3015
3036
  let t = O.find((t) => t.id === e);
3016
3037
  t && (m(t), D.current?.focus());
3017
3038
  }, [
@@ -3047,7 +3068,7 @@ var Ja = () => {
3047
3068
  onMouseDown: M,
3048
3069
  onPointerDown: N,
3049
3070
  onPointerEnter: P,
3050
- ...ne,
3071
+ ...te,
3051
3072
  role: void 0,
3052
3073
  tabIndex: -1,
3053
3074
  "aria-haspopup": void 0,
@@ -3062,7 +3083,7 @@ var Ja = () => {
3062
3083
  startIcon: e.icon,
3063
3084
  color: "neutral",
3064
3085
  size: i === "lg" ? "md" : "sm",
3065
- onRemove: r ? void 0 : () => V(e.id),
3086
+ onRemove: r ? void 0 : () => ne(e.id),
3066
3087
  disabled: r
3067
3088
  }, e.id)), /* @__PURE__ */ C("input", {
3068
3089
  ref: D,
@@ -3211,61 +3232,74 @@ var Qa = s(void 0), $a = Qa.Provider, eo = () => {
3211
3232
  })]
3212
3233
  });
3213
3234
  }, oo = l((e = {}, t) => {
3214
- let { className: n, invalid: r, disabled: i, loading: a, placeholder: o, displayValue: s, showClearButton: c, onClear: l, onRenderAnchor: u, ariaLabel: d, ariaLabelledby: p, ariaDescribedby: m, contentId: h, multiple: g, value: _, options: b, onSelect: x, ...T } = eo(), D = ri("(max-width: 639px)"), O = T.size || (D ? "lg" : "md"), { t: k } = G(), { open: A } = ra(), j = y(null), M = Qi(j, t), N = {
3235
+ let { className: n, invalid: r, disabled: i, loading: a, placeholder: o, displayValue: s, showClearButton: c, onClear: l, onRenderAnchor: u, ariaLabel: d, ariaLabelledby: p, ariaDescribedby: m, contentId: h, multiple: g, value: _, options: b, onSelect: x, ...T } = eo(), D = ri("(max-width: 639px)"), O = T.size || (D ? "lg" : "md"), { t: k } = G(), { open: A } = ra(), j = y(null), M = y(null), N = Qi(j, t), P = {
3215
3236
  sm: "updog-text--sm",
3216
3237
  md: "updog-text--sm",
3217
3238
  lg: "updog-text--sm"
3218
- }, P = {
3239
+ }, F = {
3219
3240
  sm: "xs",
3220
3241
  md: "sm",
3221
3242
  lg: "md"
3222
- }, F = {
3243
+ }, I = {
3223
3244
  sm: "sm",
3224
3245
  md: "md",
3225
3246
  lg: "md"
3226
- }, I = v(() => {
3247
+ }, L = v(() => {
3227
3248
  if (!_) return [];
3228
3249
  let e = Array.isArray(_) ? _ : [_];
3229
3250
  return b.filter(ro).filter((t) => e.includes(t.id));
3230
- }, [_, b]), L = E("updog-select__trigger", `updog-select__trigger--${O}`, i && "updog-select__trigger--disabled", r && "updog-select__trigger--invalid", A && "updog-select__trigger--focused", g && I.length > 0 && "updog-select__trigger--with-tags", n), ee = u ? n : L, te = f((e) => {
3231
- e.stopPropagation(), e.preventDefault(), l?.(), j.current?.focus();
3232
- }, [l]), z = f((e) => {
3251
+ }, [_, b]), ee = E("updog-select__trigger", `updog-select__trigger--${O}`, i && "updog-select__trigger--disabled", r && "updog-select__trigger--invalid", A && "updog-select__trigger--focused", g && L.length > 0 && "updog-select__trigger--with-tags", n), z = u ? n : ee, B = f((e) => {
3252
+ e.stopPropagation(), e.preventDefault(), l?.(), M.current?.focus();
3253
+ }, [l]), V = f((e) => {
3254
+ e.target === e.currentTarget && M.current?.focus();
3255
+ }, []), te = f((e) => {
3233
3256
  e.stopPropagation(), e.preventDefault();
3234
- }, []), B = f((e) => {
3257
+ }, []), ne = f((e) => {
3235
3258
  e.stopPropagation();
3236
- }, []), ne = Object.fromEntries(Object.entries(T).filter(([e]) => e.startsWith("data-"))), V = /* @__PURE__ */ C("span", {
3259
+ }, []), re = Object.fromEntries(Object.entries(T).filter(([e]) => e.startsWith("data-"))), ie = /* @__PURE__ */ C("span", {
3237
3260
  className: "updog-select__trigger-placeholder updog-text--sm",
3238
3261
  children: o
3239
- });
3240
- return /* @__PURE__ */ C("div", {
3241
- ...e,
3242
- ...ne,
3243
- ref: M,
3244
- className: ee,
3245
- tabIndex: u || i ? -1 : 0,
3246
- role: "button",
3247
- "aria-haspopup": "listbox",
3262
+ }), { onClick: ae, ...oe } = e, se = Object.fromEntries(Object.entries(oe).filter(([e]) => e !== "role" && e !== "id" && e !== "tabIndex" && e !== "onKeyDown" && !e.startsWith("aria-"))), ce = {
3263
+ role: "combobox",
3264
+ tabIndex: i ? -1 : e.tabIndex ?? 0,
3265
+ id: e.id,
3266
+ onKeyDown: e.onKeyDown,
3248
3267
  "aria-expanded": A,
3268
+ "aria-haspopup": "listbox",
3269
+ "aria-controls": h,
3249
3270
  "aria-busy": a ? "true" : void 0,
3250
3271
  "aria-disabled": i,
3251
- "aria-label": p ? void 0 : d,
3272
+ "aria-label": p ? void 0 : d ?? o,
3252
3273
  "aria-labelledby": p,
3253
- "aria-describedby": m,
3254
- "aria-controls": h,
3255
- children: u ? u(A) : /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C("div", {
3274
+ "aria-describedby": m
3275
+ };
3276
+ return /* @__PURE__ */ C("div", {
3277
+ ...se,
3278
+ ...re,
3279
+ ref: N,
3280
+ className: z,
3281
+ tabIndex: -1,
3282
+ onClick: ae,
3283
+ onFocus: V,
3284
+ children: u ? u(A, ce) : /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ w("div", {
3256
3285
  className: "updog-select__trigger-inner",
3257
- children: g ? I.length > 0 ? I.map((e) => /* @__PURE__ */ C(La, {
3286
+ children: [g && L.length > 0 && L.map((e) => /* @__PURE__ */ C(La, {
3258
3287
  id: e.id,
3259
3288
  text: e.text,
3260
3289
  startIcon: e.icon,
3261
3290
  color: "neutral",
3262
- size: F[O],
3291
+ size: I[O],
3263
3292
  onRemove: () => x(e.id),
3264
3293
  disabled: i
3265
- }, e.id)) : V : s ? /* @__PURE__ */ C(wa, {
3266
- className: E("updog-select__trigger-value", N[O]),
3267
- content: s
3268
- }) : V
3294
+ }, e.id)), /* @__PURE__ */ C("div", {
3295
+ ...ce,
3296
+ ref: M,
3297
+ className: "updog-select__combobox",
3298
+ children: g ? L.length > 0 ? null : ie : s ? /* @__PURE__ */ C(wa, {
3299
+ className: E("updog-select__trigger-value", P[O]),
3300
+ content: s
3301
+ }) : ie
3302
+ })]
3269
3303
  }), /* @__PURE__ */ w("div", {
3270
3304
  className: "updog-select__trigger-actions",
3271
3305
  children: [
@@ -3273,9 +3307,9 @@ var Qa = s(void 0), $a = Qa.Provider, eo = () => {
3273
3307
  variant: "filled",
3274
3308
  size: Wi[O],
3275
3309
  color: "neutral",
3276
- onClick: te,
3277
- onKeyDown: B,
3278
- onMouseDown: z,
3310
+ onClick: B,
3311
+ onKeyDown: ne,
3312
+ onMouseDown: te,
3279
3313
  onPointerDown: (e) => e.stopPropagation(),
3280
3314
  content: /* @__PURE__ */ C(Ue, {}),
3281
3315
  "aria-label": k("ui.select.clearSelection"),
@@ -3285,14 +3319,15 @@ var Qa = s(void 0), $a = Qa.Provider, eo = () => {
3285
3319
  size: O,
3286
3320
  children: /* @__PURE__ */ C(ii, {
3287
3321
  color: "brand",
3288
- size: P[O]
3322
+ size: F[O]
3289
3323
  })
3290
3324
  }),
3291
3325
  !i && !a && /* @__PURE__ */ C(J, {
3326
+ as: "span",
3292
3327
  variant: "filled",
3293
3328
  size: Wi[O],
3294
3329
  color: "neutral",
3295
- tabIndex: -1,
3330
+ "aria-hidden": "true",
3296
3331
  children: /* @__PURE__ */ C(R, { className: E("updog-select__chevron", A && "updog-select__chevron--rotate") })
3297
3332
  })
3298
3333
  ]
@@ -3303,19 +3338,19 @@ var Qa = s(void 0), $a = Qa.Provider, eo = () => {
3303
3338
  controlledValue: t,
3304
3339
  controlledOnChange: n,
3305
3340
  defaultValue: !1
3306
- }), L = h(), R = S || L, ee = `${R}-trigger`, te = `${R}-content`, z = y([]);
3341
+ }), L = h(), R = S || L, ee = `${R}-trigger`, z = `${R}-content`, B = y([]);
3307
3342
  m(() => {
3308
- z.current = r.filter(ro).map((e) => e.text ?? null);
3343
+ B.current = r.filter(ro).map((e) => e.text ?? null);
3309
3344
  }, [r]);
3310
- let B = v(() => {
3345
+ let V = v(() => {
3311
3346
  if (!s) return [];
3312
3347
  let e = Array.isArray(s) ? s : [s];
3313
3348
  return r.filter(ro).filter((t) => e.includes(t.id));
3314
- }, [s, r]), ne = v(() => {
3315
- if (B.length === 0) return "";
3316
- let e = B.map((e) => e.text).join(", ");
3349
+ }, [s, r]), te = v(() => {
3350
+ if (V.length === 0) return "";
3351
+ let e = V.map((e) => e.text).join(", ");
3317
3352
  return u ? u(e) : e;
3318
- }, [B, u]), V = f((e) => {
3353
+ }, [V, u]), ne = f((e) => {
3319
3354
  let t = r.filter(ro).find((t) => t.id === e);
3320
3355
  if (o) {
3321
3356
  let n = Array.isArray(s) ? s : [];
@@ -3331,11 +3366,11 @@ var Qa = s(void 0), $a = Qa.Provider, eo = () => {
3331
3366
  return /* @__PURE__ */ C($a, {
3332
3367
  value: {
3333
3368
  ...e,
3334
- displayValue: ne,
3369
+ displayValue: te,
3335
3370
  hasValue: re,
3336
3371
  showClearButton: ie,
3337
- onSelect: V,
3338
- contentId: te,
3372
+ onSelect: ne,
3373
+ contentId: z,
3339
3374
  maxHeight: _
3340
3375
  },
3341
3376
  children: /* @__PURE__ */ C(sa, {
@@ -3343,7 +3378,7 @@ var Qa = s(void 0), $a = Qa.Provider, eo = () => {
3343
3378
  trigger: /* @__PURE__ */ C(oo, {}),
3344
3379
  content: /* @__PURE__ */ C(ao, {}),
3345
3380
  triggerId: ee,
3346
- contentId: te,
3381
+ contentId: z,
3347
3382
  open: F,
3348
3383
  onOpenChange: I,
3349
3384
  disabled: a,
@@ -3378,7 +3413,7 @@ var Qa = s(void 0), $a = Qa.Provider, eo = () => {
3378
3413
  maxWidth: p,
3379
3414
  minHeight: g,
3380
3415
  maxHeight: _,
3381
- typeaheadListRef: z,
3416
+ typeaheadListRef: B,
3382
3417
  preventDefaultOnTrigger: w,
3383
3418
  stopPropagationOnTrigger: T
3384
3419
  })
@@ -10849,7 +10884,7 @@ function au({ columns: e, primaryKey: t, loadData: n, scaleClient: r, onComplete
10849
10884
  N.setSchemaColumns(e);
10850
10885
  let { addDynamicColumns: P, removeDynamicColumn: F, updateColumn: I } = $l(N), L = f((e) => {
10851
10886
  N.setDynamicColumns(e);
10852
- }, [N]), R = x(N.subscribe, N.getEffectiveColumns), { navigateToCell: ee, navigateByIndex: te, navigateToCellRef: z, resetScrollRef: B, scrollToGridTop: ne } = eu(N), { validator: V, validatorRef: re, findReplace: ie } = iu(N, R, r?.findAndReplace, te), { search: ae, setSearch: oe, matchCase: se, setMatchCase: ce, matchEntireCell: le, setMatchEntireCell: ue, searchMode: de, setSearchMode: fe, filterColumns: pe, setFilterColumns: me, filtersResetKey: he, resetFilters: ge } = nu(N, ie, ee, ne);
10887
+ }, [N]), R = x(N.subscribe, N.getEffectiveColumns), { navigateToCell: ee, navigateByIndex: z, navigateToCellRef: B, resetScrollRef: V, scrollToGridTop: te } = eu(N), { validator: ne, validatorRef: re, findReplace: ie } = iu(N, R, r?.findAndReplace, z), { search: ae, setSearch: oe, matchCase: se, setMatchCase: ce, matchEntireCell: le, setMatchEntireCell: ue, searchMode: de, setSearchMode: fe, filterColumns: pe, setFilterColumns: me, filtersResetKey: he, resetFilters: ge } = nu(N, ie, ee, te);
10853
10888
  Ql(N, re, n, M);
10854
10889
  let { onVisibleRangeChange: _e } = ru(N, M), { portalRef: ve } = tu(), [ye, be] = b(null), [xe, Se] = b([]), Ce = f((e) => {
10855
10890
  Se(e), s(!0);
@@ -10872,7 +10907,7 @@ function au({ columns: e, primaryKey: t, loadData: n, scaleClient: r, onComplete
10872
10907
  rowHeight: _ ?? 34,
10873
10908
  headerHeight: v ?? 36,
10874
10909
  store: N,
10875
- validator: V,
10910
+ validator: ne,
10876
10911
  findReplace: ie,
10877
10912
  onComplete: i,
10878
10913
  showUploader: o,
@@ -10893,9 +10928,9 @@ function au({ columns: e, primaryKey: t, loadData: n, scaleClient: r, onComplete
10893
10928
  filterColumns: pe,
10894
10929
  setFilterColumns: me,
10895
10930
  navigateToCell: ee,
10896
- navigateToCellRef: z,
10897
- resetScrollRef: B,
10898
- scrollToGridTop: ne,
10931
+ navigateToCellRef: B,
10932
+ resetScrollRef: V,
10933
+ scrollToGridTop: te,
10899
10934
  portalRef: ve,
10900
10935
  readonly: a === "viewer" ? !0 : y ?? !1,
10901
10936
  filtersResetKey: he,
@@ -10981,7 +11016,7 @@ var uu = ({ children: e }) => /* @__PURE__ */ C("div", {
10981
11016
  children: e.map((e) => /* @__PURE__ */ w("div", {
10982
11017
  className: T("updog__editor-toast", `updog__editor-toast--${e.variant || "info"}`),
10983
11018
  children: [
10984
- e.variant === "error" ? /* @__PURE__ */ C(ne, {
11019
+ e.variant === "error" ? /* @__PURE__ */ C(te, {
10985
11020
  size: "1.25rem",
10986
11021
  className: "updog__editor-toast-icon"
10987
11022
  }) : /* @__PURE__ */ C(me, {
@@ -11256,11 +11291,11 @@ var Ou = ({ open: e, onClose: t, onConfirm: n, loading: r = !1 }) => {
11256
11291
  e,
11257
11292
  n,
11258
11293
  P
11259
- ]), ee = s("dataEditor.footer.export"), te = s("dataEditor.footer.exportAll"), z = s("dataEditor.footer.exportFiltered"), B = s("dataEditor.footer.csvFormat"), ne = s("dataEditor.footer.excelFormat"), V = s("dataEditor.footer.jsonFormat"), re = s("dataEditor.footer.tsvFormat"), ie = s("dataEditor.footer.xmlFormat"), ae = v(() => [
11294
+ ]), ee = s("dataEditor.footer.export"), z = s("dataEditor.footer.exportAll"), B = s("dataEditor.footer.exportFiltered"), V = s("dataEditor.footer.csvFormat"), te = s("dataEditor.footer.excelFormat"), ne = s("dataEditor.footer.jsonFormat"), re = s("dataEditor.footer.tsvFormat"), ie = s("dataEditor.footer.xmlFormat"), ae = v(() => [
11260
11295
  {
11261
11296
  menuId: "csv",
11262
11297
  format: "csv",
11263
- text: B
11298
+ text: V
11264
11299
  },
11265
11300
  {
11266
11301
  menuId: "tsv",
@@ -11270,12 +11305,12 @@ var Ou = ({ open: e, onClose: t, onConfirm: n, loading: r = !1 }) => {
11270
11305
  {
11271
11306
  menuId: "excel",
11272
11307
  format: "xlsx",
11273
- text: ne
11308
+ text: te
11274
11309
  },
11275
11310
  {
11276
11311
  menuId: "json",
11277
11312
  format: "json",
11278
- text: V
11313
+ text: ne
11279
11314
  },
11280
11315
  {
11281
11316
  menuId: "xml",
@@ -11283,31 +11318,31 @@ var Ou = ({ open: e, onClose: t, onConfirm: n, loading: r = !1 }) => {
11283
11318
  text: ie
11284
11319
  }
11285
11320
  ], [
11286
- B,
11321
+ V,
11287
11322
  re,
11323
+ te,
11288
11324
  ne,
11289
- V,
11290
11325
  ie
11291
11326
  ]), oe = r !== !1 && (!e.isServer() || e.hasServerExport), se = v(() => {
11292
11327
  let e = r === !1 ? [] : ae.filter((e) => r.includes(e.format));
11293
11328
  return [{
11294
11329
  id: "export-all",
11295
- text: te,
11330
+ text: z,
11296
11331
  options: e.map((e) => ({
11297
11332
  id: `all-${e.menuId}`,
11298
11333
  text: e.text
11299
11334
  }))
11300
11335
  }, {
11301
11336
  id: "export-filtered",
11302
- text: z,
11337
+ text: B,
11303
11338
  options: e.map((e) => ({
11304
11339
  id: `filtered-${e.menuId}`,
11305
11340
  text: e.text
11306
11341
  }))
11307
11342
  }];
11308
11343
  }, [
11309
- te,
11310
11344
  z,
11345
+ B,
11311
11346
  ae,
11312
11347
  r
11313
11348
  ]), ce = f((n) => {
@@ -13721,16 +13756,16 @@ function Vf(e, t, n) {
13721
13756
  //#endregion
13722
13757
  //#region src/components/PreviewTable/index.tsx
13723
13758
  var Hf = 15, Uf = 4, Wf = { width: 1 }, Gf = { height: 1 }, Kf = ({ headers: e, rows: t, lockedColumns: n, displayRows: r = Hf, loading: i = !1, blur: a = !0, scrollbars: o = !0, selectedRow: s, onSelectRow: c, className: l }) => {
13724
- let u = i ? Uf : e ? e.length : Math.max(0, ...t.map((e) => e?.length ?? 0)), d = Array.from({ length: r }, (e, n) => t[n]), p = o === !0, h = o === !0 || o === "empty", g = y(null), _ = y(null), x = y(null), T = y(null), D = y(null), O = y(null), [k, A] = b(!1), [j, M] = b(!1);
13759
+ let { t: u } = G(), d = i ? Uf : e ? e.length : Math.max(0, ...t.map((e) => e?.length ?? 0)), p = Array.from({ length: r }, (e, n) => t[n]), h = o === !0, g = o === !0 || o === "empty", _ = y(null), x = y(null), T = y(null), D = y(null), O = y(null), k = y(null), [A, j] = b(!1), [M, N] = b(!1), [P, F] = b(s ?? 0);
13725
13760
  m(() => {
13726
- if (!p) return;
13727
- let e = g.current, t = x.current, n = T.current, r = D.current, i = O.current;
13761
+ if (!h) return;
13762
+ let e = _.current, t = T.current, n = D.current, r = O.current, i = k.current;
13728
13763
  if (!e) return;
13729
13764
  let a = () => {
13730
13765
  let a = e.scrollHeight - e.clientHeight, o = e.scrollWidth - e.clientWidth;
13731
- t && r && (r.style.height = a + t.clientHeight + "px"), n && i && (i.style.width = o + n.clientWidth + "px"), M(a > 0), A(o > 0);
13766
+ t && r && (r.style.height = a + t.clientHeight + "px"), n && i && (i.style.width = o + n.clientWidth + "px"), N(a > 0), j(o > 0);
13732
13767
  }, o = new ResizeObserver(a);
13733
- o.observe(e), _.current && o.observe(_.current), a();
13768
+ o.observe(e), x.current && o.observe(x.current), a();
13734
13769
  let s = (e) => {
13735
13770
  e.preventDefault(), t && (t.scrollTop += e.deltaY), n && (n.scrollLeft += e.deltaX);
13736
13771
  };
@@ -13743,48 +13778,74 @@ var Hf = 15, Uf = 4, Wf = { width: 1 }, Gf = { height: 1 }, Kf = ({ headers: e,
13743
13778
  return t?.addEventListener("scroll", c, { passive: !0 }), n?.addEventListener("scroll", l, { passive: !0 }), () => {
13744
13779
  o.disconnect(), e.removeEventListener("wheel", s), t?.removeEventListener("scroll", c), n?.removeEventListener("scroll", l);
13745
13780
  };
13746
- }, [p]);
13747
- let N = f((e) => {
13748
- c?.(Number(e.currentTarget.dataset.rowIndex));
13749
- }, [c]), P = f((e) => {
13750
- e.key !== "Enter" && e.key !== " " || (e.preventDefault(), c?.(Number(e.currentTarget.dataset.rowIndex)));
13751
- }, [c]), F = v(() => ({ gridTemplateColumns: `var(--marker-width) repeat(${Math.max(u, 1)}, auto)` }), [u]);
13781
+ }, [h]);
13782
+ let I = f((e) => {
13783
+ let t = Number(e.currentTarget.dataset.rowIndex);
13784
+ F(t), c?.(t);
13785
+ }, [c]), L = Math.min(t.length, r) - 1, R = Math.min(Math.max(P, 0), Math.max(L, 0)), ee = f((e) => {
13786
+ let t = Number(e.currentTarget.dataset.rowIndex);
13787
+ if (e.key === "Enter" || e.key === " ") {
13788
+ e.preventDefault(), c?.(t);
13789
+ return;
13790
+ }
13791
+ if (e.key !== "ArrowDown" && e.key !== "ArrowUp") return;
13792
+ let n = e.key === "ArrowDown" ? Math.min(t + 1, L) : Math.max(t - 1, 0);
13793
+ e.preventDefault(), F(n), x.current?.querySelector(`[data-row-index="${n}"]`)?.focus();
13794
+ }, [c, L]), z = v(() => ({ gridTemplateColumns: `var(--marker-width) repeat(${Math.max(d, 1)}, auto)` }), [d]);
13752
13795
  return /* @__PURE__ */ w("div", {
13753
- className: E("updog__preview-table", o === !1 ? "updog__preview-table--scrollbars-none" : o === "empty" ? "updog__preview-table--scrollbars-empty" : "updog__preview-table--scrollbars-show", p && !k && "updog__preview-table--no-hscroll", p && !j && "updog__preview-table--no-vscroll", l),
13796
+ className: E("updog__preview-table", o === !1 ? "updog__preview-table--scrollbars-none" : o === "empty" ? "updog__preview-table--scrollbars-empty" : "updog__preview-table--scrollbars-show", h && !A && "updog__preview-table--no-hscroll", h && !M && "updog__preview-table--no-vscroll", l),
13754
13797
  children: [
13755
13798
  /* @__PURE__ */ C("div", {
13756
13799
  className: "updog__preview-table__canvas-wrap",
13757
13800
  children: /* @__PURE__ */ C("div", {
13758
13801
  className: "updog__preview-table__scroll",
13759
- ref: g,
13802
+ ref: _,
13760
13803
  children: /* @__PURE__ */ w("div", {
13761
13804
  className: "updog__preview-table__grid",
13762
- style: F,
13763
- ref: _,
13764
- children: [e !== void 0 && /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C("div", { className: "updog__preview-table-marker" }), u === 0 ? /* @__PURE__ */ C("div", { className: E("updog__preview-table-th", "updog__preview-table-cell--last-col") }) : e.map((e, t) => /* @__PURE__ */ w("div", {
13765
- className: E("updog__preview-table-th", t === u - 1 && "updog__preview-table-cell--last-col"),
13766
- children: [/* @__PURE__ */ C("span", {
13767
- className: "updog__preview-table-th__label",
13768
- children: e
13769
- }), n?.[t] && /* @__PURE__ */ C(_e, {
13770
- size: "0.875rem",
13771
- className: "updog__preview-table-th__lock-icon"
13772
- })]
13773
- }, t))] }), d.map((e, t) => {
13805
+ style: z,
13806
+ ref: x,
13807
+ role: "grid",
13808
+ "aria-label": u("uploader.headerSelection.previewGridLabel"),
13809
+ children: [e !== void 0 && /* @__PURE__ */ w("div", {
13810
+ role: "row",
13811
+ className: "updog__preview-table-row updog__preview-table-row--header",
13812
+ children: [/* @__PURE__ */ C("div", {
13813
+ role: "columnheader",
13814
+ className: "updog__preview-table-marker"
13815
+ }), d === 0 ? /* @__PURE__ */ C("div", {
13816
+ role: "columnheader",
13817
+ className: E("updog__preview-table-th", "updog__preview-table-cell--last-col")
13818
+ }) : e.map((e, t) => /* @__PURE__ */ w("div", {
13819
+ role: "columnheader",
13820
+ className: E("updog__preview-table-th", t === d - 1 && "updog__preview-table-cell--last-col"),
13821
+ children: [/* @__PURE__ */ C("span", {
13822
+ className: "updog__preview-table-th__label",
13823
+ children: e
13824
+ }), n?.[t] && /* @__PURE__ */ C(_e, {
13825
+ size: "0.875rem",
13826
+ className: "updog__preview-table-th__lock-icon"
13827
+ })]
13828
+ }, t))]
13829
+ }), p.map((e, t) => {
13774
13830
  let n = t === r - 1, a = !!c && e !== void 0, o = s === t;
13775
13831
  return /* @__PURE__ */ w("div", {
13776
13832
  className: E("updog__preview-table-row", a && "updog__preview-table-row--interactive", o && "updog__preview-table-row--selected"),
13777
13833
  "data-row-index": t,
13778
- role: a ? "row" : void 0,
13779
- tabIndex: a ? 0 : void 0,
13834
+ role: "row",
13835
+ tabIndex: a ? t === R ? 0 : -1 : void 0,
13780
13836
  "aria-selected": a ? o : void 0,
13781
- onClick: a ? N : void 0,
13782
- onKeyDown: a ? P : void 0,
13837
+ onClick: a ? I : void 0,
13838
+ onKeyDown: a ? ee : void 0,
13783
13839
  children: [/* @__PURE__ */ C("div", {
13840
+ role: "gridcell",
13784
13841
  className: E("updog__preview-table-marker", n && "updog__preview-table-cell--last-row"),
13785
13842
  children: t + 1
13786
- }), u === 0 ? /* @__PURE__ */ C("div", { className: E("updog__preview-table-td", "updog__preview-table-cell--last-col", n && "updog__preview-table-cell--last-row") }) : Array.from({ length: u }, (t, r) => /* @__PURE__ */ C("div", {
13787
- className: E("updog__preview-table-td", r === u - 1 && "updog__preview-table-cell--last-col", n && "updog__preview-table-cell--last-row"),
13843
+ }), d === 0 ? /* @__PURE__ */ C("div", {
13844
+ role: "gridcell",
13845
+ className: E("updog__preview-table-td", "updog__preview-table-cell--last-col", n && "updog__preview-table-cell--last-row")
13846
+ }) : Array.from({ length: d }, (t, r) => /* @__PURE__ */ C("div", {
13847
+ role: "gridcell",
13848
+ className: E("updog__preview-table-td", r === d - 1 && "updog__preview-table-cell--last-col", n && "updog__preview-table-cell--last-row"),
13788
13849
  children: i ? /* @__PURE__ */ C($r, {
13789
13850
  width: "3.5rem",
13790
13851
  height: "0.625rem"
@@ -13795,22 +13856,22 @@ var Hf = 15, Uf = 4, Wf = { width: 1 }, Gf = { height: 1 }, Kf = ({ headers: e,
13795
13856
  })
13796
13857
  })
13797
13858
  }),
13798
- h && /* @__PURE__ */ w(S, { children: [
13859
+ g && /* @__PURE__ */ w(S, { children: [
13799
13860
  /* @__PURE__ */ C("div", {
13800
13861
  className: "updog__preview-table__vtrack",
13801
- ref: x,
13862
+ ref: T,
13802
13863
  tabIndex: -1,
13803
13864
  children: /* @__PURE__ */ C("div", {
13804
- ref: D,
13865
+ ref: O,
13805
13866
  style: Wf
13806
13867
  })
13807
13868
  }),
13808
13869
  /* @__PURE__ */ C("div", {
13809
13870
  className: "updog__preview-table__htrack",
13810
- ref: T,
13871
+ ref: D,
13811
13872
  tabIndex: -1,
13812
13873
  children: /* @__PURE__ */ C("div", {
13813
- ref: O,
13874
+ ref: k,
13814
13875
  style: Gf
13815
13876
  })
13816
13877
  }),
@@ -19981,12 +20042,12 @@ var $_ = {
19981
20042
  "--marker-width": "76px",
19982
20043
  "--track-size": "12px"
19983
20044
  }, ev = () => {
19984
- let { columns: e, store: t, readonly: n, enableDeleteRow: r, enableAddRow: i, validator: a, navigateToCellRef: o, resetScrollRef: s, findReplace: c, dynamicColumns: l, updateColumn: u, enableCreateColumn: d, onVisibleRangeChange: p } = X(), { filteredCount: h, sortState: g, showOnlyDeletedRows: E, phase: D, isLoading: O, processing: k, filterCriteriaVersion: A } = Bo(t), j = O && h === 0 ? 30 : h, { t: M, rtl: N } = G(), P = x(t.subscribe, t.getSnapshot, t.getSnapshot).version, F = y(null), I = y(null), L = y(null), R = G_(t, e, n, a, E, N), ee = q_(R), te = K_(R), z = d_(R), { editing: B } = R, ne = y(null), V = y(null);
19985
- if (ne.current === null) {
19986
- let { columns: e, pinnedColumnIds: t, stickyOffsets: n } = z;
19987
- ne.current = new Fd(e, new Set(t), n, N);
20045
+ let { columns: e, store: t, readonly: n, enableDeleteRow: r, enableAddRow: i, validator: a, navigateToCellRef: o, resetScrollRef: s, findReplace: c, dynamicColumns: l, updateColumn: u, enableCreateColumn: d, onVisibleRangeChange: p } = X(), { filteredCount: h, sortState: g, showOnlyDeletedRows: E, phase: D, isLoading: O, processing: k, filterCriteriaVersion: A } = Bo(t), j = O && h === 0 ? 30 : h, { t: M, rtl: N } = G(), P = x(t.subscribe, t.getSnapshot, t.getSnapshot).version, F = y(null), I = y(null), L = y(null), R = G_(t, e, n, a, E, N), ee = q_(R), z = K_(R), B = d_(R), { editing: V } = R, te = y(null), ne = y(null);
20046
+ if (te.current === null) {
20047
+ let { columns: e, pinnedColumnIds: t, stickyOffsets: n } = B;
20048
+ te.current = new Fd(e, new Set(t), n, N);
19988
20049
  }
19989
- let re = ne.current;
20050
+ let re = te.current;
19990
20051
  m(() => (o.current = (e, t) => {
19991
20052
  let n = R.columnManager.getColumnIndex(e);
19992
20053
  n < 0 || R.selection.navigateToCell(n, t);
@@ -20003,17 +20064,17 @@ var $_ = {
20003
20064
  }, [R, g]), m(() => {
20004
20065
  R.clipboard.setTranslate(M);
20005
20066
  }, [R, M]), m(() => {
20006
- R.setBounds(h, z.columns.length);
20067
+ R.setBounds(h, B.columns.length);
20007
20068
  }, [
20008
20069
  R,
20009
20070
  h,
20010
- z.columns.length
20071
+ B.columns.length
20011
20072
  ]), m(() => {
20012
- c.updateColumns(z.columns);
20013
- }, [c, z.columns]), m(() => {
20014
- let e = z.columns;
20073
+ c.updateColumns(B.columns);
20074
+ }, [c, B.columns]), m(() => {
20075
+ let e = B.columns;
20015
20076
  R.actions.updateColumns(e), R.editing.updateColumns(e), R.clipboard.updateColumns(e);
20016
- }, [R, z.columns]);
20077
+ }, [R, B.columns]);
20017
20078
  let ie = v(() => new Set(l.map((e) => e.id)), [l]), [ae, oe] = b(null), se = f((e) => {
20018
20079
  oe(e);
20019
20080
  }, []), ce = f(() => {
@@ -20023,10 +20084,10 @@ var $_ = {
20023
20084
  ...ae,
20024
20085
  ...e
20025
20086
  }), oe(null);
20026
- }, [ae, u]), ue = v(() => z.columns.map((e) => e.title), [z.columns]), { anchor: de, items: fe, handleCanvasContextMenu: pe, handleSelect: me, handleOpenChange: he, transformModal: ge, transformModalColIds: _e, transformModalScope: ve, handleApplyMerge: ye, handleApplySplit: be, closeTransformModal: xe, showFormulaModal: Se, closeFormulaModal: Ce, handleApplyFormula: we, formulaColumnIds: Te, formulaScope: Ee } = m_({
20087
+ }, [ae, u]), ue = v(() => B.columns.map((e) => e.title), [B.columns]), { anchor: de, items: fe, handleCanvasContextMenu: pe, handleSelect: me, handleOpenChange: he, transformModal: ge, transformModalColIds: _e, transformModalScope: ve, handleApplyMerge: ye, handleApplySplit: be, closeTransformModal: xe, showFormulaModal: Se, closeFormulaModal: Ce, handleApplyFormula: we, formulaColumnIds: Te, formulaScope: Ee } = m_({
20027
20088
  controller: R,
20028
20089
  store: t,
20029
- columnSnapshot: z,
20090
+ columnSnapshot: B,
20030
20091
  readonly: n,
20031
20092
  enableDeleteRow: r,
20032
20093
  enableAddRow: i,
@@ -20043,10 +20104,10 @@ var $_ = {
20043
20104
  e?.removeEventListener("scroll", n), t?.removeEventListener("scroll", n);
20044
20105
  };
20045
20106
  }, [de, he]);
20046
- let De = !te.isEditing && de === null, Oe = Y_(F, ee.focusCell, De, re, h, V, I, L), ke = f((e) => {
20107
+ let De = !z.isEditing && de === null, Oe = Y_(F, ee.focusCell, De, re, h, ne, I, L), ke = f((e) => {
20047
20108
  R.keyboard.handleKeyDown(e.nativeEvent);
20048
20109
  }, [R]);
20049
- Q_(F, R, re, h, z.columns.length, n, pe, V, I, L);
20110
+ Q_(F, R, re, h, B.columns.length, n, pe, ne, I, L);
20050
20111
  let Ae = f(() => {
20051
20112
  F.current?.focus();
20052
20113
  }, []);
@@ -20069,11 +20130,11 @@ var $_ = {
20069
20130
  controller: R,
20070
20131
  store: t,
20071
20132
  filteredCount: j,
20072
- columnSnapshot: z,
20133
+ columnSnapshot: B,
20073
20134
  containerRef: F,
20074
20135
  sortState: g,
20075
20136
  engine: re,
20076
- fillHandleRectRef: V,
20137
+ fillHandleRectRef: ne,
20077
20138
  findReplace: c,
20078
20139
  vTrackRef: I,
20079
20140
  hTrackRef: L,
@@ -20081,7 +20142,7 @@ var $_ = {
20081
20142
  }), /* @__PURE__ */ C(Iu, {
20082
20143
  engine: re,
20083
20144
  controller: R,
20084
- columns: z.columns,
20145
+ columns: B.columns,
20085
20146
  filteredCount: h,
20086
20147
  containerRef: F
20087
20148
  })]
@@ -20091,19 +20152,19 @@ var $_ = {
20091
20152
  target: Oe,
20092
20153
  containerRef: F,
20093
20154
  store: t,
20094
- columns: z.columns,
20155
+ columns: B.columns,
20095
20156
  storeVersion: P,
20096
20157
  engine: re,
20097
20158
  disabled: ge !== null || ae !== null || Se
20098
20159
  }),
20099
- te.isEditing && /* @__PURE__ */ C(Zd, {
20100
- editing: B,
20101
- editingSnapshot: te,
20160
+ z.isEditing && /* @__PURE__ */ C(Zd, {
20161
+ editing: V,
20162
+ editingSnapshot: z,
20102
20163
  layout: re.layout,
20103
20164
  viewport: re.viewport,
20104
20165
  onAfterEdit: Ae,
20105
- columns: z.columns
20106
- }, te.version),
20166
+ columns: B.columns
20167
+ }, z.version),
20107
20168
  /* @__PURE__ */ C("div", {
20108
20169
  ref: I,
20109
20170
  className: "updog-grid__vtrack",
@@ -24577,7 +24638,7 @@ var hS = () => {
24577
24638
  className: "updog__workbook-name__file",
24578
24639
  tooltipProps: { placement: "bottom-start" },
24579
24640
  children: t
24580
- }), /* @__PURE__ */ C(z, {
24641
+ }), /* @__PURE__ */ C(B, {
24581
24642
  "aria-hidden": "true",
24582
24643
  size: "1rem",
24583
24644
  className: "rtl-mirror updog__workbook-name__separator"
@@ -24988,7 +25049,7 @@ var ES = () => {
24988
25049
  w,
24989
25050
  g,
24990
25051
  d
24991
- ]), te = f(() => T(null), []);
25052
+ ]), z = f(() => T(null), []);
24992
25053
  return {
24993
25054
  sections: D,
24994
25055
  isMatching: u,
@@ -25007,7 +25068,7 @@ var ES = () => {
25007
25068
  changeDelimiter: L,
25008
25069
  reapplyDelimiter: R,
25009
25070
  submitCreate: ee,
25010
- closeCreate: te
25071
+ closeCreate: z
25011
25072
  };
25012
25073
  }, PS = s(null);
25013
25074
  function FS({ children: e }) {
@@ -25762,23 +25823,23 @@ var lC = () => {
25762
25823
  children: /* @__PURE__ */ C(pC, {})
25763
25824
  });
25764
25825
  }, yC = () => {
25765
- let { getRootProps: e, getInputProps: t, isDragActive: n, open: r, stagedItems: i, toggleItem: a } = lC(), o = i.length > 0;
25826
+ let { t: e } = G(), { getRootProps: t, getInputProps: n, isDragActive: r, open: i, stagedItems: a, toggleItem: o } = lC(), s = a.length > 0;
25766
25827
  return /* @__PURE__ */ C(pu, { children: /* @__PURE__ */ w("div", {
25767
25828
  className: "updog__step-select-files__dropzone",
25768
- ...e(),
25829
+ ...t(),
25769
25830
  children: [
25770
- /* @__PURE__ */ C("input", { ...t() }),
25771
- /* @__PURE__ */ w(du, { children: [o ? /* @__PURE__ */ C("div", {
25831
+ /* @__PURE__ */ C("input", { ...n({ "aria-label": e("uploader.uploadFile.fileInputLabel") }) }),
25832
+ /* @__PURE__ */ w(du, { children: [s ? /* @__PURE__ */ C("div", {
25772
25833
  className: "updog__sheet-preview-wrapper updog__scrollbar",
25773
25834
  children: /* @__PURE__ */ w("div", {
25774
25835
  className: "updog__sheet-preview-grid",
25775
- children: [i.map((e) => /* @__PURE__ */ C(_C, {
25836
+ children: [a.map((e) => /* @__PURE__ */ C(_C, {
25776
25837
  item: e,
25777
- onToggle: a
25778
- }, e.id)), /* @__PURE__ */ C(mC, { onClick: r })]
25838
+ onToggle: o
25839
+ }, e.id)), /* @__PURE__ */ C(mC, { onClick: i })]
25779
25840
  })
25780
- }) : /* @__PURE__ */ C(vC, {}), /* @__PURE__ */ C(_y, { leftSlot: C(o ? gC : hC, {}) })] }),
25781
- n && /* @__PURE__ */ C(fu, {})
25841
+ }) : /* @__PURE__ */ C(vC, {}), /* @__PURE__ */ C(_y, { leftSlot: C(s ? gC : hC, {}) })] }),
25842
+ r && /* @__PURE__ */ C(fu, {})
25782
25843
  ]
25783
25844
  }) });
25784
25845
  }, bC = () => /* @__PURE__ */ C(cC, { children: /* @__PURE__ */ C(yC, {}) });