Skip to content

Commit

Permalink
Bumped version to 1.0.44 [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
fragsalat committed Jul 10, 2018
1 parent f5303ad commit f0b841f
Show file tree
Hide file tree
Showing 151 changed files with 1,166 additions and 661 deletions.
5 changes: 3 additions & 2 deletions dist/amd/imports.js
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ define(['exports', 'react', 'react-dom', 'prop-types'], function (exports, _reac
createElement: _React_.createElement || _React_.h
};
var PropTypes = exports.PropTypes = types;
var render = exports.render = ReactDOM.render;
var render = ReactDOM.render;
exports.render = render;

var Component = exports.Component = function (_React_$Component) {
_inherits(Component, _React_$Component);
Expand All @@ -97,7 +98,7 @@ define(['exports', 'react', 'react-dom', 'prop-types'], function (exports, _reac
value: function dispatchEvent(name, detail) {
var bubbles = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;

var event = new CustomEvent(name, { detail: detail, bubbles: bubbles });
var event = new window.CustomEvent(name, { detail: detail, bubbles: bubbles });

if (this.element) {
this.element.dispatchEvent(event);
Expand Down
Empty file modified dist/amd/index.js
100755 → 100644
Empty file.
Empty file modified dist/amd/index.scss
100755 → 100644
Empty file.
Empty file modified dist/amd/ws-date-picker/flatpickr.js
100755 → 100644
Empty file.
26 changes: 19 additions & 7 deletions dist/amd/ws-date-picker/ws-date-picker.js
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -192,29 +192,39 @@ define(['exports', '../imports', './flatpickr'], function (exports, _imports, _f
value: function render() {
var _this3 = this;

var _props = this.props,
className = _props.className,
iconOnly = _props.iconOnly,
placeholder = _props.placeholder;


return _imports.React.createElement(
'div',
{
className: 'ws-date-picker ' + (this.props.iconOnly ? 'icon-only' : 'with-input'),
className: 'ws-date-picker ' + (iconOnly ? 'icon-only' : 'with-input'),
ref: function ref(element) {
_this3.element = element;
}
},
!this.props.iconOnly && [_imports.React.createElement('input', {
!iconOnly && [_imports.React.createElement('input', {
className: className || '',
defaultValue: this.state.value,
placeholder: this.props.placeholder,
placeholder: placeholder,
ref: function ref(element) {
_this3.input = element;
},
key: 'input'
}), _imports.React.createElement('span', { className: 'icon icon-calendar icon16', key: 'icon' })],
this.props.iconOnly && _imports.React.createElement('span', {
className: 'icon icon-calendar icon16',
iconOnly && _imports.React.createElement('span', {
className: 'icon icon-calendar icon16 ' + (className || ''),
ref: function ref(element) {
_this3.input = element;
},
onClick: function onClick(event) {
return _this3.flatpickr.open(event);
},
onKeyDown: function onKeyDown(event) {
return _this3.flatpickr.open(event);
}
})
);
Expand All @@ -232,7 +242,8 @@ define(['exports', '../imports', './flatpickr'], function (exports, _imports, _f
placeholder: '',
iconOnly: false,
options: {},
onChange: function onChange() {}
onChange: function onChange() {},
className: ''
}
});
Object.defineProperty(WSDatePicker, 'propTypes', {
Expand All @@ -243,7 +254,8 @@ define(['exports', '../imports', './flatpickr'], function (exports, _imports, _f
placeholder: _imports.PropTypes.string,
iconOnly: _imports.PropTypes.bool,
options: _imports.PropTypes.object,
onChange: _imports.PropTypes.func
onChange: _imports.PropTypes.func,
className: _imports.PropTypes.string
}
});
Object.defineProperty(WSDatePicker, 'format', {
Expand Down
4 changes: 4 additions & 0 deletions dist/amd/ws-date-picker/ws-date-picker.scss
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
position: relative;
display: inline-block;
&.with-input .icon {
pointer-events: none;
position: absolute;
right: rem(10px);
top: rem(10px);
Expand Down Expand Up @@ -411,6 +412,9 @@
.flatpickr-input {
cursor: pointer;
vertical-align: top;
&:hover {
border-color: $input-focused-border-color;
}
}
input.flatpickr-input.active {
border-color: $input-focused-border-color;
Expand Down
Empty file modified dist/amd/ws-dropdown/dropdown-input.js
100755 → 100644
Empty file.
25 changes: 12 additions & 13 deletions dist/amd/ws-dropdown/dropdown-menu-item.js
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -76,20 +76,19 @@ define(['exports', '../imports', './dropdown-menu'], function (exports, _imports
_this.props.handle('go-back');
} else if (_this.state.children && _this.state.children.length) {
_this.props.handle('show-child', _this.menu);
} else {
if (!_this.context.multiple) {
if (_this.state.selected) {
_this.props.handle('change', null);
} else {
_this.state.selected = true;
_this.state.stored = true;
_this.props.handle('change', _this.state);
}
} else if (!_this.context.multiple) {
if (_this.state.selected) {
_this.props.handle('change', null);
} else {
_this.state.selected = !_this.state.selected;
}
_this.setState({
selected: true,
stored: true
});

_this.setState(_this.state);
_this.props.handle('change', _this.state);
}
} else {
_this.setState({ selected: !_this.state.selected });
}
}
});
Expand All @@ -114,7 +113,7 @@ define(['exports', '../imports', './dropdown-menu'], function (exports, _imports
}, {
key: 'componentWillReceiveProps',
value: function componentWillReceiveProps(props) {
this.state = props.item;
this.setState(props.item);
}
}, {
key: 'componentWillUnmount',
Expand Down
4 changes: 3 additions & 1 deletion dist/amd/ws-dropdown/dropdown-menu.js
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,9 @@ define(['exports', '../imports', './dropdown-menu-item'], function (exports, _im
filter: _imports.PropTypes.string,
placeholder: _imports.PropTypes.string,
limit: _imports.PropTypes.number,
selectAll: _imports.PropTypes.bool
selectAll: _imports.PropTypes.bool,
value: _imports.PropTypes.object,
handle: _imports.PropTypes.func
}
});
Object.defineProperty(DropdownMenu, 'contextTypes', {
Expand Down
19 changes: 15 additions & 4 deletions dist/amd/ws-dropdown/ws-dropdown.js
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@ define(['exports', '../imports', './dropdown-menu', './dropdown-input'], functio
return _imports.React.createElement(
'a',
{
href: '#void',
className: 'dropdown-trigger ' + disabledStyle,
ref: function ref(element) {
_this5.trigger = element;
Expand Down Expand Up @@ -361,6 +362,7 @@ define(['exports', '../imports', './dropdown-menu', './dropdown-input'], functio
return _imports.React.createElement(
'a',
{
href: '#void',
className: 'dropdown-trigger ' + disabledStyle,
ref: function ref(element) {
_this5.trigger = element;
Expand Down Expand Up @@ -404,10 +406,17 @@ define(['exports', '../imports', './dropdown-menu', './dropdown-input'], functio
value: function render() {
var _this7 = this;

var isWide = this.props.type === 'select';
var _props = this.props,
type = _props.type,
className = _props.className,
orientation = _props.orientation,
width = _props.width;


var isWide = type === 'select';
return _imports.React.createElement(
'div',
{ className: 'dropdown', ref: function ref(element) {
{ className: 'dropdown ' + className, ref: function ref(element) {
if (element) {
_this7.element = element;
}
Expand All @@ -416,8 +425,8 @@ define(['exports', '../imports', './dropdown-menu', './dropdown-input'], functio
_imports.React.createElement(
'div',
{
className: 'dropdown-container ' + this.props.orientation,
style: { width: this.props.width || (isWide ? '100%' : '') },
className: 'dropdown-container ' + orientation,
style: { width: width || (isWide ? '100%' : '') },
ref: function ref(element) {
if (element) {
_this7.dropdownContainer = element;
Expand All @@ -442,6 +451,7 @@ define(['exports', '../imports', './dropdown-menu', './dropdown-input'], functio
text: '',
icon: '',
items: [],
className: '',
multiple: false,
inputOnly: false,
filterable: false,
Expand All @@ -464,6 +474,7 @@ define(['exports', '../imports', './dropdown-menu', './dropdown-input'], functio
text: _imports.PropTypes.string,
icon: _imports.PropTypes.string,
items: _imports.PropTypes.array,
className: _imports.PropTypes.string,
multiple: _imports.PropTypes.bool,
filterable: _imports.PropTypes.bool,
inputOnly: _imports.PropTypes.bool,
Expand Down
2 changes: 1 addition & 1 deletion dist/amd/ws-header/authorization.js
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ define(['exports', './json-web-token'], function (exports, _jsonWebToken) {
value: function authorize(loginUrl, clientId, businessPartnerId) {
var query = this.buildQuery([['business_partner_id', businessPartnerId], ['client_id', clientId], ['state', this.createAndRememberUUID()], ['response_type', 'token']]);

location.href = loginUrl + '?' + query;
window.location.href = loginUrl + '?' + query;
}
}, {
key: 'unauthorize',
Expand Down
Empty file modified dist/amd/ws-header/json-web-token.js
100755 → 100644
Empty file.
Empty file modified dist/amd/ws-header/storage/abstract-storage.js
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion dist/amd/ws-header/storage/cookie-storage.js
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ define(['exports', './abstract-storage'], function (exports, _abstractStorage) {
key: 'createCookie',
value: function createCookie(key, value, expires) {
var encodedValue = encodeURIComponent(JSON.stringify(value));
var domain = location.hostname.replace(EXTRACT_TOP_LEVEL_DOMAIN, '$1');
var domain = window.location.hostname.replace(EXTRACT_TOP_LEVEL_DOMAIN, '$1');

document.cookie = '' + this.name + key + '=' + encodedValue + ';expires=' + expires + ';domain=' + domain;
}
Expand Down
6 changes: 3 additions & 3 deletions dist/amd/ws-header/storage/local-storage.js
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ define(['exports', './abstract-storage'], function (exports, _abstractStorage) {
key: 'set',
value: function set(key, value) {
var encodedValue = encodeURIComponent(JSON.stringify(value));
localStorage.setItem('' + this.name + key, encodedValue);
window.localStorage.setItem('' + this.name + key, encodedValue);
}
}, {
key: 'get',
value: function get(key) {
var encodedValue = localStorage.getItem('' + this.name + key);
var encodedValue = window.localStorage.getItem('' + this.name + key);

if (encodedValue) {
try {
Expand All @@ -86,7 +86,7 @@ define(['exports', './abstract-storage'], function (exports, _abstractStorage) {
}, {
key: 'remove',
value: function remove(key) {
localStorage.removeItem('' + this.name + key);
window.localStorage.removeItem('' + this.name + key);
}
}]);

Expand Down
Loading

0 comments on commit f0b841f

Please sign in to comment.