@natoora-libs/core 0.2.82-test-doug → 0.2.92-dev-doug-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
1
  import * as React from 'react';
2
2
  import React__default, { MouseEvent, ReactNode, FC, ReactElement, ComponentType, ChangeEvent, ComponentProps, SVGProps } from 'react';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
- import { H as HeadCell, a as HeaderFilters, b as HeaderFilterOptions, c as HeaderFilterObject, T as TableDesktopProps, O as Order } from '../TableDesktop-CZe649rr.cjs';
5
- export { B as BulkChanges, j as BulkChangesDialogProps, E as EditableCellType, k as ExportCsvDialogProps, i as TableColumnConfigurationMenuProps, d as TableDesktop, e as TableDesktopFooter, f as TableDesktopFooterProps, g as TableDesktopToolbar, h as TableDesktopToolbarProps, U as UpdateEditableCellParams } from '../TableDesktop-CZe649rr.cjs';
4
+ import { H as HeadCell, a as HeaderFilters, b as HeaderFilterOptions, c as HeaderFilterObject, T as TableDesktopProps, O as Order, R as RowId } from '../TableDesktop-Z0KE59L4.cjs';
5
+ export { B as BulkChanges, j as BulkChangesDialogProps, E as EditableCellType, k as ExportCsvDialogProps, i as TableColumnConfigurationMenuProps, d as TableDesktop, e as TableDesktopFooter, f as TableDesktopFooterProps, g as TableDesktopToolbar, h as TableDesktopToolbarProps, U as UpdateEditableCellParams } from '../TableDesktop-Z0KE59L4.cjs';
6
6
  import { Control, ControllerRenderProps, ControllerFieldState, UseFormTrigger, UseFormReturn, FieldValues } from 'react-hook-form';
7
7
  import { UseMutateAsyncFunction } from 'react-query';
8
8
  import { SxProps, Theme, MenuProps, Typography } from '@mui/material';
@@ -930,6 +930,7 @@ type SmartMultipleSelectProps = {
930
930
  inputLabel?: string;
931
931
  variant?: 'standard' | 'filled' | 'outlined';
932
932
  size?: 'small' | 'medium';
933
+ error?: boolean;
933
934
  values?: Option[];
934
935
  defaultValues?: Option[];
935
936
  onOpen?: () => void;
@@ -1006,7 +1007,7 @@ declare const Table: ({ appliedFilters, data, doNotCalculateRows, headCells, isL
1006
1007
  type TableDesktopEditableFieldProps = {
1007
1008
  headCell: HeadCell;
1008
1009
  editInitialValue?: any;
1009
- rowId?: number;
1010
+ rowId?: RowId;
1010
1011
  disabled?: boolean;
1011
1012
  showCheckboxLabel?: boolean;
1012
1013
  variant?: 'standard' | 'outlined' | 'filled';
@@ -1017,7 +1018,7 @@ declare const TableDesktopEditableField: FC<TableDesktopEditableFieldProps>;
1017
1018
 
1018
1019
  type TableDesktopCellProps = {
1019
1020
  editInitialValue: any;
1020
- rowId: number;
1021
+ rowId: RowId;
1021
1022
  enableEditMode: boolean;
1022
1023
  disabled?: boolean;
1023
1024
  readOnlyValue: string | number | boolean;
@@ -1130,4 +1131,4 @@ declare const SvgIconCompare: (props: SVGProps<SVGSVGElement>) => react_jsx_runt
1130
1131
 
1131
1132
  declare const SvgIconChart: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
1132
1133
 
1133
- export { ActiveFiltersIconButton, AlertDialog, AlertDialogFullScreen, AppLabel, AppliedTableFiltersDisplay, AutocompleteFilterMenuContent, BackHeader, BottomBar, _default$k as BoxButton, CheckboxFilterMenuContent, ClearFiltersConfirmationDialog, CompanyLogo, ConfirmationDialog, ControlledCheckbox, ControlledNumberInput, ControlledNumericField, ControlledSelectWithArray, ControlledSelectWithObject, ControlledValidTextInput, DataGrid, Date, _default$c as DeleteSubstitutionDialogContent, _default$b as DeleteUserDialogContent, DynamicOverflowTooltip, _default$j as ExtendedButton, FileCard, _default$i as FilledButton, _default$h as FilledButtonLg, _default$a as FilledLabel, FilterGroupSelector, FilterOptionsCheckboxes, FilterSimpleSelector, _default$9 as FixedFooter, HeadCell, Header, HeaderFilterObject, HeaderFilterOptions, HeaderFilters, SvgIconChart as IconChart, SvgIconCompare as IconCompare, _default$g as ImageButton, LabeledValueList, VirtualizedList as List, Loading, LocationsSectionInfo, Notes, Numpad, _default$8 as NumpadInput, NumpadPlus, Order, _default$f as OutlinedButton, _default$e as OutlinedButtonLg, PaginationForTable as Pagination, PhoneInput, _default$d as Pin, ActionButton as PinnedApp, PlusMinusInput, ProductBust, ProductImage, RenderAvatar, RenderContentList, RoundButton, RowProductCard, ScrollableDialog, SearchAndFilterHeader, _default$7 as SearchAndFilterHeaderForTable, SearchFieldDebounced, SearchHeader, _default$6 as SearchWithFilters, _default$5 as SearchWithFiltersForTable, SectionName, SmartMultipleSelect, SmartSelect, SmartTableHeader, SmartTableHeaderFilterMenu, SquareButton, _default$4 as SquareLabel, _default$3 as Switch, Table, TableDesktopCell, TableDesktopEditableField, TableEmptyResult, _default$2 as TableHeader, TableLoading, TextDivider, _default$1 as TheToolbar, ThemedDateRangePicker, ToastMessage, TwoButtonDialog, UploadButton, _default as UserBust, icons };
1134
+ export { ActiveFiltersIconButton, AlertDialog, AlertDialogFullScreen, AppLabel, AppliedTableFiltersDisplay, AutocompleteFilterMenuContent, BackHeader, BottomBar, _default$k as BoxButton, CheckboxFilterMenuContent, ClearFiltersConfirmationDialog, CompanyLogo, ConfirmationDialog, ControlledCheckbox, ControlledNumberInput, ControlledNumericField, ControlledSelectWithArray, ControlledSelectWithObject, ControlledValidTextInput, DataGrid, Date, _default$c as DeleteSubstitutionDialogContent, _default$b as DeleteUserDialogContent, DynamicOverflowTooltip, _default$j as ExtendedButton, FileCard, _default$i as FilledButton, _default$h as FilledButtonLg, _default$a as FilledLabel, FilterGroupSelector, FilterOptionsCheckboxes, FilterSimpleSelector, _default$9 as FixedFooter, HeadCell, Header, HeaderFilterObject, HeaderFilterOptions, HeaderFilters, SvgIconChart as IconChart, SvgIconCompare as IconCompare, _default$g as ImageButton, LabeledValueList, VirtualizedList as List, Loading, LocationsSectionInfo, Notes, Numpad, _default$8 as NumpadInput, NumpadPlus, Order, _default$f as OutlinedButton, _default$e as OutlinedButtonLg, PaginationForTable as Pagination, PhoneInput, _default$d as Pin, ActionButton as PinnedApp, PlusMinusInput, ProductBust, ProductImage, RenderAvatar, RenderContentList, RoundButton, RowId, RowProductCard, ScrollableDialog, SearchAndFilterHeader, _default$7 as SearchAndFilterHeaderForTable, SearchFieldDebounced, SearchHeader, _default$6 as SearchWithFilters, _default$5 as SearchWithFiltersForTable, SectionName, SmartMultipleSelect, SmartSelect, SmartTableHeader, SmartTableHeaderFilterMenu, SquareButton, _default$4 as SquareLabel, _default$3 as Switch, Table, TableDesktopCell, TableDesktopEditableField, TableEmptyResult, _default$2 as TableHeader, TableLoading, TextDivider, _default$1 as TheToolbar, ThemedDateRangePicker, ToastMessage, TwoButtonDialog, UploadButton, _default as UserBust, icons };
@@ -1,8 +1,8 @@
1
1
  import * as React from 'react';
2
2
  import React__default, { MouseEvent, ReactNode, FC, ReactElement, ComponentType, ChangeEvent, ComponentProps, SVGProps } from 'react';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
- import { H as HeadCell, a as HeaderFilters, b as HeaderFilterOptions, c as HeaderFilterObject, T as TableDesktopProps, O as Order } from '../TableDesktop-CZe649rr.js';
5
- export { B as BulkChanges, j as BulkChangesDialogProps, E as EditableCellType, k as ExportCsvDialogProps, i as TableColumnConfigurationMenuProps, d as TableDesktop, e as TableDesktopFooter, f as TableDesktopFooterProps, g as TableDesktopToolbar, h as TableDesktopToolbarProps, U as UpdateEditableCellParams } from '../TableDesktop-CZe649rr.js';
4
+ import { H as HeadCell, a as HeaderFilters, b as HeaderFilterOptions, c as HeaderFilterObject, T as TableDesktopProps, O as Order, R as RowId } from '../TableDesktop-Z0KE59L4.js';
5
+ export { B as BulkChanges, j as BulkChangesDialogProps, E as EditableCellType, k as ExportCsvDialogProps, i as TableColumnConfigurationMenuProps, d as TableDesktop, e as TableDesktopFooter, f as TableDesktopFooterProps, g as TableDesktopToolbar, h as TableDesktopToolbarProps, U as UpdateEditableCellParams } from '../TableDesktop-Z0KE59L4.js';
6
6
  import { Control, ControllerRenderProps, ControllerFieldState, UseFormTrigger, UseFormReturn, FieldValues } from 'react-hook-form';
7
7
  import { UseMutateAsyncFunction } from 'react-query';
8
8
  import { SxProps, Theme, MenuProps, Typography } from '@mui/material';
@@ -930,6 +930,7 @@ type SmartMultipleSelectProps = {
930
930
  inputLabel?: string;
931
931
  variant?: 'standard' | 'filled' | 'outlined';
932
932
  size?: 'small' | 'medium';
933
+ error?: boolean;
933
934
  values?: Option[];
934
935
  defaultValues?: Option[];
935
936
  onOpen?: () => void;
@@ -1006,7 +1007,7 @@ declare const Table: ({ appliedFilters, data, doNotCalculateRows, headCells, isL
1006
1007
  type TableDesktopEditableFieldProps = {
1007
1008
  headCell: HeadCell;
1008
1009
  editInitialValue?: any;
1009
- rowId?: number;
1010
+ rowId?: RowId;
1010
1011
  disabled?: boolean;
1011
1012
  showCheckboxLabel?: boolean;
1012
1013
  variant?: 'standard' | 'outlined' | 'filled';
@@ -1017,7 +1018,7 @@ declare const TableDesktopEditableField: FC<TableDesktopEditableFieldProps>;
1017
1018
 
1018
1019
  type TableDesktopCellProps = {
1019
1020
  editInitialValue: any;
1020
- rowId: number;
1021
+ rowId: RowId;
1021
1022
  enableEditMode: boolean;
1022
1023
  disabled?: boolean;
1023
1024
  readOnlyValue: string | number | boolean;
@@ -1130,4 +1131,4 @@ declare const SvgIconCompare: (props: SVGProps<SVGSVGElement>) => react_jsx_runt
1130
1131
 
1131
1132
  declare const SvgIconChart: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
1132
1133
 
1133
- export { ActiveFiltersIconButton, AlertDialog, AlertDialogFullScreen, AppLabel, AppliedTableFiltersDisplay, AutocompleteFilterMenuContent, BackHeader, BottomBar, _default$k as BoxButton, CheckboxFilterMenuContent, ClearFiltersConfirmationDialog, CompanyLogo, ConfirmationDialog, ControlledCheckbox, ControlledNumberInput, ControlledNumericField, ControlledSelectWithArray, ControlledSelectWithObject, ControlledValidTextInput, DataGrid, Date, _default$c as DeleteSubstitutionDialogContent, _default$b as DeleteUserDialogContent, DynamicOverflowTooltip, _default$j as ExtendedButton, FileCard, _default$i as FilledButton, _default$h as FilledButtonLg, _default$a as FilledLabel, FilterGroupSelector, FilterOptionsCheckboxes, FilterSimpleSelector, _default$9 as FixedFooter, HeadCell, Header, HeaderFilterObject, HeaderFilterOptions, HeaderFilters, SvgIconChart as IconChart, SvgIconCompare as IconCompare, _default$g as ImageButton, LabeledValueList, VirtualizedList as List, Loading, LocationsSectionInfo, Notes, Numpad, _default$8 as NumpadInput, NumpadPlus, Order, _default$f as OutlinedButton, _default$e as OutlinedButtonLg, PaginationForTable as Pagination, PhoneInput, _default$d as Pin, ActionButton as PinnedApp, PlusMinusInput, ProductBust, ProductImage, RenderAvatar, RenderContentList, RoundButton, RowProductCard, ScrollableDialog, SearchAndFilterHeader, _default$7 as SearchAndFilterHeaderForTable, SearchFieldDebounced, SearchHeader, _default$6 as SearchWithFilters, _default$5 as SearchWithFiltersForTable, SectionName, SmartMultipleSelect, SmartSelect, SmartTableHeader, SmartTableHeaderFilterMenu, SquareButton, _default$4 as SquareLabel, _default$3 as Switch, Table, TableDesktopCell, TableDesktopEditableField, TableEmptyResult, _default$2 as TableHeader, TableLoading, TextDivider, _default$1 as TheToolbar, ThemedDateRangePicker, ToastMessage, TwoButtonDialog, UploadButton, _default as UserBust, icons };
1134
+ export { ActiveFiltersIconButton, AlertDialog, AlertDialogFullScreen, AppLabel, AppliedTableFiltersDisplay, AutocompleteFilterMenuContent, BackHeader, BottomBar, _default$k as BoxButton, CheckboxFilterMenuContent, ClearFiltersConfirmationDialog, CompanyLogo, ConfirmationDialog, ControlledCheckbox, ControlledNumberInput, ControlledNumericField, ControlledSelectWithArray, ControlledSelectWithObject, ControlledValidTextInput, DataGrid, Date, _default$c as DeleteSubstitutionDialogContent, _default$b as DeleteUserDialogContent, DynamicOverflowTooltip, _default$j as ExtendedButton, FileCard, _default$i as FilledButton, _default$h as FilledButtonLg, _default$a as FilledLabel, FilterGroupSelector, FilterOptionsCheckboxes, FilterSimpleSelector, _default$9 as FixedFooter, HeadCell, Header, HeaderFilterObject, HeaderFilterOptions, HeaderFilters, SvgIconChart as IconChart, SvgIconCompare as IconCompare, _default$g as ImageButton, LabeledValueList, VirtualizedList as List, Loading, LocationsSectionInfo, Notes, Numpad, _default$8 as NumpadInput, NumpadPlus, Order, _default$f as OutlinedButton, _default$e as OutlinedButtonLg, PaginationForTable as Pagination, PhoneInput, _default$d as Pin, ActionButton as PinnedApp, PlusMinusInput, ProductBust, ProductImage, RenderAvatar, RenderContentList, RoundButton, RowId, RowProductCard, ScrollableDialog, SearchAndFilterHeader, _default$7 as SearchAndFilterHeaderForTable, SearchFieldDebounced, SearchHeader, _default$6 as SearchWithFilters, _default$5 as SearchWithFiltersForTable, SectionName, SmartMultipleSelect, SmartSelect, SmartTableHeader, SmartTableHeaderFilterMenu, SquareButton, _default$4 as SquareLabel, _default$3 as Switch, Table, TableDesktopCell, TableDesktopEditableField, TableEmptyResult, _default$2 as TableHeader, TableLoading, TextDivider, _default$1 as TheToolbar, ThemedDateRangePicker, ToastMessage, TwoButtonDialog, UploadButton, _default as UserBust, icons };
@@ -3463,7 +3463,7 @@ var CheckboxFilterMenuContent = ({
3463
3463
  )
3464
3464
  }
3465
3465
  ),
3466
- /* @__PURE__ */ jsx73(Divider2, {}),
3466
+ /* @__PURE__ */ jsx73(Divider2, { sx: { mt: 0.5 } }),
3467
3467
  /* @__PURE__ */ jsxs42(
3468
3468
  Box13,
3469
3469
  {
@@ -7081,6 +7081,7 @@ var SmartMultipleSelect = ({
7081
7081
  inputLabel,
7082
7082
  variant = "standard",
7083
7083
  size,
7084
+ error,
7084
7085
  values,
7085
7086
  defaultValues,
7086
7087
  onChange,
@@ -7135,37 +7136,47 @@ var SmartMultipleSelect = ({
7135
7136
  option.value ?? index
7136
7137
  );
7137
7138
  }) });
7138
- return /* @__PURE__ */ jsxs78(FormControl4, { fullWidth: true, variant, children: [
7139
- /* @__PURE__ */ jsx114(InputLabel4, { children: inputLabel }),
7140
- /* @__PURE__ */ jsx114(
7141
- Select3,
7142
- {
7143
- multiple: true,
7144
- size,
7145
- disabled,
7146
- value: values ?? localValues,
7147
- defaultValue: defaultValues,
7148
- onOpen,
7149
- onClose: () => onClose?.(localValues),
7150
- renderValue: (selectedValues) => {
7151
- const valuesString = selectedValues.map((v) => v.label)?.join(", ");
7152
- return /* @__PURE__ */ jsx114(DynamicOverflowTooltip, { tooltipDescription: valuesString, children: valuesString });
7153
- },
7154
- children: isLoading ? /* @__PURE__ */ jsx114(
7155
- Box35,
7139
+ return /* @__PURE__ */ jsxs78(
7140
+ FormControl4,
7141
+ {
7142
+ fullWidth: true,
7143
+ variant,
7144
+ size,
7145
+ disabled,
7146
+ error,
7147
+ children: [
7148
+ /* @__PURE__ */ jsx114(InputLabel4, { children: inputLabel }),
7149
+ /* @__PURE__ */ jsx114(
7150
+ Select3,
7156
7151
  {
7157
- sx: {
7158
- display: "flex",
7159
- justifyContent: "center",
7160
- alignItems: "center"
7152
+ multiple: true,
7153
+ label: inputLabel,
7154
+ error,
7155
+ value: values ?? localValues,
7156
+ defaultValue: defaultValues,
7157
+ onOpen,
7158
+ onClose: () => onClose?.(localValues),
7159
+ renderValue: (selectedValues) => {
7160
+ const valuesString = selectedValues.map((v) => v.label)?.join(", ");
7161
+ return /* @__PURE__ */ jsx114(DynamicOverflowTooltip, { tooltipDescription: valuesString, children: valuesString });
7161
7162
  },
7162
- children: /* @__PURE__ */ jsx114(CircularProgress4, { size: 24 })
7163
+ children: isLoading ? /* @__PURE__ */ jsx114(
7164
+ Box35,
7165
+ {
7166
+ sx: {
7167
+ display: "flex",
7168
+ justifyContent: "center",
7169
+ alignItems: "center"
7170
+ },
7171
+ children: /* @__PURE__ */ jsx114(CircularProgress4, { size: 24 })
7172
+ }
7173
+ ) : renderMenuContent()
7163
7174
  }
7164
- ) : renderMenuContent()
7165
- }
7166
- ),
7167
- helperText && /* @__PURE__ */ jsx114(FormHelperText3, { children: helperText })
7168
- ] });
7175
+ ),
7176
+ helperText && /* @__PURE__ */ jsx114(FormHelperText3, { children: helperText })
7177
+ ]
7178
+ }
7179
+ );
7169
7180
  };
7170
7181
 
7171
7182
  // src/components/SmartSelect/SmartSelect.tsx
@@ -8005,7 +8016,7 @@ var TableDesktopRows = ({
8005
8016
  data,
8006
8017
  RenderItem,
8007
8018
  visibleHeadCells,
8008
- keyField,
8019
+ getRowId,
8009
8020
  order,
8010
8021
  orderBy,
8011
8022
  disableInternalSort,
@@ -8018,7 +8029,8 @@ var TableDesktopRows = ({
8018
8029
  }) => {
8019
8030
  const sortedData = disableInternalSort ? data : stableSort2(data, getComparator(order, orderBy));
8020
8031
  return sortedData.map((row, index) => {
8021
- const isItemSelected = selectedRows.has(row[keyField]);
8032
+ const rowId = getRowId(row);
8033
+ const isItemSelected = selectedRows.has(rowId);
8022
8034
  return /* @__PURE__ */ jsx124(
8023
8035
  RenderItem,
8024
8036
  {
@@ -8030,12 +8042,12 @@ var TableDesktopRows = ({
8030
8042
  enableEditMode,
8031
8043
  enableCheckboxSelection,
8032
8044
  rowHeight,
8033
- rowId: row[keyField],
8045
+ rowId,
8034
8046
  onRowCheckboxChange,
8035
8047
  visibleHeadCells
8036
8048
  }
8037
8049
  },
8038
- row[keyField] ?? index
8050
+ rowId ?? index
8039
8051
  );
8040
8052
  });
8041
8053
  };
@@ -8136,6 +8148,12 @@ var TableEmptyResult_default = TableEmptyResult;
8136
8148
 
8137
8149
  // src/components/TableDesktop/TableDesktop.tsx
8138
8150
  import { Fragment as Fragment14, jsx as jsx127, jsxs as jsxs88 } from "react/jsx-runtime";
8151
+ var resolveKeyValue = (keyField, rowData) => {
8152
+ if (typeof keyField === "string") {
8153
+ return rowData[keyField];
8154
+ }
8155
+ return keyField?.(rowData);
8156
+ };
8139
8157
  var TableDesktop = ({
8140
8158
  data = [],
8141
8159
  headCells,
@@ -8168,14 +8186,14 @@ var TableDesktop = ({
8168
8186
  const [orderBy, setOrderBy] = useState19(
8169
8187
  appliedFilters?.sortField || "delivery_date"
8170
8188
  );
8171
- const [selectedRows, setSelectedRows] = useState19(
8172
- /* @__PURE__ */ new Set()
8173
- );
8189
+ const [selectedRows, setSelectedRows] = useState19(/* @__PURE__ */ new Set());
8174
8190
  const [isRowsFromAllPagesSelected, setIsRowsFromAllPagesSelected] = useState19(false);
8175
8191
  const [isBulkChangesMode, setIsBulkChangesMode] = useState19(false);
8176
8192
  const numRows = data.length;
8177
8193
  const numSelectedRows = useMemo3(() => {
8178
- const currentPageIds = new Set(data.map((row) => row[keyField]));
8194
+ const currentPageIds = new Set(
8195
+ data.map((row) => resolveKeyValue(keyField, row))
8196
+ );
8179
8197
  return [...selectedRows].filter((id) => currentPageIds.has(id)).length;
8180
8198
  }, [data, selectedRows, keyField]);
8181
8199
  const isEveryRowInPageSelected = numRows > 0 && numSelectedRows === numRows;
@@ -8196,7 +8214,9 @@ var TableDesktop = ({
8196
8214
  }
8197
8215
  };
8198
8216
  const selectAllRowsInPage = () => {
8199
- const allRowsIds = new Set(data.map((obj) => obj[keyField]));
8217
+ const allRowsIds = new Set(
8218
+ data.map((row) => resolveKeyValue(keyField, row))
8219
+ );
8200
8220
  setSelectedRows(allRowsIds);
8201
8221
  };
8202
8222
  const resetSelectedRows = () => {
@@ -8275,7 +8295,7 @@ var TableDesktop = ({
8275
8295
  data,
8276
8296
  RenderItem,
8277
8297
  visibleHeadCells,
8278
- keyField,
8298
+ getRowId: (rowData) => resolveKeyValue(keyField, rowData),
8279
8299
  order,
8280
8300
  orderBy,
8281
8301
  disableInternalSort,
@@ -8418,7 +8438,7 @@ var TableDesktopSmartMultipleSelect = ({
8418
8438
  onUpdateEditableCell
8419
8439
  }) => {
8420
8440
  const defaultValues = useMemo4(() => {
8421
- return initialValue.map((val) => ({
8441
+ return initialValue?.map((val) => ({
8422
8442
  value: val.id,
8423
8443
  label: val[fieldName].toString()
8424
8444
  }));
@@ -8440,11 +8460,12 @@ var TableDesktopSmartMultipleSelect = ({
8440
8460
  },
8441
8461
  onClose: (values) => {
8442
8462
  const optionsValues = values.map((option) => option.value ?? "");
8463
+ const optionsLabels = values.map((option) => option.label ?? "");
8443
8464
  onUpdateEditableCell?.({
8444
8465
  rowId,
8445
8466
  columnId,
8446
8467
  value: optionsValues,
8447
- label: optionsValues
8468
+ label: optionsLabels
8448
8469
  });
8449
8470
  }
8450
8471
  }
@@ -8702,10 +8723,9 @@ var TableDesktopEditableField = ({
8702
8723
  date: /* @__PURE__ */ jsx131(
8703
8724
  DatePicker,
8704
8725
  {
8705
- defaultValue: moment2(editInitialValue),
8726
+ defaultValue: editInitialValue ? moment2(editInitialValue, "HH:mm:ss") : void 0,
8706
8727
  label: inputLabel,
8707
8728
  format: "DD/MM/YYYY",
8708
- sx: { overflowY: "hidden" },
8709
8729
  onAccept: (value) => {
8710
8730
  const formattedValue = value?.format("YYYY-MM-DD") ?? null;
8711
8731
  const formattedLabel = value?.format("DD/MM/YYYY") ?? null;
@@ -8722,7 +8742,8 @@ var TableDesktopEditableField = ({
8722
8742
  clearButton: { sx: { p: 0.5 } },
8723
8743
  openPickerButton: { sx: { p: 0 } },
8724
8744
  textField: {
8725
- variant: "standard",
8745
+ variant,
8746
+ size,
8726
8747
  error: false
8727
8748
  }
8728
8749
  }
@@ -8731,9 +8752,8 @@ var TableDesktopEditableField = ({
8731
8752
  time: /* @__PURE__ */ jsx131(
8732
8753
  TimePicker,
8733
8754
  {
8734
- defaultValue: moment2(editInitialValue, "HH:mm:ss"),
8755
+ defaultValue: editInitialValue ? moment2(editInitialValue, "HH:mm:ss") : void 0,
8735
8756
  label: inputLabel,
8736
- sx: { overflowY: "hidden" },
8737
8757
  onAccept: (value) => {
8738
8758
  const formattedValue = value?.format("HH:mm") ?? null;
8739
8759
  onUpdateEditableCell?.({
@@ -8749,7 +8769,8 @@ var TableDesktopEditableField = ({
8749
8769
  clearButton: { sx: { p: 0.5 } },
8750
8770
  openPickerButton: { sx: { p: 0 } },
8751
8771
  textField: {
8752
- variant: "standard",
8772
+ variant,
8773
+ size,
8753
8774
  error: false
8754
8775
  }
8755
8776
  }
@@ -8803,6 +8824,7 @@ var TableDesktopFooter = ({
8803
8824
  variant: "text",
8804
8825
  onClick: () => refetchData(),
8805
8826
  disabled: isFetching,
8827
+ "aria-label": "refresh-button",
8806
8828
  sx: {
8807
8829
  ml: 1,
8808
8830
  gap: 1
@@ -9162,7 +9184,7 @@ var TableDesktopToolbar = ({
9162
9184
  )
9163
9185
  ] }) : /* @__PURE__ */ jsxs91(Box42, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
9164
9186
  renderInfoIcons,
9165
- renderExportCsvDialog ? /* @__PURE__ */ jsx134(Tooltip11, { title: "Download Customer List", children: /* @__PURE__ */ jsx134("span", { style: { display: "flex", alignItems: "center" }, children: /* @__PURE__ */ jsx134(
9187
+ renderExportCsvDialog ? /* @__PURE__ */ jsx134(Tooltip11, { title: "Download List", children: /* @__PURE__ */ jsx134("span", { style: { display: "flex", alignItems: "center" }, children: /* @__PURE__ */ jsx134(
9166
9188
  IconButton6,
9167
9189
  {
9168
9190
  disableRipple: true,