Commit Graph

15 Commits

Author SHA1 Message Date
Panayot Cankov
1cbb1e8d0d feat(webpack): mark the CSS type for stylable views explicitly (#5257)
We want webpack's uglification to mangle function and class names
but that's what the current implementation of the CSS in {N} relys on
to get the CSS type for each view when targeted by CSS type selectors.

The implementation is changed a little so now the CSS type can be set
directly on the prototype of each View class or for TS, through decorator.

BREAKING CHANGES:


Extending classes requires marking the derived class with @CSSType
The root classes are not marked with CSSType and classes derived from ViewBase and View
will continue to work as expected. More concrete view classes (Button, Label, etc.) are
marked with @CSSType now and store their cssType on the prototype suppressing the previous
implementation that looked up the class function name. So clien classes that derive from one of
our @CSSType decorated classes will now have to be marked with @CSSType.
2018-03-12 16:34:25 +02:00
Panayot Cankov
8adb2fdfef Fix TypeScript 2.4 errors, introduced mainly due weak types and covariant checking for callbacks (#4476) 2017-07-03 11:57:00 +03:00
Eddy Verbruggen
f399f6c62b Ability to load local files in a WebView on iOS devices (#4444)
* Ability to load local files in a WebView on iOS devices

* Ability to load local files in a WebView on iOS devices (removed doc-comments in test)
2017-06-28 11:00:02 +03:00
vakrilov
e9327e887d Respect query params in web-view 2017-04-12 10:38:26 +03:00
vakrilov
d427c9ed8f WebView NavigationType converted to type 2017-04-06 11:23:48 +03:00
Panayot Cankov
2b28730011 Split get/set native to getDefault setNative 2017-03-22 16:37:52 +02:00
vakrilov
c72ec09fe0 FIX: WebView not showing in gallery app 2017-03-21 16:24:05 +02:00
Hristo Deshev
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
Rossen Hristov
9d351221fb Fix WebView 2016-12-27 13:54:42 +02:00
PanayotCankov
7931ecd4f8 Fix tslint errors 2016-12-21 17:42:31 +02:00
PanayotCankov
185b84e0ba Let about 300 non UI tests run 2016-12-21 11:55:55 +02:00
Hristo Hristov
19ee47ba24 got to layouts 2016-12-13 15:51:18 +02:00
Hristo Hristov
1202cb7288 almost all without layouts 2016-12-13 15:51:18 +02:00
Hristo Hristov
e4c21258a3 More files migrated. 2016-12-13 15:51:18 +02:00
Panayot Cankov
e135c20b14 Rename the files 2016-05-26 14:30:25 +03:00