@icvdeveloper/common-module 1.2.1 → 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
package/dist/module.json
CHANGED
|
@@ -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 (
|
|
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:
|
|
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 (
|
|
152
|
+
if (conferences.value != null) {
|
|
150
153
|
if (isReversed?.value) {
|
|
151
|
-
return reverse(
|
|
154
|
+
return reverse(conferences.value.slice());
|
|
152
155
|
} else {
|
|
153
|
-
return
|
|
156
|
+
return conferences.value;
|
|
154
157
|
}
|
|
155
|
-
} else if (isReversed?.value) {
|
|
156
|
-
return reverse(pastEvents.value.slice());
|
|
157
158
|
} else {
|
|
158
|
-
|
|
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
|
|
|
@@ -106,7 +106,6 @@ export const useConferencesStore = defineStore("conferences", {
|
|
|
106
106
|
updateConferencesAccess(userConferences) {
|
|
107
107
|
userConferences.forEach((userConf) => {
|
|
108
108
|
const conf = find(this.conferenceList, { id: userConf.id });
|
|
109
|
-
conf.access = true;
|
|
110
109
|
if (conf)
|
|
111
110
|
conf.access = true;
|
|
112
111
|
});
|