@eturnity/eturnity_reusable_components 7.20.0--EPDM-9013.2 → 7.20.0--EPDM-10564.4
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/babel.config.js +2 -4
- package/package.json +1 -2
- package/src/assets/svgIcons/height_equalize.svg +3 -0
- package/src/assets/svgIcons/height_snap.svg +3 -0
- package/src/components/filter/filterSettings.vue +6 -4
- package/src/components/infoText/index.vue +1 -1
- package/src/components/inputs/inputNumber/index.vue +3 -3
- package/src/components/inputs/select/index.vue +60 -14
- package/src/components/inputs/select/option/index.vue +6 -0
- package/src/components/markerItem/index.vue +86 -0
- package/src/components/pageTitle/index.vue +10 -15
- package/src/components/tableDropdown/index.vue +18 -7
- package/src/assets/svgIcons/bexio.svg +0 -4
- package/src/assets/svgIcons/data_transfer.svg +0 -3
package/babel.config.js
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@eturnity/eturnity_reusable_components",
|
3
|
-
"version": "7.20.0--EPDM-
|
3
|
+
"version": "7.20.0--EPDM-10564.4",
|
4
4
|
"private": false,
|
5
5
|
"scripts": {
|
6
6
|
"dev": "vue-cli-service serve",
|
@@ -23,7 +23,6 @@
|
|
23
23
|
},
|
24
24
|
"devDependencies": {
|
25
25
|
"@babel/core": "7.12.16",
|
26
|
-
"@babel/eslint-parser": "7.12.16",
|
27
26
|
"@vue/cli-plugin-babel": "5.0.8",
|
28
27
|
"@vue/cli-plugin-eslint": "5.0.8",
|
29
28
|
"@vue/cli-service": "5.0.8",
|
@@ -0,0 +1,3 @@
|
|
1
|
+
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M3.99482 2.7C4.49188 2.7 4.89482 2.29706 4.89482 1.8C4.89482 1.30294 4.49188 0.9 3.99482 0.9C3.49777 0.9 3.09482 1.30294 3.09482 1.8C3.09482 2.29706 3.49777 2.7 3.99482 2.7ZM5.79482 1.8C5.79482 2.50671 5.38756 3.11829 4.79492 3.41285V4H5.80557L4.00557 6L2.20557 4H3.19492L3.19492 3.41294C2.60218 3.11842 2.19482 2.50678 2.19482 1.8C2.19482 0.805887 3.00071 0 3.99482 0C4.98894 0 5.79482 0.805887 5.79482 1.8ZM10.8948 1.8C10.8948 2.29706 10.4919 2.7 9.99482 2.7C9.49777 2.7 9.09482 2.29706 9.09482 1.8C9.09482 1.30294 9.49777 0.9 9.99482 0.9C10.4919 0.9 10.8948 1.30294 10.8948 1.8ZM10.7949 3.41285C11.3876 3.11829 11.7948 2.50671 11.7948 1.8C11.7948 0.805887 10.9889 0 9.99482 0C9.00071 0 8.19482 0.805887 8.19482 1.8C8.19482 2.50678 8.60218 3.11842 9.19492 3.41294V4H8.20557L10.0056 6L11.8056 4H10.7949V3.41285ZM14 7.79999L0 7.79999V6.19999L14 6.19999V7.79999ZM7.00518 11.3C6.50812 11.3 6.10518 11.7029 6.10518 12.2C6.10518 12.6971 6.50812 13.1 7.00518 13.1C7.50223 13.1 7.90518 12.6971 7.90518 12.2C7.90518 11.7029 7.50223 11.3 7.00518 11.3ZM5.20518 12.2C5.20518 11.4933 5.61244 10.8817 6.20508 10.5872L6.20508 10H5.19443L6.99443 8L8.79443 10H7.80508V10.5871C8.39782 10.8816 8.80518 11.4932 8.80518 12.2C8.80518 13.1941 7.99929 14 7.00518 14C6.01106 14 5.20518 13.1941 5.20518 12.2Z" fill="#B2B9C5"/>
|
3
|
+
</svg>
|
@@ -0,0 +1,3 @@
|
|
1
|
+
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M0 1.59997L14 1.59998V-2.44379e-05L0 -2.56618e-05V1.59997ZM6.10274 12.2C6.10274 11.7029 6.50568 11.3 7.00274 11.3C7.49979 11.3 7.90274 11.7029 7.90274 12.2C7.90274 12.6971 7.49979 13.1 7.00274 13.1C6.50568 13.1 6.10274 12.6971 6.10274 12.2ZM6.20264 10.5872C5.61 10.8817 5.20274 11.4933 5.20274 12.2C5.20274 13.1941 6.00862 14 7.00274 14C7.99685 14 8.80274 13.1941 8.80274 12.2C8.80274 11.4932 8.39538 10.8816 7.80264 10.5871L7.80264 4.65002H9.5L7 2.65002L4.5 4.65002H6.20264L6.20264 10.5872Z" fill="#B2B9C5"/>
|
3
|
+
</svg>
|
@@ -100,10 +100,12 @@
|
|
100
100
|
<option-title> {{ filter.selectedText }} </option-title>
|
101
101
|
</template>
|
102
102
|
<template #dropdown>
|
103
|
-
<dropdown-checkbox-container
|
103
|
+
<dropdown-checkbox-container
|
104
|
+
v-for="(filterOption, optionIdx) in filter.choices"
|
105
|
+
:key="optionIdx + 'optionIdx'"
|
106
|
+
@click.stop
|
107
|
+
>
|
104
108
|
<checkbox
|
105
|
-
v-for="(filterOption, optionIdx) in filter.choices"
|
106
|
-
:key="optionIdx + 'optionIdx'"
|
107
109
|
:label="filterOption.text"
|
108
110
|
:isChecked="filterOption.selected"
|
109
111
|
@on-event-handler="
|
@@ -376,7 +378,7 @@ const DropdownCheckboxContainer = styled.div`
|
|
376
378
|
display: grid;
|
377
379
|
gap: 6px;
|
378
380
|
width: 100%;
|
379
|
-
padding:
|
381
|
+
padding: 7px 10px;
|
380
382
|
background: ${(props) => props.theme.colors.grey5};
|
381
383
|
`
|
382
384
|
|
@@ -560,7 +560,7 @@ export default {
|
|
560
560
|
try {
|
561
561
|
evaluatedVal = this.onEvaluateCode(event)
|
562
562
|
} finally {
|
563
|
-
if (evaluatedVal) {
|
563
|
+
if (evaluatedVal && this.value != evaluatedVal) {
|
564
564
|
this.$emit('on-input', evaluatedVal)
|
565
565
|
}
|
566
566
|
}
|
@@ -646,10 +646,10 @@ export default {
|
|
646
646
|
}
|
647
647
|
},
|
648
648
|
initInteraction(e) {
|
649
|
+
this.focusInput()
|
650
|
+
e.preventDefault()
|
649
651
|
window.addEventListener('mousemove', this.interact, false)
|
650
652
|
window.addEventListener('mouseup', this.stopInteract, false)
|
651
|
-
e.preventDefault()
|
652
|
-
this.focusInput()
|
653
653
|
},
|
654
654
|
interact(e) {
|
655
655
|
e.preventDefault()
|
@@ -1,12 +1,14 @@
|
|
1
1
|
<template>
|
2
2
|
<Container
|
3
3
|
:selectWidth="selectWidth"
|
4
|
+
:noRelative="noRelative"
|
4
5
|
@mouseenter="mouseEnterHandler"
|
5
6
|
@mouseleave="mouseLeaveHandler"
|
6
7
|
>
|
7
8
|
<input-wrapper
|
8
9
|
:hasLabel="!!label && label.length > 0"
|
9
10
|
:alignItems="alignItems"
|
11
|
+
:noRelative="noRelative"
|
10
12
|
>
|
11
13
|
<label-wrapper v-if="label" :data-id="labelDataId">
|
12
14
|
<input-label
|
@@ -47,6 +49,9 @@
|
|
47
49
|
:showBorder="showBorder"
|
48
50
|
:data-id="dataId"
|
49
51
|
:paddingLeft="paddingLeft"
|
52
|
+
:tablePaddingLeft="tablePaddingLeft"
|
53
|
+
:noRelative="noRelative"
|
54
|
+
:showDisabledBackground="showDisabledBackground"
|
50
55
|
>
|
51
56
|
<draggableInputHandle
|
52
57
|
v-if="isDraggable && !isSearchBarVisible"
|
@@ -76,7 +81,7 @@
|
|
76
81
|
>
|
77
82
|
<slot name="selector" :selectedValue="selectedValue"></slot>
|
78
83
|
</selector>
|
79
|
-
<Caret @click.stop="toggleCaretDropdown">
|
84
|
+
<Caret @click.stop="toggleCaretDropdown" class="caret_dropdown">
|
80
85
|
<icon
|
81
86
|
v-if="isDropdownOpen"
|
82
87
|
name="arrow_up"
|
@@ -99,7 +104,7 @@
|
|
99
104
|
/>
|
100
105
|
</Caret>
|
101
106
|
</selectButton>
|
102
|
-
<DropdownWrapper ref="dropdownWrapperRef">
|
107
|
+
<DropdownWrapper ref="dropdownWrapperRef" :noRelative="noRelative">
|
103
108
|
<Teleport to="#portal-target">
|
104
109
|
<selectDropdown
|
105
110
|
ref="dropdown"
|
@@ -118,10 +123,13 @@
|
|
118
123
|
:fontColor="
|
119
124
|
dropdownFontColor || colorMode == 'dark' ? 'white' : 'black'
|
120
125
|
"
|
126
|
+
:noRelative="noRelative"
|
121
127
|
:fontSize="fontSize"
|
128
|
+
:minWidth="minWidth"
|
122
129
|
:selectedValue="selectedValue"
|
123
130
|
@option-selected="optionSelected"
|
124
131
|
@option-hovered="optionHovered"
|
132
|
+
@mouseleave="optionLeave"
|
125
133
|
>
|
126
134
|
<slot name="dropdown"></slot>
|
127
135
|
</selectDropdown>
|
@@ -212,11 +220,12 @@ const optionalLabel = styled.span`
|
|
212
220
|
`
|
213
221
|
const inputProps = {
|
214
222
|
selectWidth: String,
|
215
|
-
optionWidth: String
|
223
|
+
optionWidth: String,
|
224
|
+
noRelative: Boolean
|
216
225
|
}
|
217
226
|
const Container = styled('div', inputProps)`
|
218
227
|
width: ${(props) => props.selectWidth};
|
219
|
-
position: relative;
|
228
|
+
position: ${(props) => (props.noRelative ? 'static' : 'relative')};
|
220
229
|
display: inline-block;
|
221
230
|
`
|
222
231
|
const LabelWrapper = styled.div`
|
@@ -245,13 +254,22 @@ const selectButtonAttrs = {
|
|
245
254
|
selectMinHeight: String,
|
246
255
|
hasNoPadding: Boolean,
|
247
256
|
showBorder: Boolean,
|
248
|
-
paddingLeft: String
|
257
|
+
paddingLeft: String,
|
258
|
+
noRelative: Boolean,
|
259
|
+
tablePaddingLeft: String,
|
260
|
+
showDisabledBackground: Boolean
|
249
261
|
}
|
250
262
|
const selectButton = styled('div', selectButtonAttrs)`
|
251
|
-
position: relative;
|
263
|
+
position: ${(props) => (props.noRelative ? 'static' : 'relative')};
|
252
264
|
box-sizing: border-box;
|
253
265
|
border-radius: 4px;
|
254
266
|
max-width: ${(props) => (props.selectWidth ? props.selectWidth : '100%')};
|
267
|
+
${(props) =>
|
268
|
+
props.isSearchBarVisible
|
269
|
+
? ''
|
270
|
+
: `padding-left: ${
|
271
|
+
props.tablePaddingLeft ? props.tablePaddingLeft : props.paddingLeft
|
272
|
+
}`};
|
255
273
|
${(props) =>
|
256
274
|
props.hasNoPadding ? '' : `padding-left: ${props.paddingLeft}`};
|
257
275
|
text-align: left;
|
@@ -274,7 +292,7 @@ const selectButton = styled('div', selectButtonAttrs)`
|
|
274
292
|
}
|
275
293
|
`}
|
276
294
|
background-color:${(props) =>
|
277
|
-
props.disabled
|
295
|
+
props.disabled && props.showDisabledBackground
|
278
296
|
? props.theme.colors.grey5
|
279
297
|
: props.theme.colors[props.bgColor]
|
280
298
|
? props.theme.colors[props.bgColor]
|
@@ -300,13 +318,16 @@ const selectDropdownAttrs = {
|
|
300
318
|
fontSize: String,
|
301
319
|
dropdownPosition: Object,
|
302
320
|
hoveredValue: Number | String,
|
303
|
-
selectedValue: Number | String
|
321
|
+
selectedValue: Number | String,
|
322
|
+
noRelative: Boolean,
|
323
|
+
minWidth: String
|
304
324
|
}
|
305
325
|
const selectDropdown = styled('div', selectDropdownAttrs)`
|
306
326
|
box-sizing: border-box;
|
307
327
|
z-index: ${(props) => (props.isActive ? '2' : '99999')};
|
308
328
|
position: absolute;
|
309
|
-
top: ${(props) =>
|
329
|
+
top: ${(props) =>
|
330
|
+
props.noRelative ? 'auto' : props.dropdownPosition?.top + 'px'};
|
310
331
|
left: ${(props) => props.dropdownPosition?.left}px;
|
311
332
|
border: ${BORDER_WIDTH} solid ${(props) => props.theme.colors.grey4};
|
312
333
|
border-radius: 4px;
|
@@ -315,7 +336,13 @@ const selectDropdown = styled('div', selectDropdownAttrs)`
|
|
315
336
|
align-items: flex-start;
|
316
337
|
padding: 0px;
|
317
338
|
box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
|
318
|
-
width: ${(props) => (props.optionWidth ? props.optionWidth : '
|
339
|
+
width: ${(props) => (props.optionWidth ? props.optionWidth : '100%')};
|
340
|
+
min-width: ${(props) =>
|
341
|
+
props.minWidth
|
342
|
+
? props.minWidth
|
343
|
+
: props.optionWidth
|
344
|
+
? props.optionWidth
|
345
|
+
: '100%'};
|
319
346
|
background-color: ${(props) =>
|
320
347
|
props.theme.colors[props.bgColor]
|
321
348
|
? props.theme.colors[props.bgColor]
|
@@ -335,12 +362,17 @@ const selectDropdown = styled('div', selectDropdownAttrs)`
|
|
335
362
|
font-size: ${(props) => props.fontSize};
|
336
363
|
`
|
337
364
|
selectDropdown.emits = ['option-hovered', 'option-selected']
|
338
|
-
const
|
339
|
-
|
365
|
+
const DropdownAttrs = { noRelative: Boolean }
|
366
|
+
const DropdownWrapper = styled('div', DropdownAttrs)`
|
367
|
+
position: ${(props) => (props.noRelative ? 'static' : 'relative')};
|
340
368
|
`
|
341
|
-
const inputAttrs = {
|
369
|
+
const inputAttrs = {
|
370
|
+
alignItems: String,
|
371
|
+
hasLabel: Boolean,
|
372
|
+
noRelative: Boolean
|
373
|
+
}
|
342
374
|
const InputWrapper = styled('div', inputAttrs)`
|
343
|
-
position: relative;
|
375
|
+
position: ${(props) => (props.noRelative ? 'static' : 'relative')};
|
344
376
|
display: grid;
|
345
377
|
align-items: center;
|
346
378
|
gap: 8px;
|
@@ -369,6 +401,10 @@ export default {
|
|
369
401
|
required: false,
|
370
402
|
default: '13px'
|
371
403
|
},
|
404
|
+
noRelative: {
|
405
|
+
required: false,
|
406
|
+
default: false
|
407
|
+
},
|
372
408
|
label: {
|
373
409
|
required: false
|
374
410
|
},
|
@@ -401,6 +437,9 @@ export default {
|
|
401
437
|
required: false,
|
402
438
|
default: '36px'
|
403
439
|
},
|
440
|
+
minWidth: {
|
441
|
+
required: false
|
442
|
+
},
|
404
443
|
optionWidth: {
|
405
444
|
required: false,
|
406
445
|
default: null
|
@@ -476,6 +515,13 @@ export default {
|
|
476
515
|
type: Boolean,
|
477
516
|
default: false
|
478
517
|
},
|
518
|
+
tablePaddingLeft: {
|
519
|
+
required: false
|
520
|
+
},
|
521
|
+
showDisabledBackground: {
|
522
|
+
required: false,
|
523
|
+
default: true
|
524
|
+
},
|
479
525
|
minOptionLength: {
|
480
526
|
type: Number,
|
481
527
|
default: MIN_OPTION_LENGTH
|
@@ -16,6 +16,7 @@
|
|
16
16
|
:disabledTextColor="disabledTextColor"
|
17
17
|
:backgroundColor="colorMode == 'dark' ? '#000000' : backgroundColor"
|
18
18
|
:title="hoverText"
|
19
|
+
:minWidth="minWidth"
|
19
20
|
:padding="padding"
|
20
21
|
>
|
21
22
|
<slot></slot>
|
@@ -31,6 +32,7 @@ const optionProps = {
|
|
31
32
|
hoveredBgColor: String,
|
32
33
|
cursorType: String,
|
33
34
|
backgroundColor: String,
|
35
|
+
minWidth: String,
|
34
36
|
disabledBgColor: String,
|
35
37
|
disabledTextColor: String,
|
36
38
|
padding: String
|
@@ -44,6 +46,7 @@ const optionContainer = styled('div', optionProps)`
|
|
44
46
|
padding: ${(props) => props.padding};
|
45
47
|
gap: 14px;
|
46
48
|
width: 100%;
|
49
|
+
min-width: ${(props) => (props.minWidth ? props.minWidth : '100%')};
|
47
50
|
background-color: ${(props) =>
|
48
51
|
props.isDisabled
|
49
52
|
? props.theme.colors[props.disabledBgColor]
|
@@ -106,6 +109,9 @@ export default {
|
|
106
109
|
required: false,
|
107
110
|
default: false
|
108
111
|
},
|
112
|
+
minWidth: {
|
113
|
+
required: false
|
114
|
+
},
|
109
115
|
disabledBgColor: {
|
110
116
|
required: false,
|
111
117
|
default: 'white'
|
@@ -0,0 +1,86 @@
|
|
1
|
+
<template>
|
2
|
+
<page-container>
|
3
|
+
<marker-container
|
4
|
+
:backgroundColor="backgroundColor"
|
5
|
+
:hasIcon="!!iconName"
|
6
|
+
:cursor="cursor"
|
7
|
+
>
|
8
|
+
<icon
|
9
|
+
v-if="!!iconName"
|
10
|
+
:name="iconName"
|
11
|
+
color="white"
|
12
|
+
size="10px"
|
13
|
+
:cursor="cursor"
|
14
|
+
/>
|
15
|
+
<span>{{ label }}</span>
|
16
|
+
</marker-container>
|
17
|
+
</page-container>
|
18
|
+
</template>
|
19
|
+
|
20
|
+
<script>
|
21
|
+
// import MarkerItem from "@eturnity/eturnity_reusable_components/src/components/markerItem"
|
22
|
+
// To use:
|
23
|
+
// <marker-item
|
24
|
+
// label="Label"
|
25
|
+
// backgroundColor="#ab5348"
|
26
|
+
// iconName="icon_name"
|
27
|
+
// cursor="pointer"
|
28
|
+
// />
|
29
|
+
|
30
|
+
import styled from 'vue3-styled-components'
|
31
|
+
import Icon from '../icon'
|
32
|
+
|
33
|
+
const PageContainer = styled.div`
|
34
|
+
display: flex;
|
35
|
+
align-items: center;
|
36
|
+
font-size: 12px;
|
37
|
+
line-height: 14px;
|
38
|
+
`
|
39
|
+
|
40
|
+
const MarkerAttrs = {
|
41
|
+
backgroundColor: String,
|
42
|
+
hasIcon: Boolean,
|
43
|
+
cursor: String
|
44
|
+
}
|
45
|
+
const MarkerContainer = styled('div', MarkerAttrs)`
|
46
|
+
display: grid;
|
47
|
+
grid-template-columns: ${(props) => (props.hasIcon ? 'auto 1fr' : '1fr')};
|
48
|
+
grid-gap: 5px;
|
49
|
+
position: relative;
|
50
|
+
align-items: center;
|
51
|
+
padding: 2px 7px;
|
52
|
+
color: ${(props) => props.theme.colors.white};
|
53
|
+
background-color: ${(props) =>
|
54
|
+
props.backgroundColor ? props.backgroundColor : props.theme.colors.grey3};
|
55
|
+
border: 1px solid
|
56
|
+
${(props) =>
|
57
|
+
props.backgroundColor ? props.backgroundColor : props.theme.colors.grey3};
|
58
|
+
border-radius: 4px;
|
59
|
+
white-space: nowrap;
|
60
|
+
cursor: ${(props) => (props.isEditionAllowed ? 'pointer' : props.cursor)};
|
61
|
+
`
|
62
|
+
|
63
|
+
export default {
|
64
|
+
name: 'project-marker',
|
65
|
+
components: {
|
66
|
+
PageContainer,
|
67
|
+
MarkerContainer,
|
68
|
+
Icon
|
69
|
+
},
|
70
|
+
props: {
|
71
|
+
backgroundColor: {
|
72
|
+
required: false
|
73
|
+
},
|
74
|
+
iconName: {
|
75
|
+
required: false
|
76
|
+
},
|
77
|
+
label: {
|
78
|
+
required: true
|
79
|
+
},
|
80
|
+
cursor: {
|
81
|
+
required: false,
|
82
|
+
default: 'default'
|
83
|
+
}
|
84
|
+
}
|
85
|
+
}
|
86
|
+
</script>
|
@@ -3,11 +3,7 @@
|
|
3
3
|
<title-text :color="color" :fontSize="fontSize" :uppercase="uppercase">
|
4
4
|
{{ text }}
|
5
5
|
</title-text>
|
6
|
-
<info-text
|
7
|
-
v-if="!!infoText"
|
8
|
-
:text="infoText"
|
9
|
-
:alignArrow="infoAlign"
|
10
|
-
/>
|
6
|
+
<info-text v-if="!!infoText" :text="infoText" :alignArrow="infoAlign" />
|
11
7
|
</title-wrap>
|
12
8
|
</template>
|
13
9
|
|
@@ -18,16 +14,16 @@
|
|
18
14
|
// text="My Page Title"
|
19
15
|
// color="red"
|
20
16
|
// />
|
21
|
-
import styled from
|
22
|
-
import InfoText from
|
17
|
+
import styled from 'vue3-styled-components'
|
18
|
+
import InfoText from '../infoText'
|
23
19
|
|
24
20
|
const wrapAttrs = { hasInfoText: Boolean }
|
25
|
-
const TitleWrap = styled(
|
21
|
+
const TitleWrap = styled('div', wrapAttrs)`
|
26
22
|
display: grid;
|
27
23
|
align-items: center;
|
28
24
|
grid-gap: 12px;
|
29
25
|
grid-template-columns: ${(props) =>
|
30
|
-
props.hasInfoText ?
|
26
|
+
props.hasInfoText ? 'auto auto 1fr' : '1fr'};
|
31
27
|
margin-bottom: 20px;
|
32
28
|
`
|
33
29
|
|
@@ -35,7 +31,7 @@ const titleAttrs = { color: String, fontSize: String, uppercase: Boolean }
|
|
35
31
|
const TitleText = styled('span', titleAttrs)`
|
36
32
|
color: ${(props) => (props.color ? props.color : props.theme.colors.black)};
|
37
33
|
font-weight: bold;
|
38
|
-
font-size: ${(props) => (props.fontSize ? props.fontSize : '
|
34
|
+
font-size: ${(props) => (props.fontSize ? props.fontSize : '18px')};
|
39
35
|
text-transform: ${(props) => (props.uppercase ? 'uppercase' : 'none')};
|
40
36
|
`
|
41
37
|
|
@@ -54,8 +50,7 @@ export default {
|
|
54
50
|
required: false
|
55
51
|
},
|
56
52
|
fontSize: {
|
57
|
-
required: false
|
58
|
-
default: '16px'
|
53
|
+
required: false
|
59
54
|
},
|
60
55
|
uppercase: {
|
61
56
|
required: false,
|
@@ -63,11 +58,11 @@ export default {
|
|
63
58
|
},
|
64
59
|
infoText: {
|
65
60
|
required: false,
|
66
|
-
default: null
|
61
|
+
default: null
|
67
62
|
},
|
68
63
|
infoAlign: {
|
69
|
-
required: false
|
64
|
+
required: false
|
70
65
|
}
|
71
|
-
}
|
66
|
+
}
|
72
67
|
}
|
73
68
|
</script>
|
@@ -40,7 +40,12 @@
|
|
40
40
|
"
|
41
41
|
@click.stop="onSelectedTemplateClick(item.row)"
|
42
42
|
>
|
43
|
-
<img :src="fileIcon" alt="icon" width="12" height="16" />
|
43
|
+
<!-- <img :src="fileIcon" alt="icon" width="12" height="16" /> -->
|
44
|
+
<icon
|
45
|
+
name="template_icon_not_clickable"
|
46
|
+
:color="theme.colors.brightBlue"
|
47
|
+
size="14px"
|
48
|
+
/>
|
44
49
|
<div>{{ item.value }}</div>
|
45
50
|
</template-link>
|
46
51
|
<no-template v-if="item.type && item.type === 'no-template'">
|
@@ -178,6 +183,8 @@ import InputText from '../inputs/inputText'
|
|
178
183
|
import CollapseArrowIcon from '../../assets/icons/collapse_arrow_icon.svg'
|
179
184
|
import SubpositionMarkerIcon from '../../assets/icons/subposition_marker.svg'
|
180
185
|
import fileIconPng from '../../assets/icons/file_icon.png'
|
186
|
+
import Icon from '../icon'
|
187
|
+
import theme from '@/assets/theme.js'
|
181
188
|
|
182
189
|
const rowAttrs = { disabled: Boolean, isOpen: Boolean }
|
183
190
|
const DropdownRow = styled('div', rowAttrs)`
|
@@ -273,6 +280,7 @@ const ArrowWrapper = styled('div', arrowAttrs)`
|
|
273
280
|
const optionsAttrs = { top: Number, left: Number }
|
274
281
|
const OptionsContainer = styled('div', optionsAttrs)`
|
275
282
|
position: absolute;
|
283
|
+
margin-top: 10px;
|
276
284
|
display: grid;
|
277
285
|
grid-template-rows: 1fr auto;
|
278
286
|
left: 20px;
|
@@ -307,10 +315,6 @@ const OptionsWrapper = styled.div`
|
|
307
315
|
|
308
316
|
const OptionsItem = styled('div', containerAttrs)`
|
309
317
|
display: grid;
|
310
|
-
/* grid-template-columns: 1fr repeat(
|
311
|
-
${(props) => props.colSpan},
|
312
|
-
minmax(50px, auto)
|
313
|
-
); */
|
314
318
|
grid-template-columns: ${(props) => props.width};
|
315
319
|
grid-gap: 30px;
|
316
320
|
padding: 10px;
|
@@ -343,6 +347,7 @@ const TemplateButton = styled.div`
|
|
343
347
|
display: inline-block;
|
344
348
|
border-radius: 4px;
|
345
349
|
text-align: center;
|
350
|
+
margin-left: 15px;
|
346
351
|
`
|
347
352
|
|
348
353
|
const NoTemplate = styled.div`
|
@@ -350,14 +355,16 @@ const NoTemplate = styled.div`
|
|
350
355
|
font-style: italic;
|
351
356
|
overflow: hidden;
|
352
357
|
text-overflow: ellipsis;
|
358
|
+
padding-left: 15px;
|
353
359
|
`
|
354
360
|
|
355
361
|
const TemplateLink = styled.div`
|
356
|
-
color: ${(props) => props.theme.colors.
|
362
|
+
color: ${(props) => props.theme.colors.brightBlue};
|
357
363
|
cursor: pointer;
|
358
364
|
display: grid;
|
359
365
|
grid-template-columns: auto 1fr;
|
360
366
|
grid-gap: 12px;
|
367
|
+
padding-left: 15px;
|
361
368
|
`
|
362
369
|
|
363
370
|
const InputContainer = styled.div`
|
@@ -433,7 +440,8 @@ export default {
|
|
433
440
|
ArrowContainer,
|
434
441
|
TextContainer,
|
435
442
|
NestedIcon,
|
436
|
-
NestedContainer
|
443
|
+
NestedContainer,
|
444
|
+
Icon
|
437
445
|
},
|
438
446
|
props: {
|
439
447
|
colSpan: {
|
@@ -599,6 +607,9 @@ export default {
|
|
599
607
|
computed: {
|
600
608
|
getCustomName() {
|
601
609
|
return this.inputText
|
610
|
+
},
|
611
|
+
theme() {
|
612
|
+
return theme
|
602
613
|
}
|
603
614
|
},
|
604
615
|
watch: {
|
@@ -1,4 +0,0 @@
|
|
1
|
-
<svg width="15" height="9" viewBox="0 0 15 9" fill="none" xmlns="http://www.w3.org/2000/svg">
|
2
|
-
<path d="M14.462 8.46H12.894C12.7848 8.46 12.697 8.4327 12.6307 8.37809C12.5683 8.32349 12.5176 8.26108 12.4786 8.19087L10.5186 4.94378C10.4874 5.04129 10.4504 5.12514 10.4075 5.19535L8.52943 8.19087C8.48263 8.25718 8.42802 8.31958 8.36562 8.37809C8.30711 8.4327 8.2291 8.46 8.13159 8.46H6.66309L9.47138 4.10714L6.77425 0H8.34221C8.45143 0 8.52943 0.0156017 8.57624 0.0468051C8.62694 0.0741079 8.67375 0.120913 8.71665 0.18722L10.6415 3.28805C10.6805 3.19054 10.7273 3.09303 10.7819 2.99552L12.5488 0.216473C12.5917 0.142365 12.6385 0.0877595 12.6892 0.052656C12.7399 0.017552 12.8043 0 12.8823 0H14.3859L11.6654 4.04278L14.462 8.46Z" fill="#263238"/>
|
3
|
-
<path d="M3.16519 7.23137C3.45772 7.23137 3.70344 7.19627 3.90237 7.12606C4.10129 7.05585 4.25925 6.96224 4.37627 6.84523C4.49718 6.72822 4.58299 6.5917 4.63369 6.43569C4.6883 6.27967 4.7156 6.1139 4.7156 5.93838C4.7156 5.75506 4.68635 5.59124 4.62784 5.44693C4.56934 5.29871 4.47768 5.1739 4.35286 5.07249C4.22805 4.96718 4.06618 4.88722 3.86726 4.83261C3.67224 4.77801 3.43627 4.75071 3.15934 4.75071H1.57382V7.23137H3.16519ZM1.57382 1.21693V3.66249H2.82585C3.36411 3.66249 3.76975 3.56498 4.04278 3.36996C4.31971 3.17494 4.45817 2.86486 4.45817 2.43971C4.45817 1.99896 4.33336 1.68498 4.08373 1.49776C3.83411 1.31054 3.44407 1.21693 2.91361 1.21693H1.57382ZM2.91361 0C3.46747 0 3.94137 0.0526557 4.33531 0.157967C4.72925 0.263278 5.05104 0.413444 5.30066 0.608465C5.55419 0.803486 5.73946 1.03946 5.85647 1.31639C5.97349 1.59332 6.03199 1.90535 6.03199 2.25249C6.03199 2.45141 6.00274 2.64253 5.94423 2.82585C5.88573 3.00527 5.79407 3.17494 5.66925 3.33485C5.54834 3.49087 5.39232 3.63324 5.2012 3.76195C5.01398 3.89066 4.78971 3.99988 4.52838 4.08959C5.69071 4.35091 6.27187 4.97888 6.27187 5.97349C6.27187 6.33232 6.20361 6.66386 6.0671 6.96809C5.93058 7.27232 5.73166 7.5356 5.47033 7.75793C5.209 7.97635 4.88722 8.14797 4.50498 8.27278C4.12274 8.39759 3.68589 8.46 3.19444 8.46H0V0H2.91361Z" fill="#263238"/>
|
4
|
-
</svg>
|
@@ -1,3 +0,0 @@
|
|
1
|
-
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
2
|
-
<path d="M16 0H2C0.89 0 0 0.9 0 2V16C0 17.1 0.89 18 2 18H6V16H2V2H16V16H12V18H16C17.1 18 18 17.1 18 16V2C18 0.9 17.11 0 16 0ZM9 6L5 10H8V18H10V10H13L9 6Z" fill="#263238"/>
|
3
|
-
</svg>
|