@donotdev/ui 0.1.45 → 0.1.46
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/CookieConsent-W7UE647Y.js +1 -0
- package/dist/components/auth/AuthHeader.d.ts +1 -1
- package/dist/components/auth/AuthHeader.d.ts.map +1 -1
- package/dist/components/auth/AuthMenu.d.ts +2 -2
- package/dist/components/auth/AuthMenu.d.ts.map +1 -1
- package/dist/components/common/FeatureCard.d.ts +13 -2
- package/dist/components/common/FeatureCard.d.ts.map +1 -1
- package/dist/components/common/FeatureCard.js +0 -12
- package/dist/components/common/FeatureDisabled.d.ts +1 -1
- package/dist/components/common/FeatureDisabled.d.ts.map +1 -1
- package/dist/components/common/ProgressBar.d.ts.map +1 -1
- package/dist/components/common/RedirectOverlay.d.ts +1 -1
- package/dist/components/common/RedirectOverlay.d.ts.map +1 -1
- package/dist/components/common/Skeleton.d.ts +11 -0
- package/dist/components/common/Skeleton.d.ts.map +1 -1
- package/dist/components/common/Skeleton.js +0 -12
- package/dist/components/common/TechBento.d.ts +1 -1
- package/dist/components/common/TechBento.d.ts.map +1 -1
- package/dist/components/common/icon.d.ts.map +1 -1
- package/dist/components/cookie-consent/ConsentBanner.d.ts +1 -1
- package/dist/components/cookie-consent/ConsentBanner.d.ts.map +1 -1
- package/dist/components/cookie-consent/CookieConsent.d.ts +1 -1
- package/dist/components/cookie-consent/CookieConsent.d.ts.map +1 -1
- package/dist/components/cookie-consent/CookieConsent.js +13 -0
- package/dist/components/layout/GameContainer.d.ts +9 -1
- package/dist/components/layout/GameContainer.d.ts.map +1 -1
- package/dist/components/layout/GameContainer.js +0 -9
- package/dist/components/layout/GameFlow.d.ts +1 -1
- package/dist/components/layout/GameFlow.d.ts.map +1 -1
- package/dist/components/layout/PageContainer.d.ts +1 -1
- package/dist/components/layout/PageContainer.d.ts.map +1 -1
- package/dist/components/layout/components/Breadcrumbs.d.ts.map +1 -1
- package/dist/components/layout/components/DropdownNavigation.d.ts +16 -1
- package/dist/components/layout/components/DropdownNavigation.d.ts.map +1 -1
- package/dist/components/layout/components/DropdownNavigation.js +0 -16
- package/dist/components/layout/components/FloatingLanguageSwitcher.d.ts +8 -0
- package/dist/components/layout/components/FloatingLanguageSwitcher.d.ts.map +1 -1
- package/dist/components/layout/components/FloatingLanguageSwitcher.js +0 -9
- package/dist/components/layout/components/Notifications.d.ts +1 -1
- package/dist/components/layout/components/Notifications.d.ts.map +1 -1
- package/dist/components/layout/components/header/AppBranding.d.ts +1 -1
- package/dist/components/layout/components/header/AppBranding.d.ts.map +1 -1
- package/dist/components/layout/components/header/AppIcon.d.ts +1 -1
- package/dist/components/layout/components/header/AppIcon.d.ts.map +1 -1
- package/dist/components/layout/components/header/AppTitle.d.ts +1 -1
- package/dist/components/layout/components/header/AppTitle.d.ts.map +1 -1
- package/dist/components/layout/components/header/CacheSettings.d.ts +1 -1
- package/dist/components/layout/components/header/CacheSettings.d.ts.map +1 -1
- package/dist/components/layout/components/header/GameTitle.d.ts +1 -1
- package/dist/components/layout/components/header/GameTitle.d.ts.map +1 -1
- package/dist/components/layout/components/header/HeaderMenu.d.ts +1 -1
- package/dist/components/layout/components/header/HeaderMenu.d.ts.map +1 -1
- package/dist/components/layout/components/header/HeaderNavigation.d.ts +1 -1
- package/dist/components/layout/components/header/HeaderNavigation.d.ts.map +1 -1
- package/dist/components/layout/components/header/SettingsMenu.d.ts +1 -1
- package/dist/components/layout/components/header/SettingsMenu.d.ts.map +1 -1
- package/dist/components/layout/components/header/ThemeToggle.d.ts +1 -1
- package/dist/components/layout/components/header/ThemeToggle.d.ts.map +1 -1
- package/dist/crud/components/CrudCardLink.d.ts +1 -1
- package/dist/crud/components/CrudCardLink.d.ts.map +1 -1
- package/dist/crud/components/CrudCardLink.js +1 -2
- package/dist/crud/components/EntityCardList.d.ts +1 -1
- package/dist/crud/components/EntityCardList.d.ts.map +1 -1
- package/dist/crud/components/EntityCardList.js +0 -1
- package/dist/crud/components/EntityDisplayRenderer.d.ts +1 -1
- package/dist/crud/components/EntityDisplayRenderer.d.ts.map +1 -1
- package/dist/crud/components/EntityDisplayRenderer.js +1 -2
- package/dist/crud/components/EntityFormRenderer.d.ts +1 -1
- package/dist/crud/components/EntityFormRenderer.d.ts.map +1 -1
- package/dist/crud/components/EntityFormRenderer.js +20 -5
- package/dist/crud/components/EntityList.d.ts +1 -1
- package/dist/crud/components/EntityList.d.ts.map +1 -1
- package/dist/crud/components/EntityList.js +1 -2
- package/dist/crud/components/EntityRecommendations.d.ts +1 -1
- package/dist/crud/components/EntityRecommendations.d.ts.map +1 -1
- package/dist/crud/components/EntityRecommendations.js +0 -1
- package/dist/crud/components/EntityWorkflow.d.ts +22 -2
- package/dist/crud/components/EntityWorkflow.d.ts.map +1 -1
- package/dist/crud/components/EntityWorkflow.js +0 -22
- package/dist/crud/components/Form.d.ts +8 -8
- package/dist/crud/components/Form.d.ts.map +1 -1
- package/dist/dndev-next.css +1714 -0
- package/dist/dndev.css +14 -932
- package/dist/files/inter-cyrillic-300-normal.woff +0 -0
- package/dist/files/inter-cyrillic-300-normal.woff2 +0 -0
- package/dist/files/inter-cyrillic-400-normal.woff +0 -0
- package/dist/files/inter-cyrillic-400-normal.woff2 +0 -0
- package/dist/files/inter-cyrillic-600-normal.woff +0 -0
- package/dist/files/inter-cyrillic-600-normal.woff2 +0 -0
- package/dist/files/inter-cyrillic-700-normal.woff +0 -0
- package/dist/files/inter-cyrillic-700-normal.woff2 +0 -0
- package/dist/files/inter-cyrillic-ext-300-normal.woff +0 -0
- package/dist/files/inter-cyrillic-ext-300-normal.woff2 +0 -0
- package/dist/files/inter-cyrillic-ext-400-normal.woff +0 -0
- package/dist/files/inter-cyrillic-ext-400-normal.woff2 +0 -0
- package/dist/files/inter-cyrillic-ext-600-normal.woff +0 -0
- package/dist/files/inter-cyrillic-ext-600-normal.woff2 +0 -0
- package/dist/files/inter-cyrillic-ext-700-normal.woff +0 -0
- package/dist/files/inter-cyrillic-ext-700-normal.woff2 +0 -0
- package/dist/files/inter-greek-300-normal.woff +0 -0
- package/dist/files/inter-greek-300-normal.woff2 +0 -0
- package/dist/files/inter-greek-400-normal.woff +0 -0
- package/dist/files/inter-greek-400-normal.woff2 +0 -0
- package/dist/files/inter-greek-600-normal.woff +0 -0
- package/dist/files/inter-greek-600-normal.woff2 +0 -0
- package/dist/files/inter-greek-700-normal.woff +0 -0
- package/dist/files/inter-greek-700-normal.woff2 +0 -0
- package/dist/files/inter-greek-ext-300-normal.woff +0 -0
- package/dist/files/inter-greek-ext-300-normal.woff2 +0 -0
- package/dist/files/inter-greek-ext-400-normal.woff +0 -0
- package/dist/files/inter-greek-ext-400-normal.woff2 +0 -0
- package/dist/files/inter-greek-ext-600-normal.woff +0 -0
- package/dist/files/inter-greek-ext-600-normal.woff2 +0 -0
- package/dist/files/inter-greek-ext-700-normal.woff +0 -0
- package/dist/files/inter-greek-ext-700-normal.woff2 +0 -0
- package/dist/files/inter-latin-300-normal.woff +0 -0
- package/dist/files/inter-latin-300-normal.woff2 +0 -0
- package/dist/files/inter-latin-400-normal.woff +0 -0
- package/dist/files/inter-latin-400-normal.woff2 +0 -0
- package/dist/files/inter-latin-600-normal.woff +0 -0
- package/dist/files/inter-latin-600-normal.woff2 +0 -0
- package/dist/files/inter-latin-700-normal.woff +0 -0
- package/dist/files/inter-latin-700-normal.woff2 +0 -0
- package/dist/files/inter-latin-ext-300-normal.woff +0 -0
- package/dist/files/inter-latin-ext-300-normal.woff2 +0 -0
- package/dist/files/inter-latin-ext-400-normal.woff +0 -0
- package/dist/files/inter-latin-ext-400-normal.woff2 +0 -0
- package/dist/files/inter-latin-ext-600-normal.woff +0 -0
- package/dist/files/inter-latin-ext-600-normal.woff2 +0 -0
- package/dist/files/inter-latin-ext-700-normal.woff +0 -0
- package/dist/files/inter-latin-ext-700-normal.woff2 +0 -0
- package/dist/files/inter-vietnamese-300-normal.woff +0 -0
- package/dist/files/inter-vietnamese-300-normal.woff2 +0 -0
- package/dist/files/inter-vietnamese-400-normal.woff +0 -0
- package/dist/files/inter-vietnamese-400-normal.woff2 +0 -0
- package/dist/files/inter-vietnamese-600-normal.woff +0 -0
- package/dist/files/inter-vietnamese-600-normal.woff2 +0 -0
- package/dist/files/inter-vietnamese-700-normal.woff +0 -0
- package/dist/files/inter-vietnamese-700-normal.woff2 +0 -0
- package/dist/files/playfair-display-cyrillic-400-normal.woff +0 -0
- package/dist/files/playfair-display-cyrillic-400-normal.woff2 +0 -0
- package/dist/files/playfair-display-cyrillic-500-normal.woff +0 -0
- package/dist/files/playfair-display-cyrillic-500-normal.woff2 +0 -0
- package/dist/files/playfair-display-cyrillic-600-normal.woff +0 -0
- package/dist/files/playfair-display-cyrillic-600-normal.woff2 +0 -0
- package/dist/files/playfair-display-cyrillic-700-normal.woff +0 -0
- package/dist/files/playfair-display-cyrillic-700-normal.woff2 +0 -0
- package/dist/files/playfair-display-latin-400-normal.woff +0 -0
- package/dist/files/playfair-display-latin-400-normal.woff2 +0 -0
- package/dist/files/playfair-display-latin-500-normal.woff +0 -0
- package/dist/files/playfair-display-latin-500-normal.woff2 +0 -0
- package/dist/files/playfair-display-latin-600-normal.woff +0 -0
- package/dist/files/playfair-display-latin-600-normal.woff2 +0 -0
- package/dist/files/playfair-display-latin-700-normal.woff +0 -0
- package/dist/files/playfair-display-latin-700-normal.woff2 +0 -0
- package/dist/files/playfair-display-latin-ext-400-normal.woff +0 -0
- package/dist/files/playfair-display-latin-ext-400-normal.woff2 +0 -0
- package/dist/files/playfair-display-latin-ext-500-normal.woff +0 -0
- package/dist/files/playfair-display-latin-ext-500-normal.woff2 +0 -0
- package/dist/files/playfair-display-latin-ext-600-normal.woff +0 -0
- package/dist/files/playfair-display-latin-ext-600-normal.woff2 +0 -0
- package/dist/files/playfair-display-latin-ext-700-normal.woff +0 -0
- package/dist/files/playfair-display-latin-ext-700-normal.woff2 +0 -0
- package/dist/files/playfair-display-vietnamese-400-normal.woff +0 -0
- package/dist/files/playfair-display-vietnamese-400-normal.woff2 +0 -0
- package/dist/files/playfair-display-vietnamese-500-normal.woff +0 -0
- package/dist/files/playfair-display-vietnamese-500-normal.woff2 +0 -0
- package/dist/files/playfair-display-vietnamese-600-normal.woff +0 -0
- package/dist/files/playfair-display-vietnamese-600-normal.woff2 +0 -0
- package/dist/files/playfair-display-vietnamese-700-normal.woff +0 -0
- package/dist/files/playfair-display-vietnamese-700-normal.woff2 +0 -0
- package/dist/files/press-start-2p-cyrillic-400-normal.woff +0 -0
- package/dist/files/press-start-2p-cyrillic-400-normal.woff2 +0 -0
- package/dist/files/press-start-2p-cyrillic-ext-400-normal.woff +0 -0
- package/dist/files/press-start-2p-cyrillic-ext-400-normal.woff2 +0 -0
- package/dist/files/press-start-2p-greek-400-normal.woff +0 -0
- package/dist/files/press-start-2p-greek-400-normal.woff2 +0 -0
- package/dist/files/press-start-2p-latin-400-normal.woff +0 -0
- package/dist/files/press-start-2p-latin-400-normal.woff2 +0 -0
- package/dist/files/press-start-2p-latin-ext-400-normal.woff +0 -0
- package/dist/files/press-start-2p-latin-ext-400-normal.woff2 +0 -0
- package/dist/files/roboto-cyrillic-400-normal.woff +0 -0
- package/dist/files/roboto-cyrillic-400-normal.woff2 +0 -0
- package/dist/files/roboto-cyrillic-700-normal.woff +0 -0
- package/dist/files/roboto-cyrillic-700-normal.woff2 +0 -0
- package/dist/files/roboto-cyrillic-ext-400-normal.woff +0 -0
- package/dist/files/roboto-cyrillic-ext-400-normal.woff2 +0 -0
- package/dist/files/roboto-cyrillic-ext-700-normal.woff +0 -0
- package/dist/files/roboto-cyrillic-ext-700-normal.woff2 +0 -0
- package/dist/files/roboto-greek-400-normal.woff +0 -0
- package/dist/files/roboto-greek-400-normal.woff2 +0 -0
- package/dist/files/roboto-greek-700-normal.woff +0 -0
- package/dist/files/roboto-greek-700-normal.woff2 +0 -0
- package/dist/files/roboto-greek-ext-400-normal.woff +0 -0
- package/dist/files/roboto-greek-ext-400-normal.woff2 +0 -0
- package/dist/files/roboto-greek-ext-700-normal.woff +0 -0
- package/dist/files/roboto-greek-ext-700-normal.woff2 +0 -0
- package/dist/files/roboto-latin-400-normal.woff +0 -0
- package/dist/files/roboto-latin-400-normal.woff2 +0 -0
- package/dist/files/roboto-latin-700-normal.woff +0 -0
- package/dist/files/roboto-latin-700-normal.woff2 +0 -0
- package/dist/files/roboto-latin-ext-400-normal.woff +0 -0
- package/dist/files/roboto-latin-ext-400-normal.woff2 +0 -0
- package/dist/files/roboto-latin-ext-700-normal.woff +0 -0
- package/dist/files/roboto-latin-ext-700-normal.woff2 +0 -0
- package/dist/files/roboto-math-400-normal.woff +0 -0
- package/dist/files/roboto-math-400-normal.woff2 +0 -0
- package/dist/files/roboto-math-700-normal.woff +0 -0
- package/dist/files/roboto-math-700-normal.woff2 +0 -0
- package/dist/files/roboto-symbols-400-normal.woff +0 -0
- package/dist/files/roboto-symbols-400-normal.woff2 +0 -0
- package/dist/files/roboto-symbols-700-normal.woff +0 -0
- package/dist/files/roboto-symbols-700-normal.woff2 +0 -0
- package/dist/files/roboto-vietnamese-400-normal.woff +0 -0
- package/dist/files/roboto-vietnamese-400-normal.woff2 +0 -0
- package/dist/files/roboto-vietnamese-700-normal.woff +0 -0
- package/dist/files/roboto-vietnamese-700-normal.woff2 +0 -0
- package/dist/files/space-grotesk-latin-300-normal.woff +0 -0
- package/dist/files/space-grotesk-latin-300-normal.woff2 +0 -0
- package/dist/files/space-grotesk-latin-400-normal.woff +0 -0
- package/dist/files/space-grotesk-latin-400-normal.woff2 +0 -0
- package/dist/files/space-grotesk-latin-500-normal.woff +0 -0
- package/dist/files/space-grotesk-latin-500-normal.woff2 +0 -0
- package/dist/files/space-grotesk-latin-600-normal.woff +0 -0
- package/dist/files/space-grotesk-latin-600-normal.woff2 +0 -0
- package/dist/files/space-grotesk-latin-700-normal.woff +0 -0
- package/dist/files/space-grotesk-latin-700-normal.woff2 +0 -0
- package/dist/files/space-grotesk-latin-ext-300-normal.woff +0 -0
- package/dist/files/space-grotesk-latin-ext-300-normal.woff2 +0 -0
- package/dist/files/space-grotesk-latin-ext-400-normal.woff +0 -0
- package/dist/files/space-grotesk-latin-ext-400-normal.woff2 +0 -0
- package/dist/files/space-grotesk-latin-ext-500-normal.woff +0 -0
- package/dist/files/space-grotesk-latin-ext-500-normal.woff2 +0 -0
- package/dist/files/space-grotesk-latin-ext-600-normal.woff +0 -0
- package/dist/files/space-grotesk-latin-ext-600-normal.woff2 +0 -0
- package/dist/files/space-grotesk-latin-ext-700-normal.woff +0 -0
- package/dist/files/space-grotesk-latin-ext-700-normal.woff2 +0 -0
- package/dist/files/space-grotesk-vietnamese-300-normal.woff +0 -0
- package/dist/files/space-grotesk-vietnamese-300-normal.woff2 +0 -0
- package/dist/files/space-grotesk-vietnamese-400-normal.woff +0 -0
- package/dist/files/space-grotesk-vietnamese-400-normal.woff2 +0 -0
- package/dist/files/space-grotesk-vietnamese-500-normal.woff +0 -0
- package/dist/files/space-grotesk-vietnamese-500-normal.woff2 +0 -0
- package/dist/files/space-grotesk-vietnamese-600-normal.woff +0 -0
- package/dist/files/space-grotesk-vietnamese-600-normal.woff2 +0 -0
- package/dist/files/space-grotesk-vietnamese-700-normal.woff +0 -0
- package/dist/files/space-grotesk-vietnamese-700-normal.woff2 +0 -0
- package/dist/index.js +3 -3
- package/dist/internal/common/ErrorFallback.d.ts.map +1 -1
- package/dist/internal/common/GlobalErrorFallback.d.ts.map +1 -1
- package/dist/internal/common/RouteErrorFallback.d.ts.map +1 -1
- package/dist/internal/devtools/DebugTools.d.ts +1 -1
- package/dist/internal/devtools/DebugTools.d.ts.map +1 -1
- package/dist/internal/devtools/components/AuthDebugButton.d.ts.map +1 -1
- package/dist/internal/devtools/components/ConfigTab.d.ts +1 -1
- package/dist/internal/devtools/components/ConfigTab.d.ts.map +1 -1
- package/dist/internal/devtools/components/CookieTab.d.ts +1 -1
- package/dist/internal/devtools/components/CookieTab.d.ts.map +1 -1
- package/dist/internal/devtools/components/DebugDialog.d.ts +1 -1
- package/dist/internal/devtools/components/DebugDialog.d.ts.map +1 -1
- package/dist/internal/devtools/components/DesignTab.d.ts +1 -1
- package/dist/internal/devtools/components/DesignTab.d.ts.map +1 -1
- package/dist/internal/devtools/components/LayoutReset.d.ts.map +1 -1
- package/dist/internal/devtools/components/MaskedValue.d.ts +1 -1
- package/dist/internal/devtools/components/MaskedValue.d.ts.map +1 -1
- package/dist/internal/devtools/components/StoresTab.d.ts +1 -1
- package/dist/internal/devtools/components/StoresTab.d.ts.map +1 -1
- package/dist/internal/initializers/BaseStoresInitializer.d.ts +2 -2
- package/dist/internal/initializers/BaseStoresInitializer.d.ts.map +1 -1
- package/dist/internal/initializers/BaseStoresInitializer.js +1 -1
- package/dist/internal/initializers/NextJsStoresInitializer.d.ts +2 -2
- package/dist/internal/initializers/NextJsStoresInitializer.d.ts.map +1 -1
- package/dist/internal/initializers/ViteStoresInitializer.d.ts +10 -2
- package/dist/internal/initializers/ViteStoresInitializer.d.ts.map +1 -1
- package/dist/internal/initializers/ViteStoresInitializer.js +0 -9
- package/dist/internal/layout/DnDevLayout.d.ts +1 -1
- package/dist/internal/layout/DnDevLayout.d.ts.map +1 -1
- package/dist/internal/layout/DnDevLayout.js +19 -5
- package/dist/internal/layout/components/AutoMetaTags.d.ts.map +1 -1
- package/dist/internal/layout/components/AutoMetaTags.js +1 -1
- package/dist/internal/layout/components/FaviconHead.d.ts.map +1 -1
- package/dist/internal/layout/components/HeadTags.d.ts +17 -1
- package/dist/internal/layout/components/HeadTags.d.ts.map +1 -1
- package/dist/internal/layout/components/HeadTags.js +0 -17
- package/dist/internal/layout/components/NextJsAutoMetaTags.d.ts.map +1 -1
- package/dist/internal/layout/components/PerformanceHints.d.ts +12 -0
- package/dist/internal/layout/components/PerformanceHints.d.ts.map +1 -1
- package/dist/internal/layout/components/PerformanceHints.js +0 -13
- package/dist/internal/layout/config/defaults.d.ts +10 -0
- package/dist/internal/layout/config/defaults.d.ts.map +1 -1
- package/dist/internal/layout/config/defaults.js +0 -11
- package/dist/internal/layout/zones/DnDevFooter.d.ts +1 -1
- package/dist/internal/layout/zones/DnDevFooter.d.ts.map +1 -1
- package/dist/internal/layout/zones/DnDevHeader.d.ts.map +1 -1
- package/dist/internal/layout/zones/DnDevMergedBar.d.ts.map +1 -1
- package/dist/internal/layout/zones/DnDevSidebar.d.ts.map +1 -1
- package/dist/internal/providers/NavigationProvider.d.ts +30 -1
- package/dist/internal/providers/NavigationProvider.d.ts.map +1 -1
- package/dist/internal/providers/UIProviders.d.ts +8 -0
- package/dist/internal/providers/UIProviders.d.ts.map +1 -1
- package/dist/internal/providers/UIProviders.js +0 -9
- package/dist/providers/NextJsAppProviders.d.ts +1 -1
- package/dist/providers/NextJsAppProviders.d.ts.map +1 -1
- package/dist/providers/NextJsAppProviders.js +1 -4
- package/dist/providers/ViteAppProviders.d.ts +1 -1
- package/dist/providers/ViteAppProviders.d.ts.map +1 -1
- package/dist/routing/404.d.ts +1 -1
- package/dist/routing/404.d.ts.map +1 -1
- package/dist/routing/AuthGuard.d.ts +2 -2
- package/dist/routing/AuthGuard.d.ts.map +1 -1
- package/dist/routing/AuthGuardFallback.d.ts +1 -1
- package/dist/routing/AuthGuardFallback.d.ts.map +1 -1
- package/dist/routing/AuthReturnTo.js +1 -1
- package/dist/routing/DnDevNavigationMenu.d.ts.map +1 -1
- package/dist/routing/GoTo.d.ts +1 -1
- package/dist/routing/GoTo.d.ts.map +1 -1
- package/dist/routing/GoToDialog.d.ts.map +1 -1
- package/dist/routing/GoToInput.d.ts +1 -1
- package/dist/routing/GoToInput.d.ts.map +1 -1
- package/dist/routing/GoToWrapper.d.ts +1 -1
- package/dist/routing/GoToWrapper.d.ts.map +1 -1
- package/dist/routing/Link.d.ts +1 -1
- package/dist/routing/Link.d.ts.map +1 -1
- package/dist/routing/Link.js +0 -1
- package/dist/routing/NavigationItem.d.ts +1 -1
- package/dist/routing/NavigationItem.d.ts.map +1 -1
- package/dist/routing/useRouteDiscovery.d.ts +1 -1
- package/dist/routing/useRouteDiscovery.d.ts.map +1 -1
- package/dist/styles/index.css +14 -831
- package/dist/symbol-index.json +1 -1
- package/dist/utils/tList.d.ts +8 -0
- package/dist/utils/tList.d.ts.map +1 -1
- package/dist/utils/tList.js +0 -9
- package/dist/utils/useSeo.d.ts.map +1 -1
- package/dist/utils/useSeo.js +1 -1
- package/dist/vite-routing/AppRoutes.d.ts +1 -1
- package/dist/vite-routing/AppRoutes.d.ts.map +1 -1
- package/dist/vite-routing/AppRoutes.js +1 -1
- package/dist/vite-routing/RootLayout.d.ts +1 -1
- package/dist/vite-routing/RootLayout.d.ts.map +1 -1
- package/dist/vite-routing/RootLayout.js +1 -1
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeToggle.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/components/header/ThemeToggle.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ThemeToggle.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/components/header/ThemeToggle.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,aAAa,EAAa,MAAM,OAAO,CAAC;AAEtD,OAAO,EAIL,OAAO,EACR,MAAM,sBAAsB,CAAC;AAM9B,UAAU,gBAAgB;IACxB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,CAAC,OAAO,OAAO,CAAC,CAAC,MAAM,OAAO,OAAO,CAAC,CAAC;IACjD,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAUD;;;;;;;;;GASG;AACH,QAAA,MAAM,WAAW,EAAE,aAAa,CAAC,gBAAgB,CA8FhD,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -14,6 +14,6 @@ import type { CrudCardProps } from '@donotdev/core';
|
|
|
14
14
|
*/
|
|
15
15
|
export declare function CrudCard({ detailHref, onClick, ...rest }: CrudCardProps & {
|
|
16
16
|
detailHref?: string;
|
|
17
|
-
}): import("react
|
|
17
|
+
}): import("react").JSX.Element | null;
|
|
18
18
|
export default CrudCard;
|
|
19
19
|
//# sourceMappingURL=CrudCardLink.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CrudCardLink.d.ts","sourceRoot":"","sources":["../../../src/crud/components/CrudCardLink.tsx"],"names":[],"mappings":"AAGA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAQpD;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,EACvB,UAAU,EACV,OAAO,EACP,GAAG,IAAI,EACR,EAAE,aAAa,GAAG;IAAE,UAAU,CAAC,EAAE,MAAM,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"CrudCardLink.d.ts","sourceRoot":"","sources":["../../../src/crud/components/CrudCardLink.tsx"],"names":[],"mappings":"AAGA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAQpD;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,EACvB,UAAU,EACV,OAAO,EACP,GAAG,IAAI,EACR,EAAE,aAAa,GAAG;IAAE,UAAU,CAAC,EAAE,MAAM,CAAA;CAAE,sCAsBzC;AAED,eAAe,QAAQ,CAAC"}
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { isCrudModuleAvailable, CrudCard as BaseCrudCard, } from '../crudImports';
|
|
4
3
|
import { Link } from '../../routing';
|
|
4
|
+
import { isCrudModuleAvailable, CrudCard as BaseCrudCard, } from '../crudImports';
|
|
5
5
|
/**
|
|
6
6
|
* CrudCard with Link wrapping for web navigation.
|
|
7
7
|
* When detailHref is provided, wraps the card in a Link for a11y/SEO.
|
|
8
8
|
*/
|
|
9
9
|
export function CrudCard({ detailHref, onClick, ...rest }) {
|
|
10
10
|
// Safe guard: isCrudModuleAvailable is a module-level constant (immutable after load).
|
|
11
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
12
11
|
if (!isCrudModuleAvailable)
|
|
13
12
|
return null;
|
|
14
13
|
// When detailHref is set, Link handles navigation — don't pass onClick to inner card
|
|
@@ -12,5 +12,5 @@ export type { EntityCardListProps };
|
|
|
12
12
|
* - Auto-routing when handler not provided
|
|
13
13
|
*/
|
|
14
14
|
export declare function EntityCardList({ entity, basePath, onClick, cols, staleTime, // 30 minutes default cache
|
|
15
|
-
queryOptions, filter, hideFilters, resultLabel, tone, renderCardOverlay, clientSort, collapsible, defaultOpen, preview, }: EntityCardListProps): import("react
|
|
15
|
+
queryOptions, filter, hideFilters, resultLabel, tone, renderCardOverlay, clientSort, collapsible, defaultOpen, preview, }: EntityCardListProps): import("react").JSX.Element | null;
|
|
16
16
|
//# sourceMappingURL=EntityCardList.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EntityCardList.d.ts","sourceRoot":"","sources":["../../../src/crud/components/EntityCardList.tsx"],"names":[],"mappings":"AAmCA,OAAO,KAAK,EAAE,mBAAmB,EAAgB,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"EntityCardList.d.ts","sourceRoot":"","sources":["../../../src/crud/components/EntityCardList.tsx"],"names":[],"mappings":"AAmCA,OAAO,KAAK,EAAE,mBAAmB,EAAgB,MAAM,gBAAgB,CAAC;AAYxE,YAAY,EAAE,mBAAmB,EAAE,CAAC;AA0GpC;;;;;;;;;;GAUG;AACH,wBAAgB,cAAc,CAAC,EAC7B,MAAM,EACN,QAAQ,EACR,OAAO,EACP,IAAmB,EACnB,SAA0B,EAAE,2BAA2B;AACvD,YAAY,EACZ,MAAM,EACN,WAAmB,EACnB,WAAW,EACX,IAAI,EACJ,iBAAiB,EACjB,UAAU,EACV,WAAmB,EACnB,WAAW,EACX,OAAO,GACR,EAAE,mBAAmB,sCA4OrB"}
|
|
@@ -89,7 +89,6 @@ function CardListSkeleton({ cols, entity, }) {
|
|
|
89
89
|
export function EntityCardList({ entity, basePath, onClick, cols = [1, 2, 3, 4], staleTime = 1000 * 60 * 30, // 30 minutes default cache
|
|
90
90
|
queryOptions, filter, hideFilters = false, resultLabel, tone, renderCardOverlay, clientSort, collapsible = false, defaultOpen, preview, }) {
|
|
91
91
|
// Safe guard: isCrudModuleAvailable is a module-level constant (immutable after load).
|
|
92
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
93
92
|
if (!isCrudModuleAvailable)
|
|
94
93
|
return null;
|
|
95
94
|
const isPreview = !!preview;
|
|
@@ -16,6 +16,6 @@ export type { EntityDisplayRendererProps };
|
|
|
16
16
|
* <EntityDisplayRenderer entity={carEntity} id={carId} />
|
|
17
17
|
* ```
|
|
18
18
|
*/
|
|
19
|
-
export declare function EntityDisplayRenderer<T extends EntityRecord = EntityRecord>({ entity, id, t, className, loadingMessage, notFoundMessage, viewerRole: viewerRoleProp, excludeFields, preview, }: EntityDisplayRendererProps<T>): import("react
|
|
19
|
+
export declare function EntityDisplayRenderer<T extends EntityRecord = EntityRecord>({ entity, id, t, className, loadingMessage, notFoundMessage, viewerRole: viewerRoleProp, excludeFields, preview, }: EntityDisplayRendererProps<T>): import("react").JSX.Element | null;
|
|
20
20
|
export default EntityDisplayRenderer;
|
|
21
21
|
//# sourceMappingURL=EntityDisplayRenderer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EntityDisplayRenderer.d.ts","sourceRoot":"","sources":["../../../src/crud/components/EntityDisplayRenderer.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,0BAA0B,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAS/E,YAAY,EAAE,0BAA0B,EAAE,CAAC;AAE3C;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,qBAAqB,CAAC,CAAC,SAAS,YAAY,GAAG,YAAY,EAAE,EAC3E,MAAM,EACN,EAAE,EACF,CAAC,EACD,SAAc,EACd,cAAc,EACd,eAAe,EACf,UAAU,EAAE,cAAc,EAC1B,aAAa,EACb,OAAO,GACR,EAAE,0BAA0B,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"EntityDisplayRenderer.d.ts","sourceRoot":"","sources":["../../../src/crud/components/EntityDisplayRenderer.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,0BAA0B,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAS/E,YAAY,EAAE,0BAA0B,EAAE,CAAC;AAE3C;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,qBAAqB,CAAC,CAAC,SAAS,YAAY,GAAG,YAAY,EAAE,EAC3E,MAAM,EACN,EAAE,EACF,CAAC,EACD,SAAc,EACd,cAAc,EACd,eAAe,EACf,UAAU,EAAE,cAAc,EAC1B,aAAa,EACb,OAAO,GACR,EAAE,0BAA0B,CAAC,CAAC,CAAC,sCAgN/B;AAED,eAAe,qBAAqB,CAAC"}
|
|
@@ -13,8 +13,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
13
13
|
import { useEffect, useState, useMemo } from 'react';
|
|
14
14
|
import { Stack, Spinner } from '@donotdev/components';
|
|
15
15
|
import { useTranslation, isFieldVisible } from '@donotdev/core';
|
|
16
|
-
import { isCrudModuleAvailable, useCrud, DisplayFieldRenderer, } from '../crudImports';
|
|
17
16
|
import { useAuthSafe } from '../../utils/useAuthSafe';
|
|
17
|
+
import { isCrudModuleAvailable, useCrud, DisplayFieldRenderer, } from '../crudImports';
|
|
18
18
|
/**
|
|
19
19
|
* EntityDisplayRenderer - Automatically fetches and displays entity data
|
|
20
20
|
*
|
|
@@ -33,7 +33,6 @@ import { useAuthSafe } from '../../utils/useAuthSafe';
|
|
|
33
33
|
*/
|
|
34
34
|
export function EntityDisplayRenderer({ entity, id, t, className = '', loadingMessage, notFoundMessage, viewerRole: viewerRoleProp, excludeFields, preview, }) {
|
|
35
35
|
// Safe guard: isCrudModuleAvailable is a module-level constant (immutable after load).
|
|
36
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
37
36
|
if (!isCrudModuleAvailable)
|
|
38
37
|
return null;
|
|
39
38
|
const isPreview = !!preview;
|
|
@@ -18,6 +18,6 @@ export type { EntityFormRendererProps };
|
|
|
18
18
|
* Applies instanceKey as React key on the inner component for clean state isolation
|
|
19
19
|
* when navigating between entities on the same route (e.g. /cars/:id).
|
|
20
20
|
*/
|
|
21
|
-
export declare function EntityFormRenderer<T extends EntityRecord = EntityRecord>(props: EntityFormRendererProps<T>): import("react
|
|
21
|
+
export declare function EntityFormRenderer<T extends EntityRecord = EntityRecord>(props: EntityFormRendererProps<T>): import("react").JSX.Element;
|
|
22
22
|
export default EntityFormRenderer;
|
|
23
23
|
//# sourceMappingURL=EntityFormRenderer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EntityFormRenderer.d.ts","sourceRoot":"","sources":["../../../src/crud/components/EntityFormRenderer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"EntityFormRenderer.d.ts","sourceRoot":"","sources":["../../../src/crud/components/EntityFormRenderer.tsx"],"names":[],"mappings":"AA0BA,OAAO,KAAK,EACV,uBAAuB,EACvB,YAAY,EAEb,MAAM,gBAAgB,CAAC;AAexB,YAAY,EAAE,uBAAuB,EAAE,CAAC;AA6BxC;;;;;;;;;;;;GAYG;AACH;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,SAAS,YAAY,GAAG,YAAY,EACtE,KAAK,EAAE,uBAAuB,CAAC,CAAC,CAAC,+BAIlC;AAseD,eAAe,kBAAkB,CAAC"}
|
|
@@ -11,12 +11,26 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
11
11
|
* @author AMBROISE PARK Consulting
|
|
12
12
|
*/
|
|
13
13
|
import { useEffect, useId, useMemo, useState } from 'react';
|
|
14
|
-
import { FormProvider } from 'react-hook-form';
|
|
14
|
+
import { FormProvider, useWatch } from 'react-hook-form';
|
|
15
15
|
import { Badge, Button, DropdownMenu, Grid, Stack, Spinner, } from '@donotdev/components';
|
|
16
16
|
import { hasRoleAccess, useTranslation } from '@donotdev/core';
|
|
17
|
-
import { isCrudModuleAvailable, DisplayFieldRenderer, FormFieldRenderer, UploadProvider, useEntityForm, useFormStore, useFieldConditions, } from '../crudImports';
|
|
18
17
|
import { useNavigate } from '../../routing';
|
|
19
18
|
import { useAuthSafe } from '../../utils/useAuthSafe';
|
|
19
|
+
import { isCrudModuleAvailable, DisplayFieldRenderer, FormFieldRenderer, UploadProvider, useEntityForm, useFormStore, useFieldConditions, } from '../crudImports';
|
|
20
|
+
/**
|
|
21
|
+
* Read-only field inside a form.
|
|
22
|
+
*
|
|
23
|
+
* Subscribes to the field's live form value rather than reading the initial
|
|
24
|
+
* `defaultValues`, so fields written during the session — a computed value set
|
|
25
|
+
* by another field's component via `setValue`, for instance — display what the
|
|
26
|
+
* form will actually submit, not what it was loaded with.
|
|
27
|
+
*
|
|
28
|
+
* Mirrors FormFieldRenderer's contract: takes `control`, subscribes itself.
|
|
29
|
+
*/
|
|
30
|
+
function FormDisplayField({ name, config, control, t, }) {
|
|
31
|
+
const value = useWatch({ control, name });
|
|
32
|
+
return (_jsx(DisplayFieldRenderer, { name: name, config: config, value: value, t: t }));
|
|
33
|
+
}
|
|
20
34
|
/**
|
|
21
35
|
* EntityFormRenderer - Dumb component that renders a form from entity definition.
|
|
22
36
|
*
|
|
@@ -42,7 +56,6 @@ export function EntityFormRenderer(props) {
|
|
|
42
56
|
function EntityFormRendererCore({ entity, onSubmit, t, className = '', submitText, loading = false, defaultValues, submitVariant = 'primary', secondaryButtonText, secondaryButtonVariant = 'outline', onSecondarySubmit, viewerRole: viewerRoleProp, operation = defaultValues ? 'edit' : 'create', formId: externalFormId, cancelText, cancelPath, successPath, onCancel, hideVisibilityInfo = false, }) {
|
|
43
57
|
// Safe guard: isCrudModuleAvailable is a module-level constant (immutable after load).
|
|
44
58
|
// Hooks below are either ALL called or NONE — no Rules-of-Hooks violation at runtime.
|
|
45
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
46
59
|
if (!isCrudModuleAvailable)
|
|
47
60
|
return null;
|
|
48
61
|
const navigate = useNavigate();
|
|
@@ -224,7 +237,9 @@ function EntityFormRendererCore({ entity, onSubmit, t, className = '', submitTex
|
|
|
224
237
|
gridColumn: '1 / -1',
|
|
225
238
|
display: 'contents',
|
|
226
239
|
}, children: [isLoading && _jsx(Spinner, { overlay: true }), _jsxs("form", { onSubmit: (e) => {
|
|
227
|
-
console.log('[EntityFormRenderer] native form onSubmit event', {
|
|
240
|
+
console.log('[EntityFormRenderer] native form onSubmit event', {
|
|
241
|
+
defaultPrevented: e.defaultPrevented,
|
|
242
|
+
});
|
|
228
243
|
return handleSubmit(handleFormSubmit)(e);
|
|
229
244
|
}, noValidate: true, className: className, style: { width: '100%', gridColumn: '1 / -1', display: 'contents' }, children: [renderableFields.map(({ name, config, editable }) => {
|
|
230
245
|
// Evaluate dynamic conditions for this field
|
|
@@ -253,7 +268,7 @@ function EntityFormRendererCore({ entity, onSubmit, t, className = '', submitTex
|
|
|
253
268
|
const badgeLabel = roleLabels[config.visibility] ??
|
|
254
269
|
config.visibility;
|
|
255
270
|
// Wrap field with visibility badge when enabled
|
|
256
|
-
const fieldElement = !effectiveEditable ? (_jsx(
|
|
271
|
+
const fieldElement = !effectiveEditable ? (_jsx(FormDisplayField, { name: name, config: effectiveConfig, control: control, t: translate }, name)) : (_jsx(FormFieldRenderer, { name: name, config: effectiveConfig, control: control, errors: errors, t: translate }, name));
|
|
257
272
|
// If no badge needed, return field directly
|
|
258
273
|
if (!showBadge)
|
|
259
274
|
return fieldElement;
|
|
@@ -10,5 +10,5 @@ export type { EntityListProps };
|
|
|
10
10
|
* - Edit and Delete actions (admin only)
|
|
11
11
|
* - Auto-routing when handlers not provided
|
|
12
12
|
*/
|
|
13
|
-
export declare function EntityList({ entity, basePath, onClick, hideFilters, pagination, pageSize: pageSizeProp, queryOptions, exportable, preview, tone, }: EntityListProps): import("react
|
|
13
|
+
export declare function EntityList({ entity, basePath, onClick, hideFilters, pagination, pageSize: pageSizeProp, queryOptions, exportable, preview, tone, }: EntityListProps): import("react").JSX.Element | null;
|
|
14
14
|
//# sourceMappingURL=EntityList.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EntityList.d.ts","sourceRoot":"","sources":["../../../src/crud/components/EntityList.tsx"],"names":[],"mappings":"AA8BA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAetD,YAAY,EAAE,eAAe,EAAE,CAAC;AAEhC;;;;;;;;;GASG;AACH,wBAAgB,UAAU,CAAC,EACzB,MAAM,EACN,QAAQ,EACR,OAAO,EACP,WAAmB,EACnB,UAAmB,EACnB,QAAQ,EAAE,YAAY,EACtB,YAAY,EACZ,UAAiB,EACjB,OAAO,EACP,IAAI,GACL,EAAE,eAAe,
|
|
1
|
+
{"version":3,"file":"EntityList.d.ts","sourceRoot":"","sources":["../../../src/crud/components/EntityList.tsx"],"names":[],"mappings":"AA8BA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAetD,YAAY,EAAE,eAAe,EAAE,CAAC;AAEhC;;;;;;;;;GASG;AACH,wBAAgB,UAAU,CAAC,EACzB,MAAM,EACN,QAAQ,EACR,OAAO,EACP,WAAmB,EACnB,UAAmB,EACnB,QAAQ,EAAE,YAAY,EACtB,YAAY,EACZ,UAAiB,EACjB,OAAO,EACP,IAAI,GACL,EAAE,eAAe,sCAqTjB"}
|
|
@@ -17,8 +17,8 @@ import { RefreshCw, Plus, Trash2, Edit, Search } from 'lucide-react';
|
|
|
17
17
|
import { useCallback, useState } from 'react';
|
|
18
18
|
import { DataTable, Button, Stack, ActionButton, Section, Input, } from '@donotdev/components';
|
|
19
19
|
import { useTranslation } from '@donotdev/core';
|
|
20
|
-
import { isCrudModuleAvailable, translateFieldLabel, useCrud, useCrudList, useCrudPageSize, EntityFilters, formatValue, useReferenceResolver, } from '../crudImports';
|
|
21
20
|
import { Link, useNavigate } from '../../routing';
|
|
21
|
+
import { isCrudModuleAvailable, translateFieldLabel, useCrud, useCrudList, useCrudPageSize, EntityFilters, formatValue, useReferenceResolver, } from '../crudImports';
|
|
22
22
|
/**
|
|
23
23
|
* Entity List Component - Table view for admin/internal operations
|
|
24
24
|
*
|
|
@@ -31,7 +31,6 @@ import { Link, useNavigate } from '../../routing';
|
|
|
31
31
|
*/
|
|
32
32
|
export function EntityList({ entity, basePath, onClick, hideFilters = false, pagination = 'auto', pageSize: pageSizeProp, queryOptions, exportable = true, preview, tone, }) {
|
|
33
33
|
// Safe guard: isCrudModuleAvailable is a module-level constant (immutable after load).
|
|
34
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
35
34
|
if (!isCrudModuleAvailable)
|
|
36
35
|
return null;
|
|
37
36
|
const isPreview = !!preview;
|
|
@@ -39,5 +39,5 @@ import type { EntityRecommendationsProps } from '@donotdev/core';
|
|
|
39
39
|
* @since 0.0.15
|
|
40
40
|
* @author AMBROISE PARK Consulting
|
|
41
41
|
*/
|
|
42
|
-
export declare function EntityRecommendations({ entity, queryOptions, title, basePath, cols, tone, className, }: EntityRecommendationsProps): import("react
|
|
42
|
+
export declare function EntityRecommendations({ entity, queryOptions, title, basePath, cols, tone, className, }: EntityRecommendationsProps): import("react").JSX.Element | null;
|
|
43
43
|
//# sourceMappingURL=EntityRecommendations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EntityRecommendations.d.ts","sourceRoot":"","sources":["../../../src/crud/components/EntityRecommendations.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,gBAAgB,CAAC;AAKjE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,MAAM,EACN,YAAY,EACZ,KAAK,EACL,QAAQ,EACR,IAAmB,EACnB,IAAI,EACJ,SAAS,GACV,EAAE,0BAA0B,
|
|
1
|
+
{"version":3,"file":"EntityRecommendations.d.ts","sourceRoot":"","sources":["../../../src/crud/components/EntityRecommendations.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,gBAAgB,CAAC;AAKjE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,MAAM,EACN,YAAY,EACZ,KAAK,EACL,QAAQ,EACR,IAAmB,EACnB,IAAI,EACJ,SAAS,GACV,EAAE,0BAA0B,sCAmE5B"}
|
|
@@ -56,7 +56,6 @@ import { CrudCard } from './CrudCardLink';
|
|
|
56
56
|
*/
|
|
57
57
|
export function EntityRecommendations({ entity, queryOptions, title, basePath, cols = [1, 1, 3, 3], tone, className, }) {
|
|
58
58
|
// Safe guard: isCrudModuleAvailable is a module-level constant (immutable after load).
|
|
59
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
60
59
|
if (!isCrudModuleAvailable)
|
|
61
60
|
return null;
|
|
62
61
|
const { t } = useTranslation([entity.namespace, 'crud']);
|
|
@@ -1,5 +1,25 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview EntityWorkflow component
|
|
3
|
+
* @description Renders a multi-step entity workflow with stepper navigation.
|
|
4
|
+
* Uses useEntityWorkflow for orchestration and EntityFormRenderer for each step's form.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```tsx
|
|
8
|
+
* <EntityWorkflow
|
|
9
|
+
* workflow={onboardingWorkflow}
|
|
10
|
+
* onComplete={async (data) => {
|
|
11
|
+
* await api.createAccount(data);
|
|
12
|
+
* navigate('/dashboard');
|
|
13
|
+
* }}
|
|
14
|
+
* />
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* @version 0.1.0
|
|
18
|
+
* @since 0.0.1
|
|
19
|
+
* @author AMBROISE PARK Consulting
|
|
20
|
+
*/
|
|
2
21
|
import type { ReactNode } from 'react';
|
|
22
|
+
import type { WorkflowConfig, EntityWorkflowReturn } from '@donotdev/crud';
|
|
3
23
|
/** Props for EntityWorkflow */
|
|
4
24
|
export interface EntityWorkflowProps {
|
|
5
25
|
/** Workflow configuration from defineWorkflow() */
|
|
@@ -23,5 +43,5 @@ export interface EntityWorkflowProps {
|
|
|
23
43
|
* Default mode: auto-renders Stepper + form + navigation buttons.
|
|
24
44
|
* Custom mode: pass a render prop as children for full control.
|
|
25
45
|
*/
|
|
26
|
-
export declare function EntityWorkflow({ workflow: config, onComplete, onStepChange, defaultValues, viewerRole, children, className, }: EntityWorkflowProps): import("react
|
|
46
|
+
export declare function EntityWorkflow({ workflow: config, onComplete, onStepChange, defaultValues, viewerRole, children, className, }: EntityWorkflowProps): import("react").JSX.Element | null;
|
|
27
47
|
//# sourceMappingURL=EntityWorkflow.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EntityWorkflow.d.ts","sourceRoot":"","sources":["../../../src/crud/components/EntityWorkflow.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"EntityWorkflow.d.ts","sourceRoot":"","sources":["../../../src/crud/components/EntityWorkflow.tsx"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,OAAO,KAAK,EACV,cAAc,EAEd,oBAAoB,EACrB,MAAM,gBAAgB,CAAC;AAKxB,+BAA+B;AAC/B,MAAM,WAAW,mBAAmB;IAClC,mDAAmD;IACnD,QAAQ,EAAE,cAAc,CAAC;IACzB,4CAA4C;IAC5C,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACxE,iCAAiC;IACjC,YAAY,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5D,8CAA8C;IAC9C,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACxC,qCAAqC;IACrC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,oBAAoB,KAAK,SAAS,CAAC;IACnD,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EAAE,MAAM,EAChB,UAAU,EACV,YAAY,EACZ,aAAa,EACb,UAAU,EACV,QAAQ,EACR,SAAS,GACV,EAAE,mBAAmB,sCA2FrB"}
|
|
@@ -1,26 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
// packages/ui/src/crud/components/EntityWorkflow.tsx
|
|
4
|
-
/**
|
|
5
|
-
* @fileoverview EntityWorkflow component
|
|
6
|
-
* @description Renders a multi-step entity workflow with stepper navigation.
|
|
7
|
-
* Uses useEntityWorkflow for orchestration and EntityFormRenderer for each step's form.
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* ```tsx
|
|
11
|
-
* <EntityWorkflow
|
|
12
|
-
* workflow={onboardingWorkflow}
|
|
13
|
-
* onComplete={async (data) => {
|
|
14
|
-
* await api.createAccount(data);
|
|
15
|
-
* navigate('/dashboard');
|
|
16
|
-
* }}
|
|
17
|
-
* />
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @version 0.1.0
|
|
21
|
-
* @since 0.0.1
|
|
22
|
-
* @author AMBROISE PARK Consulting
|
|
23
|
-
*/
|
|
24
3
|
import { Button, Stack, Stepper } from '@donotdev/components';
|
|
25
4
|
import { useTranslation } from '@donotdev/core';
|
|
26
5
|
import { isCrudModuleAvailable, useEntityWorkflow } from '../crudImports';
|
|
@@ -33,7 +12,6 @@ import { EntityFormRenderer } from './EntityFormRenderer';
|
|
|
33
12
|
*/
|
|
34
13
|
export function EntityWorkflow({ workflow: config, onComplete, onStepChange, defaultValues, viewerRole, children, className, }) {
|
|
35
14
|
// Safe guard: isCrudModuleAvailable is a module-level constant (immutable after load).
|
|
36
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
37
15
|
if (!isCrudModuleAvailable)
|
|
38
16
|
return null;
|
|
39
17
|
const { t } = useTranslation('crud');
|
|
@@ -16,7 +16,7 @@ import { Label, Slot } from '@donotdev/components';
|
|
|
16
16
|
* @since 0.0.1
|
|
17
17
|
* @author AMBROISE PARK Consulting
|
|
18
18
|
*/
|
|
19
|
-
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(
|
|
19
|
+
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>({ children, watch, getValues, getErrors, getFieldState, setError, clearErrors, setValue, setValues, trigger, formState, resetField, reset, resetDefaultValues, handleSubmit, unregister, control, register, setFocus, subscribe, }: import("react-hook-form").FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
|
|
20
20
|
/**
|
|
21
21
|
* Form field component
|
|
22
22
|
*
|
|
@@ -28,7 +28,7 @@ declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransfor
|
|
|
28
28
|
* @since 0.0.1
|
|
29
29
|
* @author AMBROISE PARK Consulting
|
|
30
30
|
*/
|
|
31
|
-
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => import("react
|
|
31
|
+
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => import("react").JSX.Element;
|
|
32
32
|
/**
|
|
33
33
|
* Form item component
|
|
34
34
|
*
|
|
@@ -40,7 +40,7 @@ declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName
|
|
|
40
40
|
* @since 0.0.1
|
|
41
41
|
* @author AMBROISE PARK Consulting
|
|
42
42
|
*/
|
|
43
|
-
declare const FormItem: ({ className, ...props }: HTMLAttributes<HTMLDivElement>) => import("react
|
|
43
|
+
declare const FormItem: ({ className, ...props }: HTMLAttributes<HTMLDivElement>) => import("react").JSX.Element;
|
|
44
44
|
/**
|
|
45
45
|
* Hook for accessing form field context
|
|
46
46
|
*
|
|
@@ -56,7 +56,7 @@ declare const useFormField: () => {
|
|
|
56
56
|
isDirty: boolean;
|
|
57
57
|
isTouched: boolean;
|
|
58
58
|
isValidating: boolean;
|
|
59
|
-
error?: import("react-hook-form").FieldError;
|
|
59
|
+
error?: import("react-hook-form").FieldError | undefined;
|
|
60
60
|
id: string;
|
|
61
61
|
name: string;
|
|
62
62
|
formItemId: string;
|
|
@@ -74,7 +74,7 @@ declare const useFormField: () => {
|
|
|
74
74
|
* @since 0.0.1
|
|
75
75
|
* @author AMBROISE PARK Consulting
|
|
76
76
|
*/
|
|
77
|
-
declare const FormLabel: ({ className, ...props }: ComponentProps<typeof Label>) => import("react
|
|
77
|
+
declare const FormLabel: ({ className, ...props }: ComponentProps<typeof Label>) => import("react").JSX.Element | null;
|
|
78
78
|
/**
|
|
79
79
|
* Form control component
|
|
80
80
|
*
|
|
@@ -86,7 +86,7 @@ declare const FormLabel: ({ className, ...props }: ComponentProps<typeof Label>)
|
|
|
86
86
|
* @since 0.0.1
|
|
87
87
|
* @author AMBROISE PARK Consulting
|
|
88
88
|
*/
|
|
89
|
-
declare const FormControl: ({ ...props }: ComponentProps<typeof Slot>) => import("react
|
|
89
|
+
declare const FormControl: ({ ...props }: ComponentProps<typeof Slot>) => import("react").JSX.Element | null;
|
|
90
90
|
/**
|
|
91
91
|
* Form description component
|
|
92
92
|
*
|
|
@@ -98,7 +98,7 @@ declare const FormControl: ({ ...props }: ComponentProps<typeof Slot>) => import
|
|
|
98
98
|
* @since 0.0.1
|
|
99
99
|
* @author AMBROISE PARK Consulting
|
|
100
100
|
*/
|
|
101
|
-
declare const FormDescription: ({ className, ...props }: HTMLAttributes<HTMLParagraphElement>) => import("react
|
|
101
|
+
declare const FormDescription: ({ className, ...props }: HTMLAttributes<HTMLParagraphElement>) => import("react").JSX.Element | null;
|
|
102
102
|
/**
|
|
103
103
|
* Form message component
|
|
104
104
|
*
|
|
@@ -110,7 +110,7 @@ declare const FormDescription: ({ className, ...props }: HTMLAttributes<HTMLPara
|
|
|
110
110
|
* @since 0.0.1
|
|
111
111
|
* @author AMBROISE PARK Consulting
|
|
112
112
|
*/
|
|
113
|
-
declare const FormMessage: ({ className, children, ...props }: HTMLAttributes<HTMLParagraphElement>) => import("react
|
|
113
|
+
declare const FormMessage: ({ className, children, ...props }: HTMLAttributes<HTMLParagraphElement>) => import("react").JSX.Element | null;
|
|
114
114
|
/**
|
|
115
115
|
* Form component exports
|
|
116
116
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../../../src/crud/components/Form.tsx"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AAEH,OAAO,EAIL,KAAK,cAAc,EACnB,KAAK,cAAc,EACpB,MAAM,OAAO,CAAC;AACf,OAAO,EAEL,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,WAAW,EAGjB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,KAAK,EAAE,IAAI,EAAa,MAAM,sBAAsB,CAAC;AAE9D;;;;;;GAMG;AACH,QAAA,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../../../src/crud/components/Form.tsx"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AAEH,OAAO,EAIL,KAAK,cAAc,EACnB,KAAK,cAAc,EACpB,MAAM,OAAO,CAAC;AACf,OAAO,EAEL,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,WAAW,EAGjB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,KAAK,EAAE,IAAI,EAAa,MAAM,sBAAsB,CAAC;AAE9D;;;;;;GAMG;AACH,QAAA,MAAM,IAAI,yaAAe,CAAC;AAqB1B;;;;;;;;;;GAUG;AACH,QAAA,MAAM,SAAS,GACb,YAAY,SAAS,WAAW,GAAG,WAAW,EAC9C,KAAK,SAAS,SAAS,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,YAAY,CAAC,EAC/D,cAEC,eAAe,CAAC,YAAY,EAAE,KAAK,CAAC,gCAMtC,CAAC;AAYF;;;;;;;;;;GAUG;AACH,QAAA,MAAM,QAAQ,GAAI,yBAAyB,cAAc,CAAC,cAAc,CAAC,gCAOxE,CAAC;AAEF;;;;;;;;;GASG;AACH,QAAA,MAAM,YAAY;;;;;;;;;;;QA4BjB,CAAC;AAEF;;;;;;;;;;GAUG;AACH,QAAA,MAAM,SAAS,GAAI,yBAAyB,cAAc,CAAC,OAAO,KAAK,CAAC,uCAWvE,CAAC;AAEF;;;;;;;;;;GAUG;AACH,QAAA,MAAM,WAAW,GAAI,cAAc,cAAc,CAAC,OAAO,IAAI,CAAC,uCAgB7D,CAAC;AAEF;;;;;;;;;;GAUG;AACH,QAAA,MAAM,eAAe,GAAI,yBAGtB,cAAc,CAAC,oBAAoB,CAAC,uCAetC,CAAC;AAEF;;;;;;;;;;GAUG;AACH,QAAA,MAAM,WAAW,GAAI,mCAIlB,cAAc,CAAC,oBAAoB,CAAC,uCAsBtC,CAAC;AAEF;;;;;;GAMG;AACH,OAAO,EACL,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,WAAW,EACX,eAAe,EACf,WAAW,EACX,SAAS,EACT,YAAY,GACb,CAAC"}
|