@applica-software-guru/react-admin 1.0.82 → 1.1.84
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/bitbucket-pipelines.yml +3 -3
- package/dist/components/ra-forms/Create.d.ts +23 -0
- package/dist/components/ra-forms/Create.d.ts.map +1 -0
- package/dist/components/ra-forms/Edit.d.ts +1 -1
- package/dist/components/ra-forms/index.d.ts +2 -1
- package/dist/components/ra-forms/index.d.ts.map +1 -1
- package/dist/components/ra-inputs/AttachmentInput.d.ts +30 -15
- package/dist/components/ra-inputs/AttachmentInput.d.ts.map +1 -1
- package/dist/components/ra-inputs/ImageInput.d.ts.map +1 -1
- package/dist/components/ra-pages/RegisterPage.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/react-admin.cjs.js +8 -8
- package/dist/react-admin.cjs.js.map +1 -1
- package/dist/react-admin.es.js +3708 -3695
- package/dist/react-admin.es.js.map +1 -1
- package/dist/react-admin.umd.js +17 -17
- package/dist/react-admin.umd.js.map +1 -1
- package/package.json +2 -2
- package/src/components/ra-forms/Create.tsx +16 -0
- package/src/components/ra-forms/index.jsx +2 -1
- package/src/components/ra-inputs/{AttachmentInput.jsx → AttachmentInput.tsx} +27 -5
- package/src/components/ra-inputs/ImageInput.jsx +2 -1
- package/src/components/ra-pages/RegisterPage.tsx +0 -1
- package/src/index.jsx +0 -1
- package/src/playground/App.jsx +2 -3
- package/src/playground/components/ra-forms/OrderForm.jsx +48 -0
- package/src/playground/components/ra-forms/index.jsx +4 -4
- package/src/playground/components/ra-lists/OrderList.jsx +12 -0
- package/src/playground/components/ra-lists/index.jsx +4 -4
- package/src/playground/config.jsx +0 -5
- package/src/playground/entities/index.jsx +1 -0
- package/src/playground/entities/order.jsx +24 -0
- package/src/playground/menu.jsx +8 -1
- package/src/playground/theme.jsx +1 -7
- package/src/playground/types.ts +94 -0
package/bitbucket-pipelines.yml
CHANGED
|
@@ -20,7 +20,7 @@ pipelines:
|
|
|
20
20
|
deployment: Production
|
|
21
21
|
script:
|
|
22
22
|
- export NODE_OPTIONS=--max_old_space_size=8192
|
|
23
|
-
- npm --no-git-tag-version version "1.
|
|
23
|
+
- npm --no-git-tag-version version "1.1.$BITBUCKET_BUILD_NUMBER" -m "Upgrade to new version"
|
|
24
24
|
- echo $VERSION
|
|
25
25
|
- npm install
|
|
26
26
|
- npm run build
|
|
@@ -28,6 +28,6 @@ pipelines:
|
|
|
28
28
|
variables:
|
|
29
29
|
NPM_TOKEN: $NPM_TOKEN
|
|
30
30
|
EXTRA_ARGS: "--access public"
|
|
31
|
-
- git tag -a "1.
|
|
32
|
-
- git push origin "1.
|
|
31
|
+
- git tag -a "1.1.$BITBUCKET_BUILD_NUMBER" -m "Version 1.1.$BITBUCKET_BUILD_NUMBER"
|
|
32
|
+
- git push origin "1.1.$BITBUCKET_BUILD_NUMBER"
|
|
33
33
|
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const StyledCreate: import("@emotion/styled").StyledComponent<Pick<Pick<import("react-admin").CreateProps<Omit<import("react-admin").RaRecord<import("react-admin").Identifier>, "id">, Error, import("react-admin").RaRecord<import("react-admin").Identifier>> & {
|
|
3
|
+
children: import("react").ReactNode;
|
|
4
|
+
}, "children" | keyof import("react-admin").CreateProps<Omit<import("react-admin").RaRecord<import("react-admin").Identifier>, "id">, Error, import("react-admin").RaRecord<import("react-admin").Identifier>>> & Pick<import("prop-types").InferProps<{
|
|
5
|
+
actions: import("prop-types").Requireable<NonNullable<boolean | import("prop-types").ReactElementLike>>;
|
|
6
|
+
aside: import("prop-types").Requireable<import("prop-types").ReactElementLike>;
|
|
7
|
+
children: import("prop-types").Requireable<import("prop-types").ReactNodeLike>;
|
|
8
|
+
className: import("prop-types").Requireable<string>;
|
|
9
|
+
disableAuthentication: import("prop-types").Requireable<boolean>;
|
|
10
|
+
hasEdit: import("prop-types").Requireable<boolean>;
|
|
11
|
+
hasShow: import("prop-types").Requireable<boolean>;
|
|
12
|
+
redirect: import("prop-types").Requireable<NonNullable<string | boolean | ((...args: any[]) => any)>>;
|
|
13
|
+
resource: import("prop-types").Requireable<string>;
|
|
14
|
+
title: import("prop-types").Requireable<import("prop-types").ReactNodeLike>;
|
|
15
|
+
record: import("prop-types").Requireable<object>;
|
|
16
|
+
mutationOptions: import("prop-types").Requireable<object>;
|
|
17
|
+
transform: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
18
|
+
sx: import("prop-types").Requireable<any>;
|
|
19
|
+
}>, never> & Pick<import("react-admin").CreateProps<Omit<import("react-admin").RaRecord<import("react-admin").Identifier>, "id">, Error, import("react-admin").RaRecord<import("react-admin").Identifier>> & {
|
|
20
|
+
children: import("react").ReactNode;
|
|
21
|
+
}, "component">, "children" | keyof import("react-admin").CreateProps<Omit<import("react-admin").RaRecord<import("react-admin").Identifier>, "id">, Error, import("react-admin").RaRecord<import("react-admin").Identifier>>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
22
|
+
export default StyledCreate;
|
|
23
|
+
//# sourceMappingURL=Create.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Create.d.ts","sourceRoot":"","sources":["../../../../src/components/ra-forms/Create.tsx"],"names":[],"mappings":";AAGA,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;yTAUf,CAAC;AAEJ,eAAe,YAAY,CAAC"}
|
|
@@ -20,7 +20,7 @@ declare const StyledEdit: import("@emotion/styled").StyledComponent<Pick<Pick<im
|
|
|
20
20
|
title: import("prop-types").Requireable<import("prop-types").ReactNodeLike>;
|
|
21
21
|
transform: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
22
22
|
sx: import("prop-types").Requireable<any>;
|
|
23
|
-
}>, "
|
|
23
|
+
}>, "hasEdit" | "hasShow" | "hasCreate" | "hasList"> & Pick<import("react-admin").EditProps<import("react-admin").RaRecord<import("react-admin").Identifier>, unknown> & {
|
|
24
24
|
children: import("react").ReactNode;
|
|
25
25
|
}, "component">, "children" | keyof import("react-admin").EditProps<import("react-admin").RaRecord<import("react-admin").Identifier>, unknown>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
26
26
|
//# sourceMappingURL=Edit.d.ts.map
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import Create from './Create';
|
|
1
2
|
import CardForm from './CardForm';
|
|
2
3
|
import ChangePasswordForm from './ChangePasswordForm';
|
|
3
4
|
import Edit from './Edit';
|
|
@@ -7,5 +8,5 @@ import SimpleForm from './SimpleForm';
|
|
|
7
8
|
import SimpleFormIterator from './SimpleFormIterator';
|
|
8
9
|
import TabbedForm from './TabbedForm';
|
|
9
10
|
import Toolbar from './Toolbar';
|
|
10
|
-
export { CardForm, ChangePasswordForm, Edit, FormHeader, LongForm, SimpleForm, SimpleFormIterator, TabbedForm, Toolbar };
|
|
11
|
+
export { Create, CardForm, ChangePasswordForm, Edit, FormHeader, LongForm, SimpleForm, SimpleFormIterator, TabbedForm, Toolbar };
|
|
11
12
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ra-forms/index.jsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ra-forms/index.jsx"],"names":[],"mappings":"mBAEmB,UAAU;qBAFR,YAAY;+BACF,sBAAsB;iBAEpC,QAAQ;uBACF,cAAc;qBAChB,YAAY;uBACV,cAAc;+BACN,sBAAsB;uBAC9B,cAAc;oBACjB,WAAW"}
|
|
@@ -1,11 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { FileInputProps } from 'react-admin';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
export type AttachmentInputProps = FileInputProps & {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
source?: string;
|
|
8
|
+
type?: 'file' | 'image' | 'attachment';
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Consente di definire un campo di tipo input all'interno del quale è possibile caricare uno o più file.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* <AttachmentInput source="attachments" title="name" accept="image/*" multiple>
|
|
15
|
+
*
|
|
16
|
+
* @param {AttachmentInputProps}
|
|
17
|
+
* @returns
|
|
18
|
+
*/
|
|
19
|
+
declare const AttachmentInput: {
|
|
20
|
+
({ children, disabled, type, ...props }: AttachmentInputProps): JSX.Element;
|
|
21
|
+
propTypes: {
|
|
9
22
|
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
10
23
|
multiple: PropTypes.Requireable<boolean>;
|
|
11
24
|
disabled: PropTypes.Requireable<boolean>;
|
|
@@ -25,11 +38,13 @@ declare namespace AttachmentInput {
|
|
|
25
38
|
source: PropTypes.Requireable<string>;
|
|
26
39
|
placeholder: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
27
40
|
};
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
41
|
+
defaultProps: {
|
|
42
|
+
/** @ts-ignore */
|
|
43
|
+
children: import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
multiple: boolean;
|
|
45
|
+
disabled: boolean;
|
|
46
|
+
type: string;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
export default AttachmentInput;
|
|
35
50
|
//# sourceMappingURL=AttachmentInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttachmentInput.d.ts","sourceRoot":"","sources":["../../../../src/components/ra-inputs/AttachmentInput.
|
|
1
|
+
{"version":3,"file":"AttachmentInput.d.ts","sourceRoot":"","sources":["../../../../src/components/ra-inputs/AttachmentInput.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAwD,MAAM,aAAa,CAAC;AAInG,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,MAAM,OAAO,CAAC;AA4C1B,MAAM,MAAM,oBAAoB,GAAG,cAAc,GAAG;IAClD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,YAAY,CAAC;CACxC,CAAC;AAEF;;;;;;;;GAQG;AACH,QAAA,MAAM,eAAe;6CAA4C,oBAAoB,GAAG,WAAW;;;;;;;;;;;;;;;;;;;;;;QAsBjG,iBAAiB;;;;;;CAVlB,CAAC;AAiBF,eAAe,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageInput.d.ts","sourceRoot":"","sources":["../../../../src/components/ra-inputs/ImageInput.jsx"],"names":[],"mappings":";AASA;;;;
|
|
1
|
+
{"version":3,"file":"ImageInput.d.ts","sourceRoot":"","sources":["../../../../src/components/ra-inputs/ImageInput.jsx"],"names":[],"mappings":";AASA;;;;4CAqBC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RegisterPage.d.ts","sourceRoot":"","sources":["../../../../src/components/ra-pages/RegisterPage.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAGxC,OAAO,SAAS,MAAM,YAAY,CAAC;AAInC,QAAA,MAAM,YAAY;wBAAuB,aAAa;;;;;
|
|
1
|
+
{"version":3,"file":"RegisterPage.d.ts","sourceRoot":"","sources":["../../../../src/components/ra-pages/RegisterPage.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAGxC,OAAO,SAAS,MAAM,YAAY,CAAC;AAInC,QAAA,MAAM,YAAY;wBAAuB,aAAa;;;;;CAyDrD,CAAC;AAOF,eAAe,YAAY,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -6,5 +6,5 @@ export * from "./components";
|
|
|
6
6
|
export * from "./contexts";
|
|
7
7
|
export * from "./utils";
|
|
8
8
|
export * from "./i18n";
|
|
9
|
-
export { ArrayInput as RaArrayInput, ArrayInputContext, BooleanField, BulkDeleteWithConfirmButton, Button, ChipField, choices, Confirm,
|
|
9
|
+
export { ArrayInput as RaArrayInput, ArrayInputContext, BooleanField, BulkDeleteWithConfirmButton, Button, ChipField, choices, Confirm, CreateButton, CreateContextProvider, CustomRoutes, DeleteWithConfirmButton, DeleteWithUndoButton, EditButton, EditContextProvider, email, FieldTitle, Form, FormDataConsumer, HttpError, I18nContextProvider, ListToolbar, maxLength, maxValue, minLength, minValue, number, Pagination, RecordContextProvider, ReferenceArrayField, ReferenceField, regex, required, Resource, ResourceContextProvider, SaveButton, SimpleFormIterator as RaSimpleFormIterator, SimpleFormIteratorContext, SimpleList, SingleFieldList, TopToolbar, UrlField, useArrayInput, useAuthProvider, useCreateController, useDataProvider, useEditContext, useGetIdentity, useGetList, useGetMany, useGetManyReference, useGetOne, useListContext, useNotify, usePermissions, useRecordContext, useRefresh, useResourceContext, useResourceDefinition, useResourceDefinitions, useTranslate, useUnselect, useUnselectAll, useUpdateMany } from "react-admin";
|
|
10
10
|
//# sourceMappingURL=index.d.ts.map
|