95 Commits

Author SHA1 Message Date
2572cc13f7 Code file exports fixed 2016-03-09 15:04:37 +02:00
64a6f08562 Loading of codeFile should not mask exceptions 2016-03-02 11:14:43 +02:00
56f1aaa795 Do not use lazy requires where not needed. 2016-01-25 16:33:18 +02:00
dfdcc91eea In rare cases SourceErrorFormat is called wihtout position and hides the original error 2016-01-08 16:58:03 +02:00
3e1b591bde Improve default namespace skips.
- Check every parsed namespace instead of running a global regex on the
whole input
- Check for namespaces ending in tns.xsd and allow schemas hosted on
different URL's than the default one.
2015-12-23 15:23:26 +02:00
074ac89871 imports improved 2015-12-17 14:53:46 +02:00
648e4d216d Add utils/module-loader - a mechanism to resolve modules at runtime.
Exposes a module registration API, that webpack users can use to bundle
"dynamic" modules that are required through some variable.

Falls back to the require API if no module is registered.

Reworked dynamic `require` code to use module-loader:

- navigation: ui/frame.
- XML UI build ui/builder/builder and ui/builder/component-builder.
- module on-demand loads in global functions: globals.
2015-12-14 14:41:16 +02:00
c07751a419 Merge pull request #1189 from NativeScript/cankov/codeless-fragments-events
XML fragments without code not getting context from parent
2015-12-03 10:24:36 +02:00
070b01c544 Remove UTF-8 BOM's from package.json files 2015-12-01 15:37:14 +02:00
e5ec759cbb When XML fragments without code not getting context from parent 2015-12-01 12:28:31 +02:00
af343292b1 Propagate context to template Views 2015-11-30 15:01:38 +02:00
5447b04e86 Refactoring ui/builder and template builder to preserve source information for templates 2015-11-25 15:25:42 +02:00
8bee3ed2d1 Add file, row and column for ui/builder errors 2015-11-25 15:25:42 +02:00
e95820b04a Add Template factory function and use it in the Repeater and ListView components 2015-11-23 12:11:13 +02:00
87e064c417 Fix the broken regex in the builder 2015-11-10 16:57:36 +02:00
4c7b9d59ba Update the regex to search for www OR schemas for the xmlns removal 2015-11-10 15:06:10 +02:00
28d3992e32 Update the builder as well 2015-11-09 15:11:43 +02:00
2f7cf84839 Fixed issue 597. 2015-10-20 15:42:18 +03:00
d6e0a2b598 Fixed index property accessors are treated as expressions. 2015-10-12 14:49:36 +03:00
e7156b53bd Fixed issue #814. 2015-10-01 16:13:51 +03:00
77838ae9c6 Change from "classic" TS 1.6 imports to the default resolution scheme.
- Use relative imports in place of most of our absolute ones.
- Add "private" ambient modules for modules that we need to import using
an absolute path (e.g. when app/.../test-something.ts needs to import
ui/styling/style-scope)
2015-09-29 16:25:49 +03:00
dbc7885ba0 component builder fixed
component builder now can handle properly empty text or text with spaces
2015-09-29 10:35:25 +03:00
152b70be36 Remove an unused import in component-builder 2015-09-18 11:37:06 +03:00
9fbcf5f143 Fix typescript 1.6 compile errors.
- Remove unknown properties in object literals.
- Don't use module-level `delete` statements.
2015-09-18 11:20:17 +03:00
81c066e5e3 Support for binding expressions in event bindings 2015-09-12 11:02:32 +03:00
b608af8cfd Fix public declarations for the "ui/builder/special-properties" module. 2015-09-11 13:55:34 +03:00
958d6b41f0 Move layout special properties sets out of the component builder.
Setters registered by the respective modules on import.
2015-09-10 19:18:11 +03:00
e162b2032f if condition fixed + test added 2015-09-10 13:29:04 +03:00
2d155f941d CSS and XML code files now can be specified in XML 2015-09-10 13:02:33 +03:00
543f367ac0 Expose component-builder.d.ts 2015-09-09 12:03:11 +03:00
28898dcd32 Expose special property logic in builder.
Called by the Angular renderer.
2015-09-09 12:03:02 +03:00
17cdbbaf46 gestures now can be added with on() and removed with off() 2015-08-31 16:44:35 +03:00
cd491d6c03 Tslint 2015-08-13 14:34:23 +03:00
ede36a16ca Template builder code cleanup 2015-08-13 14:26:09 +03:00
8226d86133 Fix builder issue where builder doesn't pop complex properties correctly. 2015-08-13 13:37:11 +03:00
c1378b427f code fixed 2015-08-12 09:33:14 +03:00
384ba394e7 gesture binding fixed + test 2015-08-11 16:31:30 +03:00
0468857604 Merge pull request #554 from NativeScript/atanasovg/file-system-api
Atanasovg/file system api
2015-08-10 17:55:10 +03:00
bccd5133a3 FIX: Nested templates are not parsed 2015-08-07 11:44:34 +03:00
24cb7bb591 Fixed #557 2015-08-07 10:00:44 +03:00
c683ea44e6 Refactor the file-system-access API to be synchronous. Added *Sync equivalents of the file-system APIs. Removed usage of file-system-access within the code. 2015-08-04 16:53:12 +03:00
6ebd488735 Application orientation changed event 2015-07-31 11:51:01 +03:00
772568939b Merge pull request #478 from NativeScript/ui-builder
//@private removed
2015-07-24 11:23:26 +03:00
da25936c87 //@private removed 2015-07-24 10:25:40 +03:00
5bb52f545d Support lower-case-dashed component declaration in the XML added 2015-07-23 16:46:12 +03:00
5ca763455c layouts handled automatically as well 2015-07-22 17:09:28 +03:00
65412d9201 component builder simplified 2015-07-22 16:31:28 +03:00
835ab8c142 HtmlView UI component added + test 2015-07-15 15:11:21 +03:00
e52b0c4556 Action bar progress 2015-07-15 09:35:53 +03:00
7c6897bef7 quick fix for "." resolve 2015-07-10 11:22:06 +03:00