136 Commits

Author SHA1 Message Date
e1318b12af fix(ios): time-picker and date-picker for iOS 14 (#8876) 2020-09-23 07:57:47 -07:00
5c076de856 fix(android): list picker getTextColor api level issue (#8755)
closes https://github.com/NativeScript/NativeScript/issues/7860
2020-08-11 22:29:11 -07:00
4708ff4e68 fix(android): line-height (#8751) 2020-08-07 08:46:42 -07:00
979130de31 chore(release): 6.5.12 2020-07-21 14:06:21 -07:00
ff62eb8b73 chore(release): 6.5.11 2020-07-20 14:01:06 -07:00
68c313d039 chore(release): 6.5.10 2020-07-11 08:27:44 -07:00
9834c4f887 chore(release): 6.5.9 2020-07-07 16:38:09 -07:00
4d57ced35f chore(release): 6.5.8 2020-06-20 08:49:11 -07:00
4f65beab33 chore(release): 6.5.7 2020-06-17 14:43:21 -07:00
29541b89b1 chore(release): 6.5.6 2020-06-16 15:31:53 -07:00
3198f92580 chore(release): cut 6.5.5 release 2020-06-09 22:56:54 -07:00
484617cb2c chore: cut 6.5.4 release (#8613)
* chore: cut 6.5.4 release

* chore: changelog
2020-06-04 21:25:21 +02:00
7f8070e247 chore: cut 6.5.3 release (#8610) 2020-06-03 16:55:40 -07:00
66cc8a477e fix(button-android): use setMinWidth to set TextView widgets min-width (#7804)
* fix: setMinimumWidth does not really set the minWidth for TextView widgets

* chore: fix versions

* refactor(android): default minWidth/Height values for button

* reafctor: reset minWidth when view is in flexbox for backcompat

* refactor: ensure back-compatible layout for btns

* chore: cut 6.5.0 release (#8443)

* release: cut 6.5.0 release

* Update CHANGELOG.md

* Update CHANGELOG.md

Co-authored-by: Vasil Trifonov <v.trifonov@gmail.com>

Co-authored-by: vakrilov <alexander.vakrilov@telerik.com>
Co-authored-by: Dimitar Topuzov <dtopuzov@gmail.com>
Co-authored-by: Vasil Trifonov <v.trifonov@gmail.com>
2020-03-26 13:07:04 +02:00
89ee60be00 chore: bump version to 6.6.0 2020-03-18 16:46:09 +02:00
8dbec723f6 Merge branch 'release' 2020-03-16 14:31:26 +02:00
18a9b1aea8 fix(d.ts): Update iOS typings iOS 13.2 (#8430)
* chore: Update typings using iOS SDK 13.2 (Xcode 11.3.1)

* chore: Update iOS typings using the latest runtime
This fixes arguments of global functions.
See https://github.com/NativeScript/ios-runtime/pull/1250

* chore: Strip MDC types attached to other modules
  * Delete via regex from generation script
  * Apply regex to current typings
2020-03-13 10:37:30 +02:00
9830be7230 fix(bottom-nav): align text with different icons 2020-03-05 15:35:07 +02:00
23130b73e1 chore: change version for patch 6.4.2 2020-02-27 10:54:48 +02:00
2d4e258a88 Release to master (#8382)
* fix the crash

* chore: update MaterialComponents pod (#8176)

* chore: update MaterialComponents pod

* chore: remove copy of pod file in build script

* chore: cut the 6.3.0 release (#8174)

* hore: cut the 6.3.1 release

* fix: handle fake attach after FragMgr is destroyed (#8200)

* fix: check is disposed fragment is in the FragmentManager (#8201)

* release: cut the 6.3.2 release

* release: cut the 6.4.0 release

* chore(build): always use local typescript

* fix: flipLeft and flipRight on Android (#8307)

* fix(android): tap-trip-item title disappearing

* fix(andoid): crash when setting font on tab-item with no image

* fix(build): Add platforms/android to NPM package (#8312)

Co-authored-by: Dimitar Topuzov <dtopuzov@gmail.com>
Co-authored-by: Alexander Vakrilov <alexander.vakrilov@gmail.com>

* release: cut the 6.4.1 release

* chore: bump tns-core-modules-widgets version (#8352)

Co-authored-by: hamidbsd <50081218+hamidbsd@users.noreply.github.com>
Co-authored-by: Alexander Vakrilov <alexander.vakrilov@gmail.com>
Co-authored-by: Dimitar Topuzov <dtopuzov@gmail.com>
Co-authored-by: Nick Iliev <nikolay.iliev@telerik.com>
Co-authored-by: Martin Bektchiev <martin.bektchiev@progress.com>
Co-authored-by: Rosen Vladimirov <rosen-vladimirov@users.noreply.github.com>
2020-02-26 18:06:50 +02:00
8b7a968d2f chore: bump version to 6.5.0 2020-02-25 17:13:09 +02:00
e293367dfc feat(http): better binary support & XHR support (#7707)
* feat(http): binary upload support

* feat(http): better binary support & XHR support

* fix: linting issue

* chore: moved files from old place to the new one

* chore: Updated NativeScript.api.md

* feat(http): support both ByteBuffer and String

Co-authored-by: Vasil Trifonov <v.trifonov@gmail.com>
2020-01-28 15:22:32 +02:00
e8f5ac8522 feat: Add 3D rotation to view - takeover of PR# 5950 (#8136)
* feat: add 3d rotation

* chore: fix build errors

* chore: fix tslint errors

* chore: add @types/chai dev dep

* chore: unused import cleanup

* chore: update tests for x,y rotation

* chore: rebase upstream/master

* fix: iOS Affine Transform test verification

* feat(css): Added optional css-tree parser (#8076)

* feat(css): Added optional css-tree parser

* test: css-tree parser compat tests

* test: more css-tree compat tests

* feat(dialogs): Setting the size of popup dialog thru dialog options (#8041)

* Added iOS specific height and width attributes to ShowModalOptions

* Set the height and width of the popup dialog to the presenting controller

* dialog options ios attributes presentationStyle, height & width are made optional

* Updated NativeScript.api.md for public API changes

* Update with git properties

* Public API

* CLA update

* fix: use iOS native-helper for 3d-rotate

* test: Fix tests using _getTransformMismatchError

* fix: view.__hasTransfrom not set updating properly

* test: fix css-animations test page

Co-authored-by: Alexander Vakrilov <alexander.vakrilov@gmail.com>
Co-authored-by: Darin Dimitrov <darin.dimitrov@gmail.com>
Co-authored-by: Shailesh Lolam <slolam@live.com>
Co-authored-by: Dimitar Topuzov <dtopuzov@gmail.com>
2020-01-10 12:59:46 +02:00
034e84ebaf chore: bump version to 6.3.0 (#7973) 2019-10-17 16:18:11 +03:00
cc97a16800 feat: Scoped Packages (#7911)
* chore: move tns-core-modules to nativescript-core

* chore: preparing compat generate script

* chore: add missing definitions

* chore: no need for http-request to be private

* chore: packages chore

* test: generate tests for tns-core-modules

* chore: add anroid module for consistency

* chore: add .npmignore

* chore: added privateModulesWhitelist

* chore(webpack): added bundle-entry-points

* chore: scripts

* chore: tests changed to use @ns/core

* test: add scoped-packages test project

* test: fix types

* test: update test project

* chore: build scripts

* chore: update build script

* chore: npm scripts cleanup

* chore: make the compat pgk work with old wp config

* test: generate diff friendly tests

* chore: create barrel exports

* chore: move files after rebase

* chore: typedoc config

* chore: compat mode

* chore: review of barrels

* chore: remove tns-core-modules import after rebase

* chore: dev workflow setup

* chore: update developer-workflow

* docs: experiment with API extractor

* chore: api-extractor and barrel exports

* chore: api-extractor configs

* chore: generate d.ts rollup with api-extractor

* refactor: move methods inside Frame

* chore: fic tests to use Frame static methods

* refactor: create Builder class

* refactor: use Builder class in tests

* refactor: include Style in ui barrel

* chore: separate compat build script

* chore: fix tslint errors

* chore: update NATIVESCRIPT_CORE_ARGS

* chore: fix compat pack

* chore: fix ui-test-app build with linked modules

* chore: Application, ApplicationSettings, Connectivity and Http

* chore: export Trace, Profiling and Utils

* refactor: Static create methods for ImageSource

* chore: fix deprecated usages of ImageSource

* chore: move Span and FormattedString to ui

* chore: add events-args and ImageSource to index files

* chore: check for CLI >= 6.2 when building for IOS

* chore: update travis build

* chore: copy Pod file to compat package

* chore: update error msg ui-tests-app

* refactor: Apply suggestions from code review

Co-Authored-By: Martin Yankov <m.i.yankov@gmail.com>

* chore: typings and refs

* chore: add missing d.ts files for public API

* chore: adress code review FB

* chore: update api-report

* chore: dev-workflow for other apps

* chore: api update

* chore: update api-report
2019-10-17 00:45:33 +03:00
08e23bcc3b feat: overhaul and streamline Android page navigation transitions (#7925)
* feat: remove Animators and replace with Transitions

* fix: handle disappearing nested fragments for tabs.

Extract TabFragmentImplementation in tab-navigation base for both tabs and bottom navigation

* chore: bump webpack cycles counter

* feat(android-widgets): add androidx.transition:transition as dependency

* chore: fix typescript errors

* fix(frame-android): child already has a parent. Replace removeView with removeAllViews

* fix(tests): wait for fragment before isAdded() check

* fix(bottom-navigation): prevent changeTab logic when fragment manager is destroyed

* chore: apply PR comments changes
2019-10-15 18:19:47 +03:00
dc6540269f feat(platform-declarations): add android29 typings (#7923) 2019-10-14 18:26:02 +03:00
07f13a6771 chore: update readme (#7929) 2019-10-10 11:47:45 +03:00
2146ac902f feat(file-system): async read/write (#7671) 2019-10-02 11:21:18 +03:00
3e8d6350b9 feat(platform-declarations): generate typings from iOS 13.0 SDK (#7817)
* feat(platform-declarations): generate typings from iOS 13.0 SDK

* fix(platform-declarations): typings generation script

Delete Material Components typings from `tns-platform-declarations`,
they are part of `tns-core-modules` package.

* refactor(platform-declarations): workaround a TypeScript error

Error:
```
tns-platform-declarations/ios/objc-x86_64/objc!OSLog.d.ts(178,15): error TS2417: Class static side 'typeof OSLogEnumerator' incorrectly extends base class static side 'typeof NSEnumerator'.
  Types of property 'alloc' are incompatible.
    Type '() => OSLogEnumerator' is not assignable to type '<ObjectType>() => NSEnumerator<ObjectType>'.
      Type 'OSLogEnumerator' is not assignable to type 'NSEnumerator<ObjectType>'.
        Types of property 'allObjects' are incompatible.
          Type 'NSArray<NSObject>' is not assignable to type 'NSArray<ObjectType>'.
            Type 'NSObject' is not assignable to type 'ObjectType'.
              'NSObject' is assignable to the constraint of type 'ObjectType', but 'ObjectType' could be instantiated with a different subtype of constraint '{}'.
```

References:
https://github.com/Microsoft/TypeScript/issues/17575
https://stackoverflow.com/questions/52518125/workaround-for-accessing-class-type-arguments-in-static-method-in-typescript

* docs(platform-declarations): note a manual step on generating typings

* chore(platform-declarations): exclude ios-typings-prj from transpilation

* refactor(platform-declarations): delete references to MDC types

```
ios/objc-x86_64/objc!QuartzCore.d.ts:676:36 - error TS2304: Cannot find name 'MDCAnimationTimingFunction'.

676  static mdc_functionWithType(type: MDCAnimationTimingFunction): CAMediaTimingFunction;

ios/objc-x86_64/objc!UIKit.d.ts:7717:54 - error TS2304: Cannot find name 'MDCFontTextStyle'.

7717  static mdc_preferredFontForMaterialTextStyle(style: MDCFontTextStyle): UIFont;

ios/objc-x86_64/objc!UIKit.d.ts:7719:53 - error TS2304: Cannot find name 'MDCFontTextStyle'.

7719  static mdc_standardFontForMaterialTextStyle(style: MDCFontTextStyle): UIFont;

ios/objc-x86_64/objc!UIKit.d.ts:7771:63 - error TS2304: Cannot find name 'MDCFontTextStyle'.

7771  mdc_fontSizedForMaterialTextStyleScaledForDynamicType(style: MDCFontTextStyle, scaled: boolean): UIFont;

ios/objc-x86_64/objc!UIKit.d.ts:7794:64 - error TS2304: Cannot find name 'MDCFontTextStyle'.

7794  static mdc_preferredFontDescriptorForMaterialTextStyle(style: MDCFontTextStyle): UIFontDescriptor;

ios/objc-x86_64/objc!UIKit.d.ts:7796:63 - error TS2304: Cannot find name 'MDCFontTextStyle'.

7796  static mdc_standardFontDescriptorForMaterialTextStyle(style: MDCFontTextStyle): UIFontDescriptor;
```
2019-09-19 22:18:08 +03:00
e6c7e0c1ac Merge remote-tracking branch 'origin' into merge-release-in-master 2019-09-18 01:08:56 +03:00
25046c7f94 chore: remove grunt and update build scripts (#7838)
* chore: prepare and pack scripts

* chore: update @types/node dep

* chore: remove prepare-dist command from pack-dist
2019-09-18 01:05:39 +03:00
a8680f0761 release: cut the 6.1.1 release (#7808)
* release: cut the 6.1.1 release
2019-09-11 15:58:59 +03:00
d772d21de0 chore: bump versino to 6.2.0 2019-08-23 18:06:47 +03:00
c0b8db4098 feat: flexbile font icon usage in tab navigation (#7672) 2019-08-15 17:32:48 +03:00
443d6b5dcb Merge remote-tracking branch 'origin/master' into tsenov/merge-release-in-master 2019-08-07 16:22:05 +03:00
6ffe23212b release: cut the 6.0.5 release (#7628) 2019-08-02 03:04:35 -07:00
2518655ab3 fix(tabs-android): tabStripItem color not applied (#7617) 2019-08-01 10:02:05 +03:00
7228f9e008 release: cut the 6.0.4 release (#7613)
* release: cut the 6.0.4 release
2019-07-30 14:54:34 +03:00
f94e4f3cbb release: cut the 6.0.3 release (#7603) 2019-07-29 15:52:07 +03:00
8e057c75b3 Merge branch 'master' into myankov/merge-release 2019-07-22 08:58:04 +03:00
46c17ca3a4 fix(bottom-navigation): crash when tab selected with no item (#7527) 2019-07-19 17:09:40 +03:00
abc143eeac Merge remote-tracking branch 'origin/master' into svetoslavtsenov/merge-release-in-master 2019-07-16 13:26:15 +03:00
12fdb82ffe chore: bump package veresions (#7525) 2019-07-16 11:38:34 +03:00
10801557d0 fix(bottom-navigation-android): tabStripItem backgroundColor (#7504) 2019-07-11 13:29:00 +03:00
20c6d71c70 refactor: move material typings to core modules (#7480) 2019-07-09 13:35:28 +03:00
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
250eb31c6e chore: bump to 6.1.0 (#7422) 2019-06-28 19:01:59 +03:00
ecd9fc3e9d feat: bundle workflow support (#7337) 2019-06-20 15:58:36 +03:00
5f9eabdf17 feat: update android typings to include @deprecated attributes (#7364)
* feat: added tslint rule for deprecation turned off
* feat: updated android dts files to include @deprecated
2019-06-17 18:56:34 +03:00