@dashadmin/dash-admin 1.3.73 → 1.3.74-srcfree.2
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/AppAsyncWrapper.d.ts +3 -0
- package/dist/AppWrapper.d.ts +3 -0
- package/dist/DASHAdmin.d.ts +38 -0
- package/dist/RoutingWrapper.d.ts +10 -0
- package/dist/classes/DASHStorageClass.d.ts +5 -0
- package/dist/components/Input/RichTextField.d.ts +4 -0
- package/dist/components/Redirect.d.ts +9 -0
- package/dist/components/avatar/Avatar.d.ts +7 -0
- package/dist/components/avatar/SingleImageUploader.d.ts +9 -0
- package/dist/components/currency/Format.d.ts +4 -0
- package/dist/components/custom/Redirect.d.ts +7 -0
- package/dist/components/error/Error.d.ts +31 -0
- package/dist/components/geocoding/GeocodingField.d.ts +4 -0
- package/dist/components/i18n/BridgedLocalesMenuButton.d.ts +7 -0
- package/dist/components/i18n/LangSwitcher.d.ts +10 -0
- package/dist/components/loader/GlobalLoader.d.ts +6 -0
- package/dist/components/logs/LogFile.d.ts +6 -0
- package/dist/components/logs/LogFileById.d.ts +6 -0
- package/dist/components/logs/LogViewer.d.ts +8 -0
- package/dist/components/menu/AppMenu.d.ts +7 -0
- package/dist/components/menu/CustomMenuItemLink.d.ts +12 -0
- package/dist/components/menu/DarkToggleMode.d.ts +3 -0
- package/dist/components/menu/LanguageToggleMode.d.ts +3 -0
- package/dist/components/misc/CustomImageInput.d.ts +4 -0
- package/dist/components/misc/DASHGlobalErrorHandler.d.ts +10 -0
- package/dist/components/misc/DarkModeSwitcher.d.ts +3 -0
- package/dist/components/misc/HorizontalScroller.d.ts +14 -0
- package/dist/components/misc/LanguageSwitcher.d.ts +10 -0
- package/dist/components/misc/MuiSimpleJsonTable.d.ts +16 -0
- package/dist/components/misc/MultiLevelTable.d.ts +18 -0
- package/dist/components/misc/NoResults.d.ts +6 -0
- package/dist/components/misc/PDFViewer.d.ts +4 -0
- package/dist/components/navigation/Breadcrumbs.d.ts +14 -0
- package/dist/components/navigation/BreadcrumbsManager.d.ts +14 -0
- package/{src/components/navigation/index.tsx → dist/components/navigation/index.d.ts} +0 -1
- package/dist/components/panel/Error.d.ts +31 -0
- package/dist/components/permission/AvailablePermissionsContext.d.ts +11 -0
- package/dist/components/permission/PermissionsSelector.d.ts +4 -0
- package/dist/components/permission/PermissionsSelectorList.d.ts +4 -0
- package/dist/components/racustombuttons/CustomRAButton.d.ts +23 -0
- package/dist/components/racustombuttons/QuickButton.d.ts +15 -0
- package/dist/components/racustombuttons/QuickEditButton.d.ts +28 -0
- package/dist/components/racustombuttons/QuickIconButton.d.ts +27 -0
- package/dist/components/scrollbar/Scrollbar.d.ts +7 -0
- package/dist/components/selects/MultiSelect.d.ts +4 -0
- package/dist/components/selects/RASearchableSelect.d.ts +25 -0
- package/dist/components/selects/RASearchableSelectChips.d.ts +29 -0
- package/dist/components/selects/SearchableSelect.d.ts +3 -0
- package/dist/components/serviceAccount/ApiKeyRevealDialog.d.ts +7 -0
- package/dist/components/serviceAccount/ServiceAccountStatusSwitch.d.ts +4 -0
- package/dist/components/subscription/BillingCycleSelectInput.d.ts +3 -0
- package/dist/components/subscription/PlanAddonsSettings.d.ts +4 -0
- package/dist/components/subscription/PlanAuditLog.d.ts +4 -0
- package/dist/components/subscription/PlanFeaturesSettings.d.ts +4 -0
- package/dist/components/subscription/PlanLimitsSettings.d.ts +4 -0
- package/dist/components/subscription/PlanMetadataSettings.d.ts +4 -0
- package/dist/components/subscription/PlanPricesSettings.d.ts +4 -0
- package/{src/components/subscription/index.ts → dist/components/subscription/index.d.ts} +0 -2
- package/dist/components/svgelements/SvgLoading.d.ts +3 -0
- package/dist/components/svgelements/SvgLogo.d.ts +3 -0
- package/dist/components/svgelements/SvgLogoMin.d.ts +3 -0
- package/dist/components/svgelements/SvgShipping.d.ts +3 -0
- package/dist/components/tenancy/GlobalTenantWrapper.d.ts +6 -0
- package/dist/components/tenancy/TenantSwitcher.d.ts +16 -0
- package/dist/components/tenant/SettingsSections.d.ts +11 -0
- package/dist/components/tenant/TenancyPlan.d.ts +4 -0
- package/dist/components/tenant/TenancyPlan.js +307 -0
- package/dist/components/tenant/TenancySettings.d.ts +4 -0
- package/dist/components/tenant/TenantAttributes.d.ts +4 -0
- package/dist/components/tenant/TenantAttributesContext.d.ts +10 -0
- package/dist/components/tenant/TenantSelector.d.ts +11 -0
- package/dist/components/tenant/TenantSettings.d.ts +4 -0
- package/dist/components/tenant/TenantSettingsContext.d.ts +11 -0
- package/dist/components/tenant/TenantTheme.d.ts +4 -0
- package/dist/components/user/AvatarComponent.d.ts +6 -0
- package/dist/components/user/TenantAvatarComponent.d.ts +15 -0
- package/dist/components/user/UserPreferences.d.ts +3 -0
- package/dist/config/ACTIONS.d.ts +3 -0
- package/dist/config/ConstantsService.d.ts +14 -0
- package/dist/config/DASHAdminSystemConstants.d.ts +120 -0
- package/dist/config/PARSERS.d.ts +5 -0
- package/dist/contexts/DashQueryClientContext.d.ts +19 -0
- package/dist/contexts/DashResourceContext.d.ts +11 -0
- package/dist/contexts/I18nBridgeContext.d.ts +18 -0
- package/dist/contexts/I18nBridgeSetter.d.ts +3 -0
- package/dist/contexts/I18nReduxSync.d.ts +6 -0
- package/dist/contexts/SubscriptionPlanFormatsProvider.d.ts +13 -0
- package/dist/contexts/SystemRequestsCache.d.ts +16 -0
- package/dist/contexts/auth/AuthContext.d.ts +40 -0
- package/dist/contexts/auth/AuthContextLocalStorage.d.ts +27 -0
- package/dist/contexts/auth/DASHAuthenticationService.d.ts +46 -0
- package/dist/contexts/auth/WindowContext.d.ts +8 -0
- package/{src/contexts/auth/index.tsx → dist/contexts/auth/index.d.ts} +0 -1
- package/dist/contexts/com/FCMContext.d.ts +62 -0
- package/dist/contexts/com/LaravelEchoContext.d.ts +18 -0
- package/dist/contexts/com/LaravelEchoMgr.d.ts +8 -0
- package/dist/contexts/com/components/DefaultNotificationComponent.d.ts +6 -0
- package/dist/contexts/com/components/EchoNotificationsCenter.d.ts +3 -0
- package/dist/contexts/com/components/NotificationAttributesTable.d.ts +8 -0
- package/dist/contexts/com/components/NotificationRenderer.d.ts +8 -0
- package/dist/contexts/com/components/NotificationsWidget.d.ts +17 -0
- package/dist/contexts/com/components/notificationFormats.d.ts +38 -0
- package/dist/contexts/com/useLaravelEcho.d.ts +37 -0
- package/dist/contexts/dictionary/DictionaryContext.d.ts +21 -0
- package/dist/default-theme/DASHAppProviders.d.ts +21 -0
- package/dist/default-theme/DashThemeContext.d.ts +17 -0
- package/dist/default-theme/DashThemeHelperProvider.d.ts +10 -0
- package/dist/default-theme/DomainAppLayout.d.ts +13 -0
- package/dist/default-theme/DomainHeader.d.ts +6 -0
- package/dist/default-theme/DomainTheme.d.ts +8 -0
- package/dist/default-theme/FullLayoutMarkup.d.ts +9 -0
- package/dist/default-theme/StaticLayout.d.ts +5 -0
- package/{src/default-theme/index.tsx → dist/default-theme/index.d.ts} +0 -3
- package/dist/default-theme/menu/AppDashboardGrid.d.ts +24 -0
- package/dist/default-theme/menu/AppMaterialMenu.d.ts +11 -0
- package/dist/default-theme/menu/AppMenuComponents/SubmenuPortal.d.ts +15 -0
- package/dist/default-theme/menu/AppMenuComponents/collapsed/CollapsedSidebarItem.d.ts +22 -0
- package/dist/default-theme/menu/AppMenuComponents/collapsed/CollapsedSidebarItems.d.ts +11 -0
- package/dist/default-theme/menu/AppMenuComponents/expanded/CollapsableSidebarMenu.d.ts +4 -0
- package/dist/default-theme/menu/AppMenuComponents/expanded/SidebarItem.d.ts +3 -0
- package/dist/default-theme/menu/AppMenuComponents/getItem.d.ts +3 -0
- package/dist/default-theme/menu/AppMenuComponents/interfaces.d.ts +36 -0
- package/dist/default-theme/menu/AppMenuComponents/submenuConstants.d.ts +7 -0
- package/dist/default-theme/menu/AppSidebarMaterial.d.ts +8 -0
- package/dist/default-theme/menu/SidebarActions.d.ts +8 -0
- package/dist/default-theme/updateDomCssVariables.d.ts +6 -0
- package/dist/helpers/checkRole.d.ts +2 -0
- package/dist/helpers/parseAxiosError.d.ts +1 -0
- package/dist/hooks/audio/useAudio.d.ts +2 -0
- package/dist/hooks/axios.d.ts +5 -0
- package/dist/hooks/data/useDashboardStats.d.ts +13 -0
- package/dist/hooks/data/usePackageByClientsStats.d.ts +13 -0
- package/dist/hooks/data/usePackageByCommunesStats.d.ts +13 -0
- package/dist/hooks/data/usePackageStats.d.ts +13 -0
- package/dist/hooks/data/usePackageWithdrawDetails.d.ts +25 -0
- package/dist/hooks/data/useStats.d.ts +9 -0
- package/dist/hooks/isCurrentPath.d.ts +3 -0
- package/dist/hooks/notifications/WSMessagesManager.d.ts +4 -0
- package/dist/hooks/notifications/WSPusherManager.d.ts +3 -0
- package/dist/hooks/useBreadcrumbs.d.ts +21 -0
- package/dist/hooks/useClickOutside.d.ts +2 -0
- package/dist/hooks/useFormPersistance.d.ts +13 -0
- package/dist/hooks/useGlobalErrorMediator.d.ts +5 -0
- package/dist/hooks/useGlobalLoaderMgr.d.ts +3 -0
- package/dist/hooks/useHash.d.ts +2 -0
- package/dist/hooks/useLocalStorage.d.ts +2 -0
- package/dist/hooks/usePolyglotTranslation.d.ts +11 -0
- package/dist/hooks/usePrevious.d.ts +2 -0
- package/dist/hooks/usePrintSelected.d.ts +12 -0
- package/dist/hooks/useVirtualHash.d.ts +5 -0
- package/dist/hooks/window/useWindowSize.d.ts +6 -0
- package/{src/index.tsx → dist/index.d.ts} +22 -91
- package/dist/interfaces/IAppResourceConfig.d.ts +10 -0
- package/dist/interfaces/Log.d.ts +15 -0
- package/dist/interfaces/Tenant.d.ts +25 -0
- package/{src/interfaces/communication/IActions.tsx → dist/interfaces/communication/IActions.d.ts} +1 -2
- package/{src/interfaces/communication/INotification.tsx → dist/interfaces/communication/INotification.d.ts} +5 -7
- package/{src/interfaces/communication/IPayload.tsx → dist/interfaces/communication/IPayload.d.ts} +1 -1
- package/dist/interfaces/communication/IRequestAction.d.ts +10 -0
- package/dist/interfaces/communication/IRequestPayload.d.ts +7 -0
- package/dist/interfaces/communication/IResponseAction.d.ts +7 -0
- package/{src/interfaces/misc/IAny.tsx → dist/interfaces/misc/IAny.d.ts} +1 -1
- package/dist/interfaces/misc/IFlashMessage.d.ts +10 -0
- package/dist/interfaces/navigation/IAppMenu.d.ts +11 -0
- package/dist/interfaces/navigation/ICollapsableSidebarMenu.d.ts +10 -0
- package/dist/interfaces/navigation/IMenuItem.d.ts +14 -0
- package/{src/interfaces/notifications/IModel.tsx → dist/interfaces/notifications/IModel.d.ts} +1 -2
- package/dist/interfaces/notifications/IModelField.d.ts +10 -0
- package/dist/interfaces/notifications/IUserNotification.d.ts +11 -0
- package/{src/interfaces/notifications/IUserNotificationData.tsx → dist/interfaces/notifications/IUserNotificationData.d.ts} +6 -7
- package/dist/interfaces/notifications/IUserNotificationPayload.d.ts +10 -0
- package/dist/interfaces/user/IGetAuth.d.ts +75 -0
- package/dist/interfaces/user/ITenantSettings.d.ts +3 -0
- package/dist/interfaces/user/IUser.d.ts +60 -0
- package/dist/interfaces/user/IUserSettings.d.ts +36 -0
- package/{src/interfaces.tsx → dist/interfaces.d.ts} +5 -6
- package/dist/layout/AppLayout.d.ts +5 -0
- package/dist/layout/ApplicationLayout.d.ts +22 -0
- package/dist/layout/MotionWrapper.d.ts +22 -0
- package/dist/layout/MotionWrapper.original.d.ts +22 -0
- package/dist/layout/ResourceMenu.d.ts +7 -0
- package/dist/layout/ResoureLayout.d.ts +8 -0
- package/dist/layout/TransitionWrapper.d.ts +8 -0
- package/dist/pages/ChangePassword.d.ts +6 -0
- package/dist/pages/DASHLanding.d.ts +5 -0
- package/dist/pages/DASHLightWeightLogin.d.ts +6 -0
- package/dist/pages/DASHSimpleLogin.d.ts +6 -0
- package/dist/pages/Login.d.ts +3 -0
- package/dist/pages/Profile.d.ts +3 -0
- package/dist/pages/RecoverPassword.d.ts +3 -0
- package/dist/pages/SingleImageUploader.d.ts +8 -0
- package/dist/pages/VerifyAccount.d.ts +5 -0
- package/dist/providers/authProvider.d.ts +15 -0
- package/dist/providers/dataProvider.d.ts +31 -0
- package/dist/providers/i18n/en.d.ts +569 -0
- package/dist/providers/i18n/es.d.ts +2 -0
- package/dist/providers/i18n/languages.d.ts +571 -0
- package/dist/providers/i18n/mergeTranslations.d.ts +3 -0
- package/dist/providers/i18nProvider.d.ts +2 -0
- package/dist/react-admin-dash/RADashComponent.d.ts +7 -0
- package/dist/react-admin-dash/Resource.d.ts +16 -0
- package/dist/resources/Brand/BrandResource.d.ts +3 -0
- package/dist/resources/DASHResourceLoader.d.ts +17 -0
- package/dist/resources/Log/LogResource.d.ts +3 -0
- package/dist/resources/Tenant/ImpersonateTenantResource.d.ts +5 -0
- package/dist/resources/Trash/TrashTemplate.d.ts +3 -0
- package/dist/resources/User/components/AvatarUploadField.d.ts +6 -0
- package/dist/resources/User/components/PasswordFields.d.ts +8 -0
- package/dist/resources/User/getProfileMenu.d.ts +4 -0
- package/dist/resources/User/profileResource.d.ts +3 -0
- package/dist/resources/User/userLayout.d.ts +2 -0
- package/dist/resources/User/userResource.d.ts +3 -0
- package/dist/resources/User/userSchema.d.ts +3 -0
- package/dist/resources/User/usersFilters.d.ts +3 -0
- package/dist/resources.d.ts +11 -0
- package/dist/schemas/log.d.ts +3 -0
- package/dist/schemas/notification.d.ts +3 -0
- package/dist/schemas/permissions.d.ts +3 -0
- package/dist/schemas/roles.d.ts +3 -0
- package/dist/schemas/rolesDataGrid.d.ts +3 -0
- package/dist/schemas/subscription/components/SubscriptionActions.d.ts +4 -0
- package/dist/schemas/subscription/components/SubscriptionPaymentHistory.d.ts +4 -0
- package/dist/schemas/subscription/components/SubscriptionPlanFeatures.d.ts +4 -0
- package/dist/schemas/subscription/components/SubscriptionPlanPreview.d.ts +4 -0
- package/dist/schemas/subscription/components/SubscriptionPlanStats.d.ts +4 -0
- package/dist/schemas/subscription/components/SubscriptionStatusIndicator.d.ts +4 -0
- package/dist/schemas/subscription/subscriptionPlanSchema.d.ts +3 -0
- package/dist/schemas/subscription/subscriptionSchema.d.ts +3 -0
- package/dist/schemas/subscriptionPlan.d.ts +3 -0
- package/dist/schemas/tenant.d.ts +3 -0
- package/dist/schemas/tenantUser.d.ts +3 -0
- package/dist/schemas/tenant_superadmin.d.ts +3 -0
- package/dist/schemas/user.d.ts +3 -0
- package/dist/systemResources.d.ts +3 -0
- package/dist/systemResources.js +18 -2
- package/dist/systemResources.old.d.ts +3 -0
- package/dist/templates/ResourceTemplate.d.ts +10 -0
- package/dist/templates/ResourceTemplateCreate.d.ts +3 -0
- package/dist/templates/ResourceTemplateEdit.d.ts +3 -0
- package/dist/templates/ResourceTemplateFull.d.ts +7 -0
- package/dist/templates/ResourceTemplateList.d.ts +8 -0
- package/dist/templates/ResourceTemplateShow.d.ts +3 -0
- package/dist/templates/TrashTemplate.d.ts +3 -0
- package/dist/tenantResources.d.ts +3 -0
- package/dist/test_portal_bubbles.d.ts +2 -0
- package/dist/theme/AppHeader.d.ts +6 -0
- package/dist/theme/AppLayoutSetting.d.ts +28 -0
- package/dist/theme/AppLogo.d.ts +8 -0
- package/dist/theme/AppSidebar.d.ts +7 -0
- package/dist/theme/AppSidebarContent.d.ts +12 -0
- package/dist/theme/AppSidebarLogo.d.ts +9 -0
- package/dist/theme/components/PageTitle.d.ts +10 -0
- package/dist/utils/cache/CacheInvalidatorContext.d.ts +25 -0
- package/dist/utils/cache/CacheInvalidatorListenerComponent.d.ts +3 -0
- package/dist/utils/cache/useCacheInvalidatorListener.d.ts +4 -0
- package/dist/utils/convertFileToBase64.d.ts +2 -0
- package/dist/utils/convertToFile.d.ts +2 -0
- package/dist/utils/cookies.d.ts +5 -0
- package/dist/utils/dashDefaultQueryClient.d.ts +3 -0
- package/dist/utils/dataUrlToBlob.d.ts +2 -0
- package/dist/utils/deepReplace.d.ts +2 -0
- package/dist/utils/getProfileMenu.d.ts +3 -0
- package/dist/utils/getTenantSettings.d.ts +3 -0
- package/dist/utils/getType.d.ts +2 -0
- package/dist/utils/getUserSettings.d.ts +3 -0
- package/dist/utils/hasCode.d.ts +2 -0
- package/dist/utils/index.d.ts +19 -0
- package/dist/utils/injectTenantStyles.d.ts +2 -0
- package/dist/utils/isComponent.d.ts +2 -0
- package/dist/utils/navEvents.d.ts +28 -0
- package/dist/utils/regexp.d.ts +1 -0
- package/dist/utils/resolveObjectPath.d.ts +2 -0
- package/dist/utils/setNativeValue.d.ts +2 -0
- package/dist/utils/slugify.d.ts +1 -0
- package/dist/utils/validators/emailValidator.d.ts +2 -0
- package/dist/utils/validators/requiredValidator.d.ts +2 -0
- package/dist/utils/validators/rutValidator.d.ts +2 -0
- package/dist/utils/validators.d.ts +3 -0
- package/package.json +25 -22
- package/src/AppAsyncWrapper.tsx +0 -42
- package/src/AppWrapper.tsx +0 -45
- package/src/DASHAdmin.tsx +0 -502
- package/src/DASHAdmin.tsx.old +0 -456
- package/src/RoutingWrapper.tsx +0 -143
- package/src/classes/DASHStorageClass.tsx +0 -8
- package/src/components/Input/RichTextField.tsx +0 -27
- package/src/components/Redirect.tsx +0 -46
- package/src/components/avatar/Avatar.tsx +0 -71
- package/src/components/avatar/SingleImageUploader.tsx +0 -107
- package/src/components/currency/Format.tsx +0 -79
- package/src/components/custom/Redirect.tsx +0 -23
- package/src/components/error/Error.tsx +0 -168
- package/src/components/geocoding/GeocodingField.tsx +0 -167
- package/src/components/i18n/BridgedLocalesMenuButton.tsx +0 -160
- package/src/components/i18n/LangSwitcher.tsx +0 -204
- package/src/components/loader/GlobalLoader.tsx +0 -49
- package/src/components/logs/LogFile.tsx +0 -88
- package/src/components/logs/LogFileById.tsx +0 -68
- package/src/components/logs/LogViewer.tsx +0 -43
- package/src/components/menu/AppMenu.tsx +0 -22
- package/src/components/menu/CustomMenuItemLink.tsx +0 -61
- package/src/components/menu/DarkToggleMode.tsx +0 -65
- package/src/components/menu/LanguageToggleMode.tsx +0 -120
- package/src/components/misc/CustomImageInput.tsx +0 -62
- package/src/components/misc/DASHGlobalErrorHandler.tsx +0 -194
- package/src/components/misc/DarkModeSwitcher.tsx +0 -112
- package/src/components/misc/HorizontalScroller.tsx +0 -225
- package/src/components/misc/LanguageSwitcher.tsx +0 -199
- package/src/components/misc/MUIHtmlToolTip.tsx +0 -15
- package/src/components/misc/MuiSimpleJsonTable.tsx +0 -279
- package/src/components/misc/MultiLevelTable.tsx +0 -229
- package/src/components/misc/NoResults.tsx +0 -28
- package/src/components/misc/PDFViewer.tsx +0 -85
- package/src/components/navigation/Breadcrumbs.tsx +0 -220
- package/src/components/navigation/BreadcrumbsManager.tsx +0 -310
- package/src/components/panel/Error.tsx +0 -168
- package/src/components/permission/AvailablePermissionsContext.tsx +0 -173
- package/src/components/permission/PermissionsSelector.tsx +0 -834
- package/src/components/permission/PermissionsSelectorList.tsx +0 -473
- package/src/components/racustombuttons/CustomRAButton.tsx +0 -87
- package/src/components/racustombuttons/QuickButton.tsx +0 -117
- package/src/components/racustombuttons/QuickEditButton.tsx +0 -115
- package/src/components/racustombuttons/QuickIconButton.tsx +0 -122
- package/src/components/scrollbar/Scrollbar.tsx +0 -31
- package/src/components/selects/MultiSelect.tsx +0 -53
- package/src/components/selects/RASearchableSelect.tsx +0 -282
- package/src/components/selects/RASearchableSelectChips.tsx +0 -308
- package/src/components/selects/SearchableSelect.tsx +0 -139
- package/src/components/serviceAccount/ApiKeyRevealDialog.tsx +0 -129
- package/src/components/serviceAccount/ServiceAccountStatusSwitch.tsx +0 -99
- package/src/components/subscription/BillingCycleSelectInput.tsx +0 -68
- package/src/components/subscription/PlanAddonsSettings.tsx +0 -563
- package/src/components/subscription/PlanAuditLog.tsx +0 -453
- package/src/components/subscription/PlanFeaturesSettings.tsx +0 -243
- package/src/components/subscription/PlanLimitsSettings.tsx +0 -230
- package/src/components/subscription/PlanMetadataSettings.tsx +0 -306
- package/src/components/subscription/PlanPricesSettings.tsx +0 -307
- package/src/components/svgelements/SvgLoading.tsx +0 -229
- package/src/components/svgelements/SvgLogo.tsx +0 -53
- package/src/components/svgelements/SvgLogoMin.tsx +0 -64
- package/src/components/svgelements/SvgShipping.tsx +0 -673
- package/src/components/tenancy/GlobalTenantWrapper.tsx +0 -84
- package/src/components/tenancy/TenantSwitcher.tsx +0 -514
- package/src/components/tenant/SettingsSections.tsx +0 -151
- package/src/components/tenant/TenancySettings.tsx +0 -122
- package/src/components/tenant/TenantAttributes.tsx +0 -153
- package/src/components/tenant/TenantAttributesContext.tsx +0 -163
- package/src/components/tenant/TenantSelector.tsx +0 -142
- package/src/components/tenant/TenantSettings.tsx +0 -184
- package/src/components/tenant/TenantSettingsContext.tsx +0 -165
- package/src/components/tenant/TenantTheme.tsx +0 -172
- package/src/components/user/AvatarComponent.tsx +0 -317
- package/src/components/user/TenantAvatarComponent.tsx +0 -99
- package/src/components/user/UserPreferences.tsx +0 -677
- package/src/config/ACTIONS.tsx +0 -26
- package/src/config/ConstantsService.tsx +0 -44
- package/src/config/DASHAdminSystemConstants.tsx +0 -183
- package/src/config/PARSERS.tsx +0 -9
- package/src/contexts/DashQueryClientContext.tsx +0 -113
- package/src/contexts/DashResourceContext.tsx +0 -34
- package/src/contexts/I18nBridgeContext.tsx +0 -156
- package/src/contexts/I18nBridgeSetter.tsx +0 -39
- package/src/contexts/I18nReduxSync.tsx +0 -27
- package/src/contexts/SubscriptionPlanFormatsProvider.tsx +0 -217
- package/src/contexts/SystemRequestsCache.tsx +0 -215
- package/src/contexts/auth/AuthContext.tsx +0 -567
- package/src/contexts/auth/AuthContextLocalStorage.tsx +0 -140
- package/src/contexts/auth/DASHAuthenticationService.tsx +0 -915
- package/src/contexts/auth/WindowContext.tsx +0 -15
- package/src/contexts/com/FCMContext.tsx +0 -415
- package/src/contexts/com/LaravelEchoContext.tsx +0 -41
- package/src/contexts/com/LaravelEchoMgr.tsx +0 -155
- package/src/contexts/com/components/DefaultNotificationComponent.tsx +0 -20
- package/src/contexts/com/components/EchoNotificationsCenter.tsx +0 -65
- package/src/contexts/com/components/NotificationAttributesTable.tsx +0 -54
- package/src/contexts/com/components/NotificationRenderer.tsx +0 -42
- package/src/contexts/com/components/NotificationsWidget.tsx +0 -182
- package/src/contexts/com/components/notificationFormats.tsx +0 -50
- package/src/contexts/com/useLaravelEcho.tsx +0 -432
- package/src/contexts/dictionary/DictionaryContext.tsx +0 -94
- package/src/declarations.d.ts +0 -17
- package/src/default-theme/DASHAppProviders.tsx +0 -117
- package/src/default-theme/DashThemeContext.tsx +0 -209
- package/src/default-theme/DashThemeContext.tsx.fast +0 -143
- package/src/default-theme/DashThemeContext.tsx.old +0 -306
- package/src/default-theme/DashThemeHelperProvider.tsx +0 -98
- package/src/default-theme/DomainAppLayout.tsx +0 -166
- package/src/default-theme/DomainHeader.tsx +0 -162
- package/src/default-theme/DomainTheme.tsx +0 -59
- package/src/default-theme/FullLayoutMarkup.tsx +0 -231
- package/src/default-theme/StaticLayout.tsx +0 -47
- package/src/default-theme/menu/AppDashboardGrid.tsx +0 -279
- package/src/default-theme/menu/AppMaterialMenu.tsx +0 -546
- package/src/default-theme/menu/AppMenuComponents/SubmenuPortal.tsx +0 -61
- package/src/default-theme/menu/AppMenuComponents/collapsed/CollapsedSidebarItem.tsx +0 -264
- package/src/default-theme/menu/AppMenuComponents/collapsed/CollapsedSidebarItems.tsx +0 -31
- package/src/default-theme/menu/AppMenuComponents/expanded/CollapsableSidebarMenu.tsx +0 -293
- package/src/default-theme/menu/AppMenuComponents/expanded/SidebarItem.tsx +0 -92
- package/src/default-theme/menu/AppMenuComponents/getItem.tsx +0 -17
- package/src/default-theme/menu/AppMenuComponents/interfaces.tsx +0 -41
- package/src/default-theme/menu/AppMenuComponents/submenuConstants.ts +0 -90
- package/src/default-theme/menu/AppSidebarMaterial.tsx +0 -339
- package/src/default-theme/menu/SidebarActions.tsx +0 -84
- package/src/default-theme/updateDomCssVariables.tsx +0 -176
- package/src/helpers/checkRole.tsx +0 -66
- package/src/helpers/parseAxiosError.tsx +0 -41
- package/src/hooks/audio/useAudio.tsx +0 -39
- package/src/hooks/axios.tsx +0 -165
- package/src/hooks/data/useDashboardStats.tsx +0 -65
- package/src/hooks/data/usePackageByClientsStats.tsx +0 -44
- package/src/hooks/data/usePackageByCommunesStats.tsx +0 -44
- package/src/hooks/data/usePackageStats.tsx +0 -69
- package/src/hooks/data/usePackageWithdrawDetails.tsx +0 -61
- package/src/hooks/data/useStats.tsx +0 -86
- package/src/hooks/isCurrentPath.tsx +0 -22
- package/src/hooks/notifications/WSMessagesManager.tsx +0 -152
- package/src/hooks/notifications/WSPusherManager.tsx +0 -92
- package/src/hooks/useBreadcrumbs.tsx +0 -329
- package/src/hooks/useClickOutside.tsx +0 -57
- package/src/hooks/useFormPersistance.tsx +0 -150
- package/src/hooks/useGlobalErrorMediator.tsx +0 -43
- package/src/hooks/useGlobalLoaderMgr.tsx +0 -21
- package/src/hooks/useHash.tsx +0 -27
- package/src/hooks/useLocalStorage.tsx +0 -196
- package/src/hooks/usePolyglotTranslation.tsx +0 -62
- package/src/hooks/usePrevious.tsx +0 -9
- package/src/hooks/usePrintSelected.tsx +0 -37
- package/src/hooks/useVirtualHash.tsx +0 -33
- package/src/hooks/window/useWindowSize.tsx +0 -36
- package/src/interfaces/IAppResourceConfig.tsx +0 -20
- package/src/interfaces/Log.tsx +0 -16
- package/src/interfaces/Tenant.tsx +0 -25
- package/src/interfaces/communication/IRequestAction.tsx +0 -10
- package/src/interfaces/communication/IRequestPayload.tsx +0 -7
- package/src/interfaces/communication/IResponseAction.tsx +0 -7
- package/src/interfaces/misc/IFlashMessage.tsx +0 -10
- package/src/interfaces/navigation/IAppMenu.ts +0 -14
- package/src/interfaces/navigation/ICollapsableSidebarMenu.ts +0 -12
- package/src/interfaces/navigation/IMenuItem.ts +0 -16
- package/src/interfaces/notifications/IModelField.tsx +0 -8
- package/src/interfaces/notifications/IUserNotification.tsx +0 -12
- package/src/interfaces/notifications/IUserNotificationPayload.tsx +0 -8
- package/src/interfaces/user/IGetAuth.tsx +0 -92
- package/src/interfaces/user/ITenantSettings.tsx +0 -3
- package/src/interfaces/user/IUser.tsx +0 -60
- package/src/interfaces/user/IUserSettings.tsx +0 -43
- package/src/layout/AppLayout.tsx +0 -112
- package/src/layout/ApplicationLayout.tsx +0 -197
- package/src/layout/MotionWrapper.original.tsx +0 -236
- package/src/layout/MotionWrapper.tsx +0 -236
- package/src/layout/ResourceMenu.tsx +0 -164
- package/src/layout/ResoureLayout.tsx +0 -105
- package/src/layout/TransitionWrapper.tsx +0 -125
- package/src/pages/ChangePassword.tsx +0 -179
- package/src/pages/DASHLanding.tsx +0 -22
- package/src/pages/DASHLightWeightLogin.tsx +0 -611
- package/src/pages/DASHSimpleLogin.tsx +0 -260
- package/src/pages/Login.tsx +0 -111
- package/src/pages/Profile.tsx +0 -357
- package/src/pages/RecoverPassword.tsx +0 -175
- package/src/pages/SingleImageUploader.tsx +0 -55
- package/src/pages/VerifyAccount.tsx +0 -128
- package/src/providers/authProvider.tsx +0 -217
- package/src/providers/dataProvider.tsx +0 -672
- package/src/providers/i18n/en.ts +0 -646
- package/src/providers/i18n/es.ts +0 -652
- package/src/providers/i18n/languages.tsx +0 -8
- package/src/providers/i18n/mergeTranslations.ts +0 -53
- package/src/providers/i18nProvider.tsx +0 -23
- package/src/react-admin-dash/RADashComponent.tsx +0 -240
- package/src/react-admin-dash/Resource.tsx +0 -77
- package/src/resources/Brand/BrandResource.tsx +0 -130
- package/src/resources/DASHResourceLoader.ts +0 -180
- package/src/resources/Log/LogResource.tsx +0 -73
- package/src/resources/Tenant/ImpersonateTenantResource.tsx +0 -113
- package/src/resources/Trash/TrashTemplate.tsx +0 -180
- package/src/resources/User/components/AvatarUploadField.tsx +0 -57
- package/src/resources/User/components/PasswordFields.tsx +0 -73
- package/src/resources/User/getProfileMenu.ts +0 -57
- package/src/resources/User/profileResource.tsx +0 -51
- package/src/resources/User/userLayout.tsx +0 -62
- package/src/resources/User/userResource.tsx +0 -111
- package/src/resources/User/userSchema.tsx +0 -213
- package/src/resources/User/usersFilters.tsx +0 -21
- package/src/resources.tsx +0 -280
- package/src/schemas/log.tsx +0 -45
- package/src/schemas/notification.tsx +0 -42
- package/src/schemas/permissions.tsx +0 -44
- package/src/schemas/roles.tsx +0 -48
- package/src/schemas/rolesDataGrid.tsx +0 -48
- package/src/schemas/subscription/components/SubscriptionActions.tsx +0 -153
- package/src/schemas/subscription/components/SubscriptionPaymentHistory.tsx +0 -127
- package/src/schemas/subscription/components/SubscriptionPlanFeatures.tsx +0 -162
- package/src/schemas/subscription/components/SubscriptionPlanPreview.tsx +0 -141
- package/src/schemas/subscription/components/SubscriptionPlanStats.tsx +0 -318
- package/src/schemas/subscription/components/SubscriptionStatusIndicator.tsx +0 -72
- package/src/schemas/subscription/subscriptionPlanSchema.tsx +0 -185
- package/src/schemas/subscription/subscriptionSchema.tsx +0 -152
- package/src/schemas/subscriptionPlan.ts +0 -422
- package/src/schemas/tenant.tsx +0 -129
- package/src/schemas/tenantUser.tsx +0 -96
- package/src/schemas/tenant_superadmin.tsx +0 -119
- package/src/schemas/user.tsx +0 -26
- package/src/systemResources.old.tsx +0 -928
- package/src/systemResources.tsx +0 -1369
- package/src/templates/ResourceTemplate.tsx +0 -240
- package/src/templates/ResourceTemplate.tsx.memoized_experiment +0 -350
- package/src/templates/ResourceTemplate.tsx.original +0 -396
- package/src/templates/ResourceTemplateCreate.tsx +0 -182
- package/src/templates/ResourceTemplateEdit.tsx +0 -176
- package/src/templates/ResourceTemplateFull.tsx +0 -581
- package/src/templates/ResourceTemplateList.tsx +0 -340
- package/src/templates/ResourceTemplateOld.tsx.bkup +0 -567
- package/src/templates/ResourceTemplateShow.tsx +0 -88
- package/src/templates/TrashTemplate.tsx +0 -179
- package/src/tenantResources.tsx +0 -223
- package/src/test_portal_bubbles.tsx +0 -40
- package/src/theme/AppHeader.tsx +0 -52
- package/src/theme/AppLayoutSetting.tsx +0 -33
- package/src/theme/AppLogo.tsx +0 -13
- package/src/theme/AppSidebar.tsx +0 -12
- package/src/theme/AppSidebarContent.tsx +0 -105
- package/src/theme/AppSidebarLogo.tsx +0 -48
- package/src/theme/components/PageTitle.tsx +0 -37
- package/src/utils/cache/CacheInvalidatorContext.tsx +0 -125
- package/src/utils/cache/CacheInvalidatorListenerComponent.tsx +0 -10
- package/src/utils/cache/useCacheInvalidatorListener.tsx +0 -27
- package/src/utils/convertFileToBase64.tsx +0 -9
- package/src/utils/convertToFile.tsx +0 -14
- package/src/utils/cookies.tsx +0 -33
- package/src/utils/dashDefaultQueryClient.tsx +0 -34
- package/src/utils/dataUrlToBlob.tsx +0 -30
- package/src/utils/deepReplace.tsx +0 -19
- package/src/utils/getProfileMenu.tsx +0 -41
- package/src/utils/getTenantSettings.tsx +0 -9
- package/src/utils/getType.tsx +0 -8
- package/src/utils/getUserSettings.tsx +0 -8
- package/src/utils/hasCode.tsx +0 -14
- package/src/utils/index.ts +0 -19
- package/src/utils/injectTenantStyles.ts +0 -28
- package/src/utils/isComponent.tsx +0 -45
- package/src/utils/navEvents.tsx +0 -91
- package/src/utils/prototypes.tsx +0 -5
- package/src/utils/regexp.tsx +0 -4
- package/src/utils/resolveObjectPath.tsx +0 -4
- package/src/utils/setNativeValue.tsx +0 -24
- package/src/utils/slugify.tsx +0 -11
- package/src/utils/validators/emailValidator.tsx +0 -6
- package/src/utils/validators/requiredValidator.tsx +0 -5
- package/src/utils/validators/rutValidator.tsx +0 -31
- package/src/utils/validators.tsx +0 -96
- /package/{src/components/permission/tsx → dist/components/tenant/AvailablePermissionsContext.d.ts} +0 -0
- /package/{src/components/tenant/AvailablePermissionsContext.tsx → dist/utils/prototypes.d.ts} +0 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { IMenuItem } from '../interfaces';
|
|
3
|
+
import { ListItemButtonProps } from '@mui/material';
|
|
4
|
+
import { SidebarPosition } from '../../AppSidebarMaterial';
|
|
5
|
+
export interface ICollapsedSidebarItem {
|
|
6
|
+
item: IMenuItem;
|
|
7
|
+
navSize: 'large' | 'small';
|
|
8
|
+
navExpanded: boolean;
|
|
9
|
+
level: number;
|
|
10
|
+
sidebarPosition?: SidebarPosition;
|
|
11
|
+
}
|
|
12
|
+
export interface ISidebarItem extends ListItemButtonProps, PropsWithChildren {
|
|
13
|
+
item: IMenuItem;
|
|
14
|
+
showIcon?: boolean;
|
|
15
|
+
showText?: boolean;
|
|
16
|
+
navExpanded?: boolean;
|
|
17
|
+
navSize: 'large' | 'small';
|
|
18
|
+
level: number;
|
|
19
|
+
hasChildren?: boolean;
|
|
20
|
+
}
|
|
21
|
+
declare const CollapsedSidebarItem: ({ item, navSize, navExpanded, level, sidebarPosition }: ICollapsedSidebarItem) => import("react").JSX.Element;
|
|
22
|
+
export default CollapsedSidebarItem;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IMenuItem } from '../interfaces';
|
|
2
|
+
import { SidebarPosition } from '../../AppSidebarMaterial';
|
|
3
|
+
export interface ICollapsedSidebarItems {
|
|
4
|
+
items: IMenuItem[];
|
|
5
|
+
navSize: 'large' | 'small';
|
|
6
|
+
navExpanded: boolean;
|
|
7
|
+
level: number;
|
|
8
|
+
sidebarPosition?: SidebarPosition;
|
|
9
|
+
}
|
|
10
|
+
declare const CollapsedSidebarItems: React.FC<ICollapsedSidebarItems>;
|
|
11
|
+
export default CollapsedSidebarItems;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ICollapsableSidebarMenu } from '../interfaces';
|
|
2
|
+
declare const CollapsableSidebarMenu: ({ item, navExpanded, navSize, level, sidebarPosition }: ICollapsableSidebarMenu) => import("react").JSX.Element;
|
|
3
|
+
declare const _default: typeof CollapsableSidebarMenu;
|
|
4
|
+
export default _default;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { IDashAutoAdminResourceConfig } from "dash-auto-admin";
|
|
2
|
+
import { JSX } from "react";
|
|
3
|
+
import { SidebarPosition } from "../AppSidebarMaterial";
|
|
4
|
+
export interface IAppMenu {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
autoHideScroll?: boolean;
|
|
7
|
+
menu?: IDashAutoAdminResourceConfig[];
|
|
8
|
+
debug?: boolean;
|
|
9
|
+
showDrawer?: boolean;
|
|
10
|
+
navSize: "small" | "large";
|
|
11
|
+
navExpanded: boolean;
|
|
12
|
+
sidebarPosition?: SidebarPosition;
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
}
|
|
15
|
+
export interface IMenuItem {
|
|
16
|
+
group: string;
|
|
17
|
+
model: string;
|
|
18
|
+
label: string;
|
|
19
|
+
txtLabel: string;
|
|
20
|
+
key: React.Key;
|
|
21
|
+
to?: string;
|
|
22
|
+
icon?: JSX.Element;
|
|
23
|
+
children?: IMenuItem[];
|
|
24
|
+
type?: 'group';
|
|
25
|
+
selected?: boolean;
|
|
26
|
+
menuOnly?: boolean;
|
|
27
|
+
}
|
|
28
|
+
export interface ICollapsableSidebarMenu {
|
|
29
|
+
item: IMenuItem;
|
|
30
|
+
showIcon?: boolean;
|
|
31
|
+
className?: string;
|
|
32
|
+
navExpanded: boolean;
|
|
33
|
+
navSize: "small" | "large";
|
|
34
|
+
level: number;
|
|
35
|
+
sidebarPosition?: SidebarPosition;
|
|
36
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CSSProperties, RefObject } from 'react';
|
|
2
|
+
import { SidebarPosition } from '../AppSidebarMaterial';
|
|
3
|
+
export declare const FORCE_CLICK_OPEN = false;
|
|
4
|
+
export declare const SUBMENU_SCROLL_THRESHOLD = 10;
|
|
5
|
+
export declare const getSubmenuBaseStyle: (sidebarPosition: SidebarPosition, renderAtTop?: boolean) => CSSProperties;
|
|
6
|
+
export declare const calculateSubmenuPosition: (rect: DOMRect, sidebarPosition: SidebarPosition, renderAtTop?: boolean) => CSSProperties;
|
|
7
|
+
export declare const getSubmenuStyle: (itemRef: RefObject<HTMLElement | null>, sidebarPosition: SidebarPosition, renderAtTop?: boolean) => CSSProperties;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export type SidebarPosition = "left" | "top" | "bottom" | "right";
|
|
3
|
+
export interface AppSidebarMaterialProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
sidebarPosition?: SidebarPosition;
|
|
6
|
+
}
|
|
7
|
+
declare const AppSidebarMaterial: React.FC<AppSidebarMaterialProps>;
|
|
8
|
+
export default AppSidebarMaterial;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { SidebarPosition } from './AppSidebarMaterial';
|
|
3
|
+
export interface SidebarActionsProps {
|
|
4
|
+
sidebarPosition?: SidebarPosition;
|
|
5
|
+
navExpanded?: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare const SidebarActions: React.FC<SidebarActionsProps>;
|
|
8
|
+
export default SidebarActions;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const parseAxiosError: (error: any) => string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface IUseDashboardStats {
|
|
2
|
+
autoRefresh: boolean;
|
|
3
|
+
autoRefreshInterval?: number;
|
|
4
|
+
start?: string;
|
|
5
|
+
end?: string;
|
|
6
|
+
}
|
|
7
|
+
declare const useDashboardStats: (options: IUseDashboardStats) => {
|
|
8
|
+
data: any;
|
|
9
|
+
error: any;
|
|
10
|
+
loaded: boolean;
|
|
11
|
+
refresh: () => void;
|
|
12
|
+
};
|
|
13
|
+
export default useDashboardStats;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface IDataPackagesByClients {
|
|
2
|
+
totalPackages: number;
|
|
3
|
+
totalCreatedPackages: number;
|
|
4
|
+
totalLabelPrintedPackages: number;
|
|
5
|
+
totalPreparedPackages: number;
|
|
6
|
+
totalInWarehousePackages: number;
|
|
7
|
+
}
|
|
8
|
+
declare const usePackageByClientsStats: (start?: any, end?: any) => {
|
|
9
|
+
data: IDataPackagesByClients;
|
|
10
|
+
error: any;
|
|
11
|
+
loaded: boolean;
|
|
12
|
+
};
|
|
13
|
+
export default usePackageByClientsStats;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface IDataPackagesByCommunes {
|
|
2
|
+
totalPackages: number;
|
|
3
|
+
totalCreatedPackages: number;
|
|
4
|
+
totalLabelPrintedPackages: number;
|
|
5
|
+
totalPreparedPackages: number;
|
|
6
|
+
totalInWarehousePackages: number;
|
|
7
|
+
}
|
|
8
|
+
declare const usePackageByCommunesStats: (start?: any, end?: any) => {
|
|
9
|
+
data: IDataPackagesByCommunes;
|
|
10
|
+
error: any;
|
|
11
|
+
loaded: boolean;
|
|
12
|
+
};
|
|
13
|
+
export default usePackageByCommunesStats;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface IUsePackageStats {
|
|
2
|
+
autoRefresh: boolean;
|
|
3
|
+
autoRefreshInterval?: number;
|
|
4
|
+
start?: string;
|
|
5
|
+
end?: string;
|
|
6
|
+
}
|
|
7
|
+
declare const usePackageStats: (options: IUsePackageStats) => {
|
|
8
|
+
data: any;
|
|
9
|
+
error: any;
|
|
10
|
+
loaded: boolean;
|
|
11
|
+
refresh: () => void;
|
|
12
|
+
};
|
|
13
|
+
export default usePackageStats;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface IUsePackageWithdrawDetails {
|
|
2
|
+
action_id?: number;
|
|
3
|
+
driver_id?: string | number;
|
|
4
|
+
}
|
|
5
|
+
export interface PackageWithdrawDetailOutput {
|
|
6
|
+
countwidthdrawsPackages: number;
|
|
7
|
+
packagesForClients: PackagesForClient[];
|
|
8
|
+
}
|
|
9
|
+
export interface PackagesForClient {
|
|
10
|
+
contador_without_info: number;
|
|
11
|
+
contador: number;
|
|
12
|
+
name: string;
|
|
13
|
+
packages_without_info?: PackagesWithoutInfo[];
|
|
14
|
+
}
|
|
15
|
+
export interface PackagesWithoutInfo {
|
|
16
|
+
id: number;
|
|
17
|
+
internal_id: string;
|
|
18
|
+
}
|
|
19
|
+
declare const usePackageWithdrawDetails: () => {
|
|
20
|
+
request: (o: any) => Promise<void>;
|
|
21
|
+
data: PackageWithdrawDetailOutput;
|
|
22
|
+
error: any;
|
|
23
|
+
loaded: boolean;
|
|
24
|
+
};
|
|
25
|
+
export default usePackageWithdrawDetails;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface IUseStats<T> {
|
|
2
|
+
url: string;
|
|
3
|
+
autoRefresh: boolean;
|
|
4
|
+
autoRefreshInterval?: number;
|
|
5
|
+
payload?: any;
|
|
6
|
+
storeKey?: string;
|
|
7
|
+
onRefresh?: (data: T) => any;
|
|
8
|
+
}
|
|
9
|
+
export declare function useStats<T>(options: IUseStats<T>): [T, any, boolean, (ops?: Partial<IUseStats<T>>) => void];
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IBreadcrumbItem } from 'dash-admin-state';
|
|
2
|
+
import { IDashAutoAdminResourceConfig } from 'dash-auto-admin';
|
|
3
|
+
export interface UseBreadcrumbsOptions {
|
|
4
|
+
autoUpdate?: boolean;
|
|
5
|
+
labelMap?: Record<string, string>;
|
|
6
|
+
includeHome?: boolean;
|
|
7
|
+
homePath?: string;
|
|
8
|
+
homeLabel?: string;
|
|
9
|
+
customGenerator?: (pathname: string, resourceConfig?: IDashAutoAdminResourceConfig) => IBreadcrumbItem[];
|
|
10
|
+
fetchRecordName?: boolean;
|
|
11
|
+
recordNameField?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface UseBreadcrumbsResult {
|
|
14
|
+
breadcrumbs: IBreadcrumbItem[];
|
|
15
|
+
setBreadcrumbs: (items: IBreadcrumbItem[]) => void;
|
|
16
|
+
addBreadcrumb: (item: IBreadcrumbItem) => void;
|
|
17
|
+
clearBreadcrumbs: () => void;
|
|
18
|
+
pathname: string;
|
|
19
|
+
}
|
|
20
|
+
export declare const useBreadcrumbs: (options?: UseBreadcrumbsOptions) => UseBreadcrumbsResult;
|
|
21
|
+
export default useBreadcrumbs;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
interface FormPersistenceOptions {
|
|
2
|
+
persistState?: boolean;
|
|
3
|
+
storageKey?: string;
|
|
4
|
+
debounceMs?: number;
|
|
5
|
+
excludeFields?: string[];
|
|
6
|
+
}
|
|
7
|
+
export declare const useFormPersistence: (options?: FormPersistenceOptions) => {
|
|
8
|
+
restoreFormData: () => boolean;
|
|
9
|
+
clearPersistedData: () => void;
|
|
10
|
+
loadFormData: () => any;
|
|
11
|
+
saveFormData: () => void;
|
|
12
|
+
};
|
|
13
|
+
export default useFormPersistence;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const useLocales: ({ locales }?: {
|
|
2
|
+
locales?: {
|
|
3
|
+
locale: string;
|
|
4
|
+
name: string;
|
|
5
|
+
}[];
|
|
6
|
+
}) => {
|
|
7
|
+
locale: string;
|
|
8
|
+
name: string;
|
|
9
|
+
}[];
|
|
10
|
+
export declare const useLocaleState: () => [string, (locale: string) => void];
|
|
11
|
+
export declare const useTranslate: () => (key: string, options?: any) => any;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const usePrintSelected: () => {
|
|
3
|
+
printSelectedUseState: [{
|
|
4
|
+
selectedIds: number[];
|
|
5
|
+
filterValues: any;
|
|
6
|
+
}, React.Dispatch<React.SetStateAction<{
|
|
7
|
+
selectedIds: number[];
|
|
8
|
+
filterValues: any;
|
|
9
|
+
}>>];
|
|
10
|
+
sendPrintSelectedEvent: (selectedIds: number[], filterValues: any) => void;
|
|
11
|
+
};
|
|
12
|
+
export default usePrintSelected;
|
|
@@ -1,134 +1,65 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
/** INTERFACES */
|
|
4
|
-
export type { IAuthContext } from './contexts/auth'
|
|
5
|
-
export type { ILaravelEchoManager } from './contexts/com/LaravelEchoMgr'
|
|
6
|
-
|
|
7
|
-
/** Global Loader */
|
|
1
|
+
export type { IAuthContext } from './contexts/auth';
|
|
2
|
+
export type { ILaravelEchoManager } from './contexts/com/LaravelEchoMgr';
|
|
8
3
|
export { default as useGlobalLoaderMgr } from './hooks/useGlobalLoaderMgr';
|
|
9
4
|
export { default as GlobalLoader } from './components/loader/GlobalLoader';
|
|
10
|
-
/** App Wrapper Uses suspense to load the Domain App, contains Global Loader and Global Error Boundary. */
|
|
11
5
|
export { default as AppAsyncWrapper } from './AppAsyncWrapper';
|
|
12
6
|
export { default as AppWrapper } from './AppWrapper';
|
|
13
7
|
export { default as DASHAdmin } from './DASHAdmin';
|
|
14
8
|
export { default as systemResources } from './systemResources';
|
|
15
9
|
export { default as tenantResources } from './tenantResources';
|
|
16
10
|
export { default as CustomImageInput } from './components/misc/CustomImageInput';
|
|
17
|
-
|
|
18
11
|
export { default as ResourceTemplate } from './templates/ResourceTemplate';
|
|
19
12
|
export { default as ResourceTemplateFull } from './templates/ResourceTemplateFull';
|
|
20
|
-
//export { default as ResourceTemplateOld } from './templates/ResourceTemplateOld';
|
|
21
13
|
export { useDashResource } from './contexts/DashResourceContext';
|
|
22
14
|
export { default as TrashTemplate } from './templates/TrashTemplate';
|
|
23
15
|
export { default as MotionWrapper } from './layout/MotionWrapper';
|
|
24
|
-
//export { default as TransitionWrapper } from './layout/TransitionWrapper';
|
|
25
16
|
export { default as useWindowSize } from './hooks/window/useWindowSize';
|
|
26
17
|
export { CacheInvalidatorContext } from './utils/cache/CacheInvalidatorContext';
|
|
27
18
|
export { default as CacheInvalidatorListenerComponent } from './utils/cache/CacheInvalidatorListenerComponent';
|
|
28
|
-
//export { default as useCacheInvalidatorListener } from './utils/cache/useCacheInvalidatorListener';
|
|
29
|
-
//export { default as useAxiosGetWithStore } from './hooks/data/useAxiosGetWithStore';
|
|
30
|
-
//export { default as resolveObjectPath } from './utils/resolveObjectPath';
|
|
31
|
-
//export * as Utils from "./utils"
|
|
32
19
|
export { AuthContext } from './contexts/auth';
|
|
33
|
-
export { NotificationComponent } from './contexts/com/components/NotificationRenderer'
|
|
34
|
-
export { NotificationWrapper } from './contexts/com/components/NotificationsWidget'
|
|
35
|
-
export { default as EchoNotificationsCenter } from './contexts/com/components/EchoNotificationsCenter'
|
|
36
|
-
|
|
20
|
+
export { NotificationComponent } from './contexts/com/components/NotificationRenderer';
|
|
21
|
+
export { NotificationWrapper } from './contexts/com/components/NotificationsWidget';
|
|
22
|
+
export { default as EchoNotificationsCenter } from './contexts/com/components/EchoNotificationsCenter';
|
|
37
23
|
export { default as useLaravelEcho } from './contexts/com/useLaravelEcho';
|
|
38
24
|
export { default as WSMessagesManager } from './hooks/notifications/WSMessagesManager';
|
|
39
|
-
|
|
40
25
|
export { default as FCMContext, FCMProvider } from './contexts/com/FCMContext';
|
|
41
|
-
|
|
42
26
|
export { default as Redirect } from './components/custom/Redirect';
|
|
43
|
-
//export { default as getEnv } from "./config/DASHAdminSystemConstants";
|
|
44
|
-
|
|
45
27
|
export { default as RoutingWrapper, AnimatedRoutesWrapper } from './RoutingWrapper';
|
|
46
28
|
export type { IDASHRoutingWrapper } from './RoutingWrapper';
|
|
47
|
-
|
|
48
29
|
export { useAuthContext } from "./contexts/auth/AuthContext";
|
|
49
|
-
|
|
50
|
-
export {default as
|
|
51
|
-
export {default as DashQueryClientContext, useDashQueryClient, useDashQueryPersister, useIsCachePersisted} from "./contexts/DashQueryClientContext"
|
|
30
|
+
export { default as LaravelEchoContext } from "./contexts/com/LaravelEchoContext";
|
|
31
|
+
export { default as DashQueryClientContext, useDashQueryClient, useDashQueryPersister, useIsCachePersisted } from "./contexts/DashQueryClientContext";
|
|
52
32
|
export { default as SystemRequestsCache, useSystemRequestsCache } from './contexts/SystemRequestsCache';
|
|
53
33
|
export { SubscriptionPlanFormatsProvider, useSubscriptionPlanFormats } from './contexts/SubscriptionPlanFormatsProvider';
|
|
54
|
-
export type {ILaravelEchoContext} from "./contexts/com/LaravelEchoContext"
|
|
55
|
-
|
|
56
|
-
export {
|
|
57
|
-
export type {
|
|
58
|
-
//NotificationPayloadBase,
|
|
59
|
-
//INotificationPayload,
|
|
60
|
-
//DefaultSystemNotification,
|
|
61
|
-
//IFormattedNotification,
|
|
62
|
-
INotificationFormat
|
|
63
|
-
} from "./contexts/com/components/notificationFormats"
|
|
64
|
-
|
|
65
|
-
// This is a React-Admin hacked component to overwrite some native features.
|
|
34
|
+
export type { ILaravelEchoContext } from "./contexts/com/LaravelEchoContext";
|
|
35
|
+
export { default as DASHGlobalErrorHandler } from "./components/misc/DASHGlobalErrorHandler";
|
|
36
|
+
export type { INotificationFormat } from "./contexts/com/components/notificationFormats";
|
|
66
37
|
export * from './react-admin-dash/Resource';
|
|
67
|
-
|
|
68
|
-
export {default as
|
|
69
|
-
export {default as
|
|
70
|
-
|
|
71
|
-
export
|
|
72
|
-
|
|
73
|
-
export * from "./contexts/auth"
|
|
74
|
-
|
|
75
|
-
export * from "./utils"
|
|
76
|
-
|
|
38
|
+
export { default as LogFileById } from "./components/logs/LogFileById";
|
|
39
|
+
export { default as LogFile } from "./components/logs/LogFile";
|
|
40
|
+
export { default as DASHAuthenticationService } from "./contexts/auth/DASHAuthenticationService";
|
|
41
|
+
export * from "./contexts/auth";
|
|
42
|
+
export * from "./utils";
|
|
77
43
|
export * from "./default-theme";
|
|
78
|
-
|
|
79
|
-
export
|
|
80
|
-
|
|
81
|
-
export { default as DarkToggleMode } from "./components/menu/DarkToggleMode"
|
|
82
|
-
|
|
44
|
+
export * from "./providers/i18n/languages";
|
|
45
|
+
export { default as DarkToggleMode } from "./components/menu/DarkToggleMode";
|
|
83
46
|
export { default as AppDashboardGrid } from './default-theme/menu/AppDashboardGrid';
|
|
84
47
|
export { default as HorizontalScroller } from './components/misc/HorizontalScroller';
|
|
85
48
|
export type { IHorizontalScrollerProps } from './components/misc/HorizontalScroller';
|
|
86
|
-
export type {
|
|
87
|
-
IDashboardMenuGridProps,
|
|
88
|
-
IDashboardMenuGridColumns,
|
|
89
|
-
DashboardGridCardSize,
|
|
90
|
-
} from './default-theme/menu/AppDashboardGrid';
|
|
91
|
-
|
|
49
|
+
export type { IDashboardMenuGridProps, IDashboardMenuGridColumns, DashboardGridCardSize, } from './default-theme/menu/AppDashboardGrid';
|
|
92
50
|
export { default as useFormPersistence } from "./hooks/useFormPersistance";
|
|
93
|
-
|
|
94
51
|
export { default as AvatarComponent } from './components/user/AvatarComponent';
|
|
95
52
|
export { default as TenantAvatarComponent } from './components/user/TenantAvatarComponent';
|
|
96
53
|
export { default as UserPreferences } from './components/user/UserPreferences';
|
|
97
54
|
export { default as Profile } from './pages/Profile';
|
|
98
55
|
export { default as LanguageSwitcher } from './components/misc/LanguageSwitcher';
|
|
99
56
|
export { default as LangSwitcher } from './components/i18n/LangSwitcher';
|
|
100
|
-
export {
|
|
101
|
-
|
|
102
|
-
dispatchTenantSwitchEvent,
|
|
103
|
-
getActiveTenantId,
|
|
104
|
-
isTenantImpersonationEnabled,
|
|
105
|
-
type TenantSwitcherProps,
|
|
106
|
-
type TenantSwitchEventDetail,
|
|
107
|
-
} from './components/tenancy/TenantSwitcher';
|
|
108
|
-
export {
|
|
109
|
-
default as GlobalTenantWrapper,
|
|
110
|
-
type IGlobalTenantWrapper,
|
|
111
|
-
} from './components/tenancy/GlobalTenantWrapper';
|
|
57
|
+
export { default as TenantSwitcher, dispatchTenantSwitchEvent, getActiveTenantId, isTenantImpersonationEnabled, type TenantSwitcherProps, type TenantSwitchEventDetail, } from './components/tenancy/TenantSwitcher';
|
|
58
|
+
export { default as GlobalTenantWrapper, type IGlobalTenantWrapper, } from './components/tenancy/GlobalTenantWrapper';
|
|
112
59
|
export { default as DarkModeSwitcher } from './components/misc/DarkModeSwitcher';
|
|
113
|
-
|
|
114
|
-
// Navigation Components
|
|
115
60
|
export { Breadcrumbs, BreadcrumbsComponent, BreadcrumbsManager, BreadcrumbsManagerComponent } from './components/navigation';
|
|
116
61
|
export type { BreadcrumbsProps, BreadcrumbsManagerProps } from './components/navigation';
|
|
117
|
-
|
|
118
|
-
// Navigation Hooks
|
|
119
62
|
export { useBreadcrumbs } from './hooks/useBreadcrumbs';
|
|
120
63
|
export type { UseBreadcrumbsOptions, UseBreadcrumbsResult } from './hooks/useBreadcrumbs';
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
export {
|
|
124
|
-
createDASHResourceLoader,
|
|
125
|
-
getDASHResources,
|
|
126
|
-
loadResourcesFromManifest,
|
|
127
|
-
loadManifest,
|
|
128
|
-
clearResourceCache,
|
|
129
|
-
getCachedResources,
|
|
130
|
-
type IResourceManifestEntry,
|
|
131
|
-
type IDASHResourceLoaderConfig
|
|
132
|
-
} from './resources/DASHResourceLoader';
|
|
133
|
-
|
|
134
|
-
export { default as I18nBridgeContext, I18nBridgeProvider, useI18nBridge, useBridgedLocales, useBridgedChangeLocale, useBridgedLocale } from './contexts/I18nBridgeContext';
|
|
64
|
+
export { createDASHResourceLoader, getDASHResources, loadResourcesFromManifest, loadManifest, clearResourceCache, getCachedResources, type IResourceManifestEntry, type IDASHResourceLoaderConfig } from './resources/DASHResourceLoader';
|
|
65
|
+
export { default as I18nBridgeContext, I18nBridgeProvider, useI18nBridge, useBridgedLocales, useBridgedChangeLocale, useBridgedLocale } from './contexts/I18nBridgeContext';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IDashAutoAdminResourceConfig } from 'dash-auto-admin';
|
|
2
|
+
import { JSX } from 'react';
|
|
3
|
+
export interface IAppResourceConfig extends IDashAutoAdminResourceConfig {
|
|
4
|
+
navActions?: JSX.Element[];
|
|
5
|
+
hidden?: boolean;
|
|
6
|
+
resourceMenuPosition?: string;
|
|
7
|
+
resourceMenuDisabled?: boolean;
|
|
8
|
+
redirect?: string;
|
|
9
|
+
}
|
|
10
|
+
export default IAppResourceConfig;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface ILog {
|
|
2
|
+
date: string;
|
|
3
|
+
filepath: string;
|
|
4
|
+
id: number;
|
|
5
|
+
json: any;
|
|
6
|
+
name: string;
|
|
7
|
+
tenant_id: string;
|
|
8
|
+
type: string;
|
|
9
|
+
}
|
|
10
|
+
export interface ILogTxtFileComponent {
|
|
11
|
+
log: ILog;
|
|
12
|
+
}
|
|
13
|
+
export interface IProductImportLogComponent {
|
|
14
|
+
logs: ILog[];
|
|
15
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface Tenant {
|
|
2
|
+
id: number;
|
|
3
|
+
name: string;
|
|
4
|
+
public_id: string;
|
|
5
|
+
email: string;
|
|
6
|
+
settings: any;
|
|
7
|
+
attributes: any;
|
|
8
|
+
banner_url: string;
|
|
9
|
+
horizontal_logo_url: string;
|
|
10
|
+
squared_logo_url: string | null;
|
|
11
|
+
images: {
|
|
12
|
+
banner: {
|
|
13
|
+
original: string;
|
|
14
|
+
};
|
|
15
|
+
horizontal_logo: {
|
|
16
|
+
original: string;
|
|
17
|
+
};
|
|
18
|
+
squared_logo: any[];
|
|
19
|
+
};
|
|
20
|
+
currencies: any[];
|
|
21
|
+
currency_primary_id: number | null;
|
|
22
|
+
currency_ids: number[];
|
|
23
|
+
systemMarketplaces: any[];
|
|
24
|
+
systemPointOfSales: any[];
|
|
25
|
+
}
|
|
@@ -7,15 +7,13 @@ export interface IDashNotificationPayloadBase {
|
|
|
7
7
|
timestamp?: string;
|
|
8
8
|
targetRoles?: string[];
|
|
9
9
|
notify: "dialog" | "toast" | "none";
|
|
10
|
-
type?:string
|
|
11
|
-
data?:any
|
|
12
|
-
notificationPayload?:any;
|
|
10
|
+
type?: string;
|
|
11
|
+
data?: any;
|
|
12
|
+
notificationPayload?: any;
|
|
13
13
|
}
|
|
14
|
-
|
|
15
14
|
export interface IDashNotificationBase<T> {
|
|
16
15
|
class?: string;
|
|
17
16
|
title?: string;
|
|
18
17
|
message?: string;
|
|
19
|
-
notificationPayload?: T
|
|
20
|
-
|
|
21
|
-
}
|
|
18
|
+
notificationPayload?: T;
|
|
19
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface IRequestAction {
|
|
2
|
+
ACTION: string;
|
|
3
|
+
SUCCESS: string;
|
|
4
|
+
FAILURE: string;
|
|
5
|
+
PATH?: string;
|
|
6
|
+
METHOD?: 'POST' | 'GET' | 'PATCH' | 'PUT' | 'UPDATE' | 'DELETE';
|
|
7
|
+
AUTH?: boolean;
|
|
8
|
+
PARSER?: (json: Object) => Object;
|
|
9
|
+
ERROR_PARSER?: (json: Object) => Object;
|
|
10
|
+
}
|