@icvdeveloper/common-module 0.0.8 → 0.0.10
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/dist/module.json
CHANGED
|
@@ -1,2 +1,16 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
template: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
9
|
+
template: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
default: string;
|
|
12
|
+
};
|
|
13
|
+
}>>, {
|
|
14
|
+
template: string;
|
|
15
|
+
}>;
|
|
2
16
|
export default _default;
|
|
@@ -2,21 +2,33 @@
|
|
|
2
2
|
import { storeToRefs } from "pinia";
|
|
3
3
|
import { Conference } from "../../models/conference";
|
|
4
4
|
import { useTemplateConfigsStore } from "../../store/templateConfigs";
|
|
5
|
+
import { useConferencesStore } from "../../store/conferences";
|
|
5
6
|
import { useConferenceHelpers } from "../../composables/useConferenceHelpers";
|
|
6
7
|
|
|
7
8
|
interface Props {
|
|
8
|
-
conference
|
|
9
|
+
conference?: Conference;
|
|
9
10
|
useEventText?: boolean;
|
|
10
11
|
}
|
|
11
12
|
|
|
12
13
|
// Component Props
|
|
13
14
|
const props = withDefaults(defineProps<Props>(), {
|
|
14
15
|
useEventText: true,
|
|
16
|
+
conference: undefined,
|
|
15
17
|
});
|
|
16
18
|
|
|
19
|
+
// stores
|
|
20
|
+
const conferenceStore = useConferencesStore();
|
|
21
|
+
const { globalConfigValue, pagesConfigValue } = useTemplateConfigsStore();
|
|
22
|
+
|
|
17
23
|
// reactive data
|
|
18
24
|
const { useEventText, conference } = toRefs(props);
|
|
19
25
|
|
|
26
|
+
// default to current conference
|
|
27
|
+
if (!conference.value) {
|
|
28
|
+
conference.value = conferenceStore.currentConference;
|
|
29
|
+
useEventText.value = pagesConfigValue("main.use_event_text");
|
|
30
|
+
}
|
|
31
|
+
|
|
20
32
|
// helper functions
|
|
21
33
|
const {
|
|
22
34
|
getConferenceDisplayDate,
|
|
@@ -31,11 +43,6 @@ const {
|
|
|
31
43
|
getConferenceRegText,
|
|
32
44
|
} = useConferenceHelpers(conference);
|
|
33
45
|
|
|
34
|
-
// store methods
|
|
35
|
-
const { globalConfigValue, pagesConfigValue } = storeToRefs(
|
|
36
|
-
useTemplateConfigsStore()
|
|
37
|
-
);
|
|
38
|
-
|
|
39
46
|
// computed properties
|
|
40
47
|
const mainStyles = computed(() => {
|
|
41
48
|
if (useEventText.value) {
|
|
@@ -51,7 +58,7 @@ const mainStyles = computed(() => {
|
|
|
51
58
|
});
|
|
52
59
|
|
|
53
60
|
const mutedHeaderStyle = computed(() => {
|
|
54
|
-
const muted = globalConfigValue
|
|
61
|
+
const muted = globalConfigValue("muted_photo_headers");
|
|
55
62
|
if (muted === "lighten") return "background-color: rgb(255, 255, 255, .4)";
|
|
56
63
|
if (muted === "darken") return "background-color: rgb(0, 0, 0, .4)";
|
|
57
64
|
return "";
|