@icvdeveloper/common-module 2.1.3 → 2.1.4
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 +2 -0
- package/dist/module.d.mts +2 -0
- package/dist/module.d.ts +2 -0
- package/dist/module.json +1 -1
- package/dist/runtime/components/core/Navigation.vue +29 -10
- package/dist/runtime/composables/useAgenda.mjs +5 -2
- package/dist/runtime/models/conference.d.ts +1 -0
- package/dist/runtime/models/pagesConfig.d.ts +1 -0
- package/dist/runtime/store/templateConfigs.mjs +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/module.d.mts
CHANGED
|
@@ -259,6 +259,7 @@ type Track = {
|
|
|
259
259
|
access: boolean;
|
|
260
260
|
channel: number;
|
|
261
261
|
conference_day_id?: number;
|
|
262
|
+
day: Day;
|
|
262
263
|
date: string;
|
|
263
264
|
embed_html?: string | null;
|
|
264
265
|
id: number;
|
|
@@ -682,6 +683,7 @@ type AgendaPlayerPageConfigs = {
|
|
|
682
683
|
agenda_tab_bg_color: ColorVariable;
|
|
683
684
|
agenda_tab_color: ColorVariable;
|
|
684
685
|
agenda_tab_sponsor_bg_color: ColorVariable;
|
|
686
|
+
agenda_theme: SelectVariable;
|
|
685
687
|
agenda_track_bg_color: ColorVariable;
|
|
686
688
|
agenda_track_group_bg_color: ColorVariable;
|
|
687
689
|
session_end_times: ToggleVariable;
|
package/dist/module.d.ts
CHANGED
|
@@ -259,6 +259,7 @@ type Track = {
|
|
|
259
259
|
access: boolean;
|
|
260
260
|
channel: number;
|
|
261
261
|
conference_day_id?: number;
|
|
262
|
+
day: Day;
|
|
262
263
|
date: string;
|
|
263
264
|
embed_html?: string | null;
|
|
264
265
|
id: number;
|
|
@@ -682,6 +683,7 @@ type AgendaPlayerPageConfigs = {
|
|
|
682
683
|
agenda_tab_bg_color: ColorVariable;
|
|
683
684
|
agenda_tab_color: ColorVariable;
|
|
684
685
|
agenda_tab_sponsor_bg_color: ColorVariable;
|
|
686
|
+
agenda_theme: SelectVariable;
|
|
685
687
|
agenda_track_bg_color: ColorVariable;
|
|
686
688
|
agenda_track_group_bg_color: ColorVariable;
|
|
687
689
|
session_end_times: ToggleVariable;
|
package/dist/module.json
CHANGED
|
@@ -89,12 +89,16 @@ const navigationItems = computed(() => {
|
|
|
89
89
|
return getEnabled();
|
|
90
90
|
});
|
|
91
91
|
|
|
92
|
-
const htmlHeader = computed(() => {
|
|
92
|
+
const htmlHeader = computed((): string => {
|
|
93
93
|
return globalConfigValue("html_header");
|
|
94
94
|
});
|
|
95
95
|
|
|
96
|
-
const hideUserProfile = computed(() => {
|
|
97
|
-
return globalConfigValue("hide_user_profile");
|
|
96
|
+
const hideUserProfile = computed((): boolean => {
|
|
97
|
+
return globalConfigValue("hide_user_profile", true);
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
const isSearchEnabled = computed((): boolean => {
|
|
101
|
+
return globalConfigValue("site_search", false);
|
|
98
102
|
});
|
|
99
103
|
|
|
100
104
|
// methods
|
|
@@ -104,6 +108,12 @@ const emitLoginModal = (): void => {
|
|
|
104
108
|
modalContentEventHook.trigger(modalContent);
|
|
105
109
|
};
|
|
106
110
|
|
|
111
|
+
const emitSearchModal = (): void => {
|
|
112
|
+
const modalContent: ContentData = {};
|
|
113
|
+
modalContent.contentType = 'search';
|
|
114
|
+
modalContentEventHook.trigger(modalContent);
|
|
115
|
+
};
|
|
116
|
+
|
|
107
117
|
const emitStreamTest = (): void => {
|
|
108
118
|
const streamPres: PlayerPresentation = {
|
|
109
119
|
player_type: 'live',
|
|
@@ -190,13 +200,22 @@ const emitStreamTest = (): void => {
|
|
|
190
200
|
>
|
|
191
201
|
<li>
|
|
192
202
|
<template v-if="!isExternalLink(item)">
|
|
193
|
-
<
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
203
|
+
<template v-if="isVirtual">
|
|
204
|
+
<nuxt-link
|
|
205
|
+
v-if="item.slug == 'stream-test'"
|
|
206
|
+
:class="['cursor-pointer', classBinding(classObject, 'navigationItemLink', 'nav-link')]"
|
|
207
|
+
@click.enter="emitSearchModal"
|
|
208
|
+
>
|
|
209
|
+
{{ item.label }}
|
|
210
|
+
</nuxt-link>
|
|
211
|
+
<nuxt-link
|
|
212
|
+
v-if="isSearchEnabled && item.slug == 'search'"
|
|
213
|
+
:class="['cursor-pointer', classBinding(classObject, 'navigationItemLink', 'nav-link')]"
|
|
214
|
+
@click.enter="emitSearchModal"
|
|
215
|
+
>
|
|
216
|
+
{{ item.label }}
|
|
217
|
+
</nuxt-link>
|
|
218
|
+
</template>
|
|
200
219
|
<nuxt-link
|
|
201
220
|
v-else
|
|
202
221
|
:to="formatLink(item)"
|
|
@@ -16,10 +16,9 @@ import {
|
|
|
16
16
|
} from "../composables/useEventHooks.mjs";
|
|
17
17
|
export const useAgenda = (conference) => {
|
|
18
18
|
const { setConferenceConfig, pagesConfigValue } = useTemplateConfigsStore();
|
|
19
|
-
console.log("setting conference config");
|
|
20
|
-
setConferenceConfig(conference.value);
|
|
21
19
|
const affiliateStore = useAffiliatesStore();
|
|
22
20
|
const route = useRoute();
|
|
21
|
+
const { conferences } = storeToRefs(useTemplateConfigsStore());
|
|
23
22
|
const { isLoggedIn } = storeToRefs(useAuthStore());
|
|
24
23
|
const { currentConference } = storeToRefs(useConferencesStore());
|
|
25
24
|
const { playerPresentation, livePresentations } = storeToRefs(usePlayerConfigStore());
|
|
@@ -27,6 +26,10 @@ export const useAgenda = (conference) => {
|
|
|
27
26
|
const allowAgendaFullAccess = pagesConfigValue("agenda.agendas_full_access", false);
|
|
28
27
|
const displayTrackGroups = pagesConfigValue("agenda.group_tracks", "None");
|
|
29
28
|
const selectedPresenter = ref(null);
|
|
29
|
+
if (conferences.value[conference.value.id] === void 0) {
|
|
30
|
+
console.log("setting conference config");
|
|
31
|
+
setConferenceConfig(conference.value);
|
|
32
|
+
}
|
|
30
33
|
const days = computed(() => {
|
|
31
34
|
const data = conference.value.days;
|
|
32
35
|
if (data == void 0) return [];
|
|
@@ -31,6 +31,7 @@ export type AgendaPlayerPageConfigs = {
|
|
|
31
31
|
agenda_tab_bg_color: ColorVariable;
|
|
32
32
|
agenda_tab_color: ColorVariable;
|
|
33
33
|
agenda_tab_sponsor_bg_color: ColorVariable;
|
|
34
|
+
agenda_theme: SelectVariable;
|
|
34
35
|
agenda_track_bg_color: ColorVariable;
|
|
35
36
|
agenda_track_group_bg_color: ColorVariable;
|
|
36
37
|
session_end_times: ToggleVariable;
|
|
@@ -81,6 +81,7 @@ export const useTemplateConfigsStore = defineStore("templateConfigs", {
|
|
|
81
81
|
};
|
|
82
82
|
},
|
|
83
83
|
setConferenceConfig(conference) {
|
|
84
|
+
if (this.conferences[conference.id] != void 0) return;
|
|
84
85
|
const newPagesConfig = this.portalConfig.pages;
|
|
85
86
|
const confPagesConfig = {};
|
|
86
87
|
const conferenceTemplateConfig = conference.template_config ?? {};
|