@iqual/nuxt-icms 1.5.21 → 1.5.22

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.
@@ -14,7 +14,7 @@
14
14
  </p>
15
15
  <component
16
16
  v-for="teaser in results?.results"
17
- :is="searchComponent(teaser?.bundle!)"
17
+ :is="teaserComponent(teaser?.bundle!)"
18
18
  v-bind="teaser"
19
19
  />
20
20
  </div>
@@ -107,30 +107,19 @@ Facets: {{ facetData.length }} items</pre
107
107
  :loading="isGroupLoading(group)"
108
108
  :group="group"
109
109
  >
110
- <button
111
- @click="loadMoreGroup(group)"
112
- :disabled="isGroupLoading(group)"
113
- :class="
114
- cn(
115
- button({ colorScheme }),
116
- themedClass('groupLoadMoreButtonClass'),
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
- <span
122
- v-if="!isGroupLoading(group)"
123
- :class="themedClass('groupLoadMoreButtonLabelClass')"
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
- :class="loadMoreButtonClass"
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: {
@@ -22,7 +22,9 @@ const route = useRoute()
22
22
  const drupalUser = useDrupalUser()
23
23
  const language = useCurrentLanguage()
24
24
 
25
- const { entity: node } = await useDrupalRouteQuery('nodeCanonical')
25
+ const node = route.meta.drupalFrontendRoute
26
+ ? ref(null)
27
+ : (await useDrupalRouteQuery('nodeCanonical')).entity
26
28
 
27
29
  useHead({
28
30
  htmlAttrs: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iqual/nuxt-icms",
3
- "version": "1.5.21",
3
+ "version": "1.5.22",
4
4
  "description": "ICMS Base",
5
5
  "type": "module",
6
6
  "private": false,