@eturnity/eturnity_reusable_components 9.19.0 → 9.19.1

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": "9.19.0",
3
+ "version": "9.19.1",
4
4
  "files": [
5
5
  "dist",
6
6
  "src"
package/src/TestChart.vue CHANGED
@@ -77,7 +77,7 @@
77
77
  const options = [
78
78
  { label: 'Day', value: 'day' },
79
79
  { label: 'Month', value: 'month' },
80
- { label: 'Year', value: 'year' },
80
+ { label: 'year', value: 'year' },
81
81
  ]
82
82
 
83
83
  const selectedTimeFrame = ref('day')
@@ -25,11 +25,11 @@
25
25
  >
26
26
  <InputNumber
27
27
  :allow-negative="false"
28
- :data-qa-id="processedDataQaId({label: item.label, series})"
28
+ :data-qa-id="processedDataQaId({ label: item.label, series })"
29
29
  :default-number="0"
30
30
  :disabled="isInputsDisabled"
31
31
  :error-message="getInputErrorMessage(series.data, item.label)"
32
- :input-data-id="processedDataId({label: item.label, series})"
32
+ :input-data-id="processedDataId({ label: item.label, series })"
33
33
  input-height="36px"
34
34
  :is-disabled-styled-only="true"
35
35
  :is-error="getIsError(series.data, item.label)"
@@ -39,7 +39,7 @@
39
39
  : false
40
40
  "
41
41
  :is-relative-error-message="true"
42
- :label-data-id="`${processedDataId({label: item.label, series})}_label`"
42
+ :label-data-id="`${processedDataId({ label: item.label, series })}_label`"
43
43
  :min-decimals="0"
44
44
  :number-precision="fieldMode === 'percentage' ? 2 : 0"
45
45
  text-align="center"
@@ -56,11 +56,7 @@
56
56
  <TotalInputRow v-if="fieldMode === 'percentage'">
57
57
  <LabelsColumn :width="yAxisWidth">
58
58
  <TotalRow v-if="seriesData.length">
59
- {{
60
- $gettext
61
- ? `${$gettext('loadprofile_total')} (%)`
62
- : 'Total (%)'
63
- }}
59
+ {{ $gettext ? `${$gettext('Total')} (%)` : 'Total (%)' }}
64
60
  </TotalRow>
65
61
  </LabelsColumn>
66
62
  <InputGroup
@@ -71,14 +67,14 @@
71
67
  >
72
68
  <InputNumber
73
69
  :allow-negative="false"
74
- :data-qa-id="processedDataQaId({label: item.label, series})"
70
+ :data-qa-id="processedDataQaId({ label: item.label, series })"
75
71
  :default-number="0"
76
72
  :disabled="isInputsDisabled"
77
73
  input-height="36px"
78
74
  :is-disabled-styled-only="true"
79
75
  :is-read-only="true"
80
- :input-data-id="processedDataId({label: item.label, series})"
81
- :label-data-id="`${processedDataId({label: item.label, series})}_label`"
76
+ :input-data-id="processedDataId({ label: item.label, series })"
77
+ :label-data-id="`${processedDataId({ label: item.label, series })}_label`"
82
78
  :min-decimals="0"
83
79
  :number-precision="fieldMode === 'percentage' ? 2 : 0"
84
80
  text-align="center"
@@ -91,11 +87,7 @@
91
87
  <TotalInputRow>
92
88
  <LabelsColumn :width="yAxisWidth">
93
89
  <TotalRow v-if="seriesData.length">
94
- {{
95
- $gettext
96
- ? `${$gettext('loadprofile_total')} (kWh)`
97
- : 'Total (kWh)'
98
- }}
90
+ {{ $gettext ? `${$gettext('Total')} (kWh)` : 'Total (kWh)' }}
99
91
  </TotalRow>
100
92
  </LabelsColumn>
101
93
  <InputGroup
@@ -105,9 +97,9 @@
105
97
  :is-scrollable="isScrollable"
106
98
  >
107
99
  <InputNumber
108
- :data-qa-id="processedDataQaId({label: item.label, series})"
100
+ :data-qa-id="processedDataQaId({ label: item.label, series })"
109
101
  :default-number="0"
110
- :input-data-id="processedDataId({label: item.label, series})"
102
+ :input-data-id="processedDataId({ label: item.label, series })"
111
103
  input-height="36px"
112
104
  :is-border-error-only="true"
113
105
  :is-info-border="
@@ -116,7 +108,7 @@
116
108
  : false
117
109
  "
118
110
  :is-read-only="true"
119
- :label-data-id="`${processedDataId({label: item.label, series})}_label`"
111
+ :label-data-id="`${processedDataId({ label: item.label, series })}_label`"
120
112
  :min-decimals="0"
121
113
  :number-precision="0"
122
114
  text-align="center"
@@ -138,14 +130,14 @@
138
130
  >
139
131
  <InputNumber
140
132
  :allow-negative="false"
141
- :data-qa-id="processedDataQaId({label: item.label})"
133
+ :data-qa-id="processedDataQaId({ label: item.label })"
142
134
  :disabled="isInputsDisabled"
143
135
  :error-message="item.errorMessage"
144
- :input-data-id="processedDataId({label: item.label})"
136
+ :input-data-id="processedDataId({ label: item.label })"
145
137
  input-height="36px"
146
138
  :is-disabled-styled-only="true"
147
139
  :is-error="item.isError"
148
- :label-data-id="`${processedDataId({label: item.label})}_label`"
140
+ :label-data-id="`${processedDataId({ label: item.label })}_label`"
149
141
  :min-decimals="0"
150
142
  :number-precision="0"
151
143
  text-align="center"
@@ -16,7 +16,7 @@
16
16
  {{ label }}
17
17
  <IsRequiredLabelStar v-if="isRequiredLabel" />
18
18
  <OptionalLabel v-if="labelOptional" data-test-id="label_optional">
19
- ({{ $gettext('Optional') }})
19
+ ({{ $gettext('optional') }})
20
20
  </OptionalLabel>
21
21
  </InputLabel>
22
22
  <InfoText
@@ -119,8 +119,8 @@
119
119
  props.theme.colors[props.labelFontColor]
120
120
  ? props.theme.colors[props.labelFontColor]
121
121
  : props.labelFontColor
122
- ? props.labelFontColor
123
- : props.theme.colors.eturnityGrey};
122
+ ? props.labelFontColor
123
+ : props.theme.colors.eturnityGrey};
124
124
 
125
125
  font-size: ${(props) => (props.fontSize ? props.fontSize : '13px')};
126
126
  font-weight: 700;
@@ -163,20 +163,20 @@
163
163
  props.noBorder
164
164
  ? 'none'
165
165
  : props.isError
166
- ? '1px solid ' + props.theme.colors.red
167
- : props.borderColor
168
- ? props.theme.colors[props.borderColor]
169
- ? '1px solid ' + props.theme.colors[props.borderColor]
170
- : '1px solid ' + props.borderColor
171
- : '1px solid ' + props.theme.colors.grey4};
166
+ ? '1px solid ' + props.theme.colors.red
167
+ : props.borderColor
168
+ ? props.theme.colors[props.borderColor]
169
+ ? '1px solid ' + props.theme.colors[props.borderColor]
170
+ : '1px solid ' + props.borderColor
171
+ : '1px solid ' + props.theme.colors.grey4};
172
172
  padding: ${(props) =>
173
173
  props.isError
174
174
  ? '11px 25px 11px 10px'
175
175
  : props.inputType === 'password'
176
- ? '11px 25px 11px 10px'
177
- : props.defaultPadding
178
- ? '10px 35px 10px 15px'
179
- : '11px 5px 11px 10px'};
176
+ ? '11px 25px 11px 10px'
177
+ : props.defaultPadding
178
+ ? '10px 35px 10px 15px'
179
+ : '11px 5px 11px 10px'};
180
180
  border-radius: 4px;
181
181
  position: relative;
182
182
  font-size: ${(props) => (props.fontSize ? props.fontSize : '16px')};
@@ -184,8 +184,8 @@
184
184
  props.isDisabled
185
185
  ? props.theme.colors.grey2
186
186
  : props.fontColor
187
- ? props.fontColor + ' !important'
188
- : props.theme.colors.black};
187
+ ? props.fontColor + ' !important'
188
+ : props.theme.colors.black};
189
189
 
190
190
  width: ${(props) => (props.inputWidth ? props.inputWidth : '100%')};
191
191
  min-width: ${(props) => (props.minWidth ? props.minWidth : 'unset')};
@@ -199,8 +199,8 @@
199
199
  ? props.disabledBackgroundColor + ' !important'
200
200
  : props.theme.colors.grey5
201
201
  : props.backgroundColor
202
- ? props.backgroundColor + ' !important'
203
- : props.theme.colors.white};
202
+ ? props.backgroundColor + ' !important'
203
+ : props.theme.colors.white};
204
204
  &::placeholder {
205
205
  color: ${(props) => props.theme.colors.grey2};
206
206
  }
@@ -29,7 +29,7 @@
29
29
  >{{ label }}
30
30
  <IsRequiredLabelStar v-if="isRequiredLabel" />
31
31
  <OptionalLabel v-if="labelOptional">
32
- ({{ $gettext('Optional') }})</OptionalLabel
32
+ ({{ $gettext('optional') }})</OptionalLabel
33
33
  >
34
34
  </InputLabel>
35
35
  <InfoText
@@ -50,10 +50,10 @@
50
50
  buttonBgColor
51
51
  ? buttonBgColor
52
52
  : colorMode == 'dark'
53
- ? 'transparentBlack1'
54
- : colorMode == 'transparent'
55
- ? 'transparent'
56
- : 'white'
53
+ ? 'transparentBlack1'
54
+ : colorMode == 'transparent'
55
+ ? 'transparent'
56
+ : 'white'
57
57
  "
58
58
  class="select-button"
59
59
  :color-mode="colorMode"
@@ -171,8 +171,8 @@
171
171
  colorMode == 'dark'
172
172
  ? '#000000'
173
173
  : colorMode == 'transparent'
174
- ? 'grey6'
175
- : dropdownBgColor
174
+ ? 'grey6'
175
+ : dropdownBgColor
176
176
  "
177
177
  :hovered-index="hoveredIndex"
178
178
  :hovered-value="hoveredValue"
@@ -365,23 +365,23 @@
365
365
  ? 'padding: 10px 15px 10px 5px;'
366
366
  : 'padding: 10px 15px;'
367
367
  : props.isSearchBarVisible
368
- ? ''
369
- : `padding-left: ${
370
- props.hasNoPadding
371
- ? '0'
372
- : props.tablePaddingLeft
373
- ? props.tablePaddingLeft
374
- : props.paddingLeft
375
- }`};
368
+ ? ''
369
+ : `padding-left: ${
370
+ props.hasNoPadding
371
+ ? '0'
372
+ : props.tablePaddingLeft
373
+ ? props.tablePaddingLeft
374
+ : props.paddingLeft
375
+ }`};
376
376
  text-align: ${(props) => (props.textCenter ? 'center' : 'left')};
377
377
  min-height: ${(props) =>
378
378
  props.selectHeight
379
379
  ? props.selectHeight
380
380
  : props.selectMinHeight
381
- ? props.selectMinHeight
382
- : props.height
383
- ? props.height
384
- : '36px'};
381
+ ? props.selectMinHeight
382
+ : props.height
383
+ ? props.height
384
+ : '36px'};
385
385
  display: flex;
386
386
  align-items: center;
387
387
  height: ${(props) => props.selectHeight};
@@ -389,8 +389,8 @@
389
389
  showBorder &&
390
390
  `
391
391
  border: ${BORDER_WIDTH} solid ${
392
- hasError ? theme.colors.red : theme.colors.grey4
393
- }
392
+ hasError ? theme.colors.red : theme.colors.grey4
393
+ }
394
394
  `}
395
395
  opacity: ${(props) =>
396
396
  props.colorMode === 'transparent' && props.disabled ? '0.4' : '1'};
@@ -398,18 +398,18 @@
398
398
  props.colorMode === 'transparent'
399
399
  ? 'transparent'
400
400
  : props.disabled && props.showDisabledBackground
401
- ? props.theme.colors.grey5
402
- : props.theme.colors[props.bgColor]
403
- ? props.theme.colors[props.bgColor]
404
- : props.bgColor} !important;
401
+ ? props.theme.colors.grey5
402
+ : props.theme.colors[props.bgColor]
403
+ ? props.theme.colors[props.bgColor]
404
+ : props.bgColor} !important;
405
405
  color: ${(props) =>
406
406
  props.colorMode === 'transparent'
407
407
  ? props.theme.colors.white
408
408
  : props.disabled && props.showDisabledBackground
409
- ? props.theme.colors.black
410
- : props.theme.colors[props.fontColor]
411
- ? props.theme.colors[props.fontColor]
412
- : props.fontColor};
409
+ ? props.theme.colors.black
410
+ : props.theme.colors[props.fontColor]
411
+ ? props.theme.colors[props.fontColor]
412
+ : props.fontColor};
413
413
  ${(props) => (props.disabled ? 'pointer-events: none' : '')};
414
414
  overflow: hidden;
415
415
  & > .handle {
@@ -458,8 +458,8 @@
458
458
  props.minWidth
459
459
  ? props.minWidth
460
460
  : props.optionWidth
461
- ? props.optionWidth
462
- : '100%'};
461
+ ? props.optionWidth
462
+ : '100%'};
463
463
  background-color: ${(props) =>
464
464
  props.theme.colors[props.bgColor]
465
465
  ? props.theme.colors[props.bgColor]
@@ -4,7 +4,7 @@
4
4
  <slot></slot>
5
5
  <IsRequiredLabelStar v-if="isRequiredLabel" />
6
6
  <OptionalLabel v-if="labelOptional">
7
- ({{ $gettext('Optional') }})
7
+ ({{ $gettext('optional') }})
8
8
  </OptionalLabel>
9
9
  </InputLabel>
10
10
  <InfoText
@@ -27,8 +27,8 @@
27
27
  props.theme.colors[props.labelFontColor]
28
28
  ? props.theme.colors[props.labelFontColor]
29
29
  : props.labelFontColor
30
- ? props.labelFontColor
31
- : props.theme.colors.eturnityGrey};
30
+ ? props.labelFontColor
31
+ : props.theme.colors.eturnityGrey};
32
32
 
33
33
  font-size: ${(props) => (props.fontSize ? props.fontSize : '13px')};
34
34
  font-weight: 700;
@@ -106,11 +106,11 @@
106
106
  // optionsList = [
107
107
  // {
108
108
  // type: 'export',
109
- // name: 'Export'
109
+ // name: 'export'
110
110
  // },
111
111
  // {
112
112
  // type: 'export',
113
- // name: 'Export'
113
+ // name: 'export'
114
114
  // ...
115
115
  // add component parameter if we were passing a component to the selected options
116
116
  // component: 'set_supplier'
@@ -281,8 +281,8 @@
281
281
  props.disabled
282
282
  ? props.theme.colors.grey3
283
283
  : props.hoverColor
284
- ? props.theme.colors[props.hoverColor]
285
- : props.theme.colors.white};
284
+ ? props.theme.colors[props.hoverColor]
285
+ : props.theme.colors.white};
286
286
  }
287
287
  `
288
288
 
@@ -44,7 +44,7 @@ Default.args = {
44
44
  optionsList: [
45
45
  {
46
46
  type: 'export',
47
- name: 'Export',
47
+ name: 'export',
48
48
  },
49
49
  {
50
50
  type: 'delete',
@@ -60,7 +60,7 @@ WithDisabledOptions.args = {
60
60
  optionsList: [
61
61
  {
62
62
  type: 'export',
63
- name: 'Export',
63
+ name: 'export',
64
64
  },
65
65
  {
66
66
  type: 'delete',
@@ -77,7 +77,7 @@ WithCustomComponent.args = {
77
77
  optionsList: [
78
78
  {
79
79
  type: 'export',
80
- name: 'Export',
80
+ name: 'export',
81
81
  },
82
82
  {
83
83
  type: 'set_supplier',
@@ -93,7 +93,7 @@ ManyOptions.args = {
93
93
  optionsList: [
94
94
  {
95
95
  type: 'export',
96
- name: 'Export',
96
+ name: 'export',
97
97
  },
98
98
  {
99
99
  type: 'delete',
@@ -127,7 +127,7 @@ CustomLabels.args = {
127
127
  optionsList: [
128
128
  {
129
129
  type: 'export',
130
- name: 'Export',
130
+ name: 'export',
131
131
  },
132
132
  {
133
133
  type: 'delete',
@@ -150,7 +150,7 @@ CustomLabels.args = {
150
150
  // },
151
151
  // {
152
152
  // type: 'export',
153
- // name: 'Export'
153
+ // name: 'export'
154
154
  // ...
155
155
  // add component parameter if we were passing a component to the selected options (see below)
156
156
  // component: 'set_supplier'
@@ -202,7 +202,7 @@ export const Expanded = {
202
202
  optionsList: [
203
203
  {
204
204
  type: 'export',
205
- name: 'Export',
205
+ name: 'export',
206
206
  },
207
207
  {
208
208
  type: 'export_page',
@@ -228,7 +228,7 @@ export const Expanded = {
228
228
  expandedOptions: [
229
229
  {
230
230
  type: 'export',
231
- name: 'Export',
231
+ name: 'export',
232
232
  },
233
233
  {
234
234
  type: 'export_page',
@@ -76,7 +76,7 @@ Default.args = {
76
76
  cellPaddings: '6px 6px 7px 4px',
77
77
  isLoading: false,
78
78
  isOverflowHidden: true,
79
- titleText: 'Projects',
79
+ titleText: 'projects',
80
80
  hasAimHover: false,
81
81
  tableCursor: 'pointer',
82
82
  }