@erpsquad/common 1.8.108 → 1.8.109

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (242) hide show
  1. package/dist/_virtual/index/index.esm10.js +4 -2
  2. package/dist/_virtual/index/index.esm10.js.map +1 -1
  3. package/dist/_virtual/index/index.esm11.js +2 -4
  4. package/dist/_virtual/index/index.esm11.js.map +1 -1
  5. package/dist/_virtual/index/index10.js +1 -1
  6. package/dist/_virtual/index/index11.js +1 -1
  7. package/dist/components/accordion/accordion.d.ts +1 -1
  8. package/dist/components/action-bar/action-bar.d.ts +1 -1
  9. package/dist/components/checkbox/checkbox.d.ts +1 -1
  10. package/dist/components/date-picker/date-picker.d.ts +1 -1
  11. package/dist/components/footer/footer.d.ts +1 -1
  12. package/dist/components/form-control/form-builder/form-builder-element/media.d.ts +1 -1
  13. package/dist/components/form-control/form-builder/form-builder-element/phone.d.ts +1 -1
  14. package/dist/components/form-control/form-builder/form-builder-element/select.d.ts +1 -1
  15. package/dist/components/form-control/form-builder/form-builder-element/text.d.ts +1 -1
  16. package/dist/components/form-control/form-builder/form-builder-element/time.d.ts +1 -1
  17. package/dist/components/form-control/form-parser/form-section/index.esm.js +4 -5
  18. package/dist/components/form-control/form-parser/form-section/index.esm.js.map +1 -1
  19. package/dist/components/form-control/form-parser/form-section/index.js +22 -22
  20. package/dist/components/form-control/form-parser/form-section/index.js.map +1 -1
  21. package/dist/components/form-control/form-parser/form-switcher.d.ts +1 -1
  22. package/dist/components/icons/action-arrow.d.ts +3 -3
  23. package/dist/components/icons/add-circle.d.ts +3 -3
  24. package/dist/components/icons/arrow-bidirectional.d.ts +3 -3
  25. package/dist/components/icons/arrow-circle-down.d.ts +3 -3
  26. package/dist/components/icons/arrow-down-three.d.ts +3 -3
  27. package/dist/components/icons/arrow-down-two.d.ts +3 -3
  28. package/dist/components/icons/arrow-down.d.ts +3 -3
  29. package/dist/components/icons/arrow-up-down.d.ts +3 -3
  30. package/dist/components/icons/arrow-up-two.d.ts +3 -3
  31. package/dist/components/icons/assignments.d.ts +3 -3
  32. package/dist/components/icons/blank-circle.d.ts +3 -3
  33. package/dist/components/icons/block-filled.d.ts +3 -3
  34. package/dist/components/icons/calendar-add.d.ts +3 -3
  35. package/dist/components/icons/calendar.d.ts +3 -3
  36. package/dist/components/icons/checkbox-square.d.ts +3 -3
  37. package/dist/components/icons/circular-arrow-setting.d.ts +3 -3
  38. package/dist/components/icons/clock.d.ts +3 -3
  39. package/dist/components/icons/close.d.ts +3 -3
  40. package/dist/components/icons/coin-outline.d.ts +3 -3
  41. package/dist/components/icons/copy.d.ts +3 -3
  42. package/dist/components/icons/coupon.d.ts +3 -3
  43. package/dist/components/icons/cross-hire.d.ts +3 -3
  44. package/dist/components/icons/custom-styled-icon.d.ts +3 -3
  45. package/dist/components/icons/dashboard.d.ts +3 -3
  46. package/dist/components/icons/document-download.d.ts +3 -3
  47. package/dist/components/icons/document.d.ts +3 -3
  48. package/dist/components/icons/dollar-circle-filled.d.ts +3 -3
  49. package/dist/components/icons/dollar-circle.d.ts +3 -3
  50. package/dist/components/icons/edit.d.ts +3 -3
  51. package/dist/components/icons/email.d.ts +3 -3
  52. package/dist/components/icons/export.d.ts +3 -3
  53. package/dist/components/icons/eye-off.d.ts +3 -3
  54. package/dist/components/icons/eye-plus-circle.d.ts +3 -3
  55. package/dist/components/icons/eye.d.ts +3 -3
  56. package/dist/components/icons/filled-circle.d.ts +3 -3
  57. package/dist/components/icons/filter-remove.d.ts +3 -3
  58. package/dist/components/icons/filter.d.ts +3 -3
  59. package/dist/components/icons/folder-save.d.ts +3 -3
  60. package/dist/components/icons/grid.d.ts +3 -3
  61. package/dist/components/icons/hashtag.d.ts +3 -3
  62. package/dist/components/icons/image.d.ts +3 -3
  63. package/dist/components/icons/import.d.ts +3 -3
  64. package/dist/components/icons/info-circle.d.ts +3 -3
  65. package/dist/components/icons/info.d.ts +3 -3
  66. package/dist/components/icons/link-horizontal.d.ts +3 -3
  67. package/dist/components/icons/link.d.ts +3 -3
  68. package/dist/components/icons/location.d.ts +3 -3
  69. package/dist/components/icons/lowest-lead-time.d.ts +3 -3
  70. package/dist/components/icons/lowest-min-qty.d.ts +3 -3
  71. package/dist/components/icons/lowest-price.d.ts +3 -3
  72. package/dist/components/icons/more.d.ts +3 -3
  73. package/dist/components/icons/notification.d.ts +3 -3
  74. package/dist/components/icons/paper-clip.d.ts +3 -3
  75. package/dist/components/icons/paragraph.d.ts +3 -3
  76. package/dist/components/icons/payment-request.d.ts +3 -3
  77. package/dist/components/icons/phone.d.ts +3 -3
  78. package/dist/components/icons/printer.d.ts +3 -3
  79. package/dist/components/icons/process-calendar.d.ts +3 -3
  80. package/dist/components/icons/promotion.d.ts +3 -3
  81. package/dist/components/icons/radio-button.d.ts +3 -3
  82. package/dist/components/icons/receipt-filled.d.ts +3 -3
  83. package/dist/components/icons/receipt-outline.d.ts +3 -3
  84. package/dist/components/icons/receipt.d.ts +3 -3
  85. package/dist/components/icons/refresh-icon.d.ts +3 -3
  86. package/dist/components/icons/replace.d.ts +3 -3
  87. package/dist/components/icons/save.d.ts +3 -3
  88. package/dist/components/icons/search-status.d.ts +3 -3
  89. package/dist/components/icons/search.d.ts +3 -3
  90. package/dist/components/icons/settings-fallback.d.ts +3 -3
  91. package/dist/components/icons/sort-arrow-icon.d.ts +3 -3
  92. package/dist/components/icons/stacked-layer.d.ts +3 -3
  93. package/dist/components/icons/start-filled.d.ts +3 -3
  94. package/dist/components/icons/three-dot-icon.d.ts +3 -3
  95. package/dist/components/icons/tick-circle-filled.d.ts +3 -3
  96. package/dist/components/icons/tick-circle.d.ts +3 -3
  97. package/dist/components/icons/tick-octagon.d.ts +3 -3
  98. package/dist/components/icons/tick.d.ts +3 -3
  99. package/dist/components/icons/toggle-switch.d.ts +3 -3
  100. package/dist/components/icons/trash.d.ts +3 -3
  101. package/dist/components/icons/wave.d.ts +3 -3
  102. package/dist/components/icons/with-out-tick-octagon.d.ts +3 -3
  103. package/dist/components/icons/work-centre.d.ts +3 -3
  104. package/dist/components/location-select.d.ts +1 -1
  105. package/dist/components/material-editable-table/material-editable-table/index.esm.js +51 -27
  106. package/dist/components/material-editable-table/material-editable-table/index.esm.js.map +1 -1
  107. package/dist/components/material-editable-table/material-editable-table/index.js +17 -17
  108. package/dist/components/material-editable-table/material-editable-table/index.js.map +1 -1
  109. package/dist/components/material-editable-table/material-editable-table.d.ts +2 -1
  110. package/dist/components/material-table/material-table.d.ts +1 -1
  111. package/dist/components/phone-input/phone-input.d.ts +1 -1
  112. package/dist/components/providers/ERPUIProvider/index.esm.js +2 -4
  113. package/dist/components/providers/ERPUIProvider/index.esm.js.map +1 -1
  114. package/dist/components/providers/ERPUIProvider/index.js +1 -1
  115. package/dist/components/providers/ERPUIProvider/index.js.map +1 -1
  116. package/dist/components/providers/ERPUIProvider.d.ts +0 -2
  117. package/dist/components/radio/radio.d.ts +1 -1
  118. package/dist/components/select/select.d.ts +1 -1
  119. package/dist/components/switches/android-12-switch.d.ts +1 -3
  120. package/dist/components/text-field/text-field.d.ts +1 -1
  121. package/dist/components/time-picker/time-picker.d.ts +1 -1
  122. package/dist/components/upload-media/upload-media.d.ts +1 -1
  123. package/dist/contexts/page-context/index.esm.js +5 -5
  124. package/dist/contexts/page-context/index.esm.js.map +1 -1
  125. package/dist/contexts/page-context/index.js +1 -1
  126. package/dist/contexts/page-context/index.js.map +1 -1
  127. package/dist/contexts/page-context.d.ts +0 -2
  128. package/dist/hooks/apiHelper/index.esm.js.map +1 -1
  129. package/dist/hooks/apiHelper/index.js.map +1 -1
  130. package/dist/node_modules/@asseinfo/react-kanban/dist/index/index.esm.js +1 -1
  131. package/dist/node_modules/@asseinfo/react-kanban/dist/index/index.js +1 -1
  132. package/dist/node_modules/@mui/icons-material/utils/createSvgIcon/index.esm.js +1 -1
  133. package/dist/node_modules/@mui/icons-material/utils/createSvgIcon/index.js +1 -1
  134. package/dist/src/components/accordion/accordion.d.ts +1 -1
  135. package/dist/src/components/action-bar/action-bar.d.ts +1 -1
  136. package/dist/src/components/checkbox/checkbox.d.ts +1 -1
  137. package/dist/src/components/date-picker/date-picker.d.ts +1 -1
  138. package/dist/src/components/footer/footer.d.ts +1 -1
  139. package/dist/src/components/form-control/form-builder/form-builder-element/media.d.ts +1 -1
  140. package/dist/src/components/form-control/form-builder/form-builder-element/phone.d.ts +1 -1
  141. package/dist/src/components/form-control/form-builder/form-builder-element/select.d.ts +1 -1
  142. package/dist/src/components/form-control/form-builder/form-builder-element/text.d.ts +1 -1
  143. package/dist/src/components/form-control/form-builder/form-builder-element/time.d.ts +1 -1
  144. package/dist/src/components/form-control/form-parser/form-switcher.d.ts +1 -1
  145. package/dist/src/components/icons/action-arrow.d.ts +3 -3
  146. package/dist/src/components/icons/add-circle.d.ts +3 -3
  147. package/dist/src/components/icons/arrow-bidirectional.d.ts +3 -3
  148. package/dist/src/components/icons/arrow-circle-down.d.ts +3 -3
  149. package/dist/src/components/icons/arrow-down-three.d.ts +3 -3
  150. package/dist/src/components/icons/arrow-down-two.d.ts +3 -3
  151. package/dist/src/components/icons/arrow-down.d.ts +3 -3
  152. package/dist/src/components/icons/arrow-up-down.d.ts +3 -3
  153. package/dist/src/components/icons/arrow-up-two.d.ts +3 -3
  154. package/dist/src/components/icons/assignments.d.ts +3 -3
  155. package/dist/src/components/icons/blank-circle.d.ts +3 -3
  156. package/dist/src/components/icons/block-filled.d.ts +3 -3
  157. package/dist/src/components/icons/calendar-add.d.ts +3 -3
  158. package/dist/src/components/icons/calendar.d.ts +3 -3
  159. package/dist/src/components/icons/checkbox-square.d.ts +3 -3
  160. package/dist/src/components/icons/circular-arrow-setting.d.ts +3 -3
  161. package/dist/src/components/icons/clock.d.ts +3 -3
  162. package/dist/src/components/icons/close.d.ts +3 -3
  163. package/dist/src/components/icons/coin-outline.d.ts +3 -3
  164. package/dist/src/components/icons/copy.d.ts +3 -3
  165. package/dist/src/components/icons/coupon.d.ts +3 -3
  166. package/dist/src/components/icons/cross-hire.d.ts +3 -3
  167. package/dist/src/components/icons/custom-styled-icon.d.ts +3 -3
  168. package/dist/src/components/icons/dashboard.d.ts +3 -3
  169. package/dist/src/components/icons/document-download.d.ts +3 -3
  170. package/dist/src/components/icons/document.d.ts +3 -3
  171. package/dist/src/components/icons/dollar-circle-filled.d.ts +3 -3
  172. package/dist/src/components/icons/dollar-circle.d.ts +3 -3
  173. package/dist/src/components/icons/edit.d.ts +3 -3
  174. package/dist/src/components/icons/email.d.ts +3 -3
  175. package/dist/src/components/icons/export.d.ts +3 -3
  176. package/dist/src/components/icons/eye-off.d.ts +3 -3
  177. package/dist/src/components/icons/eye-plus-circle.d.ts +3 -3
  178. package/dist/src/components/icons/eye.d.ts +3 -3
  179. package/dist/src/components/icons/filled-circle.d.ts +3 -3
  180. package/dist/src/components/icons/filter-remove.d.ts +3 -3
  181. package/dist/src/components/icons/filter.d.ts +3 -3
  182. package/dist/src/components/icons/folder-save.d.ts +3 -3
  183. package/dist/src/components/icons/grid.d.ts +3 -3
  184. package/dist/src/components/icons/hashtag.d.ts +3 -3
  185. package/dist/src/components/icons/image.d.ts +3 -3
  186. package/dist/src/components/icons/import.d.ts +3 -3
  187. package/dist/src/components/icons/info-circle.d.ts +3 -3
  188. package/dist/src/components/icons/info.d.ts +3 -3
  189. package/dist/src/components/icons/link-horizontal.d.ts +3 -3
  190. package/dist/src/components/icons/link.d.ts +3 -3
  191. package/dist/src/components/icons/location.d.ts +3 -3
  192. package/dist/src/components/icons/lowest-lead-time.d.ts +3 -3
  193. package/dist/src/components/icons/lowest-min-qty.d.ts +3 -3
  194. package/dist/src/components/icons/lowest-price.d.ts +3 -3
  195. package/dist/src/components/icons/more.d.ts +3 -3
  196. package/dist/src/components/icons/notification.d.ts +3 -3
  197. package/dist/src/components/icons/paper-clip.d.ts +3 -3
  198. package/dist/src/components/icons/paragraph.d.ts +3 -3
  199. package/dist/src/components/icons/payment-request.d.ts +3 -3
  200. package/dist/src/components/icons/phone.d.ts +3 -3
  201. package/dist/src/components/icons/printer.d.ts +3 -3
  202. package/dist/src/components/icons/process-calendar.d.ts +3 -3
  203. package/dist/src/components/icons/promotion.d.ts +3 -3
  204. package/dist/src/components/icons/radio-button.d.ts +3 -3
  205. package/dist/src/components/icons/receipt-filled.d.ts +3 -3
  206. package/dist/src/components/icons/receipt-outline.d.ts +3 -3
  207. package/dist/src/components/icons/receipt.d.ts +3 -3
  208. package/dist/src/components/icons/refresh-icon.d.ts +3 -3
  209. package/dist/src/components/icons/replace.d.ts +3 -3
  210. package/dist/src/components/icons/save.d.ts +3 -3
  211. package/dist/src/components/icons/search-status.d.ts +3 -3
  212. package/dist/src/components/icons/search.d.ts +3 -3
  213. package/dist/src/components/icons/settings-fallback.d.ts +3 -3
  214. package/dist/src/components/icons/sort-arrow-icon.d.ts +3 -3
  215. package/dist/src/components/icons/stacked-layer.d.ts +3 -3
  216. package/dist/src/components/icons/start-filled.d.ts +3 -3
  217. package/dist/src/components/icons/three-dot-icon.d.ts +3 -3
  218. package/dist/src/components/icons/tick-circle-filled.d.ts +3 -3
  219. package/dist/src/components/icons/tick-circle.d.ts +3 -3
  220. package/dist/src/components/icons/tick-octagon.d.ts +3 -3
  221. package/dist/src/components/icons/tick.d.ts +3 -3
  222. package/dist/src/components/icons/toggle-switch.d.ts +3 -3
  223. package/dist/src/components/icons/trash.d.ts +3 -3
  224. package/dist/src/components/icons/wave.d.ts +3 -3
  225. package/dist/src/components/icons/with-out-tick-octagon.d.ts +3 -3
  226. package/dist/src/components/icons/work-centre.d.ts +3 -3
  227. package/dist/src/components/location-select.d.ts +1 -1
  228. package/dist/src/components/material-editable-table/material-editable-table.d.ts +2 -1
  229. package/dist/src/components/material-table/material-table.d.ts +1 -1
  230. package/dist/src/components/phone-input/phone-input.d.ts +1 -1
  231. package/dist/src/components/providers/ERPUIProvider.d.ts +0 -2
  232. package/dist/src/components/radio/radio.d.ts +1 -1
  233. package/dist/src/components/select/select.d.ts +1 -1
  234. package/dist/src/components/switches/android-12-switch.d.ts +1 -3
  235. package/dist/src/components/text-field/text-field.d.ts +1 -1
  236. package/dist/src/components/time-picker/time-picker.d.ts +1 -1
  237. package/dist/src/components/upload-media/upload-media.d.ts +1 -1
  238. package/dist/src/contexts/page-context.d.ts +0 -2
  239. package/dist/src/utils/common-utility.d.ts +1 -1
  240. package/dist/style.css +60 -60
  241. package/dist/utils/common-utility.d.ts +1 -1
  242. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- export declare const ProcessCalendar: import('@emotion/styled').StyledComponent<Pick<{}, never> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {
2
- ref?: import('react').Ref<import('react').Component<{}, any, any>>;
3
- }>;
1
+ export declare const ProcessCalendar: import('@emotion/styled').StyledComponent<import('@mui/material').SvgIconOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').SVGProps<SVGSVGElement>, "ref"> & {
2
+ ref?: import('react').Ref<SVGSVGElement>;
3
+ }, "classes" | "children" | "className" | "sx" | "style" | "color" | "fontSize" | "shapeRendering" | "htmlColor" | "inheritViewBox" | "titleAccess" | "viewBox"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
4
4
  export default ProcessCalendar;
@@ -1,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
 
3
- export declare const Promotion: import('@emotion/styled').StyledComponent<Pick<{}, never> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {
4
- ref?: React.Ref<React.Component<{}, any, any>>;
5
- }>;
3
+ export declare const Promotion: import('@emotion/styled').StyledComponent<import('@mui/material').SvgIconOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<React.SVGProps<SVGSVGElement>, "ref"> & {
4
+ ref?: React.Ref<SVGSVGElement>;
5
+ }, "classes" | "children" | "className" | "sx" | "style" | "color" | "fontSize" | "shapeRendering" | "htmlColor" | "inheritViewBox" | "titleAccess" | "viewBox"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
6
6
  export default Promotion;
@@ -1,4 +1,4 @@
1
- export declare const RadioButton: import('@emotion/styled').StyledComponent<Pick<{}, never> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {
2
- ref?: import('react').Ref<import('react').Component<{}, any, any>>;
3
- }>;
1
+ export declare const RadioButton: import('@emotion/styled').StyledComponent<import('@mui/material').SvgIconOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').SVGProps<SVGSVGElement>, "ref"> & {
2
+ ref?: import('react').Ref<SVGSVGElement>;
3
+ }, "classes" | "children" | "className" | "sx" | "style" | "color" | "fontSize" | "shapeRendering" | "htmlColor" | "inheritViewBox" | "titleAccess" | "viewBox"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
4
4
  export default RadioButton;
@@ -1,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
 
3
- export declare const ReceiptFilled: import('@emotion/styled').StyledComponent<Pick<{}, never> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {
4
- ref?: React.Ref<React.Component<{}, any, any>>;
5
- }>;
3
+ export declare const ReceiptFilled: import('@emotion/styled').StyledComponent<import('@mui/material').SvgIconOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<React.SVGProps<SVGSVGElement>, "ref"> & {
4
+ ref?: React.Ref<SVGSVGElement>;
5
+ }, "classes" | "children" | "className" | "sx" | "style" | "color" | "fontSize" | "shapeRendering" | "htmlColor" | "inheritViewBox" | "titleAccess" | "viewBox"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
6
6
  export default ReceiptFilled;
@@ -1,4 +1,4 @@
1
- export declare const ReceiptOutline: import('@emotion/styled').StyledComponent<Pick<{}, never> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {
2
- ref?: import('react').Ref<import('react').Component<{}, any, any>>;
3
- }>;
1
+ export declare const ReceiptOutline: import('@emotion/styled').StyledComponent<import('@mui/material').SvgIconOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').SVGProps<SVGSVGElement>, "ref"> & {
2
+ ref?: import('react').Ref<SVGSVGElement>;
3
+ }, "classes" | "children" | "className" | "sx" | "style" | "color" | "fontSize" | "shapeRendering" | "htmlColor" | "inheritViewBox" | "titleAccess" | "viewBox"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
4
4
  export default ReceiptOutline;
@@ -1,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
 
3
- export declare const Receipt: import('@emotion/styled').StyledComponent<Pick<{}, never> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {
4
- ref?: React.Ref<React.Component<{}, any, any>>;
5
- }>;
3
+ export declare const Receipt: import('@emotion/styled').StyledComponent<import('@mui/material').SvgIconOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<React.SVGProps<SVGSVGElement>, "ref"> & {
4
+ ref?: React.Ref<SVGSVGElement>;
5
+ }, "classes" | "children" | "className" | "sx" | "style" | "color" | "fontSize" | "shapeRendering" | "htmlColor" | "inheritViewBox" | "titleAccess" | "viewBox"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
6
6
  export default Receipt;
@@ -1,4 +1,4 @@
1
- export declare const Refresh: import('@emotion/styled').StyledComponent<Pick<{}, never> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {
2
- ref?: import('react').Ref<import('react').Component<{}, any, any>>;
3
- }>;
1
+ export declare const Refresh: import('@emotion/styled').StyledComponent<import('@mui/material').SvgIconOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').SVGProps<SVGSVGElement>, "ref"> & {
2
+ ref?: import('react').Ref<SVGSVGElement>;
3
+ }, "classes" | "children" | "className" | "sx" | "style" | "color" | "fontSize" | "shapeRendering" | "htmlColor" | "inheritViewBox" | "titleAccess" | "viewBox"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
4
4
  export default Refresh;
@@ -1,4 +1,4 @@
1
- export declare const Replace: import('@emotion/styled').StyledComponent<Pick<{}, never> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {
2
- ref?: import('react').Ref<import('react').Component<{}, any, any>>;
3
- }>;
1
+ export declare const Replace: import('@emotion/styled').StyledComponent<import('@mui/material').SvgIconOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').SVGProps<SVGSVGElement>, "ref"> & {
2
+ ref?: import('react').Ref<SVGSVGElement>;
3
+ }, "classes" | "children" | "className" | "sx" | "style" | "color" | "fontSize" | "shapeRendering" | "htmlColor" | "inheritViewBox" | "titleAccess" | "viewBox"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
4
4
  export default Replace;
@@ -1,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
 
3
- export declare const Save: import('@emotion/styled').StyledComponent<Pick<{}, never> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {
4
- ref?: React.Ref<React.Component<{}, any, any>>;
5
- }>;
3
+ export declare const Save: import('@emotion/styled').StyledComponent<import('@mui/material').SvgIconOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<React.SVGProps<SVGSVGElement>, "ref"> & {
4
+ ref?: React.Ref<SVGSVGElement>;
5
+ }, "classes" | "children" | "className" | "sx" | "style" | "color" | "fontSize" | "shapeRendering" | "htmlColor" | "inheritViewBox" | "titleAccess" | "viewBox"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
6
6
  export default Save;
@@ -1,4 +1,4 @@
1
- export declare const SearchStatus: import('@emotion/styled').StyledComponent<Pick<{}, never> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {
2
- ref?: import('react').Ref<import('react').Component<{}, any, any>>;
3
- }>;
1
+ export declare const SearchStatus: import('@emotion/styled').StyledComponent<import('@mui/material').SvgIconOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').SVGProps<SVGSVGElement>, "ref"> & {
2
+ ref?: import('react').Ref<SVGSVGElement>;
3
+ }, "classes" | "children" | "className" | "sx" | "style" | "color" | "fontSize" | "shapeRendering" | "htmlColor" | "inheritViewBox" | "titleAccess" | "viewBox"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
4
4
  export default SearchStatus;
@@ -1,4 +1,4 @@
1
- export declare const Search: import('@emotion/styled').StyledComponent<Pick<{}, never> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {
2
- ref?: import('react').Ref<import('react').Component<{}, any, any>>;
3
- }>;
1
+ export declare const Search: import('@emotion/styled').StyledComponent<import('@mui/material').SvgIconOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').SVGProps<SVGSVGElement>, "ref"> & {
2
+ ref?: import('react').Ref<SVGSVGElement>;
3
+ }, "classes" | "children" | "className" | "sx" | "style" | "color" | "fontSize" | "shapeRendering" | "htmlColor" | "inheritViewBox" | "titleAccess" | "viewBox"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
4
4
  export default Search;
@@ -1,7 +1,7 @@
1
1
  export declare const SettingsFallbackIcon: import('@mui/material/OverridableComponent').OverridableComponent<import('@mui/material').SvgIconTypeMap<{}, "svg">> & {
2
2
  muiName: string;
3
3
  };
4
- export declare const SettingsFallback: import('@emotion/styled').StyledComponent<Pick<{}, never> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {
5
- ref?: import('react').Ref<import('react').Component<{}, any, any>>;
6
- }>;
4
+ export declare const SettingsFallback: import('@emotion/styled').StyledComponent<import('@mui/material').SvgIconOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').SVGProps<SVGSVGElement>, "ref"> & {
5
+ ref?: import('react').Ref<SVGSVGElement>;
6
+ }, "classes" | "children" | "className" | "sx" | "style" | "color" | "fontSize" | "shapeRendering" | "htmlColor" | "inheritViewBox" | "titleAccess" | "viewBox"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
7
7
  export default SettingsFallback;
@@ -1,4 +1,4 @@
1
- export declare const SortActionArrow: import('@emotion/styled').StyledComponent<Pick<{}, never> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {
2
- ref?: import('react').Ref<import('react').Component<{}, any, any>>;
3
- }>;
1
+ export declare const SortActionArrow: import('@emotion/styled').StyledComponent<import('@mui/material').SvgIconOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').SVGProps<SVGSVGElement>, "ref"> & {
2
+ ref?: import('react').Ref<SVGSVGElement>;
3
+ }, "classes" | "children" | "className" | "sx" | "style" | "color" | "fontSize" | "shapeRendering" | "htmlColor" | "inheritViewBox" | "titleAccess" | "viewBox"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
4
4
  export default SortActionArrow;
@@ -1,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
 
3
- export declare const StackedLayer: import('@emotion/styled').StyledComponent<Pick<{}, never> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {
4
- ref?: React.Ref<React.Component<{}, any, any>>;
5
- }>;
3
+ export declare const StackedLayer: import('@emotion/styled').StyledComponent<import('@mui/material').SvgIconOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<React.SVGProps<SVGSVGElement>, "ref"> & {
4
+ ref?: React.Ref<SVGSVGElement>;
5
+ }, "classes" | "children" | "className" | "sx" | "style" | "color" | "fontSize" | "shapeRendering" | "htmlColor" | "inheritViewBox" | "titleAccess" | "viewBox"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
6
6
  export default StackedLayer;
@@ -1,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
 
3
- export declare const StartFilled: import('@emotion/styled').StyledComponent<Pick<{}, never> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {
4
- ref?: React.Ref<React.Component<{}, any, any>>;
5
- }>;
3
+ export declare const StartFilled: import('@emotion/styled').StyledComponent<import('@mui/material').SvgIconOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<React.SVGProps<SVGSVGElement>, "ref"> & {
4
+ ref?: React.Ref<SVGSVGElement>;
5
+ }, "classes" | "children" | "className" | "sx" | "style" | "color" | "fontSize" | "shapeRendering" | "htmlColor" | "inheritViewBox" | "titleAccess" | "viewBox"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
6
6
  export default StartFilled;
@@ -1,4 +1,4 @@
1
- export declare const ThreeDotIcon: import('@emotion/styled').StyledComponent<Pick<{}, never> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {
2
- ref?: import('react').Ref<import('react').Component<{}, any, any>>;
3
- }>;
1
+ export declare const ThreeDotIcon: import('@emotion/styled').StyledComponent<import('@mui/material').SvgIconOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').SVGProps<SVGSVGElement>, "ref"> & {
2
+ ref?: import('react').Ref<SVGSVGElement>;
3
+ }, "classes" | "children" | "className" | "sx" | "style" | "color" | "fontSize" | "shapeRendering" | "htmlColor" | "inheritViewBox" | "titleAccess" | "viewBox"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
4
4
  export default ThreeDotIcon;
@@ -1,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
 
3
- export declare const TickCircleFilled: import('@emotion/styled').StyledComponent<Pick<{}, never> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {
4
- ref?: React.Ref<React.Component<{}, any, any>>;
5
- }>;
3
+ export declare const TickCircleFilled: import('@emotion/styled').StyledComponent<import('@mui/material').SvgIconOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<React.SVGProps<SVGSVGElement>, "ref"> & {
4
+ ref?: React.Ref<SVGSVGElement>;
5
+ }, "classes" | "children" | "className" | "sx" | "style" | "color" | "fontSize" | "shapeRendering" | "htmlColor" | "inheritViewBox" | "titleAccess" | "viewBox"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
6
6
  export default TickCircleFilled;
@@ -1,4 +1,4 @@
1
- export declare const TickCircle: import('@emotion/styled').StyledComponent<Pick<{}, never> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {
2
- ref?: import('react').Ref<import('react').Component<{}, any, any>>;
3
- }>;
1
+ export declare const TickCircle: import('@emotion/styled').StyledComponent<import('@mui/material').SvgIconOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').SVGProps<SVGSVGElement>, "ref"> & {
2
+ ref?: import('react').Ref<SVGSVGElement>;
3
+ }, "classes" | "children" | "className" | "sx" | "style" | "color" | "fontSize" | "shapeRendering" | "htmlColor" | "inheritViewBox" | "titleAccess" | "viewBox"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
4
4
  export default TickCircle;
@@ -1,4 +1,4 @@
1
- export declare const OctagonWithTick: import('@emotion/styled').StyledComponent<Pick<{}, never> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {
2
- ref?: import('react').Ref<import('react').Component<{}, any, any>>;
3
- }>;
1
+ export declare const OctagonWithTick: import('@emotion/styled').StyledComponent<import('@mui/material').SvgIconOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').SVGProps<SVGSVGElement>, "ref"> & {
2
+ ref?: import('react').Ref<SVGSVGElement>;
3
+ }, "classes" | "children" | "className" | "sx" | "style" | "color" | "fontSize" | "shapeRendering" | "htmlColor" | "inheritViewBox" | "titleAccess" | "viewBox"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
4
4
  export default OctagonWithTick;
@@ -1,4 +1,4 @@
1
- export declare const Tick: import('@emotion/styled').StyledComponent<Pick<{}, never> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {
2
- ref?: import('react').Ref<import('react').Component<{}, any, any>>;
3
- }>;
1
+ export declare const Tick: import('@emotion/styled').StyledComponent<import('@mui/material').SvgIconOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').SVGProps<SVGSVGElement>, "ref"> & {
2
+ ref?: import('react').Ref<SVGSVGElement>;
3
+ }, "classes" | "children" | "className" | "sx" | "style" | "color" | "fontSize" | "shapeRendering" | "htmlColor" | "inheritViewBox" | "titleAccess" | "viewBox"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
4
4
  export default Tick;
@@ -1,4 +1,4 @@
1
- export declare const ToggleSwitch: import('@emotion/styled').StyledComponent<Pick<{}, never> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {
2
- ref?: import('react').Ref<import('react').Component<{}, any, any>>;
3
- }>;
1
+ export declare const ToggleSwitch: import('@emotion/styled').StyledComponent<import('@mui/material').SvgIconOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').SVGProps<SVGSVGElement>, "ref"> & {
2
+ ref?: import('react').Ref<SVGSVGElement>;
3
+ }, "classes" | "children" | "className" | "sx" | "style" | "color" | "fontSize" | "shapeRendering" | "htmlColor" | "inheritViewBox" | "titleAccess" | "viewBox"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
4
4
  export default ToggleSwitch;
@@ -1,4 +1,4 @@
1
- export declare const Trash: import('@emotion/styled').StyledComponent<Pick<{}, never> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {
2
- ref?: import('react').Ref<import('react').Component<{}, any, any>>;
3
- }>;
1
+ export declare const Trash: import('@emotion/styled').StyledComponent<import('@mui/material').SvgIconOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').SVGProps<SVGSVGElement>, "ref"> & {
2
+ ref?: import('react').Ref<SVGSVGElement>;
3
+ }, "classes" | "children" | "className" | "sx" | "style" | "color" | "fontSize" | "shapeRendering" | "htmlColor" | "inheritViewBox" | "titleAccess" | "viewBox"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
4
4
  export default Trash;
@@ -1,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
 
3
- export declare const Wave: import('@emotion/styled').StyledComponent<Pick<{}, never> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {
4
- ref?: React.Ref<React.Component<{}, any, any>>;
5
- }>;
3
+ export declare const Wave: import('@emotion/styled').StyledComponent<import('@mui/material').SvgIconOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<React.SVGProps<SVGSVGElement>, "ref"> & {
4
+ ref?: React.Ref<SVGSVGElement>;
5
+ }, "classes" | "children" | "className" | "sx" | "style" | "color" | "fontSize" | "shapeRendering" | "htmlColor" | "inheritViewBox" | "titleAccess" | "viewBox"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
6
6
  export default Wave;
@@ -1,4 +1,4 @@
1
- export declare const OctagonWithOutTick: import('@emotion/styled').StyledComponent<Pick<{}, never> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {
2
- ref?: import('react').Ref<import('react').Component<{}, any, any>>;
3
- }>;
1
+ export declare const OctagonWithOutTick: import('@emotion/styled').StyledComponent<import('@mui/material').SvgIconOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').SVGProps<SVGSVGElement>, "ref"> & {
2
+ ref?: import('react').Ref<SVGSVGElement>;
3
+ }, "classes" | "children" | "className" | "sx" | "style" | "color" | "fontSize" | "shapeRendering" | "htmlColor" | "inheritViewBox" | "titleAccess" | "viewBox"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
4
4
  export default OctagonWithOutTick;
@@ -1,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
 
3
- export declare const WorkCentre: import('@emotion/styled').StyledComponent<Pick<{}, never> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {
4
- ref?: React.Ref<React.Component<{}, any, any>>;
5
- }>;
3
+ export declare const WorkCentre: import('@emotion/styled').StyledComponent<import('@mui/material').SvgIconOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<React.SVGProps<SVGSVGElement>, "ref"> & {
4
+ ref?: React.Ref<SVGSVGElement>;
5
+ }, "classes" | "children" | "className" | "sx" | "style" | "color" | "fontSize" | "shapeRendering" | "htmlColor" | "inheritViewBox" | "titleAccess" | "viewBox"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
6
6
  export default WorkCentre;
@@ -15,5 +15,5 @@ export interface LocationSearchSelectProps<T extends FieldValues = FieldValues>
15
15
  export interface LocationFilterType {
16
16
  [key: string]: string[] | string | number;
17
17
  }
18
- export declare const LocationSearchSelect: import('react').NamedExoticComponent<LocationSearchSelectProps<FieldValues>>;
18
+ export declare const LocationSearchSelect: import('react').MemoExoticComponent<(<T extends FieldValues = FieldValues>({ selectedCompany, control: propControl, setValue: propSetValue, fieldArrayName, locationFieldName, label, placeholder, resetValue, filterKey, filterField, ...dynamicSearchSelectProps }: LocationSearchSelectProps<T>) => JSX.Element)>;
19
19
  export default LocationSearchSelect;
@@ -126,6 +126,7 @@ const MaterialEditableTable = React__default.memo(({
126
126
  handleColumnResizing = () => {
127
127
  },
128
128
  columnSizes = {},
129
+ hideSaveButton = false,
129
130
  // eslint-disable-next-line unused-imports/no-unused-vars, @typescript-eslint/no-unused-vars
130
131
  // getRowId,
131
132
  // onDelete,
@@ -589,7 +590,7 @@ const MaterialEditableTable = React__default.memo(({
589
590
  backgroundColor: "#fff",
590
591
  whiteSpace: "pre-wrap",
591
592
  // Hide save button only when editing existing row (not in create mode or non-editable mode)
592
- ...isEditingRow2 && !isCreatingRow2 && {
593
+ ...hideSaveButton && (isEditingRow2 || isCreatingRow2) ? {
593
594
  "& .MuiBox-root > .MuiIconButton-root:first-of-type": {
594
595
  display: "none !important"
595
596
  },
@@ -607,7 +608,7 @@ const MaterialEditableTable = React__default.memo(({
607
608
  '& .MuiIconButton-root[data-testid*="save"]': {
608
609
  display: "none !important"
609
610
  }
610
- }
611
+ } : {}
611
612
  },
612
613
  onKeyUp: (e) => console.log(e)
613
614
  };
@@ -672,29 +673,14 @@ const MaterialEditableTable = React__default.memo(({
672
673
  getRowId: (row2) => row2 == null ? void 0 : row2.id,
673
674
  // table.getState().editingRow
674
675
  muiTableBodyRowProps: ({ row: row2, table: table2 }) => {
675
- var _a, _b, _c, _d, _e;
676
+ var _a, _b, _c, _d, _e, _f, _g;
676
677
  const editingRowId = ((_b = (_a = table2.getState()) == null ? void 0 : _a.editingRow) == null ? void 0 : _b.id) || ((_d = (_c = table2.getState()) == null ? void 0 : _c.creatingRow) == null ? void 0 : _d.id) || null;
677
- const isErrorRow = Boolean((_e = row2 == null ? void 0 : row2.original) == null ? void 0 : _e.has_error);
678
+ const creatingRowId = ((_f = (_e = table2.getState()) == null ? void 0 : _e.creatingRow) == null ? void 0 : _f.id) || null;
679
+ const isErrorRow = Boolean((_g = row2 == null ? void 0 : row2.original) == null ? void 0 : _g.has_error);
678
680
  const isCurrentlyEditing = editingRowId === row2.id;
679
681
  return {
680
682
  onClick: () => {
681
683
  setSelectedRow(row2.id);
682
- console.log("Row clicked:", row2.id, "editingRowId:", editingRowId, "isCurrentlyEditing:", isCurrentlyEditing, "disableNextEdit:", disableNextEdit);
683
- if (editingRowId && editingRowId !== row2.id) {
684
- table2.setEditingRow(null);
685
- setTimeout(() => {
686
- table2.setEditingRow(row2);
687
- setDisableNextEdit(true);
688
- }, 100);
689
- return;
690
- }
691
- if (!disableNextEdit && !isCurrentlyEditing && !editingRowId) {
692
- console.log("Setting row as editable:", row2.id);
693
- table2.setEditingRow(row2);
694
- setDisableNextEdit(true);
695
- } else {
696
- console.log("Cannot edit row - conditions not met");
697
- }
698
684
  },
699
685
  onKeyDown: (e) => {
700
686
  if (isCurrentlyEditing) {
@@ -704,9 +690,15 @@ const MaterialEditableTable = React__default.memo(({
704
690
  } else if (e.key === "Escape") {
705
691
  e.preventDefault();
706
692
  console.log("Escape pressed, canceling edit for row:", row2.id);
707
- table2.setEditingRow(null);
693
+ if (creatingRowId === row2.id) {
694
+ table2.setCreatingRow(null);
695
+ } else {
696
+ table2.setEditingRow(null);
697
+ }
708
698
  setDisableNextEdit(false);
709
- handleSaveRow(row2, row2._valuesCache || row2.original, table2);
699
+ if (creatingRowId !== row2.id) {
700
+ handleSaveRow(row2, row2._valuesCache || row2.original, table2);
701
+ }
710
702
  }
711
703
  }
712
704
  },
@@ -816,7 +808,7 @@ const MaterialEditableTable = React__default.memo(({
816
808
  zIndex: 600
817
809
  }
818
810
  },
819
- muiTableBodyCellProps: () => ({
811
+ muiTableBodyCellProps: ({ cell, column, table: table2, row: row2 }) => ({
820
812
  sx: {
821
813
  lineHeight: "140%",
822
814
  letterSpacing: "-0.26px",
@@ -830,6 +822,28 @@ const MaterialEditableTable = React__default.memo(({
830
822
  // Removes hover effect globally
831
823
  },
832
824
  whiteSpace: "pre-wrap"
825
+ },
826
+ onClick: (e) => {
827
+ var _a, _b, _c, _d;
828
+ const columnDef = column.columnDef;
829
+ const isOnClickEditable = columnDef.isOnClickEditable !== false;
830
+ if (!isOnClickEditable) {
831
+ return;
832
+ }
833
+ const editingRowId = ((_b = (_a = table2.getState()) == null ? void 0 : _a.editingRow) == null ? void 0 : _b.id) || ((_d = (_c = table2.getState()) == null ? void 0 : _c.creatingRow) == null ? void 0 : _d.id) || null;
834
+ const isCurrentlyEditing = editingRowId === row2.id;
835
+ if (editingRowId && editingRowId !== row2.id) {
836
+ table2.setEditingRow(null);
837
+ setTimeout(() => {
838
+ table2.setEditingRow(row2);
839
+ setDisableNextEdit(true);
840
+ }, 100);
841
+ return;
842
+ }
843
+ if (!disableNextEdit && !isCurrentlyEditing && !editingRowId) {
844
+ table2.setEditingRow(row2);
845
+ setDisableNextEdit(true);
846
+ }
833
847
  }
834
848
  // onClick: () => {
835
849
  // table.setEditingCell(cell); //set editing cell
@@ -994,9 +1008,10 @@ const MaterialEditableTable = React__default.memo(({
994
1008
  }
995
1009
  };
996
1010
  const handleClick = (e) => {
997
- var _a;
1011
+ var _a, _b;
998
1012
  const editingRow = (_a = table.getState()) == null ? void 0 : _a.editingRow;
999
- if (!editingRow) return;
1013
+ const creatingRow = (_b = table.getState()) == null ? void 0 : _b.creatingRow;
1014
+ if (!editingRow && !creatingRow) return;
1000
1015
  const target = e.target;
1001
1016
  const now = Date.now();
1002
1017
  if (isDropdownInteraction || now - lastDropdownClick < 300) {
@@ -1008,9 +1023,18 @@ const MaterialEditableTable = React__default.memo(({
1008
1023
  clearTimeout(saveTimer);
1009
1024
  }
1010
1025
  saveTimer = setTimeout(() => {
1011
- var _a2;
1026
+ var _a2, _b2, _c;
1012
1027
  const currentEditingRow = (_a2 = table.getState()) == null ? void 0 : _a2.editingRow;
1013
- if (currentEditingRow && !isDropdownInteraction) {
1028
+ const currentCreatingRow = (_b2 = table.getState()) == null ? void 0 : _b2.creatingRow;
1029
+ if (isDropdownInteraction) return;
1030
+ if (currentCreatingRow) {
1031
+ const values = currentCreatingRow._valuesCache || currentCreatingRow.original;
1032
+ if ((_c = table.options) == null ? void 0 : _c.onCreatingRowSave) {
1033
+ table.options.onCreatingRowSave({ row: currentCreatingRow, values, table });
1034
+ }
1035
+ return;
1036
+ }
1037
+ if (currentEditingRow) {
1014
1038
  handleSaveRow(currentEditingRow, currentEditingRow._valuesCache || currentEditingRow.original, table);
1015
1039
  }
1016
1040
  }, 200);