linear-react-components-ui 0.4.77-beta.21 → 0.4.77-beta.22
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/treetable.scss +155 -0
- 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/dialog.spec.js +40 -33
- package/lib/dialog/form/index.js +5 -4
- package/lib/dialog/index.js +6 -6
- package/lib/drawer/Drawer.js +26 -6
- package/lib/drawer/Drawer.spec.js +54 -26
- 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/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/helpers.js +1 -1
- package/lib/list/index.js +1 -1
- package/lib/menus/float/SubMenuContainer.js +95 -0
- 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 +2 -3
- package/lib/toolbar/index.js +8 -8
- package/lib/treetable/helpers.js +36 -0
- package/lib/treetable/index.js +297 -0
- package/lib/treeview/Node.js +1 -1
- package/lib/treeview/index.js +1 -1
- package/lib/treeview_old/Node.js +1 -1
- package/lib/uitour/helpers.js +1 -1
- package/lib/uitour/index.js +1 -1
- package/package.json +1 -1
|
@@ -37,7 +37,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
37
37
|
|
|
38
38
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
39
39
|
|
|
40
|
-
function _iterableToArrayLimit(arr, i) { var _i = arr
|
|
40
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]); if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
41
41
|
|
|
42
42
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
43
43
|
|
package/lib/alerts/BaseAlert.js
CHANGED
|
@@ -23,7 +23,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
23
23
|
|
|
24
24
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
25
25
|
|
|
26
|
-
function _iterableToArrayLimit(arr, i) { var _i = arr
|
|
26
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]); if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
27
27
|
|
|
28
28
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
29
29
|
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
@import "commons.scss";
|
|
2
|
+
@import "colors.scss";
|
|
3
|
+
@import "effects.scss";
|
|
4
|
+
|
|
5
|
+
.table-container {
|
|
6
|
+
flex: 1;
|
|
7
|
+
overflow: auto;
|
|
8
|
+
margin-top: 1.5rem;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.table-content {
|
|
12
|
+
width: 100%;
|
|
13
|
+
height: auto;
|
|
14
|
+
border-collapse: collapse;
|
|
15
|
+
min-width: 600px;
|
|
16
|
+
|
|
17
|
+
padding: 2rem 2rem;
|
|
18
|
+
|
|
19
|
+
font-size: 1rem;
|
|
20
|
+
|
|
21
|
+
thead {
|
|
22
|
+
text-align: left;
|
|
23
|
+
|
|
24
|
+
th {
|
|
25
|
+
background-color: #23272f;
|
|
26
|
+
padding: 1rem;
|
|
27
|
+
text-align: left;
|
|
28
|
+
color: #f8f8f8;
|
|
29
|
+
font-size: 0.875rem;
|
|
30
|
+
line-height: 1.6;
|
|
31
|
+
|
|
32
|
+
&:first-child {
|
|
33
|
+
border-top-left-radius: 8px;
|
|
34
|
+
padding-left: 2.5rem;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&:last-child {
|
|
38
|
+
border-top-right-radius: 8px;
|
|
39
|
+
padding-right: 1.5rem;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
tbody {
|
|
45
|
+
text-align: left;
|
|
46
|
+
|
|
47
|
+
td {
|
|
48
|
+
padding: 1rem;
|
|
49
|
+
border-top: 1px solid #8b8b8b;
|
|
50
|
+
border-bottom: 1px solid #8b8b8b;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// .button-expand-or-collapse-all {
|
|
56
|
+
// outline: 0;
|
|
57
|
+
// border: 0;
|
|
58
|
+
|
|
59
|
+
// padding: 1rem 2rem;
|
|
60
|
+
|
|
61
|
+
// font-size: 1rem;
|
|
62
|
+
// color: #f8f8f8;
|
|
63
|
+
// background-color: #23272f;
|
|
64
|
+
|
|
65
|
+
// border-radius: 6px;
|
|
66
|
+
|
|
67
|
+
// cursor: pointer;
|
|
68
|
+
|
|
69
|
+
// &:hover {
|
|
70
|
+
// filter: brightness(0.9);
|
|
71
|
+
// transition: filter 350ms;
|
|
72
|
+
// }
|
|
73
|
+
|
|
74
|
+
// &:focus {
|
|
75
|
+
// box-shadow: 0 0 0 2px #8b8b8b;
|
|
76
|
+
// transition: box-shadow 300ms;
|
|
77
|
+
// }
|
|
78
|
+
// }
|
|
79
|
+
|
|
80
|
+
.show-tr {
|
|
81
|
+
display: table-row;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.hidden-tr {
|
|
85
|
+
display: none;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.button-expand-tree {
|
|
89
|
+
display: flex;
|
|
90
|
+
align-items: center;
|
|
91
|
+
flex-direction: row;
|
|
92
|
+
|
|
93
|
+
gap: 0.875rem;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.text-first-column {
|
|
97
|
+
font-size: 1rem;
|
|
98
|
+
font-weight: 700;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.button-collapse {
|
|
102
|
+
width: 2rem;
|
|
103
|
+
height: 2rem;
|
|
104
|
+
font-size: 1.125rem;
|
|
105
|
+
outline: 0;
|
|
106
|
+
border: 0;
|
|
107
|
+
display: flex;
|
|
108
|
+
align-items: center;
|
|
109
|
+
flex-direction: column;
|
|
110
|
+
justify-content: center;
|
|
111
|
+
background-color: transparent;
|
|
112
|
+
color: #8b8b8b;
|
|
113
|
+
padding: 8px;
|
|
114
|
+
border-radius: 4px;
|
|
115
|
+
|
|
116
|
+
cursor: pointer;
|
|
117
|
+
|
|
118
|
+
&:hover {
|
|
119
|
+
background-color: rgba(0, 0, 0, 0.3);
|
|
120
|
+
transition: background-color 300ms;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
&:focus {
|
|
124
|
+
box-shadow: 0 0 0 2px #8b8b8b;
|
|
125
|
+
transition: box-shadow 300ms;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.button-expand {
|
|
130
|
+
width: 2rem;
|
|
131
|
+
height: 2rem;
|
|
132
|
+
font-size: 1.125rem;
|
|
133
|
+
outline: 0;
|
|
134
|
+
border: 0;
|
|
135
|
+
display: flex;
|
|
136
|
+
align-items: center;
|
|
137
|
+
flex-direction: column;
|
|
138
|
+
justify-content: center;
|
|
139
|
+
background-color: transparent;
|
|
140
|
+
color: #8b8b8b;
|
|
141
|
+
padding: 8px;
|
|
142
|
+
border-radius: 4px;
|
|
143
|
+
|
|
144
|
+
cursor: pointer;
|
|
145
|
+
|
|
146
|
+
&:hover {
|
|
147
|
+
background-color: rgba(0, 0, 0, 0.3);
|
|
148
|
+
transition: background-color 300ms;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
&:focus {
|
|
152
|
+
box-shadow: 0 0 0 2px #8b8b8b;
|
|
153
|
+
transition: box-shadow 300ms;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
@@ -37,7 +37,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
37
37
|
|
|
38
38
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
39
39
|
|
|
40
|
-
function _iterableToArrayLimit(arr, i) { var _i = arr
|
|
40
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]); if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
41
41
|
|
|
42
42
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
43
43
|
|
package/lib/buttons/index.js
CHANGED
|
@@ -3,88 +3,88 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
Object.defineProperty(exports, "
|
|
6
|
+
Object.defineProperty(exports, "ButtonContainer", {
|
|
7
7
|
enumerable: true,
|
|
8
8
|
get: function get() {
|
|
9
|
-
return
|
|
9
|
+
return _button_container["default"];
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
Object.defineProperty(exports, "
|
|
12
|
+
Object.defineProperty(exports, "PrimaryButton", {
|
|
13
13
|
enumerable: true,
|
|
14
14
|
get: function get() {
|
|
15
|
-
return
|
|
15
|
+
return _PrimaryButton["default"];
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
|
-
Object.defineProperty(exports, "
|
|
18
|
+
Object.defineProperty(exports, "DangerButton", {
|
|
19
19
|
enumerable: true,
|
|
20
20
|
get: function get() {
|
|
21
|
-
return
|
|
21
|
+
return _DangerButton["default"];
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
|
-
Object.defineProperty(exports, "
|
|
24
|
+
Object.defineProperty(exports, "WarningButton", {
|
|
25
25
|
enumerable: true,
|
|
26
26
|
get: function get() {
|
|
27
|
-
return
|
|
27
|
+
return _WarningButton["default"];
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
|
-
Object.defineProperty(exports, "
|
|
30
|
+
Object.defineProperty(exports, "SuccessButton", {
|
|
31
31
|
enumerable: true,
|
|
32
32
|
get: function get() {
|
|
33
|
-
return
|
|
33
|
+
return _SuccessButton["default"];
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
|
-
Object.defineProperty(exports, "
|
|
36
|
+
Object.defineProperty(exports, "InfoButton", {
|
|
37
37
|
enumerable: true,
|
|
38
38
|
get: function get() {
|
|
39
|
-
return
|
|
39
|
+
return _InfoButton["default"];
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
|
-
Object.defineProperty(exports, "
|
|
42
|
+
Object.defineProperty(exports, "SaveButton", {
|
|
43
43
|
enumerable: true,
|
|
44
44
|
get: function get() {
|
|
45
|
-
return
|
|
45
|
+
return _SaveButton["default"];
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
|
-
Object.defineProperty(exports, "
|
|
48
|
+
Object.defineProperty(exports, "CancelButton", {
|
|
49
49
|
enumerable: true,
|
|
50
50
|
get: function get() {
|
|
51
|
-
return
|
|
51
|
+
return _CancelButton["default"];
|
|
52
52
|
}
|
|
53
53
|
});
|
|
54
|
-
Object.defineProperty(exports, "
|
|
54
|
+
Object.defineProperty(exports, "EditButton", {
|
|
55
55
|
enumerable: true,
|
|
56
56
|
get: function get() {
|
|
57
|
-
return
|
|
57
|
+
return _EditButton["default"];
|
|
58
58
|
}
|
|
59
59
|
});
|
|
60
|
-
Object.defineProperty(exports, "
|
|
60
|
+
Object.defineProperty(exports, "DestroyButton", {
|
|
61
61
|
enumerable: true,
|
|
62
62
|
get: function get() {
|
|
63
|
-
return
|
|
63
|
+
return _DestroyButton["default"];
|
|
64
64
|
}
|
|
65
65
|
});
|
|
66
|
-
Object.defineProperty(exports, "
|
|
66
|
+
Object.defineProperty(exports, "AddButton", {
|
|
67
67
|
enumerable: true,
|
|
68
68
|
get: function get() {
|
|
69
|
-
return
|
|
69
|
+
return _AddButton["default"];
|
|
70
70
|
}
|
|
71
71
|
});
|
|
72
|
-
Object.defineProperty(exports, "
|
|
72
|
+
Object.defineProperty(exports, "ActivateButton", {
|
|
73
73
|
enumerable: true,
|
|
74
74
|
get: function get() {
|
|
75
|
-
return
|
|
75
|
+
return _ActivateButton["default"];
|
|
76
76
|
}
|
|
77
77
|
});
|
|
78
|
-
Object.defineProperty(exports, "
|
|
78
|
+
Object.defineProperty(exports, "InactivateButton", {
|
|
79
79
|
enumerable: true,
|
|
80
80
|
get: function get() {
|
|
81
|
-
return
|
|
81
|
+
return _InactivateButton["default"];
|
|
82
82
|
}
|
|
83
83
|
});
|
|
84
|
-
Object.defineProperty(exports, "
|
|
84
|
+
Object.defineProperty(exports, "RestoreButton", {
|
|
85
85
|
enumerable: true,
|
|
86
86
|
get: function get() {
|
|
87
|
-
return
|
|
87
|
+
return _RestoreButton["default"];
|
|
88
88
|
}
|
|
89
89
|
});
|
|
90
90
|
exports["default"] = void 0;
|
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.CalendarContext = void 0;
|
|
7
|
-
exports.dateIsEquals = dateIsEquals;
|
|
8
6
|
exports.dayNames = dayNames;
|
|
7
|
+
exports.getStartOfWeek = getStartOfWeek;
|
|
8
|
+
exports.getStartOfMonth = getStartOfMonth;
|
|
9
|
+
exports.dateIsEquals = dateIsEquals;
|
|
9
10
|
exports.dayOutOfCurrentMonth = dayOutOfCurrentMonth;
|
|
11
|
+
exports.getPtBrLocale = getPtBrLocale;
|
|
10
12
|
exports.getCalendarCssClass = getCalendarCssClass;
|
|
13
|
+
exports.validDate = validDate;
|
|
11
14
|
exports.getDayContainerCssClass = getDayContainerCssClass;
|
|
12
15
|
exports.getDayCssClass = getDayCssClass;
|
|
13
|
-
exports.
|
|
14
|
-
exports.getStartOfMonth = getStartOfMonth;
|
|
15
|
-
exports.getStartOfWeek = getStartOfWeek;
|
|
16
|
-
exports.validDate = validDate;
|
|
16
|
+
exports.CalendarContext = void 0;
|
|
17
17
|
|
|
18
18
|
var _react = _interopRequireDefault(require("react"));
|
|
19
19
|
|
|
@@ -37,7 +37,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
37
37
|
|
|
38
38
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
39
39
|
|
|
40
|
-
function _iterableToArrayLimit(arr, i) { var _i = arr
|
|
40
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]); if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
41
41
|
|
|
42
42
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
43
43
|
|
package/lib/calendar/index.js
CHANGED
|
@@ -3,16 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
Object.defineProperty(exports, "
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function get() {
|
|
9
|
-
return _DangerCalendar["default"];
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
Object.defineProperty(exports, "InfoCalendar", {
|
|
6
|
+
Object.defineProperty(exports, "SuccessCalendar", {
|
|
13
7
|
enumerable: true,
|
|
14
8
|
get: function get() {
|
|
15
|
-
return
|
|
9
|
+
return _SuccessCalendar["default"];
|
|
16
10
|
}
|
|
17
11
|
});
|
|
18
12
|
Object.defineProperty(exports, "PrimaryCalendar", {
|
|
@@ -21,10 +15,10 @@ Object.defineProperty(exports, "PrimaryCalendar", {
|
|
|
21
15
|
return _PrimaryCalendar["default"];
|
|
22
16
|
}
|
|
23
17
|
});
|
|
24
|
-
Object.defineProperty(exports, "
|
|
18
|
+
Object.defineProperty(exports, "DangerCalendar", {
|
|
25
19
|
enumerable: true,
|
|
26
20
|
get: function get() {
|
|
27
|
-
return
|
|
21
|
+
return _DangerCalendar["default"];
|
|
28
22
|
}
|
|
29
23
|
});
|
|
30
24
|
Object.defineProperty(exports, "WarningCalendar", {
|
|
@@ -33,6 +27,12 @@ Object.defineProperty(exports, "WarningCalendar", {
|
|
|
33
27
|
return _WarningCalendar["default"];
|
|
34
28
|
}
|
|
35
29
|
});
|
|
30
|
+
Object.defineProperty(exports, "InfoCalendar", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function get() {
|
|
33
|
+
return _InfoCalendar["default"];
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
36
|
exports["default"] = void 0;
|
|
37
37
|
|
|
38
38
|
var _base = _interopRequireDefault(require("./base"));
|
package/lib/checkbox/index.js
CHANGED
|
@@ -35,7 +35,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
35
35
|
|
|
36
36
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
37
37
|
|
|
38
|
-
function _iterableToArrayLimit(arr, i) { var _i = arr
|
|
38
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]); if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
39
39
|
|
|
40
40
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
41
41
|
|
|
@@ -65,7 +65,8 @@ var formDialog = function formDialog(props) {
|
|
|
65
65
|
label: "Adicionar"
|
|
66
66
|
}), /*#__PURE__*/_react["default"].createElement(_buttons.CancelButton, {
|
|
67
67
|
label: "Cancelar"
|
|
68
|
-
})]
|
|
68
|
+
})],
|
|
69
|
+
content: /*#__PURE__*/_react["default"].createElement("p", null, "Modal Form Content")
|
|
69
70
|
}, props), /*#__PURE__*/_react["default"].createElement("p", null, "Modal Form"));
|
|
70
71
|
};
|
|
71
72
|
|
|
@@ -276,6 +277,12 @@ describe('Dialog', function () {
|
|
|
276
277
|
|
|
277
278
|
expect(getByTestId(dialogTestId).querySelector('.footer')).not.toBeInTheDocument();
|
|
278
279
|
});
|
|
280
|
+
it('should be content', function () {
|
|
281
|
+
var _render16 = (0, _react2.render)(formDialog()),
|
|
282
|
+
getByTestId = _render16.getByTestId;
|
|
283
|
+
|
|
284
|
+
expect(getByTestId(dialogTestId).querySelector('.dialog-content')).toHaveTextContent('Modal Form Content');
|
|
285
|
+
});
|
|
279
286
|
});
|
|
280
287
|
describe('Custom Dialog', function () {
|
|
281
288
|
describe('Custom', function () {
|
|
@@ -293,41 +300,41 @@ describe('Dialog', function () {
|
|
|
293
300
|
};
|
|
294
301
|
|
|
295
302
|
it('should render correctly', function () {
|
|
296
|
-
var
|
|
297
|
-
getByTestId =
|
|
303
|
+
var _render17 = (0, _react2.render)(defaultDialogCustom()),
|
|
304
|
+
getByTestId = _render17.getByTestId;
|
|
298
305
|
|
|
299
306
|
expect(getByTestId(dialogTestId)).toBeInTheDocument();
|
|
300
307
|
expect(getByTestId(dialogTestId).querySelector('.container .title')).toHaveTextContent('Custom');
|
|
301
308
|
expect(getByTestId(dialogTestId).querySelector('.container .text')).toHaveTextContent('Mensagem de Teste Custom!');
|
|
302
309
|
});
|
|
303
310
|
it('should render icon', function () {
|
|
304
|
-
var
|
|
305
|
-
getByTestId =
|
|
311
|
+
var _render18 = (0, _react2.render)(defaultDialogCustom()),
|
|
312
|
+
getByTestId = _render18.getByTestId;
|
|
306
313
|
|
|
307
314
|
expect(getByTestId(dialogTestId)).toContainElement(getByTestId('icon'));
|
|
308
315
|
});
|
|
309
316
|
it('should render buttons', function () {
|
|
310
|
-
var
|
|
311
|
-
getByTestId =
|
|
317
|
+
var _render19 = (0, _react2.render)(defaultDialogCustom()),
|
|
318
|
+
getByTestId = _render19.getByTestId;
|
|
312
319
|
|
|
313
320
|
expect(getByTestId(dialogTestId).querySelectorAll('.button-component').length).toBe(1);
|
|
314
321
|
expect(getByTestId(dialogTestId).querySelectorAll('.button-component')[0]).toHaveTextContent('Salvar');
|
|
315
322
|
});
|
|
316
323
|
it('should apply width', function () {
|
|
317
|
-
var
|
|
324
|
+
var _render20 = (0, _react2.render)(defaultDialogCustom({
|
|
318
325
|
width: '400px'
|
|
319
326
|
})),
|
|
320
|
-
getByTestId =
|
|
327
|
+
getByTestId = _render20.getByTestId;
|
|
321
328
|
|
|
322
329
|
expect(getByTestId(dialogTestId).querySelector('.dialog-alert-wrapper')).toHaveStyle({
|
|
323
330
|
width: '400px'
|
|
324
331
|
});
|
|
325
332
|
});
|
|
326
333
|
it('should apply height', function () {
|
|
327
|
-
var
|
|
334
|
+
var _render21 = (0, _react2.render)(defaultDialogCustom({
|
|
328
335
|
height: '400px'
|
|
329
336
|
})),
|
|
330
|
-
getByTestId =
|
|
337
|
+
getByTestId = _render21.getByTestId;
|
|
331
338
|
|
|
332
339
|
expect(getByTestId(dialogTestId).querySelector('.dialog-alert-wrapper')).toHaveStyle({
|
|
333
340
|
height: '400px'
|
|
@@ -346,16 +353,16 @@ describe('Dialog', function () {
|
|
|
346
353
|
};
|
|
347
354
|
|
|
348
355
|
it('should render correctly', function () {
|
|
349
|
-
var
|
|
350
|
-
getByTestId =
|
|
356
|
+
var _render22 = (0, _react2.render)(defaultDialogAlert()),
|
|
357
|
+
getByTestId = _render22.getByTestId;
|
|
351
358
|
|
|
352
359
|
expect(getByTestId(dialogTestId)).toBeInTheDocument();
|
|
353
360
|
expect(getByTestId(dialogTestId).querySelector('.container .title')).toHaveTextContent('Alert');
|
|
354
361
|
expect(getByTestId(dialogTestId).querySelector('.container .text')).toHaveTextContent('Mensagem de Teste Alert!');
|
|
355
362
|
});
|
|
356
363
|
it('should fire event on confirm click', function () {
|
|
357
|
-
var
|
|
358
|
-
getByTestId =
|
|
364
|
+
var _render23 = (0, _react2.render)(defaultDialogAlert()),
|
|
365
|
+
getByTestId = _render23.getByTestId;
|
|
359
366
|
|
|
360
367
|
_react2.fireEvent.click(getByTestId(dialogTestId).querySelector('.button-component.-primary'));
|
|
361
368
|
|
|
@@ -374,16 +381,16 @@ describe('Dialog', function () {
|
|
|
374
381
|
};
|
|
375
382
|
|
|
376
383
|
it('should render correctly', function () {
|
|
377
|
-
var
|
|
378
|
-
getByTestId =
|
|
384
|
+
var _render24 = (0, _react2.render)(defaultDialogError()),
|
|
385
|
+
getByTestId = _render24.getByTestId;
|
|
379
386
|
|
|
380
387
|
expect(getByTestId(dialogTestId)).toBeInTheDocument();
|
|
381
388
|
expect(getByTestId(dialogTestId).querySelector('.container .title')).toHaveTextContent('Error');
|
|
382
389
|
expect(getByTestId(dialogTestId).querySelector('.container .text')).toHaveTextContent('Mensagem de Teste Error!');
|
|
383
390
|
});
|
|
384
391
|
it('should fire event on confirm click', function () {
|
|
385
|
-
var
|
|
386
|
-
getByTestId =
|
|
392
|
+
var _render25 = (0, _react2.render)(defaultDialogError()),
|
|
393
|
+
getByTestId = _render25.getByTestId;
|
|
387
394
|
|
|
388
395
|
_react2.fireEvent.click(getByTestId(dialogTestId).querySelector('.button-component.-primary'));
|
|
389
396
|
|
|
@@ -402,16 +409,16 @@ describe('Dialog', function () {
|
|
|
402
409
|
};
|
|
403
410
|
|
|
404
411
|
it('should render correctly', function () {
|
|
405
|
-
var
|
|
406
|
-
getByTestId =
|
|
412
|
+
var _render26 = (0, _react2.render)(defaultDialogInformation()),
|
|
413
|
+
getByTestId = _render26.getByTestId;
|
|
407
414
|
|
|
408
415
|
expect(getByTestId(dialogTestId)).toBeInTheDocument();
|
|
409
416
|
expect(getByTestId(dialogTestId).querySelector('.container .title')).toHaveTextContent('Information');
|
|
410
417
|
expect(getByTestId(dialogTestId).querySelector('.container .text')).toHaveTextContent('Mensagem de Teste Information!');
|
|
411
418
|
});
|
|
412
419
|
it('should fire event on confirm click', function () {
|
|
413
|
-
var
|
|
414
|
-
getByTestId =
|
|
420
|
+
var _render27 = (0, _react2.render)(defaultDialogInformation()),
|
|
421
|
+
getByTestId = _render27.getByTestId;
|
|
415
422
|
|
|
416
423
|
_react2.fireEvent.click(getByTestId(dialogTestId).querySelector('.button-component.-primary'));
|
|
417
424
|
|
|
@@ -430,16 +437,16 @@ describe('Dialog', function () {
|
|
|
430
437
|
};
|
|
431
438
|
|
|
432
439
|
it('should render correctly', function () {
|
|
433
|
-
var
|
|
434
|
-
getByTestId =
|
|
440
|
+
var _render28 = (0, _react2.render)(defaultDialogWarning()),
|
|
441
|
+
getByTestId = _render28.getByTestId;
|
|
435
442
|
|
|
436
443
|
expect(getByTestId(dialogTestId)).toBeInTheDocument();
|
|
437
444
|
expect(getByTestId(dialogTestId).querySelector('.container .title')).toHaveTextContent('Warning');
|
|
438
445
|
expect(getByTestId(dialogTestId).querySelector('.container .text')).toHaveTextContent('Mensagem de Teste Warning!');
|
|
439
446
|
});
|
|
440
447
|
it('should fire event on confirm click', function () {
|
|
441
|
-
var
|
|
442
|
-
getByTestId =
|
|
448
|
+
var _render29 = (0, _react2.render)(defaultDialogWarning()),
|
|
449
|
+
getByTestId = _render29.getByTestId;
|
|
443
450
|
|
|
444
451
|
_react2.fireEvent.click(getByTestId(dialogTestId).querySelector('.button-component.-primary'));
|
|
445
452
|
|
|
@@ -460,24 +467,24 @@ describe('Dialog', function () {
|
|
|
460
467
|
};
|
|
461
468
|
|
|
462
469
|
it('should render correctly', function () {
|
|
463
|
-
var
|
|
464
|
-
getByTestId =
|
|
470
|
+
var _render30 = (0, _react2.render)(defaultDialogQuestion()),
|
|
471
|
+
getByTestId = _render30.getByTestId;
|
|
465
472
|
|
|
466
473
|
expect(getByTestId(dialogTestId)).toBeInTheDocument();
|
|
467
474
|
expect(getByTestId(dialogTestId).querySelector('.container .title')).toHaveTextContent('Question');
|
|
468
475
|
expect(getByTestId(dialogTestId).querySelector('.container .text')).toHaveTextContent('Mensagem de Teste Question!');
|
|
469
476
|
});
|
|
470
477
|
it('should fire event on confirm click', function () {
|
|
471
|
-
var
|
|
472
|
-
getByTestId =
|
|
478
|
+
var _render31 = (0, _react2.render)(defaultDialogQuestion()),
|
|
479
|
+
getByTestId = _render31.getByTestId;
|
|
473
480
|
|
|
474
481
|
_react2.fireEvent.click(getByTestId(dialogTestId).querySelector('.button-component.-danger'));
|
|
475
482
|
|
|
476
483
|
expect(mockOnConfirmClick).toBeCalledTimes(1);
|
|
477
484
|
});
|
|
478
485
|
it('should fire event on unconfirm click', function () {
|
|
479
|
-
var
|
|
480
|
-
getByText =
|
|
486
|
+
var _render32 = (0, _react2.render)(defaultDialogQuestion()),
|
|
487
|
+
getByText = _render32.getByText;
|
|
481
488
|
|
|
482
489
|
_react2.fireEvent.click(getByText('Não'));
|
|
483
490
|
|
package/lib/dialog/form/index.js
CHANGED
|
@@ -59,9 +59,9 @@ var ModalForm = function ModalForm(props) {
|
|
|
59
59
|
wrapperClassName: "dialog-form-wrapper"
|
|
60
60
|
}), props.title && /*#__PURE__*/_react["default"].createElement("div", {
|
|
61
61
|
className: "header-form"
|
|
62
|
-
}, /*#__PURE__*/_react["default"].createElement(_Header["default"], props)),
|
|
62
|
+
}, /*#__PURE__*/_react["default"].createElement(_Header["default"], props)), /*#__PURE__*/_react["default"].createElement(_Content["default"], {
|
|
63
63
|
styleForContent: _extends({}, styleForContent, overlayStyle)
|
|
64
|
-
}, props.children), getSpinner(), props.showFooter && /*#__PURE__*/_react["default"].createElement(_Footer["default"], null, /*#__PURE__*/_react["default"].createElement(_index.ButtonContainer, _extends({}, props, {
|
|
64
|
+
}, content || props.children), getSpinner(), props.showFooter && /*#__PURE__*/_react["default"].createElement(_Footer["default"], null, /*#__PURE__*/_react["default"].createElement(_index.ButtonContainer, _extends({}, props, {
|
|
65
65
|
style: _extends({}, overlayStyle)
|
|
66
66
|
}), props.buttons.map(function (button) {
|
|
67
67
|
if (context && context.securityBeforeUnload && button && button.type && button.type.name === 'CancelButton') {
|
|
@@ -87,7 +87,7 @@ ModalForm.propTypes = {
|
|
|
87
87
|
buttons: _propTypes["default"].any.isRequired,
|
|
88
88
|
isWaiting: _propTypes["default"].bool,
|
|
89
89
|
handlerClose: _propTypes["default"].func,
|
|
90
|
-
content: _propTypes["default"].any
|
|
90
|
+
content: _propTypes["default"].any
|
|
91
91
|
};
|
|
92
92
|
ModalForm.defaultProps = {
|
|
93
93
|
title: '',
|
|
@@ -96,7 +96,8 @@ ModalForm.defaultProps = {
|
|
|
96
96
|
styleForContent: {},
|
|
97
97
|
showFooter: true,
|
|
98
98
|
isWaiting: false,
|
|
99
|
-
handlerClose: undefined
|
|
99
|
+
handlerClose: undefined,
|
|
100
|
+
content: undefined
|
|
100
101
|
};
|
|
101
102
|
|
|
102
103
|
var _default = (0, _withFormSecurity["default"])(ModalForm);
|
package/lib/dialog/index.js
CHANGED
|
@@ -9,12 +9,6 @@ Object.defineProperty(exports, "DialogAlert", {
|
|
|
9
9
|
return _Alert["default"];
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
Object.defineProperty(exports, "DialogCustom", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function get() {
|
|
15
|
-
return _Custom["default"];
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
12
|
Object.defineProperty(exports, "DialogError", {
|
|
19
13
|
enumerable: true,
|
|
20
14
|
get: function get() {
|
|
@@ -39,6 +33,12 @@ Object.defineProperty(exports, "DialogWarning", {
|
|
|
39
33
|
return _Warning["default"];
|
|
40
34
|
}
|
|
41
35
|
});
|
|
36
|
+
Object.defineProperty(exports, "DialogCustom", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function get() {
|
|
39
|
+
return _Custom["default"];
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
42
|
exports["default"] = void 0;
|
|
43
43
|
|
|
44
44
|
var _base = _interopRequireDefault(require("./base/"));
|