@eturnity/eturnity_reusable_components 7.12.4 → 7.12.6-EPDM-7951.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.
Files changed (50) hide show
  1. package/.storybook/preview.js +1 -1
  2. package/package.json +18 -23
  3. package/src/App.vue +2 -2
  4. package/src/components/addNewButton/index.vue +5 -3
  5. package/src/components/buttons/buttonIcon/index.vue +1 -1
  6. package/src/components/buttons/closeButton/index.vue +1 -1
  7. package/src/components/buttons/mainButton/index.vue +6 -1
  8. package/src/components/deleteIcon/DeleteIcon.stories.js +7 -7
  9. package/src/components/deleteIcon/index.vue +25 -21
  10. package/src/components/draggableInputHandle/index.vue +24 -25
  11. package/src/components/dropdown/index.vue +129 -110
  12. package/src/components/errorMessage/index.vue +1 -1
  13. package/src/components/filter/filterSettings.vue +55 -97
  14. package/src/components/filter/index.vue +3 -3
  15. package/src/components/filter/parentDropdown.vue +2 -2
  16. package/src/components/icon/iconCollection.vue +2 -2
  17. package/src/components/icon/index.vue +60 -54
  18. package/src/components/iconWrapper/index.vue +1 -4
  19. package/src/components/infoCard/index.vue +2 -3
  20. package/src/components/infoText/index.vue +1 -1
  21. package/src/components/inputs/checkbox/index.vue +21 -6
  22. package/src/components/inputs/inputNumber/index.vue +6 -9
  23. package/src/components/inputs/inputNumberQuestion/index.vue +1 -1
  24. package/src/components/inputs/inputText/index.vue +3 -3
  25. package/src/components/inputs/radioButton/index.vue +1 -1
  26. package/src/components/inputs/searchInput/index.vue +7 -8
  27. package/src/components/inputs/select/index.vue +195 -55
  28. package/src/components/inputs/select/option/index.vue +5 -5
  29. package/src/components/inputs/slider/index.vue +16 -16
  30. package/src/components/inputs/switchField/index.vue +2 -2
  31. package/src/components/inputs/textAreaInput/index.vue +1 -1
  32. package/src/components/inputs/toggle/index.vue +2 -2
  33. package/src/components/label/index.vue +27 -31
  34. package/src/components/modals/modal/index.vue +2 -6
  35. package/src/components/navigationTabs/index.vue +27 -20
  36. package/src/components/pageSubtitle/index.vue +1 -1
  37. package/src/components/pageTitle/index.vue +4 -4
  38. package/src/components/pagination/index.vue +1 -1
  39. package/src/components/progressBar/index.vue +1 -1
  40. package/src/components/projectMarker/index.vue +10 -7
  41. package/src/components/sideMenu/index.vue +1 -1
  42. package/src/components/spinner/index.vue +6 -11
  43. package/src/components/tableDropdown/index.vue +21 -26
  44. package/src/components/tables/mainTable/exampleNested.vue +1 -1
  45. package/src/components/tables/mainTable/index.vue +2 -1
  46. package/src/components/tables/viewTable/index.vue +2 -2
  47. package/src/components/threeDots/index.vue +1 -1
  48. package/src/components/videoThumbnail/index.vue +95 -100
  49. package/src/helpers/translateLang.js +1 -1
  50. package/src/main.js +4 -11
@@ -3,7 +3,7 @@
3
3
  <upper-container v-if="filterViews && filterViews.length">
4
4
  <view-container :maxWidth="activeView.length">
5
5
  <select-component
6
- @click.native.stop
6
+ @click.stop
7
7
  selectWidth="100%"
8
8
  selectHeight="36px"
9
9
  fontSize="13px"
@@ -19,10 +19,10 @@
19
19
  <Option
20
20
  v-for="(item, idx) in filterViews"
21
21
  :key="idx + '_view'"
22
- @click.native="$emit('on-view-select', item)"
22
+ @click="$emit('on-view-select', item)"
23
23
  :value="item.name"
24
24
  >{{ item.name }}
25
- <delete-icon @click.native.stop="$emit('on-view-delete', item)"
25
+ <delete-icon @click.stop="$emit('on-view-delete', item)"
26
26
  /></Option>
27
27
  </template>
28
28
  </select-component>
@@ -55,28 +55,28 @@
55
55
  ghost-class="ghost"
56
56
  :setData="modifyDragItem"
57
57
  v-model="item.dataOptions"
58
+ itemKey="choice"
58
59
  >
59
- <checkbox-wrapper
60
- v-for="(column, index) in item.dataOptions"
61
- :key="index + 'dataOption'"
62
- >
63
- <drag-container class="drag-container">
64
- <icon :name="'duplicate-1'" size="12px" />
65
- </drag-container>
66
- <checkbox
67
- :label="column.text"
68
- :isChecked="column.selected"
69
- @on-event-handler="
70
- onChange({
71
- dataType: item.type,
72
- value: $event,
73
- choice: column.choice
74
- })
75
- "
76
- size="small"
77
- :isDisabled="column.selected && isCheckboxDisabled"
78
- />
79
- </checkbox-wrapper>
60
+ <template #item="{ element: column }">
61
+ <checkbox-wrapper>
62
+ <drag-container class="drag-container">
63
+ <icon :name="'duplicate-1'" size="12px" />
64
+ </drag-container>
65
+ <checkbox
66
+ :label="column.text"
67
+ :isChecked="column.selected"
68
+ @on-event-handler="
69
+ onChange({
70
+ dataType: item.type,
71
+ value: $event,
72
+ choice: column.choice
73
+ })
74
+ "
75
+ size="small"
76
+ :isDisabled="column.selected && isCheckboxDisabled"
77
+ />
78
+ </checkbox-wrapper>
79
+ </template>
80
80
  </draggable>
81
81
  </checkbox-container>
82
82
  </row-container>
@@ -169,12 +169,19 @@
169
169
  >
170
170
  <row-label :data-id="filter.dataId">{{ filter.label }}</row-label>
171
171
  <grid-container>
172
- <date-picker-input
172
+ <VueDatePicker
173
173
  :placeholder="$gettext('Date from')"
174
- :lang="getDatePickerLanguage()"
175
- type="date"
176
- :value="filter.range.start"
177
- @change="
174
+ :locale="getDatePickerLanguage()"
175
+ :model-value="filter.range.start"
176
+ :enable-time-picker="false"
177
+ :clearable="false"
178
+ :auto-apply="true"
179
+ :disabled-dates="disableFutureDates"
180
+ format="yyyy-MM-dd"
181
+ model-type="format"
182
+ @focus="onDatepickerFocus(filter.range)"
183
+ @close="onDatepickerBlur()"
184
+ @update:model-value="
178
185
  onChange({
179
186
  dataType: item.type,
180
187
  value: $event,
@@ -182,18 +189,20 @@
182
189
  field: filter.field
183
190
  })
184
191
  "
185
- @focus="onDatepickerFocus(filter.range)"
186
- @close="onDatepickerBlur()"
187
- format="YYYY-MM-DD"
188
- valueType="format"
189
- :disabled-date="disableFutureDates"
190
192
  />
191
- <date-picker-input
193
+ <VueDatePicker
192
194
  :placeholder="$gettext('Date to')"
193
- :lang="getDatePickerLanguage()"
194
- type="date"
195
- :value="filter.range.end"
196
- @change="
195
+ :locale="getDatePickerLanguage()"
196
+ :model-value="filter.range.end"
197
+ :enable-time-picker="false"
198
+ :clearable="false"
199
+ :auto-apply="true"
200
+ :disabled-dates="disablePastDates"
201
+ format="yyyy-MM-dd"
202
+ model-type="format"
203
+ @focus="onDatepickerFocus(filter.range)"
204
+ @close="onDatepickerBlur()"
205
+ @update:model-value="
197
206
  onChange({
198
207
  dataType: item.type,
199
208
  value: $event,
@@ -201,11 +210,6 @@
201
210
  field: filter.field
202
211
  })
203
212
  "
204
- @focus="onDatepickerFocus(filter.range)"
205
- @close="onDatepickerBlur()"
206
- format="YYYY-MM-DD"
207
- valueType="format"
208
- :disabled-date="disablePastDates"
209
213
  />
210
214
  </grid-container>
211
215
  </section-container>
@@ -247,27 +251,26 @@
247
251
  v-if="buttonText.apply_view"
248
252
  type="primary"
249
253
  :text="buttonText.apply_view"
250
- @click.native="$emit('on-apply-current-view')"
254
+ @click="$emit('on-apply-current-view')"
251
255
  />
252
256
  <main-button
253
257
  type="secondary"
254
258
  v-if="buttonText.save_view"
255
259
  :text="buttonText.save_view"
256
- @click.native="$emit('on-save-new-view')"
260
+ @click="$emit('on-save-new-view')"
257
261
  />
258
262
  <main-button
259
263
  type="cancel"
260
264
  v-if="buttonText.cancel"
261
265
  :text="buttonText.cancel"
262
- @click.native="$emit('on-cancel-view')"
266
+ @click="$emit('on-cancel-view')"
263
267
  />
264
268
  </button-container>
265
269
  </container-wrapper>
266
270
  </template>
267
271
 
268
272
  <script>
269
- import styled from 'vue-styled-components'
270
- import DatePicker from 'vue2-datepicker'
273
+ import styled from 'vue3-styled-components'
271
274
  import SelectComponent from '../inputs/select'
272
275
  import Option from '../inputs/select/option'
273
276
  import InputNumber from '../inputs/inputNumber'
@@ -278,12 +281,7 @@ import Icon from '../icon'
278
281
  import DeleteIcon from '../deleteIcon'
279
282
  import { datePickerLang } from '../../helpers/translateLang'
280
283
  import theme from '@/assets/theme.js'
281
- import 'vue2-datepicker/index.css'
282
- import 'vue2-datepicker/locale/de'
283
- import 'vue2-datepicker/locale/en'
284
- import 'vue2-datepicker/locale/es'
285
- import 'vue2-datepicker/locale/fr'
286
- import 'vue2-datepicker/locale/it'
284
+ import VueDatePicker from '@vuepic/vue-datepicker'
287
285
 
288
286
  const ContainerWrapper = styled.div`
289
287
  position: absolute;
@@ -382,46 +380,6 @@ const RowWrapper = styled.div`
382
380
  margin-bottom: 12px;
383
381
  `
384
382
 
385
- const DatePickerInput = styled(DatePicker)`
386
- border: 1px solid ${(props) => props.theme.colors.grey4};
387
- border-radius: 4px;
388
- padding: 7px 12px 7px 7px;
389
- width: 100%;
390
- position: relative;
391
-
392
- &.mx-datepicker {
393
- width: 100% !important;
394
- max-width: 100%;
395
- height: 36px;
396
- align-self: flex-end;
397
- }
398
-
399
- .mx-input-wrapper {
400
- position: unset;
401
-
402
- input {
403
- border: none;
404
- height: auto;
405
- padding: 0;
406
- font-size: 13px;
407
- box-shadow: none;
408
- color: #393939;
409
- vertical-align: bottom;
410
- }
411
-
412
- .mx-input-append {
413
- top: 1px;
414
- }
415
- }
416
-
417
- .mx-input-append {
418
- left: 0;
419
- top: 5px;
420
- height: auto;
421
- cursor: pointer;
422
- }
423
- `
424
-
425
383
  const LabelAttrs = {
426
384
  marginTop: Boolean
427
385
  }
@@ -486,14 +444,14 @@ export default {
486
444
  Icon,
487
445
  DragContainer,
488
446
  InputNumber,
489
- DatePickerInput,
490
447
  RowLabel,
491
448
  SectionContainer,
492
449
  GridContainer,
493
450
  ViewContainer,
494
451
  DeleteIcon,
495
452
  UpperContainer,
496
- ResetButton
453
+ ResetButton,
454
+ VueDatePicker
497
455
  },
498
456
  props: {
499
457
  filterData: {
@@ -29,7 +29,7 @@
29
29
  </template>
30
30
 
31
31
  <script>
32
- import styled from 'vue-styled-components'
32
+ import styled from 'vue3-styled-components'
33
33
  import parentDropdown from './parentDropdown'
34
34
  import filterSettings from './filterSettings'
35
35
 
@@ -93,9 +93,9 @@ export default {
93
93
  }, 100)
94
94
  },
95
95
  clickOutside(event) {
96
- const target = event.target
97
96
  if (
98
- !this.$refs.dropdown.$el.contains(target) &&
97
+ this.$refs.dropdown &&
98
+ !this.$refs.dropdown.$el.contains(event.target) &&
99
99
  !this.preventOutsideClick
100
100
  ) {
101
101
  this.isDropdownOpen = false
@@ -9,7 +9,7 @@
9
9
  </title-text>
10
10
  <arrow-wrapper>
11
11
  <icon
12
- @click.native.stop="$emit('on-toggle')"
12
+ @click.stop="$emit('on-toggle')"
13
13
  :name="isOpen ? 'arrow_up' : 'arrow_down'"
14
14
  size="12px"
15
15
  />
@@ -19,7 +19,7 @@
19
19
  </template>
20
20
 
21
21
  <script>
22
- import styled from 'vue-styled-components'
22
+ import styled from 'vue3-styled-components'
23
23
  import Icon from '../icon'
24
24
 
25
25
  const PageWrapper = styled.div`
@@ -16,7 +16,7 @@
16
16
 
17
17
  <script>
18
18
  import icon from './index.vue'
19
- import styled from 'vue-styled-components'
19
+ import styled from 'vue3-styled-components'
20
20
 
21
21
  const Wrapper = styled.div`
22
22
  display: block;
@@ -36,7 +36,7 @@ const IconWrapper = styled.div`
36
36
  margin: 10px;
37
37
  `
38
38
  export default {
39
- name: 'collection',
39
+ name: 'collectionComponent',
40
40
  components: { icon, IconWrapper, Wrapper },
41
41
  props: {
42
42
  size: { required: false },
@@ -1,19 +1,18 @@
1
1
  <template>
2
- <Wrapper :isDisabled="disabled" :size="size" :cursor="cursor">
3
- <icon-image
4
- :disabled="disabled"
5
- :size="size"
2
+ <wrapper :isDisabled="disabled" :size="size" :cursor="cursor">
3
+ <icon-image :size="size" :color="color" :hoveredColor="hoveredColor">
4
+ <i v-html="icon.html" />
5
+ </icon-image>
6
+ <striked-line
7
+ v-if="isStriked"
6
8
  :color="color"
9
+ :disabled="disabled"
7
10
  :hoveredColor="hoveredColor"
8
- v-html="
9
- require(`!html-loader!./../../assets/svgIcons/${name.toLowerCase()}.svg`)
10
- "
11
- ></icon-image>
12
- <striked-line v-if="isStriked" :color="color" :disabled="disabled" :hoveredColor="hoveredColor"></striked-line>
13
- </Wrapper>
11
+ ></striked-line>
12
+ </wrapper>
14
13
  </template>
15
14
 
16
- <script>
15
+ <script setup>
17
16
  // import Icon from "@eturnity/eturnity_reusable_components/src/components/icon"
18
17
  // How to use:
19
18
  //<icon
@@ -25,8 +24,8 @@
25
24
  // isStriked = "true"
26
25
  // />
27
26
 
28
- import styled from 'vue-styled-components'
29
-
27
+ import { onMounted, reactive, watch } from 'vue'
28
+ import styled from 'vue3-styled-components'
30
29
  const wrapperAttrs = { isDisabled: Boolean, size: String, cursor: String }
31
30
  const Wrapper = styled('div', wrapperAttrs)`
32
31
  display: flex;
@@ -40,17 +39,22 @@ const Wrapper = styled('div', wrapperAttrs)`
40
39
  cursor: ${(props) => (props.isDisabled ? 'not-allowed' : props.cursor)};
41
40
  line-height: 0;
42
41
  `
43
- const strikedAttrs = { isDisabled: Boolean, color: String, hoveredColor: String }
44
- const strikedLine = styled('div', strikedAttrs)`
42
+ const strikedAttrs = {
43
+ isDisabled: Boolean,
44
+ color: String,
45
+ hoveredColor: String
46
+ }
47
+ const StrikedLine = styled('div', strikedAttrs)`
45
48
  display: flex;
46
49
  position: absolute;
47
- bottom:0;
48
- left:0;
50
+ bottom: 0;
51
+ left: 0;
49
52
  align-content: center;
50
53
  justify-content: center;
51
54
  width: 143%;
52
- height:8%;
53
- background-color: ${(props)=>props.theme.colors[props.color] || props.color};
55
+ height: 8%;
56
+ background-color: ${(props) =>
57
+ props.theme.colors[props.color] || props.color};
54
58
  min-height: 0;
55
59
  line-height: 0;
56
60
  transform-origin: 0% 100%;
@@ -71,46 +75,48 @@ const IconImage = styled('div', IconImageProps)`
71
75
  ${(props) => props.hoveredColor && `fill: ${props.hoveredColor};`}
72
76
  }
73
77
  &:hover + div {
74
- background-color: ${(props)=>props.hoveredColor};
78
+ background-color: ${(props) => props.hoveredColor};
75
79
  }
76
80
  `
77
81
 
78
- export default {
79
- name: 'icon',
80
- components: {
81
- IconImage,
82
- Wrapper,
83
- strikedLine
82
+ const props = defineProps({
83
+ disabled: {
84
+ required: false,
85
+ default: false
86
+ },
87
+ name: {
88
+ required: true
89
+ },
90
+ color: {
91
+ required: false
92
+ },
93
+ hoveredColor: {
94
+ required: false
84
95
  },
85
- props: {
86
- disabled: {
87
- required: false,
88
- default: false
89
- },
90
- name: {
91
- required: true
92
- },
93
- color: {
94
- required: false
95
- },
96
- hoveredColor: {
97
- required: false
98
- },
99
- size: {
100
- required: false,
101
- default: '30px'
102
- },
103
- cursor: {
104
- required: false,
105
- default: null
106
- },
107
- isStriked: {
108
- required: false,
109
- default: false
110
- }
96
+ size: {
97
+ required: false,
98
+ default: '30px'
111
99
  },
112
- data() {
113
- return {}
100
+ cursor: {
101
+ required: false,
102
+ default: null
103
+ },
104
+ isStriked: {
105
+ required: false,
106
+ default: false
114
107
  }
108
+ })
109
+
110
+ const icon = reactive({ html: '' })
111
+
112
+ const handleLoadAsyncIcon = async (iconName = props.name) => {
113
+ const iconPath = `../../assets/svgIcons/${props.name.toLowerCase()}.svg?raw`
114
+ const module = await import(/* @vite-ignore */ iconPath)
115
+
116
+ icon.html = module.default
115
117
  }
118
+
119
+ onMounted(() => handleLoadAsyncIcon())
120
+
121
+ watch(() => props.name, handleLoadAsyncIcon)
116
122
  </script>
@@ -42,7 +42,7 @@
42
42
  // size="60px" by default, this is 30px
43
43
  // />
44
44
 
45
- import styled from 'vue-styled-components'
45
+ import styled from 'vue3-styled-components'
46
46
  import icon from '../icon'
47
47
  const wrapperAttrs = {
48
48
  color: String,
@@ -148,9 +148,6 @@ export default {
148
148
  required: false,
149
149
  default: false
150
150
  }
151
- },
152
- data() {
153
- return {}
154
151
  }
155
152
  }
156
153
  </script>
@@ -8,7 +8,7 @@
8
8
  </template>
9
9
 
10
10
  <script>
11
- import styled from 'vue-styled-components'
11
+ import styled from 'vue3-styled-components'
12
12
  import Icon from '../icon'
13
13
 
14
14
  const InfoContainer = styled.div`
@@ -24,7 +24,6 @@ const TextContainer = styled.div`
24
24
  width: 100%;
25
25
  `
26
26
 
27
-
28
27
  export default {
29
28
  name: 'InfoCard',
30
29
  components: {
@@ -33,4 +32,4 @@ export default {
33
32
  TextContainer
34
33
  }
35
34
  }
36
- </script>
35
+ </script>
@@ -30,7 +30,7 @@
30
30
  // alignArrow="right" // which side the arrow should be on
31
31
  // />
32
32
  import theme from '../../assets/theme.js'
33
- import styled from 'vue-styled-components'
33
+ import styled from 'vue3-styled-components'
34
34
  import icon from '../icon'
35
35
 
36
36
  const textAttrs = {
@@ -3,7 +3,7 @@
3
3
  <container
4
4
  :checkColor="checkColor"
5
5
  :size="size"
6
- :hasLabel="!!label.length"
6
+ :hasLabel="hasLabel"
7
7
  :backgroundColor="backgroundColor"
8
8
  :isChecked="isChecked"
9
9
  :isDisabled="isDisabled"
@@ -14,10 +14,10 @@
14
14
  :data-id="dataId"
15
15
  @change="onChangeHandler(!isChecked)"
16
16
  />
17
- <div>
17
+ <check-wrapper :hasLabel="hasLabel">
18
18
  <span class="checkmark"></span>
19
- </div>
20
- <label-text v-if="!!label.length">{{ label }}</label-text>
19
+ </check-wrapper>
20
+ <label-text v-if="hasLabel">{{ label }}</label-text>
21
21
  </container>
22
22
  </component-wrapper>
23
23
  </template>
@@ -34,12 +34,21 @@
34
34
  // backgroundColor="red"
35
35
  // :isDisabled="true"
36
36
  // />
37
- import styled from 'vue-styled-components'
37
+ import styled from 'vue3-styled-components'
38
38
 
39
39
  const ComponentWrapper = styled.div`
40
40
  min-height: 18px;
41
41
  `
42
42
 
43
+ const CheckWrapper = styled('div', { hasLabel: Boolean })`
44
+ ${(props) =>
45
+ props.hasLabel &&
46
+ `
47
+ display: flex;
48
+ align-items: center;
49
+ `}
50
+ `
51
+
43
52
  const containerAttrs = {
44
53
  checkColor: String,
45
54
  size: String,
@@ -145,7 +154,8 @@ export default {
145
154
  ComponentWrapper,
146
155
  Container,
147
156
  InputCheckbox,
148
- LabelText
157
+ LabelText,
158
+ CheckWrapper
149
159
  },
150
160
  props: {
151
161
  label: {
@@ -175,6 +185,11 @@ export default {
175
185
  default: ''
176
186
  }
177
187
  },
188
+ computed: {
189
+ hasLabel() {
190
+ return !!this.label.length
191
+ }
192
+ },
178
193
  methods: {
179
194
  onChangeHandler(value) {
180
195
  if (this.isDisabled) {
@@ -47,7 +47,6 @@
47
47
  :fontSize="fontSize"
48
48
  :fontColor="fontColor"
49
49
  :backgroundColor="backgroundColor"
50
- v-on="$listeners"
51
50
  :hasSlot="hasSlot"
52
51
  :hasLabelSlot="hasLabelSlot"
53
52
  :slotSize="slotSize"
@@ -488,9 +487,10 @@ export default {
488
487
  // Need to return an integer rather than a string
489
488
  this.$emit('input-change', event)
490
489
  },
491
- onEvaluateCode(val) {
490
+ onEvaluateCode(event) {
492
491
  // function to perform math on the code
493
492
  // filter the string in case of any malicious content
493
+ const val = event.target.value
494
494
  let filtered = val.replace('(auto)', '').replace(/[^-()\d/*+.,]/g, '')
495
495
  filtered = filtered.split(/([-+*/()])/)
496
496
  let formatted = filtered.map((item) => {
@@ -548,20 +548,17 @@ export default {
548
548
  }
549
549
  return array
550
550
  },
551
- onInput(value) {
552
- // if(!this.isFocused){
553
- // return
554
- // }
551
+ onInput(event) {
555
552
  if (this.isBlurred) {
556
553
  this.isBlurred = false
557
554
  return
558
555
  }
559
- if (value === '') {
556
+ if (event.target.value === '') {
560
557
  this.$emit('on-input', '')
561
558
  }
562
559
  let evaluatedVal
563
560
  try {
564
- evaluatedVal = this.onEvaluateCode(value)
561
+ evaluatedVal = this.onEvaluateCode(event)
565
562
  } finally {
566
563
  if (evaluatedVal) {
567
564
  this.$emit('on-input', evaluatedVal)
@@ -573,7 +570,7 @@ export default {
573
570
  // setting isBlurred so we don't trigger onInput as well
574
571
  this.isBlurred = true
575
572
  let value = e.target.value
576
- let evaluatedInput = this.onEvaluateCode(value)
573
+ let evaluatedInput = this.onEvaluateCode(e)
577
574
  this.onChangeHandler(evaluatedInput ? evaluatedInput : value)
578
575
  if ((evaluatedInput && value.length) || this.minNumber !== null) {
579
576
  this.textInput = numberToString({
@@ -44,7 +44,7 @@
44
44
  // number_max_allowed: 10,
45
45
  // unit_short_name: "cm",
46
46
  // },
47
- import styled from "vue-styled-components"
47
+ import styled from "vue3-styled-components"
48
48
  import {
49
49
  stringToNumber,
50
50
  numberToString,
@@ -66,7 +66,7 @@
66
66
  </template>
67
67
 
68
68
  <script>
69
- import styled from 'vue-styled-components'
69
+ import styled from 'vue3-styled-components'
70
70
  import InfoText from '../../infoText'
71
71
  import Icon from '../../icon'
72
72
  import ErrorMessage from '../../errorMessage'
@@ -332,8 +332,8 @@ export default {
332
332
  this.$emit('on-enter-click')
333
333
  this.$refs.inputElement.$el.blur()
334
334
  },
335
- onChangeHandler($event) {
336
- this.$emit('input-change', $event)
335
+ onChangeHandler(event) {
336
+ this.$emit('input-change', event.target.value)
337
337
  },
338
338
  onInputBlur($event) {
339
339
  this.$emit('input-blur', $event.target.value)
@@ -60,7 +60,7 @@
60
60
  // { label: 'Button 4', value: 'button_4', disabled: true }
61
61
  // ]
62
62
 
63
- import styled from 'vue-styled-components'
63
+ import styled from 'vue3-styled-components'
64
64
  import Modal from '../../modals/modal'
65
65
  import InfoText from '../../infoText'
66
66