Commit Graph

329 Commits

Author SHA1 Message Date
Nicu
b6ff4d376a fix: dots can now be used in module names (#7655)
Only known extensions are stripped from the end of module names
2019-08-21 00:01:53 +03:00
Morten Sjøgren
673c8087e0 feat: implement css-variables and css-calc (#7553)
* feat: implement basic support for css-variables

* fix(test): test-watch-android and test-watch-ios was broken

* fix: processing css-variables belong in CssProperty-classes

Not in the StyleScope.

* fix(css-variables): set style attribute override value from css-classes

* feat: add css calc-support using 'reduce-css-calc'

* fix(tslint): missing semicolon and incorrect quotemark

* feat: move css-variable handling to Style-class

* chor: add comments explaining css-variable implmentation

* chor: set css-variables before other style properties

* chor(css-variables): cleaning up

* chor: code style fixes

* test(CSS-CALC): Add tests for nested css-calc statements

* fix(CSS-CALC): dip-unit not supported by reduce-css-calc

* fix(tslint): use double quotemarks

* test(css-calc): test _cssCalcConverter directly

* chor(css-variables): rename and clean up _cssVariableConverter to _evaluateCssVariable

* chor: rename varname to varName for consistency

* chor: support css-calc and variables for normal properties

* chor: use string.replace to evaluate css-variables

* fix: Missing blank line before return

* chor: rename css-calc functions

* fix: undefined css-variables treated as 'unset'

* fix(tslint): use double quotemarks

* feat(css-variable): handle fallback values

* chor(css-variables): handle unsetValue

* chor: process css-calc and css-variables in style-scope

* chore: clean-up css-calc/variable expressions

* fix(css-calc): handle invalid expressions

* chore(CSSState): update comments

* chore(Style): rename css-variable functions

* chore(css-variables): describe fallback logic

* chore: move reset scoped css-variables to Style-class

* chore(CssState): simplify check for css expressions

* chore: add reduce-css-calc to /package.json
2019-08-20 00:56:56 +03:00
Vasil Chimev
3adba6826b feat: add CSS classes to app/modal root views to target platform/device/orientation/type (#7606) 2019-08-19 14:09:44 +03:00
Alexander Djenkov
72ca461f59 feat(tab-content-view): change tabContentItem to View (#7629) 2019-08-15 11:08:18 +03:00
Martin Yankov
acc3436d9f feat(tab): add support for custom tabstrip (#7580) 2019-08-14 17:34:18 +03:00
Alexander Vakrilov
90614b402e Merge branch 'master' into return-missing-css-errors 2019-08-05 13:56:38 +03:00
Alexander Vakrilov
d3c39c1a9f feat(GridLayout): Add synonym property column[Span] for col[Span] in GridLayout (#7641)
* add column synonym for col property grid layout

* refactoring

* refactor: implement column proxy props

* test: add tests for column and columnSpan props
2019-08-05 13:56:22 +03:00
vakrilov
9113a04d80 refactor: return of missing css errors 2019-08-02 15:46:04 +03:00
Alexander Djenkov
490cab0df9 fix(tabs-ios): unable to return to tab after tab with nested frame visited (#7574) 2019-07-25 15:00:42 +03:00
Martin Yankov
d8262a624e feat: add font icons to image actionbar and tab navigation (#7498) 2019-07-10 21:05:45 +03:00
Manol Donev
aa1c160465 chore: fix unit tests (#7501) 2019-07-10 20:40:49 +03:00
Alexander Vakrilov
8851835cb1 refactor(builder): handle modules with "/" or "~/" (#7418) 2019-06-28 15:38:42 +03:00
Alexander Vakrilov
9fcc1ddf94 feat(bundle): support for file qualifiers + builder refactor (#7386)
* feat(bundle): support for file qualifiers in builder

* chore: add qualifiers test app

* chore: add @Deprecated for file-name-resolver

* fix(hmr): hmr not working for scss files

* chore: globals clean-up

* shore: fix tslint

* tests: uncomment test fixed by ns-dev-webpack

* chore: move qualifiers app to e2e

* chore: update webpack config

* chore: tslint errors

* test: fix wrong css import
2019-06-26 18:40:18 +03:00
Manol Donev
4f39fb728b chore: update tslint rules (#7391) 2019-06-26 15:13:48 +03:00
Manol Donev
b20e771552 chore: remove deprecated apis for ns 6.0 (#7382) 2019-06-25 16:52:01 +03:00
Manol Donev
ecd9fc3e9d feat: bundle workflow support (#7337) 2019-06-20 15:58:36 +03:00
Martin Yankov
0c2c1ccfde feat: re-design tab views (#7340) 2019-06-13 11:01:55 +03:00
Alexander Djenkov
c5db112b8d feat(android): androidX support (#7039)
* feat: migrate support library namespaces to androidX

* feat(tns-platform-declarations): update to androidX typings

* chore(tests): migrate test apps to AndroidX

* chore(tns-platform-declarations): update tsconfig to include androidx dts files

* update package.json to androidx

* chore(androidx): migrate forgotten support library namspaces

* feat(tns-core-modules-widgets): migrate to AndroidX namespaces

* chore(utils): update androidx namspace for getPaletteColor method

* chore(apps): update tns-platform-declarations package

* Update package.json
2019-06-10 09:21:41 +03:00
Martin Yankov
7458e68844 Merge branch 'master' into animate-width-height 2019-05-21 14:12:14 +03:00
Alexander Vakrilov
37b53c6030 fix(text): crash when removing FormattedText (#7237)
* fix(text): crash when removing FormattedText

* refactor: fixed crash on ios too
2019-05-13 17:03:46 +03:00
Manol Donev
2bb5ff414d chore(android): disable test_ImageCache_ValidUrl on api19 2019-05-09 13:05:20 +03:00
Martin Yankov
08fae2fb8e Merge branch 'master' into animate-width-height 2019-05-08 08:52:36 +03:00
Luke Curran
4f79d2e2a1 fix(iOS): Image cache module not longer sets null in NSCache (#7171)
* Image cache module fix

* Cla verified | use const instead of let

* Image cache module fix

* Cla verified | use const instead of let

* Improve tests
2019-05-07 21:44:12 +03:00
Martin Yankov
a84b6301ed chore: fix tslint errors 2019-05-07 15:58:16 +03:00
Vasil Chimev
66d631ebca Revert "Revert "feat(animation): support animating width/height properties (WIP) (#4917)" (#5136)"
This reverts commit 8973a6febd.
2019-05-07 13:58:07 +03:00
Vasil Chimev
b7abb3dd64 fix: throw if failed to load component (#7186) 2019-05-01 14:16:18 +03:00
Manol Donev
34fe24732d chore: deprecate utils.ios.getter (#7054) 2019-03-22 17:33:21 +02:00
Vasil Chimev
3c2c1d9b69 feat(HMR): style views at runtime (#7012)
* feat(HMR): style view at runtime

test: module root view component

test: update livesync tests

refactor: _onLivesync function

* style: remove a comment

* refactor: rename the property
2019-03-13 13:24:49 +02:00
Martin Yankov
4a4bbfbad1 Merge branch 'master' into myankov/merge-release-master 2019-02-20 18:47:33 +02:00
Martin Yankov
09fa0856b8 fix(ios): opaque bars break ui layout (#6929)
* fix(ios): opaque bars break ui layout

* test(): change flat action bar tests

* test(): revert test flat change test
2019-02-20 18:46:14 +02:00
Martin Yankov
07194225b3 Merge branch 'master' into merge-release-master-5.2.1 2019-02-19 11:53:30 +02:00
Martin Yankov
5dd01a3cb9 fix(ios): searcbar hint color before hint property (#6902) 2019-02-14 16:21:19 +02:00
Vasil Chimev
44b8acd79c feat(HMR): apply changes in page styles at runtime when app root is a frame (#6857)
* feat(HMR): apply changes in page styles at runtime

* fix: livesync tests

* test: changeCssFile method

* refactor: address comments

Add a comment.
Update `let` to `const`.
Update `changesCssFile` test.

* test: add an assert
2019-02-14 14:03:13 +02:00
Martin Yankov
8330ac0ac1 fix(css): widget properties in css didn't work (#6889) 2019-02-13 15:10:06 +02:00
Manol Donev
60957799ad chore: restore tabroot/resetrootview tests (#6705) 2018-12-14 14:22:07 +02:00
Nicu
540b2b4f82 feat(view): added iOS parameter for modal presentation style (#6409)
* feat(view): added iOS parameter for modal presentation style

* Now passing options to showModal in one argument

* refactor: Move context and close in modal options

* chore: Comments added for UIModalPresentationStyle.Popover case

* refactor: Use modalOptions in e2e demo

* chore: fix pbroken test
2018-12-13 17:03:25 +02:00
Alexander Vakrilov
64bccb9bbc feat(modals): Enable modal dialog chaining in IOS (#6637)
* feat(modals): fire close callback after close in IOS

* chore(tests): Fix some test depending on the order of events
2018-11-30 12:05:33 +02:00
Martin Bektchiev
65e3a19f8c fix(tests): Sporadic failures after upgrade to WebKit 12.0 (#6635)
* An additional GC and wait are needed since WebKit upgrade to version 12.0
(TEXT-FIELD.testMemoryLeak test started failing sporadically)
* Compare colors by value because the runtime has started
to sometimes return instances with different addresses in memory
2018-11-29 16:14:13 +02:00
Eduardo Speroni
11d3884243 fix(android-styling): correctly detect if drawable uses ColorFilter (#6342)
* fix(android-styling): correctly detect if drawable uses ColorFilter

Treat a widget with a BorderDrawable background as any other, even if it's FilterOnly

If the drawable has been replaced with a new one, clear _cachedDrawable

Fixes #6341

* test(button): add test for changing border-radius and color in button

* test: fix test checks for IOS

* keep original drawable cached
2018-11-27 10:44:34 +02:00
Martin Yankov
9388a4e147 test(ios): add repeater and webview safe area tests (#6578) 2018-11-19 16:46:12 +00:00
Manol Donev
8e83a61879 chore: remove flaky test (#6548) 2018-11-12 15:28:07 +02:00
Manol Donev
4c08839459 test: add test for #6490 (#6517) 2018-11-06 16:57:38 +02:00
Todor Petrov
1485445123 test(safe-area): add layoutChanged test (#6462) 2018-11-06 11:26:23 +02:00
Martin Yankov
0002624d3c feat(frame): add new actionBarVisibility property (#6449) 2018-10-24 14:51:43 +03:00
Martin Yankov
a211bbdbdc test(safe-area): fix ios 12 landscape tests (#6434) 2018-10-19 18:48:20 +03:00
Rakesh Girase
a3f149325f 5620 GridLayout addChild to set row and column (#6411) 2018-10-19 15:20:41 +03:00
Alexander Vakrilov
a93e418a66 tests: Frame tests refactor (#6406) 2018-10-18 13:49:55 +03:00
Manol Donev
307172003d fix: nested fragments interact thru child fragment manager (#6293) 2018-10-11 17:44:30 +03:00
Manol Donev
b2246ad089 chore: fix nav tests with cli next (#6374) 2018-10-10 15:52:23 +03:00
Vasil Chimev
0f067a03ca fix-next(flexbox): flex end for justify content (#6337)
* fix-next(flexbox): flex end for justify content

* refactor: add lessOrCloseEnough assert method
2018-10-03 16:39:39 +03:00