linear-react-components-ui 1.1.21-beta.4 → 1.1.21-beta.5
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/assets/styles/button.scss +1 -0
- package/lib/assets/styles/calendar.scss +64 -30
- package/lib/assets/styles/datepicker.scss +26 -6
- package/lib/assets/styles/periodpicker.scss +60 -20
- package/lib/assets/styles/sidenav.scss +1 -1
- package/lib/assets/styles/tabs.scss +48 -18
- package/lib/buttons/DefaultButton.js +6 -3
- package/lib/buttons/types.d.ts +1 -0
- package/lib/calendar/DangerCalendar.d.ts +1 -0
- package/lib/calendar/InfoCalendar.d.ts +1 -0
- package/lib/calendar/PrimaryCalendar.d.ts +1 -0
- package/lib/calendar/SuccessCalendar.d.ts +1 -0
- package/lib/calendar/WarningCalendar.d.ts +1 -0
- package/lib/calendar/base/Day.d.ts +1 -0
- package/lib/calendar/base/Day.js +6 -2
- package/lib/calendar/base/Month.d.ts +2 -1
- package/lib/calendar/base/Month.js +2 -0
- package/lib/calendar/base/Week.d.ts +1 -0
- package/lib/calendar/base/index.d.ts +1 -0
- package/lib/calendar/base/index.js +61 -13
- package/lib/calendar/index.d.ts +1 -0
- package/lib/calendar/types.d.ts +5 -0
- package/lib/dialog/base/Content.js +5 -4
- package/lib/dialog/base/Header.js +0 -1
- package/lib/dialog/base/index.js +26 -3
- package/lib/drawer/Drawer.js +1 -1
- package/lib/dropdown/Popup.d.ts +2 -2
- package/lib/dropdown/Popup.js +38 -17
- package/lib/dropdown/types.d.ts +7 -3
- package/lib/dropdown/withDropdown.js +5 -4
- package/lib/form/Field.js +11 -2
- package/lib/form/FieldArray.js +11 -2
- package/lib/form/FieldNumber.js +10 -1
- package/lib/form/FieldPeriod.js +15 -12
- package/lib/form/index.d.ts +1 -1
- package/lib/form/index.js +25 -3
- package/lib/form/types.d.ts +13 -1
- package/lib/form/withFieldHOC.js +4 -2
- package/lib/inputs/base/InputTextBase.js +9 -2
- package/lib/inputs/base/types.d.ts +2 -0
- package/lib/inputs/date/Dialog.js +5 -4
- package/lib/inputs/date/Dropdown.js +13 -7
- package/lib/inputs/date/helpers.d.ts +31 -11
- package/lib/inputs/date/helpers.js +32 -15
- package/lib/inputs/date/index.js +142 -102
- package/lib/inputs/date/types.d.ts +8 -6
- package/lib/inputs/mask/BaseMask.d.ts +1 -1
- package/lib/inputs/mask/BaseMask.js +6 -4
- package/lib/inputs/mask/helpers.d.ts +6 -53
- package/lib/inputs/mask/helpers.js +15 -35
- package/lib/inputs/mask/types.d.ts +1 -0
- package/lib/inputs/number/BaseNumber.d.ts +1 -1
- package/lib/inputs/number/BaseNumber.js +9 -2
- package/lib/inputs/number/Currency.d.ts +1 -1
- package/lib/inputs/number/Currency.js +11 -4
- package/lib/inputs/period/Dialog.d.ts +1 -1
- package/lib/inputs/period/Dialog.js +5 -3
- package/lib/inputs/period/Dropdown.js +16 -8
- package/lib/inputs/period/PeriodList.js +3 -12
- package/lib/inputs/period/index.js +210 -74
- package/lib/inputs/period/types.d.ts +10 -8
- package/lib/inputs/select/ActionButtons.js +3 -2
- package/lib/inputs/select/Dropdown.js +4 -2
- package/lib/inputs/select/multiple/index.js +10 -4
- package/lib/inputs/select/simple/index.js +10 -4
- package/lib/inputs/select/types.d.ts +4 -0
- package/lib/inputs/types.d.ts +1 -0
- package/lib/popover/PopoverText.d.ts +1 -0
- package/lib/popover/PopoverTitle.d.ts +1 -0
- package/lib/popover/index.d.ts +3 -5
- package/lib/popover/index.js +21 -15
- package/lib/popover/types.d.ts +11 -0
- package/lib/tabs/DropdownTabs.js +21 -7
- package/lib/tabs/Menu.d.ts +1 -1
- package/lib/tabs/Menu.js +4 -2
- package/lib/tabs/MenuTabs.js +16 -5
- package/lib/tabs/context.d.ts +1 -1
- package/lib/tabs/context.js +6 -4
- package/lib/tabs/index.d.ts +1 -1
- package/lib/tabs/index.js +13 -6
- package/lib/tabs/types.d.ts +8 -1
- package/lib/toolbar/types.d.ts +2 -1
- package/package.json +1 -1
|
@@ -104,6 +104,7 @@ $shadow-button-inset-default: inset 0 0 0 1px $default-border-color, $shadow-but
|
|
|
104
104
|
opacity: 0.7;
|
|
105
105
|
border: solid 1px $font-color-disabled;
|
|
106
106
|
pointer-events: auto;
|
|
107
|
+
cursor: not-allowed;
|
|
107
108
|
}
|
|
108
109
|
&.-shadowsdisabled {
|
|
109
110
|
box-shadow: none!important;
|
|
@@ -3,28 +3,58 @@
|
|
|
3
3
|
@import "commons.scss";
|
|
4
4
|
|
|
5
5
|
$padding-size: 10px;
|
|
6
|
+
$border-radius-size: 5px;
|
|
6
7
|
.calendar-component {
|
|
7
|
-
|
|
8
|
-
grid-template-rows: 30px 30px 1fr;
|
|
9
|
-
border: 1px solid $component-border-color;
|
|
10
|
-
border-radius: 5px;
|
|
11
|
-
font-size: 12px;
|
|
8
|
+
width: auto;
|
|
12
9
|
height: 100%;
|
|
13
|
-
|
|
10
|
+
min-height: 20rem;
|
|
11
|
+
font-size: 12px;
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
border-radius: $border-radius-size;
|
|
15
|
+
border: 1px solid $component-border-color;
|
|
14
16
|
> .calendarheader,
|
|
15
17
|
> .daynames {
|
|
16
|
-
|
|
18
|
+
width: auto;
|
|
19
|
+
height: 1.85rem;
|
|
17
20
|
display: grid;
|
|
21
|
+
align-items: center;
|
|
22
|
+
background-color: #f0f0f0;
|
|
18
23
|
grid-template-columns: 20px 1fr 30px;
|
|
19
|
-
padding: $padding-size;
|
|
20
|
-
padding-top: 4px;
|
|
21
24
|
}
|
|
22
25
|
> .calendarheader {
|
|
26
|
+
width: auto;
|
|
27
|
+
height: 32px;
|
|
28
|
+
padding-top: 4px;
|
|
29
|
+
display: flex;
|
|
30
|
+
align-items: center;
|
|
31
|
+
justify-content: space-between;
|
|
32
|
+
border-top-left-radius: $border-radius-size;
|
|
33
|
+
border-top-right-radius: $border-radius-size;
|
|
23
34
|
> .navbutton {
|
|
35
|
+
width: 2rem;
|
|
36
|
+
height: 2rem;
|
|
37
|
+
padding: 0;
|
|
38
|
+
margin: 0px 2px;
|
|
39
|
+
display: flex;
|
|
40
|
+
align-items: center;
|
|
41
|
+
justify-content: center;
|
|
24
42
|
background-color: transparent;
|
|
25
43
|
font-weight: bold;
|
|
26
|
-
padding: 0;
|
|
27
44
|
border: none;
|
|
45
|
+
svg {
|
|
46
|
+
margin: 0;
|
|
47
|
+
}
|
|
48
|
+
&:hover {
|
|
49
|
+
background-color: $component-border-color;
|
|
50
|
+
}
|
|
51
|
+
&:focus {
|
|
52
|
+
-webkit-box-shadow: none !important;
|
|
53
|
+
box-shadow: none !important;
|
|
54
|
+
border: 1px solid $default-border-color;
|
|
55
|
+
background-color: $component-border-color;
|
|
56
|
+
}
|
|
57
|
+
transition: none;
|
|
28
58
|
}
|
|
29
59
|
> .monthname {
|
|
30
60
|
font-weight: bold;
|
|
@@ -35,16 +65,21 @@ $padding-size: 10px;
|
|
|
35
65
|
}
|
|
36
66
|
}
|
|
37
67
|
> .daynames {
|
|
68
|
+
padding-top: 4px;
|
|
38
69
|
border-bottom: 1px solid $component-border-color;
|
|
39
70
|
grid-template-columns: repeat(7, 1fr);
|
|
40
71
|
text-align: center;
|
|
41
|
-
padding-top: 9px;
|
|
42
72
|
}
|
|
43
73
|
> .calendarmonth {
|
|
44
|
-
|
|
74
|
+
width: 100%;
|
|
75
|
+
height: 100%;
|
|
76
|
+
flex: 1;
|
|
45
77
|
display: grid;
|
|
46
78
|
grid-template-rows: repeat(6, 1fr);
|
|
47
|
-
padding:
|
|
79
|
+
padding: 2px;
|
|
80
|
+
background-color: $font-color-second;
|
|
81
|
+
border-bottom-left-radius: $border-radius-size;
|
|
82
|
+
border-bottom-right-radius: $border-radius-size;
|
|
48
83
|
}
|
|
49
84
|
> .calendarmonth > .monthweek {
|
|
50
85
|
text-align: center;
|
|
@@ -52,16 +87,31 @@ $padding-size: 10px;
|
|
|
52
87
|
grid-template-columns: repeat(7, 1fr)
|
|
53
88
|
}
|
|
54
89
|
.calendarmonth > .monthweek > .monthday {
|
|
55
|
-
|
|
90
|
+
height: auto;
|
|
91
|
+
width: auto;
|
|
56
92
|
text-align: center;
|
|
57
93
|
border-right: 0;
|
|
58
94
|
border-bottom: 0;
|
|
59
95
|
transition: all 0.2s ease-in-out;
|
|
60
96
|
> .daybutton {
|
|
97
|
+
height: 100%;
|
|
98
|
+
width: 100%;
|
|
99
|
+
padding: 0;
|
|
100
|
+
font-size: 13px;
|
|
101
|
+
border: none;
|
|
102
|
+
background-color: transparent;
|
|
103
|
+
&.-nowday {
|
|
104
|
+
font-weight: bold
|
|
105
|
+
}
|
|
106
|
+
&.-outmonth {
|
|
107
|
+
color: #777;
|
|
108
|
+
}
|
|
61
109
|
&:focus {
|
|
62
110
|
-webkit-box-shadow: none !important;
|
|
63
111
|
box-shadow: none !important;
|
|
112
|
+
border: 2px solid $default-border-color;
|
|
64
113
|
}
|
|
114
|
+
transition: none;
|
|
65
115
|
}
|
|
66
116
|
&:hover {
|
|
67
117
|
background-color: $component-border-color;
|
|
@@ -74,19 +124,6 @@ $padding-size: 10px;
|
|
|
74
124
|
&.-selectedday > .daybutton {
|
|
75
125
|
color: $font-color-second;
|
|
76
126
|
}
|
|
77
|
-
> .daybutton {
|
|
78
|
-
background-color: transparent;
|
|
79
|
-
height: 100%;
|
|
80
|
-
padding: 0;
|
|
81
|
-
width: 100%;
|
|
82
|
-
font-size: 13px;
|
|
83
|
-
&.-nowday {
|
|
84
|
-
font-weight: bold
|
|
85
|
-
}
|
|
86
|
-
&.-outmonth {
|
|
87
|
-
color: #777;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
127
|
}
|
|
91
128
|
}
|
|
92
129
|
|
|
@@ -167,6 +204,3 @@ $padding-size: 10px;
|
|
|
167
204
|
}
|
|
168
205
|
}
|
|
169
206
|
|
|
170
|
-
.numberdaycalendar {
|
|
171
|
-
border: none!important;
|
|
172
|
-
}
|
|
@@ -1,16 +1,36 @@
|
|
|
1
1
|
@import "commons.scss";
|
|
2
2
|
@import "effects.scss";
|
|
3
3
|
|
|
4
|
+
.datepicker-container {
|
|
5
|
+
position: relative;
|
|
6
|
+
transition: none;
|
|
7
|
+
}
|
|
8
|
+
|
|
4
9
|
.datepicker-component {
|
|
5
10
|
@extend %component-box-shadow;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
11
|
+
z-index: 999999999999;
|
|
12
|
+
margin-top: 4px;
|
|
13
|
+
position: fixed;
|
|
9
14
|
animation: 0.5s ease-in 0s 1 slideDown;
|
|
15
|
+
transition: none;
|
|
10
16
|
}
|
|
11
17
|
|
|
12
18
|
.calendar-button {
|
|
13
19
|
width: 26px;
|
|
14
|
-
|
|
15
|
-
border:
|
|
16
|
-
|
|
20
|
+
border-radius: 0;
|
|
21
|
+
border: 0 !important;
|
|
22
|
+
display: flex;
|
|
23
|
+
align-items: center;
|
|
24
|
+
box-shadow: none !important;
|
|
25
|
+
justify-content: center;
|
|
26
|
+
padding: 0 !important;
|
|
27
|
+
|
|
28
|
+
svg {
|
|
29
|
+
margin: 0 !important;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
>.icon-component {
|
|
33
|
+
width: 16px !important;
|
|
34
|
+
height: 16px !important;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
@import "commons.scss";
|
|
2
2
|
@import "effects.scss";
|
|
3
|
+
@import "colors.scss";
|
|
4
|
+
|
|
5
|
+
.datepicker-period-container {
|
|
6
|
+
position: relative;
|
|
7
|
+
transition: none;
|
|
8
|
+
}
|
|
3
9
|
|
|
4
10
|
.periodpicker-component {
|
|
5
11
|
height: auto;
|
|
6
12
|
position: relative;
|
|
7
13
|
display: flex;
|
|
8
14
|
border-radius: 2px;
|
|
9
|
-
border: 1px solid
|
|
15
|
+
border: 1px solid $component-border-color;
|
|
10
16
|
|
|
11
17
|
.inputwrapper {
|
|
12
18
|
border: none;
|
|
@@ -18,31 +24,79 @@
|
|
|
18
24
|
}
|
|
19
25
|
|
|
20
26
|
.calendar-button {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
border:
|
|
27
|
+
width: 26px;
|
|
28
|
+
border-radius: 0;
|
|
29
|
+
border: 0 !important;
|
|
30
|
+
display: flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
box-shadow: none !important;
|
|
33
|
+
justify-content: center;
|
|
34
|
+
padding: 0 !important;
|
|
35
|
+
|
|
36
|
+
svg {
|
|
37
|
+
margin: 0 !important;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
>.icon-component {
|
|
41
|
+
width: 16px !important;
|
|
42
|
+
height: 16px !important;
|
|
43
|
+
}
|
|
24
44
|
}
|
|
25
45
|
|
|
26
46
|
.input-base-component {
|
|
27
47
|
flex: 1;
|
|
28
48
|
}
|
|
49
|
+
}
|
|
29
50
|
|
|
51
|
+
.datepicker-component {
|
|
52
|
+
@extend %component-box-shadow;
|
|
53
|
+
border-radius: 5px;
|
|
54
|
+
margin-top: 4px !important;
|
|
55
|
+
position: fixed;
|
|
56
|
+
animation: 0.5s ease-in 0s 1 slideDown;
|
|
57
|
+
transition: none;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.dropdown-period {
|
|
61
|
+
width: 100%;
|
|
62
|
+
border-radius: 3px;
|
|
63
|
+
background-color: $component-bg-default;
|
|
64
|
+
border: 1px solid $component-border-color;
|
|
65
|
+
display: grid;
|
|
66
|
+
grid-template-rows: auto;
|
|
67
|
+
height: auto;
|
|
68
|
+
overflow-y: auto;
|
|
69
|
+
overflow-x: hidden;
|
|
30
70
|
}
|
|
31
71
|
|
|
32
72
|
.dropdown-period>.item {
|
|
73
|
+
all: unset;
|
|
33
74
|
margin: 0;
|
|
34
75
|
padding: 6px 10px;
|
|
35
76
|
display: flex;
|
|
36
77
|
cursor: pointer;
|
|
37
78
|
justify-content: stretch;
|
|
38
|
-
|
|
79
|
+
|
|
80
|
+
&:not(:last-child) {
|
|
81
|
+
border-bottom: solid 1px $separator-background;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&:first-child {
|
|
85
|
+
border-top-left-radius: 3px;
|
|
86
|
+
border-top-right-radius: 3px;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
&:last-child {
|
|
90
|
+
border-bottom-left-radius: 3px;
|
|
91
|
+
border-bottom-right-radius: 3px;
|
|
92
|
+
}
|
|
39
93
|
|
|
40
94
|
&:hover {
|
|
41
95
|
background-color: $default-hover-color;
|
|
42
96
|
}
|
|
43
97
|
|
|
44
98
|
&.-selected {
|
|
45
|
-
background-color: $
|
|
99
|
+
background-color: $component-bg-selected-color;
|
|
46
100
|
}
|
|
47
101
|
|
|
48
102
|
&.-disabled {
|
|
@@ -53,17 +107,3 @@
|
|
|
53
107
|
}
|
|
54
108
|
}
|
|
55
109
|
}
|
|
56
|
-
|
|
57
|
-
.dropdown-period {
|
|
58
|
-
width: 100%;
|
|
59
|
-
/* animation: 0.5s ease-in 0s 1 slideDown; */
|
|
60
|
-
background-color: #FFF;
|
|
61
|
-
border: #dae1e8;
|
|
62
|
-
display: grid;
|
|
63
|
-
grid-template-rows: auto;
|
|
64
|
-
height: auto;
|
|
65
|
-
overflow-y: auto;
|
|
66
|
-
overflow-x: hidden;
|
|
67
|
-
/* margin-top: 2px; */
|
|
68
|
-
z-index: 99999999999;
|
|
69
|
-
}
|
|
@@ -49,13 +49,15 @@ $dropdown-width: 38px;
|
|
|
49
49
|
text-shadow: 0 1px $font-color-second;
|
|
50
50
|
cursor: pointer;
|
|
51
51
|
line-height: 20px;
|
|
52
|
-
margin-right:
|
|
52
|
+
margin-right: 2px;
|
|
53
53
|
padding: 0;
|
|
54
54
|
width: auto;
|
|
55
|
-
min-width:
|
|
55
|
+
min-width: 112px;
|
|
56
56
|
display: flex;
|
|
57
|
-
justify-content: space-between;
|
|
58
57
|
align-items: center;
|
|
58
|
+
border: 1px solid $font-color-second;
|
|
59
|
+
border-top: 2px solid $font-color-second;
|
|
60
|
+
border-bottom: 1px solid $component-border-color;
|
|
59
61
|
&.selected {
|
|
60
62
|
border: 1px solid $component-border-color;
|
|
61
63
|
background: $font-color-second;
|
|
@@ -64,6 +66,15 @@ $dropdown-width: 38px;
|
|
|
64
66
|
box-shadow: 0;
|
|
65
67
|
font-weight: bold;
|
|
66
68
|
}
|
|
69
|
+
&.witherrorcontent {
|
|
70
|
+
border: 1px solid $input-error-border-color;
|
|
71
|
+
border-top: 2px solid $input-error-border-color;
|
|
72
|
+
border-bottom: 1px solid transparent;
|
|
73
|
+
background-color: $input-error-bg-color;
|
|
74
|
+
&.selected {
|
|
75
|
+
border-top: 2px solid $component-selected-color;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
67
78
|
&.selected>.closepanel,
|
|
68
79
|
&:hover>.closepanel {
|
|
69
80
|
visibility: visible;
|
|
@@ -76,7 +87,8 @@ $dropdown-width: 38px;
|
|
|
76
87
|
background: transparent;
|
|
77
88
|
border: 0;
|
|
78
89
|
width: 100%;
|
|
79
|
-
text-align: left
|
|
90
|
+
text-align: left;
|
|
91
|
+
box-shadow: none !important;
|
|
80
92
|
}
|
|
81
93
|
|
|
82
94
|
.menu>.menuitem>.closepanel {
|
|
@@ -113,11 +125,17 @@ $dropdown-width: 38px;
|
|
|
113
125
|
visibility: hidden;
|
|
114
126
|
pointer-events: none;
|
|
115
127
|
opacity: 0;
|
|
128
|
+
display: flex;
|
|
129
|
+
align-items: center;
|
|
130
|
+
justify-content: center;
|
|
116
131
|
&.show {
|
|
117
132
|
visibility: visible;
|
|
118
133
|
pointer-events: all;
|
|
119
134
|
opacity: 1;
|
|
120
135
|
}
|
|
136
|
+
&.has-selected {
|
|
137
|
+
border: 1px solid $component-selected-color !important;
|
|
138
|
+
}
|
|
121
139
|
> svg {
|
|
122
140
|
margin: 0;
|
|
123
141
|
float: none;
|
|
@@ -247,20 +265,32 @@ $dropdown-width: 38px;
|
|
|
247
265
|
/*
|
|
248
266
|
Dropdown hide tabs
|
|
249
267
|
*/
|
|
250
|
-
.dropdown-hide-tabs
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
display: flex;
|
|
255
|
-
align-items: center;
|
|
256
|
-
justify-content: space-between;
|
|
257
|
-
min-height: 50px;
|
|
258
|
-
|
|
259
|
-
>.closepanel {
|
|
260
|
-
@extend %tab-closepanel;
|
|
268
|
+
.dropdown-hide-tabs {
|
|
269
|
+
.item-container > .item {
|
|
270
|
+
width: auto;
|
|
271
|
+
padding-left: 10px;
|
|
261
272
|
}
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
273
|
+
.menuitem {
|
|
274
|
+
cursor: pointer;
|
|
275
|
+
line-height: 20px;
|
|
276
|
+
margin-right: 1px;
|
|
277
|
+
display: flex;
|
|
278
|
+
align-items: center;
|
|
279
|
+
min-height: 50px;
|
|
280
|
+
gap: 8px;
|
|
281
|
+
> svg {
|
|
282
|
+
margin: 0;
|
|
283
|
+
}
|
|
284
|
+
> .menubutton {
|
|
285
|
+
padding: 0;
|
|
286
|
+
}
|
|
287
|
+
>.closepanel {
|
|
288
|
+
@extend %tab-closepanel;
|
|
289
|
+
margin-left: auto;
|
|
290
|
+
margin-right: 0;
|
|
291
|
+
}
|
|
292
|
+
&:hover>.closepanel {
|
|
293
|
+
visibility: visible;
|
|
294
|
+
}
|
|
265
295
|
}
|
|
266
296
|
}
|
|
@@ -11,7 +11,7 @@ var _withTooltip = _interopRequireWildcard(require("../internals/withTooltip"));
|
|
|
11
11
|
var _spinner = _interopRequireDefault(require("../spinner"));
|
|
12
12
|
var _withDropdown = _interopRequireDefault(require("../dropdown/withDropdown"));
|
|
13
13
|
var _permissionValidations = require("../permissionValidations");
|
|
14
|
-
const _excluded = ["dropdown", "onClick", "disabled", "iconName", "icon", "targetRef", "tabIndex", "isLoading", "label", "showDropdown", "getDropdownPopup", "isDropdownOpened", "showIconDropdown", "content", "style", "toggleable", "activeIconColor", "iconStyle", "visible", "customClass", "className", "size", "iconAlign", "boxShadow", "transparent", "round", "permissionAttr", "skeletonize", "errorMessage", "
|
|
14
|
+
const _excluded = ["dropdown", "onClick", "disabled", "iconName", "icon", "targetRef", "tabIndex", "isLoading", "label", "showDropdown", "getDropdownPopup", "isDropdownOpened", "showIconDropdown", "content", "style", "toggleable", "activeIconColor", "iconStyle", "visible", "customClass", "className", "size", "iconAlign", "boxShadow", "transparent", "round", "permissionAttr", "skeletonize", "errorMessage", "isFloatMenu", "dropdownAlign", "customClassForDropdown", "buttonRef", "handlerClose", "onDeniedText", "tooltip", "tooltipWidth", "tooltipPosition"];
|
|
15
15
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
16
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
17
17
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
@@ -54,12 +54,15 @@ const DefaultButton = _ref => {
|
|
|
54
54
|
permissionAttr,
|
|
55
55
|
skeletonize,
|
|
56
56
|
errorMessage,
|
|
57
|
-
tooltipWidth,
|
|
58
57
|
isFloatMenu,
|
|
59
58
|
dropdownAlign,
|
|
60
59
|
customClassForDropdown,
|
|
61
60
|
buttonRef,
|
|
62
|
-
|
|
61
|
+
handlerClose,
|
|
62
|
+
onDeniedText = 'Permissão Negada! Consulte o Administrador do sistema.',
|
|
63
|
+
tooltip,
|
|
64
|
+
tooltipWidth,
|
|
65
|
+
tooltipPosition
|
|
63
66
|
} = _ref,
|
|
64
67
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
65
68
|
const options = [_permissionValidations.OPTIONS_ON_DENIED.disabled, _permissionValidations.OPTIONS_ON_DENIED.unvisible];
|
package/lib/buttons/types.d.ts
CHANGED
|
@@ -41,6 +41,7 @@ interface IButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
41
41
|
customClassForDropdown?: string;
|
|
42
42
|
dropdownAlign?: 'left' | 'right';
|
|
43
43
|
onClick?: (e: MouseEvent<HTMLButtonElement>) => void;
|
|
44
|
+
handlerClose?: (cb: () => void) => void;
|
|
44
45
|
closeDropdownOnClickOutside?: boolean;
|
|
45
46
|
errorMessage?: string;
|
|
46
47
|
onDeniedText?: string;
|
package/lib/calendar/base/Day.js
CHANGED
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _uuid = require("uuid");
|
|
8
9
|
var _helpers = require("./helpers");
|
|
9
10
|
var _buttons = _interopRequireDefault(require("../../buttons"));
|
|
10
11
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -21,12 +22,15 @@ const Day = _ref => {
|
|
|
21
22
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
22
23
|
className: (0, _helpers.getDayContainerCssClass)(currentDate, day)
|
|
23
24
|
}, /*#__PURE__*/_react.default.createElement(_buttons.default, {
|
|
25
|
+
id: (0, _uuid.v1)(),
|
|
26
|
+
type: "button",
|
|
27
|
+
tabIndex: (0, _helpers.dateIsEquals)(currentDate, day) ? 0 : -1,
|
|
24
28
|
boxShadow: false,
|
|
29
|
+
label: day.format('D'),
|
|
25
30
|
onClick: () => {
|
|
26
31
|
if (handleDateChange) handleDateChange(day);
|
|
27
32
|
},
|
|
28
|
-
customClass: ` ${(0, _helpers.getDayCssClass)(currentDate, day)} numberdaycalendar
|
|
29
|
-
label: day.format('D')
|
|
33
|
+
customClass: ` ${(0, _helpers.getDayCssClass)(currentDate, day)} numberdaycalendar`
|
|
30
34
|
}));
|
|
31
35
|
};
|
|
32
36
|
var _default = exports.default = Day;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { IMonthProps } from '../types.js';
|
|
2
|
+
import 'react';
|
|
2
3
|
import 'moment';
|
|
3
4
|
import '../../@types/ColorStyles.js';
|
|
4
5
|
|
|
5
|
-
declare const Month: ({ currentDate }: IMonthProps) => JSX.Element;
|
|
6
|
+
declare const Month: ({ monthRef, currentDate }: IMonthProps) => JSX.Element;
|
|
6
7
|
|
|
7
8
|
export { Month as default };
|
|
@@ -10,6 +10,7 @@ var _helpers = require("./helpers");
|
|
|
10
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
11
|
const Month = _ref => {
|
|
12
12
|
let {
|
|
13
|
+
monthRef,
|
|
13
14
|
currentDate
|
|
14
15
|
} = _ref;
|
|
15
16
|
const renderWeeks = () => {
|
|
@@ -31,6 +32,7 @@ const Month = _ref => {
|
|
|
31
32
|
return weeks;
|
|
32
33
|
};
|
|
33
34
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
35
|
+
ref: monthRef,
|
|
34
36
|
className: "calendarmonth"
|
|
35
37
|
}, renderWeeks());
|
|
36
38
|
};
|