Commit Graph
25 Commits
Author SHA1 Message Date
Manol Donev 03cfc0cee3 chore(tslint): update tslint rules and fix errors (#5747)
* chore(tslint): fix tslint config & errors
* chore(tslint): enable double quotes, whitespace, and arrow-return-shorthand rules and fix errors
2018-04-26 18:36:32 +03:00
Panayot Cankov 2166d1e415 feat(observable): Implement observable .once (#5309)
Node has a handy one-liner method on its EventEmitter called "once".
It is similar to "on", but fires a single time and automatically unsubscribes.
2018-01-25 11:38:27 +02:00
Hristo Hristov 8a428b011a Small perf improvement in fromObject 2018-01-11 13:49:52 +02:00
Hristo Hristov 18fe9392d6 Fix memory leak in edit-text.android
Fix fromObjectRecursive to doesn't override source object
2018-01-11 13:25:03 +02:00
Panayot Cankov 8adb2fdfef Fix TypeScript 2.4 errors, introduced mainly due weak types and covariant checking for callbacks (#4476) 2017-07-03 11:57:00 +03:00
Hristo Hristov cbbee3bbe7 get method on Observable created with fromObject wan’t returning the value that was put from set if that property was not specified in the object passed to fromObject. (#4213)
get method on Observable created with fromObject wasn’t returning the …
2017-05-17 13:30:46 +03:00
Hristo Hristov 188a1c2c34 Binding to ViewBase as source now works (#4195)
* Fix 4127

* Move back Binding class to bindable module
2017-05-16 13:33:02 +03:00
Panayot Cankov 0cae034a64 Changing module docs so they can appear in typedoc. 2017-05-10 11:55:47 +03:00
Panayot Cankov d098ff43f5 Add module names for the typedoc, make it work
Mark members with @private for typedoc.
2017-04-20 16:58:30 +03:00
Panayot Cankov 17b6f1c5f6 Property change notifications raise value and oldValue 2017-04-07 17:12:39 +03:00
Hristo Deshev 629eb6e683 Use relative imports in tns-core-modules.
Use tns-core-modules/* imports in outside code (apps, tests, etc)
2017-03-13 14:37:59 +02:00
Hristo Deshev b45cbe929b No more ambient modules for tns-core-modules/* subpackages.
- Use path mappings in tsconfig.json to resolve module typings
- Only use ambient mobules for global API's
- Move single-file modules to a subdir with the same name so that
we can provide a hand-written typing next to it (via package.json)
- Delete all mentions of tns-core-modules.d.ts
- Delete reference d.ts assembly build steps. Not needed anymore.
- HACK! Use a <reference> for global typings in application.d.ts
to avoid publishing a separate @types/tns-core-modules package.
- Rename declarations.d.ts to tns-core-modules.d.ts to preserve
JS project mappings in references.d.ts (the only place we use those)
2017-03-07 17:59:02 +02:00
Hristo Hristov ea22eb9c20 refactoring circular imports 2017-03-06 14:05:55 +02:00
vakrilov 87f936bcd8 Fix: ListView not showing first items of VirtArray 2017-02-09 16:55:28 +02:00
Panayot Cankov 0dd8f985c4 Add animations demo to the gallery app, make vertical alignment center and visibility collapsed backward compatible 2017-01-25 13:17:33 +02:00
Hristo Hristov e34b0f622c fix span (#3510)
* Remove Bindable.
Fix Observable & ObservableArray tests
Fix formattedString text
Change implementation of Span, FormattedString & TextBase
properties valueChange called before native setter

* revetred formattedString tests asserts - formattedText update text property again
properties - when getting value we now use always property name instead of key (using key could return undefined for property that is set to its default value)
updated fontSize & fontInternal properties on all controls
fix font properties so that fontInternal is reset if the new font is the same as Font.default

* fix tslint errors
2017-01-20 16:42:20 +02:00
Hristo Hristov 8cec512397 Fix binding support (#3489)
* Fix binding support

* fix tslint
2017-01-13 18:08:18 +02:00
Hristo Hristov 309ea148e1 Fix setting text property to number. (#3449)
Fix setting JS property from native.
2017-01-09 18:13:31 +02:00
Panayot Cankov 6feeb140e3 Fixing type errors in tests 2016-12-19 10:36:25 +02:00
Nedyalko Nikolov cb9d974fba Fixed issue with nested observables when null is given as property value. 2016-08-30 13:19:16 +03:00
Nedyalko Nikolov b9385fc4cd Renamed and moved to module Observable creation functions. 2016-08-24 15:37:46 +03:00
Nedyalko Nikolov 3fc706972f Fixed creating Observable object from nested JSON object. 2016-08-12 17:33:28 +03:00
Hristo Deshev 7e5c29a163 Fix package.json "main" settings and remove .js references. 2016-08-04 16:24:29 +03:00
Nedyalko Nikolov 48a57bdaf3 Creating observables from a nested json. 2016-07-18 17:34:50 +03:00
Panayot Cankov e135c20b14 Rename the files 2016-05-26 14:30:25 +03:00