@iqual/nuxt-icms 1.0.2
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/app.config.ts +1 -0
- package/app.vue +50 -0
- package/assets/css/backend.css +82 -0
- package/assets/css/ckeditor.css +15 -0
- package/assets/css/components/carousel.css +91 -0
- package/assets/css/components/ck-content.css +65 -0
- package/assets/css/components/container.css +17 -0
- package/assets/css/components/dialog.css +9 -0
- package/assets/css/components/grid-container.css +296 -0
- package/assets/css/components/link.css +21 -0
- package/assets/css/fe-fixes.css +105 -0
- package/assets/css/tailwind.css +104 -0
- package/assets/css/typography.css +67 -0
- package/assets/symbols/chevron-down.svg +1 -0
- package/assets/symbols/chevron-right.svg +3 -0
- package/assets/symbols/close.svg +3 -0
- package/assets/symbols/facebook.svg +3 -0
- package/assets/symbols/instagram.svg +13 -0
- package/assets/symbols/linkedin.svg +4 -0
- package/assets/symbols/logo.svg +22 -0
- package/assets/symbols/magnifyingglass.svg +4 -0
- package/assets/symbols/pinterest.svg +4 -0
- package/assets/symbols/play.svg +6 -0
- package/assets/symbols/tiktok.svg +4 -0
- package/assets/symbols/x.svg +4 -0
- package/bundles.ts +50 -0
- package/components/Blokkli/Button/Element/icon.svg +4 -0
- package/components/Blokkli/Button/Element/index.vue +18 -0
- package/components/Blokkli/CallToAction/icon-blokkli-option-large-spacing-bottom.svg +1 -0
- package/components/Blokkli/CallToAction/icon-blokkli-option-large-spacing-top.svg +1 -0
- package/components/Blokkli/CallToAction/icon-blokkli-option-no-spacing.svg +1 -0
- package/components/Blokkli/CallToAction/icon-blokkli-option-small-spacing-bottom.svg +1 -0
- package/components/Blokkli/CallToAction/icon-blokkli-option-small-spacing-top.svg +1 -0
- package/components/Blokkli/CallToAction/icon.svg +5 -0
- package/components/Blokkli/CallToAction/index.vue +15 -0
- package/components/Blokkli/Card/Element/icon.svg +6 -0
- package/components/Blokkli/Card/Element/index.vue +14 -0
- package/components/Blokkli/Card/Layout/icon-blokkli-option-large-spacing-bottom.svg +1 -0
- package/components/Blokkli/Card/Layout/icon-blokkli-option-large-spacing-top.svg +1 -0
- package/components/Blokkli/Card/Layout/icon-blokkli-option-large-spacing.svg +1 -0
- package/components/Blokkli/Card/Layout/icon-blokkli-option-no-spacing.svg +1 -0
- package/components/Blokkli/Card/Layout/icon-blokkli-option-small-spacing-bottom.svg +1 -0
- package/components/Blokkli/Card/Layout/icon-blokkli-option-small-spacing-top.svg +1 -0
- package/components/Blokkli/Card/Layout/icon-blokkli-option-small-spacing.svg +1 -0
- package/components/Blokkli/Card/Layout/icon.svg +8 -0
- package/components/Blokkli/Card/Layout/index.vue +15 -0
- package/components/Blokkli/Contact/icon-blokkli-option-large-spacing-bottom.svg +1 -0
- package/components/Blokkli/Contact/icon-blokkli-option-large-spacing-top.svg +1 -0
- package/components/Blokkli/Contact/icon-blokkli-option-no-spacing.svg +1 -0
- package/components/Blokkli/Contact/icon-blokkli-option-small-spacing-bottom.svg +1 -0
- package/components/Blokkli/Contact/icon-blokkli-option-small-spacing-top.svg +1 -0
- package/components/Blokkli/Contact/icon.svg +5 -0
- package/components/Blokkli/Contact/index.vue +15 -0
- package/components/Blokkli/Downloads/icon-blokkli-option-large-spacing-bottom.svg +1 -0
- package/components/Blokkli/Downloads/icon-blokkli-option-large-spacing-top.svg +1 -0
- package/components/Blokkli/Downloads/icon-blokkli-option-no-spacing.svg +1 -0
- package/components/Blokkli/Downloads/icon-blokkli-option-small-spacing-bottom.svg +1 -0
- package/components/Blokkli/Downloads/icon-blokkli-option-small-spacing-top.svg +1 -0
- package/components/Blokkli/Downloads/icon.svg +5 -0
- package/components/Blokkli/Downloads/index.vue +16 -0
- package/components/Blokkli/FAQ/Element/icon-blokkli-option-large-spacing.svg +1 -0
- package/components/Blokkli/FAQ/Element/icon-blokkli-option-no-spacing.svg +1 -0
- package/components/Blokkli/FAQ/Element/icon-blokkli-option-small-spacing.svg +1 -0
- package/components/Blokkli/FAQ/Element/icon.svg +3 -0
- package/components/Blokkli/FAQ/Element/index.vue +14 -0
- package/components/Blokkli/FAQ/Layout/icon-blokkli-option-large-spacing-bottom.svg +1 -0
- package/components/Blokkli/FAQ/Layout/icon-blokkli-option-large-spacing-top.svg +1 -0
- package/components/Blokkli/FAQ/Layout/icon-blokkli-option-no-spacing.svg +1 -0
- package/components/Blokkli/FAQ/Layout/icon-blokkli-option-small-spacing-bottom.svg +1 -0
- package/components/Blokkli/FAQ/Layout/icon-blokkli-option-small-spacing-top.svg +1 -0
- package/components/Blokkli/FAQ/Layout/icon.svg +5 -0
- package/components/Blokkli/FAQ/Layout/index.vue +20 -0
- package/components/Blokkli/FlipTeasers/icon-blokkli-option-large-spacing-bottom.svg +1 -0
- package/components/Blokkli/FlipTeasers/icon-blokkli-option-large-spacing-top.svg +1 -0
- package/components/Blokkli/FlipTeasers/icon-blokkli-option-no-spacing.svg +1 -0
- package/components/Blokkli/FlipTeasers/icon-blokkli-option-small-spacing-bottom.svg +1 -0
- package/components/Blokkli/FlipTeasers/icon-blokkli-option-small-spacing-top.svg +1 -0
- package/components/Blokkli/FlipTeasers/icon.svg +7 -0
- package/components/Blokkli/FlipTeasers/index.vue +15 -0
- package/components/Blokkli/Gallery/icon-blokkli-option-large-spacing-bottom.svg +1 -0
- package/components/Blokkli/Gallery/icon-blokkli-option-large-spacing-top.svg +1 -0
- package/components/Blokkli/Gallery/icon-blokkli-option-no-spacing.svg +1 -0
- package/components/Blokkli/Gallery/icon-blokkli-option-small-spacing-bottom.svg +1 -0
- package/components/Blokkli/Gallery/icon-blokkli-option-small-spacing-top.svg +1 -0
- package/components/Blokkli/Gallery/icon.svg +5 -0
- package/components/Blokkli/Gallery/index.vue +16 -0
- package/components/Blokkli/HeroImage/icon.svg +5 -0
- package/components/Blokkli/HeroImage/index.vue +15 -0
- package/components/Blokkli/IconText/Element/icon.svg +5 -0
- package/components/Blokkli/IconText/Element/index.vue +14 -0
- package/components/Blokkli/IconText/Layout/icon-blokkli-option-large-spacing-bottom.svg +1 -0
- package/components/Blokkli/IconText/Layout/icon-blokkli-option-large-spacing-top.svg +1 -0
- package/components/Blokkli/IconText/Layout/icon-blokkli-option-no-spacing.svg +1 -0
- package/components/Blokkli/IconText/Layout/icon-blokkli-option-small-spacing-bottom.svg +1 -0
- package/components/Blokkli/IconText/Layout/icon-blokkli-option-small-spacing-top.svg +1 -0
- package/components/Blokkli/IconText/Layout/icon.svg +7 -0
- package/components/Blokkli/IconText/Layout/index.vue +20 -0
- package/components/Blokkli/Introduction/icon-blokkli-option-large-spacing-bottom.svg +1 -0
- package/components/Blokkli/Introduction/icon-blokkli-option-large-spacing-top.svg +1 -0
- package/components/Blokkli/Introduction/icon-blokkli-option-no-spacing.svg +1 -0
- package/components/Blokkli/Introduction/icon-blokkli-option-small-spacing-bottom.svg +1 -0
- package/components/Blokkli/Introduction/icon-blokkli-option-small-spacing-top.svg +1 -0
- package/components/Blokkli/Introduction/icon.svg +5 -0
- package/components/Blokkli/Introduction/index.vue +20 -0
- package/components/Blokkli/Logo/Element/icon.svg +6 -0
- package/components/Blokkli/Logo/Element/index.vue +14 -0
- package/components/Blokkli/Media/icon-blokkli-option-large-spacing-bottom.svg +1 -0
- package/components/Blokkli/Media/icon-blokkli-option-large-spacing-top.svg +1 -0
- package/components/Blokkli/Media/icon-blokkli-option-no-spacing.svg +1 -0
- package/components/Blokkli/Media/icon-blokkli-option-small-spacing-bottom.svg +1 -0
- package/components/Blokkli/Media/icon-blokkli-option-small-spacing-top.svg +1 -0
- package/components/Blokkli/Media/icon.svg +8 -0
- package/components/Blokkli/Media/index.vue +15 -0
- package/components/Blokkli/Partnerships/Element/icon.svg +3 -0
- package/components/Blokkli/Partnerships/Element/index.vue +13 -0
- package/components/Blokkli/Partnerships/Layout/icon-blokkli-option-large-spacing-bottom.svg +1 -0
- package/components/Blokkli/Partnerships/Layout/icon-blokkli-option-large-spacing-top.svg +1 -0
- package/components/Blokkli/Partnerships/Layout/icon-blokkli-option-no-spacing.svg +1 -0
- package/components/Blokkli/Partnerships/Layout/icon-blokkli-option-small-spacing-bottom.svg +1 -0
- package/components/Blokkli/Partnerships/Layout/icon-blokkli-option-small-spacing-top.svg +1 -0
- package/components/Blokkli/Partnerships/Layout/icon.svg +5 -0
- package/components/Blokkli/Partnerships/Layout/index.vue +15 -0
- package/components/Blokkli/SingleTestimonial/icon-blokkli-option-large-spacing-bottom.svg +1 -0
- package/components/Blokkli/SingleTestimonial/icon-blokkli-option-large-spacing-top.svg +1 -0
- package/components/Blokkli/SingleTestimonial/icon-blokkli-option-no-spacing.svg +1 -0
- package/components/Blokkli/SingleTestimonial/icon-blokkli-option-small-spacing-bottom.svg +1 -0
- package/components/Blokkli/SingleTestimonial/icon-blokkli-option-small-spacing-top.svg +1 -0
- package/components/Blokkli/SingleTestimonial/icon.svg +5 -0
- package/components/Blokkli/SingleTestimonial/index.vue +20 -0
- package/components/Blokkli/Table/icon-blokkli-option-large-spacing-bottom.svg +1 -0
- package/components/Blokkli/Table/icon-blokkli-option-large-spacing-top.svg +1 -0
- package/components/Blokkli/Table/icon-blokkli-option-no-spacing.svg +1 -0
- package/components/Blokkli/Table/icon-blokkli-option-small-spacing-bottom.svg +1 -0
- package/components/Blokkli/Table/icon-blokkli-option-small-spacing-top.svg +1 -0
- package/components/Blokkli/Table/icon.svg +5 -0
- package/components/Blokkli/Table/index.vue +15 -0
- package/components/Blokkli/Tabs/Element/icon.svg +3 -0
- package/components/Blokkli/Tabs/Element/index.vue +14 -0
- package/components/Blokkli/Tabs/Layout/icon-blokkli-option-large-spacing-bottom.svg +1 -0
- package/components/Blokkli/Tabs/Layout/icon-blokkli-option-large-spacing-top.svg +1 -0
- package/components/Blokkli/Tabs/Layout/icon-blokkli-option-no-spacing.svg +1 -0
- package/components/Blokkli/Tabs/Layout/icon-blokkli-option-small-spacing-bottom.svg +1 -0
- package/components/Blokkli/Tabs/Layout/icon-blokkli-option-small-spacing-top.svg +1 -0
- package/components/Blokkli/Tabs/Layout/icon.svg +5 -0
- package/components/Blokkli/Tabs/Layout/index.vue +20 -0
- package/components/Blokkli/Team/Element/icon.svg +3 -0
- package/components/Blokkli/Team/Element/index.vue +14 -0
- package/components/Blokkli/Team/Layout/icon-blokkli-option-large-spacing-bottom.svg +1 -0
- package/components/Blokkli/Team/Layout/icon-blokkli-option-large-spacing-top.svg +1 -0
- package/components/Blokkli/Team/Layout/icon-blokkli-option-no-spacing.svg +1 -0
- package/components/Blokkli/Team/Layout/icon-blokkli-option-small-spacing-bottom.svg +1 -0
- package/components/Blokkli/Team/Layout/icon-blokkli-option-small-spacing-top.svg +1 -0
- package/components/Blokkli/Team/Layout/icon.svg +5 -0
- package/components/Blokkli/Team/Layout/index.vue +15 -0
- package/components/Blokkli/Teasers/icon-blokkli-option-large-spacing-bottom.svg +1 -0
- package/components/Blokkli/Teasers/icon-blokkli-option-large-spacing-top.svg +1 -0
- package/components/Blokkli/Teasers/icon-blokkli-option-no-spacing.svg +1 -0
- package/components/Blokkli/Teasers/icon-blokkli-option-small-spacing-bottom.svg +1 -0
- package/components/Blokkli/Teasers/icon-blokkli-option-small-spacing-top.svg +1 -0
- package/components/Blokkli/Teasers/icon.svg +6 -0
- package/components/Blokkli/Teasers/index.vue +15 -0
- package/components/Blokkli/Testimonial/Element/icon.svg +3 -0
- package/components/Blokkli/Testimonial/Element/index.vue +14 -0
- package/components/Blokkli/Testimonial/Layout/icon-blokkli-option-large-spacing-bottom.svg +1 -0
- package/components/Blokkli/Testimonial/Layout/icon-blokkli-option-large-spacing-top.svg +1 -0
- package/components/Blokkli/Testimonial/Layout/icon-blokkli-option-no-spacing.svg +1 -0
- package/components/Blokkli/Testimonial/Layout/icon-blokkli-option-small-spacing-bottom.svg +1 -0
- package/components/Blokkli/Testimonial/Layout/icon-blokkli-option-small-spacing-top.svg +1 -0
- package/components/Blokkli/Testimonial/Layout/icon.svg +5 -0
- package/components/Blokkli/Testimonial/Layout/index.vue +15 -0
- package/components/Blokkli/Text/icon-blokkli-option-large-spacing-bottom.svg +1 -0
- package/components/Blokkli/Text/icon-blokkli-option-large-spacing-top.svg +1 -0
- package/components/Blokkli/Text/icon-blokkli-option-no-spacing.svg +1 -0
- package/components/Blokkli/Text/icon-blokkli-option-small-spacing-bottom.svg +1 -0
- package/components/Blokkli/Text/icon-blokkli-option-small-spacing-top.svg +1 -0
- package/components/Blokkli/Text/icon.svg +7 -0
- package/components/Blokkli/Text/index.vue +21 -0
- package/components/Blokkli/TextMedia/icon-blokkli-option-large-spacing-bottom.svg +1 -0
- package/components/Blokkli/TextMedia/icon-blokkli-option-large-spacing-top.svg +1 -0
- package/components/Blokkli/TextMedia/icon-blokkli-option-no-spacing.svg +1 -0
- package/components/Blokkli/TextMedia/icon-blokkli-option-small-spacing-bottom.svg +1 -0
- package/components/Blokkli/TextMedia/icon-blokkli-option-small-spacing-top.svg +1 -0
- package/components/Blokkli/TextMedia/icon.svg +5 -0
- package/components/Blokkli/TextMedia/index.vue +22 -0
- package/components/Blokkli/TwoColumnText/Element/icon.svg +8 -0
- package/components/Blokkli/TwoColumnText/Element/index.vue +15 -0
- package/components/Blokkli/TwoColumnText/Layout/icon-blokkli-option-large-spacing-bottom.svg +1 -0
- package/components/Blokkli/TwoColumnText/Layout/icon-blokkli-option-large-spacing-top.svg +1 -0
- package/components/Blokkli/TwoColumnText/Layout/icon-blokkli-option-no-spacing.svg +1 -0
- package/components/Blokkli/TwoColumnText/Layout/icon-blokkli-option-small-spacing-bottom.svg +1 -0
- package/components/Blokkli/TwoColumnText/Layout/icon-blokkli-option-small-spacing-top.svg +1 -0
- package/components/Blokkli/TwoColumnText/Layout/icon.svg +10 -0
- package/components/Blokkli/TwoColumnText/Layout/index.vue +18 -0
- package/components/Blokkli/iFrame/Element/icon.svg +5 -0
- package/components/Blokkli/iFrame/Element/index.vue +14 -0
- package/components/Blokkli/iFrame/Layout/icon-blokkli-option-large-spacing-bottom.svg +1 -0
- package/components/Blokkli/iFrame/Layout/icon-blokkli-option-large-spacing-top.svg +1 -0
- package/components/Blokkli/iFrame/Layout/icon-blokkli-option-no-spacing.svg +1 -0
- package/components/Blokkli/iFrame/Layout/icon-blokkli-option-small-spacing-bottom.svg +1 -0
- package/components/Blokkli/iFrame/Layout/icon-blokkli-option-small-spacing-top.svg +1 -0
- package/components/Blokkli/iFrame/Layout/icon.svg +7 -0
- package/components/Blokkli/iFrame/Layout/index.vue +18 -0
- package/components/DesignSystem/Atoms/Button.vue +144 -0
- package/components/DesignSystem/Atoms/Container.vue +54 -0
- package/components/DesignSystem/Atoms/GridRow.vue +13 -0
- package/components/DesignSystem/Molecules/ButtonGroup.vue +45 -0
- package/components/DesignSystem/Molecules/Card.vue +70 -0
- package/components/DesignSystem/Molecules/IconText.vue +62 -0
- package/components/DesignSystem/Molecules/MediaSlider.vue +72 -0
- package/components/DesignSystem/Molecules/Partnership.vue +40 -0
- package/components/DesignSystem/Molecules/Table.vue +170 -0
- package/components/DesignSystem/Molecules/TitleComposition.vue +66 -0
- package/components/DesignSystem/Molecules/iFrame.vue +22 -0
- package/components/DesignSystem/Organisms/ContentBlock.vue +82 -0
- package/components/DesignSystem/Organisms/FlipTeaser.vue +160 -0
- package/components/DesignSystem/Organisms/LogoElement.vue +37 -0
- package/components/DesignSystem/Organisms/TeamElement.vue +89 -0
- package/components/DesignSystem/Organisms/TeaserCard.vue +74 -0
- package/components/DesignSystem/Organisms/Testimonial.vue +53 -0
- package/components/DesignSystem/Organisms/TwoColumnTextElement.vue +42 -0
- package/components/Drupal/Breadcrumb/fragment.breadcrumb.graphql +6 -0
- package/components/Drupal/Breadcrumb/index.vue +88 -0
- package/components/Drupal/Messages/index.vue +29 -0
- package/components/Drupal/Webform/fragment.graphql +86 -0
- package/components/Drupal/Webform/index.vue +174 -0
- package/components/Drupal/Webform/mutation.graphql +8 -0
- package/components/Drupal/Webform/query.graphql +21 -0
- package/components/Form/CheckboxInput.vue +35 -0
- package/components/Form/CheckboxInputs.vue +44 -0
- package/components/Form/FileUploadInput.vue +34 -0
- package/components/Form/RadioButtonsInput.vue +44 -0
- package/components/Form/SelectInput.vue +54 -0
- package/components/Form/SubmitButton.vue +12 -0
- package/components/Form/TextAreaInput.vue +34 -0
- package/components/Form/TextEmailInput.vue +35 -0
- package/components/Form/TextInput.vue +35 -0
- package/components/Form/TextPhoneInput.vue +35 -0
- package/components/Form/WebformMarkup.vue +9 -0
- package/components/Form/composables/useFormElement.ts +84 -0
- package/components/Form/utils/types.ts +64 -0
- package/components/Media/Icon/fragment.mediaIcon.graphql +9 -0
- package/components/Media/Icon/index.vue +16 -0
- package/components/Media/Image/fragment.graphql +11 -0
- package/components/Media/Image/index.vue +215 -0
- package/components/Media/RemoteVideo/fragment.graphql +27 -0
- package/components/Media/RemoteVideo/index.vue +58 -0
- package/components/Media/Video/fragment.graphql +17 -0
- package/components/Media/Video/index.vue +44 -0
- package/components/Media/fragment.graphql +8 -0
- package/components/Media/index.vue +33 -0
- package/components/Node/Icms/Page/fragment.graphql +17 -0
- package/components/Node/Icms/Page/index.vue +14 -0
- package/components/Paragraph/Button/Element/fragment.graphql +14 -0
- package/components/Paragraph/Button/Element/index.vue +23 -0
- package/components/Paragraph/CallToAction/fragment.graphql +12 -0
- package/components/Paragraph/CallToAction/index.vue +60 -0
- package/components/Paragraph/Card/Element/fragment.graphql +10 -0
- package/components/Paragraph/Card/Element/index.vue +19 -0
- package/components/Paragraph/Card/Layout/fragment.graphql +14 -0
- package/components/Paragraph/Card/Layout/index.vue +58 -0
- package/components/Paragraph/Contact/fragment.graphql +20 -0
- package/components/Paragraph/Contact/index.vue +60 -0
- package/components/Paragraph/Downloads/fragment.graphql +15 -0
- package/components/Paragraph/Downloads/index.vue +104 -0
- package/components/Paragraph/FAQ/Element/fragment.graphql +10 -0
- package/components/Paragraph/FAQ/Element/index.vue +66 -0
- package/components/Paragraph/FAQ/Layout/fragment.graphql +23 -0
- package/components/Paragraph/FAQ/Layout/index.vue +84 -0
- package/components/Paragraph/FlipTeasers/fragment.graphql +25 -0
- package/components/Paragraph/FlipTeasers/index.vue +59 -0
- package/components/Paragraph/Gallery/fragment.graphql +11 -0
- package/components/Paragraph/Gallery/index.vue +223 -0
- package/components/Paragraph/HeroImage/fragment.graphql +17 -0
- package/components/Paragraph/HeroImage/index.vue +147 -0
- package/components/Paragraph/IconText/Element/fragment.graphql +8 -0
- package/components/Paragraph/IconText/Element/index.vue +18 -0
- package/components/Paragraph/IconText/Layout/fragment.graphql +23 -0
- package/components/Paragraph/IconText/Layout/index.vue +76 -0
- package/components/Paragraph/Introduction/fragment.graphql +20 -0
- package/components/Paragraph/Introduction/index.vue +94 -0
- package/components/Paragraph/Logo/Element/fragment.graphql +11 -0
- package/components/Paragraph/Logo/Element/index.vue +17 -0
- package/components/Paragraph/Media/fragment.graphql +5 -0
- package/components/Paragraph/Media/index.vue +83 -0
- package/components/Paragraph/Partnerships/Element/fragment.graphql +11 -0
- package/components/Paragraph/Partnerships/Element/index.vue +14 -0
- package/components/Paragraph/Partnerships/Layout/fragment.graphql +17 -0
- package/components/Paragraph/Partnerships/Layout/index.vue +119 -0
- package/components/Paragraph/SingleTestimonial/fragment.graphql +24 -0
- package/components/Paragraph/SingleTestimonial/index.vue +79 -0
- package/components/Paragraph/Table/fragment.graphql +11 -0
- package/components/Paragraph/Table/index.vue +43 -0
- package/components/Paragraph/Tabs/Element/fragment.graphql +17 -0
- package/components/Paragraph/Tabs/Element/index.vue +78 -0
- package/components/Paragraph/Tabs/Layout/fragment.graphql +11 -0
- package/components/Paragraph/Tabs/Layout/index.vue +191 -0
- package/components/Paragraph/Team/Element/fragment.graphql +17 -0
- package/components/Paragraph/Team/Element/index.vue +23 -0
- package/components/Paragraph/Team/Layout/fragment.graphql +14 -0
- package/components/Paragraph/Team/Layout/index.vue +51 -0
- package/components/Paragraph/Teasers/fragment.graphql +25 -0
- package/components/Paragraph/Teasers/index.vue +58 -0
- package/components/Paragraph/Testimonial/Element/fragment.graphql +13 -0
- package/components/Paragraph/Testimonial/Element/index.vue +29 -0
- package/components/Paragraph/Testimonial/Layout/fragment.graphql +13 -0
- package/components/Paragraph/Testimonial/Layout/index.vue +109 -0
- package/components/Paragraph/Text/fragment.graphql +14 -0
- package/components/Paragraph/Text/index.vue +66 -0
- package/components/Paragraph/TextMedia/fragment.graphql +17 -0
- package/components/Paragraph/TextMedia/index.vue +125 -0
- package/components/Paragraph/TwoColumnText/Element/fragment.graphql +8 -0
- package/components/Paragraph/TwoColumnText/Element/index.vue +31 -0
- package/components/Paragraph/TwoColumnText/Layout/fragment.graphql +8 -0
- package/components/Paragraph/TwoColumnText/Layout/index.vue +25 -0
- package/components/Paragraph/fragment.paragraphsFieldItem.graphql +6 -0
- package/components/Paragraph/iFrame/Element/fragment.graphql +9 -0
- package/components/Paragraph/iFrame/Element/index.vue +16 -0
- package/components/Paragraph/iFrame/Layout/fragment.graphql +13 -0
- package/components/Paragraph/iFrame/Layout/index.vue +161 -0
- package/components/Section/Footer/index.vue +144 -0
- package/components/Section/Header/GlobalMenu.vue +337 -0
- package/components/Section/Header/LanguageDropdown.vue +105 -0
- package/components/Section/Header/MenuIcon.vue +171 -0
- package/components/Section/Header/MetaMenu.vue +57 -0
- package/components/Section/Header/SearchLink.vue +26 -0
- package/components/Section/Header/index.vue +205 -0
- package/components/ui/accordion/Accordion.vue +19 -0
- package/components/ui/accordion/AccordionContent.vue +26 -0
- package/components/ui/accordion/AccordionItem.vue +27 -0
- package/components/ui/accordion/AccordionTrigger.vue +41 -0
- package/components/ui/accordion/index.ts +4 -0
- package/components/ui/button/Button.vue +26 -0
- package/components/ui/button/index.ts +36 -0
- package/components/ui/carousel/Carousel.vue +72 -0
- package/components/ui/carousel/CarouselContent.vue +30 -0
- package/components/ui/carousel/CarouselItem.vue +25 -0
- package/components/ui/carousel/CarouselNext.vue +33 -0
- package/components/ui/carousel/CarouselPrevious.vue +33 -0
- package/components/ui/carousel/index.ts +8 -0
- package/components/ui/carousel/interface.ts +24 -0
- package/components/ui/carousel/useCarousel.ts +66 -0
- package/components/ui/checkbox/Checkbox.vue +34 -0
- package/components/ui/checkbox/index.ts +1 -0
- package/components/ui/dialog/Dialog.vue +19 -0
- package/components/ui/dialog/DialogClose.vue +11 -0
- package/components/ui/dialog/DialogContent.vue +53 -0
- package/components/ui/dialog/DialogDescription.vue +30 -0
- package/components/ui/dialog/DialogFooter.vue +19 -0
- package/components/ui/dialog/DialogHeader.vue +16 -0
- package/components/ui/dialog/DialogScrollContent.vue +66 -0
- package/components/ui/dialog/DialogTitle.vue +28 -0
- package/components/ui/dialog/DialogTrigger.vue +11 -0
- package/components/ui/dialog/index.ts +9 -0
- package/components/ui/input/Input.vue +24 -0
- package/components/ui/input/index.ts +1 -0
- package/components/ui/label/Label.vue +29 -0
- package/components/ui/label/index.ts +1 -0
- package/components/ui/radio-group/RadioGroup.vue +27 -0
- package/components/ui/radio-group/RadioGroupItem.vue +41 -0
- package/components/ui/radio-group/index.ts +2 -0
- package/components/ui/select/Select.vue +15 -0
- package/components/ui/select/SelectContent.vue +54 -0
- package/components/ui/select/SelectGroup.vue +21 -0
- package/components/ui/select/SelectItem.vue +46 -0
- package/components/ui/select/SelectItemText.vue +12 -0
- package/components/ui/select/SelectLabel.vue +14 -0
- package/components/ui/select/SelectScrollDownButton.vue +26 -0
- package/components/ui/select/SelectScrollUpButton.vue +26 -0
- package/components/ui/select/SelectSeparator.vue +19 -0
- package/components/ui/select/SelectTrigger.vue +33 -0
- package/components/ui/select/SelectValue.vue +12 -0
- package/components/ui/select/index.ts +11 -0
- package/components/ui/tabs/Tabs.vue +15 -0
- package/components/ui/tabs/TabsContent.vue +29 -0
- package/components/ui/tabs/TabsList.vue +27 -0
- package/components/ui/tabs/TabsTrigger.vue +33 -0
- package/components/ui/tabs/index.ts +4 -0
- package/components/ui/textarea/Textarea.vue +24 -0
- package/components/ui/textarea/index.ts +1 -0
- package/components.json +18 -0
- package/composables/breadcrumb.ts +42 -0
- package/composables/languageLinks.ts +31 -0
- package/composables/query.initData.graphql +102 -0
- package/composables/useAccordionScroll.ts +30 -0
- package/composables/useChildTitleWeight.ts +13 -0
- package/composables/useCn.ts +7 -0
- package/composables/useCurrentLangcodeEnum.ts +18 -0
- package/composables/useDrupalMessages.ts +41 -0
- package/composables/useDrupalUser.ts +11 -0
- package/composables/useInitData.ts +118 -0
- package/composables/useIsMobile.ts +14 -0
- package/composables/useMainMenuLinks.ts +69 -0
- package/composables/useMetaMenuLinks.ts +44 -0
- package/composables/useNavigationOffset.ts +14 -0
- package/config/graphqlMiddleware/index.ts +41 -0
- package/config/multiCache/index.ts +28 -0
- package/config/postcss-drupal/postcss.config.cjs +14 -0
- package/config/runtimeConfig.ts +12 -0
- package/error.vue +39 -0
- package/eslint.config.mjs +111 -0
- package/formkit.config.ts +56 -0
- package/formkit.theme.ts +5000 -0
- package/layouts/default.vue +66 -0
- package/layouts/error.vue +98 -0
- package/layouts/library.vue +5 -0
- package/modules/dynamicNodeResolver.ts +95 -0
- package/modules/dynamicParagraphResolver.ts +69 -0
- package/nuxt.config.ts +551 -0
- package/package.json +64 -0
- package/pages/[...slug]/index.vue +27 -0
- package/pages/__tests__/index.ts +77 -0
- package/pages/blokkli/library-item/[uuid].vue +52 -0
- package/pages/blokkli/library-item/query.library.graphql +21 -0
- package/pages/index.vue +27 -0
- package/pages/node/[nid]/index.vue +25 -0
- package/pages/search/index.vue +69 -0
- package/pages/static-page/example.vue +40 -0
- package/plugins/clickaway.ts +12 -0
- package/plugins/drupalUser.ts +33 -0
- package/plugins/graphqlMiddleware.ts +115 -0
- package/queries/blokkli.graphql +5 -0
- package/queries/fragment.blokkliProps.graphql +8 -0
- package/queries/fragment.routeQuery.graphql +51 -0
- package/queries/query.drupalUser.graphql +10 -0
- package/server/api/content-search/index.ts +160 -0
- package/server/api/icon/[...params].ts +199 -0
- package/server/graphqlMiddleware.serverOptions.ts +87 -0
- package/server/helpers/index.ts +32 -0
- package/server/helpers/request.ts +44 -0
- package/server/middleware/spa.ts +45 -0
- package/server/multiCache.serverOptions.ts +32 -0
- package/server/tsconfig.json +3 -0
- package/server/utils/cacheability.ts +138 -0
- package/shims-vue.d.ts +5 -0
- package/tailwind.config.ts +228 -0
- package/vitest.config.mts +28 -0
|
@@ -0,0 +1,337 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<nav
|
|
3
|
+
ref="globalMenu"
|
|
4
|
+
class="z-30 mb-8 border-b-1 border-b-gray-100 py-8 lg:mb-0 lg:h-full lg:border-0 lg:py-0 lg:pl-12"
|
|
5
|
+
v-on="!isMobile ? { mouseleave: onNavbarMouseLeave } : {}"
|
|
6
|
+
>
|
|
7
|
+
<ul
|
|
8
|
+
role="menu"
|
|
9
|
+
class="flex flex-col flex-wrap justify-end text-base lg:h-full lg:flex-row lg:items-center lg:gap-8 lg:border-0 lg:font-medium"
|
|
10
|
+
>
|
|
11
|
+
<li
|
|
12
|
+
v-for="(link, mainIndex) in links"
|
|
13
|
+
:key="`global_${mainIndex}`"
|
|
14
|
+
role="menuitem"
|
|
15
|
+
class="group/main relative flex flex-col items-stretch lg:h-full lg:flex-row"
|
|
16
|
+
>
|
|
17
|
+
<VuepalLink
|
|
18
|
+
:to="link.link?.url?.path"
|
|
19
|
+
:aria-controls="'firstLevel-' + mainIndex"
|
|
20
|
+
:aria-expanded="hoverMain === mainIndex"
|
|
21
|
+
:aria-haspopup="!!link.subtree?.length"
|
|
22
|
+
class="flex w-full items-center justify-between whitespace-nowrap group-hover/main:text-primary-500 motion-safe:transition-colors motion-safe:duration-200 lg:size-auto lg:py-0"
|
|
23
|
+
:class="
|
|
24
|
+
link.link?.url?.path === currentActiveMainLink?.link.url?.path
|
|
25
|
+
? 'text-primary-500'
|
|
26
|
+
: 'text-black'
|
|
27
|
+
"
|
|
28
|
+
@mouseenter="!isMobile && onMenuInteraction('main', mainIndex)"
|
|
29
|
+
@mouseleave="!isMobile && onMouseLeave()"
|
|
30
|
+
@click="onLinkClick"
|
|
31
|
+
>
|
|
32
|
+
{{ link.link.label }}
|
|
33
|
+
<div
|
|
34
|
+
class="grid size-10 place-content-center lg:size-auto"
|
|
35
|
+
@click.prevent.stop="
|
|
36
|
+
isMobile && onMenuInteraction('main', mainIndex)
|
|
37
|
+
"
|
|
38
|
+
>
|
|
39
|
+
<SpriteSymbol
|
|
40
|
+
v-show="link.subtree.length"
|
|
41
|
+
name="chevron-down"
|
|
42
|
+
:aria-label="
|
|
43
|
+
isMobile
|
|
44
|
+
? $texts('header.submenu_toggle', 'Toggle submenu')
|
|
45
|
+
: undefined
|
|
46
|
+
"
|
|
47
|
+
:aria-hidden="!isMobile"
|
|
48
|
+
class="size-5 cursor-pointer text-black transition-transform duration-300 lg:ml-2"
|
|
49
|
+
:class="{
|
|
50
|
+
'rotate-180': isMobile ? hoverMain === mainIndex : false,
|
|
51
|
+
'lg:rotate-180': !isMobile && hoverMain === mainIndex,
|
|
52
|
+
}"
|
|
53
|
+
/>
|
|
54
|
+
</div>
|
|
55
|
+
</VuepalLink>
|
|
56
|
+
|
|
57
|
+
<!-- First level menu -->
|
|
58
|
+
<transition :name="isMobile ? 'slideDown' : 'fade'">
|
|
59
|
+
<div
|
|
60
|
+
v-show="link.subtree?.length && hoverMain === mainIndex"
|
|
61
|
+
:id="'firstLevel-' + mainIndex"
|
|
62
|
+
class="w-max min-w-full lg:absolute lg:left-0 lg:top-full lg:border lg:border-gray-100 lg:bg-white lg:text-sm"
|
|
63
|
+
>
|
|
64
|
+
<ul role="menu" class="ml-4 lg:ml-0">
|
|
65
|
+
<li
|
|
66
|
+
v-for="(firstLevelLink, firstLevelIndex) in link.subtree"
|
|
67
|
+
:key="`firstLevel_${firstLevelIndex}`"
|
|
68
|
+
role="menuitem"
|
|
69
|
+
class="group/first relative"
|
|
70
|
+
@mouseleave="!isMobile && onMouseLeave()"
|
|
71
|
+
>
|
|
72
|
+
<VuepalLink
|
|
73
|
+
:to="firstLevelLink.link.url?.path"
|
|
74
|
+
:aria-controls="'secondLevel-' + firstLevelIndex"
|
|
75
|
+
:aria-expanded="hoverFirst === firstLevelIndex"
|
|
76
|
+
:aria-haspopup="!!firstLevelLink.subtree.length"
|
|
77
|
+
class="flex w-full items-center justify-between whitespace-nowrap no-underline group-hover/first:text-primary-500 motion-safe:transition-colors motion-safe:duration-200 lg:px-4 lg:py-3"
|
|
78
|
+
:class="
|
|
79
|
+
firstLevelLink.link?.url?.path ===
|
|
80
|
+
activeFirstLevelLink?.link.url?.path
|
|
81
|
+
? 'text-primary-500'
|
|
82
|
+
: 'text-black'
|
|
83
|
+
"
|
|
84
|
+
@mouseenter="
|
|
85
|
+
!isMobile && onMenuInteraction('first', firstLevelIndex)
|
|
86
|
+
"
|
|
87
|
+
@mouseleave="!isMobile && onMouseLeave()"
|
|
88
|
+
@click="onLinkClick"
|
|
89
|
+
>
|
|
90
|
+
{{ firstLevelLink.link.label }}
|
|
91
|
+
<div
|
|
92
|
+
class="grid size-10 place-content-center lg:size-auto"
|
|
93
|
+
@click.prevent.stop="
|
|
94
|
+
isMobile && onMenuInteraction('first', firstLevelIndex)
|
|
95
|
+
"
|
|
96
|
+
>
|
|
97
|
+
<SpriteSymbol
|
|
98
|
+
v-show="firstLevelLink.subtree.length"
|
|
99
|
+
name="chevron-down"
|
|
100
|
+
:aria-label="
|
|
101
|
+
isMobile
|
|
102
|
+
? $texts('header.submenu_toggle', 'Toggle submenu')
|
|
103
|
+
: undefined
|
|
104
|
+
"
|
|
105
|
+
:aria-hidden="!isMobile"
|
|
106
|
+
class="size-5 cursor-pointer text-black transition-transform duration-300 lg:ml-2 lg:size-4 lg:-rotate-90"
|
|
107
|
+
:class="{
|
|
108
|
+
'rotate-180': isMobile
|
|
109
|
+
? hoverFirst === firstLevelIndex
|
|
110
|
+
: false,
|
|
111
|
+
}"
|
|
112
|
+
/>
|
|
113
|
+
</div>
|
|
114
|
+
</VuepalLink>
|
|
115
|
+
|
|
116
|
+
<!-- Second level menu -->
|
|
117
|
+
<transition :name="isMobile ? 'slideDown' : 'fade'">
|
|
118
|
+
<div
|
|
119
|
+
v-show="
|
|
120
|
+
firstLevelLink.subtree?.length &&
|
|
121
|
+
hoverFirst === firstLevelIndex
|
|
122
|
+
"
|
|
123
|
+
:id="'secondLevel-' + firstLevelIndex"
|
|
124
|
+
class="min-w-full lg:absolute lg:-top-px lg:left-full lg:border lg:border-gray-100 lg:bg-white lg:text-sm"
|
|
125
|
+
>
|
|
126
|
+
<ul role="menu" class="ml-4 lg:ml-0">
|
|
127
|
+
<li
|
|
128
|
+
v-for="(
|
|
129
|
+
secondLevelLink, secondLevelIndex
|
|
130
|
+
) in firstLevelLink.subtree"
|
|
131
|
+
:key="`secondLevel_${secondLevelIndex}`"
|
|
132
|
+
role="menuitem"
|
|
133
|
+
class="group/second relative"
|
|
134
|
+
>
|
|
135
|
+
<VuepalLink
|
|
136
|
+
:to="secondLevelLink.link.url?.path"
|
|
137
|
+
:aria-controls="'thirdLevel-' + secondLevelIndex"
|
|
138
|
+
:aria-expanded="hoverSecond === secondLevelIndex"
|
|
139
|
+
:aria-haspopup="!!secondLevelLink.subtree.length"
|
|
140
|
+
class="flex w-full items-center justify-between whitespace-nowrap no-underline group-hover/second:text-primary-500 motion-safe:transition-colors motion-safe:duration-200 lg:px-4 lg:py-3"
|
|
141
|
+
:class="
|
|
142
|
+
secondLevelLink.link?.url?.path ===
|
|
143
|
+
activeSecondLevelLink?.link.url?.path
|
|
144
|
+
? 'text-primary-500'
|
|
145
|
+
: 'text-black'
|
|
146
|
+
"
|
|
147
|
+
@mouseenter="
|
|
148
|
+
!isMobile &&
|
|
149
|
+
onMenuInteraction('second', secondLevelIndex)
|
|
150
|
+
"
|
|
151
|
+
@mouseleave="!isMobile && onMouseLeave()"
|
|
152
|
+
@click="onLinkClick"
|
|
153
|
+
>
|
|
154
|
+
{{ secondLevelLink.link.label }}
|
|
155
|
+
<div
|
|
156
|
+
class="grid size-10 place-content-center lg:size-auto"
|
|
157
|
+
@click.prevent.stop="
|
|
158
|
+
isMobile &&
|
|
159
|
+
onMenuInteraction('first', firstLevelIndex)
|
|
160
|
+
"
|
|
161
|
+
>
|
|
162
|
+
<SpriteSymbol
|
|
163
|
+
v-show="secondLevelLink.subtree.length"
|
|
164
|
+
name="chevron-down"
|
|
165
|
+
:aria-label="
|
|
166
|
+
isMobile
|
|
167
|
+
? $texts(
|
|
168
|
+
'header.submenu_toggle',
|
|
169
|
+
'Toggle submenu',
|
|
170
|
+
)
|
|
171
|
+
: undefined
|
|
172
|
+
"
|
|
173
|
+
:aria-hidden="!isMobile"
|
|
174
|
+
class="size-5 cursor-pointer text-black transition-transform duration-300 lg:ml-2 lg:size-4 lg:-rotate-90"
|
|
175
|
+
:class="{
|
|
176
|
+
'rotate-180': isMobile
|
|
177
|
+
? hoverSecond === secondLevelIndex
|
|
178
|
+
: false,
|
|
179
|
+
}"
|
|
180
|
+
/>
|
|
181
|
+
</div>
|
|
182
|
+
</VuepalLink>
|
|
183
|
+
|
|
184
|
+
<!-- Third level menu -->
|
|
185
|
+
<transition :name="isMobile ? 'slideDown' : 'fade'">
|
|
186
|
+
<div
|
|
187
|
+
v-show="
|
|
188
|
+
secondLevelLink.subtree?.length &&
|
|
189
|
+
hoverSecond === secondLevelIndex
|
|
190
|
+
"
|
|
191
|
+
:id="'thirdLevel-' + secondLevelIndex"
|
|
192
|
+
class="min-w-full lg:absolute lg:-top-px lg:left-full lg:border lg:border-gray-100 lg:bg-white lg:text-sm"
|
|
193
|
+
>
|
|
194
|
+
<ul role="menu" class="ml-4 lg:ml-0">
|
|
195
|
+
<li
|
|
196
|
+
v-for="(
|
|
197
|
+
thirdLevelLink, thirdLevelIndex
|
|
198
|
+
) in secondLevelLink.subtree"
|
|
199
|
+
:key="`thirdLevel_${thirdLevelIndex}`"
|
|
200
|
+
role="menuitem"
|
|
201
|
+
class="group/third relative"
|
|
202
|
+
>
|
|
203
|
+
<VuepalLink
|
|
204
|
+
:to="thirdLevelLink.link.url?.path"
|
|
205
|
+
class="flex h-10 w-full items-center whitespace-nowrap no-underline group-hover/third:text-primary-500 motion-safe:transition-colors motion-safe:duration-200 lg:h-auto lg:px-4 lg:py-3"
|
|
206
|
+
:class="
|
|
207
|
+
thirdLevelLink.link?.url?.path ===
|
|
208
|
+
activeThirdLevelLink?.link.url?.path
|
|
209
|
+
? 'text-primary-500'
|
|
210
|
+
: 'text-black'
|
|
211
|
+
"
|
|
212
|
+
@mouseenter="
|
|
213
|
+
onMenuInteraction('third', thirdLevelIndex)
|
|
214
|
+
"
|
|
215
|
+
@click="onLinkClick"
|
|
216
|
+
>
|
|
217
|
+
{{ thirdLevelLink.link.label }}
|
|
218
|
+
</VuepalLink>
|
|
219
|
+
</li>
|
|
220
|
+
</ul>
|
|
221
|
+
</div>
|
|
222
|
+
</transition>
|
|
223
|
+
</li>
|
|
224
|
+
</ul>
|
|
225
|
+
</div>
|
|
226
|
+
</transition>
|
|
227
|
+
</li>
|
|
228
|
+
</ul>
|
|
229
|
+
</div>
|
|
230
|
+
</transition>
|
|
231
|
+
</li>
|
|
232
|
+
</ul>
|
|
233
|
+
</nav>
|
|
234
|
+
</template>
|
|
235
|
+
|
|
236
|
+
<script lang="ts" setup>
|
|
237
|
+
type menuLevel = 'main' | 'first' | 'second' | 'third'
|
|
238
|
+
|
|
239
|
+
const globalMenu = ref<HTMLElement | null>(null)
|
|
240
|
+
const { isMobile } = useIsMobile()
|
|
241
|
+
const {
|
|
242
|
+
links,
|
|
243
|
+
currentActiveMainLink,
|
|
244
|
+
activeFirstLevelLink,
|
|
245
|
+
activeSecondLevelLink,
|
|
246
|
+
activeThirdLevelLink,
|
|
247
|
+
} = await useMainMenuLinks()
|
|
248
|
+
const hoverMain = ref(-1)
|
|
249
|
+
const hoverFirst = ref(-1)
|
|
250
|
+
const hoverSecond = ref(-1)
|
|
251
|
+
const hoverThird = ref(-1)
|
|
252
|
+
let timeout: any = null
|
|
253
|
+
|
|
254
|
+
const emit = defineEmits(['menu:link-click'])
|
|
255
|
+
|
|
256
|
+
const { $texts } = useNuxtApp()
|
|
257
|
+
|
|
258
|
+
defineExpose({
|
|
259
|
+
element: globalMenu,
|
|
260
|
+
})
|
|
261
|
+
|
|
262
|
+
function setActive(level: menuLevel, index: number) {
|
|
263
|
+
const hoverStates = {
|
|
264
|
+
main: hoverMain,
|
|
265
|
+
first: hoverFirst,
|
|
266
|
+
second: hoverSecond,
|
|
267
|
+
third: hoverThird,
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
if (level === 'main') {
|
|
271
|
+
hoverFirst.value = -1
|
|
272
|
+
hoverSecond.value = -1
|
|
273
|
+
hoverThird.value = -1
|
|
274
|
+
} else if (level === 'first') {
|
|
275
|
+
hoverSecond.value = -1
|
|
276
|
+
hoverThird.value = -1
|
|
277
|
+
} else if (level === 'second') {
|
|
278
|
+
hoverThird.value = -1
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
const state = hoverStates[level]
|
|
282
|
+
if (isMobile.value) {
|
|
283
|
+
state.value = state.value === index ? -1 : index
|
|
284
|
+
} else {
|
|
285
|
+
state.value = index
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
function onMenuInteraction(level: menuLevel, index: number) {
|
|
290
|
+
clearTimeout(timeout)
|
|
291
|
+
timeout = setTimeout(() => {
|
|
292
|
+
setActive(level, index)
|
|
293
|
+
}, 100)
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
function onMouseLeave() {
|
|
297
|
+
clearTimeout(timeout)
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
function onNavbarMouseLeave() {
|
|
301
|
+
hoverMain.value = -1
|
|
302
|
+
hoverFirst.value = -1
|
|
303
|
+
hoverSecond.value = -1
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
function onLinkClick() {
|
|
307
|
+
emit('menu:link-click')
|
|
308
|
+
}
|
|
309
|
+
</script>
|
|
310
|
+
|
|
311
|
+
<style lang="postcss" scoped>
|
|
312
|
+
.fade-enter-active,
|
|
313
|
+
.fade-leave-active {
|
|
314
|
+
@apply transition-opacity duration-200 ease-out;
|
|
315
|
+
}
|
|
316
|
+
.fade-enter,
|
|
317
|
+
.fade-leave-active {
|
|
318
|
+
@apply opacity-0;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
.slideDown-enter-active,
|
|
322
|
+
.slideDown-leave-active {
|
|
323
|
+
transition: max-height 1s ease-in-out;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
.slideDown-enter-to,
|
|
327
|
+
.slideDown-leave-from {
|
|
328
|
+
overflow: hidden;
|
|
329
|
+
max-height: 400px;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
.slideDown-enter-from,
|
|
333
|
+
.slideDown-leave-to {
|
|
334
|
+
overflow: hidden;
|
|
335
|
+
max-height: 0;
|
|
336
|
+
}
|
|
337
|
+
</style>
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div v-if="languageLinks.length">
|
|
3
|
+
<ClientOnly>
|
|
4
|
+
<div
|
|
5
|
+
class="group relative z-40 mb-6 flex h-full items-center lg:mb-0 lg:p-0 lg:pl-8"
|
|
6
|
+
@mouseenter="!isMobile && (langSwitchDropdownOpen = true)"
|
|
7
|
+
@mouseleave="!isMobile && (langSwitchDropdownOpen = false)"
|
|
8
|
+
@click="isMobile && (langSwitchDropdownOpen = !langSwitchDropdownOpen)"
|
|
9
|
+
>
|
|
10
|
+
<button
|
|
11
|
+
class="flex items-center gap-1"
|
|
12
|
+
aria-haspopup="true"
|
|
13
|
+
:aria-expanded="langSwitchDropdownOpen"
|
|
14
|
+
aria-controls="language-dropdown"
|
|
15
|
+
>
|
|
16
|
+
<span
|
|
17
|
+
class="font-medium group-hover:text-primary-500 motion-safe:transition-colors motion-safe:duration-250 motion-safe:ease-in-out"
|
|
18
|
+
:class="{
|
|
19
|
+
'text-primary-500': langSwitchDropdownOpen,
|
|
20
|
+
}"
|
|
21
|
+
>
|
|
22
|
+
{{ currentLanguage.toUpperCase() }}
|
|
23
|
+
</span>
|
|
24
|
+
<SpriteSymbol
|
|
25
|
+
name="chevron-down"
|
|
26
|
+
class="size-4 motion-safe:transition-all motion-safe:duration-250 motion-safe:ease-in-out"
|
|
27
|
+
:class="{
|
|
28
|
+
'rotate-180': langSwitchDropdownOpen,
|
|
29
|
+
}"
|
|
30
|
+
/>
|
|
31
|
+
</button>
|
|
32
|
+
<div
|
|
33
|
+
v-show="langSwitchDropdownOpen"
|
|
34
|
+
class="absolute left-0 top-full pt-2 motion-safe:transition-all motion-safe:duration-250 motion-safe:ease-in-out lg:left-auto lg:right-0 lg:pt-4"
|
|
35
|
+
>
|
|
36
|
+
<ul
|
|
37
|
+
role="menu"
|
|
38
|
+
id="language-dropdown"
|
|
39
|
+
class="border border-gray-100 bg-white"
|
|
40
|
+
>
|
|
41
|
+
<li v-for="(lang, i) in languageLinks" :key="`lang_${i}`">
|
|
42
|
+
<NuxtLink
|
|
43
|
+
role="menuitem"
|
|
44
|
+
:to="lang.to"
|
|
45
|
+
:title="getLanguageName(lang.code)"
|
|
46
|
+
class="flex items-center px-4 py-3 text-sm font-medium hover:text-primary-500 motion-safe:transition-all motion-safe:duration-250 motion-safe:ease-in-out"
|
|
47
|
+
@click="onLangDropdownLinkClick"
|
|
48
|
+
>
|
|
49
|
+
{{ getLanguageName(lang.code) }}
|
|
50
|
+
</NuxtLink>
|
|
51
|
+
</li>
|
|
52
|
+
</ul>
|
|
53
|
+
</div>
|
|
54
|
+
<transition name="fade"> </transition>
|
|
55
|
+
</div>
|
|
56
|
+
</ClientOnly>
|
|
57
|
+
</div>
|
|
58
|
+
</template>
|
|
59
|
+
|
|
60
|
+
<script lang="ts" setup>
|
|
61
|
+
type LanguageLink = {
|
|
62
|
+
code: string
|
|
63
|
+
active: boolean
|
|
64
|
+
to: string
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
const emit = defineEmits(['lang-dropdown:change'])
|
|
68
|
+
|
|
69
|
+
const languages: ComputedRef<LanguageLink[]> = useLanguageLinks()
|
|
70
|
+
const currentLanguage = useCurrentLanguage()
|
|
71
|
+
const { isMobile } = useIsMobile()
|
|
72
|
+
|
|
73
|
+
const languageLinks = computed(() => {
|
|
74
|
+
return languages.value.filter((l) => l.code !== currentLanguage.value)
|
|
75
|
+
})
|
|
76
|
+
|
|
77
|
+
const langSwitchDropdownOpen = ref(false)
|
|
78
|
+
|
|
79
|
+
const getLanguageName = (code: string): string => {
|
|
80
|
+
const languageNames: Record<string, string> = {
|
|
81
|
+
en: 'English',
|
|
82
|
+
de: 'Deutsch',
|
|
83
|
+
fr: 'Français',
|
|
84
|
+
it: 'Italiano',
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
return languageNames[code] || code
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
const onLangDropdownLinkClick = () => {
|
|
91
|
+
emit('lang-dropdown:change')
|
|
92
|
+
langSwitchDropdownOpen.value = false
|
|
93
|
+
}
|
|
94
|
+
</script>
|
|
95
|
+
|
|
96
|
+
<style lang="postcss" scoped>
|
|
97
|
+
.fade-enter-active,
|
|
98
|
+
.fade-leave-active {
|
|
99
|
+
@apply transition-opacity duration-200 ease-out;
|
|
100
|
+
}
|
|
101
|
+
.fade-enter,
|
|
102
|
+
.fade-leave-active {
|
|
103
|
+
@apply opacity-0;
|
|
104
|
+
}
|
|
105
|
+
</style>
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<svg
|
|
3
|
+
viewBox="0 0 24 24"
|
|
4
|
+
fill="none"
|
|
5
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
+
class="size-6 overflow-visible text-black"
|
|
7
|
+
aria-hidden
|
|
8
|
+
>
|
|
9
|
+
<rect
|
|
10
|
+
width="22"
|
|
11
|
+
height="2"
|
|
12
|
+
rx="2"
|
|
13
|
+
x="2"
|
|
14
|
+
y="4"
|
|
15
|
+
fill="currentColor"
|
|
16
|
+
stroke-width="0"
|
|
17
|
+
transform-origin="12.5 5"
|
|
18
|
+
:class="{
|
|
19
|
+
'close-icon-top-forwards': isInClosableState,
|
|
20
|
+
'close-icon-top-backwards': !isInClosableState,
|
|
21
|
+
}"
|
|
22
|
+
/>
|
|
23
|
+
<rect
|
|
24
|
+
width="22"
|
|
25
|
+
height="2"
|
|
26
|
+
rx="2"
|
|
27
|
+
x="2"
|
|
28
|
+
y="11"
|
|
29
|
+
fill="currentColor"
|
|
30
|
+
stroke-width="0"
|
|
31
|
+
transform-origin="12.5 12"
|
|
32
|
+
:class="{
|
|
33
|
+
'close-icon-center-forwards': isInClosableState,
|
|
34
|
+
'close-icon-center-backwards': !isInClosableState,
|
|
35
|
+
}"
|
|
36
|
+
/>
|
|
37
|
+
<rect
|
|
38
|
+
width="22"
|
|
39
|
+
height="2"
|
|
40
|
+
rx="2"
|
|
41
|
+
x="2"
|
|
42
|
+
y="18"
|
|
43
|
+
fill="currentColor"
|
|
44
|
+
stroke-width="0"
|
|
45
|
+
transform-origin="12.5 19"
|
|
46
|
+
:class="{
|
|
47
|
+
'close-icon-bottom-forwards': isInClosableState,
|
|
48
|
+
'close-icon-bottom-backwards': !isInClosableState,
|
|
49
|
+
}"
|
|
50
|
+
/>
|
|
51
|
+
</svg>
|
|
52
|
+
</template>
|
|
53
|
+
|
|
54
|
+
<script lang="ts" setup>
|
|
55
|
+
defineProps<{
|
|
56
|
+
isInClosableState: boolean
|
|
57
|
+
}>()
|
|
58
|
+
</script>
|
|
59
|
+
|
|
60
|
+
<style lang="postcss">
|
|
61
|
+
@keyframes closeIconTop {
|
|
62
|
+
0% {
|
|
63
|
+
transform: translate(0, 0) rotate(0deg);
|
|
64
|
+
}
|
|
65
|
+
50% {
|
|
66
|
+
transform: translate(0, 7px) rotate(0deg);
|
|
67
|
+
}
|
|
68
|
+
100% {
|
|
69
|
+
transform: translate(0, 7px) rotate(45deg);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@keyframes closeIconCenter {
|
|
74
|
+
0% {
|
|
75
|
+
opacity: 1;
|
|
76
|
+
}
|
|
77
|
+
50% {
|
|
78
|
+
opacity: 1;
|
|
79
|
+
}
|
|
80
|
+
100% {
|
|
81
|
+
opacity: 0;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
@keyframes closeIconBottom {
|
|
86
|
+
0% {
|
|
87
|
+
transform: translate(0, 0) rotate(0deg);
|
|
88
|
+
}
|
|
89
|
+
50% {
|
|
90
|
+
transform: translate(0, -7px) rotate(0deg);
|
|
91
|
+
}
|
|
92
|
+
100% {
|
|
93
|
+
transform: translate(0, -7px) rotate(-45deg);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
@keyframes closeIconTopReverse {
|
|
98
|
+
0% {
|
|
99
|
+
transform: translate(0, 7px) rotate(45deg);
|
|
100
|
+
}
|
|
101
|
+
50% {
|
|
102
|
+
transform: translate(0, 7px) rotate(0deg);
|
|
103
|
+
}
|
|
104
|
+
100% {
|
|
105
|
+
transform: translate(0, 0) rotate(0deg);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
@keyframes closeIconCenterReverse {
|
|
110
|
+
0% {
|
|
111
|
+
opacity: 0;
|
|
112
|
+
}
|
|
113
|
+
50% {
|
|
114
|
+
opacity: 0;
|
|
115
|
+
}
|
|
116
|
+
100% {
|
|
117
|
+
opacity: 1;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
@keyframes closeIconBottomReverse {
|
|
122
|
+
0% {
|
|
123
|
+
transform: translate(0, -7px) rotate(-45deg);
|
|
124
|
+
}
|
|
125
|
+
50% {
|
|
126
|
+
transform: translate(0, -7px) rotate(0deg);
|
|
127
|
+
}
|
|
128
|
+
100% {
|
|
129
|
+
transform: translate(0, 0) rotate(0deg);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.close-icon-top-forwards {
|
|
134
|
+
animation-name: closeIconTop;
|
|
135
|
+
animation-fill-mode: forwards;
|
|
136
|
+
animation-duration: 250ms;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.close-icon-top-backwards {
|
|
140
|
+
transform: translate(0, 0) rotate(0deg);
|
|
141
|
+
animation-name: closeIconTopReverse;
|
|
142
|
+
animation-fill-mode: forwards;
|
|
143
|
+
animation-duration: 250ms;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.close-icon-bottom-forwards {
|
|
147
|
+
animation-name: closeIconBottom;
|
|
148
|
+
animation-fill-mode: forwards;
|
|
149
|
+
animation-duration: 250ms;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.close-icon-bottom-backwards {
|
|
153
|
+
transform: translate(0, 0) rotate(0deg);
|
|
154
|
+
animation-name: closeIconBottomReverse;
|
|
155
|
+
animation-fill-mode: forwards;
|
|
156
|
+
animation-duration: 250ms;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.close-icon-center-forwards {
|
|
160
|
+
animation-name: closeIconCenter;
|
|
161
|
+
animation-fill-mode: forwards;
|
|
162
|
+
animation-duration: 250ms;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.close-icon-center-backwards {
|
|
166
|
+
opacity: 1;
|
|
167
|
+
animation-name: closeIconCenterReverse;
|
|
168
|
+
animation-fill-mode: forwards;
|
|
169
|
+
animation-duration: 250ms;
|
|
170
|
+
}
|
|
171
|
+
</style>
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<nav class="mb-8 lg:mb-0 lg:py-0">
|
|
3
|
+
<ul
|
|
4
|
+
role="menu"
|
|
5
|
+
class="flex size-full flex-col flex-wrap justify-end text-base lg:flex-row lg:items-center lg:gap-8 lg:font-medium"
|
|
6
|
+
>
|
|
7
|
+
<li
|
|
8
|
+
v-for="(link, index) in links"
|
|
9
|
+
:key="`meta_${index}`"
|
|
10
|
+
role="menuitem"
|
|
11
|
+
class="group/main relative flex flex-col items-stretch lg:flex-row"
|
|
12
|
+
>
|
|
13
|
+
<VuepalLink
|
|
14
|
+
:to="link.link?.url?.path"
|
|
15
|
+
class="flex w-full items-center justify-between py-1 group-hover/main:text-primary-500 motion-safe:transition-colors motion-safe:duration-200 lg:size-auto lg:py-0"
|
|
16
|
+
:class="
|
|
17
|
+
link.link?.url?.path === currentActiveMetaLink?.link.url?.path
|
|
18
|
+
? 'text-primary-500'
|
|
19
|
+
: 'text-black'
|
|
20
|
+
"
|
|
21
|
+
>
|
|
22
|
+
{{ link.link.label }}
|
|
23
|
+
</VuepalLink>
|
|
24
|
+
</li>
|
|
25
|
+
</ul>
|
|
26
|
+
</nav>
|
|
27
|
+
<div v-if="props.links?.length !== 0" class="mb-8 flex gap-8 lg:mb-0 lg:ml-8">
|
|
28
|
+
<DesignSystemAtomsButton
|
|
29
|
+
v-for="link in props.links"
|
|
30
|
+
:key="link.uuid"
|
|
31
|
+
:label="link?.props?.label"
|
|
32
|
+
:subline="link?.props?.subline"
|
|
33
|
+
:title="link?.props?.title"
|
|
34
|
+
:link="link?.props?.link?.uri?.path"
|
|
35
|
+
:params="link?.props?.params"
|
|
36
|
+
:target-blank="link?.props?.targetBlank"
|
|
37
|
+
:style="link?.props?.buttonStyle"
|
|
38
|
+
buttonClass="no-underline"
|
|
39
|
+
/>
|
|
40
|
+
</div>
|
|
41
|
+
</template>
|
|
42
|
+
|
|
43
|
+
<script setup lang="ts">
|
|
44
|
+
import type { ParagraphIcmsButtonElementFragment } from '#build/graphql-operations'
|
|
45
|
+
|
|
46
|
+
const { links, currentActiveMetaLink } = await useMetaMenuLinks()
|
|
47
|
+
|
|
48
|
+
const props = defineProps<{
|
|
49
|
+
links: Array<ParagraphIcmsButtonElementFragment>
|
|
50
|
+
}>()
|
|
51
|
+
|
|
52
|
+
const emit = defineEmits(['meta:empty'])
|
|
53
|
+
|
|
54
|
+
if (links.value?.length === 0) {
|
|
55
|
+
emit('meta:empty')
|
|
56
|
+
}
|
|
57
|
+
</script>
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
class="pr-4 font-medium lg:pr-12"
|
|
4
|
+
:class="{
|
|
5
|
+
'sticky top-0': isSticky,
|
|
6
|
+
}"
|
|
7
|
+
>
|
|
8
|
+
<nuxt-link
|
|
9
|
+
:to="{ name: 'search' }"
|
|
10
|
+
class="flex h-10 items-center gap-1 px-3 text-primary-500 lg:h-[50px]"
|
|
11
|
+
>
|
|
12
|
+
<span class="sr-only lg:not-sr-only">
|
|
13
|
+
{{ $texts('header.search', 'Suche') }}
|
|
14
|
+
</span>
|
|
15
|
+
<SpriteSymbol name="magnifyingglass" class="size-5" />
|
|
16
|
+
</nuxt-link>
|
|
17
|
+
</div>
|
|
18
|
+
</template>
|
|
19
|
+
|
|
20
|
+
<script lang="ts" setup>
|
|
21
|
+
defineProps<{
|
|
22
|
+
isSticky: boolean
|
|
23
|
+
}>()
|
|
24
|
+
|
|
25
|
+
const { $texts } = useNuxtApp()
|
|
26
|
+
</script>
|