@erpsquad/common 1.11.29 → 1.11.30
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/chunks/DonutChart-BlzVwF9V.js +104 -0
- package/dist/chunks/DonutChart-BlzVwF9V.js.map +1 -0
- package/dist/chunks/DonutChart-CBaRNVKd.esm.js +88 -0
- package/dist/chunks/DonutChart-CBaRNVKd.esm.js.map +1 -0
- package/dist/chunks/DynamicDependentField-B1jkZzNW.js +127 -0
- package/dist/chunks/DynamicDependentField-B1jkZzNW.js.map +1 -0
- package/dist/chunks/DynamicDependentField-m4v2i_Ss.esm.js +128 -0
- package/dist/chunks/DynamicDependentField-m4v2i_Ss.esm.js.map +1 -0
- package/dist/chunks/ERPUIProvider-D1yQ1CmD.esm.js +130 -0
- package/dist/chunks/ERPUIProvider-D1yQ1CmD.esm.js.map +1 -0
- package/dist/chunks/ERPUIProvider-O6cQFkJq.js +129 -0
- package/dist/chunks/ERPUIProvider-O6cQFkJq.js.map +1 -0
- package/dist/chunks/FORMS-CP_bWKVd.js +295 -0
- package/dist/chunks/FORMS-CP_bWKVd.js.map +1 -0
- package/dist/chunks/FORMS-D1M0DgHQ.esm.js +296 -0
- package/dist/chunks/FORMS-D1M0DgHQ.esm.js.map +1 -0
- package/dist/chunks/FlexibleReduxExample-Ckz_L6d8.esm.js +149 -0
- package/dist/chunks/FlexibleReduxExample-Ckz_L6d8.esm.js.map +1 -0
- package/dist/chunks/FlexibleReduxExample-Df-bAX9S.js +148 -0
- package/dist/chunks/FlexibleReduxExample-Df-bAX9S.js.map +1 -0
- package/dist/chunks/GroupBarChart-BSLOA0iQ.js +102 -0
- package/dist/chunks/GroupBarChart-BSLOA0iQ.js.map +1 -0
- package/dist/chunks/GroupBarChart-lhrIpM1h.esm.js +86 -0
- package/dist/chunks/GroupBarChart-lhrIpM1h.esm.js.map +1 -0
- package/dist/chunks/SectionFlowEditor-D1v29JFf.esm.js +5479 -0
- package/dist/chunks/SectionFlowEditor-D1v29JFf.esm.js.map +1 -0
- package/dist/chunks/SectionFlowEditor-D58o14CY.js +5478 -0
- package/dist/chunks/SectionFlowEditor-D58o14CY.js.map +1 -0
- package/dist/chunks/action-bar-D4SYJgTT.js +660 -0
- package/dist/chunks/action-bar-D4SYJgTT.js.map +1 -0
- package/dist/chunks/action-bar-D4Siz93J.esm.js +661 -0
- package/dist/chunks/action-bar-D4Siz93J.esm.js.map +1 -0
- package/dist/chunks/actionCreator-0uQghTUt.esm.js +22 -0
- package/dist/chunks/actionCreator-0uQghTUt.esm.js.map +1 -0
- package/dist/chunks/actionCreator-BIur2_cF.esm.js +28 -0
- package/dist/chunks/actionCreator-BIur2_cF.esm.js.map +1 -0
- package/dist/chunks/actionCreator-BYzzSzcP.esm.js +14 -0
- package/dist/chunks/actionCreator-BYzzSzcP.esm.js.map +1 -0
- package/dist/chunks/actionCreator-Cddz6Hfa.js +27 -0
- package/dist/chunks/actionCreator-Cddz6Hfa.js.map +1 -0
- package/dist/chunks/actionCreator-D45ZRUYG.js +13 -0
- package/dist/chunks/actionCreator-D45ZRUYG.js.map +1 -0
- package/dist/chunks/actionCreator-DA134jFh.js +21 -0
- package/dist/chunks/actionCreator-DA134jFh.js.map +1 -0
- package/dist/chunks/actionCreator-DCvH3aya.esm.js +79 -0
- package/dist/chunks/actionCreator-DCvH3aya.esm.js.map +1 -0
- package/dist/chunks/actionCreator-P2el50Ij.js +93 -0
- package/dist/chunks/actionCreator-P2el50Ij.js.map +1 -0
- package/dist/chunks/actionCreator-Ux93gVSu.esm.js +94 -0
- package/dist/chunks/actionCreator-Ux93gVSu.esm.js.map +1 -0
- package/dist/chunks/actionCreator-tNh5lk4r.js +78 -0
- package/dist/chunks/actionCreator-tNh5lk4r.js.map +1 -0
- package/dist/chunks/activity-log-ByIo_G8q.esm.js +104 -0
- package/dist/chunks/activity-log-ByIo_G8q.esm.js.map +1 -0
- package/dist/chunks/activity-log-Cyne0qwm.js +103 -0
- package/dist/chunks/activity-log-Cyne0qwm.js.map +1 -0
- package/dist/chunks/add-template-BYyqpxVx.js +10 -0
- package/dist/chunks/add-template-BYyqpxVx.js.map +1 -0
- package/dist/chunks/add-template-D1Ro9dcG.esm.js +11 -0
- package/dist/chunks/add-template-D1Ro9dcG.esm.js.map +1 -0
- package/dist/chunks/address-modal-CfE5Ae8t.js +680 -0
- package/dist/chunks/address-modal-CfE5Ae8t.js.map +1 -0
- package/dist/chunks/address-modal-gRlouRj8.esm.js +664 -0
- package/dist/chunks/address-modal-gRlouRj8.esm.js.map +1 -0
- package/dist/chunks/ai-summary-BxB8Rnuk.js +350 -0
- package/dist/chunks/ai-summary-BxB8Rnuk.js.map +1 -0
- package/dist/chunks/ai-summary-CxAKUX2p.esm.js +351 -0
- package/dist/chunks/ai-summary-CxAKUX2p.esm.js.map +1 -0
- package/dist/chunks/api-DwmixHAO.js +5922 -0
- package/dist/chunks/api-DwmixHAO.js.map +1 -0
- package/dist/chunks/api-u1lKzJVv.esm.js +5923 -0
- package/dist/chunks/api-u1lKzJVv.esm.js.map +1 -0
- package/dist/chunks/appbar-B9EKR8QS.esm.js +57 -0
- package/dist/chunks/appbar-B9EKR8QS.esm.js.map +1 -0
- package/dist/chunks/appbar-Dt_exHJ3.js +56 -0
- package/dist/chunks/appbar-Dt_exHJ3.js.map +1 -0
- package/dist/chunks/approval-wrapper-C8iOUYeE.js +139 -0
- package/dist/chunks/approval-wrapper-C8iOUYeE.js.map +1 -0
- package/dist/chunks/approval-wrapper-OmXAoB9R.esm.js +140 -0
- package/dist/chunks/approval-wrapper-OmXAoB9R.esm.js.map +1 -0
- package/dist/chunks/areaLinerChart-BEiJvhIq.esm.js +104 -0
- package/dist/chunks/areaLinerChart-BEiJvhIq.esm.js.map +1 -0
- package/dist/chunks/areaLinerChart-DetB92LI.js +120 -0
- package/dist/chunks/areaLinerChart-DetB92LI.js.map +1 -0
- package/dist/chunks/bar-chart-BjAvgQJP.esm.js +87 -0
- package/dist/chunks/bar-chart-BjAvgQJP.esm.js.map +1 -0
- package/dist/chunks/bar-chart-HkOgepOg.js +103 -0
- package/dist/chunks/bar-chart-HkOgepOg.js.map +1 -0
- package/dist/chunks/barChart-B-WO75Ok.js +160 -0
- package/dist/chunks/barChart-B-WO75Ok.js.map +1 -0
- package/dist/chunks/barChart-BLhVsRwm.esm.js +144 -0
- package/dist/chunks/barChart-BLhVsRwm.esm.js.map +1 -0
- package/dist/chunks/barLinechart-D3G4VUJZ.esm.js +180 -0
- package/dist/chunks/barLinechart-D3G4VUJZ.esm.js.map +1 -0
- package/dist/chunks/barLinechart-DEfYJvJj.js +196 -0
- package/dist/chunks/barLinechart-DEfYJvJj.js.map +1 -0
- package/dist/chunks/calculation-summary-GdbtqnzK.esm.js +193 -0
- package/dist/chunks/calculation-summary-GdbtqnzK.esm.js.map +1 -0
- package/dist/chunks/calculation-summary-IGoIPXGL.js +192 -0
- package/dist/chunks/calculation-summary-IGoIPXGL.js.map +1 -0
- package/dist/chunks/chat-bot-BIXoGUj-.js +3609 -0
- package/dist/chunks/chat-bot-BIXoGUj-.js.map +1 -0
- package/dist/chunks/chat-bot-DURQfOqY.esm.js +3610 -0
- package/dist/chunks/chat-bot-DURQfOqY.esm.js.map +1 -0
- package/dist/chunks/common-utility-BLazlXzI.js +300 -0
- package/dist/chunks/common-utility-BLazlXzI.js.map +1 -0
- package/dist/chunks/common-utility-BQcU3rOh.esm.js +301 -0
- package/dist/chunks/common-utility-BQcU3rOh.esm.js.map +1 -0
- package/dist/chunks/custom-date-picker-BCcOhhvL.js +55 -0
- package/dist/chunks/custom-date-picker-BCcOhhvL.js.map +1 -0
- package/dist/chunks/custom-date-picker-qIdI_Mxe.esm.js +56 -0
- package/dist/chunks/custom-date-picker-qIdI_Mxe.esm.js.map +1 -0
- package/dist/chunks/custom-editor-CPTkZWIZ.js +1257 -0
- package/dist/chunks/custom-editor-CPTkZWIZ.js.map +1 -0
- package/dist/chunks/custom-editor-De9IWFLM.esm.js +1257 -0
- package/dist/chunks/custom-editor-De9IWFLM.esm.js.map +1 -0
- package/dist/chunks/custom-form-BoIrVoZW.esm.js +1146 -0
- package/dist/chunks/custom-form-BoIrVoZW.esm.js.map +1 -0
- package/dist/chunks/custom-form-DgnkFIZM.js +1145 -0
- package/dist/chunks/custom-form-DgnkFIZM.js.map +1 -0
- package/dist/chunks/custom-grid-card-DWv2PDQb.esm.js +128 -0
- package/dist/chunks/custom-grid-card-DWv2PDQb.esm.js.map +1 -0
- package/dist/chunks/custom-grid-card-H63FyqOk.js +127 -0
- package/dist/chunks/custom-grid-card-H63FyqOk.js.map +1 -0
- package/dist/chunks/dashboard-CVAH7i-8.esm.js +75 -0
- package/dist/chunks/dashboard-CVAH7i-8.esm.js.map +1 -0
- package/dist/chunks/dashboard-Drpz8zP5.js +74 -0
- package/dist/chunks/dashboard-Drpz8zP5.js.map +1 -0
- package/dist/chunks/date-BN5rVQeb.js +55 -0
- package/dist/chunks/date-BN5rVQeb.js.map +1 -0
- package/dist/chunks/date-CZNWJ8r7.esm.js +56 -0
- package/dist/chunks/date-CZNWJ8r7.esm.js.map +1 -0
- package/dist/chunks/date-format-settings-DohP3zvG.esm.js +117 -0
- package/dist/chunks/date-format-settings-DohP3zvG.esm.js.map +1 -0
- package/dist/chunks/date-format-settings-QiQTyiTn.js +116 -0
- package/dist/chunks/date-format-settings-QiQTyiTn.js.map +1 -0
- package/dist/chunks/date-picker-BAf8u-E9.esm.js +129 -0
- package/dist/chunks/date-picker-BAf8u-E9.esm.js.map +1 -0
- package/dist/chunks/date-picker-Dv_dfc9e.js +128 -0
- package/dist/chunks/date-picker-Dv_dfc9e.js.map +1 -0
- package/dist/chunks/date-range-picker-BHAVj3qf.js +62 -0
- package/dist/chunks/date-range-picker-BHAVj3qf.js.map +1 -0
- package/dist/chunks/date-range-picker-Ce01L3eF.esm.js +198 -0
- package/dist/chunks/date-range-picker-Ce01L3eF.esm.js.map +1 -0
- package/dist/chunks/date-range-picker-Dt6ODTKk.js +197 -0
- package/dist/chunks/date-range-picker-Dt6ODTKk.js.map +1 -0
- package/dist/chunks/date-range-picker-XrXYvhk6.esm.js +63 -0
- package/dist/chunks/date-range-picker-XrXYvhk6.esm.js.map +1 -0
- package/dist/chunks/date-time-Cscyu2JC.esm.js +55 -0
- package/dist/chunks/date-time-Cscyu2JC.esm.js.map +1 -0
- package/dist/chunks/date-time-DnEKq5ca.js +54 -0
- package/dist/chunks/date-time-DnEKq5ca.js.map +1 -0
- package/dist/chunks/date-time-picker-DOjxcYjT.js +115 -0
- package/dist/chunks/date-time-picker-DOjxcYjT.js.map +1 -0
- package/dist/chunks/date-time-picker-Dcs1e1Bc.esm.js +116 -0
- package/dist/chunks/date-time-picker-Dcs1e1Bc.esm.js.map +1 -0
- package/dist/chunks/dateFormat-BU9us1HO.esm.js +58 -0
- package/dist/chunks/dateFormat-BU9us1HO.esm.js.map +1 -0
- package/dist/chunks/dateFormat-MGjtBNwQ.js +57 -0
- package/dist/chunks/dateFormat-MGjtBNwQ.js.map +1 -0
- package/dist/chunks/discount-summary-C2L7GwJ5.esm.js +60 -0
- package/dist/chunks/discount-summary-C2L7GwJ5.esm.js.map +1 -0
- package/dist/chunks/discount-summary-CdrsdFbM.js +59 -0
- package/dist/chunks/discount-summary-CdrsdFbM.js.map +1 -0
- package/dist/chunks/dynamic-report-Bq614rL9.esm.js +589 -0
- package/dist/chunks/dynamic-report-Bq614rL9.esm.js.map +1 -0
- package/dist/chunks/dynamic-report-Dc2pd29H.js +588 -0
- package/dist/chunks/dynamic-report-Dc2pd29H.js.map +1 -0
- package/dist/chunks/dynamic-rows-BMj3evxl.js +249 -0
- package/dist/chunks/dynamic-rows-BMj3evxl.js.map +1 -0
- package/dist/chunks/dynamic-rows-Bi_L6K1Q.esm.js +250 -0
- package/dist/chunks/dynamic-rows-Bi_L6K1Q.esm.js.map +1 -0
- package/dist/chunks/dynamic-text-editor-BzyWihOp.js +44 -0
- package/dist/chunks/dynamic-text-editor-BzyWihOp.js.map +1 -0
- package/dist/chunks/dynamic-text-editor-FtzncH90.esm.js +45 -0
- package/dist/chunks/dynamic-text-editor-FtzncH90.esm.js.map +1 -0
- package/dist/chunks/edit-section-modal-By1pY8Kd.js +76 -0
- package/dist/chunks/edit-section-modal-By1pY8Kd.js.map +1 -0
- package/dist/chunks/edit-section-modal-lx44BKxM.esm.js +77 -0
- package/dist/chunks/edit-section-modal-lx44BKxM.esm.js.map +1 -0
- package/dist/chunks/filter-3x9UWii1.js +414 -0
- package/dist/chunks/filter-3x9UWii1.js.map +1 -0
- package/dist/chunks/filter-BnSYAact.esm.js +415 -0
- package/dist/chunks/filter-BnSYAact.esm.js.map +1 -0
- package/dist/chunks/footer-BDXx5kJG.esm.js +64 -0
- package/dist/chunks/footer-BDXx5kJG.esm.js.map +1 -0
- package/dist/chunks/footer-CNUL1un1.js +63 -0
- package/dist/chunks/footer-CNUL1un1.js.map +1 -0
- package/dist/chunks/form-fields-D7-_tDuw.esm.js +355 -0
- package/dist/chunks/form-fields-D7-_tDuw.esm.js.map +1 -0
- package/dist/chunks/form-fields-DYqWfI4L.js +354 -0
- package/dist/chunks/form-fields-DYqWfI4L.js.map +1 -0
- package/dist/chunks/form-parser-DgKyP2XE.esm.js +591 -0
- package/dist/chunks/form-parser-DgKyP2XE.esm.js.map +1 -0
- package/dist/chunks/form-parser-r9UB3j_l.js +607 -0
- package/dist/chunks/form-parser-r9UB3j_l.js.map +1 -0
- package/dist/chunks/form-section-B0UL95xN.esm.js +476 -0
- package/dist/chunks/form-section-B0UL95xN.esm.js.map +1 -0
- package/dist/chunks/form-section-Ra3TDNTJ.js +475 -0
- package/dist/chunks/form-section-Ra3TDNTJ.js.map +1 -0
- package/dist/chunks/format-chart-value-EdWQQL_n.esm.js +37 -0
- package/dist/chunks/format-chart-value-EdWQQL_n.esm.js.map +1 -0
- package/dist/chunks/format-chart-value-liFH0bwI.js +53 -0
- package/dist/chunks/format-chart-value-liFH0bwI.js.map +1 -0
- package/dist/chunks/fullScreen-CIO00GJA.js +20 -0
- package/dist/chunks/fullScreen-CIO00GJA.js.map +1 -0
- package/dist/chunks/fullScreen-Cf1lZpPP.esm.js +21 -0
- package/dist/chunks/fullScreen-Cf1lZpPP.esm.js.map +1 -0
- package/dist/chunks/global-search-BsF1AKA-.js +149 -0
- package/dist/chunks/global-search-BsF1AKA-.js.map +1 -0
- package/dist/chunks/global-search-DyHFvWRQ.esm.js +150 -0
- package/dist/chunks/global-search-DyHFvWRQ.esm.js.map +1 -0
- package/dist/chunks/grid-view-5_HV93Hf.esm.js +52 -0
- package/dist/chunks/grid-view-5_HV93Hf.esm.js.map +1 -0
- package/dist/chunks/grid-view-D0q_qMd2.js +51 -0
- package/dist/chunks/grid-view-D0q_qMd2.js.map +1 -0
- package/dist/chunks/header-DAad5p_7.js +90 -0
- package/dist/chunks/header-DAad5p_7.js.map +1 -0
- package/dist/chunks/header-S5MMcx4g.esm.js +91 -0
- package/dist/chunks/header-S5MMcx4g.esm.js.map +1 -0
- package/dist/chunks/header-enhanced-BPJQGGo7.js +400 -0
- package/dist/chunks/header-enhanced-BPJQGGo7.js.map +1 -0
- package/dist/chunks/header-enhanced-BtUsM1g3.esm.js +401 -0
- package/dist/chunks/header-enhanced-BtUsM1g3.esm.js.map +1 -0
- package/dist/chunks/inline-edit-fields-BXrrK0UT.esm.js +324 -0
- package/dist/chunks/inline-edit-fields-BXrrK0UT.esm.js.map +1 -0
- package/dist/chunks/inline-edit-fields-DeS-sx9_.js +340 -0
- package/dist/chunks/inline-edit-fields-DeS-sx9_.js.map +1 -0
- package/dist/chunks/inventory-reports-title-bar-CFqheEGb.js +733 -0
- package/dist/chunks/inventory-reports-title-bar-CFqheEGb.js.map +1 -0
- package/dist/chunks/inventory-reports-title-bar-CuPn69g7.esm.js +734 -0
- package/dist/chunks/inventory-reports-title-bar-CuPn69g7.esm.js.map +1 -0
- package/dist/chunks/item-response-details-BkE8ExKF.js +78 -0
- package/dist/chunks/item-response-details-BkE8ExKF.js.map +1 -0
- package/dist/chunks/item-response-details-FLk2xeBs.esm.js +79 -0
- package/dist/chunks/item-response-details-FLk2xeBs.esm.js.map +1 -0
- package/dist/chunks/listing-BlTk1lk7.js +275 -0
- package/dist/chunks/listing-BlTk1lk7.js.map +1 -0
- package/dist/chunks/listing-CBjRBr5T.esm.js +276 -0
- package/dist/chunks/listing-CBjRBr5T.esm.js.map +1 -0
- package/dist/chunks/location-select-BfXoscUj.esm.js +86 -0
- package/dist/chunks/location-select-BfXoscUj.esm.js.map +1 -0
- package/dist/chunks/location-select-C4r-bjZM.js +85 -0
- package/dist/chunks/location-select-C4r-bjZM.js.map +1 -0
- package/dist/chunks/material-editable-table-CUi1XChG.esm.js +1469 -0
- package/dist/chunks/material-editable-table-CUi1XChG.esm.js.map +1 -0
- package/dist/chunks/material-editable-table-DvOXRsag.js +1485 -0
- package/dist/chunks/material-editable-table-DvOXRsag.js.map +1 -0
- package/dist/chunks/module-reducer-1oIfrGzZ.js +91 -0
- package/dist/chunks/module-reducer-1oIfrGzZ.js.map +1 -0
- package/dist/chunks/module-reducer-Brv5y-yX.esm.js +92 -0
- package/dist/chunks/module-reducer-Brv5y-yX.esm.js.map +1 -0
- package/dist/chunks/multi-line-chart-CrQ7Hgm6.esm.js +96 -0
- package/dist/chunks/multi-line-chart-CrQ7Hgm6.esm.js.map +1 -0
- package/dist/chunks/multi-line-chart-DR6mEZ86.js +112 -0
- package/dist/chunks/multi-line-chart-DR6mEZ86.js.map +1 -0
- package/dist/chunks/notification-menu-B6DQbph4.js +600 -0
- package/dist/chunks/notification-menu-B6DQbph4.js.map +1 -0
- package/dist/chunks/notification-menu-BBEzqTvl.esm.js +601 -0
- package/dist/chunks/notification-menu-BBEzqTvl.esm.js.map +1 -0
- package/dist/chunks/page-action-BmdnKUie.js +324 -0
- package/dist/chunks/page-action-BmdnKUie.js.map +1 -0
- package/dist/chunks/page-action-DGnAycU4.esm.js +325 -0
- package/dist/chunks/page-action-DGnAycU4.esm.js.map +1 -0
- package/dist/chunks/page-navigator-BnJz0dir.esm.js +243 -0
- package/dist/chunks/page-navigator-BnJz0dir.esm.js.map +1 -0
- package/dist/chunks/page-navigator-qI4ptpIo.js +242 -0
- package/dist/chunks/page-navigator-qI4ptpIo.js.map +1 -0
- package/dist/chunks/page-view-BzUYT4aO.esm.js +324 -0
- package/dist/chunks/page-view-BzUYT4aO.esm.js.map +1 -0
- package/dist/chunks/page-view-CgKAg8Fs.js +323 -0
- package/dist/chunks/page-view-CgKAg8Fs.js.map +1 -0
- package/dist/chunks/quick-approval-modal--Uat95AK.js +272 -0
- package/dist/chunks/quick-approval-modal--Uat95AK.js.map +1 -0
- package/dist/chunks/quick-approval-modal-Cf5zDkO6.esm.js +256 -0
- package/dist/chunks/quick-approval-modal-Cf5zDkO6.esm.js.map +1 -0
- package/dist/chunks/reducer-5KSgWLUj.js +49 -0
- package/dist/chunks/reducer-5KSgWLUj.js.map +1 -0
- package/dist/chunks/reducer-BVEMC024.esm.js +33 -0
- package/dist/chunks/reducer-BVEMC024.esm.js.map +1 -0
- package/dist/chunks/reducer-Ba-Uxr0O.js +42 -0
- package/dist/chunks/reducer-Ba-Uxr0O.js.map +1 -0
- package/dist/chunks/reducer-C3gV86mN.esm.js +56 -0
- package/dist/chunks/reducer-C3gV86mN.esm.js.map +1 -0
- package/dist/chunks/reducer-C_1a_Ybe.js +32 -0
- package/dist/chunks/reducer-C_1a_Ybe.js.map +1 -0
- package/dist/chunks/reducer-DXCv8Ljo.esm.js +43 -0
- package/dist/chunks/reducer-DXCv8Ljo.esm.js.map +1 -0
- package/dist/chunks/reducer-DklAfYwo.js +55 -0
- package/dist/chunks/reducer-DklAfYwo.js.map +1 -0
- package/dist/chunks/reducer-DujEnCl-.js +147 -0
- package/dist/chunks/reducer-DujEnCl-.js.map +1 -0
- package/dist/chunks/reducer-PeqRGVlz.esm.js +148 -0
- package/dist/chunks/reducer-PeqRGVlz.esm.js.map +1 -0
- package/dist/chunks/reducer-e3sR-XbO.esm.js +50 -0
- package/dist/chunks/reducer-e3sR-XbO.esm.js.map +1 -0
- package/dist/chunks/reportFilter-DoD3vUsz.esm.js +396 -0
- package/dist/chunks/reportFilter-DoD3vUsz.esm.js.map +1 -0
- package/dist/chunks/reportFilter-DzgDlbu8.js +395 -0
- package/dist/chunks/reportFilter-DzgDlbu8.js.map +1 -0
- package/dist/chunks/reports-title-bar-BpeDKpyV.js +1027 -0
- package/dist/chunks/reports-title-bar-BpeDKpyV.js.map +1 -0
- package/dist/chunks/reports-title-bar-Bt9ogCT7.esm.js +1028 -0
- package/dist/chunks/reports-title-bar-Bt9ogCT7.esm.js.map +1 -0
- package/dist/chunks/route-page-map-LXxD_klV.js +8054 -0
- package/dist/chunks/route-page-map-LXxD_klV.js.map +1 -0
- package/dist/chunks/route-page-map-j4V1FsT3.esm.js +8055 -0
- package/dist/chunks/route-page-map-j4V1FsT3.esm.js.map +1 -0
- package/dist/chunks/routes-7yLS4Qxk.js +46 -0
- package/dist/chunks/routes-7yLS4Qxk.js.map +1 -0
- package/dist/chunks/routes-BE9OtJcV.esm.js +47 -0
- package/dist/chunks/routes-BE9OtJcV.esm.js.map +1 -0
- package/dist/chunks/schedule-report-B4hM1BQS.esm.js +236 -0
- package/dist/chunks/schedule-report-B4hM1BQS.esm.js.map +1 -0
- package/dist/chunks/schedule-report-D5Gtf9VF.js +235 -0
- package/dist/chunks/schedule-report-D5Gtf9VF.js.map +1 -0
- package/dist/chunks/schedule-report-modal-CFAdRSIO.esm.js +288 -0
- package/dist/chunks/schedule-report-modal-CFAdRSIO.esm.js.map +1 -0
- package/dist/chunks/schedule-report-modal-DDsrLqOm.js +287 -0
- package/dist/chunks/schedule-report-modal-DDsrLqOm.js.map +1 -0
- package/dist/chunks/searchable-select-5i6MO2Ys.esm.js +5431 -0
- package/dist/chunks/searchable-select-5i6MO2Ys.esm.js.map +1 -0
- package/dist/chunks/searchable-select-BsG-QlJk.js +5447 -0
- package/dist/chunks/searchable-select-BsG-QlJk.js.map +1 -0
- package/dist/chunks/share-modal-Bpa_0udn.esm.js +218 -0
- package/dist/chunks/share-modal-Bpa_0udn.esm.js.map +1 -0
- package/dist/chunks/share-modal-CaYg96t_.js +217 -0
- package/dist/chunks/share-modal-CaYg96t_.js.map +1 -0
- package/dist/chunks/share-modal-enhanced-B7JfgceP.esm.js +270 -0
- package/dist/chunks/share-modal-enhanced-B7JfgceP.esm.js.map +1 -0
- package/dist/chunks/share-modal-enhanced-BguLEFga.js +269 -0
- package/dist/chunks/share-modal-enhanced-BguLEFga.js.map +1 -0
- package/dist/chunks/sidebarScreen-DgpLalyG.js +200 -0
- package/dist/chunks/sidebarScreen-DgpLalyG.js.map +1 -0
- package/dist/chunks/sidebarScreen-Dp1e8Luz.esm.js +201 -0
- package/dist/chunks/sidebarScreen-Dp1e8Luz.esm.js.map +1 -0
- package/dist/chunks/store-CuKFQXI5.js +88 -0
- package/dist/chunks/store-CuKFQXI5.js.map +1 -0
- package/dist/chunks/store-KAx-wGcm.esm.js +89 -0
- package/dist/chunks/store-KAx-wGcm.esm.js.map +1 -0
- package/dist/chunks/table-CbV-bnb7.js +184 -0
- package/dist/chunks/table-CbV-bnb7.js.map +1 -0
- package/dist/chunks/table-Cdo7w_gv.esm.js +185 -0
- package/dist/chunks/table-Cdo7w_gv.esm.js.map +1 -0
- package/dist/chunks/table-form-CsxWI8HQ.esm.js +1537 -0
- package/dist/chunks/table-form-CsxWI8HQ.esm.js.map +1 -0
- package/dist/chunks/table-form-Dd2DNL6w.js +1536 -0
- package/dist/chunks/table-form-Dd2DNL6w.js.map +1 -0
- package/dist/chunks/template-editor-router-3FVvWm8W.js +8 -0
- package/dist/chunks/template-editor-router-3FVvWm8W.js.map +1 -0
- package/dist/chunks/template-editor-router-D0yZgK0u.esm.js +9 -0
- package/dist/chunks/template-editor-router-D0yZgK0u.esm.js.map +1 -0
- package/dist/chunks/template-modal-BHZbvEx9.esm.js +769 -0
- package/dist/chunks/template-modal-BHZbvEx9.esm.js.map +1 -0
- package/dist/chunks/template-modal-BuKxVaFw.js +768 -0
- package/dist/chunks/template-modal-BuKxVaFw.js.map +1 -0
- package/dist/chunks/templates-B_y-ywXc.esm.js +279 -0
- package/dist/chunks/templates-B_y-ywXc.esm.js.map +1 -0
- package/dist/chunks/templates-CtBwZgn9.js +278 -0
- package/dist/chunks/templates-CtBwZgn9.js.map +1 -0
- package/dist/chunks/text-measurement-BcBEexWP.js +251 -0
- package/dist/chunks/text-measurement-BcBEexWP.js.map +1 -0
- package/dist/chunks/text-measurement-w3Vk7SeS.esm.js +252 -0
- package/dist/chunks/text-measurement-w3Vk7SeS.esm.js.map +1 -0
- package/dist/chunks/total-summary-DPOMR8e4.esm.js +41 -0
- package/dist/chunks/total-summary-DPOMR8e4.esm.js.map +1 -0
- package/dist/chunks/total-summary-erUelIxr.js +40 -0
- package/dist/chunks/total-summary-erUelIxr.js.map +1 -0
- package/dist/chunks/translations-BnLuKxeJ.js +58 -0
- package/dist/chunks/translations-BnLuKxeJ.js.map +1 -0
- package/dist/chunks/translations-DQJAYm2A.esm.js +59 -0
- package/dist/chunks/translations-DQJAYm2A.esm.js.map +1 -0
- package/dist/chunks/uom-field-wrapper-BlwUeXmo.js +79 -0
- package/dist/chunks/uom-field-wrapper-BlwUeXmo.js.map +1 -0
- package/dist/chunks/uom-field-wrapper-D2QSsD7M.esm.js +80 -0
- package/dist/chunks/uom-field-wrapper-D2QSsD7M.esm.js.map +1 -0
- package/dist/chunks/upload-excel-DF6rPBeA.esm.js +361 -0
- package/dist/chunks/upload-excel-DF6rPBeA.esm.js.map +1 -0
- package/dist/chunks/upload-excel-vbTf63qn.js +360 -0
- package/dist/chunks/upload-excel-vbTf63qn.js.map +1 -0
- package/dist/chunks/use-translations-C_AFtNWf.esm.js +62 -0
- package/dist/chunks/use-translations-C_AFtNWf.esm.js.map +1 -0
- package/dist/chunks/use-translations-Dnm_y9o4.js +61 -0
- package/dist/chunks/use-translations-Dnm_y9o4.js.map +1 -0
- package/dist/chunks/useAccountSetting-BimM7OxP.js +172 -0
- package/dist/chunks/useAccountSetting-BimM7OxP.js.map +1 -0
- package/dist/chunks/useAccountSetting-BsIE2d1l.esm.js +173 -0
- package/dist/chunks/useAccountSetting-BsIE2d1l.esm.js.map +1 -0
- package/dist/chunks/useCheckSkuAndName-C0twPQja.esm.js +50 -0
- package/dist/chunks/useCheckSkuAndName-C0twPQja.esm.js.map +1 -0
- package/dist/chunks/useCheckSkuAndName-CQq8Le-_.js +49 -0
- package/dist/chunks/useCheckSkuAndName-CQq8Le-_.js.map +1 -0
- package/dist/chunks/useReduxIntegration-B5GrPUbT.js +38 -0
- package/dist/chunks/useReduxIntegration-B5GrPUbT.js.map +1 -0
- package/dist/chunks/useReduxIntegration-DzhcP34r.esm.js +39 -0
- package/dist/chunks/useReduxIntegration-DzhcP34r.esm.js.map +1 -0
- package/dist/chunks/useUniquenessCheck-BIT9TNYY.esm.js +39 -0
- package/dist/chunks/useUniquenessCheck-BIT9TNYY.esm.js.map +1 -0
- package/dist/chunks/useUniquenessCheck-VBBQqtYP.js +38 -0
- package/dist/chunks/useUniquenessCheck-VBBQqtYP.js.map +1 -0
- package/dist/chunks/useVendorAICompare-Bu4fjpby.esm.js +31 -0
- package/dist/chunks/useVendorAICompare-Bu4fjpby.esm.js.map +1 -0
- package/dist/chunks/useVendorAICompare-Cad1SOQx.js +30 -0
- package/dist/chunks/useVendorAICompare-Cad1SOQx.js.map +1 -0
- package/dist/chunks/value-editor-CtppXtUW.js +266 -0
- package/dist/chunks/value-editor-CtppXtUW.js.map +1 -0
- package/dist/chunks/value-editor-xwtdV2gn.esm.js +267 -0
- package/dist/chunks/value-editor-xwtdV2gn.esm.js.map +1 -0
- package/dist/chunks/vendor-ai-summary-Cf8yBCJC.js +227 -0
- package/dist/chunks/vendor-ai-summary-Cf8yBCJC.js.map +1 -0
- package/dist/chunks/vendor-ai-summary-w6_aC72U.esm.js +228 -0
- package/dist/chunks/vendor-ai-summary-w6_aC72U.esm.js.map +1 -0
- package/dist/components/action-bar/action-bar/index.esm.js +1 -1
- package/dist/components/action-bar/action-bar/index.js +1 -1
- package/dist/components/action-bar/index.esm.js +1 -1
- package/dist/components/action-bar/index.js +1 -1
- package/dist/components/activityLog/activity-log/index.esm.js +1 -1
- package/dist/components/activityLog/activity-log/index.js +1 -1
- package/dist/components/activityLog/index.esm.js +1 -1
- package/dist/components/activityLog/index.js +1 -1
- package/dist/components/address-modal/index.esm.js +1 -1
- package/dist/components/address-modal/index.js +1 -1
- package/dist/components/ai-summary/ai-summary/index.esm.js +1 -1
- package/dist/components/ai-summary/ai-summary/index.js +1 -1
- package/dist/components/ai-summary/index.esm.js +1 -1
- package/dist/components/ai-summary/index.js +1 -1
- package/dist/components/appbar/appbar/index.esm.js +1 -1
- package/dist/components/appbar/appbar/index.js +1 -1
- package/dist/components/appbar/index.esm.js +1 -1
- package/dist/components/appbar/index.js +1 -1
- package/dist/components/approval-wrapper/approval-wrapper/index.esm.js +1 -1
- package/dist/components/approval-wrapper/approval-wrapper/index.js +1 -1
- package/dist/components/approval-wrapper/index.esm.js +1 -1
- package/dist/components/approval-wrapper/index.js +1 -1
- package/dist/components/calculation-summary/calculation-summary/index.esm.js +1 -1
- package/dist/components/calculation-summary/calculation-summary/index.js +1 -1
- package/dist/components/calculation-summary/components/discount-summary/index.esm.js +1 -1
- package/dist/components/calculation-summary/components/discount-summary/index.js +1 -1
- package/dist/components/calculation-summary/components/index.esm.js +2 -2
- package/dist/components/calculation-summary/components/index.js +2 -2
- package/dist/components/calculation-summary/components/total-summary/index.esm.js +1 -1
- package/dist/components/calculation-summary/components/total-summary/index.js +1 -1
- package/dist/components/calculation-summary/index.esm.js +3 -3
- package/dist/components/calculation-summary/index.js +3 -3
- package/dist/components/charts/areaLinerChart/index.esm.js +1 -1
- package/dist/components/charts/areaLinerChart/index.js +1 -1
- package/dist/components/charts/bar-chart/bar-chart/index.esm.js +1 -1
- package/dist/components/charts/bar-chart/bar-chart/index.js +1 -1
- package/dist/components/charts/bar-chart/index.esm.js +1 -1
- package/dist/components/charts/bar-chart/index.js +1 -1
- package/dist/components/charts/barChart/barChart/index.esm.js +1 -1
- package/dist/components/charts/barChart/barChart/index.js +1 -1
- package/dist/components/charts/barChart/index.esm.js +1 -1
- package/dist/components/charts/barChart/index.js +1 -1
- package/dist/components/charts/barLineChart/barLinechart/index.esm.js +1 -1
- package/dist/components/charts/barLineChart/barLinechart/index.js +1 -1
- package/dist/components/charts/barLineChart/index.esm.js +1 -1
- package/dist/components/charts/barLineChart/index.js +1 -1
- package/dist/components/charts/donutChart/DonutChart/index.esm.js +1 -1
- package/dist/components/charts/donutChart/DonutChart/index.js +1 -1
- package/dist/components/charts/donutChart/index.esm.js +1 -1
- package/dist/components/charts/donutChart/index.js +1 -1
- package/dist/components/charts/groupBarChart/GroupBarChart/index.esm.js +1 -1
- package/dist/components/charts/groupBarChart/GroupBarChart/index.js +1 -1
- package/dist/components/charts/groupBarChart/index.esm.js +1 -1
- package/dist/components/charts/groupBarChart/index.js +1 -1
- package/dist/components/charts/index.esm.js +7 -7
- package/dist/components/charts/index.js +7 -7
- package/dist/components/charts/multiLineChart/index.esm.js +1 -1
- package/dist/components/charts/multiLineChart/index.js +1 -1
- package/dist/components/charts/multiLineChart/multi-line-chart/index.esm.js +1 -1
- package/dist/components/charts/multiLineChart/multi-line-chart/index.js +1 -1
- package/dist/components/chat-bot/index.esm.js +2 -1
- package/dist/components/chat-bot/index.js +2 -1
- package/dist/components/chat-bot/index.js.map +1 -1
- package/dist/components/custom-forms/FORMS/index.esm.js +1 -1
- package/dist/components/custom-forms/FORMS/index.js +1 -1
- package/dist/components/custom-forms/grid-view/grid-view/index.esm.js +1 -1
- package/dist/components/custom-forms/grid-view/grid-view/index.js +1 -1
- package/dist/components/custom-forms/grid-view/index.esm.js +1 -1
- package/dist/components/custom-forms/grid-view/index.js +1 -1
- package/dist/components/custom-forms/index.esm.js +2 -2
- package/dist/components/custom-forms/index.js +2 -2
- package/dist/components/customer-ai-summary/index.esm.js +1 -1
- package/dist/components/customer-ai-summary/index.js +1 -1
- package/dist/components/date-picker/date-picker/index.esm.js +1 -1
- package/dist/components/date-picker/date-picker/index.js +1 -1
- package/dist/components/date-picker/index.esm.js +2 -2
- package/dist/components/date-picker/index.js +2 -2
- package/dist/components/date-range-picker/date-range-picker/index.esm.js +1 -1
- package/dist/components/date-range-picker/date-range-picker/index.js +1 -1
- package/dist/components/date-range-picker/index.esm.js +2 -2
- package/dist/components/date-range-picker/index.js +2 -2
- package/dist/components/date-time-picker/date-time-picker/index.esm.js +1 -1
- package/dist/components/date-time-picker/date-time-picker/index.js +1 -1
- package/dist/components/date-time-picker/index.esm.js +2 -2
- package/dist/components/date-time-picker/index.js +2 -2
- package/dist/components/department-add-modal/index.esm.js +1 -1
- package/dist/components/department-add-modal/index.js +1 -1
- package/dist/components/designation-add-modal/index.esm.js +1 -1
- package/dist/components/designation-add-modal/index.js +1 -1
- package/dist/components/editor/custom-editor/index.esm.js +1 -1
- package/dist/components/editor/custom-editor/index.js +1 -1
- package/dist/components/editor/index.esm.js +1 -1
- package/dist/components/editor/index.js +1 -1
- package/dist/components/examples/FlexibleReduxExample/index.esm.js +1 -1
- package/dist/components/examples/FlexibleReduxExample/index.js +1 -1
- package/dist/components/examples/index.esm.js +1 -1
- package/dist/components/examples/index.js +1 -1
- package/dist/components/filter/components/index.esm.js +1 -1
- package/dist/components/filter/components/index.js +1 -1
- package/dist/components/filter/components/value-editor/index.esm.js +1 -1
- package/dist/components/filter/components/value-editor/index.js +1 -1
- package/dist/components/filter/filter/index.esm.js +1 -1
- package/dist/components/filter/filter/index.js +1 -1
- package/dist/components/filter/index.esm.js +2 -2
- package/dist/components/filter/index.js +2 -2
- package/dist/components/footer/footer/index.esm.js +1 -1
- package/dist/components/footer/footer/index.js +1 -1
- package/dist/components/footer/index.esm.js +1 -1
- package/dist/components/footer/index.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/custom-date-picker/index.esm.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/custom-date-picker/index.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/date/index.esm.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/date/index.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/date-range-picker/index.esm.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/date-range-picker/index.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/date-time/index.esm.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/date-time/index.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/dynamic-dependent-field/index.esm.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/dynamic-dependent-field/index.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/dynamic-select/index.esm.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/dynamic-select/index.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/dynamic-text-editor/index.esm.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/dynamic-text-editor/index.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/fixed-asset-item-add-modal/index.esm.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/fixed-asset-item-add-modal/index.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/index.esm.js +8 -8
- package/dist/components/form-control/form-builder/form-builder-element/index.js +8 -8
- package/dist/components/form-control/form-builder/form-builder-element/location-add-modal/index.esm.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/location-add-modal/index.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/select-configuration/index.esm.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/select-configuration/index.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/table/index.esm.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/table/index.js +1 -1
- package/dist/components/form-control/form-builder/index.esm.js +8 -8
- package/dist/components/form-control/form-builder/index.js +8 -8
- package/dist/components/form-control/form-parser/form-parser/index.esm.js +1 -1
- package/dist/components/form-control/form-parser/form-parser/index.js +1 -1
- package/dist/components/form-control/form-parser/form-section/index.esm.js +1 -1
- package/dist/components/form-control/form-parser/form-section/index.js +1 -1
- package/dist/components/form-control/form-parser/index.esm.js +2 -2
- package/dist/components/form-control/form-parser/index.js +2 -2
- package/dist/components/form-control/index.esm.js +10 -10
- package/dist/components/form-control/index.js +10 -10
- package/dist/components/grid/custom-grid-card/custom-grid-card/index.esm.js +1 -1
- package/dist/components/grid/custom-grid-card/custom-grid-card/index.js +1 -1
- package/dist/components/grid/custom-grid-card/index.esm.js +1 -1
- package/dist/components/grid/custom-grid-card/index.js +1 -1
- package/dist/components/grid/index.esm.js +1 -1
- package/dist/components/grid/index.js +1 -1
- package/dist/components/header/components/global-search/index.esm.js +1 -1
- package/dist/components/header/components/global-search/index.js +1 -1
- package/dist/components/header/components/index.esm.js +1 -1
- package/dist/components/header/components/index.js +1 -1
- package/dist/components/header/components/notification-menu/index.esm.js +1 -1
- package/dist/components/header/components/notification-menu/index.js +1 -1
- package/dist/components/header/components/notification-menu/notification-menu/index.esm.js +1 -1
- package/dist/components/header/components/notification-menu/notification-menu/index.js +1 -1
- package/dist/components/header/header/index.esm.js +1 -1
- package/dist/components/header/header/index.js +1 -1
- package/dist/components/header/header-enhanced/index.esm.js +1 -1
- package/dist/components/header/header-enhanced/index.js +1 -1
- package/dist/components/header/index.esm.js +5 -5
- package/dist/components/header/index.js +5 -5
- package/dist/components/header/redux/actionCreator/index.esm.js +1 -1
- package/dist/components/header/redux/actionCreator/index.js +1 -1
- package/dist/components/header/redux/index.esm.js +2 -2
- package/dist/components/header/redux/index.js +2 -2
- package/dist/components/header/redux/reducer/index.esm.js +1 -1
- package/dist/components/header/redux/reducer/index.js +1 -1
- package/dist/components/index.esm.js +53 -53
- package/dist/components/index.js +53 -53
- package/dist/components/inventory-reports-title-bar/component/index.esm.js +1 -1
- package/dist/components/inventory-reports-title-bar/component/index.js +1 -1
- package/dist/components/inventory-reports-title-bar/component/reportFilter/index.esm.js +1 -1
- package/dist/components/inventory-reports-title-bar/component/reportFilter/index.js +1 -1
- package/dist/components/inventory-reports-title-bar/index.esm.js +4 -4
- package/dist/components/inventory-reports-title-bar/index.js +4 -4
- package/dist/components/inventory-reports-title-bar/inventory-reports-title-bar/index.esm.js +1 -1
- package/dist/components/inventory-reports-title-bar/inventory-reports-title-bar/index.js +1 -1
- package/dist/components/inventory-reports-title-bar/redux/actionCreator/index.esm.js +1 -1
- package/dist/components/inventory-reports-title-bar/redux/actionCreator/index.js +1 -1
- package/dist/components/inventory-reports-title-bar/redux/index.esm.js +2 -2
- package/dist/components/inventory-reports-title-bar/redux/index.js +2 -2
- package/dist/components/inventory-reports-title-bar/redux/reducer/index.esm.js +1 -1
- package/dist/components/inventory-reports-title-bar/redux/reducer/index.js +1 -1
- package/dist/components/listing/index.esm.js +1 -1
- package/dist/components/listing/index.js +1 -1
- package/dist/components/listing/listing/index.esm.js +1 -1
- package/dist/components/listing/listing/index.js +1 -1
- package/dist/components/location-select/index.esm.js +1 -1
- package/dist/components/location-select/index.js +1 -1
- package/dist/components/material-editable-table/components/index.esm.js +1 -1
- package/dist/components/material-editable-table/components/index.js +1 -1
- package/dist/components/material-editable-table/components/inline-edit-fields/index.esm.js +1 -1
- package/dist/components/material-editable-table/components/inline-edit-fields/index.js +1 -1
- package/dist/components/material-editable-table/index.esm.js +2 -2
- package/dist/components/material-editable-table/index.js +2 -2
- package/dist/components/material-editable-table/material-editable-table/index.esm.js +1 -1
- package/dist/components/material-editable-table/material-editable-table/index.js +1 -1
- package/dist/components/material-table/components/index.esm.js +1 -1
- package/dist/components/material-table/components/index.js +1 -1
- package/dist/components/material-table/components/inline-edit-fields/index.esm.js +1 -1
- package/dist/components/material-table/components/inline-edit-fields/index.js +1 -1
- package/dist/components/material-table/index.esm.js +1 -1
- package/dist/components/material-table/index.js +1 -1
- package/dist/components/material-table/material-table/index.esm.js +1 -1
- package/dist/components/material-table/material-table/index.js +1 -1
- package/dist/components/page-navigator/components/index.esm.js +1 -1
- package/dist/components/page-navigator/components/index.js +1 -1
- package/dist/components/page-navigator/components/page-action/index.esm.js +1 -1
- package/dist/components/page-navigator/components/page-action/index.js +1 -1
- package/dist/components/page-navigator/index.esm.js +2 -2
- package/dist/components/page-navigator/index.js +2 -2
- package/dist/components/page-navigator/page-navigator/index.esm.js +1 -1
- package/dist/components/page-navigator/page-navigator/index.js +1 -1
- package/dist/components/parties-modal/index.esm.js +1 -1
- package/dist/components/parties-modal/index.js +1 -1
- package/dist/components/parties-modal/parties-modal/index.esm.js +1 -1
- package/dist/components/parties-modal/parties-modal/index.js +1 -1
- package/dist/components/providers/ERPUIProvider/index.esm.js +1 -1
- package/dist/components/providers/ERPUIProvider/index.js +1 -1
- package/dist/components/providers/index.esm.js +1 -1
- package/dist/components/providers/index.js +1 -1
- package/dist/components/quick-approval-modal/index.esm.js +1 -1
- package/dist/components/quick-approval-modal/index.js +1 -1
- package/dist/components/quick-approval-modal/quick-approval-modal/index.esm.js +1 -1
- package/dist/components/quick-approval-modal/quick-approval-modal/index.js +1 -1
- package/dist/components/reports/dynamic-report/dynamic-report/index.esm.js +1 -1
- package/dist/components/reports/dynamic-report/dynamic-report/index.js +1 -1
- package/dist/components/reports/dynamic-report/dynamic-rows/index.esm.js +1 -1
- package/dist/components/reports/dynamic-report/dynamic-rows/index.js +1 -1
- package/dist/components/reports/dynamic-report/index.esm.js +2 -2
- package/dist/components/reports/dynamic-report/index.js +2 -2
- package/dist/components/reports/index.esm.js +2 -2
- package/dist/components/reports/index.js +2 -2
- package/dist/components/reports-title-bar/index.esm.js +3 -3
- package/dist/components/reports-title-bar/index.js +3 -3
- package/dist/components/reports-title-bar/redux/actionCreator/index.esm.js +1 -1
- package/dist/components/reports-title-bar/redux/actionCreator/index.js +1 -1
- package/dist/components/reports-title-bar/redux/index.esm.js +2 -2
- package/dist/components/reports-title-bar/redux/index.js +2 -2
- package/dist/components/reports-title-bar/redux/reducer/index.esm.js +1 -1
- package/dist/components/reports-title-bar/redux/reducer/index.js +1 -1
- package/dist/components/reports-title-bar/reports-title-bar/index.esm.js +1 -1
- package/dist/components/reports-title-bar/reports-title-bar/index.js +1 -1
- package/dist/components/rfq-response/index.esm.js +1 -1
- package/dist/components/rfq-response/index.js +1 -1
- package/dist/components/rfq-response/item-response-details/index.esm.js +1 -1
- package/dist/components/rfq-response/item-response-details/index.js +1 -1
- package/dist/components/schedule-report/index.esm.js +2 -2
- package/dist/components/schedule-report/index.js +2 -2
- package/dist/components/schedule-report/schedule-report/index.esm.js +1 -1
- package/dist/components/schedule-report/schedule-report/index.js +1 -1
- package/dist/components/schedule-report/schedule-report-modal/index.esm.js +1 -1
- package/dist/components/schedule-report/schedule-report-modal/index.js +1 -1
- package/dist/components/searchable-select/index.esm.js +1 -1
- package/dist/components/searchable-select/index.js +1 -1
- package/dist/components/share-modal/index.esm.js +4 -4
- package/dist/components/share-modal/index.js +4 -4
- package/dist/components/share-modal/redux/actionCreator/index.esm.js +1 -1
- package/dist/components/share-modal/redux/actionCreator/index.js +1 -1
- package/dist/components/share-modal/redux/index.esm.js +2 -2
- package/dist/components/share-modal/redux/index.js +2 -2
- package/dist/components/share-modal/redux/reducer/index.esm.js +1 -1
- package/dist/components/share-modal/redux/reducer/index.js +1 -1
- package/dist/components/share-modal/share-modal/index.esm.js +1 -1
- package/dist/components/share-modal/share-modal/index.js +1 -1
- package/dist/components/share-modal/share-modal-enhanced/index.esm.js +1 -1
- package/dist/components/share-modal/share-modal-enhanced/index.js +1 -1
- package/dist/components/team-add-modal/index.esm.js +1 -1
- package/dist/components/team-add-modal/index.js +1 -1
- package/dist/components/uom-field-wrapper/index.esm.js +1 -1
- package/dist/components/uom-field-wrapper/index.js +1 -1
- package/dist/components/uom-field-wrapper/uom-field-wrapper/index.esm.js +1 -1
- package/dist/components/uom-field-wrapper/uom-field-wrapper/index.js +1 -1
- package/dist/components/upload-excel/index.esm.js +1 -1
- package/dist/components/upload-excel/index.js +1 -1
- package/dist/components/upload-excel/upload-excel/index.esm.js +1 -1
- package/dist/components/upload-excel/upload-excel/index.js +1 -1
- package/dist/components/vendor-ai-summary/index.esm.js +1 -1
- package/dist/components/vendor-ai-summary/index.js +1 -1
- package/dist/constants/index.esm.js +1 -1
- package/dist/constants/index.js +1 -1
- package/dist/hooks/index.esm.js +6 -6
- package/dist/hooks/index.js +6 -6
- package/dist/hooks/use-translations/index.esm.js +1 -1
- package/dist/hooks/use-translations/index.js +1 -1
- package/dist/hooks/useAccountSetting/index.esm.js +1 -1
- package/dist/hooks/useAccountSetting/index.js +1 -1
- package/dist/hooks/useCheckSkuAndName/index.esm.js +1 -1
- package/dist/hooks/useCheckSkuAndName/index.js +1 -1
- package/dist/hooks/useReduxIntegration/index.esm.js +1 -1
- package/dist/hooks/useReduxIntegration/index.js +1 -1
- package/dist/hooks/useUniquenessCheck/index.esm.js +1 -1
- package/dist/hooks/useUniquenessCheck/index.js +1 -1
- package/dist/index.esm.js +137 -119
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +100 -82
- package/dist/index.js.map +1 -1
- package/dist/layout/fullScreen/index.esm.js +1 -1
- package/dist/layout/fullScreen/index.js +1 -1
- package/dist/layout/index.esm.js +2 -2
- package/dist/layout/index.js +2 -2
- package/dist/layout/sidebarScreen/index.esm.js +1 -1
- package/dist/layout/sidebarScreen/index.js +1 -1
- package/dist/redux/index.esm.js +3 -3
- package/dist/redux/index.js +3 -3
- package/dist/runtime/index.esm.js +6 -2
- package/dist/runtime/index.esm.js.map +1 -1
- package/dist/runtime/index.js +6 -2
- package/dist/runtime/index.js.map +1 -1
- package/dist/src/components/calculation-summary/components/discount-summary.d.ts +1 -0
- package/dist/src/components/calculation-summary/components/total-summary.d.ts +1 -0
- package/dist/src/components/chat-bot/chat-bot-input.d.ts +2 -1
- package/dist/src/components/chat-bot/constants.d.ts +1 -0
- package/dist/src/components/reports-title-bar/reports-title-bar.d.ts +5 -0
- package/dist/src/utils/date-format-settings.d.ts +60 -0
- package/dist/src/utils/dateFormat.d.ts +1 -0
- package/dist/style.css +28 -1
- package/dist/utils/api/index.esm.js +1 -1
- package/dist/utils/api/index.js +1 -1
- package/dist/utils/common/index.esm.js +1 -1
- package/dist/utils/common/index.js +1 -1
- package/dist/utils/common-utility/index.esm.js +1 -1
- package/dist/utils/common-utility/index.js +1 -1
- package/dist/utils/dateFormat/index.esm.js +20 -2
- package/dist/utils/dateFormat/index.esm.js.map +1 -1
- package/dist/utils/dateFormat/index.js +19 -1
- package/dist/utils/dateFormat/index.js.map +1 -1
- package/dist/utils/form-builder-deconversion/index.esm.js +10 -4
- package/dist/utils/form-builder-deconversion/index.esm.js.map +1 -1
- package/dist/utils/form-builder-deconversion/index.js +10 -4
- package/dist/utils/form-builder-deconversion/index.js.map +1 -1
- package/dist/utils/index.esm.js +28 -10
- package/dist/utils/index.esm.js.map +1 -1
- package/dist/utils/index.js +23 -5
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/text-measurement/index.esm.js +1 -1
- package/dist/utils/text-measurement/index.js +1 -1
- package/dist/views/afterAuth/dashboard/index.esm.js +1 -1
- package/dist/views/afterAuth/dashboard/index.js +1 -1
- package/dist/views/afterAuth/index.esm.js +2 -2
- package/dist/views/afterAuth/index.js +2 -2
- package/dist/views/afterAuth/page-view/index.esm.js +1 -1
- package/dist/views/afterAuth/page-view/index.js +1 -1
- package/dist/views/form-builder/custom-form/index.esm.js +1 -1
- package/dist/views/form-builder/custom-form/index.js +1 -1
- package/dist/views/form-builder/element-edit-forms/index.esm.js +1 -1
- package/dist/views/form-builder/element-edit-forms/index.js +1 -1
- package/dist/views/form-builder/form-fields/index.esm.js +1 -1
- package/dist/views/form-builder/form-fields/index.js +1 -1
- package/dist/views/form-builder/index.esm.js +4 -4
- package/dist/views/form-builder/index.js +4 -4
- package/dist/views/form-builder/redux/index.esm.js +1 -1
- package/dist/views/form-builder/redux/index.js +1 -1
- package/dist/views/index.esm.js +13 -13
- package/dist/views/index.js +13 -13
- package/dist/views/template-editor/add-template/index.esm.js +1 -1
- package/dist/views/template-editor/add-template/index.js +1 -1
- package/dist/views/template-editor/components/index.esm.js +1 -1
- package/dist/views/template-editor/components/index.js +1 -1
- package/dist/views/template-editor/edit-section-modal/index.esm.js +1 -1
- package/dist/views/template-editor/edit-section-modal/index.js +1 -1
- package/dist/views/template-editor/index.esm.js +7 -7
- package/dist/views/template-editor/index.js +7 -7
- package/dist/views/template-editor/routes/index.esm.js +1 -1
- package/dist/views/template-editor/routes/index.js +1 -1
- package/dist/views/template-editor/template-modal/index.esm.js +1 -1
- package/dist/views/template-editor/template-modal/index.js +1 -1
- package/dist/views/template-editor/templates/index.esm.js +1 -1
- package/dist/views/template-editor/templates/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/DonutChart-BSM45IZR.js +0 -104
- package/dist/chunks/DonutChart-BSM45IZR.js.map +0 -1
- package/dist/chunks/DonutChart-CwRZ69d2.esm.js +0 -88
- package/dist/chunks/DonutChart-CwRZ69d2.esm.js.map +0 -1
- package/dist/chunks/DynamicDependentField-CxvG77Nz.esm.js +0 -128
- package/dist/chunks/DynamicDependentField-CxvG77Nz.esm.js.map +0 -1
- package/dist/chunks/DynamicDependentField-s4kwIrGN.js +0 -127
- package/dist/chunks/DynamicDependentField-s4kwIrGN.js.map +0 -1
- package/dist/chunks/ERPUIProvider-BzseBepc.esm.js +0 -130
- package/dist/chunks/ERPUIProvider-BzseBepc.esm.js.map +0 -1
- package/dist/chunks/ERPUIProvider-iB39BUBd.js +0 -129
- package/dist/chunks/ERPUIProvider-iB39BUBd.js.map +0 -1
- package/dist/chunks/FORMS-0-6vG5vm.js +0 -295
- package/dist/chunks/FORMS-0-6vG5vm.js.map +0 -1
- package/dist/chunks/FORMS-QrgpyEK_.esm.js +0 -296
- package/dist/chunks/FORMS-QrgpyEK_.esm.js.map +0 -1
- package/dist/chunks/FlexibleReduxExample-BgpligMk.js +0 -148
- package/dist/chunks/FlexibleReduxExample-BgpligMk.js.map +0 -1
- package/dist/chunks/FlexibleReduxExample-Dwvx4wTb.esm.js +0 -149
- package/dist/chunks/FlexibleReduxExample-Dwvx4wTb.esm.js.map +0 -1
- package/dist/chunks/GroupBarChart-Bqvs5N3s.esm.js +0 -86
- package/dist/chunks/GroupBarChart-Bqvs5N3s.esm.js.map +0 -1
- package/dist/chunks/GroupBarChart-CQjr7Ow8.js +0 -102
- package/dist/chunks/GroupBarChart-CQjr7Ow8.js.map +0 -1
- package/dist/chunks/SectionFlowEditor-Blhdf4jD.esm.js +0 -5479
- package/dist/chunks/SectionFlowEditor-Blhdf4jD.esm.js.map +0 -1
- package/dist/chunks/SectionFlowEditor-CNchIJ-0.js +0 -5478
- package/dist/chunks/SectionFlowEditor-CNchIJ-0.js.map +0 -1
- package/dist/chunks/action-bar-BCAyZghg.esm.js +0 -660
- package/dist/chunks/action-bar-BCAyZghg.esm.js.map +0 -1
- package/dist/chunks/action-bar-D6G70JMr.js +0 -659
- package/dist/chunks/action-bar-D6G70JMr.js.map +0 -1
- package/dist/chunks/actionCreator-2cZZuVFH.js +0 -93
- package/dist/chunks/actionCreator-2cZZuVFH.js.map +0 -1
- package/dist/chunks/actionCreator-BxsSTjDD.esm.js +0 -28
- package/dist/chunks/actionCreator-BxsSTjDD.esm.js.map +0 -1
- package/dist/chunks/actionCreator-CCbS63RH.js +0 -21
- package/dist/chunks/actionCreator-CCbS63RH.js.map +0 -1
- package/dist/chunks/actionCreator-CmAgJzDP.esm.js +0 -94
- package/dist/chunks/actionCreator-CmAgJzDP.esm.js.map +0 -1
- package/dist/chunks/actionCreator-D5jnL5Pv.js +0 -78
- package/dist/chunks/actionCreator-D5jnL5Pv.js.map +0 -1
- package/dist/chunks/actionCreator-DaS-QGI4.esm.js +0 -79
- package/dist/chunks/actionCreator-DaS-QGI4.esm.js.map +0 -1
- package/dist/chunks/actionCreator-DkS_8UbT.esm.js +0 -22
- package/dist/chunks/actionCreator-DkS_8UbT.esm.js.map +0 -1
- package/dist/chunks/actionCreator-QCAcDFaI.js +0 -27
- package/dist/chunks/actionCreator-QCAcDFaI.js.map +0 -1
- package/dist/chunks/actionCreator-jriFS6rf.esm.js +0 -14
- package/dist/chunks/actionCreator-jriFS6rf.esm.js.map +0 -1
- package/dist/chunks/actionCreator-tRYKJL_l.js +0 -13
- package/dist/chunks/actionCreator-tRYKJL_l.js.map +0 -1
- package/dist/chunks/activity-log-3DTR9uiM.esm.js +0 -103
- package/dist/chunks/activity-log-3DTR9uiM.esm.js.map +0 -1
- package/dist/chunks/activity-log-Hw1K_cMJ.js +0 -102
- package/dist/chunks/activity-log-Hw1K_cMJ.js.map +0 -1
- package/dist/chunks/add-template-B8cAl6jP.esm.js +0 -11
- package/dist/chunks/add-template-B8cAl6jP.esm.js.map +0 -1
- package/dist/chunks/add-template-DXfjAhLS.js +0 -10
- package/dist/chunks/add-template-DXfjAhLS.js.map +0 -1
- package/dist/chunks/address-modal-DDs0_DwZ.esm.js +0 -664
- package/dist/chunks/address-modal-DDs0_DwZ.esm.js.map +0 -1
- package/dist/chunks/address-modal-eIuNxXg0.js +0 -680
- package/dist/chunks/address-modal-eIuNxXg0.js.map +0 -1
- package/dist/chunks/ai-summary-CAKlYLnt.js +0 -350
- package/dist/chunks/ai-summary-CAKlYLnt.js.map +0 -1
- package/dist/chunks/ai-summary-Dto8NzAC.esm.js +0 -351
- package/dist/chunks/ai-summary-Dto8NzAC.esm.js.map +0 -1
- package/dist/chunks/api-BSqZ2y7J.esm.js +0 -5922
- package/dist/chunks/api-BSqZ2y7J.esm.js.map +0 -1
- package/dist/chunks/api-Ce693XLe.js +0 -5921
- package/dist/chunks/api-Ce693XLe.js.map +0 -1
- package/dist/chunks/appbar-C35Euxp4.js +0 -56
- package/dist/chunks/appbar-C35Euxp4.js.map +0 -1
- package/dist/chunks/appbar-DCoI9W6A.esm.js +0 -57
- package/dist/chunks/appbar-DCoI9W6A.esm.js.map +0 -1
- package/dist/chunks/approval-wrapper-B-41mLZw.esm.js +0 -140
- package/dist/chunks/approval-wrapper-B-41mLZw.esm.js.map +0 -1
- package/dist/chunks/approval-wrapper-C6-tXwaf.js +0 -139
- package/dist/chunks/approval-wrapper-C6-tXwaf.js.map +0 -1
- package/dist/chunks/areaLinerChart-BSaqONGz.esm.js +0 -104
- package/dist/chunks/areaLinerChart-BSaqONGz.esm.js.map +0 -1
- package/dist/chunks/areaLinerChart-CV1NKCGz.js +0 -120
- package/dist/chunks/areaLinerChart-CV1NKCGz.js.map +0 -1
- package/dist/chunks/bar-chart-C0okUFJS.js +0 -103
- package/dist/chunks/bar-chart-C0okUFJS.js.map +0 -1
- package/dist/chunks/bar-chart-D4myXwbk.esm.js +0 -87
- package/dist/chunks/bar-chart-D4myXwbk.esm.js.map +0 -1
- package/dist/chunks/barChart-B6SjqFTi.esm.js +0 -144
- package/dist/chunks/barChart-B6SjqFTi.esm.js.map +0 -1
- package/dist/chunks/barChart-_v5HVNeD.js +0 -160
- package/dist/chunks/barChart-_v5HVNeD.js.map +0 -1
- package/dist/chunks/barLinechart-BGRDgzAX.esm.js +0 -180
- package/dist/chunks/barLinechart-BGRDgzAX.esm.js.map +0 -1
- package/dist/chunks/barLinechart-Cybr4t95.js +0 -196
- package/dist/chunks/barLinechart-Cybr4t95.js.map +0 -1
- package/dist/chunks/calculation-summary-BhWssEJP.esm.js +0 -182
- package/dist/chunks/calculation-summary-BhWssEJP.esm.js.map +0 -1
- package/dist/chunks/calculation-summary-DdAaSwoG.js +0 -181
- package/dist/chunks/calculation-summary-DdAaSwoG.js.map +0 -1
- package/dist/chunks/chat-bot-C0ohNCRY.js +0 -3546
- package/dist/chunks/chat-bot-C0ohNCRY.js.map +0 -1
- package/dist/chunks/chat-bot-CzRxCBcZ.esm.js +0 -3547
- package/dist/chunks/chat-bot-CzRxCBcZ.esm.js.map +0 -1
- package/dist/chunks/common-utility-DNOInB1J.esm.js +0 -299
- package/dist/chunks/common-utility-DNOInB1J.esm.js.map +0 -1
- package/dist/chunks/common-utility-DXlg6tQv.js +0 -298
- package/dist/chunks/common-utility-DXlg6tQv.js.map +0 -1
- package/dist/chunks/custom-date-picker-Bj_9n8p8.esm.js +0 -56
- package/dist/chunks/custom-date-picker-Bj_9n8p8.esm.js.map +0 -1
- package/dist/chunks/custom-date-picker-Dt54H6AR.js +0 -55
- package/dist/chunks/custom-date-picker-Dt54H6AR.js.map +0 -1
- package/dist/chunks/custom-editor-D99-i2rN.js +0 -1257
- package/dist/chunks/custom-editor-D99-i2rN.js.map +0 -1
- package/dist/chunks/custom-editor-DbaK32F2.esm.js +0 -1257
- package/dist/chunks/custom-editor-DbaK32F2.esm.js.map +0 -1
- package/dist/chunks/custom-form-CiSSDja3.esm.js +0 -1146
- package/dist/chunks/custom-form-CiSSDja3.esm.js.map +0 -1
- package/dist/chunks/custom-form-rhJ1xvOV.js +0 -1145
- package/dist/chunks/custom-form-rhJ1xvOV.js.map +0 -1
- package/dist/chunks/custom-grid-card-25R5RDYY.js +0 -126
- package/dist/chunks/custom-grid-card-25R5RDYY.js.map +0 -1
- package/dist/chunks/custom-grid-card-ChSQynhf.esm.js +0 -127
- package/dist/chunks/custom-grid-card-ChSQynhf.esm.js.map +0 -1
- package/dist/chunks/dashboard-D7cAtema.js +0 -74
- package/dist/chunks/dashboard-D7cAtema.js.map +0 -1
- package/dist/chunks/dashboard-uhHB0n9T.esm.js +0 -75
- package/dist/chunks/dashboard-uhHB0n9T.esm.js.map +0 -1
- package/dist/chunks/date-BEkOnPLg.js +0 -55
- package/dist/chunks/date-BEkOnPLg.js.map +0 -1
- package/dist/chunks/date-DWW33q1y.esm.js +0 -56
- package/dist/chunks/date-DWW33q1y.esm.js.map +0 -1
- package/dist/chunks/date-picker-C0qJ2Ceq.js +0 -127
- package/dist/chunks/date-picker-C0qJ2Ceq.js.map +0 -1
- package/dist/chunks/date-picker-CqiwV3fq.esm.js +0 -128
- package/dist/chunks/date-picker-CqiwV3fq.esm.js.map +0 -1
- package/dist/chunks/date-range-picker-Bt_heXbX.js +0 -196
- package/dist/chunks/date-range-picker-Bt_heXbX.js.map +0 -1
- package/dist/chunks/date-range-picker-CXYyecdN.js +0 -61
- package/dist/chunks/date-range-picker-CXYyecdN.js.map +0 -1
- package/dist/chunks/date-range-picker-CvkYXRaH.esm.js +0 -197
- package/dist/chunks/date-range-picker-CvkYXRaH.esm.js.map +0 -1
- package/dist/chunks/date-range-picker-DDI-vDlU.esm.js +0 -62
- package/dist/chunks/date-range-picker-DDI-vDlU.esm.js.map +0 -1
- package/dist/chunks/date-time-Bmf9tUWN.js +0 -54
- package/dist/chunks/date-time-Bmf9tUWN.js.map +0 -1
- package/dist/chunks/date-time-TwBpGcVi.esm.js +0 -55
- package/dist/chunks/date-time-TwBpGcVi.esm.js.map +0 -1
- package/dist/chunks/date-time-picker-BiVDvz7V.esm.js +0 -115
- package/dist/chunks/date-time-picker-BiVDvz7V.esm.js.map +0 -1
- package/dist/chunks/date-time-picker-HC1XkaJG.js +0 -114
- package/dist/chunks/date-time-picker-HC1XkaJG.js.map +0 -1
- package/dist/chunks/dateFormat-DruK2Qh9.js +0 -56
- package/dist/chunks/dateFormat-DruK2Qh9.js.map +0 -1
- package/dist/chunks/dateFormat-VzMEQghL.esm.js +0 -57
- package/dist/chunks/dateFormat-VzMEQghL.esm.js.map +0 -1
- package/dist/chunks/discount-summary-Cfxk2tZa.esm.js +0 -60
- package/dist/chunks/discount-summary-Cfxk2tZa.esm.js.map +0 -1
- package/dist/chunks/discount-summary-RCy2t_AM.js +0 -59
- package/dist/chunks/discount-summary-RCy2t_AM.js.map +0 -1
- package/dist/chunks/dynamic-report-BfnrD-zq.js +0 -588
- package/dist/chunks/dynamic-report-BfnrD-zq.js.map +0 -1
- package/dist/chunks/dynamic-report-CmL56Rs0.esm.js +0 -589
- package/dist/chunks/dynamic-report-CmL56Rs0.esm.js.map +0 -1
- package/dist/chunks/dynamic-rows-5iZHYEWp.js +0 -249
- package/dist/chunks/dynamic-rows-5iZHYEWp.js.map +0 -1
- package/dist/chunks/dynamic-rows-Db28dAgS.esm.js +0 -250
- package/dist/chunks/dynamic-rows-Db28dAgS.esm.js.map +0 -1
- package/dist/chunks/dynamic-text-editor-B2k2GRDf.js +0 -44
- package/dist/chunks/dynamic-text-editor-B2k2GRDf.js.map +0 -1
- package/dist/chunks/dynamic-text-editor-DSyNRqGU.esm.js +0 -45
- package/dist/chunks/dynamic-text-editor-DSyNRqGU.esm.js.map +0 -1
- package/dist/chunks/edit-section-modal-Bg_OubEc.js +0 -76
- package/dist/chunks/edit-section-modal-Bg_OubEc.js.map +0 -1
- package/dist/chunks/edit-section-modal-CqbrHCo2.esm.js +0 -77
- package/dist/chunks/edit-section-modal-CqbrHCo2.esm.js.map +0 -1
- package/dist/chunks/filter-Br7IBDbh.esm.js +0 -415
- package/dist/chunks/filter-Br7IBDbh.esm.js.map +0 -1
- package/dist/chunks/filter-DqL-Ey7H.js +0 -414
- package/dist/chunks/filter-DqL-Ey7H.js.map +0 -1
- package/dist/chunks/footer-BmDKMyLP.js +0 -63
- package/dist/chunks/footer-BmDKMyLP.js.map +0 -1
- package/dist/chunks/footer-BmKXTODa.esm.js +0 -64
- package/dist/chunks/footer-BmKXTODa.esm.js.map +0 -1
- package/dist/chunks/form-fields-BiRJ8Gyp.esm.js +0 -355
- package/dist/chunks/form-fields-BiRJ8Gyp.esm.js.map +0 -1
- package/dist/chunks/form-fields-mWRtoHVX.js +0 -354
- package/dist/chunks/form-fields-mWRtoHVX.js.map +0 -1
- package/dist/chunks/form-parser-6_MQHzfU.js +0 -607
- package/dist/chunks/form-parser-6_MQHzfU.js.map +0 -1
- package/dist/chunks/form-parser-D0ZqEsBx.esm.js +0 -591
- package/dist/chunks/form-parser-D0ZqEsBx.esm.js.map +0 -1
- package/dist/chunks/form-section-D0ipOYv3.esm.js +0 -476
- package/dist/chunks/form-section-D0ipOYv3.esm.js.map +0 -1
- package/dist/chunks/form-section-DJJ5O8QE.js +0 -475
- package/dist/chunks/form-section-DJJ5O8QE.js.map +0 -1
- package/dist/chunks/format-chart-value-B5ClGhlz.esm.js +0 -37
- package/dist/chunks/format-chart-value-B5ClGhlz.esm.js.map +0 -1
- package/dist/chunks/format-chart-value-Cy1P2lbF.js +0 -53
- package/dist/chunks/format-chart-value-Cy1P2lbF.js.map +0 -1
- package/dist/chunks/fullScreen-CV2gntC3.js +0 -20
- package/dist/chunks/fullScreen-CV2gntC3.js.map +0 -1
- package/dist/chunks/fullScreen-DwP10GLK.esm.js +0 -21
- package/dist/chunks/fullScreen-DwP10GLK.esm.js.map +0 -1
- package/dist/chunks/global-search-BUpAIn8K.js +0 -149
- package/dist/chunks/global-search-BUpAIn8K.js.map +0 -1
- package/dist/chunks/global-search-C_L-lmq1.esm.js +0 -150
- package/dist/chunks/global-search-C_L-lmq1.esm.js.map +0 -1
- package/dist/chunks/grid-view-7yv8BBGS.esm.js +0 -52
- package/dist/chunks/grid-view-7yv8BBGS.esm.js.map +0 -1
- package/dist/chunks/grid-view-LeS2Q6Zy.js +0 -51
- package/dist/chunks/grid-view-LeS2Q6Zy.js.map +0 -1
- package/dist/chunks/header-BfLMcRXF.js +0 -90
- package/dist/chunks/header-BfLMcRXF.js.map +0 -1
- package/dist/chunks/header-CgGEFjRD.esm.js +0 -91
- package/dist/chunks/header-CgGEFjRD.esm.js.map +0 -1
- package/dist/chunks/header-enhanced-CP0w1-Dn.js +0 -400
- package/dist/chunks/header-enhanced-CP0w1-Dn.js.map +0 -1
- package/dist/chunks/header-enhanced-Cd3gRkWV.esm.js +0 -401
- package/dist/chunks/header-enhanced-Cd3gRkWV.esm.js.map +0 -1
- package/dist/chunks/inline-edit-fields-C7sJKda2.js +0 -340
- package/dist/chunks/inline-edit-fields-C7sJKda2.js.map +0 -1
- package/dist/chunks/inline-edit-fields-D0gvI8T3.esm.js +0 -324
- package/dist/chunks/inline-edit-fields-D0gvI8T3.esm.js.map +0 -1
- package/dist/chunks/inventory-reports-title-bar-C8Qo7NEx.js +0 -732
- package/dist/chunks/inventory-reports-title-bar-C8Qo7NEx.js.map +0 -1
- package/dist/chunks/inventory-reports-title-bar-DpG06q1U.esm.js +0 -733
- package/dist/chunks/inventory-reports-title-bar-DpG06q1U.esm.js.map +0 -1
- package/dist/chunks/item-response-details-Q4dR3qmN.js +0 -78
- package/dist/chunks/item-response-details-Q4dR3qmN.js.map +0 -1
- package/dist/chunks/item-response-details-TEvdMqA7.esm.js +0 -79
- package/dist/chunks/item-response-details-TEvdMqA7.esm.js.map +0 -1
- package/dist/chunks/listing-B7oUf-ga.esm.js +0 -276
- package/dist/chunks/listing-B7oUf-ga.esm.js.map +0 -1
- package/dist/chunks/listing-DINZMGWq.js +0 -275
- package/dist/chunks/listing-DINZMGWq.js.map +0 -1
- package/dist/chunks/location-select-B91gVEZg.esm.js +0 -86
- package/dist/chunks/location-select-B91gVEZg.esm.js.map +0 -1
- package/dist/chunks/location-select-DJGf2z9B.js +0 -85
- package/dist/chunks/location-select-DJGf2z9B.js.map +0 -1
- package/dist/chunks/material-editable-table-Bsy2JLb6.esm.js +0 -1469
- package/dist/chunks/material-editable-table-Bsy2JLb6.esm.js.map +0 -1
- package/dist/chunks/material-editable-table-CzJhE63R.js +0 -1485
- package/dist/chunks/material-editable-table-CzJhE63R.js.map +0 -1
- package/dist/chunks/module-reducer-CCZD_gz4.js +0 -91
- package/dist/chunks/module-reducer-CCZD_gz4.js.map +0 -1
- package/dist/chunks/module-reducer-DNm9BZ0L.esm.js +0 -92
- package/dist/chunks/module-reducer-DNm9BZ0L.esm.js.map +0 -1
- package/dist/chunks/multi-line-chart-BYBYGBdy.esm.js +0 -96
- package/dist/chunks/multi-line-chart-BYBYGBdy.esm.js.map +0 -1
- package/dist/chunks/multi-line-chart-Bt3wdHU7.js +0 -112
- package/dist/chunks/multi-line-chart-Bt3wdHU7.js.map +0 -1
- package/dist/chunks/notification-menu-BCCLpwDZ.js +0 -600
- package/dist/chunks/notification-menu-BCCLpwDZ.js.map +0 -1
- package/dist/chunks/notification-menu-PJM37Tp2.esm.js +0 -601
- package/dist/chunks/notification-menu-PJM37Tp2.esm.js.map +0 -1
- package/dist/chunks/page-action-CUTFLYyt.esm.js +0 -325
- package/dist/chunks/page-action-CUTFLYyt.esm.js.map +0 -1
- package/dist/chunks/page-action-EfPBRwHo.js +0 -324
- package/dist/chunks/page-action-EfPBRwHo.js.map +0 -1
- package/dist/chunks/page-navigator-J9GdrKkm.js +0 -242
- package/dist/chunks/page-navigator-J9GdrKkm.js.map +0 -1
- package/dist/chunks/page-navigator-PBXn7Eh_.esm.js +0 -243
- package/dist/chunks/page-navigator-PBXn7Eh_.esm.js.map +0 -1
- package/dist/chunks/page-view-D_Erav8n.js +0 -323
- package/dist/chunks/page-view-D_Erav8n.js.map +0 -1
- package/dist/chunks/page-view-DsptSruT.esm.js +0 -324
- package/dist/chunks/page-view-DsptSruT.esm.js.map +0 -1
- package/dist/chunks/quick-approval-modal-Bi9f6kIj.esm.js +0 -256
- package/dist/chunks/quick-approval-modal-Bi9f6kIj.esm.js.map +0 -1
- package/dist/chunks/quick-approval-modal-CoFcxeD9.js +0 -272
- package/dist/chunks/quick-approval-modal-CoFcxeD9.js.map +0 -1
- package/dist/chunks/reducer-BSDSt8P5.js +0 -49
- package/dist/chunks/reducer-BSDSt8P5.js.map +0 -1
- package/dist/chunks/reducer-Btzbg-kC.js +0 -55
- package/dist/chunks/reducer-Btzbg-kC.js.map +0 -1
- package/dist/chunks/reducer-C0vp7c_5.esm.js +0 -43
- package/dist/chunks/reducer-C0vp7c_5.esm.js.map +0 -1
- package/dist/chunks/reducer-C5hytm3p.js +0 -42
- package/dist/chunks/reducer-C5hytm3p.js.map +0 -1
- package/dist/chunks/reducer-C_iAxDoX.js +0 -32
- package/dist/chunks/reducer-C_iAxDoX.js.map +0 -1
- package/dist/chunks/reducer-DlQPn2Yf.js +0 -147
- package/dist/chunks/reducer-DlQPn2Yf.js.map +0 -1
- package/dist/chunks/reducer-DpGhVrVl.esm.js +0 -50
- package/dist/chunks/reducer-DpGhVrVl.esm.js.map +0 -1
- package/dist/chunks/reducer-DvN85Zfx.esm.js +0 -33
- package/dist/chunks/reducer-DvN85Zfx.esm.js.map +0 -1
- package/dist/chunks/reducer-LfwRh77b.esm.js +0 -56
- package/dist/chunks/reducer-LfwRh77b.esm.js.map +0 -1
- package/dist/chunks/reducer-qhCDNTSp.esm.js +0 -148
- package/dist/chunks/reducer-qhCDNTSp.esm.js.map +0 -1
- package/dist/chunks/reportFilter-CqxvTM6T.js +0 -394
- package/dist/chunks/reportFilter-CqxvTM6T.js.map +0 -1
- package/dist/chunks/reportFilter-DTsM7pWt.esm.js +0 -395
- package/dist/chunks/reportFilter-DTsM7pWt.esm.js.map +0 -1
- package/dist/chunks/reports-title-bar-BPCvX-LI.esm.js +0 -1016
- package/dist/chunks/reports-title-bar-BPCvX-LI.esm.js.map +0 -1
- package/dist/chunks/reports-title-bar-L1k7t3uz.js +0 -1015
- package/dist/chunks/reports-title-bar-L1k7t3uz.js.map +0 -1
- package/dist/chunks/route-page-map-Bz7COHkD.esm.js +0 -7427
- package/dist/chunks/route-page-map-Bz7COHkD.esm.js.map +0 -1
- package/dist/chunks/route-page-map-DfVJnKQA.js +0 -7426
- package/dist/chunks/route-page-map-DfVJnKQA.js.map +0 -1
- package/dist/chunks/routes-BC185juT.esm.js +0 -47
- package/dist/chunks/routes-BC185juT.esm.js.map +0 -1
- package/dist/chunks/routes-PNRu_AV8.js +0 -46
- package/dist/chunks/routes-PNRu_AV8.js.map +0 -1
- package/dist/chunks/schedule-report-CkrAwjTf.js +0 -235
- package/dist/chunks/schedule-report-CkrAwjTf.js.map +0 -1
- package/dist/chunks/schedule-report-YXW8mqxX.esm.js +0 -236
- package/dist/chunks/schedule-report-YXW8mqxX.esm.js.map +0 -1
- package/dist/chunks/schedule-report-modal-CDieUlju.esm.js +0 -288
- package/dist/chunks/schedule-report-modal-CDieUlju.esm.js.map +0 -1
- package/dist/chunks/schedule-report-modal-DbDqxLtB.js +0 -287
- package/dist/chunks/schedule-report-modal-DbDqxLtB.js.map +0 -1
- package/dist/chunks/searchable-select-Kg6j3WHo.js +0 -5447
- package/dist/chunks/searchable-select-Kg6j3WHo.js.map +0 -1
- package/dist/chunks/searchable-select-UNDm_sU3.esm.js +0 -5431
- package/dist/chunks/searchable-select-UNDm_sU3.esm.js.map +0 -1
- package/dist/chunks/share-modal-BkfNmJ6Q.esm.js +0 -218
- package/dist/chunks/share-modal-BkfNmJ6Q.esm.js.map +0 -1
- package/dist/chunks/share-modal-CfxRsno1.js +0 -217
- package/dist/chunks/share-modal-CfxRsno1.js.map +0 -1
- package/dist/chunks/share-modal-enhanced-B7ROQZkD.esm.js +0 -270
- package/dist/chunks/share-modal-enhanced-B7ROQZkD.esm.js.map +0 -1
- package/dist/chunks/share-modal-enhanced-CdPdyiPt.js +0 -269
- package/dist/chunks/share-modal-enhanced-CdPdyiPt.js.map +0 -1
- package/dist/chunks/sidebarScreen-CUDpCssG.js +0 -200
- package/dist/chunks/sidebarScreen-CUDpCssG.js.map +0 -1
- package/dist/chunks/sidebarScreen-ES06jsUC.esm.js +0 -201
- package/dist/chunks/sidebarScreen-ES06jsUC.esm.js.map +0 -1
- package/dist/chunks/store-BhWKdIyL.esm.js +0 -89
- package/dist/chunks/store-BhWKdIyL.esm.js.map +0 -1
- package/dist/chunks/store-DED99V-p.js +0 -88
- package/dist/chunks/store-DED99V-p.js.map +0 -1
- package/dist/chunks/table-D60IIwv_.js +0 -184
- package/dist/chunks/table-D60IIwv_.js.map +0 -1
- package/dist/chunks/table-DqRPlxNW.esm.js +0 -185
- package/dist/chunks/table-DqRPlxNW.esm.js.map +0 -1
- package/dist/chunks/table-form-5eM4xAoE.js +0 -1536
- package/dist/chunks/table-form-5eM4xAoE.js.map +0 -1
- package/dist/chunks/table-form-lDShKPGv.esm.js +0 -1537
- package/dist/chunks/table-form-lDShKPGv.esm.js.map +0 -1
- package/dist/chunks/template-editor-router-BDTAwEPd.esm.js +0 -9
- package/dist/chunks/template-editor-router-BDTAwEPd.esm.js.map +0 -1
- package/dist/chunks/template-editor-router-DQU440rt.js +0 -8
- package/dist/chunks/template-editor-router-DQU440rt.js.map +0 -1
- package/dist/chunks/template-modal-BEbtkxK2.esm.js +0 -769
- package/dist/chunks/template-modal-BEbtkxK2.esm.js.map +0 -1
- package/dist/chunks/template-modal-DM8bWq5q.js +0 -768
- package/dist/chunks/template-modal-DM8bWq5q.js.map +0 -1
- package/dist/chunks/templates-CcbbOv90.js +0 -278
- package/dist/chunks/templates-CcbbOv90.js.map +0 -1
- package/dist/chunks/templates-DchjIAQf.esm.js +0 -279
- package/dist/chunks/templates-DchjIAQf.esm.js.map +0 -1
- package/dist/chunks/text-measurement-B2SY4MOI.js +0 -251
- package/dist/chunks/text-measurement-B2SY4MOI.js.map +0 -1
- package/dist/chunks/text-measurement-C4VHjrOM.esm.js +0 -252
- package/dist/chunks/text-measurement-C4VHjrOM.esm.js.map +0 -1
- package/dist/chunks/total-summary-BCNJd8iL.esm.js +0 -41
- package/dist/chunks/total-summary-BCNJd8iL.esm.js.map +0 -1
- package/dist/chunks/total-summary-BhLK6YOW.js +0 -40
- package/dist/chunks/total-summary-BhLK6YOW.js.map +0 -1
- package/dist/chunks/translations-CzTYlXLs.js +0 -58
- package/dist/chunks/translations-CzTYlXLs.js.map +0 -1
- package/dist/chunks/translations-s7kQoO4z.esm.js +0 -59
- package/dist/chunks/translations-s7kQoO4z.esm.js.map +0 -1
- package/dist/chunks/uom-field-wrapper-CftM69IH.esm.js +0 -80
- package/dist/chunks/uom-field-wrapper-CftM69IH.esm.js.map +0 -1
- package/dist/chunks/uom-field-wrapper-DGJXWRgH.js +0 -79
- package/dist/chunks/uom-field-wrapper-DGJXWRgH.js.map +0 -1
- package/dist/chunks/upload-excel-BzL5o4KR.esm.js +0 -361
- package/dist/chunks/upload-excel-BzL5o4KR.esm.js.map +0 -1
- package/dist/chunks/upload-excel-WxhTn3iL.js +0 -360
- package/dist/chunks/upload-excel-WxhTn3iL.js.map +0 -1
- package/dist/chunks/use-translations-DK7JAMUq.esm.js +0 -62
- package/dist/chunks/use-translations-DK7JAMUq.esm.js.map +0 -1
- package/dist/chunks/use-translations-fvRLagN8.js +0 -61
- package/dist/chunks/use-translations-fvRLagN8.js.map +0 -1
- package/dist/chunks/useAccountSetting-0o3CgYbA.esm.js +0 -173
- package/dist/chunks/useAccountSetting-0o3CgYbA.esm.js.map +0 -1
- package/dist/chunks/useAccountSetting-DP26D8yo.js +0 -172
- package/dist/chunks/useAccountSetting-DP26D8yo.js.map +0 -1
- package/dist/chunks/useCheckSkuAndName-CoCwHFgC.js +0 -49
- package/dist/chunks/useCheckSkuAndName-CoCwHFgC.js.map +0 -1
- package/dist/chunks/useCheckSkuAndName-rkZ4hHCO.esm.js +0 -50
- package/dist/chunks/useCheckSkuAndName-rkZ4hHCO.esm.js.map +0 -1
- package/dist/chunks/useReduxIntegration-Cd6hvE5r.js +0 -38
- package/dist/chunks/useReduxIntegration-Cd6hvE5r.js.map +0 -1
- package/dist/chunks/useReduxIntegration-DM__4RiP.esm.js +0 -39
- package/dist/chunks/useReduxIntegration-DM__4RiP.esm.js.map +0 -1
- package/dist/chunks/useUniquenessCheck-B2o3fIcX.esm.js +0 -39
- package/dist/chunks/useUniquenessCheck-B2o3fIcX.esm.js.map +0 -1
- package/dist/chunks/useUniquenessCheck-pXvzabHu.js +0 -38
- package/dist/chunks/useUniquenessCheck-pXvzabHu.js.map +0 -1
- package/dist/chunks/useVendorAICompare-BkBY0x5p.js +0 -30
- package/dist/chunks/useVendorAICompare-BkBY0x5p.js.map +0 -1
- package/dist/chunks/useVendorAICompare-fc4aJtj1.esm.js +0 -31
- package/dist/chunks/useVendorAICompare-fc4aJtj1.esm.js.map +0 -1
- package/dist/chunks/value-editor-BmMNObtT.js +0 -265
- package/dist/chunks/value-editor-BmMNObtT.js.map +0 -1
- package/dist/chunks/value-editor-Djz4sP71.esm.js +0 -266
- package/dist/chunks/value-editor-Djz4sP71.esm.js.map +0 -1
- package/dist/chunks/vendor-ai-summary-B_2B-IuL.js +0 -227
- package/dist/chunks/vendor-ai-summary-B_2B-IuL.js.map +0 -1
- package/dist/chunks/vendor-ai-summary-CXNxB7TQ.esm.js +0 -228
- package/dist/chunks/vendor-ai-summary-CXNxB7TQ.esm.js.map +0 -1
|
@@ -0,0 +1,1485 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
3
|
+
const React = require("react");
|
|
4
|
+
const materialReactTable = require("material-react-table");
|
|
5
|
+
const material = require("@mui/material");
|
|
6
|
+
const ChevronRightIcon = require("@mui/icons-material/ChevronRight");
|
|
7
|
+
const ChevronLeftIcon = require("@mui/icons-material/ChevronLeft");
|
|
8
|
+
const menu = require("./menu-CbpcDA_h.js");
|
|
9
|
+
const typography = require("./typography-Bqfr1Ksf.js");
|
|
10
|
+
const searchBar = require("./search-bar-CKXyIa-m.js");
|
|
11
|
+
const images = require("../images/index.js");
|
|
12
|
+
const arrowUpDown = require("./arrow-up-down-CbZcKidJ.js");
|
|
13
|
+
const checkBox = require("./check-box-CtEOAIEc.js");
|
|
14
|
+
const close = require("./close-D42p_6ss.js");
|
|
15
|
+
const rectangle = require("./rectangle-CdqtKF3L.js");
|
|
16
|
+
const trash = require("./trash-DWY4lso3.js");
|
|
17
|
+
const inlineEditFields = require("./inline-edit-fields-DeS-sx9_.js");
|
|
18
|
+
const Tooltip = require("./Tooltip-2SPKKR77.js");
|
|
19
|
+
const button = require("./button-CYiSRppg.js");
|
|
20
|
+
const AddIcon = require("@mui/icons-material/Add");
|
|
21
|
+
const dayjs = require("dayjs");
|
|
22
|
+
const Yup = require("yup");
|
|
23
|
+
const confirmModal = require("./confirm-modal-BpCtXddt.js");
|
|
24
|
+
const reactI18next = require("react-i18next");
|
|
25
|
+
const notistack = require("notistack");
|
|
26
|
+
const api = require("./api-DwmixHAO.js");
|
|
27
|
+
const runtime = require("@erpsquad/common/runtime");
|
|
28
|
+
const reactRouterDom = require("react-router-dom");
|
|
29
|
+
const pathname_document = require("./pathname.document-B76X5mLc.js");
|
|
30
|
+
const pathname_rental = require("./pathname.rental-BTnLlNIv.js");
|
|
31
|
+
const pathname_hrms = require("./pathname.hrms-DQx7TP1h.js");
|
|
32
|
+
const useDeepMemo = require("./use-deep-memo-7bIH1dxU.js");
|
|
33
|
+
function _interopNamespaceDefault(e) {
|
|
34
|
+
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
35
|
+
if (e) {
|
|
36
|
+
for (const k in e) {
|
|
37
|
+
if (k !== "default") {
|
|
38
|
+
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
39
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
40
|
+
enumerable: true,
|
|
41
|
+
get: () => e[k]
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
n.default = e;
|
|
47
|
+
return Object.freeze(n);
|
|
48
|
+
}
|
|
49
|
+
const Yup__namespace = /* @__PURE__ */ _interopNamespaceDefault(Yup);
|
|
50
|
+
const TableWrapper = material.styled(material.Box)(({ theme: { palette } }) => {
|
|
51
|
+
var _a, _b, _c, _d;
|
|
52
|
+
return {
|
|
53
|
+
".MuiTableCell-root": {
|
|
54
|
+
border: "1px solid #efefef",
|
|
55
|
+
borderBottom: 0,
|
|
56
|
+
borderLeft: 0,
|
|
57
|
+
padding: "0 0.5rem",
|
|
58
|
+
lineHeight: "19px",
|
|
59
|
+
fontSize: "14px",
|
|
60
|
+
minHeight: 32
|
|
61
|
+
// '&:first-child': {
|
|
62
|
+
// borderLeft: '1px solid #efefef'
|
|
63
|
+
// },
|
|
64
|
+
// '&:last-child': {
|
|
65
|
+
// borderBottom: '1px solid #efefef'
|
|
66
|
+
// }
|
|
67
|
+
},
|
|
68
|
+
".MuiTableCell-head": {
|
|
69
|
+
backgroundColor: (_a = palette.theme) == null ? void 0 : _a.secondary[100]
|
|
70
|
+
},
|
|
71
|
+
".MuiTableContainer-root": {
|
|
72
|
+
maxHeight: "clamp(350px, 100vh - 200px, 9999px) !important"
|
|
73
|
+
},
|
|
74
|
+
".MuiPaper-root": {
|
|
75
|
+
boxShadow: "none"
|
|
76
|
+
},
|
|
77
|
+
".MuiPaginationItem-root": {
|
|
78
|
+
"&.Mui-selected": {
|
|
79
|
+
backgroundColor: (_b = palette == null ? void 0 : palette.theme) == null ? void 0 : _b.primary[700],
|
|
80
|
+
color: "white"
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
".MuiTableRow-root": {
|
|
84
|
+
"&.Mui-selected": {
|
|
85
|
+
backgroundColor: `${(_c = palette == null ? void 0 : palette.theme) == null ? void 0 : _c.primary[100]} !important`,
|
|
86
|
+
color: "white"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
".MuiCheckbox-indeterminate": {
|
|
90
|
+
color: `${(_d = palette == null ? void 0 : palette.theme) == null ? void 0 : _d.primary[700]} !important`,
|
|
91
|
+
"& svg": {
|
|
92
|
+
height: `20px !important`,
|
|
93
|
+
width: `20px !important`
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
});
|
|
98
|
+
const pendingRowCommitRegistry = /* @__PURE__ */ new Set();
|
|
99
|
+
const commitAllPendingTableRows = async () => {
|
|
100
|
+
await Promise.all(Array.from(pendingRowCommitRegistry).map((commit) => commit()));
|
|
101
|
+
};
|
|
102
|
+
const MaterialEditableTable = React.memo(React.forwardRef(({
|
|
103
|
+
enablePagination = false,
|
|
104
|
+
rows,
|
|
105
|
+
columns,
|
|
106
|
+
totalPages,
|
|
107
|
+
paginationModel,
|
|
108
|
+
columnOrder,
|
|
109
|
+
updateData,
|
|
110
|
+
handleColumnOrdering,
|
|
111
|
+
enableEditing,
|
|
112
|
+
enableColumnDragging,
|
|
113
|
+
states,
|
|
114
|
+
rowActionMenu,
|
|
115
|
+
destructiveActionMenu,
|
|
116
|
+
disableDefaultActionColumn,
|
|
117
|
+
enableRowSelection,
|
|
118
|
+
defaultActionColumnItems = [],
|
|
119
|
+
enableBottomToolbar,
|
|
120
|
+
SetSelectedRowId,
|
|
121
|
+
isResetRow,
|
|
122
|
+
onCreateRow,
|
|
123
|
+
onEditRow,
|
|
124
|
+
onDeleteRow,
|
|
125
|
+
editDisplayMode,
|
|
126
|
+
enableRowCreate,
|
|
127
|
+
onChangeRowField,
|
|
128
|
+
onSelectRow,
|
|
129
|
+
enableColumnResizing = true,
|
|
130
|
+
selectedRowIds = [],
|
|
131
|
+
onColumnVisibility,
|
|
132
|
+
onSortingChange,
|
|
133
|
+
getSelectedData,
|
|
134
|
+
disabledDefaultActionColumnIcon = false,
|
|
135
|
+
enableAddCustomField = true,
|
|
136
|
+
enableRowDragging = false,
|
|
137
|
+
handleColumnResizing = () => {
|
|
138
|
+
},
|
|
139
|
+
columnSizes = {},
|
|
140
|
+
hideSaveButton = false,
|
|
141
|
+
hideDeleteButton,
|
|
142
|
+
enableFirstRowEdit = false,
|
|
143
|
+
// eslint-disable-next-line unused-imports/no-unused-vars, @typescript-eslint/no-unused-vars
|
|
144
|
+
// getRowId,
|
|
145
|
+
// onDelete,
|
|
146
|
+
// onUpdate,
|
|
147
|
+
...rest
|
|
148
|
+
}, ref) => {
|
|
149
|
+
const { t } = reactI18next.useTranslation();
|
|
150
|
+
const { enqueueSnackbar } = notistack.useSnackbar();
|
|
151
|
+
const { formData = null, updatePageInfo, activePage: aPage } = runtime.usePages();
|
|
152
|
+
const activePage = useDeepMemo.useDeepMemo(aPage);
|
|
153
|
+
const { pageNo } = paginationModel;
|
|
154
|
+
const [row, setRow] = React.useState({});
|
|
155
|
+
const [tableColumns, setTableColumns] = React.useState(columns);
|
|
156
|
+
const [anchorEl, setAnchorEl] = React.useState(null);
|
|
157
|
+
const [popUpShow, setPopupShow] = React.useState(false);
|
|
158
|
+
const [rowAnchorEl, setRowAnchorEl] = React.useState(null);
|
|
159
|
+
const visibleColumns = tableColumns.filter((column) => column.visible);
|
|
160
|
+
const hiddenColumns = tableColumns.filter((column) => !column.visible);
|
|
161
|
+
const [filteredOptions, setFilteredOptions] = React.useState(hiddenColumns);
|
|
162
|
+
const [selectedRow, setSelectedRow] = React.useState(null);
|
|
163
|
+
const [validationErrors, setValidationErrors] = React.useState({});
|
|
164
|
+
const [validationSchema, setValidationSchema] = React.useState([]);
|
|
165
|
+
const [isCreatingRow, setIsCreatingRow] = React.useState(false);
|
|
166
|
+
const [isEditingRow, setIsEditingRow] = React.useState(false);
|
|
167
|
+
const [isDeletingRow, setIsDeletingRow] = React.useState(false);
|
|
168
|
+
const [rowToDelete, setRowToDelete] = React.useState(null);
|
|
169
|
+
const [rowSelection, setRowSelection] = React.useState({});
|
|
170
|
+
const [isChecked, setIsChecked] = React.useState(false);
|
|
171
|
+
const [sorting, setSorting] = React.useState([]);
|
|
172
|
+
const [disableNextEdit, setDisableNextEdit] = React.useState(false);
|
|
173
|
+
const [columnSizing, setColumnSizing] = React.useState(activePage.column_sizes);
|
|
174
|
+
const [columnSizingInfo, setColumnSizingInfo] = React.useState({
|
|
175
|
+
columnSizingStart: [],
|
|
176
|
+
deltaOffset: null,
|
|
177
|
+
deltaPercentage: null,
|
|
178
|
+
isResizingColumn: false,
|
|
179
|
+
startOffset: null,
|
|
180
|
+
startSize: null
|
|
181
|
+
});
|
|
182
|
+
const [clickStartTime, setClickStartTime] = React.useState(0);
|
|
183
|
+
const navigate = reactRouterDom.useNavigate();
|
|
184
|
+
const currentModule = location.pathname.split("/")[2];
|
|
185
|
+
let redirectionPath = "";
|
|
186
|
+
switch (currentModule) {
|
|
187
|
+
case "accounting":
|
|
188
|
+
redirectionPath = pathname_rental.PathnameAccounting.CUSTOM_FORM;
|
|
189
|
+
break;
|
|
190
|
+
case "inventory":
|
|
191
|
+
redirectionPath = pathname_rental.PathnameInventory.CUSTOM_FORM;
|
|
192
|
+
break;
|
|
193
|
+
case "manufacturing":
|
|
194
|
+
redirectionPath = pathname_rental.PathnameManufacturing.CUSTOM_FORM;
|
|
195
|
+
break;
|
|
196
|
+
case "procurement":
|
|
197
|
+
redirectionPath = pathname_rental.PathnamePurchase.CUSTOM_FORM;
|
|
198
|
+
break;
|
|
199
|
+
case "crm":
|
|
200
|
+
redirectionPath = pathname_rental.PathnameCrm.CUSTOM_FORM;
|
|
201
|
+
break;
|
|
202
|
+
case "user":
|
|
203
|
+
redirectionPath = pathname_hrms.PathnameUsers.CUSTOM_FORM;
|
|
204
|
+
break;
|
|
205
|
+
case "rental":
|
|
206
|
+
redirectionPath = pathname_rental.PathnameRental.CUSTOM_FORM;
|
|
207
|
+
break;
|
|
208
|
+
case "drive":
|
|
209
|
+
redirectionPath = pathname_document.PathnameDocument.ADD_CUSTOM_FIELDS;
|
|
210
|
+
break;
|
|
211
|
+
}
|
|
212
|
+
const path = `/dashboard/${currentModule}${redirectionPath}`;
|
|
213
|
+
const getValidationType = (column) => {
|
|
214
|
+
var _a;
|
|
215
|
+
switch (column.editVariant) {
|
|
216
|
+
case "select":
|
|
217
|
+
return ((_a = column == null ? void 0 : column.editProperties) == null ? void 0 : _a.is_multiple) ? Yup__namespace.array() : Yup__namespace.string();
|
|
218
|
+
case "number":
|
|
219
|
+
return Yup__namespace.number().nullable().transform((value, originalValue) => originalValue === "" ? null : value);
|
|
220
|
+
case "url":
|
|
221
|
+
return Yup__namespace.string().matches(
|
|
222
|
+
/^(https?:\/\/)?((([a-zA-Z0-9_-]+\.)+[a-zA-Z]{2,})|localhost)(:\d{2,5})?(\/[a-zA-Z0-9#_-]+\/?)*(\?[a-zA-Z0-9&=_-]+)?(#\S+)?$/,
|
|
223
|
+
{ excludeEmptyString: true, message: "Please enter valid URL." }
|
|
224
|
+
);
|
|
225
|
+
case "date":
|
|
226
|
+
case "date_time":
|
|
227
|
+
case "time":
|
|
228
|
+
return Yup__namespace.date().nullable().transform((value, originalValue) => {
|
|
229
|
+
if (originalValue === "" || originalValue === null || originalValue === void 0) {
|
|
230
|
+
return null;
|
|
231
|
+
}
|
|
232
|
+
if (originalValue && typeof originalValue === "object" && "toDate" in originalValue) {
|
|
233
|
+
return originalValue.toDate();
|
|
234
|
+
}
|
|
235
|
+
return value;
|
|
236
|
+
}).typeError("Valid date is required");
|
|
237
|
+
case "file":
|
|
238
|
+
case "image":
|
|
239
|
+
return Yup__namespace.mixed().nullable();
|
|
240
|
+
default:
|
|
241
|
+
return Yup__namespace.string();
|
|
242
|
+
}
|
|
243
|
+
};
|
|
244
|
+
const validationReducer = (schema, validation, column) => {
|
|
245
|
+
var _a;
|
|
246
|
+
let vld = schema;
|
|
247
|
+
switch (validation.type) {
|
|
248
|
+
case "required":
|
|
249
|
+
if (validation.value) {
|
|
250
|
+
vld = vld.required(validation.msg_en).typeError(validation.msg_en);
|
|
251
|
+
if (!(column == null ? void 0 : column.editVariant) || (column == null ? void 0 : column.editVariant) === "text") {
|
|
252
|
+
vld = vld.test(
|
|
253
|
+
"no-blank-spaces",
|
|
254
|
+
"Blank space is not allowed",
|
|
255
|
+
(value) => typeof value === "string" ? value.trim().length > 0 : true
|
|
256
|
+
);
|
|
257
|
+
}
|
|
258
|
+
} else if ((_a = column == null ? void 0 : column.editProperties) == null ? void 0 : _a.is_multiple) {
|
|
259
|
+
vld = vld.min(1, validation.msg_en);
|
|
260
|
+
}
|
|
261
|
+
break;
|
|
262
|
+
case "notRequired":
|
|
263
|
+
vld = vld.notRequired();
|
|
264
|
+
break;
|
|
265
|
+
case "nullable":
|
|
266
|
+
vld = vld.nullable(validation.value ?? true);
|
|
267
|
+
break;
|
|
268
|
+
case "defined":
|
|
269
|
+
vld = vld.defined(validation.msg_en);
|
|
270
|
+
break;
|
|
271
|
+
case "optional":
|
|
272
|
+
vld = vld.optional();
|
|
273
|
+
break;
|
|
274
|
+
case "strict":
|
|
275
|
+
vld = vld.strict(validation.value ?? true);
|
|
276
|
+
break;
|
|
277
|
+
case "typeError":
|
|
278
|
+
vld = vld.typeError(validation.msg_en);
|
|
279
|
+
break;
|
|
280
|
+
case "oneOf":
|
|
281
|
+
vld = vld.oneOf(validation.values, validation.msg_en);
|
|
282
|
+
break;
|
|
283
|
+
case "notOneOf":
|
|
284
|
+
vld = vld.notOneOf(validation.values, validation.msg_en);
|
|
285
|
+
break;
|
|
286
|
+
case "default":
|
|
287
|
+
vld = vld.default(validation.value);
|
|
288
|
+
break;
|
|
289
|
+
case "transform":
|
|
290
|
+
vld = vld.transform(validation.fn);
|
|
291
|
+
break;
|
|
292
|
+
case "label":
|
|
293
|
+
vld = vld.label(validation.value);
|
|
294
|
+
break;
|
|
295
|
+
case "meta":
|
|
296
|
+
vld = vld.meta(validation.value);
|
|
297
|
+
break;
|
|
298
|
+
case "trim":
|
|
299
|
+
vld = vld.trim();
|
|
300
|
+
break;
|
|
301
|
+
case "lowercase":
|
|
302
|
+
vld = vld.lowercase();
|
|
303
|
+
break;
|
|
304
|
+
case "uppercase":
|
|
305
|
+
vld = vld.uppercase();
|
|
306
|
+
break;
|
|
307
|
+
case "email":
|
|
308
|
+
vld = vld.email(validation.msg_en);
|
|
309
|
+
break;
|
|
310
|
+
case "url":
|
|
311
|
+
vld = vld.url(validation.msg_en);
|
|
312
|
+
break;
|
|
313
|
+
case "uuid":
|
|
314
|
+
vld = vld.uuid(validation.msg_en);
|
|
315
|
+
break;
|
|
316
|
+
case "length":
|
|
317
|
+
vld = vld.length(validation.value, validation.msg_en);
|
|
318
|
+
break;
|
|
319
|
+
case "min":
|
|
320
|
+
vld = vld.min(validation.value, validation.msg_en);
|
|
321
|
+
break;
|
|
322
|
+
case "max":
|
|
323
|
+
vld = vld.max(validation.value, validation.msg_en);
|
|
324
|
+
break;
|
|
325
|
+
case "matches":
|
|
326
|
+
vld = vld.matches(validation.regex, validation.msg_en);
|
|
327
|
+
break;
|
|
328
|
+
case "startsWith":
|
|
329
|
+
vld = vld.matches(
|
|
330
|
+
new RegExp(`^${validation.value}`),
|
|
331
|
+
validation.msg_en
|
|
332
|
+
);
|
|
333
|
+
break;
|
|
334
|
+
case "endsWith":
|
|
335
|
+
vld = vld.matches(
|
|
336
|
+
new RegExp(`${validation.value}$`),
|
|
337
|
+
validation.msg_en
|
|
338
|
+
);
|
|
339
|
+
break;
|
|
340
|
+
case "lessThan":
|
|
341
|
+
vld = vld.lessThan(validation.value, validation.msg_en);
|
|
342
|
+
break;
|
|
343
|
+
case "moreThan":
|
|
344
|
+
vld = vld.moreThan(validation.value, validation.msg_en);
|
|
345
|
+
break;
|
|
346
|
+
case "positive":
|
|
347
|
+
vld = vld.positive(validation.msg_en);
|
|
348
|
+
break;
|
|
349
|
+
case "negative":
|
|
350
|
+
vld = vld.negative(validation.msg_en);
|
|
351
|
+
break;
|
|
352
|
+
case "integer":
|
|
353
|
+
vld = vld.integer(validation.msg_en);
|
|
354
|
+
break;
|
|
355
|
+
case "round":
|
|
356
|
+
vld = vld.round(validation.method || "round");
|
|
357
|
+
break;
|
|
358
|
+
case "truncate":
|
|
359
|
+
vld = vld.truncate();
|
|
360
|
+
break;
|
|
361
|
+
case "minItems":
|
|
362
|
+
vld = vld.min(validation.value, validation.msg_en);
|
|
363
|
+
break;
|
|
364
|
+
case "maxItems":
|
|
365
|
+
vld = vld.max(validation.value, validation.msg_en);
|
|
366
|
+
break;
|
|
367
|
+
case "ensure":
|
|
368
|
+
vld = vld.ensure();
|
|
369
|
+
break;
|
|
370
|
+
case "compact":
|
|
371
|
+
vld = vld.compact(validation.rejector);
|
|
372
|
+
break;
|
|
373
|
+
case "of":
|
|
374
|
+
vld = vld.of(validation.schema);
|
|
375
|
+
break;
|
|
376
|
+
case "minDate":
|
|
377
|
+
vld = vld.min(validation.value, validation.msg_en);
|
|
378
|
+
break;
|
|
379
|
+
case "maxDate":
|
|
380
|
+
vld = vld.max(validation.value, validation.msg_en);
|
|
381
|
+
break;
|
|
382
|
+
case "shape":
|
|
383
|
+
vld = vld.shape(validation.fields);
|
|
384
|
+
break;
|
|
385
|
+
case "noUnknown":
|
|
386
|
+
vld = vld.noUnknown(validation.value ?? true, validation.msg_en);
|
|
387
|
+
break;
|
|
388
|
+
case "test":
|
|
389
|
+
vld = vld.test(
|
|
390
|
+
validation.name || "custom-test",
|
|
391
|
+
validation.msg_en,
|
|
392
|
+
validation.testFn
|
|
393
|
+
);
|
|
394
|
+
break;
|
|
395
|
+
case "validate":
|
|
396
|
+
if (typeof validation.callback === "function") {
|
|
397
|
+
vld = vld.test(
|
|
398
|
+
validation.name || "custom-validate",
|
|
399
|
+
validation.msg_en || "Validation failed",
|
|
400
|
+
function(value) {
|
|
401
|
+
var _a2;
|
|
402
|
+
const rowObj = ((_a2 = this.options.context) == null ? void 0 : _a2.row) || {
|
|
403
|
+
original: this.parent,
|
|
404
|
+
origin: this.parent,
|
|
405
|
+
_valuesCache: this.parent
|
|
406
|
+
};
|
|
407
|
+
return validation.callback(value, this.parent, rowObj);
|
|
408
|
+
}
|
|
409
|
+
);
|
|
410
|
+
}
|
|
411
|
+
break;
|
|
412
|
+
case "when":
|
|
413
|
+
return vld.when(validation.relation, {
|
|
414
|
+
is: (val) => typeof validation.is === "function" ? validation.is(val) : Array.isArray(validation.values) ? validation.values.includes(val) : val === validation.values,
|
|
415
|
+
then: (s) => {
|
|
416
|
+
var _a2;
|
|
417
|
+
return ((_a2 = validation == null ? void 0 : validation.thenValidations) == null ? void 0 : _a2.reduce(
|
|
418
|
+
(acc, v) => validationReducer(acc, v, column),
|
|
419
|
+
s
|
|
420
|
+
)) || s;
|
|
421
|
+
},
|
|
422
|
+
otherwise: (s) => {
|
|
423
|
+
var _a2;
|
|
424
|
+
return ((_a2 = validation == null ? void 0 : validation.otherWiseValidations) == null ? void 0 : _a2.reduce(
|
|
425
|
+
(acc, v) => validationReducer(acc, v, column),
|
|
426
|
+
s
|
|
427
|
+
)) || s;
|
|
428
|
+
}
|
|
429
|
+
});
|
|
430
|
+
}
|
|
431
|
+
return vld;
|
|
432
|
+
};
|
|
433
|
+
const generateValidationSchema = (columns2) => {
|
|
434
|
+
return columns2.reduce((acc, clm) => {
|
|
435
|
+
var _a;
|
|
436
|
+
const validations = (_a = clm == null ? void 0 : clm.editProperties) == null ? void 0 : _a.validations;
|
|
437
|
+
if (!(validations == null ? void 0 : validations.length)) return acc;
|
|
438
|
+
const baseSchema = getValidationType(clm);
|
|
439
|
+
acc[clm.accessorKey] = validations.reduce(
|
|
440
|
+
(schema, validation) => validationReducer(schema, validation, clm),
|
|
441
|
+
baseSchema
|
|
442
|
+
);
|
|
443
|
+
return acc;
|
|
444
|
+
}, {});
|
|
445
|
+
};
|
|
446
|
+
React.useEffect(() => {
|
|
447
|
+
setTableColumns(columns);
|
|
448
|
+
const schema = generateValidationSchema(columns);
|
|
449
|
+
setValidationSchema(Yup__namespace.object().shape(schema));
|
|
450
|
+
}, [columns]);
|
|
451
|
+
React.useEffect(() => {
|
|
452
|
+
if (!(columnSizingInfo == null ? void 0 : columnSizingInfo.isResizingColumn)) {
|
|
453
|
+
updatePageInfo({ column_sizes: { ...activePage.column_sizes, ...columnSizing } });
|
|
454
|
+
handleColumnResizing == null ? void 0 : handleColumnResizing(columnSizing);
|
|
455
|
+
}
|
|
456
|
+
}, [columnSizingInfo == null ? void 0 : columnSizingInfo.isResizingColumn, columnSizing]);
|
|
457
|
+
const handleHeaderClick = (event) => {
|
|
458
|
+
setAnchorEl(event.currentTarget);
|
|
459
|
+
};
|
|
460
|
+
const handleHeaderClose = () => {
|
|
461
|
+
setAnchorEl(null);
|
|
462
|
+
};
|
|
463
|
+
const handleVisibleColumn = (column) => {
|
|
464
|
+
const updatedColumns = tableColumns.map((col) => ({
|
|
465
|
+
...col,
|
|
466
|
+
visible: col.accessorKey === column.accessorKey ? false : col.visible
|
|
467
|
+
}));
|
|
468
|
+
setTableColumns(updatedColumns);
|
|
469
|
+
onColumnVisibility == null ? void 0 : onColumnVisibility(JSON.parse(JSON.stringify(updatedColumns)));
|
|
470
|
+
setFilteredOptions([...filteredOptions, column]);
|
|
471
|
+
setAnchorEl(null);
|
|
472
|
+
};
|
|
473
|
+
const handleAddButtonClick = () => {
|
|
474
|
+
setPopupShow(true);
|
|
475
|
+
};
|
|
476
|
+
const handleBackButtonClick = () => {
|
|
477
|
+
setPopupShow(false);
|
|
478
|
+
};
|
|
479
|
+
const handleAddColumn = (column) => {
|
|
480
|
+
const updatedColumns = tableColumns.map((col) => ({
|
|
481
|
+
...col,
|
|
482
|
+
visible: col.accessorKey === column.accessorKey ? true : col.visible
|
|
483
|
+
}));
|
|
484
|
+
onColumnVisibility == null ? void 0 : onColumnVisibility(JSON.parse(JSON.stringify(updatedColumns)));
|
|
485
|
+
setTableColumns(updatedColumns);
|
|
486
|
+
const updatedFilteredOptions = filteredOptions.filter(
|
|
487
|
+
(option) => option.accessorKey !== column.accessorKey
|
|
488
|
+
);
|
|
489
|
+
setFilteredOptions(updatedFilteredOptions);
|
|
490
|
+
setAnchorEl(null);
|
|
491
|
+
setPopupShow(false);
|
|
492
|
+
};
|
|
493
|
+
const handleSearchEvent = (searchQuery) => {
|
|
494
|
+
const filteredColumns = hiddenColumns.filter(
|
|
495
|
+
(option) => option.header.toLowerCase().includes(searchQuery.toLowerCase())
|
|
496
|
+
);
|
|
497
|
+
setFilteredOptions(filteredColumns);
|
|
498
|
+
};
|
|
499
|
+
const handleCustomAddColumn = () => {
|
|
500
|
+
navigate(path, { state: formData });
|
|
501
|
+
setAnchorEl(null);
|
|
502
|
+
setPopupShow(false);
|
|
503
|
+
};
|
|
504
|
+
const handleActionsClick = (event, data) => {
|
|
505
|
+
setRow(data);
|
|
506
|
+
setRowAnchorEl(event.currentTarget);
|
|
507
|
+
};
|
|
508
|
+
const handleActionsClose = () => {
|
|
509
|
+
setRowAnchorEl(null);
|
|
510
|
+
};
|
|
511
|
+
const formtValues = React.useCallback((values, cells) => {
|
|
512
|
+
const v = {};
|
|
513
|
+
if (values == null ? void 0 : values["mrt-row-actions"]) {
|
|
514
|
+
delete values["mrt-row-actions"];
|
|
515
|
+
}
|
|
516
|
+
Object.keys(values).forEach((vl) => {
|
|
517
|
+
const val = values[vl];
|
|
518
|
+
const cell = cells.find((c) => c.accessorKey == vl);
|
|
519
|
+
if (val) {
|
|
520
|
+
if (val instanceof File) {
|
|
521
|
+
v[vl] = val.name;
|
|
522
|
+
} else if (cell && (cell == null ? void 0 : cell.editVariant) == "date") {
|
|
523
|
+
v[vl] = dayjs(val).format((cell == null ? void 0 : cell.dateFormat) || "DD-MM-YYYY");
|
|
524
|
+
} else if (cell && (cell == null ? void 0 : cell.editVariant) == "time") {
|
|
525
|
+
v[vl] = dayjs.isDayjs(val) ? val.format("HH:mm") : val;
|
|
526
|
+
} else if (cell && (cell == null ? void 0 : cell.editVariant) == "select" && typeof val === "object" && val !== null) {
|
|
527
|
+
v[vl] = val.name || val.label || val.display_name || val.title || val.value || val.id || val;
|
|
528
|
+
} else if (cell && (cell == null ? void 0 : cell.editVariant) == "select" && typeof val === "string") {
|
|
529
|
+
v[vl] = val;
|
|
530
|
+
} else {
|
|
531
|
+
v[vl] = val;
|
|
532
|
+
}
|
|
533
|
+
} else {
|
|
534
|
+
v[vl] = val;
|
|
535
|
+
}
|
|
536
|
+
});
|
|
537
|
+
return v;
|
|
538
|
+
}, []);
|
|
539
|
+
const handleRowDelete = async () => {
|
|
540
|
+
setIsDeletingRow(true);
|
|
541
|
+
if (rowToDelete) {
|
|
542
|
+
await (onDeleteRow == null ? void 0 : onDeleteRow(rowToDelete));
|
|
543
|
+
setRowToDelete(null);
|
|
544
|
+
}
|
|
545
|
+
setIsDeletingRow(false);
|
|
546
|
+
};
|
|
547
|
+
const checkRequired = React.useCallback((editProperties) => {
|
|
548
|
+
var _a;
|
|
549
|
+
return (_a = editProperties == null ? void 0 : editProperties.validations) == null ? void 0 : _a.some((validation) => validation.type === "required");
|
|
550
|
+
}, []);
|
|
551
|
+
React.useEffect(() => {
|
|
552
|
+
const selectedRows = {};
|
|
553
|
+
if (!isChecked && selectedRowIds.length) {
|
|
554
|
+
rows.forEach((row2) => {
|
|
555
|
+
if (selectedRowIds.includes(row2.id)) {
|
|
556
|
+
selectedRows[row2.id] = true;
|
|
557
|
+
}
|
|
558
|
+
});
|
|
559
|
+
setRowSelection(selectedRows);
|
|
560
|
+
setIsChecked(true);
|
|
561
|
+
}
|
|
562
|
+
}, [rows, selectedRowIds]);
|
|
563
|
+
React.useEffect(() => {
|
|
564
|
+
if (onSortingChange instanceof Function) {
|
|
565
|
+
const sortingArray = Array.isArray(sorting) ? sorting : [];
|
|
566
|
+
onSortingChange(sortingArray[0] || null);
|
|
567
|
+
}
|
|
568
|
+
}, [sorting]);
|
|
569
|
+
const resetRowSelection = () => {
|
|
570
|
+
setRowSelection({});
|
|
571
|
+
setDisableNextEdit(false);
|
|
572
|
+
};
|
|
573
|
+
const getTextWidth = (text) => {
|
|
574
|
+
const canvas = document.createElement("canvas");
|
|
575
|
+
const ctx = canvas.getContext("2d");
|
|
576
|
+
if (!ctx) return 50;
|
|
577
|
+
return ctx.measureText(text).width + 5;
|
|
578
|
+
};
|
|
579
|
+
const handleSaveRow = React.useCallback(
|
|
580
|
+
async ({ row: row2, values, table: table2 }, mode) => {
|
|
581
|
+
const isEditMode = mode === "edit";
|
|
582
|
+
const setLoadingState = isEditMode ? setIsEditingRow : setIsCreatingRow;
|
|
583
|
+
const rowId = row2.id;
|
|
584
|
+
try {
|
|
585
|
+
await validationSchema.validate(values, { abortEarly: false, context: { row: row2 } });
|
|
586
|
+
setValidationErrors((prev) => {
|
|
587
|
+
const next = { ...prev };
|
|
588
|
+
delete next[rowId];
|
|
589
|
+
return next;
|
|
590
|
+
});
|
|
591
|
+
setLoadingState(true);
|
|
592
|
+
setDisableNextEdit(false);
|
|
593
|
+
const cells = row2.getAllCells().map((c) => c.column.columnDef);
|
|
594
|
+
row2._valuesCache = formtValues(values, cells);
|
|
595
|
+
const data = { row: row2, values, table: table2 };
|
|
596
|
+
if (isEditMode) {
|
|
597
|
+
await (onEditRow == null ? void 0 : onEditRow(data, "edit"));
|
|
598
|
+
table2.setEditingRow(null);
|
|
599
|
+
} else {
|
|
600
|
+
await (onCreateRow == null ? void 0 : onCreateRow(data));
|
|
601
|
+
table2.setCreatingRow(null);
|
|
602
|
+
}
|
|
603
|
+
} catch (err) {
|
|
604
|
+
if (err instanceof Yup__namespace.ValidationError) {
|
|
605
|
+
const fieldErrors = err.inner.reduce((acc, { path: path2, message }) => {
|
|
606
|
+
if (path2) acc[path2] = message;
|
|
607
|
+
return acc;
|
|
608
|
+
}, {});
|
|
609
|
+
setValidationErrors((prev) => ({ ...prev, [rowId]: fieldErrors }));
|
|
610
|
+
} else {
|
|
611
|
+
enqueueSnackbar(
|
|
612
|
+
api.getErrorMessage(err instanceof Error ? err.message : "Something went wrong"),
|
|
613
|
+
{ variant: "error" }
|
|
614
|
+
);
|
|
615
|
+
}
|
|
616
|
+
} finally {
|
|
617
|
+
setLoadingState(false);
|
|
618
|
+
}
|
|
619
|
+
},
|
|
620
|
+
[validationSchema, onEditRow, onCreateRow, formtValues]
|
|
621
|
+
);
|
|
622
|
+
const validate = React.useCallback(async (values, row2) => {
|
|
623
|
+
try {
|
|
624
|
+
await validationSchema.validate(values, { abortEarly: false, context: { row: row2 } });
|
|
625
|
+
setValidationErrors({});
|
|
626
|
+
return true;
|
|
627
|
+
} catch (err) {
|
|
628
|
+
return false;
|
|
629
|
+
}
|
|
630
|
+
}, [validationSchema]);
|
|
631
|
+
React.useCallback(
|
|
632
|
+
async (columnId, value, rowId, rowValues) => {
|
|
633
|
+
if (!validationSchema || typeof validationSchema.validateAt !== "function" || !validationSchema.fields || !validationSchema.fields[columnId]) return;
|
|
634
|
+
try {
|
|
635
|
+
await validationSchema.validateAt(
|
|
636
|
+
columnId,
|
|
637
|
+
{
|
|
638
|
+
...rowValues,
|
|
639
|
+
[columnId]: value
|
|
640
|
+
},
|
|
641
|
+
{
|
|
642
|
+
abortEarly: false
|
|
643
|
+
}
|
|
644
|
+
);
|
|
645
|
+
setValidationErrors((prev) => {
|
|
646
|
+
const next = { ...prev };
|
|
647
|
+
if (next[rowId]) {
|
|
648
|
+
const rowErrs = { ...next[rowId] };
|
|
649
|
+
delete rowErrs[columnId];
|
|
650
|
+
next[rowId] = rowErrs;
|
|
651
|
+
}
|
|
652
|
+
return next;
|
|
653
|
+
});
|
|
654
|
+
} catch (err) {
|
|
655
|
+
if (err instanceof Yup__namespace.ValidationError) {
|
|
656
|
+
const fieldErrors = err.inner.reduce((acc, { path: path2, message }) => {
|
|
657
|
+
if (path2) acc[path2] = message;
|
|
658
|
+
return acc;
|
|
659
|
+
}, {});
|
|
660
|
+
setValidationErrors((prev) => ({
|
|
661
|
+
...prev,
|
|
662
|
+
[rowId]: {
|
|
663
|
+
...prev[rowId] ?? {},
|
|
664
|
+
...fieldErrors
|
|
665
|
+
}
|
|
666
|
+
}));
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
},
|
|
670
|
+
[validationSchema]
|
|
671
|
+
);
|
|
672
|
+
const valuesRef = React.useRef({});
|
|
673
|
+
const tableContainerRef = React.useRef(null);
|
|
674
|
+
const syncFieldValue = React.useCallback(
|
|
675
|
+
(rowId, columnId, value) => {
|
|
676
|
+
valuesRef.current[rowId] = {
|
|
677
|
+
...valuesRef.current[rowId] ?? {},
|
|
678
|
+
[columnId]: value
|
|
679
|
+
};
|
|
680
|
+
},
|
|
681
|
+
[]
|
|
682
|
+
);
|
|
683
|
+
const clearRow = React.useCallback((rowId) => {
|
|
684
|
+
delete valuesRef.current[rowId];
|
|
685
|
+
}, []);
|
|
686
|
+
const getRowValues = React.useCallback(
|
|
687
|
+
(row2) => ({
|
|
688
|
+
// 1. original row data — baseline
|
|
689
|
+
...row2.original,
|
|
690
|
+
// 2. MRT's internal cache — contains what MRT-controlled fields wrote
|
|
691
|
+
...row2._valuesCache,
|
|
692
|
+
// 3. Our own cache — authoritative for custom fields
|
|
693
|
+
...valuesRef.current[row2.id] ?? {}
|
|
694
|
+
}),
|
|
695
|
+
[]
|
|
696
|
+
);
|
|
697
|
+
const saveEditingRow = React.useCallback(
|
|
698
|
+
async (table2) => {
|
|
699
|
+
const editingRow = table2.getState().editingRow;
|
|
700
|
+
const creatingRow = table2.getState().creatingRow;
|
|
701
|
+
if (!editingRow) return;
|
|
702
|
+
const values = getRowValues(editingRow);
|
|
703
|
+
const isValid = await validate(values, editingRow);
|
|
704
|
+
if (!isValid) {
|
|
705
|
+
await handleSaveRow({ row: editingRow, values, table: table2 }, "edit");
|
|
706
|
+
return;
|
|
707
|
+
}
|
|
708
|
+
await handleSaveRow({ row: editingRow, values, table: table2 }, "edit");
|
|
709
|
+
clearRow(editingRow.id);
|
|
710
|
+
if (!creatingRow && enableRowCreate) {
|
|
711
|
+
setDisableNextEdit(false);
|
|
712
|
+
setTimeout(() => table2.setCreatingRow(true), 200);
|
|
713
|
+
} else {
|
|
714
|
+
setDisableNextEdit(false);
|
|
715
|
+
}
|
|
716
|
+
},
|
|
717
|
+
[getRowValues, handleSaveRow, clearRow, validate, enableRowCreate]
|
|
718
|
+
);
|
|
719
|
+
const saveCreatingRow = React.useCallback(
|
|
720
|
+
async (table2) => {
|
|
721
|
+
const creatingRow = table2.getState().creatingRow;
|
|
722
|
+
if (!creatingRow) return;
|
|
723
|
+
const values = getRowValues(creatingRow);
|
|
724
|
+
if (values == null ? void 0 : values["mrt-row-actions"]) {
|
|
725
|
+
delete values["mrt-row-actions"];
|
|
726
|
+
}
|
|
727
|
+
const isValid = await validate(values, creatingRow);
|
|
728
|
+
await handleSaveRow({ row: creatingRow, values, table: table2 }, "create");
|
|
729
|
+
if (!isValid) return;
|
|
730
|
+
if (isValid) {
|
|
731
|
+
setDisableNextEdit(false);
|
|
732
|
+
clearRow("mrt-row-create");
|
|
733
|
+
setTimeout(() => table2.setCreatingRow(true), 200);
|
|
734
|
+
}
|
|
735
|
+
},
|
|
736
|
+
[getRowValues, clearRow, validate]
|
|
737
|
+
);
|
|
738
|
+
const table = materialReactTable.useMaterialReactTable({
|
|
739
|
+
// options:{
|
|
740
|
+
// tableLayout: "auto", // 👈 important
|
|
741
|
+
// padding: "dense",
|
|
742
|
+
// },
|
|
743
|
+
// columns: visibleColumns,
|
|
744
|
+
defaultColumn: {
|
|
745
|
+
minSize: 0,
|
|
746
|
+
// 👈 remove default min width
|
|
747
|
+
size: void 0
|
|
748
|
+
// 👈 optional, default size
|
|
749
|
+
},
|
|
750
|
+
columns: [
|
|
751
|
+
...visibleColumns.map((c) => {
|
|
752
|
+
getTextWidth(c.header || "");
|
|
753
|
+
Math.max(
|
|
754
|
+
...rows.map((row2) => getTextWidth(String(row2[c.accessorKey] ?? "")))
|
|
755
|
+
);
|
|
756
|
+
return {
|
|
757
|
+
...c,
|
|
758
|
+
...editDisplayMode === "row" ? {
|
|
759
|
+
Edit: ({ cell, row: row2, table: table2, column }) => {
|
|
760
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
761
|
+
inlineEditFields.InlineEditFields,
|
|
762
|
+
{
|
|
763
|
+
cell,
|
|
764
|
+
column,
|
|
765
|
+
col: c,
|
|
766
|
+
row: row2,
|
|
767
|
+
table: table2,
|
|
768
|
+
callback: (s) => console.log("Save", s),
|
|
769
|
+
errors: validationErrors[row2.id] ?? {},
|
|
770
|
+
validationSchema,
|
|
771
|
+
setValidationErrors: (errors) => setValidationErrors((prev) => ({ ...prev, [row2.id]: errors })),
|
|
772
|
+
onChangeRowField,
|
|
773
|
+
getSelectedData: (name, row3) => getSelectedData == null ? void 0 : getSelectedData(name, row3),
|
|
774
|
+
syncFieldValue
|
|
775
|
+
}
|
|
776
|
+
);
|
|
777
|
+
}
|
|
778
|
+
} : {},
|
|
779
|
+
Header: /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { display: "flex", alignItems: "center", children: [
|
|
780
|
+
c.header,
|
|
781
|
+
(c == null ? void 0 : c.required) || checkRequired(c == null ? void 0 : c.editProperties) && /* @__PURE__ */ jsxRuntime.jsx(typography.Typography, { type: "s5", color: "theme.error.600", children: "*" })
|
|
782
|
+
] }),
|
|
783
|
+
enableColumnDragging: c.id !== "actions",
|
|
784
|
+
// cellStyle: { ...c.cellStyle, width: finalWidth },
|
|
785
|
+
// headerStyle: { ...c.headerStyle, width: finalWidth },
|
|
786
|
+
// size: finalWidth
|
|
787
|
+
size: void 0,
|
|
788
|
+
// minSize: 40,
|
|
789
|
+
maxSize: 800
|
|
790
|
+
};
|
|
791
|
+
}),
|
|
792
|
+
...!disableDefaultActionColumn ? [
|
|
793
|
+
{
|
|
794
|
+
id: "actions",
|
|
795
|
+
enableEditing: false,
|
|
796
|
+
size: (defaultActionColumnItems == null ? void 0 : defaultActionColumnItems.length) > 1 ? 80 : 50,
|
|
797
|
+
header: /* @__PURE__ */ jsxRuntime.jsx(material.IconButton, { size: "small", sx: { p: 0.5, "&:hover": { backgroundColor: "transparent" } }, onClick: handleHeaderClick, children: /* @__PURE__ */ jsxRuntime.jsx("img", { src: images.default.common.arrowIcon, alt: "Arrow Icon" }) }),
|
|
798
|
+
enableColumnDragging: false,
|
|
799
|
+
visible: true,
|
|
800
|
+
muiTableHeadCellProps: {
|
|
801
|
+
className: "pinned-column"
|
|
802
|
+
},
|
|
803
|
+
muiTableBodyCellProps: {
|
|
804
|
+
className: "pinned-column",
|
|
805
|
+
sx: {
|
|
806
|
+
whiteSpace: "pre-wrap"
|
|
807
|
+
}
|
|
808
|
+
},
|
|
809
|
+
Cell: (props) => (defaultActionColumnItems == null ? void 0 : defaultActionColumnItems.length) ? defaultActionColumnItems.map((item) => {
|
|
810
|
+
const updatedProps = {
|
|
811
|
+
...item.props,
|
|
812
|
+
onClick: () => item.props.onClick(props)
|
|
813
|
+
};
|
|
814
|
+
return React.cloneElement(item, updatedProps);
|
|
815
|
+
}) : !disabledDefaultActionColumnIcon && /* @__PURE__ */ jsxRuntime.jsx(
|
|
816
|
+
material.IconButton,
|
|
817
|
+
{
|
|
818
|
+
onClick: (e) => handleActionsClick(e, props.row.original),
|
|
819
|
+
disabled: !(rowActionMenu == null ? void 0 : rowActionMenu.length) && !(destructiveActionMenu == null ? void 0 : destructiveActionMenu.length),
|
|
820
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("img", { src: images.default.more, alt: "More Icon" })
|
|
821
|
+
}
|
|
822
|
+
)
|
|
823
|
+
}
|
|
824
|
+
] : []
|
|
825
|
+
],
|
|
826
|
+
data: rows,
|
|
827
|
+
muiTablePaperProps: {
|
|
828
|
+
sx: {
|
|
829
|
+
tableLayout: "auto"
|
|
830
|
+
// lets columns shrink to fit content
|
|
831
|
+
}
|
|
832
|
+
},
|
|
833
|
+
columnResizeMode: "onChange",
|
|
834
|
+
onEditingRowSave: async (data) => {
|
|
835
|
+
await handleSaveRow(data, "edit");
|
|
836
|
+
},
|
|
837
|
+
onCreatingRowSave: async (data) => {
|
|
838
|
+
await handleSaveRow(data, "create");
|
|
839
|
+
},
|
|
840
|
+
onCreatingRowCancel: () => resetRowSelection(),
|
|
841
|
+
onEditingRowCancel: () => {
|
|
842
|
+
setDisableNextEdit(false);
|
|
843
|
+
},
|
|
844
|
+
onSortingChange: (states == null ? void 0 : states.sorting) ? onSortingChange : setSorting,
|
|
845
|
+
displayColumnDefOptions: {
|
|
846
|
+
"mrt-row-actions": {
|
|
847
|
+
// size: onDeleteRow ? 80 : 50,
|
|
848
|
+
Header: /* @__PURE__ */ jsxRuntime.jsx(material.IconButton, { onClick: handleHeaderClick, size: "small", children: /* @__PURE__ */ jsxRuntime.jsx("img", { src: images.default.common.arrowIcon, alt: "Arrow Icon" }) }),
|
|
849
|
+
muiTableBodyCellProps: ({ row: row2, table: table2 }) => {
|
|
850
|
+
var _a, _b;
|
|
851
|
+
const isCreatingRow2 = ((_a = table2.getState().creatingRow) == null ? void 0 : _a.id) === row2.id;
|
|
852
|
+
const isEditingRow2 = ((_b = table2.getState().editingRow) == null ? void 0 : _b.id) === row2.id;
|
|
853
|
+
return {
|
|
854
|
+
sx: {
|
|
855
|
+
"& .MuiBox-root": {
|
|
856
|
+
gap: 0
|
|
857
|
+
},
|
|
858
|
+
backgroundColor: "#fff",
|
|
859
|
+
whiteSpace: "pre-wrap",
|
|
860
|
+
// Hide save button only when editing existing row (not in create mode or non-editable mode)
|
|
861
|
+
...hideSaveButton && (isEditingRow2 || isCreatingRow2) ? {
|
|
862
|
+
"& .MuiBox-root > .MuiIconButton-root:first-of-type": {
|
|
863
|
+
display: "none !important"
|
|
864
|
+
},
|
|
865
|
+
// Also hide any save icon buttons by aria-label or title
|
|
866
|
+
'& button[aria-label*="Save"]': {
|
|
867
|
+
display: "none !important"
|
|
868
|
+
},
|
|
869
|
+
'& button[title*="Save"]': {
|
|
870
|
+
display: "none !important"
|
|
871
|
+
},
|
|
872
|
+
// Hide save icon by class or data attributes
|
|
873
|
+
'& .MuiIconButton-root[class*="save"]': {
|
|
874
|
+
display: "none !important"
|
|
875
|
+
},
|
|
876
|
+
'& .MuiIconButton-root[data-testid*="save"]': {
|
|
877
|
+
display: "none !important"
|
|
878
|
+
}
|
|
879
|
+
} : {}
|
|
880
|
+
}
|
|
881
|
+
};
|
|
882
|
+
}
|
|
883
|
+
},
|
|
884
|
+
"mrt-row-expand": {
|
|
885
|
+
size: 70
|
|
886
|
+
// Set the size of the expand-collapse arrow column here
|
|
887
|
+
},
|
|
888
|
+
"mrt-row-select": {
|
|
889
|
+
size: 50
|
|
890
|
+
// Set the width of the checkbox column here
|
|
891
|
+
}
|
|
892
|
+
},
|
|
893
|
+
renderRowActions: ({ row: row2, table: table2 }) => /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: (rest == null ? void 0 : rest.enableExpanding) ? /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: (row2 == null ? void 0 : row2.parentId) && /* @__PURE__ */ jsxRuntime.jsx(material.Box, { sx: { display: "flex", gap: 0 }, children: onDeleteRow && !(hideDeleteButton == null ? void 0 : hideDeleteButton(row2.original)) && /* @__PURE__ */ jsxRuntime.jsx(Tooltip.Tooltip, { title: "Delete", children: /* @__PURE__ */ jsxRuntime.jsx(material.IconButton, { disabled: disableNextEdit, onClick: () => setRowToDelete(row2), size: "small", className: "delete-row", children: /* @__PURE__ */ jsxRuntime.jsx(trash.Trash, { fontSize: "small", sx: { color: "theme.secondary.1000" } }) }) }) }) }) : /* @__PURE__ */ jsxRuntime.jsx(material.Box, { sx: { display: "flex", gap: 0 }, children: onDeleteRow && !(hideDeleteButton == null ? void 0 : hideDeleteButton(row2.original)) && /* @__PURE__ */ jsxRuntime.jsx(Tooltip.Tooltip, { title: "Delete", children: /* @__PURE__ */ jsxRuntime.jsx(material.IconButton, { disabled: disableNextEdit, onClick: () => setRowToDelete(row2), className: "delete-row", children: /* @__PURE__ */ jsxRuntime.jsx(trash.Trash, { fontSize: "small", sx: { color: "theme.secondary.1000" } }) }) }) }) }),
|
|
894
|
+
...Boolean(enableRowCreate) && {
|
|
895
|
+
renderBottomToolbarCustomActions: ({ table: table2 }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
896
|
+
button.Button,
|
|
897
|
+
{
|
|
898
|
+
variant: "outlined",
|
|
899
|
+
startIcon: /* @__PURE__ */ jsxRuntime.jsx(AddIcon, {}),
|
|
900
|
+
className: "add-row-btn",
|
|
901
|
+
disabled: disableNextEdit,
|
|
902
|
+
onClick: () => {
|
|
903
|
+
table2.setCreatingRow(true);
|
|
904
|
+
setDisableNextEdit(true);
|
|
905
|
+
},
|
|
906
|
+
children: t("common.add")
|
|
907
|
+
}
|
|
908
|
+
)
|
|
909
|
+
},
|
|
910
|
+
onRowSelectionChange: setRowSelection,
|
|
911
|
+
enableColumnOrdering: true,
|
|
912
|
+
enableRowSelection: enableRowSelection ?? true,
|
|
913
|
+
enableEditing: (row2) => enableEditing instanceof Function ? enableEditing(row2) : enableEditing ?? true,
|
|
914
|
+
editDisplayMode: editDisplayMode ?? "row",
|
|
915
|
+
createDisplayMode: "row",
|
|
916
|
+
positionCreatingRow: "bottom",
|
|
917
|
+
enableColumnResizing,
|
|
918
|
+
enableRowDragging,
|
|
919
|
+
enableTopToolbar: false,
|
|
920
|
+
enableColumnActions: false,
|
|
921
|
+
enableSorting: true,
|
|
922
|
+
enableGrouping: true,
|
|
923
|
+
enableBottomToolbar: enableBottomToolbar ?? false,
|
|
924
|
+
enableColumnDragging: enableColumnDragging ?? true,
|
|
925
|
+
enableStickyHeader: true,
|
|
926
|
+
enableSortingRemoval: false,
|
|
927
|
+
// column ordering
|
|
928
|
+
state: {
|
|
929
|
+
// columnOrder: (!columnOrder || columnOrder.length <= 1)
|
|
930
|
+
// ? [...internalColumnOrder]
|
|
931
|
+
// : [...columnOrder],
|
|
932
|
+
columnOrder,
|
|
933
|
+
columnPinning: { left: ["actions", "mrt-row-actions"] },
|
|
934
|
+
isSaving: isCreatingRow || isEditingRow,
|
|
935
|
+
showProgressBars: false,
|
|
936
|
+
rowSelection,
|
|
937
|
+
...states,
|
|
938
|
+
sorting: Array.isArray(states == null ? void 0 : states.sorting) ? states == null ? void 0 : states.sorting : Array.isArray(sorting) ? sorting : [],
|
|
939
|
+
columnSizing
|
|
940
|
+
},
|
|
941
|
+
getRowId: (row2) => row2 == null ? void 0 : row2.id,
|
|
942
|
+
// table.getState().editingRow
|
|
943
|
+
muiTableBodyRowProps: ({ row: row2, table: table2 }) => {
|
|
944
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
945
|
+
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;
|
|
946
|
+
((_f = (_e = table2.getState()) == null ? void 0 : _e.creatingRow) == null ? void 0 : _f.id) || null;
|
|
947
|
+
const isErrorRow = Boolean((_g = row2 == null ? void 0 : row2.original) == null ? void 0 : _g.has_error);
|
|
948
|
+
editingRowId === row2.id;
|
|
949
|
+
return {
|
|
950
|
+
onClick: () => {
|
|
951
|
+
setSelectedRow(row2.id);
|
|
952
|
+
},
|
|
953
|
+
sx: {
|
|
954
|
+
cursor: "pointer",
|
|
955
|
+
// backgroundColor: !editingRowId
|
|
956
|
+
// ? (selectedRow === row.id
|
|
957
|
+
// ? '#e8e8e8'
|
|
958
|
+
// : (isErrorRow ? 'theme.error.100' : 'inherit'))
|
|
959
|
+
// : 'inherit',
|
|
960
|
+
backgroundColor: !editingRowId ? isErrorRow ? "theme.error.100" : "inherit" : "inherit",
|
|
961
|
+
"&:hover": {
|
|
962
|
+
backgroundColor: editingRowId ? editingRowId === row2.id ? "transparent" : "inherit" : isErrorRow ? "theme.error.200" : "#e8e8e8"
|
|
963
|
+
},
|
|
964
|
+
"&:hover td:after": {
|
|
965
|
+
backgroundColor: "transparent"
|
|
966
|
+
// Removes the grey background applied via :after
|
|
967
|
+
}
|
|
968
|
+
}
|
|
969
|
+
};
|
|
970
|
+
},
|
|
971
|
+
onColumnOrderChange: (colOrder) => {
|
|
972
|
+
if (handleColumnOrdering) handleColumnOrdering(colOrder);
|
|
973
|
+
},
|
|
974
|
+
onColumnSizingChange: setColumnSizing,
|
|
975
|
+
onColumnSizingInfoChange: setColumnSizingInfo,
|
|
976
|
+
renderEmptyRowsFallback: () => /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { className: "no-data", children: [
|
|
977
|
+
/* @__PURE__ */ jsxRuntime.jsx("img", { src: images.default.common.tableNoData }),
|
|
978
|
+
/* @__PURE__ */ jsxRuntime.jsx(typography.Typography, { type: "s3", weight: "medium", color: "theme.secondary.1000", children: t("common.noData") })
|
|
979
|
+
] }),
|
|
980
|
+
// pagination
|
|
981
|
+
enablePagination,
|
|
982
|
+
paginationDisplayMode: "pages",
|
|
983
|
+
muiPaginationProps: {
|
|
984
|
+
shape: "rounded",
|
|
985
|
+
page: pageNo,
|
|
986
|
+
// current page number
|
|
987
|
+
count: totalPages,
|
|
988
|
+
// total pages
|
|
989
|
+
showRowsPerPage: false,
|
|
990
|
+
// Hide rows per page options
|
|
991
|
+
boundaryCount: 3
|
|
992
|
+
},
|
|
993
|
+
muiEditTextFieldProps: ({ row: row2, column }) => ({
|
|
994
|
+
InputProps: {
|
|
995
|
+
disableUnderline: true
|
|
996
|
+
},
|
|
997
|
+
onBlur: (e) => {
|
|
998
|
+
updateData(e.target.value, column, row2.id);
|
|
999
|
+
},
|
|
1000
|
+
// onChange: (e) => {
|
|
1001
|
+
// updateData(e.target.value, column, row.id);
|
|
1002
|
+
// },
|
|
1003
|
+
variant: "outlined",
|
|
1004
|
+
sx: ({ palette }) => {
|
|
1005
|
+
var _a;
|
|
1006
|
+
return {
|
|
1007
|
+
"& .MuiOutlinedInput-root": {
|
|
1008
|
+
"& fieldset": {
|
|
1009
|
+
borderColor: `${(_a = palette.theme) == null ? void 0 : _a.primary[700]} !important`
|
|
1010
|
+
// backgroundColor: palette.theme?.primary[700]
|
|
1011
|
+
}
|
|
1012
|
+
}
|
|
1013
|
+
};
|
|
1014
|
+
}
|
|
1015
|
+
}),
|
|
1016
|
+
/* Table loader style */
|
|
1017
|
+
muiCircularProgressProps: {
|
|
1018
|
+
sx: {
|
|
1019
|
+
color: "#289B64"
|
|
1020
|
+
}
|
|
1021
|
+
},
|
|
1022
|
+
// Table header cell default styles
|
|
1023
|
+
muiTableHeadCellProps: {
|
|
1024
|
+
sx: {
|
|
1025
|
+
lineHeight: "140%",
|
|
1026
|
+
letterSpacing: "-0.28px",
|
|
1027
|
+
fontWeight: "500",
|
|
1028
|
+
fontSize: "0.875rem",
|
|
1029
|
+
"& .Mui-TableHeadCell-Content": {
|
|
1030
|
+
height: "100%"
|
|
1031
|
+
},
|
|
1032
|
+
"& .Mui-TableHeadCell-Content-Labels": {
|
|
1033
|
+
width: "100%",
|
|
1034
|
+
justifyContent: "space-between"
|
|
1035
|
+
},
|
|
1036
|
+
"&.pinned-column": {
|
|
1037
|
+
backgroundColor: "#fff"
|
|
1038
|
+
},
|
|
1039
|
+
"& .Mui-TableHeadCell-ResizeHandle-Wrapper": {
|
|
1040
|
+
padding: 0,
|
|
1041
|
+
margin: 0,
|
|
1042
|
+
right: "-5px",
|
|
1043
|
+
opacity: 0
|
|
1044
|
+
}
|
|
1045
|
+
}
|
|
1046
|
+
},
|
|
1047
|
+
// Table body cell default styles
|
|
1048
|
+
muiTableBodyProps: {
|
|
1049
|
+
sx: {
|
|
1050
|
+
zIndex: 500
|
|
1051
|
+
}
|
|
1052
|
+
},
|
|
1053
|
+
muiTableHeadProps: {
|
|
1054
|
+
sx: {
|
|
1055
|
+
zIndex: 600
|
|
1056
|
+
}
|
|
1057
|
+
},
|
|
1058
|
+
muiTableBodyCellProps: ({ cell, column, table: table2, row: row2 }) => ({
|
|
1059
|
+
sx: {
|
|
1060
|
+
lineHeight: "140%",
|
|
1061
|
+
letterSpacing: "-0.26px",
|
|
1062
|
+
fontWeight: "400",
|
|
1063
|
+
fontSize: "0.8125rem",
|
|
1064
|
+
"&.pinned-column": {
|
|
1065
|
+
backgroundColor: "#fff"
|
|
1066
|
+
},
|
|
1067
|
+
"&:hover": {
|
|
1068
|
+
backgroundColor: "transparent"
|
|
1069
|
+
// Removes hover effect globally
|
|
1070
|
+
},
|
|
1071
|
+
whiteSpace: "pre-wrap"
|
|
1072
|
+
},
|
|
1073
|
+
onClick: (e) => {
|
|
1074
|
+
var _a, _b, _c, _d;
|
|
1075
|
+
const target = e.target;
|
|
1076
|
+
const tableCell = target.closest(".MuiTableCell-body");
|
|
1077
|
+
const isInsideTable = tableCell && !tableCell.querySelector(".delete-row");
|
|
1078
|
+
if (!isInsideTable) return;
|
|
1079
|
+
const columnDef = column.columnDef;
|
|
1080
|
+
const isOnClickEditable = columnDef.isOnClickEditable !== false;
|
|
1081
|
+
if (!isOnClickEditable) {
|
|
1082
|
+
return;
|
|
1083
|
+
}
|
|
1084
|
+
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;
|
|
1085
|
+
const isCurrentlyEditing = editingRowId === row2.id;
|
|
1086
|
+
if (editingRowId && editingRowId !== row2.id) {
|
|
1087
|
+
const currentEditingRow = table2.getState().editingRow;
|
|
1088
|
+
const currentCreatingRow = table2.getState().creatingRow;
|
|
1089
|
+
(async () => {
|
|
1090
|
+
let saveSucceeded = false;
|
|
1091
|
+
if (currentCreatingRow) {
|
|
1092
|
+
const values = getRowValues(currentCreatingRow);
|
|
1093
|
+
const isValid = await validate(values, currentCreatingRow);
|
|
1094
|
+
if (!isValid) return;
|
|
1095
|
+
await handleSaveRow({ row: currentCreatingRow, values, table: table2 }, "create");
|
|
1096
|
+
clearRow("mrt-row-create");
|
|
1097
|
+
saveSucceeded = true;
|
|
1098
|
+
} else if (currentEditingRow) {
|
|
1099
|
+
const values = getRowValues(currentEditingRow);
|
|
1100
|
+
const isValid = await validate(values, currentEditingRow);
|
|
1101
|
+
if (!isValid) return;
|
|
1102
|
+
await handleSaveRow({ row: currentEditingRow, values, table: table2 }, "edit");
|
|
1103
|
+
clearRow(currentEditingRow.id);
|
|
1104
|
+
saveSucceeded = true;
|
|
1105
|
+
}
|
|
1106
|
+
if (saveSucceeded) {
|
|
1107
|
+
table2.setEditingRow(row2);
|
|
1108
|
+
setDisableNextEdit(true);
|
|
1109
|
+
}
|
|
1110
|
+
})();
|
|
1111
|
+
return;
|
|
1112
|
+
}
|
|
1113
|
+
if (!isCurrentlyEditing && !editingRowId) {
|
|
1114
|
+
table2.setEditingRow(row2);
|
|
1115
|
+
setDisableNextEdit(true);
|
|
1116
|
+
}
|
|
1117
|
+
},
|
|
1118
|
+
onKeyUp: (e) => {
|
|
1119
|
+
var _a;
|
|
1120
|
+
const creatingRowId = ((_a = table2.getState().creatingRow) == null ? void 0 : _a.id) ?? null;
|
|
1121
|
+
if (e.key === "Escape") {
|
|
1122
|
+
if (creatingRowId === row2.id) {
|
|
1123
|
+
clearRow("mrt-row-create");
|
|
1124
|
+
table2.setCreatingRow(null);
|
|
1125
|
+
} else {
|
|
1126
|
+
const editingRow = table2.getState().editingRow;
|
|
1127
|
+
if (editingRow) {
|
|
1128
|
+
clearRow(editingRow.id);
|
|
1129
|
+
table2.setEditingRow(null);
|
|
1130
|
+
}
|
|
1131
|
+
}
|
|
1132
|
+
setDisableNextEdit(false);
|
|
1133
|
+
setValidationErrors({});
|
|
1134
|
+
e.preventDefault();
|
|
1135
|
+
e.stopPropagation();
|
|
1136
|
+
return;
|
|
1137
|
+
}
|
|
1138
|
+
if (e.key === "Enter") {
|
|
1139
|
+
setTimeout(() => {
|
|
1140
|
+
const currentCreatingRow = table2.getState().creatingRow;
|
|
1141
|
+
const currentEditingRow = table2.getState().editingRow;
|
|
1142
|
+
if (currentCreatingRow) {
|
|
1143
|
+
saveCreatingRow(table2);
|
|
1144
|
+
}
|
|
1145
|
+
if (currentEditingRow) {
|
|
1146
|
+
saveEditingRow(table2);
|
|
1147
|
+
}
|
|
1148
|
+
}, 0);
|
|
1149
|
+
}
|
|
1150
|
+
}
|
|
1151
|
+
}),
|
|
1152
|
+
// Checkbox styling
|
|
1153
|
+
muiSelectCheckboxProps: {
|
|
1154
|
+
sx: {
|
|
1155
|
+
color: "theme.secondary.300",
|
|
1156
|
+
"&.Mui-checked": {
|
|
1157
|
+
color: "theme.primary.600",
|
|
1158
|
+
"&:hover": {
|
|
1159
|
+
color: "theme.primary.500"
|
|
1160
|
+
}
|
|
1161
|
+
},
|
|
1162
|
+
"&.Mui-disabled": {
|
|
1163
|
+
color: "theme.secondary.200"
|
|
1164
|
+
}
|
|
1165
|
+
},
|
|
1166
|
+
icon: /* @__PURE__ */ jsxRuntime.jsx(rectangle.RecgtangleIcon, { sx: { width: 20, height: 20 } }),
|
|
1167
|
+
checkedIcon: /* @__PURE__ */ jsxRuntime.jsx(checkBox.CheckBoxIcon, { sx: { width: 20, height: 20 } })
|
|
1168
|
+
},
|
|
1169
|
+
muiSelectAllCheckboxProps: {
|
|
1170
|
+
sx: {
|
|
1171
|
+
color: "theme.secondary.300",
|
|
1172
|
+
"&.Mui-checked": {
|
|
1173
|
+
color: "theme.primary.600",
|
|
1174
|
+
"&:hover": {
|
|
1175
|
+
color: "theme.primary.500"
|
|
1176
|
+
}
|
|
1177
|
+
},
|
|
1178
|
+
"&.Mui-disabled": {
|
|
1179
|
+
color: "theme.secondary.600"
|
|
1180
|
+
}
|
|
1181
|
+
},
|
|
1182
|
+
icon: /* @__PURE__ */ jsxRuntime.jsx(rectangle.RecgtangleIcon, { sx: { width: 20, height: 20 } }),
|
|
1183
|
+
checkedIcon: /* @__PURE__ */ jsxRuntime.jsx(checkBox.CheckBoxIcon, { sx: { width: 20, height: 20 } })
|
|
1184
|
+
},
|
|
1185
|
+
muiBottomToolbarProps: {
|
|
1186
|
+
sx: {
|
|
1187
|
+
boxShadow: "none",
|
|
1188
|
+
"& .MuiBox-root": {
|
|
1189
|
+
paddingLeft: 0
|
|
1190
|
+
}
|
|
1191
|
+
}
|
|
1192
|
+
},
|
|
1193
|
+
layoutMode: "grid",
|
|
1194
|
+
icons: {
|
|
1195
|
+
DragHandleIcon: () => /* @__PURE__ */ jsxRuntime.jsx(rectangle.RecgtangleIcon, { fontSize: "medium" }),
|
|
1196
|
+
SortIcon: () => /* @__PURE__ */ jsxRuntime.jsx(arrowUpDown.ArrowUpDown, { fontSize: "medium" }),
|
|
1197
|
+
ArrowDownwardIcon: () => /* @__PURE__ */ jsxRuntime.jsx(arrowUpDown.ArrowUpDown, { fontSize: "medium" }),
|
|
1198
|
+
ArrowUpwardIcon: () => /* @__PURE__ */ jsxRuntime.jsx(arrowUpDown.ArrowUpDown, { fontSize: "medium" }),
|
|
1199
|
+
ExpandMoreIcon: () => /* @__PURE__ */ jsxRuntime.jsx(arrowUpDown.ArrowUpDown, { fontSize: "medium" }),
|
|
1200
|
+
ExpandLessIcon: () => /* @__PURE__ */ jsxRuntime.jsx(arrowUpDown.ArrowUpDown, { fontSize: "medium" }),
|
|
1201
|
+
SyncAltIcon: () => /* @__PURE__ */ jsxRuntime.jsx(arrowUpDown.ArrowUpDown, { fontSize: "medium" }),
|
|
1202
|
+
CancelIcon: (props) => /* @__PURE__ */ jsxRuntime.jsx(close.Close, { fontSize: "small", ...props, color: "theme.secondary.1000" })
|
|
1203
|
+
},
|
|
1204
|
+
...rest
|
|
1205
|
+
});
|
|
1206
|
+
React.useEffect(() => {
|
|
1207
|
+
var _a, _b;
|
|
1208
|
+
if (enableRowSelection) {
|
|
1209
|
+
if ((_a = table == null ? void 0 : table.getSelectedRowModel()) == null ? void 0 : _a.rows) {
|
|
1210
|
+
SetSelectedRowId == null ? void 0 : SetSelectedRowId((_b = table == null ? void 0 : table.getSelectedRowModel()) == null ? void 0 : _b.rows);
|
|
1211
|
+
}
|
|
1212
|
+
}
|
|
1213
|
+
}, [enableRowSelection]);
|
|
1214
|
+
React.useEffect(() => {
|
|
1215
|
+
if (onSelectRow) {
|
|
1216
|
+
if (rest == null ? void 0 : rest.enableExpanding) {
|
|
1217
|
+
const selectedRowModels = [];
|
|
1218
|
+
const selection = table.getState().rowSelection;
|
|
1219
|
+
const traverseRows = (rows2, parentKey = "") => {
|
|
1220
|
+
rows2.forEach((row2, index) => {
|
|
1221
|
+
var _a;
|
|
1222
|
+
const rowKey = parentKey ? `${parentKey}.${index}` : `${row2.id}`;
|
|
1223
|
+
if (selection[rowKey]) {
|
|
1224
|
+
selectedRowModels.push(row2);
|
|
1225
|
+
}
|
|
1226
|
+
if ((_a = row2.subRows) == null ? void 0 : _a.length) {
|
|
1227
|
+
traverseRows(row2.subRows, rowKey);
|
|
1228
|
+
}
|
|
1229
|
+
});
|
|
1230
|
+
};
|
|
1231
|
+
traverseRows(table.getRowModel().rows);
|
|
1232
|
+
onSelectRow(selectedRowModels, rowSelection);
|
|
1233
|
+
} else {
|
|
1234
|
+
onSelectRow(table.getSelectedRowModel().rows, rowSelection);
|
|
1235
|
+
}
|
|
1236
|
+
}
|
|
1237
|
+
}, [rowSelection, table]);
|
|
1238
|
+
React.useEffect(() => {
|
|
1239
|
+
if (isResetRow) {
|
|
1240
|
+
table == null ? void 0 : table.resetRowSelection();
|
|
1241
|
+
}
|
|
1242
|
+
}, [isResetRow, table]);
|
|
1243
|
+
const hasAutoEditedFirstRow = React.useRef(false);
|
|
1244
|
+
React.useEffect(() => {
|
|
1245
|
+
if (enableFirstRowEdit && !hasAutoEditedFirstRow.current && (rows == null ? void 0 : rows.length) > 0) {
|
|
1246
|
+
const tableRows = table.getRowModel().rows;
|
|
1247
|
+
const firstRow = tableRows[0];
|
|
1248
|
+
if (firstRow) {
|
|
1249
|
+
hasAutoEditedFirstRow.current = true;
|
|
1250
|
+
if (!firstRow._valuesCache || Object.keys(firstRow._valuesCache).length === 0) {
|
|
1251
|
+
firstRow._valuesCache = { ...firstRow.original };
|
|
1252
|
+
}
|
|
1253
|
+
table.setEditingRow(firstRow);
|
|
1254
|
+
setDisableNextEdit(true);
|
|
1255
|
+
}
|
|
1256
|
+
}
|
|
1257
|
+
}, [enableFirstRowEdit, rows, table]);
|
|
1258
|
+
const findOpenOverlay = React.useCallback(() => {
|
|
1259
|
+
const candidates = document.querySelectorAll(
|
|
1260
|
+
".MuiModal-root, .MuiPopover-root, .MuiAutocomplete-popper, .MuiPickersPopper-root"
|
|
1261
|
+
);
|
|
1262
|
+
for (const el of Array.from(candidates)) {
|
|
1263
|
+
if (el.classList.contains("MuiModal-hidden")) continue;
|
|
1264
|
+
if (el.getAttribute("aria-hidden") === "true") continue;
|
|
1265
|
+
return el;
|
|
1266
|
+
}
|
|
1267
|
+
return null;
|
|
1268
|
+
}, []);
|
|
1269
|
+
const commitInFlightRef = React.useRef(null);
|
|
1270
|
+
const commitPendingRowNow = React.useCallback(() => {
|
|
1271
|
+
if (commitInFlightRef.current) return commitInFlightRef.current;
|
|
1272
|
+
const run = async () => {
|
|
1273
|
+
var _a, _b;
|
|
1274
|
+
if (!table) return;
|
|
1275
|
+
if (findOpenOverlay()) return;
|
|
1276
|
+
const currentEditingRow = (_a = table.getState()) == null ? void 0 : _a.editingRow;
|
|
1277
|
+
const currentCreatingRow = (_b = table.getState()) == null ? void 0 : _b.creatingRow;
|
|
1278
|
+
if (currentCreatingRow) {
|
|
1279
|
+
const values = getRowValues(currentCreatingRow);
|
|
1280
|
+
const hasAnyValue = Object.entries(values).some(([k, v]) => {
|
|
1281
|
+
if (k === "id" || k === "mrt-row-actions" || k.startsWith("_")) return false;
|
|
1282
|
+
return v !== null && v !== void 0 && String(v).trim() !== "";
|
|
1283
|
+
});
|
|
1284
|
+
if (!hasAnyValue) {
|
|
1285
|
+
clearRow("mrt-row-create");
|
|
1286
|
+
table.setCreatingRow(null);
|
|
1287
|
+
setDisableNextEdit(false);
|
|
1288
|
+
setValidationErrors({});
|
|
1289
|
+
return;
|
|
1290
|
+
}
|
|
1291
|
+
await handleSaveRow({ row: currentCreatingRow, values, table }, "create");
|
|
1292
|
+
clearRow("mrt-row-create");
|
|
1293
|
+
setDisableNextEdit(false);
|
|
1294
|
+
return;
|
|
1295
|
+
}
|
|
1296
|
+
if (currentEditingRow) {
|
|
1297
|
+
const values = getRowValues(currentEditingRow);
|
|
1298
|
+
await handleSaveRow({ row: currentEditingRow, values, table }, "edit");
|
|
1299
|
+
clearRow(currentEditingRow.id);
|
|
1300
|
+
setDisableNextEdit(false);
|
|
1301
|
+
}
|
|
1302
|
+
};
|
|
1303
|
+
const promise = run().finally(() => {
|
|
1304
|
+
commitInFlightRef.current = null;
|
|
1305
|
+
});
|
|
1306
|
+
commitInFlightRef.current = promise;
|
|
1307
|
+
return promise;
|
|
1308
|
+
}, [table, findOpenOverlay, getRowValues, handleSaveRow, clearRow]);
|
|
1309
|
+
React.useImperativeHandle(ref, () => ({
|
|
1310
|
+
commitPendingRow: commitPendingRowNow
|
|
1311
|
+
}), [commitPendingRowNow]);
|
|
1312
|
+
React.useEffect(() => {
|
|
1313
|
+
pendingRowCommitRegistry.add(commitPendingRowNow);
|
|
1314
|
+
return () => {
|
|
1315
|
+
pendingRowCommitRegistry.delete(commitPendingRowNow);
|
|
1316
|
+
};
|
|
1317
|
+
}, [commitPendingRowNow]);
|
|
1318
|
+
React.useEffect(() => {
|
|
1319
|
+
if (!table) return;
|
|
1320
|
+
let saveTimer;
|
|
1321
|
+
const handleClick = (e) => {
|
|
1322
|
+
var _a, _b;
|
|
1323
|
+
const editingRow = (_a = table.getState()) == null ? void 0 : _a.editingRow;
|
|
1324
|
+
const creatingRow = (_b = table.getState()) == null ? void 0 : _b.creatingRow;
|
|
1325
|
+
if (!editingRow && !creatingRow) return;
|
|
1326
|
+
const target = e.target;
|
|
1327
|
+
if (!target) return;
|
|
1328
|
+
const isInsideTable = tableContainerRef.current ? tableContainerRef.current.contains(target) : Boolean(target.closest(".MRT-TableWrapper"));
|
|
1329
|
+
if (isInsideTable) return;
|
|
1330
|
+
const isDropdownPortal = Boolean(
|
|
1331
|
+
target.closest(
|
|
1332
|
+
'.MuiModal-root, .MuiPopover-root, .MuiAutocomplete-popper, .MuiPickersPopper-root, .MuiMenu-root, .MuiDialog-root, .MuiBackdrop-root, [role="listbox"], [role="dialog"], [role="presentation"]'
|
|
1333
|
+
)
|
|
1334
|
+
);
|
|
1335
|
+
if (isDropdownPortal) return;
|
|
1336
|
+
if (findOpenOverlay()) return;
|
|
1337
|
+
if (saveTimer) {
|
|
1338
|
+
clearTimeout(saveTimer);
|
|
1339
|
+
}
|
|
1340
|
+
saveTimer = setTimeout(() => {
|
|
1341
|
+
commitPendingRowNow();
|
|
1342
|
+
}, 50);
|
|
1343
|
+
};
|
|
1344
|
+
document.addEventListener("click", handleClick, true);
|
|
1345
|
+
return () => {
|
|
1346
|
+
document.removeEventListener("click", handleClick, true);
|
|
1347
|
+
if (saveTimer) {
|
|
1348
|
+
clearTimeout(saveTimer);
|
|
1349
|
+
}
|
|
1350
|
+
};
|
|
1351
|
+
}, [table, findOpenOverlay, commitPendingRowNow]);
|
|
1352
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(TableWrapper, { ref: tableContainerRef, className: "MRT-TableWrapper custom-table", children: [
|
|
1353
|
+
/* @__PURE__ */ jsxRuntime.jsx(materialReactTable.MaterialReactTable, { table }),
|
|
1354
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1355
|
+
menu.Menu,
|
|
1356
|
+
{
|
|
1357
|
+
anchorEl,
|
|
1358
|
+
open: Boolean(anchorEl),
|
|
1359
|
+
onClose: handleHeaderClose,
|
|
1360
|
+
className: "add-role-drp",
|
|
1361
|
+
children: popUpShow ? /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
1362
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1363
|
+
material.MenuItem,
|
|
1364
|
+
{
|
|
1365
|
+
onClick: handleBackButtonClick,
|
|
1366
|
+
className: "role-drp-list add-column-title",
|
|
1367
|
+
children: [
|
|
1368
|
+
/* @__PURE__ */ jsxRuntime.jsx(material.ListItemIcon, { className: "add-icon", children: /* @__PURE__ */ jsxRuntime.jsx(ChevronLeftIcon, {}) }),
|
|
1369
|
+
/* @__PURE__ */ jsxRuntime.jsx(material.ListItemText, { className: "title", children: t("common.addColumn_label") })
|
|
1370
|
+
]
|
|
1371
|
+
}
|
|
1372
|
+
),
|
|
1373
|
+
/* @__PURE__ */ jsxRuntime.jsx(material.Divider, { flexItem: true, sx: { mt: "0.25rem !important", mb: "0.25rem !important" } }),
|
|
1374
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "searchbar-box-list", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1375
|
+
searchBar.SearchBar,
|
|
1376
|
+
{
|
|
1377
|
+
placeholder: "Search User",
|
|
1378
|
+
handleSearch: (e) => handleSearchEvent(e)
|
|
1379
|
+
}
|
|
1380
|
+
) }),
|
|
1381
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "all-attribute-title", children: /* @__PURE__ */ jsxRuntime.jsx(typography.Typography, { variant: "body2", color: "text.secondary", children: t("common.allAttributes_label") }) }),
|
|
1382
|
+
filteredOptions.map((column) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1383
|
+
material.MenuItem,
|
|
1384
|
+
{
|
|
1385
|
+
onClick: () => handleAddColumn(column),
|
|
1386
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(typography.Typography, { color: "theme.secondary.1000", type: "s3", children: column.header })
|
|
1387
|
+
},
|
|
1388
|
+
column.accessorKey
|
|
1389
|
+
)),
|
|
1390
|
+
/* @__PURE__ */ jsxRuntime.jsx(material.Divider, { flexItem: true, sx: { mt: "0.25rem !important", mb: "0.25rem !important" } }),
|
|
1391
|
+
enableAddCustomField && /* @__PURE__ */ jsxRuntime.jsxs(material.MenuItem, { onClick: handleCustomAddColumn, className: "role-drp-list", children: [
|
|
1392
|
+
/* @__PURE__ */ jsxRuntime.jsx(material.ListItemIcon, { className: "add-icon", children: /* @__PURE__ */ jsxRuntime.jsx("img", { src: images.default.common.addIcon, alt: "Add Icon" }) }),
|
|
1393
|
+
/* @__PURE__ */ jsxRuntime.jsx(material.ListItemText, { className: "title", children: t("common.addCustomField_label") })
|
|
1394
|
+
] })
|
|
1395
|
+
] }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1396
|
+
visibleColumns.map((column) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1397
|
+
material.MenuItem,
|
|
1398
|
+
{
|
|
1399
|
+
onClick: () => handleVisibleColumn(column),
|
|
1400
|
+
className: "role-drp-list",
|
|
1401
|
+
children: [
|
|
1402
|
+
/* @__PURE__ */ jsxRuntime.jsx(material.ListItemIcon, { className: "add-icon", children: /* @__PURE__ */ jsxRuntime.jsx("img", { src: images.default.common.dotsIcon, alt: "Add Icon" }) }),
|
|
1403
|
+
/* @__PURE__ */ jsxRuntime.jsx(material.ListItemText, { className: "title", children: column.header }),
|
|
1404
|
+
/* @__PURE__ */ jsxRuntime.jsx(material.ListItemIcon, { className: "eye-icon", children: /* @__PURE__ */ jsxRuntime.jsx("img", { src: images.default.common.eyeIcon, alt: "Eye Icon" }) })
|
|
1405
|
+
]
|
|
1406
|
+
},
|
|
1407
|
+
column.accessorKey
|
|
1408
|
+
)),
|
|
1409
|
+
/* @__PURE__ */ jsxRuntime.jsx(material.Divider, { flexItem: true, sx: { mt: "0.25rem !important", mb: "0.25rem !important" } }),
|
|
1410
|
+
/* @__PURE__ */ jsxRuntime.jsxs(material.MenuItem, { onClick: handleAddButtonClick, className: "role-drp-list", children: [
|
|
1411
|
+
/* @__PURE__ */ jsxRuntime.jsx(material.ListItemIcon, { className: "add-icon", children: /* @__PURE__ */ jsxRuntime.jsx("img", { src: images.default.common.addIcon, alt: "Add Icon" }) }),
|
|
1412
|
+
/* @__PURE__ */ jsxRuntime.jsx(material.ListItemText, { className: "title", children: t("common.addColumn_label") }),
|
|
1413
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1414
|
+
typography.Typography,
|
|
1415
|
+
{
|
|
1416
|
+
variant: "body2",
|
|
1417
|
+
color: "text.secondary",
|
|
1418
|
+
className: "eye-icon",
|
|
1419
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ChevronRightIcon, { sx: { fontSize: "1.25rem !important" } })
|
|
1420
|
+
}
|
|
1421
|
+
)
|
|
1422
|
+
] })
|
|
1423
|
+
] })
|
|
1424
|
+
}
|
|
1425
|
+
),
|
|
1426
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1427
|
+
menu.Menu,
|
|
1428
|
+
{
|
|
1429
|
+
anchorEl: rowAnchorEl,
|
|
1430
|
+
open: Boolean(rowAnchorEl),
|
|
1431
|
+
onClose: handleActionsClose,
|
|
1432
|
+
children: [
|
|
1433
|
+
rowActionMenu == null ? void 0 : rowActionMenu.map((option) => {
|
|
1434
|
+
var _a, _b;
|
|
1435
|
+
if (option.label === "Move" && ((row == null ? void 0 : row.is_directory) === true || (row == null ? void 0 : row.is_directory) === 1) || option.label === "Download" && ((row == null ? void 0 : row.is_directory) === true || (row == null ? void 0 : row.is_directory) === 1 || ((_a = row == null ? void 0 : row.drive) == null ? void 0 : _a.is_directory) === true || ((_b = row == null ? void 0 : row.drive) == null ? void 0 : _b.is_directory) === 1)) ;
|
|
1436
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1437
|
+
material.MenuItem,
|
|
1438
|
+
{
|
|
1439
|
+
onClick: async () => {
|
|
1440
|
+
await option.handleAction(row);
|
|
1441
|
+
setRowAnchorEl(null);
|
|
1442
|
+
},
|
|
1443
|
+
disabled: typeof option.disabled === "function" ? option.disabled(row) : Boolean(option.disabled),
|
|
1444
|
+
sx: { alignItems: "center", gap: 0.5 },
|
|
1445
|
+
children: [
|
|
1446
|
+
option == null ? void 0 : option.icon,
|
|
1447
|
+
/* @__PURE__ */ jsxRuntime.jsx(typography.Typography, { type: "s4", color: "inherit", children: typeof option.label === "function" ? option.label(row) : option.label })
|
|
1448
|
+
]
|
|
1449
|
+
}
|
|
1450
|
+
);
|
|
1451
|
+
}),
|
|
1452
|
+
(destructiveActionMenu == null ? void 0 : destructiveActionMenu.length) > 0 && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1453
|
+
/* @__PURE__ */ jsxRuntime.jsx(material.Divider, { flexItem: true, sx: { mt: "0.25rem !important", mb: "0.25rem !important" } }),
|
|
1454
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "dropdown-inner--DestructiveHeader", children: destructiveActionMenu == null ? void 0 : destructiveActionMenu.map((option) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1455
|
+
material.MenuItem,
|
|
1456
|
+
{
|
|
1457
|
+
onClick: () => {
|
|
1458
|
+
option.handleAction(row);
|
|
1459
|
+
setRowAnchorEl(null);
|
|
1460
|
+
},
|
|
1461
|
+
className: "dropdown-inner--DestructiveActions",
|
|
1462
|
+
disabled: typeof option.disabled === "function" ? option.disabled(row) : Boolean(option.disabled),
|
|
1463
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(typography.Typography, { type: "s4", color: "inherit", children: typeof option.label === "function" ? option.label(row) : option.label })
|
|
1464
|
+
}
|
|
1465
|
+
)) })
|
|
1466
|
+
] })
|
|
1467
|
+
]
|
|
1468
|
+
}
|
|
1469
|
+
),
|
|
1470
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1471
|
+
confirmModal.ConfirmPopUp,
|
|
1472
|
+
{
|
|
1473
|
+
open: Boolean(rowToDelete),
|
|
1474
|
+
onClose: () => setRowToDelete(null),
|
|
1475
|
+
onConfirm: () => handleRowDelete(),
|
|
1476
|
+
title: "Delete Item",
|
|
1477
|
+
description: `Are you sure you want to delete entry ?`,
|
|
1478
|
+
loading: isDeletingRow
|
|
1479
|
+
}
|
|
1480
|
+
)
|
|
1481
|
+
] });
|
|
1482
|
+
}));
|
|
1483
|
+
exports.MaterialEditableTable = MaterialEditableTable;
|
|
1484
|
+
exports.commitAllPendingTableRows = commitAllPendingTableRows;
|
|
1485
|
+
//# sourceMappingURL=material-editable-table-DvOXRsag.js.map
|