@eturnity/eturnity_reusable_components 1.1.84 → 1.1.87

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": "1.1.84",
3
+ "version": "1.1.87",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
@@ -30,6 +30,7 @@
30
30
  :noBorder="noBorder"
31
31
  :textAlign="textAlign"
32
32
  :fontSize="fontSize"
33
+ :fontColor="fontColor"
33
34
  />
34
35
  <unit-container
35
36
  v-if="unitName && showLinearUnitName"
@@ -66,6 +67,7 @@
66
67
  // labelInfoText="Here is some information for you..."
67
68
  // labelInfoAlign="left"
68
69
  // :minNumber="0"
70
+ // fontColor="blue"
69
71
  // />
70
72
  import styled from "vue-styled-components"
71
73
  import {
@@ -89,6 +91,7 @@ const inputProps = {
89
91
  noBorder: Boolean,
90
92
  textAlign: String,
91
93
  fontSize: String,
94
+ fontColor: String,
92
95
  }
93
96
  const InputContainer = styled("input", inputProps)`
94
97
  border: ${(props) =>
@@ -106,7 +109,11 @@ const InputContainer = styled("input", inputProps)`
106
109
  cursor: ${(props) => (props.isDisabled ? "not-allowed" : "auto")};
107
110
  font-size: ${(props) => (props.fontSize ? props.fontSize : "13px")};
108
111
  color: ${(props) =>
109
- props.isError ? props.theme.colors.red : props.theme.colors.black};
112
+ props.isError
113
+ ? props.theme.colors.red
114
+ : props.fontColor
115
+ ? props.fontColor + " !important"
116
+ : props.theme.colors.black};
110
117
  width: ${(props) => (props.inputWidth ? props.inputWidth : "100%")};
111
118
  min-width: ${(props) => (props.minWidth ? props.minWidth : "unset")};
112
119
  background-color: ${(props) =>
@@ -255,6 +262,10 @@ export default {
255
262
  required: false,
256
263
  default: null,
257
264
  },
265
+ fontColor: {
266
+ required: false,
267
+ default: null,
268
+ },
258
269
  },
259
270
  methods: {
260
271
  onChangeHandler(event) {
@@ -5,12 +5,10 @@ export const stringToNumber = ({ value, numberPrecision, allowNegative }) => {
5
5
  // The first replace will replace not allowed characters with a blank
6
6
  if (
7
7
  selectedLang === "de-DE" ||
8
- selectedLang === "it-CH" ||
9
8
  selectedLang === "no-no" ||
10
9
  selectedLang === "da-dk" ||
11
10
  selectedLang === "de-lu" ||
12
11
  selectedLang === "de-be" ||
13
- selectedLang === "fr-lu" ||
14
12
  selectedLang === "es-es" ||
15
13
  selectedLang === "de"
16
14
  ) {
@@ -47,6 +45,7 @@ export const stringToNumber = ({ value, numberPrecision, allowNegative }) => {
47
45
  } else if (
48
46
  selectedLang === "fr-fr" ||
49
47
  selectedLang === "fr-be" ||
48
+ selectedLang === "fr-lu" ||
50
49
  selectedLang === "sv-se" ||
51
50
  selectedLang === "pt-pt" ||
52
51
  selectedLang === "fr"