@natoora-libs/core 0.2.11 → 0.2.12

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, SelectProps, MenuProps, Typography } from '@mui/material';
@@ -870,6 +870,7 @@ type SmartMultipleSelectProps = {
870
870
  inputLabel?: string;
871
871
  variant?: SelectProps['variant'];
872
872
  size?: SelectProps['size'];
873
+ error?: boolean;
873
874
  values?: Option[];
874
875
  defaultValues?: Option[];
875
876
  onOpen?: () => void;
@@ -947,7 +948,7 @@ declare const Table: ({ appliedFilters, data, doNotCalculateRows, headCells, isL
947
948
  type TableDesktopEditableFieldProps = {
948
949
  headCell: HeadCell;
949
950
  editInitialValue?: any;
950
- rowId?: number;
951
+ rowId?: RowId;
951
952
  disabled?: boolean;
952
953
  showCheckboxLabel?: boolean;
953
954
  variant?: 'standard' | 'outlined' | 'filled';
@@ -958,7 +959,7 @@ declare const TableDesktopEditableField: FC<TableDesktopEditableFieldProps>;
958
959
 
959
960
  type TableDesktopCellProps = {
960
961
  editInitialValue: any;
961
- rowId: number;
962
+ rowId: RowId;
962
963
  enableEditMode: boolean;
963
964
  disabled?: boolean;
964
965
  readOnlyValue: string | number | boolean;
@@ -1071,4 +1072,4 @@ declare const SvgIconCompare: (props: SVGProps<SVGSVGElement>) => react_jsx_runt
1071
1072
 
1072
1073
  declare const SvgIconChart: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
1073
1074
 
1074
- 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 };
1075
+ 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, SelectProps, MenuProps, Typography } from '@mui/material';
@@ -870,6 +870,7 @@ type SmartMultipleSelectProps = {
870
870
  inputLabel?: string;
871
871
  variant?: SelectProps['variant'];
872
872
  size?: SelectProps['size'];
873
+ error?: boolean;
873
874
  values?: Option[];
874
875
  defaultValues?: Option[];
875
876
  onOpen?: () => void;
@@ -947,7 +948,7 @@ declare const Table: ({ appliedFilters, data, doNotCalculateRows, headCells, isL
947
948
  type TableDesktopEditableFieldProps = {
948
949
  headCell: HeadCell;
949
950
  editInitialValue?: any;
950
- rowId?: number;
951
+ rowId?: RowId;
951
952
  disabled?: boolean;
952
953
  showCheckboxLabel?: boolean;
953
954
  variant?: 'standard' | 'outlined' | 'filled';
@@ -958,7 +959,7 @@ declare const TableDesktopEditableField: FC<TableDesktopEditableFieldProps>;
958
959
 
959
960
  type TableDesktopCellProps = {
960
961
  editInitialValue: any;
961
- rowId: number;
962
+ rowId: RowId;
962
963
  enableEditMode: boolean;
963
964
  disabled?: boolean;
964
965
  readOnlyValue: string | number | boolean;
@@ -1071,4 +1072,4 @@ declare const SvgIconCompare: (props: SVGProps<SVGSVGElement>) => react_jsx_runt
1071
1072
 
1072
1073
  declare const SvgIconChart: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
1073
1074
 
1074
- 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 };
1075
+ 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,
@@ -7136,38 +7137,48 @@ var SmartMultipleSelect = ({
7136
7137
  option.value ?? index
7137
7138
  );
7138
7139
  }) });
7139
- return /* @__PURE__ */ jsxs78(FormControl4, { fullWidth: true, size, variant, disabled, children: [
7140
- /* @__PURE__ */ jsx114(InputLabel4, { children: inputLabel }),
7141
- /* @__PURE__ */ jsx114(
7142
- Select3,
7143
- {
7144
- multiple: true,
7145
- size,
7146
- disabled,
7147
- value: values ?? localValues,
7148
- defaultValue: defaultValues,
7149
- MenuProps: menuProps,
7150
- onOpen,
7151
- onClose: () => onClose?.(localValues),
7152
- renderValue: (selectedValues) => {
7153
- const valuesString = selectedValues.map((v) => v.label)?.join(", ");
7154
- return /* @__PURE__ */ jsx114(DynamicOverflowTooltip, { tooltipDescription: valuesString, children: valuesString });
7155
- },
7156
- children: isLoading ? /* @__PURE__ */ jsx114(
7157
- Box35,
7140
+ return /* @__PURE__ */ jsxs78(
7141
+ FormControl4,
7142
+ {
7143
+ fullWidth: true,
7144
+ variant,
7145
+ size,
7146
+ disabled,
7147
+ error,
7148
+ children: [
7149
+ /* @__PURE__ */ jsx114(InputLabel4, { children: inputLabel }),
7150
+ /* @__PURE__ */ jsx114(
7151
+ Select3,
7158
7152
  {
7159
- sx: {
7160
- display: "flex",
7161
- justifyContent: "center",
7162
- alignItems: "center"
7153
+ multiple: true,
7154
+ label: inputLabel,
7155
+ error,
7156
+ value: values ?? localValues,
7157
+ defaultValue: defaultValues,
7158
+ MenuProps: menuProps,
7159
+ onOpen,
7160
+ onClose: () => onClose?.(localValues),
7161
+ renderValue: (selectedValues) => {
7162
+ const valuesString = selectedValues.map((v) => v.label)?.join(", ");
7163
+ return /* @__PURE__ */ jsx114(DynamicOverflowTooltip, { tooltipDescription: valuesString, children: valuesString });
7163
7164
  },
7164
- children: /* @__PURE__ */ jsx114(CircularProgress4, { size: 24 })
7165
+ children: isLoading ? /* @__PURE__ */ jsx114(
7166
+ Box35,
7167
+ {
7168
+ sx: {
7169
+ display: "flex",
7170
+ justifyContent: "center",
7171
+ alignItems: "center"
7172
+ },
7173
+ children: /* @__PURE__ */ jsx114(CircularProgress4, { size: 24 })
7174
+ }
7175
+ ) : renderMenuContent()
7165
7176
  }
7166
- ) : renderMenuContent()
7167
- }
7168
- ),
7169
- helperText && /* @__PURE__ */ jsx114(FormHelperText3, { children: helperText })
7170
- ] });
7177
+ ),
7178
+ helperText && /* @__PURE__ */ jsx114(FormHelperText3, { children: helperText })
7179
+ ]
7180
+ }
7181
+ );
7171
7182
  };
7172
7183
 
7173
7184
  // src/components/SmartSelect/SmartSelect.tsx
@@ -7992,7 +8003,7 @@ var TableDesktopRows = ({
7992
8003
  data,
7993
8004
  RenderItem,
7994
8005
  visibleHeadCells,
7995
- keyField,
8006
+ getRowId,
7996
8007
  order,
7997
8008
  orderBy,
7998
8009
  disableInternalSort,
@@ -8005,7 +8016,8 @@ var TableDesktopRows = ({
8005
8016
  }) => {
8006
8017
  const sortedData = disableInternalSort ? data : stableSort2(data, getComparator(order, orderBy));
8007
8018
  return sortedData.map((row, index) => {
8008
- const isItemSelected = selectedRows.has(row[keyField]);
8019
+ const rowId = getRowId(row);
8020
+ const isItemSelected = selectedRows.has(rowId);
8009
8021
  return /* @__PURE__ */ jsx124(
8010
8022
  RenderItem,
8011
8023
  {
@@ -8017,12 +8029,12 @@ var TableDesktopRows = ({
8017
8029
  enableEditMode,
8018
8030
  enableCheckboxSelection,
8019
8031
  rowHeight,
8020
- rowId: row[keyField],
8032
+ rowId,
8021
8033
  onRowCheckboxChange,
8022
8034
  visibleHeadCells
8023
8035
  }
8024
8036
  },
8025
- row[keyField] ?? index
8037
+ rowId ?? index
8026
8038
  );
8027
8039
  });
8028
8040
  };
@@ -8123,6 +8135,12 @@ var TableEmptyResult_default = TableEmptyResult;
8123
8135
 
8124
8136
  // src/components/TableDesktop/TableDesktop.tsx
8125
8137
  import { Fragment as Fragment14, jsx as jsx127, jsxs as jsxs88 } from "react/jsx-runtime";
8138
+ var resolveKeyValue = (keyField, rowData) => {
8139
+ if (typeof keyField === "string") {
8140
+ return rowData[keyField];
8141
+ }
8142
+ return keyField?.(rowData);
8143
+ };
8126
8144
  var TableDesktop = ({
8127
8145
  data = [],
8128
8146
  headCells,
@@ -8155,14 +8173,14 @@ var TableDesktop = ({
8155
8173
  const [orderBy, setOrderBy] = useState18(
8156
8174
  appliedFilters?.sortField || "delivery_date"
8157
8175
  );
8158
- const [selectedRows, setSelectedRows] = useState18(
8159
- /* @__PURE__ */ new Set()
8160
- );
8176
+ const [selectedRows, setSelectedRows] = useState18(/* @__PURE__ */ new Set());
8161
8177
  const [isRowsFromAllPagesSelected, setIsRowsFromAllPagesSelected] = useState18(false);
8162
8178
  const [isBulkChangesMode, setIsBulkChangesMode] = useState18(false);
8163
8179
  const numRows = data.length;
8164
8180
  const numSelectedRows = useMemo4(() => {
8165
- const currentPageIds = new Set(data.map((row) => row[keyField]));
8181
+ const currentPageIds = new Set(
8182
+ data.map((row) => resolveKeyValue(keyField, row))
8183
+ );
8166
8184
  return [...selectedRows].filter((id) => currentPageIds.has(id)).length;
8167
8185
  }, [data, selectedRows, keyField]);
8168
8186
  const isEveryRowInPageSelected = numRows > 0 && numSelectedRows === numRows;
@@ -8183,7 +8201,9 @@ var TableDesktop = ({
8183
8201
  }
8184
8202
  };
8185
8203
  const selectAllRowsInPage = () => {
8186
- const allRowsIds = new Set(data.map((obj) => obj[keyField]));
8204
+ const allRowsIds = new Set(
8205
+ data.map((row) => resolveKeyValue(keyField, row))
8206
+ );
8187
8207
  setSelectedRows(allRowsIds);
8188
8208
  };
8189
8209
  const resetSelectedRows = () => {
@@ -8262,7 +8282,7 @@ var TableDesktop = ({
8262
8282
  data,
8263
8283
  RenderItem,
8264
8284
  visibleHeadCells,
8265
- keyField,
8285
+ getRowId: (rowData) => resolveKeyValue(keyField, rowData),
8266
8286
  order,
8267
8287
  orderBy,
8268
8288
  disableInternalSort,
@@ -8405,7 +8425,7 @@ var TableDesktopSmartMultipleSelect = ({
8405
8425
  onUpdateEditableCell
8406
8426
  }) => {
8407
8427
  const defaultValues = useMemo5(() => {
8408
- return initialValue.map((val) => ({
8428
+ return initialValue?.map((val) => ({
8409
8429
  value: val.id,
8410
8430
  label: val[fieldName].toString()
8411
8431
  }));
@@ -8428,11 +8448,12 @@ var TableDesktopSmartMultipleSelect = ({
8428
8448
  },
8429
8449
  onClose: (values) => {
8430
8450
  const optionsValues = values.map((option) => option.value ?? "");
8451
+ const optionsLabels = values.map((option) => option.label ?? "");
8431
8452
  onUpdateEditableCell?.({
8432
8453
  rowId,
8433
8454
  columnId,
8434
8455
  value: optionsValues,
8435
- label: optionsValues
8456
+ label: optionsLabels
8436
8457
  });
8437
8458
  }
8438
8459
  }
@@ -8691,10 +8712,9 @@ var TableDesktopEditableField = ({
8691
8712
  date: /* @__PURE__ */ jsx131(
8692
8713
  DatePicker,
8693
8714
  {
8694
- defaultValue: moment2(editInitialValue),
8715
+ defaultValue: editInitialValue ? moment2(editInitialValue, "HH:mm:ss") : void 0,
8695
8716
  label: inputLabel,
8696
8717
  format: "DD/MM/YYYY",
8697
- sx: { overflowY: "hidden" },
8698
8718
  onAccept: (value) => {
8699
8719
  const formattedValue = value?.format("YYYY-MM-DD") ?? null;
8700
8720
  const formattedLabel = value?.format("DD/MM/YYYY") ?? null;
@@ -8711,7 +8731,8 @@ var TableDesktopEditableField = ({
8711
8731
  clearButton: { sx: { p: 0.5 } },
8712
8732
  openPickerButton: { sx: { p: 0 } },
8713
8733
  textField: {
8714
- variant: "standard",
8734
+ variant,
8735
+ size,
8715
8736
  error: false
8716
8737
  }
8717
8738
  }
@@ -8720,9 +8741,8 @@ var TableDesktopEditableField = ({
8720
8741
  time: /* @__PURE__ */ jsx131(
8721
8742
  TimePicker,
8722
8743
  {
8723
- defaultValue: moment2(editInitialValue, "HH:mm:ss"),
8744
+ defaultValue: editInitialValue ? moment2(editInitialValue, "HH:mm:ss") : void 0,
8724
8745
  label: inputLabel,
8725
- sx: { overflowY: "hidden" },
8726
8746
  onAccept: (value) => {
8727
8747
  const formattedValue = value?.format("HH:mm") ?? null;
8728
8748
  onUpdateEditableCell?.({
@@ -8738,7 +8758,8 @@ var TableDesktopEditableField = ({
8738
8758
  clearButton: { sx: { p: 0.5 } },
8739
8759
  openPickerButton: { sx: { p: 0 } },
8740
8760
  textField: {
8741
- variant: "standard",
8761
+ variant,
8762
+ size,
8742
8763
  error: false
8743
8764
  }
8744
8765
  }
@@ -9152,7 +9173,7 @@ var TableDesktopToolbar = ({
9152
9173
  )
9153
9174
  ] }) : /* @__PURE__ */ jsxs91(Box43, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
9154
9175
  renderInfoIcons,
9155
- renderExportCsvDialog ? /* @__PURE__ */ jsx134(Tooltip11, { title: "Download Customer List", children: /* @__PURE__ */ jsx134("span", { style: { display: "flex", alignItems: "center" }, children: /* @__PURE__ */ jsx134(
9176
+ renderExportCsvDialog ? /* @__PURE__ */ jsx134(Tooltip11, { title: "Download List", children: /* @__PURE__ */ jsx134("span", { style: { display: "flex", alignItems: "center" }, children: /* @__PURE__ */ jsx134(
9156
9177
  IconButton6,
9157
9178
  {
9158
9179
  disableRipple: true,