@erpsquad/common 1.11.16 → 1.11.17
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-Clmcka3j.esm.js → DonutChart-CHkg2-Cf.esm.js} +2 -2
- package/dist/chunks/DonutChart-CHkg2-Cf.esm.js.map +1 -0
- package/dist/chunks/{DonutChart-C2Ery9_3.js → DonutChart-DuGeMCfp.js} +2 -2
- package/dist/chunks/DonutChart-DuGeMCfp.js.map +1 -0
- package/dist/chunks/{DynamicDependentField-7j5lYjYS.esm.js → DynamicDependentField-Ce-tAozi.esm.js} +2 -2
- package/dist/chunks/{DynamicDependentField-7j5lYjYS.esm.js.map → DynamicDependentField-Ce-tAozi.esm.js.map} +1 -1
- package/dist/chunks/{DynamicDependentField-9tfGvafJ.js → DynamicDependentField-GxrZyitN.js} +2 -2
- package/dist/chunks/{DynamicDependentField-9tfGvafJ.js.map → DynamicDependentField-GxrZyitN.js.map} +1 -1
- package/dist/chunks/{FORMS-BeMUVgtO.esm.js → FORMS-DIIdCyMC.esm.js} +4 -4
- package/dist/chunks/{FORMS-BeMUVgtO.esm.js.map → FORMS-DIIdCyMC.esm.js.map} +1 -1
- package/dist/chunks/{FORMS-CYZK-5U9.js → FORMS-TZ1wVVqW.js} +4 -4
- package/dist/chunks/{FORMS-CYZK-5U9.js.map → FORMS-TZ1wVVqW.js.map} +1 -1
- package/dist/chunks/{FlexibleReduxExample-CTua_rNa.esm.js → FlexibleReduxExample-Ddtd9APA.esm.js} +2 -2
- package/dist/chunks/{FlexibleReduxExample-CTua_rNa.esm.js.map → FlexibleReduxExample-Ddtd9APA.esm.js.map} +1 -1
- package/dist/chunks/{FlexibleReduxExample-n0KdDqdq.js → FlexibleReduxExample-DxKowu6j.js} +2 -2
- package/dist/chunks/{FlexibleReduxExample-n0KdDqdq.js.map → FlexibleReduxExample-DxKowu6j.js.map} +1 -1
- package/dist/chunks/{SectionFlowEditor-RCxuKsJo.esm.js → SectionFlowEditor-C5r-vlgM.esm.js} +2 -2
- package/dist/chunks/{SectionFlowEditor-RCxuKsJo.esm.js.map → SectionFlowEditor-C5r-vlgM.esm.js.map} +1 -1
- package/dist/chunks/{SectionFlowEditor-o0p5yhb0.js → SectionFlowEditor-a_CuPldq.js} +2 -2
- package/dist/chunks/{SectionFlowEditor-o0p5yhb0.js.map → SectionFlowEditor-a_CuPldq.js.map} +1 -1
- package/dist/chunks/{action-bar-CrLZCE20.js → action-bar-CVCsL_Wi.js} +2 -2
- package/dist/chunks/{action-bar-CrLZCE20.js.map → action-bar-CVCsL_Wi.js.map} +1 -1
- package/dist/chunks/{action-bar-aLoXgWIu.esm.js → action-bar-DWWV-bmH.esm.js} +2 -2
- package/dist/chunks/{action-bar-aLoXgWIu.esm.js.map → action-bar-DWWV-bmH.esm.js.map} +1 -1
- package/dist/chunks/{add-template-CbpyJG9n.esm.js → add-template-COet2MkE.esm.js} +2 -2
- package/dist/chunks/{add-template-CbpyJG9n.esm.js.map → add-template-COet2MkE.esm.js.map} +1 -1
- package/dist/chunks/{add-template-DCP8fhmm.js → add-template-vWz44K_U.js} +2 -2
- package/dist/chunks/{add-template-DCP8fhmm.js.map → add-template-vWz44K_U.js.map} +1 -1
- package/dist/chunks/{address-modal-D06eu6_D.esm.js → address-modal-CtXfz5zW.esm.js} +2 -2
- package/dist/chunks/{address-modal-D06eu6_D.esm.js.map → address-modal-CtXfz5zW.esm.js.map} +1 -1
- package/dist/chunks/{address-modal-CVGxqSI1.js → address-modal-ktRvgOII.js} +2 -2
- package/dist/chunks/{address-modal-CVGxqSI1.js.map → address-modal-ktRvgOII.js.map} +1 -1
- package/dist/chunks/{calculation-summary-Df2Yofs9.esm.js → calculation-summary-BhWssEJP.esm.js} +23 -15
- package/dist/chunks/calculation-summary-BhWssEJP.esm.js.map +1 -0
- package/dist/chunks/{calculation-summary-h8yqJbXT.js → calculation-summary-DdAaSwoG.js} +22 -14
- package/dist/chunks/calculation-summary-DdAaSwoG.js.map +1 -0
- package/dist/chunks/{common-utility-DsLPDj_x.esm.js → common-utility-CysFHPFF.esm.js} +3 -3
- package/dist/chunks/{common-utility-DsLPDj_x.esm.js.map → common-utility-CysFHPFF.esm.js.map} +1 -1
- package/dist/chunks/{common-utility-CB2GeM7s.js → common-utility-halGH0bB.js} +3 -3
- package/dist/chunks/{common-utility-CB2GeM7s.js.map → common-utility-halGH0bB.js.map} +1 -1
- package/dist/chunks/{custom-form-DLauBlOi.esm.js → custom-form-Ckf-Uxt0.esm.js} +3 -3
- package/dist/chunks/{custom-form-DLauBlOi.esm.js.map → custom-form-Ckf-Uxt0.esm.js.map} +1 -1
- package/dist/chunks/{custom-form-BsFuKa_i.js → custom-form-Cww9Lf-K.js} +3 -3
- package/dist/chunks/{custom-form-BsFuKa_i.js.map → custom-form-Cww9Lf-K.js.map} +1 -1
- package/dist/chunks/{document-preview-CeP63tE-.esm.js → document-preview-CVd96q6J.esm.js} +2 -2
- package/dist/chunks/{document-preview-CeP63tE-.esm.js.map → document-preview-CVd96q6J.esm.js.map} +1 -1
- package/dist/chunks/{document-preview-L4uj-kbX.js → document-preview-DZmlu28z.js} +2 -2
- package/dist/chunks/{document-preview-L4uj-kbX.js.map → document-preview-DZmlu28z.js.map} +1 -1
- package/dist/chunks/{dynamic-report-0U6-W0yq.esm.js → dynamic-report-BdAzlPCv.esm.js} +3 -3
- package/dist/chunks/{dynamic-report-0U6-W0yq.esm.js.map → dynamic-report-BdAzlPCv.esm.js.map} +1 -1
- package/dist/chunks/{dynamic-report-CGjXv1Yt.js → dynamic-report-BkeyWzPl.js} +3 -3
- package/dist/chunks/{dynamic-report-CGjXv1Yt.js.map → dynamic-report-BkeyWzPl.js.map} +1 -1
- package/dist/chunks/{dynamic-rows-QHSiECC3.js → dynamic-rows-BnpKGjfs.js} +2 -2
- package/dist/chunks/{dynamic-rows-QHSiECC3.js.map → dynamic-rows-BnpKGjfs.js.map} +1 -1
- package/dist/chunks/{dynamic-rows-DAVePe1K.esm.js → dynamic-rows-CizgZUSq.esm.js} +2 -2
- package/dist/chunks/{dynamic-rows-DAVePe1K.esm.js.map → dynamic-rows-CizgZUSq.esm.js.map} +1 -1
- package/dist/chunks/{filter-DFBU8pOw.js → filter-EI4YDeHb.js} +2 -2
- package/dist/chunks/{filter-DFBU8pOw.js.map → filter-EI4YDeHb.js.map} +1 -1
- package/dist/chunks/{filter-v5anQqdt.esm.js → filter-YrnAj1Sd.esm.js} +2 -2
- package/dist/chunks/{filter-v5anQqdt.esm.js.map → filter-YrnAj1Sd.esm.js.map} +1 -1
- package/dist/chunks/{footer-B5xhsCTA.js → footer-BOTb5Pdt.js} +2 -2
- package/dist/chunks/{footer-B5xhsCTA.js.map → footer-BOTb5Pdt.js.map} +1 -1
- package/dist/chunks/{footer-4CWFuV7L.esm.js → footer-xVA6bWdK.esm.js} +2 -2
- package/dist/chunks/{footer-4CWFuV7L.esm.js.map → footer-xVA6bWdK.esm.js.map} +1 -1
- package/dist/chunks/{form-fields-B7uOVxte.esm.js → form-fields-BZ4e0SWE.esm.js} +3 -3
- package/dist/chunks/{form-fields-B7uOVxte.esm.js.map → form-fields-BZ4e0SWE.esm.js.map} +1 -1
- package/dist/chunks/{form-fields-DLy8RmW8.js → form-fields-CThlEoKG.js} +3 -3
- package/dist/chunks/{form-fields-DLy8RmW8.js.map → form-fields-CThlEoKG.js.map} +1 -1
- package/dist/chunks/{form-parser-CN8iTuiy.esm.js → form-parser-BXrJJarh.esm.js} +2 -2
- package/dist/chunks/{form-parser-CN8iTuiy.esm.js.map → form-parser-BXrJJarh.esm.js.map} +1 -1
- package/dist/chunks/{form-parser-rEOkVkGf.js → form-parser-qkmrpjcS.js} +2 -2
- package/dist/chunks/{form-parser-rEOkVkGf.js.map → form-parser-qkmrpjcS.js.map} +1 -1
- package/dist/chunks/{form-section-DUap8zt0.esm.js → form-section-B99Eyti4.esm.js} +6 -6
- package/dist/chunks/{form-section-DUap8zt0.esm.js.map → form-section-B99Eyti4.esm.js.map} +1 -1
- package/dist/chunks/{form-section-D0dezEYJ.js → form-section-D0XR4X1M.js} +6 -6
- package/dist/chunks/{form-section-D0dezEYJ.js.map → form-section-D0XR4X1M.js.map} +1 -1
- package/dist/chunks/{inline-edit-fields-BKY-Ydnz.esm.js → inline-edit-fields-ApzKssmB.esm.js} +3 -3
- package/dist/chunks/{inline-edit-fields-BKY-Ydnz.esm.js.map → inline-edit-fields-ApzKssmB.esm.js.map} +1 -1
- package/dist/chunks/{inline-edit-fields-B8wvbE8F.js → inline-edit-fields-DPDi7qw9.js} +3 -3
- package/dist/chunks/{inline-edit-fields-B8wvbE8F.js.map → inline-edit-fields-DPDi7qw9.js.map} +1 -1
- package/dist/chunks/{inventory-reports-title-bar-GIJ2Gnhy.esm.js → inventory-reports-title-bar-DXV2qmaX.esm.js} +2 -2
- package/dist/chunks/{inventory-reports-title-bar-GIJ2Gnhy.esm.js.map → inventory-reports-title-bar-DXV2qmaX.esm.js.map} +1 -1
- package/dist/chunks/{inventory-reports-title-bar-BFBCwbDQ.js → inventory-reports-title-bar-Dx64_rth.js} +2 -2
- package/dist/chunks/{inventory-reports-title-bar-BFBCwbDQ.js.map → inventory-reports-title-bar-Dx64_rth.js.map} +1 -1
- package/dist/chunks/{item-response-details-ydnNXYiu.js → item-response-details-9Z-5mQjo.js} +3 -3
- package/dist/chunks/{item-response-details-ydnNXYiu.js.map → item-response-details-9Z-5mQjo.js.map} +1 -1
- package/dist/chunks/{item-response-details-CeJJmkPE.esm.js → item-response-details-ndQUEzoJ.esm.js} +3 -3
- package/dist/chunks/{item-response-details-CeJJmkPE.esm.js.map → item-response-details-ndQUEzoJ.esm.js.map} +1 -1
- package/dist/chunks/{listing-BXnAfgrz.js → listing-CwEZ3lwA.js} +4 -4
- package/dist/chunks/{listing-BXnAfgrz.js.map → listing-CwEZ3lwA.js.map} +1 -1
- package/dist/chunks/{listing-DWEuyGoa.esm.js → listing-gUMIDc0g.esm.js} +4 -4
- package/dist/chunks/{listing-DWEuyGoa.esm.js.map → listing-gUMIDc0g.esm.js.map} +1 -1
- package/dist/chunks/{location-select-69R1vU2l.js → location-select-B7eqyJIA.js} +2 -2
- package/dist/chunks/{location-select-69R1vU2l.js.map → location-select-B7eqyJIA.js.map} +1 -1
- package/dist/chunks/{location-select-CU1ZnpZV.esm.js → location-select-C1QJTCjJ.esm.js} +2 -2
- package/dist/chunks/{location-select-CU1ZnpZV.esm.js.map → location-select-C1QJTCjJ.esm.js.map} +1 -1
- package/dist/chunks/{material-editable-table-CFNPlmms.js → material-editable-table-CeEvqXDR.js} +2 -2
- package/dist/chunks/{material-editable-table-CFNPlmms.js.map → material-editable-table-CeEvqXDR.js.map} +1 -1
- package/dist/chunks/{material-editable-table-DYt2CbyW.esm.js → material-editable-table-DhnSjDIg.esm.js} +2 -2
- package/dist/chunks/{material-editable-table-DYt2CbyW.esm.js.map → material-editable-table-DhnSjDIg.esm.js.map} +1 -1
- package/dist/chunks/{media-D-ytT_Dz.js → media-BYslCf-G.js} +2 -2
- package/dist/chunks/{media-D-ytT_Dz.js.map → media-BYslCf-G.js.map} +1 -1
- package/dist/chunks/{media-Bba1HXPh.esm.js → media-DaNPnyN6.esm.js} +2 -2
- package/dist/chunks/{media-Bba1HXPh.esm.js.map → media-DaNPnyN6.esm.js.map} +1 -1
- package/dist/chunks/{page-action-CLNehJNq.js → page-action-D67uQos2.js} +2 -2
- package/dist/chunks/{page-action-CLNehJNq.js.map → page-action-D67uQos2.js.map} +1 -1
- package/dist/chunks/{page-action-DUBerP2H.esm.js → page-action-DeMlK7_Z.esm.js} +2 -2
- package/dist/chunks/{page-action-DUBerP2H.esm.js.map → page-action-DeMlK7_Z.esm.js.map} +1 -1
- package/dist/chunks/{page-navigator-waxCJJmN.esm.js → page-navigator-C1qeuTog.esm.js} +2 -2
- package/dist/chunks/{page-navigator-waxCJJmN.esm.js.map → page-navigator-C1qeuTog.esm.js.map} +1 -1
- package/dist/chunks/{page-navigator-Bi_JaWgl.js → page-navigator-GrvwmXFK.js} +2 -2
- package/dist/chunks/{page-navigator-Bi_JaWgl.js.map → page-navigator-GrvwmXFK.js.map} +1 -1
- package/dist/chunks/{page-view-CjiFgqLO.esm.js → page-view--2l4UyP3.esm.js} +3 -3
- package/dist/chunks/{page-view-CjiFgqLO.esm.js.map → page-view--2l4UyP3.esm.js.map} +1 -1
- package/dist/chunks/{page-view-BbWefmnS.js → page-view-BIVX9MW-.js} +3 -3
- package/dist/chunks/{page-view-BbWefmnS.js.map → page-view-BIVX9MW-.js.map} +1 -1
- package/dist/chunks/{reports-title-bar-BNp8lafg.js → reports-title-bar-QcRrO034.js} +2 -2
- package/dist/chunks/{reports-title-bar-BNp8lafg.js.map → reports-title-bar-QcRrO034.js.map} +1 -1
- package/dist/chunks/{reports-title-bar-DkQ7PL2f.esm.js → reports-title-bar-bjxQMPf0.esm.js} +2 -2
- package/dist/chunks/{reports-title-bar-DkQ7PL2f.esm.js.map → reports-title-bar-bjxQMPf0.esm.js.map} +1 -1
- package/dist/chunks/{routes-BvISTF8K.esm.js → routes-CHNGwv8o.esm.js} +3 -3
- package/dist/chunks/{routes-BvISTF8K.esm.js.map → routes-CHNGwv8o.esm.js.map} +1 -1
- package/dist/chunks/{routes-6gnAlgr1.js → routes-DchFzWUK.js} +3 -3
- package/dist/chunks/{routes-6gnAlgr1.js.map → routes-DchFzWUK.js.map} +1 -1
- package/dist/chunks/{schedule-report-kvsrUlaM.esm.js → schedule-report-BRq7YE4S.esm.js} +5 -5
- package/dist/chunks/{schedule-report-kvsrUlaM.esm.js.map → schedule-report-BRq7YE4S.esm.js.map} +1 -1
- package/dist/chunks/{schedule-report-CasHNN5c.js → schedule-report-DjPOCvGV.js} +5 -5
- package/dist/chunks/{schedule-report-CasHNN5c.js.map → schedule-report-DjPOCvGV.js.map} +1 -1
- package/dist/chunks/{schedule-report-modal-CSZ1elPT.esm.js → schedule-report-modal-DIwG6Q5L.esm.js} +2 -2
- package/dist/chunks/{schedule-report-modal-CSZ1elPT.esm.js.map → schedule-report-modal-DIwG6Q5L.esm.js.map} +1 -1
- package/dist/chunks/{schedule-report-modal-DkS0FiSP.js → schedule-report-modal-DuDutCZ2.js} +2 -2
- package/dist/chunks/{schedule-report-modal-DkS0FiSP.js.map → schedule-report-modal-DuDutCZ2.js.map} +1 -1
- package/dist/chunks/{searchable-select-DGHm_BXN.esm.js → searchable-select-BE6x02Y2.esm.js} +3 -3
- package/dist/chunks/{searchable-select-DGHm_BXN.esm.js.map → searchable-select-BE6x02Y2.esm.js.map} +1 -1
- package/dist/chunks/{searchable-select-DpITVC6k.js → searchable-select-BNcuRtBI.js} +3 -3
- package/dist/chunks/{searchable-select-DpITVC6k.js.map → searchable-select-BNcuRtBI.js.map} +1 -1
- package/dist/chunks/{share-modal-CNyMQLC9.esm.js → share-modal-BjnPzAJE.esm.js} +2 -2
- package/dist/chunks/{share-modal-CNyMQLC9.esm.js.map → share-modal-BjnPzAJE.esm.js.map} +1 -1
- package/dist/chunks/{share-modal-DbSLdKy0.js → share-modal-Cos6pJ52.js} +2 -2
- package/dist/chunks/{share-modal-DbSLdKy0.js.map → share-modal-Cos6pJ52.js.map} +1 -1
- package/dist/chunks/{share-modal-enhanced-B13Cp0XQ.js → share-modal-enhanced-Da-Muxia.js} +2 -2
- package/dist/chunks/{share-modal-enhanced-B13Cp0XQ.js.map → share-modal-enhanced-Da-Muxia.js.map} +1 -1
- package/dist/chunks/{share-modal-enhanced-DwFj55rH.esm.js → share-modal-enhanced-Dk0UTj_L.esm.js} +2 -2
- package/dist/chunks/{share-modal-enhanced-DwFj55rH.esm.js.map → share-modal-enhanced-Dk0UTj_L.esm.js.map} +1 -1
- package/dist/chunks/{table-3oBHOueQ.js → table-BkUON-J8.js} +2 -2
- package/dist/chunks/{table-3oBHOueQ.js.map → table-BkUON-J8.js.map} +1 -1
- package/dist/chunks/{table-DMAtPFDn.esm.js → table-VcnlwNfx.esm.js} +2 -2
- package/dist/chunks/{table-DMAtPFDn.esm.js.map → table-VcnlwNfx.esm.js.map} +1 -1
- package/dist/chunks/{template-editor-router-D_6pDntM.esm.js → template-editor-router-Ds5zDdiq.esm.js} +2 -2
- package/dist/chunks/{template-editor-router-D_6pDntM.esm.js.map → template-editor-router-Ds5zDdiq.esm.js.map} +1 -1
- package/dist/chunks/{template-editor-router-CJ_sWNaj.js → template-editor-router-c4QH4hW2.js} +2 -2
- package/dist/chunks/{template-editor-router-CJ_sWNaj.js.map → template-editor-router-c4QH4hW2.js.map} +1 -1
- package/dist/chunks/{templates-cJNFvwtW.esm.js → templates-BSbulMLk.esm.js} +5 -5
- package/dist/chunks/{templates-cJNFvwtW.esm.js.map → templates-BSbulMLk.esm.js.map} +1 -1
- package/dist/chunks/{templates-2MhT1ZBz.js → templates-nCEKh4V8.js} +5 -5
- package/dist/chunks/{templates-2MhT1ZBz.js.map → templates-nCEKh4V8.js.map} +1 -1
- package/dist/chunks/{total-summary-DPwXK8LV.esm.js → total-summary-BCNJd8iL.esm.js} +2 -2
- package/dist/chunks/total-summary-BCNJd8iL.esm.js.map +1 -0
- package/dist/chunks/{total-summary-BSFpn_1I.js → total-summary-BhLK6YOW.js} +2 -2
- package/dist/chunks/total-summary-BhLK6YOW.js.map +1 -0
- package/dist/chunks/{uom-field-wrapper-DNI7KtMP.js → uom-field-wrapper-CF54ETpT.js} +2 -2
- package/dist/chunks/{uom-field-wrapper-DNI7KtMP.js.map → uom-field-wrapper-CF54ETpT.js.map} +1 -1
- package/dist/chunks/{uom-field-wrapper-DZDgpxL-.esm.js → uom-field-wrapper-Cwz0sOU3.esm.js} +2 -2
- package/dist/chunks/{uom-field-wrapper-DZDgpxL-.esm.js.map → uom-field-wrapper-Cwz0sOU3.esm.js.map} +1 -1
- package/dist/chunks/{upload-media-_L_CsSat.js → upload-media-BGLbYZW7.js} +2 -2
- package/dist/chunks/{upload-media-_L_CsSat.js.map → upload-media-BGLbYZW7.js.map} +1 -1
- package/dist/chunks/{upload-media-COLbbU-V.esm.js → upload-media-CtRn1ES6.esm.js} +2 -2
- package/dist/chunks/{upload-media-COLbbU-V.esm.js.map → upload-media-CtRn1ES6.esm.js.map} +1 -1
- package/dist/chunks/{use-material-calculations-CqYB_JaZ.esm.js → use-material-calculations-B5K1gB4M.esm.js} +4 -2
- package/dist/chunks/use-material-calculations-B5K1gB4M.esm.js.map +1 -0
- package/dist/chunks/{use-material-calculations-CWflfqhd.js → use-material-calculations-DKgA8HPj.js} +4 -2
- package/dist/chunks/use-material-calculations-DKgA8HPj.js.map +1 -0
- package/dist/chunks/{useAdditionalDiscountAutoCalc-CgTlmKfL.esm.js → useAdditionalDiscountAutoCalc-CYG36AFm.esm.js} +29 -9
- package/dist/chunks/useAdditionalDiscountAutoCalc-CYG36AFm.esm.js.map +1 -0
- package/dist/chunks/{useAdditionalDiscountAutoCalc-BCek0vno.js → useAdditionalDiscountAutoCalc-DgzVMSln.js} +28 -8
- package/dist/chunks/useAdditionalDiscountAutoCalc-DgzVMSln.js.map +1 -0
- package/dist/chunks/{value-editor-CklAFZvY.esm.js → value-editor-DuyEKmpN.esm.js} +2 -2
- package/dist/chunks/{value-editor-CklAFZvY.esm.js.map → value-editor-DuyEKmpN.esm.js.map} +1 -1
- package/dist/chunks/{value-editor-B8ezmWrk.js → value-editor-_I-xDmYy.js} +2 -2
- package/dist/chunks/{value-editor-B8ezmWrk.js.map → value-editor-_I-xDmYy.js.map} +1 -1
- package/dist/chunks/{vendor-ai-summary-ZObIqpEf.js → vendor-ai-summary-CO8qMRWq.js} +2 -2
- package/dist/chunks/{vendor-ai-summary-ZObIqpEf.js.map → vendor-ai-summary-CO8qMRWq.js.map} +1 -1
- package/dist/chunks/{vendor-ai-summary-B4EjhxYp.esm.js → vendor-ai-summary-DeQg7jG1.esm.js} +2 -2
- package/dist/chunks/{vendor-ai-summary-B4EjhxYp.esm.js.map → vendor-ai-summary-DeQg7jG1.esm.js.map} +1 -1
- package/dist/components/action-bar/action-bar/index.esm.js +1 -1
- package/dist/components/action-bar/action-bar/index.js +1 -1
- package/dist/components/action-bar/index.esm.js +1 -1
- package/dist/components/action-bar/index.js +1 -1
- package/dist/components/address-modal/index.esm.js +1 -1
- package/dist/components/address-modal/index.js +1 -1
- package/dist/components/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/index.esm.js +1 -1
- package/dist/components/calculation-summary/components/index.js +1 -1
- 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 +2 -2
- package/dist/components/calculation-summary/index.js +2 -2
- 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/index.esm.js +1 -1
- package/dist/components/charts/index.js +1 -1
- package/dist/components/custom-forms/FORMS/index.esm.js +1 -1
- package/dist/components/custom-forms/FORMS/index.js +1 -1
- package/dist/components/custom-forms/index.esm.js +1 -1
- package/dist/components/custom-forms/index.js +1 -1
- package/dist/components/department-add-modal/index.esm.js +1 -1
- package/dist/components/department-add-modal/index.js +1 -1
- package/dist/components/designation-add-modal/index.esm.js +1 -1
- package/dist/components/designation-add-modal/index.js +1 -1
- package/dist/components/document-preview/index.esm.js +1 -1
- package/dist/components/document-preview/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/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/fixed-asset-item-add-modal/index.esm.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/fixed-asset-item-add-modal/index.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/index.esm.js +4 -4
- package/dist/components/form-control/form-builder/form-builder-element/index.js +4 -4
- 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/media/index.esm.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/media/index.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/select-configuration/index.esm.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/select-configuration/index.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/table/index.esm.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/table/index.js +1 -1
- package/dist/components/form-control/form-builder/index.esm.js +4 -4
- package/dist/components/form-control/form-builder/index.js +4 -4
- package/dist/components/form-control/form-parser/form-parser/index.esm.js +1 -1
- package/dist/components/form-control/form-parser/form-parser/index.js +1 -1
- package/dist/components/form-control/form-parser/form-section/index.esm.js +1 -1
- package/dist/components/form-control/form-parser/form-section/index.js +1 -1
- package/dist/components/form-control/form-parser/index.esm.js +2 -2
- package/dist/components/form-control/form-parser/index.js +2 -2
- package/dist/components/form-control/index.esm.js +6 -6
- package/dist/components/form-control/index.js +6 -6
- package/dist/components/index.esm.js +30 -30
- package/dist/components/index.js +30 -30
- package/dist/components/inventory-reports-title-bar/index.esm.js +1 -1
- package/dist/components/inventory-reports-title-bar/index.js +1 -1
- package/dist/components/inventory-reports-title-bar/inventory-reports-title-bar/index.esm.js +1 -1
- package/dist/components/inventory-reports-title-bar/inventory-reports-title-bar/index.js +1 -1
- package/dist/components/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/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 +1 -1
- package/dist/components/reports-title-bar/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 +2 -2
- package/dist/components/share-modal/index.js +2 -2
- 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-media/index.esm.js +1 -1
- package/dist/components/upload-media/index.js +1 -1
- package/dist/components/upload-media/upload-media/index.esm.js +1 -1
- package/dist/components/upload-media/upload-media/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/hooks/index.esm.js +2 -2
- package/dist/hooks/index.js +2 -2
- package/dist/hooks/use-material-calculations/index.esm.js +1 -1
- package/dist/hooks/use-material-calculations/index.js +1 -1
- package/dist/hooks/useAdditionalDiscountAutoCalc/index.esm.js +1 -1
- package/dist/hooks/useAdditionalDiscountAutoCalc/index.js +1 -1
- package/dist/index.esm.js +43 -42
- package/dist/index.js +42 -41
- package/dist/index.js.map +1 -1
- package/dist/src/components/calculation-summary/calculation-summary.d.ts +1 -0
- package/dist/src/hooks/use-material-calculations.d.ts +2 -2
- package/dist/src/hooks/useAdditionalDiscountAutoCalc.d.ts +3 -0
- package/dist/src/utils/calculation.d.ts +10 -1
- package/dist/utils/calculation/index.esm.js +24 -11
- package/dist/utils/calculation/index.esm.js.map +1 -1
- package/dist/utils/calculation/index.js +24 -11
- package/dist/utils/calculation/index.js.map +1 -1
- package/dist/utils/common-utility/index.esm.js +1 -1
- package/dist/utils/common-utility/index.js +1 -1
- package/dist/utils/index.esm.js +3 -2
- package/dist/utils/index.js +2 -1
- package/dist/utils/index.js.map +1 -1
- package/dist/views/afterAuth/index.esm.js +1 -1
- package/dist/views/afterAuth/index.js +1 -1
- 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/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 +2 -2
- package/dist/views/form-builder/index.js +2 -2
- package/dist/views/index.esm.js +8 -8
- package/dist/views/index.js +8 -8
- 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/index.esm.js +5 -5
- package/dist/views/template-editor/index.js +5 -5
- 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/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-C2Ery9_3.js.map +0 -1
- package/dist/chunks/DonutChart-Clmcka3j.esm.js.map +0 -1
- package/dist/chunks/calculation-summary-Df2Yofs9.esm.js.map +0 -1
- package/dist/chunks/calculation-summary-h8yqJbXT.js.map +0 -1
- package/dist/chunks/total-summary-BSFpn_1I.js.map +0 -1
- package/dist/chunks/total-summary-DPwXK8LV.esm.js.map +0 -1
- package/dist/chunks/use-material-calculations-CWflfqhd.js.map +0 -1
- package/dist/chunks/use-material-calculations-CqYB_JaZ.esm.js.map +0 -1
- package/dist/chunks/useAdditionalDiscountAutoCalc-BCek0vno.js.map +0 -1
- package/dist/chunks/useAdditionalDiscountAutoCalc-CgTlmKfL.esm.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"location-select-
|
|
1
|
+
{"version":3,"file":"location-select-B7eqyJIA.js","sources":["../../src/components/location-select.tsx"],"sourcesContent":["import {\r\n\tUseFormSetValue,\r\n\tFieldValues,\r\n\tuseFormContext,\r\n\tUseFormWatch,\r\n\tUseFormGetFieldState,\r\n\tControl\r\n} from 'react-hook-form';\r\nimport { useLocationFilter } from '../hooks/useLocationFilter';\r\nimport DynamicSearchSelect from './form-control/form-builder/form-builder-element/dynamic-select';\r\nimport { useTranslation } from 'react-i18next';\r\nimport { memo, useEffect, useMemo, useRef } from 'react';\r\nimport _ from 'lodash';\r\n\r\n\r\nexport interface LocationSearchSelectProps<\r\n\tT extends FieldValues = FieldValues\r\n> {\r\n\tselectedCompany?: string[] | string | number | null | undefined;\r\n\tcontrol?: Control<T>;\r\n\tsetValue?: UseFormSetValue<T>;\r\n\tfieldArrayName: string;\r\n\tlocationFieldName?: string;\r\n\tlabel?: string;\r\n\tplaceholder?: string;\r\n\tresetValue?: any;\r\n\tfilterKey?: string;\r\n\t[key: string]: any;\r\n}\r\n\r\nexport interface LocationFilterType {\r\n\t[key: string]: string[] | string | number;\r\n}\r\n\r\nexport const LocationSearchSelect = memo(\r\n\t<T extends FieldValues = FieldValues>({\r\n\t\tselectedCompany,\r\n\t\tcontrol: propControl,\r\n\t\tsetValue: propSetValue,\r\n\t\tfieldArrayName,\r\n\t\tlocationFieldName = 'location_id',\r\n\t\tlabel,\r\n\t\tplaceholder,\r\n\t\tresetValue = undefined,\r\n\t\tfilterKey = '&company_id.in',\r\n\t\tfilterField = 'company_id',\r\n\t\t...dynamicSearchSelectProps\r\n\t}: LocationSearchSelectProps<T>): JSX.Element => {\r\n\t\tconst formContext = useFormContext();\r\n\t\tconst {\r\n\t\t\tcontrol: contextControl,\r\n\t\t\twatch: contextWatch,\r\n\t\t\tsetValue: contextSetValue,\r\n\t\t\tgetFieldState: contextGetFieldState\r\n\t\t} = formContext || {};\r\n\r\n\t\tconst controlToUse = propControl || contextControl;\r\n\t\tconst setValueToUse = propSetValue || contextSetValue;\r\n\t\tconst watchToUse: UseFormWatch<T> = contextWatch || (() => undefined);\r\n\t\tconst getFieldStateToUse: UseFormGetFieldState<T> =\r\n\t\t\tcontextGetFieldState || (() => ({}));\r\n\r\n\t\tconst filterFieldValue = watchToUse(`${fieldArrayName}.${filterField}`);\r\n\t\tconst isDirty = getFieldStateToUse(\r\n\t\t\t`${fieldArrayName}.${filterField}`\r\n\t\t)?.isDirty;\r\n\r\n\t\tconst prevFilterFieldValue = useRef<any>();\r\n\r\n\t\tconst { t } = useTranslation();\r\n\r\n\t\tconst isValueChanged = useMemo(() => {\r\n\t\t\treturn filterFieldValue && prevFilterFieldValue.current\r\n\t\t\t\t? !_.isEqual(prevFilterFieldValue.current, filterFieldValue)\r\n\t\t\t\t: false;\r\n\t\t}, [filterFieldValue]);\r\n\r\n\r\n\t\tuseEffect(() => {\r\n\t\t\tif (filterFieldValue) {\r\n\t\t\t\tprevFilterFieldValue.current = filterFieldValue;\r\n\t\t\t}\r\n\t\t}, [filterFieldValue]);\r\n\r\n\t\tconst locationFilter: LocationFilterType = useLocationFilter({\r\n\t\t\tselectedCompany: filterFieldValue || selectedCompany,\r\n\t\t\tsetValue: setValueToUse,\r\n\t\t\tfieldArrayName,\r\n\t\t\tlocationFieldName,\r\n\t\t\tresetValue,\r\n\t\t\tfilterKey,\r\n\t\t\tisDirty: isValueChanged || isDirty\r\n\t\t});\r\n\r\n\t\t// Now safely do the conditional render\r\n\t\tif (!controlToUse) {\r\n\t\t\tconsole.warn('LocationSearchSelect: No form control available.');\r\n\t\t\treturn <div>Location Search Select</div>;\r\n\t\t}\r\n\r\n\t\treturn (\r\n\t\t\t<DynamicSearchSelect\r\n\t\t\t\tlabel={t(label) || t('crm.salesOrder.fields.location_label')}\r\n\t\t\t\tapiType='location'\r\n\t\t\t\taddType='location'\r\n\t\t\t\tenable_footer={true}\r\n\t\t\t\tname={locationFieldName}\r\n\t\t\t\tplaceholder={\r\n\t\t\t\t\tt(placeholder) || t('crm.salesOrder.fields.location_placeholder')\r\n\t\t\t\t}\r\n\t\t\t\tfieldArrayName={fieldArrayName}\r\n\t\t\t\tformControl={controlToUse}\r\n\t\t\t\tcustomeFilter={locationFilter}\r\n\t\t\t\t{...dynamicSearchSelectProps}\r\n\t\t\t/>\r\n\t\t);\r\n\t}\r\n);\r\n\r\nLocationSearchSelect.defaultProps = {\r\n\tlocationFieldName: 'location_id',\r\n\tresetValue: undefined,\r\n\tfilterKey: '&company_id.in'\r\n};\r\n\r\nexport default LocationSearchSelect"],"names":["memo","useFormContext","useRef","useTranslation","useMemo","useEffect","useLocationFilter","jsx","DynamicSearchSelect"],"mappings":";;;;;;;;AAkCO,MAAM,uBAAuBA,MAAAA;AAAAA,EACnC,CAAsC;AAAA,IACrC;AAAA,IACA,SAAS;AAAA,IACT,UAAU;AAAA,IACV;AAAA,IACA,oBAAoB;AAAA,IACpB;AAAA,IACA;AAAA,IACA,aAAa;AAAA,IACb,YAAY;AAAA,IACZ,cAAc;AAAA,IACd,GAAG;AAAA,EAAA,MAC6C;;AAChD,UAAM,cAAcC,cAAAA,eAAA;AACpB,UAAM;AAAA,MACL,SAAS;AAAA,MACT,OAAO;AAAA,MACP,UAAU;AAAA,MACV,eAAe;AAAA,IAAA,IACZ,eAAe,CAAA;AAEnB,UAAM,eAAe,eAAe;AACpC,UAAM,gBAAgB,gBAAgB;AACtC,UAAM,aAA8B,iBAAiB,MAAM;AAC3D,UAAM,qBACL,yBAAyB,OAAO,CAAA;AAEjC,UAAM,mBAAmB,WAAW,GAAG,cAAc,IAAI,WAAW,EAAE;AACtE,UAAM,WAAU;AAAA,MACf,GAAG,cAAc,IAAI,WAAW;AAAA,IAAA,MADjB,mBAEb;AAEH,UAAM,uBAAuBC,MAAAA,OAAA;AAE7B,UAAM,EAAE,EAAA,IAAMC,4BAAA;AAEd,UAAM,iBAAiBC,MAAAA,QAAQ,MAAM;AACpC,aAAO,oBAAoB,qBAAqB,UAC7C,CAAC,EAAE,QAAQ,qBAAqB,SAAS,gBAAgB,IACzD;AAAA,IACJ,GAAG,CAAC,gBAAgB,CAAC;AAGrBC,UAAAA,UAAU,MAAM;AACf,UAAI,kBAAkB;AACrB,6BAAqB,UAAU;AAAA,MAChC;AAAA,IACD,GAAG,CAAC,gBAAgB,CAAC;AAErB,UAAM,iBAAqCC,kBAAAA,kBAAkB;AAAA,MAC5D,iBAAiB,oBAAoB;AAAA,MACrC,UAAU;AAAA,MACV;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA,SAAS,kBAAkB;AAAA,IAAA,CAC3B;AAGD,QAAI,CAAC,cAAc;AAClB,cAAQ,KAAK,kDAAkD;AAC/D,aAAOC,2BAAAA,IAAC,SAAI,UAAA,yBAAA,CAAsB;AAAA,IACnC;AAEA,WACCA,2BAAAA;AAAAA,MAACC,iBAAAA;AAAAA,MAAA;AAAA,QACA,OAAO,EAAE,KAAK,KAAK,EAAE,sCAAsC;AAAA,QAC3D,SAAQ;AAAA,QACR,SAAQ;AAAA,QACR,eAAe;AAAA,QACf,MAAM;AAAA,QACN,aACC,EAAE,WAAW,KAAK,EAAE,4CAA4C;AAAA,QAEjE;AAAA,QACA,aAAa;AAAA,QACb,eAAe;AAAA,QACd,GAAG;AAAA,MAAA;AAAA,IAAA;AAAA,EAGP;AACD;AAEA,qBAAqB,eAAe;AAAA,EACnC,mBAAmB;AAAA,EACnB,YAAY;AAAA,EACZ,WAAW;AACZ;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useFormContext } from "react-hook-form";
|
|
3
3
|
import { u as useLocationFilter } from "./useLocationFilter-IO3yIT0q.esm.js";
|
|
4
|
-
import { D as DynamicSearchSelect } from "./searchable-select-
|
|
4
|
+
import { D as DynamicSearchSelect } from "./searchable-select-BE6x02Y2.esm.js";
|
|
5
5
|
import { useTranslation } from "react-i18next";
|
|
6
6
|
import { memo, useRef, useMemo, useEffect } from "react";
|
|
7
7
|
import _ from "lodash";
|
|
@@ -83,4 +83,4 @@ LocationSearchSelect.defaultProps = {
|
|
|
83
83
|
export {
|
|
84
84
|
LocationSearchSelect as L
|
|
85
85
|
};
|
|
86
|
-
//# sourceMappingURL=location-select-
|
|
86
|
+
//# sourceMappingURL=location-select-C1QJTCjJ.esm.js.map
|
package/dist/chunks/{location-select-CU1ZnpZV.esm.js.map → location-select-C1QJTCjJ.esm.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"location-select-
|
|
1
|
+
{"version":3,"file":"location-select-C1QJTCjJ.esm.js","sources":["../../src/components/location-select.tsx"],"sourcesContent":["import {\r\n\tUseFormSetValue,\r\n\tFieldValues,\r\n\tuseFormContext,\r\n\tUseFormWatch,\r\n\tUseFormGetFieldState,\r\n\tControl\r\n} from 'react-hook-form';\r\nimport { useLocationFilter } from '../hooks/useLocationFilter';\r\nimport DynamicSearchSelect from './form-control/form-builder/form-builder-element/dynamic-select';\r\nimport { useTranslation } from 'react-i18next';\r\nimport { memo, useEffect, useMemo, useRef } from 'react';\r\nimport _ from 'lodash';\r\n\r\n\r\nexport interface LocationSearchSelectProps<\r\n\tT extends FieldValues = FieldValues\r\n> {\r\n\tselectedCompany?: string[] | string | number | null | undefined;\r\n\tcontrol?: Control<T>;\r\n\tsetValue?: UseFormSetValue<T>;\r\n\tfieldArrayName: string;\r\n\tlocationFieldName?: string;\r\n\tlabel?: string;\r\n\tplaceholder?: string;\r\n\tresetValue?: any;\r\n\tfilterKey?: string;\r\n\t[key: string]: any;\r\n}\r\n\r\nexport interface LocationFilterType {\r\n\t[key: string]: string[] | string | number;\r\n}\r\n\r\nexport const LocationSearchSelect = memo(\r\n\t<T extends FieldValues = FieldValues>({\r\n\t\tselectedCompany,\r\n\t\tcontrol: propControl,\r\n\t\tsetValue: propSetValue,\r\n\t\tfieldArrayName,\r\n\t\tlocationFieldName = 'location_id',\r\n\t\tlabel,\r\n\t\tplaceholder,\r\n\t\tresetValue = undefined,\r\n\t\tfilterKey = '&company_id.in',\r\n\t\tfilterField = 'company_id',\r\n\t\t...dynamicSearchSelectProps\r\n\t}: LocationSearchSelectProps<T>): JSX.Element => {\r\n\t\tconst formContext = useFormContext();\r\n\t\tconst {\r\n\t\t\tcontrol: contextControl,\r\n\t\t\twatch: contextWatch,\r\n\t\t\tsetValue: contextSetValue,\r\n\t\t\tgetFieldState: contextGetFieldState\r\n\t\t} = formContext || {};\r\n\r\n\t\tconst controlToUse = propControl || contextControl;\r\n\t\tconst setValueToUse = propSetValue || contextSetValue;\r\n\t\tconst watchToUse: UseFormWatch<T> = contextWatch || (() => undefined);\r\n\t\tconst getFieldStateToUse: UseFormGetFieldState<T> =\r\n\t\t\tcontextGetFieldState || (() => ({}));\r\n\r\n\t\tconst filterFieldValue = watchToUse(`${fieldArrayName}.${filterField}`);\r\n\t\tconst isDirty = getFieldStateToUse(\r\n\t\t\t`${fieldArrayName}.${filterField}`\r\n\t\t)?.isDirty;\r\n\r\n\t\tconst prevFilterFieldValue = useRef<any>();\r\n\r\n\t\tconst { t } = useTranslation();\r\n\r\n\t\tconst isValueChanged = useMemo(() => {\r\n\t\t\treturn filterFieldValue && prevFilterFieldValue.current\r\n\t\t\t\t? !_.isEqual(prevFilterFieldValue.current, filterFieldValue)\r\n\t\t\t\t: false;\r\n\t\t}, [filterFieldValue]);\r\n\r\n\r\n\t\tuseEffect(() => {\r\n\t\t\tif (filterFieldValue) {\r\n\t\t\t\tprevFilterFieldValue.current = filterFieldValue;\r\n\t\t\t}\r\n\t\t}, [filterFieldValue]);\r\n\r\n\t\tconst locationFilter: LocationFilterType = useLocationFilter({\r\n\t\t\tselectedCompany: filterFieldValue || selectedCompany,\r\n\t\t\tsetValue: setValueToUse,\r\n\t\t\tfieldArrayName,\r\n\t\t\tlocationFieldName,\r\n\t\t\tresetValue,\r\n\t\t\tfilterKey,\r\n\t\t\tisDirty: isValueChanged || isDirty\r\n\t\t});\r\n\r\n\t\t// Now safely do the conditional render\r\n\t\tif (!controlToUse) {\r\n\t\t\tconsole.warn('LocationSearchSelect: No form control available.');\r\n\t\t\treturn <div>Location Search Select</div>;\r\n\t\t}\r\n\r\n\t\treturn (\r\n\t\t\t<DynamicSearchSelect\r\n\t\t\t\tlabel={t(label) || t('crm.salesOrder.fields.location_label')}\r\n\t\t\t\tapiType='location'\r\n\t\t\t\taddType='location'\r\n\t\t\t\tenable_footer={true}\r\n\t\t\t\tname={locationFieldName}\r\n\t\t\t\tplaceholder={\r\n\t\t\t\t\tt(placeholder) || t('crm.salesOrder.fields.location_placeholder')\r\n\t\t\t\t}\r\n\t\t\t\tfieldArrayName={fieldArrayName}\r\n\t\t\t\tformControl={controlToUse}\r\n\t\t\t\tcustomeFilter={locationFilter}\r\n\t\t\t\t{...dynamicSearchSelectProps}\r\n\t\t\t/>\r\n\t\t);\r\n\t}\r\n);\r\n\r\nLocationSearchSelect.defaultProps = {\r\n\tlocationFieldName: 'location_id',\r\n\tresetValue: undefined,\r\n\tfilterKey: '&company_id.in'\r\n};\r\n\r\nexport default LocationSearchSelect"],"names":[],"mappings":";;;;;;;AAkCO,MAAM,uBAAuB;AAAA,EACnC,CAAsC;AAAA,IACrC;AAAA,IACA,SAAS;AAAA,IACT,UAAU;AAAA,IACV;AAAA,IACA,oBAAoB;AAAA,IACpB;AAAA,IACA;AAAA,IACA,aAAa;AAAA,IACb,YAAY;AAAA,IACZ,cAAc;AAAA,IACd,GAAG;AAAA,EAAA,MAC6C;;AAChD,UAAM,cAAc,eAAA;AACpB,UAAM;AAAA,MACL,SAAS;AAAA,MACT,OAAO;AAAA,MACP,UAAU;AAAA,MACV,eAAe;AAAA,IAAA,IACZ,eAAe,CAAA;AAEnB,UAAM,eAAe,eAAe;AACpC,UAAM,gBAAgB,gBAAgB;AACtC,UAAM,aAA8B,iBAAiB,MAAM;AAC3D,UAAM,qBACL,yBAAyB,OAAO,CAAA;AAEjC,UAAM,mBAAmB,WAAW,GAAG,cAAc,IAAI,WAAW,EAAE;AACtE,UAAM,WAAU;AAAA,MACf,GAAG,cAAc,IAAI,WAAW;AAAA,IAAA,MADjB,mBAEb;AAEH,UAAM,uBAAuB,OAAA;AAE7B,UAAM,EAAE,EAAA,IAAM,eAAA;AAEd,UAAM,iBAAiB,QAAQ,MAAM;AACpC,aAAO,oBAAoB,qBAAqB,UAC7C,CAAC,EAAE,QAAQ,qBAAqB,SAAS,gBAAgB,IACzD;AAAA,IACJ,GAAG,CAAC,gBAAgB,CAAC;AAGrB,cAAU,MAAM;AACf,UAAI,kBAAkB;AACrB,6BAAqB,UAAU;AAAA,MAChC;AAAA,IACD,GAAG,CAAC,gBAAgB,CAAC;AAErB,UAAM,iBAAqC,kBAAkB;AAAA,MAC5D,iBAAiB,oBAAoB;AAAA,MACrC,UAAU;AAAA,MACV;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA,SAAS,kBAAkB;AAAA,IAAA,CAC3B;AAGD,QAAI,CAAC,cAAc;AAClB,cAAQ,KAAK,kDAAkD;AAC/D,aAAO,oBAAC,SAAI,UAAA,yBAAA,CAAsB;AAAA,IACnC;AAEA,WACC;AAAA,MAAC;AAAA,MAAA;AAAA,QACA,OAAO,EAAE,KAAK,KAAK,EAAE,sCAAsC;AAAA,QAC3D,SAAQ;AAAA,QACR,SAAQ;AAAA,QACR,eAAe;AAAA,QACf,MAAM;AAAA,QACN,aACC,EAAE,WAAW,KAAK,EAAE,4CAA4C;AAAA,QAEjE;AAAA,QACA,aAAa;AAAA,QACb,eAAe;AAAA,QACd,GAAG;AAAA,MAAA;AAAA,IAAA;AAAA,EAGP;AACD;AAEA,qBAAqB,eAAe;AAAA,EACnC,mBAAmB;AAAA,EACnB,YAAY;AAAA,EACZ,WAAW;AACZ;"}
|
package/dist/chunks/{material-editable-table-CFNPlmms.js → material-editable-table-CeEvqXDR.js}
RENAMED
|
@@ -14,7 +14,7 @@ const checkBox = require("./check-box-CtEOAIEc.js");
|
|
|
14
14
|
const close = require("./close-D42p_6ss.js");
|
|
15
15
|
const rectangle = require("./rectangle-CdqtKF3L.js");
|
|
16
16
|
const trash = require("./trash-DWY4lso3.js");
|
|
17
|
-
const inlineEditFields = require("./inline-edit-fields-
|
|
17
|
+
const inlineEditFields = require("./inline-edit-fields-DPDi7qw9.js");
|
|
18
18
|
const Tooltip = require("./Tooltip-2SPKKR77.js");
|
|
19
19
|
const button = require("./button-CYiSRppg.js");
|
|
20
20
|
const AddIcon = require("@mui/icons-material/Add");
|
|
@@ -1482,4 +1482,4 @@ const MaterialEditableTable = React.memo(React.forwardRef(({
|
|
|
1482
1482
|
}));
|
|
1483
1483
|
exports.MaterialEditableTable = MaterialEditableTable;
|
|
1484
1484
|
exports.commitAllPendingTableRows = commitAllPendingTableRows;
|
|
1485
|
-
//# sourceMappingURL=material-editable-table-
|
|
1485
|
+
//# sourceMappingURL=material-editable-table-CeEvqXDR.js.map
|