identity-admin-ui 1.12.25 → 1.12.26
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/lib/cjs/index.js +1 -1
- package/lib/cjs/types/helpers/CrudHelper/Show/IdentityShowProps.d.ts +7 -0
- package/lib/cjs/types/helpers/CrudHelper/Show/ShowRecordProps.d.ts +4 -0
- package/lib/cjs/types/pages/IdentityEditPage.d.ts +4 -0
- package/lib/cjs/types/sections/dashboard/NewEditForm.d.ts +6 -1
- package/lib/cjs/types/sections/dashboard/ShowRecord.d.ts +1 -1
- package/lib/esm/index.js +1 -1
- package/lib/esm/types/helpers/CrudHelper/Show/IdentityShowProps.d.ts +7 -0
- package/lib/esm/types/helpers/CrudHelper/Show/ShowRecordProps.d.ts +4 -0
- package/lib/esm/types/pages/IdentityEditPage.d.ts +4 -0
- package/lib/esm/types/sections/dashboard/NewEditForm.d.ts +6 -1
- package/lib/esm/types/sections/dashboard/ShowRecord.d.ts +1 -1
- package/lib/index.d.ts +15 -1
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { ResourcePaths } from "../../../context/PathsContext";
|
|
2
3
|
/**
|
|
3
4
|
* Props for the IdentityShow component, providing information
|
|
@@ -22,4 +23,10 @@ export interface IdentityShowProps {
|
|
|
22
23
|
* The path to the specific resource being shown.
|
|
23
24
|
*/
|
|
24
25
|
path: any;
|
|
26
|
+
/**
|
|
27
|
+
* Fields map for custom fields view;
|
|
28
|
+
*/
|
|
29
|
+
fieldsMap?: Record<string, (props: {
|
|
30
|
+
record: any;
|
|
31
|
+
}) => JSX.Element>;
|
|
25
32
|
}
|
|
@@ -69,4 +69,8 @@ export interface ShowRecordProps extends INextpreviousExtras {
|
|
|
69
69
|
* An optional flag to disable fetching the record.
|
|
70
70
|
*/
|
|
71
71
|
disableFetchRecord?: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Fields map for custom fields view;
|
|
74
|
+
*/
|
|
75
|
+
fieldsMap?: Record<string, (record: any) => JSX.Element>;
|
|
72
76
|
}
|
|
@@ -23,5 +23,9 @@ export interface ICreateEdit extends INextpreviousExtras {
|
|
|
23
23
|
defaultFilters?: string | undefined;
|
|
24
24
|
showFilterChips?: boolean;
|
|
25
25
|
hideHeaderBreadcrumbs?: boolean;
|
|
26
|
+
fieldsMap?: Record<string, (props: {
|
|
27
|
+
name: string;
|
|
28
|
+
record?: any;
|
|
29
|
+
}) => JSX.Element>;
|
|
26
30
|
}
|
|
27
31
|
export default function CreateEdit(props: ICreateEdit): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export interface INewEditFormProps {
|
|
2
3
|
isEdit: boolean;
|
|
3
4
|
isDuplicate?: boolean;
|
|
@@ -13,5 +14,9 @@ export interface INewEditFormProps {
|
|
|
13
14
|
afterCreateSnackText?: (recordName: string) => string;
|
|
14
15
|
enableCreateNewButtonOnReference?: boolean;
|
|
15
16
|
keepFullWidthElements?: boolean;
|
|
17
|
+
fieldsMap?: Record<string, (props: {
|
|
18
|
+
name: string;
|
|
19
|
+
record?: any;
|
|
20
|
+
}) => JSX.Element>;
|
|
16
21
|
}
|
|
17
|
-
export default function NewEditForm({ isEdit, isDuplicate, id, record, path, mediaUploaderFields, onSubmitForm, referencedMap, modelRoute, redirectPath, afterCreateSnackText, afterEditSnackText, enableCreateNewButtonOnReference, keepFullWidthElements, }: INewEditFormProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export default function NewEditForm({ isEdit, isDuplicate, id, record, path, mediaUploaderFields, onSubmitForm, referencedMap, modelRoute, redirectPath, afterCreateSnackText, afterEditSnackText, enableCreateNewButtonOnReference, keepFullWidthElements, fieldsMap }: INewEditFormProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -12,4 +12,4 @@ import { IdentityShowProps } from '../../helpers/CrudHelper/Show/IdentityShowPro
|
|
|
12
12
|
* <IdentityShow record={record} path="userPath" userPath="userDetails" />
|
|
13
13
|
* ```
|
|
14
14
|
*/
|
|
15
|
-
export default function IdentityShow({ record, path, userPath }: IdentityShowProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export default function IdentityShow({ record, path, userPath, fieldsMap }: IdentityShowProps): import("react/jsx-runtime").JSX.Element;
|
package/lib/index.d.ts
CHANGED
|
@@ -738,6 +738,10 @@ interface ShowRecordProps extends INextpreviousExtras {
|
|
|
738
738
|
* An optional flag to disable fetching the record.
|
|
739
739
|
*/
|
|
740
740
|
disableFetchRecord?: boolean;
|
|
741
|
+
/**
|
|
742
|
+
* Fields map for custom fields view;
|
|
743
|
+
*/
|
|
744
|
+
fieldsMap?: Record<string, (record: any) => JSX.Element>;
|
|
741
745
|
}
|
|
742
746
|
|
|
743
747
|
/**
|
|
@@ -782,6 +786,10 @@ interface ICreateEdit extends INextpreviousExtras {
|
|
|
782
786
|
defaultFilters?: string | undefined;
|
|
783
787
|
showFilterChips?: boolean;
|
|
784
788
|
hideHeaderBreadcrumbs?: boolean;
|
|
789
|
+
fieldsMap?: Record<string, (props: {
|
|
790
|
+
name: string;
|
|
791
|
+
record?: any;
|
|
792
|
+
}) => JSX.Element>;
|
|
785
793
|
}
|
|
786
794
|
declare function CreateEdit(props: ICreateEdit): react_jsx_runtime.JSX.Element;
|
|
787
795
|
|
|
@@ -1059,6 +1067,12 @@ interface IdentityShowProps {
|
|
|
1059
1067
|
* The path to the specific resource being shown.
|
|
1060
1068
|
*/
|
|
1061
1069
|
path: any;
|
|
1070
|
+
/**
|
|
1071
|
+
* Fields map for custom fields view;
|
|
1072
|
+
*/
|
|
1073
|
+
fieldsMap?: Record<string, (props: {
|
|
1074
|
+
record: any;
|
|
1075
|
+
}) => JSX.Element>;
|
|
1062
1076
|
}
|
|
1063
1077
|
|
|
1064
1078
|
/**
|
|
@@ -1074,7 +1088,7 @@ interface IdentityShowProps {
|
|
|
1074
1088
|
* <IdentityShow record={record} path="userPath" userPath="userDetails" />
|
|
1075
1089
|
* ```
|
|
1076
1090
|
*/
|
|
1077
|
-
declare function IdentityShow({ record, path, userPath }: IdentityShowProps): react_jsx_runtime.JSX.Element;
|
|
1091
|
+
declare function IdentityShow({ record, path, userPath, fieldsMap }: IdentityShowProps): react_jsx_runtime.JSX.Element;
|
|
1078
1092
|
|
|
1079
1093
|
/**
|
|
1080
1094
|
* DumpServiceActionProps type for Dump service action
|