@eturnity/eturnity_reusable_components 7.51.11 → 7.51.12
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
@@ -14,6 +14,7 @@
|
|
14
14
|
'table-dropdown-item': item.type !== 'input',
|
15
15
|
}"
|
16
16
|
:is-nested="isNested"
|
17
|
+
:show-archived="showArchived"
|
17
18
|
>
|
18
19
|
<NestedContainer :is-nested="isNested">
|
19
20
|
<NestedIcon
|
@@ -31,6 +32,7 @@
|
|
31
32
|
(item.value === '' || item.value === '-')
|
32
33
|
"
|
33
34
|
:key="index + '_button'"
|
35
|
+
:show-archived="showArchived"
|
34
36
|
@click.stop="onTemplateClick(item.row)"
|
35
37
|
>
|
36
38
|
{{ $gettext('Use template...') }}
|
@@ -39,30 +41,38 @@
|
|
39
41
|
v-else-if="
|
40
42
|
item.type && item.type === 'template' && item.value !== ''
|
41
43
|
"
|
44
|
+
:show-archived="showArchived"
|
42
45
|
@click.stop="onSelectedTemplateClick(item.row)"
|
43
46
|
>
|
44
|
-
<!-- <img :src="fileIcon" alt="icon" width="12" height="16" /> -->
|
45
47
|
<Icon
|
46
|
-
:color="theme.colors.brightBlue"
|
48
|
+
:color="showArchived ? theme.colors.red : theme.colors.brightBlue"
|
47
49
|
name="template_icon_not_clickable"
|
48
50
|
size="14px"
|
49
51
|
/>
|
50
52
|
<div>{{ item.value }}</div>
|
51
53
|
</TemplateLink>
|
52
|
-
<NoTemplate
|
54
|
+
<NoTemplate
|
55
|
+
v-if="item.type && item.type === 'no-template'"
|
56
|
+
:show-archived="showArchived"
|
57
|
+
>
|
53
58
|
{{ $gettext('No main component template') }}
|
54
59
|
</NoTemplate>
|
55
60
|
<InputContainer
|
56
61
|
v-if="item.type === 'input'"
|
57
62
|
@click.stop="onInputClick()"
|
58
63
|
>
|
59
|
-
<TextContainer
|
64
|
+
<TextContainer
|
65
|
+
v-if="customInputDisabled"
|
66
|
+
class="input-placeholder"
|
67
|
+
:show-archived="showArchived"
|
68
|
+
>
|
60
69
|
<span> {{ item.value }}</span>
|
61
70
|
</TextContainer>
|
62
71
|
<InputText
|
63
72
|
v-else
|
64
73
|
class="inputField"
|
65
74
|
:disabled="customInputDisabled"
|
75
|
+
:font-color="showArchived ? theme.colors.red : 'black'"
|
66
76
|
:min-width="item.value.length + 'ch'"
|
67
77
|
:no-border="true"
|
68
78
|
:value="item.value"
|
@@ -75,6 +85,7 @@
|
|
75
85
|
item.type !== 'no-template' &&
|
76
86
|
item.type !== 'template'
|
77
87
|
"
|
88
|
+
:show-archived="showArchived"
|
78
89
|
>
|
79
90
|
<span> {{ item.value }}</span>
|
80
91
|
</TextContainer>
|
@@ -200,12 +211,14 @@
|
|
200
211
|
}
|
201
212
|
`
|
202
213
|
|
203
|
-
const ItemAttrs = { isNested: Boolean }
|
214
|
+
const ItemAttrs = { isNested: Boolean, showArchived: Boolean }
|
204
215
|
const ComponentItem = styled('td', ItemAttrs)`
|
205
216
|
padding-left: ${(props) => (props.isNested ? '14px !important' : '0')};
|
206
217
|
overflow: hidden;
|
207
218
|
text-overflow: ellipsis;
|
208
219
|
padding-right: 0 !important;
|
220
|
+
color: ${(props) =>
|
221
|
+
props.showArchived ? props.theme.colors.red : 'inherit'};
|
209
222
|
|
210
223
|
&.table-dropdown-item {
|
211
224
|
background-clip: content-box;
|
@@ -339,10 +352,12 @@
|
|
339
352
|
height: 40px;
|
340
353
|
`
|
341
354
|
|
342
|
-
const
|
355
|
+
const templateAttrs = { showArchived: Boolean }
|
356
|
+
const TemplateButton = styled('div', templateAttrs)`
|
343
357
|
cursor: pointer;
|
344
358
|
background-color: #263238;
|
345
|
-
color: ${(props) =>
|
359
|
+
color: ${(props) =>
|
360
|
+
props.showArchived ? props.theme.colors.red : props.theme.colors.white};
|
346
361
|
padding: 4px 10px;
|
347
362
|
display: inline-block;
|
348
363
|
border-radius: 4px;
|
@@ -350,16 +365,20 @@
|
|
350
365
|
margin-left: 15px;
|
351
366
|
`
|
352
367
|
|
353
|
-
const NoTemplate = styled
|
354
|
-
color: ${(props) =>
|
368
|
+
const NoTemplate = styled('div', templateAttrs)`
|
369
|
+
color: ${(props) =>
|
370
|
+
props.showArchived ? props.theme.colors.red : props.theme.colors.gray1};
|
355
371
|
font-style: italic;
|
356
372
|
overflow: hidden;
|
357
373
|
text-overflow: ellipsis;
|
358
374
|
padding-left: 15px;
|
359
375
|
`
|
360
376
|
|
361
|
-
const TemplateLink = styled
|
362
|
-
color: ${(props) =>
|
377
|
+
const TemplateLink = styled('div', templateAttrs)`
|
378
|
+
color: ${(props) =>
|
379
|
+
props.showArchived
|
380
|
+
? props.theme.colors.red
|
381
|
+
: props.theme.colors.brightBlue};
|
363
382
|
cursor: pointer;
|
364
383
|
display: grid;
|
365
384
|
grid-template-columns: auto 1fr;
|
@@ -394,10 +413,12 @@
|
|
394
413
|
color: ${(props) => props.theme.colors.grey3};
|
395
414
|
`
|
396
415
|
|
397
|
-
const TextContainer = styled
|
416
|
+
const TextContainer = styled('div', templateAttrs)`
|
398
417
|
height: 100%;
|
399
418
|
display: grid;
|
400
419
|
align-items: center;
|
420
|
+
color: ${(props) =>
|
421
|
+
props.showArchived ? props.theme.colors.red : 'inherit'};
|
401
422
|
`
|
402
423
|
|
403
424
|
const NestedIcon = styled(SubpositionMarkerIcon)`
|