147 Commits

Author SHA1 Message Date
6b0028afd7 fix(bindable): parent referenced expression-values now load properly using an update call (#8670)
closes #8666 
closes #6981 
closes #5054
2020-06-29 22:28:04 -07:00
ec17727e91 fix(text-view): only reload text if hint is showing on ios (#8662) 2020-06-29 22:18:25 -07:00
bd12bafb4a feat(ImageSource): resize method (#8678) 2020-06-29 22:17:39 -07:00
b5b2db9093 chore: syntax error correction in comments for property of View, originX and originY. (#8669) 2020-06-24 16:46:32 -07:00
7d364474c2 feat(text-view): allow easy subclassing on ios (#8663) 2020-06-23 22:23:49 -07:00
4d57ced35f chore(release): 6.5.8 2020-06-20 08:49:11 -07:00
acddd1f34d chore: testing #8637 (#8658)
Co-authored-by: Dimitris - Rafail Katsampas <katsampasdr@gmail.com>
2020-06-19 15:36:13 -07:00
41a21ea916 fix(enums): add Visibility.hidden (#8655)
closes #8653
2020-06-18 08:45:04 -07:00
4f64bace62 fix(module-name-resolver): livesync page qualifier handling (#8637)
closes https://github.com/NativeScript/NativeScript/issues/8622

Co-authored-by: Dimitris - Rafail Katsampas <katsampasdr@gmail.com>
2020-06-17 20:12:11 -07:00
4f65beab33 chore(release): 6.5.7 2020-06-17 14:43:21 -07:00
0ca838ed0c fix(span): value handling for strings and numbers (#8651)
closes https://github.com/NativeScript/NativeScript/issues/8647
2020-06-17 11:07:38 -07:00
29541b89b1 chore(release): 6.5.6 2020-06-16 15:31:53 -07:00
9afa15fa71 fix(ios): gesture handling resilience when views are destroyed quickly (#8645)
closes https://github.com/NativeScript/NativeScript/issues/8641
2020-06-16 15:18:48 -07:00
5cacc25aa7 fix(text-base): apply dynamic text color change on button for ios (#8635) 2020-06-16 12:45:23 -07:00
c73952f364 feat(android): Implementing 'onBackPressed' for frame-root (#8634)
Useful for meddling with tab-navigated apps.

Co-authored-by: Dimitris - Rafail Katsampas <katsampasdr@gmail.com>
2020-06-13 13:46:57 -07:00
3198f92580 chore(release): cut 6.5.5 release 2020-06-09 22:56:54 -07:00
eb4c61fc41 fix(text-base): letter spacing for textfield (#8627)
closes https://github.com/NativeScript/NativeScript/pull/8626
closes https://github.com/NativeScript/NativeScript/issues/4892
2020-06-09 22:44:16 -07:00
ae06202af5 chore: cleanup 2020-06-07 19:37:17 -07:00
d3549ac115 fix(text-base): update text color for ios (#8617) 2020-06-06 14:08:36 -07:00
faa0181b9c feat(text-base): Add Span vertical-align support (#8257) 2020-06-06 14:03:05 -07:00
e2a9af2bc7 fix(text-base): apply letter spacing in ios text field (#8618) 2020-06-06 10:41:42 -07:00
484617cb2c chore: cut 6.5.4 release (#8613)
* chore: cut 6.5.4 release

* chore: changelog
2020-06-04 21:25:21 +02:00
7f8070e247 chore: cut 6.5.3 release (#8610) 2020-06-03 16:55:40 -07:00
b015eeed51 fix(ios): dialog handling with top view controller (#8609) 2020-06-03 12:42:10 -07:00
446163d3f8 fix: fix ios hmr (#8559) 2020-05-08 11:20:32 +03:00
50e58fa19f fix (android/TextField): set focusable, clickable to false when editable is false (#8525)
Do not clear key listener when editable is false This prevents the input type to be changed.
Instead, we can set focusable, clickable to false.
This allows to change input Type i.e (secure) at run time when editable is false.

Reference issue: https://github.com/NativeScript/NativeScript/issues/8523

Co-authored-by: Vasil Trifonov <v.trifonov@gmail.com>
2020-04-14 12:36:54 +03:00
7cf3c978fd feat: setProperty on Observable (#8521)
* feat: setProperty on Observable

* refactor: add missing whitespace

Co-Authored-By: Vasil Trifonov <v.trifonov@gmail.com>

Co-authored-by: Vasil Trifonov <v.trifonov@gmail.com>
2020-04-14 09:57:29 +03:00
f0149dae7d refactor for easy subclassing and new features (#8514) 2020-04-10 16:44:49 +03:00
f7ab4ba3c9 fix: the css parser should handle empty nodes (#8503) 2020-04-06 08:53:12 +03:00
bd9828a036 feat(utils): work openFile in simulator (#8495)
* feat: open file in iOS simulator

* feat: added isRealDevice util

* feat: have in mind isRealDevice in utils.openFile

refactor to avoid some circular dependencies

Co-authored-by: Vasil Trifonov <v.trifonov@gmail.com>
2020-04-03 19:44:47 +03:00
50eb372929 fix(css): parse css selectors with escape sequences (for real) (#8496)
* fix(css): CSS escape sequences

* Missing semicolon

Co-authored-by: Vasil Trifonov <v.trifonov@gmail.com>
2020-04-03 19:43:52 +03:00
ad9daa825f fix: dont default to Font.default (#8401)
* fix: dont default to Font.default

This would cause a font to be set for any label even when using default system font.
This will also cause a typeface which is pretty long

* lint: lint fixes

* fix: added null font guards

* fix: Used default bold for TabView

Co-authored-by: Vasko <v.trifonov@gmail.com>
2020-04-03 16:40:14 +03:00
c150b11bf1 Merge branch 'release' 2020-04-02 12:03:20 +03:00
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
e421129458 fix: do not clear androidView._cachedDrawable (#8475) 2020-04-01 17:42:24 +03:00
2b06adca27 fix: call to nativeView (#8488) 2020-04-01 17:41:58 +03:00
511415fb1f release: cut the 6.5.1 release (#8470)
Release 6.5.1.
2020-03-29 14:57:06 +03:00
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
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
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
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
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
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
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
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
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
89ee60be00 chore: bump version to 6.6.0 2020-03-18 16:46:09 +02:00
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>
2020-03-17 10:10:12 +02:00
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
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