@donotdev/ui 0.2.1 → 0.2.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/{GoToDialog-CICRYHHG.js → GoToDialog-KSBGOIWO.js} +1 -1
- package/dist/chunk-MS7ZIW5Z.js +1 -0
- package/dist/components/auth/AuthHeader.d.ts.map +1 -1
- package/dist/components/auth/AuthHeader.js +0 -2
- package/dist/components/auth/AuthMenu.d.ts.map +1 -1
- package/dist/components/auth/AuthMenu.js +6 -40
- package/dist/components/common/TechBento.d.ts +2 -6
- package/dist/components/common/TechBento.d.ts.map +1 -1
- package/dist/components/common/TechBento.js +14 -16
- package/dist/components/common/icon.d.ts.map +1 -1
- package/dist/components/common/icon.js +2 -1
- package/dist/components/common/lucideIconByName.d.ts +9 -0
- package/dist/components/common/lucideIconByName.d.ts.map +1 -0
- package/dist/components/common/lucideIconByName.js +32 -0
- package/dist/components/layout/GameFlow.d.ts.map +1 -1
- package/dist/components/layout/components/Breadcrumbs.d.ts.map +1 -1
- package/dist/components/layout/components/Breadcrumbs.js +14 -9
- package/dist/components/layout/components/header/CacheSettings.d.ts.map +1 -1
- package/dist/components/layout/components/header/CacheSettings.js +6 -4
- package/dist/components/layout/components/header/SettingsMenu.d.ts.map +1 -1
- package/dist/components/layout/components/header/SettingsMenu.js +2 -1
- package/dist/components/layout/components/header/ThemeToggle.d.ts.map +1 -1
- package/dist/components/layout/components/header/ThemeToggle.js +2 -1
- package/dist/crud/components/CrudCardLink.d.ts +6 -6
- package/dist/crud/components/CrudCardLink.d.ts.map +1 -1
- package/dist/crud/components/CrudCardLink.js +3 -9
- package/dist/crud/components/EntityCardList.d.ts.map +1 -1
- package/dist/crud/components/EntityCardList.js +3 -11
- 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 +17 -58
- package/dist/crud/components/EntityFormRenderer.d.ts.map +1 -1
- package/dist/crud/components/EntityFormRenderer.js +27 -5
- package/dist/crud/components/EntityList.d.ts +4 -4
- package/dist/crud/components/EntityList.d.ts.map +1 -1
- package/dist/crud/components/EntityList.js +136 -59
- package/dist/crud/components/Form.d.ts +1 -1
- package/dist/crud/components/Form.d.ts.map +1 -1
- package/dist/crud/components/Form.js +2 -2
- package/dist/crud/components/cellEditFor.d.ts +28 -0
- package/dist/crud/components/cellEditFor.d.ts.map +1 -0
- package/dist/crud/components/cellEditFor.js +54 -0
- package/dist/crud/components/entityParent.d.ts +40 -0
- package/dist/crud/components/entityParent.d.ts.map +1 -0
- package/dist/crud/components/entityParent.js +54 -0
- package/dist/crud/components/useRecordBreadcrumb.d.ts +11 -0
- package/dist/crud/components/useRecordBreadcrumb.d.ts.map +1 -0
- package/dist/crud/components/useRecordBreadcrumb.js +34 -0
- package/dist/crud/crudImports.d.ts +3 -0
- package/dist/crud/crudImports.d.ts.map +1 -1
- package/dist/crud/crudImports.js +3 -0
- package/dist/dndev-next.css +483 -145
- package/dist/dndev.css +483 -145
- package/dist/index.js +4 -4
- package/dist/internal/common/RouteErrorFallback.d.ts.map +1 -1
- package/dist/internal/common/RouteErrorFallback.js +2 -4
- package/dist/internal/devtools/components/ConfigTab.d.ts.map +1 -1
- package/dist/internal/devtools/components/ConfigTab.js +1 -1
- package/dist/internal/devtools/components/CookieTab.d.ts.map +1 -1
- package/dist/internal/devtools/components/CookieTab.js +1 -5
- package/dist/internal/devtools/components/DesignTab.d.ts.map +1 -1
- package/dist/internal/devtools/components/DesignTab.js +18 -7
- package/dist/internal/devtools/components/StoresTab.d.ts.map +1 -1
- package/dist/internal/devtools/components/StoresTab.js +17 -3
- package/dist/internal/devtools/types.d.ts +3 -3
- package/dist/internal/devtools/types.d.ts.map +1 -1
- package/dist/internal/devtools/utils/maskSensitive.d.ts +1 -1
- package/dist/internal/devtools/utils/maskSensitive.d.ts.map +1 -1
- package/dist/internal/layout/DnDevLayout.d.ts.map +1 -1
- package/dist/internal/layout/DnDevLayout.js +21 -21
- package/dist/internal/layout/components/AutoMetaTags.d.ts.map +1 -1
- package/dist/internal/layout/components/AutoMetaTags.js +45 -58
- package/dist/internal/layout/components/footer/FooterLegalLinks.js +2 -2
- package/dist/internal/layout/components/footer/useLegalLinks.d.ts +0 -2
- package/dist/internal/layout/components/footer/useLegalLinks.d.ts.map +1 -1
- package/dist/internal/layout/components/footer/useLegalLinks.js +0 -2
- package/dist/internal/layout/components/i18nSeoMeta.d.ts +54 -0
- package/dist/internal/layout/components/i18nSeoMeta.d.ts.map +1 -0
- package/dist/internal/layout/components/i18nSeoMeta.js +53 -0
- package/dist/internal/layout/components/index.d.ts +1 -1
- package/dist/internal/layout/components/index.js +1 -1
- package/dist/internal/layout/zones/DnDevMergedBar.js +3 -3
- package/dist/internal/providers/UIProviders.d.ts.map +1 -1
- package/dist/internal/providers/UIProviders.js +7 -2
- package/dist/providers/NextJsAppProviders.d.ts +5 -1
- package/dist/providers/NextJsAppProviders.d.ts.map +1 -1
- package/dist/providers/NextJsAppProviders.js +36 -6
- package/dist/providers/ViteAppProviders.d.ts.map +1 -1
- package/dist/providers/ViteAppProviders.js +42 -4
- package/dist/routing/404.js +4 -4
- package/dist/routing/AuthGuard.d.ts +0 -4
- package/dist/routing/AuthGuard.d.ts.map +1 -1
- package/dist/routing/AuthGuard.js +0 -4
- package/dist/routing/AuthGuardFallback.d.ts.map +1 -1
- package/dist/routing/AuthGuardFallback.js +1 -2
- package/dist/routing/AuthReturnTo.d.ts.map +1 -1
- package/dist/routing/AuthReturnTo.js +9 -2
- package/dist/routing/GoTo.d.ts +0 -6
- package/dist/routing/GoTo.d.ts.map +1 -1
- package/dist/routing/GoTo.js +5 -8
- package/dist/routing/Link.d.ts +4 -2
- package/dist/routing/Link.d.ts.map +1 -1
- package/dist/routing/Link.js +8 -5
- package/dist/routing/SignedInRedirect.d.ts +27 -0
- package/dist/routing/SignedInRedirect.d.ts.map +1 -0
- package/dist/routing/SignedInRedirect.js +47 -0
- package/dist/routing/hooks/hooks.next.d.ts +2 -0
- package/dist/routing/hooks/hooks.next.d.ts.map +1 -1
- package/dist/routing/hooks/hooks.next.js +1 -1
- package/dist/routing/hooks/hooks.vite.d.ts +2 -0
- package/dist/routing/hooks/hooks.vite.d.ts.map +1 -1
- package/dist/routing/hooks/hooks.vite.js +1 -1
- package/dist/routing/hooks/useLocation.next.d.ts +12 -0
- package/dist/routing/hooks/useLocation.next.d.ts.map +1 -1
- package/dist/routing/hooks/useLocation.next.js +17 -4
- package/dist/routing/hooks/useMatch.next.d.ts +6 -0
- package/dist/routing/hooks/useMatch.next.d.ts.map +1 -1
- package/dist/routing/hooks/useMatch.next.js +8 -2
- package/dist/routing/hooks/useNavigate.next.d.ts +6 -1
- package/dist/routing/hooks/useNavigate.next.d.ts.map +1 -1
- package/dist/routing/hooks/useNavigate.next.js +13 -4
- package/dist/routing/hooks/useNavigate.vite.d.ts +7 -1
- package/dist/routing/hooks/useNavigate.vite.d.ts.map +1 -1
- package/dist/routing/hooks/useNavigate.vite.js +20 -4
- package/dist/routing/hooks/useRedirectGuard.next.d.ts.map +1 -1
- package/dist/routing/hooks/useRedirectGuard.next.js +7 -1
- package/dist/routing/hooks/useRedirectGuard.vite.d.ts.map +1 -1
- package/dist/routing/hooks/useRedirectGuard.vite.js +7 -1
- package/dist/routing/hooks/useRoutePath.next.d.ts +23 -0
- package/dist/routing/hooks/useRoutePath.next.d.ts.map +1 -0
- package/dist/routing/hooks/useRoutePath.next.js +36 -0
- package/dist/routing/hooks/useRoutePath.vite.d.ts +13 -0
- package/dist/routing/hooks/useRoutePath.vite.d.ts.map +1 -0
- package/dist/routing/hooks/useRoutePath.vite.js +25 -0
- package/dist/routing/hooks/useUrlLanguage.next.d.ts +28 -0
- package/dist/routing/hooks/useUrlLanguage.next.d.ts.map +1 -0
- package/dist/routing/hooks/useUrlLanguage.next.js +50 -0
- package/dist/routing/hooks/useUrlLanguage.vite.d.ts +22 -0
- package/dist/routing/hooks/useUrlLanguage.vite.d.ts.map +1 -0
- package/dist/routing/hooks/useUrlLanguage.vite.js +41 -0
- package/dist/routing/index.d.ts +3 -1
- package/dist/routing/index.d.ts.map +1 -1
- package/dist/routing/index.js +2 -1
- package/dist/routing/useNavigation.js +4 -4
- package/dist/styles/index.css +483 -145
- package/dist/symbol-index.json +1 -1
- package/dist/utils/assetResolver.d.ts.map +1 -1
- package/dist/utils/assetResolver.js +1 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +3 -0
- package/dist/utils/useDeleteAccountSafe.d.ts +17 -0
- package/dist/utils/useDeleteAccountSafe.d.ts.map +1 -0
- package/dist/utils/useDeleteAccountSafe.js +52 -0
- package/dist/utils/useFormStoreSafe.d.ts.map +1 -1
- package/dist/utils/useFormStoreSafe.js +1 -0
- package/dist/utils/useSeo.d.ts +10 -2
- package/dist/utils/useSeo.d.ts.map +1 -1
- package/dist/utils/useSeo.js +44 -9
- package/dist/vite-routing/AppRoutes.d.ts.map +1 -1
- package/dist/vite-routing/AppRoutes.js +37 -4
- package/guidelines/COMPONENTS.md +2 -1
- package/guidelines/PAGES.md +7 -0
- package/guidelines/ROUTING.md +4 -0
- package/guidelines/SEO.md +64 -0
- package/package.json +9 -9
- package/dist/CookieConsent-5NH5DNTP.js +0 -1
- package/dist/CookieConsent-W7UE647Y.js +0 -1
- package/dist/GoToDialog-YGBON6FR.js +0 -1
- package/dist/chunk-DRFM6WXH.js +0 -1
- package/dist/chunk-MIPTBUWY.js +0 -1
- package/dist/internal/layout/components/NextJsAutoMetaTags.d.ts +0 -57
- package/dist/internal/layout/components/NextJsAutoMetaTags.d.ts.map +0 -1
- package/dist/internal/layout/components/NextJsAutoMetaTags.js +0 -182
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Parent / child records (nested lists)
|
|
3
|
+
* @description An `EntityList` with `parent` lists one parent's children and its
|
|
4
|
+
* add button opens `basePath/new?<field>=<id>`. `EntityFormRenderer` (create)
|
|
5
|
+
* prefills that reference field from the URL. URL input is untrusted: only
|
|
6
|
+
* reference fields of the entity the viewer may set on create, with an id-shaped
|
|
7
|
+
* value, are taken.
|
|
8
|
+
*
|
|
9
|
+
* @version 0.1.0
|
|
10
|
+
* @since 0.2.3
|
|
11
|
+
* @author AMBROISE PARK Consulting
|
|
12
|
+
*/
|
|
13
|
+
import type { AnyEntity, EntityListParent } from '@donotdev/core';
|
|
14
|
+
/**
|
|
15
|
+
* Throws when `parent.field` is not a reference field of the listed entity.
|
|
16
|
+
* A wrong parent would silently list nothing.
|
|
17
|
+
*
|
|
18
|
+
* @param entity - The listed (child) entity
|
|
19
|
+
* @param parent - The nested list's parent
|
|
20
|
+
*/
|
|
21
|
+
export declare function assertEntityParent(entity: AnyEntity, parent: EntityListParent): void;
|
|
22
|
+
/**
|
|
23
|
+
* Create path of a child record with its parent prefilled.
|
|
24
|
+
*
|
|
25
|
+
* @param basePath - The list's base path
|
|
26
|
+
* @param parent - The nested list's parent
|
|
27
|
+
* @returns `${basePath}/new?<field>=<id>`
|
|
28
|
+
*/
|
|
29
|
+
export declare function childCreatePath(basePath: string, parent: EntityListParent): string;
|
|
30
|
+
/**
|
|
31
|
+
* Create-form values taken from the URL: reference fields of the entity the
|
|
32
|
+
* viewer may set on create, whose value is a record id. Anything else is ignored.
|
|
33
|
+
*
|
|
34
|
+
* @param entity - The entity being created
|
|
35
|
+
* @param params - The current URL's search params
|
|
36
|
+
* @param viewerRole - The viewer's role
|
|
37
|
+
* @returns The prefilled reference values (empty when none)
|
|
38
|
+
*/
|
|
39
|
+
export declare function referencePrefillFromQuery(entity: AnyEntity, params: URLSearchParams, viewerRole: string): Record<string, string>;
|
|
40
|
+
//# sourceMappingURL=entityParent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entityParent.d.ts","sourceRoot":"","sources":["../../../src/crud/components/entityParent.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAYlE;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,SAAS,EACjB,MAAM,EAAE,gBAAgB,GACvB,IAAI,CAWN;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,gBAAgB,GACvB,MAAM,CAGR;AAED;;;;;;;;GAQG;AACH,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,SAAS,EACjB,MAAM,EAAE,eAAe,EACvB,UAAU,EAAE,MAAM,GACjB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAaxB"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
// packages/ui/src/crud/components/entityParent.ts
|
|
2
|
+
import { isFieldEditable } from '../crudImports';
|
|
3
|
+
/** Record id shape accepted from a URL (Firestore ids, UUIDs, slugs). */
|
|
4
|
+
const RECORD_ID = /^[A-Za-z0-9_-]{1,128}$/;
|
|
5
|
+
/** True when `field` is a reference field of `entity`. */
|
|
6
|
+
const isReferenceField = (entity, field) => entity.fields[field]?.type === 'reference' &&
|
|
7
|
+
typeof entity.fields[field]?.validation?.reference === 'string';
|
|
8
|
+
/**
|
|
9
|
+
* Throws when `parent.field` is not a reference field of the listed entity.
|
|
10
|
+
* A wrong parent would silently list nothing.
|
|
11
|
+
*
|
|
12
|
+
* @param entity - The listed (child) entity
|
|
13
|
+
* @param parent - The nested list's parent
|
|
14
|
+
*/
|
|
15
|
+
export function assertEntityParent(entity, parent) {
|
|
16
|
+
if (!isReferenceField(entity, parent.field)) {
|
|
17
|
+
throw new Error(`EntityList: parent.field "${parent.field}" is not a reference field of entity "${entity.name}".`);
|
|
18
|
+
}
|
|
19
|
+
if (!RECORD_ID.test(parent.value)) {
|
|
20
|
+
throw new Error(`EntityList: parent.value "${parent.value}" is not a record id.`);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Create path of a child record with its parent prefilled.
|
|
25
|
+
*
|
|
26
|
+
* @param basePath - The list's base path
|
|
27
|
+
* @param parent - The nested list's parent
|
|
28
|
+
* @returns `${basePath}/new?<field>=<id>`
|
|
29
|
+
*/
|
|
30
|
+
export function childCreatePath(basePath, parent) {
|
|
31
|
+
const query = new URLSearchParams({ [parent.field]: parent.value });
|
|
32
|
+
return `${basePath}/new?${query.toString()}`;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Create-form values taken from the URL: reference fields of the entity the
|
|
36
|
+
* viewer may set on create, whose value is a record id. Anything else is ignored.
|
|
37
|
+
*
|
|
38
|
+
* @param entity - The entity being created
|
|
39
|
+
* @param params - The current URL's search params
|
|
40
|
+
* @param viewerRole - The viewer's role
|
|
41
|
+
* @returns The prefilled reference values (empty when none)
|
|
42
|
+
*/
|
|
43
|
+
export function referencePrefillFromQuery(entity, params, viewerRole) {
|
|
44
|
+
const prefill = {};
|
|
45
|
+
for (const [key, value] of params.entries()) {
|
|
46
|
+
if (Object.hasOwn(entity.fields, key) &&
|
|
47
|
+
isReferenceField(entity, key) &&
|
|
48
|
+
RECORD_ID.test(value) &&
|
|
49
|
+
isFieldEditable(entity.fields[key].editable, viewerRole, 'create')) {
|
|
50
|
+
prefill[key] = value;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
return prefill;
|
|
54
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { AnyEntity } from '@donotdev/core';
|
|
2
|
+
/**
|
|
3
|
+
* Names the shown record in the breadcrumbs: the entity's card title, formatted like
|
|
4
|
+
* the card (the same title `<Seo entity>` uses). Cleared when the page unmounts or the record
|
|
5
|
+
* has no title. Client effect: the server render keeps the URL segment.
|
|
6
|
+
*
|
|
7
|
+
* @param entity - Entity of the record
|
|
8
|
+
* @param record - Loaded record (`undefined` / `null` while loading)
|
|
9
|
+
*/
|
|
10
|
+
export declare function useRecordBreadcrumb(entity: AnyEntity, record: Record<string, unknown> | null | undefined): void;
|
|
11
|
+
//# sourceMappingURL=useRecordBreadcrumb.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useRecordBreadcrumb.d.ts","sourceRoot":"","sources":["../../../src/crud/components/useRecordBreadcrumb.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAGhD;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,SAAS,EACjB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,GAAG,SAAS,GACjD,IAAI,CAaN"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// packages/ui/src/crud/components/useRecordBreadcrumb.ts
|
|
2
|
+
/**
|
|
3
|
+
* @fileoverview Record name in the breadcrumbs
|
|
4
|
+
* @description Publishes the shown record's display name to the layout store, so the
|
|
5
|
+
* breadcrumb segment holding its id (`/products/<uuid>`) reads as the record's name.
|
|
6
|
+
*
|
|
7
|
+
* @version 0.1.0
|
|
8
|
+
* @since 0.2.3
|
|
9
|
+
* @author AMBROISE PARK Consulting
|
|
10
|
+
*/
|
|
11
|
+
import { useEffect } from 'react';
|
|
12
|
+
import { deriveEntitySeo, useLayout, useTranslation } from '@donotdev/core';
|
|
13
|
+
/**
|
|
14
|
+
* Names the shown record in the breadcrumbs: the entity's card title, formatted like
|
|
15
|
+
* the card (the same title `<Seo entity>` uses). Cleared when the page unmounts or the record
|
|
16
|
+
* has no title. Client effect: the server render keeps the URL segment.
|
|
17
|
+
*
|
|
18
|
+
* @param entity - Entity of the record
|
|
19
|
+
* @param record - Loaded record (`undefined` / `null` while loading)
|
|
20
|
+
*/
|
|
21
|
+
export function useRecordBreadcrumb(entity, record) {
|
|
22
|
+
const setRecordLabel = useLayout('setRouteRecordLabel');
|
|
23
|
+
const id = typeof record?.id === 'string' ? record.id : undefined;
|
|
24
|
+
const { t, language } = useTranslation([entity.namespace, 'crud']);
|
|
25
|
+
const label = record
|
|
26
|
+
? deriveEntitySeo(entity, record, { t, locale: language }).title
|
|
27
|
+
: undefined;
|
|
28
|
+
useEffect(() => {
|
|
29
|
+
if (!id || !label)
|
|
30
|
+
return;
|
|
31
|
+
setRecordLabel({ id, label });
|
|
32
|
+
return () => setRecordLabel(null);
|
|
33
|
+
}, [id, label, setRecordLabel]);
|
|
34
|
+
}
|
|
@@ -20,6 +20,7 @@ export declare const useFormStore: import("zustand").UseBoundStore<import("zusta
|
|
|
20
20
|
export declare const useFieldConditions: typeof crudModule.useFieldConditions;
|
|
21
21
|
export declare const useCrud: typeof crudModule.useCrud;
|
|
22
22
|
export declare const useCrudList: typeof crudModule.useCrudList;
|
|
23
|
+
export declare const useCrudDoc: typeof crudModule.useCrudDoc;
|
|
23
24
|
export declare const useCrudCardList: typeof crudModule.useCrudCardList;
|
|
24
25
|
export declare const useEntityFavorites: typeof crudModule.useEntityFavorites;
|
|
25
26
|
export declare const useCrudFilters: typeof crudModule.useCrudFilters;
|
|
@@ -33,4 +34,6 @@ export declare const EntityFilters: typeof crudModule.EntityFilters;
|
|
|
33
34
|
export declare const CrudCard: typeof crudModule.CrudCard;
|
|
34
35
|
export declare const translateFieldLabel: typeof crudModule.translateFieldLabel;
|
|
35
36
|
export declare const formatValue: typeof crudModule.formatValue;
|
|
37
|
+
export declare const translateLabel: typeof crudModule.translateLabel;
|
|
38
|
+
export declare const isFieldEditable: typeof crudModule.isFieldEditable;
|
|
36
39
|
//# sourceMappingURL=crudImports.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"crudImports.d.ts","sourceRoot":"","sources":["../../src/crud/crudImports.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,UAAU,MAAM,gBAAgB,CAAC;AAE7C,0DAA0D;AAC1D,eAAO,MAAM,qBAAqB,SAA4C,CAAC;AAG/E,eAAO,MAAM,aAAa,iCAA4B,CAAC;AACvD,eAAO,MAAM,YAAY,iKAA2B,CAAC;AACrD,eAAO,MAAM,kBAAkB,sCAAiC,CAAC;AACjE,eAAO,MAAM,OAAO,2BAAsB,CAAC;AAC3C,eAAO,MAAM,WAAW,+BAA0B,CAAC;AACnD,eAAO,MAAM,eAAe,mCAA8B,CAAC;AAC3D,eAAO,MAAM,kBAAkB,sCAAiC,CAAC;AACjE,eAAO,MAAM,cAAc,kCAA6B,CAAC;AACzD,eAAO,MAAM,eAAe,mCAA8B,CAAC;AAC3D,eAAO,MAAM,iBAAiB,qCAAgC,CAAC;AAC/D,eAAO,MAAM,oBAAoB,wCAAmC,CAAC;AAGrE,eAAO,MAAM,oBAAoB,wCAAmC,CAAC;AACrE,eAAO,MAAM,iBAAiB,qCAAgC,CAAC;AAC/D,eAAO,MAAM,cAAc,kCAA6B,CAAC;AACzD,eAAO,MAAM,aAAa,iCAA4B,CAAC;AACvD,eAAO,MAAM,QAAQ,4BAAuB,CAAC;AAG7C,eAAO,MAAM,mBAAmB,uCAAkC,CAAC;AACnE,eAAO,MAAM,WAAW,+BAA0B,CAAC"}
|
|
1
|
+
{"version":3,"file":"crudImports.d.ts","sourceRoot":"","sources":["../../src/crud/crudImports.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,UAAU,MAAM,gBAAgB,CAAC;AAE7C,0DAA0D;AAC1D,eAAO,MAAM,qBAAqB,SAA4C,CAAC;AAG/E,eAAO,MAAM,aAAa,iCAA4B,CAAC;AACvD,eAAO,MAAM,YAAY,iKAA2B,CAAC;AACrD,eAAO,MAAM,kBAAkB,sCAAiC,CAAC;AACjE,eAAO,MAAM,OAAO,2BAAsB,CAAC;AAC3C,eAAO,MAAM,WAAW,+BAA0B,CAAC;AACnD,eAAO,MAAM,UAAU,8BAAyB,CAAC;AACjD,eAAO,MAAM,eAAe,mCAA8B,CAAC;AAC3D,eAAO,MAAM,kBAAkB,sCAAiC,CAAC;AACjE,eAAO,MAAM,cAAc,kCAA6B,CAAC;AACzD,eAAO,MAAM,eAAe,mCAA8B,CAAC;AAC3D,eAAO,MAAM,iBAAiB,qCAAgC,CAAC;AAC/D,eAAO,MAAM,oBAAoB,wCAAmC,CAAC;AAGrE,eAAO,MAAM,oBAAoB,wCAAmC,CAAC;AACrE,eAAO,MAAM,iBAAiB,qCAAgC,CAAC;AAC/D,eAAO,MAAM,cAAc,kCAA6B,CAAC;AACzD,eAAO,MAAM,aAAa,iCAA4B,CAAC;AACvD,eAAO,MAAM,QAAQ,4BAAuB,CAAC;AAG7C,eAAO,MAAM,mBAAmB,uCAAkC,CAAC;AACnE,eAAO,MAAM,WAAW,+BAA0B,CAAC;AACnD,eAAO,MAAM,cAAc,kCAA6B,CAAC;AACzD,eAAO,MAAM,eAAe,mCAA8B,CAAC"}
|
package/dist/crud/crudImports.js
CHANGED
|
@@ -22,6 +22,7 @@ export const useFormStore = crudModule?.useFormStore;
|
|
|
22
22
|
export const useFieldConditions = crudModule?.useFieldConditions;
|
|
23
23
|
export const useCrud = crudModule?.useCrud;
|
|
24
24
|
export const useCrudList = crudModule?.useCrudList;
|
|
25
|
+
export const useCrudDoc = crudModule?.useCrudDoc;
|
|
25
26
|
export const useCrudCardList = crudModule?.useCrudCardList;
|
|
26
27
|
export const useEntityFavorites = crudModule?.useEntityFavorites;
|
|
27
28
|
export const useCrudFilters = crudModule?.useCrudFilters;
|
|
@@ -37,3 +38,5 @@ export const CrudCard = crudModule?.CrudCard;
|
|
|
37
38
|
// --- Utils ---
|
|
38
39
|
export const translateFieldLabel = crudModule?.translateFieldLabel;
|
|
39
40
|
export const formatValue = crudModule?.formatValue;
|
|
41
|
+
export const translateLabel = crudModule?.translateLabel;
|
|
42
|
+
export const isFieldEditable = crudModule?.isFieldEditable;
|