@eturnity/eturnity_reusable_components 8.19.8-EPDM-11600.10 → 8.19.8-EPDM-12618.6
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 +1 -1
- package/src/assets/svgIcons/erase.svg +3 -2
- package/src/assets/theme.js +1 -1
- package/src/components/barchart/index.vue +2 -2
- package/src/components/barchart/styles/chart.js +14 -12
- package/src/components/inputs/inputNumber/InputNumber.stories.js +5 -5
- package/src/components/inputs/inputNumber/index.vue +2 -7
- package/src/components/inputs/inputText/index.vue +1 -3
- package/src/components/pageSubtitle/index.vue +1 -7
- package/src/components/tableDropdown/index.vue +6 -4
package/package.json
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
-
<svg
|
2
|
-
|
1
|
+
<svg fill="none" height="16" viewbox="12 12 16 16" width="16" xmlns="http://www.w3.org/2000/svg">
|
2
|
+
<circle cx="20" cy="20" r="7"></circle>
|
3
|
+
<path d="M24.9592 15.0408C22.2382 12.3197 17.7618 12.3197 15.0408 15.0408C12.3197 17.7618 12.3197 22.2382 15.0408 24.9592C17.7618 27.6803 22.2382 27.6803 24.9592 24.9592C27.6803 22.2382 27.6803 17.8495 24.9592 15.0408ZM23.6426 22.5016L22.4138 23.7304L19.9561 21.2727L17.4984 23.7304L16.2696 22.5016L18.7273 20.0439L16.2696 17.5862L17.4984 16.3574L19.9561 18.815L22.4138 16.3574L23.6426 17.5862L21.185 20.0439L23.6426 22.5016Z" fill="#FF5656"></path>
|
3
4
|
</svg>
|
package/src/assets/theme.js
CHANGED
@@ -333,7 +333,7 @@ const theme = (() => {
|
|
333
333
|
borderColor: semanticColors.grey[300],
|
334
334
|
},
|
335
335
|
active: {
|
336
|
-
backgroundColor: semanticColors.purple[
|
336
|
+
backgroundColor: semanticColors.purple[100],
|
337
337
|
textColor: semanticColors.purple[600],
|
338
338
|
borderColor: semanticColors.grey[600],
|
339
339
|
},
|
@@ -17,8 +17,8 @@
|
|
17
17
|
/>
|
18
18
|
</ChartControlsWrapper>
|
19
19
|
<GraphSection :height="height" :width="width">
|
20
|
-
<YAxis :width="yAxisWidth">
|
21
|
-
<YAxisTitleWrapper v-if="yAxisTitle">
|
20
|
+
<YAxis :width="yAxisWidth" :height="height">
|
21
|
+
<YAxisTitleWrapper v-if="yAxisTitle" :height="yAxisHeight">
|
22
22
|
{{ yAxisTitle }}
|
23
23
|
</YAxisTitleWrapper>
|
24
24
|
<YAxisRow
|
@@ -16,9 +16,12 @@ export const GraphSection = styled('div', { width: String, height: String })`
|
|
16
16
|
display: flex;
|
17
17
|
`
|
18
18
|
|
19
|
-
export const YAxis = styled('div', { width: String })`
|
19
|
+
export const YAxis = styled('div', { width: String, height: String })`
|
20
20
|
width: ${(props) => props.width};
|
21
|
+
display: flex;
|
22
|
+
flex-direction: column;
|
21
23
|
position: relative;
|
24
|
+
height: ${(props) => props.height};
|
22
25
|
`
|
23
26
|
|
24
27
|
export const YAxisRow = styled('div', { percentage: Number })`
|
@@ -54,19 +57,18 @@ export const YAxisLine = styled('div', { yAxisWidth: String })`
|
|
54
57
|
transform: translateY(-50%);
|
55
58
|
`
|
56
59
|
|
57
|
-
export const YAxisTitleWrapper = styled('div')`
|
60
|
+
export const YAxisTitleWrapper = styled('div', { height: String })`
|
61
|
+
position: absolute;
|
62
|
+
left: -66px;
|
63
|
+
top: ${(props) => props.height};
|
64
|
+
transform: rotate(-90deg) translateX(50%);
|
65
|
+
transform-origin: right;
|
58
66
|
font-size: 12px;
|
59
|
-
|
60
|
-
color: ${(props) => props.theme.semanticColors.grey[700]};
|
61
|
-
white-space: nowrap;
|
62
|
-
height: 0;
|
63
|
-
width: 0;
|
67
|
+
color: ${(props) => props.theme.semanticColors.teal[600]};
|
64
68
|
display: flex;
|
65
|
-
align-items:
|
66
|
-
|
67
|
-
|
68
|
-
top: 50%;
|
69
|
-
transform: rotate(-90deg);
|
69
|
+
align-items: center;
|
70
|
+
white-space: nowrap;
|
71
|
+
font-family: ${(props) => props.theme.fonts.mainFont};
|
70
72
|
`
|
71
73
|
|
72
74
|
export const ScrollContainer = styled('div', {
|
@@ -3,15 +3,15 @@ import InputNumber from './index.vue'
|
|
3
3
|
export default {
|
4
4
|
title: 'InputNumber',
|
5
5
|
component: InputNumber,
|
6
|
+
// argTypes: {},
|
6
7
|
}
|
7
8
|
|
8
|
-
const Template = (args) => ({
|
9
|
+
const Template = (args, { argTypes }) => ({
|
9
10
|
// Components used in your story `template` are defined in the `components` object
|
10
11
|
components: { InputNumber },
|
11
|
-
setup()
|
12
|
-
|
13
|
-
|
14
|
-
template: `<InputNumber v-bind="args" />`,
|
12
|
+
// The story's `args` need to be mapped into the template through the `setup()` method
|
13
|
+
props: Object.keys(argTypes),
|
14
|
+
template: '<input-number v-bind="$props" />',
|
15
15
|
|
16
16
|
// import InputNumber from "@eturnity/eturnity_reusable_components/src/components/inputs/inputNumber"
|
17
17
|
// How to use:
|
@@ -43,6 +43,7 @@
|
|
43
43
|
:color-mode="colorMode"
|
44
44
|
:data-id="inputDataId"
|
45
45
|
:data-qa-id="dataQaId"
|
46
|
+
:disabled="disabled"
|
46
47
|
:font-color="colorMode === 'transparent' ? 'white' : fontColor"
|
47
48
|
:font-size="fontSize"
|
48
49
|
:has-label-slot="hasLabelSlot"
|
@@ -133,7 +134,7 @@
|
|
133
134
|
</ArrowButton>
|
134
135
|
</ArrowControls>
|
135
136
|
</InputWrapper>
|
136
|
-
<ErrorMessage v-if="isError
|
137
|
+
<ErrorMessage v-if="isError">{{ errorMessage }}</ErrorMessage>
|
137
138
|
</Container>
|
138
139
|
</template>
|
139
140
|
|
@@ -657,18 +658,12 @@
|
|
657
658
|
required: false,
|
658
659
|
default: '',
|
659
660
|
},
|
660
|
-
labelDataTestId: {
|
661
|
-
type: String,
|
662
|
-
required: false,
|
663
|
-
default: '',
|
664
|
-
},
|
665
661
|
inputDataId: {
|
666
662
|
type: String,
|
667
663
|
required: false,
|
668
664
|
default: '',
|
669
665
|
},
|
670
666
|
dataQaId: {
|
671
|
-
type: String,
|
672
667
|
required: false,
|
673
668
|
default: '',
|
674
669
|
},
|
@@ -179,9 +179,7 @@
|
|
179
179
|
position: relative;
|
180
180
|
font-size: ${(props) => (props.fontSize ? props.fontSize : '16px')};
|
181
181
|
color: ${(props) =>
|
182
|
-
props.
|
183
|
-
? props.theme.colors.grey6
|
184
|
-
: props.isDisabled
|
182
|
+
props.isDisabled
|
185
183
|
? props.theme.colors.grey2
|
186
184
|
: props.fontColor
|
187
185
|
? props.fontColor + ' !important'
|
@@ -5,8 +5,7 @@
|
|
5
5
|
:has-info-text="!!infoText"
|
6
6
|
:margin-bottom="marginBottom"
|
7
7
|
>
|
8
|
-
<span
|
9
|
-
<span v-else data-test-id="page_subtitle_text">
|
8
|
+
<span data-test-id="page_subtitle_text">
|
10
9
|
{{ text }}
|
11
10
|
</span>
|
12
11
|
<InfoText
|
@@ -59,11 +58,6 @@
|
|
59
58
|
required: true,
|
60
59
|
type: String,
|
61
60
|
},
|
62
|
-
containsHtml: {
|
63
|
-
required: false,
|
64
|
-
type: Boolean,
|
65
|
-
default: false,
|
66
|
-
},
|
67
61
|
color: {
|
68
62
|
required: false,
|
69
63
|
type: String,
|
@@ -78,10 +78,13 @@
|
|
78
78
|
v-else
|
79
79
|
class="inputField"
|
80
80
|
:disabled="customInputDisabled"
|
81
|
+
:error-message="item.errorMessage"
|
81
82
|
:font-color="showArchived ? theme.colors.red : 'black'"
|
83
|
+
:is-error="item.isError"
|
82
84
|
:min-width="item.value.length + 'ch'"
|
83
85
|
:no-border="true"
|
84
86
|
:value="item.value"
|
87
|
+
@input-blur="onCustomInputChange($event.trim())"
|
85
88
|
@input-change="onCustomInputChange($event)"
|
86
89
|
/>
|
87
90
|
</InputContainer>
|
@@ -162,7 +165,7 @@
|
|
162
165
|
</OptionsItem>
|
163
166
|
</OptionsWrapper>
|
164
167
|
<CustomContainer
|
165
|
-
v-if="
|
168
|
+
v-if="getCustomName.length && allowFreeInputs"
|
166
169
|
@click="onCustomNameClick()"
|
167
170
|
>
|
168
171
|
<CustomName>{{ getCustomName }}</CustomName>
|
@@ -226,7 +229,6 @@
|
|
226
229
|
const ItemAttrs = { isNested: Boolean, showArchived: Boolean }
|
227
230
|
const ComponentItem = styled('td', ItemAttrs)`
|
228
231
|
padding-left: ${(props) => (props.isNested ? '14px !important' : '0')};
|
229
|
-
overflow: hidden;
|
230
232
|
text-overflow: ellipsis;
|
231
233
|
padding-right: 0 !important;
|
232
234
|
color: ${(props) =>
|
@@ -558,7 +560,7 @@
|
|
558
560
|
},
|
559
561
|
computed: {
|
560
562
|
getCustomName() {
|
561
|
-
return this.inputText
|
563
|
+
return this.inputText.trim()
|
562
564
|
},
|
563
565
|
theme() {
|
564
566
|
return theme
|
@@ -652,7 +654,7 @@
|
|
652
654
|
},
|
653
655
|
onCustomNameClick() {
|
654
656
|
this.wasClicked = true
|
655
|
-
this.$emit('on-custom-input-name', this.
|
657
|
+
this.$emit('on-custom-input-name', this.getCustomName)
|
656
658
|
this.$emit('toggle-dropdown-open', { close: true })
|
657
659
|
this.inputText = ''
|
658
660
|
},
|