Commit Graph

6854 Commits

Author SHA1 Message Date
Vasil Trifonov
fc8f7696e6 fix(tabs): dynamic styling fixes (#8479)
* fix(tabs): dynamic styling fixes - iconSource
selectedItemColor and unSelectedItemColor

* fix(tabs): bottom nav item color fix

* chore: remove unneeded method calls

* chore: remove unneeded console.log

* fix: fixing build

* fix(tabs): resources passing

* fix(tabs): setting item colors

* test: updated dynamic color tests

* chore: fix automationText
2020-04-02 11:59:19 +03:00
Vasil Trifonov
e421129458 fix: do not clear androidView._cachedDrawable (#8475) 2020-04-01 17:42:24 +03:00
Nick Iliev
2b06adca27 fix: call to nativeView (#8488) 2020-04-01 17:41:58 +03:00
Hk-tang
dc7215fb02 build: remove unecessary permission grant (#8464)
Granting WRITE_EXTERNAL_PERMISSION implicitly adds READ_EXTERNAL_PERMISSION
2020-03-30 18:47:39 +03:00
Dimitar Topuzov
511415fb1f release: cut the 6.5.1 release (#8470)
Release 6.5.1.
2020-03-29 14:57:06 +03:00
Vasil Trifonov
0a7bee61d9 fix(tabs): dynamic styling colors fixed (#8460)
* fix(tabs): dynamic styling colors fixed

* test(tabs): adding dynamic color change test
2020-03-26 19:15:27 +02:00
Bundyo (Kamen Bundev)
c9cea472ca refactor(css): attribute selectors match web counterparts (#7848)
* Improve CSS selector parsing/matching by 30% - 40%
  with some JavaScript optimization and excluding ProxyViewContainer from the process
Change the specificity to be divisible to 10

* fix: selector match

* fix: lint errors

* refactor: restore processing of ProxyViewContainer

* chore: lower the number of expected cycles

* fix: some css selector fixes

Co-authored-by: Manol Donev <manol.donev@gmail.com>
Co-authored-by: Manol Donev <manoldonev@users.noreply.github.com>
Co-authored-by: Vasil Trifonov <v.trifonov@gmail.com>
2020-03-26 19:04:42 +02:00
Vasko
5c3ba11d95 chore: git ignore fix 2020-03-26 16:21:00 +02:00
Bundyo (Kamen Bundev)
66cc8a477e fix(button-android): use setMinWidth to set TextView widgets min-width (#7804)
* fix: setMinimumWidth does not really set the minWidth for TextView widgets

* chore: fix versions

* refactor(android): default minWidth/Height values for button

* reafctor: reset minWidth when view is in flexbox for backcompat

* refactor: ensure back-compatible layout for btns

* chore: cut 6.5.0 release (#8443)

* release: cut 6.5.0 release

* Update CHANGELOG.md

* Update CHANGELOG.md

Co-authored-by: Vasil Trifonov <v.trifonov@gmail.com>

Co-authored-by: vakrilov <alexander.vakrilov@telerik.com>
Co-authored-by: Dimitar Topuzov <dtopuzov@gmail.com>
Co-authored-by: Vasil Trifonov <v.trifonov@gmail.com>
2020-03-26 13:07:04 +02:00
Nicu
1f04469fb3 feat(css-bkg-pos): Added possibility to declare background pos by single numeric value (#7958)
* feat(css-bkg-pos): Added possibility to declare background pos by single numeric value

* feat(css-bkg-pos): Implemented numeric bkg pos for iOS

* feat(css-bkg-pos): removed unnecessary code

Co-authored-by: Vasil Trifonov <v.trifonov@gmail.com>
2020-03-24 10:17:35 +02:00
Nathan Walker
42fc4acea3 feat(ios): textfield option to disable iOS autofill strong password handling (#8348)
* feat(ios): textfield option to disable autofill strong password handling

* chore: api change report
2020-03-23 12:16:40 +02:00
Vasil Trifonov
8ab0e72bc9 feat: TappableSpan support (#8256)
* feat(android): clickable span

Initial support for clickable span on Android

* test: clickable-span test page

* remove console.log

* use _emit instead of notify

* rename clickable to tappable in Span

* updated NativeScript.api.md

* chore: fixing tslint errors

* chore: fixed witespacing

* moved and improved test page

* feat: tappable span iOS implementation

Co-authored-by: Eduardo Speroni <edusperoni@gmail.com>
2020-03-20 18:37:34 +02:00
Luke Curran
92b5b02bf5 feat(text-field): add closeOnReturn property to avoid auto dismissing… (#8347)
* feat(text-field): add closeOnReturn property to avoid auto dismissing input on return press

* tslint

* Update NS public api

Co-authored-by: Vasil Trifonov <v.trifonov@gmail.com>
Co-authored-by: Dimitar Topuzov <dtopuzov@gmail.com>
2020-03-20 10:19:53 +02:00
Sam Donald
8dbb623944 fix: update tap event data (#8415)
* Update tap event data object

Adds a:

- TabGestureEventData interface, which can be used for both tap and doubleTap events.

- The event object returned by both tap and doubleTap events now have getX(), getY(), and getPointersCount() methods. These facilitate the same function as those of the touch event object.

* ui(gesture): getX,getY in DIP

Updates the getX() and getY() methods of Tap, doubleTap and touch events to return DIP instead of DP.

* ui(gesture): tap event data includes location

Tap and doubleTap event data now include getX and getY methods for event location. These are in DIP format.

getPointerCount is also available.

* Fix tslint errors

* fix minor formatting issues for api-extrector
2020-03-19 12:51:23 +02:00
Martin Guillon
4a67a3b73f fix: dont create an actionbar if not necessary (#8402)
* fix: dont create an actionbar if not necessary

For now i kept the commented code so that you can see the change.
Also i changed the android check to behave like iOS

* rollback. we now try an make sure the actionbar  is created only if needed

* actually we should check for false
2020-03-19 11:00:29 +02:00
Vasil Trifonov
89ee60be00 chore: bump version to 6.6.0 2020-03-18 16:46:09 +02:00
Dimitar Topuzov
8759aa000d chore: cut 6.5.0 release (#8443)
* release: cut 6.5.0 release

* Update CHANGELOG.md

* Update CHANGELOG.md

Co-authored-by: Vasil Trifonov <v.trifonov@gmail.com>
6.5.0
2020-03-17 10:10:12 +02:00
Vasil Trifonov
8dbec723f6 Merge branch 'release' 2020-03-16 14:31:26 +02:00
Vasil Trifonov
270988d26e Added iconClass property to TabStripItem (#8440)
* chore: ignore e2e folder's other subfolders

* feat: added iconClass to tabStripItem
2020-03-16 14:22:24 +02:00
Vasil Trifonov
243dc98005 Added selectedItemColor and unSelectedItemColor to the TabStrip (#8431)
* chore: add guard for ios

* feat(bottom-nav): adding new properties

* feat(tabs): new property implementation

* feat: new feature implementation in android

Implemented selectedItemColor and unSelectedItemColor properties on TabStrip

* chore: added some comments

* chore: change method return type

* fix: setting icon color

* fix: rendering mode setting

* chore: rename variable

* chore: fixed a typo

* chore: updated log in build gradle

* fix: item color setting in android

* fix: tab styling when no css aplied

* chore: private methods renamed

* tests: added selected-item test pages

* chore: renamed test pages

* chore: move css-tree package to the right place

* tests: added new ui tests

* fix: use renamed function

* fix: set item color

* tests: aded automationText attribute

* tests: trying to fix the tests

Co-authored-by: Dimitar Topuzov <dtopuzov@gmail.com>
2020-03-16 12:54:30 +02:00
Vladimir Mutafov
e081340665 fix: Fix issue for view not being removed from its parent (#8432) 2020-03-13 12:57:38 +02:00
Martin Bektchiev
18a9b1aea8 fix(d.ts): Update iOS typings iOS 13.2 (#8430)
* chore: Update typings using iOS SDK 13.2 (Xcode 11.3.1)

* chore: Update iOS typings using the latest runtime
This fixes arguments of global functions.
See https://github.com/NativeScript/ios-runtime/pull/1250

* chore: Strip MDC types attached to other modules
  * Delete via regex from generation script
  * Apply regex to current typings
2020-03-13 10:37:30 +02:00
Dimitar Topuzov
2b5e8e935b Merge pull request #8338 from MCurran16/doubleTap-location
feat(gestures): add tap location getX() and getY() to double tap event data
2020-03-11 08:43:17 +02:00
Dimitar Topuzov
bf02f7a332 Merge branch 'master' into doubleTap-location 2020-03-10 18:23:49 +02:00
Dimitar Topuzov
916ec8b1a0 Merge pull request #8380 from NathanaelA/fix_css_styles
fix(css): parse issue with new Webpacked AST css/scss files
2020-03-10 18:15:04 +02:00
Dimitar Topuzov
b13f4d058c Merge branch 'master' into fix_css_styles 2020-03-10 16:09:14 +02:00
Dimitar Topuzov
64fc3e020c Merge pull request #8423 from msaelices/master
TypeScript definitions for the css-tree-parser.ts file
2020-03-10 16:08:23 +02:00
Dimitar Topuzov
3543ec7cb9 Merge branch 'master' into master 2020-03-10 14:17:50 +02:00
Dimitar Topuzov
65a149a826 Merge pull request #8418 from mylmz10/master
fix(android): Set length value to auto when length is undefined
2020-03-10 14:17:18 +02:00
Muammer YILMAZ
39473ecd65 Merge branch 'master' into master 2020-03-10 09:43:28 +03:00
Luke Curran
4952ca606f Merge branch 'master' into doubleTap-location 2020-03-09 13:36:21 -05:00
Vasil Trifonov
458943111e Tabs styling improvements (#8366)
* fix(tabs): delay loadView when animation runs

* chore: update api.md

* chore: remove unnecessary casting

* test: Added disabled test for changing tabs

* tabs(ios): added tabs styling in ios

* tabs: added iosAlignment property

* tabs: textTransform support

* tabs: iosAlignment moved to tabstrip

* test: add frame-in-tabs test

* chore: addressing PR comments

* chore: addressing PR comments

* chore: call method on the instance instead of call

* chore: move IOSAlignment property

* chore: update comments

* fix: texttransform to tabstrip in bottomnavigation

* chore: add new item to native-api-usage

* chore: remove unneeded setNativeView call

* chore: removed unneeded check

Co-authored-by: Dimitar Topuzov <dtopuzov@gmail.com>
2020-03-09 15:24:26 +02:00
Manuel Saelices
a3c881fd5e TypeScript definitions for the css-tree-parser.ts file 2020-03-09 01:15:50 +01:00
Manuel Saelices
b31114b9d7 Solving previous merge conflict 2020-03-09 01:12:54 +01:00
Manuel Saelices
4a41be5d91 Merge remote-tracking branch 'upstream/master' 2020-03-09 01:08:34 +01:00
Manuel Saelices
3a96a1b927 Merge branch 'master' of github.com:msaelices/NativeScript 2020-03-09 01:05:02 +01:00
mylmz10
1a316b8a72 Set length value to auto when length is undefined 2020-03-07 20:32:48 +03:00
Dimitar Topuzov
286fcd3f75 Merge pull request #8412 from NativeScript/trifonov/icon-fix-bottom
fix(bottom-nav): align text with different icons
2020-03-07 15:54:17 +02:00
lukecurran
46628ffdb1 refact: locationX/locationY -> getX()/getY() 2020-03-06 10:25:37 -06:00
Vladimir Mutafov
401992dcc3 Merge branch 'master' into fix_css_styles 2020-03-06 15:25:31 +02:00
Vasko
9d4e482b38 fix: added null guard 2020-03-06 14:35:57 +02:00
Vasko
1c46d748a0 chore: addressing review comments 2020-03-06 11:12:22 +02:00
Vasil Trifonov
9830be7230 fix(bottom-nav): align text with different icons 2020-03-05 15:35:07 +02:00
Luke Curran
6668468ada Merge branch 'master' into doubleTap-location 2020-02-27 09:04:56 -06:00
Dimitar Topuzov
c88fd4a633 Merge pull request #8389 from NativeScript/vtrifonov-patch-1
chore: update CHANGELOG.md
2020-02-27 13:56:09 +02:00
Vasil Trifonov
3e5816fb78 Update CHANGELOG.md 2020-02-27 12:07:25 +02:00
Dimitar Topuzov
60f6d2e52b chore: release 6.4.2 (#8388)
* release: cut the 6.4.2 release

* chore: fix release notes
2020-02-27 12:03:59 +02:00
Vasil Trifonov
23130b73e1 chore: change version for patch 6.4.2 2020-02-27 10:54:48 +02:00
Vasil Trifonov
864b51232b Merge branch 'release' 2020-02-27 10:51:52 +02:00
Vasil Trifonov
062c620acb Bottom nav color ios fix (#8384)
* fix(bottom-navigation): color in ios fix

* chore: improving fix and added description

* chore: typo fix

* chore: updated comment

* chore: condition check updated
2020-02-27 10:40:00 +02:00