@dashadmin/dash-admin 1.3.74-srcfree.1 → 1.3.74-srcfree.3
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/dist/components/navigation/index.d.ts +4 -0
- 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/dist/components/subscription/index.d.ts +5 -0
- 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/AvailablePermissionsContext.d.ts +0 -0
- package/dist/components/tenant/SettingsSections.d.ts +11 -0
- package/dist/components/tenant/TenancyPlan.d.ts +4 -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/dist/contexts/auth/index.d.ts +2 -0
- 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/dist/default-theme/index.d.ts +8 -0
- 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/dist/index.d.ts +65 -0
- 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/dist/interfaces/communication/IActions.d.ts +4 -0
- package/dist/interfaces/communication/INotification.d.ts +19 -0
- package/dist/interfaces/communication/IPayload.d.ts +3 -0
- 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/dist/interfaces/misc/IAny.d.ts +3 -0
- 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/dist/interfaces/notifications/IModel.d.ts +5 -0
- package/dist/interfaces/notifications/IModelField.d.ts +10 -0
- package/dist/interfaces/notifications/IUserNotification.d.ts +11 -0
- package/dist/interfaces/notifications/IUserNotificationData.d.ts +12 -0
- 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/dist/interfaces.d.ts +5 -0
- 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/RecoverPassword.js +1 -1
- 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.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/prototypes.d.ts +0 -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 +15 -15
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { IDashNotificationPayloadBase } from '../../interfaces/communication/INotification';
|
|
2
|
+
export type ILaravelEchoManager = {
|
|
3
|
+
events: IDashNotificationPayloadBase[];
|
|
4
|
+
lastEvent: IDashNotificationPayloadBase;
|
|
5
|
+
clear: () => void;
|
|
6
|
+
};
|
|
7
|
+
declare const LaravelEchoMgr: () => ILaravelEchoManager;
|
|
8
|
+
export default LaravelEchoMgr;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IDashNotificationBase } from '../../../interfaces/communication/INotification';
|
|
2
|
+
export interface IDefaultNotificationComponent {
|
|
3
|
+
notification: IDashNotificationBase<any>;
|
|
4
|
+
}
|
|
5
|
+
declare const ValidateProductsToImportNotificationComponent: React.FC<IDefaultNotificationComponent>;
|
|
6
|
+
export default ValidateProductsToImportNotificationComponent;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React, { FC } from 'react';
|
|
2
|
+
import { IDashAutoAdminCustomFieldComponent } from 'dash-auto-admin';
|
|
3
|
+
import { IDashNotificationBase } from '../../../interfaces/communication/INotification';
|
|
4
|
+
export declare const NotificationComponent: FC<{
|
|
5
|
+
notification: IDashNotificationBase<any>;
|
|
6
|
+
}>;
|
|
7
|
+
declare const NotificationRenderer: ({ method, attribute, resourceConfig }: IDashAutoAdminCustomFieldComponent) => React.JSX.Element;
|
|
8
|
+
export default NotificationRenderer;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React, { FC } from 'react';
|
|
2
|
+
import { IDashNotificationBase } from '../../../interfaces/communication/INotification';
|
|
3
|
+
export interface INotificationItem {
|
|
4
|
+
key: React.Key;
|
|
5
|
+
title: string;
|
|
6
|
+
notification: IDashNotificationBase<any>;
|
|
7
|
+
image?: string;
|
|
8
|
+
name?: string;
|
|
9
|
+
time?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const NotificationWrapper: FC<{
|
|
12
|
+
notification: IDashNotificationBase<any>;
|
|
13
|
+
key: React.Key;
|
|
14
|
+
children: React.ReactNode;
|
|
15
|
+
}>;
|
|
16
|
+
export declare const NotificationsWidget: FC<{}>;
|
|
17
|
+
export default NotificationsWidget;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { IDashNotificationBase, IDashNotificationPayloadBase } from '../../../interfaces/communication/INotification';
|
|
2
|
+
export interface DefaultDashNotificationPayload extends IDashNotificationPayloadBase {
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
}
|
|
5
|
+
export interface IDashFormattedNotification {
|
|
6
|
+
class: string;
|
|
7
|
+
title: React.FC<{
|
|
8
|
+
notification: IDashNotificationBase<any>;
|
|
9
|
+
}>;
|
|
10
|
+
content: React.FC<{
|
|
11
|
+
notification: IDashNotificationBase<any>;
|
|
12
|
+
}>;
|
|
13
|
+
date?: string;
|
|
14
|
+
icon: React.FC<{
|
|
15
|
+
notification: IDashNotificationBase<any>;
|
|
16
|
+
}>;
|
|
17
|
+
[key: string]: any;
|
|
18
|
+
}
|
|
19
|
+
export interface INotificationFormat<T> {
|
|
20
|
+
class: string;
|
|
21
|
+
title: React.FC<{
|
|
22
|
+
notification: IDashNotificationBase<T>;
|
|
23
|
+
}>;
|
|
24
|
+
content: React.FC<{
|
|
25
|
+
notification: IDashNotificationBase<T>;
|
|
26
|
+
}>;
|
|
27
|
+
icon: React.FC<{
|
|
28
|
+
notification: IDashNotificationBase<T>;
|
|
29
|
+
}>;
|
|
30
|
+
}
|
|
31
|
+
export declare function formatNotification<T>(notification: IDashNotificationBase<T>, titleComponent?: React.FC<{
|
|
32
|
+
notification: IDashNotificationBase<T>;
|
|
33
|
+
}>, iconComponent?: React.FC<{
|
|
34
|
+
notification: IDashNotificationBase<T>;
|
|
35
|
+
}>, contentComponent?: React.FC<{
|
|
36
|
+
notification: IDashNotificationBase<T>;
|
|
37
|
+
}>): IDashFormattedNotification;
|
|
38
|
+
export default formatNotification;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Channel } from 'laravel-echo/src/channel';
|
|
2
|
+
import Echo from 'laravel-echo';
|
|
3
|
+
declare class EchoClientManager {
|
|
4
|
+
private static instance;
|
|
5
|
+
clients: Map<string, Echo<"pusher">>;
|
|
6
|
+
private constructor();
|
|
7
|
+
static getInstance(): EchoClientManager;
|
|
8
|
+
setClient(hash: string, client: Echo<"pusher">): void;
|
|
9
|
+
getClient(hash: string): Echo<"pusher"> | undefined;
|
|
10
|
+
removeClient(hash: string): boolean;
|
|
11
|
+
hasClient(hash: string): boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare const echoManager: EchoClientManager;
|
|
14
|
+
declare const useLaravelEcho: ({ type, channel, events, userId, socketId, pingInterval, debug, enabled }: {
|
|
15
|
+
type: "public" | "private";
|
|
16
|
+
channel: string;
|
|
17
|
+
events?: {
|
|
18
|
+
[key: string]: (e: any) => any;
|
|
19
|
+
};
|
|
20
|
+
userId?: number;
|
|
21
|
+
socketId?: string;
|
|
22
|
+
pingInterval?: number;
|
|
23
|
+
debug?: boolean;
|
|
24
|
+
enabled?: boolean;
|
|
25
|
+
}) => {
|
|
26
|
+
echoChannel: Channel;
|
|
27
|
+
isConnected: boolean;
|
|
28
|
+
lastEvent: {
|
|
29
|
+
event: string;
|
|
30
|
+
data: any;
|
|
31
|
+
channel?: string;
|
|
32
|
+
};
|
|
33
|
+
ping: () => void;
|
|
34
|
+
addListener: (eventName: string, callback: (data: any) => void) => void;
|
|
35
|
+
removeListener: (eventName: string) => void;
|
|
36
|
+
};
|
|
37
|
+
export default useLaravelEcho;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React, { FC } from 'react';
|
|
2
|
+
export interface IDictionaryContext {
|
|
3
|
+
dictionary: {
|
|
4
|
+
[key: string]: any;
|
|
5
|
+
};
|
|
6
|
+
replacements: {
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
};
|
|
9
|
+
get: (key: string, replace?: boolean) => string;
|
|
10
|
+
}
|
|
11
|
+
export declare const DictionaryContext: React.Context<IDictionaryContext>;
|
|
12
|
+
declare const DictionaryProvider: FC<{
|
|
13
|
+
dictionary: {
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
};
|
|
16
|
+
replacements: {
|
|
17
|
+
[key: string]: any;
|
|
18
|
+
};
|
|
19
|
+
children: React.ReactNode;
|
|
20
|
+
}>;
|
|
21
|
+
export { DictionaryContext as default, DictionaryProvider };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import WSMessagesManager from '../hooks/notifications/WSMessagesManager';
|
|
3
|
+
import { Theme } from '@mui/material';
|
|
4
|
+
import { LocalizationProviderProps } from '@mui/x-date-pickers';
|
|
5
|
+
import { IDASHAppState } from 'dash-admin-state';
|
|
6
|
+
import { Store } from 'redux';
|
|
7
|
+
import { IDashAutoAdminCustomFieldComponent } from 'dash-auto-admin';
|
|
8
|
+
import { Persister } from '@tanstack/react-query-persist-client';
|
|
9
|
+
export interface IDomainAppProviders<U, A, R> extends React.PropsWithChildren {
|
|
10
|
+
wsMessagesManager?: typeof WSMessagesManager;
|
|
11
|
+
theme?: Partial<Theme> | ((outerTheme: Partial<Theme>) => Partial<Theme>);
|
|
12
|
+
dateAdapter?: LocalizationProviderProps<any>["dateAdapter"];
|
|
13
|
+
store?: Store<IDASHAppState<U, A, R>>;
|
|
14
|
+
extendedThemeOptions?: any;
|
|
15
|
+
dashAutoAdminComponents?: Record<string, React.FC<IDashAutoAdminCustomFieldComponent>>;
|
|
16
|
+
queryClient?: any;
|
|
17
|
+
queryPersister?: Persister;
|
|
18
|
+
CustomEchoProvider?: React.ComponentType<any>;
|
|
19
|
+
}
|
|
20
|
+
declare const DomainAppProviders: <U, A, R>({ wsMessagesManager, dateAdapter, store, children, extendedThemeOptions, dashAutoAdminComponents, queryClient, queryPersister, CustomEchoProvider }: IDomainAppProviders<U, A, R>) => React.JSX.Element;
|
|
21
|
+
export default DomainAppProviders;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { appTheme } from 'dash-styles';
|
|
3
|
+
import { Theme } from '@mui/material';
|
|
4
|
+
interface DashThemeContextType {
|
|
5
|
+
theme: Theme;
|
|
6
|
+
themeOptions: ReturnType<typeof appTheme>;
|
|
7
|
+
recreateTheme: (tenantSettings?: any) => void;
|
|
8
|
+
currentMode: string;
|
|
9
|
+
}
|
|
10
|
+
declare const DashThemeContext: React.Context<DashThemeContextType>;
|
|
11
|
+
export declare const useDashThemeContext: () => DashThemeContextType;
|
|
12
|
+
interface DashThemeProviderProps {
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
extendedOptions?: any;
|
|
15
|
+
}
|
|
16
|
+
export declare const DashThemeProvider: React.FC<DashThemeProviderProps>;
|
|
17
|
+
export default DashThemeContext;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface DashThemeHelperContextType {
|
|
3
|
+
mode: string;
|
|
4
|
+
}
|
|
5
|
+
export declare const useDashThemeHelperContext: () => DashThemeHelperContextType;
|
|
6
|
+
interface DashThemeHelperProviderProps {
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
}
|
|
9
|
+
export declare const DashThemeHelperProvider: React.FC<DashThemeHelperProviderProps>;
|
|
10
|
+
export default DashThemeHelperProvider;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { IAppLayout } from '../layout/AppLayout';
|
|
3
|
+
import { IDomainTheme } from './DomainTheme';
|
|
4
|
+
export interface IDomainAppLayout<U = any, A = any> extends IAppLayout {
|
|
5
|
+
ThemeComponent?: React.ComponentType<IDomainTheme<any, any>>;
|
|
6
|
+
showBreadcrumbs?: boolean;
|
|
7
|
+
breadcrumbLabelMap?: Record<string, string>;
|
|
8
|
+
breadcrumbIncludeHome?: boolean;
|
|
9
|
+
CustomDomainHeader?: React.JSX.Element;
|
|
10
|
+
CustomDomainFooter?: React.JSX.Element;
|
|
11
|
+
}
|
|
12
|
+
declare const DomainAppLayout: <U, A>(props: IDomainAppLayout<U, A>) => React.JSX.Element;
|
|
13
|
+
export default DomainAppLayout;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { JSX, PropsWithChildren } from 'react';
|
|
2
|
+
export interface IDomainHeader<U = any, A = any> extends PropsWithChildren {
|
|
3
|
+
showBreadcrumbs?: boolean;
|
|
4
|
+
}
|
|
5
|
+
declare const DomainHeader: <U, A>({ showBreadcrumbs, ...props }: IDomainHeader<U, A>) => JSX.Element;
|
|
6
|
+
export default DomainHeader;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { JSX, PropsWithChildren } from 'react';
|
|
2
|
+
export interface IDomainTheme<U = any, A = any> extends PropsWithChildren {
|
|
3
|
+
menuComponent?: JSX.Element;
|
|
4
|
+
headerToolBar?: JSX.Element;
|
|
5
|
+
footerComponent?: JSX.Element;
|
|
6
|
+
}
|
|
7
|
+
declare const DomainTheme: <U, A>({ children, menuComponent, headerToolBar, footerComponent, ...props }: IDomainTheme<U, A>) => JSX.Element;
|
|
8
|
+
export default DomainTheme;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface IFullLayoutMarkup<U = any, A = any> extends React.PropsWithChildren {
|
|
3
|
+
logo?: string | React.ReactNode;
|
|
4
|
+
loginBackground?: string | React.ReactNode;
|
|
5
|
+
}
|
|
6
|
+
declare const FullLayoutMarkup: <U, A>({ children, className, logo, loginBackground, ...props }: IFullLayoutMarkup<U, A> & {
|
|
7
|
+
className?: string;
|
|
8
|
+
}) => React.JSX.Element;
|
|
9
|
+
export default FullLayoutMarkup;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { default as DASHAppLayout } from './DomainAppLayout';
|
|
2
|
+
export { default as DASHAppProviders } from './DASHAppProviders';
|
|
3
|
+
export { default as DomainTheme } from './DomainTheme';
|
|
4
|
+
export { default as DomainHeader } from './DomainHeader';
|
|
5
|
+
export { default as FullLayoutMarkup } from './FullLayoutMarkup';
|
|
6
|
+
export { default as StaticLayout } from './StaticLayout';
|
|
7
|
+
export { default as DashThemeContext } from './DashThemeContext';
|
|
8
|
+
export { default as DashThemeHelperProvider, useDashThemeHelperContext } from './DashThemeHelperProvider';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { SxProps, Theme } from '@mui/material';
|
|
3
|
+
import { IDashAutoAdminResourceConfig } from 'dash-auto-admin';
|
|
4
|
+
export type DashboardGridCardSize = 'small' | 'medium' | 'large' | number;
|
|
5
|
+
export interface IDashboardMenuGridColumns {
|
|
6
|
+
xs?: number;
|
|
7
|
+
sm?: number;
|
|
8
|
+
md?: number;
|
|
9
|
+
lg?: number;
|
|
10
|
+
xl?: number;
|
|
11
|
+
}
|
|
12
|
+
export interface IDashboardMenuGridProps {
|
|
13
|
+
columns?: number | IDashboardMenuGridColumns;
|
|
14
|
+
rows?: number;
|
|
15
|
+
orientation?: 'vertical' | 'horizontal';
|
|
16
|
+
size?: DashboardGridCardSize;
|
|
17
|
+
gap?: number;
|
|
18
|
+
menu?: IDashAutoAdminResourceConfig[];
|
|
19
|
+
debug?: boolean;
|
|
20
|
+
sx?: SxProps<Theme>;
|
|
21
|
+
className?: string;
|
|
22
|
+
}
|
|
23
|
+
declare const AppDashboardGrid: React.FC<IDashboardMenuGridProps>;
|
|
24
|
+
export default AppDashboardGrid;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { IAppMenu } from './AppMenuComponents/interfaces';
|
|
3
|
+
interface IAppMenuExtended extends IAppMenu {
|
|
4
|
+
logos?: {
|
|
5
|
+
horizontalLogo: React.ReactNode;
|
|
6
|
+
squaredLogo: React.ReactNode;
|
|
7
|
+
};
|
|
8
|
+
onToggleDrawer?: (e: React.MouseEvent) => void;
|
|
9
|
+
}
|
|
10
|
+
declare const AppMaterialMenu: React.FC<IAppMenuExtended>;
|
|
11
|
+
export default AppMaterialMenu;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React, { RefObject } from 'react';
|
|
2
|
+
import { SidebarPosition } from '../AppSidebarMaterial';
|
|
3
|
+
export interface SubmenuPortalProps {
|
|
4
|
+
open: boolean;
|
|
5
|
+
itemRef: RefObject<HTMLElement | null>;
|
|
6
|
+
sidebarPosition: SidebarPosition;
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
onMouseEnter?: () => void;
|
|
9
|
+
onMouseLeave?: () => void;
|
|
10
|
+
childrenCount?: number;
|
|
11
|
+
className?: string;
|
|
12
|
+
contentRef?: RefObject<HTMLDivElement | null>;
|
|
13
|
+
}
|
|
14
|
+
declare const SubmenuPortal: React.FC<SubmenuPortalProps>;
|
|
15
|
+
export default SubmenuPortal;
|
|
@@ -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;
|