@iqual/nuxt-icms 1.5.21 → 1.5.23
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.
|
@@ -35,8 +35,9 @@ const topicsLabel = computed(() => {
|
|
|
35
35
|
)
|
|
36
36
|
})
|
|
37
37
|
|
|
38
|
+
const teaserVariant = inject<Ref<TeaserVariant>>('teaserVariant')!
|
|
39
|
+
|
|
38
40
|
const getComponent = () => {
|
|
39
|
-
if (!teaserVariant.value) return 'feature'
|
|
40
41
|
const components: Record<string, Component> = {
|
|
41
42
|
teaser: DesignSystemOrganismsTeaserCard,
|
|
42
43
|
feature: DesignSystemOrganismsFeatureCard,
|
|
@@ -47,6 +48,4 @@ const getComponent = () => {
|
|
|
47
48
|
}
|
|
48
49
|
return components[teaserVariant.value]
|
|
49
50
|
}
|
|
50
|
-
|
|
51
|
-
const teaserVariant = inject<TeaserVariant>('teaserVariant')
|
|
52
51
|
</script>
|
|
@@ -107,30 +107,19 @@ Facets: {{ facetData.length }} items</pre
|
|
|
107
107
|
:loading="isGroupLoading(group)"
|
|
108
108
|
:group="group"
|
|
109
109
|
>
|
|
110
|
-
<
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
:
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
props.loadMoreButtonClass,
|
|
118
|
-
)
|
|
110
|
+
<DesignSystemAtomsButton
|
|
111
|
+
:colorScheme="colorScheme"
|
|
112
|
+
buttonStyle="normal"
|
|
113
|
+
:label="
|
|
114
|
+
isGroupLoading(group)
|
|
115
|
+
? defaultLoadingText
|
|
116
|
+
: defaultLoadMoreText
|
|
119
117
|
"
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
{{ defaultLoadMoreText }}
|
|
126
|
-
</span>
|
|
127
|
-
<span
|
|
128
|
-
v-else
|
|
129
|
-
:class="themedClass('groupLoadMoreLoadingButtonLabelClass')"
|
|
130
|
-
>
|
|
131
|
-
{{ defaultLoadingText }}
|
|
132
|
-
</span>
|
|
133
|
-
</button>
|
|
118
|
+
:disabled="isGroupLoading(group)"
|
|
119
|
+
:buttonClass="cn(themedClass('groupLoadMoreButtonClass'), loadMoreButtonClass)"
|
|
120
|
+
:labelClass="themedClass('groupLoadMoreLabelClass')"
|
|
121
|
+
@click="loadMoreGroup(group)"
|
|
122
|
+
/>
|
|
134
123
|
</slot>
|
|
135
124
|
</div>
|
|
136
125
|
</div>
|
|
@@ -186,7 +175,10 @@ Facets: {{ facetData.length }} items</pre
|
|
|
186
175
|
buttonStyle="normal"
|
|
187
176
|
:label="loadingMore ? defaultLoadingText : defaultLoadMoreText"
|
|
188
177
|
:disabled="loadingMore"
|
|
189
|
-
:
|
|
178
|
+
:buttonClass="
|
|
179
|
+
cn(themedClass('globalLoadMoreButtonClass'), loadMoreButtonClass)
|
|
180
|
+
"
|
|
181
|
+
:labelClass="themedClass('globalLoadMoreLabelClass')"
|
|
190
182
|
@click="loadMore"
|
|
191
183
|
/>
|
|
192
184
|
</slot>
|
|
@@ -859,36 +851,6 @@ async function loadMoreGroup(group: any) {
|
|
|
859
851
|
}
|
|
860
852
|
}
|
|
861
853
|
|
|
862
|
-
const button = tv({
|
|
863
|
-
base: themedClass(
|
|
864
|
-
'buttonBase',
|
|
865
|
-
'shadow-none h-auto block text-h7 font-medium py-3 px-20 rounded-full duration-300 ease-in-out w-full md:w-fit border disabled:opacity-50 disabled:cursor-not-allowed',
|
|
866
|
-
),
|
|
867
|
-
variants: {
|
|
868
|
-
colorScheme: {
|
|
869
|
-
none: themedClass(
|
|
870
|
-
'buttonVariantsColorSchemeNone',
|
|
871
|
-
'bg-white text-black hover:bg-black hover:text-white border-black',
|
|
872
|
-
),
|
|
873
|
-
dark: themedClass(
|
|
874
|
-
'buttonVariantsColorSchemeDark',
|
|
875
|
-
'bg-white text-black hover:bg-black hover:text-gray-200 border-black',
|
|
876
|
-
),
|
|
877
|
-
light: themedClass(
|
|
878
|
-
'buttonVariantsColorSchemeLight',
|
|
879
|
-
'bg-gray-50 text-black hover:bg-black hover:text-white border-black',
|
|
880
|
-
),
|
|
881
|
-
accent: themedClass(
|
|
882
|
-
'buttonVariantsColorSchemeAccent',
|
|
883
|
-
'bg-white text-black hover:bg-black hover:text-white border-black',
|
|
884
|
-
),
|
|
885
|
-
},
|
|
886
|
-
},
|
|
887
|
-
defaultVariants: {
|
|
888
|
-
colorScheme: 'none',
|
|
889
|
-
},
|
|
890
|
-
})
|
|
891
|
-
|
|
892
854
|
const loadingText = tv({
|
|
893
855
|
base: themedClass('loadingTextBase'),
|
|
894
856
|
variants: {
|
package/layouts/default.vue
CHANGED
|
@@ -22,7 +22,9 @@ const route = useRoute()
|
|
|
22
22
|
const drupalUser = useDrupalUser()
|
|
23
23
|
const language = useCurrentLanguage()
|
|
24
24
|
|
|
25
|
-
const
|
|
25
|
+
const node = route.meta.drupalFrontendRoute
|
|
26
|
+
? ref(null)
|
|
27
|
+
: (await useDrupalRouteQuery('nodeCanonical')).entity
|
|
26
28
|
|
|
27
29
|
useHead({
|
|
28
30
|
htmlAttrs: {
|