Releases: sulu/web-js
Release v2.4.1 (2022-04-27)
- Release 2.4.1 (@alexander-schranz)
- Fix truncate debounce path (#70) (@martinlagler)
- Fix Truncate component on window load (#69) (@C-burr)
Release 2.4.0 (2021-10-28)
- Add scroll menu component (#63) (@luca-rath )
Release v2.3.0 (2021-10-11)
- Add tabs component (#33) (@alexander-schranz) Example JSFiddle
- Add toggle component (#62) (@Prokyonn) Example JSFiddle
Release v2.2.0 (2021-10-04)
- Add accordion component #61 (@alexander-schranz / @luca-rath)
- Remove jquery requirement from expand component (#59) (@alexander-schranz)
Release 2.1.1 (2021-08-25)
- Fix path to passive events for scroll direction (#58) (@alexander-schranz)
- Fix Passive-events path (#57) (@QuentinHAETTEL)
Release 2.1.0 (2021-08-18)
- Release 2.1.0 (@alexander-schranz)
- Add space between mixin (#56) (@alexander-schranz)
- Add scroll direction component (#55) (@alexander-schranz)
Release 2.0.0 (2020-06-21)
2.0.0 (2020-06-21)
Merged pull requests:
- Add a hint that for IE11 support object assign polyfill is needed #52 (alexander-schranz)
Release 2.0.0-RC3 (2018-05-15)
2.0.0-RC3 (2019-05-15)
Merged pull requests:
- Add size parameter for animated link #51 (alexander-schranz)
Release 2.0.0-RC2 (2018-05-10)
2.0.0-RC2 (2019-05-10)
Implemented enhancements:
- Add possibility to extend container link attributes #48 (alexander-schranz)
Fixed bugs:
- Fix options overwrite between components #50 (alexander-schranz)
- Fix menu button active state for chrome #47 (alexander-schranz)
Merged pull requests:
- Restructure repository for better splitting #49 (alexander-schranz)
- Add animation link hover scss mixin #46 (alexander-schranz)
- Add window scroll js component #45 (alexander-schranz)
- Add animated menu button mixin #44 (alexander-schranz)
- Add animated link scss mixin #43 (alexander-schranz)
Release 2.0.0-RC1 (2018-03-15)
2.0.0-rc1 (2019-03-15)
Implemented enhancements:
- Api request should be done as json datatype instead of html #27
- Get rid of jquery in core.js #22
- Rename src folder into js #17
- Call service should use apply instead of call #10
- Remove jQuery as dependency of web core js #38 (alexander-schranz)
- Change api request to use json instead of html #37 (alexander-schranz)
- Add support for multiple arguments in service call #36 (alexander-schranz)
- Rename src folder to js #35 (alexander-schranz)
- Fix path to index.js of library #39 (alexander-schranz)
- Add default options to register component #42 (alexander-schranz)
Upgrade
jQuery removed from web component
Web component initialize method will not longer get a jQuery Element
instead it will get a basic javascript HTMLElement. This allows
to use web-js without jQuery and detect which components really need
jQuery as there dependency.
Before
initialize($el) {
}
// or
initialize($el, options) {
}
After
initialize(el) {
var $el = el;
}
// or
initialize($el, options) {
var $el = el;
}
Api service dataType changed
The api service will now use json dataType instead of html.
So if HTML should be returned, you should use $.ajax
instead.
Multiple call service arguments
Its now possible to provide multiple arguments to a service call for this
exist service calls need to be changed.
Before
web.callServices([{name: 'service', func: 'method', args: 'argument'}])
or when using web component twig extension:
{{ call_service('service', 'method', 'argument') }}
After
web.callServices([{name: 'service', func: 'method', args: ['argument']}])
or when using twig:
{{ call_service('service', 'method', ['argument']) }}
Folder renamed
The src
folder has been renamed to js
so you need to ugprade your imports.
Before
var Expand = require('massive-web/src/components/expand');
import ContainerLink from 'massive-web/src/components/expand';
After
var Expand = require('massive-web/js/components/expand');
import ContainerLink from 'massive-web/js/components/expand';