@iqual/nuxt-icms 1.6.1 → 1.6.2-rc.1
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/README.md +86 -0
- package/__tests__/anchors.spec.ts +43 -0
- package/__tests__/contract/blokkliComponents.spec.ts +59 -0
- package/__tests__/contract/componentFragments.spec.ts +24 -0
- package/__tests__/contract/languages.spec.ts +63 -0
- package/__tests__/contract/project.ts +144 -0
- package/__tests__/hreflang.spec.ts +39 -0
- package/{tests → __tests__}/pages.spec.ts +14 -5
- package/app.config.ts +15 -0
- package/app.vue +3 -21
- package/assets/css/backend.css +56 -0
- package/assets/css/base/base.css +2 -2
- package/assets/css/base/typography.css +2 -2
- package/assets/css/ckeditor.css +3 -4
- package/assets/css/components/decorations.css +1 -1
- package/assets/css/components/editor.css +1 -1
- package/assets/css/components/grid-container.css +19 -19
- package/assets/css/fe-fixes.css +6 -12
- package/assets/css/theme/colors/color-primary.css +33 -11
- package/assets/css/theme/colors/color-secondary.css +33 -11
- package/assets/css/utilities/utilities.css +1 -1
- package/assets/symbols/anchor.svg +3 -0
- package/blokkli.editAdapter.ts +56 -0
- package/bundles.ts +6 -6
- package/cache/__tests__/pageCache.spec.ts +540 -0
- package/cache/cacheTagRegistry.ts +124 -0
- package/cache/enabledForRequest.ts +21 -0
- package/cache/multiCache.serverOptions.ts +58 -0
- package/cache/pageCache.ts +360 -0
- package/components/Blokkli/Anchor/icon.svg +3 -0
- package/components/Blokkli/Anchor/index.vue +13 -0
- package/components/Blokkli/AnchorNavigation/icon.svg +8 -0
- package/components/Blokkli/AnchorNavigation/index.vue +9 -0
- package/components/Blokkli/Card/Element/index.vue +0 -1
- package/components/Blokkli/Collapsible/Element/index.vue +5 -0
- package/components/Blokkli/FAQ/Element/index.vue +0 -1
- package/components/Blokkli/Fragment/Separator/icon.svg +4 -0
- package/components/Blokkli/Fragment/Separator/index.vue +87 -0
- package/components/Blokkli/Gallery/index.vue +1 -3
- package/components/Blokkli/IconText/Element/index.vue +0 -1
- package/components/Blokkli/Introduction/index.vue +0 -1
- package/components/Blokkli/Listing/icon.svg +9 -0
- package/components/Blokkli/Listing/index.vue +24 -0
- package/components/Blokkli/Logo/Element/index.vue +0 -1
- package/components/Blokkli/Table/index.vue +0 -1
- package/components/Blokkli/Team/Element/index.vue +0 -1
- package/components/Blokkli/Team/Layout/index.vue +0 -1
- package/components/Blokkli/Testimonial/Element/index.vue +0 -1
- package/components/Blokkli/Text/index.vue +0 -1
- package/components/DesignSystem/Atoms/Button.vue +3 -0
- package/components/DesignSystem/Atoms/GridRow.vue +3 -1
- package/components/DesignSystem/Molecules/ButtonGroup.vue +5 -4
- package/components/DesignSystem/Molecules/IconText.vue +6 -6
- package/components/DesignSystem/Molecules/MediaLightbox.vue +8 -8
- package/components/DesignSystem/Molecules/MediaSlider.vue +9 -11
- package/components/DesignSystem/Molecules/Partnership.vue +7 -4
- package/components/DesignSystem/Molecules/Table.vue +35 -19
- package/components/DesignSystem/Molecules/TitleComposition.vue +46 -15
- package/components/DesignSystem/Molecules/iFrame.vue +2 -2
- package/components/DesignSystem/Organisms/CallToAction.vue +8 -7
- package/components/DesignSystem/Organisms/CallToActionFeature.vue +8 -7
- package/components/DesignSystem/Organisms/CallToActionFullwidth.vue +9 -8
- package/components/DesignSystem/Organisms/ContentBlock.vue +26 -16
- package/components/DesignSystem/Organisms/FacetedListing.vue +38 -17
- package/components/DesignSystem/Organisms/FactCard.vue +6 -7
- package/components/DesignSystem/Organisms/FeatureCard.vue +14 -14
- package/components/DesignSystem/Organisms/FlipTeaser.vue +19 -19
- package/components/DesignSystem/Organisms/HeaderHero.vue +11 -11
- package/components/DesignSystem/Organisms/HeaderTextImage.vue +10 -10
- package/components/DesignSystem/Organisms/LinkList.vue +20 -12
- package/components/DesignSystem/Organisms/LogoElement.vue +7 -4
- package/components/DesignSystem/Organisms/Map.vue +1 -1
- package/components/DesignSystem/Organisms/SearchResults.vue +15 -6
- package/components/DesignSystem/Organisms/SpotlightCard.vue +18 -18
- package/components/DesignSystem/Organisms/TeamElement.vue +19 -18
- package/components/DesignSystem/Organisms/TeaserCard.vue +16 -17
- package/components/DesignSystem/Organisms/TeaserSimple.vue +4 -31
- package/components/DesignSystem/Organisms/Testimonial.vue +13 -13
- package/components/DesignSystem/Organisms/TextCard.vue +10 -10
- package/components/DesignSystem/Organisms/TimelineElement.vue +20 -19
- package/components/DesignSystem/Organisms/TwoColumnTextElement.vue +5 -5
- package/components/DesignSystem/README.md +59 -40
- package/components/Drupal/Breadcrumb/index.vue +25 -12
- package/components/Drupal/Messages/index.vue +9 -4
- package/components/Drupal/Webform/index.vue +271 -51
- package/components/Drupal/Webform/mutation.graphql +17 -1
- package/components/Form/HiddenInput.vue +1 -4
- package/components/Form/SelectInput.vue +1 -1
- package/components/Form/SubmitButton.vue +2 -2
- package/components/Form/TextAreaInput.vue +3 -3
- package/components/Form/TextEmailInput.vue +1 -1
- package/components/Form/TextInput.vue +1 -1
- package/components/Form/TextPhoneInput.vue +1 -1
- package/components/Form/WebformMarkup.vue +1 -1
- package/components/Form/composables/useFormDefaultValue.ts +9 -13
- package/components/Form/composables/useFormElement.ts +5 -3
- package/components/Form/utils/types.ts +3 -3
- package/components/Media/Image/fragment.graphql +4 -0
- package/components/Media/Image/index.vue +27 -17
- package/components/Media/RemoteVideo/index.vue +3 -3
- package/components/Media/Video/index.vue +1 -1
- package/components/Node/Icms/Page/SearchResult/fragment.graphql +1 -1
- package/components/Node/Icms/Page/SearchResult/index.vue +2 -2
- package/components/Node/Icms/Page/Teaser/index.vue +1 -1
- package/components/Node/Icms/Page/index.vue +8 -2
- package/components/Paragraph/Anchor/fragment.graphql +4 -0
- package/components/Paragraph/Anchor/index.vue +48 -0
- package/components/Paragraph/AnchorNavigation/fragment.graphql +3 -0
- package/components/Paragraph/AnchorNavigation/index.vue +154 -0
- package/components/Paragraph/BlokkliFragment/fragment.graphql +5 -0
- package/components/Paragraph/Button/Element/fragment.graphql +1 -1
- package/components/Paragraph/Button/Element/index.vue +13 -8
- package/components/Paragraph/Card/Element/index.vue +1 -1
- package/components/Paragraph/Card/Layout/index.vue +9 -9
- package/components/Paragraph/Collapsible/Element/index.vue +2 -2
- package/components/Paragraph/Collapsible/Layout/index.vue +19 -18
- package/components/Paragraph/Contact/index.vue +17 -17
- package/components/Paragraph/Downloads/fragment.graphql +1 -1
- package/components/Paragraph/Downloads/index.vue +13 -13
- package/components/Paragraph/FAQ/Element/index.vue +4 -3
- package/components/Paragraph/FAQ/Layout/index.vue +42 -21
- package/components/Paragraph/FromLibrary/fragment.graphql +17 -0
- package/components/Paragraph/Gallery/index.vue +14 -14
- package/components/Paragraph/HeroImage/index.vue +26 -19
- package/components/Paragraph/IconText/Element/index.vue +4 -4
- package/components/Paragraph/IconText/Layout/index.vue +12 -12
- package/components/Paragraph/Introduction/index.vue +17 -17
- package/components/Paragraph/LinkLists/Element/fragment.graphql +1 -1
- package/components/Paragraph/LinkLists/Element/index.vue +5 -5
- package/components/Paragraph/LinkLists/Layout/index.vue +9 -9
- package/components/Paragraph/Listing/fragment.graphql +14 -0
- package/components/Paragraph/Listing/index.vue +91 -0
- package/components/Paragraph/Logo/Element/fragment.graphql +1 -1
- package/components/Paragraph/Logo/Element/index.vue +7 -4
- package/components/Paragraph/Media/index.vue +23 -21
- package/components/Paragraph/Partnerships/Element/fragment.graphql +1 -1
- package/components/Paragraph/Partnerships/Element/index.vue +10 -7
- package/components/Paragraph/Partnerships/Layout/index.vue +13 -13
- package/components/Paragraph/SingleTestimonial/index.vue +13 -13
- package/components/Paragraph/Table/index.vue +12 -12
- package/components/Paragraph/Team/Element/index.vue +16 -14
- package/components/Paragraph/Team/Layout/index.vue +9 -9
- package/components/Paragraph/Teasers/index.vue +14 -17
- package/components/Paragraph/Testimonial/Element/index.vue +19 -18
- package/components/Paragraph/Testimonial/Layout/index.vue +24 -18
- package/components/Paragraph/Text/fragment.graphql +1 -1
- package/components/Paragraph/Text/index.vue +8 -8
- package/components/Paragraph/TextMedia/index.vue +22 -22
- package/components/Paragraph/Timeline/Element/index.vue +19 -19
- package/components/Paragraph/Timeline/Layout/index.vue +51 -20
- package/components/Paragraph/TwoColumnText/Element/index.vue +13 -13
- package/components/Paragraph/TwoColumnText/Layout/index.vue +1 -1
- package/components/Paragraph/iFrame/index.vue +8 -8
- package/components/Search/Facets/FacetDropdownUI.vue +25 -31
- package/components/Search/Facets/FacetedSearchUI.vue +72 -48
- package/components/Search/Facets/fragment.graphql +20 -15
- package/components/Section/Footer/index.vue +55 -32
- package/components/Section/Header/Buttons.vue +4 -5
- package/components/Section/Header/DesktopMainMenu.vue +5 -4
- package/components/Section/Header/DesktopMainMenuDropdown.vue +5 -5
- package/components/Section/Header/LanguageDropdown.vue +2 -3
- package/components/Section/Header/Logo.vue +3 -3
- package/components/Section/Header/MainButtons.vue +4 -5
- package/components/Section/Header/MetaButtons.vue +5 -6
- package/components/Section/Header/MetaMenu.vue +1 -1
- package/components/Section/Header/MobileMainMenu.vue +1 -1
- package/components/Section/Header/MobileMainMenuItem.vue +2 -2
- package/components/Section/Header/index.vue +6 -13
- package/composables/__tests__/useImageSources.spec.ts +91 -0
- package/composables/breadcrumb.ts +12 -7
- package/composables/useAccordionScroll.ts +12 -4
- package/composables/useAllowedFragments.ts +14 -0
- package/composables/useAnchors.ts +48 -0
- package/composables/useChildTitleWeight.ts +1 -1
- package/composables/useCurrentLangcodeEnum.ts +1 -1
- package/composables/useCurrentNodeId.ts +8 -0
- package/composables/useDrupalUrl.ts +15 -0
- package/composables/useEnrichFacetLabels.ts +8 -6
- package/composables/useEntityRegistry.ts +3 -3
- package/composables/useGlobalConfig.ts +1 -2
- package/composables/useGraphqlCacheability.ts +12 -1
- package/composables/useHreflangLinks.ts +54 -0
- package/composables/useImageSources.ts +70 -28
- package/composables/useInitData.ts +1 -2
- package/composables/useIsHomepage.ts +1 -1
- package/composables/useLinkUrl.ts +30 -0
- package/composables/useMediaLightbox.ts +62 -50
- package/composables/useMenu.ts +1 -3
- package/composables/useMessageBus.ts +14 -7
- package/composables/useMobileMenuOverlayBus.ts +1 -1
- package/composables/useNavigationOffset.ts +49 -6
- package/composables/usePageCache.ts +33 -0
- package/composables/useSiteShell.ts +11 -0
- package/composables/useTheme.ts +17 -13
- package/config/__tests__/stubs/nuxt-multi-cache-config.ts +2 -0
- package/config/blokkli.ts +7 -13
- package/config/easyTexts.ts +1 -1
- package/config/graphqlMiddleware.ts +11 -4
- package/config/index.ts +5 -2
- package/config/languageNegotiation.ts +1 -1
- package/config/multiCache.ts +6 -1
- package/config/postcss-drupal/postcss.config.cjs +2 -2
- package/config/runtimeConfig.ts +7 -2
- package/config/svgIconSprite.ts +1 -2
- package/config/vuepal.ts +16 -18
- package/error.vue +1 -22
- package/layouts/default.vue +2 -6
- package/layouts/error.vue +7 -15
- package/modules/blokkliFragments.ts +76 -0
- package/modules/dynamicEntityComponentResolver.ts +47 -47
- package/modules/dynamicParagraphResolver.ts +43 -8
- package/modules/pageCache.ts +106 -0
- package/nuxt.config.ts +62 -33
- package/package.json +20 -19
- package/pages/[...slug]/index.vue +25 -4
- package/pages/index.vue +3 -3
- package/pages/node/[nid]/index.vue +2 -3
- package/patches/@blokkli+editor+2.0.0-alpha.13.patch +15 -1
- package/plugins/currentNode.ts +17 -0
- package/plugins/graphqlMiddleware.ts +10 -2
- package/plugins/initData.ts +15 -7
- package/plugins/registerNodeIcmsPageComponents.ts +6 -2
- package/plugins/siteShell.client.ts +94 -0
- package/queries/facetTermLabels.graphql +1 -5
- package/queries/fragment.linkUrl.graphql +12 -0
- package/queries/query.contentSearch.graphql +17 -2
- package/queries/query.initData.graphql +1 -1
- package/scripts/create-shade.ts +13 -4
- package/scripts/update-icms.ts +3 -1
- package/server/__tests__/graphqlMiddleware.serverOptions.spec.ts +2 -2
- package/server/__tests__/turnstile.spec.ts +119 -0
- package/server/api/icms/blokkli/last-changed.get.ts +24 -0
- package/server/api/icon/[...params].ts +3 -9
- package/server/graphqlMiddleware.serverOptions.ts +9 -8
- package/server/helpers/index.ts +0 -1
- package/server/middleware/turnstile.ts +51 -0
- package/server/plugins/frameAncestors.ts +20 -0
- package/server/plugins/pageCache.ts +59 -0
- package/server/utils/__tests__/accessDeniedHandover.spec.ts +49 -0
- package/server/utils/__tests__/backendRequestHeaders.spec.ts +115 -0
- package/server/utils/accessDeniedHandover.ts +48 -0
- package/server/utils/backendRequestHeaders.ts +51 -0
- package/server/utils/cacheability.ts +4 -4
- package/shared/__tests__/blokkliState.spec.ts +54 -0
- package/shared/__tests__/csp.spec.ts +53 -0
- package/shared/__tests__/drupalUrl.spec.ts +50 -0
- package/shared/blokkliState.ts +40 -0
- package/shared/csp.ts +47 -0
- package/shared/drupalUrl.ts +30 -0
- package/tailwind.config.ts +0 -5
- package/types/breadcrumb.ts +22 -0
- package/types/global.ts +15 -14
- package/types/langcode.ts +16 -0
- package/types/layerConfig.ts +84 -0
- package/utils/pageCache.ts +95 -0
- package/utils/turnstile.ts +35 -0
- package/composables/useWebformEnrichment.ts +0 -68
- package/server/__tests__/graphqlMiddleware.ts +0 -41
- package/server/multiCache.serverOptions.ts +0 -32
- package/vitest.config.mts +0 -28
|
@@ -4,16 +4,16 @@
|
|
|
4
4
|
<Media
|
|
5
5
|
v-if="image"
|
|
6
6
|
:media="image"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
:
|
|
7
|
+
image-aspect-ratios="1/1"
|
|
8
|
+
image-sizes="xs:100vw sm:100vw md:420px lg:420px"
|
|
9
|
+
:media-class="
|
|
10
10
|
themedClass(
|
|
11
11
|
'mediaClass',
|
|
12
12
|
'min-h-64 w-full @xl:w-[calc(50%-24px)] @xl:shrink-0 @7xl:w-fit',
|
|
13
13
|
)
|
|
14
14
|
"
|
|
15
|
-
:
|
|
16
|
-
:
|
|
15
|
+
:figcaption-class="themedClass('figcaptionClass')"
|
|
16
|
+
:element-class="
|
|
17
17
|
themedClass('elementClass', 'w-full rounded-full overflow-hidden')
|
|
18
18
|
"
|
|
19
19
|
/>
|
|
@@ -32,17 +32,17 @@
|
|
|
32
32
|
(firstname && lastname ? ' ' : '') +
|
|
33
33
|
(lastname ?? '')
|
|
34
34
|
"
|
|
35
|
-
:
|
|
36
|
-
:
|
|
35
|
+
:title-weight="titleWeight"
|
|
36
|
+
:title-class="
|
|
37
37
|
themedClass(
|
|
38
38
|
'titleClass',
|
|
39
39
|
'text-2xl lg:text-2xl font-semibold mb-2 last:mb-0',
|
|
40
40
|
)
|
|
41
41
|
"
|
|
42
42
|
:subtitle="position"
|
|
43
|
-
:
|
|
43
|
+
:subtitle-class="themedClass('subtitleClass', 'mb-0')"
|
|
44
44
|
:text="text"
|
|
45
|
-
:
|
|
45
|
+
:text-class="themedClass('textClass', 'mt-2')"
|
|
46
46
|
/>
|
|
47
47
|
|
|
48
48
|
<div
|
|
@@ -58,12 +58,12 @@
|
|
|
58
58
|
:title="email"
|
|
59
59
|
:link="'mailto:' + email"
|
|
60
60
|
:target-blank="false"
|
|
61
|
-
:
|
|
62
|
-
:
|
|
63
|
-
:
|
|
61
|
+
:button-style="'minimal'"
|
|
62
|
+
:color-scheme="colorScheme"
|
|
63
|
+
:button-class="
|
|
64
64
|
themedClass('buttonClass', 'block p-0 font-normal break-all')
|
|
65
65
|
"
|
|
66
|
-
:
|
|
66
|
+
:label-class="themedClass('labelClass')"
|
|
67
67
|
/>
|
|
68
68
|
|
|
69
69
|
<DesignSystemAtomsButton
|
|
@@ -71,12 +71,12 @@
|
|
|
71
71
|
:title="phone"
|
|
72
72
|
:link="'tel:' + phone"
|
|
73
73
|
:target-blank="false"
|
|
74
|
-
:
|
|
75
|
-
:
|
|
76
|
-
:
|
|
74
|
+
:button-style="'minimal'"
|
|
75
|
+
:color-scheme="colorScheme"
|
|
76
|
+
:button-class="
|
|
77
77
|
themedClass('buttonClass', 'block p-0 font-normal break-all')
|
|
78
78
|
"
|
|
79
|
-
:
|
|
79
|
+
:label-class="themedClass('labelClass')"
|
|
80
80
|
/>
|
|
81
81
|
</div>
|
|
82
82
|
|
|
@@ -98,6 +98,7 @@
|
|
|
98
98
|
<script lang="ts" setup>
|
|
99
99
|
import type { ColorScheme } from '@iqual/nuxt-icms/types/global'
|
|
100
100
|
import type { MediaFragment } from '#graphql-operations'
|
|
101
|
+
import type { FieldListItem } from '#blokkli/types'
|
|
101
102
|
import { tv } from 'tailwind-variants'
|
|
102
103
|
|
|
103
104
|
const themedClass = useTheme('DesignSystemOrganismsTeamElement')
|
|
@@ -111,7 +112,7 @@ defineProps<{
|
|
|
111
112
|
phone?: string
|
|
112
113
|
text?: string
|
|
113
114
|
image?: MediaFragment
|
|
114
|
-
buttons?: Array<
|
|
115
|
+
buttons?: Array<FieldListItem | null>
|
|
115
116
|
colorScheme?: ColorScheme
|
|
116
117
|
containerClass?: string
|
|
117
118
|
mediaClass?: string
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
<Media
|
|
12
12
|
v-if="image"
|
|
13
13
|
:media="image"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
:
|
|
17
|
-
:
|
|
18
|
-
:
|
|
14
|
+
image-sizes="xs:100vw sm:100vw md:420px lg:420px"
|
|
15
|
+
image-aspect-ratios="16/9"
|
|
16
|
+
:media-class="themedClass('mediaClass', 'w-full')"
|
|
17
|
+
:figcaption-class="themedClass('figcaptionClass')"
|
|
18
|
+
:element-class="themedClass('elementClass', 'w-full')"
|
|
19
19
|
/>
|
|
20
20
|
</div>
|
|
21
21
|
|
|
@@ -30,32 +30,32 @@
|
|
|
30
30
|
<slot name="content">
|
|
31
31
|
<DesignSystemOrganismsContentBlock
|
|
32
32
|
:pretitle="pretitle"
|
|
33
|
-
:
|
|
33
|
+
:pretitle-class="
|
|
34
34
|
themedClass(
|
|
35
35
|
'pretitleClass',
|
|
36
36
|
'mb-1 text-base lg:text-base font-medium',
|
|
37
37
|
)
|
|
38
38
|
"
|
|
39
39
|
:title="title"
|
|
40
|
-
:
|
|
41
|
-
:
|
|
40
|
+
:title-weight="titleWeight"
|
|
41
|
+
:title-class="
|
|
42
42
|
themedClass(
|
|
43
43
|
'titleClass',
|
|
44
44
|
'mb-2 text-xl lg:text-xl @sm:!text-2xl font-semibold line-clamp-4',
|
|
45
45
|
)
|
|
46
46
|
"
|
|
47
47
|
:subtitle="subtitle"
|
|
48
|
-
:
|
|
48
|
+
:subtitle-class="
|
|
49
49
|
themedClass(
|
|
50
50
|
'subtitleClass',
|
|
51
51
|
'mb-2 text-base lg:text-base font-semibold',
|
|
52
52
|
)
|
|
53
53
|
"
|
|
54
54
|
:text="text"
|
|
55
|
-
:
|
|
55
|
+
:text-class="themedClass('textClass', 'text-sm line-clamp-4')"
|
|
56
56
|
/>
|
|
57
57
|
</slot>
|
|
58
|
-
<slot name="extra"
|
|
58
|
+
<slot name="extra" />
|
|
59
59
|
<slot name="buttongroup">
|
|
60
60
|
<div
|
|
61
61
|
v-if="link?.path"
|
|
@@ -75,10 +75,10 @@
|
|
|
75
75
|
linkLabel ?? $texts('teaser_card.link_label', 'Read more')
|
|
76
76
|
"
|
|
77
77
|
:target-blank="false"
|
|
78
|
-
:
|
|
79
|
-
:
|
|
80
|
-
:
|
|
81
|
-
:
|
|
78
|
+
:button-style="'focus'"
|
|
79
|
+
:color-scheme="colorScheme"
|
|
80
|
+
:button-class="themedClass('buttonClass')"
|
|
81
|
+
:label-class="themedClass('labelClass')"
|
|
82
82
|
/>
|
|
83
83
|
</div>
|
|
84
84
|
</slot>
|
|
@@ -91,11 +91,10 @@
|
|
|
91
91
|
import type { ColorScheme } from '@iqual/nuxt-icms/types/global'
|
|
92
92
|
import type { MediaFragment } from '#graphql-operations'
|
|
93
93
|
import { tv } from 'tailwind-variants'
|
|
94
|
-
import cn from '@iqual/nuxt-icms/composables/useCn'
|
|
95
94
|
|
|
96
95
|
const themedClass = useTheme('DesignSystemOrganismsTeaserCard')
|
|
97
96
|
|
|
98
|
-
|
|
97
|
+
defineProps<{
|
|
99
98
|
image?: MediaFragment
|
|
100
99
|
pretitle?: string
|
|
101
100
|
title?: string
|
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
<slot name="content">
|
|
11
11
|
<DesignSystemOrganismsContentBlock
|
|
12
12
|
:title="title"
|
|
13
|
-
:
|
|
14
|
-
:
|
|
15
|
-
:
|
|
13
|
+
:title-weight="titleWeight"
|
|
14
|
+
:title-style="'heading-5'"
|
|
15
|
+
:title-class="themedClass('titleClass', 'mb-0 font-semibold')"
|
|
16
16
|
/>
|
|
17
17
|
</slot>
|
|
18
|
-
<slot name="links"
|
|
18
|
+
<slot name="links" />
|
|
19
19
|
<div
|
|
20
20
|
v-if="link?.path"
|
|
21
21
|
:class="
|
|
@@ -67,33 +67,6 @@ const teaser = tv({
|
|
|
67
67
|
},
|
|
68
68
|
})
|
|
69
69
|
|
|
70
|
-
const teaserIconWrapper = tv({
|
|
71
|
-
base: themedClass(
|
|
72
|
-
'teaserIconWrapperBase',
|
|
73
|
-
'shrink-0 flex size-16 items-center justify-center p-2 aspect-square mb-6 lg:mb-8',
|
|
74
|
-
),
|
|
75
|
-
variants: {
|
|
76
|
-
colorScheme: {
|
|
77
|
-
none: themedClass('teaserIconWrapperVariantsColorSchemeNone', 'bg-white'),
|
|
78
|
-
dark: themedClass(
|
|
79
|
-
'teaserIconWrapperVariantsColorSchemeDark',
|
|
80
|
-
'bg-gray-900',
|
|
81
|
-
),
|
|
82
|
-
light: themedClass(
|
|
83
|
-
'teaserIconWrapperVariantsColorSchemeLight',
|
|
84
|
-
'bg-gray-50',
|
|
85
|
-
),
|
|
86
|
-
accent: themedClass(
|
|
87
|
-
'teaserIconWrapperVariantsColorSchemeAccent',
|
|
88
|
-
'bg-primary-600',
|
|
89
|
-
),
|
|
90
|
-
},
|
|
91
|
-
},
|
|
92
|
-
defaultVariants: {
|
|
93
|
-
colorScheme: 'none',
|
|
94
|
-
},
|
|
95
|
-
})
|
|
96
|
-
|
|
97
70
|
const arrow = tv({
|
|
98
71
|
base: themedClass('bulletPointBase', 'size-6 shrink-0 transition-transform'),
|
|
99
72
|
variants: {
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
<div :class="themedClass('containerClass')">
|
|
3
3
|
<DesignSystemOrganismsContentBlock
|
|
4
4
|
:title="title"
|
|
5
|
-
:
|
|
6
|
-
:
|
|
5
|
+
:title-weight="titleWeight"
|
|
6
|
+
:title-class="
|
|
7
7
|
themedClass('titleClass', 'text-xl font-semibold lg:text-2xl mb-1')
|
|
8
8
|
"
|
|
9
9
|
:text="text"
|
|
10
|
-
:
|
|
11
|
-
:
|
|
10
|
+
:text-class="themedClass('textClass')"
|
|
11
|
+
:color-scheme="colorScheme"
|
|
12
12
|
/>
|
|
13
13
|
<div
|
|
14
14
|
:class="themedClass('authorContainerClass', 'mt-10 flex items-center')"
|
|
@@ -16,16 +16,16 @@
|
|
|
16
16
|
<Media
|
|
17
17
|
v-if="image"
|
|
18
18
|
:media="image"
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
:
|
|
19
|
+
image-aspect-ratios="1/1"
|
|
20
|
+
image-sizes="xs:60px"
|
|
21
|
+
:media-class="
|
|
22
22
|
themedClass(
|
|
23
23
|
'mediaClass',
|
|
24
24
|
'mr-6 size-16 rounded-full overflow-hidden shrink-0',
|
|
25
25
|
)
|
|
26
26
|
"
|
|
27
|
-
:
|
|
28
|
-
:
|
|
27
|
+
:figcaption-class="themedClass('figcaptionClass')"
|
|
28
|
+
:element-class="themedClass('elementClass')"
|
|
29
29
|
/>
|
|
30
30
|
<div
|
|
31
31
|
:class="[
|
|
@@ -53,15 +53,15 @@
|
|
|
53
53
|
<Media
|
|
54
54
|
v-if="logo"
|
|
55
55
|
:media="logo"
|
|
56
|
-
|
|
57
|
-
:
|
|
56
|
+
image-sizes="xs:100px"
|
|
57
|
+
:media-class="
|
|
58
58
|
themedClass(
|
|
59
59
|
'logoMediaClass',
|
|
60
60
|
'hidden max-w-24 max-h-12 lg:block shrink-0',
|
|
61
61
|
)
|
|
62
62
|
"
|
|
63
|
-
:
|
|
64
|
-
:
|
|
63
|
+
:figcaption-class="themedClass('logoFigcaptionClass')"
|
|
64
|
+
:element-class="themedClass('logoElementClass')"
|
|
65
65
|
/>
|
|
66
66
|
</div>
|
|
67
67
|
</div>
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<div v-if="icon" :class="cardIconWrapper({ colorScheme })">
|
|
11
11
|
<Media
|
|
12
12
|
:media="icon"
|
|
13
|
-
:
|
|
13
|
+
:media-class="
|
|
14
14
|
themedClass(
|
|
15
15
|
'mediaClass',
|
|
16
16
|
'w-full h-full object-scale-down object-center',
|
|
@@ -21,18 +21,18 @@
|
|
|
21
21
|
<slot name="content">
|
|
22
22
|
<DesignSystemOrganismsContentBlock
|
|
23
23
|
:pretitle="pretitle"
|
|
24
|
-
:
|
|
24
|
+
:pretitle-class="
|
|
25
25
|
themedClass(
|
|
26
26
|
'pretitleClass',
|
|
27
27
|
'[&>p:last-of-type]:mb-0 text-base lg:text-base font-medium',
|
|
28
28
|
)
|
|
29
29
|
"
|
|
30
30
|
:title="title"
|
|
31
|
-
:
|
|
32
|
-
:
|
|
33
|
-
:
|
|
31
|
+
:title-weight="titleWeight"
|
|
32
|
+
:title-style="'heading-5'"
|
|
33
|
+
:title-class="themedClass('titleClass', 'mb-2 font-semibold')"
|
|
34
34
|
:text="text"
|
|
35
|
-
:
|
|
35
|
+
:text-class="themedClass('textClass', '[&>p:last-of-type]:mb-0')"
|
|
36
36
|
/>
|
|
37
37
|
</slot>
|
|
38
38
|
<slot name="links">
|
|
@@ -50,10 +50,10 @@
|
|
|
50
50
|
:title="$texts('teaser_card.link_label', 'Read more')"
|
|
51
51
|
:link="link?.path"
|
|
52
52
|
:target-blank="false"
|
|
53
|
-
:
|
|
54
|
-
:
|
|
55
|
-
:
|
|
56
|
-
:
|
|
53
|
+
:button-style="'minimal'"
|
|
54
|
+
:color-scheme="colorScheme"
|
|
55
|
+
:button-class="themedClass('buttonClass')"
|
|
56
|
+
:label-class="themedClass('labelClass')"
|
|
57
57
|
/>
|
|
58
58
|
</div>
|
|
59
59
|
</slot>
|
|
@@ -12,16 +12,16 @@
|
|
|
12
12
|
<div :class="themedClass('firstColumnClass', textColumnClasses)">
|
|
13
13
|
<DesignSystemOrganismsContentBlock
|
|
14
14
|
:pretitle="pretitle"
|
|
15
|
-
:
|
|
15
|
+
:pretitle-class="themedClass('pretitleClass')"
|
|
16
16
|
:title="title"
|
|
17
|
-
:
|
|
18
|
-
:
|
|
19
|
-
:
|
|
17
|
+
:title-style="titleStyle"
|
|
18
|
+
:title-weight="titleWeight"
|
|
19
|
+
:title-class="themedClass('titleClass', 'mb-2')"
|
|
20
20
|
:subtitle="subtitle"
|
|
21
|
-
:
|
|
21
|
+
:subtitle-class="themedClass('subtitleClass', 'font-semibold')"
|
|
22
22
|
:text="text"
|
|
23
|
-
:
|
|
24
|
-
:
|
|
23
|
+
:text-class="themedClass('textClass')"
|
|
24
|
+
:color-scheme="colorScheme"
|
|
25
25
|
/>
|
|
26
26
|
<BlokkliField
|
|
27
27
|
name="field_icms_buttons"
|
|
@@ -41,13 +41,13 @@
|
|
|
41
41
|
<DesignSystemMoleculesMediaSlider
|
|
42
42
|
v-if="media"
|
|
43
43
|
:media="media"
|
|
44
|
-
|
|
45
|
-
:
|
|
46
|
-
|
|
47
|
-
:
|
|
48
|
-
:
|
|
49
|
-
:
|
|
50
|
-
:
|
|
44
|
+
color-scheme="none"
|
|
45
|
+
:container-class="themedClass('mediaContainerClass', 'my-0')"
|
|
46
|
+
image-sizes="xs:750px"
|
|
47
|
+
:image-format="imageFormat"
|
|
48
|
+
:media-class="themedClass('mediaClass', 'my-0')"
|
|
49
|
+
:figcaption-class="themedClass('figcaptionClass')"
|
|
50
|
+
:element-class="themedClass('elementClass')"
|
|
51
51
|
/>
|
|
52
52
|
</div>
|
|
53
53
|
</DesignSystemAtomsGridRow>
|
|
@@ -56,6 +56,7 @@
|
|
|
56
56
|
<script lang="ts" setup>
|
|
57
57
|
import type { ColorScheme, ImageFormat } from '@iqual/nuxt-icms/types/global'
|
|
58
58
|
import type { MediaFragment } from '#graphql-operations'
|
|
59
|
+
import type { FieldListItem } from '#blokkli/types'
|
|
59
60
|
|
|
60
61
|
const themedClass = useTheme('DesignSystemOrganismsTimelineElement')
|
|
61
62
|
|
|
@@ -67,7 +68,7 @@ const props = defineProps<{
|
|
|
67
68
|
subtitle?: string
|
|
68
69
|
text?: string
|
|
69
70
|
media?: (MediaFragment | null)[] | undefined
|
|
70
|
-
buttons?: Array<
|
|
71
|
+
buttons?: Array<FieldListItem | null>
|
|
71
72
|
colorScheme?: ColorScheme
|
|
72
73
|
hasDecorativeLine?: boolean
|
|
73
74
|
reverseColumns?: boolean
|
|
@@ -87,12 +88,12 @@ const props = defineProps<{
|
|
|
87
88
|
imageFormat?: ImageFormat
|
|
88
89
|
}>()
|
|
89
90
|
|
|
90
|
-
const
|
|
91
|
+
const isReversed = ref(false)
|
|
91
92
|
|
|
92
93
|
watch(
|
|
93
94
|
() => props.reverseColumns,
|
|
94
95
|
(newVal) => {
|
|
95
|
-
|
|
96
|
+
isReversed.value = Boolean(Number(newVal))
|
|
96
97
|
},
|
|
97
98
|
{ immediate: true },
|
|
98
99
|
)
|
|
@@ -100,7 +101,7 @@ watch(
|
|
|
100
101
|
const textColumnClasses = computed(() => {
|
|
101
102
|
const classList = ['col-span-12', 'lg:col-span-5']
|
|
102
103
|
|
|
103
|
-
if (
|
|
104
|
+
if (isReversed.value) {
|
|
104
105
|
classList.push('lg:order-last', 'lg:col-start-8')
|
|
105
106
|
} else {
|
|
106
107
|
classList.push('lg:order-first', 'lg:col-start-1')
|
|
@@ -112,7 +113,7 @@ const textColumnClasses = computed(() => {
|
|
|
112
113
|
const mediaColumnClasses = computed(() => {
|
|
113
114
|
const classList = ['col-span-12', 'lg:col-span-5']
|
|
114
115
|
|
|
115
|
-
if (
|
|
116
|
+
if (isReversed.value) {
|
|
116
117
|
classList.push('lg:order-first', 'lg:col-start-1')
|
|
117
118
|
} else {
|
|
118
119
|
classList.push('lg:order-last', 'lg:col-start-8')
|
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
"
|
|
13
13
|
>
|
|
14
14
|
<DesignSystemMoleculesTitleComposition
|
|
15
|
-
:
|
|
15
|
+
:container-class="themedClass('titleCompositionFirstContainerClass')"
|
|
16
16
|
:pretitle="pretitle"
|
|
17
|
-
:
|
|
17
|
+
:pretitle-class="themedClass('pretitleClass')"
|
|
18
18
|
:title="title"
|
|
19
|
-
:
|
|
19
|
+
:title-class="themedClass('titleClass')"
|
|
20
20
|
:weight="titleWeight"
|
|
21
21
|
:style="titleStyle"
|
|
22
22
|
/>
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
"
|
|
34
34
|
>
|
|
35
35
|
<DesignSystemMoleculesTitleComposition
|
|
36
|
-
:
|
|
36
|
+
:container-class="
|
|
37
37
|
themedClass('titleCompositionSecondContainerClass', 'mb-2 text-base')
|
|
38
38
|
"
|
|
39
39
|
:subtitle="subtitle"
|
|
40
|
-
:
|
|
40
|
+
:subtitle-class="themedClass('subtitleClass')"
|
|
41
41
|
/>
|
|
42
42
|
<div
|
|
43
43
|
v-if="text"
|