identity-admin-ui 1.5.12 → 1.5.14

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 (30) hide show
  1. package/lib/cjs/index.js +12 -12
  2. package/lib/cjs/types/components/dataGrid/DataGridd.d.ts +6 -0
  3. package/lib/cjs/types/components/dataGrid/GridSelectionActions.d.ts +3 -1
  4. package/lib/cjs/types/components/dataGrid/GridTypes.d.ts +2 -0
  5. package/lib/cjs/types/components/dataGrid/GridUIUtils.d.ts +2 -1
  6. package/lib/cjs/types/components/dataGrid/GridUtils.d.ts +2 -1
  7. package/lib/cjs/types/helpers/StringUtils.d.ts +5 -0
  8. package/lib/cjs/types/pages/IdentityEditPage.d.ts +2 -0
  9. package/lib/cjs/types/pages/IdentityModelConfigurationPage.d.ts +5 -0
  10. package/lib/cjs/types/pages/index.d.ts +3 -2
  11. package/lib/cjs/types/sections/dashboard/ModelConfiguration/ActionsSection.d.ts +7 -0
  12. package/lib/cjs/types/sections/dashboard/ModelConfiguration/ModelConfigurationEditForm.d.ts +12 -0
  13. package/lib/cjs/types/sections/dashboard/NewEditForm.d.ts +5 -4
  14. package/lib/cjs/types/utils/HelperFunctions.d.ts +2 -0
  15. package/lib/esm/index.js +12 -12
  16. package/lib/esm/types/components/dataGrid/DataGridd.d.ts +6 -0
  17. package/lib/esm/types/components/dataGrid/GridSelectionActions.d.ts +3 -1
  18. package/lib/esm/types/components/dataGrid/GridTypes.d.ts +2 -0
  19. package/lib/esm/types/components/dataGrid/GridUIUtils.d.ts +2 -1
  20. package/lib/esm/types/components/dataGrid/GridUtils.d.ts +2 -1
  21. package/lib/esm/types/helpers/StringUtils.d.ts +5 -0
  22. package/lib/esm/types/pages/IdentityEditPage.d.ts +2 -0
  23. package/lib/esm/types/pages/IdentityModelConfigurationPage.d.ts +5 -0
  24. package/lib/esm/types/pages/index.d.ts +3 -2
  25. package/lib/esm/types/sections/dashboard/ModelConfiguration/ActionsSection.d.ts +7 -0
  26. package/lib/esm/types/sections/dashboard/ModelConfiguration/ModelConfigurationEditForm.d.ts +12 -0
  27. package/lib/esm/types/sections/dashboard/NewEditForm.d.ts +5 -4
  28. package/lib/esm/types/utils/HelperFunctions.d.ts +2 -0
  29. package/lib/index.d.ts +19 -5
  30. package/package.json +1 -1
@@ -3,6 +3,12 @@ import { ParamsState } from './GridTypes';
3
3
  import { IBulkActionsDialogState } from '../BulkActions/BulkActionDialogs';
4
4
  export interface IGridExtras {
5
5
  noRowsText?: string;
6
+ bulkDeleteText?: string;
7
+ afterDeleteSnackBarText?: string;
8
+ afterBulkDeleteSnackBarText?: string;
9
+ itemsSelectedText?: string;
10
+ cancelText?: string;
11
+ confirmText?: string;
6
12
  }
7
13
  export interface GridProps {
8
14
  resources: any;
@@ -1,12 +1,14 @@
1
1
  /// <reference types="react" />
2
2
  import { SxProps, Theme } from '@mui/material';
3
+ import { IGridExtras } from './DataGridd';
3
4
  type Props = {
4
5
  action?: React.ReactNode;
5
6
  numSelected: number;
6
7
  rowCount: number;
7
8
  selected?: string[];
8
9
  onSelectAllItems?: (checked: boolean) => void;
10
+ extras?: IGridExtras;
9
11
  sx?: SxProps<Theme>;
10
12
  };
11
- export default function GridSelectionAction({ action, selected, rowCount, numSelected, onSelectAllItems, sx, ...other }: Props): import("react/jsx-runtime").JSX.Element;
13
+ export default function GridSelectionAction({ action, selected, rowCount, numSelected, extras, onSelectAllItems, sx, ...other }: Props): import("react/jsx-runtime").JSX.Element;
12
14
  export {};
@@ -1,5 +1,6 @@
1
1
  import { GridSortDirection } from "@mui/x-data-grid";
2
2
  import { Dispatch, SetStateAction } from "react";
3
+ import { IGridExtras } from "./DataGridd";
3
4
  export interface ListProps {
4
5
  value: string;
5
6
  key: string;
@@ -53,4 +54,5 @@ export interface GridDialogProps {
53
54
  onConfirm?: (data?: any) => void;
54
55
  message?: string;
55
56
  action?: () => Promise<any>;
57
+ extras?: IGridExtras;
56
58
  }
@@ -2,10 +2,11 @@
2
2
  import { GridRenderCellParams, GridRowSelectionModel } from '@mui/x-data-grid';
3
3
  import { DialogState, ListProps, ParamsState } from './GridTypes';
4
4
  import { IBulkActionsDialogState } from '../BulkActions/BulkActionDialogs';
5
+ import { IGridExtras } from './DataGridd';
5
6
  export declare function handleExtraActionNavigation(data: any, userPath: {
6
7
  [key: string]: any;
7
8
  }): any;
8
- export declare function ActionKababMenu(resources: any, params: GridRenderCellParams, resourceName: string, dialogState: DialogState, [gridParams, setParams]: ParamsState): import("react/jsx-runtime").JSX.Element;
9
+ export declare function ActionKababMenu(resources: any, params: GridRenderCellParams, resourceName: string, dialogState: DialogState, [gridParams, setParams]: ParamsState, extras?: IGridExtras): import("react/jsx-runtime").JSX.Element;
9
10
  export declare function getFieldType(model: string, property: ListProps, cellParams: GridRenderCellParams, resources: any, userPath: {
10
11
  [key: string]: any;
11
12
  }): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,6 @@
1
1
  import { GridColDef, GridSortModel } from '@mui/x-data-grid';
2
2
  import { PageInfo, ListParams, ParamsState, PageState, PageInfoState, GridMode, DialogState, ListProps } from './GridTypes';
3
+ import { IGridExtras } from './DataGridd';
3
4
  export declare const rowsPerPageOptions: number[];
4
5
  export declare const initialPageInfoState: PageInfo;
5
6
  export declare const initialQueryParams: ListParams;
@@ -13,4 +14,4 @@ export declare function setGridMode(mode: GridMode): {
13
14
  };
14
15
  export declare function createColumns(listProperties: ListProps[], resources: any, resourceName: string, dialogState: DialogState, gridState: ParamsState, userPath: {
15
16
  [key: string]: any;
16
- }, baseApiRoute: string, isDesktop?: boolean): GridColDef[];
17
+ }, baseApiRoute: string, isDesktop?: boolean, extras?: IGridExtras): GridColDef[];
@@ -0,0 +1,5 @@
1
+ export default class StringUtils {
2
+ static convertCamelCaseToWord(camelCaseWord: string): string;
3
+ static lowerCaseFirstLetter(word: string): string;
4
+ static upperCaseFirstLetter(word: string): string;
5
+ }
@@ -5,6 +5,8 @@ export interface ICreateEdit {
5
5
  key?: string;
6
6
  path: string;
7
7
  removeHeaderBreadcrumbs?: boolean;
8
+ afterEditSnackText?: (recordName: string) => string;
9
+ afterCreateSnackText?: (recordName: string) => string;
8
10
  onSubmitForm?: () => void;
9
11
  Component?: (props: any) => JSX.Element;
10
12
  Actions?: (props: any) => JSX.Element;
@@ -0,0 +1,5 @@
1
+ export type IdentityModelConfigurationPageProps = {
2
+ path: string;
3
+ modelRoute: string;
4
+ };
5
+ export default function IdentityModelConfigurationPage({ path, modelRoute }: IdentityModelConfigurationPageProps): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,6 @@
1
- export * from "./IdentityPage";
2
- export * from "./IdentityPage.types";
1
+ export * from './IdentityPage';
2
+ export * from './IdentityPage.types';
3
3
  export { default as IdentityList } from './IdentityListPage';
4
4
  export { default as IdentityShow } from './IdentityShowPage';
5
5
  export { default as IdentityEdit } from './IdentityEditPage';
6
+ export { default as IdenityModelConfiguration } from './IdentityModelConfigurationPage';
@@ -0,0 +1,7 @@
1
+ export interface IActionField {
2
+ getValues: any;
3
+ size: any;
4
+ checked: any;
5
+ handleChange: (event: any, key: string) => void;
6
+ }
7
+ export declare function ActionSection({ getValues, checked, size, handleChange }: IActionField): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,12 @@
1
+ import { INewEditFormProps } from '../NewEditForm';
2
+ export interface IModelConfigurationFormProps extends INewEditFormProps {
3
+ isEdit: boolean;
4
+ record?: any;
5
+ path: string;
6
+ baseApiRoute: string;
7
+ resources: any;
8
+ mediaUploaderFields?: string[];
9
+ apiRoute: string;
10
+ onSubmitForm?: any;
11
+ }
12
+ export default function ModelConfigurationForm({ isEdit, record, path, apiRoute, resources, afterEditSnackText }: IModelConfigurationFormProps): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- type Props = {
1
+ export interface INewEditFormProps {
2
2
  isEdit: boolean;
3
3
  id?: string;
4
4
  record?: any;
@@ -8,6 +8,7 @@ type Props = {
8
8
  referencedMap?: any;
9
9
  modelRoute: string;
10
10
  redirectPath?: (record: any) => string;
11
- };
12
- export default function NewEditForm({ isEdit, id, record, path, mediaUploaderFields, onSubmitForm, referencedMap, modelRoute, redirectPath }: Props): import("react/jsx-runtime").JSX.Element;
13
- export {};
11
+ afterEditSnackText?: (recordName: string) => string;
12
+ afterCreateSnackText?: (recordName: string) => string;
13
+ }
14
+ export default function NewEditForm({ isEdit, id, record, path, mediaUploaderFields, onSubmitForm, referencedMap, modelRoute, redirectPath, afterCreateSnackText, afterEditSnackText, }: INewEditFormProps): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import dayjs, { Dayjs } from 'dayjs';
3
3
  import { AlertColor } from '@mui/material';
4
+ import IResource from '../context/Resource';
4
5
  export interface ISubmitProps {
5
6
  name: string;
6
7
  route: string;
@@ -40,5 +41,6 @@ export declare class HelperMethods {
40
41
  static checkLocalizedString(resources: any, path: string, field: string): boolean;
41
42
  static stringifyTime(time: Dayjs | null): string | undefined;
42
43
  static convertToOriginal(time: string): dayjs.Dayjs;
44
+ static getRecordName(titleData: any, title: string, resource: IResource): any;
43
45
  }
44
46
  export {};