@unchainedshop/admin-ui 4.8.26 → 4.8.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-45H2WVIC.js +51 -0
- package/dist/chunk-4VNS5WPM.js +37 -0
- package/dist/chunk-54DKBWXV.js +33 -0
- package/dist/chunk-6TXD4TA7.js +1196 -0
- package/dist/chunk-BGCKJQGS.js +58 -0
- package/dist/chunk-BYXBJQAS.js +1 -0
- package/dist/chunk-EJDZRZSZ.js +59 -0
- package/dist/chunk-ELPURWDC.js +75 -0
- package/dist/chunk-IAQPLRXZ.js +16 -0
- package/dist/chunk-ILYPJE4N.js +57 -0
- package/dist/chunk-IXBMHOB5.js +13 -0
- package/dist/chunk-KH5MK6ZW.js +18 -0
- package/dist/chunk-NT7RB7AK.js +70 -0
- package/dist/chunk-OKGJ6HDE.js +26 -0
- package/dist/chunk-Q6S3LBUF.js +180 -0
- package/dist/chunk-QNLGYFV7.js +22 -0
- package/dist/chunk-RAQV2GYF.js +70 -0
- package/dist/chunk-RHUFQVKL.js +514 -0
- package/dist/chunk-RVG6IOFC.js +11 -0
- package/dist/chunk-SRAAKMWY.js +39 -0
- package/dist/chunk-UFYR5WZT.js +165 -0
- package/dist/chunk-UXG7EYHC.js +614 -0
- package/dist/chunk-VDKQGOMV.js +840 -0
- package/dist/chunk-XHOCXPD5.js +9 -0
- package/dist/chunk-XJBPMIC4.js +284 -0
- package/dist/chunk-YO6PT7KD.js +13 -0
- package/dist/chunk-YSKZE2KN.js +652 -0
- package/dist/components/ui/Accordion/Accordion.d.ts +11 -0
- package/dist/components/ui/Accordion/Accordion.d.ts.map +1 -0
- package/dist/components/ui/Accordion/AccordionHeader.d.ts +6 -0
- package/dist/components/ui/Accordion/AccordionHeader.d.ts.map +1 -0
- package/dist/components/ui/Accordion/AccordionItem.d.ts +11 -0
- package/dist/components/ui/Accordion/AccordionItem.d.ts.map +1 -0
- package/dist/components/ui/ActiveInActive.d.ts +10 -0
- package/dist/components/ui/ActiveInActive.d.ts.map +1 -0
- package/dist/components/ui/AnimatedCounter.d.ts +7 -0
- package/dist/components/ui/AnimatedCounter.d.ts.map +1 -0
- package/dist/components/ui/Badge.d.ts +10 -0
- package/dist/components/ui/Badge.d.ts.map +1 -0
- package/dist/components/ui/BreadCrumbs.d.ts +7 -0
- package/dist/components/ui/BreadCrumbs.d.ts.map +1 -0
- package/dist/components/ui/Button.d.ts +36 -0
- package/dist/components/ui/Button.d.ts.map +1 -0
- package/dist/components/ui/CopyableText.d.ts +5 -0
- package/dist/components/ui/CopyableText.d.ts.map +1 -0
- package/dist/components/ui/DateInput.d.ts +15 -0
- package/dist/components/ui/DateInput.d.ts.map +1 -0
- package/dist/components/ui/DateRangeFilterInput.d.ts +4 -0
- package/dist/components/ui/DateRangeFilterInput.d.ts.map +1 -0
- package/dist/components/ui/DetailHeader.d.ts +6 -0
- package/dist/components/ui/DetailHeader.d.ts.map +1 -0
- package/dist/components/ui/DraggableIcon.d.ts +3 -0
- package/dist/components/ui/DraggableIcon.d.ts.map +1 -0
- package/dist/components/ui/ErrorBoundary.d.ts +18 -0
- package/dist/components/ui/ErrorBoundary.d.ts.map +1 -0
- package/dist/components/ui/ErrorFallback.d.ts +6 -0
- package/dist/components/ui/ErrorFallback.d.ts.map +1 -0
- package/dist/components/ui/HelpText.d.ts +11 -0
- package/dist/components/ui/HelpText.d.ts.map +1 -0
- package/dist/components/ui/ImageWithFallback.d.ts +7 -0
- package/dist/components/ui/ImageWithFallback.d.ts.map +1 -0
- package/dist/components/ui/InfoTextBanner.d.ts +6 -0
- package/dist/components/ui/InfoTextBanner.d.ts.map +1 -0
- package/dist/components/ui/JSONView.d.ts +6 -0
- package/dist/components/ui/JSONView.d.ts.map +1 -0
- package/dist/components/ui/ListHeader.d.ts +6 -0
- package/dist/components/ui/ListHeader.d.ts.map +1 -0
- package/dist/components/ui/Loading.d.ts +3 -0
- package/dist/components/ui/Loading.d.ts.map +1 -0
- package/dist/components/ui/NoData.d.ts +7 -0
- package/dist/components/ui/NoData.d.ts.map +1 -0
- package/dist/components/ui/NoImage.d.ts +7 -0
- package/dist/components/ui/NoImage.d.ts.map +1 -0
- package/dist/components/ui/NoImageSvg.d.ts +8 -0
- package/dist/components/ui/NoImageSvg.d.ts.map +1 -0
- package/dist/components/ui/PageHeader.d.ts +11 -0
- package/dist/components/ui/PageHeader.d.ts.map +1 -0
- package/dist/components/ui/Pagination.d.ts +8 -0
- package/dist/components/ui/Pagination.d.ts.map +1 -0
- package/dist/components/ui/Portal/Portal.d.ts +16 -0
- package/dist/components/ui/Portal/Portal.d.ts.map +1 -0
- package/dist/components/ui/Portal/Portal.types.d.ts +16 -0
- package/dist/components/ui/Portal/Portal.types.d.ts.map +1 -0
- package/dist/components/ui/SaveAndCancelButtons.d.ts +10 -0
- package/dist/components/ui/SaveAndCancelButtons.d.ts.map +1 -0
- package/dist/components/ui/SearchField.d.ts +7 -0
- package/dist/components/ui/SearchField.d.ts.map +1 -0
- package/dist/components/ui/Tab.d.ts +18 -0
- package/dist/components/ui/Tab.d.ts.map +1 -0
- package/dist/components/ui/Tag/TagInput.d.ts +14 -0
- package/dist/components/ui/Tag/TagInput.d.ts.map +1 -0
- package/dist/components/ui/Tag/TagList.d.ts +8 -0
- package/dist/components/ui/Tag/TagList.d.ts.map +1 -0
- package/dist/components/ui/Tag/TagListForm.d.ts +8 -0
- package/dist/components/ui/Tag/TagListForm.d.ts.map +1 -0
- package/dist/components/ui/Toggle.d.ts +11 -0
- package/dist/components/ui/Toggle.d.ts.map +1 -0
- package/dist/components/ui/ToolTip.d.ts +7 -0
- package/dist/components/ui/ToolTip.d.ts.map +1 -0
- package/dist/components/ui/card.d.ts +9 -0
- package/dist/components/ui/card.d.ts.map +1 -0
- package/dist/components/ui/chart.d.ts +42 -0
- package/dist/components/ui/chart.d.ts.map +1 -0
- package/dist/components/ui/form/CheckboxField.d.ts +4 -0
- package/dist/components/ui/form/CheckboxField.d.ts.map +1 -0
- package/dist/components/ui/form/ChoicesField.d.ts +12 -0
- package/dist/components/ui/form/ChoicesField.d.ts.map +1 -0
- package/dist/components/ui/form/Combobox.d.ts +20 -0
- package/dist/components/ui/form/Combobox.d.ts.map +1 -0
- package/dist/components/ui/form/DatePickerField.d.ts +4 -0
- package/dist/components/ui/form/DatePickerField.d.ts.map +1 -0
- package/dist/components/ui/form/EmailField.d.ts +7 -0
- package/dist/components/ui/form/EmailField.d.ts.map +1 -0
- package/dist/components/ui/form/FieldWithHelp.d.ts +10 -0
- package/dist/components/ui/form/FieldWithHelp.d.ts.map +1 -0
- package/dist/components/ui/form/FieldWrapper.d.ts +8 -0
- package/dist/components/ui/form/FieldWrapper.d.ts.map +1 -0
- package/dist/components/ui/form/FormErrors.d.ts +6 -0
- package/dist/components/ui/form/FormErrors.d.ts.map +1 -0
- package/dist/components/ui/form/JSONAreaField.d.ts +7 -0
- package/dist/components/ui/form/JSONAreaField.d.ts.map +1 -0
- package/dist/components/ui/form/MarkdownTextAreaField.d.ts +8 -0
- package/dist/components/ui/form/MarkdownTextAreaField.d.ts.map +1 -0
- package/dist/components/ui/form/PasswordField.d.ts +3 -0
- package/dist/components/ui/form/PasswordField.d.ts.map +1 -0
- package/dist/components/ui/form/SelectField.d.ts +11 -0
- package/dist/components/ui/form/SelectField.d.ts.map +1 -0
- package/dist/components/ui/form/SubmitButton.d.ts +9 -0
- package/dist/components/ui/form/SubmitButton.d.ts.map +1 -0
- package/dist/components/ui/form/TagInputField.d.ts +6 -0
- package/dist/components/ui/form/TagInputField.d.ts.map +1 -0
- package/dist/components/ui/form/TextAreaField.d.ts +8 -0
- package/dist/components/ui/form/TextAreaField.d.ts.map +1 -0
- package/dist/components/ui/form/TextField.d.ts +10 -0
- package/dist/components/ui/form/TextField.d.ts.map +1 -0
- package/dist/components/ui/form/index.d.ts +17 -0
- package/dist/components/ui/form/index.d.ts.map +1 -0
- package/dist/components/ui/icons.d.ts +4 -0
- package/dist/components/ui/icons.d.ts.map +1 -0
- package/dist/components/ui/index.d.ts +41 -0
- package/dist/components/ui/index.d.ts.map +1 -0
- package/dist/form.js +30108 -0
- package/dist/gql/types.d.ts +17209 -0
- package/dist/gql/types.d.ts.map +1 -0
- package/dist/hooks.js +41 -0
- package/dist/lib/utils.d.ts +3 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/modal.js +114 -0
- package/dist/modules/UnchainedContext/UnchainedContext.d.ts +8 -0
- package/dist/modules/UnchainedContext/UnchainedContext.d.ts.map +1 -0
- package/dist/modules/UnchainedContext/useUnchainedContext.d.ts +7 -0
- package/dist/modules/UnchainedContext/useUnchainedContext.d.ts.map +1 -0
- package/dist/modules/accounts/fragment/MD5MetaDataFragment.d.ts +3 -0
- package/dist/modules/accounts/fragment/MD5MetaDataFragment.d.ts.map +1 -0
- package/dist/modules/accounts/fragment/UserFragment.d.ts +3 -0
- package/dist/modules/accounts/fragment/UserFragment.d.ts.map +1 -0
- package/dist/modules/accounts/hooks/useCurrentUser.d.ts +10 -0
- package/dist/modules/accounts/hooks/useCurrentUser.d.ts.map +1 -0
- package/dist/modules/accounts/hooks/useUsersCount.d.ts +8 -0
- package/dist/modules/accounts/hooks/useUsersCount.d.ts.map +1 -0
- package/dist/modules/accounts.js +1013 -0
- package/dist/modules/assortment/hooks/useAssortmentsCount.d.ts +8 -0
- package/dist/modules/assortment/hooks/useAssortmentsCount.d.ts.map +1 -0
- package/dist/modules/assortment.js +1121 -0
- package/dist/modules/common/components/AppContext.d.ts +18 -0
- package/dist/modules/common/components/AppContext.d.ts.map +1 -0
- package/dist/modules/common/components/FormWrapper.d.ts +8 -0
- package/dist/modules/common/components/FormWrapper.d.ts.map +1 -0
- package/dist/modules/common/components/ThemeWrapper.d.ts +10 -0
- package/dist/modules/common/components/ThemeWrapper.d.ts.map +1 -0
- package/dist/modules/common/data/iso-codes.d.ts +4 -0
- package/dist/modules/common/data/iso-codes.d.ts.map +1 -0
- package/dist/modules/common/data/miscellaneous.d.ts +51 -0
- package/dist/modules/common/data/miscellaneous.d.ts.map +1 -0
- package/dist/modules/common/fragments/AddressFragment.d.ts +3 -0
- package/dist/modules/common/fragments/AddressFragment.d.ts.map +1 -0
- package/dist/modules/common/hooks/useApp.d.ts +11 -0
- package/dist/modules/common/hooks/useApp.d.ts.map +1 -0
- package/dist/modules/common/hooks/useCSVExport.d.ts +10 -0
- package/dist/modules/common/hooks/useCSVExport.d.ts.map +1 -0
- package/dist/modules/common/hooks/useCSVImport.d.ts +18 -0
- package/dist/modules/common/hooks/useCSVImport.d.ts.map +1 -0
- package/dist/modules/common/hooks/useChatEndpointChecker.d.ts +5 -0
- package/dist/modules/common/hooks/useChatEndpointChecker.d.ts.map +1 -0
- package/dist/modules/common/hooks/useConfirmMediaUpload.d.ts +10 -0
- package/dist/modules/common/hooks/useConfirmMediaUpload.d.ts.map +1 -0
- package/dist/modules/common/hooks/useDashboardMetrics.d.ts +23 -0
- package/dist/modules/common/hooks/useDashboardMetrics.d.ts.map +1 -0
- package/dist/modules/common/hooks/useLocalStorage.d.ts +3 -0
- package/dist/modules/common/hooks/useLocalStorage.d.ts.map +1 -0
- package/dist/modules/common/hooks/useOrderAnalytics.d.ts +25 -0
- package/dist/modules/common/hooks/useOrderAnalytics.d.ts.map +1 -0
- package/dist/modules/common/hooks/useOrderItemsAnalytics.d.ts +16 -0
- package/dist/modules/common/hooks/useOrderItemsAnalytics.d.ts.map +1 -0
- package/dist/modules/common/hooks/useOutsideClick.d.ts +3 -0
- package/dist/modules/common/hooks/useOutsideClick.d.ts.map +1 -0
- package/dist/modules/common/hooks/usePortal.d.ts +20 -0
- package/dist/modules/common/hooks/usePortal.d.ts.map +1 -0
- package/dist/modules/common/hooks/useShopConfiguration.d.ts +8 -0
- package/dist/modules/common/hooks/useShopConfiguration.d.ts.map +1 -0
- package/dist/modules/common/hooks/useShopInfo.d.ts +41 -0
- package/dist/modules/common/hooks/useShopInfo.d.ts.map +1 -0
- package/dist/modules/common/hooks/useStatusTypes.d.ts +10 -0
- package/dist/modules/common/hooks/useStatusTypes.d.ts.map +1 -0
- package/dist/modules/common/hooks/useSystemRoles.d.ts +7 -0
- package/dist/modules/common/hooks/useSystemRoles.d.ts.map +1 -0
- package/dist/modules/common/hooks/useTheme.d.ts +7 -0
- package/dist/modules/common/hooks/useTheme.d.ts.map +1 -0
- package/dist/modules/common/utils/deBounce.d.ts +3 -0
- package/dist/modules/common/utils/deBounce.d.ts.map +1 -0
- package/dist/modules/common/utils/defaultNextImageLoader.d.ts +7 -0
- package/dist/modules/common/utils/defaultNextImageLoader.d.ts.map +1 -0
- package/dist/modules/common/utils/formatUsername.d.ts +3 -0
- package/dist/modules/common/utils/formatUsername.d.ts.map +1 -0
- package/dist/modules/common/utils/getSetupStepsConfigurationsMeta.d.ts +30 -0
- package/dist/modules/common/utils/getSetupStepsConfigurationsMeta.d.ts.map +1 -0
- package/dist/modules/common/utils/normalizeFilterKeys.d.ts +4 -0
- package/dist/modules/common/utils/normalizeFilterKeys.d.ts.map +1 -0
- package/dist/modules/common/utils/useFormatDateTime.d.ts +7 -0
- package/dist/modules/common/utils/useFormatDateTime.d.ts.map +1 -0
- package/dist/modules/common/utils/utils.d.ts +21 -0
- package/dist/modules/common/utils/utils.d.ts.map +1 -0
- package/dist/modules/country/fragments/CountryFragment.d.ts +3 -0
- package/dist/modules/country/fragments/CountryFragment.d.ts.map +1 -0
- package/dist/modules/country/hooks/useCountries.d.ts +22 -0
- package/dist/modules/country/hooks/useCountries.d.ts.map +1 -0
- package/dist/modules/country.js +108 -0
- package/dist/modules/currency.js +119 -0
- package/dist/modules/delivery-provider.js +269 -0
- package/dist/modules/enrollment.js +353 -0
- package/dist/modules/event.js +123 -0
- package/dist/modules/filter.js +448 -0
- package/dist/modules/forms/components/Form.d.ts +8 -0
- package/dist/modules/forms/components/Form.d.ts.map +1 -0
- package/dist/modules/forms/hooks/useField.d.ts +35 -0
- package/dist/modules/forms/hooks/useField.d.ts.map +1 -0
- package/dist/modules/forms/hooks/useForm.d.ts +44 -0
- package/dist/modules/forms/hooks/useForm.d.ts.map +1 -0
- package/dist/modules/forms/hooks/useFormContext.d.ts +3 -0
- package/dist/modules/forms/hooks/useFormContext.d.ts.map +1 -0
- package/dist/modules/forms/lib/FormContext.d.ts +13 -0
- package/dist/modules/forms/lib/FormContext.d.ts.map +1 -0
- package/dist/modules/forms/lib/clean.d.ts +3 -0
- package/dist/modules/forms/lib/clean.d.ts.map +1 -0
- package/dist/modules/forms/lib/validators.d.ts +20 -0
- package/dist/modules/forms/lib/validators.d.ts.map +1 -0
- package/dist/modules/language/fragments/LanguageFragment.d.ts +3 -0
- package/dist/modules/language/fragments/LanguageFragment.d.ts.map +1 -0
- package/dist/modules/language/hooks/useLanguages.d.ts +19 -0
- package/dist/modules/language/hooks/useLanguages.d.ts.map +1 -0
- package/dist/modules/language.js +106 -0
- package/dist/modules/modal/components/AlertMessage.d.ts +9 -0
- package/dist/modules/modal/components/AlertMessage.d.ts.map +1 -0
- package/dist/modules/modal/components/DangerMessage.d.ts +12 -0
- package/dist/modules/modal/components/DangerMessage.d.ts.map +1 -0
- package/dist/modules/modal/components/ImportResultMessage.d.ts +14 -0
- package/dist/modules/modal/components/ImportResultMessage.d.ts.map +1 -0
- package/dist/modules/modal/components/Modal.d.ts +10 -0
- package/dist/modules/modal/components/Modal.d.ts.map +1 -0
- package/dist/modules/modal/components/ModalWrapper.d.ts +6 -0
- package/dist/modules/modal/components/ModalWrapper.d.ts.map +1 -0
- package/dist/modules/modal/hooks/useModal.d.ts +7 -0
- package/dist/modules/modal/hooks/useModal.d.ts.map +1 -0
- package/dist/modules/modal/utils/ModalContext.d.ts +9 -0
- package/dist/modules/modal/utils/ModalContext.d.ts.map +1 -0
- package/dist/modules/order/fragments/OrderDetailFragment.d.ts +3 -0
- package/dist/modules/order/fragments/OrderDetailFragment.d.ts.map +1 -0
- package/dist/modules/order/fragments/OrderFragment.d.ts +3 -0
- package/dist/modules/order/fragments/OrderFragment.d.ts.map +1 -0
- package/dist/modules/order/hooks/useOrders.d.ts +46 -0
- package/dist/modules/order/hooks/useOrders.d.ts.map +1 -0
- package/dist/modules/order.js +563 -0
- package/dist/modules/payment-providers.js +206 -0
- package/dist/modules/product/hooks/useProductsCount.d.ts +8 -0
- package/dist/modules/product/hooks/useProductsCount.d.ts.map +1 -0
- package/dist/modules/product-review.js +251 -0
- package/dist/modules/product.js +1929 -0
- package/dist/modules/quotation.js +297 -0
- package/dist/modules/token.js +143 -0
- package/dist/modules/warehousing-providers.js +206 -0
- package/dist/modules/work/fragments/WorkFragment.d.ts +3 -0
- package/dist/modules/work/fragments/WorkFragment.d.ts.map +1 -0
- package/dist/modules/work/hooks/useAddWork.d.ts +6 -0
- package/dist/modules/work/hooks/useAddWork.d.ts.map +1 -0
- package/dist/modules/work/hooks/useWork.d.ts +32 -0
- package/dist/modules/work/hooks/useWork.d.ts.map +1 -0
- package/dist/modules/work.js +308 -0
- package/dist/plugins.js +8 -0
- package/dist/providers.js +6 -0
- package/dist/sdk/hooks.d.ts +9 -0
- package/dist/sdk/hooks.d.ts.map +1 -0
- package/dist/sdk/modal.d.ts +7 -0
- package/dist/sdk/modal.d.ts.map +1 -0
- package/dist/sdk/plugins.d.ts +67 -0
- package/dist/sdk/plugins.d.ts.map +1 -0
- package/dist/sdk/providers.d.ts +5 -0
- package/dist/sdk/providers.d.ts.map +1 -0
- package/dist/sdk/theme.d.ts +26 -0
- package/dist/sdk/theme.d.ts.map +1 -0
- package/dist/theme.js +34 -0
- package/dist/ui.js +21540 -0
- package/out/403/index.html +2 -2
- package/out/404/index.html +2 -2
- package/out/404.html +2 -2
- package/out/423/index.html +2 -2
- package/out/500/index.html +2 -2
- package/out/_next/static/chunks/{31_pg1fxqgdfx.js → 01crynfjy3xpb.js} +2 -2
- package/out/_next/static/chunks/{1hwup6qqzqzh8.js → 1-mz7zwy-mbvq.js} +2 -2
- package/out/_next/static/chunks/{2ecq8dhsm2eu1.js → 1szkbg0-e_tli.js} +1 -1
- package/out/_next/static/chunks/{0ac5zzn3zeki5.js → 2ncenexps2330.js} +2 -2
- package/out/_next/static/chunks/3-2opr3e2h-8o.js +105 -0
- package/out/_next/static/chunks/{turbopack-14zydki2yqyd3.js → turbopack-058ikg9c4qsyu.js} +1 -1
- package/out/_next/static/chunks/{turbopack-0la8grv9f6bxn.js → turbopack-22gnlzp5il9ai.js} +1 -1
- package/out/_next/static/chunks/{turbopack-1w2r6t0rjz8pp.js → turbopack-2h_05wv-1o-qp.js} +1 -1
- package/out/_next/static/{_TiowajLX6Z3MYsLPNgxd → hZLisNV-2KMtO7y1-ggVm}/_buildManifest.js +2 -2
- package/out/_offline/index.html +2 -2
- package/out/account/forgot-password/index.html +2 -2
- package/out/account/index.html +2 -2
- package/out/assortments/AssortmentDetailPage/index.html +2 -2
- package/out/assortments/index.html +2 -2
- package/out/assortments/new/index.html +2 -2
- package/out/copilot/index.html +2 -2
- package/out/country/CountryDetailPage/index.html +2 -2
- package/out/country/index.html +2 -2
- package/out/country/new/index.html +2 -2
- package/out/currency/CurrencyDetailPage/index.html +2 -2
- package/out/currency/index.html +2 -2
- package/out/currency/new/index.html +2 -2
- package/out/delivery-provider/DeliveryProviderDetailPage/index.html +2 -2
- package/out/delivery-provider/index.html +2 -2
- package/out/delivery-provider/new/index.html +2 -2
- package/out/enrollments/EnrollmentDetailPage/index.html +2 -2
- package/out/enrollments/index.html +2 -2
- package/out/events/EventDetailPage/index.html +2 -2
- package/out/events/index.html +2 -2
- package/out/exports/index.html +2 -2
- package/out/external/index.html +2 -2
- package/out/filters/FilterDetailPage/index.html +2 -2
- package/out/filters/index.html +2 -2
- package/out/filters/new/index.html +2 -2
- package/out/index.html +2 -2
- package/out/install/index.html +2 -2
- package/out/language/LanguageDetailPage/index.html +2 -2
- package/out/language/index.html +2 -2
- package/out/language/new/index.html +2 -2
- package/out/log-in/index.html +2 -2
- package/out/manifest.json +48 -0
- package/out/orders/OrderDetailPage/index.html +2 -2
- package/out/orders/index.html +2 -2
- package/out/payment-provider/PaymentProviderDetailPage/index.html +2 -2
- package/out/payment-provider/index.html +2 -2
- package/out/payment-provider/new/index.html +2 -2
- package/out/products/ProductDetailPage/index.html +2 -2
- package/out/products/index.html +2 -2
- package/out/products/new/index.html +2 -2
- package/out/quotations/QuotationDetailPage/index.html +2 -2
- package/out/quotations/index.html +2 -2
- package/out/reset-password/index.html +2 -2
- package/out/sign-up/index.html +2 -2
- package/out/styleguide/index.html +2 -2
- package/out/tokens/TokenDetailPage/index.html +2 -2
- package/out/tokens/index.html +2 -2
- package/out/users/UserDetailPage/index.html +2 -2
- package/out/users/index.html +2 -2
- package/out/users/new/index.html +2 -2
- package/out/verify-email/index.html +2 -2
- package/out/warehousing-provider/WarehousingProviderDetailPage/index.html +2 -2
- package/out/warehousing-provider/index.html +2 -2
- package/out/warehousing-provider/new/index.html +2 -2
- package/out/works/WorkDetailPage/index.html +2 -2
- package/out/works/WorkQueueListView/index.html +2 -2
- package/out/works/index.html +2 -2
- package/out/works/management/index.html +2 -2
- package/package.json +1 -1
- package/out/_next/static/chunks/1t20r1ofch5r3.js +0 -95
- /package/out/_next/static/{_TiowajLX6Z3MYsLPNgxd → hZLisNV-2KMtO7y1-ggVm}/_clientMiddlewareManifest.js +0 -0
- /package/out/_next/static/{_TiowajLX6Z3MYsLPNgxd → hZLisNV-2KMtO7y1-ggVm}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,448 @@
|
|
|
1
|
+
import { FilterFragment_default } from '../chunk-OKGJ6HDE.js';
|
|
2
|
+
import { parseMeta_default } from '../chunk-YO6PT7KD.js';
|
|
3
|
+
import '../chunk-BYXBJQAS.js';
|
|
4
|
+
import { useUnchainedContext_default } from '../chunk-IAQPLRXZ.js';
|
|
5
|
+
import '../chunk-4VNS5WPM.js';
|
|
6
|
+
import { gql } from '@apollo/client';
|
|
7
|
+
import { useMutation, useQuery } from '@apollo/client/react';
|
|
8
|
+
|
|
9
|
+
var CreateFilterMutation = gql`
|
|
10
|
+
mutation CreateFilter(
|
|
11
|
+
$filter: CreateFilterInput!
|
|
12
|
+
$texts: [FilterTextInput!]!
|
|
13
|
+
) {
|
|
14
|
+
createFilter(filter: $filter, texts: $texts) {
|
|
15
|
+
...FilterFragment
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
${FilterFragment_default}
|
|
19
|
+
`;
|
|
20
|
+
var useCreateFilter = () => {
|
|
21
|
+
const [createFilterMutation, { data, loading, error }] = useMutation(CreateFilterMutation);
|
|
22
|
+
const createFilter = async ({
|
|
23
|
+
filter: { key, type, options },
|
|
24
|
+
texts
|
|
25
|
+
}) => {
|
|
26
|
+
return createFilterMutation({
|
|
27
|
+
variables: { filter: { key, type, options }, texts }
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
const newFilter = data?.createFilter;
|
|
31
|
+
return {
|
|
32
|
+
createFilter,
|
|
33
|
+
newFilter,
|
|
34
|
+
loading,
|
|
35
|
+
error
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
var useCreateFilter_default = useCreateFilter;
|
|
39
|
+
var CreateFilterOptionMutation = gql`
|
|
40
|
+
mutation CreateFilterOption(
|
|
41
|
+
$filterId: ID!
|
|
42
|
+
$option: String!
|
|
43
|
+
$texts: [FilterTextInput!]
|
|
44
|
+
) {
|
|
45
|
+
createFilterOption(filterId: $filterId, option: $option, texts: $texts) {
|
|
46
|
+
_id
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
`;
|
|
50
|
+
var useCreateFilterOption = () => {
|
|
51
|
+
const [createFilterOptionMutation] = useMutation(CreateFilterOptionMutation);
|
|
52
|
+
const createFilterOption = async ({
|
|
53
|
+
filterId,
|
|
54
|
+
option,
|
|
55
|
+
texts
|
|
56
|
+
}) => {
|
|
57
|
+
return createFilterOptionMutation({
|
|
58
|
+
variables: { filterId, option, texts },
|
|
59
|
+
refetchQueries: ["FilterOptions"]
|
|
60
|
+
});
|
|
61
|
+
};
|
|
62
|
+
return {
|
|
63
|
+
createFilterOption
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
var useCreateFilterOption_default = useCreateFilterOption;
|
|
67
|
+
var GetFilterQuery = (inlineFragment = "") => gql`
|
|
68
|
+
query Filter($filterId: ID) {
|
|
69
|
+
filter(filterId: $filterId) {
|
|
70
|
+
...FilterFragment
|
|
71
|
+
${inlineFragment}
|
|
72
|
+
texts {
|
|
73
|
+
_id
|
|
74
|
+
title
|
|
75
|
+
subtitle
|
|
76
|
+
locale
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
${FilterFragment_default}
|
|
81
|
+
`;
|
|
82
|
+
var useFilter = ({ filterId = null } = {}) => {
|
|
83
|
+
const { customProperties, hydrateFragment } = useUnchainedContext_default();
|
|
84
|
+
const { data, loading, error } = useQuery(GetFilterQuery(customProperties?.Filter), {
|
|
85
|
+
skip: !filterId,
|
|
86
|
+
variables: { filterId }
|
|
87
|
+
});
|
|
88
|
+
const filter = data?.filter;
|
|
89
|
+
const extendedData = hydrateFragment(customProperties?.Filter, filter);
|
|
90
|
+
return {
|
|
91
|
+
filter,
|
|
92
|
+
loading,
|
|
93
|
+
error,
|
|
94
|
+
extendedData
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
var useFilter_default = useFilter;
|
|
98
|
+
var FilterOptionFragment = gql`
|
|
99
|
+
fragment FilterOptionFragment on FilterOption {
|
|
100
|
+
_id
|
|
101
|
+
texts(forceLocale: $forceLocale) {
|
|
102
|
+
_id
|
|
103
|
+
title
|
|
104
|
+
subtitle
|
|
105
|
+
locale
|
|
106
|
+
}
|
|
107
|
+
value
|
|
108
|
+
}
|
|
109
|
+
`;
|
|
110
|
+
var FilterOptionFragment_default = FilterOptionFragment;
|
|
111
|
+
|
|
112
|
+
// src/modules/filter/hooks/useFilterOptions.ts
|
|
113
|
+
var FilterOptionsQuery = gql`
|
|
114
|
+
query FilterOptions($filterId: ID, $forceLocale: Locale) {
|
|
115
|
+
filter(filterId: $filterId) {
|
|
116
|
+
_id
|
|
117
|
+
options {
|
|
118
|
+
...FilterOptionFragment
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
${FilterOptionFragment_default}
|
|
123
|
+
`;
|
|
124
|
+
var useFilterOptions = ({
|
|
125
|
+
filterId = null,
|
|
126
|
+
locale
|
|
127
|
+
} = {}) => {
|
|
128
|
+
const { data, loading, error } = useQuery(FilterOptionsQuery, {
|
|
129
|
+
skip: !filterId,
|
|
130
|
+
variables: { filterId, forceLocale: locale }
|
|
131
|
+
});
|
|
132
|
+
return {
|
|
133
|
+
filterOptions: data?.filter?.options || [],
|
|
134
|
+
loading,
|
|
135
|
+
error
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
var useFilterOptions_default = useFilterOptions;
|
|
139
|
+
var FilterTypesQuery = gql`
|
|
140
|
+
query FilterTypes {
|
|
141
|
+
filterTypes: __type(name: "FilterType") {
|
|
142
|
+
options: enumValues {
|
|
143
|
+
label: name
|
|
144
|
+
value: name
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
`;
|
|
149
|
+
var useFilterTypes = () => {
|
|
150
|
+
const { data, loading, error } = useQuery(FilterTypesQuery);
|
|
151
|
+
const filterTypes = data?.filterTypes?.options || [];
|
|
152
|
+
return {
|
|
153
|
+
filterTypes,
|
|
154
|
+
loading,
|
|
155
|
+
error
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
var useFilterTypes_default = useFilterTypes;
|
|
159
|
+
var FiltersQuery = gql`
|
|
160
|
+
query Filters(
|
|
161
|
+
$queryString: String
|
|
162
|
+
$limit: Int
|
|
163
|
+
$offset: Int
|
|
164
|
+
$includeInactive: Boolean
|
|
165
|
+
$sort: [SortOptionInput!]
|
|
166
|
+
) {
|
|
167
|
+
filters(
|
|
168
|
+
queryString: $queryString
|
|
169
|
+
limit: $limit
|
|
170
|
+
offset: $offset
|
|
171
|
+
includeInactive: $includeInactive
|
|
172
|
+
sort: $sort
|
|
173
|
+
) {
|
|
174
|
+
...FilterFragment
|
|
175
|
+
texts {
|
|
176
|
+
_id
|
|
177
|
+
title
|
|
178
|
+
subtitle
|
|
179
|
+
locale
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
filtersCount(includeInactive: $includeInactive, queryString: $queryString)
|
|
183
|
+
}
|
|
184
|
+
${FilterFragment_default}
|
|
185
|
+
`;
|
|
186
|
+
var useFilters = ({
|
|
187
|
+
queryString = "",
|
|
188
|
+
limit = 20,
|
|
189
|
+
offset = 0,
|
|
190
|
+
includeInactive = true,
|
|
191
|
+
sort = [],
|
|
192
|
+
forceLocale = ""
|
|
193
|
+
} = {}) => {
|
|
194
|
+
const { data, loading, error, fetchMore, client } = useQuery(FiltersQuery, {
|
|
195
|
+
context: {
|
|
196
|
+
headers: {
|
|
197
|
+
forceLocale
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
variables: {
|
|
201
|
+
queryString,
|
|
202
|
+
limit,
|
|
203
|
+
offset,
|
|
204
|
+
includeInactive,
|
|
205
|
+
sort
|
|
206
|
+
}
|
|
207
|
+
});
|
|
208
|
+
const filters = data?.filters || [];
|
|
209
|
+
const filtersCount = data?.filtersCount;
|
|
210
|
+
const hasMore = filters?.length < filtersCount;
|
|
211
|
+
const loadMore = () => {
|
|
212
|
+
fetchMore({
|
|
213
|
+
variables: { offset: filters?.length }
|
|
214
|
+
});
|
|
215
|
+
};
|
|
216
|
+
return {
|
|
217
|
+
filters,
|
|
218
|
+
filtersCount,
|
|
219
|
+
hasMore,
|
|
220
|
+
loading,
|
|
221
|
+
error,
|
|
222
|
+
loadMore,
|
|
223
|
+
client
|
|
224
|
+
};
|
|
225
|
+
};
|
|
226
|
+
var useFilters_default = useFilters;
|
|
227
|
+
var FiltersCountQuery = gql`
|
|
228
|
+
query FiltersCount($queryString: String, $includeInactive: Boolean) {
|
|
229
|
+
filtersCount(includeInactive: $includeInactive, queryString: $queryString)
|
|
230
|
+
}
|
|
231
|
+
`;
|
|
232
|
+
var useFiltersCount = ({
|
|
233
|
+
queryString = "",
|
|
234
|
+
includeInactive = true
|
|
235
|
+
} = {}) => {
|
|
236
|
+
const { data, loading, error } = useQuery(FiltersCountQuery, {
|
|
237
|
+
variables: {
|
|
238
|
+
queryString,
|
|
239
|
+
includeInactive
|
|
240
|
+
}
|
|
241
|
+
});
|
|
242
|
+
const filtersCount = data?.filtersCount;
|
|
243
|
+
return {
|
|
244
|
+
filtersCount,
|
|
245
|
+
loading,
|
|
246
|
+
error
|
|
247
|
+
};
|
|
248
|
+
};
|
|
249
|
+
var useFiltersCount_default = useFiltersCount;
|
|
250
|
+
|
|
251
|
+
// src/modules/filter/hooks/usePrepareFilterImport.ts
|
|
252
|
+
var normalizeContent = (row, prefix = "texts.") => {
|
|
253
|
+
const content = {};
|
|
254
|
+
Object.entries(row).forEach(([key, value]) => {
|
|
255
|
+
if (!key.startsWith(prefix)) return;
|
|
256
|
+
const [, locale, field] = key.split(".");
|
|
257
|
+
content[locale] = content[locale] || {};
|
|
258
|
+
content[locale][field] = value || "";
|
|
259
|
+
});
|
|
260
|
+
return content;
|
|
261
|
+
};
|
|
262
|
+
var normalizeOptions = (row) => {
|
|
263
|
+
const value = row["value"];
|
|
264
|
+
const content = {};
|
|
265
|
+
const textPrefix = "texts.";
|
|
266
|
+
Object.entries(row).forEach(([key, value2]) => {
|
|
267
|
+
if (!key.startsWith(textPrefix)) return;
|
|
268
|
+
const [, locale, field] = key.split(".");
|
|
269
|
+
content[locale] ||= {};
|
|
270
|
+
content[locale][field] = value2 || "";
|
|
271
|
+
});
|
|
272
|
+
return {
|
|
273
|
+
value,
|
|
274
|
+
content
|
|
275
|
+
};
|
|
276
|
+
};
|
|
277
|
+
var buildFilterEvents = (filter) => {
|
|
278
|
+
const meta = parseMeta_default(filter["meta"]);
|
|
279
|
+
return {
|
|
280
|
+
entity: "FILTER",
|
|
281
|
+
operation: "CREATE",
|
|
282
|
+
payload: {
|
|
283
|
+
_id: filter["_id"],
|
|
284
|
+
specification: {
|
|
285
|
+
type: filter["type"],
|
|
286
|
+
key: filter["key"] || "",
|
|
287
|
+
isActive: filter["isActive"] === "true",
|
|
288
|
+
content: normalizeContent(filter),
|
|
289
|
+
options: (filter?.options ?? []).map(normalizeOptions),
|
|
290
|
+
meta
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
};
|
|
294
|
+
};
|
|
295
|
+
var usePrepareFilterImport = () => {
|
|
296
|
+
const prepareFilterImport = async ({
|
|
297
|
+
filtersCSV,
|
|
298
|
+
optionsCSV
|
|
299
|
+
}) => {
|
|
300
|
+
return filtersCSV.map((filter) => {
|
|
301
|
+
const options = (optionsCSV || []).filter(
|
|
302
|
+
(option) => option["filterId"] === filter._id
|
|
303
|
+
);
|
|
304
|
+
return buildFilterEvents({ ...filter, options });
|
|
305
|
+
});
|
|
306
|
+
};
|
|
307
|
+
return { prepareFilterImport };
|
|
308
|
+
};
|
|
309
|
+
var RemoveFilterMutation = gql`
|
|
310
|
+
mutation RemoveFilter($filterId: ID!) {
|
|
311
|
+
removeFilter(filterId: $filterId) {
|
|
312
|
+
_id
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
`;
|
|
316
|
+
var useRemoveFilter = () => {
|
|
317
|
+
const [removeFilterMutation] = useMutation(RemoveFilterMutation);
|
|
318
|
+
const removeFilter = async ({ filterId }) => {
|
|
319
|
+
return removeFilterMutation({
|
|
320
|
+
variables: { filterId },
|
|
321
|
+
refetchQueries: ["Filters"]
|
|
322
|
+
});
|
|
323
|
+
};
|
|
324
|
+
return {
|
|
325
|
+
removeFilter
|
|
326
|
+
};
|
|
327
|
+
};
|
|
328
|
+
var useRemoveFilter_default = useRemoveFilter;
|
|
329
|
+
var RemoveFilterOptionMutation = gql`
|
|
330
|
+
mutation RemoveFilterOption($filterId: ID!, $filterOptionValue: String!) {
|
|
331
|
+
removeFilterOption(
|
|
332
|
+
filterId: $filterId
|
|
333
|
+
filterOptionValue: $filterOptionValue
|
|
334
|
+
) {
|
|
335
|
+
_id
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
`;
|
|
339
|
+
var useRemoveFilterOption = () => {
|
|
340
|
+
const [removeFilterOptionMutation] = useMutation(RemoveFilterOptionMutation);
|
|
341
|
+
const removeFilterOption = async ({
|
|
342
|
+
filterId,
|
|
343
|
+
filterOptionValue
|
|
344
|
+
}) => {
|
|
345
|
+
return removeFilterOptionMutation({
|
|
346
|
+
variables: { filterOptionValue, filterId },
|
|
347
|
+
refetchQueries: ["FilterOptions"]
|
|
348
|
+
});
|
|
349
|
+
};
|
|
350
|
+
return {
|
|
351
|
+
removeFilterOption
|
|
352
|
+
};
|
|
353
|
+
};
|
|
354
|
+
var useRemoveFilterOption_default = useRemoveFilterOption;
|
|
355
|
+
var FilterTextsFragment = gql`
|
|
356
|
+
fragment FilterTextsFragment on FilterTexts {
|
|
357
|
+
_id
|
|
358
|
+
locale
|
|
359
|
+
title
|
|
360
|
+
subtitle
|
|
361
|
+
}
|
|
362
|
+
`;
|
|
363
|
+
var FilterTextsFragment_default = FilterTextsFragment;
|
|
364
|
+
|
|
365
|
+
// src/modules/filter/hooks/useTranslatedFilterTexts.ts
|
|
366
|
+
var TranslatedFilterTextsQuery = gql`
|
|
367
|
+
query TranslatedFilterTexts($filterId: ID!, $filterOptionValue: String) {
|
|
368
|
+
translatedFilterTexts(
|
|
369
|
+
filterId: $filterId
|
|
370
|
+
filterOptionValue: $filterOptionValue
|
|
371
|
+
) {
|
|
372
|
+
...FilterTextsFragment
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
${FilterTextsFragment_default}
|
|
376
|
+
`;
|
|
377
|
+
var useTranslatedFilterTexts = ({
|
|
378
|
+
filterId = null,
|
|
379
|
+
filterOptionValue = null
|
|
380
|
+
}) => {
|
|
381
|
+
const { data, loading, error } = useQuery(TranslatedFilterTextsQuery, {
|
|
382
|
+
variables: { filterId, filterOptionValue }
|
|
383
|
+
});
|
|
384
|
+
return {
|
|
385
|
+
translatedFilterTexts: data?.translatedFilterTexts || [],
|
|
386
|
+
loading,
|
|
387
|
+
error
|
|
388
|
+
};
|
|
389
|
+
};
|
|
390
|
+
var useTranslatedFilterTexts_default = useTranslatedFilterTexts;
|
|
391
|
+
var UpdateFilterMutation = gql`
|
|
392
|
+
mutation UpdateFilter($filter: UpdateFilterInput!, $filterId: ID!) {
|
|
393
|
+
updateFilter(filter: $filter, filterId: $filterId) {
|
|
394
|
+
...FilterFragment
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
${FilterFragment_default}
|
|
398
|
+
`;
|
|
399
|
+
var useUpdateFilter = () => {
|
|
400
|
+
const [updateFilterMutation] = useMutation(UpdateFilterMutation);
|
|
401
|
+
const updateFilter = async ({
|
|
402
|
+
filterId,
|
|
403
|
+
filter
|
|
404
|
+
}) => {
|
|
405
|
+
return updateFilterMutation({
|
|
406
|
+
variables: { filter, filterId }
|
|
407
|
+
});
|
|
408
|
+
};
|
|
409
|
+
return {
|
|
410
|
+
updateFilter
|
|
411
|
+
};
|
|
412
|
+
};
|
|
413
|
+
var useUpdateFilter_default = useUpdateFilter;
|
|
414
|
+
var UpdateFilterTextsMutation = gql`
|
|
415
|
+
mutation UpdateFilterTexts(
|
|
416
|
+
$filterId: ID!
|
|
417
|
+
$filterOptionValue: String
|
|
418
|
+
$texts: [FilterTextInput!]!
|
|
419
|
+
) {
|
|
420
|
+
updateFilterTexts(
|
|
421
|
+
filterId: $filterId
|
|
422
|
+
filterOptionValue: $filterOptionValue
|
|
423
|
+
texts: $texts
|
|
424
|
+
) {
|
|
425
|
+
...FilterTextsFragment
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
${FilterTextsFragment_default}
|
|
429
|
+
`;
|
|
430
|
+
var useUpdateFilterTexts = () => {
|
|
431
|
+
const [updateFilterTextsMutation] = useMutation(UpdateFilterTextsMutation);
|
|
432
|
+
const updateFilterTexts = async ({
|
|
433
|
+
filterId,
|
|
434
|
+
filterOptionValue,
|
|
435
|
+
texts
|
|
436
|
+
}) => {
|
|
437
|
+
return updateFilterTextsMutation({
|
|
438
|
+
variables: { filterOptionValue, filterId, texts },
|
|
439
|
+
refetchQueries: ["TranslatedFilterTexts", "FilterOptions"]
|
|
440
|
+
});
|
|
441
|
+
};
|
|
442
|
+
return {
|
|
443
|
+
updateFilterTexts
|
|
444
|
+
};
|
|
445
|
+
};
|
|
446
|
+
var useUpdateFilterTexts_default = useUpdateFilterTexts;
|
|
447
|
+
|
|
448
|
+
export { useCreateFilter_default as useCreateFilter, useCreateFilterOption_default as useCreateFilterOption, useFilter_default as useFilter, 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 @@
|
|
|
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 @@
|
|
|
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;AAC1B,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,iCAMf,CAAC;AAEH,eAAe,WAAW,CAAC"}
|
|
@@ -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 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLanguages.d.ts","sourceRoot":"","sources":["../../../../src/modules/language/hooks/useLanguages.ts"],"names":[],"mappings":"AAEA,OAAO,EAAmB,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AAyB/E,QAAA,MAAM,YAAY,GAAI,+DAOnB,wBAAwB,GAAG;IAAE,IAAI,CAAC,EAAE,OAAO,CAAA;CAAO;;;;;;;;;;;;;CA2BpD,CAAC;AAEF,eAAe,YAAY,CAAC"}
|