@eturnity/eturnity_reusable_components 8.19.8-EPDM-15590.0 → 8.19.8-EPDM-11600.11

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-15590.0",
3
+ "version": "8.19.8-EPDM-11600.11",
4
4
  "files": [
5
5
  "dist",
6
6
  "src"
@@ -1,4 +1,3 @@
1
- <svg fill="none" height="16" viewbox="12 12 16 16" width="16" xmlns="http://www.w3.org/2000/svg">
2
- <circle cx="20" cy="20" r="7"></circle>
3
- <path d="M24.9592 15.0408C22.2382 12.3197 17.7618 12.3197 15.0408 15.0408C12.3197 17.7618 12.3197 22.2382 15.0408 24.9592C17.7618 27.6803 22.2382 27.6803 24.9592 24.9592C27.6803 22.2382 27.6803 17.8495 24.9592 15.0408ZM23.6426 22.5016L22.4138 23.7304L19.9561 21.2727L17.4984 23.7304L16.2696 22.5016L18.7273 20.0439L16.2696 17.5862L17.4984 16.3574L19.9561 18.815L22.4138 16.3574L23.6426 17.5862L21.185 20.0439L23.6426 22.5016Z" fill="#FF5656"></path>
1
+ <svg width="22" height="21" viewBox="0 0 22 21" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M18.4389 3.06113C14.3574 -1.02038 7.64263 -1.02038 3.56113 3.06113C-0.520376 7.14263 -0.520376 13.8574 3.56113 17.9389C7.64263 22.0204 14.3574 22.0204 18.4389 17.9389C22.5204 13.8574 22.5204 7.2743 18.4389 3.06113ZM16.464 14.2524L14.6207 16.0956L10.9342 12.4091L7.24765 16.0956L5.40439 14.2524L9.09091 10.5658L5.40439 6.87931L7.24765 5.03605L10.9342 8.72257L14.6207 5.03605L16.464 6.87931L12.7774 10.5658L16.464 14.2524Z" fill="#FF5656"/>
4
3
  </svg>
@@ -333,7 +333,7 @@ const theme = (() => {
333
333
  borderColor: semanticColors.grey[300],
334
334
  },
335
335
  active: {
336
- backgroundColor: semanticColors.purple[100],
336
+ backgroundColor: semanticColors.purple[50],
337
337
  textColor: semanticColors.purple[600],
338
338
  borderColor: semanticColors.grey[600],
339
339
  },
@@ -17,8 +17,8 @@
17
17
  />
18
18
  </ChartControlsWrapper>
19
19
  <GraphSection :height="height" :width="width">
20
- <YAxis :width="yAxisWidth" :height="height">
21
- <YAxisTitleWrapper v-if="yAxisTitle" :height="yAxisHeight">
20
+ <YAxis :width="yAxisWidth">
21
+ <YAxisTitleWrapper v-if="yAxisTitle">
22
22
  {{ yAxisTitle }}
23
23
  </YAxisTitleWrapper>
24
24
  <YAxisRow
@@ -51,6 +51,11 @@
51
51
  <LoadingOverlay v-if="isLoading">
52
52
  <Spinner size="60px" />
53
53
  </LoadingOverlay>
54
+ <InfoCardContainer v-else-if="!isDataIssueMessageDisplayed">
55
+ <RCInfoCard align-items="center">
56
+ {{ dataIssueMessage }}
57
+ </RCInfoCard>
58
+ </InfoCardContainer>
54
59
  <SelectionBox
55
60
  v-if="selectionSize && isSelectionEnabled"
56
61
  :bar-width="barWidth"
@@ -176,6 +181,7 @@
176
181
  import ChartControls from './ChartControls'
177
182
  import BottomFields from './BottomFields'
178
183
  import SelectionBox from './SelectionBox'
184
+ import RCInfoCard from '../infoCard'
179
185
  import Spinner from '../spinner'
180
186
 
181
187
  import {
@@ -210,6 +216,7 @@
210
216
  TooltipGradientBox,
211
217
  ChartControlsWrapper,
212
218
  LoadingOverlay,
219
+ InfoCardContainer,
213
220
  } from './styles/chart'
214
221
 
215
222
  const props = defineProps({
@@ -296,6 +303,14 @@
296
303
  type: Boolean,
297
304
  default: false,
298
305
  },
306
+ dataIssueMessage: {
307
+ type: String,
308
+ default: '',
309
+ },
310
+ isDataIssueMessageDisplayed: {
311
+ type: Boolean,
312
+ default: false,
313
+ },
299
314
  })
300
315
 
301
316
  const generateChartId = () =>
@@ -16,12 +16,9 @@ export const GraphSection = styled('div', { width: String, height: String })`
16
16
  display: flex;
17
17
  `
18
18
 
19
- export const YAxis = styled('div', { width: String, height: String })`
19
+ export const YAxis = styled('div', { width: String })`
20
20
  width: ${(props) => props.width};
21
- display: flex;
22
- flex-direction: column;
23
21
  position: relative;
24
- height: ${(props) => props.height};
25
22
  `
26
23
 
27
24
  export const YAxisRow = styled('div', { percentage: Number })`
@@ -57,18 +54,19 @@ export const YAxisLine = styled('div', { yAxisWidth: String })`
57
54
  transform: translateY(-50%);
58
55
  `
59
56
 
60
- export const YAxisTitleWrapper = styled('div', { height: String })`
61
- position: absolute;
62
- left: -66px;
63
- top: ${(props) => props.height};
64
- transform: rotate(-90deg) translateX(50%);
65
- transform-origin: right;
57
+ export const YAxisTitleWrapper = styled('div')`
66
58
  font-size: 12px;
67
- color: ${(props) => props.theme.semanticColors.teal[600]};
68
- display: flex;
69
- align-items: center;
59
+ font-weight: 500;
60
+ color: ${(props) => props.theme.semanticColors.grey[700]};
70
61
  white-space: nowrap;
71
- font-family: ${(props) => props.theme.fonts.mainFont};
62
+ height: 0;
63
+ width: 0;
64
+ display: flex;
65
+ align-items: flex-start;
66
+ justify-content: center;
67
+ position: absolute;
68
+ top: 50%;
69
+ transform: rotate(-90deg);
72
70
  `
73
71
 
74
72
  export const ScrollContainer = styled('div', {
@@ -270,3 +268,12 @@ export const LoadingOverlay = styled('div')`
270
268
  align-items: center;
271
269
  z-index: 2;
272
270
  `
271
+
272
+ export const InfoCardContainer = styled('div')`
273
+ position: absolute;
274
+ top: 50%;
275
+ left: 50%;
276
+ transform: translate(-50%, -50%);
277
+ max-width: 500px;
278
+ z-index: 2;
279
+ `
@@ -3,15 +3,15 @@ import InputNumber from './index.vue'
3
3
  export default {
4
4
  title: 'InputNumber',
5
5
  component: InputNumber,
6
- // argTypes: {},
7
6
  }
8
7
 
9
- const Template = (args, { argTypes }) => ({
8
+ const Template = (args) => ({
10
9
  // Components used in your story `template` are defined in the `components` object
11
10
  components: { InputNumber },
12
- // The story's `args` need to be mapped into the template through the `setup()` method
13
- props: Object.keys(argTypes),
14
- template: '<input-number v-bind="$props" />',
11
+ setup() {
12
+ return { args: args }
13
+ },
14
+ template: `<InputNumber v-bind="args" />`,
15
15
 
16
16
  // import InputNumber from "@eturnity/eturnity_reusable_components/src/components/inputs/inputNumber"
17
17
  // How to use:
@@ -43,7 +43,6 @@
43
43
  :color-mode="colorMode"
44
44
  :data-id="inputDataId"
45
45
  :data-qa-id="dataQaId"
46
- :disabled="disabled"
47
46
  :font-color="colorMode === 'transparent' ? 'white' : fontColor"
48
47
  :font-size="fontSize"
49
48
  :has-label-slot="hasLabelSlot"
@@ -134,7 +133,7 @@
134
133
  </ArrowButton>
135
134
  </ArrowControls>
136
135
  </InputWrapper>
137
- <ErrorMessage v-if="isError">{{ errorMessage }}</ErrorMessage>
136
+ <ErrorMessage v-if="isError && errorMessage">{{ errorMessage }}</ErrorMessage>
138
137
  </Container>
139
138
  </template>
140
139
 
@@ -658,12 +657,18 @@
658
657
  required: false,
659
658
  default: '',
660
659
  },
660
+ labelDataTestId: {
661
+ type: String,
662
+ required: false,
663
+ default: '',
664
+ },
661
665
  inputDataId: {
662
666
  type: String,
663
667
  required: false,
664
668
  default: '',
665
669
  },
666
670
  dataQaId: {
671
+ type: String,
667
672
  required: false,
668
673
  default: '',
669
674
  },
@@ -58,12 +58,6 @@ Default.args = {
58
58
  ...defaultProps,
59
59
  }
60
60
 
61
- export const Disabled = Template.bind({})
62
- Disabled.args = {
63
- ...defaultProps,
64
- disabled: true,
65
- }
66
-
67
61
  export const BlueCheckmark = Template.bind({})
68
62
  BlueCheckmark.args = {
69
63
  ...defaultProps,
@@ -11,7 +11,7 @@
11
11
  :has-label="!!item.label"
12
12
  :has-slots="!!$slots[`input-${item.value}`]"
13
13
  :is-checked="selectedOption === item.value"
14
- :is-disabled="isItemDisabled(item)"
14
+ :is-disabled="item.disabled"
15
15
  :size="size"
16
16
  >
17
17
  <Radio
@@ -19,7 +19,7 @@
19
19
  :data-id="`radio_button_${dataId}_option_${item.value}`"
20
20
  :data-qa-id="dataQaId"
21
21
  :data-test-id="'radioInput_' + item.value"
22
- :disabled="isItemDisabled(item)"
22
+ :disabled="item.disabled"
23
23
  :name="'radioButtons_' + radioName"
24
24
  type="radio"
25
25
  :value="selectedOption"
@@ -30,7 +30,7 @@
30
30
  v-if="item.label"
31
31
  :color-mode="colorMode"
32
32
  :data-test-id="'radioLabel_' + item.value"
33
- :is-disabled="isItemDisabled(item)"
33
+ :is-disabled="item.disabled"
34
34
  >
35
35
  {{ item.label }}
36
36
  </LabelText>
@@ -261,11 +261,6 @@
261
261
  LabelText,
262
262
  },
263
263
  props: {
264
- disabled: {
265
- default: false,
266
- required: false,
267
- type: Boolean,
268
- },
269
264
  selectedOption: {
270
265
  required: true,
271
266
  type: [String, Number],
@@ -333,9 +328,6 @@
333
328
  isImageOpen(index) {
334
329
  return this.selectedImage === index
335
330
  },
336
- isItemDisabled(item) {
337
- return this.disabled || item.disabled
338
- },
339
331
  toggleImageModal(value) {
340
332
  this.selectedImage = value
341
333
  },
@@ -5,7 +5,8 @@
5
5
  :has-info-text="!!infoText"
6
6
  :margin-bottom="marginBottom"
7
7
  >
8
- <span data-test-id="page_subtitle_text">
8
+ <span v-if="containsHtml" data-test-id="page_subtitle_text" v-html="text"></span>
9
+ <span v-else data-test-id="page_subtitle_text">
9
10
  {{ text }}
10
11
  </span>
11
12
  <InfoText
@@ -58,6 +59,11 @@
58
59
  required: true,
59
60
  type: String,
60
61
  },
62
+ containsHtml: {
63
+ required: false,
64
+ type: Boolean,
65
+ default: false,
66
+ },
61
67
  color: {
62
68
  required: false,
63
69
  type: String,