@applica-software-guru/react-admin 1.5.348 → 1.5.350
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/@extended/IconButton.d.ts +3 -8
- package/dist/components/@extended/IconButton.d.ts.map +1 -1
- package/dist/components/Layout/Header/Profile/HeaderProfile.d.ts.map +1 -1
- package/dist/components/Pagination/Pagination.d.ts +2 -1
- package/dist/components/Pagination/Pagination.d.ts.map +1 -1
- package/dist/components/ra-inputs/LabeledInput.d.ts +5 -7
- package/dist/components/ra-inputs/LabeledInput.d.ts.map +1 -1
- package/dist/components/ra-inputs/ReferenceLookupInput/ReferenceLookupInput.d.ts +15 -0
- package/dist/components/ra-inputs/ReferenceLookupInput/ReferenceLookupInput.d.ts.map +1 -0
- package/dist/components/ra-inputs/ReferenceLookupInput/ReferenceManyLookupInput.d.ts +15 -0
- package/dist/components/ra-inputs/ReferenceLookupInput/ReferenceManyLookupInput.d.ts.map +1 -0
- package/dist/components/ra-inputs/ReferenceLookupInput/common.d.ts +32 -0
- package/dist/components/ra-inputs/ReferenceLookupInput/common.d.ts.map +1 -0
- package/dist/components/ra-inputs/ReferenceLookupInput/index.d.ts +3 -0
- package/dist/components/ra-inputs/ReferenceLookupInput/index.d.ts.map +1 -0
- package/dist/components/ra-inputs/ReferenceManyInput.d.ts +3 -3
- package/dist/components/ra-inputs/ReferenceManyInput.d.ts.map +1 -1
- package/dist/components/ra-inputs/index.d.ts +1 -0
- package/dist/components/ra-inputs/index.d.ts.map +1 -1
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/useDialogState.d.ts +10 -0
- package/dist/hooks/useDialogState.d.ts.map +1 -0
- package/dist/hooks/useUuid.d.ts +3 -0
- package/dist/hooks/useUuid.d.ts.map +1 -0
- package/dist/react-admin.cjs.js +60 -60
- package/dist/react-admin.cjs.js.gz +0 -0
- package/dist/react-admin.cjs.js.map +1 -1
- package/dist/react-admin.es.js +13692 -13476
- package/dist/react-admin.es.js.gz +0 -0
- package/dist/react-admin.es.js.map +1 -1
- package/dist/react-admin.umd.js +61 -61
- package/dist/react-admin.umd.js.gz +0 -0
- package/dist/react-admin.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/@extended/IconButton.tsx +3 -2
- package/src/components/Layout/Header/Profile/HeaderProfile.tsx +1 -2
- package/src/components/Pagination/Pagination.tsx +4 -3
- package/src/components/ra-inputs/LabeledInput.tsx +15 -15
- package/src/components/ra-inputs/ReferenceLookupInput/ReferenceLookupInput.tsx +100 -0
- package/src/components/ra-inputs/ReferenceLookupInput/ReferenceManyLookupInput.tsx +100 -0
- package/src/components/ra-inputs/ReferenceLookupInput/common.tsx +182 -0
- package/src/components/ra-inputs/ReferenceLookupInput/index.ts +2 -0
- package/src/components/ra-inputs/ReferenceManyInput.tsx +10 -8
- package/src/components/ra-inputs/index.ts +1 -0
- package/src/hooks/index.ts +2 -0
- package/src/hooks/useDialogState.tsx +27 -0
- package/src/hooks/useUuid.tsx +14 -0
- package/src/playground/App.jsx +5 -4
- package/src/playground/components/ra-forms/TempForm.jsx +26 -0
- package/src/playground/components/ra-forms/index.jsx +1 -0
- package/src/playground/components/ra-lists/TempList.jsx +13 -0
- package/src/playground/components/ra-lists/index.jsx +1 -0
- package/src/playground/entities/index.jsx +1 -0
- package/src/playground/entities/temp.jsx +25 -0
- package/src/playground/entities/user.jsx +2 -2
- package/src/playground/menu.jsx +7 -0
|
@@ -1,16 +1,11 @@
|
|
|
1
|
+
import { IconButtonProps as MuiIconButtonProps } from '@mui/material/IconButton';
|
|
1
2
|
import { PropsWithChildren } from 'react';
|
|
2
3
|
type IconButtonProps = PropsWithChildren<{
|
|
3
4
|
variant?: string;
|
|
4
5
|
shape?: string;
|
|
5
6
|
color?: string;
|
|
6
|
-
}
|
|
7
|
-
declare const IconButton: import("react").ForwardRefExoticComponent<
|
|
8
|
-
variant?: string | undefined;
|
|
9
|
-
shape?: string | undefined;
|
|
10
|
-
color?: string | undefined;
|
|
11
|
-
} & {
|
|
12
|
-
children?: import("react").ReactNode;
|
|
13
|
-
} & import("react").RefAttributes<unknown>>;
|
|
7
|
+
}> & MuiIconButtonProps;
|
|
8
|
+
declare const IconButton: import("react").ForwardRefExoticComponent<Omit<IconButtonProps, "ref"> & import("react").RefAttributes<unknown>>;
|
|
14
9
|
export { IconButton };
|
|
15
10
|
export type { IconButtonProps };
|
|
16
11
|
//# sourceMappingURL=IconButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../../src/components/@extended/IconButton.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../../src/components/@extended/IconButton.tsx"],"names":[],"mappings":"AAEA,OAAO,EAA4B,eAAe,IAAI,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAE3G,OAAO,EAAE,iBAAiB,EAAc,MAAM,OAAO,CAAC;AA4ItD,KAAK,eAAe,GAAG,iBAAiB,CAAC;IACvC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC,GACA,kBAAkB,CAAC;AAErB,QAAA,MAAM,UAAU,kHAWf,CAAC;AAEF,OAAO,EAAE,UAAU,EAAE,CAAC;AACtB,YAAY,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderProfile.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Layout/Header/Profile/HeaderProfile.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"HeaderProfile.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Layout/Header/Profile/HeaderProfile.tsx"],"names":[],"mappings":"AAOA,OAAc,EAAE,SAAS,EAA6C,MAAM,OAAO,CAAC;AAGpF,UAAU,kBAAkB;IAC1B,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB;AAED,iBAAS,aAAa,CAAC,KAAK,EAAE,kBAAkB,2CAkG/C;AAED,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FC, ReactElement } from 'react';
|
|
2
1
|
import { TablePaginationBaseProps } from '@mui/material';
|
|
3
2
|
import { ListPaginationContextValue } from 'ra-core';
|
|
3
|
+
import { FC, ReactElement } from 'react';
|
|
4
4
|
import { PaginationActionsProps } from './PaginationActions';
|
|
5
5
|
declare const Pagination: FC<PaginationProps>;
|
|
6
6
|
interface PaginationProps extends TablePaginationBaseProps, Partial<ListPaginationContextValue> {
|
|
@@ -13,4 +13,5 @@ interface PaginationProps extends TablePaginationBaseProps, Partial<ListPaginati
|
|
|
13
13
|
displayStyle?: 'text' | 'outlined';
|
|
14
14
|
}
|
|
15
15
|
export { Pagination };
|
|
16
|
+
export type { PaginationProps };
|
|
16
17
|
//# sourceMappingURL=Pagination.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pagination.d.ts","sourceRoot":"","sources":["../../../../src/components/Pagination/Pagination.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Pagination.d.ts","sourceRoot":"","sources":["../../../../src/components/Pagination/Pagination.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAmB,wBAAwB,EAA2C,MAAM,eAAe,CAAC;AAEnH,OAAO,EAEL,0BAA0B,EAK3B,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,EAAE,EAAE,YAAY,EAAmD,MAAM,OAAO,CAAC;AAG1F,OAAO,EAAqB,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAEhF,QAAA,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CA4MlC,CAAC;AAmBH,UAAU,eAAgB,SAAQ,wBAAwB,EAAE,OAAO,CAAC,0BAA0B,CAAC;IAC7F,kBAAkB,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACtE,OAAO,CAAC,EAAE,EAAE,CAAC,sBAAsB,CAAC,CAAC;IACrC,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC;CACpC;AAED,OAAO,EAAE,UAAU,EAAE,CAAC;AACtB,YAAY,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -1,19 +1,17 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import {
|
|
1
|
+
import React, { PropsWithChildren, ReactElement } from 'react';
|
|
2
|
+
import { CommonInputProps } from 'react-admin';
|
|
3
3
|
declare function LabeledInput({ label, children, display, helperText, sx, addLabel, divider, ...props }: LabeledInputProps): JSX.Element;
|
|
4
|
-
type LabeledInputProps =
|
|
4
|
+
type LabeledInputProps = PropsWithChildren<CommonInputProps & {
|
|
5
5
|
sx?: any;
|
|
6
|
-
|
|
7
|
-
label?: string | boolean;
|
|
6
|
+
label?: string | ReactElement | false;
|
|
8
7
|
addLabel?: boolean;
|
|
9
8
|
resource?: string;
|
|
10
9
|
isRequired?: boolean;
|
|
11
|
-
source?: string;
|
|
12
10
|
display?: 'legend' | 'label';
|
|
13
11
|
helperText?: string | boolean | React.ReactElement | null;
|
|
14
12
|
divider?: boolean;
|
|
15
13
|
chip?: any;
|
|
16
|
-
}
|
|
14
|
+
}>;
|
|
17
15
|
export { LabeledInput };
|
|
18
16
|
export type { LabeledInputProps };
|
|
19
17
|
//# sourceMappingURL=LabeledInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LabeledInput.d.ts","sourceRoot":"","sources":["../../../../src/components/ra-inputs/LabeledInput.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"LabeledInput.d.ts","sourceRoot":"","sources":["../../../../src/components/ra-inputs/LabeledInput.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAwB,MAAM,aAAa,CAAC;AAErE,iBAAS,YAAY,CAAC,EACpB,KAAK,EACL,QAAQ,EACR,OAAiB,EACjB,UAAU,EACV,EAAE,EACF,QAAQ,EACR,OAAe,EACf,GAAG,KAAK,EACT,EAAE,iBAAiB,GAAG,GAAG,CAAC,OAAO,CAiEjC;AAED,KAAK,iBAAiB,GAAG,iBAAiB,CACxC,gBAAgB,GAAG;IACjB,EAAE,CAAC,EAAE,GAAG,CAAC;IACT,KAAK,CAAC,EAAE,MAAM,GAAG,YAAY,GAAG,KAAK,CAAC;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;IAC7B,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,KAAK,CAAC,YAAY,GAAG,IAAI,CAAC;IAC1D,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,GAAG,CAAC;CACZ,CACF,CAAC;AAEF,OAAO,EAAE,YAAY,EAAE,CAAC;AACxB,YAAY,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { LabeledInputProps } from '../../../components/ra-inputs/LabeledInput';
|
|
2
|
+
import { FilterPayload } from 'ra-core';
|
|
3
|
+
import { ReactElement } from 'react';
|
|
4
|
+
import { RecordRepresentationType } from './common';
|
|
5
|
+
type ReferenceLookupInputProps = {
|
|
6
|
+
filter?: FilterPayload;
|
|
7
|
+
filterDefaultValues?: object;
|
|
8
|
+
filters?: ReactElement | ReactElement[];
|
|
9
|
+
recordRepresentation?: RecordRepresentationType;
|
|
10
|
+
reference: string;
|
|
11
|
+
} & LabeledInputProps;
|
|
12
|
+
declare function ReferenceLookupInput(props: ReferenceLookupInputProps): JSX.Element;
|
|
13
|
+
export { ReferenceLookupInput };
|
|
14
|
+
export type { ReferenceLookupInputProps };
|
|
15
|
+
//# sourceMappingURL=ReferenceLookupInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReferenceLookupInput.d.ts","sourceRoot":"","sources":["../../../../../src/components/ra-inputs/ReferenceLookupInput/ReferenceLookupInput.tsx"],"names":[],"mappings":"AACA,OAAO,EAAgB,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAMtF,OAAO,EAAE,aAAa,EAAwB,MAAM,SAAS,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAwB,MAAM,OAAO,CAAC;AAC3D,OAAO,EAAmC,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAErF,KAAK,yBAAyB,GAAG;IAC/B,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,OAAO,CAAC,EAAE,YAAY,GAAG,YAAY,EAAE,CAAC;IACxC,oBAAoB,CAAC,EAAE,wBAAwB,CAAC;IAChD,SAAS,EAAE,MAAM,CAAC;CACnB,GAAG,iBAAiB,CAAC;AAEtB,iBAAS,oBAAoB,CAAC,KAAK,EAAE,yBAAyB,GAAG,GAAG,CAAC,OAAO,CA6E3E;AAED,OAAO,EAAE,oBAAoB,EAAE,CAAC;AAChC,YAAY,EAAE,yBAAyB,EAAE,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { LabeledInputProps } from '../../../components/ra-inputs/LabeledInput';
|
|
2
|
+
import { FilterPayload } from 'ra-core';
|
|
3
|
+
import { ReactElement } from 'react';
|
|
4
|
+
import { RecordRepresentationType } from './common';
|
|
5
|
+
type ReferenceManyLookupInputProps = {
|
|
6
|
+
filter?: FilterPayload;
|
|
7
|
+
filterDefaultValues?: object;
|
|
8
|
+
filters?: ReactElement | ReactElement[];
|
|
9
|
+
recordRepresentation?: RecordRepresentationType;
|
|
10
|
+
reference: string;
|
|
11
|
+
} & LabeledInputProps;
|
|
12
|
+
declare function ReferenceManyLookupInput(props: ReferenceManyLookupInputProps): JSX.Element;
|
|
13
|
+
export { ReferenceManyLookupInput };
|
|
14
|
+
export type { ReferenceManyLookupInputProps };
|
|
15
|
+
//# sourceMappingURL=ReferenceManyLookupInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReferenceManyLookupInput.d.ts","sourceRoot":"","sources":["../../../../../src/components/ra-inputs/ReferenceLookupInput/ReferenceManyLookupInput.tsx"],"names":[],"mappings":"AACA,OAAO,EAAgB,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAMtF,OAAO,EAAE,aAAa,EAAkC,MAAM,SAAS,CAAC;AACxE,OAAO,EAAE,YAAY,EAAwB,MAAM,OAAO,CAAC;AAC3D,OAAO,EAAmC,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAErF,KAAK,6BAA6B,GAAG;IACnC,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,OAAO,CAAC,EAAE,YAAY,GAAG,YAAY,EAAE,CAAC;IACxC,oBAAoB,CAAC,EAAE,wBAAwB,CAAC;IAChD,SAAS,EAAE,MAAM,CAAC;CACnB,GAAG,iBAAiB,CAAC;AAEtB,iBAAS,wBAAwB,CAAC,KAAK,EAAE,6BAA6B,GAAG,GAAG,CAAC,OAAO,CA6EnF;AAED,OAAO,EAAE,wBAAwB,EAAE,CAAC;AACpC,YAAY,EAAE,6BAA6B,EAAE,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { PaginationProps } from '../../../components/Pagination';
|
|
2
|
+
import { ListToolbarProps } from '../../../components/ra-lists';
|
|
3
|
+
import { DatagridProps } from '../../../components/ra-lists/Datagrid/Datagrid';
|
|
4
|
+
import { DialogContentProps, DialogProps } from '@mui/material';
|
|
5
|
+
import { Identifier, ListControllerProps, RaRecord } from 'ra-core';
|
|
6
|
+
import { PropsWithChildren } from 'react';
|
|
7
|
+
type RecordRepresentationType = (record: RaRecord) => string;
|
|
8
|
+
type EntityFieldProps = {
|
|
9
|
+
id: Identifier;
|
|
10
|
+
onClick?: (record: RaRecord) => void;
|
|
11
|
+
onDelete?: (record: RaRecord) => void;
|
|
12
|
+
recordRepresentation?: RecordRepresentationType;
|
|
13
|
+
resource: string;
|
|
14
|
+
};
|
|
15
|
+
type EntityLookupDialogProps = PropsWithChildren<{
|
|
16
|
+
onCancel: () => void;
|
|
17
|
+
onConfirm: (selectedIds: Identifier[]) => void;
|
|
18
|
+
multiple: boolean;
|
|
19
|
+
slotProps?: {
|
|
20
|
+
dataGrid?: DatagridProps;
|
|
21
|
+
dialog?: DialogProps;
|
|
22
|
+
dialogContent?: DialogContentProps;
|
|
23
|
+
list?: ListControllerProps;
|
|
24
|
+
listToolbar?: Pick<ListToolbarProps, 'filters'>;
|
|
25
|
+
pagination?: PaginationProps;
|
|
26
|
+
};
|
|
27
|
+
}>;
|
|
28
|
+
declare function EntityField(props: EntityFieldProps): JSX.Element | null;
|
|
29
|
+
declare function EntityLookupDialog(props: EntityLookupDialogProps): JSX.Element;
|
|
30
|
+
export { EntityField, EntityLookupDialog };
|
|
31
|
+
export type { EntityFieldProps, EntityLookupDialogProps, RecordRepresentationType };
|
|
32
|
+
//# sourceMappingURL=common.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../../src/components/ra-inputs/ReferenceLookupInput/common.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAEtE,OAAO,EAAyB,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAChF,OAAO,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AAGxE,OAAO,EAML,kBAAkB,EAClB,WAAW,EAEZ,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,UAAU,EAEV,mBAAmB,EACnB,QAAQ,EAMT,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,iBAAiB,EAAe,MAAM,OAAO,CAAC;AAEvD,KAAK,wBAAwB,GAAG,CAAC,MAAM,EAAE,QAAQ,KAAK,MAAM,CAAC;AAC7D,KAAK,gBAAgB,GAAG;IACtB,EAAE,EAAE,UAAU,CAAC;IACf,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,QAAQ,KAAK,IAAI,CAAC;IACrC,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,QAAQ,KAAK,IAAI,CAAC;IACtC,oBAAoB,CAAC,EAAE,wBAAwB,CAAC;IAChD,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AACF,KAAK,uBAAuB,GAAG,iBAAiB,CAAC;IAC/C,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,EAAE,CAAC,WAAW,EAAE,UAAU,EAAE,KAAK,IAAI,CAAC;IAC/C,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE;QACV,QAAQ,CAAC,EAAE,aAAa,CAAC;QACzB,MAAM,CAAC,EAAE,WAAW,CAAC;QACrB,aAAa,CAAC,EAAE,kBAAkB,CAAC;QACnC,IAAI,CAAC,EAAE,mBAAmB,CAAC;QAC3B,WAAW,CAAC,EAAE,IAAI,CAAC,gBAAgB,EAAE,SAAS,CAAC,CAAC;QAChD,UAAU,CAAC,EAAE,eAAe,CAAC;KAC9B,CAAC;CACH,CAAC,CAAC;AAEH,iBAAS,WAAW,CAAC,KAAK,EAAE,gBAAgB,GAAG,GAAG,CAAC,OAAO,GAAG,IAAI,CA4BhE;AAED,iBAAS,kBAAkB,CAAC,KAAK,EAAE,uBAAuB,GAAG,GAAG,CAAC,OAAO,CAgGvE;AAED,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,CAAC;AAC3C,YAAY,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/ra-inputs/ReferenceLookupInput/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ReferenceManyFieldProps } from '../../components/ra-fields';
|
|
2
|
-
import { ReactElement } from 'react';
|
|
3
|
-
type ReferenceManyInputProps = {
|
|
2
|
+
import { PropsWithChildren, ReactElement } from 'react';
|
|
3
|
+
type ReferenceManyInputProps = PropsWithChildren<{
|
|
4
4
|
reference: string;
|
|
5
5
|
target: string;
|
|
6
6
|
children: React.ReactNode;
|
|
7
7
|
filters?: ReactElement;
|
|
8
8
|
actions?: ReactElement;
|
|
9
|
-
} & ReferenceManyFieldProps
|
|
9
|
+
} & ReferenceManyFieldProps>;
|
|
10
10
|
declare function ReferenceManyInput({ reference, target, children, filters, actions, ...props }: ReferenceManyInputProps): JSX.Element;
|
|
11
11
|
export { ReferenceManyInput };
|
|
12
12
|
//# sourceMappingURL=ReferenceManyInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReferenceManyInput.d.ts","sourceRoot":"","sources":["../../../../src/components/ra-inputs/ReferenceManyInput.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAsB,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AACrF,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ReferenceManyInput.d.ts","sourceRoot":"","sources":["../../../../src/components/ra-inputs/ReferenceManyInput.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAsB,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AACrF,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAGxD,KAAK,uBAAuB,GAAG,iBAAiB,CAC9C;IACE,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,OAAO,CAAC,EAAE,YAAY,CAAC;CACxB,GAAG,uBAAuB,CAC5B,CAAC;AAEF,iBAAS,kBAAkB,CAAC,EAC1B,SAAS,EACT,MAAM,EACN,QAAQ,EACR,OAAO,EACP,OAAO,EACP,GAAG,KAAK,EACT,EAAE,uBAAuB,GAAG,GAAG,CAAC,OAAO,CAWvC;AAED,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
|
|
@@ -16,6 +16,7 @@ export * from './RadioButtonGroupInput';
|
|
|
16
16
|
export * from './RecordInput';
|
|
17
17
|
export * from './ReferenceArrayInput';
|
|
18
18
|
export * from './ReferenceInput';
|
|
19
|
+
export * from './ReferenceLookupInput';
|
|
19
20
|
export * from './ReferenceManyInput';
|
|
20
21
|
export * from './SearchInput';
|
|
21
22
|
export * from './SelectArrayInput';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ra-inputs/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,wBAAwB,CAAC;AACvC,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ra-inputs/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,wBAAwB,CAAC;AACvC,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC"}
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from './mui';
|
|
2
|
+
export * from './useDialogState';
|
|
2
3
|
export * from './useLocalStorage';
|
|
3
4
|
export * from './useLocalizedValue';
|
|
4
5
|
export * from './useMemoizedObject';
|
|
@@ -6,4 +7,5 @@ export * from './usePopoverState';
|
|
|
6
7
|
export * from './useRefDimensions';
|
|
7
8
|
export * from './useResourceTitle';
|
|
8
9
|
export * from './useSystemTheme';
|
|
10
|
+
export * from './useUuid';
|
|
9
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type UseDialogStateReturn = {
|
|
2
|
+
open: boolean;
|
|
3
|
+
setOpen: (open: boolean) => void;
|
|
4
|
+
handleOpen: () => void;
|
|
5
|
+
handleClose: () => void;
|
|
6
|
+
handleToggle: () => void;
|
|
7
|
+
};
|
|
8
|
+
declare function useDialogState(initialState?: boolean): UseDialogStateReturn;
|
|
9
|
+
export { useDialogState };
|
|
10
|
+
//# sourceMappingURL=useDialogState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDialogState.d.ts","sourceRoot":"","sources":["../../../src/hooks/useDialogState.tsx"],"names":[],"mappings":"AAEA,KAAK,oBAAoB,GAAG;IAC1B,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACjC,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,YAAY,EAAE,MAAM,IAAI,CAAC;CAC1B,CAAC;AAEF,iBAAS,cAAc,CAAC,YAAY,GAAE,OAAe,GAAG,oBAAoB,CAc3E;AAED,OAAO,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useUuid.d.ts","sourceRoot":"","sources":["../../../src/hooks/useUuid.tsx"],"names":[],"mappings":"AAGA,iBAAS,OAAO,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAQtC;AAED,OAAO,EAAE,OAAO,EAAE,CAAC"}
|