@unchainedshop/admin-ui 4.8.32 → 4.8.33

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 (454) hide show
  1. package/dist/chunk-3L6EZQ6P.js +135 -0
  2. package/dist/chunk-54DKBWXV.js +33 -0
  3. package/dist/chunk-5WPFHQZN.js +388 -0
  4. package/dist/chunk-6UGLNLJG.js +44 -0
  5. package/dist/chunk-BMDNY67T.js +22547 -0
  6. package/dist/chunk-BOMSMJF2.js +77 -0
  7. package/dist/chunk-COV7BREX.js +50 -0
  8. package/dist/chunk-E77YIMGR.js +2083 -0
  9. package/dist/chunk-EJDZRZSZ.js +59 -0
  10. package/dist/chunk-ELPURWDC.js +75 -0
  11. package/dist/chunk-F6LBNV3H.js +9 -0
  12. package/dist/chunk-FDHXLNZQ.js +44 -0
  13. package/dist/chunk-GY2DRQGW.js +166 -0
  14. package/dist/chunk-HERLM47Z.js +309 -0
  15. package/dist/chunk-HJKRGBDG.js +694 -0
  16. package/dist/chunk-I64TXIE7.js +618 -0
  17. package/dist/chunk-IAQPLRXZ.js +16 -0
  18. package/dist/chunk-ICJH36K4.js +326 -0
  19. package/dist/chunk-ILYPJE4N.js +57 -0
  20. package/dist/chunk-IWKDBADX.js +73 -0
  21. package/dist/chunk-IXBMHOB5.js +13 -0
  22. package/dist/chunk-IYKPRAWC.js +26 -0
  23. package/dist/chunk-J23QSWDL.js +8 -0
  24. package/dist/chunk-KH5MK6ZW.js +18 -0
  25. package/dist/chunk-KRIRF7F6.js +76 -0
  26. package/dist/chunk-NT7RB7AK.js +70 -0
  27. package/dist/chunk-OKGJ6HDE.js +26 -0
  28. package/dist/chunk-OTXM2UCD.js +19 -0
  29. package/dist/chunk-PJLYVMUM.js +3308 -0
  30. package/dist/chunk-PUI5BIKO.js +41 -0
  31. package/dist/chunk-Q6S3LBUF.js +180 -0
  32. package/dist/chunk-QHR23GVH.js +1099 -0
  33. package/dist/chunk-QWQ3WJJN.js +1 -0
  34. package/dist/chunk-RAQV2GYF.js +70 -0
  35. package/dist/chunk-VBO377AY.js +14 -0
  36. package/dist/chunk-VYEXPG3M.js +107 -0
  37. package/dist/chunk-WPLOTFGW.js +36 -0
  38. package/dist/chunk-YO6PT7KD.js +13 -0
  39. package/dist/chunk-ZUOVKRKC.js +957 -0
  40. package/dist/components/ui/Accordion/Accordion.d.ts +11 -0
  41. package/dist/components/ui/Accordion/Accordion.d.ts.map +1 -0
  42. package/dist/components/ui/Accordion/AccordionHeader.d.ts +6 -0
  43. package/dist/components/ui/Accordion/AccordionHeader.d.ts.map +1 -0
  44. package/dist/components/ui/Accordion/AccordionItem.d.ts +11 -0
  45. package/dist/components/ui/Accordion/AccordionItem.d.ts.map +1 -0
  46. package/dist/components/ui/ActiveInActive.d.ts +10 -0
  47. package/dist/components/ui/ActiveInActive.d.ts.map +1 -0
  48. package/dist/components/ui/AnimatedCounter.d.ts +7 -0
  49. package/dist/components/ui/AnimatedCounter.d.ts.map +1 -0
  50. package/dist/components/ui/Badge.d.ts +10 -0
  51. package/dist/components/ui/Badge.d.ts.map +1 -0
  52. package/dist/components/ui/BreadCrumbs.d.ts +7 -0
  53. package/dist/components/ui/BreadCrumbs.d.ts.map +1 -0
  54. package/dist/components/ui/Button.d.ts +36 -0
  55. package/dist/components/ui/Button.d.ts.map +1 -0
  56. package/dist/components/ui/CopyableText.d.ts +5 -0
  57. package/dist/components/ui/CopyableText.d.ts.map +1 -0
  58. package/dist/components/ui/DateInput.d.ts +15 -0
  59. package/dist/components/ui/DateInput.d.ts.map +1 -0
  60. package/dist/components/ui/DateRangeFilterInput.d.ts +4 -0
  61. package/dist/components/ui/DateRangeFilterInput.d.ts.map +1 -0
  62. package/dist/components/ui/DetailHeader.d.ts +6 -0
  63. package/dist/components/ui/DetailHeader.d.ts.map +1 -0
  64. package/dist/components/ui/DraggableIcon.d.ts +3 -0
  65. package/dist/components/ui/DraggableIcon.d.ts.map +1 -0
  66. package/dist/components/ui/ErrorBoundary.d.ts +18 -0
  67. package/dist/components/ui/ErrorBoundary.d.ts.map +1 -0
  68. package/dist/components/ui/ErrorFallback.d.ts +6 -0
  69. package/dist/components/ui/ErrorFallback.d.ts.map +1 -0
  70. package/dist/components/ui/HelpText.d.ts +11 -0
  71. package/dist/components/ui/HelpText.d.ts.map +1 -0
  72. package/dist/components/ui/ImageWithFallback.d.ts +7 -0
  73. package/dist/components/ui/ImageWithFallback.d.ts.map +1 -0
  74. package/dist/components/ui/InfoTextBanner.d.ts +6 -0
  75. package/dist/components/ui/InfoTextBanner.d.ts.map +1 -0
  76. package/dist/components/ui/JSONView.d.ts +6 -0
  77. package/dist/components/ui/JSONView.d.ts.map +1 -0
  78. package/dist/components/ui/ListHeader.d.ts +6 -0
  79. package/dist/components/ui/ListHeader.d.ts.map +1 -0
  80. package/dist/components/ui/Loading.d.ts +10 -0
  81. package/dist/components/ui/Loading.d.ts.map +1 -0
  82. package/dist/components/ui/NoData.d.ts +7 -0
  83. package/dist/components/ui/NoData.d.ts.map +1 -0
  84. package/dist/components/ui/NoImage.d.ts +7 -0
  85. package/dist/components/ui/NoImage.d.ts.map +1 -0
  86. package/dist/components/ui/NoImageSvg.d.ts +8 -0
  87. package/dist/components/ui/NoImageSvg.d.ts.map +1 -0
  88. package/dist/components/ui/PageHeader.d.ts +11 -0
  89. package/dist/components/ui/PageHeader.d.ts.map +1 -0
  90. package/dist/components/ui/Pagination.d.ts +8 -0
  91. package/dist/components/ui/Pagination.d.ts.map +1 -0
  92. package/dist/components/ui/Portal/Portal.d.ts +16 -0
  93. package/dist/components/ui/Portal/Portal.d.ts.map +1 -0
  94. package/dist/components/ui/Portal/Portal.types.d.ts +16 -0
  95. package/dist/components/ui/Portal/Portal.types.d.ts.map +1 -0
  96. package/dist/components/ui/SaveAndCancelButtons.d.ts +10 -0
  97. package/dist/components/ui/SaveAndCancelButtons.d.ts.map +1 -0
  98. package/dist/components/ui/SearchField.d.ts +7 -0
  99. package/dist/components/ui/SearchField.d.ts.map +1 -0
  100. package/dist/components/ui/Tab.d.ts +18 -0
  101. package/dist/components/ui/Tab.d.ts.map +1 -0
  102. package/dist/components/ui/Tag/TagInput.d.ts +19 -0
  103. package/dist/components/ui/Tag/TagInput.d.ts.map +1 -0
  104. package/dist/components/ui/Tag/TagList.d.ts +8 -0
  105. package/dist/components/ui/Tag/TagList.d.ts.map +1 -0
  106. package/dist/components/ui/Tag/TagListForm.d.ts +8 -0
  107. package/dist/components/ui/Tag/TagListForm.d.ts.map +1 -0
  108. package/dist/components/ui/Toggle.d.ts +11 -0
  109. package/dist/components/ui/Toggle.d.ts.map +1 -0
  110. package/dist/components/ui/ToolTip.d.ts +7 -0
  111. package/dist/components/ui/ToolTip.d.ts.map +1 -0
  112. package/dist/components/ui/card.d.ts +9 -0
  113. package/dist/components/ui/card.d.ts.map +1 -0
  114. package/dist/components/ui/chart.d.ts +42 -0
  115. package/dist/components/ui/chart.d.ts.map +1 -0
  116. package/dist/components/ui/form/CheckboxField.d.ts +4 -0
  117. package/dist/components/ui/form/CheckboxField.d.ts.map +1 -0
  118. package/dist/components/ui/form/ChoicesField.d.ts +12 -0
  119. package/dist/components/ui/form/ChoicesField.d.ts.map +1 -0
  120. package/dist/components/ui/form/Combobox.d.ts +20 -0
  121. package/dist/components/ui/form/Combobox.d.ts.map +1 -0
  122. package/dist/components/ui/form/DatePickerField.d.ts +4 -0
  123. package/dist/components/ui/form/DatePickerField.d.ts.map +1 -0
  124. package/dist/components/ui/form/EmailField.d.ts +7 -0
  125. package/dist/components/ui/form/EmailField.d.ts.map +1 -0
  126. package/dist/components/ui/form/FieldWithHelp.d.ts +10 -0
  127. package/dist/components/ui/form/FieldWithHelp.d.ts.map +1 -0
  128. package/dist/components/ui/form/FieldWrapper.d.ts +8 -0
  129. package/dist/components/ui/form/FieldWrapper.d.ts.map +1 -0
  130. package/dist/components/ui/form/FormErrors.d.ts +6 -0
  131. package/dist/components/ui/form/FormErrors.d.ts.map +1 -0
  132. package/dist/components/ui/form/JSONAreaField.d.ts +7 -0
  133. package/dist/components/ui/form/JSONAreaField.d.ts.map +1 -0
  134. package/dist/components/ui/form/MarkdownTextAreaField.d.ts +8 -0
  135. package/dist/components/ui/form/MarkdownTextAreaField.d.ts.map +1 -0
  136. package/dist/components/ui/form/PasswordField.d.ts +3 -0
  137. package/dist/components/ui/form/PasswordField.d.ts.map +1 -0
  138. package/dist/components/ui/form/SelectField.d.ts +11 -0
  139. package/dist/components/ui/form/SelectField.d.ts.map +1 -0
  140. package/dist/components/ui/form/SubmitButton.d.ts +9 -0
  141. package/dist/components/ui/form/SubmitButton.d.ts.map +1 -0
  142. package/dist/components/ui/form/TagInputField.d.ts +7 -0
  143. package/dist/components/ui/form/TagInputField.d.ts.map +1 -0
  144. package/dist/components/ui/form/TextAreaField.d.ts +8 -0
  145. package/dist/components/ui/form/TextAreaField.d.ts.map +1 -0
  146. package/dist/components/ui/form/TextField.d.ts +10 -0
  147. package/dist/components/ui/form/TextField.d.ts.map +1 -0
  148. package/dist/components/ui/form/index.d.ts +18 -0
  149. package/dist/components/ui/form/index.d.ts.map +1 -0
  150. package/dist/components/ui/icons.d.ts +4 -0
  151. package/dist/components/ui/icons.d.ts.map +1 -0
  152. package/dist/components/ui/index.d.ts +47 -0
  153. package/dist/components/ui/index.d.ts.map +1 -0
  154. package/dist/form.js +2617 -0
  155. package/dist/gql/operation-types.d.ts +13239 -0
  156. package/dist/gql/operation-types.d.ts.map +1 -0
  157. package/dist/gql/schema-types.d.ts +3876 -0
  158. package/dist/gql/schema-types.d.ts.map +1 -0
  159. package/dist/gql/types.d.ts +3 -0
  160. package/dist/gql/types.d.ts.map +1 -0
  161. package/dist/hooks.js +49 -0
  162. package/dist/lib/utils.d.ts +3 -0
  163. package/dist/lib/utils.d.ts.map +1 -0
  164. package/dist/modal.js +51 -0
  165. package/dist/modules/Auth/AuthContext.d.ts +9 -0
  166. package/dist/modules/Auth/AuthContext.d.ts.map +1 -0
  167. package/dist/modules/Auth/useAuth.d.ts +6 -0
  168. package/dist/modules/Auth/useAuth.d.ts.map +1 -0
  169. package/dist/modules/UnchainedContext/UnchainedContext.d.ts +8 -0
  170. package/dist/modules/UnchainedContext/UnchainedContext.d.ts.map +1 -0
  171. package/dist/modules/UnchainedContext/useUnchainedContext.d.ts +7 -0
  172. package/dist/modules/UnchainedContext/useUnchainedContext.d.ts.map +1 -0
  173. package/dist/modules/accounts/fragment/MD5MetaDataFragment.d.ts +3 -0
  174. package/dist/modules/accounts/fragment/MD5MetaDataFragment.d.ts.map +1 -0
  175. package/dist/modules/accounts/fragment/UserFragment.d.ts +3 -0
  176. package/dist/modules/accounts/fragment/UserFragment.d.ts.map +1 -0
  177. package/dist/modules/accounts/hooks/useCurrentUser.d.ts +10 -0
  178. package/dist/modules/accounts/hooks/useCurrentUser.d.ts.map +1 -0
  179. package/dist/modules/accounts/hooks/useUsersCount.d.ts +8 -0
  180. package/dist/modules/accounts/hooks/useUsersCount.d.ts.map +1 -0
  181. package/dist/modules/accounts.js +1349 -0
  182. package/dist/modules/assortment/hooks/useAssortmentsCount.d.ts +8 -0
  183. package/dist/modules/assortment/hooks/useAssortmentsCount.d.ts.map +1 -0
  184. package/dist/modules/assortment.js +1205 -0
  185. package/dist/modules/common/components/AppContext.d.ts +18 -0
  186. package/dist/modules/common/components/AppContext.d.ts.map +1 -0
  187. package/dist/modules/common/components/FormWrapper.d.ts +8 -0
  188. package/dist/modules/common/components/FormWrapper.d.ts.map +1 -0
  189. package/dist/modules/common/components/LocaleWrapper.d.ts +7 -0
  190. package/dist/modules/common/components/LocaleWrapper.d.ts.map +1 -0
  191. package/dist/modules/common/components/MediaAvatar.d.ts +6 -0
  192. package/dist/modules/common/components/MediaAvatar.d.ts.map +1 -0
  193. package/dist/modules/common/components/SelectOptions.d.ts +17 -0
  194. package/dist/modules/common/components/SelectOptions.d.ts.map +1 -0
  195. package/dist/modules/common/components/Table.d.ts +25 -0
  196. package/dist/modules/common/components/Table.d.ts.map +1 -0
  197. package/dist/modules/common/components/TableCell.d.ts +12 -0
  198. package/dist/modules/common/components/TableCell.d.ts.map +1 -0
  199. package/dist/modules/common/components/TableRow.d.ts +10 -0
  200. package/dist/modules/common/components/TableRow.d.ts.map +1 -0
  201. package/dist/modules/common/components/ThemeWrapper.d.ts +10 -0
  202. package/dist/modules/common/components/ThemeWrapper.d.ts.map +1 -0
  203. package/dist/modules/common/data/iso-codes.d.ts +4 -0
  204. package/dist/modules/common/data/iso-codes.d.ts.map +1 -0
  205. package/dist/modules/common/data/miscellaneous.d.ts +52 -0
  206. package/dist/modules/common/data/miscellaneous.d.ts.map +1 -0
  207. package/dist/modules/common/fragments/AddressFragment.d.ts +3 -0
  208. package/dist/modules/common/fragments/AddressFragment.d.ts.map +1 -0
  209. package/dist/modules/common/hooks/useApp.d.ts +11 -0
  210. package/dist/modules/common/hooks/useApp.d.ts.map +1 -0
  211. package/dist/modules/common/hooks/useBulkResultHandler.d.ts +8 -0
  212. package/dist/modules/common/hooks/useBulkResultHandler.d.ts.map +1 -0
  213. package/dist/modules/common/hooks/useBulkSelection.d.ts +12 -0
  214. package/dist/modules/common/hooks/useBulkSelection.d.ts.map +1 -0
  215. package/dist/modules/common/hooks/useCSVExport.d.ts +10 -0
  216. package/dist/modules/common/hooks/useCSVExport.d.ts.map +1 -0
  217. package/dist/modules/common/hooks/useCSVImport.d.ts +18 -0
  218. package/dist/modules/common/hooks/useCSVImport.d.ts.map +1 -0
  219. package/dist/modules/common/hooks/useChatEndpointChecker.d.ts +5 -0
  220. package/dist/modules/common/hooks/useChatEndpointChecker.d.ts.map +1 -0
  221. package/dist/modules/common/hooks/useConfirmMediaUpload.d.ts +10 -0
  222. package/dist/modules/common/hooks/useConfirmMediaUpload.d.ts.map +1 -0
  223. package/dist/modules/common/hooks/useDashboardMetrics.d.ts +23 -0
  224. package/dist/modules/common/hooks/useDashboardMetrics.d.ts.map +1 -0
  225. package/dist/modules/common/hooks/useLocalStorage.d.ts +3 -0
  226. package/dist/modules/common/hooks/useLocalStorage.d.ts.map +1 -0
  227. package/dist/modules/common/hooks/useOrderAnalytics.d.ts +25 -0
  228. package/dist/modules/common/hooks/useOrderAnalytics.d.ts.map +1 -0
  229. package/dist/modules/common/hooks/useOrderItemsAnalytics.d.ts +16 -0
  230. package/dist/modules/common/hooks/useOrderItemsAnalytics.d.ts.map +1 -0
  231. package/dist/modules/common/hooks/useOutsideClick.d.ts +3 -0
  232. package/dist/modules/common/hooks/useOutsideClick.d.ts.map +1 -0
  233. package/dist/modules/common/hooks/usePortal.d.ts +20 -0
  234. package/dist/modules/common/hooks/usePortal.d.ts.map +1 -0
  235. package/dist/modules/common/hooks/useScrollRestoration.d.ts +8 -0
  236. package/dist/modules/common/hooks/useScrollRestoration.d.ts.map +1 -0
  237. package/dist/modules/common/hooks/useShopConfiguration.d.ts +8 -0
  238. package/dist/modules/common/hooks/useShopConfiguration.d.ts.map +1 -0
  239. package/dist/modules/common/hooks/useShopInfo.d.ts +41 -0
  240. package/dist/modules/common/hooks/useShopInfo.d.ts.map +1 -0
  241. package/dist/modules/common/hooks/useStatusTypes.d.ts +10 -0
  242. package/dist/modules/common/hooks/useStatusTypes.d.ts.map +1 -0
  243. package/dist/modules/common/hooks/useSystemRoles.d.ts +7 -0
  244. package/dist/modules/common/hooks/useSystemRoles.d.ts.map +1 -0
  245. package/dist/modules/common/hooks/useTheme.d.ts +7 -0
  246. package/dist/modules/common/hooks/useTheme.d.ts.map +1 -0
  247. package/dist/modules/common/utils/deBounce.d.ts +3 -0
  248. package/dist/modules/common/utils/deBounce.d.ts.map +1 -0
  249. package/dist/modules/common/utils/defaultNextImageLoader.d.ts +7 -0
  250. package/dist/modules/common/utils/defaultNextImageLoader.d.ts.map +1 -0
  251. package/dist/modules/common/utils/formatUsername.d.ts +3 -0
  252. package/dist/modules/common/utils/formatUsername.d.ts.map +1 -0
  253. package/dist/modules/common/utils/getSetupStepsConfigurationsMeta.d.ts +30 -0
  254. package/dist/modules/common/utils/getSetupStepsConfigurationsMeta.d.ts.map +1 -0
  255. package/dist/modules/common/utils/normalizeFilterKeys.d.ts +4 -0
  256. package/dist/modules/common/utils/normalizeFilterKeys.d.ts.map +1 -0
  257. package/dist/modules/common/utils/sharedContext.d.ts +9 -0
  258. package/dist/modules/common/utils/sharedContext.d.ts.map +1 -0
  259. package/dist/modules/common/utils/useFormatDateTime.d.ts +16 -0
  260. package/dist/modules/common/utils/useFormatDateTime.d.ts.map +1 -0
  261. package/dist/modules/common/utils/utils.d.ts +21 -0
  262. package/dist/modules/common/utils/utils.d.ts.map +1 -0
  263. package/dist/modules/country/fragments/CountryFragment.d.ts +3 -0
  264. package/dist/modules/country/fragments/CountryFragment.d.ts.map +1 -0
  265. package/dist/modules/country/hooks/useCountries.d.ts +22 -0
  266. package/dist/modules/country/hooks/useCountries.d.ts.map +1 -0
  267. package/dist/modules/country.js +108 -0
  268. package/dist/modules/currency.js +119 -0
  269. package/dist/modules/delivery-provider.js +269 -0
  270. package/dist/modules/enrollment.js +431 -0
  271. package/dist/modules/event.js +123 -0
  272. package/dist/modules/filter.js +497 -0
  273. package/dist/modules/forms/components/Form.d.ts +8 -0
  274. package/dist/modules/forms/components/Form.d.ts.map +1 -0
  275. package/dist/modules/forms/hooks/useField.d.ts +35 -0
  276. package/dist/modules/forms/hooks/useField.d.ts.map +1 -0
  277. package/dist/modules/forms/hooks/useForm.d.ts +44 -0
  278. package/dist/modules/forms/hooks/useForm.d.ts.map +1 -0
  279. package/dist/modules/forms/hooks/useFormContext.d.ts +3 -0
  280. package/dist/modules/forms/hooks/useFormContext.d.ts.map +1 -0
  281. package/dist/modules/forms/lib/FormContext.d.ts +13 -0
  282. package/dist/modules/forms/lib/FormContext.d.ts.map +1 -0
  283. package/dist/modules/forms/lib/clean.d.ts +3 -0
  284. package/dist/modules/forms/lib/clean.d.ts.map +1 -0
  285. package/dist/modules/forms/lib/validators.d.ts +20 -0
  286. package/dist/modules/forms/lib/validators.d.ts.map +1 -0
  287. package/dist/modules/language/fragments/LanguageFragment.d.ts +3 -0
  288. package/dist/modules/language/fragments/LanguageFragment.d.ts.map +1 -0
  289. package/dist/modules/language/hooks/useLanguages.d.ts +19 -0
  290. package/dist/modules/language/hooks/useLanguages.d.ts.map +1 -0
  291. package/dist/modules/language.js +106 -0
  292. package/dist/modules/modal/components/AlertMessage.d.ts +9 -0
  293. package/dist/modules/modal/components/AlertMessage.d.ts.map +1 -0
  294. package/dist/modules/modal/components/DangerMessage.d.ts +13 -0
  295. package/dist/modules/modal/components/DangerMessage.d.ts.map +1 -0
  296. package/dist/modules/modal/components/ImportResultMessage.d.ts +14 -0
  297. package/dist/modules/modal/components/ImportResultMessage.d.ts.map +1 -0
  298. package/dist/modules/modal/components/Modal.d.ts +10 -0
  299. package/dist/modules/modal/components/Modal.d.ts.map +1 -0
  300. package/dist/modules/modal/components/ModalWrapper.d.ts +6 -0
  301. package/dist/modules/modal/components/ModalWrapper.d.ts.map +1 -0
  302. package/dist/modules/modal/hooks/useModal.d.ts +7 -0
  303. package/dist/modules/modal/hooks/useModal.d.ts.map +1 -0
  304. package/dist/modules/modal/utils/ModalContext.d.ts +9 -0
  305. package/dist/modules/modal/utils/ModalContext.d.ts.map +1 -0
  306. package/dist/modules/order/fragments/OrderDetailFragment.d.ts +3 -0
  307. package/dist/modules/order/fragments/OrderDetailFragment.d.ts.map +1 -0
  308. package/dist/modules/order/fragments/OrderFragment.d.ts +3 -0
  309. package/dist/modules/order/fragments/OrderFragment.d.ts.map +1 -0
  310. package/dist/modules/order/hooks/useOrders.d.ts +46 -0
  311. package/dist/modules/order/hooks/useOrders.d.ts.map +1 -0
  312. package/dist/modules/order.js +569 -0
  313. package/dist/modules/payment-providers.js +206 -0
  314. package/dist/modules/product/hooks/useProductsCount.d.ts +8 -0
  315. package/dist/modules/product/hooks/useProductsCount.d.ts.map +1 -0
  316. package/dist/modules/product-review.js +270 -0
  317. package/dist/modules/product.js +6914 -0
  318. package/dist/modules/quotation.js +324 -0
  319. package/dist/modules/token.js +143 -0
  320. package/dist/modules/warehousing-providers.js +206 -0
  321. package/dist/modules/work/fragments/WorkFragment.d.ts +3 -0
  322. package/dist/modules/work/fragments/WorkFragment.d.ts.map +1 -0
  323. package/dist/modules/work/hooks/useAddWork.d.ts +6 -0
  324. package/dist/modules/work/hooks/useAddWork.d.ts.map +1 -0
  325. package/dist/modules/work/hooks/useWork.d.ts +32 -0
  326. package/dist/modules/work/hooks/useWork.d.ts.map +1 -0
  327. package/dist/modules/work.js +232 -0
  328. package/dist/plugins.js +13 -0
  329. package/dist/providers.js +9 -0
  330. package/dist/sdk/hooks.d.ts +12 -0
  331. package/dist/sdk/hooks.d.ts.map +1 -0
  332. package/dist/sdk/modal.d.ts +7 -0
  333. package/dist/sdk/modal.d.ts.map +1 -0
  334. package/dist/sdk/plugins.d.ts +78 -0
  335. package/dist/sdk/plugins.d.ts.map +1 -0
  336. package/dist/sdk/providers.d.ts +5 -0
  337. package/dist/sdk/providers.d.ts.map +1 -0
  338. package/dist/sdk/shims/admin-ui-plugins.d.ts +3 -0
  339. package/dist/sdk/shims/admin-ui-plugins.d.ts.map +1 -0
  340. package/dist/sdk/shims/apollo-client-react.d.ts +3 -0
  341. package/dist/sdk/shims/apollo-client-react.d.ts.map +1 -0
  342. package/dist/sdk/shims/apollo-client.d.ts +3 -0
  343. package/dist/sdk/shims/apollo-client.d.ts.map +1 -0
  344. package/dist/sdk/shims/host.d.ts +17 -0
  345. package/dist/sdk/shims/host.d.ts.map +1 -0
  346. package/dist/sdk/shims/next-head.d.ts +3 -0
  347. package/dist/sdk/shims/next-head.d.ts.map +1 -0
  348. package/dist/sdk/shims/next-image.d.ts +3 -0
  349. package/dist/sdk/shims/next-image.d.ts.map +1 -0
  350. package/dist/sdk/shims/next-link.d.ts +3 -0
  351. package/dist/sdk/shims/next-link.d.ts.map +1 -0
  352. package/dist/sdk/shims/next-router.d.ts +3 -0
  353. package/dist/sdk/shims/next-router.d.ts.map +1 -0
  354. package/dist/sdk/shims/react-dom-client.d.ts +3 -0
  355. package/dist/sdk/shims/react-dom-client.d.ts.map +1 -0
  356. package/dist/sdk/shims/react-dom.d.ts +3 -0
  357. package/dist/sdk/shims/react-dom.d.ts.map +1 -0
  358. package/dist/sdk/shims/react-hook-form.d.ts +3 -0
  359. package/dist/sdk/shims/react-hook-form.d.ts.map +1 -0
  360. package/dist/sdk/shims/react-intl.d.ts +3 -0
  361. package/dist/sdk/shims/react-intl.d.ts.map +1 -0
  362. package/dist/sdk/shims/react-jsx-runtime.d.ts +3 -0
  363. package/dist/sdk/shims/react-jsx-runtime.d.ts.map +1 -0
  364. package/dist/sdk/shims/react-toastify.d.ts +3 -0
  365. package/dist/sdk/shims/react-toastify.d.ts.map +1 -0
  366. package/dist/sdk/shims/react.d.ts +3 -0
  367. package/dist/sdk/shims/react.d.ts.map +1 -0
  368. package/dist/sdk/theme.d.ts +26 -0
  369. package/dist/sdk/theme.d.ts.map +1 -0
  370. package/dist/shims/admin-ui-plugins.js +9 -0
  371. package/dist/shims/apollo-client-react.js +25 -0
  372. package/dist/shims/apollo-client.js +55 -0
  373. package/dist/shims/next-head.js +9 -0
  374. package/dist/shims/next-image.js +9 -0
  375. package/dist/shims/next-link.js +9 -0
  376. package/dist/shims/next-router.js +13 -0
  377. package/dist/shims/react-dom-client.js +11 -0
  378. package/dist/shims/react-dom.js +22 -0
  379. package/dist/shims/react-hook-form.js +25 -0
  380. package/dist/shims/react-intl.js +37 -0
  381. package/dist/shims/react-jsx-runtime.js +11 -0
  382. package/dist/shims/react-toastify.js +16 -0
  383. package/dist/shims/react.js +52 -0
  384. package/dist/theme.js +34 -0
  385. package/dist/ui.js +19764 -0
  386. package/out/403/index.html +3 -3
  387. package/out/404/index.html +3 -3
  388. package/out/404.html +3 -3
  389. package/out/423/index.html +3 -3
  390. package/out/500/index.html +3 -3
  391. package/out/_next/static/{jOx5PlckLwWIJ5yrvePdU → LYf4c16v7ZGmJ_J77NFgQ}/_buildManifest.js +2 -2
  392. package/out/_next/static/chunks/{41p3ng89i5lem.js → 23swqksldp1rl.js} +1 -1
  393. package/out/_next/static/chunks/{1wnuiwsbi70eq.js → 3bqaitmo4sp-a.js} +1 -1
  394. package/out/_offline/index.html +3 -3
  395. package/out/account/forgot-password/index.html +3 -3
  396. package/out/account/index.html +3 -3
  397. package/out/assortments/AssortmentDetailPage/index.html +3 -3
  398. package/out/assortments/index.html +3 -3
  399. package/out/assortments/new/index.html +3 -3
  400. package/out/copilot/index.html +3 -3
  401. package/out/country/CountryDetailPage/index.html +3 -3
  402. package/out/country/index.html +3 -3
  403. package/out/country/new/index.html +3 -3
  404. package/out/currency/CurrencyDetailPage/index.html +3 -3
  405. package/out/currency/index.html +3 -3
  406. package/out/currency/new/index.html +3 -3
  407. package/out/delivery-provider/DeliveryProviderDetailPage/index.html +3 -3
  408. package/out/delivery-provider/index.html +3 -3
  409. package/out/delivery-provider/new/index.html +3 -3
  410. package/out/enrollments/EnrollmentDetailPage/index.html +3 -3
  411. package/out/enrollments/index.html +3 -3
  412. package/out/events/EventDetailPage/index.html +3 -3
  413. package/out/events/index.html +3 -3
  414. package/out/exports/index.html +3 -3
  415. package/out/external/index.html +3 -3
  416. package/out/filters/FilterDetailPage/index.html +3 -3
  417. package/out/filters/index.html +3 -3
  418. package/out/filters/new/index.html +3 -3
  419. package/out/index.html +3 -3
  420. package/out/install/index.html +3 -3
  421. package/out/language/LanguageDetailPage/index.html +3 -3
  422. package/out/language/index.html +3 -3
  423. package/out/language/new/index.html +3 -3
  424. package/out/log-in/index.html +3 -3
  425. package/out/manifest.json +48 -0
  426. package/out/orders/OrderDetailPage/index.html +3 -3
  427. package/out/orders/index.html +3 -3
  428. package/out/payment-provider/PaymentProviderDetailPage/index.html +3 -3
  429. package/out/payment-provider/index.html +3 -3
  430. package/out/payment-provider/new/index.html +3 -3
  431. package/out/products/ProductDetailPage/index.html +3 -3
  432. package/out/products/index.html +3 -3
  433. package/out/products/new/index.html +3 -3
  434. package/out/quotations/QuotationDetailPage/index.html +3 -3
  435. package/out/quotations/index.html +3 -3
  436. package/out/reset-password/index.html +3 -3
  437. package/out/sign-up/index.html +3 -3
  438. package/out/styleguide/index.html +3 -3
  439. package/out/tokens/TokenDetailPage/index.html +3 -3
  440. package/out/tokens/index.html +3 -3
  441. package/out/users/UserDetailPage/index.html +3 -3
  442. package/out/users/index.html +3 -3
  443. package/out/users/new/index.html +3 -3
  444. package/out/verify-email/index.html +3 -3
  445. package/out/warehousing-provider/WarehousingProviderDetailPage/index.html +3 -3
  446. package/out/warehousing-provider/index.html +3 -3
  447. package/out/warehousing-provider/new/index.html +3 -3
  448. package/out/works/WorkDetailPage/index.html +3 -3
  449. package/out/works/WorkQueueListView/index.html +3 -3
  450. package/out/works/index.html +3 -3
  451. package/out/works/management/index.html +3 -3
  452. package/package.json +2 -2
  453. /package/out/_next/static/{jOx5PlckLwWIJ5yrvePdU → LYf4c16v7ZGmJ_J77NFgQ}/_clientMiddlewareManifest.js +0 -0
  454. /package/out/_next/static/{jOx5PlckLwWIJ5yrvePdU → LYf4c16v7ZGmJ_J77NFgQ}/_ssgManifest.js +0 -0
@@ -0,0 +1,497 @@
1
+ import { FilterFragment_default } from '../chunk-OKGJ6HDE.js';
2
+ import { parseMeta_default } from '../chunk-YO6PT7KD.js';
3
+ import { useCSVExport } from '../chunk-IWKDBADX.js';
4
+ import '../chunk-VYEXPG3M.js';
5
+ import '../chunk-QWQ3WJJN.js';
6
+ import { useUnchainedContext_default } from '../chunk-IAQPLRXZ.js';
7
+ import '../chunk-WPLOTFGW.js';
8
+ import { gql } from '@apollo/client';
9
+ import { useMutation, useQuery } from '@apollo/client/react';
10
+ import { useCallback } from 'react';
11
+
12
+ var BulkRemoveFiltersMutation = gql`
13
+ mutation BulkRemoveFilters($filterIds: [ID!]!) {
14
+ bulkRemoveFilters(filterIds: $filterIds) {
15
+ successCount
16
+ failedCount
17
+ failedIds
18
+ }
19
+ }
20
+ `;
21
+ var BulkSetFilterActiveMutation = gql`
22
+ mutation BulkSetFilterActive($filterIds: [ID!]!, $isActive: Boolean!) {
23
+ bulkSetFilterActive(filterIds: $filterIds, isActive: $isActive) {
24
+ successCount
25
+ failedCount
26
+ failedIds
27
+ }
28
+ }
29
+ `;
30
+ var refetchQueries = ["Filters", "FiltersCount"];
31
+ var useBulkFilterOperations = () => {
32
+ const [bulkRemoveMutation] = useMutation(BulkRemoveFiltersMutation);
33
+ const [bulkSetActiveMutation] = useMutation(BulkSetFilterActiveMutation);
34
+ return {
35
+ bulkRemoveFilters: (filterIds) => bulkRemoveMutation({
36
+ variables: { filterIds },
37
+ refetchQueries,
38
+ awaitRefetchQueries: true
39
+ }),
40
+ bulkSetFilterActive: (filterIds, isActive) => bulkSetActiveMutation({
41
+ variables: { filterIds, isActive },
42
+ refetchQueries,
43
+ awaitRefetchQueries: true
44
+ })
45
+ };
46
+ };
47
+ var useBulkFilterOperations_default = useBulkFilterOperations;
48
+ var CreateFilterMutation = gql`
49
+ mutation CreateFilter(
50
+ $filter: CreateFilterInput!
51
+ $texts: [FilterTextInput!]!
52
+ ) {
53
+ createFilter(filter: $filter, texts: $texts) {
54
+ ...FilterFragment
55
+ }
56
+ }
57
+ ${FilterFragment_default}
58
+ `;
59
+ var useCreateFilter = () => {
60
+ const [createFilterMutation, { data, loading, error }] = useMutation(CreateFilterMutation);
61
+ const createFilter = async ({
62
+ filter: { key, type, options },
63
+ texts
64
+ }) => {
65
+ return createFilterMutation({
66
+ variables: { filter: { key, type, options }, texts }
67
+ });
68
+ };
69
+ const newFilter = data?.createFilter;
70
+ return {
71
+ createFilter,
72
+ newFilter,
73
+ loading,
74
+ error
75
+ };
76
+ };
77
+ var useCreateFilter_default = useCreateFilter;
78
+ var CreateFilterOptionMutation = gql`
79
+ mutation CreateFilterOption(
80
+ $filterId: ID!
81
+ $option: String!
82
+ $texts: [FilterTextInput!]
83
+ ) {
84
+ createFilterOption(filterId: $filterId, option: $option, texts: $texts) {
85
+ _id
86
+ }
87
+ }
88
+ `;
89
+ var useCreateFilterOption = () => {
90
+ const [createFilterOptionMutation] = useMutation(CreateFilterOptionMutation);
91
+ const createFilterOption = async ({
92
+ filterId,
93
+ option,
94
+ texts
95
+ }) => {
96
+ return createFilterOptionMutation({
97
+ variables: { filterId, option, texts },
98
+ refetchQueries: ["FilterOptions"]
99
+ });
100
+ };
101
+ return {
102
+ createFilterOption
103
+ };
104
+ };
105
+ var useCreateFilterOption_default = useCreateFilterOption;
106
+ var GetFilterQuery = (inlineFragment = "") => gql`
107
+ query Filter($filterId: ID) {
108
+ filter(filterId: $filterId) {
109
+ ...FilterFragment
110
+ ${inlineFragment}
111
+ texts {
112
+ _id
113
+ title
114
+ subtitle
115
+ locale
116
+ }
117
+ }
118
+ }
119
+ ${FilterFragment_default}
120
+ `;
121
+ var useFilter = ({ filterId = null } = {}) => {
122
+ const { customProperties, hydrateFragment } = useUnchainedContext_default();
123
+ const { data, loading, error } = useQuery(GetFilterQuery(customProperties?.Filter), {
124
+ skip: !filterId,
125
+ variables: { filterId }
126
+ });
127
+ const filter = data?.filter;
128
+ const extendedData = hydrateFragment(customProperties?.Filter, filter);
129
+ return {
130
+ filter,
131
+ loading,
132
+ error,
133
+ extendedData
134
+ };
135
+ };
136
+ var useFilter_default = useFilter;
137
+ var useFilterExport = () => {
138
+ const { exportCSV, isExporting } = useCSVExport();
139
+ const exportFilters = useCallback(
140
+ async (params) => {
141
+ await exportCSV({ type: "FILTERS", ...params });
142
+ },
143
+ [exportCSV]
144
+ );
145
+ return { exportFilters, isExporting };
146
+ };
147
+ var FilterOptionFragment = gql`
148
+ fragment FilterOptionFragment on FilterOption {
149
+ _id
150
+ texts(forceLocale: $forceLocale) {
151
+ _id
152
+ title
153
+ subtitle
154
+ locale
155
+ }
156
+ value
157
+ }
158
+ `;
159
+ var FilterOptionFragment_default = FilterOptionFragment;
160
+
161
+ // src/modules/filter/hooks/useFilterOptions.ts
162
+ var FilterOptionsQuery = gql`
163
+ query FilterOptions($filterId: ID, $forceLocale: Locale) {
164
+ filter(filterId: $filterId) {
165
+ _id
166
+ options {
167
+ ...FilterOptionFragment
168
+ }
169
+ }
170
+ }
171
+ ${FilterOptionFragment_default}
172
+ `;
173
+ var useFilterOptions = ({
174
+ filterId = null,
175
+ locale
176
+ } = {}) => {
177
+ const { data, loading, error } = useQuery(FilterOptionsQuery, {
178
+ skip: !filterId,
179
+ variables: { filterId, forceLocale: locale }
180
+ });
181
+ return {
182
+ filterOptions: data?.filter?.options || [],
183
+ loading,
184
+ error
185
+ };
186
+ };
187
+ var useFilterOptions_default = useFilterOptions;
188
+ var FilterTypesQuery = gql`
189
+ query FilterTypes {
190
+ filterTypes: __type(name: "FilterType") {
191
+ options: enumValues {
192
+ label: name
193
+ value: name
194
+ }
195
+ }
196
+ }
197
+ `;
198
+ var useFilterTypes = () => {
199
+ const { data, loading, error } = useQuery(FilterTypesQuery);
200
+ const filterTypes = data?.filterTypes?.options || [];
201
+ return {
202
+ filterTypes,
203
+ loading,
204
+ error
205
+ };
206
+ };
207
+ var useFilterTypes_default = useFilterTypes;
208
+ var FiltersQuery = gql`
209
+ query Filters(
210
+ $queryString: String
211
+ $limit: Int
212
+ $offset: Int
213
+ $includeInactive: Boolean
214
+ $sort: [SortOptionInput!]
215
+ ) {
216
+ filters(
217
+ queryString: $queryString
218
+ limit: $limit
219
+ offset: $offset
220
+ includeInactive: $includeInactive
221
+ sort: $sort
222
+ ) {
223
+ ...FilterFragment
224
+ texts {
225
+ _id
226
+ title
227
+ subtitle
228
+ locale
229
+ }
230
+ }
231
+ filtersCount(includeInactive: $includeInactive, queryString: $queryString)
232
+ }
233
+ ${FilterFragment_default}
234
+ `;
235
+ var useFilters = ({
236
+ queryString = "",
237
+ limit = 20,
238
+ offset = 0,
239
+ includeInactive = true,
240
+ sort = [],
241
+ forceLocale = ""
242
+ } = {}) => {
243
+ const { data, loading, error, fetchMore, client } = useQuery(FiltersQuery, {
244
+ context: {
245
+ headers: {
246
+ forceLocale
247
+ }
248
+ },
249
+ variables: {
250
+ queryString,
251
+ limit,
252
+ offset,
253
+ includeInactive,
254
+ sort
255
+ }
256
+ });
257
+ const filters = data?.filters || [];
258
+ const filtersCount = data?.filtersCount;
259
+ const hasMore = filters?.length < filtersCount;
260
+ const loadMore = () => {
261
+ fetchMore({
262
+ variables: { offset: filters?.length }
263
+ });
264
+ };
265
+ return {
266
+ filters,
267
+ filtersCount,
268
+ hasMore,
269
+ loading,
270
+ error,
271
+ loadMore,
272
+ client
273
+ };
274
+ };
275
+ var useFilters_default = useFilters;
276
+ var FiltersCountQuery = gql`
277
+ query FiltersCount($queryString: String, $includeInactive: Boolean) {
278
+ filtersCount(includeInactive: $includeInactive, queryString: $queryString)
279
+ }
280
+ `;
281
+ var useFiltersCount = ({
282
+ queryString = "",
283
+ includeInactive = true
284
+ } = {}) => {
285
+ const { data, loading, error } = useQuery(FiltersCountQuery, {
286
+ variables: {
287
+ queryString,
288
+ includeInactive
289
+ }
290
+ });
291
+ const filtersCount = data?.filtersCount;
292
+ return {
293
+ filtersCount,
294
+ loading,
295
+ error
296
+ };
297
+ };
298
+ var useFiltersCount_default = useFiltersCount;
299
+
300
+ // src/modules/filter/hooks/usePrepareFilterImport.ts
301
+ var normalizeContent = (row, prefix = "texts.") => {
302
+ const content = {};
303
+ Object.entries(row).forEach(([key, value]) => {
304
+ if (!key.startsWith(prefix)) return;
305
+ const [, locale, field] = key.split(".");
306
+ content[locale] = content[locale] || {};
307
+ content[locale][field] = value || "";
308
+ });
309
+ return content;
310
+ };
311
+ var normalizeOptions = (row) => {
312
+ const value = row["value"];
313
+ const content = {};
314
+ const textPrefix = "texts.";
315
+ Object.entries(row).forEach(([key, value2]) => {
316
+ if (!key.startsWith(textPrefix)) return;
317
+ const [, locale, field] = key.split(".");
318
+ content[locale] ||= {};
319
+ content[locale][field] = value2 || "";
320
+ });
321
+ return {
322
+ value,
323
+ content
324
+ };
325
+ };
326
+ var buildFilterEvents = (filter) => {
327
+ const meta = parseMeta_default(filter["meta"]);
328
+ return {
329
+ entity: "FILTER",
330
+ operation: "CREATE",
331
+ payload: {
332
+ _id: filter["_id"],
333
+ specification: {
334
+ type: filter["type"],
335
+ key: filter["key"] || "",
336
+ isActive: filter["isActive"] === "true",
337
+ content: normalizeContent(filter),
338
+ options: (filter?.options ?? []).map(normalizeOptions),
339
+ meta
340
+ }
341
+ }
342
+ };
343
+ };
344
+ var usePrepareFilterImport = () => {
345
+ const prepareFilterImport = async ({
346
+ filtersCSV,
347
+ optionsCSV
348
+ }) => {
349
+ return filtersCSV.map((filter) => {
350
+ const options = (optionsCSV || []).filter(
351
+ (option) => option["filterId"] === filter._id
352
+ );
353
+ return buildFilterEvents({ ...filter, options });
354
+ });
355
+ };
356
+ return { prepareFilterImport };
357
+ };
358
+ var RemoveFilterMutation = gql`
359
+ mutation RemoveFilter($filterId: ID!) {
360
+ removeFilter(filterId: $filterId) {
361
+ _id
362
+ }
363
+ }
364
+ `;
365
+ var useRemoveFilter = () => {
366
+ const [removeFilterMutation] = useMutation(RemoveFilterMutation);
367
+ const removeFilter = async ({ filterId }) => {
368
+ return removeFilterMutation({
369
+ variables: { filterId },
370
+ refetchQueries: ["Filters"]
371
+ });
372
+ };
373
+ return {
374
+ removeFilter
375
+ };
376
+ };
377
+ var useRemoveFilter_default = useRemoveFilter;
378
+ var RemoveFilterOptionMutation = gql`
379
+ mutation RemoveFilterOption($filterId: ID!, $filterOptionValue: String!) {
380
+ removeFilterOption(
381
+ filterId: $filterId
382
+ filterOptionValue: $filterOptionValue
383
+ ) {
384
+ _id
385
+ }
386
+ }
387
+ `;
388
+ var useRemoveFilterOption = () => {
389
+ const [removeFilterOptionMutation] = useMutation(RemoveFilterOptionMutation);
390
+ const removeFilterOption = async ({
391
+ filterId,
392
+ filterOptionValue
393
+ }) => {
394
+ return removeFilterOptionMutation({
395
+ variables: { filterOptionValue, filterId },
396
+ refetchQueries: ["FilterOptions"]
397
+ });
398
+ };
399
+ return {
400
+ removeFilterOption
401
+ };
402
+ };
403
+ var useRemoveFilterOption_default = useRemoveFilterOption;
404
+ var FilterTextsFragment = gql`
405
+ fragment FilterTextsFragment on FilterTexts {
406
+ _id
407
+ locale
408
+ title
409
+ subtitle
410
+ }
411
+ `;
412
+ var FilterTextsFragment_default = FilterTextsFragment;
413
+
414
+ // src/modules/filter/hooks/useTranslatedFilterTexts.ts
415
+ var TranslatedFilterTextsQuery = gql`
416
+ query TranslatedFilterTexts($filterId: ID!, $filterOptionValue: String) {
417
+ translatedFilterTexts(
418
+ filterId: $filterId
419
+ filterOptionValue: $filterOptionValue
420
+ ) {
421
+ ...FilterTextsFragment
422
+ }
423
+ }
424
+ ${FilterTextsFragment_default}
425
+ `;
426
+ var useTranslatedFilterTexts = ({
427
+ filterId = null,
428
+ filterOptionValue = null
429
+ }) => {
430
+ const { data, loading, error } = useQuery(TranslatedFilterTextsQuery, {
431
+ variables: { filterId, filterOptionValue }
432
+ });
433
+ return {
434
+ translatedFilterTexts: data?.translatedFilterTexts || [],
435
+ loading,
436
+ error
437
+ };
438
+ };
439
+ var useTranslatedFilterTexts_default = useTranslatedFilterTexts;
440
+ var UpdateFilterMutation = gql`
441
+ mutation UpdateFilter($filter: UpdateFilterInput!, $filterId: ID!) {
442
+ updateFilter(filter: $filter, filterId: $filterId) {
443
+ ...FilterFragment
444
+ }
445
+ }
446
+ ${FilterFragment_default}
447
+ `;
448
+ var useUpdateFilter = () => {
449
+ const [updateFilterMutation] = useMutation(UpdateFilterMutation);
450
+ const updateFilter = async ({
451
+ filterId,
452
+ filter
453
+ }) => {
454
+ return updateFilterMutation({
455
+ variables: { filter, filterId }
456
+ });
457
+ };
458
+ return {
459
+ updateFilter
460
+ };
461
+ };
462
+ var useUpdateFilter_default = useUpdateFilter;
463
+ var UpdateFilterTextsMutation = gql`
464
+ mutation UpdateFilterTexts(
465
+ $filterId: ID!
466
+ $filterOptionValue: String
467
+ $texts: [FilterTextInput!]!
468
+ ) {
469
+ updateFilterTexts(
470
+ filterId: $filterId
471
+ filterOptionValue: $filterOptionValue
472
+ texts: $texts
473
+ ) {
474
+ ...FilterTextsFragment
475
+ }
476
+ }
477
+ ${FilterTextsFragment_default}
478
+ `;
479
+ var useUpdateFilterTexts = () => {
480
+ const [updateFilterTextsMutation] = useMutation(UpdateFilterTextsMutation);
481
+ const updateFilterTexts = async ({
482
+ filterId,
483
+ filterOptionValue,
484
+ texts
485
+ }) => {
486
+ return updateFilterTextsMutation({
487
+ variables: { filterOptionValue, filterId, texts },
488
+ refetchQueries: ["TranslatedFilterTexts", "FilterOptions"]
489
+ });
490
+ };
491
+ return {
492
+ updateFilterTexts
493
+ };
494
+ };
495
+ var useUpdateFilterTexts_default = useUpdateFilterTexts;
496
+
497
+ export { useBulkFilterOperations_default as useBulkFilterOperations, useCreateFilter_default as useCreateFilter, useCreateFilterOption_default as useCreateFilterOption, useFilter_default as useFilter, useFilterExport, useFilterOptions_default as useFilterOptions, useFilterTypes_default as useFilterTypes, useFilters_default as useFilters, useFiltersCount_default as useFiltersCount, usePrepareFilterImport, useRemoveFilter_default as useRemoveFilter, useRemoveFilterOption_default as useRemoveFilterOption, useTranslatedFilterTexts_default as useTranslatedFilterTexts, useUpdateFilter_default as useUpdateFilter, useUpdateFilterTexts_default as useUpdateFilterTexts };
@@ -0,0 +1,8 @@
1
+ declare const Form: ({ form, children, className, ...props }: {
2
+ [x: string]: any;
3
+ form: any;
4
+ children: any;
5
+ className?: string;
6
+ }) => import("react").JSX.Element;
7
+ export default Form;
8
+ //# sourceMappingURL=Form.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../../../../src/modules/forms/components/Form.tsx"],"names":[],"mappings":"AAIA,QAAA,MAAM,IAAI,GAAI;;;;;CAA4C,gCAgBzD,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,35 @@
1
+ import { Validator } from '../lib/validators';
2
+ export interface CommonFieldProps {
3
+ name?: string;
4
+ id?: string;
5
+ required?: boolean;
6
+ disabled?: boolean;
7
+ value?: string;
8
+ autoComplete?: 'on' | 'off';
9
+ label?: string;
10
+ errorMessage?: string;
11
+ help?: string;
12
+ className?: string;
13
+ labelClassName?: string;
14
+ containerClassName?: string;
15
+ inputClassName?: string;
16
+ placeholder?: string;
17
+ hideLabel?: boolean;
18
+ onChange?: (event: any) => void;
19
+ [key: string]: any;
20
+ }
21
+ export interface FieldHookProps extends CommonFieldProps {
22
+ validators?: Validator[];
23
+ }
24
+ export interface ComputedProps extends CommonFieldProps {
25
+ error?: string;
26
+ onChange: (event: any) => void;
27
+ onBlur: () => void;
28
+ setValue: (value: any, options?: any) => void;
29
+ setError: (message: string) => void;
30
+ setTouched: (touched: boolean) => void;
31
+ value: string;
32
+ }
33
+ declare const useField: (props: FieldHookProps) => ComputedProps;
34
+ export default useField;
35
+ //# sourceMappingURL=useField.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useField.d.ts","sourceRoot":"","sources":["../../../../src/modules/forms/hooks/useField.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAoB,MAAM,mBAAmB,CAAC;AAGhE,MAAM,WAAW,gBAAgB;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,IAAI,GAAG,KAAK,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;IAChC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,MAAM,WAAW,cAAe,SAAQ,gBAAgB;IACtD,UAAU,CAAC,EAAE,SAAS,EAAE,CAAC;CAC1B;AAED,MAAM,WAAW,aAAc,SAAQ,gBAAgB;IACrD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;IAC/B,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,QAAQ,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;IAC9C,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,UAAU,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,KAAK,EAAE,MAAM,CAAC;CACf;AAED,QAAA,MAAM,QAAQ,GAAI,OAAO,cAAc,KAAG,aA2GzC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,44 @@
1
+ export type OnSubmitSuccessType = (result: boolean, values: Record<string, any>) => Promise<boolean> | boolean;
2
+ export type OnSubmitType = (variables: Record<string, any>) => Promise<{
3
+ success: boolean;
4
+ data?: any;
5
+ error?: any;
6
+ }>;
7
+ export interface FormAPI {
8
+ setFieldError: (name: string, message: string) => void;
9
+ setFieldValue: (name: string, value: any) => void;
10
+ setValues: (values: Record<string, any>) => void;
11
+ values: Record<string, any>;
12
+ isValid: boolean;
13
+ isSubmitting: boolean;
14
+ handleSubmit: (e?: React.BaseSyntheticEvent) => void;
15
+ handleReset: (e?: React.BaseSyntheticEvent) => void;
16
+ resetForm: (nextValues?: Record<string, any>) => void;
17
+ submitForm: () => void;
18
+ getFieldMeta: (name: string) => {
19
+ error: string | undefined;
20
+ touched: boolean;
21
+ };
22
+ initialValues: Record<string, any>;
23
+ errors: Record<string, any>;
24
+ }
25
+ declare const useForm: ({ submit, getSubmitErrorMessage, onSubmitSuccess, initialValues, initialErrors, initialTouched, successMessage, enableReinitialize, validate, disabled, }: {
26
+ submit: OnSubmitType;
27
+ getSubmitErrorMessage?: (error?: Error | any) => string;
28
+ onSubmitSuccess?: OnSubmitSuccessType;
29
+ initialValues: Record<string, any>;
30
+ initialTouched?: Record<string, boolean>;
31
+ initialErrors?: Record<string, string>;
32
+ enableReinitialize?: boolean;
33
+ successMessage?: string;
34
+ disabled?: boolean;
35
+ validate?: (values: Record<string, any>) => void | object | Promise<Record<string, string>>;
36
+ }) => {
37
+ submitError: string;
38
+ api: FormAPI;
39
+ rhf: import("react-hook-form").UseFormReturn<Record<string, any>, any, Record<string, any>>;
40
+ setSubmitError: import("react").Dispatch<import("react").SetStateAction<string>>;
41
+ disabled: boolean;
42
+ };
43
+ export default useForm;
44
+ //# sourceMappingURL=useForm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useForm.d.ts","sourceRoot":"","sources":["../../../../src/modules/forms/hooks/useForm.ts"],"names":[],"mappings":"AAOA,MAAM,MAAM,mBAAmB,GAAG,CAChC,MAAM,EAAE,OAAO,EACf,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KACxB,OAAO,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC;AAEhC,MAAM,MAAM,YAAY,GAAG,CACzB,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAC3B,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,IAAI,CAAC,EAAE,GAAG,CAAC;IAAC,KAAK,CAAC,EAAE,GAAG,CAAA;CAAE,CAAC,CAAC;AAgB5D,MAAM,WAAW,OAAO;IACtB,aAAa,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACvD,aAAa,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;IAClD,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,IAAI,CAAC;IACjD,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,EAAE,OAAO,CAAC;IACtB,YAAY,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,kBAAkB,KAAK,IAAI,CAAC;IACrD,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,kBAAkB,KAAK,IAAI,CAAC;IACpD,SAAS,EAAE,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,IAAI,CAAC;IACtD,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK;QAC9B,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;QAC1B,OAAO,EAAE,OAAO,CAAC;KAClB,CAAC;IACF,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACnC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC7B;AAED,QAAA,MAAM,OAAO,GAAI,2JAWd;IACD,MAAM,EAAE,YAAY,CAAC;IACrB,qBAAqB,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,GAAG,GAAG,KAAK,MAAM,CAAC;IACxD,eAAe,CAAC,EAAE,mBAAmB,CAAC;IACtC,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACnC,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzC,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACvC,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,CACT,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KACxB,IAAI,GAAG,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;CACtD;;;;;;CAuIA,CAAC;AACF,eAAe,OAAO,CAAC"}
@@ -0,0 +1,3 @@
1
+ declare const useFormContext: () => import("../lib/FormContext").FormContextValue;
2
+ export default useFormContext;
3
+ //# sourceMappingURL=useFormContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useFormContext.d.ts","sourceRoot":"","sources":["../../../../src/modules/forms/hooks/useFormContext.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,cAAc,qDAAgC,CAAC;AAErD,eAAe,cAAc,CAAC"}
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import type { UseFormReturn } from 'react-hook-form';
3
+ import type { FormAPI } from '../hooks/useForm';
4
+ export interface FormContextValue {
5
+ submitError: string;
6
+ rhf: UseFormReturn<any> | null;
7
+ api: FormAPI | null;
8
+ setSubmitError: (error: string) => void;
9
+ disabled: boolean;
10
+ }
11
+ declare const FormContext: React.Context<FormContextValue>;
12
+ export default FormContext;
13
+ //# sourceMappingURL=FormContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FormContext.d.ts","sourceRoot":"","sources":["../../../../src/modules/forms/lib/FormContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEhD,MAAM,WAAW,gBAAgB;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,GAAG,EAAE,aAAa,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC;IAC/B,GAAG,EAAE,OAAO,GAAG,IAAI,CAAC;IACpB,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,QAAA,MAAM,WAAW,iCAShB,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -0,0 +1,3 @@
1
+ declare const clean: (values: Record<string, any>) => Record<string, any>;
2
+ export default clean;
3
+ //# sourceMappingURL=clean.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clean.d.ts","sourceRoot":"","sources":["../../../../src/modules/forms/lib/clean.ts"],"names":[],"mappings":"AAkBA,QAAA,MAAM,KAAK,GAAI,QAAQ,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAG5D,CAAC;AAEJ,eAAe,KAAK,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { MessageDescriptor } from 'react-intl';
2
+ import { PrimitiveType } from 'intl-messageformat';
3
+ export type Validator = {
4
+ isValid: (arg0: any) => boolean;
5
+ intlMessageDescriptor: MessageDescriptor;
6
+ intlMessageValues?: Record<string, PrimitiveType>;
7
+ };
8
+ export declare const validateMaxLength: (max: number) => Validator;
9
+ export declare const validateEmail: Validator;
10
+ export declare const validateLanguage: () => Validator;
11
+ export declare const isContractAddress: (isRequired?: boolean) => Validator;
12
+ export declare const validateInteger: () => Validator;
13
+ export declare const validateCountry: () => Validator;
14
+ export declare const validateRequired: Validator;
15
+ export declare const validateDate: Validator;
16
+ export declare const validateBirthdate: Validator;
17
+ export declare const validateRequiredTag: (isRequired: any) => Validator;
18
+ export declare const validateProductCommerce: (currentIndex: any, getValues: () => any[]) => Validator;
19
+ export declare const validateProductCommerceOneZero: (getValues: () => any[]) => Validator;
20
+ //# sourceMappingURL=validators.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validators.d.ts","sourceRoot":"","sources":["../../../../src/modules/forms/lib/validators.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAW,MAAM,YAAY,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAKnD,MAAM,MAAM,SAAS,GAAG;IACtB,OAAO,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC;IAChC,qBAAqB,EAAE,iBAAiB,CAAC;IACzC,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;CACnD,CAAC;AAIF,eAAO,MAAM,iBAAiB,GAAI,KAAK,MAAM,KAAG,SAI9C,CAAC;AAEH,eAAO,MAAM,aAAa,EAAE,SAM3B,CAAC;AAEF,eAAO,MAAM,gBAAgB,QAAO,SAMlC,CAAC;AAEH,eAAO,MAAM,iBAAiB,GAAI,oBAAkB,KAAG,SAQrD,CAAC;AAEH,eAAO,MAAM,eAAe,QAAO,SASjC,CAAC;AAEH,eAAO,MAAM,eAAe,QAAO,SAMjC,CAAC;AAEH,eAAO,MAAM,gBAAgB,EAAE,SAiB9B,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,SAM1B,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,SAa/B,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,eAAU,KAAG,SAM/C,CAAC;AAEH,eAAO,MAAM,uBAAuB,GAClC,iBAAY,EACZ,WAAW,MAAM,GAAG,EAAE,KACrB,SA0BF,CAAC;AAKF,eAAO,MAAM,8BAA8B,GACzC,WAAW,MAAM,GAAG,EAAE,KACrB,SAsBF,CAAC"}
@@ -0,0 +1,3 @@
1
+ declare const LanguageFragment: import("graphql").DocumentNode;
2
+ export default LanguageFragment;
3
+ //# sourceMappingURL=LanguageFragment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LanguageFragment.d.ts","sourceRoot":"","sources":["../../../../src/modules/language/fragments/LanguageFragment.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,gBAAgB,gCAQrB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { ILanguagesQueryVariables } from '../../../gql/types';
2
+ declare const useLanguages: ({ queryString, limit, offset, includeInactive, sort, skip, }?: ILanguagesQueryVariables & {
3
+ skip?: boolean;
4
+ }) => {
5
+ languages: {
6
+ _id: string;
7
+ isoCode: string | null;
8
+ isActive: boolean | null;
9
+ isBase: boolean | null;
10
+ name: string | null;
11
+ }[];
12
+ languagesCount: number;
13
+ hasMore: boolean;
14
+ loading: boolean;
15
+ error: import("@apollo/client").ErrorLike;
16
+ loadMore: () => void;
17
+ };
18
+ export default useLanguages;
19
+ //# sourceMappingURL=useLanguages.d.ts.map