@applica-software-guru/react-admin 1.0.83 → 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-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/react-admin.cjs.js +2 -2
- package/dist/react-admin.cjs.js.map +1 -1
- package/dist/react-admin.es.js +2160 -2157
- package/dist/react-admin.es.js.map +1 -1
- package/dist/react-admin.umd.js +8 -8
- package/dist/react-admin.umd.js.map +1 -1
- package/package.json +2 -2
- 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/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
|
|
|
@@ -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"}
|