@erpsquad/common 1.11.7 → 1.11.8
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-DOGY6cA_.esm.js → DynamicDependentField-C0XXmMlG.esm.js} +2 -2
- package/dist/chunks/{DynamicDependentField-DOGY6cA_.esm.js.map → DynamicDependentField-C0XXmMlG.esm.js.map} +1 -1
- package/dist/chunks/{DynamicDependentField-GTIwrPfP.js → DynamicDependentField-CQIfDDqc.js} +2 -2
- package/dist/chunks/{DynamicDependentField-GTIwrPfP.js.map → DynamicDependentField-CQIfDDqc.js.map} +1 -1
- package/dist/chunks/{ERPUIProvider-Dz0s77BR.esm.js → ERPUIProvider-I4j_X_SD.esm.js} +3 -3
- package/dist/chunks/{ERPUIProvider-Dz0s77BR.esm.js.map → ERPUIProvider-I4j_X_SD.esm.js.map} +1 -1
- package/dist/chunks/{FORMS-EouVYay1.js → FORMS-CUx32b_4.js} +5 -5
- package/dist/chunks/{FORMS-EouVYay1.js.map → FORMS-CUx32b_4.js.map} +1 -1
- package/dist/chunks/{FORMS-CR_DlD1m.esm.js → FORMS-pxf6g6xE.esm.js} +8 -8
- package/dist/chunks/{FORMS-CR_DlD1m.esm.js.map → FORMS-pxf6g6xE.esm.js.map} +1 -1
- package/dist/chunks/{FlexibleReduxExample-CMUylyy1.js → FlexibleReduxExample--GtoEJhc.js} +3 -3
- package/dist/chunks/{FlexibleReduxExample-CMUylyy1.js.map → FlexibleReduxExample--GtoEJhc.js.map} +1 -1
- package/dist/chunks/{FlexibleReduxExample-B2e7Wa_S.esm.js → FlexibleReduxExample-C-2qOGIw.esm.js} +4 -4
- package/dist/chunks/{FlexibleReduxExample-B2e7Wa_S.esm.js.map → FlexibleReduxExample-C-2qOGIw.esm.js.map} +1 -1
- package/dist/chunks/SectionFlowEditor-CFfJBYKx.esm.js +5479 -0
- package/dist/chunks/SectionFlowEditor-CFfJBYKx.esm.js.map +1 -0
- package/dist/chunks/SectionFlowEditor-sKsZ3oQo.js +5478 -0
- package/dist/chunks/SectionFlowEditor-sKsZ3oQo.js.map +1 -0
- package/dist/chunks/{action-bar-Ci6RlMBM.esm.js → action-bar-C7Alva4T.esm.js} +6 -6
- package/dist/chunks/{action-bar-Ci6RlMBM.esm.js.map → action-bar-C7Alva4T.esm.js.map} +1 -1
- package/dist/chunks/{action-bar-jLqQTqU7.js → action-bar-DdtpxWNk.js} +3 -3
- package/dist/chunks/{action-bar-jLqQTqU7.js.map → action-bar-DdtpxWNk.js.map} +1 -1
- package/dist/chunks/{actionCreator-DIdMRO9L.esm.js → actionCreator-CL5ICuqZ.esm.js} +2 -2
- package/dist/chunks/{actionCreator-DIdMRO9L.esm.js.map → actionCreator-CL5ICuqZ.esm.js.map} +1 -1
- package/dist/chunks/{actionCreator-DKYufGAZ.esm.js → actionCreator-Cb3NxILP.esm.js} +2 -2
- package/dist/chunks/{actionCreator-DKYufGAZ.esm.js.map → actionCreator-Cb3NxILP.esm.js.map} +1 -1
- package/dist/chunks/{actionCreator-D3uwEAua.esm.js → actionCreator-Cl8vPLVO.esm.js} +3 -3
- package/dist/chunks/{actionCreator-D3uwEAua.esm.js.map → actionCreator-Cl8vPLVO.esm.js.map} +1 -1
- package/dist/chunks/{actionCreator-B6lXR_k1.esm.js → actionCreator-CpePNxQM.esm.js} +2 -2
- package/dist/chunks/{actionCreator-B6lXR_k1.esm.js.map → actionCreator-CpePNxQM.esm.js.map} +1 -1
- package/dist/chunks/{actionCreator-DcdyGsIX.esm.js → actionCreator-Dar9Z8_d.esm.js} +3 -3
- package/dist/chunks/{actionCreator-DcdyGsIX.esm.js.map → actionCreator-Dar9Z8_d.esm.js.map} +1 -1
- package/dist/chunks/add-template-DVvbD9a4.esm.js +11 -0
- package/dist/chunks/add-template-DVvbD9a4.esm.js.map +1 -0
- package/dist/chunks/add-template-Dohg2bHJ.js +10 -0
- package/dist/chunks/add-template-Dohg2bHJ.js.map +1 -0
- package/dist/chunks/{address-modal-DFd5sQtR.js → address-modal-CYhiC7ui.js} +2 -2
- package/dist/chunks/{address-modal-DFd5sQtR.js.map → address-modal-CYhiC7ui.js.map} +1 -1
- package/dist/chunks/{address-modal-DYGLjrqd.esm.js → address-modal-CkDBjnye.esm.js} +2 -2
- package/dist/chunks/{address-modal-DYGLjrqd.esm.js.map → address-modal-CkDBjnye.esm.js.map} +1 -1
- package/dist/chunks/{ai-summary-x2t8BZCx.esm.js → ai-summary-SKK5KN2s.esm.js} +2 -2
- package/dist/chunks/{ai-summary-x2t8BZCx.esm.js.map → ai-summary-SKK5KN2s.esm.js.map} +1 -1
- package/dist/chunks/{api-8jutPLh0.esm.js → api-BIVCMSwW.esm.js} +3 -3
- package/dist/chunks/{api-8jutPLh0.esm.js.map → api-BIVCMSwW.esm.js.map} +1 -1
- package/dist/chunks/{api-yLpQ3k5s.esm.js → api-DBmWILBN.esm.js} +9 -9
- package/dist/chunks/{api-yLpQ3k5s.esm.js.map → api-DBmWILBN.esm.js.map} +1 -1
- package/dist/chunks/{app-switcher-VhH9z0Rd.js → app-switcher-CyEQmYAN.js} +2 -2
- package/dist/chunks/{app-switcher-VhH9z0Rd.js.map → app-switcher-CyEQmYAN.js.map} +1 -1
- package/dist/chunks/{app-switcher-B6eapuGG.esm.js → app-switcher-D-Bvz9uO.esm.js} +2 -2
- package/dist/chunks/{app-switcher-B6eapuGG.esm.js.map → app-switcher-D-Bvz9uO.esm.js.map} +1 -1
- package/dist/chunks/{appbar-B8EgZsrn.esm.js → appbar-BRbO--as.esm.js} +2 -2
- package/dist/chunks/{appbar-B8EgZsrn.esm.js.map → appbar-BRbO--as.esm.js.map} +1 -1
- package/dist/chunks/{appbar-Is_7kfVo.js → appbar-rqqjZ99v.js} +2 -2
- package/dist/chunks/{appbar-Is_7kfVo.js.map → appbar-rqqjZ99v.js.map} +1 -1
- package/dist/chunks/{approval-wrapper-_kYfACQp.esm.js → approval-wrapper-BTtmXMlk.esm.js} +2 -2
- package/dist/chunks/{approval-wrapper-_kYfACQp.esm.js.map → approval-wrapper-BTtmXMlk.esm.js.map} +1 -1
- package/dist/chunks/{chat-bot-DO3vAGxA.esm.js → chat-bot-BpNtrZEL.esm.js} +39 -33
- package/dist/chunks/chat-bot-BpNtrZEL.esm.js.map +1 -0
- package/dist/chunks/{chat-bot-2Ga_xA_K.js → chat-bot-osiGMG3g.js} +38 -32
- package/dist/chunks/chat-bot-osiGMG3g.js.map +1 -0
- package/dist/chunks/common-C5AokA7z.js +368 -0
- package/dist/chunks/common-C5AokA7z.js.map +1 -0
- package/dist/chunks/{common-PH2uWkqL.js → common-CS5L0Ld_.js} +2 -2
- package/dist/chunks/{common-PH2uWkqL.js.map → common-CS5L0Ld_.js.map} +1 -1
- package/dist/chunks/common-CaomnEjX.esm.js +369 -0
- package/dist/chunks/common-CaomnEjX.esm.js.map +1 -0
- package/dist/chunks/common-utility-CA_Upser.js.map +1 -1
- package/dist/chunks/{common-utility-CS_sNoAC.esm.js → common-utility-DGpbsf7S.esm.js} +2 -2
- package/dist/chunks/common-utility-DGpbsf7S.esm.js.map +1 -0
- package/dist/chunks/{common-Cl5oGXmX.esm.js → common-yORBIVv-.esm.js} +2 -2
- package/dist/chunks/{common-Cl5oGXmX.esm.js.map → common-yORBIVv-.esm.js.map} +1 -1
- 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-BXPcBhJN.esm.js → constant-Bwg2s_Sn.esm.js} +5 -35
- package/dist/chunks/constant-Bwg2s_Sn.esm.js.map +1 -0
- package/dist/chunks/{constant-BXeJD4Af.js → constant-ZYAN_teD.js} +5 -35
- package/dist/chunks/constant-ZYAN_teD.js.map +1 -0
- package/dist/chunks/{constants-D_xuLHSu.js → constants-06kIVUBw.js} +2 -2
- package/dist/chunks/{constants-D_xuLHSu.js.map → constants-06kIVUBw.js.map} +1 -1
- package/dist/chunks/{constants-BrmMAwu2.esm.js → constants-nmkxkzps.esm.js} +2 -2
- package/dist/chunks/{constants-BrmMAwu2.esm.js.map → constants-nmkxkzps.esm.js.map} +1 -1
- package/dist/chunks/{custom-editor-C-B5BK-H.esm.js → custom-editor-6-xqhKz6.esm.js} +3 -3
- package/dist/chunks/{custom-editor-C-B5BK-H.esm.js.map → custom-editor-6-xqhKz6.esm.js.map} +1 -1
- package/dist/chunks/{custom-form-T4yc_sE_.js → custom-form-CFU7NEVb.js} +4 -4
- package/dist/chunks/{custom-form-T4yc_sE_.js.map → custom-form-CFU7NEVb.js.map} +1 -1
- package/dist/chunks/{custom-form-DNUpk0nq.esm.js → custom-form-DD7YOHMF.esm.js} +7 -7
- package/dist/chunks/{custom-form-DNUpk0nq.esm.js.map → custom-form-DD7YOHMF.esm.js.map} +1 -1
- package/dist/chunks/{dashboard-eMHQayU_.js → dashboard-BcWVkWZt.js} +3 -3
- package/dist/chunks/{dashboard-eMHQayU_.js.map → dashboard-BcWVkWZt.js.map} +1 -1
- package/dist/chunks/{dashboard-B4xzJ1Xc.esm.js → dashboard-DL83yYRR.esm.js} +4 -4
- package/dist/chunks/{dashboard-B4xzJ1Xc.esm.js.map → dashboard-DL83yYRR.esm.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-CMguvXj2.esm.js → dynamic-report-tKn-KqAd.esm.js} +4 -4
- package/dist/chunks/{dynamic-report-CMguvXj2.esm.js.map → dynamic-report-tKn-KqAd.esm.js.map} +1 -1
- package/dist/chunks/{dynamic-rows-CmAE9nbA.esm.js → dynamic-rows-CTGETfcP.esm.js} +2 -2
- package/dist/chunks/{dynamic-rows-CmAE9nbA.esm.js.map → dynamic-rows-CTGETfcP.esm.js.map} +1 -1
- package/dist/chunks/{dynamic-text-editor-CSWdR1lK.esm.js → dynamic-text-editor-CPvlGcLK.esm.js} +2 -2
- package/dist/chunks/{dynamic-text-editor-CSWdR1lK.esm.js.map → dynamic-text-editor-CPvlGcLK.esm.js.map} +1 -1
- package/dist/chunks/{edit-section-modal-HihKbN6K.esm.js → edit-section-modal-BW-aZmUv.esm.js} +2 -2
- package/dist/chunks/edit-section-modal-BW-aZmUv.esm.js.map +1 -0
- package/dist/chunks/edit-section-modal-Br2ITvLk.js.map +1 -1
- package/dist/chunks/{filter-D9BHP_qc.esm.js → filter-COXKBEER.esm.js} +5 -5
- package/dist/chunks/{filter-D9BHP_qc.esm.js.map → filter-COXKBEER.esm.js.map} +1 -1
- package/dist/chunks/{filter-DtCrOG6W.js → filter-Cr_OSIpb.js} +3 -3
- package/dist/chunks/{filter-DtCrOG6W.js.map → filter-Cr_OSIpb.js.map} +1 -1
- package/dist/chunks/{footer-DioOh69g.js → footer-CD3kMRdS.js} +2 -2
- package/dist/chunks/{footer-DioOh69g.js.map → footer-CD3kMRdS.js.map} +1 -1
- package/dist/chunks/{footer-Bv5NOAf9.esm.js → footer-m3_dlNl8.esm.js} +2 -2
- package/dist/chunks/{footer-Bv5NOAf9.esm.js.map → footer-m3_dlNl8.esm.js.map} +1 -1
- package/dist/chunks/{form-fields-Di-p9XKG.esm.js → form-fields-hMMnB_wE.esm.js} +2 -2
- package/dist/chunks/{form-fields-Di-p9XKG.esm.js.map → form-fields-hMMnB_wE.esm.js.map} +1 -1
- package/dist/chunks/{form-fields-BYDhbAgB.js → form-fields-yE9kwjvb.js} +2 -2
- package/dist/chunks/{form-fields-BYDhbAgB.js.map → form-fields-yE9kwjvb.js.map} +1 -1
- package/dist/chunks/{form-parser-ZQpEVrzG.esm.js → form-parser-DbnSn5eY.esm.js} +2 -2
- package/dist/chunks/{form-parser-ZQpEVrzG.esm.js.map → form-parser-DbnSn5eY.esm.js.map} +1 -1
- package/dist/chunks/{form-parser-BnMdMDSb.js → form-parser-m4fnw38a.js} +2 -2
- package/dist/chunks/{form-parser-BnMdMDSb.js.map → form-parser-m4fnw38a.js.map} +1 -1
- package/dist/chunks/{form-section-CFeWD-tF.js → form-section-CPIyMdk2.js} +5 -5
- package/dist/chunks/{form-section-CFeWD-tF.js.map → form-section-CPIyMdk2.js.map} +1 -1
- package/dist/chunks/{form-section-BJ7Iqb9R.esm.js → form-section-TMjdOVeW.esm.js} +5 -5
- package/dist/chunks/{form-section-BJ7Iqb9R.esm.js.map → form-section-TMjdOVeW.esm.js.map} +1 -1
- package/dist/chunks/{fullScreen-h0JqBN4O.js → fullScreen-BLLa9ogA.js} +5 -5
- package/dist/chunks/fullScreen-BLLa9ogA.js.map +1 -0
- package/dist/chunks/{fullScreen-Cz3FIdU4.esm.js → fullScreen-DFgzE41_.esm.js} +5 -5
- package/dist/chunks/fullScreen-DFgzE41_.esm.js.map +1 -0
- package/dist/chunks/{global-search-CGmupYFQ.esm.js → global-search-BOkxXiZ0.esm.js} +3 -3
- package/dist/chunks/{global-search-CGmupYFQ.esm.js.map → global-search-BOkxXiZ0.esm.js.map} +1 -1
- package/dist/chunks/{global-search-BTV5iL6-.js → global-search-BjKPmzsQ.js} +2 -2
- package/dist/chunks/{global-search-BTV5iL6-.js.map → global-search-BjKPmzsQ.js.map} +1 -1
- package/dist/chunks/{grid-view-BMfleQMC.esm.js → grid-view-Bo86x7YL.esm.js} +2 -2
- package/dist/chunks/{grid-view-BMfleQMC.esm.js.map → grid-view-Bo86x7YL.esm.js.map} +1 -1
- package/dist/chunks/{header-BnVzqpGs.esm.js → header-B-HaoeK7.esm.js} +10 -12
- package/dist/chunks/{header-BnVzqpGs.esm.js.map → header-B-HaoeK7.esm.js.map} +1 -1
- package/dist/chunks/{header-jWPMgcy6.js → header-BHsex2As.js} +9 -11
- package/dist/chunks/{header-jWPMgcy6.js.map → header-BHsex2As.js.map} +1 -1
- package/dist/chunks/{header-enhanced-CkROCaOF.esm.js → header-enhanced-BjfqyQ1a.esm.js} +3 -3
- package/dist/chunks/{header-enhanced-CkROCaOF.esm.js.map → header-enhanced-BjfqyQ1a.esm.js.map} +1 -1
- package/dist/chunks/{header-enhanced-Dxdetx0I.js → header-enhanced-gJl4iC4m.js} +3 -3
- package/dist/chunks/{header-enhanced-Dxdetx0I.js.map → header-enhanced-gJl4iC4m.js.map} +1 -1
- package/dist/chunks/{index-BCmGHdos.esm.js → index-ALqg8b5U.esm.js} +2 -2
- package/dist/chunks/{index-BCmGHdos.esm.js.map → index-ALqg8b5U.esm.js.map} +1 -1
- package/dist/chunks/{inline-edit-fields-VOIx3qmC.esm.js → inline-edit-fields-BYhRpPcH.esm.js} +2 -2
- package/dist/chunks/{inline-edit-fields-VOIx3qmC.esm.js.map → inline-edit-fields-BYhRpPcH.esm.js.map} +1 -1
- package/dist/chunks/{inline-edit-fields-Cd_qUOjU.js → inline-edit-fields-atDP84QL.js} +2 -2
- package/dist/chunks/{inline-edit-fields-Cd_qUOjU.js.map → inline-edit-fields-atDP84QL.js.map} +1 -1
- package/dist/chunks/{inventory-reports-title-bar-BfUMM54c.js → inventory-reports-title-bar-Bog2i0dr.js} +2 -2
- package/dist/chunks/{inventory-reports-title-bar-BfUMM54c.js.map → inventory-reports-title-bar-Bog2i0dr.js.map} +1 -1
- package/dist/chunks/{inventory-reports-title-bar-CZZFFqDc.esm.js → inventory-reports-title-bar-CP8FzW6A.esm.js} +3 -3
- package/dist/chunks/{inventory-reports-title-bar-CZZFFqDc.esm.js.map → inventory-reports-title-bar-CP8FzW6A.esm.js.map} +1 -1
- package/dist/chunks/{item-response-details-BheThTTK.js → item-response-details-DsGQ7Dlc.js} +2 -2
- package/dist/chunks/{item-response-details-BheThTTK.js.map → item-response-details-DsGQ7Dlc.js.map} +1 -1
- package/dist/chunks/{item-response-details-BTHf6ZvN.esm.js → item-response-details-SHSD-nBh.esm.js} +4 -4
- package/dist/chunks/{item-response-details-BTHf6ZvN.esm.js.map → item-response-details-SHSD-nBh.esm.js.map} +1 -1
- package/dist/chunks/{listing-ELQeM6S3.esm.js → listing-C0Yb6MVq.esm.js} +4 -4
- package/dist/chunks/{listing-ELQeM6S3.esm.js.map → listing-C0Yb6MVq.esm.js.map} +1 -1
- package/dist/chunks/{listing-Dr_1DDBr.js → listing-DIuzQrzb.js} +4 -4
- package/dist/chunks/{listing-Dr_1DDBr.js.map → listing-DIuzQrzb.js.map} +1 -1
- package/dist/chunks/{location-select-z1C88kCy.esm.js → location-select-CFa00fy4.esm.js} +2 -2
- package/dist/chunks/{location-select-z1C88kCy.esm.js.map → location-select-CFa00fy4.esm.js.map} +1 -1
- package/dist/chunks/{location-select-CLyRUilk.js → location-select-g5uczAUF.js} +2 -2
- package/dist/chunks/{location-select-CLyRUilk.js.map → location-select-g5uczAUF.js.map} +1 -1
- package/dist/chunks/{material-editable-table-DFGB0q-s.js → material-editable-table-BGLjrTzT.js} +3 -3
- package/dist/chunks/{material-editable-table-DFGB0q-s.js.map → material-editable-table-BGLjrTzT.js.map} +1 -1
- package/dist/chunks/{material-editable-table-DyGdqNkX.esm.js → material-editable-table-pAyK7KYf.esm.js} +4 -4
- package/dist/chunks/{material-editable-table-DyGdqNkX.esm.js.map → material-editable-table-pAyK7KYf.esm.js.map} +1 -1
- package/dist/chunks/{module-reducer-CEv3LZCX.esm.js → module-reducer-DMxxForv.esm.js} +2 -2
- package/dist/chunks/{module-reducer-CEv3LZCX.esm.js.map → module-reducer-DMxxForv.esm.js.map} +1 -1
- package/dist/chunks/{modules-enwLrpfQ.esm.js → modules-BBu2Y-K9.esm.js} +5 -5
- package/dist/chunks/{modules-enwLrpfQ.esm.js.map → modules-BBu2Y-K9.esm.js.map} +1 -1
- package/dist/chunks/{modules-DTRr7zwt.js → modules-maXT99-4.js} +5 -5
- package/dist/chunks/{modules-DTRr7zwt.js.map → modules-maXT99-4.js.map} +1 -1
- package/dist/chunks/{notification-menu-B00hDUbn.js → notification-menu-D7ASm-K1.js} +2 -2
- package/dist/chunks/{notification-menu-B00hDUbn.js.map → notification-menu-D7ASm-K1.js.map} +1 -1
- package/dist/chunks/{notification-menu-CehCt5fA.esm.js → notification-menu-XAadkn-e.esm.js} +4 -4
- package/dist/chunks/{notification-menu-CehCt5fA.esm.js.map → notification-menu-XAadkn-e.esm.js.map} +1 -1
- package/dist/chunks/{page-action-TMFOytDw.js → page-action-BPzaL2KJ.js} +2 -2
- package/dist/chunks/{page-action-TMFOytDw.js.map → page-action-BPzaL2KJ.js.map} +1 -1
- package/dist/chunks/{page-action-RqVevciV.esm.js → page-action-C07iGjvN.esm.js} +4 -4
- package/dist/chunks/{page-action-RqVevciV.esm.js.map → page-action-C07iGjvN.esm.js.map} +1 -1
- package/dist/chunks/{page-navigator-CuIJ0KGf.esm.js → page-navigator-8gZpp9_P.esm.js} +2 -2
- package/dist/chunks/{page-navigator-CuIJ0KGf.esm.js.map → page-navigator-8gZpp9_P.esm.js.map} +1 -1
- package/dist/chunks/{page-navigator-DdRsmtLy.js → page-navigator-Cgbh3tTG.js} +2 -2
- package/dist/chunks/{page-navigator-DdRsmtLy.js.map → page-navigator-Cgbh3tTG.js.map} +1 -1
- package/dist/chunks/{page-view-Daz-OKd_.esm.js → page-view-CokUNMBn.esm.js} +3 -3
- package/dist/chunks/{page-view-Daz-OKd_.esm.js.map → page-view-CokUNMBn.esm.js.map} +1 -1
- package/dist/chunks/{page-view-CvfqzV03.js → page-view-DJ6HS_dV.js} +3 -3
- package/dist/chunks/{page-view-CvfqzV03.js.map → page-view-DJ6HS_dV.js.map} +1 -1
- package/dist/chunks/{pathname.rental-CwK6JuID.js → pathname.rental-DgH4LoG7.js} +7 -2
- package/dist/chunks/{pathname.rental-CwK6JuID.js.map → pathname.rental-DgH4LoG7.js.map} +1 -1
- package/dist/chunks/{pathname.rental-CqHO_l_D.esm.js → pathname.rental-qsAe3XFd.esm.js} +81 -76
- package/dist/chunks/{pathname.rental-CqHO_l_D.esm.js.map → pathname.rental-qsAe3XFd.esm.js.map} +1 -1
- package/dist/chunks/{quick-approval-modal-B-jvkgue.esm.js → quick-approval-modal-CPWs8htH.esm.js} +2 -2
- package/dist/chunks/{quick-approval-modal-B-jvkgue.esm.js.map → quick-approval-modal-CPWs8htH.esm.js.map} +1 -1
- package/dist/chunks/{reducer-BOwyP0QZ.esm.js → reducer-3tSO6RW6.esm.js} +3 -3
- package/dist/chunks/{reducer-BOwyP0QZ.esm.js.map → reducer-3tSO6RW6.esm.js.map} +1 -1
- package/dist/chunks/{reducer-BMkh_0Py.esm.js → reducer-CdJ6znKF.esm.js} +3 -3
- package/dist/chunks/{reducer-BMkh_0Py.esm.js.map → reducer-CdJ6znKF.esm.js.map} +1 -1
- package/dist/chunks/{reducer-BTfG9J4W.esm.js → reducer-IsgN83rP.esm.js} +2 -2
- package/dist/chunks/{reducer-BTfG9J4W.esm.js.map → reducer-IsgN83rP.esm.js.map} +1 -1
- package/dist/chunks/{reducer-CD1VDqeT.esm.js → reducer-sgaK2vfW.esm.js} +2 -2
- package/dist/chunks/{reducer-CD1VDqeT.esm.js.map → reducer-sgaK2vfW.esm.js.map} +1 -1
- package/dist/chunks/{reducer-BWiX5vxL.esm.js → reducer-yyZtsg1A.esm.js} +2 -2
- package/dist/chunks/{reducer-BWiX5vxL.esm.js.map → reducer-yyZtsg1A.esm.js.map} +1 -1
- package/dist/chunks/{reports-title-bar-Kl8XQe-K.esm.js → reports-title-bar-Cay4E8SQ.esm.js} +4 -4
- package/dist/chunks/{reports-title-bar-Kl8XQe-K.esm.js.map → reports-title-bar-Cay4E8SQ.esm.js.map} +1 -1
- package/dist/chunks/{reports-title-bar-B1_IweEc.js → reports-title-bar-Kz6JjqsY.js} +2 -2
- package/dist/chunks/{reports-title-bar-B1_IweEc.js.map → reports-title-bar-Kz6JjqsY.js.map} +1 -1
- package/dist/chunks/{route-page-map-D6-7jBQT.esm.js → route-page-map-DkWoisiB.esm.js} +133 -76
- package/dist/chunks/{route-page-map-D6-7jBQT.esm.js.map → route-page-map-DkWoisiB.esm.js.map} +1 -1
- package/dist/chunks/{route-page-map-CzFUh-SC.js → route-page-map-Dn-SAbdf.js} +60 -3
- package/dist/chunks/{route-page-map-CzFUh-SC.js.map → route-page-map-Dn-SAbdf.js.map} +1 -1
- package/dist/chunks/{routes-D9y_XQRu.esm.js → routes-CAc76Zan.esm.js} +4 -4
- package/dist/chunks/{routes-D9y_XQRu.esm.js.map → routes-CAc76Zan.esm.js.map} +1 -1
- package/dist/chunks/{routes-Dsumzjw0.js → routes-CfqLAYgR.js} +4 -4
- package/dist/chunks/{routes-Dsumzjw0.js.map → routes-CfqLAYgR.js.map} +1 -1
- package/dist/chunks/{schedule-report-BwmZ5jea.js → schedule-report-B4ZfEuiU.js} +4 -4
- package/dist/chunks/{schedule-report-BwmZ5jea.js.map → schedule-report-B4ZfEuiU.js.map} +1 -1
- package/dist/chunks/{schedule-report-CJXHVZ68.esm.js → schedule-report-CLXjjfjc.esm.js} +6 -6
- package/dist/chunks/{schedule-report-CJXHVZ68.esm.js.map → schedule-report-CLXjjfjc.esm.js.map} +1 -1
- package/dist/chunks/{schedule-report-modal-D8Y-TZ4u.esm.js → schedule-report-modal-CB3G9H7x.esm.js} +3 -3
- package/dist/chunks/{schedule-report-modal-D8Y-TZ4u.esm.js.map → schedule-report-modal-CB3G9H7x.esm.js.map} +1 -1
- package/dist/chunks/{schedule-report-modal-iNnWP9s4.js → schedule-report-modal-iwoDI-sg.js} +2 -2
- package/dist/chunks/{schedule-report-modal-iNnWP9s4.js.map → schedule-report-modal-iwoDI-sg.js.map} +1 -1
- package/dist/chunks/{searchable-select-BQtcqBKV.esm.js → searchable-select-0F6E4XAr.esm.js} +6 -6
- package/dist/chunks/{searchable-select-BQtcqBKV.esm.js.map → searchable-select-0F6E4XAr.esm.js.map} +1 -1
- package/dist/chunks/{searchable-select-DVUCWWti.js → searchable-select-_DCkITfk.js} +2 -2
- package/dist/chunks/{searchable-select-DVUCWWti.js.map → searchable-select-_DCkITfk.js.map} +1 -1
- package/dist/chunks/{share-modal-BOyLBawK.esm.js → share-modal-BaEyZs2h.esm.js} +3 -3
- package/dist/chunks/{share-modal-BOyLBawK.esm.js.map → share-modal-BaEyZs2h.esm.js.map} +1 -1
- package/dist/chunks/{share-modal-CobK7BN7.js → share-modal-DrXvh-fV.js} +2 -2
- package/dist/chunks/{share-modal-CobK7BN7.js.map → share-modal-DrXvh-fV.js.map} +1 -1
- package/dist/chunks/{share-modal-enhanced-DVarD-jt.js → share-modal-enhanced-BTr0zRhF.js} +2 -2
- package/dist/chunks/{share-modal-enhanced-DVarD-jt.js.map → share-modal-enhanced-BTr0zRhF.js.map} +1 -1
- package/dist/chunks/{share-modal-enhanced-CTp-tQw8.esm.js → share-modal-enhanced-DnEdDBmu.esm.js} +2 -2
- package/dist/chunks/{share-modal-enhanced-CTp-tQw8.esm.js.map → share-modal-enhanced-DnEdDBmu.esm.js.map} +1 -1
- package/dist/chunks/{sidebarScreen-lR6rw8bW.esm.js → sidebarScreen-DiOAiXeU.esm.js} +4 -4
- package/dist/chunks/{sidebarScreen-lR6rw8bW.esm.js.map → sidebarScreen-DiOAiXeU.esm.js.map} +1 -1
- package/dist/chunks/{sidebarScreen-K-dlM6NA.js → sidebarScreen-DpYj_wlK.js} +3 -3
- package/dist/chunks/{sidebarScreen-K-dlM6NA.js.map → sidebarScreen-DpYj_wlK.js.map} +1 -1
- package/dist/chunks/{store-DJh8C3Vv.esm.js → store-BL5VFPie.esm.js} +6 -6
- package/dist/chunks/{store-DJh8C3Vv.esm.js.map → store-BL5VFPie.esm.js.map} +1 -1
- package/dist/chunks/{table-Bpt6ggr3.js → table-DWx7x8zw.js} +2 -2
- package/dist/chunks/{table-Bpt6ggr3.js.map → table-DWx7x8zw.js.map} +1 -1
- package/dist/chunks/{table-form-8_f3FwhX.esm.js → table-form-DsTwCUcs.esm.js} +2 -2
- package/dist/chunks/{table-form-8_f3FwhX.esm.js.map → table-form-DsTwCUcs.esm.js.map} +1 -1
- package/dist/chunks/{table-DI3MyTNm.esm.js → table-gxAlAeTq.esm.js} +3 -3
- package/dist/chunks/{table-DI3MyTNm.esm.js.map → table-gxAlAeTq.esm.js.map} +1 -1
- package/dist/chunks/{template-editor-router-uzghBOap.esm.js → template-editor-router-BXLUTvsk.esm.js} +2 -2
- package/dist/chunks/{template-editor-router-uzghBOap.esm.js.map → template-editor-router-BXLUTvsk.esm.js.map} +1 -1
- package/dist/chunks/{template-editor-router-DugWbCh0.js → template-editor-router-D4NIwVws.js} +2 -2
- package/dist/chunks/{template-editor-router-DugWbCh0.js.map → template-editor-router-D4NIwVws.js.map} +1 -1
- package/dist/chunks/{template-modal-D7aLacan.esm.js → template-modal-B2VgotrF.esm.js} +6 -7
- package/dist/chunks/template-modal-B2VgotrF.esm.js.map +1 -0
- package/dist/chunks/{template-modal-Df7gF4QI.js → template-modal-X-iSmlki.js} +4 -5
- package/dist/chunks/template-modal-X-iSmlki.js.map +1 -0
- package/dist/chunks/{template-name-modal-ClreVUaz.js → template-name-modal-CeqxIE2r.js} +5 -12
- package/dist/chunks/template-name-modal-CeqxIE2r.js.map +1 -0
- package/dist/chunks/{template-name-modal-Dwe7U72p.esm.js → template-name-modal-Dctn8t3t.esm.js} +5 -12
- package/dist/chunks/template-name-modal-Dctn8t3t.esm.js.map +1 -0
- package/dist/chunks/{templates-9ZMHwRR6.esm.js → templates-CCy1eG6A.esm.js} +17 -10
- package/dist/chunks/templates-CCy1eG6A.esm.js.map +1 -0
- package/dist/chunks/{templates-DCXbeOtH.js → templates-CUREMwYo.js} +14 -7
- package/dist/chunks/templates-CUREMwYo.js.map +1 -0
- package/dist/chunks/{text-measurement-DMVkqP6b.esm.js → text-measurement-BCjauPbB.esm.js} +2 -2
- package/dist/chunks/{text-measurement-DMVkqP6b.esm.js.map → text-measurement-BCjauPbB.esm.js.map} +1 -1
- package/dist/chunks/{translations-JcE6qyDJ.esm.js → translations-BrwQcVN3.esm.js} +3 -3
- package/dist/chunks/{translations-JcE6qyDJ.esm.js.map → translations-BrwQcVN3.esm.js.map} +1 -1
- package/dist/chunks/{uom-field-wrapper-CWTsSsSi.esm.js → uom-field-wrapper-CTbEc-MB.esm.js} +2 -2
- package/dist/chunks/{uom-field-wrapper-CWTsSsSi.esm.js.map → uom-field-wrapper-CTbEc-MB.esm.js.map} +1 -1
- package/dist/chunks/{uom-field-wrapper-CSqeiVPY.js → uom-field-wrapper-DXZgzOYB.js} +2 -2
- package/dist/chunks/{uom-field-wrapper-CSqeiVPY.js.map → uom-field-wrapper-DXZgzOYB.js.map} +1 -1
- package/dist/chunks/{upload-excel-CkEQqZW2.esm.js → upload-excel-BZPP13tP.esm.js} +2 -2
- package/dist/chunks/{upload-excel-CkEQqZW2.esm.js.map → upload-excel-BZPP13tP.esm.js.map} +1 -1
- package/dist/chunks/{use-translations-Cn3b4Kqh.js → use-translations-5wUQBxMm.js} +2 -2
- package/dist/chunks/{use-translations-Cn3b4Kqh.js.map → use-translations-5wUQBxMm.js.map} +1 -1
- package/dist/chunks/{use-translations-BqBPN1DM.esm.js → use-translations-CcjSFA3F.esm.js} +3 -3
- package/dist/chunks/{use-translations-BqBPN1DM.esm.js.map → use-translations-CcjSFA3F.esm.js.map} +1 -1
- package/dist/chunks/{useAccountSetting-DsU5zsjb.esm.js → useAccountSetting-vAqgEiJB.esm.js} +2 -2
- package/dist/chunks/{useAccountSetting-DsU5zsjb.esm.js.map → useAccountSetting-vAqgEiJB.esm.js.map} +1 -1
- package/dist/chunks/{useCheckSkuAndName-5ua30aZf.esm.js → useCheckSkuAndName-Dl24wQO-.esm.js} +2 -2
- package/dist/chunks/{useCheckSkuAndName-5ua30aZf.esm.js.map → useCheckSkuAndName-Dl24wQO-.esm.js.map} +1 -1
- package/dist/chunks/{useReduxIntegration-BlLpfwk6.esm.js → useReduxIntegration-DZBfKF7d.esm.js} +2 -2
- package/dist/chunks/{useReduxIntegration-BlLpfwk6.esm.js.map → useReduxIntegration-DZBfKF7d.esm.js.map} +1 -1
- package/dist/chunks/{useUniquenessCheck-CiR2q5bM.esm.js → useUniquenessCheck-bYjnp_0P.esm.js} +2 -2
- package/dist/chunks/{useUniquenessCheck-CiR2q5bM.esm.js.map → useUniquenessCheck-bYjnp_0P.esm.js.map} +1 -1
- package/dist/chunks/{useVendorAICompare-DMJvJJ3Y.esm.js → useVendorAICompare-DZRFDk4i.esm.js} +2 -2
- package/dist/chunks/{useVendorAICompare-DMJvJJ3Y.esm.js.map → useVendorAICompare-DZRFDk4i.esm.js.map} +1 -1
- package/dist/chunks/{value-editor-Br7X_wEB.js → value-editor-BSS9Ns2T.js} +2 -2
- package/dist/chunks/{value-editor-Br7X_wEB.js.map → value-editor-BSS9Ns2T.js.map} +1 -1
- package/dist/chunks/{value-editor-BxFdnUyM.esm.js → value-editor-DQ1qgZ2u.esm.js} +4 -4
- package/dist/chunks/{value-editor-BxFdnUyM.esm.js.map → value-editor-DQ1qgZ2u.esm.js.map} +1 -1
- package/dist/chunks/{vendor-ai-summary-Cpx90QOx.esm.js → vendor-ai-summary-BA6m2dH9.esm.js} +2 -2
- package/dist/chunks/{vendor-ai-summary-Cpx90QOx.esm.js.map → vendor-ai-summary-BA6m2dH9.esm.js.map} +1 -1
- package/dist/chunks/{vendor-ai-summary-zranZkfk.js → vendor-ai-summary-DWmAaQ_N.js} +2 -2
- package/dist/chunks/{vendor-ai-summary-zranZkfk.js.map → vendor-ai-summary-DWmAaQ_N.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 +36 -36
- package/dist/components/index.js +27 -27
- 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/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 +145 -143
- package/dist/constants/index.js +5 -3
- 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 +232 -235
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +64 -67
- 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 +2 -1
- package/dist/src/components/chat-bot/chat-bot.d.ts +5 -1
- package/dist/src/constants/defaultColumns.d.ts +1 -0
- package/dist/src/constants/pathnames/pathname.procurement.d.ts +4 -0
- package/dist/src/layout/fullScreen/fullScreen.d.ts +1 -0
- package/dist/src/views/template-editor/components/EditorCanvas.d.ts +12 -30
- package/dist/src/views/template-editor/components/EditorHeader.d.ts +0 -6
- package/dist/src/views/template-editor/components/EditorSection.d.ts +0 -1
- package/dist/src/views/template-editor/components/SectionFlowEditor.d.ts +3 -2
- package/dist/src/views/template-editor/components/SectionFormatPanel.d.ts +1 -2
- package/dist/src/views/template-editor/components/controllers/TableControls.d.ts +0 -23
- package/dist/src/views/template-editor/components/controllers/TextControls.d.ts +0 -3
- package/dist/src/views/template-editor/types/editor.d.ts +108 -20
- package/dist/src/views/template-editor/utils/common.d.ts +1 -10
- package/dist/src/views/template-editor/utils/constant.d.ts +1 -4
- package/dist/style.css +100 -4629
- 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 +1 -0
- package/dist/utils/export-filters/index.esm.js.map +1 -1
- package/dist/utils/export-filters/index.js +1 -0
- package/dist/utils/export-filters/index.js.map +1 -1
- package/dist/utils/index.esm.js +8 -8
- 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 +34 -39
- package/dist/views/index.esm.js.map +1 -1
- package/dist/views/index.js +31 -36
- 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 +6 -7
- package/dist/views/template-editor/components/index.esm.js.map +1 -1
- package/dist/views/template-editor/components/index.js +3 -4
- 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 +20 -25
- package/dist/views/template-editor/index.esm.js.map +1 -1
- package/dist/views/template-editor/index.js +11 -16
- 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 +6 -10
- package/dist/views/template-editor/utils/index.js +2 -6
- package/dist/views/template-editor/utils/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/EditorSection-BLGcgQFm.esm.js +0 -849
- package/dist/chunks/EditorSection-BLGcgQFm.esm.js.map +0 -1
- package/dist/chunks/EditorSection-D6yaBfjP.js +0 -848
- package/dist/chunks/EditorSection-D6yaBfjP.js.map +0 -1
- package/dist/chunks/SectionFlowEditor-Dp-mjWT9.esm.js +0 -12543
- package/dist/chunks/SectionFlowEditor-Dp-mjWT9.esm.js.map +0 -1
- package/dist/chunks/SectionFlowEditor-Dz1SuCm2.js +0 -12542
- package/dist/chunks/SectionFlowEditor-Dz1SuCm2.js.map +0 -1
- package/dist/chunks/add-template-CUPbU0z7.js +0 -10
- package/dist/chunks/add-template-CUPbU0z7.js.map +0 -1
- package/dist/chunks/add-template-CxvhzFMF.esm.js +0 -11
- package/dist/chunks/add-template-CxvhzFMF.esm.js.map +0 -1
- package/dist/chunks/chat-bot-2Ga_xA_K.js.map +0 -1
- package/dist/chunks/chat-bot-DO3vAGxA.esm.js.map +0 -1
- package/dist/chunks/common-BgXEAs_y.esm.js +0 -851
- package/dist/chunks/common-BgXEAs_y.esm.js.map +0 -1
- package/dist/chunks/common-D6T6NGWY.js +0 -850
- package/dist/chunks/common-D6T6NGWY.js.map +0 -1
- package/dist/chunks/common-utility-CS_sNoAC.esm.js.map +0 -1
- package/dist/chunks/constant-BXPcBhJN.esm.js.map +0 -1
- package/dist/chunks/constant-BXeJD4Af.js.map +0 -1
- package/dist/chunks/edit-section-modal-HihKbN6K.esm.js.map +0 -1
- package/dist/chunks/fullScreen-Cz3FIdU4.esm.js.map +0 -1
- package/dist/chunks/fullScreen-h0JqBN4O.js.map +0 -1
- package/dist/chunks/template-modal-D7aLacan.esm.js.map +0 -1
- package/dist/chunks/template-modal-Df7gF4QI.js.map +0 -1
- package/dist/chunks/template-name-modal-ClreVUaz.js.map +0 -1
- package/dist/chunks/template-name-modal-Dwe7U72p.esm.js.map +0 -1
- package/dist/chunks/templates-9ZMHwRR6.esm.js.map +0 -1
- package/dist/chunks/templates-DCXbeOtH.js.map +0 -1
- package/dist/src/views/template-editor/components/EditorCanvas/FreeCanvas.d.ts +0 -34
- package/dist/src/views/template-editor/components/EditorCanvas/FreeElement.d.ts +0 -30
- package/dist/src/views/template-editor/components/stationery/StationeryPreview.d.ts +0 -24
- package/dist/src/views/template-editor/components/stationery/StationerySidebar.d.ts +0 -9
- package/dist/src/views/template-editor/engine/ai.d.ts +0 -12
- package/dist/src/views/template-editor/engine/app.d.ts +0 -1
- package/dist/src/views/template-editor/engine/controls.d.ts +0 -4
- package/dist/src/views/template-editor/engine/design-canvas.d.ts +0 -24
- package/dist/src/views/template-editor/engine/editor.d.ts +0 -17
- package/dist/src/views/template-editor/engine/engine.d.ts +0 -18
- package/dist/src/views/template-editor/engine/icons.d.ts +0 -91
- package/dist/src/views/template-editor/engine/letterpads.d.ts +0 -1
- package/dist/src/views/template-editor/engine/model.d.ts +0 -20
- package/dist/src/views/template-editor/engine/paginator.d.ts +0 -30
- package/dist/src/views/template-editor/engine/picker.d.ts +0 -20
- package/dist/src/views/template-editor/engine/schema.d.ts +0 -647
- package/dist/src/views/template-editor/engine/stationery-app.d.ts +0 -10
- package/dist/src/views/template-editor/engine/stationery-doc.d.ts +0 -62
- package/dist/src/views/template-editor/engine/stationery-free-element.d.ts +0 -22
- package/dist/src/views/template-editor/engine/stationery-store.d.ts +0 -154
- package/dist/src/views/template-editor/engine/templatebuilder.d.ts +0 -51
- package/dist/src/views/template-editor/engine/templates.d.ts +0 -11
- package/dist/src/views/template-editor/icons/custom-styled-icon.d.ts +0 -7
- package/dist/src/views/template-editor/icons/edit.d.ts +0 -4
- package/dist/src/views/template-editor/icons/trash.d.ts +0 -4
- package/dist/src/views/template-editor/types/stationery.d.ts +0 -66
- package/dist/src/views/template-editor/utils/compiler.d.ts +0 -12
|
@@ -1,849 +0,0 @@
|
|
|
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
|