Commit Graph

1075 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
Vasil Chimev
b0d1c9106a feat(tabs): emit tabStripItem tap event (#7693) 2019-08-20 13:35:58 +03:00
SvetoslavTsenov
7d265f2dec Merge remote-tracking branch 'origin/master' into vsetoslavtsenov/merge-release-in-master 2019-08-20 01:00:52 +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
Svetoslav
1a0a417812 Merge branch 'master' into myankov/ios10-tabs 2019-08-16 10:53:45 +03:00
Martin Yankov
c0b8db4098 feat: flexbile font icon usage in tab navigation (#7672) 2019-08-15 17:32:48 +03:00
Vladimir Amiorkov
9877b202cd fix(hmr): close modal views during livesync #7668 (#7679)
chore: add unit tests to test that modal views are closed during hmr
2019-08-15 15:32:17 +03:00
Martin Yankov
f7f061202c fix(ios): handle tabs extended layout for ios 10 2019-08-15 11:09:22 +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
Lukas Naruševičius
1f8dca9077 Added fix for dialog not showing in ios modal (#7478) 2019-08-12 15:23:34 +03:00
SvetoslavTsenov
443d6b5dcb Merge remote-tracking branch 'origin/master' into tsenov/merge-release-in-master 2019-08-07 16:22:05 +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
129d899820 docs: add comments about how app.css+snapshot work 2019-08-02 17:04:05 +03:00
vakrilov
9113a04d80 refactor: return of missing css errors 2019-08-02 15:46:04 +03:00
vakrilov
fed360d763 refactor: add __snapshot in d.ts and fix checks 2019-08-02 11:35:07 +03:00
Alexander Djenkov
056d0bf9e4 fix(bottom-navigation): codebehind creation (#7624)
does not show tabstrip
2019-08-02 09:46:09 +03:00
Alexander Djenkov
2518655ab3 fix(tabs-android): tabStripItem color not applied (#7617) 2019-08-01 10:02:05 +03:00
Martin Yankov
ef84afeedf Merge branch 'master' into myankov/merge-release 2019-07-26 14:42:25 +03:00
Martin Yankov
f00b370dbb fix(tabs): tab bar not visible when nested in layout (#7544) 2019-07-26 13:53:55 +03:00
Martin Yankov
9fd5ddc9e3 fix(android): remove wait for doubletap if no gesture recognizer (#7584) 2019-07-25 21:56:01 +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
Svetoslav
530e97b974 Merge branch 'master' into djenkov/limit-bottom-navigation-items 2019-07-22 14:18:09 +03:00
Alexander Djenkov
4511c76f49 fix(tabs-ios): crash when setting tabStripItems through items property (#7548) 2019-07-22 09:59:45 +03:00
Martin Yankov
8e057c75b3 Merge branch 'master' into myankov/merge-release 2019-07-22 08:58:04 +03:00
Alexander Djenkov
46c17ca3a4 fix(bottom-navigation): crash when tab selected with no item (#7527) 2019-07-19 17:09:40 +03:00
Alexander Djenkov
b64bc96d32 Merge branch 'master' into djenkov/limit-bottom-navigation-items 2019-07-17 09:24:55 +03:00
ADjenkov
5815246cfc feat(bottom-navigation-ios): limit to 5 items 2019-07-16 15:48:11 +03:00
SvetoslavTsenov
abc143eeac Merge remote-tracking branch 'origin/master' into svetoslavtsenov/merge-release-in-master 2019-07-16 13:26:15 +03:00
Alexander Djenkov
ca22ba9391 fix(tabs-android): wrong tabStripItem selected (#7522) 2019-07-16 10:18:01 +03:00
Alexander Djenkov
10801557d0 fix(bottom-navigation-android): tabStripItem backgroundColor (#7504) 2019-07-11 13:29:00 +03:00
Manol Donev
c0c79f31cf fix(ios-tabs): item appearance toggle b/n titles and images (#7502) 2019-07-11 00:35:38 +03:00
Martin Yankov
d8262a624e feat: add font icons to image actionbar and tab navigation (#7498) 2019-07-10 21:05:45 +03:00
Martin Yankov
30fc585425 feat: add css support for tabs widget (#7491) 2019-07-10 19:22:55 +03:00
Alexander Vakrilov
aed1daa8f5 fix: Missing app.css error in playground (#7499) 2019-07-10 18:39:21 +03:00
Vasil Chimev
eb1ed3e4ec refactor(bottom-navigation): strip item creation (#7477)
* feat(ios-tabs): tab bar item appearance

Implements https://github.com/NativeScript/NativeScript/issues/7436 and https://github.com/NativeScript/nativescript-angular/issues/1884.

* refactor(ios-tabs): move _hasImage and _hasTitle properties

* feat(ios-bottom-navigation): create tab bar from image nad label

Implements https://github.com/NativeScript/nativescript-angular/issues/1893 for iOS.

* feat(android-bottom-navigation): create tab item spec from image and label

Implements https://github.com/NativeScript/nativescript-angular/issues/1893 for Android.

* chore: remove console.logs
2019-07-10 17:37:45 +03:00
Vasil Chimev
c34a48ac77 refactor(tabs): strip item appearance and creation (#7466)
* test(e2e): add tab strip items pages

* fix(ios-tabs): a crash on swiping a content item

Fixes https://github.com/NativeScript/NativeScript/issues/7459.

* feat(android-tabs): create tab item spec from image and label

Implements https://github.com/NativeScript/nativescript-angular/issues/1884 for Android.

* feat(ios-tabs): tab bar item appearance

Implements https://github.com/NativeScript/NativeScript/issues/7436 and https://github.com/NativeScript/nativescript-angular/issues/1884.

* refactor(ios-tabs): move _hasImage and _hasTitle properties
2019-07-10 16:05:45 +03:00
Manol Donev
c42bf0a6d0 refactor(bottom-navigation): event emitters (#7490) 2019-07-10 14:58:02 +03:00
Manol Donev
3c1e2a35d9 refactor(android): no transition duration to 1ms (#7486) 2019-07-10 13:57:01 +03:00
Martin Yankov
c9a0b71c37 feat: add css for tabstripitem for bottom navigation ios (#7482) 2019-07-10 09:59:04 +03:00
Martin Yankov
fab9c90007 feat(bottom-navigation-android): add tabstripitem css support (#7458)
* wip: add background color placeholders for tabstripitem

* feat: add css for tabstripitem for bottom navigation android

* chore: update example

* fix: revert native default index

* clean up tabcontentitem

* update setTabBarItemTextTransform

* textTransform inherited css property now

* fix(android-bottom-navigation): fragment detach logic

* chore: fix tests

* fix(android-bottom-navigation): fragment lifecycle logic

* fix: revert text-transform inherited css property
2019-07-09 13:33:32 +03:00
Alexander Djenkov
6e1e0e843a fix(android-tabs): tabstripitem tap does not change tabs (#7468) 2019-07-08 02:12:39 -07:00
Alexander Vakrilov
8756b3da16 refactor: HMR and webpack improvements (#7462)
* chore: update project

* refactor: clear module-name cache on orientation

* feat: add custom component in qualifiers app

* feat: enable HMR for custom components

* refactor: remove redundant check

* chore: clean console.log
2019-07-08 11:11:14 +03:00
Alexander Djenkov
e0fad4133b fix(bottom-navigation): current TabContentItem index not set (#7453) 2019-07-04 10:02:17 +03:00
Alexander Djenkov
97a2af27f9 fix(tabs): current TabContentItem index not set (#7441) 2019-07-03 22:32:16 +03:00
Manuel Saelices
d985c33de3 chore: require relative path within tns-core-modules (#7367) 2019-06-28 18:23:39 +03:00
Alexander Vakrilov
8851835cb1 refactor(builder): handle modules with "/" or "~/" (#7418) 2019-06-28 15:38:42 +03:00
Martin Yankov
43534502f9 feat: add background color css to tab strip (#7414) 2019-06-28 10:07:33 +03:00