@eturnity/eturnity_reusable_components 7.35.1-EPDM-10620.6 → 7.35.1-EPDM-10620.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/package.json
CHANGED
@@ -15,27 +15,30 @@
|
|
15
15
|
>
|
16
16
|
{{ item.name }}
|
17
17
|
</ListItem>
|
18
|
-
<
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
18
|
+
<IconContainer @click="expandOptions">
|
19
|
+
<ButtonContainer
|
20
|
+
v-if="optionsList.length > optionLimit || hasComponent"
|
21
|
+
name="more_options,_tool_tips"
|
22
|
+
>
|
23
|
+
<DotItem />
|
24
|
+
<DotItem />
|
25
|
+
<DotItem />
|
26
|
+
</ButtonContainer>
|
27
|
+
</IconContainer>
|
27
28
|
</ListContainer>
|
28
29
|
<EmptyText v-if="!optionsList.length">
|
29
30
|
{{ $gettext('no_batch_actions_available') }}
|
30
31
|
</EmptyText>
|
31
|
-
<
|
32
|
-
<
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
32
|
+
<CloseContainer>
|
33
|
+
<IconContainer @click="$emit('on-close')">
|
34
|
+
<Icon
|
35
|
+
color="white"
|
36
|
+
cursor="pointer"
|
37
|
+
name="close_for_modals,_tool_tips"
|
38
|
+
size="14px"
|
39
|
+
/>
|
40
|
+
</IconContainer>
|
41
|
+
</CloseContainer>
|
39
42
|
</BoxContainer>
|
40
43
|
</PageContainer>
|
41
44
|
<CenterPageContainer v-else>
|
@@ -60,14 +63,9 @@
|
|
60
63
|
:key="item.type"
|
61
64
|
:disabled="item.disabled || false"
|
62
65
|
:hover-color="item.hoverColor"
|
63
|
-
@click="
|
64
|
-
!item?.component && !item.disabled && $emit('on-' + item.type)
|
65
|
-
"
|
66
|
+
@click="handleExpandedOptionClick(item)"
|
66
67
|
>
|
67
|
-
<ListItemWrapper
|
68
|
-
v-if="item?.component"
|
69
|
-
@click="!item.disabled && toggleElement(item.type)"
|
70
|
-
>
|
68
|
+
<ListItemWrapper v-if="item?.component">
|
71
69
|
<ListItemTitle>
|
72
70
|
{{ item.name }}
|
73
71
|
<InfoText
|
@@ -195,6 +193,10 @@
|
|
195
193
|
const BoxTitle = styled.div`
|
196
194
|
font-size: 13px;
|
197
195
|
color: ${(props) => props.theme.colors.white};
|
196
|
+
transform: translateZ(0);
|
197
|
+
backface-visibility: hidden;
|
198
|
+
-webkit-font-smoothing: antialiased;
|
199
|
+
-moz-osx-font-smoothing: grayscale;
|
198
200
|
`
|
199
201
|
|
200
202
|
const BoxContainer = styled.div`
|
@@ -204,9 +206,9 @@
|
|
204
206
|
opacity: 90%;
|
205
207
|
color: ${(props) => props.theme.colors.white};
|
206
208
|
border-radius: 4px;
|
207
|
-
padding:
|
209
|
+
padding: 0px 10px 0px 20px;
|
208
210
|
font-size: 13px;
|
209
|
-
height:
|
211
|
+
height: 45px;
|
210
212
|
`
|
211
213
|
|
212
214
|
const CenterBox = styled(BoxContainer)`
|
@@ -232,6 +234,11 @@
|
|
232
234
|
background: ${(props) => props.theme.colors.white};
|
233
235
|
}
|
234
236
|
`
|
237
|
+
|
238
|
+
const CloseContainer = styled.div`
|
239
|
+
margin-left: 20px;
|
240
|
+
`
|
241
|
+
|
235
242
|
const DotItem = styled.div`
|
236
243
|
width: 4px;
|
237
244
|
height: 4px;
|
@@ -240,10 +247,9 @@
|
|
240
247
|
`
|
241
248
|
|
242
249
|
const ListContainer = styled.div`
|
243
|
-
|
250
|
+
height: 100%;
|
244
251
|
display: flex;
|
245
252
|
align-items: center;
|
246
|
-
gap: 20px;
|
247
253
|
color: ${(props) => props.theme.colors.white};
|
248
254
|
`
|
249
255
|
|
@@ -254,16 +260,21 @@
|
|
254
260
|
|
255
261
|
const ListItem = styled('div', ListAttrs)`
|
256
262
|
width: max-content;
|
263
|
+
height: 100%;
|
264
|
+
display: flex;
|
265
|
+
align-items: center;
|
266
|
+
padding: 0 10px;
|
257
267
|
cursor: ${(props) => (props.disabled ? 'not-allowed' : 'pointer')};
|
258
268
|
color: ${(props) => props.disabled && props.theme.colors.grey3};
|
259
269
|
|
260
270
|
&:hover {
|
271
|
+
background: rgba(255, 255, 255, 0.1);
|
261
272
|
color: ${(props) =>
|
262
273
|
props.disabled
|
263
274
|
? props.theme.colors.grey3
|
264
275
|
: props.hoverColor
|
265
276
|
? props.theme.colors[props.hoverColor]
|
266
|
-
: props.theme.colors.
|
277
|
+
: props.theme.colors.white};
|
267
278
|
}
|
268
279
|
`
|
269
280
|
|
@@ -274,7 +285,7 @@
|
|
274
285
|
height: 30px;
|
275
286
|
width: 30px;
|
276
287
|
cursor: pointer;
|
277
|
-
margin-left:
|
288
|
+
margin-left: 8px;
|
278
289
|
|
279
290
|
&:hover {
|
280
291
|
background: rgba(255, 255, 255, 0.1);
|
@@ -288,12 +299,14 @@
|
|
288
299
|
flex-direction: column;
|
289
300
|
`
|
290
301
|
|
291
|
-
const ExpandedListItem = styled(
|
292
|
-
display: flex;
|
302
|
+
const ExpandedListItem = styled('div', ListAttrs)`
|
293
303
|
width: 100%;
|
304
|
+
display: flex;
|
294
305
|
justify-content: space-between;
|
295
306
|
align-items: center;
|
296
307
|
padding: 13px 15px;
|
308
|
+
cursor: ${(props) => (props.disabled ? 'not-allowed' : 'pointer')};
|
309
|
+
color: ${(props) => props.disabled && props.theme.colors.grey3};
|
297
310
|
|
298
311
|
&:hover {
|
299
312
|
background: rgba(255, 255, 255, 0.1);
|
@@ -347,6 +360,7 @@
|
|
347
360
|
Divider,
|
348
361
|
DividerContainer,
|
349
362
|
ExpandedList,
|
363
|
+
CloseContainer,
|
350
364
|
},
|
351
365
|
props: {
|
352
366
|
optionsList: {
|
@@ -408,6 +422,17 @@
|
|
408
422
|
this.expanded = !this.expanded
|
409
423
|
this.expandedOptions = this.optionsList
|
410
424
|
},
|
425
|
+
handleExpandedOptionClick(item) {
|
426
|
+
if (item.disabled) return
|
427
|
+
|
428
|
+
if (!item.component) {
|
429
|
+
this.$emit('on-' + item.type)
|
430
|
+
|
431
|
+
return
|
432
|
+
}
|
433
|
+
|
434
|
+
this.toggleElement(item.type)
|
435
|
+
},
|
411
436
|
},
|
412
437
|
}
|
413
438
|
</script>
|