@economic/taco 2.27.2 → 2.28.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. package/dist/components/Calendar/Calendar.d.ts +4 -9
  2. package/dist/components/Checkbox/Checkbox.d.ts +2 -2
  3. package/dist/components/Icon/components/LinkExternal.d.ts +3 -0
  4. package/dist/components/Icon/components/index.d.ts +1 -1
  5. package/dist/components/Input/Input.d.ts +1 -1
  6. package/dist/components/List/List.d.ts +28 -0
  7. package/dist/components/List/components/Button.d.ts +8 -0
  8. package/dist/components/List/components/Collapsible.d.ts +10 -0
  9. package/dist/components/List/components/Group.d.ts +7 -0
  10. package/dist/components/List/components/Item.d.ts +22 -0
  11. package/dist/components/List/components/Link.d.ts +8 -0
  12. package/dist/components/List/components/Toggle.d.ts +8 -0
  13. package/dist/components/Menu/components/Item.d.ts +1 -1
  14. package/dist/components/Menu/components/Link.d.ts +1 -1
  15. package/dist/components/Navigation2/components/Link.d.ts +1 -1
  16. package/dist/components/Select2/components/Option.d.ts +2 -2
  17. package/dist/components/Select2/components/Search.d.ts +1 -1
  18. package/dist/components/Switch/Switch.d.ts +2 -2
  19. package/dist/components/Tag/Tag.d.ts +1 -1
  20. package/dist/esm/index.css +63 -51
  21. package/dist/esm/packages/taco/src/components/Calendar/Calendar.js +62 -39
  22. package/dist/esm/packages/taco/src/components/Calendar/Calendar.js.map +1 -1
  23. package/dist/esm/packages/taco/src/components/Checkbox/Checkbox.js.map +1 -1
  24. package/dist/esm/packages/taco/src/components/Datepicker/Datepicker.js.map +1 -1
  25. package/dist/esm/packages/taco/src/components/Drawer/components/Content.js +1 -1
  26. package/dist/esm/packages/taco/src/components/Drawer/components/Content.js.map +1 -1
  27. package/dist/esm/packages/taco/src/components/Icon/components/LinkExternal.js +22 -0
  28. package/dist/esm/packages/taco/src/components/Icon/components/LinkExternal.js.map +1 -0
  29. package/dist/esm/packages/taco/src/components/Icon/components/index.js +2 -0
  30. package/dist/esm/packages/taco/src/components/Icon/components/index.js.map +1 -1
  31. package/dist/esm/packages/taco/src/components/List/List.js +21 -0
  32. package/dist/esm/packages/taco/src/components/List/List.js.map +1 -0
  33. package/dist/esm/packages/taco/src/components/List/components/Button.js +12 -0
  34. package/dist/esm/packages/taco/src/components/List/components/Button.js.map +1 -0
  35. package/dist/esm/packages/taco/src/components/List/components/Collapsible.js +30 -0
  36. package/dist/esm/packages/taco/src/components/List/components/Collapsible.js.map +1 -0
  37. package/dist/esm/packages/taco/src/components/List/components/Group.js +11 -0
  38. package/dist/esm/packages/taco/src/components/List/components/Group.js.map +1 -0
  39. package/dist/esm/packages/taco/src/components/List/components/Item.js +40 -0
  40. package/dist/esm/packages/taco/src/components/List/components/Item.js.map +1 -0
  41. package/dist/esm/packages/taco/src/components/List/components/Link.js +17 -0
  42. package/dist/esm/packages/taco/src/components/List/components/Link.js.map +1 -0
  43. package/dist/esm/packages/taco/src/components/List/components/Toggle.js +94 -0
  44. package/dist/esm/packages/taco/src/components/List/components/Toggle.js.map +1 -0
  45. package/dist/esm/packages/taco/src/components/Provider/Localization.js +2 -2
  46. package/dist/esm/packages/taco/src/components/Provider/Localization.js.map +1 -1
  47. package/dist/esm/packages/taco/src/components/Switch/Switch.js.map +1 -1
  48. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/EditingControlCell.js +1 -1
  49. package/dist/esm/packages/taco/src/index.js +2 -1
  50. package/dist/esm/packages/taco/src/index.js.map +1 -1
  51. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Body/Body.js +1 -1
  52. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Body/Body.js.map +1 -1
  53. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Selection.js +2 -2
  54. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Selection.js.map +1 -1
  55. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/BuiltIns/SkeletonRow.js +1 -1
  56. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/BuiltIns/SkeletonRow.js.map +1 -1
  57. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterValue.js +1 -1
  58. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Print/Print.js +1 -1
  59. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Print/Print.js.map +1 -1
  60. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Search/Search.js +2 -2
  61. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Search/Search.js.map +1 -1
  62. package/dist/esm/packages/taco/src/primitives/Table/types.js.map +1 -1
  63. package/dist/esm/packages/taco/src/primitives/Table/useTableDataLoader.js +12 -45
  64. package/dist/esm/packages/taco/src/primitives/Table/useTableDataLoader.js.map +1 -1
  65. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableSearchListener.js +3 -7
  66. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableSearchListener.js.map +1 -1
  67. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableServerLoadingListener.js +2 -1
  68. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableServerLoadingListener.js.map +1 -1
  69. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/useTableManager.js +1 -1
  70. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/useTableManager.js.map +1 -1
  71. package/dist/index.css +63 -51
  72. package/dist/index.d.ts +1 -0
  73. package/dist/primitives/Table/types.d.ts +7 -6
  74. package/dist/primitives/Table/useTableDataLoader.d.ts +4 -5
  75. package/dist/primitives/Table/useTableManager/listeners/useTableSearchListener.d.ts +1 -2
  76. package/dist/taco.cjs.development.js +366 -179
  77. package/dist/taco.cjs.development.js.map +1 -1
  78. package/dist/taco.cjs.production.min.js +1 -1
  79. package/dist/taco.cjs.production.min.js.map +1 -1
  80. package/package.json +4 -3
@@ -10,7 +10,7 @@ var cn = _interopDefault(require('clsx'));
10
10
  var AlertDialogPrimitive = require('@radix-ui/react-alert-dialog');
11
11
  var AccordionPrimitive = require('@radix-ui/react-accordion');
12
12
  var TooltipPrimitive = require('@radix-ui/react-tooltip');
13
- var ReactDayPicker = _interopDefault(require('react-day-picker'));
13
+ var reactDayPicker = require('react-day-picker');
14
14
  var CheckboxPrimitive = require('@radix-ui/react-checkbox');
15
15
  var uuid = require('uuid');
16
16
  var PopoverPrimitive = require('@radix-ui/react-popover');
@@ -23,9 +23,10 @@ var focus = require('@react-aria/focus');
23
23
  var ScrollAreaPrimitive = require('@radix-ui/react-scroll-area');
24
24
  var reactUseControllableState = require('@radix-ui/react-use-controllable-state');
25
25
  var HoverCardPrimitive = require('@radix-ui/react-hover-card');
26
+ var CollapsiblePrimitive = require('@radix-ui/react-collapsible');
27
+ var PrimitiveSwitch = require('@radix-ui/react-switch');
26
28
  var DropdownMenuPrimitive = require('@radix-ui/react-dropdown-menu');
27
29
  var RadioGroupPrimitive = require('@radix-ui/react-radio-group');
28
- var PrimitiveSwitch = require('@radix-ui/react-switch');
29
30
  var reactPortal = require('@radix-ui/react-portal');
30
31
  var reactTable = require('@tanstack/react-table');
31
32
  var reactVirtual = require('@tanstack/react-virtual');
@@ -2126,6 +2127,24 @@ function IconLine(props, svgRef) {
2126
2127
  }
2127
2128
  var Line = /*#__PURE__*/React.forwardRef(IconLine);
2128
2129
 
2130
+ function IconLinkExternal(props, svgRef) {
2131
+ return /*#__PURE__*/React.createElement("svg", Object.assign({
2132
+ xmlns: "http://www.w3.org/2000/svg",
2133
+ fill: "none",
2134
+ viewBox: "0 0 24 24",
2135
+ ref: svgRef
2136
+ }, props), /*#__PURE__*/React.createElement("path", {
2137
+ fill: "currentColor",
2138
+ d: "M11 5.5H7.25A1.75 1.75 0 005.5 7.25v9.5c0 .966.784 1.75 1.75 1.75h9.5a1.75 1.75 0 001.75-1.75V13H17v3.75a.25.25 0 01-.25.25h-9.5a.25.25 0 01-.25-.25v-9.5A.25.25 0 017.25 7H11V5.5z"
2139
+ }), /*#__PURE__*/React.createElement("path", {
2140
+ fill: "currentColor",
2141
+ fillRule: "evenodd",
2142
+ d: "M17.75 5.5a.75.75 0 01.743.648l.007.102v3.5a.75.75 0 01-1.493.102L17 9.75V8.06l-3.97 3.97a.75.75 0 01-1.133-.976l.073-.084L15.938 7H14.25a.75.75 0 01-.743-.648L13.5 6.25a.75.75 0 01.648-.743l.102-.007h3.5z",
2143
+ clipRule: "evenodd"
2144
+ }));
2145
+ }
2146
+ var LinkExternal = /*#__PURE__*/React.forwardRef(IconLinkExternal);
2147
+
2129
2148
  function IconListBulleted(props, svgRef) {
2130
2149
  return /*#__PURE__*/React.createElement("svg", Object.assign({
2131
2150
  xmlns: "http://www.w3.org/2000/svg",
@@ -3520,6 +3539,7 @@ const icons = {
3520
3539
  'ledger-card': LedgerCard,
3521
3540
  lightbulb: Lightbulb,
3522
3541
  line: Line,
3542
+ 'link-external': LinkExternal,
3523
3543
  'list-bulleted': ListBulleted,
3524
3544
  'list-search': ListSearch,
3525
3545
  list: List,
@@ -4330,8 +4350,8 @@ const defaultLocalisationTexts = {
4330
4350
  },
4331
4351
  calendar: {
4332
4352
  months: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
4333
- weekdaysShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
4334
- weekdays: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
4353
+ weekdaysShort: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
4354
+ weekdays: ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'],
4335
4355
  actions: {
4336
4356
  previousMonth: 'Previous month',
4337
4357
  nextMonth: 'Next month',
@@ -4722,8 +4742,6 @@ for (let i = thisYear - 50; i <= thisYear + 10; i += 1) {
4722
4742
  }
4723
4743
  const Navbar = /*#__PURE__*/React.memo(({
4724
4744
  onMonthChange,
4725
- onNextClick,
4726
- onPreviousClick,
4727
4745
  value = new Date()
4728
4746
  }) => {
4729
4747
  const {
@@ -4734,15 +4752,21 @@ const Navbar = /*#__PURE__*/React.memo(({
4734
4752
  }
4735
4753
  }
4736
4754
  } = useLocalization();
4737
- const handleChange = function handleChange(event) {
4755
+ const handleChange = event => {
4738
4756
  const {
4739
4757
  year,
4740
4758
  month
4741
4759
  } = event.target.form;
4742
4760
  onMonthChange(new Date(year.value, month.value));
4743
4761
  };
4762
+ const onNextClick = () => {
4763
+ onMonthChange(new Date(value.getFullYear(), value.getMonth() + 1, value.getDay()));
4764
+ };
4765
+ const onPreviousClick = () => {
4766
+ onMonthChange(new Date(value.getFullYear(), value.getMonth() - 1, value.getDay()));
4767
+ };
4744
4768
  return /*#__PURE__*/React.createElement("div", {
4745
- className: "mb-1 flex items-center justify-between"
4769
+ className: "mb-3 flex items-center justify-between"
4746
4770
  }, /*#__PURE__*/React.createElement("form", {
4747
4771
  className: "inline-flex space-x-1"
4748
4772
  }, /*#__PURE__*/React.createElement("select", {
@@ -4767,7 +4791,7 @@ const Navbar = /*#__PURE__*/React.memo(({
4767
4791
  appearance: "discrete",
4768
4792
  icon: "chevron-left",
4769
4793
  "aria-label": actions.previousMonth,
4770
- onClick: () => onPreviousClick(),
4794
+ onClick: onPreviousClick,
4771
4795
  rounded: true
4772
4796
  })), /*#__PURE__*/React.createElement(Tooltip, {
4773
4797
  title: actions.nextMonth
@@ -4775,22 +4799,40 @@ const Navbar = /*#__PURE__*/React.memo(({
4775
4799
  appearance: "discrete",
4776
4800
  icon: "chevron-right",
4777
4801
  "aria-label": actions.nextMonth,
4778
- onClick: () => onNextClick(),
4802
+ onClick: onNextClick,
4779
4803
  rounded: true
4780
4804
  }))));
4781
4805
  });
4782
- const Calendar$1 = /*#__PURE__*/React.forwardRef(function Calendar(props, ref) {
4806
+ const TodayButton = ({
4807
+ handleChange
4808
+ }) => {
4809
+ const {
4810
+ texts
4811
+ } = useLocalization();
4812
+ const handleCalendarClickToday = () => {
4813
+ const today = new Date();
4814
+ // set to midday to avoid UTC offset causing dates to be mismatched server side
4815
+ today.setHours(12);
4816
+ today.setMinutes(0);
4817
+ today.setSeconds(0);
4818
+ handleChange(today);
4819
+ };
4820
+ return /*#__PURE__*/React.createElement(reactDayPicker.Button, {
4821
+ className: "cursor-pointer border-none bg-transparent text-xs text-blue-500 hover:text-blue-300",
4822
+ onClick: handleCalendarClickToday
4823
+ }, texts.calendar.actions.today);
4824
+ };
4825
+ const Calendar$1 = props => {
4783
4826
  const {
4784
4827
  onChange: handleChange,
4785
4828
  value,
4786
4829
  disabledDays,
4787
4830
  ...otherProps
4788
4831
  } = props;
4832
+ const [visibleMonth, setVisibleMonth] = React.useState(value !== null && value !== void 0 ? value : new Date());
4789
4833
  const {
4790
- locale,
4791
4834
  texts
4792
4835
  } = useLocalization();
4793
- const [visibleMonth, setVisibleMonth] = React.useState(value !== null && value !== void 0 ? value : new Date());
4794
4836
  React.useEffect(() => {
4795
4837
  if (visibleMonth !== value) {
4796
4838
  setVisibleMonth(value !== null && value !== void 0 ? value : new Date());
@@ -4803,40 +4845,41 @@ const Calendar$1 = /*#__PURE__*/React.forwardRef(function Calendar(props, ref) {
4803
4845
  }
4804
4846
  handleChange(date, event);
4805
4847
  };
4806
- const handleCalendarClickToday = () => {
4807
- const today = new Date();
4808
- // set to midday to avoid UTC offset causing dates to be mismatched server side
4809
- today.setHours(12);
4810
- today.setMinutes(0);
4811
- today.setSeconds(0);
4812
- handleChange(today);
4813
- };
4814
4848
  const className = cn('flex bg-white text-xs p-2', otherProps.className);
4815
4849
  return /*#__PURE__*/React.createElement("div", {
4816
4850
  "data-taco": "calendar"
4817
- }, /*#__PURE__*/React.createElement(ReactDayPicker, Object.assign({}, otherProps, {
4851
+ }, /*#__PURE__*/React.createElement(reactDayPicker.DayPicker, {
4818
4852
  className: className,
4853
+ captionLayout: "dropdown-buttons",
4854
+ weekStartsOn: 1,
4819
4855
  month: visibleMonth,
4820
- selectedDays: value,
4821
- locale: locale.substring(0, 2),
4822
- firstDayOfWeek: 1,
4823
- months: texts.calendar.months,
4824
- weekdaysLong: texts.calendar.weekdays,
4825
- weekdaysShort: texts.calendar.weekdaysShort,
4826
- navbarElement: navProps => /*#__PURE__*/React.createElement(Navbar, Object.assign({}, navProps, {
4827
- onMonthChange: setVisibleMonth,
4828
- value: visibleMonth
4829
- })),
4830
- onDayClick: handleDayClick,
4831
- onMonthChange: setVisibleMonth,
4832
- onTodayButtonClick: handleCalendarClickToday,
4833
- captionElement: () => null,
4834
- todayButton: texts.calendar.actions.today,
4835
4856
  numberOfMonths: 1,
4836
- ref: ref,
4837
- disabledDays: disabledDays
4838
- })));
4839
- });
4857
+ components: {
4858
+ Caption: props => /*#__PURE__*/React.createElement(Navbar, Object.assign({}, props, {
4859
+ onMonthChange: setVisibleMonth,
4860
+ value: visibleMonth
4861
+ })),
4862
+ Footer: () => ( /*#__PURE__*/React.createElement("tfoot", null, /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("td", {
4863
+ colSpan: 7,
4864
+ className: "text-center"
4865
+ }, /*#__PURE__*/React.createElement(TodayButton, {
4866
+ handleChange: handleChange
4867
+ }))))),
4868
+ HeadRow: () => ( /*#__PURE__*/React.createElement("tr", null, texts.calendar.weekdaysShort.map((weekday, index) => {
4869
+ const label = texts.calendar.weekdays && texts.calendar.weekdays[index];
4870
+ return /*#__PURE__*/React.createElement("th", {
4871
+ key: weekday,
4872
+ "aria-label": label,
4873
+ className: "rdp-head_cell",
4874
+ title: label
4875
+ }, weekday);
4876
+ })))
4877
+ },
4878
+ onDayClick: handleDayClick,
4879
+ selected: value,
4880
+ disabled: disabledDays
4881
+ }));
4882
+ };
4840
4883
 
4841
4884
  const isElementTruncated = targetElement => {
4842
4885
  if (targetElement !== null) {
@@ -6716,7 +6759,7 @@ const Title$2 = /*#__PURE__*/React__default.forwardRef(function DrawerTitle(prop
6716
6759
  * where we might want to hide the grey separator. For this reason separator was rendedr with using of classNames,
6717
6760
  * so it can be easily overriden in exceptional scenarious.
6718
6761
  * */
6719
- const cName = cn('grow-0 py-4 pl-4 justyfy-self-start mb-0 border-b-[1px] border-grey-300', className);
6762
+ const cName = cn('grow-0 py-4 pl-4 justify-self-start mb-0 border-b-[1px] border-grey-300 flex items-center', className);
6720
6763
  return /*#__PURE__*/React__default.createElement(DialogPrimitive.Title, Object.assign({
6721
6764
  className: cName
6722
6765
  }, otherProps, {
@@ -7252,6 +7295,228 @@ const HoverCard = props => {
7252
7295
  HoverCard.Trigger = Trigger$5;
7253
7296
  HoverCard.Content = Content$7;
7254
7297
 
7298
+ const Group$1 = /*#__PURE__*/React__default.forwardRef(function Group(props, ref) {
7299
+ return /*#__PURE__*/React__default.createElement("div", Object.assign({}, props, {
7300
+ "data-taco": "list-group",
7301
+ ref: ref
7302
+ }));
7303
+ });
7304
+
7305
+ const Item$1 = /*#__PURE__*/React__default.forwardRef(function Item(props, ref) {
7306
+ const {
7307
+ as: Tag = 'div',
7308
+ control,
7309
+ description,
7310
+ disabled,
7311
+ icon,
7312
+ color,
7313
+ tabIndex = 0,
7314
+ title,
7315
+ ...attributes
7316
+ } = props;
7317
+ const iconClassName = cn('flex shrink-0 h-10 w-10 items-center justify-center rounded-md border border-black/10', getSubtleColorShadeClasses(color !== null && color !== void 0 ? color : 'transparent'));
7318
+ return /*#__PURE__*/React__default.createElement(Tag, Object.assign({}, attributes, {
7319
+ "aria-disabled": disabled ? true : undefined,
7320
+ "data-taco": "list-item",
7321
+ ref: ref,
7322
+ tabIndex: disabled ? -1 : tabIndex
7323
+ }), icon ? ( /*#__PURE__*/React__default.createElement("span", {
7324
+ className: iconClassName
7325
+ }, /*#__PURE__*/React__default.createElement(Icon, {
7326
+ name: icon
7327
+ }))) : null, /*#__PURE__*/React__default.createElement("div", {
7328
+ className: "flex grow flex-col justify-center"
7329
+ }, /*#__PURE__*/React__default.createElement("span", {
7330
+ className: "font-bold text-black"
7331
+ }, title), description ? /*#__PURE__*/React__default.createElement("span", {
7332
+ className: "text-grey-700"
7333
+ }, description) : null), /*#__PURE__*/React__default.createElement("div", {
7334
+ className: "text-grey-700 flex shrink-0 items-center"
7335
+ }, control));
7336
+ });
7337
+
7338
+ const Link = /*#__PURE__*/React__default.forwardRef(function Link(props, ref) {
7339
+ const control = /*#__PURE__*/React__default.createElement(Icon, {
7340
+ name: props.href.startsWith('http') ? 'link-external' : 'chevron-right'
7341
+ });
7342
+ return /*#__PURE__*/React__default.createElement(Item$1, Object.assign({}, props, {
7343
+ as: "a",
7344
+ control: control,
7345
+ ref: ref
7346
+ }));
7347
+ });
7348
+
7349
+ const Collapsible = /*#__PURE__*/React__default.forwardRef(function Accordion(props, ref) {
7350
+ const {
7351
+ defaultOpen = false,
7352
+ ...attributes
7353
+ } = props;
7354
+ const [open, setOpen] = React__default.useState(defaultOpen);
7355
+ const control = /*#__PURE__*/React__default.createElement(Icon, {
7356
+ name: open ? 'chevron-up' : 'chevron-down'
7357
+ });
7358
+ return /*#__PURE__*/React__default.createElement(CollapsiblePrimitive.Root, {
7359
+ "data-taco": "list-item-collapsible",
7360
+ disabled: props.disabled,
7361
+ open: open,
7362
+ onOpenChange: setOpen
7363
+ }, /*#__PURE__*/React__default.createElement(CollapsiblePrimitive.Trigger, {
7364
+ asChild: true
7365
+ }, /*#__PURE__*/React__default.createElement(Item$1, Object.assign({}, attributes, {
7366
+ as: "button",
7367
+ control: control,
7368
+ ref: ref
7369
+ }))), /*#__PURE__*/React__default.createElement(CollapsiblePrimitive.Content, null, props.children));
7370
+ });
7371
+
7372
+ const Switch = /*#__PURE__*/React.forwardRef(function Switch(props, ref) {
7373
+ const {
7374
+ label,
7375
+ onChange,
7376
+ ...otherProps
7377
+ } = props;
7378
+ const id = useId(props.id);
7379
+ const className = cn('group h-5 w-9 flex flex-shrink-0 rounded-full inline-flex focus-visible:yt-focus', {
7380
+ 'mr-2': !!label,
7381
+ 'bg-grey-500 hover:bg-grey-700 aria-checked:bg-blue-500 aria-checked:hover:bg-blue-700': !props.disabled,
7382
+ 'bg-grey-500/50 aria-checked:bg-blue-500/50 cursor-not-allowed': props.disabled
7383
+ }, props.className);
7384
+ let labelledByProps = null;
7385
+ if (label) {
7386
+ labelledByProps = {
7387
+ 'aria-labelledby': `${id}-label`,
7388
+ id
7389
+ };
7390
+ }
7391
+ const element = /*#__PURE__*/React.createElement(PrimitiveSwitch.Root, Object.assign({}, otherProps, labelledByProps, {
7392
+ className: className,
7393
+ "data-taco": "switch",
7394
+ onCheckedChange: onChange,
7395
+ ref: ref
7396
+ }), /*#__PURE__*/React.createElement(PrimitiveSwitch.Thumb, {
7397
+ className: "'will-change-transform mt-0.5 h-4 w-4 translate-x-[0.15rem] rounded-full bg-white transition-transform group-disabled:opacity-50 group-aria-checked:translate-x-[1.1rem]"
7398
+ }));
7399
+ if (label) {
7400
+ const labelContainerClassName = cn('flex self-start cursor-pointer', {
7401
+ 'cursor-not-allowed text-grey-300': props.disabled
7402
+ });
7403
+ return /*#__PURE__*/React.createElement("span", {
7404
+ className: labelContainerClassName,
7405
+ "data-taco": "switch-container"
7406
+ }, element, /*#__PURE__*/React.createElement("label", {
7407
+ htmlFor: id,
7408
+ id: `${id}-label`
7409
+ }, label));
7410
+ }
7411
+ return element;
7412
+ });
7413
+ Switch.displayName = 'Switch';
7414
+
7415
+ const ToggleItem = /*#__PURE__*/React__default.forwardRef(function Toggle(props, ref) {
7416
+ const {
7417
+ controlRef,
7418
+ ...attributes
7419
+ } = props;
7420
+ function handleClick(event) {
7421
+ var _controlRef$current;
7422
+ if (typeof props.onClick === 'function') {
7423
+ props.onClick(event);
7424
+ }
7425
+ if (event.isDefaultPrevented()) {
7426
+ return;
7427
+ }
7428
+ // If event target is not a control or not an element inside the control, then trigger click of the control
7429
+ if (event.target !== controlRef.current || !((_controlRef$current = controlRef.current) !== null && _controlRef$current !== void 0 && _controlRef$current.contains(event.target))) {
7430
+ var _controlRef$current2;
7431
+ (_controlRef$current2 = controlRef.current) === null || _controlRef$current2 === void 0 ? void 0 : _controlRef$current2.click();
7432
+ return;
7433
+ }
7434
+ }
7435
+ function handleKeyDown(event) {
7436
+ var _controlRef$current3;
7437
+ if (typeof props.onKeyDown === 'function') {
7438
+ props.onKeyDown(event);
7439
+ }
7440
+ if (event.isDefaultPrevented()) {
7441
+ return;
7442
+ }
7443
+ // If event target is not a control or not an element inside the control, then send appropriate "activate" keyboard shortcuts to the control as a click
7444
+ if ((event.key === 'Enter' || event.key === ' ') && (event.target !== controlRef.current || !((_controlRef$current3 = controlRef.current) !== null && _controlRef$current3 !== void 0 && _controlRef$current3.contains(event.target)))) {
7445
+ var _controlRef$current4;
7446
+ (_controlRef$current4 = controlRef.current) === null || _controlRef$current4 === void 0 ? void 0 : _controlRef$current4.click();
7447
+ return;
7448
+ }
7449
+ }
7450
+ const className = cn('group/toggle', props.className);
7451
+ return /*#__PURE__*/React__default.createElement(Item$1, Object.assign({}, attributes, {
7452
+ className: className,
7453
+ onClick: handleClick,
7454
+ onKeyDown: handleKeyDown,
7455
+ ref: ref
7456
+ }));
7457
+ });
7458
+ const Switch$1 = /*#__PURE__*/React__default.forwardRef(function Switch$1(props, ref) {
7459
+ const {
7460
+ checked,
7461
+ onChange,
7462
+ ...attributes
7463
+ } = props;
7464
+ const switchRef = React__default.useRef(null);
7465
+ const control = /*#__PURE__*/React__default.createElement(Switch, {
7466
+ checked: checked,
7467
+ className: "group-hover/toggle:[&[aria-checked=false]]:bg-grey-700 group-hover/toggle:[&[aria-checked=true]]:bg-blue-700",
7468
+ disabled: props.disabled,
7469
+ onChange: onChange,
7470
+ ref: switchRef,
7471
+ tabIndex: -1
7472
+ });
7473
+ return /*#__PURE__*/React__default.createElement(ToggleItem, Object.assign({}, attributes, {
7474
+ control: control,
7475
+ controlRef: switchRef,
7476
+ ref: ref
7477
+ }));
7478
+ });
7479
+ const Checkbox$1 = /*#__PURE__*/React__default.forwardRef(function Switch(props, ref) {
7480
+ const {
7481
+ checked,
7482
+ onChange,
7483
+ ...attributes
7484
+ } = props;
7485
+ const checkboxRef = React__default.useRef(null);
7486
+ const control = /*#__PURE__*/React__default.createElement(Checkbox, {
7487
+ checked: checked,
7488
+ className: "group-hover/toggle:[&[aria-checked=false]]:border-grey-700 group-hover/toggle:[&[aria-checked=true]]:border-blue-700 group-hover/checkbox:[&[aria-checked=true]]:bg-blue-700",
7489
+ disabled: props.disabled,
7490
+ onChange: onChange,
7491
+ ref: checkboxRef,
7492
+ tabIndex: -1
7493
+ });
7494
+ return /*#__PURE__*/React__default.createElement(ToggleItem, Object.assign({}, attributes, {
7495
+ control: control,
7496
+ controlRef: checkboxRef,
7497
+ ref: ref
7498
+ }));
7499
+ });
7500
+
7501
+ const Button$2 = /*#__PURE__*/React__default.forwardRef(function Link(props, ref) {
7502
+ return /*#__PURE__*/React__default.createElement(Item$1, Object.assign({}, props, {
7503
+ as: "button",
7504
+ ref: ref
7505
+ }));
7506
+ });
7507
+
7508
+ function List$1(props) {
7509
+ return /*#__PURE__*/React__default.createElement("div", Object.assign({}, props, {
7510
+ "data-taco": "list"
7511
+ }));
7512
+ }
7513
+ List$1.Button = Button$2;
7514
+ List$1.Link = Link;
7515
+ List$1.Collapsible = Collapsible;
7516
+ List$1.Switch = Switch$1;
7517
+ List$1.Checkbox = Checkbox$1;
7518
+ List$1.Group = Group$1;
7519
+
7255
7520
  function useTimer(duration = 0, callback) {
7256
7521
  const timer = React.useRef();
7257
7522
  const [tracker, setTracker] = React.useState({
@@ -7784,7 +8049,7 @@ const useItemStyling = ({
7784
8049
  'cursor-not-allowed hover:bg-white text-grey-300': disabled
7785
8050
  }, className);
7786
8051
  };
7787
- const Item$1 = /*#__PURE__*/React.forwardRef(function MenuItem(props, ref) {
8052
+ const Item$2 = /*#__PURE__*/React.forwardRef(function MenuItem(props, ref) {
7788
8053
  var _props$disabled;
7789
8054
  const {
7790
8055
  dialog,
@@ -7856,7 +8121,7 @@ const Item$1 = /*#__PURE__*/React.forwardRef(function MenuItem(props, ref) {
7856
8121
  return button;
7857
8122
  });
7858
8123
 
7859
- const Link = /*#__PURE__*/React.forwardRef(function MenuLink(props, ref) {
8124
+ const Link$1 = /*#__PURE__*/React.forwardRef(function MenuLink(props, ref) {
7860
8125
  const {
7861
8126
  href,
7862
8127
  icon,
@@ -7909,7 +8174,7 @@ const Trigger$6 = /*#__PURE__*/React.forwardRef(function MenuTrigger(props, ref)
7909
8174
  }));
7910
8175
  });
7911
8176
 
7912
- const Checkbox$1 = /*#__PURE__*/React.forwardRef(function MenuCheckboxItem(props, ref) {
8177
+ const Checkbox$2 = /*#__PURE__*/React.forwardRef(function MenuCheckboxItem(props, ref) {
7913
8178
  const {
7914
8179
  checked,
7915
8180
  children,
@@ -8152,9 +8417,9 @@ const Menu$1 = /*#__PURE__*/React.forwardRef(function Menu(externalProps, ref) {
8152
8417
  });
8153
8418
  Menu$1.Trigger = Trigger$6;
8154
8419
  Menu$1.Content = Content$8;
8155
- Menu$1.Item = Item$1;
8156
- Menu$1.Link = Link;
8157
- Menu$1.Checkbox = Checkbox$1;
8420
+ Menu$1.Item = Item$2;
8421
+ Menu$1.Link = Link$1;
8422
+ Menu$1.Checkbox = Checkbox$2;
8158
8423
  Menu$1.Separator = Separator;
8159
8424
  Menu$1.Header = Header;
8160
8425
  Menu$1.RadioGroup = RadioGroup$1;
@@ -8280,7 +8545,7 @@ const useDropTarget = onDrop => {
8280
8545
  return [isDraggedOver, props];
8281
8546
  };
8282
8547
 
8283
- const Item$2 = /*#__PURE__*/React__default.forwardRef(function Item(props, ref) {
8548
+ const Item$3 = /*#__PURE__*/React__default.forwardRef(function Item(props, ref) {
8284
8549
  const {
8285
8550
  active,
8286
8551
  children,
@@ -8388,7 +8653,7 @@ const Navigation = /*#__PURE__*/React__default.forwardRef(function Navigation(pr
8388
8653
  }), children);
8389
8654
  });
8390
8655
  Navigation.Menu = Menu$2;
8391
- Navigation.Item = Item$2;
8656
+ Navigation.Item = Item$3;
8392
8657
  Navigation.Panel = Panel;
8393
8658
 
8394
8659
  const useIntersectionObserver = (ref, offset) => {
@@ -10325,7 +10590,7 @@ function _finallyRethrows(body, finalizer) {
10325
10590
  }
10326
10591
 
10327
10592
  const DEFAULT_PAGE_SIZE = 100;
10328
- function useTableDataLoader(fetchPage, fetchAll, options = {
10593
+ function useTableDataLoader(fetch, fetchAll, options = {
10329
10594
  pageSize: DEFAULT_PAGE_SIZE
10330
10595
  }) {
10331
10596
  const {
@@ -10341,11 +10606,11 @@ function useTableDataLoader(fetchPage, fetchAll, options = {
10341
10606
  const _lastUsedFilters = React__default.useRef([]);
10342
10607
  const _lastUsedSearch = React__default.useRef();
10343
10608
  const _forceReset = React__default.useRef(false);
10344
- const loadPage = function (pageIndex, sorting, filters) {
10609
+ const loadPage = function (pageIndex, sorting, filters, search) {
10345
10610
  try {
10346
10611
  let reset = false;
10347
10612
  // sorting or filters changed, reset everything
10348
- if (_forceReset.current || JSON.stringify(sorting) !== JSON.stringify(_lastUsedSorting.current) || JSON.stringify(filters) !== JSON.stringify(_lastUsedFilters.current)) {
10613
+ if (_forceReset.current || search !== _lastUsedSearch.current || JSON.stringify(sorting) !== JSON.stringify(_lastUsedSorting.current) || JSON.stringify(filters) !== JSON.stringify(_lastUsedFilters.current)) {
10349
10614
  _pendingPageRequests.current = {};
10350
10615
  // nuke the dataset so that we "start again" after sorting
10351
10616
  reset = true;
@@ -10361,9 +10626,11 @@ function useTableDataLoader(fetchPage, fetchAll, options = {
10361
10626
  _lastUsedSorting.current = sorting;
10362
10627
  // set the filters so we can track if it changed between loads
10363
10628
  _lastUsedFilters.current = filters;
10629
+ // set the search so we can track if it changed between loads
10630
+ _lastUsedSearch.current = search;
10364
10631
  const _temp = _finallyRethrows(function () {
10365
10632
  return _catch(function () {
10366
- return Promise.resolve(fetchPage(pageIndex, pageSize, sorting, filters)).then(function (response) {
10633
+ return Promise.resolve(fetch(pageIndex, pageSize, sorting, filters, search)).then(function (response) {
10367
10634
  // update state, here we do some "magic" to support "load in place"
10368
10635
  setData(currentData => {
10369
10636
  let nextData;
@@ -10392,14 +10659,10 @@ function useTableDataLoader(fetchPage, fetchAll, options = {
10392
10659
  return Promise.reject(e);
10393
10660
  }
10394
10661
  };
10395
- const loadAll = function (sorting, filters) {
10662
+ const loadAll = function (sorting, filters, search) {
10396
10663
  try {
10397
- // set the sorting so we can track if it changed between loads
10398
- _lastUsedSorting.current = sorting;
10399
- // set the filters so we can track if it changed between loads
10400
- _lastUsedFilters.current = filters;
10401
10664
  const _temp2 = _catch(function () {
10402
- return Promise.resolve(fetchAll(sorting, filters)).then(function (response) {
10665
+ return Promise.resolve(fetchAll(sorting, filters, search)).then(function (response) {
10403
10666
  length.current = response.length;
10404
10667
  setData(() => {
10405
10668
  let nextData;
@@ -10421,52 +10684,22 @@ function useTableDataLoader(fetchPage, fetchAll, options = {
10421
10684
  const invalidate = function () {
10422
10685
  try {
10423
10686
  _forceReset.current = true;
10424
- return loadPage(0, _lastUsedSorting.current, _lastUsedFilters.current);
10687
+ return loadPage(0, _lastUsedSorting.current, _lastUsedFilters.current, _lastUsedSearch.current);
10425
10688
  } catch (e) {
10426
10689
  return Promise.reject(e);
10427
10690
  }
10428
10691
  };
10429
- // search works client side - it fetches all then works client side - so these handlers are a little "weird"
10430
- // if a search is currently "active", we need to re load all because
10692
+ // we reset the page to 0 whenever sorting, filtering or search changes
10431
10693
  const handleSort = function (sorting) {
10432
10694
  try {
10433
- // set the sorting so we can track if it changed between loads
10434
- _lastUsedSorting.current = sorting;
10435
- if (_lastUsedSearch.current) {
10436
- // we're searching, which means we need to refetch all with the correct sorting applied
10437
- loadAll(sorting, _lastUsedFilters.current);
10438
- } else {
10439
- // reset the page to 0 whenever sorting
10440
- loadPage(0, sorting, _lastUsedFilters.current);
10441
- }
10442
- return Promise.resolve();
10695
+ return loadPage(0, sorting, _lastUsedFilters.current, _lastUsedSearch.current);
10443
10696
  } catch (e) {
10444
10697
  return Promise.reject(e);
10445
10698
  }
10446
10699
  };
10447
10700
  const handleFilter = function (filters) {
10448
10701
  try {
10449
- // set the filters so we can track if it changed between loads
10450
- _lastUsedFilters.current = filters;
10451
- if (_lastUsedSearch.current) {
10452
- // we're searching, which means we need to refetch all with the correct sorting applied
10453
- loadAll(_lastUsedSorting.current, filters);
10454
- } else {
10455
- // reset the page to 0 whenever sorting
10456
- loadPage(0, _lastUsedSorting.current, filters);
10457
- }
10458
- return Promise.resolve();
10459
- } catch (e) {
10460
- return Promise.reject(e);
10461
- }
10462
- };
10463
- const handleSearch = function (search) {
10464
- try {
10465
- // set the search so we can track if it changed between loads
10466
- _lastUsedSearch.current = search || undefined;
10467
- // search works client side, and focusing the search field triggers a load of all so we don't actually
10468
- // want to load anything when search gets changed, we just store the value for other handlers
10469
- return Promise.resolve();
10702
+ return loadPage(0, _lastUsedSorting.current, filters, _lastUsedSearch.current);
10470
10703
  } catch (e) {
10471
10704
  return Promise.reject(e);
10472
10705
  }
@@ -10477,7 +10710,6 @@ function useTableDataLoader(fetchPage, fetchAll, options = {
10477
10710
  loadAll,
10478
10711
  loadPage,
10479
10712
  onChangeFilter: handleFilter,
10480
- onChangeSearch: handleSearch,
10481
10713
  onChangeSort: handleSort,
10482
10714
  pageSize
10483
10715
  }, invalidate];
@@ -10768,18 +11000,14 @@ function resetHighlightedColumnIndexes(value, table) {
10768
11000
  return firstRowIndex;
10769
11001
  }
10770
11002
 
10771
- function useTableSearchListener(table, onChangeSearch) {
11003
+ function useTableSearchListener(table) {
10772
11004
  const meta = table.options.meta;
10773
11005
  // recalculates highlighted indexes whenever something important changes
10774
11006
  React__default.useEffect(() => {
10775
11007
  if (meta.search.isEnabled) {
10776
- const query = table.getState().globalFilter;
10777
- resetHighlightedColumnIndexes(query, table);
10778
- if (typeof onChangeSearch === 'function') {
10779
- onChangeSearch(query);
10780
- }
11008
+ resetHighlightedColumnIndexes(table.getState().globalFilter, table);
10781
11009
  }
10782
- }, [meta.server.loadAllStatus, meta.search.isEnabled, meta.search.enableGlobalFilter, table.getRowModel().rows.length, table.getState().globalFilter, JSON.stringify(table.getState().sorting), JSON.stringify(table.getState().columnVisibility), onChangeSearch]);
11010
+ }, [meta.server.loadAllStatus, meta.search.isEnabled, meta.search.enableGlobalFilter, table.getRowModel().rows.length, table.getState().globalFilter, JSON.stringify(table.getState().sorting), JSON.stringify(table.getState().columnVisibility)]);
10783
11011
  }
10784
11012
 
10785
11013
  function useTableSettingsListener(table, onChangeSettings) {
@@ -10865,10 +11093,11 @@ function useTableSortingListener(table, onSort) {
10865
11093
  function useTableServerLoadingListener(table, loadPage) {
10866
11094
  const sorting = table.getState().sorting;
10867
11095
  const columnFilters = table.getState().columnFilters;
11096
+ const search = table.getState().globalFilter;
10868
11097
  // trigger load of the first page on mount
10869
11098
  React__default.useEffect(() => {
10870
11099
  if (loadPage) {
10871
- loadPage(0, sorting, columnFilters);
11100
+ loadPage(0, sorting, columnFilters, search);
10872
11101
  }
10873
11102
  }, []);
10874
11103
  }
@@ -10969,7 +11198,7 @@ function useTableManager(props, meta, internalColumns) {
10969
11198
  useTableFontSizeListener(instance);
10970
11199
  useTableRowHeightListener(instance);
10971
11200
  useTableRowSelectionListener(instance, props.onRowSelect);
10972
- useTableSearchListener(instance, props.onChangeSearch);
11201
+ useTableSearchListener(instance);
10973
11202
  useTableServerLoadingListener(instance, server.loadPage);
10974
11203
  useTableSettingsListener(instance, setSettings);
10975
11204
  useTableShortcutsListener(instance, props.shortcuts);
@@ -11265,7 +11494,7 @@ function RowWithServerLoading(props) {
11265
11494
  React__default.useEffect(() => {
11266
11495
  if (inView) {
11267
11496
  var _tableMeta$server$loa, _tableMeta$server;
11268
- (_tableMeta$server$loa = (_tableMeta$server = tableMeta.server).loadPage) === null || _tableMeta$server$loa === void 0 ? void 0 : _tableMeta$server$loa.call(_tableMeta$server, pageIndex, table.getState().sorting, table.getState().columnFilters);
11497
+ (_tableMeta$server$loa = (_tableMeta$server = tableMeta.server).loadPage) === null || _tableMeta$server$loa === void 0 ? void 0 : _tableMeta$server$loa.call(_tableMeta$server, pageIndex, table.getState().sorting, table.getState().columnFilters, table.getState().globalFilter);
11269
11498
  }
11270
11499
  }, [inView]);
11271
11500
  return /*#__PURE__*/React__default.createElement(Skeleton, {
@@ -11739,7 +11968,7 @@ function Header$4(context) {
11739
11968
  const _temp = function () {
11740
11969
  if (tableMeta.server.loadAllIfNeeded) {
11741
11970
  // don't pass the search query because we need all data - not filtered data
11742
- return Promise.resolve(tableMeta.server.loadAllIfNeeded(table.getState().sorting, table.getState().columnFilters)).then(function () {});
11971
+ return Promise.resolve(tableMeta.server.loadAllIfNeeded(table.getState().sorting, table.getState().columnFilters, undefined)).then(function () {});
11743
11972
  }
11744
11973
  }();
11745
11974
  // load all data if that is possible
@@ -11813,7 +12042,7 @@ function Cell$3(context) {
11813
12042
  const _temp3 = function () {
11814
12043
  if (tableMeta.server.loadAllIfNeeded && selectedRows.some(row => row.original === undefined)) {
11815
12044
  // don't pass the search query because we need all data - not filtered data
11816
- return Promise.resolve(tableMeta.server.loadAllIfNeeded(table.getState().sorting, table.getState().columnFilters)).then(function () {});
12045
+ return Promise.resolve(tableMeta.server.loadAllIfNeeded(table.getState().sorting, table.getState().columnFilters, undefined)).then(function () {});
11817
12046
  }
11818
12047
  }();
11819
12048
  return _temp3 && _temp3.then ? _temp3.then(_temp4) : _temp4(_temp3);
@@ -12806,7 +13035,7 @@ function Body(props) {
12806
13035
  const isFirstRow = tableMeta.rowActive.rowActiveIndex === 0;
12807
13036
  const isLastRow = tableMeta.rowActive.rowActiveIndex === tableMeta.length - 1;
12808
13037
  if (event.key === 'Tab' || enableHorizontalArrowKeyNavigation && (event.key === 'ArrowLeft' || event.key === 'ArrowRight')) {
12809
- if (event.key === 'Tab' && !hasFocusableElement(event.target.closest('tr'))) {
13038
+ if (event.key === 'Tab' && !hasFocusableElement(event.target.closest('tr[data-row-id]'))) {
12810
13039
  return;
12811
13040
  }
12812
13041
  tableMeta.rowActive.setHoverStatePaused(true);
@@ -13132,49 +13361,6 @@ const SearchInput2 = /*#__PURE__*/React__default.forwardRef(function SearchInput
13132
13361
  return input;
13133
13362
  });
13134
13363
 
13135
- const Switch = /*#__PURE__*/React.forwardRef(function Switch(props, ref) {
13136
- const {
13137
- label,
13138
- onChange,
13139
- ...otherProps
13140
- } = props;
13141
- const id = useId(props.id);
13142
- const className = cn('group h-5 w-9 flex flex-shrink-0 rounded-full inline-flex focus-visible:yt-focus', {
13143
- 'mr-2': !!label,
13144
- 'bg-grey-500 hover:bg-grey-700 aria-checked:bg-blue-500 aria-checked:hover:bg-blue-700': !props.disabled,
13145
- 'bg-grey-500/50 aria-checked:bg-blue-500/50 cursor-not-allowed': props.disabled
13146
- }, props.className);
13147
- let labelledByProps = null;
13148
- if (label) {
13149
- labelledByProps = {
13150
- 'aria-labelledby': `${id}-label`,
13151
- id
13152
- };
13153
- }
13154
- const element = /*#__PURE__*/React.createElement(PrimitiveSwitch.Root, Object.assign({}, otherProps, labelledByProps, {
13155
- className: className,
13156
- "data-taco": "switch",
13157
- onCheckedChange: onChange,
13158
- ref: ref
13159
- }), /*#__PURE__*/React.createElement(PrimitiveSwitch.Thumb, {
13160
- className: "'will-change-transform mt-0.5 h-4 w-4 translate-x-[0.15rem] rounded-full bg-white transition-transform group-disabled:opacity-50 group-aria-checked:translate-x-[1.1rem]"
13161
- }));
13162
- if (label) {
13163
- const labelContainerClassName = cn('flex self-start cursor-pointer', {
13164
- 'cursor-not-allowed text-grey-300': props.disabled
13165
- });
13166
- return /*#__PURE__*/React.createElement("span", {
13167
- className: labelContainerClassName,
13168
- "data-taco": "switch-container"
13169
- }, element, /*#__PURE__*/React.createElement("label", {
13170
- htmlFor: id,
13171
- id: `${id}-label`
13172
- }, label));
13173
- }
13174
- return element;
13175
- });
13176
- Switch.displayName = 'Switch';
13177
-
13178
13364
  function Search$1(props) {
13179
13365
  var _tableMeta$search$hig, _tableMeta$search$hig2;
13180
13366
  const {
@@ -13201,7 +13387,7 @@ function Search$1(props) {
13201
13387
  const _temp = function () {
13202
13388
  if (tableMeta.server.loadAllIfNeeded) {
13203
13389
  // don't pass the search query because we need all data - not filtered data
13204
- return Promise.resolve(tableMeta.server.loadAllIfNeeded(table.getState().sorting, table.getState().columnFilters)).then(function () {});
13390
+ return Promise.resolve(tableMeta.server.loadAllIfNeeded(table.getState().sorting, table.getState().columnFilters, undefined)).then(function () {});
13205
13391
  }
13206
13392
  }();
13207
13393
  // load all data if that is possible
@@ -13340,7 +13526,7 @@ const isFormElement = element => {
13340
13526
  const formElementNodeNames = ['BUTTON', 'INPUT', 'TEXTAREA', 'SELECT', 'FIELDSET'];
13341
13527
  return formElementNodeNames.includes(element.nodeName);
13342
13528
  };
13343
- function Item$3(props) {
13529
+ function Item$4(props) {
13344
13530
  const {
13345
13531
  asChild,
13346
13532
  children,
@@ -13379,9 +13565,9 @@ function Item$3(props) {
13379
13565
  }
13380
13566
  return /*#__PURE__*/React__default.createElement("div", Object.assign({}, elProps), children);
13381
13567
  }
13382
- Item$3.displayName = 'SortableListItem';
13568
+ Item$4.displayName = 'SortableListItem';
13383
13569
 
13384
- function List$1(externalProps) {
13570
+ function List$2(externalProps) {
13385
13571
  const {
13386
13572
  children,
13387
13573
  id,
@@ -13401,7 +13587,7 @@ function List$1(externalProps) {
13401
13587
  ref: id ? setNodeRef : undefined
13402
13588
  }), children));
13403
13589
  }
13404
- List$1.displayName = 'SortableList';
13590
+ List$2.displayName = 'SortableList';
13405
13591
 
13406
13592
  const Column = /*#__PURE__*/React__default.forwardRef(function Column(props, ref) {
13407
13593
  var _column$parent, _column$parent$column, _column$columnDef$met;
@@ -13485,12 +13671,12 @@ function HideOrOrderPopover(props) {
13485
13671
  value: query
13486
13672
  })) : null, tableMeta.columnOrdering.isEnabled && columns.length && !(query !== null && query !== void 0 && query.length) ? ( /*#__PURE__*/React__default.createElement(Container, {
13487
13673
  reorder: handleReorder
13488
- }, /*#__PURE__*/React__default.createElement(List$1, {
13674
+ }, /*#__PURE__*/React__default.createElement(List$2, {
13489
13675
  id: "columns",
13490
13676
  className: listClassName
13491
13677
  }, columns.filter(column => !column.getIsGrouped()).map(column => {
13492
13678
  var _column$columnDef$met4, _column$columnDef$met5;
13493
- return /*#__PURE__*/React__default.createElement(Item$3, {
13679
+ return /*#__PURE__*/React__default.createElement(Item$4, {
13494
13680
  key: column.id,
13495
13681
  id: column.id,
13496
13682
  disabled: !((_column$columnDef$met4 = column.columnDef.meta) !== null && _column$columnDef$met4 !== void 0 && _column$columnDef$met4.enableOrdering),
@@ -13885,7 +14071,7 @@ const Option = /*#__PURE__*/React__default.forwardRef(function Listbox2Option(pr
13885
14071
  }));
13886
14072
  });
13887
14073
 
13888
- const Group$1 = /*#__PURE__*/React__default.forwardRef(function Listbox2Group(props, ref) {
14074
+ const Group$2 = /*#__PURE__*/React__default.forwardRef(function Listbox2Group(props, ref) {
13889
14075
  const [labelledById, setLabelledById] = React__default.useState();
13890
14076
  return /*#__PURE__*/React__default.createElement(Listbox2GroupContext.Provider, {
13891
14077
  value: {
@@ -14249,7 +14435,7 @@ const Option$1 = /*#__PURE__*/React__default.forwardRef(function Select2Option(p
14249
14435
  })) : null);
14250
14436
  });
14251
14437
 
14252
- const Group$2 = /*#__PURE__*/React__default.forwardRef(function Select2Group(props, ref) {
14438
+ const Group$3 = /*#__PURE__*/React__default.forwardRef(function Select2Group(props, ref) {
14253
14439
  const {
14254
14440
  children,
14255
14441
  heading,
@@ -14259,7 +14445,7 @@ const Group$2 = /*#__PURE__*/React__default.forwardRef(function Select2Group(pro
14259
14445
  const className = cn(createCollectionClassName(), {
14260
14446
  "last:after:content-none after:content-[''] after:bg-grey-300 after:mx-2 after:my-1 after:h-px": hasSeparator && children.length
14261
14447
  }, props.className);
14262
- return /*#__PURE__*/React__default.createElement(Group$1, Object.assign({}, attributes, {
14448
+ return /*#__PURE__*/React__default.createElement(Group$2, Object.assign({}, attributes, {
14263
14449
  className: className,
14264
14450
  ref: ref
14265
14451
  }), /*#__PURE__*/React__default.createElement(Title$4, {
@@ -14301,7 +14487,7 @@ const Trigger$7 = /*#__PURE__*/React__default.forwardRef(function Select2Trigger
14301
14487
  value: value
14302
14488
  }));
14303
14489
  });
14304
- const Button$2 = /*#__PURE__*/React__default.forwardRef(function Select2TriggerButton(props, ref) {
14490
+ const Button$3 = /*#__PURE__*/React__default.forwardRef(function Select2TriggerButton(props, ref) {
14305
14491
  var _props$className;
14306
14492
  const {
14307
14493
  children,
@@ -14386,7 +14572,7 @@ const Single = /*#__PURE__*/React__default.forwardRef(function Select2TriggerSin
14386
14572
  })) : currentValue.props.prefix : null, currentValue.props.children);
14387
14573
  }
14388
14574
  }
14389
- return /*#__PURE__*/React__default.createElement(Button$2, Object.assign({}, buttonProps, {
14575
+ return /*#__PURE__*/React__default.createElement(Button$3, Object.assign({}, buttonProps, {
14390
14576
  ref: ref
14391
14577
  }), /*#__PURE__*/React__default.createElement("div", {
14392
14578
  className: contentClassName
@@ -14450,7 +14636,7 @@ const Multiple = /*#__PURE__*/React__default.forwardRef(function Select2TriggerM
14450
14636
  style: {
14451
14637
  width: open ? (_buttonRef$current = buttonRef.current) === null || _buttonRef$current === void 0 ? void 0 : _buttonRef$current.offsetWidth : undefined
14452
14638
  }
14453
- }, /*#__PURE__*/React__default.createElement(Button$2, Object.assign({}, buttonProps, {
14639
+ }, /*#__PURE__*/React__default.createElement(Button$3, Object.assign({}, buttonProps, {
14454
14640
  className: className,
14455
14641
  ref: buttonRef
14456
14642
  }), content));
@@ -15064,7 +15250,7 @@ const Select2 = /*#__PURE__*/React__default.forwardRef(function Select2(props, r
15064
15250
  }) : null)))))));
15065
15251
  });
15066
15252
  Select2.Option = Option$1;
15067
- Select2.Group = Group$2;
15253
+ Select2.Group = Group$3;
15068
15254
  Select2.Title = Title$5;
15069
15255
  const ControlledHiddenField = props => {
15070
15256
  const {
@@ -15249,7 +15435,7 @@ function Print$1(props) {
15249
15435
  const _temp2 = function () {
15250
15436
  if (tableMeta.server.isEnabled && tableMeta.server.loadAllIfNeeded) {
15251
15437
  const _temp = _catch(function () {
15252
- return Promise.resolve(tableMeta.server.loadAllIfNeeded(table.getState().sorting, table.getState().columnFilters)).then(function () {});
15438
+ return Promise.resolve(tableMeta.server.loadAllIfNeeded(table.getState().sorting, table.getState().columnFilters, undefined)).then(function () {});
15253
15439
  }, function (error) {
15254
15440
  const errorMessage = `${texts.table.print.error}: ${error}`;
15255
15441
  console.error(errorMessage);
@@ -15942,7 +16128,7 @@ function TableGrid(props) {
15942
16128
  function Column$1(_) {
15943
16129
  return null;
15944
16130
  }
15945
- function Group$3(_) {
16131
+ function Group$4(_) {
15946
16132
  return null;
15947
16133
  }
15948
16134
  const BaseReport = /*#__PURE__*/fixedForwardRef(function BaseReport(props, ref) {
@@ -15965,7 +16151,7 @@ const Report$1 = /*#__PURE__*/fixedForwardRef(function Report(props, ref) {
15965
16151
  }));
15966
16152
  });
15967
16153
  Report$1.Column = Column$1;
15968
- Report$1.Group = Group$3;
16154
+ Report$1.Group = Group$4;
15969
16155
 
15970
16156
  const sanitizeRowProps = (row, rowExpansionRenderer) => {
15971
16157
  var _row$subRows;
@@ -18679,10 +18865,10 @@ function Column$3(_) {
18679
18865
  return null;
18680
18866
  }
18681
18867
  Column$3.displayName = 'Table3Column';
18682
- function Group$4(_) {
18868
+ function Group$5(_) {
18683
18869
  return null;
18684
18870
  }
18685
- Group$4.displayName = 'Table3Group';
18871
+ Group$5.displayName = 'Table3Group';
18686
18872
  const BaseTable3 = /*#__PURE__*/fixedForwardRef(function BaseTable3(props, ref) {
18687
18873
  var _table3$meta$editing, _table3$meta$editing2;
18688
18874
  const table3 = useTable3(props, ref);
@@ -18723,7 +18909,7 @@ const Table3 = /*#__PURE__*/fixedForwardRef(function Table3(props, ref) {
18723
18909
  }));
18724
18910
  });
18725
18911
  Table3.Column = Column$3;
18726
- Table3.Group = Group$4;
18912
+ Table3.Group = Group$5;
18727
18913
 
18728
18914
  const Tabs = /*#__PURE__*/React.forwardRef(function Tabs(props, ref) {
18729
18915
  const {
@@ -18934,7 +19120,7 @@ const Tour = props => {
18934
19120
  };
18935
19121
  Tour.Step = TourStep;
18936
19122
 
18937
- const Button$3 = /*#__PURE__*/React__default.forwardRef(function Button(props, ref) {
19123
+ const Button$4 = /*#__PURE__*/React__default.forwardRef(function Button(props, ref) {
18938
19124
  const {
18939
19125
  ...attributes
18940
19126
  } = props;
@@ -18950,7 +19136,7 @@ const getButtonClasses$1 = (rounded = true) => cn('!h-9 !w-9 flex-shrink-0 flex-
18950
19136
  '!rounded-full': rounded
18951
19137
  });
18952
19138
 
18953
- const Link$1 = /*#__PURE__*/React__default.forwardRef(function Link(props, ref) {
19139
+ const Link$2 = /*#__PURE__*/React__default.forwardRef(function Link(props, ref) {
18954
19140
  const {
18955
19141
  children,
18956
19142
  icon,
@@ -19346,8 +19532,8 @@ const Header$6 = /*#__PURE__*/React__default.forwardRef(function Header(props, r
19346
19532
  });
19347
19533
  Header$6.AgreementDisplay = AgreementDisplay$1;
19348
19534
  Header$6.AgreementSelector = AgreementSelector;
19349
- Header$6.Button = Button$3;
19350
- Header$6.Link = Link$1;
19535
+ Header$6.Button = Button$4;
19536
+ Header$6.Link = Link$2;
19351
19537
  Header$6.Logo = Logo;
19352
19538
  Header$6.LogoLegacy = LogoLegacy;
19353
19539
  Header$6.PrimaryNavigation = PrimaryNavigation;
@@ -19481,7 +19667,7 @@ Layout$1.Page = Page;
19481
19667
  Layout$1.Sidebar = Sidebar;
19482
19668
  Layout$1.Content = Content$9;
19483
19669
 
19484
- const Group$5 = /*#__PURE__*/React__default.forwardRef(function Group(props, ref) {
19670
+ const Group$6 = /*#__PURE__*/React__default.forwardRef(function Group(props, ref) {
19485
19671
  const {
19486
19672
  children,
19487
19673
  defaultExpanded = false,
@@ -19539,7 +19725,7 @@ const getNavigationLinkClasses = (isDraggedOver = false) => cn('group relative f
19539
19725
  'hover:bg-black/[.06] aria-current-page:bg-blue-500/[.1]': !isDraggedOver,
19540
19726
  '!bg-blue-500 !text-white [&>*]:!text-white': isDraggedOver
19541
19727
  });
19542
- const Link$2 = /*#__PURE__*/React__default.forwardRef(function Link(props, ref) {
19728
+ const Link$3 = /*#__PURE__*/React__default.forwardRef(function Link(props, ref) {
19543
19729
  const {
19544
19730
  active,
19545
19731
  children,
@@ -19640,8 +19826,8 @@ const Navigation2 = /*#__PURE__*/React__default.forwardRef(function Navigation2(
19640
19826
  }
19641
19827
  }), children);
19642
19828
  });
19643
- Navigation2.Group = Group$5;
19644
- Navigation2.Link = Link$2;
19829
+ Navigation2.Group = Group$6;
19830
+ Navigation2.Link = Link$3;
19645
19831
  Navigation2.Section = Section;
19646
19832
  Navigation2.Content = Content$a;
19647
19833
 
@@ -19703,6 +19889,7 @@ exports.Icon = Icon;
19703
19889
  exports.IconButton = IconButton;
19704
19890
  exports.Input = Input;
19705
19891
  exports.Layout = Layout$1;
19892
+ exports.List = List$1;
19706
19893
  exports.Listbox = Listbox;
19707
19894
  exports.LocalizationContext = LocalizationContext;
19708
19895
  exports.LocalizationProvider = LocalizationProvider;