@eturnity/eturnity_reusable_components 7.22.2 → 7.22.4-qa-09.0
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 +2 -1
- package/src/assets/svgIcons/anchor.svg +18 -0
- package/src/assets/svgIcons/flatten_roof.svg +20 -0
- package/src/assets/svgIcons/split.svg +6 -88
- package/src/components/icon/index.vue +34 -22
- package/src/components/inputs/checkbox/index.vue +13 -0
- package/src/components/tableDropdown/index.vue +7 -0
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@eturnity/eturnity_reusable_components",
|
3
|
-
"version": "7.22.
|
3
|
+
"version": "7.22.4-qa-09.0",
|
4
4
|
"private": false,
|
5
5
|
"scripts": {
|
6
6
|
"dev": "vue-cli-service serve",
|
@@ -23,6 +23,7 @@
|
|
23
23
|
},
|
24
24
|
"devDependencies": {
|
25
25
|
"@babel/core": "7.12.16",
|
26
|
+
"@babel/eslint-parser": "7.12.16",
|
26
27
|
"@vue/cli-plugin-babel": "5.0.8",
|
27
28
|
"@vue/cli-plugin-eslint": "5.0.8",
|
28
29
|
"@vue/cli-service": "5.0.8",
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
|
3
|
+
<svg height="800px" width="800px" version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
|
4
|
+
viewBox="0 0 204.851 204.851" xml:space="preserve">
|
5
|
+
<g>
|
6
|
+
<g>
|
7
|
+
<g>
|
8
|
+
<path fill="white" d="M139.518,128.595l16.834,16.336c0,0-20.644,29.877-42.725,30.473
|
9
|
+
c0.479,0,0.117-84.092,0.039-104.472c14.694-4.797,25.402-18.182,25.402-34.117c0-20.009-16.697-36.218-37.273-36.218
|
10
|
+
c-20.615,0-37.312,16.209-37.312,36.208c0,15.671,10.376,28.929,24.748,33.961l0.098,104.277
|
11
|
+
c-26.643-1.837-42.061-27.474-42.061-27.474l17.997-17.41L0,120.505l9.887,63.301l17.362-16.795
|
12
|
+
c15.036,12.105,32.017,37.244,72.876,37.244c51.332-1.309,63.184-28.939,76.344-39.804l18.993,18.514l9.389-63.907
|
13
|
+
L139.518,128.595z M82.558,36.208c0-10.298,8.608-18.661,19.218-18.661s19.257,8.363,19.257,18.661
|
14
|
+
c0,10.327-8.647,18.681-19.257,18.681S82.558,46.535,82.558,36.208z"/>
|
15
|
+
</g>
|
16
|
+
</g>
|
17
|
+
</g>
|
18
|
+
</svg>
|
@@ -0,0 +1,20 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
2
|
+
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
3
|
+
|
4
|
+
<svg
|
5
|
+
width="16"
|
6
|
+
height="8"
|
7
|
+
viewBox="0 0 16 8"
|
8
|
+
version="1.1"
|
9
|
+
id="svg5"
|
10
|
+
xmlns="http://www.w3.org/2000/svg"
|
11
|
+
xmlns:svg="http://www.w3.org/2000/svg">
|
12
|
+
<g
|
13
|
+
transform="translate(-55.350933,-93.588073)">
|
14
|
+
<path
|
15
|
+
fill="#000000"
|
16
|
+
d="m 61.719348,100.39494 1.004406,0.0185 -0.0013,-2.679323 0.88345,-4.27e-4 c -0.0051,-0.01381 -0.01401,2.69128 -0.01401,2.69128 l 1.05348,-0.0159 -1.582401,1.44453 z m -6.368415,-0.817395 7.856738,-5.989472 7.616581,6.321372 -1.240034,1.266145 -6.409573,-5.185912 -6.581971,5.125212 z"
|
17
|
+
id="path874"
|
18
|
+
/>
|
19
|
+
</g>
|
20
|
+
</svg>
|
@@ -1,94 +1,12 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
2
|
-
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
3
|
-
|
4
1
|
<svg
|
5
|
-
version="1.1"
|
6
|
-
id="svg438"
|
7
2
|
width="838"
|
8
3
|
height="833"
|
9
4
|
viewBox="0 0 838 833"
|
10
|
-
sodipodi:docname="split.svg"
|
11
|
-
inkscape:version="1.1.2 (0a00cf5339, 2022-02-04)"
|
12
|
-
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
13
|
-
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
14
5
|
xmlns="http://www.w3.org/2000/svg"
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
<stop
|
22
|
-
style="stop-color:#ffffff;stop-opacity:1;"
|
23
|
-
offset="0"
|
24
|
-
id="stop7381" />
|
25
|
-
</linearGradient>
|
26
|
-
<linearGradient
|
27
|
-
id="linearGradient6933"
|
28
|
-
inkscape:swatch="solid">
|
29
|
-
<stop
|
30
|
-
style="stop-color:#000000;stop-opacity:1;"
|
31
|
-
offset="0"
|
32
|
-
id="stop6931" />
|
33
|
-
</linearGradient>
|
34
|
-
</defs>
|
35
|
-
<sodipodi:namedview
|
36
|
-
id="namedview440"
|
37
|
-
pagecolor="#ffffff"
|
38
|
-
bordercolor="#666666"
|
39
|
-
borderopacity="1.0"
|
40
|
-
inkscape:pageshadow="2"
|
41
|
-
inkscape:pageopacity="0.0"
|
42
|
-
inkscape:pagecheckerboard="0"
|
43
|
-
showgrid="false"
|
44
|
-
inkscape:zoom="0.95078031"
|
45
|
-
inkscape:cx="466.45896"
|
46
|
-
inkscape:cy="549.02273"
|
47
|
-
inkscape:window-width="1920"
|
48
|
-
inkscape:window-height="1007"
|
49
|
-
inkscape:window-x="0"
|
50
|
-
inkscape:window-y="0"
|
51
|
-
inkscape:window-maximized="1"
|
52
|
-
inkscape:current-layer="g444" />
|
53
|
-
<g
|
54
|
-
inkscape:groupmode="layer"
|
55
|
-
inkscape:label="Image"
|
56
|
-
id="g444">
|
57
|
-
<circle
|
58
|
-
id="path5141"
|
59
|
-
style="fill:none;stroke:#fffeff;stroke-opacity:1"
|
60
|
-
cx="0.66903824"
|
61
|
-
cy="263.65976"
|
62
|
-
r="0.52949077" />
|
63
|
-
<circle
|
64
|
-
id="path5143"
|
65
|
-
style="fill:none;stroke:#fffeff;stroke-opacity:1"
|
66
|
-
cx="0.66903824"
|
67
|
-
cy="263.65976"
|
68
|
-
r="0.52949077" />
|
69
|
-
<g
|
70
|
-
id="path5184"
|
71
|
-
style="stroke:#fffeff;stroke-opacity:1;fill:none">
|
72
|
-
<path
|
73
|
-
style="color:#000000;fill:none;stroke-width:154.42;-inkscape-stroke:none;stroke:#fffeff;stroke-opacity:1"
|
74
|
-
d="m -156.35359,113.32885 348.76355,221.92361 744.6236,-498.85799"
|
75
|
-
id="path6861" />
|
76
|
-
<path
|
77
|
-
style="color:#000000;fill:none;-inkscape-stroke:none;stroke:#fffeff;stroke-opacity:1"
|
78
|
-
d="M 894.06055,-227.75 191.32227,243.04492 -114.9043,48.1875 -197.80273,178.46875 193.49609,427.45898 980.00781,-99.460937 Z"
|
79
|
-
id="path6863" />
|
80
|
-
</g>
|
81
|
-
<g
|
82
|
-
id="path5186"
|
83
|
-
style="stroke:#fffeff;stroke-opacity:1;fill:none">
|
84
|
-
<path
|
85
|
-
style="color:#000000;fill:none;stroke-width:166.34;-inkscape-stroke:none;stroke:#fffeff;stroke-opacity:1"
|
86
|
-
d="M 816.06617,905.68984 357.97591,628.01443 1035.7943,176.14788"
|
87
|
-
id="path6855" />
|
88
|
-
<path
|
89
|
-
style="color:#000000;fill:none;-inkscape-stroke:none;stroke:#fffeff;stroke-opacity:1"
|
90
|
-
d="M 989.66016,106.94531 203.03125,631.34961 772.95312,976.81445 859.17773,834.56641 512.91992,624.67773 1081.9277,245.34961 Z"
|
91
|
-
id="path6857" />
|
92
|
-
</g>
|
93
|
-
</g>
|
6
|
+
>
|
7
|
+
|
8
|
+
<path
|
9
|
+
fill="#B2B9C5"
|
10
|
+
d="m -5.0875843,441.73292 3.3936693,-93.74987 847.237645,-2.85667 -3.71049,95.94711 z m 333.6519143,232.4369 -98.27777,-105.35245 43.34233,-0.60608 c 23.83828,-0.33335 56.95483,-0.67085 73.59233,-0.75 l 30.25,-0.14392 L 376,413.05958 374.48738,213.61969 301.67731,213.3632 228.86724,213.10671 326.58798,107.77384 C 380.33439,49.84076 424.5019,2.3657611 424.73801,2.2738411 425.25724,2.0716911 628.96623,212.59506 628.96623,213.35636 c 0,0.29424 -41.55385,0.25035 -81.97885,0.25035 h -73.5 L 475,413.0466 l 1.47122,154.25779 72.81196,0.25649 72.81196,0.25649 -91.89971,99.5 -103.35334,112.2049 z"
|
11
|
+
/>
|
94
12
|
</svg>
|
@@ -1,9 +1,13 @@
|
|
1
1
|
<template>
|
2
|
-
<wrapper>
|
3
|
-
<icon-image
|
2
|
+
<wrapper :disabled="disabled" :size="size" :cursor="cursor">
|
3
|
+
<icon-image
|
4
|
+
:color="color"
|
5
|
+
:background-color="backgroundColor"
|
6
|
+
:hovered-color="hoveredColor"
|
7
|
+
>
|
4
8
|
<i v-html="icon.html" />
|
5
9
|
</icon-image>
|
6
|
-
<striked-line v-if="isStriked"></striked-line>
|
10
|
+
<striked-line v-if="isStriked" :color="color"></striked-line>
|
7
11
|
</wrapper>
|
8
12
|
</template>
|
9
13
|
|
@@ -48,27 +52,31 @@ const props = defineProps({
|
|
48
52
|
isStriked: {
|
49
53
|
required: false,
|
50
54
|
default: false
|
55
|
+
},
|
56
|
+
backgroundColor: {
|
57
|
+
required: false,
|
58
|
+
default: null
|
51
59
|
}
|
52
60
|
})
|
53
61
|
|
54
|
-
const Wrapper = styled('div'
|
62
|
+
const Wrapper = styled('div', {
|
63
|
+
size: String,
|
64
|
+
disabled: Boolean,
|
65
|
+
cursor: String
|
66
|
+
})`
|
55
67
|
display: flex;
|
56
68
|
position: relative;
|
57
69
|
align-content: center;
|
58
70
|
justify-content: center;
|
59
|
-
width: ${props.size};
|
60
|
-
height: ${props.size};
|
61
|
-
min-width: ${props.size};
|
62
|
-
min-height: ${props.size};
|
63
|
-
cursor: ${props.disabled ? 'not-allowed' : props.cursor};
|
71
|
+
width: ${(props) => props.size};
|
72
|
+
height: ${(props) => props.size};
|
73
|
+
min-width: ${(props) => props.size};
|
74
|
+
min-height: ${(props) => props.size};
|
75
|
+
cursor: ${(props) => (props.disabled ? 'not-allowed' : props.cursor)};
|
64
76
|
line-height: 0;
|
65
77
|
`
|
66
|
-
|
67
|
-
|
68
|
-
color: String,
|
69
|
-
hoveredColor: String
|
70
|
-
}
|
71
|
-
const StrikedLine = styled.div`
|
78
|
+
|
79
|
+
const StrikedLine = styled('div', { color: String })`
|
72
80
|
display: flex;
|
73
81
|
position: absolute;
|
74
82
|
bottom: 0;
|
@@ -77,29 +85,33 @@ const StrikedLine = styled.div`
|
|
77
85
|
justify-content: center;
|
78
86
|
width: 143%;
|
79
87
|
height: 8%;
|
80
|
-
background-color: ${({ theme }) => theme.colors[
|
88
|
+
background-color: ${({ theme, color }) => theme.colors[color] || color};
|
81
89
|
min-height: 0;
|
82
90
|
line-height: 0;
|
83
91
|
transform-origin: 0% 100%;
|
84
92
|
transform: rotate(-45deg);
|
85
93
|
`
|
86
|
-
const IconImage = styled
|
94
|
+
const IconImage = styled('div', {
|
95
|
+
color: String,
|
96
|
+
backgroundColor: String,
|
97
|
+
hoveredColor: String
|
98
|
+
})`
|
87
99
|
width: 100%;
|
88
100
|
svg {
|
89
101
|
width: 100%;
|
90
102
|
height: 100%;
|
91
|
-
background-color: ${(props) =>
|
92
|
-
|
103
|
+
background-color: ${(props) =>
|
104
|
+
props.backgroundColor ? props.backgroundColor : 'transparent'};
|
105
|
+
padding: ${(props) => (props.backgroundColor ? '3px' : '0')};
|
93
106
|
}
|
94
107
|
svg path {
|
95
|
-
${({ theme }) =>
|
96
|
-
props.color && `fill: ${theme.colors[props.color] || props.color};`}
|
108
|
+
${({ theme, color }) => color && `fill: ${theme.colors[color] || color};`}
|
97
109
|
}
|
98
110
|
&:hover > svg path {
|
99
111
|
${props.hoveredColor && `fill: ${props.hoveredColor};`}
|
100
112
|
}
|
101
113
|
&:hover + div {
|
102
|
-
background-color: ${props.hoveredColor};
|
114
|
+
background-color: ${(props) => props.hoveredColor};
|
103
115
|
}
|
104
116
|
`
|
105
117
|
|
@@ -3,7 +3,11 @@
|
|
3
3
|
<container
|
4
4
|
:checkColor="checkColor"
|
5
5
|
:size="size"
|
6
|
+
<<<<<<< HEAD
|
7
|
+
:hasLabel="hasLabel"
|
8
|
+
=======
|
6
9
|
:hasLabel="label && !!label.length"
|
10
|
+
>>>>>>> master
|
7
11
|
:backgroundColor="backgroundColor"
|
8
12
|
:isChecked="isChecked"
|
9
13
|
:isDisabled="isDisabled"
|
@@ -18,7 +22,11 @@
|
|
18
22
|
<check-wrapper :hasLabel="hasLabel">
|
19
23
|
<span class="checkmark"></span>
|
20
24
|
</check-wrapper>
|
25
|
+
<<<<<<< HEAD
|
26
|
+
<label-text v-if="hasLabel">{{ label }}</label-text>
|
27
|
+
=======
|
21
28
|
<label-text v-if="label && !!label.length">{{ label }}</label-text>
|
29
|
+
>>>>>>> master
|
22
30
|
</container>
|
23
31
|
</component-wrapper>
|
24
32
|
</template>
|
@@ -197,6 +205,11 @@ export default {
|
|
197
205
|
return !!this.label.length
|
198
206
|
}
|
199
207
|
},
|
208
|
+
computed: {
|
209
|
+
hasLabel() {
|
210
|
+
return !!this.label.length
|
211
|
+
}
|
212
|
+
},
|
200
213
|
methods: {
|
201
214
|
onChangeHandler(value) {
|
202
215
|
if (this.isDisabled) {
|
@@ -40,12 +40,16 @@
|
|
40
40
|
"
|
41
41
|
@click.stop="onSelectedTemplateClick(item.row)"
|
42
42
|
>
|
43
|
+
<<<<<<< HEAD
|
44
|
+
<img :src="fileIcon" alt="icon" width="12" height="16" />
|
45
|
+
=======
|
43
46
|
<!-- <img :src="fileIcon" alt="icon" width="12" height="16" /> -->
|
44
47
|
<icon
|
45
48
|
name="template_icon_not_clickable"
|
46
49
|
:color="theme.colors.brightBlue"
|
47
50
|
size="14px"
|
48
51
|
/>
|
52
|
+
>>>>>>> master
|
49
53
|
<div>{{ item.value }}</div>
|
50
54
|
</template-link>
|
51
55
|
<no-template v-if="item.type && item.type === 'no-template'">
|
@@ -183,8 +187,11 @@ import InputText from '../inputs/inputText'
|
|
183
187
|
import CollapseArrowIcon from '../../assets/icons/collapse_arrow_icon.svg'
|
184
188
|
import SubpositionMarkerIcon from '../../assets/icons/subposition_marker.svg'
|
185
189
|
import fileIconPng from '../../assets/icons/file_icon.png'
|
190
|
+
<<<<<<< HEAD
|
191
|
+
=======
|
186
192
|
import Icon from '../icon'
|
187
193
|
import theme from '@/assets/theme.js'
|
194
|
+
>>>>>>> master
|
188
195
|
|
189
196
|
const rowAttrs = { disabled: Boolean, isOpen: Boolean }
|
190
197
|
const DropdownRow = styled('div', rowAttrs)`
|