Commit Graph

85 Commits

Author SHA1 Message Date
Hristo Hristov
f2898f84d5 NativeView recycled for android 2017-03-28 18:08:59 +03:00
Hristo Deshev
9113fa9ed8 Use TypeScript 2.1 for the docs build
Until TypeDoc supports TS 2.2
2017-02-24 17:28:18 +02:00
Hristo Deshev
7d7e48f759 Use a shared tsconfig.
Don't duplicate compiler options across projects.
2017-02-15 13:24:44 +02:00
Hristo Deshev
3056ce51c2 Upgrade to TypeScript 2.1, and latest grunt-ts.
Conflicts:
	package.json
	tests/app/ui/animation/animation-tests.ts
	tns-core-modules/lib.core.d.ts
	tns-core-modules/ui/animation/animation-common.ts
2017-02-13 14:13:33 +02:00
Hristo Deshev
cdf08378b0 Remove grunt-ts dependency.
Compile code using tsconfig.json files and plain tsc invocations.
Call those using grunt-shell.
2017-02-13 14:13:33 +02:00
Hristo Hristov
3770f7e636 formatted text fix (#3531)
* Fix formattedText implementation for iOS
Fix typeof undefined checks
Add slow tests message
Improve tests speed

* fix tslint
reduce transitions duration in test

* waitUntilReady will throw if timeout
fix tests that needs to wait without throwing
improve test speed
2017-01-26 18:21:30 +02:00
Rossen Hristov
75dba8fab2 Include apps and tests in tsconfig.json 2016-12-20 09:36:23 +02:00
Rossen Hristov
53be1ecc07 FontStyle and FontWeight enums everywhere 2016-12-16 16:31:20 +02:00
Hristo Hristov
e97fd105e3 Fix missing exports 2016-12-14 13:59:50 +02:00
Panayot Cankov
791aab04e5 Flexbox ios initial commit
Items now appear, but they should initially shrink and they don't

Add 15-ish tests for flexbox layout

Port reasonable flexbox test set

Fixing issues, adding unit tests

Moved from .tsx to .ts and used our ui/builder.parse
2016-10-19 17:02:26 +03:00
Panayot Cankov
0e23f47a04 Update the .travis.yml to npm pack the tns-platform-declarations, add lib: [] config in the tsconfig.json 2016-09-26 11:53:40 +03:00
Panayot Cankov
299203901e Move platform .d.ts-es to separate plugin folder
Add dev-setup to figure out links

Update development workflow

Update package.json and dts-ios

Update the iOS declarations

grunt is now fine
2016-09-26 11:53:39 +03:00
Panayot Cankov
1236f66f44 Add npm script that generates ios .d.ts-es from the tests app
Less than 30 erros left, let's hope it still works

Added lib.*.d.ts from typescript, removed lib and dom stuff, added by hand XHR, alert etc. .d.ts-es for polyfills

Roll back some changes involved in separating UIEvent for dom and ios

Test combined dts-es will now use lib, while internally we will not to avoid UIEvent conflict with dom stuff
2016-08-29 09:58:17 +03:00
Rossen Hristov
fa48f4e425 Merge pull request #2475 from NativeScript/ios-known-folders
Add iOS-specific known folders to fs.knownFolders
2016-07-20 11:37:09 +03:00
Rossen Hristov
116bc26dc1 Add iOS-specific known folders to fs.knownFolders 2016-07-19 16:33:51 +03:00
Panayot Cankov
c1aeeb51a7 Inital by-type split
Split type.class from CssTypeSelector to CssCompositeSelector, probably support type#id.class selectors

Apply review comments, refactor css-selectors internally

Applied refactoring, all tests pass, button does not notify changes

Add tests for the css selectors parser.

Added tests for css-selectors

Added basic implementation of mayMatch and changeMap for css match state

Implemented TKUnit.assertDeepEqual to check key and key/values in Map and Set

Watch for property and pseudoClass changes

Add one child group test

Add typings for animations

Added mechanism to enable/disable listeners for pseudo classes

Count listeners instead of checking handlers, reverse subscription and unsubscription
2016-07-18 17:24:09 +03:00
Rossen Hristov
a18d5e7622 Create a single NS app for cuteness.io, gallery-app and ui-tests-app in apps/
Move all other apps to https://github.com/NativeScript/tns-apps-graveyard
2016-07-11 15:34:28 +03:00
Hristo Hristov
3962ac11a2 AffectsLayout done only for iOS. Android will invalidate itself when needed. (#2307) 2016-06-14 16:44:09 +03:00
Panayot Cankov
940174b208 Remove the files entry from the tsconfig.json 2016-06-13 14:04:42 +03:00
atanasovg
ef0577ed56 Decouple Fragment implementation logic from the Extend call. 2016-06-10 18:01:47 +03:00
atanasovg
48f14badca Update the tsconfig and package.json files to reflect the new changes. 2016-06-09 15:19:39 +03:00
Tsvetan Raikov
bdbaa8968c Added a missing file in tsconfig.json. Fixed build scripts. 2016-06-03 15:25:10 +03:00
Panayot Cankov
58b4a6eec6 Add 'npm test' for mac 2016-05-30 16:10:57 +03:00
SvetoslavTsenov
69f34e86e7 Merge pull request #2172 from NativeScript/tsenov/panEventTestPage
Include pan-event.ts test page in tsconfig.json
2016-05-30 09:55:42 +03:00
Panayot Cankov
3e48e665b7 Add DevelopmentWorkflow.md 2016-05-27 11:27:54 +03:00
Panayot Cankov
e135c20b14 Rename the files 2016-05-26 14:30:25 +03:00
SvetoslavTsenov
2b817374ef Include pan-event.ts test page in tsconfig.json 2016-05-25 11:06:21 +03:00
Panayot Cankov
674f4e7704 Merge pull request #2111 from NativeScript/widgets-ios-async-image
Optional async mode for loading images from local files
2016-05-20 09:11:36 +03:00
Nedyalko Nikolov
1b395aac7f async image loading from data, files and resources for ios
Use the tns_safeDecodeImageNamedCompletion from the widgets framework

Add loadMode on Image with sync and async options for local images
2016-05-19 16:58:58 +03:00
Vasil Chimev
e7fd472ea3 Add a file to tsconfig.json 2016-05-16 13:41:57 +03:00
Erjan Gavalji
f15f283c74 Reorder test file structure to match the modules
Needed to have a nice structured cookbook dir in the docs

Includes:
Move the data-module tests under the data dir
Move the frame tests under the ui dir
Rename the dialog.md file to dialogs.md
Fix the web-view title
Add previous_url attributes to each article for SEO
Rename the style dir to styling to match the reference
Fix the frame-tests path
2016-05-05 10:43:35 +03:00
Rossen Hristov
54c65e94d7 Split layout-base to iOS and Android files
clipToBounds for a single view can't be implemented in Android in a straightforward manner

Resolves #1829
2016-04-28 17:35:06 +03:00
Erjan Gavalji
a4801c6948 Fix the layouts tests in the tsconfig.json 2016-05-02 17:53:15 +03:00
Jason Zhekov
02df926051 Evaluate lazily android specific global values 2016-04-21 17:20:48 +03:00
Rossen Hristov
2347ccbd9a Add apps/sample-fonts/*.ts to tsconfig.json 2016-04-13 11:08:13 +03:00
Tsvetan Raikov
2601a49099 Merge branch 'master' into feature/css-animations-new 2016-03-25 15:39:30 +02:00
Tsvetan Raikov
073cc94926 implemented CSS animations
fixing animation tests
2016-03-25 15:26:48 +02:00
Hristo Hristov
429646f392 Fix swipe-back in iOS 2016-03-25 13:45:05 +02:00
Panayot Cankov
9b2f72267c The 'grunt inplace' build will generate source maps now 2016-03-24 17:12:31 +02:00
Hristo Hristov
2cabf02215 Fixed navigation events 2016-03-18 11:55:52 +02:00
Erjan Gavalji
3126c6b363 Fix the leave comments option of the build
The grunt file respected the --leavecomments option, used when
generating the How-To articles of the API Reference. This was broken with
the passthrough option to grunt-ts.
2016-03-16 17:55:30 +02:00
Panayot Cankov
6972e9213a Merge pull request #1727 from NativeScript/cankov/network-spike
WebInspector infrastructure
2016-03-14 14:58:46 +02:00
Panayot Cankov
355fddea91 The webinspector debugger now does not requre http-request 2016-03-11 11:31:59 +02:00
vakrilov
7b2a6d8e52 Removed hello world template 2016-03-09 13:50:10 +02:00
Panayot Cankov
1ec28cbe98 Fix native image recreated on layout even if the view is not resized
Add InspectorBackendCommands.ts that is generated based on the API exposed by the web inspector frontend.
Add implementation for the network domain and call events in the http-request module so that inspector frontend could visualize the network requests made by the module

Fix tslint and doc comments
2016-03-09 11:08:13 +02:00
Panayot Cankov
6fdb999a94 Let TS compile in-place
Add 'grunt inplace' to tsc and build d.ts-es
2016-02-26 17:47:54 +02:00
Rossen Hristov
bda6159bbb Re-apply TextBase.formattedText after a style property change
Resolves #1078
2016-02-25 11:01:44 +02:00
Hristo Deshev
e23e234f59 Don't emit "use strict" in compiled source. It breaks on iOS. 2016-02-24 11:06:14 +02:00
Hristo Deshev
c9eb4d5890 Delete ui.ts and ui.d.ts
The simplest way to resolve reexport conflicts. We have multiple modules
exporting symbols with the same name e.g. Options, which clash at reexport
time. TypeScript 1.7.x did not detect that error, but TypeScript 1.8
catches it.

Since TypeScript doesn't allow hiding or renaming a single member when
reexporting and exporting the rest, the alternative solution would be to
explicitly list all module members in ui.ts/ui.d.ts *and* keep them in sync
with every new release.
2016-02-24 11:06:14 +02:00
Vladimir Enchev
d66008d34c Merge pull request #1554 from PeterStaev/action-item-custom-view
Action item custom view
2016-02-16 17:08:17 +02:00