@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,850 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const constant = require("./constant-BXeJD4Af.js");
|
|
3
|
-
const views_templateEditor_services = require("../views/template-editor/services/index.js");
|
|
4
|
-
const editableTypes = /* @__PURE__ */ new Set(["text", "text-block", "heading", "heading-2", "heading-3", "heading-4"]);
|
|
5
|
-
const generateSectionsHTML = (sections, yOffset = 0, isCompiler = false) => {
|
|
6
|
-
const visibleSections = sections.filter((s) => !s.hidden);
|
|
7
|
-
const hasPositionData = visibleSections.some((s) => s.x !== void 0 && s.y !== void 0);
|
|
8
|
-
if (hasPositionData) {
|
|
9
|
-
const maxBottom = Math.max(...visibleSections.map((s) => (s.y ?? 0) + (s.height ?? 60)));
|
|
10
|
-
const wrapperHeight = Math.max(maxBottom + 20, 100);
|
|
11
|
-
let html2 = `<div style="position:relative;width:100%;min-height:${wrapperHeight}px;height:auto;">`;
|
|
12
|
-
for (const section of visibleSections) {
|
|
13
|
-
const x = section.x ?? 0;
|
|
14
|
-
const y = (section.y ?? 0) + yOffset;
|
|
15
|
-
const w = section.width ?? 200;
|
|
16
|
-
const h = section.height ?? 60;
|
|
17
|
-
const rot = section.rotation ?? 0;
|
|
18
|
-
const z = section.zIndex ?? 1;
|
|
19
|
-
const rotStyle = rot !== 0 ? `transform:rotate(${rot}deg);transform-origin:center center;` : "";
|
|
20
|
-
const isTextType = editableTypes.has(section.type) || !section.type && !["image", "table", "buttons", "divider", "signature", "qr-code", "bar-code"].includes(section.type);
|
|
21
|
-
const isTableType = section.type === "table";
|
|
22
|
-
const isButtonOrSig = section.type === "buttons" || section.type === "signature";
|
|
23
|
-
let cleanContent = (section.content || "").replace(/<span class="cx-ph-tag">([\s\S]*?)<\/span>/g, "$1");
|
|
24
|
-
if (isTableType && !cleanContent && section.attributes) {
|
|
25
|
-
cleanContent = generateContentHTML("table", "", section.attributes, [], isCompiler);
|
|
26
|
-
}
|
|
27
|
-
const overflowStyle = isButtonOrSig || isTableType || isTextType ? "visible" : "hidden";
|
|
28
|
-
const hasExplicitLineBreak = cleanContent.includes("<br") || cleanContent.includes("\n") || (cleanContent.match(/<\/p>/gi) || []).length > 1;
|
|
29
|
-
const isMultiLineParagraph = !hasExplicitLineBreak && h > 45 && cleanContent.length > 80;
|
|
30
|
-
const whiteSpaceStyle = isTableType ? "normal" : hasExplicitLineBreak || isMultiLineParagraph ? "pre-wrap" : "nowrap";
|
|
31
|
-
const widthStyle = isTextType && !hasExplicitLineBreak && !isMultiLineParagraph ? `width:max-content;min-width:${w}px;max-width:${Math.max(w, 1200 - x - 10)}px;` : `width:${w}px;`;
|
|
32
|
-
const wordBreakStyle = isTextType && !hasExplicitLineBreak && !isMultiLineParagraph ? "word-break:normal;" : "word-break:break-word;";
|
|
33
|
-
let innerDisplayStyles = "";
|
|
34
|
-
if (isTextType) {
|
|
35
|
-
innerDisplayStyles = "display:block;";
|
|
36
|
-
} else if (isTableType) {
|
|
37
|
-
innerDisplayStyles = "display:block;";
|
|
38
|
-
} else {
|
|
39
|
-
innerDisplayStyles = "display:flex;flex-direction:column;justify-content:center;align-items:center;";
|
|
40
|
-
}
|
|
41
|
-
const wrapperHeightStyle = isTableType ? `height:auto;min-height:${h}px;` : `height:${h}px;`;
|
|
42
|
-
html2 += `<div style="position:absolute;left:${x}px;top:${y}px;${widthStyle}${wrapperHeightStyle}${rotStyle}z-index:${z};overflow:${overflowStyle};${innerDisplayStyles}${wordBreakStyle}white-space:${whiteSpaceStyle};box-sizing:border-box;">${cleanContent}</div>`;
|
|
43
|
-
}
|
|
44
|
-
html2 += "</div>";
|
|
45
|
-
return html2;
|
|
46
|
-
}
|
|
47
|
-
let html = "";
|
|
48
|
-
const groups = [];
|
|
49
|
-
const visited = /* @__PURE__ */ new Set();
|
|
50
|
-
for (const section of visibleSections) {
|
|
51
|
-
if (visited.has(section.id)) continue;
|
|
52
|
-
visited.add(section.id);
|
|
53
|
-
groups.push([section]);
|
|
54
|
-
}
|
|
55
|
-
for (const group of groups) {
|
|
56
|
-
const cleanContent = (group[0].content || "").replace(/<span class="cx-ph-tag">([\s\S]*?)<\/span>/g, "$1");
|
|
57
|
-
html += `<div style="padding: 10px;">${cleanContent}</div>`;
|
|
58
|
-
}
|
|
59
|
-
return html;
|
|
60
|
-
};
|
|
61
|
-
const templateRoutes = (modulePath, type) => {
|
|
62
|
-
const list = `${modulePath}${constant.TEMPLATE_EDITOR_PATHS.TEMPLATES_LIST(type)}`;
|
|
63
|
-
const add = `${modulePath}${constant.TEMPLATE_EDITOR_PATHS.TEMPLATES_ADD(type)}`;
|
|
64
|
-
const edit = `${modulePath}${constant.TEMPLATE_EDITOR_PATHS.TEMPLATES_EDIT(type)}`;
|
|
65
|
-
return {
|
|
66
|
-
LIST: list,
|
|
67
|
-
ADD_TEMPLATE: (id) => add.replace(":id", id),
|
|
68
|
-
EDIT_TEMPLATE: (id, templateId) => edit.replace(":id", id).replace(":template_id", templateId)
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
const generateEmailPreview = (sections, headerSections = [], footerSections = [], isSaving = false, scopeId, stationeryHeaderHtml = "", stationeryFooterHtml = "", paper = "A4", orient = "portrait", watermark) => {
|
|
72
|
-
let pW = paper === "Letter" ? 816 : 794;
|
|
73
|
-
let pH = paper === "Letter" ? 1056 : 1123;
|
|
74
|
-
if (orient === "landscape") {
|
|
75
|
-
const t = pW;
|
|
76
|
-
pW = pH;
|
|
77
|
-
pH = t;
|
|
78
|
-
}
|
|
79
|
-
const headerHtml = headerSections && (headerSections == null ? void 0 : headerSections.length) ? generateHeaderFooterPreview(headerSections, "header") : "";
|
|
80
|
-
const footerHtml = footerSections && (footerSections == null ? void 0 : footerSections.length) ? generateHeaderFooterPreview(footerSections, "footer") : "";
|
|
81
|
-
const templateScopeId = scopeId || views_templateEditor_services.cssScopingService.generateScopeId();
|
|
82
|
-
const watermarkHtml = (watermark == null ? void 0 : watermark.show) && (watermark == null ? void 0 : watermark.image) ? `
|
|
83
|
-
<div class="st-wm" style="position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 0; pointer-events: none;">
|
|
84
|
-
<img src="${watermark.image}" alt="Watermark" style="opacity: ${(watermark.opacity ?? 15) / 100}; width: ${watermark.size ?? 50}%; transform: rotate(${watermark.rotation ?? 0}deg); object-fit: contain; pointer-events: none; user-select: none;" />
|
|
85
|
-
</div>
|
|
86
|
-
` : "";
|
|
87
|
-
const styleBlock = `
|
|
88
|
-
<style>
|
|
89
|
-
.email-container {
|
|
90
|
-
margin: 0 auto;
|
|
91
|
-
margin-bottom: 20px;
|
|
92
|
-
background-color: #fff;
|
|
93
|
-
border-radius: 8px;
|
|
94
|
-
width: ${isSaving ? "65%" : `${pW}px`};
|
|
95
|
-
max-width: ${isSaving ? "65%" : `${pW}px`};
|
|
96
|
-
display: flex;
|
|
97
|
-
flex-direction: column;
|
|
98
|
-
height: ${pH}px;
|
|
99
|
-
min-height: ${pH}px;
|
|
100
|
-
}
|
|
101
|
-
.email-content {
|
|
102
|
-
flex: 1;
|
|
103
|
-
display: flex;
|
|
104
|
-
flex-direction: column;
|
|
105
|
-
padding: 0;
|
|
106
|
-
}
|
|
107
|
-
a {
|
|
108
|
-
color: #007bff;
|
|
109
|
-
text-decoration: none;
|
|
110
|
-
}
|
|
111
|
-
a:hover {
|
|
112
|
-
text-decoration: underline;
|
|
113
|
-
}
|
|
114
|
-
* {
|
|
115
|
-
margin: 0;
|
|
116
|
-
padding: 0;
|
|
117
|
-
box-sizing: border-box;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
body {
|
|
121
|
-
font-family: "Inter", sans-serif !important;
|
|
122
|
-
font-size: 16px;
|
|
123
|
-
font-weight: 400;
|
|
124
|
-
color: #00011c;
|
|
125
|
-
font-style: normal;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
img {
|
|
129
|
-
display: block;
|
|
130
|
-
height: auto;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
/* Minimal reset — border-collapse is scoped to specific table classes */
|
|
134
|
-
|
|
135
|
-
a {
|
|
136
|
-
text-decoration: none;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
table.our-details,
|
|
140
|
-
.our-details td,
|
|
141
|
-
.our-details th {
|
|
142
|
-
border: 1px solid #d3d3d4;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
table.amount-word-table,
|
|
146
|
-
table.amount-word-table td,
|
|
147
|
-
table.amount-word-table th {
|
|
148
|
-
border: 1px solid #d6d6d6;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
.amount-word-table thead th {
|
|
152
|
-
background-color: #f5f6f5;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
.amount-word-table thead td {
|
|
156
|
-
background-color: #f5f6f5;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
.amount-word-table tbody tr:nth-child(even) {
|
|
160
|
-
background-color: #f5f6f5;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
.amount-word-table tbody tr td {
|
|
164
|
-
border-top: 0;
|
|
165
|
-
border-bottom: 0;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
.deliver-table thead th {
|
|
169
|
-
background-color: transparent;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
.email-container table {
|
|
173
|
-
background-color: transparent !important;
|
|
174
|
-
border-collapse: collapse !important;
|
|
175
|
-
}
|
|
176
|
-
.email-content p,
|
|
177
|
-
.email-content h1,
|
|
178
|
-
.email-content h2,
|
|
179
|
-
.email-content h3,
|
|
180
|
-
.email-content h4,
|
|
181
|
-
.email-content h5,
|
|
182
|
-
.email-content h6 {
|
|
183
|
-
margin: 0 !important;
|
|
184
|
-
padding: 0 !important;
|
|
185
|
-
width: 100% !important;
|
|
186
|
-
box-sizing: border-box !important;
|
|
187
|
-
}
|
|
188
|
-
.email-content hr {
|
|
189
|
-
width: 100% !important;
|
|
190
|
-
margin: 0 !important;
|
|
191
|
-
}
|
|
192
|
-
.email-content a {
|
|
193
|
-
width: 100% !important;
|
|
194
|
-
height: 100% !important;
|
|
195
|
-
box-sizing: border-box !important;
|
|
196
|
-
}
|
|
197
|
-
.email-content img {
|
|
198
|
-
max-width: 100% !important;
|
|
199
|
-
max-height: 100% !important;
|
|
200
|
-
box-sizing: border-box !important;
|
|
201
|
-
}
|
|
202
|
-
/* Table rules to exactly match FreeElement's sx */
|
|
203
|
-
.email-content table {
|
|
204
|
-
width: 100% !important;
|
|
205
|
-
min-width: 0 !important; /* Override doc.css min-width: max-content */
|
|
206
|
-
height: auto !important;
|
|
207
|
-
border-collapse: collapse !important;
|
|
208
|
-
white-space: normal !important;
|
|
209
|
-
table-layout: fixed !important;
|
|
210
|
-
margin: 0 !important;
|
|
211
|
-
background-color: transparent !important;
|
|
212
|
-
}
|
|
213
|
-
.email-content table tr {
|
|
214
|
-
box-sizing: border-box !important;
|
|
215
|
-
}
|
|
216
|
-
.email-content table td {
|
|
217
|
-
box-sizing: border-box !important;
|
|
218
|
-
overflow: hidden !important;
|
|
219
|
-
text-overflow: ellipsis !important;
|
|
220
|
-
vertical-align: middle !important;
|
|
221
|
-
}
|
|
222
|
-
.email-content table th {
|
|
223
|
-
box-sizing: border-box !important;
|
|
224
|
-
overflow: hidden !important;
|
|
225
|
-
text-overflow: ellipsis !important;
|
|
226
|
-
vertical-align: middle !important;
|
|
227
|
-
}
|
|
228
|
-
.email-content div {
|
|
229
|
-
box-sizing: border-box !important;
|
|
230
|
-
}
|
|
231
|
-
</style>
|
|
232
|
-
`;
|
|
233
|
-
let html = isSaving ? `<html><head>${styleBlock}</head><body>` : `<div>${styleBlock}`;
|
|
234
|
-
html += `
|
|
235
|
-
<div class="email-container st pbd-page pb-tpl-view ${templateScopeId}" style="position: relative; width: ${isSaving ? "65%" : `${pW}px`} !important; min-width: ${isSaving ? "65%" : `${pW}px`} !important; max-width: ${isSaving ? "65%" : `${pW}px`} !important; height: ${pH}px !important; min-height: ${pH}px !important; overflow: hidden;">
|
|
236
|
-
${watermarkHtml}
|
|
237
|
-
<div style="width: 100%; z-index: 0; flex-shrink: 0; pointer-events: none;">
|
|
238
|
-
${stationeryHeaderHtml}
|
|
239
|
-
${headerHtml}
|
|
240
|
-
${headerHtml ? "<hr/>" : ""}
|
|
241
|
-
</div>
|
|
242
|
-
<div class="email-content pbd-page-inner" style="position: relative; z-index: 1; padding: 0 !important;">
|
|
243
|
-
`;
|
|
244
|
-
html += generateSectionsHTML(sections);
|
|
245
|
-
html += `
|
|
246
|
-
</div>
|
|
247
|
-
<div style="width: 100%; z-index: 0; flex-shrink: 0; margin-top: auto; pointer-events: none;">
|
|
248
|
-
${footerHtml ? "<hr/>" : ""}
|
|
249
|
-
${footerHtml}
|
|
250
|
-
${stationeryFooterHtml}
|
|
251
|
-
</div>
|
|
252
|
-
</div>
|
|
253
|
-
`;
|
|
254
|
-
html += isSaving ? `</body></html>` : `</div>`;
|
|
255
|
-
return html;
|
|
256
|
-
};
|
|
257
|
-
const generateHeaderFooterPreview = (sections, type = "header", scopeId) => {
|
|
258
|
-
const scopeClass = scopeId ? ` ${scopeId}` : "";
|
|
259
|
-
let html = `<${type} class="${type}${scopeClass}">`;
|
|
260
|
-
html += generateSectionsHTML(sections);
|
|
261
|
-
html += `</${type}>`;
|
|
262
|
-
return html;
|
|
263
|
-
};
|
|
264
|
-
const extractStyles = (html, sectionType) => {
|
|
265
|
-
const tempDiv = document.createElement("div");
|
|
266
|
-
tempDiv.innerHTML = html;
|
|
267
|
-
const element = tempDiv.firstChild;
|
|
268
|
-
if (!element) return {};
|
|
269
|
-
if ((element == null ? void 0 : element.getAttribute) instanceof Function === false) {
|
|
270
|
-
return {};
|
|
271
|
-
}
|
|
272
|
-
const styleAttr = element == null ? void 0 : element.getAttribute("style");
|
|
273
|
-
const allAttributes = (element == null ? void 0 : element.attributes) || [];
|
|
274
|
-
const attrObj = Array.from(allAttributes).reduce((obj, attr) => {
|
|
275
|
-
obj[attr.name] = attr.value;
|
|
276
|
-
return obj;
|
|
277
|
-
}, {});
|
|
278
|
-
if (!styleAttr) return {};
|
|
279
|
-
const styleObj = {};
|
|
280
|
-
const stylePairs = styleAttr.split(";").filter((pair) => pair.trim() !== "");
|
|
281
|
-
stylePairs.forEach((pair) => {
|
|
282
|
-
const [prop, value] = pair.split(":").map((part) => part.trim());
|
|
283
|
-
if (prop && value) {
|
|
284
|
-
const propName = prop.replace(/-([a-z])/g, (g) => g[1].toUpperCase());
|
|
285
|
-
if ((propName === "width" || propName === "height" || propName === "maxWidth" || propName === "maxHeight") && value === "100% !important") {
|
|
286
|
-
return;
|
|
287
|
-
}
|
|
288
|
-
styleObj[propName] = value;
|
|
289
|
-
}
|
|
290
|
-
});
|
|
291
|
-
attrObj.styles = styleObj;
|
|
292
|
-
return attrObj;
|
|
293
|
-
};
|
|
294
|
-
const EMAIL_SAFE_PROPERTIES = /* @__PURE__ */ new Set([
|
|
295
|
-
"background",
|
|
296
|
-
"background-color",
|
|
297
|
-
"border",
|
|
298
|
-
"border-style",
|
|
299
|
-
"border-collapse",
|
|
300
|
-
"border-top",
|
|
301
|
-
"border-right",
|
|
302
|
-
"border-bottom",
|
|
303
|
-
"border-left",
|
|
304
|
-
"border-color",
|
|
305
|
-
"border-radius",
|
|
306
|
-
"color",
|
|
307
|
-
"display",
|
|
308
|
-
"font",
|
|
309
|
-
"font-family",
|
|
310
|
-
"font-size",
|
|
311
|
-
"font-style",
|
|
312
|
-
"font-weight",
|
|
313
|
-
"height",
|
|
314
|
-
"line-height",
|
|
315
|
-
"margin",
|
|
316
|
-
"margin-top",
|
|
317
|
-
"margin-right",
|
|
318
|
-
"margin-bottom",
|
|
319
|
-
"margin-left",
|
|
320
|
-
"padding",
|
|
321
|
-
"padding-top",
|
|
322
|
-
"padding-right",
|
|
323
|
-
"padding-bottom",
|
|
324
|
-
"padding-left",
|
|
325
|
-
"text-align",
|
|
326
|
-
"text-decoration",
|
|
327
|
-
"vertical-align",
|
|
328
|
-
"width",
|
|
329
|
-
"max-width",
|
|
330
|
-
"min-width",
|
|
331
|
-
"max-height",
|
|
332
|
-
"min-height",
|
|
333
|
-
"object-fit",
|
|
334
|
-
"opacity"
|
|
335
|
-
]);
|
|
336
|
-
const applyOpacityToColor = (color, opacity) => {
|
|
337
|
-
if (!color || color === "transparent") return "transparent";
|
|
338
|
-
if (typeof opacity !== "number" || opacity >= 1) return color;
|
|
339
|
-
if (opacity <= 0) return "transparent";
|
|
340
|
-
const trimmed = color.trim();
|
|
341
|
-
if (trimmed.startsWith("#")) {
|
|
342
|
-
const hex = trimmed.slice(1);
|
|
343
|
-
let r = 0, g = 0, b = 0, a = 1;
|
|
344
|
-
if (hex.length === 3) {
|
|
345
|
-
r = parseInt(hex[0] + hex[0], 16);
|
|
346
|
-
g = parseInt(hex[1] + hex[1], 16);
|
|
347
|
-
b = parseInt(hex[2] + hex[2], 16);
|
|
348
|
-
} else if (hex.length === 4) {
|
|
349
|
-
r = parseInt(hex[0] + hex[0], 16);
|
|
350
|
-
g = parseInt(hex[1] + hex[1], 16);
|
|
351
|
-
b = parseInt(hex[2] + hex[2], 16);
|
|
352
|
-
a = parseInt(hex[3] + hex[3], 16) / 255;
|
|
353
|
-
} else if (hex.length === 6) {
|
|
354
|
-
r = parseInt(hex.slice(0, 2), 16);
|
|
355
|
-
g = parseInt(hex.slice(2, 4), 16);
|
|
356
|
-
b = parseInt(hex.slice(4, 6), 16);
|
|
357
|
-
} else if (hex.length === 8) {
|
|
358
|
-
r = parseInt(hex.slice(0, 2), 16);
|
|
359
|
-
g = parseInt(hex.slice(2, 4), 16);
|
|
360
|
-
b = parseInt(hex.slice(4, 6), 16);
|
|
361
|
-
a = parseInt(hex.slice(6, 8), 16) / 255;
|
|
362
|
-
} else {
|
|
363
|
-
return color;
|
|
364
|
-
}
|
|
365
|
-
const finalAlpha = Math.max(0, Math.min(1, Math.round(a * opacity * 1e3) / 1e3));
|
|
366
|
-
return `rgba(${r}, ${g}, ${b}, ${finalAlpha})`;
|
|
367
|
-
}
|
|
368
|
-
const rgbaMatch = trimmed.match(/^rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)$/i);
|
|
369
|
-
if (rgbaMatch) {
|
|
370
|
-
const r = parseInt(rgbaMatch[1], 10);
|
|
371
|
-
const g = parseInt(rgbaMatch[2], 10);
|
|
372
|
-
const b = parseInt(rgbaMatch[3], 10);
|
|
373
|
-
const existingA = parseFloat(rgbaMatch[4]);
|
|
374
|
-
const finalAlpha = Math.max(0, Math.min(1, Math.round(existingA * opacity * 1e3) / 1e3));
|
|
375
|
-
return `rgba(${r}, ${g}, ${b}, ${finalAlpha})`;
|
|
376
|
-
}
|
|
377
|
-
const rgbMatch = trimmed.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i);
|
|
378
|
-
if (rgbMatch) {
|
|
379
|
-
const r = parseInt(rgbMatch[1], 10);
|
|
380
|
-
const g = parseInt(rgbMatch[2], 10);
|
|
381
|
-
const b = parseInt(rgbMatch[3], 10);
|
|
382
|
-
const finalAlpha = Math.max(0, Math.min(1, Math.round(opacity * 1e3) / 1e3));
|
|
383
|
-
return `rgba(${r}, ${g}, ${b}, ${finalAlpha})`;
|
|
384
|
-
}
|
|
385
|
-
const namedColors = {
|
|
386
|
-
white: [255, 255, 255],
|
|
387
|
-
black: [0, 0, 0],
|
|
388
|
-
red: [255, 0, 0],
|
|
389
|
-
green: [0, 128, 0],
|
|
390
|
-
blue: [0, 0, 255],
|
|
391
|
-
gray: [128, 128, 128],
|
|
392
|
-
grey: [128, 128, 128],
|
|
393
|
-
lightgray: [211, 211, 211],
|
|
394
|
-
lightgrey: [211, 211, 211]
|
|
395
|
-
};
|
|
396
|
-
const lower = trimmed.toLowerCase();
|
|
397
|
-
if (namedColors[lower]) {
|
|
398
|
-
const [r, g, b] = namedColors[lower];
|
|
399
|
-
const finalAlpha = Math.max(0, Math.min(1, Math.round(opacity * 1e3) / 1e3));
|
|
400
|
-
return `rgba(${r}, ${g}, ${b}, ${finalAlpha})`;
|
|
401
|
-
}
|
|
402
|
-
return color;
|
|
403
|
-
};
|
|
404
|
-
const generateInlineStyles = (styles, parentKey = "") => {
|
|
405
|
-
if (!styles || typeof styles !== "object") return "";
|
|
406
|
-
const styleEntries = Object.entries(styles).reduce((acc, [key, value]) => {
|
|
407
|
-
if (value === void 0 || value === null) return acc;
|
|
408
|
-
const fullKey = parentKey ? `${parentKey}-${key}` : key;
|
|
409
|
-
if (typeof value === "object" && !Array.isArray(value)) {
|
|
410
|
-
acc.push(generateInlineStyles(value, fullKey));
|
|
411
|
-
return acc;
|
|
412
|
-
}
|
|
413
|
-
const cssKey = fullKey.replace(/([A-Z])/g, "-$1").toLowerCase();
|
|
414
|
-
if (!EMAIL_SAFE_PROPERTIES.has(cssKey) && key !== "fullWidth" && key !== "alignment") {
|
|
415
|
-
return acc;
|
|
416
|
-
}
|
|
417
|
-
if (key === "fullWidth" && value === true) {
|
|
418
|
-
acc.push("width: 100%");
|
|
419
|
-
return acc;
|
|
420
|
-
}
|
|
421
|
-
if (key === "alignment" && typeof value === "string") {
|
|
422
|
-
acc.push(`text-align: ${value}`);
|
|
423
|
-
return acc;
|
|
424
|
-
}
|
|
425
|
-
if (typeof value === "boolean") return acc;
|
|
426
|
-
const cssValue = typeof value === "number" && !["z-index", "opacity", "line-height", "font-weight"].includes(cssKey) ? `${value}px` : value;
|
|
427
|
-
acc.push(`${cssKey}: ${cssValue}`);
|
|
428
|
-
return acc;
|
|
429
|
-
}, []);
|
|
430
|
-
return styleEntries.filter(Boolean).join("; ");
|
|
431
|
-
};
|
|
432
|
-
const getInitialSectionData = (type, attrs = {}) => {
|
|
433
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
|
434
|
-
let content = "";
|
|
435
|
-
const styles = constant.initialStyles[type] || {};
|
|
436
|
-
const inlineStyles = generateInlineStyles(styles);
|
|
437
|
-
switch (type) {
|
|
438
|
-
case "heading":
|
|
439
|
-
content = `<h1 style="${inlineStyles}">Heading 1</h1>`;
|
|
440
|
-
break;
|
|
441
|
-
case "heading-2":
|
|
442
|
-
content = `<h2 style="${inlineStyles}">Heading 2</h2>`;
|
|
443
|
-
break;
|
|
444
|
-
case "heading-3":
|
|
445
|
-
content = `<h3 style="${inlineStyles}">Heading 3</h3>`;
|
|
446
|
-
break;
|
|
447
|
-
case "heading-4":
|
|
448
|
-
content = `<h4 style="${inlineStyles}">Heading 4</h4>`;
|
|
449
|
-
break;
|
|
450
|
-
case "text":
|
|
451
|
-
content = `<p style="${inlineStyles}">Hello, enter your text here...</p>`;
|
|
452
|
-
break;
|
|
453
|
-
case "image":
|
|
454
|
-
content = `<img src="${(attrs == null ? void 0 : attrs.src) || ""}" alt="${(attrs == null ? void 0 : attrs.alt) || "Image"}" style="${inlineStyles};" />`;
|
|
455
|
-
break;
|
|
456
|
-
case "buttons":
|
|
457
|
-
attrs.text = (attrs == null ? void 0 : attrs.text) || "Button text";
|
|
458
|
-
content = `<a href="${(attrs == null ? void 0 : attrs.href) || "#"}" target="_blank" style="${inlineStyles}; display: flex !important; text-decoration: none !important; box-sizing: border-box !important; justify-content: center !important; align-items: center !important; width: 100% !important; height: 100% !important; text-align: center !important; word-break: break-word !important; white-space: normal !important;">${attrs.text}</a>`;
|
|
459
|
-
break;
|
|
460
|
-
case "divider":
|
|
461
|
-
content = `<hr style="border: none !important; border-top: ${(styles == null ? void 0 : styles.borderWidth) || 1}px ${(styles == null ? void 0 : styles.borderStyle) || "solid"} ${(styles == null ? void 0 : styles.borderColor) || "#000000"} !important; width: 100% !important; margin: 0 !important; height: 0 !important;" />`;
|
|
462
|
-
break;
|
|
463
|
-
case "table": {
|
|
464
|
-
const { border, borderStyle, borderColor, borderRadius, height, opacity, ...rest } = styles;
|
|
465
|
-
const tableOpacity = typeof opacity === "number" ? opacity : 1;
|
|
466
|
-
const useWrapperTrick = borderRadius && styles.borderCollapse !== "separate" && styles.is_bordered;
|
|
467
|
-
const tInlineStyles = generateInlineStyles({
|
|
468
|
-
...rest,
|
|
469
|
-
...useWrapperTrick ? { borderStyle: "hidden" } : styles.is_bordered ? { border, borderStyle, borderColor } : {},
|
|
470
|
-
...useWrapperTrick ? {} : { borderRadius }
|
|
471
|
-
});
|
|
472
|
-
const wrapperStyles = useWrapperTrick ? `border: ${border || 1}px ${borderStyle || "solid"} ${borderColor || "#000000"}; border-radius: ${borderRadius}px; overflow: hidden; box-sizing: border-box; width: 100%;` : "";
|
|
473
|
-
const tHeadRowHeight = Number((_a = styles.tHead) == null ? void 0 : _a.rowHeight) || 38;
|
|
474
|
-
const tBodyRowHeight = Number((_b = styles.tBody) == null ? void 0 : _b.rowHeight) || 38;
|
|
475
|
-
const rawHeadBg = ((_c = styles.tHead) == null ? void 0 : _c.backgroundColor) || "rgba(245, 245, 245, 0.75)";
|
|
476
|
-
const headBgColor = applyOpacityToColor(rawHeadBg, tableOpacity);
|
|
477
|
-
const rawBodyBg = ((_d = styles.tBody) == null ? void 0 : _d.backgroundColor) || "rgba(255, 255, 255, 0.75)";
|
|
478
|
-
const bodyBgColor = applyOpacityToColor(rawBodyBg, tableOpacity);
|
|
479
|
-
const thUserFontSize = Number((_e = styles.tHead) == null ? void 0 : _e.fontSize) || 14;
|
|
480
|
-
const thBasePadding = typeof ((_f = styles.thCells) == null ? void 0 : _f.padding) === "number" ? styles.thCells.padding : 8;
|
|
481
|
-
const thAvailH = Math.max(4, tHeadRowHeight - 1);
|
|
482
|
-
const effectiveThFontSize = Math.min(thUserFontSize, Math.max(8, thAvailH - 2));
|
|
483
|
-
const thRemainingV = Math.max(0, thAvailH - effectiveThFontSize);
|
|
484
|
-
const thVPadding = Math.max(0, Math.min(thBasePadding, Math.floor(thRemainingV / 2)));
|
|
485
|
-
const thHPadding = thBasePadding;
|
|
486
|
-
const thWhiteSpace = tHeadRowHeight < 36 ? "nowrap" : "normal";
|
|
487
|
-
const tbUserFontSize = Number((_g = styles.tBody) == null ? void 0 : _g.fontSize) || 14;
|
|
488
|
-
const tbBasePadding = typeof ((_h = styles.tbCells) == null ? void 0 : _h.padding) === "number" ? styles.tbCells.padding : 8;
|
|
489
|
-
const tbAvailH = Math.max(4, tBodyRowHeight - 1);
|
|
490
|
-
const effectiveTbFontSize = Math.min(tbUserFontSize, Math.max(8, tbAvailH - 2));
|
|
491
|
-
const tbRemainingV = Math.max(0, tbAvailH - effectiveTbFontSize);
|
|
492
|
-
const tbVPadding = Math.max(0, Math.min(tbBasePadding, Math.floor(tbRemainingV / 2)));
|
|
493
|
-
const tbHPadding = tbBasePadding;
|
|
494
|
-
const tbWhiteSpace = tBodyRowHeight < 36 ? "nowrap" : "normal";
|
|
495
|
-
const { padding: _thPad, ...thCellsRest } = styles.thCells || {};
|
|
496
|
-
const { padding: _tbPad, ...tbCellsRest } = styles.tbCells || {};
|
|
497
|
-
const { rowHeight: _thRH, backgroundColor: _thBg, ...tHeadRest } = styles.tHead || {};
|
|
498
|
-
const { rowHeight: _tbRH, backgroundColor: _tbBg, ...tBodyRest } = styles.tBody || {};
|
|
499
|
-
const tHeadInlineStyles = generateInlineStyles(tHeadRest);
|
|
500
|
-
const tBodyInlineStyles = generateInlineStyles(tBodyRest);
|
|
501
|
-
const thCellInlineStyles = generateInlineStyles({ ...tHeadRest, ...thCellsRest, border, borderStyle, borderColor });
|
|
502
|
-
const tbCellInlineStyles = generateInlineStyles({ ...tBodyRest, ...tbCellsRest, border, borderStyle, borderColor });
|
|
503
|
-
content = `${useWrapperTrick ? `<div style="${wrapperStyles}">` : ""}<table style="${tInlineStyles}; width: 100%; border-collapse: collapse; height: auto !important; table-layout: fixed; margin: 0 !important;"><thead style="${tHeadInlineStyles}"><tr style="background-color: ${headBgColor} !important; height: ${tHeadRowHeight}px; max-height: ${tHeadRowHeight}px; line-height: 1;"><th style="${thCellInlineStyles}; vertical-align: middle; height: ${tHeadRowHeight}px; max-height: ${tHeadRowHeight}px; box-sizing: border-box; padding: ${thVPadding}px ${thHPadding}px !important; font-size: ${effectiveThFontSize}px !important; line-height: 1 !important; overflow: hidden; text-overflow: ellipsis; white-space: ${thWhiteSpace}; background-color: ${headBgColor} !important;">Column 1</th><th style="${thCellInlineStyles}; vertical-align: middle; height: ${tHeadRowHeight}px; max-height: ${tHeadRowHeight}px; box-sizing: border-box; padding: ${thVPadding}px ${thHPadding}px !important; font-size: ${effectiveThFontSize}px !important; line-height: 1 !important; overflow: hidden; text-overflow: ellipsis; white-space: ${thWhiteSpace}; background-color: ${headBgColor} !important;">Column 2</th><th style="${thCellInlineStyles}; vertical-align: middle; height: ${tHeadRowHeight}px; max-height: ${tHeadRowHeight}px; box-sizing: border-box; padding: ${thVPadding}px ${thHPadding}px !important; font-size: ${effectiveThFontSize}px !important; line-height: 1 !important; overflow: hidden; text-overflow: ellipsis; white-space: ${thWhiteSpace}; background-color: ${headBgColor} !important;">Column 3</th></tr></thead><tbody style="${tBodyInlineStyles}"><tr style="height: ${tBodyRowHeight}px; max-height: ${tBodyRowHeight}px; line-height: 1;"><td style="${tbCellInlineStyles}; vertical-align: middle; height: ${tBodyRowHeight}px; max-height: ${tBodyRowHeight}px; box-sizing: border-box; padding: ${tbVPadding}px ${tbHPadding}px !important; font-size: ${effectiveTbFontSize}px !important; line-height: 1 !important; overflow: hidden; text-overflow: ellipsis; white-space: ${tbWhiteSpace}; background-color: ${bodyBgColor} !important;"></td><td style="${tbCellInlineStyles}; vertical-align: middle; height: ${tBodyRowHeight}px; max-height: ${tBodyRowHeight}px; box-sizing: border-box; padding: ${tbVPadding}px ${tbHPadding}px !important; font-size: ${effectiveTbFontSize}px !important; line-height: 1 !important; overflow: hidden; text-overflow: ellipsis; white-space: ${tbWhiteSpace}; background-color: ${bodyBgColor} !important;"></td><td style="${tbCellInlineStyles}; vertical-align: middle; height: ${tBodyRowHeight}px; max-height: ${tBodyRowHeight}px; box-sizing: border-box; padding: ${tbVPadding}px ${tbHPadding}px !important; font-size: ${effectiveTbFontSize}px !important; line-height: 1 !important; overflow: hidden; text-overflow: ellipsis; white-space: ${tbWhiteSpace}; background-color: ${bodyBgColor} !important;"></td></tr></tbody></table>${useWrapperTrick ? `</div>` : ""}`.trim();
|
|
504
|
-
break;
|
|
505
|
-
}
|
|
506
|
-
case "signature": {
|
|
507
|
-
const signatureText = (attrs == null ? void 0 : attrs.signatureText) || "Signature";
|
|
508
|
-
content = `<svg viewBox="0 0 300 80" width="100%" height="100%" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg"><text x="50%" y="55%" dominant-baseline="middle" text-anchor="middle" fill="${((_i = attrs == null ? void 0 : attrs.styles) == null ? void 0 : _i.color) || "#333333"}" style="${inlineStyles}">${signatureText}</text></svg>`;
|
|
509
|
-
break;
|
|
510
|
-
}
|
|
511
|
-
case "qr-code":
|
|
512
|
-
attrs.placeholder = (attrs == null ? void 0 : attrs.placeholder) || "{{qr_data}}";
|
|
513
|
-
content = `<div style="background-color: #f5f5f5; padding: 16px; text-align: center; color: #666666;">${attrs.placeholder}</div>`;
|
|
514
|
-
break;
|
|
515
|
-
case "bar-code":
|
|
516
|
-
attrs.placeholder = (attrs == null ? void 0 : attrs.placeholder) || "{{barcode_data}}";
|
|
517
|
-
content = `<div style="background-color: #f5f5f5; padding: 16px; text-align: center; color: #666666;">${attrs.placeholder}</div>`;
|
|
518
|
-
break;
|
|
519
|
-
default:
|
|
520
|
-
content = '<p style="font-size: 16px; color: #333333; line-height: 1.5;">New section</p>';
|
|
521
|
-
}
|
|
522
|
-
extractStyles(content);
|
|
523
|
-
const baseAttrs = { ...attrs || {}, styles };
|
|
524
|
-
if (type === "table" && !baseAttrs.tableData) {
|
|
525
|
-
baseAttrs.tableData = {
|
|
526
|
-
name: "",
|
|
527
|
-
columns: [
|
|
528
|
-
{ id: "col1", header: "Column 1", align: "l" },
|
|
529
|
-
{ id: "col2", header: "Column 2", align: "l" },
|
|
530
|
-
{ id: "col3", header: "Column 3", align: "l" }
|
|
531
|
-
],
|
|
532
|
-
rows: [
|
|
533
|
-
{ col1: "", col2: "", col3: "" }
|
|
534
|
-
],
|
|
535
|
-
border: true,
|
|
536
|
-
mergedCells: []
|
|
537
|
-
};
|
|
538
|
-
content = generateContentHTML(type, content, baseAttrs, []);
|
|
539
|
-
}
|
|
540
|
-
return {
|
|
541
|
-
content,
|
|
542
|
-
type,
|
|
543
|
-
attributes: baseAttrs,
|
|
544
|
-
// Default free-positioning fields (caller overrides x/y with drop position)
|
|
545
|
-
x: 52,
|
|
546
|
-
y: 52,
|
|
547
|
-
width: 300,
|
|
548
|
-
height: 78,
|
|
549
|
-
rotation: 0,
|
|
550
|
-
zIndex: 1
|
|
551
|
-
};
|
|
552
|
-
};
|
|
553
|
-
const generateContentHTML = (sectionType, content, attrs, placeholders = [], isCompiler = false) => {
|
|
554
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
|
|
555
|
-
const { src, alt, styles: eStyles, text, placeholder, tableData } = attrs || {};
|
|
556
|
-
const styles = {
|
|
557
|
-
...constant.initialStyles[sectionType],
|
|
558
|
-
...eStyles
|
|
559
|
-
};
|
|
560
|
-
const inlineStyles = generateInlineStyles(styles);
|
|
561
|
-
if (sectionType === "buttons") {
|
|
562
|
-
return `<a href="${(attrs == null ? void 0 : attrs.href) || "#"}" target="_blank" style="${inlineStyles}; display: flex !important; text-decoration: none !important; box-sizing: border-box !important; justify-content: center !important; align-items: center !important; width: 100% !important; height: 100% !important; text-align: center !important; word-break: break-word !important; white-space: normal !important;">${text || "Button Text"}</a>`;
|
|
563
|
-
} else if (sectionType === "image") {
|
|
564
|
-
let imgInlineStyles = inlineStyles;
|
|
565
|
-
if (styles == null ? void 0 : styles.is_bordered) {
|
|
566
|
-
styles.padding = "10px";
|
|
567
|
-
imgInlineStyles = generateInlineStyles(styles);
|
|
568
|
-
} else {
|
|
569
|
-
styles.padding = "0";
|
|
570
|
-
imgInlineStyles = generateInlineStyles(styles);
|
|
571
|
-
}
|
|
572
|
-
const objectFit = (styles == null ? void 0 : styles.objectFit) || "contain";
|
|
573
|
-
let objectPosition = "center";
|
|
574
|
-
if ((styles == null ? void 0 : styles.alignment) === "left") objectPosition = "left";
|
|
575
|
-
if ((styles == null ? void 0 : styles.alignment) === "right") objectPosition = "right";
|
|
576
|
-
return `<img src="${src || ""}" alt="${alt || "Image"}" style="${imgInlineStyles}; box-sizing: border-box !important; object-fit: ${objectFit} !important; object-position: ${objectPosition} !important; width: 100% !important; height: 100% !important; max-width: 100% !important; max-height: 100% !important;" />`;
|
|
577
|
-
} else if (sectionType === "divider") {
|
|
578
|
-
return `<hr style="border: none !important; border-top: ${(styles == null ? void 0 : styles.borderWidth) || 1}px ${(styles == null ? void 0 : styles.borderStyle) || "solid"} ${(styles == null ? void 0 : styles.borderColor) || "#000000"} !important; width: 100% !important; margin: 0 !important; height: 0 !important;" />`;
|
|
579
|
-
} else if (sectionType === "table") {
|
|
580
|
-
const { border, borderStyle, borderColor, borderRadius, height, opacity, ...rest } = styles;
|
|
581
|
-
const tableOpacity = typeof opacity === "number" ? opacity : 1;
|
|
582
|
-
const useWrapperTrick = borderRadius && styles.borderCollapse !== "separate" && styles.is_bordered;
|
|
583
|
-
const tInlineStyles = generateInlineStyles({
|
|
584
|
-
...rest,
|
|
585
|
-
...useWrapperTrick ? { borderStyle: "hidden" } : styles.is_bordered ? { border, borderStyle, borderColor } : {},
|
|
586
|
-
...useWrapperTrick ? {} : { borderRadius }
|
|
587
|
-
});
|
|
588
|
-
const wrapperStyles = useWrapperTrick ? `border: ${border || 1}px ${borderStyle || "solid"} ${borderColor || "#000000"}; border-radius: ${borderRadius}px; overflow: hidden; box-sizing: border-box; width: 100%;` : "";
|
|
589
|
-
const tHeadRowHeight = Number((_a = styles.tHead) == null ? void 0 : _a.rowHeight) || 38;
|
|
590
|
-
const tBodyRowHeight = Number((_b = styles.tBody) == null ? void 0 : _b.rowHeight) || 38;
|
|
591
|
-
const rawHeadBg = ((_c = styles.tHead) == null ? void 0 : _c.backgroundColor) || "rgba(245, 245, 245, 0.75)";
|
|
592
|
-
const headBgColor = applyOpacityToColor(rawHeadBg, tableOpacity);
|
|
593
|
-
const hasZebra = !!((_d = styles.tBody) == null ? void 0 : _d.zebraStriping);
|
|
594
|
-
const rawAltColor = ((_e = styles.tBody) == null ? void 0 : _e.alternateRowColor) || "#f9f9f9";
|
|
595
|
-
const altColor = applyOpacityToColor(rawAltColor, tableOpacity);
|
|
596
|
-
const rawMainBg = ((_f = styles.tBody) == null ? void 0 : _f.backgroundColor) || "#ffffff";
|
|
597
|
-
const mainBgColor = applyOpacityToColor(rawMainBg, tableOpacity);
|
|
598
|
-
const thUserFontSize = Number((_g = styles.tHead) == null ? void 0 : _g.fontSize) || 14;
|
|
599
|
-
const thBasePadding = typeof ((_h = styles.thCells) == null ? void 0 : _h.padding) === "number" ? styles.thCells.padding : 8;
|
|
600
|
-
const thAvailH = Math.max(4, tHeadRowHeight - 1);
|
|
601
|
-
const effectiveThFontSize = Math.min(thUserFontSize, Math.max(8, thAvailH - 2));
|
|
602
|
-
const thRemainingV = Math.max(0, thAvailH - effectiveThFontSize);
|
|
603
|
-
const thVPadding = Math.max(0, Math.min(thBasePadding, Math.floor(thRemainingV / 2)));
|
|
604
|
-
const thHPadding = thBasePadding;
|
|
605
|
-
const thWhiteSpace = tHeadRowHeight < 36 ? "nowrap" : "normal";
|
|
606
|
-
const tbUserFontSize = Number((_i = styles.tBody) == null ? void 0 : _i.fontSize) || 14;
|
|
607
|
-
const tbBasePadding = typeof ((_j = styles.tbCells) == null ? void 0 : _j.padding) === "number" ? styles.tbCells.padding : 8;
|
|
608
|
-
const tbAvailH = Math.max(4, tBodyRowHeight - 1);
|
|
609
|
-
const effectiveTbFontSize = Math.min(tbUserFontSize, Math.max(8, tbAvailH - 2));
|
|
610
|
-
const tbRemainingV = Math.max(0, tbAvailH - effectiveTbFontSize);
|
|
611
|
-
const tbVPadding = Math.max(0, Math.min(tbBasePadding, Math.floor(tbRemainingV / 2)));
|
|
612
|
-
const tbHPadding = tbBasePadding;
|
|
613
|
-
const tbWhiteSpace = tBodyRowHeight < 36 ? "nowrap" : "normal";
|
|
614
|
-
const { padding: _thPad, ...thCellsRest } = styles.thCells || {};
|
|
615
|
-
const { padding: _tbPad, ...tbCellsRest } = styles.tbCells || {};
|
|
616
|
-
const { rowHeight: _thRH, backgroundColor: _thBg, ...tHeadRest } = styles.tHead || {};
|
|
617
|
-
const { rowHeight: _tbRH, backgroundColor: _tbBg, ...tBodyRest } = styles.tBody || {};
|
|
618
|
-
const tHeadInlineStyles = generateInlineStyles(tHeadRest);
|
|
619
|
-
const tBodyInlineStyles = generateInlineStyles(tBodyRest);
|
|
620
|
-
const thCellInlineStyles = generateInlineStyles({
|
|
621
|
-
...tHeadRest,
|
|
622
|
-
...thCellsRest,
|
|
623
|
-
...styles.is_bordered ? { border, borderStyle, borderColor } : {}
|
|
624
|
-
});
|
|
625
|
-
const { backgroundColor: _tbBg2, ...tBodyRestNoBg } = tBodyRest;
|
|
626
|
-
const tbCellInlineStyles = generateInlineStyles({
|
|
627
|
-
...tBodyRestNoBg,
|
|
628
|
-
...tbCellsRest,
|
|
629
|
-
...styles.is_bordered ? { border, borderStyle, borderColor } : {}
|
|
630
|
-
});
|
|
631
|
-
const getCellMergeInfo = (section, rowIndex, colIndex) => {
|
|
632
|
-
var _a2;
|
|
633
|
-
return (_a2 = tableData == null ? void 0 : tableData.mergedCells) == null ? void 0 : _a2.find(
|
|
634
|
-
(m) => m.section === section && rowIndex >= m.rowStart && rowIndex <= m.rowEnd && colIndex >= m.colStart && colIndex <= m.colEnd
|
|
635
|
-
);
|
|
636
|
-
};
|
|
637
|
-
const getPlaceholderValue = (placeholderKey) => {
|
|
638
|
-
const placeholder2 = placeholders.find((p) => p.value === placeholderKey || p.id === placeholderKey || p.field === placeholderKey);
|
|
639
|
-
if (!placeholder2) return "";
|
|
640
|
-
if (typeof placeholder2.actualValue !== "undefined") return String(placeholder2.actualValue);
|
|
641
|
-
switch (placeholder2.type) {
|
|
642
|
-
case "date":
|
|
643
|
-
return (/* @__PURE__ */ new Date()).toLocaleDateString();
|
|
644
|
-
case "datetime":
|
|
645
|
-
return (/* @__PURE__ */ new Date()).toLocaleString();
|
|
646
|
-
case "number":
|
|
647
|
-
return "123";
|
|
648
|
-
case "currency":
|
|
649
|
-
return "$1,234.56";
|
|
650
|
-
case "email":
|
|
651
|
-
return "example@domain.com";
|
|
652
|
-
case "phone":
|
|
653
|
-
return "+1 (555) 123-4567";
|
|
654
|
-
case "url":
|
|
655
|
-
return "https://example.com";
|
|
656
|
-
default:
|
|
657
|
-
return placeholder2.label || placeholder2.value || placeholderKey;
|
|
658
|
-
}
|
|
659
|
-
};
|
|
660
|
-
let theadRowsHTML = "";
|
|
661
|
-
if ((tableData == null ? void 0 : tableData.headerRows) && tableData.headerRows.length > 0) {
|
|
662
|
-
theadRowsHTML = tableData.headerRows.map((hRow, rowIndex) => {
|
|
663
|
-
const rowCellsHTML = hRow.cells.map((hCell, colIndex) => {
|
|
664
|
-
var _a2, _b2, _c2;
|
|
665
|
-
const mergeInfo = getCellMergeInfo("thead", rowIndex, colIndex);
|
|
666
|
-
if (mergeInfo && (rowIndex !== mergeInfo.rowStart || colIndex !== mergeInfo.colStart)) return "";
|
|
667
|
-
const mergeAttributes = mergeInfo ? ` rowspan="${mergeInfo.rowEnd - mergeInfo.rowStart + 1}" colspan="${mergeInfo.colEnd - mergeInfo.colStart + 1}"` : "";
|
|
668
|
-
const cellValue = mergeInfo ? mergeInfo.value : hCell.value;
|
|
669
|
-
const cellStyleObj = ((_c2 = (_b2 = (_a2 = tableData.cellStyles) == null ? void 0 : _a2.thead) == null ? void 0 : _b2[rowIndex]) == null ? void 0 : _c2[colIndex]) || {};
|
|
670
|
-
const customCellStyles = Object.keys(cellStyleObj).map((k) => `${k.replace(/([A-Z])/g, "-$1").toLowerCase()}: ${cellStyleObj[k]} !important;`).join(" ");
|
|
671
|
-
return `<th style="${thCellInlineStyles}; vertical-align: middle; min-height: ${tHeadRowHeight}px; box-sizing: border-box; padding: ${thVPadding}px ${thHPadding}px !important; font-size: ${effectiveThFontSize}px !important; line-height: 1 !important; overflow: visible; word-break: break-word; white-space: ${thWhiteSpace === "nowrap" ? "normal" : thWhiteSpace}; background-color: ${headBgColor} !important; ${customCellStyles}"${mergeAttributes}>${cellValue}</th>`;
|
|
672
|
-
}).filter((cell) => cell !== "").join("");
|
|
673
|
-
return `<tr style="${tHeadInlineStyles}; background-color: ${headBgColor} !important; min-height: ${tHeadRowHeight}px; line-height: 1;">${rowCellsHTML}</tr>`;
|
|
674
|
-
}).join("");
|
|
675
|
-
} else {
|
|
676
|
-
const headerCellsHTML = ((tableData == null ? void 0 : tableData.columns) || []).map((column, colIndex) => {
|
|
677
|
-
var _a2, _b2, _c2;
|
|
678
|
-
const mergeInfo = getCellMergeInfo("thead", 0, colIndex);
|
|
679
|
-
if (mergeInfo && colIndex !== mergeInfo.colStart) return "";
|
|
680
|
-
const mergeAttributes = mergeInfo ? ` rowspan="${mergeInfo.rowEnd - mergeInfo.rowStart + 1}" colspan="${mergeInfo.colEnd - mergeInfo.colStart + 1}"` : "";
|
|
681
|
-
const cellValue = mergeInfo ? mergeInfo.value : column.header;
|
|
682
|
-
const alignStyle = column.align === "r" ? "text-align: right;" : column.align === "l" ? "text-align: left;" : "";
|
|
683
|
-
const cellStyleObj = ((_c2 = (_b2 = (_a2 = tableData == null ? void 0 : tableData.cellStyles) == null ? void 0 : _a2.thead) == null ? void 0 : _b2[0]) == null ? void 0 : _c2[colIndex]) || {};
|
|
684
|
-
const customCellStyles = Object.keys(cellStyleObj).map((k) => `${k.replace(/([A-Z])/g, "-$1").toLowerCase()}: ${cellStyleObj[k]} !important;`).join(" ");
|
|
685
|
-
return `<th style="${alignStyle}${alignStyle && !alignStyle.endsWith(";") ? ";" : ""}${thCellInlineStyles}; vertical-align: middle; min-height: ${tHeadRowHeight}px; box-sizing: border-box; padding: ${thVPadding}px ${thHPadding}px !important; font-size: ${effectiveThFontSize}px !important; line-height: 1 !important; overflow: visible; word-break: break-word; white-space: ${thWhiteSpace === "nowrap" ? "normal" : thWhiteSpace}; background-color: ${headBgColor} !important; ${customCellStyles}"${mergeAttributes}>${cellValue}</th>`;
|
|
686
|
-
}).filter((cell) => cell !== "").join("");
|
|
687
|
-
theadRowsHTML = `<tr style="${tHeadInlineStyles}; background-color: ${headBgColor} !important; min-height: ${tHeadRowHeight}px; line-height: 1;">${headerCellsHTML}</tr>`;
|
|
688
|
-
}
|
|
689
|
-
let tableRowsHTML = "";
|
|
690
|
-
const tPlaceholders = attrs == null ? void 0 : attrs.placeholders;
|
|
691
|
-
const rowsToRender = (tableData == null ? void 0 : tableData.rows) && tableData.rows.length > 0 ? tableData.rows : [{}];
|
|
692
|
-
const staticRowsHTML = rowsToRender.map((row, rowIndex) => {
|
|
693
|
-
const rowBgColor = hasZebra && rowIndex % 2 === 1 ? altColor : mainBgColor;
|
|
694
|
-
const rowStyleAddition = `; background-color: ${rowBgColor} !important;`;
|
|
695
|
-
const cellsHTML = ((tableData == null ? void 0 : tableData.columns) || []).map((column, colIndex) => {
|
|
696
|
-
var _a2, _b2, _c2;
|
|
697
|
-
const mergeInfo = getCellMergeInfo("tbody", rowIndex, colIndex);
|
|
698
|
-
if (mergeInfo && (rowIndex !== mergeInfo.rowStart || colIndex !== mergeInfo.colStart)) return "";
|
|
699
|
-
let cellValue = row[column.id] || "";
|
|
700
|
-
const keys = Object.keys(row || {});
|
|
701
|
-
if (keys.includes(`${column.id}_static`)) {
|
|
702
|
-
cellValue = row[`${column.id}_static`] || "";
|
|
703
|
-
}
|
|
704
|
-
if (!cellValue && (tPlaceholders == null ? void 0 : tPlaceholders[column.id])) {
|
|
705
|
-
cellValue = getPlaceholderValue(tPlaceholders[column.id]);
|
|
706
|
-
}
|
|
707
|
-
const mergeAttributes = mergeInfo ? ` rowspan="${mergeInfo.rowEnd - mergeInfo.rowStart + 1}" colspan="${mergeInfo.colEnd - mergeInfo.colStart + 1}"` : "";
|
|
708
|
-
const finalCellValue = mergeInfo ? mergeInfo.value : cellValue;
|
|
709
|
-
const alignStyle = column.align === "r" ? "text-align: right;" : column.align === "l" ? "text-align: left;" : "";
|
|
710
|
-
const cellStyleObj = ((_c2 = (_b2 = (_a2 = tableData == null ? void 0 : tableData.cellStyles) == null ? void 0 : _a2.tbody) == null ? void 0 : _b2[rowIndex]) == null ? void 0 : _c2[column.id]) || {};
|
|
711
|
-
const customCellStyles = Object.keys(cellStyleObj).map((k) => `${k.replace(/([A-Z])/g, "-$1").toLowerCase()}: ${cellStyleObj[k]} !important;`).join(" ");
|
|
712
|
-
return `<td style="${alignStyle}${alignStyle && !alignStyle.endsWith(";") ? ";" : ""}${tbCellInlineStyles}; vertical-align: middle; min-height: ${tBodyRowHeight}px; box-sizing: border-box; padding: ${tbVPadding}px ${tbHPadding}px !important; font-size: ${effectiveTbFontSize}px !important; line-height: 1 !important; overflow: visible; word-break: break-word; white-space: ${tbWhiteSpace === "nowrap" ? "normal" : tbWhiteSpace}; background-color: ${rowBgColor} !important;${rowStyleAddition} ${customCellStyles}"${mergeAttributes}>${finalCellValue}</td>`;
|
|
713
|
-
}).filter((cell) => cell !== "").join("");
|
|
714
|
-
return `<tr style="${tBodyInlineStyles}; min-height: ${tBodyRowHeight}px; line-height: 1;${rowStyleAddition}">${cellsHTML}</tr>`;
|
|
715
|
-
}).join("");
|
|
716
|
-
const hasDynamicHandlebars = rowsToRender.some(
|
|
717
|
-
(r) => Object.values(r).some((v) => typeof v === "string" && v.includes("{{"))
|
|
718
|
-
) || ((tableData == null ? void 0 : tableData.columns) || []).some((c) => tPlaceholders == null ? void 0 : tPlaceholders[c.id]);
|
|
719
|
-
if (isCompiler && hasDynamicHandlebars) {
|
|
720
|
-
const cellsForLoopHTML = ((tableData == null ? void 0 : tableData.columns) || []).map((column) => {
|
|
721
|
-
var _a2, _b2, _c2, _d2;
|
|
722
|
-
const alignStyle = column.align === "r" ? "text-align: right;" : column.align === "l" ? "text-align: left;" : "";
|
|
723
|
-
let cellValue = ((_a2 = rowsToRender[0]) == null ? void 0 : _a2[column.id]) || "";
|
|
724
|
-
const keys = Object.keys(rowsToRender[0] || {});
|
|
725
|
-
if (keys.includes(`${column.id}_static`)) {
|
|
726
|
-
cellValue = rowsToRender[0][`${column.id}_static`] || "";
|
|
727
|
-
}
|
|
728
|
-
if (!cellValue && (tPlaceholders == null ? void 0 : tPlaceholders[column.id])) {
|
|
729
|
-
cellValue = `{{${tPlaceholders[column.id]}}}`;
|
|
730
|
-
}
|
|
731
|
-
if (cellValue.includes("{{items}}") || cellValue.includes("{{item}}")) {
|
|
732
|
-
cellValue = `{{#if items}}{{items}}{{else if item_data.name}}{{item_data.name}}{{else if item}}{{item}}{{else if description}}{{description}}{{else}}{{items}}{{/if}}`;
|
|
733
|
-
} else if (cellValue.includes("{{quantity}}") || cellValue.includes("{{qty}}")) {
|
|
734
|
-
cellValue = `{{#if quantity}}{{quantity}}{{else if qty}}{{qty}}{{else}}0{{/if}}`;
|
|
735
|
-
} else if (cellValue.includes("{{rate}}") || cellValue.includes("{{price}}")) {
|
|
736
|
-
cellValue = `{{#if rate}}{{rate}}{{else if price}}{{price}}{{else if unit_price}}{{unit_price}}{{else}}0{{/if}}`;
|
|
737
|
-
} else if (cellValue.includes("{{discount_rate}}")) {
|
|
738
|
-
cellValue = `{{#if discount_rate}}{{discount_rate}}{{else}}0{{/if}}`;
|
|
739
|
-
} else if (cellValue.includes("{{discount_amount}}")) {
|
|
740
|
-
cellValue = `{{#if discount_amount}}{{discount_amount}}{{else}}0{{/if}}`;
|
|
741
|
-
}
|
|
742
|
-
const cellStyleObj = ((_d2 = (_c2 = (_b2 = tableData == null ? void 0 : tableData.cellStyles) == null ? void 0 : _b2.tbody) == null ? void 0 : _c2[0]) == null ? void 0 : _d2[column.id]) || {};
|
|
743
|
-
const customCellStyles = Object.keys(cellStyleObj).map((k) => `${k.replace(/([A-Z])/g, "-$1").toLowerCase()}: ${cellStyleObj[k]} !important;`).join(" ");
|
|
744
|
-
return `<td style="${alignStyle}${alignStyle && !alignStyle.endsWith(";") ? ";" : ""}${tbCellInlineStyles}; vertical-align: middle; min-height: ${tBodyRowHeight}px; box-sizing: border-box; padding: ${tbVPadding}px ${tbHPadding}px !important; font-size: ${effectiveTbFontSize}px !important; line-height: 1 !important; overflow: visible; word-break: break-word; white-space: ${tbWhiteSpace === "nowrap" ? "normal" : tbWhiteSpace}; background-color: ${mainBgColor} !important; ${customCellStyles}">${cellValue}</td>`;
|
|
745
|
-
}).join("");
|
|
746
|
-
tableRowsHTML = `{{#if sales_item_entries}}
|
|
747
|
-
{{#each sales_item_entries}}
|
|
748
|
-
<tr style="${tBodyInlineStyles}; min-height: ${tBodyRowHeight}px; line-height: 1;">${cellsForLoopHTML}</tr>
|
|
749
|
-
{{/each}}
|
|
750
|
-
{{else if item_entries}}
|
|
751
|
-
{{#each item_entries}}
|
|
752
|
-
<tr style="${tBodyInlineStyles}; min-height: ${tBodyRowHeight}px; line-height: 1;">${cellsForLoopHTML}</tr>
|
|
753
|
-
{{/each}}
|
|
754
|
-
{{else if items}}
|
|
755
|
-
{{#each items}}
|
|
756
|
-
<tr style="${tBodyInlineStyles}; min-height: ${tBodyRowHeight}px; line-height: 1;">${cellsForLoopHTML}</tr>
|
|
757
|
-
{{/each}}
|
|
758
|
-
{{else}}
|
|
759
|
-
${staticRowsHTML}
|
|
760
|
-
{{/if}}`;
|
|
761
|
-
} else {
|
|
762
|
-
tableRowsHTML = staticRowsHTML;
|
|
763
|
-
}
|
|
764
|
-
const zebraClass = hasZebra ? "pbd-table-zebra" : "";
|
|
765
|
-
const zebraStyleTag = hasZebra ? `<style>
|
|
766
|
-
.pbd-table-zebra tbody tr:nth-child(even) { background-color: ${altColor} !important; }
|
|
767
|
-
.pbd-table-zebra tbody tr:nth-child(even) td { background-color: ${altColor} !important; }
|
|
768
|
-
.pbd-table-zebra tbody tr:nth-child(odd) { background-color: ${mainBgColor} !important; }
|
|
769
|
-
.pbd-table-zebra tbody tr:nth-child(odd) td { background-color: ${mainBgColor} !important; }
|
|
770
|
-
</style>` : "";
|
|
771
|
-
const colgroupHTML = ((_k = tableData == null ? void 0 : tableData.columns) == null ? void 0 : _k.length) > 0 ? `<colgroup>${tableData.columns.map((col, colIndex) => {
|
|
772
|
-
var _a2, _b2, _c2, _d2;
|
|
773
|
-
return `<col style="width: ${((_d2 = (_c2 = (_b2 = (_a2 = tableData == null ? void 0 : tableData.cellStyles) == null ? void 0 : _a2.thead) == null ? void 0 : _b2[0]) == null ? void 0 : _c2[colIndex]) == null ? void 0 : _d2.width) || "auto"};">`;
|
|
774
|
-
}).join("")}</colgroup>` : "";
|
|
775
|
-
return `${zebraStyleTag}${useWrapperTrick ? `<div style="${wrapperStyles}">` : ""}<table class="${zebraClass}" style="${tInlineStyles}; width: 100%; border-collapse: collapse; height: auto !important; table-layout: fixed; margin: 0 !important; background-color: transparent !important;">${colgroupHTML}<thead>${theadRowsHTML}</thead><tbody>${tableRowsHTML}</tbody></table>${useWrapperTrick ? `</div>` : ""}`.trim();
|
|
776
|
-
} else if (sectionType === "qr-code" || sectionType === "bar-code") {
|
|
777
|
-
return `<div style="${inlineStyles}">${placeholder || "{{data}}"}</div>`;
|
|
778
|
-
} else if (sectionType === "signature") {
|
|
779
|
-
const signatureText = (attrs == null ? void 0 : attrs.signatureText) || "Signature";
|
|
780
|
-
return `<svg viewBox="0 0 300 80" width="100%" height="100%" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg"><text x="50%" y="55%" dominant-baseline="middle" text-anchor="middle" fill="${((_l = attrs == null ? void 0 : attrs.styles) == null ? void 0 : _l.color) || "#333333"}" style="${inlineStyles}">${signatureText}</text></svg>`;
|
|
781
|
-
}
|
|
782
|
-
const hasHtmlTags = /<\/?[a-z][\s\S]*>/i.test(content);
|
|
783
|
-
if (!hasHtmlTags) {
|
|
784
|
-
switch (sectionType) {
|
|
785
|
-
case "text":
|
|
786
|
-
case "text-block":
|
|
787
|
-
return `<p style="${inlineStyles}">${content}</p>`;
|
|
788
|
-
case "heading":
|
|
789
|
-
return `<h1 style="${inlineStyles}">${content}</h1>`;
|
|
790
|
-
case "heading-2":
|
|
791
|
-
return `<h2 style="${inlineStyles}">${content}</h2>`;
|
|
792
|
-
case "heading-3":
|
|
793
|
-
return `<h3 style="${inlineStyles}">${content}</h3>`;
|
|
794
|
-
case "heading-4":
|
|
795
|
-
return `<h4 style="${inlineStyles}">${content}</h4>`;
|
|
796
|
-
default:
|
|
797
|
-
return `<p style="${inlineStyles}">${content}</p>`;
|
|
798
|
-
}
|
|
799
|
-
} else {
|
|
800
|
-
try {
|
|
801
|
-
const parser = new DOMParser();
|
|
802
|
-
const doc = parser.parseFromString(`<div>${content}</div>`, "text/html");
|
|
803
|
-
const container = doc.body.firstChild;
|
|
804
|
-
if (container && container.nodeType === Node.ELEMENT_NODE) {
|
|
805
|
-
const elements = container.querySelectorAll("*");
|
|
806
|
-
elements.forEach((element) => {
|
|
807
|
-
if (element.tagName === "SCRIPT" || element.tagName === "STYLE") return;
|
|
808
|
-
const existingStyle = element.getAttribute("style") || "";
|
|
809
|
-
const existingProps = {};
|
|
810
|
-
existingStyle.split(";").forEach((prop) => {
|
|
811
|
-
const [key, value] = prop.split(":").map((item) => item.trim());
|
|
812
|
-
if (key && value) existingProps[key] = value;
|
|
813
|
-
});
|
|
814
|
-
const newStyleProps = {};
|
|
815
|
-
inlineStyles.split(";").forEach((prop) => {
|
|
816
|
-
const [key, value] = prop.split(":").map((item) => item.trim());
|
|
817
|
-
if (key && value) newStyleProps[key] = value;
|
|
818
|
-
});
|
|
819
|
-
if (element.tagName === "P" || element.tagName === "DIV") {
|
|
820
|
-
if (!newStyleProps["line-height"] && !existingProps["line-height"]) newStyleProps["line-height"] = "1.5";
|
|
821
|
-
} else if (["H1", "H2", "H3", "H4", "H5", "H6"].includes(element.tagName)) {
|
|
822
|
-
if (!newStyleProps["line-height"] && !existingProps["line-height"]) newStyleProps["line-height"] = "1.2";
|
|
823
|
-
if (!newStyleProps["margin"] && !existingProps["margin"]) newStyleProps["margin"] = "0.5em 0";
|
|
824
|
-
}
|
|
825
|
-
const mergedProps = { ...existingProps, ...newStyleProps };
|
|
826
|
-
const mergedStyle = Object.entries(mergedProps).filter(([key, value]) => key && value).map(([key, value]) => `${key}: ${value}`).join("; ");
|
|
827
|
-
element.setAttribute("style", mergedStyle);
|
|
828
|
-
});
|
|
829
|
-
let wrapperTag = "div";
|
|
830
|
-
if (sectionType === "heading") wrapperTag = "h1";
|
|
831
|
-
else if (sectionType === "heading-2") wrapperTag = "h2";
|
|
832
|
-
else if (sectionType === "heading-3") wrapperTag = "h3";
|
|
833
|
-
else if (sectionType === "heading-4") wrapperTag = "h4";
|
|
834
|
-
return `<${wrapperTag} style="${inlineStyles}">${container.innerHTML}</${wrapperTag}>`;
|
|
835
|
-
}
|
|
836
|
-
} catch (e) {
|
|
837
|
-
}
|
|
838
|
-
return content;
|
|
839
|
-
}
|
|
840
|
-
};
|
|
841
|
-
exports.applyOpacityToColor = applyOpacityToColor;
|
|
842
|
-
exports.extractStyles = extractStyles;
|
|
843
|
-
exports.generateContentHTML = generateContentHTML;
|
|
844
|
-
exports.generateEmailPreview = generateEmailPreview;
|
|
845
|
-
exports.generateHeaderFooterPreview = generateHeaderFooterPreview;
|
|
846
|
-
exports.generateInlineStyles = generateInlineStyles;
|
|
847
|
-
exports.generateSectionsHTML = generateSectionsHTML;
|
|
848
|
-
exports.getInitialSectionData = getInitialSectionData;
|
|
849
|
-
exports.templateRoutes = templateRoutes;
|
|
850
|
-
//# sourceMappingURL=common-D6T6NGWY.js.map
|