Commit Graph

27 Commits

Author SHA1 Message Date
vvakame
14fe4313f4 replace internal module to namespace 2016-03-17 02:18:10 +09:00
Aluan Haddad
dd3f8aedb2 Changed model from (string | Object) to (string | { [key: string]: any; })
Changed the type of the model properties of various interfaces from (string | Object) to (string | { [key: string]: any; }).
This change is to improve usability. While (string | Object) is correct and corresponds literally to the angular-formly docs, it does not allow for meaningful use without type casts.
Also corrected some formatting to match the prevailing style used in the file.
2016-03-04 00:20:34 -05:00
Aluan Haddad
3dc2ce1636 Changed type of "data" to { [key: string]: any; }
Changed the type of the data property on the IFieldGroup, ITypeOptions, IFormOptionsAPI, and IFieldConfigurationObject interfaces from "Object" to a hash of string to any. While Object was not incorrect, it made use without a cast a type error in all but the most trivial cases.
2016-02-24 12:50:52 -05:00
Aluan Haddad
2a9c4f4b9f Change type of IFieldConfigurationObject.elementAttributes to hash
Formly requires this property to be an object. A string value causes ApiCheck to throw.
2016-02-05 01:57:37 -05:00
Aluan Haddad
28392f58ed Update angular-formly.d.ts 2016-01-28 10:38:07 -05:00
Aluan Haddad
3b43503a1f Change ITemplateOptions.{onClick, etc.} to union
Changed the types of the ```ITemplateOptions``` properties ```onBlur```, ```onChange```, ```onClick```, ```onFocus```, ```onKeydown```, ```onKeypress```, and ```onKeyup``` from 
```TypeScript
string
```
to
```TypeScript
string | IExpresssionFunction
```
string | IExpresssionFunction
2016-01-28 10:24:56 -05:00
Niko Kovacic
99a4e27e9b FieldGroup property in IFieldGroup should be optional. 2016-01-11 13:27:33 +01:00
Niko Kovacic
e19066cf24 Small lint fixes. 2016-01-08 15:25:42 +01:00
Niko Kovacic
89ccc5f3cd Added additional tests for extra property 2016-01-08 14:30:32 +01:00
Niko Kovacic
1fed7c61fa Angular Formly IFormlyConfig added missing properties. 2016-01-08 14:19:13 +01:00
Scarrier
6dd0b2dc5c Fix definition for IFieldGroup, add IFieldArray as convenience type for formly-form fields property, update tests 2016-01-04 15:43:02 -06:00
WAEL BEN ZID
223687fd0d BUGFIX in ITemplateOptions definition 2015-12-16 22:55:03 +01:00
WAEL BEN ZID
f7ba60bb14 Update definition of ITemplateOptions 2015-12-11 12:16:01 +01:00
Elmar Burke
218f7fda9b added default export for angular-formly 2015-11-19 09:37:02 +01:00
David Pertiller
31cb037f57 Added ngModelElAttrs property
The field configuration object supports a property called `ngModelElAttrs` which allows you to place attributes with string values on the ng-model element. It's a straightforward alternative to ngModelAttrs and was implemented as a result of this issue: https://github.com/formly-js/angular-formly/issues/378#issuecomment-127211353
2015-11-13 23:33:38 +01:00
vpham6
7652e924ff Update type for ngModelAttrs with key String 2015-10-21 11:45:23 -07:00
Scott Hatcher
ac1ca868dd Expanded tests, defined formlyConfig, and defined formlyValidationMessages. 2015-07-16 11:52:50 -07:00
Scott
7706ea8916 Rename angular-formly-test.ts to angular-formly-tests.ts
Renamed according to comply with repo standards.
2015-07-16 08:56:54 -07:00
Scott Hatcher
0f38c90093 asyncValidators isn't required. 2015-07-14 10:48:48 -07:00
Scott Hatcher
5f6361e360 Add asyncValidators. Added in 6.18.0. 2015-07-14 10:45:53 -07:00
Scott Hatcher
2f073bda43 Added in optional bootstrap template option. Will need to pull out and place in bootstrap-templates definition if it expands much further. 2015-07-14 10:08:15 -07:00
Scott Hatcher
b22932b2ef Removed unused interface. 2015-07-14 09:29:51 -07:00
Scott Hatcher
d910496ddc Extended definitions with info from formlyApiCheck. 2015-07-14 09:28:38 -07:00
Scott Hatcher
7f7ac2c2b1 Remove implicit any's. 2015-07-13 08:43:43 -07:00
Scott Hatcher
d48e140826 Added a few other field types to test file. 2015-07-13 08:00:46 -07:00
Scott Hatcher
700ec57d8b Allow custom bootstrap layout. 2015-07-13 07:55:15 -07:00
Scott Hatcher
442dbd53b5 Initial definition push. 2015-07-12 07:49:00 -07:00