@eturnity/eturnity_reusable_components 7.51.3-EPDM-12810.1 → 7.51.3-EPDM-12810.2

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.
Files changed (34) hide show
  1. package/package.json +2 -3
  2. package/src/assets/gifs/spinner.gif +0 -0
  3. package/src/assets/svgIcons/checkmark.svg +3 -0
  4. package/src/assets/svgIcons/collapse_all.svg +4 -0
  5. package/src/assets/svgIcons/expand_all.svg +4 -0
  6. package/src/assets/svgIcons/export_document.svg +3 -0
  7. package/src/assets/svgIcons/hybrid.svg +4 -0
  8. package/src/assets/svgIcons/module.svg +3 -0
  9. package/src/assets/svgIcons/move_down.svg +3 -0
  10. package/src/assets/svgIcons/move_up.svg +3 -0
  11. package/src/assets/svgIcons/optimizer.svg +6 -0
  12. package/src/assets/svgIcons/string_design.svg +5 -0
  13. package/src/assets/svgIcons/string_directions.svg +10 -0
  14. package/src/components/banner/notificationBanner/index.vue +131 -0
  15. package/src/components/buttons/buttonIcon/index.vue +4 -2
  16. package/src/components/buttons/mainButton/index.vue +16 -2
  17. package/src/components/card/index.vue +1 -1
  18. package/src/components/icon/Icons.stories.js +9 -19
  19. package/src/components/icon/icon.spec.js +66 -0
  20. package/src/components/icon/iconCollection.vue +4 -3
  21. package/src/components/icon/index.vue +9 -2
  22. package/src/components/infoText/index.vue +210 -74
  23. package/src/components/inputs/checkbox/index.vue +19 -8
  24. package/src/components/inputs/inputNumber/index.vue +202 -12
  25. package/src/components/inputs/inputText/index.vue +36 -2
  26. package/src/components/inputs/radioButton/index.vue +27 -6
  27. package/src/components/inputs/select/index.vue +68 -24
  28. package/src/components/inputs/select/option/index.vue +11 -2
  29. package/src/components/label/index.vue +1 -2
  30. package/src/components/markerItem/index.vue +8 -1
  31. package/src/components/spinner/index.vue +11 -0
  32. package/src/components/spinnerGif/index.vue +98 -0
  33. package/src/components/stringDesign/DropdownMenu/index.vue +983 -0
  34. package/src/components/tableDropdown/index.vue +51 -20
@@ -14,6 +14,7 @@
14
14
  'table-dropdown-item': item.type !== 'input',
15
15
  }"
16
16
  :is-nested="isNested"
17
+ :show-archived="showArchived"
17
18
  >
18
19
  <NestedContainer :is-nested="isNested">
19
20
  <NestedIcon
@@ -31,6 +32,7 @@
31
32
  (item.value === '' || item.value === '-')
32
33
  "
33
34
  :key="index + '_button'"
35
+ :show-archived="showArchived"
34
36
  @click.stop="onTemplateClick(item.row)"
35
37
  >
36
38
  {{ $gettext('Use template...') }}
@@ -39,30 +41,38 @@
39
41
  v-else-if="
40
42
  item.type && item.type === 'template' && item.value !== ''
41
43
  "
44
+ :show-archived="showArchived"
42
45
  @click.stop="onSelectedTemplateClick(item.row)"
43
46
  >
44
- <!-- <img :src="fileIcon" alt="icon" width="12" height="16" /> -->
45
47
  <Icon
46
- :color="theme.colors.brightBlue"
48
+ :color="showArchived ? theme.colors.red : theme.colors.brightBlue"
47
49
  name="template_icon_not_clickable"
48
50
  size="14px"
49
51
  />
50
52
  <div>{{ item.value }}</div>
51
53
  </TemplateLink>
52
- <NoTemplate v-if="item.type && item.type === 'no-template'">
54
+ <NoTemplate
55
+ v-if="item.type && item.type === 'no-template'"
56
+ :show-archived="showArchived"
57
+ >
53
58
  {{ $gettext('No main component template') }}
54
59
  </NoTemplate>
55
60
  <InputContainer
56
61
  v-if="item.type === 'input'"
57
62
  @click.stop="onInputClick()"
58
63
  >
59
- <TextContainer v-if="customInputDisabled" class="input-placeholder">
64
+ <TextContainer
65
+ v-if="customInputDisabled"
66
+ class="input-placeholder"
67
+ :show-archived="showArchived"
68
+ >
60
69
  <span> {{ item.value }}</span>
61
70
  </TextContainer>
62
71
  <InputText
63
72
  v-else
64
73
  class="inputField"
65
74
  :disabled="customInputDisabled"
75
+ :font-color="showArchived ? theme.colors.red : 'black'"
66
76
  :min-width="item.value.length + 'ch'"
67
77
  :no-border="true"
68
78
  :value="item.value"
@@ -75,6 +85,7 @@
75
85
  item.type !== 'no-template' &&
76
86
  item.type !== 'template'
77
87
  "
88
+ :show-archived="showArchived"
78
89
  >
79
90
  <span> {{ item.value }}</span>
80
91
  </TextContainer>
@@ -82,14 +93,14 @@
82
93
  </ComponentItem>
83
94
  <ArrowContainer class="arrow-container" :is-disabled="disabled">
84
95
  <ArrowWrapper :show-archived="showArchived">
85
- <EtPopover
86
- v-if="showArchived"
87
- button-class="error"
88
- :text="
89
- $gettext(`Component has been archived and shouldn't be used`)
90
- "
91
- trigger-type="hover"
92
- />
96
+ <InfoWrapper v-if="showArchived">
97
+ <InfoText
98
+ icon-color="red"
99
+ :text="
100
+ $gettext(`Component has been archived and shouldn't be used`)
101
+ "
102
+ />
103
+ </InfoWrapper>
93
104
  <ArrowDown
94
105
  v-if="!isOpen"
95
106
  class="arrow-dropdown"
@@ -184,6 +195,7 @@
184
195
  import fileIconPng from '../../assets/icons/file_icon.png'
185
196
  import Icon from '../icon'
186
197
  import theme from '@/assets/theme.js'
198
+ import InfoText from '../infoText'
187
199
 
188
200
  const rowAttrs = { disabled: Boolean, isOpen: Boolean }
189
201
  const DropdownRow = styled('div', rowAttrs)`
@@ -200,12 +212,14 @@
200
212
  }
201
213
  `
202
214
 
203
- const ItemAttrs = { isNested: Boolean }
215
+ const ItemAttrs = { isNested: Boolean, showArchived: Boolean }
204
216
  const ComponentItem = styled('td', ItemAttrs)`
205
217
  padding-left: ${(props) => (props.isNested ? '14px !important' : '0')};
206
218
  overflow: hidden;
207
219
  text-overflow: ellipsis;
208
220
  padding-right: 0 !important;
221
+ color: ${(props) =>
222
+ props.showArchived ? props.theme.colors.red : 'inherit'};
209
223
 
210
224
  &.table-dropdown-item {
211
225
  background-clip: content-box;
@@ -339,10 +353,12 @@
339
353
  height: 40px;
340
354
  `
341
355
 
342
- const TemplateButton = styled.div`
356
+ const templateAttrs = { showArchived: Boolean }
357
+ const TemplateButton = styled('div', templateAttrs)`
343
358
  cursor: pointer;
344
359
  background-color: #263238;
345
- color: ${(props) => props.theme.colors.white};
360
+ color: ${(props) =>
361
+ props.showArchived ? props.theme.colors.red : props.theme.colors.white};
346
362
  padding: 4px 10px;
347
363
  display: inline-block;
348
364
  border-radius: 4px;
@@ -350,16 +366,20 @@
350
366
  margin-left: 15px;
351
367
  `
352
368
 
353
- const NoTemplate = styled.div`
354
- color: ${(props) => props.theme.colors.gray1};
369
+ const NoTemplate = styled('div', templateAttrs)`
370
+ color: ${(props) =>
371
+ props.showArchived ? props.theme.colors.red : props.theme.colors.gray1};
355
372
  font-style: italic;
356
373
  overflow: hidden;
357
374
  text-overflow: ellipsis;
358
375
  padding-left: 15px;
359
376
  `
360
377
 
361
- const TemplateLink = styled.div`
362
- color: ${(props) => props.theme.colors.brightBlue};
378
+ const TemplateLink = styled('div', templateAttrs)`
379
+ color: ${(props) =>
380
+ props.showArchived
381
+ ? props.theme.colors.red
382
+ : props.theme.colors.brightBlue};
363
383
  cursor: pointer;
364
384
  display: grid;
365
385
  grid-template-columns: auto 1fr;
@@ -394,10 +414,12 @@
394
414
  color: ${(props) => props.theme.colors.grey3};
395
415
  `
396
416
 
397
- const TextContainer = styled.div`
417
+ const TextContainer = styled('div', templateAttrs)`
398
418
  height: 100%;
399
419
  display: grid;
400
420
  align-items: center;
421
+ color: ${(props) =>
422
+ props.showArchived ? props.theme.colors.red : 'inherit'};
401
423
  `
402
424
 
403
425
  const NestedIcon = styled(SubpositionMarkerIcon)`
@@ -413,6 +435,13 @@
413
435
  align-items: center;
414
436
  `
415
437
 
438
+ const InfoWrapper = styled.div`
439
+ display: flex;
440
+ align-items: center;
441
+ justify-content: center;
442
+ padding-left: 8px;
443
+ `
444
+
416
445
  export default {
417
446
  name: 'TableDropdown',
418
447
  components: {
@@ -442,6 +471,8 @@
442
471
  NestedIcon,
443
472
  NestedContainer,
444
473
  Icon,
474
+ InfoText,
475
+ InfoWrapper,
445
476
  },
446
477
  props: {
447
478
  colSpan: {