261 Commits

Author SHA1 Message Date
6649fcfa66 Merge pull request #4159 from NativeScript/fix-btn-span
FIX: Span with unknown font-family crash
2017-05-11 10:32:49 +03:00
6b10e94005 FIX: Span with unknown font-family crash 2017-05-10 18:42:23 +03:00
af38cf5f3e Create css combnators tests page in apps
Setup direct siblings apps tests

Fix direct child test

Add direct sibling test on class and type element

Add sibling combinator handling for id selectors

Completely redo sibling selector and add attributes and pseudo class selectors tests

Handle sibling via a custom group instead of a selector

Fix Selector groups creation

Add unit test for sibling selection

Fix tslint errors
2017-05-09 11:29:11 +03:00
502a37d27c Fix ios placeholder implementation (#4067)
* Fix https://github.com/NativeScript/NativeScript/issues/4043

* Merge ios & android implementation
2017-04-26 14:27:24 +03:00
e26032f5fe Revert the translateX/Y to be in dip 2017-04-25 14:49:12 +03:00
9e3222781a backgroundImage property now use Fetcher & Cache as Image component (#4030)
* backgroundImage property now use Fetcher & Cache as Image component
Fix GridLayout tests on iPhone Plus - actualLength wasn’t rounded
ImageCache is closed when activity is stopped

* Fix reset of background drawable.

* additional check for drawable

* imageCache init cache on activity Started
2017-04-21 16:50:12 +03:00
c59077161f Merge pull request #3995 from Cayan/patch-1
Permissions update at connectivity module
2017-04-20 10:57:21 +03:00
e44f7f3f6c Merge pull request #4020 from NativeScript/buhov/path-fix
Fix relative path in a unit test
2017-04-19 19:51:45 +03:00
47aa179580 Merge pull request #3967 from NativeScript/tsonevn_edit_md_files
example how to use selectedTabTextColor, tabBackgroundColor, textTran…
2017-04-19 15:42:49 +03:00
3c0340c164 Fix relative path 2017-04-19 15:15:10 +03:00
b46fa0dbc1 Permissions update at connectivity module
Small note added.
2017-04-14 13:27:32 -03:00
e2b9bbd690 add sample code snippet for androidSelectedTabHighlightColor 2017-04-12 13:16:59 +03:00
6c72c07f3a uncommented code snippet 2017-04-11 11:50:43 +03:00
1666aa9431 related to https://github.com/NativeScript/docs/issues/336 2017-04-10 14:15:16 +03:00
e56baed0b7 example how to use selectedTabTextColor, tabBackgroundColor, textTransform 2017-04-10 13:28:48 +03:00
d427c9ed8f WebView NavigationType converted to type 2017-04-06 11:23:48 +03:00
59e34f0bfc Merge pull request #3938 from NativeScript/fix-border-and-corner-radius-tests
The asserted border and corner radius values were not rounded, we now round on dip to px conversion
2017-04-06 09:52:05 +03:00
f350f7191d textTransform, whiteSpace & textAlignment defaultValue is now “initia” (#3948)
removed enum namespaces
add valueConverter to clipToBounds
2017-04-06 09:50:37 +03:00
5387793011 The asserted border and corner radius values were not rounded, we now round on dip to px conversion 2017-04-04 16:08:51 +03:00
5f14fc6a23 text-decoration won’t be applied to edit-text (#3932)
* text-decoration won’t be applied to edit-text

* stop printing slow tests

* remove console line

* fix failing tests

* fix wrong checks
2017-04-04 13:50:34 +03:00
120230c297 ios cornder radius is rendered as circle now (#3915)
* ios cornder radius is rendered as circle now

* fix failing test
2017-03-31 16:18:12 +03:00
7a1f1b2b80 Merge pull request #3891 from NativeScript/tab-view-text-transform
Initial value for text transform
2017-03-31 09:57:56 +03:00
be85af4a0d Text transform - no default value 2017-03-30 18:35:55 +03:00
9f0f3b1a5d Remove imports from some d.ts unit-tests 2017-03-29 17:23:50 +03:00
e6250e718a Disable recycling of native views
createNativeView will set iOS nativeView if it is null/undefined
2017-03-28 18:08:59 +03:00
c18a76c93a rename:
_createNativeView to createNativeView;
_initNativeView to initNativeView
_disposeNativeView to disposeNativeView
_resetNativeView to resetNativeView
2017-03-28 18:08:59 +03:00
f2898f84d5 NativeView recycled for android 2017-03-28 18:08:59 +03:00
04b9b39c65 Fix doc snippets. (#3882)
* Remove a duplicate snippet: image-create-datauri
* Remove a reference to a missing snippet: console-dump
* Readd a missing snippet: imagesource-resname
* Fix a broken snippet reference: timer-set-ten
* Fix a broken snippet reference: timer-set-fifty
2017-03-28 11:04:37 +03:00
2b28730011 Split get/set native to getDefault setNative 2017-03-22 16:37:52 +02:00
a09320295e typo 2017-03-17 11:04:03 +02:00
e151c4dc4e Fix TabView args.object for selectedIndexChangedEvent (#3800)
Add assert in existing test
Code formatting
2017-03-15 17:25:02 +02:00
7b5ef052fd Tests moved into separate folders (#3794)
Fix android crash on application exit
2017-03-15 12:26:54 +02:00
a64bba62aa whiteSpace default value change to undefined (#3782)
TKUnit default message change to empty string
isSet method is now instance method of Property classes
fix detaching from parent bindingContext - were using oldParent.parent instead of parent
editable-text-base.android - onTextChanged implementation commented. Does nothing.
frame - onCreateView wrapped in try/catch and shows label with exception message if any
text-base.android - should support reset of nativeView. TransformationMethod won’t be set if TextField is secure
Change some types to their string couterparts
TextField.android won’t support multilines anymore in order to work as iOS
In android when page is removed from native backstack we won’t call tearDownUI again a second time
2017-03-14 10:26:45 +02:00
84819f6c9a Implemented placeholder-color for text-view IOS 2017-03-13 18:12:11 +02:00
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
4f36a07634 Fix iOS corner radiuses dip incorrectly converted 2017-03-10 11:02:01 +02:00
1d49f5f3c3 fix padding on text-view & text-field (#3758)
* fix padding on text-view & text-field
text-base is now snapshotable
view.android is now snapshotable

* createNativeView returns the nativeView for android
Fix image tests
Implement test for image loaded from res://
EffectivePaddings updated when nativeView have some from its native theme
2017-03-09 16:09:53 +02:00
0b4e38acab Merge pull request #3759 from NativeScript/update-deps
Update apps and test modules deps to *
2017-03-09 09:43:59 +02:00
17650d2e9a Merge pull request #3755 from NativeScript/yosifov/fix-text-field-snippet
Fix text field code snippet
2017-03-08 17:26:51 +01:00
3024e69bb5 Update apps and test modules deps to * 2017-03-08 18:09:18 +02:00
c008d00152 Fix text field code snippet 2017-03-08 14:30:02 +02:00
6d6564af16 Fix dp vs dip conversions in iOS for errors of tests 2017-03-08 09:24:31 +02:00
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
ea22eb9c20 refactoring circular imports 2017-03-06 14:05:55 +02:00
7bb457ef2b Upgrade to TypeScript 2.2
Fix typings, remove Request, etc clashes with the new lib.dom.d.ts
2017-02-24 17:28:18 +02:00
06970d058a Mass replace fontAttributes with fontWeight and fontStyle 2017-02-23 17:09:19 +02:00
ac90b9db2b Fix a crash when nesting a ProxyViewContainer in FlexboxLayout.
Conflicts:
	tns-core-modules/ui/layouts/flexbox-layout/flexbox-layout.ios.ts
2017-02-23 15:23:34 +02:00
f3afaf5abe fixed tslint errors 2017-02-20 09:45:10 +02:00
a582adc561 Hhristov/fix (#3653)
* Fix action-bar systemIcon
Fix CSS applying

* refactoring

* fix console

* remove StyleScope import - it is private and cannot be imported in public .d.ts
2017-02-17 17:21:57 +02:00
b2cf286948 Fixed text decoration tests, Color will now store just a single argb info in 32bit unsigned int internally and covert to a/r/g/b or hex when necessary 2017-02-17 14:45:31 +02:00