@applica-software-guru/react-admin 1.3.143 → 1.3.144
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/components/ra-forms/LongForm/Form.d.ts +1 -0
- package/dist/components/ra-forms/LongForm/Form.d.ts.map +1 -1
- package/dist/components/ra-forms/LongForm/NavMenu.d.ts.map +1 -1
- package/dist/components/ra-forms/LongForm/Provider.d.ts +3 -1
- package/dist/components/ra-forms/LongForm/Provider.d.ts.map +1 -1
- package/dist/components/ra-forms/LongForm/Tab.d.ts +3 -1
- package/dist/components/ra-forms/LongForm/Tab.d.ts.map +1 -1
- package/dist/components/ra-forms/LongForm/index.d.ts +2 -1
- package/dist/components/ra-forms/LongForm/index.d.ts.map +1 -1
- package/dist/components/ra-forms/LongForm/types.d.ts +1 -0
- package/dist/components/ra-forms/LongForm/types.d.ts.map +1 -1
- package/dist/react-admin.cjs.js +56 -56
- package/dist/react-admin.cjs.js.map +1 -1
- package/dist/react-admin.es.js +6764 -6733
- package/dist/react-admin.es.js.map +1 -1
- package/dist/react-admin.umd.js +55 -55
- package/dist/react-admin.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ra-forms/LongForm/Form.tsx +2 -1
- package/src/components/ra-forms/LongForm/NavMenu.tsx +25 -3
- package/src/components/ra-forms/LongForm/Provider.tsx +35 -2
- package/src/components/ra-forms/LongForm/Tab.tsx +39 -7
- package/src/components/ra-forms/LongForm/index.ts +3 -0
- package/src/components/ra-forms/LongForm/types.ts +1 -0
|
@@ -5,6 +5,7 @@ type IFormProps = IProviderProps & IBaseFormProps & {
|
|
|
5
5
|
spacing?: number;
|
|
6
6
|
tabsDisposition: Disposition;
|
|
7
7
|
contentDisposition: Disposition;
|
|
8
|
+
errorCount: boolean;
|
|
8
9
|
};
|
|
9
10
|
declare function Form(props: IFormProps): import("react/jsx-runtime").JSX.Element;
|
|
10
11
|
export { Form };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../../../../../src/components/ra-forms/LongForm/Form.tsx"],"names":[],"mappings":"AACA,OAAO,EAAY,cAAc,EAAE,MAAM,YAAY,CAAC;AACtD,OAAO,EAAE,cAAc,EAAY,MAAM,YAAY,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAMtC,KAAK,UAAU,GAAG,cAAc,GAC9B,cAAc,GAAG;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,WAAW,CAAC;IAC7B,kBAAkB,EAAE,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../../../../../src/components/ra-forms/LongForm/Form.tsx"],"names":[],"mappings":"AACA,OAAO,EAAY,cAAc,EAAE,MAAM,YAAY,CAAC;AACtD,OAAO,EAAE,cAAc,EAAY,MAAM,YAAY,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAMtC,KAAK,UAAU,GAAG,cAAc,GAC9B,cAAc,GAAG;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,WAAW,CAAC;IAC7B,kBAAkB,EAAE,WAAW,CAAC;IAChC,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEJ,iBAAS,IAAI,CAAC,KAAK,EAAE,UAAU,2CAkB9B;AAED,OAAO,EAAE,IAAI,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavMenu.d.ts","sourceRoot":"","sources":["../../../../../src/components/ra-forms/LongForm/NavMenu.tsx"],"names":[],"mappings":";AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"NavMenu.d.ts","sourceRoot":"","sources":["../../../../../src/components/ra-forms/LongForm/NavMenu.tsx"],"names":[],"mappings":";AAEA,OAAO,EAKL,aAAa,EAMd,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAQhC,KAAK,qBAAqB,GAAG,KAAK,CAAC,iBAAiB,CAAC;IACnD,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,cAAc,CAAC,CAAC;CACnD,CAAC,CAAC;AACH,KAAK,iBAAiB,GAAG,KAAK,GAAG,aAAa,GAAG,qBAAqB,CAAC;AAEvE,iBAAS,OAAO,4CAuBf;AAED,iBAAS,WAAW,CAAC,KAAK,EAAE,iBAAiB,2CA4D5C;AAED,iBAAS,cAAc,CACrB,IAAI,EAAE,iBAAiB,GACtB,KAAK,GAAG;IAAE,QAAQ,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,KAAK,CAAC,iBAAiB,CAAC,cAAc,CAAC,CAAC;IAAC,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IAAC,OAAO,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAoCvI;AAED,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -3,15 +3,17 @@ import { IItem } from './types';
|
|
|
3
3
|
type IProviderProps = React.PropsWithChildren<{
|
|
4
4
|
syncWithLocation?: boolean;
|
|
5
5
|
rootMatchString?: string;
|
|
6
|
+
errorCount?: boolean;
|
|
6
7
|
}>;
|
|
7
8
|
declare function Provider(props: IProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
declare function useFormRootPath(): string | undefined;
|
|
9
10
|
declare function useActiveItem(): string | undefined;
|
|
10
11
|
declare function useItems(): Array<IItem>;
|
|
11
12
|
declare function useSyncWithLocation(): boolean;
|
|
13
|
+
declare function useErrorCount(): boolean;
|
|
12
14
|
declare function useSetActiveItem(): (activeItem: string) => void;
|
|
13
15
|
declare function useAddItem(): (item: IItem) => void;
|
|
14
16
|
declare function useRemoveItem(): (item: string | IItem) => void;
|
|
15
|
-
export { Provider, useItems, useSyncWithLocation, useFormRootPath, useActiveItem, useSetActiveItem, useAddItem, useRemoveItem };
|
|
17
|
+
export { Provider, useItems, useSyncWithLocation, useFormRootPath, useActiveItem, useSetActiveItem, useAddItem, useRemoveItem, useErrorCount };
|
|
16
18
|
export type { IProviderProps };
|
|
17
19
|
//# sourceMappingURL=Provider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../../../src/components/ra-forms/LongForm/Provider.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../../../src/components/ra-forms/LongForm/Provider.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAahC,KAAK,cAAc,GAAG,KAAK,CAAC,iBAAiB,CAAC;IAC5C,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC,CAAC;AAyFH,iBAAS,QAAQ,CAAC,KAAK,EAAE,cAAc,2CAsEtC;AAsBD,iBAAS,eAAe,IAAI,MAAM,GAAG,SAAS,CAG7C;AAED,iBAAS,aAAa,IAAI,MAAM,GAAG,SAAS,CAG3C;AAED,iBAAS,QAAQ,IAAI,KAAK,CAAC,KAAK,CAAC,CAGhC;AAED,iBAAS,mBAAmB,IAAI,OAAO,CAGtC;AAED,iBAAS,aAAa,IAAI,OAAO,CAGhC;AAED,iBAAS,gBAAgB,IAAI,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAaxD;AAED,iBAAS,UAAU,IAAI,CAAC,IAAI,EAAE,KAAK,KAAK,IAAI,CAa3C;AAED,iBAAS,aAAa,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,KAAK,KAAK,IAAI,CAavD;AAED,OAAO,EACL,QAAQ,EACR,QAAQ,EACR,mBAAmB,EACnB,eAAe,EACf,aAAa,EACb,gBAAgB,EAChB,UAAU,EACV,aAAa,EACb,aAAa,EACd,CAAC;AACF,YAAY,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Optional } from 'src/types';
|
|
3
3
|
import { IItem } from './types';
|
|
4
|
-
type IBaseItemProps = React.PropsWithChildren<Optional<IItem, 'id' | 'index'
|
|
4
|
+
type IBaseItemProps = React.PropsWithChildren<Optional<IItem, 'id' | 'index'> & {
|
|
5
|
+
sources: Array<string>;
|
|
6
|
+
}>;
|
|
5
7
|
type ITabProps = IBaseItemProps;
|
|
6
8
|
type IGroupProps = IBaseItemProps;
|
|
7
9
|
declare function Group(props: IGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tab.d.ts","sourceRoot":"","sources":["../../../../../src/components/ra-forms/LongForm/Tab.tsx"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"Tab.d.ts","sourceRoot":"","sources":["../../../../../src/components/ra-forms/LongForm/Tab.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA8F,MAAM,OAAO,CAAC;AAEnH,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAKhC,KAAK,cAAc,GAAG,KAAK,CAAC,iBAAiB,CAAC,QAAQ,CAAC,KAAK,EAAE,IAAI,GAAG,OAAO,CAAC,GAAG;IAAE,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;CAAE,CAAC,CAAC;AAC5G,KAAK,SAAS,GAAG,cAAc,CAAC;AAChC,KAAK,WAAW,GAAG,cAAc,CAAC;AA4DlC,iBAAS,KAAK,CAAC,KAAK,EAAE,WAAW,2CAWhC;AAED,iBAAS,GAAG,CAAC,KAAK,EAAE,SAAS,2CAE5B;AAED,iBAAS,mBAAmB,CAAC,KAAK,EAAE,KAAK,CAAC,iBAAiB,GAAG,KAAK,CAAC,KAAK,CAAC,wBAAwB,CAAC,cAAc,CAAC,CAAC,CAYlH;AAED,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,mBAAmB,EAAE,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Form } from './Form';
|
|
2
2
|
import { BaseForm } from './BaseForm';
|
|
3
3
|
import { Content } from './Content';
|
|
4
|
-
import { Provider, useActiveItem, useItems, useSyncWithLocation, useSetActiveItem, useAddItem, useRemoveItem, useFormRootPath } from './Provider';
|
|
4
|
+
import { Provider, useActiveItem, useItems, useSyncWithLocation, useErrorCount, useSetActiveItem, useAddItem, useRemoveItem, useFormRootPath } from './Provider';
|
|
5
5
|
import { Sidebar, SidebarSection, SidebarSectionPosition, useSidebarChildren } from './Sidebar';
|
|
6
6
|
import { NavMenu, NavMenuItem, useNavMenuItem } from './NavMenu';
|
|
7
7
|
import { Tab, Group, useBaseItemChildren } from './Tab';
|
|
@@ -11,6 +11,7 @@ type IForm = typeof Form & {
|
|
|
11
11
|
Provider: typeof Provider;
|
|
12
12
|
useItems: typeof useItems;
|
|
13
13
|
useSyncWithLocation: typeof useSyncWithLocation;
|
|
14
|
+
useErrorCount: typeof useErrorCount;
|
|
14
15
|
useFormRootPath: typeof useFormRootPath;
|
|
15
16
|
useActiveItem: typeof useActiveItem;
|
|
16
17
|
useSetActiveItem: typeof useSetActiveItem;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/ra-forms/LongForm/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EACL,QAAQ,EACR,aAAa,EACb,QAAQ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E,OAAO,WAAW,CAAC;IAChC,cAAc,EAAE,OAAO,cAAc,CAAC;IACtC,GAAG,EAAE,OAAO,GAAG,CAAC;IAChB,KAAK,EAAE,OAAO,KAAK,CAAC;IACpB,mBAAmB,EAAE,OAAO,mBAAmB,CAAC;CACjD,CAAC;AAEF,QAAA,MAAM,WAAW,OAAgB,CAAC;AAuBlC,eAAe,WAAW,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/ra-forms/LongForm/types.ts"],"names":[],"mappings":";AAAA,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,EAAE,CAAC,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,KAAK,KAAK,GAAG;IACX,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,KAAK,CAAC,EAAE;QACN,OAAO,EAAE,MAAM,GAAG,MAAM,CAAC;QACzB,KAAK,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,SAAS,CAAC;KACxF,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/ra-forms/LongForm/types.ts"],"names":[],"mappings":";AAAA,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,EAAE,CAAC,EAAE,MAAM,CAAC;CACb,CAAC;AA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