5htp-core 0.4.1-6 → 0.4.2
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/package.json +2 -3
- package/src/client/assets/css/components/button.less +2 -2
- package/src/client/assets/css/core.less +0 -1
- package/src/client/components/inputv3/date/Calendar.css +156 -0
- package/src/client/components/inputv3/date/Clock.css +62 -0
- package/src/client/components/inputv3/date/DateTimePicker.css +132 -0
- package/src/client/components/inputv3/date/index.tsx +5 -4
- package/src/client/components/inputv3/index.tsx +36 -38
- package/src/common/validation/schema.ts +2 -5
- package/src/client/assets/fonts/Inter.zip +0 -0
- package/src/client/assets/fonts/Lato/index.less +0 -71
- package/src/client/assets/fonts/Lato/latin-400.woff2 +0 -0
- package/src/client/assets/fonts/Lato/latin-700.woff2 +0 -0
- package/src/client/assets/fonts/Lato/latin-900.woff2 +0 -0
- package/src/client/assets/fonts/Lato/latin-ext-400.woff2 +0 -0
- package/src/client/assets/fonts/Lato/latin-ext-700.woff2 +0 -0
- package/src/client/assets/fonts/Lato/latin-ext-900.woff2 +0 -0
- package/src/client/assets/fonts/Oswald.zip +0 -0
- package/src/client/components/inputv3/date/react-calendar.less +0 -143
- package/src/client/components/inputv3/date/react-daterange-picker.less +0 -112
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "5htp-core",
|
|
3
3
|
"description": "Convenient TypeScript framework designed for Performance and Productivity.",
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.2",
|
|
5
5
|
"author": "Gaetan Le Gac (https://github.com/gaetanlegac)",
|
|
6
6
|
"repository": "git://github.com/gaetanlegac/5htp-core.git",
|
|
7
7
|
"license": "MIT",
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
"framework"
|
|
14
14
|
],
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@wojtekmaj/react-daterange-picker": "^5.0.2",
|
|
17
16
|
"accepts": "^1.3.7",
|
|
18
17
|
"activity-detector": "^3.0.0",
|
|
19
18
|
"ansi-to-html": "^0.7.1",
|
|
@@ -65,7 +64,7 @@
|
|
|
65
64
|
"picomatch": "^2.3.1",
|
|
66
65
|
"preact": "^10.5.15",
|
|
67
66
|
"preact-render-to-string": "^5.1.19",
|
|
68
|
-
"react-datetime-picker": "^5.0
|
|
67
|
+
"react-datetime-picker": "^5.6.0",
|
|
69
68
|
"react-scrollbars-custom": "^4.0.27",
|
|
70
69
|
"react-slider": "^2.0.1",
|
|
71
70
|
"react-textarea-autosize": "^8.3.3",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
z-index: 1; // Make the label on top of ::before for example
|
|
70
70
|
|
|
71
71
|
// Handle overflow
|
|
72
|
-
white-space: nowrap;
|
|
72
|
+
//white-space: nowrap;
|
|
73
73
|
text-overflow: ellipsis;
|
|
74
74
|
overflow: hidden;
|
|
75
75
|
|
|
@@ -280,7 +280,7 @@ ul.row {
|
|
|
280
280
|
position: relative;
|
|
281
281
|
|
|
282
282
|
// Submenu
|
|
283
|
-
&:not(:hover) > .btn + .menu,
|
|
283
|
+
&:not(.contPopover):not(:hover) > .btn + .menu,
|
|
284
284
|
> .btn[disabled] + .menu {
|
|
285
285
|
visibility: hidden;
|
|
286
286
|
}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
.react-calendar {
|
|
2
|
+
width: 350px;
|
|
3
|
+
max-width: 100%;
|
|
4
|
+
background: white;
|
|
5
|
+
border: 1px solid #a0a096;
|
|
6
|
+
font-family: Arial, Helvetica, sans-serif;
|
|
7
|
+
line-height: 1.125em;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.react-calendar--doubleView {
|
|
11
|
+
width: 700px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.react-calendar--doubleView .react-calendar__viewContainer {
|
|
15
|
+
display: flex;
|
|
16
|
+
margin: -0.5em;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.react-calendar--doubleView .react-calendar__viewContainer > * {
|
|
20
|
+
width: 50%;
|
|
21
|
+
margin: 0.5em;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.react-calendar,
|
|
25
|
+
.react-calendar *,
|
|
26
|
+
.react-calendar *:before,
|
|
27
|
+
.react-calendar *:after {
|
|
28
|
+
-moz-box-sizing: border-box;
|
|
29
|
+
-webkit-box-sizing: border-box;
|
|
30
|
+
box-sizing: border-box;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.react-calendar button {
|
|
34
|
+
margin: 0;
|
|
35
|
+
border: 0;
|
|
36
|
+
outline: none;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.react-calendar button:enabled:hover {
|
|
40
|
+
cursor: pointer;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.react-calendar__navigation {
|
|
44
|
+
display: flex;
|
|
45
|
+
height: 44px;
|
|
46
|
+
margin-bottom: 1em;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.react-calendar__navigation button {
|
|
50
|
+
min-width: 44px;
|
|
51
|
+
background: none;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.react-calendar__navigation button:disabled {
|
|
55
|
+
background-color: #f0f0f0;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.react-calendar__navigation button:enabled:hover,
|
|
59
|
+
.react-calendar__navigation button:enabled:focus {
|
|
60
|
+
background-color: #e6e6e6;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.react-calendar__month-view__weekdays {
|
|
64
|
+
text-align: center;
|
|
65
|
+
text-transform: uppercase;
|
|
66
|
+
font: inherit;
|
|
67
|
+
font-size: 0.75em;
|
|
68
|
+
font-weight: bold;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.react-calendar__month-view__weekdays__weekday {
|
|
72
|
+
padding: 0.5em;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.react-calendar__month-view__weekNumbers .react-calendar__tile {
|
|
76
|
+
display: flex;
|
|
77
|
+
align-items: center;
|
|
78
|
+
justify-content: center;
|
|
79
|
+
font: inherit;
|
|
80
|
+
font-size: 0.75em;
|
|
81
|
+
font-weight: bold;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.react-calendar__month-view__days__day--weekend {
|
|
85
|
+
color: #d10000;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.react-calendar__month-view__days__day--neighboringMonth,
|
|
89
|
+
.react-calendar__decade-view__years__year--neighboringDecade,
|
|
90
|
+
.react-calendar__century-view__decades__decade--neighboringCentury {
|
|
91
|
+
color: #757575;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.react-calendar__year-view .react-calendar__tile,
|
|
95
|
+
.react-calendar__decade-view .react-calendar__tile,
|
|
96
|
+
.react-calendar__century-view .react-calendar__tile {
|
|
97
|
+
padding: 2em 0.5em;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.react-calendar__tile {
|
|
101
|
+
max-width: 100%;
|
|
102
|
+
padding: 10px 6.6667px;
|
|
103
|
+
background: none;
|
|
104
|
+
text-align: center;
|
|
105
|
+
line-height: 16px;
|
|
106
|
+
font: inherit;
|
|
107
|
+
font-size: 0.833em;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.react-calendar__tile:disabled {
|
|
111
|
+
background-color: #f0f0f0;
|
|
112
|
+
color: #ababab;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.react-calendar__month-view__days__day--neighboringMonth:disabled,
|
|
116
|
+
.react-calendar__decade-view__years__year--neighboringDecade:disabled,
|
|
117
|
+
.react-calendar__century-view__decades__decade--neighboringCentury:disabled {
|
|
118
|
+
color: #cdcdcd;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.react-calendar__tile:enabled:hover,
|
|
122
|
+
.react-calendar__tile:enabled:focus {
|
|
123
|
+
background-color: #e6e6e6;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.react-calendar__tile--now {
|
|
127
|
+
background: #ffff76;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.react-calendar__tile--now:enabled:hover,
|
|
131
|
+
.react-calendar__tile--now:enabled:focus {
|
|
132
|
+
background: #ffffa9;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.react-calendar__tile--hasActive {
|
|
136
|
+
background: #76baff;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.react-calendar__tile--hasActive:enabled:hover,
|
|
140
|
+
.react-calendar__tile--hasActive:enabled:focus {
|
|
141
|
+
background: #a9d4ff;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.react-calendar__tile--active {
|
|
145
|
+
background: #006edc;
|
|
146
|
+
color: white;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.react-calendar__tile--active:enabled:hover,
|
|
150
|
+
.react-calendar__tile--active:enabled:focus {
|
|
151
|
+
background: #1087ff;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.react-calendar--selectRange .react-calendar__tile--hover {
|
|
155
|
+
background-color: #e6e6e6;
|
|
156
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
.react-clock {
|
|
2
|
+
display: block;
|
|
3
|
+
position: relative;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.react-clock,
|
|
7
|
+
.react-clock *,
|
|
8
|
+
.react-clock *:before,
|
|
9
|
+
.react-clock *:after {
|
|
10
|
+
-moz-box-sizing: border-box;
|
|
11
|
+
-webkit-box-sizing: border-box;
|
|
12
|
+
box-sizing: border-box;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.react-clock__face {
|
|
16
|
+
position: absolute;
|
|
17
|
+
top: 0;
|
|
18
|
+
bottom: 0;
|
|
19
|
+
left: 0;
|
|
20
|
+
right: 0;
|
|
21
|
+
border: 1px solid black;
|
|
22
|
+
border-radius: 50%;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.react-clock__hand {
|
|
26
|
+
position: absolute;
|
|
27
|
+
top: 0;
|
|
28
|
+
bottom: 0;
|
|
29
|
+
left: 50%;
|
|
30
|
+
right: 50%;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.react-clock__hand__body {
|
|
34
|
+
position: absolute;
|
|
35
|
+
background-color: black;
|
|
36
|
+
transform: translateX(-50%);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.react-clock__mark {
|
|
40
|
+
position: absolute;
|
|
41
|
+
top: 0;
|
|
42
|
+
bottom: 0;
|
|
43
|
+
left: 50%;
|
|
44
|
+
right: 50%;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.react-clock__mark__body {
|
|
48
|
+
position: absolute;
|
|
49
|
+
background-color: black;
|
|
50
|
+
transform: translateX(-50%);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.react-clock__mark__number {
|
|
54
|
+
position: absolute;
|
|
55
|
+
left: -40px;
|
|
56
|
+
width: 80px;
|
|
57
|
+
text-align: center;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.react-clock__second-hand__body {
|
|
61
|
+
background-color: red;
|
|
62
|
+
}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
.react-datetime-picker {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
position: relative;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.react-datetime-picker,
|
|
7
|
+
.react-datetime-picker *,
|
|
8
|
+
.react-datetime-picker *:before,
|
|
9
|
+
.react-datetime-picker *:after {
|
|
10
|
+
-moz-box-sizing: border-box;
|
|
11
|
+
-webkit-box-sizing: border-box;
|
|
12
|
+
box-sizing: border-box;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.react-datetime-picker--disabled {
|
|
16
|
+
background-color: #f0f0f0;
|
|
17
|
+
color: #6d6d6d;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.react-datetime-picker__wrapper {
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-grow: 1;
|
|
23
|
+
flex-shrink: 0;
|
|
24
|
+
border: thin solid gray;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.react-datetime-picker__inputGroup {
|
|
28
|
+
min-width: calc(4px + (4px * 3) + 0.54em * 6 + 0.217em * 2);
|
|
29
|
+
flex-grow: 1;
|
|
30
|
+
padding: 0 2px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.react-datetime-picker__inputGroup__divider {
|
|
34
|
+
padding: 1px 0;
|
|
35
|
+
white-space: pre;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.react-datetime-picker__inputGroup__divider,
|
|
39
|
+
.react-datetime-picker__inputGroup__leadingZero {
|
|
40
|
+
display: inline-block;
|
|
41
|
+
font: inherit;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.react-datetime-picker__inputGroup__input {
|
|
45
|
+
min-width: 0.54em;
|
|
46
|
+
height: calc(100% - 2px);
|
|
47
|
+
position: relative;
|
|
48
|
+
padding: 1px;
|
|
49
|
+
border: 0;
|
|
50
|
+
background: none;
|
|
51
|
+
color: currentColor;
|
|
52
|
+
font: inherit;
|
|
53
|
+
box-sizing: content-box;
|
|
54
|
+
-webkit-appearance: textfield;
|
|
55
|
+
-moz-appearance: textfield;
|
|
56
|
+
appearance: textfield;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.react-datetime-picker__inputGroup__input::-webkit-outer-spin-button,
|
|
60
|
+
.react-datetime-picker__inputGroup__input::-webkit-inner-spin-button {
|
|
61
|
+
-webkit-appearance: none;
|
|
62
|
+
-moz-appearance: none;
|
|
63
|
+
appearance: none;
|
|
64
|
+
margin: 0;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.react-datetime-picker__inputGroup__input:invalid {
|
|
68
|
+
background: rgba(255, 0, 0, 0.1);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.react-datetime-picker__inputGroup__input--hasLeadingZero {
|
|
72
|
+
margin-left: -0.54em;
|
|
73
|
+
padding-left: calc(1px + 0.54em);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.react-datetime-picker__inputGroup__amPm {
|
|
77
|
+
font: inherit;
|
|
78
|
+
-webkit-appearance: menulist;
|
|
79
|
+
-moz-appearance: menulist;
|
|
80
|
+
appearance: menulist;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.react-datetime-picker__button {
|
|
84
|
+
border: 0;
|
|
85
|
+
background: transparent;
|
|
86
|
+
padding: 4px 6px;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.react-datetime-picker__button:enabled {
|
|
90
|
+
cursor: pointer;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.react-datetime-picker__button:enabled:hover .react-datetime-picker__button__icon,
|
|
94
|
+
.react-datetime-picker__button:enabled:focus .react-datetime-picker__button__icon {
|
|
95
|
+
stroke: #0078d7;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.react-datetime-picker__button:disabled .react-datetime-picker__button__icon {
|
|
99
|
+
stroke: #6d6d6d;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.react-datetime-picker__button svg {
|
|
103
|
+
display: inherit;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.react-datetime-picker__calendar,
|
|
107
|
+
.react-datetime-picker__clock {
|
|
108
|
+
z-index: 1;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.react-datetime-picker__calendar--closed,
|
|
112
|
+
.react-datetime-picker__clock--closed {
|
|
113
|
+
display: none;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.react-datetime-picker__calendar {
|
|
117
|
+
width: 350px;
|
|
118
|
+
max-width: 100vw;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.react-datetime-picker__calendar .react-calendar {
|
|
122
|
+
border-width: thin;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.react-datetime-picker__clock {
|
|
126
|
+
width: 200px;
|
|
127
|
+
height: 200px;
|
|
128
|
+
max-width: 100vw;
|
|
129
|
+
padding: 25px;
|
|
130
|
+
background-color: white;
|
|
131
|
+
border: thin solid #a0a096;
|
|
132
|
+
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
// Npm
|
|
6
6
|
import React from 'react';
|
|
7
|
-
import DateRangePicker, {
|
|
7
|
+
import DateRangePicker, { DateTimePickerProps } from 'react-datetime-picker';
|
|
8
8
|
|
|
9
9
|
// Core
|
|
10
10
|
|
|
@@ -15,7 +15,7 @@ import DateRangePicker, { DateRangePickerProps } from '@wojtekmaj/react-daterang
|
|
|
15
15
|
----------------------------------*/
|
|
16
16
|
|
|
17
17
|
type TValue = [Date, Date]
|
|
18
|
-
export type Props =
|
|
18
|
+
export type Props = DateTimePickerProps & {
|
|
19
19
|
//value: TValue,
|
|
20
20
|
//onChange: StateUpdater<TValue>,
|
|
21
21
|
placeholder?: string,
|
|
@@ -26,8 +26,9 @@ export type Props = DateRangePickerProps & {
|
|
|
26
26
|
/*----------------------------------
|
|
27
27
|
- COMPOSANT
|
|
28
28
|
----------------------------------*/
|
|
29
|
-
import './
|
|
30
|
-
import './
|
|
29
|
+
import './DateTimePicker.css';
|
|
30
|
+
import './Calendar.css';
|
|
31
|
+
import './Clock.css';
|
|
31
32
|
export default ({ value, Props, min, max, onChange, ...otherProps }) => {
|
|
32
33
|
|
|
33
34
|
const state = React.useState(false);
|
|
@@ -168,44 +168,42 @@ export default ({
|
|
|
168
168
|
/*----------------------------------
|
|
169
169
|
- RENDER
|
|
170
170
|
----------------------------------*/
|
|
171
|
-
return
|
|
172
|
-
<div class=
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
<
|
|
197
|
-
|
|
198
|
-
)}</label>
|
|
199
|
-
</div>
|
|
200
|
-
|
|
201
|
-
{suffix}
|
|
202
|
-
|
|
171
|
+
return <>
|
|
172
|
+
<div class={className} onClick={() => refInput.current?.focus()}>
|
|
173
|
+
|
|
174
|
+
{prefix}
|
|
175
|
+
|
|
176
|
+
<div class="contValue">
|
|
177
|
+
|
|
178
|
+
<Tag {...fieldProps}
|
|
179
|
+
// @ts-ignore: Property 'ref' does not exist on type 'IntrinsicAttributes'
|
|
180
|
+
ref={refInput}
|
|
181
|
+
value={value}
|
|
182
|
+
onFocus={() => setState({ focus: true })}
|
|
183
|
+
onBlur={() => setState({ focus: false })}
|
|
184
|
+
onChange={(e) => updateValue(e.target.value)}
|
|
185
|
+
|
|
186
|
+
onKeyDown={(e: KeyboardEvent) => {
|
|
187
|
+
|
|
188
|
+
if (onPressEnter && e.key === 'Enter' && value !== undefined) {
|
|
189
|
+
commitValue();
|
|
190
|
+
onPressEnter(value)
|
|
191
|
+
}
|
|
192
|
+
}}
|
|
193
|
+
/>
|
|
194
|
+
|
|
195
|
+
<label>{props.title}{required && (
|
|
196
|
+
<span class="fg error"> *</span>
|
|
197
|
+
)}</label>
|
|
203
198
|
</div>
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
</div>
|
|
208
|
-
)}
|
|
199
|
+
|
|
200
|
+
{suffix}
|
|
201
|
+
|
|
209
202
|
</div>
|
|
210
|
-
|
|
203
|
+
{errors?.length && (
|
|
204
|
+
<div class="fg error txt-left">
|
|
205
|
+
{errors.join('. ')}
|
|
206
|
+
</div>
|
|
207
|
+
)}
|
|
208
|
+
</>
|
|
211
209
|
}
|
|
@@ -102,10 +102,6 @@ export default class Schema<TFields extends TSchemaFields> {
|
|
|
102
102
|
const cheminAstr = cheminA.join('.')
|
|
103
103
|
const valOrigine = dataToValidate[fieldName];
|
|
104
104
|
|
|
105
|
-
// Key not in the input data, we don't create an entry in the output
|
|
106
|
-
if (!( fieldName in dataToValidate))
|
|
107
|
-
continue;
|
|
108
|
-
|
|
109
105
|
// Validation
|
|
110
106
|
try {
|
|
111
107
|
|
|
@@ -117,7 +113,8 @@ export default class Schema<TFields extends TSchemaFields> {
|
|
|
117
113
|
// Exemple: undefinec = suppression fichier | Absende donnée = conservation fihcier actuel
|
|
118
114
|
if (val === EXCLUDE_VALUE)
|
|
119
115
|
opts.debug && console.log(LogPrefix, '[' + cheminA + '] Exclusion demandée');
|
|
120
|
-
|
|
116
|
+
// Key not in the input data, we don't create an entry in the output
|
|
117
|
+
else if (fieldName in dataToValidate)
|
|
121
118
|
output[fieldName] = val;
|
|
122
119
|
|
|
123
120
|
opts.debug && console.log(LogPrefix, '[' + cheminA + ']', valOrigine, '=>', val);
|
|
Binary file
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
/*
|
|
3
|
-
The use of Unicode range subsets and separate files for each stylistic variant of
|
|
4
|
-
the font allows you to define a composite font family that is both faster and more
|
|
5
|
-
efficient to download. Visitors only download the variants and subsets they need,
|
|
6
|
-
and they aren't forced to download subsets that they may never see or use on the page.
|
|
7
|
-
|
|
8
|
-
https://web.dev/reduce-webfont-size/#unicode-range-subsetting
|
|
9
|
-
|
|
10
|
-
Original stylesheet: https://fonts.googleapis.com/css2?family=Rubik:wght@600&display=swap
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
/* latin-ext */
|
|
14
|
-
@font-face {
|
|
15
|
-
font-family: 'Lato';
|
|
16
|
-
font-style: normal;
|
|
17
|
-
font-weight: 400;
|
|
18
|
-
font-display: swap;
|
|
19
|
-
src: url(./latin-ext-400.woff2) format('woff2');
|
|
20
|
-
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
/* latin */
|
|
24
|
-
@font-face {
|
|
25
|
-
font-family: 'Lato';
|
|
26
|
-
font-style: normal;
|
|
27
|
-
font-weight: 400;
|
|
28
|
-
font-display: swap;
|
|
29
|
-
src: url(./latin-400.woff2) format('woff2');
|
|
30
|
-
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
/* latin-ext */
|
|
34
|
-
@font-face {
|
|
35
|
-
font-family: 'Lato';
|
|
36
|
-
font-style: normal;
|
|
37
|
-
font-weight: 700;
|
|
38
|
-
font-display: swap;
|
|
39
|
-
src: url(./latin-ext-700.woff2) format('woff2');
|
|
40
|
-
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
/* latin */
|
|
44
|
-
@font-face {
|
|
45
|
-
font-family: 'Lato';
|
|
46
|
-
font-style: normal;
|
|
47
|
-
font-weight: 700;
|
|
48
|
-
font-display: swap;
|
|
49
|
-
src: url(./latin-700.woff2) format('woff2');
|
|
50
|
-
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
/* latin-ext */
|
|
54
|
-
@font-face {
|
|
55
|
-
font-family: 'Lato';
|
|
56
|
-
font-style: normal;
|
|
57
|
-
font-weight: 900;
|
|
58
|
-
font-display: swap;
|
|
59
|
-
src: url(./latin-ext-900.woff2) format('woff2');
|
|
60
|
-
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
/* latin */
|
|
64
|
-
@font-face {
|
|
65
|
-
font-family: 'Lato';
|
|
66
|
-
font-style: normal;
|
|
67
|
-
font-weight: 900;
|
|
68
|
-
font-display: swap;
|
|
69
|
-
src: url(./latin-900.woff2) format('woff2');
|
|
70
|
-
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
71
|
-
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
.react-calendar {
|
|
2
|
-
width: 350px;
|
|
3
|
-
max-width: 100%;
|
|
4
|
-
background: white;
|
|
5
|
-
border: 1px solid #a0a096;
|
|
6
|
-
font-family: Arial, Helvetica, sans-serif;
|
|
7
|
-
line-height: 1.125em;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.react-calendar--doubleView {
|
|
11
|
-
width: 700px;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.react-calendar--doubleView .react-calendar__viewContainer {
|
|
15
|
-
display: flex;
|
|
16
|
-
margin: -0.5em;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.react-calendar--doubleView .react-calendar__viewContainer > * {
|
|
20
|
-
width: 50%;
|
|
21
|
-
margin: 0.5em;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.react-calendar,
|
|
25
|
-
.react-calendar *,
|
|
26
|
-
.react-calendar *:before,
|
|
27
|
-
.react-calendar *:after {
|
|
28
|
-
-moz-box-sizing: border-box;
|
|
29
|
-
-webkit-box-sizing: border-box;
|
|
30
|
-
box-sizing: border-box;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.react-calendar button {
|
|
34
|
-
margin: 0;
|
|
35
|
-
border: 0;
|
|
36
|
-
outline: none;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.react-calendar button:enabled:hover {
|
|
40
|
-
cursor: pointer;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.react-calendar__navigation {
|
|
44
|
-
display: flex;
|
|
45
|
-
height: 44px;
|
|
46
|
-
margin-bottom: 1em;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.react-calendar__navigation button {
|
|
50
|
-
min-width: 44px;
|
|
51
|
-
background: none;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.react-calendar__navigation button:disabled {
|
|
55
|
-
background-color: #f0f0f0;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.react-calendar__navigation button:enabled:hover,
|
|
59
|
-
.react-calendar__navigation button:enabled:focus {
|
|
60
|
-
background-color: #e6e6e6;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.react-calendar__month-view__weekdays {
|
|
64
|
-
text-align: center;
|
|
65
|
-
text-transform: uppercase;
|
|
66
|
-
font-weight: bold;
|
|
67
|
-
font-size: 0.75em;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.react-calendar__month-view__weekdays__weekday {
|
|
71
|
-
padding: 0.5em;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.react-calendar__month-view__weekNumbers .react-calendar__tile {
|
|
75
|
-
display: flex;
|
|
76
|
-
align-items: center;
|
|
77
|
-
justify-content: center;
|
|
78
|
-
font-size: 0.75em;
|
|
79
|
-
font-weight: bold;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.react-calendar__month-view__days__day--weekend {
|
|
83
|
-
color: #d10000;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.react-calendar__month-view__days__day--neighboringMonth {
|
|
87
|
-
color: #757575;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.react-calendar__year-view .react-calendar__tile,
|
|
91
|
-
.react-calendar__decade-view .react-calendar__tile,
|
|
92
|
-
.react-calendar__century-view .react-calendar__tile {
|
|
93
|
-
padding: 2em 0.5em;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.react-calendar__tile {
|
|
97
|
-
max-width: 100%;
|
|
98
|
-
padding: 10px 6.6667px;
|
|
99
|
-
background: none;
|
|
100
|
-
text-align: center;
|
|
101
|
-
line-height: 16px;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.react-calendar__tile:disabled {
|
|
105
|
-
background-color: #f0f0f0;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.react-calendar__tile:enabled:hover,
|
|
109
|
-
.react-calendar__tile:enabled:focus {
|
|
110
|
-
background-color: #e6e6e6;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.react-calendar__tile--now {
|
|
114
|
-
background: #ffff76;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.react-calendar__tile--now:enabled:hover,
|
|
118
|
-
.react-calendar__tile--now:enabled:focus {
|
|
119
|
-
background: #ffffa9;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
.react-calendar__tile--hasActive {
|
|
123
|
-
background: #76baff;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.react-calendar__tile--hasActive:enabled:hover,
|
|
127
|
-
.react-calendar__tile--hasActive:enabled:focus {
|
|
128
|
-
background: #a9d4ff;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
.react-calendar__tile--active {
|
|
132
|
-
background: #006edc;
|
|
133
|
-
color: white;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
.react-calendar__tile--active:enabled:hover,
|
|
137
|
-
.react-calendar__tile--active:enabled:focus {
|
|
138
|
-
background: #1087ff;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.react-calendar--selectRange .react-calendar__tile--hover {
|
|
142
|
-
background-color: #e6e6e6;
|
|
143
|
-
}
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
.react-daterange-picker {
|
|
2
|
-
display: inline-flex;
|
|
3
|
-
position: relative;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.react-daterange-picker,
|
|
7
|
-
.react-daterange-picker *,
|
|
8
|
-
.react-daterange-picker *:before,
|
|
9
|
-
.react-daterange-picker *:after {
|
|
10
|
-
-moz-box-sizing: border-box;
|
|
11
|
-
-webkit-box-sizing: border-box;
|
|
12
|
-
box-sizing: border-box;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.react-daterange-picker--disabled {
|
|
16
|
-
background-color: #f0f0f0;
|
|
17
|
-
color: #6d6d6d;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.react-daterange-picker__wrapper {
|
|
21
|
-
display: flex;
|
|
22
|
-
flex-grow: 1;
|
|
23
|
-
flex-shrink: 0;
|
|
24
|
-
align-items: center;
|
|
25
|
-
border: thin solid gray;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.react-daterange-picker__inputGroup {
|
|
29
|
-
min-width: calc((4px * 3) + 0.54em * 8 + 0.217em * 2);
|
|
30
|
-
height: 100%;
|
|
31
|
-
flex-grow: 1;
|
|
32
|
-
padding: 0 2px;
|
|
33
|
-
box-sizing: content-box;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.react-daterange-picker__inputGroup__divider {
|
|
37
|
-
padding: 1px 0;
|
|
38
|
-
white-space: pre;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.react-daterange-picker__inputGroup__divider,
|
|
42
|
-
.react-daterange-picker__inputGroup__leadingZero {
|
|
43
|
-
display: inline-block;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.react-daterange-picker__inputGroup__input {
|
|
47
|
-
min-width: 0.54em;
|
|
48
|
-
height: 100%;
|
|
49
|
-
position: relative;
|
|
50
|
-
padding: 0 1px;
|
|
51
|
-
border: 0;
|
|
52
|
-
background: none;
|
|
53
|
-
font: inherit;
|
|
54
|
-
box-sizing: content-box;
|
|
55
|
-
-webkit-appearance: textfield;
|
|
56
|
-
-moz-appearance: textfield;
|
|
57
|
-
appearance: textfield;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.react-daterange-picker__inputGroup__input::-webkit-outer-spin-button,
|
|
61
|
-
.react-daterange-picker__inputGroup__input::-webkit-inner-spin-button {
|
|
62
|
-
-webkit-appearance: none;
|
|
63
|
-
-moz-appearance: none;
|
|
64
|
-
appearance: none;
|
|
65
|
-
margin: 0;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.react-daterange-picker__inputGroup__input:invalid {
|
|
69
|
-
background: rgba(255, 0, 0, 0.1);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.react-daterange-picker__inputGroup__input--hasLeadingZero {
|
|
73
|
-
margin-left: -0.54em;
|
|
74
|
-
padding-left: calc(1px + 0.54em);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.react-daterange-picker__button {
|
|
78
|
-
border: 0;
|
|
79
|
-
background: transparent;
|
|
80
|
-
padding: 4px 6px;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.react-daterange-picker__button:enabled {
|
|
84
|
-
cursor: pointer;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.react-daterange-picker__button:enabled:hover .react-daterange-picker__button__icon,
|
|
88
|
-
.react-daterange-picker__button:enabled:focus .react-daterange-picker__button__icon {
|
|
89
|
-
stroke: #0078d7;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.react-daterange-picker__button:disabled .react-daterange-picker__button__icon {
|
|
93
|
-
stroke: #6d6d6d;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.react-daterange-picker__button svg {
|
|
97
|
-
display: inherit;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.react-daterange-picker__calendar {
|
|
101
|
-
width: 350px;
|
|
102
|
-
max-width: 100vw;
|
|
103
|
-
z-index: 1;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.react-daterange-picker__calendar--closed {
|
|
107
|
-
display: none;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.react-daterange-picker__calendar .react-calendar {
|
|
111
|
-
border-width: thin;
|
|
112
|
-
}
|