@eturnity/eturnity_reusable_components 6.48.0-EPGM-7260.0 → 6.48.2-EPDM-8134.0

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": "6.48.0-EPGM-7260.0",
3
+ "version": "6.48.2-EPDM-8134.0",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
@@ -1,4 +1,4 @@
1
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" fill="white" r="7"></circle>
2
+ <circle cx="20" cy="20" r="7"></circle>
3
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>
4
4
  </svg>
@@ -20,13 +20,13 @@ import styled from 'vue-styled-components'
20
20
 
21
21
  const Wrapper = styled.div`
22
22
  display: block;
23
- text-align:center;
24
- justify-items:center
25
- width:100%;
26
- background-color:#ccc;
23
+ text-align: center;
24
+ justify-items: center;
25
+ width: 100%;
26
+ background-color: #ccc;
27
27
  `
28
28
  const IconWrapper = styled.div`
29
- display:inline-flex
29
+ display: inline-flex;
30
30
  flex-direction: column;
31
31
  background-color: white;
32
32
  border-radius: 6px;
@@ -16,12 +16,13 @@
16
16
  <label-text :labelFontColor="labelFontColor" :data-id="labelDataId">
17
17
  {{ labelText }}
18
18
  </label-text>
19
+
19
20
  <info-text
20
21
  v-if="labelInfoText"
21
22
  :text="labelInfoText"
22
23
  borderColor="#ccc"
23
24
  size="14px"
24
- :alignText="labelInfoAlign"
25
+ :alignArrow="labelInfoAlign"
25
26
  />
26
27
  </label-wrapper>
27
28
  <input-wrapper>
@@ -19,7 +19,7 @@
19
19
  :text="infoTextMessage"
20
20
  borderColor="#ccc"
21
21
  :size="fontSize ? fontSize : '16px'"
22
- :alignText="infoTextAlign"
22
+ :alignArrow="infoTextAlign"
23
23
  />
24
24
  </label-wrapper>
25
25
  <input-error-wrapper>
@@ -1,130 +0,0 @@
1
- <template>
2
- <page-container>
3
- <box-container>
4
- <selected-container
5
- >{{ numberSelected }} {{ $gettext('selected') }}</selected-container
6
- >
7
- <list-container>
8
- <list-item
9
- v-for="item in optionsList"
10
- :key="item.type"
11
- :hoverColor="item.hoverColor"
12
- @click="$emit('on-' + item.type)"
13
- >
14
- {{ item.name }}
15
- </list-item>
16
- </list-container>
17
- <icon-container @click="$emit('on-close')">
18
- <icon
19
- name="close_for_modals,_tool_tips"
20
- color="white"
21
- size="14px"
22
- cursor="pointer"
23
- />
24
- </icon-container>
25
- </box-container>
26
- </page-container>
27
- </template>
28
-
29
- <script>
30
- // import SelectedOptions from "@eturnity/eturnity_reusable_components/src/components/selectedOptions"
31
- // optionsList = [
32
- // {
33
- // type: 'export',
34
- // name: 'Export'
35
- // },
36
- // {
37
- // type: 'delete',
38
- // name: 'Delete',
39
- // hoverColor: 'red' // default is green
40
- // }
41
- // ]
42
- // @on-${type}="function" should $emit the callback for the 'type' in the optionsList
43
- // <selected-options :optionsList="optionsList" @on-close="onCloseFunction()" @on-export="function()" @on-delete="function()" />
44
- import styled from 'vue-styled-components'
45
- import Icon from '../icon'
46
-
47
- const PageContainer = styled.div`
48
- position: fixed;
49
- bottom: 30px;
50
- left: 50%;
51
- transform: translateX(-50%);
52
- `
53
-
54
- const SelectedContainer = styled.div`
55
- display: grid;
56
- align-items: center;
57
- height: 100%;
58
- padding-right: 20px;
59
- border-right: 1px solid rgba(255, 255, 255, 0.2);
60
- `
61
-
62
- const BoxContainer = styled.div`
63
- display: flex;
64
- align-items: center;
65
- background-color: ${(props) => props.theme.colors.black};
66
- opacity: 90%;
67
- color: ${(props) => props.theme.colors.white};
68
- border-radius: 4px;
69
- padding: 8px 10px 8px 20px;
70
- font-size: 14px;
71
- height: 40px;
72
- `
73
-
74
- const ListContainer = styled.div`
75
- padding: 0 20px;
76
- display: flex;
77
- gap: 20px;
78
- color: ${(props) => props.theme.colors.white};
79
- `
80
-
81
- const ListAttrs = {
82
- hoverColor: String
83
- }
84
- const ListItem = styled('div', ListAttrs)`
85
- cursor: pointer;
86
- &:hover {
87
- color: ${(props) =>
88
- props.hoverColor
89
- ? props.theme.colors[props.hoverColor]
90
- : props.theme.colors.green};
91
- }
92
- `
93
-
94
- const IconContainer = styled.div`
95
- display: grid;
96
- align-items: center;
97
- justify-items: center;
98
- height: 30px;
99
- width: 30px;
100
- cursor: pointer;
101
- margin-left: 20px;
102
-
103
- &:hover {
104
- background: rgba(255, 255, 255, 0.1);
105
- border-radius: 4px;
106
- }
107
- `
108
-
109
- export default {
110
- name: 'selected-options',
111
- components: {
112
- PageContainer,
113
- BoxContainer,
114
- SelectedContainer,
115
- ListContainer,
116
- ListItem,
117
- Icon,
118
- IconContainer
119
- },
120
- props: {
121
- optionsList: {
122
- required: true
123
- },
124
- numberSelected: {
125
- required: true,
126
- default: 0
127
- }
128
- }
129
- }
130
- </script>