@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,144 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<NuxtLink
|
|
3
|
+
:class="cn(button({ colorScheme, style, textAlignment }), buttonClass)"
|
|
4
|
+
:target="targetBlank ? '_blank' : '_self'"
|
|
5
|
+
:to="linkComplete"
|
|
6
|
+
:title="title"
|
|
7
|
+
:prefetch="prefetch"
|
|
8
|
+
>
|
|
9
|
+
<span class="block">{{ label }}</span>
|
|
10
|
+
<span v-if="subline" class="block text-sm font-light">{{ subline }}</span>
|
|
11
|
+
</NuxtLink>
|
|
12
|
+
</template>
|
|
13
|
+
|
|
14
|
+
<script lang="ts" setup>
|
|
15
|
+
import cn from '@iqual/nuxt-icms/composables/useCn'
|
|
16
|
+
import { tv } from 'tailwind-variants'
|
|
17
|
+
|
|
18
|
+
const props = defineProps<{
|
|
19
|
+
label?: string
|
|
20
|
+
subline?: string
|
|
21
|
+
title?: string
|
|
22
|
+
link?: string
|
|
23
|
+
params?: string
|
|
24
|
+
targetBlank?: boolean
|
|
25
|
+
style?: string
|
|
26
|
+
colorScheme?: string
|
|
27
|
+
textAlignment?: string
|
|
28
|
+
buttonClass?: string
|
|
29
|
+
}>()
|
|
30
|
+
|
|
31
|
+
const button = tv({
|
|
32
|
+
base: 'cursor-pointer font-medium py-2 px-3 rounded-lg duration-200 ease-in-out block w-full md:w-fit',
|
|
33
|
+
variants: {
|
|
34
|
+
colorScheme: {
|
|
35
|
+
none: '',
|
|
36
|
+
dark: '',
|
|
37
|
+
light: '',
|
|
38
|
+
accent: '',
|
|
39
|
+
},
|
|
40
|
+
style: {
|
|
41
|
+
normal: '',
|
|
42
|
+
focus: '',
|
|
43
|
+
minimal: 'px-0 underline text-current',
|
|
44
|
+
},
|
|
45
|
+
textAlignment: {
|
|
46
|
+
left: 'text-left',
|
|
47
|
+
center: 'text-center',
|
|
48
|
+
right: 'text-right',
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
compoundVariants: [
|
|
52
|
+
{
|
|
53
|
+
colorScheme: 'none',
|
|
54
|
+
style: 'normal',
|
|
55
|
+
class:
|
|
56
|
+
'bg-white text-black hover:bg-black hover:text-white border border-black',
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
colorScheme: 'none',
|
|
60
|
+
style: 'focus',
|
|
61
|
+
class:
|
|
62
|
+
'bg-black text-white hover:bg-white hover:text-black border border-black',
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
colorScheme: 'none',
|
|
66
|
+
style: 'minimal',
|
|
67
|
+
class: 'hover:text-primary-500',
|
|
68
|
+
},
|
|
69
|
+
|
|
70
|
+
{
|
|
71
|
+
colorScheme: 'light',
|
|
72
|
+
style: 'normal',
|
|
73
|
+
class:
|
|
74
|
+
'bg-gray-50 text-black hover:bg-black hover:text-white border border-black',
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
colorScheme: 'light',
|
|
78
|
+
style: 'focus',
|
|
79
|
+
class:
|
|
80
|
+
'bg-black text-gray-50 hover:bg-gray-50 hover:text-black border border-black',
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
colorScheme: 'light',
|
|
84
|
+
style: 'minimal',
|
|
85
|
+
class: 'hover:text-primary-500',
|
|
86
|
+
},
|
|
87
|
+
|
|
88
|
+
{
|
|
89
|
+
colorScheme: 'dark',
|
|
90
|
+
style: 'normal',
|
|
91
|
+
class:
|
|
92
|
+
'bg-black text-white hover:bg-white hover:text-black border border-white',
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
colorScheme: 'dark',
|
|
96
|
+
style: 'focus',
|
|
97
|
+
class:
|
|
98
|
+
'bg-white text-black hover:bg-black hover:text-white border border-white',
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
colorScheme: 'dark',
|
|
102
|
+
style: 'minimal',
|
|
103
|
+
class: 'hover:text-primary-500',
|
|
104
|
+
},
|
|
105
|
+
|
|
106
|
+
{
|
|
107
|
+
colorScheme: 'accent',
|
|
108
|
+
style: 'normal',
|
|
109
|
+
class:
|
|
110
|
+
'bg-primary-600 text-white hover:bg-white hover:text-black border border-white',
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
colorScheme: 'accent',
|
|
114
|
+
style: 'focus',
|
|
115
|
+
class:
|
|
116
|
+
'bg-black text-white hover:bg-white hover:text-black border border-black hover:border-white',
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
colorScheme: 'accent',
|
|
120
|
+
style: 'minimal',
|
|
121
|
+
class: 'hover:text-black',
|
|
122
|
+
},
|
|
123
|
+
],
|
|
124
|
+
defaultVariants: {
|
|
125
|
+
colorScheme: 'none',
|
|
126
|
+
style: 'normal',
|
|
127
|
+
textAlignment: 'left',
|
|
128
|
+
},
|
|
129
|
+
})
|
|
130
|
+
|
|
131
|
+
const prefetch = inject('prefetch', false)
|
|
132
|
+
|
|
133
|
+
const linkComplete = computed(() => {
|
|
134
|
+
let link = ''
|
|
135
|
+
|
|
136
|
+
if (props?.link) {
|
|
137
|
+
link += props?.link
|
|
138
|
+
}
|
|
139
|
+
if (props?.params) {
|
|
140
|
+
link += props?.params
|
|
141
|
+
}
|
|
142
|
+
return link
|
|
143
|
+
})
|
|
144
|
+
</script>
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<section :class="containerClassList">
|
|
3
|
+
<slot />
|
|
4
|
+
</section>
|
|
5
|
+
</template>
|
|
6
|
+
|
|
7
|
+
<script lang="ts" setup>
|
|
8
|
+
const props = withDefaults(
|
|
9
|
+
defineProps<{
|
|
10
|
+
colorScheme?: string
|
|
11
|
+
spacing?: {
|
|
12
|
+
top?: string
|
|
13
|
+
bottom?: string
|
|
14
|
+
}
|
|
15
|
+
class?: string
|
|
16
|
+
}>(),
|
|
17
|
+
{
|
|
18
|
+
colorScheme: 'none',
|
|
19
|
+
spacing: () => ({
|
|
20
|
+
top: 'small',
|
|
21
|
+
bottom: 'small',
|
|
22
|
+
}),
|
|
23
|
+
},
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
const containerClassList = computed(() => {
|
|
27
|
+
const classList = []
|
|
28
|
+
if (props.class) {
|
|
29
|
+
classList.push(props.class)
|
|
30
|
+
}
|
|
31
|
+
if (props.colorScheme === 'dark') {
|
|
32
|
+
classList.push('bg-gray-950 text-white')
|
|
33
|
+
}
|
|
34
|
+
if (props.colorScheme === 'light') {
|
|
35
|
+
classList.push('bg-gray-50')
|
|
36
|
+
}
|
|
37
|
+
if (props.colorScheme === 'accent') {
|
|
38
|
+
classList.push('bg-primary-600 text-white')
|
|
39
|
+
}
|
|
40
|
+
if (props.spacing.top === 'small') {
|
|
41
|
+
classList.push('pt-16')
|
|
42
|
+
}
|
|
43
|
+
if (props.spacing.top === 'large') {
|
|
44
|
+
classList.push('pt-24 md:pt-32')
|
|
45
|
+
}
|
|
46
|
+
if (props.spacing.bottom === 'small') {
|
|
47
|
+
classList.push('pb-16')
|
|
48
|
+
}
|
|
49
|
+
if (props.spacing.bottom === 'large') {
|
|
50
|
+
classList.push('pb-24 md:pb-32')
|
|
51
|
+
}
|
|
52
|
+
return classList
|
|
53
|
+
})
|
|
54
|
+
</script>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div :class="cn('container mx-auto grid grid-cols-12 gap-6', props.class)">
|
|
3
|
+
<slot />
|
|
4
|
+
</div>
|
|
5
|
+
</template>
|
|
6
|
+
|
|
7
|
+
<script lang="ts" setup>
|
|
8
|
+
import cn from '@iqual/nuxt-icms/composables/useCn'
|
|
9
|
+
|
|
10
|
+
const props = defineProps<{
|
|
11
|
+
class?: string
|
|
12
|
+
}>()
|
|
13
|
+
</script>
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
v-if="links?.length"
|
|
4
|
+
:class="cn('mt-6 flex flex-wrap gap-6', wrapperClass, buttonAlignment)"
|
|
5
|
+
>
|
|
6
|
+
<DesignSystemAtomsButton
|
|
7
|
+
v-for="link in links"
|
|
8
|
+
:label="link?.props.label"
|
|
9
|
+
:subline="link?.props.subline"
|
|
10
|
+
:link="link?.props.link?.uri.path"
|
|
11
|
+
:params="link?.props.params"
|
|
12
|
+
:style="link?.props.buttonStyle"
|
|
13
|
+
:target-blank="link?.props.targetBlank"
|
|
14
|
+
:title="link?.props.title"
|
|
15
|
+
:colorScheme="colorScheme"
|
|
16
|
+
/>
|
|
17
|
+
</div>
|
|
18
|
+
</template>
|
|
19
|
+
|
|
20
|
+
<script lang="ts" setup>
|
|
21
|
+
import cn from '@iqual/nuxt-icms/composables/useCn'
|
|
22
|
+
|
|
23
|
+
type Link = {
|
|
24
|
+
props: {
|
|
25
|
+
label?: string
|
|
26
|
+
subline?: string
|
|
27
|
+
link?: {
|
|
28
|
+
uri: {
|
|
29
|
+
path: string
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
params?: string
|
|
33
|
+
buttonStyle?: string
|
|
34
|
+
targetBlank?: boolean
|
|
35
|
+
title?: string
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
defineProps<{
|
|
40
|
+
links?: Array<Link>
|
|
41
|
+
colorScheme?: string
|
|
42
|
+
wrapperClass?: string
|
|
43
|
+
buttonAlignment?: string
|
|
44
|
+
}>()
|
|
45
|
+
</script>
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="@container">
|
|
3
|
+
<div :class="[card({ colorScheme }), { 'pb-20': icon }]">
|
|
4
|
+
<Media
|
|
5
|
+
v-if="image"
|
|
6
|
+
:media="image"
|
|
7
|
+
imageAspectRatio="4/3"
|
|
8
|
+
imageSizes="xs:100vw sm:100vw md:50vw lg:380px"
|
|
9
|
+
elementClass="aspect-4/3 w-full rounded-lg object-cover object-center @xl:w-1/2 @xl:shrink-0"
|
|
10
|
+
/>
|
|
11
|
+
<DesignSystemOrganismsContentBlock
|
|
12
|
+
:title="title"
|
|
13
|
+
:titleWeight="titleWeight"
|
|
14
|
+
:titleStyle="'heading-5'"
|
|
15
|
+
titleClass="!mb-2 text-center @xl:text-left font-semibold"
|
|
16
|
+
:text="text"
|
|
17
|
+
/>
|
|
18
|
+
<div v-if="icon" :class="cardIconWrapper({ colorScheme })">
|
|
19
|
+
<Media
|
|
20
|
+
:media="icon"
|
|
21
|
+
mediaClass="icon"
|
|
22
|
+
/>
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
</template>
|
|
27
|
+
|
|
28
|
+
<script lang="ts" setup>
|
|
29
|
+
import { tv } from 'tailwind-variants'
|
|
30
|
+
import type { MediaFragment } from '#graphql-operations'
|
|
31
|
+
|
|
32
|
+
defineProps<{
|
|
33
|
+
title?: string
|
|
34
|
+
titleWeight?: string
|
|
35
|
+
text?: string
|
|
36
|
+
image?: MediaFragment
|
|
37
|
+
icon?: MediaFragment
|
|
38
|
+
colorScheme?: string
|
|
39
|
+
}>()
|
|
40
|
+
|
|
41
|
+
const card = tv({
|
|
42
|
+
base: 'relative shadow-custom-small rounded-lg p-6 h-full flex gap-6 flex-col @xl:flex-row @xl:pb-6 @7xl:p-16 @7xl:gap-16',
|
|
43
|
+
variants: {
|
|
44
|
+
colorScheme: {
|
|
45
|
+
none: 'bg-white',
|
|
46
|
+
dark: 'bg-gray-900',
|
|
47
|
+
light: 'bg-white',
|
|
48
|
+
accent: 'bg-primary-700',
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
defaultVariants: {
|
|
52
|
+
colorScheme: 'none',
|
|
53
|
+
},
|
|
54
|
+
})
|
|
55
|
+
|
|
56
|
+
const cardIconWrapper = tv({
|
|
57
|
+
base: 'absolute -bottom-12 left-1/2 flex size-24 -translate-x-1/2 items-center justify-center rounded-full p-6 @xl:[left:calc(25%+12px)] @7xl:@xl:[left:calc(25%+32px)]',
|
|
58
|
+
variants: {
|
|
59
|
+
colorScheme: {
|
|
60
|
+
none: 'bg-gray-50',
|
|
61
|
+
dark: 'bg-gray-800',
|
|
62
|
+
light: 'bg-gray-100',
|
|
63
|
+
accent: 'bg-primary-500',
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
defaultVariants: {
|
|
67
|
+
colorScheme: 'none',
|
|
68
|
+
},
|
|
69
|
+
})
|
|
70
|
+
</script>
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div :class="iconText({ colorScheme })">
|
|
3
|
+
<div :class="iconTextIcon({ colorScheme })">
|
|
4
|
+
<Media
|
|
5
|
+
v-if="icon"
|
|
6
|
+
:media="icon"
|
|
7
|
+
mediaClass="size-10"
|
|
8
|
+
/>
|
|
9
|
+
</div>
|
|
10
|
+
<DesignSystemOrganismsContentBlock
|
|
11
|
+
:title="title"
|
|
12
|
+
:titleWeight="titleWeight"
|
|
13
|
+
titleClass="text-xl lg:text-xl font-semibold mb-2"
|
|
14
|
+
:text="text"
|
|
15
|
+
/>
|
|
16
|
+
</div>
|
|
17
|
+
</template>
|
|
18
|
+
|
|
19
|
+
<script lang="ts" setup>
|
|
20
|
+
import { tv } from 'tailwind-variants'
|
|
21
|
+
import type { MediaFragment } from '#graphql-operations'
|
|
22
|
+
|
|
23
|
+
defineProps<{
|
|
24
|
+
title?: string
|
|
25
|
+
titleWeight?: string
|
|
26
|
+
text?: string
|
|
27
|
+
icon?: MediaFragment
|
|
28
|
+
colorScheme?: string
|
|
29
|
+
}>()
|
|
30
|
+
|
|
31
|
+
const iconText = tv({
|
|
32
|
+
base: 'flex items-center gap-6 rounded-lg py-5 px-6 shadow-custom-small',
|
|
33
|
+
variants: {
|
|
34
|
+
colorScheme: {
|
|
35
|
+
none: 'bg-white',
|
|
36
|
+
dark: 'bg-gray-900 text-white',
|
|
37
|
+
light: 'bg-white',
|
|
38
|
+
accent: 'bg-primary-700 text-white',
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
defaultVariants: {
|
|
42
|
+
colorScheme: 'none',
|
|
43
|
+
},
|
|
44
|
+
})
|
|
45
|
+
|
|
46
|
+
const iconTextIcon = tv({
|
|
47
|
+
base: 'w-20 shrink-0 rounded-full flex justify-center items-center aspect-square',
|
|
48
|
+
variants: {
|
|
49
|
+
colorScheme: {
|
|
50
|
+
none: 'bg-gray-50',
|
|
51
|
+
dark: 'bg-gray-400',
|
|
52
|
+
light: 'bg-gray-50',
|
|
53
|
+
accent: 'bg-primary-400',
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
defaultVariants: {
|
|
57
|
+
colorScheme: 'none',
|
|
58
|
+
},
|
|
59
|
+
})
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
</script>
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div :class="cn('@container', 'my-6', sliderClass)">
|
|
3
|
+
<Carousel
|
|
4
|
+
:active="media && media?.length > 1"
|
|
5
|
+
>
|
|
6
|
+
<CarouselContent>
|
|
7
|
+
<CarouselItem
|
|
8
|
+
v-for="(element, index) in media"
|
|
9
|
+
:key="index"
|
|
10
|
+
class="flex flex-col justify-center pl-4"
|
|
11
|
+
>
|
|
12
|
+
<Media
|
|
13
|
+
v-if="element"
|
|
14
|
+
:media="element"
|
|
15
|
+
:showCaption="showCaption"
|
|
16
|
+
:mediaClass="mediaClass"
|
|
17
|
+
:elementClass="elementClass"
|
|
18
|
+
:figcaptionClass="figcaptionClass"
|
|
19
|
+
/>
|
|
20
|
+
</CarouselItem>
|
|
21
|
+
</CarouselContent>
|
|
22
|
+
<CarouselPrevious
|
|
23
|
+
v-if="media && media?.length > 1"
|
|
24
|
+
class="left-4 @3xs:left-8 @2xs:left-10 @md:left-16"
|
|
25
|
+
:class="carouselButton({ colorScheme })"
|
|
26
|
+
>
|
|
27
|
+
<ChevronLeft :size="24" :stroke-width="1" />
|
|
28
|
+
</CarouselPrevious>
|
|
29
|
+
<CarouselNext
|
|
30
|
+
v-if="media && media?.length > 1"
|
|
31
|
+
class="right-4 @3xs:right-8 @2xs:right-10 @md:right-16"
|
|
32
|
+
:class="carouselButton({ colorScheme })"
|
|
33
|
+
>
|
|
34
|
+
<ChevronRight :size="24" :stroke-width="1" />
|
|
35
|
+
</CarouselNext>
|
|
36
|
+
</Carousel>
|
|
37
|
+
</div>
|
|
38
|
+
</template>
|
|
39
|
+
|
|
40
|
+
<script lang="ts" setup>
|
|
41
|
+
import cn from '@iqual/nuxt-icms/composables/useCn'
|
|
42
|
+
import { tv } from 'tailwind-variants'
|
|
43
|
+
import { ChevronLeft, ChevronRight } from 'lucide-vue-next'
|
|
44
|
+
import type { MediaFragment } from '#graphql-operations'
|
|
45
|
+
|
|
46
|
+
defineProps<{
|
|
47
|
+
media?: (MediaFragment | null)[] | undefined
|
|
48
|
+
sliderClass?: string
|
|
49
|
+
mediaClass?: string
|
|
50
|
+
colorScheme?: string
|
|
51
|
+
showCaption?: boolean
|
|
52
|
+
figcaptionClass?: string
|
|
53
|
+
elementClass?: string
|
|
54
|
+
}>()
|
|
55
|
+
|
|
56
|
+
const carouselButton = tv({
|
|
57
|
+
base: 'size-10 border-none disabled:opacity-40 @sm:size:12 @md:size:16 [&_svg]:size-auto',
|
|
58
|
+
variants: {
|
|
59
|
+
colorScheme: {
|
|
60
|
+
none: 'bg-gray-50 text-black hover:bg-black hover:text-white dark:bg-gray-50 dark:text-black hover:dark:bg-black hover:dark:text-white',
|
|
61
|
+
dark: 'bg-black text-white hover:bg-gray-50 hover:text-black dark:bg-black dark:text-white hover:dark:bg-gray-50 hover:dark:text-black',
|
|
62
|
+
light:
|
|
63
|
+
'bg-gray-50 text-black hover:bg-black hover:text-white dark:bg-gray-50 dark:text-black hover:dark:bg-black hover:dark:text-white',
|
|
64
|
+
accent:
|
|
65
|
+
'bg-primary-600 text-white hover:bg-primary-800 hover:text-white dark:bg-primary-600 dark:text-white hover:dark:bg-primary-800 hover:dark:text-white',
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
defaultVariants: {
|
|
69
|
+
colorScheme: 'none',
|
|
70
|
+
},
|
|
71
|
+
})
|
|
72
|
+
</script>
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div :class="partnershipElement({ colorScheme })">
|
|
3
|
+
<NuxtLink :to="link" :title="title">
|
|
4
|
+
<Media
|
|
5
|
+
v-if="logo"
|
|
6
|
+
:media="logo"
|
|
7
|
+
imageSizes="xs:100vw sm:100vw md:50vw lg:580px"
|
|
8
|
+
mediaClass="h-full"
|
|
9
|
+
/>
|
|
10
|
+
</NuxtLink>
|
|
11
|
+
</div>
|
|
12
|
+
</template>
|
|
13
|
+
|
|
14
|
+
<script lang="ts" setup>
|
|
15
|
+
import { tv } from 'tailwind-variants'
|
|
16
|
+
import type { MediaFragment } from '#graphql-operations'
|
|
17
|
+
|
|
18
|
+
defineProps<{
|
|
19
|
+
logo?: MediaFragment
|
|
20
|
+
link?: string
|
|
21
|
+
title?: string
|
|
22
|
+
}>()
|
|
23
|
+
|
|
24
|
+
const partnershipElement = tv({
|
|
25
|
+
base: 'flex md:min-h-32 w-1/2 xl:w-auto xl:flex-1 justify-center p-4',
|
|
26
|
+
variants: {
|
|
27
|
+
colorScheme: {
|
|
28
|
+
none: 'bg-white',
|
|
29
|
+
dark: 'bg-gray-900',
|
|
30
|
+
light: 'bg-white',
|
|
31
|
+
accent: 'bg-primary-700',
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
defaultVariants: {
|
|
35
|
+
colorScheme: 'none',
|
|
36
|
+
},
|
|
37
|
+
})
|
|
38
|
+
|
|
39
|
+
const colorScheme = inject<string>('colorScheme')
|
|
40
|
+
</script>
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="overflow-x-auto rounded-lg shadow-custom-offset">
|
|
3
|
+
<table
|
|
4
|
+
class="w-full min-w-[600px] table-auto border-collapse text-left text-sm"
|
|
5
|
+
>
|
|
6
|
+
<thead>
|
|
7
|
+
<tr>
|
|
8
|
+
<th
|
|
9
|
+
v-for="(header, index) in tableHeaders"
|
|
10
|
+
:key="index"
|
|
11
|
+
:class="th({ colorScheme })"
|
|
12
|
+
>
|
|
13
|
+
{{ header }}
|
|
14
|
+
</th>
|
|
15
|
+
</tr>
|
|
16
|
+
</thead>
|
|
17
|
+
<tbody>
|
|
18
|
+
<tr
|
|
19
|
+
v-for="(row, rowIndex) in tableRows"
|
|
20
|
+
:key="rowIndex"
|
|
21
|
+
:class="tr({ colorScheme })"
|
|
22
|
+
>
|
|
23
|
+
<td
|
|
24
|
+
v-for="(value, colIndex) in row"
|
|
25
|
+
:key="colIndex"
|
|
26
|
+
:class="td({ colorScheme })"
|
|
27
|
+
v-html="value"
|
|
28
|
+
/>
|
|
29
|
+
</tr>
|
|
30
|
+
</tbody>
|
|
31
|
+
<caption
|
|
32
|
+
v-if="tableData?.value.caption"
|
|
33
|
+
class="absolute -bottom-8 left-1/2 -translate-x-1/2 text-center text-xs italic"
|
|
34
|
+
>
|
|
35
|
+
{{
|
|
36
|
+
tableData?.value.caption
|
|
37
|
+
}}
|
|
38
|
+
</caption>
|
|
39
|
+
</table>
|
|
40
|
+
</div>
|
|
41
|
+
</template>
|
|
42
|
+
|
|
43
|
+
<script lang="ts" setup>
|
|
44
|
+
import { tv } from 'tailwind-variants'
|
|
45
|
+
|
|
46
|
+
const tr = tv({
|
|
47
|
+
base: 'border-b last:border-0',
|
|
48
|
+
variants: {
|
|
49
|
+
colorScheme: {
|
|
50
|
+
none: 'border-gray-100',
|
|
51
|
+
dark: 'border-gray-700',
|
|
52
|
+
light: 'border-gray-200',
|
|
53
|
+
accent: 'border-primary-500',
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
defaultVariants: {
|
|
57
|
+
colorScheme: 'none',
|
|
58
|
+
},
|
|
59
|
+
})
|
|
60
|
+
|
|
61
|
+
const th = tv({
|
|
62
|
+
base: 'first:z-1 px-4 py-8 text-center text-sm first:sticky first:left-0 first:min-w-48 even:rounded-t-lg',
|
|
63
|
+
variants: {
|
|
64
|
+
colorScheme: {
|
|
65
|
+
none: 'odd:bg-white even:bg-gray-50',
|
|
66
|
+
dark: 'odd:bg-black even:bg-gray-900',
|
|
67
|
+
light: 'odd:bg-gray-50 even:bg-gray-100',
|
|
68
|
+
accent: 'odd:bg-primary-600 even:bg-primary-700',
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
defaultVariants: {
|
|
72
|
+
colorScheme: 'none',
|
|
73
|
+
},
|
|
74
|
+
})
|
|
75
|
+
|
|
76
|
+
const td = tv({
|
|
77
|
+
base: 'first:z-1 h-14 px-4 py-3 text-center leading-6 first:sticky first:left-0 first:min-w-48 first:max-w-40 first:text-left first:text-sm first:font-bold',
|
|
78
|
+
variants: {
|
|
79
|
+
colorScheme: {
|
|
80
|
+
none: 'odd:bg-white even:bg-gray-50',
|
|
81
|
+
dark: 'odd:bg-black even:bg-gray-900',
|
|
82
|
+
light: 'odd:bg-gray-50 even:bg-gray-100',
|
|
83
|
+
accent: 'odd:bg-primary-600 even:bg-primary-700',
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
defaultVariants: {
|
|
87
|
+
colorScheme: 'none',
|
|
88
|
+
},
|
|
89
|
+
})
|
|
90
|
+
|
|
91
|
+
const xIcon =
|
|
92
|
+
'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" style="display: block; margin: 0 auto">><path d="M18 6L6 18M6 6L18 18" stroke="#D9D9D9" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>'
|
|
93
|
+
const checkIcon =
|
|
94
|
+
'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" style="display: block; margin: 0 auto;">><path d="M20.5 6L9.5 17L4.5 12" stroke="#757575" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>'
|
|
95
|
+
|
|
96
|
+
const props = defineProps<{
|
|
97
|
+
tableData?: Record<string, any>
|
|
98
|
+
colorScheme?: string
|
|
99
|
+
}>()
|
|
100
|
+
|
|
101
|
+
const parseWeight = (weight: any) => {
|
|
102
|
+
const num = parseFloat(weight)
|
|
103
|
+
return Number.isFinite(num) ? num : Infinity
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
const tableHeaders = computed(() => {
|
|
107
|
+
if (!props.tableData?.value) {
|
|
108
|
+
return []
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
const rows = Object.keys(props.tableData.value)
|
|
112
|
+
.filter((key) => key !== 'caption')
|
|
113
|
+
.map((key) => props.tableData?.value[key])
|
|
114
|
+
|
|
115
|
+
if (rows.length === 0) {
|
|
116
|
+
return []
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
const rowWithLowestWeight = rows.reduce((minRow, currentRow) => {
|
|
120
|
+
const currentWeight = parseWeight(currentRow.weight)
|
|
121
|
+
const minWeight = parseWeight(minRow.weight)
|
|
122
|
+
return currentWeight < minWeight ? currentRow : minRow
|
|
123
|
+
})
|
|
124
|
+
|
|
125
|
+
return Object.entries(rowWithLowestWeight)
|
|
126
|
+
.filter(([key]) => Number.isInteger(Number(key)))
|
|
127
|
+
.map(([_, value]) => value)
|
|
128
|
+
})
|
|
129
|
+
|
|
130
|
+
const headerRowKey = computed(() => {
|
|
131
|
+
if (!props.tableData?.value) {
|
|
132
|
+
return null
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
return Object.keys(props.tableData.value)
|
|
136
|
+
.filter((key) => key !== 'caption')
|
|
137
|
+
.reduce((minKey, currentKey) => {
|
|
138
|
+
const currentRow = props.tableData?.value[currentKey]
|
|
139
|
+
const minRow = props.tableData?.value[minKey]
|
|
140
|
+
const currentWeight = parseWeight(currentRow.weight)
|
|
141
|
+
const minWeight = parseWeight(minRow.weight)
|
|
142
|
+
return currentWeight < minWeight ? currentKey : minKey
|
|
143
|
+
})
|
|
144
|
+
})
|
|
145
|
+
|
|
146
|
+
const tableRows = computed(() => {
|
|
147
|
+
if (!props.tableData?.value) {
|
|
148
|
+
return []
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
return Object.keys(props.tableData.value)
|
|
152
|
+
.filter((key) => key !== 'caption' && key !== headerRowKey.value)
|
|
153
|
+
.map((key) => {
|
|
154
|
+
const row = props.tableData?.value[key]
|
|
155
|
+
return { weight: parseWeight(row.weight), data: row }
|
|
156
|
+
})
|
|
157
|
+
.sort((a, b) => a.weight - b.weight)
|
|
158
|
+
.map(({ data }) => {
|
|
159
|
+
const { weight, ...rowWithoutWeight } = data
|
|
160
|
+
return Object.values(rowWithoutWeight).map((item) => {
|
|
161
|
+
if (item === 'check') {
|
|
162
|
+
return checkIcon
|
|
163
|
+
} else if (item === 'x') {
|
|
164
|
+
return xIcon
|
|
165
|
+
}
|
|
166
|
+
return item
|
|
167
|
+
})
|
|
168
|
+
})
|
|
169
|
+
})
|
|
170
|
+
</script>
|