@erpsquad/common 1.11.13 → 1.11.15

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.
Files changed (637) hide show
  1. package/dist/api-client/index.esm.js +2 -2
  2. package/dist/chunks/{DynamicDependentField-CUQlRksh.esm.js → DynamicDependentField-3BIqZuEi.esm.js} +2 -2
  3. package/dist/chunks/{DynamicDependentField-CUQlRksh.esm.js.map → DynamicDependentField-3BIqZuEi.esm.js.map} +1 -1
  4. package/dist/chunks/{DynamicDependentField-De5hIa2G.js → DynamicDependentField-BNQloFOt.js} +2 -2
  5. package/dist/chunks/{DynamicDependentField-De5hIa2G.js.map → DynamicDependentField-BNQloFOt.js.map} +1 -1
  6. package/dist/chunks/{ERPUIProvider-CE2TFUwH.esm.js → ERPUIProvider-BvdsmytD.esm.js} +3 -3
  7. package/dist/chunks/{ERPUIProvider-CE2TFUwH.esm.js.map → ERPUIProvider-BvdsmytD.esm.js.map} +1 -1
  8. package/dist/chunks/{ERPUIProvider-a11UHlA2.js → ERPUIProvider-DOPwl5-1.js} +3 -3
  9. package/dist/chunks/{ERPUIProvider-a11UHlA2.js.map → ERPUIProvider-DOPwl5-1.js.map} +1 -1
  10. package/dist/chunks/{FORMS-BxycFROH.js → FORMS-Co5DzR2b.js} +7 -7
  11. package/dist/chunks/{FORMS-BxycFROH.js.map → FORMS-Co5DzR2b.js.map} +1 -1
  12. package/dist/chunks/{FORMS-BSkTeBm_.esm.js → FORMS-Cq5klFbL.esm.js} +8 -8
  13. package/dist/chunks/{FORMS-BSkTeBm_.esm.js.map → FORMS-Cq5klFbL.esm.js.map} +1 -1
  14. package/dist/chunks/{FlexibleReduxExample-D72G_SVm.esm.js → FlexibleReduxExample-BzEsEgg_.esm.js} +4 -4
  15. package/dist/chunks/{FlexibleReduxExample-D72G_SVm.esm.js.map → FlexibleReduxExample-BzEsEgg_.esm.js.map} +1 -1
  16. package/dist/chunks/{FlexibleReduxExample-BP0K3ZqC.js → FlexibleReduxExample-CcL6mk5n.js} +4 -4
  17. package/dist/chunks/{FlexibleReduxExample-BP0K3ZqC.js.map → FlexibleReduxExample-CcL6mk5n.js.map} +1 -1
  18. package/dist/chunks/{SectionFlowEditor-rpYvUYCA.esm.js → SectionFlowEditor-DEbWSklc.esm.js} +8 -8
  19. package/dist/chunks/{SectionFlowEditor-rpYvUYCA.esm.js.map → SectionFlowEditor-DEbWSklc.esm.js.map} +1 -1
  20. package/dist/chunks/{SectionFlowEditor-D_zGaLTv.js → SectionFlowEditor-DagOI5vV.js} +5 -5
  21. package/dist/chunks/{SectionFlowEditor-D_zGaLTv.js.map → SectionFlowEditor-DagOI5vV.js.map} +1 -1
  22. package/dist/chunks/{action-bar-B8EkHk4R.esm.js → action-bar-CBNUSFDM.esm.js} +9 -6
  23. package/dist/chunks/action-bar-CBNUSFDM.esm.js.map +1 -0
  24. package/dist/chunks/{action-bar-B_EUV2Bt.js → action-bar-CkKLB98R.js} +8 -5
  25. package/dist/chunks/action-bar-CkKLB98R.js.map +1 -0
  26. package/dist/chunks/{actionCreator-D2PZfYi7.js → actionCreator-B7XTLcC3.js} +2 -2
  27. package/dist/chunks/{actionCreator-D2PZfYi7.js.map → actionCreator-B7XTLcC3.js.map} +1 -1
  28. package/dist/chunks/{actionCreator-D68eU9au.esm.js → actionCreator-BeyzfogA.esm.js} +2 -2
  29. package/dist/chunks/{actionCreator-D68eU9au.esm.js.map → actionCreator-BeyzfogA.esm.js.map} +1 -1
  30. package/dist/chunks/{actionCreator-C1EgKt0Q.js → actionCreator-CsznY4jv.js} +2 -2
  31. package/dist/chunks/{actionCreator-C1EgKt0Q.js.map → actionCreator-CsznY4jv.js.map} +1 -1
  32. package/dist/chunks/{actionCreator-DEVJN_Xh.js → actionCreator-CxF0fSo3.js} +2 -2
  33. package/dist/chunks/{actionCreator-DEVJN_Xh.js.map → actionCreator-CxF0fSo3.js.map} +1 -1
  34. package/dist/chunks/{actionCreator-BwQrLjXs.esm.js → actionCreator-D3Ywxqko.esm.js} +2 -2
  35. package/dist/chunks/{actionCreator-BwQrLjXs.esm.js.map → actionCreator-D3Ywxqko.esm.js.map} +1 -1
  36. package/dist/chunks/{actionCreator-DW6F8f7X.esm.js → actionCreator-D9o1yF_V.esm.js} +3 -3
  37. package/dist/chunks/{actionCreator-DW6F8f7X.esm.js.map → actionCreator-D9o1yF_V.esm.js.map} +1 -1
  38. package/dist/chunks/{actionCreator-DyXbdzac.esm.js → actionCreator-DGxoyGyk.esm.js} +3 -3
  39. package/dist/chunks/{actionCreator-DyXbdzac.esm.js.map → actionCreator-DGxoyGyk.esm.js.map} +1 -1
  40. package/dist/chunks/{actionCreator-DhKsKoNK.js → actionCreator-DIPsxXwE.js} +2 -2
  41. package/dist/chunks/{actionCreator-DhKsKoNK.js.map → actionCreator-DIPsxXwE.js.map} +1 -1
  42. package/dist/chunks/{actionCreator-CLs2lr2h.js → actionCreator-DfnX-Cj5.js} +2 -2
  43. package/dist/chunks/{actionCreator-CLs2lr2h.js.map → actionCreator-DfnX-Cj5.js.map} +1 -1
  44. package/dist/chunks/{actionCreator-Cm77Rmfx.esm.js → actionCreator-upsoTf3q.esm.js} +2 -2
  45. package/dist/chunks/{actionCreator-Cm77Rmfx.esm.js.map → actionCreator-upsoTf3q.esm.js.map} +1 -1
  46. package/dist/chunks/{add-template-C880g-xF.esm.js → add-template-BCxn7OXM.esm.js} +2 -2
  47. package/dist/chunks/{add-template-C880g-xF.esm.js.map → add-template-BCxn7OXM.esm.js.map} +1 -1
  48. package/dist/chunks/{add-template-BK-2FnRj.js → add-template-Cee6U_4N.js} +2 -2
  49. package/dist/chunks/{add-template-BK-2FnRj.js.map → add-template-Cee6U_4N.js.map} +1 -1
  50. package/dist/chunks/{address-modal-BR-jph_I.esm.js → address-modal-DBuj1ow2.esm.js} +2 -2
  51. package/dist/chunks/{address-modal-BR-jph_I.esm.js.map → address-modal-DBuj1ow2.esm.js.map} +1 -1
  52. package/dist/chunks/{address-modal-BHIlP-pd.js → address-modal-DfP7AYCO.js} +2 -2
  53. package/dist/chunks/{address-modal-BHIlP-pd.js.map → address-modal-DfP7AYCO.js.map} +1 -1
  54. package/dist/chunks/{ai-summary-7COdbF1n.js → ai-summary-CEgn0zWt.js} +2 -2
  55. package/dist/chunks/{ai-summary-7COdbF1n.js.map → ai-summary-CEgn0zWt.js.map} +1 -1
  56. package/dist/chunks/{ai-summary-Cs2CC-P1.esm.js → ai-summary-mqP0clDC.esm.js} +2 -2
  57. package/dist/chunks/{ai-summary-Cs2CC-P1.esm.js.map → ai-summary-mqP0clDC.esm.js.map} +1 -1
  58. package/dist/chunks/{api-DBmWILBN.esm.js → api-C1kYZQ6G.esm.js} +11 -11
  59. package/dist/chunks/{api-DBmWILBN.esm.js.map → api-C1kYZQ6G.esm.js.map} +1 -1
  60. package/dist/chunks/{api-DcArDfpV.js → api-CfErA7gR.js} +12 -1
  61. package/dist/chunks/{api-DcArDfpV.js.map → api-CfErA7gR.js.map} +1 -1
  62. package/dist/chunks/{api-w8De9u1Z.esm.js → api-D-Ups140.esm.js} +14 -3
  63. package/dist/chunks/{api-w8De9u1Z.esm.js.map → api-D-Ups140.esm.js.map} +1 -1
  64. package/dist/chunks/{appbar-D9sgcNKx.js → appbar-B5B09cG8.js} +2 -2
  65. package/dist/chunks/{appbar-D9sgcNKx.js.map → appbar-B5B09cG8.js.map} +1 -1
  66. package/dist/chunks/{appbar-DhAOoNnx.esm.js → appbar-DqKmstO3.esm.js} +2 -2
  67. package/dist/chunks/{appbar-DhAOoNnx.esm.js.map → appbar-DqKmstO3.esm.js.map} +1 -1
  68. package/dist/chunks/{approval-wrapper-Da93X7F6.esm.js → approval-wrapper-B75P0gcQ.esm.js} +2 -2
  69. package/dist/chunks/{approval-wrapper-Da93X7F6.esm.js.map → approval-wrapper-B75P0gcQ.esm.js.map} +1 -1
  70. package/dist/chunks/{approval-wrapper-Ci-cW-m0.js → approval-wrapper-BrMP1u_K.js} +2 -2
  71. package/dist/chunks/{approval-wrapper-Ci-cW-m0.js.map → approval-wrapper-BrMP1u_K.js.map} +1 -1
  72. package/dist/chunks/{chat-bot-padqRWR_.js → chat-bot-BAYqYRHn.js} +2 -2
  73. package/dist/chunks/{chat-bot-padqRWR_.js.map → chat-bot-BAYqYRHn.js.map} +1 -1
  74. package/dist/chunks/{chat-bot-BByP2-kp.esm.js → chat-bot-DpIhSCKc.esm.js} +2 -2
  75. package/dist/chunks/{chat-bot-BByP2-kp.esm.js.map → chat-bot-DpIhSCKc.esm.js.map} +1 -1
  76. package/dist/chunks/{common-utility-CARAexqF.js → common-utility-DRKuh2H0.js} +2 -2
  77. package/dist/chunks/{common-utility-CARAexqF.js.map → common-utility-DRKuh2H0.js.map} +1 -1
  78. package/dist/chunks/{common-utility-DWsblyLc.esm.js → common-utility-qSmp2In3.esm.js} +2 -2
  79. package/dist/chunks/{common-utility-DWsblyLc.esm.js.map → common-utility-qSmp2In3.esm.js.map} +1 -1
  80. package/dist/chunks/{custom-editor-CDTvJeBu.js → custom-editor-BPQayjzn.js} +2 -2
  81. package/dist/chunks/{custom-editor-CDTvJeBu.js.map → custom-editor-BPQayjzn.js.map} +1 -1
  82. package/dist/chunks/{custom-editor-Bxyz1m2D.esm.js → custom-editor-CDIvDJ3E.esm.js} +3 -3
  83. package/dist/chunks/{custom-editor-Bxyz1m2D.esm.js.map → custom-editor-CDIvDJ3E.esm.js.map} +1 -1
  84. package/dist/chunks/{custom-form-Bpb9HiXs.esm.js → custom-form-Bc3FhNpz.esm.js} +6 -6
  85. package/dist/chunks/{custom-form-Bpb9HiXs.esm.js.map → custom-form-Bc3FhNpz.esm.js.map} +1 -1
  86. package/dist/chunks/{custom-form-CdvLAqkM.js → custom-form-CS2SL4Bf.js} +6 -6
  87. package/dist/chunks/{custom-form-CdvLAqkM.js.map → custom-form-CS2SL4Bf.js.map} +1 -1
  88. package/dist/chunks/{dashboard-IQPv8qb9.esm.js → dashboard-BB35K2FP.esm.js} +3 -3
  89. package/dist/chunks/{dashboard-IQPv8qb9.esm.js.map → dashboard-BB35K2FP.esm.js.map} +1 -1
  90. package/dist/chunks/{dashboard-Bm3qCxyp.js → dashboard-BhnP9p8v.js} +3 -3
  91. package/dist/chunks/{dashboard-Bm3qCxyp.js.map → dashboard-BhnP9p8v.js.map} +1 -1
  92. package/dist/chunks/{dynamic-report-CdpkTznt.esm.js → dynamic-report-DqEqYFwB.esm.js} +4 -4
  93. package/dist/chunks/{dynamic-report-CdpkTznt.esm.js.map → dynamic-report-DqEqYFwB.esm.js.map} +1 -1
  94. package/dist/chunks/{dynamic-report-Dfk4XuTh.js → dynamic-report-o7m1ueU6.js} +4 -4
  95. package/dist/chunks/{dynamic-report-Dfk4XuTh.js.map → dynamic-report-o7m1ueU6.js.map} +1 -1
  96. package/dist/chunks/{dynamic-rows-mkgzMFjL.js → dynamic-rows-BExLpMXN.js} +2 -2
  97. package/dist/chunks/{dynamic-rows-mkgzMFjL.js.map → dynamic-rows-BExLpMXN.js.map} +1 -1
  98. package/dist/chunks/{dynamic-rows-D64m-Z1j.esm.js → dynamic-rows-aRfOvy43.esm.js} +2 -2
  99. package/dist/chunks/{dynamic-rows-D64m-Z1j.esm.js.map → dynamic-rows-aRfOvy43.esm.js.map} +1 -1
  100. package/dist/chunks/{dynamic-text-editor-Bq0VZD_0.esm.js → dynamic-text-editor-CdnVDWA3.esm.js} +2 -2
  101. package/dist/chunks/{dynamic-text-editor-Bq0VZD_0.esm.js.map → dynamic-text-editor-CdnVDWA3.esm.js.map} +1 -1
  102. package/dist/chunks/{dynamic-text-editor-DvQu_USR.js → dynamic-text-editor-CgisZkH-.js} +2 -2
  103. package/dist/chunks/{dynamic-text-editor-DvQu_USR.js.map → dynamic-text-editor-CgisZkH-.js.map} +1 -1
  104. package/dist/chunks/{edit-section-modal-JhrBM1O-.esm.js → edit-section-modal-CKzvbOam.esm.js} +2 -2
  105. package/dist/chunks/{edit-section-modal-JhrBM1O-.esm.js.map → edit-section-modal-CKzvbOam.esm.js.map} +1 -1
  106. package/dist/chunks/{edit-section-modal-BptwBP9b.js → edit-section-modal-R-TdrVeI.js} +2 -2
  107. package/dist/chunks/{edit-section-modal-BptwBP9b.js.map → edit-section-modal-R-TdrVeI.js.map} +1 -1
  108. package/dist/chunks/{filter-DnQLBnHo.esm.js → filter-BVY1nrjv.esm.js} +11 -5
  109. package/dist/chunks/filter-BVY1nrjv.esm.js.map +1 -0
  110. package/dist/chunks/{filter-D9Cx0Qtl.js → filter-BXScmUKA.js} +10 -4
  111. package/dist/chunks/filter-BXScmUKA.js.map +1 -0
  112. package/dist/chunks/{footer-lIzpfeIl.esm.js → footer-BEt1R0BF.esm.js} +2 -2
  113. package/dist/chunks/{footer-lIzpfeIl.esm.js.map → footer-BEt1R0BF.esm.js.map} +1 -1
  114. package/dist/chunks/{footer-bayElP1z.js → footer-DJZ4K1n0.js} +2 -2
  115. package/dist/chunks/{footer-bayElP1z.js.map → footer-DJZ4K1n0.js.map} +1 -1
  116. package/dist/chunks/{form-fields-BwxsvB9F.js → form-fields-COjlUd_z.js} +3 -3
  117. package/dist/chunks/{form-fields-BwxsvB9F.js.map → form-fields-COjlUd_z.js.map} +1 -1
  118. package/dist/chunks/{form-fields-BrayYpMV.esm.js → form-fields-CwtBhyBW.esm.js} +3 -3
  119. package/dist/chunks/{form-fields-BrayYpMV.esm.js.map → form-fields-CwtBhyBW.esm.js.map} +1 -1
  120. package/dist/chunks/{form-parser-Bvj6Zc2Z.js → form-parser-09IqF2B8.js} +2 -2
  121. package/dist/chunks/{form-parser-Bvj6Zc2Z.js.map → form-parser-09IqF2B8.js.map} +1 -1
  122. package/dist/chunks/{form-parser-BJRyYk98.esm.js → form-parser-DS9jYKXb.esm.js} +2 -2
  123. package/dist/chunks/{form-parser-BJRyYk98.esm.js.map → form-parser-DS9jYKXb.esm.js.map} +1 -1
  124. package/dist/chunks/{form-section-rVAcKmDS.js → form-section-94yk-i7O.js} +6 -6
  125. package/dist/chunks/{form-section-rVAcKmDS.js.map → form-section-94yk-i7O.js.map} +1 -1
  126. package/dist/chunks/{form-section-ooB5n5n5.esm.js → form-section-Ce7gW7nw.esm.js} +6 -6
  127. package/dist/chunks/{form-section-ooB5n5n5.esm.js.map → form-section-Ce7gW7nw.esm.js.map} +1 -1
  128. package/dist/chunks/{fullScreen-DS2-TuVH.esm.js → fullScreen-BGLa_jyN.esm.js} +3 -3
  129. package/dist/chunks/{fullScreen-DS2-TuVH.esm.js.map → fullScreen-BGLa_jyN.esm.js.map} +1 -1
  130. package/dist/chunks/{fullScreen-B6c2INGa.js → fullScreen-CeM0jO6X.js} +3 -3
  131. package/dist/chunks/{fullScreen-B6c2INGa.js.map → fullScreen-CeM0jO6X.js.map} +1 -1
  132. package/dist/chunks/{global-search-D0pVrSP1.js → global-search-BXrlGacV.js} +2 -2
  133. package/dist/chunks/{global-search-D0pVrSP1.js.map → global-search-BXrlGacV.js.map} +1 -1
  134. package/dist/chunks/{global-search-C3ZxZGB8.esm.js → global-search-Da6V1hCw.esm.js} +2 -2
  135. package/dist/chunks/{global-search-C3ZxZGB8.esm.js.map → global-search-Da6V1hCw.esm.js.map} +1 -1
  136. package/dist/chunks/{grid-view-Br1N0sdf.esm.js → grid-view-BFr24B5L.esm.js} +2 -2
  137. package/dist/chunks/{grid-view-Br1N0sdf.esm.js.map → grid-view-BFr24B5L.esm.js.map} +1 -1
  138. package/dist/chunks/{grid-view-DhnSmYaa.js → grid-view-DZce2PjW.js} +2 -2
  139. package/dist/chunks/{grid-view-DhnSmYaa.js.map → grid-view-DZce2PjW.js.map} +1 -1
  140. package/dist/chunks/{header-Bv0VHJ6c.js → header-Crrg21ks.js} +3 -3
  141. package/dist/chunks/{header-Bv0VHJ6c.js.map → header-Crrg21ks.js.map} +1 -1
  142. package/dist/chunks/{header-Dob8vfUx.esm.js → header-aasqgICS.esm.js} +3 -3
  143. package/dist/chunks/{header-Dob8vfUx.esm.js.map → header-aasqgICS.esm.js.map} +1 -1
  144. package/dist/chunks/{header-enhanced-Donxzxfw.esm.js → header-enhanced-CSAtP4BI.esm.js} +2 -2
  145. package/dist/chunks/{header-enhanced-Donxzxfw.esm.js.map → header-enhanced-CSAtP4BI.esm.js.map} +1 -1
  146. package/dist/chunks/{header-enhanced-CTtr4Pe-.js → header-enhanced-Y4qTE0ff.js} +2 -2
  147. package/dist/chunks/{header-enhanced-CTtr4Pe-.js.map → header-enhanced-Y4qTE0ff.js.map} +1 -1
  148. package/dist/chunks/{index-ALqg8b5U.esm.js → index-rN4vc8IA.esm.js} +2 -2
  149. package/dist/chunks/{index-ALqg8b5U.esm.js.map → index-rN4vc8IA.esm.js.map} +1 -1
  150. package/dist/chunks/{inline-edit-fields-Betje5F6.js → inline-edit-fields-BNvosaTN.js} +3 -3
  151. package/dist/chunks/{inline-edit-fields-Betje5F6.js.map → inline-edit-fields-BNvosaTN.js.map} +1 -1
  152. package/dist/chunks/{inline-edit-fields-tkexTfJu.esm.js → inline-edit-fields-CzTMCbzn.esm.js} +3 -3
  153. package/dist/chunks/{inline-edit-fields-tkexTfJu.esm.js.map → inline-edit-fields-CzTMCbzn.esm.js.map} +1 -1
  154. package/dist/chunks/{inventory-reports-title-bar-BF7AuiaE.js → inventory-reports-title-bar-BvhyLQ4V.js} +3 -3
  155. package/dist/chunks/{inventory-reports-title-bar-BF7AuiaE.js.map → inventory-reports-title-bar-BvhyLQ4V.js.map} +1 -1
  156. package/dist/chunks/{inventory-reports-title-bar-C7sOZnCf.esm.js → inventory-reports-title-bar-pf_78LUZ.esm.js} +3 -3
  157. package/dist/chunks/{inventory-reports-title-bar-C7sOZnCf.esm.js.map → inventory-reports-title-bar-pf_78LUZ.esm.js.map} +1 -1
  158. package/dist/chunks/{item-response-details-Detcy-bT.js → item-response-details-7iAPYOTv.js} +4 -4
  159. package/dist/chunks/{item-response-details-Detcy-bT.js.map → item-response-details-7iAPYOTv.js.map} +1 -1
  160. package/dist/chunks/{item-response-details-oFDZqbwX.esm.js → item-response-details-CSHehVMS.esm.js} +4 -4
  161. package/dist/chunks/{item-response-details-oFDZqbwX.esm.js.map → item-response-details-CSHehVMS.esm.js.map} +1 -1
  162. package/dist/chunks/{listing-kWwVSCCH.js → listing-9zOaeEtm.js} +4 -4
  163. package/dist/chunks/{listing-kWwVSCCH.js.map → listing-9zOaeEtm.js.map} +1 -1
  164. package/dist/chunks/{listing-BIwPAwDj.esm.js → listing-CPGsuBMA.esm.js} +4 -4
  165. package/dist/chunks/{listing-BIwPAwDj.esm.js.map → listing-CPGsuBMA.esm.js.map} +1 -1
  166. package/dist/chunks/{location-select-CrTin8mq.js → location-select-BOYOUv3I.js} +2 -2
  167. package/dist/chunks/{location-select-CrTin8mq.js.map → location-select-BOYOUv3I.js.map} +1 -1
  168. package/dist/chunks/{location-select-Co3yS2Qn.esm.js → location-select-Dl7zUTHR.esm.js} +2 -2
  169. package/dist/chunks/{location-select-Co3yS2Qn.esm.js.map → location-select-Dl7zUTHR.esm.js.map} +1 -1
  170. package/dist/chunks/{material-editable-table-ChD0DhXw.esm.js → material-editable-table-B8ed5YX6.esm.js} +3 -3
  171. package/dist/chunks/{material-editable-table-ChD0DhXw.esm.js.map → material-editable-table-B8ed5YX6.esm.js.map} +1 -1
  172. package/dist/chunks/{material-editable-table-CjtgcYTA.js → material-editable-table-Z_wQXpjN.js} +3 -3
  173. package/dist/chunks/{material-editable-table-CjtgcYTA.js.map → material-editable-table-Z_wQXpjN.js.map} +1 -1
  174. package/dist/chunks/media-BWriA8Un.esm.js +45 -0
  175. package/dist/chunks/{media-BNHjErng.esm.js.map → media-BWriA8Un.esm.js.map} +1 -1
  176. package/dist/chunks/media-D5-I9adp.js +44 -0
  177. package/dist/chunks/media-D5-I9adp.js.map +1 -0
  178. package/dist/chunks/{module-reducer-wwGUCVCs.js → module-reducer-BFrec-43.js} +2 -2
  179. package/dist/chunks/{module-reducer-wwGUCVCs.js.map → module-reducer-BFrec-43.js.map} +1 -1
  180. package/dist/chunks/{module-reducer-DJnOQQeS.esm.js → module-reducer-Bxu3--QK.esm.js} +2 -2
  181. package/dist/chunks/{module-reducer-DJnOQQeS.esm.js.map → module-reducer-Bxu3--QK.esm.js.map} +1 -1
  182. package/dist/chunks/{notification-menu-D9NWAvoZ.js → notification-menu-B7Se4fO6.js} +2 -2
  183. package/dist/chunks/{notification-menu-D9NWAvoZ.js.map → notification-menu-B7Se4fO6.js.map} +1 -1
  184. package/dist/chunks/{notification-menu-Cm55sfoj.esm.js → notification-menu-BNUazD23.esm.js} +3 -3
  185. package/dist/chunks/{notification-menu-Cm55sfoj.esm.js.map → notification-menu-BNUazD23.esm.js.map} +1 -1
  186. package/dist/chunks/{page-action-Drb4HiNc.js → page-action-BvfLbawr.js} +4 -4
  187. package/dist/chunks/{page-action-Drb4HiNc.js.map → page-action-BvfLbawr.js.map} +1 -1
  188. package/dist/chunks/{page-action-B3Jh4ITW.esm.js → page-action-C8VxjK9c.esm.js} +4 -4
  189. package/dist/chunks/{page-action-B3Jh4ITW.esm.js.map → page-action-C8VxjK9c.esm.js.map} +1 -1
  190. package/dist/chunks/{page-navigator-Cp0hmfhW.esm.js → page-navigator-GoMH0fMw.esm.js} +2 -2
  191. package/dist/chunks/{page-navigator-Cp0hmfhW.esm.js.map → page-navigator-GoMH0fMw.esm.js.map} +1 -1
  192. package/dist/chunks/{page-navigator-Bt1ZX2Uf.js → page-navigator-SUYJqdnx.js} +2 -2
  193. package/dist/chunks/{page-navigator-Bt1ZX2Uf.js.map → page-navigator-SUYJqdnx.js.map} +1 -1
  194. package/dist/chunks/{page-view-BshoJwrs.js → page-view-BortZKhR.js} +3 -3
  195. package/dist/chunks/{page-view-BshoJwrs.js.map → page-view-BortZKhR.js.map} +1 -1
  196. package/dist/chunks/{page-view-DC-S9vtU.esm.js → page-view-DRQ3PFJ7.esm.js} +3 -3
  197. package/dist/chunks/{page-view-DC-S9vtU.esm.js.map → page-view-DRQ3PFJ7.esm.js.map} +1 -1
  198. package/dist/chunks/{quick-approval-modal-M4mOc3VS.esm.js → quick-approval-modal-DXAqjdcl.esm.js} +2 -2
  199. package/dist/chunks/{quick-approval-modal-M4mOc3VS.esm.js.map → quick-approval-modal-DXAqjdcl.esm.js.map} +1 -1
  200. package/dist/chunks/{quick-approval-modal-Ckrkmjkl.js → quick-approval-modal-dc5AaSxs.js} +2 -2
  201. package/dist/chunks/{quick-approval-modal-Ckrkmjkl.js.map → quick-approval-modal-dc5AaSxs.js.map} +1 -1
  202. package/dist/chunks/{reducer-BHyZsdtk.js → reducer-BEMhiGFQ.js} +2 -2
  203. package/dist/chunks/{reducer-BHyZsdtk.js.map → reducer-BEMhiGFQ.js.map} +1 -1
  204. package/dist/chunks/{reducer-CUXI9fY3.esm.js → reducer-BjHl_KLr.esm.js} +2 -2
  205. package/dist/chunks/{reducer-CUXI9fY3.esm.js.map → reducer-BjHl_KLr.esm.js.map} +1 -1
  206. package/dist/chunks/{reducer-sGv2FmSj.esm.js → reducer-BkCNzjBL.esm.js} +3 -3
  207. package/dist/chunks/{reducer-sGv2FmSj.esm.js.map → reducer-BkCNzjBL.esm.js.map} +1 -1
  208. package/dist/chunks/{reducer-CrtUk_W3.esm.js → reducer-CSKSBC88.esm.js} +3 -3
  209. package/dist/chunks/{reducer-CrtUk_W3.esm.js.map → reducer-CSKSBC88.esm.js.map} +1 -1
  210. package/dist/chunks/{reducer-rdfC4LIG.esm.js → reducer-CiLCj0Py.esm.js} +2 -2
  211. package/dist/chunks/{reducer-rdfC4LIG.esm.js.map → reducer-CiLCj0Py.esm.js.map} +1 -1
  212. package/dist/chunks/{reducer-DPXa1mB5.js → reducer-CkWclHbN.js} +2 -2
  213. package/dist/chunks/{reducer-DPXa1mB5.js.map → reducer-CkWclHbN.js.map} +1 -1
  214. package/dist/chunks/{reducer-Cwtyv5b4.js → reducer-EEoFGAVV.js} +3 -3
  215. package/dist/chunks/{reducer-Cwtyv5b4.js.map → reducer-EEoFGAVV.js.map} +1 -1
  216. package/dist/chunks/{reducer-BTBP8UD4.esm.js → reducer-L9HIXcI1.esm.js} +2 -2
  217. package/dist/chunks/{reducer-BTBP8UD4.esm.js.map → reducer-L9HIXcI1.esm.js.map} +1 -1
  218. package/dist/chunks/{reducer-CVG2dtjZ.js → reducer-RjoBDU1j.js} +2 -2
  219. package/dist/chunks/{reducer-CVG2dtjZ.js.map → reducer-RjoBDU1j.js.map} +1 -1
  220. package/dist/chunks/{reducer-ujMQ0L5_.js → reducer-yTOIeGFg.js} +2 -2
  221. package/dist/chunks/{reducer-ujMQ0L5_.js.map → reducer-yTOIeGFg.js.map} +1 -1
  222. package/dist/chunks/{reports-title-bar-B8JTn7Ul.esm.js → reports-title-bar-BJ7NkV9U.esm.js} +4 -4
  223. package/dist/chunks/{reports-title-bar-B8JTn7Ul.esm.js.map → reports-title-bar-BJ7NkV9U.esm.js.map} +1 -1
  224. package/dist/chunks/{reports-title-bar-BJ7A6SmB.js → reports-title-bar-CdO0ixSd.js} +4 -4
  225. package/dist/chunks/{reports-title-bar-BJ7A6SmB.js.map → reports-title-bar-CdO0ixSd.js.map} +1 -1
  226. package/dist/chunks/{routes-Cs2E7oAc.js → routes-CFCfCWmQ.js} +3 -3
  227. package/dist/chunks/{routes-Cs2E7oAc.js.map → routes-CFCfCWmQ.js.map} +1 -1
  228. package/dist/chunks/{routes-CoCmY90I.esm.js → routes-CIaAl7t8.esm.js} +3 -3
  229. package/dist/chunks/{routes-CoCmY90I.esm.js.map → routes-CIaAl7t8.esm.js.map} +1 -1
  230. package/dist/chunks/{schedule-report-xnMShSOU.js → schedule-report-BP_lF8CG.js} +6 -6
  231. package/dist/chunks/{schedule-report-xnMShSOU.js.map → schedule-report-BP_lF8CG.js.map} +1 -1
  232. package/dist/chunks/{schedule-report-B5nyK1uE.esm.js → schedule-report-Buvq9E-k.esm.js} +6 -6
  233. package/dist/chunks/{schedule-report-B5nyK1uE.esm.js.map → schedule-report-Buvq9E-k.esm.js.map} +1 -1
  234. package/dist/chunks/{schedule-report-modal-LKJLZBDX.js → schedule-report-modal-COImNOlJ.js} +3 -3
  235. package/dist/chunks/{schedule-report-modal-LKJLZBDX.js.map → schedule-report-modal-COImNOlJ.js.map} +1 -1
  236. package/dist/chunks/{schedule-report-modal-Dcld1u__.esm.js → schedule-report-modal-CvfPn4bO.esm.js} +3 -3
  237. package/dist/chunks/{schedule-report-modal-Dcld1u__.esm.js.map → schedule-report-modal-CvfPn4bO.esm.js.map} +1 -1
  238. package/dist/chunks/{searchable-select-BNErtrmc.esm.js → searchable-select-Bu17d6NI.esm.js} +6 -6
  239. package/dist/chunks/{searchable-select-BNErtrmc.esm.js.map → searchable-select-Bu17d6NI.esm.js.map} +1 -1
  240. package/dist/chunks/{searchable-select-CvmvzflO.js → searchable-select-DWAOdcXD.js} +6 -6
  241. package/dist/chunks/{searchable-select-CvmvzflO.js.map → searchable-select-DWAOdcXD.js.map} +1 -1
  242. package/dist/chunks/{share-modal-7-fMdfwB.js → share-modal-C27qwY53.js} +3 -3
  243. package/dist/chunks/{share-modal-7-fMdfwB.js.map → share-modal-C27qwY53.js.map} +1 -1
  244. package/dist/chunks/{share-modal-B7bmQDz6.esm.js → share-modal-e1Ln_EkF.esm.js} +3 -3
  245. package/dist/chunks/{share-modal-B7bmQDz6.esm.js.map → share-modal-e1Ln_EkF.esm.js.map} +1 -1
  246. package/dist/chunks/{share-modal-enhanced-K3F95FBr.js → share-modal-enhanced-AISjjeWC.js} +2 -2
  247. package/dist/chunks/{share-modal-enhanced-K3F95FBr.js.map → share-modal-enhanced-AISjjeWC.js.map} +1 -1
  248. package/dist/chunks/{share-modal-enhanced-LzvFBkw7.esm.js → share-modal-enhanced-De3P9VK_.esm.js} +2 -2
  249. package/dist/chunks/{share-modal-enhanced-LzvFBkw7.esm.js.map → share-modal-enhanced-De3P9VK_.esm.js.map} +1 -1
  250. package/dist/chunks/{sidebarScreen-Cu3so7yG.esm.js → sidebarScreen-DrXQgFfD.esm.js} +4 -4
  251. package/dist/chunks/{sidebarScreen-Cu3so7yG.esm.js.map → sidebarScreen-DrXQgFfD.esm.js.map} +1 -1
  252. package/dist/chunks/{sidebarScreen-D6RdJmE_.js → sidebarScreen-fc0K8AIc.js} +4 -4
  253. package/dist/chunks/{sidebarScreen-D6RdJmE_.js.map → sidebarScreen-fc0K8AIc.js.map} +1 -1
  254. package/dist/chunks/{store-dnWK9iUF.js → store-C2Jq1vUE.js} +6 -6
  255. package/dist/chunks/{store-dnWK9iUF.js.map → store-C2Jq1vUE.js.map} +1 -1
  256. package/dist/chunks/{store-BJ-oYaJ9.esm.js → store-Fe4VwbF_.esm.js} +6 -6
  257. package/dist/chunks/{store-BJ-oYaJ9.esm.js.map → store-Fe4VwbF_.esm.js.map} +1 -1
  258. package/dist/chunks/{table-pjhCRENP.esm.js → table-Co5_7CEc.esm.js} +3 -3
  259. package/dist/chunks/{table-pjhCRENP.esm.js.map → table-Co5_7CEc.esm.js.map} +1 -1
  260. package/dist/chunks/{table-form-7QGuKo_u.js → table-form-BDB6k6Ka.js} +2 -2
  261. package/dist/chunks/{table-form-7QGuKo_u.js.map → table-form-BDB6k6Ka.js.map} +1 -1
  262. package/dist/chunks/{table-form-CNutzib7.esm.js → table-form-CL8axzXB.esm.js} +2 -2
  263. package/dist/chunks/{table-form-CNutzib7.esm.js.map → table-form-CL8axzXB.esm.js.map} +1 -1
  264. package/dist/chunks/{table-yoFD3IYO.js → table-pSQQBEqC.js} +3 -3
  265. package/dist/chunks/{table-yoFD3IYO.js.map → table-pSQQBEqC.js.map} +1 -1
  266. package/dist/chunks/{template-editor-router-BSESCNID.js → template-editor-router-BZbxO3bj.js} +2 -2
  267. package/dist/chunks/{template-editor-router-BSESCNID.js.map → template-editor-router-BZbxO3bj.js.map} +1 -1
  268. package/dist/chunks/{template-editor-router-Blq_7tbC.esm.js → template-editor-router-DkSQldFD.esm.js} +2 -2
  269. package/dist/chunks/{template-editor-router-Blq_7tbC.esm.js.map → template-editor-router-DkSQldFD.esm.js.map} +1 -1
  270. package/dist/chunks/{template-modal-jF46oWQM.js → template-modal-CtcB5ZXg.js} +2 -2
  271. package/dist/chunks/{template-modal-jF46oWQM.js.map → template-modal-CtcB5ZXg.js.map} +1 -1
  272. package/dist/chunks/{template-modal-DP-8WrJA.esm.js → template-modal-GAKNz6Ju.esm.js} +3 -3
  273. package/dist/chunks/{template-modal-DP-8WrJA.esm.js.map → template-modal-GAKNz6Ju.esm.js.map} +1 -1
  274. package/dist/chunks/{template-name-modal-Dctn8t3t.esm.js → template-name-modal-CLROXhxo.esm.js} +2 -2
  275. package/dist/chunks/{template-name-modal-Dctn8t3t.esm.js.map → template-name-modal-CLROXhxo.esm.js.map} +1 -1
  276. package/dist/chunks/{templates-B9XdPGUq.esm.js → templates-BWZsKOkq.esm.js} +8 -8
  277. package/dist/chunks/{templates-B9XdPGUq.esm.js.map → templates-BWZsKOkq.esm.js.map} +1 -1
  278. package/dist/chunks/{templates-Cb8eycox.js → templates-CWeYr33-.js} +7 -7
  279. package/dist/chunks/{templates-Cb8eycox.js.map → templates-CWeYr33-.js.map} +1 -1
  280. package/dist/chunks/{text-measurement-Ds7tr1Kv.esm.js → text-measurement-BDjRfcdG.esm.js} +2 -2
  281. package/dist/chunks/{text-measurement-Ds7tr1Kv.esm.js.map → text-measurement-BDjRfcdG.esm.js.map} +1 -1
  282. package/dist/chunks/{text-measurement-7rGbhzLN.js → text-measurement-DRYlij2S.js} +2 -2
  283. package/dist/chunks/{text-measurement-7rGbhzLN.js.map → text-measurement-DRYlij2S.js.map} +1 -1
  284. package/dist/chunks/{translations-B1tUxNsa.esm.js → translations-AfCWpvAq.esm.js} +3 -3
  285. package/dist/chunks/{translations-B1tUxNsa.esm.js.map → translations-AfCWpvAq.esm.js.map} +1 -1
  286. package/dist/chunks/{translations-C8G8AtUJ.js → translations-BHuYJsWp.js} +2 -2
  287. package/dist/chunks/{translations-C8G8AtUJ.js.map → translations-BHuYJsWp.js.map} +1 -1
  288. package/dist/chunks/{uom-field-wrapper-MYSrjipD.esm.js → uom-field-wrapper-Ci2KCrFu.esm.js} +2 -2
  289. package/dist/chunks/{uom-field-wrapper-MYSrjipD.esm.js.map → uom-field-wrapper-Ci2KCrFu.esm.js.map} +1 -1
  290. package/dist/chunks/{uom-field-wrapper-BHmSiaXi.js → uom-field-wrapper-qe_kL90T.js} +2 -2
  291. package/dist/chunks/{uom-field-wrapper-BHmSiaXi.js.map → uom-field-wrapper-qe_kL90T.js.map} +1 -1
  292. package/dist/chunks/{upload-excel-Bg-8pqKr.esm.js → upload-excel-BgU9rR6Y.esm.js} +2 -2
  293. package/dist/chunks/{upload-excel-Bg-8pqKr.esm.js.map → upload-excel-BgU9rR6Y.esm.js.map} +1 -1
  294. package/dist/chunks/{upload-excel-De5rbiL8.js → upload-excel-Dr6K-CAH.js} +2 -2
  295. package/dist/chunks/{upload-excel-De5rbiL8.js.map → upload-excel-Dr6K-CAH.js.map} +1 -1
  296. package/dist/chunks/upload-media-BE0tktWj.js +522 -0
  297. package/dist/chunks/upload-media-BE0tktWj.js.map +1 -0
  298. package/dist/chunks/upload-media-OmufgJmq.esm.js +523 -0
  299. package/dist/chunks/upload-media-OmufgJmq.esm.js.map +1 -0
  300. package/dist/chunks/{use-translations-CKS4yvGw.js → use-translations-C1Ggg0W6.js} +2 -2
  301. package/dist/chunks/{use-translations-CKS4yvGw.js.map → use-translations-C1Ggg0W6.js.map} +1 -1
  302. package/dist/chunks/{use-translations-CwqmNNF8.esm.js → use-translations-lguGhn5S.esm.js} +2 -2
  303. package/dist/chunks/{use-translations-CwqmNNF8.esm.js.map → use-translations-lguGhn5S.esm.js.map} +1 -1
  304. package/dist/chunks/{useAccountSetting-CQKsZpDR.esm.js → useAccountSetting-DcGLpWby.esm.js} +2 -2
  305. package/dist/chunks/{useAccountSetting-CQKsZpDR.esm.js.map → useAccountSetting-DcGLpWby.esm.js.map} +1 -1
  306. package/dist/chunks/{useAccountSetting-De-p6HcN.js → useAccountSetting-ouGcJ20y.js} +2 -2
  307. package/dist/chunks/{useAccountSetting-De-p6HcN.js.map → useAccountSetting-ouGcJ20y.js.map} +1 -1
  308. package/dist/chunks/{useCheckSkuAndName-vsjrM5X-.js → useCheckSkuAndName-CYsOfbJv.js} +2 -2
  309. package/dist/chunks/{useCheckSkuAndName-vsjrM5X-.js.map → useCheckSkuAndName-CYsOfbJv.js.map} +1 -1
  310. package/dist/chunks/{useCheckSkuAndName-DzRLmhaW.esm.js → useCheckSkuAndName-Hd41btzY.esm.js} +2 -2
  311. package/dist/chunks/{useCheckSkuAndName-DzRLmhaW.esm.js.map → useCheckSkuAndName-Hd41btzY.esm.js.map} +1 -1
  312. package/dist/chunks/{useReduxIntegration-B5pZYr9t.js → useReduxIntegration-4ziMWLT9.js} +2 -2
  313. package/dist/chunks/{useReduxIntegration-B5pZYr9t.js.map → useReduxIntegration-4ziMWLT9.js.map} +1 -1
  314. package/dist/chunks/{useReduxIntegration-D5y8PRkW.esm.js → useReduxIntegration-BL_5V7QV.esm.js} +2 -2
  315. package/dist/chunks/{useReduxIntegration-D5y8PRkW.esm.js.map → useReduxIntegration-BL_5V7QV.esm.js.map} +1 -1
  316. package/dist/chunks/{useUniquenessCheck-Pm-163jN.esm.js → useUniquenessCheck-DmKGritZ.esm.js} +2 -2
  317. package/dist/chunks/{useUniquenessCheck-Pm-163jN.esm.js.map → useUniquenessCheck-DmKGritZ.esm.js.map} +1 -1
  318. package/dist/chunks/{useUniquenessCheck-DZ3mosj1.js → useUniquenessCheck-L2KUVT1S.js} +2 -2
  319. package/dist/chunks/{useUniquenessCheck-DZ3mosj1.js.map → useUniquenessCheck-L2KUVT1S.js.map} +1 -1
  320. package/dist/chunks/{useVendorAICompare-BeU9KXTT.esm.js → useVendorAICompare-Bw0EuWHc.esm.js} +2 -2
  321. package/dist/chunks/{useVendorAICompare-BeU9KXTT.esm.js.map → useVendorAICompare-Bw0EuWHc.esm.js.map} +1 -1
  322. package/dist/chunks/{useVendorAICompare-DhZckL5o.js → useVendorAICompare-DWlQ7-7s.js} +2 -2
  323. package/dist/chunks/{useVendorAICompare-DhZckL5o.js.map → useVendorAICompare-DWlQ7-7s.js.map} +1 -1
  324. package/dist/chunks/value-editor-DBBKG2TA.js +261 -0
  325. package/dist/chunks/value-editor-DBBKG2TA.js.map +1 -0
  326. package/dist/chunks/value-editor-DR1T0F4i.esm.js +262 -0
  327. package/dist/chunks/value-editor-DR1T0F4i.esm.js.map +1 -0
  328. package/dist/chunks/{vendor-ai-summary-C-_Tmn05.js → vendor-ai-summary-1wlm-nT1.js} +3 -3
  329. package/dist/chunks/{vendor-ai-summary-C-_Tmn05.js.map → vendor-ai-summary-1wlm-nT1.js.map} +1 -1
  330. package/dist/chunks/{vendor-ai-summary-VtIIS5e1.esm.js → vendor-ai-summary-YcXA_SEB.esm.js} +3 -3
  331. package/dist/chunks/{vendor-ai-summary-VtIIS5e1.esm.js.map → vendor-ai-summary-YcXA_SEB.esm.js.map} +1 -1
  332. package/dist/components/action-bar/action-bar/index.esm.js +1 -1
  333. package/dist/components/action-bar/action-bar/index.js +1 -1
  334. package/dist/components/action-bar/index.esm.js +1 -1
  335. package/dist/components/action-bar/index.js +1 -1
  336. package/dist/components/address-modal/index.esm.js +1 -1
  337. package/dist/components/address-modal/index.js +1 -1
  338. package/dist/components/ai-summary/ai-summary/index.esm.js +1 -1
  339. package/dist/components/ai-summary/ai-summary/index.js +1 -1
  340. package/dist/components/ai-summary/index.esm.js +1 -1
  341. package/dist/components/ai-summary/index.js +1 -1
  342. package/dist/components/appbar/appbar/index.esm.js +1 -1
  343. package/dist/components/appbar/appbar/index.js +1 -1
  344. package/dist/components/appbar/index.esm.js +1 -1
  345. package/dist/components/appbar/index.js +1 -1
  346. package/dist/components/approval-wrapper/approval-wrapper/index.esm.js +1 -1
  347. package/dist/components/approval-wrapper/approval-wrapper/index.js +1 -1
  348. package/dist/components/approval-wrapper/index.esm.js +1 -1
  349. package/dist/components/approval-wrapper/index.js +1 -1
  350. package/dist/components/chat-bot/index.esm.js +1 -1
  351. package/dist/components/chat-bot/index.js +1 -1
  352. package/dist/components/custom-forms/FORMS/index.esm.js +1 -1
  353. package/dist/components/custom-forms/FORMS/index.js +1 -1
  354. package/dist/components/custom-forms/grid-view/grid-view/index.esm.js +1 -1
  355. package/dist/components/custom-forms/grid-view/grid-view/index.js +1 -1
  356. package/dist/components/custom-forms/grid-view/index.esm.js +1 -1
  357. package/dist/components/custom-forms/grid-view/index.js +1 -1
  358. package/dist/components/custom-forms/index.esm.js +2 -2
  359. package/dist/components/custom-forms/index.js +2 -2
  360. package/dist/components/department-add-modal/index.esm.js +1 -1
  361. package/dist/components/department-add-modal/index.js +1 -1
  362. package/dist/components/designation-add-modal/index.esm.js +1 -1
  363. package/dist/components/designation-add-modal/index.js +1 -1
  364. package/dist/components/editor/custom-editor/index.esm.js +1 -1
  365. package/dist/components/editor/custom-editor/index.js +1 -1
  366. package/dist/components/editor/index.esm.js +1 -1
  367. package/dist/components/editor/index.js +1 -1
  368. package/dist/components/examples/FlexibleReduxExample/index.esm.js +1 -1
  369. package/dist/components/examples/FlexibleReduxExample/index.js +1 -1
  370. package/dist/components/examples/index.esm.js +1 -1
  371. package/dist/components/examples/index.js +1 -1
  372. package/dist/components/filter/components/index.esm.js +1 -1
  373. package/dist/components/filter/components/index.js +1 -1
  374. package/dist/components/filter/components/value-editor/index.esm.js +1 -1
  375. package/dist/components/filter/components/value-editor/index.js +1 -1
  376. package/dist/components/filter/fields/index.esm.js +1 -0
  377. package/dist/components/filter/fields/index.esm.js.map +1 -1
  378. package/dist/components/filter/fields/index.js +1 -0
  379. package/dist/components/filter/fields/index.js.map +1 -1
  380. package/dist/components/filter/filter/index.esm.js +1 -1
  381. package/dist/components/filter/filter/index.js +1 -1
  382. package/dist/components/filter/index.esm.js +2 -2
  383. package/dist/components/filter/index.js +2 -2
  384. package/dist/components/footer/footer/index.esm.js +1 -1
  385. package/dist/components/footer/footer/index.js +1 -1
  386. package/dist/components/footer/index.esm.js +1 -1
  387. package/dist/components/footer/index.js +1 -1
  388. package/dist/components/form-control/form-builder/form-builder-element/dynamic-dependent-field/index.esm.js +1 -1
  389. package/dist/components/form-control/form-builder/form-builder-element/dynamic-dependent-field/index.js +1 -1
  390. package/dist/components/form-control/form-builder/form-builder-element/dynamic-select/index.esm.js +1 -1
  391. package/dist/components/form-control/form-builder/form-builder-element/dynamic-select/index.js +1 -1
  392. package/dist/components/form-control/form-builder/form-builder-element/dynamic-text-editor/index.esm.js +1 -1
  393. package/dist/components/form-control/form-builder/form-builder-element/dynamic-text-editor/index.js +1 -1
  394. package/dist/components/form-control/form-builder/form-builder-element/fixed-asset-item-add-modal/index.esm.js +1 -1
  395. package/dist/components/form-control/form-builder/form-builder-element/fixed-asset-item-add-modal/index.js +1 -1
  396. package/dist/components/form-control/form-builder/form-builder-element/index.esm.js +5 -5
  397. package/dist/components/form-control/form-builder/form-builder-element/index.js +5 -5
  398. package/dist/components/form-control/form-builder/form-builder-element/location-add-modal/index.esm.js +1 -1
  399. package/dist/components/form-control/form-builder/form-builder-element/location-add-modal/index.js +1 -1
  400. package/dist/components/form-control/form-builder/form-builder-element/media/index.esm.js +1 -1
  401. package/dist/components/form-control/form-builder/form-builder-element/media/index.js +1 -1
  402. package/dist/components/form-control/form-builder/form-builder-element/select-configuration/index.esm.js +1 -1
  403. package/dist/components/form-control/form-builder/form-builder-element/select-configuration/index.js +1 -1
  404. package/dist/components/form-control/form-builder/form-builder-element/table/index.esm.js +1 -1
  405. package/dist/components/form-control/form-builder/form-builder-element/table/index.js +1 -1
  406. package/dist/components/form-control/form-builder/index.esm.js +5 -5
  407. package/dist/components/form-control/form-builder/index.js +5 -5
  408. package/dist/components/form-control/form-parser/form-parser/index.esm.js +1 -1
  409. package/dist/components/form-control/form-parser/form-parser/index.js +1 -1
  410. package/dist/components/form-control/form-parser/form-section/index.esm.js +1 -1
  411. package/dist/components/form-control/form-parser/form-section/index.js +1 -1
  412. package/dist/components/form-control/form-parser/index.esm.js +2 -2
  413. package/dist/components/form-control/form-parser/index.js +2 -2
  414. package/dist/components/form-control/index.esm.js +7 -7
  415. package/dist/components/form-control/index.js +7 -7
  416. package/dist/components/header/components/global-search/index.esm.js +1 -1
  417. package/dist/components/header/components/global-search/index.js +1 -1
  418. package/dist/components/header/components/index.esm.js +1 -1
  419. package/dist/components/header/components/index.js +1 -1
  420. package/dist/components/header/components/notification-menu/index.esm.js +1 -1
  421. package/dist/components/header/components/notification-menu/index.js +1 -1
  422. package/dist/components/header/components/notification-menu/notification-menu/index.esm.js +1 -1
  423. package/dist/components/header/components/notification-menu/notification-menu/index.js +1 -1
  424. package/dist/components/header/header/index.esm.js +1 -1
  425. package/dist/components/header/header/index.js +1 -1
  426. package/dist/components/header/header-enhanced/index.esm.js +1 -1
  427. package/dist/components/header/header-enhanced/index.js +1 -1
  428. package/dist/components/header/index.esm.js +5 -5
  429. package/dist/components/header/index.js +5 -5
  430. package/dist/components/header/redux/actionCreator/index.esm.js +1 -1
  431. package/dist/components/header/redux/actionCreator/index.js +1 -1
  432. package/dist/components/header/redux/index.esm.js +2 -2
  433. package/dist/components/header/redux/index.js +2 -2
  434. package/dist/components/header/redux/reducer/index.esm.js +1 -1
  435. package/dist/components/header/redux/reducer/index.js +1 -1
  436. package/dist/components/index.esm.js +38 -38
  437. package/dist/components/index.js +38 -38
  438. package/dist/components/inventory-reports-title-bar/index.esm.js +3 -3
  439. package/dist/components/inventory-reports-title-bar/index.js +3 -3
  440. package/dist/components/inventory-reports-title-bar/inventory-reports-title-bar/index.esm.js +1 -1
  441. package/dist/components/inventory-reports-title-bar/inventory-reports-title-bar/index.js +1 -1
  442. package/dist/components/inventory-reports-title-bar/redux/actionCreator/index.esm.js +1 -1
  443. package/dist/components/inventory-reports-title-bar/redux/actionCreator/index.js +1 -1
  444. package/dist/components/inventory-reports-title-bar/redux/index.esm.js +2 -2
  445. package/dist/components/inventory-reports-title-bar/redux/index.js +2 -2
  446. package/dist/components/inventory-reports-title-bar/redux/reducer/index.esm.js +1 -1
  447. package/dist/components/inventory-reports-title-bar/redux/reducer/index.js +1 -1
  448. package/dist/components/listing/index.esm.js +1 -1
  449. package/dist/components/listing/index.js +1 -1
  450. package/dist/components/listing/listing/index.esm.js +1 -1
  451. package/dist/components/listing/listing/index.js +1 -1
  452. package/dist/components/location-select/index.esm.js +1 -1
  453. package/dist/components/location-select/index.js +1 -1
  454. package/dist/components/material-editable-table/components/index.esm.js +1 -1
  455. package/dist/components/material-editable-table/components/index.js +1 -1
  456. package/dist/components/material-editable-table/components/inline-edit-fields/index.esm.js +1 -1
  457. package/dist/components/material-editable-table/components/inline-edit-fields/index.js +1 -1
  458. package/dist/components/material-editable-table/index.esm.js +2 -2
  459. package/dist/components/material-editable-table/index.js +2 -2
  460. package/dist/components/material-editable-table/material-editable-table/index.esm.js +1 -1
  461. package/dist/components/material-editable-table/material-editable-table/index.js +1 -1
  462. package/dist/components/material-table/components/index.esm.js +1 -1
  463. package/dist/components/material-table/components/index.js +1 -1
  464. package/dist/components/material-table/components/inline-edit-fields/index.esm.js +1 -1
  465. package/dist/components/material-table/components/inline-edit-fields/index.js +1 -1
  466. package/dist/components/material-table/index.esm.js +1 -1
  467. package/dist/components/material-table/index.js +1 -1
  468. package/dist/components/material-table/material-table/index.esm.js +1 -1
  469. package/dist/components/material-table/material-table/index.js +1 -1
  470. package/dist/components/page-navigator/components/index.esm.js +1 -1
  471. package/dist/components/page-navigator/components/index.js +1 -1
  472. package/dist/components/page-navigator/components/page-action/index.esm.js +1 -1
  473. package/dist/components/page-navigator/components/page-action/index.js +1 -1
  474. package/dist/components/page-navigator/index.esm.js +2 -2
  475. package/dist/components/page-navigator/index.js +2 -2
  476. package/dist/components/page-navigator/page-navigator/index.esm.js +1 -1
  477. package/dist/components/page-navigator/page-navigator/index.js +1 -1
  478. package/dist/components/parties-modal/index.esm.js +1 -1
  479. package/dist/components/parties-modal/index.js +1 -1
  480. package/dist/components/parties-modal/parties-modal/index.esm.js +1 -1
  481. package/dist/components/parties-modal/parties-modal/index.js +1 -1
  482. package/dist/components/providers/ERPUIProvider/index.esm.js +1 -1
  483. package/dist/components/providers/ERPUIProvider/index.js +1 -1
  484. package/dist/components/providers/index.esm.js +1 -1
  485. package/dist/components/providers/index.js +1 -1
  486. package/dist/components/quick-approval-modal/index.esm.js +1 -1
  487. package/dist/components/quick-approval-modal/index.js +1 -1
  488. package/dist/components/quick-approval-modal/quick-approval-modal/index.esm.js +1 -1
  489. package/dist/components/quick-approval-modal/quick-approval-modal/index.js +1 -1
  490. package/dist/components/reports/dynamic-report/dynamic-report/index.esm.js +1 -1
  491. package/dist/components/reports/dynamic-report/dynamic-report/index.js +1 -1
  492. package/dist/components/reports/dynamic-report/dynamic-rows/index.esm.js +1 -1
  493. package/dist/components/reports/dynamic-report/dynamic-rows/index.js +1 -1
  494. package/dist/components/reports/dynamic-report/index.esm.js +2 -2
  495. package/dist/components/reports/dynamic-report/index.js +2 -2
  496. package/dist/components/reports/index.esm.js +2 -2
  497. package/dist/components/reports/index.js +2 -2
  498. package/dist/components/reports-title-bar/index.esm.js +3 -3
  499. package/dist/components/reports-title-bar/index.js +3 -3
  500. package/dist/components/reports-title-bar/redux/actionCreator/index.esm.js +1 -1
  501. package/dist/components/reports-title-bar/redux/actionCreator/index.js +1 -1
  502. package/dist/components/reports-title-bar/redux/index.esm.js +2 -2
  503. package/dist/components/reports-title-bar/redux/index.js +2 -2
  504. package/dist/components/reports-title-bar/redux/reducer/index.esm.js +1 -1
  505. package/dist/components/reports-title-bar/redux/reducer/index.js +1 -1
  506. package/dist/components/reports-title-bar/reports-title-bar/index.esm.js +1 -1
  507. package/dist/components/reports-title-bar/reports-title-bar/index.js +1 -1
  508. package/dist/components/rfq-response/index.esm.js +1 -1
  509. package/dist/components/rfq-response/index.js +1 -1
  510. package/dist/components/rfq-response/item-response-details/index.esm.js +1 -1
  511. package/dist/components/rfq-response/item-response-details/index.js +1 -1
  512. package/dist/components/schedule-report/index.esm.js +2 -2
  513. package/dist/components/schedule-report/index.js +2 -2
  514. package/dist/components/schedule-report/schedule-report/index.esm.js +1 -1
  515. package/dist/components/schedule-report/schedule-report/index.js +1 -1
  516. package/dist/components/schedule-report/schedule-report-modal/index.esm.js +1 -1
  517. package/dist/components/schedule-report/schedule-report-modal/index.js +1 -1
  518. package/dist/components/schedule-report/utils/common/index.esm.js +1 -1
  519. package/dist/components/searchable-select/index.esm.js +1 -1
  520. package/dist/components/searchable-select/index.js +1 -1
  521. package/dist/components/share-modal/index.esm.js +4 -4
  522. package/dist/components/share-modal/index.js +4 -4
  523. package/dist/components/share-modal/redux/actionCreator/index.esm.js +1 -1
  524. package/dist/components/share-modal/redux/actionCreator/index.js +1 -1
  525. package/dist/components/share-modal/redux/index.esm.js +2 -2
  526. package/dist/components/share-modal/redux/index.js +2 -2
  527. package/dist/components/share-modal/redux/reducer/index.esm.js +1 -1
  528. package/dist/components/share-modal/redux/reducer/index.js +1 -1
  529. package/dist/components/share-modal/share-modal/index.esm.js +1 -1
  530. package/dist/components/share-modal/share-modal/index.js +1 -1
  531. package/dist/components/share-modal/share-modal-enhanced/index.esm.js +1 -1
  532. package/dist/components/share-modal/share-modal-enhanced/index.js +1 -1
  533. package/dist/components/team-add-modal/index.esm.js +1 -1
  534. package/dist/components/team-add-modal/index.js +1 -1
  535. package/dist/components/uom-field-wrapper/index.esm.js +1 -1
  536. package/dist/components/uom-field-wrapper/index.js +1 -1
  537. package/dist/components/uom-field-wrapper/uom-field-wrapper/index.esm.js +1 -1
  538. package/dist/components/uom-field-wrapper/uom-field-wrapper/index.js +1 -1
  539. package/dist/components/upload-excel/index.esm.js +1 -1
  540. package/dist/components/upload-excel/index.js +1 -1
  541. package/dist/components/upload-excel/upload-excel/index.esm.js +1 -1
  542. package/dist/components/upload-excel/upload-excel/index.js +1 -1
  543. package/dist/components/upload-media/index.esm.js +1 -1
  544. package/dist/components/upload-media/index.js +1 -1
  545. package/dist/components/upload-media/upload-media/index.esm.js +1 -1
  546. package/dist/components/upload-media/upload-media/index.js +1 -1
  547. package/dist/components/vendor-ai-summary/index.esm.js +1 -1
  548. package/dist/components/vendor-ai-summary/index.js +1 -1
  549. package/dist/hooks/index.esm.js +6 -6
  550. package/dist/hooks/index.js +6 -6
  551. package/dist/hooks/use-translations/index.esm.js +1 -1
  552. package/dist/hooks/use-translations/index.js +1 -1
  553. package/dist/hooks/useAccountSetting/index.esm.js +1 -1
  554. package/dist/hooks/useAccountSetting/index.js +1 -1
  555. package/dist/hooks/useCheckSkuAndName/index.esm.js +1 -1
  556. package/dist/hooks/useCheckSkuAndName/index.js +1 -1
  557. package/dist/hooks/useReduxIntegration/index.esm.js +1 -1
  558. package/dist/hooks/useReduxIntegration/index.js +1 -1
  559. package/dist/hooks/useUniquenessCheck/index.esm.js +1 -1
  560. package/dist/hooks/useUniquenessCheck/index.js +1 -1
  561. package/dist/index.esm.js +68 -68
  562. package/dist/index.js +65 -65
  563. package/dist/layout/fullScreen/index.esm.js +1 -1
  564. package/dist/layout/fullScreen/index.js +1 -1
  565. package/dist/layout/index.esm.js +2 -2
  566. package/dist/layout/index.js +2 -2
  567. package/dist/layout/sidebarScreen/index.esm.js +1 -1
  568. package/dist/layout/sidebarScreen/index.js +1 -1
  569. package/dist/redux/index.esm.js +3 -3
  570. package/dist/redux/index.js +3 -3
  571. package/dist/runtime/index.esm.js +2 -2
  572. package/dist/runtime/index.esm.js.map +1 -1
  573. package/dist/runtime/index.js +1 -1
  574. package/dist/runtime/index.js.map +1 -1
  575. package/dist/src/components/filter/components/date-range-value.d.ts +14 -0
  576. package/dist/src/components/upload-media/image-cropper.d.ts +12 -0
  577. package/dist/src/components/upload-media/upload-media.d.ts +6 -0
  578. package/dist/utils/api/index.esm.js +1 -1
  579. package/dist/utils/api/index.js +1 -1
  580. package/dist/utils/common/index.esm.js +1 -1
  581. package/dist/utils/common/index.js +1 -1
  582. package/dist/utils/common-utility/index.esm.js +1 -1
  583. package/dist/utils/common-utility/index.js +1 -1
  584. package/dist/utils/index.esm.js +8 -8
  585. package/dist/utils/index.js +4 -4
  586. package/dist/utils/server/index.esm.js +2 -2
  587. package/dist/utils/text-measurement/index.esm.js +1 -1
  588. package/dist/utils/text-measurement/index.js +1 -1
  589. package/dist/views/afterAuth/dashboard/index.esm.js +1 -1
  590. package/dist/views/afterAuth/dashboard/index.js +1 -1
  591. package/dist/views/afterAuth/index.esm.js +2 -2
  592. package/dist/views/afterAuth/index.js +2 -2
  593. package/dist/views/afterAuth/page-view/index.esm.js +1 -1
  594. package/dist/views/afterAuth/page-view/index.js +1 -1
  595. package/dist/views/form-builder/custom-form/index.esm.js +1 -1
  596. package/dist/views/form-builder/custom-form/index.js +1 -1
  597. package/dist/views/form-builder/element-edit-forms/index.esm.js +1 -1
  598. package/dist/views/form-builder/element-edit-forms/index.js +1 -1
  599. package/dist/views/form-builder/form-fields/index.esm.js +1 -1
  600. package/dist/views/form-builder/form-fields/index.js +1 -1
  601. package/dist/views/form-builder/index.esm.js +4 -4
  602. package/dist/views/form-builder/index.js +4 -4
  603. package/dist/views/form-builder/redux/index.esm.js +1 -1
  604. package/dist/views/form-builder/redux/index.js +1 -1
  605. package/dist/views/index.esm.js +14 -14
  606. package/dist/views/index.js +13 -13
  607. package/dist/views/template-editor/add-template/index.esm.js +1 -1
  608. package/dist/views/template-editor/add-template/index.js +1 -1
  609. package/dist/views/template-editor/components/index.esm.js +1 -1
  610. package/dist/views/template-editor/components/index.js +1 -1
  611. package/dist/views/template-editor/edit-section-modal/index.esm.js +1 -1
  612. package/dist/views/template-editor/edit-section-modal/index.js +1 -1
  613. package/dist/views/template-editor/index.esm.js +8 -8
  614. package/dist/views/template-editor/index.js +7 -7
  615. package/dist/views/template-editor/routes/index.esm.js +1 -1
  616. package/dist/views/template-editor/routes/index.js +1 -1
  617. package/dist/views/template-editor/template-modal/index.esm.js +1 -1
  618. package/dist/views/template-editor/template-modal/index.js +1 -1
  619. package/dist/views/template-editor/template-name-modal/index.esm.js +1 -1
  620. package/dist/views/template-editor/templates/index.esm.js +1 -1
  621. package/dist/views/template-editor/templates/index.js +1 -1
  622. package/package.json +1 -1
  623. package/dist/chunks/action-bar-B8EkHk4R.esm.js.map +0 -1
  624. package/dist/chunks/action-bar-B_EUV2Bt.js.map +0 -1
  625. package/dist/chunks/filter-D9Cx0Qtl.js.map +0 -1
  626. package/dist/chunks/filter-DnQLBnHo.esm.js.map +0 -1
  627. package/dist/chunks/media-BNHjErng.esm.js +0 -39
  628. package/dist/chunks/media-CDeMBdV7.js +0 -38
  629. package/dist/chunks/media-CDeMBdV7.js.map +0 -1
  630. package/dist/chunks/upload-media-Bhiob8pM.js +0 -262
  631. package/dist/chunks/upload-media-Bhiob8pM.js.map +0 -1
  632. package/dist/chunks/upload-media-u_D3Fe_j.esm.js +0 -263
  633. package/dist/chunks/upload-media-u_D3Fe_j.esm.js.map +0 -1
  634. package/dist/chunks/value-editor-CbiP4U-V.js +0 -135
  635. package/dist/chunks/value-editor-CbiP4U-V.js.map +0 -1
  636. package/dist/chunks/value-editor-K2ox4TX9.esm.js +0 -136
  637. package/dist/chunks/value-editor-K2ox4TX9.esm.js.map +0 -1
@@ -1,262 +0,0 @@
1
- "use strict";
2
- const jsxRuntime = require("react/jsx-runtime");
3
- const material = require("@mui/material");
4
- const images = require("../images/index.js");
5
- const button = require("./button-CYiSRppg.js");
6
- const typography = require("./typography-Bqfr1Ksf.js");
7
- const close = require("./close-D42p_6ss.js");
8
- const document = require("./document-ChFAKCUC.js");
9
- const documentPreview = require("./document-preview-DZmlu28z.js");
10
- const notistack = require("notistack");
11
- const React = require("react");
12
- const UploadMedia = React.memo((props) => {
13
- const {
14
- type,
15
- label,
16
- disabled,
17
- error,
18
- dataName,
19
- dataPosition,
20
- required,
21
- max_size = 20,
22
- onChange,
23
- name,
24
- value,
25
- multiple,
26
- renderPreview,
27
- ...rest
28
- } = props;
29
- const VisuallyHiddenInput = material.styled("input")({
30
- clip: "rect(0 0 0 0)",
31
- clipPath: "inset(50%)",
32
- height: 1,
33
- overflow: "hidden",
34
- position: "absolute",
35
- bottom: 0,
36
- left: 0,
37
- whiteSpace: "nowrap",
38
- width: 1
39
- });
40
- const StyledButton = material.styled(button.Button)(({ theme: { palette } }) => {
41
- var _a, _b, _c, _d;
42
- return {
43
- marginBottom: 8,
44
- "&.MuiButton-outlined": {
45
- color: (_a = palette.theme) == null ? void 0 : _a.primary[1e3]
46
- },
47
- "&.Mui-disabled": {
48
- background: (_b = palette.theme) == null ? void 0 : _b.secondary[200],
49
- color: (_c = palette.theme) == null ? void 0 : _c.secondary[800],
50
- borderWidth: "0.0625rem",
51
- borderStyle: "solid",
52
- borderColor: (_d = palette.theme) == null ? void 0 : _d.secondary[400]
53
- }
54
- };
55
- });
56
- const allowedImageTypes = [
57
- "image/jpeg",
58
- // JPG, JPEG
59
- "image/png",
60
- // PNG
61
- "image/gif",
62
- // GIF
63
- "image/bmp",
64
- // BMP
65
- "image/webp",
66
- // WebP
67
- "image/svg+xml",
68
- // SVG
69
- "image/tiff",
70
- // TIFF
71
- "image/x-icon",
72
- // ICO (icon files)
73
- "image/heic",
74
- // HEIC (High Efficiency Image Format)
75
- "image/heif"
76
- ];
77
- const allowedFileTypes = [
78
- "application/pdf",
79
- "application/msword",
80
- "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
81
- "application/vnd.ms-powerpoint",
82
- "application/vnd.oasis.opendocument.text",
83
- "text/csv",
84
- "text/plain",
85
- "application/rtf",
86
- "application/vnd.ms-excel",
87
- "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
88
- "application/vnd.openxmlformats-officedocument.presentationml.presentation",
89
- "application/vnd.oasis.opendocument.spreadsheet",
90
- "application/vnd.oasis.opendocument.presentation",
91
- "image/jpeg",
92
- // JPG, JPEG
93
- "image/png",
94
- // PNG
95
- "image/gif",
96
- // GIF
97
- "image/bmp",
98
- // BMP
99
- "image/webp",
100
- // WebP
101
- "image/svg+xml",
102
- // SVG
103
- "image/tiff",
104
- // TIFF
105
- "image/x-icon",
106
- // ICO (icon files)
107
- "image/heic",
108
- // HEIC (High Efficiency Image Format)
109
- "image/heif"
110
- ];
111
- const isValidFileType = (file) => {
112
- if (type === "image") {
113
- return allowedImageTypes.includes(file.type);
114
- } else if (type === "file") {
115
- return allowedFileTypes.includes(file.type);
116
- }
117
- };
118
- const handleUpload = (e) => {
119
- var _a;
120
- const files = [...e.target.files];
121
- const filterredFiles = (_a = files.map((file) => {
122
- if (file && file.size <= max_size * 1024 * 1024) {
123
- if (isValidFileType(file)) {
124
- return file;
125
- } else {
126
- notistack.enqueueSnackbar(`Invalid file type for ${file.name}. Please upload a valid document.`, { variant: "error" });
127
- return null;
128
- }
129
- }
130
- })) == null ? void 0 : _a.filter(Boolean);
131
- onChange(multiple ? (value == null ? void 0 : value.length) ? [...value, ...filterredFiles] : filterredFiles : filterredFiles[0]);
132
- };
133
- const handleRemoveFile = (index) => {
134
- if (Array.isArray(value)) {
135
- onChange(value.filter((_, i) => i !== index));
136
- } else {
137
- onChange(null);
138
- }
139
- };
140
- const getFileName = (file) => {
141
- if (!file) return "";
142
- if (file instanceof File) {
143
- return file.name;
144
- } else if (typeof file === "string") {
145
- const parts = file == null ? void 0 : file.split("/");
146
- return parts == null ? void 0 : parts[(parts == null ? void 0 : parts.length) - 1];
147
- } else if (Array.isArray(file) && (file == null ? void 0 : file.length) > 0) {
148
- return file.map((f) => {
149
- const parts = f == null ? void 0 : f.split("/");
150
- return parts == null ? void 0 : parts[(parts == null ? void 0 : parts.length) - 1];
151
- }).join(", ");
152
- }
153
- };
154
- const DefaultPreview = ({ file }) => {
155
- const { fileUrl, fileName } = React.useMemo(() => {
156
- var _a;
157
- const isFile = ((_a = file == null ? void 0 : file.constructor) == null ? void 0 : _a.name) === "File" || Object.prototype.toString.call(file) === "[object File]";
158
- return {
159
- fileUrl: isFile ? URL.createObjectURL(file) : file,
160
- fileName: isFile ? file.name : void 0
161
- };
162
- }, [file]);
163
- React.useEffect(() => {
164
- return () => {
165
- if (fileUrl == null ? void 0 : fileUrl.startsWith("blob:")) {
166
- URL.revokeObjectURL(fileUrl);
167
- }
168
- };
169
- }, [fileUrl]);
170
- return /* @__PURE__ */ jsxRuntime.jsx(documentPreview.DocumentPreview, { fileUrl, fileName });
171
- };
172
- const renderDefaultPreview = (file) => /* @__PURE__ */ jsxRuntime.jsx(DefaultPreview, { file });
173
- const getSelectedFiles = (files) => {
174
- if (files) {
175
- if (Array.isArray(files)) {
176
- return files.map((file, index) => /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { display: "flex", gap: 1, mb: 1, alignItems: "center", children: [
177
- type === "file" && /* @__PURE__ */ jsxRuntime.jsx(document.Document, { fontSize: "small" }),
178
- /* @__PURE__ */ jsxRuntime.jsx(
179
- typography.Typography,
180
- {
181
- type: "s5",
182
- weight: "medium",
183
- color: error ? "theme.error.600" : "theme.secondary.800",
184
- "data-position": dataPosition,
185
- "data-name": dataName,
186
- noWrap: true,
187
- children: getFileName(file)
188
- }
189
- ),
190
- (renderPreview || renderDefaultPreview)(file),
191
- /* @__PURE__ */ jsxRuntime.jsx(material.IconButton, { size: "small", onClick: () => handleRemoveFile(index), children: /* @__PURE__ */ jsxRuntime.jsx(close.Close, { fontSize: "small" }) })
192
- ] }, file instanceof File ? file.name : file));
193
- }
194
- return /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { display: "flex", gap: 1, mb: 1, alignItems: "center", children: [
195
- type === "file" && /* @__PURE__ */ jsxRuntime.jsx(document.Document, { fontSize: "small" }),
196
- /* @__PURE__ */ jsxRuntime.jsx(
197
- typography.Typography,
198
- {
199
- type: "s5",
200
- weight: "medium",
201
- color: error ? "theme.error.600" : "theme.secondary.800",
202
- "data-position": dataPosition,
203
- "data-name": dataName,
204
- noWrap: true,
205
- children: getFileName(files)
206
- }
207
- ),
208
- (renderPreview || renderDefaultPreview)(files),
209
- /* @__PURE__ */ jsxRuntime.jsx(material.IconButton, { size: "small", onClick: () => handleRemoveFile(0), children: /* @__PURE__ */ jsxRuntime.jsx(close.Close, { fontSize: "small" }) })
210
- ] });
211
- }
212
- };
213
- return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
214
- /* @__PURE__ */ jsxRuntime.jsxs(
215
- typography.Typography,
216
- {
217
- type: "s5",
218
- weight: "medium",
219
- mb: 0.5,
220
- color: error ? "theme.error.600" : "theme.secondary.800",
221
- "data-position": dataPosition,
222
- "data-name": dataName,
223
- children: [
224
- label,
225
- " ",
226
- required && " *"
227
- ]
228
- }
229
- ),
230
- /* @__PURE__ */ jsxRuntime.jsx("div", { style: { display: "flex" }, children: /* @__PURE__ */ jsxRuntime.jsxs(
231
- StyledButton,
232
- {
233
- component: "label",
234
- startIcon: /* @__PURE__ */ jsxRuntime.jsx(
235
- "img",
236
- {
237
- src: type === "image" ? images.default.uploadImage : images.default.uploadDocument
238
- }
239
- ),
240
- variant: "outlined",
241
- disabled,
242
- children: [
243
- /* @__PURE__ */ jsxRuntime.jsx(typography.Typography, { type: "s5", weight: "medium", color: "theme.secondary.1000", children: "Upload" }),
244
- /* @__PURE__ */ jsxRuntime.jsx(
245
- VisuallyHiddenInput,
246
- {
247
- type: "file",
248
- accept: type === "file" ? allowedFileTypes.join(",") : type === "image" ? allowedImageTypes.join(",") : void 0,
249
- onChange: handleUpload,
250
- name,
251
- multiple,
252
- ...rest
253
- }
254
- )
255
- ]
256
- }
257
- ) }),
258
- getSelectedFiles(value)
259
- ] });
260
- });
261
- exports.UploadMedia = UploadMedia;
262
- //# sourceMappingURL=upload-media-Bhiob8pM.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"upload-media-Bhiob8pM.js","sources":["../../src/components/upload-media/upload-media.tsx"],"sourcesContent":["import { Box, styled, IconButton } from \"@mui/material\";\nimport logo from \"../../assets/images\";\nimport Button from \"../button/button\";\nimport Typography from \"../typography/typography\";\n// import { useEffect, useState } from \"react\";\nimport { Document, Close } from \"../icons\";\nimport DocumentPreview from \"../document-preview/document-preview\";\nimport { enqueueSnackbar } from \"notistack\";\nimport { memo, useMemo, useEffect } from \"react\";\n// import Avatar from \"../avatar/avatar\";\n\nexport interface UploadImageProps {\n type?: string;\n label: string;\n disabled?: boolean;\n error?: boolean;\n dataPosition?: number;\n dataName?: string;\n required?: boolean;\n max_size?: number;\n name: string;\n value: string;\n onChange: (e: any) => any;\n multiple: boolean;\n renderPreview?: (file: any) => React.ReactNode;\n}\nconst UploadMedia = memo((props: UploadImageProps) => {\n const {\n type,\n label,\n disabled,\n error,\n dataName,\n dataPosition,\n required,\n max_size = 20,\n onChange,\n name,\n value,\n multiple,\n renderPreview,\n ...rest\n } = props;\n\n const VisuallyHiddenInput = styled(\"input\")({\n clip: \"rect(0 0 0 0)\",\n clipPath: \"inset(50%)\",\n height: 1,\n overflow: \"hidden\",\n position: \"absolute\",\n bottom: 0,\n left: 0,\n whiteSpace: \"nowrap\",\n width: 1,\n });\n\n // const [selectedFile, setSelectedFile] = useState<string | null>(null);\n const StyledButton = styled(Button)(({ theme: { palette } }) => ({\n marginBottom: 8,\n \"&.MuiButton-outlined\": {\n color: palette.theme?.primary[1000],\n },\n \"&.Mui-disabled\": {\n background: palette.theme?.secondary[200],\n color: palette.theme?.secondary[800],\n borderWidth: \"0.0625rem\",\n borderStyle: \"solid\",\n borderColor: palette.theme?.secondary[400],\n },\n }));\n\n const allowedImageTypes = [\n \"image/jpeg\", // JPG, JPEG\n \"image/png\", // PNG\n \"image/gif\", // GIF\n \"image/bmp\", // BMP\n \"image/webp\", // WebP\n \"image/svg+xml\", // SVG\n \"image/tiff\", // TIFF\n \"image/x-icon\", // ICO (icon files)\n \"image/heic\", // HEIC (High Efficiency Image Format)\n \"image/heif\"\n ]\n const allowedFileTypes = [\n \"application/pdf\",\n \"application/msword\",\n \"application/vnd.openxmlformats-officedocument.wordprocessingml.document\",\n 'application/vnd.ms-powerpoint',\n 'application/vnd.oasis.opendocument.text',\n 'text/csv',\n 'text/plain',\n 'application/rtf',\n 'application/vnd.ms-excel',\n 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',\n 'application/vnd.openxmlformats-officedocument.presentationml.presentation',\n 'application/vnd.oasis.opendocument.spreadsheet',\n 'application/vnd.oasis.opendocument.presentation',\n \"image/jpeg\", // JPG, JPEG\n \"image/png\", // PNG\n \"image/gif\", // GIF\n \"image/bmp\", // BMP\n \"image/webp\", // WebP\n \"image/svg+xml\", // SVG\n \"image/tiff\", // TIFF\n \"image/x-icon\", // ICO (icon files)\n \"image/heic\", // HEIC (High Efficiency Image Format)\n \"image/heif\"\n ];\n\n const isValidFileType = (file: any) => {\n if (type === \"image\") {\n return allowedImageTypes.includes(file.type);\n } else if (type === 'file') {\n return allowedFileTypes.includes(file.type);\n }\n };\n\n\n const handleUpload = (e: any) => {\n const files = [...e.target.files];\n const filterredFiles = files.map(file => {\n if (file && file.size <= max_size * 1024 * 1024) {\n if (isValidFileType(file)) {\n return file\n } else {\n enqueueSnackbar(`Invalid file type for ${file.name}. Please upload a valid document.`, { variant: 'error' })\n return null\n }\n }\n })?.filter(Boolean)\n onChange(multiple ? (value?.length ? [...value, ...filterredFiles] : filterredFiles) : filterredFiles[0]);\n };\n\n const handleRemoveFile = (index: number) => {\n if (Array.isArray(value)) {\n onChange(value.filter((_: any, i: number) => i !== index));\n } else {\n onChange(null);\n }\n };\n\n const getFileName = (file) => {\n if (!file) return \"\"\n if (file instanceof File) {\n return file.name\n } else if(typeof file === 'string') { \n const parts = file?.split('/');\n return parts?.[parts?.length - 1];\n } else if(Array.isArray(file) && file?.length > 0) {\n return file.map(f => {\n const parts = f?.split('/');\n return parts?.[parts?.length - 1];\n }).join(', ')\n }\n }\n // const getImagePreview = (file) => {\n // if (!file) return \"\"\n // if (file instanceof File) {\n // let previewUrl:any = ''\n // const reader = new FileReader();\n // reader.onload = () => {\n // previewUrl = reader.result;\n // };\n // reader.readAsDataURL(file);\n\n // return previewUrl\n // } else {\n // return file.includes(S3_BUCKET_URL) ? file : S3_BUCKET_URL + file\n // }\n // }\n\n const DefaultPreview = ({ file }: { file: any }) => {\n const { fileUrl, fileName } = useMemo(() => {\n const isFile = file?.constructor?.name === 'File' || Object.prototype.toString.call(file) === '[object File]';\n return {\n fileUrl: isFile ? URL.createObjectURL(file) : file,\n fileName: isFile ? file.name : undefined,\n };\n }, [file]);\n\n useEffect(() => {\n return () => {\n if (fileUrl?.startsWith('blob:')) {\n URL.revokeObjectURL(fileUrl);\n }\n };\n }, [fileUrl]);\n\n return <DocumentPreview fileUrl={fileUrl} fileName={fileName} />;\n };\n\n const renderDefaultPreview = (file: any) => <DefaultPreview file={file} />;\n\n const getSelectedFiles = (files: any) => {\n\n if (files) {\n if (Array.isArray(files)) {\n return files.map((file, index) => (\n <Box key={file instanceof File ? file.name : file} display=\"flex\" gap={1} mb={1} alignItems='center'>\n {type === 'file' && <Document fontSize=\"small\" />}\n <Typography\n type=\"s5\"\n weight=\"medium\"\n color={error ? \"theme.error.600\" : \"theme.secondary.800\"}\n data-position={dataPosition}\n data-name={dataName}\n noWrap\n >\n {getFileName(file)}\n </Typography>\n {(renderPreview || renderDefaultPreview)(file)}\n <IconButton size='small' onClick={() => handleRemoveFile(index)}>\n <Close fontSize='small' />\n </IconButton>\n </Box>\n ));\n }\n return (\n <Box display=\"flex\" gap={1} mb={1} alignItems='center'>\n {type === 'file' && <Document fontSize=\"small\" />}\n <Typography\n type=\"s5\"\n weight=\"medium\"\n color={error ? \"theme.error.600\" : \"theme.secondary.800\"}\n data-position={dataPosition}\n data-name={dataName}\n noWrap\n >\n {getFileName(files)}\n </Typography>\n {(renderPreview || renderDefaultPreview)(files)}\n <IconButton size='small' onClick={() => handleRemoveFile(0)}>\n <Close fontSize='small' />\n </IconButton>\n </Box>\n );\n }\n }\n\n // useEffect(() => {\n // if(!multiple) {\n // const parts = value?.split('/');\n // // const documentPath = parts?.slice(3, parts.length - 1).join('/');\n // const filename = parts?.[parts?.length - 1];\n\n \n // if (value) setSelectedFile(filename)\n // }\n // }, [multiple, value])\n\n return (\n <>\n <Typography\n type=\"s5\"\n weight={\"medium\"}\n mb={0.5}\n color={error ? \"theme.error.600\" : \"theme.secondary.800\"}\n data-position={dataPosition}\n data-name={dataName}\n >\n {label} {required && \" *\"}\n </Typography>\n <div style={{ display: \"flex\" }}>\n <StyledButton\n component=\"label\"\n startIcon={\n <img\n src={type === \"image\" ? logo.uploadImage : logo.uploadDocument}\n />\n }\n variant=\"outlined\"\n disabled={disabled}\n >\n <Typography type='s5' weight=\"medium\" color=\"theme.secondary.1000\">Upload</Typography>\n <VisuallyHiddenInput\n type=\"file\"\n accept={type === \"file\" ? allowedFileTypes.join(\",\") : (type === 'image' ? allowedImageTypes.join(\",\") : undefined)}\n // required={required}\n onChange={handleUpload}\n name={name}\n multiple={multiple}\n {...rest}\n />\n </StyledButton>\n </div >\n {getSelectedFiles(value)}\n\n </>\n );\n})\n\nexport { UploadMedia };\nexport default UploadMedia;\n"],"names":["memo","styled","Button","enqueueSnackbar","useMemo","useEffect","jsx","DocumentPreview","jsxs","Box","Document","Typography","IconButton","Close","Fragment","logo"],"mappings":";;;;;;;;;;;AA0BA,MAAM,cAAcA,MAAAA,KAAK,CAAC,UAA4B;AACpD,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,WAAW;AAAA,IACX;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,GAAG;AAAA,EAAA,IACD;AAEJ,QAAM,sBAAsBC,gBAAO,OAAO,EAAE;AAAA,IAC1C,MAAM;AAAA,IACN,UAAU;AAAA,IACV,QAAQ;AAAA,IACR,UAAU;AAAA,IACV,UAAU;AAAA,IACV,QAAQ;AAAA,IACR,MAAM;AAAA,IACN,YAAY;AAAA,IACZ,OAAO;AAAA,EAAA,CACR;AAGD,QAAM,eAAeA,SAAAA,OAAOC,aAAM,EAAE,CAAC,EAAE,OAAO,EAAE,QAAA,QAAU;;AAAO;AAAA,MAC/D,cAAc;AAAA,MACd,wBAAwB;AAAA,QACtB,QAAO,aAAQ,UAAR,mBAAe,QAAQ;AAAA,MAAI;AAAA,MAEpC,kBAAkB;AAAA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U,kBAAkB,KAAK,GAAG,IAAI;AAAA,cAEzG,UAAU;AAAA,cACV;AAAA,cACA;AAAA,cACC,GAAG;AAAA,YAAA;AAAA,UAAA;AAAA,QACN;AAAA,MAAA;AAAA,IAAA,GAEJ;AAAA,IACC,iBAAiB,KAAK;AAAA,EAAA,GAEzB;AAEJ,CAAC;;"}
@@ -1,263 +0,0 @@
1
- import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
- import { styled, Box, IconButton } from "@mui/material";
3
- import images from "../images/index.esm.js";
4
- import { B as Button } from "./button-BtdpXmjA.esm.js";
5
- import { T as Typography } from "./typography-CG_A0iOJ.esm.js";
6
- import { C as Close } from "./close-RLA63UHs.esm.js";
7
- import { D as Document } from "./document-Bmf8f-js.esm.js";
8
- import { D as DocumentPreview } from "./document-preview-CVd96q6J.esm.js";
9
- import { enqueueSnackbar } from "notistack";
10
- import { memo, useMemo, useEffect } from "react";
11
- const UploadMedia = memo((props) => {
12
- const {
13
- type,
14
- label,
15
- disabled,
16
- error,
17
- dataName,
18
- dataPosition,
19
- required,
20
- max_size = 20,
21
- onChange,
22
- name,
23
- value,
24
- multiple,
25
- renderPreview,
26
- ...rest
27
- } = props;
28
- const VisuallyHiddenInput = styled("input")({
29
- clip: "rect(0 0 0 0)",
30
- clipPath: "inset(50%)",
31
- height: 1,
32
- overflow: "hidden",
33
- position: "absolute",
34
- bottom: 0,
35
- left: 0,
36
- whiteSpace: "nowrap",
37
- width: 1
38
- });
39
- const StyledButton = styled(Button)(({ theme: { palette } }) => {
40
- var _a, _b, _c, _d;
41
- return {
42
- marginBottom: 8,
43
- "&.MuiButton-outlined": {
44
- color: (_a = palette.theme) == null ? void 0 : _a.primary[1e3]
45
- },
46
- "&.Mui-disabled": {
47
- background: (_b = palette.theme) == null ? void 0 : _b.secondary[200],
48
- color: (_c = palette.theme) == null ? void 0 : _c.secondary[800],
49
- borderWidth: "0.0625rem",
50
- borderStyle: "solid",
51
- borderColor: (_d = palette.theme) == null ? void 0 : _d.secondary[400]
52
- }
53
- };
54
- });
55
- const allowedImageTypes = [
56
- "image/jpeg",
57
- // JPG, JPEG
58
- "image/png",
59
- // PNG
60
- "image/gif",
61
- // GIF
62
- "image/bmp",
63
- // BMP
64
- "image/webp",
65
- // WebP
66
- "image/svg+xml",
67
- // SVG
68
- "image/tiff",
69
- // TIFF
70
- "image/x-icon",
71
- // ICO (icon files)
72
- "image/heic",
73
- // HEIC (High Efficiency Image Format)
74
- "image/heif"
75
- ];
76
- const allowedFileTypes = [
77
- "application/pdf",
78
- "application/msword",
79
- "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
80
- "application/vnd.ms-powerpoint",
81
- "application/vnd.oasis.opendocument.text",
82
- "text/csv",
83
- "text/plain",
84
- "application/rtf",
85
- "application/vnd.ms-excel",
86
- "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
87
- "application/vnd.openxmlformats-officedocument.presentationml.presentation",
88
- "application/vnd.oasis.opendocument.spreadsheet",
89
- "application/vnd.oasis.opendocument.presentation",
90
- "image/jpeg",
91
- // JPG, JPEG
92
- "image/png",
93
- // PNG
94
- "image/gif",
95
- // GIF
96
- "image/bmp",
97
- // BMP
98
- "image/webp",
99
- // WebP
100
- "image/svg+xml",
101
- // SVG
102
- "image/tiff",
103
- // TIFF
104
- "image/x-icon",
105
- // ICO (icon files)
106
- "image/heic",
107
- // HEIC (High Efficiency Image Format)
108
- "image/heif"
109
- ];
110
- const isValidFileType = (file) => {
111
- if (type === "image") {
112
- return allowedImageTypes.includes(file.type);
113
- } else if (type === "file") {
114
- return allowedFileTypes.includes(file.type);
115
- }
116
- };
117
- const handleUpload = (e) => {
118
- var _a;
119
- const files = [...e.target.files];
120
- const filterredFiles = (_a = files.map((file) => {
121
- if (file && file.size <= max_size * 1024 * 1024) {
122
- if (isValidFileType(file)) {
123
- return file;
124
- } else {
125
- enqueueSnackbar(`Invalid file type for ${file.name}. Please upload a valid document.`, { variant: "error" });
126
- return null;
127
- }
128
- }
129
- })) == null ? void 0 : _a.filter(Boolean);
130
- onChange(multiple ? (value == null ? void 0 : value.length) ? [...value, ...filterredFiles] : filterredFiles : filterredFiles[0]);
131
- };
132
- const handleRemoveFile = (index) => {
133
- if (Array.isArray(value)) {
134
- onChange(value.filter((_, i) => i !== index));
135
- } else {
136
- onChange(null);
137
- }
138
- };
139
- const getFileName = (file) => {
140
- if (!file) return "";
141
- if (file instanceof File) {
142
- return file.name;
143
- } else if (typeof file === "string") {
144
- const parts = file == null ? void 0 : file.split("/");
145
- return parts == null ? void 0 : parts[(parts == null ? void 0 : parts.length) - 1];
146
- } else if (Array.isArray(file) && (file == null ? void 0 : file.length) > 0) {
147
- return file.map((f) => {
148
- const parts = f == null ? void 0 : f.split("/");
149
- return parts == null ? void 0 : parts[(parts == null ? void 0 : parts.length) - 1];
150
- }).join(", ");
151
- }
152
- };
153
- const DefaultPreview = ({ file }) => {
154
- const { fileUrl, fileName } = useMemo(() => {
155
- var _a;
156
- const isFile = ((_a = file == null ? void 0 : file.constructor) == null ? void 0 : _a.name) === "File" || Object.prototype.toString.call(file) === "[object File]";
157
- return {
158
- fileUrl: isFile ? URL.createObjectURL(file) : file,
159
- fileName: isFile ? file.name : void 0
160
- };
161
- }, [file]);
162
- useEffect(() => {
163
- return () => {
164
- if (fileUrl == null ? void 0 : fileUrl.startsWith("blob:")) {
165
- URL.revokeObjectURL(fileUrl);
166
- }
167
- };
168
- }, [fileUrl]);
169
- return /* @__PURE__ */ jsx(DocumentPreview, { fileUrl, fileName });
170
- };
171
- const renderDefaultPreview = (file) => /* @__PURE__ */ jsx(DefaultPreview, { file });
172
- const getSelectedFiles = (files) => {
173
- if (files) {
174
- if (Array.isArray(files)) {
175
- return files.map((file, index) => /* @__PURE__ */ jsxs(Box, { display: "flex", gap: 1, mb: 1, alignItems: "center", children: [
176
- type === "file" && /* @__PURE__ */ jsx(Document, { fontSize: "small" }),
177
- /* @__PURE__ */ jsx(
178
- Typography,
179
- {
180
- type: "s5",
181
- weight: "medium",
182
- color: error ? "theme.error.600" : "theme.secondary.800",
183
- "data-position": dataPosition,
184
- "data-name": dataName,
185
- noWrap: true,
186
- children: getFileName(file)
187
- }
188
- ),
189
- (renderPreview || renderDefaultPreview)(file),
190
- /* @__PURE__ */ jsx(IconButton, { size: "small", onClick: () => handleRemoveFile(index), children: /* @__PURE__ */ jsx(Close, { fontSize: "small" }) })
191
- ] }, file instanceof File ? file.name : file));
192
- }
193
- return /* @__PURE__ */ jsxs(Box, { display: "flex", gap: 1, mb: 1, alignItems: "center", children: [
194
- type === "file" && /* @__PURE__ */ jsx(Document, { fontSize: "small" }),
195
- /* @__PURE__ */ jsx(
196
- Typography,
197
- {
198
- type: "s5",
199
- weight: "medium",
200
- color: error ? "theme.error.600" : "theme.secondary.800",
201
- "data-position": dataPosition,
202
- "data-name": dataName,
203
- noWrap: true,
204
- children: getFileName(files)
205
- }
206
- ),
207
- (renderPreview || renderDefaultPreview)(files),
208
- /* @__PURE__ */ jsx(IconButton, { size: "small", onClick: () => handleRemoveFile(0), children: /* @__PURE__ */ jsx(Close, { fontSize: "small" }) })
209
- ] });
210
- }
211
- };
212
- return /* @__PURE__ */ jsxs(Fragment, { children: [
213
- /* @__PURE__ */ jsxs(
214
- Typography,
215
- {
216
- type: "s5",
217
- weight: "medium",
218
- mb: 0.5,
219
- color: error ? "theme.error.600" : "theme.secondary.800",
220
- "data-position": dataPosition,
221
- "data-name": dataName,
222
- children: [
223
- label,
224
- " ",
225
- required && " *"
226
- ]
227
- }
228
- ),
229
- /* @__PURE__ */ jsx("div", { style: { display: "flex" }, children: /* @__PURE__ */ jsxs(
230
- StyledButton,
231
- {
232
- component: "label",
233
- startIcon: /* @__PURE__ */ jsx(
234
- "img",
235
- {
236
- src: type === "image" ? images.uploadImage : images.uploadDocument
237
- }
238
- ),
239
- variant: "outlined",
240
- disabled,
241
- children: [
242
- /* @__PURE__ */ jsx(Typography, { type: "s5", weight: "medium", color: "theme.secondary.1000", children: "Upload" }),
243
- /* @__PURE__ */ jsx(
244
- VisuallyHiddenInput,
245
- {
246
- type: "file",
247
- accept: type === "file" ? allowedFileTypes.join(",") : type === "image" ? allowedImageTypes.join(",") : void 0,
248
- onChange: handleUpload,
249
- name,
250
- multiple,
251
- ...rest
252
- }
253
- )
254
- ]
255
- }
256
- ) }),
257
- getSelectedFiles(value)
258
- ] });
259
- });
260
- export {
261
- UploadMedia as U
262
- };
263
- //# sourceMappingURL=upload-media-u_D3Fe_j.esm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"upload-media-u_D3Fe_j.esm.js","sources":["../../src/components/upload-media/upload-media.tsx"],"sourcesContent":["import { Box, styled, IconButton } from \"@mui/material\";\nimport logo from \"../../assets/images\";\nimport Button from \"../button/button\";\nimport Typography from \"../typography/typography\";\n// import { useEffect, useState } from \"react\";\nimport { Document, Close } from \"../icons\";\nimport DocumentPreview from \"../document-preview/document-preview\";\nimport { enqueueSnackbar } from \"notistack\";\nimport { memo, useMemo, useEffect } from \"react\";\n// import Avatar from \"../avatar/avatar\";\n\nexport interface UploadImageProps {\n type?: string;\n label: string;\n disabled?: boolean;\n error?: boolean;\n dataPosition?: number;\n dataName?: string;\n required?: boolean;\n max_size?: number;\n name: string;\n value: string;\n onChange: (e: any) => any;\n multiple: boolean;\n renderPreview?: (file: any) => React.ReactNode;\n}\nconst UploadMedia = memo((props: UploadImageProps) => {\n const {\n type,\n label,\n disabled,\n error,\n dataName,\n dataPosition,\n required,\n max_size = 20,\n onChange,\n name,\n value,\n multiple,\n renderPreview,\n ...rest\n } = props;\n\n const VisuallyHiddenInput = styled(\"input\")({\n clip: \"rect(0 0 0 0)\",\n clipPath: \"inset(50%)\",\n height: 1,\n overflow: \"hidden\",\n position: \"absolute\",\n bottom: 0,\n left: 0,\n whiteSpace: \"nowrap\",\n width: 1,\n });\n\n // const [selectedFile, setSelectedFile] = useState<string | null>(null);\n const StyledButton = styled(Button)(({ theme: { palette } }) => ({\n marginBottom: 8,\n \"&.MuiButton-outlined\": {\n color: palette.theme?.primary[1000],\n },\n \"&.Mui-disabled\": {\n background: palette.theme?.secondary[200],\n color: palette.theme?.secondary[800],\n borderWidth: \"0.0625rem\",\n borderStyle: \"solid\",\n borderColor: palette.theme?.secondary[400],\n },\n }));\n\n const allowedImageTypes = [\n \"image/jpeg\", // JPG, JPEG\n \"image/png\", // PNG\n \"image/gif\", // GIF\n \"image/bmp\", // BMP\n \"image/webp\", // WebP\n \"image/svg+xml\", // SVG\n \"image/tiff\", // TIFF\n \"image/x-icon\", // ICO (icon files)\n \"image/heic\", // HEIC (High Efficiency Image Format)\n \"image/heif\"\n ]\n const allowedFileTypes = [\n \"application/pdf\",\n \"application/msword\",\n \"application/vnd.openxmlformats-officedocument.wordprocessingml.document\",\n 'application/vnd.ms-powerpoint',\n 'application/vnd.oasis.opendocument.text',\n 'text/csv',\n 'text/plain',\n 'application/rtf',\n 'application/vnd.ms-excel',\n 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',\n 'application/vnd.openxmlformats-officedocument.presentationml.presentation',\n 'application/vnd.oasis.opendocument.spreadsheet',\n 'application/vnd.oasis.opendocument.presentation',\n \"image/jpeg\", // JPG, JPEG\n \"image/png\", // PNG\n \"image/gif\", // GIF\n \"image/bmp\", // BMP\n \"image/webp\", // WebP\n \"image/svg+xml\", // SVG\n \"image/tiff\", // TIFF\n \"image/x-icon\", // ICO (icon files)\n \"image/heic\", // HEIC (High Efficiency Image Format)\n \"image/heif\"\n ];\n\n const isValidFileType = (file: any) => {\n if (type === \"image\") {\n return allowedImageTypes.includes(file.type);\n } else if (type === 'file') {\n return allowedFileTypes.includes(file.type);\n }\n };\n\n\n const handleUpload = (e: any) => {\n const files = [...e.target.files];\n const filterredFiles = files.map(file => {\n if (file && file.size <= max_size * 1024 * 1024) {\n if (isValidFileType(file)) {\n return file\n } else {\n enqueueSnackbar(`Invalid file type for ${file.name}. Please upload a valid document.`, { variant: 'error' })\n return null\n }\n }\n })?.filter(Boolean)\n onChange(multiple ? (value?.length ? [...value, ...filterredFiles] : filterredFiles) : filterredFiles[0]);\n };\n\n const handleRemoveFile = (index: number) => {\n if (Array.isArray(value)) {\n onChange(value.filter((_: any, i: number) => i !== index));\n } else {\n onChange(null);\n }\n };\n\n const getFileName = (file) => {\n if (!file) return \"\"\n if (file instanceof File) {\n return file.name\n } else if(typeof file === 'string') { \n const parts = file?.split('/');\n return parts?.[parts?.length - 1];\n } else if(Array.isArray(file) && file?.length > 0) {\n return file.map(f => {\n const parts = f?.split('/');\n return parts?.[parts?.length - 1];\n }).join(', ')\n }\n }\n // const getImagePreview = (file) => {\n // if (!file) return \"\"\n // if (file instanceof File) {\n // let previewUrl:any = ''\n // const reader = new FileReader();\n // reader.onload = () => {\n // previewUrl = reader.result;\n // };\n // reader.readAsDataURL(file);\n\n // return previewUrl\n // } else {\n // return file.includes(S3_BUCKET_URL) ? file : S3_BUCKET_URL + file\n // }\n // }\n\n const DefaultPreview = ({ file }: { file: any }) => {\n const { fileUrl, fileName } = useMemo(() => {\n const isFile = file?.constructor?.name === 'File' || Object.prototype.toString.call(file) === '[object File]';\n return {\n fileUrl: isFile ? URL.createObjectURL(file) : file,\n fileName: isFile ? file.name : undefined,\n };\n }, [file]);\n\n useEffect(() => {\n return () => {\n if (fileUrl?.startsWith('blob:')) {\n URL.revokeObjectURL(fileUrl);\n }\n };\n }, [fileUrl]);\n\n return <DocumentPreview fileUrl={fileUrl} fileName={fileName} />;\n };\n\n const renderDefaultPreview = (file: any) => <DefaultPreview file={file} />;\n\n const getSelectedFiles = (files: any) => {\n\n if (files) {\n if (Array.isArray(files)) {\n return files.map((file, index) => (\n <Box key={file instanceof File ? file.name : file} display=\"flex\" gap={1} mb={1} alignItems='center'>\n {type === 'file' && <Document fontSize=\"small\" />}\n <Typography\n type=\"s5\"\n weight=\"medium\"\n color={error ? \"theme.error.600\" : \"theme.secondary.800\"}\n data-position={dataPosition}\n data-name={dataName}\n noWrap\n >\n {getFileName(file)}\n </Typography>\n {(renderPreview || renderDefaultPreview)(file)}\n <IconButton size='small' onClick={() => handleRemoveFile(index)}>\n <Close fontSize='small' />\n </IconButton>\n </Box>\n ));\n }\n return (\n <Box display=\"flex\" gap={1} mb={1} alignItems='center'>\n {type === 'file' && <Document fontSize=\"small\" />}\n <Typography\n type=\"s5\"\n weight=\"medium\"\n color={error ? \"theme.error.600\" : \"theme.secondary.800\"}\n data-position={dataPosition}\n data-name={dataName}\n noWrap\n >\n {getFileName(files)}\n </Typography>\n {(renderPreview || renderDefaultPreview)(files)}\n <IconButton size='small' onClick={() => handleRemoveFile(0)}>\n <Close fontSize='small' />\n </IconButton>\n </Box>\n );\n }\n }\n\n // useEffect(() => {\n // if(!multiple) {\n // const parts = value?.split('/');\n // // const documentPath = parts?.slice(3, parts.length - 1).join('/');\n // const filename = parts?.[parts?.length - 1];\n\n \n // if (value) setSelectedFile(filename)\n // }\n // }, [multiple, value])\n\n return (\n <>\n <Typography\n type=\"s5\"\n weight={\"medium\"}\n mb={0.5}\n color={error ? \"theme.error.600\" : \"theme.secondary.800\"}\n data-position={dataPosition}\n data-name={dataName}\n >\n {label} {required && \" *\"}\n </Typography>\n <div style={{ display: \"flex\" }}>\n <StyledButton\n component=\"label\"\n startIcon={\n <img\n src={type === \"image\" ? logo.uploadImage : logo.uploadDocument}\n />\n }\n variant=\"outlined\"\n disabled={disabled}\n >\n <Typography type='s5' weight=\"medium\" color=\"theme.secondary.1000\">Upload</Typography>\n <VisuallyHiddenInput\n type=\"file\"\n accept={type === \"file\" ? allowedFileTypes.join(\",\") : (type === 'image' ? allowedImageTypes.join(\",\") : undefined)}\n // required={required}\n onChange={handleUpload}\n name={name}\n multiple={multiple}\n {...rest}\n />\n </StyledButton>\n </div >\n {getSelectedFiles(value)}\n\n </>\n );\n})\n\nexport { UploadMedia };\nexport default UploadMedia;\n"],"names":["logo"],"mappings":";;;;;;;;;;AA0BA,MAAM,cAAc,KAAK,CAAC,UAA4B;AACpD,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,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