@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,200 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
3
|
+
const React = require("react");
|
|
4
|
+
const material = require("@mui/material");
|
|
5
|
+
const appbar = require("./appbar-Dt_exHJ3.js");
|
|
6
|
+
const sidebar = require("./sidebar-DQ3VIPSE.js");
|
|
7
|
+
const activityArea = require("./activityArea-C9-Nfhjc.js");
|
|
8
|
+
const chatBot = require("./chat-bot-BIXoGUj-.js");
|
|
9
|
+
const mui_constants = require("./mui.constants-CJEIUmWO.js");
|
|
10
|
+
const runtime = require("@erpsquad/common/runtime");
|
|
11
|
+
const api = require("./api-DwmixHAO.js");
|
|
12
|
+
const api$1 = require("./api-BNpPd9ZI.js");
|
|
13
|
+
const reactRouterDom = require("react-router-dom");
|
|
14
|
+
const moduleSkeleton = require("./module-skeleton-B3t-SF2a.js");
|
|
15
|
+
const DRAWER_STATE_KEY = "_is_drawer_open";
|
|
16
|
+
const SidebarLayout = (props) => {
|
|
17
|
+
const theme = material.useTheme();
|
|
18
|
+
const { currentLanguage } = runtime.useLanguage();
|
|
19
|
+
const isRtl = React.useMemo(
|
|
20
|
+
() => (currentLanguage == null ? void 0 : currentLanguage.direction) === "rtl",
|
|
21
|
+
[currentLanguage]
|
|
22
|
+
);
|
|
23
|
+
const [forcedOpen, setForcedOpen] = React.useState(true);
|
|
24
|
+
const [hoverOpen, setHoverOpen] = React.useState(false);
|
|
25
|
+
const [isInitialized, setIsInitialized] = React.useState(false);
|
|
26
|
+
const location = reactRouterDom.useLocation();
|
|
27
|
+
const curPathName = React.useMemo(() => location.pathname, [location.pathname]);
|
|
28
|
+
const isDrawerOpen = forcedOpen || !forcedOpen && hoverOpen;
|
|
29
|
+
const handleDrawerOpen = React.useCallback(() => {
|
|
30
|
+
setForcedOpen(true);
|
|
31
|
+
setHoverOpen(false);
|
|
32
|
+
try {
|
|
33
|
+
window.localStorage.setItem(DRAWER_STATE_KEY, "true");
|
|
34
|
+
} catch (error) {
|
|
35
|
+
console.warn("Failed to save drawer state to localStorage:", error);
|
|
36
|
+
}
|
|
37
|
+
}, []);
|
|
38
|
+
const handleDrawerClose = React.useCallback(() => {
|
|
39
|
+
setForcedOpen(false);
|
|
40
|
+
window.localStorage.setItem("_is_drawer_open", "false");
|
|
41
|
+
}, []);
|
|
42
|
+
const [wipSettingsData, setWipSettingsData] = React.useState(null);
|
|
43
|
+
const getSettings = React.useCallback(async () => {
|
|
44
|
+
var _a, _b;
|
|
45
|
+
const tokenData = api.getToken();
|
|
46
|
+
const apiParams = {
|
|
47
|
+
"x-token": tokenData["x-token"],
|
|
48
|
+
"x-timezone": String(tokenData["x-timezone"])
|
|
49
|
+
};
|
|
50
|
+
const response = await api$1.getV1Settings(apiParams);
|
|
51
|
+
const data = response && ((_b = (_a = response == null ? void 0 : response.data) == null ? void 0 : _a.settings) == null ? void 0 : _b[0]) || null;
|
|
52
|
+
setWipSettingsData(data);
|
|
53
|
+
localStorage.setItem("wip_settings_data", JSON.stringify(data));
|
|
54
|
+
}, []);
|
|
55
|
+
React.useEffect(() => {
|
|
56
|
+
if (curPathName == null ? void 0 : curPathName.includes("manufacturing")) {
|
|
57
|
+
getSettings();
|
|
58
|
+
}
|
|
59
|
+
}, [getSettings, curPathName]);
|
|
60
|
+
const [manufacturingSubmenu, setManufacturingSubmenu] = React.useState(
|
|
61
|
+
props.menu
|
|
62
|
+
);
|
|
63
|
+
React.useEffect(() => {
|
|
64
|
+
if (wipSettingsData && Array.isArray(props == null ? void 0 : props.menu)) {
|
|
65
|
+
const _new = props.menu.filter((item) => {
|
|
66
|
+
if (!(wipSettingsData == null ? void 0 : wipSettingsData.enable_production_planning)) {
|
|
67
|
+
return item.label !== "Plans";
|
|
68
|
+
} else {
|
|
69
|
+
return item;
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
setManufacturingSubmenu(_new);
|
|
73
|
+
}
|
|
74
|
+
}, [wipSettingsData, props.menu]);
|
|
75
|
+
const handleMouseEnter = () => {
|
|
76
|
+
if (!forcedOpen) {
|
|
77
|
+
window.localStorage.setItem(DRAWER_STATE_KEY, "true");
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
const handleMouseLeave = React.useCallback(() => {
|
|
81
|
+
if (!forcedOpen && isInitialized) {
|
|
82
|
+
setHoverOpen(false);
|
|
83
|
+
window.localStorage.setItem(DRAWER_STATE_KEY, "false");
|
|
84
|
+
}
|
|
85
|
+
}, [forcedOpen, isInitialized]);
|
|
86
|
+
const toggleDrawer = React.useCallback(() => {
|
|
87
|
+
if (forcedOpen) {
|
|
88
|
+
handleDrawerClose();
|
|
89
|
+
} else {
|
|
90
|
+
handleDrawerOpen();
|
|
91
|
+
}
|
|
92
|
+
}, [forcedOpen, handleDrawerClose, handleDrawerOpen]);
|
|
93
|
+
React.useEffect(() => {
|
|
94
|
+
const initializeDrawerState = () => {
|
|
95
|
+
try {
|
|
96
|
+
if (typeof window !== "undefined" && window.localStorage) {
|
|
97
|
+
const savedState = window.localStorage.getItem(DRAWER_STATE_KEY);
|
|
98
|
+
const shouldBeOpen = savedState === "true";
|
|
99
|
+
setForcedOpen(shouldBeOpen);
|
|
100
|
+
setHoverOpen(false);
|
|
101
|
+
setIsInitialized(true);
|
|
102
|
+
} else {
|
|
103
|
+
setForcedOpen(true);
|
|
104
|
+
setIsInitialized(true);
|
|
105
|
+
}
|
|
106
|
+
} catch (error) {
|
|
107
|
+
console.warn("Failed to read drawer state from localStorage:", error);
|
|
108
|
+
setForcedOpen(true);
|
|
109
|
+
setIsInitialized(true);
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
initializeDrawerState();
|
|
113
|
+
}, []);
|
|
114
|
+
React.useEffect(() => {
|
|
115
|
+
const handleWindowFocus = () => {
|
|
116
|
+
try {
|
|
117
|
+
if (typeof window !== "undefined" && window.localStorage) {
|
|
118
|
+
const savedState = window.localStorage.getItem(DRAWER_STATE_KEY);
|
|
119
|
+
const shouldBeOpen = savedState === "true";
|
|
120
|
+
if (shouldBeOpen !== forcedOpen) {
|
|
121
|
+
setForcedOpen(shouldBeOpen);
|
|
122
|
+
setHoverOpen(false);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
} catch (error) {
|
|
126
|
+
console.warn("Failed to sync drawer state on window focus:", error);
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
window.addEventListener("focus", handleWindowFocus);
|
|
130
|
+
return () => {
|
|
131
|
+
window.removeEventListener("focus", handleWindowFocus);
|
|
132
|
+
};
|
|
133
|
+
}, [forcedOpen]);
|
|
134
|
+
if (!isInitialized) {
|
|
135
|
+
return (
|
|
136
|
+
// <Box
|
|
137
|
+
// sx={{
|
|
138
|
+
// display: 'flex',
|
|
139
|
+
// minHeight: '100vh',
|
|
140
|
+
// alignItems: 'center',
|
|
141
|
+
// justifyContent: 'center'
|
|
142
|
+
// }}>
|
|
143
|
+
/* @__PURE__ */ jsxRuntime.jsx(moduleSkeleton.ModuleSkeleton, {})
|
|
144
|
+
);
|
|
145
|
+
}
|
|
146
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
147
|
+
material.Box,
|
|
148
|
+
{
|
|
149
|
+
sx: {
|
|
150
|
+
display: "flex",
|
|
151
|
+
minHeight: "100vh",
|
|
152
|
+
direction: isRtl ? "rtl" : "ltr"
|
|
153
|
+
},
|
|
154
|
+
children: [
|
|
155
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
156
|
+
appbar.AppBarWrapper,
|
|
157
|
+
{
|
|
158
|
+
open: forcedOpen,
|
|
159
|
+
handleDrawerOpen,
|
|
160
|
+
handleDrawerClose,
|
|
161
|
+
toggleDrawer,
|
|
162
|
+
width: mui_constants.drawerWidth,
|
|
163
|
+
forcedOpen,
|
|
164
|
+
hoverOpen
|
|
165
|
+
}
|
|
166
|
+
),
|
|
167
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
168
|
+
sidebar.Sidebar,
|
|
169
|
+
{
|
|
170
|
+
open: forcedOpen,
|
|
171
|
+
forcedOpen,
|
|
172
|
+
hoverOpen,
|
|
173
|
+
handleDrawerClose,
|
|
174
|
+
handleDrawerOpen,
|
|
175
|
+
toggleDrawer,
|
|
176
|
+
width: mui_constants.drawerWidth,
|
|
177
|
+
theme,
|
|
178
|
+
menu: manufacturingSubmenu,
|
|
179
|
+
handleMouseEnter,
|
|
180
|
+
handleMouseLeave,
|
|
181
|
+
isInitialized,
|
|
182
|
+
dashboardPath: props.dashboardPath
|
|
183
|
+
}
|
|
184
|
+
),
|
|
185
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
186
|
+
activityArea.ActivityArea,
|
|
187
|
+
{
|
|
188
|
+
isDrawerOpen,
|
|
189
|
+
drawerWidth: mui_constants.drawerWidth,
|
|
190
|
+
forcedOpen,
|
|
191
|
+
children: props.children
|
|
192
|
+
}
|
|
193
|
+
),
|
|
194
|
+
/* @__PURE__ */ jsxRuntime.jsx(chatBot.ChatBot, {})
|
|
195
|
+
]
|
|
196
|
+
}
|
|
197
|
+
);
|
|
198
|
+
};
|
|
199
|
+
exports.SidebarLayout = SidebarLayout;
|
|
200
|
+
//# sourceMappingURL=sidebarScreen-DgpLalyG.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sidebarScreen-DgpLalyG.js","sources":["../../src/layout/sidebarScreen/sidebarScreen.tsx"],"sourcesContent":["import { useEffect, useState, useCallback, useMemo } from 'react';\n\nimport { useTheme } from '@mui/material';\nimport { Box } from '@mui/material';\n\nimport AppBar from '../../components/appbar/appbar';\nimport SideBar from '../../components/sidebar/sidebar';\nimport ActivityArea from '../../components/activityArea/activityArea';\nimport ChatBot from '../../components/chat-bot/chat-bot';\n\nimport drawerWidth from '../../constants/mui.constants';\n// const drawerWidth = 240;\nimport { useLanguage } from '@erpsquad/common/runtime';\nimport { getToken } from '@/utils';\nimport { getV1Settings } from '../../api-client/api.manufacturing/api';\nimport { useLocation } from 'react-router-dom';\nimport { ModuleSkeleton } from '../../components/loaders/module-skeleton';\n\n// Local storage key for drawer state\nconst DRAWER_STATE_KEY = '_is_drawer_open';\n\n// Interface for better type safety\nexport interface ISidebarLayoutProps {\n\tmenu: any[];\n\tchildren: React.ReactNode;\n\tdashboardPath?: string;\n}\n\nexport const SidebarLayout = (props: ISidebarLayoutProps) => {\n\tconst theme = useTheme();\n\tconst { currentLanguage } = useLanguage();\n\tconst isRtl = useMemo(\n\t\t() => currentLanguage?.direction === 'rtl',\n\t\t[currentLanguage]\n\t);\n\t// Enhanced state management\n\tconst [forcedOpen, setForcedOpen] = useState(true);\n\tconst [hoverOpen, setHoverOpen] = useState(false);\n\tconst [isInitialized, setIsInitialized] = useState(false);\n\tconst location = useLocation();\n\tconst curPathName = useMemo(() => location.pathname, [location.pathname])\n\n\t// Memoized computed state for actual drawer open status\n\tconst isDrawerOpen = forcedOpen || (!forcedOpen && hoverOpen);\n\n\t// Enhanced drawer control functions with better state management\n\tconst handleDrawerOpen = useCallback(() => {\n\t\tsetForcedOpen(true);\n\t\tsetHoverOpen(false); // Clear hover state when forcing open\n\t\ttry {\n\t\t\twindow.localStorage.setItem(DRAWER_STATE_KEY, 'true');\n\t\t} catch (error) {\n\t\t\tconsole.warn('Failed to save drawer state to localStorage:', error);\n\t\t}\n\t}, []);\n\n\tconst handleDrawerClose = useCallback(() => {\n\t\tsetForcedOpen(false);\n\t\twindow.localStorage.setItem('_is_drawer_open', 'false');\n\t}, []);\n\n\tconst [wipSettingsData, setWipSettingsData] = useState<any>(null);\n\n\tconst getSettings = useCallback(async () => {\n\t\t// getToken returns { \"x-token\": string; \"x-timezone\": number }, but API expects string type for \"x-timezone\"\n\t\tconst tokenData = getToken();\n\t\tconst apiParams = {\n\t\t\t'x-token': tokenData['x-token'],\n\t\t\t'x-timezone': String(tokenData['x-timezone'])\n\t\t};\n\t\tconst response = await getV1Settings(apiParams);\n\t\t// The \"data\" property may not exist on GetV1SettingsResponses, so check existence safely\n\t\tconst data = (response && (response as any)?.data?.settings?.[0]) || null;\n\t\tsetWipSettingsData(data);\n\t\tlocalStorage.setItem('wip_settings_data', JSON.stringify(data));\n\t}, []);\n\tuseEffect(() => {\n\t\tif(curPathName?.includes('manufacturing')) {\n\t\t\tgetSettings();\n\t\t}\n\t}, [getSettings, curPathName]);\n\n\tconst [manufacturingSubmenu, setManufacturingSubmenu] = useState<any>(\n\t\tprops.menu\n\t);\n\n\tuseEffect(() => {\n\t\tif (wipSettingsData && Array.isArray(props?.menu)) {\n\t\t\tconst _new = props.menu.filter((item) => {\n\t\t\t\tif (!wipSettingsData?.enable_production_planning) {\n\t\t\t\t\treturn item.label !== 'Plans';\n\t\t\t\t} else {\n\t\t\t\t\treturn item;\n\t\t\t\t}\n\t\t\t});\n\t\t\tsetManufacturingSubmenu(_new);\n\t\t}\n\t}, [wipSettingsData, props.menu]);\n\t// const module_type = '';\n\n\tconst handleMouseEnter = () => {\n\t\tif (!forcedOpen) {\n\t\t\t// setOpen(true);\n\t\t\twindow.localStorage.setItem(DRAWER_STATE_KEY, 'true');\n\t\t}\n\t};\n\n\tconst handleMouseLeave = useCallback(() => {\n\t\tif (!forcedOpen && isInitialized) {\n\t\t\tsetHoverOpen(false);\n\t\t\twindow.localStorage.setItem(DRAWER_STATE_KEY, 'false');\n\t\t}\n\t}, [forcedOpen, isInitialized]);\n\n\t// Toggle function for programmatic control\n\tconst toggleDrawer = useCallback(() => {\n\t\tif (forcedOpen) {\n\t\t\thandleDrawerClose();\n\t\t} else {\n\t\t\thandleDrawerOpen();\n\t\t}\n\t}, [forcedOpen, handleDrawerClose, handleDrawerOpen]);\n\n\t// Enhanced initialization with error handling\n\tuseEffect(() => {\n\t\tconst initializeDrawerState = () => {\n\t\t\ttry {\n\t\t\t\tif (typeof window !== 'undefined' && window.localStorage) {\n\t\t\t\t\tconst savedState = window.localStorage.getItem(DRAWER_STATE_KEY);\n\t\t\t\t\tconst shouldBeOpen = savedState === 'true';\n\n\t\t\t\t\tsetForcedOpen(shouldBeOpen);\n\t\t\t\t\tsetHoverOpen(false); // Ensure hover state is reset\n\t\t\t\t\tsetIsInitialized(true);\n\t\t\t\t} else {\n\t\t\t\t\t// Fallback for environments without localStorage\n\t\t\t\t\tsetForcedOpen(true);\n\t\t\t\t\tsetIsInitialized(true);\n\t\t\t\t}\n\t\t\t} catch (error) {\n\t\t\t\tconsole.warn('Failed to read drawer state from localStorage:', error);\n\t\t\t\t// Fallback to default state\n\t\t\t\tsetForcedOpen(true);\n\t\t\t\tsetIsInitialized(true);\n\t\t\t}\n\t\t};\n\n\t\tinitializeDrawerState();\n\t}, []);\n\n\t// Handle window focus to sync state across tabs\n\tuseEffect(() => {\n\t\tconst handleWindowFocus = () => {\n\t\t\ttry {\n\t\t\t\tif (typeof window !== 'undefined' && window.localStorage) {\n\t\t\t\t\tconst savedState = window.localStorage.getItem(DRAWER_STATE_KEY);\n\t\t\t\t\tconst shouldBeOpen = savedState === 'true';\n\n\t\t\t\t\tif (shouldBeOpen !== forcedOpen) {\n\t\t\t\t\t\tsetForcedOpen(shouldBeOpen);\n\t\t\t\t\t\tsetHoverOpen(false);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (error) {\n\t\t\t\tconsole.warn('Failed to sync drawer state on window focus:', error);\n\t\t\t}\n\t\t};\n\n\t\twindow.addEventListener('focus', handleWindowFocus);\n\n\t\treturn () => {\n\t\t\twindow.removeEventListener('focus', handleWindowFocus);\n\t\t};\n\t}, [forcedOpen]);\n\n\t// Prevent rendering until initialization is complete\n\tif (!isInitialized) {\n\t\treturn (\n\t\t\t// <Box\n\t\t\t// \tsx={{\n\t\t\t// \t\tdisplay: 'flex',\n\t\t\t// \t\tminHeight: '100vh',\n\t\t\t// \t\talignItems: 'center',\n\t\t\t// \t\tjustifyContent: 'center'\n\t\t\t// \t}}>\n\t\t\t\t<ModuleSkeleton />\n\t\t\t/* </Box> */\n\t\t);\n\t}\n\n\treturn (\n\t\t<Box\n\t\t\tsx={{\n\t\t\t\tdisplay: 'flex',\n\t\t\t\tminHeight: '100vh',\n\t\t\t\tdirection: isRtl ? 'rtl' : 'ltr'\n\t\t\t}}>\n\t\t\t<AppBar\n\t\t\t\topen={forcedOpen}\n\t\t\t\thandleDrawerOpen={handleDrawerOpen}\n\t\t\t\thandleDrawerClose={handleDrawerClose}\n\t\t\t\ttoggleDrawer={toggleDrawer}\n\t\t\t\twidth={drawerWidth}\n\t\t\t\tforcedOpen={forcedOpen}\n\t\t\t\thoverOpen={hoverOpen}\n\t\t\t/>\n\n\t\t\t<SideBar\n\t\t\t\topen={forcedOpen}\n\t\t\t\tforcedOpen={forcedOpen}\n\t\t\t\thoverOpen={hoverOpen}\n\t\t\t\thandleDrawerClose={handleDrawerClose}\n\t\t\t\thandleDrawerOpen={handleDrawerOpen}\n\t\t\t\ttoggleDrawer={toggleDrawer}\n\t\t\t\twidth={drawerWidth}\n\t\t\t\ttheme={theme}\n\t\t\t\tmenu={manufacturingSubmenu}\n\t\t\t\thandleMouseEnter={handleMouseEnter}\n\t\t\t\thandleMouseLeave={handleMouseLeave}\n\t\t\t\tisInitialized={isInitialized}\n\t\t\t\tdashboardPath={props.dashboardPath}\n\t\t\t/>\n\n\t\t\t<ActivityArea\n\t\t\t\tisDrawerOpen={isDrawerOpen}\n\t\t\t\tdrawerWidth={drawerWidth}\n\t\t\t\tforcedOpen={forcedOpen}>\n\t\t\t\t{props.children}\n\t\t\t</ActivityArea>\n\t\t\t<ChatBot />\n\t\t</Box>\n\t);\n};\n\nexport default SidebarLayout;\n"],"names":["useTheme","useLanguage","useMemo","useState","useLocation","useCallback","getToken","getV1Settings","useEffect","ModuleSkeleton","jsxs","Box","jsx","AppBar","drawerWidth","SideBar","ActivityArea","ChatBot"],"mappings":"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"}
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo, useState, useCallback, useEffect } from "react";
|
|
3
|
+
import { useTheme, Box } from "@mui/material";
|
|
4
|
+
import { A as AppBarWrapper } from "./appbar-B9EKR8QS.esm.js";
|
|
5
|
+
import { S as Sidebar } from "./sidebar-BlK70C6Y.esm.js";
|
|
6
|
+
import { A as ActivityArea } from "./activityArea-BSwK0nxT.esm.js";
|
|
7
|
+
import { C as ChatBot } from "./chat-bot-DURQfOqY.esm.js";
|
|
8
|
+
import { d as drawerWidth } from "./mui.constants-BFBzxaiA.esm.js";
|
|
9
|
+
import { useLanguage } from "@erpsquad/common/runtime";
|
|
10
|
+
import { ab as getToken } from "./api-u1lKzJVv.esm.js";
|
|
11
|
+
import { m as getV1Settings } from "./api-CuStx4qV.esm.js";
|
|
12
|
+
import { useLocation } from "react-router-dom";
|
|
13
|
+
import { M as ModuleSkeleton } from "./module-skeleton-DGYvAX5H.esm.js";
|
|
14
|
+
const DRAWER_STATE_KEY = "_is_drawer_open";
|
|
15
|
+
const SidebarLayout = (props) => {
|
|
16
|
+
const theme = useTheme();
|
|
17
|
+
const { currentLanguage } = useLanguage();
|
|
18
|
+
const isRtl = useMemo(
|
|
19
|
+
() => (currentLanguage == null ? void 0 : currentLanguage.direction) === "rtl",
|
|
20
|
+
[currentLanguage]
|
|
21
|
+
);
|
|
22
|
+
const [forcedOpen, setForcedOpen] = useState(true);
|
|
23
|
+
const [hoverOpen, setHoverOpen] = useState(false);
|
|
24
|
+
const [isInitialized, setIsInitialized] = useState(false);
|
|
25
|
+
const location = useLocation();
|
|
26
|
+
const curPathName = useMemo(() => location.pathname, [location.pathname]);
|
|
27
|
+
const isDrawerOpen = forcedOpen || !forcedOpen && hoverOpen;
|
|
28
|
+
const handleDrawerOpen = useCallback(() => {
|
|
29
|
+
setForcedOpen(true);
|
|
30
|
+
setHoverOpen(false);
|
|
31
|
+
try {
|
|
32
|
+
window.localStorage.setItem(DRAWER_STATE_KEY, "true");
|
|
33
|
+
} catch (error) {
|
|
34
|
+
console.warn("Failed to save drawer state to localStorage:", error);
|
|
35
|
+
}
|
|
36
|
+
}, []);
|
|
37
|
+
const handleDrawerClose = useCallback(() => {
|
|
38
|
+
setForcedOpen(false);
|
|
39
|
+
window.localStorage.setItem("_is_drawer_open", "false");
|
|
40
|
+
}, []);
|
|
41
|
+
const [wipSettingsData, setWipSettingsData] = useState(null);
|
|
42
|
+
const getSettings = useCallback(async () => {
|
|
43
|
+
var _a, _b;
|
|
44
|
+
const tokenData = getToken();
|
|
45
|
+
const apiParams = {
|
|
46
|
+
"x-token": tokenData["x-token"],
|
|
47
|
+
"x-timezone": String(tokenData["x-timezone"])
|
|
48
|
+
};
|
|
49
|
+
const response = await getV1Settings(apiParams);
|
|
50
|
+
const data = response && ((_b = (_a = response == null ? void 0 : response.data) == null ? void 0 : _a.settings) == null ? void 0 : _b[0]) || null;
|
|
51
|
+
setWipSettingsData(data);
|
|
52
|
+
localStorage.setItem("wip_settings_data", JSON.stringify(data));
|
|
53
|
+
}, []);
|
|
54
|
+
useEffect(() => {
|
|
55
|
+
if (curPathName == null ? void 0 : curPathName.includes("manufacturing")) {
|
|
56
|
+
getSettings();
|
|
57
|
+
}
|
|
58
|
+
}, [getSettings, curPathName]);
|
|
59
|
+
const [manufacturingSubmenu, setManufacturingSubmenu] = useState(
|
|
60
|
+
props.menu
|
|
61
|
+
);
|
|
62
|
+
useEffect(() => {
|
|
63
|
+
if (wipSettingsData && Array.isArray(props == null ? void 0 : props.menu)) {
|
|
64
|
+
const _new = props.menu.filter((item) => {
|
|
65
|
+
if (!(wipSettingsData == null ? void 0 : wipSettingsData.enable_production_planning)) {
|
|
66
|
+
return item.label !== "Plans";
|
|
67
|
+
} else {
|
|
68
|
+
return item;
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
setManufacturingSubmenu(_new);
|
|
72
|
+
}
|
|
73
|
+
}, [wipSettingsData, props.menu]);
|
|
74
|
+
const handleMouseEnter = () => {
|
|
75
|
+
if (!forcedOpen) {
|
|
76
|
+
window.localStorage.setItem(DRAWER_STATE_KEY, "true");
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
const handleMouseLeave = useCallback(() => {
|
|
80
|
+
if (!forcedOpen && isInitialized) {
|
|
81
|
+
setHoverOpen(false);
|
|
82
|
+
window.localStorage.setItem(DRAWER_STATE_KEY, "false");
|
|
83
|
+
}
|
|
84
|
+
}, [forcedOpen, isInitialized]);
|
|
85
|
+
const toggleDrawer = useCallback(() => {
|
|
86
|
+
if (forcedOpen) {
|
|
87
|
+
handleDrawerClose();
|
|
88
|
+
} else {
|
|
89
|
+
handleDrawerOpen();
|
|
90
|
+
}
|
|
91
|
+
}, [forcedOpen, handleDrawerClose, handleDrawerOpen]);
|
|
92
|
+
useEffect(() => {
|
|
93
|
+
const initializeDrawerState = () => {
|
|
94
|
+
try {
|
|
95
|
+
if (typeof window !== "undefined" && window.localStorage) {
|
|
96
|
+
const savedState = window.localStorage.getItem(DRAWER_STATE_KEY);
|
|
97
|
+
const shouldBeOpen = savedState === "true";
|
|
98
|
+
setForcedOpen(shouldBeOpen);
|
|
99
|
+
setHoverOpen(false);
|
|
100
|
+
setIsInitialized(true);
|
|
101
|
+
} else {
|
|
102
|
+
setForcedOpen(true);
|
|
103
|
+
setIsInitialized(true);
|
|
104
|
+
}
|
|
105
|
+
} catch (error) {
|
|
106
|
+
console.warn("Failed to read drawer state from localStorage:", error);
|
|
107
|
+
setForcedOpen(true);
|
|
108
|
+
setIsInitialized(true);
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
initializeDrawerState();
|
|
112
|
+
}, []);
|
|
113
|
+
useEffect(() => {
|
|
114
|
+
const handleWindowFocus = () => {
|
|
115
|
+
try {
|
|
116
|
+
if (typeof window !== "undefined" && window.localStorage) {
|
|
117
|
+
const savedState = window.localStorage.getItem(DRAWER_STATE_KEY);
|
|
118
|
+
const shouldBeOpen = savedState === "true";
|
|
119
|
+
if (shouldBeOpen !== forcedOpen) {
|
|
120
|
+
setForcedOpen(shouldBeOpen);
|
|
121
|
+
setHoverOpen(false);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
} catch (error) {
|
|
125
|
+
console.warn("Failed to sync drawer state on window focus:", error);
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
window.addEventListener("focus", handleWindowFocus);
|
|
129
|
+
return () => {
|
|
130
|
+
window.removeEventListener("focus", handleWindowFocus);
|
|
131
|
+
};
|
|
132
|
+
}, [forcedOpen]);
|
|
133
|
+
if (!isInitialized) {
|
|
134
|
+
return (
|
|
135
|
+
// <Box
|
|
136
|
+
// sx={{
|
|
137
|
+
// display: 'flex',
|
|
138
|
+
// minHeight: '100vh',
|
|
139
|
+
// alignItems: 'center',
|
|
140
|
+
// justifyContent: 'center'
|
|
141
|
+
// }}>
|
|
142
|
+
/* @__PURE__ */ jsx(ModuleSkeleton, {})
|
|
143
|
+
);
|
|
144
|
+
}
|
|
145
|
+
return /* @__PURE__ */ jsxs(
|
|
146
|
+
Box,
|
|
147
|
+
{
|
|
148
|
+
sx: {
|
|
149
|
+
display: "flex",
|
|
150
|
+
minHeight: "100vh",
|
|
151
|
+
direction: isRtl ? "rtl" : "ltr"
|
|
152
|
+
},
|
|
153
|
+
children: [
|
|
154
|
+
/* @__PURE__ */ jsx(
|
|
155
|
+
AppBarWrapper,
|
|
156
|
+
{
|
|
157
|
+
open: forcedOpen,
|
|
158
|
+
handleDrawerOpen,
|
|
159
|
+
handleDrawerClose,
|
|
160
|
+
toggleDrawer,
|
|
161
|
+
width: drawerWidth,
|
|
162
|
+
forcedOpen,
|
|
163
|
+
hoverOpen
|
|
164
|
+
}
|
|
165
|
+
),
|
|
166
|
+
/* @__PURE__ */ jsx(
|
|
167
|
+
Sidebar,
|
|
168
|
+
{
|
|
169
|
+
open: forcedOpen,
|
|
170
|
+
forcedOpen,
|
|
171
|
+
hoverOpen,
|
|
172
|
+
handleDrawerClose,
|
|
173
|
+
handleDrawerOpen,
|
|
174
|
+
toggleDrawer,
|
|
175
|
+
width: drawerWidth,
|
|
176
|
+
theme,
|
|
177
|
+
menu: manufacturingSubmenu,
|
|
178
|
+
handleMouseEnter,
|
|
179
|
+
handleMouseLeave,
|
|
180
|
+
isInitialized,
|
|
181
|
+
dashboardPath: props.dashboardPath
|
|
182
|
+
}
|
|
183
|
+
),
|
|
184
|
+
/* @__PURE__ */ jsx(
|
|
185
|
+
ActivityArea,
|
|
186
|
+
{
|
|
187
|
+
isDrawerOpen,
|
|
188
|
+
drawerWidth,
|
|
189
|
+
forcedOpen,
|
|
190
|
+
children: props.children
|
|
191
|
+
}
|
|
192
|
+
),
|
|
193
|
+
/* @__PURE__ */ jsx(ChatBot, {})
|
|
194
|
+
]
|
|
195
|
+
}
|
|
196
|
+
);
|
|
197
|
+
};
|
|
198
|
+
export {
|
|
199
|
+
SidebarLayout as S
|
|
200
|
+
};
|
|
201
|
+
//# sourceMappingURL=sidebarScreen-Dp1e8Luz.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sidebarScreen-Dp1e8Luz.esm.js","sources":["../../src/layout/sidebarScreen/sidebarScreen.tsx"],"sourcesContent":["import { useEffect, useState, useCallback, useMemo } from 'react';\n\nimport { useTheme } from '@mui/material';\nimport { Box } from '@mui/material';\n\nimport AppBar from '../../components/appbar/appbar';\nimport SideBar from '../../components/sidebar/sidebar';\nimport ActivityArea from '../../components/activityArea/activityArea';\nimport ChatBot from '../../components/chat-bot/chat-bot';\n\nimport drawerWidth from '../../constants/mui.constants';\n// const drawerWidth = 240;\nimport { useLanguage } from '@erpsquad/common/runtime';\nimport { getToken } from '@/utils';\nimport { getV1Settings } from '../../api-client/api.manufacturing/api';\nimport { useLocation } from 'react-router-dom';\nimport { ModuleSkeleton } from '../../components/loaders/module-skeleton';\n\n// Local storage key for drawer state\nconst DRAWER_STATE_KEY = '_is_drawer_open';\n\n// Interface for better type safety\nexport interface ISidebarLayoutProps {\n\tmenu: any[];\n\tchildren: React.ReactNode;\n\tdashboardPath?: string;\n}\n\nexport const SidebarLayout = (props: ISidebarLayoutProps) => {\n\tconst theme = useTheme();\n\tconst { currentLanguage } = useLanguage();\n\tconst isRtl = useMemo(\n\t\t() => currentLanguage?.direction === 'rtl',\n\t\t[currentLanguage]\n\t);\n\t// Enhanced state management\n\tconst [forcedOpen, setForcedOpen] = useState(true);\n\tconst [hoverOpen, setHoverOpen] = useState(false);\n\tconst [isInitialized, setIsInitialized] = useState(false);\n\tconst location = useLocation();\n\tconst curPathName = useMemo(() => location.pathname, [location.pathname])\n\n\t// Memoized computed state for actual drawer open status\n\tconst isDrawerOpen = forcedOpen || (!forcedOpen && hoverOpen);\n\n\t// Enhanced drawer control functions with better state management\n\tconst handleDrawerOpen = useCallback(() => {\n\t\tsetForcedOpen(true);\n\t\tsetHoverOpen(false); // Clear hover state when forcing open\n\t\ttry {\n\t\t\twindow.localStorage.setItem(DRAWER_STATE_KEY, 'true');\n\t\t} catch (error) {\n\t\t\tconsole.warn('Failed to save drawer state to localStorage:', error);\n\t\t}\n\t}, []);\n\n\tconst handleDrawerClose = useCallback(() => {\n\t\tsetForcedOpen(false);\n\t\twindow.localStorage.setItem('_is_drawer_open', 'false');\n\t}, []);\n\n\tconst [wipSettingsData, setWipSettingsData] = useState<any>(null);\n\n\tconst getSettings = useCallback(async () => {\n\t\t// getToken returns { \"x-token\": string; \"x-timezone\": number }, but API expects string type for \"x-timezone\"\n\t\tconst tokenData = getToken();\n\t\tconst apiParams = {\n\t\t\t'x-token': tokenData['x-token'],\n\t\t\t'x-timezone': String(tokenData['x-timezone'])\n\t\t};\n\t\tconst response = await getV1Settings(apiParams);\n\t\t// The \"data\" property may not exist on GetV1SettingsResponses, so check existence safely\n\t\tconst data = (response && (response as any)?.data?.settings?.[0]) || null;\n\t\tsetWipSettingsData(data);\n\t\tlocalStorage.setItem('wip_settings_data', JSON.stringify(data));\n\t}, []);\n\tuseEffect(() => {\n\t\tif(curPathName?.includes('manufacturing')) {\n\t\t\tgetSettings();\n\t\t}\n\t}, [getSettings, curPathName]);\n\n\tconst [manufacturingSubmenu, setManufacturingSubmenu] = useState<any>(\n\t\tprops.menu\n\t);\n\n\tuseEffect(() => {\n\t\tif (wipSettingsData && Array.isArray(props?.menu)) {\n\t\t\tconst _new = props.menu.filter((item) => {\n\t\t\t\tif (!wipSettingsData?.enable_production_planning) {\n\t\t\t\t\treturn item.label !== 'Plans';\n\t\t\t\t} else {\n\t\t\t\t\treturn item;\n\t\t\t\t}\n\t\t\t});\n\t\t\tsetManufacturingSubmenu(_new);\n\t\t}\n\t}, [wipSettingsData, props.menu]);\n\t// const module_type = '';\n\n\tconst handleMouseEnter = () => {\n\t\tif (!forcedOpen) {\n\t\t\t// setOpen(true);\n\t\t\twindow.localStorage.setItem(DRAWER_STATE_KEY, 'true');\n\t\t}\n\t};\n\n\tconst handleMouseLeave = useCallback(() => {\n\t\tif (!forcedOpen && isInitialized) {\n\t\t\tsetHoverOpen(false);\n\t\t\twindow.localStorage.setItem(DRAWER_STATE_KEY, 'false');\n\t\t}\n\t}, [forcedOpen, isInitialized]);\n\n\t// Toggle function for programmatic control\n\tconst toggleDrawer = useCallback(() => {\n\t\tif (forcedOpen) {\n\t\t\thandleDrawerClose();\n\t\t} else {\n\t\t\thandleDrawerOpen();\n\t\t}\n\t}, [forcedOpen, handleDrawerClose, handleDrawerOpen]);\n\n\t// Enhanced initialization with error handling\n\tuseEffect(() => {\n\t\tconst initializeDrawerState = () => {\n\t\t\ttry {\n\t\t\t\tif (typeof window !== 'undefined' && window.localStorage) {\n\t\t\t\t\tconst savedState = window.localStorage.getItem(DRAWER_STATE_KEY);\n\t\t\t\t\tconst shouldBeOpen = savedState === 'true';\n\n\t\t\t\t\tsetForcedOpen(shouldBeOpen);\n\t\t\t\t\tsetHoverOpen(false); // Ensure hover state is reset\n\t\t\t\t\tsetIsInitialized(true);\n\t\t\t\t} else {\n\t\t\t\t\t// Fallback for environments without localStorage\n\t\t\t\t\tsetForcedOpen(true);\n\t\t\t\t\tsetIsInitialized(true);\n\t\t\t\t}\n\t\t\t} catch (error) {\n\t\t\t\tconsole.warn('Failed to read drawer state from localStorage:', error);\n\t\t\t\t// Fallback to default state\n\t\t\t\tsetForcedOpen(true);\n\t\t\t\tsetIsInitialized(true);\n\t\t\t}\n\t\t};\n\n\t\tinitializeDrawerState();\n\t}, []);\n\n\t// Handle window focus to sync state across tabs\n\tuseEffect(() => {\n\t\tconst handleWindowFocus = () => {\n\t\t\ttry {\n\t\t\t\tif (typeof window !== 'undefined' && window.localStorage) {\n\t\t\t\t\tconst savedState = window.localStorage.getItem(DRAWER_STATE_KEY);\n\t\t\t\t\tconst shouldBeOpen = savedState === 'true';\n\n\t\t\t\t\tif (shouldBeOpen !== forcedOpen) {\n\t\t\t\t\t\tsetForcedOpen(shouldBeOpen);\n\t\t\t\t\t\tsetHoverOpen(false);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (error) {\n\t\t\t\tconsole.warn('Failed to sync drawer state on window focus:', error);\n\t\t\t}\n\t\t};\n\n\t\twindow.addEventListener('focus', handleWindowFocus);\n\n\t\treturn () => {\n\t\t\twindow.removeEventListener('focus', handleWindowFocus);\n\t\t};\n\t}, [forcedOpen]);\n\n\t// Prevent rendering until initialization is complete\n\tif (!isInitialized) {\n\t\treturn (\n\t\t\t// <Box\n\t\t\t// \tsx={{\n\t\t\t// \t\tdisplay: 'flex',\n\t\t\t// \t\tminHeight: '100vh',\n\t\t\t// \t\talignItems: 'center',\n\t\t\t// \t\tjustifyContent: 'center'\n\t\t\t// \t}}>\n\t\t\t\t<ModuleSkeleton />\n\t\t\t/* </Box> */\n\t\t);\n\t}\n\n\treturn (\n\t\t<Box\n\t\t\tsx={{\n\t\t\t\tdisplay: 'flex',\n\t\t\t\tminHeight: '100vh',\n\t\t\t\tdirection: isRtl ? 'rtl' : 'ltr'\n\t\t\t}}>\n\t\t\t<AppBar\n\t\t\t\topen={forcedOpen}\n\t\t\t\thandleDrawerOpen={handleDrawerOpen}\n\t\t\t\thandleDrawerClose={handleDrawerClose}\n\t\t\t\ttoggleDrawer={toggleDrawer}\n\t\t\t\twidth={drawerWidth}\n\t\t\t\tforcedOpen={forcedOpen}\n\t\t\t\thoverOpen={hoverOpen}\n\t\t\t/>\n\n\t\t\t<SideBar\n\t\t\t\topen={forcedOpen}\n\t\t\t\tforcedOpen={forcedOpen}\n\t\t\t\thoverOpen={hoverOpen}\n\t\t\t\thandleDrawerClose={handleDrawerClose}\n\t\t\t\thandleDrawerOpen={handleDrawerOpen}\n\t\t\t\ttoggleDrawer={toggleDrawer}\n\t\t\t\twidth={drawerWidth}\n\t\t\t\ttheme={theme}\n\t\t\t\tmenu={manufacturingSubmenu}\n\t\t\t\thandleMouseEnter={handleMouseEnter}\n\t\t\t\thandleMouseLeave={handleMouseLeave}\n\t\t\t\tisInitialized={isInitialized}\n\t\t\t\tdashboardPath={props.dashboardPath}\n\t\t\t/>\n\n\t\t\t<ActivityArea\n\t\t\t\tisDrawerOpen={isDrawerOpen}\n\t\t\t\tdrawerWidth={drawerWidth}\n\t\t\t\tforcedOpen={forcedOpen}>\n\t\t\t\t{props.children}\n\t\t\t</ActivityArea>\n\t\t\t<ChatBot />\n\t\t</Box>\n\t);\n};\n\nexport default SidebarLayout;\n"],"names":["AppBar","SideBar"],"mappings":"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"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const toolkit = require("@reduxjs/toolkit");
|
|
3
|
+
const reducer$5 = require("./reducer-5KSgWLUj.js");
|
|
4
|
+
const reducer$4 = require("./reducer-DklAfYwo.js");
|
|
5
|
+
const reducer$3 = require("./reducer-C_1a_Ybe.js");
|
|
6
|
+
const reducer$2 = require("./reducer-Ba-Uxr0O.js");
|
|
7
|
+
const reducer$1 = require("./reducer-D55uDKxv.js");
|
|
8
|
+
const reducer = require("./reducer-DujEnCl-.js");
|
|
9
|
+
const libraryReducers = {
|
|
10
|
+
share: reducer$5.shareSlice.reducer,
|
|
11
|
+
header: reducer$4.headerSlice.reducer,
|
|
12
|
+
reportsTitleBar: reducer$3.reportsTitleBarSlice.reducer,
|
|
13
|
+
inventoryReportsTitleBar: reducer$2.inventoryReportsTitleBarSlice.reducer,
|
|
14
|
+
dashboard: reducer$1.dashboardSlice.reducer,
|
|
15
|
+
formBuilder: reducer.formBuilderListSlice.reducer
|
|
16
|
+
};
|
|
17
|
+
const createReducerManager = (initialReducers) => {
|
|
18
|
+
let reducers = { ...initialReducers };
|
|
19
|
+
let combinedReducer = toolkit.combineReducers(reducers);
|
|
20
|
+
let keysToRemove = [];
|
|
21
|
+
return {
|
|
22
|
+
getReducers: () => ({ ...reducers }),
|
|
23
|
+
reduce: (state, action) => {
|
|
24
|
+
if (keysToRemove.length) {
|
|
25
|
+
state = { ...state };
|
|
26
|
+
keysToRemove.forEach((key) => delete state[key]);
|
|
27
|
+
keysToRemove = [];
|
|
28
|
+
}
|
|
29
|
+
return combinedReducer(state, action);
|
|
30
|
+
},
|
|
31
|
+
add: (key, reducer2) => {
|
|
32
|
+
if (!key || reducers[key]) return;
|
|
33
|
+
reducers = { ...reducers, [key]: reducer2 };
|
|
34
|
+
combinedReducer = toolkit.combineReducers(reducers);
|
|
35
|
+
},
|
|
36
|
+
remove: (key) => {
|
|
37
|
+
if (!key || !reducers[key]) return;
|
|
38
|
+
const { [key]: _, ...rest } = reducers;
|
|
39
|
+
reducers = rest;
|
|
40
|
+
keysToRemove.push(key);
|
|
41
|
+
combinedReducer = toolkit.combineReducers(reducers);
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
const createLibraryStore = (additionalReducers = {}, apiClient, middleware = []) => {
|
|
46
|
+
const reducerManager = createReducerManager({
|
|
47
|
+
...libraryReducers,
|
|
48
|
+
...additionalReducers
|
|
49
|
+
});
|
|
50
|
+
const store2 = toolkit.configureStore({
|
|
51
|
+
reducer: reducerManager.reduce,
|
|
52
|
+
middleware: (getDefaultMiddleware) => getDefaultMiddleware({
|
|
53
|
+
thunk: {
|
|
54
|
+
extraArgument: { apiClient }
|
|
55
|
+
}
|
|
56
|
+
}).concat(middleware)
|
|
57
|
+
});
|
|
58
|
+
const reducerEnabledStore = {
|
|
59
|
+
...store2,
|
|
60
|
+
reducerManager,
|
|
61
|
+
injectReducer: (key, reducer2) => {
|
|
62
|
+
reducerManager.add(key, reducer2);
|
|
63
|
+
store2.replaceReducer(reducerManager.reduce);
|
|
64
|
+
},
|
|
65
|
+
removeReducer: (key) => {
|
|
66
|
+
reducerManager.remove(key);
|
|
67
|
+
store2.replaceReducer(reducerManager.reduce);
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
return reducerEnabledStore;
|
|
71
|
+
};
|
|
72
|
+
const store = createLibraryStore();
|
|
73
|
+
const injectLibraryReducer = (store2, key, reducer2) => {
|
|
74
|
+
if (typeof store2.injectReducer === "function") {
|
|
75
|
+
store2.injectReducer(key, reducer2);
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
const removeLibraryReducer = (store2, key) => {
|
|
79
|
+
if (typeof store2.removeReducer === "function") {
|
|
80
|
+
store2.removeReducer(key);
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
exports.createLibraryStore = createLibraryStore;
|
|
84
|
+
exports.injectLibraryReducer = injectLibraryReducer;
|
|
85
|
+
exports.libraryReducers = libraryReducers;
|
|
86
|
+
exports.removeLibraryReducer = removeLibraryReducer;
|
|
87
|
+
exports.store = store;
|
|
88
|
+
//# sourceMappingURL=store-CuKFQXI5.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store-CuKFQXI5.js","sources":["../../src/redux/store.ts"],"sourcesContent":["import { configureStore, combineReducers, AnyAction } from '@reduxjs/toolkit';\nimport { LibraryReduxSlices } from './types';\nimport { shareSlice } from '../components/share-modal/redux/reducer';\nimport { headerSlice } from '../components/header/redux/reducer';\nimport { reportsTitleBarSlice } from '../components/reports-title-bar/redux/reducer';\nimport { inventoryReportsTitleBarSlice } from '../components/inventory-reports-title-bar/redux/reducer';\nimport { dashboardSlice } from '../views/afterAuth/dashboard/redux/reducer';\nimport { formBuilderListSlice } from '../views/form-builder/redux/reducer';\n\n// Default library reducers\nexport const libraryReducers = {\n share: shareSlice.reducer,\n header: headerSlice.reducer,\n reportsTitleBar: reportsTitleBarSlice.reducer,\n inventoryReportsTitleBar: inventoryReportsTitleBarSlice.reducer,\n dashboard: dashboardSlice.reducer,\n formBuilder: formBuilderListSlice.reducer,\n};\n\nexport type ReducerFn<State = Record<string, unknown>> = (\n state: State | undefined,\n action: AnyAction\n) => State;\ntype ReducerMap = Record<string, ReducerFn>;\n\nexport type ReducerManager = {\n getReducers: () => ReducerMap;\n reduce: ReducerFn;\n add: (key: string, reducer: ReducerFn) => void;\n remove: (key: string) => void;\n};\n\nconst createReducerManager = (initialReducers: ReducerMap): ReducerManager => {\n let reducers = { ...initialReducers };\n let combinedReducer = combineReducers(reducers);\n let keysToRemove: string[] = [];\n\n return {\n getReducers: () => ({ ...reducers }),\n reduce: (state: any, action: AnyAction) => {\n if (keysToRemove.length) {\n state = { ...state };\n keysToRemove.forEach((key) => delete state[key]);\n keysToRemove = [];\n }\n return combinedReducer(state, action);\n },\n add: (key: string, reducer: ReducerFn) => {\n if (!key || reducers[key]) return;\n reducers = { ...reducers, [key]: reducer };\n combinedReducer = combineReducers(reducers);\n },\n remove: (key: string) => {\n if (!key || !reducers[key]) return;\n const { [key]: _, ...rest } = reducers;\n reducers = rest;\n keysToRemove.push(key);\n combinedReducer = combineReducers(reducers);\n },\n };\n};\n\ntype ReducerInjectorStore = ReturnType<typeof configureStore> & {\n reducerManager: ReducerManager;\n injectReducer: (key: string, reducer: ReducerFn) => void;\n removeReducer: (key: string) => void;\n};\n\n// Helper function to create a store with library slices\nexport const createLibraryStore = (\n additionalReducers: Record<string, any> = {},\n apiClient?: any,\n middleware: any[] = []\n) => {\n const reducerManager = createReducerManager({\n ...libraryReducers,\n ...additionalReducers,\n });\n\n const store = configureStore({\n reducer: reducerManager.reduce,\n middleware: (getDefaultMiddleware) =>\n getDefaultMiddleware({\n thunk: {\n extraArgument: { apiClient },\n },\n }).concat(middleware),\n });\n\n const reducerEnabledStore: ReducerInjectorStore = {\n ...store,\n reducerManager,\n injectReducer: (key: string, reducer: ReducerFn) => {\n reducerManager.add(key, reducer);\n store.replaceReducer(reducerManager.reduce);\n },\n removeReducer: (key: string) => {\n reducerManager.remove(key);\n store.replaceReducer(reducerManager.reduce);\n },\n };\n\n return reducerEnabledStore;\n};\n\n// Helper function to get just the library slices for integration with existing stores\nexport const getLibrarySlices = (): LibraryReduxSlices => {\n return {\n share: shareSlice.reducer,\n header: headerSlice.reducer,\n reportsTitleBar: reportsTitleBarSlice.reducer,\n inventoryReportsTitleBar: inventoryReportsTitleBarSlice.reducer,\n dashboard: dashboardSlice.reducer,\n formBuilder: formBuilderListSlice.reducer,\n };\n};\n\n// Type for the library store\nexport type LibraryStore = ReturnType<typeof createLibraryStore>;\nexport type LibraryRootState = ReturnType<LibraryStore['getState']>;\nexport type LibraryDispatch = LibraryStore['dispatch'];\n\n// Default store instance for consumers that want a ready-to-use store\nexport const store: LibraryStore = createLibraryStore();\n\n// Helpers for consuming apps to inject or remove reducers at runtime\nexport const injectLibraryReducer = (\n store: LibraryStore,\n key: string,\n reducer: ReducerFn\n) => {\n if (typeof store.injectReducer === 'function') {\n store.injectReducer(key, reducer);\n }\n};\n\nexport const removeLibraryReducer = (store: LibraryStore, key: string) => {\n if (typeof store.removeReducer === 'function') {\n store.removeReducer(key);\n }\n};"],"names":["shareSlice","headerSlice","reportsTitleBarSlice","inventoryReportsTitleBarSlice","dashboardSlice","formBuilderListSlice","combineReducers","reducer","store","configureStore"],"mappings":";;;;;;;;AAUO,MAAM,kBAAkB;AAAA,EAC7B,OAAOA,UAAAA,WAAW;AAAA,EAClB,QAAQC,UAAAA,YAAY;AAAA,EACpB,iBAAiBC,UAAAA,qBAAqB;AAAA,EACtC,0BAA0BC,UAAAA,8BAA8B;AAAA,EACxD,WAAWC,UAAAA,eAAe;AAAA,EAC1B,aAAaC,QAAAA,qBAAqB;AACpC;AAeA,MAAM,uBAAuB,CAAC,oBAAgD;AAC5E,MAAI,WAAW,EAAE,GAAG,gBAAA;AACpB,MAAI,kBAAkBC,QAAAA,gBAAgB,QAAQ;AAC9C,MAAI,eAAyB,CAAA;AAE7B,SAAO;AAAA,IACL,aAAa,OAAO,EAAE,GAAG;IACzB,QAAQ,CAAC,OAAY,WAAsB;AACzC,UAAI,aAAa,QAAQ;AACvB,gBAAQ,EAAE,GAAG,MAAA;AACb,qBAAa,QAAQ,CAAC,QAAQ,OAAO,MAAM,GAAG,CAAC;AAC/C,uBAAe,CAAA;AAAA,MACjB;AACA,aAAO,gBAAgB,OAAO,MAAM;AAAA,IACtC;AAAA,IACA,KAAK,CAAC,KAAaC,aAAuB;AACxC,UAAI,CAAC,OAAO,SAAS,GAAG,EAAG;AAC3B,iBAAW,EAAE,GAAG,UAAU,CAAC,GAAG,GAAGA,SAAA;AACjC,wBAAkBD,QAAAA,gBAAgB,QAAQ;AAAA,IAC5C;AAAA,IACA,QAAQ,CAAC,QAAgB;AACvB,UAAI,CAAC,OAAO,CAAC,SAAS,GAAG,EAAG;AAC5B,YAAM,EAAE,CAAC,GAAG,GAAG,GAAG,GAAG,SAAS;AAC9B,iBAAW;AACX,mBAAa,KAAK,GAAG;AACrB,wBAAkBA,QAAAA,gBAAgB,QAAQ;AAAA,IAC5C;AAAA,EAAA;AAEJ;AASO,MAAM,qBAAqB,CAChC,qBAA0C,CAAA,GAC1C,WACA,aAAoB,CAAA,MACjB;AACH,QAAM,iBAAiB,qBAAqB;AAAA,IAC1C,GAAG;AAAA,IACH,GAAG;AAAA,EAAA,CACJ;AAED,QAAME,SAAQC,QAAAA,eAAe;AAAA,IAC3B,SAAS,eAAe;AAAA,IACxB,YAAY,CAAC,yBACX,qBAAqB;AAAA,MACnB,OAAO;AAAA,QACL,eAAe,EAAE,UAAA;AAAA,MAAU;AAAA,IAC7B,CACD,EAAE,OAAO,UAAU;AAAA,EAAA,CACvB;AAED,QAAM,sBAA4C;AAAA,IAChD,GAAGD;AAAAA,IACH;AAAA,IACA,eAAe,CAAC,KAAaD,aAAuB;AAClD,qBAAe,IAAI,KAAKA,QAAO;AAC/BC,aAAM,eAAe,eAAe,MAAM;AAAA,IAC5C;AAAA,IACA,eAAe,CAAC,QAAgB;AAC9B,qBAAe,OAAO,GAAG;AACzBA,aAAM,eAAe,eAAe,MAAM;AAAA,IAC5C;AAAA,EAAA;AAGF,SAAO;AACT;AAoBO,MAAM,QAAsB,mBAAA;AAG5B,MAAM,uBAAuB,CAClCA,QACA,KACAD,aACG;AACH,MAAI,OAAOC,OAAM,kBAAkB,YAAY;AAC7CA,WAAM,cAAc,KAAKD,QAAO;AAAA,EAClC;AACF;AAEO,MAAM,uBAAuB,CAACC,QAAqB,QAAgB;AACxE,MAAI,OAAOA,OAAM,kBAAkB,YAAY;AAC7CA,WAAM,cAAc,GAAG;AAAA,EACzB;AACF;;;;;;"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { configureStore, combineReducers } from "@reduxjs/toolkit";
|
|
2
|
+
import { s as shareSlice } from "./reducer-e3sR-XbO.esm.js";
|
|
3
|
+
import { h as headerSlice } from "./reducer-C3gV86mN.esm.js";
|
|
4
|
+
import { a as reportsTitleBarSlice } from "./reducer-BVEMC024.esm.js";
|
|
5
|
+
import { i as inventoryReportsTitleBarSlice } from "./reducer-DXCv8Ljo.esm.js";
|
|
6
|
+
import { m as dashboardSlice } from "./reducer-DIUjYZlK.esm.js";
|
|
7
|
+
import { f as formBuilderListSlice } from "./reducer-PeqRGVlz.esm.js";
|
|
8
|
+
const libraryReducers = {
|
|
9
|
+
share: shareSlice.reducer,
|
|
10
|
+
header: headerSlice.reducer,
|
|
11
|
+
reportsTitleBar: reportsTitleBarSlice.reducer,
|
|
12
|
+
inventoryReportsTitleBar: inventoryReportsTitleBarSlice.reducer,
|
|
13
|
+
dashboard: dashboardSlice.reducer,
|
|
14
|
+
formBuilder: formBuilderListSlice.reducer
|
|
15
|
+
};
|
|
16
|
+
const createReducerManager = (initialReducers) => {
|
|
17
|
+
let reducers = { ...initialReducers };
|
|
18
|
+
let combinedReducer = combineReducers(reducers);
|
|
19
|
+
let keysToRemove = [];
|
|
20
|
+
return {
|
|
21
|
+
getReducers: () => ({ ...reducers }),
|
|
22
|
+
reduce: (state, action) => {
|
|
23
|
+
if (keysToRemove.length) {
|
|
24
|
+
state = { ...state };
|
|
25
|
+
keysToRemove.forEach((key) => delete state[key]);
|
|
26
|
+
keysToRemove = [];
|
|
27
|
+
}
|
|
28
|
+
return combinedReducer(state, action);
|
|
29
|
+
},
|
|
30
|
+
add: (key, reducer) => {
|
|
31
|
+
if (!key || reducers[key]) return;
|
|
32
|
+
reducers = { ...reducers, [key]: reducer };
|
|
33
|
+
combinedReducer = combineReducers(reducers);
|
|
34
|
+
},
|
|
35
|
+
remove: (key) => {
|
|
36
|
+
if (!key || !reducers[key]) return;
|
|
37
|
+
const { [key]: _, ...rest } = reducers;
|
|
38
|
+
reducers = rest;
|
|
39
|
+
keysToRemove.push(key);
|
|
40
|
+
combinedReducer = combineReducers(reducers);
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
const createLibraryStore = (additionalReducers = {}, apiClient, middleware = []) => {
|
|
45
|
+
const reducerManager = createReducerManager({
|
|
46
|
+
...libraryReducers,
|
|
47
|
+
...additionalReducers
|
|
48
|
+
});
|
|
49
|
+
const store2 = configureStore({
|
|
50
|
+
reducer: reducerManager.reduce,
|
|
51
|
+
middleware: (getDefaultMiddleware) => getDefaultMiddleware({
|
|
52
|
+
thunk: {
|
|
53
|
+
extraArgument: { apiClient }
|
|
54
|
+
}
|
|
55
|
+
}).concat(middleware)
|
|
56
|
+
});
|
|
57
|
+
const reducerEnabledStore = {
|
|
58
|
+
...store2,
|
|
59
|
+
reducerManager,
|
|
60
|
+
injectReducer: (key, reducer) => {
|
|
61
|
+
reducerManager.add(key, reducer);
|
|
62
|
+
store2.replaceReducer(reducerManager.reduce);
|
|
63
|
+
},
|
|
64
|
+
removeReducer: (key) => {
|
|
65
|
+
reducerManager.remove(key);
|
|
66
|
+
store2.replaceReducer(reducerManager.reduce);
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
return reducerEnabledStore;
|
|
70
|
+
};
|
|
71
|
+
const store = createLibraryStore();
|
|
72
|
+
const injectLibraryReducer = (store2, key, reducer) => {
|
|
73
|
+
if (typeof store2.injectReducer === "function") {
|
|
74
|
+
store2.injectReducer(key, reducer);
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
const removeLibraryReducer = (store2, key) => {
|
|
78
|
+
if (typeof store2.removeReducer === "function") {
|
|
79
|
+
store2.removeReducer(key);
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
export {
|
|
83
|
+
createLibraryStore as c,
|
|
84
|
+
injectLibraryReducer as i,
|
|
85
|
+
libraryReducers as l,
|
|
86
|
+
removeLibraryReducer as r,
|
|
87
|
+
store as s
|
|
88
|
+
};
|
|
89
|
+
//# sourceMappingURL=store-KAx-wGcm.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store-KAx-wGcm.esm.js","sources":["../../src/redux/store.ts"],"sourcesContent":["import { configureStore, combineReducers, AnyAction } from '@reduxjs/toolkit';\nimport { LibraryReduxSlices } from './types';\nimport { shareSlice } from '../components/share-modal/redux/reducer';\nimport { headerSlice } from '../components/header/redux/reducer';\nimport { reportsTitleBarSlice } from '../components/reports-title-bar/redux/reducer';\nimport { inventoryReportsTitleBarSlice } from '../components/inventory-reports-title-bar/redux/reducer';\nimport { dashboardSlice } from '../views/afterAuth/dashboard/redux/reducer';\nimport { formBuilderListSlice } from '../views/form-builder/redux/reducer';\n\n// Default library reducers\nexport const libraryReducers = {\n share: shareSlice.reducer,\n header: headerSlice.reducer,\n reportsTitleBar: reportsTitleBarSlice.reducer,\n inventoryReportsTitleBar: inventoryReportsTitleBarSlice.reducer,\n dashboard: dashboardSlice.reducer,\n formBuilder: formBuilderListSlice.reducer,\n};\n\nexport type ReducerFn<State = Record<string, unknown>> = (\n state: State | undefined,\n action: AnyAction\n) => State;\ntype ReducerMap = Record<string, ReducerFn>;\n\nexport type ReducerManager = {\n getReducers: () => ReducerMap;\n reduce: ReducerFn;\n add: (key: string, reducer: ReducerFn) => void;\n remove: (key: string) => void;\n};\n\nconst createReducerManager = (initialReducers: ReducerMap): ReducerManager => {\n let reducers = { ...initialReducers };\n let combinedReducer = combineReducers(reducers);\n let keysToRemove: string[] = [];\n\n return {\n getReducers: () => ({ ...reducers }),\n reduce: (state: any, action: AnyAction) => {\n if (keysToRemove.length) {\n state = { ...state };\n keysToRemove.forEach((key) => delete state[key]);\n keysToRemove = [];\n }\n return combinedReducer(state, action);\n },\n add: (key: string, reducer: ReducerFn) => {\n if (!key || reducers[key]) return;\n reducers = { ...reducers, [key]: reducer };\n combinedReducer = combineReducers(reducers);\n },\n remove: (key: string) => {\n if (!key || !reducers[key]) return;\n const { [key]: _, ...rest } = reducers;\n reducers = rest;\n keysToRemove.push(key);\n combinedReducer = combineReducers(reducers);\n },\n };\n};\n\ntype ReducerInjectorStore = ReturnType<typeof configureStore> & {\n reducerManager: ReducerManager;\n injectReducer: (key: string, reducer: ReducerFn) => void;\n removeReducer: (key: string) => void;\n};\n\n// Helper function to create a store with library slices\nexport const createLibraryStore = (\n additionalReducers: Record<string, any> = {},\n apiClient?: any,\n middleware: any[] = []\n) => {\n const reducerManager = createReducerManager({\n ...libraryReducers,\n ...additionalReducers,\n });\n\n const store = configureStore({\n reducer: reducerManager.reduce,\n middleware: (getDefaultMiddleware) =>\n getDefaultMiddleware({\n thunk: {\n extraArgument: { apiClient },\n },\n }).concat(middleware),\n });\n\n const reducerEnabledStore: ReducerInjectorStore = {\n ...store,\n reducerManager,\n injectReducer: (key: string, reducer: ReducerFn) => {\n reducerManager.add(key, reducer);\n store.replaceReducer(reducerManager.reduce);\n },\n removeReducer: (key: string) => {\n reducerManager.remove(key);\n store.replaceReducer(reducerManager.reduce);\n },\n };\n\n return reducerEnabledStore;\n};\n\n// Helper function to get just the library slices for integration with existing stores\nexport const getLibrarySlices = (): LibraryReduxSlices => {\n return {\n share: shareSlice.reducer,\n header: headerSlice.reducer,\n reportsTitleBar: reportsTitleBarSlice.reducer,\n inventoryReportsTitleBar: inventoryReportsTitleBarSlice.reducer,\n dashboard: dashboardSlice.reducer,\n formBuilder: formBuilderListSlice.reducer,\n };\n};\n\n// Type for the library store\nexport type LibraryStore = ReturnType<typeof createLibraryStore>;\nexport type LibraryRootState = ReturnType<LibraryStore['getState']>;\nexport type LibraryDispatch = LibraryStore['dispatch'];\n\n// Default store instance for consumers that want a ready-to-use store\nexport const store: LibraryStore = createLibraryStore();\n\n// Helpers for consuming apps to inject or remove reducers at runtime\nexport const injectLibraryReducer = (\n store: LibraryStore,\n key: string,\n reducer: ReducerFn\n) => {\n if (typeof store.injectReducer === 'function') {\n store.injectReducer(key, reducer);\n }\n};\n\nexport const removeLibraryReducer = (store: LibraryStore, key: string) => {\n if (typeof store.removeReducer === 'function') {\n store.removeReducer(key);\n }\n};"],"names":["store"],"mappings":";;;;;;;AAUO,MAAM,kBAAkB;AAAA,EAC7B,OAAO,WAAW;AAAA,EAClB,QAAQ,YAAY;AAAA,EACpB,iBAAiB,qBAAqB;AAAA,EACtC,0BAA0B,8BAA8B;AAAA,EACxD,WAAW,eAAe;AAAA,EAC1B,aAAa,qBAAqB;AACpC;AAeA,MAAM,uBAAuB,CAAC,oBAAgD;AAC5E,MAAI,WAAW,EAAE,GAAG,gBAAA;AACpB,MAAI,kBAAkB,gBAAgB,QAAQ;AAC9C,MAAI,eAAyB,CAAA;AAE7B,SAAO;AAAA,IACL,aAAa,OAAO,EAAE,GAAG;IACzB,QAAQ,CAAC,OAAY,WAAsB;AACzC,UAAI,aAAa,QAAQ;AACvB,gBAAQ,EAAE,GAAG,MAAA;AACb,qBAAa,QAAQ,CAAC,QAAQ,OAAO,MAAM,GAAG,CAAC;AAC/C,uBAAe,CAAA;AAAA,MACjB;AACA,aAAO,gBAAgB,OAAO,MAAM;AAAA,IACtC;AAAA,IACA,KAAK,CAAC,KAAa,YAAuB;AACxC,UAAI,CAAC,OAAO,SAAS,GAAG,EAAG;AAC3B,iBAAW,EAAE,GAAG,UAAU,CAAC,GAAG,GAAG,QAAA;AACjC,wBAAkB,gBAAgB,QAAQ;AAAA,IAC5C;AAAA,IACA,QAAQ,CAAC,QAAgB;AACvB,UAAI,CAAC,OAAO,CAAC,SAAS,GAAG,EAAG;AAC5B,YAAM,EAAE,CAAC,GAAG,GAAG,GAAG,GAAG,SAAS;AAC9B,iBAAW;AACX,mBAAa,KAAK,GAAG;AACrB,wBAAkB,gBAAgB,QAAQ;AAAA,IAC5C;AAAA,EAAA;AAEJ;AASO,MAAM,qBAAqB,CAChC,qBAA0C,CAAA,GAC1C,WACA,aAAoB,CAAA,MACjB;AACH,QAAM,iBAAiB,qBAAqB;AAAA,IAC1C,GAAG;AAAA,IACH,GAAG;AAAA,EAAA,CACJ;AAED,QAAMA,SAAQ,eAAe;AAAA,IAC3B,SAAS,eAAe;AAAA,IACxB,YAAY,CAAC,yBACX,qBAAqB;AAAA,MACnB,OAAO;AAAA,QACL,eAAe,EAAE,UAAA;AAAA,MAAU;AAAA,IAC7B,CACD,EAAE,OAAO,UAAU;AAAA,EAAA,CACvB;AAED,QAAM,sBAA4C;AAAA,IAChD,GAAGA;AAAAA,IACH;AAAA,IACA,eAAe,CAAC,KAAa,YAAuB;AAClD,qBAAe,IAAI,KAAK,OAAO;AAC/BA,aAAM,eAAe,eAAe,MAAM;AAAA,IAC5C;AAAA,IACA,eAAe,CAAC,QAAgB;AAC9B,qBAAe,OAAO,GAAG;AACzBA,aAAM,eAAe,eAAe,MAAM;AAAA,IAC5C;AAAA,EAAA;AAGF,SAAO;AACT;AAoBO,MAAM,QAAsB,mBAAA;AAG5B,MAAM,uBAAuB,CAClCA,QACA,KACA,YACG;AACH,MAAI,OAAOA,OAAM,kBAAkB,YAAY;AAC7CA,WAAM,cAAc,KAAK,OAAO;AAAA,EAClC;AACF;AAEO,MAAM,uBAAuB,CAACA,QAAqB,QAAgB;AACxE,MAAI,OAAOA,OAAM,kBAAkB,YAAY;AAC7CA,WAAM,cAAc,GAAG;AAAA,EACzB;AACF;"}
|