Skip to content

Commit

Permalink
v4.3.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
Flyer53 committed Nov 10, 2018
1 parent e1f2187 commit b04e62d
Show file tree
Hide file tree
Showing 33 changed files with 3,243 additions and 2,071 deletions.
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
## CHANGELOG

### Version 4.3.0 *released 2018-11-10*

+ **added** event `jspanelcloseduser` which is fired when a panel is closed using the header control
+ **added** panel method `.overlaps()`
+ **added** parameter `aspectRatio` to option `resizeit`
+ **updated** panel method `.close()` - it now has a return value depending on whether the panel was closed successfully or not
+ `option.container` default value is changed to `'window'`. This might need a change in existing code when `container: doccument.body` is used even though this was the default previously
+ `option.maximizedMargin` now accepts a function as value
+ `option.theme` supports color names derived from the Material Design Color System like `'bluegray700'`, `'orangeA400'` etc.
+ **options** `position`, `dragit` and `resizeit` now correctly position, drag and resize panels appended to a container using css `transform: scale()` if both container and panel are scaled
+ **bugfix** in global color methods
+ **modal extension:** minor bugfixes
+ **tooltip extension:**
+ **added** method `jsPanel.tooltip.reposition()` to reposition existing tooltips
+ **added** parameter `autoshow` for tooltips
+ **added** support for tooltips positioned relative to another element than target
+ **improved** tooltip connectors
+ a few **bugfixes** in the tooltip extension
+ tooltip extension will load a `MouseEvent()` polyfill for IE11
+ various tweaks in css and js

### Version 4.2.1 *released 2018-09-14*

+ **fix** in methods `setHeaderLogo()` and `setHeaderTitle()` - logo and title are now updated in minimized replacement as well
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
![license MIT](https://img.shields.io/badge/license-MIT-blue.svg) [![npm version](https://badge.fury.io/js/jspanel4.svg)](https://badge.fury.io/js/jspanel4) [![npm](https://img.shields.io/npm/dt/express.svg)](https://www.npmjs.com/package/jspanel4) [![Gitter](https://img.shields.io/gitter/room/nwjs/nw.js.svg)](https://gitter.im/jsPanel/Lobby?utm_source=share-link&utm_medium=link&utm_campaign=share-link)

## [jsPanel 4.2.1 released 2018-09-14](#)
## [jsPanel 4.3.0 released 2018-11-10](#)


**A dependency free javascript tool to create highly configurable multifunctional floating panels.**
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jspanel4x",
"version": "4.2.1",
"version": "4.3.0",
"authors": [
"Stefan Straesser <[email protected]> (http://jspanel.de/)"
],
Expand Down
12 changes: 4 additions & 8 deletions dist/extensions/modal/jspanel.modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ if (!jsPanel.modal) {

jsPanel.modal = {

version: '1.0.1',
date: '2018-07-31 10:34',
version: '1.0.2',
date: '2018-11-08 16:55',

defaults: {
closeOnEscape: true,
Expand All @@ -25,8 +25,6 @@ if (!jsPanel.modal) {
syncMargins: false
},

ziModalBase: 10000,

addBackdrop: function addBackdrop(id) {
var modalCount = document.getElementsByClassName('jsPanel-modal-backdrop').length,
mb = document.createElement('div');
Expand Down Expand Up @@ -63,7 +61,7 @@ if (!jsPanel.modal) {
opts = Object.assign({}, options.config, options);
delete opts.config;
}
opts = Object.assign({}, this.defaults, opts, { container: 'body' });
opts = Object.assign({}, this.defaults, opts, { container: 'window' });

document.body.append(backdrop);

Expand Down Expand Up @@ -92,9 +90,7 @@ if (!jsPanel.modal) {
};

jsPanel.modal.ziModal = function () {
var startValue = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : jsPanel.modal.ziModalBase;

var val = startValue;
var val = 10000;
return {
next: function next() {
return val++;
Expand Down
2 changes: 1 addition & 1 deletion dist/extensions/modal/jspanel.modal.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

94 changes: 0 additions & 94 deletions dist/extensions/overlay/jspanel.overlay.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/extensions/overlay/jspanel.overlay.min.js

This file was deleted.

Loading

0 comments on commit b04e62d

Please sign in to comment.