@eturnity/eturnity_reusable_components 7.39.4-qa-elisee-7.42.1 → 7.39.4-qa-elisee-7.45.1
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
@@ -1,3 +1,3 @@
|
|
1
|
-
<svg fill="none" height="16" viewbox="14 12 12 16" width="
|
1
|
+
<svg fill="none" height="16" viewbox="14 12 12 16" width="16" xmlns="http://www.w3.org/2000/svg">
|
2
2
|
<path clip-rule="evenodd" d="M16.5 18.25V16.5C16.5 14.567 18.067 13 20 13C21.933 13 23.5 14.567 23.5 16.5V18.25H25.25V27H14.75V18.25H16.5ZM18.25 16.5C18.25 15.5335 19.0335 14.75 20 14.75C20.9665 14.75 21.75 15.5335 21.75 16.5V18.25H18.25V16.5ZM19.125 24.375V20.875H20.875V24.375H19.125Z" fill="#263238" fill-rule="evenodd"></path>
|
3
3
|
</svg>
|
@@ -1,10 +1,6 @@
|
|
1
1
|
<template>
|
2
|
-
<InfoContainer
|
3
|
-
|
4
|
-
:border-color="borderColor"
|
5
|
-
:has-dashed-border="hasDashedBorder"
|
6
|
-
>
|
7
|
-
<RCIcon :color="color" name="info" size="24px" />
|
2
|
+
<InfoContainer>
|
3
|
+
<RCIcon name="info" size="24px" :color="color" />
|
8
4
|
<TextContainer>
|
9
5
|
<slot></slot>
|
10
6
|
</TextContainer>
|
@@ -14,24 +10,12 @@
|
|
14
10
|
<script>
|
15
11
|
import styled from 'vue3-styled-components'
|
16
12
|
import RCIcon from '../icon'
|
17
|
-
|
18
|
-
|
19
|
-
hasDashedBorder: Boolean,
|
20
|
-
borderColor: String,
|
21
|
-
}
|
22
|
-
const InfoContainer = styled('div', propsContainer)`
|
13
|
+
|
14
|
+
const InfoContainer = styled.div`
|
23
15
|
display: flex;
|
24
16
|
gap: 15px;
|
25
|
-
padding:
|
26
|
-
border: 1px ${(props) =>
|
27
|
-
${(props) =>
|
28
|
-
props.theme.colors[props.borderColor]
|
29
|
-
? props.theme.colors[props.borderColor]
|
30
|
-
: props.borderColor};
|
31
|
-
background-color: ${(props) =>
|
32
|
-
props.theme.colors[props.backgroundColor]
|
33
|
-
? props.theme.colors[props.backgroundColor]
|
34
|
-
: props.backgroundColor};
|
17
|
+
padding: 20px;
|
18
|
+
border: 1px dashed ${(props) => props.theme.colors.grey4};
|
35
19
|
border-radius: 4px;
|
36
20
|
`
|
37
21
|
|
@@ -49,19 +33,8 @@
|
|
49
33
|
},
|
50
34
|
props: {
|
51
35
|
color: {
|
52
|
-
required: false
|
53
|
-
}
|
54
|
-
|
55
|
-
required: false,
|
56
|
-
},
|
57
|
-
hasDashedBorder: {
|
58
|
-
required: false,
|
59
|
-
default: true,
|
60
|
-
},
|
61
|
-
borderColor: {
|
62
|
-
required: false,
|
63
|
-
default: 'grey4',
|
64
|
-
},
|
65
|
-
},
|
36
|
+
required: false
|
37
|
+
}
|
38
|
+
}
|
66
39
|
}
|
67
40
|
</script>
|
@@ -4,6 +4,7 @@
|
|
4
4
|
v-if="hasLabelSlot"
|
5
5
|
:align-items="alignItems"
|
6
6
|
:border-color="borderColor"
|
7
|
+
:is-disabled="disabled"
|
7
8
|
:is-error="isError"
|
8
9
|
:is-interactive="isInteractive"
|
9
10
|
:no-border="noBorder"
|
@@ -273,18 +274,22 @@
|
|
273
274
|
: props.theme.colors.mediumGray};
|
274
275
|
`
|
275
276
|
|
276
|
-
const LabelWrapper = styled('div'
|
277
|
+
const LabelWrapper = styled('div')`
|
277
278
|
display: flex;
|
278
279
|
align-items: center;
|
279
280
|
gap: 10px;
|
280
281
|
margin-bottom: 8px;
|
281
|
-
cursor: ${(props) => (props.isInteractive ? 'ew-resize' : 'auto')};
|
282
282
|
`
|
283
283
|
const LabelSlotWrapper = styled('div', inputProps)`
|
284
284
|
display: flex;
|
285
285
|
gap: 10px;
|
286
286
|
align-items: center;
|
287
|
-
cursor: ${(props) =>
|
287
|
+
cursor: ${(props) =>
|
288
|
+
props.isDisabled
|
289
|
+
? 'not-allowed'
|
290
|
+
: props.isInteractive
|
291
|
+
? 'ew-resize'
|
292
|
+
: 'auto'};
|
288
293
|
border: ${(props) =>
|
289
294
|
props.alignItems == 'vertical'
|
290
295
|
? 'none'
|
@@ -760,12 +765,18 @@
|
|
760
765
|
}
|
761
766
|
},
|
762
767
|
initInteraction(e) {
|
768
|
+
if (this.disabled) {
|
769
|
+
return
|
770
|
+
}
|
763
771
|
this.focusInput()
|
764
772
|
e.preventDefault()
|
765
773
|
window.addEventListener('mousemove', this.interact, false)
|
766
774
|
window.addEventListener('mouseup', this.stopInteract, false)
|
767
775
|
},
|
768
776
|
interact(e) {
|
777
|
+
if (this.disabled) {
|
778
|
+
return
|
779
|
+
}
|
769
780
|
e.preventDefault()
|
770
781
|
let value = parseFloat(this.value || 0)
|
771
782
|
value += parseFloat(this.interactionStep) * parseInt(e.movementX)
|
@@ -43,6 +43,7 @@
|
|
43
43
|
buttonBgColor || colorMode == 'dark' ? 'transparentBlack1' : 'white'
|
44
44
|
"
|
45
45
|
class="select-button"
|
46
|
+
:color-mode="colorMode"
|
46
47
|
:data-id="dataId"
|
47
48
|
:disabled="disabled"
|
48
49
|
:font-color="
|
@@ -274,6 +275,7 @@
|
|
274
275
|
noRelative: Boolean,
|
275
276
|
tablePaddingLeft: String,
|
276
277
|
showDisabledBackground: Boolean,
|
278
|
+
colorMode: String,
|
277
279
|
}
|
278
280
|
const SelectButton = styled('div', selectButtonAttrs)`
|
279
281
|
position: ${(props) => (props.noRelative ? 'static' : 'relative')};
|
@@ -311,12 +313,16 @@
|
|
311
313
|
`}
|
312
314
|
background-color:${(props) =>
|
313
315
|
props.disabled && props.showDisabledBackground
|
314
|
-
? props.
|
316
|
+
? props.colorMode == 'dark'
|
317
|
+
? props.theme.transparentBlack1
|
318
|
+
: props.theme.colors.grey5
|
315
319
|
: props.theme.colors[props.bgColor]
|
316
320
|
? props.theme.colors[props.bgColor]
|
317
321
|
: props.bgColor};
|
318
322
|
color: ${(props) =>
|
319
|
-
props.
|
323
|
+
props.disabled
|
324
|
+
? props.theme.colors.grey2
|
325
|
+
: props.theme.colors[props.fontColor]
|
320
326
|
? props.theme.colors[props.fontColor]
|
321
327
|
: props.fontColor};
|
322
328
|
${(props) => (props.disabled ? 'pointer-events: none' : '')};
|
@@ -613,7 +619,7 @@
|
|
613
619
|
if (this.isDropdownOpen) {
|
614
620
|
return this.$refs.dropdown.$el.childElementCount > 1
|
615
621
|
? this.$refs.dropdown.$el.childElementCount
|
616
|
-
:
|
622
|
+
: this.$refs.dropdown.$el.children[0]
|
617
623
|
? this.$refs.dropdown.$el.children[0].childElementCount
|
618
624
|
: 0
|
619
625
|
}
|