umwd-components 0.1.713 → 0.1.715

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 (383) hide show
  1. package/README.md +273 -0
  2. package/dist/_virtual/_commonjsHelpers.js +1 -1
  3. package/dist/_virtual/_rollupPluginBabelHelpers.js +1 -1
  4. package/dist/node_modules/@mollie/api-client/dist/mollie.esm.js +1 -1
  5. package/dist/node_modules/axios/index.js +6 -0
  6. package/dist/node_modules/axios/lib/adapters/adapters.js +1 -1
  7. package/dist/node_modules/axios/lib/adapters/fetch.js +1 -1
  8. package/dist/node_modules/axios/lib/adapters/xhr.js +1 -1
  9. package/dist/node_modules/axios/lib/cancel/CancelToken.js +1 -1
  10. package/dist/node_modules/axios/lib/core/Axios.js +1 -1
  11. package/dist/node_modules/axios/lib/core/AxiosError.js +1 -1
  12. package/dist/node_modules/axios/lib/core/AxiosHeaders.js +1 -1
  13. package/dist/node_modules/axios/lib/core/InterceptorManager.js +1 -1
  14. package/dist/node_modules/axios/lib/core/dispatchRequest.js +1 -1
  15. package/dist/node_modules/axios/lib/core/mergeConfig.js +1 -1
  16. package/dist/node_modules/axios/lib/core/transformData.js +1 -1
  17. package/dist/node_modules/axios/lib/defaults/index.js +1 -1
  18. package/dist/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +1 -1
  19. package/dist/node_modules/axios/lib/helpers/HttpStatusCode.js +1 -1
  20. package/dist/node_modules/axios/lib/helpers/composeSignals.js +1 -1
  21. package/dist/node_modules/axios/lib/helpers/formDataToJSON.js +1 -1
  22. package/dist/node_modules/axios/lib/helpers/parseHeaders.js +1 -1
  23. package/dist/node_modules/axios/lib/helpers/progressEventReducer.js +1 -1
  24. package/dist/node_modules/axios/lib/helpers/resolveConfig.js +1 -1
  25. package/dist/node_modules/axios/lib/helpers/throttle.js +1 -1
  26. package/dist/node_modules/axios/lib/helpers/toFormData.js +1 -1
  27. package/dist/node_modules/axios/lib/helpers/trackStream.js +1 -1
  28. package/dist/node_modules/axios/lib/helpers/validator.js +1 -1
  29. package/dist/node_modules/axios/lib/platform/index.js +1 -1
  30. package/dist/node_modules/axios/lib/utils.js +1 -1
  31. package/dist/node_modules/call-bind-apply-helpers/actualApply.js +6 -0
  32. package/dist/node_modules/call-bind-apply-helpers/functionApply.js +6 -0
  33. package/dist/node_modules/call-bind-apply-helpers/functionCall.js +6 -0
  34. package/dist/node_modules/call-bind-apply-helpers/index.js +6 -0
  35. package/dist/node_modules/call-bind-apply-helpers/reflectApply.js +6 -0
  36. package/dist/node_modules/call-bound/index.js +6 -0
  37. package/dist/node_modules/dayjs/dayjs.min.js +1 -1
  38. package/dist/node_modules/dunder-proto/get.js +6 -0
  39. package/dist/node_modules/es-define-property/index.js +1 -1
  40. package/dist/{_virtual/index7.js → node_modules/es-object-atoms/index.js} +1 -1
  41. package/dist/node_modules/function-bind/implementation.js +1 -1
  42. package/dist/node_modules/function-bind/index.js +1 -1
  43. package/dist/node_modules/get-intrinsic/index.js +1 -1
  44. package/dist/node_modules/get-proto/Object.getPrototypeOf.js +6 -0
  45. package/dist/node_modules/get-proto/Reflect.getPrototypeOf.js +6 -0
  46. package/dist/node_modules/get-proto/index.js +6 -0
  47. package/dist/{_virtual/index5.js → node_modules/gopd/gOPD.js} +1 -1
  48. package/dist/node_modules/gopd/index.js +1 -1
  49. package/dist/node_modules/has-symbols/index.js +1 -1
  50. package/dist/node_modules/has-symbols/shams.js +1 -1
  51. package/dist/node_modules/hasown/index.js +1 -1
  52. package/dist/{_virtual/index8.js → node_modules/math-intrinsics/abs.js} +1 -1
  53. package/dist/{_virtual/types.js → node_modules/math-intrinsics/floor.js} +1 -1
  54. package/dist/node_modules/math-intrinsics/isNaN.js +6 -0
  55. package/dist/{_virtual/index6.js → node_modules/math-intrinsics/max.js} +1 -1
  56. package/dist/node_modules/math-intrinsics/min.js +6 -0
  57. package/dist/node_modules/math-intrinsics/pow.js +6 -0
  58. package/dist/node_modules/math-intrinsics/round.js +6 -0
  59. package/dist/node_modules/math-intrinsics/sign.js +6 -0
  60. package/dist/node_modules/object-assign/index.js +1 -1
  61. package/dist/node_modules/object-inspect/index.js +1 -1
  62. package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +1 -1
  63. package/dist/node_modules/prop-types/index.js +1 -1
  64. package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
  65. package/dist/node_modules/qs/lib/index.js +1 -1
  66. package/dist/node_modules/qs/lib/parse.js +1 -1
  67. package/dist/node_modules/qs/lib/stringify.js +1 -1
  68. package/dist/node_modules/qs/lib/utils.js +1 -1
  69. package/dist/node_modules/react-csv/lib/components/Download.js +1 -1
  70. package/dist/node_modules/react-csv/lib/components/Link.js +1 -1
  71. package/dist/node_modules/react-csv/lib/core.js +1 -1
  72. package/dist/node_modules/safe-buffer/index.js +2 -2
  73. package/dist/node_modules/sax/lib/sax.js +1 -1
  74. package/dist/node_modules/side-channel/index.js +1 -1
  75. package/dist/node_modules/side-channel-list/index.js +6 -0
  76. package/dist/node_modules/side-channel-map/index.js +6 -0
  77. package/dist/node_modules/side-channel-weakmap/index.js +6 -0
  78. package/dist/node_modules/string_decoder/lib/string_decoder.js +1 -1
  79. package/dist/node_modules/tslib/tslib.es6.js +1 -1
  80. package/dist/node_modules/xml-js/lib/js2xml.js +1 -1
  81. package/dist/node_modules/xml-js/lib/xml2json.js +1 -1
  82. package/dist/src/components/ContactForm.js +1 -1
  83. package/dist/src/components/FluidBackground.js +1 -1
  84. package/dist/src/components/LogoutButton.js +1 -1
  85. package/dist/src/components/WebsitePlaceholder.js +1 -1
  86. package/dist/src/components/ZodErrors.js +1 -1
  87. package/dist/src/components/auth/AuthWidget.js +1 -1
  88. package/dist/src/components/common/Address.js +1 -1
  89. package/dist/src/components/common/AmountUpdater.js +1 -1
  90. package/dist/src/components/common/EnhancedTable/EnhancedTable.js +1 -1
  91. package/dist/src/components/common/EnhancedTable/EnhancedTableFilterRow.js +1 -1
  92. package/dist/src/components/common/EnhancedTable/EnhancedTableHead.js +1 -1
  93. package/dist/src/components/common/EnhancedTable/EnhancedTableRow.js +1 -1
  94. package/dist/src/components/common/EnhancedTable/EnhancedTableToolbar.js +1 -1
  95. package/dist/src/components/common/NumberInput.js +1 -1
  96. package/dist/src/components/common/WeekPicker.js +1 -1
  97. package/dist/src/components/common/cookie-consent/CookieConsentContext.js +1 -1
  98. package/dist/src/components/common/csv/CsvDownloader.js +1 -1
  99. package/dist/src/components/common/media/MediaGrid.js +1 -1
  100. package/dist/src/components/common/media/MediaLibraryDialog.js +1 -1
  101. package/dist/src/components/common/media/UploadBase64MediaForm.js +1 -1
  102. package/dist/src/components/common/media/UploadMediaForm.js +1 -1
  103. package/dist/src/components/common/snackbar/GlobalSnackbar.js +1 -1
  104. package/dist/src/components/e-commerce/cart/CartSummary.js +1 -1
  105. package/dist/src/components/e-commerce/cart/hooks.js +1 -1
  106. package/dist/src/components/e-commerce/categories/AddCategoryForm.js +1 -1
  107. package/dist/src/components/e-commerce/categories/CategorySelectorV2.js +1 -1
  108. package/dist/src/components/e-commerce/categories/EditCategoryForm.js +1 -1
  109. package/dist/src/components/e-commerce/checkout/CheckoutForm.js +1 -1
  110. package/dist/src/components/e-commerce/checkout/Step2.js +1 -1
  111. package/dist/src/components/e-commerce/checkout/Step4.js +1 -1
  112. package/dist/src/components/e-commerce/checkout/Step5.js +1 -1
  113. package/dist/src/components/e-commerce/customer/BusinessCredentials.js +1 -1
  114. package/dist/src/components/e-commerce/customer/CustomerCompletenessWarning.js +1 -1
  115. package/dist/src/components/e-commerce/customer/CustomerProfileDisplay.js +1 -1
  116. package/dist/src/components/e-commerce/customer/CustomerProfileEditForm.js +1 -1
  117. package/dist/src/components/e-commerce/customer/CustomerSelector.js +1 -1
  118. package/dist/src/components/e-commerce/enduser/EnduserProfileEditForm.js +1 -1
  119. package/dist/src/components/e-commerce/invoice/CreateInvoiceForm.js +1 -1
  120. package/dist/src/components/e-commerce/invoice/InvoiceItemFields.js +1 -1
  121. package/dist/src/components/e-commerce/invoice/InvoicePDF.js +1 -1
  122. package/dist/src/components/e-commerce/iro/CreateIROForm.js +1 -1
  123. package/dist/src/components/e-commerce/iro/IROItemFields.js +1 -1
  124. package/dist/src/components/e-commerce/iro/IroItemDisplay.js +1 -1
  125. package/dist/src/components/e-commerce/iro/IroItemUpdater.js +1 -1
  126. package/dist/src/components/e-commerce/iro/IroStatusIndicator.js +1 -1
  127. package/dist/src/components/e-commerce/iro/ManageIROForm.js +1 -1
  128. package/dist/src/components/e-commerce/iro/RmaForm.js +1 -1
  129. package/dist/src/components/e-commerce/iro/TextualIROItemUpdater.js +1 -1
  130. package/dist/src/components/e-commerce/iro/TextualManageIROForm.js +1 -1
  131. package/dist/src/components/e-commerce/opo/CreateOpoForm.js +1 -1
  132. package/dist/src/components/e-commerce/opo/ManageOpoForm.js +1 -1
  133. package/dist/src/components/e-commerce/opo/OPOItemFields.js +1 -1
  134. package/dist/src/components/e-commerce/opo/OpoItemDisplay.js +1 -1
  135. package/dist/src/components/e-commerce/opo/OpoItemUpdater.js +1 -1
  136. package/dist/src/components/e-commerce/opo/OpoStatusIndicator.js +1 -1
  137. package/dist/src/components/e-commerce/opo/OpoSummary.js +1 -1
  138. package/dist/src/components/e-commerce/opo/PaymentStatusIndicator.js +1 -1
  139. package/dist/src/components/e-commerce/opo/TextualManageOpoForm.js +1 -1
  140. package/dist/src/components/e-commerce/opo/TextualOpoItemUpdater.js +1 -1
  141. package/dist/src/components/e-commerce/products/AddProductForm.js +1 -1
  142. package/dist/src/components/e-commerce/products/EditProductForm.js +1 -1
  143. package/dist/src/components/e-commerce/products/EditStockForm.js +1 -1
  144. package/dist/src/components/e-commerce/products/PriceFields.js +1 -1
  145. package/dist/src/components/e-commerce/products/ProductCategoryCard.js +1 -1
  146. package/dist/src/components/e-commerce/products/ProductSelector.js +1 -1
  147. package/dist/src/components/e-commerce/products/SingleProduct.js +1 -1
  148. package/dist/src/components/layout/Footer.js +1 -1
  149. package/dist/src/components/layout/Navbar.js +1 -1
  150. package/dist/src/components/layout/NavbarV2.js +1 -1
  151. package/dist/src/components/layout/SideNav.js +1 -1
  152. package/dist/src/components/logistics/dispatcher/DispatcherProfileEditForm.js +1 -1
  153. package/dist/src/components/logistics/ipo/AddIPOForm.js +1 -1
  154. package/dist/src/components/logistics/ipo/IPOItemFields.js +1 -1
  155. package/dist/src/components/logistics/ipo/IPOItemUpdater.js +1 -1
  156. package/dist/src/components/logistics/ipo/IpoStatusIndicator.js +1 -1
  157. package/dist/src/components/logistics/ipo/ManageIPOForm.js +1 -1
  158. package/dist/src/components/logistics/ipo/TextualIPOItemUpdater.js +1 -1
  159. package/dist/src/components/logistics/ipo/TextualManageIPOForm.js +1 -1
  160. package/dist/src/components/logistics/note/NoteTakingComponent.js +1 -1
  161. package/dist/src/components/logistics/note/NotesDisplay.js +1 -1
  162. package/dist/src/components/logistics/report/PreReportsDisplay.js +1 -1
  163. package/dist/src/components/logistics/report/ReportMakingComponent.js +1 -1
  164. package/dist/src/components/logistics/report/ReportsDisplay.js +1 -1
  165. package/dist/src/components/logistics/vendor/AddVendorForm.js +1 -1
  166. package/dist/src/components/logistics/vendor/EditVendorForm.js +1 -1
  167. package/dist/src/components/logistics/vendor/VendorDisplay.js +1 -1
  168. package/dist/src/components/logistics/vendor/VendorSelector.js +1 -1
  169. package/dist/src/components/page-builder/ColumnsSection.js +1 -1
  170. package/dist/src/components/page-builder/FleetSection.js +1 -1
  171. package/dist/src/components/page-builder/IconSection.js +1 -1
  172. package/dist/src/components/page-builder/LogoBarSection.js +1 -1
  173. package/dist/src/components/page-builder/PBFeaturesSection.js +1 -1
  174. package/dist/src/components/page-builder/PBPersonaliaSection.js +1 -1
  175. package/dist/src/components/page-builder/PBTextImageSection.js +1 -1
  176. package/dist/src/components/page-builder/PictureBarSection.js +1 -1
  177. package/dist/src/components/page-elements/CategoryBlock.js +1 -1
  178. package/dist/src/components/page-elements/ColumnsSection.js +1 -1
  179. package/dist/src/components/page-elements/FeaturesSection.js +1 -1
  180. package/dist/src/components/page-elements/FleetSection.js +1 -1
  181. package/dist/src/components/page-elements/IconSection.js +1 -1
  182. package/dist/src/components/page-elements/LogoBarSection.js +1 -1
  183. package/dist/src/components/page-elements/PersonaliaSection.js +1 -1
  184. package/dist/src/components/page-elements/PictureBarSection.js +1 -1
  185. package/dist/src/components/page-elements/TextImageSection.js +1 -1
  186. package/dist/src/components/public-information/PublicInformationForm.js +1 -1
  187. package/dist/src/context/auth/SessionContext.js +1 -1
  188. package/dist/src/context/common/SnackbarContext.js +1 -1
  189. package/dist/src/context/e-commerce/cart/CartContext.js +1 -1
  190. package/dist/src/context/e-commerce/checkout/CheckoutContext.js +1 -1
  191. package/dist/src/data/actions/auth-actions.js +1 -1
  192. package/dist/src/data/actions/e-commerce/categories/createCategoryAction.js +1 -1
  193. package/dist/src/data/actions/e-commerce/categories/updateCategoryAction.js +1 -1
  194. package/dist/src/data/actions/e-commerce/checkout-action.js +1 -1
  195. package/dist/src/data/actions/e-commerce/enduser/profile-actions.js +1 -1
  196. package/dist/src/data/actions/e-commerce/invoices/createInvoiceAction.js +1 -1
  197. package/dist/src/data/actions/e-commerce/iro/createIroAction.js +1 -1
  198. package/dist/src/data/actions/e-commerce/iro/requestRmaAction.js +1 -1
  199. package/dist/src/data/actions/e-commerce/iro/updateIroAction.js +1 -1
  200. package/dist/src/data/actions/e-commerce/opo/createOpoAction.js +1 -1
  201. package/dist/src/data/actions/e-commerce/opo/updateOpoAction.js +1 -1
  202. package/dist/src/data/actions/e-commerce/product/createProductAction.js +1 -1
  203. package/dist/src/data/actions/e-commerce/product/updateProductAction.js +1 -1
  204. package/dist/src/data/actions/logistics/dispatcher/profile-actions.js +1 -1
  205. package/dist/src/data/actions/logistics/ipo/createIPOAction.js +1 -1
  206. package/dist/src/data/actions/logistics/ipo/updateIpoAction.js +1 -1
  207. package/dist/src/data/actions/logistics/note/createNoteAction.js +1 -1
  208. package/dist/src/data/actions/logistics/report/createReportAction.js +1 -1
  209. package/dist/src/data/actions/logistics/vendor/createVendorAction.js +1 -1
  210. package/dist/src/data/actions/logistics/vendor/updateVendorAction.js +1 -1
  211. package/dist/src/data/actions/media/updateMediaAction.js +1 -1
  212. package/dist/src/data/actions/media/uploadBase64MediaAction.js +1 -1
  213. package/dist/src/data/actions/media/uploadMediaAction.js +1 -1
  214. package/dist/src/data/actions/pagebuilder-actions.js +1 -1
  215. package/dist/src/data/actions/profile-actions.js +1 -1
  216. package/dist/src/data/actions/public-information/updatePublicInformationAction.js +1 -1
  217. package/dist/src/data/loaders/common/media/downloadBase64File.js +1 -1
  218. package/dist/src/data/loaders/common/media/getAllMedia.js +1 -1
  219. package/dist/src/data/loaders/e-commerce/getAllCategoryNames.js +1 -1
  220. package/dist/src/data/loaders/e-commerce/getAllCustomers.js +1 -1
  221. package/dist/src/data/loaders/e-commerce/getAllInvoices.js +1 -1
  222. package/dist/src/data/loaders/e-commerce/getAllOpos.js +1 -1
  223. package/dist/src/data/loaders/e-commerce/getCustomerLabels.js +1 -1
  224. package/dist/src/data/loaders/e-commerce/getCustomerModel.js +1 -1
  225. package/dist/src/data/loaders/e-commerce/getOpoModel.js +1 -1
  226. package/dist/src/data/loaders/e-commerce/getPaginatedCategories.js +1 -1
  227. package/dist/src/data/loaders/e-commerce/getProductModel.js +1 -1
  228. package/dist/src/data/loaders/e-commerce/getProductNames.js +1 -1
  229. package/dist/src/data/loaders/e-commerce/getShop.js +1 -1
  230. package/dist/src/data/loaders/e-commerce/getSingleCategory.js +1 -1
  231. package/dist/src/data/loaders/e-commerce/getSingleCustomer.js +1 -1
  232. package/dist/src/data/loaders/e-commerce/getSingleOpo.js +1 -1
  233. package/dist/src/data/loaders/e-commerce/getSingleProduct.js +1 -1
  234. package/dist/src/data/loaders/e-commerce/getSingleStock.js +1 -1
  235. package/dist/src/data/loaders/e-commerce/getTableProducts.js +1 -1
  236. package/dist/src/data/loaders/e-commerce/iros/getAllIros.js +1 -1
  237. package/dist/src/data/loaders/e-commerce/iros/getIroModel.js +1 -1
  238. package/dist/src/data/loaders/e-commerce/iros/getSingleIro.js +1 -1
  239. package/dist/src/data/loaders/e-commerce/iros/queryAllIros.js +1 -1
  240. package/dist/src/data/loaders/e-commerce/queryAllCustomers.js +1 -1
  241. package/dist/src/data/loaders/e-commerce/queryAllOpos.js +1 -1
  242. package/dist/src/data/loaders/e-commerce/queryAllProducts.js +1 -1
  243. package/dist/src/data/loaders/e-commerce-loaders.js +1 -1
  244. package/dist/src/data/loaders/loaders.js +1 -1
  245. package/dist/src/data/loaders/logistics/getIpoModel.js +1 -1
  246. package/dist/src/data/loaders/logistics/getIpoNames.js +1 -1
  247. package/dist/src/data/loaders/logistics/getSingleIpo.js +1 -1
  248. package/dist/src/data/loaders/logistics/getSingleVendor.js +1 -1
  249. package/dist/src/data/loaders/logistics/getTableIpos.js +1 -1
  250. package/dist/src/data/loaders/logistics/getTableVendors.js +1 -1
  251. package/dist/src/data/loaders/logistics/getVendorModel.js +1 -1
  252. package/dist/src/data/loaders/logistics/getVendorNames.js +1 -1
  253. package/dist/src/data/loaders/logistics/queryAllIpos.js +1 -1
  254. package/dist/src/data/loaders/logistics/queryAllVendors.js +1 -1
  255. package/dist/src/data/loaders/page-builder/getTablePages.js +1 -1
  256. package/dist/src/data/loaders/page-elements/getSinglePage.js +1 -1
  257. package/dist/src/data/loaders/public-information/getPublicInformation.js +1 -1
  258. package/dist/src/data/loaders/user/getUserMeLoader.js +1 -1
  259. package/dist/src/data/services/archive-service.js +1 -1
  260. package/dist/src/data/services/auth-service.js +1 -1
  261. package/dist/src/data/services/common/cancellation-service.js +1 -1
  262. package/dist/src/data/services/common/confirmation-service.js +1 -1
  263. package/dist/src/data/services/e-commerce/enduser/get-enduser-me-loader.js +1 -1
  264. package/dist/src/data/services/file-service.js +1 -1
  265. package/dist/src/data/services/get-token.js +1 -1
  266. package/dist/src/data/services/get-user-me-loader.js +1 -1
  267. package/dist/src/data/services/logistics/dispatcher/get-dispatcher-me-loader.js +1 -1
  268. package/dist/src/data/services/mutate-data.js +1 -1
  269. package/dist/src/lib/eoriValidate.js +1 -1
  270. package/dist/src/lib/molliePaymentProvider.js +1 -1
  271. package/dist/src/lib/parseNavigation.js +1 -1
  272. package/dist/src/lib/processFilters.js +1 -1
  273. package/dist/src/lib/utils.js +1 -1
  274. package/dist/src/lib/vatValidate.js +1 -1
  275. package/dist/tsconfig.build.tsbuildinfo +1 -1
  276. package/dist/types/components/StrapiErrors.d.ts +2 -2
  277. package/dist/types/components/e-commerce/cart/hooks.d.ts +2 -3
  278. package/dist/types/components/e-commerce/products/AddProductForm.d.ts +3 -3
  279. package/dist/types/data/loaders/logistics/getTableIpos.d.ts +8 -0
  280. package/dist/types/data/loaders/logistics/getTableVendors.d.ts +14 -1
  281. package/dist/types/lib/getIcon.d.ts +0 -1
  282. package/dist/types/types/StrapiImageProps.d.ts +0 -1
  283. package/dist/types/types/common/Contact.d.ts +0 -1
  284. package/dist/types/types/common/Socials.d.ts +0 -1
  285. package/dist/types/types/common/enhancedTable/types.d.ts +0 -1
  286. package/package.json +14 -25
  287. package/postcss.config.js +5 -6
  288. package/rollup.config.mjs +9 -0
  289. package/src/components/Logo.tsx +20 -9
  290. package/src/components/LogoutButton.tsx +1 -29
  291. package/src/components/StrapiErrors.tsx +5 -1
  292. package/src/components/e-commerce/invoice/InvoicePDF.tsx +54 -48
  293. package/src/components/e-commerce/iro/ManageIROForm.tsx +3 -3
  294. package/src/components/e-commerce/opo/ManageOpoForm.tsx +7 -2
  295. package/src/components/e-commerce/opo/OpoItemUpdater.tsx +16 -6
  296. package/src/data/loaders/logistics/getTableIpos.ts +9 -4
  297. package/src/data/loaders/logistics/getTableVendors.tsx +25 -5
  298. package/src/index.ts +327 -327
  299. package/src/lib/APIcon.svg +6 -6
  300. package/src/lib/utils.ts +0 -7
  301. package/src/styles/globals.css +2 -3
  302. package/tsconfig.json +24 -34
  303. package/.storybook/main.js +0 -26
  304. package/.storybook/preview.js +0 -50
  305. package/dist/_virtual/inherits_browser.js +0 -6
  306. package/dist/_virtual/punycode.js +0 -6
  307. package/dist/_virtual/url.js +0 -6
  308. package/dist/_virtual/util.js +0 -6
  309. package/dist/node_modules/available-typed-arrays/index.js +0 -6
  310. package/dist/node_modules/base64-js/index.js +0 -6
  311. package/dist/node_modules/buffer/index.js +0 -12
  312. package/dist/node_modules/call-bind/callBound.js +0 -6
  313. package/dist/node_modules/call-bind/index.js +0 -6
  314. package/dist/node_modules/define-data-property/index.js +0 -6
  315. package/dist/node_modules/for-each/index.js +0 -6
  316. package/dist/node_modules/has-property-descriptors/index.js +0 -6
  317. package/dist/node_modules/has-proto/index.js +0 -6
  318. package/dist/node_modules/has-tostringtag/shams.js +0 -6
  319. package/dist/node_modules/ieee754/index.js +0 -7
  320. package/dist/node_modules/inherits/inherits_browser.js +0 -6
  321. package/dist/node_modules/is-arguments/index.js +0 -6
  322. package/dist/node_modules/is-callable/index.js +0 -6
  323. package/dist/node_modules/is-generator-function/index.js +0 -6
  324. package/dist/node_modules/is-typed-array/index.js +0 -6
  325. package/dist/node_modules/set-function-length/index.js +0 -6
  326. package/dist/node_modules/url/node_modules/punycode/punycode.js +0 -7
  327. package/dist/node_modules/url/url.js +0 -6
  328. package/dist/node_modules/util/support/isBufferBrowser.js +0 -6
  329. package/dist/node_modules/util/support/types.js +0 -6
  330. package/dist/node_modules/util/util.js +0 -6
  331. package/dist/node_modules/uuid/dist/esm-browser/native.js +0 -6
  332. package/dist/node_modules/uuid/dist/esm-browser/rng.js +0 -6
  333. package/dist/node_modules/uuid/dist/esm-browser/stringify.js +0 -6
  334. package/dist/node_modules/uuid/dist/esm-browser/v4.js +0 -6
  335. package/dist/node_modules/which-typed-array/index.js +0 -6
  336. package/dist/types/app/checkout/layout.d.ts +0 -4
  337. package/dist/types/app/checkout/page.d.ts +0 -3
  338. package/dist/types/app/layout.d.ts +0 -8
  339. package/dist/types/app/page.d.ts +0 -2
  340. package/dist/types/components/e-commerce/cart/CartWidgetOld.d.ts +0 -9
  341. package/next-env.d.ts +0 -5
  342. package/next.config.js +0 -18
  343. package/public/AMH/BulletSVG.svg +0 -9
  344. package/public/AMH/desktop_wallpaper@0.25x.png +0 -0
  345. package/public/Logo.svg +0 -6
  346. package/public/favicon.ico +0 -0
  347. package/public/index.html +0 -43
  348. package/public/logo.png +0 -0
  349. package/public/logo_decorated.png +0 -0
  350. package/public/logo_text.png +0 -0
  351. package/public/logo_thick.png +0 -0
  352. package/public/manifest.json +0 -25
  353. package/public/placeholders/fullscreen_1920X1080.png +0 -0
  354. package/public/placeholders/highres_2400X1600.png +0 -0
  355. package/public/placeholders/large_1200X800.png +0 -0
  356. package/public/placeholders/medium_600X400.png +0 -0
  357. package/public/placeholders/small_300X200.png +0 -0
  358. package/public/placeholders/thumbnail_100X100.png +0 -0
  359. package/public/robots.txt +0 -3
  360. package/readme.MD +0 -0
  361. package/rollup.config copy.mjs +0 -80
  362. package/src/app/checkout/layout.tsx +0 -28
  363. package/src/app/checkout/page.tsx +0 -9
  364. package/src/app/layout.tsx +0 -16
  365. package/src/app/page.tsx +0 -38
  366. package/src/stories/ContactForm.stories.js +0 -13
  367. package/src/stories/FeatureSection.stories.js +0 -86
  368. package/src/stories/FluidBackground.stories.js +0 -29
  369. package/src/stories/Footer.stories.js +0 -130
  370. package/src/stories/HeroSection.stories.js +0 -101
  371. package/src/stories/LogoutButton.stories.js +0 -15
  372. package/src/stories/Page.stories.js +0 -536
  373. package/src/stories/PageBuilder.stories.js +0 -396
  374. package/src/stories/RegisterForm.stories.js +0 -13
  375. package/src/stories/ScrollNavbar.stories.js +0 -121
  376. package/src/stories/SideNav.stories.js +0 -47
  377. package/src/stories/SigninForm.stories.js +0 -13
  378. package/src/stories/StrapiImage.stories.js +0 -23
  379. package/src/stories/TextImageSection.stories.js +0 -73
  380. package/src/stories/WebsitePlaceholder.stories.js +0 -178
  381. package/src/stories/WhatsAppClickToChatButton.stories.js +0 -69
  382. package/src/stories/styles.css +0 -39
  383. package/tailwind.config.ts +0 -80
@@ -1,6 +1,6 @@
1
1
  import React, { useEffect, useState } from "react";
2
2
  import { useFormState } from "react-dom";
3
- import { updateIpoAction } from "../../../data/actions/logistics/ipo/updateIpoAction";
3
+ import { updateIroAction } from "../../../data/actions/e-commerce/iro/updateIroAction";
4
4
  import { UploadBase64MediaForm } from "../../../components/common/media/UploadBase64MediaForm";
5
5
  import downloadBase64File from "../../../data/loaders/common/media/downloadBase64File";
6
6
  import ItemUpdater from "./IroItemUpdater";
@@ -57,7 +57,7 @@ function ConfirmFormDialog({
57
57
  revalidateCallback?: () => void;
58
58
  }) {
59
59
  const [formState, formAction] = useFormState(
60
- updateIpoAction,
60
+ updateIroAction,
61
61
  CONFIRMATION_STATE
62
62
  );
63
63
 
@@ -149,7 +149,7 @@ export default function ManageIROForm({
149
149
  role,
150
150
  }: ManageIroFormProps) {
151
151
  // TODO bind to id of IRO
152
- const [formState, formAction] = useFormState(updateIpoAction, INITIAL_STATE);
152
+ const [formState, formAction] = useFormState(updateIroAction, INITIAL_STATE);
153
153
 
154
154
  const [items, setItems] = useState<IroItem[]>(
155
155
  data.iro_items.data ? data.iro_items.data : []
@@ -154,8 +154,13 @@ export default function ManageOPOForm({
154
154
  handleClose,
155
155
  role,
156
156
  }: ManageOpoFormProps) {
157
- // TODO bind to id of IPO
158
- const [formState, formAction] = useFormState(updateOpoAction, INITIAL_STATE);
157
+ // TODO bind to id of OPO
158
+ const boundUpdateOpoAction = (prevState: any, formData: FormData) =>
159
+ updateOpoAction(opo.id, prevState, formData);
160
+ const [formState, formAction] = useFormState(
161
+ boundUpdateOpoAction,
162
+ INITIAL_STATE
163
+ );
159
164
  const { handleAddMessage } = useSnackbar();
160
165
 
161
166
  const [items, setItems] = useState<OpoItem[]>(
@@ -8,7 +8,7 @@ import AmountUpdater from "../../../components/common/AmountUpdater";
8
8
  import ArrowButtonDownIcon from "@mui/icons-material/ArrowDropDown";
9
9
  import { OpoItemUpdaterProps } from "../../../types/e-commerce/opo/types";
10
10
  import ImagePreviewTooltip from "../../../components/common/ImagePreviewTooltip";
11
- import { Report } from "../../../types/logistics/Report";
11
+ import { Report, PreReport } from "../../../types/logistics/Report";
12
12
  import ReportMakingComponent from "../../logistics/report/ReportMakingComponent";
13
13
  import ReportsDisplay from "../../logistics/report/ReportsDisplay";
14
14
 
@@ -31,11 +31,12 @@ function OpoItemUpdater({
31
31
  } = item;
32
32
 
33
33
  const [open, setOpen] = useState(false);
34
-
35
34
  const picked_reports_quantity = React.useMemo(() => {
36
35
  return reports?.data !== undefined && reports.data.length > 0
37
36
  ? reports.data
38
- .filter((report: Report) => report.type === "picked")
37
+ .filter(
38
+ (report): report is Report | PreReport => report.type === "picked"
39
+ )
39
40
  .reduce((a, b) => a + b.quantity, 0)
40
41
  : 0;
41
42
  }, [reports]);
@@ -43,7 +44,9 @@ function OpoItemUpdater({
43
44
  const packed_reports_quantity = React.useMemo(() => {
44
45
  return reports?.data !== undefined && reports.data.length > 0
45
46
  ? reports.data
46
- .filter((report: Report) => report.type === "packed")
47
+ .filter(
48
+ (report): report is Report | PreReport => report.type === "packed"
49
+ )
47
50
  .reduce((a, b) => a + b.quantity, 0)
48
51
  : 0;
49
52
  }, [reports]);
@@ -51,7 +54,9 @@ function OpoItemUpdater({
51
54
  const shipped_reports_quantity = React.useMemo(() => {
52
55
  return reports?.data !== undefined && reports.data.length > 0
53
56
  ? reports.data
54
- .filter((report: Report) => report.type === "shipped")
57
+ .filter(
58
+ (report): report is Report | PreReport => report.type === "shipped"
59
+ )
55
60
  .reduce((a, b) => a + b.quantity, 0)
56
61
  : 0;
57
62
  }, [reports]);
@@ -114,7 +119,12 @@ function OpoItemUpdater({
114
119
  Here you can report and correct for damages wrong items etc. Do
115
120
  not forget to click the button!
116
121
  </Typography>
117
- <ReportsDisplay reports={reports.data} />
122
+ <ReportsDisplay
123
+ reports={reports.data.filter(
124
+ (report): report is Report =>
125
+ "id" in report && typeof report.id === "number"
126
+ )}
127
+ />
118
128
  <ReportMakingComponent
119
129
  content={"content"}
120
130
  quantity={0}
@@ -12,7 +12,16 @@ const baseUrl = getStrapiURL();
12
12
  /**
13
13
  * INFO Fetch all IPOs
14
14
  * used by the IPOs table in the admin panel
15
+ * @param currentPage - The current page number for pagination
16
+ * @param rowsPerPage - The number of rows per page for pagination
17
+ * @param order - The order direction, either "asc" or "desc"
18
+ * @param orderBy - The field to order by, defaults to "id"
19
+ * @param is_archive - An array of booleans to filter by archived status, defaulting to only non-archived IPOs
20
+ * @param filters - An object containing additional filters to apply
21
+ * @return A promise that resolves to the fetched IPO data
22
+ * * @throws Will throw an error if the fetch fails
15
23
  */
24
+
16
25
  async function getTableIpos(
17
26
  currentPage: number,
18
27
  rowsPerPage: number,
@@ -23,10 +32,6 @@ async function getTableIpos(
23
32
  ) {
24
33
  noStore();
25
34
 
26
- const user = await getUserRole();
27
- const role = user?.data?.role?.type;
28
- const isEnduser = role === "enduser";
29
-
30
35
  const url = new URL(`/api/ipos`, baseUrl);
31
36
 
32
37
  const processedFilters = processFilters(filters);
@@ -4,23 +4,41 @@ import qs from "qs";
4
4
  import { fetchData } from "../loaders";
5
5
  import { getStrapiURL } from "../../../lib/utils";
6
6
  import { unstable_noStore as noStore } from "next/cache";
7
-
8
- // this is the get all product function for the backend, it should be universal so it also works on the frontend
9
- // this function is based on get all orders which the frontenduser uses to get all orders in it's order table
7
+ import { processFilters } from "../../../lib/processFilters";
10
8
 
11
9
  const baseUrl = getStrapiURL();
12
10
 
13
- export async function getTableVendors(
11
+ /**
12
+ * INFO Fetch all vendors
13
+ * used by the Vendors table in the admin panel
14
+ * @param currentPage - The current page number for pagination
15
+ * @param rowsPerPage - The number of rows per page for pagination
16
+ * @param order - The order direction, either "asc" or "desc"
17
+ * @param orderBy - The field to order by, defaults to "id"
18
+ * @return A promise that resolves to the fetched vendor data
19
+ * @throws Will throw an error if the fetch fails
20
+ * */
21
+ async function getTableVendors(
14
22
  currentPage: number,
15
23
  rowsPerPage: number,
16
24
  order: "asc" | "desc",
17
- orderBy: string
25
+ orderBy: string,
26
+ // is_archive: boolean[] = [false], // default to only non-archived OPOs
27
+ filters: { [key: string]: string } = {}
18
28
  ) {
19
29
  noStore();
20
30
 
21
31
  const url = new URL(`/api/vendor-profiles`, baseUrl);
22
32
 
33
+ const processedFilters = processFilters(filters);
34
+
23
35
  url.search = qs.stringify({
36
+ filters: {
37
+ // is_archive: {
38
+ // $in: is_archive,
39
+ // },
40
+ ...processedFilters,
41
+ },
24
42
  sort: `${orderBy || "id"}:${order || "desc"}`,
25
43
  populate: {
26
44
  business_credentials: true,
@@ -33,3 +51,5 @@ export async function getTableVendors(
33
51
 
34
52
  return await fetchData(url.href);
35
53
  }
54
+
55
+ export { getTableVendors };