linear-react-components-ui 0.4.76-rc.11 → 0.4.76-rc.12
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/.tool-versions +1 -0
- package/.vscode/settings.json +1 -2
- package/README.md +23 -0
- package/lib/assets/styles/dropdown.scss +25 -2
- package/lib/assets/styles/effects.scss +12 -0
- package/lib/assets/styles/floatMenu.scss +0 -1
- package/lib/assets/styles/multiSelect.scss +105 -0
- package/lib/assets/styles/panel.scss +0 -1
- package/lib/assets/styles/periodpicker.scss +65 -0
- package/lib/assets/styles/progress.scss +8 -1
- package/lib/assets/styles/select.scss +1 -0
- package/lib/assets/styles/table.scss +13 -5
- package/lib/assets/styles/tabs.scss +79 -46
- package/lib/assets/styles/treeview.scss +32 -0
- package/lib/avatar/avatar.spec.js +17 -6
- package/lib/avatar/index.js +1 -1
- package/lib/buttons/DefaultButton.js +7 -1
- package/lib/checkbox/Label.js +37 -0
- package/lib/checkbox/index.js +20 -6
- package/lib/dialog/base/index.js +15 -6
- package/lib/dialog/form/index.js +16 -3
- package/lib/drawer/index.js +4 -1
- package/lib/form/Field.js +2 -0
- package/lib/form/FieldNumber.js +10 -2
- package/lib/form/FieldPeriod.js +100 -0
- package/lib/form/helpers.js +9 -1
- package/lib/form/index.js +76 -10
- package/lib/form/withFieldHOC.js +2 -0
- package/lib/form/withFormSecurity.js +106 -0
- package/lib/icons/helper.js +16 -0
- package/lib/inputs/base/InputTextBase.js +1 -10
- package/lib/inputs/base/helpers.js +3 -11
- package/lib/inputs/multiSelect/ActionButtons.js +68 -0
- package/lib/inputs/multiSelect/Dropdown.js +200 -0
- package/lib/inputs/multiSelect/helper.js +18 -0
- package/lib/inputs/multiSelect/index.js +343 -0
- package/lib/inputs/number/BaseNumber.js +1 -1
- package/lib/inputs/number/index.js +7 -5
- package/lib/inputs/period/Dialog.js +38 -0
- package/lib/inputs/period/Dropdown.js +90 -0
- package/lib/inputs/period/PeriodList.js +79 -0
- package/lib/inputs/period/helper.js +118 -0
- package/lib/inputs/period/index.js +490 -0
- package/lib/inputs/select/Dropdown.js +4 -4
- package/lib/inputs/select/index.js +26 -3
- package/lib/inputs/select/multiple/index.js +9 -7
- package/lib/inputs/select/simple/index.js +30 -18
- package/lib/internals/withTooltip.js +83 -82
- package/lib/list/Item.js +3 -3
- package/lib/list/index.js +20 -10
- package/lib/list/list.spec.js +129 -85
- package/lib/menus/float/MenuItem.js +25 -8
- package/lib/menus/sidenav/index.js +7 -3
- package/lib/menus/sidenav/popup_menu_search/index.js +1 -1
- package/lib/progress/Bar.js +40 -9
- package/lib/progress/index.js +12 -4
- package/lib/spinner/index.js +6 -1
- package/lib/split/Split.js +5 -11
- package/lib/table/Row.js +1 -1
- package/lib/tabs/DropdownItems.js +84 -0
- package/lib/tabs/Menu.js +18 -5
- package/lib/tabs/MenuItems.js +7 -7
- package/lib/tabs/Panel.js +1 -3
- package/lib/tabs/index.js +153 -20
- package/lib/toolbar/index.js +8 -4
- package/lib/tooltip/index.js +12 -0
- package/lib/treeview/Node.js +288 -18
- package/lib/treeview/index.js +448 -35
- package/package.json +9 -8
package/.tool-versions
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
nodejs 10.16.0
|
package/.vscode/settings.json
CHANGED
package/README.md
CHANGED
|
@@ -36,6 +36,29 @@ Compilar para publicação:
|
|
|
36
36
|
|
|
37
37
|
`npm run demo:prod`
|
|
38
38
|
|
|
39
|
+
### Publicação da lib no NPM
|
|
40
|
+
A princípio precisaremos fazer o login no npm para isso rode o comando abaixo:
|
|
41
|
+
|
|
42
|
+
`npm login`
|
|
43
|
+
|
|
44
|
+
Para gerar uma build nova e fazer a publicação no npm rode os comandos a seguir:
|
|
45
|
+
|
|
46
|
+
`npm version <versão>`
|
|
47
|
+
|
|
48
|
+
`npm run publish:npm`
|
|
49
|
+
|
|
50
|
+
Caso queira gerar uma build com versão beta e fazer a publicação no npm rode os comandos da seguinte forma:
|
|
51
|
+
|
|
52
|
+
`npm version <versão>`
|
|
53
|
+
|
|
54
|
+
`npm run publish:npm --tag beta`
|
|
55
|
+
|
|
56
|
+
no local onde esta denominado o campo versão, você deverá colocar a nova versão do pacote, um exemplo: 0.4.75 ou para o caso de uma
|
|
57
|
+
versão beta siga o seguinte exemplo: 0.4.75-beta.1, ficando da seguinte maneira:
|
|
58
|
+
|
|
59
|
+
`npm version 0.4.75`
|
|
60
|
+
|
|
61
|
+
|
|
39
62
|
### Publicar versão de demonstração no Heroku
|
|
40
63
|
|
|
41
64
|
|
|
@@ -76,12 +76,12 @@
|
|
|
76
76
|
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
|
|
77
77
|
animation: revealelement 0.3s forwards ease-in-out;
|
|
78
78
|
margin-right: 7px;
|
|
79
|
-
> .
|
|
79
|
+
> .floatmenuitem {
|
|
80
80
|
text-decoration: none;
|
|
81
81
|
color: #666666;
|
|
82
82
|
text-align: center;
|
|
83
83
|
}
|
|
84
|
-
> .
|
|
84
|
+
> .floatmenuitem .-items {
|
|
85
85
|
border: solid 1px $default-hover-color;
|
|
86
86
|
margin: 0 5px 5px 0;
|
|
87
87
|
font-size: 12px;
|
|
@@ -106,6 +106,29 @@
|
|
|
106
106
|
transition: all 0.2s ease-in-out;
|
|
107
107
|
&:hover {
|
|
108
108
|
background: $default-hover-color;
|
|
109
|
+
|
|
110
|
+
> .floatmenudropdown {
|
|
111
|
+
visibility: visible;
|
|
112
|
+
pointer-events: initial;
|
|
113
|
+
opacity: 1;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
> .floatmenudropdown {
|
|
117
|
+
position: absolute;
|
|
118
|
+
padding: 0;
|
|
119
|
+
top: 5px;
|
|
120
|
+
right: 5px;
|
|
121
|
+
visibility: hidden;
|
|
122
|
+
opacity: 0;
|
|
123
|
+
pointer-events: none;
|
|
124
|
+
}
|
|
125
|
+
> .floatmenulink {
|
|
126
|
+
display: flex;
|
|
127
|
+
flex-direction: column;
|
|
128
|
+
align-items: center;
|
|
129
|
+
justify-content: center;
|
|
130
|
+
flex: 1;
|
|
131
|
+
width: 100%;
|
|
109
132
|
}
|
|
110
133
|
&.iconcontainer {
|
|
111
134
|
padding-bottom: 10px;
|
|
@@ -2,9 +2,11 @@
|
|
|
2
2
|
@keyframes slideInFromTop {
|
|
3
3
|
0% {
|
|
4
4
|
transform: translateY(-60%);
|
|
5
|
+
-webkit-font-smoothing: subpixel-antialiased;
|
|
5
6
|
}
|
|
6
7
|
30% {
|
|
7
8
|
transform: translateY(0);
|
|
9
|
+
-webkit-font-smoothing: subpixel-antialiased;
|
|
8
10
|
}
|
|
9
11
|
}
|
|
10
12
|
|
|
@@ -719,3 +721,13 @@
|
|
|
719
721
|
-webkit-transform: scale(1.1);
|
|
720
722
|
transform: scale(1.1);
|
|
721
723
|
}
|
|
724
|
+
|
|
725
|
+
// SlideWithPosition
|
|
726
|
+
@keyframes slideWithPositionFromLeft {
|
|
727
|
+
from {
|
|
728
|
+
left: -100%;
|
|
729
|
+
}
|
|
730
|
+
to {
|
|
731
|
+
left: 100%;
|
|
732
|
+
}
|
|
733
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
@import "commons.scss";
|
|
2
|
+
@import "effects.scss";
|
|
3
|
+
.multiSelect-component {
|
|
4
|
+
width: 100%;
|
|
5
|
+
display: block;
|
|
6
|
+
.selectwrapper {
|
|
7
|
+
height: auto;
|
|
8
|
+
|
|
9
|
+
> .multiselect {
|
|
10
|
+
flex-wrap: wrap;
|
|
11
|
+
position: relative;
|
|
12
|
+
> .textinput {
|
|
13
|
+
order: 1;
|
|
14
|
+
display: inline-block;
|
|
15
|
+
}
|
|
16
|
+
> .selecteditem {
|
|
17
|
+
font-size: 14px;
|
|
18
|
+
position: absolute;
|
|
19
|
+
top: 50%;
|
|
20
|
+
left: 10px;
|
|
21
|
+
transform: translateY(-50%);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
> .actionbutton {
|
|
26
|
+
display: flex;
|
|
27
|
+
align-items: center;
|
|
28
|
+
cursor: pointer;
|
|
29
|
+
margin: 0 3px;
|
|
30
|
+
padding: 0 3px;
|
|
31
|
+
|
|
32
|
+
> svg {
|
|
33
|
+
margin: 0;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.multiSelect-component > .dropdown {
|
|
40
|
+
animation: 0.5s ease-in 0s 1 slideDown;
|
|
41
|
+
background-color: #fff;
|
|
42
|
+
border: $component-border-color;
|
|
43
|
+
@extend %component-menu-dropdown;
|
|
44
|
+
display: grid;
|
|
45
|
+
grid-template-rows: auto;
|
|
46
|
+
height: auto;
|
|
47
|
+
overflow-y: auto;
|
|
48
|
+
overflow-x: hidden;
|
|
49
|
+
position: absolute;
|
|
50
|
+
z-index: 9999;
|
|
51
|
+
> .filtercontainer {
|
|
52
|
+
position: relative;
|
|
53
|
+
display: grid;
|
|
54
|
+
grid-template-columns: 1fr 20px;
|
|
55
|
+
border: 1px solid $component-border-color;
|
|
56
|
+
margin: 4px;
|
|
57
|
+
> .filterinput {
|
|
58
|
+
border: 0;
|
|
59
|
+
font-size: 13px;
|
|
60
|
+
text-indent: 4px;
|
|
61
|
+
padding: 10px 5px;
|
|
62
|
+
}
|
|
63
|
+
> .filtericon {
|
|
64
|
+
position: absolute;
|
|
65
|
+
right: 5px;
|
|
66
|
+
top: 10px;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
> .listcontainer > .item {
|
|
70
|
+
margin: 0;
|
|
71
|
+
padding: 6px 10px;
|
|
72
|
+
display: flex;
|
|
73
|
+
cursor: pointer;
|
|
74
|
+
justify-content: stretch;
|
|
75
|
+
border-bottom: solid 1px #e1e1e1;
|
|
76
|
+
&:last-child {
|
|
77
|
+
border-bottom: none;
|
|
78
|
+
}
|
|
79
|
+
&:hover {
|
|
80
|
+
background-color: $default-hover-color;
|
|
81
|
+
}
|
|
82
|
+
&.-selected {
|
|
83
|
+
background-color: $default-hover-color;
|
|
84
|
+
}
|
|
85
|
+
.menubutton {
|
|
86
|
+
background-color: transparent;
|
|
87
|
+
border: 0;
|
|
88
|
+
padding: 0;
|
|
89
|
+
margin: 0;
|
|
90
|
+
display: flex;
|
|
91
|
+
justify-content: space-between;
|
|
92
|
+
align-items: center;
|
|
93
|
+
width: 100%;
|
|
94
|
+
> .checkboxicon {
|
|
95
|
+
margin-right: 5px;
|
|
96
|
+
}
|
|
97
|
+
> .label {
|
|
98
|
+
flex-grow: 1;
|
|
99
|
+
}
|
|
100
|
+
> .menuicon {
|
|
101
|
+
margin-right: 5px;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
@import "commons.scss";
|
|
2
|
+
@import "effects.scss";
|
|
3
|
+
.periodpicker-component {
|
|
4
|
+
height: auto;
|
|
5
|
+
position: relative;
|
|
6
|
+
display: flex;
|
|
7
|
+
border-radius: 2px;
|
|
8
|
+
border: 1px solid #dae1e8;
|
|
9
|
+
|
|
10
|
+
.inputwrapper {
|
|
11
|
+
border: none;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.separation_icon {
|
|
15
|
+
font-size: 16px;
|
|
16
|
+
flex: 0 0 10px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.calendar-button {
|
|
20
|
+
flex: 0 0 20px;
|
|
21
|
+
padding: 4px;
|
|
22
|
+
border: none;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.input-base-component {
|
|
26
|
+
flex: 1;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.dropdown-period>.item {
|
|
32
|
+
margin: 0;
|
|
33
|
+
padding: 6px 10px;
|
|
34
|
+
display: flex;
|
|
35
|
+
cursor: pointer;
|
|
36
|
+
justify-content: stretch;
|
|
37
|
+
border-bottom: solid 1px #e1e1e1;
|
|
38
|
+
|
|
39
|
+
&:hover {
|
|
40
|
+
background-color: $default-hover-color;
|
|
41
|
+
}
|
|
42
|
+
&.-selected {
|
|
43
|
+
background-color: $default-hover-color;
|
|
44
|
+
}
|
|
45
|
+
&.-disabled {
|
|
46
|
+
@extend %component-menu-disabled;
|
|
47
|
+
&:hover {
|
|
48
|
+
background-color: transparent;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.dropdown-period {
|
|
54
|
+
width: 100%;
|
|
55
|
+
/* animation: 0.5s ease-in 0s 1 slideDown; */
|
|
56
|
+
background-color: #FFF;
|
|
57
|
+
border: #dae1e8;
|
|
58
|
+
display: grid;
|
|
59
|
+
grid-template-rows: auto;
|
|
60
|
+
height: auto;
|
|
61
|
+
overflow-y: auto;
|
|
62
|
+
overflow-x: hidden;
|
|
63
|
+
/* margin-top: 2px; */
|
|
64
|
+
z-index: 99999999999;
|
|
65
|
+
}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
@import "colors.scss";
|
|
2
2
|
@import "commons.scss";
|
|
3
|
+
|
|
3
4
|
.container-progress {
|
|
4
5
|
display: flex;
|
|
5
6
|
overflow: hidden;
|
|
6
|
-
height: 24px;
|
|
7
7
|
margin-bottom: 20px;
|
|
8
8
|
background-color: #f5f5f5;
|
|
9
9
|
border-radius: 4px;
|
|
10
10
|
-webkit-box-shadow: inset 0 1px 2px rgba(0,0,0,.1);
|
|
11
11
|
box-shadow: inset 0 1px 2px rgba(0,0,0,.1);
|
|
12
|
+
position: relative;
|
|
12
13
|
}
|
|
13
14
|
|
|
14
15
|
.bar {
|
|
@@ -50,6 +51,12 @@
|
|
|
50
51
|
-o-animation: progress-bar-stripes 2s linear infinite;
|
|
51
52
|
animation: progress-bar-stripes 2s linear infinite;
|
|
52
53
|
}
|
|
54
|
+
&.-indeterminate {
|
|
55
|
+
animation: slideWithPositionFromLeft infinite;
|
|
56
|
+
position: absolute;
|
|
57
|
+
left: -100%;
|
|
58
|
+
top: 0;
|
|
59
|
+
}
|
|
53
60
|
>.progressbar-label {
|
|
54
61
|
display: flex;
|
|
55
62
|
align-items: center;
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
@import "colors.scss";
|
|
2
2
|
@import "effects.scss";
|
|
3
|
+
|
|
4
|
+
.table-component,
|
|
5
|
+
.innertable {
|
|
6
|
+
contain: strict;
|
|
7
|
+
}
|
|
8
|
+
|
|
3
9
|
.table-component {
|
|
4
10
|
width: 100%;
|
|
5
11
|
max-width: 100%;
|
|
@@ -8,7 +14,8 @@
|
|
|
8
14
|
font-size: 14px;
|
|
9
15
|
max-height: 20em;
|
|
10
16
|
position: relative;
|
|
11
|
-
> .headercontainer,
|
|
17
|
+
> .headercontainer,
|
|
18
|
+
.bodycontainer {
|
|
12
19
|
width: 100%;
|
|
13
20
|
.innertable {
|
|
14
21
|
width: 100%;
|
|
@@ -31,7 +38,8 @@
|
|
|
31
38
|
vertical-align: middle;
|
|
32
39
|
border-bottom: 1px solid $component-border-color-soft;
|
|
33
40
|
line-height: 18px;
|
|
34
|
-
> .hidden,
|
|
41
|
+
> .hidden,
|
|
42
|
+
> .rowhover {
|
|
35
43
|
display: none;
|
|
36
44
|
animation: revealelement 0.2s forwards ease-in-out;
|
|
37
45
|
}
|
|
@@ -39,7 +47,7 @@
|
|
|
39
47
|
border-bottom: 0;
|
|
40
48
|
}
|
|
41
49
|
}
|
|
42
|
-
|
|
50
|
+
|
|
43
51
|
> .bodycontainer > .innertable > .tbody > .trow,
|
|
44
52
|
> .tbody > .trow {
|
|
45
53
|
&.-selected {
|
|
@@ -48,7 +56,7 @@
|
|
|
48
56
|
}
|
|
49
57
|
&:hover {
|
|
50
58
|
> .rowcolumn > .rowhover {
|
|
51
|
-
display: table
|
|
59
|
+
display: table;
|
|
52
60
|
}
|
|
53
61
|
}
|
|
54
62
|
}
|
|
@@ -84,7 +92,7 @@
|
|
|
84
92
|
background: $header-container-bg;
|
|
85
93
|
}
|
|
86
94
|
> .headercontainer > .innertable > .theader,
|
|
87
|
-
> .theader {
|
|
95
|
+
> .theader {
|
|
88
96
|
background: $header-container-bg;
|
|
89
97
|
}
|
|
90
98
|
}
|
|
@@ -1,4 +1,29 @@
|
|
|
1
1
|
@import "colors.scss";
|
|
2
|
+
%tab-closepanel {
|
|
3
|
+
background-color: transparent;
|
|
4
|
+
border: 0;
|
|
5
|
+
height: 20px;
|
|
6
|
+
margin-right: 5px;
|
|
7
|
+
padding: 0;
|
|
8
|
+
text-shadow: 0 1px 0 $font-color-second;
|
|
9
|
+
width: 20px;
|
|
10
|
+
visibility: hidden;
|
|
11
|
+
transition: all 0.2s ease-in-out;
|
|
12
|
+
border-radius: 4px;
|
|
13
|
+
&:after {
|
|
14
|
+
content: "×";
|
|
15
|
+
font-size: 20px;
|
|
16
|
+
text-shadow: none;
|
|
17
|
+
color: $font-color-soft;
|
|
18
|
+
transition: all 0.2s ease-in-out;
|
|
19
|
+
}
|
|
20
|
+
&:hover {
|
|
21
|
+
background-color: $color-light-dark;
|
|
22
|
+
&:after {
|
|
23
|
+
color: $font-color-second;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
2
27
|
%tab-component-menus {
|
|
3
28
|
.menu {
|
|
4
29
|
-webkit-box-shadow: 0px -1px 0px $component-border-color inset;
|
|
@@ -7,22 +32,26 @@
|
|
|
7
32
|
display: flex;
|
|
8
33
|
flex-wrap: nowrap;
|
|
9
34
|
justify-content: center;
|
|
10
|
-
flex
|
|
35
|
+
flex: 1;
|
|
11
36
|
&.-firsttabident > .menuitem:first-child {
|
|
12
37
|
margin-left: 15px;
|
|
13
38
|
}
|
|
14
39
|
}
|
|
15
|
-
.menu
|
|
40
|
+
.menu > .menuitem {
|
|
16
41
|
border-bottom: 0;
|
|
17
|
-
border-radius: 5px 5px 0px 0px;
|
|
18
|
-
-moz-border-radius: 5px 5px 0px 0px;
|
|
19
|
-
-webkit-border-radius: 5px 5px 0px 0px;
|
|
42
|
+
border-radius: 5px 5px 0px 0px;
|
|
43
|
+
-moz-border-radius: 5px 5px 0px 0px;
|
|
44
|
+
-webkit-border-radius: 5px 5px 0px 0px;
|
|
20
45
|
text-shadow: 0 1px $font-color-second;
|
|
21
46
|
cursor: pointer;
|
|
22
47
|
line-height: 20px;
|
|
23
48
|
margin-right: 1px;
|
|
24
49
|
padding: 0;
|
|
25
50
|
width: auto;
|
|
51
|
+
min-width: 100px;
|
|
52
|
+
display: flex;
|
|
53
|
+
justify-content: space-between;
|
|
54
|
+
align-items: center;
|
|
26
55
|
&.selected {
|
|
27
56
|
border: 1px solid $component-border-color;
|
|
28
57
|
background: $font-color-second;
|
|
@@ -31,40 +60,22 @@
|
|
|
31
60
|
box-shadow: 0;
|
|
32
61
|
font-weight: bold; /* z-index: 2; */
|
|
33
62
|
}
|
|
34
|
-
&.selected > .closepanel,
|
|
63
|
+
&.selected > .closepanel,
|
|
64
|
+
&:hover > .closepanel {
|
|
35
65
|
visibility: visible;
|
|
36
66
|
}
|
|
37
67
|
}
|
|
38
|
-
.menu
|
|
68
|
+
.menu > .menuitem > .menubutton {
|
|
69
|
+
white-space: nowrap;
|
|
70
|
+
text-overflow: ellipsis;
|
|
39
71
|
background: transparent;
|
|
40
72
|
border: 0;
|
|
41
73
|
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
float: right;
|
|
46
|
-
height: 20px;
|
|
47
|
-
margin: 5px 5px 0 0;
|
|
48
|
-
padding: 0;
|
|
49
|
-
text-shadow: 0 1px 0 $font-color-second;
|
|
50
|
-
width: 20px;
|
|
51
|
-
visibility: hidden;
|
|
52
|
-
transition: all 0.2s ease-in-out;
|
|
53
|
-
border-radius: 4px;
|
|
54
|
-
&:after {
|
|
55
|
-
content: "×";
|
|
56
|
-
font-size: 20px;
|
|
57
|
-
text-shadow: none;
|
|
58
|
-
color: $font-color-soft;
|
|
59
|
-
transition: all 0.2s ease-in-out;
|
|
60
|
-
}
|
|
61
|
-
&:hover {
|
|
62
|
-
background-color: $color-light-dark;
|
|
63
|
-
&:after {
|
|
64
|
-
color: $font-color-second;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
74
|
+
|
|
75
|
+
.menu > .menuitem > .closepanel {
|
|
76
|
+
@extend %tab-closepanel;
|
|
67
77
|
}
|
|
78
|
+
|
|
68
79
|
.menubar {
|
|
69
80
|
width: auto;
|
|
70
81
|
border-bottom: 1px solid #dae1e8;
|
|
@@ -76,16 +87,19 @@
|
|
|
76
87
|
*/
|
|
77
88
|
|
|
78
89
|
.tabs-component {
|
|
79
|
-
display: grid;
|
|
80
|
-
grid-template-rows: auto 1fr;
|
|
81
90
|
width: 100%;
|
|
82
91
|
height: 100%;
|
|
83
92
|
@extend %tab-component-menus;
|
|
84
93
|
> .menucontainer {
|
|
85
94
|
display: flex;
|
|
86
95
|
flex-wrap: nowrap;
|
|
87
|
-
width: 100%;
|
|
96
|
+
max-width: 100%;
|
|
97
|
+
overflow: hidden;
|
|
88
98
|
@extend %tab-component-menus;
|
|
99
|
+
> .dropdownbutton {
|
|
100
|
+
border-bottom: 1px solid $component-border-color;
|
|
101
|
+
padding: 0 0.8rem;
|
|
102
|
+
}
|
|
89
103
|
}
|
|
90
104
|
> .panel {
|
|
91
105
|
background-color: $font-color-second;
|
|
@@ -111,9 +125,9 @@
|
|
|
111
125
|
justify-content: center;
|
|
112
126
|
}
|
|
113
127
|
> .menu > .menuitem {
|
|
114
|
-
border-radius: 5px 0px 0px 5px;
|
|
115
|
-
-moz-border-radius: 5px 0px 0px 5px;
|
|
116
|
-
-webkit-border-radius: 5px 0px 0px 5px;
|
|
128
|
+
border-radius: 5px 0px 0px 5px;
|
|
129
|
+
-moz-border-radius: 5px 0px 0px 5px;
|
|
130
|
+
-webkit-border-radius: 5px 0px 0px 5px;
|
|
117
131
|
&.selected {
|
|
118
132
|
border: 1px solid $component-border-color;
|
|
119
133
|
border-right: 1px solid $font-color-second;
|
|
@@ -121,8 +135,8 @@
|
|
|
121
135
|
width: 100%;
|
|
122
136
|
}
|
|
123
137
|
}
|
|
124
|
-
> .menu
|
|
125
|
-
float: left
|
|
138
|
+
> .menu > .menuitem > .closepanel {
|
|
139
|
+
float: left;
|
|
126
140
|
}
|
|
127
141
|
> .panel {
|
|
128
142
|
border-top: 1px solid $component-border-color;
|
|
@@ -139,9 +153,9 @@
|
|
|
139
153
|
box-shadow: 0 1px 1px 0px $component-border-color inset;
|
|
140
154
|
}
|
|
141
155
|
> .menu > .menuitem {
|
|
142
|
-
border-radius: 0px 0px 5px 5px;
|
|
143
|
-
-moz-border-radius: 0px 0px 5px 5px;
|
|
144
|
-
-webkit-border-radius: 0px 0px 5px 5px;
|
|
156
|
+
border-radius: 0px 0px 5px 5px;
|
|
157
|
+
-moz-border-radius: 0px 0px 5px 5px;
|
|
158
|
+
-webkit-border-radius: 0px 0px 5px 5px;
|
|
145
159
|
&.selected {
|
|
146
160
|
border: 1px solid $component-border-color;
|
|
147
161
|
border-top: 1px solid $font-color-second;
|
|
@@ -167,9 +181,9 @@
|
|
|
167
181
|
justify-content: center;
|
|
168
182
|
}
|
|
169
183
|
> .menu > .menuitem {
|
|
170
|
-
border-radius: 0px 5px 5px 0px;
|
|
171
|
-
-moz-border-radius: 0px 5px 5px 0px;
|
|
172
|
-
-webkit-border-radius: 0px 5px 5px 0px;
|
|
184
|
+
border-radius: 0px 5px 5px 0px;
|
|
185
|
+
-moz-border-radius: 0px 5px 5px 0px;
|
|
186
|
+
-webkit-border-radius: 0px 5px 5px 0px;
|
|
173
187
|
&.selected {
|
|
174
188
|
border: 1px solid $component-border-color;
|
|
175
189
|
border-left: 1px solid $font-color-second;
|
|
@@ -182,3 +196,22 @@
|
|
|
182
196
|
border-right: 0;
|
|
183
197
|
}
|
|
184
198
|
}
|
|
199
|
+
|
|
200
|
+
/*
|
|
201
|
+
Dropdown hide tabs
|
|
202
|
+
*/
|
|
203
|
+
.dropdown-hide-tabs .menuitem {
|
|
204
|
+
cursor: pointer;
|
|
205
|
+
line-height: 20px;
|
|
206
|
+
margin-right: 1px;
|
|
207
|
+
display: flex;
|
|
208
|
+
align-items: center;
|
|
209
|
+
justify-content: space-between;
|
|
210
|
+
min-height: 50px;
|
|
211
|
+
> .closepanel {
|
|
212
|
+
@extend %tab-closepanel;
|
|
213
|
+
}
|
|
214
|
+
&:hover > .closepanel {
|
|
215
|
+
visibility: visible;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
@@ -42,6 +42,25 @@
|
|
|
42
42
|
animation: revealelement 0.3s forwards ease-in-out;
|
|
43
43
|
> .label {
|
|
44
44
|
width: auto;
|
|
45
|
+
display: flex;
|
|
46
|
+
justify-content: flex-start;
|
|
47
|
+
align-items: center;
|
|
48
|
+
>.node-menu {
|
|
49
|
+
animation: revealelement 0.3s forwards ease-in-out;
|
|
50
|
+
margin-left: 10px;
|
|
51
|
+
}
|
|
52
|
+
>.node-rightelements {
|
|
53
|
+
animation: revealelement 0.3s forwards ease-in-out;
|
|
54
|
+
display: flex;
|
|
55
|
+
justify-content: flex-start;
|
|
56
|
+
align-items: center;
|
|
57
|
+
}
|
|
58
|
+
>.node-toolbarelements {
|
|
59
|
+
animation: revealelement 0.3s forwards ease-in-out;
|
|
60
|
+
width: auto;
|
|
61
|
+
height: 100%;
|
|
62
|
+
margin-left: 10px;
|
|
63
|
+
}
|
|
45
64
|
&:hover {
|
|
46
65
|
background-color: rgb(209, 209, 209);
|
|
47
66
|
}
|
|
@@ -53,3 +72,16 @@
|
|
|
53
72
|
float: left;
|
|
54
73
|
}
|
|
55
74
|
}
|
|
75
|
+
|
|
76
|
+
.nodelist > .treeviewitem > .label > .node-rightelements > .element,
|
|
77
|
+
.treeview-component > .treeviewcontainer > .treeviewitem > .label > .node-rightelements > .element {
|
|
78
|
+
margin-left: 10px;
|
|
79
|
+
display: flex;
|
|
80
|
+
align-items: center;
|
|
81
|
+
height: 100%;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.nodelist > .treeviewitem > .label > .node-toolbarelements > .toolbar-group > .buttonbar,
|
|
85
|
+
.treeview-component > .treeviewcontainer > .treeviewitem > .label > .node-toolbarelements > .toolbar-group > .buttonbar {
|
|
86
|
+
border: none;
|
|
87
|
+
}
|
|
@@ -103,18 +103,29 @@ describe('Avatar', function () {
|
|
|
103
103
|
expect(container.firstChild).toContainElement(_react2.screen.getByAltText('Avatar Teste'));
|
|
104
104
|
expect(_react2.screen.getByAltText('Avatar Teste')).toHaveClass('imgavatar');
|
|
105
105
|
});
|
|
106
|
+
it('should not render icon if has image', function () {
|
|
107
|
+
var mockAvatar = /*#__PURE__*/_react["default"].createElement(_["default"], {
|
|
108
|
+
src: "https://yt3.ggpht.com/a-/AAuE7mDGQh9L3n_EULfeZEO9rs_JR4BY376CSrlxdw=s900-mo-c-c0xffffffff-rj-k-no",
|
|
109
|
+
srcAlt: "Avatar Teste"
|
|
110
|
+
});
|
|
111
|
+
|
|
112
|
+
var _render9 = (0, _react2.render)(mockAvatar),
|
|
113
|
+
container = _render9.container;
|
|
114
|
+
|
|
115
|
+
expect(container.firstChild).not.toContainElement(document.querySelector('.icon-component'));
|
|
116
|
+
});
|
|
106
117
|
it('should change size', function () {
|
|
107
|
-
var
|
|
118
|
+
var _render10 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_["default"], {
|
|
108
119
|
label: "B",
|
|
109
120
|
width: "56px",
|
|
110
121
|
height: "56px"
|
|
111
122
|
})),
|
|
112
|
-
container =
|
|
123
|
+
container = _render10.container;
|
|
113
124
|
|
|
114
125
|
expect(container.firstChild).toHaveStyle('width: 56px; height:56px');
|
|
115
126
|
});
|
|
116
127
|
it('should open dropdown and render chilren', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
117
|
-
var mockAvatar,
|
|
128
|
+
var mockAvatar, _render11, container;
|
|
118
129
|
|
|
119
130
|
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
120
131
|
while (1) {
|
|
@@ -135,7 +146,7 @@ describe('Avatar', function () {
|
|
|
135
146
|
text: "Itemlist sem \xEDcone Disabled",
|
|
136
147
|
disabled: true
|
|
137
148
|
})));
|
|
138
|
-
|
|
149
|
+
_render11 = (0, _react2.render)(mockAvatar), container = _render11.container;
|
|
139
150
|
|
|
140
151
|
_react2.fireEvent.click(container.firstChild);
|
|
141
152
|
|
|
@@ -158,11 +169,11 @@ describe('Avatar', function () {
|
|
|
158
169
|
it('should callback function onClick', function () {
|
|
159
170
|
var mockOnClick = jest.fn();
|
|
160
171
|
|
|
161
|
-
var
|
|
172
|
+
var _render12 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_["default"], {
|
|
162
173
|
label: "B",
|
|
163
174
|
onClick: mockOnClick
|
|
164
175
|
})),
|
|
165
|
-
container =
|
|
176
|
+
container = _render12.container;
|
|
166
177
|
|
|
167
178
|
_react2.fireEvent.click(container.firstChild);
|
|
168
179
|
|