@erpsquad/common 1.11.29 → 1.11.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/DonutChart-BlzVwF9V.js +104 -0
- package/dist/chunks/DonutChart-BlzVwF9V.js.map +1 -0
- package/dist/chunks/DonutChart-CBaRNVKd.esm.js +88 -0
- package/dist/chunks/DonutChart-CBaRNVKd.esm.js.map +1 -0
- package/dist/chunks/DynamicDependentField-B1jkZzNW.js +127 -0
- package/dist/chunks/DynamicDependentField-B1jkZzNW.js.map +1 -0
- package/dist/chunks/DynamicDependentField-m4v2i_Ss.esm.js +128 -0
- package/dist/chunks/DynamicDependentField-m4v2i_Ss.esm.js.map +1 -0
- package/dist/chunks/ERPUIProvider-D1yQ1CmD.esm.js +130 -0
- package/dist/chunks/ERPUIProvider-D1yQ1CmD.esm.js.map +1 -0
- package/dist/chunks/ERPUIProvider-O6cQFkJq.js +129 -0
- package/dist/chunks/ERPUIProvider-O6cQFkJq.js.map +1 -0
- package/dist/chunks/FORMS-CP_bWKVd.js +295 -0
- package/dist/chunks/FORMS-CP_bWKVd.js.map +1 -0
- package/dist/chunks/FORMS-D1M0DgHQ.esm.js +296 -0
- package/dist/chunks/FORMS-D1M0DgHQ.esm.js.map +1 -0
- package/dist/chunks/FlexibleReduxExample-Ckz_L6d8.esm.js +149 -0
- package/dist/chunks/FlexibleReduxExample-Ckz_L6d8.esm.js.map +1 -0
- package/dist/chunks/FlexibleReduxExample-Df-bAX9S.js +148 -0
- package/dist/chunks/FlexibleReduxExample-Df-bAX9S.js.map +1 -0
- package/dist/chunks/GroupBarChart-BSLOA0iQ.js +102 -0
- package/dist/chunks/GroupBarChart-BSLOA0iQ.js.map +1 -0
- package/dist/chunks/GroupBarChart-lhrIpM1h.esm.js +86 -0
- package/dist/chunks/GroupBarChart-lhrIpM1h.esm.js.map +1 -0
- package/dist/chunks/SectionFlowEditor-D1v29JFf.esm.js +5479 -0
- package/dist/chunks/SectionFlowEditor-D1v29JFf.esm.js.map +1 -0
- package/dist/chunks/SectionFlowEditor-D58o14CY.js +5478 -0
- package/dist/chunks/SectionFlowEditor-D58o14CY.js.map +1 -0
- package/dist/chunks/action-bar-D4SYJgTT.js +660 -0
- package/dist/chunks/action-bar-D4SYJgTT.js.map +1 -0
- package/dist/chunks/action-bar-D4Siz93J.esm.js +661 -0
- package/dist/chunks/action-bar-D4Siz93J.esm.js.map +1 -0
- package/dist/chunks/actionCreator-0uQghTUt.esm.js +22 -0
- package/dist/chunks/actionCreator-0uQghTUt.esm.js.map +1 -0
- package/dist/chunks/actionCreator-BIur2_cF.esm.js +28 -0
- package/dist/chunks/actionCreator-BIur2_cF.esm.js.map +1 -0
- package/dist/chunks/actionCreator-BYzzSzcP.esm.js +14 -0
- package/dist/chunks/actionCreator-BYzzSzcP.esm.js.map +1 -0
- package/dist/chunks/actionCreator-Cddz6Hfa.js +27 -0
- package/dist/chunks/actionCreator-Cddz6Hfa.js.map +1 -0
- package/dist/chunks/actionCreator-D45ZRUYG.js +13 -0
- package/dist/chunks/actionCreator-D45ZRUYG.js.map +1 -0
- package/dist/chunks/actionCreator-DA134jFh.js +21 -0
- package/dist/chunks/actionCreator-DA134jFh.js.map +1 -0
- package/dist/chunks/actionCreator-DCvH3aya.esm.js +79 -0
- package/dist/chunks/actionCreator-DCvH3aya.esm.js.map +1 -0
- package/dist/chunks/actionCreator-P2el50Ij.js +93 -0
- package/dist/chunks/actionCreator-P2el50Ij.js.map +1 -0
- package/dist/chunks/actionCreator-Ux93gVSu.esm.js +94 -0
- package/dist/chunks/actionCreator-Ux93gVSu.esm.js.map +1 -0
- package/dist/chunks/actionCreator-tNh5lk4r.js +78 -0
- package/dist/chunks/actionCreator-tNh5lk4r.js.map +1 -0
- package/dist/chunks/activity-log-ByIo_G8q.esm.js +104 -0
- package/dist/chunks/activity-log-ByIo_G8q.esm.js.map +1 -0
- package/dist/chunks/activity-log-Cyne0qwm.js +103 -0
- package/dist/chunks/activity-log-Cyne0qwm.js.map +1 -0
- package/dist/chunks/add-template-BYyqpxVx.js +10 -0
- package/dist/chunks/add-template-BYyqpxVx.js.map +1 -0
- package/dist/chunks/add-template-D1Ro9dcG.esm.js +11 -0
- package/dist/chunks/add-template-D1Ro9dcG.esm.js.map +1 -0
- package/dist/chunks/address-modal-CfE5Ae8t.js +680 -0
- package/dist/chunks/address-modal-CfE5Ae8t.js.map +1 -0
- package/dist/chunks/address-modal-gRlouRj8.esm.js +664 -0
- package/dist/chunks/address-modal-gRlouRj8.esm.js.map +1 -0
- package/dist/chunks/ai-summary-BxB8Rnuk.js +350 -0
- package/dist/chunks/ai-summary-BxB8Rnuk.js.map +1 -0
- package/dist/chunks/ai-summary-CxAKUX2p.esm.js +351 -0
- package/dist/chunks/ai-summary-CxAKUX2p.esm.js.map +1 -0
- package/dist/chunks/api-DwmixHAO.js +5922 -0
- package/dist/chunks/api-DwmixHAO.js.map +1 -0
- package/dist/chunks/api-u1lKzJVv.esm.js +5923 -0
- package/dist/chunks/api-u1lKzJVv.esm.js.map +1 -0
- package/dist/chunks/appbar-B9EKR8QS.esm.js +57 -0
- package/dist/chunks/appbar-B9EKR8QS.esm.js.map +1 -0
- package/dist/chunks/appbar-Dt_exHJ3.js +56 -0
- package/dist/chunks/appbar-Dt_exHJ3.js.map +1 -0
- package/dist/chunks/approval-wrapper-C8iOUYeE.js +139 -0
- package/dist/chunks/approval-wrapper-C8iOUYeE.js.map +1 -0
- package/dist/chunks/approval-wrapper-OmXAoB9R.esm.js +140 -0
- package/dist/chunks/approval-wrapper-OmXAoB9R.esm.js.map +1 -0
- package/dist/chunks/areaLinerChart-BEiJvhIq.esm.js +104 -0
- package/dist/chunks/areaLinerChart-BEiJvhIq.esm.js.map +1 -0
- package/dist/chunks/areaLinerChart-DetB92LI.js +120 -0
- package/dist/chunks/areaLinerChart-DetB92LI.js.map +1 -0
- package/dist/chunks/bar-chart-BjAvgQJP.esm.js +87 -0
- package/dist/chunks/bar-chart-BjAvgQJP.esm.js.map +1 -0
- package/dist/chunks/bar-chart-HkOgepOg.js +103 -0
- package/dist/chunks/bar-chart-HkOgepOg.js.map +1 -0
- package/dist/chunks/barChart-B-WO75Ok.js +160 -0
- package/dist/chunks/barChart-B-WO75Ok.js.map +1 -0
- package/dist/chunks/barChart-BLhVsRwm.esm.js +144 -0
- package/dist/chunks/barChart-BLhVsRwm.esm.js.map +1 -0
- package/dist/chunks/barLinechart-D3G4VUJZ.esm.js +180 -0
- package/dist/chunks/barLinechart-D3G4VUJZ.esm.js.map +1 -0
- package/dist/chunks/barLinechart-DEfYJvJj.js +196 -0
- package/dist/chunks/barLinechart-DEfYJvJj.js.map +1 -0
- package/dist/chunks/calculation-summary-GdbtqnzK.esm.js +193 -0
- package/dist/chunks/calculation-summary-GdbtqnzK.esm.js.map +1 -0
- package/dist/chunks/calculation-summary-IGoIPXGL.js +192 -0
- package/dist/chunks/calculation-summary-IGoIPXGL.js.map +1 -0
- package/dist/chunks/chat-bot-BIXoGUj-.js +3609 -0
- package/dist/chunks/chat-bot-BIXoGUj-.js.map +1 -0
- package/dist/chunks/chat-bot-DURQfOqY.esm.js +3610 -0
- package/dist/chunks/chat-bot-DURQfOqY.esm.js.map +1 -0
- package/dist/chunks/common-utility-BLazlXzI.js +300 -0
- package/dist/chunks/common-utility-BLazlXzI.js.map +1 -0
- package/dist/chunks/common-utility-BQcU3rOh.esm.js +301 -0
- package/dist/chunks/common-utility-BQcU3rOh.esm.js.map +1 -0
- package/dist/chunks/custom-date-picker-BCcOhhvL.js +55 -0
- package/dist/chunks/custom-date-picker-BCcOhhvL.js.map +1 -0
- package/dist/chunks/custom-date-picker-qIdI_Mxe.esm.js +56 -0
- package/dist/chunks/custom-date-picker-qIdI_Mxe.esm.js.map +1 -0
- package/dist/chunks/custom-editor-CPTkZWIZ.js +1257 -0
- package/dist/chunks/custom-editor-CPTkZWIZ.js.map +1 -0
- package/dist/chunks/custom-editor-De9IWFLM.esm.js +1257 -0
- package/dist/chunks/custom-editor-De9IWFLM.esm.js.map +1 -0
- package/dist/chunks/custom-form-BoIrVoZW.esm.js +1146 -0
- package/dist/chunks/custom-form-BoIrVoZW.esm.js.map +1 -0
- package/dist/chunks/custom-form-DgnkFIZM.js +1145 -0
- package/dist/chunks/custom-form-DgnkFIZM.js.map +1 -0
- package/dist/chunks/custom-grid-card-DWv2PDQb.esm.js +128 -0
- package/dist/chunks/custom-grid-card-DWv2PDQb.esm.js.map +1 -0
- package/dist/chunks/custom-grid-card-H63FyqOk.js +127 -0
- package/dist/chunks/custom-grid-card-H63FyqOk.js.map +1 -0
- package/dist/chunks/dashboard-CVAH7i-8.esm.js +75 -0
- package/dist/chunks/dashboard-CVAH7i-8.esm.js.map +1 -0
- package/dist/chunks/dashboard-Drpz8zP5.js +74 -0
- package/dist/chunks/dashboard-Drpz8zP5.js.map +1 -0
- package/dist/chunks/date-BN5rVQeb.js +55 -0
- package/dist/chunks/date-BN5rVQeb.js.map +1 -0
- package/dist/chunks/date-CZNWJ8r7.esm.js +56 -0
- package/dist/chunks/date-CZNWJ8r7.esm.js.map +1 -0
- package/dist/chunks/date-format-settings-DohP3zvG.esm.js +117 -0
- package/dist/chunks/date-format-settings-DohP3zvG.esm.js.map +1 -0
- package/dist/chunks/date-format-settings-QiQTyiTn.js +116 -0
- package/dist/chunks/date-format-settings-QiQTyiTn.js.map +1 -0
- package/dist/chunks/date-picker-BAf8u-E9.esm.js +129 -0
- package/dist/chunks/date-picker-BAf8u-E9.esm.js.map +1 -0
- package/dist/chunks/date-picker-Dv_dfc9e.js +128 -0
- package/dist/chunks/date-picker-Dv_dfc9e.js.map +1 -0
- package/dist/chunks/date-range-picker-BHAVj3qf.js +62 -0
- package/dist/chunks/date-range-picker-BHAVj3qf.js.map +1 -0
- package/dist/chunks/date-range-picker-Ce01L3eF.esm.js +198 -0
- package/dist/chunks/date-range-picker-Ce01L3eF.esm.js.map +1 -0
- package/dist/chunks/date-range-picker-Dt6ODTKk.js +197 -0
- package/dist/chunks/date-range-picker-Dt6ODTKk.js.map +1 -0
- package/dist/chunks/date-range-picker-XrXYvhk6.esm.js +63 -0
- package/dist/chunks/date-range-picker-XrXYvhk6.esm.js.map +1 -0
- package/dist/chunks/date-time-Cscyu2JC.esm.js +55 -0
- package/dist/chunks/date-time-Cscyu2JC.esm.js.map +1 -0
- package/dist/chunks/date-time-DnEKq5ca.js +54 -0
- package/dist/chunks/date-time-DnEKq5ca.js.map +1 -0
- package/dist/chunks/date-time-picker-DOjxcYjT.js +115 -0
- package/dist/chunks/date-time-picker-DOjxcYjT.js.map +1 -0
- package/dist/chunks/date-time-picker-Dcs1e1Bc.esm.js +116 -0
- package/dist/chunks/date-time-picker-Dcs1e1Bc.esm.js.map +1 -0
- package/dist/chunks/dateFormat-BU9us1HO.esm.js +58 -0
- package/dist/chunks/dateFormat-BU9us1HO.esm.js.map +1 -0
- package/dist/chunks/dateFormat-MGjtBNwQ.js +57 -0
- package/dist/chunks/dateFormat-MGjtBNwQ.js.map +1 -0
- package/dist/chunks/discount-summary-C2L7GwJ5.esm.js +60 -0
- package/dist/chunks/discount-summary-C2L7GwJ5.esm.js.map +1 -0
- package/dist/chunks/discount-summary-CdrsdFbM.js +59 -0
- package/dist/chunks/discount-summary-CdrsdFbM.js.map +1 -0
- package/dist/chunks/dynamic-report-Bq614rL9.esm.js +589 -0
- package/dist/chunks/dynamic-report-Bq614rL9.esm.js.map +1 -0
- package/dist/chunks/dynamic-report-Dc2pd29H.js +588 -0
- package/dist/chunks/dynamic-report-Dc2pd29H.js.map +1 -0
- package/dist/chunks/dynamic-rows-BMj3evxl.js +249 -0
- package/dist/chunks/dynamic-rows-BMj3evxl.js.map +1 -0
- package/dist/chunks/dynamic-rows-Bi_L6K1Q.esm.js +250 -0
- package/dist/chunks/dynamic-rows-Bi_L6K1Q.esm.js.map +1 -0
- package/dist/chunks/dynamic-text-editor-BzyWihOp.js +44 -0
- package/dist/chunks/dynamic-text-editor-BzyWihOp.js.map +1 -0
- package/dist/chunks/dynamic-text-editor-FtzncH90.esm.js +45 -0
- package/dist/chunks/dynamic-text-editor-FtzncH90.esm.js.map +1 -0
- package/dist/chunks/edit-section-modal-By1pY8Kd.js +76 -0
- package/dist/chunks/edit-section-modal-By1pY8Kd.js.map +1 -0
- package/dist/chunks/edit-section-modal-lx44BKxM.esm.js +77 -0
- package/dist/chunks/edit-section-modal-lx44BKxM.esm.js.map +1 -0
- package/dist/chunks/filter-3x9UWii1.js +414 -0
- package/dist/chunks/filter-3x9UWii1.js.map +1 -0
- package/dist/chunks/filter-BnSYAact.esm.js +415 -0
- package/dist/chunks/filter-BnSYAact.esm.js.map +1 -0
- package/dist/chunks/footer-BDXx5kJG.esm.js +64 -0
- package/dist/chunks/footer-BDXx5kJG.esm.js.map +1 -0
- package/dist/chunks/footer-CNUL1un1.js +63 -0
- package/dist/chunks/footer-CNUL1un1.js.map +1 -0
- package/dist/chunks/form-fields-D7-_tDuw.esm.js +355 -0
- package/dist/chunks/form-fields-D7-_tDuw.esm.js.map +1 -0
- package/dist/chunks/form-fields-DYqWfI4L.js +354 -0
- package/dist/chunks/form-fields-DYqWfI4L.js.map +1 -0
- package/dist/chunks/form-parser-DgKyP2XE.esm.js +591 -0
- package/dist/chunks/form-parser-DgKyP2XE.esm.js.map +1 -0
- package/dist/chunks/form-parser-r9UB3j_l.js +607 -0
- package/dist/chunks/form-parser-r9UB3j_l.js.map +1 -0
- package/dist/chunks/form-section-B0UL95xN.esm.js +476 -0
- package/dist/chunks/form-section-B0UL95xN.esm.js.map +1 -0
- package/dist/chunks/form-section-Ra3TDNTJ.js +475 -0
- package/dist/chunks/form-section-Ra3TDNTJ.js.map +1 -0
- package/dist/chunks/format-chart-value-EdWQQL_n.esm.js +37 -0
- package/dist/chunks/format-chart-value-EdWQQL_n.esm.js.map +1 -0
- package/dist/chunks/format-chart-value-liFH0bwI.js +53 -0
- package/dist/chunks/format-chart-value-liFH0bwI.js.map +1 -0
- package/dist/chunks/fullScreen-CIO00GJA.js +20 -0
- package/dist/chunks/fullScreen-CIO00GJA.js.map +1 -0
- package/dist/chunks/fullScreen-Cf1lZpPP.esm.js +21 -0
- package/dist/chunks/fullScreen-Cf1lZpPP.esm.js.map +1 -0
- package/dist/chunks/global-search-BsF1AKA-.js +149 -0
- package/dist/chunks/global-search-BsF1AKA-.js.map +1 -0
- package/dist/chunks/global-search-DyHFvWRQ.esm.js +150 -0
- package/dist/chunks/global-search-DyHFvWRQ.esm.js.map +1 -0
- package/dist/chunks/grid-view-5_HV93Hf.esm.js +52 -0
- package/dist/chunks/grid-view-5_HV93Hf.esm.js.map +1 -0
- package/dist/chunks/grid-view-D0q_qMd2.js +51 -0
- package/dist/chunks/grid-view-D0q_qMd2.js.map +1 -0
- package/dist/chunks/header-DAad5p_7.js +90 -0
- package/dist/chunks/header-DAad5p_7.js.map +1 -0
- package/dist/chunks/header-S5MMcx4g.esm.js +91 -0
- package/dist/chunks/header-S5MMcx4g.esm.js.map +1 -0
- package/dist/chunks/header-enhanced-BPJQGGo7.js +400 -0
- package/dist/chunks/header-enhanced-BPJQGGo7.js.map +1 -0
- package/dist/chunks/header-enhanced-BtUsM1g3.esm.js +401 -0
- package/dist/chunks/header-enhanced-BtUsM1g3.esm.js.map +1 -0
- package/dist/chunks/inline-edit-fields-BXrrK0UT.esm.js +324 -0
- package/dist/chunks/inline-edit-fields-BXrrK0UT.esm.js.map +1 -0
- package/dist/chunks/inline-edit-fields-DeS-sx9_.js +340 -0
- package/dist/chunks/inline-edit-fields-DeS-sx9_.js.map +1 -0
- package/dist/chunks/inventory-reports-title-bar-CFqheEGb.js +733 -0
- package/dist/chunks/inventory-reports-title-bar-CFqheEGb.js.map +1 -0
- package/dist/chunks/inventory-reports-title-bar-CuPn69g7.esm.js +734 -0
- package/dist/chunks/inventory-reports-title-bar-CuPn69g7.esm.js.map +1 -0
- package/dist/chunks/item-response-details-BkE8ExKF.js +78 -0
- package/dist/chunks/item-response-details-BkE8ExKF.js.map +1 -0
- package/dist/chunks/item-response-details-FLk2xeBs.esm.js +79 -0
- package/dist/chunks/item-response-details-FLk2xeBs.esm.js.map +1 -0
- package/dist/chunks/listing-BlTk1lk7.js +275 -0
- package/dist/chunks/listing-BlTk1lk7.js.map +1 -0
- package/dist/chunks/listing-CBjRBr5T.esm.js +276 -0
- package/dist/chunks/listing-CBjRBr5T.esm.js.map +1 -0
- package/dist/chunks/location-select-BfXoscUj.esm.js +86 -0
- package/dist/chunks/location-select-BfXoscUj.esm.js.map +1 -0
- package/dist/chunks/location-select-C4r-bjZM.js +85 -0
- package/dist/chunks/location-select-C4r-bjZM.js.map +1 -0
- package/dist/chunks/material-editable-table-CUi1XChG.esm.js +1469 -0
- package/dist/chunks/material-editable-table-CUi1XChG.esm.js.map +1 -0
- package/dist/chunks/material-editable-table-DvOXRsag.js +1485 -0
- package/dist/chunks/material-editable-table-DvOXRsag.js.map +1 -0
- package/dist/chunks/module-reducer-1oIfrGzZ.js +91 -0
- package/dist/chunks/module-reducer-1oIfrGzZ.js.map +1 -0
- package/dist/chunks/module-reducer-Brv5y-yX.esm.js +92 -0
- package/dist/chunks/module-reducer-Brv5y-yX.esm.js.map +1 -0
- package/dist/chunks/multi-line-chart-CrQ7Hgm6.esm.js +96 -0
- package/dist/chunks/multi-line-chart-CrQ7Hgm6.esm.js.map +1 -0
- package/dist/chunks/multi-line-chart-DR6mEZ86.js +112 -0
- package/dist/chunks/multi-line-chart-DR6mEZ86.js.map +1 -0
- package/dist/chunks/notification-menu-B6DQbph4.js +600 -0
- package/dist/chunks/notification-menu-B6DQbph4.js.map +1 -0
- package/dist/chunks/notification-menu-BBEzqTvl.esm.js +601 -0
- package/dist/chunks/notification-menu-BBEzqTvl.esm.js.map +1 -0
- package/dist/chunks/page-action-BmdnKUie.js +324 -0
- package/dist/chunks/page-action-BmdnKUie.js.map +1 -0
- package/dist/chunks/page-action-DGnAycU4.esm.js +325 -0
- package/dist/chunks/page-action-DGnAycU4.esm.js.map +1 -0
- package/dist/chunks/page-navigator-BnJz0dir.esm.js +243 -0
- package/dist/chunks/page-navigator-BnJz0dir.esm.js.map +1 -0
- package/dist/chunks/page-navigator-qI4ptpIo.js +242 -0
- package/dist/chunks/page-navigator-qI4ptpIo.js.map +1 -0
- package/dist/chunks/page-view-BzUYT4aO.esm.js +324 -0
- package/dist/chunks/page-view-BzUYT4aO.esm.js.map +1 -0
- package/dist/chunks/page-view-CgKAg8Fs.js +323 -0
- package/dist/chunks/page-view-CgKAg8Fs.js.map +1 -0
- package/dist/chunks/quick-approval-modal--Uat95AK.js +272 -0
- package/dist/chunks/quick-approval-modal--Uat95AK.js.map +1 -0
- package/dist/chunks/quick-approval-modal-Cf5zDkO6.esm.js +256 -0
- package/dist/chunks/quick-approval-modal-Cf5zDkO6.esm.js.map +1 -0
- package/dist/chunks/reducer-5KSgWLUj.js +49 -0
- package/dist/chunks/reducer-5KSgWLUj.js.map +1 -0
- package/dist/chunks/reducer-BVEMC024.esm.js +33 -0
- package/dist/chunks/reducer-BVEMC024.esm.js.map +1 -0
- package/dist/chunks/reducer-Ba-Uxr0O.js +42 -0
- package/dist/chunks/reducer-Ba-Uxr0O.js.map +1 -0
- package/dist/chunks/reducer-C3gV86mN.esm.js +56 -0
- package/dist/chunks/reducer-C3gV86mN.esm.js.map +1 -0
- package/dist/chunks/reducer-C_1a_Ybe.js +32 -0
- package/dist/chunks/reducer-C_1a_Ybe.js.map +1 -0
- package/dist/chunks/reducer-DXCv8Ljo.esm.js +43 -0
- package/dist/chunks/reducer-DXCv8Ljo.esm.js.map +1 -0
- package/dist/chunks/reducer-DklAfYwo.js +55 -0
- package/dist/chunks/reducer-DklAfYwo.js.map +1 -0
- package/dist/chunks/reducer-DujEnCl-.js +147 -0
- package/dist/chunks/reducer-DujEnCl-.js.map +1 -0
- package/dist/chunks/reducer-PeqRGVlz.esm.js +148 -0
- package/dist/chunks/reducer-PeqRGVlz.esm.js.map +1 -0
- package/dist/chunks/reducer-e3sR-XbO.esm.js +50 -0
- package/dist/chunks/reducer-e3sR-XbO.esm.js.map +1 -0
- package/dist/chunks/reportFilter-DoD3vUsz.esm.js +396 -0
- package/dist/chunks/reportFilter-DoD3vUsz.esm.js.map +1 -0
- package/dist/chunks/reportFilter-DzgDlbu8.js +395 -0
- package/dist/chunks/reportFilter-DzgDlbu8.js.map +1 -0
- package/dist/chunks/reports-title-bar-BpeDKpyV.js +1027 -0
- package/dist/chunks/reports-title-bar-BpeDKpyV.js.map +1 -0
- package/dist/chunks/reports-title-bar-Bt9ogCT7.esm.js +1028 -0
- package/dist/chunks/reports-title-bar-Bt9ogCT7.esm.js.map +1 -0
- package/dist/chunks/route-page-map-LXxD_klV.js +8054 -0
- package/dist/chunks/route-page-map-LXxD_klV.js.map +1 -0
- package/dist/chunks/route-page-map-j4V1FsT3.esm.js +8055 -0
- package/dist/chunks/route-page-map-j4V1FsT3.esm.js.map +1 -0
- package/dist/chunks/routes-7yLS4Qxk.js +46 -0
- package/dist/chunks/routes-7yLS4Qxk.js.map +1 -0
- package/dist/chunks/routes-BE9OtJcV.esm.js +47 -0
- package/dist/chunks/routes-BE9OtJcV.esm.js.map +1 -0
- package/dist/chunks/schedule-report-B4hM1BQS.esm.js +236 -0
- package/dist/chunks/schedule-report-B4hM1BQS.esm.js.map +1 -0
- package/dist/chunks/schedule-report-D5Gtf9VF.js +235 -0
- package/dist/chunks/schedule-report-D5Gtf9VF.js.map +1 -0
- package/dist/chunks/schedule-report-modal-CFAdRSIO.esm.js +288 -0
- package/dist/chunks/schedule-report-modal-CFAdRSIO.esm.js.map +1 -0
- package/dist/chunks/schedule-report-modal-DDsrLqOm.js +287 -0
- package/dist/chunks/schedule-report-modal-DDsrLqOm.js.map +1 -0
- package/dist/chunks/searchable-select-5i6MO2Ys.esm.js +5431 -0
- package/dist/chunks/searchable-select-5i6MO2Ys.esm.js.map +1 -0
- package/dist/chunks/searchable-select-BsG-QlJk.js +5447 -0
- package/dist/chunks/searchable-select-BsG-QlJk.js.map +1 -0
- package/dist/chunks/share-modal-Bpa_0udn.esm.js +218 -0
- package/dist/chunks/share-modal-Bpa_0udn.esm.js.map +1 -0
- package/dist/chunks/share-modal-CaYg96t_.js +217 -0
- package/dist/chunks/share-modal-CaYg96t_.js.map +1 -0
- package/dist/chunks/share-modal-enhanced-B7JfgceP.esm.js +270 -0
- package/dist/chunks/share-modal-enhanced-B7JfgceP.esm.js.map +1 -0
- package/dist/chunks/share-modal-enhanced-BguLEFga.js +269 -0
- package/dist/chunks/share-modal-enhanced-BguLEFga.js.map +1 -0
- package/dist/chunks/sidebarScreen-DgpLalyG.js +200 -0
- package/dist/chunks/sidebarScreen-DgpLalyG.js.map +1 -0
- package/dist/chunks/sidebarScreen-Dp1e8Luz.esm.js +201 -0
- package/dist/chunks/sidebarScreen-Dp1e8Luz.esm.js.map +1 -0
- package/dist/chunks/store-CuKFQXI5.js +88 -0
- package/dist/chunks/store-CuKFQXI5.js.map +1 -0
- package/dist/chunks/store-KAx-wGcm.esm.js +89 -0
- package/dist/chunks/store-KAx-wGcm.esm.js.map +1 -0
- package/dist/chunks/table-CbV-bnb7.js +184 -0
- package/dist/chunks/table-CbV-bnb7.js.map +1 -0
- package/dist/chunks/table-Cdo7w_gv.esm.js +185 -0
- package/dist/chunks/table-Cdo7w_gv.esm.js.map +1 -0
- package/dist/chunks/table-form-CsxWI8HQ.esm.js +1537 -0
- package/dist/chunks/table-form-CsxWI8HQ.esm.js.map +1 -0
- package/dist/chunks/table-form-Dd2DNL6w.js +1536 -0
- package/dist/chunks/table-form-Dd2DNL6w.js.map +1 -0
- package/dist/chunks/template-editor-router-3FVvWm8W.js +8 -0
- package/dist/chunks/template-editor-router-3FVvWm8W.js.map +1 -0
- package/dist/chunks/template-editor-router-D0yZgK0u.esm.js +9 -0
- package/dist/chunks/template-editor-router-D0yZgK0u.esm.js.map +1 -0
- package/dist/chunks/template-modal-BHZbvEx9.esm.js +769 -0
- package/dist/chunks/template-modal-BHZbvEx9.esm.js.map +1 -0
- package/dist/chunks/template-modal-BuKxVaFw.js +768 -0
- package/dist/chunks/template-modal-BuKxVaFw.js.map +1 -0
- package/dist/chunks/templates-B_y-ywXc.esm.js +279 -0
- package/dist/chunks/templates-B_y-ywXc.esm.js.map +1 -0
- package/dist/chunks/templates-CtBwZgn9.js +278 -0
- package/dist/chunks/templates-CtBwZgn9.js.map +1 -0
- package/dist/chunks/text-measurement-BcBEexWP.js +251 -0
- package/dist/chunks/text-measurement-BcBEexWP.js.map +1 -0
- package/dist/chunks/text-measurement-w3Vk7SeS.esm.js +252 -0
- package/dist/chunks/text-measurement-w3Vk7SeS.esm.js.map +1 -0
- package/dist/chunks/total-summary-DPOMR8e4.esm.js +41 -0
- package/dist/chunks/total-summary-DPOMR8e4.esm.js.map +1 -0
- package/dist/chunks/total-summary-erUelIxr.js +40 -0
- package/dist/chunks/total-summary-erUelIxr.js.map +1 -0
- package/dist/chunks/translations-BnLuKxeJ.js +58 -0
- package/dist/chunks/translations-BnLuKxeJ.js.map +1 -0
- package/dist/chunks/translations-DQJAYm2A.esm.js +59 -0
- package/dist/chunks/translations-DQJAYm2A.esm.js.map +1 -0
- package/dist/chunks/uom-field-wrapper-BlwUeXmo.js +79 -0
- package/dist/chunks/uom-field-wrapper-BlwUeXmo.js.map +1 -0
- package/dist/chunks/uom-field-wrapper-D2QSsD7M.esm.js +80 -0
- package/dist/chunks/uom-field-wrapper-D2QSsD7M.esm.js.map +1 -0
- package/dist/chunks/upload-excel-DF6rPBeA.esm.js +361 -0
- package/dist/chunks/upload-excel-DF6rPBeA.esm.js.map +1 -0
- package/dist/chunks/upload-excel-vbTf63qn.js +360 -0
- package/dist/chunks/upload-excel-vbTf63qn.js.map +1 -0
- package/dist/chunks/use-translations-C_AFtNWf.esm.js +62 -0
- package/dist/chunks/use-translations-C_AFtNWf.esm.js.map +1 -0
- package/dist/chunks/use-translations-Dnm_y9o4.js +61 -0
- package/dist/chunks/use-translations-Dnm_y9o4.js.map +1 -0
- package/dist/chunks/useAccountSetting-BimM7OxP.js +172 -0
- package/dist/chunks/useAccountSetting-BimM7OxP.js.map +1 -0
- package/dist/chunks/useAccountSetting-BsIE2d1l.esm.js +173 -0
- package/dist/chunks/useAccountSetting-BsIE2d1l.esm.js.map +1 -0
- package/dist/chunks/useCheckSkuAndName-C0twPQja.esm.js +50 -0
- package/dist/chunks/useCheckSkuAndName-C0twPQja.esm.js.map +1 -0
- package/dist/chunks/useCheckSkuAndName-CQq8Le-_.js +49 -0
- package/dist/chunks/useCheckSkuAndName-CQq8Le-_.js.map +1 -0
- package/dist/chunks/useReduxIntegration-B5GrPUbT.js +38 -0
- package/dist/chunks/useReduxIntegration-B5GrPUbT.js.map +1 -0
- package/dist/chunks/useReduxIntegration-DzhcP34r.esm.js +39 -0
- package/dist/chunks/useReduxIntegration-DzhcP34r.esm.js.map +1 -0
- package/dist/chunks/useUniquenessCheck-BIT9TNYY.esm.js +39 -0
- package/dist/chunks/useUniquenessCheck-BIT9TNYY.esm.js.map +1 -0
- package/dist/chunks/useUniquenessCheck-VBBQqtYP.js +38 -0
- package/dist/chunks/useUniquenessCheck-VBBQqtYP.js.map +1 -0
- package/dist/chunks/useVendorAICompare-Bu4fjpby.esm.js +31 -0
- package/dist/chunks/useVendorAICompare-Bu4fjpby.esm.js.map +1 -0
- package/dist/chunks/useVendorAICompare-Cad1SOQx.js +30 -0
- package/dist/chunks/useVendorAICompare-Cad1SOQx.js.map +1 -0
- package/dist/chunks/value-editor-CtppXtUW.js +266 -0
- package/dist/chunks/value-editor-CtppXtUW.js.map +1 -0
- package/dist/chunks/value-editor-xwtdV2gn.esm.js +267 -0
- package/dist/chunks/value-editor-xwtdV2gn.esm.js.map +1 -0
- package/dist/chunks/vendor-ai-summary-Cf8yBCJC.js +227 -0
- package/dist/chunks/vendor-ai-summary-Cf8yBCJC.js.map +1 -0
- package/dist/chunks/vendor-ai-summary-w6_aC72U.esm.js +228 -0
- package/dist/chunks/vendor-ai-summary-w6_aC72U.esm.js.map +1 -0
- package/dist/components/action-bar/action-bar/index.esm.js +1 -1
- package/dist/components/action-bar/action-bar/index.js +1 -1
- package/dist/components/action-bar/index.esm.js +1 -1
- package/dist/components/action-bar/index.js +1 -1
- package/dist/components/activityLog/activity-log/index.esm.js +1 -1
- package/dist/components/activityLog/activity-log/index.js +1 -1
- package/dist/components/activityLog/index.esm.js +1 -1
- package/dist/components/activityLog/index.js +1 -1
- package/dist/components/address-modal/index.esm.js +1 -1
- package/dist/components/address-modal/index.js +1 -1
- package/dist/components/ai-summary/ai-summary/index.esm.js +1 -1
- package/dist/components/ai-summary/ai-summary/index.js +1 -1
- package/dist/components/ai-summary/index.esm.js +1 -1
- package/dist/components/ai-summary/index.js +1 -1
- package/dist/components/appbar/appbar/index.esm.js +1 -1
- package/dist/components/appbar/appbar/index.js +1 -1
- package/dist/components/appbar/index.esm.js +1 -1
- package/dist/components/appbar/index.js +1 -1
- package/dist/components/approval-wrapper/approval-wrapper/index.esm.js +1 -1
- package/dist/components/approval-wrapper/approval-wrapper/index.js +1 -1
- package/dist/components/approval-wrapper/index.esm.js +1 -1
- package/dist/components/approval-wrapper/index.js +1 -1
- package/dist/components/calculation-summary/calculation-summary/index.esm.js +1 -1
- package/dist/components/calculation-summary/calculation-summary/index.js +1 -1
- package/dist/components/calculation-summary/components/discount-summary/index.esm.js +1 -1
- package/dist/components/calculation-summary/components/discount-summary/index.js +1 -1
- package/dist/components/calculation-summary/components/index.esm.js +2 -2
- package/dist/components/calculation-summary/components/index.js +2 -2
- package/dist/components/calculation-summary/components/total-summary/index.esm.js +1 -1
- package/dist/components/calculation-summary/components/total-summary/index.js +1 -1
- package/dist/components/calculation-summary/index.esm.js +3 -3
- package/dist/components/calculation-summary/index.js +3 -3
- package/dist/components/charts/areaLinerChart/index.esm.js +1 -1
- package/dist/components/charts/areaLinerChart/index.js +1 -1
- package/dist/components/charts/bar-chart/bar-chart/index.esm.js +1 -1
- package/dist/components/charts/bar-chart/bar-chart/index.js +1 -1
- package/dist/components/charts/bar-chart/index.esm.js +1 -1
- package/dist/components/charts/bar-chart/index.js +1 -1
- package/dist/components/charts/barChart/barChart/index.esm.js +1 -1
- package/dist/components/charts/barChart/barChart/index.js +1 -1
- package/dist/components/charts/barChart/index.esm.js +1 -1
- package/dist/components/charts/barChart/index.js +1 -1
- package/dist/components/charts/barLineChart/barLinechart/index.esm.js +1 -1
- package/dist/components/charts/barLineChart/barLinechart/index.js +1 -1
- package/dist/components/charts/barLineChart/index.esm.js +1 -1
- package/dist/components/charts/barLineChart/index.js +1 -1
- package/dist/components/charts/donutChart/DonutChart/index.esm.js +1 -1
- package/dist/components/charts/donutChart/DonutChart/index.js +1 -1
- package/dist/components/charts/donutChart/index.esm.js +1 -1
- package/dist/components/charts/donutChart/index.js +1 -1
- package/dist/components/charts/groupBarChart/GroupBarChart/index.esm.js +1 -1
- package/dist/components/charts/groupBarChart/GroupBarChart/index.js +1 -1
- package/dist/components/charts/groupBarChart/index.esm.js +1 -1
- package/dist/components/charts/groupBarChart/index.js +1 -1
- package/dist/components/charts/index.esm.js +7 -7
- package/dist/components/charts/index.js +7 -7
- package/dist/components/charts/multiLineChart/index.esm.js +1 -1
- package/dist/components/charts/multiLineChart/index.js +1 -1
- package/dist/components/charts/multiLineChart/multi-line-chart/index.esm.js +1 -1
- package/dist/components/charts/multiLineChart/multi-line-chart/index.js +1 -1
- package/dist/components/chat-bot/index.esm.js +2 -1
- package/dist/components/chat-bot/index.js +2 -1
- package/dist/components/chat-bot/index.js.map +1 -1
- package/dist/components/custom-forms/FORMS/index.esm.js +1 -1
- package/dist/components/custom-forms/FORMS/index.js +1 -1
- package/dist/components/custom-forms/grid-view/grid-view/index.esm.js +1 -1
- package/dist/components/custom-forms/grid-view/grid-view/index.js +1 -1
- package/dist/components/custom-forms/grid-view/index.esm.js +1 -1
- package/dist/components/custom-forms/grid-view/index.js +1 -1
- package/dist/components/custom-forms/index.esm.js +2 -2
- package/dist/components/custom-forms/index.js +2 -2
- package/dist/components/customer-ai-summary/index.esm.js +1 -1
- package/dist/components/customer-ai-summary/index.js +1 -1
- package/dist/components/date-picker/date-picker/index.esm.js +1 -1
- package/dist/components/date-picker/date-picker/index.js +1 -1
- package/dist/components/date-picker/index.esm.js +2 -2
- package/dist/components/date-picker/index.js +2 -2
- package/dist/components/date-range-picker/date-range-picker/index.esm.js +1 -1
- package/dist/components/date-range-picker/date-range-picker/index.js +1 -1
- package/dist/components/date-range-picker/index.esm.js +2 -2
- package/dist/components/date-range-picker/index.js +2 -2
- package/dist/components/date-time-picker/date-time-picker/index.esm.js +1 -1
- package/dist/components/date-time-picker/date-time-picker/index.js +1 -1
- package/dist/components/date-time-picker/index.esm.js +2 -2
- package/dist/components/date-time-picker/index.js +2 -2
- package/dist/components/department-add-modal/index.esm.js +1 -1
- package/dist/components/department-add-modal/index.js +1 -1
- package/dist/components/designation-add-modal/index.esm.js +1 -1
- package/dist/components/designation-add-modal/index.js +1 -1
- package/dist/components/editor/custom-editor/index.esm.js +1 -1
- package/dist/components/editor/custom-editor/index.js +1 -1
- package/dist/components/editor/index.esm.js +1 -1
- package/dist/components/editor/index.js +1 -1
- package/dist/components/examples/FlexibleReduxExample/index.esm.js +1 -1
- package/dist/components/examples/FlexibleReduxExample/index.js +1 -1
- package/dist/components/examples/index.esm.js +1 -1
- package/dist/components/examples/index.js +1 -1
- package/dist/components/filter/components/index.esm.js +1 -1
- package/dist/components/filter/components/index.js +1 -1
- package/dist/components/filter/components/value-editor/index.esm.js +1 -1
- package/dist/components/filter/components/value-editor/index.js +1 -1
- package/dist/components/filter/filter/index.esm.js +1 -1
- package/dist/components/filter/filter/index.js +1 -1
- package/dist/components/filter/index.esm.js +2 -2
- package/dist/components/filter/index.js +2 -2
- package/dist/components/footer/footer/index.esm.js +1 -1
- package/dist/components/footer/footer/index.js +1 -1
- package/dist/components/footer/index.esm.js +1 -1
- package/dist/components/footer/index.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/custom-date-picker/index.esm.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/custom-date-picker/index.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/date/index.esm.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/date/index.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/date-range-picker/index.esm.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/date-range-picker/index.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/date-time/index.esm.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/date-time/index.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/dynamic-dependent-field/index.esm.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/dynamic-dependent-field/index.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/dynamic-select/index.esm.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/dynamic-select/index.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/dynamic-text-editor/index.esm.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/dynamic-text-editor/index.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/fixed-asset-item-add-modal/index.esm.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/fixed-asset-item-add-modal/index.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/index.esm.js +8 -8
- package/dist/components/form-control/form-builder/form-builder-element/index.js +8 -8
- package/dist/components/form-control/form-builder/form-builder-element/location-add-modal/index.esm.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/location-add-modal/index.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/select-configuration/index.esm.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/select-configuration/index.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/table/index.esm.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/table/index.js +1 -1
- package/dist/components/form-control/form-builder/index.esm.js +8 -8
- package/dist/components/form-control/form-builder/index.js +8 -8
- package/dist/components/form-control/form-parser/form-parser/index.esm.js +1 -1
- package/dist/components/form-control/form-parser/form-parser/index.js +1 -1
- package/dist/components/form-control/form-parser/form-section/index.esm.js +1 -1
- package/dist/components/form-control/form-parser/form-section/index.js +1 -1
- package/dist/components/form-control/form-parser/index.esm.js +2 -2
- package/dist/components/form-control/form-parser/index.js +2 -2
- package/dist/components/form-control/index.esm.js +10 -10
- package/dist/components/form-control/index.js +10 -10
- package/dist/components/grid/custom-grid-card/custom-grid-card/index.esm.js +1 -1
- package/dist/components/grid/custom-grid-card/custom-grid-card/index.js +1 -1
- package/dist/components/grid/custom-grid-card/index.esm.js +1 -1
- package/dist/components/grid/custom-grid-card/index.js +1 -1
- package/dist/components/grid/index.esm.js +1 -1
- package/dist/components/grid/index.js +1 -1
- package/dist/components/header/components/global-search/index.esm.js +1 -1
- package/dist/components/header/components/global-search/index.js +1 -1
- package/dist/components/header/components/index.esm.js +1 -1
- package/dist/components/header/components/index.js +1 -1
- package/dist/components/header/components/notification-menu/index.esm.js +1 -1
- package/dist/components/header/components/notification-menu/index.js +1 -1
- package/dist/components/header/components/notification-menu/notification-menu/index.esm.js +1 -1
- package/dist/components/header/components/notification-menu/notification-menu/index.js +1 -1
- package/dist/components/header/header/index.esm.js +1 -1
- package/dist/components/header/header/index.js +1 -1
- package/dist/components/header/header-enhanced/index.esm.js +1 -1
- package/dist/components/header/header-enhanced/index.js +1 -1
- package/dist/components/header/index.esm.js +5 -5
- package/dist/components/header/index.js +5 -5
- package/dist/components/header/redux/actionCreator/index.esm.js +1 -1
- package/dist/components/header/redux/actionCreator/index.js +1 -1
- package/dist/components/header/redux/index.esm.js +2 -2
- package/dist/components/header/redux/index.js +2 -2
- package/dist/components/header/redux/reducer/index.esm.js +1 -1
- package/dist/components/header/redux/reducer/index.js +1 -1
- package/dist/components/index.esm.js +53 -53
- package/dist/components/index.js +53 -53
- package/dist/components/inventory-reports-title-bar/component/index.esm.js +1 -1
- package/dist/components/inventory-reports-title-bar/component/index.js +1 -1
- package/dist/components/inventory-reports-title-bar/component/reportFilter/index.esm.js +1 -1
- package/dist/components/inventory-reports-title-bar/component/reportFilter/index.js +1 -1
- package/dist/components/inventory-reports-title-bar/index.esm.js +4 -4
- package/dist/components/inventory-reports-title-bar/index.js +4 -4
- package/dist/components/inventory-reports-title-bar/inventory-reports-title-bar/index.esm.js +1 -1
- package/dist/components/inventory-reports-title-bar/inventory-reports-title-bar/index.js +1 -1
- package/dist/components/inventory-reports-title-bar/redux/actionCreator/index.esm.js +1 -1
- package/dist/components/inventory-reports-title-bar/redux/actionCreator/index.js +1 -1
- package/dist/components/inventory-reports-title-bar/redux/index.esm.js +2 -2
- package/dist/components/inventory-reports-title-bar/redux/index.js +2 -2
- package/dist/components/inventory-reports-title-bar/redux/reducer/index.esm.js +1 -1
- package/dist/components/inventory-reports-title-bar/redux/reducer/index.js +1 -1
- package/dist/components/listing/index.esm.js +1 -1
- package/dist/components/listing/index.js +1 -1
- package/dist/components/listing/listing/index.esm.js +1 -1
- package/dist/components/listing/listing/index.js +1 -1
- package/dist/components/location-select/index.esm.js +1 -1
- package/dist/components/location-select/index.js +1 -1
- package/dist/components/material-editable-table/components/index.esm.js +1 -1
- package/dist/components/material-editable-table/components/index.js +1 -1
- package/dist/components/material-editable-table/components/inline-edit-fields/index.esm.js +1 -1
- package/dist/components/material-editable-table/components/inline-edit-fields/index.js +1 -1
- package/dist/components/material-editable-table/index.esm.js +2 -2
- package/dist/components/material-editable-table/index.js +2 -2
- package/dist/components/material-editable-table/material-editable-table/index.esm.js +1 -1
- package/dist/components/material-editable-table/material-editable-table/index.js +1 -1
- package/dist/components/material-table/components/index.esm.js +1 -1
- package/dist/components/material-table/components/index.js +1 -1
- package/dist/components/material-table/components/inline-edit-fields/index.esm.js +1 -1
- package/dist/components/material-table/components/inline-edit-fields/index.js +1 -1
- package/dist/components/material-table/index.esm.js +1 -1
- package/dist/components/material-table/index.js +1 -1
- package/dist/components/material-table/material-table/index.esm.js +1 -1
- package/dist/components/material-table/material-table/index.js +1 -1
- package/dist/components/page-navigator/components/index.esm.js +1 -1
- package/dist/components/page-navigator/components/index.js +1 -1
- package/dist/components/page-navigator/components/page-action/index.esm.js +1 -1
- package/dist/components/page-navigator/components/page-action/index.js +1 -1
- package/dist/components/page-navigator/index.esm.js +2 -2
- package/dist/components/page-navigator/index.js +2 -2
- package/dist/components/page-navigator/page-navigator/index.esm.js +1 -1
- package/dist/components/page-navigator/page-navigator/index.js +1 -1
- package/dist/components/parties-modal/index.esm.js +1 -1
- package/dist/components/parties-modal/index.js +1 -1
- package/dist/components/parties-modal/parties-modal/index.esm.js +1 -1
- package/dist/components/parties-modal/parties-modal/index.js +1 -1
- package/dist/components/providers/ERPUIProvider/index.esm.js +1 -1
- package/dist/components/providers/ERPUIProvider/index.js +1 -1
- package/dist/components/providers/index.esm.js +1 -1
- package/dist/components/providers/index.js +1 -1
- package/dist/components/quick-approval-modal/index.esm.js +1 -1
- package/dist/components/quick-approval-modal/index.js +1 -1
- package/dist/components/quick-approval-modal/quick-approval-modal/index.esm.js +1 -1
- package/dist/components/quick-approval-modal/quick-approval-modal/index.js +1 -1
- package/dist/components/reports/dynamic-report/dynamic-report/index.esm.js +1 -1
- package/dist/components/reports/dynamic-report/dynamic-report/index.js +1 -1
- package/dist/components/reports/dynamic-report/dynamic-rows/index.esm.js +1 -1
- package/dist/components/reports/dynamic-report/dynamic-rows/index.js +1 -1
- package/dist/components/reports/dynamic-report/index.esm.js +2 -2
- package/dist/components/reports/dynamic-report/index.js +2 -2
- package/dist/components/reports/index.esm.js +2 -2
- package/dist/components/reports/index.js +2 -2
- package/dist/components/reports-title-bar/index.esm.js +3 -3
- package/dist/components/reports-title-bar/index.js +3 -3
- package/dist/components/reports-title-bar/redux/actionCreator/index.esm.js +1 -1
- package/dist/components/reports-title-bar/redux/actionCreator/index.js +1 -1
- package/dist/components/reports-title-bar/redux/index.esm.js +2 -2
- package/dist/components/reports-title-bar/redux/index.js +2 -2
- package/dist/components/reports-title-bar/redux/reducer/index.esm.js +1 -1
- package/dist/components/reports-title-bar/redux/reducer/index.js +1 -1
- package/dist/components/reports-title-bar/reports-title-bar/index.esm.js +1 -1
- package/dist/components/reports-title-bar/reports-title-bar/index.js +1 -1
- package/dist/components/rfq-response/index.esm.js +1 -1
- package/dist/components/rfq-response/index.js +1 -1
- package/dist/components/rfq-response/item-response-details/index.esm.js +1 -1
- package/dist/components/rfq-response/item-response-details/index.js +1 -1
- package/dist/components/schedule-report/index.esm.js +2 -2
- package/dist/components/schedule-report/index.js +2 -2
- package/dist/components/schedule-report/schedule-report/index.esm.js +1 -1
- package/dist/components/schedule-report/schedule-report/index.js +1 -1
- package/dist/components/schedule-report/schedule-report-modal/index.esm.js +1 -1
- package/dist/components/schedule-report/schedule-report-modal/index.js +1 -1
- package/dist/components/searchable-select/index.esm.js +1 -1
- package/dist/components/searchable-select/index.js +1 -1
- package/dist/components/share-modal/index.esm.js +4 -4
- package/dist/components/share-modal/index.js +4 -4
- package/dist/components/share-modal/redux/actionCreator/index.esm.js +1 -1
- package/dist/components/share-modal/redux/actionCreator/index.js +1 -1
- package/dist/components/share-modal/redux/index.esm.js +2 -2
- package/dist/components/share-modal/redux/index.js +2 -2
- package/dist/components/share-modal/redux/reducer/index.esm.js +1 -1
- package/dist/components/share-modal/redux/reducer/index.js +1 -1
- package/dist/components/share-modal/share-modal/index.esm.js +1 -1
- package/dist/components/share-modal/share-modal/index.js +1 -1
- package/dist/components/share-modal/share-modal-enhanced/index.esm.js +1 -1
- package/dist/components/share-modal/share-modal-enhanced/index.js +1 -1
- package/dist/components/team-add-modal/index.esm.js +1 -1
- package/dist/components/team-add-modal/index.js +1 -1
- package/dist/components/uom-field-wrapper/index.esm.js +1 -1
- package/dist/components/uom-field-wrapper/index.js +1 -1
- package/dist/components/uom-field-wrapper/uom-field-wrapper/index.esm.js +1 -1
- package/dist/components/uom-field-wrapper/uom-field-wrapper/index.js +1 -1
- package/dist/components/upload-excel/index.esm.js +1 -1
- package/dist/components/upload-excel/index.js +1 -1
- package/dist/components/upload-excel/upload-excel/index.esm.js +1 -1
- package/dist/components/upload-excel/upload-excel/index.js +1 -1
- package/dist/components/vendor-ai-summary/index.esm.js +1 -1
- package/dist/components/vendor-ai-summary/index.js +1 -1
- package/dist/constants/index.esm.js +1 -1
- package/dist/constants/index.js +1 -1
- package/dist/hooks/index.esm.js +6 -6
- package/dist/hooks/index.js +6 -6
- package/dist/hooks/use-translations/index.esm.js +1 -1
- package/dist/hooks/use-translations/index.js +1 -1
- package/dist/hooks/useAccountSetting/index.esm.js +1 -1
- package/dist/hooks/useAccountSetting/index.js +1 -1
- package/dist/hooks/useCheckSkuAndName/index.esm.js +1 -1
- package/dist/hooks/useCheckSkuAndName/index.js +1 -1
- package/dist/hooks/useReduxIntegration/index.esm.js +1 -1
- package/dist/hooks/useReduxIntegration/index.js +1 -1
- package/dist/hooks/useUniquenessCheck/index.esm.js +1 -1
- package/dist/hooks/useUniquenessCheck/index.js +1 -1
- package/dist/index.esm.js +137 -119
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +100 -82
- package/dist/index.js.map +1 -1
- package/dist/layout/fullScreen/index.esm.js +1 -1
- package/dist/layout/fullScreen/index.js +1 -1
- package/dist/layout/index.esm.js +2 -2
- package/dist/layout/index.js +2 -2
- package/dist/layout/sidebarScreen/index.esm.js +1 -1
- package/dist/layout/sidebarScreen/index.js +1 -1
- package/dist/redux/index.esm.js +3 -3
- package/dist/redux/index.js +3 -3
- package/dist/runtime/index.esm.js +6 -2
- package/dist/runtime/index.esm.js.map +1 -1
- package/dist/runtime/index.js +6 -2
- package/dist/runtime/index.js.map +1 -1
- package/dist/src/components/calculation-summary/components/discount-summary.d.ts +1 -0
- package/dist/src/components/calculation-summary/components/total-summary.d.ts +1 -0
- package/dist/src/components/chat-bot/chat-bot-input.d.ts +2 -1
- package/dist/src/components/chat-bot/constants.d.ts +1 -0
- package/dist/src/components/reports-title-bar/reports-title-bar.d.ts +5 -0
- package/dist/src/utils/date-format-settings.d.ts +60 -0
- package/dist/src/utils/dateFormat.d.ts +1 -0
- package/dist/style.css +28 -1
- package/dist/utils/api/index.esm.js +1 -1
- package/dist/utils/api/index.js +1 -1
- package/dist/utils/common/index.esm.js +1 -1
- package/dist/utils/common/index.js +1 -1
- package/dist/utils/common-utility/index.esm.js +1 -1
- package/dist/utils/common-utility/index.js +1 -1
- package/dist/utils/dateFormat/index.esm.js +20 -2
- package/dist/utils/dateFormat/index.esm.js.map +1 -1
- package/dist/utils/dateFormat/index.js +19 -1
- package/dist/utils/dateFormat/index.js.map +1 -1
- package/dist/utils/form-builder-deconversion/index.esm.js +10 -4
- package/dist/utils/form-builder-deconversion/index.esm.js.map +1 -1
- package/dist/utils/form-builder-deconversion/index.js +10 -4
- package/dist/utils/form-builder-deconversion/index.js.map +1 -1
- package/dist/utils/index.esm.js +28 -10
- package/dist/utils/index.esm.js.map +1 -1
- package/dist/utils/index.js +23 -5
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/text-measurement/index.esm.js +1 -1
- package/dist/utils/text-measurement/index.js +1 -1
- package/dist/views/afterAuth/dashboard/index.esm.js +1 -1
- package/dist/views/afterAuth/dashboard/index.js +1 -1
- package/dist/views/afterAuth/index.esm.js +2 -2
- package/dist/views/afterAuth/index.js +2 -2
- package/dist/views/afterAuth/page-view/index.esm.js +1 -1
- package/dist/views/afterAuth/page-view/index.js +1 -1
- package/dist/views/form-builder/custom-form/index.esm.js +1 -1
- package/dist/views/form-builder/custom-form/index.js +1 -1
- package/dist/views/form-builder/element-edit-forms/index.esm.js +1 -1
- package/dist/views/form-builder/element-edit-forms/index.js +1 -1
- package/dist/views/form-builder/form-fields/index.esm.js +1 -1
- package/dist/views/form-builder/form-fields/index.js +1 -1
- package/dist/views/form-builder/index.esm.js +4 -4
- package/dist/views/form-builder/index.js +4 -4
- package/dist/views/form-builder/redux/index.esm.js +1 -1
- package/dist/views/form-builder/redux/index.js +1 -1
- package/dist/views/index.esm.js +13 -13
- package/dist/views/index.js +13 -13
- package/dist/views/template-editor/add-template/index.esm.js +1 -1
- package/dist/views/template-editor/add-template/index.js +1 -1
- package/dist/views/template-editor/components/index.esm.js +1 -1
- package/dist/views/template-editor/components/index.js +1 -1
- package/dist/views/template-editor/edit-section-modal/index.esm.js +1 -1
- package/dist/views/template-editor/edit-section-modal/index.js +1 -1
- package/dist/views/template-editor/index.esm.js +7 -7
- package/dist/views/template-editor/index.js +7 -7
- package/dist/views/template-editor/routes/index.esm.js +1 -1
- package/dist/views/template-editor/routes/index.js +1 -1
- package/dist/views/template-editor/template-modal/index.esm.js +1 -1
- package/dist/views/template-editor/template-modal/index.js +1 -1
- package/dist/views/template-editor/templates/index.esm.js +1 -1
- package/dist/views/template-editor/templates/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/DonutChart-BSM45IZR.js +0 -104
- package/dist/chunks/DonutChart-BSM45IZR.js.map +0 -1
- package/dist/chunks/DonutChart-CwRZ69d2.esm.js +0 -88
- package/dist/chunks/DonutChart-CwRZ69d2.esm.js.map +0 -1
- package/dist/chunks/DynamicDependentField-CxvG77Nz.esm.js +0 -128
- package/dist/chunks/DynamicDependentField-CxvG77Nz.esm.js.map +0 -1
- package/dist/chunks/DynamicDependentField-s4kwIrGN.js +0 -127
- package/dist/chunks/DynamicDependentField-s4kwIrGN.js.map +0 -1
- package/dist/chunks/ERPUIProvider-BzseBepc.esm.js +0 -130
- package/dist/chunks/ERPUIProvider-BzseBepc.esm.js.map +0 -1
- package/dist/chunks/ERPUIProvider-iB39BUBd.js +0 -129
- package/dist/chunks/ERPUIProvider-iB39BUBd.js.map +0 -1
- package/dist/chunks/FORMS-0-6vG5vm.js +0 -295
- package/dist/chunks/FORMS-0-6vG5vm.js.map +0 -1
- package/dist/chunks/FORMS-QrgpyEK_.esm.js +0 -296
- package/dist/chunks/FORMS-QrgpyEK_.esm.js.map +0 -1
- package/dist/chunks/FlexibleReduxExample-BgpligMk.js +0 -148
- package/dist/chunks/FlexibleReduxExample-BgpligMk.js.map +0 -1
- package/dist/chunks/FlexibleReduxExample-Dwvx4wTb.esm.js +0 -149
- package/dist/chunks/FlexibleReduxExample-Dwvx4wTb.esm.js.map +0 -1
- package/dist/chunks/GroupBarChart-Bqvs5N3s.esm.js +0 -86
- package/dist/chunks/GroupBarChart-Bqvs5N3s.esm.js.map +0 -1
- package/dist/chunks/GroupBarChart-CQjr7Ow8.js +0 -102
- package/dist/chunks/GroupBarChart-CQjr7Ow8.js.map +0 -1
- package/dist/chunks/SectionFlowEditor-Blhdf4jD.esm.js +0 -5479
- package/dist/chunks/SectionFlowEditor-Blhdf4jD.esm.js.map +0 -1
- package/dist/chunks/SectionFlowEditor-CNchIJ-0.js +0 -5478
- package/dist/chunks/SectionFlowEditor-CNchIJ-0.js.map +0 -1
- package/dist/chunks/action-bar-BCAyZghg.esm.js +0 -660
- package/dist/chunks/action-bar-BCAyZghg.esm.js.map +0 -1
- package/dist/chunks/action-bar-D6G70JMr.js +0 -659
- package/dist/chunks/action-bar-D6G70JMr.js.map +0 -1
- package/dist/chunks/actionCreator-2cZZuVFH.js +0 -93
- package/dist/chunks/actionCreator-2cZZuVFH.js.map +0 -1
- package/dist/chunks/actionCreator-BxsSTjDD.esm.js +0 -28
- package/dist/chunks/actionCreator-BxsSTjDD.esm.js.map +0 -1
- package/dist/chunks/actionCreator-CCbS63RH.js +0 -21
- package/dist/chunks/actionCreator-CCbS63RH.js.map +0 -1
- package/dist/chunks/actionCreator-CmAgJzDP.esm.js +0 -94
- package/dist/chunks/actionCreator-CmAgJzDP.esm.js.map +0 -1
- package/dist/chunks/actionCreator-D5jnL5Pv.js +0 -78
- package/dist/chunks/actionCreator-D5jnL5Pv.js.map +0 -1
- package/dist/chunks/actionCreator-DaS-QGI4.esm.js +0 -79
- package/dist/chunks/actionCreator-DaS-QGI4.esm.js.map +0 -1
- package/dist/chunks/actionCreator-DkS_8UbT.esm.js +0 -22
- package/dist/chunks/actionCreator-DkS_8UbT.esm.js.map +0 -1
- package/dist/chunks/actionCreator-QCAcDFaI.js +0 -27
- package/dist/chunks/actionCreator-QCAcDFaI.js.map +0 -1
- package/dist/chunks/actionCreator-jriFS6rf.esm.js +0 -14
- package/dist/chunks/actionCreator-jriFS6rf.esm.js.map +0 -1
- package/dist/chunks/actionCreator-tRYKJL_l.js +0 -13
- package/dist/chunks/actionCreator-tRYKJL_l.js.map +0 -1
- package/dist/chunks/activity-log-3DTR9uiM.esm.js +0 -103
- package/dist/chunks/activity-log-3DTR9uiM.esm.js.map +0 -1
- package/dist/chunks/activity-log-Hw1K_cMJ.js +0 -102
- package/dist/chunks/activity-log-Hw1K_cMJ.js.map +0 -1
- package/dist/chunks/add-template-B8cAl6jP.esm.js +0 -11
- package/dist/chunks/add-template-B8cAl6jP.esm.js.map +0 -1
- package/dist/chunks/add-template-DXfjAhLS.js +0 -10
- package/dist/chunks/add-template-DXfjAhLS.js.map +0 -1
- package/dist/chunks/address-modal-DDs0_DwZ.esm.js +0 -664
- package/dist/chunks/address-modal-DDs0_DwZ.esm.js.map +0 -1
- package/dist/chunks/address-modal-eIuNxXg0.js +0 -680
- package/dist/chunks/address-modal-eIuNxXg0.js.map +0 -1
- package/dist/chunks/ai-summary-CAKlYLnt.js +0 -350
- package/dist/chunks/ai-summary-CAKlYLnt.js.map +0 -1
- package/dist/chunks/ai-summary-Dto8NzAC.esm.js +0 -351
- package/dist/chunks/ai-summary-Dto8NzAC.esm.js.map +0 -1
- package/dist/chunks/api-BSqZ2y7J.esm.js +0 -5922
- package/dist/chunks/api-BSqZ2y7J.esm.js.map +0 -1
- package/dist/chunks/api-Ce693XLe.js +0 -5921
- package/dist/chunks/api-Ce693XLe.js.map +0 -1
- package/dist/chunks/appbar-C35Euxp4.js +0 -56
- package/dist/chunks/appbar-C35Euxp4.js.map +0 -1
- package/dist/chunks/appbar-DCoI9W6A.esm.js +0 -57
- package/dist/chunks/appbar-DCoI9W6A.esm.js.map +0 -1
- package/dist/chunks/approval-wrapper-B-41mLZw.esm.js +0 -140
- package/dist/chunks/approval-wrapper-B-41mLZw.esm.js.map +0 -1
- package/dist/chunks/approval-wrapper-C6-tXwaf.js +0 -139
- package/dist/chunks/approval-wrapper-C6-tXwaf.js.map +0 -1
- package/dist/chunks/areaLinerChart-BSaqONGz.esm.js +0 -104
- package/dist/chunks/areaLinerChart-BSaqONGz.esm.js.map +0 -1
- package/dist/chunks/areaLinerChart-CV1NKCGz.js +0 -120
- package/dist/chunks/areaLinerChart-CV1NKCGz.js.map +0 -1
- package/dist/chunks/bar-chart-C0okUFJS.js +0 -103
- package/dist/chunks/bar-chart-C0okUFJS.js.map +0 -1
- package/dist/chunks/bar-chart-D4myXwbk.esm.js +0 -87
- package/dist/chunks/bar-chart-D4myXwbk.esm.js.map +0 -1
- package/dist/chunks/barChart-B6SjqFTi.esm.js +0 -144
- package/dist/chunks/barChart-B6SjqFTi.esm.js.map +0 -1
- package/dist/chunks/barChart-_v5HVNeD.js +0 -160
- package/dist/chunks/barChart-_v5HVNeD.js.map +0 -1
- package/dist/chunks/barLinechart-BGRDgzAX.esm.js +0 -180
- package/dist/chunks/barLinechart-BGRDgzAX.esm.js.map +0 -1
- package/dist/chunks/barLinechart-Cybr4t95.js +0 -196
- package/dist/chunks/barLinechart-Cybr4t95.js.map +0 -1
- package/dist/chunks/calculation-summary-BhWssEJP.esm.js +0 -182
- package/dist/chunks/calculation-summary-BhWssEJP.esm.js.map +0 -1
- package/dist/chunks/calculation-summary-DdAaSwoG.js +0 -181
- package/dist/chunks/calculation-summary-DdAaSwoG.js.map +0 -1
- package/dist/chunks/chat-bot-C0ohNCRY.js +0 -3546
- package/dist/chunks/chat-bot-C0ohNCRY.js.map +0 -1
- package/dist/chunks/chat-bot-CzRxCBcZ.esm.js +0 -3547
- package/dist/chunks/chat-bot-CzRxCBcZ.esm.js.map +0 -1
- package/dist/chunks/common-utility-DNOInB1J.esm.js +0 -299
- package/dist/chunks/common-utility-DNOInB1J.esm.js.map +0 -1
- package/dist/chunks/common-utility-DXlg6tQv.js +0 -298
- package/dist/chunks/common-utility-DXlg6tQv.js.map +0 -1
- package/dist/chunks/custom-date-picker-Bj_9n8p8.esm.js +0 -56
- package/dist/chunks/custom-date-picker-Bj_9n8p8.esm.js.map +0 -1
- package/dist/chunks/custom-date-picker-Dt54H6AR.js +0 -55
- package/dist/chunks/custom-date-picker-Dt54H6AR.js.map +0 -1
- package/dist/chunks/custom-editor-D99-i2rN.js +0 -1257
- package/dist/chunks/custom-editor-D99-i2rN.js.map +0 -1
- package/dist/chunks/custom-editor-DbaK32F2.esm.js +0 -1257
- package/dist/chunks/custom-editor-DbaK32F2.esm.js.map +0 -1
- package/dist/chunks/custom-form-CiSSDja3.esm.js +0 -1146
- package/dist/chunks/custom-form-CiSSDja3.esm.js.map +0 -1
- package/dist/chunks/custom-form-rhJ1xvOV.js +0 -1145
- package/dist/chunks/custom-form-rhJ1xvOV.js.map +0 -1
- package/dist/chunks/custom-grid-card-25R5RDYY.js +0 -126
- package/dist/chunks/custom-grid-card-25R5RDYY.js.map +0 -1
- package/dist/chunks/custom-grid-card-ChSQynhf.esm.js +0 -127
- package/dist/chunks/custom-grid-card-ChSQynhf.esm.js.map +0 -1
- package/dist/chunks/dashboard-D7cAtema.js +0 -74
- package/dist/chunks/dashboard-D7cAtema.js.map +0 -1
- package/dist/chunks/dashboard-uhHB0n9T.esm.js +0 -75
- package/dist/chunks/dashboard-uhHB0n9T.esm.js.map +0 -1
- package/dist/chunks/date-BEkOnPLg.js +0 -55
- package/dist/chunks/date-BEkOnPLg.js.map +0 -1
- package/dist/chunks/date-DWW33q1y.esm.js +0 -56
- package/dist/chunks/date-DWW33q1y.esm.js.map +0 -1
- package/dist/chunks/date-picker-C0qJ2Ceq.js +0 -127
- package/dist/chunks/date-picker-C0qJ2Ceq.js.map +0 -1
- package/dist/chunks/date-picker-CqiwV3fq.esm.js +0 -128
- package/dist/chunks/date-picker-CqiwV3fq.esm.js.map +0 -1
- package/dist/chunks/date-range-picker-Bt_heXbX.js +0 -196
- package/dist/chunks/date-range-picker-Bt_heXbX.js.map +0 -1
- package/dist/chunks/date-range-picker-CXYyecdN.js +0 -61
- package/dist/chunks/date-range-picker-CXYyecdN.js.map +0 -1
- package/dist/chunks/date-range-picker-CvkYXRaH.esm.js +0 -197
- package/dist/chunks/date-range-picker-CvkYXRaH.esm.js.map +0 -1
- package/dist/chunks/date-range-picker-DDI-vDlU.esm.js +0 -62
- package/dist/chunks/date-range-picker-DDI-vDlU.esm.js.map +0 -1
- package/dist/chunks/date-time-Bmf9tUWN.js +0 -54
- package/dist/chunks/date-time-Bmf9tUWN.js.map +0 -1
- package/dist/chunks/date-time-TwBpGcVi.esm.js +0 -55
- package/dist/chunks/date-time-TwBpGcVi.esm.js.map +0 -1
- package/dist/chunks/date-time-picker-BiVDvz7V.esm.js +0 -115
- package/dist/chunks/date-time-picker-BiVDvz7V.esm.js.map +0 -1
- package/dist/chunks/date-time-picker-HC1XkaJG.js +0 -114
- package/dist/chunks/date-time-picker-HC1XkaJG.js.map +0 -1
- package/dist/chunks/dateFormat-DruK2Qh9.js +0 -56
- package/dist/chunks/dateFormat-DruK2Qh9.js.map +0 -1
- package/dist/chunks/dateFormat-VzMEQghL.esm.js +0 -57
- package/dist/chunks/dateFormat-VzMEQghL.esm.js.map +0 -1
- package/dist/chunks/discount-summary-Cfxk2tZa.esm.js +0 -60
- package/dist/chunks/discount-summary-Cfxk2tZa.esm.js.map +0 -1
- package/dist/chunks/discount-summary-RCy2t_AM.js +0 -59
- package/dist/chunks/discount-summary-RCy2t_AM.js.map +0 -1
- package/dist/chunks/dynamic-report-BfnrD-zq.js +0 -588
- package/dist/chunks/dynamic-report-BfnrD-zq.js.map +0 -1
- package/dist/chunks/dynamic-report-CmL56Rs0.esm.js +0 -589
- package/dist/chunks/dynamic-report-CmL56Rs0.esm.js.map +0 -1
- package/dist/chunks/dynamic-rows-5iZHYEWp.js +0 -249
- package/dist/chunks/dynamic-rows-5iZHYEWp.js.map +0 -1
- package/dist/chunks/dynamic-rows-Db28dAgS.esm.js +0 -250
- package/dist/chunks/dynamic-rows-Db28dAgS.esm.js.map +0 -1
- package/dist/chunks/dynamic-text-editor-B2k2GRDf.js +0 -44
- package/dist/chunks/dynamic-text-editor-B2k2GRDf.js.map +0 -1
- package/dist/chunks/dynamic-text-editor-DSyNRqGU.esm.js +0 -45
- package/dist/chunks/dynamic-text-editor-DSyNRqGU.esm.js.map +0 -1
- package/dist/chunks/edit-section-modal-Bg_OubEc.js +0 -76
- package/dist/chunks/edit-section-modal-Bg_OubEc.js.map +0 -1
- package/dist/chunks/edit-section-modal-CqbrHCo2.esm.js +0 -77
- package/dist/chunks/edit-section-modal-CqbrHCo2.esm.js.map +0 -1
- package/dist/chunks/filter-Br7IBDbh.esm.js +0 -415
- package/dist/chunks/filter-Br7IBDbh.esm.js.map +0 -1
- package/dist/chunks/filter-DqL-Ey7H.js +0 -414
- package/dist/chunks/filter-DqL-Ey7H.js.map +0 -1
- package/dist/chunks/footer-BmDKMyLP.js +0 -63
- package/dist/chunks/footer-BmDKMyLP.js.map +0 -1
- package/dist/chunks/footer-BmKXTODa.esm.js +0 -64
- package/dist/chunks/footer-BmKXTODa.esm.js.map +0 -1
- package/dist/chunks/form-fields-BiRJ8Gyp.esm.js +0 -355
- package/dist/chunks/form-fields-BiRJ8Gyp.esm.js.map +0 -1
- package/dist/chunks/form-fields-mWRtoHVX.js +0 -354
- package/dist/chunks/form-fields-mWRtoHVX.js.map +0 -1
- package/dist/chunks/form-parser-6_MQHzfU.js +0 -607
- package/dist/chunks/form-parser-6_MQHzfU.js.map +0 -1
- package/dist/chunks/form-parser-D0ZqEsBx.esm.js +0 -591
- package/dist/chunks/form-parser-D0ZqEsBx.esm.js.map +0 -1
- package/dist/chunks/form-section-D0ipOYv3.esm.js +0 -476
- package/dist/chunks/form-section-D0ipOYv3.esm.js.map +0 -1
- package/dist/chunks/form-section-DJJ5O8QE.js +0 -475
- package/dist/chunks/form-section-DJJ5O8QE.js.map +0 -1
- package/dist/chunks/format-chart-value-B5ClGhlz.esm.js +0 -37
- package/dist/chunks/format-chart-value-B5ClGhlz.esm.js.map +0 -1
- package/dist/chunks/format-chart-value-Cy1P2lbF.js +0 -53
- package/dist/chunks/format-chart-value-Cy1P2lbF.js.map +0 -1
- package/dist/chunks/fullScreen-CV2gntC3.js +0 -20
- package/dist/chunks/fullScreen-CV2gntC3.js.map +0 -1
- package/dist/chunks/fullScreen-DwP10GLK.esm.js +0 -21
- package/dist/chunks/fullScreen-DwP10GLK.esm.js.map +0 -1
- package/dist/chunks/global-search-BUpAIn8K.js +0 -149
- package/dist/chunks/global-search-BUpAIn8K.js.map +0 -1
- package/dist/chunks/global-search-C_L-lmq1.esm.js +0 -150
- package/dist/chunks/global-search-C_L-lmq1.esm.js.map +0 -1
- package/dist/chunks/grid-view-7yv8BBGS.esm.js +0 -52
- package/dist/chunks/grid-view-7yv8BBGS.esm.js.map +0 -1
- package/dist/chunks/grid-view-LeS2Q6Zy.js +0 -51
- package/dist/chunks/grid-view-LeS2Q6Zy.js.map +0 -1
- package/dist/chunks/header-BfLMcRXF.js +0 -90
- package/dist/chunks/header-BfLMcRXF.js.map +0 -1
- package/dist/chunks/header-CgGEFjRD.esm.js +0 -91
- package/dist/chunks/header-CgGEFjRD.esm.js.map +0 -1
- package/dist/chunks/header-enhanced-CP0w1-Dn.js +0 -400
- package/dist/chunks/header-enhanced-CP0w1-Dn.js.map +0 -1
- package/dist/chunks/header-enhanced-Cd3gRkWV.esm.js +0 -401
- package/dist/chunks/header-enhanced-Cd3gRkWV.esm.js.map +0 -1
- package/dist/chunks/inline-edit-fields-C7sJKda2.js +0 -340
- package/dist/chunks/inline-edit-fields-C7sJKda2.js.map +0 -1
- package/dist/chunks/inline-edit-fields-D0gvI8T3.esm.js +0 -324
- package/dist/chunks/inline-edit-fields-D0gvI8T3.esm.js.map +0 -1
- package/dist/chunks/inventory-reports-title-bar-C8Qo7NEx.js +0 -732
- package/dist/chunks/inventory-reports-title-bar-C8Qo7NEx.js.map +0 -1
- package/dist/chunks/inventory-reports-title-bar-DpG06q1U.esm.js +0 -733
- package/dist/chunks/inventory-reports-title-bar-DpG06q1U.esm.js.map +0 -1
- package/dist/chunks/item-response-details-Q4dR3qmN.js +0 -78
- package/dist/chunks/item-response-details-Q4dR3qmN.js.map +0 -1
- package/dist/chunks/item-response-details-TEvdMqA7.esm.js +0 -79
- package/dist/chunks/item-response-details-TEvdMqA7.esm.js.map +0 -1
- package/dist/chunks/listing-B7oUf-ga.esm.js +0 -276
- package/dist/chunks/listing-B7oUf-ga.esm.js.map +0 -1
- package/dist/chunks/listing-DINZMGWq.js +0 -275
- package/dist/chunks/listing-DINZMGWq.js.map +0 -1
- package/dist/chunks/location-select-B91gVEZg.esm.js +0 -86
- package/dist/chunks/location-select-B91gVEZg.esm.js.map +0 -1
- package/dist/chunks/location-select-DJGf2z9B.js +0 -85
- package/dist/chunks/location-select-DJGf2z9B.js.map +0 -1
- package/dist/chunks/material-editable-table-Bsy2JLb6.esm.js +0 -1469
- package/dist/chunks/material-editable-table-Bsy2JLb6.esm.js.map +0 -1
- package/dist/chunks/material-editable-table-CzJhE63R.js +0 -1485
- package/dist/chunks/material-editable-table-CzJhE63R.js.map +0 -1
- package/dist/chunks/module-reducer-CCZD_gz4.js +0 -91
- package/dist/chunks/module-reducer-CCZD_gz4.js.map +0 -1
- package/dist/chunks/module-reducer-DNm9BZ0L.esm.js +0 -92
- package/dist/chunks/module-reducer-DNm9BZ0L.esm.js.map +0 -1
- package/dist/chunks/multi-line-chart-BYBYGBdy.esm.js +0 -96
- package/dist/chunks/multi-line-chart-BYBYGBdy.esm.js.map +0 -1
- package/dist/chunks/multi-line-chart-Bt3wdHU7.js +0 -112
- package/dist/chunks/multi-line-chart-Bt3wdHU7.js.map +0 -1
- package/dist/chunks/notification-menu-BCCLpwDZ.js +0 -600
- package/dist/chunks/notification-menu-BCCLpwDZ.js.map +0 -1
- package/dist/chunks/notification-menu-PJM37Tp2.esm.js +0 -601
- package/dist/chunks/notification-menu-PJM37Tp2.esm.js.map +0 -1
- package/dist/chunks/page-action-CUTFLYyt.esm.js +0 -325
- package/dist/chunks/page-action-CUTFLYyt.esm.js.map +0 -1
- package/dist/chunks/page-action-EfPBRwHo.js +0 -324
- package/dist/chunks/page-action-EfPBRwHo.js.map +0 -1
- package/dist/chunks/page-navigator-J9GdrKkm.js +0 -242
- package/dist/chunks/page-navigator-J9GdrKkm.js.map +0 -1
- package/dist/chunks/page-navigator-PBXn7Eh_.esm.js +0 -243
- package/dist/chunks/page-navigator-PBXn7Eh_.esm.js.map +0 -1
- package/dist/chunks/page-view-D_Erav8n.js +0 -323
- package/dist/chunks/page-view-D_Erav8n.js.map +0 -1
- package/dist/chunks/page-view-DsptSruT.esm.js +0 -324
- package/dist/chunks/page-view-DsptSruT.esm.js.map +0 -1
- package/dist/chunks/quick-approval-modal-Bi9f6kIj.esm.js +0 -256
- package/dist/chunks/quick-approval-modal-Bi9f6kIj.esm.js.map +0 -1
- package/dist/chunks/quick-approval-modal-CoFcxeD9.js +0 -272
- package/dist/chunks/quick-approval-modal-CoFcxeD9.js.map +0 -1
- package/dist/chunks/reducer-BSDSt8P5.js +0 -49
- package/dist/chunks/reducer-BSDSt8P5.js.map +0 -1
- package/dist/chunks/reducer-Btzbg-kC.js +0 -55
- package/dist/chunks/reducer-Btzbg-kC.js.map +0 -1
- package/dist/chunks/reducer-C0vp7c_5.esm.js +0 -43
- package/dist/chunks/reducer-C0vp7c_5.esm.js.map +0 -1
- package/dist/chunks/reducer-C5hytm3p.js +0 -42
- package/dist/chunks/reducer-C5hytm3p.js.map +0 -1
- package/dist/chunks/reducer-C_iAxDoX.js +0 -32
- package/dist/chunks/reducer-C_iAxDoX.js.map +0 -1
- package/dist/chunks/reducer-DlQPn2Yf.js +0 -147
- package/dist/chunks/reducer-DlQPn2Yf.js.map +0 -1
- package/dist/chunks/reducer-DpGhVrVl.esm.js +0 -50
- package/dist/chunks/reducer-DpGhVrVl.esm.js.map +0 -1
- package/dist/chunks/reducer-DvN85Zfx.esm.js +0 -33
- package/dist/chunks/reducer-DvN85Zfx.esm.js.map +0 -1
- package/dist/chunks/reducer-LfwRh77b.esm.js +0 -56
- package/dist/chunks/reducer-LfwRh77b.esm.js.map +0 -1
- package/dist/chunks/reducer-qhCDNTSp.esm.js +0 -148
- package/dist/chunks/reducer-qhCDNTSp.esm.js.map +0 -1
- package/dist/chunks/reportFilter-CqxvTM6T.js +0 -394
- package/dist/chunks/reportFilter-CqxvTM6T.js.map +0 -1
- package/dist/chunks/reportFilter-DTsM7pWt.esm.js +0 -395
- package/dist/chunks/reportFilter-DTsM7pWt.esm.js.map +0 -1
- package/dist/chunks/reports-title-bar-BPCvX-LI.esm.js +0 -1016
- package/dist/chunks/reports-title-bar-BPCvX-LI.esm.js.map +0 -1
- package/dist/chunks/reports-title-bar-L1k7t3uz.js +0 -1015
- package/dist/chunks/reports-title-bar-L1k7t3uz.js.map +0 -1
- package/dist/chunks/route-page-map-Bz7COHkD.esm.js +0 -7427
- package/dist/chunks/route-page-map-Bz7COHkD.esm.js.map +0 -1
- package/dist/chunks/route-page-map-DfVJnKQA.js +0 -7426
- package/dist/chunks/route-page-map-DfVJnKQA.js.map +0 -1
- package/dist/chunks/routes-BC185juT.esm.js +0 -47
- package/dist/chunks/routes-BC185juT.esm.js.map +0 -1
- package/dist/chunks/routes-PNRu_AV8.js +0 -46
- package/dist/chunks/routes-PNRu_AV8.js.map +0 -1
- package/dist/chunks/schedule-report-CkrAwjTf.js +0 -235
- package/dist/chunks/schedule-report-CkrAwjTf.js.map +0 -1
- package/dist/chunks/schedule-report-YXW8mqxX.esm.js +0 -236
- package/dist/chunks/schedule-report-YXW8mqxX.esm.js.map +0 -1
- package/dist/chunks/schedule-report-modal-CDieUlju.esm.js +0 -288
- package/dist/chunks/schedule-report-modal-CDieUlju.esm.js.map +0 -1
- package/dist/chunks/schedule-report-modal-DbDqxLtB.js +0 -287
- package/dist/chunks/schedule-report-modal-DbDqxLtB.js.map +0 -1
- package/dist/chunks/searchable-select-Kg6j3WHo.js +0 -5447
- package/dist/chunks/searchable-select-Kg6j3WHo.js.map +0 -1
- package/dist/chunks/searchable-select-UNDm_sU3.esm.js +0 -5431
- package/dist/chunks/searchable-select-UNDm_sU3.esm.js.map +0 -1
- package/dist/chunks/share-modal-BkfNmJ6Q.esm.js +0 -218
- package/dist/chunks/share-modal-BkfNmJ6Q.esm.js.map +0 -1
- package/dist/chunks/share-modal-CfxRsno1.js +0 -217
- package/dist/chunks/share-modal-CfxRsno1.js.map +0 -1
- package/dist/chunks/share-modal-enhanced-B7ROQZkD.esm.js +0 -270
- package/dist/chunks/share-modal-enhanced-B7ROQZkD.esm.js.map +0 -1
- package/dist/chunks/share-modal-enhanced-CdPdyiPt.js +0 -269
- package/dist/chunks/share-modal-enhanced-CdPdyiPt.js.map +0 -1
- package/dist/chunks/sidebarScreen-CUDpCssG.js +0 -200
- package/dist/chunks/sidebarScreen-CUDpCssG.js.map +0 -1
- package/dist/chunks/sidebarScreen-ES06jsUC.esm.js +0 -201
- package/dist/chunks/sidebarScreen-ES06jsUC.esm.js.map +0 -1
- package/dist/chunks/store-BhWKdIyL.esm.js +0 -89
- package/dist/chunks/store-BhWKdIyL.esm.js.map +0 -1
- package/dist/chunks/store-DED99V-p.js +0 -88
- package/dist/chunks/store-DED99V-p.js.map +0 -1
- package/dist/chunks/table-D60IIwv_.js +0 -184
- package/dist/chunks/table-D60IIwv_.js.map +0 -1
- package/dist/chunks/table-DqRPlxNW.esm.js +0 -185
- package/dist/chunks/table-DqRPlxNW.esm.js.map +0 -1
- package/dist/chunks/table-form-5eM4xAoE.js +0 -1536
- package/dist/chunks/table-form-5eM4xAoE.js.map +0 -1
- package/dist/chunks/table-form-lDShKPGv.esm.js +0 -1537
- package/dist/chunks/table-form-lDShKPGv.esm.js.map +0 -1
- package/dist/chunks/template-editor-router-BDTAwEPd.esm.js +0 -9
- package/dist/chunks/template-editor-router-BDTAwEPd.esm.js.map +0 -1
- package/dist/chunks/template-editor-router-DQU440rt.js +0 -8
- package/dist/chunks/template-editor-router-DQU440rt.js.map +0 -1
- package/dist/chunks/template-modal-BEbtkxK2.esm.js +0 -769
- package/dist/chunks/template-modal-BEbtkxK2.esm.js.map +0 -1
- package/dist/chunks/template-modal-DM8bWq5q.js +0 -768
- package/dist/chunks/template-modal-DM8bWq5q.js.map +0 -1
- package/dist/chunks/templates-CcbbOv90.js +0 -278
- package/dist/chunks/templates-CcbbOv90.js.map +0 -1
- package/dist/chunks/templates-DchjIAQf.esm.js +0 -279
- package/dist/chunks/templates-DchjIAQf.esm.js.map +0 -1
- package/dist/chunks/text-measurement-B2SY4MOI.js +0 -251
- package/dist/chunks/text-measurement-B2SY4MOI.js.map +0 -1
- package/dist/chunks/text-measurement-C4VHjrOM.esm.js +0 -252
- package/dist/chunks/text-measurement-C4VHjrOM.esm.js.map +0 -1
- package/dist/chunks/total-summary-BCNJd8iL.esm.js +0 -41
- package/dist/chunks/total-summary-BCNJd8iL.esm.js.map +0 -1
- package/dist/chunks/total-summary-BhLK6YOW.js +0 -40
- package/dist/chunks/total-summary-BhLK6YOW.js.map +0 -1
- package/dist/chunks/translations-CzTYlXLs.js +0 -58
- package/dist/chunks/translations-CzTYlXLs.js.map +0 -1
- package/dist/chunks/translations-s7kQoO4z.esm.js +0 -59
- package/dist/chunks/translations-s7kQoO4z.esm.js.map +0 -1
- package/dist/chunks/uom-field-wrapper-CftM69IH.esm.js +0 -80
- package/dist/chunks/uom-field-wrapper-CftM69IH.esm.js.map +0 -1
- package/dist/chunks/uom-field-wrapper-DGJXWRgH.js +0 -79
- package/dist/chunks/uom-field-wrapper-DGJXWRgH.js.map +0 -1
- package/dist/chunks/upload-excel-BzL5o4KR.esm.js +0 -361
- package/dist/chunks/upload-excel-BzL5o4KR.esm.js.map +0 -1
- package/dist/chunks/upload-excel-WxhTn3iL.js +0 -360
- package/dist/chunks/upload-excel-WxhTn3iL.js.map +0 -1
- package/dist/chunks/use-translations-DK7JAMUq.esm.js +0 -62
- package/dist/chunks/use-translations-DK7JAMUq.esm.js.map +0 -1
- package/dist/chunks/use-translations-fvRLagN8.js +0 -61
- package/dist/chunks/use-translations-fvRLagN8.js.map +0 -1
- package/dist/chunks/useAccountSetting-0o3CgYbA.esm.js +0 -173
- package/dist/chunks/useAccountSetting-0o3CgYbA.esm.js.map +0 -1
- package/dist/chunks/useAccountSetting-DP26D8yo.js +0 -172
- package/dist/chunks/useAccountSetting-DP26D8yo.js.map +0 -1
- package/dist/chunks/useCheckSkuAndName-CoCwHFgC.js +0 -49
- package/dist/chunks/useCheckSkuAndName-CoCwHFgC.js.map +0 -1
- package/dist/chunks/useCheckSkuAndName-rkZ4hHCO.esm.js +0 -50
- package/dist/chunks/useCheckSkuAndName-rkZ4hHCO.esm.js.map +0 -1
- package/dist/chunks/useReduxIntegration-Cd6hvE5r.js +0 -38
- package/dist/chunks/useReduxIntegration-Cd6hvE5r.js.map +0 -1
- package/dist/chunks/useReduxIntegration-DM__4RiP.esm.js +0 -39
- package/dist/chunks/useReduxIntegration-DM__4RiP.esm.js.map +0 -1
- package/dist/chunks/useUniquenessCheck-B2o3fIcX.esm.js +0 -39
- package/dist/chunks/useUniquenessCheck-B2o3fIcX.esm.js.map +0 -1
- package/dist/chunks/useUniquenessCheck-pXvzabHu.js +0 -38
- package/dist/chunks/useUniquenessCheck-pXvzabHu.js.map +0 -1
- package/dist/chunks/useVendorAICompare-BkBY0x5p.js +0 -30
- package/dist/chunks/useVendorAICompare-BkBY0x5p.js.map +0 -1
- package/dist/chunks/useVendorAICompare-fc4aJtj1.esm.js +0 -31
- package/dist/chunks/useVendorAICompare-fc4aJtj1.esm.js.map +0 -1
- package/dist/chunks/value-editor-BmMNObtT.js +0 -265
- package/dist/chunks/value-editor-BmMNObtT.js.map +0 -1
- package/dist/chunks/value-editor-Djz4sP71.esm.js +0 -266
- package/dist/chunks/value-editor-Djz4sP71.esm.js.map +0 -1
- package/dist/chunks/vendor-ai-summary-B_2B-IuL.js +0 -227
- package/dist/chunks/vendor-ai-summary-B_2B-IuL.js.map +0 -1
- package/dist/chunks/vendor-ai-summary-CXNxB7TQ.esm.js +0 -228
- package/dist/chunks/vendor-ai-summary-CXNxB7TQ.esm.js.map +0 -1
|
@@ -1,1537 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import React__default, { useState, useEffect, useRef, useMemo, useCallback } from "react";
|
|
3
|
-
import { MenuItem, Stack, Box, FormControl, Slider, FormControlLabel, DialogTitle, IconButton, DialogContent, DialogActions, Select as Select$1, Button as Button$1, RadioGroup } from "@mui/material";
|
|
4
|
-
import { Add, Close } from "@mui/icons-material";
|
|
5
|
-
import { B as Button } from "./button-BtdpXmjA.esm.js";
|
|
6
|
-
import { M as Modal } from "./modal-DCla9U60.esm.js";
|
|
7
|
-
import { T as Typography } from "./typography-CG_A0iOJ.esm.js";
|
|
8
|
-
import { T as TextField } from "./text-field-CPrqrrio.esm.js";
|
|
9
|
-
import { S as Select } from "./select-CVxEdXzL.esm.js";
|
|
10
|
-
import { C as Checkbox } from "./checkbox-C0Kk4Gq8.esm.js";
|
|
11
|
-
import formatText from "../utils/format-text/index.esm.js";
|
|
12
|
-
import { enqueueSnackbar } from "notistack";
|
|
13
|
-
import { T as Trash } from "./trash-Zhhh3VNZ.esm.js";
|
|
14
|
-
import Close$1 from "@mui/icons-material/Close";
|
|
15
|
-
import { P as generateRandomId } from "./api-BSqZ2y7J.esm.js";
|
|
16
|
-
import { SECTION_TYPES } from "../utils/constant/index.esm.js";
|
|
17
|
-
import { R as Radio } from "./radio-BIyDp0wj.esm.js";
|
|
18
|
-
import { A as ArrowCircleDown } from "./arrow-circle-down-C_Fhp1p0.esm.js";
|
|
19
|
-
import { C as Calendar } from "./calendar-ZmJhkIbS.esm.js";
|
|
20
|
-
import { C as CheckboxSquare } from "./checkbox-square-CwWkho0n.esm.js";
|
|
21
|
-
import { C as Clock } from "./clock-CVSctrDH.esm.js";
|
|
22
|
-
import { D as DollarCircle } from "./dollar-circle-Ckgy6rAx.esm.js";
|
|
23
|
-
import { E as Email } from "./email-FbKkly0s.esm.js";
|
|
24
|
-
import { G as Grid } from "./grid-CSlGFfsi.esm.js";
|
|
25
|
-
import { H as Hashtag } from "./hashtag-6f9U9TFp.esm.js";
|
|
26
|
-
import { I as Image } from "./image-BD0Qq3wH.esm.js";
|
|
27
|
-
import { I as InfoCircle } from "./info-circle-CCvXX9vR.esm.js";
|
|
28
|
-
import { L as LinkHorizontal } from "./link-horizontal-Bmwd9uja.esm.js";
|
|
29
|
-
import { L as Link } from "./link-DnUMSkch.esm.js";
|
|
30
|
-
import { L as Location } from "./location-BDtuJry0.esm.js";
|
|
31
|
-
import { P as PaperClip } from "./paper-clip-CjzurOrg.esm.js";
|
|
32
|
-
import { P as Paragraph } from "./paragraph-Ag8X-0r3.esm.js";
|
|
33
|
-
import { P as Phone } from "./phone-ea8DJZ-F.esm.js";
|
|
34
|
-
import { R as RadioButton } from "./radio-button-DtmlcACz.esm.js";
|
|
35
|
-
import { T as ToggleSwitch } from "./toggle-switch-D1yD4loB.esm.js";
|
|
36
|
-
const fields = [
|
|
37
|
-
{ label: "Text", value: "text", icon: Paragraph },
|
|
38
|
-
{ label: "Number", value: "number", icon: Hashtag },
|
|
39
|
-
{ label: "Select", value: "select", icon: ArrowCircleDown },
|
|
40
|
-
{ label: "Date", value: "date", icon: Calendar },
|
|
41
|
-
{ label: "Files & Media", value: "file", icon: PaperClip },
|
|
42
|
-
{ label: "URL", value: "url", icon: Link },
|
|
43
|
-
{ label: "Email", value: "email", icon: Email },
|
|
44
|
-
{ label: "Phone", value: "phone", icon: Phone },
|
|
45
|
-
{ label: "Currency", value: "currency", icon: DollarCircle },
|
|
46
|
-
{ label: "Time", value: "time", icon: Clock },
|
|
47
|
-
{ label: "Table", value: "table", icon: Grid },
|
|
48
|
-
{ label: "Geolocation", value: "geoLocation", icon: Location },
|
|
49
|
-
{ label: "Check Box", value: "checkbox", icon: CheckboxSquare },
|
|
50
|
-
{ label: "Image Upload", value: "image", icon: Image },
|
|
51
|
-
{ label: "Relation Field", value: "relation", icon: LinkHorizontal },
|
|
52
|
-
{ label: "Info Card", value: "info", icon: InfoCircle },
|
|
53
|
-
{ label: "Toggle Button", value: "toggleButton", icon: ToggleSwitch },
|
|
54
|
-
{ label: "Radio Button", value: "radioButton", icon: RadioButton },
|
|
55
|
-
{ label: "tagsInput", value: "tagsInput", icon: Paragraph }
|
|
56
|
-
];
|
|
57
|
-
const FieldSelect = (props) => {
|
|
58
|
-
const [selectFields, setSelectFields] = useState(fields);
|
|
59
|
-
const [search, setSearch] = useState("");
|
|
60
|
-
const handleSearch = (event) => {
|
|
61
|
-
setSearch(event.target.value);
|
|
62
|
-
};
|
|
63
|
-
const handleSearchFields = (searchVal) => {
|
|
64
|
-
if (searchVal) {
|
|
65
|
-
setSelectFields([
|
|
66
|
-
...fields.filter((field) => field.value.includes(searchVal))
|
|
67
|
-
]);
|
|
68
|
-
} else {
|
|
69
|
-
setSelectFields(fields);
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
useEffect(() => {
|
|
73
|
-
handleSearchFields(search);
|
|
74
|
-
}, [search]);
|
|
75
|
-
return /* @__PURE__ */ jsx(
|
|
76
|
-
Select,
|
|
77
|
-
{
|
|
78
|
-
fullWidth: true,
|
|
79
|
-
placeholder: "Select Field",
|
|
80
|
-
size: "small",
|
|
81
|
-
labelName: "Field Type",
|
|
82
|
-
renderValue: (value) => {
|
|
83
|
-
var _a;
|
|
84
|
-
return (_a = fields.find((field) => field.value === value)) == null ? void 0 : _a.label;
|
|
85
|
-
},
|
|
86
|
-
handleSearch: () => handleSearch,
|
|
87
|
-
searchPlaceholder: "Search Attributes",
|
|
88
|
-
searchValue: search,
|
|
89
|
-
...props,
|
|
90
|
-
children: selectFields.map((field) => /* @__PURE__ */ jsx(MenuItem, { value: field.value, onKeyDown: (e) => e.stopPropagation(), children: /* @__PURE__ */ jsxs(Stack, { direction: "row", spacing: 1, alignItems: "center", children: [
|
|
91
|
-
field.icon && /* @__PURE__ */ jsx(field.icon, { fontSize: "small" }),
|
|
92
|
-
/* @__PURE__ */ jsx(Typography, { type: "s3", color: "theme.secondary.1000", children: field.label })
|
|
93
|
-
] }) }))
|
|
94
|
-
}
|
|
95
|
-
);
|
|
96
|
-
};
|
|
97
|
-
const COLUMN_PER_ROW_OPTIONS$1 = [1, 2, 3, 4, 5, 6];
|
|
98
|
-
const SELECT_OPTIONS = [
|
|
99
|
-
{ text: "12 Hour", value: "12hr" },
|
|
100
|
-
{ text: "24 Hour", value: "24hr" }
|
|
101
|
-
];
|
|
102
|
-
const CURRENCY_OPTIONS = [
|
|
103
|
-
{ text: "INR (India)", value: "inr" },
|
|
104
|
-
{ text: "USD (US)", value: "usd" }
|
|
105
|
-
];
|
|
106
|
-
const FIELDS_WITHOUT_PLACEHOLDER = /* @__PURE__ */ new Set([
|
|
107
|
-
"time",
|
|
108
|
-
"file",
|
|
109
|
-
"geoLocation",
|
|
110
|
-
"image",
|
|
111
|
-
"info",
|
|
112
|
-
"relation"
|
|
113
|
-
]);
|
|
114
|
-
const FIELDS_WITH_MIN_MAX = /* @__PURE__ */ new Set(["text", "number"]);
|
|
115
|
-
const MemoizedMenuItem = ({ option, index, prefix }) => /* @__PURE__ */ jsx(MenuItem, { value: option.value, children: option.text || option.label }, `${prefix}-${index}`);
|
|
116
|
-
const MemoizedRelationMenuItem = ({ option, index, prefix }) => /* @__PURE__ */ jsx(MenuItem, { value: option.value, children: /* @__PURE__ */ jsx(Typography, { type: "s3", color: "theme.secondary.1000", children: option.label }) }, `${prefix}-${index}`);
|
|
117
|
-
function TextEditForm(props) {
|
|
118
|
-
const {
|
|
119
|
-
handlePropertyValueUpdate,
|
|
120
|
-
handleColumnSelect,
|
|
121
|
-
handleWidthChange,
|
|
122
|
-
fields: fields2,
|
|
123
|
-
element
|
|
124
|
-
} = props;
|
|
125
|
-
const [elementJSON, setElementJSON] = useState(element);
|
|
126
|
-
const [openModal, setOpenModal] = useState(false);
|
|
127
|
-
const [relationFields, setRelationFields] = useState([]);
|
|
128
|
-
const [functionValue, setFunctionValue] = useState("");
|
|
129
|
-
const prevElementRef = useRef(element);
|
|
130
|
-
const prevFieldsRef = useRef(fields2);
|
|
131
|
-
const relationModulesOptions = useMemo(() => {
|
|
132
|
-
if (!fields2 || fields2 === prevFieldsRef.current) {
|
|
133
|
-
if (prevFieldsRef.current && fields2) return prevFieldsRef.current;
|
|
134
|
-
}
|
|
135
|
-
prevFieldsRef.current = fields2;
|
|
136
|
-
if (!fields2) return [];
|
|
137
|
-
return Object.keys(fields2).map((key) => ({
|
|
138
|
-
label: formatText(key),
|
|
139
|
-
value: key
|
|
140
|
-
}));
|
|
141
|
-
}, [fields2]);
|
|
142
|
-
const setRelationFieldsOptions = useCallback(
|
|
143
|
-
(moduleValue) => {
|
|
144
|
-
if (!fields2 || !moduleValue) {
|
|
145
|
-
setRelationFields((prev) => prev.length > 0 ? [] : prev);
|
|
146
|
-
return;
|
|
147
|
-
}
|
|
148
|
-
const fieldsArr = fields2[moduleValue];
|
|
149
|
-
if (fieldsArr == null ? void 0 : fieldsArr.length) {
|
|
150
|
-
const options = fieldsArr.map((field) => ({
|
|
151
|
-
label: field.field,
|
|
152
|
-
value: field.field
|
|
153
|
-
}));
|
|
154
|
-
setRelationFields((prev) => {
|
|
155
|
-
if (prev.length !== options.length) return options;
|
|
156
|
-
const isDifferent = prev.some(
|
|
157
|
-
(item, idx) => {
|
|
158
|
-
var _a, _b;
|
|
159
|
-
return item.value !== ((_a = options[idx]) == null ? void 0 : _a.value) || item.label !== ((_b = options[idx]) == null ? void 0 : _b.label);
|
|
160
|
-
}
|
|
161
|
-
);
|
|
162
|
-
return isDifferent ? options : prev;
|
|
163
|
-
});
|
|
164
|
-
} else {
|
|
165
|
-
setRelationFields((prev) => prev.length > 0 ? [] : prev);
|
|
166
|
-
}
|
|
167
|
-
},
|
|
168
|
-
[fields2]
|
|
169
|
-
);
|
|
170
|
-
const handleSave = useCallback((value) => {
|
|
171
|
-
if (!elementJSON) return;
|
|
172
|
-
if (elementJSON.default_value !== value) {
|
|
173
|
-
const updatedElement = { ...elementJSON, default_value: value };
|
|
174
|
-
setElementJSON(updatedElement);
|
|
175
|
-
handlePropertyValueUpdate(null, null, value);
|
|
176
|
-
}
|
|
177
|
-
if (value) {
|
|
178
|
-
setFunctionValue("");
|
|
179
|
-
setOpenModal(false);
|
|
180
|
-
}
|
|
181
|
-
}, [elementJSON, handlePropertyValueUpdate]);
|
|
182
|
-
const handleFieldUpdate = useCallback((e) => {
|
|
183
|
-
if (!elementJSON) return;
|
|
184
|
-
const fieldType = e.target.value;
|
|
185
|
-
if (elementJSON.field_type !== fieldType) {
|
|
186
|
-
const updatedElement = { ...elementJSON, field_type: fieldType };
|
|
187
|
-
setElementJSON(updatedElement);
|
|
188
|
-
handlePropertyValueUpdate(null, null, null, e.target.value);
|
|
189
|
-
}
|
|
190
|
-
}, [elementJSON, handlePropertyValueUpdate]);
|
|
191
|
-
const handleSelectUpdate = useCallback((e) => {
|
|
192
|
-
if (!elementJSON) return;
|
|
193
|
-
const option = e.target.value;
|
|
194
|
-
if (elementJSON.option !== option) {
|
|
195
|
-
const updatedElement = { ...elementJSON, option };
|
|
196
|
-
setElementJSON(updatedElement);
|
|
197
|
-
handlePropertyValueUpdate(null, null, option);
|
|
198
|
-
}
|
|
199
|
-
}, [elementJSON, handlePropertyValueUpdate]);
|
|
200
|
-
const handleModuleSelect = useCallback((e) => {
|
|
201
|
-
const moduleValue = e.target.value;
|
|
202
|
-
if ((elementJSON == null ? void 0 : elementJSON.module) !== moduleValue) {
|
|
203
|
-
setRelationFieldsOptions(moduleValue);
|
|
204
|
-
handlePropertyValueUpdate(e);
|
|
205
|
-
}
|
|
206
|
-
}, [elementJSON == null ? void 0 : elementJSON.module, setRelationFieldsOptions, handlePropertyValueUpdate]);
|
|
207
|
-
const handleWidthSliderChange = useCallback((_, value) => {
|
|
208
|
-
if (!elementJSON) return;
|
|
209
|
-
const widthValue = Array.isArray(value) ? value[0] : value;
|
|
210
|
-
if (elementJSON.custom_width !== widthValue) {
|
|
211
|
-
const updatedElement = { ...elementJSON, custom_width: widthValue };
|
|
212
|
-
setElementJSON(updatedElement);
|
|
213
|
-
handleWidthChange(widthValue);
|
|
214
|
-
}
|
|
215
|
-
}, [elementJSON, handleWidthChange]);
|
|
216
|
-
const handleFullWidthChange = useCallback((e) => {
|
|
217
|
-
if (!elementJSON) return;
|
|
218
|
-
const isFullWidth = e.target.checked;
|
|
219
|
-
if (elementJSON.is_fullwidth !== isFullWidth) {
|
|
220
|
-
const updatedElement = { ...elementJSON, is_fullwidth: isFullWidth };
|
|
221
|
-
setElementJSON(updatedElement);
|
|
222
|
-
handlePropertyValueUpdate(e);
|
|
223
|
-
}
|
|
224
|
-
}, [elementJSON, handlePropertyValueUpdate]);
|
|
225
|
-
const handleColumnSelectChange = useCallback((e) => {
|
|
226
|
-
const columnValue = Number(e.target.value);
|
|
227
|
-
handleColumnSelect(columnValue);
|
|
228
|
-
}, [handleColumnSelect]);
|
|
229
|
-
const getDefaultValue = useCallback((elementJSON2) => {
|
|
230
|
-
var _a;
|
|
231
|
-
if (["number", "currency", "geoLocation"].includes(elementJSON2.field_type)) {
|
|
232
|
-
return ((_a = elementJSON2.default_value) == null ? void 0 : _a.toString().replace(/[^0-9]/g, "")) || "";
|
|
233
|
-
}
|
|
234
|
-
return elementJSON2.default_value || "";
|
|
235
|
-
}, []);
|
|
236
|
-
const getMinMaxLabels = useCallback((fieldType) => {
|
|
237
|
-
return fieldType === "text" ? { min: "Min character count (with spaces)", max: "Max character count (with spaces)" } : { min: "Min number", max: "Max number" };
|
|
238
|
-
}, []);
|
|
239
|
-
const handleOpenModal = useCallback(() => setOpenModal(true), []);
|
|
240
|
-
const handleCloseModal = useCallback(() => {
|
|
241
|
-
setOpenModal(false);
|
|
242
|
-
setFunctionValue("");
|
|
243
|
-
}, []);
|
|
244
|
-
const handleFunctionValueChange = useCallback((e) => {
|
|
245
|
-
setFunctionValue(e.target.value);
|
|
246
|
-
}, []);
|
|
247
|
-
useEffect(() => {
|
|
248
|
-
if (element !== prevElementRef.current) {
|
|
249
|
-
setElementJSON(element);
|
|
250
|
-
prevElementRef.current = element;
|
|
251
|
-
if (element == null ? void 0 : element.module) {
|
|
252
|
-
setRelationFieldsOptions(element.module);
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
}, [element, setRelationFieldsOptions]);
|
|
256
|
-
const currencySelectSection = useMemo(() => {
|
|
257
|
-
if ((elementJSON == null ? void 0 : elementJSON.field_type) !== "currency") return null;
|
|
258
|
-
return /* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(FormControl, { fullWidth: true, children: /* @__PURE__ */ jsx(
|
|
259
|
-
Select,
|
|
260
|
-
{
|
|
261
|
-
fullWidth: true,
|
|
262
|
-
placeholder: "Select Currency",
|
|
263
|
-
size: "small",
|
|
264
|
-
onChange: handleSelectUpdate,
|
|
265
|
-
defaultValue: elementJSON.option,
|
|
266
|
-
label: "Currency",
|
|
267
|
-
name: "option",
|
|
268
|
-
variant: "outlined",
|
|
269
|
-
children: CURRENCY_OPTIONS.map((option, index) => /* @__PURE__ */ jsx(
|
|
270
|
-
MemoizedMenuItem,
|
|
271
|
-
{
|
|
272
|
-
option,
|
|
273
|
-
index,
|
|
274
|
-
prefix: "currency"
|
|
275
|
-
},
|
|
276
|
-
`currency-${index}`
|
|
277
|
-
))
|
|
278
|
-
}
|
|
279
|
-
) }) });
|
|
280
|
-
}, [elementJSON == null ? void 0 : elementJSON.field_type, elementJSON == null ? void 0 : elementJSON.option, handleSelectUpdate]);
|
|
281
|
-
const timeSelectSection = useMemo(() => {
|
|
282
|
-
if ((elementJSON == null ? void 0 : elementJSON.field_type) !== "time") return null;
|
|
283
|
-
return /* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(FormControl, { fullWidth: true, children: /* @__PURE__ */ jsx(
|
|
284
|
-
Select,
|
|
285
|
-
{
|
|
286
|
-
fullWidth: true,
|
|
287
|
-
placeholder: "Select Time Format",
|
|
288
|
-
size: "small",
|
|
289
|
-
onChange: handleSelectUpdate,
|
|
290
|
-
defaultValue: elementJSON.option,
|
|
291
|
-
label: "Time Format",
|
|
292
|
-
name: "option",
|
|
293
|
-
variant: "outlined",
|
|
294
|
-
children: SELECT_OPTIONS.map((option, index) => /* @__PURE__ */ jsx(
|
|
295
|
-
MemoizedMenuItem,
|
|
296
|
-
{
|
|
297
|
-
option,
|
|
298
|
-
index,
|
|
299
|
-
prefix: "time"
|
|
300
|
-
},
|
|
301
|
-
`time-${index}`
|
|
302
|
-
))
|
|
303
|
-
}
|
|
304
|
-
) }) });
|
|
305
|
-
}, [elementJSON == null ? void 0 : elementJSON.field_type, elementJSON == null ? void 0 : elementJSON.option, handleSelectUpdate]);
|
|
306
|
-
const relationSelectSection = useMemo(() => {
|
|
307
|
-
if ((elementJSON == null ? void 0 : elementJSON.field_type) !== "relation") return null;
|
|
308
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
309
|
-
/* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(FormControl, { fullWidth: true, children: /* @__PURE__ */ jsx(
|
|
310
|
-
Select,
|
|
311
|
-
{
|
|
312
|
-
fullWidth: true,
|
|
313
|
-
placeholder: relationModulesOptions.length ? "Select Relation Module" : "No data available",
|
|
314
|
-
size: "small",
|
|
315
|
-
onChange: handleModuleSelect,
|
|
316
|
-
value: elementJSON.module || "",
|
|
317
|
-
label: "Relation Module",
|
|
318
|
-
name: "module",
|
|
319
|
-
children: relationModulesOptions.length ? relationModulesOptions.map((option, index) => /* @__PURE__ */ jsx(
|
|
320
|
-
MemoizedRelationMenuItem,
|
|
321
|
-
{
|
|
322
|
-
option,
|
|
323
|
-
index,
|
|
324
|
-
prefix: "module"
|
|
325
|
-
},
|
|
326
|
-
`module-${index}`
|
|
327
|
-
)) : /* @__PURE__ */ jsx(MenuItem, { disabled: true, children: /* @__PURE__ */ jsx(Typography, { type: "s3", color: "theme.secondary.1000", children: /* @__PURE__ */ jsx("em", { children: "No data available" }) }) })
|
|
328
|
-
}
|
|
329
|
-
) }) }),
|
|
330
|
-
/* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(FormControl, { fullWidth: true, children: /* @__PURE__ */ jsx(
|
|
331
|
-
Select,
|
|
332
|
-
{
|
|
333
|
-
fullWidth: true,
|
|
334
|
-
placeholder: !elementJSON.module ? "Select Module First" : relationFields.length ? "Select Relation Field" : "No data available",
|
|
335
|
-
size: "small",
|
|
336
|
-
onChange: handlePropertyValueUpdate,
|
|
337
|
-
value: elementJSON.field || "",
|
|
338
|
-
label: "Relation Field",
|
|
339
|
-
disabled: !elementJSON.module,
|
|
340
|
-
name: "field",
|
|
341
|
-
children: relationFields.length ? relationFields.map((option, index) => /* @__PURE__ */ jsx(
|
|
342
|
-
MemoizedRelationMenuItem,
|
|
343
|
-
{
|
|
344
|
-
option,
|
|
345
|
-
index,
|
|
346
|
-
prefix: "field"
|
|
347
|
-
},
|
|
348
|
-
`field-${index}`
|
|
349
|
-
)) : /* @__PURE__ */ jsx(MenuItem, { disabled: true, children: /* @__PURE__ */ jsx(Typography, { type: "s3", color: "theme.secondary.1000", children: /* @__PURE__ */ jsx("em", { children: "No data available" }) }) })
|
|
350
|
-
}
|
|
351
|
-
) }) })
|
|
352
|
-
] });
|
|
353
|
-
}, [
|
|
354
|
-
elementJSON == null ? void 0 : elementJSON.field_type,
|
|
355
|
-
elementJSON == null ? void 0 : elementJSON.module,
|
|
356
|
-
elementJSON == null ? void 0 : elementJSON.field,
|
|
357
|
-
relationModulesOptions,
|
|
358
|
-
relationFields,
|
|
359
|
-
handleModuleSelect,
|
|
360
|
-
handlePropertyValueUpdate
|
|
361
|
-
]);
|
|
362
|
-
if (!elementJSON) {
|
|
363
|
-
return null;
|
|
364
|
-
}
|
|
365
|
-
const { field_type } = elementJSON;
|
|
366
|
-
const minMaxLabels = getMinMaxLabels(field_type);
|
|
367
|
-
return /* @__PURE__ */ jsxs(Box, { className: "formSection--FieldContainer", children: [
|
|
368
|
-
/* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(
|
|
369
|
-
FieldSelect,
|
|
370
|
-
{
|
|
371
|
-
variant: "outlined",
|
|
372
|
-
onChange: handleFieldUpdate,
|
|
373
|
-
defaultValue: field_type,
|
|
374
|
-
label: "Field Type",
|
|
375
|
-
disabled: elementJSON.type === "system" || !elementJSON.is_new
|
|
376
|
-
}
|
|
377
|
-
) }),
|
|
378
|
-
/* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(
|
|
379
|
-
TextField,
|
|
380
|
-
{
|
|
381
|
-
fullWidth: true,
|
|
382
|
-
label: "Label",
|
|
383
|
-
is_required: true,
|
|
384
|
-
name: "label",
|
|
385
|
-
type: "text",
|
|
386
|
-
onChange: handlePropertyValueUpdate,
|
|
387
|
-
defaultValue: elementJSON.label
|
|
388
|
-
}
|
|
389
|
-
) }),
|
|
390
|
-
(field_type === "file" || field_type === "image") && /* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(
|
|
391
|
-
TextField,
|
|
392
|
-
{
|
|
393
|
-
fullWidth: true,
|
|
394
|
-
label: "Max File Size (in MB)",
|
|
395
|
-
name: "max_size",
|
|
396
|
-
type: "number",
|
|
397
|
-
onChange: handlePropertyValueUpdate,
|
|
398
|
-
defaultValue: elementJSON.max_size
|
|
399
|
-
}
|
|
400
|
-
) }),
|
|
401
|
-
currencySelectSection,
|
|
402
|
-
!FIELDS_WITHOUT_PLACEHOLDER.has(field_type) && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
403
|
-
/* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(
|
|
404
|
-
TextField,
|
|
405
|
-
{
|
|
406
|
-
fullWidth: true,
|
|
407
|
-
label: "Placeholder",
|
|
408
|
-
name: "placeholder",
|
|
409
|
-
type: "text",
|
|
410
|
-
onChange: handlePropertyValueUpdate,
|
|
411
|
-
defaultValue: elementJSON.placeholder
|
|
412
|
-
}
|
|
413
|
-
) }),
|
|
414
|
-
/* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(
|
|
415
|
-
TextField,
|
|
416
|
-
{
|
|
417
|
-
fullWidth: true,
|
|
418
|
-
label: "Default Value",
|
|
419
|
-
placeholder: "Default Value",
|
|
420
|
-
name: "default_value",
|
|
421
|
-
type: field_type === "phone" ? "tel" : field_type === "number" ? "number" : "text",
|
|
422
|
-
onChange: handlePropertyValueUpdate,
|
|
423
|
-
defaultValue: getDefaultValue(elementJSON)
|
|
424
|
-
}
|
|
425
|
-
) })
|
|
426
|
-
] }),
|
|
427
|
-
timeSelectSection,
|
|
428
|
-
relationSelectSection,
|
|
429
|
-
FIELDS_WITH_MIN_MAX.has(field_type) && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
430
|
-
/* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(
|
|
431
|
-
TextField,
|
|
432
|
-
{
|
|
433
|
-
fullWidth: true,
|
|
434
|
-
label: minMaxLabels.min,
|
|
435
|
-
name: "min_length",
|
|
436
|
-
type: "number",
|
|
437
|
-
onChange: (e) => handlePropertyValueUpdate(e, Number(e.target.value)),
|
|
438
|
-
defaultValue: elementJSON.min_length || elementJSON.min || 1
|
|
439
|
-
}
|
|
440
|
-
) }),
|
|
441
|
-
/* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(
|
|
442
|
-
TextField,
|
|
443
|
-
{
|
|
444
|
-
fullWidth: true,
|
|
445
|
-
label: minMaxLabels.max,
|
|
446
|
-
name: "max_length",
|
|
447
|
-
type: "number",
|
|
448
|
-
onChange: (e) => handlePropertyValueUpdate(e, Number(e.target.value)),
|
|
449
|
-
defaultValue: elementJSON.max_length || elementJSON.max || (field_type === "number" ? 1e4 : 255)
|
|
450
|
-
}
|
|
451
|
-
) })
|
|
452
|
-
] }),
|
|
453
|
-
/* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(FormControl, { fullWidth: true, children: /* @__PURE__ */ jsx(
|
|
454
|
-
Select,
|
|
455
|
-
{
|
|
456
|
-
fullWidth: true,
|
|
457
|
-
placeholder: "Select Column Per Row",
|
|
458
|
-
size: "small",
|
|
459
|
-
onChange: handleColumnSelectChange,
|
|
460
|
-
value: elementJSON.columns_per_row || 1,
|
|
461
|
-
label: "Select Column Per Row",
|
|
462
|
-
name: "columns_per_row",
|
|
463
|
-
variant: "outlined",
|
|
464
|
-
children: COLUMN_PER_ROW_OPTIONS$1.map((option, index) => /* @__PURE__ */ jsx(MenuItem, { value: option, children: option }, `column-${index}`))
|
|
465
|
-
}
|
|
466
|
-
) }) }),
|
|
467
|
-
/* @__PURE__ */ jsxs(Box, { children: [
|
|
468
|
-
/* @__PURE__ */ jsx(Typography, { sx: { color: "black", mb: 1 }, children: "Adjust Width:" }),
|
|
469
|
-
/* @__PURE__ */ jsx(
|
|
470
|
-
Slider,
|
|
471
|
-
{
|
|
472
|
-
value: elementJSON.custom_width || 12,
|
|
473
|
-
name: "custom_width",
|
|
474
|
-
min: 1,
|
|
475
|
-
max: 12,
|
|
476
|
-
step: 1,
|
|
477
|
-
onChange: handleWidthSliderChange,
|
|
478
|
-
"aria-labelledby": "width-slider",
|
|
479
|
-
sx: { color: "#4AC08C" },
|
|
480
|
-
disabled: elementJSON.is_fullwidth,
|
|
481
|
-
marks: true,
|
|
482
|
-
valueLabelDisplay: "auto"
|
|
483
|
-
}
|
|
484
|
-
)
|
|
485
|
-
] }),
|
|
486
|
-
field_type === "number" && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
487
|
-
/* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(
|
|
488
|
-
TextField,
|
|
489
|
-
{
|
|
490
|
-
fullWidth: true,
|
|
491
|
-
label: "Float Step",
|
|
492
|
-
name: "float_step",
|
|
493
|
-
type: "number",
|
|
494
|
-
step: "0.01",
|
|
495
|
-
onChange: handlePropertyValueUpdate,
|
|
496
|
-
defaultValue: elementJSON.float_step
|
|
497
|
-
}
|
|
498
|
-
) }),
|
|
499
|
-
/* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(
|
|
500
|
-
FormControlLabel,
|
|
501
|
-
{
|
|
502
|
-
name: "is_negative",
|
|
503
|
-
control: /* @__PURE__ */ jsx(Checkbox, {}),
|
|
504
|
-
onChange: handlePropertyValueUpdate,
|
|
505
|
-
checked: elementJSON.is_negative || false,
|
|
506
|
-
label: "Allow Negative Numbers"
|
|
507
|
-
}
|
|
508
|
-
) })
|
|
509
|
-
] }),
|
|
510
|
-
field_type === "date" && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
511
|
-
/* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(
|
|
512
|
-
FormControlLabel,
|
|
513
|
-
{
|
|
514
|
-
name: "is_future_dates_allowed",
|
|
515
|
-
control: /* @__PURE__ */ jsx(Checkbox, {}),
|
|
516
|
-
onChange: handlePropertyValueUpdate,
|
|
517
|
-
checked: elementJSON.is_future_dates_allowed || false,
|
|
518
|
-
label: "Allow Future Dates"
|
|
519
|
-
}
|
|
520
|
-
) }),
|
|
521
|
-
/* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(
|
|
522
|
-
FormControlLabel,
|
|
523
|
-
{
|
|
524
|
-
name: "is_past_dates_allowed",
|
|
525
|
-
control: /* @__PURE__ */ jsx(Checkbox, {}),
|
|
526
|
-
onChange: handlePropertyValueUpdate,
|
|
527
|
-
checked: elementJSON.is_past_dates_allowed || false,
|
|
528
|
-
label: "Allow Past Dates"
|
|
529
|
-
}
|
|
530
|
-
) })
|
|
531
|
-
] }),
|
|
532
|
-
field_type !== "info" && /* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(
|
|
533
|
-
FormControlLabel,
|
|
534
|
-
{
|
|
535
|
-
name: "is_required",
|
|
536
|
-
control: /* @__PURE__ */ jsx(Checkbox, {}),
|
|
537
|
-
onChange: handlePropertyValueUpdate,
|
|
538
|
-
checked: elementJSON.is_required || false,
|
|
539
|
-
label: "This field is required"
|
|
540
|
-
}
|
|
541
|
-
) }),
|
|
542
|
-
field_type === "email" && /* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(
|
|
543
|
-
FormControlLabel,
|
|
544
|
-
{
|
|
545
|
-
name: "is_unique",
|
|
546
|
-
control: /* @__PURE__ */ jsx(Checkbox, {}),
|
|
547
|
-
onChange: handlePropertyValueUpdate,
|
|
548
|
-
checked: elementJSON.is_unique || false,
|
|
549
|
-
label: "Is Unique"
|
|
550
|
-
}
|
|
551
|
-
) }),
|
|
552
|
-
field_type === "text" && /* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(
|
|
553
|
-
FormControlLabel,
|
|
554
|
-
{
|
|
555
|
-
name: "is_multiline",
|
|
556
|
-
control: /* @__PURE__ */ jsx(Checkbox, {}),
|
|
557
|
-
onChange: handlePropertyValueUpdate,
|
|
558
|
-
checked: elementJSON.is_multiline || false,
|
|
559
|
-
label: "Is Multiline"
|
|
560
|
-
}
|
|
561
|
-
) }),
|
|
562
|
-
/* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(
|
|
563
|
-
FormControlLabel,
|
|
564
|
-
{
|
|
565
|
-
name: "is_fullwidth",
|
|
566
|
-
control: /* @__PURE__ */ jsx(Checkbox, {}),
|
|
567
|
-
onChange: handleFullWidthChange,
|
|
568
|
-
checked: elementJSON.is_fullwidth || false,
|
|
569
|
-
label: "Full Width"
|
|
570
|
-
}
|
|
571
|
-
) }),
|
|
572
|
-
field_type === "info" && /* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(
|
|
573
|
-
Button,
|
|
574
|
-
{
|
|
575
|
-
variant: "outlined",
|
|
576
|
-
startIcon: /* @__PURE__ */ jsx(Add, {}),
|
|
577
|
-
onClick: handleOpenModal,
|
|
578
|
-
className: "formSection--PreviewButton",
|
|
579
|
-
children: "Add Function"
|
|
580
|
-
}
|
|
581
|
-
) }),
|
|
582
|
-
/* @__PURE__ */ jsxs(Modal, { fullWidth: true, onClose: handleCloseModal, open: openModal, children: [
|
|
583
|
-
/* @__PURE__ */ jsxs(DialogTitle, { children: [
|
|
584
|
-
/* @__PURE__ */ jsx(Typography, { type: "s3", weight: "medium", color: "theme.secondary.1000", children: "Add Function" }),
|
|
585
|
-
/* @__PURE__ */ jsx(
|
|
586
|
-
IconButton,
|
|
587
|
-
{
|
|
588
|
-
edge: "end",
|
|
589
|
-
onClick: handleCloseModal,
|
|
590
|
-
size: "small",
|
|
591
|
-
children: /* @__PURE__ */ jsx(Close, { fontSize: "inherit" })
|
|
592
|
-
}
|
|
593
|
-
)
|
|
594
|
-
] }),
|
|
595
|
-
/* @__PURE__ */ jsxs(DialogContent, { dividers: true, children: [
|
|
596
|
-
/* @__PURE__ */ jsxs(Typography, { weight: "medium", type: "s3", color: "theme.secondary.700", sx: { mb: 2 }, children: [
|
|
597
|
-
"Label: ",
|
|
598
|
-
/* @__PURE__ */ jsx("span", { style: { color: "#1F2125" }, children: elementJSON.label })
|
|
599
|
-
] }),
|
|
600
|
-
/* @__PURE__ */ jsx(
|
|
601
|
-
TextField,
|
|
602
|
-
{
|
|
603
|
-
name: "default_value",
|
|
604
|
-
fullWidth: true,
|
|
605
|
-
placeholder: "Add a function",
|
|
606
|
-
multiline: true,
|
|
607
|
-
minRows: 4,
|
|
608
|
-
defaultValue: elementJSON.default_value,
|
|
609
|
-
onChange: handleFunctionValueChange,
|
|
610
|
-
value: functionValue
|
|
611
|
-
}
|
|
612
|
-
)
|
|
613
|
-
] }),
|
|
614
|
-
/* @__PURE__ */ jsxs(DialogActions, { children: [
|
|
615
|
-
/* @__PURE__ */ jsx(
|
|
616
|
-
Button,
|
|
617
|
-
{
|
|
618
|
-
variant: "outlined",
|
|
619
|
-
onClick: handleCloseModal,
|
|
620
|
-
style: { color: "black" },
|
|
621
|
-
children: "Cancel"
|
|
622
|
-
}
|
|
623
|
-
),
|
|
624
|
-
/* @__PURE__ */ jsx(Button, { onClick: () => handleSave(functionValue), children: "Save" })
|
|
625
|
-
] })
|
|
626
|
-
] })
|
|
627
|
-
] });
|
|
628
|
-
}
|
|
629
|
-
const COLUMN_PER_ROW_OPTIONS = [1, 2, 3, 4, 5, 6];
|
|
630
|
-
const SelectEditForm = React__default.memo(({
|
|
631
|
-
element,
|
|
632
|
-
handlePropertyValueUpdate,
|
|
633
|
-
handleSelectOptionValueUpdate,
|
|
634
|
-
handleColumnSelect,
|
|
635
|
-
handleWidthChange
|
|
636
|
-
}) => {
|
|
637
|
-
const [selectOptions, setSelectOptions] = useState(element.options || []);
|
|
638
|
-
const [newOption, setNewOption] = useState({ label: "", value: "" });
|
|
639
|
-
const [isAddingOption, setIsAddingOption] = useState(false);
|
|
640
|
-
useEffect(() => {
|
|
641
|
-
if (JSON.stringify(selectOptions) !== JSON.stringify(element.options || [])) {
|
|
642
|
-
setSelectOptions(element.options || []);
|
|
643
|
-
}
|
|
644
|
-
}, [element.options, selectOptions]);
|
|
645
|
-
const isFieldDisabled = useMemo(
|
|
646
|
-
() => element.type === "system" || !element.is_new,
|
|
647
|
-
[element.type, element.is_new]
|
|
648
|
-
);
|
|
649
|
-
const selectedOptionLabel = useMemo(() => {
|
|
650
|
-
const selectedOption = selectOptions.find((option) => option.value === element.default_value);
|
|
651
|
-
return (selectedOption == null ? void 0 : selectedOption.label) || "Select Default";
|
|
652
|
-
}, [selectOptions, element.default_value]);
|
|
653
|
-
const handleFieldUpdate = useCallback((e) => {
|
|
654
|
-
handlePropertyValueUpdate(null, null, null, e.target.value);
|
|
655
|
-
}, [handlePropertyValueUpdate]);
|
|
656
|
-
const handleSelectUpdate = useCallback((e) => {
|
|
657
|
-
handlePropertyValueUpdate(null, null, e.target.value);
|
|
658
|
-
}, [handlePropertyValueUpdate]);
|
|
659
|
-
const handleMultiSelect = useCallback((e) => {
|
|
660
|
-
const isChecked = e.target.checked;
|
|
661
|
-
isChecked ? null : element.default_value;
|
|
662
|
-
const syntheticEvent = {
|
|
663
|
-
target: {
|
|
664
|
-
name: "is_multiselect",
|
|
665
|
-
checked: isChecked,
|
|
666
|
-
value: isChecked
|
|
667
|
-
}
|
|
668
|
-
};
|
|
669
|
-
handlePropertyValueUpdate(syntheticEvent);
|
|
670
|
-
if (isChecked && element.default_value) {
|
|
671
|
-
handlePropertyValueUpdate(null, "default_value", null);
|
|
672
|
-
}
|
|
673
|
-
}, [handlePropertyValueUpdate, element.default_value]);
|
|
674
|
-
const handleNewOptionChange = useCallback((e) => {
|
|
675
|
-
const { name, value } = e.target;
|
|
676
|
-
setNewOption((prev) => ({ ...prev, [name]: value }));
|
|
677
|
-
}, []);
|
|
678
|
-
const handleAddOption = useCallback(() => {
|
|
679
|
-
if (!newOption.label.trim() || !newOption.value.trim()) {
|
|
680
|
-
return;
|
|
681
|
-
}
|
|
682
|
-
const isDuplicate = selectOptions.some(
|
|
683
|
-
(option) => option.value === newOption.value || option.label === newOption.label
|
|
684
|
-
);
|
|
685
|
-
if (isDuplicate) {
|
|
686
|
-
enqueueSnackbar("Option with this value or label already exists.", { variant: "error" });
|
|
687
|
-
return;
|
|
688
|
-
}
|
|
689
|
-
const updatedOptions = [...selectOptions, { ...newOption }];
|
|
690
|
-
setSelectOptions(updatedOptions);
|
|
691
|
-
handleSelectOptionValueUpdate(updatedOptions);
|
|
692
|
-
setNewOption({ label: "", value: "" });
|
|
693
|
-
setIsAddingOption(false);
|
|
694
|
-
}, [newOption, selectOptions, handleSelectOptionValueUpdate]);
|
|
695
|
-
const handleRemoveOption = useCallback((indexToRemove) => {
|
|
696
|
-
const updatedOptions = selectOptions.filter((_, index) => index !== indexToRemove);
|
|
697
|
-
setSelectOptions(updatedOptions);
|
|
698
|
-
handleSelectOptionValueUpdate(updatedOptions);
|
|
699
|
-
const removedOption = selectOptions[indexToRemove];
|
|
700
|
-
if (element.default_value === (removedOption == null ? void 0 : removedOption.value)) {
|
|
701
|
-
handlePropertyValueUpdate(null, "default_value", null);
|
|
702
|
-
}
|
|
703
|
-
}, [selectOptions, handleSelectOptionValueUpdate, element.default_value, handlePropertyValueUpdate]);
|
|
704
|
-
const handleWidthChangeCallback = useCallback((_, newValue) => {
|
|
705
|
-
handleWidthChange(newValue);
|
|
706
|
-
}, [handleWidthChange]);
|
|
707
|
-
return /* @__PURE__ */ jsxs(Box, { className: "formSection--FieldContainer", children: [
|
|
708
|
-
/* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(
|
|
709
|
-
FieldSelect,
|
|
710
|
-
{
|
|
711
|
-
variant: "outlined",
|
|
712
|
-
onChange: handleFieldUpdate,
|
|
713
|
-
defaultValue: element.field_type,
|
|
714
|
-
label: "Field Type",
|
|
715
|
-
disabled: isFieldDisabled
|
|
716
|
-
}
|
|
717
|
-
) }),
|
|
718
|
-
/* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(
|
|
719
|
-
TextField,
|
|
720
|
-
{
|
|
721
|
-
fullWidth: true,
|
|
722
|
-
label: "Label",
|
|
723
|
-
is_required: true,
|
|
724
|
-
name: "label",
|
|
725
|
-
type: "text",
|
|
726
|
-
onChange: handlePropertyValueUpdate,
|
|
727
|
-
defaultValue: element.label
|
|
728
|
-
}
|
|
729
|
-
) }),
|
|
730
|
-
/* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(
|
|
731
|
-
TextField,
|
|
732
|
-
{
|
|
733
|
-
fullWidth: true,
|
|
734
|
-
label: "Placeholder",
|
|
735
|
-
is_required: true,
|
|
736
|
-
name: "placeholder",
|
|
737
|
-
type: "text",
|
|
738
|
-
onChange: handlePropertyValueUpdate,
|
|
739
|
-
defaultValue: element.placeholder
|
|
740
|
-
}
|
|
741
|
-
) }),
|
|
742
|
-
/* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(
|
|
743
|
-
Select,
|
|
744
|
-
{
|
|
745
|
-
fullWidth: true,
|
|
746
|
-
placeholder: "Select Default",
|
|
747
|
-
size: "small",
|
|
748
|
-
name: "default_value",
|
|
749
|
-
onChange: handleSelectUpdate,
|
|
750
|
-
value: element.default_value || "",
|
|
751
|
-
label: "Default",
|
|
752
|
-
variant: "outlined",
|
|
753
|
-
disabled: element.is_multiselect,
|
|
754
|
-
renderValue: () => selectedOptionLabel,
|
|
755
|
-
children: selectOptions.map((option, index) => /* @__PURE__ */ jsx(MenuItem, { value: option.value, children: option.label }, `${option.value}-${index}`))
|
|
756
|
-
}
|
|
757
|
-
) }),
|
|
758
|
-
/* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(FormControl, { fullWidth: true, children: /* @__PURE__ */ jsx(
|
|
759
|
-
Select,
|
|
760
|
-
{
|
|
761
|
-
fullWidth: true,
|
|
762
|
-
placeholder: "Select Column Per Row",
|
|
763
|
-
size: "small",
|
|
764
|
-
onChange: handleColumnSelect,
|
|
765
|
-
label: "Select Column Per Row",
|
|
766
|
-
name: "columnPerRow",
|
|
767
|
-
variant: "outlined",
|
|
768
|
-
children: COLUMN_PER_ROW_OPTIONS.map((option) => /* @__PURE__ */ jsx(MenuItem, { value: option, children: option }, option))
|
|
769
|
-
}
|
|
770
|
-
) }) }),
|
|
771
|
-
/* @__PURE__ */ jsxs(Box, { children: [
|
|
772
|
-
/* @__PURE__ */ jsx(Typography, { sx: { color: "black", mb: 1 }, children: "Adjust Width:" }),
|
|
773
|
-
/* @__PURE__ */ jsx(Box, { pr: 2, children: /* @__PURE__ */ jsx(
|
|
774
|
-
Slider,
|
|
775
|
-
{
|
|
776
|
-
value: element.custom_width || 6,
|
|
777
|
-
min: 1,
|
|
778
|
-
max: 12,
|
|
779
|
-
step: 1,
|
|
780
|
-
onChange: handleWidthChangeCallback,
|
|
781
|
-
"aria-labelledby": "width-slider",
|
|
782
|
-
sx: { color: "#4AC08C" },
|
|
783
|
-
marks: true,
|
|
784
|
-
valueLabelDisplay: "auto"
|
|
785
|
-
}
|
|
786
|
-
) })
|
|
787
|
-
] }),
|
|
788
|
-
/* @__PURE__ */ jsxs(Box, { className: "formSection--SelectOption", children: [
|
|
789
|
-
/* @__PURE__ */ jsx(
|
|
790
|
-
Typography,
|
|
791
|
-
{
|
|
792
|
-
type: "s5",
|
|
793
|
-
weight: "medium",
|
|
794
|
-
color: "theme.secondary.800",
|
|
795
|
-
sx: { mb: 0.5 },
|
|
796
|
-
children: "Options"
|
|
797
|
-
}
|
|
798
|
-
),
|
|
799
|
-
selectOptions.map((option, index) => /* @__PURE__ */ jsxs(Box, { sx: { mb: 1, display: "flex", gap: 1 }, children: [
|
|
800
|
-
/* @__PURE__ */ jsx(
|
|
801
|
-
TextField,
|
|
802
|
-
{
|
|
803
|
-
fullWidth: true,
|
|
804
|
-
value: `${option.label} (${option.value})`,
|
|
805
|
-
InputProps: { readOnly: true }
|
|
806
|
-
}
|
|
807
|
-
),
|
|
808
|
-
/* @__PURE__ */ jsx(
|
|
809
|
-
IconButton,
|
|
810
|
-
{
|
|
811
|
-
color: "error",
|
|
812
|
-
size: "small",
|
|
813
|
-
onClick: () => handleRemoveOption(index),
|
|
814
|
-
children: /* @__PURE__ */ jsx(Trash, {})
|
|
815
|
-
}
|
|
816
|
-
)
|
|
817
|
-
] }, `option-${index}`)),
|
|
818
|
-
isAddingOption && /* @__PURE__ */ jsxs(Box, { className: "formSection--SelectOption", sx: { mt: 0.5, p: 2, border: "1px solid #ddd", borderRadius: 1 }, children: [
|
|
819
|
-
/* @__PURE__ */ jsx(Box, { sx: { mb: 2 }, children: /* @__PURE__ */ jsx(
|
|
820
|
-
TextField,
|
|
821
|
-
{
|
|
822
|
-
fullWidth: true,
|
|
823
|
-
label: "Option Label",
|
|
824
|
-
is_required: true,
|
|
825
|
-
name: "label",
|
|
826
|
-
type: "text",
|
|
827
|
-
placeholder: "Enter option label",
|
|
828
|
-
value: newOption.label,
|
|
829
|
-
onChange: handleNewOptionChange
|
|
830
|
-
}
|
|
831
|
-
) }),
|
|
832
|
-
/* @__PURE__ */ jsx(Box, { sx: { mb: 2 }, children: /* @__PURE__ */ jsx(
|
|
833
|
-
TextField,
|
|
834
|
-
{
|
|
835
|
-
fullWidth: true,
|
|
836
|
-
label: "Option Value",
|
|
837
|
-
placeholder: "Enter option value",
|
|
838
|
-
is_required: true,
|
|
839
|
-
name: "value",
|
|
840
|
-
type: "text",
|
|
841
|
-
value: newOption.value,
|
|
842
|
-
onChange: handleNewOptionChange
|
|
843
|
-
}
|
|
844
|
-
) }),
|
|
845
|
-
/* @__PURE__ */ jsxs(Box, { sx: { display: "flex", gap: 1 }, children: [
|
|
846
|
-
/* @__PURE__ */ jsx(
|
|
847
|
-
Button,
|
|
848
|
-
{
|
|
849
|
-
onClick: handleAddOption,
|
|
850
|
-
startIcon: /* @__PURE__ */ jsx(Add, {}),
|
|
851
|
-
disabled: !newOption.label.trim() || !newOption.value.trim(),
|
|
852
|
-
children: "Add Option"
|
|
853
|
-
}
|
|
854
|
-
),
|
|
855
|
-
/* @__PURE__ */ jsx(
|
|
856
|
-
Button,
|
|
857
|
-
{
|
|
858
|
-
onClick: () => {
|
|
859
|
-
setIsAddingOption(false);
|
|
860
|
-
setNewOption({ label: "", value: "" });
|
|
861
|
-
},
|
|
862
|
-
variant: "outlined",
|
|
863
|
-
children: "Cancel"
|
|
864
|
-
}
|
|
865
|
-
)
|
|
866
|
-
] })
|
|
867
|
-
] }),
|
|
868
|
-
!isAddingOption && /* @__PURE__ */ jsx(
|
|
869
|
-
Button,
|
|
870
|
-
{
|
|
871
|
-
onClick: () => setIsAddingOption(true),
|
|
872
|
-
variant: "outlined",
|
|
873
|
-
className: "formSection--Button",
|
|
874
|
-
startIcon: /* @__PURE__ */ jsx(Add, {}),
|
|
875
|
-
sx: { mt: 1 },
|
|
876
|
-
children: "Add Option"
|
|
877
|
-
}
|
|
878
|
-
)
|
|
879
|
-
] }),
|
|
880
|
-
/* @__PURE__ */ jsxs(Box, { sx: { display: "flex", flexDirection: "column", gap: 1 }, children: [
|
|
881
|
-
/* @__PURE__ */ jsx(
|
|
882
|
-
FormControlLabel,
|
|
883
|
-
{
|
|
884
|
-
name: "is_multiselect",
|
|
885
|
-
control: /* @__PURE__ */ jsx(Checkbox, {}),
|
|
886
|
-
onChange: handleMultiSelect,
|
|
887
|
-
checked: element.is_multiselect,
|
|
888
|
-
label: "Enable Multi Select"
|
|
889
|
-
}
|
|
890
|
-
),
|
|
891
|
-
/* @__PURE__ */ jsx(
|
|
892
|
-
FormControlLabel,
|
|
893
|
-
{
|
|
894
|
-
name: "is_required",
|
|
895
|
-
control: /* @__PURE__ */ jsx(Checkbox, {}),
|
|
896
|
-
onChange: handlePropertyValueUpdate,
|
|
897
|
-
checked: element.is_required,
|
|
898
|
-
label: "This field is required"
|
|
899
|
-
}
|
|
900
|
-
),
|
|
901
|
-
/* @__PURE__ */ jsx(
|
|
902
|
-
FormControlLabel,
|
|
903
|
-
{
|
|
904
|
-
name: "is_unique",
|
|
905
|
-
control: /* @__PURE__ */ jsx(Checkbox, {}),
|
|
906
|
-
onChange: handlePropertyValueUpdate,
|
|
907
|
-
checked: element.is_unique,
|
|
908
|
-
label: "Is Unique"
|
|
909
|
-
}
|
|
910
|
-
),
|
|
911
|
-
/* @__PURE__ */ jsx(
|
|
912
|
-
FormControlLabel,
|
|
913
|
-
{
|
|
914
|
-
name: "is_fullwidth",
|
|
915
|
-
control: /* @__PURE__ */ jsx(Checkbox, {}),
|
|
916
|
-
onChange: handlePropertyValueUpdate,
|
|
917
|
-
checked: element.is_fullwidth,
|
|
918
|
-
label: "Full Width"
|
|
919
|
-
}
|
|
920
|
-
)
|
|
921
|
-
] })
|
|
922
|
-
] });
|
|
923
|
-
});
|
|
924
|
-
SelectEditForm.displayName = "SelectEditForm";
|
|
925
|
-
const SectionEditForm = (props) => {
|
|
926
|
-
var _a;
|
|
927
|
-
const { handlePropertyValueUpdate } = props;
|
|
928
|
-
const [elementJSON, setElementJSON] = useState(props.element);
|
|
929
|
-
const [addForm, setAddForm] = useState(false);
|
|
930
|
-
const [newForm, setNewForm] = useState("");
|
|
931
|
-
const selectOption = ["section"];
|
|
932
|
-
const isDuplicateFormName = useMemo(
|
|
933
|
-
() => {
|
|
934
|
-
var _a2;
|
|
935
|
-
return (_a2 = elementJSON.switcher_forms) == null ? void 0 : _a2.map((ele) => ele.name).includes(newForm);
|
|
936
|
-
},
|
|
937
|
-
[elementJSON.switcher_forms, newForm]
|
|
938
|
-
);
|
|
939
|
-
useEffect(() => {
|
|
940
|
-
setElementJSON(props.element);
|
|
941
|
-
}, [props.element]);
|
|
942
|
-
return /* @__PURE__ */ jsxs(Box, { className: "formSection--FieldContainer", children: [
|
|
943
|
-
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
944
|
-
Select,
|
|
945
|
-
{
|
|
946
|
-
fullWidth: true,
|
|
947
|
-
placeholder: "Select Field",
|
|
948
|
-
size: "small",
|
|
949
|
-
disabled: true,
|
|
950
|
-
defaultValue: elementJSON.field_type,
|
|
951
|
-
label: "Field Type",
|
|
952
|
-
variant: "outlined",
|
|
953
|
-
children: selectOption == null ? void 0 : selectOption.map((item) => /* @__PURE__ */ jsx(MenuItem, { value: item, children: item }))
|
|
954
|
-
},
|
|
955
|
-
elementJSON.id
|
|
956
|
-
) }),
|
|
957
|
-
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
958
|
-
Select,
|
|
959
|
-
{
|
|
960
|
-
fullWidth: true,
|
|
961
|
-
placeholder: "Select Field",
|
|
962
|
-
size: "small",
|
|
963
|
-
name: "section_type",
|
|
964
|
-
defaultValue: elementJSON.section_type,
|
|
965
|
-
label: "Section Type",
|
|
966
|
-
variant: "outlined",
|
|
967
|
-
onChange: (e) => handlePropertyValueUpdate(e),
|
|
968
|
-
children: Object.values(SECTION_TYPES).map((type) => {
|
|
969
|
-
return /* @__PURE__ */ jsx(MenuItem, { value: type, children: type }, type);
|
|
970
|
-
})
|
|
971
|
-
},
|
|
972
|
-
elementJSON.id
|
|
973
|
-
) }),
|
|
974
|
-
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
975
|
-
TextField,
|
|
976
|
-
{
|
|
977
|
-
fullWidth: true,
|
|
978
|
-
label: "Label",
|
|
979
|
-
is_required: true,
|
|
980
|
-
name: "label",
|
|
981
|
-
type: "text",
|
|
982
|
-
onChange: handlePropertyValueUpdate,
|
|
983
|
-
defaultValue: elementJSON.label
|
|
984
|
-
},
|
|
985
|
-
elementJSON.id
|
|
986
|
-
) }),
|
|
987
|
-
/* @__PURE__ */ jsx(
|
|
988
|
-
FormControlLabel,
|
|
989
|
-
{
|
|
990
|
-
name: "is_accordion",
|
|
991
|
-
control: /* @__PURE__ */ jsx(Checkbox, {}),
|
|
992
|
-
onChange: handlePropertyValueUpdate,
|
|
993
|
-
checked: elementJSON.is_accordion,
|
|
994
|
-
label: "Is Accordion"
|
|
995
|
-
},
|
|
996
|
-
elementJSON.id
|
|
997
|
-
),
|
|
998
|
-
elementJSON.section_type === SECTION_TYPES.FORM_SWITCH_SECTION ? /* @__PURE__ */ jsxs("div", { className: "formSection--SubFieldContainer", children: [
|
|
999
|
-
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
1000
|
-
TextField,
|
|
1001
|
-
{
|
|
1002
|
-
fullWidth: true,
|
|
1003
|
-
label: "Form label",
|
|
1004
|
-
is_required: true,
|
|
1005
|
-
name: "form_switcher_label",
|
|
1006
|
-
type: "text",
|
|
1007
|
-
onChange: handlePropertyValueUpdate,
|
|
1008
|
-
defaultValue: elementJSON.form_switcher_label
|
|
1009
|
-
},
|
|
1010
|
-
elementJSON.id
|
|
1011
|
-
) }),
|
|
1012
|
-
/* @__PURE__ */ jsxs("div", { children: [
|
|
1013
|
-
/* @__PURE__ */ jsx(
|
|
1014
|
-
Typography,
|
|
1015
|
-
{
|
|
1016
|
-
type: "s5",
|
|
1017
|
-
weight: "medium",
|
|
1018
|
-
color: "theme.secondary.800",
|
|
1019
|
-
children: "Forms"
|
|
1020
|
-
}
|
|
1021
|
-
),
|
|
1022
|
-
(_a = elementJSON == null ? void 0 : elementJSON.switcher_forms) == null ? void 0 : _a.map(
|
|
1023
|
-
(ele) => /* @__PURE__ */ jsxs("div", { className: "formSection--MultiOptions", children: [
|
|
1024
|
-
/* @__PURE__ */ jsx(
|
|
1025
|
-
TextField,
|
|
1026
|
-
{
|
|
1027
|
-
fullWidth: true,
|
|
1028
|
-
value: ele.name,
|
|
1029
|
-
style: { marginBottom: "10px" },
|
|
1030
|
-
name: "switcher_forms",
|
|
1031
|
-
onChange: (e) => {
|
|
1032
|
-
var _a2;
|
|
1033
|
-
const newVal = (_a2 = elementJSON.switcher_forms) == null ? void 0 : _a2.map(
|
|
1034
|
-
(formEle) => ele.id === formEle.id ? { ...formEle, name: e.target.value } : { ...formEle }
|
|
1035
|
-
);
|
|
1036
|
-
handlePropertyValueUpdate(e, newVal);
|
|
1037
|
-
}
|
|
1038
|
-
},
|
|
1039
|
-
ele.id
|
|
1040
|
-
),
|
|
1041
|
-
/* @__PURE__ */ jsx(
|
|
1042
|
-
Close$1,
|
|
1043
|
-
{
|
|
1044
|
-
style: { fontSize: "1rem", color: "#656669" },
|
|
1045
|
-
onClick: (e) => {
|
|
1046
|
-
const newVal = [...elementJSON.switcher_forms].filter(
|
|
1047
|
-
(item) => item.id !== ele.id
|
|
1048
|
-
);
|
|
1049
|
-
e.target.name = "switcher_forms";
|
|
1050
|
-
handlePropertyValueUpdate(e, newVal);
|
|
1051
|
-
}
|
|
1052
|
-
}
|
|
1053
|
-
)
|
|
1054
|
-
] }, elementJSON.id)
|
|
1055
|
-
)
|
|
1056
|
-
] }),
|
|
1057
|
-
addForm ? /* @__PURE__ */ jsxs("div", { children: [
|
|
1058
|
-
/* @__PURE__ */ jsxs(
|
|
1059
|
-
"div",
|
|
1060
|
-
{
|
|
1061
|
-
className: "formSection--MultiOptions formSection--FullWidth",
|
|
1062
|
-
children: [
|
|
1063
|
-
/* @__PURE__ */ jsx("div", { className: "formSection--FullWidth", children: /* @__PURE__ */ jsx(
|
|
1064
|
-
TextField,
|
|
1065
|
-
{
|
|
1066
|
-
fullWidth: true,
|
|
1067
|
-
label: "Form section name",
|
|
1068
|
-
placeholder: "Form section name",
|
|
1069
|
-
is_required: true,
|
|
1070
|
-
type: "text",
|
|
1071
|
-
value: newForm,
|
|
1072
|
-
error: isDuplicateFormName,
|
|
1073
|
-
helperText: isDuplicateFormName ? "Form section name can not duplicate" : "",
|
|
1074
|
-
onChange: (e) => setNewForm(e.target.value)
|
|
1075
|
-
},
|
|
1076
|
-
elementJSON.id
|
|
1077
|
-
) }),
|
|
1078
|
-
/* @__PURE__ */ jsx(
|
|
1079
|
-
Close$1,
|
|
1080
|
-
{
|
|
1081
|
-
style: { fontSize: "1rem", color: "#656669" },
|
|
1082
|
-
onClick: () => {
|
|
1083
|
-
setAddForm(false);
|
|
1084
|
-
setNewForm("");
|
|
1085
|
-
}
|
|
1086
|
-
}
|
|
1087
|
-
)
|
|
1088
|
-
]
|
|
1089
|
-
},
|
|
1090
|
-
elementJSON.id
|
|
1091
|
-
),
|
|
1092
|
-
/* @__PURE__ */ jsx(
|
|
1093
|
-
Button,
|
|
1094
|
-
{
|
|
1095
|
-
onClick: (e) => {
|
|
1096
|
-
const { uniqueStringId: id } = generateRandomId();
|
|
1097
|
-
const newVal = [
|
|
1098
|
-
...elementJSON.switcher_forms,
|
|
1099
|
-
{ name: newForm, id }
|
|
1100
|
-
];
|
|
1101
|
-
handlePropertyValueUpdate(e, newVal);
|
|
1102
|
-
setNewForm("");
|
|
1103
|
-
setAddForm(false);
|
|
1104
|
-
},
|
|
1105
|
-
name: "switcher_forms",
|
|
1106
|
-
variant: "text",
|
|
1107
|
-
className: "formSection--Button",
|
|
1108
|
-
disabled: isDuplicateFormName || !newForm,
|
|
1109
|
-
startIcon: /* @__PURE__ */ jsx(Add, {}),
|
|
1110
|
-
children: "Add"
|
|
1111
|
-
}
|
|
1112
|
-
)
|
|
1113
|
-
] }) : null,
|
|
1114
|
-
!addForm ? /* @__PURE__ */ jsx(
|
|
1115
|
-
Button,
|
|
1116
|
-
{
|
|
1117
|
-
onClick: () => setAddForm(true),
|
|
1118
|
-
variant: "text",
|
|
1119
|
-
className: "formSection--Button",
|
|
1120
|
-
startIcon: /* @__PURE__ */ jsx(Add, {}),
|
|
1121
|
-
children: "Add forms"
|
|
1122
|
-
}
|
|
1123
|
-
) : null
|
|
1124
|
-
] }) : null
|
|
1125
|
-
] }, elementJSON.id);
|
|
1126
|
-
};
|
|
1127
|
-
function CheckboxEditForm(props) {
|
|
1128
|
-
const [isAddSelectOption, setAddSelectOption] = useState(false);
|
|
1129
|
-
const { handlePropertyValueUpdate, handleSelectOptionValueUpdate, handleColumnSelect, handleWidthChange } = props;
|
|
1130
|
-
const columnPerRowOptions = [1, 2, 3, 4, 5, 6];
|
|
1131
|
-
const [selectOptions, setSelectOptions] = useState(
|
|
1132
|
-
props.element.options || []
|
|
1133
|
-
);
|
|
1134
|
-
const [elementJSON, setElementJSON] = useState(props.element);
|
|
1135
|
-
const allowLabelPositionModification = elementJSON.field_type !== "radioButton";
|
|
1136
|
-
const [newOptions, setNewOptions] = useState({
|
|
1137
|
-
label: "",
|
|
1138
|
-
value: "",
|
|
1139
|
-
is_checked: false
|
|
1140
|
-
});
|
|
1141
|
-
const handleAddNewOption = (e) => {
|
|
1142
|
-
const label = e.target.name;
|
|
1143
|
-
const value = e.target.value;
|
|
1144
|
-
const option = { ...newOptions };
|
|
1145
|
-
option[label] = value;
|
|
1146
|
-
setNewOptions(option);
|
|
1147
|
-
};
|
|
1148
|
-
const handleFieldUpdate = (e) => {
|
|
1149
|
-
elementJSON.field_type = e.target.value;
|
|
1150
|
-
handlePropertyValueUpdate(null, null, null, e.target.value);
|
|
1151
|
-
};
|
|
1152
|
-
const handleSelectUpdate = (e) => {
|
|
1153
|
-
elementJSON.default_value = e.target.value;
|
|
1154
|
-
handlePropertyValueUpdate(null, null, e.target.value);
|
|
1155
|
-
};
|
|
1156
|
-
useEffect(() => {
|
|
1157
|
-
setElementJSON(props.element);
|
|
1158
|
-
setSelectOptions(props.element.options || []);
|
|
1159
|
-
}, [props.element]);
|
|
1160
|
-
useEffect(() => {
|
|
1161
|
-
setNewOptions({ label: "", value: "", is_checked: false });
|
|
1162
|
-
setAddSelectOption(false);
|
|
1163
|
-
handleSelectOptionValueUpdate(selectOptions);
|
|
1164
|
-
}, [selectOptions]);
|
|
1165
|
-
return /* @__PURE__ */ jsxs(Box, { className: "formSection--FieldContainer", children: [
|
|
1166
|
-
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
1167
|
-
FieldSelect,
|
|
1168
|
-
{
|
|
1169
|
-
variant: "outlined",
|
|
1170
|
-
onChange: handleFieldUpdate,
|
|
1171
|
-
defaultValue: elementJSON.field_type,
|
|
1172
|
-
label: "Field Type",
|
|
1173
|
-
disabled: elementJSON.type === "system" || !elementJSON.is_new
|
|
1174
|
-
},
|
|
1175
|
-
elementJSON.id
|
|
1176
|
-
) }, elementJSON.id),
|
|
1177
|
-
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
1178
|
-
TextField,
|
|
1179
|
-
{
|
|
1180
|
-
fullWidth: true,
|
|
1181
|
-
label: "Label",
|
|
1182
|
-
is_required: true,
|
|
1183
|
-
name: "label",
|
|
1184
|
-
type: "text",
|
|
1185
|
-
onChange: handlePropertyValueUpdate,
|
|
1186
|
-
defaultValue: elementJSON.label
|
|
1187
|
-
},
|
|
1188
|
-
elementJSON.id
|
|
1189
|
-
) }, elementJSON.id),
|
|
1190
|
-
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
1191
|
-
Select$1,
|
|
1192
|
-
{
|
|
1193
|
-
variant: "outlined",
|
|
1194
|
-
fullWidth: true,
|
|
1195
|
-
placeholder: "Select Default",
|
|
1196
|
-
size: "small",
|
|
1197
|
-
name: "options",
|
|
1198
|
-
onChange: () => handleSelectUpdate,
|
|
1199
|
-
defaultValue: elementJSON.default_value,
|
|
1200
|
-
label: "Default",
|
|
1201
|
-
disabled: !selectOptions.length,
|
|
1202
|
-
children: selectOptions == null ? void 0 : selectOptions.map((option, index) => /* @__PURE__ */ jsx(MenuItem, { value: option.value, children: option.label }, index))
|
|
1203
|
-
},
|
|
1204
|
-
elementJSON.id
|
|
1205
|
-
) }, elementJSON.id),
|
|
1206
|
-
/* @__PURE__ */ jsx(FormControl, { children: /* @__PURE__ */ jsx(
|
|
1207
|
-
Select$1,
|
|
1208
|
-
{
|
|
1209
|
-
fullWidth: true,
|
|
1210
|
-
placeholder: "Select Column Per Row",
|
|
1211
|
-
size: "small",
|
|
1212
|
-
onChange: handleColumnSelect,
|
|
1213
|
-
label: "Select Column Per Row",
|
|
1214
|
-
name: "option",
|
|
1215
|
-
variant: "outlined",
|
|
1216
|
-
children: columnPerRowOptions == null ? void 0 : columnPerRowOptions.map((option, index) => /* @__PURE__ */ jsx(MenuItem, { value: option, children: option }, index))
|
|
1217
|
-
},
|
|
1218
|
-
elementJSON.id
|
|
1219
|
-
) }),
|
|
1220
|
-
/* @__PURE__ */ jsxs(Box, { children: [
|
|
1221
|
-
/* @__PURE__ */ jsx(Typography, { sx: { color: "black" }, children: "Adjust Width:" }),
|
|
1222
|
-
/* @__PURE__ */ jsx(
|
|
1223
|
-
Slider,
|
|
1224
|
-
{
|
|
1225
|
-
value: elementJSON == null ? void 0 : elementJSON.custom_width,
|
|
1226
|
-
name: "custom_width",
|
|
1227
|
-
min: 1,
|
|
1228
|
-
max: 12,
|
|
1229
|
-
step: 1,
|
|
1230
|
-
onChange: (_, newValue) => handleWidthChange(newValue),
|
|
1231
|
-
"aria-labelledby": "width-slider",
|
|
1232
|
-
sx: { color: "#4AC08C" }
|
|
1233
|
-
}
|
|
1234
|
-
)
|
|
1235
|
-
] }),
|
|
1236
|
-
/* @__PURE__ */ jsxs("div", { className: "formSection--SelectOption", children: [
|
|
1237
|
-
/* @__PURE__ */ jsx(Typography, { type: "s5", weight: "medium", color: "theme.secondary.800", children: "Options" }),
|
|
1238
|
-
selectOptions.map((option, index) => /* @__PURE__ */ jsxs("div", { className: "formSection--MultiOptions", children: [
|
|
1239
|
-
/* @__PURE__ */ jsx(
|
|
1240
|
-
TextField,
|
|
1241
|
-
{
|
|
1242
|
-
fullWidth: true,
|
|
1243
|
-
value: `${option.label} (${option.value})`,
|
|
1244
|
-
InputProps: {
|
|
1245
|
-
readOnly: true
|
|
1246
|
-
}
|
|
1247
|
-
},
|
|
1248
|
-
index
|
|
1249
|
-
),
|
|
1250
|
-
/* @__PURE__ */ jsx(
|
|
1251
|
-
Close$1,
|
|
1252
|
-
{
|
|
1253
|
-
style: { fontSize: "1rem", color: "#656669" },
|
|
1254
|
-
onClick: () => {
|
|
1255
|
-
setSelectOptions([
|
|
1256
|
-
...selectOptions.filter(
|
|
1257
|
-
(_, filterIndex) => filterIndex !== index
|
|
1258
|
-
)
|
|
1259
|
-
]);
|
|
1260
|
-
}
|
|
1261
|
-
}
|
|
1262
|
-
)
|
|
1263
|
-
] }))
|
|
1264
|
-
] }),
|
|
1265
|
-
isAddSelectOption ? /* @__PURE__ */ jsxs("div", { className: "formSection--SelectOption", children: [
|
|
1266
|
-
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
1267
|
-
TextField,
|
|
1268
|
-
{
|
|
1269
|
-
fullWidth: true,
|
|
1270
|
-
label: "Label",
|
|
1271
|
-
is_required: true,
|
|
1272
|
-
name: "label",
|
|
1273
|
-
type: "text",
|
|
1274
|
-
placeholder: "Label",
|
|
1275
|
-
defaultValue: newOptions.label,
|
|
1276
|
-
onChange: handleAddNewOption
|
|
1277
|
-
}
|
|
1278
|
-
) }),
|
|
1279
|
-
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
1280
|
-
TextField,
|
|
1281
|
-
{
|
|
1282
|
-
fullWidth: true,
|
|
1283
|
-
label: "Value",
|
|
1284
|
-
placeholder: "Value",
|
|
1285
|
-
is_required: true,
|
|
1286
|
-
name: "value",
|
|
1287
|
-
type: "text",
|
|
1288
|
-
defaultValue: newOptions.value,
|
|
1289
|
-
onChange: handleAddNewOption
|
|
1290
|
-
}
|
|
1291
|
-
) }),
|
|
1292
|
-
/* @__PURE__ */ jsx(
|
|
1293
|
-
Button$1,
|
|
1294
|
-
{
|
|
1295
|
-
onClick: () => setSelectOptions([...selectOptions, { ...newOptions }]),
|
|
1296
|
-
disabled: !!selectOptions.find(
|
|
1297
|
-
(ele) => ele.value === newOptions.value
|
|
1298
|
-
),
|
|
1299
|
-
variant: "text",
|
|
1300
|
-
className: "formSection--Button",
|
|
1301
|
-
startIcon: /* @__PURE__ */ jsx(Add, {}),
|
|
1302
|
-
children: "Add"
|
|
1303
|
-
}
|
|
1304
|
-
)
|
|
1305
|
-
] }) : /* @__PURE__ */ jsx(
|
|
1306
|
-
Button$1,
|
|
1307
|
-
{
|
|
1308
|
-
onClick: () => setAddSelectOption(true),
|
|
1309
|
-
variant: "text",
|
|
1310
|
-
className: "formSection--Button",
|
|
1311
|
-
startIcon: /* @__PURE__ */ jsx(Add, {}),
|
|
1312
|
-
children: "Add Option"
|
|
1313
|
-
}
|
|
1314
|
-
),
|
|
1315
|
-
/* @__PURE__ */ jsxs(FormControl, { children: [
|
|
1316
|
-
/* @__PURE__ */ jsx(Typography, { type: "s4", color: "theme.secondary.800", children: "Display style" }),
|
|
1317
|
-
/* @__PURE__ */ jsxs(
|
|
1318
|
-
RadioGroup,
|
|
1319
|
-
{
|
|
1320
|
-
row: true,
|
|
1321
|
-
"aria-labelledby": "demo-radio-buttons-group-label",
|
|
1322
|
-
name: "display",
|
|
1323
|
-
onChange: handlePropertyValueUpdate,
|
|
1324
|
-
defaultValue: elementJSON.display,
|
|
1325
|
-
children: [
|
|
1326
|
-
/* @__PURE__ */ jsx(
|
|
1327
|
-
FormControlLabel,
|
|
1328
|
-
{
|
|
1329
|
-
value: "row",
|
|
1330
|
-
control: /* @__PURE__ */ jsx(Radio, { size: "small" }),
|
|
1331
|
-
label: "Row",
|
|
1332
|
-
slotProps: { typography: { variant: "body2" } }
|
|
1333
|
-
}
|
|
1334
|
-
),
|
|
1335
|
-
/* @__PURE__ */ jsx(
|
|
1336
|
-
FormControlLabel,
|
|
1337
|
-
{
|
|
1338
|
-
value: "column",
|
|
1339
|
-
control: /* @__PURE__ */ jsx(Radio, { size: "small" }),
|
|
1340
|
-
label: "Column",
|
|
1341
|
-
slotProps: { typography: { variant: "body2" } }
|
|
1342
|
-
}
|
|
1343
|
-
)
|
|
1344
|
-
]
|
|
1345
|
-
},
|
|
1346
|
-
elementJSON.id
|
|
1347
|
-
)
|
|
1348
|
-
] }),
|
|
1349
|
-
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
1350
|
-
TextField,
|
|
1351
|
-
{
|
|
1352
|
-
fullWidth: true,
|
|
1353
|
-
label: "Title",
|
|
1354
|
-
is_required: true,
|
|
1355
|
-
name: "title",
|
|
1356
|
-
type: "text",
|
|
1357
|
-
onChange: handlePropertyValueUpdate,
|
|
1358
|
-
defaultValue: elementJSON.title
|
|
1359
|
-
},
|
|
1360
|
-
elementJSON.id
|
|
1361
|
-
) }, elementJSON.id),
|
|
1362
|
-
/* @__PURE__ */ jsxs(FormControl, { disabled: !allowLabelPositionModification, children: [
|
|
1363
|
-
/* @__PURE__ */ jsx(Typography, { type: "s4", color: "theme.secondary.800", children: "Title Position" }),
|
|
1364
|
-
/* @__PURE__ */ jsxs(
|
|
1365
|
-
RadioGroup,
|
|
1366
|
-
{
|
|
1367
|
-
row: true,
|
|
1368
|
-
"aria-labelledby": "demo-radio-buttons-group-label",
|
|
1369
|
-
name: "title_position",
|
|
1370
|
-
onChange: handlePropertyValueUpdate,
|
|
1371
|
-
defaultValue: allowLabelPositionModification ? "end" : "",
|
|
1372
|
-
children: [
|
|
1373
|
-
/* @__PURE__ */ jsx(
|
|
1374
|
-
FormControlLabel,
|
|
1375
|
-
{
|
|
1376
|
-
value: "start",
|
|
1377
|
-
control: /* @__PURE__ */ jsx(Radio, { size: "small" }),
|
|
1378
|
-
label: "Start",
|
|
1379
|
-
slotProps: { typography: { variant: "body2" } }
|
|
1380
|
-
}
|
|
1381
|
-
),
|
|
1382
|
-
/* @__PURE__ */ jsx(
|
|
1383
|
-
FormControlLabel,
|
|
1384
|
-
{
|
|
1385
|
-
value: "end",
|
|
1386
|
-
control: /* @__PURE__ */ jsx(Radio, { size: "small" }),
|
|
1387
|
-
label: "End",
|
|
1388
|
-
slotProps: { typography: { variant: "body2" } }
|
|
1389
|
-
}
|
|
1390
|
-
)
|
|
1391
|
-
]
|
|
1392
|
-
},
|
|
1393
|
-
elementJSON.id
|
|
1394
|
-
)
|
|
1395
|
-
] }),
|
|
1396
|
-
/* @__PURE__ */ jsx(
|
|
1397
|
-
FormControlLabel,
|
|
1398
|
-
{
|
|
1399
|
-
name: "is_required",
|
|
1400
|
-
control: /* @__PURE__ */ jsx(Checkbox, {}),
|
|
1401
|
-
onChange: handlePropertyValueUpdate,
|
|
1402
|
-
checked: elementJSON.is_required,
|
|
1403
|
-
label: "This field is required"
|
|
1404
|
-
},
|
|
1405
|
-
elementJSON.id
|
|
1406
|
-
),
|
|
1407
|
-
/* @__PURE__ */ jsx(
|
|
1408
|
-
FormControlLabel,
|
|
1409
|
-
{
|
|
1410
|
-
name: "is_unique",
|
|
1411
|
-
control: /* @__PURE__ */ jsx(Checkbox, {}),
|
|
1412
|
-
onChange: handlePropertyValueUpdate,
|
|
1413
|
-
checked: elementJSON.is_unique,
|
|
1414
|
-
label: "Is Unique"
|
|
1415
|
-
},
|
|
1416
|
-
elementJSON.id
|
|
1417
|
-
),
|
|
1418
|
-
/* @__PURE__ */ jsx(
|
|
1419
|
-
FormControlLabel,
|
|
1420
|
-
{
|
|
1421
|
-
name: "is_fullwidth",
|
|
1422
|
-
control: /* @__PURE__ */ jsx(Checkbox, {}),
|
|
1423
|
-
onChange: handlePropertyValueUpdate,
|
|
1424
|
-
checked: elementJSON == null ? void 0 : elementJSON.is_fullwidth,
|
|
1425
|
-
label: "Full Width "
|
|
1426
|
-
},
|
|
1427
|
-
elementJSON.id
|
|
1428
|
-
)
|
|
1429
|
-
] }, elementJSON.id);
|
|
1430
|
-
}
|
|
1431
|
-
const TableEditForm = ({
|
|
1432
|
-
handlePropertyValueUpdate,
|
|
1433
|
-
element,
|
|
1434
|
-
handleColumnsUpdate,
|
|
1435
|
-
fields: fields2
|
|
1436
|
-
}) => {
|
|
1437
|
-
const [elementJSON, setElementJSON] = useState(element);
|
|
1438
|
-
const [tables, setTables] = useState([]);
|
|
1439
|
-
const handleFieldUpdate = (event) => {
|
|
1440
|
-
if (elementJSON) {
|
|
1441
|
-
elementJSON.field_type = event.target.value;
|
|
1442
|
-
handlePropertyValueUpdate(null, null, null, event.target.value);
|
|
1443
|
-
}
|
|
1444
|
-
};
|
|
1445
|
-
const handleTableSelect = (event) => {
|
|
1446
|
-
handlePropertyValueUpdate(event);
|
|
1447
|
-
};
|
|
1448
|
-
useEffect(() => {
|
|
1449
|
-
setElementJSON(element);
|
|
1450
|
-
}, [element]);
|
|
1451
|
-
useEffect(() => {
|
|
1452
|
-
if (elementJSON && elementJSON.table && fields2) {
|
|
1453
|
-
const fieldsArr = fields2[elementJSON.table];
|
|
1454
|
-
let columns = [];
|
|
1455
|
-
if (fieldsArr && (fieldsArr == null ? void 0 : fieldsArr.length)) {
|
|
1456
|
-
columns = fieldsArr.map((field, index) => ({
|
|
1457
|
-
header: formatText(field.field),
|
|
1458
|
-
accessorKey: field.field,
|
|
1459
|
-
visible: index > 3 ? false : true,
|
|
1460
|
-
type: field.type
|
|
1461
|
-
}));
|
|
1462
|
-
} else {
|
|
1463
|
-
columns = [
|
|
1464
|
-
{ header: "Column 1", accessorKey: "column_1", visible: true },
|
|
1465
|
-
{ header: "Column 2", accessorKey: "column_1", visible: true }
|
|
1466
|
-
];
|
|
1467
|
-
}
|
|
1468
|
-
columns && handleColumnsUpdate(columns);
|
|
1469
|
-
}
|
|
1470
|
-
}, [elementJSON == null ? void 0 : elementJSON.table]);
|
|
1471
|
-
useEffect(() => {
|
|
1472
|
-
if (fields2) {
|
|
1473
|
-
const options = Object.keys(fields2).map((key) => ({
|
|
1474
|
-
label: formatText(key),
|
|
1475
|
-
value: key
|
|
1476
|
-
}));
|
|
1477
|
-
setTables(options);
|
|
1478
|
-
}
|
|
1479
|
-
}, [fields2]);
|
|
1480
|
-
if (!elementJSON) {
|
|
1481
|
-
return null;
|
|
1482
|
-
}
|
|
1483
|
-
return /* @__PURE__ */ jsxs(Box, { className: "formSection--FieldContainer", children: [
|
|
1484
|
-
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
1485
|
-
FieldSelect,
|
|
1486
|
-
{
|
|
1487
|
-
variant: "outlined",
|
|
1488
|
-
onChange: handleFieldUpdate,
|
|
1489
|
-
defaultValue: elementJSON.field_type,
|
|
1490
|
-
disabled: elementJSON.type === "system" || !elementJSON.is_new
|
|
1491
|
-
},
|
|
1492
|
-
elementJSON.id
|
|
1493
|
-
) }, elementJSON.id),
|
|
1494
|
-
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
1495
|
-
TextField,
|
|
1496
|
-
{
|
|
1497
|
-
fullWidth: true,
|
|
1498
|
-
label: "Label",
|
|
1499
|
-
is_required: true,
|
|
1500
|
-
name: "label",
|
|
1501
|
-
type: "text",
|
|
1502
|
-
onChange: handlePropertyValueUpdate,
|
|
1503
|
-
defaultValue: elementJSON.label
|
|
1504
|
-
},
|
|
1505
|
-
elementJSON.id
|
|
1506
|
-
) }, elementJSON.id),
|
|
1507
|
-
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
1508
|
-
Select,
|
|
1509
|
-
{
|
|
1510
|
-
variant: "outlined",
|
|
1511
|
-
label: "Table",
|
|
1512
|
-
fullWidth: true,
|
|
1513
|
-
placeholder: "Select Table",
|
|
1514
|
-
size: "small",
|
|
1515
|
-
name: "table",
|
|
1516
|
-
defaultValue: elementJSON.table,
|
|
1517
|
-
disabled: elementJSON.type === "system",
|
|
1518
|
-
onChange: handleTableSelect,
|
|
1519
|
-
renderValue: (value) => {
|
|
1520
|
-
var _a;
|
|
1521
|
-
return (_a = tables.find((option) => option.value === value)) == null ? void 0 : _a.label;
|
|
1522
|
-
},
|
|
1523
|
-
children: tables == null ? void 0 : tables.map((item) => /* @__PURE__ */ jsx(MenuItem, { value: item.value, children: item.label }))
|
|
1524
|
-
},
|
|
1525
|
-
elementJSON.id
|
|
1526
|
-
) }, elementJSON.id)
|
|
1527
|
-
] }, elementJSON.id);
|
|
1528
|
-
};
|
|
1529
|
-
export {
|
|
1530
|
-
CheckboxEditForm as C,
|
|
1531
|
-
FieldSelect as F,
|
|
1532
|
-
SectionEditForm as S,
|
|
1533
|
-
TableEditForm as T,
|
|
1534
|
-
SelectEditForm as a,
|
|
1535
|
-
TextEditForm as b
|
|
1536
|
-
};
|
|
1537
|
-
//# sourceMappingURL=table-form-lDShKPGv.esm.js.map
|