Skip to content

Commit 878fd1b

Browse files
committed
v1.8.0
1 parent 9c4ff32 commit 878fd1b

27 files changed

+1103
-916
lines changed

CHANGELOG.md

Lines changed: 54 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,30 @@ All notable changes to this project will be documented in this file. Dates are d
44

55
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
66

7+
#### [v1.8.0](https://github.com/mighty-justice/fields-ant/compare/v1.7.3...v1.8.0)
8+
9+
- Bump Storybook from 5 to 6 [`#434`](https://github.com/mighty-justice/fields-ant/pull/434)
10+
11+
#### [v1.7.3](https://github.com/mighty-justice/fields-ant/compare/v1.7.2...v1.7.3)
12+
13+
> 12 November 2021
14+
15+
#### [v1.7.2](https://github.com/mighty-justice/fields-ant/compare/v1.7.1...v1.7.2)
16+
17+
> 12 November 2021
18+
19+
- Ant Design 4 Form [`#422`](https://github.com/mighty-justice/fields-ant/pull/422)
20+
- Small tweaks in prep for Ant 4 Form [`#430`](https://github.com/mighty-justice/fields-ant/pull/430)
21+
- Remove unused fieldsValidator [`#429`](https://github.com/mighty-justice/fields-ant/pull/429)
22+
- Bump @mighty-justice/tester [`#425`](https://github.com/mighty-justice/fields-ant/pull/425)
23+
- Use custom className for info view [`#424`](https://github.com/mighty-justice/fields-ant/pull/424)
24+
- Fix defaultProps types; combine IInputProps and IFormFieldProps [`#423`](https://github.com/mighty-justice/fields-ant/pull/423)
25+
- Fix format / lint [`12e911b`](https://github.com/mighty-justice/fields-ant/commit/12e911b90d89d9ecb32e0ba6bef5d9f260ed5074)
26+
727
#### [v1.7.1](https://github.com/mighty-justice/fields-ant/compare/v1.7.0...v1.7.1)
828

29+
> 15 October 2021
30+
931
- Include className in read view of form [`#418`](https://github.com/mighty-justice/fields-ant/pull/418)
1032

1133
#### [v1.7.0](https://github.com/mighty-justice/fields-ant/compare/v1.6.8...v1.7.0)
@@ -225,11 +247,15 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
225247

226248
> 30 September 2019
227249
250+
- Change object search create UX to be more user-friendly [`#245`](https://github.com/mighty-justice/fields-ant/pull/245)
251+
228252
#### [v1.1.9-0](https://github.com/mighty-justice/fields-ant/compare/v1.1.8...v1.1.9-0)
229253

230-
> 30 September 2019
254+
> 1 October 2019
231255
232-
- Change object search create UX to be more user-friendly [`#245`](https://github.com/mighty-justice/fields-ant/pull/245)
256+
- Add continuousSubmit prop to Form [`ba3452b`](https://github.com/mighty-justice/fields-ant/commit/ba3452b79bbf0eb886afeddeeee737d86de82188)
257+
- Fix tests [`325589f`](https://github.com/mighty-justice/fields-ant/commit/325589f159a11b6179a44c88a359eac884e12644)
258+
- Allow branch pre-release [`e24f5cb`](https://github.com/mighty-justice/fields-ant/commit/e24f5cb9ae51df8ee076440484f6ef547614bc10)
233259

234260
#### [v1.1.8](https://github.com/mighty-justice/fields-ant/compare/v1.1.7...v1.1.8)
235261

@@ -291,13 +317,12 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
291317

292318
> 4 September 2019
293319
294-
- Remove browser-validation for URLs from URl type [`#235`](https://github.com/mighty-justice/fields-ant/pull/235)
295-
- export date input [`#234`](https://github.com/mighty-justice/fields-ant/pull/234)
296-
297320
#### [v1.0.4](https://github.com/mighty-justice/fields-ant/compare/v1.0.3...v1.0.4)
298321

299-
> 18 August 2019
322+
> 4 September 2019
300323
324+
- Remove browser-validation for URLs from URl type [`#235`](https://github.com/mighty-justice/fields-ant/pull/235)
325+
- export date input [`#234`](https://github.com/mighty-justice/fields-ant/pull/234)
301326
- Allow Cards to receive a custom className [`#231`](https://github.com/mighty-justice/fields-ant/pull/231)
302327

303328
#### [v1.0.3](https://github.com/mighty-justice/fields-ant/compare/v1.0.2...v1.0.3)
@@ -841,7 +866,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
841866
842867
- Add objectSearchCreate interface to FieldConfig [`#12`](https://github.com/mighty-justice/fields-ant/pull/12)
843868

844-
#### [v0.0.12](https://github.com/mighty-justice/fields-ant/compare/v0.0.6...v0.0.12)
869+
#### [v0.0.12](https://github.com/mighty-justice/fields-ant/compare/v0.0.11...v0.0.12)
845870

846871
> 9 January 2019
847872
@@ -852,6 +877,28 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
852877
- Add linting before version bump [`#7`](https://github.com/mighty-justice/fields-ant/pull/7)
853878
- Bump to v0.0.11 to fix tagging issue [`6930677`](https://github.com/mighty-justice/fields-ant/commit/69306777155800e4444504ebdf27466fca764c33)
854879

880+
#### [v0.0.11](https://github.com/mighty-justice/fields-ant/compare/v0.0.8...v0.0.11)
881+
882+
> 8 January 2019
883+
884+
- Config more [`012d624`](https://github.com/mighty-justice/fields-ant/commit/012d624bbcb614ebff7291b18099bbc7d3dc97ca)
885+
- Config more [`239a24b`](https://github.com/mighty-justice/fields-ant/commit/239a24b2034514cf52a6b3757aa645f4c158c1a4)
886+
- Config more [`368182e`](https://github.com/mighty-justice/fields-ant/commit/368182e01133cde3bb74a392c13948dbbad5383c)
887+
888+
#### [v0.0.8](https://github.com/mighty-justice/fields-ant/compare/v0.0.7...v0.0.8)
889+
890+
> 8 January 2019
891+
892+
- Commit bad lint [`f4c548d`](https://github.com/mighty-justice/fields-ant/commit/f4c548d54de9e5454214157f2f83315c6520ffd6)
893+
894+
#### [v0.0.7](https://github.com/mighty-justice/fields-ant/compare/v0.0.6...v0.0.7)
895+
896+
> 8 January 2019
897+
898+
- Get linter running [`840a142`](https://github.com/mighty-justice/fields-ant/commit/840a142b05b4d04c89b53d610683b5dab388dc40)
899+
- Test lint checks on release [`bcbf305`](https://github.com/mighty-justice/fields-ant/commit/bcbf305a03385dc7717181d970507deb3ec01aa9)
900+
- Test linting [`0b30380`](https://github.com/mighty-justice/fields-ant/commit/0b30380f8266ef6226077720554bab620985878e)
901+
855902
#### [v0.0.6](https://github.com/mighty-justice/fields-ant/compare/v0.0.5...v0.0.6)
856903

857904
> 8 January 2019

dist/building-blocks/CardField.d.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ export interface ICardFieldProps extends IFormatProps {
66
model?: IModel;
77
}
88
declare class CardField extends Component<ICardFieldProps> {
9-
static defaultProps: Partial<ICardFieldProps>;
9+
static defaultProps: {
10+
layout?: "inline" | "horizontal" | "vertical" | undefined;
11+
colon: boolean;
12+
};
1013
private get fieldConfig();
1114
render(): JSX.Element | null;
1215
}

dist/building-blocks/FieldSet.d.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ interface IProps {
77
layout?: ILayout;
88
}
99
export default class FieldSet extends Component<IProps> {
10-
static defaultProps: Partial<IProps>;
10+
static defaultProps: {
11+
layout?: "inline" | "horizontal" | "vertical" | undefined;
12+
colon: boolean;
13+
};
1114
render(): JSX.Element;
1215
}
1316
export {};

dist/building-blocks/FormField.d.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
import { Component } from 'react';
2-
import { FormManager } from '../utilities';
3-
import { IFieldConfigPartial } from '../interfaces';
4-
import { IModel } from '../props';
5-
export interface IFormFieldProps {
6-
fieldConfig: IFieldConfigPartial;
7-
formManager: FormManager;
8-
formModel: IModel;
9-
}
2+
import { IFormFieldProps } from '../interfaces';
103
declare class FormField extends Component<IFormFieldProps> {
114
private get fieldConfig();
125
private get editProps();

dist/building-blocks/FormItem.d.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@ export interface IFormFieldProps {
1111
}
1212
export declare const FORM_ITEM_CLASS_NAME: string;
1313
declare class FormItem extends Component<IFormFieldProps> {
14-
static defaultProps: Partial<IFormFieldProps>;
14+
static defaultProps: {
15+
layout?: "inline" | "horizontal" | "vertical" | undefined;
16+
colon: boolean;
17+
};
1518
private get initialValue();
16-
private fieldsValidatorToValidator;
1719
private get rules();
18-
private get decoratorOptions();
1920
private get formItemProps();
2021
render(): JSX.Element;
2122
}

dist/components/Card.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ export interface ICardProps extends ISharedComponentProps {
55
renderTopRight?: () => any;
66
}
77
declare class Card extends Component<ICardProps> {
8-
static defaultProps: Partial<ICardProps>;
8+
static defaultProps: {
9+
bordered: boolean;
10+
};
911
private get fieldSets();
1012
render(): JSX.Element;
1113
}

dist/components/EditableArrayCard.d.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ export interface IEditableArrayCardProps extends IArrayCardProps, ISharedFormPro
88
}
99
declare class EditableArrayCard extends Component<IEditableArrayCardProps> {
1010
private isAddingNew;
11-
static defaultProps: Partial<IEditableArrayCardProps>;
11+
static defaultProps: {
12+
cancelText: string;
13+
onSave: () => Promise<void>;
14+
saveText: string;
15+
};
1216
private handleSaveNew;
1317
private renderAddNew;
1418
render(): JSX.Element;

dist/components/EditableCard.d.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,17 @@ import { ICardProps } from './Card';
44
import FormDrawer from './FormDrawer';
55
import FormModal from './FormModal';
66
export interface IEditableCardProps extends ICardProps, ISharedFormProps {
7-
ModalComponent: new (props: ISharedFormModalProps) => FormModal | FormDrawer;
7+
ModalComponent?: new (props: ISharedFormModalProps) => FormModal | FormDrawer;
88
onDelete?: (model: unknown) => Promise<any>;
99
}
1010
declare class EditableCard extends Component<IEditableCardProps> {
1111
private isDeleting;
1212
private isEditing;
13-
static defaultProps: Partial<IEditableCardProps>;
13+
static defaultProps: {
14+
cancelText: string;
15+
onSave: () => Promise<void>;
16+
saveText: string;
17+
};
1418
private handleDelete;
1519
private handleSave;
1620
private get deleteButton();

dist/components/Form.d.ts

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import { Component } from 'react';
2-
import { WrappedFormInternalProps } from '@ant-design/compatible/lib/form/Form';
2+
import { FormInstance } from 'antd/lib/form/hooks/useForm';
33
import { ISharedFormProps, ISharedComponentProps } from '../props';
44
export interface IFormProps extends ISharedComponentProps, ISharedFormProps {
55
showControls: boolean;
66
}
7-
export interface IFormWrappedProps extends IFormProps, WrappedFormInternalProps {
7+
export interface IFormWrappedProps extends IFormProps {
8+
form: FormInstance;
89
}
910
export declare class UnwrappedForm extends Component<IFormWrappedProps> {
1011
private formManager;
@@ -14,8 +15,15 @@ export declare class UnwrappedForm extends Component<IFormWrappedProps> {
1415
private renderControls;
1516
render(): JSX.Element;
1617
}
17-
export declare class Form extends Component<IFormProps> {
18-
static defaultProps: Partial<IFormWrappedProps>;
19-
render(): JSX.Element;
18+
declare function Form(props: IFormProps): JSX.Element;
19+
declare namespace Form {
20+
var defaultProps: {
21+
showControls: boolean;
22+
layout?: "inline" | "horizontal" | "vertical" | undefined;
23+
colon: boolean;
24+
cancelText: string;
25+
onSave: () => Promise<void>;
26+
saveText: string;
27+
};
2028
}
2129
export default Form;

dist/components/FormCard.d.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@ import { ICardProps } from './Card';
44
export interface IFormCardProps extends ISharedFormProps, ICardProps {
55
}
66
export declare class FormCard extends Component<IFormCardProps> {
7-
static defaultProps: Partial<IFormCardProps>;
7+
static defaultProps: {
8+
bordered: boolean;
9+
cancelText: string;
10+
onSave: () => Promise<void>;
11+
saveText: string;
12+
};
813
render(): JSX.Element;
914
}
1015
export default FormCard;

0 commit comments

Comments
 (0)