@icvdeveloper/common-module 1.3.0 → 1.4.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/CHANGELOG.md CHANGED
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## Unreleased
9
9
 
10
+ ## 1.4.0 - 2023-12-11
11
+
10
12
  ## 1.3.0 - 2023-12-05
11
13
 
12
14
  ## 1.2.1 - 2023-12-05
package/dist/module.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "v3plus-common-module",
3
3
  "configKey": "v3plusCommonModule",
4
- "version": "1.3.0"
4
+ "version": "1.4.0"
5
5
  }
@@ -117,6 +117,7 @@ type Props = {
117
117
  icon?: keyof Icons;
118
118
  grayScale?: boolean;
119
119
  width?: string;
120
+ fillColor?: string;
120
121
  classObject?: svgIconClassObj;
121
122
  };
122
123
 
@@ -124,6 +125,7 @@ const props = withDefaults(defineProps<Props>(), {
124
125
  icon: "info",
125
126
  grayScale: false,
126
127
  width: "20px",
128
+ fillColor: "",
127
129
  classObject: () => {
128
130
  return {
129
131
  container: "",
@@ -132,7 +134,7 @@ const props = withDefaults(defineProps<Props>(), {
132
134
  },
133
135
  });
134
136
 
135
- const { icon, grayScale, width } = toRefs(props);
137
+ const { icon, grayScale, width, fillColor } = toRefs(props);
136
138
  const { classBinding } = useClassBinding();
137
139
 
138
140
  // computed
@@ -142,14 +144,18 @@ const iconDims = computed(() => ({
142
144
  }));
143
145
 
144
146
  const iconStyle = computed(() => {
145
- if (!grayScale.value) {
147
+ if (fillColor.value.length) {
148
+ return {
149
+ fill: fillColor.value
150
+ };
151
+ } else if (!grayScale.value) {
146
152
  return {
147
153
  fill: icons[icon.value].color,
148
154
  };
149
155
  }
150
156
 
151
157
  return {
152
- fill: "#666",
158
+ fill: '#666',
153
159
  };
154
160
  });
155
161
 
@@ -36,6 +36,7 @@ interface Props {
36
36
  sponsorPosition?: Position;
37
37
  borderPosition?: Position;
38
38
  countdownPosition?: Position;
39
+ conferences?: Conference[] | null;
39
40
  classObject?: listEventsClassObj;
40
41
  }
41
42
 
@@ -56,6 +57,7 @@ const props = withDefaults(defineProps<Props>(), {
56
57
  sponsorPosition: Position.RIGHT,
57
58
  borderPosition: Position.MIDDLE,
58
59
  countdownPosition: Position.BOTTOM,
60
+ conferences: null,
59
61
  classObject: () => {
60
62
  return {
61
63
  components: ref<listEventsCompObj>({
@@ -82,6 +84,7 @@ const {
82
84
  sponsorPosition,
83
85
  borderPosition,
84
86
  countdownPosition,
87
+ conferences,
85
88
  classObject,
86
89
  } = toRefs(props);
87
90
 
@@ -146,16 +149,24 @@ const eventPathPrefix = computed(() => {
146
149
  });
147
150
 
148
151
  const eventType = computed((): Conference[] => {
149
- if (isUpcoming?.value) {
152
+ if (conferences.value != null) {
150
153
  if (isReversed?.value) {
151
- return reverse(upcomingEvents.value.slice());
154
+ return reverse(conferences.value.slice());
152
155
  } else {
153
- return upcomingEvents.value;
156
+ return conferences.value;
154
157
  }
155
- } else if (isReversed?.value) {
156
- return reverse(pastEvents.value.slice());
157
158
  } else {
158
- return pastEvents.value;
159
+ if (isUpcoming?.value) {
160
+ if (isReversed?.value) {
161
+ return reverse(upcomingEvents.value.slice());
162
+ } else {
163
+ return upcomingEvents.value;
164
+ }
165
+ } else if (isReversed?.value) {
166
+ return reverse(pastEvents.value.slice());
167
+ } else {
168
+ return pastEvents.value;
169
+ }
159
170
  }
160
171
  });
161
172
 
@@ -53,6 +53,7 @@ export type Group = {
53
53
  export type Affiliate = {
54
54
  id?: number;
55
55
  name?: string;
56
+ code?: string;
56
57
  label?: string;
57
58
  photo?: string;
58
59
  vanity?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icvdeveloper/common-module",
3
- "version": "1.3.0",
3
+ "version": "1.4.0",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {