@eturnity/eturnity_reusable_components 6.42.0 → 6.42.1-EPDM-8599.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eturnity/eturnity_reusable_components",
3
- "version": "6.42.0",
3
+ "version": "6.42.1-EPDM-8599.0",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
package/src/App.vue CHANGED
@@ -4,6 +4,16 @@
4
4
  <br />
5
5
 
6
6
  {{ alignItems }}
7
+ <infoCard>
8
+ Hello there here is a lot of text decnicninec
9
+ ceecc
10
+ ec
11
+ ececc
12
+ ececeecec
13
+ cecececec
14
+ <br>
15
+ deed
16
+ </infoCard>
7
17
  <input-number
8
18
  :value="value"
9
19
  :minNumber="0"
@@ -112,6 +122,7 @@ import iconCollection from '@/components/icon/iconCollection'
112
122
  import dropdownComponent from '@/components/dropdown'
113
123
  import videoThumbnail from '@/components/videoThumbnail'
114
124
  import icon from '@/components/icon'
125
+ import infoCard from '@/components/infoCard'
115
126
  // import TableDropdown from "@/components/tableDropdown"
116
127
 
117
128
  const PageContainer = styled.div`
@@ -136,7 +147,8 @@ export default {
136
147
  iconCollection,
137
148
  dropdownComponent,
138
149
  videoThumbnail,
139
- icon
150
+ icon,
151
+ infoCard
140
152
  },
141
153
  data() {
142
154
  return {
@@ -0,0 +1,38 @@
1
+ <template>
2
+ <info-container>
3
+ <icon name="info" size="24px" />
4
+ <InfoTextContainer>
5
+ <slot />
6
+ </InfoTextContainer>
7
+ </info-container>
8
+ </template>
9
+
10
+ <script>
11
+ import styled from 'vue-styled-components'
12
+ import icon from '../icon'
13
+ const InfoContainer = styled('div')`
14
+ display: flex;
15
+ align-items: flex-start;
16
+ gap: 15px;
17
+ padding: 20px;
18
+ width: 500px;
19
+ min-width: 450px;
20
+ border: 1px dashed #dee2eb;
21
+ border-radius: 4px;
22
+ margin:20px 0;
23
+ `
24
+
25
+ const InfoTextContainer = styled('div')`
26
+ font-size: 13px;
27
+ `
28
+
29
+
30
+ export default {
31
+ components:{
32
+ icon,
33
+ InfoTextContainer,
34
+ InfoContainer
35
+ },
36
+ props:[]
37
+ }
38
+ </script>
@@ -14,9 +14,11 @@
14
14
  labelFontColor || colorMode == 'dark' ? 'white' : 'eturnityGrey'
15
15
  "
16
16
  :fontSize="fontSize"
17
- >{{ label }} <optionalLabel v-if="labelOptional"> ({{ $gettext('Optional') }})</optionalLabel>
18
- </input-label
19
- >
17
+ >{{ label }}
18
+ <optionalLabel v-if="labelOptional">
19
+ ({{ $gettext('Optional') }})</optionalLabel
20
+ >
21
+ </input-label>
20
22
  <info-text
21
23
  v-if="infoTextMessage"
22
24
  :text="infoTextMessage"
@@ -30,6 +32,7 @@
30
32
  ref="select"
31
33
  @click="toggleDropdown"
32
34
  :selectHeight="selectHeight"
35
+ :selectMinHeight="selectMinHeight"
33
36
  :bgColor="
34
37
  buttonBgColor || colorMode == 'dark' ? 'transparentBlack1' : 'white'
35
38
  "
@@ -162,7 +165,6 @@ const InputLabel = styled('div', labelAttrs)`
162
165
  `
163
166
  const optionalLabel = styled.span`
164
167
  font-weight: 300;
165
-
166
168
  `
167
169
  const inputProps = { selectWidth: String, optionWidth: String }
168
170
  const Container = styled('div', inputProps)`
@@ -191,6 +193,7 @@ const selectButtonAttrs = {
191
193
  hasError: Boolean,
192
194
  disabled: Boolean,
193
195
  selectHeight: String,
196
+ selectMinHeight: String,
194
197
  isSearchBarVisible: Boolean,
195
198
  showBorder: Boolean
196
199
  }
@@ -198,11 +201,10 @@ const selectButton = styled('div', selectButtonAttrs)`
198
201
  position: relative;
199
202
  box-sizing: border-box;
200
203
  border-radius: 4px;
201
- padding: ${(props) =>
202
- props.isSearchBarVisible ? '0' : '0px 0px 0 15px'};
204
+ padding: ${(props) => (props.isSearchBarVisible ? '0' : '0px 0px 0 15px')};
203
205
  text-align: left;
204
206
  border-radius: 4px;
205
- min-height: 36px;
207
+ min-height: ${(props) => props.selectMinHeight};
206
208
  display: flex;
207
209
  align-items: center;
208
210
  max-height: ${(props) => props.selectHeight};
@@ -303,9 +305,14 @@ export default {
303
305
  default: null
304
306
  },
305
307
  selectHeight: {
308
+ type: String,
306
309
  required: false,
307
310
  default: null
308
311
  },
312
+ selectMinHeight: {
313
+ required: false,
314
+ default: '36px'
315
+ },
309
316
  optionWidth: {
310
317
  required: false,
311
318
  default: null
@@ -24,7 +24,8 @@ export const stringToNumber = ({
24
24
  selectedLang === 'it' ||
25
25
  selectedLang === 'it-it' ||
26
26
  selectedLang === 'nl-nl' ||
27
- selectedLang === 'nl-be'
27
+ selectedLang === 'nl-be' ||
28
+ selectedLang === 'de-at'
28
29
  ) {
29
30
  // replace dots with blank, and commas with a dot: 1.234,56 --> 1234.56
30
31
  if (allowNegative) {