identity-admin-ui 1.7.11 → 1.7.13

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.
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { GridRenderCellParams } from '@mui/x-data-grid';
2
+ import { GridDensity, GridRenderCellParams } from '@mui/x-data-grid';
3
3
  import { ParamsState, ListProps } from './GridTypes';
4
4
  import { IBulkActionsDialogState } from '../BulkActions/BulkActionDialogs';
5
5
  import { IOptionalResource } from '../../context';
@@ -19,6 +19,7 @@ export interface IGridExtras {
19
19
  hideActions?: boolean;
20
20
  hideToolbar?: boolean;
21
21
  overridenResource?: (resource: IResource) => IOptionalResource;
22
+ density?: GridDensity;
22
23
  }
23
24
  export interface GridProps {
24
25
  resources: any;
@@ -1,10 +1,12 @@
1
- import { GridSortDirection } from "@mui/x-data-grid";
1
+ import { GridCellParams, GridSortDirection } from "@mui/x-data-grid";
2
2
  import { Dispatch, SetStateAction } from "react";
3
3
  import { IGridExtras } from "./DataGridd";
4
4
  export interface ListProps {
5
5
  value: string;
6
6
  key: string;
7
7
  path: string;
8
+ renderCell?: (params: GridCellParams) => JSX.Element;
9
+ flex?: number;
8
10
  }
9
11
  export declare enum FieldTypes {
10
12
  STRING = "String",
@@ -1,3 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { GridCellParams } from '@mui/x-data-grid';
1
3
  import { ActionTypes, FieldTypes } from '../helpers/EnumHelper';
2
4
  import { FileTypes } from '../helpers/Types';
3
5
  export default interface IResource {
@@ -20,6 +22,7 @@ export interface IProperty {
20
22
  key: string;
21
23
  value: string;
22
24
  path?: string;
25
+ renderCell?: (params: GridCellParams) => JSX.Element;
23
26
  }
24
27
  export interface IMainProperty {
25
28
  title: string;
@@ -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
+ }[];
@@ -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
+ };
package/lib/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  import * as react_jsx_runtime from 'react/jsx-runtime';
3
3
  import * as react from 'react';
4
4
  import { ReactElement, ReactNode, Dispatch, SetStateAction } from 'react';
5
- import { GridRenderCellParams, GridSortDirection, GridRowSelectionModel } from '@mui/x-data-grid';
5
+ import { GridCellParams, GridRenderCellParams, GridDensity, GridSortDirection, GridRowSelectionModel } from '@mui/x-data-grid';
6
6
  import * as axios from 'axios';
7
7
  import { AxiosRequestConfig } from 'axios';
8
8
  import * as _mui_material from '@mui/material';
@@ -137,6 +137,7 @@ interface IProperty {
137
137
  key: string;
138
138
  value: string;
139
139
  path?: string;
140
+ renderCell?: (params: GridCellParams) => JSX.Element;
140
141
  }
141
142
  interface IMainProperty {
142
143
  title: string;
@@ -356,6 +357,7 @@ interface IGridExtras {
356
357
  hideActions?: boolean;
357
358
  hideToolbar?: boolean;
358
359
  overridenResource?: (resource: IResource) => IOptionalResource;
360
+ density?: GridDensity;
359
361
  }
360
362
  interface GridProps {
361
363
  resources: any;
@@ -375,6 +377,8 @@ interface ListProps {
375
377
  value: string;
376
378
  key: string;
377
379
  path: string;
380
+ renderCell?: (params: GridCellParams) => JSX.Element;
381
+ flex?: number;
378
382
  }
379
383
  interface ListParams {
380
384
  page: number;
package/package.json CHANGED
@@ -1,78 +1,78 @@
1
- {
2
- "name": "identity-admin-ui",
3
- "version": "1.7.11",
4
- "description": "Identity solutions UI package using for identity-admin dashboard",
5
- "main": "lib/cjs/index.js",
6
- "module": "lib/esm/index.js",
7
- "files": [
8
- "lib/**/*"
9
- ],
10
- "types": "lib/index.d.ts",
11
- "scripts": {
12
- "build": "rollup -c --bundleConfigAsCjs",
13
- "test": "echo \"Error: no test specified\" && exit 1"
14
- },
15
- "author": "",
16
- "license": "ISC",
17
- "devDependencies": {
18
- "@emotion/cache": "^11.11.0",
19
- "@emotion/react": "^11.11.1",
20
- "@emotion/styled": "^11.11.0",
21
- "@hookform/resolvers": "^3.2.0",
22
- "@iconify/react": "^4.1.0",
23
- "@mui/icons-material": "^5.14.3",
24
- "@mui/lab": "^5.0.0-alpha.139",
25
- "@mui/material": "^5.14.5",
26
- "@mui/x-data-grid": "^6.11.1",
27
- "@mui/x-date-pickers": "^6.11.1",
28
- "@rollup/plugin-commonjs": "^25.0.3",
29
- "@rollup/plugin-node-resolve": "^15.1.0",
30
- "@rollup/plugin-typescript": "^11.1.2",
31
- "@types/autosuggest-highlight": "^3.2.0",
32
- "@types/axios": "^0.14.0",
33
- "@types/nprogress": "^0.2.0",
34
- "@types/numeral": "^2.0.2",
35
- "@types/react": "^18.2.20",
36
- "@types/react-beautiful-dnd": "^13.1.4",
37
- "@types/react-helmet-async": "^1.0.3",
38
- "@types/react-lazy-load-image-component": "^1.5.3",
39
- "@types/stylis": "^4.2.0",
40
- "autosuggest-highlight": "^3.3.4",
41
- "aws-amplify": "^5.3.8",
42
- "axios": "^1.4.0",
43
- "compressorjs": "^1.2.1",
44
- "date-fns": "^2.30.0",
45
- "dayjs": "^1.11.9",
46
- "framer-motion": "^10.15.0",
47
- "highlight.js": "^11.8.0",
48
- "material-ui-phone-number": "^3.0.0",
49
- "notistack": "^3.0.1",
50
- "nprogress": "^0.2.0",
51
- "numeral": "^2.0.6",
52
- "pluralize": "^8.0.0",
53
- "react": "^18.2.0",
54
- "react-beautiful-dnd": "^13.1.1",
55
- "react-dropzone": "^14.2.3",
56
- "react-helmet-async": "^1.3.0",
57
- "react-hook-form": "^7.45.4",
58
- "react-lazy-load-image-component": "^1.6.0",
59
- "react-router-dom": "^6.14.2",
60
- "rollup": "^3.27.0",
61
- "rollup-plugin-css-bundle": "^1.0.4",
62
- "rollup-plugin-dts": "^5.3.1",
63
- "rollup-plugin-peer-deps-external": "^2.2.4",
64
- "rollup-plugin-postcss": "^4.0.2",
65
- "rollup-plugin-postcss-modules": "^2.1.1",
66
- "rollup-plugin-preserve-directives": "^0.2.0",
67
- "rollup-plugin-terser": "^7.0.2",
68
- "simplebar-react": "^3.2.4",
69
- "stylis": "^4.3.0",
70
- "stylis-plugin-rtl": "^2.1.1",
71
- "tslib": "^2.6.1",
72
- "typescript": "^5.1.6",
73
- "yup": "^1.2.0"
74
- },
75
- "dependencies": {
76
- "react-quill": "^2.0.0"
77
- }
78
- }
1
+ {
2
+ "name": "identity-admin-ui",
3
+ "version": "1.7.13",
4
+ "description": "Identity solutions UI package using for identity-admin dashboard",
5
+ "main": "lib/cjs/index.js",
6
+ "module": "lib/esm/index.js",
7
+ "files": [
8
+ "lib/**/*"
9
+ ],
10
+ "types": "lib/index.d.ts",
11
+ "scripts": {
12
+ "build": "rollup -c --bundleConfigAsCjs",
13
+ "test": "echo \"Error: no test specified\" && exit 1"
14
+ },
15
+ "author": "",
16
+ "license": "ISC",
17
+ "devDependencies": {
18
+ "@emotion/cache": "^11.11.0",
19
+ "@emotion/react": "^11.11.1",
20
+ "@emotion/styled": "^11.11.0",
21
+ "@hookform/resolvers": "^3.2.0",
22
+ "@iconify/react": "^4.1.0",
23
+ "@mui/icons-material": "^5.14.3",
24
+ "@mui/lab": "^5.0.0-alpha.139",
25
+ "@mui/material": "^5.14.5",
26
+ "@mui/x-data-grid": "^6.11.1",
27
+ "@mui/x-date-pickers": "^6.11.1",
28
+ "@rollup/plugin-commonjs": "^25.0.3",
29
+ "@rollup/plugin-node-resolve": "^15.1.0",
30
+ "@rollup/plugin-typescript": "^11.1.2",
31
+ "@types/autosuggest-highlight": "^3.2.0",
32
+ "@types/axios": "^0.14.0",
33
+ "@types/nprogress": "^0.2.0",
34
+ "@types/numeral": "^2.0.2",
35
+ "@types/react": "^18.2.20",
36
+ "@types/react-beautiful-dnd": "^13.1.4",
37
+ "@types/react-helmet-async": "^1.0.3",
38
+ "@types/react-lazy-load-image-component": "^1.5.3",
39
+ "@types/stylis": "^4.2.0",
40
+ "autosuggest-highlight": "^3.3.4",
41
+ "aws-amplify": "^5.3.8",
42
+ "axios": "^1.4.0",
43
+ "compressorjs": "^1.2.1",
44
+ "date-fns": "^2.30.0",
45
+ "dayjs": "^1.11.9",
46
+ "framer-motion": "^10.15.0",
47
+ "highlight.js": "^11.8.0",
48
+ "material-ui-phone-number": "^3.0.0",
49
+ "notistack": "^3.0.1",
50
+ "nprogress": "^0.2.0",
51
+ "numeral": "^2.0.6",
52
+ "pluralize": "^8.0.0",
53
+ "react": "^18.2.0",
54
+ "react-beautiful-dnd": "^13.1.1",
55
+ "react-dropzone": "^14.2.3",
56
+ "react-helmet-async": "^1.3.0",
57
+ "react-hook-form": "^7.45.4",
58
+ "react-lazy-load-image-component": "^1.6.0",
59
+ "react-router-dom": "^6.14.2",
60
+ "rollup": "^3.27.0",
61
+ "rollup-plugin-css-bundle": "^1.0.4",
62
+ "rollup-plugin-dts": "^5.3.1",
63
+ "rollup-plugin-peer-deps-external": "^2.2.4",
64
+ "rollup-plugin-postcss": "^4.0.2",
65
+ "rollup-plugin-postcss-modules": "^2.1.1",
66
+ "rollup-plugin-preserve-directives": "^0.2.0",
67
+ "rollup-plugin-terser": "^7.0.2",
68
+ "simplebar-react": "^3.2.4",
69
+ "stylis": "^4.3.0",
70
+ "stylis-plugin-rtl": "^2.1.1",
71
+ "tslib": "^2.6.1",
72
+ "typescript": "^5.1.6",
73
+ "yup": "^1.2.0"
74
+ },
75
+ "dependencies": {
76
+ "react-quill": "^2.0.0"
77
+ }
78
+ }