identity-admin-ui 1.12.25 → 1.12.27

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.
Files changed (28) hide show
  1. package/lib/cjs/index.css +20 -20
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/types/actions/DumpServiceAction.d.ts +1 -1
  4. package/lib/cjs/types/actions/types.d.ts +4 -0
  5. package/lib/cjs/types/components/editor/toolbar.d.ts +7 -7
  6. package/lib/cjs/types/helpers/CrudHelper/Show/IdentityShowProps.d.ts +7 -0
  7. package/lib/cjs/types/helpers/CrudHelper/Show/ShowRecordProps.d.ts +4 -0
  8. package/lib/cjs/types/layout/dashboard/config-navigation.d.ts +4 -4
  9. package/lib/cjs/types/pages/IdentityEditPage.d.ts +4 -0
  10. package/lib/cjs/types/routes/AdminRouter.d.ts +10 -10
  11. package/lib/cjs/types/routes/paths.d.ts +5 -5
  12. package/lib/cjs/types/sections/dashboard/NewEditForm.d.ts +6 -1
  13. package/lib/cjs/types/sections/dashboard/ShowRecord.d.ts +1 -1
  14. package/lib/esm/index.css +20 -20
  15. package/lib/esm/index.js +1 -1
  16. package/lib/esm/types/actions/DumpServiceAction.d.ts +1 -1
  17. package/lib/esm/types/actions/types.d.ts +4 -0
  18. package/lib/esm/types/components/editor/toolbar.d.ts +7 -7
  19. package/lib/esm/types/helpers/CrudHelper/Show/IdentityShowProps.d.ts +7 -0
  20. package/lib/esm/types/helpers/CrudHelper/Show/ShowRecordProps.d.ts +4 -0
  21. package/lib/esm/types/layout/dashboard/config-navigation.d.ts +4 -4
  22. package/lib/esm/types/pages/IdentityEditPage.d.ts +4 -0
  23. package/lib/esm/types/routes/AdminRouter.d.ts +10 -10
  24. package/lib/esm/types/routes/paths.d.ts +5 -5
  25. package/lib/esm/types/sections/dashboard/NewEditForm.d.ts +6 -1
  26. package/lib/esm/types/sections/dashboard/ShowRecord.d.ts +1 -1
  27. package/lib/index.d.ts +20 -2
  28. package/package.json +95 -95
@@ -3,4 +3,4 @@ import { DumpServiceActionProps } from './types';
3
3
  * DumpServiceAction: is a button with custom dialog where to unselect the model where didn't meant to be included in the dump
4
4
  * @param DumpServiceActionProps
5
5
  */
6
- export default function DumpServiceAction({ baseUrl }: DumpServiceActionProps): import("react/jsx-runtime").JSX.Element;
6
+ export default function DumpServiceAction({ baseUrl, buttonText }: DumpServiceActionProps): import("react/jsx-runtime").JSX.Element;
@@ -6,4 +6,8 @@ export interface DumpServiceActionProps {
6
6
  * @param baseUrl is the base url for dump service where deployed ex: http:localhost:3000/api
7
7
  */
8
8
  baseUrl: string;
9
+ /**
10
+ * @param buttonText is the the text for the dump button default=Restore Database
11
+ */
12
+ buttonText?: string;
9
13
  }
@@ -1,7 +1,7 @@
1
- export declare const formats: string[];
2
- type EditorToolbarProps = {
3
- id: string;
4
- isSimple?: boolean;
5
- };
6
- export default function Toolbar({ id, isSimple, ...other }: EditorToolbarProps): import("react/jsx-runtime").JSX.Element;
7
- export {};
1
+ export declare const formats: string[];
2
+ type EditorToolbarProps = {
3
+ id: string;
4
+ isSimple?: boolean;
5
+ };
6
+ export default function Toolbar({ id, isSimple, ...other }: EditorToolbarProps): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -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
  }
@@ -1,4 +1,4 @@
1
- export declare function useNavData(): {
2
- subheader: string;
3
- items: any;
4
- }[];
1
+ export declare function useNavData(): {
2
+ subheader: string;
3
+ items: any;
4
+ }[];
@@ -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,10 +1,10 @@
1
- import { SizeType } from '../helpers/Types';
2
- export declare var SIZE: SizeType;
3
- export default function AdminRouter(): {
4
- path: any;
5
- children: {
6
- path: string;
7
- element: import("react/jsx-runtime").JSX.Element;
8
- children: any[];
9
- }[];
10
- };
1
+ import { SizeType } from '../helpers/Types';
2
+ export declare var SIZE: SizeType;
3
+ export default function AdminRouter(): {
4
+ path: any;
5
+ children: {
6
+ path: string;
7
+ element: import("react/jsx-runtime").JSX.Element;
8
+ children: any[];
9
+ }[];
10
+ };
@@ -1,5 +1,5 @@
1
- export declare function path(root: string, sublink: string): string;
2
- export declare const ADMIN_ROOT = "/admin";
3
- export declare var ADMIN_PATH: {
4
- [key: string]: any;
5
- };
1
+ export declare function path(root: string, sublink: string): string;
2
+ export declare const ADMIN_ROOT = "/admin";
3
+ export declare var ADMIN_PATH: {
4
+ [key: string]: any;
5
+ };
@@ -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/esm/index.css CHANGED
@@ -1,23 +1,3 @@
1
- .editor {
2
- padding-left: 20px;
3
- padding-right: 20px;
4
- min-height: 120px;
5
- max-height: 350px;
6
- overflow: auto;
7
- }
8
- .toolBar {
9
- border-style: solid;
10
- border-width: 0.1px;
11
- border-radius: 10px;
12
- border-color: lightgray;
13
- }
14
- .wrapper {
15
- border-style: solid;
16
- border-width: 0.1px;
17
- border-radius: 10px;
18
- border-color: lightgray;
19
- }
20
-
21
1
  /*!
22
2
  Theme: Tomorrow Night
23
3
  Author: Chris Kempson (http://chriskempson.com)
@@ -25,6 +5,26 @@
25
5
  Maintainer: @highlightjs/core-team
26
6
  Version: 2021.09.0
27
7
  */pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{color:#ccc;background:#2d2d2d}.hljs ::selection,.hljs::selection{background-color:#515151;color:#ccc}.hljs-comment{color:#999}.hljs-tag{color:#b4b7b4}.hljs-operator,.hljs-punctuation,.hljs-subst{color:#ccc}.hljs-operator{opacity:.7}.hljs-bullet,.hljs-deletion,.hljs-name,.hljs-selector-tag,.hljs-template-variable,.hljs-variable{color:#f2777a}.hljs-attr,.hljs-link,.hljs-literal,.hljs-number,.hljs-symbol,.hljs-variable.constant_{color:#f99157}.hljs-class .hljs-title,.hljs-title,.hljs-title.class_{color:#fc6}.hljs-strong{font-weight:700;color:#fc6}.hljs-addition,.hljs-code,.hljs-string,.hljs-title.class_.inherited__{color:#9c9}.hljs-built_in,.hljs-doctag,.hljs-keyword.hljs-atrule,.hljs-quote,.hljs-regexp{color:#6cc}.hljs-attribute,.hljs-function .hljs-title,.hljs-section,.hljs-title.function_,.ruby .hljs-property{color:#69c}.diff .hljs-meta,.hljs-keyword,.hljs-template-tag,.hljs-type{color:#c9c}.hljs-emphasis{color:#c9c;font-style:italic}.hljs-meta,.hljs-meta .hljs-keyword,.hljs-meta .hljs-string{color:#a3685a}.hljs-meta .hljs-keyword,.hljs-meta-keyword{font-weight:700}
8
+ .editor {
9
+ padding-left: 20px;
10
+ padding-right: 20px;
11
+ min-height: 120px;
12
+ max-height: 350px;
13
+ overflow: auto;
14
+ }
15
+ .toolBar {
16
+ border-style: solid;
17
+ border-width: 0.1px;
18
+ border-radius: 10px;
19
+ border-color: lightgray;
20
+ }
21
+ .wrapper {
22
+ border-style: solid;
23
+ border-width: 0.1px;
24
+ border-radius: 10px;
25
+ border-color: lightgray;
26
+ }
27
+
28
28
  /*!
29
29
  * Quill Editor v1.3.7
30
30
  * https://quilljs.com/