Commit Graph

421 Commits

Author SHA1 Message Date
Nedyalko Nikolov
e9ceb79b2e Add placeholder-color style property. 2016-08-30 14:00:35 +03:00
Nedyalko Nikolov
cb9d974fba Fixed issue with nested observables when null is given as property value. 2016-08-30 13:19:16 +03:00
Panayot Cankov
1236f66f44 Add npm script that generates ios .d.ts-es from the tests app
Less than 30 erros left, let's hope it still works

Added lib.*.d.ts from typescript, removed lib and dom stuff, added by hand XHR, alert etc. .d.ts-es for polyfills

Roll back some changes involved in separating UIEvent for dom and ios

Test combined dts-es will now use lib, while internally we will not to avoid UIEvent conflict with dom stuff
2016-08-29 09:58:17 +03:00
Nedyalko Nikolov
b9385fc4cd Renamed and moved to module Observable creation functions. 2016-08-24 15:37:46 +03:00
Rossen Hristov
996858825c Fix: Text color of the Button not applied, when text-transform has been set.
Resolves #2601
2016-08-22 15:43:45 +03:00
Nedyalko Nikolov
865090af6e Merge pull request #2600 from NativeScript/nnikolov/LocationTestRevised
Location test fixed.
2016-08-18 10:53:23 +03:00
Alexis Cramatte
450c5fb9cf Fix: Content type with "+json" suffix are now parsed as JSON 2016-08-17 21:27:10 +02:00
Nedyalko Nikolov
d08e8396da Location test fixed. 2016-08-17 17:04:05 +03:00
Nedyalko Nikolov
dc5b7d5bac Fixed with another approach. 2016-08-16 17:02:57 +03:00
Nedyalko Nikolov
97a1ad6a7a Label zero height issue fixed. 2016-08-16 16:33:56 +03:00
Nedyalko Nikolov
bb6a7107c9 Fixed issue when bind to bindingContext. 2016-08-15 17:08:42 +03:00
Nedyalko Nikolov
3fc706972f Fixed creating Observable object from nested JSON object. 2016-08-12 17:33:28 +03:00
Hristo Hristov
3da84ce27d Added permission for location. Without it Location tests fails on some devices (Samsung S4) (#2567) 2016-08-11 09:13:39 +03:00
Hristo Hristov
30c998a954 Fix unit-tests checks. (#2538)
* Fix unit-tests checks.
LetterSpacing handlers are added for iOS and Android API 21+

* Removed unneded check for android

* Used parseInt instead of new Number due to TSLint error
2016-08-01 16:21:32 +03:00
Rossen Hristov
a4dea1df2e Letter spacing cosmetic changes 2016-07-29 15:21:46 +03:00
Rossen Hristov
21926a95ea Additional refactoring and code cleanup 2016-07-28 14:48:03 +03:00
Rossen Hristov
15d891cc08 Refactor application of text decoration, text transform, letter spacing and formatted text.
Related to #2427
2016-07-28 10:33:33 +03:00
vakrilov
2dc9827721 FIX: Wrong isBackNavigation value 2016-07-25 11:47:07 +03:00
Nedyalko Nikolov
c991cd7ed0 Added documentation for selectedIndexChanged event. 2016-07-22 16:13:43 +03:00
vakrilov
ef6a24a5de FIX: isBackNavigation worng when navigation away form page that is not backstack visible 2016-07-20 11:54:53 +03:00
Rossen Hristov
fa48f4e425 Merge pull request #2475 from NativeScript/ios-known-folders
Add iOS-specific known folders to fs.knownFolders
2016-07-20 11:37:09 +03:00
Nedyalko Nikolov
2656f18926 Merge pull request #2474 from NativeScript/nnikolov/TextPropertyMustBeString
Mark text property as special and set it with a string comming from b…
2016-07-20 09:53:59 +03:00
Nedyalko Nikolov
a9d835b26d Merge pull request #2469 from NativeScript/nnikolov/NestedObservables
Creating observables from a nested json.
2016-07-19 18:04:12 +03:00
Panayot Cankov
849736e35e Merge pull request #2465 from NativeScript/css-hash-lookup-2
CSS refactoring
2016-07-19 17:59:10 +03:00
Rossen Hristov
116bc26dc1 Add iOS-specific known folders to fs.knownFolders 2016-07-19 16:33:51 +03:00
Nedyalko Nikolov
a481fa9808 Mark text property as special and set it with a string comming from builder. 2016-07-19 14:37:44 +03:00
Rossen Hristov
39050861f3 Add NavigationEntry.bindingContext property
Resolves Issue  #731
2016-07-19 12:06:29 +03:00
Nedyalko Nikolov
48a57bdaf3 Creating observables from a nested json. 2016-07-18 17:34:50 +03:00
Panayot Cankov
c1aeeb51a7 Inital by-type split
Split type.class from CssTypeSelector to CssCompositeSelector, probably support type#id.class selectors

Apply review comments, refactor css-selectors internally

Applied refactoring, all tests pass, button does not notify changes

Add tests for the css selectors parser.

Added tests for css-selectors

Added basic implementation of mayMatch and changeMap for css match state

Implemented TKUnit.assertDeepEqual to check key and key/values in Map and Set

Watch for property and pseudoClass changes

Add one child group test

Add typings for animations

Added mechanism to enable/disable listeners for pseudo classes

Count listeners instead of checking handlers, reverse subscription and unsubscription
2016-07-18 17:24:09 +03:00
Rossen Hristov
36ae896933 Fix: Set the binding context of a page automatically when navigated to.
Resolves #731
2016-07-18 13:40:13 +03:00
Rossen Hristov
7cb56a857a Fix apps and tests TypeScript projects 2016-07-12 10:58:23 +03:00
Rossen Hristov
a18d5e7622 Create a single NS app for cuteness.io, gallery-app and ui-tests-app in apps/
Move all other apps to https://github.com/NativeScript/tns-apps-graveyard
2016-07-11 15:34:28 +03:00
Hristo Hristov
8d40782191 Style perf improvements (#2342)
* Add css-perf app.

* Style properties now check only properties that are set.
Image utils module required on top (instead of in onMeasure) to improve performance.
Remove try/catch block when Style applies native property.

* fix tslint

* Fix broken merge
Update package.json version

* Failed miserably - if the try/catch around applyProperty method is removed - TextField fails big time.
TextField needs some good refactoring as well as calls to _updateTextDecoration & _updateTextTransform
utils - setTextTransform & setTextDecoration should be split, typing support should be added.
2016-07-08 14:39:43 +03:00
Hristo Deshev
09db46da0c Remove unicode nonbreaking whitespace in snippet declarations.
It was breaking the snippet extraction regexes.
2016-07-06 16:55:39 +03:00
Hristo Deshev
846bafc660 Change snippet syntax to the new Jekyll tag. 2016-07-06 16:09:11 +03:00
Hristo Deshev
f87eb2d969 Fix unclosed snippet tags and duplicate snippets. 2016-07-05 17:27:59 +03:00
Hristo Hristov
7db517858b TextWatchListener is removed at onDetach so that no exception is thrown if android raise textChanged but we destroyed our android object in onDestroy of edit-text (#2392) 2016-07-01 13:20:09 +03:00
Jason Zhekov
65045595d0 Remove unused result variables in fetch tests 2016-06-30 15:57:32 +03:00
Rossen Hristov
c94693da44 Merge pull request #2339 from NativeScript/border-drawable
Implement the BorderDrawable class used in background.android.ts in Java
2016-06-21 09:21:42 +03:00
Hristo Deshev
e5ce0cc3df Merge pull request #2347 from NativeScript/hdeshev/cookbook-nativescript-env
Make cookbook articles appear in nativescript env only.
2016-06-20 17:45:39 +03:00
Hristo Deshev
4147e47948 Make cookbook articles appear in nativescript env only. 2016-06-20 14:32:12 +03:00
Elie Mélois
6282baefd8 Ignore the case when getting a response header (#2250)
According to the RFC: https://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2
"Field names are case-insensitive".
For instance, Google Cloud Endpoints use "content-type" in the response.
2016-06-20 13:42:50 +03:00
Rossen Hristov
36fd83365c Fix tslint errors 2016-06-20 12:13:39 +03:00
Rossen Hristov
559a7c816e Implement the BorderDrawable class used in background.android.ts in Java
Resolves #2318
2016-06-20 11:30:52 +03:00
Nedyalko Nikolov
9ac40a5acb Fixed sorting issue with Css Selectors with same specificity. 2016-06-17 13:34:15 +03:00
Nedyalko Nikolov
7fbfc92155 Fixed issue #1655 cascading css selectors. 2016-06-16 09:43:19 +03:00
Rossen Hristov
5c4dbde98c Add unit test for SearchBar.textFieldHintColor on iOS
Related to #1807
2016-06-15 14:09:11 +03:00
Hristo Hristov
3962ac11a2 AffectsLayout done only for iOS. Android will invalidate itself when needed. (#2307) 2016-06-14 16:44:09 +03:00
Rossen Hristov
be62b27e1d Refactoring 2016-06-14 14:42:25 +03:00
Rossen Hristov
68c705b56f Decrease image size to fit on test device 2016-06-14 13:42:46 +03:00