@eturnity/eturnity_reusable_components 8.19.8-EPDM-14690.2 → 8.19.8-EPDM-14690.3

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": "8.19.8-EPDM-14690.2",
3
+ "version": "8.19.8-EPDM-14690.3",
4
4
  "files": [
5
5
  "dist",
6
6
  "src"
@@ -34,6 +34,7 @@
34
34
  :allow-negative="false"
35
35
  :disabled="isInputsDisabled"
36
36
  input-height="36px"
37
+ :is-disabled-styled-only="true"
37
38
  :is-info-border="
38
39
  fieldMode === 'percentage'
39
40
  ? calculatePercentageTotal(item.label) !== 100
@@ -63,6 +64,7 @@
63
64
  :allow-negative="false"
64
65
  :disabled="isInputsDisabled"
65
66
  input-height="36px"
67
+ :is-disabled-styled-only="true"
66
68
  :is-read-only="true"
67
69
  :min-decimals="0"
68
70
  :number-precision="fieldMode === 'percentage' ? 2 : 0"
@@ -111,6 +113,7 @@
111
113
  :allow-negative="false"
112
114
  :disabled="isInputsDisabled"
113
115
  input-height="36px"
116
+ :is-disabled-styled-only="true"
114
117
  :min-decimals="0"
115
118
  :number-precision="0"
116
119
  text-align="center"
@@ -130,11 +133,7 @@
130
133
  >
131
134
  <InfoCard align-items="center" type="info">
132
135
  <InfoCardBody>
133
- {{
134
- $gettext
135
- ? $gettext('load_profile_not_add_up_to_100')
136
- : 'load_profile_not_add_up_to_100'
137
- }}
136
+ {{ percentageErrorMessage }}
138
137
  </InfoCardBody>
139
138
  </InfoCard>
140
139
  </InfoCardContainer>
@@ -197,6 +196,10 @@
197
196
  type: Boolean,
198
197
  default: false,
199
198
  },
199
+ percentageErrorMessage: {
200
+ type: String,
201
+ default: '',
202
+ },
200
203
  })
201
204
 
202
205
  const seriesData = ref([])
@@ -286,7 +289,10 @@
286
289
  return Math.round(percentageTotal)
287
290
  }
288
291
 
289
- const handleInputBlur = (_value, seriesName, label, currentSeriesData) => {
292
+ const handleInputBlur = (_value, seriesName, label) => {
293
+ if (props.isInputsDisabled) {
294
+ return
295
+ }
290
296
  let value = Number(_value)
291
297
 
292
298
  const payload = seriesName
@@ -165,6 +165,7 @@
165
165
  :is-chart-controls-shown-in-bottom="isChartControlsShown('bottom')"
166
166
  :is-inputs-disabled="isLoading"
167
167
  :is-scrollable="isScrollable"
168
+ :percentage-error-message="percentageErrorMessage"
168
169
  :series="series"
169
170
  :y-axis-width="yAxisWidth"
170
171
  @input-blur="handleInputBlur"
@@ -302,6 +303,10 @@
302
303
  type: Boolean,
303
304
  default: false,
304
305
  },
306
+ percentageErrorMessage: {
307
+ type: String,
308
+ default: '',
309
+ },
305
310
  })
306
311
 
307
312
  const generateChartId = () =>
@@ -51,7 +51,7 @@
51
51
  :color-mode="colorMode"
52
52
  :data-id="inputDataId"
53
53
  :data-qa-id="dataQaId"
54
- :disabled="disabled"
54
+ :disabled="disabled && !isDisabledStyledOnly"
55
55
  :font-color="colorMode === 'transparent' ? 'white' : fontColor"
56
56
  :font-size="fontSize"
57
57
  :has-label-slot="hasLabelSlot"
@@ -97,7 +97,7 @@
97
97
  :color-mode="colorMode"
98
98
  :data-id="inputDataId"
99
99
  :data-qa-id="dataQaId"
100
- :disabled="disabled"
100
+ :disabled="disabled && !isDisabledStyledOnly"
101
101
  :font-color="colorMode === 'transparent' ? 'white' : fontColor"
102
102
  :font-size="fontSize"
103
103
  :has-label-slot="hasLabelSlot"
@@ -781,6 +781,10 @@
781
781
  type: String,
782
782
  default: '',
783
783
  },
784
+ isDisabledStyledOnly: {
785
+ type: Boolean,
786
+ default: false,
787
+ },
784
788
  },
785
789
  data() {
786
790
  return {