@jetbrains/ring-ui 5.1.20 → 5.1.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/auth/request-builder.d.ts +1 -0
- package/components/code/code.d.ts +1 -0
- package/components/grid/row.js +3 -3
- package/components/header/profile.js +1 -1
- package/components/island/header.js +1 -1
- package/components/list/list.js +3 -3
- package/components/loader/loader__core.js +6 -6
- package/components/popup/popup.js +3 -3
- package/components/progress-bar/progress-bar.css +6 -0
- package/components/progress-bar/progress-bar.d.ts +6 -0
- package/components/progress-bar/progress-bar.js +9 -3
- package/components/query-assist/query-assist.js +1 -1
- package/components/select/select-popup.css +4 -0
- package/components/select/select.js +21 -21
- package/dist/_helpers/select__filter.js +1 -1
- package/dist/analytics/analytics__custom-plugin.js +1 -2
- package/dist/analytics/analytics__ga-plugin.js +1 -1
- package/dist/auth/auth__core.js +35 -35
- package/dist/auth/background-flow.js +2 -2
- package/dist/auth/iframe-flow.js +3 -3
- package/dist/auth/request-builder.d.ts +1 -0
- package/dist/auth/request-builder.js +2 -1
- package/dist/auth/storage.js +8 -4
- package/dist/auth/token-validator.js +4 -3
- package/dist/auth/window-flow.js +3 -3
- package/dist/auth-ng/auth-ng.js +0 -1
- package/dist/caret/caret.js +4 -4
- package/dist/clipboard/clipboard-fallback.js +3 -3
- package/dist/code/code.d.ts +1 -0
- package/dist/data-list/data-list.js +2 -2
- package/dist/date-picker/date-picker.js +1 -1
- package/dist/date-picker/date-popup.js +2 -2
- package/dist/dropdown/dropdown.js +2 -2
- package/dist/editable-heading/editable-heading.js +4 -4
- package/dist/global/focus-sensor-hoc.js +6 -6
- package/dist/global/schedule-raf.js +1 -1
- package/dist/grid/row.js +7 -1
- package/dist/header/profile.js +1 -0
- package/dist/header/smart-services.js +2 -2
- package/dist/input/input.js +2 -2
- package/dist/island/content.js +1 -1
- package/dist/island/header.js +1 -0
- package/dist/list/list.js +3 -0
- package/dist/loader/loader.js +1 -1
- package/dist/loader/loader__core.js +19 -7
- package/dist/loader-screen-ng/loader-screen-ng.js +0 -2
- package/dist/message-bundle-ng/message-bundle-ng.js +0 -1
- package/dist/pager/pager.js +4 -4
- package/dist/popup/popup.js +3 -0
- package/dist/progress-bar/progress-bar.d.ts +6 -0
- package/dist/progress-bar/progress-bar.js +11 -4
- package/dist/query-assist/query-assist.js +13 -12
- package/dist/select/select.js +22 -2
- package/dist/select-ng/select-ng.js +0 -2
- package/dist/select-ng/select-ng__lazy.js +1 -1
- package/dist/storage/storage__fallback.js +4 -2
- package/dist/style.css +1 -1
- package/dist/tab-trap/tab-trap.js +1 -1
- package/dist/table/multitable.js +7 -7
- package/dist/table/row-with-focus-sensor.js +4 -4
- package/dist/table/selection-shortcuts-hoc.js +11 -11
- package/dist/tag/tag.js +1 -1
- package/dist/tags-input/tags-input.js +7 -7
- package/dist/tooltip/tooltip.js +2 -2
- package/package.json +26 -26
package/dist/auth/storage.js
CHANGED
|
@@ -175,7 +175,7 @@ var AuthStorage = /*#__PURE__*/function () {
|
|
|
175
175
|
*/
|
|
176
176
|
}, {
|
|
177
177
|
key: "saveState",
|
|
178
|
-
value: function () {
|
|
178
|
+
value: (function () {
|
|
179
179
|
var _saveState = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(id, state, dontCleanAndRetryOnFail) {
|
|
180
180
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
181
181
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -218,9 +218,10 @@ var AuthStorage = /*#__PURE__*/function () {
|
|
|
218
218
|
*
|
|
219
219
|
* @return {Promise} promise that is resolved when OLD states [and some selected] are removed
|
|
220
220
|
*/
|
|
221
|
+
)
|
|
221
222
|
}, {
|
|
222
223
|
key: "cleanStates",
|
|
223
|
-
value: function () {
|
|
224
|
+
value: (function () {
|
|
224
225
|
var _cleanStates = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(removeStateId) {
|
|
225
226
|
var _this = this;
|
|
226
227
|
var now, removalResult, currentStates, stateStorageSize, removalPromises;
|
|
@@ -298,9 +299,10 @@ var AuthStorage = /*#__PURE__*/function () {
|
|
|
298
299
|
* @param {string} id unique state identifier
|
|
299
300
|
* @return {Promise.<StoredState>}
|
|
300
301
|
*/
|
|
302
|
+
)
|
|
301
303
|
}, {
|
|
302
304
|
key: "getState",
|
|
303
|
-
value: function () {
|
|
305
|
+
value: (function () {
|
|
304
306
|
var _getState = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(id) {
|
|
305
307
|
var result;
|
|
306
308
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
@@ -337,6 +339,7 @@ var AuthStorage = /*#__PURE__*/function () {
|
|
|
337
339
|
* @param {StoredToken} token
|
|
338
340
|
* @return {Promise} promise that is resolved when the token is saved
|
|
339
341
|
*/
|
|
342
|
+
)
|
|
340
343
|
}, {
|
|
341
344
|
key: "saveToken",
|
|
342
345
|
value: function saveToken(token) {
|
|
@@ -365,7 +368,7 @@ var AuthStorage = /*#__PURE__*/function () {
|
|
|
365
368
|
*/
|
|
366
369
|
}, {
|
|
367
370
|
key: "getCachedUser",
|
|
368
|
-
value: function () {
|
|
371
|
+
value: (function () {
|
|
369
372
|
var _getCachedUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(loadUser) {
|
|
370
373
|
var _this2 = this;
|
|
371
374
|
var user, loadAndCache;
|
|
@@ -404,6 +407,7 @@ var AuthStorage = /*#__PURE__*/function () {
|
|
|
404
407
|
/**
|
|
405
408
|
* Remove cached user if any
|
|
406
409
|
*/
|
|
410
|
+
)
|
|
407
411
|
}, {
|
|
408
412
|
key: "wipeCachedCurrentUser",
|
|
409
413
|
value: function wipeCachedCurrentUser() {
|
|
@@ -105,7 +105,7 @@ var TokenValidator = /*#__PURE__*/function () {
|
|
|
105
105
|
*/
|
|
106
106
|
}, {
|
|
107
107
|
key: "_validateAgainstUser",
|
|
108
|
-
value:
|
|
108
|
+
value: (
|
|
109
109
|
/**
|
|
110
110
|
* Check scopes
|
|
111
111
|
* @param {StoredToken} storedToken
|
|
@@ -169,9 +169,10 @@ var TokenValidator = /*#__PURE__*/function () {
|
|
|
169
169
|
* have {authRedirect: true}.
|
|
170
170
|
* @private
|
|
171
171
|
*/
|
|
172
|
+
)
|
|
172
173
|
}, {
|
|
173
174
|
key: "_getValidatedToken",
|
|
174
|
-
value: function () {
|
|
175
|
+
value: (function () {
|
|
175
176
|
var _getValidatedToken2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(validators) {
|
|
176
177
|
var storedToken, i;
|
|
177
178
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
@@ -211,7 +212,7 @@ var TokenValidator = /*#__PURE__*/function () {
|
|
|
211
212
|
return _getValidatedToken2.apply(this, arguments);
|
|
212
213
|
}
|
|
213
214
|
return _getValidatedToken;
|
|
214
|
-
}()
|
|
215
|
+
}())
|
|
215
216
|
}], [{
|
|
216
217
|
key: "_epoch",
|
|
217
218
|
value: function _epoch() {
|
package/dist/auth/window-flow.js
CHANGED
|
@@ -60,7 +60,7 @@ var WindowFlow = /*#__PURE__*/function () {
|
|
|
60
60
|
*/
|
|
61
61
|
}, {
|
|
62
62
|
key: "_load",
|
|
63
|
-
value: function () {
|
|
63
|
+
value: (function () {
|
|
64
64
|
var _load2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
65
65
|
var _this2 = this;
|
|
66
66
|
var authRequest;
|
|
@@ -91,7 +91,7 @@ var WindowFlow = /*#__PURE__*/function () {
|
|
|
91
91
|
removeStateListener();
|
|
92
92
|
removeTokenListener();
|
|
93
93
|
/* eslint-enable @typescript-eslint/no-use-before-define */
|
|
94
|
-
(_this2$_loginWindow = _this2._loginWindow) === null || _this2$_loginWindow === void 0
|
|
94
|
+
(_this2$_loginWindow = _this2._loginWindow) === null || _this2$_loginWindow === void 0 || _this2$_loginWindow.close();
|
|
95
95
|
clearTimeout(_this2._timeoutId);
|
|
96
96
|
};
|
|
97
97
|
var removeTokenListener = _this2._storage.onTokenChange(function (token) {
|
|
@@ -123,7 +123,7 @@ var WindowFlow = /*#__PURE__*/function () {
|
|
|
123
123
|
return _load2.apply(this, arguments);
|
|
124
124
|
}
|
|
125
125
|
return _load;
|
|
126
|
-
}()
|
|
126
|
+
}())
|
|
127
127
|
}, {
|
|
128
128
|
key: "stop",
|
|
129
129
|
value: function stop() {
|
package/dist/auth-ng/auth-ng.js
CHANGED
|
@@ -109,7 +109,6 @@ angularModule.provider('auth', ["$httpProvider", function provider($httpProvider
|
|
|
109
109
|
var defaultConfig = {
|
|
110
110
|
cleanHash: false //prevents infinite redirect on angular>1.2.26
|
|
111
111
|
};
|
|
112
|
-
|
|
113
112
|
this.init = function (authInstance) {
|
|
114
113
|
auth = authInstance;
|
|
115
114
|
};
|
package/dist/caret/caret.js
CHANGED
|
@@ -197,11 +197,11 @@ var Caret = /*#__PURE__*/function () {
|
|
|
197
197
|
try {
|
|
198
198
|
if (correctedPosition instanceof Range) {
|
|
199
199
|
var _window$getSelection, _window$getSelection2;
|
|
200
|
-
(_window$getSelection = window.getSelection()) === null || _window$getSelection === void 0
|
|
201
|
-
(_window$getSelection2 = window.getSelection()) === null || _window$getSelection2 === void 0
|
|
200
|
+
(_window$getSelection = window.getSelection()) === null || _window$getSelection === void 0 || _window$getSelection.removeAllRanges();
|
|
201
|
+
(_window$getSelection2 = window.getSelection()) === null || _window$getSelection2 === void 0 || _window$getSelection2.addRange(correctedPosition);
|
|
202
202
|
} else {
|
|
203
203
|
var _window$getSelection3;
|
|
204
|
-
(_window$getSelection3 = window.getSelection()) === null || _window$getSelection3 === void 0
|
|
204
|
+
(_window$getSelection3 = window.getSelection()) === null || _window$getSelection3 === void 0 || _window$getSelection3.collapse(curNode || this.target, correctedPosition);
|
|
205
205
|
}
|
|
206
206
|
} catch (e) {
|
|
207
207
|
// Do nothing
|
|
@@ -224,7 +224,7 @@ var Caret = /*#__PURE__*/function () {
|
|
|
224
224
|
var _window$getSelection4, _range;
|
|
225
225
|
// Both statements may throw
|
|
226
226
|
range = (_window$getSelection4 = window.getSelection()) === null || _window$getSelection4 === void 0 ? void 0 : _window$getSelection4.getRangeAt(0).cloneRange();
|
|
227
|
-
(_range = range) === null || _range === void 0
|
|
227
|
+
(_range = range) === null || _range === void 0 || _range.setStart(range.startContainer, range.startOffset - 1);
|
|
228
228
|
} catch (e) {
|
|
229
229
|
return offset;
|
|
230
230
|
}
|
|
@@ -26,12 +26,12 @@ function copyHTMLToClipboard(str) {
|
|
|
26
26
|
var selection = document.getSelection();
|
|
27
27
|
// Should restore previous selection
|
|
28
28
|
var selected = selection && selection.rangeCount > 0 ? selection.getRangeAt(0) : false;
|
|
29
|
-
selection === null || selection === void 0
|
|
29
|
+
selection === null || selection === void 0 || selection.removeAllRanges();
|
|
30
30
|
var range = document.createRange();
|
|
31
31
|
range.selectNode(el);
|
|
32
|
-
selection === null || selection === void 0
|
|
32
|
+
selection === null || selection === void 0 || selection.addRange(range);
|
|
33
33
|
document.execCommand('copy');
|
|
34
|
-
selection === null || selection === void 0
|
|
34
|
+
selection === null || selection === void 0 || selection.removeAllRanges();
|
|
35
35
|
document.execCommand('copy');
|
|
36
36
|
document.body.removeChild(el);
|
|
37
37
|
if (selected && selection) {
|
package/dist/code/code.d.ts
CHANGED
|
@@ -104,10 +104,10 @@ var DataList = /*#__PURE__*/function (_PureComponent) {
|
|
|
104
104
|
var item = itemFormatter(focused);
|
|
105
105
|
if (item.collapsed) {
|
|
106
106
|
var _item$onExpand;
|
|
107
|
-
(_item$onExpand = item.onExpand) === null || _item$onExpand === void 0
|
|
107
|
+
(_item$onExpand = item.onExpand) === null || _item$onExpand === void 0 || _item$onExpand.call(item);
|
|
108
108
|
} else {
|
|
109
109
|
var _item$onCollapse;
|
|
110
|
-
(_item$onCollapse = item.onCollapse) === null || _item$onCollapse === void 0
|
|
110
|
+
(_item$onCollapse = item.onCollapse) === null || _item$onCollapse === void 0 || _item$onCollapse.call(item);
|
|
111
111
|
}
|
|
112
112
|
});
|
|
113
113
|
_defineProperty(_assertThisInitialized(_this), "shortcutsMap", {
|
|
@@ -179,7 +179,7 @@ var DatePicker = /*#__PURE__*/function (_PureComponent) {
|
|
|
179
179
|
});
|
|
180
180
|
_defineProperty(_assertThisInitialized(_this), "closePopup", function () {
|
|
181
181
|
var _this$popup;
|
|
182
|
-
(_this$popup = _this.popup) === null || _this$popup === void 0
|
|
182
|
+
(_this$popup = _this.popup) === null || _this$popup === void 0 || _this$popup._onCloseAttempt();
|
|
183
183
|
});
|
|
184
184
|
_defineProperty(_assertThisInitialized(_this), "parse", memoize(function (date) {
|
|
185
185
|
var parseDateInput = _this.props.parseDateInput;
|
|
@@ -197,8 +197,8 @@ var DatePopup = /*#__PURE__*/function (_Component) {
|
|
|
197
197
|
};
|
|
198
198
|
}
|
|
199
199
|
_this.select(changes);
|
|
200
|
-
(_this$props$onClear = (_this$props = _this.props).onClear) === null || _this$props$onClear === void 0
|
|
201
|
-
(_this$componentRef$cu = _this.componentRef.current) === null || _this$componentRef$cu === void 0 || (_this$componentRef$cu = _this$componentRef$cu.querySelector('input')) === null || _this$componentRef$cu === void 0
|
|
200
|
+
(_this$props$onClear = (_this$props = _this.props).onClear) === null || _this$props$onClear === void 0 || _this$props$onClear.call(_this$props, e);
|
|
201
|
+
(_this$componentRef$cu = _this.componentRef.current) === null || _this$componentRef$cu === void 0 || (_this$componentRef$cu = _this$componentRef$cu.querySelector('input')) === null || _this$componentRef$cu === void 0 || _this$componentRef$cu.focus();
|
|
202
202
|
});
|
|
203
203
|
var defaultState = {
|
|
204
204
|
text: null,
|
|
@@ -83,7 +83,7 @@ var Dropdown = /*#__PURE__*/function (_Component) {
|
|
|
83
83
|
return;
|
|
84
84
|
}
|
|
85
85
|
_this._clearTimer();
|
|
86
|
-
(_this$props$onMouseEn = (_this$props = _this.props).onMouseEnter) === null || _this$props$onMouseEn === void 0
|
|
86
|
+
(_this$props$onMouseEn = (_this$props = _this.props).onMouseEnter) === null || _this$props$onMouseEn === void 0 || _this$props$onMouseEn.call(_this$props, event);
|
|
87
87
|
_this.hoverTimer = window.setTimeout(function () {
|
|
88
88
|
if (!_this.state.show) {
|
|
89
89
|
_this._toggle(true);
|
|
@@ -95,7 +95,7 @@ var Dropdown = /*#__PURE__*/function (_Component) {
|
|
|
95
95
|
if (_this.props.disabled) {
|
|
96
96
|
return;
|
|
97
97
|
}
|
|
98
|
-
(_this$props$onMouseLe = (_this$props2 = _this.props).onMouseLeave) === null || _this$props$onMouseLe === void 0
|
|
98
|
+
(_this$props$onMouseLe = (_this$props2 = _this.props).onMouseLeave) === null || _this$props$onMouseLe === void 0 || _this$props$onMouseLe.call(_this$props2, event);
|
|
99
99
|
if (_this.state.pinned) {
|
|
100
100
|
return;
|
|
101
101
|
}
|
|
@@ -191,20 +191,20 @@ var EditableHeading = function EditableHeading(props) {
|
|
|
191
191
|
setIsInFocus(true);
|
|
192
192
|
checkValue(e.target);
|
|
193
193
|
checkOverflow(e.target);
|
|
194
|
-
onFocus === null || onFocus === void 0
|
|
194
|
+
onFocus === null || onFocus === void 0 || onFocus(e);
|
|
195
195
|
}, [onFocus, checkOverflow, checkValue]);
|
|
196
196
|
var onInputChange = React.useCallback(function (e) {
|
|
197
197
|
checkValue(e.target);
|
|
198
198
|
checkOverflow(e.target);
|
|
199
|
-
onChange === null || onChange === void 0
|
|
199
|
+
onChange === null || onChange === void 0 || onChange(e);
|
|
200
200
|
}, [onChange, checkOverflow, checkValue]);
|
|
201
201
|
var onInputScroll = React.useCallback(function (e) {
|
|
202
202
|
checkOverflow(e.target);
|
|
203
|
-
onScroll === null || onScroll === void 0
|
|
203
|
+
onScroll === null || onScroll === void 0 || onScroll(e);
|
|
204
204
|
}, [onScroll, checkOverflow]);
|
|
205
205
|
var onInputBlur = React.useCallback(function (e) {
|
|
206
206
|
setIsInFocus(false);
|
|
207
|
-
onBlur === null || onBlur === void 0
|
|
207
|
+
onBlur === null || onBlur === void 0 || onBlur(e);
|
|
208
208
|
}, [onBlur]);
|
|
209
209
|
useEffect(function () {
|
|
210
210
|
window.addEventListener('mousemove', onMouseMove);
|
|
@@ -55,7 +55,7 @@ function focusSensorHOC(ComposedComponent) {
|
|
|
55
55
|
_this.setState({
|
|
56
56
|
focused: true
|
|
57
57
|
});
|
|
58
|
-
(_this$props$onFocus = (_this$props = _this.props).onFocus) === null || _this$props$onFocus === void 0
|
|
58
|
+
(_this$props$onFocus = (_this$props = _this.props).onFocus) === null || _this$props$onFocus === void 0 || _this$props$onFocus.call(_this$props);
|
|
59
59
|
}
|
|
60
60
|
});
|
|
61
61
|
_defineProperty(_assertThisInitialized(_this), "onBlurCapture", function (_ref3) {
|
|
@@ -71,7 +71,7 @@ function focusSensorHOC(ComposedComponent) {
|
|
|
71
71
|
_this.setState({
|
|
72
72
|
focused: false
|
|
73
73
|
});
|
|
74
|
-
(_this$props$onBlur = (_this$props2 = _this.props).onBlur) === null || _this$props$onBlur === void 0
|
|
74
|
+
(_this$props$onBlur = (_this$props2 = _this.props).onBlur) === null || _this$props$onBlur === void 0 || _this$props$onBlur.call(_this$props2);
|
|
75
75
|
}
|
|
76
76
|
}, 1);
|
|
77
77
|
}
|
|
@@ -79,13 +79,13 @@ function focusSensorHOC(ComposedComponent) {
|
|
|
79
79
|
_defineProperty(_assertThisInitialized(_this), "onFocusRestore", function () {
|
|
80
80
|
var _this$node2;
|
|
81
81
|
_this._skipNextCapture = true;
|
|
82
|
-
(_this$node2 = _this.node) === null || _this$node2 === void 0
|
|
82
|
+
(_this$node2 = _this.node) === null || _this$node2 === void 0 || _this$node2.focus({
|
|
83
83
|
preventScroll: !_this.props.scrollOnTableFocus
|
|
84
84
|
});
|
|
85
85
|
});
|
|
86
86
|
_defineProperty(_assertThisInitialized(_this), "onFocusReset", function () {
|
|
87
87
|
var _this$node3;
|
|
88
|
-
(_this$node3 = _this.node) === null || _this$node3 === void 0
|
|
88
|
+
(_this$node3 = _this.node) === null || _this$node3 === void 0 || _this$node3.blur();
|
|
89
89
|
});
|
|
90
90
|
return _this;
|
|
91
91
|
}
|
|
@@ -96,14 +96,14 @@ function focusSensorHOC(ComposedComponent) {
|
|
|
96
96
|
autofocus = _this$props3.autofocus,
|
|
97
97
|
scrollOnTableFocus = _this$props3.scrollOnTableFocus,
|
|
98
98
|
node = this.node;
|
|
99
|
-
node === null || node === void 0
|
|
99
|
+
node === null || node === void 0 || node.setAttribute('tabindex', '0');
|
|
100
100
|
if (node != null) {
|
|
101
101
|
node.style.outline = 'none';
|
|
102
102
|
}
|
|
103
103
|
document.addEventListener('focus', this.onFocusCapture, true);
|
|
104
104
|
document.addEventListener('blur', this.onBlurCapture, true);
|
|
105
105
|
if (autofocus) {
|
|
106
|
-
node === null || node === void 0
|
|
106
|
+
node === null || node === void 0 || node.focus({
|
|
107
107
|
preventScroll: !scrollOnTableFocus
|
|
108
108
|
});
|
|
109
109
|
}
|
|
@@ -5,7 +5,7 @@ function scheduleRAF(trailingCall) {
|
|
|
5
5
|
function doSchedule() {
|
|
6
6
|
RAF = window.requestAnimationFrame(function () {
|
|
7
7
|
var _scheduledCb;
|
|
8
|
-
(_scheduledCb = scheduledCb) === null || _scheduledCb === void 0
|
|
8
|
+
(_scheduledCb = scheduledCb) === null || _scheduledCb === void 0 || _scheduledCb();
|
|
9
9
|
if (trailingCallScheduled) {
|
|
10
10
|
trailingCallScheduled = false;
|
|
11
11
|
doSchedule();
|
package/dist/grid/row.js
CHANGED
|
@@ -10,7 +10,13 @@ import { m as modules_855170c0 } from '../_helpers/grid.js';
|
|
|
10
10
|
|
|
11
11
|
var _excluded = ["children", "className", "reverse"];
|
|
12
12
|
var ModifierType = PropTypes.oneOf(['xs', 'sm', 'md', 'lg']);
|
|
13
|
-
var modifierKeys = ['start', 'center', 'end',
|
|
13
|
+
var modifierKeys = ['start', 'center', 'end',
|
|
14
|
+
// text-align, justify-content
|
|
15
|
+
'around', 'between',
|
|
16
|
+
// justify-content
|
|
17
|
+
'top', 'middle', 'baseline', 'bottom',
|
|
18
|
+
// align-items
|
|
19
|
+
'first', 'last' // order
|
|
14
20
|
];
|
|
15
21
|
/**
|
|
16
22
|
* Converts xs="middle" to class "middle-xs"
|
package/dist/header/profile.js
CHANGED
|
@@ -161,6 +161,7 @@ var Profile = /*#__PURE__*/function (_PureComponent) {
|
|
|
161
161
|
rgItemType: PopupMenu.ListProps.Type.LINK,
|
|
162
162
|
label: (_translations$profile = translations === null || translations === void 0 ? void 0 : translations.profile) !== null && _translations$profile !== void 0 ? _translations$profile : translate('profile'),
|
|
163
163
|
target: '_self',
|
|
164
|
+
// Full page reload in Angular
|
|
164
165
|
href: profileUrl,
|
|
165
166
|
LinkComponent
|
|
166
167
|
}, showSwitchUser && {
|
|
@@ -129,7 +129,7 @@ var SmartServices = /*#__PURE__*/function (_Component) {
|
|
|
129
129
|
_this.setState({
|
|
130
130
|
loading: true
|
|
131
131
|
});
|
|
132
|
-
(_this$getServices = _this.getServices(SmartServices.allFields)) === null || _this$getServices === void 0
|
|
132
|
+
(_this$getServices = _this.getServices(SmartServices.allFields)) === null || _this$getServices === void 0 || _this$getServices.then(function (services) {
|
|
133
133
|
_this.setState({
|
|
134
134
|
services
|
|
135
135
|
});
|
|
@@ -145,7 +145,7 @@ var SmartServices = /*#__PURE__*/function (_Component) {
|
|
|
145
145
|
_this2 = this;
|
|
146
146
|
var auth = this.props.auth;
|
|
147
147
|
this.http = new HTTP(auth, auth.getAPIPath());
|
|
148
|
-
(_this$getServices2 = this.getServices(SmartServices.countFields)) === null || _this$getServices2 === void 0
|
|
148
|
+
(_this$getServices2 = this.getServices(SmartServices.countFields)) === null || _this$getServices2 === void 0 || _this$getServices2.then(function (services) {
|
|
149
149
|
if (!services.length) {
|
|
150
150
|
_this2.setState({
|
|
151
151
|
visible: false
|
package/dist/input/input.js
CHANGED
|
@@ -74,14 +74,14 @@ var Input = /*#__PURE__*/function (_PureComponent) {
|
|
|
74
74
|
_defineProperty(_assertThisInitialized(_this), "handleInputChange", function (e) {
|
|
75
75
|
if (!_this.props.multiline) {
|
|
76
76
|
var _this$props$onChange, _this$props;
|
|
77
|
-
(_this$props$onChange = (_this$props = _this.props).onChange) === null || _this$props$onChange === void 0
|
|
77
|
+
(_this$props$onChange = (_this$props = _this.props).onChange) === null || _this$props$onChange === void 0 || _this$props$onChange.call(_this$props, e);
|
|
78
78
|
_this.checkValue();
|
|
79
79
|
}
|
|
80
80
|
});
|
|
81
81
|
_defineProperty(_assertThisInitialized(_this), "handleTextareaChange", function (e) {
|
|
82
82
|
if (_this.props.multiline) {
|
|
83
83
|
var _this$props$onChange2, _this$props2;
|
|
84
|
-
(_this$props$onChange2 = (_this$props2 = _this.props).onChange) === null || _this$props$onChange2 === void 0
|
|
84
|
+
(_this$props$onChange2 = (_this$props2 = _this.props).onChange) === null || _this$props$onChange2 === void 0 || _this$props$onChange2.call(_this$props2, e);
|
|
85
85
|
_this.checkValue();
|
|
86
86
|
}
|
|
87
87
|
});
|
package/dist/island/content.js
CHANGED
|
@@ -53,7 +53,7 @@ var Content = /*#__PURE__*/function (_Component) {
|
|
|
53
53
|
var scrolledToBottom = offsetHeight + scrollTop >= scrollHeight - END_DISTANCE;
|
|
54
54
|
if (scrolledToBottom) {
|
|
55
55
|
var _this$props$onScrollT, _this$props;
|
|
56
|
-
(_this$props$onScrollT = (_this$props = _this.props).onScrollToBottom) === null || _this$props$onScrollT === void 0
|
|
56
|
+
(_this$props$onScrollT = (_this$props = _this.props).onScrollToBottom) === null || _this$props$onScrollT === void 0 || _this$props$onScrollT.call(_this$props);
|
|
57
57
|
}
|
|
58
58
|
_this.setState({
|
|
59
59
|
scrolledToTop,
|
package/dist/island/header.js
CHANGED
|
@@ -56,6 +56,7 @@ var Header = /*#__PURE__*/function (_Component) {
|
|
|
56
56
|
});
|
|
57
57
|
var headerStyle = phase != null ? {
|
|
58
58
|
lineHeight: "".concat(this.style('LINE_HEIGHT'), "px"),
|
|
59
|
+
// need to append px because number is a valid line-height value
|
|
59
60
|
paddingTop: this.style('PADDING_TOP'),
|
|
60
61
|
paddingBottom: this.style('PADDING_BOTTOM')
|
|
61
62
|
} : undefined;
|
package/dist/list/list.js
CHANGED
|
@@ -776,8 +776,11 @@ _defineProperty(List, "propTypes", {
|
|
|
776
776
|
_defineProperty(List, "defaultProps", {
|
|
777
777
|
data: [],
|
|
778
778
|
restoreActiveIndex: false,
|
|
779
|
+
// restore active item using its "key" property
|
|
779
780
|
activateSingleItem: false,
|
|
781
|
+
// if there is only one item, activate it
|
|
780
782
|
activateFirstItem: false,
|
|
783
|
+
// if there no active items, activate the first one
|
|
781
784
|
onMouseOut: noop,
|
|
782
785
|
onSelect: noop,
|
|
783
786
|
onScrollToBottom: noop,
|
package/dist/loader/loader.js
CHANGED
|
@@ -56,7 +56,7 @@ var Loader = /*#__PURE__*/function (_PureComponent) {
|
|
|
56
56
|
key: "componentWillUnmount",
|
|
57
57
|
value: function componentWillUnmount() {
|
|
58
58
|
var _this$loader;
|
|
59
|
-
(_this$loader = this.loader) === null || _this$loader === void 0
|
|
59
|
+
(_this$loader = this.loader) === null || _this$loader === void 0 || _this$loader.destroy();
|
|
60
60
|
}
|
|
61
61
|
}, {
|
|
62
62
|
key: "render",
|
|
@@ -102,7 +102,7 @@ var LoaderCore = /*#__PURE__*/function () {
|
|
|
102
102
|
this.canvas.style.width = "".concat(this.props.size, "px");
|
|
103
103
|
this.canvas.style.height = "".concat(this.props.size, "px");
|
|
104
104
|
this.ctx = this.canvas.getContext('2d');
|
|
105
|
-
(_this$ctx = this.ctx) === null || _this$ctx === void 0
|
|
105
|
+
(_this$ctx = this.ctx) === null || _this$ctx === void 0 || _this$ctx.scale(pixelRatio, pixelRatio);
|
|
106
106
|
this.height = this.props.size;
|
|
107
107
|
this.width = this.props.size;
|
|
108
108
|
this.particles = [];
|
|
@@ -282,27 +282,39 @@ _defineProperty(LoaderCore, "defaultProps", {
|
|
|
282
282
|
r: 215,
|
|
283
283
|
g: 60,
|
|
284
284
|
b: 234
|
|
285
|
-
},
|
|
285
|
+
},
|
|
286
|
+
//#D73CEA
|
|
287
|
+
{
|
|
286
288
|
r: 145,
|
|
287
289
|
g: 53,
|
|
288
290
|
b: 224
|
|
289
|
-
},
|
|
291
|
+
},
|
|
292
|
+
//#9135E0
|
|
293
|
+
{
|
|
290
294
|
r: 88,
|
|
291
295
|
g: 72,
|
|
292
296
|
b: 224
|
|
293
|
-
},
|
|
297
|
+
},
|
|
298
|
+
//#5848F4
|
|
299
|
+
{
|
|
294
300
|
r: 37,
|
|
295
301
|
g: 183,
|
|
296
302
|
b: 255
|
|
297
|
-
},
|
|
303
|
+
},
|
|
304
|
+
//#25B7FF
|
|
305
|
+
{
|
|
298
306
|
r: 89,
|
|
299
307
|
g: 189,
|
|
300
308
|
b: 0
|
|
301
|
-
},
|
|
309
|
+
},
|
|
310
|
+
//#59BD00
|
|
311
|
+
{
|
|
302
312
|
r: 251,
|
|
303
313
|
g: 172,
|
|
304
314
|
b: 2
|
|
305
|
-
},
|
|
315
|
+
},
|
|
316
|
+
//#FBAC02
|
|
317
|
+
{
|
|
306
318
|
r: 227,
|
|
307
319
|
g: 37,
|
|
308
320
|
b: 129
|
|
@@ -34,7 +34,6 @@ angularModule.service('loaderScreen', ["$timeout", "$rootScope", function servic
|
|
|
34
34
|
if (showLoaderPromise) {
|
|
35
35
|
return; // already scheduled to show
|
|
36
36
|
}
|
|
37
|
-
|
|
38
37
|
showLoaderPromise = $timeout(function () {
|
|
39
38
|
_this.setVisible(true);
|
|
40
39
|
}, ttl);
|
|
@@ -83,7 +82,6 @@ angularModule.service('loaderScreen', ["$timeout", "$rootScope", function servic
|
|
|
83
82
|
});
|
|
84
83
|
/* eslint-enable angular/on-watch */
|
|
85
84
|
}]);
|
|
86
|
-
|
|
87
85
|
angularModule.directive('rgLoaderScreen', function rgLoaderScreenDirective() {
|
|
88
86
|
return {
|
|
89
87
|
restrict: 'A',
|
|
@@ -144,7 +144,6 @@ function RingMessageBundle(ringI18n) {
|
|
|
144
144
|
};
|
|
145
145
|
/* eslint-enable camelcase */
|
|
146
146
|
}
|
|
147
|
-
|
|
148
147
|
angularModule.factory('ringI18n', emptyI18n);
|
|
149
148
|
angularModule.service('RingMessageBundle', ['ringI18n', RingMessageBundle]);
|
|
150
149
|
var messageBundleNg = angularModule.name;
|
package/dist/pager/pager.js
CHANGED
|
@@ -138,7 +138,7 @@ var Pager = /*#__PURE__*/function (_PureComponent) {
|
|
|
138
138
|
if (currentPage !== 1) {
|
|
139
139
|
var _this$props$onPageCha, _this$props;
|
|
140
140
|
var prevPage = currentPage - 1;
|
|
141
|
-
(_this$props$onPageCha = (_this$props = _this.props).onPageChange) === null || _this$props$onPageCha === void 0
|
|
141
|
+
(_this$props$onPageCha = (_this$props = _this.props).onPageChange) === null || _this$props$onPageCha === void 0 || _this$props$onPageCha.call(_this$props, prevPage);
|
|
142
142
|
}
|
|
143
143
|
});
|
|
144
144
|
_defineProperty(_assertThisInitialized(_this), "handleNextClick", function () {
|
|
@@ -149,7 +149,7 @@ var Pager = /*#__PURE__*/function (_PureComponent) {
|
|
|
149
149
|
var total = _this.getTotalPages();
|
|
150
150
|
if (currentPage !== total) {
|
|
151
151
|
var _this$props$onPageCha2, _this$props3;
|
|
152
|
-
(_this$props$onPageCha2 = (_this$props3 = _this.props).onPageChange) === null || _this$props$onPageCha2 === void 0
|
|
152
|
+
(_this$props$onPageCha2 = (_this$props3 = _this.props).onPageChange) === null || _this$props$onPageCha2 === void 0 || _this$props$onPageCha2.call(_this$props3, nextPage);
|
|
153
153
|
} else if (_this.props.openTotal) {
|
|
154
154
|
onLoadPage(nextPage);
|
|
155
155
|
}
|
|
@@ -157,7 +157,7 @@ var Pager = /*#__PURE__*/function (_PureComponent) {
|
|
|
157
157
|
_defineProperty(_assertThisInitialized(_this), "handlePageChange", memoize(function (i) {
|
|
158
158
|
return function (event) {
|
|
159
159
|
var _this$props$onPageCha3, _this$props4;
|
|
160
|
-
(_this$props$onPageCha3 = (_this$props4 = _this.props).onPageChange) === null || _this$props$onPageCha3 === void 0
|
|
160
|
+
(_this$props$onPageCha3 = (_this$props4 = _this.props).onPageChange) === null || _this$props$onPageCha3 === void 0 || _this$props$onPageCha3.call(_this$props4, i, event);
|
|
161
161
|
};
|
|
162
162
|
}));
|
|
163
163
|
_defineProperty(_assertThisInitialized(_this), "handleLoadMore", memoize(function (i) {
|
|
@@ -315,7 +315,7 @@ var Pager = /*#__PURE__*/function (_PureComponent) {
|
|
|
315
315
|
var translate = this.context.translate;
|
|
316
316
|
if (totalPages < this.props.currentPage) {
|
|
317
317
|
var _this$props$onPageCha4, _this$props9;
|
|
318
|
-
(_this$props$onPageCha4 = (_this$props9 = this.props).onPageChange) === null || _this$props$onPageCha4 === void 0
|
|
318
|
+
(_this$props$onPageCha4 = (_this$props9 = this.props).onPageChange) === null || _this$props$onPageCha4 === void 0 || _this$props$onPageCha4.call(_this$props9, totalPages);
|
|
319
319
|
}
|
|
320
320
|
var start = 1;
|
|
321
321
|
var end = totalPages;
|
package/dist/popup/popup.js
CHANGED
|
@@ -393,8 +393,10 @@ Popup.propTypes = {
|
|
|
393
393
|
dontCloseOnAnchorClick: PropTypes.bool,
|
|
394
394
|
shortcuts: PropTypes.bool,
|
|
395
395
|
keepMounted: PropTypes.bool,
|
|
396
|
+
// pass this prop to preserve the popup's DOM state while hidden
|
|
396
397
|
'data-test': PropTypes.string,
|
|
397
398
|
client: PropTypes.bool,
|
|
399
|
+
// true means that it's never used in SSR
|
|
398
400
|
directions: PropTypes.arrayOf(PropTypes.string),
|
|
399
401
|
autoPositioning: PropTypes.bool,
|
|
400
402
|
autoCorrectTopOverflow: PropTypes.bool,
|
|
@@ -404,6 +406,7 @@ Popup.propTypes = {
|
|
|
404
406
|
minWidth: PropTypes.number,
|
|
405
407
|
sidePadding: PropTypes.number,
|
|
406
408
|
attached: PropTypes.bool,
|
|
409
|
+
// Popup adjacent to an input, without upper border and shadow
|
|
407
410
|
onMouseDown: PropTypes.func,
|
|
408
411
|
onMouseUp: PropTypes.func,
|
|
409
412
|
onMouseOver: PropTypes.func,
|
|
@@ -5,6 +5,7 @@ export interface ProgressBarProps extends HTMLAttributes<HTMLElement> {
|
|
|
5
5
|
value: number;
|
|
6
6
|
label: string;
|
|
7
7
|
global?: boolean | null | undefined;
|
|
8
|
+
staticColor?: boolean;
|
|
8
9
|
}
|
|
9
10
|
/**
|
|
10
11
|
* @name Progress Bar
|
|
@@ -43,6 +44,11 @@ export default class ProgressBar extends PureComponent<ProgressBarProps> {
|
|
|
43
44
|
* @type {number}
|
|
44
45
|
*/
|
|
45
46
|
value: PropTypes.Requireable<number>;
|
|
47
|
+
/**
|
|
48
|
+
* Disables Disabled progress bar color animation and sets it to static color.
|
|
49
|
+
* @type {boolean}
|
|
50
|
+
*/
|
|
51
|
+
staticColor: PropTypes.Requireable<boolean>;
|
|
46
52
|
};
|
|
47
53
|
static defaultProps: {
|
|
48
54
|
max: number;
|
|
@@ -4,9 +4,9 @@ import React, { PureComponent } from 'react';
|
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import classNames from 'classnames';
|
|
6
6
|
|
|
7
|
-
var modules_fb7af416 = {"dark":"dark_rui_eb55","unit":"i__const_unit_1","light":"light_rui_2ac4","progressBar":"progressBar_rui_5875","globalMode":"globalMode_rui_5875","line":"line_rui_5875","progress-bar":"progress-bar_rui_5875"};
|
|
7
|
+
var modules_fb7af416 = {"dark":"dark_rui_eb55","unit":"i__const_unit_1","light":"light_rui_2ac4","progressBar":"progressBar_rui_5875","globalMode":"globalMode_rui_5875","line":"line_rui_5875","progress-bar":"progress-bar_rui_5875","staticLineColor":"staticLineColor_rui_5875"};
|
|
8
8
|
|
|
9
|
-
var _excluded = ["className", "global", "max", "value", "label"];
|
|
9
|
+
var _excluded = ["className", "global", "max", "value", "label", "staticColor"];
|
|
10
10
|
/**
|
|
11
11
|
* @name Progress Bar
|
|
12
12
|
*/
|
|
@@ -39,10 +39,12 @@ var ProgressBar = /*#__PURE__*/function (_PureComponent) {
|
|
|
39
39
|
max = _this$props.max,
|
|
40
40
|
value = _this$props.value,
|
|
41
41
|
label = _this$props.label,
|
|
42
|
+
staticColor = _this$props.staticColor,
|
|
42
43
|
otherProps = _objectWithoutProperties(_this$props, _excluded);
|
|
43
44
|
var width = value ? "".concat(ProgressBar.toPercent(value, max), "%") : undefined;
|
|
44
45
|
var classes = classNames(modules_fb7af416.progressBar, className, {
|
|
45
|
-
[modules_fb7af416.globalMode]: global
|
|
46
|
+
[modules_fb7af416.globalMode]: global,
|
|
47
|
+
[modules_fb7af416.staticLineColor]: staticColor
|
|
46
48
|
});
|
|
47
49
|
return /*#__PURE__*/React.createElement("div", _extends({}, otherProps, {
|
|
48
50
|
className: classes,
|
|
@@ -102,7 +104,12 @@ _defineProperty(ProgressBar, "propTypes", {
|
|
|
102
104
|
* A floating point number that specifies current task completion rate.
|
|
103
105
|
* @type {number}
|
|
104
106
|
*/
|
|
105
|
-
value: PropTypes.number
|
|
107
|
+
value: PropTypes.number,
|
|
108
|
+
/**
|
|
109
|
+
* Disables Disabled progress bar color animation and sets it to static color.
|
|
110
|
+
* @type {boolean}
|
|
111
|
+
*/
|
|
112
|
+
staticColor: PropTypes.bool
|
|
106
113
|
});
|
|
107
114
|
_defineProperty(ProgressBar, "defaultProps", {
|
|
108
115
|
max: 1.0,
|