@eturnity/eturnity_reusable_components 7.51.16-EPDM-13568.0 → 7.51.16-EPDM-13568.1

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eturnity/eturnity_reusable_components",
3
- "version": "7.51.16-EPDM-13568.0",
3
+ "version": "7.51.16-EPDM-13568.1",
4
4
  "files": [
5
5
  "dist",
6
6
  "src"
@@ -0,0 +1,5 @@
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="M5.5 12.75C5.5 13.4404 6.17157 14 7 14C7.82843 14 8.5 13.4404 8.5 12.75H5.5Z" fill="white"/>
3
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M8 1.25C8 0.559644 7.55228 -3.91405e-08 7 -8.74228e-08C6.44772 -1.35705e-07 6 0.559644 6 1.25L8 1.25Z" fill="white"/>
4
+ <path d="M7 1C4.79086 1 3 2.64162 3 4.66667V6.55904C3 8.11545 2.54599 9.63806 1.69361 10.9403L1 12H13L12.3064 10.9403C11.454 9.63806 11 8.11545 11 6.55904V4.66667C11 2.64162 9.20914 1 7 1Z" fill="white"/>
5
+ </svg>
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <PageContainer :should-position="shouldPosition">
3
- <ButtonContainer :data-id="dataId">
3
+ <ButtonContainer :data-id="dataId" :data-qa-id="dataQaId">
4
4
  <PlusButtonSvg />
5
5
  </ButtonContainer>
6
6
  </PageContainer>
@@ -57,6 +57,10 @@
57
57
  type: String,
58
58
  default: '',
59
59
  },
60
+ dataQaId: {
61
+ type: String,
62
+ default: '',
63
+ },
60
64
  },
61
65
  }
62
66
  </script>
@@ -4,6 +4,7 @@
4
4
  :id="id"
5
5
  :custom-color="customColor"
6
6
  :data-id="dataId"
7
+ :data-qa-id="dataQaId"
7
8
  :font-color="fontColor"
8
9
  :height="height"
9
10
  :is-disabled="isDisabled"
@@ -164,6 +165,10 @@
164
165
  type: String,
165
166
  default: '',
166
167
  },
168
+ dataQaId: {
169
+ type: String,
170
+ default: '',
171
+ },
167
172
  },
168
173
  }
169
174
  </script>
@@ -19,6 +19,9 @@
19
19
  :color="color"
20
20
  data-test-id="icon_striked_line"
21
21
  />
22
+ <CountWrapper v-if="count > 0" data-test-id="icon_count">
23
+ {{ counter }}
24
+ </CountWrapper>
22
25
  </Wrapper>
23
26
  </template>
24
27
 
@@ -34,7 +37,7 @@
34
37
  // isStriked = "true"
35
38
  // />
36
39
 
37
- import { onMounted, reactive, watch } from 'vue'
40
+ import { computed, onMounted, reactive, watch } from 'vue'
38
41
  import styled from 'vue3-styled-components'
39
42
  import { fetchIcon } from './iconCache.mjs'
40
43
 
@@ -69,6 +72,10 @@
69
72
  required: false,
70
73
  default: null,
71
74
  },
75
+ count: {
76
+ required: false,
77
+ default: 0,
78
+ },
72
79
  animation: {
73
80
  required: false,
74
81
  default: 'none',
@@ -92,6 +99,21 @@
92
99
  line-height: 0;
93
100
  `
94
101
 
102
+ const CountWrapper = styled('div')`
103
+ position: absolute;
104
+ top: -7px;
105
+ right: -7px;
106
+ background-color: ${({ theme }) => theme.colors.red};
107
+ color: ${({ theme }) => theme.colors.white};
108
+ border-radius: 4px;
109
+ width: 15px;
110
+ height: 15px;
111
+ display: flex;
112
+ justify-content: center;
113
+ align-items: center;
114
+ font-size: 10px;
115
+ `
116
+
95
117
  const StrikedLine = styled('div', { color: String })`
96
118
  display: flex;
97
119
  position: absolute;
@@ -145,6 +167,10 @@
145
167
  icon.html = await fetchIcon(props.name.toLowerCase())
146
168
  }
147
169
 
170
+ const counter = computed(() =>
171
+ props.count > 9 ? '9+' : props.count.toString()
172
+ )
173
+
148
174
  onMounted(() => loadSvg())
149
175
 
150
176
  watch(() => props.name, loadSvg)
@@ -4,6 +4,7 @@
4
4
  :border-radius="borderRadius"
5
5
  :color="iconColor"
6
6
  :data-id="dataId"
7
+ :data-qa-id="dataQaId"
7
8
  :disabled="disabled"
8
9
  :has-border="hasBorder"
9
10
  :hovered-background-color="hoveredBackgroundColor"
@@ -154,6 +155,10 @@
154
155
  type: String,
155
156
  default: '',
156
157
  },
158
+ dataQaId: {
159
+ type: String,
160
+ default: '',
161
+ },
157
162
  isHovered: {
158
163
  required: false,
159
164
  default: false,
@@ -13,6 +13,7 @@
13
13
  <InputCheckbox
14
14
  :checked="isChecked"
15
15
  :data-id="dataId"
16
+ :data-qa-id="dataQaId"
16
17
  type="checkbox"
17
18
  @change="onChangeHandler(!isChecked)"
18
19
  />
@@ -214,6 +215,10 @@
214
215
  type: String,
215
216
  default: '',
216
217
  },
218
+ dataQaId: {
219
+ type: String,
220
+ default: '',
221
+ },
217
222
  cursorType: {
218
223
  type: String,
219
224
  default: 'pointer',
@@ -15,6 +15,7 @@
15
15
  <LabelWrapper v-if="labelText">
16
16
  <LabelText
17
17
  :data-id="labelDataId"
18
+ :data-test-id="labelDataTestId"
18
19
  :label-font-color="labelFontColor"
19
20
  :label-font-weight="labelFontWeight"
20
21
  >
@@ -40,6 +41,7 @@
40
41
  "
41
42
  :color-mode="colorMode"
42
43
  :data-id="inputDataId"
44
+ :data-qa-id="dataQaId"
43
45
  :disabled="disabled"
44
46
  :font-color="colorMode === 'transparent' ? 'white' : fontColor"
45
47
  :font-size="fontSize"
@@ -647,6 +649,10 @@
647
649
  required: false,
648
650
  default: '',
649
651
  },
652
+ dataQaId: {
653
+ required: false,
654
+ default: '',
655
+ },
650
656
  showSelect: {
651
657
  type: Boolean,
652
658
  default: false,
@@ -34,6 +34,7 @@
34
34
  :background-color="backgroundColor"
35
35
  :border-color="borderColor"
36
36
  :data-id="inputDataId"
37
+ :data-qa-id="dataQaId"
37
38
  data-test-id="input"
38
39
  :default-padding="defaultPadding"
39
40
  :disabled="disabled"
@@ -378,6 +379,11 @@
378
379
  default: '',
379
380
  type: String,
380
381
  },
382
+ dataQaId: {
383
+ required: false,
384
+ default: '',
385
+ type: String,
386
+ },
381
387
  iconName: {
382
388
  required: false,
383
389
  default: null,
@@ -17,6 +17,7 @@
17
17
  <Radio
18
18
  :checked="selectedOption === item.value"
19
19
  :data-id="`radio_button_${dataId}_option_${item.value}`"
20
+ :data-qa-id="dataQaId"
20
21
  :data-test-id="'radioInput_' + item.value"
21
22
  :disabled="item.disabled"
22
23
  :name="'radioButtons_' + radioName"
@@ -296,6 +297,11 @@
296
297
  required: false,
297
298
  type: String,
298
299
  },
300
+ dataQaId: {
301
+ type: String,
302
+ default: '',
303
+ required: false,
304
+ },
299
305
  colorMode: {
300
306
  default: '',
301
307
  required: false,
@@ -5,6 +5,7 @@
5
5
  <InputContainer
6
6
  ref="inputElement"
7
7
  :data-id="dataId"
8
+ :data-qa-id="dataQaId"
8
9
  :disabled="disabled"
9
10
  :has-focus="hasFocus"
10
11
  :input-width="inputWidth"
@@ -128,6 +129,11 @@
128
129
  default: '',
129
130
  type: [String, Number],
130
131
  },
132
+ dataQaId: {
133
+ required: false,
134
+ default: '',
135
+ type: String,
136
+ },
131
137
  iconPosition: {
132
138
  type: String,
133
139
  default: 'right',
@@ -13,6 +13,7 @@
13
13
  <LabelWrapper
14
14
  v-if="label"
15
15
  :data-id="labelDataId"
16
+ :data-qa-id="dataQaId + '_label'"
16
17
  :info-text-message="!!infoTextMessage || !!$slots.infoText"
17
18
  >
18
19
  <InputLabel
@@ -51,6 +52,7 @@
51
52
  class="select-button"
52
53
  :color-mode="colorMode"
53
54
  :data-id="dataId"
55
+ :data-qa-id="dataQaId"
54
56
  :disabled="disabled"
55
57
  :font-color="
56
58
  buttonFontColor || colorMode == 'dark' || colorMode == 'transparent'
@@ -605,6 +607,10 @@
605
607
  type: String,
606
608
  default: '',
607
609
  },
610
+ dataQaId: {
611
+ type: String,
612
+ default: '',
613
+ },
608
614
  hasSelectButtonPadding: {
609
615
  required: false,
610
616
  type: Boolean,
@@ -18,6 +18,7 @@
18
18
  >
19
19
  <textarea
20
20
  :data-id="inputDataId"
21
+ :data-qa-id="dataQaId"
21
22
  :disabled="isDisabled"
22
23
  :placeholder="placeholder"
23
24
  :resize="resize"
@@ -185,6 +186,11 @@
185
186
  required: false,
186
187
  default: '',
187
188
  },
189
+ dataQaId: {
190
+ required: false,
191
+ default: '',
192
+ type: String,
193
+ },
188
194
  },
189
195
  methods: {
190
196
  onChangeHandler($event) {
@@ -2,6 +2,7 @@
2
2
  <Container>
3
3
  <FlexWrapper
4
4
  :data-id="dataId"
5
+ :data-qa-id="dataQaId"
5
6
  data-test-id="page_wrapper"
6
7
  :disabled="disabled"
7
8
  :size="size"
@@ -304,6 +305,10 @@
304
305
  type: String,
305
306
  default: '',
306
307
  },
308
+ dataQaId: {
309
+ type: String,
310
+ default: '',
311
+ },
307
312
  },
308
313
  methods: {
309
314
  onToggleChange() {
@@ -2,10 +2,9 @@
2
2
  <PageWrapper
3
3
  :backdrop="backdrop"
4
4
  :class="{ visible: isOpen, hidden: !isOpen }"
5
- :is-open="isOpen"
6
5
  :position="position"
7
6
  >
8
- <ModalContainer :overflow="overflowRule" @click="onClickModalContainer">
7
+ <ModalContainer v-if="isOpen" :overflow="overflowRule" @click="onClickModalContainer">
9
8
  <Spinner v-if="isLoading" :limited-to-modal="true" size="50px" />
10
9
  <ContentContainer :visible="!isLoading">
11
10
  <slot></slot>
@@ -35,7 +34,7 @@
35
34
  visibility: ${(props) => (props.visible ? 'inherit' : 'hidden')};
36
35
  `
37
36
 
38
- const pageAttrs = { isOpen: Boolean, backdrop: String, position: String }
37
+ const pageAttrs = { backdrop: String, position: String }
39
38
  const PageWrapper = styled('div', pageAttrs)`
40
39
  position: ${(props) => props.position}
41
40
  display: grid;
@@ -2,6 +2,7 @@
2
2
  <div
3
3
  :class="className"
4
4
  :data-id="dataId"
5
+ :data-qa-id="dataQaId"
5
6
  :style="style"
6
7
  @mousedown="elementMouseDown"
7
8
  @touchstart="elementTouchDown"
@@ -64,6 +65,10 @@
64
65
  type: String,
65
66
  default: '',
66
67
  },
68
+ dataQaId: {
69
+ type: String,
70
+ default: '',
71
+ },
67
72
  className: {
68
73
  type: String,
69
74
  default: 'vdr',