@erpsquad/common 1.11.8 → 1.11.10
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/api-client/index.esm.js +2 -2
- package/dist/chunks/{DynamicDependentField-C0XXmMlG.esm.js → DynamicDependentField-DOGY6cA_.esm.js} +2 -2
- package/dist/chunks/{DynamicDependentField-C0XXmMlG.esm.js.map → DynamicDependentField-DOGY6cA_.esm.js.map} +1 -1
- package/dist/chunks/{DynamicDependentField-CQIfDDqc.js → DynamicDependentField-GTIwrPfP.js} +2 -2
- package/dist/chunks/{DynamicDependentField-CQIfDDqc.js.map → DynamicDependentField-GTIwrPfP.js.map} +1 -1
- package/dist/chunks/{ERPUIProvider-I4j_X_SD.esm.js → ERPUIProvider-Dz0s77BR.esm.js} +3 -3
- package/dist/chunks/{ERPUIProvider-I4j_X_SD.esm.js.map → ERPUIProvider-Dz0s77BR.esm.js.map} +1 -1
- package/dist/chunks/EditorSection-BLGcgQFm.esm.js +849 -0
- package/dist/chunks/EditorSection-BLGcgQFm.esm.js.map +1 -0
- package/dist/chunks/EditorSection-D6yaBfjP.js +848 -0
- package/dist/chunks/EditorSection-D6yaBfjP.js.map +1 -0
- package/dist/chunks/{FORMS-pxf6g6xE.esm.js → FORMS-CR_DlD1m.esm.js} +8 -8
- package/dist/chunks/{FORMS-pxf6g6xE.esm.js.map → FORMS-CR_DlD1m.esm.js.map} +1 -1
- package/dist/chunks/{FORMS-CUx32b_4.js → FORMS-EouVYay1.js} +5 -5
- package/dist/chunks/{FORMS-CUx32b_4.js.map → FORMS-EouVYay1.js.map} +1 -1
- package/dist/chunks/{FlexibleReduxExample-C-2qOGIw.esm.js → FlexibleReduxExample-B2e7Wa_S.esm.js} +4 -4
- package/dist/chunks/{FlexibleReduxExample-C-2qOGIw.esm.js.map → FlexibleReduxExample-B2e7Wa_S.esm.js.map} +1 -1
- package/dist/chunks/{FlexibleReduxExample--GtoEJhc.js → FlexibleReduxExample-CMUylyy1.js} +3 -3
- package/dist/chunks/{FlexibleReduxExample--GtoEJhc.js.map → FlexibleReduxExample-CMUylyy1.js.map} +1 -1
- package/dist/chunks/SectionFlowEditor-Dp-mjWT9.esm.js +12543 -0
- package/dist/chunks/SectionFlowEditor-Dp-mjWT9.esm.js.map +1 -0
- package/dist/chunks/SectionFlowEditor-Dz1SuCm2.js +12542 -0
- package/dist/chunks/SectionFlowEditor-Dz1SuCm2.js.map +1 -0
- package/dist/chunks/{action-bar-C7Alva4T.esm.js → action-bar-Ci6RlMBM.esm.js} +6 -6
- package/dist/chunks/{action-bar-C7Alva4T.esm.js.map → action-bar-Ci6RlMBM.esm.js.map} +1 -1
- package/dist/chunks/{action-bar-DdtpxWNk.js → action-bar-jLqQTqU7.js} +3 -3
- package/dist/chunks/{action-bar-DdtpxWNk.js.map → action-bar-jLqQTqU7.js.map} +1 -1
- package/dist/chunks/{actionCreator-CpePNxQM.esm.js → actionCreator-B6lXR_k1.esm.js} +2 -2
- package/dist/chunks/{actionCreator-CpePNxQM.esm.js.map → actionCreator-B6lXR_k1.esm.js.map} +1 -1
- package/dist/chunks/{actionCreator-Cl8vPLVO.esm.js → actionCreator-D3uwEAua.esm.js} +3 -3
- package/dist/chunks/{actionCreator-Cl8vPLVO.esm.js.map → actionCreator-D3uwEAua.esm.js.map} +1 -1
- package/dist/chunks/{actionCreator-CL5ICuqZ.esm.js → actionCreator-DIdMRO9L.esm.js} +2 -2
- package/dist/chunks/{actionCreator-CL5ICuqZ.esm.js.map → actionCreator-DIdMRO9L.esm.js.map} +1 -1
- package/dist/chunks/{actionCreator-Cb3NxILP.esm.js → actionCreator-DKYufGAZ.esm.js} +2 -2
- package/dist/chunks/{actionCreator-Cb3NxILP.esm.js.map → actionCreator-DKYufGAZ.esm.js.map} +1 -1
- package/dist/chunks/{actionCreator-Dar9Z8_d.esm.js → actionCreator-DcdyGsIX.esm.js} +3 -3
- package/dist/chunks/{actionCreator-Dar9Z8_d.esm.js.map → actionCreator-DcdyGsIX.esm.js.map} +1 -1
- package/dist/chunks/add-template-CUPbU0z7.js +10 -0
- package/dist/chunks/add-template-CUPbU0z7.js.map +1 -0
- package/dist/chunks/add-template-CxvhzFMF.esm.js +11 -0
- package/dist/chunks/add-template-CxvhzFMF.esm.js.map +1 -0
- package/dist/chunks/{address-modal-CYhiC7ui.js → address-modal-DFd5sQtR.js} +2 -2
- package/dist/chunks/{address-modal-CYhiC7ui.js.map → address-modal-DFd5sQtR.js.map} +1 -1
- package/dist/chunks/{address-modal-CkDBjnye.esm.js → address-modal-DYGLjrqd.esm.js} +2 -2
- package/dist/chunks/{address-modal-CkDBjnye.esm.js.map → address-modal-DYGLjrqd.esm.js.map} +1 -1
- package/dist/chunks/{ai-summary-SKK5KN2s.esm.js → ai-summary-x2t8BZCx.esm.js} +2 -2
- package/dist/chunks/{ai-summary-SKK5KN2s.esm.js.map → ai-summary-x2t8BZCx.esm.js.map} +1 -1
- package/dist/chunks/{api-BIVCMSwW.esm.js → api-8jutPLh0.esm.js} +3 -3
- package/dist/chunks/{api-BIVCMSwW.esm.js.map → api-8jutPLh0.esm.js.map} +1 -1
- package/dist/chunks/{api-DBmWILBN.esm.js → api-yLpQ3k5s.esm.js} +9 -9
- package/dist/chunks/{api-DBmWILBN.esm.js.map → api-yLpQ3k5s.esm.js.map} +1 -1
- package/dist/chunks/{app-switcher-D-Bvz9uO.esm.js → app-switcher-B6eapuGG.esm.js} +2 -2
- package/dist/chunks/{app-switcher-D-Bvz9uO.esm.js.map → app-switcher-B6eapuGG.esm.js.map} +1 -1
- package/dist/chunks/{app-switcher-CyEQmYAN.js → app-switcher-VhH9z0Rd.js} +2 -2
- package/dist/chunks/{app-switcher-CyEQmYAN.js.map → app-switcher-VhH9z0Rd.js.map} +1 -1
- package/dist/chunks/{appbar-BRbO--as.esm.js → appbar-B8EgZsrn.esm.js} +2 -2
- package/dist/chunks/{appbar-BRbO--as.esm.js.map → appbar-B8EgZsrn.esm.js.map} +1 -1
- package/dist/chunks/{appbar-rqqjZ99v.js → appbar-Is_7kfVo.js} +2 -2
- package/dist/chunks/{appbar-rqqjZ99v.js.map → appbar-Is_7kfVo.js.map} +1 -1
- package/dist/chunks/{approval-wrapper-BTtmXMlk.esm.js → approval-wrapper-_kYfACQp.esm.js} +2 -2
- package/dist/chunks/{approval-wrapper-BTtmXMlk.esm.js.map → approval-wrapper-_kYfACQp.esm.js.map} +1 -1
- package/dist/chunks/{chat-bot-osiGMG3g.js → chat-bot-2Ga_xA_K.js} +32 -38
- package/dist/chunks/chat-bot-2Ga_xA_K.js.map +1 -0
- package/dist/chunks/{chat-bot-BpNtrZEL.esm.js → chat-bot-DO3vAGxA.esm.js} +33 -39
- package/dist/chunks/chat-bot-DO3vAGxA.esm.js.map +1 -0
- package/dist/chunks/common-BgXEAs_y.esm.js +851 -0
- package/dist/chunks/common-BgXEAs_y.esm.js.map +1 -0
- package/dist/chunks/{common-yORBIVv-.esm.js → common-Cl5oGXmX.esm.js} +2 -2
- package/dist/chunks/{common-yORBIVv-.esm.js.map → common-Cl5oGXmX.esm.js.map} +1 -1
- package/dist/chunks/common-D6T6NGWY.js +850 -0
- package/dist/chunks/common-D6T6NGWY.js.map +1 -0
- package/dist/chunks/{common-CS5L0Ld_.js → common-PH2uWkqL.js} +2 -2
- package/dist/chunks/{common-CS5L0Ld_.js.map → common-PH2uWkqL.js.map} +1 -1
- package/dist/chunks/common-utility-CA_Upser.js.map +1 -1
- package/dist/chunks/{common-utility-DGpbsf7S.esm.js → common-utility-CS_sNoAC.esm.js} +2 -2
- package/dist/chunks/common-utility-CS_sNoAC.esm.js.map +1 -0
- package/dist/chunks/company-selection-modal-B7jFVWWs.js.map +1 -1
- package/dist/chunks/company-selection-modal-Dn2L_skh.esm.js.map +1 -1
- package/dist/chunks/{constant-Bwg2s_Sn.esm.js → constant-BXPcBhJN.esm.js} +35 -5
- package/dist/chunks/constant-BXPcBhJN.esm.js.map +1 -0
- package/dist/chunks/{constant-ZYAN_teD.js → constant-BXeJD4Af.js} +35 -5
- package/dist/chunks/constant-BXeJD4Af.js.map +1 -0
- package/dist/chunks/{constants-nmkxkzps.esm.js → constants-BrmMAwu2.esm.js} +2 -2
- package/dist/chunks/{constants-nmkxkzps.esm.js.map → constants-BrmMAwu2.esm.js.map} +1 -1
- package/dist/chunks/{constants-06kIVUBw.js → constants-D_xuLHSu.js} +2 -2
- package/dist/chunks/{constants-06kIVUBw.js.map → constants-D_xuLHSu.js.map} +1 -1
- package/dist/chunks/{custom-editor-6-xqhKz6.esm.js → custom-editor-C-B5BK-H.esm.js} +3 -3
- package/dist/chunks/{custom-editor-6-xqhKz6.esm.js.map → custom-editor-C-B5BK-H.esm.js.map} +1 -1
- package/dist/chunks/{custom-form-DD7YOHMF.esm.js → custom-form-DNUpk0nq.esm.js} +7 -7
- package/dist/chunks/{custom-form-DD7YOHMF.esm.js.map → custom-form-DNUpk0nq.esm.js.map} +1 -1
- package/dist/chunks/{custom-form-CFU7NEVb.js → custom-form-T4yc_sE_.js} +4 -4
- package/dist/chunks/{custom-form-CFU7NEVb.js.map → custom-form-T4yc_sE_.js.map} +1 -1
- package/dist/chunks/{dashboard-DL83yYRR.esm.js → dashboard-B4xzJ1Xc.esm.js} +4 -4
- package/dist/chunks/{dashboard-DL83yYRR.esm.js.map → dashboard-B4xzJ1Xc.esm.js.map} +1 -1
- package/dist/chunks/{dashboard-BcWVkWZt.js → dashboard-eMHQayU_.js} +3 -3
- package/dist/chunks/{dashboard-BcWVkWZt.js.map → dashboard-eMHQayU_.js.map} +1 -1
- package/dist/chunks/default-data-6IxhqPTP.esm.js.map +1 -1
- package/dist/chunks/default-data-yreKVx_z.js.map +1 -1
- package/dist/chunks/{dynamic-report-tKn-KqAd.esm.js → dynamic-report-CMguvXj2.esm.js} +4 -4
- package/dist/chunks/{dynamic-report-tKn-KqAd.esm.js.map → dynamic-report-CMguvXj2.esm.js.map} +1 -1
- package/dist/chunks/{dynamic-rows-CTGETfcP.esm.js → dynamic-rows-CmAE9nbA.esm.js} +2 -2
- package/dist/chunks/{dynamic-rows-CTGETfcP.esm.js.map → dynamic-rows-CmAE9nbA.esm.js.map} +1 -1
- package/dist/chunks/{dynamic-text-editor-CPvlGcLK.esm.js → dynamic-text-editor-CSWdR1lK.esm.js} +2 -2
- package/dist/chunks/{dynamic-text-editor-CPvlGcLK.esm.js.map → dynamic-text-editor-CSWdR1lK.esm.js.map} +1 -1
- package/dist/chunks/edit-section-modal-Br2ITvLk.js.map +1 -1
- package/dist/chunks/{edit-section-modal-BW-aZmUv.esm.js → edit-section-modal-HihKbN6K.esm.js} +2 -2
- package/dist/chunks/edit-section-modal-HihKbN6K.esm.js.map +1 -0
- package/dist/chunks/{filter-COXKBEER.esm.js → filter-D9BHP_qc.esm.js} +5 -5
- package/dist/chunks/{filter-COXKBEER.esm.js.map → filter-D9BHP_qc.esm.js.map} +1 -1
- package/dist/chunks/{filter-Cr_OSIpb.js → filter-DtCrOG6W.js} +3 -3
- package/dist/chunks/{filter-Cr_OSIpb.js.map → filter-DtCrOG6W.js.map} +1 -1
- package/dist/chunks/{footer-m3_dlNl8.esm.js → footer-Bv5NOAf9.esm.js} +2 -2
- package/dist/chunks/{footer-m3_dlNl8.esm.js.map → footer-Bv5NOAf9.esm.js.map} +1 -1
- package/dist/chunks/{footer-CD3kMRdS.js → footer-DioOh69g.js} +2 -2
- package/dist/chunks/{footer-CD3kMRdS.js.map → footer-DioOh69g.js.map} +1 -1
- package/dist/chunks/{form-fields-yE9kwjvb.js → form-fields-BYDhbAgB.js} +2 -2
- package/dist/chunks/{form-fields-yE9kwjvb.js.map → form-fields-BYDhbAgB.js.map} +1 -1
- package/dist/chunks/{form-fields-hMMnB_wE.esm.js → form-fields-Di-p9XKG.esm.js} +2 -2
- package/dist/chunks/{form-fields-hMMnB_wE.esm.js.map → form-fields-Di-p9XKG.esm.js.map} +1 -1
- package/dist/chunks/{form-parser-m4fnw38a.js → form-parser-BnMdMDSb.js} +2 -2
- package/dist/chunks/{form-parser-m4fnw38a.js.map → form-parser-BnMdMDSb.js.map} +1 -1
- package/dist/chunks/{form-parser-DbnSn5eY.esm.js → form-parser-ZQpEVrzG.esm.js} +2 -2
- package/dist/chunks/{form-parser-DbnSn5eY.esm.js.map → form-parser-ZQpEVrzG.esm.js.map} +1 -1
- package/dist/chunks/{form-section-TMjdOVeW.esm.js → form-section-BJ7Iqb9R.esm.js} +5 -5
- package/dist/chunks/{form-section-TMjdOVeW.esm.js.map → form-section-BJ7Iqb9R.esm.js.map} +1 -1
- package/dist/chunks/{form-section-CPIyMdk2.js → form-section-CFeWD-tF.js} +5 -5
- package/dist/chunks/{form-section-CPIyMdk2.js.map → form-section-CFeWD-tF.js.map} +1 -1
- package/dist/chunks/{fullScreen-DFgzE41_.esm.js → fullScreen-Cz3FIdU4.esm.js} +5 -5
- package/dist/chunks/fullScreen-Cz3FIdU4.esm.js.map +1 -0
- package/dist/chunks/{fullScreen-BLLa9ogA.js → fullScreen-h0JqBN4O.js} +5 -5
- package/dist/chunks/fullScreen-h0JqBN4O.js.map +1 -0
- package/dist/chunks/{global-search-BjKPmzsQ.js → global-search-BTV5iL6-.js} +2 -2
- package/dist/chunks/{global-search-BjKPmzsQ.js.map → global-search-BTV5iL6-.js.map} +1 -1
- package/dist/chunks/{global-search-BOkxXiZ0.esm.js → global-search-CGmupYFQ.esm.js} +3 -3
- package/dist/chunks/{global-search-BOkxXiZ0.esm.js.map → global-search-CGmupYFQ.esm.js.map} +1 -1
- package/dist/chunks/{grid-view-Bo86x7YL.esm.js → grid-view-BMfleQMC.esm.js} +2 -2
- package/dist/chunks/{grid-view-Bo86x7YL.esm.js.map → grid-view-BMfleQMC.esm.js.map} +1 -1
- package/dist/chunks/{header-B-HaoeK7.esm.js → header-BnVzqpGs.esm.js} +12 -10
- package/dist/chunks/{header-B-HaoeK7.esm.js.map → header-BnVzqpGs.esm.js.map} +1 -1
- package/dist/chunks/{header-enhanced-BjfqyQ1a.esm.js → header-enhanced-CkROCaOF.esm.js} +3 -3
- package/dist/chunks/{header-enhanced-BjfqyQ1a.esm.js.map → header-enhanced-CkROCaOF.esm.js.map} +1 -1
- package/dist/chunks/{header-enhanced-gJl4iC4m.js → header-enhanced-Dxdetx0I.js} +3 -3
- package/dist/chunks/{header-enhanced-gJl4iC4m.js.map → header-enhanced-Dxdetx0I.js.map} +1 -1
- package/dist/chunks/{header-BHsex2As.js → header-jWPMgcy6.js} +11 -9
- package/dist/chunks/{header-BHsex2As.js.map → header-jWPMgcy6.js.map} +1 -1
- package/dist/chunks/{index-ALqg8b5U.esm.js → index-BCmGHdos.esm.js} +2 -2
- package/dist/chunks/{index-ALqg8b5U.esm.js.map → index-BCmGHdos.esm.js.map} +1 -1
- package/dist/chunks/{index-BBWIBqaP.js → index-DBvje0t5.js} +73 -66
- package/dist/chunks/{index-BBWIBqaP.js.map → index-DBvje0t5.js.map} +1 -1
- package/dist/chunks/{index-BuPgYdiN.esm.js → index-DqwpZRkl.esm.js} +73 -66
- package/dist/chunks/{index-BuPgYdiN.esm.js.map → index-DqwpZRkl.esm.js.map} +1 -1
- package/dist/chunks/{inline-edit-fields-atDP84QL.js → inline-edit-fields-Cd_qUOjU.js} +2 -2
- package/dist/chunks/{inline-edit-fields-atDP84QL.js.map → inline-edit-fields-Cd_qUOjU.js.map} +1 -1
- package/dist/chunks/{inline-edit-fields-BYhRpPcH.esm.js → inline-edit-fields-VOIx3qmC.esm.js} +2 -2
- package/dist/chunks/{inline-edit-fields-BYhRpPcH.esm.js.map → inline-edit-fields-VOIx3qmC.esm.js.map} +1 -1
- package/dist/chunks/{inventory-reports-title-bar-Bog2i0dr.js → inventory-reports-title-bar-BfUMM54c.js} +2 -2
- package/dist/chunks/{inventory-reports-title-bar-Bog2i0dr.js.map → inventory-reports-title-bar-BfUMM54c.js.map} +1 -1
- package/dist/chunks/{inventory-reports-title-bar-CP8FzW6A.esm.js → inventory-reports-title-bar-CZZFFqDc.esm.js} +3 -3
- package/dist/chunks/{inventory-reports-title-bar-CP8FzW6A.esm.js.map → inventory-reports-title-bar-CZZFFqDc.esm.js.map} +1 -1
- package/dist/chunks/{item-response-details-SHSD-nBh.esm.js → item-response-details-BTHf6ZvN.esm.js} +4 -4
- package/dist/chunks/{item-response-details-SHSD-nBh.esm.js.map → item-response-details-BTHf6ZvN.esm.js.map} +1 -1
- package/dist/chunks/{item-response-details-DsGQ7Dlc.js → item-response-details-BheThTTK.js} +2 -2
- package/dist/chunks/{item-response-details-DsGQ7Dlc.js.map → item-response-details-BheThTTK.js.map} +1 -1
- package/dist/chunks/{listing-DIuzQrzb.js → listing-Dr_1DDBr.js} +4 -4
- package/dist/chunks/{listing-DIuzQrzb.js.map → listing-Dr_1DDBr.js.map} +1 -1
- package/dist/chunks/{listing-C0Yb6MVq.esm.js → listing-ELQeM6S3.esm.js} +4 -4
- package/dist/chunks/{listing-C0Yb6MVq.esm.js.map → listing-ELQeM6S3.esm.js.map} +1 -1
- package/dist/chunks/{location-select-g5uczAUF.js → location-select-CLyRUilk.js} +2 -2
- package/dist/chunks/{location-select-g5uczAUF.js.map → location-select-CLyRUilk.js.map} +1 -1
- package/dist/chunks/{location-select-CFa00fy4.esm.js → location-select-z1C88kCy.esm.js} +2 -2
- package/dist/chunks/{location-select-CFa00fy4.esm.js.map → location-select-z1C88kCy.esm.js.map} +1 -1
- package/dist/chunks/{material-editable-table-BGLjrTzT.js → material-editable-table-DFGB0q-s.js} +3 -3
- package/dist/chunks/{material-editable-table-BGLjrTzT.js.map → material-editable-table-DFGB0q-s.js.map} +1 -1
- package/dist/chunks/{material-editable-table-pAyK7KYf.esm.js → material-editable-table-DyGdqNkX.esm.js} +4 -4
- package/dist/chunks/{material-editable-table-pAyK7KYf.esm.js.map → material-editable-table-DyGdqNkX.esm.js.map} +1 -1
- package/dist/chunks/{metaComponent-B6kkj54U.esm.js → metaComponent-BqgfR7kW.esm.js} +2 -2
- package/dist/chunks/{metaComponent-B6kkj54U.esm.js.map → metaComponent-BqgfR7kW.esm.js.map} +1 -1
- package/dist/chunks/{metaComponent-D9sAbeXz.js → metaComponent-GukpY87Z.js} +2 -2
- package/dist/chunks/{metaComponent-D9sAbeXz.js.map → metaComponent-GukpY87Z.js.map} +1 -1
- package/dist/chunks/{module-reducer-DMxxForv.esm.js → module-reducer-CEv3LZCX.esm.js} +2 -2
- package/dist/chunks/{module-reducer-DMxxForv.esm.js.map → module-reducer-CEv3LZCX.esm.js.map} +1 -1
- package/dist/chunks/{modules-maXT99-4.js → modules-DTRr7zwt.js} +5 -5
- package/dist/chunks/{modules-maXT99-4.js.map → modules-DTRr7zwt.js.map} +1 -1
- package/dist/chunks/{modules-BBu2Y-K9.esm.js → modules-enwLrpfQ.esm.js} +5 -5
- package/dist/chunks/{modules-BBu2Y-K9.esm.js.map → modules-enwLrpfQ.esm.js.map} +1 -1
- package/dist/chunks/{notification-menu-D7ASm-K1.js → notification-menu-B00hDUbn.js} +2 -2
- package/dist/chunks/{notification-menu-D7ASm-K1.js.map → notification-menu-B00hDUbn.js.map} +1 -1
- package/dist/chunks/{notification-menu-XAadkn-e.esm.js → notification-menu-CehCt5fA.esm.js} +4 -4
- package/dist/chunks/{notification-menu-XAadkn-e.esm.js.map → notification-menu-CehCt5fA.esm.js.map} +1 -1
- package/dist/chunks/{page-action-C07iGjvN.esm.js → page-action-RqVevciV.esm.js} +4 -4
- package/dist/chunks/{page-action-C07iGjvN.esm.js.map → page-action-RqVevciV.esm.js.map} +1 -1
- package/dist/chunks/{page-action-BPzaL2KJ.js → page-action-TMFOytDw.js} +2 -2
- package/dist/chunks/{page-action-BPzaL2KJ.js.map → page-action-TMFOytDw.js.map} +1 -1
- package/dist/chunks/{page-navigator-8gZpp9_P.esm.js → page-navigator-CuIJ0KGf.esm.js} +2 -2
- package/dist/chunks/{page-navigator-8gZpp9_P.esm.js.map → page-navigator-CuIJ0KGf.esm.js.map} +1 -1
- package/dist/chunks/{page-navigator-Cgbh3tTG.js → page-navigator-DdRsmtLy.js} +2 -2
- package/dist/chunks/{page-navigator-Cgbh3tTG.js.map → page-navigator-DdRsmtLy.js.map} +1 -1
- package/dist/chunks/{page-view-DJ6HS_dV.js → page-view-CvfqzV03.js} +3 -3
- package/dist/chunks/{page-view-DJ6HS_dV.js.map → page-view-CvfqzV03.js.map} +1 -1
- package/dist/chunks/{page-view-CokUNMBn.esm.js → page-view-Daz-OKd_.esm.js} +3 -3
- package/dist/chunks/{page-view-CokUNMBn.esm.js.map → page-view-Daz-OKd_.esm.js.map} +1 -1
- package/dist/chunks/{pathname.rental-qsAe3XFd.esm.js → pathname.rental-CqHO_l_D.esm.js} +76 -81
- package/dist/chunks/{pathname.rental-qsAe3XFd.esm.js.map → pathname.rental-CqHO_l_D.esm.js.map} +1 -1
- package/dist/chunks/{pathname.rental-DgH4LoG7.js → pathname.rental-CwK6JuID.js} +2 -7
- package/dist/chunks/{pathname.rental-DgH4LoG7.js.map → pathname.rental-CwK6JuID.js.map} +1 -1
- package/dist/chunks/{quick-approval-modal-CPWs8htH.esm.js → quick-approval-modal-B-jvkgue.esm.js} +2 -2
- package/dist/chunks/{quick-approval-modal-CPWs8htH.esm.js.map → quick-approval-modal-B-jvkgue.esm.js.map} +1 -1
- package/dist/chunks/{reducer-CdJ6znKF.esm.js → reducer-BMkh_0Py.esm.js} +3 -3
- package/dist/chunks/{reducer-CdJ6znKF.esm.js.map → reducer-BMkh_0Py.esm.js.map} +1 -1
- package/dist/chunks/{reducer-3tSO6RW6.esm.js → reducer-BOwyP0QZ.esm.js} +3 -3
- package/dist/chunks/{reducer-3tSO6RW6.esm.js.map → reducer-BOwyP0QZ.esm.js.map} +1 -1
- package/dist/chunks/{reducer-IsgN83rP.esm.js → reducer-BTfG9J4W.esm.js} +2 -2
- package/dist/chunks/{reducer-IsgN83rP.esm.js.map → reducer-BTfG9J4W.esm.js.map} +1 -1
- package/dist/chunks/{reducer-yyZtsg1A.esm.js → reducer-BWiX5vxL.esm.js} +2 -2
- package/dist/chunks/{reducer-yyZtsg1A.esm.js.map → reducer-BWiX5vxL.esm.js.map} +1 -1
- package/dist/chunks/{reducer-sgaK2vfW.esm.js → reducer-CD1VDqeT.esm.js} +2 -2
- package/dist/chunks/{reducer-sgaK2vfW.esm.js.map → reducer-CD1VDqeT.esm.js.map} +1 -1
- package/dist/chunks/{reports-title-bar-Kz6JjqsY.js → reports-title-bar-B1_IweEc.js} +2 -2
- package/dist/chunks/{reports-title-bar-Kz6JjqsY.js.map → reports-title-bar-B1_IweEc.js.map} +1 -1
- package/dist/chunks/{reports-title-bar-Cay4E8SQ.esm.js → reports-title-bar-Kl8XQe-K.esm.js} +4 -4
- package/dist/chunks/{reports-title-bar-Cay4E8SQ.esm.js.map → reports-title-bar-Kl8XQe-K.esm.js.map} +1 -1
- package/dist/chunks/{route-page-map-Dn-SAbdf.js → route-page-map-CzFUh-SC.js} +3 -60
- package/dist/chunks/{route-page-map-Dn-SAbdf.js.map → route-page-map-CzFUh-SC.js.map} +1 -1
- package/dist/chunks/{route-page-map-DkWoisiB.esm.js → route-page-map-D6-7jBQT.esm.js} +76 -133
- package/dist/chunks/{route-page-map-DkWoisiB.esm.js.map → route-page-map-D6-7jBQT.esm.js.map} +1 -1
- package/dist/chunks/{routes-CAc76Zan.esm.js → routes-D9y_XQRu.esm.js} +4 -4
- package/dist/chunks/{routes-CAc76Zan.esm.js.map → routes-D9y_XQRu.esm.js.map} +1 -1
- package/dist/chunks/{routes-CfqLAYgR.js → routes-Dsumzjw0.js} +4 -4
- package/dist/chunks/{routes-CfqLAYgR.js.map → routes-Dsumzjw0.js.map} +1 -1
- package/dist/chunks/{schedule-report-B4ZfEuiU.js → schedule-report-BwmZ5jea.js} +4 -4
- package/dist/chunks/{schedule-report-B4ZfEuiU.js.map → schedule-report-BwmZ5jea.js.map} +1 -1
- package/dist/chunks/{schedule-report-CLXjjfjc.esm.js → schedule-report-CJXHVZ68.esm.js} +6 -6
- package/dist/chunks/{schedule-report-CLXjjfjc.esm.js.map → schedule-report-CJXHVZ68.esm.js.map} +1 -1
- package/dist/chunks/{schedule-report-modal-CB3G9H7x.esm.js → schedule-report-modal-D8Y-TZ4u.esm.js} +3 -3
- package/dist/chunks/{schedule-report-modal-CB3G9H7x.esm.js.map → schedule-report-modal-D8Y-TZ4u.esm.js.map} +1 -1
- package/dist/chunks/{schedule-report-modal-iwoDI-sg.js → schedule-report-modal-iNnWP9s4.js} +2 -2
- package/dist/chunks/{schedule-report-modal-iwoDI-sg.js.map → schedule-report-modal-iNnWP9s4.js.map} +1 -1
- package/dist/chunks/{searchable-select-0F6E4XAr.esm.js → searchable-select-BQtcqBKV.esm.js} +6 -6
- package/dist/chunks/{searchable-select-0F6E4XAr.esm.js.map → searchable-select-BQtcqBKV.esm.js.map} +1 -1
- package/dist/chunks/{searchable-select-_DCkITfk.js → searchable-select-DVUCWWti.js} +2 -2
- package/dist/chunks/{searchable-select-_DCkITfk.js.map → searchable-select-DVUCWWti.js.map} +1 -1
- package/dist/chunks/{share-modal-BaEyZs2h.esm.js → share-modal-BOyLBawK.esm.js} +3 -3
- package/dist/chunks/{share-modal-BaEyZs2h.esm.js.map → share-modal-BOyLBawK.esm.js.map} +1 -1
- package/dist/chunks/{share-modal-DrXvh-fV.js → share-modal-CobK7BN7.js} +2 -2
- package/dist/chunks/{share-modal-DrXvh-fV.js.map → share-modal-CobK7BN7.js.map} +1 -1
- package/dist/chunks/{share-modal-enhanced-DnEdDBmu.esm.js → share-modal-enhanced-CTp-tQw8.esm.js} +2 -2
- package/dist/chunks/{share-modal-enhanced-DnEdDBmu.esm.js.map → share-modal-enhanced-CTp-tQw8.esm.js.map} +1 -1
- package/dist/chunks/{share-modal-enhanced-BTr0zRhF.js → share-modal-enhanced-DVarD-jt.js} +2 -2
- package/dist/chunks/{share-modal-enhanced-BTr0zRhF.js.map → share-modal-enhanced-DVarD-jt.js.map} +1 -1
- package/dist/chunks/{sidebarScreen-DpYj_wlK.js → sidebarScreen-K-dlM6NA.js} +3 -3
- package/dist/chunks/{sidebarScreen-DpYj_wlK.js.map → sidebarScreen-K-dlM6NA.js.map} +1 -1
- package/dist/chunks/{sidebarScreen-DiOAiXeU.esm.js → sidebarScreen-lR6rw8bW.esm.js} +4 -4
- package/dist/chunks/{sidebarScreen-DiOAiXeU.esm.js.map → sidebarScreen-lR6rw8bW.esm.js.map} +1 -1
- package/dist/chunks/{store-BL5VFPie.esm.js → store-DJh8C3Vv.esm.js} +6 -6
- package/dist/chunks/{store-BL5VFPie.esm.js.map → store-DJh8C3Vv.esm.js.map} +1 -1
- package/dist/chunks/{table-DWx7x8zw.js → table-Bpt6ggr3.js} +2 -2
- package/dist/chunks/{table-DWx7x8zw.js.map → table-Bpt6ggr3.js.map} +1 -1
- package/dist/chunks/{table-gxAlAeTq.esm.js → table-DI3MyTNm.esm.js} +3 -3
- package/dist/chunks/{table-gxAlAeTq.esm.js.map → table-DI3MyTNm.esm.js.map} +1 -1
- package/dist/chunks/{table-form-DsTwCUcs.esm.js → table-form-8_f3FwhX.esm.js} +2 -2
- package/dist/chunks/{table-form-DsTwCUcs.esm.js.map → table-form-8_f3FwhX.esm.js.map} +1 -1
- package/dist/chunks/{template-editor-router-D4NIwVws.js → template-editor-router-DugWbCh0.js} +2 -2
- package/dist/chunks/{template-editor-router-D4NIwVws.js.map → template-editor-router-DugWbCh0.js.map} +1 -1
- package/dist/chunks/{template-editor-router-BXLUTvsk.esm.js → template-editor-router-uzghBOap.esm.js} +2 -2
- package/dist/chunks/{template-editor-router-BXLUTvsk.esm.js.map → template-editor-router-uzghBOap.esm.js.map} +1 -1
- package/dist/chunks/{template-modal-B2VgotrF.esm.js → template-modal-D7aLacan.esm.js} +7 -6
- package/dist/chunks/template-modal-D7aLacan.esm.js.map +1 -0
- package/dist/chunks/{template-modal-X-iSmlki.js → template-modal-Df7gF4QI.js} +5 -4
- package/dist/chunks/template-modal-Df7gF4QI.js.map +1 -0
- package/dist/chunks/{template-name-modal-CeqxIE2r.js → template-name-modal-ClreVUaz.js} +12 -5
- package/dist/chunks/template-name-modal-ClreVUaz.js.map +1 -0
- package/dist/chunks/{template-name-modal-Dctn8t3t.esm.js → template-name-modal-Dwe7U72p.esm.js} +12 -5
- package/dist/chunks/template-name-modal-Dwe7U72p.esm.js.map +1 -0
- package/dist/chunks/{templates-CCy1eG6A.esm.js → templates-9ZMHwRR6.esm.js} +10 -17
- package/dist/chunks/templates-9ZMHwRR6.esm.js.map +1 -0
- package/dist/chunks/{templates-CUREMwYo.js → templates-DCXbeOtH.js} +7 -14
- package/dist/chunks/templates-DCXbeOtH.js.map +1 -0
- package/dist/chunks/{text-area-B3nAZgFI.js → text-area-DxJs3eyE.js} +2 -2
- package/dist/chunks/{text-area-B3nAZgFI.js.map → text-area-DxJs3eyE.js.map} +1 -1
- package/dist/chunks/{text-area-xMWbJY0H.esm.js → text-area-zcBhicgg.esm.js} +2 -2
- package/dist/chunks/{text-area-xMWbJY0H.esm.js.map → text-area-zcBhicgg.esm.js.map} +1 -1
- package/dist/chunks/{text-measurement-BCjauPbB.esm.js → text-measurement-DMVkqP6b.esm.js} +2 -2
- package/dist/chunks/{text-measurement-BCjauPbB.esm.js.map → text-measurement-DMVkqP6b.esm.js.map} +1 -1
- package/dist/chunks/{translations-BrwQcVN3.esm.js → translations-JcE6qyDJ.esm.js} +3 -3
- package/dist/chunks/{translations-BrwQcVN3.esm.js.map → translations-JcE6qyDJ.esm.js.map} +1 -1
- package/dist/chunks/{uom-field-wrapper-DXZgzOYB.js → uom-field-wrapper-CSqeiVPY.js} +2 -2
- package/dist/chunks/{uom-field-wrapper-DXZgzOYB.js.map → uom-field-wrapper-CSqeiVPY.js.map} +1 -1
- package/dist/chunks/{uom-field-wrapper-CTbEc-MB.esm.js → uom-field-wrapper-CWTsSsSi.esm.js} +2 -2
- package/dist/chunks/{uom-field-wrapper-CTbEc-MB.esm.js.map → uom-field-wrapper-CWTsSsSi.esm.js.map} +1 -1
- package/dist/chunks/{upload-excel-BZPP13tP.esm.js → upload-excel-CkEQqZW2.esm.js} +2 -2
- package/dist/chunks/{upload-excel-BZPP13tP.esm.js.map → upload-excel-CkEQqZW2.esm.js.map} +1 -1
- package/dist/chunks/{use-translations-CcjSFA3F.esm.js → use-translations-BqBPN1DM.esm.js} +3 -3
- package/dist/chunks/{use-translations-CcjSFA3F.esm.js.map → use-translations-BqBPN1DM.esm.js.map} +1 -1
- package/dist/chunks/{use-translations-5wUQBxMm.js → use-translations-Cn3b4Kqh.js} +2 -2
- package/dist/chunks/{use-translations-5wUQBxMm.js.map → use-translations-Cn3b4Kqh.js.map} +1 -1
- package/dist/chunks/{useAccountSetting-vAqgEiJB.esm.js → useAccountSetting-DsU5zsjb.esm.js} +2 -2
- package/dist/chunks/{useAccountSetting-vAqgEiJB.esm.js.map → useAccountSetting-DsU5zsjb.esm.js.map} +1 -1
- package/dist/chunks/{useCheckSkuAndName-Dl24wQO-.esm.js → useCheckSkuAndName-5ua30aZf.esm.js} +2 -2
- package/dist/chunks/{useCheckSkuAndName-Dl24wQO-.esm.js.map → useCheckSkuAndName-5ua30aZf.esm.js.map} +1 -1
- package/dist/chunks/{useReduxIntegration-DZBfKF7d.esm.js → useReduxIntegration-BlLpfwk6.esm.js} +2 -2
- package/dist/chunks/{useReduxIntegration-DZBfKF7d.esm.js.map → useReduxIntegration-BlLpfwk6.esm.js.map} +1 -1
- package/dist/chunks/{useUniquenessCheck-bYjnp_0P.esm.js → useUniquenessCheck-CiR2q5bM.esm.js} +2 -2
- package/dist/chunks/{useUniquenessCheck-bYjnp_0P.esm.js.map → useUniquenessCheck-CiR2q5bM.esm.js.map} +1 -1
- package/dist/chunks/{useVendorAICompare-DZRFDk4i.esm.js → useVendorAICompare-DMJvJJ3Y.esm.js} +2 -2
- package/dist/chunks/{useVendorAICompare-DZRFDk4i.esm.js.map → useVendorAICompare-DMJvJJ3Y.esm.js.map} +1 -1
- package/dist/chunks/{value-editor-BSS9Ns2T.js → value-editor-Br7X_wEB.js} +2 -2
- package/dist/chunks/{value-editor-BSS9Ns2T.js.map → value-editor-Br7X_wEB.js.map} +1 -1
- package/dist/chunks/{value-editor-DQ1qgZ2u.esm.js → value-editor-BxFdnUyM.esm.js} +4 -4
- package/dist/chunks/{value-editor-DQ1qgZ2u.esm.js.map → value-editor-BxFdnUyM.esm.js.map} +1 -1
- package/dist/chunks/{vendor-ai-summary-BA6m2dH9.esm.js → vendor-ai-summary-Cpx90QOx.esm.js} +2 -2
- package/dist/chunks/{vendor-ai-summary-BA6m2dH9.esm.js.map → vendor-ai-summary-Cpx90QOx.esm.js.map} +1 -1
- package/dist/chunks/{vendor-ai-summary-DWmAaQ_N.js → vendor-ai-summary-zranZkfk.js} +2 -2
- package/dist/chunks/{vendor-ai-summary-DWmAaQ_N.js.map → vendor-ai-summary-zranZkfk.js.map} +1 -1
- 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/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/index.esm.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/index.esm.js +1 -1
- package/dist/components/chat-bot/index.esm.js +1 -1
- package/dist/components/chat-bot/index.js +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/index.esm.js +1 -1
- package/dist/components/custom-forms/index.esm.js +2 -2
- package/dist/components/custom-forms/index.js +1 -1
- 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/index.esm.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/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/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 +4 -4
- package/dist/components/form-control/form-builder/form-builder-element/index.js +3 -3
- 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 +4 -4
- package/dist/components/form-control/form-builder/index.js +3 -3
- 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 +6 -6
- package/dist/components/form-control/index.js +5 -5
- package/dist/components/header/components/app-switcher/index.esm.js +1 -1
- package/dist/components/header/components/app-switcher/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 +3 -3
- package/dist/components/header/redux/actionCreator/index.esm.js +1 -1
- package/dist/components/header/redux/index.esm.js +2 -2
- package/dist/components/header/redux/reducer/index.esm.js +1 -1
- package/dist/components/index.esm.js +37 -37
- package/dist/components/index.js +28 -28
- package/dist/components/inventory-reports-title-bar/index.esm.js +3 -3
- package/dist/components/inventory-reports-title-bar/index.js +1 -1
- 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/index.esm.js +2 -2
- package/dist/components/inventory-reports-title-bar/redux/reducer/index.esm.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/index.esm.js +1 -1
- package/dist/components/quick-approval-modal/index.esm.js +1 -1
- package/dist/components/quick-approval-modal/quick-approval-modal/index.esm.js +1 -1
- package/dist/components/reports/dynamic-report/dynamic-report/index.esm.js +1 -1
- package/dist/components/reports/dynamic-report/dynamic-rows/index.esm.js +1 -1
- package/dist/components/reports/dynamic-report/index.esm.js +2 -2
- package/dist/components/reports/index.esm.js +2 -2
- package/dist/components/reports-title-bar/index.esm.js +3 -3
- package/dist/components/reports-title-bar/index.js +1 -1
- package/dist/components/reports-title-bar/redux/actionCreator/index.esm.js +1 -1
- package/dist/components/reports-title-bar/redux/index.esm.js +2 -2
- package/dist/components/reports-title-bar/redux/reducer/index.esm.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/schedule-report/utils/common/index.esm.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 +2 -2
- package/dist/components/share-modal/redux/actionCreator/index.esm.js +1 -1
- package/dist/components/share-modal/redux/index.esm.js +2 -2
- package/dist/components/share-modal/redux/reducer/index.esm.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/text-area/index.esm.js +1 -1
- package/dist/components/text-area/index.js +1 -1
- package/dist/components/text-area/text-area/index.esm.js +1 -1
- package/dist/components/text-area/text-area/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/upload-excel/index.esm.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 +143 -145
- package/dist/constants/index.js +3 -5
- package/dist/constants/index.js.map +1 -1
- package/dist/hooks/index.esm.js +6 -6
- package/dist/hooks/index.js +1 -1
- 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/useCheckSkuAndName/index.esm.js +1 -1
- package/dist/hooks/useReduxIntegration/index.esm.js +1 -1
- package/dist/hooks/useUniquenessCheck/index.esm.js +1 -1
- package/dist/images/index.esm.js +5 -5
- package/dist/images/index.esm.js.map +1 -1
- package/dist/images/index.js +5 -5
- package/dist/images/index.js.map +1 -1
- package/dist/index.esm.js +237 -234
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +69 -66
- 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/runtime/index.esm.js +4 -4
- package/dist/runtime/index.js +2 -2
- package/dist/src/components/chat-bot/chat-bot-welcome.d.ts +1 -2
- package/dist/src/components/chat-bot/chat-bot.d.ts +1 -5
- package/dist/src/constants/defaultColumns.d.ts +0 -1
- package/dist/src/constants/pathnames/pathname.procurement.d.ts +0 -4
- package/dist/src/layout/fullScreen/fullScreen.d.ts +0 -1
- package/dist/src/views/template-editor/components/EditorCanvas/FreeCanvas.d.ts +34 -0
- package/dist/src/views/template-editor/components/EditorCanvas/FreeElement.d.ts +30 -0
- package/dist/src/views/template-editor/components/EditorCanvas.d.ts +30 -12
- package/dist/src/views/template-editor/components/EditorHeader.d.ts +6 -0
- package/dist/src/views/template-editor/components/EditorSection.d.ts +1 -0
- package/dist/src/views/template-editor/components/SectionFlowEditor.d.ts +2 -3
- package/dist/src/views/template-editor/components/SectionFormatPanel.d.ts +2 -1
- package/dist/src/views/template-editor/components/controllers/TableControls.d.ts +23 -0
- package/dist/src/views/template-editor/components/controllers/TextControls.d.ts +3 -0
- package/dist/src/views/template-editor/components/stationery/StationeryPreview.d.ts +24 -0
- package/dist/src/views/template-editor/components/stationery/StationerySidebar.d.ts +9 -0
- package/dist/src/views/template-editor/engine/ai.d.ts +12 -0
- package/dist/src/views/template-editor/engine/app.d.ts +1 -0
- package/dist/src/views/template-editor/engine/controls.d.ts +4 -0
- package/dist/src/views/template-editor/engine/design-canvas.d.ts +24 -0
- package/dist/src/views/template-editor/engine/editor.d.ts +17 -0
- package/dist/src/views/template-editor/engine/engine.d.ts +18 -0
- package/dist/src/views/template-editor/engine/icons.d.ts +91 -0
- package/dist/src/views/template-editor/engine/letterpads.d.ts +1 -0
- package/dist/src/views/template-editor/engine/model.d.ts +20 -0
- package/dist/src/views/template-editor/engine/paginator.d.ts +30 -0
- package/dist/src/views/template-editor/engine/picker.d.ts +20 -0
- package/dist/src/views/template-editor/engine/schema.d.ts +647 -0
- package/dist/src/views/template-editor/engine/stationery-app.d.ts +10 -0
- package/dist/src/views/template-editor/engine/stationery-doc.d.ts +62 -0
- package/dist/src/views/template-editor/engine/stationery-free-element.d.ts +22 -0
- package/dist/src/views/template-editor/engine/stationery-store.d.ts +154 -0
- package/dist/src/views/template-editor/engine/templatebuilder.d.ts +51 -0
- package/dist/src/views/template-editor/engine/templates.d.ts +11 -0
- package/dist/src/views/template-editor/icons/custom-styled-icon.d.ts +7 -0
- package/dist/src/views/template-editor/icons/edit.d.ts +4 -0
- package/dist/src/views/template-editor/icons/trash.d.ts +4 -0
- package/dist/src/views/template-editor/types/editor.d.ts +20 -108
- package/dist/src/views/template-editor/types/stationery.d.ts +66 -0
- package/dist/src/views/template-editor/utils/common.d.ts +10 -1
- package/dist/src/views/template-editor/utils/compiler.d.ts +12 -0
- package/dist/src/views/template-editor/utils/constant.d.ts +4 -1
- package/dist/style.css +4629 -100
- package/dist/utils/api/index.esm.js +1 -1
- package/dist/utils/common/index.esm.js +1 -1
- package/dist/utils/common-utility/index.esm.js +1 -1
- package/dist/utils/export-filters/index.esm.js +0 -1
- package/dist/utils/export-filters/index.esm.js.map +1 -1
- package/dist/utils/export-filters/index.js +0 -1
- package/dist/utils/export-filters/index.js.map +1 -1
- package/dist/utils/index.esm.js +9 -9
- package/dist/utils/index.js +1 -1
- package/dist/utils/metaComponent/index.esm.js +1 -1
- package/dist/utils/metaComponent/index.js +1 -1
- package/dist/utils/server/index.esm.js +2 -2
- package/dist/utils/text-measurement/index.esm.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/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 +5 -5
- package/dist/views/form-builder/index.js +3 -3
- package/dist/views/form-builder/redux/index.esm.js +1 -1
- package/dist/views/form-builder/utils/index.esm.js +1 -1
- package/dist/views/form-builder/utils/index.js +1 -1
- package/dist/views/index.esm.js +39 -34
- package/dist/views/index.esm.js.map +1 -1
- package/dist/views/index.js +36 -31
- package/dist/views/index.js.map +1 -1
- 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 +7 -6
- package/dist/views/template-editor/components/index.esm.js.map +1 -1
- package/dist/views/template-editor/components/index.js +4 -3
- package/dist/views/template-editor/components/index.js.map +1 -1
- package/dist/views/template-editor/edit-section-modal/index.esm.js +1 -1
- package/dist/views/template-editor/index.esm.js +25 -20
- package/dist/views/template-editor/index.esm.js.map +1 -1
- package/dist/views/template-editor/index.js +16 -11
- package/dist/views/template-editor/index.js.map +1 -1
- 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/template-name-modal/index.esm.js +1 -1
- package/dist/views/template-editor/template-name-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/dist/views/template-editor/utils/index.esm.js +10 -6
- package/dist/views/template-editor/utils/index.js +6 -2
- package/dist/views/template-editor/utils/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/SectionFlowEditor-CFfJBYKx.esm.js +0 -5479
- package/dist/chunks/SectionFlowEditor-CFfJBYKx.esm.js.map +0 -1
- package/dist/chunks/SectionFlowEditor-sKsZ3oQo.js +0 -5478
- package/dist/chunks/SectionFlowEditor-sKsZ3oQo.js.map +0 -1
- package/dist/chunks/add-template-DVvbD9a4.esm.js +0 -11
- package/dist/chunks/add-template-DVvbD9a4.esm.js.map +0 -1
- package/dist/chunks/add-template-Dohg2bHJ.js +0 -10
- package/dist/chunks/add-template-Dohg2bHJ.js.map +0 -1
- package/dist/chunks/chat-bot-BpNtrZEL.esm.js.map +0 -1
- package/dist/chunks/chat-bot-osiGMG3g.js.map +0 -1
- package/dist/chunks/common-C5AokA7z.js +0 -368
- package/dist/chunks/common-C5AokA7z.js.map +0 -1
- package/dist/chunks/common-CaomnEjX.esm.js +0 -369
- package/dist/chunks/common-CaomnEjX.esm.js.map +0 -1
- package/dist/chunks/common-utility-DGpbsf7S.esm.js.map +0 -1
- package/dist/chunks/constant-Bwg2s_Sn.esm.js.map +0 -1
- package/dist/chunks/constant-ZYAN_teD.js.map +0 -1
- package/dist/chunks/edit-section-modal-BW-aZmUv.esm.js.map +0 -1
- package/dist/chunks/fullScreen-BLLa9ogA.js.map +0 -1
- package/dist/chunks/fullScreen-DFgzE41_.esm.js.map +0 -1
- package/dist/chunks/template-modal-B2VgotrF.esm.js.map +0 -1
- package/dist/chunks/template-modal-X-iSmlki.js.map +0 -1
- package/dist/chunks/template-name-modal-CeqxIE2r.js.map +0 -1
- package/dist/chunks/template-name-modal-Dctn8t3t.esm.js.map +0 -1
- package/dist/chunks/templates-CCy1eG6A.esm.js.map +0 -1
- package/dist/chunks/templates-CUREMwYo.js.map +0 -1
|
@@ -0,0 +1,849 @@
|
|
|
1
|
+
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { AppBar, Toolbar, Box, Link, Stack, IconButton, Divider, Skeleton, MenuItem, Paper, FormControlLabel, FormControl, Fade } from "@mui/material";
|
|
3
|
+
import { ZoomOut, ZoomIn, ZoomOutMap } from "@mui/icons-material";
|
|
4
|
+
import { T as Typography } from "./typography-CG_A0iOJ.esm.js";
|
|
5
|
+
import { E as Edit } from "./edit-C4KfGTtw.esm.js";
|
|
6
|
+
import { E as Eye } from "./eye-CByHBTch.esm.js";
|
|
7
|
+
import CodeOutlinedIcon from "@mui/icons-material/CodeOutlined";
|
|
8
|
+
import DescriptionOutlinedIcon from "@mui/icons-material/DescriptionOutlined";
|
|
9
|
+
import ReceiptOutlinedIcon from "@mui/icons-material/ReceiptOutlined";
|
|
10
|
+
import LocalShippingOutlinedIcon from "@mui/icons-material/LocalShippingOutlined";
|
|
11
|
+
import FileCopyOutlinedIcon from "@mui/icons-material/FileCopyOutlined";
|
|
12
|
+
import { Link as Link$1 } from "react-router-dom";
|
|
13
|
+
import { t as templateRoutes } from "./common-BgXEAs_y.esm.js";
|
|
14
|
+
import React__default, { useState, useRef, useMemo, useCallback, Suspense, lazy } from "react";
|
|
15
|
+
import { useDraggable, useDroppable } from "@dnd-kit/core";
|
|
16
|
+
import DragIndicatorIcon from "@mui/icons-material/DragIndicator";
|
|
17
|
+
import SplitIcon from "@mui/icons-material/CallSplit";
|
|
18
|
+
import { S as Save } from "./save-CgMN3zzT.esm.js";
|
|
19
|
+
import { T as Trash } from "./trash-Zhhh3VNZ.esm.js";
|
|
20
|
+
import { S as Select } from "./select-CVxEdXzL.esm.js";
|
|
21
|
+
import { E as EditSectionModal } from "./edit-section-modal-HihKbN6K.esm.js";
|
|
22
|
+
import { C as Checkbox } from "./checkbox-C0Kk4Gq8.esm.js";
|
|
23
|
+
import { C as Chip } from "./chip-CrHuY2_O.esm.js";
|
|
24
|
+
import Close from "@mui/icons-material/Close";
|
|
25
|
+
import { u as useCKEditorStyleExtractor } from "./style-extractor-DVB3BulQ.esm.js";
|
|
26
|
+
import { u as useDebouncedUpdate } from "./useDebouncedUpdate-BWtDJx4r.esm.js";
|
|
27
|
+
const EditorHeader = ({
|
|
28
|
+
onSave,
|
|
29
|
+
onPreview,
|
|
30
|
+
preview,
|
|
31
|
+
editHtml,
|
|
32
|
+
onEditHtml,
|
|
33
|
+
sections,
|
|
34
|
+
isEditingHeaderFooter,
|
|
35
|
+
onEditModeChange,
|
|
36
|
+
setIsEditingHeaderFooter,
|
|
37
|
+
onSaveHeaderFooter,
|
|
38
|
+
showSample,
|
|
39
|
+
setShowSample,
|
|
40
|
+
sampleType,
|
|
41
|
+
setSampleType,
|
|
42
|
+
samplePages,
|
|
43
|
+
setSamplePages,
|
|
44
|
+
modulePath,
|
|
45
|
+
type,
|
|
46
|
+
mode = "add",
|
|
47
|
+
templateData,
|
|
48
|
+
isSaving = false,
|
|
49
|
+
editMode,
|
|
50
|
+
fromPreview = false,
|
|
51
|
+
zoom,
|
|
52
|
+
onZoomIn,
|
|
53
|
+
onZoomOut,
|
|
54
|
+
onResetZoom
|
|
55
|
+
}) => {
|
|
56
|
+
const ROUTES = templateRoutes(modulePath, type);
|
|
57
|
+
return /* @__PURE__ */ jsx(
|
|
58
|
+
AppBar,
|
|
59
|
+
{
|
|
60
|
+
position: "static",
|
|
61
|
+
color: "default",
|
|
62
|
+
elevation: 0,
|
|
63
|
+
sx: {
|
|
64
|
+
borderColor: "divider",
|
|
65
|
+
bgcolor: "background.paper"
|
|
66
|
+
},
|
|
67
|
+
children: /* @__PURE__ */ jsxs(Toolbar, { variant: "dense", sx: { justifyContent: "space-between", p: 3 }, children: [
|
|
68
|
+
/* @__PURE__ */ jsxs(Box, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
|
|
69
|
+
/* @__PURE__ */ jsx(
|
|
70
|
+
Link,
|
|
71
|
+
{
|
|
72
|
+
component: Link$1,
|
|
73
|
+
to: ROUTES.LIST,
|
|
74
|
+
underline: "hover",
|
|
75
|
+
color: "text.secondary",
|
|
76
|
+
sx: { fontSize: "0.875rem" },
|
|
77
|
+
children: /* @__PURE__ */ jsx(Typography, { type: "s5", color: "theme.secondary.800", children: type === "email" ? "Emails" : "PDF" })
|
|
78
|
+
}
|
|
79
|
+
),
|
|
80
|
+
/* @__PURE__ */ jsx(Typography, { type: "s5", weight: "medium", color: "theme.secondary.1000", children: "/" }),
|
|
81
|
+
/* @__PURE__ */ jsxs(Typography, { type: "s5", weight: "medium", color: "theme.secondary.1000", children: [
|
|
82
|
+
mode === "add" ? "Add New" : editMode ? "Edit" : "Preview",
|
|
83
|
+
" Template"
|
|
84
|
+
] }),
|
|
85
|
+
templateData && (templateData == null ? void 0 : templateData.name) && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
86
|
+
/* @__PURE__ */ jsx(Typography, { type: "s5", weight: "medium", color: "theme.secondary.1000", children: "/" }),
|
|
87
|
+
/* @__PURE__ */ jsx(Typography, { type: "s5", weight: "medium", color: "theme.secondary.1000", children: templateData == null ? void 0 : templateData.name })
|
|
88
|
+
] })
|
|
89
|
+
] }),
|
|
90
|
+
/* @__PURE__ */ jsxs(Stack, { direction: "row", spacing: 1, alignItems: "center", className: "editorHeader--Buttons", children: [
|
|
91
|
+
preview && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
92
|
+
/* @__PURE__ */ jsxs(
|
|
93
|
+
Box,
|
|
94
|
+
{
|
|
95
|
+
sx: {
|
|
96
|
+
display: "flex",
|
|
97
|
+
alignItems: "center",
|
|
98
|
+
gap: 1,
|
|
99
|
+
borderRadius: 1,
|
|
100
|
+
bgcolor: "rgba(74, 192, 140, 0.08)",
|
|
101
|
+
border: "1px solid rgba(74, 192, 140, 0.2)"
|
|
102
|
+
},
|
|
103
|
+
children: [
|
|
104
|
+
/* @__PURE__ */ jsx(
|
|
105
|
+
IconButton,
|
|
106
|
+
{
|
|
107
|
+
size: "small",
|
|
108
|
+
onClick: onZoomOut,
|
|
109
|
+
disabled: zoom <= 50,
|
|
110
|
+
color: "#4AC08C",
|
|
111
|
+
sx: {
|
|
112
|
+
color: "#4AC08C",
|
|
113
|
+
"&:hover": {
|
|
114
|
+
bgcolor: "rgba(74, 192, 140, 0.15)"
|
|
115
|
+
},
|
|
116
|
+
"&.Mui-disabled": {
|
|
117
|
+
opacity: 0.3,
|
|
118
|
+
color: "#4AC08C"
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
children: /* @__PURE__ */ jsx(ZoomOut, { fontSize: "small" })
|
|
122
|
+
}
|
|
123
|
+
),
|
|
124
|
+
/* @__PURE__ */ jsxs(
|
|
125
|
+
Typography,
|
|
126
|
+
{
|
|
127
|
+
type: "s5",
|
|
128
|
+
weight: "medium",
|
|
129
|
+
sx: {
|
|
130
|
+
minWidth: "50px",
|
|
131
|
+
textAlign: "center",
|
|
132
|
+
color: "#4AC08C"
|
|
133
|
+
},
|
|
134
|
+
children: [
|
|
135
|
+
zoom,
|
|
136
|
+
"%"
|
|
137
|
+
]
|
|
138
|
+
}
|
|
139
|
+
),
|
|
140
|
+
/* @__PURE__ */ jsx(
|
|
141
|
+
IconButton,
|
|
142
|
+
{
|
|
143
|
+
size: "small",
|
|
144
|
+
onClick: onZoomIn,
|
|
145
|
+
disabled: zoom >= 150,
|
|
146
|
+
sx: {
|
|
147
|
+
color: "#4AC08C",
|
|
148
|
+
"&:hover": {
|
|
149
|
+
bgcolor: "rgba(74, 192, 140, 0.15)"
|
|
150
|
+
},
|
|
151
|
+
"&.Mui-disabled": {
|
|
152
|
+
opacity: 0.3,
|
|
153
|
+
color: "#4AC08C"
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
children: /* @__PURE__ */ jsx(ZoomIn, { fontSize: "small" })
|
|
157
|
+
}
|
|
158
|
+
),
|
|
159
|
+
/* @__PURE__ */ jsx(
|
|
160
|
+
Divider,
|
|
161
|
+
{
|
|
162
|
+
orientation: "vertical",
|
|
163
|
+
flexItem: true,
|
|
164
|
+
sx: {
|
|
165
|
+
mx: 0.5,
|
|
166
|
+
bgcolor: "rgba(74, 192, 140, 0.3)"
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
),
|
|
170
|
+
/* @__PURE__ */ jsx(
|
|
171
|
+
IconButton,
|
|
172
|
+
{
|
|
173
|
+
size: "small",
|
|
174
|
+
onClick: onResetZoom,
|
|
175
|
+
disabled: zoom === 100,
|
|
176
|
+
title: "Reset Zoom",
|
|
177
|
+
sx: {
|
|
178
|
+
color: "#4AC08C",
|
|
179
|
+
"&:hover": {
|
|
180
|
+
bgcolor: "rgba(74, 192, 140, 0.15)"
|
|
181
|
+
},
|
|
182
|
+
"&.Mui-disabled": {
|
|
183
|
+
opacity: 0.3,
|
|
184
|
+
color: "#4AC08C"
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
children: /* @__PURE__ */ jsx(ZoomOutMap, { fontSize: "small" })
|
|
188
|
+
}
|
|
189
|
+
)
|
|
190
|
+
]
|
|
191
|
+
}
|
|
192
|
+
),
|
|
193
|
+
/* @__PURE__ */ jsx(Divider, { orientation: "vertical", flexItem: true, sx: { mx: 1 } })
|
|
194
|
+
] }),
|
|
195
|
+
!fromPreview ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
196
|
+
/* @__PURE__ */ jsxs(
|
|
197
|
+
"button",
|
|
198
|
+
{
|
|
199
|
+
onClick: () => setIsEditingHeaderFooter(true),
|
|
200
|
+
className: "pbtn",
|
|
201
|
+
disabled: preview,
|
|
202
|
+
children: [
|
|
203
|
+
/* @__PURE__ */ jsx(Edit, { fontSize: "small" }),
|
|
204
|
+
"Edit Header/Footer"
|
|
205
|
+
]
|
|
206
|
+
}
|
|
207
|
+
),
|
|
208
|
+
/* @__PURE__ */ jsxs("div", { className: "pb-lens", children: [
|
|
209
|
+
/* @__PURE__ */ jsxs(
|
|
210
|
+
"button",
|
|
211
|
+
{
|
|
212
|
+
className: !preview ? "is-active" : "",
|
|
213
|
+
onClick: () => preview && onPreview(),
|
|
214
|
+
disabled: !(sections == null ? void 0 : sections.length),
|
|
215
|
+
children: [
|
|
216
|
+
/* @__PURE__ */ jsx(Edit, { fontSize: "small" }),
|
|
217
|
+
" Edit"
|
|
218
|
+
]
|
|
219
|
+
}
|
|
220
|
+
),
|
|
221
|
+
/* @__PURE__ */ jsxs(
|
|
222
|
+
"button",
|
|
223
|
+
{
|
|
224
|
+
className: preview ? "is-active" : "",
|
|
225
|
+
onClick: () => !preview && onPreview(),
|
|
226
|
+
disabled: !(sections == null ? void 0 : sections.length),
|
|
227
|
+
children: [
|
|
228
|
+
/* @__PURE__ */ jsx(Eye, { fontSize: "small" }),
|
|
229
|
+
" Preview"
|
|
230
|
+
]
|
|
231
|
+
}
|
|
232
|
+
)
|
|
233
|
+
] }),
|
|
234
|
+
/* @__PURE__ */ jsxs(
|
|
235
|
+
"button",
|
|
236
|
+
{
|
|
237
|
+
onClick: onEditHtml,
|
|
238
|
+
className: `pbtn ${editHtml ? "pbtn--primary" : ""}`,
|
|
239
|
+
disabled: !(sections == null ? void 0 : sections.length) || preview,
|
|
240
|
+
children: [
|
|
241
|
+
/* @__PURE__ */ jsx(CodeOutlinedIcon, { fontSize: "small" }),
|
|
242
|
+
editHtml ? "Exit HTML Edit" : "Edit HTML"
|
|
243
|
+
]
|
|
244
|
+
}
|
|
245
|
+
),
|
|
246
|
+
!isSaving && /* @__PURE__ */ jsxs("span", { className: "pb-bar-stat is-dirty", children: [
|
|
247
|
+
/* @__PURE__ */ jsx("span", { className: "pb-bar-dirty", children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "6", fill: "currentColor" }) }) }),
|
|
248
|
+
"Unsaved"
|
|
249
|
+
] }),
|
|
250
|
+
/* @__PURE__ */ jsx(
|
|
251
|
+
"button",
|
|
252
|
+
{
|
|
253
|
+
onClick: onSave,
|
|
254
|
+
className: "pbtn pbtn--primary",
|
|
255
|
+
disabled: !(sections == null ? void 0 : sections.length) || isSaving,
|
|
256
|
+
children: isSaving ? "Saving..." : "Save"
|
|
257
|
+
}
|
|
258
|
+
)
|
|
259
|
+
] }) : editMode ? /* @__PURE__ */ jsx(Fragment, { children: isEditingHeaderFooter ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
260
|
+
setShowSample && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
261
|
+
/* @__PURE__ */ jsxs(
|
|
262
|
+
"button",
|
|
263
|
+
{
|
|
264
|
+
className: "st-sample-tg",
|
|
265
|
+
onClick: () => setShowSample((v) => !v),
|
|
266
|
+
title: "Preview the master wrapped around a real document",
|
|
267
|
+
children: [
|
|
268
|
+
/* @__PURE__ */ jsx("span", { className: `cx-switch ${showSample ? "is-on" : ""}`, "aria-hidden": true, children: /* @__PURE__ */ jsx("span", { className: "cx-switch-dot" }) }),
|
|
269
|
+
"Sample content"
|
|
270
|
+
]
|
|
271
|
+
}
|
|
272
|
+
),
|
|
273
|
+
showSample && /* @__PURE__ */ jsxs("div", { className: "st-docchips", children: [
|
|
274
|
+
["quotation", "invoice", "delivery"].map((d) => /* @__PURE__ */ jsxs("button", { className: `st-docchip ${sampleType === d ? "is-active" : ""}`, onClick: () => setSampleType && setSampleType(d), children: [
|
|
275
|
+
/* @__PURE__ */ jsx("span", { className: "st-docchip-dot", style: { background: d === "quotation" ? "#1A8A56" : d === "invoice" ? "#1B2C6E" : "#8a540b" } }),
|
|
276
|
+
d === "quotation" && /* @__PURE__ */ jsx(DescriptionOutlinedIcon, { sx: { width: 12, height: 12 } }),
|
|
277
|
+
d === "invoice" && /* @__PURE__ */ jsx(ReceiptOutlinedIcon, { sx: { width: 12, height: 12 } }),
|
|
278
|
+
d === "delivery" && /* @__PURE__ */ jsx(LocalShippingOutlinedIcon, { sx: { width: 12, height: 12 } }),
|
|
279
|
+
d === "quotation" ? "Quotation" : d === "invoice" ? "Tax Invoice" : "Delivery Note"
|
|
280
|
+
] }, d)),
|
|
281
|
+
/* @__PURE__ */ jsxs("button", { className: `st-docchip ${samplePages === 2 ? "is-active" : ""}`, onClick: () => setSamplePages && setSamplePages(samplePages === 1 ? 2 : 1), title: "Add a continuation page to test header/footer repeat", children: [
|
|
282
|
+
/* @__PURE__ */ jsx(FileCopyOutlinedIcon, { sx: { width: 12, height: 12 } }),
|
|
283
|
+
samplePages === 2 ? "2 pages" : "1 page"
|
|
284
|
+
] })
|
|
285
|
+
] }),
|
|
286
|
+
/* @__PURE__ */ jsx(Divider, { orientation: "vertical", flexItem: true, sx: { mx: 1 } })
|
|
287
|
+
] }),
|
|
288
|
+
/* @__PURE__ */ jsx(
|
|
289
|
+
"button",
|
|
290
|
+
{
|
|
291
|
+
onClick: () => setIsEditingHeaderFooter(false),
|
|
292
|
+
className: "pbtn pbtn--ghost",
|
|
293
|
+
children: "Cancel Editing"
|
|
294
|
+
}
|
|
295
|
+
),
|
|
296
|
+
/* @__PURE__ */ jsx(
|
|
297
|
+
"button",
|
|
298
|
+
{
|
|
299
|
+
onClick: () => onSaveHeaderFooter(true),
|
|
300
|
+
className: "pbtn pbtn--primary",
|
|
301
|
+
children: "Save Changes"
|
|
302
|
+
}
|
|
303
|
+
)
|
|
304
|
+
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
305
|
+
/* @__PURE__ */ jsxs(
|
|
306
|
+
"button",
|
|
307
|
+
{
|
|
308
|
+
onClick: () => setIsEditingHeaderFooter(true),
|
|
309
|
+
className: "pbtn",
|
|
310
|
+
disabled: preview,
|
|
311
|
+
children: [
|
|
312
|
+
/* @__PURE__ */ jsx(Edit, { fontSize: "small" }),
|
|
313
|
+
"Edit Header/Footer"
|
|
314
|
+
]
|
|
315
|
+
}
|
|
316
|
+
),
|
|
317
|
+
/* @__PURE__ */ jsxs("div", { className: "pb-lens", children: [
|
|
318
|
+
/* @__PURE__ */ jsxs(
|
|
319
|
+
"button",
|
|
320
|
+
{
|
|
321
|
+
className: !preview ? "is-active" : "",
|
|
322
|
+
onClick: () => preview && onPreview(),
|
|
323
|
+
disabled: !(sections == null ? void 0 : sections.length),
|
|
324
|
+
children: [
|
|
325
|
+
/* @__PURE__ */ jsx(Edit, { fontSize: "small" }),
|
|
326
|
+
" Edit"
|
|
327
|
+
]
|
|
328
|
+
}
|
|
329
|
+
),
|
|
330
|
+
/* @__PURE__ */ jsxs(
|
|
331
|
+
"button",
|
|
332
|
+
{
|
|
333
|
+
className: preview ? "is-active" : "",
|
|
334
|
+
onClick: () => !preview && onPreview(),
|
|
335
|
+
disabled: !(sections == null ? void 0 : sections.length),
|
|
336
|
+
children: [
|
|
337
|
+
/* @__PURE__ */ jsx(Eye, { fontSize: "small" }),
|
|
338
|
+
" Preview"
|
|
339
|
+
]
|
|
340
|
+
}
|
|
341
|
+
)
|
|
342
|
+
] }),
|
|
343
|
+
!isSaving && /* @__PURE__ */ jsxs("span", { className: "pb-bar-stat is-dirty", children: [
|
|
344
|
+
/* @__PURE__ */ jsx("span", { className: "pb-bar-dirty", children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "6", fill: "currentColor" }) }) }),
|
|
345
|
+
"Unsaved"
|
|
346
|
+
] }),
|
|
347
|
+
/* @__PURE__ */ jsx(
|
|
348
|
+
"button",
|
|
349
|
+
{
|
|
350
|
+
onClick: onSave,
|
|
351
|
+
className: "pbtn pbtn--primary",
|
|
352
|
+
disabled: !(sections == null ? void 0 : sections.length),
|
|
353
|
+
children: "Save"
|
|
354
|
+
}
|
|
355
|
+
),
|
|
356
|
+
/* @__PURE__ */ jsx(
|
|
357
|
+
"button",
|
|
358
|
+
{
|
|
359
|
+
onClick: () => onEditModeChange && onEditModeChange(),
|
|
360
|
+
className: "pbtn pbtn--ghost",
|
|
361
|
+
children: "Cancel"
|
|
362
|
+
}
|
|
363
|
+
)
|
|
364
|
+
] }) }) : /* @__PURE__ */ jsxs(
|
|
365
|
+
"button",
|
|
366
|
+
{
|
|
367
|
+
onClick: () => onEditModeChange && onEditModeChange(),
|
|
368
|
+
className: "pbtn pbtn--primary",
|
|
369
|
+
disabled: !(sections == null ? void 0 : sections.length),
|
|
370
|
+
children: [
|
|
371
|
+
/* @__PURE__ */ jsx(Edit, { fontSize: "small" }),
|
|
372
|
+
"Edit"
|
|
373
|
+
]
|
|
374
|
+
}
|
|
375
|
+
)
|
|
376
|
+
] })
|
|
377
|
+
] })
|
|
378
|
+
}
|
|
379
|
+
);
|
|
380
|
+
};
|
|
381
|
+
const CustomEditor = lazy(() => import("./custom-editor-C-B5BK-H.esm.js"));
|
|
382
|
+
const editableSections = ["text", "text-block", "heading", "heading-1", "heading-2", "heading-3", "heading-4"];
|
|
383
|
+
const EditorSection = ({
|
|
384
|
+
section,
|
|
385
|
+
isSelected,
|
|
386
|
+
isDragging,
|
|
387
|
+
isOver,
|
|
388
|
+
onSelect,
|
|
389
|
+
onUpdate,
|
|
390
|
+
onSplit,
|
|
391
|
+
onDelete,
|
|
392
|
+
placeholders,
|
|
393
|
+
setIsSectionEditing,
|
|
394
|
+
isPreview = false
|
|
395
|
+
}) => {
|
|
396
|
+
const { extractStyles, getSingleStyles } = useCKEditorStyleExtractor();
|
|
397
|
+
const {
|
|
398
|
+
attributes,
|
|
399
|
+
listeners,
|
|
400
|
+
setNodeRef: setDraggableRef,
|
|
401
|
+
transform
|
|
402
|
+
} = useDraggable({ id: section.id });
|
|
403
|
+
const { setNodeRef: setDroppableRef } = useDroppable({ id: section.id });
|
|
404
|
+
const [isEditing, setIsEditing] = useState(false);
|
|
405
|
+
const [isHovered, setIsHovered] = useState(false);
|
|
406
|
+
const [isOpenEditSectionModal, setIsOpenEditSectionModal] = useState(false);
|
|
407
|
+
const [isEditedFromSource, setIsEditedFromSource] = useState(Boolean(section == null ? void 0 : section.is_edited_from_source));
|
|
408
|
+
const [localContent, setLocalContent] = useState(section.content);
|
|
409
|
+
const [hasUserEdited, setHasUserEdited] = useState(false);
|
|
410
|
+
const editorRef = useRef(null);
|
|
411
|
+
const mouseHoverTimeoutRef = useRef(null);
|
|
412
|
+
const cursorPositionRef = useRef(null);
|
|
413
|
+
const isRestoringCursorRef = useRef(false);
|
|
414
|
+
const contentRef = useRef(section.content);
|
|
415
|
+
const originalContentRef = useRef(section.content);
|
|
416
|
+
const debouncedUpdate = useDebouncedUpdate(onUpdate, 300);
|
|
417
|
+
const style = useMemo(() => {
|
|
418
|
+
return transform ? {
|
|
419
|
+
transform: `translate3d(${transform.x}px, ${transform.y}px, 0)`,
|
|
420
|
+
transition: "none"
|
|
421
|
+
} : { transition: "all 0.2s ease" };
|
|
422
|
+
}, [transform]);
|
|
423
|
+
const paperSx = useMemo(() => ({
|
|
424
|
+
position: "relative",
|
|
425
|
+
height: "100%",
|
|
426
|
+
display: "flex",
|
|
427
|
+
flexDirection: "column",
|
|
428
|
+
overflowX: "auto",
|
|
429
|
+
border: isPreview ? "none" : "1px dashed",
|
|
430
|
+
borderColor: isPreview ? "transparent" : isSelected ? "primary.main" : isOver ? "primary.main" : "grey.400",
|
|
431
|
+
borderRadius: 1,
|
|
432
|
+
bgcolor: "white",
|
|
433
|
+
opacity: isDragging ? 0.7 : 1,
|
|
434
|
+
boxShadow: "none",
|
|
435
|
+
transition: "all 0.2s ease",
|
|
436
|
+
"&:hover": {
|
|
437
|
+
boxShadow: "none"
|
|
438
|
+
},
|
|
439
|
+
"& table:not(.pbd-items)": {
|
|
440
|
+
minWidth: "max-content"
|
|
441
|
+
},
|
|
442
|
+
...!isPreview && isOver && { borderColor: "primary.main", boxShadow: "none" }
|
|
443
|
+
}), [isSelected, isOver, isDragging, isPreview]);
|
|
444
|
+
const mergedRef = useCallback((node) => {
|
|
445
|
+
setDraggableRef(node);
|
|
446
|
+
setDroppableRef(node);
|
|
447
|
+
}, [setDraggableRef, setDroppableRef]);
|
|
448
|
+
const handleDblClick = useCallback(() => {
|
|
449
|
+
if (editableSections.includes(section.type)) {
|
|
450
|
+
handleEditing();
|
|
451
|
+
}
|
|
452
|
+
}, [section.type]);
|
|
453
|
+
const handleEditing = useCallback(() => {
|
|
454
|
+
originalContentRef.current = section.content;
|
|
455
|
+
setHasUserEdited(false);
|
|
456
|
+
if (section == null ? void 0 : section.isSplitPair) {
|
|
457
|
+
setIsOpenEditSectionModal(true);
|
|
458
|
+
} else {
|
|
459
|
+
setIsEditing(true);
|
|
460
|
+
setIsSectionEditing(true);
|
|
461
|
+
}
|
|
462
|
+
}, [section == null ? void 0 : section.isSplitPair, section.content, setIsSectionEditing]);
|
|
463
|
+
const handleEditorReady = useCallback((editor) => {
|
|
464
|
+
editorRef.current = editor;
|
|
465
|
+
if (editor == null ? void 0 : editor._tiptap) {
|
|
466
|
+
editor._tiptap.on("selectionUpdate", () => {
|
|
467
|
+
if (!isRestoringCursorRef.current && editor._tiptap) {
|
|
468
|
+
const { from, to } = editor._tiptap.state.selection;
|
|
469
|
+
cursorPositionRef.current = { from, to };
|
|
470
|
+
}
|
|
471
|
+
});
|
|
472
|
+
editor._tiptap.on("update", ({ transaction }) => {
|
|
473
|
+
if (transaction.docChanged) {
|
|
474
|
+
setHasUserEdited(true);
|
|
475
|
+
}
|
|
476
|
+
});
|
|
477
|
+
}
|
|
478
|
+
}, []);
|
|
479
|
+
const handleSave = useCallback((e) => {
|
|
480
|
+
var _a;
|
|
481
|
+
e.stopPropagation();
|
|
482
|
+
if (editorRef.current) {
|
|
483
|
+
if (editorRef.current._tiptap) {
|
|
484
|
+
const { from, to } = editorRef.current._tiptap.state.selection;
|
|
485
|
+
cursorPositionRef.current = { from, to };
|
|
486
|
+
}
|
|
487
|
+
const content = editorRef.current.getData();
|
|
488
|
+
contentRef.current = content;
|
|
489
|
+
setLocalContent(content);
|
|
490
|
+
const styles = extractStyles(section.content, {
|
|
491
|
+
includeTagStyles: true,
|
|
492
|
+
includeInlineStyles: true,
|
|
493
|
+
mergeNestedStyles: true,
|
|
494
|
+
filterEmptyStyles: true
|
|
495
|
+
});
|
|
496
|
+
const single = getSingleStyles(styles);
|
|
497
|
+
const mergedStyles = {
|
|
498
|
+
...((_a = section.attributes) == null ? void 0 : _a.styles) || {},
|
|
499
|
+
...single
|
|
500
|
+
};
|
|
501
|
+
const mergedAttributes = {
|
|
502
|
+
...section.attributes || {},
|
|
503
|
+
styles: mergedStyles
|
|
504
|
+
};
|
|
505
|
+
debouncedUpdate(content, { is_edited_from_source: isEditedFromSource, attributes: mergedAttributes });
|
|
506
|
+
}
|
|
507
|
+
setIsEditing(false);
|
|
508
|
+
setIsSectionEditing(false);
|
|
509
|
+
setIsOpenEditSectionModal(false);
|
|
510
|
+
setHasUserEdited(false);
|
|
511
|
+
}, [debouncedUpdate, isEditedFromSource, extractStyles, getSingleStyles, section.content, section.attributes, setIsSectionEditing, hasUserEdited]);
|
|
512
|
+
const handleSplit = useCallback(() => {
|
|
513
|
+
const content = section.content || "";
|
|
514
|
+
const firstHalf = content;
|
|
515
|
+
const secondHalf = "";
|
|
516
|
+
onSplit(firstHalf, secondHalf);
|
|
517
|
+
}, [section.content, onSplit]);
|
|
518
|
+
const handleAddPlaceholder = useCallback((placeholder) => {
|
|
519
|
+
if (editorRef.current) {
|
|
520
|
+
const viewFragment = editorRef.current.data.processor.toView(
|
|
521
|
+
`{{${placeholder}}}`
|
|
522
|
+
);
|
|
523
|
+
const modelFragment = editorRef.current.data.toModel(viewFragment);
|
|
524
|
+
editorRef.current.model.insertContent(modelFragment);
|
|
525
|
+
}
|
|
526
|
+
}, []);
|
|
527
|
+
const handleMouseEnter = useCallback(() => {
|
|
528
|
+
if (mouseHoverTimeoutRef.current !== null) {
|
|
529
|
+
window.clearTimeout(mouseHoverTimeoutRef.current);
|
|
530
|
+
}
|
|
531
|
+
mouseHoverTimeoutRef.current = window.setTimeout(() => {
|
|
532
|
+
setIsHovered(true);
|
|
533
|
+
}, 50);
|
|
534
|
+
}, []);
|
|
535
|
+
const handleMouseLeave = useCallback(() => {
|
|
536
|
+
if (mouseHoverTimeoutRef.current !== null) {
|
|
537
|
+
window.clearTimeout(mouseHoverTimeoutRef.current);
|
|
538
|
+
}
|
|
539
|
+
mouseHoverTimeoutRef.current = window.setTimeout(() => {
|
|
540
|
+
setIsHovered(false);
|
|
541
|
+
}, 50);
|
|
542
|
+
}, []);
|
|
543
|
+
const handleClick = useCallback((e) => {
|
|
544
|
+
e.stopPropagation();
|
|
545
|
+
onSelect();
|
|
546
|
+
}, [onSelect]);
|
|
547
|
+
const handleDeleteClick = useCallback((e) => {
|
|
548
|
+
e.stopPropagation();
|
|
549
|
+
onDelete();
|
|
550
|
+
}, [onDelete]);
|
|
551
|
+
const handleCancelEdit = useCallback(() => {
|
|
552
|
+
setIsEditing(false);
|
|
553
|
+
setIsSectionEditing(false);
|
|
554
|
+
}, [setIsSectionEditing]);
|
|
555
|
+
const handleCheckboxChange = useCallback((e) => {
|
|
556
|
+
setIsEditedFromSource(e.target.checked);
|
|
557
|
+
}, []);
|
|
558
|
+
const handleSelectChange = useCallback((e) => {
|
|
559
|
+
if (e.target.value) {
|
|
560
|
+
handleAddPlaceholder(e.target.value);
|
|
561
|
+
e.target.value = "";
|
|
562
|
+
}
|
|
563
|
+
}, [handleAddPlaceholder]);
|
|
564
|
+
React__default.useEffect(() => {
|
|
565
|
+
return () => {
|
|
566
|
+
if (mouseHoverTimeoutRef.current !== null) {
|
|
567
|
+
window.clearTimeout(mouseHoverTimeoutRef.current);
|
|
568
|
+
}
|
|
569
|
+
};
|
|
570
|
+
}, []);
|
|
571
|
+
React__default.useEffect(() => {
|
|
572
|
+
var _a;
|
|
573
|
+
if (contentRef.current === section.content) {
|
|
574
|
+
return;
|
|
575
|
+
}
|
|
576
|
+
contentRef.current = section.content;
|
|
577
|
+
setLocalContent(section.content);
|
|
578
|
+
if (isEditing && ((_a = editorRef.current) == null ? void 0 : _a._tiptap) && cursorPositionRef.current && !isRestoringCursorRef.current) {
|
|
579
|
+
const editor = editorRef.current._tiptap;
|
|
580
|
+
const { from, to } = cursorPositionRef.current;
|
|
581
|
+
requestAnimationFrame(() => {
|
|
582
|
+
try {
|
|
583
|
+
isRestoringCursorRef.current = true;
|
|
584
|
+
const docSize = editor.state.doc.content.size;
|
|
585
|
+
const validFrom = Math.min(from, docSize);
|
|
586
|
+
const validTo = Math.min(to, docSize);
|
|
587
|
+
editor.commands.setTextSelection({ from: validFrom, to: validTo });
|
|
588
|
+
if (!editor.isFocused) {
|
|
589
|
+
editor.commands.focus();
|
|
590
|
+
}
|
|
591
|
+
} catch (error) {
|
|
592
|
+
console.warn("Failed to restore cursor position:", error);
|
|
593
|
+
} finally {
|
|
594
|
+
isRestoringCursorRef.current = false;
|
|
595
|
+
}
|
|
596
|
+
});
|
|
597
|
+
}
|
|
598
|
+
}, [section.content, isEditing]);
|
|
599
|
+
const contentRenderer = useMemo(() => {
|
|
600
|
+
if (isEditing) {
|
|
601
|
+
return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Skeleton, {}), children: /* @__PURE__ */ jsx(
|
|
602
|
+
CustomEditor,
|
|
603
|
+
{
|
|
604
|
+
editorRef,
|
|
605
|
+
handleEditorReady,
|
|
606
|
+
data: localContent,
|
|
607
|
+
onError: (error) => console.error("Editor error:", error)
|
|
608
|
+
},
|
|
609
|
+
`editor-${section.id}`
|
|
610
|
+
) });
|
|
611
|
+
}
|
|
612
|
+
return /* @__PURE__ */ jsx(
|
|
613
|
+
Box,
|
|
614
|
+
{
|
|
615
|
+
dangerouslySetInnerHTML: { __html: localContent },
|
|
616
|
+
sx: {
|
|
617
|
+
position: "relative",
|
|
618
|
+
py: section.type === "divider" ? 1 : 0,
|
|
619
|
+
lineHeight: 1.6,
|
|
620
|
+
flex: 1,
|
|
621
|
+
minHeight: !localContent || localContent === '<p style="font-size: 16px; color: #333333; line-height: 1.5;">New section</p>' ? "60px" : "auto",
|
|
622
|
+
"& p": { margin: 0 }
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
);
|
|
626
|
+
}, [isEditing, localContent, section.type, section.id]);
|
|
627
|
+
const placeholderOptions = useMemo(
|
|
628
|
+
() => placeholders.map((option) => /* @__PURE__ */ jsx(MenuItem, { value: option.value, children: /* @__PURE__ */ jsx(Typography, { type: "s4", color: "theme.secondary.1000", children: option.label }) }, option.value)),
|
|
629
|
+
[placeholders]
|
|
630
|
+
);
|
|
631
|
+
return /* @__PURE__ */ jsxs(
|
|
632
|
+
Paper,
|
|
633
|
+
{
|
|
634
|
+
ref: mergedRef,
|
|
635
|
+
style,
|
|
636
|
+
elevation: isHovered || isSelected ? 3 : 1,
|
|
637
|
+
sx: paperSx,
|
|
638
|
+
onClick: handleClick,
|
|
639
|
+
onDoubleClick: handleDblClick,
|
|
640
|
+
onMouseEnter: handleMouseEnter,
|
|
641
|
+
onMouseLeave: handleMouseLeave,
|
|
642
|
+
children: [
|
|
643
|
+
!isPreview && isOver && !isDragging && /* @__PURE__ */ jsx(
|
|
644
|
+
Box,
|
|
645
|
+
{
|
|
646
|
+
sx: {
|
|
647
|
+
position: "absolute",
|
|
648
|
+
top: 0,
|
|
649
|
+
left: 0,
|
|
650
|
+
right: 0,
|
|
651
|
+
bottom: 0,
|
|
652
|
+
border: "2px dashed",
|
|
653
|
+
borderColor: "primary.main",
|
|
654
|
+
borderRadius: 1,
|
|
655
|
+
bgcolor: "rgba(25, 118, 210, 0.04)",
|
|
656
|
+
zIndex: 10,
|
|
657
|
+
display: "flex",
|
|
658
|
+
alignItems: "center",
|
|
659
|
+
justifyContent: "center",
|
|
660
|
+
pointerEvents: "none"
|
|
661
|
+
},
|
|
662
|
+
children: /* @__PURE__ */ jsx(Typography, { type: "s2", color: "primary", weight: "medium", children: "Drop here" })
|
|
663
|
+
}
|
|
664
|
+
),
|
|
665
|
+
!isPreview && /* @__PURE__ */ jsxs(
|
|
666
|
+
Box,
|
|
667
|
+
{
|
|
668
|
+
sx: {
|
|
669
|
+
bgcolor: "grey.50",
|
|
670
|
+
p: 1,
|
|
671
|
+
display: "flex",
|
|
672
|
+
alignItems: "center",
|
|
673
|
+
justifyContent: "space-between",
|
|
674
|
+
borderBottom: "1px solid",
|
|
675
|
+
borderColor: "grey.200"
|
|
676
|
+
},
|
|
677
|
+
children: [
|
|
678
|
+
/* @__PURE__ */ jsxs(
|
|
679
|
+
Box,
|
|
680
|
+
{
|
|
681
|
+
...listeners,
|
|
682
|
+
...attributes,
|
|
683
|
+
sx: {
|
|
684
|
+
display: "flex",
|
|
685
|
+
alignItems: "center",
|
|
686
|
+
cursor: "grab",
|
|
687
|
+
px: 1,
|
|
688
|
+
py: 0.5,
|
|
689
|
+
borderRadius: 1,
|
|
690
|
+
transition: "background-color 0.2s ease",
|
|
691
|
+
"&:hover": { bgcolor: "grey.100" },
|
|
692
|
+
"&:active": { cursor: "grabbing" }
|
|
693
|
+
},
|
|
694
|
+
children: [
|
|
695
|
+
/* @__PURE__ */ jsx(
|
|
696
|
+
DragIndicatorIcon,
|
|
697
|
+
{
|
|
698
|
+
sx: { color: "grey.600", fontSize: "1.2rem", mr: 0.5 }
|
|
699
|
+
}
|
|
700
|
+
),
|
|
701
|
+
/* @__PURE__ */ jsx(Typography, { type: "s3", color: "theme.secondary.600", weight: "medium", children: "Move" })
|
|
702
|
+
]
|
|
703
|
+
}
|
|
704
|
+
),
|
|
705
|
+
/* @__PURE__ */ jsx(Box, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: isEditing ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
706
|
+
/* @__PURE__ */ jsx(
|
|
707
|
+
FormControlLabel,
|
|
708
|
+
{
|
|
709
|
+
control: /* @__PURE__ */ jsx(
|
|
710
|
+
Checkbox,
|
|
711
|
+
{
|
|
712
|
+
onChange: handleCheckboxChange,
|
|
713
|
+
defaultChecked: isEditedFromSource
|
|
714
|
+
}
|
|
715
|
+
),
|
|
716
|
+
label: /* @__PURE__ */ jsx(Typography, { type: "s2", color: "theme.secondary.1000", children: "Edited from source" })
|
|
717
|
+
}
|
|
718
|
+
),
|
|
719
|
+
/* @__PURE__ */ jsx(FormControl, { size: "small", sx: { minWidth: 160 }, children: /* @__PURE__ */ jsx(
|
|
720
|
+
Select,
|
|
721
|
+
{
|
|
722
|
+
displayEmpty: true,
|
|
723
|
+
value: "",
|
|
724
|
+
size: "small",
|
|
725
|
+
renderValue: () => "Add placeholder...",
|
|
726
|
+
sx: {
|
|
727
|
+
bgcolor: "white",
|
|
728
|
+
borderRadius: 1,
|
|
729
|
+
"& .MuiSelect-select": { py: 0.75 }
|
|
730
|
+
},
|
|
731
|
+
onChange: handleSelectChange,
|
|
732
|
+
children: placeholderOptions
|
|
733
|
+
}
|
|
734
|
+
) }),
|
|
735
|
+
/* @__PURE__ */ jsxs(Box, { children: [
|
|
736
|
+
/* @__PURE__ */ jsx(IconButton, { size: "small", onClick: handleSave, children: /* @__PURE__ */ jsx(Save, { fontSize: "small", color: "inherit" }) }),
|
|
737
|
+
/* @__PURE__ */ jsx(IconButton, { size: "small", onClick: handleCancelEdit, color: "error", children: /* @__PURE__ */ jsx(Close, { fontSize: "small", color: "inherit" }) })
|
|
738
|
+
] })
|
|
739
|
+
] }) : /* @__PURE__ */ jsx(Fade, { in: isHovered || isSelected, timeout: 200, children: /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", gap: 0.5 }, children: [
|
|
740
|
+
(section == null ? void 0 : section.is_edited_from_source) && /* @__PURE__ */ jsx(
|
|
741
|
+
Chip,
|
|
742
|
+
{
|
|
743
|
+
label: "Edited From Source",
|
|
744
|
+
size: "small",
|
|
745
|
+
sx: (theme) => {
|
|
746
|
+
var _a, _b, _c, _d;
|
|
747
|
+
return {
|
|
748
|
+
textTransform: "capitalize",
|
|
749
|
+
backgroundColor: (_b = (_a = theme.palette.theme) == null ? void 0 : _a.tertiary1) == null ? void 0 : _b[200],
|
|
750
|
+
color: (_d = (_c = theme.palette.theme) == null ? void 0 : _c.tertiary1) == null ? void 0 : _d[900]
|
|
751
|
+
};
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
),
|
|
755
|
+
editableSections.includes(section.type) && /* @__PURE__ */ jsx(
|
|
756
|
+
IconButton,
|
|
757
|
+
{
|
|
758
|
+
size: "small",
|
|
759
|
+
onClick: handleEditing,
|
|
760
|
+
sx: {
|
|
761
|
+
bgcolor: "grey.100",
|
|
762
|
+
"&:hover": { bgcolor: "grey.200" }
|
|
763
|
+
},
|
|
764
|
+
children: /* @__PURE__ */ jsx(Edit, { fontSize: "small", sx: { color: "theme.secondary.1000" } })
|
|
765
|
+
}
|
|
766
|
+
),
|
|
767
|
+
/* @__PURE__ */ jsx(
|
|
768
|
+
IconButton,
|
|
769
|
+
{
|
|
770
|
+
size: "small",
|
|
771
|
+
onClick: handleSplit,
|
|
772
|
+
sx: {
|
|
773
|
+
bgcolor: "grey.100",
|
|
774
|
+
"&:hover": { bgcolor: "grey.200" },
|
|
775
|
+
opacity: (section == null ? void 0 : section.splitWidth) === 25 ? 0.5 : 1
|
|
776
|
+
},
|
|
777
|
+
disabled: (section == null ? void 0 : section.splitWidth) === 25,
|
|
778
|
+
children: /* @__PURE__ */ jsx(SplitIcon, { fontSize: "small", color: "primary" })
|
|
779
|
+
}
|
|
780
|
+
),
|
|
781
|
+
/* @__PURE__ */ jsx(
|
|
782
|
+
IconButton,
|
|
783
|
+
{
|
|
784
|
+
size: "small",
|
|
785
|
+
onClick: handleDeleteClick,
|
|
786
|
+
sx: {
|
|
787
|
+
bgcolor: "grey.100",
|
|
788
|
+
"&:hover": { bgcolor: "grey.200" }
|
|
789
|
+
},
|
|
790
|
+
children: /* @__PURE__ */ jsx(Trash, { fontSize: "small", sx: { color: "theme.error.500" } })
|
|
791
|
+
}
|
|
792
|
+
)
|
|
793
|
+
] }) }) })
|
|
794
|
+
]
|
|
795
|
+
}
|
|
796
|
+
),
|
|
797
|
+
/* @__PURE__ */ jsxs(Box, { sx: { p: 3, bgcolor: "white" }, children: [
|
|
798
|
+
/* @__PURE__ */ jsx("style", { children: `
|
|
799
|
+
a {
|
|
800
|
+
color: #007bff !important;
|
|
801
|
+
text-decoration: none !important;
|
|
802
|
+
}
|
|
803
|
+
a:hover {
|
|
804
|
+
text-decoration: underline;
|
|
805
|
+
}
|
|
806
|
+
` }),
|
|
807
|
+
contentRenderer
|
|
808
|
+
] }),
|
|
809
|
+
isOpenEditSectionModal && /* @__PURE__ */ jsx(
|
|
810
|
+
EditSectionModal,
|
|
811
|
+
{
|
|
812
|
+
isOpen: isOpenEditSectionModal,
|
|
813
|
+
setIsOpen: setIsOpenEditSectionModal,
|
|
814
|
+
modalProps: { open: isOpenEditSectionModal },
|
|
815
|
+
placeholders,
|
|
816
|
+
handleSave,
|
|
817
|
+
handleAddPlaceholder,
|
|
818
|
+
handleEditorReady,
|
|
819
|
+
section
|
|
820
|
+
}
|
|
821
|
+
)
|
|
822
|
+
]
|
|
823
|
+
}
|
|
824
|
+
);
|
|
825
|
+
};
|
|
826
|
+
const arePropsEqual = (prevProps, nextProps) => {
|
|
827
|
+
if (prevProps.section.id !== nextProps.section.id) return false;
|
|
828
|
+
if (prevProps.section.content !== nextProps.section.content) return false;
|
|
829
|
+
if (prevProps.section.type !== nextProps.section.type) return false;
|
|
830
|
+
if (prevProps.section.is_edited_from_source !== nextProps.section.is_edited_from_source) return false;
|
|
831
|
+
if (prevProps.section.isSplitPair !== nextProps.section.isSplitPair) return false;
|
|
832
|
+
if (prevProps.section.splitWidth !== nextProps.section.splitWidth) return false;
|
|
833
|
+
if (prevProps.isSelected !== nextProps.isSelected) return false;
|
|
834
|
+
if (prevProps.isDragging !== nextProps.isDragging) return false;
|
|
835
|
+
if (prevProps.isOver !== nextProps.isOver) return false;
|
|
836
|
+
if (prevProps.isPreview !== nextProps.isPreview) return false;
|
|
837
|
+
if (prevProps.placeholders !== nextProps.placeholders) return false;
|
|
838
|
+
const prevAttrs = JSON.stringify(prevProps.section.attributes);
|
|
839
|
+
const nextAttrs = JSON.stringify(nextProps.section.attributes);
|
|
840
|
+
if (prevAttrs !== nextAttrs) return false;
|
|
841
|
+
return true;
|
|
842
|
+
};
|
|
843
|
+
const MemoizedEditorSection = React__default.memo(EditorSection, arePropsEqual);
|
|
844
|
+
MemoizedEditorSection.displayName = "EditorSection";
|
|
845
|
+
export {
|
|
846
|
+
EditorHeader as E,
|
|
847
|
+
MemoizedEditorSection as M
|
|
848
|
+
};
|
|
849
|
+
//# sourceMappingURL=EditorSection-BLGcgQFm.esm.js.map
|