@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.
- package/dist/_virtual/index/index.esm10.js +4 -2
- package/dist/_virtual/index/index.esm10.js.map +1 -1
- package/dist/_virtual/index/index.esm11.js +2 -4
- package/dist/_virtual/index/index.esm11.js.map +1 -1
- package/dist/_virtual/index/index10.js +1 -1
- package/dist/_virtual/index/index11.js +1 -1
- package/dist/components/accordion/accordion.d.ts +1 -1
- package/dist/components/action-bar/action-bar.d.ts +1 -1
- package/dist/components/checkbox/checkbox.d.ts +1 -1
- package/dist/components/date-picker/date-picker.d.ts +1 -1
- package/dist/components/footer/footer.d.ts +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/media.d.ts +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/phone.d.ts +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/select.d.ts +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/text.d.ts +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/time.d.ts +1 -1
- package/dist/components/form-control/form-parser/form-section/index.esm.js +4 -5
- package/dist/components/form-control/form-parser/form-section/index.esm.js.map +1 -1
- package/dist/components/form-control/form-parser/form-section/index.js +22 -22
- package/dist/components/form-control/form-parser/form-section/index.js.map +1 -1
- package/dist/components/form-control/form-parser/form-switcher.d.ts +1 -1
- package/dist/components/icons/action-arrow.d.ts +3 -3
- package/dist/components/icons/add-circle.d.ts +3 -3
- package/dist/components/icons/arrow-bidirectional.d.ts +3 -3
- package/dist/components/icons/arrow-circle-down.d.ts +3 -3
- package/dist/components/icons/arrow-down-three.d.ts +3 -3
- package/dist/components/icons/arrow-down-two.d.ts +3 -3
- package/dist/components/icons/arrow-down.d.ts +3 -3
- package/dist/components/icons/arrow-up-down.d.ts +3 -3
- package/dist/components/icons/arrow-up-two.d.ts +3 -3
- package/dist/components/icons/assignments.d.ts +3 -3
- package/dist/components/icons/blank-circle.d.ts +3 -3
- package/dist/components/icons/block-filled.d.ts +3 -3
- package/dist/components/icons/calendar-add.d.ts +3 -3
- package/dist/components/icons/calendar.d.ts +3 -3
- package/dist/components/icons/checkbox-square.d.ts +3 -3
- package/dist/components/icons/circular-arrow-setting.d.ts +3 -3
- package/dist/components/icons/clock.d.ts +3 -3
- package/dist/components/icons/close.d.ts +3 -3
- package/dist/components/icons/coin-outline.d.ts +3 -3
- package/dist/components/icons/copy.d.ts +3 -3
- package/dist/components/icons/coupon.d.ts +3 -3
- package/dist/components/icons/cross-hire.d.ts +3 -3
- package/dist/components/icons/custom-styled-icon.d.ts +3 -3
- package/dist/components/icons/dashboard.d.ts +3 -3
- package/dist/components/icons/document-download.d.ts +3 -3
- package/dist/components/icons/document.d.ts +3 -3
- package/dist/components/icons/dollar-circle-filled.d.ts +3 -3
- package/dist/components/icons/dollar-circle.d.ts +3 -3
- package/dist/components/icons/edit.d.ts +3 -3
- package/dist/components/icons/email.d.ts +3 -3
- package/dist/components/icons/export.d.ts +3 -3
- package/dist/components/icons/eye-off.d.ts +3 -3
- package/dist/components/icons/eye-plus-circle.d.ts +3 -3
- package/dist/components/icons/eye.d.ts +3 -3
- package/dist/components/icons/filled-circle.d.ts +3 -3
- package/dist/components/icons/filter-remove.d.ts +3 -3
- package/dist/components/icons/filter.d.ts +3 -3
- package/dist/components/icons/folder-save.d.ts +3 -3
- package/dist/components/icons/grid.d.ts +3 -3
- package/dist/components/icons/hashtag.d.ts +3 -3
- package/dist/components/icons/image.d.ts +3 -3
- package/dist/components/icons/import.d.ts +3 -3
- package/dist/components/icons/info-circle.d.ts +3 -3
- package/dist/components/icons/info.d.ts +3 -3
- package/dist/components/icons/link-horizontal.d.ts +3 -3
- package/dist/components/icons/link.d.ts +3 -3
- package/dist/components/icons/location.d.ts +3 -3
- package/dist/components/icons/lowest-lead-time.d.ts +3 -3
- package/dist/components/icons/lowest-min-qty.d.ts +3 -3
- package/dist/components/icons/lowest-price.d.ts +3 -3
- package/dist/components/icons/more.d.ts +3 -3
- package/dist/components/icons/notification.d.ts +3 -3
- package/dist/components/icons/paper-clip.d.ts +3 -3
- package/dist/components/icons/paragraph.d.ts +3 -3
- package/dist/components/icons/payment-request.d.ts +3 -3
- package/dist/components/icons/phone.d.ts +3 -3
- package/dist/components/icons/printer.d.ts +3 -3
- package/dist/components/icons/process-calendar.d.ts +3 -3
- package/dist/components/icons/promotion.d.ts +3 -3
- package/dist/components/icons/radio-button.d.ts +3 -3
- package/dist/components/icons/receipt-filled.d.ts +3 -3
- package/dist/components/icons/receipt-outline.d.ts +3 -3
- package/dist/components/icons/receipt.d.ts +3 -3
- package/dist/components/icons/refresh-icon.d.ts +3 -3
- package/dist/components/icons/replace.d.ts +3 -3
- package/dist/components/icons/save.d.ts +3 -3
- package/dist/components/icons/search-status.d.ts +3 -3
- package/dist/components/icons/search.d.ts +3 -3
- package/dist/components/icons/settings-fallback.d.ts +3 -3
- package/dist/components/icons/sort-arrow-icon.d.ts +3 -3
- package/dist/components/icons/stacked-layer.d.ts +3 -3
- package/dist/components/icons/start-filled.d.ts +3 -3
- package/dist/components/icons/three-dot-icon.d.ts +3 -3
- package/dist/components/icons/tick-circle-filled.d.ts +3 -3
- package/dist/components/icons/tick-circle.d.ts +3 -3
- package/dist/components/icons/tick-octagon.d.ts +3 -3
- package/dist/components/icons/tick.d.ts +3 -3
- package/dist/components/icons/toggle-switch.d.ts +3 -3
- package/dist/components/icons/trash.d.ts +3 -3
- package/dist/components/icons/wave.d.ts +3 -3
- package/dist/components/icons/with-out-tick-octagon.d.ts +3 -3
- package/dist/components/icons/work-centre.d.ts +3 -3
- package/dist/components/location-select.d.ts +1 -1
- package/dist/components/material-editable-table/material-editable-table/index.esm.js +51 -27
- package/dist/components/material-editable-table/material-editable-table/index.esm.js.map +1 -1
- package/dist/components/material-editable-table/material-editable-table/index.js +17 -17
- package/dist/components/material-editable-table/material-editable-table/index.js.map +1 -1
- package/dist/components/material-editable-table/material-editable-table.d.ts +2 -1
- package/dist/components/material-table/material-table.d.ts +1 -1
- package/dist/components/phone-input/phone-input.d.ts +1 -1
- package/dist/components/providers/ERPUIProvider/index.esm.js +2 -4
- package/dist/components/providers/ERPUIProvider/index.esm.js.map +1 -1
- package/dist/components/providers/ERPUIProvider/index.js +1 -1
- package/dist/components/providers/ERPUIProvider/index.js.map +1 -1
- package/dist/components/providers/ERPUIProvider.d.ts +0 -2
- package/dist/components/radio/radio.d.ts +1 -1
- package/dist/components/select/select.d.ts +1 -1
- package/dist/components/switches/android-12-switch.d.ts +1 -3
- package/dist/components/text-field/text-field.d.ts +1 -1
- package/dist/components/time-picker/time-picker.d.ts +1 -1
- package/dist/components/upload-media/upload-media.d.ts +1 -1
- package/dist/contexts/page-context/index.esm.js +5 -5
- package/dist/contexts/page-context/index.esm.js.map +1 -1
- package/dist/contexts/page-context/index.js +1 -1
- package/dist/contexts/page-context/index.js.map +1 -1
- package/dist/contexts/page-context.d.ts +0 -2
- package/dist/hooks/apiHelper/index.esm.js.map +1 -1
- package/dist/hooks/apiHelper/index.js.map +1 -1
- package/dist/node_modules/@asseinfo/react-kanban/dist/index/index.esm.js +1 -1
- package/dist/node_modules/@asseinfo/react-kanban/dist/index/index.js +1 -1
- package/dist/node_modules/@mui/icons-material/utils/createSvgIcon/index.esm.js +1 -1
- package/dist/node_modules/@mui/icons-material/utils/createSvgIcon/index.js +1 -1
- package/dist/src/components/accordion/accordion.d.ts +1 -1
- package/dist/src/components/action-bar/action-bar.d.ts +1 -1
- package/dist/src/components/checkbox/checkbox.d.ts +1 -1
- package/dist/src/components/date-picker/date-picker.d.ts +1 -1
- package/dist/src/components/footer/footer.d.ts +1 -1
- package/dist/src/components/form-control/form-builder/form-builder-element/media.d.ts +1 -1
- package/dist/src/components/form-control/form-builder/form-builder-element/phone.d.ts +1 -1
- package/dist/src/components/form-control/form-builder/form-builder-element/select.d.ts +1 -1
- package/dist/src/components/form-control/form-builder/form-builder-element/text.d.ts +1 -1
- package/dist/src/components/form-control/form-builder/form-builder-element/time.d.ts +1 -1
- package/dist/src/components/form-control/form-parser/form-switcher.d.ts +1 -1
- package/dist/src/components/icons/action-arrow.d.ts +3 -3
- package/dist/src/components/icons/add-circle.d.ts +3 -3
- package/dist/src/components/icons/arrow-bidirectional.d.ts +3 -3
- package/dist/src/components/icons/arrow-circle-down.d.ts +3 -3
- package/dist/src/components/icons/arrow-down-three.d.ts +3 -3
- package/dist/src/components/icons/arrow-down-two.d.ts +3 -3
- package/dist/src/components/icons/arrow-down.d.ts +3 -3
- package/dist/src/components/icons/arrow-up-down.d.ts +3 -3
- package/dist/src/components/icons/arrow-up-two.d.ts +3 -3
- package/dist/src/components/icons/assignments.d.ts +3 -3
- package/dist/src/components/icons/blank-circle.d.ts +3 -3
- package/dist/src/components/icons/block-filled.d.ts +3 -3
- package/dist/src/components/icons/calendar-add.d.ts +3 -3
- package/dist/src/components/icons/calendar.d.ts +3 -3
- package/dist/src/components/icons/checkbox-square.d.ts +3 -3
- package/dist/src/components/icons/circular-arrow-setting.d.ts +3 -3
- package/dist/src/components/icons/clock.d.ts +3 -3
- package/dist/src/components/icons/close.d.ts +3 -3
- package/dist/src/components/icons/coin-outline.d.ts +3 -3
- package/dist/src/components/icons/copy.d.ts +3 -3
- package/dist/src/components/icons/coupon.d.ts +3 -3
- package/dist/src/components/icons/cross-hire.d.ts +3 -3
- package/dist/src/components/icons/custom-styled-icon.d.ts +3 -3
- package/dist/src/components/icons/dashboard.d.ts +3 -3
- package/dist/src/components/icons/document-download.d.ts +3 -3
- package/dist/src/components/icons/document.d.ts +3 -3
- package/dist/src/components/icons/dollar-circle-filled.d.ts +3 -3
- package/dist/src/components/icons/dollar-circle.d.ts +3 -3
- package/dist/src/components/icons/edit.d.ts +3 -3
- package/dist/src/components/icons/email.d.ts +3 -3
- package/dist/src/components/icons/export.d.ts +3 -3
- package/dist/src/components/icons/eye-off.d.ts +3 -3
- package/dist/src/components/icons/eye-plus-circle.d.ts +3 -3
- package/dist/src/components/icons/eye.d.ts +3 -3
- package/dist/src/components/icons/filled-circle.d.ts +3 -3
- package/dist/src/components/icons/filter-remove.d.ts +3 -3
- package/dist/src/components/icons/filter.d.ts +3 -3
- package/dist/src/components/icons/folder-save.d.ts +3 -3
- package/dist/src/components/icons/grid.d.ts +3 -3
- package/dist/src/components/icons/hashtag.d.ts +3 -3
- package/dist/src/components/icons/image.d.ts +3 -3
- package/dist/src/components/icons/import.d.ts +3 -3
- package/dist/src/components/icons/info-circle.d.ts +3 -3
- package/dist/src/components/icons/info.d.ts +3 -3
- package/dist/src/components/icons/link-horizontal.d.ts +3 -3
- package/dist/src/components/icons/link.d.ts +3 -3
- package/dist/src/components/icons/location.d.ts +3 -3
- package/dist/src/components/icons/lowest-lead-time.d.ts +3 -3
- package/dist/src/components/icons/lowest-min-qty.d.ts +3 -3
- package/dist/src/components/icons/lowest-price.d.ts +3 -3
- package/dist/src/components/icons/more.d.ts +3 -3
- package/dist/src/components/icons/notification.d.ts +3 -3
- package/dist/src/components/icons/paper-clip.d.ts +3 -3
- package/dist/src/components/icons/paragraph.d.ts +3 -3
- package/dist/src/components/icons/payment-request.d.ts +3 -3
- package/dist/src/components/icons/phone.d.ts +3 -3
- package/dist/src/components/icons/printer.d.ts +3 -3
- package/dist/src/components/icons/process-calendar.d.ts +3 -3
- package/dist/src/components/icons/promotion.d.ts +3 -3
- package/dist/src/components/icons/radio-button.d.ts +3 -3
- package/dist/src/components/icons/receipt-filled.d.ts +3 -3
- package/dist/src/components/icons/receipt-outline.d.ts +3 -3
- package/dist/src/components/icons/receipt.d.ts +3 -3
- package/dist/src/components/icons/refresh-icon.d.ts +3 -3
- package/dist/src/components/icons/replace.d.ts +3 -3
- package/dist/src/components/icons/save.d.ts +3 -3
- package/dist/src/components/icons/search-status.d.ts +3 -3
- package/dist/src/components/icons/search.d.ts +3 -3
- package/dist/src/components/icons/settings-fallback.d.ts +3 -3
- package/dist/src/components/icons/sort-arrow-icon.d.ts +3 -3
- package/dist/src/components/icons/stacked-layer.d.ts +3 -3
- package/dist/src/components/icons/start-filled.d.ts +3 -3
- package/dist/src/components/icons/three-dot-icon.d.ts +3 -3
- package/dist/src/components/icons/tick-circle-filled.d.ts +3 -3
- package/dist/src/components/icons/tick-circle.d.ts +3 -3
- package/dist/src/components/icons/tick-octagon.d.ts +3 -3
- package/dist/src/components/icons/tick.d.ts +3 -3
- package/dist/src/components/icons/toggle-switch.d.ts +3 -3
- package/dist/src/components/icons/trash.d.ts +3 -3
- package/dist/src/components/icons/wave.d.ts +3 -3
- package/dist/src/components/icons/with-out-tick-octagon.d.ts +3 -3
- package/dist/src/components/icons/work-centre.d.ts +3 -3
- package/dist/src/components/location-select.d.ts +1 -1
- package/dist/src/components/material-editable-table/material-editable-table.d.ts +2 -1
- package/dist/src/components/material-table/material-table.d.ts +1 -1
- package/dist/src/components/phone-input/phone-input.d.ts +1 -1
- package/dist/src/components/providers/ERPUIProvider.d.ts +0 -2
- package/dist/src/components/radio/radio.d.ts +1 -1
- package/dist/src/components/select/select.d.ts +1 -1
- package/dist/src/components/switches/android-12-switch.d.ts +1 -3
- package/dist/src/components/text-field/text-field.d.ts +1 -1
- package/dist/src/components/time-picker/time-picker.d.ts +1 -1
- package/dist/src/components/upload-media/upload-media.d.ts +1 -1
- package/dist/src/contexts/page-context.d.ts +0 -2
- package/dist/src/utils/common-utility.d.ts +1 -1
- package/dist/style.css +60 -60
- package/dist/utils/common-utility.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const ProcessCalendar: import('@emotion/styled').StyledComponent<
|
|
2
|
-
ref?: import('react').Ref<
|
|
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<
|
|
4
|
-
ref?: React.Ref<
|
|
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<
|
|
2
|
-
ref?: import('react').Ref<
|
|
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<
|
|
4
|
-
ref?: React.Ref<
|
|
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<
|
|
2
|
-
ref?: import('react').Ref<
|
|
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<
|
|
4
|
-
ref?: React.Ref<
|
|
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<
|
|
2
|
-
ref?: import('react').Ref<
|
|
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<
|
|
2
|
-
ref?: import('react').Ref<
|
|
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<
|
|
4
|
-
ref?: React.Ref<
|
|
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<
|
|
2
|
-
ref?: import('react').Ref<
|
|
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<
|
|
2
|
-
ref?: import('react').Ref<
|
|
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<
|
|
5
|
-
ref?: import('react').Ref<
|
|
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<
|
|
2
|
-
ref?: import('react').Ref<
|
|
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<
|
|
4
|
-
ref?: React.Ref<
|
|
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<
|
|
4
|
-
ref?: React.Ref<
|
|
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<
|
|
2
|
-
ref?: import('react').Ref<
|
|
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<
|
|
4
|
-
ref?: React.Ref<
|
|
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<
|
|
2
|
-
ref?: import('react').Ref<
|
|
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<
|
|
2
|
-
ref?: import('react').Ref<
|
|
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<
|
|
2
|
-
ref?: import('react').Ref<
|
|
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<
|
|
2
|
-
ref?: import('react').Ref<
|
|
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<
|
|
2
|
-
ref?: import('react').Ref<
|
|
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<
|
|
4
|
-
ref?: React.Ref<
|
|
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<
|
|
2
|
-
ref?: import('react').Ref<
|
|
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<
|
|
4
|
-
ref?: React.Ref<
|
|
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').
|
|
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
|
-
...
|
|
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
|
|
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
|
-
|
|
693
|
+
if (creatingRowId === row2.id) {
|
|
694
|
+
table2.setCreatingRow(null);
|
|
695
|
+
} else {
|
|
696
|
+
table2.setEditingRow(null);
|
|
697
|
+
}
|
|
708
698
|
setDisableNextEdit(false);
|
|
709
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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);
|