wcz-layout 10.0.0 → 10.1.2

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 (74) hide show
  1. package/dist/{AggregatedCell-BtKC5-m6.mjs → AggregatedCell-C7nAQyMO.mjs} +15 -2
  2. package/dist/AggregatedCell-C7nAQyMO.mjs.map +1 -0
  3. package/dist/{Approval-C-hF4jbT.mjs → Approval-DoD-GRRH.mjs} +18 -14
  4. package/dist/Approval-DoD-GRRH.mjs.map +1 -0
  5. package/dist/{Employee-DbdStvU0.d.mts → Employee-N9fRSnIl.d.mts} +30 -14
  6. package/dist/FileMeta-DDqUju1Y.mjs.map +1 -1
  7. package/dist/{LayoutTable-4DLs-NI-.d.mts → LayoutTable-DX9IaO8V.d.mts} +205 -197
  8. package/dist/RouterListItemButton-ULMlaQh6.mjs.map +1 -1
  9. package/dist/{approval-DFExxyAJ.mjs → approval-DiNOXd4B.mjs} +4 -4
  10. package/dist/approval-DiNOXd4B.mjs.map +1 -0
  11. package/dist/auth.mjs +4 -4
  12. package/dist/components.d.mts +1 -1
  13. package/dist/components.mjs +47 -21
  14. package/dist/components.mjs.map +1 -1
  15. package/dist/{createApi-CLYWCzR2.mjs → createApi-DGJJ4I_R.mjs} +3 -3
  16. package/dist/{createApi-CLYWCzR2.mjs.map → createApi-DGJJ4I_R.mjs.map} +1 -1
  17. package/dist/data/client.d.mts +183 -64
  18. package/dist/data/client.mjs +5 -5
  19. package/dist/data/client.mjs.map +1 -1
  20. package/dist/data/server.d.mts +1 -1
  21. package/dist/data/server.mjs +4 -4
  22. package/dist/{file-aSQto2rw.mjs → file-C14fhUeg.mjs} +4 -4
  23. package/dist/{file-aSQto2rw.mjs.map → file-C14fhUeg.mjs.map} +1 -1
  24. package/dist/{file-CZwQfvTU.mjs → file-C5BOj1q8.mjs} +4 -4
  25. package/dist/file-C5BOj1q8.mjs.map +1 -0
  26. package/dist/hooks.d.mts +1 -1
  27. package/dist/hooks.mjs +461 -452
  28. package/dist/hooks.mjs.map +1 -1
  29. package/dist/index.mjs +4 -4
  30. package/dist/index.mjs.map +1 -1
  31. package/dist/middleware.mjs +2 -2
  32. package/dist/middleware.mjs.map +1 -1
  33. package/dist/models.d.mts +22 -2
  34. package/dist/models.mjs +1 -1
  35. package/dist/{peoplesoft-BY_75WTS.d.mts → peoplesoft-BIdTNshE.d.mts} +2 -3
  36. package/dist/{peoplesoft-CQnc01Hc.mjs → peoplesoft-BkJMCcHb.mjs} +3 -3
  37. package/dist/peoplesoft-BkJMCcHb.mjs.map +1 -0
  38. package/dist/{providers-Dbl95AxR.mjs → providers-DrairEO2.mjs} +2 -2
  39. package/dist/providers-DrairEO2.mjs.map +1 -0
  40. package/dist/{tokens-D8CVIFTb.mjs → tokens-BLRreL1j.mjs} +3 -3
  41. package/dist/tokens-BLRreL1j.mjs.map +1 -0
  42. package/dist/{utils-KaM5VMTJ.mjs → utils-BUpDoqme.mjs} +13 -13
  43. package/dist/utils-BUpDoqme.mjs.map +1 -0
  44. package/dist/utils.mjs +1 -1
  45. package/package.json +16 -14
  46. package/skills/ai/SKILL.md +59 -0
  47. package/skills/client-db/SKILL.md +47 -43
  48. package/skills/db-schema/SKILL.md +6 -0
  49. package/skills/dialogs/SKILL.md +8 -6
  50. package/skills/forms/SKILL.md +19 -1
  51. package/skills/general/SKILL.md +21 -19
  52. package/skills/general/references/exports.md +6 -3
  53. package/skills/migrations/versions/migrate-v10-to-v11.md +1 -0
  54. package/skills/migrations/versions/migrate-v9-to-v10.md +26 -25
  55. package/skills/routing/SKILL.md +7 -4
  56. package/skills/server-functions/SKILL.md +8 -5
  57. package/skills/services/SKILL.md +1 -1
  58. package/skills/services/docs/approval.md +258 -257
  59. package/skills/services/docs/peoplesoft.md +4 -0
  60. package/skills/start/SKILL.md +3 -2
  61. package/skills/start/steps/02-project-name-setup.md +1 -1
  62. package/skills/start/steps/07-vault-setup.md +5 -4
  63. package/skills/table/SKILL.md +20 -31
  64. package/dist/AggregatedCell-BtKC5-m6.mjs.map +0 -1
  65. package/dist/Approval-C-hF4jbT.mjs.map +0 -1
  66. package/dist/approval-DFExxyAJ.mjs.map +0 -1
  67. package/dist/file-CZwQfvTU.mjs.map +0 -1
  68. package/dist/peoplesoft-CQnc01Hc.mjs.map +0 -1
  69. package/dist/providers-Dbl95AxR.mjs.map +0 -1
  70. package/dist/tokens-D8CVIFTb.mjs.map +0 -1
  71. package/dist/utils-KaM5VMTJ.mjs.map +0 -1
  72. package/skills/unslop/SKILL.md +0 -80
  73. /package/skills/start/steps/{10-gitlab-ci.md → 09-gitlab-ci.md} +0 -0
  74. /package/skills/start/steps/{09-commit.md → 10-commit.md} +0 -0
package/dist/hooks.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { a as foldForSearch, o as getFieldStatus } from "./utils-KaM5VMTJ.mjs";
2
- import { a as tableContext, c as useTableContext, f as columnLabel, g as shortcutLabel, i as layoutTableFeatures, l as formatValue, m as moveColumn, n as cellContext, o as useCellContext, p as hasColumnLabel, r as headerContext, s as useHeaderContext, t as AggregatedCell, v as useDialogs } from "./AggregatedCell-BtKC5-m6.mjs";
1
+ import { a as foldForSearch, o as getFieldStatus } from "./utils-BUpDoqme.mjs";
2
+ import { a as tableContext, b as useDialogs, c as useTableContext, f as columnFlex, g as moveColumn, i as layoutTableFeatures, l as formatValue, m as hasColumnLabel, n as cellContext, o as useCellContext, p as columnLabel, r as headerContext, s as useHeaderContext, t as AggregatedCell, v as shortcutLabel } from "./AggregatedCell-C7nAQyMO.mjs";
3
3
  import { c } from "react/compiler-runtime";
4
4
  import { Autocomplete, Badge, Box, Button, Checkbox, Divider, FormControl, FormControlLabel, FormHelperText, FormLabel, IconButton, InputAdornment, InputLabel, ListItemIcon, ListItemText, Menu, MenuItem, Popover, Radio, RadioGroup, Select, Skeleton, Slider, Stack, Switch, TableCell, TablePagination, TableRow, TableSortLabel, TextField, Tooltip, Typography, useTheme } from "@mui/material";
5
5
  import { DatePicker, DateTimePicker, TimePicker } from "@mui/x-date-pickers";
@@ -30,6 +30,7 @@ import ViewColumn from "@mui/icons-material/ViewColumn";
30
30
  import Add from "@mui/icons-material/Add";
31
31
  import DeleteForever from "@mui/icons-material/DeleteForever";
32
32
  import FilterList from "@mui/icons-material/FilterList";
33
+ import { useDebouncedCallback } from "@tanstack/react-pacer/debouncer";
33
34
  import Search from "@mui/icons-material/Search";
34
35
  //#region src/components/form/FormAutocomplete.tsx
35
36
  const FormAutocomplete = (t0) => {
@@ -500,7 +501,7 @@ const FormRadioGroup = (t0) => {
500
501
  const t7 = field.name;
501
502
  let t8;
502
503
  if ($[11] !== options) {
503
- t8 = options.map(_temp$8);
504
+ t8 = options.map(_temp$9);
504
505
  $[11] = options;
505
506
  $[12] = t8;
506
507
  } else t8 = $[12];
@@ -551,7 +552,7 @@ const FormRadioGroup = (t0) => {
551
552
  } else t11 = $[27];
552
553
  return t11;
553
554
  };
554
- function _temp$8(option) {
555
+ function _temp$9(option) {
555
556
  return /* @__PURE__ */ jsx(FormControlLabel, {
556
557
  value: option.value,
557
558
  control: /* @__PURE__ */ jsx(Radio, {}),
@@ -683,7 +684,7 @@ const FormSubmitButton = (props) => {
683
684
  let t2;
684
685
  if ($[6] !== form.Subscribe || $[7] !== t1) {
685
686
  t2 = /* @__PURE__ */ jsx(form.Subscribe, {
686
- selector: _temp$7,
687
+ selector: _temp$8,
687
688
  children: t1
688
689
  });
689
690
  $[6] = form.Subscribe;
@@ -692,7 +693,7 @@ const FormSubmitButton = (props) => {
692
693
  } else t2 = $[8];
693
694
  return t2;
694
695
  };
695
- function _temp$7(state) {
696
+ function _temp$8(state) {
696
697
  return [state.canSubmit, state.isSubmitting];
697
698
  }
698
699
  //#endregion
@@ -889,113 +890,88 @@ const useScanDetection = ({ timeToEvaluate = 100, averageWaitTime = 50, startCha
889
890
  //#endregion
890
891
  //#region src/components/table/cells/features/ActionsCell.tsx
891
892
  const ActionsCell = (t0) => {
892
- const $ = c(25);
893
- if ($[0] !== "c383b316e656daf525eafc82d0cfbfc90d697f09f84d09450d77bdc197a2cd1c") {
894
- for (let $i = 0; $i < 25; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
895
- $[0] = "c383b316e656daf525eafc82d0cfbfc90d697f09f84d09450d77bdc197a2cd1c";
893
+ const $ = c(9);
894
+ if ($[0] !== "5ef513b7074a5c10143af85116c5042019a2751468e77a12cea8cff24b83e8fa") {
895
+ for (let $i = 0; $i < 9; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
896
+ $[0] = "5ef513b7074a5c10143af85116c5042019a2751468e77a12cea8cff24b83e8fa";
896
897
  }
897
898
  const { actions } = t0;
898
899
  const cell = useCellContext();
899
900
  const { t } = useTranslation$1();
900
901
  const [anchorEl, setAnchorEl] = useState(null);
901
- if (!actions.length) return null;
902
902
  let t1;
903
- if ($[1] !== t) {
904
- t1 = t("Layout.Table.RowActions");
905
- $[1] = t;
906
- $[2] = t1;
907
- } else t1 = $[2];
908
- let t2;
909
- if ($[3] !== t) {
910
- t2 = t("Layout.Table.RowActions");
911
- $[3] = t;
912
- $[4] = t2;
913
- } else t2 = $[4];
914
- let t3;
915
- let t4;
916
- if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
917
- t3 = (event) => {
918
- event.stopPropagation();
919
- setAnchorEl(event.currentTarget);
920
- };
921
- t4 = /* @__PURE__ */ jsx(MoreVert, { fontSize: "small" });
922
- $[5] = t3;
923
- $[6] = t4;
924
- } else {
925
- t3 = $[5];
926
- t4 = $[6];
927
- }
928
- let t5;
929
- if ($[7] !== t2) {
930
- t5 = /* @__PURE__ */ jsx(IconButton, {
931
- size: "small",
932
- "aria-label": t2,
933
- "aria-haspopup": "menu",
934
- onClick: t3,
935
- children: t4
936
- });
937
- $[7] = t2;
938
- $[8] = t5;
939
- } else t5 = $[8];
940
- let t6;
941
- if ($[9] !== t1 || $[10] !== t5) {
942
- t6 = /* @__PURE__ */ jsx(Tooltip, {
943
- title: t1,
944
- children: t5
945
- });
946
- $[9] = t1;
947
- $[10] = t5;
948
- $[11] = t6;
949
- } else t6 = $[11];
950
- const t7 = !!anchorEl;
951
- let t8;
952
- if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
953
- t8 = () => setAnchorEl(null);
954
- $[12] = t8;
955
- } else t8 = $[12];
956
- let t9;
957
- if ($[13] !== actions || $[14] !== cell) {
958
- let t10;
959
- if ($[16] !== cell) {
960
- t10 = (action) => [...action.divider ? [/* @__PURE__ */ jsx(Divider, {}, `${action.label}-divider`)] : [], /* @__PURE__ */ jsxs(MenuItem, {
961
- disabled: action.disabled,
962
- onClick: (event_0) => {
963
- event_0.stopPropagation();
964
- action.onClick(cell.row.original);
965
- setAnchorEl(null);
966
- },
967
- children: [action.icon && /* @__PURE__ */ jsx(ListItemIcon, { children: action.icon }), /* @__PURE__ */ jsx(ListItemText, { children: action.label })]
968
- }, action.label)];
969
- $[16] = cell;
970
- $[17] = t10;
971
- } else t10 = $[17];
972
- t9 = actions.flatMap(t10);
973
- $[13] = actions;
974
- $[14] = cell;
975
- $[15] = t9;
976
- } else t9 = $[15];
977
- let t10;
978
- if ($[18] !== anchorEl || $[19] !== t7 || $[20] !== t9) {
979
- t10 = /* @__PURE__ */ jsx(Menu, {
980
- anchorEl,
981
- open: t7,
982
- onClose: t8,
983
- children: t9
903
+ if ($[1] !== actions || $[2] !== anchorEl || $[3] !== cell || $[4] !== t) {
904
+ const buttons = actions.filter(_temp$7);
905
+ const menuItems = actions.filter(_temp2$2);
906
+ let t2;
907
+ if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
908
+ t2 = { alignItems: "center" };
909
+ $[6] = t2;
910
+ } else t2 = $[6];
911
+ let t3;
912
+ if ($[7] !== cell) {
913
+ t3 = (action_1) => /* @__PURE__ */ jsx(Tooltip, {
914
+ title: action_1.label,
915
+ children: /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsx(IconButton, {
916
+ size: "small",
917
+ "aria-label": action_1.label,
918
+ disabled: action_1.disabled,
919
+ onClick: () => action_1.onClick(cell.row.original),
920
+ children: action_1.icon
921
+ }) })
922
+ }, action_1.label);
923
+ $[7] = cell;
924
+ $[8] = t3;
925
+ } else t3 = $[8];
926
+ t1 = /* @__PURE__ */ jsxs(Stack, {
927
+ direction: "row",
928
+ spacing: 1,
929
+ sx: t2,
930
+ onClick: _temp3$1,
931
+ onDoubleClick: _temp4,
932
+ children: [buttons.map(t3), menuItems.length > 0 && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Tooltip, {
933
+ title: t("Layout.Table.RowActions"),
934
+ children: /* @__PURE__ */ jsx(IconButton, {
935
+ size: "small",
936
+ "aria-label": t("Layout.Table.RowActions"),
937
+ "aria-haspopup": "menu",
938
+ onClick: (event_1) => setAnchorEl(event_1.currentTarget),
939
+ children: /* @__PURE__ */ jsx(MoreVert, { fontSize: "small" })
940
+ })
941
+ }), /* @__PURE__ */ jsx(Menu, {
942
+ anchorEl,
943
+ open: !!anchorEl,
944
+ onClose: () => setAnchorEl(null),
945
+ children: menuItems.flatMap((action_2) => [...action_2.divider ? [/* @__PURE__ */ jsx(Divider, {}, `${action_2.label}-divider`)] : [], /* @__PURE__ */ jsxs(MenuItem, {
946
+ disabled: action_2.disabled,
947
+ onClick: () => {
948
+ action_2.onClick(cell.row.original);
949
+ setAnchorEl(null);
950
+ },
951
+ children: [action_2.icon && /* @__PURE__ */ jsx(ListItemIcon, { children: action_2.icon }), /* @__PURE__ */ jsx(ListItemText, { children: action_2.label })]
952
+ }, action_2.label)])
953
+ })] })]
984
954
  });
985
- $[18] = anchorEl;
986
- $[19] = t7;
987
- $[20] = t9;
988
- $[21] = t10;
989
- } else t10 = $[21];
990
- let t11;
991
- if ($[22] !== t10 || $[23] !== t6) {
992
- t11 = /* @__PURE__ */ jsxs(Fragment$1, { children: [t6, t10] });
993
- $[22] = t10;
994
- $[23] = t6;
995
- $[24] = t11;
996
- } else t11 = $[24];
997
- return t11;
955
+ $[1] = actions;
956
+ $[2] = anchorEl;
957
+ $[3] = cell;
958
+ $[4] = t;
959
+ $[5] = t1;
960
+ } else t1 = $[5];
961
+ return t1;
998
962
  };
963
+ function _temp$7(action) {
964
+ return !action.showInMenu;
965
+ }
966
+ function _temp2$2(action_0) {
967
+ return action_0.showInMenu;
968
+ }
969
+ function _temp3$1(event) {
970
+ return event.stopPropagation();
971
+ }
972
+ function _temp4(event_0) {
973
+ return event_0.stopPropagation();
974
+ }
999
975
  //#endregion
1000
976
  //#region src/components/table/cells/features/ExpandCell.tsx
1001
977
  const ExpandCell = () => {
@@ -1790,34 +1766,50 @@ const base = {
1790
1766
  width: TARGET_SIZE
1791
1767
  };
1792
1768
  const HeaderResizeHandle = () => {
1793
- const $ = c(10);
1794
- if ($[0] !== "e1cc0c056dc5cc9102191f0d1628d7994976d6fec3257d6bc6da3e49d48245f1") {
1795
- for (let $i = 0; $i < 10; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
1796
- $[0] = "e1cc0c056dc5cc9102191f0d1628d7994976d6fec3257d6bc6da3e49d48245f1";
1769
+ const $ = c(14);
1770
+ if ($[0] !== "fbc9339f07ac5931033d21f8a06183f9a614df1bc588178ee75716e2ea3dd113") {
1771
+ for (let $i = 0; $i < 14; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
1772
+ $[0] = "fbc9339f07ac5931033d21f8a06183f9a614df1bc588178ee75716e2ea3dd113";
1797
1773
  }
1798
1774
  const header = useHeaderContext();
1799
1775
  const { column } = header;
1800
1776
  if (!column.getCanResize()) {
1801
1777
  let t0;
1802
- if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
1803
- t0 = /* @__PURE__ */ jsx(Box, { sx: {
1778
+ if ($[1] !== column) {
1779
+ t0 = column.getIsLastColumn() ? null : /* @__PURE__ */ jsx(Box, { sx: {
1804
1780
  ...base,
1805
1781
  "&::after": bar(false)
1806
1782
  } });
1807
- $[1] = t0;
1808
- } else t0 = $[1];
1783
+ $[1] = column;
1784
+ $[2] = t0;
1785
+ } else t0 = $[2];
1809
1786
  return t0;
1810
1787
  }
1811
1788
  let t0;
1812
- if ($[2] !== header) {
1789
+ if ($[3] !== header) {
1813
1790
  t0 = header.getResizeHandler();
1814
- $[2] = header;
1815
- $[3] = t0;
1816
- } else t0 = $[3];
1817
- const handler = t0;
1791
+ $[3] = header;
1792
+ $[4] = t0;
1793
+ } else t0 = $[4];
1794
+ const resize = t0;
1818
1795
  let t1;
1819
- if ($[4] !== column || $[5] !== handler) {
1820
- t1 = () => /* @__PURE__ */ jsx(Box, {
1796
+ if ($[5] !== column || $[6] !== resize) {
1797
+ t1 = (event) => {
1798
+ const width = event.currentTarget.parentElement?.offsetWidth;
1799
+ if (columnFlex(column) && width) column.table.setColumnSizing((old) => ({
1800
+ ...old,
1801
+ [column.id]: width
1802
+ }));
1803
+ resize(event);
1804
+ };
1805
+ $[5] = column;
1806
+ $[6] = resize;
1807
+ $[7] = t1;
1808
+ } else t1 = $[7];
1809
+ const handler = t1;
1810
+ let t2;
1811
+ if ($[8] !== column || $[9] !== handler) {
1812
+ t2 = () => /* @__PURE__ */ jsx(Box, {
1821
1813
  role: "separator",
1822
1814
  "aria-orientation": "vertical",
1823
1815
  onMouseDown: handler,
@@ -1833,24 +1825,24 @@ const HeaderResizeHandle = () => {
1833
1825
  "&:hover::after": bar(true)
1834
1826
  }
1835
1827
  });
1836
- $[4] = column;
1837
- $[5] = handler;
1838
- $[6] = t1;
1839
- } else t1 = $[6];
1840
- let t2;
1841
- if ($[7] !== column.table.atoms.columnResizing || $[8] !== t1) {
1842
- t2 = /* @__PURE__ */ jsx(Subscribe, {
1828
+ $[8] = column;
1829
+ $[9] = handler;
1830
+ $[10] = t2;
1831
+ } else t2 = $[10];
1832
+ let t3;
1833
+ if ($[11] !== column.table.atoms.columnResizing || $[12] !== t2) {
1834
+ t3 = /* @__PURE__ */ jsx(Subscribe, {
1843
1835
  source: column.table.atoms.columnResizing,
1844
- children: t1
1836
+ children: t2
1845
1837
  });
1846
- $[7] = column.table.atoms.columnResizing;
1847
- $[8] = t1;
1848
- $[9] = t2;
1849
- } else t2 = $[9];
1850
- return t2;
1838
+ $[11] = column.table.atoms.columnResizing;
1839
+ $[12] = t2;
1840
+ $[13] = t3;
1841
+ } else t3 = $[13];
1842
+ return t3;
1851
1843
  };
1852
- function _temp$4(event) {
1853
- return event.stopPropagation();
1844
+ function _temp$4(event_0) {
1845
+ return event_0.stopPropagation();
1854
1846
  }
1855
1847
  //#endregion
1856
1848
  //#region src/components/table/headers/HeaderSortLabel.tsx
@@ -2136,10 +2128,10 @@ const fromDateInputValue = (raw) => raw ? (/* @__PURE__ */ new Date(`${raw}T00:0
2136
2128
  const toNumber = (raw) => raw === "" ? "" : Number(raw);
2137
2129
  const pair = (value) => Array.isArray(value) ? [value[0], value[1]] : ["", ""];
2138
2130
  function ColumnFilterField(t0) {
2139
- const $ = c(123);
2140
- if ($[0] !== "5472f0f3f904ec8bb8abe412ebf0d2e19ae251239f8741d21196cc627823b1ce") {
2141
- for (let $i = 0; $i < 123; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
2142
- $[0] = "5472f0f3f904ec8bb8abe412ebf0d2e19ae251239f8741d21196cc627823b1ce";
2131
+ const $ = c(126);
2132
+ if ($[0] !== "70d9525a526f8d7a67ab772f022a6cf530f26a1e99c43a5881011caa57faeb51") {
2133
+ for (let $i = 0; $i < 126; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
2134
+ $[0] = "70d9525a526f8d7a67ab772f022a6cf530f26a1e99c43a5881011caa57faeb51";
2143
2135
  }
2144
2136
  const { column, filter, onChange } = t0;
2145
2137
  const { t } = useTranslation$1();
@@ -2168,399 +2160,416 @@ function ColumnFilterField(t0) {
2168
2160
  $[6] = t3;
2169
2161
  } else t3 = $[6];
2170
2162
  const shared = t3;
2163
+ const [value, setValue] = useState(filter.value);
2164
+ let t4;
2165
+ if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
2166
+ t4 = { wait: 300 };
2167
+ $[7] = t4;
2168
+ } else t4 = $[7];
2169
+ const commit = useDebouncedCallback(onChange, t4);
2170
+ let t5;
2171
+ if ($[8] !== commit) {
2172
+ t5 = (next) => {
2173
+ setValue(next);
2174
+ commit(next);
2175
+ };
2176
+ $[8] = commit;
2177
+ $[9] = t5;
2178
+ } else t5 = $[9];
2179
+ const change = t5;
2171
2180
  if (operator === "isEmpty" || operator === "isNotEmpty") {
2172
- let t4;
2173
- if ($[7] !== t) {
2174
- t4 = t("Layout.Table.NoValueRequired");
2175
- $[7] = t;
2176
- $[8] = t4;
2177
- } else t4 = $[8];
2178
- let t5;
2179
- if ($[9] !== t4) {
2180
- t5 = /* @__PURE__ */ jsx(Typography, {
2181
+ let t6;
2182
+ if ($[10] !== t) {
2183
+ t6 = t("Layout.Table.NoValueRequired");
2184
+ $[10] = t;
2185
+ $[11] = t6;
2186
+ } else t6 = $[11];
2187
+ let t7;
2188
+ if ($[12] !== t6) {
2189
+ t7 = /* @__PURE__ */ jsx(Typography, {
2181
2190
  variant: "body2",
2182
2191
  color: "text.secondary",
2183
- children: t4
2192
+ children: t6
2184
2193
  });
2185
- $[9] = t4;
2186
- $[10] = t5;
2187
- } else t5 = $[10];
2188
- return t5;
2194
+ $[12] = t6;
2195
+ $[13] = t7;
2196
+ } else t7 = $[13];
2197
+ return t7;
2189
2198
  }
2190
2199
  if (operator === "inRange") {
2191
2200
  let T0;
2192
2201
  let T1;
2193
2202
  let from;
2194
2203
  let isDate;
2195
- let t4;
2196
- let t5;
2204
+ let t10;
2205
+ let t11;
2197
2206
  let t6;
2198
2207
  let t7;
2199
2208
  let t8;
2200
2209
  let t9;
2201
2210
  let to;
2202
- if ($[11] !== filter.value || $[12] !== shared || $[13] !== t || $[14] !== variant) {
2203
- [from, to] = pair(filter.value);
2211
+ if ($[14] !== shared || $[15] !== t || $[16] !== value || $[17] !== variant) {
2212
+ [from, to] = pair(value);
2204
2213
  isDate = variant === "date";
2205
2214
  T1 = Stack;
2206
- t8 = "row";
2207
- t9 = 1;
2215
+ t10 = "row";
2216
+ t11 = 1;
2208
2217
  T0 = TextField;
2209
- t4 = shared;
2210
- t5 = isDate ? "date" : "number";
2211
- if ($[26] !== t) {
2212
- t6 = t("Layout.Table.From");
2213
- $[26] = t;
2214
- $[27] = t6;
2215
- } else t6 = $[27];
2216
- t7 = isDate ? toDateInputValue(from) : from ?? "";
2217
- $[11] = filter.value;
2218
- $[12] = shared;
2219
- $[13] = t;
2220
- $[14] = variant;
2221
- $[15] = T0;
2222
- $[16] = T1;
2223
- $[17] = from;
2224
- $[18] = isDate;
2225
- $[19] = t4;
2226
- $[20] = t5;
2227
- $[21] = t6;
2228
- $[22] = t7;
2229
- $[23] = t8;
2230
- $[24] = t9;
2231
- $[25] = to;
2218
+ t6 = shared;
2219
+ t7 = isDate ? "date" : "number";
2220
+ if ($[29] !== t) {
2221
+ t8 = t("Layout.Table.From");
2222
+ $[29] = t;
2223
+ $[30] = t8;
2224
+ } else t8 = $[30];
2225
+ t9 = isDate ? toDateInputValue(from) : from ?? "";
2226
+ $[14] = shared;
2227
+ $[15] = t;
2228
+ $[16] = value;
2229
+ $[17] = variant;
2230
+ $[18] = T0;
2231
+ $[19] = T1;
2232
+ $[20] = from;
2233
+ $[21] = isDate;
2234
+ $[22] = t10;
2235
+ $[23] = t11;
2236
+ $[24] = t6;
2237
+ $[25] = t7;
2238
+ $[26] = t8;
2239
+ $[27] = t9;
2240
+ $[28] = to;
2232
2241
  } else {
2233
- T0 = $[15];
2234
- T1 = $[16];
2235
- from = $[17];
2236
- isDate = $[18];
2237
- t4 = $[19];
2238
- t5 = $[20];
2239
- t6 = $[21];
2240
- t7 = $[22];
2241
- t8 = $[23];
2242
- t9 = $[24];
2243
- to = $[25];
2242
+ T0 = $[18];
2243
+ T1 = $[19];
2244
+ from = $[20];
2245
+ isDate = $[21];
2246
+ t10 = $[22];
2247
+ t11 = $[23];
2248
+ t6 = $[24];
2249
+ t7 = $[25];
2250
+ t8 = $[26];
2251
+ t9 = $[27];
2252
+ to = $[28];
2244
2253
  }
2245
- let t10;
2246
- if ($[28] !== isDate || $[29] !== onChange || $[30] !== to) {
2247
- t10 = (event) => onChange([isDate ? fromDateInputValue(event.target.value) : toNumber(event.target.value), to]);
2248
- $[28] = isDate;
2249
- $[29] = onChange;
2250
- $[30] = to;
2251
- $[31] = t10;
2252
- } else t10 = $[31];
2253
- let t11;
2254
- if ($[32] === Symbol.for("react.memo_cache_sentinel")) {
2255
- t11 = { inputLabel: { shrink: true } };
2256
- $[32] = t11;
2257
- } else t11 = $[32];
2258
2254
  let t12;
2259
- if ($[33] !== T0 || $[34] !== t10 || $[35] !== t4 || $[36] !== t5 || $[37] !== t6 || $[38] !== t7) {
2260
- t12 = /* @__PURE__ */ jsx(T0, {
2261
- ...t4,
2262
- type: t5,
2263
- label: t6,
2264
- value: t7,
2265
- onChange: t10,
2266
- slotProps: t11
2267
- });
2268
- $[33] = T0;
2269
- $[34] = t10;
2270
- $[35] = t4;
2271
- $[36] = t5;
2272
- $[37] = t6;
2273
- $[38] = t7;
2274
- $[39] = t12;
2275
- } else t12 = $[39];
2276
- const t13 = isDate ? "date" : "number";
2255
+ if ($[31] !== change || $[32] !== isDate || $[33] !== to) {
2256
+ t12 = (event) => change([isDate ? fromDateInputValue(event.target.value) : toNumber(event.target.value), to]);
2257
+ $[31] = change;
2258
+ $[32] = isDate;
2259
+ $[33] = to;
2260
+ $[34] = t12;
2261
+ } else t12 = $[34];
2262
+ let t13;
2263
+ if ($[35] === Symbol.for("react.memo_cache_sentinel")) {
2264
+ t13 = { inputLabel: { shrink: true } };
2265
+ $[35] = t13;
2266
+ } else t13 = $[35];
2277
2267
  let t14;
2278
- if ($[40] !== t) {
2279
- t14 = t("Layout.Table.To");
2280
- $[40] = t;
2281
- $[41] = t14;
2282
- } else t14 = $[41];
2283
- let t15;
2284
- if ($[42] !== isDate || $[43] !== to) {
2285
- t15 = isDate ? toDateInputValue(to) : to ?? "";
2286
- $[42] = isDate;
2287
- $[43] = to;
2288
- $[44] = t15;
2289
- } else t15 = $[44];
2268
+ if ($[36] !== T0 || $[37] !== t12 || $[38] !== t6 || $[39] !== t7 || $[40] !== t8 || $[41] !== t9) {
2269
+ t14 = /* @__PURE__ */ jsx(T0, {
2270
+ ...t6,
2271
+ type: t7,
2272
+ label: t8,
2273
+ value: t9,
2274
+ onChange: t12,
2275
+ slotProps: t13
2276
+ });
2277
+ $[36] = T0;
2278
+ $[37] = t12;
2279
+ $[38] = t6;
2280
+ $[39] = t7;
2281
+ $[40] = t8;
2282
+ $[41] = t9;
2283
+ $[42] = t14;
2284
+ } else t14 = $[42];
2285
+ const t15 = isDate ? "date" : "number";
2290
2286
  let t16;
2291
- if ($[45] !== from || $[46] !== isDate || $[47] !== onChange) {
2292
- t16 = (event_0) => onChange([from, isDate ? fromDateInputValue(event_0.target.value) : toNumber(event_0.target.value)]);
2293
- $[45] = from;
2294
- $[46] = isDate;
2295
- $[47] = onChange;
2296
- $[48] = t16;
2297
- } else t16 = $[48];
2287
+ if ($[43] !== t) {
2288
+ t16 = t("Layout.Table.To");
2289
+ $[43] = t;
2290
+ $[44] = t16;
2291
+ } else t16 = $[44];
2298
2292
  let t17;
2299
- if ($[49] === Symbol.for("react.memo_cache_sentinel")) {
2300
- t17 = { inputLabel: { shrink: true } };
2301
- $[49] = t17;
2302
- } else t17 = $[49];
2293
+ if ($[45] !== isDate || $[46] !== to) {
2294
+ t17 = isDate ? toDateInputValue(to) : to ?? "";
2295
+ $[45] = isDate;
2296
+ $[46] = to;
2297
+ $[47] = t17;
2298
+ } else t17 = $[47];
2303
2299
  let t18;
2304
- if ($[50] !== shared || $[51] !== t13 || $[52] !== t14 || $[53] !== t15 || $[54] !== t16) {
2305
- t18 = /* @__PURE__ */ jsx(TextField, {
2300
+ if ($[48] !== change || $[49] !== from || $[50] !== isDate) {
2301
+ t18 = (event_0) => change([from, isDate ? fromDateInputValue(event_0.target.value) : toNumber(event_0.target.value)]);
2302
+ $[48] = change;
2303
+ $[49] = from;
2304
+ $[50] = isDate;
2305
+ $[51] = t18;
2306
+ } else t18 = $[51];
2307
+ let t19;
2308
+ if ($[52] === Symbol.for("react.memo_cache_sentinel")) {
2309
+ t19 = { inputLabel: { shrink: true } };
2310
+ $[52] = t19;
2311
+ } else t19 = $[52];
2312
+ let t20;
2313
+ if ($[53] !== shared || $[54] !== t15 || $[55] !== t16 || $[56] !== t17 || $[57] !== t18) {
2314
+ t20 = /* @__PURE__ */ jsx(TextField, {
2306
2315
  ...shared,
2307
- type: t13,
2308
- label: t14,
2309
- value: t15,
2310
- onChange: t16,
2311
- slotProps: t17
2316
+ type: t15,
2317
+ label: t16,
2318
+ value: t17,
2319
+ onChange: t18,
2320
+ slotProps: t19
2312
2321
  });
2313
- $[50] = shared;
2314
- $[51] = t13;
2315
- $[52] = t14;
2316
- $[53] = t15;
2317
- $[54] = t16;
2318
- $[55] = t18;
2319
- } else t18 = $[55];
2320
- let t19;
2321
- if ($[56] !== T1 || $[57] !== t12 || $[58] !== t18 || $[59] !== t8 || $[60] !== t9) {
2322
- t19 = /* @__PURE__ */ jsxs(T1, {
2323
- direction: t8,
2324
- spacing: t9,
2325
- children: [t12, t18]
2322
+ $[53] = shared;
2323
+ $[54] = t15;
2324
+ $[55] = t16;
2325
+ $[56] = t17;
2326
+ $[57] = t18;
2327
+ $[58] = t20;
2328
+ } else t20 = $[58];
2329
+ let t21;
2330
+ if ($[59] !== T1 || $[60] !== t10 || $[61] !== t11 || $[62] !== t14 || $[63] !== t20) {
2331
+ t21 = /* @__PURE__ */ jsxs(T1, {
2332
+ direction: t10,
2333
+ spacing: t11,
2334
+ children: [t14, t20]
2326
2335
  });
2327
- $[56] = T1;
2328
- $[57] = t12;
2329
- $[58] = t18;
2330
- $[59] = t8;
2331
- $[60] = t9;
2332
- $[61] = t19;
2333
- } else t19 = $[61];
2334
- return t19;
2336
+ $[59] = T1;
2337
+ $[60] = t10;
2338
+ $[61] = t11;
2339
+ $[62] = t14;
2340
+ $[63] = t20;
2341
+ $[64] = t21;
2342
+ } else t21 = $[64];
2343
+ return t21;
2335
2344
  }
2336
2345
  if (operator === "isRelativeToToday") {
2337
- let t4;
2338
- if ($[62] !== t) {
2339
- t4 = t("Layout.Table.DaysFromToday");
2340
- $[62] = t;
2341
- $[63] = t4;
2342
- } else t4 = $[63];
2343
- const t5 = filter.value ?? "";
2344
2346
  let t6;
2345
- if ($[64] !== onChange) {
2346
- t6 = (event_1) => onChange(toNumber(event_1.target.value));
2347
- $[64] = onChange;
2348
- $[65] = t6;
2349
- } else t6 = $[65];
2350
- let t7;
2351
- if ($[66] !== shared || $[67] !== t4 || $[68] !== t5 || $[69] !== t6) {
2352
- t7 = /* @__PURE__ */ jsx(TextField, {
2347
+ if ($[65] !== t) {
2348
+ t6 = t("Layout.Table.DaysFromToday");
2349
+ $[65] = t;
2350
+ $[66] = t6;
2351
+ } else t6 = $[66];
2352
+ const t7 = value ?? "";
2353
+ let t8;
2354
+ if ($[67] !== change) {
2355
+ t8 = (event_1) => change(toNumber(event_1.target.value));
2356
+ $[67] = change;
2357
+ $[68] = t8;
2358
+ } else t8 = $[68];
2359
+ let t9;
2360
+ if ($[69] !== shared || $[70] !== t6 || $[71] !== t7 || $[72] !== t8) {
2361
+ t9 = /* @__PURE__ */ jsx(TextField, {
2353
2362
  ...shared,
2354
2363
  type: "number",
2355
- label: t4,
2356
- value: t5,
2357
- onChange: t6
2364
+ label: t6,
2365
+ value: t7,
2366
+ onChange: t8
2358
2367
  });
2359
- $[66] = shared;
2360
- $[67] = t4;
2361
- $[68] = t5;
2362
- $[69] = t6;
2363
- $[70] = t7;
2364
- } else t7 = $[70];
2365
- return t7;
2368
+ $[69] = shared;
2369
+ $[70] = t6;
2370
+ $[71] = t7;
2371
+ $[72] = t8;
2372
+ $[73] = t9;
2373
+ } else t9 = $[73];
2374
+ return t9;
2366
2375
  }
2367
2376
  if (variant === "select" || variant === "multi-select") {
2368
2377
  let T0;
2369
- let t4;
2370
- let t5;
2378
+ let t10;
2379
+ let t11;
2371
2380
  let t6;
2372
2381
  let t7;
2373
2382
  let t8;
2374
2383
  let t9;
2375
- if ($[71] !== column || $[72] !== filter.value || $[73] !== variant) {
2384
+ if ($[74] !== column || $[75] !== value || $[76] !== variant) {
2376
2385
  const options = resolveOptions(column);
2377
2386
  const multiple = variant === "multi-select";
2378
- let t10;
2379
- if ($[81] !== filter.value) {
2380
- t10 = Array.isArray(filter.value) ? filter.value : [];
2381
- $[81] = filter.value;
2382
- $[82] = t10;
2383
- } else t10 = $[82];
2384
- const selected = t10;
2387
+ let t12;
2388
+ if ($[84] !== value) {
2389
+ t12 = Array.isArray(value) ? value : [];
2390
+ $[84] = value;
2391
+ $[85] = t12;
2392
+ } else t12 = $[85];
2393
+ const selected = t12;
2385
2394
  T0 = Autocomplete;
2386
- t4 = "small";
2387
- t5 = true;
2388
- t6 = multiple;
2389
- t7 = options;
2395
+ t6 = "small";
2396
+ t7 = true;
2390
2397
  t8 = multiple;
2391
- t9 = multiple ? options.filter((option) => selected.includes(option.value)) : options.find((option_0) => option_0.value === filter.value) ?? null;
2392
- $[71] = column;
2393
- $[72] = filter.value;
2394
- $[73] = variant;
2395
- $[74] = T0;
2396
- $[75] = t4;
2397
- $[76] = t5;
2398
- $[77] = t6;
2399
- $[78] = t7;
2400
- $[79] = t8;
2401
- $[80] = t9;
2398
+ t9 = options;
2399
+ t10 = multiple;
2400
+ t11 = multiple ? options.filter((option) => selected.includes(option.value)) : options.find((option_0) => option_0.value === value) ?? null;
2401
+ $[74] = column;
2402
+ $[75] = value;
2403
+ $[76] = variant;
2404
+ $[77] = T0;
2405
+ $[78] = t10;
2406
+ $[79] = t11;
2407
+ $[80] = t6;
2408
+ $[81] = t7;
2409
+ $[82] = t8;
2410
+ $[83] = t9;
2402
2411
  } else {
2403
- T0 = $[74];
2404
- t4 = $[75];
2405
- t5 = $[76];
2406
- t6 = $[77];
2407
- t7 = $[78];
2408
- t8 = $[79];
2409
- t9 = $[80];
2412
+ T0 = $[77];
2413
+ t10 = $[78];
2414
+ t11 = $[79];
2415
+ t6 = $[80];
2416
+ t7 = $[81];
2417
+ t8 = $[82];
2418
+ t9 = $[83];
2410
2419
  }
2411
- let t10;
2412
- if ($[83] !== onChange) {
2413
- t10 = (_, next) => onChange(Array.isArray(next) ? next.map(_temp3) : next?.value ?? void 0);
2414
- $[83] = onChange;
2415
- $[84] = t10;
2416
- } else t10 = $[84];
2417
- let t11;
2418
- if ($[85] !== t) {
2419
- t11 = (params) => /* @__PURE__ */ jsx(TextField, {
2420
+ let t12;
2421
+ if ($[86] !== change) {
2422
+ t12 = (_, next_0) => change(Array.isArray(next_0) ? next_0.map(_temp3) : next_0?.value ?? void 0);
2423
+ $[86] = change;
2424
+ $[87] = t12;
2425
+ } else t12 = $[87];
2426
+ let t13;
2427
+ if ($[88] !== t) {
2428
+ t13 = (params) => /* @__PURE__ */ jsx(TextField, {
2420
2429
  ...params,
2421
2430
  size: "small",
2422
2431
  label: t("Layout.Table.Value")
2423
2432
  });
2424
- $[85] = t;
2425
- $[86] = t11;
2426
- } else t11 = $[86];
2427
- let t12;
2428
- if ($[87] !== T0 || $[88] !== t10 || $[89] !== t11 || $[90] !== t4 || $[91] !== t5 || $[92] !== t6 || $[93] !== t7 || $[94] !== t8 || $[95] !== t9) {
2429
- t12 = /* @__PURE__ */ jsx(T0, {
2430
- size: t4,
2431
- fullWidth: t5,
2432
- multiple: t6,
2433
- options: t7,
2434
- disableCloseOnSelect: t8,
2435
- value: t9,
2433
+ $[88] = t;
2434
+ $[89] = t13;
2435
+ } else t13 = $[89];
2436
+ let t14;
2437
+ if ($[90] !== T0 || $[91] !== t10 || $[92] !== t11 || $[93] !== t12 || $[94] !== t13 || $[95] !== t6 || $[96] !== t7 || $[97] !== t8 || $[98] !== t9) {
2438
+ t14 = /* @__PURE__ */ jsx(T0, {
2439
+ size: t6,
2440
+ fullWidth: t7,
2441
+ multiple: t8,
2442
+ options: t9,
2443
+ disableCloseOnSelect: t10,
2444
+ value: t11,
2436
2445
  isOptionEqualToValue: _temp$2,
2437
2446
  getOptionLabel: _temp2,
2438
- onChange: t10,
2439
- renderInput: t11
2447
+ onChange: t12,
2448
+ renderInput: t13
2440
2449
  });
2441
- $[87] = T0;
2442
- $[88] = t10;
2443
- $[89] = t11;
2444
- $[90] = t4;
2445
- $[91] = t5;
2446
- $[92] = t6;
2447
- $[93] = t7;
2448
- $[94] = t8;
2449
- $[95] = t9;
2450
- $[96] = t12;
2451
- } else t12 = $[96];
2452
- return t12;
2450
+ $[90] = T0;
2451
+ $[91] = t10;
2452
+ $[92] = t11;
2453
+ $[93] = t12;
2454
+ $[94] = t13;
2455
+ $[95] = t6;
2456
+ $[96] = t7;
2457
+ $[97] = t8;
2458
+ $[98] = t9;
2459
+ $[99] = t14;
2460
+ } else t14 = $[99];
2461
+ return t14;
2453
2462
  }
2454
2463
  if (variant === "boolean") {
2455
- const t4 = typeof filter.value === "boolean" ? String(filter.value) : "";
2456
- let t5;
2457
- if ($[97] !== onChange) {
2458
- t5 = (event_2) => onChange(event_2.target.value === "" ? void 0 : event_2.target.value === "true");
2459
- $[97] = onChange;
2460
- $[98] = t5;
2461
- } else t5 = $[98];
2462
- let t6;
2464
+ const t6 = typeof value === "boolean" ? String(value) : "";
2463
2465
  let t7;
2466
+ if ($[100] !== change) {
2467
+ t7 = (event_2) => change(event_2.target.value === "" ? void 0 : event_2.target.value === "true");
2468
+ $[100] = change;
2469
+ $[101] = t7;
2470
+ } else t7 = $[101];
2471
+ let t10;
2464
2472
  let t8;
2465
- if ($[99] === Symbol.for("react.memo_cache_sentinel")) {
2466
- t6 = /* @__PURE__ */ jsx(MenuItem, {
2473
+ let t9;
2474
+ if ($[102] === Symbol.for("react.memo_cache_sentinel")) {
2475
+ t8 = /* @__PURE__ */ jsx(MenuItem, {
2467
2476
  value: "",
2468
2477
  children: "—"
2469
2478
  });
2470
- t7 = /* @__PURE__ */ jsx(MenuItem, {
2479
+ t9 = /* @__PURE__ */ jsx(MenuItem, {
2471
2480
  value: "true",
2472
2481
  children: "✓"
2473
2482
  });
2474
- t8 = /* @__PURE__ */ jsx(MenuItem, {
2483
+ t10 = /* @__PURE__ */ jsx(MenuItem, {
2475
2484
  value: "false",
2476
2485
  children: "✗"
2477
2486
  });
2478
- $[99] = t6;
2479
- $[100] = t7;
2480
- $[101] = t8;
2487
+ $[102] = t10;
2488
+ $[103] = t8;
2489
+ $[104] = t9;
2481
2490
  } else {
2482
- t6 = $[99];
2483
- t7 = $[100];
2484
- t8 = $[101];
2491
+ t10 = $[102];
2492
+ t8 = $[103];
2493
+ t9 = $[104];
2485
2494
  }
2486
- let t9;
2487
- if ($[102] !== shared || $[103] !== t4 || $[104] !== t5) {
2488
- t9 = /* @__PURE__ */ jsxs(TextField, {
2495
+ let t11;
2496
+ if ($[105] !== shared || $[106] !== t6 || $[107] !== t7) {
2497
+ t11 = /* @__PURE__ */ jsxs(TextField, {
2489
2498
  ...shared,
2490
2499
  select: true,
2491
- value: t4,
2492
- onChange: t5,
2500
+ value: t6,
2501
+ onChange: t7,
2493
2502
  children: [
2494
- t6,
2495
- t7,
2496
- t8
2503
+ t8,
2504
+ t9,
2505
+ t10
2497
2506
  ]
2498
2507
  });
2499
- $[102] = shared;
2500
- $[103] = t4;
2501
- $[104] = t5;
2502
- $[105] = t9;
2503
- } else t9 = $[105];
2504
- return t9;
2508
+ $[105] = shared;
2509
+ $[106] = t6;
2510
+ $[107] = t7;
2511
+ $[108] = t11;
2512
+ } else t11 = $[108];
2513
+ return t11;
2505
2514
  }
2506
2515
  if (variant === "date") {
2507
- let t4;
2508
- if ($[106] !== filter.value) {
2509
- t4 = toDateInputValue(filter.value);
2510
- $[106] = filter.value;
2511
- $[107] = t4;
2512
- } else t4 = $[107];
2513
- let t5;
2514
- if ($[108] !== onChange) {
2515
- t5 = (event_3) => onChange(fromDateInputValue(event_3.target.value) ?? "");
2516
- $[108] = onChange;
2517
- $[109] = t5;
2518
- } else t5 = $[109];
2519
2516
  let t6;
2520
- if ($[110] === Symbol.for("react.memo_cache_sentinel")) {
2521
- t6 = { inputLabel: { shrink: true } };
2517
+ if ($[109] !== value) {
2518
+ t6 = toDateInputValue(value);
2519
+ $[109] = value;
2522
2520
  $[110] = t6;
2523
2521
  } else t6 = $[110];
2524
2522
  let t7;
2525
- if ($[111] !== shared || $[112] !== t4 || $[113] !== t5) {
2526
- t7 = /* @__PURE__ */ jsx(TextField, {
2523
+ if ($[111] !== change) {
2524
+ t7 = (event_3) => change(fromDateInputValue(event_3.target.value) ?? "");
2525
+ $[111] = change;
2526
+ $[112] = t7;
2527
+ } else t7 = $[112];
2528
+ let t8;
2529
+ if ($[113] === Symbol.for("react.memo_cache_sentinel")) {
2530
+ t8 = { inputLabel: { shrink: true } };
2531
+ $[113] = t8;
2532
+ } else t8 = $[113];
2533
+ let t9;
2534
+ if ($[114] !== shared || $[115] !== t6 || $[116] !== t7) {
2535
+ t9 = /* @__PURE__ */ jsx(TextField, {
2527
2536
  ...shared,
2528
2537
  type: "date",
2529
- value: t4,
2530
- onChange: t5,
2531
- slotProps: t6
2538
+ value: t6,
2539
+ onChange: t7,
2540
+ slotProps: t8
2532
2541
  });
2533
- $[111] = shared;
2534
- $[112] = t4;
2535
- $[113] = t5;
2536
- $[114] = t7;
2537
- } else t7 = $[114];
2538
- return t7;
2542
+ $[114] = shared;
2543
+ $[115] = t6;
2544
+ $[116] = t7;
2545
+ $[117] = t9;
2546
+ } else t9 = $[117];
2547
+ return t9;
2539
2548
  }
2540
- const t4 = variant === "number" ? "number" : "text";
2541
- const t5 = filter.value ?? "";
2542
- let t6;
2543
- if ($[115] !== onChange || $[116] !== variant) {
2544
- t6 = (event_4) => onChange(variant === "number" ? toNumber(event_4.target.value) : event_4.target.value);
2545
- $[115] = onChange;
2546
- $[116] = variant;
2547
- $[117] = t6;
2548
- } else t6 = $[117];
2549
- let t7;
2550
- if ($[118] !== shared || $[119] !== t4 || $[120] !== t5 || $[121] !== t6) {
2551
- t7 = /* @__PURE__ */ jsx(TextField, {
2549
+ const t6 = variant === "number" ? "number" : "text";
2550
+ const t7 = value ?? "";
2551
+ let t8;
2552
+ if ($[118] !== change || $[119] !== variant) {
2553
+ t8 = (event_4) => change(variant === "number" ? toNumber(event_4.target.value) : event_4.target.value);
2554
+ $[118] = change;
2555
+ $[119] = variant;
2556
+ $[120] = t8;
2557
+ } else t8 = $[120];
2558
+ let t9;
2559
+ if ($[121] !== shared || $[122] !== t6 || $[123] !== t7 || $[124] !== t8) {
2560
+ t9 = /* @__PURE__ */ jsx(TextField, {
2552
2561
  ...shared,
2553
- type: t4,
2554
- value: t5,
2555
- onChange: t6
2562
+ type: t6,
2563
+ value: t7,
2564
+ onChange: t8
2556
2565
  });
2557
- $[118] = shared;
2558
- $[119] = t4;
2559
- $[120] = t5;
2560
- $[121] = t6;
2561
- $[122] = t7;
2562
- } else t7 = $[122];
2563
- return t7;
2566
+ $[121] = shared;
2567
+ $[122] = t6;
2568
+ $[123] = t7;
2569
+ $[124] = t8;
2570
+ $[125] = t9;
2571
+ } else t9 = $[125];
2572
+ return t9;
2564
2573
  }
2565
2574
  function _temp3(option_3) {
2566
2575
  return option_3.value;
@@ -2752,7 +2761,7 @@ const FiltersMenu = () => {
2752
2761
  column: column_1,
2753
2762
  filter: filter_1,
2754
2763
  onChange: (value) => update(filter_1.filterId, { value })
2755
- })
2764
+ }, `${column_1.id}:${filter_1.operator}`)
2756
2765
  })
2757
2766
  ]
2758
2767
  }, filter_1.filterId);
@@ -3224,9 +3233,9 @@ function _temp(column) {
3224
3233
  /** Vertical rule with the MUI X toolbar proportions: half height, 4px gutters. */
3225
3234
  const ToolbarDivider = () => {
3226
3235
  const $ = c(2);
3227
- if ($[0] !== "f0b66427050989a7d55e85e65bda2cbd8971c5fb24eadc65102729994051490d") {
3236
+ if ($[0] !== "497215ef881a95c5011d67178e69e87725e02ba64145c5f5a1ed9037e5a5a6c7") {
3228
3237
  for (let $i = 0; $i < 2; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
3229
- $[0] = "f0b66427050989a7d55e85e65bda2cbd8971c5fb24eadc65102729994051490d";
3238
+ $[0] = "497215ef881a95c5011d67178e69e87725e02ba64145c5f5a1ed9037e5a5a6c7";
3230
3239
  }
3231
3240
  let t0;
3232
3241
  if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
@@ -3244,9 +3253,9 @@ const ToolbarDivider = () => {
3244
3253
  };
3245
3254
  const Toolbar$1 = (t0) => {
3246
3255
  const $ = c(29);
3247
- if ($[0] !== "f0b66427050989a7d55e85e65bda2cbd8971c5fb24eadc65102729994051490d") {
3256
+ if ($[0] !== "497215ef881a95c5011d67178e69e87725e02ba64145c5f5a1ed9037e5a5a6c7") {
3248
3257
  for (let $i = 0; $i < 29; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
3249
- $[0] = "f0b66427050989a7d55e85e65bda2cbd8971c5fb24eadc65102729994051490d";
3258
+ $[0] = "497215ef881a95c5011d67178e69e87725e02ba64145c5f5a1ed9037e5a5a6c7";
3250
3259
  }
3251
3260
  const { title, actions, disableColumnFilter, disableColumnSelector, disableSearch } = t0;
3252
3261
  const table = useTableContext();
@@ -3284,7 +3293,7 @@ const Toolbar$1 = (t0) => {
3284
3293
  t3 = title && /* @__PURE__ */ jsx(Typography, {
3285
3294
  variant: "body1",
3286
3295
  noWrap: true,
3287
- sx: { fontWeight: "medium" },
3296
+ sx: { fontWeight: "bold" },
3288
3297
  children: title
3289
3298
  });
3290
3299
  $[3] = title;