fc2a233e95
fix: nested css-calc and css-variables with fallback ( #7987 )
2019-11-07 17:30:03 +02: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
e0c4933337
chore: merge release to master ( #7809 )
...
* feat(android): fix tab resource icon size based on spec (#7737 )
* feat(ios): add icon rendering mode for bottom navigation (#7738 )
* fix(ios-tabs): crash when add tabstrip in loaded event (#7743 )
* fix(css): parse css selectors with escape sequences (#7689 ) (#7732 )
* fix(ios-tabs): handle nesting proxy view container (#7755 )
* fix-next(css): className to preserve root views classes (#7725 )
* docs: cut the 6.1.0 release (#7773 )
* fix(android-list-picker): NoSuchFieldException on api29 (#7790 )
* chore: hardcode tslib version to 1.10.0 (#7776 )
* fix(css-calc): reduce_css_calc_1.default is not a function (#7787 ) (#7801 )
2019-09-12 14:33:03 +03:00
552021373e
fix(css): parse css selectors with escape sequences ( #7689 )
2019-08-26 13:59:03 +03:00
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
4f39fb728b
chore: update tslint rules ( #7391 )
2019-06-26 15:13:48 +03:00
ecd9fc3e9d
feat: bundle workflow support ( #7337 )
2019-06-20 15:58:36 +03:00
44b8acd79c
feat(HMR): apply changes in page styles at runtime when app root is a frame ( #6857 )
...
* feat(HMR): apply changes in page styles at runtime
* fix: livesync tests
* test: changeCssFile method
* refactor: address comments
Add a comment.
Update `let` to `const`.
Update `changesCssFile` test.
* test: add an assert
2019-02-14 14:03:13 +02:00
982acdc168
feat(iOS): Safe Area Support ( #6230 )
2018-09-28 18:21:50 +03:00
85b8c018a5
feat(styling): Added 2 functions to control applicationAdditionalSelectors ( #6124 )
...
* Added getAdditionalSelectors function so that nativescript-theme can be functional again in NS 4.x
* Change to a better more extensible additional css system.
* removed redunant function on the name.
* Fix lint issues
* Adding mergeSelectors to the remove function
* Added test of new add/remove css functions.
* fix: revert testRunner.ts changes that disabled all tests except style
* refactor: fix typo
* chore: fix typo and change test to no not affect global styles
2018-08-02 11:51:07 +03:00
6ce1d22d9a
feat(CSS): import of relative paths ( #6023 )
...
* feat(CSS): import of relative paths
* refactor: address comments
2018-07-21 05:54:32 +03:00
03cfc0cee3
chore(tslint): update tslint rules and fix errors ( #5747 )
...
* chore(tslint): fix tslint config & errors
* chore(tslint): enable double quotes, whitespace, and arrow-return-shorthand rules and fix errors
2018-04-26 18:36:32 +03:00
ac04ede97e
Implemented showModal on View
2017-12-15 13:08:15 +02:00
6d7c1ff295
Avoid applying CSS multiple times ( #4784 )
...
* Move the applyStyleFromScope to onLoaded, when the views are created and id or className properties are set the CSS selectors are queried and applied multiple times
* Condense the changes when applying properties
2017-09-25 18:32:00 +03:00
43659799bc
Implement non uniform border corner radiuses and fix blinking image-view radiuses ( #4573 )
...
* Image corners were blinking in #4322 and CSS border will now draw non uniform corner radiuses if the border color is uniform
* Implement per-side corner radiuses for iOS
* Update stretch-mode example
* Update matrix-mode example
* Update image resources
* Add clipping for non uniform radii without border width, don't throw for missing image resources in css
2017-07-27 15:36:47 +03:00
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
e983295952
Style tests fixes
2017-01-12 14:24:12 +02:00
7931ecd4f8
Fix tslint errors
2016-12-21 17:42:31 +02:00
d10ca1da03
Fix the last several errors
2016-12-20 13:36:10 +02:00
6feeb140e3
Fixing type errors in tests
2016-12-19 10:36:25 +02:00
414ebc67dd
feat(style-scope): Resolve css sheets from tns_modules
...
If the css sheet is not in the app directory, try to find it in the
tns_modules folder.
2016-11-08 11:28:16 +02:00
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
8d40782191
Style perf improvements ( #2342 )
...
* Add css-perf app.
* Style properties now check only properties that are set.
Image utils module required on top (instead of in onMeasure) to improve performance.
Remove try/catch block when Style applies native property.
* fix tslint
* Fix broken merge
Update package.json version
* Failed miserably - if the try/catch around applyProperty method is removed - TextField fails big time.
TextField needs some good refactoring as well as calls to _updateTextDecoration & _updateTextTransform
utils - setTextTransform & setTextDecoration should be split, typing support should be added.
2016-07-08 14:39:43 +03:00
9ac40a5acb
Fixed sorting issue with Css Selectors with same specificity.
2016-06-17 13:34:15 +03:00
7fbfc92155
Fixed issue #1655 cascading css selectors.
2016-06-16 09:43:19 +03:00
e135c20b14
Rename the files
2016-05-26 14:30:25 +03:00