linear-react-components-ui 0.4.76-beta.18 → 0.4.76-beta.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/lib/alerts/AlertProvider.js +1 -1
- package/lib/alerts/BaseAlert.js +1 -1
- package/lib/assets/styles/treeview.scss +0 -4
- package/lib/buttons/DefaultButton.js +1 -1
- package/lib/buttons/index.js +28 -28
- package/lib/calendar/base/helpers.js +6 -6
- package/lib/calendar/base/index.js +1 -1
- package/lib/calendar/index.js +10 -10
- package/lib/checkbox/index.js +1 -1
- package/lib/dialog/index.js +6 -6
- package/lib/drawer/Drawer.js +1 -1
- package/lib/drawer/index.js +4 -4
- package/lib/dropdown/withDropdown.js +2 -2
- package/lib/fieldset/index.js +1 -1
- package/lib/form/Field.js +1 -1
- package/lib/form/helpers.js +1 -1
- package/lib/form/index.js +5 -5
- package/lib/form/withFieldHOC.js +1 -1
- package/lib/form/withFormSecurity.js +2 -2
- package/lib/icons/helper.js +4 -0
- package/lib/index.js +12 -12
- package/lib/inputs/base/InputTextBase.js +1 -1
- package/lib/inputs/base/helpers.js +1 -1
- package/lib/inputs/color/index.js +1 -1
- package/lib/inputs/date/Dropdown.js +1 -1
- package/lib/inputs/date/helpers.js +1 -1
- package/lib/inputs/date/index.js +1 -1
- package/lib/inputs/inputHOC.js +1 -1
- package/lib/inputs/mask/Cnpj.js +1 -1
- package/lib/inputs/mask/Cpf.js +1 -1
- package/lib/inputs/mask/helpers.js +2 -2
- package/lib/inputs/mask/imaskHOC.js +1 -1
- package/lib/inputs/mask/index.js +4 -4
- package/lib/inputs/multiSelect/Dropdown.js +1 -1
- package/lib/inputs/multiSelect/index.js +1 -1
- package/lib/inputs/number/format_number.js +1 -1
- package/lib/inputs/period/Dropdown.js +1 -1
- package/lib/inputs/period/helper.js +1 -1
- package/lib/inputs/period/index.js +1 -1
- package/lib/inputs/search/index.js +1 -1
- package/lib/inputs/select/Dropdown.js +1 -1
- package/lib/inputs/select/helper.js +1 -1
- package/lib/inputs/select/multiple/index.js +1 -1
- package/lib/inputs/select/simple/index.js +1 -1
- package/lib/internals/constants.js +1 -1
- package/lib/internals/withTooltip.js +1 -1
- package/lib/labelMessages/index.js +1 -1
- package/lib/labels/DefaultLabel.js +1 -1
- package/lib/labels/index.js +10 -10
- package/lib/list/Item.js +1 -1
- package/lib/list/index.js +1 -1
- package/lib/menus/sidenav/NavMenuItem.js +1 -1
- package/lib/menus/sidenav/NavSubMenuItem.js +1 -1
- package/lib/menus/sidenav/helpers.js +1 -1
- package/lib/menus/sidenav/index.js +9 -9
- package/lib/menus/sidenav/popup_menu_search/index.js +1 -1
- package/lib/panel/Default.js +1 -1
- package/lib/panel/helpers.js +1 -1
- package/lib/panel/index.js +14 -14
- package/lib/permissionValidations.js +1 -1
- package/lib/radio/index.js +1 -1
- package/lib/spinner/index.js +1 -1
- package/lib/split/Split.js +1 -1
- package/lib/table/helpers.js +1 -1
- package/lib/table/index.js +9 -9
- package/lib/tabs/Panel.js +1 -1
- package/lib/tabs/index.js +1 -1
- package/lib/tabs/tabHelpers.js +3 -2
- package/lib/toolbar/index.js +8 -8
- package/lib/treeview/Node.js +5 -21
- package/lib/treeview/index.js +4 -8
- package/lib/treeview_old/Node.js +1 -1
- package/package.json +1 -1
- package/lib/inputs/date/helper.js +0 -16
package/lib/toolbar/index.js
CHANGED
|
@@ -3,28 +3,28 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
Object.defineProperty(exports, "
|
|
6
|
+
Object.defineProperty(exports, "ButtonBar", {
|
|
7
7
|
enumerable: true,
|
|
8
8
|
get: function get() {
|
|
9
|
-
return
|
|
9
|
+
return _ButtonBar["default"];
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
Object.defineProperty(exports, "
|
|
12
|
+
Object.defineProperty(exports, "LabelBar", {
|
|
13
13
|
enumerable: true,
|
|
14
14
|
get: function get() {
|
|
15
|
-
return
|
|
15
|
+
return _LabelBar["default"];
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
|
-
Object.defineProperty(exports, "
|
|
18
|
+
Object.defineProperty(exports, "Separator", {
|
|
19
19
|
enumerable: true,
|
|
20
20
|
get: function get() {
|
|
21
|
-
return
|
|
21
|
+
return _Separator["default"];
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
|
-
Object.defineProperty(exports, "
|
|
24
|
+
Object.defineProperty(exports, "ToolBarGroup", {
|
|
25
25
|
enumerable: true,
|
|
26
26
|
get: function get() {
|
|
27
|
-
return
|
|
27
|
+
return _ToolBarGroup["default"];
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
30
|
exports["default"] = void 0;
|
package/lib/treeview/Node.js
CHANGED
|
@@ -27,8 +27,6 @@ var _list = _interopRequireWildcard(require("../list"));
|
|
|
27
27
|
|
|
28
28
|
var _toolbar = _interopRequireWildcard(require("../toolbar"));
|
|
29
29
|
|
|
30
|
-
var _SpinnerLoading = _interopRequireDefault(require("../spinner/SpinnerLoading"));
|
|
31
|
-
|
|
32
30
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
33
31
|
|
|
34
32
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -61,7 +59,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
|
|
|
61
59
|
|
|
62
60
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
63
61
|
|
|
64
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
62
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
65
63
|
|
|
66
64
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
67
65
|
|
|
@@ -157,9 +155,6 @@ var TreeNode = /*#__PURE__*/function (_Component) {
|
|
|
157
155
|
className: "treeviewitem"
|
|
158
156
|
}, _this2.getSpan(), /*#__PURE__*/_react["default"].createElement("div", {
|
|
159
157
|
className: "label",
|
|
160
|
-
style: !onNodeClick ? {
|
|
161
|
-
textDecoration: 'none'
|
|
162
|
-
} : null,
|
|
163
158
|
ref: _this2.labelRef,
|
|
164
159
|
role: "button",
|
|
165
160
|
onKeyPress: null,
|
|
@@ -245,11 +240,8 @@ var _initialiseProps = function _initialiseProps() {
|
|
|
245
240
|
enumerable: true,
|
|
246
241
|
writable: true,
|
|
247
242
|
value: function value() {
|
|
248
|
-
var
|
|
249
|
-
alwaysShowArrow = _this3$props.alwaysShowArrow,
|
|
250
|
-
idsInLoading = _this3$props.idsInLoading;
|
|
243
|
+
var alwaysShowArrow = _this3.props.alwaysShowArrow;
|
|
251
244
|
var node = _this3.state.node;
|
|
252
|
-
var isLoading = idsInLoading.includes(node.id);
|
|
253
245
|
|
|
254
246
|
var span = /*#__PURE__*/_react["default"].createElement("noscript", null);
|
|
255
247
|
|
|
@@ -258,17 +250,11 @@ var _initialiseProps = function _initialiseProps() {
|
|
|
258
250
|
onKeyPress: null,
|
|
259
251
|
tabIndex: 0,
|
|
260
252
|
role: "button",
|
|
261
|
-
style: isLoading ? {
|
|
262
|
-
marginLeft: '-30px',
|
|
263
|
-
marginTop: '-5px'
|
|
264
|
-
} : null,
|
|
265
253
|
className: "opencloseicon",
|
|
266
254
|
onClick: function onClick() {
|
|
267
255
|
return _this3.openCloseTree(node);
|
|
268
256
|
}
|
|
269
|
-
},
|
|
270
|
-
size: "35px"
|
|
271
|
-
}) : /*#__PURE__*/_react["default"].createElement(_icons["default"], {
|
|
257
|
+
}, /*#__PURE__*/_react["default"].createElement(_icons["default"], {
|
|
272
258
|
name: _this3.state.isVisible ? 'up' : 'down',
|
|
273
259
|
size: 10
|
|
274
260
|
}));
|
|
@@ -445,8 +431,7 @@ TreeNode.propTypes = {
|
|
|
445
431
|
onNodeClick: _propTypes["default"].func,
|
|
446
432
|
handlerOnNodeOpen: _propTypes["default"].func,
|
|
447
433
|
nodeElementsValidations: _propTypes["default"].object,
|
|
448
|
-
startNodesOpened: _propTypes["default"].bool.isRequired
|
|
449
|
-
idsInLoading: _propTypes["default"].arrayOf(_propTypes["default"].number)
|
|
434
|
+
startNodesOpened: _propTypes["default"].bool.isRequired
|
|
450
435
|
};
|
|
451
436
|
TreeNode.defaultProps = {
|
|
452
437
|
childrenIds: [],
|
|
@@ -459,8 +444,7 @@ TreeNode.defaultProps = {
|
|
|
459
444
|
nodeMenuButtonSize: 'small',
|
|
460
445
|
onNodeClick: undefined,
|
|
461
446
|
handlerOnNodeOpen: undefined,
|
|
462
|
-
nodeElementsValidations: undefined
|
|
463
|
-
idsInLoading: []
|
|
447
|
+
nodeElementsValidations: undefined
|
|
464
448
|
};
|
|
465
449
|
TreeNode.contextType = _constants.TreeviewContext;
|
|
466
450
|
var _default = TreeNode;
|
package/lib/treeview/index.js
CHANGED
|
@@ -65,7 +65,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
|
|
|
65
65
|
|
|
66
66
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
67
67
|
|
|
68
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
68
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
69
69
|
|
|
70
70
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
71
71
|
|
|
@@ -463,8 +463,7 @@ var TreeView = /*#__PURE__*/function (_Component) {
|
|
|
463
463
|
nodeToolbarElements = _this$props3.nodeToolbarElements,
|
|
464
464
|
nodeMenuButtonSize = _this$props3.nodeMenuButtonSize,
|
|
465
465
|
alwaysShowArrow = _this$props3.alwaysShowArrow,
|
|
466
|
-
startNodesOpened = _this$props3.startNodesOpened
|
|
467
|
-
idsInLoading = _this$props3.idsInLoading;
|
|
466
|
+
startNodesOpened = _this$props3.startNodesOpened;
|
|
468
467
|
var childrenIds = [];
|
|
469
468
|
|
|
470
469
|
if (node.itens && node.itens.length > 0) {
|
|
@@ -482,7 +481,6 @@ var TreeView = /*#__PURE__*/function (_Component) {
|
|
|
482
481
|
return /*#__PURE__*/_react["default"].createElement(_Node["default"], {
|
|
483
482
|
key: "node-".concat(node.id),
|
|
484
483
|
node: node,
|
|
485
|
-
idsInLoading: idsInLoading,
|
|
486
484
|
startNodesOpened: startNodesOpened,
|
|
487
485
|
alwaysShowArrow: alwaysShowArrow,
|
|
488
486
|
childrenIds: childrenIds,
|
|
@@ -598,8 +596,7 @@ TreeView.propTypes = {
|
|
|
598
596
|
onNodeClick: _propTypes["default"].func,
|
|
599
597
|
onNodeOpen: _propTypes["default"].func,
|
|
600
598
|
nodeElementsValidations: _propTypes["default"].object,
|
|
601
|
-
enableDynamicData: _propTypes["default"].bool
|
|
602
|
-
idsInLoading: _propTypes["default"].arrayOf(_propTypes["default"].number)
|
|
599
|
+
enableDynamicData: _propTypes["default"].bool
|
|
603
600
|
};
|
|
604
601
|
TreeView.defaultProps = {
|
|
605
602
|
customClass: '',
|
|
@@ -621,8 +618,7 @@ TreeView.defaultProps = {
|
|
|
621
618
|
onNodeClick: undefined,
|
|
622
619
|
onNodeOpen: undefined,
|
|
623
620
|
nodeElementsValidations: undefined,
|
|
624
|
-
enableDynamicData: false
|
|
625
|
-
idsInLoading: []
|
|
621
|
+
enableDynamicData: false
|
|
626
622
|
};
|
|
627
623
|
var _default = TreeView;
|
|
628
624
|
exports["default"] = _default;
|
package/lib/treeview_old/Node.js
CHANGED
|
@@ -35,7 +35,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
|
|
|
35
35
|
|
|
36
36
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
37
37
|
|
|
38
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
38
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
39
39
|
|
|
40
40
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
41
41
|
|
package/package.json
CHANGED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
|
|
8
|
-
var getCalendarDropdownStyle = function getCalendarDropdownStyle(_ref) {
|
|
9
|
-
var topPosition = _ref.topPosition,
|
|
10
|
-
leftPosition = _ref.leftPosition,
|
|
11
|
-
width = _ref.width;
|
|
12
|
-
return "top: ".concat(topPosition, "px;\n left: ").concat(leftPosition, "px;\n width:").concat(width, "px");
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
var _default = getCalendarDropdownStyle;
|
|
16
|
-
exports["default"] = _default;
|