@inseefr/lunatic 3.0.0-rc.5 → 3.0.0-rc.8
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/components/CheckboxBoolean/CheckboxBoolean.js +1 -1
- package/lib/components/CheckboxGroup/CheckboxGroup.js +3 -2
- package/lib/components/CheckboxGroup/CustomCheckboxGroup.js +2 -3
- package/lib/components/CheckboxGroup/CustomCheckboxGroup.spec.js +3 -0
- package/lib/components/CheckboxOne/CheckboxOne.js +0 -1
- package/lib/components/Datepicker/Datepicker.js +0 -1
- package/lib/components/Dropdown/Dropdown.js +0 -17
- package/lib/components/Duration/Duration.js +0 -1
- package/lib/components/Input/Input.js +0 -1
- package/lib/components/InputNumber/InputNumber.js +0 -1
- package/lib/components/RosterForLoop/RosterForLoop.js +0 -1
- package/lib/components/Roundabout/Roundabout.js +0 -1
- package/lib/components/Sequence/Sequence.js +0 -1
- package/lib/components/Suggester/CustomSuggester.js +7 -4
- package/lib/components/Suggester/Suggester.js +59 -4
- package/lib/components/Textarea/Textarea.js +1 -2
- package/lib/components/shared/Button/Button.js +0 -1
- package/lib/components/shared/Button/IconButton.js +0 -1
- package/lib/components/shared/Checkbox/CheckboxOption.js +0 -1
- package/lib/components/shared/Combobox/Combobox.js +3 -2
- package/lib/components/shared/ComponentErrors/ComponentErrors.js +0 -1
- package/lib/components/shared/Declarations/Declarations.js +0 -1
- package/lib/components/shared/Fieldset/Fieldset.js +0 -1
- package/lib/components/shared/Icons/lunatic-icon.js +0 -1
- package/lib/components/shared/Label/Label.js +0 -1
- package/lib/components/shared/Missing/Missing.js +0 -1
- package/lib/components/shared/ModalControls/ModalControls.js +0 -1
- package/lib/components/shared/Radio/RadioGroup.js +0 -1
- package/lib/components/shared/Table/Table.js +0 -1
- package/lib/components/shared/VariableStatus/VariableStatus.js +0 -1
- package/lib/components/shared/suggester-loader-widget/dragger/dragger.js +0 -1
- package/lib/components/shared/suggester-loader-widget/widget.js +0 -1
- package/lib/css/components/Button.scss +24 -0
- package/lib/css/components/CheckboxGroup.scss +13 -0
- package/lib/css/components/CheckboxOne.scss +19 -0
- package/lib/css/components/CheckboxOption.scss +19 -0
- package/lib/css/components/Combobox.scss +206 -0
- package/lib/css/components/ComponentErrors.scss +5 -0
- package/lib/css/components/Datepicker.scss +19 -0
- package/lib/css/components/Declarations.scss +42 -0
- package/lib/css/components/Dragger.scss +8 -0
- package/lib/css/components/Dropdown.scss +38 -0
- package/lib/css/components/Duration.scss +9 -0
- package/lib/css/components/Fieldset.scss +5 -0
- package/lib/css/components/IconButton.scss +38 -0
- package/lib/css/components/Input.scss +42 -0
- package/lib/css/components/InputNumber.scss +11 -0
- package/lib/css/components/Label.scss +6 -0
- package/lib/css/components/Missing.scss +27 -0
- package/lib/css/components/ModalControls.scss +48 -0
- package/lib/css/components/RadioGroup.scss +21 -0
- package/lib/css/components/RosterForLoop.scss +39 -0
- package/lib/css/components/Roundabout.scss +13 -0
- package/lib/css/components/Sequence.scss +10 -0
- package/lib/css/components/Suggester.scss +170 -0
- package/lib/css/components/SuggesterWidget.scss +176 -0
- package/lib/css/components/Table.scss +27 -0
- package/lib/css/components/Textarea.scss +8 -0
- package/lib/css/components/VariableStatus.scss +36 -0
- package/lib/css/main.scss +181 -0
- package/lib/hooks/useSuggesterInfo.js +14 -12
- package/lib/main.css +1063 -0
- package/lib/main.css.map +1 -0
- package/lib/src/components/CheckboxGroup/CheckboxGroup.d.ts +1 -1
- package/lib/src/components/CheckboxOne/CheckboxOne.d.ts +0 -1
- package/lib/src/components/Datepicker/Datepicker.d.ts +0 -1
- package/lib/src/components/Dropdown/Dropdown.d.ts +0 -1
- package/lib/src/components/Duration/Duration.d.ts +0 -1
- package/lib/src/components/Input/Input.d.ts +0 -1
- package/lib/src/components/InputNumber/InputNumber.d.ts +0 -1
- package/lib/src/components/RosterForLoop/RosterForLoop.d.ts +0 -1
- package/lib/src/components/Roundabout/Roundabout.d.ts +0 -1
- package/lib/src/components/Sequence/Sequence.d.ts +1 -2
- package/lib/src/components/Subsequence/Subsequence.d.ts +1 -1
- package/lib/src/components/Suggester/CustomSuggester.d.ts +5 -1
- package/lib/src/components/Suggester/Suggester.d.ts +1 -2
- package/lib/src/components/Textarea/Textarea.d.ts +0 -1
- package/lib/src/components/library.d.ts +3 -3
- package/lib/src/components/shared/Button/Button.d.ts +0 -1
- package/lib/src/components/shared/Button/IconButton.d.ts +0 -1
- package/lib/src/components/shared/Checkbox/CheckboxOption.d.ts +0 -1
- package/lib/src/components/shared/Combobox/Combobox.d.ts +1 -1
- package/lib/src/components/shared/ComponentErrors/ComponentErrors.d.ts +0 -1
- package/lib/src/components/shared/Declarations/Declarations.d.ts +0 -1
- package/lib/src/components/shared/Fieldset/Fieldset.d.ts +0 -1
- package/lib/src/components/shared/Icons/lunatic-icon.d.ts +0 -1
- package/lib/src/components/shared/Label/Label.d.ts +0 -1
- package/lib/src/components/shared/Missing/Missing.d.ts +0 -1
- package/lib/src/components/shared/ModalControls/ModalControls.d.ts +0 -1
- package/lib/src/components/shared/Radio/RadioGroup.d.ts +0 -1
- package/lib/src/components/shared/Table/Table.d.ts +0 -1
- package/lib/src/components/shared/VariableStatus/VariableStatus.d.ts +0 -1
- package/lib/src/components/shared/suggester-loader-widget/dragger/dragger.d.ts +0 -1
- package/lib/src/components/shared/suggester-loader-widget/widget.d.ts +0 -1
- package/lib/src/components/type.d.ts +6 -1
- package/lib/src/hooks/use-track-changes.d.ts +9 -1
- package/lib/src/hooks/useSuggesterInfo.d.ts +1 -1
- package/lib/src/use-lunatic/commons/fill-components/fill-component-required.d.ts +102 -44
- package/lib/src/use-lunatic/commons/fill-components/fill-from-state.d.ts +83 -21
- package/lib/src/use-lunatic/commons/fill-components/fill-iterations.d.ts +47 -36
- package/lib/src/use-lunatic/commons/fill-components/fill-specific-expression.d.ts +158 -46
- package/lib/src/use-lunatic/commons/use-components-from-state.d.ts +1 -1
- package/lib/src/use-lunatic/replace-component-sequence.d.ts +21 -3
- package/lib/src/use-lunatic/type-source.d.ts +51 -42
- package/lib/src/use-lunatic/type.d.ts +4 -4
- package/lib/src/use-lunatic/use-lunatic.d.ts +57 -15
- package/lib/src/utils/variables.d.ts +10 -2
- package/lib/stories/loop/source-roster.json +2 -2
- package/lib/stories/suggester/fakeReferentiel.json +12 -0
- package/lib/stories/suggester/source-option-responses.json +145 -0
- package/lib/stories/suggester/suggester.stories.js +46 -1
- package/lib/use-lunatic/use-lunatic.test.js +8 -7
- package/package.json +2 -2
- package/lib/components/Dropdown/DropdownWritable.js +0 -58
- package/lib/components/Dropdown/renderer/WritableLabelRenderer.js +0 -38
- package/lib/components/Dropdown/renderer/WritableOptionRenderer.js +0 -140
- package/lib/src/components/Dropdown/DropdownWritable.d.ts +0 -17
- package/lib/src/components/Dropdown/renderer/WritableLabelRenderer.d.ts +0 -8
- package/lib/src/components/Dropdown/renderer/WritableOptionRenderer.d.ts +0 -8
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
@mixin preventSelect() {
|
|
2
|
+
-moz-user-select: -moz-none;
|
|
3
|
+
-khtml-user-select: none;
|
|
4
|
+
-webkit-user-select: none;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
@mixin placeholder {
|
|
8
|
+
color: gray;
|
|
9
|
+
@include defaultFont();
|
|
10
|
+
font-size: 15px;
|
|
11
|
+
line-height: 34px;
|
|
12
|
+
vertical-align: middle;
|
|
13
|
+
font-weight: normal;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@mixin defaultFont {
|
|
17
|
+
font-family: 'Roboto', 'Helvetica', 'Arial', sans-serif;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@mixin selection() {
|
|
21
|
+
@include defaultFont();
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.lunatic-combo-box-container {
|
|
25
|
+
position: relative;
|
|
26
|
+
width: 100%;
|
|
27
|
+
|
|
28
|
+
&.default-style {
|
|
29
|
+
--color-combo-box-selected: Cornsilk;
|
|
30
|
+
--color-primary-dark: DarkGreen;
|
|
31
|
+
--color-primary-main: FloralWhite;
|
|
32
|
+
--color-combo-box-background: snow;
|
|
33
|
+
--color-disabled: Gainsboro;
|
|
34
|
+
--color-primary-light: GreenYellow;
|
|
35
|
+
|
|
36
|
+
margin-bottom: 10px;
|
|
37
|
+
.lunatic-combo-box {
|
|
38
|
+
min-height: 30px;
|
|
39
|
+
min-width: 260px;
|
|
40
|
+
width: 100%;
|
|
41
|
+
.lunatic-combo-box-content {
|
|
42
|
+
.lunatic-combo-box-selection {
|
|
43
|
+
border-radius: 5px;
|
|
44
|
+
border: 2px solid var(--color-primary-dark);
|
|
45
|
+
background-color: var(--color-combo-box-background);
|
|
46
|
+
&:hover {
|
|
47
|
+
border-color: var(--color-primary-main);
|
|
48
|
+
}
|
|
49
|
+
.lunatic-combo-box-input {
|
|
50
|
+
height: 34px;
|
|
51
|
+
line-height: 34px;
|
|
52
|
+
font-size: 15px;
|
|
53
|
+
padding-left: 4px;
|
|
54
|
+
@include selection();
|
|
55
|
+
|
|
56
|
+
&::placeholder {
|
|
57
|
+
@include placeholder();
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.lunatic-combo-box-selected {
|
|
62
|
+
height: 42px;
|
|
63
|
+
line-height: 34px;
|
|
64
|
+
background-color: var(--color-combo-box-background);
|
|
65
|
+
border-radius: 5px;
|
|
66
|
+
padding-left: 4px;
|
|
67
|
+
@include selection();
|
|
68
|
+
outline: none;
|
|
69
|
+
overflow-y: hidden;
|
|
70
|
+
display: block;
|
|
71
|
+
@include placeholder();
|
|
72
|
+
|
|
73
|
+
.selection {
|
|
74
|
+
display: inline-block;
|
|
75
|
+
line-height: 34px;
|
|
76
|
+
font-size: 15px;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
&.disabled {
|
|
80
|
+
background-color: var(--color-disabled);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.lunatic-combo-box-panel {
|
|
86
|
+
@include defaultFont();
|
|
87
|
+
height: 0;
|
|
88
|
+
opacity: 0;
|
|
89
|
+
background-color: var(--color-combo-box-background);
|
|
90
|
+
transition: opacity 267ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,
|
|
91
|
+
transform 178ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
|
|
92
|
+
|
|
93
|
+
&.expanded {
|
|
94
|
+
border: solid 1px var(--color-primary-light);
|
|
95
|
+
opacity: 1;
|
|
96
|
+
min-height: 30px;
|
|
97
|
+
height: max-content;
|
|
98
|
+
box-shadow: 0 2px 2px grey;
|
|
99
|
+
border-radius: 4px;
|
|
100
|
+
}
|
|
101
|
+
.lunatic-combo-box-option {
|
|
102
|
+
text-overflow: ellipsis;
|
|
103
|
+
white-space: nowrap;
|
|
104
|
+
overflow: hidden;
|
|
105
|
+
margin-bottom: 0.1em;
|
|
106
|
+
line-height: 2rem;
|
|
107
|
+
display: block;
|
|
108
|
+
|
|
109
|
+
&.selected {
|
|
110
|
+
color: var(--color-primary-dark);
|
|
111
|
+
background-color: var(--color-combo-box-selected);
|
|
112
|
+
}
|
|
113
|
+
&:hover {
|
|
114
|
+
background-color: var(--color-primary-main);
|
|
115
|
+
color: var(--color-combo-box-background);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.lunatic-combo-box-fab {
|
|
124
|
+
position: absolute;
|
|
125
|
+
right: 4px;
|
|
126
|
+
top: 8px;
|
|
127
|
+
z-index: 0;
|
|
128
|
+
&.focused {
|
|
129
|
+
z-index: 1;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.lunatic-icon {
|
|
133
|
+
svg {
|
|
134
|
+
fill: white;
|
|
135
|
+
width: 16px;
|
|
136
|
+
height: 16px;
|
|
137
|
+
margin: auto;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.lunatic-combo-box {
|
|
143
|
+
position: relative;
|
|
144
|
+
z-index: 0;
|
|
145
|
+
|
|
146
|
+
&:focus {
|
|
147
|
+
outline: none;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
&.focused {
|
|
151
|
+
z-index: 1;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.lunatic-combo-box-content {
|
|
155
|
+
position: absolute;
|
|
156
|
+
width: 100%;
|
|
157
|
+
|
|
158
|
+
.lunatic-combo-box-selection {
|
|
159
|
+
position: relative;
|
|
160
|
+
.lunatic-combo-box-input {
|
|
161
|
+
border: none;
|
|
162
|
+
margin: 0;
|
|
163
|
+
padding: 0;
|
|
164
|
+
background-color: transparent;
|
|
165
|
+
&:focus {
|
|
166
|
+
outline: none;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
width: 100%;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.lunatic-combo-box-selected {
|
|
173
|
+
// position: absolute;
|
|
174
|
+
top: 0;
|
|
175
|
+
white-space: nowrap;
|
|
176
|
+
overflow-x: hidden;
|
|
177
|
+
width: 100%;
|
|
178
|
+
display: none;
|
|
179
|
+
&.displayed {
|
|
180
|
+
display: block;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
ul,
|
|
186
|
+
li,
|
|
187
|
+
div,
|
|
188
|
+
span {
|
|
189
|
+
margin: 0;
|
|
190
|
+
padding: 0;
|
|
191
|
+
border: none;
|
|
192
|
+
list-style: none;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.lunatic-combo-box-panel {
|
|
196
|
+
&:focus {
|
|
197
|
+
outline: none;
|
|
198
|
+
}
|
|
199
|
+
.lunatic-combo-box-option {
|
|
200
|
+
white-space: nowrap;
|
|
201
|
+
@include preventSelect();
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
.lunaticDatepickerFields {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: flex-end;
|
|
4
|
+
gap: 1rem;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.lunaticDatepickerField input {
|
|
8
|
+
width: 3.5em;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.lunaticDatepickerFieldLarge input {
|
|
12
|
+
width: 4.5em;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.lunaticDatepickerHint {
|
|
16
|
+
display: block;
|
|
17
|
+
font-weight: 400;
|
|
18
|
+
font-size: .9em;
|
|
19
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
.lunatic-component {
|
|
2
|
+
.lunatic-declarations {
|
|
3
|
+
margin-bottom: 0.4rem;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.declaration-instruction {
|
|
7
|
+
font-style: italic;
|
|
8
|
+
font-size: 80%;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.declaration-statement {
|
|
12
|
+
font-style: italic;
|
|
13
|
+
font-size: 80%;
|
|
14
|
+
color: blue;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.declaration-help {
|
|
18
|
+
font-style: italic;
|
|
19
|
+
font-size: 80%;
|
|
20
|
+
color: green;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.CODECARD {
|
|
24
|
+
font-style: bold;
|
|
25
|
+
font-size: 80%;
|
|
26
|
+
color: grey;
|
|
27
|
+
border: solid 1px grey;
|
|
28
|
+
width: fit-content;
|
|
29
|
+
padding: 1em;
|
|
30
|
+
&:before {
|
|
31
|
+
content: "→ "
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.declaration-message_filter {
|
|
36
|
+
font-size: 100%;
|
|
37
|
+
color: rgb(73, 66, 66);
|
|
38
|
+
&:before {
|
|
39
|
+
content: '→ ';
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
@mixin defaultFont {
|
|
2
|
+
font-family: 'Roboto', 'Helvetica', 'Arial', sans-serif;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
@mixin disableSelect {
|
|
6
|
+
-moz-user-select: none; /* Firefox */
|
|
7
|
+
-ms-user-select: none; /* Internet Explorer */
|
|
8
|
+
-khtml-user-select: none; /* KHTML browsers (e.g. Konqueror) */
|
|
9
|
+
-webkit-user-select: none; /* Chrome, Safari, and Opera */
|
|
10
|
+
-webkit-touch-callout: none; /* Disable Android and iOS callouts*/
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.lunatic-component {
|
|
14
|
+
.lunatic-dropdown {
|
|
15
|
+
.lunatic-dropdown-option {
|
|
16
|
+
text-overflow: ellipsis;
|
|
17
|
+
white-space: nowrap;
|
|
18
|
+
overflow: hidden;
|
|
19
|
+
margin-bottom: 0.1em;
|
|
20
|
+
line-height: 2rem;
|
|
21
|
+
display: block;
|
|
22
|
+
|
|
23
|
+
&.selected {
|
|
24
|
+
color: var(--color-primary-dark);
|
|
25
|
+
background-color: goldenrod;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&:hover {
|
|
29
|
+
background-color: var(--color-primary-main);
|
|
30
|
+
color: white;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.prefix {
|
|
34
|
+
color: red;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
.lunatic-icon {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
// floating action button
|
|
7
|
+
.lunatic-fab {
|
|
8
|
+
width: 32px;
|
|
9
|
+
height: 32px;
|
|
10
|
+
border-radius: 50%;
|
|
11
|
+
margin: 0;
|
|
12
|
+
padding: 0;
|
|
13
|
+
outline: inherit;
|
|
14
|
+
border: none;
|
|
15
|
+
background-color: royalblue;
|
|
16
|
+
box-shadow: 0px 3px 5px -1px rgb(0 0 0 / 20%),
|
|
17
|
+
0px 6px 10px 0px rgb(0 0 0 / 14%), 0px 1px 18px 0px rgb(0 0 0 / 12%);
|
|
18
|
+
|
|
19
|
+
&:hover {
|
|
20
|
+
cursor: pointer;
|
|
21
|
+
background-color: navy;
|
|
22
|
+
transition: background-color 1s;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&.mini {
|
|
26
|
+
width: 18px;
|
|
27
|
+
height: 18px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&:focus {
|
|
31
|
+
border: solid 1px black;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&:disabled {
|
|
35
|
+
cursor: default;
|
|
36
|
+
background-color: darkgray;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
.lunatic-component {
|
|
2
|
+
.lunatic-input,
|
|
3
|
+
.lunatic-datepicker,
|
|
4
|
+
.lunatic-textarea,
|
|
5
|
+
.lunatic-input-number {
|
|
6
|
+
label {
|
|
7
|
+
font-size: 12px;
|
|
8
|
+
.label-description {
|
|
9
|
+
font-size: 12px;
|
|
10
|
+
font-weight: lighter;
|
|
11
|
+
display: block;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
input {
|
|
15
|
+
font: inherit;
|
|
16
|
+
border: 0;
|
|
17
|
+
border-bottom: 0.125rem double rgba(0, 0, 0, 0.42);
|
|
18
|
+
margin: 0;
|
|
19
|
+
padding: 0.375rem 0 0.375rem 0.4375rem;
|
|
20
|
+
display: inline-block;
|
|
21
|
+
min-width: 0;
|
|
22
|
+
box-sizing: content-box;
|
|
23
|
+
background: none;
|
|
24
|
+
&:focus {
|
|
25
|
+
outline: none;
|
|
26
|
+
border-bottom: 0.125rem solid var(--color-primary-main);
|
|
27
|
+
}
|
|
28
|
+
&:hover {
|
|
29
|
+
border-bottom: 0.125rem solid black;
|
|
30
|
+
}
|
|
31
|
+
&:read-only {
|
|
32
|
+
background-color: var(--color-disabled);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.warning {
|
|
37
|
+
box-sizing: border-box;
|
|
38
|
+
border: solid 2px var(--color-error);
|
|
39
|
+
background-color: var(--color-error);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
.missing-buttons {
|
|
2
|
+
margin-top: 1em;
|
|
3
|
+
}
|
|
4
|
+
.missing-buttons .button-lunatic {
|
|
5
|
+
width: 4em;
|
|
6
|
+
font-size: 1em;
|
|
7
|
+
font-weight: normal;
|
|
8
|
+
}
|
|
9
|
+
.missing-buttons .button-lunatic {
|
|
10
|
+
background-color: var(--color-very-very-light);
|
|
11
|
+
color: var(--color-primary-dark);
|
|
12
|
+
}
|
|
13
|
+
.missing-buttons .button-lunatic:not(:disabled):hover {
|
|
14
|
+
background-color: white;
|
|
15
|
+
color: var(--color-primary-main);
|
|
16
|
+
}
|
|
17
|
+
.missing-buttons .button-lunatic:disabled {
|
|
18
|
+
opacity: .5;
|
|
19
|
+
}
|
|
20
|
+
.missing-button-active .button-lunatic {
|
|
21
|
+
background-color: var(--color-primary-dark);
|
|
22
|
+
color: var(--color-very-very-light);
|
|
23
|
+
}
|
|
24
|
+
.missing-buttons .missing-button-active .button-lunatic:hover {
|
|
25
|
+
background-color: var(--color-primary-main);
|
|
26
|
+
color: white;
|
|
27
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
.lunatic-modal-controls {
|
|
2
|
+
position: fixed;
|
|
3
|
+
top: 0;
|
|
4
|
+
left: 0;
|
|
5
|
+
width: 100%;
|
|
6
|
+
height: 100%;
|
|
7
|
+
background-color: rgba(50, 50, 50, 0.5);
|
|
8
|
+
z-index: 101;
|
|
9
|
+
|
|
10
|
+
.modal-content {
|
|
11
|
+
background-color: snow;
|
|
12
|
+
height: fit-content;
|
|
13
|
+
width: 50%;
|
|
14
|
+
margin: auto;
|
|
15
|
+
margin-top: 38vh;
|
|
16
|
+
display: flex;
|
|
17
|
+
flex-direction: column;
|
|
18
|
+
border-radius: 8px;
|
|
19
|
+
overflow-wrap: break-word;
|
|
20
|
+
.body {
|
|
21
|
+
color: black;
|
|
22
|
+
font-size: 16px;
|
|
23
|
+
font-family: 'Roboto', 'Helvetica', 'Arial', sans-serif;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.modal-buttons {
|
|
27
|
+
align-self: end;
|
|
28
|
+
margin: 0 0.2em 0.2em 0;
|
|
29
|
+
:first-child {
|
|
30
|
+
margin-right: 0.5em;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.errors {
|
|
36
|
+
ul,
|
|
37
|
+
li,
|
|
38
|
+
div,
|
|
39
|
+
span {
|
|
40
|
+
border: none;
|
|
41
|
+
list-style: none;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
ul {
|
|
45
|
+
margin: 1em;
|
|
46
|
+
padding: 0;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
.lunatic-radio-group {
|
|
2
|
+
legend {
|
|
3
|
+
.label-description {
|
|
4
|
+
font-weight: lighter;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
.lunatic-input-radio {
|
|
8
|
+
display: flex;
|
|
9
|
+
|
|
10
|
+
.label-description {
|
|
11
|
+
font-weight: lighter;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.lunatic-label {
|
|
15
|
+
font-weight: normal;
|
|
16
|
+
display: flex;
|
|
17
|
+
align-items: center;
|
|
18
|
+
gap: 0.5em;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
// .lunatic-component {
|
|
2
|
+
// .table-lunatic {
|
|
3
|
+
// table-layout: fixed;
|
|
4
|
+
// border-collapse: collapse;
|
|
5
|
+
// margin-top: 0.3em;
|
|
6
|
+
// margin-bottom: 0.3em;
|
|
7
|
+
// & td,
|
|
8
|
+
// th {
|
|
9
|
+
// border: 0.15em solid var(--color-primary-dark);
|
|
10
|
+
// padding: 0.2em;
|
|
11
|
+
// }
|
|
12
|
+
// & td {
|
|
13
|
+
// .field,
|
|
14
|
+
// .field-with-tooltip {
|
|
15
|
+
// display: flex;
|
|
16
|
+
// justify-content: center;
|
|
17
|
+
// align-items: center;
|
|
18
|
+
// }
|
|
19
|
+
// }
|
|
20
|
+
// }
|
|
21
|
+
|
|
22
|
+
// .table-lunatic .tooltip-lunatic img {
|
|
23
|
+
// height: 20px;
|
|
24
|
+
// width: 20px;
|
|
25
|
+
// }
|
|
26
|
+
// }
|
|
27
|
+
|
|
28
|
+
.lunatic-table {
|
|
29
|
+
table-layout: fixed;
|
|
30
|
+
border-collapse: collapse;
|
|
31
|
+
margin-top: 0.3em;
|
|
32
|
+
margin-bottom: 0.3em;
|
|
33
|
+
.lunatic-table-thead {
|
|
34
|
+
.lunatic-table-th {
|
|
35
|
+
border: 0.15em solid var(--color-primary-dark);
|
|
36
|
+
padding: 0.2em;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|