@vitrosoftware/common-ui-ts 1.1.36 → 1.1.37
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/css/std/controls/action-handler/action-handler.css +1 -0
- package/css/std/controls/button/button.css +1 -1
- package/css/std/controls/criterion/criterion.css +217 -0
- package/css/std/controls/dropdown-button/dropdown-button.css +0 -2
- package/css/std/controls/field-iterator/field-iterator.css +17 -0
- package/css/std/controls/lookup-picker/lookup-picker-selected-item.css +37 -1
- package/css/std/controls/lookup-picker/lookup-picker-value-list.css +1 -1
- package/css/std/controls/search/checkbox-list.css +23 -0
- package/css/std/controls/search/input.css +93 -0
- package/css/std/controls/search/search.css +76 -0
- package/css/std/controls/tab-group/tab-group.css +1 -1
- package/css/std/controls/uploader/uploader.css +1 -1
- package/dist/constants/Event.d.ts +1 -0
- package/dist/controls/Criterion/ConditionSelect.d.ts +13 -0
- package/dist/controls/Criterion/Criterion.d.ts +27 -0
- package/dist/controls/DropdownButton/DropdownButton.d.ts +3 -2
- package/dist/controls/FieldIterator/FieldIterator.d.ts +22 -0
- package/dist/controls/Search/CheckboxList.d.ts +12 -0
- package/dist/controls/Search/Filter.d.ts +25 -0
- package/dist/controls/Search/Input.d.ts +16 -0
- package/dist/controls/Search/Search.d.ts +32 -0
- package/dist/controls/Search/SearchConstants.d.ts +4 -0
- package/dist/controls/Search/SearchCriterion.d.ts +7 -0
- package/dist/controls/TableView/TableView.d.ts +3 -0
- package/dist/controls/TableView/TableViewConstants.d.ts +4 -0
- package/dist/controls/TableView/TableViewContext.d.ts +3 -0
- package/dist/controls/TableView/TreeGridTableViewContextImpl.d.ts +3 -0
- package/dist/index.css +481 -8
- package/dist/index.d.ts +7 -0
- package/dist/index.js +818 -34
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
.vitro-criterion-container {
|
|
2
|
+
width: 100%;
|
|
3
|
+
position: relative;
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
margin-bottom: 28px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.vitro-criterion-container:first-child {
|
|
10
|
+
margin-top: 10px;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.vitro-criterion-container:last-child {
|
|
14
|
+
margin-bottom: 18px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.vitro-block:last-child .vitro-criterion-container {
|
|
18
|
+
margin-bottom: 18px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.vitro-control {
|
|
22
|
+
position: relative;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.vitro-label {
|
|
26
|
+
padding: 0 6px;
|
|
27
|
+
background: #fff;
|
|
28
|
+
z-index: 1000;
|
|
29
|
+
position: absolute;
|
|
30
|
+
left: 10px;
|
|
31
|
+
top: -10px;
|
|
32
|
+
display: flex;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.vitro-operator-select-container {
|
|
36
|
+
min-width: 57px;
|
|
37
|
+
margin-right: 8px;
|
|
38
|
+
display: flex;
|
|
39
|
+
align-items: center;
|
|
40
|
+
justify-content: flex-end;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.vitro-operator-select {
|
|
44
|
+
cursor: pointer;
|
|
45
|
+
padding: 4px 6px;
|
|
46
|
+
line-height: 16px;
|
|
47
|
+
font-size: 12px;
|
|
48
|
+
border-radius: 4px;
|
|
49
|
+
background: #F7F9FC;
|
|
50
|
+
display: flex;
|
|
51
|
+
align-items: center;
|
|
52
|
+
justify-content: center;
|
|
53
|
+
position: relative;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.vitro-operator-select > div {
|
|
57
|
+
display: inline-block;
|
|
58
|
+
line-height: 16px;
|
|
59
|
+
font-size: 12px;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.vitro-operator-select::after {
|
|
63
|
+
content: '';
|
|
64
|
+
display: inline-block;
|
|
65
|
+
width: 16px;
|
|
66
|
+
height: 16px;
|
|
67
|
+
margin-left: 2px;
|
|
68
|
+
background-position: center;
|
|
69
|
+
background-size: 100%;
|
|
70
|
+
/* collapse-bottom.svg URL-encoder for SVG */
|
|
71
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M19.5 9L12 16.5L4.5 9' stroke='%234A556C' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.vitro-operator-list {
|
|
75
|
+
position: absolute;
|
|
76
|
+
z-index: 10;
|
|
77
|
+
top: calc(100% + 2px);
|
|
78
|
+
right: 0;
|
|
79
|
+
width: fit-content;
|
|
80
|
+
min-width: 100%;
|
|
81
|
+
overflow: hidden;
|
|
82
|
+
border-radius: 4px;
|
|
83
|
+
background: #fff;
|
|
84
|
+
list-style-type: none;
|
|
85
|
+
margin: 0;
|
|
86
|
+
padding: 0;
|
|
87
|
+
box-shadow: 0px 4px 14px 0px rgba(0, 0, 0, 0.18), 0px 0px 4px 0px rgba(0, 0, 0, 0.14);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.vitro-operator-list li {
|
|
91
|
+
padding: 8px 12px;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.vitro-operator-list li:hover,
|
|
95
|
+
.vitro-operator-list li:active {
|
|
96
|
+
background: #F3F8FF;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.vitro-control {
|
|
100
|
+
margin-bottom: 0px;
|
|
101
|
+
flex: 1 1;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.vitro-button-cancel {
|
|
105
|
+
width: 20px;
|
|
106
|
+
height: 20px;
|
|
107
|
+
min-width: 20px;
|
|
108
|
+
margin-left: 2px;
|
|
109
|
+
margin-top: -10px;
|
|
110
|
+
align-self: flex-start;
|
|
111
|
+
border: none;
|
|
112
|
+
background-color: transparent;
|
|
113
|
+
background-size: 100%;
|
|
114
|
+
background-position: center;
|
|
115
|
+
/* cancel-grey.svg URL-encoder for SVG */
|
|
116
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5.63281 14.3711L10.002 10.002L14.3711 14.3711M14.3711 5.63281L10.0011 10.002L5.63281 5.63281' stroke='%238E98A3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.vitro-focus .vitro-label {
|
|
120
|
+
color: #3274E0;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.vitro-error .vitro-label {
|
|
124
|
+
color: #D13438;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.vitro-condition-select {
|
|
128
|
+
padding: 0 6px 0 2px;
|
|
129
|
+
position: absolute;
|
|
130
|
+
top: -10px;
|
|
131
|
+
left: 0;
|
|
132
|
+
z-index: 10000;
|
|
133
|
+
background: #fff;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.vitro-condition-select > div {
|
|
137
|
+
border-radius: 16px;
|
|
138
|
+
background: #F1F3F5;
|
|
139
|
+
padding: 0 6px 0 8px;
|
|
140
|
+
display: flex;
|
|
141
|
+
align-items: center;
|
|
142
|
+
font-size: 12px;
|
|
143
|
+
line-height: 16px;
|
|
144
|
+
cursor: pointer;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.vitro-condition-select > div::after {
|
|
148
|
+
content: '';
|
|
149
|
+
display: inline-block;
|
|
150
|
+
margin-left: 4px;
|
|
151
|
+
height: 16px;
|
|
152
|
+
width: 16px;
|
|
153
|
+
background-size: 100%;
|
|
154
|
+
background-position: center;
|
|
155
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M13 6L8 11L3 6' stroke='%234A556C' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.vitro-icon {
|
|
159
|
+
height: 16px;
|
|
160
|
+
width: 16px;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.vitro-condition-list {
|
|
164
|
+
position: absolute;
|
|
165
|
+
z-index: 1000000;
|
|
166
|
+
top: 14px;
|
|
167
|
+
left: 0;
|
|
168
|
+
width: fit-content;
|
|
169
|
+
min-width: 270px;
|
|
170
|
+
border-radius: 4px;
|
|
171
|
+
background: #fff;
|
|
172
|
+
list-style-type: none;
|
|
173
|
+
margin: 0;
|
|
174
|
+
padding: 0;
|
|
175
|
+
box-shadow: 0px 4px 14px 0px rgba(0, 0, 0, 0.18), 0px 0px 4px 0px rgba(0, 0, 0, 0.14);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.vitro-condition-list::before {
|
|
179
|
+
content: '';
|
|
180
|
+
display: block;
|
|
181
|
+
height: 11px;
|
|
182
|
+
width: 16px;
|
|
183
|
+
background-position: center;
|
|
184
|
+
background-size: 100%;
|
|
185
|
+
background-repeat: no-repeat;
|
|
186
|
+
position: absolute;
|
|
187
|
+
left: 24px;
|
|
188
|
+
top: -11px;
|
|
189
|
+
/* dropdown-arrow.svg URL-encoder for SVG */
|
|
190
|
+
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 11' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.31554 1.65838L0.382812 11H15.6249L9.69214 1.65838C8.90651 0.421336 7.10117 0.421335 6.31554 1.65838Z' fill='white'/%3E%3C/svg%3E%0A");
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.vitro-condition-list li {
|
|
194
|
+
padding: 8px 12px;
|
|
195
|
+
cursor: pointer;
|
|
196
|
+
display: flex;
|
|
197
|
+
align-items: center;
|
|
198
|
+
grid-gap: 12px;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.vitro-condition-list li:first-child {
|
|
202
|
+
border-radius: 4px 4px 0 0;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.vitro-condition-list li:last-child {
|
|
206
|
+
border-radius: 0 0 4px 4px;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.vitro-condition-list li:hover,
|
|
210
|
+
.vitro-condition-list li:active {
|
|
211
|
+
background: #F3F8FF;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.vitro-condition-list .vitro-icon {
|
|
215
|
+
height: 20px;
|
|
216
|
+
width: 20px;
|
|
217
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
:global(.vitro-inline) {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
flex: 1 1;
|
|
4
|
+
min-width: 180px;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
:global(.vitro-inline) > div {
|
|
8
|
+
width: 100%;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
:global(.vitro-block) {
|
|
12
|
+
width: 100%;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
:global(.vitro-block):nth-child(2) {
|
|
16
|
+
margin-top: 8px;
|
|
17
|
+
}
|
|
@@ -1,9 +1,45 @@
|
|
|
1
|
+
.vitro-selected-item-multi,
|
|
1
2
|
.vitro-selected-item {
|
|
2
3
|
display: inline-flex;
|
|
3
4
|
width: fit-content;
|
|
4
|
-
margin: 0 6px 0 0;
|
|
5
5
|
white-space: nowrap;
|
|
6
6
|
overflow: hidden;
|
|
7
7
|
text-overflow: ellipsis;
|
|
8
8
|
align-items: center;
|
|
9
9
|
}
|
|
10
|
+
|
|
11
|
+
.vitro-selected-item-multi > span,
|
|
12
|
+
.vitro-selected-item > span {
|
|
13
|
+
overflow: hidden;
|
|
14
|
+
text-overflow: ellipsis;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.vitro-selected-item {
|
|
18
|
+
margin-right: 6px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.vitro-selected-item-multi {
|
|
22
|
+
background: #F7F9FC;
|
|
23
|
+
border-radius: 4px;
|
|
24
|
+
padding: 2px 4px;
|
|
25
|
+
margin-right: 12px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.vitro-selected-item-multi:last-child {
|
|
29
|
+
margin-right: 0;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.vitro-button-close {
|
|
33
|
+
width: 24px;
|
|
34
|
+
height: 24px;
|
|
35
|
+
min-width: 24px;
|
|
36
|
+
margin-left: 8px;
|
|
37
|
+
background-size: 100%;
|
|
38
|
+
background-position: center;
|
|
39
|
+
background-repeat: no-repeat;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.vitro-button-close {
|
|
43
|
+
/* close.svg URL-encoder for SVG */
|
|
44
|
+
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='iconoir:cancel'%3E%3Cpath id='Vector' d='M6.75781 17.2438L12.0008 12.0008L17.2438 17.2438M17.2438 6.75781L11.9998 12.0008L6.75781 6.75781' stroke='%234A556C' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3C/svg%3E%0A");
|
|
45
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
.vitro-checkbox-list {
|
|
2
|
+
border-radius: 4px;
|
|
3
|
+
background: #fff;
|
|
4
|
+
padding: 12px 0 0 12px;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.vitro-checkbox-list .vitro-control {
|
|
8
|
+
margin-bottom: 8px;
|
|
9
|
+
margin-right: 12px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.vitro-checkbox-list .vitro-checkbox {
|
|
13
|
+
margin-bottom: 4px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.vitro-checkbox:last-child,
|
|
17
|
+
.vitro-checkbox-list span {
|
|
18
|
+
margin-bottom: 8px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.vitro-checkbox-list span {
|
|
22
|
+
display: block;
|
|
23
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
.vitro-control {
|
|
2
|
+
height: 32px;
|
|
3
|
+
border-radius: 4px;
|
|
4
|
+
border: 1px solid #4A556C;
|
|
5
|
+
padding: 4px 8px;
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.vitro-control.vitro-active {
|
|
11
|
+
border: 1px solid #C0CAD5;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.vitro-control.vitro-focus {
|
|
15
|
+
border: 1px solid #3274E0;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.vitro-control input {
|
|
19
|
+
border: none;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.vitro-control input::placeholder {
|
|
23
|
+
color: #8E98A3;
|
|
24
|
+
font-size: 14px;
|
|
25
|
+
line-height: 16px;
|
|
26
|
+
font-weight: 400 !important;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.vitro-search-value-list {
|
|
30
|
+
display: flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
flex: 1 1;
|
|
33
|
+
overflow: hidden;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.vitro-search-value-list::before {
|
|
37
|
+
content: '';
|
|
38
|
+
width: 24px;
|
|
39
|
+
height: 24px;
|
|
40
|
+
flex-shrink: 0;
|
|
41
|
+
background-size: 100%;
|
|
42
|
+
background-position: center;
|
|
43
|
+
margin-right: 8px;
|
|
44
|
+
/* search-grey.svg URL-encoder for SVG */
|
|
45
|
+
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='circum:search'%3E%3Cpath id='Vector' d='M18.3236 18.8832C18.6858 19.2434 19.2449 18.6875 18.8827 18.3351L15.9297 15.3909C16.9656 14.2512 17.5381 12.7692 17.5361 11.233C17.5361 7.79544 14.725 5 11.2681 5C7.81118 5 5 7.79544 5 11.233C5 14.6705 7.81118 17.4659 11.2681 17.4659C12.8272 17.4659 14.2682 16.8943 15.3707 15.9468L18.3236 18.8832ZM5.78666 11.233C5.78666 8.22611 8.25136 5.78304 11.2673 5.78304C14.2911 5.78304 16.7479 8.22611 16.7479 11.233C16.7479 14.2398 14.2911 16.6829 11.2673 16.6829C8.25136 16.6829 5.78666 14.2398 5.78666 11.233Z' fill='%238E98A3'/%3E%3C/g%3E%3C/svg%3E%0A");
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.vitro-active .vitro-search-value-list::before {
|
|
49
|
+
/* search.svg URL-encoder for SVG */
|
|
50
|
+
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='circum:search'%3E%3Cpath id='Vector' d='M18.3236 18.8832C18.6858 19.2434 19.2449 18.6875 18.8827 18.3351L15.9297 15.3909C16.9656 14.2512 17.5381 12.7692 17.5361 11.233C17.5361 7.79544 14.725 5 11.2681 5C7.81118 5 5 7.79544 5 11.233C5 14.6705 7.81118 17.4659 11.2681 17.4659C12.8272 17.4659 14.2682 16.8943 15.3707 15.9468L18.3236 18.8832ZM5.78666 11.233C5.78666 8.22611 8.25136 5.78304 11.2673 5.78304C14.2911 5.78304 16.7479 8.22611 16.7479 11.233C16.7479 14.2398 14.2911 16.6829 11.2673 16.6829C8.25136 16.6829 5.78666 14.2398 5.78666 11.233Z' fill='%23222D44'/%3E%3C/g%3E%3C/svg%3E");
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.vitro-button-cancel,
|
|
54
|
+
.vitro-button-settings,
|
|
55
|
+
.vitro-button-cancel:hover,
|
|
56
|
+
.vitro-button-settings:hover {
|
|
57
|
+
width: 24px;
|
|
58
|
+
height: 24px;
|
|
59
|
+
flex-shrink: 0;
|
|
60
|
+
border: none;
|
|
61
|
+
background-size: 100%;
|
|
62
|
+
background-position: center;
|
|
63
|
+
margin-left: 8px;
|
|
64
|
+
background-color: #fff;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.vitro-button-settings {
|
|
68
|
+
border-radius: 4px;
|
|
69
|
+
/* search-settings.svg URL-encoder for SVG */
|
|
70
|
+
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='iconamoon:options-thin'%3E%3Cg id='Group'%3E%3Cpath id='Vector' d='M5.60156 8.80469H12.8016M16.0016 8.80469H18.4016M11.2016 15.2047H18.4016M5.60156 15.2047H8.00156' stroke='%23222D44' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath id='Vector_2' d='M9.6 16.8016C10.4837 16.8016 11.2 16.0852 11.2 15.2016C11.2 14.3179 10.4837 13.6016 9.6 13.6016C8.71634 13.6016 8 14.3179 8 15.2016C8 16.0852 8.71634 16.8016 9.6 16.8016Z' stroke='%23222D44'/%3E%3Cpath id='Vector_3' d='M14.4047 10.4031C15.2883 10.4031 16.0047 9.68678 16.0047 8.80313C16.0047 7.91947 15.2883 7.20312 14.4047 7.20312C13.521 7.20312 12.8047 7.91947 12.8047 8.80313C12.8047 9.68678 13.521 10.4031 14.4047 10.4031Z' stroke='%23222D44'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E%0A");
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.vitro-button-settings.vitro-active,
|
|
74
|
+
.vitro-button-settings:hover {
|
|
75
|
+
background-color: #DCEEFF;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.vitro-button-cancel {
|
|
79
|
+
/* cancel-black.svg URL-encoder for SVG */
|
|
80
|
+
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.75781 17.2438L12.0008 12.0008L17.2438 17.2438M17.2438 6.75781L11.9998 12.0008L6.75781 6.75781' stroke='%23222D44' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.vitro-search-value {
|
|
84
|
+
border-radius: 4px;
|
|
85
|
+
background: #F7F9FC;
|
|
86
|
+
padding: 4px;
|
|
87
|
+
font-size: 14px;
|
|
88
|
+
line-height: 16px;
|
|
89
|
+
margin-right: 4px;
|
|
90
|
+
white-space: nowrap;
|
|
91
|
+
overflow: hidden;
|
|
92
|
+
text-overflow: ellipsis;
|
|
93
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
.vitro-search {
|
|
2
|
+
position: relative;
|
|
3
|
+
align-self: baseline;
|
|
4
|
+
margin-right: 16px;
|
|
5
|
+
margin-left: auto;
|
|
6
|
+
max-width: 50%;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.vitro-settings-dialog {
|
|
10
|
+
border-radius: 4px;
|
|
11
|
+
background: #fff;
|
|
12
|
+
box-shadow: 0px 4px 14px 0px rgba(0, 0, 0, 0.18), 0px 0px 4px 0px rgba(0, 0, 0, 0.14);
|
|
13
|
+
position: absolute;
|
|
14
|
+
top: 36px;
|
|
15
|
+
right: 0;
|
|
16
|
+
z-index: 10000001;
|
|
17
|
+
padding: 24px 0 16px 12px;
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.vitro-filter {
|
|
23
|
+
min-width: 502px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.vitro-filter :global(.ps) {
|
|
27
|
+
overflow: visible !important;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.vitro-add-field {
|
|
31
|
+
position: relative;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.vitro-add-field-button,
|
|
35
|
+
.vitro-add-field-button:hover,
|
|
36
|
+
.vitro-add-field-button:active {
|
|
37
|
+
font-family: 'InterRegular' !important;
|
|
38
|
+
background: #fff !important;
|
|
39
|
+
color: #326AD6 !important;
|
|
40
|
+
margin-left: 66px;
|
|
41
|
+
padding: 0 !important;
|
|
42
|
+
min-width: unset !important;
|
|
43
|
+
height: 16px !important;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.vitro-add-field-dialog {
|
|
47
|
+
position: absolute;
|
|
48
|
+
z-index: 100;
|
|
49
|
+
top: 32px;
|
|
50
|
+
left: 0;
|
|
51
|
+
border-radius: 4px;
|
|
52
|
+
box-shadow: 0px 4px 14px 0px rgba(0, 0, 0, 0.18), 0px 0px 4px 0px rgba(0, 0, 0, 0.14);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.vitro-add-field-dialog :global(.ps) > div:first-child {
|
|
56
|
+
max-height: 204px;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.vitro-footer {
|
|
60
|
+
display: flex;
|
|
61
|
+
grid-gap: 12px;
|
|
62
|
+
justify-content: flex-end;
|
|
63
|
+
padding: 0 24px;
|
|
64
|
+
margin-top: auto;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.vitro-button-cancel {
|
|
68
|
+
background: #fff !important;
|
|
69
|
+
color: #222D44 !important;
|
|
70
|
+
font-family: 'InterRegular' !important;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.vitro-button-cancel:hover,
|
|
74
|
+
.vitro-button-cancel:active {
|
|
75
|
+
background: #F3F8FF !important;
|
|
76
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface ConditionSelectProps {
|
|
3
|
+
itemList: {
|
|
4
|
+
type: number;
|
|
5
|
+
text: string;
|
|
6
|
+
imageUrl?: string;
|
|
7
|
+
imageHoverUrl?: string;
|
|
8
|
+
}[];
|
|
9
|
+
onSelect: (condition: any) => any;
|
|
10
|
+
translateX: number;
|
|
11
|
+
}
|
|
12
|
+
export declare const ConditionSelect: (props: ConditionSelectProps) => JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SearchCriterion } from '../Search/SearchCriterion';
|
|
3
|
+
interface CriterionProps {
|
|
4
|
+
label: string;
|
|
5
|
+
operatorList: {
|
|
6
|
+
type: number;
|
|
7
|
+
text: string;
|
|
8
|
+
}[];
|
|
9
|
+
conditionList: {
|
|
10
|
+
type: number;
|
|
11
|
+
text: string;
|
|
12
|
+
imageUrl?: string;
|
|
13
|
+
imageHoverUrl?: string;
|
|
14
|
+
}[];
|
|
15
|
+
onChange: (value: SearchCriterion, name: string) => any;
|
|
16
|
+
onDelete: (name: string) => any;
|
|
17
|
+
className?: string;
|
|
18
|
+
isShowOperatorSelect: boolean;
|
|
19
|
+
content: {
|
|
20
|
+
component: React.FunctionComponent<any>;
|
|
21
|
+
props: {
|
|
22
|
+
[key: string]: any;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export declare const Criterion: (props: CriterionProps) => JSX.Element;
|
|
27
|
+
export {};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { DropdownItem } from './DropdownItem';
|
|
3
3
|
interface DropdownButtonProps {
|
|
4
4
|
itemList: DropdownItem[];
|
|
5
|
-
title?: string;
|
|
5
|
+
title?: string | React.ReactNode;
|
|
6
6
|
isIgnoreOverflow?: boolean;
|
|
7
|
+
isFlip?: boolean;
|
|
7
8
|
onToggle?: (state: any, e: any) => any;
|
|
8
9
|
className?: string;
|
|
9
10
|
flip?: boolean;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import '../../../css/std/controls/field-iterator/field-iterator.css';
|
|
3
|
+
interface FieldIteratorProps {
|
|
4
|
+
fieldList: any[];
|
|
5
|
+
componentMap: {
|
|
6
|
+
name: string;
|
|
7
|
+
value: React.FunctionComponent<any>;
|
|
8
|
+
}[];
|
|
9
|
+
rowFieldList?: string[];
|
|
10
|
+
fieldValueMap?: Map<string, any>;
|
|
11
|
+
changedFieldValueMap?: Map<string, any>;
|
|
12
|
+
isClearChangedFieldValueMap?: boolean;
|
|
13
|
+
onChange: (changedFieldValueMap: Map<string, any>, saveStatus?: {
|
|
14
|
+
isSaving: boolean;
|
|
15
|
+
}) => any;
|
|
16
|
+
errorControlList?: {
|
|
17
|
+
fieldName: string;
|
|
18
|
+
message: string;
|
|
19
|
+
}[];
|
|
20
|
+
}
|
|
21
|
+
export declare const FieldIterator: (props: FieldIteratorProps) => JSX.Element;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface CheckboxListProps {
|
|
3
|
+
itemList: {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
value?: boolean;
|
|
7
|
+
}[];
|
|
8
|
+
onChange?: (selectedItemList: string[]) => any;
|
|
9
|
+
isAllSelected?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const CheckboxList: (props: CheckboxListProps) => JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface FilterProps {
|
|
3
|
+
fieldList: any[];
|
|
4
|
+
componentMap: {
|
|
5
|
+
name: string;
|
|
6
|
+
value: React.FunctionComponent<any>;
|
|
7
|
+
}[];
|
|
8
|
+
fieldValueMap?: Map<string, any>;
|
|
9
|
+
onChange: (changedFieldValueMap: Map<string, any>, saveStatus?: {
|
|
10
|
+
isSaving: boolean;
|
|
11
|
+
}) => any;
|
|
12
|
+
operatorList: {
|
|
13
|
+
type: number;
|
|
14
|
+
text: string;
|
|
15
|
+
}[];
|
|
16
|
+
conditionList: {
|
|
17
|
+
type: number;
|
|
18
|
+
text: string;
|
|
19
|
+
imageUrl?: string;
|
|
20
|
+
imageHoverUrl?: string;
|
|
21
|
+
}[];
|
|
22
|
+
onDeleteField: (id: string) => any;
|
|
23
|
+
}
|
|
24
|
+
export declare const Filter: (props: FilterProps) => JSX.Element;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SearchCriterion } from '../Search/SearchCriterion';
|
|
3
|
+
interface InputProps {
|
|
4
|
+
valueList?: SearchCriterion[];
|
|
5
|
+
textValue?: string;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
onSettingsClick?: (active: boolean) => any;
|
|
8
|
+
onCancel: () => any;
|
|
9
|
+
onEnter: (value?: string) => any;
|
|
10
|
+
onChange?: (value: any) => any;
|
|
11
|
+
isShowSettings?: boolean;
|
|
12
|
+
isSettingsActive?: boolean;
|
|
13
|
+
className?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const Input: (props: InputProps) => JSX.Element;
|
|
16
|
+
export {};
|