@eturnity/eturnity_reusable_components 6.48.0-EPDM-8599.0 → 6.48.0-EPDM-8891.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": "6.48.0-EPDM-8599.0",
3
+ "version": "6.48.0-EPDM-8891.3",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
package/src/App.vue CHANGED
@@ -114,7 +114,6 @@ import iconCollection from '@/components/icon/iconCollection'
114
114
  import dropdownComponent from '@/components/dropdown'
115
115
  import videoThumbnail from '@/components/videoThumbnail'
116
116
  import icon from '@/components/icon'
117
- import infoCard from '@/components/infoCard'
118
117
  // import TableDropdown from "@/components/tableDropdown"
119
118
 
120
119
  const PageContainer = styled.div`
@@ -139,8 +138,7 @@ export default {
139
138
  iconCollection,
140
139
  dropdownComponent,
141
140
  videoThumbnail,
142
- icon,
143
- infoCard
141
+ icon
144
142
  },
145
143
  data() {
146
144
  return {
@@ -537,7 +537,15 @@ export default {
537
537
  computed: {
538
538
  optionLength() {
539
539
  if (this.isDropdownOpen) {
540
- return this.$refs.dropdown.$children.length
540
+ // this filterRef is needed to check for the # of children on Filter dropdowns
541
+ const filterRef =
542
+ this.$refs.dropdown.$children &&
543
+ this.$refs.dropdown.$children.length > 1
544
+ ? this.$refs.dropdown.$children
545
+ : this.$refs.dropdown.$children[0].$children
546
+ ? this.$refs.dropdown.$children[0].$children
547
+ : this.$refs.dropdown.$children
548
+ return filterRef.length
541
549
  } else {
542
550
  return 0
543
551
  }
@@ -10,8 +10,6 @@
10
10
  v-if="label && labelAlign === 'left'"
11
11
  :hasInfoMessage="!!infoTextMessage"
12
12
  :colorMode="colorMode"
13
- :primaryColor="primaryColor"
14
- :secondaryColor="secondaryColor"
15
13
  >
16
14
  <label-text :size="size">{{ label }}</label-text>
17
15
  <info-text
@@ -101,12 +99,10 @@ const toggleAttrs = {
101
99
  fontColor: String,
102
100
  disabled: Boolean,
103
101
  backgroundColor: String,
104
- isChecked: Boolean,
105
- secondaryColor: String,
106
- primaryColor: String,
102
+ isChecked: Boolean
107
103
  }
108
104
  const LabelText = styled('div', toggleAttrs)`
109
- color: ${(props) => props.primaryColor };
105
+ color: white;
110
106
  font-size: 13px;
111
107
  font-weight: 700;
112
108
  `
@@ -1,38 +0,0 @@
1
- <template>
2
- <info-container>
3
- <icon name="info" size="24px" />
4
- <InfoTextContainer>
5
- <slot />
6
- </InfoTextContainer>
7
- </info-container>
8
- </template>
9
-
10
- <script>
11
- import styled from 'vue-styled-components'
12
- import icon from '../icon'
13
- const InfoContainer = styled('div')`
14
- display: flex;
15
- align-items: flex-start;
16
- gap: 15px;
17
- padding: 20px;
18
- width: 500px;
19
- min-width: 450px;
20
- border: 1px dashed #dee2eb;
21
- border-radius: 4px;
22
- margin:20px 0;
23
- `
24
-
25
- const InfoTextContainer = styled('div')`
26
- font-size: 13px;
27
- `
28
-
29
-
30
- export default {
31
- components:{
32
- icon,
33
- InfoTextContainer,
34
- InfoContainer
35
- },
36
- props:[]
37
- }
38
- </script>